@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
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { style, globalStyle } from '@vanilla-extract/css';
|
|
2
|
+
import { calc } from '@vanilla-extract/css-utils';
|
|
3
|
+
import { contract } from '../themes/contract.css';
|
|
4
|
+
import rightcaret from '../GlobalStyle/imgs/rightcaret.svg';
|
|
5
|
+
export var listItem = style({
|
|
6
|
+
position: 'relative',
|
|
7
|
+
display: 'flex',
|
|
8
|
+
alignItems: 'center',
|
|
9
|
+
userSelect: 'none',
|
|
10
|
+
margin: contract.space[0],
|
|
11
|
+
paddingBlock: contract.space[2],
|
|
12
|
+
paddingInline: contract.space[6],
|
|
13
|
+
color: contract.colors.materialText,
|
|
14
|
+
selectors: {
|
|
15
|
+
'&:hover': {
|
|
16
|
+
backgroundColor: contract.colors.headerBackground,
|
|
17
|
+
color: contract.colors.materialTextInvert
|
|
18
|
+
},
|
|
19
|
+
'&:not(:has(svg))': {
|
|
20
|
+
paddingInlineStart: '26px'
|
|
21
|
+
},
|
|
22
|
+
'&:has(ul):after': {
|
|
23
|
+
position: 'absolute',
|
|
24
|
+
width: contract.space[5],
|
|
25
|
+
height: contract.space[8],
|
|
26
|
+
right: contract.space[8],
|
|
27
|
+
content: "''",
|
|
28
|
+
backgroundColor: contract.colors.materialText,
|
|
29
|
+
maskImage: "url('".concat(rightcaret, "')"),
|
|
30
|
+
maskPosition: 'center center',
|
|
31
|
+
maskSize: "".concat(contract.space[5], " ").concat(contract.space[8]),
|
|
32
|
+
maskRepeat: 'no-repeat'
|
|
33
|
+
},
|
|
34
|
+
'&:has(ul):hover:after': {
|
|
35
|
+
backgroundColor: contract.colors.materialTextInvert
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
globalStyle("".concat(listItem, " svg"), {
|
|
40
|
+
marginRight: contract.space[10],
|
|
41
|
+
minWidth: contract.space[16]
|
|
42
|
+
});
|
|
43
|
+
globalStyle("".concat(listItem, " ul"), {
|
|
44
|
+
display: 'none',
|
|
45
|
+
position: 'absolute',
|
|
46
|
+
top: calc.negate(contract.space[2]),
|
|
47
|
+
left: '97%',
|
|
48
|
+
color: contract.colors.materialText,
|
|
49
|
+
zIndex: contract.zIndices.taskbar
|
|
50
|
+
});
|
|
51
|
+
globalStyle("".concat(listItem, ":has(ul):hover > ul"), {
|
|
52
|
+
display: 'block'
|
|
53
|
+
});
|
|
54
|
+
export var divider = style({
|
|
55
|
+
height: contract.space[1],
|
|
56
|
+
borderTopStyle: 'solid',
|
|
57
|
+
borderTopWidth: contract.space[1],
|
|
58
|
+
borderTopColor: contract.colors.borderDark,
|
|
59
|
+
borderBottomWidth: contract.space[1],
|
|
60
|
+
borderBottomStyle: 'solid',
|
|
61
|
+
borderBottomColor: contract.colors.borderLightest,
|
|
62
|
+
width: '98%',
|
|
63
|
+
marginLeft: contract.space[2]
|
|
64
|
+
});
|
|
65
|
+
export var list = style({
|
|
66
|
+
backgroundColor: contract.colors.material,
|
|
67
|
+
padding: contract.space[2],
|
|
68
|
+
border: 'none',
|
|
69
|
+
margin: 0,
|
|
70
|
+
listStyle: 'none',
|
|
71
|
+
boxShadow: contract.shadows.out
|
|
72
|
+
});
|
package/esm/List/List.js
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
import ListItem from './ListItem';
|
|
3
|
-
import Divider from './ListDivider';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return
|
|
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 { ListItem } from './ListItem';
|
|
3
|
+
import { Divider } from './ListDivider';
|
|
4
|
+
import { Frame } from '../Frame/Frame';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { list } from './List.css';
|
|
7
|
+
import cn from 'classnames';
|
|
8
|
+
var ListRenderer = /*#__PURE__*/React.forwardRef(function (rest, ref) {
|
|
9
|
+
return /*#__PURE__*/React.createElement(Frame, _extends({}, rest, {
|
|
10
|
+
ref: ref,
|
|
11
|
+
className: cn(list, rest.className),
|
|
12
|
+
as: "ul"
|
|
13
|
+
}));
|
|
10
14
|
});
|
|
11
|
-
var List = Object.assign(
|
|
15
|
+
export var List = Object.assign(ListRenderer, {
|
|
12
16
|
Item: ListItem,
|
|
13
17
|
Divider: Divider
|
|
14
|
-
});
|
|
15
|
-
List.displayName = 'List';
|
|
16
|
-
List.defaultProps = {
|
|
17
|
-
width: 200
|
|
18
|
-
};
|
|
19
|
-
export default List;
|
|
18
|
+
});
|
package/esm/List/ListDivider.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
Divider
|
|
7
|
-
|
|
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 React from 'react';
|
|
3
|
+
import { Frame } from '../Frame/Frame';
|
|
4
|
+
import { divider } from './List.css';
|
|
5
|
+
import cn from 'classnames';
|
|
6
|
+
export var Divider = /*#__PURE__*/React.forwardRef(function (rest, ref) {
|
|
7
|
+
return /*#__PURE__*/React.createElement(Frame, _extends({}, rest, {
|
|
8
|
+
ref: ref,
|
|
9
|
+
className: cn(divider, rest.className),
|
|
10
|
+
as: "li"
|
|
11
|
+
}));
|
|
12
|
+
});
|
|
13
|
+
Divider.displayName = 'List.Divider';
|
package/esm/List/ListItem.js
CHANGED
|
@@ -1,35 +1,25 @@
|
|
|
1
1
|
var _excluded = ["icon", "children"];
|
|
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
2
|
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
3
|
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; }
|
|
4
|
+
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); }
|
|
5
5
|
import React, { forwardRef } from 'react';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
var hasList = _ref2.hasList;
|
|
16
|
-
return hasList && css(["\n &:after {\n position: absolute;\n width: 5px;\n height: 8px;\n right: 8px;\n\n content: '';\n background-color: materialText;\n mask-image: url('", "');\n mask-position: center center;\n mask-size: 5px 8px;\n mask-repeat: no-repeat;\n\n svg {\n fill: materialTextInvert;\n }\n }\n\n &:hover {\n &:after {\n background-color: materialTextInvert;\n }\n\n ul {\n display: block;\n }\n }\n "], rightcaret);
|
|
6
|
+
import cn from 'classnames';
|
|
7
|
+
import { Frame } from '../Frame/Frame';
|
|
8
|
+
import { listItem } from './List.css';
|
|
9
|
+
var Item = /*#__PURE__*/React.forwardRef(function (rest, ref) {
|
|
10
|
+
return /*#__PURE__*/React.createElement(Frame, _extends({}, rest, {
|
|
11
|
+
ref: ref,
|
|
12
|
+
className: cn(listItem, rest.className),
|
|
13
|
+
as: "li"
|
|
14
|
+
}));
|
|
17
15
|
});
|
|
18
|
-
var ListItem = /*#__PURE__*/forwardRef(function (
|
|
19
|
-
var icon =
|
|
20
|
-
|
|
21
|
-
children =
|
|
22
|
-
rest = _objectWithoutProperties(
|
|
16
|
+
export var ListItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
17
|
+
var icon = _ref.icon,
|
|
18
|
+
_ref$children = _ref.children,
|
|
19
|
+
children = _ref$children === void 0 ? [] : _ref$children,
|
|
20
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
23
21
|
return /*#__PURE__*/React.createElement(Item, _extends({}, rest, {
|
|
24
|
-
|
|
25
|
-
ref: ref,
|
|
26
|
-
hasList: Boolean(children && React.Children.map(children, function (child) {
|
|
27
|
-
return /*#__PURE__*/React.isValidElement(child);
|
|
28
|
-
}).some(function (child) {
|
|
29
|
-
return child;
|
|
30
|
-
})),
|
|
31
|
-
className: "default"
|
|
22
|
+
ref: ref
|
|
32
23
|
}), icon, children);
|
|
33
24
|
});
|
|
34
|
-
ListItem.displayName = 'List.Item';
|
|
35
|
-
export default ListItem;
|
|
25
|
+
ListItem.displayName = 'List.Item';
|
package/esm/List/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import List from './List';
|
|
1
|
+
import { List } from './List';
|
|
2
2
|
export default List;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { globalStyle, style } from '@vanilla-extract/css';
|
|
2
|
+
import { contract } from '../themes/contract.css';
|
|
3
|
+
import { recipe } from '@vanilla-extract/recipes';
|
|
4
|
+
export var modalWrapper = recipe({
|
|
5
|
+
base: {
|
|
6
|
+
display: 'flex',
|
|
7
|
+
flexDirection: 'column',
|
|
8
|
+
position: 'fixed',
|
|
9
|
+
padding: '2px 2px 8px',
|
|
10
|
+
top: '50px',
|
|
11
|
+
backgroundColor: contract.colors.material,
|
|
12
|
+
boxShadow: contract.shadows.out
|
|
13
|
+
},
|
|
14
|
+
variants: {
|
|
15
|
+
active: {
|
|
16
|
+
"true": {
|
|
17
|
+
zIndex: contract.zIndices.modal
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
export var buttonWrapper = style({
|
|
23
|
+
display: 'flex',
|
|
24
|
+
gap: '6px',
|
|
25
|
+
flexDirection: 'row',
|
|
26
|
+
padding: '0 6px 6px 6px'
|
|
27
|
+
});
|
|
28
|
+
globalStyle("".concat(buttonWrapper, " button"), {
|
|
29
|
+
minWidth: '70px'
|
|
30
|
+
});
|
|
31
|
+
export var content = style({
|
|
32
|
+
flexGrow: 1,
|
|
33
|
+
display: 'flex',
|
|
34
|
+
flexDirection: 'column',
|
|
35
|
+
padding: '6px'
|
|
36
|
+
});
|
|
37
|
+
export var menuWrapper = style({
|
|
38
|
+
display: 'flex',
|
|
39
|
+
flexDirection: 'row',
|
|
40
|
+
listStyle: 'none',
|
|
41
|
+
margin: '0',
|
|
42
|
+
paddingLeft: '0',
|
|
43
|
+
paddingTop: '1px',
|
|
44
|
+
paddingBottom: '1px',
|
|
45
|
+
borderBottomStyle: 'solid',
|
|
46
|
+
borderWidth: '1px',
|
|
47
|
+
borderBottomColor: contract.colors.borderDark,
|
|
48
|
+
boxShadow: "0 1px 0 0 ".concat(contract.colors.borderLighter)
|
|
49
|
+
});
|
|
50
|
+
export var menuItem = recipe({
|
|
51
|
+
base: {
|
|
52
|
+
position: 'relative',
|
|
53
|
+
paddingLeft: '6px',
|
|
54
|
+
paddingRight: '6px',
|
|
55
|
+
userSelect: 'none'
|
|
56
|
+
},
|
|
57
|
+
variants: {
|
|
58
|
+
active: {
|
|
59
|
+
"true": {
|
|
60
|
+
backgroundColor: contract.colors.material,
|
|
61
|
+
color: contract.colors.materialTextInvert
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
globalStyle("".concat(menuItem.classNames.base, " ul"), {
|
|
67
|
+
position: 'absolute',
|
|
68
|
+
left: '0',
|
|
69
|
+
color: contract.colors.materialText
|
|
70
|
+
});
|
package/esm/Modal/Modal.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["hasWindowButton", "buttons", "buttonsAlignment", "children", "
|
|
1
|
+
var _excluded = ["hasWindowButton", "buttons", "buttonsAlignment", "children", "onClose", "onHelp", "defaultPosition", "positionOffset", "height", "icon", "menu", "title", "width"];
|
|
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,62 +8,39 @@ 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, { css, th } from '@xstyled/styled-components';
|
|
12
11
|
import * as React from 'react';
|
|
13
12
|
import Draggable from 'react-draggable';
|
|
14
13
|
import Button from '../Button';
|
|
15
14
|
import TitleBar from '../TitleBar';
|
|
16
15
|
import ModalContext from './ModalContext';
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
displayName: "Modal__MenuItem",
|
|
46
|
-
componentId: "sc-4ouk59-4"
|
|
47
|
-
})(["\n position: relative;\n padding-left: 6;\n padding-right: 6;\n\n user-select: none;\n\n ul {\n position: absolute;\n left: 0;\n color: ", ";\n }\n\n ", ";\n"], th('colors.materialText'), function (_ref4) {
|
|
48
|
-
var active = _ref4.active;
|
|
49
|
-
return active && css(["\n background-color: primary;\n color: materialTextInvert;\n "]);
|
|
50
|
-
});
|
|
51
|
-
MenuItem.displayName = 'MenuItem';
|
|
52
|
-
var ModalRenderer = function ModalRenderer(_ref5, ref) {
|
|
53
|
-
var _ref5$hasWindowButton = _ref5.hasWindowButton,
|
|
54
|
-
hasButton = _ref5$hasWindowButton === void 0 ? true : _ref5$hasWindowButton,
|
|
55
|
-
buttons = _ref5.buttons,
|
|
56
|
-
buttonsAlignment = _ref5.buttonsAlignment,
|
|
57
|
-
children = _ref5.children,
|
|
58
|
-
closeModal = _ref5.closeModal,
|
|
59
|
-
defaultPosition = _ref5.defaultPosition,
|
|
60
|
-
positionOffset = _ref5.positionOffset,
|
|
61
|
-
height = _ref5.height,
|
|
62
|
-
icon = _ref5.icon,
|
|
63
|
-
menu = _ref5.menu,
|
|
64
|
-
title = _ref5.title,
|
|
65
|
-
width = _ref5.width,
|
|
66
|
-
rest = _objectWithoutProperties(_ref5, _excluded);
|
|
16
|
+
import * as styles from './Modal.css';
|
|
17
|
+
import { Frame } from '../Frame/Frame';
|
|
18
|
+
import close from './close.svg';
|
|
19
|
+
import help from './help.svg';
|
|
20
|
+
var ModalRenderer = function ModalRenderer(_ref, ref) {
|
|
21
|
+
var _ref$hasWindowButton = _ref.hasWindowButton,
|
|
22
|
+
hasButton = _ref$hasWindowButton === void 0 ? true : _ref$hasWindowButton,
|
|
23
|
+
_ref$buttons = _ref.buttons,
|
|
24
|
+
buttons = _ref$buttons === void 0 ? [] : _ref$buttons,
|
|
25
|
+
_ref$buttonsAlignment = _ref.buttonsAlignment,
|
|
26
|
+
buttonsAlignment = _ref$buttonsAlignment === void 0 ? 'flex-end' : _ref$buttonsAlignment,
|
|
27
|
+
children = _ref.children,
|
|
28
|
+
_ref$onClose = _ref.onClose,
|
|
29
|
+
onClose = _ref$onClose === void 0 ? function () {} : _ref$onClose,
|
|
30
|
+
onHelp = _ref.onHelp,
|
|
31
|
+
_ref$defaultPosition = _ref.defaultPosition,
|
|
32
|
+
defaultPosition = _ref$defaultPosition === void 0 ? {
|
|
33
|
+
x: 0,
|
|
34
|
+
y: 0
|
|
35
|
+
} : _ref$defaultPosition,
|
|
36
|
+
positionOffset = _ref.positionOffset,
|
|
37
|
+
height = _ref.height,
|
|
38
|
+
icon = _ref.icon,
|
|
39
|
+
_ref$menu = _ref.menu,
|
|
40
|
+
menu = _ref$menu === void 0 ? [] : _ref$menu,
|
|
41
|
+
title = _ref.title,
|
|
42
|
+
width = _ref.width,
|
|
43
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
67
44
|
var _React$useContext = React.useContext(ModalContext),
|
|
68
45
|
addWindows = _React$useContext.addWindows,
|
|
69
46
|
removeWindow = _React$useContext.removeWindow,
|
|
@@ -118,36 +95,50 @@ var ModalRenderer = function ModalRenderer(_ref5, ref) {
|
|
|
118
95
|
onMouseDown: id ? function () {
|
|
119
96
|
return setActiveWindow(id);
|
|
120
97
|
} : undefined
|
|
121
|
-
}, /*#__PURE__*/React.createElement(
|
|
98
|
+
}, /*#__PURE__*/React.createElement(Frame, _extends({}, rest, {
|
|
122
99
|
width: width,
|
|
123
|
-
height: height
|
|
124
|
-
|
|
125
|
-
|
|
100
|
+
height: height,
|
|
101
|
+
className: styles.modalWrapper({
|
|
102
|
+
active: isActive
|
|
103
|
+
}),
|
|
126
104
|
ref: ref
|
|
127
105
|
}), /*#__PURE__*/React.createElement(TitleBar, {
|
|
128
106
|
active: isActive,
|
|
129
107
|
icon: icon,
|
|
130
108
|
title: title,
|
|
131
109
|
className: "draggable"
|
|
132
|
-
}, /*#__PURE__*/React.createElement(TitleBar.OptionsBox, null, /*#__PURE__*/React.createElement(TitleBar.Option, null,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
110
|
+
}, /*#__PURE__*/React.createElement(TitleBar.OptionsBox, null, onHelp && /*#__PURE__*/React.createElement(TitleBar.Option, null, /*#__PURE__*/React.createElement("img", {
|
|
111
|
+
src: help,
|
|
112
|
+
alt: "help",
|
|
113
|
+
onClick: onHelp
|
|
114
|
+
})), /*#__PURE__*/React.createElement(TitleBar.Option, {
|
|
115
|
+
onClick: onClose
|
|
116
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
117
|
+
src: close,
|
|
118
|
+
alt: "close"
|
|
119
|
+
})))), menu && menu.length > 0 && /*#__PURE__*/React.createElement("ul", {
|
|
120
|
+
className: styles.menuWrapper
|
|
121
|
+
}, menu.map(function (_ref2) {
|
|
122
|
+
var name = _ref2.name,
|
|
123
|
+
list = _ref2.list;
|
|
137
124
|
var active = menuOpened === name;
|
|
138
|
-
return /*#__PURE__*/React.createElement(
|
|
125
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
139
126
|
key: name,
|
|
140
127
|
onMouseDown: function onMouseDown() {
|
|
141
128
|
return setMenuOpened(name);
|
|
142
129
|
},
|
|
143
|
-
|
|
130
|
+
className: styles.menuItem({
|
|
131
|
+
active: active
|
|
132
|
+
})
|
|
144
133
|
}, name, active && list);
|
|
145
|
-
})), /*#__PURE__*/React.createElement(
|
|
134
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
135
|
+
className: styles.content,
|
|
146
136
|
onClick: function onClick() {
|
|
147
137
|
return setMenuOpened('');
|
|
148
138
|
}
|
|
149
|
-
}, children), buttons && buttons.length > 0 && /*#__PURE__*/React.createElement(
|
|
150
|
-
|
|
139
|
+
}, children), buttons && buttons.length > 0 && /*#__PURE__*/React.createElement(Frame, {
|
|
140
|
+
className: styles.buttonWrapper,
|
|
141
|
+
justifyContent: buttonsAlignment
|
|
151
142
|
}, buttons.map(function (button) {
|
|
152
143
|
return /*#__PURE__*/React.createElement(Button, {
|
|
153
144
|
key: button.value,
|
|
@@ -156,12 +147,11 @@ var ModalRenderer = function ModalRenderer(_ref5, ref) {
|
|
|
156
147
|
}, button.value);
|
|
157
148
|
}))));
|
|
158
149
|
};
|
|
159
|
-
var Modal = /*#__PURE__*/React.forwardRef(ModalRenderer);
|
|
150
|
+
export var Modal = /*#__PURE__*/React.forwardRef(ModalRenderer);
|
|
160
151
|
Modal.displayName = 'Modal';
|
|
161
152
|
Modal.defaultProps = {
|
|
162
153
|
icon: undefined,
|
|
163
154
|
title: 'Modal',
|
|
164
|
-
buttonsAlignment: 'flex-end',
|
|
165
155
|
children: null,
|
|
166
156
|
defaultPosition: {
|
|
167
157
|
x: 0,
|
|
@@ -171,6 +161,5 @@ Modal.defaultProps = {
|
|
|
171
161
|
menu: [],
|
|
172
162
|
width: undefined,
|
|
173
163
|
height: undefined,
|
|
174
|
-
|
|
175
|
-
};
|
|
176
|
-
export default Modal;
|
|
164
|
+
onClose: function onClose() {}
|
|
165
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width='8' height='7' fill='currentColor' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' clip-rule='evenodd' d='M0 0h2v1h1v1h2V1h1V0h2v1H7v1H6v1H5v1h1v1h1v1h1v1H6V6H5V5H3v1H2v1H0V6h1V5h1V4h1V3H2V2H1V1H0V0z' /></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width='6' height='9' fill='currentColor' xmlns='http://www.w3.org/2000/svg'><path d='M0 1h2v2H0zM1 0h4v1H1zM4 1h2v2H4zM3 3h2v1H3zM2 4h2v2H2zM2 7h2v2H2z'/></svg>
|
package/esm/Modal/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width='9' height='9' fill='currentColor' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' clip-rule='evenodd' d='M9 0H0v9h9V0zM8 2H1v6h7V2z' /></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width='6' height='2' fill='currentColor' xmlns='http://www.w3.org/2000/svg'><path d='M0 0h6v2H0z'/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width='8' height='9' fill='currentColor' xmlns='http://www.w3.org/2000/svg'><path d='M2 0h6v2H2zM7 2h1v4H7zM2 2h1v1H2zM6 5h1v1H6zM0 3h6v2H0zM5 5h1v4H5zM0 5h1v4H0zM1 8h4v1H1z'/></svg>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { style } from '@vanilla-extract/css';
|
|
2
|
+
import { contract } from '../themes/contract.css';
|
|
3
|
+
export var wrapper = style({
|
|
4
|
+
height: contract.space[20],
|
|
5
|
+
position: 'relative',
|
|
6
|
+
textAlign: 'center'
|
|
7
|
+
});
|
|
8
|
+
export var whiteBar = style({
|
|
9
|
+
height: contract.space[20],
|
|
10
|
+
lineHeight: contract.space[20],
|
|
11
|
+
borderLeft: contract.space[1],
|
|
12
|
+
borderLeftStyle: 'solid',
|
|
13
|
+
borderLeftColor: contract.colors.borderDark,
|
|
14
|
+
borderTop: contract.space[1],
|
|
15
|
+
borderTopStyle: 'solid',
|
|
16
|
+
borderTopColor: contract.colors.borderDark,
|
|
17
|
+
backgroundColor: contract.colors.inputBackground,
|
|
18
|
+
color: contract.colors.materialText,
|
|
19
|
+
boxShadow: contract.shadows.input
|
|
20
|
+
});
|
|
21
|
+
export var container = style({
|
|
22
|
+
position: 'absolute',
|
|
23
|
+
top: '0',
|
|
24
|
+
left: '0',
|
|
25
|
+
overflow: 'hidden'
|
|
26
|
+
});
|
|
27
|
+
export var progress = style({
|
|
28
|
+
height: contract.space[17],
|
|
29
|
+
lineHeight: contract.space[18],
|
|
30
|
+
marginLeft: contract.space[2],
|
|
31
|
+
marginTop: contract.space[2],
|
|
32
|
+
backgroundColor: contract.colors.progress,
|
|
33
|
+
color: contract.colors.materialTextInvert
|
|
34
|
+
});
|
|
@@ -3,53 +3,27 @@ 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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var width = _ref2.width;
|
|
19
|
-
return width;
|
|
20
|
-
}, css(["\n box-shadow: inset -1px -1px 0 0 ", ",\n inset 1px 1px 0 0 ", ",\n 0.5px 0.5px 0 0.5px ", ";\n "], th('colors.material'), th('colors.borderDarkest'), th('colors.borderLightest')));
|
|
21
|
-
var Container = styled.div.withConfig({
|
|
22
|
-
displayName: "ProgressBar__Container",
|
|
23
|
-
componentId: "sc-1xpcki1-2"
|
|
24
|
-
})(["\n width: ", "%;\n\n position: absolute;\n top: 0;\n left: 0;\n\n overflow: hidden;\n"], function (_ref3) {
|
|
25
|
-
var percent = _ref3.percent;
|
|
26
|
-
return percent;
|
|
27
|
-
});
|
|
28
|
-
var Progress = styled.div.withConfig({
|
|
29
|
-
displayName: "ProgressBar__Progress",
|
|
30
|
-
componentId: "sc-1xpcki1-3"
|
|
31
|
-
})(["\n width: ", "px;\n height: 17px;\n line-height: 18px;\n\n margin-left: 2;\n margin-top: 2;\n\n background-color: progress;\n color: ", ";\n"], function (_ref4) {
|
|
32
|
-
var width = _ref4.width;
|
|
33
|
-
return width;
|
|
34
|
-
}, th('colors.materialTextInvert'));
|
|
35
|
-
var ProgressBar = /*#__PURE__*/forwardRef(function (_ref5, ref) {
|
|
36
|
-
var width = _ref5.width,
|
|
37
|
-
percent = _ref5.percent,
|
|
38
|
-
rest = _objectWithoutProperties(_ref5, _excluded);
|
|
39
|
-
return /*#__PURE__*/React.createElement(Wrapper, _extends({
|
|
40
|
-
width: width
|
|
41
|
-
}, rest, {
|
|
6
|
+
import cn from 'classnames';
|
|
7
|
+
import { Frame } from '../Frame/Frame';
|
|
8
|
+
import * as styles from './ProgressBar.css';
|
|
9
|
+
export var ProgressBar = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
10
|
+
var _ref$width = _ref.width,
|
|
11
|
+
width = _ref$width === void 0 ? '150px' : _ref$width,
|
|
12
|
+
_ref$percent = _ref.percent,
|
|
13
|
+
percent = _ref$percent === void 0 ? 0 : _ref$percent,
|
|
14
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
15
|
+
return /*#__PURE__*/React.createElement(Frame, _extends({}, rest, {
|
|
16
|
+
width: width,
|
|
17
|
+
className: cn(styles.wrapper, rest.className),
|
|
42
18
|
ref: ref
|
|
43
|
-
}), /*#__PURE__*/React.createElement(
|
|
19
|
+
}), /*#__PURE__*/React.createElement(Frame, {
|
|
20
|
+
className: styles.whiteBar,
|
|
44
21
|
width: width
|
|
45
|
-
}, "".concat(percent, "%")), /*#__PURE__*/React.createElement(
|
|
46
|
-
|
|
47
|
-
|
|
22
|
+
}, "".concat(percent, "%")), /*#__PURE__*/React.createElement(Frame, {
|
|
23
|
+
className: styles.container,
|
|
24
|
+
width: "".concat(percent, "%")
|
|
25
|
+
}, /*#__PURE__*/React.createElement(Frame, {
|
|
26
|
+
className: styles.progress,
|
|
48
27
|
width: width
|
|
49
28
|
}, "".concat(percent, "%"))));
|
|
50
|
-
});
|
|
51
|
-
ProgressBar.defaultProps = {
|
|
52
|
-
width: 150,
|
|
53
|
-
percent: 0
|
|
54
|
-
};
|
|
55
|
-
export default ProgressBar;
|
|
29
|
+
});
|
package/esm/ProgressBar/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import ProgressBar from './ProgressBar';
|
|
1
|
+
import { ProgressBar } from './ProgressBar';
|
|
2
2
|
export default ProgressBar;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { radioChecked, radioCheckedDisabled, radioUnchecked, radioUncheckedDisabled } from './radioButtonStates';
|
|
2
|
+
import { globalStyle, style } from '@vanilla-extract/css';
|
|
3
|
+
import { contract } from '../themes/contract.css';
|
|
4
|
+
export var icon = style({
|
|
5
|
+
width: contract.space[12],
|
|
6
|
+
height: contract.space[12],
|
|
7
|
+
display: 'inline-block',
|
|
8
|
+
position: 'absolute',
|
|
9
|
+
left: contract.space[0],
|
|
10
|
+
top: contract.space[0],
|
|
11
|
+
backgroundImage: "url('".concat(radioUnchecked, "')"),
|
|
12
|
+
imageRendering: 'pixelated'
|
|
13
|
+
});
|
|
14
|
+
export var text = style({
|
|
15
|
+
padding: contract.space[1],
|
|
16
|
+
userSelect: 'none',
|
|
17
|
+
position: 'absolute',
|
|
18
|
+
top: '0',
|
|
19
|
+
left: contract.space[18]
|
|
20
|
+
});
|
|
21
|
+
export var label = style({
|
|
22
|
+
position: 'relative',
|
|
23
|
+
marginBottom: contract.space[10],
|
|
24
|
+
display: 'block',
|
|
25
|
+
selectors: {
|
|
26
|
+
'&:has(:disabled)': {
|
|
27
|
+
color: contract.colors.materialTextDisabled,
|
|
28
|
+
textShadow: "0.5px 0.5px ".concat(contract.colors.materialTextDisabledShadow)
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
export var field = style({
|
|
33
|
+
margin: 0,
|
|
34
|
+
opacity: 0
|
|
35
|
+
});
|
|
36
|
+
globalStyle("".concat(field, ":focus ~ ").concat(text, ", &:active + ").concat(text), {
|
|
37
|
+
borderWidth: contract.space[1],
|
|
38
|
+
borderStyle: 'dotted',
|
|
39
|
+
padding: 0
|
|
40
|
+
});
|
|
41
|
+
globalStyle("".concat(field, ":checked + ").concat(icon), {
|
|
42
|
+
backgroundImage: "url('".concat(radioChecked, "')")
|
|
43
|
+
});
|
|
44
|
+
globalStyle("".concat(field, ":disabled + ").concat(icon), {
|
|
45
|
+
backgroundImage: "url('".concat(radioUncheckedDisabled, "')")
|
|
46
|
+
});
|
|
47
|
+
globalStyle("".concat(field, ":checked:disabled + ").concat(icon), {
|
|
48
|
+
backgroundImage: "url('".concat(radioCheckedDisabled, "')")
|
|
49
|
+
});
|