@react95/core 7.0.2 → 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 +53 -92
- 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 +52 -92
- 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 +5 -9
- 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
|
@@ -3,43 +3,21 @@ 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
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
type: 'radio'
|
|
18
|
-
}).withConfig({
|
|
19
|
-
displayName: "RadioButton__Field",
|
|
20
|
-
componentId: "sc-1nrg9a4-2"
|
|
21
|
-
})(["\n margin: 0;\n opacity: 0;\n\n &:focus ~ ", ", &:active + ", " {\n border-width: 1;\n border-style: dotted;\n padding: 0;\n }\n\n &:checked + ", " {\n background-image: url(", ");\n }\n\n &:disabled + ", " {\n background-image: url(", ");\n }\n\n &:checked:disabled + ", " {\n background-image: url(", ");\n }\n"], Text, Text, Icon, radioChecked, Icon, radioUncheckedDisabled, Icon, radioCheckedDisabled);
|
|
22
|
-
var Label = styled.label.withConfig({
|
|
23
|
-
displayName: "RadioButton__Label",
|
|
24
|
-
componentId: "sc-1nrg9a4-3"
|
|
25
|
-
})(["\n position: relative;\n margin-bottom: 10;\n display: block;\n\n ", "\n"], function (_ref) {
|
|
26
|
-
var disabled = _ref.disabled;
|
|
27
|
-
return disabled && css(["\n color: materialTextDisabled;\n text-shadow: 0.5px 0.5px ", ";\n "], th('colors.materialTextDisabledShadow'));
|
|
28
|
-
});
|
|
29
|
-
var RadioButton = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
30
|
-
var children = _ref2.children,
|
|
31
|
-
disabled = _ref2.disabled,
|
|
32
|
-
props = _objectWithoutProperties(_ref2, _excluded);
|
|
33
|
-
return /*#__PURE__*/React.createElement(Label, {
|
|
34
|
-
disabled: disabled
|
|
35
|
-
}, /*#__PURE__*/React.createElement(Field, _extends({
|
|
36
|
-
disabled: disabled
|
|
37
|
-
}, props, {
|
|
6
|
+
import { field, icon, label, text } from './RadioButton.css';
|
|
7
|
+
export var RadioButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
8
|
+
var children = _ref.children,
|
|
9
|
+
disabled = _ref.disabled,
|
|
10
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
11
|
+
return /*#__PURE__*/React.createElement("label", {
|
|
12
|
+
className: label
|
|
13
|
+
}, /*#__PURE__*/React.createElement("input", _extends({
|
|
14
|
+
type: "radio",
|
|
15
|
+
disabled: disabled,
|
|
16
|
+
className: field,
|
|
38
17
|
ref: ref
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
};
|
|
45
|
-
export default RadioButton;
|
|
18
|
+
}, props)), /*#__PURE__*/React.createElement("span", {
|
|
19
|
+
className: icon
|
|
20
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
21
|
+
className: text
|
|
22
|
+
}, children));
|
|
23
|
+
});
|
package/esm/RadioButton/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import RadioButton from './RadioButton';
|
|
1
|
+
import { RadioButton } from './RadioButton';
|
|
2
2
|
export default RadioButton;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { style } from '@vanilla-extract/css';
|
|
2
|
+
import { contract } from '../themes/contract.css';
|
|
3
|
+
import { calc } from '@vanilla-extract/css-utils';
|
|
4
|
+
var track = {
|
|
5
|
+
width: '100%',
|
|
6
|
+
height: contract.space[4],
|
|
7
|
+
backgroundColor: contract.colors.borderDarkest,
|
|
8
|
+
cursor: 'pointer',
|
|
9
|
+
borderStyle: 'solid',
|
|
10
|
+
borderTopWidth: contract.space[1],
|
|
11
|
+
borderTopColor: contract.colors.borderLight,
|
|
12
|
+
borderRightWidth: contract.space[2],
|
|
13
|
+
borderRightColor: contract.colors.borderLightest,
|
|
14
|
+
borderBottomWidth: contract.space[1],
|
|
15
|
+
borderBottomColor: contract.colors.borderLighter,
|
|
16
|
+
borderLeftWidth: contract.space[2],
|
|
17
|
+
borderLeftColor: contract.colors.borderLightest,
|
|
18
|
+
boxShadow: "0px 1px 0px 0px ".concat(contract.colors.borderLightest)
|
|
19
|
+
};
|
|
20
|
+
var thumb = {
|
|
21
|
+
width: contract.space[12],
|
|
22
|
+
height: contract.space[20],
|
|
23
|
+
backgroundColor: contract.colors.material,
|
|
24
|
+
cursor: 'pointer',
|
|
25
|
+
marginTop: calc.negate(contract.space[8]),
|
|
26
|
+
borderStyle: 'solid',
|
|
27
|
+
borderTopWidth: contract.space[1],
|
|
28
|
+
borderTopColor: contract.colors.borderLightest,
|
|
29
|
+
borderRightWidth: contract.space[1],
|
|
30
|
+
borderRightColor: contract.colors.borderDarkest,
|
|
31
|
+
borderBottomWidth: contract.space[1],
|
|
32
|
+
borderBottomColor: contract.colors.borderDarkest,
|
|
33
|
+
borderLeftWidth: contract.space[1],
|
|
34
|
+
borderLeftColor: contract.colors.borderLightest,
|
|
35
|
+
boxShadow: "inset 0px -1px 0px ".concat(contract.colors.borderDark, ",\n inset -1px 0px 0px ").concat(contract.colors.borderDark, ",\n inset 0px 1px 0px ").concat(contract.colors.borderLighter, ",\n inset 1px 0px 0px ").concat(contract.colors.borderLighter),
|
|
36
|
+
appearance: 'none'
|
|
37
|
+
};
|
|
38
|
+
export var range = style({
|
|
39
|
+
appearance: 'none',
|
|
40
|
+
width: '100%',
|
|
41
|
+
selectors: {
|
|
42
|
+
'&::hover,&::focus,&::active': {
|
|
43
|
+
outline: 'none'
|
|
44
|
+
},
|
|
45
|
+
'&::-webkit-slider-runnable-track': track,
|
|
46
|
+
'&::-moz-range-track': track,
|
|
47
|
+
'&::-webkit-slider-thumb': thumb,
|
|
48
|
+
'&::-moz-range-thumb': thumb,
|
|
49
|
+
'&:focus::-webkit-slider-runnable-track': {
|
|
50
|
+
backgroundColor: contract.colors.borderDarkest
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
});
|
package/esm/Range/Range.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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 { range } from './Range.css';
|
|
5
|
+
import cn from 'classnames';
|
|
6
|
+
export var Range = /*#__PURE__*/React.forwardRef(function (rest, ref) {
|
|
7
|
+
return /*#__PURE__*/React.createElement(Frame, _extends({}, rest, {
|
|
8
|
+
ref: ref,
|
|
9
|
+
className: cn(range, rest.className),
|
|
10
|
+
as: "input",
|
|
11
|
+
type: "range"
|
|
12
|
+
}));
|
|
13
|
+
});
|
package/esm/Range/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import Range from './Range';
|
|
1
|
+
import { Range } from './Range';
|
|
2
2
|
export default Range;
|
package/esm/Tabs/Tab.js
CHANGED
|
@@ -3,21 +3,17 @@ 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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
return /*#__PURE__*/React.createElement(NavItem, _extends({}, rest, {
|
|
19
|
-
active: activeTab === title,
|
|
20
|
-
ref: ref
|
|
6
|
+
import Frame from '../Frame';
|
|
7
|
+
import { tab } from './Tabs.css';
|
|
8
|
+
export var Tab = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
9
|
+
var activeTab = _ref.activeTab,
|
|
10
|
+
title = _ref.title,
|
|
11
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
12
|
+
return /*#__PURE__*/React.createElement(Frame, _extends({}, rest, {
|
|
13
|
+
className: tab({
|
|
14
|
+
active: activeTab === title
|
|
15
|
+
}),
|
|
16
|
+
ref: ref,
|
|
17
|
+
as: "li"
|
|
21
18
|
}), title);
|
|
22
|
-
});
|
|
23
|
-
export default Tab;
|
|
19
|
+
});
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { globalStyle, style } from '@vanilla-extract/css';
|
|
2
|
+
import { contract } from '../themes/contract.css';
|
|
3
|
+
import { recipe } from '@vanilla-extract/recipes';
|
|
4
|
+
import { calc } from '@vanilla-extract/css-utils';
|
|
5
|
+
export var navbar = style({
|
|
6
|
+
display: 'flex',
|
|
7
|
+
padding: '0',
|
|
8
|
+
margin: '0',
|
|
9
|
+
border: 'none',
|
|
10
|
+
zIndex: 1
|
|
11
|
+
});
|
|
12
|
+
export var navContainer = style({
|
|
13
|
+
padding: contract.space[12],
|
|
14
|
+
boxShadow: contract.shadows.out,
|
|
15
|
+
backgroundColor: contract.colors.material
|
|
16
|
+
});
|
|
17
|
+
export var tab = recipe({
|
|
18
|
+
base: {
|
|
19
|
+
listStyle: 'none',
|
|
20
|
+
userSelect: 'none',
|
|
21
|
+
paddingBlock: contract.space[3],
|
|
22
|
+
paddingInline: contract.space[6],
|
|
23
|
+
backgroundColor: contract.colors.material,
|
|
24
|
+
marginRight: contract.space[2],
|
|
25
|
+
marginLeft: contract.space[2],
|
|
26
|
+
boxShadow: "inset 0 1px 0 0 ".concat(contract.colors.borderLightest, ",\n -2px 1px 0 -1px ").concat(contract.colors.material, ",\n -3px 1px 0 -1px ").concat(contract.colors.borderLightest, ",\n -2px 0 0 -1px ").concat(contract.colors.borderLightest, ",\n 2px 1px 0 -1px ").concat(contract.colors.borderDark, ",\n 2px 0 0 -1px ").concat(contract.colors.borderDarkest, ",\n 3px 1px 0 -1px ").concat(contract.colors.borderDarkest),
|
|
27
|
+
selectors: {
|
|
28
|
+
'&:first-child': {
|
|
29
|
+
marginLeft: contract.space[4]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
variants: {
|
|
34
|
+
active: {
|
|
35
|
+
"true": {
|
|
36
|
+
marginTop: calc.negate(contract.space[2]),
|
|
37
|
+
marginLeft: calc.negate(contract.space[2]),
|
|
38
|
+
marginBottom: contract.space[1],
|
|
39
|
+
'&:first-child': {
|
|
40
|
+
marginLeft: contract.space[2]
|
|
41
|
+
},
|
|
42
|
+
boxShadow: "inset 0 1px 0 0 ".concat(contract.colors.borderLightest, ",\n -2px 1px 0 -1px ").concat(contract.colors.material, ",\n -0.5px 3px 0 0.5px ").concat(contract.colors.material, ",\n -2px 2px 0 0 ").concat(contract.colors.borderLightest, ",\n -2px 0 0 -1px ").concat(contract.colors.borderLightest, ",\n 1px 2px 0 0 ").concat(contract.colors.borderDark, ",\n 2px 0 0 -1px ").concat(contract.colors.borderDarkest, ",\n 2px 2px 0 0 ").concat(contract.colors.borderDarkest)
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
globalStyle("".concat(tab.classNames.variants.active["true"], " + li"), {
|
|
48
|
+
marginLeft: 0,
|
|
49
|
+
boxShadow: "inset 0 1px 0 0 ".concat(contract.colors.borderLightest, ",\n 2px 1px 0 -1px ").concat(contract.colors.borderDark, ",\n 2px 0 0 -1px ").concat(contract.colors.borderDarkest, ",\n 3px 1px 0 -1px ").concat(contract.colors.borderDarkest)
|
|
50
|
+
});
|
package/esm/Tabs/Tabs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["children", "
|
|
1
|
+
var _excluded = ["children", "defaultActiveTab", "onChange"];
|
|
2
2
|
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); }
|
|
3
3
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
4
4
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -8,22 +8,13 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
8
8
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
9
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
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 styled from '@xstyled/styled-components';
|
|
12
11
|
import React, { forwardRef } from 'react';
|
|
12
|
+
import cn from 'classnames';
|
|
13
13
|
import Frame from '../Frame';
|
|
14
|
-
import Tab from './Tab';
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
componentId: "sc-1r3cxnf-0"
|
|
18
|
-
})(["\n display: flex;\n padding: 0;\n margin: 0;\n border: none;\n box-shadow: none;\n background-color: unset;\n"]);
|
|
19
|
-
var NavContainer = styled(Frame).withConfig({
|
|
20
|
-
displayName: "Tabs__NavContainer",
|
|
21
|
-
componentId: "sc-1r3cxnf-1"
|
|
22
|
-
})(["\n padding: 12;\n box-shadow: out;\n"]);
|
|
23
|
-
NavContainer.displayName = 'NavContainer';
|
|
24
|
-
var Tabs = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
14
|
+
import { Tab } from './Tab';
|
|
15
|
+
import { navContainer, navbar } from './Tabs.css';
|
|
16
|
+
export var Tabs = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
25
17
|
var children = _ref.children,
|
|
26
|
-
style = _ref.style,
|
|
27
18
|
defaultActiveTab = _ref.defaultActiveTab,
|
|
28
19
|
onChange = _ref.onChange,
|
|
29
20
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -34,9 +25,8 @@ var Tabs = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
34
25
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
35
26
|
activeTab = _React$useState2[0],
|
|
36
27
|
setActiveTab = _React$useState2[1];
|
|
37
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(
|
|
38
|
-
|
|
39
|
-
}, rest, {
|
|
28
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Frame, _extends({}, rest, {
|
|
29
|
+
className: cn(navbar, rest.className),
|
|
40
30
|
as: "ol",
|
|
41
31
|
ref: ref
|
|
42
32
|
}), React.Children.map(children, function (child) {
|
|
@@ -56,10 +46,10 @@ var Tabs = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
56
46
|
}
|
|
57
47
|
}
|
|
58
48
|
}));
|
|
59
|
-
})), /*#__PURE__*/React.createElement(
|
|
60
|
-
|
|
49
|
+
})), /*#__PURE__*/React.createElement(Frame, {
|
|
50
|
+
className: navContainer,
|
|
51
|
+
width: rest.width || rest.w
|
|
61
52
|
}, React.Children.map(children, function (child) {
|
|
62
53
|
return child.props.title === activeTab && child.props.children;
|
|
63
54
|
})));
|
|
64
|
-
});
|
|
65
|
-
export default Tabs;
|
|
55
|
+
});
|
package/esm/Tabs/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import Tab from './Tab';
|
|
2
|
-
import Tabs from './Tabs';
|
|
1
|
+
import { Tab } from './Tab';
|
|
2
|
+
import { Tabs } from './Tabs';
|
|
3
3
|
export { Tab, Tabs };
|
package/esm/TaskBar/Clock.js
CHANGED
|
@@ -5,14 +5,10 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
5
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import React, { useEffect, useState } from 'react';
|
|
8
|
-
import styled from '@xstyled/styled-components';
|
|
9
8
|
import Frame from '../Frame';
|
|
10
9
|
import Tooltip from '../Tooltip';
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
componentId: "sc-1tq15w4-0"
|
|
14
|
-
})(["\n div:first-child {\n right: 0;\n }\n"]);
|
|
15
|
-
var Clock = function Clock() {
|
|
10
|
+
import { tooltip } from './TaskBar.css';
|
|
11
|
+
export var Clock = function Clock() {
|
|
16
12
|
var _useState = useState(''),
|
|
17
13
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18
14
|
timer = _useState2[0],
|
|
@@ -32,15 +28,13 @@ var Clock = function Clock() {
|
|
|
32
28
|
};
|
|
33
29
|
}, []);
|
|
34
30
|
return /*#__PURE__*/React.createElement(Frame, {
|
|
35
|
-
boxShadow: "in",
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
};
|
|
46
|
-
export default Clock;
|
|
31
|
+
boxShadow: "$in",
|
|
32
|
+
px: "$6",
|
|
33
|
+
py: "$2",
|
|
34
|
+
display: "flex",
|
|
35
|
+
justifyContent: "center",
|
|
36
|
+
alignItems: "center"
|
|
37
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
38
|
+
className: tooltip
|
|
39
|
+
}, timer));
|
|
40
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { globalStyle, style } from '@vanilla-extract/css';
|
|
2
|
+
import { recipe } from '@vanilla-extract/recipes';
|
|
3
|
+
import { contract } from '../themes/contract.css';
|
|
4
|
+
import { calc } from '@vanilla-extract/css-utils';
|
|
5
|
+
export var truncate = style({
|
|
6
|
+
overflow: 'hidden',
|
|
7
|
+
display: '-webkit-box',
|
|
8
|
+
WebkitLineClamp: '1',
|
|
9
|
+
WebkitBoxOrient: 'vertical',
|
|
10
|
+
textAlign: 'left'
|
|
11
|
+
});
|
|
12
|
+
export var tooltip = style({});
|
|
13
|
+
globalStyle("".concat(tooltip, " div:first-child"), {
|
|
14
|
+
right: 0
|
|
15
|
+
});
|
|
16
|
+
export var windowsButton = recipe({
|
|
17
|
+
base: {
|
|
18
|
+
display: 'inline-flex',
|
|
19
|
+
justifyContent: 'flex-start',
|
|
20
|
+
alignItems: 'center',
|
|
21
|
+
backgroundColor: contract.colors.material,
|
|
22
|
+
paddingBlock: contract.space[2],
|
|
23
|
+
paddingInline: contract.space[3],
|
|
24
|
+
marginRight: contract.space[2],
|
|
25
|
+
maxWidth: '150px',
|
|
26
|
+
border: 'none',
|
|
27
|
+
outline: 'none'
|
|
28
|
+
},
|
|
29
|
+
variants: {
|
|
30
|
+
small: {
|
|
31
|
+
"true": {
|
|
32
|
+
paddingInline: contract.space[5]
|
|
33
|
+
},
|
|
34
|
+
"false": {
|
|
35
|
+
width: '100%'
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
active: {
|
|
39
|
+
"true": {
|
|
40
|
+
boxShadow: contract.shadows["in"]
|
|
41
|
+
},
|
|
42
|
+
"false": {
|
|
43
|
+
boxShadow: contract.shadows.out
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
compoundVariants: [{
|
|
48
|
+
variants: {
|
|
49
|
+
active: true,
|
|
50
|
+
small: true
|
|
51
|
+
},
|
|
52
|
+
style: {
|
|
53
|
+
paddingTop: contract.space[4],
|
|
54
|
+
paddingBottom: contract.space[0],
|
|
55
|
+
outline: "".concat(contract.space[1], " dotted ").concat(contract.colors.borderDarkest),
|
|
56
|
+
outlineOffset: calc.negate(contract.space[4])
|
|
57
|
+
}
|
|
58
|
+
}, {
|
|
59
|
+
variants: {
|
|
60
|
+
active: true,
|
|
61
|
+
small: false
|
|
62
|
+
},
|
|
63
|
+
style: {
|
|
64
|
+
backgroundColor: contract.colors.borderLighter
|
|
65
|
+
}
|
|
66
|
+
}]
|
|
67
|
+
});
|
|
68
|
+
export var icon = style({});
|
|
69
|
+
globalStyle("".concat(icon, " svg"), {
|
|
70
|
+
marginTop: contract.space[4],
|
|
71
|
+
marginRight: contract.space[4],
|
|
72
|
+
minWidth: contract.space[2],
|
|
73
|
+
width: contract.space[20],
|
|
74
|
+
height: contract.space[20],
|
|
75
|
+
shapeRendering: 'auto'
|
|
76
|
+
});
|
package/esm/TaskBar/TaskBar.js
CHANGED
|
@@ -4,47 +4,44 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
4
4
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
|
|
8
|
-
import React, { forwardRef } from 'react';
|
|
9
|
-
import styled from '@xstyled/styled-components';
|
|
7
|
+
import React, { forwardRef, useContext, useState } from 'react';
|
|
10
8
|
import { ModalContext } from '../Modal';
|
|
11
9
|
import Frame from '../Frame';
|
|
12
|
-
import Clock from './Clock';
|
|
13
|
-
import WindowButton from './WindowButton';
|
|
10
|
+
import { Clock } from './Clock';
|
|
11
|
+
import { WindowButton } from './WindowButton';
|
|
14
12
|
import { Logo } from '@react95/icons';
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
componentId: "sc-2weywn-0"
|
|
18
|
-
})(["\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n text-align: left;\n"]);
|
|
19
|
-
var TaskBar = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
13
|
+
import { truncate } from './TaskBar.css';
|
|
14
|
+
export var TaskBar = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
20
15
|
var list = _ref.list;
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
showList =
|
|
24
|
-
toggleShowList =
|
|
25
|
-
var
|
|
26
|
-
|
|
27
|
-
activeStart =
|
|
28
|
-
toggleActiveStart =
|
|
29
|
-
var
|
|
30
|
-
windows =
|
|
31
|
-
activeWindow =
|
|
32
|
-
setActiveWindow =
|
|
16
|
+
var _useState = useState(false),
|
|
17
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
18
|
+
showList = _useState2[0],
|
|
19
|
+
toggleShowList = _useState2[1];
|
|
20
|
+
var _useState3 = useState(false),
|
|
21
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
22
|
+
activeStart = _useState4[0],
|
|
23
|
+
toggleActiveStart = _useState4[1];
|
|
24
|
+
var _useContext = useContext(ModalContext),
|
|
25
|
+
windows = _useContext.windows,
|
|
26
|
+
activeWindow = _useContext.activeWindow,
|
|
27
|
+
setActiveWindow = _useContext.setActiveWindow;
|
|
33
28
|
return /*#__PURE__*/React.createElement(Frame, {
|
|
34
29
|
position: "fixed",
|
|
35
|
-
bottom:
|
|
36
|
-
left:
|
|
37
|
-
right:
|
|
30
|
+
bottom: "0px",
|
|
31
|
+
left: "0px",
|
|
32
|
+
right: "0px",
|
|
38
33
|
display: "flex",
|
|
39
34
|
justifyContent: "space-between",
|
|
40
|
-
h:
|
|
35
|
+
h: "28px",
|
|
41
36
|
w: "100%",
|
|
42
|
-
padding: 2,
|
|
43
|
-
zIndex: "taskbar",
|
|
37
|
+
padding: "$2",
|
|
38
|
+
zIndex: "$taskbar",
|
|
39
|
+
backgroundColor: "$material",
|
|
40
|
+
boxShadow: "$out",
|
|
44
41
|
ref: ref
|
|
45
42
|
}, showList && /*#__PURE__*/React.createElement(Frame, {
|
|
46
43
|
position: "absolute",
|
|
47
|
-
bottom: "
|
|
44
|
+
bottom: "28px",
|
|
48
45
|
onClick: function onClick() {
|
|
49
46
|
toggleActiveStart(false);
|
|
50
47
|
toggleShowList(false);
|
|
@@ -60,10 +57,9 @@ var TaskBar = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
60
57
|
toggleShowList(!showList);
|
|
61
58
|
}
|
|
62
59
|
}, "Start"), /*#__PURE__*/React.createElement(Frame, {
|
|
63
|
-
boxShadow: "none",
|
|
64
60
|
w: "100%",
|
|
65
|
-
paddingLeft: 0,
|
|
66
|
-
ml: 2,
|
|
61
|
+
paddingLeft: "$0",
|
|
62
|
+
ml: "$2",
|
|
67
63
|
display: "flex"
|
|
68
64
|
}, Object.entries(windows).map(function (_ref2) {
|
|
69
65
|
var _ref3 = _slicedToArray(_ref2, 2),
|
|
@@ -80,10 +76,8 @@ var TaskBar = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
80
76
|
return setActiveWindow(windowId);
|
|
81
77
|
},
|
|
82
78
|
small: false
|
|
83
|
-
}, /*#__PURE__*/React.createElement(
|
|
79
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
80
|
+
className: truncate
|
|
81
|
+
}, title));
|
|
84
82
|
})), /*#__PURE__*/React.createElement(Clock, null));
|
|
85
|
-
});
|
|
86
|
-
TaskBar.defaultProps = {
|
|
87
|
-
list: undefined
|
|
88
|
-
};
|
|
89
|
-
export default TaskBar;
|
|
83
|
+
});
|
|
@@ -2,49 +2,24 @@ var _excluded = ["children", "small", "icon", "active"];
|
|
|
2
2
|
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); }
|
|
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
|
-
import React from 'react';
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
})
|
|
20
|
-
var IconWrapper = styled.div.withConfig({
|
|
21
|
-
displayName: "WindowButton__IconWrapper",
|
|
22
|
-
componentId: "sc-1vv5l1a-1"
|
|
23
|
-
})(["\n svg {\n margin-top: 4;\n margin-right: 4;\n min-width: 20;\n width: 20;\n height: 20;\n shape-rendering: auto;\n }\n"]);
|
|
24
|
-
var WindowButton = function WindowButton(_ref3) {
|
|
25
|
-
var _ref3$children = _ref3.children,
|
|
26
|
-
children = _ref3$children === void 0 ? '' : _ref3$children,
|
|
27
|
-
small = _ref3.small,
|
|
28
|
-
icon = _ref3.icon,
|
|
29
|
-
active = _ref3.active,
|
|
30
|
-
props = _objectWithoutProperties(_ref3, _excluded);
|
|
31
|
-
return /*#__PURE__*/React.createElement(Button, _extends({
|
|
32
|
-
active: active,
|
|
33
|
-
small: small
|
|
34
|
-
}, active ? {
|
|
35
|
-
boxShadow: 'in',
|
|
36
|
-
bg: small ? undefined : 'borderLighter'
|
|
37
|
-
} : {
|
|
38
|
-
boxShadow: 'out'
|
|
5
|
+
import React, { forwardRef } from 'react';
|
|
6
|
+
import * as styles from './TaskBar.css';
|
|
7
|
+
export var WindowButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
8
|
+
var children = _ref.children,
|
|
9
|
+
_ref$small = _ref.small,
|
|
10
|
+
small = _ref$small === void 0 ? false : _ref$small,
|
|
11
|
+
icon = _ref.icon,
|
|
12
|
+
_ref$active = _ref.active,
|
|
13
|
+
active = _ref$active === void 0 ? false : _ref$active,
|
|
14
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
15
|
+
return /*#__PURE__*/React.createElement("button", _extends({
|
|
16
|
+
className: styles.windowsButton({
|
|
17
|
+
active: active,
|
|
18
|
+
small: small
|
|
19
|
+
})
|
|
39
20
|
}, props, {
|
|
40
|
-
|
|
41
|
-
}), /*#__PURE__*/React.createElement(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
icon: /*#__PURE__*/React.createElement(Bat, {
|
|
46
|
-
variant: "32x32_4"
|
|
47
|
-
}),
|
|
48
|
-
active: false
|
|
49
|
-
};
|
|
50
|
-
export default WindowButton;
|
|
21
|
+
ref: ref
|
|
22
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
23
|
+
className: styles.icon
|
|
24
|
+
}, icon), children);
|
|
25
|
+
});
|
package/esm/TaskBar/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import TaskBar from './TaskBar';
|
|
1
|
+
import { TaskBar } from './TaskBar';
|
|
2
2
|
export default TaskBar;
|