@42-central/ui-react 0.0.0 → 0.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +315 -2
- package/dist/chunk-2762HZYX.js +284 -0
- package/dist/chunk-2762HZYX.js.map +1 -0
- package/dist/chunk-2GILNBZW.js +31 -0
- package/dist/chunk-2GILNBZW.js.map +1 -0
- package/dist/chunk-2H46IXW4.js +264 -0
- package/dist/chunk-2H46IXW4.js.map +1 -0
- package/dist/chunk-2SVX3MQQ.js +78 -0
- package/dist/chunk-2SVX3MQQ.js.map +1 -0
- package/dist/chunk-3GYOIQW7.js +242 -0
- package/dist/chunk-3GYOIQW7.js.map +1 -0
- package/dist/chunk-3NZXWCGF.js +152 -0
- package/dist/chunk-3NZXWCGF.js.map +1 -0
- package/dist/chunk-44OV3PNH.js +294 -0
- package/dist/chunk-44OV3PNH.js.map +1 -0
- package/dist/chunk-5FDOOG4J.js +15 -0
- package/dist/chunk-5FDOOG4J.js.map +1 -0
- package/dist/chunk-6I4R3HR6.js +90 -0
- package/dist/chunk-6I4R3HR6.js.map +1 -0
- package/dist/chunk-6SWK4XG5.js +128 -0
- package/dist/chunk-6SWK4XG5.js.map +1 -0
- package/dist/chunk-7NZSTCJO.js +82 -0
- package/dist/chunk-7NZSTCJO.js.map +1 -0
- package/dist/chunk-7P32XCEU.js +15 -0
- package/dist/chunk-7P32XCEU.js.map +1 -0
- package/dist/chunk-AIQG7IIT.js +39 -0
- package/dist/chunk-AIQG7IIT.js.map +1 -0
- package/dist/chunk-B2LCHXUB.js +26 -0
- package/dist/chunk-B2LCHXUB.js.map +1 -0
- package/dist/chunk-BEL75C7N.js +35 -0
- package/dist/chunk-BEL75C7N.js.map +1 -0
- package/dist/chunk-BJZLQTAZ.js +3 -0
- package/dist/chunk-BJZLQTAZ.js.map +1 -0
- package/dist/chunk-BUIHQJGE.js +8 -0
- package/dist/chunk-BUIHQJGE.js.map +1 -0
- package/dist/chunk-CHTN5AHI.js +106 -0
- package/dist/chunk-CHTN5AHI.js.map +1 -0
- package/dist/chunk-CSCVTESP.js +58 -0
- package/dist/chunk-CSCVTESP.js.map +1 -0
- package/dist/chunk-EEMRRRYS.js +60 -0
- package/dist/chunk-EEMRRRYS.js.map +1 -0
- package/dist/chunk-EVVMHTCL.js +216 -0
- package/dist/chunk-EVVMHTCL.js.map +1 -0
- package/dist/chunk-FD6P6PLQ.js +153 -0
- package/dist/chunk-FD6P6PLQ.js.map +1 -0
- package/dist/chunk-FMMKEYHB.js +3 -0
- package/dist/chunk-FMMKEYHB.js.map +1 -0
- package/dist/chunk-FUWSTUDM.js +219 -0
- package/dist/chunk-FUWSTUDM.js.map +1 -0
- package/dist/chunk-G52U24GR.js +10 -0
- package/dist/chunk-G52U24GR.js.map +1 -0
- package/dist/chunk-GTKKRV5N.js +14 -0
- package/dist/chunk-GTKKRV5N.js.map +1 -0
- package/dist/chunk-HWNPXAEN.js +31 -0
- package/dist/chunk-HWNPXAEN.js.map +1 -0
- package/dist/chunk-IFWCCAQV.js +222 -0
- package/dist/chunk-IFWCCAQV.js.map +1 -0
- package/dist/chunk-IG7FBZVM.js +101 -0
- package/dist/chunk-IG7FBZVM.js.map +1 -0
- package/dist/chunk-IHYFYMHJ.js +167 -0
- package/dist/chunk-IHYFYMHJ.js.map +1 -0
- package/dist/chunk-IRXZHLUL.js +51 -0
- package/dist/chunk-IRXZHLUL.js.map +1 -0
- package/dist/chunk-IXKELBJA.js +202 -0
- package/dist/chunk-IXKELBJA.js.map +1 -0
- package/dist/chunk-J3PELDH3.js +279 -0
- package/dist/chunk-J3PELDH3.js.map +1 -0
- package/dist/chunk-JBVFWSRQ.js +21 -0
- package/dist/chunk-JBVFWSRQ.js.map +1 -0
- package/dist/chunk-MOI7B3KH.js +217 -0
- package/dist/chunk-MOI7B3KH.js.map +1 -0
- package/dist/chunk-NF5JM2YO.js +57 -0
- package/dist/chunk-NF5JM2YO.js.map +1 -0
- package/dist/chunk-NGAQITWP.js +156 -0
- package/dist/chunk-NGAQITWP.js.map +1 -0
- package/dist/chunk-NSDM3FEB.js +82 -0
- package/dist/chunk-NSDM3FEB.js.map +1 -0
- package/dist/chunk-NSOA3GMZ.js +376 -0
- package/dist/chunk-NSOA3GMZ.js.map +1 -0
- package/dist/chunk-ORTCK34Y.js +3 -0
- package/dist/chunk-ORTCK34Y.js.map +1 -0
- package/dist/chunk-P3XMBETI.js +26 -0
- package/dist/chunk-P3XMBETI.js.map +1 -0
- package/dist/chunk-P7A3BCAC.js +93 -0
- package/dist/chunk-P7A3BCAC.js.map +1 -0
- package/dist/chunk-POKDSVQT.js +223 -0
- package/dist/chunk-POKDSVQT.js.map +1 -0
- package/dist/chunk-QMW7D5GU.js +207 -0
- package/dist/chunk-QMW7D5GU.js.map +1 -0
- package/dist/chunk-QP4I37PA.js +14 -0
- package/dist/chunk-QP4I37PA.js.map +1 -0
- package/dist/chunk-R5GMMWAY.js +3 -0
- package/dist/chunk-R5GMMWAY.js.map +1 -0
- package/dist/chunk-S53FHWNG.js +30 -0
- package/dist/chunk-S53FHWNG.js.map +1 -0
- package/dist/chunk-SIG4DMNZ.js +238 -0
- package/dist/chunk-SIG4DMNZ.js.map +1 -0
- package/dist/chunk-SKPM2FRX.js +44 -0
- package/dist/chunk-SKPM2FRX.js.map +1 -0
- package/dist/chunk-TCWYBVIL.js +33 -0
- package/dist/chunk-TCWYBVIL.js.map +1 -0
- package/dist/chunk-TNNH3FVQ.js +155 -0
- package/dist/chunk-TNNH3FVQ.js.map +1 -0
- package/dist/chunk-TWGCWKRV.js +44 -0
- package/dist/chunk-TWGCWKRV.js.map +1 -0
- package/dist/chunk-U5GW5EBR.js +150 -0
- package/dist/chunk-U5GW5EBR.js.map +1 -0
- package/dist/chunk-UNSAA7YG.js +148 -0
- package/dist/chunk-UNSAA7YG.js.map +1 -0
- package/dist/chunk-UVYTJQTJ.js +14 -0
- package/dist/chunk-UVYTJQTJ.js.map +1 -0
- package/dist/chunk-VLUKI3HL.js +120 -0
- package/dist/chunk-VLUKI3HL.js.map +1 -0
- package/dist/chunk-VZ2TPU4B.js +348 -0
- package/dist/chunk-VZ2TPU4B.js.map +1 -0
- package/dist/chunk-VZH6TS7M.js +153 -0
- package/dist/chunk-VZH6TS7M.js.map +1 -0
- package/dist/chunk-WYCMIIRR.js +12 -0
- package/dist/chunk-WYCMIIRR.js.map +1 -0
- package/dist/chunk-WZB6LPQI.js +47 -0
- package/dist/chunk-WZB6LPQI.js.map +1 -0
- package/dist/chunk-YBJB7FGE.js +187 -0
- package/dist/chunk-YBJB7FGE.js.map +1 -0
- package/dist/chunk-YIQI2CF3.js +92 -0
- package/dist/chunk-YIQI2CF3.js.map +1 -0
- package/dist/chunk-YKUCSV34.js +72 -0
- package/dist/chunk-YKUCSV34.js.map +1 -0
- package/dist/chunk-YON5Y336.js +639 -0
- package/dist/chunk-YON5Y336.js.map +1 -0
- package/dist/chunk-ZP6EBROY.js +3 -0
- package/dist/chunk-ZP6EBROY.js.map +1 -0
- package/dist/colors.css +296 -0
- package/dist/components/accordion/accordion-data.d.ts +52 -0
- package/dist/components/accordion/accordion-data.d.ts.map +1 -0
- package/dist/components/accordion/accordion.d.ts +116 -0
- package/dist/components/accordion/accordion.d.ts.map +1 -0
- package/dist/components/accordion/index.d.ts +3 -0
- package/dist/components/accordion/index.d.ts.map +1 -0
- package/dist/components/accordion/index.js +206 -0
- package/dist/components/accordion/index.js.map +1 -0
- package/dist/components/action-icon/action-icon.d.ts +51 -0
- package/dist/components/action-icon/action-icon.d.ts.map +1 -0
- package/dist/components/action-icon/index.d.ts +2 -0
- package/dist/components/action-icon/index.d.ts.map +1 -0
- package/dist/components/action-icon/index.js +8 -0
- package/dist/components/action-icon/index.js.map +1 -0
- package/dist/components/alert/alert.d.ts +90 -0
- package/dist/components/alert/alert.d.ts.map +1 -0
- package/dist/components/alert/index.d.ts +2 -0
- package/dist/components/alert/index.d.ts.map +1 -0
- package/dist/components/alert/index.js +74 -0
- package/dist/components/alert/index.js.map +1 -0
- package/dist/components/ambient-background/ambient-background.d.ts +47 -0
- package/dist/components/ambient-background/ambient-background.d.ts.map +1 -0
- package/dist/components/ambient-background/index.d.ts +2 -0
- package/dist/components/ambient-background/index.d.ts.map +1 -0
- package/dist/components/ambient-background/index.js +35 -0
- package/dist/components/ambient-background/index.js.map +1 -0
- package/dist/components/app-shell/app-shell.d.ts +185 -0
- package/dist/components/app-shell/app-shell.d.ts.map +1 -0
- package/dist/components/app-shell/index.d.ts +2 -0
- package/dist/components/app-shell/index.d.ts.map +1 -0
- package/dist/components/app-shell/index.js +243 -0
- package/dist/components/app-shell/index.js.map +1 -0
- package/dist/components/autocomplete/autocomplete.d.ts +70 -0
- package/dist/components/autocomplete/autocomplete.d.ts.map +1 -0
- package/dist/components/autocomplete/index.d.ts +3 -0
- package/dist/components/autocomplete/index.d.ts.map +1 -0
- package/dist/components/autocomplete/index.js +149 -0
- package/dist/components/autocomplete/index.js.map +1 -0
- package/dist/components/avatar/avatar.d.ts +105 -0
- package/dist/components/avatar/avatar.d.ts.map +1 -0
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/avatar/index.d.ts.map +1 -0
- package/dist/components/avatar/index.js +211 -0
- package/dist/components/avatar/index.js.map +1 -0
- package/dist/components/badge/badge.d.ts +48 -0
- package/dist/components/badge/badge.d.ts.map +1 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/badge/index.d.ts.map +1 -0
- package/dist/components/badge/index.js +102 -0
- package/dist/components/badge/index.js.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +64 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -0
- package/dist/components/breadcrumb/index.d.ts +2 -0
- package/dist/components/breadcrumb/index.d.ts.map +1 -0
- package/dist/components/breadcrumb/index.js +203 -0
- package/dist/components/breadcrumb/index.js.map +1 -0
- package/dist/components/button/button.d.ts +72 -0
- package/dist/components/button/button.d.ts.map +1 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/button/index.js +9 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/button-group/button-group.d.ts +49 -0
- package/dist/components/button-group/button-group.d.ts.map +1 -0
- package/dist/components/button-group/index.d.ts +2 -0
- package/dist/components/button-group/index.d.ts.map +1 -0
- package/dist/components/button-group/index.js +5 -0
- package/dist/components/button-group/index.js.map +1 -0
- package/dist/components/button-multi-select/button-multi-select.d.ts +39 -0
- package/dist/components/button-multi-select/button-multi-select.d.ts.map +1 -0
- package/dist/components/button-multi-select/index.d.ts +5 -0
- package/dist/components/button-multi-select/index.d.ts.map +1 -0
- package/dist/components/button-multi-select/index.js +45 -0
- package/dist/components/button-multi-select/index.js.map +1 -0
- package/dist/components/button-select/button-select-control.d.ts +56 -0
- package/dist/components/button-select/button-select-control.d.ts.map +1 -0
- package/dist/components/button-select/button-select-data.d.ts +53 -0
- package/dist/components/button-select/button-select-data.d.ts.map +1 -0
- package/dist/components/button-select/button-select-items.d.ts +72 -0
- package/dist/components/button-select/button-select-items.d.ts.map +1 -0
- package/dist/components/button-select/button-select.d.ts +98 -0
- package/dist/components/button-select/button-select.d.ts.map +1 -0
- package/dist/components/button-select/index.d.ts +5 -0
- package/dist/components/button-select/index.d.ts.map +1 -0
- package/dist/components/button-select/index.js +45 -0
- package/dist/components/button-select/index.js.map +1 -0
- package/dist/components/calendar/calendar-body.d.ts +48 -0
- package/dist/components/calendar/calendar-body.d.ts.map +1 -0
- package/dist/components/calendar/calendar.d.ts +88 -0
- package/dist/components/calendar/calendar.d.ts.map +1 -0
- package/dist/components/calendar/index.d.ts +4 -0
- package/dist/components/calendar/index.d.ts.map +1 -0
- package/dist/components/calendar/index.js +11 -0
- package/dist/components/calendar/index.js.map +1 -0
- package/dist/components/card/card.d.ts +69 -0
- package/dist/components/card/card.d.ts.map +1 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/card/index.d.ts.map +1 -0
- package/dist/components/card/index.js +6 -0
- package/dist/components/card/index.js.map +1 -0
- package/dist/components/chart/chart.d.ts +103 -0
- package/dist/components/chart/chart.d.ts.map +1 -0
- package/dist/components/chart/index.d.ts +2 -0
- package/dist/components/chart/index.d.ts.map +1 -0
- package/dist/components/chart/index.js +70 -0
- package/dist/components/chart/index.js.map +1 -0
- package/dist/components/chart/styles.css +50 -0
- package/dist/components/checkbox/checkbox.d.ts +74 -0
- package/dist/components/checkbox/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox/control.d.ts +28 -0
- package/dist/components/checkbox/control.d.ts.map +1 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/checkbox/index.js +10 -0
- package/dist/components/checkbox/index.js.map +1 -0
- package/dist/components/choice-card-group/choice-card-group.d.ts +148 -0
- package/dist/components/choice-card-group/choice-card-group.d.ts.map +1 -0
- package/dist/components/choice-card-group/index.d.ts +2 -0
- package/dist/components/choice-card-group/index.d.ts.map +1 -0
- package/dist/components/choice-card-group/index.js +280 -0
- package/dist/components/choice-card-group/index.js.map +1 -0
- package/dist/components/circular-progress/circular-progress.d.ts +49 -0
- package/dist/components/circular-progress/circular-progress.d.ts.map +1 -0
- package/dist/components/circular-progress/index.d.ts +2 -0
- package/dist/components/circular-progress/index.d.ts.map +1 -0
- package/dist/components/circular-progress/index.js +133 -0
- package/dist/components/circular-progress/index.js.map +1 -0
- package/dist/components/clipboard/clipboard.d.ts +95 -0
- package/dist/components/clipboard/clipboard.d.ts.map +1 -0
- package/dist/components/clipboard/copy.d.ts +67 -0
- package/dist/components/clipboard/copy.d.ts.map +1 -0
- package/dist/components/clipboard/index.d.ts +3 -0
- package/dist/components/clipboard/index.d.ts.map +1 -0
- package/dist/components/clipboard/index.js +86 -0
- package/dist/components/clipboard/index.js.map +1 -0
- package/dist/components/code/code.d.ts +37 -0
- package/dist/components/code/code.d.ts.map +1 -0
- package/dist/components/code/index.d.ts +2 -0
- package/dist/components/code/index.d.ts.map +1 -0
- package/dist/components/code/index.js +28 -0
- package/dist/components/code/index.js.map +1 -0
- package/dist/components/code-block/chrome.d.ts +77 -0
- package/dist/components/code-block/chrome.d.ts.map +1 -0
- package/dist/components/code-block/chrome.js +15 -0
- package/dist/components/code-block/chrome.js.map +1 -0
- package/dist/components/code-block/code-block.d.ts +99 -0
- package/dist/components/code-block/code-block.d.ts.map +1 -0
- package/dist/components/code-block/diff.d.ts +79 -0
- package/dist/components/code-block/diff.d.ts.map +1 -0
- package/dist/components/code-block/diff.js +23 -0
- package/dist/components/code-block/diff.js.map +1 -0
- package/dist/components/code-block/gutters.d.ts +100 -0
- package/dist/components/code-block/gutters.d.ts.map +1 -0
- package/dist/components/code-block/highlighter.d.ts +84 -0
- package/dist/components/code-block/highlighter.d.ts.map +1 -0
- package/dist/components/code-block/index.d.ts +23 -0
- package/dist/components/code-block/index.d.ts.map +1 -0
- package/dist/components/code-block/index.js +463 -0
- package/dist/components/code-block/index.js.map +1 -0
- package/dist/components/code-block/notation.d.ts +126 -0
- package/dist/components/code-block/notation.d.ts.map +1 -0
- package/dist/components/code-block/presets.d.ts +23 -0
- package/dist/components/code-block/presets.d.ts.map +1 -0
- package/dist/components/code-block/static.d.ts +65 -0
- package/dist/components/code-block/static.d.ts.map +1 -0
- package/dist/components/code-block/static.js +380 -0
- package/dist/components/code-block/static.js.map +1 -0
- package/dist/components/code-block/styles.css +198 -0
- package/dist/components/collapse/collapse.d.ts +50 -0
- package/dist/components/collapse/collapse.d.ts.map +1 -0
- package/dist/components/collapse/index.d.ts +2 -0
- package/dist/components/collapse/index.d.ts.map +1 -0
- package/dist/components/collapse/index.js +5 -0
- package/dist/components/collapse/index.js.map +1 -0
- package/dist/components/combobox/combobox.d.ts +78 -0
- package/dist/components/combobox/combobox.d.ts.map +1 -0
- package/dist/components/combobox/index.d.ts +3 -0
- package/dist/components/combobox/index.d.ts.map +1 -0
- package/dist/components/combobox/index.js +15 -0
- package/dist/components/combobox/index.js.map +1 -0
- package/dist/components/combobox-list/combobox-list.d.ts +77 -0
- package/dist/components/combobox-list/combobox-list.d.ts.map +1 -0
- package/dist/components/combobox-list/index.d.ts +2 -0
- package/dist/components/combobox-list/index.d.ts.map +1 -0
- package/dist/components/combobox-list/index.js +16 -0
- package/dist/components/combobox-list/index.js.map +1 -0
- package/dist/components/container/container.d.ts +18 -0
- package/dist/components/container/container.d.ts.map +1 -0
- package/dist/components/container/index.d.ts +2 -0
- package/dist/components/container/index.d.ts.map +1 -0
- package/dist/components/container/index.js +40 -0
- package/dist/components/container/index.js.map +1 -0
- package/dist/components/data-table/data-table-features.d.ts +80 -0
- package/dist/components/data-table/data-table-features.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-date-filter.d.ts +53 -0
- package/dist/components/data-table/data-table-filter/data-table-date-filter.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-filter-fns.d.ts +18 -0
- package/dist/components/data-table/data-table-filter/data-table-filter-fns.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-number-filter.d.ts +7 -0
- package/dist/components/data-table/data-table-filter/data-table-number-filter.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-select-filter.d.ts +15 -0
- package/dist/components/data-table/data-table-filter/data-table-select-filter.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-text-filter.d.ts +7 -0
- package/dist/components/data-table/data-table-filter/data-table-text-filter.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/index.d.ts +15 -0
- package/dist/components/data-table/data-table-filter/index.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/utils.d.ts +52 -0
- package/dist/components/data-table/data-table-filter/utils.d.ts.map +1 -0
- package/dist/components/data-table/data-table-header-cell.d.ts +65 -0
- package/dist/components/data-table/data-table-header-cell.d.ts.map +1 -0
- package/dist/components/data-table/data-table-meta.d.ts +103 -0
- package/dist/components/data-table/data-table-meta.d.ts.map +1 -0
- package/dist/components/data-table/data-table-pagination.d.ts +56 -0
- package/dist/components/data-table/data-table-pagination.d.ts.map +1 -0
- package/dist/components/data-table/data-table-placeholder.d.ts +18 -0
- package/dist/components/data-table/data-table-placeholder.d.ts.map +1 -0
- package/dist/components/data-table/data-table-schema.d.ts +45 -0
- package/dist/components/data-table/data-table-schema.d.ts.map +1 -0
- package/dist/components/data-table/data-table-skeleton.d.ts +10 -0
- package/dist/components/data-table/data-table-skeleton.d.ts.map +1 -0
- package/dist/components/data-table/data-table-stack.d.ts +48 -0
- package/dist/components/data-table/data-table-stack.d.ts.map +1 -0
- package/dist/components/data-table/data-table-state.d.ts +10 -0
- package/dist/components/data-table/data-table-state.d.ts.map +1 -0
- package/dist/components/data-table/data-table-toolbar.d.ts +21 -0
- package/dist/components/data-table/data-table-toolbar.d.ts.map +1 -0
- package/dist/components/data-table/data-table.d.ts +194 -0
- package/dist/components/data-table/data-table.d.ts.map +1 -0
- package/dist/components/data-table/index.d.ts +14 -0
- package/dist/components/data-table/index.d.ts.map +1 -0
- package/dist/components/data-table/index.js +1603 -0
- package/dist/components/data-table/index.js.map +1 -0
- package/dist/components/date-picker/aliases.d.ts +11 -0
- package/dist/components/date-picker/aliases.d.ts.map +1 -0
- package/dist/components/date-picker/date-picker.d.ts +204 -0
- package/dist/components/date-picker/date-picker.d.ts.map +1 -0
- package/dist/components/date-picker/date-time-text.d.ts +32 -0
- package/dist/components/date-picker/date-time-text.d.ts.map +1 -0
- package/dist/components/date-picker/index.d.ts +7 -0
- package/dist/components/date-picker/index.d.ts.map +1 -0
- package/dist/components/date-picker/index.js +48 -0
- package/dist/components/date-picker/index.js.map +1 -0
- package/dist/components/divider/divider.d.ts +79 -0
- package/dist/components/divider/divider.d.ts.map +1 -0
- package/dist/components/divider/index.d.ts +2 -0
- package/dist/components/divider/index.d.ts.map +1 -0
- package/dist/components/divider/index.js +5 -0
- package/dist/components/divider/index.js.map +1 -0
- package/dist/components/drawer/drawer.d.ts +103 -0
- package/dist/components/drawer/drawer.d.ts.map +1 -0
- package/dist/components/drawer/index.d.ts +2 -0
- package/dist/components/drawer/index.d.ts.map +1 -0
- package/dist/components/drawer/index.js +13 -0
- package/dist/components/drawer/index.js.map +1 -0
- package/dist/components/field/field.d.ts +79 -0
- package/dist/components/field/field.d.ts.map +1 -0
- package/dist/components/field/index.d.ts +2 -0
- package/dist/components/field/index.d.ts.map +1 -0
- package/dist/components/field/index.js +6 -0
- package/dist/components/field/index.js.map +1 -0
- package/dist/components/file-upload/file-upload.d.ts +68 -0
- package/dist/components/file-upload/file-upload.d.ts.map +1 -0
- package/dist/components/file-upload/index.d.ts +2 -0
- package/dist/components/file-upload/index.d.ts.map +1 -0
- package/dist/components/file-upload/index.js +189 -0
- package/dist/components/file-upload/index.js.map +1 -0
- package/dist/components/flex/flex.d.ts +25 -0
- package/dist/components/flex/flex.d.ts.map +1 -0
- package/dist/components/flex/index.d.ts +2 -0
- package/dist/components/flex/index.d.ts.map +1 -0
- package/dist/components/flex/index.js +5 -0
- package/dist/components/flex/index.js.map +1 -0
- package/dist/components/grid/grid.d.ts +21 -0
- package/dist/components/grid/grid.d.ts.map +1 -0
- package/dist/components/grid/index.d.ts +2 -0
- package/dist/components/grid/index.d.ts.map +1 -0
- package/dist/components/grid/index.js +44 -0
- package/dist/components/grid/index.js.map +1 -0
- package/dist/components/hover-card/hover-card.d.ts +122 -0
- package/dist/components/hover-card/hover-card.d.ts.map +1 -0
- package/dist/components/hover-card/index.d.ts +2 -0
- package/dist/components/hover-card/index.d.ts.map +1 -0
- package/dist/components/hover-card/index.js +157 -0
- package/dist/components/hover-card/index.js.map +1 -0
- package/dist/components/indicator/index.d.ts +2 -0
- package/dist/components/indicator/index.d.ts.map +1 -0
- package/dist/components/indicator/index.js +152 -0
- package/dist/components/indicator/index.js.map +1 -0
- package/dist/components/indicator/indicator.d.ts +69 -0
- package/dist/components/indicator/indicator.d.ts.map +1 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/input/index.js +7 -0
- package/dist/components/input/index.js.map +1 -0
- package/dist/components/input/input.d.ts +116 -0
- package/dist/components/input/input.d.ts.map +1 -0
- package/dist/components/kbd/index.d.ts +2 -0
- package/dist/components/kbd/index.d.ts.map +1 -0
- package/dist/components/kbd/index.js +65 -0
- package/dist/components/kbd/index.js.map +1 -0
- package/dist/components/kbd/kbd.d.ts +43 -0
- package/dist/components/kbd/kbd.d.ts.map +1 -0
- package/dist/components/mark/index.d.ts +2 -0
- package/dist/components/mark/index.d.ts.map +1 -0
- package/dist/components/mark/index.js +5 -0
- package/dist/components/mark/index.js.map +1 -0
- package/dist/components/mark/mark.d.ts +50 -0
- package/dist/components/mark/mark.d.ts.map +1 -0
- package/dist/components/menu/index.d.ts +3 -0
- package/dist/components/menu/index.d.ts.map +1 -0
- package/dist/components/menu/index.js +88 -0
- package/dist/components/menu/index.js.map +1 -0
- package/dist/components/menu/menu-data.d.ts +119 -0
- package/dist/components/menu/menu-data.d.ts.map +1 -0
- package/dist/components/menu/menu.d.ts +123 -0
- package/dist/components/menu/menu.d.ts.map +1 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/index.d.ts.map +1 -0
- package/dist/components/modal/index.js +12 -0
- package/dist/components/modal/index.js.map +1 -0
- package/dist/components/modal/modal.d.ts +100 -0
- package/dist/components/modal/modal.d.ts.map +1 -0
- package/dist/components/multi-combobox-list/index.d.ts +2 -0
- package/dist/components/multi-combobox-list/index.d.ts.map +1 -0
- package/dist/components/multi-combobox-list/index.js +16 -0
- package/dist/components/multi-combobox-list/index.js.map +1 -0
- package/dist/components/multi-combobox-list/multi-combobox-list.d.ts +83 -0
- package/dist/components/multi-combobox-list/multi-combobox-list.d.ts.map +1 -0
- package/dist/components/multi-select/index.d.ts +3 -0
- package/dist/components/multi-select/index.d.ts.map +1 -0
- package/dist/components/multi-select/index.js +203 -0
- package/dist/components/multi-select/index.js.map +1 -0
- package/dist/components/multi-select/multi-select.d.ts +83 -0
- package/dist/components/multi-select/multi-select.d.ts.map +1 -0
- package/dist/components/nav-link/index.d.ts +3 -0
- package/dist/components/nav-link/index.d.ts.map +1 -0
- package/dist/components/nav-link/index.js +11 -0
- package/dist/components/nav-link/index.js.map +1 -0
- package/dist/components/nav-link/nav-link.d.ts +40 -0
- package/dist/components/nav-link/nav-link.d.ts.map +1 -0
- package/dist/components/nav-link/navigation.d.ts +45 -0
- package/dist/components/nav-link/navigation.d.ts.map +1 -0
- package/dist/components/nav-link/tanstack.d.ts +38 -0
- package/dist/components/nav-link/tanstack.d.ts.map +1 -0
- package/dist/components/nav-link/tanstack.js +21 -0
- package/dist/components/nav-link/tanstack.js.map +1 -0
- package/dist/components/notification/create-notifier.d.ts +117 -0
- package/dist/components/notification/create-notifier.d.ts.map +1 -0
- package/dist/components/notification/index.d.ts +5 -0
- package/dist/components/notification/index.d.ts.map +1 -0
- package/dist/components/notification/index.js +388 -0
- package/dist/components/notification/index.js.map +1 -0
- package/dist/components/notification/notification.d.ts +124 -0
- package/dist/components/notification/notification.d.ts.map +1 -0
- package/dist/components/notification/store.d.ts +42 -0
- package/dist/components/notification/store.d.ts.map +1 -0
- package/dist/components/notification/types.d.ts +62 -0
- package/dist/components/notification/types.d.ts.map +1 -0
- package/dist/components/number-input/index.d.ts +2 -0
- package/dist/components/number-input/index.d.ts.map +1 -0
- package/dist/components/number-input/index.js +16 -0
- package/dist/components/number-input/index.js.map +1 -0
- package/dist/components/number-input/number-input.d.ts +105 -0
- package/dist/components/number-input/number-input.d.ts.map +1 -0
- package/dist/components/overlays/create-overlays.d.ts +77 -0
- package/dist/components/overlays/create-overlays.d.ts.map +1 -0
- package/dist/components/overlays/index.d.ts +4 -0
- package/dist/components/overlays/index.d.ts.map +1 -0
- package/dist/components/overlays/index.js +332 -0
- package/dist/components/overlays/index.js.map +1 -0
- package/dist/components/overlays/renderer.d.ts +30 -0
- package/dist/components/overlays/renderer.d.ts.map +1 -0
- package/dist/components/overlays/store.d.ts +33 -0
- package/dist/components/overlays/store.d.ts.map +1 -0
- package/dist/components/overlays/types.d.ts +119 -0
- package/dist/components/overlays/types.d.ts.map +1 -0
- package/dist/components/password-input/index.d.ts +2 -0
- package/dist/components/password-input/index.d.ts.map +1 -0
- package/dist/components/password-input/index.js +125 -0
- package/dist/components/password-input/index.js.map +1 -0
- package/dist/components/password-input/password-input.d.ts +65 -0
- package/dist/components/password-input/password-input.d.ts.map +1 -0
- package/dist/components/pill/index.d.ts +2 -0
- package/dist/components/pill/index.d.ts.map +1 -0
- package/dist/components/pill/index.js +8 -0
- package/dist/components/pill/index.js.map +1 -0
- package/dist/components/pill/pill.d.ts +69 -0
- package/dist/components/pill/pill.d.ts.map +1 -0
- package/dist/components/pills-input/index.d.ts +2 -0
- package/dist/components/pills-input/index.d.ts.map +1 -0
- package/dist/components/pills-input/index.js +10 -0
- package/dist/components/pills-input/index.js.map +1 -0
- package/dist/components/pills-input/pills-input.d.ts +146 -0
- package/dist/components/pills-input/pills-input.d.ts.map +1 -0
- package/dist/components/pin-input/index.d.ts +2 -0
- package/dist/components/pin-input/index.d.ts.map +1 -0
- package/dist/components/pin-input/index.js +107 -0
- package/dist/components/pin-input/index.js.map +1 -0
- package/dist/components/pin-input/pin-input.d.ts +80 -0
- package/dist/components/pin-input/pin-input.d.ts.map +1 -0
- package/dist/components/popover/icons.d.ts +24 -0
- package/dist/components/popover/icons.d.ts.map +1 -0
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/popover/index.d.ts.map +1 -0
- package/dist/components/popover/index.js +10 -0
- package/dist/components/popover/index.js.map +1 -0
- package/dist/components/popover/popover.d.ts +190 -0
- package/dist/components/popover/popover.d.ts.map +1 -0
- package/dist/components/progress/index.d.ts +2 -0
- package/dist/components/progress/index.d.ts.map +1 -0
- package/dist/components/progress/index.js +111 -0
- package/dist/components/progress/index.js.map +1 -0
- package/dist/components/progress/progress.d.ts +47 -0
- package/dist/components/progress/progress.d.ts.map +1 -0
- package/dist/components/radio-group/index.d.ts +2 -0
- package/dist/components/radio-group/index.d.ts.map +1 -0
- package/dist/components/radio-group/index.js +104 -0
- package/dist/components/radio-group/index.js.map +1 -0
- package/dist/components/radio-group/radio-group.d.ts +86 -0
- package/dist/components/radio-group/radio-group.d.ts.map +1 -0
- package/dist/components/rating/icons.d.ts +19 -0
- package/dist/components/rating/icons.d.ts.map +1 -0
- package/dist/components/rating/index.d.ts +2 -0
- package/dist/components/rating/index.d.ts.map +1 -0
- package/dist/components/rating/index.js +194 -0
- package/dist/components/rating/index.js.map +1 -0
- package/dist/components/rating/rating.d.ts +119 -0
- package/dist/components/rating/rating.d.ts.map +1 -0
- package/dist/components/schedule/index.d.ts +98 -0
- package/dist/components/schedule/index.d.ts.map +1 -0
- package/dist/components/schedule/index.js +6656 -0
- package/dist/components/schedule/index.js.map +1 -0
- package/dist/components/schedule/now-cursor-line.d.ts +97 -0
- package/dist/components/schedule/now-cursor-line.d.ts.map +1 -0
- package/dist/components/schedule/schedule-agenda-list.d.ts +55 -0
- package/dist/components/schedule/schedule-agenda-list.d.ts.map +1 -0
- package/dist/components/schedule/schedule-agenda-view.d.ts +48 -0
- package/dist/components/schedule/schedule-agenda-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-all-day-row.d.ts +100 -0
- package/dist/components/schedule/schedule-all-day-row.d.ts.map +1 -0
- package/dist/components/schedule/schedule-create-draft.d.ts +30 -0
- package/dist/components/schedule/schedule-create-draft.d.ts.map +1 -0
- package/dist/components/schedule/schedule-dates.d.ts +359 -0
- package/dist/components/schedule/schedule-dates.d.ts.map +1 -0
- package/dist/components/schedule/schedule-day-view.d.ts +24 -0
- package/dist/components/schedule/schedule-day-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-days-view.d.ts +60 -0
- package/dist/components/schedule/schedule-days-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-disabled-overlay.d.ts +34 -0
- package/dist/components/schedule/schedule-disabled-overlay.d.ts.map +1 -0
- package/dist/components/schedule/schedule-drag-ghost.d.ts +31 -0
- package/dist/components/schedule/schedule-drag-ghost.d.ts.map +1 -0
- package/dist/components/schedule/schedule-event-chip.d.ts +101 -0
- package/dist/components/schedule/schedule-event-chip.d.ts.map +1 -0
- package/dist/components/schedule/schedule-event-details.d.ts +37 -0
- package/dist/components/schedule/schedule-event-details.d.ts.map +1 -0
- package/dist/components/schedule/schedule-event-list-popover-content.d.ts +41 -0
- package/dist/components/schedule/schedule-event-list-popover-content.d.ts.map +1 -0
- package/dist/components/schedule/schedule-event-styles.d.ts +58 -0
- package/dist/components/schedule/schedule-event-styles.d.ts.map +1 -0
- package/dist/components/schedule/schedule-geometry.d.ts +307 -0
- package/dist/components/schedule/schedule-geometry.d.ts.map +1 -0
- package/dist/components/schedule/schedule-grid-gesture.d.ts +311 -0
- package/dist/components/schedule/schedule-grid-gesture.d.ts.map +1 -0
- package/dist/components/schedule/schedule-layout.d.ts +83 -0
- package/dist/components/schedule/schedule-layout.d.ts.map +1 -0
- package/dist/components/schedule/schedule-month-view.d.ts +44 -0
- package/dist/components/schedule/schedule-month-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-next-up-grouping.d.ts +37 -0
- package/dist/components/schedule/schedule-next-up-grouping.d.ts.map +1 -0
- package/dist/components/schedule/schedule-next-up.d.ts +79 -0
- package/dist/components/schedule/schedule-next-up.d.ts.map +1 -0
- package/dist/components/schedule/schedule-overflow-chip.d.ts +45 -0
- package/dist/components/schedule/schedule-overflow-chip.d.ts.map +1 -0
- package/dist/components/schedule/schedule-overflow-popover.d.ts +57 -0
- package/dist/components/schedule/schedule-overflow-popover.d.ts.map +1 -0
- package/dist/components/schedule/schedule-segments.d.ts +89 -0
- package/dist/components/schedule/schedule-segments.d.ts.map +1 -0
- package/dist/components/schedule/schedule-snap.d.ts +204 -0
- package/dist/components/schedule/schedule-snap.d.ts.map +1 -0
- package/dist/components/schedule/schedule-timed-grid.d.ts +78 -0
- package/dist/components/schedule/schedule-timed-grid.d.ts.map +1 -0
- package/dist/components/schedule/schedule-toolbar.d.ts +107 -0
- package/dist/components/schedule/schedule-toolbar.d.ts.map +1 -0
- package/dist/components/schedule/schedule-types.d.ts +844 -0
- package/dist/components/schedule/schedule-types.d.ts.map +1 -0
- package/dist/components/schedule/schedule-views.d.ts +197 -0
- package/dist/components/schedule/schedule-views.d.ts.map +1 -0
- package/dist/components/schedule/schedule-week-view.d.ts +19 -0
- package/dist/components/schedule/schedule-week-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-year-view.d.ts +38 -0
- package/dist/components/schedule/schedule-year-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule.d.ts +163 -0
- package/dist/components/schedule/schedule.d.ts.map +1 -0
- package/dist/components/schedule/use-event-create.d.ts +54 -0
- package/dist/components/schedule/use-event-create.d.ts.map +1 -0
- package/dist/components/schedule/use-event-drag.d.ts +95 -0
- package/dist/components/schedule/use-event-drag.d.ts.map +1 -0
- package/dist/components/schedule/use-event-resize.d.ts +63 -0
- package/dist/components/schedule/use-event-resize.d.ts.map +1 -0
- package/dist/components/schedule/use-schedule-selection.d.ts +74 -0
- package/dist/components/schedule/use-schedule-selection.d.ts.map +1 -0
- package/dist/components/schedule/use-schedule.d.ts +78 -0
- package/dist/components/schedule/use-schedule.d.ts.map +1 -0
- package/dist/components/segment-group/index.d.ts +2 -0
- package/dist/components/segment-group/index.d.ts.map +1 -0
- package/dist/components/segment-group/index.js +10 -0
- package/dist/components/segment-group/index.js.map +1 -0
- package/dist/components/segment-group/segment-group.d.ts +187 -0
- package/dist/components/segment-group/segment-group.d.ts.map +1 -0
- package/dist/components/select/index.d.ts +3 -0
- package/dist/components/select/index.d.ts.map +1 -0
- package/dist/components/select/index.js +17 -0
- package/dist/components/select/index.js.map +1 -0
- package/dist/components/select/select.d.ts +83 -0
- package/dist/components/select/select.d.ts.map +1 -0
- package/dist/components/skeleton/index.d.ts +2 -0
- package/dist/components/skeleton/index.d.ts.map +1 -0
- package/dist/components/skeleton/index.js +5 -0
- package/dist/components/skeleton/index.js.map +1 -0
- package/dist/components/skeleton/skeleton.d.ts +83 -0
- package/dist/components/skeleton/skeleton.d.ts.map +1 -0
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/slider/index.d.ts.map +1 -0
- package/dist/components/slider/index.js +258 -0
- package/dist/components/slider/index.js.map +1 -0
- package/dist/components/slider/slider.d.ts +90 -0
- package/dist/components/slider/slider.d.ts.map +1 -0
- package/dist/components/slider/sliderThumb.d.ts +1 -0
- package/dist/components/slider/sliderThumb.d.ts.map +1 -0
- package/dist/components/spinner/index.d.ts +2 -0
- package/dist/components/spinner/index.d.ts.map +1 -0
- package/dist/components/spinner/index.js +5 -0
- package/dist/components/spinner/index.js.map +1 -0
- package/dist/components/spinner/spinner.d.ts +61 -0
- package/dist/components/spinner/spinner.d.ts.map +1 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/switch/index.d.ts.map +1 -0
- package/dist/components/switch/index.js +140 -0
- package/dist/components/switch/index.js.map +1 -0
- package/dist/components/switch/switch.d.ts +48 -0
- package/dist/components/switch/switch.d.ts.map +1 -0
- package/dist/components/table/index.d.ts +2 -0
- package/dist/components/table/index.d.ts.map +1 -0
- package/dist/components/table/index.js +5 -0
- package/dist/components/table/index.js.map +1 -0
- package/dist/components/table/table.d.ts +113 -0
- package/dist/components/table/table.d.ts.map +1 -0
- package/dist/components/tabs/index.d.ts +3 -0
- package/dist/components/tabs/index.d.ts.map +1 -0
- package/dist/components/tabs/index.js +8 -0
- package/dist/components/tabs/index.js.map +1 -0
- package/dist/components/tabs/tabs-data.d.ts +67 -0
- package/dist/components/tabs/tabs-data.d.ts.map +1 -0
- package/dist/components/tabs/tabs.d.ts +96 -0
- package/dist/components/tabs/tabs.d.ts.map +1 -0
- package/dist/components/tags-input/index.d.ts +2 -0
- package/dist/components/tags-input/index.d.ts.map +1 -0
- package/dist/components/tags-input/index.js +203 -0
- package/dist/components/tags-input/index.js.map +1 -0
- package/dist/components/tags-input/tags-input.d.ts +68 -0
- package/dist/components/tags-input/tags-input.d.ts.map +1 -0
- package/dist/components/text/index.d.ts +2 -0
- package/dist/components/text/index.d.ts.map +1 -0
- package/dist/components/text/index.js +6 -0
- package/dist/components/text/index.js.map +1 -0
- package/dist/components/text/text.d.ts +50 -0
- package/dist/components/text/text.d.ts.map +1 -0
- package/dist/components/text-input/index.d.ts +2 -0
- package/dist/components/text-input/index.d.ts.map +1 -0
- package/dist/components/text-input/index.js +34 -0
- package/dist/components/text-input/index.js.map +1 -0
- package/dist/components/text-input/text-input.d.ts +56 -0
- package/dist/components/text-input/text-input.d.ts.map +1 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/index.d.ts.map +1 -0
- package/dist/components/textarea/index.js +116 -0
- package/dist/components/textarea/index.js.map +1 -0
- package/dist/components/textarea/textarea.d.ts +48 -0
- package/dist/components/textarea/textarea.d.ts.map +1 -0
- package/dist/components/theme-icon/index.d.ts +2 -0
- package/dist/components/theme-icon/index.d.ts.map +1 -0
- package/dist/components/theme-icon/index.js +6 -0
- package/dist/components/theme-icon/index.js.map +1 -0
- package/dist/components/theme-icon/theme-icon.d.ts +34 -0
- package/dist/components/theme-icon/theme-icon.d.ts.map +1 -0
- package/dist/components/theme-script/index.d.ts +2 -0
- package/dist/components/theme-script/index.d.ts.map +1 -0
- package/dist/components/theme-script/index.js +29 -0
- package/dist/components/theme-script/index.js.map +1 -0
- package/dist/components/theme-script/theme-script.d.ts +41 -0
- package/dist/components/theme-script/theme-script.d.ts.map +1 -0
- package/dist/components/time-input/hour-cycle.d.ts +32 -0
- package/dist/components/time-input/hour-cycle.d.ts.map +1 -0
- package/dist/components/time-input/index.d.ts +3 -0
- package/dist/components/time-input/index.d.ts.map +1 -0
- package/dist/components/time-input/index.js +125 -0
- package/dist/components/time-input/index.js.map +1 -0
- package/dist/components/time-input/time-input.d.ts +63 -0
- package/dist/components/time-input/time-input.d.ts.map +1 -0
- package/dist/components/time-input/time-row.d.ts +72 -0
- package/dist/components/time-input/time-row.d.ts.map +1 -0
- package/dist/components/timeline/index.d.ts +2 -0
- package/dist/components/timeline/index.d.ts.map +1 -0
- package/dist/components/timeline/index.js +372 -0
- package/dist/components/timeline/index.js.map +1 -0
- package/dist/components/timeline/timeline.d.ts +194 -0
- package/dist/components/timeline/timeline.d.ts.map +1 -0
- package/dist/components/title/index.d.ts +2 -0
- package/dist/components/title/index.d.ts.map +1 -0
- package/dist/components/title/index.js +6 -0
- package/dist/components/title/index.js.map +1 -0
- package/dist/components/title/title.d.ts +47 -0
- package/dist/components/title/title.d.ts.map +1 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/index.d.ts.map +1 -0
- package/dist/components/tooltip/index.js +10 -0
- package/dist/components/tooltip/index.js.map +1 -0
- package/dist/components/tooltip/tooltip.d.ts +70 -0
- package/dist/components/tooltip/tooltip.d.ts.map +1 -0
- package/dist/components/tree-multi-select/index.d.ts +3 -0
- package/dist/components/tree-multi-select/index.d.ts.map +1 -0
- package/dist/components/tree-multi-select/index.js +424 -0
- package/dist/components/tree-multi-select/index.js.map +1 -0
- package/dist/components/tree-multi-select/tree-multi-select.d.ts +72 -0
- package/dist/components/tree-multi-select/tree-multi-select.d.ts.map +1 -0
- package/dist/components/tree-select/index.d.ts +3 -0
- package/dist/components/tree-select/index.d.ts.map +1 -0
- package/dist/components/tree-select/index.js +425 -0
- package/dist/components/tree-select/index.js.map +1 -0
- package/dist/components/tree-select/tree-select.d.ts +68 -0
- package/dist/components/tree-select/tree-select.d.ts.map +1 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +269 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/align.d.ts +7 -0
- package/dist/lib/align.d.ts.map +1 -0
- package/dist/lib/available-if.d.ts +114 -0
- package/dist/lib/available-if.d.ts.map +1 -0
- package/dist/lib/brand.d.ts +22 -0
- package/dist/lib/brand.d.ts.map +1 -0
- package/dist/lib/cn.d.ts +14 -0
- package/dist/lib/cn.d.ts.map +1 -0
- package/dist/lib/cn.js +3 -0
- package/dist/lib/cn.js.map +1 -0
- package/dist/lib/colors.d.ts +14 -0
- package/dist/lib/colors.d.ts.map +1 -0
- package/dist/lib/control-open.d.ts +28 -0
- package/dist/lib/control-open.d.ts.map +1 -0
- package/dist/lib/date-predicates.d.ts +28 -0
- package/dist/lib/date-predicates.d.ts.map +1 -0
- package/dist/lib/date-value.d.ts +45 -0
- package/dist/lib/date-value.d.ts.map +1 -0
- package/dist/lib/dev-warn.d.ts +2 -0
- package/dist/lib/dev-warn.d.ts.map +1 -0
- package/dist/lib/focus-styles.d.ts +102 -0
- package/dist/lib/focus-styles.d.ts.map +1 -0
- package/dist/lib/form-control.d.ts +72 -0
- package/dist/lib/form-control.d.ts.map +1 -0
- package/dist/lib/gradient.d.ts +31 -0
- package/dist/lib/gradient.d.ts.map +1 -0
- package/dist/lib/intl.d.ts +77 -0
- package/dist/lib/intl.d.ts.map +1 -0
- package/dist/lib/link-component.d.ts +13 -0
- package/dist/lib/link-component.d.ts.map +1 -0
- package/dist/lib/merge-refs.d.ts +12 -0
- package/dist/lib/merge-refs.d.ts.map +1 -0
- package/dist/lib/overlay-container.d.ts +14 -0
- package/dist/lib/overlay-container.d.ts.map +1 -0
- package/dist/lib/overlay-layer.d.ts +51 -0
- package/dist/lib/overlay-layer.d.ts.map +1 -0
- package/dist/lib/placement.d.ts +16 -0
- package/dist/lib/placement.d.ts.map +1 -0
- package/dist/lib/props.d.ts +40 -0
- package/dist/lib/props.d.ts.map +1 -0
- package/dist/lib/required-if.d.ts +46 -0
- package/dist/lib/required-if.d.ts.map +1 -0
- package/dist/lib/schedule-predicates.d.ts +72 -0
- package/dist/lib/schedule-predicates.d.ts.map +1 -0
- package/dist/lib/select-data.d.ts +135 -0
- package/dist/lib/select-data.d.ts.map +1 -0
- package/dist/lib/sizes.d.ts +20 -0
- package/dist/lib/sizes.d.ts.map +1 -0
- package/dist/lib/test-id.d.ts +30 -0
- package/dist/lib/test-id.d.ts.map +1 -0
- package/dist/lib/theme-init-runtime.d.ts +26 -0
- package/dist/lib/theme-init-runtime.d.ts.map +1 -0
- package/dist/lib/theme.d.ts +93 -0
- package/dist/lib/theme.d.ts.map +1 -0
- package/dist/lib/tree-data.d.ts +99 -0
- package/dist/lib/tree-data.d.ts.map +1 -0
- package/dist/lib/typography-size.d.ts +49 -0
- package/dist/lib/typography-size.d.ts.map +1 -0
- package/dist/lib/use-container-query.d.ts +19 -0
- package/dist/lib/use-container-query.d.ts.map +1 -0
- package/dist/lib/use-disclosure.d.ts +35 -0
- package/dist/lib/use-disclosure.d.ts.map +1 -0
- package/dist/lib/use-isomorphic-layout-effect.d.ts +12 -0
- package/dist/lib/use-isomorphic-layout-effect.d.ts.map +1 -0
- package/dist/lib/use-local-storage.d.ts +45 -0
- package/dist/lib/use-local-storage.d.ts.map +1 -0
- package/dist/lib/use-logger.d.ts +2 -0
- package/dist/lib/use-logger.d.ts.map +1 -0
- package/dist/lib/use-media-query.d.ts +11 -0
- package/dist/lib/use-media-query.d.ts.map +1 -0
- package/dist/lib/use-now.d.ts +7 -0
- package/dist/lib/use-now.d.ts.map +1 -0
- package/dist/lib/use-theme.d.ts +101 -0
- package/dist/lib/use-theme.d.ts.map +1 -0
- package/dist/lib/use-uncontrolled.d.ts +45 -0
- package/dist/lib/use-uncontrolled.d.ts.map +1 -0
- package/dist/styles.css +17 -0
- package/dist/test-setup.d.ts +2 -0
- package/dist/test-setup.d.ts.map +1 -0
- package/dist/theme-init-script.d.ts +2 -0
- package/dist/theme-init-script.d.ts.map +1 -0
- package/dist/theme-init.js +2 -0
- package/dist/theme-init.js.map +1 -0
- package/dist/theme.css +1281 -0
- package/package.json +99 -3
- package/src/colors.css +296 -0
- package/src/components/accordion/accordion-data.tsx +86 -0
- package/src/components/accordion/accordion.test.tsx +234 -0
- package/src/components/accordion/accordion.tsx +336 -0
- package/src/components/accordion/index.ts +18 -0
- package/src/components/action-icon/action-icon.test.tsx +57 -0
- package/src/components/action-icon/action-icon.tsx +180 -0
- package/src/components/action-icon/index.ts +12 -0
- package/src/components/alert/alert.test.tsx +131 -0
- package/src/components/alert/alert.tsx +165 -0
- package/src/components/alert/index.ts +3 -0
- package/src/components/ambient-background/ambient-background.test.tsx +64 -0
- package/src/components/ambient-background/ambient-background.tsx +76 -0
- package/src/components/ambient-background/index.ts +1 -0
- package/src/components/app-shell/app-shell.test.tsx +271 -0
- package/src/components/app-shell/app-shell.tsx +492 -0
- package/src/components/app-shell/index.ts +17 -0
- package/src/components/autocomplete/autocomplete.test.tsx +120 -0
- package/src/components/autocomplete/autocomplete.tsx +249 -0
- package/src/components/autocomplete/index.ts +11 -0
- package/src/components/avatar/avatar.test.tsx +345 -0
- package/src/components/avatar/avatar.tsx +456 -0
- package/src/components/avatar/index.ts +12 -0
- package/src/components/badge/badge.test.tsx +51 -0
- package/src/components/badge/badge.tsx +148 -0
- package/src/components/badge/index.ts +6 -0
- package/src/components/breadcrumb/breadcrumb.test.tsx +238 -0
- package/src/components/breadcrumb/breadcrumb.tsx +348 -0
- package/src/components/breadcrumb/index.ts +9 -0
- package/src/components/button/button.test.tsx +87 -0
- package/src/components/button/button.tsx +253 -0
- package/src/components/button/index.ts +12 -0
- package/src/components/button-group/button-group.test.tsx +168 -0
- package/src/components/button-group/button-group.tsx +121 -0
- package/src/components/button-group/index.ts +1 -0
- package/src/components/button-multi-select/button-multi-select.test.tsx +146 -0
- package/src/components/button-multi-select/button-multi-select.tsx +76 -0
- package/src/components/button-multi-select/index.ts +17 -0
- package/src/components/button-select/button-select-control.tsx +153 -0
- package/src/components/button-select/button-select-data.tsx +96 -0
- package/src/components/button-select/button-select-items.ts +103 -0
- package/src/components/button-select/button-select.test.tsx +239 -0
- package/src/components/button-select/button-select.tsx +323 -0
- package/src/components/button-select/index.ts +14 -0
- package/src/components/calendar/calendar-body.tsx +410 -0
- package/src/components/calendar/calendar.test.tsx +278 -0
- package/src/components/calendar/calendar.tsx +220 -0
- package/src/components/calendar/index.ts +10 -0
- package/src/components/card/card.tsx +211 -0
- package/src/components/card/index.ts +12 -0
- package/src/components/chart/chart.test.tsx +98 -0
- package/src/components/chart/chart.tsx +192 -0
- package/src/components/chart/index.ts +8 -0
- package/src/components/chart/styles.css +50 -0
- package/src/components/checkbox/checkbox.test.tsx +113 -0
- package/src/components/checkbox/checkbox.tsx +182 -0
- package/src/components/checkbox/control.ts +76 -0
- package/src/components/checkbox/index.ts +3 -0
- package/src/components/choice-card-group/choice-card-group.test.tsx +250 -0
- package/src/components/choice-card-group/choice-card-group.tsx +549 -0
- package/src/components/choice-card-group/index.ts +9 -0
- package/src/components/circular-progress/circular-progress.test.tsx +120 -0
- package/src/components/circular-progress/circular-progress.tsx +214 -0
- package/src/components/circular-progress/index.ts +15 -0
- package/src/components/clipboard/clipboard.test.tsx +229 -0
- package/src/components/clipboard/clipboard.tsx +128 -0
- package/src/components/clipboard/copy.tsx +127 -0
- package/src/components/clipboard/index.ts +12 -0
- package/src/components/code/code.test.tsx +57 -0
- package/src/components/code/code.tsx +54 -0
- package/src/components/code/index.ts +1 -0
- package/src/components/code-block/chrome.tsx +347 -0
- package/src/components/code-block/code-block.test.tsx +252 -0
- package/src/components/code-block/code-block.tsx +254 -0
- package/src/components/code-block/diff.test.ts +177 -0
- package/src/components/code-block/diff.ts +114 -0
- package/src/components/code-block/gutters.test.ts +280 -0
- package/src/components/code-block/gutters.ts +260 -0
- package/src/components/code-block/highlighter.test.ts +261 -0
- package/src/components/code-block/highlighter.ts +290 -0
- package/src/components/code-block/index.ts +53 -0
- package/src/components/code-block/notation.test.ts +166 -0
- package/src/components/code-block/notation.ts +233 -0
- package/src/components/code-block/presets.test.ts +43 -0
- package/src/components/code-block/presets.ts +28 -0
- package/src/components/code-block/static.tsx +130 -0
- package/src/components/code-block/styles.css +198 -0
- package/src/components/collapse/collapse.test.tsx +96 -0
- package/src/components/collapse/collapse.tsx +81 -0
- package/src/components/collapse/index.ts +1 -0
- package/src/components/combobox/combobox.tsx +317 -0
- package/src/components/combobox/index.ts +15 -0
- package/src/components/combobox-list/combobox-list.test.tsx +148 -0
- package/src/components/combobox-list/combobox-list.tsx +276 -0
- package/src/components/combobox-list/index.ts +3 -0
- package/src/components/container/container.tsx +47 -0
- package/src/components/container/index.ts +1 -0
- package/src/components/data-table/data-table-features.ts +127 -0
- package/src/components/data-table/data-table-filter/data-table-date-filter.tsx +275 -0
- package/src/components/data-table/data-table-filter/data-table-filter-fns.ts +126 -0
- package/src/components/data-table/data-table-filter/data-table-number-filter.tsx +74 -0
- package/src/components/data-table/data-table-filter/data-table-select-filter.tsx +47 -0
- package/src/components/data-table/data-table-filter/data-table-text-filter.tsx +29 -0
- package/src/components/data-table/data-table-filter/index.tsx +62 -0
- package/src/components/data-table/data-table-filter/utils.ts +112 -0
- package/src/components/data-table/data-table-filter-fns.test.tsx +145 -0
- package/src/components/data-table/data-table-filter.test.tsx +365 -0
- package/src/components/data-table/data-table-header-cell.tsx +292 -0
- package/src/components/data-table/data-table-meta.ts +102 -0
- package/src/components/data-table/data-table-pagination.tsx +175 -0
- package/src/components/data-table/data-table-placeholder.tsx +61 -0
- package/src/components/data-table/data-table-schema.test.tsx +22 -0
- package/src/components/data-table/data-table-schema.ts +23 -0
- package/src/components/data-table/data-table-skeleton.ts +9 -0
- package/src/components/data-table/data-table-stack.tsx +376 -0
- package/src/components/data-table/data-table-state.ts +35 -0
- package/src/components/data-table/data-table-toolbar.tsx +81 -0
- package/src/components/data-table/data-table.test.tsx +1143 -0
- package/src/components/data-table/data-table.tsx +829 -0
- package/src/components/data-table/index.ts +46 -0
- package/src/components/date-picker/aliases.tsx +15 -0
- package/src/components/date-picker/date-picker.test.tsx +699 -0
- package/src/components/date-picker/date-picker.tsx +1000 -0
- package/src/components/date-picker/date-time-text.test.ts +68 -0
- package/src/components/date-picker/date-time-text.ts +103 -0
- package/src/components/date-picker/index.ts +32 -0
- package/src/components/divider/divider.test.tsx +106 -0
- package/src/components/divider/divider.tsx +162 -0
- package/src/components/divider/index.ts +8 -0
- package/src/components/drawer/drawer.tsx +405 -0
- package/src/components/drawer/index.ts +21 -0
- package/src/components/field/field.tsx +235 -0
- package/src/components/field/index.ts +3 -0
- package/src/components/file-upload/file-upload.test.tsx +47 -0
- package/src/components/file-upload/file-upload.tsx +280 -0
- package/src/components/file-upload/index.ts +3 -0
- package/src/components/flex/flex.tsx +81 -0
- package/src/components/flex/index.ts +1 -0
- package/src/components/grid/grid.tsx +52 -0
- package/src/components/grid/index.ts +1 -0
- package/src/components/hover-card/hover-card.test.tsx +192 -0
- package/src/components/hover-card/hover-card.tsx +376 -0
- package/src/components/hover-card/index.ts +9 -0
- package/src/components/indicator/index.ts +6 -0
- package/src/components/indicator/indicator.test.tsx +241 -0
- package/src/components/indicator/indicator.tsx +275 -0
- package/src/components/input/index.ts +12 -0
- package/src/components/input/input.test.tsx +111 -0
- package/src/components/input/input.tsx +320 -0
- package/src/components/kbd/index.ts +1 -0
- package/src/components/kbd/kbd.test.tsx +20 -0
- package/src/components/kbd/kbd.tsx +98 -0
- package/src/components/mark/index.ts +1 -0
- package/src/components/mark/mark.test.tsx +85 -0
- package/src/components/mark/mark.tsx +79 -0
- package/src/components/menu/index.ts +27 -0
- package/src/components/menu/menu-data.tsx +230 -0
- package/src/components/menu/menu.test.tsx +547 -0
- package/src/components/menu/menu.tsx +514 -0
- package/src/components/modal/index.ts +14 -0
- package/src/components/modal/modal.tsx +420 -0
- package/src/components/multi-combobox-list/index.ts +3 -0
- package/src/components/multi-combobox-list/multi-combobox-list.test.tsx +190 -0
- package/src/components/multi-combobox-list/multi-combobox-list.tsx +308 -0
- package/src/components/multi-select/index.ts +12 -0
- package/src/components/multi-select/multi-select.test.tsx +248 -0
- package/src/components/multi-select/multi-select.tsx +355 -0
- package/src/components/nav-link/index.ts +4 -0
- package/src/components/nav-link/nav-link.test.tsx +107 -0
- package/src/components/nav-link/nav-link.tsx +205 -0
- package/src/components/nav-link/navigation.test.tsx +117 -0
- package/src/components/nav-link/navigation.tsx +81 -0
- package/src/components/nav-link/tanstack.tsx +67 -0
- package/src/components/notification/create-notifier.tsx +518 -0
- package/src/components/notification/index.ts +20 -0
- package/src/components/notification/notification.test.tsx +321 -0
- package/src/components/notification/notification.tsx +353 -0
- package/src/components/notification/store.ts +159 -0
- package/src/components/notification/types.ts +67 -0
- package/src/components/number-input/index.ts +3 -0
- package/src/components/number-input/number-input.test.tsx +291 -0
- package/src/components/number-input/number-input.tsx +407 -0
- package/src/components/overlays/create-overlays.tsx +267 -0
- package/src/components/overlays/index.ts +25 -0
- package/src/components/overlays/renderer.tsx +214 -0
- package/src/components/overlays/store.ts +103 -0
- package/src/components/overlays/types.ts +150 -0
- package/src/components/password-input/index.ts +3 -0
- package/src/components/password-input/password-input.test.tsx +94 -0
- package/src/components/password-input/password-input.tsx +191 -0
- package/src/components/pill/index.ts +9 -0
- package/src/components/pill/pill.test.tsx +22 -0
- package/src/components/pill/pill.tsx +221 -0
- package/src/components/pills-input/index.ts +12 -0
- package/src/components/pills-input/pills-input.test.ts +136 -0
- package/src/components/pills-input/pills-input.tsx +422 -0
- package/src/components/pin-input/index.ts +3 -0
- package/src/components/pin-input/pin-input.test.tsx +74 -0
- package/src/components/pin-input/pin-input.tsx +186 -0
- package/src/components/popover/icons.tsx +129 -0
- package/src/components/popover/index.ts +8 -0
- package/src/components/popover/popover.test.tsx +223 -0
- package/src/components/popover/popover.tsx +635 -0
- package/src/components/progress/index.ts +18 -0
- package/src/components/progress/progress.test.tsx +112 -0
- package/src/components/progress/progress.tsx +194 -0
- package/src/components/radio-group/index.ts +9 -0
- package/src/components/radio-group/radio-group.test.tsx +107 -0
- package/src/components/radio-group/radio-group.tsx +207 -0
- package/src/components/rating/icons.tsx +35 -0
- package/src/components/rating/index.ts +9 -0
- package/src/components/rating/rating.test.tsx +288 -0
- package/src/components/rating/rating.tsx +389 -0
- package/src/components/schedule/index.ts +170 -0
- package/src/components/schedule/now-cursor-line.test.tsx +262 -0
- package/src/components/schedule/now-cursor-line.tsx +343 -0
- package/src/components/schedule/schedule-agenda-list.tsx +480 -0
- package/src/components/schedule/schedule-agenda-view.test.tsx +333 -0
- package/src/components/schedule/schedule-agenda-view.tsx +211 -0
- package/src/components/schedule/schedule-all-day-row.test.ts +187 -0
- package/src/components/schedule/schedule-all-day-row.tsx +616 -0
- package/src/components/schedule/schedule-create-draft.tsx +190 -0
- package/src/components/schedule/schedule-dates.test.ts +771 -0
- package/src/components/schedule/schedule-dates.ts +722 -0
- package/src/components/schedule/schedule-day-view.tsx +30 -0
- package/src/components/schedule/schedule-days-view.tsx +279 -0
- package/src/components/schedule/schedule-details-popover.test.tsx +765 -0
- package/src/components/schedule/schedule-disabled-overlay.tsx +51 -0
- package/src/components/schedule/schedule-drag-ghost.tsx +172 -0
- package/src/components/schedule/schedule-event-chip.tsx +1183 -0
- package/src/components/schedule/schedule-event-details.tsx +101 -0
- package/src/components/schedule/schedule-event-list-popover-content.tsx +149 -0
- package/src/components/schedule/schedule-event-styles.ts +60 -0
- package/src/components/schedule/schedule-geometry.test.ts +426 -0
- package/src/components/schedule/schedule-geometry.ts +482 -0
- package/src/components/schedule/schedule-grid-gesture.test.ts +235 -0
- package/src/components/schedule/schedule-grid-gesture.ts +606 -0
- package/src/components/schedule/schedule-layout.test.ts +260 -0
- package/src/components/schedule/schedule-layout.ts +270 -0
- package/src/components/schedule/schedule-month-view.test.tsx +193 -0
- package/src/components/schedule/schedule-month-view.tsx +690 -0
- package/src/components/schedule/schedule-next-up-grouping.test.ts +95 -0
- package/src/components/schedule/schedule-next-up-grouping.ts +69 -0
- package/src/components/schedule/schedule-next-up.test.tsx +189 -0
- package/src/components/schedule/schedule-next-up.tsx +138 -0
- package/src/components/schedule/schedule-overflow-chip.tsx +156 -0
- package/src/components/schedule/schedule-overflow-popover.tsx +173 -0
- package/src/components/schedule/schedule-segments.test.ts +201 -0
- package/src/components/schedule/schedule-segments.ts +120 -0
- package/src/components/schedule/schedule-snap.test.ts +546 -0
- package/src/components/schedule/schedule-snap.ts +380 -0
- package/src/components/schedule/schedule-timed-grid.tsx +1647 -0
- package/src/components/schedule/schedule-toolbar.tsx +270 -0
- package/src/components/schedule/schedule-type-cost.test.ts +104 -0
- package/src/components/schedule/schedule-types.test.ts +64 -0
- package/src/components/schedule/schedule-types.ts +1152 -0
- package/src/components/schedule/schedule-views.test.ts +263 -0
- package/src/components/schedule/schedule-views.ts +293 -0
- package/src/components/schedule/schedule-week-view.tsx +25 -0
- package/src/components/schedule/schedule-year-view.test.tsx +105 -0
- package/src/components/schedule/schedule-year-view.tsx +307 -0
- package/src/components/schedule/schedule.test.tsx +4386 -0
- package/src/components/schedule/schedule.tsx +1040 -0
- package/src/components/schedule/use-event-create.ts +591 -0
- package/src/components/schedule/use-event-drag.ts +510 -0
- package/src/components/schedule/use-event-resize.ts +565 -0
- package/src/components/schedule/use-schedule-selection.ts +119 -0
- package/src/components/schedule/use-schedule.test.ts +91 -0
- package/src/components/schedule/use-schedule.ts +135 -0
- package/src/components/segment-group/index.ts +15 -0
- package/src/components/segment-group/segment-group.test.tsx +172 -0
- package/src/components/segment-group/segment-group.tsx +570 -0
- package/src/components/select/index.ts +12 -0
- package/src/components/select/select.test.tsx +173 -0
- package/src/components/select/select.tsx +405 -0
- package/src/components/skeleton/index.ts +7 -0
- package/src/components/skeleton/skeleton.test.tsx +96 -0
- package/src/components/skeleton/skeleton.tsx +178 -0
- package/src/components/slider/index.ts +3 -0
- package/src/components/slider/slider.test.tsx +136 -0
- package/src/components/slider/slider.tsx +390 -0
- package/src/components/slider/sliderThumb.tsx +0 -0
- package/src/components/spinner/index.ts +6 -0
- package/src/components/spinner/spinner.tsx +136 -0
- package/src/components/switch/index.ts +3 -0
- package/src/components/switch/switch.test.tsx +98 -0
- package/src/components/switch/switch.tsx +234 -0
- package/src/components/table/index.ts +14 -0
- package/src/components/table/table.test.tsx +262 -0
- package/src/components/table/table.tsx +309 -0
- package/src/components/tabs/index.ts +17 -0
- package/src/components/tabs/tabs-data.tsx +125 -0
- package/src/components/tabs/tabs.test.tsx +172 -0
- package/src/components/tabs/tabs.tsx +292 -0
- package/src/components/tags-input/index.ts +3 -0
- package/src/components/tags-input/tags-input.test.tsx +85 -0
- package/src/components/tags-input/tags-input.tsx +294 -0
- package/src/components/text/index.ts +1 -0
- package/src/components/text/text.test.tsx +73 -0
- package/src/components/text/text.tsx +107 -0
- package/src/components/text-input/index.ts +3 -0
- package/src/components/text-input/text-input.test.tsx +129 -0
- package/src/components/text-input/text-input.tsx +88 -0
- package/src/components/textarea/index.ts +3 -0
- package/src/components/textarea/textarea.test.tsx +88 -0
- package/src/components/textarea/textarea.tsx +205 -0
- package/src/components/theme-icon/index.ts +7 -0
- package/src/components/theme-icon/theme-icon.test.tsx +20 -0
- package/src/components/theme-icon/theme-icon.tsx +114 -0
- package/src/components/theme-script/index.ts +1 -0
- package/src/components/theme-script/theme-script.tsx +68 -0
- package/src/components/time-input/hour-cycle.ts +61 -0
- package/src/components/time-input/index.ts +4 -0
- package/src/components/time-input/time-input.test.tsx +292 -0
- package/src/components/time-input/time-input.tsx +196 -0
- package/src/components/time-input/time-row.tsx +305 -0
- package/src/components/timeline/index.ts +11 -0
- package/src/components/timeline/timeline.test.tsx +701 -0
- package/src/components/timeline/timeline.tsx +720 -0
- package/src/components/title/index.ts +1 -0
- package/src/components/title/title.test.tsx +68 -0
- package/src/components/title/title.tsx +95 -0
- package/src/components/tooltip/index.ts +9 -0
- package/src/components/tooltip/tooltip.test.tsx +96 -0
- package/src/components/tooltip/tooltip.tsx +255 -0
- package/src/components/tree-multi-select/index.ts +11 -0
- package/src/components/tree-multi-select/tree-multi-select.test.tsx +327 -0
- package/src/components/tree-multi-select/tree-multi-select.tsx +626 -0
- package/src/components/tree-select/index.ts +11 -0
- package/src/components/tree-select/tree-select.test.tsx +376 -0
- package/src/components/tree-select/tree-select.tsx +634 -0
- package/src/index.ts +64 -0
- package/src/lib/align.ts +6 -0
- package/src/lib/available-if.test.ts +76 -0
- package/src/lib/available-if.ts +114 -0
- package/src/lib/brand.ts +19 -0
- package/src/lib/cn.test.ts +13 -0
- package/src/lib/cn.ts +28 -0
- package/src/lib/colors.ts +31 -0
- package/src/lib/control-open.ts +38 -0
- package/src/lib/date-predicates.test.ts +149 -0
- package/src/lib/date-predicates.ts +83 -0
- package/src/lib/date-value.test.ts +107 -0
- package/src/lib/date-value.ts +76 -0
- package/src/lib/dev-warn.ts +18 -0
- package/src/lib/focus-styles.test.ts +138 -0
- package/src/lib/focus-styles.ts +145 -0
- package/src/lib/form-control.ts +72 -0
- package/src/lib/gradient.ts +81 -0
- package/src/lib/intl-direction.test.tsx +96 -0
- package/src/lib/intl.test.tsx +162 -0
- package/src/lib/intl.tsx +210 -0
- package/src/lib/link-component.test.tsx +46 -0
- package/src/lib/link-component.tsx +32 -0
- package/src/lib/merge-refs.ts +20 -0
- package/src/lib/overlay-container.test.tsx +69 -0
- package/src/lib/overlay-container.tsx +64 -0
- package/src/lib/overlay-layer.test.tsx +139 -0
- package/src/lib/overlay-layer.tsx +81 -0
- package/src/lib/placement.ts +23 -0
- package/src/lib/props.ts +48 -0
- package/src/lib/required-if.ts +57 -0
- package/src/lib/schedule-predicates.test.ts +230 -0
- package/src/lib/schedule-predicates.ts +193 -0
- package/src/lib/select-data.ts +227 -0
- package/src/lib/sizes.ts +20 -0
- package/src/lib/test-id.ts +27 -0
- package/src/lib/theme-init-runtime.test.ts +152 -0
- package/src/lib/theme-init-runtime.ts +79 -0
- package/src/lib/theme.test.ts +223 -0
- package/src/lib/theme.ts +153 -0
- package/src/lib/tree-data.ts +159 -0
- package/src/lib/typography-size.ts +59 -0
- package/src/lib/use-container-query.test.ts +83 -0
- package/src/lib/use-container-query.ts +44 -0
- package/src/lib/use-disclosure.test.ts +85 -0
- package/src/lib/use-disclosure.ts +77 -0
- package/src/lib/use-isomorphic-layout-effect.ts +12 -0
- package/src/lib/use-local-storage.test.ts +165 -0
- package/src/lib/use-local-storage.ts +178 -0
- package/src/lib/use-logger.ts +39 -0
- package/src/lib/use-media-query.test.ts +77 -0
- package/src/lib/use-media-query.ts +35 -0
- package/src/lib/use-now.ts +59 -0
- package/src/lib/use-theme.test.ts +305 -0
- package/src/lib/use-theme.ts +279 -0
- package/src/lib/use-uncontrolled.test.ts +207 -0
- package/src/lib/use-uncontrolled.ts +85 -0
- package/src/styles.css +17 -0
- package/src/test-setup.ts +130 -0
- package/src/theme-init-script.ts +10 -0
- package/src/theme.css +1281 -0
- package/src/theme.forced-colors.test.tsx +215 -0
- package/src/theme.test.ts +221 -0
- package/src/visually-hidden-containment.test.tsx +98 -0
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { type HTMLArkProps } from "@ark-ui/react";
|
|
2
|
+
import { type ComponentPropsWithoutRef, type ReactNode, type RefObject } from "react";
|
|
3
|
+
import type { Color } from "../../lib/colors";
|
|
4
|
+
import type { WithTestId } from "../../lib/test-id";
|
|
5
|
+
import { type InputSize, type InputVariant } from "../input/input";
|
|
6
|
+
import { type PillSize } from "../pill/pill";
|
|
7
|
+
/**
|
|
8
|
+
* PillsInput — a multi-line input shell that lays out `Pill`s alongside a search
|
|
9
|
+
* field. Same chrome as `Input` (border, focus ring, invalid / disabled states)
|
|
10
|
+
* but it wraps as values accumulate. It's the visual `MultiSelect` and
|
|
11
|
+
* `TagsInput` mount as their target.
|
|
12
|
+
*
|
|
13
|
+
* - It reuses `Input`'s slot layout: a `startSlot` / `endSlot` flank a
|
|
14
|
+
* `pillsContent` region that holds the `Pill`s + the field and is the only
|
|
15
|
+
* thing that wraps, so a trailing control (chevron, clear) pins to the edge
|
|
16
|
+
* instead of wrapping inline with the pills.
|
|
17
|
+
* - Host `Pill`s + a single `PillsInputField` inside it (pills first, field
|
|
18
|
+
* last). The shell sets the pill `size` / `disabled` through context, so the
|
|
19
|
+
* pills match with no prop drilling.
|
|
20
|
+
* - `maxLines` caps the pills at N rows and collapses the rest into a static
|
|
21
|
+
* "+N" counter (measured, since pills have variable widths).
|
|
22
|
+
*
|
|
23
|
+
* Presentational by design: the value state lives with the consumer.
|
|
24
|
+
*/
|
|
25
|
+
/** The pills *row*: same single-line flex shell as `inputShell`, just text-cursor
|
|
26
|
+
* for the click-to-focus affordance. Layout/wrap live on `pillsContent`. */
|
|
27
|
+
export declare const pillsShell: string;
|
|
28
|
+
/** The wrapping region inside a pills shell — holds the pills + field, grows to
|
|
29
|
+
* fill the row (`flex-1`), and is the only element that wraps, so the shell's
|
|
30
|
+
* start/end slots stay pinned as `shrink-0` siblings. Gap tracks `inputShell`'s
|
|
31
|
+
* per-size gap so pill spacing is unchanged from the flat layout. */
|
|
32
|
+
export declare const pillsContent: (props?: ({
|
|
33
|
+
size?: "lg" | "md" | "sm" | "xl" | "xs" | null | undefined;
|
|
34
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
35
|
+
/**
|
|
36
|
+
* Pure row-grouping math behind `usePillOverflow` (exported for testing).
|
|
37
|
+
*
|
|
38
|
+
* Given each measured pill's `offsetTop` (in document order), count how many
|
|
39
|
+
* fit within `maxLines` wrapped rows. A jump in `offsetTop` (beyond a sub-pixel
|
|
40
|
+
* epsilon) marks a new row. When the pills overflow, reserve one slot on the
|
|
41
|
+
* last visible row for the "+N" counter (it's narrower than a typical pill, so
|
|
42
|
+
* dropping one always makes room).
|
|
43
|
+
*/
|
|
44
|
+
export declare function visiblePillCount(offsetTops: number[], maxLines: number): number;
|
|
45
|
+
/**
|
|
46
|
+
* Like `visiblePillCount`, but also keeps the trailing input field on the last
|
|
47
|
+
* visible row (exported for testing).
|
|
48
|
+
*
|
|
49
|
+
* `visiblePillCount` only reasons about pills, so when the last visible row is
|
|
50
|
+
* packed, the field — which is `min-w-16` and the last flex child — can't claim
|
|
51
|
+
* its minimum width and wraps onto a new line. A flex item wraps exactly when
|
|
52
|
+
* the space left on its row drops below its `min-width`, so we drop pills until
|
|
53
|
+
* the last visible pill leaves room on its row for `gap + fieldMinWidth` (plus
|
|
54
|
+
* the `+N` counter, once anything is hidden). Pills are passed as their measured
|
|
55
|
+
* `{ top, right }` in a single coordinate space; removing a trailing pill never
|
|
56
|
+
* reflows the ones before it, so each drop is checked against real geometry.
|
|
57
|
+
*/
|
|
58
|
+
export declare function pillCountWithField(pills: {
|
|
59
|
+
top: number;
|
|
60
|
+
right: number;
|
|
61
|
+
}[], maxLines: number, rowRight: number, trailing: {
|
|
62
|
+
fieldMinWidth: number;
|
|
63
|
+
counterWidth: number;
|
|
64
|
+
gap: number;
|
|
65
|
+
}): number;
|
|
66
|
+
/**
|
|
67
|
+
* Measure how many pills fit within `maxLines` rows and how many overflow.
|
|
68
|
+
*
|
|
69
|
+
* Line caps are width-dependent (pills vary in width), so this measures the DOM.
|
|
70
|
+
* Pills to be measured must carry `data-overflow-item`; the trailing field and
|
|
71
|
+
* the counter must NOT (they would corrupt row detection) — instead the field
|
|
72
|
+
* carries `data-overflow-field` and the counter `data-overflow-counter` so the
|
|
73
|
+
* hook can locate and measure them without mistaking them for pills. The hook
|
|
74
|
+
* renders the full set during a pre-paint "measuring" pass, groups pills into
|
|
75
|
+
* rows, then settles on a `visibleCount` — reserving the last row for the "+N"
|
|
76
|
+
* chip and, when a field is present, its `min-width` too, so the field never
|
|
77
|
+
* wraps onto a new line (see `pillCountWithField`). Re-measures on width change
|
|
78
|
+
* only (ignoring the height change our own slicing causes, which would loop).
|
|
79
|
+
*
|
|
80
|
+
* `measuring` is exposed so consumers can render the counter during the
|
|
81
|
+
* measuring pass (it is otherwise hidden when nothing overflows), letting the
|
|
82
|
+
* hook measure its real width for the last-row reservation.
|
|
83
|
+
*/
|
|
84
|
+
export declare function usePillOverflow({ maxLines, count, }: {
|
|
85
|
+
/** Cap the rendered pills at this many rows. Omit to render every pill. */
|
|
86
|
+
maxLines?: number;
|
|
87
|
+
/** Total number of pills — drives re-measurement on add / remove. */
|
|
88
|
+
count: number;
|
|
89
|
+
}): {
|
|
90
|
+
containerRef: RefObject<HTMLDivElement | null>;
|
|
91
|
+
visibleCount: number;
|
|
92
|
+
hiddenCount: number;
|
|
93
|
+
measuring: boolean;
|
|
94
|
+
};
|
|
95
|
+
export type PillOverflowCounterProps = {
|
|
96
|
+
/** How many pills are hidden. */
|
|
97
|
+
count: number;
|
|
98
|
+
size?: PillSize;
|
|
99
|
+
className?: string;
|
|
100
|
+
};
|
|
101
|
+
/** Static "+N" chip the pill controls render at the end of the visible rows.
|
|
102
|
+
* Non-interactive: the visible "+N" is its own accessible text, and the full
|
|
103
|
+
* set stays reachable via the dropdown (where one exists) or the consumer's
|
|
104
|
+
* own state. */
|
|
105
|
+
export declare const PillOverflowCounter: ({ count, size, className, }: PillOverflowCounterProps) => import("react").JSX.Element;
|
|
106
|
+
type PillsInputClassNames = {
|
|
107
|
+
root?: string;
|
|
108
|
+
content?: string;
|
|
109
|
+
startSlot?: string;
|
|
110
|
+
endSlot?: string;
|
|
111
|
+
};
|
|
112
|
+
export type PillsInputProps = Omit<HTMLArkProps<"div">, "color"> & WithTestId & {
|
|
113
|
+
size?: InputSize;
|
|
114
|
+
variant?: InputVariant;
|
|
115
|
+
color?: Color;
|
|
116
|
+
invalid?: boolean;
|
|
117
|
+
disabled?: boolean;
|
|
118
|
+
pointer?: boolean;
|
|
119
|
+
/** Cap the pills at N rows; the rest collapse into a static "+N" counter. */
|
|
120
|
+
maxLines?: number;
|
|
121
|
+
/** Inline-start adornment (icon, label). */
|
|
122
|
+
startSlot?: ReactNode;
|
|
123
|
+
/** Inline-end adornment — rendered before any trailing control. */
|
|
124
|
+
endSlot?: ReactNode;
|
|
125
|
+
classNames?: PillsInputClassNames;
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* PillsInput — the wrapping input shell for multi-value fields. Host `Pill`s
|
|
129
|
+
* and a single `PillsInput.Field` inside; the shell sizes and disables them
|
|
130
|
+
* through context. Presentational by design: it holds no value state.
|
|
131
|
+
*
|
|
132
|
+
* `testId` here lands on the shell `<div>` itself — useful when `PillsInput`
|
|
133
|
+
* is used bare. `PillsInput.Field` has its own `testId`, landing on the real
|
|
134
|
+
* focusable `<input>`; prefer that one when targeting the field.
|
|
135
|
+
*/
|
|
136
|
+
declare const PillsInputBase: ({ size, variant, color, invalid, disabled, pointer, maxLines, startSlot, endSlot, className, classNames, children, testId, ...rest }: PillsInputProps) => import("react").JSX.Element;
|
|
137
|
+
export type PillsInputFieldProps = ComponentPropsWithoutRef<"input"> & WithTestId & {
|
|
138
|
+
/** Fired on Backspace when the field is empty — pop the last value. */
|
|
139
|
+
onRemoveLast?: () => void;
|
|
140
|
+
};
|
|
141
|
+
declare const PillsInputField: ({ className, onRemoveLast, onKeyDown, testId, ...rest }: PillsInputFieldProps) => import("react").JSX.Element;
|
|
142
|
+
export declare const PillsInput: typeof PillsInputBase & {
|
|
143
|
+
Field: typeof PillsInputField;
|
|
144
|
+
};
|
|
145
|
+
export {};
|
|
146
|
+
//# sourceMappingURL=pills-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pills-input.d.ts","sourceRoot":"","sources":["../../../src/components/pills-input/pills-input.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAA;AAEtD,OAAO,EAEL,KAAK,wBAAwB,EAI7B,KAAK,SAAS,EACd,KAAK,SAAS,EAKf,MAAM,OAAO,CAAA;AAEd,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAE7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EACL,KAAK,SAAS,EACd,KAAK,YAAY,EAIlB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAoB,KAAK,QAAQ,EAAQ,MAAM,cAAc,CAAA;AAEpE;;;;;;;;;;;;;;;;;GAiBG;AAEH;6EAC6E;AAC7E,eAAO,MAAM,UAAU,QAAoB,CAAA;AAE3C;;;sEAGsE;AACtE,eAAO,MAAM,YAAY;;8EAWvB,CAAA;AAOF;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAgB/E;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,EACvC,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE;IAAE,aAAa,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GACrE,MAAM,CAmBR;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,KAAK,GACN,EAAE;IACD,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,qEAAqE;IACrE,KAAK,EAAE,MAAM,CAAA;CACd,GAAG;IACF,YAAY,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IAC9C,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,OAAO,CAAA;CACnB,CAmFA;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,iCAAiC;IACjC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;;iBAGiB;AACjB,eAAO,MAAM,mBAAmB,gCAI7B,wBAAwB,gCAI1B,CAAA;AAED,KAAK,oBAAoB,GAAG;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,GAC9D,UAAU,GAAG;IACX,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,mEAAmE;IACnE,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,UAAU,CAAC,EAAE,oBAAoB,CAAA;CAClC,CAAA;AAEH;;;;;;;;GAQG;AACH,QAAA,MAAM,cAAc,yIAejB,eAAe,gCA6DjB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,wBAAwB,CAAC,OAAO,CAAC,GAClE,UAAU,GAAG;IACX,uEAAuE;IACvE,YAAY,CAAC,EAAE,MAAM,IAAI,CAAA;CAC1B,CAAA;AAEH,QAAA,MAAM,eAAe,4DAMlB,oBAAoB,gCAgBtB,CAAA;AAED,eAAO,MAAM,UAAU;;CAErB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/pin-input/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAA"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { shellChrome, shellVariants } from '../../chunk-QMW7D5GU.js';
|
|
3
|
+
import { FieldShell } from '../../chunk-UNSAA7YG.js';
|
|
4
|
+
import { props } from '../../chunk-WYCMIIRR.js';
|
|
5
|
+
import { cn } from '../../chunk-QP4I37PA.js';
|
|
6
|
+
import { PinInput as PinInput$1 } from '@ark-ui/react/pin-input';
|
|
7
|
+
import { cva } from 'class-variance-authority';
|
|
8
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
|
+
|
|
10
|
+
var pinCell = cva(
|
|
11
|
+
[
|
|
12
|
+
...shellChrome,
|
|
13
|
+
...shellVariants.default,
|
|
14
|
+
"appearance-none outline-none",
|
|
15
|
+
"text-center tabular-nums aspect-square"
|
|
16
|
+
],
|
|
17
|
+
{
|
|
18
|
+
variants: {
|
|
19
|
+
size: {
|
|
20
|
+
xs: "size-7 text-xs",
|
|
21
|
+
sm: "size-8 text-sm",
|
|
22
|
+
md: "size-9 text-md",
|
|
23
|
+
lg: "size-10 text-lg",
|
|
24
|
+
xl: "size-12 text-xl"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
defaultVariants: { size: "md" }
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
var PinInput = ({
|
|
31
|
+
value,
|
|
32
|
+
defaultValue,
|
|
33
|
+
onChange,
|
|
34
|
+
onComplete,
|
|
35
|
+
length,
|
|
36
|
+
otp,
|
|
37
|
+
mask,
|
|
38
|
+
type,
|
|
39
|
+
placeholder = "\u2022",
|
|
40
|
+
name,
|
|
41
|
+
invalid,
|
|
42
|
+
disabled,
|
|
43
|
+
readOnly,
|
|
44
|
+
required,
|
|
45
|
+
label,
|
|
46
|
+
description,
|
|
47
|
+
error,
|
|
48
|
+
size = "md",
|
|
49
|
+
color,
|
|
50
|
+
id,
|
|
51
|
+
ref,
|
|
52
|
+
onBlur,
|
|
53
|
+
className,
|
|
54
|
+
classNames,
|
|
55
|
+
testId
|
|
56
|
+
}) => {
|
|
57
|
+
const isInvalid = invalid || error != null;
|
|
58
|
+
return /* @__PURE__ */ jsx(
|
|
59
|
+
FieldShell,
|
|
60
|
+
{
|
|
61
|
+
label,
|
|
62
|
+
description,
|
|
63
|
+
error,
|
|
64
|
+
required,
|
|
65
|
+
disabled,
|
|
66
|
+
size,
|
|
67
|
+
className: classNames?.field,
|
|
68
|
+
children: /* @__PURE__ */ jsxs(
|
|
69
|
+
PinInput$1.Root,
|
|
70
|
+
{
|
|
71
|
+
value: value != null ? [...value] : void 0,
|
|
72
|
+
defaultValue: defaultValue != null ? [...defaultValue] : void 0,
|
|
73
|
+
onValueChange: onChange ? (details) => onChange(details.valueAsString) : void 0,
|
|
74
|
+
onValueComplete: onComplete ? (details) => onComplete(details.valueAsString) : void 0,
|
|
75
|
+
count: length,
|
|
76
|
+
otp,
|
|
77
|
+
mask,
|
|
78
|
+
type,
|
|
79
|
+
placeholder,
|
|
80
|
+
name,
|
|
81
|
+
...props({ invalid: isInvalid, disabled, readOnly, required }),
|
|
82
|
+
ids: id ? { root: id } : void 0,
|
|
83
|
+
"data-color": color,
|
|
84
|
+
className: cn("relative", className, classNames?.root),
|
|
85
|
+
children: [
|
|
86
|
+
/* @__PURE__ */ jsx(PinInput$1.Control, { className: "flex items-center gap-2", children: Array.from({ length }).map((_, i) => /* @__PURE__ */ jsx(
|
|
87
|
+
PinInput$1.Input,
|
|
88
|
+
{
|
|
89
|
+
index: i,
|
|
90
|
+
ref: i === 0 ? ref : void 0,
|
|
91
|
+
onBlur: i === 0 ? onBlur : void 0,
|
|
92
|
+
...props({ "data-testid": testId && `${testId}-${i}` }),
|
|
93
|
+
className: cn(pinCell({ size }), classNames?.input)
|
|
94
|
+
},
|
|
95
|
+
i
|
|
96
|
+
)) }),
|
|
97
|
+
/* @__PURE__ */ jsx(PinInput$1.HiddenInput, {})
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
)
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
export { PinInput };
|
|
106
|
+
//# sourceMappingURL=index.js.map
|
|
107
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/pin-input/pin-input.tsx"],"names":["Ark"],"mappings":"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","file":"index.js","sourcesContent":["\"use client\"\n\nimport { PinInput as Ark } from \"@ark-ui/react/pin-input\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport type { FocusEvent, Ref } from \"react\"\nimport { cn } from \"../../lib/cn\"\nimport type { Color } from \"../../lib/colors\"\nimport { props } from \"../../lib/props\"\nimport type { WithTestId } from \"../../lib/test-id\"\nimport { type FieldProps, FieldShell } from \"../field/field\"\nimport { type InputSize, shellChrome, shellVariants } from \"../input/input\"\n\n/**\n * PinInput — a row of single-character cells for one-time codes, PINs, and\n * confirmation tokens, on Ark UI's PinInput machine. Each cell is a real\n * `<input>`; the machine handles autofocus advance, paste-to-fill, backspace\n * navigation, masking, and `otp` autocomplete, and a `HiddenInput` backs form\n * submission.\n *\n * - Value is a single `string` here (one char per cell): the machine speaks\n * `string[]`, but `value` / `defaultValue` take a string and `onChange` /\n * `onComplete` hand one back.\n * - Like the rest of the family it carries its own `label` / `description` /\n * `error` / `required` via [`Field`](/docs/field); `error` flips the cells\n * to the invalid (red) state, or set `invalid` directly.\n * - `onComplete` fires once every cell is filled.\n *\n * Cells reuse the shared shell tokens, so PinInput sits visually with the rest\n * of the family; palette rides on `data-color` (the shell's focus halo is a\n * fixed `brand-500`, so nothing tints today).\n */\n\n/** Single PIN cell — the shared shell chrome squared off per `size`. */\nexport const pinCell = cva(\n [\n ...shellChrome,\n ...shellVariants.default,\n \"appearance-none outline-none\",\n \"text-center tabular-nums aspect-square\",\n ],\n {\n variants: {\n size: {\n xs: \"size-7 text-xs\",\n sm: \"size-8 text-sm\",\n md: \"size-9 text-md\",\n lg: \"size-10 text-lg\",\n xl: \"size-12 text-xl\",\n },\n },\n defaultVariants: { size: \"md\" },\n },\n)\n\nexport type PinCellVariants = VariantProps<typeof pinCell>\n\ntype PinInputClassNames = {\n /** The field wrapper (label / description / error). */\n field?: string\n /** The control row wrapping the cells (also targeted by `className`). */\n root?: string\n /** Each cell `<input>`. */\n input?: string\n}\n\nexport type PinInputProps = Pick<FieldProps, \"label\" | \"description\" | \"error\" | \"required\"> &\n WithTestId & {\n /** Controlled value — one character per cell. */\n value?: string\n /** Uncontrolled initial value. */\n defaultValue?: string\n /** Fires with the current joined value on every change. */\n onChange?: (value: string) => void\n /** Fires with the joined value once every cell is filled. */\n onComplete?: (value: string) => void\n /** Number of cells to render. */\n length: number\n /** Use `autocomplete=\"one-time-code\"` so OS-level OTP autofill works. */\n otp?: boolean\n /** Mask the entered characters like a password field. */\n mask?: boolean\n /** Which characters each cell accepts. */\n type?: \"numeric\" | \"alphanumeric\" | \"alphabetic\"\n /** Placeholder shown in each empty cell. */\n placeholder?: string\n /** Field name for native form submission. */\n name?: string\n /** Red invalid state; OR'd with `error`. */\n invalid?: boolean\n /** Dims and disables the cells. */\n disabled?: boolean\n /** Keeps full contrast but blocks edits. */\n readOnly?: boolean\n size?: InputSize\n /** Accent palette. The shell's focus halo stays `brand-500` regardless. */\n color?: Color\n /** Explicit id for label association. */\n id?: string\n /** Lands on the first cell for focus-on-error. */\n ref?: Ref<HTMLInputElement>\n /** Forwarded to the first cell; drives touched/blurred validation. */\n onBlur?: (event: FocusEvent<HTMLInputElement>) => void\n className?: string\n classNames?: PinInputClassNames\n }\n\nexport const PinInput = ({\n value,\n defaultValue,\n onChange,\n onComplete,\n length,\n otp,\n mask,\n type,\n placeholder = \"•\",\n name,\n invalid,\n disabled,\n readOnly,\n required,\n label,\n description,\n error,\n size = \"md\",\n color,\n id,\n ref,\n onBlur,\n className,\n classNames,\n testId,\n}: PinInputProps) => {\n // Drive the red state independently of the `Field` error slot so a form\n // library can flip it from `fieldState.invalid` (see FormControlProps).\n const isInvalid = invalid || error != null\n\n return (\n <FieldShell\n label={label}\n description={description}\n error={error}\n required={required}\n disabled={disabled}\n size={size}\n className={classNames?.field}\n >\n <Ark.Root\n // The machine speaks `string[]` (one char per cell); bridge the kit's\n // single-string value at the edge.\n value={value != null ? [...value] : undefined}\n defaultValue={defaultValue != null ? [...defaultValue] : undefined}\n onValueChange={onChange ? (details) => onChange(details.valueAsString) : undefined}\n onValueComplete={onComplete ? (details) => onComplete(details.valueAsString) : undefined}\n count={length}\n otp={otp}\n mask={mask}\n type={type}\n placeholder={placeholder}\n name={name}\n {...props({ invalid: isInvalid, disabled, readOnly, required })}\n ids={id ? { root: id } : undefined}\n data-color={color}\n // `relative` contains the absolutely positioned hidden input, which would\n // otherwise escape any scroller this control sits in.\n className={cn(\"relative\", className, classNames?.root)}\n >\n <Ark.Control className=\"flex items-center gap-2\">\n {Array.from({ length }).map((_, i) => (\n <Ark.Input\n // The cell list is fixed-length and index-keyed by design.\n // biome-ignore lint/suspicious/noArrayIndexKey: stable positional cells\n key={i}\n index={i}\n ref={i === 0 ? ref : undefined}\n onBlur={i === 0 ? onBlur : undefined}\n {...props({ \"data-testid\": testId && `${testId}-${i}` })}\n className={cn(pinCell({ size }), classNames?.input)}\n />\n ))}\n </Ark.Control>\n <Ark.HiddenInput />\n </Ark.Root>\n </FieldShell>\n )\n}\n"]}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import type { FocusEvent, Ref } from "react";
|
|
3
|
+
import type { Color } from "../../lib/colors";
|
|
4
|
+
import type { WithTestId } from "../../lib/test-id";
|
|
5
|
+
import { type FieldProps } from "../field/field";
|
|
6
|
+
import { type InputSize } from "../input/input";
|
|
7
|
+
/**
|
|
8
|
+
* PinInput — a row of single-character cells for one-time codes, PINs, and
|
|
9
|
+
* confirmation tokens, on Ark UI's PinInput machine. Each cell is a real
|
|
10
|
+
* `<input>`; the machine handles autofocus advance, paste-to-fill, backspace
|
|
11
|
+
* navigation, masking, and `otp` autocomplete, and a `HiddenInput` backs form
|
|
12
|
+
* submission.
|
|
13
|
+
*
|
|
14
|
+
* - Value is a single `string` here (one char per cell): the machine speaks
|
|
15
|
+
* `string[]`, but `value` / `defaultValue` take a string and `onChange` /
|
|
16
|
+
* `onComplete` hand one back.
|
|
17
|
+
* - Like the rest of the family it carries its own `label` / `description` /
|
|
18
|
+
* `error` / `required` via [`Field`](/docs/field); `error` flips the cells
|
|
19
|
+
* to the invalid (red) state, or set `invalid` directly.
|
|
20
|
+
* - `onComplete` fires once every cell is filled.
|
|
21
|
+
*
|
|
22
|
+
* Cells reuse the shared shell tokens, so PinInput sits visually with the rest
|
|
23
|
+
* of the family; palette rides on `data-color` (the shell's focus halo is a
|
|
24
|
+
* fixed `brand-500`, so nothing tints today).
|
|
25
|
+
*/
|
|
26
|
+
/** Single PIN cell — the shared shell chrome squared off per `size`. */
|
|
27
|
+
export declare const pinCell: (props?: ({
|
|
28
|
+
size?: "lg" | "md" | "sm" | "xl" | "xs" | null | undefined;
|
|
29
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
30
|
+
export type PinCellVariants = VariantProps<typeof pinCell>;
|
|
31
|
+
type PinInputClassNames = {
|
|
32
|
+
/** The field wrapper (label / description / error). */
|
|
33
|
+
field?: string;
|
|
34
|
+
/** The control row wrapping the cells (also targeted by `className`). */
|
|
35
|
+
root?: string;
|
|
36
|
+
/** Each cell `<input>`. */
|
|
37
|
+
input?: string;
|
|
38
|
+
};
|
|
39
|
+
export type PinInputProps = Pick<FieldProps, "label" | "description" | "error" | "required"> & WithTestId & {
|
|
40
|
+
/** Controlled value — one character per cell. */
|
|
41
|
+
value?: string;
|
|
42
|
+
/** Uncontrolled initial value. */
|
|
43
|
+
defaultValue?: string;
|
|
44
|
+
/** Fires with the current joined value on every change. */
|
|
45
|
+
onChange?: (value: string) => void;
|
|
46
|
+
/** Fires with the joined value once every cell is filled. */
|
|
47
|
+
onComplete?: (value: string) => void;
|
|
48
|
+
/** Number of cells to render. */
|
|
49
|
+
length: number;
|
|
50
|
+
/** Use `autocomplete="one-time-code"` so OS-level OTP autofill works. */
|
|
51
|
+
otp?: boolean;
|
|
52
|
+
/** Mask the entered characters like a password field. */
|
|
53
|
+
mask?: boolean;
|
|
54
|
+
/** Which characters each cell accepts. */
|
|
55
|
+
type?: "numeric" | "alphanumeric" | "alphabetic";
|
|
56
|
+
/** Placeholder shown in each empty cell. */
|
|
57
|
+
placeholder?: string;
|
|
58
|
+
/** Field name for native form submission. */
|
|
59
|
+
name?: string;
|
|
60
|
+
/** Red invalid state; OR'd with `error`. */
|
|
61
|
+
invalid?: boolean;
|
|
62
|
+
/** Dims and disables the cells. */
|
|
63
|
+
disabled?: boolean;
|
|
64
|
+
/** Keeps full contrast but blocks edits. */
|
|
65
|
+
readOnly?: boolean;
|
|
66
|
+
size?: InputSize;
|
|
67
|
+
/** Accent palette. The shell's focus halo stays `brand-500` regardless. */
|
|
68
|
+
color?: Color;
|
|
69
|
+
/** Explicit id for label association. */
|
|
70
|
+
id?: string;
|
|
71
|
+
/** Lands on the first cell for focus-on-error. */
|
|
72
|
+
ref?: Ref<HTMLInputElement>;
|
|
73
|
+
/** Forwarded to the first cell; drives touched/blurred validation. */
|
|
74
|
+
onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
75
|
+
className?: string;
|
|
76
|
+
classNames?: PinInputClassNames;
|
|
77
|
+
};
|
|
78
|
+
export declare const PinInput: ({ value, defaultValue, onChange, onComplete, length, otp, mask, type, placeholder, name, invalid, disabled, readOnly, required, label, description, error, size, color, id, ref, onBlur, className, classNames, testId, }: PinInputProps) => import("react").JSX.Element;
|
|
79
|
+
export {};
|
|
80
|
+
//# sourceMappingURL=pin-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pin-input.d.ts","sourceRoot":"","sources":["../../../src/components/pin-input/pin-input.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAE5C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAE7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,KAAK,UAAU,EAAc,MAAM,gBAAgB,CAAA;AAC5D,OAAO,EAAE,KAAK,SAAS,EAA8B,MAAM,gBAAgB,CAAA;AAE3E;;;;;;;;;;;;;;;;;;GAkBG;AAEH,wEAAwE;AACxE,eAAO,MAAM,OAAO;;8EAmBnB,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,OAAO,OAAO,CAAC,CAAA;AAE1D,KAAK,kBAAkB,GAAG;IACxB,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,yEAAyE;IACzE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,2BAA2B;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,aAAa,GAAG,OAAO,GAAG,UAAU,CAAC,GAC1F,UAAU,GAAG;IACX,iDAAiD;IACjD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kCAAkC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,6DAA6D;IAC7D,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,iCAAiC;IACjC,MAAM,EAAE,MAAM,CAAA;IACd,yEAAyE;IACzE,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,yDAAyD;IACzD,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,0CAA0C;IAC1C,IAAI,CAAC,EAAE,SAAS,GAAG,cAAc,GAAG,YAAY,CAAA;IAChD,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,4CAA4C;IAC5C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,2EAA2E;IAC3E,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,yCAAyC;IACzC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,kDAAkD;IAClD,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAA;IAC3B,sEAAsE;IACtE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAA;IACtD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,kBAAkB,CAAA;CAChC,CAAA;AAEH,eAAO,MAAM,QAAQ,8NA0BlB,aAAa,gCAqDf,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tiny shared SVGs for the form family's popovers — hand-rolled (not lucide)
|
|
3
|
+
* to keep these leaves dependency-free, matching Spinner's approach. Both
|
|
4
|
+
* inherit `currentColor` and are sized by the parent's `[&_svg]:size-*`.
|
|
5
|
+
*/
|
|
6
|
+
/** Selected-option check mark (Combobox / Select item indicator). */
|
|
7
|
+
export declare const CheckIcon: () => import("react").JSX.Element;
|
|
8
|
+
/** Trigger chevron. Rotate via `data-[state=open]:rotate-180` on the trigger. */
|
|
9
|
+
export declare const ChevronIcon: () => import("react").JSX.Element;
|
|
10
|
+
/** Previous-month/year/decade nav (Calendar's `PrevTrigger`). Dedicated glyph rather than
|
|
11
|
+
* `ChevronIcon` rotated 90° — that one's a down-facing dropdown-toggle affordance, a
|
|
12
|
+
* differently-intentioned shape to reuse for directional paging. */
|
|
13
|
+
export declare const ChevronLeftIcon: () => import("react").JSX.Element;
|
|
14
|
+
/** Next-month/year/decade nav (Calendar's `NextTrigger`). See `ChevronLeftIcon`. */
|
|
15
|
+
export declare const ChevronRightIcon: () => import("react").JSX.Element;
|
|
16
|
+
/** Indeterminate (partial) mark — TreeMultiSelect's checkbox when some children are selected. */
|
|
17
|
+
export declare const MinusIcon: () => import("react").JSX.Element;
|
|
18
|
+
/** Clear (×) — for clear triggers and pill removes. */
|
|
19
|
+
export declare const CloseIcon: () => import("react").JSX.Element;
|
|
20
|
+
/** DatePicker's trigger leading icon. */
|
|
21
|
+
export declare const CalendarIcon: () => import("react").JSX.Element;
|
|
22
|
+
/** DatePicker's embedded time-panel section marker. */
|
|
23
|
+
export declare const ClockIcon: () => import("react").JSX.Element;
|
|
24
|
+
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/components/popover/icons.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,qEAAqE;AACrE,eAAO,MAAM,SAAS,mCAYrB,CAAA;AAED,iFAAiF;AACjF,eAAO,MAAM,WAAW,mCAYvB,CAAA;AAED;;qEAEqE;AACrE,eAAO,MAAM,eAAe,mCAY3B,CAAA;AAED,oFAAoF;AACpF,eAAO,MAAM,gBAAgB,mCAY5B,CAAA;AAED,iGAAiG;AACjG,eAAO,MAAM,SAAS,mCAYrB,CAAA;AAED,uDAAuD;AACvD,eAAO,MAAM,SAAS,mCAYrB,CAAA;AAED,yCAAyC;AACzC,eAAO,MAAM,YAAY,mCAaxB,CAAA;AAED,uDAAuD;AACvD,eAAO,MAAM,SAAS,mCAarB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/popover/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,mBAAmB,GACzB,MAAM,WAAW,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
export { Popover } from '../../chunk-VZ2TPU4B.js';
|
|
3
|
+
import '../../chunk-AIQG7IIT.js';
|
|
4
|
+
import '../../chunk-7P32XCEU.js';
|
|
5
|
+
import '../../chunk-BUIHQJGE.js';
|
|
6
|
+
import '../../chunk-BEL75C7N.js';
|
|
7
|
+
import '../../chunk-WYCMIIRR.js';
|
|
8
|
+
import '../../chunk-QP4I37PA.js';
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { Popover as ArkPopover } from "@ark-ui/react/popover";
|
|
2
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
3
|
+
import type { UnavailableProps } from "../../lib/available-if";
|
|
4
|
+
import type { WithTestId } from "../../lib/test-id";
|
|
5
|
+
/** Shared floating-panel chrome — border, surface, shadow, layering token, and
|
|
6
|
+
* the open/close animation (origin follows `data-placement`). Every popover
|
|
7
|
+
* surface builds on this so they stay visually identical. Exported so overlays
|
|
8
|
+
* that aren't scroll-clipping listboxes (e.g. Menu) can build their own surface
|
|
9
|
+
* on the exact same border/shadow/animation without drift.
|
|
10
|
+
*
|
|
11
|
+
* Brand-tinted surface, matching `InputBase`'s shell (`border-brand-900/20
|
|
12
|
+
* dark:border-white/15`): the fill sits at the two extreme ends of the brand
|
|
13
|
+
* scale (`brand-50` / `brand-950`, near-white/near-black) so floating panels
|
|
14
|
+
* read as part of the same brand-derived surface family as inputs rather than
|
|
15
|
+
* a neutral gray. The backdrop blur stays; only the fill/border are tinted. */
|
|
16
|
+
export declare const popoverChrome: string;
|
|
17
|
+
/** Outer chrome for the machine-driven listboxes (Combobox / Select / Autocomplete
|
|
18
|
+
* / MultiSelect): border, surface, shadow, and the open/close animation. It's a
|
|
19
|
+
* rounded **clipping** wrapper (`overflow-hidden`), NOT the scroller — the inner
|
|
20
|
+
* `popoverList` scrolls, and this clip rounds that scrollbar's corners on the
|
|
21
|
+
* scrollbar side. Border + clip on one element (like `popoverPanel`) keep the
|
|
22
|
+
* border whole, and `data-state` rides here so the whole box animates in/out and
|
|
23
|
+
* unmounts cleanly — no eaten corner, no floating frame on close. */
|
|
24
|
+
export declare const popoverContent: string;
|
|
25
|
+
/** Inner scroll region for the machine-driven listboxes — the actual scroller,
|
|
26
|
+
* nested in `popoverContent`, capped at 16rem via `--available-height`. Has no
|
|
27
|
+
* border/radius of its own; the parent clip rounds its scrollbar corners. Since
|
|
28
|
+
* Content is `overflow-hidden`, the machines can't auto-scroll it natively, so
|
|
29
|
+
* scrolling is routed here via `scrollHighlightedIntoView` (the root's
|
|
30
|
+
* `scrollToIndexFn`). */
|
|
31
|
+
export declare const popoverList: (props?: ({
|
|
32
|
+
withPaddingTop?: boolean | null | undefined;
|
|
33
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
34
|
+
/** Scroll the highlighted option into view from inside the `popoverList` scroller.
|
|
35
|
+
* Wired as the combobox/select root's `scrollToIndexFn` so the machine routes
|
|
36
|
+
* scrolling through here instead of its native path — which early-returns unless
|
|
37
|
+
* the (now `overflow-hidden`) Content is itself scrollable. Native `scrollIntoView`
|
|
38
|
+
* walks to the nearest scrollable ancestor, i.e. the List. */
|
|
39
|
+
export declare const scrollHighlightedIntoView: ({ getElement, }: {
|
|
40
|
+
getElement: () => HTMLElement | null;
|
|
41
|
+
}) => void | undefined;
|
|
42
|
+
/** Panel chrome for the `Popover` component — NOT a scroll container: it clips
|
|
43
|
+
* its children so fixed Header/Footer and the scrolling Body sit flush inside
|
|
44
|
+
* the rounded border. Pair with `popoverViewport`. Its own `overflow-hidden`
|
|
45
|
+
* never clips its own shadow, and the inner Body's scrollbar is rounded by this
|
|
46
|
+
* panel's clip — so it doesn't need `scrollbar-soft`. */
|
|
47
|
+
export declare const popoverPanel: string;
|
|
48
|
+
/** The scroll region inside a `Popover` panel (its `Body`). Height tracks the
|
|
49
|
+
* positioner's `--available-height`, capped at 24rem. */
|
|
50
|
+
export declare const popoverViewport: string;
|
|
51
|
+
/** Trigger chevron — base look; add rotation per machine
|
|
52
|
+
* (`data-[state=open]:rotate-180`, or `open && "rotate-180"`). */
|
|
53
|
+
export declare const popoverChevron = "shrink-0 text-gray-light-500 transition-transform dark:text-gray-dark-400";
|
|
54
|
+
/** Clear (×) button — shared by Combobox / Select / TagsInput / NumberInput clear triggers. */
|
|
55
|
+
export declare const popoverClearTrigger = "inline-flex shrink-0 cursor-pointer items-center justify-center rounded-full text-gray-light-500 transition-colors hover:text-gray-light-700 dark:text-gray-dark-400 dark:hover:text-gray-dark-200";
|
|
56
|
+
/** A single option row. Highlight is `data-highlighted`, selection is
|
|
57
|
+
* `data-state=checked`, both owned by the Ark machine. Highlight is neutral
|
|
58
|
+
* and transparent — a low-opacity black/white wash, not an opaque gray —
|
|
59
|
+
* matching the surface's own background-dependent tint (no Figma reference
|
|
60
|
+
* for this specific state yet, so this is a considered default, not an
|
|
61
|
+
* extracted value). */
|
|
62
|
+
export declare const popoverOption: (props?: ({
|
|
63
|
+
size?: "lg" | "md" | "sm" | "xl" | "xs" | null | undefined;
|
|
64
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
65
|
+
/** The check / selected indicator slot at the inline-end of an option. */
|
|
66
|
+
export declare const popoverIndicator = "ms-auto inline-flex shrink-0 items-center text-(--c-solid) [&_svg]:size-4";
|
|
67
|
+
/** Presentational checkbox for a multi-select option row — a box that fills
|
|
68
|
+
* once its parent row carries `data-state="checked"` (needs `group/item` on
|
|
69
|
+
* the row; the check icon itself should still be an `Ark.ItemIndicator` so it
|
|
70
|
+
* only mounts when selected). Modeled on `TreeMultiSelect`'s local
|
|
71
|
+
* `treeCheckbox`, generalized off `data-state` instead of that component's own
|
|
72
|
+
* hand-rolled `data-checked`/`data-mixed` (there's no tri-state "mixed" outside
|
|
73
|
+
* a tree, so this only needs the one variant). */
|
|
74
|
+
export declare const popoverCheckbox: (props?: ({
|
|
75
|
+
size?: "lg" | "md" | "sm" | "xl" | "xs" | null | undefined;
|
|
76
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
77
|
+
/** Group heading above a set of options. */
|
|
78
|
+
export declare const popoverGroupLabel = "px-2 py-1.5 text-xs font-medium select-none text-gray-light-500 dark:text-gray-dark-400";
|
|
79
|
+
/** Empty / nothing-found message. */
|
|
80
|
+
export declare const popoverEmpty = "px-2 py-6 text-center text-sm select-none text-gray-light-500 dark:text-gray-dark-400";
|
|
81
|
+
/**
|
|
82
|
+
* Popover — the kit's floating panel, a styled layer over Ark UI's Popover.
|
|
83
|
+
*
|
|
84
|
+
* <Popover.Root open={open} onOpenChange={...}>
|
|
85
|
+
* <Popover.Trigger asChild><button>…</button></Popover.Trigger>
|
|
86
|
+
* <Popover.Content>
|
|
87
|
+
* <Popover.Header>…</Popover.Header> // optional fixed slot
|
|
88
|
+
* <Popover.Body>…</Popover.Body> // the scroll region
|
|
89
|
+
* <Popover.Footer>…</Popover.Footer> // optional fixed slot
|
|
90
|
+
* </Popover.Content>
|
|
91
|
+
* </Popover.Root>
|
|
92
|
+
*
|
|
93
|
+
* It's a *panel*, not a menu: hosts (TreeSelect, custom pickers) render their own
|
|
94
|
+
* rows inside `Body`. Portaled by default (escapes `overflow:hidden` ancestors),
|
|
95
|
+
* width-matched to the trigger, and animated via the kit's `popover-in/out`.
|
|
96
|
+
*
|
|
97
|
+
* `mode="hover"` adds a delayed hover preview on top of the click: hovering the
|
|
98
|
+
* trigger opens the panel after `openDelay` without moving focus, and leaving
|
|
99
|
+
* both the trigger and the panel closes it after `closeDelay`. A click, a tap
|
|
100
|
+
* or Enter/Space on the trigger — or a press or focus inside a previewing
|
|
101
|
+
* panel — *pins* it: from then on it behaves as a plain Popover (focus moves
|
|
102
|
+
* in, pointer-leave is ignored, Escape / outside click / Tab out dismisses).
|
|
103
|
+
* It's the interactive counterpart of `HoverCard`, whose content is a
|
|
104
|
+
* mouse-only, unfocusable link preview by design (Ark's HoverCard ignores
|
|
105
|
+
* touch and never takes focus).
|
|
106
|
+
*/
|
|
107
|
+
type PopoverPosition = NonNullable<NonNullable<ArkPopover.RootProps["positioning"]>["placement"]>;
|
|
108
|
+
type PopoverHoverDelays = {
|
|
109
|
+
/** Hover time in ms before the preview opens. Default `600`, like `HoverCard`. */
|
|
110
|
+
openDelay?: number;
|
|
111
|
+
/** Time in ms after the pointer leaves the trigger and the panel before the
|
|
112
|
+
* preview closes. Default `300`, like `HoverCard`. A pinned panel ignores it. */
|
|
113
|
+
closeDelay?: number;
|
|
114
|
+
};
|
|
115
|
+
/** `openDelay`/`closeDelay` only mean something with `mode="hover"`, so a
|
|
116
|
+
* click popover rejects them at compile time instead of dropping them. */
|
|
117
|
+
type PopoverModeProps = ({
|
|
118
|
+
/** `"click"` (default) opens on click/tap/Enter only. `"hover"` also
|
|
119
|
+
* opens a delayed, focus-free preview on hover, which a click, or a
|
|
120
|
+
* press or focus inside it, pins open as a regular popover. */
|
|
121
|
+
mode?: "click";
|
|
122
|
+
} & UnavailableProps<PopoverHoverDelays, 'requires mode="hover"'>) | ({
|
|
123
|
+
mode: "hover";
|
|
124
|
+
} & PopoverHoverDelays);
|
|
125
|
+
export type PopoverProps = ArkPopover.RootProps & PopoverModeProps & {
|
|
126
|
+
/** Match the trigger's width (`"target"`, default) or size to content (`"auto"`). */
|
|
127
|
+
width?: "target" | "auto";
|
|
128
|
+
/** Panel placement relative to the trigger. Defaults to Ark's `"bottom"`. */
|
|
129
|
+
position?: PopoverPosition;
|
|
130
|
+
/** Gap in px between the trigger and the panel. */
|
|
131
|
+
gutter?: number;
|
|
132
|
+
/** Positionner offset */
|
|
133
|
+
offset?: {
|
|
134
|
+
mainAxis?: number | undefined;
|
|
135
|
+
crossAxis?: number | undefined;
|
|
136
|
+
} | undefined;
|
|
137
|
+
/** Hide the panel (`visibility: hidden`, no pointer events) once the
|
|
138
|
+
* trigger is fully clipped by its own scrolling ancestor, and restore it
|
|
139
|
+
* once back in view — Floating UI's `hide()` middleware
|
|
140
|
+
* (`strategy: "referenceHidden"`), already wired into Ark's positioning
|
|
141
|
+
* engine, just not exposed until now. Rides the positioner's existing
|
|
142
|
+
* scroll/resize listeners, so no extra observer is needed. Default `true`
|
|
143
|
+
* — a panel that can't see its own trigger is never in a state worth
|
|
144
|
+
* keeping visible; pass `false` to restore the old "keep following the
|
|
145
|
+
* trigger's last known position" behavior. */
|
|
146
|
+
hideWhenDetached?: boolean;
|
|
147
|
+
/** Ark's full positioning options (`flip`, `slide`, `overlap`, `boundary`,
|
|
148
|
+
* `getAnchorElement`, …), for placements the props above can't express.
|
|
149
|
+
* Applied over them, so a key set here wins. */
|
|
150
|
+
positioning?: ArkPopover.RootProps["positioning"];
|
|
151
|
+
/** Render the panel in a Portal so it escapes clipping ancestors. Default `true`. */
|
|
152
|
+
withinPortal?: boolean;
|
|
153
|
+
/** Portal target. Defaults to the enclosing `Modal`/`Drawer` when there is
|
|
154
|
+
* one (so the panel stays above it), else `document.body`. */
|
|
155
|
+
container?: HTMLElement | null;
|
|
156
|
+
/** Fires on close (any source) — Escape, outside interaction, or a controlled `onOpenChange`. */
|
|
157
|
+
onClose?: () => void;
|
|
158
|
+
};
|
|
159
|
+
declare const Root: ({ mode, openDelay, closeDelay, width, position, gutter, offset, hideWhenDetached, positioning, withinPortal, container, children, open, defaultOpen, autoFocus, restoreFocus, modal, onOpenChange, onClose, onPointerDownOutside, ...rest }: PopoverProps) => import("react").JSX.Element;
|
|
160
|
+
export type PopoverTriggerProps = ArkPopover.TriggerProps;
|
|
161
|
+
/** Ark's trigger, plus the hover handlers in `mode="hover"`. Ark merges them
|
|
162
|
+
* with its own, so `asChild` and the click/keyboard toggle are untouched. */
|
|
163
|
+
declare const Trigger: ({ onPointerEnter, onPointerLeave, onClickCapture, ...rest }: PopoverTriggerProps) => import("react").JSX.Element;
|
|
164
|
+
export type PopoverContentProps = ArkPopover.ContentProps & WithTestId;
|
|
165
|
+
declare const Content: ({ className, children, testId, onPointerEnter, onPointerLeave, onPointerDown, onFocus, ...rest }: PopoverContentProps) => import("react").JSX.Element;
|
|
166
|
+
export type PopoverHeaderProps = ComponentPropsWithoutRef<"div"> & WithTestId;
|
|
167
|
+
/** Fixed slot above the scrolling Body — a search input, filters, etc. */
|
|
168
|
+
declare const Header: ({ className, testId, ...rest }: PopoverHeaderProps) => import("react").JSX.Element;
|
|
169
|
+
export type PopoverFooterProps = ComponentPropsWithoutRef<"div"> & WithTestId;
|
|
170
|
+
/** Fixed slot below the scrolling Body. */
|
|
171
|
+
declare const Footer: ({ className, testId, ...rest }: PopoverFooterProps) => import("react").JSX.Element;
|
|
172
|
+
export type PopoverBodyProps = ComponentPropsWithoutRef<"div"> & WithTestId;
|
|
173
|
+
/** The scroll region; hosts render their rows (and any empty message) here. */
|
|
174
|
+
declare const Body: ({ className, testId, ...rest }: PopoverBodyProps) => import("react").JSX.Element;
|
|
175
|
+
export type PopoverAnchorProps = ArkPopover.AnchorProps;
|
|
176
|
+
export declare const Popover: {
|
|
177
|
+
Root: typeof Root;
|
|
178
|
+
Trigger: typeof Trigger;
|
|
179
|
+
/** Positions the panel without attaching any click/keyboard trigger
|
|
180
|
+
* semantics — for a host that already owns its own click resolution
|
|
181
|
+
* (e.g. `Schedule`'s drag-vs-click gesture) and only needs the panel to
|
|
182
|
+
* float relative to a given element. */
|
|
183
|
+
Anchor: import("react").ForwardRefExoticComponent<ArkPopover.AnchorProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
184
|
+
Content: typeof Content;
|
|
185
|
+
Header: typeof Header;
|
|
186
|
+
Body: typeof Body;
|
|
187
|
+
Footer: typeof Footer;
|
|
188
|
+
};
|
|
189
|
+
export {};
|
|
190
|
+
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../src/components/popover/popover.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/progress/index.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,QAAQ,EACR,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,eAAe,GACrB,MAAM,YAAY,CAAA"}
|