From 79eca2d341892f9e19145b9a114fe8da72424ab5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Artur=20Bie=C5=84?= Date: Sun, 31 May 2020 17:47:07 +0200 Subject: [PATCH] feat(esm,themes,fonts): include esm build and fonts in the package includes ESM build and fonts in the package. Themes are now now moved from main bundle to 'react95/dist/themes' BREAKING CHANGE: themes moved from the main bundle to 'react95/dist/themes' --- .gitignore | 7 +- .storybook/config.js | 32 +- .storybook/decorators/globalStyle.js | 4 +- .storybook/webpack.config.js | 2 +- README.md | 16 +- docs/usage.mdx | 22 +- package-lock.json | 755 ++++++++++++++++-- package.json | 8 +- rollup.config.js | 73 +- src/{components => }/Anchor/Anchor.js | 0 src/{components => }/Anchor/Anchor.mdx | 0 src/{components => }/Anchor/Anchor.spec.js | 0 src/{components => }/Anchor/Anchor.stories.js | 0 src/{components => }/AppBar/AppBar.js | 0 src/{components => }/AppBar/AppBar.mdx | 0 src/{components => }/AppBar/AppBar.spec.js | 0 src/{components => }/AppBar/AppBar.stories.js | 0 src/{components => }/Avatar/Avatar.js | 0 src/{components => }/Avatar/Avatar.mdx | 0 src/{components => }/Avatar/Avatar.spec.js | 2 +- src/{components => }/Avatar/Avatar.stories.js | 0 src/{components => }/Bar/Bar.js | 0 src/{components => }/Bar/Bar.mdx | 0 src/{components => }/Bar/Bar.spec.js | 2 +- src/{components => }/Bar/Bar.stories.js | 0 src/{components => }/Button/Button.js | 0 src/{components => }/Button/Button.mdx | 0 src/{components => }/Button/Button.spec.js | 2 +- src/{components => }/Button/Button.stories.js | 0 src/{components => }/Checkbox/Checkbox.js | 0 src/{components => }/Checkbox/Checkbox.mdx | 0 .../Checkbox/Checkbox.spec.js | 2 +- .../Checkbox/Checkbox.stories.js | 0 src/{components => }/ColorInput/ColorInput.js | 0 .../ColorInput/ColorInput.spec.js | 2 +- .../ColorInput/ColorInput.stories.js | 0 src/{components => }/Cutout/Cutout.js | 0 src/{components => }/Cutout/Cutout.mdx | 0 src/{components => }/Cutout/Cutout.spec.js | 0 src/{components => }/Cutout/Cutout.stories.js | 0 src/{components => }/DatePicker/DatePicker.js | 0 .../DatePicker/DatePicker.mdx | 0 .../DatePicker/DatePicker.stories.js | 0 src/{components => }/Divider/Divider.js | 0 src/{components => }/Divider/Divider.mdx | 0 src/{components => }/Divider/Divider.spec.js | 2 +- .../Divider/Divider.stories.js | 0 src/{components => }/Fieldset/Fieldset.js | 0 src/{components => }/Fieldset/Fieldset.mdx | 0 .../Fieldset/Fieldset.spec.js | 2 +- .../Fieldset/Fieldset.stories.js | 0 src/{components => }/Hourglass/Hourglass.js | 0 src/{components => }/Hourglass/Hourglass.mdx | 0 .../Hourglass/Hourglass.spec.js | 0 .../Hourglass/Hourglass.stories.js | 0 .../Hourglass/base64hourglass.js | 0 src/{components => }/List/List.js | 0 src/{components => }/List/List.mdx | 0 src/{components => }/List/List.spec.js | 2 +- src/{components => }/List/List.stories.js | 0 src/{components => }/ListItem/ListItem.js | 0 src/{components => }/ListItem/ListItem.mdx | 0 .../ListItem/ListItem.spec.js | 2 +- .../LoadingIndicator/LoadingIndicator.js | 0 .../LoadingIndicator/LoadingIndicator.spec.js | 2 +- .../LoadingIndicator.stories.js | 0 .../NumberField/NumberField.js | 0 .../NumberField/NumberField.mdx | 0 .../NumberField/NumberField.spec.js | 2 +- .../NumberField/NumberField.stories.js | 0 src/{components => }/Panel/Panel.js | 0 src/{components => }/Panel/Panel.spec.js | 0 src/{components => }/Panel/Panel.stories.js | 0 src/{components => }/Progress/Progress.js | 0 src/{components => }/Progress/Progress.mdx | 0 .../Progress/Progress.spec.js | 2 +- .../Progress/Progress.stories.js | 0 src/{components => }/Radio/Radio.js | 0 src/{components => }/Radio/Radio.mdx | 0 src/{components => }/Radio/Radio.spec.js | 2 +- src/{components => }/Radio/Radio.stories.js | 0 src/{components => }/Select/Select.js | 0 src/{components => }/Select/Select.mdx | 0 src/{components => }/Select/Select.spec.js | 2 +- src/{components => }/Select/Select.stories.js | 0 src/{components => }/Select/Select.styles.js | 0 src/{components => }/Slider/Slider.js | 0 src/{components => }/Slider/Slider.spec.js | 2 +- src/{components => }/Slider/Slider.stories.js | 0 src/{components => }/SwitchBase/SwitchBase.js | 0 src/{components => }/Tab/Tab.js | 0 src/{components => }/Tab/Tab.spec.js | 2 +- src/{components => }/TabBody/TabBody.js | 0 src/{components => }/TabBody/TabBody.spec.js | 2 +- src/{components => }/Table/Table.js | 0 src/{components => }/Table/Table.mdx | 0 src/{components => }/Table/Table.spec.js | 2 +- src/{components => }/Table/Table.stories.js | 0 src/{components => }/TableBody/TableBody.js | 0 .../TableBody/TableBody.spec.js | 2 +- .../TableDataCell/TableDataCell.js | 0 .../TableDataCell/TableDataCell.spec.js | 2 +- src/{components => }/TableHead/TableHead.js | 0 .../TableHead/TableHead.spec.js | 2 +- .../TableHeadCell/TableHeadCell.js | 0 .../TableHeadCell/TableHeadCell.spec.js | 2 +- src/{components => }/TableRow/TableRow.js | 0 .../TableRow/TableRow.spec.js | 2 +- src/{components => }/Tabs/Tabs.js | 0 src/{components => }/Tabs/Tabs.mdx | 0 src/{components => }/Tabs/Tabs.spec.js | 2 +- src/{components => }/Tabs/Tabs.stories.js | 0 src/{components => }/TextField/TextField.js | 0 src/{components => }/TextField/TextField.mdx | 0 .../TextField/TextField.spec.js | 2 +- .../TextField/TextField.stories.js | 0 src/{components => }/Toolbar/Toolbar.js | 0 src/{components => }/Toolbar/Toolbar.spec.js | 0 src/{components => }/Tooltip/Tooltip.js | 0 src/{components => }/Tooltip/Tooltip.mdx | 0 src/{components => }/Tooltip/Tooltip.spec.js | 0 .../Tooltip/Tooltip.stories.js | 0 src/{components => }/Window/Window.js | 0 src/{components => }/Window/Window.mdx | 0 src/{components => }/Window/Window.spec.js | 2 +- src/{components => }/Window/Window.stories.js | 0 .../WindowContent/WindowContent.js | 0 .../WindowContent/WindowContent.spec.js | 2 +- .../WindowHeader/WindowHeader.js | 0 .../WindowHeader/WindowHeader.spec.js | 2 +- .../assets/fonts/Digital-Clock.eot | Bin .../assets/fonts/Digital-Clock.ttf | Bin .../assets/fonts/Digital-Clock.woff | Bin .../assets/fonts/Digital-Clock.woff2 | Bin .../assets/fonts/MS-Sans-Serif.eot | Bin .../assets/fonts/MS-Sans-Serif.svg | 0 .../assets/fonts/MS-Sans-Serif.ttf | Bin .../assets/fonts/MS-Sans-Serif.woff | Bin .../assets/fonts/MS-Sans-Serif.woff2 | Bin .../assets/fonts/px_icons.woff2 | Bin .../assets/fonts/px_sans_nouveaux.eot | Bin .../assets/fonts/px_sans_nouveaux.svg | 0 .../assets/fonts/px_sans_nouveaux.ttf | Bin .../assets/fonts/px_sans_nouveaux.woff | Bin .../assets/fonts/px_sans_nouveaux.woff2 | Bin src/{components => }/assets/images/logo.png | Bin src/{components => }/assets/images/logo.psd | Bin .../hooks/useControlledOrUncontrolled.js | 0 .../common/hooks/useForkRef.js | 0 .../common/hooks/useForkRef.spec.js | 0 .../common/hooks/useIsFocusVisible.js | 0 src/{components => }/common/index.js | 0 src/{components => }/common/styleReset.js | 0 src/{components => }/common/system.js | 0 src/common/themes/azureOrange.js | 33 + src/common/themes/bee.js | 33 + src/common/themes/blackAndWhite.js | 33 + src/common/themes/brick.js | 33 + src/common/themes/candy.js | 33 + src/common/themes/coldGray.js | 34 + src/common/themes/counterStrike.js | 33 + src/common/themes/eggplant.js | 33 + src/common/themes/highContrast.js | 33 + src/common/themes/index.js | 69 ++ src/common/themes/lilac.js | 33 + src/common/themes/lilacRoseDark.js | 34 + src/common/themes/maple.js | 33 + src/common/themes/marine.js | 33 + src/common/themes/matrix.js | 33 + src/common/themes/millenium.js | 33 + src/common/themes/modernDark.js | 33 + src/common/themes/molecule.js | 33 + src/common/themes/ninjaTurtles.js | 33 + src/common/themes/olive.js | 33 + src/common/themes/original.js | 33 + src/common/themes/pamelaAnderson.js | 33 + src/common/themes/plum.js | 33 + src/common/themes/rainyDay.js | 33 + src/common/themes/rose.js | 33 + src/common/themes/slate.js | 33 + src/common/themes/spruce.js | 33 + src/common/themes/theSixtiesUSA.js | 33 + src/common/themes/tokyoDark.js | 33 + src/common/themes/tooSexy.js | 33 + src/common/themes/travel.js | 33 + src/common/themes/vaporTeal.js | 33 + src/common/themes/vermillion.js | 33 + src/common/themes/violetDark.js | 33 + src/common/themes/water.js | 33 + src/{components => }/common/utils/index.js | 0 .../common/utils/index.spec.js | 0 src/{components => }/index.js | 1 - test/utils.js | 4 +- 193 files changed, 2027 insertions(+), 146 deletions(-) rename src/{components => }/Anchor/Anchor.js (100%) rename src/{components => }/Anchor/Anchor.mdx (100%) rename src/{components => }/Anchor/Anchor.spec.js (100%) rename src/{components => }/Anchor/Anchor.stories.js (100%) rename src/{components => }/AppBar/AppBar.js (100%) rename src/{components => }/AppBar/AppBar.mdx (100%) rename src/{components => }/AppBar/AppBar.spec.js (100%) rename src/{components => }/AppBar/AppBar.stories.js (100%) rename src/{components => }/Avatar/Avatar.js (100%) rename src/{components => }/Avatar/Avatar.mdx (100%) rename src/{components => }/Avatar/Avatar.spec.js (97%) rename src/{components => }/Avatar/Avatar.stories.js (100%) rename src/{components => }/Bar/Bar.js (100%) rename src/{components => }/Bar/Bar.mdx (100%) rename src/{components => }/Bar/Bar.spec.js (95%) rename src/{components => }/Bar/Bar.stories.js (100%) rename src/{components => }/Button/Button.js (100%) rename src/{components => }/Button/Button.mdx (100%) rename src/{components => }/Button/Button.spec.js (98%) rename src/{components => }/Button/Button.stories.js (100%) rename src/{components => }/Checkbox/Checkbox.js (100%) rename src/{components => }/Checkbox/Checkbox.mdx (100%) rename src/{components => }/Checkbox/Checkbox.spec.js (98%) rename src/{components => }/Checkbox/Checkbox.stories.js (100%) rename src/{components => }/ColorInput/ColorInput.js (100%) rename src/{components => }/ColorInput/ColorInput.spec.js (97%) rename src/{components => }/ColorInput/ColorInput.stories.js (100%) rename src/{components => }/Cutout/Cutout.js (100%) rename src/{components => }/Cutout/Cutout.mdx (100%) rename src/{components => }/Cutout/Cutout.spec.js (100%) rename src/{components => }/Cutout/Cutout.stories.js (100%) rename src/{components => }/DatePicker/DatePicker.js (100%) rename src/{components => }/DatePicker/DatePicker.mdx (100%) rename src/{components => }/DatePicker/DatePicker.stories.js (100%) rename src/{components => }/Divider/Divider.js (100%) rename src/{components => }/Divider/Divider.mdx (100%) rename src/{components => }/Divider/Divider.spec.js (97%) rename src/{components => }/Divider/Divider.stories.js (100%) rename src/{components => }/Fieldset/Fieldset.js (100%) rename src/{components => }/Fieldset/Fieldset.mdx (100%) rename src/{components => }/Fieldset/Fieldset.spec.js (96%) rename src/{components => }/Fieldset/Fieldset.stories.js (100%) rename src/{components => }/Hourglass/Hourglass.js (100%) rename src/{components => }/Hourglass/Hourglass.mdx (100%) rename src/{components => }/Hourglass/Hourglass.spec.js (100%) rename src/{components => }/Hourglass/Hourglass.stories.js (100%) rename src/{components => }/Hourglass/base64hourglass.js (100%) rename src/{components => }/List/List.js (100%) rename src/{components => }/List/List.mdx (100%) rename src/{components => }/List/List.spec.js (95%) rename src/{components => }/List/List.stories.js (100%) rename src/{components => }/ListItem/ListItem.js (100%) rename src/{components => }/ListItem/ListItem.mdx (100%) rename src/{components => }/ListItem/ListItem.spec.js (98%) rename src/{components => }/LoadingIndicator/LoadingIndicator.js (100%) rename src/{components => }/LoadingIndicator/LoadingIndicator.spec.js (92%) rename src/{components => }/LoadingIndicator/LoadingIndicator.stories.js (100%) rename src/{components => }/NumberField/NumberField.js (100%) rename src/{components => }/NumberField/NumberField.mdx (100%) rename src/{components => }/NumberField/NumberField.spec.js (98%) rename src/{components => }/NumberField/NumberField.stories.js (100%) rename src/{components => }/Panel/Panel.js (100%) rename src/{components => }/Panel/Panel.spec.js (100%) rename src/{components => }/Panel/Panel.stories.js (100%) rename src/{components => }/Progress/Progress.js (100%) rename src/{components => }/Progress/Progress.mdx (100%) rename src/{components => }/Progress/Progress.spec.js (97%) rename src/{components => }/Progress/Progress.stories.js (100%) rename src/{components => }/Radio/Radio.js (100%) rename src/{components => }/Radio/Radio.mdx (100%) rename src/{components => }/Radio/Radio.spec.js (97%) rename src/{components => }/Radio/Radio.stories.js (100%) rename src/{components => }/Select/Select.js (100%) rename src/{components => }/Select/Select.mdx (100%) rename src/{components => }/Select/Select.spec.js (99%) rename src/{components => }/Select/Select.stories.js (100%) rename src/{components => }/Select/Select.styles.js (100%) rename src/{components => }/Slider/Slider.js (100%) rename src/{components => }/Slider/Slider.spec.js (99%) rename src/{components => }/Slider/Slider.stories.js (100%) rename src/{components => }/SwitchBase/SwitchBase.js (100%) rename src/{components => }/Tab/Tab.js (100%) rename src/{components => }/Tab/Tab.spec.js (94%) rename src/{components => }/TabBody/TabBody.js (100%) rename src/{components => }/TabBody/TabBody.spec.js (86%) rename src/{components => }/Table/Table.js (100%) rename src/{components => }/Table/Table.mdx (100%) rename src/{components => }/Table/Table.spec.js (91%) rename src/{components => }/Table/Table.stories.js (100%) rename src/{components => }/TableBody/TableBody.js (100%) rename src/{components => }/TableBody/TableBody.spec.js (92%) rename src/{components => }/TableDataCell/TableDataCell.js (100%) rename src/{components => }/TableDataCell/TableDataCell.spec.js (92%) rename src/{components => }/TableHead/TableHead.js (100%) rename src/{components => }/TableHead/TableHead.spec.js (92%) rename src/{components => }/TableHeadCell/TableHeadCell.js (100%) rename src/{components => }/TableHeadCell/TableHeadCell.spec.js (96%) rename src/{components => }/TableRow/TableRow.js (100%) rename src/{components => }/TableRow/TableRow.spec.js (92%) rename src/{components => }/Tabs/Tabs.js (100%) rename src/{components => }/Tabs/Tabs.mdx (100%) rename src/{components => }/Tabs/Tabs.spec.js (97%) rename src/{components => }/Tabs/Tabs.stories.js (100%) rename src/{components => }/TextField/TextField.js (100%) rename src/{components => }/TextField/TextField.mdx (100%) rename src/{components => }/TextField/TextField.spec.js (98%) rename src/{components => }/TextField/TextField.stories.js (100%) rename src/{components => }/Toolbar/Toolbar.js (100%) rename src/{components => }/Toolbar/Toolbar.spec.js (100%) rename src/{components => }/Tooltip/Tooltip.js (100%) rename src/{components => }/Tooltip/Tooltip.mdx (100%) rename src/{components => }/Tooltip/Tooltip.spec.js (100%) rename src/{components => }/Tooltip/Tooltip.stories.js (100%) rename src/{components => }/Window/Window.js (100%) rename src/{components => }/Window/Window.mdx (100%) rename src/{components => }/Window/Window.spec.js (94%) rename src/{components => }/Window/Window.stories.js (100%) rename src/{components => }/WindowContent/WindowContent.js (100%) rename src/{components => }/WindowContent/WindowContent.spec.js (91%) rename src/{components => }/WindowHeader/WindowHeader.js (100%) rename src/{components => }/WindowHeader/WindowHeader.spec.js (95%) rename src/{components => }/assets/fonts/Digital-Clock.eot (100%) rename src/{components => }/assets/fonts/Digital-Clock.ttf (100%) rename src/{components => }/assets/fonts/Digital-Clock.woff (100%) rename src/{components => }/assets/fonts/Digital-Clock.woff2 (100%) rename src/{components => }/assets/fonts/MS-Sans-Serif.eot (100%) rename src/{components => }/assets/fonts/MS-Sans-Serif.svg (100%) rename src/{components => }/assets/fonts/MS-Sans-Serif.ttf (100%) rename src/{components => }/assets/fonts/MS-Sans-Serif.woff (100%) rename src/{components => }/assets/fonts/MS-Sans-Serif.woff2 (100%) rename src/{components => }/assets/fonts/px_icons.woff2 (100%) rename src/{components => }/assets/fonts/px_sans_nouveaux.eot (100%) rename src/{components => }/assets/fonts/px_sans_nouveaux.svg (100%) rename src/{components => }/assets/fonts/px_sans_nouveaux.ttf (100%) rename src/{components => }/assets/fonts/px_sans_nouveaux.woff (100%) rename src/{components => }/assets/fonts/px_sans_nouveaux.woff2 (100%) rename src/{components => }/assets/images/logo.png (100%) rename src/{components => }/assets/images/logo.psd (100%) rename src/{components => }/common/hooks/useControlledOrUncontrolled.js (100%) rename src/{components => }/common/hooks/useForkRef.js (100%) rename src/{components => }/common/hooks/useForkRef.spec.js (100%) rename src/{components => }/common/hooks/useIsFocusVisible.js (100%) rename src/{components => }/common/index.js (100%) rename src/{components => }/common/styleReset.js (100%) rename src/{components => }/common/system.js (100%) create mode 100644 src/common/themes/azureOrange.js create mode 100644 src/common/themes/bee.js create mode 100644 src/common/themes/blackAndWhite.js create mode 100644 src/common/themes/brick.js create mode 100644 src/common/themes/candy.js create mode 100644 src/common/themes/coldGray.js create mode 100644 src/common/themes/counterStrike.js create mode 100644 src/common/themes/eggplant.js create mode 100644 src/common/themes/highContrast.js create mode 100644 src/common/themes/index.js create mode 100644 src/common/themes/lilac.js create mode 100644 src/common/themes/lilacRoseDark.js create mode 100644 src/common/themes/maple.js create mode 100644 src/common/themes/marine.js create mode 100644 src/common/themes/matrix.js create mode 100644 src/common/themes/millenium.js create mode 100644 src/common/themes/modernDark.js create mode 100644 src/common/themes/molecule.js create mode 100644 src/common/themes/ninjaTurtles.js create mode 100644 src/common/themes/olive.js create mode 100644 src/common/themes/original.js create mode 100644 src/common/themes/pamelaAnderson.js create mode 100644 src/common/themes/plum.js create mode 100644 src/common/themes/rainyDay.js create mode 100644 src/common/themes/rose.js create mode 100644 src/common/themes/slate.js create mode 100644 src/common/themes/spruce.js create mode 100644 src/common/themes/theSixtiesUSA.js create mode 100644 src/common/themes/tokyoDark.js create mode 100644 src/common/themes/tooSexy.js create mode 100644 src/common/themes/travel.js create mode 100644 src/common/themes/vaporTeal.js create mode 100644 src/common/themes/vermillion.js create mode 100644 src/common/themes/violetDark.js create mode 100644 src/common/themes/water.js rename src/{components => }/common/utils/index.js (100%) rename src/{components => }/common/utils/index.spec.js (100%) rename src/{components => }/index.js (97%) diff --git a/.gitignore b/.gitignore index bdf7f772..5d6f7f63 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,12 @@ # testing /coverage -# production +# library build +/cjs +/esm +/themes +/images +/fonts /dist # storybook diff --git a/.storybook/config.js b/.storybook/config.js index b5db2a25..67b33393 100644 --- a/.storybook/config.js +++ b/.storybook/config.js @@ -1,8 +1,36 @@ import { configure, addDecorator } from '@storybook/react'; import { withThemesProvider } from 'storybook-addon-styled-component-theme'; -import themes from '../src/components/common/themes'; +import themes from '../src/common/themes'; import GlobalStyle from './decorators/globalStyle'; +const { + original, + rainyDay, + vaporTeal, + theSixtiesUSA, + olive, + tokyoDark, + rose, + plum, + matrix, + travel, + ...otherThemes +} = themes; + +const reorderedThemes = { + original, + rainyDay, + vaporTeal, + theSixtiesUSA, + olive, + tokyoDark, + rose, + plum, + matrix, + travel, + ...otherThemes +}; + addDecorator(GlobalStyle); -addDecorator(withThemesProvider(Object.values(themes))); +addDecorator(withThemesProvider(Object.values(reorderedThemes))); configure(require.context('../src/', true, /\.stories\.js$/), module); diff --git a/.storybook/decorators/globalStyle.js b/.storybook/decorators/globalStyle.js index a2763e6c..82da373d 100644 --- a/.storybook/decorators/globalStyle.js +++ b/.storybook/decorators/globalStyle.js @@ -1,8 +1,8 @@ import React from 'react'; import { createGlobalStyle } from 'styled-components'; -import styleReset from '../../src/components/common/styleReset'; -import MSSansSerif from '../../src/components/assets/fonts/MS-Sans-Serif.woff2'; +import styleReset from '../../src/common/styleReset'; +import MSSansSerif from '../../src/assets/fonts/MS-Sans-Serif.woff2'; const GlobalStyle = createGlobalStyle` ${styleReset} diff --git a/.storybook/webpack.config.js b/.storybook/webpack.config.js index b25d4d5f..f671379c 100644 --- a/.storybook/webpack.config.js +++ b/.storybook/webpack.config.js @@ -10,7 +10,7 @@ module.exports = ({ config }) => { config.resolve = Object.assign(config.resolve, { alias: { ...config.resolve.alias, - react95: path.resolve(__dirname, '../src/components/index') + react95: path.resolve(__dirname, '../src/index') } }); diff --git a/README.md b/README.md index 3ccb54ed..3bbd5dc3 100644 --- a/README.md +++ b/README.md @@ -44,16 +44,28 @@ Apply style reset, wrap your app content with ThemeProvider with theme of your c ```jsx import React from 'react'; import { createGlobalStyle, ThemeProvider } from 'styled-components'; -import { styleReset, themes, List, ListItem, Divider } from 'react95'; + +import { styleReset, List, ListItem, Divider } from 'react95'; +// pick a theme of your choice +import original from "react95/dist/themes/original"; +// original Windows95 font (optionally) +import MSSansSerif from "react95/dist/fonts/MS-Sans-Serif.woff2"; const GlobalStyles = createGlobalStyle` + @font-face { + font-family: 'MS-Sans-Serif'; + src: url('${MSSansSerif}') format('woff2'); + } + body { + font-family: "MS-Sans-Serif"; + } ${styleReset} `; const App = () => (
- + 🎤 Sing 💃🏻 Dance diff --git a/docs/usage.mdx b/docs/usage.mdx index 28d61307..9d8cac04 100644 --- a/docs/usage.mdx +++ b/docs/usage.mdx @@ -11,16 +11,28 @@ Apply style reset, wrap your app content with ThemeProvider with theme of your c ```jsx import React from 'react'; import { createGlobalStyle, ThemeProvider } from 'styled-components'; -import { reset, themes, List, ListItem, Divider } from 'react95'; -const ResetStyles = createGlobalStyle` - ${reset} +import { styleReset, List, ListItem, Divider } from 'react95'; +// pick a theme of your choice +import original from "react95/dist/themes/original"; +// original Windows95 font (optionally) +import MSSansSerif from "react95/dist/fonts/MS-Sans-Serif.woff2"; + +const GlobalStyles = createGlobalStyle` + @font-face { + font-family: 'MS-Sans-Serif'; + src: url('${MSSansSerif}') format('woff2'); + } + body { + font-family: "MS-Sans-Serif"; + } + ${styleReset} `; const App = () => (
- - + + 🎤 Sing 💃🏻 Dance diff --git a/package-lock.json b/package-lock.json index a29e7870..a5835bdb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6747,6 +6747,12 @@ "integrity": "sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==", "dev": true }, + "@types/minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-aaI6OtKcrwCX8G7aWbNh7i8GOfY=", + "dev": true + }, "@types/mkdirp": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/@types/mkdirp/-/mkdirp-0.5.2.tgz", @@ -11464,6 +11470,12 @@ "simple-swizzle": "^0.2.2" } }, + "colorette": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.2.0.tgz", + "integrity": "sha512-soRSroY+OF/8OdA3PTQXwaDJeMc7TfknKKrxeSCencL2a4+Tx5zhxmmv7hdpCjhKBjehzp8+bwe/T68K0hpIjw==", + "dev": true + }, "colors": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", @@ -11999,23 +12011,216 @@ } }, "conventional-changelog-writer": { - "version": "4.0.11", - "resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-4.0.11.tgz", - "integrity": "sha512-g81GQOR392I+57Cw3IyP1f+f42ME6aEkbR+L7v1FBBWolB0xkjKTeCWVguzRrp6UiT1O6gBpJbEy2eq7AnV1rw==", + "version": "4.0.16", + "resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-4.0.16.tgz", + "integrity": "sha512-jmU1sDJDZpm/dkuFxBeRXvyNcJQeKhGtVcFFkwTphUAzyYWcwz2j36Wcv+Mv2hU3tpvLMkysOPXJTLO55AUrYQ==", "dev": true, "requires": { "compare-func": "^1.3.1", - "conventional-commits-filter": "^2.0.2", + "conventional-commits-filter": "^2.0.6", "dateformat": "^3.0.0", - "handlebars": "^4.4.0", + "handlebars": "^4.7.6", "json-stringify-safe": "^5.0.1", "lodash": "^4.17.15", - "meow": "^5.0.0", + "meow": "^7.0.0", "semver": "^6.0.0", "split": "^1.0.0", "through2": "^3.0.0" }, "dependencies": { + "arrify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-2.0.1.tgz", + "integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==", + "dev": true + }, + "camelcase": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.0.0.tgz", + "integrity": "sha512-8KMDF1Vz2gzOq54ONPJS65IvTUaB1cHJ2DMM7MbPmLZljDH1qpzzLsWdiN9pHh6qvkRVDTi/07+eNGch/oLU4w==", + "dev": true + }, + "camelcase-keys": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz", + "integrity": "sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==", + "dev": true, + "requires": { + "camelcase": "^5.3.1", + "map-obj": "^4.0.0", + "quick-lru": "^4.0.1" + }, + "dependencies": { + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true + } + } + }, + "conventional-commits-filter": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-2.0.6.tgz", + "integrity": "sha512-4g+sw8+KA50/Qwzfr0hL5k5NWxqtrOVw4DDk3/h6L85a9Gz0/Eqp3oP+CWCNfesBvZZZEFHF7OTEbRe+yYSyKw==", + "dev": true, + "requires": { + "lodash.ismatch": "^4.4.0", + "modify-values": "^1.0.0" + } + }, + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "requires": { + "p-locate": "^4.1.0" + } + }, + "map-obj": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.1.0.tgz", + "integrity": "sha512-glc9y00wgtwcDmp7GaE/0b0OnxpNJsVf3ael/An6Fe2Q51LLwN1er6sdomLRzz5h0+yMpiYLhWYF5R7HeqVd4g==", + "dev": true + }, + "meow": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/meow/-/meow-7.0.1.tgz", + "integrity": "sha512-tBKIQqVrAHqwit0vfuFPY3LlzJYkEOFyKa3bPgxzNl6q/RtN8KQ+ALYEASYuFayzSAsjlhXj/JZ10rH85Q6TUw==", + "dev": true, + "requires": { + "@types/minimist": "^1.2.0", + "arrify": "^2.0.1", + "camelcase": "^6.0.0", + "camelcase-keys": "^6.2.2", + "decamelize-keys": "^1.1.0", + "hard-rejection": "^2.1.0", + "minimist-options": "^4.0.2", + "normalize-package-data": "^2.5.0", + "read-pkg-up": "^7.0.1", + "redent": "^3.0.0", + "trim-newlines": "^3.0.0", + "type-fest": "^0.13.1", + "yargs-parser": "^18.1.3" + } + }, + "minimist-options": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz", + "integrity": "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==", + "dev": true, + "requires": { + "arrify": "^1.0.1", + "is-plain-obj": "^1.1.0", + "kind-of": "^6.0.3" + }, + "dependencies": { + "arrify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", + "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", + "dev": true + } + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "requires": { + "p-limit": "^2.2.0" + } + }, + "parse-json": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.0.0.tgz", + "integrity": "sha512-OOY5b7PAEFV0E2Fir1KOkxchnZNCdowAJgQ5NuxjpBKTRP3pQhwkrkxqQjeoKJ+fO7bCpmIZaogI4eZGDMEGOw==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-better-errors": "^1.0.1", + "lines-and-columns": "^1.1.6" + } + }, + "path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true + }, + "quick-lru": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz", + "integrity": "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==", + "dev": true + }, + "read-pkg": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", + "dev": true, + "requires": { + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" + }, + "dependencies": { + "type-fest": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", + "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", + "dev": true + } + } + }, + "read-pkg-up": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", + "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", + "dev": true, + "requires": { + "find-up": "^4.1.0", + "read-pkg": "^5.2.0", + "type-fest": "^0.8.1" + }, + "dependencies": { + "type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "dev": true + } + } + }, "semver": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", @@ -12030,6 +12235,36 @@ "requires": { "readable-stream": "2 || 3" } + }, + "trim-newlines": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.0.tgz", + "integrity": "sha512-C4+gOpvmxaSMKuEf9Qc134F1ZuOHVXKRbtEflf4NTtuuJDEIJ9p5PXsalL8SkeRw+qit1Mo+yuvMPAKwWg/1hA==", + "dev": true + }, + "type-fest": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz", + "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==", + "dev": true + }, + "yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dev": true, + "requires": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "dependencies": { + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true + } + } } } }, @@ -12050,20 +12285,203 @@ } }, "conventional-commits-parser": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-3.0.8.tgz", - "integrity": "sha512-YcBSGkZbYp7d+Cr3NWUeXbPDFUN6g3SaSIzOybi8bjHL5IJ5225OSCxJJ4LgziyEJ7AaJtE9L2/EU6H7Nt/DDQ==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-3.1.0.tgz", + "integrity": "sha512-RSo5S0WIwXZiRxUGTPuYFbqvrR4vpJ1BDdTlthFgvHt5kEdnd1+pdvwWphWn57/oIl4V72NMmOocFqqJ8mFFhA==", "dev": true, "requires": { "JSONStream": "^1.0.4", "is-text-path": "^1.0.1", "lodash": "^4.17.15", - "meow": "^5.0.0", + "meow": "^7.0.0", "split2": "^2.0.0", "through2": "^3.0.0", "trim-off-newlines": "^1.0.0" }, "dependencies": { + "arrify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-2.0.1.tgz", + "integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==", + "dev": true + }, + "camelcase": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.0.0.tgz", + "integrity": "sha512-8KMDF1Vz2gzOq54ONPJS65IvTUaB1cHJ2DMM7MbPmLZljDH1qpzzLsWdiN9pHh6qvkRVDTi/07+eNGch/oLU4w==", + "dev": true + }, + "camelcase-keys": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz", + "integrity": "sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==", + "dev": true, + "requires": { + "camelcase": "^5.3.1", + "map-obj": "^4.0.0", + "quick-lru": "^4.0.1" + }, + "dependencies": { + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true + } + } + }, + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "requires": { + "p-locate": "^4.1.0" + } + }, + "map-obj": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.1.0.tgz", + "integrity": "sha512-glc9y00wgtwcDmp7GaE/0b0OnxpNJsVf3ael/An6Fe2Q51LLwN1er6sdomLRzz5h0+yMpiYLhWYF5R7HeqVd4g==", + "dev": true + }, + "meow": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/meow/-/meow-7.0.1.tgz", + "integrity": "sha512-tBKIQqVrAHqwit0vfuFPY3LlzJYkEOFyKa3bPgxzNl6q/RtN8KQ+ALYEASYuFayzSAsjlhXj/JZ10rH85Q6TUw==", + "dev": true, + "requires": { + "@types/minimist": "^1.2.0", + "arrify": "^2.0.1", + "camelcase": "^6.0.0", + "camelcase-keys": "^6.2.2", + "decamelize-keys": "^1.1.0", + "hard-rejection": "^2.1.0", + "minimist-options": "^4.0.2", + "normalize-package-data": "^2.5.0", + "read-pkg-up": "^7.0.1", + "redent": "^3.0.0", + "trim-newlines": "^3.0.0", + "type-fest": "^0.13.1", + "yargs-parser": "^18.1.3" + } + }, + "minimist-options": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz", + "integrity": "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==", + "dev": true, + "requires": { + "arrify": "^1.0.1", + "is-plain-obj": "^1.1.0", + "kind-of": "^6.0.3" + }, + "dependencies": { + "arrify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", + "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", + "dev": true + } + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "requires": { + "p-limit": "^2.2.0" + } + }, + "parse-json": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.0.0.tgz", + "integrity": "sha512-OOY5b7PAEFV0E2Fir1KOkxchnZNCdowAJgQ5NuxjpBKTRP3pQhwkrkxqQjeoKJ+fO7bCpmIZaogI4eZGDMEGOw==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-better-errors": "^1.0.1", + "lines-and-columns": "^1.1.6" + } + }, + "path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true + }, + "quick-lru": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz", + "integrity": "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==", + "dev": true + }, + "read-pkg": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", + "dev": true, + "requires": { + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" + }, + "dependencies": { + "type-fest": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", + "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", + "dev": true + } + } + }, + "read-pkg-up": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", + "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", + "dev": true, + "requires": { + "find-up": "^4.1.0", + "read-pkg": "^5.2.0", + "type-fest": "^0.8.1" + }, + "dependencies": { + "type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "dev": true + } + } + }, "through2": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/through2/-/through2-3.0.1.tgz", @@ -12072,6 +12490,36 @@ "requires": { "readable-stream": "2 || 3" } + }, + "trim-newlines": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.0.tgz", + "integrity": "sha512-C4+gOpvmxaSMKuEf9Qc134F1ZuOHVXKRbtEflf4NTtuuJDEIJ9p5PXsalL8SkeRw+qit1Mo+yuvMPAKwWg/1hA==", + "dev": true + }, + "type-fest": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz", + "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==", + "dev": true + }, + "yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dev": true, + "requires": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "dependencies": { + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true + } + } } } }, @@ -17081,28 +17529,28 @@ "dependencies": { "abbrev": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "resolved": false, "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", "dev": true, "optional": true }, "ansi-regex": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "resolved": false, "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", "dev": true, "optional": true }, "aproba": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", + "resolved": false, "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", "dev": true, "optional": true }, "are-we-there-yet": { "version": "1.1.5", - "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz", + "resolved": false, "integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==", "dev": true, "optional": true, @@ -17113,14 +17561,14 @@ }, "balanced-match": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "resolved": false, "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", "dev": true, "optional": true }, "brace-expansion": { "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "resolved": false, "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, "optional": true, @@ -17131,28 +17579,28 @@ }, "code-point-at": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", + "resolved": false, "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", "dev": true, "optional": true }, "concat-map": { "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "resolved": false, "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", "dev": true, "optional": true }, "console-control-strings": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", + "resolved": false, "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", "dev": true, "optional": true }, "core-util-is": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "resolved": false, "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", "dev": true, "optional": true @@ -17169,21 +17617,21 @@ }, "deep-extend": { "version": "0.6.0", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "resolved": false, "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", "dev": true, "optional": true }, "delegates": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", + "resolved": false, "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", "dev": true, "optional": true }, "detect-libc": { "version": "1.0.3", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", + "resolved": false, "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=", "dev": true, "optional": true @@ -17200,14 +17648,14 @@ }, "fs.realpath": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "resolved": false, "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", "dev": true, "optional": true }, "gauge": { "version": "2.7.4", - "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", + "resolved": false, "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", "dev": true, "optional": true, @@ -17239,14 +17687,14 @@ }, "has-unicode": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", + "resolved": false, "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", "dev": true, "optional": true }, "iconv-lite": { "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "resolved": false, "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", "dev": true, "optional": true, @@ -17266,7 +17714,7 @@ }, "inflight": { "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "resolved": false, "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "dev": true, "optional": true, @@ -17284,14 +17732,14 @@ }, "ini": { "version": "1.3.5", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", + "resolved": false, "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", "dev": true, "optional": true }, "is-fullwidth-code-point": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "resolved": false, "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", "dev": true, "optional": true, @@ -17301,14 +17749,14 @@ }, "isarray": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "resolved": false, "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", "dev": true, "optional": true }, "minimatch": { "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "resolved": false, "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, "optional": true, @@ -17377,7 +17825,7 @@ }, "nopt": { "version": "4.0.1", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.1.tgz", + "resolved": false, "integrity": "sha1-0NRoWv1UFRk8jHUFYC0NF81kR00=", "dev": true, "optional": true, @@ -17406,7 +17854,7 @@ }, "npmlog": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", + "resolved": false, "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", "dev": true, "optional": true, @@ -17419,21 +17867,21 @@ }, "number-is-nan": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", + "resolved": false, "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", "dev": true, "optional": true }, "object-assign": { "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "resolved": false, "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", "dev": true, "optional": true }, "once": { "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "resolved": false, "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "dev": true, "optional": true, @@ -17443,21 +17891,21 @@ }, "os-homedir": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", + "resolved": false, "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", "dev": true, "optional": true }, "os-tmpdir": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "resolved": false, "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", "dev": true, "optional": true }, "osenv": { "version": "0.1.5", - "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz", + "resolved": false, "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", "dev": true, "optional": true, @@ -17468,7 +17916,7 @@ }, "path-is-absolute": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "resolved": false, "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", "dev": true, "optional": true @@ -17482,7 +17930,7 @@ }, "rc": { "version": "1.2.8", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", + "resolved": false, "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", "dev": true, "optional": true, @@ -17504,7 +17952,7 @@ }, "readable-stream": { "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", + "resolved": false, "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", "dev": true, "optional": true, @@ -17530,21 +17978,21 @@ }, "safe-buffer": { "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "resolved": false, "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", "dev": true, "optional": true }, "safer-buffer": { "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "resolved": false, "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", "dev": true, "optional": true }, "sax": { "version": "1.2.4", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", + "resolved": false, "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", "dev": true, "optional": true @@ -17558,21 +18006,21 @@ }, "set-blocking": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "resolved": false, "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", "dev": true, "optional": true }, "signal-exit": { "version": "3.0.2", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", + "resolved": false, "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", "dev": true, "optional": true }, "string-width": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "resolved": false, "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "dev": true, "optional": true, @@ -17584,7 +18032,7 @@ }, "string_decoder": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "resolved": false, "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "dev": true, "optional": true, @@ -17594,7 +18042,7 @@ }, "strip-ansi": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "resolved": false, "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "dev": true, "optional": true, @@ -17604,7 +18052,7 @@ }, "strip-json-comments": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "resolved": false, "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", "dev": true, "optional": true @@ -17627,14 +18075,14 @@ }, "util-deprecate": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "resolved": false, "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", "dev": true, "optional": true }, "wide-align": { "version": "1.1.3", - "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", + "resolved": false, "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", "dev": true, "optional": true, @@ -17644,7 +18092,7 @@ }, "wrappy": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "resolved": false, "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "dev": true, "optional": true @@ -24229,12 +24677,6 @@ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true - }, - "wordwrap": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", - "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", - "dev": true } } }, @@ -24254,6 +24696,12 @@ "har-schema": "^2.0.0" } }, + "hard-rejection": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz", + "integrity": "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==", + "dev": true + }, "has": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", @@ -24904,9 +25352,9 @@ "dev": true }, "http-proxy": { - "version": "1.18.0", - "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.0.tgz", - "integrity": "sha512-84I2iJM/n1d4Hdgc6y2+qY5mDaz2PUVjlg9znE9byl+q0uC3DeByqBGReQu5tpLK0TAqTIXScRUV+dg7+bUPpQ==", + "version": "1.18.1", + "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", + "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", "dev": true, "requires": { "eventemitter3": "^4.0.0", @@ -38438,6 +38886,157 @@ "rollup-pluginutils": "^2.6.0" } }, + "rollup-plugin-copy": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/rollup-plugin-copy/-/rollup-plugin-copy-3.3.0.tgz", + "integrity": "sha512-euDjCUSBXZa06nqnwCNADbkAcYDfzwowfZQkto9K/TFhiH+QG7I4PUsEMwM9tDgomGWJc//z7KLW8t+tZwxADA==", + "dev": true, + "requires": { + "@types/fs-extra": "^8.0.1", + "colorette": "^1.1.0", + "fs-extra": "^8.1.0", + "globby": "10.0.1", + "is-plain-object": "^3.0.0" + }, + "dependencies": { + "@nodelib/fs.stat": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.3.tgz", + "integrity": "sha512-bQBFruR2TAwoevBEd/NWMoAAtNGzTRgdrqnYCc7dhzfoNvqPzLyqlEQnzZ3kVnNrSp25iyxE00/3h2fqGAGArA==", + "dev": true + }, + "array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true + }, + "braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "requires": { + "fill-range": "^7.0.1" + } + }, + "dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "requires": { + "path-type": "^4.0.0" + } + }, + "fast-glob": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.2.tgz", + "integrity": "sha512-UDV82o4uQyljznxwMxyVRJgZZt3O5wENYojjzbaGEGZgeOxkLFf+V4cnUD+krzb2F72E18RhamkMZ7AdeggF7A==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.0", + "merge2": "^1.3.0", + "micromatch": "^4.0.2", + "picomatch": "^2.2.1" + } + }, + "fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "requires": { + "to-regex-range": "^5.0.1" + } + }, + "glob-parent": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz", + "integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==", + "dev": true, + "requires": { + "is-glob": "^4.0.1" + } + }, + "globby": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/globby/-/globby-10.0.1.tgz", + "integrity": "sha512-sSs4inE1FB2YQiymcmTv6NWENryABjUNPeWhOvmn4SjtKybglsyPZxFB3U1/+L1bYi0rNZDqCLlHyLYDl1Pq5A==", + "dev": true, + "requires": { + "@types/glob": "^7.1.1", + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.0.3", + "glob": "^7.1.3", + "ignore": "^5.1.1", + "merge2": "^1.2.3", + "slash": "^3.0.0" + } + }, + "ignore": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.6.tgz", + "integrity": "sha512-cgXgkypZBcCnOgSihyeqbo6gjIaIyDqPQB7Ra4vhE9m6kigdGoQDMHjviFhRZo3IMlRy6yElosoviMs5YxZXUA==", + "dev": true + }, + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true + }, + "is-plain-object": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-3.0.0.tgz", + "integrity": "sha512-tZIpofR+P05k8Aocp7UI/2UTa9lTJSebCXpFFoR9aibpokDj/uXBsJ8luUu0tTVYKkMU6URDUuOfJZ7koewXvg==", + "dev": true, + "requires": { + "isobject": "^4.0.0" + } + }, + "isobject": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-4.0.0.tgz", + "integrity": "sha512-S/2fF5wH8SJA/kmwr6HYhK/RI/OkhD84k8ntalo0iJjZikgq1XFvR5M8NPT1x5F7fBwCG3qHfnzeP/Vh/ZxCUA==", + "dev": true + }, + "micromatch": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz", + "integrity": "sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==", + "dev": true, + "requires": { + "braces": "^3.0.1", + "picomatch": "^2.0.5" + } + }, + "path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true + }, + "slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true + }, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "requires": { + "is-number": "^7.0.0" + } + } + } + }, "rollup-plugin-node-resolve": { "version": "4.2.4", "resolved": "https://registry.npmjs.org/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-4.2.4.tgz", @@ -39152,9 +39751,9 @@ } }, "yargs-parser": { - "version": "18.1.0", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.0.tgz", - "integrity": "sha512-o/Jr6JBOv6Yx3pL+5naWSoIA2jJ+ZkMYQG/ie9qFbukBe4uzmBatlXFOiu/tNKRWEtyf+n5w7jc/O16ufqOTdQ==", + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", "dev": true, "requires": { "camelcase": "^5.0.0", @@ -42243,14 +42842,13 @@ "dev": true }, "uglify-js": { - "version": "3.7.6", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.7.6.tgz", - "integrity": "sha512-yYqjArOYSxvqeeiYH2VGjZOqq6SVmhxzaPjJC1W2F9e+bqvFL9QXQ2osQuKUFjM2hGjKG2YclQnRKWQSt/nOTQ==", + "version": "3.9.3", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.9.3.tgz", + "integrity": "sha512-r5ImcL6QyzQGVimQoov3aL2ZScywrOgBXGndbWrdehKoSvGe/RmiE5Jpw/v+GvxODt6l2tpBXwA7n+qZVlHBMA==", "dev": true, "optional": true, "requires": { - "commander": "~2.20.3", - "source-map": "~0.6.1" + "commander": "~2.20.3" }, "dependencies": { "commander": { @@ -42259,13 +42857,6 @@ "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", "dev": true, "optional": true - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "optional": true } } }, @@ -44145,6 +44736,12 @@ "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", "dev": true }, + "wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", + "dev": true + }, "worker-farm": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/worker-farm/-/worker-farm-1.7.0.tgz", diff --git a/package.json b/package.json index a4babd4c..d61ac64d 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,8 @@ "license": "MIT", "repository": "git@github.com:arturbien/React95.git", "homepage": "https://react95.io", - "main": "./dist/index.js", + "main": "./dist/cjs/index.js", + "module": "./dist/esm/index.js", "files": [ "/dist" ], @@ -25,7 +26,7 @@ "scripts": { "storybook": "start-storybook -p 9009 -s public", "build:storybook": "build-storybook -s public -o ./storybook", - "build": "npm run build:prod", + "build": "rm -rf dist && npm run build:prod", "build:dev": "cross-env NODE_ENV=development rollup -c", "build:prod": "cross-env NODE_ENV=production rollup -c", "test": "jest ./src", @@ -72,9 +73,9 @@ "eslint-plugin-prettier": "^3.1.2", "eslint-plugin-react": "^7.19.0", "firebase-tools": "^7.15.0", + "gatsby-theme-docz": "^2.2.0", "husky": "^3.1.0", "jest": "^24.9.0", - "gatsby-theme-docz": "^2.2.0", "jest-styled-components": "^6.3.4", "lint-staged": "^9.5.0", "prettier": "^1.19.1", @@ -85,6 +86,7 @@ "rollup": "^1.32.1", "rollup-plugin-babel": "^4.4.0", "rollup-plugin-commonjs": "^9.3.4", + "rollup-plugin-copy": "^3.3.0", "rollup-plugin-node-resolve": "^4.2.4", "rollup-plugin-replace": "^2.2.0", "semantic-release": "^17.0.4", diff --git a/rollup.config.js b/rollup.config.js index d225aa60..4bead60d 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -2,27 +2,60 @@ import babel from 'rollup-plugin-babel'; import commonjs from 'rollup-plugin-commonjs'; import resolve from 'rollup-plugin-node-resolve'; import replace from 'rollup-plugin-replace'; +import copy from 'rollup-plugin-copy'; +import packageJson from './package.json'; const NODE_ENV = process.env.NODE_ENV || 'development'; -const outputFile = - NODE_ENV === 'production' ? './dist/index.js' : './dist/dev.js'; -export default { - input: './src/components/index.js', - output: { - file: outputFile, - format: 'cjs' +export default [ + { + input: './src/index.js', + output: [ + { + file: packageJson.main, + format: 'cjs', + sourcemap: true + }, + { + file: packageJson.module, + format: 'esm', + sourcemap: true + } + ], + plugins: [ + replace({ + 'process.env.NODE_ENV': JSON.stringify(NODE_ENV) + }), + babel({ + exclude: 'node_modules/**', + runtimeHelpers: true + }), + resolve(), + commonjs() + ], + external: id => /^react|react-dom|styled-components/.test(id) }, - plugins: [ - replace({ - 'process.env.NODE_ENV': JSON.stringify(NODE_ENV) - }), - babel({ - exclude: 'node_modules/**', - runtimeHelpers: true - }), - resolve(), - commonjs() - ], - external: id => /^react|react-dom|styled-components/.test(id) -}; + { + input: './src/common/themes/index.js', + output: { + dir: 'dist/themes', + format: 'cjs' + }, + preserveModules: true, + plugins: [ + copy({ + targets: [{ src: './src/assets/*', dest: './dist/' }] + }), + replace({ + 'process.env.NODE_ENV': JSON.stringify(NODE_ENV) + }), + babel({ + exclude: 'node_modules/**', + runtimeHelpers: true + }), + resolve(), + commonjs() + ], + external: id => /^react|react-dom|styled-components/.test(id) + } +]; diff --git a/src/components/Anchor/Anchor.js b/src/Anchor/Anchor.js similarity index 100% rename from src/components/Anchor/Anchor.js rename to src/Anchor/Anchor.js diff --git a/src/components/Anchor/Anchor.mdx b/src/Anchor/Anchor.mdx similarity index 100% rename from src/components/Anchor/Anchor.mdx rename to src/Anchor/Anchor.mdx diff --git a/src/components/Anchor/Anchor.spec.js b/src/Anchor/Anchor.spec.js similarity index 100% rename from src/components/Anchor/Anchor.spec.js rename to src/Anchor/Anchor.spec.js diff --git a/src/components/Anchor/Anchor.stories.js b/src/Anchor/Anchor.stories.js similarity index 100% rename from src/components/Anchor/Anchor.stories.js rename to src/Anchor/Anchor.stories.js diff --git a/src/components/AppBar/AppBar.js b/src/AppBar/AppBar.js similarity index 100% rename from src/components/AppBar/AppBar.js rename to src/AppBar/AppBar.js diff --git a/src/components/AppBar/AppBar.mdx b/src/AppBar/AppBar.mdx similarity index 100% rename from src/components/AppBar/AppBar.mdx rename to src/AppBar/AppBar.mdx diff --git a/src/components/AppBar/AppBar.spec.js b/src/AppBar/AppBar.spec.js similarity index 100% rename from src/components/AppBar/AppBar.spec.js rename to src/AppBar/AppBar.spec.js diff --git a/src/components/AppBar/AppBar.stories.js b/src/AppBar/AppBar.stories.js similarity index 100% rename from src/components/AppBar/AppBar.stories.js rename to src/AppBar/AppBar.stories.js diff --git a/src/components/Avatar/Avatar.js b/src/Avatar/Avatar.js similarity index 100% rename from src/components/Avatar/Avatar.js rename to src/Avatar/Avatar.js diff --git a/src/components/Avatar/Avatar.mdx b/src/Avatar/Avatar.mdx similarity index 100% rename from src/components/Avatar/Avatar.mdx rename to src/Avatar/Avatar.mdx diff --git a/src/components/Avatar/Avatar.spec.js b/src/Avatar/Avatar.spec.js similarity index 97% rename from src/components/Avatar/Avatar.spec.js rename to src/Avatar/Avatar.spec.js index 6d5c01df..1e7235dd 100644 --- a/src/components/Avatar/Avatar.spec.js +++ b/src/Avatar/Avatar.spec.js @@ -1,7 +1,7 @@ import React from 'react'; import { render } from '@testing-library/react'; -import { renderWithTheme, theme } from '../../../test/utils'; +import { renderWithTheme, theme } from '../../test/utils'; import Avatar from './Avatar'; diff --git a/src/components/Avatar/Avatar.stories.js b/src/Avatar/Avatar.stories.js similarity index 100% rename from src/components/Avatar/Avatar.stories.js rename to src/Avatar/Avatar.stories.js diff --git a/src/components/Bar/Bar.js b/src/Bar/Bar.js similarity index 100% rename from src/components/Bar/Bar.js rename to src/Bar/Bar.js diff --git a/src/components/Bar/Bar.mdx b/src/Bar/Bar.mdx similarity index 100% rename from src/components/Bar/Bar.mdx rename to src/Bar/Bar.mdx diff --git a/src/components/Bar/Bar.spec.js b/src/Bar/Bar.spec.js similarity index 95% rename from src/components/Bar/Bar.spec.js rename to src/Bar/Bar.spec.js index 0fd88605..95ec74fa 100644 --- a/src/components/Bar/Bar.spec.js +++ b/src/Bar/Bar.spec.js @@ -1,5 +1,5 @@ import React from 'react'; -import { renderWithTheme } from '../../../test/utils'; +import { renderWithTheme } from '../../test/utils'; import Bar from './Bar'; diff --git a/src/components/Bar/Bar.stories.js b/src/Bar/Bar.stories.js similarity index 100% rename from src/components/Bar/Bar.stories.js rename to src/Bar/Bar.stories.js diff --git a/src/components/Button/Button.js b/src/Button/Button.js similarity index 100% rename from src/components/Button/Button.js rename to src/Button/Button.js diff --git a/src/components/Button/Button.mdx b/src/Button/Button.mdx similarity index 100% rename from src/components/Button/Button.mdx rename to src/Button/Button.mdx diff --git a/src/components/Button/Button.spec.js b/src/Button/Button.spec.js similarity index 98% rename from src/components/Button/Button.spec.js rename to src/Button/Button.spec.js index 6686e899..741f1c8b 100644 --- a/src/components/Button/Button.spec.js +++ b/src/Button/Button.spec.js @@ -1,7 +1,7 @@ import React from 'react'; import { render, fireEvent } from '@testing-library/react'; -import { renderWithTheme, theme } from '../../../test/utils'; +import { renderWithTheme, theme } from '../../test/utils'; import { blockSizes } from '../common/system'; import Button from './Button'; diff --git a/src/components/Button/Button.stories.js b/src/Button/Button.stories.js similarity index 100% rename from src/components/Button/Button.stories.js rename to src/Button/Button.stories.js diff --git a/src/components/Checkbox/Checkbox.js b/src/Checkbox/Checkbox.js similarity index 100% rename from src/components/Checkbox/Checkbox.js rename to src/Checkbox/Checkbox.js diff --git a/src/components/Checkbox/Checkbox.mdx b/src/Checkbox/Checkbox.mdx similarity index 100% rename from src/components/Checkbox/Checkbox.mdx rename to src/Checkbox/Checkbox.mdx diff --git a/src/components/Checkbox/Checkbox.spec.js b/src/Checkbox/Checkbox.spec.js similarity index 98% rename from src/components/Checkbox/Checkbox.spec.js rename to src/Checkbox/Checkbox.spec.js index 99df5c2d..e2c77ed7 100644 --- a/src/components/Checkbox/Checkbox.spec.js +++ b/src/Checkbox/Checkbox.spec.js @@ -1,5 +1,5 @@ import React from 'react'; -import { renderWithTheme } from '../../../test/utils'; +import { renderWithTheme } from '../../test/utils'; import Checkbox from './Checkbox'; describe('', () => { diff --git a/src/components/Checkbox/Checkbox.stories.js b/src/Checkbox/Checkbox.stories.js similarity index 100% rename from src/components/Checkbox/Checkbox.stories.js rename to src/Checkbox/Checkbox.stories.js diff --git a/src/components/ColorInput/ColorInput.js b/src/ColorInput/ColorInput.js similarity index 100% rename from src/components/ColorInput/ColorInput.js rename to src/ColorInput/ColorInput.js diff --git a/src/components/ColorInput/ColorInput.spec.js b/src/ColorInput/ColorInput.spec.js similarity index 97% rename from src/components/ColorInput/ColorInput.spec.js rename to src/ColorInput/ColorInput.spec.js index 1de6db44..bc0cdd56 100644 --- a/src/components/ColorInput/ColorInput.spec.js +++ b/src/ColorInput/ColorInput.spec.js @@ -1,6 +1,6 @@ import React from 'react'; import { fireEvent } from '@testing-library/react'; -import { renderWithTheme } from '../../../test/utils'; +import { renderWithTheme } from '../../test/utils'; import ColorInput from './ColorInput'; function rgb2hex(str) { diff --git a/src/components/ColorInput/ColorInput.stories.js b/src/ColorInput/ColorInput.stories.js similarity index 100% rename from src/components/ColorInput/ColorInput.stories.js rename to src/ColorInput/ColorInput.stories.js diff --git a/src/components/Cutout/Cutout.js b/src/Cutout/Cutout.js similarity index 100% rename from src/components/Cutout/Cutout.js rename to src/Cutout/Cutout.js diff --git a/src/components/Cutout/Cutout.mdx b/src/Cutout/Cutout.mdx similarity index 100% rename from src/components/Cutout/Cutout.mdx rename to src/Cutout/Cutout.mdx diff --git a/src/components/Cutout/Cutout.spec.js b/src/Cutout/Cutout.spec.js similarity index 100% rename from src/components/Cutout/Cutout.spec.js rename to src/Cutout/Cutout.spec.js diff --git a/src/components/Cutout/Cutout.stories.js b/src/Cutout/Cutout.stories.js similarity index 100% rename from src/components/Cutout/Cutout.stories.js rename to src/Cutout/Cutout.stories.js diff --git a/src/components/DatePicker/DatePicker.js b/src/DatePicker/DatePicker.js similarity index 100% rename from src/components/DatePicker/DatePicker.js rename to src/DatePicker/DatePicker.js diff --git a/src/components/DatePicker/DatePicker.mdx b/src/DatePicker/DatePicker.mdx similarity index 100% rename from src/components/DatePicker/DatePicker.mdx rename to src/DatePicker/DatePicker.mdx diff --git a/src/components/DatePicker/DatePicker.stories.js b/src/DatePicker/DatePicker.stories.js similarity index 100% rename from src/components/DatePicker/DatePicker.stories.js rename to src/DatePicker/DatePicker.stories.js diff --git a/src/components/Divider/Divider.js b/src/Divider/Divider.js similarity index 100% rename from src/components/Divider/Divider.js rename to src/Divider/Divider.js diff --git a/src/components/Divider/Divider.mdx b/src/Divider/Divider.mdx similarity index 100% rename from src/components/Divider/Divider.mdx rename to src/Divider/Divider.mdx diff --git a/src/components/Divider/Divider.spec.js b/src/Divider/Divider.spec.js similarity index 97% rename from src/components/Divider/Divider.spec.js rename to src/Divider/Divider.spec.js index a0ad4197..472007c9 100644 --- a/src/components/Divider/Divider.spec.js +++ b/src/Divider/Divider.spec.js @@ -1,6 +1,6 @@ import React from 'react'; -import { renderWithTheme } from '../../../test/utils'; +import { renderWithTheme } from '../../test/utils'; import Divider from './Divider'; diff --git a/src/components/Divider/Divider.stories.js b/src/Divider/Divider.stories.js similarity index 100% rename from src/components/Divider/Divider.stories.js rename to src/Divider/Divider.stories.js diff --git a/src/components/Fieldset/Fieldset.js b/src/Fieldset/Fieldset.js similarity index 100% rename from src/components/Fieldset/Fieldset.js rename to src/Fieldset/Fieldset.js diff --git a/src/components/Fieldset/Fieldset.mdx b/src/Fieldset/Fieldset.mdx similarity index 100% rename from src/components/Fieldset/Fieldset.mdx rename to src/Fieldset/Fieldset.mdx diff --git a/src/components/Fieldset/Fieldset.spec.js b/src/Fieldset/Fieldset.spec.js similarity index 96% rename from src/components/Fieldset/Fieldset.spec.js rename to src/Fieldset/Fieldset.spec.js index 3ba9de18..c8ff087d 100644 --- a/src/components/Fieldset/Fieldset.spec.js +++ b/src/Fieldset/Fieldset.spec.js @@ -1,6 +1,6 @@ import React from 'react'; -import { renderWithTheme, theme } from '../../../test/utils'; +import { renderWithTheme, theme } from '../../test/utils'; import Fieldset from './Fieldset'; diff --git a/src/components/Fieldset/Fieldset.stories.js b/src/Fieldset/Fieldset.stories.js similarity index 100% rename from src/components/Fieldset/Fieldset.stories.js rename to src/Fieldset/Fieldset.stories.js diff --git a/src/components/Hourglass/Hourglass.js b/src/Hourglass/Hourglass.js similarity index 100% rename from src/components/Hourglass/Hourglass.js rename to src/Hourglass/Hourglass.js diff --git a/src/components/Hourglass/Hourglass.mdx b/src/Hourglass/Hourglass.mdx similarity index 100% rename from src/components/Hourglass/Hourglass.mdx rename to src/Hourglass/Hourglass.mdx diff --git a/src/components/Hourglass/Hourglass.spec.js b/src/Hourglass/Hourglass.spec.js similarity index 100% rename from src/components/Hourglass/Hourglass.spec.js rename to src/Hourglass/Hourglass.spec.js diff --git a/src/components/Hourglass/Hourglass.stories.js b/src/Hourglass/Hourglass.stories.js similarity index 100% rename from src/components/Hourglass/Hourglass.stories.js rename to src/Hourglass/Hourglass.stories.js diff --git a/src/components/Hourglass/base64hourglass.js b/src/Hourglass/base64hourglass.js similarity index 100% rename from src/components/Hourglass/base64hourglass.js rename to src/Hourglass/base64hourglass.js diff --git a/src/components/List/List.js b/src/List/List.js similarity index 100% rename from src/components/List/List.js rename to src/List/List.js diff --git a/src/components/List/List.mdx b/src/List/List.mdx similarity index 100% rename from src/components/List/List.mdx rename to src/List/List.mdx diff --git a/src/components/List/List.spec.js b/src/List/List.spec.js similarity index 95% rename from src/components/List/List.spec.js rename to src/List/List.spec.js index d0de7f05..47ba9b07 100644 --- a/src/components/List/List.spec.js +++ b/src/List/List.spec.js @@ -1,6 +1,6 @@ import React from 'react'; -import { renderWithTheme } from '../../../test/utils'; +import { renderWithTheme } from '../../test/utils'; import List from './List'; diff --git a/src/components/List/List.stories.js b/src/List/List.stories.js similarity index 100% rename from src/components/List/List.stories.js rename to src/List/List.stories.js diff --git a/src/components/ListItem/ListItem.js b/src/ListItem/ListItem.js similarity index 100% rename from src/components/ListItem/ListItem.js rename to src/ListItem/ListItem.js diff --git a/src/components/ListItem/ListItem.mdx b/src/ListItem/ListItem.mdx similarity index 100% rename from src/components/ListItem/ListItem.mdx rename to src/ListItem/ListItem.mdx diff --git a/src/components/ListItem/ListItem.spec.js b/src/ListItem/ListItem.spec.js similarity index 98% rename from src/components/ListItem/ListItem.spec.js rename to src/ListItem/ListItem.spec.js index 5acf2587..d85a99f7 100644 --- a/src/components/ListItem/ListItem.spec.js +++ b/src/ListItem/ListItem.spec.js @@ -1,6 +1,6 @@ import React from 'react'; -import { renderWithTheme, theme } from '../../../test/utils'; +import { renderWithTheme, theme } from '../../test/utils'; import { blockSizes } from '../common/system'; import ListItem from './ListItem'; diff --git a/src/components/LoadingIndicator/LoadingIndicator.js b/src/LoadingIndicator/LoadingIndicator.js similarity index 100% rename from src/components/LoadingIndicator/LoadingIndicator.js rename to src/LoadingIndicator/LoadingIndicator.js diff --git a/src/components/LoadingIndicator/LoadingIndicator.spec.js b/src/LoadingIndicator/LoadingIndicator.spec.js similarity index 92% rename from src/components/LoadingIndicator/LoadingIndicator.spec.js rename to src/LoadingIndicator/LoadingIndicator.spec.js index 3cb35c03..058fa3d9 100644 --- a/src/components/LoadingIndicator/LoadingIndicator.spec.js +++ b/src/LoadingIndicator/LoadingIndicator.spec.js @@ -1,6 +1,6 @@ import React from 'react'; -import { renderWithTheme } from '../../../test/utils'; +import { renderWithTheme } from '../../test/utils'; import LoadingIndicator from './LoadingIndicator'; describe('', () => { diff --git a/src/components/LoadingIndicator/LoadingIndicator.stories.js b/src/LoadingIndicator/LoadingIndicator.stories.js similarity index 100% rename from src/components/LoadingIndicator/LoadingIndicator.stories.js rename to src/LoadingIndicator/LoadingIndicator.stories.js diff --git a/src/components/NumberField/NumberField.js b/src/NumberField/NumberField.js similarity index 100% rename from src/components/NumberField/NumberField.js rename to src/NumberField/NumberField.js diff --git a/src/components/NumberField/NumberField.mdx b/src/NumberField/NumberField.mdx similarity index 100% rename from src/components/NumberField/NumberField.mdx rename to src/NumberField/NumberField.mdx diff --git a/src/components/NumberField/NumberField.spec.js b/src/NumberField/NumberField.spec.js similarity index 98% rename from src/components/NumberField/NumberField.spec.js rename to src/NumberField/NumberField.spec.js index 61b4c8d0..58d33ec3 100644 --- a/src/components/NumberField/NumberField.spec.js +++ b/src/NumberField/NumberField.spec.js @@ -1,7 +1,7 @@ import React from 'react'; import { fireEvent } from '@testing-library/react'; -import { renderWithTheme } from '../../../test/utils'; +import { renderWithTheme } from '../../test/utils'; import NumberField from './NumberField'; // TODO: should we pass number or string to callbacks? diff --git a/src/components/NumberField/NumberField.stories.js b/src/NumberField/NumberField.stories.js similarity index 100% rename from src/components/NumberField/NumberField.stories.js rename to src/NumberField/NumberField.stories.js diff --git a/src/components/Panel/Panel.js b/src/Panel/Panel.js similarity index 100% rename from src/components/Panel/Panel.js rename to src/Panel/Panel.js diff --git a/src/components/Panel/Panel.spec.js b/src/Panel/Panel.spec.js similarity index 100% rename from src/components/Panel/Panel.spec.js rename to src/Panel/Panel.spec.js diff --git a/src/components/Panel/Panel.stories.js b/src/Panel/Panel.stories.js similarity index 100% rename from src/components/Panel/Panel.stories.js rename to src/Panel/Panel.stories.js diff --git a/src/components/Progress/Progress.js b/src/Progress/Progress.js similarity index 100% rename from src/components/Progress/Progress.js rename to src/Progress/Progress.js diff --git a/src/components/Progress/Progress.mdx b/src/Progress/Progress.mdx similarity index 100% rename from src/components/Progress/Progress.mdx rename to src/Progress/Progress.mdx diff --git a/src/components/Progress/Progress.spec.js b/src/Progress/Progress.spec.js similarity index 97% rename from src/components/Progress/Progress.spec.js rename to src/Progress/Progress.spec.js index 290ee569..bad26a00 100644 --- a/src/components/Progress/Progress.spec.js +++ b/src/Progress/Progress.spec.js @@ -1,6 +1,6 @@ import React from 'react'; -import { renderWithTheme } from '../../../test/utils'; +import { renderWithTheme } from '../../test/utils'; import Progress from './Progress'; describe('', () => { diff --git a/src/components/Progress/Progress.stories.js b/src/Progress/Progress.stories.js similarity index 100% rename from src/components/Progress/Progress.stories.js rename to src/Progress/Progress.stories.js diff --git a/src/components/Radio/Radio.js b/src/Radio/Radio.js similarity index 100% rename from src/components/Radio/Radio.js rename to src/Radio/Radio.js diff --git a/src/components/Radio/Radio.mdx b/src/Radio/Radio.mdx similarity index 100% rename from src/components/Radio/Radio.mdx rename to src/Radio/Radio.mdx diff --git a/src/components/Radio/Radio.spec.js b/src/Radio/Radio.spec.js similarity index 97% rename from src/components/Radio/Radio.spec.js rename to src/Radio/Radio.spec.js index d954c297..dbf62624 100644 --- a/src/components/Radio/Radio.spec.js +++ b/src/Radio/Radio.spec.js @@ -1,5 +1,5 @@ import React from 'react'; -import { renderWithTheme } from '../../../test/utils'; +import { renderWithTheme } from '../../test/utils'; import Radio from './Radio'; describe('', () => { diff --git a/src/components/Radio/Radio.stories.js b/src/Radio/Radio.stories.js similarity index 100% rename from src/components/Radio/Radio.stories.js rename to src/Radio/Radio.stories.js diff --git a/src/components/Select/Select.js b/src/Select/Select.js similarity index 100% rename from src/components/Select/Select.js rename to src/Select/Select.js diff --git a/src/components/Select/Select.mdx b/src/Select/Select.mdx similarity index 100% rename from src/components/Select/Select.mdx rename to src/Select/Select.mdx diff --git a/src/components/Select/Select.spec.js b/src/Select/Select.spec.js similarity index 99% rename from src/components/Select/Select.spec.js rename to src/Select/Select.spec.js index 3625995c..5808fbfa 100644 --- a/src/components/Select/Select.spec.js +++ b/src/Select/Select.spec.js @@ -1,7 +1,7 @@ // Bsased on https://github.com/mui-org/material-ui import React from 'react'; import { fireEvent } from '@testing-library/react'; -import { renderWithTheme } from '../../../test/utils'; +import { renderWithTheme } from '../../test/utils'; import Select from './Select'; const options = [ diff --git a/src/components/Select/Select.stories.js b/src/Select/Select.stories.js similarity index 100% rename from src/components/Select/Select.stories.js rename to src/Select/Select.stories.js diff --git a/src/components/Select/Select.styles.js b/src/Select/Select.styles.js similarity index 100% rename from src/components/Select/Select.styles.js rename to src/Select/Select.styles.js diff --git a/src/components/Slider/Slider.js b/src/Slider/Slider.js similarity index 100% rename from src/components/Slider/Slider.js rename to src/Slider/Slider.js diff --git a/src/components/Slider/Slider.spec.js b/src/Slider/Slider.spec.js similarity index 99% rename from src/components/Slider/Slider.spec.js rename to src/Slider/Slider.spec.js index 24e8b96c..ebee1e21 100644 --- a/src/components/Slider/Slider.spec.js +++ b/src/Slider/Slider.spec.js @@ -3,7 +3,7 @@ import React from 'react'; import { fireEvent } from '@testing-library/react'; -import { renderWithTheme, Touch } from '../../../test/utils'; +import { renderWithTheme, Touch } from '../../test/utils'; import Slider from './Slider'; function createTouches(touches) { diff --git a/src/components/Slider/Slider.stories.js b/src/Slider/Slider.stories.js similarity index 100% rename from src/components/Slider/Slider.stories.js rename to src/Slider/Slider.stories.js diff --git a/src/components/SwitchBase/SwitchBase.js b/src/SwitchBase/SwitchBase.js similarity index 100% rename from src/components/SwitchBase/SwitchBase.js rename to src/SwitchBase/SwitchBase.js diff --git a/src/components/Tab/Tab.js b/src/Tab/Tab.js similarity index 100% rename from src/components/Tab/Tab.js rename to src/Tab/Tab.js diff --git a/src/components/Tab/Tab.spec.js b/src/Tab/Tab.spec.js similarity index 94% rename from src/components/Tab/Tab.spec.js rename to src/Tab/Tab.spec.js index b1bd11c1..e66bfc34 100644 --- a/src/components/Tab/Tab.spec.js +++ b/src/Tab/Tab.spec.js @@ -1,6 +1,6 @@ import React from 'react'; -import { renderWithTheme } from '../../../test/utils'; +import { renderWithTheme } from '../../test/utils'; import Tab from './Tab'; describe('', () => { diff --git a/src/components/TabBody/TabBody.js b/src/TabBody/TabBody.js similarity index 100% rename from src/components/TabBody/TabBody.js rename to src/TabBody/TabBody.js diff --git a/src/components/TabBody/TabBody.spec.js b/src/TabBody/TabBody.spec.js similarity index 86% rename from src/components/TabBody/TabBody.spec.js rename to src/TabBody/TabBody.spec.js index c81cac2c..523b0dd7 100644 --- a/src/components/TabBody/TabBody.spec.js +++ b/src/TabBody/TabBody.spec.js @@ -1,6 +1,6 @@ import React from 'react'; -import { renderWithTheme } from '../../../test/utils'; +import { renderWithTheme } from '../../test/utils'; import TabBody from './TabBody'; describe('', () => { diff --git a/src/components/Table/Table.js b/src/Table/Table.js similarity index 100% rename from src/components/Table/Table.js rename to src/Table/Table.js diff --git a/src/components/Table/Table.mdx b/src/Table/Table.mdx similarity index 100% rename from src/components/Table/Table.mdx rename to src/Table/Table.mdx diff --git a/src/components/Table/Table.spec.js b/src/Table/Table.spec.js similarity index 91% rename from src/components/Table/Table.spec.js rename to src/Table/Table.spec.js index a5c07870..de6dcdf9 100644 --- a/src/components/Table/Table.spec.js +++ b/src/Table/Table.spec.js @@ -1,6 +1,6 @@ import React from 'react'; -import { renderWithTheme } from '../../../test/utils'; +import { renderWithTheme } from '../../test/utils'; import Table from './Table'; diff --git a/src/components/Table/Table.stories.js b/src/Table/Table.stories.js similarity index 100% rename from src/components/Table/Table.stories.js rename to src/Table/Table.stories.js diff --git a/src/components/TableBody/TableBody.js b/src/TableBody/TableBody.js similarity index 100% rename from src/components/TableBody/TableBody.js rename to src/TableBody/TableBody.js diff --git a/src/components/TableBody/TableBody.spec.js b/src/TableBody/TableBody.spec.js similarity index 92% rename from src/components/TableBody/TableBody.spec.js rename to src/TableBody/TableBody.spec.js index 1fb2912b..10c424f0 100644 --- a/src/components/TableBody/TableBody.spec.js +++ b/src/TableBody/TableBody.spec.js @@ -1,6 +1,6 @@ import React from 'react'; -import { renderWithTheme } from '../../../test/utils'; +import { renderWithTheme } from '../../test/utils'; import TableBody from './TableBody'; diff --git a/src/components/TableDataCell/TableDataCell.js b/src/TableDataCell/TableDataCell.js similarity index 100% rename from src/components/TableDataCell/TableDataCell.js rename to src/TableDataCell/TableDataCell.js diff --git a/src/components/TableDataCell/TableDataCell.spec.js b/src/TableDataCell/TableDataCell.spec.js similarity index 92% rename from src/components/TableDataCell/TableDataCell.spec.js rename to src/TableDataCell/TableDataCell.spec.js index bca2d2cc..fdd3ff19 100644 --- a/src/components/TableDataCell/TableDataCell.spec.js +++ b/src/TableDataCell/TableDataCell.spec.js @@ -1,6 +1,6 @@ import React from 'react'; -import { renderWithTheme } from '../../../test/utils'; +import { renderWithTheme } from '../../test/utils'; import TableDataCell from './TableDataCell'; diff --git a/src/components/TableHead/TableHead.js b/src/TableHead/TableHead.js similarity index 100% rename from src/components/TableHead/TableHead.js rename to src/TableHead/TableHead.js diff --git a/src/components/TableHead/TableHead.spec.js b/src/TableHead/TableHead.spec.js similarity index 92% rename from src/components/TableHead/TableHead.spec.js rename to src/TableHead/TableHead.spec.js index 351d1159..f1e12827 100644 --- a/src/components/TableHead/TableHead.spec.js +++ b/src/TableHead/TableHead.spec.js @@ -1,6 +1,6 @@ import React from 'react'; -import { renderWithTheme } from '../../../test/utils'; +import { renderWithTheme } from '../../test/utils'; import TableHead from './TableHead'; diff --git a/src/components/TableHeadCell/TableHeadCell.js b/src/TableHeadCell/TableHeadCell.js similarity index 100% rename from src/components/TableHeadCell/TableHeadCell.js rename to src/TableHeadCell/TableHeadCell.js diff --git a/src/components/TableHeadCell/TableHeadCell.spec.js b/src/TableHeadCell/TableHeadCell.spec.js similarity index 96% rename from src/components/TableHeadCell/TableHeadCell.spec.js rename to src/TableHeadCell/TableHeadCell.spec.js index 763bfd50..6406d206 100644 --- a/src/components/TableHeadCell/TableHeadCell.spec.js +++ b/src/TableHeadCell/TableHeadCell.spec.js @@ -1,6 +1,6 @@ import React from 'react'; -import { renderWithTheme } from '../../../test/utils'; +import { renderWithTheme } from '../../test/utils'; import TableHeadCell from './TableHeadCell'; diff --git a/src/components/TableRow/TableRow.js b/src/TableRow/TableRow.js similarity index 100% rename from src/components/TableRow/TableRow.js rename to src/TableRow/TableRow.js diff --git a/src/components/TableRow/TableRow.spec.js b/src/TableRow/TableRow.spec.js similarity index 92% rename from src/components/TableRow/TableRow.spec.js rename to src/TableRow/TableRow.spec.js index c74c477d..22ccb239 100644 --- a/src/components/TableRow/TableRow.spec.js +++ b/src/TableRow/TableRow.spec.js @@ -1,6 +1,6 @@ import React from 'react'; -import { renderWithTheme } from '../../../test/utils'; +import { renderWithTheme } from '../../test/utils'; import TableRow from './TableRow'; diff --git a/src/components/Tabs/Tabs.js b/src/Tabs/Tabs.js similarity index 100% rename from src/components/Tabs/Tabs.js rename to src/Tabs/Tabs.js diff --git a/src/components/Tabs/Tabs.mdx b/src/Tabs/Tabs.mdx similarity index 100% rename from src/components/Tabs/Tabs.mdx rename to src/Tabs/Tabs.mdx diff --git a/src/components/Tabs/Tabs.spec.js b/src/Tabs/Tabs.spec.js similarity index 97% rename from src/components/Tabs/Tabs.spec.js rename to src/Tabs/Tabs.spec.js index 456b38ef..2d2627a2 100644 --- a/src/components/Tabs/Tabs.spec.js +++ b/src/Tabs/Tabs.spec.js @@ -1,7 +1,7 @@ import React from 'react'; import { fireEvent } from '@testing-library/react'; -import { renderWithTheme } from '../../../test/utils'; +import { renderWithTheme } from '../../test/utils'; import { Tab } from '..'; import Tabs from './Tabs'; diff --git a/src/components/Tabs/Tabs.stories.js b/src/Tabs/Tabs.stories.js similarity index 100% rename from src/components/Tabs/Tabs.stories.js rename to src/Tabs/Tabs.stories.js diff --git a/src/components/TextField/TextField.js b/src/TextField/TextField.js similarity index 100% rename from src/components/TextField/TextField.js rename to src/TextField/TextField.js diff --git a/src/components/TextField/TextField.mdx b/src/TextField/TextField.mdx similarity index 100% rename from src/components/TextField/TextField.mdx rename to src/TextField/TextField.mdx diff --git a/src/components/TextField/TextField.spec.js b/src/TextField/TextField.spec.js similarity index 98% rename from src/components/TextField/TextField.spec.js rename to src/TextField/TextField.spec.js index d8b138a9..68d43346 100644 --- a/src/components/TextField/TextField.spec.js +++ b/src/TextField/TextField.spec.js @@ -3,7 +3,7 @@ import React from 'react'; import { fireEvent } from '@testing-library/react'; -import { renderWithTheme } from '../../../test/utils'; +import { renderWithTheme } from '../../test/utils'; import TextField from './TextField'; describe('', () => { diff --git a/src/components/TextField/TextField.stories.js b/src/TextField/TextField.stories.js similarity index 100% rename from src/components/TextField/TextField.stories.js rename to src/TextField/TextField.stories.js diff --git a/src/components/Toolbar/Toolbar.js b/src/Toolbar/Toolbar.js similarity index 100% rename from src/components/Toolbar/Toolbar.js rename to src/Toolbar/Toolbar.js diff --git a/src/components/Toolbar/Toolbar.spec.js b/src/Toolbar/Toolbar.spec.js similarity index 100% rename from src/components/Toolbar/Toolbar.spec.js rename to src/Toolbar/Toolbar.spec.js diff --git a/src/components/Tooltip/Tooltip.js b/src/Tooltip/Tooltip.js similarity index 100% rename from src/components/Tooltip/Tooltip.js rename to src/Tooltip/Tooltip.js diff --git a/src/components/Tooltip/Tooltip.mdx b/src/Tooltip/Tooltip.mdx similarity index 100% rename from src/components/Tooltip/Tooltip.mdx rename to src/Tooltip/Tooltip.mdx diff --git a/src/components/Tooltip/Tooltip.spec.js b/src/Tooltip/Tooltip.spec.js similarity index 100% rename from src/components/Tooltip/Tooltip.spec.js rename to src/Tooltip/Tooltip.spec.js diff --git a/src/components/Tooltip/Tooltip.stories.js b/src/Tooltip/Tooltip.stories.js similarity index 100% rename from src/components/Tooltip/Tooltip.stories.js rename to src/Tooltip/Tooltip.stories.js diff --git a/src/components/Window/Window.js b/src/Window/Window.js similarity index 100% rename from src/components/Window/Window.js rename to src/Window/Window.js diff --git a/src/components/Window/Window.mdx b/src/Window/Window.mdx similarity index 100% rename from src/components/Window/Window.mdx rename to src/Window/Window.mdx diff --git a/src/components/Window/Window.spec.js b/src/Window/Window.spec.js similarity index 94% rename from src/components/Window/Window.spec.js rename to src/Window/Window.spec.js index 3ced5e45..c02df214 100644 --- a/src/components/Window/Window.spec.js +++ b/src/Window/Window.spec.js @@ -1,6 +1,6 @@ import React from 'react'; -import { renderWithTheme } from '../../../test/utils'; +import { renderWithTheme } from '../../test/utils'; import Window from './Window'; diff --git a/src/components/Window/Window.stories.js b/src/Window/Window.stories.js similarity index 100% rename from src/components/Window/Window.stories.js rename to src/Window/Window.stories.js diff --git a/src/components/WindowContent/WindowContent.js b/src/WindowContent/WindowContent.js similarity index 100% rename from src/components/WindowContent/WindowContent.js rename to src/WindowContent/WindowContent.js diff --git a/src/components/WindowContent/WindowContent.spec.js b/src/WindowContent/WindowContent.spec.js similarity index 91% rename from src/components/WindowContent/WindowContent.spec.js rename to src/WindowContent/WindowContent.spec.js index fcd3c1aa..108fef30 100644 --- a/src/components/WindowContent/WindowContent.spec.js +++ b/src/WindowContent/WindowContent.spec.js @@ -1,6 +1,6 @@ import React from 'react'; -import { renderWithTheme } from '../../../test/utils'; +import { renderWithTheme } from '../../test/utils'; import WindowContent from './WindowContent'; diff --git a/src/components/WindowHeader/WindowHeader.js b/src/WindowHeader/WindowHeader.js similarity index 100% rename from src/components/WindowHeader/WindowHeader.js rename to src/WindowHeader/WindowHeader.js diff --git a/src/components/WindowHeader/WindowHeader.spec.js b/src/WindowHeader/WindowHeader.spec.js similarity index 95% rename from src/components/WindowHeader/WindowHeader.spec.js rename to src/WindowHeader/WindowHeader.spec.js index 6feafa8e..f81638b2 100644 --- a/src/components/WindowHeader/WindowHeader.spec.js +++ b/src/WindowHeader/WindowHeader.spec.js @@ -1,6 +1,6 @@ import React from 'react'; -import { renderWithTheme } from '../../../test/utils'; +import { renderWithTheme } from '../../test/utils'; import WindowHeader from './WindowHeader'; diff --git a/src/components/assets/fonts/Digital-Clock.eot b/src/assets/fonts/Digital-Clock.eot similarity index 100% rename from src/components/assets/fonts/Digital-Clock.eot rename to src/assets/fonts/Digital-Clock.eot diff --git a/src/components/assets/fonts/Digital-Clock.ttf b/src/assets/fonts/Digital-Clock.ttf similarity index 100% rename from src/components/assets/fonts/Digital-Clock.ttf rename to src/assets/fonts/Digital-Clock.ttf diff --git a/src/components/assets/fonts/Digital-Clock.woff b/src/assets/fonts/Digital-Clock.woff similarity index 100% rename from src/components/assets/fonts/Digital-Clock.woff rename to src/assets/fonts/Digital-Clock.woff diff --git a/src/components/assets/fonts/Digital-Clock.woff2 b/src/assets/fonts/Digital-Clock.woff2 similarity index 100% rename from src/components/assets/fonts/Digital-Clock.woff2 rename to src/assets/fonts/Digital-Clock.woff2 diff --git a/src/components/assets/fonts/MS-Sans-Serif.eot b/src/assets/fonts/MS-Sans-Serif.eot similarity index 100% rename from src/components/assets/fonts/MS-Sans-Serif.eot rename to src/assets/fonts/MS-Sans-Serif.eot diff --git a/src/components/assets/fonts/MS-Sans-Serif.svg b/src/assets/fonts/MS-Sans-Serif.svg similarity index 100% rename from src/components/assets/fonts/MS-Sans-Serif.svg rename to src/assets/fonts/MS-Sans-Serif.svg diff --git a/src/components/assets/fonts/MS-Sans-Serif.ttf b/src/assets/fonts/MS-Sans-Serif.ttf similarity index 100% rename from src/components/assets/fonts/MS-Sans-Serif.ttf rename to src/assets/fonts/MS-Sans-Serif.ttf diff --git a/src/components/assets/fonts/MS-Sans-Serif.woff b/src/assets/fonts/MS-Sans-Serif.woff similarity index 100% rename from src/components/assets/fonts/MS-Sans-Serif.woff rename to src/assets/fonts/MS-Sans-Serif.woff diff --git a/src/components/assets/fonts/MS-Sans-Serif.woff2 b/src/assets/fonts/MS-Sans-Serif.woff2 similarity index 100% rename from src/components/assets/fonts/MS-Sans-Serif.woff2 rename to src/assets/fonts/MS-Sans-Serif.woff2 diff --git a/src/components/assets/fonts/px_icons.woff2 b/src/assets/fonts/px_icons.woff2 similarity index 100% rename from src/components/assets/fonts/px_icons.woff2 rename to src/assets/fonts/px_icons.woff2 diff --git a/src/components/assets/fonts/px_sans_nouveaux.eot b/src/assets/fonts/px_sans_nouveaux.eot similarity index 100% rename from src/components/assets/fonts/px_sans_nouveaux.eot rename to src/assets/fonts/px_sans_nouveaux.eot diff --git a/src/components/assets/fonts/px_sans_nouveaux.svg b/src/assets/fonts/px_sans_nouveaux.svg similarity index 100% rename from src/components/assets/fonts/px_sans_nouveaux.svg rename to src/assets/fonts/px_sans_nouveaux.svg diff --git a/src/components/assets/fonts/px_sans_nouveaux.ttf b/src/assets/fonts/px_sans_nouveaux.ttf similarity index 100% rename from src/components/assets/fonts/px_sans_nouveaux.ttf rename to src/assets/fonts/px_sans_nouveaux.ttf diff --git a/src/components/assets/fonts/px_sans_nouveaux.woff b/src/assets/fonts/px_sans_nouveaux.woff similarity index 100% rename from src/components/assets/fonts/px_sans_nouveaux.woff rename to src/assets/fonts/px_sans_nouveaux.woff diff --git a/src/components/assets/fonts/px_sans_nouveaux.woff2 b/src/assets/fonts/px_sans_nouveaux.woff2 similarity index 100% rename from src/components/assets/fonts/px_sans_nouveaux.woff2 rename to src/assets/fonts/px_sans_nouveaux.woff2 diff --git a/src/components/assets/images/logo.png b/src/assets/images/logo.png similarity index 100% rename from src/components/assets/images/logo.png rename to src/assets/images/logo.png diff --git a/src/components/assets/images/logo.psd b/src/assets/images/logo.psd similarity index 100% rename from src/components/assets/images/logo.psd rename to src/assets/images/logo.psd diff --git a/src/components/common/hooks/useControlledOrUncontrolled.js b/src/common/hooks/useControlledOrUncontrolled.js similarity index 100% rename from src/components/common/hooks/useControlledOrUncontrolled.js rename to src/common/hooks/useControlledOrUncontrolled.js diff --git a/src/components/common/hooks/useForkRef.js b/src/common/hooks/useForkRef.js similarity index 100% rename from src/components/common/hooks/useForkRef.js rename to src/common/hooks/useForkRef.js diff --git a/src/components/common/hooks/useForkRef.spec.js b/src/common/hooks/useForkRef.spec.js similarity index 100% rename from src/components/common/hooks/useForkRef.spec.js rename to src/common/hooks/useForkRef.spec.js diff --git a/src/components/common/hooks/useIsFocusVisible.js b/src/common/hooks/useIsFocusVisible.js similarity index 100% rename from src/components/common/hooks/useIsFocusVisible.js rename to src/common/hooks/useIsFocusVisible.js diff --git a/src/components/common/index.js b/src/common/index.js similarity index 100% rename from src/components/common/index.js rename to src/common/index.js diff --git a/src/components/common/styleReset.js b/src/common/styleReset.js similarity index 100% rename from src/components/common/styleReset.js rename to src/common/styleReset.js diff --git a/src/components/common/system.js b/src/common/system.js similarity index 100% rename from src/components/common/system.js rename to src/common/system.js diff --git a/src/common/themes/azureOrange.js b/src/common/themes/azureOrange.js new file mode 100644 index 00000000..497c9620 --- /dev/null +++ b/src/common/themes/azureOrange.js @@ -0,0 +1,33 @@ +export default { + name: 'azureOrange', + + anchor: '#1034a6', + anchorVisited: '#440381', + borderDark: '#05427f', + borderDarkest: '#000000', + borderLight: '#2b8fff', + borderLightest: '#7ebfff', + canvas: '#ffffff', + canvasText: '#000000', + canvasTextDisabled: '#05427f', + canvasTextDisabledShadow: '#7ebfff', + canvasTextInvert: '#000000', + checkmark: '#000000', + checkmarkDisabled: '#05427f', + flatDark: '#9e9e9e', + flatLight: '#d8d8d8', + focusSecondary: '#171123', + headerBackground: '#171123', + headerNotActiveBackground: '#4E6766', + headerNotActiveText: '#0180ff', + headerText: '#ffffff', + hoverBackground: '#F46036', + material: '#0180ff', + materialDark: '#9a9e9c', + materialText: '#000000', + materialTextDisabled: '#05427f', + materialTextDisabledShadow: '#7ebfff', + materialTextInvert: '#000000', + progress: '#F46036', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/bee.js b/src/common/themes/bee.js new file mode 100644 index 00000000..c8274e82 --- /dev/null +++ b/src/common/themes/bee.js @@ -0,0 +1,33 @@ +export default { + name: 'bee', + + anchor: '#1034a6', + anchorVisited: '#440381', + borderDark: '#846d06', + borderDarkest: '#0C1618', + borderLight: '#e7c221', + borderLightest: '#f8df6e', + canvas: '#ffffff', + canvasText: '#0C1618', + canvasTextDisabled: '#846d06', + canvasTextDisabledShadow: '#f8df6e', + canvasTextInvert: '#ffffff', + checkmark: '#0C1618', + checkmarkDisabled: '#846d06', + flatDark: '#9e9e9e', + flatLight: '#d8d8d8', + focusSecondary: '#fefe03', + headerBackground: '#0C1618', + headerNotActiveBackground: '#7F7B82', + headerNotActiveText: '#e5bd03', + headerText: '#f8df6e', + hoverBackground: '#0C1618', + material: '#e5bd03', + materialDark: '#7F7B82', + materialText: '#0C1618', + materialTextDisabled: '#846d06', + materialTextDisabledShadow: '#f8df6e', + materialTextInvert: '#ffffff', + progress: '#0C1618', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/blackAndWhite.js b/src/common/themes/blackAndWhite.js new file mode 100644 index 00000000..2e22ea73 --- /dev/null +++ b/src/common/themes/blackAndWhite.js @@ -0,0 +1,33 @@ +export default { + name: 'blackAndWhite', + + anchor: '#1034a6', + anchorVisited: '#440381', + borderDark: '#888c8f', + borderDarkest: '#000000', + borderLight: '#dfe0e3', + borderLightest: '#888c8f', + canvas: '#ffffff', + canvasText: '#000000', + canvasTextDisabled: '#888c8f', + canvasTextDisabledShadow: '#ffffff', + canvasTextInvert: '#ffffff', + checkmark: '#000000', + checkmarkDisabled: '#888c8f', + flatDark: '#9e9e9e', + flatLight: '#d8d8d8', + focusSecondary: '#fefe03', + headerBackground: '#000000', + headerNotActiveBackground: '#ffffff', + headerNotActiveText: '#000000', + headerText: '#ffffff', + hoverBackground: '#000000', + material: '#ffffff', + materialDark: '#9a9e9c', + materialText: '#000000', + materialTextDisabled: '#888c8f', + materialTextDisabledShadow: '#ffffff', + materialTextInvert: '#ffffff', + progress: '#000000', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/brick.js b/src/common/themes/brick.js new file mode 100644 index 00000000..e9f61673 --- /dev/null +++ b/src/common/themes/brick.js @@ -0,0 +1,33 @@ +export default { + name: 'brick', + + anchor: '#1034a6', + anchorVisited: '#440381', + borderDark: '#6c684b', + borderDarkest: '#020000', + borderLight: '#e2ddc9', + borderLightest: '#ffffff', + canvas: '#ffffff', + canvasText: '#020000', + canvasTextDisabled: '#6c684b', + canvasTextDisabledShadow: '#ffffff', + canvasTextInvert: '#ffffff', + checkmark: '#020000', + checkmarkDisabled: '#6c684b', + flatDark: '#9e9e9e', + flatLight: '#d8d8d8', + focusSecondary: '#fefe03', + headerBackground: '#8e0101', + headerNotActiveBackground: '#90885c', + headerNotActiveText: '#c2bfa3', + headerText: '#ffffff', + hoverBackground: '#8e0101', + material: '#c2bfa3', + materialDark: '#9a9e9c', + materialText: '#020000', + materialTextDisabled: '#6c684b', + materialTextDisabledShadow: '#ffffff', + materialTextInvert: '#ffffff', + progress: '#8e0101', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/candy.js b/src/common/themes/candy.js new file mode 100644 index 00000000..8b949172 --- /dev/null +++ b/src/common/themes/candy.js @@ -0,0 +1,33 @@ +export default { + name: 'candy', + + anchor: '#1034a6', + anchorVisited: '#440381', + borderDark: '#d1579e', + borderDarkest: '#44132f', + borderLight: '#f1acd5', + borderLightest: '#EFF1F3', + canvas: '#EFF1F3', + canvasText: '#000000', + canvasTextDisabled: '#d1579e', + canvasTextDisabledShadow: '#EFF1F3', + canvasTextInvert: '#EFF1F3', + checkmark: '#000000', + checkmarkDisabled: '#d1579e', + flatDark: '#9e9e9e', + flatLight: '#d8d8d8', + focusSecondary: '#fefe03', + headerBackground: '#87255B', + headerNotActiveBackground: '#a08796', + headerNotActiveText: '#EBD2BE', + headerText: '#EFF1F3', + hoverBackground: '#256EFF', + material: '#E5A4CB', + materialDark: '#9a9e9c', + materialText: '#000000', + materialTextDisabled: '#d1579e', + materialTextDisabledShadow: '#EFF1F3', + materialTextInvert: '#EFF1F3', + progress: '#256EFF', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/coldGray.js b/src/common/themes/coldGray.js new file mode 100644 index 00000000..2b3db432 --- /dev/null +++ b/src/common/themes/coldGray.js @@ -0,0 +1,34 @@ +export default { + name: 'coldGray', + + anchor: '#8d88c2', + anchorVisited: '#440381', + background: '#4C6663', + borderDark: '#5b57a1', + borderDarkest: '#010601', + borderLight: '#a4a7c8', + borderLightest: '#c7c7df', + canvas: '#c7c7df', + canvasText: '#050608', + canvasTextDisabled: '#888c8f', + canvasTextDisabledShadow: '#ffffff', + canvasTextInvert: '#ffffff', + checkmark: '#010601', + checkmarkDisabled: '#5b57a1', + flatDark: '#5b57a1', + flatLight: '#a4a7c8', + focusSecondary: '#fefe03', + headerBackground: '#3B3D64', + headerNotActiveBackground: '#6063a5', + headerNotActiveText: '#a1a3ca', + headerText: '#010601', + hoverBackground: '#8d88c2', + material: '#a1a3ca', + materialDark: '#6063a5', + materialText: '#010601', + materialTextDisabled: '#5b57a1', + materialTextDisabledShadow: '#c7c7df', + materialTextInvert: '#c7c7df', + progress: '#8d88c2', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/counterStrike.js b/src/common/themes/counterStrike.js new file mode 100644 index 00000000..541e6f7a --- /dev/null +++ b/src/common/themes/counterStrike.js @@ -0,0 +1,33 @@ +export default { + name: 'counterStrike', + + anchor: '#1034a6', + anchorVisited: '#440381', + borderDark: '#2c3125', + borderDarkest: '#0a0a0a', + borderLight: '#5d6d54', + borderLightest: '#788475', + canvas: '#3e4639', + canvasText: '#f6fbf5', + canvasTextDisabled: '#2c3125', + canvasTextDisabledShadow: '#788475', + canvasTextInvert: '#f6fbf5', + checkmark: '#f6fbf5', + checkmarkDisabled: '#2c3125', + flatDark: '#9e9e9e', + flatLight: '#d8d8d8', + focusSecondary: '#fefe03', + headerBackground: '#4b5844', + headerNotActiveBackground: '#4b5844', + headerNotActiveText: '#74806e', + headerText: '#fefefe', + hoverBackground: '#978830', + material: '#4b5844', + materialDark: '#2f3428', + materialText: '#f6fbf5', + materialTextDisabled: '#2c3125', + materialTextDisabledShadow: '#788475', + materialTextInvert: '#fefefe', + progress: '#978830', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/eggplant.js b/src/common/themes/eggplant.js new file mode 100644 index 00000000..cdbd01b4 --- /dev/null +++ b/src/common/themes/eggplant.js @@ -0,0 +1,33 @@ +export default { + name: 'eggplant', + + anchor: '#1034a6', + anchorVisited: '#440381', + borderDark: '#526d67', + borderDarkest: '#050608', + borderLight: '#a2c7c0', + borderLightest: '#cee8e3', + canvas: '#ffffff', + canvasText: '#050608', + canvasTextDisabled: '#526d67', + canvasTextDisabledShadow: '#cee8e3', + canvasTextInvert: '#cee8e3', + checkmark: '#050608', + checkmarkDisabled: '#526d67', + flatDark: '#9e9e9e', + flatLight: '#d8d8d8', + focusSecondary: '#fefe03', + headerBackground: '#4b8178', + headerNotActiveBackground: '#89b0a8', + headerNotActiveText: '#4b8178', + headerText: '#ffffff', + hoverBackground: '#4b8178', + material: '#89b0a8', + materialDark: '#9a9e9c', + materialText: '#050608', + materialTextDisabled: '#526d67', + materialTextDisabledShadow: '#cee8e3', + materialTextInvert: '#ffffff', + progress: '#4b8178', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/highContrast.js b/src/common/themes/highContrast.js new file mode 100644 index 00000000..86f61907 --- /dev/null +++ b/src/common/themes/highContrast.js @@ -0,0 +1,33 @@ +export default { + name: 'highContrast', + + anchor: '#1034a6', + anchorVisited: '#440381', + borderDark: '#888c8f', + borderDarkest: '#ffffff', + borderLight: '#dfe0e3', + borderLightest: '#ffffff', + canvas: '#353535', + canvasText: '#ffffff', + canvasTextDisabled: '#888c8f', + canvasTextDisabledShadow: '#ffffff', + canvasTextInvert: '#ffffff', + checkmark: '#ffffff', + checkmarkDisabled: '#888c8f', + flatDark: '#9e9e9e', + flatLight: '#d8d8d8', + focusSecondary: '#fefe03', + headerBackground: '#8e0284', + headerNotActiveBackground: '#7f7f7f', + headerNotActiveText: '#ced0cf', + headerText: '#ffffff', + hoverBackground: '#8e0284', + material: '#000000', + materialDark: '#9a9e9c', + materialText: '#ffffff', + materialTextDisabled: '#888c8f', + materialTextDisabledShadow: '#ffffff', + materialTextInvert: '#ffffff', + progress: '#8e0284', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/index.js b/src/common/themes/index.js new file mode 100644 index 00000000..db6eb2f1 --- /dev/null +++ b/src/common/themes/index.js @@ -0,0 +1,69 @@ +import azureOrange from './azureOrange'; +import bee from './bee'; +import blackAndWhite from './blackAndWhite'; +import brick from './brick'; +import candy from './candy'; +import coldGray from './coldGray'; +import eggplant from './eggplant'; +import highContrast from './highContrast'; +import lilac from './lilac'; +import lilacRoseDark from './lilacRoseDark'; +import maple from './maple'; +import marine from './marine'; +import matrix from './matrix'; +import millenium from './millenium'; +import modernDark from './modernDark'; +import molecule from './molecule'; +import ninjaTurtles from './ninjaTurtles'; +import olive from './olive'; +import original from './original'; +import pamelaAnderson from './pamelaAnderson'; +import plum from './plum'; +import rainyDay from './rainyDay'; +import rose from './rose'; +import slate from './slate'; +import spruce from './spruce'; +import theSixtiesUSA from './theSixtiesUSA'; +import tokyoDark from './tokyoDark'; +import tooSexy from './tooSexy'; +import travel from './travel'; +import vaporTeal from './vaporTeal'; +import vermillion from './vermillion'; +import violetDark from './violetDark'; +import water from './water'; + +export default { + azureOrange, + bee, + blackAndWhite, + brick, + candy, + coldGray, + eggplant, + highContrast, + lilac, + lilacRoseDark, + maple, + marine, + matrix, + millenium, + modernDark, + molecule, + ninjaTurtles, + olive, + original, + pamelaAnderson, + plum, + rainyDay, + rose, + slate, + spruce, + theSixtiesUSA, + tokyoDark, + tooSexy, + travel, + vaporTeal, + vermillion, + violetDark, + water +}; diff --git a/src/common/themes/lilac.js b/src/common/themes/lilac.js new file mode 100644 index 00000000..926e0179 --- /dev/null +++ b/src/common/themes/lilac.js @@ -0,0 +1,33 @@ +export default { + name: 'lilac', + + anchor: '#1034a6', + anchorVisited: '#440381', + borderDark: '#5f549b', + borderDarkest: '#1c1449', + borderLight: '#bcb4e9', + borderLightest: '#d3ccf4', + canvas: '#ffffff', + canvasText: '#050608', + canvasTextDisabled: '#5f549b', + canvasTextDisabledShadow: '#ffffff', + canvasTextInvert: '#ffffff', + checkmark: '#050608', + checkmarkDisabled: '#5f549b', + flatDark: '#9e9e9e', + flatLight: '#d8d8d8', + focusSecondary: '#fefe03', + headerBackground: '#5e4dba', + headerNotActiveBackground: '#7f7f81', + headerNotActiveText: '#ced0cf', + headerText: '#ffffff', + hoverBackground: '#5e4dba', + material: '#b1a7df', + materialDark: '#9a9e9c', + materialText: '#050608', + materialTextDisabled: '#5f549b', + materialTextDisabledShadow: '#ffffff', + materialTextInvert: '#ffffff', + progress: '#5e4dba', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/lilacRoseDark.js b/src/common/themes/lilacRoseDark.js new file mode 100644 index 00000000..910a8b2b --- /dev/null +++ b/src/common/themes/lilacRoseDark.js @@ -0,0 +1,34 @@ +export default { + name: 'lilacRoseDark', + + anchor: '#a65387', + anchorVisited: '#440381', + background: '#3B3B58', + borderDark: '#7F3163', + borderDarkest: '#190000', + borderLight: '#E597C9', + borderLightest: '#FFCAFC', + canvas: '#dab1c7', + canvasText: '#000000', + canvasTextDisabled: '#000000', + canvasTextDisabledShadow: '#000000', + canvasTextInvert: '#ecbfe3', + checkmark: '#010601', + checkmarkDisabled: '#7F3163', + flatDark: '#7F3163', + flatLight: '#E597C9', + focusSecondary: '#fefe03', + headerBackground: '#4C0030', + headerNotActiveBackground: '#763a60', + headerNotActiveText: '#b26496', + headerText: '#010601', + hoverBackground: '#713259', + material: '#b26496', + materialDark: '#763a60', + materialText: '#000000', + materialTextDisabled: '#82416d', + materialTextDisabledShadow: '#ecbfe3', + materialTextInvert: '#ecbfe3', + progress: '#713259', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/maple.js b/src/common/themes/maple.js new file mode 100644 index 00000000..901f77e2 --- /dev/null +++ b/src/common/themes/maple.js @@ -0,0 +1,33 @@ +export default { + name: 'maple', + + anchor: '#1034a6', + anchorVisited: '#440381', + borderDark: '#ab9042', + borderDarkest: '#2a1801', + borderLight: '#f5e2bb', + borderLightest: '#ffffff', + canvas: '#ffffff', + canvasText: '#2a1801', + canvasTextDisabled: '#ab9042', + canvasTextDisabledShadow: '#ffffff', + canvasTextInvert: '#ffffff', + checkmark: '#2a1801', + checkmarkDisabled: '#ab9042', + flatDark: '#9e9e9e', + flatLight: '#d8d8d8', + focusSecondary: '#fefe03', + headerBackground: '#8e0101', + headerNotActiveBackground: '#a1a0a5', + headerNotActiveText: '#f5e2bb', + headerText: '#ffffff', + hoverBackground: '#8e0101', + material: '#e5cc90', + materialDark: '#9a9e9c', + materialText: '#2a1801', + materialTextDisabled: '#ab9042', + materialTextDisabledShadow: '#ffffff', + materialTextInvert: '#ffffff', + progress: '#8e0101', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/marine.js b/src/common/themes/marine.js new file mode 100644 index 00000000..e5fdb5ec --- /dev/null +++ b/src/common/themes/marine.js @@ -0,0 +1,33 @@ +export default { + name: 'marine', + + anchor: '#1034a6', + anchorVisited: '#440381', + borderDark: '#3c8d88', + borderDarkest: '#050608', + borderLight: '#98d2cb', + borderLightest: '#b1dfdf', + canvas: '#c3e2da', + canvasText: '#050608', + canvasTextDisabled: '#3c8d88', + canvasTextDisabledShadow: '#ffffff', + canvasTextInvert: '#ffffff', + checkmark: '#050608', + checkmarkDisabled: '#3c8d88', + flatDark: '#9e9e9e', + flatLight: '#d8d8d8', + focusSecondary: '#fefe03', + headerBackground: '#000080', + headerNotActiveBackground: '#7f7f7f', + headerNotActiveText: '#ced0cf', + headerText: '#ffffff', + hoverBackground: '#000080', + material: '#75c1ba', + materialDark: '#9a9e9c', + materialText: '#050608', + materialTextDisabled: '#3c8d88', + materialTextDisabledShadow: '#ffffff', + materialTextInvert: '#ffffff', + progress: '#000080', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/matrix.js b/src/common/themes/matrix.js new file mode 100644 index 00000000..ce153373 --- /dev/null +++ b/src/common/themes/matrix.js @@ -0,0 +1,33 @@ +export default { + name: 'matrix', + + anchor: '#1034a6', + anchorVisited: '#440381', + borderDark: '#282828', + borderDarkest: '#000000', + borderLight: '#656565', + borderLightest: '#a7a7a7', + canvas: '#c0c0c0', + canvasText: '#000000', + canvasTextDisabled: '#282828', + canvasTextDisabledShadow: '#ff0000', + canvasTextInvert: '#ffffff', + checkmark: '#000000', + checkmarkDisabled: '#282828', + flatDark: '#9e9e9e', + flatLight: '#d8d8d8', + focusSecondary: '#35FF69', + headerBackground: '#000000', + headerNotActiveBackground: '#7f7f7f', + headerNotActiveText: '#535353', + headerText: '#a7a7a7', + hoverBackground: '#000000', + material: '#535353', + materialDark: '#282828', + materialText: '#35FF69', + materialTextDisabled: '#282828', + materialTextDisabledShadow: '#a7a7a7', + materialTextInvert: '#ffffff', + progress: '#000000', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/millenium.js b/src/common/themes/millenium.js new file mode 100644 index 00000000..bf2fafa8 --- /dev/null +++ b/src/common/themes/millenium.js @@ -0,0 +1,33 @@ +export default { + name: 'millenium', + + anchor: '#1034a6', + anchorVisited: '#440381', + borderDark: '#828282', + borderDarkest: 'black', + borderLight: '#e5e5e5', + borderLightest: '#ffffff', + canvas: '#ffffff', + canvasText: 'black', + canvasTextDisabled: '#828282', + canvasTextDisabledShadow: '#ffffff', + canvasTextInvert: '#ffffff', + checkmark: 'black', + checkmarkDisabled: '#828282', + flatDark: '#9e9e9e', + flatLight: '#d8d8d8', + focusSecondary: '#fefe03', + headerBackground: 'linear-gradient(to right, #012470, #a5c7e7)', + headerNotActiveBackground: '#7f7f7f', + headerNotActiveText: '#d6cfc7', + headerText: '#ffffff', + hoverBackground: '#00256e', + material: '#d6cfc7', + materialDark: '#9a9e9c', + materialText: 'black', + materialTextDisabled: '#828282', + materialTextDisabledShadow: '#ffffff', + materialTextInvert: '#ffffff', + progress: '#00256e', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/modernDark.js b/src/common/themes/modernDark.js new file mode 100644 index 00000000..c27c299b --- /dev/null +++ b/src/common/themes/modernDark.js @@ -0,0 +1,33 @@ +export default { + name: 'modernDark', + + anchor: '#1034a6', + anchorVisited: '#440381', + borderDark: '#121317', + borderDarkest: '#000000', + borderLight: '#31323c', + borderLightest: '#4b4d58', + canvas: '#4b4d58', + canvasText: '#000000', + canvasTextDisabled: '#4b4d58', + canvasTextDisabledShadow: '#4b4d58', + canvasTextInvert: '#202127', + checkmark: '#000000', + checkmarkDisabled: '#121317', + flatDark: '#9e9e9e', + flatLight: '#d8d8d8', + focusSecondary: '#fefe03', + headerBackground: '#4b4d58', + headerNotActiveBackground: 'transparent', + headerNotActiveText: '#4b4d58', + headerText: '#202127', + hoverBackground: '#f88702', + material: '#202127', + materialDark: '#9a9e9c', + materialText: '#f88702', + materialTextDisabled: '#4b4d58', + materialTextDisabledShadow: '#121317', + materialTextInvert: '#202127', + progress: '#f88702', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/molecule.js b/src/common/themes/molecule.js new file mode 100644 index 00000000..403f8d76 --- /dev/null +++ b/src/common/themes/molecule.js @@ -0,0 +1,33 @@ +export default { + name: 'molecule', + + anchor: '#1034a6', + anchorVisited: '#440381', + borderDark: '#993845', + borderDarkest: '#4b4d4e', + borderLight: '#dfe0e3', + borderLightest: '#d79099', + canvas: '#f1f5f6', + canvasText: '#020102', + canvasTextDisabled: '#993845', + canvasTextDisabledShadow: '#d79099', + canvasTextInvert: '#f1f5f6', + checkmark: '#020102', + checkmarkDisabled: '#993845', + flatDark: '#9e9e9e', + flatLight: '#d8d8d8', + focusSecondary: '#fefe03', + headerBackground: '#a03d49', + headerNotActiveBackground: '#7f7f7f', + headerNotActiveText: '#c2c1c2', + headerText: '#f1f5f6', + hoverBackground: '#70a3ce', + material: '#c2c1c2', + materialDark: '#9a9e9c', + materialText: '#020102', + materialTextDisabled: '#993845', + materialTextDisabledShadow: '#d79099', + materialTextInvert: '#f1f5f6', + progress: '#a03d49', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/ninjaTurtles.js b/src/common/themes/ninjaTurtles.js new file mode 100644 index 00000000..cccdd818 --- /dev/null +++ b/src/common/themes/ninjaTurtles.js @@ -0,0 +1,33 @@ +export default { + name: 'ninjaTurtles', + + anchor: '#1034a6', + anchorVisited: '#440381', + borderDark: '#017401', + borderDarkest: '#000000', + borderLight: '#1dbc1b', + borderLightest: '#55fd55', + canvas: '#ffffff', + canvasText: '#000000', + canvasTextDisabled: '#017401', + canvasTextDisabledShadow: '#55fd55', + canvasTextInvert: '#000000', + checkmark: '#000000', + checkmarkDisabled: '#017401', + flatDark: '#9e9e9e', + flatLight: '#d8d8d8', + focusSecondary: '#fefe03', + headerBackground: '#FF1D15', + headerNotActiveBackground: '#7f7f7f', + headerNotActiveText: '#000000', + headerText: '#ffffff', + hoverBackground: '#FABC3C', + material: '#00a800', + materialDark: '#9a9e9c', + materialText: '#000000', + materialTextDisabled: '#017401', + materialTextDisabledShadow: '#55fd55', + materialTextInvert: '#000000', + progress: '#FF1D15', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/olive.js b/src/common/themes/olive.js new file mode 100644 index 00000000..a36c8e50 --- /dev/null +++ b/src/common/themes/olive.js @@ -0,0 +1,33 @@ +export default { + name: 'olive', + + anchor: '#1034a6', + anchorVisited: '#440381', + borderDark: '#4f4c02', + borderDarkest: '#000000', + borderLight: '#9d9d11', + borderLightest: '#fcfd3e', + canvas: '#ffffff', + canvasText: '#000000', + canvasTextDisabled: '#4f4c02', + canvasTextDisabledShadow: '#fcfd3e', + canvasTextInvert: '#000000', + checkmark: '#000000', + checkmarkDisabled: '#4f4c02', + flatDark: '#9e9e9e', + flatLight: '#d8d8d8', + focusSecondary: '#000000', + headerBackground: '#F3DE2C', + headerNotActiveBackground: '#4f4c02', + headerNotActiveText: '#807f00', + headerText: '#000000', + hoverBackground: '#F3DE2C', + material: '#807f00', + materialDark: '#4f4c02', + materialText: '#000000', + materialTextDisabled: '#4f4c02', + materialTextDisabledShadow: '#fcfd3e', + materialTextInvert: '#000000', + progress: '#F3DE2C', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/original.js b/src/common/themes/original.js new file mode 100644 index 00000000..b6da39de --- /dev/null +++ b/src/common/themes/original.js @@ -0,0 +1,33 @@ +export default { + name: 'original', + + anchor: '#1034a6', + anchorVisited: '#440381', + borderDark: '#848584', + borderDarkest: '#0a0a0a', + borderLight: '#dfdfdf', + borderLightest: '#fefefe', + canvas: '#ffffff', + canvasText: '#0a0a0a', + canvasTextDisabled: '#848584', + canvasTextDisabledShadow: '#fefefe', + canvasTextInvert: '#fefefe', + checkmark: '#0a0a0a', + checkmarkDisabled: '#848584', + flatDark: '#9e9e9e', + flatLight: '#d8d8d8', + focusSecondary: '#fefe03', + headerBackground: '#060084', + headerNotActiveBackground: '#7f787f', + headerNotActiveText: '#c6c6c6', + headerText: '#fefefe', + hoverBackground: '#060084', + material: '#c6c6c6', + materialDark: '#9a9e9c', + materialText: '#0a0a0a', + materialTextDisabled: '#848584', + materialTextDisabledShadow: '#fefefe', + materialTextInvert: '#fefefe', + progress: '#060084', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/pamelaAnderson.js b/src/common/themes/pamelaAnderson.js new file mode 100644 index 00000000..0efb6990 --- /dev/null +++ b/src/common/themes/pamelaAnderson.js @@ -0,0 +1,33 @@ +export default { + name: 'pamelaAnderson', + + anchor: '#1034a6', + anchorVisited: '#440381', + borderDark: '#7e0541', + borderDarkest: '#000000', + borderLight: '#ff308f', + borderLightest: '#ff7ebf', + canvas: '#F5CCE8', + canvasText: '#000000', + canvasTextDisabled: '#7e0541', + canvasTextDisabledShadow: '#ff7ebf', + canvasTextInvert: '#F1E4E8', + checkmark: '#000000', + checkmarkDisabled: '#7e0541', + flatDark: '#9e9e9e', + flatLight: '#d8d8d8', + focusSecondary: '#fefe03', + headerBackground: '#FF8CC6', + headerNotActiveBackground: '#95818D', + headerNotActiveText: '#ff0080', + headerText: '#000000', + hoverBackground: '#004FFF', + material: '#ff0080', + materialDark: '#95818D', + materialText: '#000000', + materialTextDisabled: '#7e0541', + materialTextDisabledShadow: '#ff7ebf', + materialTextInvert: '#F1E4E8', + progress: '#004FFF', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/plum.js b/src/common/themes/plum.js new file mode 100644 index 00000000..d0c9ab73 --- /dev/null +++ b/src/common/themes/plum.js @@ -0,0 +1,33 @@ +export default { + name: 'plum', + + anchor: '#1034a6', + anchorVisited: '#440381', + borderDark: '#7b5f5b', + borderDarkest: '#050608', + borderLight: '#c3b1aa', + borderLightest: '#e8dad6', + canvas: '#dad0c7', + canvasText: '#050608', + canvasTextDisabled: '#7b5f5b', + canvasTextDisabledShadow: '#e8dad6', + canvasTextInvert: '#e8dad6', + checkmark: '#050608', + checkmarkDisabled: '#7b5f5b', + flatDark: '#9e9e9e', + flatLight: '#d8d8d8', + focusSecondary: '#fefe03', + headerBackground: '#483f63', + headerNotActiveBackground: '#7d5e58', + headerNotActiveText: '#e8dad6', + headerText: '#ffffff', + hoverBackground: '#483f63', + material: '#ac978f', + materialDark: '#9a9e9c', + materialText: '#050608', + materialTextDisabled: '#7b5f5b', + materialTextDisabledShadow: '#e8dad6', + materialTextInvert: '#ffffff', + progress: '#483f63', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/rainyDay.js b/src/common/themes/rainyDay.js new file mode 100644 index 00000000..da903879 --- /dev/null +++ b/src/common/themes/rainyDay.js @@ -0,0 +1,33 @@ +export default { + name: 'rainyDay', + + anchor: '#1034a6', + anchorVisited: '#440381', + borderDark: '#3d5367', + borderDarkest: '#16233b', + borderLight: '#91abc2', + borderLightest: '#b7cee5', + canvas: '#ffffff', + canvasText: '#050608', + canvasTextDisabled: '#3d5367', + canvasTextDisabledShadow: '#b7cee5', + canvasTextInvert: '#ffffff', + checkmark: '#050608', + checkmarkDisabled: '#3d5367', + flatDark: '#9e9e9e', + flatLight: '#d8d8d8', + focusSecondary: '#fefe03', + headerBackground: '#4b6480', + headerNotActiveBackground: '#7f7f81', + headerNotActiveText: '#ced0d9', + headerText: '#ffffff', + hoverBackground: '#4b6480', + material: '#7a99b3', + materialDark: '#9a9e9c', + materialText: '#050608', + materialTextDisabled: '#3d5367', + materialTextDisabledShadow: '#b7cee5', + materialTextInvert: '#ffffff', + progress: '#4b6480', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/rose.js b/src/common/themes/rose.js new file mode 100644 index 00000000..f23aa7ad --- /dev/null +++ b/src/common/themes/rose.js @@ -0,0 +1,33 @@ +export default { + name: 'rose', + + anchor: '#1034a6', + anchorVisited: '#440381', + borderDark: '#8a5b68', + borderDarkest: '#26030b', + borderLight: '#e5bec8', + borderLightest: '#f1d4dc', + canvas: '#ffffff', + canvasText: '#050608', + canvasTextDisabled: '#8a5b68', + canvasTextDisabledShadow: '#f1d4dc', + canvasTextInvert: '#ffffff', + checkmark: '#050608', + checkmarkDisabled: '#8a5b68', + flatDark: '#9e9e9e', + flatLight: '#d8d8d8', + focusSecondary: '#fefe03', + headerBackground: '#ab5a71', + headerNotActiveBackground: '#a19fa5', + headerNotActiveText: '#615f68', + headerText: '#ffffff', + hoverBackground: '#ab5a71', + material: '#d6adb8', + materialDark: '#9a9e9c', + materialText: '#050608', + materialTextDisabled: '#8a5b68', + materialTextDisabledShadow: '#f1d4dc', + materialTextInvert: '#ffffff', + progress: '#ab5a71', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/slate.js b/src/common/themes/slate.js new file mode 100644 index 00000000..c8cabeee --- /dev/null +++ b/src/common/themes/slate.js @@ -0,0 +1,33 @@ +export default { + name: 'slate', + + anchor: '#1034a6', + anchorVisited: '#440381', + borderDark: '#446b7c', + borderDarkest: '#000814', + borderLight: '#adc8da', + borderLightest: '#c3d9e9', + canvas: '#f2ffff', + canvasText: '#00010f', + canvasTextDisabled: '#446b7c', + canvasTextDisabledShadow: '#c3d9e9', + canvasTextInvert: '#f2ffff', + checkmark: '#00010f', + checkmarkDisabled: '#446b7c', + flatDark: '#9e9e9e', + flatLight: '#d8d8d8', + focusSecondary: '#fefe03', + headerBackground: '#448199', + headerNotActiveBackground: '#807f80', + headerNotActiveText: '#c2c1c2', + headerText: '#f2ffff', + hoverBackground: '#448199', + material: '#97b9cb', + materialDark: '#9a9e9c', + materialText: '#00010f', + materialTextDisabled: '#446b7c', + materialTextDisabledShadow: '#c3d9e9', + materialTextInvert: '#f2ffff', + progress: '#448199', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/spruce.js b/src/common/themes/spruce.js new file mode 100644 index 00000000..d0795ea6 --- /dev/null +++ b/src/common/themes/spruce.js @@ -0,0 +1,33 @@ +export default { + name: 'spruce', + + anchor: '#1034a6', + anchorVisited: '#440381', + borderDark: '#477b5e', + borderDarkest: '#001004', + borderLight: '#b0d2bb', + borderLightest: '#cdead2', + canvas: '#fcfff6', + canvasText: '#050608', + canvasTextDisabled: '#3d5367', + canvasTextDisabledShadow: '#cdead2', + canvasTextInvert: '#fcfff6', + checkmark: '#050608', + checkmarkDisabled: '#477b5e', + flatDark: '#9e9e9e', + flatLight: '#d8d8d8', + focusSecondary: '#fefe03', + headerBackground: '#3d9961', + headerNotActiveBackground: '#807f80', + headerNotActiveText: '#d4deda', + headerText: '#fcfff6', + hoverBackground: '#3d9961', + material: '#99c9a8', + materialDark: '#9a9e9c', + materialText: '#050608', + materialTextDisabled: '#3d5367', + materialTextDisabledShadow: '#cdead2', + materialTextInvert: '#fcfff6', + progress: '#3d9961', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/theSixtiesUSA.js b/src/common/themes/theSixtiesUSA.js new file mode 100644 index 00000000..c0055f2f --- /dev/null +++ b/src/common/themes/theSixtiesUSA.js @@ -0,0 +1,33 @@ +export default { + name: 'theSixtiesUSA', + + anchor: '#1034a6', + anchorVisited: '#440381', + borderDark: '#6c1f71', + borderDarkest: '#010001', + borderLight: '#d982de', + borderLightest: '#df9be7', + canvas: '#ffffff', + canvasText: '#010001', + canvasTextDisabled: '#6c1f71', + canvasTextDisabledShadow: '#df9be7', + canvasTextInvert: '#010001', + checkmark: '#010001', + checkmarkDisabled: '#6c1f71', + flatDark: '#d067d7', + flatLight: '#df9be7', + focusSecondary: '#fefe03', + headerBackground: '#050080', + headerNotActiveBackground: '#a130a9', + headerNotActiveText: '#df9be7', + headerText: '#ffffff', + hoverBackground: '#0f0', + material: '#d067d7', + materialDark: '#9a9e9c', + materialText: '#010001', + materialTextDisabled: '#6c1f71', + materialTextDisabledShadow: '#df9be7', + materialTextInvert: '#010001', + progress: '#0f0', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/tokyoDark.js b/src/common/themes/tokyoDark.js new file mode 100644 index 00000000..4c279d2c --- /dev/null +++ b/src/common/themes/tokyoDark.js @@ -0,0 +1,33 @@ +export default { + name: 'tokyoDark', + + anchor: '#1034a6', + anchorVisited: '#440381', + borderDark: '#1f2223', + borderDarkest: '#070809', + borderLight: '#5e696a', + borderLightest: '#93a0a1', + canvas: '#2f3435', + canvasText: '#F4F4ED', + canvasTextDisabled: '#1f2223', + canvasTextDisabledShadow: '#93a0a1', + canvasTextInvert: '#ffffff', + checkmark: '#F4F4ED', + checkmarkDisabled: '#1f2223', + flatDark: '#9e9e9e', + flatLight: '#d8d8d8', + focusSecondary: '#20FC8F', + headerBackground: '#1f2223', + headerNotActiveBackground: '#5e696a', + headerNotActiveText: '#F4F4ED', + headerText: '#F4F4ED', + hoverBackground: '#F61067', + material: '#465051', + materialDark: '#1f2223', + materialText: '#F4F4ED', + materialTextDisabled: '#1f2223', + materialTextDisabledShadow: '#93a0a1', + materialTextInvert: '#ffffff', + progress: '#F61067', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/tooSexy.js b/src/common/themes/tooSexy.js new file mode 100644 index 00000000..2d4c3caf --- /dev/null +++ b/src/common/themes/tooSexy.js @@ -0,0 +1,33 @@ +export default { + name: 'tooSexy', + + anchor: '#1034a6', + anchorVisited: '#440381', + borderDark: '#5a0302', + borderDarkest: '#000000', + borderLight: '#c81d19', + borderLightest: '#fe5757', + canvas: '#FFF1D0', + canvasText: '#000000', + canvasTextDisabled: '#5a0302', + canvasTextDisabledShadow: '#FFF1D0', + canvasTextInvert: '#ffffff', + checkmark: '#000000', + checkmarkDisabled: '#5a0302', + flatDark: '#9e9e9e', + flatLight: '#d8d8d8', + focusSecondary: '#fefe03', + headerBackground: '#161B33', + headerNotActiveBackground: '#5a0302', + headerNotActiveText: '#B80100', + headerText: '#FFF1D0', + hoverBackground: '#474973', + material: '#B80100', + materialDark: '#9a9e9c', + materialText: '#000000', + materialTextDisabled: '#5a0302', + materialTextDisabledShadow: '#fe5757', + materialTextInvert: '#ffffff', + progress: '#474973', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/travel.js b/src/common/themes/travel.js new file mode 100644 index 00000000..dd86d99f --- /dev/null +++ b/src/common/themes/travel.js @@ -0,0 +1,33 @@ +export default { + name: 'travel', + + anchor: '#1034a6', + anchorVisited: '#440381', + borderDark: '#695f50', + borderDarkest: '#28251e', + borderLight: '#9d8f80', + borderLightest: '#baae9f', + canvas: '#d8d0c8', + canvasText: '#28251e', + canvasTextDisabled: '#695f50', + canvasTextDisabledShadow: '#baae9f', + canvasTextInvert: '#ffffff', + checkmark: '#28251e', + checkmarkDisabled: '#695f50', + flatDark: '#695f50', + flatLight: '#9d8f80', + focusSecondary: '#fefe03', + headerBackground: '#404878', + headerNotActiveBackground: '#605848', + headerNotActiveText: '#908070', + headerText: '#d8d0c8', + hoverBackground: '#48604f', + material: '#908070', + materialDark: '#9a9e9c', + materialText: '#28251e', + materialTextDisabled: '#695f50', + materialTextDisabledShadow: '#baae9f', + materialTextInvert: '#ffffff', + progress: '#48604f', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/vaporTeal.js b/src/common/themes/vaporTeal.js new file mode 100644 index 00000000..9499334f --- /dev/null +++ b/src/common/themes/vaporTeal.js @@ -0,0 +1,33 @@ +export default { + name: 'vaporTeal', + + anchor: '#1034a6', + anchorVisited: '#440381', + borderDark: '#00706f', + borderDarkest: '#000000', + borderLight: '#2fcecd', + borderLightest: '#58ffff', + canvas: '#98DFEA', + canvasText: '#000000', + canvasTextDisabled: '#00706f', + canvasTextDisabledShadow: '#58ffff', + canvasTextInvert: '#000000', + checkmark: '#000000', + checkmarkDisabled: '#00706f', + flatDark: '#9e9e9e', + flatLight: '#d8d8d8', + focusSecondary: '#FCF6BD', + headerBackground: '#246A73', + headerNotActiveBackground: '#2fcecd', + headerNotActiveText: '#246A73', + headerText: '#58ffff', + hoverBackground: '#FF99C8', + material: '#01a8a8', + materialDark: '#246A73', + materialText: '#000000', + materialTextDisabled: '#00706f', + materialTextDisabledShadow: '#58ffff', + materialTextInvert: '#000000', + progress: '#FF99C8', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/vermillion.js b/src/common/themes/vermillion.js new file mode 100644 index 00000000..5c13ddf0 --- /dev/null +++ b/src/common/themes/vermillion.js @@ -0,0 +1,33 @@ +export default { + name: 'vermillion', + + anchor: '#1034a6', + anchorVisited: '#440381', + borderDark: '#7f2120', + borderDarkest: '#130405', + borderLight: '#d25051', + borderLightest: '#e59697', + canvas: '#EFE9F4', + canvasText: '#130405', + canvasTextDisabled: '#7f2120', + canvasTextDisabledShadow: '#e59697', + canvasTextInvert: '#EFE9F4', + checkmark: '#130405', + checkmarkDisabled: '#7f2120', + flatDark: '#9e9e9e', + flatLight: '#d8d8d8', + focusSecondary: '#fefe03', + headerBackground: '#000103', + headerNotActiveBackground: '#7f2120', + headerNotActiveText: '#EFE9F4', + headerText: '#EFE9F4', + hoverBackground: '#000103', + material: '#cf4545', + materialDark: '#7f2120', + materialText: '#130405', + materialTextDisabled: '#7f2120', + materialTextDisabledShadow: '#e59697', + materialTextInvert: '#EFE9F4', + progress: '#000103', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/violetDark.js b/src/common/themes/violetDark.js new file mode 100644 index 00000000..b2614752 --- /dev/null +++ b/src/common/themes/violetDark.js @@ -0,0 +1,33 @@ +export default { + name: 'violetDark', + + anchor: '#1034a6', + anchorVisited: '#440381', + borderDark: '#3c1f3e', + borderDarkest: '#18051a', + borderLight: '#945b9b', + borderLightest: '#c47bcc', + canvas: '#c47bcc', + canvasText: '#18051a', + canvasTextDisabled: '#000000', + canvasTextDisabledShadow: '#000000', + canvasTextInvert: '#c57ece', + checkmark: '#000000', + checkmarkDisabled: '#3c1f3e', + flatDark: '#3c1f3e', + flatLight: '#945b9b', + focusSecondary: '#fefe03', + headerBackground: '#1034a6', + headerNotActiveBackground: '#210e23', + headerNotActiveText: '#652a6d', + headerText: '#010601', + hoverBackground: '#512155', + material: '#652a6d', + materialDark: '#210e23', + materialText: '#c57ece', + materialTextDisabled: '#3c1f3e', + materialTextDisabledShadow: '#c47bcc', + materialTextInvert: '#c47bcc', + progress: '#000080', + tooltip: '#fefbcc' +}; diff --git a/src/common/themes/water.js b/src/common/themes/water.js new file mode 100644 index 00000000..9ec1b736 --- /dev/null +++ b/src/common/themes/water.js @@ -0,0 +1,33 @@ +export default { + name: 'water', + + anchor: '#72b3b4', + anchorVisited: '#440381', + borderDark: '#888c8f', + borderDarkest: '#050608', + borderLight: '#dfe0e3', + borderLightest: '#ffffff', + canvas: '#ffffff', + canvasText: '#050608', + canvasTextDisabled: '#888c8f', + canvasTextDisabledShadow: '#ffffff', + canvasTextInvert: '#ffffff', + checkmark: '#050608', + checkmarkDisabled: '#888c8f', + flatDark: '#9e9e9e', + flatLight: '#d8d8d8', + focusSecondary: '#fefe03', + headerBackground: '#72b3b4', + headerNotActiveBackground: '#9a9e9c', + headerNotActiveText: '#ced0cf', + headerText: '#ffffff', + hoverBackground: '#72b3b4', + material: '#ced0cf', + materialDark: '#9a9e9c', + materialText: '#050608', + materialTextDisabled: '#888c8f', + materialTextDisabledShadow: '#ffffff', + materialTextInvert: '#ffffff', + progress: '#72b3b4', + tooltip: '#fefbcc' +}; diff --git a/src/components/common/utils/index.js b/src/common/utils/index.js similarity index 100% rename from src/components/common/utils/index.js rename to src/common/utils/index.js diff --git a/src/components/common/utils/index.spec.js b/src/common/utils/index.spec.js similarity index 100% rename from src/components/common/utils/index.spec.js rename to src/common/utils/index.spec.js diff --git a/src/components/index.js b/src/index.js similarity index 97% rename from src/components/index.js rename to src/index.js index aa0f39e8..7e81188a 100644 --- a/src/components/index.js +++ b/src/index.js @@ -1,6 +1,5 @@ /* common */ export { default as styleReset } from './common/styleReset'; -export { default as themes } from './common/themes'; /* components */ export { default as Anchor } from './Anchor/Anchor'; diff --git a/test/utils.js b/test/utils.js index 14f7b1d6..fce3a6fa 100644 --- a/test/utils.js +++ b/test/utils.js @@ -2,9 +2,9 @@ import React from 'react'; import { ThemeProvider } from 'styled-components'; import { render } from '@testing-library/react'; -import themes from '../src/components/common/themes'; +import themes from '../src/common/themes'; -export const theme = themes.default; +export const theme = themes.original; export const renderWithTheme = component => render({component});