@react95/core 8.0.0-alpha.0 → 8.0.0-alpha.2
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/Modal/Modal.d.ts +1 -1
- package/@types/Modal/ModalContext.d.ts +1 -2
- package/@types/Modal/ModalProvider.d.ts +1 -2
- package/@types/TaskBar/TaskBar.d.ts +1 -1
- package/@types/Tree/Node.d.ts +1 -2
- package/@types/index.d.ts +25 -23
- package/@types/themes/all.d.ts +36 -36
- package/@types/themes/azureOrange.css.d.ts +1 -1
- package/@types/themes/bee.css.d.ts +1 -1
- package/@types/themes/blackAndWhite.css.d.ts +1 -1
- package/@types/themes/brick.css.d.ts +1 -1
- package/@types/themes/candy.css.d.ts +1 -1
- package/@types/themes/coldGray.css.d.ts +1 -1
- package/@types/themes/contract.css.d.ts +66 -8
- package/@types/themes/counterStrike.css.d.ts +1 -1
- package/@types/themes/eggplant.css.d.ts +1 -1
- package/@types/themes/highContrast.css.d.ts +1 -1
- package/@types/themes/lilac.css.d.ts +1 -1
- package/@types/themes/lilacRoseDark.css.d.ts +1 -1
- package/@types/themes/maple.css.d.ts +1 -1
- package/@types/themes/marine.css.d.ts +1 -1
- package/@types/themes/matrix.css.d.ts +1 -1
- package/@types/themes/millenium.css.d.ts +1 -1
- package/@types/themes/modernDark.css.d.ts +1 -1
- package/@types/themes/molecule.css.d.ts +1 -1
- package/@types/themes/ninjaTurtles.css.d.ts +1 -1
- package/@types/themes/olive.css.d.ts +1 -1
- package/@types/themes/pamelaAnderson.css.d.ts +1 -1
- package/@types/themes/plum.css.d.ts +1 -1
- package/@types/themes/rainyDay.css.d.ts +1 -1
- package/@types/themes/rose.css.d.ts +1 -1
- package/@types/themes/slate.css.d.ts +1 -1
- package/@types/themes/spruce.css.d.ts +1 -1
- package/@types/themes/storm.css.d.ts +1 -1
- package/@types/themes/theSixtiesUSA.css.d.ts +1 -1
- package/@types/themes/tokyoDark.css.d.ts +1 -1
- package/@types/themes/tooSexy.css.d.ts +1 -1
- package/@types/themes/travel.css.d.ts +1 -1
- package/@types/themes/vaporTeal.css.d.ts +1 -1
- package/@types/themes/vermillion.css.d.ts +1 -1
- package/@types/themes/violetDark.css.d.ts +1 -1
- package/@types/themes/water.css.d.ts +1 -1
- package/@types/themes/win95.css.d.ts +1 -1
- package/cjs/Alert/Alert.css.js +8 -22
- package/cjs/Alert/Alert.css.ts.vanilla.css +15 -0
- package/cjs/Alert/Alert.js +33 -79
- package/cjs/Alert/assets/chord.mp3.js +3 -0
- package/cjs/Avatar/Avatar.css.js +7 -38
- package/cjs/Avatar/Avatar.css.ts.vanilla.css +24 -0
- package/cjs/Avatar/Avatar.js +25 -39
- package/cjs/Button/Button.css.js +4 -34
- package/cjs/Button/Button.css.ts.vanilla.css +31 -0
- package/cjs/Button/Button.js +19 -22
- package/cjs/Checkbox/Checkbox.css.js +10 -72
- package/cjs/Checkbox/Checkbox.css.ts.vanilla.css +59 -0
- package/cjs/Checkbox/Checkbox.js +16 -36
- package/cjs/Cursor/Cursor.css.js +4 -136
- package/cjs/Cursor/Cursor.css.ts.vanilla.css +96 -0
- package/cjs/Dropdown/Dropdown.css.js +6 -55
- package/cjs/Dropdown/Dropdown.css.ts.vanilla.css +50 -0
- package/cjs/Dropdown/Dropdown.js +19 -40
- package/cjs/Fieldset/Fieldset.css.js +6 -26
- package/cjs/Fieldset/Fieldset.css.ts.vanilla.css +19 -0
- package/cjs/Fieldset/Fieldset.js +8 -28
- package/cjs/Frame/Frame.js +21 -37
- package/cjs/Frame/sprinkles.css.js +46 -72
- package/cjs/GlobalStyle/GlobalStyle.css.js +2 -129
- package/cjs/GlobalStyle/GlobalStyle.css.ts.vanilla.css +122 -0
- package/cjs/GlobalStyle.js +4 -0
- package/cjs/Input/Input.css.js +4 -29
- package/cjs/Input/Input.css.ts.vanilla.css +21 -0
- package/cjs/Input/Input.js +25 -19
- package/cjs/List/List.css.js +8 -78
- package/cjs/List/List.css.ts.vanilla.css +66 -0
- package/cjs/List/List.js +14 -23
- package/cjs/List/ListDivider.js +18 -19
- package/cjs/List/ListItem.js +11 -34
- package/cjs/Modal/Modal.css.js +13 -75
- package/cjs/Modal/Modal.css.ts.vanilla.css +55 -0
- package/cjs/Modal/Modal.js +131 -155
- package/cjs/Modal/ModalContext.js +13 -15
- package/cjs/Modal/ModalProvider.js +60 -81
- package/cjs/Modal/close.svg.js +3 -0
- package/cjs/Modal/help.svg.js +3 -0
- package/cjs/ProgressBar/ProgressBar.css.js +10 -39
- package/cjs/ProgressBar/ProgressBar.css.ts.vanilla.css +32 -0
- package/cjs/ProgressBar/ProgressBar.js +19 -38
- package/cjs/RadioButton/RadioButton.css.js +10 -54
- package/cjs/RadioButton/RadioButton.css.ts.vanilla.css +44 -0
- package/cjs/RadioButton/RadioButton.js +16 -31
- package/cjs/Range/Range.css.js +4 -58
- package/cjs/Range/Range.css.ts.vanilla.css +84 -0
- package/cjs/Range/Range.js +35 -22
- package/cjs/Tabs/Tab.js +17 -28
- package/cjs/Tabs/Tabs.css.js +9 -55
- package/cjs/Tabs/Tabs.css.ts.vanilla.css +54 -0
- package/cjs/Tabs/Tabs.js +48 -63
- package/cjs/TaskBar/Clock.js +29 -45
- package/cjs/TaskBar/TaskBar.css.js +11 -81
- package/cjs/TaskBar/TaskBar.css.ts.vanilla.css +51 -0
- package/cjs/TaskBar/TaskBar.js +72 -91
- package/cjs/TaskBar/WindowButton.js +16 -33
- package/cjs/TextArea/TextArea.js +25 -19
- package/cjs/TitleBar/TitleBar.css.js +11 -77
- package/cjs/TitleBar/TitleBar.css.ts.vanilla.css +62 -0
- package/cjs/TitleBar/TitleBar.js +44 -52
- package/cjs/Tooltip/Tooltip.css.js +6 -30
- package/cjs/Tooltip/Tooltip.css.ts.vanilla.css +25 -0
- package/cjs/Tooltip/Tooltip.js +66 -54
- package/cjs/Tree/Node.js +116 -131
- package/cjs/Tree/Tree.css.js +17 -115
- package/cjs/Tree/Tree.css.ts.vanilla.css +90 -0
- package/cjs/Tree/Tree.js +12 -31
- package/cjs/Video/Video.css.js +21 -105
- package/cjs/Video/Video.css.ts.vanilla.css +83 -0
- package/cjs/Video/Video.js +207 -231
- package/cjs/Video/buttons/Fullscreen.js +33 -20
- package/cjs/Video/buttons/Pause.js +28 -18
- package/cjs/Video/buttons/Play.js +28 -18
- package/cjs/Video/buttons/Stop.js +28 -18
- package/cjs/index.js +49 -170
- package/cjs/themes/azureOrange.css.js +2 -41
- package/cjs/themes/azureOrange.css.ts.vanilla.css +58 -0
- package/cjs/themes/bee.css.js +2 -41
- package/cjs/themes/bee.css.ts.vanilla.css +58 -0
- package/cjs/themes/blackAndWhite.css.js +2 -41
- package/cjs/themes/blackAndWhite.css.ts.vanilla.css +58 -0
- package/cjs/themes/brick.css.js +2 -41
- package/cjs/themes/brick.css.ts.vanilla.css +58 -0
- package/cjs/themes/candy.css.js +2 -41
- package/cjs/themes/candy.css.ts.vanilla.css +58 -0
- package/cjs/themes/coldGray.css.js +2 -41
- package/cjs/themes/coldGray.css.ts.vanilla.css +58 -0
- package/cjs/themes/counterStrike.css.js +2 -41
- package/cjs/themes/counterStrike.css.ts.vanilla.css +58 -0
- package/cjs/themes/eggplant.css.js +2 -41
- package/cjs/themes/eggplant.css.ts.vanilla.css +58 -0
- package/cjs/themes/highContrast.css.js +2 -41
- package/cjs/themes/highContrast.css.ts.vanilla.css +58 -0
- package/cjs/themes/lilac.css.js +2 -41
- package/cjs/themes/lilac.css.ts.vanilla.css +58 -0
- package/cjs/themes/lilacRoseDark.css.js +2 -41
- package/cjs/themes/lilacRoseDark.css.ts.vanilla.css +58 -0
- package/cjs/themes/maple.css.js +2 -41
- package/cjs/themes/maple.css.ts.vanilla.css +58 -0
- package/cjs/themes/marine.css.js +2 -41
- package/cjs/themes/marine.css.ts.vanilla.css +58 -0
- package/cjs/themes/matrix.css.js +2 -41
- package/cjs/themes/matrix.css.ts.vanilla.css +58 -0
- package/cjs/themes/millenium.css.js +2 -41
- package/cjs/themes/millenium.css.ts.vanilla.css +58 -0
- package/cjs/themes/modernDark.css.js +2 -41
- package/cjs/themes/modernDark.css.ts.vanilla.css +58 -0
- package/cjs/themes/molecule.css.js +2 -41
- package/cjs/themes/molecule.css.ts.vanilla.css +58 -0
- package/cjs/themes/ninjaTurtles.css.js +2 -41
- package/cjs/themes/ninjaTurtles.css.ts.vanilla.css +58 -0
- package/cjs/themes/olive.css.js +2 -41
- package/cjs/themes/olive.css.ts.vanilla.css +58 -0
- package/cjs/themes/pamelaAnderson.css.js +2 -41
- package/cjs/themes/pamelaAnderson.css.ts.vanilla.css +58 -0
- package/cjs/themes/plum.css.js +2 -41
- package/cjs/themes/plum.css.ts.vanilla.css +58 -0
- package/cjs/themes/rainyDay.css.js +2 -41
- package/cjs/themes/rainyDay.css.ts.vanilla.css +58 -0
- package/cjs/themes/rose.css.js +2 -41
- package/cjs/themes/rose.css.ts.vanilla.css +58 -0
- package/cjs/themes/slate.css.js +2 -41
- package/cjs/themes/slate.css.ts.vanilla.css +58 -0
- package/cjs/themes/sprinkles.css.ts.vanilla.css +399 -0
- package/cjs/themes/spruce.css.js +2 -41
- package/cjs/themes/spruce.css.ts.vanilla.css +58 -0
- package/cjs/themes/storm.css.js +2 -41
- package/cjs/themes/storm.css.ts.vanilla.css +58 -0
- package/cjs/themes/theSixtiesUSA.css.js +2 -41
- package/cjs/themes/theSixtiesUSA.css.ts.vanilla.css +58 -0
- package/cjs/themes/tokyoDark.css.js +2 -41
- package/cjs/themes/tokyoDark.css.ts.vanilla.css +58 -0
- package/cjs/themes/tooSexy.css.js +2 -41
- package/cjs/themes/tooSexy.css.ts.vanilla.css +58 -0
- package/cjs/themes/travel.css.js +2 -41
- package/cjs/themes/travel.css.ts.vanilla.css +58 -0
- package/cjs/themes/vaporTeal.css.js +2 -41
- package/cjs/themes/vaporTeal.css.ts.vanilla.css +58 -0
- package/cjs/themes/vermillion.css.js +2 -41
- package/cjs/themes/vermillion.css.ts.vanilla.css +58 -0
- package/cjs/themes/violetDark.css.js +2 -41
- package/cjs/themes/violetDark.css.ts.vanilla.css +58 -0
- package/cjs/themes/water.css.js +2 -41
- package/cjs/themes/water.css.ts.vanilla.css +58 -0
- package/cjs/themes/win95.css.js +2 -41
- package/cjs/themes/win95.css.ts.vanilla.css +58 -0
- package/cjs/themes.js +72 -0
- package/esm/Alert/Alert.css.js +9 -17
- package/esm/Alert/Alert.css.ts.vanilla.css +15 -0
- package/esm/Alert/Alert.js +34 -71
- package/esm/Alert/assets/chord.mp3.js +4 -0
- package/esm/Avatar/Avatar.css.js +8 -33
- package/esm/Avatar/Avatar.css.ts.vanilla.css +24 -0
- package/esm/Avatar/Avatar.js +9 -30
- package/esm/Button/Button.css.js +5 -29
- package/esm/Button/Button.css.ts.vanilla.css +31 -0
- package/esm/Button/Button.js +20 -13
- package/esm/Checkbox/Checkbox.css.js +11 -66
- package/esm/Checkbox/Checkbox.css.ts.vanilla.css +59 -0
- package/esm/Checkbox/Checkbox.js +17 -28
- package/esm/Cursor/Cursor.css.js +5 -130
- package/esm/Cursor/Cursor.css.ts.vanilla.css +96 -0
- package/esm/Dropdown/Dropdown.css.js +7 -49
- package/esm/Dropdown/Dropdown.css.ts.vanilla.css +50 -0
- package/esm/Dropdown/Dropdown.js +20 -31
- package/esm/Fieldset/Fieldset.css.js +7 -21
- package/esm/Fieldset/Fieldset.css.ts.vanilla.css +19 -0
- package/esm/Fieldset/Fieldset.js +9 -20
- package/esm/Frame/Frame.js +22 -29
- package/esm/Frame/sprinkles.css.js +47 -67
- package/esm/GlobalStyle/GlobalStyle.css.js +2 -123
- package/esm/GlobalStyle/GlobalStyle.css.ts.vanilla.css +122 -0
- package/esm/GlobalStyle.js +4 -0
- package/esm/Input/Input.css.js +5 -24
- package/esm/Input/Input.css.ts.vanilla.css +21 -0
- package/esm/Input/Input.js +9 -11
- package/esm/List/List.css.js +9 -72
- package/esm/List/List.css.ts.vanilla.css +66 -0
- package/esm/List/List.js +15 -17
- package/esm/List/ListDivider.js +19 -13
- package/esm/List/ListItem.js +12 -25
- package/esm/Modal/Modal.css.js +14 -70
- package/esm/Modal/Modal.css.ts.vanilla.css +55 -0
- package/esm/Modal/Modal.js +115 -146
- package/esm/Modal/ModalContext.js +14 -9
- package/esm/Modal/ModalProvider.js +44 -74
- package/esm/Modal/close.svg.js +4 -0
- package/esm/Modal/help.svg.js +4 -0
- package/esm/ProgressBar/ProgressBar.css.js +11 -34
- package/esm/ProgressBar/ProgressBar.css.ts.vanilla.css +32 -0
- package/esm/ProgressBar/ProgressBar.js +20 -29
- package/esm/RadioButton/RadioButton.css.js +11 -49
- package/esm/RadioButton/RadioButton.css.ts.vanilla.css +44 -0
- package/esm/RadioButton/RadioButton.js +17 -23
- package/esm/Range/Range.css.js +4 -52
- package/esm/Range/Range.css.ts.vanilla.css +84 -0
- package/esm/Range/Range.js +19 -13
- package/esm/Tabs/Tab.js +18 -19
- package/esm/Tabs/Tabs.css.js +10 -50
- package/esm/Tabs/Tabs.css.ts.vanilla.css +54 -0
- package/esm/Tabs/Tabs.js +49 -54
- package/esm/TaskBar/Clock.js +30 -36
- package/esm/TaskBar/TaskBar.css.js +12 -76
- package/esm/TaskBar/TaskBar.css.ts.vanilla.css +51 -0
- package/esm/TaskBar/TaskBar.js +73 -82
- package/esm/TaskBar/WindowButton.js +17 -25
- package/esm/TextArea/TextArea.js +9 -11
- package/esm/TitleBar/TitleBar.css.js +12 -72
- package/esm/TitleBar/TitleBar.css.ts.vanilla.css +62 -0
- package/esm/TitleBar/TitleBar.js +44 -42
- package/esm/Tooltip/Tooltip.css.js +7 -25
- package/esm/Tooltip/Tooltip.css.ts.vanilla.css +25 -0
- package/esm/Tooltip/Tooltip.js +50 -45
- package/esm/Tree/Node.js +92 -114
- package/esm/Tree/Tree.css.js +17 -109
- package/esm/Tree/Tree.css.ts.vanilla.css +90 -0
- package/esm/Tree/Tree.js +13 -23
- package/esm/Video/Video.css.js +22 -100
- package/esm/Video/Video.css.ts.vanilla.css +83 -0
- package/esm/Video/Video.js +191 -222
- package/esm/Video/buttons/Fullscreen.js +17 -11
- package/esm/Video/buttons/Pause.js +12 -9
- package/esm/Video/buttons/Play.js +12 -9
- package/esm/Video/buttons/Stop.js +12 -9
- package/esm/index.js +50 -23
- package/esm/themes/azureOrange.css.js +2 -36
- package/esm/themes/azureOrange.css.ts.vanilla.css +58 -0
- package/esm/themes/bee.css.js +2 -36
- package/esm/themes/bee.css.ts.vanilla.css +58 -0
- package/esm/themes/blackAndWhite.css.js +2 -36
- package/esm/themes/blackAndWhite.css.ts.vanilla.css +58 -0
- package/esm/themes/brick.css.js +2 -36
- package/esm/themes/brick.css.ts.vanilla.css +58 -0
- package/esm/themes/candy.css.js +2 -36
- package/esm/themes/candy.css.ts.vanilla.css +58 -0
- package/esm/themes/coldGray.css.js +2 -36
- package/esm/themes/coldGray.css.ts.vanilla.css +58 -0
- package/esm/themes/counterStrike.css.js +2 -36
- package/esm/themes/counterStrike.css.ts.vanilla.css +58 -0
- package/esm/themes/eggplant.css.js +2 -36
- package/esm/themes/eggplant.css.ts.vanilla.css +58 -0
- package/esm/themes/highContrast.css.js +2 -36
- package/esm/themes/highContrast.css.ts.vanilla.css +58 -0
- package/esm/themes/lilac.css.js +2 -36
- package/esm/themes/lilac.css.ts.vanilla.css +58 -0
- package/esm/themes/lilacRoseDark.css.js +2 -36
- package/esm/themes/lilacRoseDark.css.ts.vanilla.css +58 -0
- package/esm/themes/maple.css.js +2 -36
- package/esm/themes/maple.css.ts.vanilla.css +58 -0
- package/esm/themes/marine.css.js +2 -36
- package/esm/themes/marine.css.ts.vanilla.css +58 -0
- package/esm/themes/matrix.css.js +2 -36
- package/esm/themes/matrix.css.ts.vanilla.css +58 -0
- package/esm/themes/millenium.css.js +2 -36
- package/esm/themes/millenium.css.ts.vanilla.css +58 -0
- package/esm/themes/modernDark.css.js +2 -36
- package/esm/themes/modernDark.css.ts.vanilla.css +58 -0
- package/esm/themes/molecule.css.js +2 -36
- package/esm/themes/molecule.css.ts.vanilla.css +58 -0
- package/esm/themes/ninjaTurtles.css.js +2 -36
- package/esm/themes/ninjaTurtles.css.ts.vanilla.css +58 -0
- package/esm/themes/olive.css.js +2 -36
- package/esm/themes/olive.css.ts.vanilla.css +58 -0
- package/esm/themes/pamelaAnderson.css.js +2 -36
- package/esm/themes/pamelaAnderson.css.ts.vanilla.css +58 -0
- package/esm/themes/plum.css.js +2 -36
- package/esm/themes/plum.css.ts.vanilla.css +58 -0
- package/esm/themes/rainyDay.css.js +2 -36
- package/esm/themes/rainyDay.css.ts.vanilla.css +58 -0
- package/esm/themes/rose.css.js +2 -36
- package/esm/themes/rose.css.ts.vanilla.css +58 -0
- package/esm/themes/slate.css.js +2 -36
- package/esm/themes/slate.css.ts.vanilla.css +58 -0
- package/esm/themes/sprinkles.css.ts.vanilla.css +399 -0
- package/esm/themes/spruce.css.js +2 -36
- package/esm/themes/spruce.css.ts.vanilla.css +58 -0
- package/esm/themes/storm.css.js +2 -36
- package/esm/themes/storm.css.ts.vanilla.css +58 -0
- package/esm/themes/theSixtiesUSA.css.js +2 -36
- package/esm/themes/theSixtiesUSA.css.ts.vanilla.css +58 -0
- package/esm/themes/tokyoDark.css.js +2 -36
- package/esm/themes/tokyoDark.css.ts.vanilla.css +58 -0
- package/esm/themes/tooSexy.css.js +2 -36
- package/esm/themes/tooSexy.css.ts.vanilla.css +58 -0
- package/esm/themes/travel.css.js +2 -36
- package/esm/themes/travel.css.ts.vanilla.css +58 -0
- package/esm/themes/vaporTeal.css.js +2 -36
- package/esm/themes/vaporTeal.css.ts.vanilla.css +58 -0
- package/esm/themes/vermillion.css.js +2 -36
- package/esm/themes/vermillion.css.ts.vanilla.css +58 -0
- package/esm/themes/violetDark.css.js +2 -36
- package/esm/themes/violetDark.css.ts.vanilla.css +58 -0
- package/esm/themes/water.css.js +2 -36
- package/esm/themes/water.css.ts.vanilla.css +58 -0
- package/esm/themes/win95.css.js +2 -36
- package/esm/themes/win95.css.ts.vanilla.css +58 -0
- package/esm/themes.js +72 -0
- package/package.json +20 -2
- 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/index.d.ts +0 -2
- 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/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/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/index.d.ts +0 -2
- package/@types/Video/index.d.ts +0 -2
- package/@types/shared/test/utils.d.ts +0 -4
- package/cjs/Alert/assets/chord.mp3 +0 -0
- package/cjs/Alert/index.js +0 -8
- package/cjs/Avatar/index.js +0 -8
- package/cjs/Button/index.js +0 -8
- 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/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/imgs/downcaret.png +0 -0
- package/cjs/Dropdown/imgs/downcaret.svg +0 -1
- package/cjs/Dropdown/index.js +0 -8
- package/cjs/Fieldset/index.js +0 -8
- package/cjs/Frame/index.js +0 -8
- package/cjs/Frame/props.js +0 -162
- 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/index.js +0 -8
- package/cjs/List/index.js +0 -8
- 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/index.js +0 -8
- 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/index.js +0 -8
- package/cjs/Tabs/index.js +0 -19
- package/cjs/TaskBar/index.js +0 -8
- package/cjs/TextArea/index.js +0 -8
- package/cjs/TitleBar/index.js +0 -8
- package/cjs/Tooltip/index.js +0 -8
- package/cjs/Tree/index.js +0 -8
- package/cjs/Video/buttons/index.js +0 -34
- package/cjs/Video/index.js +0 -8
- package/cjs/shared/test/utils.js +0 -74
- package/cjs/themes/all.js +0 -250
- package/cjs/themes/baseTheme.css.js +0 -69
- package/cjs/themes/contract.css.js +0 -21
- package/esm/Alert/assets/chord.mp3 +0 -0
- package/esm/Alert/index.js +0 -2
- package/esm/Avatar/index.js +0 -2
- package/esm/Button/index.js +0 -2
- 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/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/imgs/downcaret.png +0 -0
- package/esm/Dropdown/imgs/downcaret.svg +0 -1
- package/esm/Dropdown/index.js +0 -2
- package/esm/Fieldset/index.js +0 -2
- package/esm/Frame/index.js +0 -2
- package/esm/Frame/props.js +0 -156
- 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/index.js +0 -2
- package/esm/List/index.js +0 -2
- 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/index.js +0 -2
- 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/index.js +0 -2
- package/esm/Tabs/index.js +0 -3
- package/esm/TaskBar/index.js +0 -2
- package/esm/TextArea/index.js +0 -2
- package/esm/TitleBar/index.js +0 -2
- package/esm/Tooltip/index.js +0 -2
- package/esm/Tree/index.js +0 -2
- package/esm/Video/buttons/index.js +0 -5
- package/esm/Video/index.js +0 -2
- package/esm/shared/test/utils.js +0 -49
- package/esm/themes/all.js +0 -36
- package/esm/themes/baseTheme.css.js +0 -63
- package/esm/themes/contract.css.js +0 -15
- /package/@types/{GlobalStyle/GlobalStyle.css.d.ts → shared/font-names.d.ts} +0 -0
- /package/@types/themes/{baseTheme.css.d.ts → baseTheme.d.ts} +0 -0
package/esm/Modal/Modal.js
CHANGED
|
@@ -1,165 +1,134 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
icon = _ref.icon,
|
|
39
|
-
_ref$menu = _ref.menu,
|
|
40
|
-
menu = _ref$menu === void 0 ? [] : _ref$menu,
|
|
41
|
-
title = _ref.title,
|
|
42
|
-
width = _ref.width,
|
|
43
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
44
|
-
var _React$useContext = React.useContext(ModalContext),
|
|
45
|
-
addWindows = _React$useContext.addWindows,
|
|
46
|
-
removeWindow = _React$useContext.removeWindow,
|
|
47
|
-
updateWindow = _React$useContext.updateWindow,
|
|
48
|
-
setActiveWindow = _React$useContext.setActiveWindow,
|
|
49
|
-
activeWindow = _React$useContext.activeWindow;
|
|
50
|
-
var _React$useState = React.useState(null),
|
|
51
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
52
|
-
id = _React$useState2[0],
|
|
53
|
-
setId = _React$useState2[1];
|
|
54
|
-
var _React$useState3 = React.useState(''),
|
|
55
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
56
|
-
menuOpened = _React$useState4[0],
|
|
57
|
-
setMenuOpened = _React$useState4[1];
|
|
58
|
-
var _React$useState5 = React.useState(false),
|
|
59
|
-
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
60
|
-
isActive = _React$useState6[0],
|
|
61
|
-
setIsActive = _React$useState6[1];
|
|
62
|
-
React.useEffect(function () {
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import Draggable from "react-draggable";
|
|
3
|
+
import { Button } from "../Button/Button.js";
|
|
4
|
+
import { TitleBar } from "../TitleBar/TitleBar.js";
|
|
5
|
+
import { ModalContext } from "./ModalContext.js";
|
|
6
|
+
import { modalWrapper, menuWrapper, menuItem, content, buttonWrapper } from "./Modal.css.js";
|
|
7
|
+
import { Frame } from "../Frame/Frame.js";
|
|
8
|
+
import close from "./close.svg.js";
|
|
9
|
+
import help from "./help.svg.js";
|
|
10
|
+
const ModalRenderer = ({
|
|
11
|
+
hasWindowButton: hasButton = true,
|
|
12
|
+
buttons = [],
|
|
13
|
+
buttonsAlignment = "flex-end",
|
|
14
|
+
children,
|
|
15
|
+
onClose = () => {
|
|
16
|
+
},
|
|
17
|
+
onHelp,
|
|
18
|
+
defaultPosition = { x: 0, y: 0 },
|
|
19
|
+
positionOffset,
|
|
20
|
+
height,
|
|
21
|
+
icon,
|
|
22
|
+
menu = [],
|
|
23
|
+
title,
|
|
24
|
+
width,
|
|
25
|
+
...rest
|
|
26
|
+
}, ref) => {
|
|
27
|
+
const {
|
|
28
|
+
addWindows,
|
|
29
|
+
removeWindow,
|
|
30
|
+
updateWindow,
|
|
31
|
+
setActiveWindow,
|
|
32
|
+
activeWindow
|
|
33
|
+
} = React.useContext(ModalContext);
|
|
34
|
+
const [id, setId] = React.useState(null);
|
|
35
|
+
const [menuOpened, setMenuOpened] = React.useState("");
|
|
36
|
+
const [isActive, setIsActive] = React.useState(false);
|
|
37
|
+
React.useEffect(() => {
|
|
63
38
|
if (!id) {
|
|
64
|
-
|
|
65
|
-
icon: icon,
|
|
66
|
-
title: title,
|
|
67
|
-
hasButton: hasButton
|
|
68
|
-
});
|
|
39
|
+
const newId = addWindows({ icon, title, hasButton });
|
|
69
40
|
if (newId) {
|
|
70
41
|
setId(newId);
|
|
71
42
|
setActiveWindow(newId);
|
|
72
43
|
}
|
|
73
44
|
} else {
|
|
74
|
-
updateWindow(id, {
|
|
75
|
-
icon: icon,
|
|
76
|
-
title: title,
|
|
77
|
-
hasButton: hasButton
|
|
78
|
-
});
|
|
45
|
+
updateWindow(id, { icon, title, hasButton });
|
|
79
46
|
}
|
|
80
47
|
}, [id, icon, title, hasButton]);
|
|
81
|
-
React.useEffect(
|
|
82
|
-
return
|
|
48
|
+
React.useEffect(() => {
|
|
49
|
+
return () => {
|
|
83
50
|
if (id) {
|
|
84
51
|
removeWindow(id);
|
|
85
52
|
}
|
|
86
53
|
};
|
|
87
54
|
}, [id]);
|
|
88
|
-
React.useEffect(
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}), /*#__PURE__*/React.createElement(TitleBar, {
|
|
106
|
-
active: isActive,
|
|
107
|
-
icon: icon,
|
|
108
|
-
title: title,
|
|
109
|
-
className: "draggable"
|
|
110
|
-
}, /*#__PURE__*/React.createElement(TitleBar.OptionsBox, null, onHelp && /*#__PURE__*/React.createElement(TitleBar.Option, null, /*#__PURE__*/React.createElement("img", {
|
|
111
|
-
src: help,
|
|
112
|
-
alt: "help",
|
|
113
|
-
onClick: onHelp
|
|
114
|
-
})), /*#__PURE__*/React.createElement(TitleBar.Option, {
|
|
115
|
-
onClick: onClose
|
|
116
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
117
|
-
src: close,
|
|
118
|
-
alt: "close"
|
|
119
|
-
})))), menu && menu.length > 0 && /*#__PURE__*/React.createElement("ul", {
|
|
120
|
-
className: styles.menuWrapper
|
|
121
|
-
}, menu.map(function (_ref2) {
|
|
122
|
-
var name = _ref2.name,
|
|
123
|
-
list = _ref2.list;
|
|
124
|
-
var active = menuOpened === name;
|
|
125
|
-
return /*#__PURE__*/React.createElement("li", {
|
|
126
|
-
key: name,
|
|
127
|
-
onMouseDown: function onMouseDown() {
|
|
128
|
-
return setMenuOpened(name);
|
|
55
|
+
React.useEffect(() => setIsActive(id === activeWindow), [id, activeWindow]);
|
|
56
|
+
return /* @__PURE__ */ React.createElement(
|
|
57
|
+
Draggable,
|
|
58
|
+
{
|
|
59
|
+
handle: ".draggable",
|
|
60
|
+
defaultPosition,
|
|
61
|
+
positionOffset,
|
|
62
|
+
onMouseDown: id ? () => setActiveWindow(id) : void 0
|
|
63
|
+
},
|
|
64
|
+
/* @__PURE__ */ React.createElement(
|
|
65
|
+
Frame,
|
|
66
|
+
{
|
|
67
|
+
...rest,
|
|
68
|
+
width,
|
|
69
|
+
height,
|
|
70
|
+
className: modalWrapper({ active: isActive }),
|
|
71
|
+
ref
|
|
129
72
|
},
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
73
|
+
/* @__PURE__ */ React.createElement(
|
|
74
|
+
TitleBar,
|
|
75
|
+
{
|
|
76
|
+
active: isActive,
|
|
77
|
+
icon,
|
|
78
|
+
title,
|
|
79
|
+
className: "draggable"
|
|
80
|
+
},
|
|
81
|
+
/* @__PURE__ */ React.createElement(TitleBar.OptionsBox, null, onHelp && /* @__PURE__ */ React.createElement(TitleBar.Option, null, /* @__PURE__ */ React.createElement("img", { src: help, alt: "help", onClick: onHelp })), /* @__PURE__ */ React.createElement(TitleBar.Option, { onClick: onClose }, /* @__PURE__ */ React.createElement("img", { src: close, alt: "close" })))
|
|
82
|
+
),
|
|
83
|
+
menu && menu.length > 0 && /* @__PURE__ */ React.createElement("ul", { className: menuWrapper }, menu.map(({ name, list }) => {
|
|
84
|
+
const active = menuOpened === name;
|
|
85
|
+
return /* @__PURE__ */ React.createElement(
|
|
86
|
+
"li",
|
|
87
|
+
{
|
|
88
|
+
key: name,
|
|
89
|
+
onMouseDown: () => setMenuOpened(name),
|
|
90
|
+
className: menuItem({ active })
|
|
91
|
+
},
|
|
92
|
+
name,
|
|
93
|
+
active && list
|
|
94
|
+
);
|
|
95
|
+
})),
|
|
96
|
+
/* @__PURE__ */ React.createElement("div", { className: content, onClick: () => setMenuOpened("") }, children),
|
|
97
|
+
buttons && buttons.length > 0 && /* @__PURE__ */ React.createElement(
|
|
98
|
+
Frame,
|
|
99
|
+
{
|
|
100
|
+
className: buttonWrapper,
|
|
101
|
+
justifyContent: buttonsAlignment
|
|
102
|
+
},
|
|
103
|
+
buttons.map((button) => /* @__PURE__ */ React.createElement(
|
|
104
|
+
Button,
|
|
105
|
+
{
|
|
106
|
+
key: button.value,
|
|
107
|
+
onClick: button.onClick,
|
|
108
|
+
value: button.value
|
|
109
|
+
},
|
|
110
|
+
button.value
|
|
111
|
+
))
|
|
112
|
+
)
|
|
113
|
+
)
|
|
114
|
+
);
|
|
149
115
|
};
|
|
150
|
-
|
|
151
|
-
|
|
116
|
+
const Modal = React.forwardRef(
|
|
117
|
+
ModalRenderer
|
|
118
|
+
);
|
|
119
|
+
Modal.displayName = "Modal";
|
|
152
120
|
Modal.defaultProps = {
|
|
153
|
-
icon:
|
|
154
|
-
title:
|
|
121
|
+
icon: void 0,
|
|
122
|
+
title: "Modal",
|
|
155
123
|
children: null,
|
|
156
|
-
defaultPosition: {
|
|
157
|
-
x: 0,
|
|
158
|
-
y: 0
|
|
159
|
-
},
|
|
124
|
+
defaultPosition: { x: 0, y: 0 },
|
|
160
125
|
buttons: [],
|
|
161
126
|
menu: [],
|
|
162
|
-
width:
|
|
163
|
-
height:
|
|
164
|
-
onClose:
|
|
165
|
-
}
|
|
127
|
+
width: void 0,
|
|
128
|
+
height: void 0,
|
|
129
|
+
onClose: () => {
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
export {
|
|
133
|
+
Modal
|
|
134
|
+
};
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var ModalContext = /*#__PURE__*/createContext({
|
|
1
|
+
import { createContext } from "react";
|
|
2
|
+
const ModalContext = createContext({
|
|
4
3
|
windows: {},
|
|
5
|
-
addWindows:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
addWindows: () => {
|
|
5
|
+
},
|
|
6
|
+
removeWindow: () => {
|
|
7
|
+
},
|
|
8
|
+
updateWindow: () => {
|
|
9
|
+
},
|
|
10
|
+
setActiveWindow: () => {
|
|
11
|
+
},
|
|
12
|
+
activeWindow: ""
|
|
10
13
|
});
|
|
11
|
-
export
|
|
14
|
+
export {
|
|
15
|
+
ModalContext
|
|
16
|
+
};
|
|
@@ -1,84 +1,54 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
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; } }
|
|
7
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
|
-
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; }
|
|
9
|
-
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; }
|
|
10
|
-
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; }
|
|
11
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
12
|
-
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); }
|
|
13
|
-
import { nanoid } from 'nanoid';
|
|
14
|
-
import * as React from 'react';
|
|
15
|
-
import ModalContext from './ModalContext';
|
|
16
|
-
|
|
17
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
18
|
-
|
|
19
|
-
var windowStackReducer = function windowStackReducer(state, action) {
|
|
20
|
-
var newWindows = _objectSpread({}, state);
|
|
1
|
+
import { nanoid } from "nanoid";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { ModalContext } from "./ModalContext.js";
|
|
4
|
+
const windowStackReducer = (state, action) => {
|
|
5
|
+
const newWindows = { ...state };
|
|
21
6
|
switch (action.type) {
|
|
22
|
-
case
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
newWindows[action.id] = action.window;
|
|
35
|
-
return newWindows;
|
|
36
|
-
}
|
|
7
|
+
case "ADD_WINDOW": {
|
|
8
|
+
newWindows[action.id] = action.window;
|
|
9
|
+
return newWindows;
|
|
10
|
+
}
|
|
11
|
+
case "REMOVE_WINDOW": {
|
|
12
|
+
delete newWindows[action.id];
|
|
13
|
+
return newWindows;
|
|
14
|
+
}
|
|
15
|
+
case "UPDATE_WINDOW": {
|
|
16
|
+
newWindows[action.id] = action.window;
|
|
17
|
+
return newWindows;
|
|
18
|
+
}
|
|
37
19
|
default:
|
|
38
20
|
return state;
|
|
39
21
|
}
|
|
40
22
|
};
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
dispatch
|
|
47
|
-
var _React$useState = React.useState(),
|
|
48
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
49
|
-
activeWindow = _React$useState2[0],
|
|
50
|
-
setActiveWindow = _React$useState2[1];
|
|
51
|
-
var addWindows = function addWindows(window) {
|
|
52
|
-
var id = nanoid();
|
|
53
|
-
dispatch({
|
|
54
|
-
type: 'ADD_WINDOW',
|
|
55
|
-
id: id,
|
|
56
|
-
window: window
|
|
57
|
-
});
|
|
23
|
+
const ModalProvider = ({ children }) => {
|
|
24
|
+
const [windows, dispatch] = React.useReducer(windowStackReducer, {});
|
|
25
|
+
const [activeWindow, setActiveWindow] = React.useState();
|
|
26
|
+
const addWindows = (window) => {
|
|
27
|
+
const id = nanoid();
|
|
28
|
+
dispatch({ type: "ADD_WINDOW", id, window });
|
|
58
29
|
return id;
|
|
59
30
|
};
|
|
60
|
-
|
|
61
|
-
dispatch({
|
|
62
|
-
type: 'REMOVE_WINDOW',
|
|
63
|
-
id: id
|
|
64
|
-
});
|
|
31
|
+
const removeWindow = (id) => {
|
|
32
|
+
dispatch({ type: "REMOVE_WINDOW", id });
|
|
65
33
|
};
|
|
66
|
-
|
|
67
|
-
dispatch({
|
|
68
|
-
type: 'UPDATE_WINDOW',
|
|
69
|
-
id: id,
|
|
70
|
-
window: window
|
|
71
|
-
});
|
|
34
|
+
const updateWindow = (id, window) => {
|
|
35
|
+
dispatch({ type: "UPDATE_WINDOW", id, window });
|
|
72
36
|
};
|
|
73
|
-
return
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
37
|
+
return /* @__PURE__ */ React.createElement(
|
|
38
|
+
ModalContext.Provider,
|
|
39
|
+
{
|
|
40
|
+
value: {
|
|
41
|
+
windows,
|
|
42
|
+
addWindows,
|
|
43
|
+
removeWindow,
|
|
44
|
+
updateWindow,
|
|
45
|
+
setActiveWindow,
|
|
46
|
+
activeWindow
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
children
|
|
50
|
+
);
|
|
51
|
+
};
|
|
52
|
+
export {
|
|
53
|
+
ModalProvider
|
|
83
54
|
};
|
|
84
|
-
export default ModalProvider;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const close = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nOCcgaGVpZ2h0PSc3JyBmaWxsPSdjdXJyZW50Q29sb3InIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZmlsbC1ydWxlPSdldmVub2RkJyBjbGlwLXJ1bGU9J2V2ZW5vZGQnIGQ9J00wIDBoMnYxaDF2MWgyVjFoMVYwaDJ2MUg3djFINnYxSDV2MWgxdjFoMXYxaDF2MUg2VjZINVY1SDN2MUgydjFIMFY2aDFWNWgxVjRoMVYzSDJWMkgxVjFIMFYweicgLz48L3N2Zz4=";
|
|
2
|
+
export {
|
|
3
|
+
close as default
|
|
4
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const help = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nNicgaGVpZ2h0PSc5JyBmaWxsPSdjdXJyZW50Q29sb3InIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTTAgMWgydjJIMHpNMSAwaDR2MUgxek00IDFoMnYySDR6TTMgM2gydjFIM3pNMiA0aDJ2Mkgyek0yIDdoMnYySDJ6Jy8+PC9zdmc+";
|
|
2
|
+
export {
|
|
3
|
+
help as default
|
|
4
|
+
};
|
|
@@ -1,34 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
borderLeftStyle: 'solid',
|
|
13
|
-
borderLeftColor: contract.colors.borderDark,
|
|
14
|
-
borderTop: contract.space[1],
|
|
15
|
-
borderTopStyle: 'solid',
|
|
16
|
-
borderTopColor: contract.colors.borderDark,
|
|
17
|
-
backgroundColor: contract.colors.inputBackground,
|
|
18
|
-
color: contract.colors.materialText,
|
|
19
|
-
boxShadow: contract.shadows.input
|
|
20
|
-
});
|
|
21
|
-
export var container = style({
|
|
22
|
-
position: 'absolute',
|
|
23
|
-
top: '0',
|
|
24
|
-
left: '0',
|
|
25
|
-
overflow: 'hidden'
|
|
26
|
-
});
|
|
27
|
-
export var progress = style({
|
|
28
|
-
height: contract.space[17],
|
|
29
|
-
lineHeight: contract.space[18],
|
|
30
|
-
marginLeft: contract.space[2],
|
|
31
|
-
marginTop: contract.space[2],
|
|
32
|
-
backgroundColor: contract.colors.progress,
|
|
33
|
-
color: contract.colors.materialTextInvert
|
|
34
|
-
});
|
|
1
|
+
import './ProgressBar.css.ts.vanilla.css';
|
|
2
|
+
/* empty css */var container = "r95_1drc6y72";
|
|
3
|
+
var progress = "r95_1drc6y73";
|
|
4
|
+
var whiteBar = "r95_1drc6y71";
|
|
5
|
+
var wrapper = "r95_1drc6y70";
|
|
6
|
+
export {
|
|
7
|
+
container,
|
|
8
|
+
progress,
|
|
9
|
+
whiteBar,
|
|
10
|
+
wrapper
|
|
11
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.r95_1drc6y70 {
|
|
2
|
+
height: var(--r95-space-20);
|
|
3
|
+
position: relative;
|
|
4
|
+
text-align: center;
|
|
5
|
+
}
|
|
6
|
+
.r95_1drc6y71 {
|
|
7
|
+
height: var(--r95-space-20);
|
|
8
|
+
line-height: var(--r95-space-20);
|
|
9
|
+
border-left: var(--r95-space-1);
|
|
10
|
+
border-left-style: solid;
|
|
11
|
+
border-left-color: var(--r95-color-borderDark);
|
|
12
|
+
border-top: var(--r95-space-1);
|
|
13
|
+
border-top-style: solid;
|
|
14
|
+
border-top-color: var(--r95-color-borderDark);
|
|
15
|
+
background-color: var(--r95-color-inputBackground);
|
|
16
|
+
color: var(--r95-color-materialText);
|
|
17
|
+
box-shadow: var(--r95-shadow-input);
|
|
18
|
+
}
|
|
19
|
+
.r95_1drc6y72 {
|
|
20
|
+
position: absolute;
|
|
21
|
+
top: 0;
|
|
22
|
+
left: 0;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
}
|
|
25
|
+
.r95_1drc6y73 {
|
|
26
|
+
height: var(--r95-space-17);
|
|
27
|
+
line-height: var(--r95-space-18);
|
|
28
|
+
margin-left: var(--r95-space-2);
|
|
29
|
+
margin-top: var(--r95-space-2);
|
|
30
|
+
background-color: var(--r95-color-progress);
|
|
31
|
+
color: var(--r95-color-materialTextInvert);
|
|
32
|
+
}
|
|
@@ -1,29 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
width: width
|
|
22
|
-
}, "".concat(percent, "%")), /*#__PURE__*/React.createElement(Frame, {
|
|
23
|
-
className: styles.container,
|
|
24
|
-
width: "".concat(percent, "%")
|
|
25
|
-
}, /*#__PURE__*/React.createElement(Frame, {
|
|
26
|
-
className: styles.progress,
|
|
27
|
-
width: width
|
|
28
|
-
}, "".concat(percent, "%"))));
|
|
29
|
-
});
|
|
1
|
+
import React__default, { forwardRef } from "react";
|
|
2
|
+
import cn from "classnames";
|
|
3
|
+
import { Frame } from "../Frame/Frame.js";
|
|
4
|
+
import { wrapper, whiteBar, container, progress } from "./ProgressBar.css.js";
|
|
5
|
+
const ProgressBar = forwardRef(
|
|
6
|
+
({ width = "150px", percent = 0, ...rest }, ref) => /* @__PURE__ */ React__default.createElement(
|
|
7
|
+
Frame,
|
|
8
|
+
{
|
|
9
|
+
...rest,
|
|
10
|
+
width,
|
|
11
|
+
className: cn(wrapper, rest.className),
|
|
12
|
+
ref
|
|
13
|
+
},
|
|
14
|
+
/* @__PURE__ */ React__default.createElement(Frame, { className: whiteBar, width }, `${percent}%`),
|
|
15
|
+
/* @__PURE__ */ React__default.createElement(Frame, { className: container, width: `${percent}%` }, /* @__PURE__ */ React__default.createElement(Frame, { className: progress, width }, `${percent}%`))
|
|
16
|
+
)
|
|
17
|
+
);
|
|
18
|
+
export {
|
|
19
|
+
ProgressBar
|
|
20
|
+
};
|
|
@@ -1,49 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
imageRendering: 'pixelated'
|
|
13
|
-
});
|
|
14
|
-
export var text = style({
|
|
15
|
-
padding: contract.space[1],
|
|
16
|
-
userSelect: 'none',
|
|
17
|
-
position: 'absolute',
|
|
18
|
-
top: '0',
|
|
19
|
-
left: contract.space[18]
|
|
20
|
-
});
|
|
21
|
-
export var label = style({
|
|
22
|
-
position: 'relative',
|
|
23
|
-
marginBottom: contract.space[10],
|
|
24
|
-
display: 'block',
|
|
25
|
-
selectors: {
|
|
26
|
-
'&:has(:disabled)': {
|
|
27
|
-
color: contract.colors.materialTextDisabled,
|
|
28
|
-
textShadow: "0.5px 0.5px ".concat(contract.colors.materialTextDisabledShadow)
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
export var field = style({
|
|
33
|
-
margin: 0,
|
|
34
|
-
opacity: 0
|
|
35
|
-
});
|
|
36
|
-
globalStyle("".concat(field, ":focus ~ ").concat(text, ", &:active + ").concat(text), {
|
|
37
|
-
borderWidth: contract.space[1],
|
|
38
|
-
borderStyle: 'dotted',
|
|
39
|
-
padding: 0
|
|
40
|
-
});
|
|
41
|
-
globalStyle("".concat(field, ":checked + ").concat(icon), {
|
|
42
|
-
backgroundImage: "url('".concat(radioChecked, "')")
|
|
43
|
-
});
|
|
44
|
-
globalStyle("".concat(field, ":disabled + ").concat(icon), {
|
|
45
|
-
backgroundImage: "url('".concat(radioUncheckedDisabled, "')")
|
|
46
|
-
});
|
|
47
|
-
globalStyle("".concat(field, ":checked:disabled + ").concat(icon), {
|
|
48
|
-
backgroundImage: "url('".concat(radioCheckedDisabled, "')")
|
|
49
|
-
});
|
|
1
|
+
import './RadioButton.css.ts.vanilla.css';
|
|
2
|
+
/* empty css */var field = "r95_1rnz0nz3";
|
|
3
|
+
var icon = "r95_1rnz0nz0";
|
|
4
|
+
var label = "r95_1rnz0nz2";
|
|
5
|
+
var text = "r95_1rnz0nz1";
|
|
6
|
+
export {
|
|
7
|
+
field,
|
|
8
|
+
icon,
|
|
9
|
+
label,
|
|
10
|
+
text
|
|
11
|
+
};
|