@techzyapp/ui-library 1.0.0
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/Accordion-CAxa1I-m.js +112 -0
- package/dist/Accordion-CAxa1I-m.js.map +1 -0
- package/dist/Accordion-Dy_dM79Y.cjs +2 -0
- package/dist/Accordion-Dy_dM79Y.cjs.map +1 -0
- package/dist/Alert-BQpA48PY.js +71 -0
- package/dist/Alert-BQpA48PY.js.map +1 -0
- package/dist/Alert-DKIjM-9x.cjs +2 -0
- package/dist/Alert-DKIjM-9x.cjs.map +1 -0
- package/dist/Avatar-BJVCdo-K.js +60 -0
- package/dist/Avatar-BJVCdo-K.js.map +1 -0
- package/dist/Avatar-_ufXh3AY.cjs +2 -0
- package/dist/Avatar-_ufXh3AY.cjs.map +1 -0
- package/dist/AvatarGroup-DdJf4aT7.js +33 -0
- package/dist/AvatarGroup-DdJf4aT7.js.map +1 -0
- package/dist/AvatarGroup-TW1pt4tj.cjs +2 -0
- package/dist/AvatarGroup-TW1pt4tj.cjs.map +1 -0
- package/dist/Badge-BQpr2Jee.cjs +2 -0
- package/dist/Badge-BQpr2Jee.cjs.map +1 -0
- package/dist/Badge-DSWigoGC.js +50 -0
- package/dist/Badge-DSWigoGC.js.map +1 -0
- package/dist/Breadcrumbs-Bx5UgwDy.js +35 -0
- package/dist/Breadcrumbs-Bx5UgwDy.js.map +1 -0
- package/dist/Breadcrumbs-CHONper7.cjs +2 -0
- package/dist/Breadcrumbs-CHONper7.cjs.map +1 -0
- package/dist/Button-D4bfVNNa.cjs +2 -0
- package/dist/Button-D4bfVNNa.cjs.map +1 -0
- package/dist/Button-DhEv0YFk.js +72 -0
- package/dist/Button-DhEv0YFk.js.map +1 -0
- package/dist/Calendar-Bh317SaV.js +267 -0
- package/dist/Calendar-Bh317SaV.js.map +1 -0
- package/dist/Calendar-C8uNezI-.cjs +2 -0
- package/dist/Calendar-C8uNezI-.cjs.map +1 -0
- package/dist/Card-CfyaerZZ.cjs +2 -0
- package/dist/Card-CfyaerZZ.cjs.map +1 -0
- package/dist/Card-DzClqJuu.js +118 -0
- package/dist/Card-DzClqJuu.js.map +1 -0
- package/dist/Checkbox-DXOzYIAz.cjs +2 -0
- package/dist/Checkbox-DXOzYIAz.cjs.map +1 -0
- package/dist/Checkbox-XKL_Q5qj.js +84 -0
- package/dist/Checkbox-XKL_Q5qj.js.map +1 -0
- package/dist/Chip-Cfo0v3Z8.js +92 -0
- package/dist/Chip-Cfo0v3Z8.js.map +1 -0
- package/dist/Chip-DSrdXLBU.cjs +2 -0
- package/dist/Chip-DSrdXLBU.cjs.map +1 -0
- package/dist/ChoiceCardGroup-6eFM1eL0.cjs +2 -0
- package/dist/ChoiceCardGroup-6eFM1eL0.cjs.map +1 -0
- package/dist/ChoiceCardGroup-CvFzZlgI.js +181 -0
- package/dist/ChoiceCardGroup-CvFzZlgI.js.map +1 -0
- package/dist/CodeBlock-DOk5wekc.cjs +2 -0
- package/dist/CodeBlock-DOk5wekc.cjs.map +1 -0
- package/dist/CodeBlock-n3KExtTO.js +104 -0
- package/dist/CodeBlock-n3KExtTO.js.map +1 -0
- package/dist/Col-D2TfZKiM.js +13 -0
- package/dist/Col-D2TfZKiM.js.map +1 -0
- package/dist/Col-R5mAy8T9.cjs +2 -0
- package/dist/Col-R5mAy8T9.cjs.map +1 -0
- package/dist/ColorPicker-2udt1ORM.js +119 -0
- package/dist/ColorPicker-2udt1ORM.js.map +1 -0
- package/dist/ColorPicker-BwmaXCOy.cjs +2 -0
- package/dist/ColorPicker-BwmaXCOy.cjs.map +1 -0
- package/dist/ColorPickerPanel-BM9OwDDE.js +336 -0
- package/dist/ColorPickerPanel-BM9OwDDE.js.map +1 -0
- package/dist/ColorPickerPanel-ByB1mLSi.cjs +2 -0
- package/dist/ColorPickerPanel-ByB1mLSi.cjs.map +1 -0
- package/dist/ConfigProvider-2c94kUOk.js +291 -0
- package/dist/ConfigProvider-2c94kUOk.js.map +1 -0
- package/dist/ConfigProvider-ByOFXVyP.cjs +2 -0
- package/dist/ConfigProvider-ByOFXVyP.cjs.map +1 -0
- package/dist/DatePicker-DF4Epkn8.cjs +2 -0
- package/dist/DatePicker-DF4Epkn8.cjs.map +1 -0
- package/dist/DatePicker-WM9TC6L_.js +191 -0
- package/dist/DatePicker-WM9TC6L_.js.map +1 -0
- package/dist/DatePicker.module-BZDftL4g.js +138 -0
- package/dist/DatePicker.module-BZDftL4g.js.map +1 -0
- package/dist/DatePicker.module-tE-tGNBd.cjs +2 -0
- package/dist/DatePicker.module-tE-tGNBd.cjs.map +1 -0
- package/dist/DateTimePicker-C557OjBU.cjs +2 -0
- package/dist/DateTimePicker-C557OjBU.cjs.map +1 -0
- package/dist/DateTimePicker-DBtcWK0F.js +245 -0
- package/dist/DateTimePicker-DBtcWK0F.js.map +1 -0
- package/dist/Divider-CzbhdCiD.cjs +2 -0
- package/dist/Divider-CzbhdCiD.cjs.map +1 -0
- package/dist/Divider-LtH3dLgw.js +36 -0
- package/dist/Divider-LtH3dLgw.js.map +1 -0
- package/dist/Dropdown-DKAXue5_.js +146 -0
- package/dist/Dropdown-DKAXue5_.js.map +1 -0
- package/dist/Dropdown-DygP50OB.cjs +2 -0
- package/dist/Dropdown-DygP50OB.cjs.map +1 -0
- package/dist/EmptyState-CCCpZ-ZA.cjs +2 -0
- package/dist/EmptyState-CCCpZ-ZA.cjs.map +1 -0
- package/dist/EmptyState-CetM49vk.js +38 -0
- package/dist/EmptyState-CetM49vk.js.map +1 -0
- package/dist/FileUploader-B4TJHyoi.cjs +2 -0
- package/dist/FileUploader-B4TJHyoi.cjs.map +1 -0
- package/dist/FileUploader-VtmmwUFE.js +684 -0
- package/dist/FileUploader-VtmmwUFE.js.map +1 -0
- package/dist/Flag-BWCX6oSR.js +24 -0
- package/dist/Flag-BWCX6oSR.js.map +1 -0
- package/dist/Flag-EPZOrH-U.cjs +2 -0
- package/dist/Flag-EPZOrH-U.cjs.map +1 -0
- package/dist/Flex-Bj3mMF5A.js +50 -0
- package/dist/Flex-Bj3mMF5A.js.map +1 -0
- package/dist/Flex-CqL3Ghda.cjs +2 -0
- package/dist/Flex-CqL3Ghda.cjs.map +1 -0
- package/dist/FloatingPanel-BG9Uag__.js +131 -0
- package/dist/FloatingPanel-BG9Uag__.js.map +1 -0
- package/dist/FloatingPanel-U6sGYiSK.cjs +2 -0
- package/dist/FloatingPanel-U6sGYiSK.cjs.map +1 -0
- package/dist/Form-Bz2xgkEm.cjs +2 -0
- package/dist/Form-Bz2xgkEm.cjs.map +1 -0
- package/dist/Form-kglaJYr5.js +9 -0
- package/dist/Form-kglaJYr5.js.map +1 -0
- package/dist/FullscreenToggle-DDKN5n8B.cjs +2 -0
- package/dist/FullscreenToggle-DDKN5n8B.cjs.map +1 -0
- package/dist/FullscreenToggle-oWzYqUPH.js +42 -0
- package/dist/FullscreenToggle-oWzYqUPH.js.map +1 -0
- package/dist/Grid-Bw95bKkJ.cjs +2 -0
- package/dist/Grid-Bw95bKkJ.cjs.map +1 -0
- package/dist/Grid-CY-syhTX.js +24 -0
- package/dist/Grid-CY-syhTX.js.map +1 -0
- package/dist/Icon-CXTl_QAP.cjs +2 -0
- package/dist/Icon-CXTl_QAP.cjs.map +1 -0
- package/dist/Icon-CophpkHo.js +1228 -0
- package/dist/Icon-CophpkHo.js.map +1 -0
- package/dist/IconButton-CBusrDa9.js +68 -0
- package/dist/IconButton-CBusrDa9.js.map +1 -0
- package/dist/IconButton-D6TenQZ_.cjs +2 -0
- package/dist/IconButton-D6TenQZ_.cjs.map +1 -0
- package/dist/List-BHgFI9Ll.js +26 -0
- package/dist/List-BHgFI9Ll.js.map +1 -0
- package/dist/List-CNz2M3-q.cjs +2 -0
- package/dist/List-CNz2M3-q.cjs.map +1 -0
- package/dist/ListItem-B4yqZR-Z.js +74 -0
- package/dist/ListItem-B4yqZR-Z.js.map +1 -0
- package/dist/ListItem-RH-D-Wey.cjs +2 -0
- package/dist/ListItem-RH-D-Wey.cjs.map +1 -0
- package/dist/Loader-C4JoXOyA.js +28 -0
- package/dist/Loader-C4JoXOyA.js.map +1 -0
- package/dist/Loader-D1MtlQOH.cjs +2 -0
- package/dist/Loader-D1MtlQOH.cjs.map +1 -0
- package/dist/Modal-B2YSCVVt.cjs +2 -0
- package/dist/Modal-B2YSCVVt.cjs.map +1 -0
- package/dist/Modal-BuaPDlKV.js +195 -0
- package/dist/Modal-BuaPDlKV.js.map +1 -0
- package/dist/MultiSelect-BGRT_B60.js +350 -0
- package/dist/MultiSelect-BGRT_B60.js.map +1 -0
- package/dist/MultiSelect-CSJKSWpA.cjs +2 -0
- package/dist/MultiSelect-CSJKSWpA.cjs.map +1 -0
- package/dist/MultilineTextField-CwNCJ9lZ.js +123 -0
- package/dist/MultilineTextField-CwNCJ9lZ.js.map +1 -0
- package/dist/MultilineTextField-Dz6Fg8RJ.cjs +2 -0
- package/dist/MultilineTextField-Dz6Fg8RJ.cjs.map +1 -0
- package/dist/NumberField-DBpO-Z_7.cjs +2 -0
- package/dist/NumberField-DBpO-Z_7.cjs.map +1 -0
- package/dist/NumberField-DBvhSQCw.js +183 -0
- package/dist/NumberField-DBvhSQCw.js.map +1 -0
- package/dist/OtpField-BUBYyorC.cjs +2 -0
- package/dist/OtpField-BUBYyorC.cjs.map +1 -0
- package/dist/OtpField-CTq-CUbF.js +171 -0
- package/dist/OtpField-CTq-CUbF.js.map +1 -0
- package/dist/PageLayout-DddzYw2B.js +12 -0
- package/dist/PageLayout-DddzYw2B.js.map +1 -0
- package/dist/PageLayout-Dfbjw6jD.cjs +2 -0
- package/dist/PageLayout-Dfbjw6jD.cjs.map +1 -0
- package/dist/Pagination-CN9V8M5C.js +139 -0
- package/dist/Pagination-CN9V8M5C.js.map +1 -0
- package/dist/Pagination-DRwTLPh8.cjs +2 -0
- package/dist/Pagination-DRwTLPh8.cjs.map +1 -0
- package/dist/Popover-CBI1icIM.cjs +2 -0
- package/dist/Popover-CBI1icIM.cjs.map +1 -0
- package/dist/Popover-CgIU4Rhg.js +65 -0
- package/dist/Popover-CgIU4Rhg.js.map +1 -0
- package/dist/RadioGroup-C8u7eNBS.cjs +2 -0
- package/dist/RadioGroup-C8u7eNBS.cjs.map +1 -0
- package/dist/RadioGroup-DbodUJW8.js +141 -0
- package/dist/RadioGroup-DbodUJW8.js.map +1 -0
- package/dist/RemoveDialog-Bvt6sH79.js +47 -0
- package/dist/RemoveDialog-Bvt6sH79.js.map +1 -0
- package/dist/RemoveDialog-ClyZKyUG.cjs +2 -0
- package/dist/RemoveDialog-ClyZKyUG.cjs.map +1 -0
- package/dist/RichTextEditor-BTx8Py3I.js +806 -0
- package/dist/RichTextEditor-BTx8Py3I.js.map +1 -0
- package/dist/RichTextEditor-CAYt1Zm1.cjs +2 -0
- package/dist/RichTextEditor-CAYt1Zm1.cjs.map +1 -0
- package/dist/RootLayout-Cp-9CVjP.cjs +2 -0
- package/dist/RootLayout-Cp-9CVjP.cjs.map +1 -0
- package/dist/RootLayout-DCpfuFWF.js +405 -0
- package/dist/RootLayout-DCpfuFWF.js.map +1 -0
- package/dist/Select-PbTyxB1Q.js +338 -0
- package/dist/Select-PbTyxB1Q.js.map +1 -0
- package/dist/Select-_6WogC0u.cjs +2 -0
- package/dist/Select-_6WogC0u.cjs.map +1 -0
- package/dist/Sidebar-AaIlRzgk.cjs +2 -0
- package/dist/Sidebar-AaIlRzgk.cjs.map +1 -0
- package/dist/Sidebar-DRCs2ygZ.js +422 -0
- package/dist/Sidebar-DRCs2ygZ.js.map +1 -0
- package/dist/Slider-dxYVXRev.cjs +2 -0
- package/dist/Slider-dxYVXRev.cjs.map +1 -0
- package/dist/Slider-oGXd5e9X.js +184 -0
- package/dist/Slider-oGXd5e9X.js.map +1 -0
- package/dist/SpeedDial-C4jxIXTr.cjs +2 -0
- package/dist/SpeedDial-C4jxIXTr.cjs.map +1 -0
- package/dist/SpeedDial-DgFj16BQ.js +165 -0
- package/dist/SpeedDial-DgFj16BQ.js.map +1 -0
- package/dist/Stepper-7pPEBRLI.cjs +2 -0
- package/dist/Stepper-7pPEBRLI.cjs.map +1 -0
- package/dist/Stepper-COKAyN1L.js +165 -0
- package/dist/Stepper-COKAyN1L.js.map +1 -0
- package/dist/SwatchPicker-D30aSrbY.js +129 -0
- package/dist/SwatchPicker-D30aSrbY.js.map +1 -0
- package/dist/SwatchPicker-DbAU9-ux.cjs +2 -0
- package/dist/SwatchPicker-DbAU9-ux.cjs.map +1 -0
- package/dist/Switch-DMPJ0fhB.js +85 -0
- package/dist/Switch-DMPJ0fhB.js.map +1 -0
- package/dist/Switch-DRkZ6kHJ.cjs +2 -0
- package/dist/Switch-DRkZ6kHJ.cjs.map +1 -0
- package/dist/Table-BeOumGng.cjs +2 -0
- package/dist/Table-BeOumGng.cjs.map +1 -0
- package/dist/Table-BjPLvMbf.js +1090 -0
- package/dist/Table-BjPLvMbf.js.map +1 -0
- package/dist/Tabs--DDM-zKe.js +190 -0
- package/dist/Tabs--DDM-zKe.js.map +1 -0
- package/dist/Tabs-BZcMnjdC.cjs +2 -0
- package/dist/Tabs-BZcMnjdC.cjs.map +1 -0
- package/dist/TagsField-BTJcZS9P.js +186 -0
- package/dist/TagsField-BTJcZS9P.js.map +1 -0
- package/dist/TagsField-kknWiJZZ.cjs +2 -0
- package/dist/TagsField-kknWiJZZ.cjs.map +1 -0
- package/dist/TextField-BPefnD5M.cjs +2 -0
- package/dist/TextField-BPefnD5M.cjs.map +1 -0
- package/dist/TextField-DMI1X09n.js +266 -0
- package/dist/TextField-DMI1X09n.js.map +1 -0
- package/dist/TextField.module-QePvGeJ3.js +27 -0
- package/dist/TextField.module-QePvGeJ3.js.map +1 -0
- package/dist/TextField.module-m-UllwzG.cjs +2 -0
- package/dist/TextField.module-m-UllwzG.cjs.map +1 -0
- package/dist/ThemeToggle-DTal3RX5.cjs +2 -0
- package/dist/ThemeToggle-DTal3RX5.cjs.map +1 -0
- package/dist/ThemeToggle-Deh9j8pm.js +28 -0
- package/dist/ThemeToggle-Deh9j8pm.js.map +1 -0
- package/dist/TimeColumns-BCNmu4b_.js +147 -0
- package/dist/TimeColumns-BCNmu4b_.js.map +1 -0
- package/dist/TimeColumns-Duh4DcYJ.cjs +2 -0
- package/dist/TimeColumns-Duh4DcYJ.cjs.map +1 -0
- package/dist/TimePicker-3JgvK2on.js +194 -0
- package/dist/TimePicker-3JgvK2on.js.map +1 -0
- package/dist/TimePicker-CfGrCH9T.cjs +2 -0
- package/dist/TimePicker-CfGrCH9T.cjs.map +1 -0
- package/dist/Timeline-CoxW0Ia_.cjs +2 -0
- package/dist/Timeline-CoxW0Ia_.cjs.map +1 -0
- package/dist/Timeline-WkV4k_we.js +71 -0
- package/dist/Timeline-WkV4k_we.js.map +1 -0
- package/dist/Toaster-Bk5GtPjX.cjs +2 -0
- package/dist/Toaster-Bk5GtPjX.cjs.map +1 -0
- package/dist/Toaster-D-eG1xv7.js +63 -0
- package/dist/Toaster-D-eG1xv7.js.map +1 -0
- package/dist/ToggleButtonGroup-BWd7MOcc.js +123 -0
- package/dist/ToggleButtonGroup-BWd7MOcc.js.map +1 -0
- package/dist/ToggleButtonGroup-DYRLwKKh.cjs +2 -0
- package/dist/ToggleButtonGroup-DYRLwKKh.cjs.map +1 -0
- package/dist/Tooltip-Ao7az09p.cjs +2 -0
- package/dist/Tooltip-Ao7az09p.cjs.map +1 -0
- package/dist/Tooltip-Cb_FKxT9.js +65 -0
- package/dist/Tooltip-Cb_FKxT9.js.map +1 -0
- package/dist/TranslatedFields-CI0F9bHw.js +82 -0
- package/dist/TranslatedFields-CI0F9bHw.js.map +1 -0
- package/dist/TranslatedFields-DT3bYse6.cjs +2 -0
- package/dist/TranslatedFields-DT3bYse6.cjs.map +1 -0
- package/dist/Typography-BFatE1_A.cjs +2 -0
- package/dist/Typography-BFatE1_A.cjs.map +1 -0
- package/dist/Typography-Cta6Rg4L.js +51 -0
- package/dist/Typography-Cta6Rg4L.js.map +1 -0
- package/dist/UserCard-BhqtX1vU.js +74 -0
- package/dist/UserCard-BhqtX1vU.js.map +1 -0
- package/dist/UserCard-OlLeyyS0.cjs +2 -0
- package/dist/UserCard-OlLeyyS0.cjs.map +1 -0
- package/dist/access-DPUHbE-S.cjs +2 -0
- package/dist/access-DPUHbE-S.cjs.map +1 -0
- package/dist/access-Db4knwyR.js +25 -0
- package/dist/access-Db4knwyR.js.map +1 -0
- package/dist/components/Accordion/Accordion.d.cts +43 -0
- package/dist/components/Accordion/Accordion.d.ts +43 -0
- package/dist/components/Accordion/AccordionItem.d.cts +20 -0
- package/dist/components/Accordion/AccordionItem.d.ts +20 -0
- package/dist/components/Accordion/accordionContext.d.cts +13 -0
- package/dist/components/Accordion/accordionContext.d.ts +13 -0
- package/dist/components/Accordion/index.cjs +2 -0
- package/dist/components/Accordion/index.cjs.map +1 -0
- package/dist/components/Accordion/index.d.cts +4 -0
- package/dist/components/Accordion/index.d.ts +4 -0
- package/dist/components/Accordion/index.js +7 -0
- package/dist/components/Accordion/index.js.map +1 -0
- package/dist/components/Alert/Alert.d.cts +30 -0
- package/dist/components/Alert/Alert.d.ts +30 -0
- package/dist/components/Alert/index.cjs +2 -0
- package/dist/components/Alert/index.cjs.map +1 -0
- package/dist/components/Alert/index.d.cts +2 -0
- package/dist/components/Alert/index.d.ts +2 -0
- package/dist/components/Alert/index.js +6 -0
- package/dist/components/Alert/index.js.map +1 -0
- package/dist/components/Avatar/Avatar.d.cts +28 -0
- package/dist/components/Avatar/Avatar.d.ts +28 -0
- package/dist/components/Avatar/AvatarGroup.d.cts +19 -0
- package/dist/components/Avatar/AvatarGroup.d.ts +19 -0
- package/dist/components/Avatar/index.cjs +2 -0
- package/dist/components/Avatar/index.cjs.map +1 -0
- package/dist/components/Avatar/index.d.cts +4 -0
- package/dist/components/Avatar/index.d.ts +4 -0
- package/dist/components/Avatar/index.js +8 -0
- package/dist/components/Avatar/index.js.map +1 -0
- package/dist/components/Badge/Badge.d.cts +26 -0
- package/dist/components/Badge/Badge.d.ts +26 -0
- package/dist/components/Badge/index.cjs +2 -0
- package/dist/components/Badge/index.cjs.map +1 -0
- package/dist/components/Badge/index.d.cts +2 -0
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Badge/index.js +6 -0
- package/dist/components/Badge/index.js.map +1 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.cts +17 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +17 -0
- package/dist/components/Breadcrumbs/index.cjs +2 -0
- package/dist/components/Breadcrumbs/index.cjs.map +1 -0
- package/dist/components/Breadcrumbs/index.d.cts +2 -0
- package/dist/components/Breadcrumbs/index.d.ts +2 -0
- package/dist/components/Breadcrumbs/index.js +6 -0
- package/dist/components/Breadcrumbs/index.js.map +1 -0
- package/dist/components/Button/Button.d.cts +23 -0
- package/dist/components/Button/Button.d.ts +23 -0
- package/dist/components/Button/index.cjs +2 -0
- package/dist/components/Button/index.cjs.map +1 -0
- package/dist/components/Button/index.d.cts +2 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button/index.js +6 -0
- package/dist/components/Button/index.js.map +1 -0
- package/dist/components/Card/Card.d.cts +37 -0
- package/dist/components/Card/Card.d.ts +37 -0
- package/dist/components/Card/index.cjs +2 -0
- package/dist/components/Card/index.cjs.map +1 -0
- package/dist/components/Card/index.d.cts +2 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Card/index.js +6 -0
- package/dist/components/Card/index.js.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.cts +29 -0
- package/dist/components/Checkbox/Checkbox.d.ts +29 -0
- package/dist/components/Checkbox/index.cjs +2 -0
- package/dist/components/Checkbox/index.cjs.map +1 -0
- package/dist/components/Checkbox/index.d.cts +2 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Checkbox/index.js +6 -0
- package/dist/components/Checkbox/index.js.map +1 -0
- package/dist/components/Chip/Chip.d.cts +37 -0
- package/dist/components/Chip/Chip.d.ts +37 -0
- package/dist/components/Chip/index.cjs +2 -0
- package/dist/components/Chip/index.cjs.map +1 -0
- package/dist/components/Chip/index.d.cts +2 -0
- package/dist/components/Chip/index.d.ts +2 -0
- package/dist/components/Chip/index.js +6 -0
- package/dist/components/Chip/index.js.map +1 -0
- package/dist/components/ChoiceCard/ChoiceCard.d.cts +41 -0
- package/dist/components/ChoiceCard/ChoiceCard.d.ts +41 -0
- package/dist/components/ChoiceCard/ChoiceCardGroup.d.cts +72 -0
- package/dist/components/ChoiceCard/ChoiceCardGroup.d.ts +72 -0
- package/dist/components/ChoiceCard/choiceCardContext.d.cts +21 -0
- package/dist/components/ChoiceCard/choiceCardContext.d.ts +21 -0
- package/dist/components/ChoiceCard/index.cjs +2 -0
- package/dist/components/ChoiceCard/index.cjs.map +1 -0
- package/dist/components/ChoiceCard/index.d.cts +4 -0
- package/dist/components/ChoiceCard/index.d.ts +4 -0
- package/dist/components/ChoiceCard/index.js +7 -0
- package/dist/components/ChoiceCard/index.js.map +1 -0
- package/dist/components/CodeBlock/CodeBlock.d.cts +30 -0
- package/dist/components/CodeBlock/CodeBlock.d.ts +30 -0
- package/dist/components/CodeBlock/index.cjs +2 -0
- package/dist/components/CodeBlock/index.cjs.map +1 -0
- package/dist/components/CodeBlock/index.d.cts +2 -0
- package/dist/components/CodeBlock/index.d.ts +2 -0
- package/dist/components/CodeBlock/index.js +6 -0
- package/dist/components/CodeBlock/index.js.map +1 -0
- package/dist/components/ColorPicker/ColorPicker.d.cts +47 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts +47 -0
- package/dist/components/ColorPicker/ColorPickerPanel.d.cts +20 -0
- package/dist/components/ColorPicker/ColorPickerPanel.d.ts +20 -0
- package/dist/components/ColorPicker/colorUtils.d.cts +44 -0
- package/dist/components/ColorPicker/colorUtils.d.ts +44 -0
- package/dist/components/ColorPicker/index.cjs +2 -0
- package/dist/components/ColorPicker/index.cjs.map +1 -0
- package/dist/components/ColorPicker/index.d.cts +2 -0
- package/dist/components/ColorPicker/index.d.ts +2 -0
- package/dist/components/ColorPicker/index.js +6 -0
- package/dist/components/ColorPicker/index.js.map +1 -0
- package/dist/components/DatePicker/Calendar.d.cts +29 -0
- package/dist/components/DatePicker/Calendar.d.ts +29 -0
- package/dist/components/DatePicker/DatePicker.d.cts +66 -0
- package/dist/components/DatePicker/DatePicker.d.ts +66 -0
- package/dist/components/DatePicker/dateUtils.d.cts +86 -0
- package/dist/components/DatePicker/dateUtils.d.ts +86 -0
- package/dist/components/DatePicker/index.cjs +2 -0
- package/dist/components/DatePicker/index.cjs.map +1 -0
- package/dist/components/DatePicker/index.d.cts +2 -0
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/DatePicker/index.js +6 -0
- package/dist/components/DatePicker/index.js.map +1 -0
- package/dist/components/DateTimePicker/DateTimePicker.d.cts +79 -0
- package/dist/components/DateTimePicker/DateTimePicker.d.ts +79 -0
- package/dist/components/DateTimePicker/TimeColumns.d.cts +22 -0
- package/dist/components/DateTimePicker/TimeColumns.d.ts +22 -0
- package/dist/components/DateTimePicker/index.cjs +2 -0
- package/dist/components/DateTimePicker/index.cjs.map +1 -0
- package/dist/components/DateTimePicker/index.d.cts +2 -0
- package/dist/components/DateTimePicker/index.d.ts +2 -0
- package/dist/components/DateTimePicker/index.js +6 -0
- package/dist/components/DateTimePicker/index.js.map +1 -0
- package/dist/components/Divider/Divider.d.cts +17 -0
- package/dist/components/Divider/Divider.d.ts +17 -0
- package/dist/components/Divider/index.cjs +2 -0
- package/dist/components/Divider/index.cjs.map +1 -0
- package/dist/components/Divider/index.d.cts +2 -0
- package/dist/components/Divider/index.d.ts +2 -0
- package/dist/components/Divider/index.js +6 -0
- package/dist/components/Divider/index.js.map +1 -0
- package/dist/components/Dropdown/Dropdown.d.cts +44 -0
- package/dist/components/Dropdown/Dropdown.d.ts +44 -0
- package/dist/components/Dropdown/index.cjs +2 -0
- package/dist/components/Dropdown/index.cjs.map +1 -0
- package/dist/components/Dropdown/index.d.cts +2 -0
- package/dist/components/Dropdown/index.d.ts +2 -0
- package/dist/components/Dropdown/index.js +6 -0
- package/dist/components/Dropdown/index.js.map +1 -0
- package/dist/components/EmptyState/EmptyState.d.cts +29 -0
- package/dist/components/EmptyState/EmptyState.d.ts +29 -0
- package/dist/components/EmptyState/index.cjs +2 -0
- package/dist/components/EmptyState/index.cjs.map +1 -0
- package/dist/components/EmptyState/index.d.cts +2 -0
- package/dist/components/EmptyState/index.d.ts +2 -0
- package/dist/components/EmptyState/index.js +6 -0
- package/dist/components/EmptyState/index.js.map +1 -0
- package/dist/components/FileUploader/FileUploader.d.cts +144 -0
- package/dist/components/FileUploader/FileUploader.d.ts +144 -0
- package/dist/components/FileUploader/FileUploaderEditDialog.d.cts +34 -0
- package/dist/components/FileUploader/FileUploaderEditDialog.d.ts +34 -0
- package/dist/components/FileUploader/FileUploaderPreview.d.cts +23 -0
- package/dist/components/FileUploader/FileUploaderPreview.d.ts +23 -0
- package/dist/components/FileUploader/index.cjs +2 -0
- package/dist/components/FileUploader/index.cjs.map +1 -0
- package/dist/components/FileUploader/index.d.cts +2 -0
- package/dist/components/FileUploader/index.d.ts +2 -0
- package/dist/components/FileUploader/index.js +6 -0
- package/dist/components/FileUploader/index.js.map +1 -0
- package/dist/components/Flag/Flag.d.cts +14 -0
- package/dist/components/Flag/Flag.d.ts +14 -0
- package/dist/components/Flag/index.cjs +2 -0
- package/dist/components/Flag/index.cjs.map +1 -0
- package/dist/components/Flag/index.d.cts +2 -0
- package/dist/components/Flag/index.d.ts +2 -0
- package/dist/components/Flag/index.js +6 -0
- package/dist/components/Flag/index.js.map +1 -0
- package/dist/components/Flex/Col.d.cts +8 -0
- package/dist/components/Flex/Col.d.ts +8 -0
- package/dist/components/Flex/Flex.d.cts +32 -0
- package/dist/components/Flex/Flex.d.ts +32 -0
- package/dist/components/Flex/Grid.d.cts +28 -0
- package/dist/components/Flex/Grid.d.ts +28 -0
- package/dist/components/Flex/Row.d.cts +8 -0
- package/dist/components/Flex/Row.d.ts +8 -0
- package/dist/components/Flex/index.cjs +2 -0
- package/dist/components/Flex/index.cjs.map +1 -0
- package/dist/components/Flex/index.d.cts +8 -0
- package/dist/components/Flex/index.d.ts +8 -0
- package/dist/components/Flex/index.js +11 -0
- package/dist/components/Flex/index.js.map +1 -0
- package/dist/components/FloatingPanel/FloatingPanel.d.cts +39 -0
- package/dist/components/FloatingPanel/FloatingPanel.d.ts +39 -0
- package/dist/components/FullscreenToggle/FullscreenToggle.d.cts +12 -0
- package/dist/components/FullscreenToggle/FullscreenToggle.d.ts +12 -0
- package/dist/components/FullscreenToggle/index.cjs +2 -0
- package/dist/components/FullscreenToggle/index.cjs.map +1 -0
- package/dist/components/FullscreenToggle/index.d.cts +2 -0
- package/dist/components/FullscreenToggle/index.d.ts +2 -0
- package/dist/components/FullscreenToggle/index.js +6 -0
- package/dist/components/FullscreenToggle/index.js.map +1 -0
- package/dist/components/Icon/Icon.d.cts +19 -0
- package/dist/components/Icon/Icon.d.ts +19 -0
- package/dist/components/Icon/index.cjs +2 -0
- package/dist/components/Icon/index.cjs.map +1 -0
- package/dist/components/Icon/index.d.cts +4 -0
- package/dist/components/Icon/index.d.ts +4 -0
- package/dist/components/Icon/index.js +9 -0
- package/dist/components/Icon/index.js.map +1 -0
- package/dist/components/IconButton/IconButton.d.cts +28 -0
- package/dist/components/IconButton/IconButton.d.ts +28 -0
- package/dist/components/IconButton/index.cjs +2 -0
- package/dist/components/IconButton/index.cjs.map +1 -0
- package/dist/components/IconButton/index.d.cts +2 -0
- package/dist/components/IconButton/index.d.ts +2 -0
- package/dist/components/IconButton/index.js +6 -0
- package/dist/components/IconButton/index.js.map +1 -0
- package/dist/components/List/List.d.cts +20 -0
- package/dist/components/List/List.d.ts +20 -0
- package/dist/components/List/ListItem.d.cts +33 -0
- package/dist/components/List/ListItem.d.ts +33 -0
- package/dist/components/List/index.cjs +2 -0
- package/dist/components/List/index.cjs.map +1 -0
- package/dist/components/List/index.d.cts +4 -0
- package/dist/components/List/index.d.ts +4 -0
- package/dist/components/List/index.js +8 -0
- package/dist/components/List/index.js.map +1 -0
- package/dist/components/List/listContext.d.cts +5 -0
- package/dist/components/List/listContext.d.ts +5 -0
- package/dist/components/Loader/Loader.d.cts +15 -0
- package/dist/components/Loader/Loader.d.ts +15 -0
- package/dist/components/Loader/index.cjs +2 -0
- package/dist/components/Loader/index.cjs.map +1 -0
- package/dist/components/Loader/index.d.cts +2 -0
- package/dist/components/Loader/index.d.ts +2 -0
- package/dist/components/Loader/index.js +6 -0
- package/dist/components/Loader/index.js.map +1 -0
- package/dist/components/Modal/Modal.d.cts +63 -0
- package/dist/components/Modal/Modal.d.ts +63 -0
- package/dist/components/Modal/index.cjs +2 -0
- package/dist/components/Modal/index.cjs.map +1 -0
- package/dist/components/Modal/index.d.cts +2 -0
- package/dist/components/Modal/index.d.ts +2 -0
- package/dist/components/Modal/index.js +6 -0
- package/dist/components/Modal/index.js.map +1 -0
- package/dist/components/MultiSelect/MultiSelect.d.cts +72 -0
- package/dist/components/MultiSelect/MultiSelect.d.ts +72 -0
- package/dist/components/MultiSelect/index.cjs +2 -0
- package/dist/components/MultiSelect/index.cjs.map +1 -0
- package/dist/components/MultiSelect/index.d.cts +2 -0
- package/dist/components/MultiSelect/index.d.ts +2 -0
- package/dist/components/MultiSelect/index.js +6 -0
- package/dist/components/MultiSelect/index.js.map +1 -0
- package/dist/components/MultilineTextField/MultilineTextField.d.cts +28 -0
- package/dist/components/MultilineTextField/MultilineTextField.d.ts +28 -0
- package/dist/components/MultilineTextField/index.cjs +2 -0
- package/dist/components/MultilineTextField/index.cjs.map +1 -0
- package/dist/components/MultilineTextField/index.d.cts +2 -0
- package/dist/components/MultilineTextField/index.d.ts +2 -0
- package/dist/components/MultilineTextField/index.js +6 -0
- package/dist/components/MultilineTextField/index.js.map +1 -0
- package/dist/components/NumberField/NumberField.d.cts +45 -0
- package/dist/components/NumberField/NumberField.d.ts +45 -0
- package/dist/components/NumberField/index.cjs +2 -0
- package/dist/components/NumberField/index.cjs.map +1 -0
- package/dist/components/NumberField/index.d.cts +2 -0
- package/dist/components/NumberField/index.d.ts +2 -0
- package/dist/components/NumberField/index.js +6 -0
- package/dist/components/NumberField/index.js.map +1 -0
- package/dist/components/OtpField/OtpField.d.cts +55 -0
- package/dist/components/OtpField/OtpField.d.ts +55 -0
- package/dist/components/OtpField/index.cjs +2 -0
- package/dist/components/OtpField/index.cjs.map +1 -0
- package/dist/components/OtpField/index.d.cts +2 -0
- package/dist/components/OtpField/index.d.ts +2 -0
- package/dist/components/OtpField/index.js +6 -0
- package/dist/components/OtpField/index.js.map +1 -0
- package/dist/components/Overlay/Overlay.d.cts +29 -0
- package/dist/components/Overlay/Overlay.d.ts +29 -0
- package/dist/components/PageLayout/PageLayout.d.cts +13 -0
- package/dist/components/PageLayout/PageLayout.d.ts +13 -0
- package/dist/components/PageLayout/index.cjs +2 -0
- package/dist/components/PageLayout/index.cjs.map +1 -0
- package/dist/components/PageLayout/index.d.cts +2 -0
- package/dist/components/PageLayout/index.d.ts +2 -0
- package/dist/components/PageLayout/index.js +6 -0
- package/dist/components/PageLayout/index.js.map +1 -0
- package/dist/components/Pagination/Pagination.d.cts +44 -0
- package/dist/components/Pagination/Pagination.d.ts +44 -0
- package/dist/components/Pagination/index.cjs +2 -0
- package/dist/components/Pagination/index.cjs.map +1 -0
- package/dist/components/Pagination/index.d.cts +2 -0
- package/dist/components/Pagination/index.d.ts +2 -0
- package/dist/components/Pagination/index.js +6 -0
- package/dist/components/Pagination/index.js.map +1 -0
- package/dist/components/Pagination/paginationRange.d.cts +21 -0
- package/dist/components/Pagination/paginationRange.d.ts +21 -0
- package/dist/components/Popover/Popover.d.cts +43 -0
- package/dist/components/Popover/Popover.d.ts +43 -0
- package/dist/components/Popover/index.cjs +2 -0
- package/dist/components/Popover/index.cjs.map +1 -0
- package/dist/components/Popover/index.d.cts +2 -0
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/Popover/index.js +6 -0
- package/dist/components/Popover/index.js.map +1 -0
- package/dist/components/Radio/Radio.d.cts +27 -0
- package/dist/components/Radio/Radio.d.ts +27 -0
- package/dist/components/Radio/RadioGroup.d.cts +47 -0
- package/dist/components/Radio/RadioGroup.d.ts +47 -0
- package/dist/components/Radio/index.cjs +2 -0
- package/dist/components/Radio/index.cjs.map +1 -0
- package/dist/components/Radio/index.d.cts +4 -0
- package/dist/components/Radio/index.d.ts +4 -0
- package/dist/components/Radio/index.js +7 -0
- package/dist/components/Radio/index.js.map +1 -0
- package/dist/components/Radio/radioContext.d.cts +18 -0
- package/dist/components/Radio/radioContext.d.ts +18 -0
- package/dist/components/RemoveDialog/RemoveDialog.d.cts +35 -0
- package/dist/components/RemoveDialog/RemoveDialog.d.ts +35 -0
- package/dist/components/RemoveDialog/index.cjs +2 -0
- package/dist/components/RemoveDialog/index.cjs.map +1 -0
- package/dist/components/RemoveDialog/index.d.cts +2 -0
- package/dist/components/RemoveDialog/index.d.ts +2 -0
- package/dist/components/RemoveDialog/index.js +6 -0
- package/dist/components/RemoveDialog/index.js.map +1 -0
- package/dist/components/RichTextEditor/RichTextEditor.d.cts +48 -0
- package/dist/components/RichTextEditor/RichTextEditor.d.ts +48 -0
- package/dist/components/RichTextEditor/Toolbar.d.cts +10 -0
- package/dist/components/RichTextEditor/Toolbar.d.ts +10 -0
- package/dist/components/RichTextEditor/index.cjs +2 -0
- package/dist/components/RichTextEditor/index.cjs.map +1 -0
- package/dist/components/RichTextEditor/index.d.cts +2 -0
- package/dist/components/RichTextEditor/index.d.ts +2 -0
- package/dist/components/RichTextEditor/index.js +6 -0
- package/dist/components/RichTextEditor/index.js.map +1 -0
- package/dist/components/RichTextEditor/nodes/ImageNode.d.cts +33 -0
- package/dist/components/RichTextEditor/nodes/ImageNode.d.ts +33 -0
- package/dist/components/RichTextEditor/nodes/VideoNode.d.cts +36 -0
- package/dist/components/RichTextEditor/nodes/VideoNode.d.ts +36 -0
- package/dist/components/RichTextEditor/urlSafety.d.cts +16 -0
- package/dist/components/RichTextEditor/urlSafety.d.ts +16 -0
- package/dist/components/RootLayout/RootLayout.d.cts +46 -0
- package/dist/components/RootLayout/RootLayout.d.ts +46 -0
- package/dist/components/RootLayout/SettingsDrawer.d.cts +23 -0
- package/dist/components/RootLayout/SettingsDrawer.d.ts +23 -0
- package/dist/components/RootLayout/index.cjs +2 -0
- package/dist/components/RootLayout/index.cjs.map +1 -0
- package/dist/components/RootLayout/index.d.cts +2 -0
- package/dist/components/RootLayout/index.d.ts +2 -0
- package/dist/components/RootLayout/index.js +6 -0
- package/dist/components/RootLayout/index.js.map +1 -0
- package/dist/components/Select/Select.d.cts +85 -0
- package/dist/components/Select/Select.d.ts +85 -0
- package/dist/components/Select/index.cjs +2 -0
- package/dist/components/Select/index.cjs.map +1 -0
- package/dist/components/Select/index.d.cts +2 -0
- package/dist/components/Select/index.d.ts +2 -0
- package/dist/components/Select/index.js +6 -0
- package/dist/components/Select/index.js.map +1 -0
- package/dist/components/Sidebar/Sidebar.d.cts +90 -0
- package/dist/components/Sidebar/Sidebar.d.ts +90 -0
- package/dist/components/Sidebar/index.cjs +2 -0
- package/dist/components/Sidebar/index.cjs.map +1 -0
- package/dist/components/Sidebar/index.d.cts +1 -0
- package/dist/components/Sidebar/index.d.ts +1 -0
- package/dist/components/Sidebar/index.js +7 -0
- package/dist/components/Sidebar/index.js.map +1 -0
- package/dist/components/Slider/Slider.d.cts +58 -0
- package/dist/components/Slider/Slider.d.ts +58 -0
- package/dist/components/Slider/index.cjs +2 -0
- package/dist/components/Slider/index.cjs.map +1 -0
- package/dist/components/Slider/index.d.cts +2 -0
- package/dist/components/Slider/index.d.ts +2 -0
- package/dist/components/Slider/index.js +6 -0
- package/dist/components/Slider/index.js.map +1 -0
- package/dist/components/SpeedDial/SpeedDial.d.cts +56 -0
- package/dist/components/SpeedDial/SpeedDial.d.ts +56 -0
- package/dist/components/SpeedDial/SpeedDialAction.d.cts +18 -0
- package/dist/components/SpeedDial/SpeedDialAction.d.ts +18 -0
- package/dist/components/SpeedDial/index.cjs +2 -0
- package/dist/components/SpeedDial/index.cjs.map +1 -0
- package/dist/components/SpeedDial/index.d.cts +4 -0
- package/dist/components/SpeedDial/index.d.ts +4 -0
- package/dist/components/SpeedDial/index.js +7 -0
- package/dist/components/SpeedDial/index.js.map +1 -0
- package/dist/components/SpeedDial/speedDialContext.d.cts +19 -0
- package/dist/components/SpeedDial/speedDialContext.d.ts +19 -0
- package/dist/components/Stepper/Stepper.d.cts +94 -0
- package/dist/components/Stepper/Stepper.d.ts +94 -0
- package/dist/components/Stepper/index.cjs +2 -0
- package/dist/components/Stepper/index.cjs.map +1 -0
- package/dist/components/Stepper/index.d.cts +2 -0
- package/dist/components/Stepper/index.d.ts +2 -0
- package/dist/components/Stepper/index.js +6 -0
- package/dist/components/Stepper/index.js.map +1 -0
- package/dist/components/SwatchPicker/SwatchPicker.d.cts +43 -0
- package/dist/components/SwatchPicker/SwatchPicker.d.ts +43 -0
- package/dist/components/SwatchPicker/index.cjs +2 -0
- package/dist/components/SwatchPicker/index.cjs.map +1 -0
- package/dist/components/SwatchPicker/index.d.cts +2 -0
- package/dist/components/SwatchPicker/index.d.ts +2 -0
- package/dist/components/SwatchPicker/index.js +6 -0
- package/dist/components/SwatchPicker/index.js.map +1 -0
- package/dist/components/Switch/Switch.d.cts +29 -0
- package/dist/components/Switch/Switch.d.ts +29 -0
- package/dist/components/Switch/index.cjs +2 -0
- package/dist/components/Switch/index.cjs.map +1 -0
- package/dist/components/Switch/index.d.cts +2 -0
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Switch/index.js +6 -0
- package/dist/components/Switch/index.js.map +1 -0
- package/dist/components/Table/Table.d.cts +248 -0
- package/dist/components/Table/Table.d.ts +248 -0
- package/dist/components/Table/TableFilters.d.cts +16 -0
- package/dist/components/Table/TableFilters.d.ts +16 -0
- package/dist/components/Table/index.cjs +2 -0
- package/dist/components/Table/index.cjs.map +1 -0
- package/dist/components/Table/index.d.cts +3 -0
- package/dist/components/Table/index.d.ts +3 -0
- package/dist/components/Table/index.js +6 -0
- package/dist/components/Table/index.js.map +1 -0
- package/dist/components/Table/tableFilter.d.cts +65 -0
- package/dist/components/Table/tableFilter.d.ts +65 -0
- package/dist/components/Tabs/Tabs.d.cts +80 -0
- package/dist/components/Tabs/Tabs.d.ts +80 -0
- package/dist/components/Tabs/index.cjs +2 -0
- package/dist/components/Tabs/index.cjs.map +1 -0
- package/dist/components/Tabs/index.d.cts +2 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tabs/index.js +6 -0
- package/dist/components/Tabs/index.js.map +1 -0
- package/dist/components/TagsField/TagsField.d.cts +47 -0
- package/dist/components/TagsField/TagsField.d.ts +47 -0
- package/dist/components/TagsField/index.cjs +2 -0
- package/dist/components/TagsField/index.cjs.map +1 -0
- package/dist/components/TagsField/index.d.cts +2 -0
- package/dist/components/TagsField/index.d.ts +2 -0
- package/dist/components/TagsField/index.js +6 -0
- package/dist/components/TagsField/index.js.map +1 -0
- package/dist/components/TextField/TextField.d.cts +62 -0
- package/dist/components/TextField/TextField.d.ts +62 -0
- package/dist/components/TextField/index.cjs +2 -0
- package/dist/components/TextField/index.cjs.map +1 -0
- package/dist/components/TextField/index.d.cts +2 -0
- package/dist/components/TextField/index.d.ts +2 -0
- package/dist/components/TextField/index.js +6 -0
- package/dist/components/TextField/index.js.map +1 -0
- package/dist/components/ThemeToggle/ThemeToggle.d.cts +9 -0
- package/dist/components/ThemeToggle/ThemeToggle.d.ts +9 -0
- package/dist/components/ThemeToggle/index.cjs +2 -0
- package/dist/components/ThemeToggle/index.cjs.map +1 -0
- package/dist/components/ThemeToggle/index.d.cts +2 -0
- package/dist/components/ThemeToggle/index.d.ts +2 -0
- package/dist/components/ThemeToggle/index.js +6 -0
- package/dist/components/ThemeToggle/index.js.map +1 -0
- package/dist/components/TimePicker/TimePicker.d.cts +68 -0
- package/dist/components/TimePicker/TimePicker.d.ts +68 -0
- package/dist/components/TimePicker/index.cjs +2 -0
- package/dist/components/TimePicker/index.cjs.map +1 -0
- package/dist/components/TimePicker/index.d.cts +2 -0
- package/dist/components/TimePicker/index.d.ts +2 -0
- package/dist/components/TimePicker/index.js +6 -0
- package/dist/components/TimePicker/index.js.map +1 -0
- package/dist/components/Timeline/Timeline.d.cts +37 -0
- package/dist/components/Timeline/Timeline.d.ts +37 -0
- package/dist/components/Timeline/TimelineItem.d.cts +26 -0
- package/dist/components/Timeline/TimelineItem.d.ts +26 -0
- package/dist/components/Timeline/index.cjs +2 -0
- package/dist/components/Timeline/index.cjs.map +1 -0
- package/dist/components/Timeline/index.d.cts +4 -0
- package/dist/components/Timeline/index.d.ts +4 -0
- package/dist/components/Timeline/index.js +7 -0
- package/dist/components/Timeline/index.js.map +1 -0
- package/dist/components/Timeline/timelineContext.d.cts +10 -0
- package/dist/components/Timeline/timelineContext.d.ts +10 -0
- package/dist/components/Toast/ToastItem.d.cts +12 -0
- package/dist/components/Toast/ToastItem.d.ts +12 -0
- package/dist/components/Toast/Toaster.d.cts +18 -0
- package/dist/components/Toast/Toaster.d.ts +18 -0
- package/dist/components/Toast/index.cjs +2 -0
- package/dist/components/Toast/index.cjs.map +1 -0
- package/dist/components/Toast/index.d.cts +4 -0
- package/dist/components/Toast/index.d.ts +4 -0
- package/dist/components/Toast/index.js +8 -0
- package/dist/components/Toast/index.js.map +1 -0
- package/dist/components/Toast/toastStore.d.cts +45 -0
- package/dist/components/Toast/toastStore.d.ts +45 -0
- package/dist/components/ToggleButton/ToggleButton.d.cts +26 -0
- package/dist/components/ToggleButton/ToggleButton.d.ts +26 -0
- package/dist/components/ToggleButton/ToggleButtonGroup.d.cts +52 -0
- package/dist/components/ToggleButton/ToggleButtonGroup.d.ts +52 -0
- package/dist/components/ToggleButton/index.cjs +2 -0
- package/dist/components/ToggleButton/index.cjs.map +1 -0
- package/dist/components/ToggleButton/index.d.cts +4 -0
- package/dist/components/ToggleButton/index.d.ts +4 -0
- package/dist/components/ToggleButton/index.js +7 -0
- package/dist/components/ToggleButton/index.js.map +1 -0
- package/dist/components/ToggleButton/toggleButtonGroupContext.d.cts +15 -0
- package/dist/components/ToggleButton/toggleButtonGroupContext.d.ts +15 -0
- package/dist/components/Tooltip/Tooltip.d.cts +21 -0
- package/dist/components/Tooltip/Tooltip.d.ts +21 -0
- package/dist/components/Tooltip/index.cjs +2 -0
- package/dist/components/Tooltip/index.cjs.map +1 -0
- package/dist/components/Tooltip/index.d.cts +2 -0
- package/dist/components/Tooltip/index.d.ts +2 -0
- package/dist/components/Tooltip/index.js +6 -0
- package/dist/components/Tooltip/index.js.map +1 -0
- package/dist/components/TranslatedFields/TranslatedFields.d.cts +56 -0
- package/dist/components/TranslatedFields/TranslatedFields.d.ts +56 -0
- package/dist/components/TranslatedFields/index.cjs +2 -0
- package/dist/components/TranslatedFields/index.cjs.map +1 -0
- package/dist/components/TranslatedFields/index.d.cts +2 -0
- package/dist/components/TranslatedFields/index.d.ts +2 -0
- package/dist/components/TranslatedFields/index.js +6 -0
- package/dist/components/TranslatedFields/index.js.map +1 -0
- package/dist/components/Typography/Typography.d.cts +30 -0
- package/dist/components/Typography/Typography.d.ts +30 -0
- package/dist/components/Typography/index.cjs +2 -0
- package/dist/components/Typography/index.cjs.map +1 -0
- package/dist/components/Typography/index.d.cts +2 -0
- package/dist/components/Typography/index.d.ts +2 -0
- package/dist/components/Typography/index.js +6 -0
- package/dist/components/Typography/index.js.map +1 -0
- package/dist/components/UserCard/UserCard.d.cts +33 -0
- package/dist/components/UserCard/UserCard.d.ts +33 -0
- package/dist/components/UserCard/index.cjs +2 -0
- package/dist/components/UserCard/index.cjs.map +1 -0
- package/dist/components/UserCard/index.d.cts +2 -0
- package/dist/components/UserCard/index.d.ts +2 -0
- package/dist/components/UserCard/index.js +6 -0
- package/dist/components/UserCard/index.js.map +1 -0
- package/dist/components/index.d.cts +57 -0
- package/dist/components/index.d.ts +57 -0
- package/dist/entries/components.cjs +2 -0
- package/dist/entries/components.cjs.map +1 -0
- package/dist/entries/components.d.cts +3 -0
- package/dist/entries/components.d.ts +3 -0
- package/dist/entries/components.js +140 -0
- package/dist/entries/components.js.map +1 -0
- package/dist/entries/helpers.cjs +2 -0
- package/dist/entries/helpers.cjs.map +1 -0
- package/dist/entries/helpers.d.cts +4 -0
- package/dist/entries/helpers.d.ts +4 -0
- package/dist/entries/helpers.js +17 -0
- package/dist/entries/helpers.js.map +1 -0
- package/dist/entries/hooks.cjs +2 -0
- package/dist/entries/hooks.cjs.map +1 -0
- package/dist/entries/hooks.d.cts +7 -0
- package/dist/entries/hooks.d.ts +7 -0
- package/dist/entries/hooks.js +12 -0
- package/dist/entries/hooks.js.map +1 -0
- package/dist/entries/i18n.cjs +2 -0
- package/dist/entries/i18n.cjs.map +1 -0
- package/dist/entries/i18n.d.cts +3 -0
- package/dist/entries/i18n.d.ts +3 -0
- package/dist/entries/i18n.js +11 -0
- package/dist/entries/i18n.js.map +1 -0
- package/dist/entries/icons.cjs +2 -0
- package/dist/entries/icons.cjs.map +1 -0
- package/dist/entries/icons.d.cts +2 -0
- package/dist/entries/icons.d.ts +2 -0
- package/dist/entries/icons.js +9 -0
- package/dist/entries/icons.js.map +1 -0
- package/dist/entries/theme.cjs +2 -0
- package/dist/entries/theme.cjs.map +1 -0
- package/dist/entries/theme.d.cts +2 -0
- package/dist/entries/theme.d.ts +2 -0
- package/dist/entries/theme.js +18 -0
- package/dist/entries/theme.js.map +1 -0
- package/dist/form/Form.d.cts +14 -0
- package/dist/form/Form.d.ts +14 -0
- package/dist/form/formContext.d.cts +8 -0
- package/dist/form/formContext.d.ts +8 -0
- package/dist/form/index.d.cts +5 -0
- package/dist/form/index.d.ts +5 -0
- package/dist/form/useForm.d.cts +81 -0
- package/dist/form/useForm.d.ts +81 -0
- package/dist/formContext-B7ln1Miy.js +10 -0
- package/dist/formContext-B7ln1Miy.js.map +1 -0
- package/dist/formContext-bTWrqdEV.cjs +2 -0
- package/dist/formContext-bTWrqdEV.cjs.map +1 -0
- package/dist/helpers/access.d.cts +11 -0
- package/dist/helpers/access.d.ts +11 -0
- package/dist/helpers/table.d.cts +41 -0
- package/dist/helpers/table.d.ts +41 -0
- package/dist/helpers/translations.d.cts +63 -0
- package/dist/helpers/translations.d.ts +63 -0
- package/dist/hooks/index.d.cts +4 -0
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/useDisclosure.d.cts +7 -0
- package/dist/hooks/useDisclosure.d.ts +7 -0
- package/dist/hooks/useFloatingPanel.d.cts +45 -0
- package/dist/hooks/useFloatingPanel.d.ts +45 -0
- package/dist/hooks/useLockBodyScroll.d.cts +7 -0
- package/dist/hooks/useLockBodyScroll.d.ts +7 -0
- package/dist/hooks/useMediaQuery.d.cts +13 -0
- package/dist/hooks/useMediaQuery.d.ts +13 -0
- package/dist/i18n/locales/de.d.cts +5 -0
- package/dist/i18n/locales/de.d.ts +5 -0
- package/dist/i18n/locales/en.d.cts +9 -0
- package/dist/i18n/locales/en.d.ts +9 -0
- package/dist/i18n/locales/es.d.cts +5 -0
- package/dist/i18n/locales/es.d.ts +5 -0
- package/dist/i18n/locales/fr.d.cts +5 -0
- package/dist/i18n/locales/fr.d.ts +5 -0
- package/dist/i18n/locales/it.d.cts +5 -0
- package/dist/i18n/locales/it.d.ts +5 -0
- package/dist/i18n/locales/ka.d.cts +8 -0
- package/dist/i18n/locales/ka.d.ts +8 -0
- package/dist/i18n/locales/ru.d.cts +5 -0
- package/dist/i18n/locales/ru.d.ts +5 -0
- package/dist/i18n/messages.d.cts +241 -0
- package/dist/i18n/messages.d.ts +241 -0
- package/dist/icons/icons.d.cts +2 -0
- package/dist/icons/icons.d.ts +2 -0
- package/dist/icons/names.d.cts +3 -0
- package/dist/icons/names.d.ts +3 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.css +203 -0
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +185 -0
- package/dist/index.js.map +1 -0
- package/dist/messages-C-zecFBE.js +1363 -0
- package/dist/messages-C-zecFBE.js.map +1 -0
- package/dist/messages-Cy-qK5xU.cjs +36 -0
- package/dist/messages-Cy-qK5xU.cjs.map +1 -0
- package/dist/names-C2Yj1p3u.cjs +2 -0
- package/dist/names-C2Yj1p3u.cjs.map +1 -0
- package/dist/names-D8ABK2Wk.js +1205 -0
- package/dist/names-D8ABK2Wk.js.map +1 -0
- package/dist/reset.css +78 -0
- package/dist/table-CZRQGNdk.cjs +2 -0
- package/dist/table-CZRQGNdk.cjs.map +1 -0
- package/dist/table-DF3zTrC3.js +49 -0
- package/dist/table-DF3zTrC3.js.map +1 -0
- package/dist/theme/ConfigProvider.d.cts +362 -0
- package/dist/theme/ConfigProvider.d.ts +362 -0
- package/dist/theme/applyTheme.d.cts +28 -0
- package/dist/theme/applyTheme.d.ts +28 -0
- package/dist/theme/index.d.cts +5 -0
- package/dist/theme/index.d.ts +5 -0
- package/dist/toastStore-B4Tk2Xk7.cjs +2 -0
- package/dist/toastStore-B4Tk2Xk7.cjs.map +1 -0
- package/dist/toastStore-Cx_JOKwS.js +32 -0
- package/dist/toastStore-Cx_JOKwS.js.map +1 -0
- package/dist/translations-CXEeeUDL.cjs +2 -0
- package/dist/translations-CXEeeUDL.cjs.map +1 -0
- package/dist/translations-D15tFHM1.js +74 -0
- package/dist/translations-D15tFHM1.js.map +1 -0
- package/dist/useForm-B_5wDIER.js +126 -0
- package/dist/useForm-B_5wDIER.js.map +1 -0
- package/dist/useForm-C7erBHt0.cjs +2 -0
- package/dist/useForm-C7erBHt0.cjs.map +1 -0
- package/dist/useLockBodyScroll-CIXHZo-Q.cjs +2 -0
- package/dist/useLockBodyScroll-CIXHZo-Q.cjs.map +1 -0
- package/dist/useLockBodyScroll-DwBILLPK.js +35 -0
- package/dist/useLockBodyScroll-DwBILLPK.js.map +1 -0
- package/dist/useMediaQuery-BCsNfMA1.cjs +2 -0
- package/dist/useMediaQuery-BCsNfMA1.cjs.map +1 -0
- package/dist/useMediaQuery-_1EcFoC5.js +17 -0
- package/dist/useMediaQuery-_1EcFoC5.js.map +1 -0
- package/package.json +244 -0
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { type ForwardedRef, type HTMLAttributes, type ReactElement, type ReactNode } from 'react';
|
|
2
|
+
import { type TableQueryConfig } from '../../theme';
|
|
3
|
+
import { type TableFilter, type TableFilterState } from './tableFilter';
|
|
4
|
+
export type TableAlign = 'left' | 'center' | 'right';
|
|
5
|
+
export type TableSortDirection = 'asc' | 'desc';
|
|
6
|
+
/** A single column definition — the simple, engine-agnostic shape a consumer writes. */
|
|
7
|
+
export interface TableColumn<T> {
|
|
8
|
+
/** Field key on the row — the column id, the default cell accessor, and the local sort/search key. */
|
|
9
|
+
key: string;
|
|
10
|
+
/** Header content. */
|
|
11
|
+
header: ReactNode;
|
|
12
|
+
/** Custom cell renderer. Defaults to the row's `key` value stringified. */
|
|
13
|
+
cell?: (row: T, index: number) => ReactNode;
|
|
14
|
+
/** Enable sorting on this column (click the header to toggle asc → desc → none). Defaults to `false`. */
|
|
15
|
+
sortable?: boolean;
|
|
16
|
+
/** Fixed column width — a px `number` or any CSS width string. Opts the column out of the default cap. */
|
|
17
|
+
width?: number | string;
|
|
18
|
+
/**
|
|
19
|
+
* Cap the column's width (px `number` or CSS string) — long content **wraps** within it onto 2+ lines
|
|
20
|
+
* (the row grows) instead of stretching the table. **Implies `wrap`.** Only needed to override the
|
|
21
|
+
* default wrap cap (`280px`); otherwise plain `wrap` is enough.
|
|
22
|
+
*/
|
|
23
|
+
maxWidth?: number | string;
|
|
24
|
+
/**
|
|
25
|
+
* Let this column's content **wrap** onto multiple lines (rows grow) instead of the single-line default —
|
|
26
|
+
* a long unbroken token breaks too. On its own it caps the column at a readable **`280px`** (set
|
|
27
|
+
* `maxWidth` for a different cap). Cells are single-line by default (the table scrolls horizontally); opt
|
|
28
|
+
* a long-text column (name / note / address) in with `wrap`.
|
|
29
|
+
*/
|
|
30
|
+
wrap?: boolean;
|
|
31
|
+
/** Cell + header text alignment. Defaults to `left`. */
|
|
32
|
+
align?: TableAlign;
|
|
33
|
+
/**
|
|
34
|
+
* Pin the column to an edge so it stays visible while the rest scrolls horizontally (e.g. an actions
|
|
35
|
+
* column pinned `'right'`). One column per edge; a hairline separates it from the scrolling body. A
|
|
36
|
+
* pinned column with **no `width`** shrinks to its content (so an actions column fits its buttons); set
|
|
37
|
+
* `width` to override.
|
|
38
|
+
*/
|
|
39
|
+
pinned?: 'left' | 'right';
|
|
40
|
+
}
|
|
41
|
+
/** The current sort — the column `key` + direction, or `null` when unsorted. */
|
|
42
|
+
export interface TableSortState {
|
|
43
|
+
key: string;
|
|
44
|
+
direction: TableSortDirection;
|
|
45
|
+
}
|
|
46
|
+
/** Details of a single row-reorder drag, passed to `onReorder` alongside the reordered rows. */
|
|
47
|
+
export interface TableReorderMeta {
|
|
48
|
+
/** The stable row id (from `getRowId`) of the dragged row. */
|
|
49
|
+
id: string;
|
|
50
|
+
/** The dragged row's original index in `data`. */
|
|
51
|
+
from: number;
|
|
52
|
+
/** The index the row was dropped at (its new position in the reordered array). */
|
|
53
|
+
to: number;
|
|
54
|
+
}
|
|
55
|
+
/** The table's live state, emitted on every change — the server-mode fetch driver. */
|
|
56
|
+
export interface TableChangeState {
|
|
57
|
+
/** 1-based page number. */
|
|
58
|
+
page: number;
|
|
59
|
+
/** Rows per page. */
|
|
60
|
+
size: number;
|
|
61
|
+
/** Current search query. */
|
|
62
|
+
search: string;
|
|
63
|
+
/** Active sort, or `null`. */
|
|
64
|
+
sort: TableSortState | null;
|
|
65
|
+
/** Active filter values, keyed by filter `key` (empty when none set). */
|
|
66
|
+
filters: TableFilterState;
|
|
67
|
+
/**
|
|
68
|
+
* The **built server-request params** for this state, from the query mapping (`config.table.query`
|
|
69
|
+
* merged with the `queryMapping` prop) — ready to append to your endpoint, so you don't hand-map
|
|
70
|
+
* page/size/search/sort. E.g. `fetch(`/products?${state.query}`)`.
|
|
71
|
+
*/
|
|
72
|
+
params: URLSearchParams;
|
|
73
|
+
/** `params.toString()` — e.g. `"skip=0&limit=10&q=phone&sortBy=price&order=desc"`. */
|
|
74
|
+
query: string;
|
|
75
|
+
}
|
|
76
|
+
/** Props shared by both table modes (everything except the mode-specific `manualPagination` / `rowCount`). */
|
|
77
|
+
interface TableBaseProps<T> extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'title'> {
|
|
78
|
+
/** Column definitions — keep them simple: a `key` + `header`, plus an optional `cell` renderer. */
|
|
79
|
+
columns: TableColumn<T>[];
|
|
80
|
+
/**
|
|
81
|
+
* Row data. **Local mode** (default): the full dataset — the table searches / sorts / paginates it
|
|
82
|
+
* client-side. **Server mode** (`manualPagination`): only the current page's rows — you fetch them in
|
|
83
|
+
* `onChange` and pass `rowCount` for the total.
|
|
84
|
+
*/
|
|
85
|
+
data: T[];
|
|
86
|
+
/**
|
|
87
|
+
* Stable row id from a row — used as the React key, so a row keeps its DOM identity (and any focus /
|
|
88
|
+
* in-cell state) across sort / filter / refetch. Defaults to the row **index**, which is fine for static
|
|
89
|
+
* data but reuses DOM by position when rows reorder or a server page swaps in — pass a real id (e.g.
|
|
90
|
+
* `(row) => row.id`) for any table with row interactions or changing data.
|
|
91
|
+
*/
|
|
92
|
+
getRowId?: (row: T, index: number) => string;
|
|
93
|
+
/** Optional heading shown at the top-left of the toolbar. */
|
|
94
|
+
title?: ReactNode;
|
|
95
|
+
/** Extra toolbar content (e.g. future filter controls), rendered in the right group before sort/export. */
|
|
96
|
+
toolbar?: ReactNode;
|
|
97
|
+
/** Show the search box in the toolbar. Defaults to `false`. */
|
|
98
|
+
searchable?: boolean;
|
|
99
|
+
/** Placeholder for the search box. Defaults to `"Search…"`. */
|
|
100
|
+
searchPlaceholder?: string;
|
|
101
|
+
/** Initial search query. */
|
|
102
|
+
defaultSearch?: string;
|
|
103
|
+
/** Debounce (ms) before a typed search commits (local filter + `onChange`). Defaults to `300`. */
|
|
104
|
+
debounceMs?: number;
|
|
105
|
+
/** Initial page (1-based). Defaults to `1` (overridden by the URL param when `urlSync`). */
|
|
106
|
+
defaultPage?: number;
|
|
107
|
+
/** Initial rows per page. Defaults to `10` (overridden by the URL param when `urlSync`). */
|
|
108
|
+
defaultPageSize?: number;
|
|
109
|
+
/** Rows-per-page choices in the footer `Select`. Defaults to `[10, 20, 50, 100, 200]`. */
|
|
110
|
+
pageSizeOptions?: number[];
|
|
111
|
+
/**
|
|
112
|
+
* Add an **"All"** rows-per-page choice that puts every row on one page. Defaults to `true` — pass
|
|
113
|
+
* `false` to hide it (e.g. for a large server dataset where fetching everything is undesirable).
|
|
114
|
+
*/
|
|
115
|
+
allowAllRows?: boolean;
|
|
116
|
+
/** Show the rows-per-page `Select` in the footer. Defaults to `true`. */
|
|
117
|
+
showPageSize?: boolean;
|
|
118
|
+
/** Show the jump-to-first-page (⏮) button in the pagination. Defaults to `false`. */
|
|
119
|
+
showFirstButton?: boolean;
|
|
120
|
+
/** Show the jump-to-last-page (⏭) button in the pagination. Defaults to `false`. */
|
|
121
|
+
showLastButton?: boolean;
|
|
122
|
+
/** Initial sort. */
|
|
123
|
+
defaultSort?: TableSortState | null;
|
|
124
|
+
/**
|
|
125
|
+
* Fires with the full `{ page, size, search, sort, params, query }` state on mount and whenever it
|
|
126
|
+
* changes — wire this to your fetch in server mode (append `state.query` to your endpoint). Search
|
|
127
|
+
* changes are debounced (`debounceMs`).
|
|
128
|
+
*/
|
|
129
|
+
onChange?: (state: TableChangeState) => void;
|
|
130
|
+
/**
|
|
131
|
+
* Per-table override for how `state.params` / `state.query` are built (param names, `page` vs `offset`
|
|
132
|
+
* pagination, sort format) — merged over the app-wide `config.table.query`. Use it when one table hits a
|
|
133
|
+
* differently-shaped endpoint (e.g. `{ pageParam: 'skip', sizeParam: 'limit', searchParam: 'q', pagination: 'offset' }`).
|
|
134
|
+
*/
|
|
135
|
+
queryMapping?: TableQueryConfig;
|
|
136
|
+
/**
|
|
137
|
+
* Handler for the toolbar **export** menu's built-in **"Send On Email"** item (label + icon are baked in).
|
|
138
|
+
* Set it to show the export `Dropdown`; on click it fires with the current `TableChangeState` (incl.
|
|
139
|
+
* `query`), so you just wire your endpoint — e.g. `onExportToEmail={(s) => exportCustomers(s.query)}`. Omit it
|
|
140
|
+
* to hide the export menu.
|
|
141
|
+
*/
|
|
142
|
+
onExportToEmail?: (state: TableChangeState) => void;
|
|
143
|
+
/**
|
|
144
|
+
* Declarative filters — each renders a field in a toolbar **Filters** panel (a `Modal`). In **local**
|
|
145
|
+
* mode the table filters `data` client-side; in **server** mode the active values ride in `onChange`
|
|
146
|
+
* (`state.filters`). Core types: `text` / `number` / `numberRange` / `select` / `multiSelect` /
|
|
147
|
+
* `boolean` / `date` / `dateRange` (`select` / `multiSelect` take `options`).
|
|
148
|
+
*/
|
|
149
|
+
filters?: TableFilter[];
|
|
150
|
+
/** Initial filter values, keyed by filter `key`. */
|
|
151
|
+
defaultFilters?: TableFilterState;
|
|
152
|
+
/** Called when a body row is clicked (makes rows interactive). */
|
|
153
|
+
onRowClick?: (row: T, index: number) => void;
|
|
154
|
+
/**
|
|
155
|
+
* Per-row actions — return the action UI (your own `IconButton`s / menu / etc.) for a row and the table
|
|
156
|
+
* renders it in a **pinned-right actions column** it adds for you (no column boilerplate). The cell is
|
|
157
|
+
* `stopPropagation`-wrapped, so clicks inside it never fire the row's `onClick` — you don't handle that.
|
|
158
|
+
*/
|
|
159
|
+
actions?: (row: T, index: number) => ReactNode;
|
|
160
|
+
/**
|
|
161
|
+
* Enable **row drag-and-drop reordering** — a leading **drag-handle** column (a grip icon) is prepended,
|
|
162
|
+
* and dragging it (or keyboard: focus the handle → Space → Arrows → Space) reorders the rows, firing
|
|
163
|
+
* **`onReorder`**. **Local mode only**, and best with no active sort (a sort fights a manual order);
|
|
164
|
+
* **requires `getRowId`** (dnd needs stable row ids). Built on `@dnd-kit`. Defaults to `false`.
|
|
165
|
+
*/
|
|
166
|
+
reorderable?: boolean;
|
|
167
|
+
/**
|
|
168
|
+
* Fired after a drag reorder with the **full `data` reordered** — you own `data`, so set it from this
|
|
169
|
+
* (e.g. `onReorder={setRows}`). A second **`meta`** arg carries the drag details (`{ id, from, to }` —
|
|
170
|
+
* the dragged row's id + its old/new index). Only fires while `reorderable`.
|
|
171
|
+
*/
|
|
172
|
+
onReorder?: (rows: T[], meta: TableReorderMeta) => void;
|
|
173
|
+
/** Show a loading overlay over the table (e.g. while fetching a server page). Defaults to `false`. */
|
|
174
|
+
loading?: boolean;
|
|
175
|
+
/** Custom content for the empty state (replaces the default `EmptyState`). */
|
|
176
|
+
empty?: ReactNode;
|
|
177
|
+
/**
|
|
178
|
+
* Mirror page + rows-per-page + search + sort + filters to the URL query, using the **same shape as the
|
|
179
|
+
* server request** (`config.table.query` merged with `queryMapping`) — so the address bar matches
|
|
180
|
+
* `state.query` exactly (e.g. `?page=1&size=10&sortBy=rating&orderBy=desc`). Read back on mount + restored
|
|
181
|
+
* on Back/Forward. Defaults to `true`; pass `false` to opt out entirely. (Two synced tables on one page
|
|
182
|
+
* need distinct param names via their `queryMapping`, since both write the same params otherwise.)
|
|
183
|
+
*/
|
|
184
|
+
urlSync?: boolean;
|
|
185
|
+
/** Controlled 1-based page (pair with `onPageChange`); omit for uncontrolled (`defaultPage`). */
|
|
186
|
+
page?: number;
|
|
187
|
+
/** Fired with the new 1-based page — on user paging, or a reset to page 1 from a size/sort/search/filter change. */
|
|
188
|
+
onPageChange?: (page: number) => void;
|
|
189
|
+
/** Controlled rows-per-page (pair with `onPageSizeChange`); omit for uncontrolled (`defaultPageSize`). */
|
|
190
|
+
pageSize?: number;
|
|
191
|
+
/** Fired with the new rows-per-page. */
|
|
192
|
+
onPageSizeChange?: (size: number) => void;
|
|
193
|
+
/** Controlled (committed, debounced) search query (pair with `onSearchChange`); omit for uncontrolled (`defaultSearch`). */
|
|
194
|
+
search?: string;
|
|
195
|
+
/** Fired with the committed (debounced) search query. */
|
|
196
|
+
onSearchChange?: (search: string) => void;
|
|
197
|
+
/** Controlled sort, or `null` (pair with `onSortChange`); omit for uncontrolled (`defaultSort`). */
|
|
198
|
+
sort?: TableSortState | null;
|
|
199
|
+
/** Fired with the new sort (or `null` when cleared). */
|
|
200
|
+
onSortChange?: (sort: TableSortState | null) => void;
|
|
201
|
+
/** Controlled filter values, keyed by filter `key` (pair with `onFiltersChange`); omit for uncontrolled (`defaultFilters`). */
|
|
202
|
+
filterValues?: TableFilterState;
|
|
203
|
+
/** Fired with the filter values on Apply / Clear. */
|
|
204
|
+
onFiltersChange?: (filters: TableFilterState) => void;
|
|
205
|
+
/** Pin the header row while the body scrolls. Defaults to `false`. */
|
|
206
|
+
stickyHeader?: boolean;
|
|
207
|
+
/** Zebra-stripe alternate rows. Defaults to `false`. */
|
|
208
|
+
striped?: boolean;
|
|
209
|
+
/** Highlight rows on hover. Defaults to `true`. */
|
|
210
|
+
hoverable?: boolean;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* `Table` props. A discriminated union on `manualPagination` so the type enforces the server-mode contract:
|
|
214
|
+
* **local mode** (default) needs no `rowCount`; **server mode** (`manualPagination`) **requires** it (the
|
|
215
|
+
* table can't derive the total page count from a single fetched page).
|
|
216
|
+
*/
|
|
217
|
+
export type TableProps<T> = (TableBaseProps<T> & {
|
|
218
|
+
/** Local mode (default) — the table slices / sorts / filters `data` itself. */
|
|
219
|
+
manualPagination?: false;
|
|
220
|
+
/** Ignored in local mode (the table knows the full count from `data`). */
|
|
221
|
+
rowCount?: number;
|
|
222
|
+
}) | (TableBaseProps<T> & {
|
|
223
|
+
/**
|
|
224
|
+
* **Server mode** — the table doesn't slice / sort / filter `data`; it tracks state and fires
|
|
225
|
+
* `onChange`. Pass the current page's rows in `data` and the total in `rowCount`.
|
|
226
|
+
*/
|
|
227
|
+
manualPagination: true;
|
|
228
|
+
/** Total row count across all pages — **required** in server mode to compute the page count. */
|
|
229
|
+
rowCount: number;
|
|
230
|
+
});
|
|
231
|
+
/**
|
|
232
|
+
* A data table built on **TanStack Table** (headless — an optional peer, `external`) styled entirely with
|
|
233
|
+
* `--tz-*` tokens. Pass `columns` + `data` and it renders a sortable, paginated, searchable table. Works
|
|
234
|
+
* two ways: **local** (hand it the full `data` — it searches / sorts / paginates client-side) or **server**
|
|
235
|
+
* (`manualPagination` — pass the current page in `data` + the total in `rowCount`, and fetch in `onChange`).
|
|
236
|
+
* Composes the library's `TextField` (search), `Select` (rows per page), `Pagination`, `EmptyState`, and
|
|
237
|
+
* `Loader`; syncs page + size to the URL (`?page=1&size=10`) by default. The ref points at the root.
|
|
238
|
+
*
|
|
239
|
+
* @example
|
|
240
|
+
* <Table data={users} columns={[
|
|
241
|
+
* { key: 'name', header: 'Name', sortable: true },
|
|
242
|
+
* { key: 'role', header: 'Role', cell: (u) => <Chip>{u.role}</Chip> },
|
|
243
|
+
* ]} searchable />
|
|
244
|
+
*/
|
|
245
|
+
export declare const Table: <T>(props: TableProps<T> & {
|
|
246
|
+
ref?: ForwardedRef<HTMLDivElement>;
|
|
247
|
+
}) => ReactElement;
|
|
248
|
+
export {};
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { type ForwardedRef, type HTMLAttributes, type ReactElement, type ReactNode } from 'react';
|
|
2
|
+
import { type TableQueryConfig } from '../../theme';
|
|
3
|
+
import { type TableFilter, type TableFilterState } from './tableFilter';
|
|
4
|
+
export type TableAlign = 'left' | 'center' | 'right';
|
|
5
|
+
export type TableSortDirection = 'asc' | 'desc';
|
|
6
|
+
/** A single column definition — the simple, engine-agnostic shape a consumer writes. */
|
|
7
|
+
export interface TableColumn<T> {
|
|
8
|
+
/** Field key on the row — the column id, the default cell accessor, and the local sort/search key. */
|
|
9
|
+
key: string;
|
|
10
|
+
/** Header content. */
|
|
11
|
+
header: ReactNode;
|
|
12
|
+
/** Custom cell renderer. Defaults to the row's `key` value stringified. */
|
|
13
|
+
cell?: (row: T, index: number) => ReactNode;
|
|
14
|
+
/** Enable sorting on this column (click the header to toggle asc → desc → none). Defaults to `false`. */
|
|
15
|
+
sortable?: boolean;
|
|
16
|
+
/** Fixed column width — a px `number` or any CSS width string. Opts the column out of the default cap. */
|
|
17
|
+
width?: number | string;
|
|
18
|
+
/**
|
|
19
|
+
* Cap the column's width (px `number` or CSS string) — long content **wraps** within it onto 2+ lines
|
|
20
|
+
* (the row grows) instead of stretching the table. **Implies `wrap`.** Only needed to override the
|
|
21
|
+
* default wrap cap (`280px`); otherwise plain `wrap` is enough.
|
|
22
|
+
*/
|
|
23
|
+
maxWidth?: number | string;
|
|
24
|
+
/**
|
|
25
|
+
* Let this column's content **wrap** onto multiple lines (rows grow) instead of the single-line default —
|
|
26
|
+
* a long unbroken token breaks too. On its own it caps the column at a readable **`280px`** (set
|
|
27
|
+
* `maxWidth` for a different cap). Cells are single-line by default (the table scrolls horizontally); opt
|
|
28
|
+
* a long-text column (name / note / address) in with `wrap`.
|
|
29
|
+
*/
|
|
30
|
+
wrap?: boolean;
|
|
31
|
+
/** Cell + header text alignment. Defaults to `left`. */
|
|
32
|
+
align?: TableAlign;
|
|
33
|
+
/**
|
|
34
|
+
* Pin the column to an edge so it stays visible while the rest scrolls horizontally (e.g. an actions
|
|
35
|
+
* column pinned `'right'`). One column per edge; a hairline separates it from the scrolling body. A
|
|
36
|
+
* pinned column with **no `width`** shrinks to its content (so an actions column fits its buttons); set
|
|
37
|
+
* `width` to override.
|
|
38
|
+
*/
|
|
39
|
+
pinned?: 'left' | 'right';
|
|
40
|
+
}
|
|
41
|
+
/** The current sort — the column `key` + direction, or `null` when unsorted. */
|
|
42
|
+
export interface TableSortState {
|
|
43
|
+
key: string;
|
|
44
|
+
direction: TableSortDirection;
|
|
45
|
+
}
|
|
46
|
+
/** Details of a single row-reorder drag, passed to `onReorder` alongside the reordered rows. */
|
|
47
|
+
export interface TableReorderMeta {
|
|
48
|
+
/** The stable row id (from `getRowId`) of the dragged row. */
|
|
49
|
+
id: string;
|
|
50
|
+
/** The dragged row's original index in `data`. */
|
|
51
|
+
from: number;
|
|
52
|
+
/** The index the row was dropped at (its new position in the reordered array). */
|
|
53
|
+
to: number;
|
|
54
|
+
}
|
|
55
|
+
/** The table's live state, emitted on every change — the server-mode fetch driver. */
|
|
56
|
+
export interface TableChangeState {
|
|
57
|
+
/** 1-based page number. */
|
|
58
|
+
page: number;
|
|
59
|
+
/** Rows per page. */
|
|
60
|
+
size: number;
|
|
61
|
+
/** Current search query. */
|
|
62
|
+
search: string;
|
|
63
|
+
/** Active sort, or `null`. */
|
|
64
|
+
sort: TableSortState | null;
|
|
65
|
+
/** Active filter values, keyed by filter `key` (empty when none set). */
|
|
66
|
+
filters: TableFilterState;
|
|
67
|
+
/**
|
|
68
|
+
* The **built server-request params** for this state, from the query mapping (`config.table.query`
|
|
69
|
+
* merged with the `queryMapping` prop) — ready to append to your endpoint, so you don't hand-map
|
|
70
|
+
* page/size/search/sort. E.g. `fetch(`/products?${state.query}`)`.
|
|
71
|
+
*/
|
|
72
|
+
params: URLSearchParams;
|
|
73
|
+
/** `params.toString()` — e.g. `"skip=0&limit=10&q=phone&sortBy=price&order=desc"`. */
|
|
74
|
+
query: string;
|
|
75
|
+
}
|
|
76
|
+
/** Props shared by both table modes (everything except the mode-specific `manualPagination` / `rowCount`). */
|
|
77
|
+
interface TableBaseProps<T> extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'title'> {
|
|
78
|
+
/** Column definitions — keep them simple: a `key` + `header`, plus an optional `cell` renderer. */
|
|
79
|
+
columns: TableColumn<T>[];
|
|
80
|
+
/**
|
|
81
|
+
* Row data. **Local mode** (default): the full dataset — the table searches / sorts / paginates it
|
|
82
|
+
* client-side. **Server mode** (`manualPagination`): only the current page's rows — you fetch them in
|
|
83
|
+
* `onChange` and pass `rowCount` for the total.
|
|
84
|
+
*/
|
|
85
|
+
data: T[];
|
|
86
|
+
/**
|
|
87
|
+
* Stable row id from a row — used as the React key, so a row keeps its DOM identity (and any focus /
|
|
88
|
+
* in-cell state) across sort / filter / refetch. Defaults to the row **index**, which is fine for static
|
|
89
|
+
* data but reuses DOM by position when rows reorder or a server page swaps in — pass a real id (e.g.
|
|
90
|
+
* `(row) => row.id`) for any table with row interactions or changing data.
|
|
91
|
+
*/
|
|
92
|
+
getRowId?: (row: T, index: number) => string;
|
|
93
|
+
/** Optional heading shown at the top-left of the toolbar. */
|
|
94
|
+
title?: ReactNode;
|
|
95
|
+
/** Extra toolbar content (e.g. future filter controls), rendered in the right group before sort/export. */
|
|
96
|
+
toolbar?: ReactNode;
|
|
97
|
+
/** Show the search box in the toolbar. Defaults to `false`. */
|
|
98
|
+
searchable?: boolean;
|
|
99
|
+
/** Placeholder for the search box. Defaults to `"Search…"`. */
|
|
100
|
+
searchPlaceholder?: string;
|
|
101
|
+
/** Initial search query. */
|
|
102
|
+
defaultSearch?: string;
|
|
103
|
+
/** Debounce (ms) before a typed search commits (local filter + `onChange`). Defaults to `300`. */
|
|
104
|
+
debounceMs?: number;
|
|
105
|
+
/** Initial page (1-based). Defaults to `1` (overridden by the URL param when `urlSync`). */
|
|
106
|
+
defaultPage?: number;
|
|
107
|
+
/** Initial rows per page. Defaults to `10` (overridden by the URL param when `urlSync`). */
|
|
108
|
+
defaultPageSize?: number;
|
|
109
|
+
/** Rows-per-page choices in the footer `Select`. Defaults to `[10, 20, 50, 100, 200]`. */
|
|
110
|
+
pageSizeOptions?: number[];
|
|
111
|
+
/**
|
|
112
|
+
* Add an **"All"** rows-per-page choice that puts every row on one page. Defaults to `true` — pass
|
|
113
|
+
* `false` to hide it (e.g. for a large server dataset where fetching everything is undesirable).
|
|
114
|
+
*/
|
|
115
|
+
allowAllRows?: boolean;
|
|
116
|
+
/** Show the rows-per-page `Select` in the footer. Defaults to `true`. */
|
|
117
|
+
showPageSize?: boolean;
|
|
118
|
+
/** Show the jump-to-first-page (⏮) button in the pagination. Defaults to `false`. */
|
|
119
|
+
showFirstButton?: boolean;
|
|
120
|
+
/** Show the jump-to-last-page (⏭) button in the pagination. Defaults to `false`. */
|
|
121
|
+
showLastButton?: boolean;
|
|
122
|
+
/** Initial sort. */
|
|
123
|
+
defaultSort?: TableSortState | null;
|
|
124
|
+
/**
|
|
125
|
+
* Fires with the full `{ page, size, search, sort, params, query }` state on mount and whenever it
|
|
126
|
+
* changes — wire this to your fetch in server mode (append `state.query` to your endpoint). Search
|
|
127
|
+
* changes are debounced (`debounceMs`).
|
|
128
|
+
*/
|
|
129
|
+
onChange?: (state: TableChangeState) => void;
|
|
130
|
+
/**
|
|
131
|
+
* Per-table override for how `state.params` / `state.query` are built (param names, `page` vs `offset`
|
|
132
|
+
* pagination, sort format) — merged over the app-wide `config.table.query`. Use it when one table hits a
|
|
133
|
+
* differently-shaped endpoint (e.g. `{ pageParam: 'skip', sizeParam: 'limit', searchParam: 'q', pagination: 'offset' }`).
|
|
134
|
+
*/
|
|
135
|
+
queryMapping?: TableQueryConfig;
|
|
136
|
+
/**
|
|
137
|
+
* Handler for the toolbar **export** menu's built-in **"Send On Email"** item (label + icon are baked in).
|
|
138
|
+
* Set it to show the export `Dropdown`; on click it fires with the current `TableChangeState` (incl.
|
|
139
|
+
* `query`), so you just wire your endpoint — e.g. `onExportToEmail={(s) => exportCustomers(s.query)}`. Omit it
|
|
140
|
+
* to hide the export menu.
|
|
141
|
+
*/
|
|
142
|
+
onExportToEmail?: (state: TableChangeState) => void;
|
|
143
|
+
/**
|
|
144
|
+
* Declarative filters — each renders a field in a toolbar **Filters** panel (a `Modal`). In **local**
|
|
145
|
+
* mode the table filters `data` client-side; in **server** mode the active values ride in `onChange`
|
|
146
|
+
* (`state.filters`). Core types: `text` / `number` / `numberRange` / `select` / `multiSelect` /
|
|
147
|
+
* `boolean` / `date` / `dateRange` (`select` / `multiSelect` take `options`).
|
|
148
|
+
*/
|
|
149
|
+
filters?: TableFilter[];
|
|
150
|
+
/** Initial filter values, keyed by filter `key`. */
|
|
151
|
+
defaultFilters?: TableFilterState;
|
|
152
|
+
/** Called when a body row is clicked (makes rows interactive). */
|
|
153
|
+
onRowClick?: (row: T, index: number) => void;
|
|
154
|
+
/**
|
|
155
|
+
* Per-row actions — return the action UI (your own `IconButton`s / menu / etc.) for a row and the table
|
|
156
|
+
* renders it in a **pinned-right actions column** it adds for you (no column boilerplate). The cell is
|
|
157
|
+
* `stopPropagation`-wrapped, so clicks inside it never fire the row's `onClick` — you don't handle that.
|
|
158
|
+
*/
|
|
159
|
+
actions?: (row: T, index: number) => ReactNode;
|
|
160
|
+
/**
|
|
161
|
+
* Enable **row drag-and-drop reordering** — a leading **drag-handle** column (a grip icon) is prepended,
|
|
162
|
+
* and dragging it (or keyboard: focus the handle → Space → Arrows → Space) reorders the rows, firing
|
|
163
|
+
* **`onReorder`**. **Local mode only**, and best with no active sort (a sort fights a manual order);
|
|
164
|
+
* **requires `getRowId`** (dnd needs stable row ids). Built on `@dnd-kit`. Defaults to `false`.
|
|
165
|
+
*/
|
|
166
|
+
reorderable?: boolean;
|
|
167
|
+
/**
|
|
168
|
+
* Fired after a drag reorder with the **full `data` reordered** — you own `data`, so set it from this
|
|
169
|
+
* (e.g. `onReorder={setRows}`). A second **`meta`** arg carries the drag details (`{ id, from, to }` —
|
|
170
|
+
* the dragged row's id + its old/new index). Only fires while `reorderable`.
|
|
171
|
+
*/
|
|
172
|
+
onReorder?: (rows: T[], meta: TableReorderMeta) => void;
|
|
173
|
+
/** Show a loading overlay over the table (e.g. while fetching a server page). Defaults to `false`. */
|
|
174
|
+
loading?: boolean;
|
|
175
|
+
/** Custom content for the empty state (replaces the default `EmptyState`). */
|
|
176
|
+
empty?: ReactNode;
|
|
177
|
+
/**
|
|
178
|
+
* Mirror page + rows-per-page + search + sort + filters to the URL query, using the **same shape as the
|
|
179
|
+
* server request** (`config.table.query` merged with `queryMapping`) — so the address bar matches
|
|
180
|
+
* `state.query` exactly (e.g. `?page=1&size=10&sortBy=rating&orderBy=desc`). Read back on mount + restored
|
|
181
|
+
* on Back/Forward. Defaults to `true`; pass `false` to opt out entirely. (Two synced tables on one page
|
|
182
|
+
* need distinct param names via their `queryMapping`, since both write the same params otherwise.)
|
|
183
|
+
*/
|
|
184
|
+
urlSync?: boolean;
|
|
185
|
+
/** Controlled 1-based page (pair with `onPageChange`); omit for uncontrolled (`defaultPage`). */
|
|
186
|
+
page?: number;
|
|
187
|
+
/** Fired with the new 1-based page — on user paging, or a reset to page 1 from a size/sort/search/filter change. */
|
|
188
|
+
onPageChange?: (page: number) => void;
|
|
189
|
+
/** Controlled rows-per-page (pair with `onPageSizeChange`); omit for uncontrolled (`defaultPageSize`). */
|
|
190
|
+
pageSize?: number;
|
|
191
|
+
/** Fired with the new rows-per-page. */
|
|
192
|
+
onPageSizeChange?: (size: number) => void;
|
|
193
|
+
/** Controlled (committed, debounced) search query (pair with `onSearchChange`); omit for uncontrolled (`defaultSearch`). */
|
|
194
|
+
search?: string;
|
|
195
|
+
/** Fired with the committed (debounced) search query. */
|
|
196
|
+
onSearchChange?: (search: string) => void;
|
|
197
|
+
/** Controlled sort, or `null` (pair with `onSortChange`); omit for uncontrolled (`defaultSort`). */
|
|
198
|
+
sort?: TableSortState | null;
|
|
199
|
+
/** Fired with the new sort (or `null` when cleared). */
|
|
200
|
+
onSortChange?: (sort: TableSortState | null) => void;
|
|
201
|
+
/** Controlled filter values, keyed by filter `key` (pair with `onFiltersChange`); omit for uncontrolled (`defaultFilters`). */
|
|
202
|
+
filterValues?: TableFilterState;
|
|
203
|
+
/** Fired with the filter values on Apply / Clear. */
|
|
204
|
+
onFiltersChange?: (filters: TableFilterState) => void;
|
|
205
|
+
/** Pin the header row while the body scrolls. Defaults to `false`. */
|
|
206
|
+
stickyHeader?: boolean;
|
|
207
|
+
/** Zebra-stripe alternate rows. Defaults to `false`. */
|
|
208
|
+
striped?: boolean;
|
|
209
|
+
/** Highlight rows on hover. Defaults to `true`. */
|
|
210
|
+
hoverable?: boolean;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* `Table` props. A discriminated union on `manualPagination` so the type enforces the server-mode contract:
|
|
214
|
+
* **local mode** (default) needs no `rowCount`; **server mode** (`manualPagination`) **requires** it (the
|
|
215
|
+
* table can't derive the total page count from a single fetched page).
|
|
216
|
+
*/
|
|
217
|
+
export type TableProps<T> = (TableBaseProps<T> & {
|
|
218
|
+
/** Local mode (default) — the table slices / sorts / filters `data` itself. */
|
|
219
|
+
manualPagination?: false;
|
|
220
|
+
/** Ignored in local mode (the table knows the full count from `data`). */
|
|
221
|
+
rowCount?: number;
|
|
222
|
+
}) | (TableBaseProps<T> & {
|
|
223
|
+
/**
|
|
224
|
+
* **Server mode** — the table doesn't slice / sort / filter `data`; it tracks state and fires
|
|
225
|
+
* `onChange`. Pass the current page's rows in `data` and the total in `rowCount`.
|
|
226
|
+
*/
|
|
227
|
+
manualPagination: true;
|
|
228
|
+
/** Total row count across all pages — **required** in server mode to compute the page count. */
|
|
229
|
+
rowCount: number;
|
|
230
|
+
});
|
|
231
|
+
/**
|
|
232
|
+
* A data table built on **TanStack Table** (headless — an optional peer, `external`) styled entirely with
|
|
233
|
+
* `--tz-*` tokens. Pass `columns` + `data` and it renders a sortable, paginated, searchable table. Works
|
|
234
|
+
* two ways: **local** (hand it the full `data` — it searches / sorts / paginates client-side) or **server**
|
|
235
|
+
* (`manualPagination` — pass the current page in `data` + the total in `rowCount`, and fetch in `onChange`).
|
|
236
|
+
* Composes the library's `TextField` (search), `Select` (rows per page), `Pagination`, `EmptyState`, and
|
|
237
|
+
* `Loader`; syncs page + size to the URL (`?page=1&size=10`) by default. The ref points at the root.
|
|
238
|
+
*
|
|
239
|
+
* @example
|
|
240
|
+
* <Table data={users} columns={[
|
|
241
|
+
* { key: 'name', header: 'Name', sortable: true },
|
|
242
|
+
* { key: 'role', header: 'Role', cell: (u) => <Chip>{u.role}</Chip> },
|
|
243
|
+
* ]} searchable />
|
|
244
|
+
*/
|
|
245
|
+
export declare const Table: <T>(props: TableProps<T> & {
|
|
246
|
+
ref?: ForwardedRef<HTMLDivElement>;
|
|
247
|
+
}) => ReactElement;
|
|
248
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type TableFilter, type TableFilterState } from './tableFilter';
|
|
2
|
+
export interface TableFiltersProps {
|
|
3
|
+
/** The declarative filter definitions. */
|
|
4
|
+
filters: TableFilter[];
|
|
5
|
+
/** The committed filter values. */
|
|
6
|
+
value: TableFilterState;
|
|
7
|
+
/** Commit new filter values (Apply / Clear). */
|
|
8
|
+
onChange: (value: TableFilterState) => void;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The Table's filter control — a toolbar **Filters** button (with a count `Badge`) that opens a right
|
|
12
|
+
* **drawer** (`Modal placement="right"`) of fields (one per `filter` def). Edits a **draft** committed only
|
|
13
|
+
* on **Apply**; **Clear** resets. A `Modal` (not a popover) so nested `Select` / `DatePicker` popovers work
|
|
14
|
+
* inside it.
|
|
15
|
+
*/
|
|
16
|
+
export declare function TableFilters({ filters, value, onChange }: TableFiltersProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type TableFilter, type TableFilterState } from './tableFilter';
|
|
2
|
+
export interface TableFiltersProps {
|
|
3
|
+
/** The declarative filter definitions. */
|
|
4
|
+
filters: TableFilter[];
|
|
5
|
+
/** The committed filter values. */
|
|
6
|
+
value: TableFilterState;
|
|
7
|
+
/** Commit new filter values (Apply / Clear). */
|
|
8
|
+
onChange: (value: TableFilterState) => void;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The Table's filter control — a toolbar **Filters** button (with a count `Badge`) that opens a right
|
|
12
|
+
* **drawer** (`Modal placement="right"`) of fields (one per `filter` def). Edits a **draft** committed only
|
|
13
|
+
* on **Apply**; **Clear** resets. A `Modal` (not a popover) so nested `Select` / `DatePicker` popovers work
|
|
14
|
+
* inside it.
|
|
15
|
+
*/
|
|
16
|
+
export declare function TableFilters({ filters, value, onChange }: TableFiltersProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Table, Table as default } from './Table';
|
|
2
|
+
export type { TableProps, TableColumn, TableSortState, TableChangeState, TableReorderMeta, TableAlign, TableSortDirection, } from './Table';
|
|
3
|
+
export type { TableFilter, TableFilterType, TableFilterValue, TableFilterState, } from './tableFilter';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Table, Table as default } from './Table';
|
|
2
|
+
export type { TableProps, TableColumn, TableSortState, TableChangeState, TableReorderMeta, TableAlign, TableSortDirection, } from './Table';
|
|
3
|
+
export type { TableFilter, TableFilterType, TableFilterValue, TableFilterState, } from './tableFilter';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { TableQueryConfig } from '../../theme';
|
|
2
|
+
import type { SelectOption } from '../Select';
|
|
3
|
+
/** Which control + matching logic a filter uses. */
|
|
4
|
+
export type TableFilterType = 'text' | 'number' | 'numberRange' | 'numberRangeSlider' | 'select' | 'multiSelect' | 'boolean' | 'date' | 'dateRange' | 'time' | 'timeRange' | 'dateTime' | 'dateTimeRange';
|
|
5
|
+
/** The value a single filter holds — shape depends on its `type` (see each control). `null` / empty = off. */
|
|
6
|
+
export type TableFilterValue = string | number | boolean | string[] | [number | null, number | null] | [string, string] | null;
|
|
7
|
+
/** A declarative filter definition — like a column, but for the filter panel. */
|
|
8
|
+
export interface TableFilter {
|
|
9
|
+
/** Field key on the row — the local accessor + the key in the emitted filter state. */
|
|
10
|
+
key: string;
|
|
11
|
+
/** Label shown in the filter panel. */
|
|
12
|
+
label: string;
|
|
13
|
+
/** The filter's control + matching logic. */
|
|
14
|
+
type: TableFilterType;
|
|
15
|
+
/** Options for `select` / `multiSelect`. */
|
|
16
|
+
options?: SelectOption[];
|
|
17
|
+
/** Placeholder for the input(s). */
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Param name this filter serializes to in the **server-request** query (`state.query`). Defaults to
|
|
21
|
+
* `key`. Set it to rename or bake in an operator — e.g. `'name_like'`, `'q'`, `'status'`. Range filters
|
|
22
|
+
* append the `rangeMin/MaxSuffix` to this.
|
|
23
|
+
*/
|
|
24
|
+
queryKey?: string;
|
|
25
|
+
/** `numberRange` slider bounds + step (defaults `0` / `100` / `1`) — set to match the column's data range. */
|
|
26
|
+
min?: number;
|
|
27
|
+
max?: number;
|
|
28
|
+
step?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Labels for a `boolean` filter's three radios (defaults `Any` / `Yes` / `No`) — e.g.
|
|
31
|
+
* `{ any: 'All', yes: 'In stock', no: 'Sold out' }`.
|
|
32
|
+
*/
|
|
33
|
+
booleanLabels?: {
|
|
34
|
+
any?: string;
|
|
35
|
+
yes?: string;
|
|
36
|
+
no?: string;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
/** The active filter values, keyed by filter `key`. */
|
|
40
|
+
export type TableFilterState = Record<string, TableFilterValue>;
|
|
41
|
+
/** Whether a filter value is "set" (should actually filter) — an empty string / array / all-null range is off. */
|
|
42
|
+
export declare function isFilterActive(type: TableFilterType, value: TableFilterValue | undefined): boolean;
|
|
43
|
+
/** Number of filters currently set — drives the count badge on the Filters button. */
|
|
44
|
+
export declare function activeFilterCount(filters: TableFilter[], state: TableFilterState): number;
|
|
45
|
+
/**
|
|
46
|
+
* Filter rows client-side against the active filter values (local mode). A row is kept only when it matches
|
|
47
|
+
* **every** active filter (AND). Filters that aren't set are skipped, so an empty state returns all rows.
|
|
48
|
+
* Pure — no React, no mutation.
|
|
49
|
+
*/
|
|
50
|
+
export declare function applyFilters<T>(rows: T[], filters: TableFilter[], state: TableFilterState): T[];
|
|
51
|
+
/**
|
|
52
|
+
* Serialize the active filters into **server-request** params (folded into `state.query` alongside
|
|
53
|
+
* page/size/search/sort). Each filter uses its `queryKey ?? key`; scalars emit `param=value`, a
|
|
54
|
+
* `multiSelect` emits repeated / CSV / indexed params (`multiSelectFormat`), and ranges emit two params
|
|
55
|
+
* `<param><rangeMinSuffix>` / `<param><rangeMaxSuffix>` (defaults `Min`/`Max`) — only for the set bound.
|
|
56
|
+
* Config-driven via the shared `TableQueryConfig`; inactive filters are skipped.
|
|
57
|
+
*/
|
|
58
|
+
export declare function buildFilterQuery(filters: TableFilter[], state: TableFilterState, mapping?: TableQueryConfig): URLSearchParams;
|
|
59
|
+
/**
|
|
60
|
+
* Read the active filter values back out of URL / request params — the **inverse of `buildFilterQuery`** for
|
|
61
|
+
* the same `mapping` + filter defs (each filter's `queryKey ?? key`, the `multiSelectFormat`, the range
|
|
62
|
+
* suffixes). Used by `<Table>` to restore URL-synced filters on mount / Back-Forward. Only present params
|
|
63
|
+
* produce a value; the rest stay unset.
|
|
64
|
+
*/
|
|
65
|
+
export declare function parseFilterQuery(filters: TableFilter[], params: URLSearchParams, mapping?: TableQueryConfig): TableFilterState;
|