@react95/core 8.0.0-alpha.1 → 8.0.0-alpha.11
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.js → Alert.cjs} +3 -3
- package/cjs/Alert/{Alert.css.js → Alert.css.cjs} +1 -1
- package/cjs/Avatar/Avatar.cjs +9 -0
- package/cjs/Avatar/{Avatar.css.js → Avatar.css.cjs} +1 -1
- package/cjs/Button/{Button.js → Button.cjs} +3 -3
- package/cjs/Button/{Button.css.js → Button.css.cjs} +1 -1
- package/cjs/Checkbox/{Checkbox.js → Checkbox.cjs} +1 -1
- package/cjs/Checkbox/{Checkbox.css.js → Checkbox.css.cjs} +1 -1
- package/cjs/Cursor/Cursor.css.cjs +5 -0
- package/cjs/Dropdown/{Dropdown.js → Dropdown.cjs} +4 -4
- package/cjs/Dropdown/{Dropdown.css.js → Dropdown.css.cjs} +1 -1
- package/cjs/Fieldset/{Fieldset.js → Fieldset.cjs} +3 -3
- package/cjs/Fieldset/{Fieldset.css.js → Fieldset.css.cjs} +1 -1
- package/cjs/Frame/{Frame.js → Frame.cjs} +3 -2
- package/cjs/Frame/Frame.css.cjs +48 -0
- package/cjs/Frame/Frame.css.ts.vanilla.css +399 -0
- package/cjs/GlobalStyle/{GlobalStyle.css.js → GlobalStyle.css.cjs} +1 -1
- package/cjs/{GlobalStyle.js → GlobalStyle.cjs} +1 -1
- package/cjs/Input/Input.cjs +7 -0
- package/cjs/Input/{Input.css.js → Input.css.cjs} +1 -1
- package/cjs/List/List.cjs +14 -0
- package/cjs/List/{List.css.js → List.css.cjs} +1 -1
- package/cjs/List/ListDivider.cjs +9 -0
- package/cjs/List/{ListItem.js → ListItem.cjs} +2 -2
- package/cjs/Modal/Modal.cjs +132 -0
- package/cjs/Modal/{Modal.css.js → Modal.css.cjs} +1 -1
- package/cjs/Modal/{ModalProvider.js → ModalProvider.cjs} +7 -22
- package/cjs/ProgressBar/{ProgressBar.js → ProgressBar.cjs} +2 -2
- package/cjs/ProgressBar/{ProgressBar.css.js → ProgressBar.css.cjs} +1 -1
- package/cjs/RadioButton/{RadioButton.js → RadioButton.cjs} +1 -1
- package/cjs/RadioButton/{RadioButton.css.js → RadioButton.css.cjs} +1 -1
- package/cjs/Range/Range.cjs +17 -0
- package/cjs/Range/{Range.css.js → Range.css.cjs} +1 -1
- package/cjs/Tabs/{Tab.js → Tab.cjs} +2 -2
- package/cjs/Tabs/{Tabs.js → Tabs.cjs} +19 -22
- package/cjs/Tabs/{Tabs.css.js → Tabs.css.cjs} +1 -1
- package/cjs/TaskBar/{Clock.js → Clock.cjs} +3 -3
- package/cjs/TaskBar/{TaskBar.js → TaskBar.cjs} +5 -5
- package/cjs/TaskBar/{TaskBar.css.js → TaskBar.css.cjs} +1 -1
- package/cjs/TaskBar/TaskBar.css.ts.vanilla.css +1 -0
- package/cjs/TaskBar/{WindowButton.js → WindowButton.cjs} +1 -1
- package/cjs/TextArea/TextArea.cjs +9 -0
- package/cjs/TitleBar/{TitleBar.js → TitleBar.cjs} +13 -11
- package/cjs/TitleBar/{TitleBar.css.js → TitleBar.css.cjs} +1 -1
- package/cjs/Tooltip/{Tooltip.js → Tooltip.cjs} +6 -23
- package/cjs/Tooltip/{Tooltip.css.js → Tooltip.css.cjs} +1 -1
- package/cjs/Tree/Node.cjs +122 -0
- package/cjs/Tree/{Tree.js → Tree.cjs} +3 -3
- package/cjs/Tree/{Tree.css.js → Tree.css.cjs} +1 -1
- package/cjs/Tree/Tree.css.ts.vanilla.css +1 -1
- package/cjs/Video/{Video.js → Video.cjs} +37 -53
- package/cjs/Video/{Video.css.js → Video.css.cjs} +1 -1
- package/cjs/Video/buttons/Fullscreen.cjs +22 -0
- package/cjs/Video/buttons/Pause.cjs +16 -0
- package/cjs/Video/buttons/Play.cjs +16 -0
- package/cjs/Video/buttons/Stop.cjs +15 -0
- package/cjs/index.cjs +50 -0
- package/cjs/themes/{azureOrange.css.js → azureOrange.css.cjs} +1 -1
- package/cjs/themes/{bee.css.js → bee.css.cjs} +1 -1
- package/cjs/themes/{blackAndWhite.css.js → blackAndWhite.css.cjs} +1 -1
- package/cjs/themes/{brick.css.js → brick.css.cjs} +1 -1
- package/cjs/themes/{candy.css.js → candy.css.cjs} +1 -1
- package/cjs/themes/{coldGray.css.js → coldGray.css.cjs} +1 -1
- package/cjs/themes/{counterStrike.css.js → counterStrike.css.cjs} +1 -1
- package/cjs/themes/{eggplant.css.js → eggplant.css.cjs} +1 -1
- package/cjs/themes/{highContrast.css.js → highContrast.css.cjs} +1 -1
- package/cjs/themes/{lilac.css.js → lilac.css.cjs} +1 -1
- package/cjs/themes/{lilacRoseDark.css.js → lilacRoseDark.css.cjs} +1 -1
- package/cjs/themes/{maple.css.js → maple.css.cjs} +1 -1
- package/cjs/themes/{marine.css.js → marine.css.cjs} +1 -1
- package/cjs/themes/{matrix.css.js → matrix.css.cjs} +1 -1
- package/cjs/themes/{millenium.css.js → millenium.css.cjs} +1 -1
- package/cjs/themes/{modernDark.css.js → modernDark.css.cjs} +1 -1
- package/cjs/themes/{molecule.css.js → molecule.css.cjs} +1 -1
- package/cjs/themes/{ninjaTurtles.css.js → ninjaTurtles.css.cjs} +1 -1
- package/cjs/themes/{olive.css.js → olive.css.cjs} +1 -1
- package/cjs/themes/{pamelaAnderson.css.js → pamelaAnderson.css.cjs} +1 -1
- package/cjs/themes/{plum.css.js → plum.css.cjs} +1 -1
- package/cjs/themes/{rainyDay.css.js → rainyDay.css.cjs} +1 -1
- package/cjs/themes/{rose.css.js → rose.css.cjs} +1 -1
- package/cjs/themes/{slate.css.js → slate.css.cjs} +1 -1
- package/cjs/themes/{spruce.css.js → spruce.css.cjs} +1 -1
- package/cjs/themes/{storm.css.js → storm.css.cjs} +1 -1
- package/cjs/themes/{theSixtiesUSA.css.js → theSixtiesUSA.css.cjs} +1 -1
- package/cjs/themes/{tokyoDark.css.js → tokyoDark.css.cjs} +1 -1
- package/cjs/themes/{tooSexy.css.js → tooSexy.css.cjs} +1 -1
- package/cjs/themes/{travel.css.js → travel.css.cjs} +1 -1
- package/cjs/themes/{vaporTeal.css.js → vaporTeal.css.cjs} +1 -1
- package/cjs/themes/{vermillion.css.js → vermillion.css.cjs} +1 -1
- package/cjs/themes/{violetDark.css.js → violetDark.css.cjs} +1 -1
- package/cjs/themes/{water.css.js → water.css.cjs} +1 -1
- package/cjs/themes/{win95.css.js → win95.css.cjs} +1 -1
- package/cjs/themes.cjs +72 -0
- package/esm/Alert/{Alert.css.js → Alert.css.mjs} +1 -1
- package/esm/Alert/Alert.mjs +43 -0
- package/esm/Avatar/{Avatar.css.js → Avatar.css.mjs} +1 -1
- package/esm/Avatar/{Avatar.js → Avatar.mjs} +4 -4
- package/esm/Button/Button.css.mjs +5 -0
- package/esm/Button/Button.mjs +20 -0
- package/esm/Checkbox/{Checkbox.css.js → Checkbox.css.mjs} +1 -1
- package/esm/Checkbox/Checkbox.mjs +17 -0
- package/esm/Cursor/Cursor.css.mjs +5 -0
- package/esm/Dropdown/{Dropdown.css.js → Dropdown.css.mjs} +1 -1
- package/esm/Dropdown/Dropdown.mjs +20 -0
- package/esm/Fieldset/{Fieldset.css.js → Fieldset.css.mjs} +1 -1
- 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.js → Frame.mjs} +5 -4
- package/esm/GlobalStyle/GlobalStyle.css.mjs +2 -0
- package/esm/{GlobalStyle.js → GlobalStyle.mjs} +1 -1
- package/esm/Input/Input.css.mjs +5 -0
- package/esm/Input/Input.mjs +7 -0
- package/esm/List/{List.css.js → List.css.mjs} +1 -1
- package/esm/List/List.mjs +14 -0
- package/esm/List/ListDivider.mjs +9 -0
- package/esm/List/ListItem.mjs +12 -0
- package/esm/Modal/{Modal.css.js → Modal.css.mjs} +1 -1
- package/esm/Modal/{Modal.js → Modal.mjs} +16 -18
- package/esm/Modal/{ModalProvider.js → ModalProvider.mjs} +7 -5
- package/esm/ProgressBar/{ProgressBar.css.js → ProgressBar.css.mjs} +1 -1
- package/esm/ProgressBar/ProgressBar.mjs +20 -0
- package/esm/RadioButton/{RadioButton.css.js → RadioButton.css.mjs} +1 -1
- package/esm/RadioButton/RadioButton.mjs +17 -0
- package/esm/Range/Range.css.mjs +5 -0
- package/esm/Range/Range.mjs +17 -0
- package/esm/Tabs/Tab.mjs +18 -0
- package/esm/Tabs/{Tabs.css.js → Tabs.css.mjs} +1 -1
- package/esm/Tabs/Tabs.mjs +47 -0
- package/esm/TaskBar/{Clock.js → Clock.mjs} +6 -6
- package/esm/TaskBar/{TaskBar.css.js → TaskBar.css.mjs} +1 -1
- package/esm/TaskBar/TaskBar.css.ts.vanilla.css +1 -0
- package/esm/TaskBar/{TaskBar.js → TaskBar.mjs} +14 -14
- package/esm/TaskBar/WindowButton.mjs +17 -0
- package/esm/TextArea/TextArea.mjs +9 -0
- package/esm/TitleBar/{TitleBar.css.js → TitleBar.css.mjs} +1 -1
- package/esm/TitleBar/TitleBar.mjs +47 -0
- package/esm/Tooltip/{Tooltip.css.js → Tooltip.css.mjs} +1 -1
- package/esm/Tooltip/{Tooltip.js → Tooltip.mjs} +5 -5
- package/esm/Tree/{Node.js → Node.mjs} +4 -4
- package/esm/Tree/{Tree.css.js → Tree.css.mjs} +1 -1
- package/esm/Tree/Tree.css.ts.vanilla.css +1 -1
- package/esm/Tree/Tree.mjs +16 -0
- package/esm/Video/{Video.css.js → Video.css.mjs} +1 -1
- package/esm/Video/{Video.js → Video.mjs} +23 -22
- package/esm/Video/buttons/{Fullscreen.js → Fullscreen.mjs} +1 -1
- package/esm/Video/buttons/{Pause.js → Pause.mjs} +1 -1
- package/esm/Video/buttons/{Play.js → Play.mjs} +1 -1
- package/esm/Video/buttons/{Stop.js → Stop.mjs} +1 -1
- package/esm/index.mjs +50 -0
- package/esm/themes/azureOrange.css.mjs +2 -0
- package/esm/themes/bee.css.mjs +2 -0
- package/esm/themes/blackAndWhite.css.mjs +2 -0
- package/esm/themes/brick.css.mjs +2 -0
- package/esm/themes/candy.css.mjs +2 -0
- package/esm/themes/coldGray.css.mjs +2 -0
- package/esm/themes/counterStrike.css.mjs +2 -0
- package/esm/themes/eggplant.css.mjs +2 -0
- package/esm/themes/highContrast.css.mjs +2 -0
- package/esm/themes/lilac.css.mjs +2 -0
- package/esm/themes/lilacRoseDark.css.mjs +2 -0
- package/esm/themes/maple.css.mjs +2 -0
- package/esm/themes/marine.css.mjs +2 -0
- package/esm/themes/matrix.css.mjs +2 -0
- package/esm/themes/millenium.css.mjs +2 -0
- package/esm/themes/modernDark.css.mjs +2 -0
- package/esm/themes/molecule.css.mjs +2 -0
- package/esm/themes/ninjaTurtles.css.mjs +2 -0
- package/esm/themes/olive.css.mjs +2 -0
- package/esm/themes/pamelaAnderson.css.mjs +2 -0
- package/esm/themes/plum.css.mjs +2 -0
- package/esm/themes/rainyDay.css.mjs +2 -0
- package/esm/themes/rose.css.mjs +2 -0
- package/esm/themes/slate.css.mjs +2 -0
- package/esm/themes/spruce.css.mjs +2 -0
- package/esm/themes/storm.css.mjs +2 -0
- package/esm/themes/theSixtiesUSA.css.mjs +2 -0
- package/esm/themes/tokyoDark.css.mjs +2 -0
- package/esm/themes/tooSexy.css.mjs +2 -0
- package/esm/themes/travel.css.mjs +2 -0
- package/esm/themes/vaporTeal.css.mjs +2 -0
- package/esm/themes/vermillion.css.mjs +2 -0
- package/esm/themes/violetDark.css.mjs +2 -0
- package/esm/themes/water.css.mjs +2 -0
- package/esm/themes/win95.css.mjs +2 -0
- package/esm/themes.mjs +72 -0
- package/package.json +20 -11
- package/types/Avatar/Avatar.d.ts +9 -0
- package/types/Button/Button.d.ts +7 -0
- package/{@types → types}/Checkbox/Checkbox.d.ts +3 -2
- package/{@types → types}/Dropdown/Dropdown.d.ts +2 -1
- package/{@types → types}/Fieldset/Fieldset.d.ts +2 -1
- package/{@types/Frame/sprinkles.css.d.ts → types/Frame/Frame.css.d.ts} +141 -116
- package/{@types → types}/Frame/Frame.d.ts +10 -7
- package/{@types → types}/Frame/props.d.ts +1 -1
- package/{@types → types}/Input/Input.d.ts +1 -1
- package/{@types → types}/List/ListItem.d.ts +3 -2
- package/{@types → types}/Modal/Modal.d.ts +8 -8
- package/{@types → types}/Modal/ModalContext.d.ts +2 -2
- package/types/Modal/ModalProvider.d.ts +3 -0
- package/types/ProgressBar/ProgressBar.d.ts +9 -0
- package/{@types → types}/RadioButton/RadioButton.d.ts +2 -1
- package/{@types → types}/Range/Range.d.ts +1 -1
- package/{@types → types}/Tabs/Tab.d.ts +3 -2
- package/{@types → types}/Tabs/Tabs.d.ts +3 -2
- package/{@types → types}/TaskBar/TaskBar.d.ts +2 -1
- package/{@types → types}/TaskBar/WindowButton.d.ts +2 -1
- package/{@types → types}/TextArea/TextArea.d.ts +1 -1
- package/{@types → types}/TitleBar/TitleBar.d.ts +5 -4
- package/{@types → types}/Tooltip/Tooltip.d.ts +3 -2
- package/{@types → types}/Tree/Node.d.ts +7 -6
- package/{@types → types}/Tree/Tree.d.ts +2 -2
- package/types/Video/Video.d.ts +17 -0
- package/types/Video/buttons/Fullscreen.d.ts +4 -0
- package/types/Video/buttons/Pause.d.ts +4 -0
- package/types/Video/buttons/Play.d.ts +4 -0
- package/types/Video/buttons/Stop.d.ts +4 -0
- package/{@types → types}/themes/all.d.ts +30 -30
- package/@types/Avatar/Avatar.d.ts +0 -6
- package/@types/Button/Button.d.ts +0 -4
- package/@types/Modal/ModalProvider.d.ts +0 -3
- package/@types/ProgressBar/ProgressBar.d.ts +0 -6
- package/@types/Video/Video.d.ts +0 -16
- package/@types/Video/buttons/Fullscreen.d.ts +0 -3
- package/@types/Video/buttons/Pause.d.ts +0 -3
- package/@types/Video/buttons/Play.d.ts +0 -3
- package/@types/Video/buttons/Stop.d.ts +0 -3
- package/cjs/Avatar/Avatar.js +0 -26
- package/cjs/Cursor/Cursor.css.js +0 -5
- package/cjs/Frame/sprinkles.css.js +0 -47
- package/cjs/Input/Input.js +0 -26
- package/cjs/List/List.js +0 -16
- package/cjs/List/ListDivider.js +0 -19
- package/cjs/Modal/Modal.js +0 -151
- package/cjs/Range/Range.js +0 -36
- package/cjs/TextArea/TextArea.js +0 -26
- package/cjs/Tree/Node.js +0 -139
- package/cjs/Video/buttons/Fullscreen.js +0 -39
- package/cjs/Video/buttons/Pause.js +0 -33
- package/cjs/Video/buttons/Play.js +0 -33
- package/cjs/Video/buttons/Stop.js +0 -32
- package/cjs/index.js +0 -50
- package/cjs/theme.js +0 -72
- package/cjs/themes/sprinkles.css.ts.vanilla.css +0 -399
- package/esm/Alert/Alert.js +0 -43
- package/esm/Button/Button.css.js +0 -5
- package/esm/Button/Button.js +0 -20
- package/esm/Checkbox/Checkbox.js +0 -17
- package/esm/Cursor/Cursor.css.js +0 -5
- package/esm/Dropdown/Dropdown.js +0 -20
- package/esm/Fieldset/Fieldset.js +0 -9
- package/esm/Frame/sprinkles.css.js +0 -47
- package/esm/GlobalStyle/GlobalStyle.css.js +0 -2
- package/esm/Input/Input.css.js +0 -5
- package/esm/Input/Input.js +0 -9
- package/esm/List/List.js +0 -16
- package/esm/List/ListDivider.js +0 -19
- package/esm/List/ListItem.js +0 -12
- package/esm/ProgressBar/ProgressBar.js +0 -20
- package/esm/RadioButton/RadioButton.js +0 -17
- package/esm/Range/Range.css.js +0 -5
- package/esm/Range/Range.js +0 -19
- package/esm/Tabs/Tab.js +0 -18
- package/esm/Tabs/Tabs.js +0 -50
- package/esm/TaskBar/WindowButton.js +0 -17
- package/esm/TextArea/TextArea.js +0 -9
- package/esm/TitleBar/TitleBar.js +0 -45
- package/esm/Tree/Tree.js +0 -16
- package/esm/index.js +0 -50
- package/esm/theme.js +0 -72
- package/esm/themes/azureOrange.css.js +0 -2
- package/esm/themes/bee.css.js +0 -2
- package/esm/themes/blackAndWhite.css.js +0 -2
- package/esm/themes/brick.css.js +0 -2
- package/esm/themes/candy.css.js +0 -2
- package/esm/themes/coldGray.css.js +0 -2
- package/esm/themes/counterStrike.css.js +0 -2
- package/esm/themes/eggplant.css.js +0 -2
- package/esm/themes/highContrast.css.js +0 -2
- package/esm/themes/lilac.css.js +0 -2
- package/esm/themes/lilacRoseDark.css.js +0 -2
- package/esm/themes/maple.css.js +0 -2
- package/esm/themes/marine.css.js +0 -2
- package/esm/themes/matrix.css.js +0 -2
- package/esm/themes/millenium.css.js +0 -2
- package/esm/themes/modernDark.css.js +0 -2
- package/esm/themes/molecule.css.js +0 -2
- package/esm/themes/ninjaTurtles.css.js +0 -2
- package/esm/themes/olive.css.js +0 -2
- package/esm/themes/pamelaAnderson.css.js +0 -2
- package/esm/themes/plum.css.js +0 -2
- package/esm/themes/rainyDay.css.js +0 -2
- package/esm/themes/rose.css.js +0 -2
- package/esm/themes/slate.css.js +0 -2
- package/esm/themes/sprinkles.css.ts.vanilla.css +0 -399
- package/esm/themes/spruce.css.js +0 -2
- package/esm/themes/storm.css.js +0 -2
- package/esm/themes/theSixtiesUSA.css.js +0 -2
- package/esm/themes/tokyoDark.css.js +0 -2
- package/esm/themes/tooSexy.css.js +0 -2
- package/esm/themes/travel.css.js +0 -2
- package/esm/themes/vaporTeal.css.js +0 -2
- package/esm/themes/vermillion.css.js +0 -2
- package/esm/themes/violetDark.css.js +0 -2
- package/esm/themes/water.css.js +0 -2
- package/esm/themes/win95.css.js +0 -2
- package/cjs/Alert/assets/{chord.mp3.js → chord.mp3.cjs} +0 -0
- package/cjs/Modal/{ModalContext.js → ModalContext.cjs} +0 -0
- package/cjs/Modal/{close.svg.js → close.svg.cjs} +0 -0
- package/cjs/Modal/{help.svg.js → help.svg.cjs} +0 -0
- package/esm/Alert/assets/{chord.mp3.js → chord.mp3.mjs} +0 -0
- package/esm/Modal/{ModalContext.js → ModalContext.mjs} +0 -0
- package/esm/Modal/{close.svg.js → close.svg.mjs} +0 -0
- package/esm/Modal/{help.svg.js → help.svg.mjs} +0 -0
- 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}/Button/Button.css.d.ts +0 -0
- package/{@types → types}/Checkbox/Checkbox.css.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}/Fieldset/Fieldset.css.d.ts +0 -0
- package/{@types → types}/Input/Input.css.d.ts +0 -0
- package/{@types → types}/List/List.css.d.ts +0 -0
- package/{@types → types}/List/List.d.ts +1 -1
- /package/{@types → types}/List/ListDivider.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}/RadioButton/RadioButton.css.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}/Tabs/Tabs.css.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}/TitleBar/TitleBar.css.d.ts +0 -0
- /package/{@types → types}/Tooltip/Tooltip.css.d.ts +0 -0
- /package/{@types → types}/Tree/Tree.css.d.ts +0 -0
- /package/{@types → types}/Video/Video.css.d.ts +0 -0
- /package/{@types → types}/Video/buttons/index.d.ts +0 -0
- /package/{@types → types}/index.d.ts +0 -0
- /package/{@types → types}/shared/font-names.d.ts +0 -0
- /package/{@types → types}/themes/azureOrange.css.d.ts +0 -0
- /package/{@types → types}/themes/baseTheme.d.ts +0 -0
- /package/{@types → types}/themes/bee.css.d.ts +0 -0
- /package/{@types → types}/themes/blackAndWhite.css.d.ts +0 -0
- /package/{@types → types}/themes/brick.css.d.ts +0 -0
- /package/{@types → types}/themes/candy.css.d.ts +0 -0
- /package/{@types → types}/themes/coldGray.css.d.ts +0 -0
- /package/{@types → types}/themes/contract.css.d.ts +0 -0
- /package/{@types → types}/themes/counterStrike.css.d.ts +0 -0
- /package/{@types → types}/themes/eggplant.css.d.ts +0 -0
- /package/{@types → types}/themes/highContrast.css.d.ts +0 -0
- /package/{@types → types}/themes/lilac.css.d.ts +0 -0
- /package/{@types → types}/themes/lilacRoseDark.css.d.ts +0 -0
- /package/{@types → types}/themes/maple.css.d.ts +0 -0
- /package/{@types → types}/themes/marine.css.d.ts +0 -0
- /package/{@types → types}/themes/matrix.css.d.ts +0 -0
- /package/{@types → types}/themes/millenium.css.d.ts +0 -0
- /package/{@types → types}/themes/modernDark.css.d.ts +0 -0
- /package/{@types → types}/themes/molecule.css.d.ts +0 -0
- /package/{@types → types}/themes/ninjaTurtles.css.d.ts +0 -0
- /package/{@types → types}/themes/olive.css.d.ts +0 -0
- /package/{@types → types}/themes/pamelaAnderson.css.d.ts +0 -0
- /package/{@types → types}/themes/plum.css.d.ts +0 -0
- /package/{@types → types}/themes/rainyDay.css.d.ts +0 -0
- /package/{@types → types}/themes/rose.css.d.ts +0 -0
- /package/{@types → types}/themes/slate.css.d.ts +0 -0
- /package/{@types → types}/themes/spruce.css.d.ts +0 -0
- /package/{@types → types}/themes/storm.css.d.ts +0 -0
- /package/{@types → types}/themes/theSixtiesUSA.css.d.ts +0 -0
- /package/{@types → types}/themes/tokyoDark.css.d.ts +0 -0
- /package/{@types → types}/themes/tooSexy.css.d.ts +0 -0
- /package/{@types → types}/themes/travel.css.d.ts +0 -0
- /package/{@types → types}/themes/vaporTeal.css.d.ts +0 -0
- /package/{@types → types}/themes/vermillion.css.d.ts +0 -0
- /package/{@types → types}/themes/violetDark.css.d.ts +0 -0
- /package/{@types → types}/themes/water.css.d.ts +0 -0
- /package/{@types → types}/themes/win95.css.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { nanoid } from "nanoid";
|
|
2
|
-
import
|
|
3
|
-
import { ModalContext } from "./ModalContext.
|
|
2
|
+
import React, { useReducer, useState } from "react";
|
|
3
|
+
import { ModalContext } from "./ModalContext.mjs";
|
|
4
4
|
const windowStackReducer = (state, action) => {
|
|
5
5
|
const newWindows = { ...state };
|
|
6
6
|
switch (action.type) {
|
|
@@ -20,9 +20,11 @@ const windowStackReducer = (state, action) => {
|
|
|
20
20
|
return state;
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
|
-
const ModalProvider = ({
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
const ModalProvider = ({
|
|
24
|
+
children
|
|
25
|
+
}) => {
|
|
26
|
+
const [windows, dispatch] = useReducer(windowStackReducer, {});
|
|
27
|
+
const [activeWindow, setActiveWindow] = useState();
|
|
26
28
|
const addWindows = (window) => {
|
|
27
29
|
const id = nanoid();
|
|
28
30
|
dispatch({ type: "ADD_WINDOW", id, window });
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { forwardRef } from "react";
|
|
2
|
+
import cn from "classnames";
|
|
3
|
+
import { Frame } from "../Frame/Frame.mjs";
|
|
4
|
+
import { wrapper, whiteBar, container, progress } from "./ProgressBar.css.mjs";
|
|
5
|
+
const ProgressBar = forwardRef(
|
|
6
|
+
({ width = "150px", percent = 0, ...rest }, ref) => /* @__PURE__ */ React.createElement(
|
|
7
|
+
Frame,
|
|
8
|
+
{
|
|
9
|
+
...rest,
|
|
10
|
+
width,
|
|
11
|
+
className: cn(wrapper, rest.className),
|
|
12
|
+
ref
|
|
13
|
+
},
|
|
14
|
+
/* @__PURE__ */ React.createElement(Frame, { className: whiteBar, width }, `${percent}%`),
|
|
15
|
+
/* @__PURE__ */ React.createElement(Frame, { className: container, width: `${percent}%` }, /* @__PURE__ */ React.createElement(Frame, { className: progress, width }, `${percent}%`))
|
|
16
|
+
)
|
|
17
|
+
);
|
|
18
|
+
export {
|
|
19
|
+
ProgressBar
|
|
20
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { forwardRef } from "react";
|
|
2
|
+
import { label, field, icon, text } from "./RadioButton.css.mjs";
|
|
3
|
+
const RadioButton = forwardRef(
|
|
4
|
+
({ children, disabled, ...props }, ref) => /* @__PURE__ */ React.createElement("label", { className: label }, /* @__PURE__ */ React.createElement(
|
|
5
|
+
"input",
|
|
6
|
+
{
|
|
7
|
+
type: "radio",
|
|
8
|
+
disabled,
|
|
9
|
+
className: field,
|
|
10
|
+
ref,
|
|
11
|
+
...props
|
|
12
|
+
}
|
|
13
|
+
), /* @__PURE__ */ React.createElement("span", { className: icon }), /* @__PURE__ */ React.createElement("span", { className: text }, children))
|
|
14
|
+
);
|
|
15
|
+
export {
|
|
16
|
+
RadioButton
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { forwardRef } from "react";
|
|
2
|
+
import { Frame } from "../Frame/Frame.mjs";
|
|
3
|
+
import { range } from "./Range.css.mjs";
|
|
4
|
+
import cn from "classnames";
|
|
5
|
+
const Range = forwardRef((rest, ref) => /* @__PURE__ */ React.createElement(
|
|
6
|
+
Frame,
|
|
7
|
+
{
|
|
8
|
+
...rest,
|
|
9
|
+
ref,
|
|
10
|
+
className: cn(range, rest.className),
|
|
11
|
+
as: "input",
|
|
12
|
+
type: "range"
|
|
13
|
+
}
|
|
14
|
+
));
|
|
15
|
+
export {
|
|
16
|
+
Range
|
|
17
|
+
};
|
package/esm/Tabs/Tab.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { forwardRef } from "react";
|
|
2
|
+
import { tab } from "./Tabs.css.mjs";
|
|
3
|
+
import { Frame } from "../Frame/Frame.mjs";
|
|
4
|
+
const Tab = forwardRef(
|
|
5
|
+
({ activeTab, title, ...rest }, ref) => /* @__PURE__ */ React.createElement(
|
|
6
|
+
Frame,
|
|
7
|
+
{
|
|
8
|
+
...rest,
|
|
9
|
+
className: tab({ active: activeTab === title }),
|
|
10
|
+
ref,
|
|
11
|
+
as: "li"
|
|
12
|
+
},
|
|
13
|
+
title
|
|
14
|
+
)
|
|
15
|
+
);
|
|
16
|
+
export {
|
|
17
|
+
Tab
|
|
18
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './Tabs.css.ts.vanilla.css';
|
|
2
|
-
/* empty css
|
|
2
|
+
/* empty css */import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
3
|
var navContainer = "r95_fyllcd1";
|
|
4
4
|
var navbar = "r95_fyllcd0";
|
|
5
5
|
var tab = createRuntimeFn({ defaultClassName: "r95_fyllcd2", variantClassNames: { active: { true: "r95_fyllcd3" } }, defaultVariants: {}, compoundVariants: [] });
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React, { forwardRef, Children, useState } from "react";
|
|
2
|
+
import cn from "classnames";
|
|
3
|
+
import { Tab } from "./Tab.mjs";
|
|
4
|
+
import { navbar, navContainer } from "./Tabs.css.mjs";
|
|
5
|
+
import { Frame } from "../Frame/Frame.mjs";
|
|
6
|
+
const Tabs = forwardRef(
|
|
7
|
+
({ children, defaultActiveTab, onChange, ...rest }, ref) => {
|
|
8
|
+
const [firstTab] = Children.toArray(children);
|
|
9
|
+
const [activeTab, setActiveTab] = useState(
|
|
10
|
+
defaultActiveTab || firstTab.props.title
|
|
11
|
+
);
|
|
12
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
13
|
+
Frame,
|
|
14
|
+
{
|
|
15
|
+
...rest,
|
|
16
|
+
className: cn(navbar, rest.className),
|
|
17
|
+
as: "ol",
|
|
18
|
+
ref
|
|
19
|
+
},
|
|
20
|
+
Children.map(children, (child) => {
|
|
21
|
+
const { title, disabled } = child.props;
|
|
22
|
+
return /* @__PURE__ */ React.createElement(
|
|
23
|
+
Tab,
|
|
24
|
+
{
|
|
25
|
+
key: title,
|
|
26
|
+
...child.props,
|
|
27
|
+
activeTab,
|
|
28
|
+
onClick: (e) => {
|
|
29
|
+
if (!disabled) {
|
|
30
|
+
if (onChange) {
|
|
31
|
+
onChange(title, e);
|
|
32
|
+
}
|
|
33
|
+
setActiveTab(title);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
})
|
|
39
|
+
), /* @__PURE__ */ React.createElement(Frame, { className: navContainer, width: rest.width || rest.w }, Children.map(
|
|
40
|
+
children,
|
|
41
|
+
(child) => child.props.title === activeTab && child.props.children
|
|
42
|
+
)));
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
export {
|
|
46
|
+
Tabs
|
|
47
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Frame } from "../Frame/Frame.
|
|
3
|
-
import { Tooltip } from "../Tooltip/Tooltip.
|
|
4
|
-
import { tooltip } from "./TaskBar.css.
|
|
1
|
+
import React, { useState, useEffect } from "react";
|
|
2
|
+
import { Frame } from "../Frame/Frame.mjs";
|
|
3
|
+
import { Tooltip } from "../Tooltip/Tooltip.mjs";
|
|
4
|
+
import { tooltip } from "./TaskBar.css.mjs";
|
|
5
5
|
const Clock = () => {
|
|
6
6
|
const [timer, setTimer] = useState("");
|
|
7
7
|
useEffect(() => {
|
|
@@ -16,7 +16,7 @@ const Clock = () => {
|
|
|
16
16
|
});
|
|
17
17
|
return () => clearInterval(interval);
|
|
18
18
|
}, []);
|
|
19
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ React.createElement(
|
|
20
20
|
Frame,
|
|
21
21
|
{
|
|
22
22
|
boxShadow: "$in",
|
|
@@ -26,7 +26,7 @@ const Clock = () => {
|
|
|
26
26
|
justifyContent: "center",
|
|
27
27
|
alignItems: "center"
|
|
28
28
|
},
|
|
29
|
-
/* @__PURE__ */
|
|
29
|
+
/* @__PURE__ */ React.createElement(Tooltip, { className: tooltip }, timer)
|
|
30
30
|
);
|
|
31
31
|
};
|
|
32
32
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './TaskBar.css.ts.vanilla.css';
|
|
2
|
-
/* empty css
|
|
2
|
+
/* empty css */import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
3
|
var icon = "r95_1ct83mo9";
|
|
4
4
|
var tooltip = "r95_1ct83mo1";
|
|
5
5
|
var truncate = "r95_1ct83mo0";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ModalContext } from "../Modal/ModalContext.
|
|
3
|
-
import { Frame } from "../Frame/Frame.
|
|
4
|
-
import { Clock } from "./Clock.
|
|
5
|
-
import { WindowButton } from "./WindowButton.
|
|
1
|
+
import React, { forwardRef, useState, useContext } from "react";
|
|
2
|
+
import { ModalContext } from "../Modal/ModalContext.mjs";
|
|
3
|
+
import { Frame } from "../Frame/Frame.mjs";
|
|
4
|
+
import { Clock } from "./Clock.mjs";
|
|
5
|
+
import { WindowButton } from "./WindowButton.mjs";
|
|
6
6
|
import { Logo } from "@react95/icons";
|
|
7
|
-
import { truncate } from "./TaskBar.css.
|
|
7
|
+
import { truncate } from "./TaskBar.css.mjs";
|
|
8
8
|
const TaskBar = forwardRef(
|
|
9
9
|
({ list }, ref) => {
|
|
10
10
|
const [showList, toggleShowList] = useState(false);
|
|
11
11
|
const [activeStart, toggleActiveStart] = useState(false);
|
|
12
12
|
const { windows, activeWindow, setActiveWindow } = useContext(ModalContext);
|
|
13
|
-
return /* @__PURE__ */
|
|
13
|
+
return /* @__PURE__ */ React.createElement(
|
|
14
14
|
Frame,
|
|
15
15
|
{
|
|
16
16
|
position: "fixed",
|
|
@@ -27,7 +27,7 @@ const TaskBar = forwardRef(
|
|
|
27
27
|
boxShadow: "$out",
|
|
28
28
|
ref
|
|
29
29
|
},
|
|
30
|
-
showList && /* @__PURE__ */
|
|
30
|
+
showList && /* @__PURE__ */ React.createElement(
|
|
31
31
|
Frame,
|
|
32
32
|
{
|
|
33
33
|
position: "absolute",
|
|
@@ -39,11 +39,11 @@ const TaskBar = forwardRef(
|
|
|
39
39
|
},
|
|
40
40
|
list
|
|
41
41
|
),
|
|
42
|
-
/* @__PURE__ */
|
|
42
|
+
/* @__PURE__ */ React.createElement(
|
|
43
43
|
WindowButton,
|
|
44
44
|
{
|
|
45
45
|
small: true,
|
|
46
|
-
icon: /* @__PURE__ */
|
|
46
|
+
icon: /* @__PURE__ */ React.createElement(Logo, { variant: "32x32_4" }),
|
|
47
47
|
active: activeStart,
|
|
48
48
|
onClick: () => {
|
|
49
49
|
toggleActiveStart(!activeStart);
|
|
@@ -52,8 +52,8 @@ const TaskBar = forwardRef(
|
|
|
52
52
|
},
|
|
53
53
|
"Start"
|
|
54
54
|
),
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
([windowId, { icon, title, hasButton }]) => hasButton && /* @__PURE__ */
|
|
55
|
+
/* @__PURE__ */ React.createElement(Frame, { w: "100%", paddingLeft: "$0", ml: "$2", display: "flex" }, Object.entries(windows).map(
|
|
56
|
+
([windowId, { icon, title, hasButton }]) => hasButton && /* @__PURE__ */ React.createElement(
|
|
57
57
|
WindowButton,
|
|
58
58
|
{
|
|
59
59
|
key: windowId,
|
|
@@ -62,10 +62,10 @@ const TaskBar = forwardRef(
|
|
|
62
62
|
onClick: () => setActiveWindow(windowId),
|
|
63
63
|
small: false
|
|
64
64
|
},
|
|
65
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ React.createElement("div", { className: truncate }, title)
|
|
66
66
|
)
|
|
67
67
|
)),
|
|
68
|
-
/* @__PURE__ */
|
|
68
|
+
/* @__PURE__ */ React.createElement(Clock, null)
|
|
69
69
|
);
|
|
70
70
|
}
|
|
71
71
|
);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { forwardRef } from "react";
|
|
2
|
+
import { windowsButton, icon } from "./TaskBar.css.mjs";
|
|
3
|
+
const WindowButton = forwardRef(
|
|
4
|
+
({ children, small = false, icon: icon$1, active = false, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
5
|
+
"button",
|
|
6
|
+
{
|
|
7
|
+
className: windowsButton({ active, small }),
|
|
8
|
+
...props,
|
|
9
|
+
ref
|
|
10
|
+
},
|
|
11
|
+
/* @__PURE__ */ React.createElement("div", { className: icon }, icon$1),
|
|
12
|
+
children
|
|
13
|
+
)
|
|
14
|
+
);
|
|
15
|
+
export {
|
|
16
|
+
WindowButton
|
|
17
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { forwardRef } from "react";
|
|
2
|
+
import { Frame } from "../Frame/Frame.mjs";
|
|
3
|
+
import { input } from "../Input/Input.css.mjs";
|
|
4
|
+
const TextArea = forwardRef(
|
|
5
|
+
(rest, ref) => /* @__PURE__ */ React.createElement(Frame, { ...rest, ref, className: input, as: "textarea" })
|
|
6
|
+
);
|
|
7
|
+
export {
|
|
8
|
+
TextArea
|
|
9
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './TitleBar.css.ts.vanilla.css';
|
|
2
|
-
/* empty css
|
|
2
|
+
/* empty css */import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
3
|
var option = "r95_1kpzw681";
|
|
4
4
|
var optionsBox = "r95_1kpzw680";
|
|
5
5
|
var title = "r95_1kpzw685";
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React, { forwardRef } from "react";
|
|
2
|
+
import { Frame } from "../Frame/Frame.mjs";
|
|
3
|
+
import { optionsBox, option, titleBarBackground, title } from "./TitleBar.css.mjs";
|
|
4
|
+
import { button } from "../Button/Button.css.mjs";
|
|
5
|
+
import cn from "classnames";
|
|
6
|
+
const OptionsBox = forwardRef(
|
|
7
|
+
(rest, ref) => /* @__PURE__ */ React.createElement(
|
|
8
|
+
Frame,
|
|
9
|
+
{
|
|
10
|
+
...rest,
|
|
11
|
+
ref,
|
|
12
|
+
className: cn(optionsBox, rest.className)
|
|
13
|
+
}
|
|
14
|
+
)
|
|
15
|
+
);
|
|
16
|
+
const Option = forwardRef(
|
|
17
|
+
(rest, ref) => /* @__PURE__ */ React.createElement(
|
|
18
|
+
Frame,
|
|
19
|
+
{
|
|
20
|
+
...rest,
|
|
21
|
+
ref,
|
|
22
|
+
as: "button",
|
|
23
|
+
className: cn(button, option, rest.className)
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
);
|
|
27
|
+
const TitleBarRenderer = ({ children, title: title$1 = "UNKNOWN.EXE", icon, active = true, ...rest }, ref) => /* @__PURE__ */ React.createElement(
|
|
28
|
+
Frame,
|
|
29
|
+
{
|
|
30
|
+
...rest,
|
|
31
|
+
className: cn(titleBarBackground({ active }), rest.className),
|
|
32
|
+
ref
|
|
33
|
+
},
|
|
34
|
+
icon && icon,
|
|
35
|
+
/* @__PURE__ */ React.createElement("div", { className: title }, title$1),
|
|
36
|
+
children
|
|
37
|
+
);
|
|
38
|
+
const TitleBar = Object.assign(
|
|
39
|
+
forwardRef(TitleBarRenderer),
|
|
40
|
+
{
|
|
41
|
+
Option,
|
|
42
|
+
OptionsBox
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
export {
|
|
46
|
+
TitleBar
|
|
47
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { wrapper, tip } from "./Tooltip.css.js";
|
|
1
|
+
import React, { forwardRef, useState } from "react";
|
|
3
2
|
import cn from "classnames";
|
|
3
|
+
import { wrapper, tip } from "./Tooltip.css.mjs";
|
|
4
4
|
function formatDate(date) {
|
|
5
5
|
const monthNames = [
|
|
6
6
|
"January",
|
|
@@ -27,8 +27,8 @@ const TooltipRenderer = ({
|
|
|
27
27
|
delay = 1e3,
|
|
28
28
|
...rest
|
|
29
29
|
}, ref) => {
|
|
30
|
-
const [show, setShow] =
|
|
31
|
-
const [delayTimer, setDelayTimer] =
|
|
30
|
+
const [show, setShow] = useState(false);
|
|
31
|
+
const [delayTimer, setDelayTimer] = useState(0);
|
|
32
32
|
const handleEnter = () => {
|
|
33
33
|
const timer = window.setTimeout(() => {
|
|
34
34
|
setShow(true);
|
|
@@ -52,7 +52,7 @@ const TooltipRenderer = ({
|
|
|
52
52
|
children
|
|
53
53
|
);
|
|
54
54
|
};
|
|
55
|
-
const Tooltip =
|
|
55
|
+
const Tooltip = forwardRef(
|
|
56
56
|
TooltipRenderer
|
|
57
57
|
);
|
|
58
58
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React, { useState } from "react";
|
|
2
2
|
import { MediaCd, FileText, Bat, FileFont2, FilePen, FileSettings, FileTextSettings, BatExec, FolderOpen, Folder } from "@react95/icons";
|
|
3
|
-
import { node, nodeContent, folderStatus, iconContainer, label, tree, nodeRoot } from "./Tree.css.
|
|
4
|
-
import { Frame } from "../Frame/Frame.
|
|
3
|
+
import { node, nodeContent, folderStatus, iconContainer, label, tree, nodeRoot } from "./Tree.css.mjs";
|
|
4
|
+
import { Frame } from "../Frame/Frame.mjs";
|
|
5
5
|
import cn from "classnames";
|
|
6
6
|
const icons = {
|
|
7
7
|
FILE_MEDIA: MediaCd,
|
|
@@ -40,7 +40,7 @@ const Node = ({
|
|
|
40
40
|
},
|
|
41
41
|
...rest
|
|
42
42
|
}) => {
|
|
43
|
-
const [isOpen, setIsOpen] =
|
|
43
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
44
44
|
const hasChildren = children.length > 0;
|
|
45
45
|
const onClickHandler = (event) => {
|
|
46
46
|
onClick(event, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './Tree.css.ts.vanilla.css';
|
|
2
|
-
/* empty css
|
|
2
|
+
/* empty css */import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
3
|
var folderStatus = "r95_z2881c5";
|
|
4
4
|
var iconContainer = createRuntimeFn({ defaultClassName: "r95_z2881c6", variantClassNames: { hasChildren: { true: "r95_z2881c7", false: "r95_z2881c8" } }, defaultVariants: {}, compoundVariants: [] });
|
|
5
5
|
var label = "r95_z2881c4";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React, { forwardRef } from "react";
|
|
2
|
+
import { NodeRoot, Node, icons } from "./Node.mjs";
|
|
3
|
+
import { tree } from "./Tree.css.mjs";
|
|
4
|
+
import { Frame } from "../Frame/Frame.mjs";
|
|
5
|
+
const Tree = forwardRef(
|
|
6
|
+
({ data, root, ...rest }, ref) => {
|
|
7
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, root && /* @__PURE__ */ React.createElement(NodeRoot, { ...root }), /* @__PURE__ */ React.createElement(Frame, { ...rest, className: tree, as: "ul", ref }, data.map((dataNode) => /* @__PURE__ */ React.createElement(Node, { key: dataNode.id, ...dataNode }))));
|
|
8
|
+
}
|
|
9
|
+
);
|
|
10
|
+
Tree.defaultProps = {
|
|
11
|
+
data: []
|
|
12
|
+
};
|
|
13
|
+
Tree.icons = icons;
|
|
14
|
+
export {
|
|
15
|
+
Tree
|
|
16
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './Video.css.ts.vanilla.css';
|
|
2
|
-
/* empty css
|
|
2
|
+
/* empty css */import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
3
|
var controlBtn = "r95_13gnpv09";
|
|
4
4
|
var controls = "r95_13gnpv03";
|
|
5
5
|
var countDownContainer = "r95_13gnpv04";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React, { forwardRef, useState, useRef, useImperativeHandle, useEffect } from "react";
|
|
2
2
|
import { Mplayer113, User4 } from "@react95/icons";
|
|
3
|
-
import { videoTag, divider, countDownContainer, videoFont, currentTime, elapsedTime, controls, controlBtn, range } from "./Video.css.
|
|
4
|
-
import { Frame } from "../Frame/Frame.
|
|
5
|
-
import { Button } from "../Button/Button.
|
|
6
|
-
import { Range } from "../Range/Range.
|
|
7
|
-
import { TitleBar } from "../TitleBar/TitleBar.
|
|
8
|
-
import Play from "./buttons/Play.
|
|
9
|
-
import Pause from "./buttons/Pause.
|
|
10
|
-
import Stop from "./buttons/Stop.
|
|
11
|
-
import Fullscreen from "./buttons/Fullscreen.
|
|
3
|
+
import { videoTag, divider, countDownContainer, videoFont, currentTime, elapsedTime, controls, controlBtn, range } from "./Video.css.mjs";
|
|
4
|
+
import { Frame } from "../Frame/Frame.mjs";
|
|
5
|
+
import { Button } from "../Button/Button.mjs";
|
|
6
|
+
import { Range } from "../Range/Range.mjs";
|
|
7
|
+
import { TitleBar } from "../TitleBar/TitleBar.mjs";
|
|
8
|
+
import Play from "./buttons/Play.mjs";
|
|
9
|
+
import Pause from "./buttons/Pause.mjs";
|
|
10
|
+
import Stop from "./buttons/Stop.mjs";
|
|
11
|
+
import Fullscreen from "./buttons/Fullscreen.mjs";
|
|
12
12
|
import cn from "classnames";
|
|
13
13
|
const Source = ({ src }) => /* @__PURE__ */ React.createElement("source", { src, type: `video/${src.substring(src.length - 3)}` });
|
|
14
14
|
const PlayOrPause = ({ playing }) => playing ? /* @__PURE__ */ React.createElement(Pause, null) : /* @__PURE__ */ React.createElement(Play, null);
|
|
@@ -28,20 +28,20 @@ function parseCurrentTime(secs) {
|
|
|
28
28
|
return [hours, minutes, seconds].map((v) => v < 10 ? `0${v}` : v).filter((v, i) => v !== "00" || i > 0).join(":");
|
|
29
29
|
}
|
|
30
30
|
const VideoRenderer = ({ name, src, videoProps, ...props }, ref) => {
|
|
31
|
-
const [playing, setPlaying] =
|
|
32
|
-
const [loadeddata, setLoadeddata] =
|
|
33
|
-
const [progress, setProgress] =
|
|
34
|
-
const player =
|
|
35
|
-
const progressRef =
|
|
36
|
-
const wrapperRef =
|
|
37
|
-
const playPauseRef =
|
|
38
|
-
const stopRef =
|
|
39
|
-
const fullScreenRef =
|
|
31
|
+
const [playing, setPlaying] = useState(false);
|
|
32
|
+
const [loadeddata, setLoadeddata] = useState(false);
|
|
33
|
+
const [progress, setProgress] = useState(0);
|
|
34
|
+
const player = useRef(null);
|
|
35
|
+
const progressRef = useRef(null);
|
|
36
|
+
const wrapperRef = useRef(null);
|
|
37
|
+
const playPauseRef = useRef(null);
|
|
38
|
+
const stopRef = useRef(null);
|
|
39
|
+
const fullScreenRef = useRef(null);
|
|
40
40
|
const paths = arrayFy(src);
|
|
41
41
|
const [pathname] = paths;
|
|
42
42
|
const normalizedName = name || pathname.replace(/^.*[\\/]/, "");
|
|
43
43
|
const title = `${normalizedName}${!loadeddata ? " (Opening)" : ""}`;
|
|
44
|
-
|
|
44
|
+
useImperativeHandle(ref, () => ({
|
|
45
45
|
get video() {
|
|
46
46
|
return player;
|
|
47
47
|
},
|
|
@@ -61,7 +61,7 @@ const VideoRenderer = ({ name, src, videoProps, ...props }, ref) => {
|
|
|
61
61
|
return fullScreenRef;
|
|
62
62
|
}
|
|
63
63
|
}));
|
|
64
|
-
|
|
64
|
+
useEffect(() => {
|
|
65
65
|
var _a, _b, _c, _d;
|
|
66
66
|
(_a = player.current) == null ? void 0 : _a.addEventListener(
|
|
67
67
|
"ended",
|
|
@@ -127,6 +127,7 @@ const VideoRenderer = ({ name, src, videoProps, ...props }, ref) => {
|
|
|
127
127
|
), /* @__PURE__ */ React.createElement("div", { className: videoFont, style: { height: 12 } }, !loadeddata && "Openning")), /* @__PURE__ */ React.createElement(Frame, { display: "flex", flexDirection: "column", w: "40%" }, /* @__PURE__ */ React.createElement("div", { className: cn(videoFont, currentTime) }, player.current && parseCurrentTime(player.current.currentTime)), /* @__PURE__ */ React.createElement("div", { className: cn(videoFont, elapsedTime) }, "time"))), /* @__PURE__ */ React.createElement("div", { className: controls }, /* @__PURE__ */ React.createElement(
|
|
128
128
|
Button,
|
|
129
129
|
{
|
|
130
|
+
as: "button",
|
|
130
131
|
className: controlBtn,
|
|
131
132
|
disabled: !loadeddata,
|
|
132
133
|
onClick: () => {
|
|
@@ -200,7 +201,7 @@ const VideoRenderer = ({ name, src, videoProps, ...props }, ref) => {
|
|
|
200
201
|
)))
|
|
201
202
|
);
|
|
202
203
|
};
|
|
203
|
-
const Video =
|
|
204
|
+
const Video = forwardRef(VideoRenderer);
|
|
204
205
|
export {
|
|
205
206
|
Video
|
|
206
207
|
};
|
package/esm/index.mjs
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Modal } from "./Modal/Modal.mjs";
|
|
2
|
+
import { ModalContext } from "./Modal/ModalContext.mjs";
|
|
3
|
+
import { ModalProvider } from "./Modal/ModalProvider.mjs";
|
|
4
|
+
import { Tabs } from "./Tabs/Tabs.mjs";
|
|
5
|
+
import { Tab } from "./Tabs/Tab.mjs";
|
|
6
|
+
import { Alert } from "./Alert/Alert.mjs";
|
|
7
|
+
import { Avatar } from "./Avatar/Avatar.mjs";
|
|
8
|
+
import { Button } from "./Button/Button.mjs";
|
|
9
|
+
import { Checkbox } from "./Checkbox/Checkbox.mjs";
|
|
10
|
+
import { Cursor } from "./Cursor/Cursor.css.mjs";
|
|
11
|
+
import { Dropdown } from "./Dropdown/Dropdown.mjs";
|
|
12
|
+
import { Fieldset } from "./Fieldset/Fieldset.mjs";
|
|
13
|
+
import { Frame } from "./Frame/Frame.mjs";
|
|
14
|
+
import { Input } from "./Input/Input.mjs";
|
|
15
|
+
import { List } from "./List/List.mjs";
|
|
16
|
+
import { ProgressBar } from "./ProgressBar/ProgressBar.mjs";
|
|
17
|
+
import { RadioButton } from "./RadioButton/RadioButton.mjs";
|
|
18
|
+
import { Range } from "./Range/Range.mjs";
|
|
19
|
+
import { TaskBar } from "./TaskBar/TaskBar.mjs";
|
|
20
|
+
import { TextArea } from "./TextArea/TextArea.mjs";
|
|
21
|
+
import { Tree } from "./Tree/Tree.mjs";
|
|
22
|
+
import { Tooltip } from "./Tooltip/Tooltip.mjs";
|
|
23
|
+
import { TitleBar } from "./TitleBar/TitleBar.mjs";
|
|
24
|
+
import { Video } from "./Video/Video.mjs";
|
|
25
|
+
export {
|
|
26
|
+
Alert,
|
|
27
|
+
Avatar,
|
|
28
|
+
Button,
|
|
29
|
+
Checkbox,
|
|
30
|
+
Cursor,
|
|
31
|
+
Dropdown,
|
|
32
|
+
Fieldset,
|
|
33
|
+
Frame,
|
|
34
|
+
Input,
|
|
35
|
+
List,
|
|
36
|
+
Modal,
|
|
37
|
+
ModalContext,
|
|
38
|
+
ModalProvider,
|
|
39
|
+
ProgressBar,
|
|
40
|
+
RadioButton,
|
|
41
|
+
Range,
|
|
42
|
+
Tab,
|
|
43
|
+
Tabs,
|
|
44
|
+
TaskBar,
|
|
45
|
+
TextArea,
|
|
46
|
+
TitleBar,
|
|
47
|
+
Tooltip,
|
|
48
|
+
Tree,
|
|
49
|
+
Video
|
|
50
|
+
};
|