@kismet-ux/constellation 1.9.0 → 1.11.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/brand/Logo/logo.css +4 -1
- package/dist/form/Checkbox/checkbox.css +48 -34
- package/dist/form/Checkbox/checkbox.d.ts +5 -0
- package/dist/form/Checkbox/checkbox.d.ts.map +1 -1
- package/dist/form/Checkbox/checkbox.js +6 -55
- package/dist/form/Checkbox/checkbox.js.map +1 -1
- package/dist/form/Checkbox/checkbox.module.scss.js +1 -1
- package/dist/form/Combobox/combobox.css +35 -0
- package/dist/form/Combobox/combobox.d.ts +41 -0
- package/dist/form/Combobox/combobox.d.ts.map +1 -0
- package/dist/form/Combobox/combobox.js +152 -0
- package/dist/form/Combobox/combobox.js.map +1 -0
- package/dist/form/Combobox/combobox.module.scss.js +6 -0
- package/dist/form/Combobox/combobox.module.scss.js.map +1 -0
- package/dist/form/Combobox/index.d.ts +2 -0
- package/dist/form/Combobox/index.d.ts.map +1 -0
- package/dist/form/DatePicker/date-picker.d.ts.map +1 -1
- package/dist/form/DatePicker/date-picker.js +5 -53
- package/dist/form/DatePicker/date-picker.js.map +1 -1
- package/dist/form/Input/input.css +12 -0
- package/dist/form/Input/input.d.ts +1 -1
- package/dist/form/Input/input.d.ts.map +1 -1
- package/dist/form/Input/input.js +23 -3
- package/dist/form/Input/input.js.map +1 -1
- package/dist/form/Select/select.css +46 -2
- package/dist/form/Select/select.d.ts +31 -3
- package/dist/form/Select/select.d.ts.map +1 -1
- package/dist/form/Select/select.js +35 -21
- package/dist/form/Select/select.js.map +1 -1
- package/dist/form/Select/select.module.scss.js +2 -2
- package/dist/form/index.d.ts +1 -0
- package/dist/form/index.d.ts.map +1 -1
- package/dist/form.d.ts +1 -1
- package/dist/form.js +2 -1
- package/dist/form.js.map +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/layout/index.d.ts +1 -0
- package/dist/hooks/layout/index.d.ts.map +1 -1
- package/dist/hooks/layout/use-flip.d.ts +37 -0
- package/dist/hooks/layout/use-flip.d.ts.map +1 -0
- package/dist/hooks/layout/use-flip.js +128 -0
- package/dist/hooks/layout/use-flip.js.map +1 -0
- package/dist/hooks/use-motion.d.ts +30 -0
- package/dist/hooks/use-motion.d.ts.map +1 -0
- package/dist/hooks/use-motion.js +93 -0
- package/dist/hooks/use-motion.js.map +1 -0
- package/dist/index-2nHZOukj.d.ts +200 -0
- package/dist/index-3Ui8TAHy.d.ts +200 -0
- package/dist/index-59JuNTZm.d.ts +537 -0
- package/dist/index-5QXWn0de.d.ts +200 -0
- package/dist/index-98ozinMf.d.ts +498 -0
- package/dist/index-Ah3YQTri.d.ts +566 -0
- package/dist/index-As2iBOIu.d.ts +527 -0
- package/dist/index-B1Vw0zoR.d.ts +566 -0
- package/dist/index-B25sLBMr.d.ts +498 -0
- package/dist/index-B4B8aA9X.d.ts +272 -0
- package/dist/index-B97hn7Xp.d.ts +514 -0
- package/dist/index-B9B7JjTb.d.ts +204 -0
- package/dist/index-BFWt_pYt.d.ts +566 -0
- package/dist/index-BFZp_Pu6.d.ts +566 -0
- package/dist/index-BGL4DvKQ.d.ts +293 -0
- package/dist/index-BGP_J4I2.d.ts +498 -0
- package/dist/index-BHhoIUD_.d.ts +354 -0
- package/dist/index-BI0iaWmp.d.ts +222 -0
- package/dist/index-BMSRpHb6.d.ts +273 -0
- package/dist/index-BRQWKmfq.d.ts +566 -0
- package/dist/index-BTARYt96.d.ts +537 -0
- package/dist/index-BTrpuZdU.d.ts +566 -0
- package/dist/index-BWTwKQsp.d.ts +354 -0
- package/dist/index-B_05Skyi.d.ts +566 -0
- package/dist/index-BcQqBGNu.d.ts +200 -0
- package/dist/index-Be23E9xD.d.ts +298 -0
- package/dist/index-Bf44Z8ak.d.ts +514 -0
- package/dist/index-Bg42sKjg.d.ts +498 -0
- package/dist/index-Bg_0OPMx.d.ts +566 -0
- package/dist/index-BgjRk9l7.d.ts +537 -0
- package/dist/index-BhLEMn3N.d.ts +537 -0
- package/dist/index-BiqECuUj.d.ts +204 -0
- package/dist/index-BjUQiAs1.d.ts +130 -0
- package/dist/index-BlKqvax0.d.ts +204 -0
- package/dist/index-Bnb0JFqx.d.ts +514 -0
- package/dist/index-BpSD6t7A.d.ts +566 -0
- package/dist/index-BpxKwrv_.d.ts +537 -0
- package/dist/index-Brh7JZAQ.d.ts +514 -0
- package/dist/index-C-n7hM4G.d.ts +354 -0
- package/dist/index-C0wKb28S.d.ts +514 -0
- package/dist/index-C129uthr.d.ts +566 -0
- package/dist/index-C1ef0QtQ.d.ts +204 -0
- package/dist/index-C4BACHGE.d.ts +272 -0
- package/dist/index-C5JU8WTE.d.ts +514 -0
- package/dist/index-C63UYi-T.d.ts +195 -0
- package/dist/index-C8LoYkC7.d.ts +250 -0
- package/dist/index-C9-ECLyr.d.ts +566 -0
- package/dist/index-C9B1F-mr.d.ts +293 -0
- package/dist/index-CAVmbwa8.d.ts +514 -0
- package/dist/index-CBz-v5eM.d.ts +184 -0
- package/dist/index-CCpdo0n4.d.ts +130 -0
- package/dist/index-CDC_ZncW.d.ts +566 -0
- package/dist/index-CFQj-KtR.d.ts +184 -0
- package/dist/index-CFaxW5hv.d.ts +184 -0
- package/dist/index-CG9DKbG9.d.ts +498 -0
- package/dist/index-CGhG7YeI.d.ts +354 -0
- package/dist/index-CHC6kRbR.d.ts +537 -0
- package/dist/index-CH_q-5fk.d.ts +537 -0
- package/dist/index-CIK_SmBm.d.ts +200 -0
- package/dist/index-CJ1KPFOf.d.ts +537 -0
- package/dist/index-CJ5FEGRG.d.ts +537 -0
- package/dist/index-CKX2VNKk.d.ts +240 -0
- package/dist/index-CL7kYZ90.d.ts +231 -0
- package/dist/index-CNl03fCW.d.ts +498 -0
- package/dist/index-CO8Jq0pz.d.ts +298 -0
- package/dist/index-CQ-aS-rp.d.ts +566 -0
- package/dist/index-CQjzBv4q.d.ts +537 -0
- package/dist/index-CRVO4SlF.d.ts +537 -0
- package/dist/index-CSQFy2xe.d.ts +195 -0
- package/dist/index-CWM2ewRz.d.ts +566 -0
- package/dist/index-CY6Xq36O.d.ts +204 -0
- package/dist/index-CYGOs6JT.d.ts +273 -0
- package/dist/index-CYPFkjfk.d.ts +204 -0
- package/dist/index-C_hJJ1fH.d.ts +527 -0
- package/dist/index-CcM-XHTL.d.ts +273 -0
- package/dist/index-CdGF_eEO.d.ts +514 -0
- package/dist/index-CdJTE9Lh.d.ts +566 -0
- package/dist/index-CdOt-pqR.d.ts +537 -0
- package/dist/index-CgeR_2Gi.d.ts +220 -0
- package/dist/index-CjUoZbDi.d.ts +354 -0
- package/dist/index-CjV6KsFc.d.ts +263 -0
- package/dist/index-Ck8LtgBW.d.ts +557 -0
- package/dist/index-Cknm9FUU.d.ts +299 -0
- package/dist/index-Clv3CnXv.d.ts +184 -0
- package/dist/index-Cm4wnJ29.d.ts +514 -0
- package/dist/index-Cmz3q-CI.d.ts +273 -0
- package/dist/index-CnMBzCft.d.ts +514 -0
- package/dist/index-CnVW0FnZ.d.ts +272 -0
- package/dist/index-CpIHT-uo.d.ts +231 -0
- package/dist/index-CtBEDM0b.d.ts +514 -0
- package/dist/index-CtVSiQeY.d.ts +130 -0
- package/dist/index-Cu107rOs.d.ts +293 -0
- package/dist/index-CxyTd3Ag.d.ts +354 -0
- package/dist/index-CywSNvOU.d.ts +200 -0
- package/dist/index-CzJL7Lro.d.ts +566 -0
- package/dist/index-CzJnKY3r.d.ts +272 -0
- package/dist/index-D-R9eOxe.d.ts +354 -0
- package/dist/index-D-hdgIbs.d.ts +273 -0
- package/dist/index-D-slQ9w4.d.ts +537 -0
- package/dist/index-D0jdNDaH.d.ts +204 -0
- package/dist/index-D1ir--Li.d.ts +566 -0
- package/dist/index-D29_-MCZ.d.ts +354 -0
- package/dist/index-D2glATpo.d.ts +273 -0
- package/dist/index-D6ATtbor.d.ts +298 -0
- package/dist/index-D6HktSlo.d.ts +514 -0
- package/dist/index-DB4UBCvy.d.ts +537 -0
- package/dist/index-DBd0PU9y.d.ts +222 -0
- package/dist/index-DE2Nm-iT.d.ts +354 -0
- package/dist/index-DEeJuuvm.d.ts +231 -0
- package/dist/index-DHhzBSfL.d.ts +498 -0
- package/dist/index-DKpWNCb6.d.ts +204 -0
- package/dist/index-DMewi97i.d.ts +566 -0
- package/dist/index-DN0gtpck.d.ts +354 -0
- package/dist/index-DO23vZ-R.d.ts +514 -0
- package/dist/index-DTb2-z6E.d.ts +130 -0
- package/dist/index-DV-CN7c0.d.ts +231 -0
- package/dist/index-DWgCs62z.d.ts +566 -0
- package/dist/index-D_6Qu6ia.d.ts +200 -0
- package/dist/index-D_vn8O-I.d.ts +293 -0
- package/dist/index-Daq4m4Rf.d.ts +514 -0
- package/dist/index-Db6cXpr6.d.ts +537 -0
- package/dist/index-DbZ1s2E-.d.ts +514 -0
- package/dist/index-DbevJPuY.d.ts +354 -0
- package/dist/index-DepmPwP7.d.ts +537 -0
- package/dist/index-DfnTWQCz.d.ts +514 -0
- package/dist/index-Dfu8WhiS.d.ts +273 -0
- package/dist/index-DggMYd7c.d.ts +298 -0
- package/dist/index-DhS2nQjt.d.ts +200 -0
- package/dist/index-Dn3bC8Ki.d.ts +222 -0
- package/dist/index-Dn9bGZvU.d.ts +195 -0
- package/dist/index-DnDt7A4Y.d.ts +354 -0
- package/dist/index-DpdYKBP2.d.ts +498 -0
- package/dist/index-DunP9qIK.d.ts +537 -0
- package/dist/index-DxO6-qt5.d.ts +498 -0
- package/dist/index-ESQ8WM_8.d.ts +130 -0
- package/dist/index-GVz409cm.d.ts +222 -0
- package/dist/index-HAx-aLZ0.d.ts +273 -0
- package/dist/index-Iuzs6nt9.d.ts +498 -0
- package/dist/index-LnEpnlTq.d.ts +566 -0
- package/dist/index-Mm1i2OdU.d.ts +537 -0
- package/dist/index-P0oxVi77.d.ts +537 -0
- package/dist/index-Q5JuPFoN.d.ts +293 -0
- package/dist/index-RJviLtvo.d.ts +566 -0
- package/dist/index-SnQCbfte.d.ts +498 -0
- package/dist/index-Th9It0ZT.d.ts +354 -0
- package/dist/index-UHHmyQM5.d.ts +272 -0
- package/dist/index-VyGmJYQZ.d.ts +537 -0
- package/dist/index-WYH70le_.d.ts +195 -0
- package/dist/index-Wj9RYtTX.d.ts +273 -0
- package/dist/index-Y-wMZeUG.d.ts +298 -0
- package/dist/index-Zo2rSdXz.d.ts +273 -0
- package/dist/index-ZwpWgV4n.d.ts +272 -0
- package/dist/index-_oZ4knIl.d.ts +272 -0
- package/dist/index-an222nAK.d.ts +354 -0
- package/dist/index-daV0QTe0.d.ts +537 -0
- package/dist/index-eGZu2HLC.d.ts +231 -0
- package/dist/index-eswPA0Un.d.ts +204 -0
- package/dist/index-gf6-wf_1.d.ts +566 -0
- package/dist/index-hdVr9Wrv.d.ts +566 -0
- package/dist/index-iygiXYw2.d.ts +537 -0
- package/dist/index-jR29ZGLD.d.ts +514 -0
- package/dist/index-kHgI28TP.d.ts +272 -0
- package/dist/index-lY4_UCOs.d.ts +566 -0
- package/dist/index-miXK87yJ.d.ts +231 -0
- package/dist/index-mwbGtZkk.d.ts +273 -0
- package/dist/index-ru2DFXcm.d.ts +195 -0
- package/dist/index-uj1ll_u-.d.ts +204 -0
- package/dist/index-vfq-aH7U.d.ts +537 -0
- package/dist/index-xqUz9XjP.d.ts +537 -0
- package/dist/index.css +74 -18
- package/dist/index.d.ts +121 -13
- package/dist/index.js +34 -28
- package/dist/index.js.map +1 -1
- package/dist/internal/use-scroll-lock.d.ts +15 -0
- package/dist/internal/use-scroll-lock.d.ts.map +1 -1
- package/dist/internal/use-scroll-lock.js +26 -8
- package/dist/internal/use-scroll-lock.js.map +1 -1
- package/dist/layout/AppContent/app-content.css +1 -1
- package/dist/layout/AppContentBands/app-content-bands.css +21 -0
- package/dist/layout/AppContentBands/app-content-bands.d.ts +26 -0
- package/dist/layout/AppContentBands/app-content-bands.d.ts.map +1 -0
- package/dist/layout/AppContentBands/app-content-bands.js +65 -0
- package/dist/layout/AppContentBands/app-content-bands.js.map +1 -0
- package/dist/layout/AppContentBands/app-content-bands.module.scss.js +6 -0
- package/dist/layout/AppContentBands/app-content-bands.module.scss.js.map +1 -0
- package/dist/layout/AppContentBands/index.d.ts +2 -0
- package/dist/layout/AppContentBands/index.d.ts.map +1 -0
- package/dist/layout/AppContentFooter/app-content-footer.css +9 -0
- package/dist/layout/AppContentFooter/app-content-footer.d.ts +38 -0
- package/dist/layout/AppContentFooter/app-content-footer.d.ts.map +1 -0
- package/dist/layout/AppContentFooter/app-content-footer.js +42 -0
- package/dist/layout/AppContentFooter/app-content-footer.js.map +1 -0
- package/dist/layout/AppContentFooter/app-content-footer.module.scss.js +6 -0
- package/dist/layout/AppContentFooter/app-content-footer.module.scss.js.map +1 -0
- package/dist/layout/AppContentFooter/index.d.ts +2 -0
- package/dist/layout/AppContentFooter/index.d.ts.map +1 -0
- package/dist/layout/AppContentMain/app-content-main.css +6 -0
- package/dist/layout/AppContentMain/app-content-main.d.ts +37 -0
- package/dist/layout/AppContentMain/app-content-main.d.ts.map +1 -0
- package/dist/layout/AppContentMain/app-content-main.js +41 -0
- package/dist/layout/AppContentMain/app-content-main.js.map +1 -0
- package/dist/layout/AppContentMain/app-content-main.module.scss.js +6 -0
- package/dist/layout/AppContentMain/app-content-main.module.scss.js.map +1 -0
- package/dist/layout/AppContentMain/index.d.ts +2 -0
- package/dist/layout/AppContentMain/index.d.ts.map +1 -0
- package/dist/layout/AppFooter/app-footer.js +1 -1
- package/dist/layout/AppSidebar/app-sidebar.js +1 -1
- package/dist/layout/AppSidebarHeader/app-sidebar-header.css +2 -3
- package/dist/layout/AppSidebarHeader/app-sidebar-header.d.ts +10 -2
- package/dist/layout/AppSidebarHeader/app-sidebar-header.d.ts.map +1 -1
- package/dist/layout/AppSidebarHeader/app-sidebar-header.js +12 -32
- package/dist/layout/AppSidebarHeader/app-sidebar-header.js.map +1 -1
- package/dist/layout/Collapse/collapse.css +4 -1
- package/dist/layout/Column/column.css +6 -0
- package/dist/layout/Column/column.d.ts.map +1 -1
- package/dist/layout/Column/column.js +3 -1
- package/dist/layout/Column/column.js.map +1 -1
- package/dist/layout/Column/column.module.scss.js +1 -1
- package/dist/layout/Container/container.css +42 -0
- package/dist/layout/Container/container.d.ts.map +1 -1
- package/dist/layout/Container/container.js +37 -9
- package/dist/layout/Container/container.js.map +1 -1
- package/dist/layout/Container/container.module.scss.js +1 -1
- package/dist/layout/Grid/grid.css +28 -0
- package/dist/layout/Grid/grid.d.ts.map +1 -1
- package/dist/layout/Grid/grid.js +40 -4
- package/dist/layout/Grid/grid.js.map +1 -1
- package/dist/layout/Grid/grid.module.scss.js +1 -1
- package/dist/layout/Row/row.css +42 -0
- package/dist/layout/Row/row.d.ts.map +1 -1
- package/dist/layout/Row/row.js +5 -3
- package/dist/layout/Row/row.js.map +1 -1
- package/dist/layout/Row/row.module.scss.js +1 -1
- package/dist/layout/Sidebar/sidebar.css +4 -2
- package/dist/layout/Sidebar/sidebar.js +1 -1
- package/dist/layout/index.d.ts +2 -0
- package/dist/layout/index.d.ts.map +1 -1
- package/dist/layout.d.ts +3 -3
- package/dist/layout.js +2 -0
- package/dist/layout.js.map +1 -1
- package/dist/navigation/DropdownMenu/dropdown-menu.d.ts.map +1 -1
- package/dist/navigation/DropdownMenu/dropdown-menu.js +1 -1
- package/dist/navigation/DropdownMenu/dropdown-menu.js.map +1 -1
- package/dist/navigation/NavUser/nav-user.js +2 -2
- package/dist/navigation/Sheet/sheet.css +40 -6
- package/dist/navigation/Sheet/sheet.d.ts +22 -0
- package/dist/navigation/Sheet/sheet.d.ts.map +1 -1
- package/dist/navigation/Sheet/sheet.js +5 -30
- package/dist/navigation/Sheet/sheet.js.map +1 -1
- package/dist/navigation/Sheet/sheet.module.scss.js +1 -1
- package/dist/navigation.d.ts +22 -0
- package/dist/row-CuhTBQhK.d.ts +21 -0
- package/dist/settings/AppearanceDropdown/appearance-dropdown.js +1 -1
- package/dist/settings/AppearanceTabs/appearance-tabs.js +2 -27
- package/dist/settings/AppearanceTabs/appearance-tabs.js.map +1 -1
- package/dist/tokens.css +59 -17
- package/dist/tooltip-1qYeAGE9.d.ts +45 -0
- package/dist/tooltip-3IOkYFQ-.d.ts +45 -0
- package/dist/tooltip-540OmbEG.d.ts +46 -0
- package/dist/tooltip-91Nq_Hl8.d.ts +46 -0
- package/dist/tooltip-B56sWYK0.d.ts +46 -0
- package/dist/tooltip-BIrIF-4z.d.ts +45 -0
- package/dist/tooltip-BOipKW5l.d.ts +46 -0
- package/dist/tooltip-BPC0RH8i.d.ts +46 -0
- package/dist/tooltip-BST1BOCn.d.ts +45 -0
- package/dist/tooltip-BhuxNQwX.d.ts +45 -0
- package/dist/tooltip-BpAJwi3K.d.ts +46 -0
- package/dist/tooltip-C0LBu2Iu.d.ts +45 -0
- package/dist/tooltip-C1ZwALiG.d.ts +45 -0
- package/dist/tooltip-C55-HA0w.d.ts +45 -0
- package/dist/tooltip-CHn6WuDv.d.ts +46 -0
- package/dist/tooltip-CNjH7zKO.d.ts +45 -0
- package/dist/tooltip-CSBby1OT.d.ts +45 -0
- package/dist/tooltip-CXFRzR0L.d.ts +45 -0
- package/dist/tooltip-ChpsbkOU.d.ts +46 -0
- package/dist/tooltip-CspTy2ZW.d.ts +46 -0
- package/dist/tooltip-CvComAZD.d.ts +46 -0
- package/dist/tooltip-D19vhhRn.d.ts +45 -0
- package/dist/tooltip-D32S1g-7.d.ts +46 -0
- package/dist/tooltip-DAvBN683.d.ts +45 -0
- package/dist/tooltip-DQz4_i4m.d.ts +45 -0
- package/dist/tooltip-DVYPUAb1.d.ts +46 -0
- package/dist/tooltip-DXoSckt9.d.ts +46 -0
- package/dist/tooltip-Dtoq3bn_.d.ts +46 -0
- package/dist/tooltip-DxO_DWMO.d.ts +46 -0
- package/dist/tooltip-DxdGb3dX.d.ts +45 -0
- package/dist/tooltip-DzAzC0d7.d.ts +45 -0
- package/dist/tooltip-Lk4RpuSh.d.ts +45 -0
- package/dist/tooltip-ReFyHDhU.d.ts +45 -0
- package/dist/tooltip-_wdlSYAb.d.ts +46 -0
- package/dist/tooltip-nKcM19C9.d.ts +45 -0
- package/dist/types/layout/container.d.ts +28 -1
- package/dist/types/layout/container.d.ts.map +1 -1
- package/dist/types/layout/grid.d.ts +42 -0
- package/dist/types/layout/grid.d.ts.map +1 -1
- package/dist/types/layout/row.d.ts +7 -0
- package/dist/types/layout/row.d.ts.map +1 -1
- package/dist/typography/Typography/typography-variants.d.ts +3 -0
- package/dist/typography/Typography/typography-variants.d.ts.map +1 -1
- package/dist/typography/Typography/typography-variants.js +25 -0
- package/dist/typography/Typography/typography-variants.js.map +1 -1
- package/dist/typography/Typography/typography.css +105 -41
- package/dist/typography/Typography/typography.d.ts +20 -0
- package/dist/typography/Typography/typography.d.ts.map +1 -1
- package/dist/typography/Typography/typography.js +11 -2
- package/dist/typography/Typography/typography.js.map +1 -1
- package/dist/typography/Typography/typography.module.scss.js +1 -1
- package/dist/typography-CTGVc_Gg.d.ts +41 -0
- package/dist/typography.d.ts +2 -2
- package/dist/ui/Alert/alert-provider.d.ts.map +1 -1
- package/dist/ui/Alert/alert-provider.js +1 -1
- package/dist/ui/Alert/alert-provider.js.map +1 -1
- package/dist/ui/Button/button-variants.d.ts +1 -0
- package/dist/ui/Button/button-variants.d.ts.map +1 -1
- package/dist/ui/Button/button-variants.js +3 -0
- package/dist/ui/Button/button-variants.js.map +1 -1
- package/dist/ui/Button/button.css +68 -14
- package/dist/ui/Button/button.d.ts.map +1 -1
- package/dist/ui/Button/button.js +2 -2
- package/dist/ui/Button/button.js.map +1 -1
- package/dist/ui/Button/button.module.scss.js +1 -1
- package/dist/ui/Chip/chip.css +32 -11
- package/dist/ui/Chip/chip.d.ts +16 -0
- package/dist/ui/Chip/chip.d.ts.map +1 -1
- package/dist/ui/Chip/chip.js +4 -2
- package/dist/ui/Chip/chip.js.map +1 -1
- package/dist/ui/CodeBlock/code-block.css +8 -3
- package/dist/ui/Dialog/dialog.css +70 -0
- package/dist/ui/Dialog/dialog.d.ts +45 -2
- package/dist/ui/Dialog/dialog.d.ts.map +1 -1
- package/dist/ui/Dialog/dialog.js +256 -7
- package/dist/ui/Dialog/dialog.js.map +1 -1
- package/dist/ui/Dialog/dialog.module.scss.js +1 -1
- package/dist/ui/Icon/icon.css +14 -7
- package/dist/ui/ProgressBar/progress-bar.css +10 -3
- package/dist/ui/StatCard/stat-card.css +13 -0
- package/dist/ui/StatCard/stat-card.d.ts +9 -0
- package/dist/ui/StatCard/stat-card.d.ts.map +1 -1
- package/dist/ui/StatCard/stat-card.js +2 -2
- package/dist/ui/StatCard/stat-card.js.map +1 -1
- package/dist/ui/StatusDot/status-dot.css +4 -1
- package/dist/ui/StepProgress/step-progress.css +12 -4
- package/dist/ui/Switch/switch.css +6 -2
- package/dist/ui/Tooltip/tooltip.d.ts.map +1 -1
- package/dist/ui/Tooltip/tooltip.js +1 -1
- package/dist/ui/Tooltip/tooltip.js.map +1 -1
- package/dist/ui.d.ts +3 -3
- package/dist/user/UserInfo/user-info.js +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/portal.d.ts +34 -0
- package/dist/utils/portal.d.ts.map +1 -0
- package/dist/utils/portal.js +40 -0
- package/dist/utils/portal.js.map +1 -0
- package/dist/utils.d.ts +35 -1
- package/dist/utils.js +1 -0
- package/dist/utils.js.map +1 -1
- package/package.json +3 -2
- package/src/styles/_mixins.scss +30 -0
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { d as SidebarSection, S as SidebarNavItem, B as BreadcrumbItemData, c as NavUserProps } from './nav-user-CJIcWKyY.js';
|
|
4
|
+
import { R as RowProps } from './row-CuhTBQhK.js';
|
|
5
|
+
import { I as Input } from './input-Cp5LET5i.js';
|
|
6
|
+
import { b as TooltipContent, B as Button } from './tooltip-91Nq_Hl8.js';
|
|
7
|
+
import { VariantProps } from 'class-variance-authority';
|
|
8
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
9
|
+
|
|
10
|
+
interface ColumnProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
11
|
+
children?: React__default.ReactNode;
|
|
12
|
+
el?: React__default.ElementType<React__default.HTMLAttributes<HTMLDivElement>>;
|
|
13
|
+
gap?: number;
|
|
14
|
+
full?: boolean;
|
|
15
|
+
fullHeight?: boolean;
|
|
16
|
+
align?: 'start' | 'center' | 'end';
|
|
17
|
+
flex?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface ContainerProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
21
|
+
children?: React__default.ReactNode;
|
|
22
|
+
el?: React__default.ElementType<React__default.HTMLAttributes<HTMLDivElement>>;
|
|
23
|
+
styled?: boolean;
|
|
24
|
+
direction?: 'column' | 'row';
|
|
25
|
+
align?: 'start' | 'center' | 'end' | 'stretch';
|
|
26
|
+
justify?: 'start' | 'center' | 'end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
27
|
+
full?: boolean;
|
|
28
|
+
rounded?: boolean | 'extra';
|
|
29
|
+
outlined?: boolean;
|
|
30
|
+
/** A border colour outside the theme scale; pairs with `outlined`. */
|
|
31
|
+
color?: string;
|
|
32
|
+
theme?: 'primary' | 'secondary' | 'success' | 'destructive' | 'warning' | 'info' | 'slate' | 'light-slate';
|
|
33
|
+
elevation?: number;
|
|
34
|
+
padding?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 'xl' | 'lg' | 'md' | 'sm' | 'none';
|
|
35
|
+
darkMode?: boolean;
|
|
36
|
+
gap?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Draw one edge in `color` as a thick rule.
|
|
39
|
+
*
|
|
40
|
+
* A card that belongs to a category — an aisle, a shelf, a queue — reads
|
|
41
|
+
* faster with a coloured edge than with a full outline in the same hue,
|
|
42
|
+
* because the edge is a mark and the outline is a box. Pairs with `color`.
|
|
43
|
+
*/
|
|
44
|
+
accent?: 'left' | 'right' | 'top' | 'bottom';
|
|
45
|
+
/** Colour for the `accent` edge. Falls back to `color`, then the divider. */
|
|
46
|
+
accentColor?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Cap the content width and centre it.
|
|
49
|
+
*
|
|
50
|
+
* `text` for a column of prose, `content` for ordinary forms and lists,
|
|
51
|
+
* `wide` for dense work that earns the room. A CSS length is accepted for
|
|
52
|
+
* the case the scale does not cover. Without it a container simply fills its
|
|
53
|
+
* parent, which is right until the parent is a very large screen.
|
|
54
|
+
*/
|
|
55
|
+
measure?: 'text' | 'content' | 'wide' | 'full' | (string & {});
|
|
56
|
+
/**
|
|
57
|
+
* Fade the container in shortly after mount.
|
|
58
|
+
*
|
|
59
|
+
* Off by default. Only sensible for something that appears once — a hero
|
|
60
|
+
* panel, an empty state. Anything that repeats or is toggled should not use
|
|
61
|
+
* it: the container renders invisible until the timer fires.
|
|
62
|
+
*/
|
|
63
|
+
appear?: boolean;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
type GridColumns = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
67
|
+
interface GridProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
68
|
+
children?: React__default.ReactNode;
|
|
69
|
+
/** Number of columns (1–12). Default: 1. */
|
|
70
|
+
columns?: GridColumns;
|
|
71
|
+
/** Responsive column overrides. Each breakpoint sets the column count at that width and above. */
|
|
72
|
+
sm?: GridColumns;
|
|
73
|
+
md?: GridColumns;
|
|
74
|
+
lg?: GridColumns;
|
|
75
|
+
xl?: GridColumns;
|
|
76
|
+
/** Gap between items (0–12, maps to --size-N tokens). Default: 2. */
|
|
77
|
+
gap?: number;
|
|
78
|
+
/**
|
|
79
|
+
* A minimum track width — `repeat(auto-fit, minmax(<min>, 1fr))`.
|
|
80
|
+
*
|
|
81
|
+
* For a grid whose column COUNT is not the interesting question: "these
|
|
82
|
+
* boxes hold one word each, fit as many as will read" is a statement about
|
|
83
|
+
* the content, and it reflows without naming a breakpoint. Takes precedence
|
|
84
|
+
* over `columns` and the responsive overrides, which it replaces.
|
|
85
|
+
*/
|
|
86
|
+
min?: string;
|
|
87
|
+
/**
|
|
88
|
+
* With `min`, keep empty tracks instead of collapsing them (`auto-fill`
|
|
89
|
+
* rather than `auto-fit`).
|
|
90
|
+
*
|
|
91
|
+
* The difference only shows when the items do not fill the row. A grid of
|
|
92
|
+
* CARDS wants this: one card in an aisle should stay card-sized, not stretch
|
|
93
|
+
* to the full width. A grid of form FIELDS wants the default, where two
|
|
94
|
+
* fields share the row rather than leaving a hole.
|
|
95
|
+
*/
|
|
96
|
+
fill?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Pack items by height instead of by row, so a short item does not leave a
|
|
99
|
+
* hole under a tall neighbour.
|
|
100
|
+
*
|
|
101
|
+
* Implemented with CSS multi-column, which is the only masonry that works
|
|
102
|
+
* everywhere today — `grid-template-rows: masonry` is still behind a flag.
|
|
103
|
+
* The trade is reading order: items flow DOWN each column and then across,
|
|
104
|
+
* rather than left to right. For a list already grouped and sorted that is
|
|
105
|
+
* fine; for anything where "the next one" must sit to the right, it is not.
|
|
106
|
+
*
|
|
107
|
+
* Pairs with `min`, which sets the column width.
|
|
108
|
+
*/
|
|
109
|
+
masonry?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Animate children to their new positions instead of letting them jump.
|
|
112
|
+
*
|
|
113
|
+
* Wires up FLIP (see `useFlip`). Worth it wherever the layout reflows on its
|
|
114
|
+
* own — a masonry that restacks when the window narrows, or a card that
|
|
115
|
+
* pushes its neighbours down as it expands. Respects
|
|
116
|
+
* the app's motion preference (`useMotion`), which defaults to
|
|
117
|
+
* `prefers-reduced-motion`.
|
|
118
|
+
*/
|
|
119
|
+
animate?: boolean;
|
|
120
|
+
/** Horizontal alignment of items within cells. */
|
|
121
|
+
align?: 'start' | 'center' | 'end' | 'stretch';
|
|
122
|
+
/** Vertical alignment of items within cells. */
|
|
123
|
+
justify?: 'start' | 'center' | 'end' | 'stretch';
|
|
124
|
+
/** Whether the grid fills its parent width. */
|
|
125
|
+
full?: boolean;
|
|
126
|
+
/** Semantic HTML element to render. Default: div. */
|
|
127
|
+
el?: React__default.ElementType<React__default.HTMLAttributes<HTMLDivElement>>;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
type SidebarVariant = 'sidebar' | 'floating' | 'inset';
|
|
131
|
+
type SidebarContextValue = {
|
|
132
|
+
state: 'expanded' | 'collapsed';
|
|
133
|
+
open: boolean;
|
|
134
|
+
setOpen: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
135
|
+
isMobile: boolean;
|
|
136
|
+
openMobile: boolean;
|
|
137
|
+
setOpenMobile: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
138
|
+
toggleSidebar: () => void;
|
|
139
|
+
variant: SidebarVariant;
|
|
140
|
+
setVariant: React__default.Dispatch<React__default.SetStateAction<SidebarVariant>>;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
declare function AppContent({ children, className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
144
|
+
|
|
145
|
+
interface AppContentBandProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
146
|
+
/** The element to render. Defaults to `header` / `footer` respectively. */
|
|
147
|
+
el?: React.ElementType<React.HTMLAttributes<HTMLDivElement>>;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* The band at the top of a content area, pinned while the page scrolls.
|
|
151
|
+
*
|
|
152
|
+
* Opaque on purpose: it paints over the content passing beneath it, and a
|
|
153
|
+
* translucent one shows the list sliding through the title.
|
|
154
|
+
*/
|
|
155
|
+
declare function AppContentHeader({ children, className, el, sticky, ...props }: AppContentBandProps & {
|
|
156
|
+
sticky?: boolean;
|
|
157
|
+
}): React.JSX.Element;
|
|
158
|
+
/**
|
|
159
|
+
* The band at the foot of a content area — a search field, a toolbar, the
|
|
160
|
+
* action that commits the page.
|
|
161
|
+
*
|
|
162
|
+
* Sticky, not fixed: fixed is measured against the viewport, so in an app with
|
|
163
|
+
* a sidebar the band runs underneath it and has to be inset by hand for every
|
|
164
|
+
* layout the sidebar can be in. Sticky is measured against this content area,
|
|
165
|
+
* which is where it belongs, and it costs real space at the end of the scroll
|
|
166
|
+
* instead of needing the page padded to clear it.
|
|
167
|
+
*/
|
|
168
|
+
declare function AppContentFooter({ children, className, el, ...props }: AppContentBandProps): React.JSX.Element;
|
|
169
|
+
|
|
170
|
+
interface AppFooterProps {
|
|
171
|
+
brand: string;
|
|
172
|
+
links: {
|
|
173
|
+
label: string;
|
|
174
|
+
href: string;
|
|
175
|
+
}[];
|
|
176
|
+
}
|
|
177
|
+
declare function AppFooter({ brand, links }: AppFooterProps): React.JSX.Element;
|
|
178
|
+
|
|
179
|
+
interface AppShellProps {
|
|
180
|
+
children: React.ReactNode;
|
|
181
|
+
/**
|
|
182
|
+
* Initial sidebar state. Persist this server-side (cookie, session) or in
|
|
183
|
+
* localStorage and pass it in, so the sidebar doesn't flash open on load.
|
|
184
|
+
*/
|
|
185
|
+
defaultSidebarOpen?: boolean;
|
|
186
|
+
}
|
|
187
|
+
declare function AppShell({ children, defaultSidebarOpen }: AppShellProps): React.JSX.Element;
|
|
188
|
+
|
|
189
|
+
interface AppSidebarProps {
|
|
190
|
+
logo: React.ReactNode;
|
|
191
|
+
homeHref?: string;
|
|
192
|
+
currentPath?: string;
|
|
193
|
+
linkComponent?: React.ElementType;
|
|
194
|
+
sections: SidebarSection[];
|
|
195
|
+
footerItems?: SidebarNavItem[];
|
|
196
|
+
footerSeparator?: boolean;
|
|
197
|
+
children?: React.ReactNode;
|
|
198
|
+
}
|
|
199
|
+
declare function AppSidebar({ logo, homeHref, currentPath, linkComponent, sections, footerItems, footerSeparator, children, }: AppSidebarProps): React.JSX.Element;
|
|
200
|
+
|
|
201
|
+
interface AppSidebarHeaderProps {
|
|
202
|
+
breadcrumbs?: BreadcrumbItemData[];
|
|
203
|
+
/** Omit to hide the account menu (e.g. on signed-out chrome). */
|
|
204
|
+
user?: NavUserProps['user'];
|
|
205
|
+
userMenu?: Omit<NavUserProps, 'user'>;
|
|
206
|
+
/** Extra controls between the appearance toggle and the account menu. */
|
|
207
|
+
actions?: React.ReactNode;
|
|
208
|
+
sticky?: boolean;
|
|
209
|
+
}
|
|
210
|
+
declare function AppSidebarHeader({ breadcrumbs, user, userMenu, actions, sticky }: AppSidebarHeaderProps): React.JSX.Element;
|
|
211
|
+
|
|
212
|
+
interface CollapseProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
213
|
+
open: boolean;
|
|
214
|
+
/** Transition length in ms. Also how long the unmount is deferred. */
|
|
215
|
+
duration?: number;
|
|
216
|
+
/**
|
|
217
|
+
* Unmount children once the close animation finishes. Keeps focus traps,
|
|
218
|
+
* `autoFocus` and dismiss handlers out of the tree while the panel is shut.
|
|
219
|
+
* Set `false` to keep children mounted — cheaper for a panel toggled often,
|
|
220
|
+
* and required if they hold state you need to survive a close.
|
|
221
|
+
*/
|
|
222
|
+
unmountOnClose?: boolean;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* A panel that animates its own height, so content below slides rather than
|
|
226
|
+
* jumping.
|
|
227
|
+
*
|
|
228
|
+
* Uses `grid-template-rows: 0fr → 1fr` rather than animating `max-height`: it
|
|
229
|
+
* interpolates to the panel's real height, so there is no magic number to
|
|
230
|
+
* guess and no pause at the end when the guess was too generous.
|
|
231
|
+
*/
|
|
232
|
+
declare const Collapse: React.ForwardRefExoticComponent<CollapseProps & React.RefAttributes<HTMLDivElement>>;
|
|
233
|
+
|
|
234
|
+
declare const Column: React.FC<ColumnProps>;
|
|
235
|
+
|
|
236
|
+
declare const Container: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
237
|
+
|
|
238
|
+
declare const Grid: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTMLDivElement>>;
|
|
239
|
+
|
|
240
|
+
declare const Row: React.FC<RowProps>;
|
|
241
|
+
|
|
242
|
+
declare const sidebarMenuButtonVariants: (props?: ({
|
|
243
|
+
variant?: "default" | "outline" | null | undefined;
|
|
244
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
245
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
246
|
+
|
|
247
|
+
declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React.ComponentProps<'div'> & {
|
|
248
|
+
defaultOpen?: boolean;
|
|
249
|
+
open?: boolean;
|
|
250
|
+
onOpenChange?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
251
|
+
}): React.JSX.Element;
|
|
252
|
+
declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React.ComponentProps<'div'> & {
|
|
253
|
+
side?: 'left' | 'right';
|
|
254
|
+
variant?: SidebarVariant;
|
|
255
|
+
collapsible?: 'offcanvas' | 'icon' | 'none';
|
|
256
|
+
}): React.JSX.Element;
|
|
257
|
+
declare function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
|
|
258
|
+
declare function SidebarRail({ className, ...props }: React.ComponentProps<'button'>): React.JSX.Element;
|
|
259
|
+
declare function SidebarInset({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
260
|
+
declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>): React.JSX.Element;
|
|
261
|
+
declare function SidebarHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
262
|
+
declare function SidebarFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
263
|
+
declare function SidebarContent({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
264
|
+
declare function SidebarGroup({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
265
|
+
declare function SidebarGroupLabel({ className, asChild, ...props }: React.ComponentProps<'div'> & {
|
|
266
|
+
asChild?: boolean;
|
|
267
|
+
}): React.JSX.Element;
|
|
268
|
+
declare function SidebarGroupAction({ className, asChild, ...props }: React.ComponentProps<'button'> & {
|
|
269
|
+
asChild?: boolean;
|
|
270
|
+
}): React.JSX.Element;
|
|
271
|
+
declare function SidebarGroupContent({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
272
|
+
declare function SidebarMenu({ className, ...props }: React.ComponentProps<'ul'>): React.JSX.Element;
|
|
273
|
+
declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<'li'>): React.JSX.Element;
|
|
274
|
+
declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, ...props }: React.ComponentProps<'button'> & {
|
|
275
|
+
asChild?: boolean;
|
|
276
|
+
isActive?: boolean;
|
|
277
|
+
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
278
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): React.JSX.Element;
|
|
279
|
+
declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React.ComponentProps<'button'> & {
|
|
280
|
+
asChild?: boolean;
|
|
281
|
+
showOnHover?: boolean;
|
|
282
|
+
}): React.JSX.Element;
|
|
283
|
+
declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
284
|
+
declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React.ComponentProps<'div'> & {
|
|
285
|
+
showIcon?: boolean;
|
|
286
|
+
}): React.JSX.Element;
|
|
287
|
+
declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<'ul'>): React.JSX.Element;
|
|
288
|
+
declare function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<'li'>): React.JSX.Element;
|
|
289
|
+
declare function SidebarMenuSubButton({ asChild, size, isActive, tooltip, className, ...props }: React.ComponentProps<'a'> & {
|
|
290
|
+
asChild?: boolean;
|
|
291
|
+
size?: 'sm' | 'md';
|
|
292
|
+
isActive?: boolean;
|
|
293
|
+
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
294
|
+
}): React.JSX.Element;
|
|
295
|
+
|
|
296
|
+
declare function Skeleton({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
297
|
+
|
|
298
|
+
export { AppContent as A, SidebarInput as B, Collapse as C, SidebarInset as D, SidebarMenu as E, SidebarMenuAction as F, Grid as G, SidebarMenuBadge as H, SidebarMenuButton as I, SidebarMenuItem as J, SidebarMenuSkeleton as K, SidebarMenuSub as L, SidebarMenuSubButton as M, SidebarMenuSubItem as N, SidebarProvider as O, SidebarRail as P, SidebarTrigger as Q, Row as R, Skeleton as U, AppContentFooter as b, AppContentHeader as c, AppFooter as d, AppShell as f, AppSidebar as h, AppSidebarHeader as i, Column as m, Container as o, Sidebar as s, SidebarContent as t, SidebarFooter as u, SidebarGroup as v, SidebarGroupAction as w, SidebarGroupContent as x, SidebarGroupLabel as y, SidebarHeader as z };
|
|
299
|
+
export type { SidebarContextValue as S, SidebarVariant as T, AppContentBandProps as a, AppFooterProps as e, AppShellProps as g, AppSidebarHeaderProps as j, AppSidebarProps as k, CollapseProps as l, ColumnProps as n, ContainerProps as p, GridColumns as q, GridProps as r };
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { a as InputBaseProps } from './input-Cp5LET5i.js';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
|
+
|
|
7
|
+
type DatePickerProps = {
|
|
8
|
+
value?: string;
|
|
9
|
+
defaultValue?: string;
|
|
10
|
+
onChange?: (value: string) => void;
|
|
11
|
+
label?: React__default.ReactNode;
|
|
12
|
+
helperText?: React__default.ReactNode;
|
|
13
|
+
error?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
sizeVariant?: 'sm' | 'md';
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
min?: string;
|
|
18
|
+
max?: string;
|
|
19
|
+
required?: boolean;
|
|
20
|
+
id?: string;
|
|
21
|
+
className?: string;
|
|
22
|
+
name?: string;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
type SelectAlign = 'start' | 'center' | 'end';
|
|
26
|
+
type SelectSide = 'top' | 'bottom' | 'left' | 'right';
|
|
27
|
+
type SelectPosition = 'item-aligned' | 'popper';
|
|
28
|
+
type SelectProps = {
|
|
29
|
+
open?: boolean;
|
|
30
|
+
defaultOpen?: boolean;
|
|
31
|
+
onOpenChange?: (open: boolean) => void;
|
|
32
|
+
value?: string;
|
|
33
|
+
defaultValue?: string;
|
|
34
|
+
onValueChange?: (value: string) => void;
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
required?: boolean;
|
|
37
|
+
name?: string;
|
|
38
|
+
children?: React__default.ReactNode;
|
|
39
|
+
};
|
|
40
|
+
type SelectContentProps = React__default.HTMLAttributes<HTMLDivElement> & {
|
|
41
|
+
position?: SelectPosition;
|
|
42
|
+
align?: SelectAlign;
|
|
43
|
+
side?: SelectSide;
|
|
44
|
+
sideOffset?: number;
|
|
45
|
+
collisionPadding?: number;
|
|
46
|
+
};
|
|
47
|
+
type SelectFieldContentProps = Pick<SelectContentProps, 'align' | 'className' | 'collisionPadding' | 'side' | 'sideOffset'>;
|
|
48
|
+
type SelectFieldBaseProps = Omit<SelectProps, 'value' | 'defaultValue' | 'onValueChange'> & {
|
|
49
|
+
'aria-required'?: boolean;
|
|
50
|
+
label?: React__default.ReactNode;
|
|
51
|
+
helperText?: React__default.ReactNode;
|
|
52
|
+
error?: boolean;
|
|
53
|
+
placeholder?: string;
|
|
54
|
+
fieldClassName?: string;
|
|
55
|
+
contentProps?: SelectFieldContentProps;
|
|
56
|
+
id?: string;
|
|
57
|
+
children?: React__default.ReactNode;
|
|
58
|
+
sizeVariant?: 'sm' | 'md';
|
|
59
|
+
searchThreshold?: number;
|
|
60
|
+
};
|
|
61
|
+
type SingleSelectFieldProps = SelectFieldBaseProps & {
|
|
62
|
+
multiple?: false;
|
|
63
|
+
value?: string;
|
|
64
|
+
defaultValue?: string;
|
|
65
|
+
onValueChange?: (value: string) => void;
|
|
66
|
+
};
|
|
67
|
+
type MultiSelectFieldProps = SelectFieldBaseProps & {
|
|
68
|
+
multiple: true;
|
|
69
|
+
value?: string[];
|
|
70
|
+
defaultValue?: string[];
|
|
71
|
+
onValueChange?: (value: string[]) => void;
|
|
72
|
+
};
|
|
73
|
+
type SelectFieldProps = SingleSelectFieldProps | MultiSelectFieldProps;
|
|
74
|
+
|
|
75
|
+
type FormTheme = 'inherit' | 'primary' | 'secondary' | 'destructive' | 'warning' | 'success' | 'info' | 'slate';
|
|
76
|
+
|
|
77
|
+
type CheckedState = boolean | 'indeterminate';
|
|
78
|
+
interface CheckboxProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange' | 'value' | 'defaultValue' | 'defaultChecked'> {
|
|
79
|
+
theme?: FormTheme;
|
|
80
|
+
destructive?: boolean;
|
|
81
|
+
checked?: CheckedState;
|
|
82
|
+
defaultChecked?: CheckedState;
|
|
83
|
+
onCheckedChange?: (checked: CheckedState) => void;
|
|
84
|
+
value?: string;
|
|
85
|
+
name?: string;
|
|
86
|
+
required?: boolean;
|
|
87
|
+
/** Optional inline label rendered to the right of the checkbox and associated via htmlFor. */
|
|
88
|
+
label?: React.ReactNode;
|
|
89
|
+
/** Optional helper / validation text rendered beneath the checkbox + label row. */
|
|
90
|
+
helperText?: React.ReactNode;
|
|
91
|
+
}
|
|
92
|
+
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
|
|
93
|
+
|
|
94
|
+
interface ComboboxOption {
|
|
95
|
+
/** The value written back on selection. */
|
|
96
|
+
value: string;
|
|
97
|
+
/** What the row shows. Falls back to `value`. */
|
|
98
|
+
label?: string;
|
|
99
|
+
/** Trailing muted text — a category, a count, a unit. */
|
|
100
|
+
hint?: string;
|
|
101
|
+
/** Heading this option files under. Ungrouped options render first. */
|
|
102
|
+
group?: string;
|
|
103
|
+
}
|
|
104
|
+
interface ComboboxProps extends InputBaseProps, Omit<React.InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange' | 'list'> {
|
|
105
|
+
options: ComboboxOption[];
|
|
106
|
+
value?: string;
|
|
107
|
+
onValueChange?: (value: string) => void;
|
|
108
|
+
/**
|
|
109
|
+
* Whether a value absent from `options` is allowed. Default true — this
|
|
110
|
+
* replaces a `<datalist>`, whose whole point is that typing a new one is how
|
|
111
|
+
* the vocabulary grows.
|
|
112
|
+
*/
|
|
113
|
+
allowCustom?: boolean;
|
|
114
|
+
/** Shown when the filter matches nothing. */
|
|
115
|
+
emptyText?: string;
|
|
116
|
+
/** Cap on rows rendered at once. */
|
|
117
|
+
maxVisible?: number;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Free-text field with a suggestion list.
|
|
121
|
+
*
|
|
122
|
+
* This exists because `<datalist>` does not hold up: Chrome only reliably opens
|
|
123
|
+
* it once the user types or presses ArrowDown — a click on the field does
|
|
124
|
+
* nothing, so it reads as broken — and nothing about the popup can be styled,
|
|
125
|
+
* so it arrives as OS chrome hanging off an otherwise themed field.
|
|
126
|
+
*
|
|
127
|
+
* The panel is Select's `Surface` and Select's stylesheet, deliberately: a
|
|
128
|
+
* lookalike built from its own rules drifts the moment either is touched.
|
|
129
|
+
*/
|
|
130
|
+
declare function Combobox({ options, value, onValueChange, allowCustom, emptyText, maxVisible, onKeyDown, onFocus, onBlur, className, ...inputProps }: ComboboxProps): React.JSX.Element;
|
|
131
|
+
|
|
132
|
+
declare function DatePicker({ value: valueProp, defaultValue, onChange, label, helperText, error, disabled, sizeVariant, placeholder, min, max, required, id, className, name, }: DatePickerProps): React.JSX.Element;
|
|
133
|
+
|
|
134
|
+
declare const labelVariants: (props?: ({
|
|
135
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
136
|
+
theme?: "inherit" | "primary" | "secondary" | "info" | "success" | "warning" | "destructive" | "slate" | null | undefined;
|
|
137
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
138
|
+
|
|
139
|
+
interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement>, VariantProps<typeof labelVariants> {
|
|
140
|
+
theme?: FormTheme;
|
|
141
|
+
}
|
|
142
|
+
declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
143
|
+
|
|
144
|
+
type SurfaceProps = {
|
|
145
|
+
align?: SelectAlign;
|
|
146
|
+
children: React.ReactNode;
|
|
147
|
+
className?: string;
|
|
148
|
+
collisionPadding?: number;
|
|
149
|
+
contentRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
150
|
+
displayOpen: boolean;
|
|
151
|
+
isClosing?: boolean;
|
|
152
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLDivElement>;
|
|
153
|
+
open: boolean;
|
|
154
|
+
position?: SelectPosition;
|
|
155
|
+
side?: SelectSide;
|
|
156
|
+
sideOffset?: number;
|
|
157
|
+
triggerRef: React.MutableRefObject<HTMLElement | null>;
|
|
158
|
+
} & Omit<React.HTMLAttributes<HTMLDivElement>, 'children' | 'className' | 'onKeyDown'>;
|
|
159
|
+
declare function Surface({ align, children, className, collisionPadding, contentRef, displayOpen, isClosing, onKeyDown, open, position, side, sideOffset, triggerRef, ...props }: SurfaceProps): React.ReactPortal | null;
|
|
160
|
+
declare function Select({ open: openProp, defaultOpen, onOpenChange, value: valueProp, defaultValue, onValueChange, disabled, children, ...props }: SelectProps): React.JSX.Element;
|
|
161
|
+
/**
|
|
162
|
+
* A titled run of options — the `<optgroup>` of this select.
|
|
163
|
+
*
|
|
164
|
+
* The heading is presentational and never focusable: it names the run, it is
|
|
165
|
+
* not a thing you can pick. Labelling the group with `aria-label` rather than
|
|
166
|
+
* pointing at the heading keeps it out of the option list for a screen reader
|
|
167
|
+
* too.
|
|
168
|
+
*/
|
|
169
|
+
declare function SelectGroup({ label, children, className, ...props }: React.HTMLAttributes<HTMLDivElement> & {
|
|
170
|
+
label?: React.ReactNode;
|
|
171
|
+
}): React.JSX.Element;
|
|
172
|
+
declare function SelectValue({ children, placeholder, ...props }: React.HTMLAttributes<HTMLSpanElement> & {
|
|
173
|
+
placeholder?: React.ReactNode;
|
|
174
|
+
}): React.JSX.Element;
|
|
175
|
+
declare function SelectTrigger({ className, children, onClick, onKeyDown, type, ...props }: React.ButtonHTMLAttributes<HTMLButtonElement>): React.JSX.Element;
|
|
176
|
+
declare function SelectContent({ align, className, children, collisionPadding, onKeyDown, position, side, sideOffset, ...props }: SelectContentProps): React.JSX.Element;
|
|
177
|
+
declare function SelectItem({ className, children, disabled, onClick, onMouseMove, value, ...props }: React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
178
|
+
value: string;
|
|
179
|
+
}): React.JSX.Element;
|
|
180
|
+
declare function SelectSeparator({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
181
|
+
declare function SelectField(props: SelectFieldProps): React.JSX.Element;
|
|
182
|
+
|
|
183
|
+
export { Checkbox as C, DatePicker as D, Label as L, Select as S, Combobox as b, SelectContent as h, SelectField as j, SelectGroup as l, SelectItem as m, SelectSeparator as p, SelectTrigger as r, SelectValue as s, Surface as t };
|
|
184
|
+
export type { FormTheme as F, CheckboxProps as a, ComboboxOption as c, ComboboxProps as d, DatePickerProps as e, LabelProps as f, SelectAlign as g, SelectContentProps as i, SelectFieldProps as k, SelectPosition as n, SelectProps as o, SelectSide as q };
|