@apple-pie/slice 0.1.9 → 0.1.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/dist/cjs/chunks/{Avatar-Czt-12Ih.js → Avatar-CUaQ3kN1.js} +5 -5
- package/dist/cjs/chunks/{AvatarGroup-CGH2zY7a.js → AvatarGroup-B3M7o4Hh.js} +23 -20
- package/dist/cjs/chunks/{Button-mVVfNCqC.js → Button-ID8wGXIa.js} +12 -11
- package/dist/cjs/chunks/{ButtonBar-CFAb4bfQ.js → ButtonBar-BZ6sme27.js} +7 -7
- package/dist/cjs/chunks/{Camera-BGV_tNUP.js → Camera-rVC4KI4v.js} +1 -1
- package/dist/cjs/chunks/{CheckBox-DyOgP15i.js → CheckBox-DQRLqTAK.js} +1 -1
- package/dist/cjs/chunks/{Chip-Z8erRdWG.js → Chip-CflUNqhY.js} +11 -10
- package/dist/cjs/chunks/{DivInput-DdZA8S1k.js → DivInput-DrwFMexA.js} +4 -4
- package/dist/cjs/chunks/{DropDown-Ce8aU2va.js → DropDown-C3AZ5b_b.js} +49 -50
- package/dist/cjs/chunks/{ErrorSummary-By4CjJ9a.js → ErrorSummary-BTgAd3sK.js} +47 -25
- package/dist/cjs/chunks/{FileList-CCAtVNDo.js → FileList-BHwBIics.js} +4 -4
- package/dist/cjs/chunks/{Grouper-BbovOSYw.js → Grouper-D4yyHHkM.js} +1 -1
- package/dist/cjs/chunks/{Icon-N0YJuKQf.js → Icon-D1EB8S5r.js} +6 -5
- package/dist/cjs/chunks/{IconButton-BXotgG2u.js → IconButton-B07Ttxbr.js} +11 -11
- package/dist/cjs/chunks/{IndexedDB-BxQn7aHU.js → IndexedDB-BaVmQgkK.js} +12 -10
- package/dist/cjs/chunks/Label-CTzvGcds.js +102 -0
- package/dist/cjs/chunks/{Pager-Da9AqSFN.js → Pager-BN37VYEC.js} +1 -1
- package/dist/cjs/chunks/{ProgressIndicator-CyFcr6Dk.js → ProgressIndicator-BGqIwycX.js} +1 -1
- package/dist/cjs/chunks/{PromptInput-B-Wlfnhx.js → PromptInput-D0aehf9X.js} +1 -1
- package/dist/cjs/chunks/{RadioButton-B8GIKGm-.js → RadioButton-DuIsM4lu.js} +21 -17
- package/dist/cjs/chunks/{RadioButtonList-3o1IvhdC.js → RadioButtonList-bu11ILyw.js} +20 -13
- package/dist/cjs/chunks/{Switch-BiTshVLM.js → Switch-Cbn0ql3B.js} +15 -11
- package/dist/cjs/chunks/{TabBar-DZ2y7owf.js → TabBar-Bcq_n4Mk.js} +8 -8
- package/dist/cjs/chunks/{TextArea-D7E8loob.js → TextArea-CEwhpWXT.js} +17 -24
- package/dist/cjs/chunks/{TextField-BAcYBHb1.js → TextField-Dl9sTcC4.js} +50 -70
- package/dist/cjs/chunks/{Tip-59T3TUN4.js → Tip-BTIo1xG2.js} +7 -6
- package/dist/cjs/chunks/{Toast-skIBuJ3b.js → Toast-CZzAWG0S.js} +1 -1
- package/dist/cjs/chunks/{UploadArea-Bfrwzo4O.js → UploadArea-z9-1YjIV.js} +6 -6
- package/dist/cjs/chunks/localDBStore-zyDhaEiP.js +289 -0
- package/dist/cjs/components/Avatar/index.js +1 -1
- package/dist/cjs/components/AvatarGroup/index.js +2 -2
- package/dist/cjs/components/Button/index.js +3 -3
- package/dist/cjs/components/ButtonBar/index.js +2 -2
- package/dist/cjs/components/Camera/index.js +3 -3
- package/dist/cjs/components/CheckBox/index.js +2 -2
- package/dist/cjs/components/Chip/index.js +2 -2
- package/dist/cjs/components/DivInput/index.js +1 -1
- package/dist/cjs/components/DropDown/index.js +2 -2
- package/dist/cjs/components/ErrorSummary/index.js +6 -2
- package/dist/cjs/components/FileList/index.js +3 -3
- package/dist/cjs/components/Grouper/index.js +2 -2
- package/dist/cjs/components/Icon/index.js +1 -1
- package/dist/cjs/components/IconButton/index.js +2 -2
- package/dist/cjs/components/Label/index.js +7 -5
- package/dist/cjs/components/Pager/index.js +1 -1
- package/dist/cjs/components/Progress/index.js +2 -2
- package/dist/cjs/components/PromptInput/index.js +5 -5
- package/dist/cjs/components/RadioButton/index.js +2 -2
- package/dist/cjs/components/RadioButtonList/index.js +3 -3
- package/dist/cjs/components/Switch/index.js +1 -1
- package/dist/cjs/components/TabBar/index.js +3 -3
- package/dist/cjs/components/TextArea/index.js +4 -4
- package/dist/cjs/components/Textfield/index.js +5 -6
- package/dist/cjs/components/Tip/index.js +1 -1
- package/dist/cjs/components/Toast/index.js +2 -2
- package/dist/cjs/components/UploadArea/index.js +7 -8
- package/dist/cjs/index.js +8 -3
- package/dist/cjs/stores/LocalDB.js +6 -5
- package/dist/cjs/stores.js +7 -7
- package/dist/cjs/utils/index.js +1 -1
- package/dist/cjs/utils/objects/index.js +1 -1
- package/dist/css/flexBox.module.css +85 -0
- package/dist/css/type.module.css +206 -0
- package/dist/esm/chunks/{Avatar-DCCbj2eA.mjs → Avatar-CSLVUF_y.mjs} +5 -5
- package/dist/esm/chunks/{AvatarGroup-BaD2Xmda.mjs → AvatarGroup--ELW-bO1.mjs} +23 -20
- package/dist/esm/chunks/{Button-m0XAJsq5.mjs → Button-D24zg6UY.mjs} +13 -12
- package/dist/esm/chunks/{ButtonBar-CNQHRn77.mjs → ButtonBar-DXK8meQq.mjs} +7 -7
- package/dist/esm/chunks/{Camera-7TuowjX_.mjs → Camera-BqmVsVKy.mjs} +2 -2
- package/dist/esm/chunks/{CheckBox-DO9hTdv8.mjs → CheckBox-BsaYFNC6.mjs} +1 -1
- package/dist/esm/chunks/{Chip-BqneFUOR.mjs → Chip-DdgYV-Ct.mjs} +11 -10
- package/dist/esm/chunks/{DivInput-Ch9XjfWd.mjs → DivInput-B7sawFbK.mjs} +4 -4
- package/dist/esm/chunks/{DropDown-Cvf2d_3u.mjs → DropDown-DOJvg96J.mjs} +48 -51
- package/dist/esm/chunks/{ErrorSummary-S0shes-m.mjs → ErrorSummary-CHLkvdHk.mjs} +52 -27
- package/dist/esm/chunks/{FileList-Ckix8gUY.mjs → FileList-5LElsgoE.mjs} +5 -5
- package/dist/esm/chunks/{Grouper-B_FutfjV.mjs → Grouper-DR14qDXP.mjs} +1 -1
- package/dist/esm/chunks/{Icon-C92f63Ib.mjs → Icon-CUSQtytG.mjs} +6 -5
- package/dist/esm/chunks/{IconButton-4O5S9S9G.mjs → IconButton-DG69Vlhj.mjs} +11 -11
- package/dist/esm/chunks/{IndexedDB-CNOziQ6p.mjs → IndexedDB-CJgzPHPB.mjs} +12 -10
- package/dist/esm/chunks/Label-CRsE7o3D.mjs +115 -0
- package/dist/esm/chunks/{Pager-BlLYeA2F.mjs → Pager-BYT7_mCb.mjs} +1 -1
- package/dist/esm/chunks/{ProgressIndicator-CfM2c4ty.mjs → ProgressIndicator-D7paCpgY.mjs} +1 -1
- package/dist/esm/chunks/{PromptInput-Cmist_vy.mjs → PromptInput-yf2ir2-x.mjs} +3 -3
- package/dist/esm/chunks/{RadioButton-COEnChNW.mjs → RadioButton-B5ZF5oJ_.mjs} +22 -18
- package/dist/esm/chunks/{RadioButtonList-De3rbLQb.mjs → RadioButtonList-D9ZAZgkK.mjs} +22 -13
- package/dist/esm/chunks/{Switch-Cv6LABsW.mjs → Switch-BhCOo5Lu.mjs} +15 -11
- package/dist/esm/chunks/{TabBar-qiozE5zA.mjs → TabBar-BK7OcjPl.mjs} +9 -9
- package/dist/esm/chunks/{TextArea-Ff5hxF1H.mjs → TextArea-CWmzQA0V.mjs} +18 -25
- package/dist/esm/chunks/{TextField-CGOR6507.mjs → TextField-6Aq-AT47.mjs} +54 -72
- package/dist/esm/chunks/{Tip-CroDIKO4.mjs → Tip-DfmcLbBf.mjs} +7 -6
- package/dist/esm/chunks/{Toast-CM493gMR.mjs → Toast-DPHLwDES.mjs} +1 -1
- package/dist/esm/chunks/{UploadArea-6z-mVZs3.mjs → UploadArea-igD1l2Ht.mjs} +9 -9
- package/dist/esm/chunks/localDBStore-B4jkR5Jx.mjs +297 -0
- package/dist/esm/components/Avatar/index.mjs +1 -1
- package/dist/esm/components/AvatarGroup/index.mjs +2 -2
- package/dist/esm/components/Button/index.mjs +3 -3
- package/dist/esm/components/ButtonBar/index.mjs +2 -2
- package/dist/esm/components/Camera/index.mjs +3 -3
- package/dist/esm/components/CheckBox/index.mjs +2 -2
- package/dist/esm/components/Chip/index.mjs +2 -2
- package/dist/esm/components/DivInput/index.mjs +1 -1
- package/dist/esm/components/DropDown/index.mjs +5 -5
- package/dist/esm/components/ErrorSummary/index.mjs +21 -1
- package/dist/esm/components/FileList/index.mjs +3 -3
- package/dist/esm/components/Grouper/index.mjs +2 -2
- package/dist/esm/components/Icon/index.mjs +1 -1
- package/dist/esm/components/IconButton/index.mjs +2 -2
- package/dist/esm/components/Label/index.mjs +1 -19
- package/dist/esm/components/Pager/index.mjs +1 -1
- package/dist/esm/components/Progress/index.mjs +2 -2
- package/dist/esm/components/PromptInput/index.mjs +5 -5
- package/dist/esm/components/RadioButton/index.mjs +2 -2
- package/dist/esm/components/RadioButtonList/index.mjs +4 -4
- package/dist/esm/components/Switch/index.mjs +1 -1
- package/dist/esm/components/TabBar/index.mjs +3 -3
- package/dist/esm/components/TextArea/index.mjs +4 -4
- package/dist/esm/components/Textfield/index.mjs +7 -7
- package/dist/esm/components/Tip/index.mjs +1 -1
- package/dist/esm/components/Toast/index.mjs +2 -2
- package/dist/esm/components/UploadArea/index.mjs +7 -7
- package/dist/esm/index.mjs +27 -27
- package/dist/esm/stores/LocalDB.mjs +6 -2
- package/dist/esm/stores.mjs +6 -2
- package/dist/esm/utils/index.mjs +1 -1
- package/dist/esm/utils/objects/index.mjs +1 -1
- package/dist/types/components/Avatar/Avatar.d.ts +3 -0
- package/dist/types/components/Avatar/_types.d.ts +25 -0
- package/dist/types/components/Avatar/index.d.ts +2 -0
- package/dist/types/components/AvatarGroup/AvatarGroup.d.ts +3 -0
- package/dist/types/components/AvatarGroup/_types.d.ts +28 -0
- package/dist/types/components/AvatarGroup/index.d.ts +2 -0
- package/dist/types/components/Badge/Badge.d.ts +3 -0
- package/dist/types/components/Badge/_types.d.ts +8 -0
- package/dist/types/components/Badge/index.d.ts +2 -0
- package/dist/types/components/Button/Button.d.ts +80 -0
- package/dist/types/components/Button/_types.d.ts +47 -0
- package/dist/types/components/Button/index.d.ts +2 -0
- package/dist/types/components/ButtonBar/ButtonBar.d.ts +17 -0
- package/dist/types/components/ButtonBar/_types.d.ts +31 -0
- package/dist/types/components/ButtonBar/index.d.ts +2 -0
- package/dist/types/components/Camera/Camera.d.ts +11 -0
- package/dist/types/components/Camera/_types.d.ts +79 -0
- package/dist/types/components/Camera/index.d.ts +2 -0
- package/dist/types/components/CheckBox/CheckBox.d.ts +3 -0
- package/dist/types/components/CheckBox/_types.d.ts +11 -0
- package/dist/types/components/CheckBox/index.d.ts +2 -0
- package/dist/types/components/Chip/Chip.d.ts +3 -0
- package/dist/types/components/Chip/_types.d.ts +35 -0
- package/dist/types/components/Chip/index.d.ts +3 -0
- package/dist/types/components/DivInput/DivInput.d.ts +3 -0
- package/dist/types/components/DivInput/_types.d.ts +25 -0
- package/dist/types/components/DivInput/index.d.ts +2 -0
- package/dist/types/components/Dot/Dot.d.ts +3 -0
- package/dist/types/components/Dot/_types.d.ts +19 -0
- package/dist/types/components/Dot/index.d.ts +2 -0
- package/dist/types/components/DraggablePanel/DrggablePanel.d.ts +44 -0
- package/dist/types/components/DraggablePanel/_types.d.ts +5 -0
- package/dist/types/components/DraggablePanel/index.d.ts +1 -0
- package/dist/types/components/DropDown/DropDown.d.ts +3 -0
- package/dist/types/components/DropDown/_types.d.ts +40 -0
- package/dist/types/components/DropDown/index.d.ts +2 -0
- package/dist/types/components/ErrorSummary/ErrorSummary.d.ts +3 -0
- package/dist/types/components/ErrorSummary/_types.d.ts +15 -0
- package/dist/types/components/ErrorSummary/index.d.ts +2 -0
- package/dist/types/components/FileIcon/FileIcon.d.ts +3 -0
- package/dist/types/components/FileIcon/_types.d.ts +27 -0
- package/dist/types/components/FileIcon/fileIconRegistry.d.ts +4 -0
- package/dist/types/components/FileIcon/index.d.ts +3 -0
- package/dist/types/components/FileList/FileList.d.ts +3 -0
- package/dist/types/components/FileList/_types.d.ts +25 -0
- package/dist/types/components/FileList/index.d.ts +2 -0
- package/dist/types/components/FlexDiv/FlexDiv.d.ts +60 -0
- package/dist/types/components/FlexDiv/_types.d.ts +34 -0
- package/dist/types/components/FlexDiv/index.d.ts +2 -0
- package/dist/types/components/Grouper/Grouper.d.ts +3 -0
- package/dist/types/components/Grouper/_types.d.ts +20 -0
- package/dist/types/components/Grouper/index.d.ts +2 -0
- package/dist/types/components/Icon/Icon.d.ts +3 -0
- package/dist/types/components/Icon/_types.d.ts +131 -0
- package/dist/types/components/Icon/iconRegistry.d.ts +17 -0
- package/dist/types/components/Icon/index.d.ts +2 -0
- package/dist/types/components/IconButton/IconButton.d.ts +3 -0
- package/dist/types/components/IconButton/_types.d.ts +37 -0
- package/dist/types/components/IconButton/index.d.ts +2 -0
- package/dist/types/components/Label/Label.d.ts +2 -0
- package/dist/types/components/Label/_types.d.ts +26 -0
- package/dist/types/components/Label/index.d.ts +3 -0
- package/dist/types/components/Overlay/Overlay.d.ts +3 -0
- package/dist/types/components/Overlay/_types.d.ts +12 -0
- package/dist/types/components/Overlay/index.d.ts +2 -0
- package/dist/types/components/Pager/Pager.d.ts +3 -0
- package/dist/types/components/Pager/_types.d.ts +13 -0
- package/dist/types/components/Pager/index.d.ts +2 -0
- package/dist/types/components/Progress/DoneCheck/DoneCheck.d.ts +3 -0
- package/dist/types/components/Progress/DoneCheck/_types.d.ts +13 -0
- package/dist/types/components/Progress/ProgressIndicator/ProgressIndicator.d.ts +3 -0
- package/dist/types/components/Progress/ProgressIndicator/_types.d.ts +14 -0
- package/dist/types/components/Progress/index.d.ts +4 -0
- package/dist/types/components/PromptInput/PromptInput.d.ts +63 -0
- package/dist/types/components/PromptInput/_types.d.ts +35 -0
- package/dist/types/components/PromptInput/index.d.ts +2 -0
- package/dist/types/components/RadioButton/RadioButton.d.ts +3 -0
- package/dist/types/components/RadioButton/_types.d.ts +27 -0
- package/dist/types/components/RadioButton/index.d.ts +2 -0
- package/dist/types/components/RadioButtonList/RadioButtonList.d.ts +3 -0
- package/dist/types/components/RadioButtonList/_types.d.ts +26 -0
- package/dist/types/components/RadioButtonList/index.d.ts +2 -0
- package/dist/types/components/Slider/Slider.d.ts +3 -0
- package/dist/types/components/Slider/_types.d.ts +18 -0
- package/dist/types/components/Slider/index.d.ts +2 -0
- package/dist/types/components/Spacer/Spacer.d.ts +3 -0
- package/dist/types/components/Spacer/_types.d.ts +6 -0
- package/dist/types/components/Spacer/index.d.ts +2 -0
- package/dist/types/components/Switch/Switch.d.ts +3 -0
- package/dist/types/components/Switch/Switch.stories.d.ts +5 -0
- package/dist/types/components/Switch/_types.d.ts +17 -0
- package/dist/types/components/Switch/index.d.ts +2 -0
- package/dist/types/components/TabBar/TabBar.d.ts +3 -0
- package/dist/types/components/TabBar/_types.d.ts +52 -0
- package/dist/types/components/TabBar/index.d.ts +2 -0
- package/dist/types/components/TextArea/TextArea.d.ts +3 -0
- package/dist/types/components/TextArea/_types.d.ts +40 -0
- package/dist/types/components/TextArea/index.d.ts +2 -0
- package/dist/types/components/Textfield/TextField.d.ts +3 -0
- package/dist/types/components/Textfield/_types.d.ts +73 -0
- package/dist/types/components/Textfield/index.d.ts +2 -0
- package/dist/types/components/Tip/Tip.d.ts +3 -0
- package/dist/types/components/Tip/_types.d.ts +31 -0
- package/dist/types/components/Tip/index.d.ts +2 -0
- package/dist/types/components/Toast/Toast.d.ts +3 -0
- package/dist/types/components/Toast/_types.d.ts +24 -0
- package/dist/types/components/Toast/index.d.ts +2 -0
- package/dist/types/components/UploadArea/UploadArea.d.ts +62 -0
- package/dist/types/components/UploadArea/_types.d.ts +50 -0
- package/dist/types/components/UploadArea/index.d.ts +3 -0
- package/dist/types/components/playHelpers.d.ts +35 -0
- package/dist/types/components/sharedTypes.d.ts +21 -0
- package/dist/types/hooks/index.d.ts +9 -0
- package/dist/types/hooks/useDoubleClick/useDoubleClick.d.ts +1 -0
- package/dist/types/hooks/useKeyboardShortcuts/useKeyboardShortcuts.d.ts +9 -0
- package/dist/types/hooks/useLastUpdated/useLastUpdated.d.ts +4 -0
- package/dist/types/hooks/useLocalStore/useLocalStore.d.ts +1 -0
- package/dist/types/hooks/useObserveResize/useObserveResize.d.ts +9 -0
- package/dist/types/hooks/useObserveTheme/useObserveTheme.d.ts +2 -0
- package/dist/types/hooks/useTheme/useTheme.d.ts +47 -0
- package/dist/types/hooks/useToolTip/useToolTip.d.ts +6 -0
- package/dist/types/hooks/useTrackRenders/useTrackRenders.d.ts +5 -0
- package/dist/types/hooks/useWindow/useWindow.d.ts +43 -0
- package/dist/types/index.d.ts +75 -0
- package/dist/types/providers/ThemeProvider.d.ts +13 -0
- package/dist/types/providers/index.d.ts +1 -0
- package/dist/types/stores/LocalDB/_types.d.ts +43 -0
- package/dist/types/stores/LocalDB/index.d.ts +2 -0
- package/dist/types/stores/LocalDB/localDBStore.d.ts +18 -0
- package/dist/types/stores/SSE/_types.d.ts +17 -0
- package/dist/types/stores/SSE/index.d.ts +2 -0
- package/dist/types/stores/SSE/sseStore.d.ts +28 -0
- package/dist/types/stores/WS/_types.d.ts +17 -0
- package/dist/types/stores/WS/index.d.ts +2 -0
- package/dist/types/stores/WS/wsStore.d.ts +19 -0
- package/dist/types/stores/index.d.ts +6 -0
- package/dist/types/stores/tip/_types.d.ts +8 -0
- package/dist/types/stores/tip/index.d.ts +2 -0
- package/dist/types/stores/tip/tipStore.d.ts +12 -0
- package/dist/types/stores/toast/_types.d.ts +14 -0
- package/dist/types/stores/toast/index.d.ts +2 -0
- package/dist/types/stores/toast/toastStore.d.ts +12 -0
- package/dist/types/stores/uploads/_types.d.ts +16 -0
- package/dist/types/stores/uploads/index.d.ts +2 -0
- package/dist/types/stores/uploads/uploadsStore.d.ts +22 -0
- package/dist/types/stores/window/_types.d.ts +33 -0
- package/dist/types/stores/window/index.d.ts +3 -0
- package/dist/types/stores/window/windowStore.d.ts +25 -0
- package/dist/types/theme/colors/colors.d.ts +6 -0
- package/dist/types/theme/colors/types.d.ts +174 -0
- package/dist/types/theme/corners/corners.d.ts +2 -0
- package/dist/types/theme/corners/types.d.ts +10 -0
- package/dist/types/theme/elevations/_types.d.ts +10 -0
- package/dist/types/theme/elevations/elevations.d.ts +5 -0
- package/dist/types/theme/index.d.ts +9 -0
- package/dist/types/theme/motion/_types.d.ts +8 -0
- package/dist/types/theme/motion/motion.d.ts +5 -0
- package/dist/types/theme/themes.d.ts +16 -0
- package/dist/types/theme/type/type.d.ts +5 -0
- package/dist/types/theme/type/types.d.ts +25 -0
- package/dist/types/utils/functions/colors.d.ts +8 -0
- package/dist/types/utils/functions/debounce.d.ts +9 -0
- package/dist/types/utils/functions/files.d.ts +15 -0
- package/dist/types/utils/functions/misc.d.ts +61 -0
- package/dist/types/utils/index.d.ts +5 -0
- package/dist/types/utils/objects/IndexedDB/IndexedDB.d.ts +62 -0
- package/dist/types/utils/objects/SSEConnection/SSEConnection.d.ts +187 -0
- package/dist/types/utils/objects/WSConnection/WSConnection.d.ts +159 -0
- package/dist/types/utils/objects/index.d.ts +6 -0
- package/dist/types/workers/uploads/uploads-worker.d.ts +129 -0
- package/dist/types/workers/uploads/uploads.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/chunks/Label-CZvJbATa.js +0 -118
- package/dist/cjs/chunks/localDBStore-Cl1YFPIe.js +0 -182
- package/dist/esm/chunks/Label-7ezP3eHw.mjs +0 -131
- package/dist/esm/chunks/localDBStore-CbCoeN66.mjs +0 -186
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
type TextAreaBaseProps = {
|
|
3
|
+
value?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
width?: number | string;
|
|
6
|
+
minWidth?: number | string;
|
|
7
|
+
rows?: number;
|
|
8
|
+
focused?: boolean;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
padding?: number | string;
|
|
11
|
+
error?: boolean;
|
|
12
|
+
border?: boolean;
|
|
13
|
+
resizable?: boolean;
|
|
14
|
+
hasSend?: boolean;
|
|
15
|
+
sendOffset?: {
|
|
16
|
+
bottom: number;
|
|
17
|
+
right: number;
|
|
18
|
+
};
|
|
19
|
+
sendSize?: number;
|
|
20
|
+
backgroundColor?: string;
|
|
21
|
+
bgColor?: string;
|
|
22
|
+
borderRadius?: number;
|
|
23
|
+
returnSubmits?: boolean;
|
|
24
|
+
textSize?: 'xs' | 's' | 'm' | 'l';
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
submitClears?: boolean;
|
|
27
|
+
onChange?: (value: string) => void;
|
|
28
|
+
onSubmit?: (value: string) => void;
|
|
29
|
+
onFocus?: (value: string) => void;
|
|
30
|
+
onBlur?: (value: string) => void;
|
|
31
|
+
onKeyDown?: (e: React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
32
|
+
};
|
|
33
|
+
export type TextAreaProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof TextAreaBaseProps> & TextAreaBaseProps;
|
|
34
|
+
export type Tip = {
|
|
35
|
+
icon?: string;
|
|
36
|
+
iconRight?: boolean;
|
|
37
|
+
key: string;
|
|
38
|
+
label?: string;
|
|
39
|
+
};
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { Transition } from 'motion/react';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
type TextFieldBaseProps = {
|
|
4
|
+
value?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
labelSize?: 'xs' | 's' | 'm' | 'l';
|
|
8
|
+
textSize?: 'xs' | 's' | 'm' | 'l';
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
focused?: boolean;
|
|
11
|
+
editable?: boolean;
|
|
12
|
+
onChange?: (value: string) => void;
|
|
13
|
+
onBlur?: (value: string) => void;
|
|
14
|
+
onFocus?: (value: string) => void;
|
|
15
|
+
onKeydown?: (key: string, event: React.KeyboardEvent) => void;
|
|
16
|
+
onSubmit?: (value: string) => void;
|
|
17
|
+
onPaste?: (value: React.ClipboardEvent<HTMLInputElement>) => void;
|
|
18
|
+
onClear?: () => void;
|
|
19
|
+
onAction?: () => void;
|
|
20
|
+
onValidate?: (state: boolean) => void;
|
|
21
|
+
isValid?: boolean;
|
|
22
|
+
inline?: boolean;
|
|
23
|
+
maxLength?: number;
|
|
24
|
+
size?: {
|
|
25
|
+
width?: number | string;
|
|
26
|
+
height?: number | string;
|
|
27
|
+
};
|
|
28
|
+
padding?: string | number;
|
|
29
|
+
borderRadius?: number | string;
|
|
30
|
+
textAlign?: 'left' | 'center';
|
|
31
|
+
borderColorFocused?: string;
|
|
32
|
+
borderColorBlurred?: string;
|
|
33
|
+
borderColorError?: string;
|
|
34
|
+
backgroundColorFocused?: string;
|
|
35
|
+
backgroundColorBlurred?: string;
|
|
36
|
+
textColorFocused?: string;
|
|
37
|
+
textColorBlurred?: string;
|
|
38
|
+
textColorError?: string;
|
|
39
|
+
textColorPlaceholder?: string;
|
|
40
|
+
textColorDisabled?: string;
|
|
41
|
+
labelColor?: string;
|
|
42
|
+
validate?: boolean;
|
|
43
|
+
iconLeft?: {
|
|
44
|
+
name?: string;
|
|
45
|
+
size?: number;
|
|
46
|
+
color?: string;
|
|
47
|
+
};
|
|
48
|
+
clearButton?: {
|
|
49
|
+
size?: number;
|
|
50
|
+
} | null;
|
|
51
|
+
clearBlurs?: boolean;
|
|
52
|
+
disabled?: boolean;
|
|
53
|
+
actionButton?: boolean;
|
|
54
|
+
borderType?: 'box' | 'underline' | 'none';
|
|
55
|
+
inputType?: 'text' | 'password';
|
|
56
|
+
noShow?: boolean;
|
|
57
|
+
};
|
|
58
|
+
export type TextFieldProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof TextFieldBaseProps> & TextFieldBaseProps;
|
|
59
|
+
export declare const MOTION_CONFIG: {
|
|
60
|
+
variants: {
|
|
61
|
+
initial: {
|
|
62
|
+
opacity: number;
|
|
63
|
+
};
|
|
64
|
+
animate: {
|
|
65
|
+
opacity: number;
|
|
66
|
+
};
|
|
67
|
+
exit: {
|
|
68
|
+
opacity: number;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
transition: Transition;
|
|
72
|
+
};
|
|
73
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { HTMLMotionProps } from 'motion/react';
|
|
2
|
+
import type { ToolTip } from '../sharedTypes';
|
|
3
|
+
export declare const tipBasePos: {
|
|
4
|
+
left: number;
|
|
5
|
+
top: number;
|
|
6
|
+
};
|
|
7
|
+
export type PosCoords = {
|
|
8
|
+
left: number;
|
|
9
|
+
top: number;
|
|
10
|
+
};
|
|
11
|
+
type ToolTipBaseProps = {
|
|
12
|
+
tip?: ToolTip | null;
|
|
13
|
+
size?: 'xs' | 's' | 'm' | 'l';
|
|
14
|
+
backgroundColor?: string;
|
|
15
|
+
bgColor?: string;
|
|
16
|
+
textColor?: string;
|
|
17
|
+
color?: string;
|
|
18
|
+
border?: boolean;
|
|
19
|
+
borderColor?: string;
|
|
20
|
+
padding?: number | string;
|
|
21
|
+
borderRadius?: number;
|
|
22
|
+
radius?: number;
|
|
23
|
+
coords?: {
|
|
24
|
+
x: number;
|
|
25
|
+
y: number;
|
|
26
|
+
};
|
|
27
|
+
showDelay?: number;
|
|
28
|
+
hideDelay?: number;
|
|
29
|
+
};
|
|
30
|
+
export type ToolTipProps = Omit<HTMLMotionProps<'div'>, keyof ToolTipBaseProps> & ToolTipBaseProps;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { HTMLMotionProps } from 'motion/react';
|
|
2
|
+
export declare enum ToastType {
|
|
3
|
+
Success = "success",
|
|
4
|
+
Error = "error",
|
|
5
|
+
Warning = "warning",
|
|
6
|
+
Info = "info"
|
|
7
|
+
}
|
|
8
|
+
type ToastBaseProps = {
|
|
9
|
+
message?: string | null;
|
|
10
|
+
size?: 's' | 'm' | 'l';
|
|
11
|
+
border?: boolean;
|
|
12
|
+
padding?: number | string;
|
|
13
|
+
radius?: number | string;
|
|
14
|
+
position?: 'top' | 'bottom';
|
|
15
|
+
offset?: number;
|
|
16
|
+
showDelay?: number;
|
|
17
|
+
duration?: number | 'Infinite';
|
|
18
|
+
close?: boolean;
|
|
19
|
+
type?: ToastType;
|
|
20
|
+
didHide?: () => void;
|
|
21
|
+
};
|
|
22
|
+
type ReservedToastEvents = 'onMouseEnter' | 'onMouseLeave' | 'onFocus' | 'onBlur';
|
|
23
|
+
export type ToastProps = Omit<HTMLMotionProps<'div'>, keyof ToastBaseProps | ReservedToastEvents> & ToastBaseProps;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const UploadArea: React.NamedExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, keyof {
|
|
3
|
+
icon?: string;
|
|
4
|
+
iconSize?: number;
|
|
5
|
+
iconColor?: string;
|
|
6
|
+
iconColorHover?: string;
|
|
7
|
+
width?: number | string;
|
|
8
|
+
height?: number | string;
|
|
9
|
+
title?: string;
|
|
10
|
+
message?: string;
|
|
11
|
+
busyMessage?: string;
|
|
12
|
+
backgroundColor?: string;
|
|
13
|
+
backgroundColorHover?: string;
|
|
14
|
+
bgColor?: string;
|
|
15
|
+
bgColorHover?: string;
|
|
16
|
+
borderWidth?: number;
|
|
17
|
+
border?: number;
|
|
18
|
+
borderColor?: string | null;
|
|
19
|
+
borderColorHover?: string | null;
|
|
20
|
+
borderStyle?: string;
|
|
21
|
+
textSize?: "xs" | "s" | "m" | "l";
|
|
22
|
+
padding?: number | string;
|
|
23
|
+
borderRadius?: number | string;
|
|
24
|
+
radius?: number | string;
|
|
25
|
+
acceptedTypes?: string[];
|
|
26
|
+
multiple?: boolean;
|
|
27
|
+
busy?: boolean;
|
|
28
|
+
showProgress?: boolean;
|
|
29
|
+
files?: import("../FileList").FileItem[];
|
|
30
|
+
canRemove?: boolean;
|
|
31
|
+
onUpload?: (files: File[]) => void;
|
|
32
|
+
}> & {
|
|
33
|
+
icon?: string;
|
|
34
|
+
iconSize?: number;
|
|
35
|
+
iconColor?: string;
|
|
36
|
+
iconColorHover?: string;
|
|
37
|
+
width?: number | string;
|
|
38
|
+
height?: number | string;
|
|
39
|
+
title?: string;
|
|
40
|
+
message?: string;
|
|
41
|
+
busyMessage?: string;
|
|
42
|
+
backgroundColor?: string;
|
|
43
|
+
backgroundColorHover?: string;
|
|
44
|
+
bgColor?: string;
|
|
45
|
+
bgColorHover?: string;
|
|
46
|
+
borderWidth?: number;
|
|
47
|
+
border?: number;
|
|
48
|
+
borderColor?: string | null;
|
|
49
|
+
borderColorHover?: string | null;
|
|
50
|
+
borderStyle?: string;
|
|
51
|
+
textSize?: "xs" | "s" | "m" | "l";
|
|
52
|
+
padding?: number | string;
|
|
53
|
+
borderRadius?: number | string;
|
|
54
|
+
radius?: number | string;
|
|
55
|
+
acceptedTypes?: string[];
|
|
56
|
+
multiple?: boolean;
|
|
57
|
+
busy?: boolean;
|
|
58
|
+
showProgress?: boolean;
|
|
59
|
+
files?: import("../FileList").FileItem[];
|
|
60
|
+
canRemove?: boolean;
|
|
61
|
+
onUpload?: (files: File[]) => void;
|
|
62
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { FileItem } from '../FileList';
|
|
3
|
+
export declare const imageTypes: string[];
|
|
4
|
+
export declare const videoTypes: string[];
|
|
5
|
+
export declare const documentTypes: string[];
|
|
6
|
+
export declare const audioTypes: string[];
|
|
7
|
+
export declare const textTypes: string[];
|
|
8
|
+
export declare const allTypes: string[];
|
|
9
|
+
export declare enum FileTypes {
|
|
10
|
+
images = "images",
|
|
11
|
+
videos = "videos",
|
|
12
|
+
documents = "documents",
|
|
13
|
+
audio = "audio",
|
|
14
|
+
text = "text",
|
|
15
|
+
all = "all",
|
|
16
|
+
custom = "custom"
|
|
17
|
+
}
|
|
18
|
+
type UploadAreaBaseProps = {
|
|
19
|
+
icon?: string;
|
|
20
|
+
iconSize?: number;
|
|
21
|
+
iconColor?: string;
|
|
22
|
+
iconColorHover?: string;
|
|
23
|
+
width?: number | string;
|
|
24
|
+
height?: number | string;
|
|
25
|
+
title?: string;
|
|
26
|
+
message?: string;
|
|
27
|
+
busyMessage?: string;
|
|
28
|
+
backgroundColor?: string;
|
|
29
|
+
backgroundColorHover?: string;
|
|
30
|
+
bgColor?: string;
|
|
31
|
+
bgColorHover?: string;
|
|
32
|
+
borderWidth?: number;
|
|
33
|
+
border?: number;
|
|
34
|
+
borderColor?: string | null;
|
|
35
|
+
borderColorHover?: string | null;
|
|
36
|
+
borderStyle?: string;
|
|
37
|
+
textSize?: 'xs' | 's' | 'm' | 'l';
|
|
38
|
+
padding?: number | string;
|
|
39
|
+
borderRadius?: number | string;
|
|
40
|
+
radius?: number | string;
|
|
41
|
+
acceptedTypes?: string[];
|
|
42
|
+
multiple?: boolean;
|
|
43
|
+
busy?: boolean;
|
|
44
|
+
showProgress?: boolean;
|
|
45
|
+
files?: FileItem[];
|
|
46
|
+
canRemove?: boolean;
|
|
47
|
+
onUpload?: (files: File[]) => void;
|
|
48
|
+
};
|
|
49
|
+
export type UploadAreaProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof UploadAreaBaseProps> & UploadAreaBaseProps;
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
type PlayContext<TArgs = unknown> = {
|
|
2
|
+
args: TArgs;
|
|
3
|
+
canvasElement: HTMLElement;
|
|
4
|
+
};
|
|
5
|
+
export declare function runAvatarGroupPlay<TArgs>({ args, canvasElement, }: PlayContext<TArgs>): Promise<void>;
|
|
6
|
+
export declare function runBadgePlay<TArgs>({ canvasElement, args, }: PlayContext<TArgs>): Promise<void>;
|
|
7
|
+
export declare function runCheckBoxPlay<TArgs>({ args, canvasElement, }: PlayContext<TArgs>): Promise<void>;
|
|
8
|
+
export declare function runDivInputPlay<TArgs>({ args, canvasElement, }: PlayContext<TArgs>): Promise<void>;
|
|
9
|
+
export declare function runDotPlay<TArgs>({ canvasElement }: PlayContext<TArgs>): Promise<void>;
|
|
10
|
+
export declare function runDraggablePanelPlay<TArgs>({ canvasElement, args, }: PlayContext<TArgs>): Promise<void>;
|
|
11
|
+
export declare function runDropDownPlay<TArgs>({ args, canvasElement, }: PlayContext<TArgs>): Promise<void>;
|
|
12
|
+
export declare function runErrorSummaryPlay<TArgs>({ args, canvasElement, }: PlayContext<TArgs>): Promise<void>;
|
|
13
|
+
export declare function runFlexDivPlay<TArgs>({ canvasElement, }: PlayContext<TArgs>): Promise<void>;
|
|
14
|
+
export declare function runGrouperPlay<TArgs>({ args, canvasElement, }: PlayContext<TArgs>): Promise<void>;
|
|
15
|
+
export declare function runIconPlay<TArgs>({ args, canvasElement, }: PlayContext<TArgs>): Promise<void>;
|
|
16
|
+
export declare function runIconButtonPlay<TArgs>({ args, canvasElement, }: PlayContext<TArgs>): Promise<void>;
|
|
17
|
+
export declare function runLogosPlay<TArgs>({ canvasElement, }: PlayContext<TArgs>): Promise<void>;
|
|
18
|
+
export declare function runOverlayPlay<TArgs>({ args, canvasElement, }: PlayContext<TArgs>): Promise<void>;
|
|
19
|
+
export declare function runPagerPlay<TArgs>({ args, canvasElement, }: PlayContext<TArgs>): Promise<void>;
|
|
20
|
+
export declare function runProgressIndicatorPlay<TArgs>({ canvasElement, }: PlayContext<TArgs>): Promise<void>;
|
|
21
|
+
export declare function runRadioButtonPlay<TArgs>({ args, canvasElement, }: PlayContext<TArgs>): Promise<void>;
|
|
22
|
+
export declare function runRadioButtonListPlay<TArgs>({ args, canvasElement, }: PlayContext<TArgs>): Promise<void>;
|
|
23
|
+
export declare function runSliderPlay<TArgs>({ args, canvasElement, }: PlayContext<TArgs>): Promise<void>;
|
|
24
|
+
export declare function runSpacerPlay<TArgs>({ args, canvasElement, }: PlayContext<TArgs>): Promise<void>;
|
|
25
|
+
export declare function runSwitchPlay<TArgs>({ args, canvasElement, }: PlayContext<TArgs>): Promise<void>;
|
|
26
|
+
export declare function runTabBarPlay<TArgs>({ args, canvasElement, }: PlayContext<TArgs>): Promise<void>;
|
|
27
|
+
export declare function runTextAreaPlay<TArgs>({ args, canvasElement, }: PlayContext<TArgs>): Promise<void>;
|
|
28
|
+
export declare function runTextFieldPlay<TArgs>({ args, canvasElement, }: PlayContext<TArgs>): Promise<void>;
|
|
29
|
+
export declare function runButtonPlay<TArgs>({ args, canvasElement, }: PlayContext<TArgs>): Promise<void>;
|
|
30
|
+
export declare function runButtonBarPlay<TArgs>({ args, canvasElement, }: PlayContext<TArgs>): Promise<void>;
|
|
31
|
+
export declare function runCardPlay<TArgs>({ args, canvasElement, }: PlayContext<TArgs>): Promise<void>;
|
|
32
|
+
export declare function runChipPlay<TArgs>({ args, canvasElement, }: PlayContext<TArgs>): Promise<void>;
|
|
33
|
+
export declare function runUIFileIconPlay<TArgs>({ args, canvasElement, }: PlayContext<TArgs>): Promise<void>;
|
|
34
|
+
export declare function runLabelPlay<TArgs>({ args, canvasElement, }: PlayContext<TArgs>): Promise<void>;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
export type ToolTip = {
|
|
3
|
+
type?: ToolTipType;
|
|
4
|
+
payload?: {
|
|
5
|
+
label: string;
|
|
6
|
+
duration?: number;
|
|
7
|
+
};
|
|
8
|
+
ref?: React.RefObject<any> | null;
|
|
9
|
+
event?: MouseEvent | React.MouseEvent<any>;
|
|
10
|
+
};
|
|
11
|
+
export declare enum ToolTipType {
|
|
12
|
+
menu = "menu",
|
|
13
|
+
button = "button",
|
|
14
|
+
general = "general",
|
|
15
|
+
other = "other"
|
|
16
|
+
}
|
|
17
|
+
export type ToolTipInfo = {
|
|
18
|
+
title?: string | null;
|
|
19
|
+
description?: string | null;
|
|
20
|
+
image?: string | null;
|
|
21
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { useTheme } from './useTheme/useTheme';
|
|
2
|
+
export { useObserveTheme } from './useObserveTheme/useObserveTheme';
|
|
3
|
+
export { useDoubleClick } from './useDoubleClick/useDoubleClick';
|
|
4
|
+
export { useToolTip } from './useToolTip/useToolTip';
|
|
5
|
+
export { type KeyboardShortcut, type KeyboardShortcuts, useKeyboardShortcuts, } from './useKeyboardShortcuts/useKeyboardShortcuts';
|
|
6
|
+
export { useLastUpdated } from './useLastUpdated/useLastUpdated';
|
|
7
|
+
export { useLocalStore } from './useLocalStore/useLocalStore';
|
|
8
|
+
export { useWindow, FormFactor, type BreakPoints, type WindowGeolocation, type WindowGeolocationError, } from './useWindow/useWindow';
|
|
9
|
+
export { useObserveResize } from './useObserveResize/useObserveResize';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useDoubleClick<T, Y>(onClick: (payload?: T) => void, onDblClick: (payload?: Y) => void, delay?: number): readonly [(payload: T) => () => void, (payload: Y) => void];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface KeyboardShortcut {
|
|
2
|
+
key: string;
|
|
3
|
+
metaPressed?: boolean;
|
|
4
|
+
shiftPressed?: boolean;
|
|
5
|
+
altPressed?: boolean;
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
8
|
+
export type KeyboardShortcuts = KeyboardShortcut[];
|
|
9
|
+
export declare function useKeyboardShortcuts(shortcuts: KeyboardShortcuts, shortCutHandler: (shortcut: KeyboardShortcut) => void, isAppleDevice: boolean): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useLocalStore<T>(key: string, value: T): readonly [T, (data: T) => void];
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { SliceTheme } from '../../theme';
|
|
2
|
+
/**
|
|
3
|
+
* Hook to manage Slice theming
|
|
4
|
+
*/
|
|
5
|
+
export declare function useTheme(): {
|
|
6
|
+
/**
|
|
7
|
+
* Slice's default dark theme
|
|
8
|
+
*/
|
|
9
|
+
darkTheme: SliceTheme;
|
|
10
|
+
/**
|
|
11
|
+
* Slice's default light theme
|
|
12
|
+
*/
|
|
13
|
+
lightTheme: SliceTheme;
|
|
14
|
+
/**
|
|
15
|
+
* The currently active SliceTheme
|
|
16
|
+
*/
|
|
17
|
+
current: SliceTheme;
|
|
18
|
+
/**
|
|
19
|
+
* CSS variables for theme colors
|
|
20
|
+
*/
|
|
21
|
+
colors: Record<keyof import("../..").Colors, string>;
|
|
22
|
+
/**
|
|
23
|
+
* CSS Class names for the theme colors
|
|
24
|
+
*/
|
|
25
|
+
colorsClass: Record<keyof import("../..").Colors, string>;
|
|
26
|
+
/**
|
|
27
|
+
* CSS class names for theme typefaces
|
|
28
|
+
*/
|
|
29
|
+
typeClass: Record<keyof import("../..").Type, string>;
|
|
30
|
+
/**
|
|
31
|
+
* CSS typeface styles as inline style properties
|
|
32
|
+
*/
|
|
33
|
+
typeStyle: Record<keyof import("../..").Type, import("react").CSSProperties>;
|
|
34
|
+
/**
|
|
35
|
+
* Set a new theme by name or passing in a SliceTheme object
|
|
36
|
+
* @param newTheme
|
|
37
|
+
*/
|
|
38
|
+
set: (newTheme: SliceTheme | string) => void;
|
|
39
|
+
/**
|
|
40
|
+
* Toggle between light and dark themes
|
|
41
|
+
*/
|
|
42
|
+
toggle: () => void;
|
|
43
|
+
/**
|
|
44
|
+
* If the currently active theme is the Slice's default dark theme'
|
|
45
|
+
*/
|
|
46
|
+
isDark: boolean;
|
|
47
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Form factor names
|
|
3
|
+
*/
|
|
4
|
+
export declare enum FormFactor {
|
|
5
|
+
Mobile = "mobile",
|
|
6
|
+
Tablet = "tablet",
|
|
7
|
+
Desktop = "desktop",
|
|
8
|
+
DesktopL = "desktopL",
|
|
9
|
+
DesktopXL = "desktopXL"
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Breakpoint type matching form factor to width value
|
|
13
|
+
*/
|
|
14
|
+
export type BreakPoints = Record<FormFactor, number>;
|
|
15
|
+
export type WindowGeolocation = {
|
|
16
|
+
latitude: number;
|
|
17
|
+
longitude: number;
|
|
18
|
+
accuracy: number;
|
|
19
|
+
altitude: number | null;
|
|
20
|
+
altitudeAccuracy: number | null;
|
|
21
|
+
heading: number | null;
|
|
22
|
+
speed: number | null;
|
|
23
|
+
timestamp: number;
|
|
24
|
+
};
|
|
25
|
+
export type WindowGeolocationError = {
|
|
26
|
+
code: number;
|
|
27
|
+
message: string;
|
|
28
|
+
};
|
|
29
|
+
export declare function useWindow(breakpoints?: BreakPoints, top?: boolean): {
|
|
30
|
+
viewportWidth: number | null;
|
|
31
|
+
viewportHeight: number | null;
|
|
32
|
+
height: string;
|
|
33
|
+
isTouchDevice: boolean;
|
|
34
|
+
isElectron: boolean;
|
|
35
|
+
isAppleDevice: boolean;
|
|
36
|
+
formFactor: FormFactor;
|
|
37
|
+
dpr: 2 | 1 | 3;
|
|
38
|
+
geolocationSupported: boolean;
|
|
39
|
+
location: WindowGeolocation | null;
|
|
40
|
+
locationError: Error | null;
|
|
41
|
+
gettingLocation: boolean;
|
|
42
|
+
requestGeolocation: () => void;
|
|
43
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
export type { ToolTip, ToolTipInfo } from './components/sharedTypes';
|
|
2
|
+
export { ToolTipType } from './components/sharedTypes';
|
|
3
|
+
export { light, dark, lightTheme, darkTheme, motion, elevations, Elevation, } from './theme';
|
|
4
|
+
export type { SliceTheme, Colors, Type, Corners, Elevations, } from './theme';
|
|
5
|
+
export { type KeyboardShortcut, type KeyboardShortcuts, type BreakPoints, type WindowGeolocation, type WindowGeolocationError, useKeyboardShortcuts, useTheme, useObserveTheme, useToolTip, useLastUpdated, useLocalStore, useWindow, useDoubleClick, useObserveResize, } from './hooks';
|
|
6
|
+
export { Avatar } from './components/Avatar/index';
|
|
7
|
+
export type { AvatarProps } from './components/Avatar/index';
|
|
8
|
+
export { AvatarGroup } from './components/AvatarGroup';
|
|
9
|
+
export type { AvatarGroupProps, AvatarInfo } from './components/AvatarGroup';
|
|
10
|
+
export { Badge } from './components/Badge';
|
|
11
|
+
export type { BadgeProps } from './components/Badge';
|
|
12
|
+
export { IconButton } from './components/IconButton';
|
|
13
|
+
export type { IconButtonProps } from './components/IconButton';
|
|
14
|
+
export { Camera } from './components/Camera';
|
|
15
|
+
export type { CameraElement, CameraProps, CameraSnapshotOptions, Controls, UserProfile, Settings, } from './components/Camera';
|
|
16
|
+
export { CheckBox } from './components/CheckBox';
|
|
17
|
+
export type { CheckBoxProps } from './components/CheckBox';
|
|
18
|
+
export { DivInput } from './components/DivInput';
|
|
19
|
+
export type { DivInputProps } from './components/DivInput';
|
|
20
|
+
export { Dot } from './components/Dot';
|
|
21
|
+
export type { DotProps } from './components/Dot';
|
|
22
|
+
export { DraggablePanel } from './components/DraggablePanel';
|
|
23
|
+
export type { DraggablePanelProps } from './components/DraggablePanel';
|
|
24
|
+
export { DropDown } from './components/DropDown';
|
|
25
|
+
export type { DropDownOption, DropDownProps } from './components/DropDown';
|
|
26
|
+
export { ErrorSummary } from './components/ErrorSummary';
|
|
27
|
+
export type { ErrorMessage, ErrorSummaryProps, } from './components/ErrorSummary';
|
|
28
|
+
export { Grouper } from './components/Grouper';
|
|
29
|
+
export type { GrouperProps } from './components/Grouper';
|
|
30
|
+
export { Overlay } from './components/Overlay';
|
|
31
|
+
export type { OverlayProps } from './components/Overlay';
|
|
32
|
+
export { FlexDiv } from './components/FlexDiv';
|
|
33
|
+
export type { FlexDivProps } from './components/FlexDiv';
|
|
34
|
+
export { Pager } from './components/Pager';
|
|
35
|
+
export type { PagerProps } from './components/Pager';
|
|
36
|
+
export { PromptInput } from './components/PromptInput';
|
|
37
|
+
export type { PromptProps } from './components/PromptInput';
|
|
38
|
+
export { DoneCheck, ProgressIndicator } from './components/Progress';
|
|
39
|
+
export type { DoneCheckProps, ProgressIndicatorProps, } from './components/Progress';
|
|
40
|
+
export { RadioButton } from './components/RadioButton';
|
|
41
|
+
export type { RadioButtonProps, RadioButtonOption, } from './components/RadioButton';
|
|
42
|
+
export { RadioButtonList } from './components/RadioButtonList';
|
|
43
|
+
export type { RadioButtonListProps } from './components/RadioButtonList';
|
|
44
|
+
export { Slider } from './components/Slider';
|
|
45
|
+
export type { SliderProps } from './components/Slider';
|
|
46
|
+
export { Spacer } from './components/Spacer';
|
|
47
|
+
export { Switch } from './components/Switch';
|
|
48
|
+
export type { SwitchProps } from './components/Switch';
|
|
49
|
+
export { TabBar } from './components/TabBar';
|
|
50
|
+
export type { TabOption, TabBarProps } from './components/TabBar';
|
|
51
|
+
export { TextArea } from './components/TextArea';
|
|
52
|
+
export type { TextAreaProps } from './components/TextArea';
|
|
53
|
+
export { TextField } from './components/Textfield';
|
|
54
|
+
export type { TextFieldProps } from './components/Textfield';
|
|
55
|
+
export { ThemeProvider } from './providers';
|
|
56
|
+
export { Tip } from './components/Tip';
|
|
57
|
+
export type { ToolTipProps } from './components/Tip';
|
|
58
|
+
export { Toast, ToastType } from './components/Toast';
|
|
59
|
+
export type { ToastProps } from './components/Toast';
|
|
60
|
+
export { Button } from './components/Button';
|
|
61
|
+
export type { ButtonProps, ButtonHandle } from './components/Button';
|
|
62
|
+
export { Chip } from './components/Chip';
|
|
63
|
+
export type { ChipProps } from './components/Chip';
|
|
64
|
+
export { FileIcon, FileIconNames } from './components/FileIcon';
|
|
65
|
+
export type { FileIconProps } from './components/FileIcon/_types';
|
|
66
|
+
export { Icon, SliceIcons } from './components/Icon';
|
|
67
|
+
export type { IconProps } from './components/Icon/_types';
|
|
68
|
+
export { ButtonBar } from './components/ButtonBar';
|
|
69
|
+
export type { BarButton, ButtonBarProps } from './components/ButtonBar/_types';
|
|
70
|
+
export { Label } from './components/Label';
|
|
71
|
+
export { LabelBackground } from './components/Label';
|
|
72
|
+
export type { LabelProps } from './components/Label';
|
|
73
|
+
export { UploadArea } from './components/UploadArea';
|
|
74
|
+
export type { UploadAreaProps } from './components/UploadArea/_types';
|
|
75
|
+
export { imageTypes, videoTypes, documentTypes, audioTypes, textTypes, allTypes, } from './components/UploadArea/_types';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import '../theme/colors/colors.css';
|
|
3
|
+
import '../theme/elevations/elevation.css';
|
|
4
|
+
import '../theme/type/type.css';
|
|
5
|
+
import '../theme/breakpoints/custom-media.css';
|
|
6
|
+
import '../theme/motion/motion.css';
|
|
7
|
+
interface ThemeProviderProps {
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
theme?: string;
|
|
10
|
+
system?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function ThemeProvider(props: Readonly<ThemeProviderProps>): React.ReactNode;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ThemeProvider } from './ThemeProvider';
|