@react95/core 7.0.1 → 8.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/Alert/Alert.css.d.ts +3 -0
- package/@types/Alert/Alert.d.ts +2 -9
- package/@types/Alert/index.d.ts +1 -1
- package/@types/Avatar/Avatar.css.d.ts +15 -0
- package/@types/Avatar/Avatar.d.ts +3 -4
- package/@types/Avatar/index.d.ts +1 -1
- package/@types/Button/Button.css.d.ts +1 -0
- package/@types/Button/Button.d.ts +4 -2
- package/@types/Button/index.d.ts +1 -1
- package/@types/Checkbox/Checkbox.css.d.ts +4 -0
- package/@types/Checkbox/Checkbox.d.ts +2 -9
- package/@types/Checkbox/index.d.ts +1 -1
- package/@types/Cursor/Cursor.css.d.ts +1 -0
- package/@types/Cursor/index.d.ts +1 -1
- package/@types/Dropdown/Dropdown.css.d.ts +2 -0
- package/@types/Dropdown/Dropdown.d.ts +5 -4
- package/@types/Dropdown/index.d.ts +1 -1
- package/@types/Fieldset/Fieldset.css.d.ts +2 -0
- package/@types/Fieldset/Fieldset.d.ts +3 -5
- package/@types/Fieldset/index.d.ts +1 -1
- package/@types/Frame/Frame.d.ts +2251 -5
- package/@types/Frame/index.d.ts +1 -1
- package/@types/Frame/props.d.ts +977 -0
- package/@types/Frame/sprinkles.css.d.ts +2271 -0
- package/@types/GlobalStyle/GlobalStyle.css.d.ts +2 -0
- package/@types/GlobalStyle/utils.d.ts +15 -0
- package/@types/Input/Input.css.d.ts +1 -0
- package/@types/Input/Input.d.ts +3 -4
- package/@types/Input/index.d.ts +1 -1
- package/@types/List/List.css.d.ts +3 -0
- package/@types/List/List.d.ts +9 -9
- package/@types/List/ListDivider.d.ts +4 -2
- package/@types/List/ListItem.d.ts +1 -2
- package/@types/List/index.d.ts +1 -1
- package/@types/Modal/Modal.css.d.ts +18 -0
- package/@types/Modal/Modal.d.ts +6 -22
- package/@types/Modal/index.d.ts +1 -1
- package/@types/ProgressBar/ProgressBar.css.d.ts +4 -0
- package/@types/ProgressBar/ProgressBar.d.ts +3 -4
- package/@types/ProgressBar/index.d.ts +1 -1
- package/@types/RadioButton/RadioButton.css.d.ts +4 -0
- package/@types/RadioButton/RadioButton.d.ts +1 -2
- package/@types/RadioButton/index.d.ts +1 -1
- package/@types/Range/Range.css.d.ts +1 -0
- package/@types/Range/Range.d.ts +4 -4
- package/@types/Range/index.d.ts +1 -1
- package/@types/Tabs/Tab.d.ts +4 -4
- package/@types/Tabs/Tabs.css.d.ts +15 -0
- package/@types/Tabs/Tabs.d.ts +4 -5
- package/@types/Tabs/index.d.ts +2 -2
- package/@types/TaskBar/Clock.d.ts +1 -2
- package/@types/TaskBar/TaskBar.css.d.ts +21 -0
- package/@types/TaskBar/TaskBar.d.ts +1 -2
- package/@types/TaskBar/WindowButton.d.ts +5 -4
- package/@types/TaskBar/index.d.ts +1 -1
- package/@types/TextArea/TextArea.d.ts +4 -5
- package/@types/TextArea/index.d.ts +1 -1
- package/@types/TitleBar/TitleBar.css.d.ts +15 -0
- package/@types/TitleBar/TitleBar.d.ts +5 -7
- package/@types/TitleBar/index.d.ts +1 -1
- package/@types/Tooltip/Tooltip.css.d.ts +2 -0
- package/@types/Tooltip/Tooltip.d.ts +1 -2
- package/@types/Tooltip/index.d.ts +1 -1
- package/@types/Tree/Node.d.ts +4 -1
- package/@types/Tree/Tree.css.d.ts +16 -0
- package/@types/Tree/Tree.d.ts +5 -3
- package/@types/Tree/index.d.ts +1 -1
- package/@types/Video/Video.css.d.ts +18 -0
- package/@types/Video/Video.d.ts +2 -9
- package/@types/Video/index.d.ts +1 -1
- package/@types/index.d.ts +2 -3
- package/@types/shared/test/utils.d.ts +2 -3
- package/@types/themes/all.d.ts +36 -0
- package/@types/themes/azureOrange.css.d.ts +1 -0
- package/@types/themes/baseTheme.css.d.ts +88 -0
- package/@types/themes/bee.css.d.ts +1 -0
- package/@types/themes/blackAndWhite.css.d.ts +1 -0
- package/@types/themes/brick.css.d.ts +1 -0
- package/@types/themes/candy.css.d.ts +1 -0
- package/@types/themes/coldGray.css.d.ts +1 -0
- package/@types/themes/contract.css.d.ts +58 -0
- package/@types/themes/counterStrike.css.d.ts +1 -0
- package/@types/themes/eggplant.css.d.ts +1 -0
- package/@types/themes/highContrast.css.d.ts +1 -0
- package/@types/themes/lilac.css.d.ts +1 -0
- package/@types/themes/lilacRoseDark.css.d.ts +1 -0
- package/@types/themes/maple.css.d.ts +1 -0
- package/@types/themes/marine.css.d.ts +1 -0
- package/@types/themes/matrix.css.d.ts +1 -0
- package/@types/themes/millenium.css.d.ts +1 -0
- package/@types/themes/modernDark.css.d.ts +1 -0
- package/@types/themes/molecule.css.d.ts +1 -0
- package/@types/themes/ninjaTurtles.css.d.ts +1 -0
- package/@types/themes/olive.css.d.ts +1 -0
- package/@types/themes/pamelaAnderson.css.d.ts +1 -0
- package/@types/themes/plum.css.d.ts +1 -0
- package/@types/themes/rainyDay.css.d.ts +1 -0
- package/@types/themes/rose.css.d.ts +1 -0
- package/@types/themes/slate.css.d.ts +1 -0
- package/@types/themes/spruce.css.d.ts +1 -0
- package/@types/themes/storm.css.d.ts +1 -0
- package/@types/themes/theSixtiesUSA.css.d.ts +1 -0
- package/@types/themes/tokyoDark.css.d.ts +1 -0
- package/@types/themes/tooSexy.css.d.ts +1 -0
- package/@types/themes/travel.css.d.ts +1 -0
- package/@types/themes/vaporTeal.css.d.ts +1 -0
- package/@types/themes/vermillion.css.d.ts +1 -0
- package/@types/themes/violetDark.css.d.ts +1 -0
- package/@types/themes/water.css.d.ts +1 -0
- package/@types/themes/win95.css.d.ts +1 -0
- package/cjs/Alert/Alert.css.js +23 -0
- package/cjs/Alert/Alert.js +17 -29
- package/cjs/Alert/index.js +2 -3
- package/cjs/Avatar/Avatar.css.js +39 -0
- package/cjs/Avatar/Avatar.js +21 -31
- package/cjs/Avatar/index.js +2 -3
- package/cjs/Button/Button.css.js +35 -0
- package/cjs/Button/Button.js +15 -10
- package/cjs/Button/index.js +2 -3
- package/cjs/Checkbox/Checkbox.css.js +73 -0
- package/cjs/Checkbox/Checkbox.js +21 -43
- package/cjs/Checkbox/index.js +2 -3
- package/cjs/Cursor/Cursor.css.js +137 -0
- package/cjs/Cursor/index.js +2 -3
- package/cjs/Dropdown/Dropdown.css.js +56 -0
- package/cjs/Dropdown/Dropdown.js +19 -19
- package/cjs/Dropdown/index.js +2 -3
- package/cjs/Fieldset/Fieldset.css.js +27 -0
- package/cjs/Fieldset/Fieldset.js +13 -16
- package/cjs/Fieldset/index.js +2 -3
- package/cjs/Frame/Frame.js +30 -12
- package/cjs/Frame/index.js +2 -3
- package/cjs/Frame/props.js +162 -0
- package/cjs/Frame/sprinkles.css.js +73 -0
- package/cjs/GlobalStyle/GlobalStyle.css.js +130 -0
- package/cjs/GlobalStyle/utils.js +23 -0
- package/cjs/Input/Input.css.js +30 -0
- package/cjs/Input/Input.js +15 -10
- package/cjs/Input/index.js +2 -3
- package/cjs/List/List.css.js +79 -0
- package/cjs/List/List.js +18 -22
- package/cjs/List/ListDivider.js +14 -8
- package/cjs/List/ListItem.js +18 -28
- package/cjs/List/index.js +2 -3
- package/cjs/Modal/Modal.css.js +76 -0
- package/cjs/Modal/Modal.js +61 -72
- package/cjs/Modal/close.svg +1 -0
- package/cjs/Modal/help.svg +1 -0
- package/cjs/Modal/index.js +2 -2
- package/cjs/Modal/maximize.svg +1 -0
- package/cjs/Modal/minimize.svg +1 -0
- package/cjs/Modal/restore.svg +1 -0
- package/cjs/ProgressBar/ProgressBar.css.js +40 -0
- package/cjs/ProgressBar/ProgressBar.js +22 -47
- package/cjs/ProgressBar/index.js +2 -3
- package/cjs/RadioButton/RadioButton.css.js +55 -0
- package/cjs/RadioButton/RadioButton.js +18 -40
- package/cjs/RadioButton/index.js +2 -3
- package/cjs/Range/Range.css.js +59 -0
- package/cjs/Range/Range.js +15 -11
- package/cjs/Range/index.js +2 -3
- package/cjs/Tabs/Tab.js +15 -18
- package/cjs/Tabs/Tabs.css.js +56 -0
- package/cjs/Tabs/Tabs.js +14 -24
- package/cjs/Tabs/index.js +4 -5
- package/cjs/TaskBar/Clock.js +13 -19
- package/cjs/TaskBar/TaskBar.css.js +82 -0
- package/cjs/TaskBar/TaskBar.js +36 -41
- package/cjs/TaskBar/WindowButton.js +21 -47
- package/cjs/TaskBar/index.js +2 -3
- package/cjs/TextArea/TextArea.js +10 -16
- package/cjs/TextArea/index.js +2 -3
- package/cjs/TitleBar/TitleBar.css.js +78 -0
- package/cjs/TitleBar/TitleBar.js +37 -43
- package/cjs/TitleBar/index.js +2 -3
- package/cjs/Tooltip/Tooltip.css.js +31 -0
- package/cjs/Tooltip/Tooltip.js +21 -30
- package/cjs/Tooltip/index.js +2 -3
- package/cjs/Tree/Node.js +70 -55
- package/cjs/Tree/Tree.css.js +116 -0
- package/cjs/Tree/Tree.js +11 -13
- package/cjs/Tree/index.js +2 -3
- package/cjs/Video/Video.css.js +106 -0
- package/cjs/Video/Video.js +57 -95
- package/cjs/Video/index.js +2 -3
- package/cjs/index.js +6 -14
- package/cjs/shared/test/utils.js +17 -19
- package/cjs/themes/all.js +250 -0
- package/cjs/themes/azureOrange.css.js +42 -0
- package/cjs/themes/baseTheme.css.js +69 -0
- package/cjs/themes/bee.css.js +42 -0
- package/cjs/themes/blackAndWhite.css.js +42 -0
- package/cjs/themes/brick.css.js +42 -0
- package/cjs/themes/candy.css.js +42 -0
- package/cjs/{ThemeProvider/themes/coldGray.js → themes/coldGray.css.js} +7 -13
- package/cjs/themes/contract.css.js +21 -0
- package/cjs/{ThemeProvider/themes/counterStrike.js → themes/counterStrike.css.js} +7 -13
- package/cjs/themes/eggplant.css.js +42 -0
- package/cjs/themes/highContrast.css.js +42 -0
- package/cjs/themes/lilac.css.js +42 -0
- package/cjs/themes/lilacRoseDark.css.js +42 -0
- package/cjs/themes/maple.css.js +42 -0
- package/cjs/themes/marine.css.js +42 -0
- package/cjs/themes/matrix.css.js +42 -0
- package/cjs/themes/millenium.css.js +42 -0
- package/cjs/themes/modernDark.css.js +42 -0
- package/cjs/themes/molecule.css.js +42 -0
- package/cjs/themes/ninjaTurtles.css.js +42 -0
- package/cjs/themes/olive.css.js +42 -0
- package/cjs/themes/pamelaAnderson.css.js +42 -0
- package/cjs/themes/plum.css.js +42 -0
- package/cjs/themes/rainyDay.css.js +42 -0
- package/cjs/themes/rose.css.js +42 -0
- package/cjs/{ThemeProvider/themes/slate.js → themes/slate.css.js} +7 -13
- package/cjs/themes/spruce.css.js +42 -0
- package/cjs/{ThemeProvider/themes/storm.js → themes/storm.css.js} +7 -13
- package/cjs/themes/theSixtiesUSA.css.js +42 -0
- package/cjs/themes/tokyoDark.css.js +42 -0
- package/cjs/themes/tooSexy.css.js +42 -0
- package/cjs/themes/travel.css.js +42 -0
- package/cjs/themes/vaporTeal.css.js +42 -0
- package/cjs/{ThemeProvider/themes/vermillion.js → themes/vermillion.css.js} +7 -13
- package/cjs/{ThemeProvider/themes/violetDark.js → themes/violetDark.css.js} +7 -13
- package/cjs/themes/water.css.js +42 -0
- package/cjs/themes/win95.css.js +42 -0
- package/esm/Alert/Alert.css.js +17 -0
- package/esm/Alert/Alert.js +15 -26
- package/esm/Alert/index.js +1 -1
- package/esm/Avatar/Avatar.css.js +33 -0
- package/esm/Avatar/Avatar.js +20 -30
- package/esm/Avatar/index.js +1 -1
- package/esm/Button/Button.css.js +29 -0
- package/esm/Button/Button.js +13 -9
- package/esm/Button/index.js +1 -1
- package/esm/Checkbox/Checkbox.css.js +66 -0
- package/esm/Checkbox/Checkbox.js +20 -41
- package/esm/Checkbox/index.js +1 -1
- package/esm/Cursor/Cursor.css.js +130 -0
- package/esm/Cursor/index.js +1 -1
- package/esm/Dropdown/Dropdown.css.js +49 -0
- package/esm/Dropdown/Dropdown.js +18 -18
- package/esm/Dropdown/index.js +1 -1
- package/esm/Fieldset/Fieldset.css.js +21 -0
- package/esm/Fieldset/Fieldset.js +12 -15
- package/esm/Fieldset/index.js +1 -1
- package/esm/Frame/Frame.js +29 -11
- package/esm/Frame/index.js +1 -1
- package/esm/Frame/props.js +156 -0
- package/esm/Frame/sprinkles.css.js +67 -0
- package/esm/GlobalStyle/GlobalStyle.css.js +123 -0
- package/esm/GlobalStyle/utils.js +17 -0
- package/esm/Input/Input.css.js +24 -0
- package/esm/Input/Input.js +11 -8
- package/esm/Input/index.js +1 -1
- package/esm/List/List.css.js +72 -0
- package/esm/List/List.js +15 -16
- package/esm/List/ListDivider.js +13 -7
- package/esm/List/ListItem.js +17 -27
- package/esm/List/index.js +1 -1
- package/esm/Modal/Modal.css.js +70 -0
- package/esm/Modal/Modal.js +60 -71
- package/esm/Modal/close.svg +1 -0
- package/esm/Modal/help.svg +1 -0
- package/esm/Modal/index.js +1 -1
- package/esm/Modal/maximize.svg +1 -0
- package/esm/Modal/minimize.svg +1 -0
- package/esm/Modal/restore.svg +1 -0
- package/esm/ProgressBar/ProgressBar.css.js +34 -0
- package/esm/ProgressBar/ProgressBar.js +20 -46
- package/esm/ProgressBar/index.js +1 -1
- package/esm/RadioButton/RadioButton.css.js +49 -0
- package/esm/RadioButton/RadioButton.js +17 -39
- package/esm/RadioButton/index.js +1 -1
- package/esm/Range/Range.css.js +53 -0
- package/esm/Range/Range.js +13 -10
- package/esm/Range/index.js +1 -1
- package/esm/Tabs/Tab.js +13 -17
- package/esm/Tabs/Tabs.css.js +50 -0
- package/esm/Tabs/Tabs.js +11 -21
- package/esm/Tabs/index.js +2 -2
- package/esm/TaskBar/Clock.js +12 -18
- package/esm/TaskBar/TaskBar.css.js +76 -0
- package/esm/TaskBar/TaskBar.js +32 -38
- package/esm/TaskBar/WindowButton.js +20 -45
- package/esm/TaskBar/index.js +1 -1
- package/esm/TextArea/TextArea.js +9 -14
- package/esm/TextArea/index.js +1 -1
- package/esm/TitleBar/TitleBar.css.js +72 -0
- package/esm/TitleBar/TitleBar.js +36 -42
- package/esm/TitleBar/index.js +1 -1
- package/esm/Tooltip/Tooltip.css.js +25 -0
- package/esm/Tooltip/Tooltip.js +20 -29
- package/esm/Tooltip/index.js +1 -1
- package/esm/Tree/Node.js +69 -54
- package/esm/Tree/Tree.css.js +110 -0
- package/esm/Tree/Tree.js +11 -12
- package/esm/Tree/index.js +1 -1
- package/esm/Video/Video.css.js +100 -0
- package/esm/Video/Video.js +56 -95
- package/esm/Video/index.js +1 -1
- package/esm/index.js +2 -3
- package/esm/shared/test/utils.js +10 -17
- package/esm/themes/all.js +36 -0
- package/esm/{ThemeProvider/themes/azureOrange.js → themes/azureOrange.css.js} +6 -10
- package/esm/themes/baseTheme.css.js +63 -0
- package/esm/{ThemeProvider/themes/bee.js → themes/bee.css.js} +6 -10
- package/esm/{ThemeProvider/themes/blackAndWhite.js → themes/blackAndWhite.css.js} +6 -10
- package/esm/{ThemeProvider/themes/brick.js → themes/brick.css.js} +6 -10
- package/esm/{ThemeProvider/themes/candy.js → themes/candy.css.js} +6 -10
- package/esm/{ThemeProvider/themes/coldGray.js → themes/coldGray.css.js} +6 -10
- package/esm/themes/contract.css.js +15 -0
- package/esm/{ThemeProvider/themes/counterStrike.js → themes/counterStrike.css.js} +6 -10
- package/esm/{ThemeProvider/themes/eggplant.js → themes/eggplant.css.js} +6 -10
- package/esm/{ThemeProvider/themes/highContrast.js → themes/highContrast.css.js} +6 -10
- package/esm/{ThemeProvider/themes/lilac.js → themes/lilac.css.js} +6 -10
- package/esm/{ThemeProvider/themes/lilacRoseDark.js → themes/lilacRoseDark.css.js} +6 -10
- package/esm/{ThemeProvider/themes/maple.js → themes/maple.css.js} +6 -10
- package/esm/{ThemeProvider/themes/marine.js → themes/marine.css.js} +6 -10
- package/esm/{ThemeProvider/themes/matrix.js → themes/matrix.css.js} +6 -10
- package/esm/{ThemeProvider/themes/millenium.js → themes/millenium.css.js} +6 -10
- package/esm/{ThemeProvider/themes/modernDark.js → themes/modernDark.css.js} +6 -10
- package/esm/{ThemeProvider/themes/molecule.js → themes/molecule.css.js} +6 -10
- package/esm/{ThemeProvider/themes/ninjaTurtles.js → themes/ninjaTurtles.css.js} +6 -10
- package/esm/{ThemeProvider/themes/olive.js → themes/olive.css.js} +6 -10
- package/esm/{ThemeProvider/themes/pamelaAnderson.js → themes/pamelaAnderson.css.js} +6 -10
- package/esm/{ThemeProvider/themes/plum.js → themes/plum.css.js} +6 -10
- package/esm/{ThemeProvider/themes/rainyDay.js → themes/rainyDay.css.js} +6 -10
- package/esm/{ThemeProvider/themes/rose.js → themes/rose.css.js} +6 -10
- package/esm/{ThemeProvider/themes/slate.js → themes/slate.css.js} +6 -10
- package/esm/{ThemeProvider/themes/spruce.js → themes/spruce.css.js} +6 -10
- package/esm/{ThemeProvider/themes/storm.js → themes/storm.css.js} +6 -10
- package/esm/{ThemeProvider/themes/theSixtiesUSA.js → themes/theSixtiesUSA.css.js} +6 -10
- package/esm/{ThemeProvider/themes/tokyoDark.js → themes/tokyoDark.css.js} +6 -10
- package/esm/{ThemeProvider/themes/tooSexy.js → themes/tooSexy.css.js} +6 -10
- package/esm/{ThemeProvider/themes/travel.js → themes/travel.css.js} +6 -10
- package/esm/{ThemeProvider/themes/vaporTeal.js → themes/vaporTeal.css.js} +6 -10
- package/esm/{ThemeProvider/themes/vermillion.js → themes/vermillion.css.js} +6 -10
- package/esm/{ThemeProvider/themes/violetDark.js → themes/violetDark.css.js} +6 -10
- package/esm/{ThemeProvider/themes/water.js → themes/water.css.js} +6 -10
- package/esm/{ThemeProvider/themes/win95.js → themes/win95.css.js} +6 -10
- package/package.json +6 -11
- package/@types/Cursor/Cursor.d.ts +0 -38
- package/@types/GlobalStyle/Borders.d.ts +0 -15
- package/@types/GlobalStyle/GlobalStyle.d.ts +0 -2
- package/@types/GlobalStyle/Scrollbar.d.ts +0 -7
- package/@types/GlobalStyle/index.d.ts +0 -2
- package/@types/ThemeProvider/ThemeProvider.d.ts +0 -7
- package/@types/ThemeProvider/index.d.ts +0 -2
- package/@types/ThemeProvider/themes/azureOrange.d.ts +0 -3
- package/@types/ThemeProvider/themes/baseTheme.d.ts +0 -9
- package/@types/ThemeProvider/themes/bee.d.ts +0 -3
- package/@types/ThemeProvider/themes/blackAndWhite.d.ts +0 -3
- package/@types/ThemeProvider/themes/brick.d.ts +0 -3
- package/@types/ThemeProvider/themes/candy.d.ts +0 -3
- package/@types/ThemeProvider/themes/coldGray.d.ts +0 -3
- package/@types/ThemeProvider/themes/counterStrike.d.ts +0 -3
- package/@types/ThemeProvider/themes/eggplant.d.ts +0 -3
- package/@types/ThemeProvider/themes/highContrast.d.ts +0 -3
- package/@types/ThemeProvider/themes/lilac.d.ts +0 -3
- package/@types/ThemeProvider/themes/lilacRoseDark.d.ts +0 -3
- package/@types/ThemeProvider/themes/maple.d.ts +0 -3
- package/@types/ThemeProvider/themes/marine.d.ts +0 -3
- package/@types/ThemeProvider/themes/matrix.d.ts +0 -3
- package/@types/ThemeProvider/themes/millenium.d.ts +0 -3
- package/@types/ThemeProvider/themes/modernDark.d.ts +0 -3
- package/@types/ThemeProvider/themes/molecule.d.ts +0 -3
- package/@types/ThemeProvider/themes/ninjaTurtles.d.ts +0 -3
- package/@types/ThemeProvider/themes/olive.d.ts +0 -3
- package/@types/ThemeProvider/themes/pamelaAnderson.d.ts +0 -3
- package/@types/ThemeProvider/themes/plum.d.ts +0 -3
- package/@types/ThemeProvider/themes/rainyDay.d.ts +0 -3
- package/@types/ThemeProvider/themes/rose.d.ts +0 -3
- package/@types/ThemeProvider/themes/slate.d.ts +0 -3
- package/@types/ThemeProvider/themes/spruce.d.ts +0 -3
- package/@types/ThemeProvider/themes/storm.d.ts +0 -3
- package/@types/ThemeProvider/themes/theSixtiesUSA.d.ts +0 -3
- package/@types/ThemeProvider/themes/tokyoDark.d.ts +0 -3
- package/@types/ThemeProvider/themes/tooSexy.d.ts +0 -3
- package/@types/ThemeProvider/themes/travel.d.ts +0 -3
- package/@types/ThemeProvider/themes/vaporTeal.d.ts +0 -3
- package/@types/ThemeProvider/themes/vermillion.d.ts +0 -3
- package/@types/ThemeProvider/themes/violetDark.d.ts +0 -3
- package/@types/ThemeProvider/themes/water.d.ts +0 -3
- package/@types/ThemeProvider/themes/win95.d.ts +0 -3
- package/@types/ThemeProvider/themes.d.ts +0 -38
- package/cjs/Cursor/Cursor.js +0 -86
- package/cjs/GlobalStyle/Borders.js +0 -88
- package/cjs/GlobalStyle/GlobalStyle.js +0 -18
- package/cjs/GlobalStyle/Scrollbar.js +0 -59
- package/cjs/GlobalStyle/index.js +0 -9
- package/cjs/ThemeProvider/ThemeProvider.js +0 -25
- package/cjs/ThemeProvider/index.js +0 -9
- package/cjs/ThemeProvider/themes/azureOrange.js +0 -48
- package/cjs/ThemeProvider/themes/baseTheme.js +0 -28
- package/cjs/ThemeProvider/themes/bee.js +0 -48
- package/cjs/ThemeProvider/themes/blackAndWhite.js +0 -48
- package/cjs/ThemeProvider/themes/brick.js +0 -48
- package/cjs/ThemeProvider/themes/candy.js +0 -48
- package/cjs/ThemeProvider/themes/eggplant.js +0 -48
- package/cjs/ThemeProvider/themes/highContrast.js +0 -48
- package/cjs/ThemeProvider/themes/lilac.js +0 -48
- package/cjs/ThemeProvider/themes/lilacRoseDark.js +0 -48
- package/cjs/ThemeProvider/themes/maple.js +0 -48
- package/cjs/ThemeProvider/themes/marine.js +0 -48
- package/cjs/ThemeProvider/themes/matrix.js +0 -48
- package/cjs/ThemeProvider/themes/millenium.js +0 -48
- package/cjs/ThemeProvider/themes/modernDark.js +0 -48
- package/cjs/ThemeProvider/themes/molecule.js +0 -48
- package/cjs/ThemeProvider/themes/ninjaTurtles.js +0 -48
- package/cjs/ThemeProvider/themes/olive.js +0 -48
- package/cjs/ThemeProvider/themes/pamelaAnderson.js +0 -48
- package/cjs/ThemeProvider/themes/plum.js +0 -48
- package/cjs/ThemeProvider/themes/rainyDay.js +0 -48
- package/cjs/ThemeProvider/themes/rose.js +0 -48
- package/cjs/ThemeProvider/themes/spruce.js +0 -48
- package/cjs/ThemeProvider/themes/theSixtiesUSA.js +0 -48
- package/cjs/ThemeProvider/themes/tokyoDark.js +0 -48
- package/cjs/ThemeProvider/themes/tooSexy.js +0 -48
- package/cjs/ThemeProvider/themes/travel.js +0 -48
- package/cjs/ThemeProvider/themes/vaporTeal.js +0 -48
- package/cjs/ThemeProvider/themes/water.js +0 -48
- package/cjs/ThemeProvider/themes/win95.js +0 -48
- package/cjs/ThemeProvider/themes.js +0 -80
- package/cjs/Tree/imgs/tree-first.png +0 -0
- package/cjs/Tree/imgs/tree-folder-closed.png +0 -0
- package/cjs/Tree/imgs/tree-folder-opened.png +0 -0
- package/cjs/Tree/imgs/tree-last.png +0 -0
- package/cjs/Tree/imgs/tree-mid.png +0 -0
- package/cjs/Tree/imgs/tree-node-children.png +0 -0
- package/esm/Cursor/Cursor.js +0 -79
- package/esm/GlobalStyle/Borders.js +0 -82
- package/esm/GlobalStyle/GlobalStyle.js +0 -11
- package/esm/GlobalStyle/Scrollbar.js +0 -53
- package/esm/GlobalStyle/index.js +0 -2
- package/esm/ThemeProvider/ThemeProvider.js +0 -15
- package/esm/ThemeProvider/index.js +0 -2
- package/esm/ThemeProvider/themes/baseTheme.js +0 -22
- package/esm/ThemeProvider/themes.js +0 -73
- package/esm/Tree/imgs/tree-first.png +0 -0
- package/esm/Tree/imgs/tree-folder-closed.png +0 -0
- package/esm/Tree/imgs/tree-folder-opened.png +0 -0
- package/esm/Tree/imgs/tree-last.png +0 -0
- package/esm/Tree/imgs/tree-mid.png +0 -0
- package/esm/Tree/imgs/tree-node-children.png +0 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { style } from '@vanilla-extract/css';
|
|
2
|
+
import { contract } from '../themes/contract.css';
|
|
3
|
+
import caret from './imgs/downcaret.png';
|
|
4
|
+
export var wrapper = style({
|
|
5
|
+
position: 'relative',
|
|
6
|
+
width: '200px',
|
|
7
|
+
height: contract.space[20],
|
|
8
|
+
':after': {
|
|
9
|
+
display: 'flex',
|
|
10
|
+
justifyContent: 'center',
|
|
11
|
+
width: contract.space[18],
|
|
12
|
+
height: contract.space[17],
|
|
13
|
+
fontSize: '14px',
|
|
14
|
+
lineHeight: 1.1,
|
|
15
|
+
content: "''",
|
|
16
|
+
pointerEvents: 'none',
|
|
17
|
+
position: 'absolute',
|
|
18
|
+
right: contract.space[1],
|
|
19
|
+
top: contract.space[2],
|
|
20
|
+
backgroundColor: contract.colors.material,
|
|
21
|
+
borderRightStyle: 'solid',
|
|
22
|
+
borderRightWidth: contract.space[1],
|
|
23
|
+
borderBottomStyle: 'solid',
|
|
24
|
+
borderBottomWidth: contract.space[1],
|
|
25
|
+
backgroundImage: "url('".concat(caret, "')"),
|
|
26
|
+
backgroundPosition: '60% 60%',
|
|
27
|
+
backgroundRepeat: 'no-repeat',
|
|
28
|
+
boxShadow: "inset 0.5px 0.7px 0px 0.7px ".concat(contract.colors.material, ",\n inset -1px 0px 0 1px ").concat(contract.colors.borderDark, ",\n inset 1.5px 1.5px 0px 1.5px ").concat(contract.colors.borderLightest)
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export var select = style({
|
|
32
|
+
position: 'relative',
|
|
33
|
+
outline: 'none',
|
|
34
|
+
border: 'none',
|
|
35
|
+
borderRadius: '0',
|
|
36
|
+
width: '100%',
|
|
37
|
+
height: contract.space[20],
|
|
38
|
+
padding: contract.space[3],
|
|
39
|
+
color: contract.colors.materialText,
|
|
40
|
+
backgroundColor: contract.colors.inputBackground,
|
|
41
|
+
borderLeftStyle: 'solid',
|
|
42
|
+
borderLeftWidth: contract.space[1],
|
|
43
|
+
borderLeftColor: contract.colors.borderDark,
|
|
44
|
+
borderTopStyle: 'solid',
|
|
45
|
+
borderTopWidth: contract.space[1],
|
|
46
|
+
borderTopColor: contract.colors.borderDark,
|
|
47
|
+
appearance: 'none',
|
|
48
|
+
boxShadow: "inset -1px -1px 0 0 ".concat(contract.colors.material, ",\n inset 1px 1px 0 0 ").concat(contract.colors.borderDarkest, ",\n 0.5px 0.5px 0 0.5px ").concat(contract.colors.borderLightest, ";")
|
|
49
|
+
});
|
package/esm/Dropdown/Dropdown.js
CHANGED
|
@@ -3,20 +3,24 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
3
3
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
5
|
import React, { forwardRef } from 'react';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
componentId: "sc-1rfrh0u-1"
|
|
15
|
-
})(["\n position: relative;\n outline: none;\n border: none;\n border-radius: 0;\n width: 100%;\n height: 20px;\n\n padding: 3;\n\n color: materialText;\n background-color: inputBackground;\n\n border-left: 1;\n border-left-color: borderDark;\n border-top: 1;\n border-top-color: borderDark;\n\n box-shadow: inset -1px -1px 0 0 ", ",\n inset 1px 1px 0 0 ", ",\n 0.5px 0.5px 0 0.5px ", ";\n\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n"], th('colors.material'), th('colors.borderDarkest'), th('colors.borderLightest'));
|
|
16
|
-
var Dropdown = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
17
|
-
var options = _ref.options,
|
|
6
|
+
import cn from 'classnames';
|
|
7
|
+
import { wrapper, select } from './Dropdown.css';
|
|
8
|
+
import { Frame } from '../Frame/Frame';
|
|
9
|
+
import { sprinkles } from '../Frame/sprinkles.css';
|
|
10
|
+
var defaultOptions = ['', 'C:\\Documents and Settings', 'C:\\Documents and Settings\\Documents', 'iexplorer.exe'];
|
|
11
|
+
export var Dropdown = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
12
|
+
var _ref$options = _ref.options,
|
|
13
|
+
options = _ref$options === void 0 ? defaultOptions : _ref$options,
|
|
18
14
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
19
|
-
|
|
15
|
+
var _sprinkles = sprinkles(rest),
|
|
16
|
+
style = _sprinkles.style,
|
|
17
|
+
otherProps = _sprinkles.otherProps,
|
|
18
|
+
className = _sprinkles.className;
|
|
19
|
+
return /*#__PURE__*/React.createElement(Frame, {
|
|
20
|
+
style: style,
|
|
21
|
+
className: cn(wrapper, className)
|
|
22
|
+
}, /*#__PURE__*/React.createElement("select", _extends({}, otherProps, {
|
|
23
|
+
className: cn(select),
|
|
20
24
|
ref: ref
|
|
21
25
|
}), options && options.map(function (option) {
|
|
22
26
|
return /*#__PURE__*/React.createElement("option", {
|
|
@@ -24,8 +28,4 @@ var Dropdown = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
24
28
|
value: option
|
|
25
29
|
}, option);
|
|
26
30
|
})));
|
|
27
|
-
});
|
|
28
|
-
Dropdown.defaultProps = {
|
|
29
|
-
options: ['', 'C:\\Documents and Settings', 'C:\\Documents and Settings\\Documents', 'iexplorer.exe']
|
|
30
|
-
};
|
|
31
|
-
export default Dropdown;
|
|
31
|
+
});
|
package/esm/Dropdown/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import Dropdown from './Dropdown';
|
|
1
|
+
import { Dropdown } from './Dropdown';
|
|
2
2
|
export default Dropdown;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { style } from '@vanilla-extract/css';
|
|
2
|
+
import { contract } from '../themes/contract.css';
|
|
3
|
+
export var field = style({
|
|
4
|
+
borderTopStyle: 'groove',
|
|
5
|
+
borderTopWidth: contract.space[2],
|
|
6
|
+
borderTopColor: contract.colors.borderLighter,
|
|
7
|
+
borderLeftStyle: 'groove',
|
|
8
|
+
borderLeftWidth: contract.space[2],
|
|
9
|
+
borderLeftColor: contract.colors.borderLighter,
|
|
10
|
+
borderBottomStyle: 'solid',
|
|
11
|
+
borderBottomWidth: contract.space[1],
|
|
12
|
+
borderBottomColor: contract.colors.borderDark,
|
|
13
|
+
borderRightStyle: 'solid',
|
|
14
|
+
borderRightWidth: contract.space[1],
|
|
15
|
+
borderRightColor: contract.colors.borderDark,
|
|
16
|
+
boxShadow: "1px 1px 0 0 ".concat(contract.colors.borderLighter)
|
|
17
|
+
});
|
|
18
|
+
export var legend = style({
|
|
19
|
+
paddingLeft: contract.space[4],
|
|
20
|
+
paddingRight: contract.space[1]
|
|
21
|
+
});
|
package/esm/Fieldset/Fieldset.js
CHANGED
|
@@ -3,21 +3,18 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
3
3
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
5
|
import React, { forwardRef } from 'react';
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
componentId: "sc-15a7lpx-0"
|
|
10
|
-
})(["\n border-top-style: groove;\n border-top-width: 2;\n border-top-color: borderLighter;\n\n border-left-style: groove;\n border-left-width: 2;\n border-left-color: borderLighter;\n\n border-bottom-style: solid;\n border-bottom-width: 1;\n border-bottom-color: borderDark;\n\n border-right-style: solid;\n border-right-width: 1;\n border-right-color: borderDark;\n\n box-shadow: 1px 1px 0 0 ", ";\n"], th('colors.borderLighter'));
|
|
11
|
-
var Legend = styled.legend.withConfig({
|
|
12
|
-
displayName: "Fieldset__Legend",
|
|
13
|
-
componentId: "sc-15a7lpx-1"
|
|
14
|
-
})(["\n padding-left: 4px;\n padding-right: 1px;\n"]);
|
|
15
|
-
var Fieldset = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6
|
+
import * as styles from './Fieldset.css';
|
|
7
|
+
import { Frame } from '../Frame/Frame';
|
|
8
|
+
export var Fieldset = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
16
9
|
var legend = _ref.legend,
|
|
17
10
|
children = _ref.children,
|
|
18
11
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
19
|
-
return /*#__PURE__*/React.createElement(
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
12
|
+
return /*#__PURE__*/React.createElement(Frame, _extends({
|
|
13
|
+
as: "fieldset"
|
|
14
|
+
}, rest, {
|
|
15
|
+
ref: ref,
|
|
16
|
+
className: styles.field
|
|
17
|
+
}), legend && /*#__PURE__*/React.createElement("legend", {
|
|
18
|
+
className: styles.legend
|
|
19
|
+
}, legend), children);
|
|
20
|
+
});
|
package/esm/Fieldset/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import Fieldset from './Fieldset';
|
|
1
|
+
import { Fieldset } from './Fieldset';
|
|
2
2
|
export default Fieldset;
|
package/esm/Frame/Frame.js
CHANGED
|
@@ -1,12 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
})(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["as", "children"];
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
8
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
9
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11
|
+
import React, { forwardRef } from 'react';
|
|
12
|
+
import { sprinkles } from './sprinkles.css';
|
|
13
|
+
import cn from 'classnames';
|
|
14
|
+
var fixedForwardRef = forwardRef;
|
|
15
|
+
var FrameComponent = function FrameComponent(props, ref) {
|
|
16
|
+
var as = props.as,
|
|
17
|
+
children = props.children,
|
|
18
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
19
|
+
var Component = as || 'div';
|
|
20
|
+
var _sprinkles = sprinkles(rest),
|
|
21
|
+
className = _sprinkles.className,
|
|
22
|
+
style = _sprinkles.style,
|
|
23
|
+
otherProps = _sprinkles.otherProps;
|
|
24
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, otherProps, {
|
|
25
|
+
style: _objectSpread(_objectSpread({}, style), otherProps.style),
|
|
26
|
+
className: cn(className, otherProps.className),
|
|
27
|
+
ref: ref
|
|
28
|
+
}), children);
|
|
11
29
|
};
|
|
12
|
-
export
|
|
30
|
+
export var Frame = fixedForwardRef(FrameComponent);
|
package/esm/Frame/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import Frame from './Frame';
|
|
1
|
+
import { Frame } from './Frame';
|
|
2
2
|
export default Frame;
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { contract } from '../themes/contract.css';
|
|
2
|
+
export var positioning = {
|
|
3
|
+
position: true,
|
|
4
|
+
top: true,
|
|
5
|
+
right: true,
|
|
6
|
+
bottom: true,
|
|
7
|
+
left: true,
|
|
8
|
+
pointerEvents: true
|
|
9
|
+
};
|
|
10
|
+
export var displayAndBoxModel = {
|
|
11
|
+
display: true,
|
|
12
|
+
overflow: true,
|
|
13
|
+
boxSizing: true,
|
|
14
|
+
grid: true,
|
|
15
|
+
gridArea: true,
|
|
16
|
+
gridAutoColumns: true,
|
|
17
|
+
gridAutoFlow: true,
|
|
18
|
+
gridAutoRows: true,
|
|
19
|
+
gridColumn: true,
|
|
20
|
+
gridColumnEnd: true,
|
|
21
|
+
gridColumnStart: true,
|
|
22
|
+
gridRow: true,
|
|
23
|
+
gridRowEnd: true,
|
|
24
|
+
gridRowStart: true,
|
|
25
|
+
gridTemplate: true,
|
|
26
|
+
gridTemplateAreas: true,
|
|
27
|
+
gridTemplateColumns: true,
|
|
28
|
+
gridTemplateRows: true,
|
|
29
|
+
flex: true,
|
|
30
|
+
flexBasis: true,
|
|
31
|
+
flexDirection: true,
|
|
32
|
+
flexFlow: true,
|
|
33
|
+
flexGrow: true,
|
|
34
|
+
flexShrink: true,
|
|
35
|
+
flexWrap: true,
|
|
36
|
+
justifyContent: true,
|
|
37
|
+
justifyItems: true,
|
|
38
|
+
justifySelf: true,
|
|
39
|
+
alignContent: true,
|
|
40
|
+
alignItems: true,
|
|
41
|
+
alignSelf: true,
|
|
42
|
+
gap: contract.space,
|
|
43
|
+
width: contract.space,
|
|
44
|
+
maxWidth: contract.space,
|
|
45
|
+
minWidth: contract.space,
|
|
46
|
+
height: contract.space,
|
|
47
|
+
maxHeight: contract.space,
|
|
48
|
+
minHeight: contract.space,
|
|
49
|
+
margin: contract.space,
|
|
50
|
+
marginBlock: contract.space,
|
|
51
|
+
marginBlockEnd: contract.space,
|
|
52
|
+
marginBlockStart: contract.space,
|
|
53
|
+
marginBottom: contract.space,
|
|
54
|
+
marginInline: contract.space,
|
|
55
|
+
marginInlineEnd: contract.space,
|
|
56
|
+
marginInlineStart: contract.space,
|
|
57
|
+
marginLeft: contract.space,
|
|
58
|
+
marginRight: contract.space,
|
|
59
|
+
marginTop: contract.space,
|
|
60
|
+
padding: contract.space,
|
|
61
|
+
paddingBlock: contract.space,
|
|
62
|
+
paddingBlockEnd: contract.space,
|
|
63
|
+
paddingBlockStart: contract.space,
|
|
64
|
+
paddingBottom: contract.space,
|
|
65
|
+
paddingInline: contract.space,
|
|
66
|
+
paddingInlineEnd: contract.space,
|
|
67
|
+
paddingInlineStart: contract.space,
|
|
68
|
+
paddingLeft: contract.space,
|
|
69
|
+
paddingRight: contract.space,
|
|
70
|
+
paddingTop: contract.space
|
|
71
|
+
};
|
|
72
|
+
export var colors = {
|
|
73
|
+
backgroundColor: contract.colors,
|
|
74
|
+
colors: contract.colors
|
|
75
|
+
};
|
|
76
|
+
export var background = {
|
|
77
|
+
background: true,
|
|
78
|
+
backgroundAttachment: true,
|
|
79
|
+
backgroundImage: true,
|
|
80
|
+
backgroundPosition: true,
|
|
81
|
+
backgroundRepeat: true,
|
|
82
|
+
backgroundSize: true,
|
|
83
|
+
backgroundOrigin: true,
|
|
84
|
+
backgroundClip: true
|
|
85
|
+
};
|
|
86
|
+
export var borders = {
|
|
87
|
+
border: true,
|
|
88
|
+
borderStyle: true,
|
|
89
|
+
borderWidth: true,
|
|
90
|
+
borderColor: contract.colors,
|
|
91
|
+
borderTop: true,
|
|
92
|
+
borderTopColor: contract.colors,
|
|
93
|
+
borderTopStyle: true,
|
|
94
|
+
borderTopWidth: true,
|
|
95
|
+
borderRight: true,
|
|
96
|
+
borderRightColor: contract.colors,
|
|
97
|
+
borderRightStyle: true,
|
|
98
|
+
borderRightWidth: true,
|
|
99
|
+
borderBottom: true,
|
|
100
|
+
borderBottomColor: contract.colors,
|
|
101
|
+
borderBottomStyle: true,
|
|
102
|
+
borderBottomWidth: true,
|
|
103
|
+
borderLeft: true,
|
|
104
|
+
borderLeftColor: contract.colors,
|
|
105
|
+
borderLeftStyle: true,
|
|
106
|
+
borderLeftWidth: true
|
|
107
|
+
};
|
|
108
|
+
export var borderRadius = {
|
|
109
|
+
borderBottomLeftRadius: true,
|
|
110
|
+
borderBottomRightRadius: true,
|
|
111
|
+
borderImage: true,
|
|
112
|
+
borderImageOutset: true,
|
|
113
|
+
borderImageRepeat: true,
|
|
114
|
+
borderImageSlice: true,
|
|
115
|
+
borderImageSource: true,
|
|
116
|
+
borderImageWidth: true,
|
|
117
|
+
borderRadius: true,
|
|
118
|
+
borderTopLeftRadius: true,
|
|
119
|
+
borderTopRightRadius: true
|
|
120
|
+
};
|
|
121
|
+
export var shadows = {
|
|
122
|
+
boxShadow: contract.shadows
|
|
123
|
+
};
|
|
124
|
+
export var outline = {
|
|
125
|
+
outline: true,
|
|
126
|
+
outlineColor: true,
|
|
127
|
+
outlineStyle: true,
|
|
128
|
+
outlineWidth: true
|
|
129
|
+
};
|
|
130
|
+
export var font = {
|
|
131
|
+
font: true,
|
|
132
|
+
fontFamily: true,
|
|
133
|
+
fontStyle: true,
|
|
134
|
+
fontSize: true,
|
|
135
|
+
fontWeight: true,
|
|
136
|
+
fontVariant: true,
|
|
137
|
+
fontSizeAdjust: true
|
|
138
|
+
};
|
|
139
|
+
export var text = {
|
|
140
|
+
color: contract.colors,
|
|
141
|
+
direction: true,
|
|
142
|
+
letterSpacing: true,
|
|
143
|
+
lineHeight: true,
|
|
144
|
+
textAlign: true,
|
|
145
|
+
textDecoration: true,
|
|
146
|
+
textIndent: true,
|
|
147
|
+
textShadow: true,
|
|
148
|
+
textTransform: true,
|
|
149
|
+
verticalAlign: true,
|
|
150
|
+
whiteSpace: true,
|
|
151
|
+
wordSpacing: true,
|
|
152
|
+
wordBreak: true
|
|
153
|
+
};
|
|
154
|
+
export var zIndices = {
|
|
155
|
+
zIndex: contract.zIndices
|
|
156
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { createRainbowSprinkles, defineProperties } from 'rainbow-sprinkles';
|
|
2
|
+
import { background, borderRadius, borders, colors, displayAndBoxModel, font, outline, positioning, shadows, text, zIndices } from './props';
|
|
3
|
+
var displayAndBoxModelAtomicProps = defineProperties({
|
|
4
|
+
dynamicProperties: displayAndBoxModel,
|
|
5
|
+
shorthands: {
|
|
6
|
+
size: ['height', 'width'],
|
|
7
|
+
h: ['height'],
|
|
8
|
+
w: ['width'],
|
|
9
|
+
minH: ['minHeight'],
|
|
10
|
+
minW: ['minWidth'],
|
|
11
|
+
m: ['margin'],
|
|
12
|
+
mr: ['marginRight'],
|
|
13
|
+
ml: ['marginLeft'],
|
|
14
|
+
mt: ['marginTop'],
|
|
15
|
+
mb: ['marginBottom'],
|
|
16
|
+
marginX: ['marginLeft', 'marginRight'],
|
|
17
|
+
marginY: ['marginTop', 'marginBottom'],
|
|
18
|
+
mx: ['marginLeft', 'marginRight'],
|
|
19
|
+
my: ['marginTop', 'marginBottom'],
|
|
20
|
+
p: ['padding'],
|
|
21
|
+
pr: ['paddingRight'],
|
|
22
|
+
pl: ['paddingLeft'],
|
|
23
|
+
pt: ['paddingTop'],
|
|
24
|
+
pb: ['paddingBottom'],
|
|
25
|
+
paddingX: ['paddingLeft', 'paddingRight'],
|
|
26
|
+
paddingY: ['paddingTop', 'paddingBottom'],
|
|
27
|
+
px: ['paddingLeft', 'paddingRight'],
|
|
28
|
+
py: ['paddingTop', 'paddingBottom']
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
var positioningAtomicProps = defineProperties({
|
|
32
|
+
dynamicProperties: positioning
|
|
33
|
+
});
|
|
34
|
+
var colorsAtomicProps = defineProperties({
|
|
35
|
+
dynamicProperties: colors,
|
|
36
|
+
shorthands: {
|
|
37
|
+
bgColor: ['backgroundColor']
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
var backgroundAtomicProps = defineProperties({
|
|
41
|
+
dynamicProperties: background,
|
|
42
|
+
shorthands: {
|
|
43
|
+
bg: ['background']
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
var bordersAtomicProps = defineProperties({
|
|
47
|
+
dynamicProperties: borders
|
|
48
|
+
});
|
|
49
|
+
var borderRadiusAtomicProps = defineProperties({
|
|
50
|
+
dynamicProperties: borderRadius
|
|
51
|
+
});
|
|
52
|
+
var shadowsAtomicProps = defineProperties({
|
|
53
|
+
dynamicProperties: shadows
|
|
54
|
+
});
|
|
55
|
+
var outlineAtomicProps = defineProperties({
|
|
56
|
+
dynamicProperties: outline
|
|
57
|
+
});
|
|
58
|
+
var fontAtomicProps = defineProperties({
|
|
59
|
+
dynamicProperties: font
|
|
60
|
+
});
|
|
61
|
+
var textAtomicProps = defineProperties({
|
|
62
|
+
dynamicProperties: text
|
|
63
|
+
});
|
|
64
|
+
var zIndicesAtomicProps = defineProperties({
|
|
65
|
+
dynamicProperties: zIndices
|
|
66
|
+
});
|
|
67
|
+
export var sprinkles = createRainbowSprinkles(colorsAtomicProps, shadowsAtomicProps, zIndicesAtomicProps, displayAndBoxModelAtomicProps, positioningAtomicProps, backgroundAtomicProps, bordersAtomicProps, borderRadiusAtomicProps, outlineAtomicProps, fontAtomicProps, textAtomicProps);
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import { globalFontFace, globalStyle } from '@vanilla-extract/css';
|
|
8
|
+
import { calc } from '@vanilla-extract/css-utils';
|
|
9
|
+
import { contract } from '../themes/contract.css';
|
|
10
|
+
import { createBorder, createTriangleSVG } from './utils';
|
|
11
|
+
import ttfBold from './font/MS-Sans-Serif-8pt-bold.ttf';
|
|
12
|
+
import ttf from './font/MS-Sans-Serif-8pt.ttf';
|
|
13
|
+
import videoeot from './font/React95Video-Numbers.eot';
|
|
14
|
+
import videottf from './font/React95Video-Numbers.ttf';
|
|
15
|
+
import videowoff from './font/React95Video-Numbers.woff';
|
|
16
|
+
import videowoff2 from './font/React95Video-Numbers.woff2';
|
|
17
|
+
export var MSSansSerif = 'MS Sans Serif';
|
|
18
|
+
export var R95VideoNumbers = 'React95Video-Numbers';
|
|
19
|
+
globalFontFace(MSSansSerif, {
|
|
20
|
+
src: "url('".concat(ttf, "') format('truetype')"),
|
|
21
|
+
fontStyle: 'normal',
|
|
22
|
+
fontWeight: 'normal'
|
|
23
|
+
});
|
|
24
|
+
globalFontFace(MSSansSerif, {
|
|
25
|
+
src: "url('".concat(ttfBold, "') format('truetype')"),
|
|
26
|
+
fontStyle: 'bold',
|
|
27
|
+
fontWeight: 'bold'
|
|
28
|
+
});
|
|
29
|
+
globalFontFace(R95VideoNumbers, {
|
|
30
|
+
src: "url('".concat(videowoff2, "') format('woff2'),\n url('").concat(videowoff, "') format('woff'),\n url('").concat(videottf, "') format('truetype'),\n url('").concat(videoeot, "?#iefix') format('embedded-opentype')"),
|
|
31
|
+
fontStyle: 'normal',
|
|
32
|
+
fontWeight: 'normal'
|
|
33
|
+
});
|
|
34
|
+
globalStyle('*', {
|
|
35
|
+
fontFamily: MSSansSerif
|
|
36
|
+
});
|
|
37
|
+
globalStyle('*, *::before, *::after', {
|
|
38
|
+
boxSizing: 'border-box'
|
|
39
|
+
});
|
|
40
|
+
globalStyle('html', {
|
|
41
|
+
fontSize: '100%'
|
|
42
|
+
});
|
|
43
|
+
globalStyle('body', {
|
|
44
|
+
margin: 0,
|
|
45
|
+
padding: 0,
|
|
46
|
+
fontSize: 12,
|
|
47
|
+
color: contract.colors.materialText
|
|
48
|
+
});
|
|
49
|
+
globalStyle('a', {
|
|
50
|
+
color: contract.colors.anchor
|
|
51
|
+
});
|
|
52
|
+
globalStyle('a:visited', {
|
|
53
|
+
color: contract.colors.anchorVisited
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
/* Scrollbar */
|
|
57
|
+
|
|
58
|
+
var triangles = {
|
|
59
|
+
horizontal: {
|
|
60
|
+
decrement: createTriangleSVG(contract.colors.materialText, 90),
|
|
61
|
+
increment: createTriangleSVG(contract.colors.materialText, 270)
|
|
62
|
+
},
|
|
63
|
+
vertical: {
|
|
64
|
+
decrement: createTriangleSVG(contract.colors.materialText, 180),
|
|
65
|
+
increment: createTriangleSVG(contract.colors.materialText, 0)
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
globalStyle('::-webkit-scrollbar', {
|
|
69
|
+
width: contract.space[17],
|
|
70
|
+
height: contract.space[17]
|
|
71
|
+
});
|
|
72
|
+
globalStyle('::-webkit-scrollbar-track', {
|
|
73
|
+
backgroundImage: ["linear-gradient(45deg, ".concat(contract.colors.material, " 25%, transparent 25%, transparent 75%, ").concat(contract.colors.material, " 75%)"), "linear-gradient(45deg, ".concat(contract.colors.material, " 25%, transparent 25%, transparent 75%, ").concat(contract.colors.material, " 75%)")].join(','),
|
|
74
|
+
backgroundColor: contract.colors.borderLightest,
|
|
75
|
+
backgroundSize: "".concat(contract.space[4], " ").concat(contract.space[4]),
|
|
76
|
+
backgroundPosition: "0 0, ".concat(contract.space[2], " ").concat(contract.space[2])
|
|
77
|
+
});
|
|
78
|
+
globalStyle('::-webkit-scrollbar-corner', {
|
|
79
|
+
backgroundColor: contract.colors.material
|
|
80
|
+
});
|
|
81
|
+
globalStyle("::-webkit-scrollbar-button:horizontal:increment:start,\n ::-webkit-scrollbar-button:horizontal:decrement:end,\n ::-webkit-scrollbar-button:vertical:increment:start,\n ::-webkit-scrollbar-button:vertical:decrement:end", {
|
|
82
|
+
display: 'none'
|
|
83
|
+
});
|
|
84
|
+
globalStyle('::-webkit-scrollbar-button:horizontal:decrement', {
|
|
85
|
+
backgroundImage: triangles.horizontal.decrement
|
|
86
|
+
});
|
|
87
|
+
globalStyle('::-webkit-scrollbar-button:horizontal:increment', {
|
|
88
|
+
backgroundImage: triangles.horizontal.increment
|
|
89
|
+
});
|
|
90
|
+
globalStyle('::-webkit-scrollbar-button:vertical:decrement', {
|
|
91
|
+
backgroundImage: triangles.vertical.decrement
|
|
92
|
+
});
|
|
93
|
+
globalStyle('::-webkit-scrollbar-button:vertical:increment', {
|
|
94
|
+
backgroundImage: triangles.vertical.increment
|
|
95
|
+
});
|
|
96
|
+
var scrollbarBorderBase = createBorder({
|
|
97
|
+
direction: 'extrude',
|
|
98
|
+
outerBottomRight: contract.colors.borderDarkest,
|
|
99
|
+
innerBottomRight: contract.colors.borderDark,
|
|
100
|
+
outerTopLeft: contract.colors.borderLight,
|
|
101
|
+
innerTopLeft: contract.colors.borderLightest
|
|
102
|
+
});
|
|
103
|
+
globalStyle('::-webkit-scrollbar-thumb', _objectSpread({
|
|
104
|
+
boxSizing: 'border-box',
|
|
105
|
+
display: 'inline-block',
|
|
106
|
+
background: contract.colors.material,
|
|
107
|
+
color: contract.colors.materialText
|
|
108
|
+
}, scrollbarBorderBase));
|
|
109
|
+
globalStyle('::-webkit-scrollbar-button', _objectSpread({
|
|
110
|
+
boxSizing: 'border-box',
|
|
111
|
+
background: contract.colors.material,
|
|
112
|
+
color: contract.colors.materialText,
|
|
113
|
+
display: 'block',
|
|
114
|
+
outlineOffset: calc.negate(contract.space[2]),
|
|
115
|
+
height: contract.space[17],
|
|
116
|
+
width: contract.space[17],
|
|
117
|
+
backgroundRepeat: 'no-repeat',
|
|
118
|
+
backgroundSize: '80%',
|
|
119
|
+
backgroundPosition: '0 0'
|
|
120
|
+
}, scrollbarBorderBase));
|
|
121
|
+
globalStyle("::-webkit-scrollbar-button:active,\n ::-webkit-scrollbar-button:active", _objectSpread({
|
|
122
|
+
backgroundPosition: '0 1'
|
|
123
|
+
}, scrollbarBorderBase));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export var createBorder = function createBorder(_ref) {
|
|
2
|
+
var direction = _ref.direction,
|
|
3
|
+
outerTopLeft = _ref.outerTopLeft,
|
|
4
|
+
innerTopLeft = _ref.innerTopLeft,
|
|
5
|
+
outerBottomRight = _ref.outerBottomRight,
|
|
6
|
+
innerBottomRight = _ref.innerBottomRight;
|
|
7
|
+
return {
|
|
8
|
+
border: 0,
|
|
9
|
+
boxShadow: "-1px -1px 0 0\n ".concat(direction == 'extrude' ? outerBottomRight : innerTopLeft, " inset,\n 1px 1px 0 0\n ").concat(direction == 'extrude' ? outerTopLeft : innerBottomRight, " inset ,\n -2px -2px 0 0\n ").concat(direction == 'extrude' ? innerBottomRight : outerTopLeft, " inset ,\n 2px 2px 0 0\n ").concat(direction == 'extrude' ? innerTopLeft : outerBottomRight, " inset")
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export var createTriangleSVG = function createTriangleSVG(color) {
|
|
13
|
+
var angle = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
14
|
+
var svg = "<svg height=\"21\" width=\"21\" viewBox=\"0 0 21 21\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <g transform=\"rotate(".concat(angle, " 13 13)\">\n <polygon fill=\"").concat(color, "\" points=\"6,10 20,10 13,17\"/>\n </g>\n </svg>");
|
|
15
|
+
var encoded = btoa(svg);
|
|
16
|
+
return "url(data:image/svg+xml;base64,".concat(encoded, ")");
|
|
17
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { style } from '@vanilla-extract/css';
|
|
2
|
+
import { Cursor } from '../Cursor/Cursor.css';
|
|
3
|
+
import { contract } from '../themes/contract.css';
|
|
4
|
+
export var input = style([Cursor.Text, {
|
|
5
|
+
outline: 'none',
|
|
6
|
+
border: 'none',
|
|
7
|
+
paddingTop: contract.space[3],
|
|
8
|
+
paddingRight: contract.space[3],
|
|
9
|
+
paddingBottom: contract.space[5],
|
|
10
|
+
paddingLeft: contract.space[3],
|
|
11
|
+
color: contract.colors.materialText,
|
|
12
|
+
backgroundColor: contract.colors.inputBackground,
|
|
13
|
+
borderRadius: '0',
|
|
14
|
+
borderTopWidth: contract.space[1],
|
|
15
|
+
borderTopStyle: 'solid',
|
|
16
|
+
borderTopColor: contract.colors.borderDark,
|
|
17
|
+
borderRightWidth: '0',
|
|
18
|
+
borderBottomWidth: '0',
|
|
19
|
+
borderLeftWidth: contract.space[1],
|
|
20
|
+
borderLeftStyle: 'solid',
|
|
21
|
+
borderLeftColor: contract.colors.borderDark,
|
|
22
|
+
boxShadow: contract.shadows.input,
|
|
23
|
+
WebkitAppearance: 'none'
|
|
24
|
+
}]);
|
package/esm/Input/Input.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Frame } from '../Frame/Frame';
|
|
4
|
+
import { input } from './Input.css';
|
|
5
|
+
export var Input = /*#__PURE__*/React.forwardRef(function (rest, ref) {
|
|
6
|
+
return /*#__PURE__*/React.createElement(Frame, _extends({}, rest, {
|
|
7
|
+
ref: ref,
|
|
8
|
+
className: input,
|
|
9
|
+
as: "input"
|
|
10
|
+
}));
|
|
11
|
+
});
|
package/esm/Input/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import Input from './Input';
|
|
1
|
+
import { Input } from './Input';
|
|
2
2
|
export default Input;
|