@42-central/ui-react 0.0.0 → 0.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +315 -2
- package/dist/chunk-2762HZYX.js +284 -0
- package/dist/chunk-2762HZYX.js.map +1 -0
- package/dist/chunk-2GILNBZW.js +31 -0
- package/dist/chunk-2GILNBZW.js.map +1 -0
- package/dist/chunk-2H46IXW4.js +264 -0
- package/dist/chunk-2H46IXW4.js.map +1 -0
- package/dist/chunk-2SVX3MQQ.js +78 -0
- package/dist/chunk-2SVX3MQQ.js.map +1 -0
- package/dist/chunk-3GYOIQW7.js +242 -0
- package/dist/chunk-3GYOIQW7.js.map +1 -0
- package/dist/chunk-3NZXWCGF.js +152 -0
- package/dist/chunk-3NZXWCGF.js.map +1 -0
- package/dist/chunk-44OV3PNH.js +294 -0
- package/dist/chunk-44OV3PNH.js.map +1 -0
- package/dist/chunk-5FDOOG4J.js +15 -0
- package/dist/chunk-5FDOOG4J.js.map +1 -0
- package/dist/chunk-6I4R3HR6.js +90 -0
- package/dist/chunk-6I4R3HR6.js.map +1 -0
- package/dist/chunk-6SWK4XG5.js +128 -0
- package/dist/chunk-6SWK4XG5.js.map +1 -0
- package/dist/chunk-7NZSTCJO.js +82 -0
- package/dist/chunk-7NZSTCJO.js.map +1 -0
- package/dist/chunk-7P32XCEU.js +15 -0
- package/dist/chunk-7P32XCEU.js.map +1 -0
- package/dist/chunk-AIQG7IIT.js +39 -0
- package/dist/chunk-AIQG7IIT.js.map +1 -0
- package/dist/chunk-B2LCHXUB.js +26 -0
- package/dist/chunk-B2LCHXUB.js.map +1 -0
- package/dist/chunk-BEL75C7N.js +35 -0
- package/dist/chunk-BEL75C7N.js.map +1 -0
- package/dist/chunk-BJZLQTAZ.js +3 -0
- package/dist/chunk-BJZLQTAZ.js.map +1 -0
- package/dist/chunk-BUIHQJGE.js +8 -0
- package/dist/chunk-BUIHQJGE.js.map +1 -0
- package/dist/chunk-CHTN5AHI.js +106 -0
- package/dist/chunk-CHTN5AHI.js.map +1 -0
- package/dist/chunk-CSCVTESP.js +58 -0
- package/dist/chunk-CSCVTESP.js.map +1 -0
- package/dist/chunk-EEMRRRYS.js +60 -0
- package/dist/chunk-EEMRRRYS.js.map +1 -0
- package/dist/chunk-EVVMHTCL.js +216 -0
- package/dist/chunk-EVVMHTCL.js.map +1 -0
- package/dist/chunk-FD6P6PLQ.js +153 -0
- package/dist/chunk-FD6P6PLQ.js.map +1 -0
- package/dist/chunk-FMMKEYHB.js +3 -0
- package/dist/chunk-FMMKEYHB.js.map +1 -0
- package/dist/chunk-FUWSTUDM.js +219 -0
- package/dist/chunk-FUWSTUDM.js.map +1 -0
- package/dist/chunk-G52U24GR.js +10 -0
- package/dist/chunk-G52U24GR.js.map +1 -0
- package/dist/chunk-GTKKRV5N.js +14 -0
- package/dist/chunk-GTKKRV5N.js.map +1 -0
- package/dist/chunk-HWNPXAEN.js +31 -0
- package/dist/chunk-HWNPXAEN.js.map +1 -0
- package/dist/chunk-IFWCCAQV.js +222 -0
- package/dist/chunk-IFWCCAQV.js.map +1 -0
- package/dist/chunk-IG7FBZVM.js +101 -0
- package/dist/chunk-IG7FBZVM.js.map +1 -0
- package/dist/chunk-IHYFYMHJ.js +167 -0
- package/dist/chunk-IHYFYMHJ.js.map +1 -0
- package/dist/chunk-IRXZHLUL.js +51 -0
- package/dist/chunk-IRXZHLUL.js.map +1 -0
- package/dist/chunk-IXKELBJA.js +202 -0
- package/dist/chunk-IXKELBJA.js.map +1 -0
- package/dist/chunk-J3PELDH3.js +279 -0
- package/dist/chunk-J3PELDH3.js.map +1 -0
- package/dist/chunk-JBVFWSRQ.js +21 -0
- package/dist/chunk-JBVFWSRQ.js.map +1 -0
- package/dist/chunk-MOI7B3KH.js +217 -0
- package/dist/chunk-MOI7B3KH.js.map +1 -0
- package/dist/chunk-NF5JM2YO.js +57 -0
- package/dist/chunk-NF5JM2YO.js.map +1 -0
- package/dist/chunk-NGAQITWP.js +156 -0
- package/dist/chunk-NGAQITWP.js.map +1 -0
- package/dist/chunk-NSDM3FEB.js +82 -0
- package/dist/chunk-NSDM3FEB.js.map +1 -0
- package/dist/chunk-NSOA3GMZ.js +376 -0
- package/dist/chunk-NSOA3GMZ.js.map +1 -0
- package/dist/chunk-ORTCK34Y.js +3 -0
- package/dist/chunk-ORTCK34Y.js.map +1 -0
- package/dist/chunk-P3XMBETI.js +26 -0
- package/dist/chunk-P3XMBETI.js.map +1 -0
- package/dist/chunk-P7A3BCAC.js +93 -0
- package/dist/chunk-P7A3BCAC.js.map +1 -0
- package/dist/chunk-POKDSVQT.js +223 -0
- package/dist/chunk-POKDSVQT.js.map +1 -0
- package/dist/chunk-QMW7D5GU.js +207 -0
- package/dist/chunk-QMW7D5GU.js.map +1 -0
- package/dist/chunk-QP4I37PA.js +14 -0
- package/dist/chunk-QP4I37PA.js.map +1 -0
- package/dist/chunk-R5GMMWAY.js +3 -0
- package/dist/chunk-R5GMMWAY.js.map +1 -0
- package/dist/chunk-S53FHWNG.js +30 -0
- package/dist/chunk-S53FHWNG.js.map +1 -0
- package/dist/chunk-SIG4DMNZ.js +238 -0
- package/dist/chunk-SIG4DMNZ.js.map +1 -0
- package/dist/chunk-SKPM2FRX.js +44 -0
- package/dist/chunk-SKPM2FRX.js.map +1 -0
- package/dist/chunk-TCWYBVIL.js +33 -0
- package/dist/chunk-TCWYBVIL.js.map +1 -0
- package/dist/chunk-TNNH3FVQ.js +155 -0
- package/dist/chunk-TNNH3FVQ.js.map +1 -0
- package/dist/chunk-TWGCWKRV.js +44 -0
- package/dist/chunk-TWGCWKRV.js.map +1 -0
- package/dist/chunk-U5GW5EBR.js +150 -0
- package/dist/chunk-U5GW5EBR.js.map +1 -0
- package/dist/chunk-UNSAA7YG.js +148 -0
- package/dist/chunk-UNSAA7YG.js.map +1 -0
- package/dist/chunk-UVYTJQTJ.js +14 -0
- package/dist/chunk-UVYTJQTJ.js.map +1 -0
- package/dist/chunk-VLUKI3HL.js +120 -0
- package/dist/chunk-VLUKI3HL.js.map +1 -0
- package/dist/chunk-VZ2TPU4B.js +348 -0
- package/dist/chunk-VZ2TPU4B.js.map +1 -0
- package/dist/chunk-VZH6TS7M.js +153 -0
- package/dist/chunk-VZH6TS7M.js.map +1 -0
- package/dist/chunk-WYCMIIRR.js +12 -0
- package/dist/chunk-WYCMIIRR.js.map +1 -0
- package/dist/chunk-WZB6LPQI.js +47 -0
- package/dist/chunk-WZB6LPQI.js.map +1 -0
- package/dist/chunk-YBJB7FGE.js +187 -0
- package/dist/chunk-YBJB7FGE.js.map +1 -0
- package/dist/chunk-YIQI2CF3.js +92 -0
- package/dist/chunk-YIQI2CF3.js.map +1 -0
- package/dist/chunk-YKUCSV34.js +72 -0
- package/dist/chunk-YKUCSV34.js.map +1 -0
- package/dist/chunk-YON5Y336.js +639 -0
- package/dist/chunk-YON5Y336.js.map +1 -0
- package/dist/chunk-ZP6EBROY.js +3 -0
- package/dist/chunk-ZP6EBROY.js.map +1 -0
- package/dist/colors.css +296 -0
- package/dist/components/accordion/accordion-data.d.ts +52 -0
- package/dist/components/accordion/accordion-data.d.ts.map +1 -0
- package/dist/components/accordion/accordion.d.ts +116 -0
- package/dist/components/accordion/accordion.d.ts.map +1 -0
- package/dist/components/accordion/index.d.ts +3 -0
- package/dist/components/accordion/index.d.ts.map +1 -0
- package/dist/components/accordion/index.js +206 -0
- package/dist/components/accordion/index.js.map +1 -0
- package/dist/components/action-icon/action-icon.d.ts +51 -0
- package/dist/components/action-icon/action-icon.d.ts.map +1 -0
- package/dist/components/action-icon/index.d.ts +2 -0
- package/dist/components/action-icon/index.d.ts.map +1 -0
- package/dist/components/action-icon/index.js +8 -0
- package/dist/components/action-icon/index.js.map +1 -0
- package/dist/components/alert/alert.d.ts +90 -0
- package/dist/components/alert/alert.d.ts.map +1 -0
- package/dist/components/alert/index.d.ts +2 -0
- package/dist/components/alert/index.d.ts.map +1 -0
- package/dist/components/alert/index.js +74 -0
- package/dist/components/alert/index.js.map +1 -0
- package/dist/components/ambient-background/ambient-background.d.ts +47 -0
- package/dist/components/ambient-background/ambient-background.d.ts.map +1 -0
- package/dist/components/ambient-background/index.d.ts +2 -0
- package/dist/components/ambient-background/index.d.ts.map +1 -0
- package/dist/components/ambient-background/index.js +35 -0
- package/dist/components/ambient-background/index.js.map +1 -0
- package/dist/components/app-shell/app-shell.d.ts +185 -0
- package/dist/components/app-shell/app-shell.d.ts.map +1 -0
- package/dist/components/app-shell/index.d.ts +2 -0
- package/dist/components/app-shell/index.d.ts.map +1 -0
- package/dist/components/app-shell/index.js +243 -0
- package/dist/components/app-shell/index.js.map +1 -0
- package/dist/components/autocomplete/autocomplete.d.ts +70 -0
- package/dist/components/autocomplete/autocomplete.d.ts.map +1 -0
- package/dist/components/autocomplete/index.d.ts +3 -0
- package/dist/components/autocomplete/index.d.ts.map +1 -0
- package/dist/components/autocomplete/index.js +149 -0
- package/dist/components/autocomplete/index.js.map +1 -0
- package/dist/components/avatar/avatar.d.ts +105 -0
- package/dist/components/avatar/avatar.d.ts.map +1 -0
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/avatar/index.d.ts.map +1 -0
- package/dist/components/avatar/index.js +211 -0
- package/dist/components/avatar/index.js.map +1 -0
- package/dist/components/badge/badge.d.ts +48 -0
- package/dist/components/badge/badge.d.ts.map +1 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/badge/index.d.ts.map +1 -0
- package/dist/components/badge/index.js +102 -0
- package/dist/components/badge/index.js.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +64 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -0
- package/dist/components/breadcrumb/index.d.ts +2 -0
- package/dist/components/breadcrumb/index.d.ts.map +1 -0
- package/dist/components/breadcrumb/index.js +203 -0
- package/dist/components/breadcrumb/index.js.map +1 -0
- package/dist/components/button/button.d.ts +72 -0
- package/dist/components/button/button.d.ts.map +1 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/button/index.js +9 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/button-group/button-group.d.ts +49 -0
- package/dist/components/button-group/button-group.d.ts.map +1 -0
- package/dist/components/button-group/index.d.ts +2 -0
- package/dist/components/button-group/index.d.ts.map +1 -0
- package/dist/components/button-group/index.js +5 -0
- package/dist/components/button-group/index.js.map +1 -0
- package/dist/components/button-multi-select/button-multi-select.d.ts +39 -0
- package/dist/components/button-multi-select/button-multi-select.d.ts.map +1 -0
- package/dist/components/button-multi-select/index.d.ts +5 -0
- package/dist/components/button-multi-select/index.d.ts.map +1 -0
- package/dist/components/button-multi-select/index.js +45 -0
- package/dist/components/button-multi-select/index.js.map +1 -0
- package/dist/components/button-select/button-select-control.d.ts +56 -0
- package/dist/components/button-select/button-select-control.d.ts.map +1 -0
- package/dist/components/button-select/button-select-data.d.ts +53 -0
- package/dist/components/button-select/button-select-data.d.ts.map +1 -0
- package/dist/components/button-select/button-select-items.d.ts +72 -0
- package/dist/components/button-select/button-select-items.d.ts.map +1 -0
- package/dist/components/button-select/button-select.d.ts +98 -0
- package/dist/components/button-select/button-select.d.ts.map +1 -0
- package/dist/components/button-select/index.d.ts +5 -0
- package/dist/components/button-select/index.d.ts.map +1 -0
- package/dist/components/button-select/index.js +45 -0
- package/dist/components/button-select/index.js.map +1 -0
- package/dist/components/calendar/calendar-body.d.ts +48 -0
- package/dist/components/calendar/calendar-body.d.ts.map +1 -0
- package/dist/components/calendar/calendar.d.ts +88 -0
- package/dist/components/calendar/calendar.d.ts.map +1 -0
- package/dist/components/calendar/index.d.ts +4 -0
- package/dist/components/calendar/index.d.ts.map +1 -0
- package/dist/components/calendar/index.js +11 -0
- package/dist/components/calendar/index.js.map +1 -0
- package/dist/components/card/card.d.ts +69 -0
- package/dist/components/card/card.d.ts.map +1 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/card/index.d.ts.map +1 -0
- package/dist/components/card/index.js +6 -0
- package/dist/components/card/index.js.map +1 -0
- package/dist/components/chart/chart.d.ts +103 -0
- package/dist/components/chart/chart.d.ts.map +1 -0
- package/dist/components/chart/index.d.ts +2 -0
- package/dist/components/chart/index.d.ts.map +1 -0
- package/dist/components/chart/index.js +70 -0
- package/dist/components/chart/index.js.map +1 -0
- package/dist/components/chart/styles.css +50 -0
- package/dist/components/checkbox/checkbox.d.ts +74 -0
- package/dist/components/checkbox/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox/control.d.ts +28 -0
- package/dist/components/checkbox/control.d.ts.map +1 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/checkbox/index.js +10 -0
- package/dist/components/checkbox/index.js.map +1 -0
- package/dist/components/choice-card-group/choice-card-group.d.ts +148 -0
- package/dist/components/choice-card-group/choice-card-group.d.ts.map +1 -0
- package/dist/components/choice-card-group/index.d.ts +2 -0
- package/dist/components/choice-card-group/index.d.ts.map +1 -0
- package/dist/components/choice-card-group/index.js +280 -0
- package/dist/components/choice-card-group/index.js.map +1 -0
- package/dist/components/circular-progress/circular-progress.d.ts +49 -0
- package/dist/components/circular-progress/circular-progress.d.ts.map +1 -0
- package/dist/components/circular-progress/index.d.ts +2 -0
- package/dist/components/circular-progress/index.d.ts.map +1 -0
- package/dist/components/circular-progress/index.js +133 -0
- package/dist/components/circular-progress/index.js.map +1 -0
- package/dist/components/clipboard/clipboard.d.ts +95 -0
- package/dist/components/clipboard/clipboard.d.ts.map +1 -0
- package/dist/components/clipboard/copy.d.ts +67 -0
- package/dist/components/clipboard/copy.d.ts.map +1 -0
- package/dist/components/clipboard/index.d.ts +3 -0
- package/dist/components/clipboard/index.d.ts.map +1 -0
- package/dist/components/clipboard/index.js +86 -0
- package/dist/components/clipboard/index.js.map +1 -0
- package/dist/components/code/code.d.ts +37 -0
- package/dist/components/code/code.d.ts.map +1 -0
- package/dist/components/code/index.d.ts +2 -0
- package/dist/components/code/index.d.ts.map +1 -0
- package/dist/components/code/index.js +28 -0
- package/dist/components/code/index.js.map +1 -0
- package/dist/components/code-block/chrome.d.ts +77 -0
- package/dist/components/code-block/chrome.d.ts.map +1 -0
- package/dist/components/code-block/chrome.js +15 -0
- package/dist/components/code-block/chrome.js.map +1 -0
- package/dist/components/code-block/code-block.d.ts +99 -0
- package/dist/components/code-block/code-block.d.ts.map +1 -0
- package/dist/components/code-block/diff.d.ts +79 -0
- package/dist/components/code-block/diff.d.ts.map +1 -0
- package/dist/components/code-block/diff.js +23 -0
- package/dist/components/code-block/diff.js.map +1 -0
- package/dist/components/code-block/gutters.d.ts +100 -0
- package/dist/components/code-block/gutters.d.ts.map +1 -0
- package/dist/components/code-block/highlighter.d.ts +84 -0
- package/dist/components/code-block/highlighter.d.ts.map +1 -0
- package/dist/components/code-block/index.d.ts +23 -0
- package/dist/components/code-block/index.d.ts.map +1 -0
- package/dist/components/code-block/index.js +463 -0
- package/dist/components/code-block/index.js.map +1 -0
- package/dist/components/code-block/notation.d.ts +126 -0
- package/dist/components/code-block/notation.d.ts.map +1 -0
- package/dist/components/code-block/presets.d.ts +23 -0
- package/dist/components/code-block/presets.d.ts.map +1 -0
- package/dist/components/code-block/static.d.ts +65 -0
- package/dist/components/code-block/static.d.ts.map +1 -0
- package/dist/components/code-block/static.js +380 -0
- package/dist/components/code-block/static.js.map +1 -0
- package/dist/components/code-block/styles.css +198 -0
- package/dist/components/collapse/collapse.d.ts +50 -0
- package/dist/components/collapse/collapse.d.ts.map +1 -0
- package/dist/components/collapse/index.d.ts +2 -0
- package/dist/components/collapse/index.d.ts.map +1 -0
- package/dist/components/collapse/index.js +5 -0
- package/dist/components/collapse/index.js.map +1 -0
- package/dist/components/combobox/combobox.d.ts +78 -0
- package/dist/components/combobox/combobox.d.ts.map +1 -0
- package/dist/components/combobox/index.d.ts +3 -0
- package/dist/components/combobox/index.d.ts.map +1 -0
- package/dist/components/combobox/index.js +15 -0
- package/dist/components/combobox/index.js.map +1 -0
- package/dist/components/combobox-list/combobox-list.d.ts +77 -0
- package/dist/components/combobox-list/combobox-list.d.ts.map +1 -0
- package/dist/components/combobox-list/index.d.ts +2 -0
- package/dist/components/combobox-list/index.d.ts.map +1 -0
- package/dist/components/combobox-list/index.js +16 -0
- package/dist/components/combobox-list/index.js.map +1 -0
- package/dist/components/container/container.d.ts +18 -0
- package/dist/components/container/container.d.ts.map +1 -0
- package/dist/components/container/index.d.ts +2 -0
- package/dist/components/container/index.d.ts.map +1 -0
- package/dist/components/container/index.js +40 -0
- package/dist/components/container/index.js.map +1 -0
- package/dist/components/data-table/data-table-features.d.ts +80 -0
- package/dist/components/data-table/data-table-features.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-date-filter.d.ts +53 -0
- package/dist/components/data-table/data-table-filter/data-table-date-filter.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-filter-fns.d.ts +18 -0
- package/dist/components/data-table/data-table-filter/data-table-filter-fns.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-number-filter.d.ts +7 -0
- package/dist/components/data-table/data-table-filter/data-table-number-filter.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-select-filter.d.ts +15 -0
- package/dist/components/data-table/data-table-filter/data-table-select-filter.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-text-filter.d.ts +7 -0
- package/dist/components/data-table/data-table-filter/data-table-text-filter.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/index.d.ts +15 -0
- package/dist/components/data-table/data-table-filter/index.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/utils.d.ts +52 -0
- package/dist/components/data-table/data-table-filter/utils.d.ts.map +1 -0
- package/dist/components/data-table/data-table-header-cell.d.ts +65 -0
- package/dist/components/data-table/data-table-header-cell.d.ts.map +1 -0
- package/dist/components/data-table/data-table-meta.d.ts +103 -0
- package/dist/components/data-table/data-table-meta.d.ts.map +1 -0
- package/dist/components/data-table/data-table-pagination.d.ts +56 -0
- package/dist/components/data-table/data-table-pagination.d.ts.map +1 -0
- package/dist/components/data-table/data-table-placeholder.d.ts +18 -0
- package/dist/components/data-table/data-table-placeholder.d.ts.map +1 -0
- package/dist/components/data-table/data-table-schema.d.ts +45 -0
- package/dist/components/data-table/data-table-schema.d.ts.map +1 -0
- package/dist/components/data-table/data-table-skeleton.d.ts +10 -0
- package/dist/components/data-table/data-table-skeleton.d.ts.map +1 -0
- package/dist/components/data-table/data-table-stack.d.ts +48 -0
- package/dist/components/data-table/data-table-stack.d.ts.map +1 -0
- package/dist/components/data-table/data-table-state.d.ts +10 -0
- package/dist/components/data-table/data-table-state.d.ts.map +1 -0
- package/dist/components/data-table/data-table-toolbar.d.ts +21 -0
- package/dist/components/data-table/data-table-toolbar.d.ts.map +1 -0
- package/dist/components/data-table/data-table.d.ts +194 -0
- package/dist/components/data-table/data-table.d.ts.map +1 -0
- package/dist/components/data-table/index.d.ts +14 -0
- package/dist/components/data-table/index.d.ts.map +1 -0
- package/dist/components/data-table/index.js +1603 -0
- package/dist/components/data-table/index.js.map +1 -0
- package/dist/components/date-picker/aliases.d.ts +11 -0
- package/dist/components/date-picker/aliases.d.ts.map +1 -0
- package/dist/components/date-picker/date-picker.d.ts +204 -0
- package/dist/components/date-picker/date-picker.d.ts.map +1 -0
- package/dist/components/date-picker/date-time-text.d.ts +32 -0
- package/dist/components/date-picker/date-time-text.d.ts.map +1 -0
- package/dist/components/date-picker/index.d.ts +7 -0
- package/dist/components/date-picker/index.d.ts.map +1 -0
- package/dist/components/date-picker/index.js +48 -0
- package/dist/components/date-picker/index.js.map +1 -0
- package/dist/components/divider/divider.d.ts +79 -0
- package/dist/components/divider/divider.d.ts.map +1 -0
- package/dist/components/divider/index.d.ts +2 -0
- package/dist/components/divider/index.d.ts.map +1 -0
- package/dist/components/divider/index.js +5 -0
- package/dist/components/divider/index.js.map +1 -0
- package/dist/components/drawer/drawer.d.ts +103 -0
- package/dist/components/drawer/drawer.d.ts.map +1 -0
- package/dist/components/drawer/index.d.ts +2 -0
- package/dist/components/drawer/index.d.ts.map +1 -0
- package/dist/components/drawer/index.js +13 -0
- package/dist/components/drawer/index.js.map +1 -0
- package/dist/components/field/field.d.ts +79 -0
- package/dist/components/field/field.d.ts.map +1 -0
- package/dist/components/field/index.d.ts +2 -0
- package/dist/components/field/index.d.ts.map +1 -0
- package/dist/components/field/index.js +6 -0
- package/dist/components/field/index.js.map +1 -0
- package/dist/components/file-upload/file-upload.d.ts +68 -0
- package/dist/components/file-upload/file-upload.d.ts.map +1 -0
- package/dist/components/file-upload/index.d.ts +2 -0
- package/dist/components/file-upload/index.d.ts.map +1 -0
- package/dist/components/file-upload/index.js +189 -0
- package/dist/components/file-upload/index.js.map +1 -0
- package/dist/components/flex/flex.d.ts +25 -0
- package/dist/components/flex/flex.d.ts.map +1 -0
- package/dist/components/flex/index.d.ts +2 -0
- package/dist/components/flex/index.d.ts.map +1 -0
- package/dist/components/flex/index.js +5 -0
- package/dist/components/flex/index.js.map +1 -0
- package/dist/components/grid/grid.d.ts +21 -0
- package/dist/components/grid/grid.d.ts.map +1 -0
- package/dist/components/grid/index.d.ts +2 -0
- package/dist/components/grid/index.d.ts.map +1 -0
- package/dist/components/grid/index.js +44 -0
- package/dist/components/grid/index.js.map +1 -0
- package/dist/components/hover-card/hover-card.d.ts +122 -0
- package/dist/components/hover-card/hover-card.d.ts.map +1 -0
- package/dist/components/hover-card/index.d.ts +2 -0
- package/dist/components/hover-card/index.d.ts.map +1 -0
- package/dist/components/hover-card/index.js +157 -0
- package/dist/components/hover-card/index.js.map +1 -0
- package/dist/components/indicator/index.d.ts +2 -0
- package/dist/components/indicator/index.d.ts.map +1 -0
- package/dist/components/indicator/index.js +152 -0
- package/dist/components/indicator/index.js.map +1 -0
- package/dist/components/indicator/indicator.d.ts +69 -0
- package/dist/components/indicator/indicator.d.ts.map +1 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/input/index.js +7 -0
- package/dist/components/input/index.js.map +1 -0
- package/dist/components/input/input.d.ts +116 -0
- package/dist/components/input/input.d.ts.map +1 -0
- package/dist/components/kbd/index.d.ts +2 -0
- package/dist/components/kbd/index.d.ts.map +1 -0
- package/dist/components/kbd/index.js +65 -0
- package/dist/components/kbd/index.js.map +1 -0
- package/dist/components/kbd/kbd.d.ts +43 -0
- package/dist/components/kbd/kbd.d.ts.map +1 -0
- package/dist/components/mark/index.d.ts +2 -0
- package/dist/components/mark/index.d.ts.map +1 -0
- package/dist/components/mark/index.js +5 -0
- package/dist/components/mark/index.js.map +1 -0
- package/dist/components/mark/mark.d.ts +50 -0
- package/dist/components/mark/mark.d.ts.map +1 -0
- package/dist/components/menu/index.d.ts +3 -0
- package/dist/components/menu/index.d.ts.map +1 -0
- package/dist/components/menu/index.js +88 -0
- package/dist/components/menu/index.js.map +1 -0
- package/dist/components/menu/menu-data.d.ts +119 -0
- package/dist/components/menu/menu-data.d.ts.map +1 -0
- package/dist/components/menu/menu.d.ts +123 -0
- package/dist/components/menu/menu.d.ts.map +1 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/index.d.ts.map +1 -0
- package/dist/components/modal/index.js +12 -0
- package/dist/components/modal/index.js.map +1 -0
- package/dist/components/modal/modal.d.ts +100 -0
- package/dist/components/modal/modal.d.ts.map +1 -0
- package/dist/components/multi-combobox-list/index.d.ts +2 -0
- package/dist/components/multi-combobox-list/index.d.ts.map +1 -0
- package/dist/components/multi-combobox-list/index.js +16 -0
- package/dist/components/multi-combobox-list/index.js.map +1 -0
- package/dist/components/multi-combobox-list/multi-combobox-list.d.ts +83 -0
- package/dist/components/multi-combobox-list/multi-combobox-list.d.ts.map +1 -0
- package/dist/components/multi-select/index.d.ts +3 -0
- package/dist/components/multi-select/index.d.ts.map +1 -0
- package/dist/components/multi-select/index.js +203 -0
- package/dist/components/multi-select/index.js.map +1 -0
- package/dist/components/multi-select/multi-select.d.ts +83 -0
- package/dist/components/multi-select/multi-select.d.ts.map +1 -0
- package/dist/components/nav-link/index.d.ts +3 -0
- package/dist/components/nav-link/index.d.ts.map +1 -0
- package/dist/components/nav-link/index.js +11 -0
- package/dist/components/nav-link/index.js.map +1 -0
- package/dist/components/nav-link/nav-link.d.ts +40 -0
- package/dist/components/nav-link/nav-link.d.ts.map +1 -0
- package/dist/components/nav-link/navigation.d.ts +45 -0
- package/dist/components/nav-link/navigation.d.ts.map +1 -0
- package/dist/components/nav-link/tanstack.d.ts +38 -0
- package/dist/components/nav-link/tanstack.d.ts.map +1 -0
- package/dist/components/nav-link/tanstack.js +21 -0
- package/dist/components/nav-link/tanstack.js.map +1 -0
- package/dist/components/notification/create-notifier.d.ts +117 -0
- package/dist/components/notification/create-notifier.d.ts.map +1 -0
- package/dist/components/notification/index.d.ts +5 -0
- package/dist/components/notification/index.d.ts.map +1 -0
- package/dist/components/notification/index.js +388 -0
- package/dist/components/notification/index.js.map +1 -0
- package/dist/components/notification/notification.d.ts +124 -0
- package/dist/components/notification/notification.d.ts.map +1 -0
- package/dist/components/notification/store.d.ts +42 -0
- package/dist/components/notification/store.d.ts.map +1 -0
- package/dist/components/notification/types.d.ts +62 -0
- package/dist/components/notification/types.d.ts.map +1 -0
- package/dist/components/number-input/index.d.ts +2 -0
- package/dist/components/number-input/index.d.ts.map +1 -0
- package/dist/components/number-input/index.js +16 -0
- package/dist/components/number-input/index.js.map +1 -0
- package/dist/components/number-input/number-input.d.ts +105 -0
- package/dist/components/number-input/number-input.d.ts.map +1 -0
- package/dist/components/overlays/create-overlays.d.ts +77 -0
- package/dist/components/overlays/create-overlays.d.ts.map +1 -0
- package/dist/components/overlays/index.d.ts +4 -0
- package/dist/components/overlays/index.d.ts.map +1 -0
- package/dist/components/overlays/index.js +332 -0
- package/dist/components/overlays/index.js.map +1 -0
- package/dist/components/overlays/renderer.d.ts +30 -0
- package/dist/components/overlays/renderer.d.ts.map +1 -0
- package/dist/components/overlays/store.d.ts +33 -0
- package/dist/components/overlays/store.d.ts.map +1 -0
- package/dist/components/overlays/types.d.ts +119 -0
- package/dist/components/overlays/types.d.ts.map +1 -0
- package/dist/components/password-input/index.d.ts +2 -0
- package/dist/components/password-input/index.d.ts.map +1 -0
- package/dist/components/password-input/index.js +125 -0
- package/dist/components/password-input/index.js.map +1 -0
- package/dist/components/password-input/password-input.d.ts +65 -0
- package/dist/components/password-input/password-input.d.ts.map +1 -0
- package/dist/components/pill/index.d.ts +2 -0
- package/dist/components/pill/index.d.ts.map +1 -0
- package/dist/components/pill/index.js +8 -0
- package/dist/components/pill/index.js.map +1 -0
- package/dist/components/pill/pill.d.ts +69 -0
- package/dist/components/pill/pill.d.ts.map +1 -0
- package/dist/components/pills-input/index.d.ts +2 -0
- package/dist/components/pills-input/index.d.ts.map +1 -0
- package/dist/components/pills-input/index.js +10 -0
- package/dist/components/pills-input/index.js.map +1 -0
- package/dist/components/pills-input/pills-input.d.ts +146 -0
- package/dist/components/pills-input/pills-input.d.ts.map +1 -0
- package/dist/components/pin-input/index.d.ts +2 -0
- package/dist/components/pin-input/index.d.ts.map +1 -0
- package/dist/components/pin-input/index.js +107 -0
- package/dist/components/pin-input/index.js.map +1 -0
- package/dist/components/pin-input/pin-input.d.ts +80 -0
- package/dist/components/pin-input/pin-input.d.ts.map +1 -0
- package/dist/components/popover/icons.d.ts +24 -0
- package/dist/components/popover/icons.d.ts.map +1 -0
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/popover/index.d.ts.map +1 -0
- package/dist/components/popover/index.js +10 -0
- package/dist/components/popover/index.js.map +1 -0
- package/dist/components/popover/popover.d.ts +190 -0
- package/dist/components/popover/popover.d.ts.map +1 -0
- package/dist/components/progress/index.d.ts +2 -0
- package/dist/components/progress/index.d.ts.map +1 -0
- package/dist/components/progress/index.js +111 -0
- package/dist/components/progress/index.js.map +1 -0
- package/dist/components/progress/progress.d.ts +47 -0
- package/dist/components/progress/progress.d.ts.map +1 -0
- package/dist/components/radio-group/index.d.ts +2 -0
- package/dist/components/radio-group/index.d.ts.map +1 -0
- package/dist/components/radio-group/index.js +104 -0
- package/dist/components/radio-group/index.js.map +1 -0
- package/dist/components/radio-group/radio-group.d.ts +86 -0
- package/dist/components/radio-group/radio-group.d.ts.map +1 -0
- package/dist/components/rating/icons.d.ts +19 -0
- package/dist/components/rating/icons.d.ts.map +1 -0
- package/dist/components/rating/index.d.ts +2 -0
- package/dist/components/rating/index.d.ts.map +1 -0
- package/dist/components/rating/index.js +194 -0
- package/dist/components/rating/index.js.map +1 -0
- package/dist/components/rating/rating.d.ts +119 -0
- package/dist/components/rating/rating.d.ts.map +1 -0
- package/dist/components/schedule/index.d.ts +98 -0
- package/dist/components/schedule/index.d.ts.map +1 -0
- package/dist/components/schedule/index.js +6656 -0
- package/dist/components/schedule/index.js.map +1 -0
- package/dist/components/schedule/now-cursor-line.d.ts +97 -0
- package/dist/components/schedule/now-cursor-line.d.ts.map +1 -0
- package/dist/components/schedule/schedule-agenda-list.d.ts +55 -0
- package/dist/components/schedule/schedule-agenda-list.d.ts.map +1 -0
- package/dist/components/schedule/schedule-agenda-view.d.ts +48 -0
- package/dist/components/schedule/schedule-agenda-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-all-day-row.d.ts +100 -0
- package/dist/components/schedule/schedule-all-day-row.d.ts.map +1 -0
- package/dist/components/schedule/schedule-create-draft.d.ts +30 -0
- package/dist/components/schedule/schedule-create-draft.d.ts.map +1 -0
- package/dist/components/schedule/schedule-dates.d.ts +359 -0
- package/dist/components/schedule/schedule-dates.d.ts.map +1 -0
- package/dist/components/schedule/schedule-day-view.d.ts +24 -0
- package/dist/components/schedule/schedule-day-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-days-view.d.ts +60 -0
- package/dist/components/schedule/schedule-days-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-disabled-overlay.d.ts +34 -0
- package/dist/components/schedule/schedule-disabled-overlay.d.ts.map +1 -0
- package/dist/components/schedule/schedule-drag-ghost.d.ts +31 -0
- package/dist/components/schedule/schedule-drag-ghost.d.ts.map +1 -0
- package/dist/components/schedule/schedule-event-chip.d.ts +101 -0
- package/dist/components/schedule/schedule-event-chip.d.ts.map +1 -0
- package/dist/components/schedule/schedule-event-details.d.ts +37 -0
- package/dist/components/schedule/schedule-event-details.d.ts.map +1 -0
- package/dist/components/schedule/schedule-event-list-popover-content.d.ts +41 -0
- package/dist/components/schedule/schedule-event-list-popover-content.d.ts.map +1 -0
- package/dist/components/schedule/schedule-event-styles.d.ts +58 -0
- package/dist/components/schedule/schedule-event-styles.d.ts.map +1 -0
- package/dist/components/schedule/schedule-geometry.d.ts +307 -0
- package/dist/components/schedule/schedule-geometry.d.ts.map +1 -0
- package/dist/components/schedule/schedule-grid-gesture.d.ts +311 -0
- package/dist/components/schedule/schedule-grid-gesture.d.ts.map +1 -0
- package/dist/components/schedule/schedule-layout.d.ts +83 -0
- package/dist/components/schedule/schedule-layout.d.ts.map +1 -0
- package/dist/components/schedule/schedule-month-view.d.ts +44 -0
- package/dist/components/schedule/schedule-month-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-next-up-grouping.d.ts +37 -0
- package/dist/components/schedule/schedule-next-up-grouping.d.ts.map +1 -0
- package/dist/components/schedule/schedule-next-up.d.ts +79 -0
- package/dist/components/schedule/schedule-next-up.d.ts.map +1 -0
- package/dist/components/schedule/schedule-overflow-chip.d.ts +45 -0
- package/dist/components/schedule/schedule-overflow-chip.d.ts.map +1 -0
- package/dist/components/schedule/schedule-overflow-popover.d.ts +57 -0
- package/dist/components/schedule/schedule-overflow-popover.d.ts.map +1 -0
- package/dist/components/schedule/schedule-segments.d.ts +89 -0
- package/dist/components/schedule/schedule-segments.d.ts.map +1 -0
- package/dist/components/schedule/schedule-snap.d.ts +204 -0
- package/dist/components/schedule/schedule-snap.d.ts.map +1 -0
- package/dist/components/schedule/schedule-timed-grid.d.ts +78 -0
- package/dist/components/schedule/schedule-timed-grid.d.ts.map +1 -0
- package/dist/components/schedule/schedule-toolbar.d.ts +107 -0
- package/dist/components/schedule/schedule-toolbar.d.ts.map +1 -0
- package/dist/components/schedule/schedule-types.d.ts +844 -0
- package/dist/components/schedule/schedule-types.d.ts.map +1 -0
- package/dist/components/schedule/schedule-views.d.ts +197 -0
- package/dist/components/schedule/schedule-views.d.ts.map +1 -0
- package/dist/components/schedule/schedule-week-view.d.ts +19 -0
- package/dist/components/schedule/schedule-week-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-year-view.d.ts +38 -0
- package/dist/components/schedule/schedule-year-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule.d.ts +163 -0
- package/dist/components/schedule/schedule.d.ts.map +1 -0
- package/dist/components/schedule/use-event-create.d.ts +54 -0
- package/dist/components/schedule/use-event-create.d.ts.map +1 -0
- package/dist/components/schedule/use-event-drag.d.ts +95 -0
- package/dist/components/schedule/use-event-drag.d.ts.map +1 -0
- package/dist/components/schedule/use-event-resize.d.ts +63 -0
- package/dist/components/schedule/use-event-resize.d.ts.map +1 -0
- package/dist/components/schedule/use-schedule-selection.d.ts +74 -0
- package/dist/components/schedule/use-schedule-selection.d.ts.map +1 -0
- package/dist/components/schedule/use-schedule.d.ts +78 -0
- package/dist/components/schedule/use-schedule.d.ts.map +1 -0
- package/dist/components/segment-group/index.d.ts +2 -0
- package/dist/components/segment-group/index.d.ts.map +1 -0
- package/dist/components/segment-group/index.js +10 -0
- package/dist/components/segment-group/index.js.map +1 -0
- package/dist/components/segment-group/segment-group.d.ts +187 -0
- package/dist/components/segment-group/segment-group.d.ts.map +1 -0
- package/dist/components/select/index.d.ts +3 -0
- package/dist/components/select/index.d.ts.map +1 -0
- package/dist/components/select/index.js +17 -0
- package/dist/components/select/index.js.map +1 -0
- package/dist/components/select/select.d.ts +83 -0
- package/dist/components/select/select.d.ts.map +1 -0
- package/dist/components/skeleton/index.d.ts +2 -0
- package/dist/components/skeleton/index.d.ts.map +1 -0
- package/dist/components/skeleton/index.js +5 -0
- package/dist/components/skeleton/index.js.map +1 -0
- package/dist/components/skeleton/skeleton.d.ts +83 -0
- package/dist/components/skeleton/skeleton.d.ts.map +1 -0
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/slider/index.d.ts.map +1 -0
- package/dist/components/slider/index.js +258 -0
- package/dist/components/slider/index.js.map +1 -0
- package/dist/components/slider/slider.d.ts +90 -0
- package/dist/components/slider/slider.d.ts.map +1 -0
- package/dist/components/slider/sliderThumb.d.ts +1 -0
- package/dist/components/slider/sliderThumb.d.ts.map +1 -0
- package/dist/components/spinner/index.d.ts +2 -0
- package/dist/components/spinner/index.d.ts.map +1 -0
- package/dist/components/spinner/index.js +5 -0
- package/dist/components/spinner/index.js.map +1 -0
- package/dist/components/spinner/spinner.d.ts +61 -0
- package/dist/components/spinner/spinner.d.ts.map +1 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/switch/index.d.ts.map +1 -0
- package/dist/components/switch/index.js +140 -0
- package/dist/components/switch/index.js.map +1 -0
- package/dist/components/switch/switch.d.ts +48 -0
- package/dist/components/switch/switch.d.ts.map +1 -0
- package/dist/components/table/index.d.ts +2 -0
- package/dist/components/table/index.d.ts.map +1 -0
- package/dist/components/table/index.js +5 -0
- package/dist/components/table/index.js.map +1 -0
- package/dist/components/table/table.d.ts +113 -0
- package/dist/components/table/table.d.ts.map +1 -0
- package/dist/components/tabs/index.d.ts +3 -0
- package/dist/components/tabs/index.d.ts.map +1 -0
- package/dist/components/tabs/index.js +8 -0
- package/dist/components/tabs/index.js.map +1 -0
- package/dist/components/tabs/tabs-data.d.ts +67 -0
- package/dist/components/tabs/tabs-data.d.ts.map +1 -0
- package/dist/components/tabs/tabs.d.ts +96 -0
- package/dist/components/tabs/tabs.d.ts.map +1 -0
- package/dist/components/tags-input/index.d.ts +2 -0
- package/dist/components/tags-input/index.d.ts.map +1 -0
- package/dist/components/tags-input/index.js +203 -0
- package/dist/components/tags-input/index.js.map +1 -0
- package/dist/components/tags-input/tags-input.d.ts +68 -0
- package/dist/components/tags-input/tags-input.d.ts.map +1 -0
- package/dist/components/text/index.d.ts +2 -0
- package/dist/components/text/index.d.ts.map +1 -0
- package/dist/components/text/index.js +6 -0
- package/dist/components/text/index.js.map +1 -0
- package/dist/components/text/text.d.ts +50 -0
- package/dist/components/text/text.d.ts.map +1 -0
- package/dist/components/text-input/index.d.ts +2 -0
- package/dist/components/text-input/index.d.ts.map +1 -0
- package/dist/components/text-input/index.js +34 -0
- package/dist/components/text-input/index.js.map +1 -0
- package/dist/components/text-input/text-input.d.ts +56 -0
- package/dist/components/text-input/text-input.d.ts.map +1 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/index.d.ts.map +1 -0
- package/dist/components/textarea/index.js +116 -0
- package/dist/components/textarea/index.js.map +1 -0
- package/dist/components/textarea/textarea.d.ts +48 -0
- package/dist/components/textarea/textarea.d.ts.map +1 -0
- package/dist/components/theme-icon/index.d.ts +2 -0
- package/dist/components/theme-icon/index.d.ts.map +1 -0
- package/dist/components/theme-icon/index.js +6 -0
- package/dist/components/theme-icon/index.js.map +1 -0
- package/dist/components/theme-icon/theme-icon.d.ts +34 -0
- package/dist/components/theme-icon/theme-icon.d.ts.map +1 -0
- package/dist/components/theme-script/index.d.ts +2 -0
- package/dist/components/theme-script/index.d.ts.map +1 -0
- package/dist/components/theme-script/index.js +29 -0
- package/dist/components/theme-script/index.js.map +1 -0
- package/dist/components/theme-script/theme-script.d.ts +41 -0
- package/dist/components/theme-script/theme-script.d.ts.map +1 -0
- package/dist/components/time-input/hour-cycle.d.ts +32 -0
- package/dist/components/time-input/hour-cycle.d.ts.map +1 -0
- package/dist/components/time-input/index.d.ts +3 -0
- package/dist/components/time-input/index.d.ts.map +1 -0
- package/dist/components/time-input/index.js +125 -0
- package/dist/components/time-input/index.js.map +1 -0
- package/dist/components/time-input/time-input.d.ts +63 -0
- package/dist/components/time-input/time-input.d.ts.map +1 -0
- package/dist/components/time-input/time-row.d.ts +72 -0
- package/dist/components/time-input/time-row.d.ts.map +1 -0
- package/dist/components/timeline/index.d.ts +2 -0
- package/dist/components/timeline/index.d.ts.map +1 -0
- package/dist/components/timeline/index.js +372 -0
- package/dist/components/timeline/index.js.map +1 -0
- package/dist/components/timeline/timeline.d.ts +194 -0
- package/dist/components/timeline/timeline.d.ts.map +1 -0
- package/dist/components/title/index.d.ts +2 -0
- package/dist/components/title/index.d.ts.map +1 -0
- package/dist/components/title/index.js +6 -0
- package/dist/components/title/index.js.map +1 -0
- package/dist/components/title/title.d.ts +47 -0
- package/dist/components/title/title.d.ts.map +1 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/index.d.ts.map +1 -0
- package/dist/components/tooltip/index.js +10 -0
- package/dist/components/tooltip/index.js.map +1 -0
- package/dist/components/tooltip/tooltip.d.ts +70 -0
- package/dist/components/tooltip/tooltip.d.ts.map +1 -0
- package/dist/components/tree-multi-select/index.d.ts +3 -0
- package/dist/components/tree-multi-select/index.d.ts.map +1 -0
- package/dist/components/tree-multi-select/index.js +424 -0
- package/dist/components/tree-multi-select/index.js.map +1 -0
- package/dist/components/tree-multi-select/tree-multi-select.d.ts +72 -0
- package/dist/components/tree-multi-select/tree-multi-select.d.ts.map +1 -0
- package/dist/components/tree-select/index.d.ts +3 -0
- package/dist/components/tree-select/index.d.ts.map +1 -0
- package/dist/components/tree-select/index.js +425 -0
- package/dist/components/tree-select/index.js.map +1 -0
- package/dist/components/tree-select/tree-select.d.ts +68 -0
- package/dist/components/tree-select/tree-select.d.ts.map +1 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +269 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/align.d.ts +7 -0
- package/dist/lib/align.d.ts.map +1 -0
- package/dist/lib/available-if.d.ts +114 -0
- package/dist/lib/available-if.d.ts.map +1 -0
- package/dist/lib/brand.d.ts +22 -0
- package/dist/lib/brand.d.ts.map +1 -0
- package/dist/lib/cn.d.ts +14 -0
- package/dist/lib/cn.d.ts.map +1 -0
- package/dist/lib/cn.js +3 -0
- package/dist/lib/cn.js.map +1 -0
- package/dist/lib/colors.d.ts +14 -0
- package/dist/lib/colors.d.ts.map +1 -0
- package/dist/lib/control-open.d.ts +28 -0
- package/dist/lib/control-open.d.ts.map +1 -0
- package/dist/lib/date-predicates.d.ts +28 -0
- package/dist/lib/date-predicates.d.ts.map +1 -0
- package/dist/lib/date-value.d.ts +45 -0
- package/dist/lib/date-value.d.ts.map +1 -0
- package/dist/lib/dev-warn.d.ts +2 -0
- package/dist/lib/dev-warn.d.ts.map +1 -0
- package/dist/lib/focus-styles.d.ts +102 -0
- package/dist/lib/focus-styles.d.ts.map +1 -0
- package/dist/lib/form-control.d.ts +72 -0
- package/dist/lib/form-control.d.ts.map +1 -0
- package/dist/lib/gradient.d.ts +31 -0
- package/dist/lib/gradient.d.ts.map +1 -0
- package/dist/lib/intl.d.ts +77 -0
- package/dist/lib/intl.d.ts.map +1 -0
- package/dist/lib/link-component.d.ts +13 -0
- package/dist/lib/link-component.d.ts.map +1 -0
- package/dist/lib/merge-refs.d.ts +12 -0
- package/dist/lib/merge-refs.d.ts.map +1 -0
- package/dist/lib/overlay-container.d.ts +14 -0
- package/dist/lib/overlay-container.d.ts.map +1 -0
- package/dist/lib/overlay-layer.d.ts +51 -0
- package/dist/lib/overlay-layer.d.ts.map +1 -0
- package/dist/lib/placement.d.ts +16 -0
- package/dist/lib/placement.d.ts.map +1 -0
- package/dist/lib/props.d.ts +40 -0
- package/dist/lib/props.d.ts.map +1 -0
- package/dist/lib/required-if.d.ts +46 -0
- package/dist/lib/required-if.d.ts.map +1 -0
- package/dist/lib/schedule-predicates.d.ts +72 -0
- package/dist/lib/schedule-predicates.d.ts.map +1 -0
- package/dist/lib/select-data.d.ts +135 -0
- package/dist/lib/select-data.d.ts.map +1 -0
- package/dist/lib/sizes.d.ts +20 -0
- package/dist/lib/sizes.d.ts.map +1 -0
- package/dist/lib/test-id.d.ts +30 -0
- package/dist/lib/test-id.d.ts.map +1 -0
- package/dist/lib/theme-init-runtime.d.ts +26 -0
- package/dist/lib/theme-init-runtime.d.ts.map +1 -0
- package/dist/lib/theme.d.ts +93 -0
- package/dist/lib/theme.d.ts.map +1 -0
- package/dist/lib/tree-data.d.ts +99 -0
- package/dist/lib/tree-data.d.ts.map +1 -0
- package/dist/lib/typography-size.d.ts +49 -0
- package/dist/lib/typography-size.d.ts.map +1 -0
- package/dist/lib/use-container-query.d.ts +19 -0
- package/dist/lib/use-container-query.d.ts.map +1 -0
- package/dist/lib/use-disclosure.d.ts +35 -0
- package/dist/lib/use-disclosure.d.ts.map +1 -0
- package/dist/lib/use-isomorphic-layout-effect.d.ts +12 -0
- package/dist/lib/use-isomorphic-layout-effect.d.ts.map +1 -0
- package/dist/lib/use-local-storage.d.ts +45 -0
- package/dist/lib/use-local-storage.d.ts.map +1 -0
- package/dist/lib/use-logger.d.ts +2 -0
- package/dist/lib/use-logger.d.ts.map +1 -0
- package/dist/lib/use-media-query.d.ts +11 -0
- package/dist/lib/use-media-query.d.ts.map +1 -0
- package/dist/lib/use-now.d.ts +7 -0
- package/dist/lib/use-now.d.ts.map +1 -0
- package/dist/lib/use-theme.d.ts +101 -0
- package/dist/lib/use-theme.d.ts.map +1 -0
- package/dist/lib/use-uncontrolled.d.ts +45 -0
- package/dist/lib/use-uncontrolled.d.ts.map +1 -0
- package/dist/styles.css +17 -0
- package/dist/test-setup.d.ts +2 -0
- package/dist/test-setup.d.ts.map +1 -0
- package/dist/theme-init-script.d.ts +2 -0
- package/dist/theme-init-script.d.ts.map +1 -0
- package/dist/theme-init.js +2 -0
- package/dist/theme-init.js.map +1 -0
- package/dist/theme.css +1281 -0
- package/package.json +99 -3
- package/src/colors.css +296 -0
- package/src/components/accordion/accordion-data.tsx +86 -0
- package/src/components/accordion/accordion.test.tsx +234 -0
- package/src/components/accordion/accordion.tsx +336 -0
- package/src/components/accordion/index.ts +18 -0
- package/src/components/action-icon/action-icon.test.tsx +57 -0
- package/src/components/action-icon/action-icon.tsx +180 -0
- package/src/components/action-icon/index.ts +12 -0
- package/src/components/alert/alert.test.tsx +131 -0
- package/src/components/alert/alert.tsx +165 -0
- package/src/components/alert/index.ts +3 -0
- package/src/components/ambient-background/ambient-background.test.tsx +64 -0
- package/src/components/ambient-background/ambient-background.tsx +76 -0
- package/src/components/ambient-background/index.ts +1 -0
- package/src/components/app-shell/app-shell.test.tsx +271 -0
- package/src/components/app-shell/app-shell.tsx +492 -0
- package/src/components/app-shell/index.ts +17 -0
- package/src/components/autocomplete/autocomplete.test.tsx +120 -0
- package/src/components/autocomplete/autocomplete.tsx +249 -0
- package/src/components/autocomplete/index.ts +11 -0
- package/src/components/avatar/avatar.test.tsx +345 -0
- package/src/components/avatar/avatar.tsx +456 -0
- package/src/components/avatar/index.ts +12 -0
- package/src/components/badge/badge.test.tsx +51 -0
- package/src/components/badge/badge.tsx +148 -0
- package/src/components/badge/index.ts +6 -0
- package/src/components/breadcrumb/breadcrumb.test.tsx +238 -0
- package/src/components/breadcrumb/breadcrumb.tsx +348 -0
- package/src/components/breadcrumb/index.ts +9 -0
- package/src/components/button/button.test.tsx +87 -0
- package/src/components/button/button.tsx +253 -0
- package/src/components/button/index.ts +12 -0
- package/src/components/button-group/button-group.test.tsx +168 -0
- package/src/components/button-group/button-group.tsx +121 -0
- package/src/components/button-group/index.ts +1 -0
- package/src/components/button-multi-select/button-multi-select.test.tsx +146 -0
- package/src/components/button-multi-select/button-multi-select.tsx +76 -0
- package/src/components/button-multi-select/index.ts +17 -0
- package/src/components/button-select/button-select-control.tsx +153 -0
- package/src/components/button-select/button-select-data.tsx +96 -0
- package/src/components/button-select/button-select-items.ts +103 -0
- package/src/components/button-select/button-select.test.tsx +239 -0
- package/src/components/button-select/button-select.tsx +323 -0
- package/src/components/button-select/index.ts +14 -0
- package/src/components/calendar/calendar-body.tsx +410 -0
- package/src/components/calendar/calendar.test.tsx +278 -0
- package/src/components/calendar/calendar.tsx +220 -0
- package/src/components/calendar/index.ts +10 -0
- package/src/components/card/card.tsx +211 -0
- package/src/components/card/index.ts +12 -0
- package/src/components/chart/chart.test.tsx +98 -0
- package/src/components/chart/chart.tsx +192 -0
- package/src/components/chart/index.ts +8 -0
- package/src/components/chart/styles.css +50 -0
- package/src/components/checkbox/checkbox.test.tsx +113 -0
- package/src/components/checkbox/checkbox.tsx +182 -0
- package/src/components/checkbox/control.ts +76 -0
- package/src/components/checkbox/index.ts +3 -0
- package/src/components/choice-card-group/choice-card-group.test.tsx +250 -0
- package/src/components/choice-card-group/choice-card-group.tsx +549 -0
- package/src/components/choice-card-group/index.ts +9 -0
- package/src/components/circular-progress/circular-progress.test.tsx +120 -0
- package/src/components/circular-progress/circular-progress.tsx +214 -0
- package/src/components/circular-progress/index.ts +15 -0
- package/src/components/clipboard/clipboard.test.tsx +229 -0
- package/src/components/clipboard/clipboard.tsx +128 -0
- package/src/components/clipboard/copy.tsx +127 -0
- package/src/components/clipboard/index.ts +12 -0
- package/src/components/code/code.test.tsx +57 -0
- package/src/components/code/code.tsx +54 -0
- package/src/components/code/index.ts +1 -0
- package/src/components/code-block/chrome.tsx +347 -0
- package/src/components/code-block/code-block.test.tsx +252 -0
- package/src/components/code-block/code-block.tsx +254 -0
- package/src/components/code-block/diff.test.ts +177 -0
- package/src/components/code-block/diff.ts +114 -0
- package/src/components/code-block/gutters.test.ts +280 -0
- package/src/components/code-block/gutters.ts +260 -0
- package/src/components/code-block/highlighter.test.ts +261 -0
- package/src/components/code-block/highlighter.ts +290 -0
- package/src/components/code-block/index.ts +53 -0
- package/src/components/code-block/notation.test.ts +166 -0
- package/src/components/code-block/notation.ts +233 -0
- package/src/components/code-block/presets.test.ts +43 -0
- package/src/components/code-block/presets.ts +28 -0
- package/src/components/code-block/static.tsx +130 -0
- package/src/components/code-block/styles.css +198 -0
- package/src/components/collapse/collapse.test.tsx +96 -0
- package/src/components/collapse/collapse.tsx +81 -0
- package/src/components/collapse/index.ts +1 -0
- package/src/components/combobox/combobox.tsx +317 -0
- package/src/components/combobox/index.ts +15 -0
- package/src/components/combobox-list/combobox-list.test.tsx +148 -0
- package/src/components/combobox-list/combobox-list.tsx +276 -0
- package/src/components/combobox-list/index.ts +3 -0
- package/src/components/container/container.tsx +47 -0
- package/src/components/container/index.ts +1 -0
- package/src/components/data-table/data-table-features.ts +127 -0
- package/src/components/data-table/data-table-filter/data-table-date-filter.tsx +275 -0
- package/src/components/data-table/data-table-filter/data-table-filter-fns.ts +126 -0
- package/src/components/data-table/data-table-filter/data-table-number-filter.tsx +74 -0
- package/src/components/data-table/data-table-filter/data-table-select-filter.tsx +47 -0
- package/src/components/data-table/data-table-filter/data-table-text-filter.tsx +29 -0
- package/src/components/data-table/data-table-filter/index.tsx +62 -0
- package/src/components/data-table/data-table-filter/utils.ts +112 -0
- package/src/components/data-table/data-table-filter-fns.test.tsx +145 -0
- package/src/components/data-table/data-table-filter.test.tsx +365 -0
- package/src/components/data-table/data-table-header-cell.tsx +292 -0
- package/src/components/data-table/data-table-meta.ts +102 -0
- package/src/components/data-table/data-table-pagination.tsx +175 -0
- package/src/components/data-table/data-table-placeholder.tsx +61 -0
- package/src/components/data-table/data-table-schema.test.tsx +22 -0
- package/src/components/data-table/data-table-schema.ts +23 -0
- package/src/components/data-table/data-table-skeleton.ts +9 -0
- package/src/components/data-table/data-table-stack.tsx +376 -0
- package/src/components/data-table/data-table-state.ts +35 -0
- package/src/components/data-table/data-table-toolbar.tsx +81 -0
- package/src/components/data-table/data-table.test.tsx +1143 -0
- package/src/components/data-table/data-table.tsx +829 -0
- package/src/components/data-table/index.ts +46 -0
- package/src/components/date-picker/aliases.tsx +15 -0
- package/src/components/date-picker/date-picker.test.tsx +699 -0
- package/src/components/date-picker/date-picker.tsx +1000 -0
- package/src/components/date-picker/date-time-text.test.ts +68 -0
- package/src/components/date-picker/date-time-text.ts +103 -0
- package/src/components/date-picker/index.ts +32 -0
- package/src/components/divider/divider.test.tsx +106 -0
- package/src/components/divider/divider.tsx +162 -0
- package/src/components/divider/index.ts +8 -0
- package/src/components/drawer/drawer.tsx +405 -0
- package/src/components/drawer/index.ts +21 -0
- package/src/components/field/field.tsx +235 -0
- package/src/components/field/index.ts +3 -0
- package/src/components/file-upload/file-upload.test.tsx +47 -0
- package/src/components/file-upload/file-upload.tsx +280 -0
- package/src/components/file-upload/index.ts +3 -0
- package/src/components/flex/flex.tsx +81 -0
- package/src/components/flex/index.ts +1 -0
- package/src/components/grid/grid.tsx +52 -0
- package/src/components/grid/index.ts +1 -0
- package/src/components/hover-card/hover-card.test.tsx +192 -0
- package/src/components/hover-card/hover-card.tsx +376 -0
- package/src/components/hover-card/index.ts +9 -0
- package/src/components/indicator/index.ts +6 -0
- package/src/components/indicator/indicator.test.tsx +241 -0
- package/src/components/indicator/indicator.tsx +275 -0
- package/src/components/input/index.ts +12 -0
- package/src/components/input/input.test.tsx +111 -0
- package/src/components/input/input.tsx +320 -0
- package/src/components/kbd/index.ts +1 -0
- package/src/components/kbd/kbd.test.tsx +20 -0
- package/src/components/kbd/kbd.tsx +98 -0
- package/src/components/mark/index.ts +1 -0
- package/src/components/mark/mark.test.tsx +85 -0
- package/src/components/mark/mark.tsx +79 -0
- package/src/components/menu/index.ts +27 -0
- package/src/components/menu/menu-data.tsx +230 -0
- package/src/components/menu/menu.test.tsx +547 -0
- package/src/components/menu/menu.tsx +514 -0
- package/src/components/modal/index.ts +14 -0
- package/src/components/modal/modal.tsx +420 -0
- package/src/components/multi-combobox-list/index.ts +3 -0
- package/src/components/multi-combobox-list/multi-combobox-list.test.tsx +190 -0
- package/src/components/multi-combobox-list/multi-combobox-list.tsx +308 -0
- package/src/components/multi-select/index.ts +12 -0
- package/src/components/multi-select/multi-select.test.tsx +248 -0
- package/src/components/multi-select/multi-select.tsx +355 -0
- package/src/components/nav-link/index.ts +4 -0
- package/src/components/nav-link/nav-link.test.tsx +107 -0
- package/src/components/nav-link/nav-link.tsx +205 -0
- package/src/components/nav-link/navigation.test.tsx +117 -0
- package/src/components/nav-link/navigation.tsx +81 -0
- package/src/components/nav-link/tanstack.tsx +67 -0
- package/src/components/notification/create-notifier.tsx +518 -0
- package/src/components/notification/index.ts +20 -0
- package/src/components/notification/notification.test.tsx +321 -0
- package/src/components/notification/notification.tsx +353 -0
- package/src/components/notification/store.ts +159 -0
- package/src/components/notification/types.ts +67 -0
- package/src/components/number-input/index.ts +3 -0
- package/src/components/number-input/number-input.test.tsx +291 -0
- package/src/components/number-input/number-input.tsx +407 -0
- package/src/components/overlays/create-overlays.tsx +267 -0
- package/src/components/overlays/index.ts +25 -0
- package/src/components/overlays/renderer.tsx +214 -0
- package/src/components/overlays/store.ts +103 -0
- package/src/components/overlays/types.ts +150 -0
- package/src/components/password-input/index.ts +3 -0
- package/src/components/password-input/password-input.test.tsx +94 -0
- package/src/components/password-input/password-input.tsx +191 -0
- package/src/components/pill/index.ts +9 -0
- package/src/components/pill/pill.test.tsx +22 -0
- package/src/components/pill/pill.tsx +221 -0
- package/src/components/pills-input/index.ts +12 -0
- package/src/components/pills-input/pills-input.test.ts +136 -0
- package/src/components/pills-input/pills-input.tsx +422 -0
- package/src/components/pin-input/index.ts +3 -0
- package/src/components/pin-input/pin-input.test.tsx +74 -0
- package/src/components/pin-input/pin-input.tsx +186 -0
- package/src/components/popover/icons.tsx +129 -0
- package/src/components/popover/index.ts +8 -0
- package/src/components/popover/popover.test.tsx +223 -0
- package/src/components/popover/popover.tsx +635 -0
- package/src/components/progress/index.ts +18 -0
- package/src/components/progress/progress.test.tsx +112 -0
- package/src/components/progress/progress.tsx +194 -0
- package/src/components/radio-group/index.ts +9 -0
- package/src/components/radio-group/radio-group.test.tsx +107 -0
- package/src/components/radio-group/radio-group.tsx +207 -0
- package/src/components/rating/icons.tsx +35 -0
- package/src/components/rating/index.ts +9 -0
- package/src/components/rating/rating.test.tsx +288 -0
- package/src/components/rating/rating.tsx +389 -0
- package/src/components/schedule/index.ts +170 -0
- package/src/components/schedule/now-cursor-line.test.tsx +262 -0
- package/src/components/schedule/now-cursor-line.tsx +343 -0
- package/src/components/schedule/schedule-agenda-list.tsx +480 -0
- package/src/components/schedule/schedule-agenda-view.test.tsx +333 -0
- package/src/components/schedule/schedule-agenda-view.tsx +211 -0
- package/src/components/schedule/schedule-all-day-row.test.ts +187 -0
- package/src/components/schedule/schedule-all-day-row.tsx +616 -0
- package/src/components/schedule/schedule-create-draft.tsx +190 -0
- package/src/components/schedule/schedule-dates.test.ts +771 -0
- package/src/components/schedule/schedule-dates.ts +722 -0
- package/src/components/schedule/schedule-day-view.tsx +30 -0
- package/src/components/schedule/schedule-days-view.tsx +279 -0
- package/src/components/schedule/schedule-details-popover.test.tsx +765 -0
- package/src/components/schedule/schedule-disabled-overlay.tsx +51 -0
- package/src/components/schedule/schedule-drag-ghost.tsx +172 -0
- package/src/components/schedule/schedule-event-chip.tsx +1183 -0
- package/src/components/schedule/schedule-event-details.tsx +101 -0
- package/src/components/schedule/schedule-event-list-popover-content.tsx +149 -0
- package/src/components/schedule/schedule-event-styles.ts +60 -0
- package/src/components/schedule/schedule-geometry.test.ts +426 -0
- package/src/components/schedule/schedule-geometry.ts +482 -0
- package/src/components/schedule/schedule-grid-gesture.test.ts +235 -0
- package/src/components/schedule/schedule-grid-gesture.ts +606 -0
- package/src/components/schedule/schedule-layout.test.ts +260 -0
- package/src/components/schedule/schedule-layout.ts +270 -0
- package/src/components/schedule/schedule-month-view.test.tsx +193 -0
- package/src/components/schedule/schedule-month-view.tsx +690 -0
- package/src/components/schedule/schedule-next-up-grouping.test.ts +95 -0
- package/src/components/schedule/schedule-next-up-grouping.ts +69 -0
- package/src/components/schedule/schedule-next-up.test.tsx +189 -0
- package/src/components/schedule/schedule-next-up.tsx +138 -0
- package/src/components/schedule/schedule-overflow-chip.tsx +156 -0
- package/src/components/schedule/schedule-overflow-popover.tsx +173 -0
- package/src/components/schedule/schedule-segments.test.ts +201 -0
- package/src/components/schedule/schedule-segments.ts +120 -0
- package/src/components/schedule/schedule-snap.test.ts +546 -0
- package/src/components/schedule/schedule-snap.ts +380 -0
- package/src/components/schedule/schedule-timed-grid.tsx +1647 -0
- package/src/components/schedule/schedule-toolbar.tsx +270 -0
- package/src/components/schedule/schedule-type-cost.test.ts +104 -0
- package/src/components/schedule/schedule-types.test.ts +64 -0
- package/src/components/schedule/schedule-types.ts +1152 -0
- package/src/components/schedule/schedule-views.test.ts +263 -0
- package/src/components/schedule/schedule-views.ts +293 -0
- package/src/components/schedule/schedule-week-view.tsx +25 -0
- package/src/components/schedule/schedule-year-view.test.tsx +105 -0
- package/src/components/schedule/schedule-year-view.tsx +307 -0
- package/src/components/schedule/schedule.test.tsx +4386 -0
- package/src/components/schedule/schedule.tsx +1040 -0
- package/src/components/schedule/use-event-create.ts +591 -0
- package/src/components/schedule/use-event-drag.ts +510 -0
- package/src/components/schedule/use-event-resize.ts +565 -0
- package/src/components/schedule/use-schedule-selection.ts +119 -0
- package/src/components/schedule/use-schedule.test.ts +91 -0
- package/src/components/schedule/use-schedule.ts +135 -0
- package/src/components/segment-group/index.ts +15 -0
- package/src/components/segment-group/segment-group.test.tsx +172 -0
- package/src/components/segment-group/segment-group.tsx +570 -0
- package/src/components/select/index.ts +12 -0
- package/src/components/select/select.test.tsx +173 -0
- package/src/components/select/select.tsx +405 -0
- package/src/components/skeleton/index.ts +7 -0
- package/src/components/skeleton/skeleton.test.tsx +96 -0
- package/src/components/skeleton/skeleton.tsx +178 -0
- package/src/components/slider/index.ts +3 -0
- package/src/components/slider/slider.test.tsx +136 -0
- package/src/components/slider/slider.tsx +390 -0
- package/src/components/slider/sliderThumb.tsx +0 -0
- package/src/components/spinner/index.ts +6 -0
- package/src/components/spinner/spinner.tsx +136 -0
- package/src/components/switch/index.ts +3 -0
- package/src/components/switch/switch.test.tsx +98 -0
- package/src/components/switch/switch.tsx +234 -0
- package/src/components/table/index.ts +14 -0
- package/src/components/table/table.test.tsx +262 -0
- package/src/components/table/table.tsx +309 -0
- package/src/components/tabs/index.ts +17 -0
- package/src/components/tabs/tabs-data.tsx +125 -0
- package/src/components/tabs/tabs.test.tsx +172 -0
- package/src/components/tabs/tabs.tsx +292 -0
- package/src/components/tags-input/index.ts +3 -0
- package/src/components/tags-input/tags-input.test.tsx +85 -0
- package/src/components/tags-input/tags-input.tsx +294 -0
- package/src/components/text/index.ts +1 -0
- package/src/components/text/text.test.tsx +73 -0
- package/src/components/text/text.tsx +107 -0
- package/src/components/text-input/index.ts +3 -0
- package/src/components/text-input/text-input.test.tsx +129 -0
- package/src/components/text-input/text-input.tsx +88 -0
- package/src/components/textarea/index.ts +3 -0
- package/src/components/textarea/textarea.test.tsx +88 -0
- package/src/components/textarea/textarea.tsx +205 -0
- package/src/components/theme-icon/index.ts +7 -0
- package/src/components/theme-icon/theme-icon.test.tsx +20 -0
- package/src/components/theme-icon/theme-icon.tsx +114 -0
- package/src/components/theme-script/index.ts +1 -0
- package/src/components/theme-script/theme-script.tsx +68 -0
- package/src/components/time-input/hour-cycle.ts +61 -0
- package/src/components/time-input/index.ts +4 -0
- package/src/components/time-input/time-input.test.tsx +292 -0
- package/src/components/time-input/time-input.tsx +196 -0
- package/src/components/time-input/time-row.tsx +305 -0
- package/src/components/timeline/index.ts +11 -0
- package/src/components/timeline/timeline.test.tsx +701 -0
- package/src/components/timeline/timeline.tsx +720 -0
- package/src/components/title/index.ts +1 -0
- package/src/components/title/title.test.tsx +68 -0
- package/src/components/title/title.tsx +95 -0
- package/src/components/tooltip/index.ts +9 -0
- package/src/components/tooltip/tooltip.test.tsx +96 -0
- package/src/components/tooltip/tooltip.tsx +255 -0
- package/src/components/tree-multi-select/index.ts +11 -0
- package/src/components/tree-multi-select/tree-multi-select.test.tsx +327 -0
- package/src/components/tree-multi-select/tree-multi-select.tsx +626 -0
- package/src/components/tree-select/index.ts +11 -0
- package/src/components/tree-select/tree-select.test.tsx +376 -0
- package/src/components/tree-select/tree-select.tsx +634 -0
- package/src/index.ts +64 -0
- package/src/lib/align.ts +6 -0
- package/src/lib/available-if.test.ts +76 -0
- package/src/lib/available-if.ts +114 -0
- package/src/lib/brand.ts +19 -0
- package/src/lib/cn.test.ts +13 -0
- package/src/lib/cn.ts +28 -0
- package/src/lib/colors.ts +31 -0
- package/src/lib/control-open.ts +38 -0
- package/src/lib/date-predicates.test.ts +149 -0
- package/src/lib/date-predicates.ts +83 -0
- package/src/lib/date-value.test.ts +107 -0
- package/src/lib/date-value.ts +76 -0
- package/src/lib/dev-warn.ts +18 -0
- package/src/lib/focus-styles.test.ts +138 -0
- package/src/lib/focus-styles.ts +145 -0
- package/src/lib/form-control.ts +72 -0
- package/src/lib/gradient.ts +81 -0
- package/src/lib/intl-direction.test.tsx +96 -0
- package/src/lib/intl.test.tsx +162 -0
- package/src/lib/intl.tsx +210 -0
- package/src/lib/link-component.test.tsx +46 -0
- package/src/lib/link-component.tsx +32 -0
- package/src/lib/merge-refs.ts +20 -0
- package/src/lib/overlay-container.test.tsx +69 -0
- package/src/lib/overlay-container.tsx +64 -0
- package/src/lib/overlay-layer.test.tsx +139 -0
- package/src/lib/overlay-layer.tsx +81 -0
- package/src/lib/placement.ts +23 -0
- package/src/lib/props.ts +48 -0
- package/src/lib/required-if.ts +57 -0
- package/src/lib/schedule-predicates.test.ts +230 -0
- package/src/lib/schedule-predicates.ts +193 -0
- package/src/lib/select-data.ts +227 -0
- package/src/lib/sizes.ts +20 -0
- package/src/lib/test-id.ts +27 -0
- package/src/lib/theme-init-runtime.test.ts +152 -0
- package/src/lib/theme-init-runtime.ts +79 -0
- package/src/lib/theme.test.ts +223 -0
- package/src/lib/theme.ts +153 -0
- package/src/lib/tree-data.ts +159 -0
- package/src/lib/typography-size.ts +59 -0
- package/src/lib/use-container-query.test.ts +83 -0
- package/src/lib/use-container-query.ts +44 -0
- package/src/lib/use-disclosure.test.ts +85 -0
- package/src/lib/use-disclosure.ts +77 -0
- package/src/lib/use-isomorphic-layout-effect.ts +12 -0
- package/src/lib/use-local-storage.test.ts +165 -0
- package/src/lib/use-local-storage.ts +178 -0
- package/src/lib/use-logger.ts +39 -0
- package/src/lib/use-media-query.test.ts +77 -0
- package/src/lib/use-media-query.ts +35 -0
- package/src/lib/use-now.ts +59 -0
- package/src/lib/use-theme.test.ts +305 -0
- package/src/lib/use-theme.ts +279 -0
- package/src/lib/use-uncontrolled.test.ts +207 -0
- package/src/lib/use-uncontrolled.ts +85 -0
- package/src/styles.css +17 -0
- package/src/test-setup.ts +130 -0
- package/src/theme-init-script.ts +10 -0
- package/src/theme.css +1281 -0
- package/src/theme.forced-colors.test.tsx +215 -0
- package/src/theme.test.ts +221 -0
- package/src/visually-hidden-containment.test.tsx +98 -0
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
import type { ScheduleSlotPredicate } from "../../lib/schedule-predicates";
|
|
2
|
+
import type { FirstDayOfWeek, ScheduleAlign, ScheduleAnyEvent, ScheduleEvent, ScheduleOverlapTarget, ScheduleStaticEvent, ScheduleView } from "./schedule-types";
|
|
3
|
+
/**
|
|
4
|
+
* RFC §5 (`docs/rfcs/schedule.md`) date math. Kept in the component folder,
|
|
5
|
+
* not `lib/` — it's keyed on `ScheduleView`, which nothing else in the kit
|
|
6
|
+
* has. All arithmetic goes through `@internationalized/date`'s own `.add()`/
|
|
7
|
+
* `.set()` instance methods on the value `lib/date-value.ts`'s boundary
|
|
8
|
+
* produces — never hand-rolled ms/day math — so DST and month-length edges
|
|
9
|
+
* are the library's problem, not ours.
|
|
10
|
+
*/
|
|
11
|
+
export type DateRange = {
|
|
12
|
+
start: Date;
|
|
13
|
+
end: Date;
|
|
14
|
+
};
|
|
15
|
+
type RangeOptions = {
|
|
16
|
+
timeZone: string;
|
|
17
|
+
locale: string;
|
|
18
|
+
/**
|
|
19
|
+
* `DaysView`/`Root`'s public prop is named `align` (not `startOfWeek` —
|
|
20
|
+
* see `ScheduleAlign`'s own doc comment for why), but this option-bag
|
|
21
|
+
* field keeps the lower-level `startOfWeek` name: it's fed into
|
|
22
|
+
* `@internationalized/date`'s own `startOfWeek()` function below for
|
|
23
|
+
* every branch (`"days"`, `"month"`, `"year"` alike), which is still an
|
|
24
|
+
* accurate description of what's being computed here regardless of what
|
|
25
|
+
* the public prop that supplies it is called.
|
|
26
|
+
*/
|
|
27
|
+
startOfWeek?: ScheduleAlign;
|
|
28
|
+
/** `"days"` view's window size, in days. Default `7`. */
|
|
29
|
+
visibleDays?: number;
|
|
30
|
+
};
|
|
31
|
+
type PaginateOptions = {
|
|
32
|
+
timeZone: string;
|
|
33
|
+
visibleDays?: number;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Narrows `DaysView`/`Root`'s wider `ScheduleAlign` (`FirstDayOfWeek |
|
|
37
|
+
* "relative"`) down to what `@internationalized/date`'s own `startOfWeek`
|
|
38
|
+
* accepts — `"relative"` isn't a real day-of-week, it's Schedule's own
|
|
39
|
+
* "don't snap, start the window at the anchor itself" mode, so it resolves
|
|
40
|
+
* to `undefined` (locale default) here rather than being forwarded. Shared
|
|
41
|
+
* by `getVisibleRange`'s month/year branches (which have no `"relative"`
|
|
42
|
+
* concept of their own) and `schedule.tsx`'s `Root`-to-`MonthView` forwarding.
|
|
43
|
+
*/
|
|
44
|
+
export declare function resolveWeekStartDay(startOfWeek?: FirstDayOfWeek | "relative"): FirstDayOfWeek | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* The visible range for a view anchored at `date`. Month's range is the
|
|
47
|
+
* padded 6-week grid (adjacent-month days are visible and need their events
|
|
48
|
+
* queried too), not the strict calendar-month boundary.
|
|
49
|
+
*/
|
|
50
|
+
export declare function getVisibleRange(view: ScheduleView, date: Date, options: RangeOptions): DateRange;
|
|
51
|
+
/** One step forward/back for the given view — "Today" needs no special case:
|
|
52
|
+
* it's just `onDateChange?.(now)`, since each view's own `getVisibleRange`
|
|
53
|
+
* snaps any anchor to that view's natural boundary. */
|
|
54
|
+
export declare function paginateDate(view: ScheduleView, date: Date, direction: -1 | 1, options: PaginateOptions): Date;
|
|
55
|
+
/**
|
|
56
|
+
* The instant at `hour:00` on `day`'s calendar date, **in `timeZone`** — the
|
|
57
|
+
* boundary of one day column's painted band (`schedule-segments.ts`).
|
|
58
|
+
*
|
|
59
|
+
* `hour === 24` is the next day's midnight, reached with `.add({ days: 1 })`
|
|
60
|
+
* rather than `+24h`, so it stays correct on a 23- or 25-hour DST day. Every
|
|
61
|
+
* other hour is a wall-clock `.set()`, for the same reason.
|
|
62
|
+
*/
|
|
63
|
+
export declare function dayBoundary(day: Date, hour: number, timeZone: string): Date;
|
|
64
|
+
/**
|
|
65
|
+
* The instants at `stepMinutes` intervals across `[fromMinutes, toMinutes]` of
|
|
66
|
+
* `day`'s calendar date, in `timeZone` — both ends inclusive, so N slots come
|
|
67
|
+
* back as N+1 boundaries and a caller can walk them pairwise.
|
|
68
|
+
*
|
|
69
|
+
* Exists so the disabled overlay can probe at `slotDuration` granularity
|
|
70
|
+
* without paying a zone conversion per probe: `toZoned` runs once for the whole
|
|
71
|
+
* day and every step after it is a wall-clock `.add({ minutes })`, which is
|
|
72
|
+
* DST-correct for the same reason `dayBoundary` prefers `.add({ days: 1 })`
|
|
73
|
+
* over `+24h`. A 13-hour band at `slotDuration={15}` is 53 boundaries from one
|
|
74
|
+
* conversion, where `dayBoundary`-per-probe would have been 104.
|
|
75
|
+
*/
|
|
76
|
+
export declare function dayBoundaries(day: Date, fromMinutes: number, toMinutes: number, stepMinutes: number, timeZone: string): Date[];
|
|
77
|
+
/**
|
|
78
|
+
* `date` shifted by `days` calendar days, preserving its wall-clock time.
|
|
79
|
+
*
|
|
80
|
+
* Built on `paginateDate` rather than `+ days * 86_400_000`: that arithmetic
|
|
81
|
+
* silently drifts an hour across a DST transition, which is exactly the class
|
|
82
|
+
* of bug the module header's "never hand-rolled ms arithmetic" rule exists to
|
|
83
|
+
* prevent. `paginateDate`'s `visibleDays` option *is* its step size for the
|
|
84
|
+
* `"days"` view, so an arbitrary delta is one call — no new
|
|
85
|
+
* `@internationalized/date` import, and the DST handling is the same code path
|
|
86
|
+
* pagination already trusts.
|
|
87
|
+
*/
|
|
88
|
+
export declare function addCalendarDays(date: Date, days: number, timeZone: string): Date;
|
|
89
|
+
/** Whether `event` overlaps the calendar day containing `day`, in `timeZone`. */
|
|
90
|
+
export declare function eventOccursOnDay(event: {
|
|
91
|
+
start: Date;
|
|
92
|
+
end: Date;
|
|
93
|
+
}, day: Date, timeZone: string): boolean;
|
|
94
|
+
/** Exclusive-end overlap test — an event ending when another starts doesn't overlap it. */
|
|
95
|
+
export declare function rangesOverlap(a: DateRange, b: DateRange): boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Whether any part of `event`'s range is inside the window `view` is currently
|
|
98
|
+
* showing, anchored at `date` — the predicate behind selection's reveal rule
|
|
99
|
+
* (`schedule.tsx`), which moves the anchor only when the selected event is
|
|
100
|
+
* *not* already on screen.
|
|
101
|
+
*
|
|
102
|
+
* Tests the **whole** `[start, end)` range rather than just `start`, which is
|
|
103
|
+
* the entire difficulty: a multi-day event beginning before the window and
|
|
104
|
+
* ending after it is visible on every day of that window, and anchoring to its
|
|
105
|
+
* `start` would page *away* from the thing being revealed.
|
|
106
|
+
*
|
|
107
|
+
* Deliberately a one-line composition of `getVisibleRange` + `rangesOverlap`
|
|
108
|
+
* rather than its own arithmetic — the month branch's padded six-week grid and
|
|
109
|
+
* the days branch's `"relative"`/`visibleDays` snapping are subtle enough that
|
|
110
|
+
* a second implementation of "what is on screen" would drift from the first.
|
|
111
|
+
* The options bag is derived structurally from `getVisibleRange` itself for the
|
|
112
|
+
* same reason, so the two can never disagree about their inputs.
|
|
113
|
+
*
|
|
114
|
+
* Inherits `rangesOverlap`'s strict, exclusive-end comparison, which gives the
|
|
115
|
+
* boundary cases for free: an event ending exactly at the window's start is not
|
|
116
|
+
* visible, one starting exactly at its end likewise, and an all-day event's
|
|
117
|
+
* `end` is already the exclusive midnight-after boundary (see
|
|
118
|
+
* `ScheduleEvent.allDay`).
|
|
119
|
+
*
|
|
120
|
+
* A zero-duration event is in range whenever it falls strictly inside the
|
|
121
|
+
* window — `rangesOverlap` compares *across* the two ranges, so a zero-length
|
|
122
|
+
* one still satisfies both halves. Note this deliberately does not agree with
|
|
123
|
+
* `schedule-segments.ts`, which applies `start < end` to the *clipped* range
|
|
124
|
+
* and so paints no chip for it at all. That is the correct disagreement: "is it
|
|
125
|
+
* inside the dates on screen" and "does it draw anything" are different
|
|
126
|
+
* questions. The reveal relies on exactly that — it declines to move the anchor
|
|
127
|
+
* (the event is already in range), then finds no chip to scroll to and stops.
|
|
128
|
+
*/
|
|
129
|
+
export declare function isEventInVisibleRange(event: DateRange, view: ScheduleView, date: Date, options: Parameters<typeof getVisibleRange>[2]): boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Overlap-prevention (RFC §12a) — a deliberately separate mechanism from
|
|
132
|
+
* `slotDisabled`, never folded into it (§12's own "occupied and disabled
|
|
133
|
+
* are two different, non-conflated concepts" principle applies here too).
|
|
134
|
+
*
|
|
135
|
+
* Whether `range` overlaps any of `candidates`, excluding `excludeId` — so
|
|
136
|
+
* dragging/resizing an event never rejects against its own pre-gesture self.
|
|
137
|
+
* Assumes `id`s are unique across `data` and `staticEvents` combined; a
|
|
138
|
+
* shared `id` across the two arrays would incorrectly exclude the wrong one
|
|
139
|
+
* when checking against both kinds.
|
|
140
|
+
*/
|
|
141
|
+
export declare function rangeOverlapsAny(range: DateRange, candidates: {
|
|
142
|
+
id: string;
|
|
143
|
+
start: Date;
|
|
144
|
+
end: Date;
|
|
145
|
+
}[], excludeId?: string): boolean;
|
|
146
|
+
/** Axis-B candidate-pool selection for overlap-prevention — pure, so it's
|
|
147
|
+
* independently testable from the gesture wiring that calls it. */
|
|
148
|
+
export declare function resolveOverlapCandidates(data: ScheduleEvent[], staticEvents: ScheduleStaticEvent[], against: ScheduleOverlapTarget | "both"): ScheduleAnyEvent[];
|
|
149
|
+
/** Which of the two independent commit-time gates rejected a range —
|
|
150
|
+
* `"disabled"` and `"overlap"` are deliberately never conflated into one
|
|
151
|
+
* "unavailable" reason (RFC §12's own non-conflation principle), so a
|
|
152
|
+
* rejection's visual/attribute treatment can tell them apart later even
|
|
153
|
+
* though both currently animate identically. */
|
|
154
|
+
export type RangeCommitResult = {
|
|
155
|
+
ok: true;
|
|
156
|
+
} | {
|
|
157
|
+
ok: false;
|
|
158
|
+
reason: "disabled" | "overlap";
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
* The one place `slotDisabled` and overlap-prevention compose — both are
|
|
162
|
+
* independent gates, checked identically by drag (pointer + keyboard),
|
|
163
|
+
* resize, and create. Exported for the other schedule-internal modules that
|
|
164
|
+
* call it, but deliberately not re-exported from the public barrel
|
|
165
|
+
* (`index.ts`) — internal wiring only, callers build `overlapCandidates`
|
|
166
|
+
* themselves via `resolveOverlapCandidates`.
|
|
167
|
+
*/
|
|
168
|
+
export declare function checkRangeCommit(range: DateRange, options: {
|
|
169
|
+
slotDisabled?: ScheduleSlotPredicate;
|
|
170
|
+
/** The schedule's own resolved zone, handed to `slotDisabled` as its second
|
|
171
|
+
* argument so a predicate can never disagree with the grid restricting by
|
|
172
|
+
* it (`lib/date-predicates.ts`'s convention, range-shaped).
|
|
173
|
+
*
|
|
174
|
+
* Required rather than optional-with-a-default on purpose: this function is
|
|
175
|
+
* internal wiring, never re-exported from `index.ts`, and every call site
|
|
176
|
+
* already holds the zone. A default here would silently reintroduce
|
|
177
|
+
* host-zone drift at whichever call site forgot it next. */
|
|
178
|
+
timeZone: string;
|
|
179
|
+
preventOverlap?: boolean;
|
|
180
|
+
overlapCandidates?: {
|
|
181
|
+
id: string;
|
|
182
|
+
start: Date;
|
|
183
|
+
end: Date;
|
|
184
|
+
}[];
|
|
185
|
+
excludeId?: string;
|
|
186
|
+
}): RangeCommitResult;
|
|
187
|
+
/** A stable, timeZone-aware per-day key (`YYYY-MM-DD`) — used for React keys
|
|
188
|
+
* and `data-testid`s across `MonthView`/`YearView`'s day grids.
|
|
189
|
+
* `Date#toISOString()` would read the instant's *UTC* calendar day, not the
|
|
190
|
+
* schedule's configured one, so it can't stand in for this near a midnight
|
|
191
|
+
* boundary outside UTC. */
|
|
192
|
+
export declare function dayKey(date: Date, timeZone: string): string;
|
|
193
|
+
/**
|
|
194
|
+
* Each calendar day's local-midnight instant from `range.start` up to (not
|
|
195
|
+
* including) `range.end`, stepping via `paginateDate`'s calendar-aware
|
|
196
|
+
* `.add({ days: 1 })` rather than a fixed 86,400,000ms increment — a
|
|
197
|
+
* DST-transition day still lands on the correct next midnight.
|
|
198
|
+
*/
|
|
199
|
+
export declare function enumerateDays(range: DateRange, timeZone: string): Date[];
|
|
200
|
+
/**
|
|
201
|
+
* Each month's local-midnight-of-the-1st instant from `range.start` up to
|
|
202
|
+
* (not including) `range.end` — `YearView`'s 12 mini-months, the same
|
|
203
|
+
* calendar-aware stepping `enumerateDays` uses for days.
|
|
204
|
+
*/
|
|
205
|
+
export declare function enumerateMonths(range: DateRange, timeZone: string): Date[];
|
|
206
|
+
/** Whether `a` and `b` fall in the same calendar month (and year), in `timeZone` —
|
|
207
|
+
* `MonthView`'s adjacent-month dimming and `YearView`'s blank-cell padding both
|
|
208
|
+
* key off this rather than comparing native `Date#getMonth()`, which reads the
|
|
209
|
+
* *host's* local time zone instead of the schedule's configured one. */
|
|
210
|
+
export declare function isSameMonth(a: Date, b: Date, timeZone: string): boolean;
|
|
211
|
+
/** Whether `day` falls on the same calendar day as `now`, in `timeZone` —
|
|
212
|
+
* Month/Year's own "today" cell highlight. Compares via `dayKey` (already
|
|
213
|
+
* used for these views' own React keys) rather than `toZoned`'s
|
|
214
|
+
* year/month/day fields like `isSameMonth` above, since a plain string
|
|
215
|
+
* comparison of the two is exactly as timeZone-correct and cheaper than
|
|
216
|
+
* building two full `ZonedDateTime`s just to compare three numbers.
|
|
217
|
+
* `now` is threaded in, not read internally via `new Date()` — same
|
|
218
|
+
* "resolve once per render, stay pure/testable" reasoning as
|
|
219
|
+
* `ScheduleTimedGrid`'s own `todayRef`. */
|
|
220
|
+
export declare function isToday(day: Date, now: Date, timeZone: string): boolean;
|
|
221
|
+
/** An event's start–end time range, e.g. "09:00 AM – 10:30 AM" — shared by
|
|
222
|
+
* the event chip's subtext and the built-in event-details popover, so
|
|
223
|
+
* there's one definition of how a range reads, not two.
|
|
224
|
+
*
|
|
225
|
+
* `hour: "2-digit"`, not `"numeric"` — a real SSR hydration mismatch,
|
|
226
|
+
* verified in a real browser: `"numeric"` leaves zero-padding up to each
|
|
227
|
+
* runtime's own bundled ICU data, which Node and a browser don't
|
|
228
|
+
* necessarily agree on for every locale (observed: `fr-FR` renders
|
|
229
|
+
* "9:00" server-side, "09:00" client-side). `"2-digit"` is the one
|
|
230
|
+
* spec-guaranteed-deterministic option, unlike `formatScheduleTitle`'s
|
|
231
|
+
* separator-glyph mismatch below, which normalization can paper over —
|
|
232
|
+
* padding is real digit content, so it has to be pinned instead. */
|
|
233
|
+
export declare function timeRangeLabel(start: Date, end: Date, locale?: string,
|
|
234
|
+
/**
|
|
235
|
+
* Optional and trailing, so every existing caller is byte-identical.
|
|
236
|
+
*
|
|
237
|
+
* The timed grid's callers deliberately pass nothing: its hour-axis gutter
|
|
238
|
+
* labels are host-local by construction (see `clockTimeLabel` below), so a
|
|
239
|
+
* chip whose text resolved a different zone would contradict the axis it
|
|
240
|
+
* sits on. The agenda has no such axis — its visible time comes from
|
|
241
|
+
* `timeLabel`, which does take a zone — so a row's accessible name has to
|
|
242
|
+
* pass one here or it would announce a different clock reading than the one
|
|
243
|
+
* printed next to it.
|
|
244
|
+
*/
|
|
245
|
+
timeZone?: string): string;
|
|
246
|
+
/**
|
|
247
|
+
* A single clock time, e.g. "09:30" — the now-cursor's own label
|
|
248
|
+
* (`now-cursor-line.tsx`). Deliberately **no `timeZone` option**, unlike
|
|
249
|
+
* every other formatter in this file: `schedule-timed-grid.tsx`'s hour-axis
|
|
250
|
+
* gutter labels are host-local by construction (`hourFormatter`, fed a
|
|
251
|
+
* `new Date(2000, 0, 1, hour)` with no timezone conversion involved), and so
|
|
252
|
+
* is the now-line's own pixel position (`nowIndicatorTop`, `schedule-
|
|
253
|
+
* geometry.ts`, via `minutesFromMidnight`'s `.getHours()`/`.getMinutes()`).
|
|
254
|
+
* Threading `timeZone` through here too would let this label disagree with
|
|
255
|
+
* both of those the moment a consumer sets a `timeZone` other than the
|
|
256
|
+
* host's own — the line would still point at the host-local hour, but the
|
|
257
|
+
* text next to it would claim a different one. `locale` alone is safe to
|
|
258
|
+
* thread: it only affects digit shape/ordering (and a leading zero via
|
|
259
|
+
* `"2-digit"`), never which instant gets read as "now."
|
|
260
|
+
*/
|
|
261
|
+
export declare function clockTimeLabel(date: Date, locale?: string): string;
|
|
262
|
+
/**
|
|
263
|
+
* An all-day event's date (or date range), e.g. "July 15, 2026" or
|
|
264
|
+
* "July 15 – 17, 2026" — the `allDay` counterpart to `timeRangeLabel` above,
|
|
265
|
+
* shown instead of a time-of-day range since an all-day event's `start`/`end`
|
|
266
|
+
* are day *boundaries*, not meaningful clock times (RFC's all-day addendum:
|
|
267
|
+
* `start` = midnight of the first day, `end` = midnight of the day *after*
|
|
268
|
+
* the last day, exclusive).
|
|
269
|
+
*
|
|
270
|
+
* `end.getTime() - 1` — one millisecond before the exclusive boundary — reads
|
|
271
|
+
* back the last real day without any calendar-unit arithmetic: it's always
|
|
272
|
+
* inside that day by construction, so `Intl.DateTimeFormat`'s own `timeZone`
|
|
273
|
+
* resolves the correct calendar date directly. This is display formatting on
|
|
274
|
+
* a fixed instant, not the calendar math (pagination, visible-range) the RFC
|
|
275
|
+
* requires going through `@internationalized/date` for — there's no day
|
|
276
|
+
* arithmetic here to get wrong across a DST boundary.
|
|
277
|
+
*
|
|
278
|
+
* `formatRange` + `.normalize("NFKC")`, not a hand-rolled `${a} – ${b}` join
|
|
279
|
+
* — same real SSR-hydration fix `formatScheduleTitle`'s week title already
|
|
280
|
+
* needs and documents above (a genuine separator-glyph mismatch between
|
|
281
|
+
* Node's and a browser's bundled ICU data).
|
|
282
|
+
*/
|
|
283
|
+
export declare function allDayRangeLabel(start: Date, end: Date, timeZone: string, locale?: string): string;
|
|
284
|
+
/**
|
|
285
|
+
* The toolbar title for a view anchored at `date` — RFC §14. Native
|
|
286
|
+
* `Intl.DateTimeFormat` throughout, exactly like this file's own
|
|
287
|
+
* `timeRangeLabel`: this is display formatting, not calendar arithmetic, so
|
|
288
|
+
* it doesn't need the `@internationalized/date` boundary the way pagination
|
|
289
|
+
* math does.
|
|
290
|
+
*
|
|
291
|
+
* Week uses `formatRange` for a locale-correct condensed span ("Aug 25 – 31,
|
|
292
|
+
* 2026" vs. "Aug 25 – Sep 1, 2026" across a month boundary) — CLDR's actual
|
|
293
|
+
* per-locale range phrasing, which a hand-rolled `${start} – ${end}` join
|
|
294
|
+
* can't reproduce for every locale (some don't just dash-join two dates).
|
|
295
|
+
*
|
|
296
|
+
* `.normalize("NFKC")` on the result is load-bearing, not defensive
|
|
297
|
+
* copy-paste: verified in a real browser that `formatRange` produces a
|
|
298
|
+
* genuine SSR hydration mismatch otherwise — Node's bundled ICU and a
|
|
299
|
+
* browser's don't necessarily agree on the exact separator glyph for the
|
|
300
|
+
* identical locale/options (observed: a plain space + en dash vs. a *thin*
|
|
301
|
+
* space + en dash), so the server- and client-rendered text differ byte-
|
|
302
|
+
* for-byte while looking identical. NFKC's compatibility decomposition maps
|
|
303
|
+
* typographic space variants (thin space, figure space, …) back to a plain
|
|
304
|
+
* space, which converges exactly that divergence; NFC does not (canonical
|
|
305
|
+
* equivalence doesn't cover compatibility variants like space width).
|
|
306
|
+
*/
|
|
307
|
+
export declare function formatScheduleTitle(view: ScheduleView, date: Date, options: {
|
|
308
|
+
timeZone: string;
|
|
309
|
+
locale?: string;
|
|
310
|
+
/** Same low-level-name-kept rationale as `RangeOptions.startOfWeek`
|
|
311
|
+
* above — this is what actually gets forwarded into `getVisibleRange`'s
|
|
312
|
+
* own field of the same name below, not the public `align` prop name. */
|
|
313
|
+
startOfWeek?: ScheduleAlign;
|
|
314
|
+
visibleDays?: number;
|
|
315
|
+
}): string;
|
|
316
|
+
/** A single clock-reading, e.g. "09:00" (or "09:00 AM" — a locale's own
|
|
317
|
+
* 12h/24h convention, same as `timeRangeLabel`, is never overridden here)
|
|
318
|
+
* — `Schedule.NextUp`'s per-slot time label. Reuses `timeRangeLabel`'s own
|
|
319
|
+
* `hour: "2-digit"` choice (not "numeric") for the same documented
|
|
320
|
+
* Node/browser ICU zero-padding hydration-mismatch reason above. Unlike
|
|
321
|
+
* `timeRangeLabel`, this *does* take `timeZone`: `Schedule.NextUp` exposes
|
|
322
|
+
* its own `timeZone` prop the same way every other view does, and a bare
|
|
323
|
+
* `Intl.DateTimeFormat` call with no `timeZone` silently falls back to the
|
|
324
|
+
* host runtime's local zone instead — invisible in a browser whose local
|
|
325
|
+
* zone happens to match, but wrong the moment it doesn't. */
|
|
326
|
+
export declare function timeLabel(date: Date, timeZone: string, locale?: string): string;
|
|
327
|
+
/**
|
|
328
|
+
* Compact "1h 30m" / "45m" duration — `Schedule.NextUp`'s per-event badge,
|
|
329
|
+
* shown for every event so same-start-time events (stacked under one shared
|
|
330
|
+
* time label) can still be told apart by how long each one runs. Composed
|
|
331
|
+
* from `Intl.NumberFormat({ style: "unit" })`, the same pattern
|
|
332
|
+
* `time-input/hour-cycle.ts`'s `timeUnitLabels` already uses — not
|
|
333
|
+
* `Intl.DurationFormat`: there's no existing usage of it anywhere in the
|
|
334
|
+
* kit, and this file already carries two documented SSR-hydration fixes
|
|
335
|
+
* (`.normalize("NFKC")` above, `"2-digit"` over `"numeric"`) from trusting
|
|
336
|
+
* newer/less-uniform ICU behavior across runtimes — composing from the
|
|
337
|
+
* already-proven `NumberFormat` unit style avoids repeating that exact risk
|
|
338
|
+
* for a still-green API.
|
|
339
|
+
*/
|
|
340
|
+
export declare function durationLabel(start: Date, end: Date, locale?: string): string;
|
|
341
|
+
/**
|
|
342
|
+
* `Schedule.NextUp`'s day-group label — "Today"/"Tomorrow" via
|
|
343
|
+
* `Intl.RelativeTimeFormat`, the same class of Intl-derivable string as this
|
|
344
|
+
* file's own weekday/month names (`ScheduleTranslations`' doc comment:
|
|
345
|
+
* "Weekday/month names… are Intl-derivable… and deliberately have no key"),
|
|
346
|
+
* so this needs no translation key either — it falls back to a numeric
|
|
347
|
+
* phrase for any locale/unit combination without a dedicated word. Anything
|
|
348
|
+
* further out than tomorrow gets a short weekday+day+month format (e.g.
|
|
349
|
+
* "Fri, 28 Aug"; token order is CLDR's own per locale — never hand-reorder).
|
|
350
|
+
* Compares `dayKey` strings directly rather than computing a numeric
|
|
351
|
+
* day-offset, since the branch itself already tells us which literal offset
|
|
352
|
+
* (`0`/`1`) applies.
|
|
353
|
+
*/
|
|
354
|
+
export declare function resolveNextUpDayLabel(date: Date, now: Date, options: {
|
|
355
|
+
timeZone: string;
|
|
356
|
+
locale?: string;
|
|
357
|
+
}): string;
|
|
358
|
+
export {};
|
|
359
|
+
//# sourceMappingURL=schedule-dates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedule-dates.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-dates.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AAC1E,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,qBAAqB,EACrB,mBAAmB,EACnB,YAAY,EACb,MAAM,kBAAkB,CAAA;AAEzB;;;;;;;GAOG;AAEH,MAAM,MAAM,SAAS,GAAG;IAAE,KAAK,EAAE,IAAI,CAAC;IAAC,GAAG,EAAE,IAAI,CAAA;CAAE,CAAA;AAElD,KAAK,YAAY,GAAG;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,aAAa,CAAA;IAC3B,yDAAyD;IACzD,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AACD,KAAK,eAAe,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAEjE;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CACjC,WAAW,CAAC,EAAE,cAAc,GAAG,UAAU,GACxC,cAAc,GAAG,SAAS,CAE5B;AAgBD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,YAAY,GAAG,SAAS,CAiGhG;AAED;;wDAEwD;AACxD,wBAAgB,YAAY,CAC1B,IAAI,EAAE,YAAY,EAClB,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,EACjB,OAAO,EAAE,eAAe,GACvB,IAAI,CAaN;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAI3E;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAC3B,GAAG,EAAE,IAAI,EACT,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,GACf,IAAI,EAAE,CAgBR;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAMhF;AAED,iFAAiF;AACjF,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE;IAAE,KAAK,EAAE,IAAI,CAAC;IAAC,GAAG,EAAE,IAAI,CAAA;CAAE,EACjC,GAAG,EAAE,IAAI,EACT,QAAQ,EAAE,MAAM,GACf,OAAO,CAOT;AAED,2FAA2F;AAC3F,wBAAgB,aAAa,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,GAAG,OAAO,CAEjE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,GAC7C,OAAO,CAET;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,SAAS,EAChB,UAAU,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,IAAI,CAAC;IAAC,GAAG,EAAE,IAAI,CAAA;CAAE,EAAE,EACpD,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAET;AAED;oEACoE;AACpE,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,aAAa,EAAE,EACrB,YAAY,EAAE,mBAAmB,EAAE,EACnC,OAAO,EAAE,qBAAqB,GAAG,MAAM,GACtC,gBAAgB,EAAE,CAIpB;AAED;;;;iDAIiD;AACjD,MAAM,MAAM,iBAAiB,GAAG;IAAE,EAAE,EAAE,IAAI,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,UAAU,GAAG,SAAS,CAAA;CAAE,CAAA;AAE5F;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE;IACP,YAAY,CAAC,EAAE,qBAAqB,CAAA;IACpC;;;;;;;iEAO6D;IAC7D,QAAQ,EAAE,MAAM,CAAA;IAChB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,iBAAiB,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,IAAI,CAAC;QAAC,GAAG,EAAE,IAAI,CAAA;KAAE,EAAE,CAAA;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GACA,iBAAiB,CAOnB;AAED;;;;4BAI4B;AAC5B,wBAAgB,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAO3D;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,CAQxE;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,CAQ1E;AAED;;;yEAGyE;AACzE,wBAAgB,WAAW,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAIvE;AAED;;;;;;;;4CAQ4C;AAC5C,wBAAgB,OAAO,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEvE;AAED;;;;;;;;;;;qEAWqE;AACrE,wBAAgB,cAAc,CAC5B,KAAK,EAAE,IAAI,EACX,GAAG,EAAE,IAAI,EACT,MAAM,CAAC,EAAE,MAAM;AACf;;;;;;;;;;GAUG;AACH,QAAQ,CAAC,EAAE,MAAM,GAChB,MAAM,CAOR;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAElE;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,IAAI,EACX,GAAG,EAAE,IAAI,EACT,QAAQ,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,MAAM,GACd,MAAM,CAKR;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,YAAY,EAClB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE;IACP,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;8EAE0E;IAC1E,WAAW,CAAC,EAAE,aAAa,CAAA;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,GACA,MAAM,CA8BR;AAED;;;;;;;;;8DAS8D;AAC9D,wBAAgB,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAI/E;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAsB7E;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,IAAI,EACV,GAAG,EAAE,IAAI,EACT,OAAO,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAC7C,MAAM,CAgBR"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type DaysViewBaseProps } from "./schedule-days-view";
|
|
2
|
+
import type { ScheduleSlotProps } from "./schedule-types";
|
|
3
|
+
/**
|
|
4
|
+
* RFC §17a (`docs/rfcs/schedule.md`) — a thin, preconfigured `DaysView` with
|
|
5
|
+
* `visibleDays` fixed to `1`, reinstated as a convenience wrapper (not a
|
|
6
|
+
* reimplementation — the whole point of the `DaysView` merge was one
|
|
7
|
+
* underlying engine) for the common single-day case.
|
|
8
|
+
*
|
|
9
|
+
* `align` is omitted from the public surface entirely, matching the
|
|
10
|
+
* old, pre-merge `DayView`'s shape exactly (it never accepted a
|
|
11
|
+
* `firstDayOfWeek` prop — a single day has no week-start concept to snap
|
|
12
|
+
* to). This isn't just an API-cleanliness choice: `getVisibleRange`'s
|
|
13
|
+
* `"days"` branch special-cases `visibleDays === 1` to always anchor on the
|
|
14
|
+
* date itself, the same as `align: "relative"`, regardless of what
|
|
15
|
+
* `align` would otherwise resolve to — so the prop is provably
|
|
16
|
+
* meaningless here, not just conventionally hidden.
|
|
17
|
+
*
|
|
18
|
+
* Renders `data-schedule-part="days-view"`, same as `DaysView` itself —
|
|
19
|
+
* this genuinely mounts one, so there's exactly one source of truth for
|
|
20
|
+
* that attribute rather than a second value to keep in sync.
|
|
21
|
+
*/
|
|
22
|
+
export type DayViewProps<P = unknown> = Omit<DaysViewBaseProps<P>, "visibleDays" | "align"> & ScheduleSlotProps;
|
|
23
|
+
export declare function DayView<P = unknown>(props: DayViewProps<P>): import("react").JSX.Element;
|
|
24
|
+
//# sourceMappingURL=schedule-day-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedule-day-view.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-day-view.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAEzD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,GAAG,OAAO,IAAI,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,GACzF,iBAAiB,CAAA;AAEnB,wBAAgB,OAAO,CAAC,CAAC,GAAG,OAAO,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,+BAE1D"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { type HTMLArkProps } from "@ark-ui/react";
|
|
2
|
+
import type { Ref } from "react";
|
|
3
|
+
import type { WithTestId } from "../../lib/test-id";
|
|
4
|
+
import type { AnchorDateProps, PaginationChromeProps, ScheduleAlign, ScheduleDayClickProps, ScheduleEmptyProps, ScheduleEventProps, ScheduleOverflowProps, ScheduleSharedProps, ScheduleSlotProps, ScheduleSlotValues, ScheduleTimedProps } from "./schedule-types";
|
|
5
|
+
/**
|
|
6
|
+
* RFC §1/§17 (`docs/rfcs/schedule.md`) — standalone Days view: mountable with
|
|
7
|
+
* no `<Schedule.Root>` wrapper, its own uncontrolled anchor date, and its own
|
|
8
|
+
* (optional) pagination chrome. Replaces the old, separately-mountable
|
|
9
|
+
* `DayView`/`WeekView` pair with one `visibleDays`-sized rolling/calendar
|
|
10
|
+
* window — `visibleDays={1}` reproduces the old `DayView`, `visibleDays={7}`
|
|
11
|
+
* (the default) reproduces the old `WeekView`, and any other size is now a
|
|
12
|
+
* real, first-class option.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Every `DaysView` prop except the slot ones — what `DayView`/`WeekView` can
|
|
16
|
+
* safely `Omit` from. `ScheduleSlotProps` is a union, and an `Omit` over it
|
|
17
|
+
* would collapse the check between `slotDuration` and `minDuration`, so each
|
|
18
|
+
* public props type adds it back *after* its own `Omit`.
|
|
19
|
+
*/
|
|
20
|
+
export type DaysViewBaseProps<P = unknown> = ScheduleSharedProps<P> & ScheduleEventProps<P> & ScheduleDayClickProps & ScheduleTimedProps<P> & ScheduleEmptyProps & ScheduleOverflowProps<P> & AnchorDateProps & PaginationChromeProps & Omit<HTMLArkProps<"div">, "onSelect"> & WithTestId & {
|
|
21
|
+
/** How many day-columns to show at once. Default `7`. */
|
|
22
|
+
visibleDays?: number;
|
|
23
|
+
/** Locale default when omitted; `"relative"` starts the window at the
|
|
24
|
+
* anchor date itself instead of snapping to a calendar-week boundary —
|
|
25
|
+
* see `ScheduleAlign`. */
|
|
26
|
+
align?: ScheduleAlign;
|
|
27
|
+
/**
|
|
28
|
+
* Exposes the underlying `ScheduleTimedGrid`'s scrollable root DOM node
|
|
29
|
+
* — merged (via `mergeRefs`) with this view's own internal ref, which
|
|
30
|
+
* it needs regardless of whether a caller passes this, to scroll the
|
|
31
|
+
* grid to the now-line when its own built-in Now button is clicked
|
|
32
|
+
* (`withNowButton`, RFC §14's scroll-to-now addendum). Not part of
|
|
33
|
+
* `ScheduleTimedProps` — `Root` also composes that shared slice for
|
|
34
|
+
* its own public props and must not gain a raw DOM-ref field there; it
|
|
35
|
+
* manages its own ref privately instead (see `schedule.tsx`).
|
|
36
|
+
*/
|
|
37
|
+
gridRef?: Ref<HTMLDivElement>;
|
|
38
|
+
/**
|
|
39
|
+
* Exposes today's own rendered now-marker DOM node (`NowCursorLine`'s
|
|
40
|
+
* `marker` instance) — same "merged with an internal ref this view
|
|
41
|
+
* needs regardless" and "kept off `ScheduleTimedProps`" reasoning as
|
|
42
|
+
* `gridRef` above. Paired with `gridRef`, this is what
|
|
43
|
+
* `scrollElementToCenter` (`schedule-geometry.ts`) needs to center the
|
|
44
|
+
* scroll on the *actual rendered* marker rather than a recomputed pixel
|
|
45
|
+
* position — a real measurement stays correct even if something about
|
|
46
|
+
* the grid's layout math ever drifts from what's actually on screen.
|
|
47
|
+
*/
|
|
48
|
+
nowRef?: Ref<HTMLDivElement>;
|
|
49
|
+
};
|
|
50
|
+
export type DaysViewProps<P = unknown> = DaysViewBaseProps<P> & ScheduleSlotProps;
|
|
51
|
+
/**
|
|
52
|
+
* The view itself, over plain slot values. `DaysView` below is the public,
|
|
53
|
+
* checked entry point; `Root` renders this one directly, since by the time it
|
|
54
|
+
* forwards `slotDuration`/`minDuration` its own signature has already checked
|
|
55
|
+
* them and only plain numbers are left. Internal — not exported from the
|
|
56
|
+
* barrel.
|
|
57
|
+
*/
|
|
58
|
+
export declare function DaysViewBody<P = unknown>({ data, staticEvents, selected, defaultSelected, onSelect, withSelection, withEventDetails, onDayClick, renderEventDetails, locale: localeProp, timeZone: timeZoneProp, translations, classNames, className, startHour, endHour, slotDuration, minDuration, resizeCollision, maxDuration, hourHeight, slotDisabled, now, withNowIndicator, onEventChange, onEventRemove, onEventCreate, onGridClick, editable, preventOverlap, maxOverlapColumns, maxAllDayRows, onOverflowClick, withOverflowDetails, renderOverflowDetails, empty, date, defaultDate, onDateChange, withPagination, withNowButton, visibleDays, align, gridRef, nowRef, testId, ...rest }: DaysViewBaseProps<P> & ScheduleSlotValues): import("react").JSX.Element;
|
|
59
|
+
export declare function DaysView<P = unknown>(props: DaysViewProps<P>): import("react").JSX.Element;
|
|
60
|
+
//# sourceMappingURL=schedule-days-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedule-days-view.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-days-view.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAMhC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAMnD,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,kBAAkB,CAAA;AAIzB;;;;;;;;GAQG;AACH;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,CAAC,CAAC,GAAG,OAAO,IAAI,mBAAmB,CAAC,CAAC,CAAC,GACjE,kBAAkB,CAAC,CAAC,CAAC,GACrB,qBAAqB,GACrB,kBAAkB,CAAC,CAAC,CAAC,GACrB,kBAAkB,GAClB,qBAAqB,CAAC,CAAC,CAAC,GACxB,eAAe,GACf,qBAAqB,GAMrB,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GACrC,UAAU,GAAG;IACX,yDAAyD;IACzD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;+BAE2B;IAC3B,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;IAC7B;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;CAC7B,CAAA;AAEH,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,OAAO,IAAI,iBAAiB,CAAC,CAAC,CAAC,GAAG,iBAAiB,CAAA;AAEjF;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,CAAC,GAAG,OAAO,EAAE,EACxC,IAAI,EACJ,YAAiB,EACjB,QAAQ,EACR,eAAe,EACf,QAAQ,EACR,aAAoB,EACpB,gBAAuB,EACvB,UAAU,EACV,kBAAkB,EAClB,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,YAAY,EACtB,YAAY,EACZ,UAAU,EACV,SAAS,EACT,SAAa,EACb,OAAY,EACZ,YAAiB,EACjB,WAAW,EACX,eAAwB,EACxB,WAAW,EACX,UAAU,EACV,YAAY,EACZ,GAAG,EACH,gBAAuB,EACvB,aAAa,EACb,aAAa,EACb,aAAa,EACb,WAAW,EACX,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,qBAAqB,EACrB,KAAK,EACL,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,cAAqB,EACrB,aAAqB,EACrB,WAAe,EACf,KAAK,EACL,OAAO,EACP,MAAM,EACN,MAAM,EACN,GAAG,IAAI,EACR,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,kBAAkB,+BA8H3C;AAED,wBAAgB,QAAQ,CAAC,CAAC,GAAG,OAAO,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,+BAE5D"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* RFC §12 (`docs/rfcs/schedule.md`) disabled-slot visual, shared by the timed
|
|
4
|
+
* grid (Day/Week)'s per-run overlay and Month's whole-day cells. A flat
|
|
5
|
+
* neutral tint at rest, `cursor-not-allowed` on hover (`pointer-events-auto`
|
|
6
|
+
* is what lets it actually receive that hover instead of passing it through)
|
|
7
|
+
* — the tint is load-bearing, not decorative flourish: `cursor` alone is a
|
|
8
|
+
* hover-only affordance, invisible to a touch/mobile user who never hovers
|
|
9
|
+
* anything, so a disabled slot needs an at-rest visual regardless of input
|
|
10
|
+
* method. Year deliberately doesn't render this component at all — a flat
|
|
11
|
+
* fill would read as a smudge at its much smaller mini-month cell size, so it
|
|
12
|
+
* uses a muted day-number instead ([§10](../../../docs/rfcs/schedule.md)).
|
|
13
|
+
*
|
|
14
|
+
* `pointer-events-auto` here is still safe for the click-drag-to-create
|
|
15
|
+
* gesture on the timed grid: its handlers read `e.currentTarget` (the
|
|
16
|
+
* day-column) for all geometry, and its one `e.target`-based check just looks
|
|
17
|
+
* for an ancestor event-chip, which this overlay never is — a pointerdown
|
|
18
|
+
* landing on the overlay still bubbles to and arms the gesture normally. On
|
|
19
|
+
* Month, a click here still bubbles to the day-cell's own `onClick`.
|
|
20
|
+
*
|
|
21
|
+
* DOM order matters: this renders *before* any chip at the same call site,
|
|
22
|
+
* so an occupied portion of an otherwise-disabled range paints (and
|
|
23
|
+
* hit-tests) as the chip, not this overlay — hovering an event never shows
|
|
24
|
+
* `not-allowed`, only the empty disabled space around it does.
|
|
25
|
+
*/
|
|
26
|
+
export declare function ScheduleDisabledOverlay({ className, style, }: {
|
|
27
|
+
className?: string;
|
|
28
|
+
/** An explicit `top`/`height` (a partial run within a day-column) wins
|
|
29
|
+
* over the base `inset-0`'s `top: 0; bottom: 0` per the CSS box-model
|
|
30
|
+
* rule that a specified `height` overrides `bottom` — no `!important`
|
|
31
|
+
* override needed. */
|
|
32
|
+
style?: CSSProperties;
|
|
33
|
+
}): import("react").JSX.Element;
|
|
34
|
+
//# sourceMappingURL=schedule-disabled-overlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedule-disabled-overlay.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-disabled-overlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAG1C;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,SAAS,EACT,KAAK,GACN,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;2BAGuB;IACvB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,+BAaA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The move-drag preview. Same shape and same geometry as
|
|
3
|
+
* `schedule-create-draft.tsx` — a permanently-mounted, `aria-hidden`,
|
|
4
|
+
* pointer-events-none leaf driven purely by imperative CSS-var writes, never a
|
|
5
|
+
* `useState` re-render per `pointermove` — and, like it, pooled: one per
|
|
6
|
+
* rendered day, in a layer laid over the day columns (`piece-pool` in
|
|
7
|
+
* `schedule-timed-grid.tsx`), each placed on its day by `--sch-ghost-col`.
|
|
8
|
+
*
|
|
9
|
+
* It used to be a single element at the grid level, placed by writing
|
|
10
|
+
* `gridColumn`, which needed no horizontal pixel math. That was elegant and it
|
|
11
|
+
* was wrong for one case: an event dragged across a day boundary occupies two
|
|
12
|
+
* days, and one box can only ever draw one of them. Its own comment admitted
|
|
13
|
+
* as much ("the ghost shows the *first* day's piece"), so dragging an event up
|
|
14
|
+
* through midnight drew the piece on the previous day and simply omitted the
|
|
15
|
+
* piece under the pointer. One piece per day draws every piece, exactly the way
|
|
16
|
+
* a committed multi-day event already renders.
|
|
17
|
+
*
|
|
18
|
+
* Those pieces were then mounted *inside* each day column, which fixed the
|
|
19
|
+
* midnight case and broke a smaller one: a piece's identity was its column, so
|
|
20
|
+
* moving to another day faded one element out and the next one in, where a
|
|
21
|
+
* vertical move glided. Placed by a var, a piece keeps its element across the
|
|
22
|
+
* change and slides — see `paintPieces`' `anchor`.
|
|
23
|
+
*
|
|
24
|
+
* `--sch-ghost-top`/`--sch-ghost-height` are percentages of the timed row's
|
|
25
|
+
* height (the pool layer's, and every day column's), exactly like a chip's `--sch-base-top`/`--sch-base-height`, so
|
|
26
|
+
* the ghost lines up with the hour grid without knowing the hour height.
|
|
27
|
+
*/
|
|
28
|
+
export declare function ScheduleDragGhost({ className }: {
|
|
29
|
+
className?: string;
|
|
30
|
+
}): import("react").JSX.Element;
|
|
31
|
+
//# sourceMappingURL=schedule-drag-ghost.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedule-drag-ghost.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-drag-ghost.tsx"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,+BA6ItE"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { ScheduleSlotPredicate } from "../../lib/schedule-predicates";
|
|
3
|
+
import type { ScheduleAnyEvent, ScheduleCollision, ScheduleEvent, ScheduleEventChipClassNames, ScheduleTranslations } from "./schedule-types";
|
|
4
|
+
export type ScheduleEventChipProps<P = unknown> = {
|
|
5
|
+
event: ScheduleAnyEvent<P>;
|
|
6
|
+
/** Whether this chip is the piece carrying the event's **real** start —
|
|
7
|
+
* false for a piece that begins at a midnight cut, at `startHour`, or at
|
|
8
|
+
* the visible window's first day (`ScheduleSegment.isFirst`). Only the
|
|
9
|
+
* piece that owns an edge renders that edge's resize grip: a grip on a
|
|
10
|
+
* clipped edge would drag a boundary that isn't on screen. */
|
|
11
|
+
isFirst?: boolean;
|
|
12
|
+
/** As `isFirst`, for the end edge. */
|
|
13
|
+
isLast?: boolean;
|
|
14
|
+
/** 0-based column this piece is painted in — a drag's day delta is measured
|
|
15
|
+
* from the grabbed piece, not from the event's own start. */
|
|
16
|
+
dayIndex?: number;
|
|
17
|
+
/** The date of that column — the origin a resize offsets calendar days from
|
|
18
|
+
* once its edge leaves the column. Required rather than derived: for a
|
|
19
|
+
* multi-day event's later pieces, neither `event.start` nor anything else
|
|
20
|
+
* on the event identifies the column this particular piece is painted in. */
|
|
21
|
+
day: Date;
|
|
22
|
+
timeZone?: string;
|
|
23
|
+
/** The rendered window, for the drag ghost's own percentage math. */
|
|
24
|
+
startHour?: number;
|
|
25
|
+
totalWindowMinutes?: number;
|
|
26
|
+
/** Page the view by one range, while a drag is held against a grid edge
|
|
27
|
+
* that can no longer scroll. Internal — never a public Schedule prop. */
|
|
28
|
+
onPaginate?: (direction: -1 | 1) => void;
|
|
29
|
+
/** Percentage (0–100) of the day-column's own total height. */
|
|
30
|
+
top: number;
|
|
31
|
+
/** Percentage (0–100) of the day-column's own total height. Consumers
|
|
32
|
+
* apply a `max(height%, calc(1rem + 2px))` CSS floor, not a JS one — a
|
|
33
|
+
* percentage can't express "at least one line of content" as a flat number
|
|
34
|
+
* once the column's real rendered height can vary. */
|
|
35
|
+
height: number;
|
|
36
|
+
insets: {
|
|
37
|
+
left: string;
|
|
38
|
+
width: string;
|
|
39
|
+
zIndex: number;
|
|
40
|
+
};
|
|
41
|
+
slotDuration: number;
|
|
42
|
+
/** Already resolved to a whole number of slots — see `resolveSlotDurations`. */
|
|
43
|
+
minDuration: number;
|
|
44
|
+
resizeCollision: ScheduleCollision;
|
|
45
|
+
maxDuration?: number;
|
|
46
|
+
slotDisabled?: ScheduleSlotPredicate;
|
|
47
|
+
/** Schedule-level `editable` grant, already resolved per-gesture by the
|
|
48
|
+
* caller (`isEditGestureEnabled`) — composed here with the event's own
|
|
49
|
+
* `editable` (narrow-only) via `isEventGestureEnabled`. */
|
|
50
|
+
editableDrag?: boolean;
|
|
51
|
+
editableResize?: boolean;
|
|
52
|
+
editableRemove?: boolean;
|
|
53
|
+
/** RFC §12a, axis A already resolved per-gesture by the caller. */
|
|
54
|
+
preventOverlapOnDrag?: boolean;
|
|
55
|
+
preventOverlapOnResize?: boolean;
|
|
56
|
+
/** RFC §12a, axis B already resolved by the caller for this day. */
|
|
57
|
+
overlapCandidates?: {
|
|
58
|
+
id: string;
|
|
59
|
+
start: Date;
|
|
60
|
+
end: Date;
|
|
61
|
+
}[];
|
|
62
|
+
/** Already resolved by the caller against the schedule's `selected` ids. */
|
|
63
|
+
selected?: boolean;
|
|
64
|
+
/** Selected *and* first in the list — the one chip whose details popover
|
|
65
|
+
* opens. Defaults to `selected`, the single-id case. */
|
|
66
|
+
anchor?: boolean;
|
|
67
|
+
/** Fires with the event on a resolved click, or `null` when the details
|
|
68
|
+
* popover is dismissed. Named `onEventSelect`, not `onSelect`, so it can
|
|
69
|
+
* never collide with the DOM prop of that name if a chip ever moves onto an
|
|
70
|
+
* `ark.*` root. */
|
|
71
|
+
onEventSelect?: (event: ScheduleAnyEvent<P> | null) => void;
|
|
72
|
+
/** Whether the built-in details popover mounts for this chip when selected. */
|
|
73
|
+
withEventDetails?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Whether this chip is still in `data`, or is an outgoing copy playing its
|
|
76
|
+
* exit.
|
|
77
|
+
*
|
|
78
|
+
* Derived by `ScheduleTimedGrid` from `data` itself — an event that was there
|
|
79
|
+
* last render and is not there now — so removal animates however it happened:
|
|
80
|
+
* the `x`, a consumer's own delete button, a server push. The chip is told,
|
|
81
|
+
* it never decides.
|
|
82
|
+
*/
|
|
83
|
+
present?: boolean;
|
|
84
|
+
/** The exit animation finished, so this outgoing copy can be dropped. */
|
|
85
|
+
onExitComplete?: (event: ScheduleEvent<P>) => void;
|
|
86
|
+
onEventChange?: (event: ScheduleEvent<P>, next: {
|
|
87
|
+
start: Date;
|
|
88
|
+
end: Date;
|
|
89
|
+
}, reason: "drag" | "resize") => void;
|
|
90
|
+
onEventRemove?: (event: ScheduleEvent<P>) => void;
|
|
91
|
+
/** Overrides the built-in event-details popover's content. */
|
|
92
|
+
renderEventDetails?: (event: ScheduleAnyEvent<P>) => ReactNode;
|
|
93
|
+
locale?: string;
|
|
94
|
+
translations: Required<ScheduleTranslations>;
|
|
95
|
+
classNames?: ScheduleEventChipClassNames;
|
|
96
|
+
/** `ScheduleClassNames.eventDetailsPopover` — the popover panel itself,
|
|
97
|
+
* not a chip part, so it's threaded separately from `classNames` above. */
|
|
98
|
+
detailsPopoverClassName?: string;
|
|
99
|
+
};
|
|
100
|
+
export declare function ScheduleEventChip<P = unknown>(props: ScheduleEventChipProps<P>): ReactNode;
|
|
101
|
+
//# sourceMappingURL=schedule-event-chip.d.ts.map
|