@42-central/ui-react 0.0.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +453 -1
- 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-ACE7FBWE.js +216 -0
- package/dist/chunk-ACE7FBWE.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-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-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-PJL4ZL5V.js +639 -0
- package/dist/chunk-PJL4ZL5V.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-TMMEJKLI.js +363 -0
- package/dist/chunk-TMMEJKLI.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-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 +82 -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 +6582 -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 +29 -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 +24 -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 +291 -0
- package/dist/components/schedule/schedule-geometry.d.ts.map +1 -0
- package/dist/components/schedule/schedule-grid-gesture.d.ts +288 -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 +841 -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 +1275 -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 +125 -0
- package/src/components/alert/alert.tsx +158 -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 +403 -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 +517 -0
- package/src/components/notification/index.ts +20 -0
- package/src/components/notification/notification.test.tsx +306 -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 +209 -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 +181 -0
- package/src/components/schedule/schedule-dates.test.ts +771 -0
- package/src/components/schedule/schedule-dates.ts +721 -0
- package/src/components/schedule/schedule-day-view.tsx +30 -0
- package/src/components/schedule/schedule-days-view.tsx +277 -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 +157 -0
- package/src/components/schedule/schedule-event-chip.tsx +1176 -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 +461 -0
- package/src/components/schedule/schedule-grid-gesture.test.ts +153 -0
- package/src/components/schedule/schedule-grid-gesture.ts +567 -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 +688 -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 +136 -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 +1609 -0
- package/src/components/schedule/schedule-toolbar.tsx +264 -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 +1149 -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 +305 -0
- package/src/components/schedule/schedule.test.tsx +4268 -0
- package/src/components/schedule/schedule.tsx +1038 -0
- package/src/components/schedule/use-event-create.ts +590 -0
- package/src/components/schedule/use-event-drag.ts +504 -0
- package/src/components/schedule/use-event-resize.ts +563 -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 +1275 -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,45 @@
|
|
|
1
|
+
import { type DateValue } from "@internationalized/date";
|
|
2
|
+
/**
|
|
3
|
+
* The `Date ↔ DateValue` boundary (RFC §4/§13, `docs/rfcs/date-picker.md`) — the one place a
|
|
4
|
+
* native `Date` *instant* converts to/from Ark's wall-calendar `DateValue`
|
|
5
|
+
* (`CalendarDate | CalendarDateTime | ZonedDateTime`). `Calendar` and (later) `DatePicker` both
|
|
6
|
+
* funnel every conversion through here, so there is exactly one audited crossing point instead
|
|
7
|
+
* of one per component.
|
|
8
|
+
*
|
|
9
|
+
* `@internationalized/date` internals are deliberately NOT re-exported from this module — keep
|
|
10
|
+
* the public surface to the boundary functions below (PR3's `date-picker/index.ts` re-exports
|
|
11
|
+
* exactly one unrelated helper, `getLocalTimeZone`, directly from the library itself).
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* A range value: `{ start, end }`, each independently nullable (a real "unset" endpoint, never
|
|
15
|
+
* `undefined`). Mirrors `Calendar`/`DatePicker`'s `range` value shape.
|
|
16
|
+
*/
|
|
17
|
+
export type DateRangeValue = {
|
|
18
|
+
start: Date | null;
|
|
19
|
+
end: Date | null;
|
|
20
|
+
};
|
|
21
|
+
/** Convert a native `Date` instant to Ark's `DateValue`, interpreted in `timeZone`. */
|
|
22
|
+
export declare function dateToCalendarValue(date: Date, timeZone: string): DateValue;
|
|
23
|
+
/**
|
|
24
|
+
* Convert Ark's `DateValue` back to a native `Date`. A `ZonedDateTime` (what `dateToCalendarValue`
|
|
25
|
+
* produces) already carries its own zone/offset — its `toDate()` takes no argument and would
|
|
26
|
+
* silently ignore a mismatched `timeZone` here — while a plain `CalendarDate`/`CalendarDateTime`
|
|
27
|
+
* (what the day-grid's own calendar arithmetic produces) needs one to resolve to an instant, so
|
|
28
|
+
* branch on which shape we actually got rather than assuming the caller's `dateToCalendarValue`
|
|
29
|
+
* origin.
|
|
30
|
+
*/
|
|
31
|
+
export declare function calendarValueToDate(value: DateValue, timeZone: string): Date;
|
|
32
|
+
/**
|
|
33
|
+
* Wrap a public value into Ark's array contract. `undefined` stays uncontrolled (Ark's own
|
|
34
|
+
* default takes over); `null` — or an all-null range — clears to `[]`; a single `Date` becomes a
|
|
35
|
+
* one-element array; a range pushes only its defined ends, so a mid-selection range
|
|
36
|
+
* (`{ start, end: null }`) naturally comes out length 1.
|
|
37
|
+
*/
|
|
38
|
+
export declare function toArkValues(value: Date | DateRangeValue | null | undefined, timeZone: string): DateValue[] | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* The inverse of `toArkValues` — Ark's `value` array back to the public shape. `range` picks
|
|
41
|
+
* which shape to produce; a length-1 array under `range` is a mid-selection (`start` set,
|
|
42
|
+
* `end` still `null`), not an error.
|
|
43
|
+
*/
|
|
44
|
+
export declare function fromArkValues(values: DateValue[], range: boolean, timeZone: string): Date | DateRangeValue | null;
|
|
45
|
+
//# sourceMappingURL=date-value.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-value.d.ts","sourceRoot":"","sources":["../../src/lib/date-value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,yBAAyB,CAAA;AAElE;;;;;;;;;;GAUG;AAEH;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG;IAAE,KAAK,EAAE,IAAI,GAAG,IAAI,CAAC;IAAC,GAAG,EAAE,IAAI,GAAG,IAAI,CAAA;CAAE,CAAA;AAErE,uFAAuF;AACvF,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,SAAS,CAE3E;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAE5E;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,KAAK,EAAE,IAAI,GAAG,cAAc,GAAG,IAAI,GAAG,SAAS,EAC/C,QAAQ,EAAE,MAAM,GACf,SAAS,EAAE,GAAG,SAAS,CAQzB;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,SAAS,EAAE,EACnB,KAAK,EAAE,OAAO,EACd,QAAQ,EAAE,MAAM,GACf,IAAI,GAAG,cAAc,GAAG,IAAI,CAU9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dev-warn.d.ts","sourceRoot":"","sources":["../../src/lib/dev-warn.ts"],"names":[],"mappings":"AAcA,wBAAgB,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAG7C"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where the focused state lives — which selector the ring hangs off.
|
|
3
|
+
*
|
|
4
|
+
* - `focus-visible` — the CSS pseudo-class, on the element itself. The default,
|
|
5
|
+
* and what you want for any ordinary `<button>`, `<a>` or `tabIndex` element.
|
|
6
|
+
* - `data-focus-visible` — Zag's attribute, mirrored onto every part of a
|
|
7
|
+
* machine-driven control (`Checkbox`, `RadioGroup`, `Switch`,
|
|
8
|
+
* `ChoiceCardGroup`) whose real focus target is a visually-hidden `<input>`.
|
|
9
|
+
* The visible part never receives DOM focus, so `:focus-visible` can never
|
|
10
|
+
* match it.
|
|
11
|
+
*/
|
|
12
|
+
export type FocusSource = "focus-visible" | "data-focus-visible";
|
|
13
|
+
/**
|
|
14
|
+
* Which color the ring paints in.
|
|
15
|
+
*
|
|
16
|
+
* - `brand` — a fixed `brand-500`, independent of the element's own `color`.
|
|
17
|
+
* The right answer almost everywhere, and the default.
|
|
18
|
+
* - `palette` — the active palette's `--c-text`. Only for a control that sits
|
|
19
|
+
* *inside* an already-accented surface, where a brand ring would read as a
|
|
20
|
+
* second, unrelated color stacked on the one the surface carries.
|
|
21
|
+
*
|
|
22
|
+
* `--c-text`, not `--c-solid`, and at full opacity — because it is the one
|
|
23
|
+
* slot that flips with the theme (700 light, 300 dark), so it can be dark on
|
|
24
|
+
* a pale surface and pale on a dark one. `--c-solid` is 500 in *both*, which
|
|
25
|
+
* leaves it a mid-tone with nowhere to go against a light background, and no
|
|
26
|
+
* alpha can fix that: opacity only ever composites the ring toward whatever
|
|
27
|
+
* sits behind it. Measured on a Schedule chip, `--c-solid` rings at 2.69:1
|
|
28
|
+
* against the grid and 1.80:1 against the chip's own border; `--c-text` rings
|
|
29
|
+
* at 5.41:1 and 3.62:1, clearing the 3:1 that WCAG 2.2 SC 1.4.11 asks for.
|
|
30
|
+
*/
|
|
31
|
+
export type FocusRing = "brand" | "palette";
|
|
32
|
+
export type FocusStylesOptions = {
|
|
33
|
+
/**
|
|
34
|
+
* Where the focused state lives — the CSS pseudo-class (default), or Zag's
|
|
35
|
+
* `data-focus-visible` attribute when you're styling a part of an Ark/Zag
|
|
36
|
+
* machine whose real focus target is a visually-hidden input.
|
|
37
|
+
*/
|
|
38
|
+
source?: FocusSource;
|
|
39
|
+
/**
|
|
40
|
+
* Ring color: the kit's fixed `brand-500` (default), or the active palette's
|
|
41
|
+
* `--c-text` for a control nested inside an accented surface.
|
|
42
|
+
*/
|
|
43
|
+
ring?: FocusRing;
|
|
44
|
+
/**
|
|
45
|
+
* Gap between the element and its ring, painted in the page background. Keep
|
|
46
|
+
* it on (the default) so the ring stays legible against the element's own
|
|
47
|
+
* fill. Turn it off for something flush inside a container — or sitting on
|
|
48
|
+
* any surface that *isn't* the page background, where the gap would punch a
|
|
49
|
+
* mismatched hole and you want to supply your own `ring-offset-*` colors.
|
|
50
|
+
*/
|
|
51
|
+
offset?: boolean;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* The kit's keyboard-focus treatment — one source of truth for every focus
|
|
55
|
+
* ring in the library, and the supported way for consumers to put that same
|
|
56
|
+
* ring on their own elements.
|
|
57
|
+
*
|
|
58
|
+
* Reach for it whenever you render something focusable that isn't already a
|
|
59
|
+
* kit component: a custom trigger, a bare `<button>` wrapping a display
|
|
60
|
+
* component, a link styled as something else.
|
|
61
|
+
*
|
|
62
|
+
* ```tsx
|
|
63
|
+
* import { cn, focusStyles } from "@42/ui-react"
|
|
64
|
+
*
|
|
65
|
+
* <button type="button" className={cn(focusStyles(), "rounded-full")}>…</button>
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* Three axes, and only three. Width and alpha are deliberately *not* options:
|
|
69
|
+
* the point of a single ring is that a keyboard user never has to re-learn what
|
|
70
|
+
* "focused" looks like, so every ring the kit draws is 2px and fully opaque.
|
|
71
|
+
*
|
|
72
|
+
* The ring is `brand-500` by default rather than the `--c-solid` slot the rest
|
|
73
|
+
* of the color system runs on. That's deliberate: focus is an accessibility
|
|
74
|
+
* affordance, not decoration, so it stays the same recognisable shape no matter
|
|
75
|
+
* what `color` the thing it sits on happens to use — a green badge and a red
|
|
76
|
+
* button get the same ring. `ring: "palette"` is the exception, for a control
|
|
77
|
+
* nested inside a surface that already carries the palette.
|
|
78
|
+
*
|
|
79
|
+
* `offset: true` means *the gap is the page background*. An element on any
|
|
80
|
+
* other surface — a tinted table header, a colored chip — passes
|
|
81
|
+
* `offset: false` and supplies its own `ring-offset-*` pair matched to that
|
|
82
|
+
* surface.
|
|
83
|
+
*
|
|
84
|
+
* What stays hand-written, on purpose:
|
|
85
|
+
* - a ring on a **pseudo-element** rather than the element itself (`Schedule`'s
|
|
86
|
+
* resize grip, `DataTable`'s column-resize handle) — it outlines the small
|
|
87
|
+
* visible mark, not the oversized hit box, and has its own shape and offset;
|
|
88
|
+
* - a ring whose color comes from **`currentColor`** (`Notification`'s actions,
|
|
89
|
+
* which inherit the status hue);
|
|
90
|
+
* - **`ring-inset`** rows inside a scroller (`TreeSelect`, `TreeMultiSelect`);
|
|
91
|
+
* - the **shell** idiom — accent border plus a soft halo on a wrapper whose
|
|
92
|
+
* focus lives on a descendant (`Input`'s chrome, `SegmentGroup`'s tray);
|
|
93
|
+
* - a bare `focus:outline-none` with no ring at all, on overlay surfaces that
|
|
94
|
+
* receive *programmatic* focus (`Modal`, `Drawer`, `Popover`, `Tooltip`).
|
|
95
|
+
*
|
|
96
|
+
* Note these classes are inert until the element they land on is actually
|
|
97
|
+
* focusable — `:focus-visible` never matches a plain `<span>` or `<div>`. So a
|
|
98
|
+
* display component (`Badge`, `Kbd`, `ThemeIcon`) can carry them unconditionally
|
|
99
|
+
* and only light up once `asChild` renders it onto a real `<button>`/`<a>`.
|
|
100
|
+
*/
|
|
101
|
+
export declare const focusStyles: ({ source, ring, offset, }?: FocusStylesOptions) => string;
|
|
102
|
+
//# sourceMappingURL=focus-styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"focus-styles.d.ts","sourceRoot":"","sources":["../../src/lib/focus-styles.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG,oBAAoB,CAAA;AAEhE;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;AAqC3C,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;;OAIG;IACH,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,eAAO,MAAM,WAAW,+BAIrB,kBAAkB,KAAQ,MAAsE,CAAA"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { FocusEvent, Ref } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* `FormControlProps` — the kit's *library-agnostic* contract for a form control.
|
|
4
|
+
*
|
|
5
|
+
* The kit ships no form-library adapter: this contract **is** the integration.
|
|
6
|
+
* Every control exposes the same controlled surface, so react-hook-form,
|
|
7
|
+
* TanStack Form, Formik, or a plain `<form>` can bind it with no kit-specific
|
|
8
|
+
* glue. There are two flavours of `onChange`, by design — they map 1:1 onto how
|
|
9
|
+
* the form libraries themselves split native vs. composite controls:
|
|
10
|
+
*
|
|
11
|
+
* - **Custom controls** (`Select`, `MultiSelect`, `Checkbox`, …) are
|
|
12
|
+
* **value-based**: `onChange(value)` receives the next value directly. This
|
|
13
|
+
* is the shape of RHF's `<Controller>` `field.onChange` and TanStack's
|
|
14
|
+
* `field.handleChange`, so binding is `onChange={field.onChange}` /
|
|
15
|
+
* `onChange={field.handleChange}`. These controls implement
|
|
16
|
+
* `FormControlProps<T>`.
|
|
17
|
+
* - **Native controls** (`TextInput`, `Input`, `Textarea`, `PasswordInput`) are
|
|
18
|
+
* **event-based**: `onChange(event)` is forwarded straight to the DOM
|
|
19
|
+
* element, so RHF's `{...register(name)}` and a native event handler work as
|
|
20
|
+
* usual. These do *not* implement this type — they extend the native element
|
|
21
|
+
* props instead.
|
|
22
|
+
*
|
|
23
|
+
* Three members are load-bearing for the target libraries and every control must
|
|
24
|
+
* honour them:
|
|
25
|
+
*
|
|
26
|
+
* - `onBlur` — drives "touched"/"blurred" validation (RHF `mode: "onBlur"`,
|
|
27
|
+
* TanStack `field.handleBlur`). Forward it to the control's focusable element.
|
|
28
|
+
* - `ref` — must land on the **focusable element** (the trigger / first input),
|
|
29
|
+
* so RHF's `shouldFocusError` / `setFocus` can focus the offending control.
|
|
30
|
+
* - `name` — must produce a **submittable** value (a real or hidden input /
|
|
31
|
+
* `<select>`), so a native `<form>` submit includes the field.
|
|
32
|
+
*
|
|
33
|
+
* `invalid` is independent of the `Field` `error` slot: a control reads it as
|
|
34
|
+
* `invalid || error != null || fieldContext.invalid`, so a form library can flip
|
|
35
|
+
* the red state from `fieldState.invalid` even when the message lives elsewhere.
|
|
36
|
+
*
|
|
37
|
+
* Generic controls (`Select<Data>`, `Slider<V>`, …) can't all literally
|
|
38
|
+
* `extends FormControlProps<T>` without awkward `T` plumbing — they pick the
|
|
39
|
+
* matching members and reference this type in their docs. Non-generic controls
|
|
40
|
+
* (`Checkbox`, `Switch`, `RadioGroup`, …) extend it directly for compile-time
|
|
41
|
+
* conformance. It is a type + authoring checklist, never a runtime dependency.
|
|
42
|
+
*
|
|
43
|
+
* @typeParam T The control's natural value type (`string | null`, `string[]`,
|
|
44
|
+
* `number`, `boolean`, `File[]`, …).
|
|
45
|
+
* @typeParam El The focusable element `ref`/`onBlur` target (defaults to
|
|
46
|
+
* `HTMLElement`; narrow it to e.g. `HTMLButtonElement`).
|
|
47
|
+
*/
|
|
48
|
+
export interface FormControlProps<T, El extends HTMLElement = HTMLElement> {
|
|
49
|
+
/** Controlled value. `undefined` means uncontrolled; `null` is a real value. */
|
|
50
|
+
value?: T;
|
|
51
|
+
/** Uncontrolled initial value. Ignored once `value` is provided. */
|
|
52
|
+
defaultValue?: T;
|
|
53
|
+
/** Fires with the next *value* (not a DOM event). */
|
|
54
|
+
onChange?: (value: T) => void;
|
|
55
|
+
/** Forwarded to the focusable element; drives touched/blurred validation. */
|
|
56
|
+
onBlur?: (event: FocusEvent<El>) => void;
|
|
57
|
+
/** Field name for native form submission and form-library field identity. */
|
|
58
|
+
name?: string;
|
|
59
|
+
/** Lands on the focusable element (trigger/input) for focus-on-error. */
|
|
60
|
+
ref?: Ref<El>;
|
|
61
|
+
/** Red invalid state, OR'd with `error != null` and `Field` context. */
|
|
62
|
+
invalid?: boolean;
|
|
63
|
+
/** Dims and blocks interaction. */
|
|
64
|
+
disabled?: boolean;
|
|
65
|
+
/** Keeps full contrast but blocks edits. */
|
|
66
|
+
readOnly?: boolean;
|
|
67
|
+
/** Semantic required flag (and, in a `Field`, the required indicator). */
|
|
68
|
+
required?: boolean;
|
|
69
|
+
/** Explicit id for label association when composing `Field` manually. */
|
|
70
|
+
id?: string;
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=form-control.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-control.d.ts","sourceRoot":"","sources":["../../src/lib/form-control.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAM,WAAW,gBAAgB,CAAC,CAAC,EAAE,EAAE,SAAS,WAAW,GAAG,WAAW;IACvE,gFAAgF;IAChF,KAAK,CAAC,EAAE,CAAC,CAAA;IACT,oEAAoE;IACpE,YAAY,CAAC,EAAE,CAAC,CAAA;IAChB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAA;IAC7B,6EAA6E;IAC7E,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,EAAE,CAAC,KAAK,IAAI,CAAA;IACxC,6EAA6E;IAC7E,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,yEAAyE;IACzE,GAAG,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAA;IACb,wEAAwE;IACxE,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,yEAAyE;IACzE,EAAE,CAAC,EAAE,MAAM,CAAA;CACZ"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
|
+
export type GradientDir = "to-r" | "to-l" | "to-t" | "to-b" | "to-tr" | "to-tl" | "to-br" | "to-bl";
|
|
3
|
+
export type GradientProps = {
|
|
4
|
+
from?: string;
|
|
5
|
+
to?: string;
|
|
6
|
+
via?: string;
|
|
7
|
+
/** Gradient direction. Defaults to `'to-r'`. */
|
|
8
|
+
dir?: GradientDir;
|
|
9
|
+
};
|
|
10
|
+
export declare const TW_VIA_STOPS: string;
|
|
11
|
+
/**
|
|
12
|
+
* Build CSS custom property overrides for a Tailwind gradient.
|
|
13
|
+
*
|
|
14
|
+
* `fromVar` / `toVar` / `viaVar` let callers redirect to intermediate CSS vars
|
|
15
|
+
* (e.g. `--card-gradient-from`) instead of writing `--tw-gradient-*` directly.
|
|
16
|
+
* This is needed when the gradient lives on a pseudo-element that reads the
|
|
17
|
+
* vars via CSS cascade rather than receiving them through a Tailwind utility.
|
|
18
|
+
*
|
|
19
|
+
* `fromDefault` / `toDefault` fill in values when the caller passes no `from`
|
|
20
|
+
* or `to` and the CVA class has no static fallback.
|
|
21
|
+
*/
|
|
22
|
+
export declare function buildGradientVars(g: GradientProps | undefined, { fromVar, toVar, viaVar, fromDefault, toDefault, }?: {
|
|
23
|
+
fromVar?: string;
|
|
24
|
+
toVar?: string;
|
|
25
|
+
viaVar?: string;
|
|
26
|
+
fromDefault?: string;
|
|
27
|
+
toDefault?: string;
|
|
28
|
+
}): CSSProperties;
|
|
29
|
+
export declare const GRADIENT_DIR_CLASS: Record<GradientDir, string>;
|
|
30
|
+
export declare const GRADIENT_DIR_BEFORE_CLASS: Record<GradientDir, string>;
|
|
31
|
+
//# sourceMappingURL=gradient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gradient.d.ts","sourceRoot":"","sources":["../../src/lib/gradient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAE1C,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAA;AAEnG,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,gDAAgD;IAChD,GAAG,CAAC,EAAE,WAAW,CAAA;CAClB,CAAA;AAGD,eAAO,MAAM,YAAY,QAI+B,CAAA;AAExD;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAC/B,CAAC,EAAE,aAAa,GAAG,SAAS,EAC5B,EACE,OAA8B,EAC9B,KAA0B,EAC1B,MAA4B,EAC5B,WAAW,EACX,SAAS,GACV,GAAE;IACD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;CACd,GACL,aAAa,CAWf;AAGD,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAS1D,CAAA;AAGD,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CASjE,CAAA"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* The locale used when nothing configures one, and what `"auto"` reports during SSR and the
|
|
4
|
+
* hydration render. Pinned to the same tag as Ark's own `useLocaleContext()` default so the two
|
|
5
|
+
* halves of a `Calendar` — Ark's machine and this kit's formatting around it — cannot disagree,
|
|
6
|
+
* the same "one constant, two readers" reasoning `lib/theme.ts` uses for the theme storage key.
|
|
7
|
+
*/
|
|
8
|
+
export declare const DEFAULT_LOCALE = "en-US";
|
|
9
|
+
/**
|
|
10
|
+
* What `timeZone="auto"` reports during SSR and the hydration render, before the host zone is
|
|
11
|
+
* readable. Note this is *not* the default for the `timeZone` prop itself — that is `"auto"`
|
|
12
|
+
* (see `useTimeZone`), because a wrong zone is wrong data rather than merely an unfamiliar
|
|
13
|
+
* format. UTC is the one zone every runtime agrees on.
|
|
14
|
+
*/
|
|
15
|
+
export declare const DEFAULT_TIME_ZONE = "UTC";
|
|
16
|
+
/**
|
|
17
|
+
* The active locale as a concrete BCP-47 tag, never `"auto"` and never `undefined`.
|
|
18
|
+
*
|
|
19
|
+
* `override` is the component's own `locale` prop, so precedence reads
|
|
20
|
+
* **prop → provider → `DEFAULT_LOCALE`** — the same shape as `useLinkComponent`.
|
|
21
|
+
*
|
|
22
|
+
* const locale = useLocale(props.locale)
|
|
23
|
+
*/
|
|
24
|
+
export declare const useLocale: (override?: "auto" | (string & {})) => string;
|
|
25
|
+
/**
|
|
26
|
+
* The active time zone as a concrete IANA name, never `"auto"` and never `undefined`.
|
|
27
|
+
*
|
|
28
|
+
* `override` is the component's own `timeZone` prop, so precedence reads
|
|
29
|
+
* **prop → provider → `"auto"`**. The default is `"auto"` rather than a fixed zone because a
|
|
30
|
+
* wrong zone shows wrong times, not merely an unfamiliar format — and `"auto"` costs a
|
|
31
|
+
* client-only app nothing, since `getServerSnapshot` never runs there and the first render is
|
|
32
|
+
* already the true zone.
|
|
33
|
+
*
|
|
34
|
+
* const timeZone = useTimeZone(props.timeZone)
|
|
35
|
+
*/
|
|
36
|
+
export declare const useTimeZone: (override?: "auto" | (string & {})) => string;
|
|
37
|
+
/**
|
|
38
|
+
* Dev-only guard for the one RTL setup that silently breaks: direction stated on the DOM
|
|
39
|
+
* (`<html dir="rtl">`, or an ancestor) while no locale says so. Ark derives `dir` from the
|
|
40
|
+
* locale alone and stamps it on every part, so its parts render `ltr` inside an `rtl` page —
|
|
41
|
+
* and its arrow-key handling runs `ltr` too, which is why the kit can't simply let the parts
|
|
42
|
+
* inherit from the DOM: the direction has to be known in JS, i.e. come from `IntlProvider`.
|
|
43
|
+
*
|
|
44
|
+
* Returns a callback ref for an Ark root. It reads the **parent**'s direction, since the root
|
|
45
|
+
* itself carries Ark's stamped `dir`. Runs on attach, so SSR and hydration never see it.
|
|
46
|
+
*/
|
|
47
|
+
export declare const useDirectionCheck: () => (node: HTMLElement | null) => void;
|
|
48
|
+
export type IntlProviderProps = {
|
|
49
|
+
/** A BCP-47 tag (`"fr-FR"`), or `"auto"` to follow the browser. Inherited from an outer
|
|
50
|
+
* `IntlProvider` when omitted, and `"en-US"` when there is none. */
|
|
51
|
+
locale?: "auto" | (string & {});
|
|
52
|
+
/** An IANA zone (`"Europe/Paris"`), or `"auto"` to follow the host. Inherited from an outer
|
|
53
|
+
* `IntlProvider` when omitted, and `"auto"` when there is none. @default "auto" */
|
|
54
|
+
timeZone?: "auto" | (string & {});
|
|
55
|
+
children?: ReactNode;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Wrap the app once to state how it formats dates, times and numbers:
|
|
59
|
+
* `<IntlProvider locale="fr-FR" timeZone="Europe/Paris"><App /></IntlProvider>`.
|
|
60
|
+
*
|
|
61
|
+
* Both props are optional and independent — setting only `timeZone` leaves the locale alone, and
|
|
62
|
+
* a nested provider inherits whichever value it doesn't set, so a section can override one
|
|
63
|
+
* without restating the other.
|
|
64
|
+
*
|
|
65
|
+
* It resolves both values and publishes the results, so `"auto"` is subscribed to once here
|
|
66
|
+
* rather than once per component, and everything downstream — Ark's machines included — reads a
|
|
67
|
+
* concrete tag and zone.
|
|
68
|
+
*
|
|
69
|
+
* Text direction follows the locale: `locale="ar"` makes every Ark part `rtl`. `<html dir="rtl">`
|
|
70
|
+
* alone never reaches Ark, which is what `useDirectionCheck` warns about in development.
|
|
71
|
+
*
|
|
72
|
+
* This provider carries the inputs to `Intl`, and nothing else. Translated microcopy stays on
|
|
73
|
+
* each component's own `translations` prop by design (`code-style.md`); there is deliberately no
|
|
74
|
+
* message context here.
|
|
75
|
+
*/
|
|
76
|
+
export declare const IntlProvider: ({ locale, timeZone, children }: IntlProviderProps) => import("react").JSX.Element;
|
|
77
|
+
//# sourceMappingURL=intl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intl.d.ts","sourceRoot":"","sources":["../../src/lib/intl.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAiB,KAAK,SAAS,EAAiD,MAAM,OAAO,CAAA;AA+BpG;;;;;GAKG;AACH,eAAO,MAAM,cAAc,UAAU,CAAA;AAErC;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,QAAQ,CAAA;AAiDtC;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,cAAe,MAAM,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,KAAG,MAS7D,CAAA;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,cAAe,MAAM,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,KAAG,MAS/D,CAAA;AAMD;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,eAGnB,WAAW,GAAG,IAAI,SAa5B,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B;yEACqE;IACrE,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IAC/B;wFACoF;IACpF,QAAQ,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACjC,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,CAAA;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,YAAY,mCAAoC,iBAAiB,gCAS7E,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type ElementType, type ReactNode } from "react";
|
|
2
|
+
export type LinkComponentProviderProps = {
|
|
3
|
+
/** Substituted for a plain `<a>` wherever a consuming component renders a
|
|
4
|
+
* link, so navigation stays client-side. */
|
|
5
|
+
component: ElementType;
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
/** Wrap the app once: `<LinkComponentProvider component={Link}><App/></LinkComponentProvider>`. */
|
|
9
|
+
export declare const LinkComponentProvider: ({ component, children }: LinkComponentProviderProps) => import("react").JSX.Element;
|
|
10
|
+
/** `override` (a per-instance `linkComponent` prop) wins; else the provider's
|
|
11
|
+
* component; else `undefined` — the caller falls back to its own default tag. */
|
|
12
|
+
export declare const useLinkComponent: (override?: ElementType) => ElementType | undefined;
|
|
13
|
+
//# sourceMappingURL=link-component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link-component.d.ts","sourceRoot":"","sources":["../../src/lib/link-component.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAiB,KAAK,WAAW,EAAE,KAAK,SAAS,EAAc,MAAM,OAAO,CAAA;AAYnF,MAAM,MAAM,0BAA0B,GAAG;IACvC;iDAC6C;IAC7C,SAAS,EAAE,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,CAAA;AAED,mGAAmG;AACnG,eAAO,MAAM,qBAAqB,4BAA6B,0BAA0B,gCAExF,CAAA;AAED;kFACkF;AAClF,eAAO,MAAM,gBAAgB,cAAe,WAAW,KAAG,WAAW,GAAG,SAGvE,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Ref } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* `mergeRefs` — compose several refs into one callback ref.
|
|
4
|
+
*
|
|
5
|
+
* Components that keep an internal ref to a node (e.g. Select focusing its
|
|
6
|
+
* trigger) but must also expose that node to the caller's `ref` (for
|
|
7
|
+
* react-hook-form's focus-on-error) route both through this. Handles function
|
|
8
|
+
* and object refs and skips nullish ones, so it's safe to pass an optional
|
|
9
|
+
* external `ref` straight in.
|
|
10
|
+
*/
|
|
11
|
+
export declare function mergeRefs<T>(...refs: (Ref<T> | undefined)[]): (node: T | null) => void;
|
|
12
|
+
//# sourceMappingURL=merge-refs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merge-refs.d.ts","sourceRoot":"","sources":["../../src/lib/merge-refs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAEhC;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,EAAE,GAAG,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI,KAAK,IAAI,CAQtF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ReactNode, type RefObject } from "react";
|
|
2
|
+
export type OverlayContainerProviderProps = {
|
|
3
|
+
/** A ref to the element nested overlays should portal into — a
|
|
4
|
+
* Modal/Drawer positioner, a Schedule scroller. Still `null` (not yet
|
|
5
|
+
* attached) reads as "no container", i.e. `document.body`. */
|
|
6
|
+
value: RefObject<HTMLElement | null>;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export declare const OverlayContainerProvider: ({ value, children }: OverlayContainerProviderProps) => import("react").JSX.Element;
|
|
10
|
+
/** Resolves an overlay's portal target, shaped for Ark's `<Portal container>`:
|
|
11
|
+
* `override` (a per-instance `container` prop) wins; else the enclosing
|
|
12
|
+
* provider's ref; else `undefined` — Ark falls back to `document.body`. */
|
|
13
|
+
export declare const useOverlayContainer: (override?: HTMLElement | null) => RefObject<HTMLElement | null> | undefined;
|
|
14
|
+
//# sourceMappingURL=overlay-container.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overlay-container.d.ts","sourceRoot":"","sources":["../../src/lib/overlay-container.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAiB,KAAK,SAAS,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAA;AAsC1F,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;mEAE+D;IAC/D,KAAK,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IACpC,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,wBAAwB,wBAAyB,6BAA6B,gCAE1F,CAAA;AAED;;4EAE4E;AAC5E,eAAO,MAAM,mBAAmB,cACnB,WAAW,GAAG,IAAI,KAC5B,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,SAMlC,CAAA"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* One outside click dismisses one layer.
|
|
4
|
+
*
|
|
5
|
+
* Every dismissable surface (zag's `trackDismissableElement`) listens for
|
|
6
|
+
* pointerdown on the whole document and closes itself when the target falls
|
|
7
|
+
* outside it. Nested layers don't coordinate: a click on a Modal's backdrop
|
|
8
|
+
* while a DatePicker inside it is open lands outside *both*, so both close —
|
|
9
|
+
* the picker and the dialog the user was filling in. Zag only spares the
|
|
10
|
+
* parent when the child is pointer-blocking (pickers aren't) or was removed a
|
|
11
|
+
* tick earlier (the parent's listener runs first, so it never is), and its
|
|
12
|
+
* `layerStack` isn't exported for us to ask.
|
|
13
|
+
*
|
|
14
|
+
* So the kit tracks it itself. A parent (`Modal`, `Drawer`, `Popover`) owns a
|
|
15
|
+
* set of open children and vetoes its own outside-dismiss while that set is
|
|
16
|
+
* non-empty; every floating panel registers with its nearest parent while
|
|
17
|
+
* open. The click that would have cascaded closes the innermost layer only,
|
|
18
|
+
* and the next one closes the parent.
|
|
19
|
+
*
|
|
20
|
+
* Context rather than DOM queries because context crosses portals: the
|
|
21
|
+
* registration reaches the right parent wherever the panel was portaled to —
|
|
22
|
+
* the parent's positioner, `document.body`, a custom `container`, or nowhere
|
|
23
|
+
* (`withinPortal={false}`).
|
|
24
|
+
*
|
|
25
|
+
* Pointer-down only. Escape is already top-most-only in zag, and focus can't
|
|
26
|
+
* leave a modal for a sibling layer it doesn't own.
|
|
27
|
+
*/
|
|
28
|
+
export type OverlayLayers = Set<symbol>;
|
|
29
|
+
/** For a parent layer. Spread `onPointerDownOutside` onto the Ark root
|
|
30
|
+
* (composed with the caller's own) and wrap the children that may open nested
|
|
31
|
+
* layers in `OverlayLayerProvider`. A ref'd set, not state: it's read synchronously while
|
|
32
|
+
* zag dispatches the outside event, and changing it must not re-render. */
|
|
33
|
+
export declare const useLayerGuard: <E extends Event>(onPointerDownOutside?: (event: E) => void) => {
|
|
34
|
+
layers: OverlayLayers;
|
|
35
|
+
onPointerDownOutside: (event: E) => void;
|
|
36
|
+
};
|
|
37
|
+
export declare const OverlayLayerProvider: ({ value, children, }: {
|
|
38
|
+
value: OverlayLayers;
|
|
39
|
+
children?: ReactNode;
|
|
40
|
+
}) => import("react").JSX.Element;
|
|
41
|
+
/** For a child layer: registers with the nearest parent while `open`. Keyed on
|
|
42
|
+
* `open`, not presence, so a panel playing its exit animation no longer holds
|
|
43
|
+
* the parent's next click. A layout effect so the registration is in place
|
|
44
|
+
* before the browser can deliver the next pointerdown. */
|
|
45
|
+
export declare const useNestedLayer: (open: boolean) => void;
|
|
46
|
+
/** `useNestedLayer` as an element, for call sites that only have the machine's
|
|
47
|
+
* `open` inside a render prop (`<Ark.Context>{(api) => …}</Ark.Context>`). */
|
|
48
|
+
export declare const NestedLayer: ({ open }: {
|
|
49
|
+
open: boolean;
|
|
50
|
+
}) => null;
|
|
51
|
+
//# sourceMappingURL=overlay-layer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overlay-layer.d.ts","sourceRoot":"","sources":["../../src/lib/overlay-layer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAiB,KAAK,SAAS,EAAmC,MAAM,OAAO,CAAA;AAGtF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,MAAM,aAAa,GAAG,GAAG,CAAC,MAAM,CAAC,CAAA;AAIvC;;;4EAG4E;AAC5E,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,KAAK,yBAAyB,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI;;kCAG5E,CAAC;CAOZ,CAAA;AAED,eAAO,MAAM,oBAAoB,yBAG9B;IACD,KAAK,EAAE,aAAa,CAAA;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,gCAA0F,CAAA;AAE3F;;;2DAG2D;AAC3D,eAAO,MAAM,cAAc,SAAU,OAAO,SAU3C,CAAA;AAED;+EAC+E;AAC/E,eAAO,MAAM,WAAW,aAAc;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,SAGtD,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared by Menu/Tooltip (and any future floating-panel component with the
|
|
3
|
+
* same contract): `position` accepts a component's own physical placement
|
|
4
|
+
* union `P` (Ark/Floating UI's vocabulary) plus the logical, RTL-aware
|
|
5
|
+
* horizontal sides `start` / `end`, resolved to `left` / `right` by direction.
|
|
6
|
+
*/
|
|
7
|
+
export type LogicalPosition<P extends string> = P | "start" | "end";
|
|
8
|
+
/**
|
|
9
|
+
* Map the logical `start` / `end` sides to physical placements for the active
|
|
10
|
+
* direction — Ark / Floating UI only understands physical sides; every other
|
|
11
|
+
* placement passes through unchanged. Plain conditionals rather than
|
|
12
|
+
* ts-pattern here: matching string literals against a generic union `P`
|
|
13
|
+
* defeats ts-pattern's pattern-inference machinery.
|
|
14
|
+
*/
|
|
15
|
+
export declare function resolveLogicalPlacement<P extends string>(position: LogicalPosition<P>, dir: "ltr" | "rtl"): P;
|
|
16
|
+
//# sourceMappingURL=placement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"placement.d.ts","sourceRoot":"","sources":["../../src/lib/placement.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,GAAG,OAAO,GAAG,KAAK,CAAA;AAEnE;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,MAAM,EACtD,QAAQ,EAAE,eAAe,CAAC,CAAC,CAAC,EAC5B,GAAG,EAAE,KAAK,GAAG,KAAK,GACjB,CAAC,CAIH"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `props` — drop the falsy entries from an HTML props object.
|
|
3
|
+
*
|
|
4
|
+
* The kit leans on the `attr={value || undefined}` idiom to keep boolean
|
|
5
|
+
* `data-*` / `aria-*` attributes off the DOM when they're off: React omits a
|
|
6
|
+
* prop whose value is `undefined` / `null`, but a bare `false` / `0` still
|
|
7
|
+
* renders as `data-x="false"` / `data-x="0"`. `props` does that for a whole
|
|
8
|
+
* object at once, so a cluster of state flags reads as one spread instead of N
|
|
9
|
+
* `|| undefined` tails:
|
|
10
|
+
*
|
|
11
|
+
* <ark.div
|
|
12
|
+
* data-color={color}
|
|
13
|
+
* {...props({
|
|
14
|
+
* "data-invalid": invalid,
|
|
15
|
+
* "data-disabled": disabled,
|
|
16
|
+
* "data-pointer": pointer,
|
|
17
|
+
* })}
|
|
18
|
+
* {...rest}
|
|
19
|
+
* />
|
|
20
|
+
*
|
|
21
|
+
* Falsy means JS-falsy (`false`, `0`, `""`, `null`, `undefined`, `NaN`), so a
|
|
22
|
+
* meaningful `0` (e.g. `tabIndex={0}`) is dropped too — pass those directly.
|
|
23
|
+
*
|
|
24
|
+
* The return type mirrors the runtime: every key turns optional (it may have
|
|
25
|
+
* been stripped) and its value narrows to the truthy subset — so a `boolean`
|
|
26
|
+
* flag surfaces as `?: true`, and a key that can only ever be falsy drops out
|
|
27
|
+
* of the type entirely.
|
|
28
|
+
*/
|
|
29
|
+
/** JS-falsy values that are representable in the type system (`NaN` isn't). */
|
|
30
|
+
type Falsy = false | 0 | 0n | "" | null | undefined;
|
|
31
|
+
/** Any property bag — string keys, unknown values. */
|
|
32
|
+
type Props = Record<string, unknown>;
|
|
33
|
+
/** Drop the always-falsy keys; keep the rest optional and narrowed to truthy. */
|
|
34
|
+
type Truthy<T extends Props> = {
|
|
35
|
+
[K in keyof T as Exclude<T[K], Falsy> extends never ? never : K]?: Exclude<T[K], Falsy>;
|
|
36
|
+
};
|
|
37
|
+
/** Return a copy of `source` with every falsy-valued entry removed. */
|
|
38
|
+
export declare function props<const T extends Props>(source: T): Truthy<T>;
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/lib/props.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,+EAA+E;AAC/E,KAAK,KAAK,GAAG,KAAK,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,GAAG,SAAS,CAAA;AAEnD,sDAAsD;AACtD,KAAK,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAEpC,iFAAiF;AACjF,KAAK,MAAM,CAAC,CAAC,SAAS,KAAK,IAAI;KAC5B,CAAC,IAAI,MAAM,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,SAAS,KAAK,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC;CACxF,CAAA;AAED,uEAAuE;AACvE,wBAAgB,KAAK,CAAC,KAAK,CAAC,CAAC,SAAS,KAAK,EAAE,MAAM,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAMjE"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compile-time counterpart to `dev-warn.ts` — for a "capability flag grants a
|
|
3
|
+
* gesture, and the gesture is only useful with its matching callback" pair
|
|
4
|
+
* (Pill's `withRemoveButton`/`onRemove`, Schedule's `editable`/
|
|
5
|
+
* `onEventChange`/`onEventRemove`/`onEventCreate`), require the callback at
|
|
6
|
+
* compile time whenever the flag can be resolved to a specific value at the
|
|
7
|
+
* call site.
|
|
8
|
+
*
|
|
9
|
+
* The one rule that makes this safe rather than misleading: when the flag
|
|
10
|
+
* *can't* be pinned to a literal (a plain `boolean`/string-array-typed
|
|
11
|
+
* variable, a ternary between a grant and a non-grant, an explicit
|
|
12
|
+
* `undefined`), every branch below resolves toward **requiring** the
|
|
13
|
+
* callback, never toward silently allowing its absence — verified in a
|
|
14
|
+
* scratch `.ts` file against literal, ternary, explicit-`undefined`, and
|
|
15
|
+
* plain-variable cases before this shipped. Getting the direction backwards
|
|
16
|
+
* is the actual trap here: the naive version of either type below (skip the
|
|
17
|
+
* `[T] extends [U]` tuple wrap) is *distributive* over a `boolean`-typed flag
|
|
18
|
+
* — TS expands it into a union of the whole required-shape and the whole
|
|
19
|
+
* optional-shape, and a value missing the callback still structurally
|
|
20
|
+
* matches the optional half of that union, so the "requirement" silently
|
|
21
|
+
* evaporates exactly when the flag is dynamic. Wrapping both sides of the
|
|
22
|
+
* `extends` check in a single-element tuple (`[T] extends [U]`) is the
|
|
23
|
+
* standard idiom to suppress that distribution.
|
|
24
|
+
*
|
|
25
|
+
* This only covers the direct flag↔callback correlation. It can't (and
|
|
26
|
+
* deliberately doesn't try to) express "a value inside a runtime array only
|
|
27
|
+
* narrows, never widens, a sibling prop's grant" — Schedule's own per-event
|
|
28
|
+
* `editable` vs. its schedule-level `editable` is exactly that shape, and
|
|
29
|
+
* stays a `dev-warn.ts` runtime check (`eventEditGestureExceedsSchedule`)
|
|
30
|
+
* for good reason: typing `data`'s elements against the grant would either
|
|
31
|
+
* catch nothing (too permissive) or reject ordinary API-fetched event data
|
|
32
|
+
* that just happens to use the full gesture union (too strict, false
|
|
33
|
+
* positives on the common case). See `code-style.md`'s "Capability flag +
|
|
34
|
+
* required callback" section for the full writeup and worked examples.
|
|
35
|
+
*/
|
|
36
|
+
export type RequiredIfTrue<Flag extends boolean, WhenTrue extends object> = [Flag] extends [false] ? Partial<WhenTrue> : WhenTrue;
|
|
37
|
+
/** The gestures actually granted by a `boolean | readonly Member[]`-shaped
|
|
38
|
+
* flag — `AllMembers` (the full literal universe, e.g. every
|
|
39
|
+
* `ScheduleEditGesture`) has to be a separate type param from the one
|
|
40
|
+
* `RequiredIfGranted` below tests membership of; collapsing them forces the
|
|
41
|
+
* flag to be narrowed to `readonly Member[]` for a single `Member`, which
|
|
42
|
+
* doesn't typecheck against a flag that legitimately ranges over the whole
|
|
43
|
+
* set. */
|
|
44
|
+
export type GrantedMembers<AllMembers extends string, Grant extends boolean | readonly AllMembers[]> = Grant extends true ? AllMembers : Grant extends readonly AllMembers[] ? Grant[number] : never;
|
|
45
|
+
export type RequiredIfGranted<AllMembers extends string, Grant extends boolean | readonly AllMembers[], Member extends AllMembers, WhenTrue extends object> = Member extends GrantedMembers<AllMembers, Grant> ? WhenTrue : Partial<WhenTrue>;
|
|
46
|
+
//# sourceMappingURL=required-if.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"required-if.d.ts","sourceRoot":"","sources":["../../src/lib/required-if.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAM,MAAM,cAAc,CAAC,IAAI,SAAS,OAAO,EAAE,QAAQ,SAAS,MAAM,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,GAC9F,OAAO,CAAC,QAAQ,CAAC,GACjB,QAAQ,CAAA;AAEZ;;;;;;WAMW;AACX,MAAM,MAAM,cAAc,CACxB,UAAU,SAAS,MAAM,EACzB,KAAK,SAAS,OAAO,GAAG,SAAS,UAAU,EAAE,IAC3C,KAAK,SAAS,IAAI,GAAG,UAAU,GAAG,KAAK,SAAS,SAAS,UAAU,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,KAAK,CAAA;AAEjG,MAAM,MAAM,iBAAiB,CAC3B,UAAU,SAAS,MAAM,EACzB,KAAK,SAAS,OAAO,GAAG,SAAS,UAAU,EAAE,EAC7C,MAAM,SAAS,UAAU,EACzB,QAAQ,SAAS,MAAM,IACrB,MAAM,SAAS,cAAc,CAAC,UAAU,EAAE,KAAK,CAAC,GAAG,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA"}
|