@react95/core 8.0.0-alpha.0 → 8.0.0-alpha.10
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/README.md +18 -42
- package/cjs/Alert/Alert.cjs +43 -0
- package/cjs/Alert/Alert.css.cjs +9 -0
- package/cjs/Alert/Alert.css.ts.vanilla.css +15 -0
- package/cjs/Alert/assets/chord.mp3.cjs +3 -0
- package/cjs/Avatar/Avatar.cjs +26 -0
- package/cjs/Avatar/Avatar.css.cjs +8 -0
- package/cjs/Avatar/Avatar.css.ts.vanilla.css +24 -0
- package/cjs/Button/Button.cjs +20 -0
- package/cjs/Button/Button.css.cjs +5 -0
- package/cjs/Button/Button.css.ts.vanilla.css +31 -0
- package/cjs/Checkbox/Checkbox.cjs +17 -0
- package/cjs/Checkbox/Checkbox.css.cjs +11 -0
- package/cjs/Checkbox/Checkbox.css.ts.vanilla.css +59 -0
- package/cjs/Cursor/Cursor.css.cjs +5 -0
- package/cjs/Cursor/Cursor.css.ts.vanilla.css +96 -0
- package/cjs/Dropdown/Dropdown.cjs +20 -0
- package/cjs/Dropdown/Dropdown.css.cjs +7 -0
- package/cjs/Dropdown/Dropdown.css.ts.vanilla.css +50 -0
- package/cjs/Fieldset/Fieldset.cjs +9 -0
- package/cjs/Fieldset/Fieldset.css.cjs +7 -0
- package/cjs/Fieldset/Fieldset.css.ts.vanilla.css +19 -0
- package/cjs/Frame/Frame.cjs +23 -0
- package/cjs/Frame/Frame.css.cjs +48 -0
- package/cjs/Frame/Frame.css.ts.vanilla.css +399 -0
- package/cjs/GlobalStyle/GlobalStyle.css.cjs +3 -0
- package/cjs/GlobalStyle/GlobalStyle.css.ts.vanilla.css +122 -0
- package/cjs/GlobalStyle.cjs +4 -0
- package/cjs/Input/Input.cjs +26 -0
- package/cjs/Input/Input.css.cjs +5 -0
- package/cjs/Input/Input.css.ts.vanilla.css +21 -0
- package/cjs/List/List.cjs +16 -0
- package/cjs/List/List.css.cjs +9 -0
- package/cjs/List/List.css.ts.vanilla.css +66 -0
- package/cjs/List/ListDivider.cjs +19 -0
- package/cjs/List/ListItem.cjs +12 -0
- package/cjs/Modal/Modal.cjs +151 -0
- package/cjs/Modal/Modal.css.cjs +14 -0
- package/cjs/Modal/Modal.css.ts.vanilla.css +55 -0
- package/cjs/Modal/ModalContext.cjs +16 -0
- package/cjs/Modal/ModalProvider.cjs +71 -0
- package/cjs/Modal/close.svg.cjs +3 -0
- package/cjs/Modal/help.svg.cjs +3 -0
- package/cjs/ProgressBar/ProgressBar.cjs +20 -0
- package/cjs/ProgressBar/ProgressBar.css.cjs +11 -0
- package/cjs/ProgressBar/ProgressBar.css.ts.vanilla.css +32 -0
- package/cjs/RadioButton/RadioButton.cjs +17 -0
- package/cjs/RadioButton/RadioButton.css.cjs +11 -0
- package/cjs/RadioButton/RadioButton.css.ts.vanilla.css +44 -0
- package/cjs/Range/Range.cjs +36 -0
- package/cjs/Range/Range.css.cjs +5 -0
- package/cjs/Range/Range.css.ts.vanilla.css +84 -0
- package/cjs/Tabs/Tab.cjs +18 -0
- package/cjs/Tabs/Tabs.cjs +50 -0
- package/cjs/Tabs/Tabs.css.cjs +10 -0
- package/cjs/Tabs/Tabs.css.ts.vanilla.css +54 -0
- package/cjs/TaskBar/Clock.cjs +34 -0
- package/cjs/TaskBar/TaskBar.cjs +74 -0
- package/cjs/TaskBar/TaskBar.css.cjs +12 -0
- package/cjs/TaskBar/TaskBar.css.ts.vanilla.css +52 -0
- package/cjs/TaskBar/WindowButton.cjs +17 -0
- package/cjs/TextArea/TextArea.cjs +26 -0
- package/cjs/TitleBar/TitleBar.cjs +45 -0
- package/cjs/TitleBar/TitleBar.css.cjs +12 -0
- package/cjs/TitleBar/TitleBar.css.ts.vanilla.css +62 -0
- package/cjs/Tooltip/Tooltip.cjs +77 -0
- package/cjs/Tooltip/Tooltip.css.cjs +7 -0
- package/cjs/Tooltip/Tooltip.css.ts.vanilla.css +25 -0
- package/cjs/Tree/Node.cjs +139 -0
- package/cjs/Tree/Tree.cjs +16 -0
- package/cjs/Tree/Tree.css.cjs +18 -0
- package/cjs/Tree/Tree.css.ts.vanilla.css +90 -0
- package/cjs/Video/Video.cjs +223 -0
- package/cjs/Video/Video.css.cjs +22 -0
- package/cjs/Video/Video.css.ts.vanilla.css +83 -0
- package/cjs/Video/buttons/Fullscreen.cjs +39 -0
- package/cjs/Video/buttons/Pause.cjs +33 -0
- package/cjs/Video/buttons/Play.cjs +33 -0
- package/cjs/Video/buttons/Stop.cjs +32 -0
- package/cjs/index.cjs +50 -0
- package/cjs/themes/azureOrange.css.cjs +3 -0
- package/cjs/themes/azureOrange.css.ts.vanilla.css +58 -0
- package/cjs/themes/bee.css.cjs +3 -0
- package/cjs/themes/bee.css.ts.vanilla.css +58 -0
- package/cjs/themes/blackAndWhite.css.cjs +3 -0
- package/cjs/themes/blackAndWhite.css.ts.vanilla.css +58 -0
- package/cjs/themes/brick.css.cjs +3 -0
- package/cjs/themes/brick.css.ts.vanilla.css +58 -0
- package/cjs/themes/candy.css.cjs +3 -0
- package/cjs/themes/candy.css.ts.vanilla.css +58 -0
- package/cjs/themes/coldGray.css.cjs +3 -0
- package/cjs/themes/coldGray.css.ts.vanilla.css +58 -0
- package/cjs/themes/counterStrike.css.cjs +3 -0
- package/cjs/themes/counterStrike.css.ts.vanilla.css +58 -0
- package/cjs/themes/eggplant.css.cjs +3 -0
- package/cjs/themes/eggplant.css.ts.vanilla.css +58 -0
- package/cjs/themes/highContrast.css.cjs +3 -0
- package/cjs/themes/highContrast.css.ts.vanilla.css +58 -0
- package/cjs/themes/lilac.css.cjs +3 -0
- package/cjs/themes/lilac.css.ts.vanilla.css +58 -0
- package/cjs/themes/lilacRoseDark.css.cjs +3 -0
- package/cjs/themes/lilacRoseDark.css.ts.vanilla.css +58 -0
- package/cjs/themes/maple.css.cjs +3 -0
- package/cjs/themes/maple.css.ts.vanilla.css +58 -0
- package/cjs/themes/marine.css.cjs +3 -0
- package/cjs/themes/marine.css.ts.vanilla.css +58 -0
- package/cjs/themes/matrix.css.cjs +3 -0
- package/cjs/themes/matrix.css.ts.vanilla.css +58 -0
- package/cjs/themes/millenium.css.cjs +3 -0
- package/cjs/themes/millenium.css.ts.vanilla.css +58 -0
- package/cjs/themes/modernDark.css.cjs +3 -0
- package/cjs/themes/modernDark.css.ts.vanilla.css +58 -0
- package/cjs/themes/molecule.css.cjs +3 -0
- package/cjs/themes/molecule.css.ts.vanilla.css +58 -0
- package/cjs/themes/ninjaTurtles.css.cjs +3 -0
- package/cjs/themes/ninjaTurtles.css.ts.vanilla.css +58 -0
- package/cjs/themes/olive.css.cjs +3 -0
- package/cjs/themes/olive.css.ts.vanilla.css +58 -0
- package/cjs/themes/pamelaAnderson.css.cjs +3 -0
- package/cjs/themes/pamelaAnderson.css.ts.vanilla.css +58 -0
- package/cjs/themes/plum.css.cjs +3 -0
- package/cjs/themes/plum.css.ts.vanilla.css +58 -0
- package/cjs/themes/rainyDay.css.cjs +3 -0
- package/cjs/themes/rainyDay.css.ts.vanilla.css +58 -0
- package/cjs/themes/rose.css.cjs +3 -0
- package/cjs/themes/rose.css.ts.vanilla.css +58 -0
- package/cjs/themes/slate.css.cjs +3 -0
- package/cjs/themes/slate.css.ts.vanilla.css +58 -0
- package/cjs/themes/spruce.css.cjs +3 -0
- package/cjs/themes/spruce.css.ts.vanilla.css +58 -0
- package/cjs/themes/storm.css.cjs +3 -0
- package/cjs/themes/storm.css.ts.vanilla.css +58 -0
- package/cjs/themes/theSixtiesUSA.css.cjs +3 -0
- package/cjs/themes/theSixtiesUSA.css.ts.vanilla.css +58 -0
- package/cjs/themes/tokyoDark.css.cjs +3 -0
- package/cjs/themes/tokyoDark.css.ts.vanilla.css +58 -0
- package/cjs/themes/tooSexy.css.cjs +3 -0
- package/cjs/themes/tooSexy.css.ts.vanilla.css +58 -0
- package/cjs/themes/travel.css.cjs +3 -0
- package/cjs/themes/travel.css.ts.vanilla.css +58 -0
- package/cjs/themes/vaporTeal.css.cjs +3 -0
- package/cjs/themes/vaporTeal.css.ts.vanilla.css +58 -0
- package/cjs/themes/vermillion.css.cjs +3 -0
- package/cjs/themes/vermillion.css.ts.vanilla.css +58 -0
- package/cjs/themes/violetDark.css.cjs +3 -0
- package/cjs/themes/violetDark.css.ts.vanilla.css +58 -0
- package/cjs/themes/water.css.cjs +3 -0
- package/cjs/themes/water.css.ts.vanilla.css +58 -0
- package/cjs/themes/win95.css.cjs +3 -0
- package/cjs/themes/win95.css.ts.vanilla.css +58 -0
- package/cjs/themes.cjs +72 -0
- package/esm/Alert/Alert.css.mjs +9 -0
- package/esm/Alert/Alert.css.ts.vanilla.css +15 -0
- package/esm/Alert/Alert.mjs +43 -0
- package/esm/Alert/assets/chord.mp3.mjs +4 -0
- package/esm/Avatar/Avatar.css.mjs +8 -0
- package/esm/Avatar/Avatar.css.ts.vanilla.css +24 -0
- package/esm/Avatar/Avatar.mjs +9 -0
- package/esm/Button/Button.css.mjs +5 -0
- package/esm/Button/Button.css.ts.vanilla.css +31 -0
- package/esm/Button/Button.mjs +20 -0
- package/esm/Checkbox/Checkbox.css.mjs +11 -0
- package/esm/Checkbox/Checkbox.css.ts.vanilla.css +59 -0
- package/esm/Checkbox/Checkbox.mjs +17 -0
- package/esm/Cursor/Cursor.css.mjs +5 -0
- package/esm/Cursor/Cursor.css.ts.vanilla.css +96 -0
- package/esm/Dropdown/Dropdown.css.mjs +7 -0
- package/esm/Dropdown/Dropdown.css.ts.vanilla.css +50 -0
- package/esm/Dropdown/Dropdown.mjs +20 -0
- package/esm/Fieldset/Fieldset.css.mjs +7 -0
- package/esm/Fieldset/Fieldset.css.ts.vanilla.css +19 -0
- package/esm/Fieldset/Fieldset.mjs +9 -0
- package/esm/Frame/Frame.css.mjs +48 -0
- package/esm/Frame/Frame.css.ts.vanilla.css +399 -0
- package/esm/Frame/Frame.mjs +23 -0
- package/esm/GlobalStyle/GlobalStyle.css.mjs +2 -0
- package/esm/GlobalStyle/GlobalStyle.css.ts.vanilla.css +122 -0
- package/esm/GlobalStyle.mjs +4 -0
- package/esm/Input/Input.css.mjs +5 -0
- package/esm/Input/Input.css.ts.vanilla.css +21 -0
- package/esm/Input/Input.mjs +9 -0
- package/esm/List/List.css.mjs +9 -0
- package/esm/List/List.css.ts.vanilla.css +66 -0
- package/esm/List/List.mjs +16 -0
- package/esm/List/ListDivider.mjs +19 -0
- package/esm/List/ListItem.mjs +12 -0
- package/esm/Modal/Modal.css.mjs +14 -0
- package/esm/Modal/Modal.css.ts.vanilla.css +55 -0
- package/esm/Modal/Modal.mjs +134 -0
- package/esm/Modal/ModalContext.mjs +16 -0
- package/esm/Modal/ModalProvider.mjs +54 -0
- package/esm/Modal/close.svg.mjs +4 -0
- package/esm/Modal/help.svg.mjs +4 -0
- package/esm/ProgressBar/ProgressBar.css.mjs +11 -0
- package/esm/ProgressBar/ProgressBar.css.ts.vanilla.css +32 -0
- package/esm/ProgressBar/ProgressBar.mjs +20 -0
- package/esm/RadioButton/RadioButton.css.mjs +11 -0
- package/esm/RadioButton/RadioButton.css.ts.vanilla.css +44 -0
- package/esm/RadioButton/RadioButton.mjs +17 -0
- package/esm/Range/Range.css.mjs +5 -0
- package/esm/Range/Range.css.ts.vanilla.css +84 -0
- package/esm/Range/Range.mjs +19 -0
- package/esm/Tabs/Tab.mjs +18 -0
- package/esm/Tabs/Tabs.css.mjs +10 -0
- package/esm/Tabs/Tabs.css.ts.vanilla.css +54 -0
- package/esm/Tabs/Tabs.mjs +50 -0
- package/esm/TaskBar/Clock.mjs +34 -0
- package/esm/TaskBar/TaskBar.css.mjs +12 -0
- package/esm/TaskBar/TaskBar.css.ts.vanilla.css +52 -0
- package/esm/TaskBar/TaskBar.mjs +74 -0
- package/esm/TaskBar/WindowButton.mjs +17 -0
- package/esm/TextArea/TextArea.mjs +9 -0
- package/esm/TitleBar/TitleBar.css.mjs +12 -0
- package/esm/TitleBar/TitleBar.css.ts.vanilla.css +62 -0
- package/esm/TitleBar/TitleBar.mjs +45 -0
- package/esm/Tooltip/Tooltip.css.mjs +7 -0
- package/esm/Tooltip/Tooltip.css.ts.vanilla.css +25 -0
- package/esm/Tooltip/Tooltip.mjs +60 -0
- package/esm/Tree/Node.mjs +122 -0
- package/esm/Tree/Tree.css.mjs +18 -0
- package/esm/Tree/Tree.css.ts.vanilla.css +90 -0
- package/esm/Tree/Tree.mjs +16 -0
- package/esm/Video/Video.css.mjs +22 -0
- package/esm/Video/Video.css.ts.vanilla.css +83 -0
- package/esm/Video/Video.mjs +206 -0
- package/esm/Video/buttons/Fullscreen.mjs +23 -0
- package/esm/Video/buttons/Pause.mjs +17 -0
- package/esm/Video/buttons/Play.mjs +17 -0
- package/esm/Video/buttons/Stop.mjs +16 -0
- package/esm/index.mjs +50 -0
- package/esm/themes/azureOrange.css.mjs +2 -0
- package/esm/themes/azureOrange.css.ts.vanilla.css +58 -0
- package/esm/themes/bee.css.mjs +2 -0
- package/esm/themes/bee.css.ts.vanilla.css +58 -0
- package/esm/themes/blackAndWhite.css.mjs +2 -0
- package/esm/themes/blackAndWhite.css.ts.vanilla.css +58 -0
- package/esm/themes/brick.css.mjs +2 -0
- package/esm/themes/brick.css.ts.vanilla.css +58 -0
- package/esm/themes/candy.css.mjs +2 -0
- package/esm/themes/candy.css.ts.vanilla.css +58 -0
- package/esm/themes/coldGray.css.mjs +2 -0
- package/esm/themes/coldGray.css.ts.vanilla.css +58 -0
- package/esm/themes/counterStrike.css.mjs +2 -0
- package/esm/themes/counterStrike.css.ts.vanilla.css +58 -0
- package/esm/themes/eggplant.css.mjs +2 -0
- package/esm/themes/eggplant.css.ts.vanilla.css +58 -0
- package/esm/themes/highContrast.css.mjs +2 -0
- package/esm/themes/highContrast.css.ts.vanilla.css +58 -0
- package/esm/themes/lilac.css.mjs +2 -0
- package/esm/themes/lilac.css.ts.vanilla.css +58 -0
- package/esm/themes/lilacRoseDark.css.mjs +2 -0
- package/esm/themes/lilacRoseDark.css.ts.vanilla.css +58 -0
- package/esm/themes/maple.css.mjs +2 -0
- package/esm/themes/maple.css.ts.vanilla.css +58 -0
- package/esm/themes/marine.css.mjs +2 -0
- package/esm/themes/marine.css.ts.vanilla.css +58 -0
- package/esm/themes/matrix.css.mjs +2 -0
- package/esm/themes/matrix.css.ts.vanilla.css +58 -0
- package/esm/themes/millenium.css.mjs +2 -0
- package/esm/themes/millenium.css.ts.vanilla.css +58 -0
- package/esm/themes/modernDark.css.mjs +2 -0
- package/esm/themes/modernDark.css.ts.vanilla.css +58 -0
- package/esm/themes/molecule.css.mjs +2 -0
- package/esm/themes/molecule.css.ts.vanilla.css +58 -0
- package/esm/themes/ninjaTurtles.css.mjs +2 -0
- package/esm/themes/ninjaTurtles.css.ts.vanilla.css +58 -0
- package/esm/themes/olive.css.mjs +2 -0
- package/esm/themes/olive.css.ts.vanilla.css +58 -0
- package/esm/themes/pamelaAnderson.css.mjs +2 -0
- package/esm/themes/pamelaAnderson.css.ts.vanilla.css +58 -0
- package/esm/themes/plum.css.mjs +2 -0
- package/esm/themes/plum.css.ts.vanilla.css +58 -0
- package/esm/themes/rainyDay.css.mjs +2 -0
- package/esm/themes/rainyDay.css.ts.vanilla.css +58 -0
- package/esm/themes/rose.css.mjs +2 -0
- package/esm/themes/rose.css.ts.vanilla.css +58 -0
- package/esm/themes/slate.css.mjs +2 -0
- package/esm/themes/slate.css.ts.vanilla.css +58 -0
- package/esm/themes/spruce.css.mjs +2 -0
- package/esm/themes/spruce.css.ts.vanilla.css +58 -0
- package/esm/themes/storm.css.mjs +2 -0
- package/esm/themes/storm.css.ts.vanilla.css +58 -0
- package/esm/themes/theSixtiesUSA.css.mjs +2 -0
- package/esm/themes/theSixtiesUSA.css.ts.vanilla.css +58 -0
- package/esm/themes/tokyoDark.css.mjs +2 -0
- package/esm/themes/tokyoDark.css.ts.vanilla.css +58 -0
- package/esm/themes/tooSexy.css.mjs +2 -0
- package/esm/themes/tooSexy.css.ts.vanilla.css +58 -0
- package/esm/themes/travel.css.mjs +2 -0
- package/esm/themes/travel.css.ts.vanilla.css +58 -0
- package/esm/themes/vaporTeal.css.mjs +2 -0
- package/esm/themes/vaporTeal.css.ts.vanilla.css +58 -0
- package/esm/themes/vermillion.css.mjs +2 -0
- package/esm/themes/vermillion.css.ts.vanilla.css +58 -0
- package/esm/themes/violetDark.css.mjs +2 -0
- package/esm/themes/violetDark.css.ts.vanilla.css +58 -0
- package/esm/themes/water.css.mjs +2 -0
- package/esm/themes/water.css.ts.vanilla.css +58 -0
- package/esm/themes/win95.css.mjs +2 -0
- package/esm/themes/win95.css.ts.vanilla.css +58 -0
- package/esm/themes.mjs +72 -0
- package/package.json +32 -5
- package/types/Frame/Frame.css.d.ts +2296 -0
- package/types/Frame/Frame.d.ts +2251 -0
- package/types/Frame/props.d.ts +977 -0
- package/types/Modal/Modal.d.ts +30 -0
- package/types/Modal/ModalContext.d.ts +15 -0
- package/types/Modal/ModalProvider.d.ts +3 -0
- package/types/TaskBar/TaskBar.d.ts +6 -0
- package/types/Tree/Node.d.ts +22 -0
- package/types/index.d.ts +25 -0
- package/types/themes/all.d.ts +36 -0
- package/types/themes/azureOrange.css.d.ts +1 -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 +116 -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/@types/Alert/index.d.ts +0 -2
- package/@types/Avatar/index.d.ts +0 -2
- package/@types/Button/index.d.ts +0 -2
- package/@types/Checkbox/index.d.ts +0 -2
- package/@types/Cursor/index.d.ts +0 -2
- package/@types/Dropdown/index.d.ts +0 -2
- package/@types/Fieldset/index.d.ts +0 -2
- package/@types/Frame/Frame.d.ts +0 -2251
- package/@types/Frame/index.d.ts +0 -2
- package/@types/Frame/props.d.ts +0 -977
- package/@types/Frame/sprinkles.css.d.ts +0 -2271
- package/@types/GlobalStyle/utils.d.ts +0 -15
- package/@types/Input/index.d.ts +0 -2
- package/@types/List/index.d.ts +0 -2
- package/@types/Modal/Modal.d.ts +0 -30
- package/@types/Modal/ModalContext.d.ts +0 -16
- package/@types/Modal/ModalProvider.d.ts +0 -4
- package/@types/Modal/index.d.ts +0 -4
- package/@types/ProgressBar/index.d.ts +0 -2
- package/@types/RadioButton/index.d.ts +0 -2
- package/@types/Range/index.d.ts +0 -2
- package/@types/Tabs/index.d.ts +0 -3
- package/@types/TaskBar/TaskBar.d.ts +0 -6
- package/@types/TaskBar/index.d.ts +0 -2
- package/@types/TextArea/index.d.ts +0 -2
- package/@types/TitleBar/index.d.ts +0 -2
- package/@types/Tooltip/index.d.ts +0 -2
- package/@types/Tree/Node.d.ts +0 -23
- package/@types/Tree/index.d.ts +0 -2
- package/@types/Video/index.d.ts +0 -2
- package/@types/index.d.ts +0 -23
- package/@types/shared/test/utils.d.ts +0 -4
- package/@types/themes/all.d.ts +0 -36
- package/@types/themes/azureOrange.css.d.ts +0 -1
- package/@types/themes/bee.css.d.ts +0 -1
- package/@types/themes/blackAndWhite.css.d.ts +0 -1
- package/@types/themes/brick.css.d.ts +0 -1
- package/@types/themes/candy.css.d.ts +0 -1
- package/@types/themes/coldGray.css.d.ts +0 -1
- package/@types/themes/contract.css.d.ts +0 -58
- package/@types/themes/counterStrike.css.d.ts +0 -1
- package/@types/themes/eggplant.css.d.ts +0 -1
- package/@types/themes/highContrast.css.d.ts +0 -1
- package/@types/themes/lilac.css.d.ts +0 -1
- package/@types/themes/lilacRoseDark.css.d.ts +0 -1
- package/@types/themes/maple.css.d.ts +0 -1
- package/@types/themes/marine.css.d.ts +0 -1
- package/@types/themes/matrix.css.d.ts +0 -1
- package/@types/themes/millenium.css.d.ts +0 -1
- package/@types/themes/modernDark.css.d.ts +0 -1
- package/@types/themes/molecule.css.d.ts +0 -1
- package/@types/themes/ninjaTurtles.css.d.ts +0 -1
- package/@types/themes/olive.css.d.ts +0 -1
- package/@types/themes/pamelaAnderson.css.d.ts +0 -1
- package/@types/themes/plum.css.d.ts +0 -1
- package/@types/themes/rainyDay.css.d.ts +0 -1
- package/@types/themes/rose.css.d.ts +0 -1
- package/@types/themes/slate.css.d.ts +0 -1
- package/@types/themes/spruce.css.d.ts +0 -1
- package/@types/themes/storm.css.d.ts +0 -1
- package/@types/themes/theSixtiesUSA.css.d.ts +0 -1
- package/@types/themes/tokyoDark.css.d.ts +0 -1
- package/@types/themes/tooSexy.css.d.ts +0 -1
- package/@types/themes/travel.css.d.ts +0 -1
- package/@types/themes/vaporTeal.css.d.ts +0 -1
- package/@types/themes/vermillion.css.d.ts +0 -1
- package/@types/themes/violetDark.css.d.ts +0 -1
- package/@types/themes/water.css.d.ts +0 -1
- package/@types/themes/win95.css.d.ts +0 -1
- package/cjs/Alert/Alert.css.js +0 -23
- package/cjs/Alert/Alert.js +0 -89
- package/cjs/Alert/assets/chord.mp3 +0 -0
- package/cjs/Alert/index.js +0 -8
- package/cjs/Avatar/Avatar.css.js +0 -39
- package/cjs/Avatar/Avatar.js +0 -40
- package/cjs/Avatar/index.js +0 -8
- package/cjs/Button/Button.css.js +0 -35
- package/cjs/Button/Button.js +0 -23
- package/cjs/Button/index.js +0 -8
- package/cjs/Checkbox/Checkbox.css.js +0 -73
- package/cjs/Checkbox/Checkbox.js +0 -37
- package/cjs/Checkbox/imgs/check-disabled.svg +0 -1
- package/cjs/Checkbox/imgs/check.svg +0 -1
- package/cjs/Checkbox/index.js +0 -8
- package/cjs/Cursor/Cursor.css.js +0 -137
- package/cjs/Cursor/cursors/AngleUpLeft.png +0 -0
- package/cjs/Cursor/cursors/AngleUpRight.png +0 -0
- package/cjs/Cursor/cursors/AppStarting.png +0 -0
- package/cjs/Cursor/cursors/Arrow.png +0 -0
- package/cjs/Cursor/cursors/ArrowRight.png +0 -0
- package/cjs/Cursor/cursors/Circle.png +0 -0
- package/cjs/Cursor/cursors/ColRezise.png +0 -0
- package/cjs/Cursor/cursors/Copy.png +0 -0
- package/cjs/Cursor/cursors/Cross.png +0 -0
- package/cjs/Cursor/cursors/Crosshair.png +0 -0
- package/cjs/Cursor/cursors/DND-ask.png +0 -0
- package/cjs/Cursor/cursors/DND-copy.png +0 -0
- package/cjs/Cursor/cursors/DND-link.png +0 -0
- package/cjs/Cursor/cursors/DownArrow.png +0 -0
- package/cjs/Cursor/cursors/DownLeftArrow.png +0 -0
- package/cjs/Cursor/cursors/DownRightArrow.png +0 -0
- package/cjs/Cursor/cursors/Hand.png +0 -0
- package/cjs/Cursor/cursors/HandPointer.png +0 -0
- package/cjs/Cursor/cursors/Handsqueezed.png +0 -0
- package/cjs/Cursor/cursors/Handwriting.png +0 -0
- package/cjs/Cursor/cursors/Help.png +0 -0
- package/cjs/Cursor/cursors/LeftArrow.png +0 -0
- package/cjs/Cursor/cursors/LeftRight.png +0 -0
- package/cjs/Cursor/cursors/LeftRightArrow.png +0 -0
- package/cjs/Cursor/cursors/Link.png +0 -0
- package/cjs/Cursor/cursors/Move.png +0 -0
- package/cjs/Cursor/cursors/NO.png +0 -0
- package/cjs/Cursor/cursors/RightArrow.png +0 -0
- package/cjs/Cursor/cursors/RowResize.png +0 -0
- package/cjs/Cursor/cursors/SizeAll.png +0 -0
- package/cjs/Cursor/cursors/Text.png +0 -0
- package/cjs/Cursor/cursors/UpArrow.png +0 -0
- package/cjs/Cursor/cursors/UpDownArrow.png +0 -0
- package/cjs/Cursor/cursors/UpLeftArrow.png +0 -0
- package/cjs/Cursor/cursors/UpRightArrow.png +0 -0
- package/cjs/Cursor/cursors/VText.png +0 -0
- package/cjs/Cursor/cursors/Wait.png +0 -0
- package/cjs/Cursor/cursors/X.png +0 -0
- package/cjs/Cursor/cursors/ZoomIn.png +0 -0
- package/cjs/Cursor/cursors/ZoomOut.png +0 -0
- package/cjs/Cursor/index.js +0 -8
- package/cjs/Dropdown/Dropdown.css.js +0 -56
- package/cjs/Dropdown/Dropdown.js +0 -41
- package/cjs/Dropdown/imgs/downcaret.png +0 -0
- package/cjs/Dropdown/imgs/downcaret.svg +0 -1
- package/cjs/Dropdown/index.js +0 -8
- package/cjs/Fieldset/Fieldset.css.js +0 -27
- package/cjs/Fieldset/Fieldset.js +0 -29
- package/cjs/Fieldset/index.js +0 -8
- package/cjs/Frame/Frame.js +0 -39
- package/cjs/Frame/index.js +0 -8
- package/cjs/Frame/props.js +0 -162
- package/cjs/Frame/sprinkles.css.js +0 -73
- package/cjs/GlobalStyle/GlobalStyle.css.js +0 -130
- package/cjs/GlobalStyle/font/MS-Sans-Serif-8pt-bold.ttf +0 -0
- package/cjs/GlobalStyle/font/MS-Sans-Serif-8pt.ttf +0 -0
- package/cjs/GlobalStyle/font/React95Video-Numbers.eot +0 -0
- package/cjs/GlobalStyle/font/React95Video-Numbers.ttf +0 -0
- package/cjs/GlobalStyle/font/React95Video-Numbers.woff +0 -0
- package/cjs/GlobalStyle/font/React95Video-Numbers.woff2 +0 -0
- package/cjs/GlobalStyle/imgs/downcaret.svg +0 -1
- package/cjs/GlobalStyle/imgs/dropdown.png +0 -0
- package/cjs/GlobalStyle/imgs/leftcaret.svg +0 -1
- package/cjs/GlobalStyle/imgs/rightcaret.svg +0 -1
- package/cjs/GlobalStyle/imgs/upcaret.svg +0 -1
- package/cjs/GlobalStyle/utils.js +0 -23
- package/cjs/Input/Input.css.js +0 -30
- package/cjs/Input/Input.js +0 -20
- package/cjs/Input/index.js +0 -8
- package/cjs/List/List.css.js +0 -79
- package/cjs/List/List.js +0 -25
- package/cjs/List/ListDivider.js +0 -20
- package/cjs/List/ListItem.js +0 -35
- package/cjs/List/index.js +0 -8
- package/cjs/Modal/Modal.css.js +0 -76
- package/cjs/Modal/Modal.js +0 -175
- package/cjs/Modal/ModalContext.js +0 -18
- package/cjs/Modal/ModalProvider.js +0 -92
- package/cjs/Modal/close.svg +0 -1
- package/cjs/Modal/help.svg +0 -1
- package/cjs/Modal/index.js +0 -27
- package/cjs/Modal/maximize.svg +0 -1
- package/cjs/Modal/minimize.svg +0 -1
- package/cjs/Modal/restore.svg +0 -1
- package/cjs/ProgressBar/ProgressBar.css.js +0 -40
- package/cjs/ProgressBar/ProgressBar.js +0 -39
- package/cjs/ProgressBar/index.js +0 -8
- package/cjs/RadioButton/RadioButton.css.js +0 -55
- package/cjs/RadioButton/RadioButton.js +0 -32
- package/cjs/RadioButton/imgs/radio-checked-disabled.png +0 -0
- package/cjs/RadioButton/imgs/radio-checked.png +0 -0
- package/cjs/RadioButton/imgs/radio-unchecked-disabled.png +0 -0
- package/cjs/RadioButton/imgs/radio-unchecked.png +0 -0
- package/cjs/RadioButton/index.js +0 -8
- package/cjs/RadioButton/radioButtonStates.js +0 -34
- package/cjs/Range/Range.css.js +0 -59
- package/cjs/Range/Range.js +0 -23
- package/cjs/Range/index.js +0 -8
- package/cjs/Tabs/Tab.js +0 -29
- package/cjs/Tabs/Tabs.css.js +0 -56
- package/cjs/Tabs/Tabs.js +0 -65
- package/cjs/Tabs/index.js +0 -19
- package/cjs/TaskBar/Clock.js +0 -50
- package/cjs/TaskBar/TaskBar.css.js +0 -82
- package/cjs/TaskBar/TaskBar.js +0 -93
- package/cjs/TaskBar/WindowButton.js +0 -34
- package/cjs/TaskBar/index.js +0 -8
- package/cjs/TextArea/TextArea.js +0 -20
- package/cjs/TextArea/index.js +0 -8
- package/cjs/TitleBar/TitleBar.css.js +0 -78
- package/cjs/TitleBar/TitleBar.js +0 -53
- package/cjs/TitleBar/index.js +0 -8
- package/cjs/Tooltip/Tooltip.css.js +0 -31
- package/cjs/Tooltip/Tooltip.js +0 -65
- package/cjs/Tooltip/index.js +0 -8
- package/cjs/Tree/Node.js +0 -154
- package/cjs/Tree/Tree.css.js +0 -116
- package/cjs/Tree/Tree.js +0 -35
- package/cjs/Tree/index.js +0 -8
- package/cjs/Video/Video.css.js +0 -106
- package/cjs/Video/Video.js +0 -247
- package/cjs/Video/buttons/Fullscreen.js +0 -26
- package/cjs/Video/buttons/Pause.js +0 -23
- package/cjs/Video/buttons/Play.js +0 -23
- package/cjs/Video/buttons/Stop.js +0 -22
- package/cjs/Video/buttons/index.js +0 -34
- package/cjs/Video/index.js +0 -8
- package/cjs/index.js +0 -171
- package/cjs/shared/test/utils.js +0 -74
- package/cjs/themes/all.js +0 -250
- package/cjs/themes/azureOrange.css.js +0 -42
- package/cjs/themes/baseTheme.css.js +0 -69
- package/cjs/themes/bee.css.js +0 -42
- package/cjs/themes/blackAndWhite.css.js +0 -42
- package/cjs/themes/brick.css.js +0 -42
- package/cjs/themes/candy.css.js +0 -42
- package/cjs/themes/coldGray.css.js +0 -42
- package/cjs/themes/contract.css.js +0 -21
- package/cjs/themes/counterStrike.css.js +0 -42
- package/cjs/themes/eggplant.css.js +0 -42
- package/cjs/themes/highContrast.css.js +0 -42
- package/cjs/themes/lilac.css.js +0 -42
- package/cjs/themes/lilacRoseDark.css.js +0 -42
- package/cjs/themes/maple.css.js +0 -42
- package/cjs/themes/marine.css.js +0 -42
- package/cjs/themes/matrix.css.js +0 -42
- package/cjs/themes/millenium.css.js +0 -42
- package/cjs/themes/modernDark.css.js +0 -42
- package/cjs/themes/molecule.css.js +0 -42
- package/cjs/themes/ninjaTurtles.css.js +0 -42
- package/cjs/themes/olive.css.js +0 -42
- package/cjs/themes/pamelaAnderson.css.js +0 -42
- package/cjs/themes/plum.css.js +0 -42
- package/cjs/themes/rainyDay.css.js +0 -42
- package/cjs/themes/rose.css.js +0 -42
- package/cjs/themes/slate.css.js +0 -42
- package/cjs/themes/spruce.css.js +0 -42
- package/cjs/themes/storm.css.js +0 -42
- package/cjs/themes/theSixtiesUSA.css.js +0 -42
- package/cjs/themes/tokyoDark.css.js +0 -42
- package/cjs/themes/tooSexy.css.js +0 -42
- package/cjs/themes/travel.css.js +0 -42
- package/cjs/themes/vaporTeal.css.js +0 -42
- package/cjs/themes/vermillion.css.js +0 -42
- package/cjs/themes/violetDark.css.js +0 -42
- package/cjs/themes/water.css.js +0 -42
- package/cjs/themes/win95.css.js +0 -42
- package/esm/Alert/Alert.css.js +0 -17
- package/esm/Alert/Alert.js +0 -80
- package/esm/Alert/assets/chord.mp3 +0 -0
- package/esm/Alert/index.js +0 -2
- package/esm/Avatar/Avatar.css.js +0 -33
- package/esm/Avatar/Avatar.js +0 -30
- package/esm/Avatar/index.js +0 -2
- package/esm/Button/Button.css.js +0 -29
- package/esm/Button/Button.js +0 -13
- package/esm/Button/index.js +0 -2
- package/esm/Checkbox/Checkbox.css.js +0 -66
- package/esm/Checkbox/Checkbox.js +0 -28
- package/esm/Checkbox/imgs/check-disabled.svg +0 -1
- package/esm/Checkbox/imgs/check.svg +0 -1
- package/esm/Checkbox/index.js +0 -2
- package/esm/Cursor/Cursor.css.js +0 -130
- package/esm/Cursor/cursors/AngleUpLeft.png +0 -0
- package/esm/Cursor/cursors/AngleUpRight.png +0 -0
- package/esm/Cursor/cursors/AppStarting.png +0 -0
- package/esm/Cursor/cursors/Arrow.png +0 -0
- package/esm/Cursor/cursors/ArrowRight.png +0 -0
- package/esm/Cursor/cursors/Circle.png +0 -0
- package/esm/Cursor/cursors/ColRezise.png +0 -0
- package/esm/Cursor/cursors/Copy.png +0 -0
- package/esm/Cursor/cursors/Cross.png +0 -0
- package/esm/Cursor/cursors/Crosshair.png +0 -0
- package/esm/Cursor/cursors/DND-ask.png +0 -0
- package/esm/Cursor/cursors/DND-copy.png +0 -0
- package/esm/Cursor/cursors/DND-link.png +0 -0
- package/esm/Cursor/cursors/DownArrow.png +0 -0
- package/esm/Cursor/cursors/DownLeftArrow.png +0 -0
- package/esm/Cursor/cursors/DownRightArrow.png +0 -0
- package/esm/Cursor/cursors/Hand.png +0 -0
- package/esm/Cursor/cursors/HandPointer.png +0 -0
- package/esm/Cursor/cursors/Handsqueezed.png +0 -0
- package/esm/Cursor/cursors/Handwriting.png +0 -0
- package/esm/Cursor/cursors/Help.png +0 -0
- package/esm/Cursor/cursors/LeftArrow.png +0 -0
- package/esm/Cursor/cursors/LeftRight.png +0 -0
- package/esm/Cursor/cursors/LeftRightArrow.png +0 -0
- package/esm/Cursor/cursors/Link.png +0 -0
- package/esm/Cursor/cursors/Move.png +0 -0
- package/esm/Cursor/cursors/NO.png +0 -0
- package/esm/Cursor/cursors/RightArrow.png +0 -0
- package/esm/Cursor/cursors/RowResize.png +0 -0
- package/esm/Cursor/cursors/SizeAll.png +0 -0
- package/esm/Cursor/cursors/Text.png +0 -0
- package/esm/Cursor/cursors/UpArrow.png +0 -0
- package/esm/Cursor/cursors/UpDownArrow.png +0 -0
- package/esm/Cursor/cursors/UpLeftArrow.png +0 -0
- package/esm/Cursor/cursors/UpRightArrow.png +0 -0
- package/esm/Cursor/cursors/VText.png +0 -0
- package/esm/Cursor/cursors/Wait.png +0 -0
- package/esm/Cursor/cursors/X.png +0 -0
- package/esm/Cursor/cursors/ZoomIn.png +0 -0
- package/esm/Cursor/cursors/ZoomOut.png +0 -0
- package/esm/Cursor/index.js +0 -2
- package/esm/Dropdown/Dropdown.css.js +0 -49
- package/esm/Dropdown/Dropdown.js +0 -31
- package/esm/Dropdown/imgs/downcaret.png +0 -0
- package/esm/Dropdown/imgs/downcaret.svg +0 -1
- package/esm/Dropdown/index.js +0 -2
- package/esm/Fieldset/Fieldset.css.js +0 -21
- package/esm/Fieldset/Fieldset.js +0 -20
- package/esm/Fieldset/index.js +0 -2
- package/esm/Frame/Frame.js +0 -30
- package/esm/Frame/index.js +0 -2
- package/esm/Frame/props.js +0 -156
- package/esm/Frame/sprinkles.css.js +0 -67
- package/esm/GlobalStyle/GlobalStyle.css.js +0 -123
- package/esm/GlobalStyle/font/MS-Sans-Serif-8pt-bold.ttf +0 -0
- package/esm/GlobalStyle/font/MS-Sans-Serif-8pt.ttf +0 -0
- package/esm/GlobalStyle/font/React95Video-Numbers.eot +0 -0
- package/esm/GlobalStyle/font/React95Video-Numbers.ttf +0 -0
- package/esm/GlobalStyle/font/React95Video-Numbers.woff +0 -0
- package/esm/GlobalStyle/font/React95Video-Numbers.woff2 +0 -0
- package/esm/GlobalStyle/imgs/downcaret.svg +0 -1
- package/esm/GlobalStyle/imgs/dropdown.png +0 -0
- package/esm/GlobalStyle/imgs/leftcaret.svg +0 -1
- package/esm/GlobalStyle/imgs/rightcaret.svg +0 -1
- package/esm/GlobalStyle/imgs/upcaret.svg +0 -1
- package/esm/GlobalStyle/utils.js +0 -17
- package/esm/Input/Input.css.js +0 -24
- package/esm/Input/Input.js +0 -11
- package/esm/Input/index.js +0 -2
- package/esm/List/List.css.js +0 -72
- package/esm/List/List.js +0 -18
- package/esm/List/ListDivider.js +0 -13
- package/esm/List/ListItem.js +0 -25
- package/esm/List/index.js +0 -2
- package/esm/Modal/Modal.css.js +0 -70
- package/esm/Modal/Modal.js +0 -165
- package/esm/Modal/ModalContext.js +0 -11
- package/esm/Modal/ModalProvider.js +0 -84
- package/esm/Modal/close.svg +0 -1
- package/esm/Modal/help.svg +0 -1
- package/esm/Modal/index.js +0 -4
- package/esm/Modal/maximize.svg +0 -1
- package/esm/Modal/minimize.svg +0 -1
- package/esm/Modal/restore.svg +0 -1
- package/esm/ProgressBar/ProgressBar.css.js +0 -34
- package/esm/ProgressBar/ProgressBar.js +0 -29
- package/esm/ProgressBar/index.js +0 -2
- package/esm/RadioButton/RadioButton.css.js +0 -49
- package/esm/RadioButton/RadioButton.js +0 -23
- package/esm/RadioButton/imgs/radio-checked-disabled.png +0 -0
- package/esm/RadioButton/imgs/radio-checked.png +0 -0
- package/esm/RadioButton/imgs/radio-unchecked-disabled.png +0 -0
- package/esm/RadioButton/imgs/radio-unchecked.png +0 -0
- package/esm/RadioButton/index.js +0 -2
- package/esm/RadioButton/radioButtonStates.js +0 -5
- package/esm/Range/Range.css.js +0 -53
- package/esm/Range/Range.js +0 -13
- package/esm/Range/index.js +0 -2
- package/esm/Tabs/Tab.js +0 -19
- package/esm/Tabs/Tabs.css.js +0 -50
- package/esm/Tabs/Tabs.js +0 -55
- package/esm/Tabs/index.js +0 -3
- package/esm/TaskBar/Clock.js +0 -40
- package/esm/TaskBar/TaskBar.css.js +0 -76
- package/esm/TaskBar/TaskBar.js +0 -83
- package/esm/TaskBar/WindowButton.js +0 -25
- package/esm/TaskBar/index.js +0 -2
- package/esm/TextArea/TextArea.js +0 -11
- package/esm/TextArea/index.js +0 -2
- package/esm/TitleBar/TitleBar.css.js +0 -72
- package/esm/TitleBar/TitleBar.js +0 -43
- package/esm/TitleBar/index.js +0 -2
- package/esm/Tooltip/Tooltip.css.js +0 -25
- package/esm/Tooltip/Tooltip.js +0 -55
- package/esm/Tooltip/index.js +0 -2
- package/esm/Tree/Node.js +0 -144
- package/esm/Tree/Tree.css.js +0 -110
- package/esm/Tree/Tree.js +0 -26
- package/esm/Tree/index.js +0 -2
- package/esm/Video/Video.css.js +0 -100
- package/esm/Video/Video.js +0 -237
- package/esm/Video/buttons/Fullscreen.js +0 -17
- package/esm/Video/buttons/Pause.js +0 -14
- package/esm/Video/buttons/Play.js +0 -14
- package/esm/Video/buttons/Stop.js +0 -13
- package/esm/Video/buttons/index.js +0 -5
- package/esm/Video/index.js +0 -2
- package/esm/index.js +0 -23
- package/esm/shared/test/utils.js +0 -49
- package/esm/themes/all.js +0 -36
- package/esm/themes/azureOrange.css.js +0 -36
- package/esm/themes/baseTheme.css.js +0 -63
- package/esm/themes/bee.css.js +0 -36
- package/esm/themes/blackAndWhite.css.js +0 -36
- package/esm/themes/brick.css.js +0 -36
- package/esm/themes/candy.css.js +0 -36
- package/esm/themes/coldGray.css.js +0 -36
- package/esm/themes/contract.css.js +0 -15
- package/esm/themes/counterStrike.css.js +0 -36
- package/esm/themes/eggplant.css.js +0 -36
- package/esm/themes/highContrast.css.js +0 -36
- package/esm/themes/lilac.css.js +0 -36
- package/esm/themes/lilacRoseDark.css.js +0 -36
- package/esm/themes/maple.css.js +0 -36
- package/esm/themes/marine.css.js +0 -36
- package/esm/themes/matrix.css.js +0 -36
- package/esm/themes/millenium.css.js +0 -36
- package/esm/themes/modernDark.css.js +0 -36
- package/esm/themes/molecule.css.js +0 -36
- package/esm/themes/ninjaTurtles.css.js +0 -36
- package/esm/themes/olive.css.js +0 -36
- package/esm/themes/pamelaAnderson.css.js +0 -36
- package/esm/themes/plum.css.js +0 -36
- package/esm/themes/rainyDay.css.js +0 -36
- package/esm/themes/rose.css.js +0 -36
- package/esm/themes/slate.css.js +0 -36
- package/esm/themes/spruce.css.js +0 -36
- package/esm/themes/storm.css.js +0 -36
- package/esm/themes/theSixtiesUSA.css.js +0 -36
- package/esm/themes/tokyoDark.css.js +0 -36
- package/esm/themes/tooSexy.css.js +0 -36
- package/esm/themes/travel.css.js +0 -36
- package/esm/themes/vaporTeal.css.js +0 -36
- package/esm/themes/vermillion.css.js +0 -36
- package/esm/themes/violetDark.css.js +0 -36
- package/esm/themes/water.css.js +0 -36
- package/esm/themes/win95.css.js +0 -36
- /package/{@types → types}/Alert/Alert.css.d.ts +0 -0
- /package/{@types → types}/Alert/Alert.d.ts +0 -0
- /package/{@types → types}/Avatar/Avatar.css.d.ts +0 -0
- /package/{@types → types}/Avatar/Avatar.d.ts +0 -0
- /package/{@types → types}/Button/Button.css.d.ts +0 -0
- /package/{@types → types}/Button/Button.d.ts +0 -0
- /package/{@types → types}/Checkbox/Checkbox.css.d.ts +0 -0
- /package/{@types → types}/Checkbox/Checkbox.d.ts +0 -0
- /package/{@types → types}/Cursor/Cursor.css.d.ts +0 -0
- /package/{@types → types}/Dropdown/Dropdown.css.d.ts +0 -0
- /package/{@types → types}/Dropdown/Dropdown.d.ts +0 -0
- /package/{@types → types}/Fieldset/Fieldset.css.d.ts +0 -0
- /package/{@types → types}/Fieldset/Fieldset.d.ts +0 -0
- /package/{@types → types}/Input/Input.css.d.ts +0 -0
- /package/{@types → types}/Input/Input.d.ts +0 -0
- /package/{@types → types}/List/List.css.d.ts +0 -0
- /package/{@types → types}/List/List.d.ts +0 -0
- /package/{@types → types}/List/ListDivider.d.ts +0 -0
- /package/{@types → types}/List/ListItem.d.ts +0 -0
- /package/{@types → types}/Modal/Modal.css.d.ts +0 -0
- /package/{@types → types}/ProgressBar/ProgressBar.css.d.ts +0 -0
- /package/{@types → types}/ProgressBar/ProgressBar.d.ts +0 -0
- /package/{@types → types}/RadioButton/RadioButton.css.d.ts +0 -0
- /package/{@types → types}/RadioButton/RadioButton.d.ts +0 -0
- /package/{@types → types}/RadioButton/radioButtonStates.d.ts +0 -0
- /package/{@types → types}/Range/Range.css.d.ts +0 -0
- /package/{@types → types}/Range/Range.d.ts +0 -0
- /package/{@types → types}/Tabs/Tab.d.ts +0 -0
- /package/{@types → types}/Tabs/Tabs.css.d.ts +0 -0
- /package/{@types → types}/Tabs/Tabs.d.ts +0 -0
- /package/{@types → types}/TaskBar/Clock.d.ts +0 -0
- /package/{@types → types}/TaskBar/TaskBar.css.d.ts +0 -0
- /package/{@types → types}/TaskBar/WindowButton.d.ts +0 -0
- /package/{@types → types}/TextArea/TextArea.d.ts +0 -0
- /package/{@types → types}/TitleBar/TitleBar.css.d.ts +0 -0
- /package/{@types → types}/TitleBar/TitleBar.d.ts +0 -0
- /package/{@types → types}/Tooltip/Tooltip.css.d.ts +0 -0
- /package/{@types → types}/Tooltip/Tooltip.d.ts +0 -0
- /package/{@types → types}/Tree/Tree.css.d.ts +0 -0
- /package/{@types → types}/Tree/Tree.d.ts +0 -0
- /package/{@types → types}/Video/Video.css.d.ts +0 -0
- /package/{@types → types}/Video/Video.d.ts +0 -0
- /package/{@types → types}/Video/buttons/Fullscreen.d.ts +0 -0
- /package/{@types → types}/Video/buttons/Pause.d.ts +0 -0
- /package/{@types → types}/Video/buttons/Play.d.ts +0 -0
- /package/{@types → types}/Video/buttons/Stop.d.ts +0 -0
- /package/{@types → types}/Video/buttons/index.d.ts +0 -0
- /package/{@types/GlobalStyle/GlobalStyle.css.d.ts → types/shared/font-names.d.ts} +0 -0
- /package/{@types/themes/baseTheme.css.d.ts → types/themes/baseTheme.d.ts} +0 -0
package/esm/TaskBar/TaskBar.js
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
-
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."); }
|
|
3
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
import React, { forwardRef, useContext, useState } from 'react';
|
|
8
|
-
import { ModalContext } from '../Modal';
|
|
9
|
-
import Frame from '../Frame';
|
|
10
|
-
import { Clock } from './Clock';
|
|
11
|
-
import { WindowButton } from './WindowButton';
|
|
12
|
-
import { Logo } from '@react95/icons';
|
|
13
|
-
import { truncate } from './TaskBar.css';
|
|
14
|
-
export var TaskBar = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
15
|
-
var list = _ref.list;
|
|
16
|
-
var _useState = useState(false),
|
|
17
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
18
|
-
showList = _useState2[0],
|
|
19
|
-
toggleShowList = _useState2[1];
|
|
20
|
-
var _useState3 = useState(false),
|
|
21
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
22
|
-
activeStart = _useState4[0],
|
|
23
|
-
toggleActiveStart = _useState4[1];
|
|
24
|
-
var _useContext = useContext(ModalContext),
|
|
25
|
-
windows = _useContext.windows,
|
|
26
|
-
activeWindow = _useContext.activeWindow,
|
|
27
|
-
setActiveWindow = _useContext.setActiveWindow;
|
|
28
|
-
return /*#__PURE__*/React.createElement(Frame, {
|
|
29
|
-
position: "fixed",
|
|
30
|
-
bottom: "0px",
|
|
31
|
-
left: "0px",
|
|
32
|
-
right: "0px",
|
|
33
|
-
display: "flex",
|
|
34
|
-
justifyContent: "space-between",
|
|
35
|
-
h: "28px",
|
|
36
|
-
w: "100%",
|
|
37
|
-
padding: "$2",
|
|
38
|
-
zIndex: "$taskbar",
|
|
39
|
-
backgroundColor: "$material",
|
|
40
|
-
boxShadow: "$out",
|
|
41
|
-
ref: ref
|
|
42
|
-
}, showList && /*#__PURE__*/React.createElement(Frame, {
|
|
43
|
-
position: "absolute",
|
|
44
|
-
bottom: "28px",
|
|
45
|
-
onClick: function onClick() {
|
|
46
|
-
toggleActiveStart(false);
|
|
47
|
-
toggleShowList(false);
|
|
48
|
-
}
|
|
49
|
-
}, list), /*#__PURE__*/React.createElement(WindowButton, {
|
|
50
|
-
small: true,
|
|
51
|
-
icon: /*#__PURE__*/React.createElement(Logo, {
|
|
52
|
-
variant: "32x32_4"
|
|
53
|
-
}),
|
|
54
|
-
active: activeStart,
|
|
55
|
-
onClick: function onClick() {
|
|
56
|
-
toggleActiveStart(!activeStart);
|
|
57
|
-
toggleShowList(!showList);
|
|
58
|
-
}
|
|
59
|
-
}, "Start"), /*#__PURE__*/React.createElement(Frame, {
|
|
60
|
-
w: "100%",
|
|
61
|
-
paddingLeft: "$0",
|
|
62
|
-
ml: "$2",
|
|
63
|
-
display: "flex"
|
|
64
|
-
}, Object.entries(windows).map(function (_ref2) {
|
|
65
|
-
var _ref3 = _slicedToArray(_ref2, 2),
|
|
66
|
-
windowId = _ref3[0],
|
|
67
|
-
_ref3$ = _ref3[1],
|
|
68
|
-
icon = _ref3$.icon,
|
|
69
|
-
title = _ref3$.title,
|
|
70
|
-
hasButton = _ref3$.hasButton;
|
|
71
|
-
return hasButton && /*#__PURE__*/React.createElement(WindowButton, {
|
|
72
|
-
key: windowId,
|
|
73
|
-
icon: icon,
|
|
74
|
-
active: windowId === activeWindow,
|
|
75
|
-
onClick: function onClick() {
|
|
76
|
-
return setActiveWindow(windowId);
|
|
77
|
-
},
|
|
78
|
-
small: false
|
|
79
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
80
|
-
className: truncate
|
|
81
|
-
}, title));
|
|
82
|
-
})), /*#__PURE__*/React.createElement(Clock, null));
|
|
83
|
-
});
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
var _excluded = ["children", "small", "icon", "active"];
|
|
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
|
-
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
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
|
-
import React, { forwardRef } from 'react';
|
|
6
|
-
import * as styles from './TaskBar.css';
|
|
7
|
-
export var WindowButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
8
|
-
var children = _ref.children,
|
|
9
|
-
_ref$small = _ref.small,
|
|
10
|
-
small = _ref$small === void 0 ? false : _ref$small,
|
|
11
|
-
icon = _ref.icon,
|
|
12
|
-
_ref$active = _ref.active,
|
|
13
|
-
active = _ref$active === void 0 ? false : _ref$active,
|
|
14
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
15
|
-
return /*#__PURE__*/React.createElement("button", _extends({
|
|
16
|
-
className: styles.windowsButton({
|
|
17
|
-
active: active,
|
|
18
|
-
small: small
|
|
19
|
-
})
|
|
20
|
-
}, props, {
|
|
21
|
-
ref: ref
|
|
22
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
23
|
-
className: styles.icon
|
|
24
|
-
}, icon), children);
|
|
25
|
-
});
|
package/esm/TaskBar/index.js
DELETED
package/esm/TextArea/TextArea.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { Frame } from '../Frame/Frame';
|
|
4
|
-
import { input 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"
|
|
10
|
-
}));
|
|
11
|
-
});
|
package/esm/TextArea/index.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
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); }
|
|
5
|
-
import React from 'react';
|
|
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
|
-
}));
|
|
15
|
-
});
|
|
16
|
-
var Option = /*#__PURE__*/React.forwardRef(function (rest, ref) {
|
|
17
|
-
return /*#__PURE__*/React.createElement(Frame, _extends({}, rest, {
|
|
18
|
-
ref: ref,
|
|
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
|
|
38
|
-
}, title), children);
|
|
39
|
-
};
|
|
40
|
-
export var TitleBar = Object.assign( /*#__PURE__*/React.forwardRef(TitleBarRenderer), {
|
|
41
|
-
Option: Option,
|
|
42
|
-
OptionsBox: OptionsBox
|
|
43
|
-
});
|
package/esm/TitleBar/index.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
var _excluded = ["children", "text", "delay"];
|
|
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
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
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."); }
|
|
5
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
7
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
8
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
9
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11
|
-
import * as React from 'react';
|
|
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
|
-
}
|
|
21
|
-
var TooltipRenderer = function TooltipRenderer(_ref, ref) {
|
|
22
|
-
var children = _ref.children,
|
|
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,
|
|
27
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
28
|
-
var _React$useState = React.useState(false),
|
|
29
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
30
|
-
show = _React$useState2[0],
|
|
31
|
-
setShow = _React$useState2[1];
|
|
32
|
-
var _React$useState3 = React.useState(0),
|
|
33
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
34
|
-
delayTimer = _React$useState4[0],
|
|
35
|
-
setDelayTimer = _React$useState4[1];
|
|
36
|
-
var handleEnter = function handleEnter() {
|
|
37
|
-
var timer = window.setTimeout(function () {
|
|
38
|
-
setShow(true);
|
|
39
|
-
}, delay);
|
|
40
|
-
setDelayTimer(timer);
|
|
41
|
-
};
|
|
42
|
-
var handleLeave = function handleLeave() {
|
|
43
|
-
clearTimeout(delayTimer);
|
|
44
|
-
setShow(false);
|
|
45
|
-
};
|
|
46
|
-
return /*#__PURE__*/React.createElement("div", _extends({}, rest, {
|
|
47
|
-
className: cn(wrapper, rest.className),
|
|
48
|
-
onMouseEnter: handleEnter,
|
|
49
|
-
onMouseLeave: handleLeave,
|
|
50
|
-
ref: ref
|
|
51
|
-
}), show && /*#__PURE__*/React.createElement("div", {
|
|
52
|
-
className: tip
|
|
53
|
-
}, text), children);
|
|
54
|
-
};
|
|
55
|
-
export var Tooltip = /*#__PURE__*/React.forwardRef(TooltipRenderer);
|
package/esm/Tooltip/index.js
DELETED
package/esm/Tree/Node.js
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
var _excluded = ["children", "id", "icon", "label", "onClick"],
|
|
2
|
-
_excluded2 = ["id", "icon", "label", "onClick"];
|
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
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."); }
|
|
6
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
7
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
8
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
9
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
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; }
|
|
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; }
|
|
12
|
-
import * as React from 'react';
|
|
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
|
-
export var icons = {
|
|
18
|
-
FILE_MEDIA: MediaCd,
|
|
19
|
-
FILE_TEXT: FileText,
|
|
20
|
-
FILE_UNKNOWN: Bat,
|
|
21
|
-
FILE_FONT: FileFont2,
|
|
22
|
-
FILE_PEN: FilePen,
|
|
23
|
-
FILE_SETTINGS: FileSettings,
|
|
24
|
-
FILE_TEXT_SETTINGS: FileTextSettings,
|
|
25
|
-
FILE_EXECUTABLE: BatExec
|
|
26
|
-
};
|
|
27
|
-
var NodeIcon = function NodeIcon(_ref) {
|
|
28
|
-
var hasChildren = _ref.hasChildren,
|
|
29
|
-
isOpen = _ref.isOpen;
|
|
30
|
-
if (!hasChildren) {
|
|
31
|
-
return /*#__PURE__*/React.createElement(Bat, {
|
|
32
|
-
variant: "16x16_4",
|
|
33
|
-
"data-testid": "react95-default-icon-bat"
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
if (isOpen) {
|
|
37
|
-
return /*#__PURE__*/React.createElement(FolderOpen, {
|
|
38
|
-
variant: "16x16_4",
|
|
39
|
-
"data-testid": "react95-default-icon-folder-open"
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
return /*#__PURE__*/React.createElement(Folder, {
|
|
43
|
-
variant: "16x16_4",
|
|
44
|
-
"data-testid": "react95-default-icon-folder"
|
|
45
|
-
});
|
|
46
|
-
};
|
|
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);
|
|
56
|
-
var _React$useState = React.useState(false),
|
|
57
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
58
|
-
isOpen = _React$useState2[0],
|
|
59
|
-
setIsOpen = _React$useState2[1];
|
|
60
|
-
var hasChildren = children.length > 0;
|
|
61
|
-
var onClickHandler = function onClickHandler(event) {
|
|
62
|
-
onClick(event, {
|
|
63
|
-
id: id,
|
|
64
|
-
icon: icon,
|
|
65
|
-
label: label,
|
|
66
|
-
children: children
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
var onKeyDownHandler = function onKeyDownHandler(event) {
|
|
70
|
-
if (event.key === ' ') {
|
|
71
|
-
setIsOpen(!isOpen);
|
|
72
|
-
onClickHandler(event);
|
|
73
|
-
}
|
|
74
|
-
};
|
|
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,
|
|
83
|
-
onClick: function onClick() {
|
|
84
|
-
return setIsOpen(!isOpen);
|
|
85
|
-
}
|
|
86
|
-
}, isOpen ? '-' : '+'), /*#__PURE__*/React.createElement("div", {
|
|
87
|
-
className: styles.iconContainer({
|
|
88
|
-
hasChildren: hasChildren
|
|
89
|
-
})
|
|
90
|
-
}, icon || /*#__PURE__*/React.createElement(NodeIcon, {
|
|
91
|
-
hasChildren: hasChildren,
|
|
92
|
-
isOpen: isOpen
|
|
93
|
-
})), /*#__PURE__*/React.createElement("label", {
|
|
94
|
-
className: styles.label,
|
|
95
|
-
tabIndex: 0,
|
|
96
|
-
onDoubleClick: function onDoubleClick() {
|
|
97
|
-
return setIsOpen(!isOpen);
|
|
98
|
-
},
|
|
99
|
-
onClick: onClickHandler,
|
|
100
|
-
onKeyDown: onKeyDownHandler
|
|
101
|
-
}, label)), hasChildren && isOpen && /*#__PURE__*/React.createElement("ul", {
|
|
102
|
-
className: styles.tree
|
|
103
|
-
}, children === null || children === void 0 ? void 0 : children.map(function (dataNode) {
|
|
104
|
-
return /*#__PURE__*/React.createElement(Node, _extends({
|
|
105
|
-
key: dataNode.id
|
|
106
|
-
}, dataNode));
|
|
107
|
-
})));
|
|
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
|
-
};
|
|
144
|
-
export default Node;
|
package/esm/Tree/Tree.css.js
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
var _excluded = ["data", "root"];
|
|
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
|
-
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
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
|
-
import React, { forwardRef } from 'react';
|
|
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) {
|
|
10
|
-
var data = _ref.data,
|
|
11
|
-
root = _ref.root,
|
|
12
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
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
|
-
ref: ref
|
|
17
|
-
}), data.map(function (dataNode) {
|
|
18
|
-
return /*#__PURE__*/React.createElement(Node, _extends({
|
|
19
|
-
key: dataNode.id
|
|
20
|
-
}, dataNode));
|
|
21
|
-
})));
|
|
22
|
-
});
|
|
23
|
-
Tree.defaultProps = {
|
|
24
|
-
data: []
|
|
25
|
-
};
|
|
26
|
-
Tree.icons = icons;
|
package/esm/Tree/index.js
DELETED