@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
package/esm/TextArea/TextArea.js
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
1
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
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var TextArea = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
11
|
-
return /*#__PURE__*/React.createElement(TextAreaComponent, _extends({}, props, {
|
|
12
|
-
as: "textarea",
|
|
13
|
-
ref: ref
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Frame } from '../Frame/Frame';
|
|
4
|
+
import { input as textarea } from '../Input/Input.css';
|
|
5
|
+
export var TextArea = /*#__PURE__*/React.forwardRef(function (rest, ref) {
|
|
6
|
+
return /*#__PURE__*/React.createElement(Frame, _extends({}, rest, {
|
|
7
|
+
ref: ref,
|
|
8
|
+
className: textarea,
|
|
9
|
+
as: "textarea"
|
|
14
10
|
}));
|
|
15
|
-
});
|
|
16
|
-
export default TextArea;
|
|
11
|
+
});
|
package/esm/TextArea/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import TextArea from './TextArea';
|
|
1
|
+
import { TextArea } from './TextArea';
|
|
2
2
|
export default TextArea;
|
|
@@ -0,0 +1,72 @@
|
|
|
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 optionsBox = style({
|
|
5
|
+
listStyle: 'none',
|
|
6
|
+
padding: 0,
|
|
7
|
+
margin: 0,
|
|
8
|
+
display: 'flex'
|
|
9
|
+
});
|
|
10
|
+
export var option = style({
|
|
11
|
+
display: 'flex',
|
|
12
|
+
alignItems: 'center',
|
|
13
|
+
justifyContent: 'center',
|
|
14
|
+
marginLeft: contract.space[2],
|
|
15
|
+
padding: contract.space[0],
|
|
16
|
+
width: contract.space[17],
|
|
17
|
+
height: contract.space[14],
|
|
18
|
+
minWidth: contract.space[0],
|
|
19
|
+
fontWeight: 600,
|
|
20
|
+
fontSize: 10,
|
|
21
|
+
selectors: {
|
|
22
|
+
'&:active': {
|
|
23
|
+
paddingTop: contract.space[1],
|
|
24
|
+
paddingRight: contract.space[0],
|
|
25
|
+
paddingBottom: contract.space[0],
|
|
26
|
+
paddingLeft: contract.space[1],
|
|
27
|
+
outline: 'none'
|
|
28
|
+
},
|
|
29
|
+
'&:first-child': {
|
|
30
|
+
marginRight: contract.space[0]
|
|
31
|
+
},
|
|
32
|
+
'&:focus': {
|
|
33
|
+
boxShadow: "inset 1px 1px 0px 1px ".concat(contract.colors.borderLightest, ",\n inset -1px -1px 0px 1px ").concat(contract.colors.borderDark)
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export var titleBarBackground = recipe({
|
|
38
|
+
base: {
|
|
39
|
+
height: contract.space[20],
|
|
40
|
+
marginBottom: contract.space[2],
|
|
41
|
+
padding: contract.space[2],
|
|
42
|
+
display: 'flex',
|
|
43
|
+
boxShadow: 'none',
|
|
44
|
+
userSelect: 'none'
|
|
45
|
+
},
|
|
46
|
+
variants: {
|
|
47
|
+
active: {
|
|
48
|
+
"true": {
|
|
49
|
+
background: contract.colors.headerBackground,
|
|
50
|
+
color: contract.colors.headerText
|
|
51
|
+
},
|
|
52
|
+
"false": {
|
|
53
|
+
background: contract.colors.headerNotActiveBackground,
|
|
54
|
+
color: contract.colors.headerNotActiveText
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
globalStyle("".concat(titleBarBackground.classNames.base, " svg"), {
|
|
60
|
+
width: contract.space[16],
|
|
61
|
+
height: contract.space[16],
|
|
62
|
+
marginRight: contract.space[4]
|
|
63
|
+
});
|
|
64
|
+
export var title = style({
|
|
65
|
+
flexGrow: 1,
|
|
66
|
+
lineHeight: '1.4em',
|
|
67
|
+
margin: '0',
|
|
68
|
+
fontSize: '1em',
|
|
69
|
+
textShadow: '0.5px 0px white, 1.5px 0px white',
|
|
70
|
+
color: 'transparent',
|
|
71
|
+
letterSpacing: '1px'
|
|
72
|
+
});
|
package/esm/TitleBar/TitleBar.js
CHANGED
|
@@ -1,49 +1,43 @@
|
|
|
1
|
+
var _excluded = ["children", "title", "icon", "active"];
|
|
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; }
|
|
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); }
|
|
1
5
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}).withConfig({
|
|
12
|
-
displayName: "TitleBar__Option",
|
|
13
|
-
componentId: "sc-5cvtvn-1"
|
|
14
|
-
})(["\n display: flex;\n align-items: center;\n justify-content: center;\n\n margin-left: 2;\n padding: 0;\n\n width: 17px;\n height: 14px;\n\n min-width: 0;\n font-weight: 600;\n font-size: 10;\n\n &:active {\n padding: 1 0 0 1;\n\n outline: none;\n }\n\n &:first-child {\n margin-right: 0;\n }\n\n &:focus {\n box-shadow: inset 1px 1px 0px 1px ", ",\n inset -1px -1px 0px 1px ", ";\n }\n"], th('colors.borderLightest'), th('colors.borderDark'));
|
|
15
|
-
Option.displayName = 'Option';
|
|
16
|
-
var TitleBarBackground = styled(Frame).withConfig({
|
|
17
|
-
displayName: "TitleBar__TitleBarBackground",
|
|
18
|
-
componentId: "sc-5cvtvn-2"
|
|
19
|
-
})(["\n height: 20;\n margin-bottom: 2;\n\n padding: 2;\n\n display: flex;\n\n box-shadow: none;\n\n svg {\n width: 16;\n height: 16;\n margin-right: 4;\n }\n\n background: ", ";\n"], function (_ref) {
|
|
20
|
-
var active = _ref.active,
|
|
21
|
-
theme = _ref.theme;
|
|
22
|
-
return active ? theme.colors.headerBackground : theme.colors.headerNotActiveBackground;
|
|
6
|
+
import { Frame } from '../Frame/Frame';
|
|
7
|
+
import * as styles from './TitleBar.css';
|
|
8
|
+
import { button } from '../Button/Button.css';
|
|
9
|
+
import cn from 'classnames';
|
|
10
|
+
var OptionsBox = /*#__PURE__*/React.forwardRef(function (rest, ref) {
|
|
11
|
+
return /*#__PURE__*/React.createElement(Frame, _extends({}, rest, {
|
|
12
|
+
ref: ref,
|
|
13
|
+
className: cn(styles.optionsBox, rest.className)
|
|
14
|
+
}));
|
|
23
15
|
});
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
componentId: "sc-5cvtvn-3"
|
|
27
|
-
})(["\n flex-grow: 1;\n line-height: 1.4em;\n margin: 0;\n font-size: 1em;\n text-shadow: 0.5px 0px white, 1.5px 0px white;\n color: transparent;\n letter-spacing: 1px;\n font-size: 1em;\n"]);
|
|
28
|
-
var TitleBarRenderer = function TitleBarRenderer(_ref2, ref) {
|
|
29
|
-
var children = _ref2.children,
|
|
30
|
-
_ref2$title = _ref2.title,
|
|
31
|
-
title = _ref2$title === void 0 ? 'UNKNOWN.EXE' : _ref2$title,
|
|
32
|
-
icon = _ref2.icon,
|
|
33
|
-
_ref2$active = _ref2.active,
|
|
34
|
-
active = _ref2$active === void 0 ? true : _ref2$active,
|
|
35
|
-
className = _ref2.className;
|
|
36
|
-
return /*#__PURE__*/React.createElement(TitleBarBackground, {
|
|
37
|
-
active: active,
|
|
38
|
-
color: active ? 'headerText' : 'headerNotActiveText',
|
|
16
|
+
var Option = /*#__PURE__*/React.forwardRef(function (rest, ref) {
|
|
17
|
+
return /*#__PURE__*/React.createElement(Frame, _extends({}, rest, {
|
|
39
18
|
ref: ref,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
19
|
+
as: "button",
|
|
20
|
+
className: cn(styles.option, button, rest.className)
|
|
21
|
+
}));
|
|
22
|
+
});
|
|
23
|
+
var TitleBarRenderer = function TitleBarRenderer(_ref, ref) {
|
|
24
|
+
var children = _ref.children,
|
|
25
|
+
_ref$title = _ref.title,
|
|
26
|
+
title = _ref$title === void 0 ? 'UNKNOWN.EXE' : _ref$title,
|
|
27
|
+
icon = _ref.icon,
|
|
28
|
+
_ref$active = _ref.active,
|
|
29
|
+
active = _ref$active === void 0 ? true : _ref$active,
|
|
30
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
31
|
+
return /*#__PURE__*/React.createElement(Frame, _extends({}, rest, {
|
|
32
|
+
className: cn(styles.titleBarBackground({
|
|
33
|
+
active: active
|
|
34
|
+
}), rest.className),
|
|
35
|
+
ref: ref
|
|
36
|
+
}), icon && icon, /*#__PURE__*/React.createElement("div", {
|
|
37
|
+
className: styles.title
|
|
43
38
|
}, title), children);
|
|
44
39
|
};
|
|
45
|
-
var TitleBar = Object.assign( /*#__PURE__*/React.forwardRef(TitleBarRenderer), {
|
|
40
|
+
export var TitleBar = Object.assign( /*#__PURE__*/React.forwardRef(TitleBarRenderer), {
|
|
46
41
|
Option: Option,
|
|
47
42
|
OptionsBox: OptionsBox
|
|
48
|
-
});
|
|
49
|
-
export default TitleBar;
|
|
43
|
+
});
|
package/esm/TitleBar/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import TitleBar from './TitleBar';
|
|
1
|
+
import { TitleBar } from './TitleBar';
|
|
2
2
|
export default TitleBar;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { style } from '@vanilla-extract/css';
|
|
2
|
+
import { contract } from '../themes/contract.css';
|
|
3
|
+
import { calc } from '@vanilla-extract/css-utils';
|
|
4
|
+
export var tip = style({
|
|
5
|
+
background: "radial-gradient(#ff0 20%, transparent 20%) 0 0,\n radial-gradient(#ff0 20%, transparent 20%) 4px 4px,\n radial-gradient(rgba(255, 255, 255, 0.1) 20%, transparent 25%) 0 1px,\n radial-gradient(rgba(255, 255, 255, 0.1) 20%, transparent 25%) 3px 4px",
|
|
6
|
+
backgroundSize: "".concat(contract.space[7], " ").concat(contract.space[7]),
|
|
7
|
+
backgroundColor: contract.colors.borderLightest,
|
|
8
|
+
borderWidth: contract.space[1],
|
|
9
|
+
borderStyle: 'solid',
|
|
10
|
+
paddingTop: contract.space[2],
|
|
11
|
+
paddingRight: contract.space[2],
|
|
12
|
+
paddingBottom: contract.space[2],
|
|
13
|
+
paddingLeft: contract.space[4],
|
|
14
|
+
boxShadow: 'none',
|
|
15
|
+
position: 'absolute',
|
|
16
|
+
top: calc.negate(contract.space[20]),
|
|
17
|
+
textAlign: 'center',
|
|
18
|
+
zIndex: contract.zIndices.taskbar
|
|
19
|
+
});
|
|
20
|
+
export var wrapper = style({
|
|
21
|
+
display: 'inline-block',
|
|
22
|
+
position: 'relative',
|
|
23
|
+
cursor: 'default',
|
|
24
|
+
whiteSpace: 'nowrap'
|
|
25
|
+
});
|
package/esm/Tooltip/Tooltip.js
CHANGED
|
@@ -9,20 +9,21 @@ 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
11
|
import * as React from 'react';
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
})(["\n display: inline-block;\n position: relative;\n cursor: default;\n white-space: nowrap;\n"]);
|
|
12
|
+
import { tip, wrapper } from './Tooltip.css';
|
|
13
|
+
import cn from 'classnames';
|
|
14
|
+
function formatDate(date) {
|
|
15
|
+
var monthNames = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
|
|
16
|
+
var day = date.getDate();
|
|
17
|
+
var monthIndex = date.getMonth();
|
|
18
|
+
var year = date.getFullYear();
|
|
19
|
+
return "".concat(day.toString().padStart(2, '0'), " ").concat(monthNames[monthIndex], " ").concat(year);
|
|
20
|
+
}
|
|
22
21
|
var TooltipRenderer = function TooltipRenderer(_ref, ref) {
|
|
23
22
|
var children = _ref.children,
|
|
24
|
-
text = _ref.text,
|
|
25
|
-
|
|
23
|
+
_ref$text = _ref.text,
|
|
24
|
+
text = _ref$text === void 0 ? formatDate(new Date()) : _ref$text,
|
|
25
|
+
_ref$delay = _ref.delay,
|
|
26
|
+
delay = _ref$delay === void 0 ? 1000 : _ref$delay,
|
|
26
27
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
27
28
|
var _React$useState = React.useState(false),
|
|
28
29
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -42,23 +43,13 @@ var TooltipRenderer = function TooltipRenderer(_ref, ref) {
|
|
|
42
43
|
clearTimeout(delayTimer);
|
|
43
44
|
setShow(false);
|
|
44
45
|
};
|
|
45
|
-
return /*#__PURE__*/React.createElement(
|
|
46
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, rest, {
|
|
47
|
+
className: cn(wrapper, rest.className),
|
|
46
48
|
onMouseEnter: handleEnter,
|
|
47
|
-
onMouseLeave: handleLeave
|
|
48
|
-
}, rest, {
|
|
49
|
+
onMouseLeave: handleLeave,
|
|
49
50
|
ref: ref
|
|
50
|
-
}), show && /*#__PURE__*/React.createElement(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
function formatDate(date) {
|
|
54
|
-
var monthNames = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
|
|
55
|
-
var day = date.getDate();
|
|
56
|
-
var monthIndex = date.getMonth();
|
|
57
|
-
var year = date.getFullYear();
|
|
58
|
-
return "".concat(day.toString().padStart(2, '0'), " ").concat(monthNames[monthIndex], " ").concat(year);
|
|
59
|
-
}
|
|
60
|
-
Tooltip.defaultProps = {
|
|
61
|
-
delay: 1000,
|
|
62
|
-
text: formatDate(new Date())
|
|
51
|
+
}), show && /*#__PURE__*/React.createElement("div", {
|
|
52
|
+
className: tip
|
|
53
|
+
}, text), children);
|
|
63
54
|
};
|
|
64
|
-
export
|
|
55
|
+
export var Tooltip = /*#__PURE__*/React.forwardRef(TooltipRenderer);
|
package/esm/Tooltip/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import Tooltip from './Tooltip';
|
|
1
|
+
import { Tooltip } from './Tooltip';
|
|
2
2
|
export default Tooltip;
|
package/esm/Tree/Node.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
var _excluded = ["children", "id", "icon", "label", "onClick"]
|
|
1
|
+
var _excluded = ["children", "id", "icon", "label", "onClick"],
|
|
2
|
+
_excluded2 = ["id", "icon", "label", "onClick"];
|
|
2
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
4
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
4
5
|
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."); }
|
|
@@ -9,11 +10,10 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
9
10
|
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
11
|
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
12
|
import * as React from 'react';
|
|
12
|
-
import styled from '@xstyled/styled-components';
|
|
13
|
-
import treeMidLines from './imgs/tree-mid.png';
|
|
14
|
-
import treeLastLines from './imgs/tree-last.png';
|
|
15
|
-
import treeNodeChildrenLine from './imgs/tree-node-children.png';
|
|
16
13
|
import { Bat, BatExec, FileFont2, FilePen, FileSettings, FileText, FileTextSettings, Folder, FolderOpen, MediaCd } from '@react95/icons';
|
|
14
|
+
import * as styles from './Tree.css';
|
|
15
|
+
import { Frame } from '../Frame/Frame';
|
|
16
|
+
import cn from 'classnames';
|
|
17
17
|
export var icons = {
|
|
18
18
|
FILE_MEDIA: MediaCd,
|
|
19
19
|
FILE_TEXT: FileText,
|
|
@@ -24,39 +24,9 @@ export var icons = {
|
|
|
24
24
|
FILE_TEXT_SETTINGS: FileTextSettings,
|
|
25
25
|
FILE_EXECUTABLE: BatExec
|
|
26
26
|
};
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
})(["\n list-style-type: none;\n background-repeat: no-repeat;\n background-image: url(", ");\n\n &:last-child {\n background-image: url(", ");\n }\n"], treeMidLines, function (_ref) {
|
|
31
|
-
var isOpen = _ref.isOpen;
|
|
32
|
-
return isOpen ? treeMidLines : treeLastLines;
|
|
33
|
-
});
|
|
34
|
-
var NodeInfo = styled.div.withConfig({
|
|
35
|
-
displayName: "Node__NodeInfo",
|
|
36
|
-
componentId: "sc-284w29-1"
|
|
37
|
-
})(["\n display: flex;\n align-items: center;\n user-select: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n"]);
|
|
38
|
-
var FolderStatus = styled.div.withConfig({
|
|
39
|
-
displayName: "Node__FolderStatus",
|
|
40
|
-
componentId: "sc-284w29-2"
|
|
41
|
-
})(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 10px;\n height: 10px;\n border: 1;\n border-color: borderDarkest;\n background-color: inputBackground;\n font-size: 11px;\n"]);
|
|
42
|
-
var IconContainer = styled.div.withConfig({
|
|
43
|
-
displayName: "Node__IconContainer",
|
|
44
|
-
componentId: "sc-284w29-3"
|
|
45
|
-
})(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 20px;\n height: 20px;\n margin-right: 6;\n margin-left: ", "px;\n\n > svg {\n width: 14px;\n height: 14px;\n }\n"], function (_ref2) {
|
|
46
|
-
var hasChildren = _ref2.hasChildren;
|
|
47
|
-
return hasChildren ? 8 : 18;
|
|
48
|
-
});
|
|
49
|
-
var NodeChildren = styled.ul.withConfig({
|
|
50
|
-
displayName: "Node__NodeChildren",
|
|
51
|
-
componentId: "sc-284w29-4"
|
|
52
|
-
})(["\n padding: 0 0 0 22;\n background-image: url(", ");\n background-repeat: repeat-y;\n"], treeNodeChildrenLine);
|
|
53
|
-
var Label = styled.span.withConfig({
|
|
54
|
-
displayName: "Node__Label",
|
|
55
|
-
componentId: "sc-284w29-5"
|
|
56
|
-
})(["\n outline: none;\n padding: 1;\n\n :focus {\n border-width: 1;\n border-style: dotted;\n padding: 0;\n }\n"]);
|
|
57
|
-
var NodeIcon = function NodeIcon(_ref3) {
|
|
58
|
-
var hasChildren = _ref3.hasChildren,
|
|
59
|
-
isOpen = _ref3.isOpen;
|
|
27
|
+
var NodeIcon = function NodeIcon(_ref) {
|
|
28
|
+
var hasChildren = _ref.hasChildren,
|
|
29
|
+
isOpen = _ref.isOpen;
|
|
60
30
|
if (!hasChildren) {
|
|
61
31
|
return /*#__PURE__*/React.createElement(Bat, {
|
|
62
32
|
variant: "16x16_4",
|
|
@@ -74,15 +44,15 @@ var NodeIcon = function NodeIcon(_ref3) {
|
|
|
74
44
|
"data-testid": "react95-default-icon-folder"
|
|
75
45
|
});
|
|
76
46
|
};
|
|
77
|
-
var Node = function Node(
|
|
78
|
-
var
|
|
79
|
-
children =
|
|
80
|
-
id =
|
|
81
|
-
icon =
|
|
82
|
-
label =
|
|
83
|
-
|
|
84
|
-
onClick =
|
|
85
|
-
rest = _objectWithoutProperties(
|
|
47
|
+
var Node = function Node(_ref2) {
|
|
48
|
+
var _ref2$children = _ref2.children,
|
|
49
|
+
children = _ref2$children === void 0 ? [] : _ref2$children,
|
|
50
|
+
id = _ref2.id,
|
|
51
|
+
icon = _ref2.icon,
|
|
52
|
+
label = _ref2.label,
|
|
53
|
+
_ref2$onClick = _ref2.onClick,
|
|
54
|
+
onClick = _ref2$onClick === void 0 ? function () {} : _ref2$onClick,
|
|
55
|
+
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
86
56
|
var _React$useState = React.useState(false),
|
|
87
57
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
88
58
|
isOpen = _React$useState2[0],
|
|
@@ -102,28 +72,73 @@ var Node = function Node(_ref4) {
|
|
|
102
72
|
onClickHandler(event);
|
|
103
73
|
}
|
|
104
74
|
};
|
|
105
|
-
return /*#__PURE__*/React.createElement(
|
|
106
|
-
|
|
107
|
-
}, rest
|
|
75
|
+
return /*#__PURE__*/React.createElement(Frame, _extends({
|
|
76
|
+
as: "li"
|
|
77
|
+
}, rest, {
|
|
78
|
+
className: styles.node
|
|
79
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
80
|
+
className: styles.nodeContent
|
|
81
|
+
}, hasChildren && /*#__PURE__*/React.createElement("div", {
|
|
82
|
+
className: styles.folderStatus,
|
|
108
83
|
onClick: function onClick() {
|
|
109
84
|
return setIsOpen(!isOpen);
|
|
110
85
|
}
|
|
111
|
-
}, isOpen ? '-' : '+'), /*#__PURE__*/React.createElement(
|
|
112
|
-
|
|
86
|
+
}, isOpen ? '-' : '+'), /*#__PURE__*/React.createElement("div", {
|
|
87
|
+
className: styles.iconContainer({
|
|
88
|
+
hasChildren: hasChildren
|
|
89
|
+
})
|
|
113
90
|
}, icon || /*#__PURE__*/React.createElement(NodeIcon, {
|
|
114
91
|
hasChildren: hasChildren,
|
|
115
92
|
isOpen: isOpen
|
|
116
|
-
})), /*#__PURE__*/React.createElement(
|
|
93
|
+
})), /*#__PURE__*/React.createElement("label", {
|
|
94
|
+
className: styles.label,
|
|
117
95
|
tabIndex: 0,
|
|
118
96
|
onDoubleClick: function onDoubleClick() {
|
|
119
97
|
return setIsOpen(!isOpen);
|
|
120
98
|
},
|
|
121
99
|
onClick: onClickHandler,
|
|
122
100
|
onKeyDown: onKeyDownHandler
|
|
123
|
-
}, label)), hasChildren && isOpen && /*#__PURE__*/React.createElement(
|
|
101
|
+
}, label)), hasChildren && isOpen && /*#__PURE__*/React.createElement("ul", {
|
|
102
|
+
className: styles.tree
|
|
103
|
+
}, children === null || children === void 0 ? void 0 : children.map(function (dataNode) {
|
|
124
104
|
return /*#__PURE__*/React.createElement(Node, _extends({
|
|
125
105
|
key: dataNode.id
|
|
126
106
|
}, dataNode));
|
|
127
107
|
})));
|
|
128
108
|
};
|
|
109
|
+
export var NodeRoot = function NodeRoot(_ref3) {
|
|
110
|
+
var id = _ref3.id,
|
|
111
|
+
icon = _ref3.icon,
|
|
112
|
+
label = _ref3.label,
|
|
113
|
+
_ref3$onClick = _ref3.onClick,
|
|
114
|
+
onClick = _ref3$onClick === void 0 ? function () {} : _ref3$onClick,
|
|
115
|
+
rest = _objectWithoutProperties(_ref3, _excluded2);
|
|
116
|
+
var onClickHandler = function onClickHandler(event) {
|
|
117
|
+
onClick(event, {
|
|
118
|
+
id: id,
|
|
119
|
+
icon: icon,
|
|
120
|
+
label: label
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
var onKeyDownHandler = function onKeyDownHandler(event) {
|
|
124
|
+
if (event.key === ' ') {
|
|
125
|
+
onClickHandler(event);
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
return /*#__PURE__*/React.createElement(Frame, _extends({}, rest, {
|
|
129
|
+
className: cn(styles.node, styles.nodeRoot)
|
|
130
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
131
|
+
className: styles.nodeContent
|
|
132
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
133
|
+
className: cn(styles.iconContainer.classNames.base, styles.iconContainer.classNames.variants.hasChildren["true"])
|
|
134
|
+
}, icon || /*#__PURE__*/React.createElement(NodeIcon, {
|
|
135
|
+
hasChildren: false,
|
|
136
|
+
isOpen: true
|
|
137
|
+
})), /*#__PURE__*/React.createElement("label", {
|
|
138
|
+
className: styles.label,
|
|
139
|
+
tabIndex: 0,
|
|
140
|
+
onClick: onClickHandler,
|
|
141
|
+
onKeyDown: onKeyDownHandler
|
|
142
|
+
}, label)));
|
|
143
|
+
};
|
|
129
144
|
export default Node;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import { globalStyle, style } from '@vanilla-extract/css';
|
|
8
|
+
import { contract } from '../themes/contract.css';
|
|
9
|
+
import { calc } from '@vanilla-extract/css-utils';
|
|
10
|
+
import { recipe } from '@vanilla-extract/recipes';
|
|
11
|
+
var base = {
|
|
12
|
+
listStyle: 'none',
|
|
13
|
+
margin: '0',
|
|
14
|
+
padding: '0'
|
|
15
|
+
};
|
|
16
|
+
export var tree = style(base);
|
|
17
|
+
globalStyle("".concat(tree, " ul"), _objectSpread(_objectSpread({}, base), {}, {
|
|
18
|
+
marginLeft: contract.space[6]
|
|
19
|
+
}));
|
|
20
|
+
export var node = style({
|
|
21
|
+
marginLeft: contract.space[12],
|
|
22
|
+
borderLeftWidth: 'thin',
|
|
23
|
+
borderLeftStyle: 'dotted',
|
|
24
|
+
borderLeftColor: contract.colors.borderDarkest,
|
|
25
|
+
position: 'relative',
|
|
26
|
+
selectors: {
|
|
27
|
+
'&:last-child': {
|
|
28
|
+
borderLeftColor: 'transparent'
|
|
29
|
+
},
|
|
30
|
+
'&:before': {
|
|
31
|
+
position: 'absolute',
|
|
32
|
+
left: 0,
|
|
33
|
+
width: contract.space[16],
|
|
34
|
+
height: contract.space[10],
|
|
35
|
+
verticalAlign: 'top',
|
|
36
|
+
borderBottomWidth: 'thin',
|
|
37
|
+
borderBottomStyle: 'dotted',
|
|
38
|
+
borderBottomColor: contract.colors.borderDarkest,
|
|
39
|
+
content: '""',
|
|
40
|
+
display: 'inline-block'
|
|
41
|
+
},
|
|
42
|
+
'&:last-child:before': {
|
|
43
|
+
borderLeftWidth: 'thin',
|
|
44
|
+
borderLeftStyle: 'dotted',
|
|
45
|
+
borderLeftColor: contract.colors.borderDarkest,
|
|
46
|
+
left: calc.negate(contract.space[1]),
|
|
47
|
+
width: contract.space[15]
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
export var nodeRoot = style({
|
|
52
|
+
padding: 0,
|
|
53
|
+
margin: 0,
|
|
54
|
+
borderLeft: 'unset',
|
|
55
|
+
selectors: {
|
|
56
|
+
'&:before': {
|
|
57
|
+
content: 'unset'
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
export var nodeContent = style({
|
|
62
|
+
display: 'flex',
|
|
63
|
+
alignItems: 'center',
|
|
64
|
+
position: 'relative'
|
|
65
|
+
});
|
|
66
|
+
export var label = style({
|
|
67
|
+
outline: 'none',
|
|
68
|
+
padding: contract.space[1],
|
|
69
|
+
selectors: {
|
|
70
|
+
'&:focus': {
|
|
71
|
+
borderWidth: contract.space[1],
|
|
72
|
+
borderStyle: 'dotted',
|
|
73
|
+
padding: contract.space[0]
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
export var folderStatus = style({
|
|
78
|
+
display: 'flex',
|
|
79
|
+
alignItems: 'center',
|
|
80
|
+
justifyContent: 'center',
|
|
81
|
+
minWidth: contract.space[10],
|
|
82
|
+
height: contract.space[10],
|
|
83
|
+
borderWidth: contract.space[1],
|
|
84
|
+
borderStyle: 'solid',
|
|
85
|
+
borderColor: contract.colors.borderDarkest,
|
|
86
|
+
backgroundColor: contract.colors.inputBackground,
|
|
87
|
+
fontSize: '11px',
|
|
88
|
+
marginLeft: calc.negate(contract.space[5]),
|
|
89
|
+
userSelect: 'none'
|
|
90
|
+
});
|
|
91
|
+
export var iconContainer = recipe({
|
|
92
|
+
base: {
|
|
93
|
+
display: 'flex',
|
|
94
|
+
alignItems: 'center',
|
|
95
|
+
justifyContent: 'center',
|
|
96
|
+
minWidth: contract.space[20],
|
|
97
|
+
minHeight: contract.space[20],
|
|
98
|
+
marginRight: contract.space[2]
|
|
99
|
+
},
|
|
100
|
+
variants: {
|
|
101
|
+
hasChildren: {
|
|
102
|
+
"true": {
|
|
103
|
+
marginLeft: contract.space[2]
|
|
104
|
+
},
|
|
105
|
+
"false": {
|
|
106
|
+
marginLeft: contract.space[6]
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
});
|
package/esm/Tree/Tree.js
CHANGED
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
var _excluded = ["data"];
|
|
1
|
+
var _excluded = ["data", "root"];
|
|
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
5
|
import React, { forwardRef } from 'react';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
componentId: "sc-1wiuvvx-0"
|
|
11
|
-
})(["\n padding: 0;\n"]);
|
|
12
|
-
var Tree = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6
|
+
import Node, { icons, NodeRoot } from './Node';
|
|
7
|
+
import { tree } from './Tree.css';
|
|
8
|
+
import { Frame } from '../Frame/Frame';
|
|
9
|
+
export var Tree = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
13
10
|
var data = _ref.data,
|
|
11
|
+
root = _ref.root,
|
|
14
12
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
15
|
-
return /*#__PURE__*/React.createElement(
|
|
13
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, root && /*#__PURE__*/React.createElement(NodeRoot, root), /*#__PURE__*/React.createElement(Frame, _extends({}, rest, {
|
|
14
|
+
className: tree,
|
|
15
|
+
as: "ul",
|
|
16
16
|
ref: ref
|
|
17
17
|
}), data.map(function (dataNode) {
|
|
18
18
|
return /*#__PURE__*/React.createElement(Node, _extends({
|
|
19
19
|
key: dataNode.id
|
|
20
20
|
}, dataNode));
|
|
21
|
-
}));
|
|
21
|
+
})));
|
|
22
22
|
});
|
|
23
23
|
Tree.defaultProps = {
|
|
24
24
|
data: []
|
|
25
25
|
};
|
|
26
|
-
Tree.icons = icons;
|
|
27
|
-
export default Tree;
|
|
26
|
+
Tree.icons = icons;
|
package/esm/Tree/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import Tree from './Tree';
|
|
1
|
+
import { Tree } from './Tree';
|
|
2
2
|
export default Tree;
|