@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,131 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
type IconBaseProps = {
|
|
3
|
+
name?: string;
|
|
4
|
+
size?: number;
|
|
5
|
+
stroke?: number;
|
|
6
|
+
strokeColor?: string;
|
|
7
|
+
fillColor?: string;
|
|
8
|
+
coverUp?: string;
|
|
9
|
+
toggle?: boolean;
|
|
10
|
+
pointer?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
onClick?: (e: React.MouseEvent<SVGElement, MouseEvent>) => void;
|
|
13
|
+
};
|
|
14
|
+
export type IconProps = Omit<React.SVGAttributes<SVGSVGElement>, keyof IconBaseProps> & IconBaseProps;
|
|
15
|
+
export declare const SliceIcons: {
|
|
16
|
+
readonly arrows: {
|
|
17
|
+
readonly arrowLeft: "arrow left";
|
|
18
|
+
readonly arrowRight: "arrow right";
|
|
19
|
+
readonly arrowUp: "arrow up";
|
|
20
|
+
readonly arrowDown: "arrow down";
|
|
21
|
+
readonly chevronDown: "chevron down";
|
|
22
|
+
readonly chevronUp: "chevron up";
|
|
23
|
+
readonly navigateRight: "navigate right";
|
|
24
|
+
readonly navigateLeft: "navigate left";
|
|
25
|
+
readonly share: "share";
|
|
26
|
+
};
|
|
27
|
+
readonly selection: {
|
|
28
|
+
readonly check: "check";
|
|
29
|
+
readonly checkCircle: "check circle";
|
|
30
|
+
readonly checkbox: "checkbox";
|
|
31
|
+
readonly checkboxChecked: "checkbox checked";
|
|
32
|
+
readonly checkboxPartial: "checkbox partial";
|
|
33
|
+
readonly circle: "circle";
|
|
34
|
+
readonly circleFill: "circle fill";
|
|
35
|
+
readonly plus: "plus";
|
|
36
|
+
readonly plusCircle: "plus circle";
|
|
37
|
+
};
|
|
38
|
+
readonly Messaging: {
|
|
39
|
+
readonly chat: "chat";
|
|
40
|
+
readonly mail: "mail";
|
|
41
|
+
readonly notification: "notification";
|
|
42
|
+
readonly inbox: "inbox";
|
|
43
|
+
readonly like: "like";
|
|
44
|
+
readonly unlike: "unlike";
|
|
45
|
+
};
|
|
46
|
+
readonly media: {
|
|
47
|
+
readonly camera: "camera";
|
|
48
|
+
readonly focus: "focus";
|
|
49
|
+
readonly mic: "mic";
|
|
50
|
+
readonly micMuted: "mic muted";
|
|
51
|
+
readonly video: "video";
|
|
52
|
+
readonly videoOff: "video off";
|
|
53
|
+
readonly download: "download";
|
|
54
|
+
readonly upload: "upload";
|
|
55
|
+
};
|
|
56
|
+
readonly files: {
|
|
57
|
+
readonly document: "document";
|
|
58
|
+
readonly documentEditor: "document editor";
|
|
59
|
+
readonly textDocument: "text document";
|
|
60
|
+
};
|
|
61
|
+
readonly people: {
|
|
62
|
+
readonly people: "people";
|
|
63
|
+
readonly person: "person";
|
|
64
|
+
};
|
|
65
|
+
readonly business: {
|
|
66
|
+
readonly briefcase: "briefcase";
|
|
67
|
+
readonly dollar: "dollar";
|
|
68
|
+
readonly invoice: "invoice";
|
|
69
|
+
readonly payment: "payment";
|
|
70
|
+
readonly wallet: "wallet";
|
|
71
|
+
};
|
|
72
|
+
readonly charts: {
|
|
73
|
+
readonly barChart: "bar chart";
|
|
74
|
+
readonly chart: "chart";
|
|
75
|
+
readonly chartArrow: "chart arrow";
|
|
76
|
+
};
|
|
77
|
+
readonly status: {
|
|
78
|
+
readonly alert: "alert";
|
|
79
|
+
readonly exclamation: "exclamation";
|
|
80
|
+
readonly help: "help";
|
|
81
|
+
readonly info: "info";
|
|
82
|
+
readonly issue: "issue";
|
|
83
|
+
readonly lightBulb: "light bulb";
|
|
84
|
+
readonly target: "target";
|
|
85
|
+
readonly openCircle: "open circle";
|
|
86
|
+
};
|
|
87
|
+
readonly brands: {
|
|
88
|
+
readonly apple: "apple";
|
|
89
|
+
readonly google: "google";
|
|
90
|
+
readonly googleMono: "google mono";
|
|
91
|
+
readonly linkedin: "linkedin";
|
|
92
|
+
};
|
|
93
|
+
readonly edit: {
|
|
94
|
+
readonly edit: "edit";
|
|
95
|
+
readonly trashBin: "trash bin";
|
|
96
|
+
readonly copy: "copy";
|
|
97
|
+
readonly filter: "filter";
|
|
98
|
+
readonly highlight: "highlight";
|
|
99
|
+
readonly undo: "undo";
|
|
100
|
+
readonly concise: "concise";
|
|
101
|
+
readonly expanded: "expanded";
|
|
102
|
+
readonly moderate: "moderate";
|
|
103
|
+
readonly recent: "recent";
|
|
104
|
+
};
|
|
105
|
+
readonly typography: {
|
|
106
|
+
readonly fontLarger: "font larger";
|
|
107
|
+
readonly fontSmaller: "font smaller";
|
|
108
|
+
readonly characterBeam: "character beam";
|
|
109
|
+
};
|
|
110
|
+
readonly ai: {
|
|
111
|
+
readonly sparkle: "sparkle";
|
|
112
|
+
readonly wand: "wand";
|
|
113
|
+
};
|
|
114
|
+
readonly ui: {
|
|
115
|
+
readonly attach: "attach";
|
|
116
|
+
readonly blank: "blank";
|
|
117
|
+
readonly book: "book";
|
|
118
|
+
readonly globeLocation: "globe location";
|
|
119
|
+
readonly heart: "heart";
|
|
120
|
+
readonly stop: "stop";
|
|
121
|
+
readonly search: "search";
|
|
122
|
+
readonly settings: "settings";
|
|
123
|
+
readonly view: "view";
|
|
124
|
+
readonly refresh: "refresh";
|
|
125
|
+
readonly home: "home";
|
|
126
|
+
readonly menu: "menu";
|
|
127
|
+
readonly more: "more";
|
|
128
|
+
readonly x: "x";
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { JSX } from 'react';
|
|
2
|
+
export interface IconRenderProps {
|
|
3
|
+
stroke: number;
|
|
4
|
+
strokeColor: string;
|
|
5
|
+
fillColor: string;
|
|
6
|
+
coverUp: string;
|
|
7
|
+
}
|
|
8
|
+
export type IconLineRenderer = (props: IconRenderProps) => JSX.Element;
|
|
9
|
+
export interface IconDefinition {
|
|
10
|
+
line: IconLineRenderer;
|
|
11
|
+
lineOn?: IconLineRenderer;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Static icon registry created once at module load.
|
|
15
|
+
* Each entry stores only icon line content renderers.
|
|
16
|
+
*/
|
|
17
|
+
export declare const STATIC_ICON_REGISTRY: Map<string, IconDefinition>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { Transition, Variants } from 'motion/react';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
import type { ToolTip } from '../sharedTypes';
|
|
4
|
+
type IconButtonBaseProps = {
|
|
5
|
+
frameSize?: number;
|
|
6
|
+
iconSize?: number;
|
|
7
|
+
icon?: string;
|
|
8
|
+
iconColor?: string;
|
|
9
|
+
iconColorOn?: string;
|
|
10
|
+
iconColorHover?: string;
|
|
11
|
+
tooltip?: string;
|
|
12
|
+
color?: string;
|
|
13
|
+
colorOn?: string;
|
|
14
|
+
fillColor?: string;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
bgColor?: string;
|
|
17
|
+
bgColorOn?: string;
|
|
18
|
+
bgColorHover?: string;
|
|
19
|
+
toggle?: boolean;
|
|
20
|
+
hover?: boolean;
|
|
21
|
+
toggleIcon?: boolean;
|
|
22
|
+
isToggled?: boolean;
|
|
23
|
+
showDot?: boolean;
|
|
24
|
+
count?: number;
|
|
25
|
+
transition?: Transition;
|
|
26
|
+
label?: string;
|
|
27
|
+
border?: boolean;
|
|
28
|
+
variants?: Variants;
|
|
29
|
+
initial?: string;
|
|
30
|
+
animate?: string;
|
|
31
|
+
exit?: string;
|
|
32
|
+
borderRadius?: number;
|
|
33
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
34
|
+
onToolTip?: (tip: ToolTip | null) => void;
|
|
35
|
+
};
|
|
36
|
+
export type IconButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof IconButtonBaseProps> & IconButtonBaseProps;
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
export declare enum LabelBackground {
|
|
3
|
+
red = "red",
|
|
4
|
+
yellow = "yellow",
|
|
5
|
+
green = "green",
|
|
6
|
+
blue = "blue",
|
|
7
|
+
grey = "grey",
|
|
8
|
+
lightGrey = "lightGrey",
|
|
9
|
+
white = "white"
|
|
10
|
+
}
|
|
11
|
+
type LabelBaseProps = {
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
label?: string;
|
|
14
|
+
backgroundColor?: LabelBackground | string;
|
|
15
|
+
bgColor?: LabelBackground | string;
|
|
16
|
+
borderWidth?: number;
|
|
17
|
+
borderSize?: number;
|
|
18
|
+
borderColor?: string;
|
|
19
|
+
borderRadius?: number;
|
|
20
|
+
padding?: number | string;
|
|
21
|
+
textColor?: string;
|
|
22
|
+
textSize?: 'xs' | 's' | 'm' | 'l';
|
|
23
|
+
onClick?: (e: React.MouseEvent<any>) => void;
|
|
24
|
+
};
|
|
25
|
+
export type LabelProps = Omit<React.HTMLAttributes<HTMLElement>, keyof LabelBaseProps> & LabelBaseProps;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
type OverlayBaseProps = {
|
|
3
|
+
opacity?: number;
|
|
4
|
+
color?: string;
|
|
5
|
+
type?: 'clear' | 'dark';
|
|
6
|
+
global?: boolean;
|
|
7
|
+
overlay?: any;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
toggleOverlay?: (state: boolean) => void;
|
|
10
|
+
};
|
|
11
|
+
export type OverlayProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof OverlayBaseProps> & OverlayBaseProps;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
type PagerBaseProps = {
|
|
3
|
+
size?: number;
|
|
4
|
+
index?: number;
|
|
5
|
+
color?: string;
|
|
6
|
+
colorOn?: string;
|
|
7
|
+
colorHover?: string;
|
|
8
|
+
pages?: number;
|
|
9
|
+
gap?: number;
|
|
10
|
+
onChange?: (index: number) => void;
|
|
11
|
+
};
|
|
12
|
+
export type PagerProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof PagerBaseProps> & PagerBaseProps;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
type DoneCheckBaseProps = {
|
|
3
|
+
size?: number;
|
|
4
|
+
color?: string;
|
|
5
|
+
stroke?: number;
|
|
6
|
+
duration?: number;
|
|
7
|
+
delay?: number;
|
|
8
|
+
play?: boolean;
|
|
9
|
+
didStart?: () => void;
|
|
10
|
+
didEnd?: () => void;
|
|
11
|
+
};
|
|
12
|
+
export type DoneCheckProps = Omit<React.SVGAttributes<SVGSVGElement>, keyof DoneCheckBaseProps> & DoneCheckBaseProps;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ProgressIndicatorProps } from './_types';
|
|
2
|
+
export declare function ProgressIndicator(props: Readonly<ProgressIndicatorProps>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const OpenCircle: (size: number, secondsPerSpin: number, color: string, stroke?: number, playing?: boolean) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
type ProgressIndicatorBaseProps = {
|
|
3
|
+
size?: number;
|
|
4
|
+
secondsPerSpin?: number;
|
|
5
|
+
show?: boolean;
|
|
6
|
+
color?: string;
|
|
7
|
+
stroke?: number;
|
|
8
|
+
duration?: number;
|
|
9
|
+
inline?: boolean;
|
|
10
|
+
didStart?: () => void;
|
|
11
|
+
didStop?: () => void;
|
|
12
|
+
};
|
|
13
|
+
export type ProgressIndicatorProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof ProgressIndicatorBaseProps> & ProgressIndicatorBaseProps;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type FileItem } from '../FileList';
|
|
3
|
+
export declare const PromptInput: React.NamedExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, keyof {
|
|
4
|
+
attachments?: FileItem[];
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
value?: string;
|
|
7
|
+
maxHeight?: string | number;
|
|
8
|
+
working?: boolean;
|
|
9
|
+
borderStyle?: "solid" | "gradient" | "none";
|
|
10
|
+
borderWidth?: number;
|
|
11
|
+
borderColor?: string | number;
|
|
12
|
+
borderColorOn?: string | number;
|
|
13
|
+
borderAnimate?: boolean;
|
|
14
|
+
borderRadius?: number;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
placeholderWorking?: string;
|
|
17
|
+
focused?: boolean;
|
|
18
|
+
submitClears?: boolean;
|
|
19
|
+
submitEnablesStop?: boolean;
|
|
20
|
+
enterSubmits?: boolean;
|
|
21
|
+
sendButton?: boolean;
|
|
22
|
+
attachButton?: boolean;
|
|
23
|
+
stopEnabled?: boolean;
|
|
24
|
+
maxLength?: number;
|
|
25
|
+
toolbarGap?: number;
|
|
26
|
+
textSize?: "s" | "m" | "l";
|
|
27
|
+
onChange?: (value: string | undefined, attachments?: FileItem[]) => void;
|
|
28
|
+
onSubmit?: (value: string | undefined, attachments?: FileItem[]) => void;
|
|
29
|
+
onBlur?: (value: string | undefined, attachments?: FileItem[]) => void;
|
|
30
|
+
onFocus?: (value: string | undefined, attachments?: FileItem[]) => void;
|
|
31
|
+
onStop?: () => void;
|
|
32
|
+
onAttachmentsChange?: (attachments: FileItem[]) => void;
|
|
33
|
+
}> & {
|
|
34
|
+
attachments?: FileItem[];
|
|
35
|
+
children?: React.ReactNode;
|
|
36
|
+
value?: string;
|
|
37
|
+
maxHeight?: string | number;
|
|
38
|
+
working?: boolean;
|
|
39
|
+
borderStyle?: "solid" | "gradient" | "none";
|
|
40
|
+
borderWidth?: number;
|
|
41
|
+
borderColor?: string | number;
|
|
42
|
+
borderColorOn?: string | number;
|
|
43
|
+
borderAnimate?: boolean;
|
|
44
|
+
borderRadius?: number;
|
|
45
|
+
placeholder?: string;
|
|
46
|
+
placeholderWorking?: string;
|
|
47
|
+
focused?: boolean;
|
|
48
|
+
submitClears?: boolean;
|
|
49
|
+
submitEnablesStop?: boolean;
|
|
50
|
+
enterSubmits?: boolean;
|
|
51
|
+
sendButton?: boolean;
|
|
52
|
+
attachButton?: boolean;
|
|
53
|
+
stopEnabled?: boolean;
|
|
54
|
+
maxLength?: number;
|
|
55
|
+
toolbarGap?: number;
|
|
56
|
+
textSize?: "s" | "m" | "l";
|
|
57
|
+
onChange?: (value: string | undefined, attachments?: FileItem[]) => void;
|
|
58
|
+
onSubmit?: (value: string | undefined, attachments?: FileItem[]) => void;
|
|
59
|
+
onBlur?: (value: string | undefined, attachments?: FileItem[]) => void;
|
|
60
|
+
onFocus?: (value: string | undefined, attachments?: FileItem[]) => void;
|
|
61
|
+
onStop?: () => void;
|
|
62
|
+
onAttachmentsChange?: (attachments: FileItem[]) => void;
|
|
63
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { FileItem } from '../FileList';
|
|
3
|
+
type BasePromptProps = {
|
|
4
|
+
attachments?: FileItem[];
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
value?: string;
|
|
7
|
+
maxHeight?: string | number;
|
|
8
|
+
working?: boolean;
|
|
9
|
+
borderStyle?: 'solid' | 'gradient' | 'none';
|
|
10
|
+
borderWidth?: number;
|
|
11
|
+
borderColor?: string | number;
|
|
12
|
+
borderColorOn?: string | number;
|
|
13
|
+
borderAnimate?: boolean;
|
|
14
|
+
borderRadius?: number;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
placeholderWorking?: string;
|
|
17
|
+
focused?: boolean;
|
|
18
|
+
submitClears?: boolean;
|
|
19
|
+
submitEnablesStop?: boolean;
|
|
20
|
+
enterSubmits?: boolean;
|
|
21
|
+
sendButton?: boolean;
|
|
22
|
+
attachButton?: boolean;
|
|
23
|
+
stopEnabled?: boolean;
|
|
24
|
+
maxLength?: number;
|
|
25
|
+
toolbarGap?: number;
|
|
26
|
+
textSize?: 's' | 'm' | 'l';
|
|
27
|
+
onChange?: (value: string | undefined, attachments?: FileItem[]) => void;
|
|
28
|
+
onSubmit?: (value: string | undefined, attachments?: FileItem[]) => void;
|
|
29
|
+
onBlur?: (value: string | undefined, attachments?: FileItem[]) => void;
|
|
30
|
+
onFocus?: (value: string | undefined, attachments?: FileItem[]) => void;
|
|
31
|
+
onStop?: () => void;
|
|
32
|
+
onAttachmentsChange?: (attachments: FileItem[]) => void;
|
|
33
|
+
};
|
|
34
|
+
export type PromptProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof BasePromptProps> & BasePromptProps;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
export type RadioButtonOption<T = string> = {
|
|
3
|
+
fieldName?: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
value?: T;
|
|
6
|
+
};
|
|
7
|
+
type RadioButtonBaseProps<T = string> = {
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
label?: string;
|
|
10
|
+
fieldName?: string;
|
|
11
|
+
value?: T;
|
|
12
|
+
selected?: boolean;
|
|
13
|
+
controlType?: 'radio' | 'checkbox';
|
|
14
|
+
deselect?: boolean;
|
|
15
|
+
tabIndex?: number;
|
|
16
|
+
wrap?: boolean;
|
|
17
|
+
list?: boolean;
|
|
18
|
+
hideRadio?: boolean;
|
|
19
|
+
iconColor?: string;
|
|
20
|
+
noFrame?: boolean;
|
|
21
|
+
gap?: number;
|
|
22
|
+
icon?: string;
|
|
23
|
+
checkedIcon?: string;
|
|
24
|
+
onChange?: (option: RadioButtonOption<T>, selected: boolean) => void;
|
|
25
|
+
};
|
|
26
|
+
export type RadioButtonProps<T = string> = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof RadioButtonBaseProps> & RadioButtonBaseProps<T>;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { RadioButtonOption } from '../RadioButton';
|
|
3
|
+
type RadioButtonListBaseProps<T = string> = {
|
|
4
|
+
options?: RadioButtonOption<T>[];
|
|
5
|
+
selectedIndexes?: number[] | null;
|
|
6
|
+
selectedOptions?: string[] | null;
|
|
7
|
+
label?: string | null;
|
|
8
|
+
deselect?: boolean;
|
|
9
|
+
multiSelect?: boolean;
|
|
10
|
+
wrap?: boolean;
|
|
11
|
+
spacer?: 'xl' | 'lg' | 'md' | 'sm' | 'custom' | 'none';
|
|
12
|
+
custom?: number;
|
|
13
|
+
gap?: number;
|
|
14
|
+
tabIndexSeed?: number;
|
|
15
|
+
hideRadio?: boolean;
|
|
16
|
+
toggleIcon?: boolean;
|
|
17
|
+
iconColor?: string;
|
|
18
|
+
iconSelectedColor?: string;
|
|
19
|
+
noFrame?: boolean;
|
|
20
|
+
icon?: string;
|
|
21
|
+
checkedIcon?: string;
|
|
22
|
+
width?: number | string;
|
|
23
|
+
onChange?: (options: RadioButtonOption<T>[] | null, indexes: number[] | null) => void;
|
|
24
|
+
};
|
|
25
|
+
export type RadioButtonListProps<T = string> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof RadioButtonListBaseProps> & RadioButtonListBaseProps<T>;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
type SliderBaseProps = {
|
|
3
|
+
value?: number;
|
|
4
|
+
scaleMin?: number;
|
|
5
|
+
scaleMax?: number;
|
|
6
|
+
width?: number | string;
|
|
7
|
+
height?: number | string;
|
|
8
|
+
touchHeight?: number | string;
|
|
9
|
+
trackHeadSize?: number | null;
|
|
10
|
+
headColor?: string;
|
|
11
|
+
trackColor?: string;
|
|
12
|
+
progressColor?: string;
|
|
13
|
+
cursor?: 'default' | 'grab' | 'grabbing' | 'pointer';
|
|
14
|
+
onChange?: (value: number, percent: number) => void;
|
|
15
|
+
onDragChange?: (value: number, percent: number) => void;
|
|
16
|
+
};
|
|
17
|
+
export type SliderProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof SliderBaseProps> & SliderBaseProps;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
type SwitchBaseProps<T = string> = {
|
|
3
|
+
fieldName?: string;
|
|
4
|
+
state?: boolean;
|
|
5
|
+
height?: number;
|
|
6
|
+
width?: number;
|
|
7
|
+
backgroundColorOff?: string;
|
|
8
|
+
backgroundColorOn?: string;
|
|
9
|
+
bgColorOff?: string;
|
|
10
|
+
bgColorOn?: string;
|
|
11
|
+
knobColor?: string;
|
|
12
|
+
padding?: number;
|
|
13
|
+
value?: T;
|
|
14
|
+
onChange?: (value: T | undefined, state: boolean) => void;
|
|
15
|
+
};
|
|
16
|
+
export type SwitchProps<T = string> = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof SwitchBaseProps> & SwitchBaseProps<T>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { ToolTip } from '../sharedTypes';
|
|
3
|
+
export type TabOption = {
|
|
4
|
+
name?: string;
|
|
5
|
+
value?: any;
|
|
6
|
+
icon?: string | null;
|
|
7
|
+
toolTip?: string;
|
|
8
|
+
count?: number;
|
|
9
|
+
component?: any;
|
|
10
|
+
};
|
|
11
|
+
export declare const placeholderOptions: TabOption[];
|
|
12
|
+
type TabBarBaseProps = {
|
|
13
|
+
options?: TabOption[];
|
|
14
|
+
selected?: number;
|
|
15
|
+
underline?: boolean;
|
|
16
|
+
border?: boolean;
|
|
17
|
+
selectedValue?: string;
|
|
18
|
+
height?: number | string;
|
|
19
|
+
width?: number | string;
|
|
20
|
+
tabWidth?: 'compact' | 'fill' | number;
|
|
21
|
+
closeWidth?: number | string;
|
|
22
|
+
padding?: number | string;
|
|
23
|
+
iconSize?: number;
|
|
24
|
+
iconGap?: number;
|
|
25
|
+
tabGap?: number;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
hasClose?: boolean;
|
|
28
|
+
onToolTip?: (tip: ToolTip | null) => void;
|
|
29
|
+
onChange?: (index: number) => void;
|
|
30
|
+
onTabChange?: (option: TabOption) => void;
|
|
31
|
+
onClose?: () => void;
|
|
32
|
+
};
|
|
33
|
+
export type TabBarProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof TabBarBaseProps> & TabBarBaseProps;
|
|
34
|
+
export interface TabOptionProps {
|
|
35
|
+
label?: string;
|
|
36
|
+
value?: number;
|
|
37
|
+
icon?: string | null;
|
|
38
|
+
showToolTip?: string | null;
|
|
39
|
+
selected?: boolean;
|
|
40
|
+
padding?: number | string;
|
|
41
|
+
iconSize?: number;
|
|
42
|
+
iconGap?: number;
|
|
43
|
+
disabled?: boolean;
|
|
44
|
+
count?: number;
|
|
45
|
+
tabWidth?: 'compact' | 'fill' | number;
|
|
46
|
+
underline?: boolean;
|
|
47
|
+
onClick?: (value: number) => void;
|
|
48
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLButtonElement>, value: number) => void;
|
|
49
|
+
onToolTip?: (tip: ToolTip | null) => void;
|
|
50
|
+
buttonRef?: (element: HTMLButtonElement | null) => void;
|
|
51
|
+
}
|
|
52
|
+
export {};
|