Fix build

This commit is contained in:
Nathan Bierema 2022-05-07 16:39:09 -04:00
parent 432b6f735c
commit f9320651c8
3 changed files with 11 additions and 1 deletions

View File

@ -46,6 +46,7 @@
}, },
"dependencies": { "dependencies": {
"@babel/runtime": "^7.17.9", "@babel/runtime": "^7.17.9",
"@types/lodash": "^4.14.182",
"@types/prop-types": "^15.7.5", "@types/prop-types": "^15.7.5",
"prop-types": "^15.8.1", "prop-types": "^15.8.1",
"react-base16-styling": "^0.9.1" "react-base16-styling": "^0.9.1"

View File

@ -1,9 +1,11 @@
import type { CurriedFunction1 } from 'lodash';
import { import {
Base16Theme, Base16Theme,
createStyling, createStyling,
StylingConfig, StylingConfig,
} from 'react-base16-styling'; } from 'react-base16-styling';
import solarized from './themes/solarized'; import solarized from './themes/solarized';
import { StylingFunction, Theme } from 'react-base16-styling/src';
const colorMap = (theme: Base16Theme) => ({ const colorMap = (theme: Base16Theme) => ({
BACKGROUND_COLOR: theme.base00, BACKGROUND_COLOR: theme.base00,
@ -196,6 +198,11 @@ const getDefaultThemeStyling = (theme: Base16Theme): StylingConfig => {
}; };
}; };
export default createStyling(getDefaultThemeStyling, { const createStylingFromTheme: CurriedFunction1<
Theme | undefined,
StylingFunction
> = createStyling(getDefaultThemeStyling, {
defaultBase16: solarized, defaultBase16: solarized,
}); });
export default createStylingFromTheme;

View File

@ -578,6 +578,7 @@ importers:
'@rollup/plugin-commonjs': ^22.0.0 '@rollup/plugin-commonjs': ^22.0.0
'@rollup/plugin-node-resolve': ^13.3.0 '@rollup/plugin-node-resolve': ^13.3.0
'@types/jest': ^27.5.0 '@types/jest': ^27.5.0
'@types/lodash': ^4.14.182
'@types/prop-types': ^15.7.5 '@types/prop-types': ^15.7.5
'@types/react': ^17.0.44 '@types/react': ^17.0.44
'@types/react-test-renderer': ^17.0.2 '@types/react-test-renderer': ^17.0.2
@ -602,6 +603,7 @@ importers:
typescript: ~4.5.5 typescript: ~4.5.5
dependencies: dependencies:
'@babel/runtime': 7.17.9 '@babel/runtime': 7.17.9
'@types/lodash': 4.14.182
'@types/prop-types': 15.7.5 '@types/prop-types': 15.7.5
prop-types: 15.8.1 prop-types: 15.8.1
react-base16-styling: link:../react-base16-styling react-base16-styling: link:../react-base16-styling