@42-central/ui-react 0.0.0-stage → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +454 -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-ACE7FBWE.js +216 -0
- package/dist/chunk-ACE7FBWE.js.map +1 -0
- package/dist/chunk-AIQG7IIT.js +39 -0
- package/dist/chunk-AIQG7IIT.js.map +1 -0
- package/dist/chunk-B2LCHXUB.js +26 -0
- package/dist/chunk-B2LCHXUB.js.map +1 -0
- package/dist/chunk-BEL75C7N.js +35 -0
- package/dist/chunk-BEL75C7N.js.map +1 -0
- package/dist/chunk-BJZLQTAZ.js +3 -0
- package/dist/chunk-BJZLQTAZ.js.map +1 -0
- package/dist/chunk-BUIHQJGE.js +8 -0
- package/dist/chunk-BUIHQJGE.js.map +1 -0
- package/dist/chunk-CHTN5AHI.js +106 -0
- package/dist/chunk-CHTN5AHI.js.map +1 -0
- package/dist/chunk-CSCVTESP.js +58 -0
- package/dist/chunk-CSCVTESP.js.map +1 -0
- package/dist/chunk-EEMRRRYS.js +60 -0
- package/dist/chunk-EEMRRRYS.js.map +1 -0
- package/dist/chunk-FD6P6PLQ.js +153 -0
- package/dist/chunk-FD6P6PLQ.js.map +1 -0
- package/dist/chunk-FMMKEYHB.js +3 -0
- package/dist/chunk-FMMKEYHB.js.map +1 -0
- package/dist/chunk-FUWSTUDM.js +219 -0
- package/dist/chunk-FUWSTUDM.js.map +1 -0
- package/dist/chunk-G52U24GR.js +10 -0
- package/dist/chunk-G52U24GR.js.map +1 -0
- package/dist/chunk-GTKKRV5N.js +14 -0
- package/dist/chunk-GTKKRV5N.js.map +1 -0
- package/dist/chunk-HWNPXAEN.js +31 -0
- package/dist/chunk-HWNPXAEN.js.map +1 -0
- package/dist/chunk-IFWCCAQV.js +222 -0
- package/dist/chunk-IFWCCAQV.js.map +1 -0
- package/dist/chunk-IG7FBZVM.js +101 -0
- package/dist/chunk-IG7FBZVM.js.map +1 -0
- package/dist/chunk-IHYFYMHJ.js +167 -0
- package/dist/chunk-IHYFYMHJ.js.map +1 -0
- package/dist/chunk-IRXZHLUL.js +51 -0
- package/dist/chunk-IRXZHLUL.js.map +1 -0
- package/dist/chunk-IXKELBJA.js +202 -0
- package/dist/chunk-IXKELBJA.js.map +1 -0
- package/dist/chunk-J3PELDH3.js +279 -0
- package/dist/chunk-J3PELDH3.js.map +1 -0
- package/dist/chunk-JBVFWSRQ.js +21 -0
- package/dist/chunk-JBVFWSRQ.js.map +1 -0
- package/dist/chunk-MOI7B3KH.js +217 -0
- package/dist/chunk-MOI7B3KH.js.map +1 -0
- package/dist/chunk-NF5JM2YO.js +57 -0
- package/dist/chunk-NF5JM2YO.js.map +1 -0
- package/dist/chunk-NGAQITWP.js +156 -0
- package/dist/chunk-NGAQITWP.js.map +1 -0
- package/dist/chunk-NSDM3FEB.js +82 -0
- package/dist/chunk-NSDM3FEB.js.map +1 -0
- package/dist/chunk-ORTCK34Y.js +3 -0
- package/dist/chunk-ORTCK34Y.js.map +1 -0
- package/dist/chunk-P3XMBETI.js +26 -0
- package/dist/chunk-P3XMBETI.js.map +1 -0
- package/dist/chunk-P7A3BCAC.js +93 -0
- package/dist/chunk-P7A3BCAC.js.map +1 -0
- package/dist/chunk-PJL4ZL5V.js +639 -0
- package/dist/chunk-PJL4ZL5V.js.map +1 -0
- package/dist/chunk-POKDSVQT.js +223 -0
- package/dist/chunk-POKDSVQT.js.map +1 -0
- package/dist/chunk-QMW7D5GU.js +207 -0
- package/dist/chunk-QMW7D5GU.js.map +1 -0
- package/dist/chunk-QP4I37PA.js +14 -0
- package/dist/chunk-QP4I37PA.js.map +1 -0
- package/dist/chunk-R5GMMWAY.js +3 -0
- package/dist/chunk-R5GMMWAY.js.map +1 -0
- package/dist/chunk-S53FHWNG.js +30 -0
- package/dist/chunk-S53FHWNG.js.map +1 -0
- package/dist/chunk-SIG4DMNZ.js +238 -0
- package/dist/chunk-SIG4DMNZ.js.map +1 -0
- package/dist/chunk-SKPM2FRX.js +44 -0
- package/dist/chunk-SKPM2FRX.js.map +1 -0
- package/dist/chunk-TCWYBVIL.js +33 -0
- package/dist/chunk-TCWYBVIL.js.map +1 -0
- package/dist/chunk-TMMEJKLI.js +363 -0
- package/dist/chunk-TMMEJKLI.js.map +1 -0
- package/dist/chunk-TNNH3FVQ.js +155 -0
- package/dist/chunk-TNNH3FVQ.js.map +1 -0
- package/dist/chunk-TWGCWKRV.js +44 -0
- package/dist/chunk-TWGCWKRV.js.map +1 -0
- package/dist/chunk-U5GW5EBR.js +150 -0
- package/dist/chunk-U5GW5EBR.js.map +1 -0
- package/dist/chunk-UNSAA7YG.js +148 -0
- package/dist/chunk-UNSAA7YG.js.map +1 -0
- package/dist/chunk-UVYTJQTJ.js +14 -0
- package/dist/chunk-UVYTJQTJ.js.map +1 -0
- package/dist/chunk-VLUKI3HL.js +120 -0
- package/dist/chunk-VLUKI3HL.js.map +1 -0
- package/dist/chunk-VZ2TPU4B.js +348 -0
- package/dist/chunk-VZ2TPU4B.js.map +1 -0
- package/dist/chunk-VZH6TS7M.js +153 -0
- package/dist/chunk-VZH6TS7M.js.map +1 -0
- package/dist/chunk-WYCMIIRR.js +12 -0
- package/dist/chunk-WYCMIIRR.js.map +1 -0
- package/dist/chunk-WZB6LPQI.js +47 -0
- package/dist/chunk-WZB6LPQI.js.map +1 -0
- package/dist/chunk-YBJB7FGE.js +187 -0
- package/dist/chunk-YBJB7FGE.js.map +1 -0
- package/dist/chunk-YIQI2CF3.js +92 -0
- package/dist/chunk-YIQI2CF3.js.map +1 -0
- package/dist/chunk-YKUCSV34.js +72 -0
- package/dist/chunk-YKUCSV34.js.map +1 -0
- package/dist/chunk-ZP6EBROY.js +3 -0
- package/dist/chunk-ZP6EBROY.js.map +1 -0
- package/dist/colors.css +296 -0
- package/dist/components/accordion/accordion-data.d.ts +52 -0
- package/dist/components/accordion/accordion-data.d.ts.map +1 -0
- package/dist/components/accordion/accordion.d.ts +116 -0
- package/dist/components/accordion/accordion.d.ts.map +1 -0
- package/dist/components/accordion/index.d.ts +3 -0
- package/dist/components/accordion/index.d.ts.map +1 -0
- package/dist/components/accordion/index.js +206 -0
- package/dist/components/accordion/index.js.map +1 -0
- package/dist/components/action-icon/action-icon.d.ts +51 -0
- package/dist/components/action-icon/action-icon.d.ts.map +1 -0
- package/dist/components/action-icon/index.d.ts +2 -0
- package/dist/components/action-icon/index.d.ts.map +1 -0
- package/dist/components/action-icon/index.js +8 -0
- package/dist/components/action-icon/index.js.map +1 -0
- package/dist/components/alert/alert.d.ts +82 -0
- package/dist/components/alert/alert.d.ts.map +1 -0
- package/dist/components/alert/index.d.ts +2 -0
- package/dist/components/alert/index.d.ts.map +1 -0
- package/dist/components/alert/index.js +74 -0
- package/dist/components/alert/index.js.map +1 -0
- package/dist/components/ambient-background/ambient-background.d.ts +47 -0
- package/dist/components/ambient-background/ambient-background.d.ts.map +1 -0
- package/dist/components/ambient-background/index.d.ts +2 -0
- package/dist/components/ambient-background/index.d.ts.map +1 -0
- package/dist/components/ambient-background/index.js +35 -0
- package/dist/components/ambient-background/index.js.map +1 -0
- package/dist/components/app-shell/app-shell.d.ts +185 -0
- package/dist/components/app-shell/app-shell.d.ts.map +1 -0
- package/dist/components/app-shell/index.d.ts +2 -0
- package/dist/components/app-shell/index.d.ts.map +1 -0
- package/dist/components/app-shell/index.js +243 -0
- package/dist/components/app-shell/index.js.map +1 -0
- package/dist/components/autocomplete/autocomplete.d.ts +70 -0
- package/dist/components/autocomplete/autocomplete.d.ts.map +1 -0
- package/dist/components/autocomplete/index.d.ts +3 -0
- package/dist/components/autocomplete/index.d.ts.map +1 -0
- package/dist/components/autocomplete/index.js +149 -0
- package/dist/components/autocomplete/index.js.map +1 -0
- package/dist/components/avatar/avatar.d.ts +105 -0
- package/dist/components/avatar/avatar.d.ts.map +1 -0
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/avatar/index.d.ts.map +1 -0
- package/dist/components/avatar/index.js +211 -0
- package/dist/components/avatar/index.js.map +1 -0
- package/dist/components/badge/badge.d.ts +48 -0
- package/dist/components/badge/badge.d.ts.map +1 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/badge/index.d.ts.map +1 -0
- package/dist/components/badge/index.js +102 -0
- package/dist/components/badge/index.js.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +64 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -0
- package/dist/components/breadcrumb/index.d.ts +2 -0
- package/dist/components/breadcrumb/index.d.ts.map +1 -0
- package/dist/components/breadcrumb/index.js +203 -0
- package/dist/components/breadcrumb/index.js.map +1 -0
- package/dist/components/button/button.d.ts +72 -0
- package/dist/components/button/button.d.ts.map +1 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/button/index.js +9 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/button-group/button-group.d.ts +49 -0
- package/dist/components/button-group/button-group.d.ts.map +1 -0
- package/dist/components/button-group/index.d.ts +2 -0
- package/dist/components/button-group/index.d.ts.map +1 -0
- package/dist/components/button-group/index.js +5 -0
- package/dist/components/button-group/index.js.map +1 -0
- package/dist/components/button-multi-select/button-multi-select.d.ts +39 -0
- package/dist/components/button-multi-select/button-multi-select.d.ts.map +1 -0
- package/dist/components/button-multi-select/index.d.ts +5 -0
- package/dist/components/button-multi-select/index.d.ts.map +1 -0
- package/dist/components/button-multi-select/index.js +45 -0
- package/dist/components/button-multi-select/index.js.map +1 -0
- package/dist/components/button-select/button-select-control.d.ts +56 -0
- package/dist/components/button-select/button-select-control.d.ts.map +1 -0
- package/dist/components/button-select/button-select-data.d.ts +53 -0
- package/dist/components/button-select/button-select-data.d.ts.map +1 -0
- package/dist/components/button-select/button-select-items.d.ts +72 -0
- package/dist/components/button-select/button-select-items.d.ts.map +1 -0
- package/dist/components/button-select/button-select.d.ts +98 -0
- package/dist/components/button-select/button-select.d.ts.map +1 -0
- package/dist/components/button-select/index.d.ts +5 -0
- package/dist/components/button-select/index.d.ts.map +1 -0
- package/dist/components/button-select/index.js +45 -0
- package/dist/components/button-select/index.js.map +1 -0
- package/dist/components/calendar/calendar-body.d.ts +48 -0
- package/dist/components/calendar/calendar-body.d.ts.map +1 -0
- package/dist/components/calendar/calendar.d.ts +88 -0
- package/dist/components/calendar/calendar.d.ts.map +1 -0
- package/dist/components/calendar/index.d.ts +4 -0
- package/dist/components/calendar/index.d.ts.map +1 -0
- package/dist/components/calendar/index.js +11 -0
- package/dist/components/calendar/index.js.map +1 -0
- package/dist/components/card/card.d.ts +69 -0
- package/dist/components/card/card.d.ts.map +1 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/card/index.d.ts.map +1 -0
- package/dist/components/card/index.js +6 -0
- package/dist/components/card/index.js.map +1 -0
- package/dist/components/chart/chart.d.ts +103 -0
- package/dist/components/chart/chart.d.ts.map +1 -0
- package/dist/components/chart/index.d.ts +2 -0
- package/dist/components/chart/index.d.ts.map +1 -0
- package/dist/components/chart/index.js +70 -0
- package/dist/components/chart/index.js.map +1 -0
- package/dist/components/chart/styles.css +50 -0
- package/dist/components/checkbox/checkbox.d.ts +74 -0
- package/dist/components/checkbox/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox/control.d.ts +28 -0
- package/dist/components/checkbox/control.d.ts.map +1 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/checkbox/index.js +10 -0
- package/dist/components/checkbox/index.js.map +1 -0
- package/dist/components/choice-card-group/choice-card-group.d.ts +148 -0
- package/dist/components/choice-card-group/choice-card-group.d.ts.map +1 -0
- package/dist/components/choice-card-group/index.d.ts +2 -0
- package/dist/components/choice-card-group/index.d.ts.map +1 -0
- package/dist/components/choice-card-group/index.js +280 -0
- package/dist/components/choice-card-group/index.js.map +1 -0
- package/dist/components/circular-progress/circular-progress.d.ts +49 -0
- package/dist/components/circular-progress/circular-progress.d.ts.map +1 -0
- package/dist/components/circular-progress/index.d.ts +2 -0
- package/dist/components/circular-progress/index.d.ts.map +1 -0
- package/dist/components/circular-progress/index.js +133 -0
- package/dist/components/circular-progress/index.js.map +1 -0
- package/dist/components/clipboard/clipboard.d.ts +95 -0
- package/dist/components/clipboard/clipboard.d.ts.map +1 -0
- package/dist/components/clipboard/copy.d.ts +67 -0
- package/dist/components/clipboard/copy.d.ts.map +1 -0
- package/dist/components/clipboard/index.d.ts +3 -0
- package/dist/components/clipboard/index.d.ts.map +1 -0
- package/dist/components/clipboard/index.js +86 -0
- package/dist/components/clipboard/index.js.map +1 -0
- package/dist/components/code/code.d.ts +37 -0
- package/dist/components/code/code.d.ts.map +1 -0
- package/dist/components/code/index.d.ts +2 -0
- package/dist/components/code/index.d.ts.map +1 -0
- package/dist/components/code/index.js +28 -0
- package/dist/components/code/index.js.map +1 -0
- package/dist/components/code-block/chrome.d.ts +77 -0
- package/dist/components/code-block/chrome.d.ts.map +1 -0
- package/dist/components/code-block/chrome.js +15 -0
- package/dist/components/code-block/chrome.js.map +1 -0
- package/dist/components/code-block/code-block.d.ts +99 -0
- package/dist/components/code-block/code-block.d.ts.map +1 -0
- package/dist/components/code-block/diff.d.ts +79 -0
- package/dist/components/code-block/diff.d.ts.map +1 -0
- package/dist/components/code-block/diff.js +23 -0
- package/dist/components/code-block/diff.js.map +1 -0
- package/dist/components/code-block/gutters.d.ts +100 -0
- package/dist/components/code-block/gutters.d.ts.map +1 -0
- package/dist/components/code-block/highlighter.d.ts +84 -0
- package/dist/components/code-block/highlighter.d.ts.map +1 -0
- package/dist/components/code-block/index.d.ts +23 -0
- package/dist/components/code-block/index.d.ts.map +1 -0
- package/dist/components/code-block/index.js +463 -0
- package/dist/components/code-block/index.js.map +1 -0
- package/dist/components/code-block/notation.d.ts +126 -0
- package/dist/components/code-block/notation.d.ts.map +1 -0
- package/dist/components/code-block/presets.d.ts +23 -0
- package/dist/components/code-block/presets.d.ts.map +1 -0
- package/dist/components/code-block/static.d.ts +65 -0
- package/dist/components/code-block/static.d.ts.map +1 -0
- package/dist/components/code-block/static.js +380 -0
- package/dist/components/code-block/static.js.map +1 -0
- package/dist/components/code-block/styles.css +198 -0
- package/dist/components/collapse/collapse.d.ts +50 -0
- package/dist/components/collapse/collapse.d.ts.map +1 -0
- package/dist/components/collapse/index.d.ts +2 -0
- package/dist/components/collapse/index.d.ts.map +1 -0
- package/dist/components/collapse/index.js +5 -0
- package/dist/components/collapse/index.js.map +1 -0
- package/dist/components/combobox/combobox.d.ts +78 -0
- package/dist/components/combobox/combobox.d.ts.map +1 -0
- package/dist/components/combobox/index.d.ts +3 -0
- package/dist/components/combobox/index.d.ts.map +1 -0
- package/dist/components/combobox/index.js +15 -0
- package/dist/components/combobox/index.js.map +1 -0
- package/dist/components/combobox-list/combobox-list.d.ts +77 -0
- package/dist/components/combobox-list/combobox-list.d.ts.map +1 -0
- package/dist/components/combobox-list/index.d.ts +2 -0
- package/dist/components/combobox-list/index.d.ts.map +1 -0
- package/dist/components/combobox-list/index.js +16 -0
- package/dist/components/combobox-list/index.js.map +1 -0
- package/dist/components/container/container.d.ts +18 -0
- package/dist/components/container/container.d.ts.map +1 -0
- package/dist/components/container/index.d.ts +2 -0
- package/dist/components/container/index.d.ts.map +1 -0
- package/dist/components/container/index.js +40 -0
- package/dist/components/container/index.js.map +1 -0
- package/dist/components/data-table/data-table-features.d.ts +80 -0
- package/dist/components/data-table/data-table-features.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-date-filter.d.ts +53 -0
- package/dist/components/data-table/data-table-filter/data-table-date-filter.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-filter-fns.d.ts +18 -0
- package/dist/components/data-table/data-table-filter/data-table-filter-fns.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-number-filter.d.ts +7 -0
- package/dist/components/data-table/data-table-filter/data-table-number-filter.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-select-filter.d.ts +15 -0
- package/dist/components/data-table/data-table-filter/data-table-select-filter.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-text-filter.d.ts +7 -0
- package/dist/components/data-table/data-table-filter/data-table-text-filter.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/index.d.ts +15 -0
- package/dist/components/data-table/data-table-filter/index.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/utils.d.ts +52 -0
- package/dist/components/data-table/data-table-filter/utils.d.ts.map +1 -0
- package/dist/components/data-table/data-table-header-cell.d.ts +65 -0
- package/dist/components/data-table/data-table-header-cell.d.ts.map +1 -0
- package/dist/components/data-table/data-table-meta.d.ts +103 -0
- package/dist/components/data-table/data-table-meta.d.ts.map +1 -0
- package/dist/components/data-table/data-table-pagination.d.ts +56 -0
- package/dist/components/data-table/data-table-pagination.d.ts.map +1 -0
- package/dist/components/data-table/data-table-placeholder.d.ts +18 -0
- package/dist/components/data-table/data-table-placeholder.d.ts.map +1 -0
- package/dist/components/data-table/data-table-schema.d.ts +45 -0
- package/dist/components/data-table/data-table-schema.d.ts.map +1 -0
- package/dist/components/data-table/data-table-skeleton.d.ts +10 -0
- package/dist/components/data-table/data-table-skeleton.d.ts.map +1 -0
- package/dist/components/data-table/data-table-stack.d.ts +48 -0
- package/dist/components/data-table/data-table-stack.d.ts.map +1 -0
- package/dist/components/data-table/data-table-state.d.ts +10 -0
- package/dist/components/data-table/data-table-state.d.ts.map +1 -0
- package/dist/components/data-table/data-table-toolbar.d.ts +21 -0
- package/dist/components/data-table/data-table-toolbar.d.ts.map +1 -0
- package/dist/components/data-table/data-table.d.ts +194 -0
- package/dist/components/data-table/data-table.d.ts.map +1 -0
- package/dist/components/data-table/index.d.ts +14 -0
- package/dist/components/data-table/index.d.ts.map +1 -0
- package/dist/components/data-table/index.js +1603 -0
- package/dist/components/data-table/index.js.map +1 -0
- package/dist/components/date-picker/aliases.d.ts +11 -0
- package/dist/components/date-picker/aliases.d.ts.map +1 -0
- package/dist/components/date-picker/date-picker.d.ts +204 -0
- package/dist/components/date-picker/date-picker.d.ts.map +1 -0
- package/dist/components/date-picker/date-time-text.d.ts +32 -0
- package/dist/components/date-picker/date-time-text.d.ts.map +1 -0
- package/dist/components/date-picker/index.d.ts +7 -0
- package/dist/components/date-picker/index.d.ts.map +1 -0
- package/dist/components/date-picker/index.js +48 -0
- package/dist/components/date-picker/index.js.map +1 -0
- package/dist/components/divider/divider.d.ts +79 -0
- package/dist/components/divider/divider.d.ts.map +1 -0
- package/dist/components/divider/index.d.ts +2 -0
- package/dist/components/divider/index.d.ts.map +1 -0
- package/dist/components/divider/index.js +5 -0
- package/dist/components/divider/index.js.map +1 -0
- package/dist/components/drawer/drawer.d.ts +103 -0
- package/dist/components/drawer/drawer.d.ts.map +1 -0
- package/dist/components/drawer/index.d.ts +2 -0
- package/dist/components/drawer/index.d.ts.map +1 -0
- package/dist/components/drawer/index.js +13 -0
- package/dist/components/drawer/index.js.map +1 -0
- package/dist/components/field/field.d.ts +79 -0
- package/dist/components/field/field.d.ts.map +1 -0
- package/dist/components/field/index.d.ts +2 -0
- package/dist/components/field/index.d.ts.map +1 -0
- package/dist/components/field/index.js +6 -0
- package/dist/components/field/index.js.map +1 -0
- package/dist/components/file-upload/file-upload.d.ts +68 -0
- package/dist/components/file-upload/file-upload.d.ts.map +1 -0
- package/dist/components/file-upload/index.d.ts +2 -0
- package/dist/components/file-upload/index.d.ts.map +1 -0
- package/dist/components/file-upload/index.js +189 -0
- package/dist/components/file-upload/index.js.map +1 -0
- package/dist/components/flex/flex.d.ts +25 -0
- package/dist/components/flex/flex.d.ts.map +1 -0
- package/dist/components/flex/index.d.ts +2 -0
- package/dist/components/flex/index.d.ts.map +1 -0
- package/dist/components/flex/index.js +5 -0
- package/dist/components/flex/index.js.map +1 -0
- package/dist/components/grid/grid.d.ts +21 -0
- package/dist/components/grid/grid.d.ts.map +1 -0
- package/dist/components/grid/index.d.ts +2 -0
- package/dist/components/grid/index.d.ts.map +1 -0
- package/dist/components/grid/index.js +44 -0
- package/dist/components/grid/index.js.map +1 -0
- package/dist/components/hover-card/hover-card.d.ts +122 -0
- package/dist/components/hover-card/hover-card.d.ts.map +1 -0
- package/dist/components/hover-card/index.d.ts +2 -0
- package/dist/components/hover-card/index.d.ts.map +1 -0
- package/dist/components/hover-card/index.js +157 -0
- package/dist/components/hover-card/index.js.map +1 -0
- package/dist/components/indicator/index.d.ts +2 -0
- package/dist/components/indicator/index.d.ts.map +1 -0
- package/dist/components/indicator/index.js +152 -0
- package/dist/components/indicator/index.js.map +1 -0
- package/dist/components/indicator/indicator.d.ts +69 -0
- package/dist/components/indicator/indicator.d.ts.map +1 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/input/index.js +7 -0
- package/dist/components/input/index.js.map +1 -0
- package/dist/components/input/input.d.ts +116 -0
- package/dist/components/input/input.d.ts.map +1 -0
- package/dist/components/kbd/index.d.ts +2 -0
- package/dist/components/kbd/index.d.ts.map +1 -0
- package/dist/components/kbd/index.js +65 -0
- package/dist/components/kbd/index.js.map +1 -0
- package/dist/components/kbd/kbd.d.ts +43 -0
- package/dist/components/kbd/kbd.d.ts.map +1 -0
- package/dist/components/mark/index.d.ts +2 -0
- package/dist/components/mark/index.d.ts.map +1 -0
- package/dist/components/mark/index.js +5 -0
- package/dist/components/mark/index.js.map +1 -0
- package/dist/components/mark/mark.d.ts +50 -0
- package/dist/components/mark/mark.d.ts.map +1 -0
- package/dist/components/menu/index.d.ts +3 -0
- package/dist/components/menu/index.d.ts.map +1 -0
- package/dist/components/menu/index.js +88 -0
- package/dist/components/menu/index.js.map +1 -0
- package/dist/components/menu/menu-data.d.ts +119 -0
- package/dist/components/menu/menu-data.d.ts.map +1 -0
- package/dist/components/menu/menu.d.ts +123 -0
- package/dist/components/menu/menu.d.ts.map +1 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/index.d.ts.map +1 -0
- package/dist/components/modal/index.js +12 -0
- package/dist/components/modal/index.js.map +1 -0
- package/dist/components/modal/modal.d.ts +100 -0
- package/dist/components/modal/modal.d.ts.map +1 -0
- package/dist/components/multi-combobox-list/index.d.ts +2 -0
- package/dist/components/multi-combobox-list/index.d.ts.map +1 -0
- package/dist/components/multi-combobox-list/index.js +16 -0
- package/dist/components/multi-combobox-list/index.js.map +1 -0
- package/dist/components/multi-combobox-list/multi-combobox-list.d.ts +83 -0
- package/dist/components/multi-combobox-list/multi-combobox-list.d.ts.map +1 -0
- package/dist/components/multi-select/index.d.ts +3 -0
- package/dist/components/multi-select/index.d.ts.map +1 -0
- package/dist/components/multi-select/index.js +203 -0
- package/dist/components/multi-select/index.js.map +1 -0
- package/dist/components/multi-select/multi-select.d.ts +83 -0
- package/dist/components/multi-select/multi-select.d.ts.map +1 -0
- package/dist/components/nav-link/index.d.ts +3 -0
- package/dist/components/nav-link/index.d.ts.map +1 -0
- package/dist/components/nav-link/index.js +11 -0
- package/dist/components/nav-link/index.js.map +1 -0
- package/dist/components/nav-link/nav-link.d.ts +40 -0
- package/dist/components/nav-link/nav-link.d.ts.map +1 -0
- package/dist/components/nav-link/navigation.d.ts +45 -0
- package/dist/components/nav-link/navigation.d.ts.map +1 -0
- package/dist/components/nav-link/tanstack.d.ts +38 -0
- package/dist/components/nav-link/tanstack.d.ts.map +1 -0
- package/dist/components/nav-link/tanstack.js +21 -0
- package/dist/components/nav-link/tanstack.js.map +1 -0
- package/dist/components/notification/create-notifier.d.ts +117 -0
- package/dist/components/notification/create-notifier.d.ts.map +1 -0
- package/dist/components/notification/index.d.ts +5 -0
- package/dist/components/notification/index.d.ts.map +1 -0
- package/dist/components/notification/index.js +388 -0
- package/dist/components/notification/index.js.map +1 -0
- package/dist/components/notification/notification.d.ts +124 -0
- package/dist/components/notification/notification.d.ts.map +1 -0
- package/dist/components/notification/store.d.ts +42 -0
- package/dist/components/notification/store.d.ts.map +1 -0
- package/dist/components/notification/types.d.ts +62 -0
- package/dist/components/notification/types.d.ts.map +1 -0
- package/dist/components/number-input/index.d.ts +2 -0
- package/dist/components/number-input/index.d.ts.map +1 -0
- package/dist/components/number-input/index.js +16 -0
- package/dist/components/number-input/index.js.map +1 -0
- package/dist/components/number-input/number-input.d.ts +105 -0
- package/dist/components/number-input/number-input.d.ts.map +1 -0
- package/dist/components/overlays/create-overlays.d.ts +77 -0
- package/dist/components/overlays/create-overlays.d.ts.map +1 -0
- package/dist/components/overlays/index.d.ts +4 -0
- package/dist/components/overlays/index.d.ts.map +1 -0
- package/dist/components/overlays/index.js +332 -0
- package/dist/components/overlays/index.js.map +1 -0
- package/dist/components/overlays/renderer.d.ts +30 -0
- package/dist/components/overlays/renderer.d.ts.map +1 -0
- package/dist/components/overlays/store.d.ts +33 -0
- package/dist/components/overlays/store.d.ts.map +1 -0
- package/dist/components/overlays/types.d.ts +119 -0
- package/dist/components/overlays/types.d.ts.map +1 -0
- package/dist/components/password-input/index.d.ts +2 -0
- package/dist/components/password-input/index.d.ts.map +1 -0
- package/dist/components/password-input/index.js +125 -0
- package/dist/components/password-input/index.js.map +1 -0
- package/dist/components/password-input/password-input.d.ts +65 -0
- package/dist/components/password-input/password-input.d.ts.map +1 -0
- package/dist/components/pill/index.d.ts +2 -0
- package/dist/components/pill/index.d.ts.map +1 -0
- package/dist/components/pill/index.js +8 -0
- package/dist/components/pill/index.js.map +1 -0
- package/dist/components/pill/pill.d.ts +69 -0
- package/dist/components/pill/pill.d.ts.map +1 -0
- package/dist/components/pills-input/index.d.ts +2 -0
- package/dist/components/pills-input/index.d.ts.map +1 -0
- package/dist/components/pills-input/index.js +10 -0
- package/dist/components/pills-input/index.js.map +1 -0
- package/dist/components/pills-input/pills-input.d.ts +146 -0
- package/dist/components/pills-input/pills-input.d.ts.map +1 -0
- package/dist/components/pin-input/index.d.ts +2 -0
- package/dist/components/pin-input/index.d.ts.map +1 -0
- package/dist/components/pin-input/index.js +107 -0
- package/dist/components/pin-input/index.js.map +1 -0
- package/dist/components/pin-input/pin-input.d.ts +80 -0
- package/dist/components/pin-input/pin-input.d.ts.map +1 -0
- package/dist/components/popover/icons.d.ts +24 -0
- package/dist/components/popover/icons.d.ts.map +1 -0
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/popover/index.d.ts.map +1 -0
- package/dist/components/popover/index.js +10 -0
- package/dist/components/popover/index.js.map +1 -0
- package/dist/components/popover/popover.d.ts +190 -0
- package/dist/components/popover/popover.d.ts.map +1 -0
- package/dist/components/progress/index.d.ts +2 -0
- package/dist/components/progress/index.d.ts.map +1 -0
- package/dist/components/progress/index.js +111 -0
- package/dist/components/progress/index.js.map +1 -0
- package/dist/components/progress/progress.d.ts +47 -0
- package/dist/components/progress/progress.d.ts.map +1 -0
- package/dist/components/radio-group/index.d.ts +2 -0
- package/dist/components/radio-group/index.d.ts.map +1 -0
- package/dist/components/radio-group/index.js +104 -0
- package/dist/components/radio-group/index.js.map +1 -0
- package/dist/components/radio-group/radio-group.d.ts +86 -0
- package/dist/components/radio-group/radio-group.d.ts.map +1 -0
- package/dist/components/rating/icons.d.ts +19 -0
- package/dist/components/rating/icons.d.ts.map +1 -0
- package/dist/components/rating/index.d.ts +2 -0
- package/dist/components/rating/index.d.ts.map +1 -0
- package/dist/components/rating/index.js +194 -0
- package/dist/components/rating/index.js.map +1 -0
- package/dist/components/rating/rating.d.ts +119 -0
- package/dist/components/rating/rating.d.ts.map +1 -0
- package/dist/components/schedule/index.d.ts +98 -0
- package/dist/components/schedule/index.d.ts.map +1 -0
- package/dist/components/schedule/index.js +6582 -0
- package/dist/components/schedule/index.js.map +1 -0
- package/dist/components/schedule/now-cursor-line.d.ts +97 -0
- package/dist/components/schedule/now-cursor-line.d.ts.map +1 -0
- package/dist/components/schedule/schedule-agenda-list.d.ts +55 -0
- package/dist/components/schedule/schedule-agenda-list.d.ts.map +1 -0
- package/dist/components/schedule/schedule-agenda-view.d.ts +48 -0
- package/dist/components/schedule/schedule-agenda-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-all-day-row.d.ts +100 -0
- package/dist/components/schedule/schedule-all-day-row.d.ts.map +1 -0
- package/dist/components/schedule/schedule-create-draft.d.ts +29 -0
- package/dist/components/schedule/schedule-create-draft.d.ts.map +1 -0
- package/dist/components/schedule/schedule-dates.d.ts +359 -0
- package/dist/components/schedule/schedule-dates.d.ts.map +1 -0
- package/dist/components/schedule/schedule-day-view.d.ts +24 -0
- package/dist/components/schedule/schedule-day-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-days-view.d.ts +60 -0
- package/dist/components/schedule/schedule-days-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-disabled-overlay.d.ts +34 -0
- package/dist/components/schedule/schedule-disabled-overlay.d.ts.map +1 -0
- package/dist/components/schedule/schedule-drag-ghost.d.ts +24 -0
- package/dist/components/schedule/schedule-drag-ghost.d.ts.map +1 -0
- package/dist/components/schedule/schedule-event-chip.d.ts +101 -0
- package/dist/components/schedule/schedule-event-chip.d.ts.map +1 -0
- package/dist/components/schedule/schedule-event-details.d.ts +37 -0
- package/dist/components/schedule/schedule-event-details.d.ts.map +1 -0
- package/dist/components/schedule/schedule-event-list-popover-content.d.ts +41 -0
- package/dist/components/schedule/schedule-event-list-popover-content.d.ts.map +1 -0
- package/dist/components/schedule/schedule-event-styles.d.ts +58 -0
- package/dist/components/schedule/schedule-event-styles.d.ts.map +1 -0
- package/dist/components/schedule/schedule-geometry.d.ts +291 -0
- package/dist/components/schedule/schedule-geometry.d.ts.map +1 -0
- package/dist/components/schedule/schedule-grid-gesture.d.ts +288 -0
- package/dist/components/schedule/schedule-grid-gesture.d.ts.map +1 -0
- package/dist/components/schedule/schedule-layout.d.ts +83 -0
- package/dist/components/schedule/schedule-layout.d.ts.map +1 -0
- package/dist/components/schedule/schedule-month-view.d.ts +44 -0
- package/dist/components/schedule/schedule-month-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-next-up-grouping.d.ts +37 -0
- package/dist/components/schedule/schedule-next-up-grouping.d.ts.map +1 -0
- package/dist/components/schedule/schedule-next-up.d.ts +79 -0
- package/dist/components/schedule/schedule-next-up.d.ts.map +1 -0
- package/dist/components/schedule/schedule-overflow-chip.d.ts +45 -0
- package/dist/components/schedule/schedule-overflow-chip.d.ts.map +1 -0
- package/dist/components/schedule/schedule-overflow-popover.d.ts +57 -0
- package/dist/components/schedule/schedule-overflow-popover.d.ts.map +1 -0
- package/dist/components/schedule/schedule-segments.d.ts +89 -0
- package/dist/components/schedule/schedule-segments.d.ts.map +1 -0
- package/dist/components/schedule/schedule-snap.d.ts +204 -0
- package/dist/components/schedule/schedule-snap.d.ts.map +1 -0
- package/dist/components/schedule/schedule-timed-grid.d.ts +78 -0
- package/dist/components/schedule/schedule-timed-grid.d.ts.map +1 -0
- package/dist/components/schedule/schedule-toolbar.d.ts +107 -0
- package/dist/components/schedule/schedule-toolbar.d.ts.map +1 -0
- package/dist/components/schedule/schedule-types.d.ts +841 -0
- package/dist/components/schedule/schedule-types.d.ts.map +1 -0
- package/dist/components/schedule/schedule-views.d.ts +197 -0
- package/dist/components/schedule/schedule-views.d.ts.map +1 -0
- package/dist/components/schedule/schedule-week-view.d.ts +19 -0
- package/dist/components/schedule/schedule-week-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-year-view.d.ts +38 -0
- package/dist/components/schedule/schedule-year-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule.d.ts +163 -0
- package/dist/components/schedule/schedule.d.ts.map +1 -0
- package/dist/components/schedule/use-event-create.d.ts +54 -0
- package/dist/components/schedule/use-event-create.d.ts.map +1 -0
- package/dist/components/schedule/use-event-drag.d.ts +95 -0
- package/dist/components/schedule/use-event-drag.d.ts.map +1 -0
- package/dist/components/schedule/use-event-resize.d.ts +63 -0
- package/dist/components/schedule/use-event-resize.d.ts.map +1 -0
- package/dist/components/schedule/use-schedule-selection.d.ts +74 -0
- package/dist/components/schedule/use-schedule-selection.d.ts.map +1 -0
- package/dist/components/schedule/use-schedule.d.ts +78 -0
- package/dist/components/schedule/use-schedule.d.ts.map +1 -0
- package/dist/components/segment-group/index.d.ts +2 -0
- package/dist/components/segment-group/index.d.ts.map +1 -0
- package/dist/components/segment-group/index.js +10 -0
- package/dist/components/segment-group/index.js.map +1 -0
- package/dist/components/segment-group/segment-group.d.ts +187 -0
- package/dist/components/segment-group/segment-group.d.ts.map +1 -0
- package/dist/components/select/index.d.ts +3 -0
- package/dist/components/select/index.d.ts.map +1 -0
- package/dist/components/select/index.js +17 -0
- package/dist/components/select/index.js.map +1 -0
- package/dist/components/select/select.d.ts +83 -0
- package/dist/components/select/select.d.ts.map +1 -0
- package/dist/components/skeleton/index.d.ts +2 -0
- package/dist/components/skeleton/index.d.ts.map +1 -0
- package/dist/components/skeleton/index.js +5 -0
- package/dist/components/skeleton/index.js.map +1 -0
- package/dist/components/skeleton/skeleton.d.ts +83 -0
- package/dist/components/skeleton/skeleton.d.ts.map +1 -0
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/slider/index.d.ts.map +1 -0
- package/dist/components/slider/index.js +258 -0
- package/dist/components/slider/index.js.map +1 -0
- package/dist/components/slider/slider.d.ts +90 -0
- package/dist/components/slider/slider.d.ts.map +1 -0
- package/dist/components/slider/sliderThumb.d.ts +1 -0
- package/dist/components/slider/sliderThumb.d.ts.map +1 -0
- package/dist/components/spinner/index.d.ts +2 -0
- package/dist/components/spinner/index.d.ts.map +1 -0
- package/dist/components/spinner/index.js +5 -0
- package/dist/components/spinner/index.js.map +1 -0
- package/dist/components/spinner/spinner.d.ts +61 -0
- package/dist/components/spinner/spinner.d.ts.map +1 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/switch/index.d.ts.map +1 -0
- package/dist/components/switch/index.js +140 -0
- package/dist/components/switch/index.js.map +1 -0
- package/dist/components/switch/switch.d.ts +48 -0
- package/dist/components/switch/switch.d.ts.map +1 -0
- package/dist/components/table/index.d.ts +2 -0
- package/dist/components/table/index.d.ts.map +1 -0
- package/dist/components/table/index.js +5 -0
- package/dist/components/table/index.js.map +1 -0
- package/dist/components/table/table.d.ts +113 -0
- package/dist/components/table/table.d.ts.map +1 -0
- package/dist/components/tabs/index.d.ts +3 -0
- package/dist/components/tabs/index.d.ts.map +1 -0
- package/dist/components/tabs/index.js +8 -0
- package/dist/components/tabs/index.js.map +1 -0
- package/dist/components/tabs/tabs-data.d.ts +67 -0
- package/dist/components/tabs/tabs-data.d.ts.map +1 -0
- package/dist/components/tabs/tabs.d.ts +96 -0
- package/dist/components/tabs/tabs.d.ts.map +1 -0
- package/dist/components/tags-input/index.d.ts +2 -0
- package/dist/components/tags-input/index.d.ts.map +1 -0
- package/dist/components/tags-input/index.js +203 -0
- package/dist/components/tags-input/index.js.map +1 -0
- package/dist/components/tags-input/tags-input.d.ts +68 -0
- package/dist/components/tags-input/tags-input.d.ts.map +1 -0
- package/dist/components/text/index.d.ts +2 -0
- package/dist/components/text/index.d.ts.map +1 -0
- package/dist/components/text/index.js +6 -0
- package/dist/components/text/index.js.map +1 -0
- package/dist/components/text/text.d.ts +50 -0
- package/dist/components/text/text.d.ts.map +1 -0
- package/dist/components/text-input/index.d.ts +2 -0
- package/dist/components/text-input/index.d.ts.map +1 -0
- package/dist/components/text-input/index.js +34 -0
- package/dist/components/text-input/index.js.map +1 -0
- package/dist/components/text-input/text-input.d.ts +56 -0
- package/dist/components/text-input/text-input.d.ts.map +1 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/index.d.ts.map +1 -0
- package/dist/components/textarea/index.js +116 -0
- package/dist/components/textarea/index.js.map +1 -0
- package/dist/components/textarea/textarea.d.ts +48 -0
- package/dist/components/textarea/textarea.d.ts.map +1 -0
- package/dist/components/theme-icon/index.d.ts +2 -0
- package/dist/components/theme-icon/index.d.ts.map +1 -0
- package/dist/components/theme-icon/index.js +6 -0
- package/dist/components/theme-icon/index.js.map +1 -0
- package/dist/components/theme-icon/theme-icon.d.ts +34 -0
- package/dist/components/theme-icon/theme-icon.d.ts.map +1 -0
- package/dist/components/theme-script/index.d.ts +2 -0
- package/dist/components/theme-script/index.d.ts.map +1 -0
- package/dist/components/theme-script/index.js +29 -0
- package/dist/components/theme-script/index.js.map +1 -0
- package/dist/components/theme-script/theme-script.d.ts +41 -0
- package/dist/components/theme-script/theme-script.d.ts.map +1 -0
- package/dist/components/time-input/hour-cycle.d.ts +32 -0
- package/dist/components/time-input/hour-cycle.d.ts.map +1 -0
- package/dist/components/time-input/index.d.ts +3 -0
- package/dist/components/time-input/index.d.ts.map +1 -0
- package/dist/components/time-input/index.js +125 -0
- package/dist/components/time-input/index.js.map +1 -0
- package/dist/components/time-input/time-input.d.ts +63 -0
- package/dist/components/time-input/time-input.d.ts.map +1 -0
- package/dist/components/time-input/time-row.d.ts +72 -0
- package/dist/components/time-input/time-row.d.ts.map +1 -0
- package/dist/components/timeline/index.d.ts +2 -0
- package/dist/components/timeline/index.d.ts.map +1 -0
- package/dist/components/timeline/index.js +372 -0
- package/dist/components/timeline/index.js.map +1 -0
- package/dist/components/timeline/timeline.d.ts +194 -0
- package/dist/components/timeline/timeline.d.ts.map +1 -0
- package/dist/components/title/index.d.ts +2 -0
- package/dist/components/title/index.d.ts.map +1 -0
- package/dist/components/title/index.js +6 -0
- package/dist/components/title/index.js.map +1 -0
- package/dist/components/title/title.d.ts +47 -0
- package/dist/components/title/title.d.ts.map +1 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/index.d.ts.map +1 -0
- package/dist/components/tooltip/index.js +10 -0
- package/dist/components/tooltip/index.js.map +1 -0
- package/dist/components/tooltip/tooltip.d.ts +70 -0
- package/dist/components/tooltip/tooltip.d.ts.map +1 -0
- package/dist/components/tree-multi-select/index.d.ts +3 -0
- package/dist/components/tree-multi-select/index.d.ts.map +1 -0
- package/dist/components/tree-multi-select/index.js +424 -0
- package/dist/components/tree-multi-select/index.js.map +1 -0
- package/dist/components/tree-multi-select/tree-multi-select.d.ts +72 -0
- package/dist/components/tree-multi-select/tree-multi-select.d.ts.map +1 -0
- package/dist/components/tree-select/index.d.ts +3 -0
- package/dist/components/tree-select/index.d.ts.map +1 -0
- package/dist/components/tree-select/index.js +425 -0
- package/dist/components/tree-select/index.js.map +1 -0
- package/dist/components/tree-select/tree-select.d.ts +68 -0
- package/dist/components/tree-select/tree-select.d.ts.map +1 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +269 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/align.d.ts +7 -0
- package/dist/lib/align.d.ts.map +1 -0
- package/dist/lib/available-if.d.ts +114 -0
- package/dist/lib/available-if.d.ts.map +1 -0
- package/dist/lib/brand.d.ts +22 -0
- package/dist/lib/brand.d.ts.map +1 -0
- package/dist/lib/cn.d.ts +14 -0
- package/dist/lib/cn.d.ts.map +1 -0
- package/dist/lib/cn.js +3 -0
- package/dist/lib/cn.js.map +1 -0
- package/dist/lib/colors.d.ts +14 -0
- package/dist/lib/colors.d.ts.map +1 -0
- package/dist/lib/control-open.d.ts +28 -0
- package/dist/lib/control-open.d.ts.map +1 -0
- package/dist/lib/date-predicates.d.ts +28 -0
- package/dist/lib/date-predicates.d.ts.map +1 -0
- package/dist/lib/date-value.d.ts +45 -0
- package/dist/lib/date-value.d.ts.map +1 -0
- package/dist/lib/dev-warn.d.ts +2 -0
- package/dist/lib/dev-warn.d.ts.map +1 -0
- package/dist/lib/focus-styles.d.ts +102 -0
- package/dist/lib/focus-styles.d.ts.map +1 -0
- package/dist/lib/form-control.d.ts +72 -0
- package/dist/lib/form-control.d.ts.map +1 -0
- package/dist/lib/gradient.d.ts +31 -0
- package/dist/lib/gradient.d.ts.map +1 -0
- package/dist/lib/intl.d.ts +77 -0
- package/dist/lib/intl.d.ts.map +1 -0
- package/dist/lib/link-component.d.ts +13 -0
- package/dist/lib/link-component.d.ts.map +1 -0
- package/dist/lib/merge-refs.d.ts +12 -0
- package/dist/lib/merge-refs.d.ts.map +1 -0
- package/dist/lib/overlay-container.d.ts +14 -0
- package/dist/lib/overlay-container.d.ts.map +1 -0
- package/dist/lib/overlay-layer.d.ts +51 -0
- package/dist/lib/overlay-layer.d.ts.map +1 -0
- package/dist/lib/placement.d.ts +16 -0
- package/dist/lib/placement.d.ts.map +1 -0
- package/dist/lib/props.d.ts +40 -0
- package/dist/lib/props.d.ts.map +1 -0
- package/dist/lib/required-if.d.ts +46 -0
- package/dist/lib/required-if.d.ts.map +1 -0
- package/dist/lib/schedule-predicates.d.ts +72 -0
- package/dist/lib/schedule-predicates.d.ts.map +1 -0
- package/dist/lib/select-data.d.ts +135 -0
- package/dist/lib/select-data.d.ts.map +1 -0
- package/dist/lib/sizes.d.ts +20 -0
- package/dist/lib/sizes.d.ts.map +1 -0
- package/dist/lib/test-id.d.ts +30 -0
- package/dist/lib/test-id.d.ts.map +1 -0
- package/dist/lib/theme-init-runtime.d.ts +26 -0
- package/dist/lib/theme-init-runtime.d.ts.map +1 -0
- package/dist/lib/theme.d.ts +93 -0
- package/dist/lib/theme.d.ts.map +1 -0
- package/dist/lib/tree-data.d.ts +99 -0
- package/dist/lib/tree-data.d.ts.map +1 -0
- package/dist/lib/typography-size.d.ts +49 -0
- package/dist/lib/typography-size.d.ts.map +1 -0
- package/dist/lib/use-container-query.d.ts +19 -0
- package/dist/lib/use-container-query.d.ts.map +1 -0
- package/dist/lib/use-disclosure.d.ts +35 -0
- package/dist/lib/use-disclosure.d.ts.map +1 -0
- package/dist/lib/use-isomorphic-layout-effect.d.ts +12 -0
- package/dist/lib/use-isomorphic-layout-effect.d.ts.map +1 -0
- package/dist/lib/use-local-storage.d.ts +45 -0
- package/dist/lib/use-local-storage.d.ts.map +1 -0
- package/dist/lib/use-logger.d.ts +2 -0
- package/dist/lib/use-logger.d.ts.map +1 -0
- package/dist/lib/use-media-query.d.ts +11 -0
- package/dist/lib/use-media-query.d.ts.map +1 -0
- package/dist/lib/use-now.d.ts +7 -0
- package/dist/lib/use-now.d.ts.map +1 -0
- package/dist/lib/use-theme.d.ts +101 -0
- package/dist/lib/use-theme.d.ts.map +1 -0
- package/dist/lib/use-uncontrolled.d.ts +45 -0
- package/dist/lib/use-uncontrolled.d.ts.map +1 -0
- package/dist/styles.css +17 -0
- package/dist/test-setup.d.ts +2 -0
- package/dist/test-setup.d.ts.map +1 -0
- package/dist/theme-init-script.d.ts +2 -0
- package/dist/theme-init-script.d.ts.map +1 -0
- package/dist/theme-init.js +2 -0
- package/dist/theme-init.js.map +1 -0
- package/dist/theme.css +1275 -0
- package/package.json +100 -4
- package/src/colors.css +296 -0
- package/src/components/accordion/accordion-data.tsx +86 -0
- package/src/components/accordion/accordion.test.tsx +234 -0
- package/src/components/accordion/accordion.tsx +336 -0
- package/src/components/accordion/index.ts +18 -0
- package/src/components/action-icon/action-icon.test.tsx +57 -0
- package/src/components/action-icon/action-icon.tsx +180 -0
- package/src/components/action-icon/index.ts +12 -0
- package/src/components/alert/alert.test.tsx +125 -0
- package/src/components/alert/alert.tsx +158 -0
- package/src/components/alert/index.ts +3 -0
- package/src/components/ambient-background/ambient-background.test.tsx +64 -0
- package/src/components/ambient-background/ambient-background.tsx +76 -0
- package/src/components/ambient-background/index.ts +1 -0
- package/src/components/app-shell/app-shell.test.tsx +271 -0
- package/src/components/app-shell/app-shell.tsx +492 -0
- package/src/components/app-shell/index.ts +17 -0
- package/src/components/autocomplete/autocomplete.test.tsx +120 -0
- package/src/components/autocomplete/autocomplete.tsx +249 -0
- package/src/components/autocomplete/index.ts +11 -0
- package/src/components/avatar/avatar.test.tsx +345 -0
- package/src/components/avatar/avatar.tsx +456 -0
- package/src/components/avatar/index.ts +12 -0
- package/src/components/badge/badge.test.tsx +51 -0
- package/src/components/badge/badge.tsx +148 -0
- package/src/components/badge/index.ts +6 -0
- package/src/components/breadcrumb/breadcrumb.test.tsx +238 -0
- package/src/components/breadcrumb/breadcrumb.tsx +348 -0
- package/src/components/breadcrumb/index.ts +9 -0
- package/src/components/button/button.test.tsx +87 -0
- package/src/components/button/button.tsx +253 -0
- package/src/components/button/index.ts +12 -0
- package/src/components/button-group/button-group.test.tsx +168 -0
- package/src/components/button-group/button-group.tsx +121 -0
- package/src/components/button-group/index.ts +1 -0
- package/src/components/button-multi-select/button-multi-select.test.tsx +146 -0
- package/src/components/button-multi-select/button-multi-select.tsx +76 -0
- package/src/components/button-multi-select/index.ts +17 -0
- package/src/components/button-select/button-select-control.tsx +153 -0
- package/src/components/button-select/button-select-data.tsx +96 -0
- package/src/components/button-select/button-select-items.ts +103 -0
- package/src/components/button-select/button-select.test.tsx +239 -0
- package/src/components/button-select/button-select.tsx +323 -0
- package/src/components/button-select/index.ts +14 -0
- package/src/components/calendar/calendar-body.tsx +403 -0
- package/src/components/calendar/calendar.test.tsx +278 -0
- package/src/components/calendar/calendar.tsx +220 -0
- package/src/components/calendar/index.ts +10 -0
- package/src/components/card/card.tsx +211 -0
- package/src/components/card/index.ts +12 -0
- package/src/components/chart/chart.test.tsx +98 -0
- package/src/components/chart/chart.tsx +192 -0
- package/src/components/chart/index.ts +8 -0
- package/src/components/chart/styles.css +50 -0
- package/src/components/checkbox/checkbox.test.tsx +113 -0
- package/src/components/checkbox/checkbox.tsx +182 -0
- package/src/components/checkbox/control.ts +76 -0
- package/src/components/checkbox/index.ts +3 -0
- package/src/components/choice-card-group/choice-card-group.test.tsx +250 -0
- package/src/components/choice-card-group/choice-card-group.tsx +549 -0
- package/src/components/choice-card-group/index.ts +9 -0
- package/src/components/circular-progress/circular-progress.test.tsx +120 -0
- package/src/components/circular-progress/circular-progress.tsx +214 -0
- package/src/components/circular-progress/index.ts +15 -0
- package/src/components/clipboard/clipboard.test.tsx +229 -0
- package/src/components/clipboard/clipboard.tsx +128 -0
- package/src/components/clipboard/copy.tsx +127 -0
- package/src/components/clipboard/index.ts +12 -0
- package/src/components/code/code.test.tsx +57 -0
- package/src/components/code/code.tsx +54 -0
- package/src/components/code/index.ts +1 -0
- package/src/components/code-block/chrome.tsx +347 -0
- package/src/components/code-block/code-block.test.tsx +252 -0
- package/src/components/code-block/code-block.tsx +254 -0
- package/src/components/code-block/diff.test.ts +177 -0
- package/src/components/code-block/diff.ts +114 -0
- package/src/components/code-block/gutters.test.ts +280 -0
- package/src/components/code-block/gutters.ts +260 -0
- package/src/components/code-block/highlighter.test.ts +261 -0
- package/src/components/code-block/highlighter.ts +290 -0
- package/src/components/code-block/index.ts +53 -0
- package/src/components/code-block/notation.test.ts +166 -0
- package/src/components/code-block/notation.ts +233 -0
- package/src/components/code-block/presets.test.ts +43 -0
- package/src/components/code-block/presets.ts +28 -0
- package/src/components/code-block/static.tsx +130 -0
- package/src/components/code-block/styles.css +198 -0
- package/src/components/collapse/collapse.test.tsx +96 -0
- package/src/components/collapse/collapse.tsx +81 -0
- package/src/components/collapse/index.ts +1 -0
- package/src/components/combobox/combobox.tsx +317 -0
- package/src/components/combobox/index.ts +15 -0
- package/src/components/combobox-list/combobox-list.test.tsx +148 -0
- package/src/components/combobox-list/combobox-list.tsx +276 -0
- package/src/components/combobox-list/index.ts +3 -0
- package/src/components/container/container.tsx +47 -0
- package/src/components/container/index.ts +1 -0
- package/src/components/data-table/data-table-features.ts +127 -0
- package/src/components/data-table/data-table-filter/data-table-date-filter.tsx +275 -0
- package/src/components/data-table/data-table-filter/data-table-filter-fns.ts +126 -0
- package/src/components/data-table/data-table-filter/data-table-number-filter.tsx +74 -0
- package/src/components/data-table/data-table-filter/data-table-select-filter.tsx +47 -0
- package/src/components/data-table/data-table-filter/data-table-text-filter.tsx +29 -0
- package/src/components/data-table/data-table-filter/index.tsx +62 -0
- package/src/components/data-table/data-table-filter/utils.ts +112 -0
- package/src/components/data-table/data-table-filter-fns.test.tsx +145 -0
- package/src/components/data-table/data-table-filter.test.tsx +365 -0
- package/src/components/data-table/data-table-header-cell.tsx +292 -0
- package/src/components/data-table/data-table-meta.ts +102 -0
- package/src/components/data-table/data-table-pagination.tsx +175 -0
- package/src/components/data-table/data-table-placeholder.tsx +61 -0
- package/src/components/data-table/data-table-schema.test.tsx +22 -0
- package/src/components/data-table/data-table-schema.ts +23 -0
- package/src/components/data-table/data-table-skeleton.ts +9 -0
- package/src/components/data-table/data-table-stack.tsx +376 -0
- package/src/components/data-table/data-table-state.ts +35 -0
- package/src/components/data-table/data-table-toolbar.tsx +81 -0
- package/src/components/data-table/data-table.test.tsx +1143 -0
- package/src/components/data-table/data-table.tsx +829 -0
- package/src/components/data-table/index.ts +46 -0
- package/src/components/date-picker/aliases.tsx +15 -0
- package/src/components/date-picker/date-picker.test.tsx +699 -0
- package/src/components/date-picker/date-picker.tsx +1000 -0
- package/src/components/date-picker/date-time-text.test.ts +68 -0
- package/src/components/date-picker/date-time-text.ts +103 -0
- package/src/components/date-picker/index.ts +32 -0
- package/src/components/divider/divider.test.tsx +106 -0
- package/src/components/divider/divider.tsx +162 -0
- package/src/components/divider/index.ts +8 -0
- package/src/components/drawer/drawer.tsx +405 -0
- package/src/components/drawer/index.ts +21 -0
- package/src/components/field/field.tsx +235 -0
- package/src/components/field/index.ts +3 -0
- package/src/components/file-upload/file-upload.test.tsx +47 -0
- package/src/components/file-upload/file-upload.tsx +280 -0
- package/src/components/file-upload/index.ts +3 -0
- package/src/components/flex/flex.tsx +81 -0
- package/src/components/flex/index.ts +1 -0
- package/src/components/grid/grid.tsx +52 -0
- package/src/components/grid/index.ts +1 -0
- package/src/components/hover-card/hover-card.test.tsx +192 -0
- package/src/components/hover-card/hover-card.tsx +376 -0
- package/src/components/hover-card/index.ts +9 -0
- package/src/components/indicator/index.ts +6 -0
- package/src/components/indicator/indicator.test.tsx +241 -0
- package/src/components/indicator/indicator.tsx +275 -0
- package/src/components/input/index.ts +12 -0
- package/src/components/input/input.test.tsx +111 -0
- package/src/components/input/input.tsx +320 -0
- package/src/components/kbd/index.ts +1 -0
- package/src/components/kbd/kbd.test.tsx +20 -0
- package/src/components/kbd/kbd.tsx +98 -0
- package/src/components/mark/index.ts +1 -0
- package/src/components/mark/mark.test.tsx +85 -0
- package/src/components/mark/mark.tsx +79 -0
- package/src/components/menu/index.ts +27 -0
- package/src/components/menu/menu-data.tsx +230 -0
- package/src/components/menu/menu.test.tsx +547 -0
- package/src/components/menu/menu.tsx +514 -0
- package/src/components/modal/index.ts +14 -0
- package/src/components/modal/modal.tsx +420 -0
- package/src/components/multi-combobox-list/index.ts +3 -0
- package/src/components/multi-combobox-list/multi-combobox-list.test.tsx +190 -0
- package/src/components/multi-combobox-list/multi-combobox-list.tsx +308 -0
- package/src/components/multi-select/index.ts +12 -0
- package/src/components/multi-select/multi-select.test.tsx +248 -0
- package/src/components/multi-select/multi-select.tsx +355 -0
- package/src/components/nav-link/index.ts +4 -0
- package/src/components/nav-link/nav-link.test.tsx +107 -0
- package/src/components/nav-link/nav-link.tsx +205 -0
- package/src/components/nav-link/navigation.test.tsx +117 -0
- package/src/components/nav-link/navigation.tsx +81 -0
- package/src/components/nav-link/tanstack.tsx +67 -0
- package/src/components/notification/create-notifier.tsx +517 -0
- package/src/components/notification/index.ts +20 -0
- package/src/components/notification/notification.test.tsx +306 -0
- package/src/components/notification/notification.tsx +353 -0
- package/src/components/notification/store.ts +159 -0
- package/src/components/notification/types.ts +67 -0
- package/src/components/number-input/index.ts +3 -0
- package/src/components/number-input/number-input.test.tsx +291 -0
- package/src/components/number-input/number-input.tsx +407 -0
- package/src/components/overlays/create-overlays.tsx +267 -0
- package/src/components/overlays/index.ts +25 -0
- package/src/components/overlays/renderer.tsx +214 -0
- package/src/components/overlays/store.ts +103 -0
- package/src/components/overlays/types.ts +150 -0
- package/src/components/password-input/index.ts +3 -0
- package/src/components/password-input/password-input.test.tsx +94 -0
- package/src/components/password-input/password-input.tsx +191 -0
- package/src/components/pill/index.ts +9 -0
- package/src/components/pill/pill.test.tsx +22 -0
- package/src/components/pill/pill.tsx +221 -0
- package/src/components/pills-input/index.ts +12 -0
- package/src/components/pills-input/pills-input.test.ts +136 -0
- package/src/components/pills-input/pills-input.tsx +422 -0
- package/src/components/pin-input/index.ts +3 -0
- package/src/components/pin-input/pin-input.test.tsx +74 -0
- package/src/components/pin-input/pin-input.tsx +186 -0
- package/src/components/popover/icons.tsx +129 -0
- package/src/components/popover/index.ts +8 -0
- package/src/components/popover/popover.test.tsx +223 -0
- package/src/components/popover/popover.tsx +635 -0
- package/src/components/progress/index.ts +18 -0
- package/src/components/progress/progress.test.tsx +112 -0
- package/src/components/progress/progress.tsx +194 -0
- package/src/components/radio-group/index.ts +9 -0
- package/src/components/radio-group/radio-group.test.tsx +107 -0
- package/src/components/radio-group/radio-group.tsx +207 -0
- package/src/components/rating/icons.tsx +35 -0
- package/src/components/rating/index.ts +9 -0
- package/src/components/rating/rating.test.tsx +288 -0
- package/src/components/rating/rating.tsx +389 -0
- package/src/components/schedule/index.ts +170 -0
- package/src/components/schedule/now-cursor-line.test.tsx +262 -0
- package/src/components/schedule/now-cursor-line.tsx +343 -0
- package/src/components/schedule/schedule-agenda-list.tsx +480 -0
- package/src/components/schedule/schedule-agenda-view.test.tsx +333 -0
- package/src/components/schedule/schedule-agenda-view.tsx +209 -0
- package/src/components/schedule/schedule-all-day-row.test.ts +187 -0
- package/src/components/schedule/schedule-all-day-row.tsx +616 -0
- package/src/components/schedule/schedule-create-draft.tsx +181 -0
- package/src/components/schedule/schedule-dates.test.ts +771 -0
- package/src/components/schedule/schedule-dates.ts +721 -0
- package/src/components/schedule/schedule-day-view.tsx +30 -0
- package/src/components/schedule/schedule-days-view.tsx +277 -0
- package/src/components/schedule/schedule-details-popover.test.tsx +765 -0
- package/src/components/schedule/schedule-disabled-overlay.tsx +51 -0
- package/src/components/schedule/schedule-drag-ghost.tsx +157 -0
- package/src/components/schedule/schedule-event-chip.tsx +1176 -0
- package/src/components/schedule/schedule-event-details.tsx +101 -0
- package/src/components/schedule/schedule-event-list-popover-content.tsx +149 -0
- package/src/components/schedule/schedule-event-styles.ts +60 -0
- package/src/components/schedule/schedule-geometry.test.ts +426 -0
- package/src/components/schedule/schedule-geometry.ts +461 -0
- package/src/components/schedule/schedule-grid-gesture.test.ts +153 -0
- package/src/components/schedule/schedule-grid-gesture.ts +567 -0
- package/src/components/schedule/schedule-layout.test.ts +260 -0
- package/src/components/schedule/schedule-layout.ts +270 -0
- package/src/components/schedule/schedule-month-view.test.tsx +193 -0
- package/src/components/schedule/schedule-month-view.tsx +688 -0
- package/src/components/schedule/schedule-next-up-grouping.test.ts +95 -0
- package/src/components/schedule/schedule-next-up-grouping.ts +69 -0
- package/src/components/schedule/schedule-next-up.test.tsx +189 -0
- package/src/components/schedule/schedule-next-up.tsx +136 -0
- package/src/components/schedule/schedule-overflow-chip.tsx +156 -0
- package/src/components/schedule/schedule-overflow-popover.tsx +173 -0
- package/src/components/schedule/schedule-segments.test.ts +201 -0
- package/src/components/schedule/schedule-segments.ts +120 -0
- package/src/components/schedule/schedule-snap.test.ts +546 -0
- package/src/components/schedule/schedule-snap.ts +380 -0
- package/src/components/schedule/schedule-timed-grid.tsx +1609 -0
- package/src/components/schedule/schedule-toolbar.tsx +264 -0
- package/src/components/schedule/schedule-type-cost.test.ts +104 -0
- package/src/components/schedule/schedule-types.test.ts +64 -0
- package/src/components/schedule/schedule-types.ts +1149 -0
- package/src/components/schedule/schedule-views.test.ts +263 -0
- package/src/components/schedule/schedule-views.ts +293 -0
- package/src/components/schedule/schedule-week-view.tsx +25 -0
- package/src/components/schedule/schedule-year-view.test.tsx +105 -0
- package/src/components/schedule/schedule-year-view.tsx +305 -0
- package/src/components/schedule/schedule.test.tsx +4268 -0
- package/src/components/schedule/schedule.tsx +1038 -0
- package/src/components/schedule/use-event-create.ts +590 -0
- package/src/components/schedule/use-event-drag.ts +504 -0
- package/src/components/schedule/use-event-resize.ts +563 -0
- package/src/components/schedule/use-schedule-selection.ts +119 -0
- package/src/components/schedule/use-schedule.test.ts +91 -0
- package/src/components/schedule/use-schedule.ts +135 -0
- package/src/components/segment-group/index.ts +15 -0
- package/src/components/segment-group/segment-group.test.tsx +172 -0
- package/src/components/segment-group/segment-group.tsx +570 -0
- package/src/components/select/index.ts +12 -0
- package/src/components/select/select.test.tsx +173 -0
- package/src/components/select/select.tsx +405 -0
- package/src/components/skeleton/index.ts +7 -0
- package/src/components/skeleton/skeleton.test.tsx +96 -0
- package/src/components/skeleton/skeleton.tsx +178 -0
- package/src/components/slider/index.ts +3 -0
- package/src/components/slider/slider.test.tsx +136 -0
- package/src/components/slider/slider.tsx +390 -0
- package/src/components/slider/sliderThumb.tsx +0 -0
- package/src/components/spinner/index.ts +6 -0
- package/src/components/spinner/spinner.tsx +136 -0
- package/src/components/switch/index.ts +3 -0
- package/src/components/switch/switch.test.tsx +98 -0
- package/src/components/switch/switch.tsx +234 -0
- package/src/components/table/index.ts +14 -0
- package/src/components/table/table.test.tsx +262 -0
- package/src/components/table/table.tsx +309 -0
- package/src/components/tabs/index.ts +17 -0
- package/src/components/tabs/tabs-data.tsx +125 -0
- package/src/components/tabs/tabs.test.tsx +172 -0
- package/src/components/tabs/tabs.tsx +292 -0
- package/src/components/tags-input/index.ts +3 -0
- package/src/components/tags-input/tags-input.test.tsx +85 -0
- package/src/components/tags-input/tags-input.tsx +294 -0
- package/src/components/text/index.ts +1 -0
- package/src/components/text/text.test.tsx +73 -0
- package/src/components/text/text.tsx +107 -0
- package/src/components/text-input/index.ts +3 -0
- package/src/components/text-input/text-input.test.tsx +129 -0
- package/src/components/text-input/text-input.tsx +88 -0
- package/src/components/textarea/index.ts +3 -0
- package/src/components/textarea/textarea.test.tsx +88 -0
- package/src/components/textarea/textarea.tsx +205 -0
- package/src/components/theme-icon/index.ts +7 -0
- package/src/components/theme-icon/theme-icon.test.tsx +20 -0
- package/src/components/theme-icon/theme-icon.tsx +114 -0
- package/src/components/theme-script/index.ts +1 -0
- package/src/components/theme-script/theme-script.tsx +68 -0
- package/src/components/time-input/hour-cycle.ts +61 -0
- package/src/components/time-input/index.ts +4 -0
- package/src/components/time-input/time-input.test.tsx +292 -0
- package/src/components/time-input/time-input.tsx +196 -0
- package/src/components/time-input/time-row.tsx +305 -0
- package/src/components/timeline/index.ts +11 -0
- package/src/components/timeline/timeline.test.tsx +701 -0
- package/src/components/timeline/timeline.tsx +720 -0
- package/src/components/title/index.ts +1 -0
- package/src/components/title/title.test.tsx +68 -0
- package/src/components/title/title.tsx +95 -0
- package/src/components/tooltip/index.ts +9 -0
- package/src/components/tooltip/tooltip.test.tsx +96 -0
- package/src/components/tooltip/tooltip.tsx +255 -0
- package/src/components/tree-multi-select/index.ts +11 -0
- package/src/components/tree-multi-select/tree-multi-select.test.tsx +327 -0
- package/src/components/tree-multi-select/tree-multi-select.tsx +626 -0
- package/src/components/tree-select/index.ts +11 -0
- package/src/components/tree-select/tree-select.test.tsx +376 -0
- package/src/components/tree-select/tree-select.tsx +634 -0
- package/src/index.ts +64 -0
- package/src/lib/align.ts +6 -0
- package/src/lib/available-if.test.ts +76 -0
- package/src/lib/available-if.ts +114 -0
- package/src/lib/brand.ts +19 -0
- package/src/lib/cn.test.ts +13 -0
- package/src/lib/cn.ts +28 -0
- package/src/lib/colors.ts +31 -0
- package/src/lib/control-open.ts +38 -0
- package/src/lib/date-predicates.test.ts +149 -0
- package/src/lib/date-predicates.ts +83 -0
- package/src/lib/date-value.test.ts +107 -0
- package/src/lib/date-value.ts +76 -0
- package/src/lib/dev-warn.ts +18 -0
- package/src/lib/focus-styles.test.ts +138 -0
- package/src/lib/focus-styles.ts +145 -0
- package/src/lib/form-control.ts +72 -0
- package/src/lib/gradient.ts +81 -0
- package/src/lib/intl-direction.test.tsx +96 -0
- package/src/lib/intl.test.tsx +162 -0
- package/src/lib/intl.tsx +210 -0
- package/src/lib/link-component.test.tsx +46 -0
- package/src/lib/link-component.tsx +32 -0
- package/src/lib/merge-refs.ts +20 -0
- package/src/lib/overlay-container.test.tsx +69 -0
- package/src/lib/overlay-container.tsx +64 -0
- package/src/lib/overlay-layer.test.tsx +139 -0
- package/src/lib/overlay-layer.tsx +81 -0
- package/src/lib/placement.ts +23 -0
- package/src/lib/props.ts +48 -0
- package/src/lib/required-if.ts +57 -0
- package/src/lib/schedule-predicates.test.ts +230 -0
- package/src/lib/schedule-predicates.ts +193 -0
- package/src/lib/select-data.ts +227 -0
- package/src/lib/sizes.ts +20 -0
- package/src/lib/test-id.ts +27 -0
- package/src/lib/theme-init-runtime.test.ts +152 -0
- package/src/lib/theme-init-runtime.ts +79 -0
- package/src/lib/theme.test.ts +223 -0
- package/src/lib/theme.ts +153 -0
- package/src/lib/tree-data.ts +159 -0
- package/src/lib/typography-size.ts +59 -0
- package/src/lib/use-container-query.test.ts +83 -0
- package/src/lib/use-container-query.ts +44 -0
- package/src/lib/use-disclosure.test.ts +85 -0
- package/src/lib/use-disclosure.ts +77 -0
- package/src/lib/use-isomorphic-layout-effect.ts +12 -0
- package/src/lib/use-local-storage.test.ts +165 -0
- package/src/lib/use-local-storage.ts +178 -0
- package/src/lib/use-logger.ts +39 -0
- package/src/lib/use-media-query.test.ts +77 -0
- package/src/lib/use-media-query.ts +35 -0
- package/src/lib/use-now.ts +59 -0
- package/src/lib/use-theme.test.ts +305 -0
- package/src/lib/use-theme.ts +279 -0
- package/src/lib/use-uncontrolled.test.ts +207 -0
- package/src/lib/use-uncontrolled.ts +85 -0
- package/src/styles.css +17 -0
- package/src/test-setup.ts +130 -0
- package/src/theme-init-script.ts +10 -0
- package/src/theme.css +1275 -0
- package/src/theme.forced-colors.test.tsx +215 -0
- package/src/theme.test.ts +221 -0
- package/src/visually-hidden-containment.test.tsx +98 -0
|
@@ -0,0 +1,1149 @@
|
|
|
1
|
+
import type { startOfWeek } from "@internationalized/date"
|
|
2
|
+
import type { ReactNode } from "react"
|
|
3
|
+
import type { DatePredicate } from "../../lib/date-predicates"
|
|
4
|
+
import type { RequiredIfGranted } from "../../lib/required-if"
|
|
5
|
+
import type { ScheduleSlotPredicate } from "../../lib/schedule-predicates"
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* A closed subset of the kit's full palette (`lib/colors.ts`), not the
|
|
9
|
+
* shared `Color` type: `brand` and `gray` are excluded (reserved for chrome),
|
|
10
|
+
* and there's no custom-string escape hatch — every allowed value's
|
|
11
|
+
* `--c-text`/`--c-soft` pairing has been checked against a white/near-black
|
|
12
|
+
* grid background, a guarantee an arbitrary custom color couldn't make.
|
|
13
|
+
*/
|
|
14
|
+
export const SCHEDULE_EVENT_COLORS = [
|
|
15
|
+
"red",
|
|
16
|
+
"orange",
|
|
17
|
+
"yellow",
|
|
18
|
+
"green",
|
|
19
|
+
"teal",
|
|
20
|
+
"cyan",
|
|
21
|
+
"blue",
|
|
22
|
+
"purple",
|
|
23
|
+
"pink",
|
|
24
|
+
] as const
|
|
25
|
+
export type ScheduleEventColor = (typeof SCHEDULE_EVENT_COLORS)[number]
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* RFC §4 (`docs/rfcs/schedule.md`) value model. `id`/`start`/`end` are the
|
|
29
|
+
* shared shape; `kind` is required and literal-pinned (not stamped on
|
|
30
|
+
* internally) so passing a static event into `data` — or vice versa — is a
|
|
31
|
+
* compile error, and so a merged render list stays self-describing.
|
|
32
|
+
*
|
|
33
|
+
* `P` (default `unknown`) is a bare generic — the DataTable-shaped pattern,
|
|
34
|
+
* not `SelectItem<P>`'s heavier `const Data extends SelectData` + structural
|
|
35
|
+
* extraction machinery — since `data`/`staticEvents` are homogeneous arrays
|
|
36
|
+
* with no value-literal narrowing need. `P` infers from `data` at every
|
|
37
|
+
* component boundary that touches events, all the way through to
|
|
38
|
+
* `renderEventDetails`/`renderDayDetails`.
|
|
39
|
+
*/
|
|
40
|
+
type ScheduleEventBase<P = unknown> = {
|
|
41
|
+
/** Stable identity — never derived from array index. */
|
|
42
|
+
id: string
|
|
43
|
+
/** Wall-clock instant, native `Date`, exactly like `DatePicker`'s value. */
|
|
44
|
+
start: Date
|
|
45
|
+
/** Exclusive — an event ending exactly when another starts does not overlap it. */
|
|
46
|
+
end: Date
|
|
47
|
+
title: string
|
|
48
|
+
/** Secondary content row in the built-in details popover — same role as
|
|
49
|
+
* Field's helper text, but `ReactNode` (not just plain text) so a
|
|
50
|
+
* consumer can render rich content there (a list, a link, formatted
|
|
51
|
+
* text). The popover's `max-w-64` cap still applies, so wide content
|
|
52
|
+
* (a table, an image) will look cramped — it's sized for wrapped text. */
|
|
53
|
+
description?: ReactNode
|
|
54
|
+
/** One of `SCHEDULE_EVENT_COLORS` — a curated subset of the kit palette
|
|
55
|
+
* chosen for contrast against the grid, not the full `Color` type. */
|
|
56
|
+
color?: ScheduleEventColor
|
|
57
|
+
/** `icon={null}` explicitly suppresses the glyph; `undefined` = none set. */
|
|
58
|
+
icon?: ReactNode
|
|
59
|
+
/** Arbitrary extra data, surfaced to `renderEventDetails`/`renderDayDetails`
|
|
60
|
+
* — same role as `SelectItem<P>`'s `payload`. */
|
|
61
|
+
payload?: P
|
|
62
|
+
/** Renders as `data-testid`; defaults to `id` (already a stable, unique
|
|
63
|
+
* identity) — the data-driven-array convention every kit component with
|
|
64
|
+
* a `data` prop follows, see `/docs/testing`. */
|
|
65
|
+
testId?: string
|
|
66
|
+
/**
|
|
67
|
+
* RFC's all-day addendum — Day/Week only. `start`/`end` stay real `Date`s
|
|
68
|
+
* (no separate date-only value type): build an all-day event as day
|
|
69
|
+
* *boundaries* — `start` = midnight of the first day, `end` = midnight of
|
|
70
|
+
* the day *after* the last day (exclusive, same convention every other
|
|
71
|
+
* event already uses). A multi-day all-day event draws one continuous bar
|
|
72
|
+
* spanning the days it covers, not one independent pill per day. Ignored
|
|
73
|
+
* outside Day/Week (Month/Year have no time axis to distinguish "all day"
|
|
74
|
+
* from, and already render any event — all-day or not — as a plain pill).
|
|
75
|
+
*/
|
|
76
|
+
allDay?: boolean
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Draggable, resizable, removable — mutation is reported, never applied
|
|
81
|
+
* internally. Whether each of those is actually *possible* is governed by
|
|
82
|
+
* `editable` here composed with `ScheduleTimedProps.editable` — see
|
|
83
|
+
* `ScheduleEventEditGesture` below. `undefined` inherits the schedule-level
|
|
84
|
+
* grant entirely; when present, this can only narrow it further, never grant
|
|
85
|
+
* a gesture the schedule level doesn't already allow (same "once restricted,
|
|
86
|
+
* stays restricted" composition every other per-item `disabled` in the kit
|
|
87
|
+
* uses — RadioGroup, TreeSelect, …).
|
|
88
|
+
*/
|
|
89
|
+
export type ScheduleEvent<P = unknown> = ScheduleEventBase<P> & {
|
|
90
|
+
kind: "event"
|
|
91
|
+
editable?: boolean | ScheduleEventEditGesture[]
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/** Read-only — clickable, but never draggable, resizable, or removable. */
|
|
95
|
+
export type ScheduleStaticEvent<P = unknown> = ScheduleEventBase<P> & { kind: "static" }
|
|
96
|
+
|
|
97
|
+
export type ScheduleAnyEvent<P = unknown> = ScheduleEvent<P> | ScheduleStaticEvent<P>
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* The **renderer** union — which component draws a view, not which tab is
|
|
101
|
+
* selected (that is a `views` entry's `id`, see `schedule-views.ts`).
|
|
102
|
+
*
|
|
103
|
+
* `"agenda"` is a list rather than a grid, but it is a renderer like any
|
|
104
|
+
* other: `Root`'s `match` has to draw it, and `Schedule.Toolbar`'s Title and
|
|
105
|
+
* Prev/Next are fed this value, so `formatScheduleTitle`/`paginateDate` have
|
|
106
|
+
* to answer for it either way. Keeping it in here is what lets all four stay
|
|
107
|
+
* `.exhaustive()`.
|
|
108
|
+
*/
|
|
109
|
+
export type ScheduleView = "days" | "month" | "year" | "agenda"
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* RFC §12a — overlap prevention's two independent axes, both folded into the
|
|
113
|
+
* single `preventOverlap` prop (`ScheduleOverlapPreventionOptions`, below)
|
|
114
|
+
* rather than two separate props. Axis A (which gestures enforce no-overlap):
|
|
115
|
+
* `true` covers all three; an array opts in to a subset; `undefined`/`false`
|
|
116
|
+
* reproduces today's v1 behavior everywhere (unchanged — overlapping data
|
|
117
|
+
* still lays out side-by-side via `layoutEventColumns`, which has no opinion
|
|
118
|
+
* on whether an overlap is "allowed"). Axis B (which event kind counts as a
|
|
119
|
+
* blocker) is `ScheduleOverlapTarget`, below.
|
|
120
|
+
*/
|
|
121
|
+
export type ScheduleOverlapGesture = "create" | "drag" | "resize"
|
|
122
|
+
|
|
123
|
+
/** Axis B — which event kind(s) count as an overlap blocker; `"both"` lives
|
|
124
|
+
* on `ScheduleOverlapPreventionOptions.against`, not here, since a bare
|
|
125
|
+
* event never carries `kind: "both"`. */
|
|
126
|
+
export type ScheduleOverlapTarget = "event" | "static"
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* The object form of `ScheduleTimedProps.preventOverlap` — both axes live
|
|
130
|
+
* on one prop now (a merge of what shipped as two separate props,
|
|
131
|
+
* `preventOverlap`/`preventOverlapAgainst`; see `resolveOverlapPrevention`
|
|
132
|
+
* below for the exact resolution table). `preventOverlap` also still accepts
|
|
133
|
+
* a bare `boolean` directly (`true` = both axes at their defaults, `false`/
|
|
134
|
+
* `undefined` = off) — this object form is only needed to reach for a
|
|
135
|
+
* non-default `against`, a gesture subset, or both at once.
|
|
136
|
+
*/
|
|
137
|
+
export type ScheduleOverlapPreventionOptions = {
|
|
138
|
+
/** Which gestures enforce no-overlap. Default `true` (all three) when this
|
|
139
|
+
* key is omitted but the options object itself is passed. */
|
|
140
|
+
gestures?: boolean | ScheduleOverlapGesture[]
|
|
141
|
+
/** Which event kind(s) count as a blocker. Default `"both"`. */
|
|
142
|
+
against?: ScheduleOverlapTarget | "both"
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Edit permissions — which gestures are possible at all. Reuses the same
|
|
147
|
+
* vocabulary the rest of Schedule's public API already uses for these exact
|
|
148
|
+
* actions: `"drag"` (`ScheduleOverlapGesture`, `onEventChange`'s `reason`)
|
|
149
|
+
* and `"remove"` (`onEventRemove`, the `removeEvent` translation key) — no
|
|
150
|
+
* new synonyms. `"create"` has no per-event equivalent (there's no existing
|
|
151
|
+
* event to create *on*), so `ScheduleEventEditGesture` below omits it.
|
|
152
|
+
*/
|
|
153
|
+
export type ScheduleEditGesture = "create" | "drag" | "resize" | "remove"
|
|
154
|
+
|
|
155
|
+
/** Per-event narrowing (`ScheduleEvent.editable`) — a subset of
|
|
156
|
+
* `ScheduleEditGesture` excluding `"create"`. */
|
|
157
|
+
export type ScheduleEventEditGesture = "drag" | "resize" | "remove"
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* What happens when a resize grip reaches the event's other edge.
|
|
161
|
+
*
|
|
162
|
+
* - `"none"` (default) — the grip stops `minDuration` away
|
|
163
|
+
* from the other edge. Excess movement is ignored.
|
|
164
|
+
* - `"push"` — the grip keeps going and the other edge follows, so the event
|
|
165
|
+
* holds the minimum duration and slides.
|
|
166
|
+
* - `"swap"` — once the grip travels *past* the other edge, the two exchange
|
|
167
|
+
* roles: the old edge becomes the near one, and the grip now controls the
|
|
168
|
+
* far one.
|
|
169
|
+
*
|
|
170
|
+
* Named after zag's own two-thumb range vocabulary
|
|
171
|
+
* (`@zag-js/slider`'s `thumbCollisionBehavior`), which `Slider` already sits
|
|
172
|
+
* on — this is the same problem on a time axis, so it is deliberately not a
|
|
173
|
+
* new set of names. Days view only, and resize only: a *move* shifts both
|
|
174
|
+
* edges identically (`moveRange`) so nothing can collide, and a *create* drag
|
|
175
|
+
* has no second stop to collide with (its two endpoints come from one
|
|
176
|
+
* gesture, already normalised by `Math.min`/`Math.max`).
|
|
177
|
+
*/
|
|
178
|
+
export type ScheduleCollision = "none" | "push" | "swap"
|
|
179
|
+
|
|
180
|
+
/** Named once so `ScheduleTimedProps` (the always-optional shape) and
|
|
181
|
+
* `EditableCallbacks` (the `editable`-conditioned shape, below) can't drift
|
|
182
|
+
* from each other. */
|
|
183
|
+
export type ScheduleEventChangeHandler<P> = (
|
|
184
|
+
event: ScheduleEvent<P>,
|
|
185
|
+
next: { start: Date; end: Date },
|
|
186
|
+
reason: "drag" | "resize",
|
|
187
|
+
) => void
|
|
188
|
+
export type ScheduleEventRemoveHandler<P> = (event: ScheduleEvent<P>) => void
|
|
189
|
+
/** Always a list — one range for a left drag, one per day for a right drag
|
|
190
|
+
* (see `ScheduleTimedProps.onEventCreate`) — so a gesture commits atomically
|
|
191
|
+
* and a single state update adds every event it made. */
|
|
192
|
+
export type ScheduleEventCreateHandler = (ranges: { start: Date; end: Date }[]) => void
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Compile-time counterpart to the dev-mode warning further down
|
|
196
|
+
* (`eventEditGestureExceedsSchedule`'s call site, in
|
|
197
|
+
* `schedule-timed-grid.tsx`) — see `lib/required-if.ts`'s own doc comment for
|
|
198
|
+
* the general idiom and why it's safe. Consumed only by `ScheduleProps`'s
|
|
199
|
+
* `Editable` generic (`schedule.tsx`), i.e. `Schedule`/`Schedule.Root` only.
|
|
200
|
+
* `DaysView`/`DayView`/`WeekView` — the standalone, no-`Root`-wrapper views —
|
|
201
|
+
* deliberately keep `editable` and its callbacks fully optional on
|
|
202
|
+
* `ScheduleTimedProps` and rely solely on the runtime check: both
|
|
203
|
+
* `DayView`/`WeekView` forward their props to `DaysView` via a `{...props}`
|
|
204
|
+
* spread, and a spread doesn't carry per-field literal information for a
|
|
205
|
+
* generic to infer from, so threading a second generic through that
|
|
206
|
+
* standalone path wouldn't reliably catch anything at compile time — not
|
|
207
|
+
* worth the extra API surface for comparatively rare standalone usage.
|
|
208
|
+
*/
|
|
209
|
+
export type EditableCallbacks<
|
|
210
|
+
P,
|
|
211
|
+
Editable extends boolean | readonly ScheduleEditGesture[],
|
|
212
|
+
> = RequiredIfGranted<
|
|
213
|
+
ScheduleEditGesture,
|
|
214
|
+
Editable,
|
|
215
|
+
"drag",
|
|
216
|
+
{ onEventChange: ScheduleEventChangeHandler<P> }
|
|
217
|
+
> &
|
|
218
|
+
RequiredIfGranted<
|
|
219
|
+
ScheduleEditGesture,
|
|
220
|
+
Editable,
|
|
221
|
+
"resize",
|
|
222
|
+
{ onEventChange: ScheduleEventChangeHandler<P> }
|
|
223
|
+
> &
|
|
224
|
+
RequiredIfGranted<
|
|
225
|
+
ScheduleEditGesture,
|
|
226
|
+
Editable,
|
|
227
|
+
"remove",
|
|
228
|
+
{ onEventRemove: ScheduleEventRemoveHandler<P> }
|
|
229
|
+
> &
|
|
230
|
+
RequiredIfGranted<
|
|
231
|
+
ScheduleEditGesture,
|
|
232
|
+
Editable,
|
|
233
|
+
"create",
|
|
234
|
+
{ onEventCreate: ScheduleEventCreateHandler }
|
|
235
|
+
>
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* `@internationalized/date`'s `DayOfWeek` isn't exported by name, so it's
|
|
239
|
+
* derived structurally from `startOfWeek`'s own third parameter — the same
|
|
240
|
+
* `NonNullable<Parameters<...>>` idiom `date-picker.tsx` uses for Ark's own
|
|
241
|
+
* non-exported types.
|
|
242
|
+
*/
|
|
243
|
+
export type FirstDayOfWeek = NonNullable<Parameters<typeof startOfWeek>[2]>
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* `DaysViewProps.align` / `ScheduleProps.align`'s type — every
|
|
247
|
+
* `FirstDayOfWeek` day-of-week value, plus `"relative"`: the visible
|
|
248
|
+
* window's first day is always the anchor date itself (a rolling window),
|
|
249
|
+
* never snapped to a locale calendar-week boundary. Named `align` (not
|
|
250
|
+
* `startOfWeek`) on those two — `DaysView`'s window isn't necessarily a
|
|
251
|
+
* week (`visibleDays` can be anything), so a literal "start of week" name
|
|
252
|
+
* would mislead. `MonthView` has no use for a rolling window (a month grid
|
|
253
|
+
* is always calendar-week-aligned, genuinely composed of calendar weeks),
|
|
254
|
+
* so its own field keeps the accurate `startOfWeek` name and stays the
|
|
255
|
+
* narrower `FirstDayOfWeek` — passing `"relative"` there is a compile
|
|
256
|
+
* error, not just a documented restriction.
|
|
257
|
+
*/
|
|
258
|
+
export type ScheduleAlign = FirstDayOfWeek | "relative"
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Every slot says which renderers honour it. Unlike the prop slices, this bag
|
|
262
|
+
* is **not** gated on `views` — a class string that lands nowhere is visible
|
|
263
|
+
* in the browser in about a second, where a dropped behaviour prop is not, and
|
|
264
|
+
* making it conditional would mean a `ScheduleClassNames<V>` threaded through
|
|
265
|
+
* all four view components and every consumer annotation. The labels are the
|
|
266
|
+
* cheaper answer to the same question.
|
|
267
|
+
*/
|
|
268
|
+
export type ScheduleClassNames = {
|
|
269
|
+
/** `Root`'s toolbar row. */
|
|
270
|
+
toolbar?: string
|
|
271
|
+
/** The scrollable grid root — Days, Month and Year each have one. */
|
|
272
|
+
grid?: string
|
|
273
|
+
/** Days only. Month's day-cell pills are a different element with a
|
|
274
|
+
* different anatomy (no grip, no remove button, no time line), so they
|
|
275
|
+
* deliberately don't read this. */
|
|
276
|
+
event?: ScheduleEventChipClassNames
|
|
277
|
+
/** Month only — the unavailable-day wash (`dayDisabled`). */
|
|
278
|
+
disabledOverlay?: string
|
|
279
|
+
/** Days only. */
|
|
280
|
+
nowIndicator?: string
|
|
281
|
+
/** Days only — the click-drag-to-create ghost box. */
|
|
282
|
+
createDraft?: string
|
|
283
|
+
/** Days only — the move-drag preview box (RFC §6), the sibling of
|
|
284
|
+
* `createDraft` for an event being moved rather than drafted. */
|
|
285
|
+
dragGhost?: string
|
|
286
|
+
/** Days, Month and Agenda — the built-in event-details popover's panel. */
|
|
287
|
+
eventDetailsPopover?: string
|
|
288
|
+
/** Days and Month — every "+N" disclosure: the timed grid's many-way-overlap
|
|
289
|
+
* indicator, the all-day row's per-day one, and Month's day-cell one.
|
|
290
|
+
*
|
|
291
|
+
* Replaces the former `dayDetailsPopover`, which named Month's half of the
|
|
292
|
+
* same panel back when Month hand-rolled its own popover. `content` is that
|
|
293
|
+
* key's replacement. */
|
|
294
|
+
overflow?: ScheduleOverflowClassNames
|
|
295
|
+
/** Agenda — `AgendaView`'s rows, and the same list `Schedule.NextUp`
|
|
296
|
+
* renders standalone. */
|
|
297
|
+
agenda?: ScheduleAgendaListClassNames
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* The agenda list's slots — shared verbatim between `AgendaView` and
|
|
302
|
+
* `Schedule.NextUp`, which render the same list over two different windows.
|
|
303
|
+
* Lives here rather than beside the component so `ScheduleClassNames` can
|
|
304
|
+
* nest it without `schedule-types.ts` importing from a component file (this
|
|
305
|
+
* module is the graph's root; nothing in the folder may make it a cycle).
|
|
306
|
+
*/
|
|
307
|
+
export type ScheduleAgendaListClassNames = {
|
|
308
|
+
dayGroup?: string
|
|
309
|
+
dayLabel?: string
|
|
310
|
+
timeGroup?: string
|
|
311
|
+
/** The `HH:MM` slot heading — and the "All day" label that replaces it. */
|
|
312
|
+
time?: string
|
|
313
|
+
event?: string
|
|
314
|
+
icon?: string
|
|
315
|
+
title?: string
|
|
316
|
+
description?: string
|
|
317
|
+
duration?: string
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
export type ScheduleEventChipClassNames = {
|
|
321
|
+
root?: string
|
|
322
|
+
icon?: string
|
|
323
|
+
/** The chip's height floor and the threshold that reveals `time` are both
|
|
324
|
+
* derived from `text-xs`'s own line box (exactly `1rem`), so a font-size
|
|
325
|
+
* override here wants a matching `hourHeight` — otherwise a taller line
|
|
326
|
+
* can outgrow the box the chip reserved for it. */
|
|
327
|
+
title?: string
|
|
328
|
+
/** Hidden unless the chip's real rendered height fits two lines, via a
|
|
329
|
+
* `@container` size query rather than the event's duration — see
|
|
330
|
+
* `title` for the font-size caveat. The full range stays in the chip's
|
|
331
|
+
* `aria-label` and its details popover regardless. */
|
|
332
|
+
time?: string
|
|
333
|
+
grip?: string
|
|
334
|
+
removeButton?: string
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/** Formerly `ScheduleOverflowClassNames` — it covers the disclosure panel
|
|
338
|
+
* and its rows too, not only the chip. */
|
|
339
|
+
export type ScheduleOverflowClassNames = {
|
|
340
|
+
/** The "+N" button itself. */
|
|
341
|
+
root?: string
|
|
342
|
+
/** The disclosure popover's panel. */
|
|
343
|
+
content?: string
|
|
344
|
+
/** One row of the list inside it. */
|
|
345
|
+
item?: string
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* RFC §15 — one unified `translations` prop, prop-only (no context), all
|
|
350
|
+
* keys optional, shallow-merged over the English defaults below. Weekday/
|
|
351
|
+
* month names and AM/PM are Intl-derivable from `locale`/`timeZone` and
|
|
352
|
+
* deliberately have no key here.
|
|
353
|
+
*/
|
|
354
|
+
export type ScheduleTranslations = {
|
|
355
|
+
now?: string
|
|
356
|
+
previous?: string
|
|
357
|
+
next?: string
|
|
358
|
+
/** The `"day"` view-switcher entry (a one-day window). */
|
|
359
|
+
day?: string
|
|
360
|
+
/** The `"week"` view-switcher entry (a seven-day window). */
|
|
361
|
+
week?: string
|
|
362
|
+
/**
|
|
363
|
+
* The `"days"` view-switcher entry — the one whose window is *variable*
|
|
364
|
+
* (it inherits `ScheduleProps.visibleDays`), which is why its default copy
|
|
365
|
+
* is `"Week"` rather than `"Days"`: with the default `visibleDays` of `7`
|
|
366
|
+
* that is what it actually shows. The RFC (§15) specifies `"Days"`; that
|
|
367
|
+
* drift is deliberate and stays, since no static label is correct for a
|
|
368
|
+
* window the consumer sizes. Reach for the fixed-size `day`/`week` entries
|
|
369
|
+
* when you want a label that is honest by construction.
|
|
370
|
+
*/
|
|
371
|
+
days?: string
|
|
372
|
+
month?: string
|
|
373
|
+
year?: string
|
|
374
|
+
/** The `"agenda"` view-switcher entry — the month-windowed event list. */
|
|
375
|
+
agenda?: string
|
|
376
|
+
empty?: string
|
|
377
|
+
removeEvent?: string
|
|
378
|
+
/** `"{count}"`-substituted — see RFC §19 on why this stays a flat template for v1. */
|
|
379
|
+
eventCount?: string
|
|
380
|
+
/** The day-details popover's back-to-list button — distinct from
|
|
381
|
+
* `previous` (calendar pagination), not reused for it. */
|
|
382
|
+
back?: string
|
|
383
|
+
/** The Day/Week timed grid's all-day row gutter label. */
|
|
384
|
+
allDay?: string
|
|
385
|
+
/** Screen-reader-only announcement (a visually-hidden `role="status"`
|
|
386
|
+
* region, `schedule-timed-grid.tsx`) fired once a create-drag commits —
|
|
387
|
+
* the create/remove chip animations are purely visual otherwise.
|
|
388
|
+
* `"{range}"`-substituted with the new event's time range: `onEventCreate`
|
|
389
|
+
* only ever receives `{ start, end }` (Schedule never invents a title),
|
|
390
|
+
* so there's nothing else to announce yet at this point. */
|
|
391
|
+
eventCreated?: string
|
|
392
|
+
/** Same live region as `eventCreated`, fired once a remove's exit
|
|
393
|
+
* animation actually finishes. `"{title}"`-substituted — the full event
|
|
394
|
+
* (title included) is available by the time this fires. */
|
|
395
|
+
eventRemoved?: string
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
const DEFAULT_TRANSLATIONS: Required<ScheduleTranslations> = {
|
|
399
|
+
now: "Now",
|
|
400
|
+
previous: "Previous",
|
|
401
|
+
next: "Next",
|
|
402
|
+
day: "Day",
|
|
403
|
+
week: "Week",
|
|
404
|
+
days: "Week",
|
|
405
|
+
month: "Month",
|
|
406
|
+
year: "Year",
|
|
407
|
+
agenda: "Agenda",
|
|
408
|
+
empty: "No events",
|
|
409
|
+
removeEvent: "Remove event",
|
|
410
|
+
eventCount: "{count} events",
|
|
411
|
+
back: "Back",
|
|
412
|
+
allDay: "All day",
|
|
413
|
+
eventCreated: "New event created, {range}",
|
|
414
|
+
eventRemoved: "{title} removed",
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
export const resolveScheduleTranslations = (
|
|
418
|
+
overrides?: ScheduleTranslations,
|
|
419
|
+
): Required<ScheduleTranslations> => ({ ...DEFAULT_TRANSLATIONS, ...overrides })
|
|
420
|
+
|
|
421
|
+
/** Substitutes `translations.eventCount`'s `"{count}"` template — the "+N"
|
|
422
|
+
* aria-label shared by every overflow trigger (the timed grid's and
|
|
423
|
+
* all-day row's `ScheduleOverflowPopover`, Month's own day-cell pill). */
|
|
424
|
+
export const eventCountLabel = (template: string, count: number) =>
|
|
425
|
+
template.replace("{count}", String(count))
|
|
426
|
+
|
|
427
|
+
/** Resolves axis A of overlap-prevention (RFC §12a) for one gesture. */
|
|
428
|
+
export function isOverlapGestureEnabled(
|
|
429
|
+
preventOverlap: boolean | ScheduleOverlapGesture[] | undefined,
|
|
430
|
+
gesture: ScheduleOverlapGesture,
|
|
431
|
+
): boolean {
|
|
432
|
+
if (!preventOverlap) return false
|
|
433
|
+
return preventOverlap === true || preventOverlap.includes(gesture)
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* Resolves `ScheduleTimedProps.preventOverlap`'s merged shape into its two
|
|
438
|
+
* independent axes — `gestures` (feed to `isOverlapGestureEnabled`, once per
|
|
439
|
+
* gesture) and `against` (feed to `resolveOverlapCandidates`,
|
|
440
|
+
* `schedule-dates.ts`). Pure and cheap enough to call once per render, same
|
|
441
|
+
* "resolve once, thread the result down" shape the rest of Schedule's
|
|
442
|
+
* gesture/permission resolution already uses.
|
|
443
|
+
*
|
|
444
|
+
* | `preventOverlap` | → `gestures` | → `against` |
|
|
445
|
+
* |------------------------------------|-----------------|--------------|
|
|
446
|
+
* | `undefined` / `false` | `false` | `"both"` (irrelevant — `gestures` is `false`) |
|
|
447
|
+
* | `true` | `true` | `"both"` |
|
|
448
|
+
* | `{}` | `true` | `"both"` |
|
|
449
|
+
* | `{ gestures: [...] }` | that array | `"both"` |
|
|
450
|
+
* | `{ against: X }` | `true` | `X` |
|
|
451
|
+
* | `{ gestures: [...], against: X }` | that array | `X` |
|
|
452
|
+
*/
|
|
453
|
+
export function resolveOverlapPrevention(
|
|
454
|
+
preventOverlap: boolean | ScheduleOverlapPreventionOptions | undefined,
|
|
455
|
+
): { gestures: boolean | ScheduleOverlapGesture[]; against: ScheduleOverlapTarget | "both" } {
|
|
456
|
+
if (!preventOverlap) return { gestures: false, against: "both" }
|
|
457
|
+
if (preventOverlap === true) return { gestures: true, against: "both" }
|
|
458
|
+
return {
|
|
459
|
+
gestures: preventOverlap.gestures ?? true,
|
|
460
|
+
against: preventOverlap.against ?? "both",
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
/** Resolves the schedule-level `editable` grant for one gesture — same
|
|
465
|
+
* boolean-or-array shape/logic as `isOverlapGestureEnabled`, kept as a
|
|
466
|
+
* separate function since the two props are deliberately independent
|
|
467
|
+
* concepts with different gesture vocabularies. */
|
|
468
|
+
export function isEditGestureEnabled(
|
|
469
|
+
editable: boolean | readonly ScheduleEditGesture[] | undefined,
|
|
470
|
+
gesture: ScheduleEditGesture,
|
|
471
|
+
): boolean {
|
|
472
|
+
if (!editable) return false
|
|
473
|
+
return editable === true || editable.includes(gesture)
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* The final, composed permission for one event + one gesture. Takes the
|
|
478
|
+
* schedule-level grant *already resolved* for this gesture (via
|
|
479
|
+
* `isEditGestureEnabled`, once per render at the grid level — the same
|
|
480
|
+
* "resolve once, thread a boolean down" shape `preventOverlapOnDrag`/etc.
|
|
481
|
+
* already use), not the raw `editable` prop — the event-level composition
|
|
482
|
+
* below is the only part that varies per event. An event's own `editable`,
|
|
483
|
+
* when present, can only narrow this further, never widen it: if the
|
|
484
|
+
* schedule level doesn't grant a gesture, no per-event `editable` can turn
|
|
485
|
+
* it back on.
|
|
486
|
+
*/
|
|
487
|
+
export function isEventGestureEnabled(
|
|
488
|
+
scheduleGrant: boolean,
|
|
489
|
+
event: Pick<ScheduleEvent, "editable">,
|
|
490
|
+
gesture: ScheduleEventEditGesture,
|
|
491
|
+
): boolean {
|
|
492
|
+
if (!scheduleGrant) return false
|
|
493
|
+
if (event.editable === undefined) return true
|
|
494
|
+
if (!event.editable) return false
|
|
495
|
+
return event.editable === true || event.editable.includes(gesture)
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
/** Whether an event's own `editable` requests a gesture the schedule level
|
|
499
|
+
* doesn't already grant — a no-op the event can't actually widen into, and
|
|
500
|
+
* worth a dev-mode warning so that mismatch doesn't fail silently. */
|
|
501
|
+
export function eventEditGestureExceedsSchedule(
|
|
502
|
+
scheduleEditable: boolean | readonly ScheduleEditGesture[] | undefined,
|
|
503
|
+
event: Pick<ScheduleEvent, "editable">,
|
|
504
|
+
): ScheduleEventEditGesture[] {
|
|
505
|
+
if (!event.editable) return []
|
|
506
|
+
const requested: ScheduleEventEditGesture[] =
|
|
507
|
+
event.editable === true ? ["drag", "resize", "remove"] : event.editable
|
|
508
|
+
return requested.filter((gesture) => !isEditGestureEnabled(scheduleEditable, gesture))
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
// ---------------------------------------------------------------------------
|
|
512
|
+
// Prop slices (RFC §17) — composed by intersection, never a context provider.
|
|
513
|
+
// ---------------------------------------------------------------------------
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* Every renderer. The floor: if a prop is here, no `views` list can make it
|
|
517
|
+
* meaningless, which is what `ScheduleProps` relies on when it decides which
|
|
518
|
+
* slices to gate (`available-if.ts`).
|
|
519
|
+
*
|
|
520
|
+
* Everything that *some* renderer ignores lives in one of the slices below
|
|
521
|
+
* instead, named for the renderers it serves. Adding a prop here is therefore
|
|
522
|
+
* a claim — that all four read it — and the one to check first when a prop
|
|
523
|
+
* turns out to be silently dropped.
|
|
524
|
+
*/
|
|
525
|
+
export type ScheduleSharedProps<P = unknown> = {
|
|
526
|
+
/** Draggable, resizable, removable events. Never mutated internally. */
|
|
527
|
+
data: ScheduleEvent<P>[]
|
|
528
|
+
/** Read-only, programmatically-supplied events. Default `[]`. */
|
|
529
|
+
staticEvents?: ScheduleStaticEvent<P>[]
|
|
530
|
+
/**
|
|
531
|
+
* Override for tests/Storybook; a fixed value stops the live tick entirely.
|
|
532
|
+
*
|
|
533
|
+
* Every renderer reads it, but for different amounts of work: Month and Year
|
|
534
|
+
* only pick out which cell gets the today accent, while Days draws a
|
|
535
|
+
* ticking now-line and Agenda derives its Today/Tomorrow day headings — so
|
|
536
|
+
* only those two hold a live clock. `Root` additionally seeds the
|
|
537
|
+
* uncontrolled anchor date from it.
|
|
538
|
+
*/
|
|
539
|
+
now?: Date
|
|
540
|
+
locale?: string
|
|
541
|
+
/** Default `getLocalTimeZone()` — not Ark's own `"UTC"` default. */
|
|
542
|
+
timeZone?: string
|
|
543
|
+
translations?: ScheduleTranslations
|
|
544
|
+
classNames?: ScheduleClassNames
|
|
545
|
+
className?: string
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* Days, Month, Year — everything with a day to click. Agenda has none: it is
|
|
550
|
+
* a list of events under a group divider, with no day cell and no day header,
|
|
551
|
+
* which is why it takes this slice and not `ScheduleSharedProps`.
|
|
552
|
+
*/
|
|
553
|
+
export type ScheduleDayClickProps = {
|
|
554
|
+
/**
|
|
555
|
+
* Day-cell / day-header click.
|
|
556
|
+
*
|
|
557
|
+
* Its presence decides whether Month's and Year's day cells are focusable
|
|
558
|
+
* controls at all — a button whose activation does nothing is worse for a
|
|
559
|
+
* keyboard user than plain text. In Days view the day *header* is always a
|
|
560
|
+
* button, so there this only ever fires.
|
|
561
|
+
*
|
|
562
|
+
* It no longer has anything to do with Month's day-details popover: that
|
|
563
|
+
* moved onto the "+N" chip, gated on there actually being hidden events,
|
|
564
|
+
* because the two used to be mutually exclusive — wiring `onDayClick` to
|
|
565
|
+
* navigate silently removed the only route to the events behind the cap.
|
|
566
|
+
*/
|
|
567
|
+
onDayClick?: (date: Date) => void
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* Days, Month, Agenda — the three renderers that draw an individual event a
|
|
572
|
+
* reader can point at. Year draws density dots and month counts, so there is
|
|
573
|
+
* nothing there to select and nothing to open a details popover on.
|
|
574
|
+
*
|
|
575
|
+
* Year used to `Omit` these six names off `ScheduleSharedProps` one by one;
|
|
576
|
+
* naming the set once is what stops that list drifting from this one.
|
|
577
|
+
*/
|
|
578
|
+
export type ScheduleEventProps<P = unknown> = {
|
|
579
|
+
/**
|
|
580
|
+
* The selected event's `id`, several ids, or `null` for none.
|
|
581
|
+
*
|
|
582
|
+
* Replaces the former `onEventClick`, which reported a click *and* silently
|
|
583
|
+
* suppressed the details popover by its mere presence. Those were two jobs:
|
|
584
|
+
* the reporting is this triple, and the popover is `withEventDetails` below.
|
|
585
|
+
*
|
|
586
|
+
* One prop drives three things, deliberately — the chip's selected styling,
|
|
587
|
+
* which chip's details popover is open, and which row of a "+N" list is
|
|
588
|
+
* expanded. They were four independent `useState(false)` flags plus two
|
|
589
|
+
* local `activeEventId`s before, which is precisely why none of it was
|
|
590
|
+
* reachable from outside.
|
|
591
|
+
*
|
|
592
|
+
* **Several ids** are for one thing drawn as several chips — an offer split
|
|
593
|
+
* around a booking, an event interrupted by a break. Every listed chip is
|
|
594
|
+
* painted selected; the **first** id is the anchor, the only chip whose
|
|
595
|
+
* details popover opens and the one a selection change scrolls into view.
|
|
596
|
+
* `onSelect` still reports the single chip that was pressed, so map it to
|
|
597
|
+
* the group yourself and keep the pressed id first:
|
|
598
|
+
*
|
|
599
|
+
* ```tsx
|
|
600
|
+
* selected={offer ? piecesOf(offer) : null}
|
|
601
|
+
* onSelect={(event) => setOffer(event?.payload?.offerId ?? null)}
|
|
602
|
+
* ```
|
|
603
|
+
*
|
|
604
|
+
* `null` (not `undefined`) is the "nothing selected" sentinel, per
|
|
605
|
+
* `useUncontrolled`'s own contract. An empty list means the same.
|
|
606
|
+
*/
|
|
607
|
+
selected?: string | readonly string[] | null
|
|
608
|
+
defaultSelected?: string | readonly string[] | null
|
|
609
|
+
/** Fires with the whole event, not its id — the consumer already has the id
|
|
610
|
+
* they passed; what they don't have is the object it came from. `null` when
|
|
611
|
+
* the selection is cleared, i.e. a plain click on empty space, or the
|
|
612
|
+
* details popover being dismissed. */
|
|
613
|
+
onSelect?: (event: ScheduleAnyEvent<P> | null) => void
|
|
614
|
+
/**
|
|
615
|
+
* Default `true`. `false` turns selection off entirely: no chip is styled
|
|
616
|
+
* selected, no details popover opens, and `onSelect` never fires.
|
|
617
|
+
*
|
|
618
|
+
* Selection being on by default is a deliberate change from the pre-`selected`
|
|
619
|
+
* behaviour — a chip click that gives no feedback at all is the odd one.
|
|
620
|
+
*/
|
|
621
|
+
withSelection?: boolean
|
|
622
|
+
/**
|
|
623
|
+
* Default `true`. Whether the built-in event-details popover mounts for the
|
|
624
|
+
* selected event.
|
|
625
|
+
*
|
|
626
|
+
* Set `false` when you are rendering the detail yourself (a side panel, a
|
|
627
|
+
* drawer) and only want the selection state — the dashboard example does
|
|
628
|
+
* exactly this. Use `renderEventDetails` instead to keep the popover but
|
|
629
|
+
* replace what is inside it.
|
|
630
|
+
*/
|
|
631
|
+
withEventDetails?: boolean
|
|
632
|
+
/** Overrides the built-in event-details popover's content entirely, wherever
|
|
633
|
+
* `withEventDetails` mounts one. */
|
|
634
|
+
renderEventDetails?: (event: ScheduleAnyEvent<P>) => ReactNode
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
/** Which "+N" fired. All three behave identically; this only tells you where
|
|
638
|
+
* the reader was looking. */
|
|
639
|
+
export type ScheduleOverflowSource = "timed" | "allDay" | "month"
|
|
640
|
+
|
|
641
|
+
/** The second argument every overflow hook receives. */
|
|
642
|
+
export type ScheduleOverflowContext = {
|
|
643
|
+
/** The day the "+N" sits on. For a timed cluster that is the day column it
|
|
644
|
+
* belongs to, not the cluster's own start instant. */
|
|
645
|
+
date: Date
|
|
646
|
+
source: ScheduleOverflowSource
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* Days and Month — the two renderers that cap how much of a container they
|
|
651
|
+
* draw and collapse the rest into a "+N".
|
|
652
|
+
*
|
|
653
|
+
* All three "+N" surfaces (the timed grid's column overflow, the all-day row's
|
|
654
|
+
* per-day overflow, Month's day cell) behave identically: the chip counts the
|
|
655
|
+
* events that did not fit, and the disclosure lists exactly those. Year draws
|
|
656
|
+
* density dots with no cap, and the agenda is an unbounded list, so neither
|
|
657
|
+
* has an overflow to disclose.
|
|
658
|
+
*/
|
|
659
|
+
export type ScheduleOverflowProps<P = unknown> = {
|
|
660
|
+
/**
|
|
661
|
+
* Fires when a "+N" is activated, with the events it hides and where it sits.
|
|
662
|
+
*
|
|
663
|
+
* **Reports only — it suppresses nothing.** Pass
|
|
664
|
+
* `withOverflowDetails={false}` to take over the disclosure itself. That
|
|
665
|
+
* separation is deliberate: this prop used to double as the suppression
|
|
666
|
+
* switch by its mere presence, which is the same two-jobs-in-one-prop shape
|
|
667
|
+
* `onEventClick` had before `selected`/`withEventDetails` replaced it, and
|
|
668
|
+
* it made the built-in UI impossible to keep while still being told about
|
|
669
|
+
* the click.
|
|
670
|
+
*/
|
|
671
|
+
onOverflowClick?: (events: ScheduleAnyEvent<P>[], ctx: ScheduleOverflowContext) => void
|
|
672
|
+
/**
|
|
673
|
+
* Default `true`. Whether the built-in "+N" disclosure popover mounts — a
|
|
674
|
+
* list of the hidden events, each opening into its own full details.
|
|
675
|
+
*
|
|
676
|
+
* `false` leaves the "+N" a plain button that only fires `onOverflowClick`;
|
|
677
|
+
* the twin of `withEventDetails` one level up. Use `renderOverflowDetails`
|
|
678
|
+
* instead to keep the popover and replace what is inside it.
|
|
679
|
+
*/
|
|
680
|
+
withOverflowDetails?: boolean
|
|
681
|
+
/**
|
|
682
|
+
* Overrides the disclosure's list content, keeping the popover shell.
|
|
683
|
+
*
|
|
684
|
+
* Replaces the former `renderDayDetails`, which was Month-only and named for
|
|
685
|
+
* a day even though it was only ever reachable from the "+N" chip. `events`
|
|
686
|
+
* leads now (the date moved into `ctx`), matching every other list-shaped
|
|
687
|
+
* render prop in the kit, and it works on all three surfaces rather than one.
|
|
688
|
+
*
|
|
689
|
+
* `ctx.onSelectEvent` still drives the built-in list→detail swap, so custom
|
|
690
|
+
* row markup does not have to give that up. An override owns its own empty
|
|
691
|
+
* state — `translations.empty` is only used by the default list.
|
|
692
|
+
*/
|
|
693
|
+
renderOverflowDetails?: (
|
|
694
|
+
events: ScheduleAnyEvent<P>[],
|
|
695
|
+
ctx: ScheduleOverflowContext & { onSelectEvent: (event: ScheduleAnyEvent<P>) => void },
|
|
696
|
+
) => ReactNode
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
/**
|
|
700
|
+
* Days and Agenda — the two renderers that can have nothing to show.
|
|
701
|
+
*
|
|
702
|
+
* Month and Year always draw a calendar whatever the data, so they have no
|
|
703
|
+
* empty state to override. `translations.empty` supplies the default copy for
|
|
704
|
+
* both of these, and is also read by Month's day-details list, which is a
|
|
705
|
+
* different surface with a different reason to be empty — hence a translation
|
|
706
|
+
* key shared by three places and a node prop taken by two.
|
|
707
|
+
*/
|
|
708
|
+
export type ScheduleEmptyProps = {
|
|
709
|
+
/** Replaces the whole "nothing here" placeholder — the timed grid's, and the
|
|
710
|
+
* agenda list's. Pass `null` to suppress it entirely. */
|
|
711
|
+
empty?: ReactNode
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
/**
|
|
715
|
+
* Month and Year — the two renderers whose unit is a whole calendar day.
|
|
716
|
+
*
|
|
717
|
+
* The day-granularity twin of `ScheduleTimedProps.slotDisabled`, which judges
|
|
718
|
+
* a time range instead. Two props rather than one because the predicates
|
|
719
|
+
* genuinely differ in shape (`lib/date-predicates.ts` vs
|
|
720
|
+
* `lib/schedule-predicates.ts`, which says so in its own header) — but one
|
|
721
|
+
* verb, so they read as the siblings they are.
|
|
722
|
+
*/
|
|
723
|
+
export type ScheduleDayDisabledProps = {
|
|
724
|
+
/** Day-granularity restriction — the very same `DatePredicate` as
|
|
725
|
+
* `Calendar`/`DatePicker`'s `isDateUnavailable`, so it pairs with
|
|
726
|
+
* `@42/ui-react/date-picker`'s predicate factories. Note those share names
|
|
727
|
+
* with `@42/ui-react/schedule`'s own range-shaped ones; alias at the import
|
|
728
|
+
* if you need both. The view fills in its own `timeZone` as the second
|
|
729
|
+
* argument, so a `disableWeekends()` here disables the schedule's weekends
|
|
730
|
+
* rather than the host's. */
|
|
731
|
+
dayDisabled?: DatePredicate
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
/** The slot sizes a timed grid supports, in minutes. */
|
|
735
|
+
export type ScheduleSlotDuration = 15 | 30 | 60
|
|
736
|
+
|
|
737
|
+
/*
|
|
738
|
+
* Every multiple of each slot size from one slot up to a day.
|
|
739
|
+
*
|
|
740
|
+
* Spelled out, not computed, because this is paid by every consumer just for
|
|
741
|
+
* importing the schedule. Measured with `tsc --extendedDiagnostics` on the
|
|
742
|
+
* `schedule-type-cost.test.ts` baseline fixture: counting them with a tuple
|
|
743
|
+
* cost ~290k extra types, deriving the 30/60 lists from the 15 one by
|
|
744
|
+
* recursion ~19k, and these three literals ~500.
|
|
745
|
+
*/
|
|
746
|
+
type QuarterHoursInADay =
|
|
747
|
+
| 15
|
|
748
|
+
| 30
|
|
749
|
+
| 45
|
|
750
|
+
| 60
|
|
751
|
+
| 75
|
|
752
|
+
| 90
|
|
753
|
+
| 105
|
|
754
|
+
| 120
|
|
755
|
+
| 135
|
|
756
|
+
| 150
|
|
757
|
+
| 165
|
|
758
|
+
| 180
|
|
759
|
+
| 195
|
|
760
|
+
| 210
|
|
761
|
+
| 225
|
|
762
|
+
| 240
|
|
763
|
+
| 255
|
|
764
|
+
| 270
|
|
765
|
+
| 285
|
|
766
|
+
| 300
|
|
767
|
+
| 315
|
|
768
|
+
| 330
|
|
769
|
+
| 345
|
|
770
|
+
| 360
|
|
771
|
+
| 375
|
|
772
|
+
| 390
|
|
773
|
+
| 405
|
|
774
|
+
| 420
|
|
775
|
+
| 435
|
|
776
|
+
| 450
|
|
777
|
+
| 465
|
|
778
|
+
| 480
|
|
779
|
+
| 495
|
|
780
|
+
| 510
|
|
781
|
+
| 525
|
|
782
|
+
| 540
|
|
783
|
+
| 555
|
|
784
|
+
| 570
|
|
785
|
+
| 585
|
|
786
|
+
| 600
|
|
787
|
+
| 615
|
|
788
|
+
| 630
|
|
789
|
+
| 645
|
|
790
|
+
| 660
|
|
791
|
+
| 675
|
|
792
|
+
| 690
|
|
793
|
+
| 705
|
|
794
|
+
| 720
|
|
795
|
+
| 735
|
|
796
|
+
| 750
|
|
797
|
+
| 765
|
|
798
|
+
| 780
|
|
799
|
+
| 795
|
|
800
|
+
| 810
|
|
801
|
+
| 825
|
|
802
|
+
| 840
|
|
803
|
+
| 855
|
|
804
|
+
| 870
|
|
805
|
+
| 885
|
|
806
|
+
| 900
|
|
807
|
+
| 915
|
|
808
|
+
| 930
|
|
809
|
+
| 945
|
|
810
|
+
| 960
|
|
811
|
+
| 975
|
|
812
|
+
| 990
|
|
813
|
+
| 1005
|
|
814
|
+
| 1020
|
|
815
|
+
| 1035
|
|
816
|
+
| 1050
|
|
817
|
+
| 1065
|
|
818
|
+
| 1080
|
|
819
|
+
| 1095
|
|
820
|
+
| 1110
|
|
821
|
+
| 1125
|
|
822
|
+
| 1140
|
|
823
|
+
| 1155
|
|
824
|
+
| 1170
|
|
825
|
+
| 1185
|
|
826
|
+
| 1200
|
|
827
|
+
| 1215
|
|
828
|
+
| 1230
|
|
829
|
+
| 1245
|
|
830
|
+
| 1260
|
|
831
|
+
| 1275
|
|
832
|
+
| 1290
|
|
833
|
+
| 1305
|
|
834
|
+
| 1320
|
|
835
|
+
| 1335
|
|
836
|
+
| 1350
|
|
837
|
+
| 1365
|
|
838
|
+
| 1380
|
|
839
|
+
| 1395
|
|
840
|
+
| 1410
|
|
841
|
+
| 1425
|
|
842
|
+
| 1440
|
|
843
|
+
type HalfHoursInADay =
|
|
844
|
+
| 30
|
|
845
|
+
| 60
|
|
846
|
+
| 90
|
|
847
|
+
| 120
|
|
848
|
+
| 150
|
|
849
|
+
| 180
|
|
850
|
+
| 210
|
|
851
|
+
| 240
|
|
852
|
+
| 270
|
|
853
|
+
| 300
|
|
854
|
+
| 330
|
|
855
|
+
| 360
|
|
856
|
+
| 390
|
|
857
|
+
| 420
|
|
858
|
+
| 450
|
|
859
|
+
| 480
|
|
860
|
+
| 510
|
|
861
|
+
| 540
|
|
862
|
+
| 570
|
|
863
|
+
| 600
|
|
864
|
+
| 630
|
|
865
|
+
| 660
|
|
866
|
+
| 690
|
|
867
|
+
| 720
|
|
868
|
+
| 750
|
|
869
|
+
| 780
|
|
870
|
+
| 810
|
|
871
|
+
| 840
|
|
872
|
+
| 870
|
|
873
|
+
| 900
|
|
874
|
+
| 930
|
|
875
|
+
| 960
|
|
876
|
+
| 990
|
|
877
|
+
| 1020
|
|
878
|
+
| 1050
|
|
879
|
+
| 1080
|
|
880
|
+
| 1110
|
|
881
|
+
| 1140
|
|
882
|
+
| 1170
|
|
883
|
+
| 1200
|
|
884
|
+
| 1230
|
|
885
|
+
| 1260
|
|
886
|
+
| 1290
|
|
887
|
+
| 1320
|
|
888
|
+
| 1350
|
|
889
|
+
| 1380
|
|
890
|
+
| 1410
|
|
891
|
+
| 1440
|
|
892
|
+
type HoursInADay =
|
|
893
|
+
| 60
|
|
894
|
+
| 120
|
|
895
|
+
| 180
|
|
896
|
+
| 240
|
|
897
|
+
| 300
|
|
898
|
+
| 360
|
|
899
|
+
| 420
|
|
900
|
+
| 480
|
|
901
|
+
| 540
|
|
902
|
+
| 600
|
|
903
|
+
| 660
|
|
904
|
+
| 720
|
|
905
|
+
| 780
|
|
906
|
+
| 840
|
|
907
|
+
| 900
|
|
908
|
+
| 960
|
|
909
|
+
| 1020
|
|
910
|
+
| 1080
|
|
911
|
+
| 1140
|
|
912
|
+
| 1200
|
|
913
|
+
| 1260
|
|
914
|
+
| 1320
|
|
915
|
+
| 1380
|
|
916
|
+
| 1440
|
|
917
|
+
|
|
918
|
+
/** Whole days past the first, up to a week — a multiple of every
|
|
919
|
+
* `ScheduleSlotDuration`, so one list serves all three. */
|
|
920
|
+
type WholeDaysUpToAWeek = 2880 | 4320 | 5760 | 7200 | 8640 | 10080
|
|
921
|
+
|
|
922
|
+
/**
|
|
923
|
+
* A duration, in minutes, that is a whole number of `S`-minute slots: any
|
|
924
|
+
* multiple up to 24 hours, then whole days up to a week.
|
|
925
|
+
*
|
|
926
|
+
* `SlotMultiple<30>` accepts `30`, `60`, `90`… and rejects `45`. A value
|
|
927
|
+
* computed at runtime is a `number`, which this does not accept — narrow it,
|
|
928
|
+
* or let the runtime backstop (`resolveDurationBounds`) round it onto the grid.
|
|
929
|
+
*/
|
|
930
|
+
export type SlotMultiple<S extends ScheduleSlotDuration> =
|
|
931
|
+
| {
|
|
932
|
+
15: QuarterHoursInADay
|
|
933
|
+
30: HalfHoursInADay
|
|
934
|
+
60: HoursInADay
|
|
935
|
+
}[S]
|
|
936
|
+
| WholeDaysUpToAWeek
|
|
937
|
+
|
|
938
|
+
/** The duration props for one slot size — `S` ties all three together. */
|
|
939
|
+
type SlotPropsFor<S extends ScheduleSlotDuration> = {
|
|
940
|
+
/**
|
|
941
|
+
* Minutes — grid spacing AND the drag/resize/create snap increment:
|
|
942
|
+
* `15` (default), `30` or `60`.
|
|
943
|
+
*/
|
|
944
|
+
slotDuration?: S
|
|
945
|
+
/**
|
|
946
|
+
* Minutes — the shortest event a create or resize may produce. Defaults to
|
|
947
|
+
* one `slotDuration`, and can only be a whole number of them: with
|
|
948
|
+
* `slotDuration={30}`, `minDuration={45}` does not compile.
|
|
949
|
+
*
|
|
950
|
+
* A create drag shorter than this grows to it, from the edge the gesture
|
|
951
|
+
* anchored on; a resize grip stops this far from the other edge. Moving an
|
|
952
|
+
* event never changes its duration, so drag ignores it.
|
|
953
|
+
*/
|
|
954
|
+
minDuration?: SlotMultiple<S>
|
|
955
|
+
/**
|
|
956
|
+
* Minutes — the longest event a create or resize may produce. Absent, there
|
|
957
|
+
* is no ceiling. Like `minDuration`, a whole number of `slotDuration`s, so a
|
|
958
|
+
* capped edge always lands on a gridline.
|
|
959
|
+
*
|
|
960
|
+
* The draft visibly stops growing at the cap, from the edge the gesture
|
|
961
|
+
* anchored on; a right-drag caps each of its per-day events. Set below
|
|
962
|
+
* `minDuration`, it is raised to it. An event already longer than the cap
|
|
963
|
+
* can still be resized shorter, but never longer. Moving an event never
|
|
964
|
+
* changes its duration, so drag ignores it.
|
|
965
|
+
*/
|
|
966
|
+
maxDuration?: SlotMultiple<S>
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
/**
|
|
970
|
+
* `slotDuration` and the two durations measured in it — one member per slot
|
|
971
|
+
* size, so `minDuration`/`maxDuration` are checked against the `slotDuration`
|
|
972
|
+
* written beside them. The 15-minute member leaves `slotDuration` optional:
|
|
973
|
+
* omitting it means 15.
|
|
974
|
+
*
|
|
975
|
+
* Kept out of `ScheduleTimedProps` on purpose: that slice goes through
|
|
976
|
+
* `Omit`, and `Omit` over a union collapses it — `slotDuration` and
|
|
977
|
+
* `minDuration` would come out as two independent unions and the check
|
|
978
|
+
* between them would be gone. Compose this one alongside it instead.
|
|
979
|
+
*/
|
|
980
|
+
export type ScheduleSlotProps =
|
|
981
|
+
| SlotPropsFor<15>
|
|
982
|
+
| (SlotPropsFor<30> & { slotDuration: 30 })
|
|
983
|
+
| (SlotPropsFor<60> & { slotDuration: 60 })
|
|
984
|
+
|
|
985
|
+
/** `ScheduleSlotProps` widened back to plain numbers — what an implementation
|
|
986
|
+
* destructures and threads down, after the public signature has checked it. */
|
|
987
|
+
export type ScheduleSlotValues = {
|
|
988
|
+
slotDuration?: ScheduleSlotDuration
|
|
989
|
+
minDuration?: number
|
|
990
|
+
maxDuration?: number
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
/**
|
|
994
|
+
* Days only — structurally absent from the Month/Year/Agenda props, enforcing
|
|
995
|
+
* the "no drag/resize outside a timed grid" rule at the type level rather
|
|
996
|
+
* than with a runtime flag.
|
|
997
|
+
*
|
|
998
|
+
* By far the largest slice, and the reason `ScheduleProps` needs gating at
|
|
999
|
+
* all: on `Root` these are reachable under any `views`, so before
|
|
1000
|
+
* `available-if.ts` every one of them typechecked against a month-and-year
|
|
1001
|
+
* schedule and then did nothing.
|
|
1002
|
+
*/
|
|
1003
|
+
export type ScheduleTimedProps<P = unknown> = {
|
|
1004
|
+
/** Default `0`. */
|
|
1005
|
+
startHour?: number
|
|
1006
|
+
/** Default `24`. */
|
|
1007
|
+
endHour?: number
|
|
1008
|
+
/** What a resize grip does once it reaches the event's **own** other edge —
|
|
1009
|
+
* `"none"` (default) stops it, `"push"` carries that edge along, `"swap"`
|
|
1010
|
+
* exchanges the two. See `ScheduleCollision`.
|
|
1011
|
+
*
|
|
1012
|
+
* Replaces the former `collision`, which sat one word away from
|
|
1013
|
+
* `preventOverlap` and read as a synonym for it. The two are unrelated:
|
|
1014
|
+
* this is one event's two edges, that is two different events. */
|
|
1015
|
+
resizeCollision?: ScheduleCollision
|
|
1016
|
+
/**
|
|
1017
|
+
* Row density — px per hour, as a **minimum**: the timed area stretches
|
|
1018
|
+
* via CSS to fill whatever real vertical space its container gives it,
|
|
1019
|
+
* scrolling only once this floor itself exceeds that space (**correction
|
|
1020
|
+
* after v1 shipped** — this used to be a fixed height, not a floor).
|
|
1021
|
+
* Absent: defaults to `defaultHourHeight(slotDuration)`
|
|
1022
|
+
* (`schedule-geometry.ts`), which scales with `slotDuration` so a finer
|
|
1023
|
+
* slot spacing gets a taller default hour — a coarser one, a shorter one,
|
|
1024
|
+
* floored so it stays legible. An explicit value here
|
|
1025
|
+
* always overrides that default.
|
|
1026
|
+
*/
|
|
1027
|
+
hourHeight?: number
|
|
1028
|
+
slotDisabled?: ScheduleSlotPredicate
|
|
1029
|
+
/** Default `true`. */
|
|
1030
|
+
withNowIndicator?: boolean
|
|
1031
|
+
/**
|
|
1032
|
+
* Which gestures are possible at all — `editable` (below) is the sole
|
|
1033
|
+
* authority on that; this fires once a permitted gesture actually
|
|
1034
|
+
* commits. Default `undefined`/no `"drag"` in `editable` means this never
|
|
1035
|
+
* fires — a schedule with no `editable` grant has nothing to report.
|
|
1036
|
+
*/
|
|
1037
|
+
onEventChange?: ScheduleEventChangeHandler<P>
|
|
1038
|
+
/** Fires when a permitted remove (`editable` including `"remove"`) actually
|
|
1039
|
+
* happens. Whether the remove button renders is decided by `editable`
|
|
1040
|
+
* alone, not by this prop's presence. */
|
|
1041
|
+
onEventRemove?: ScheduleEventRemoveHandler<P>
|
|
1042
|
+
/**
|
|
1043
|
+
* Fires when a permitted click-drag-to-create (`editable` including
|
|
1044
|
+
* `"create"`) actually commits, with **every range the gesture created**:
|
|
1045
|
+
*
|
|
1046
|
+
* - **left drag** — one range, spanning the two points on the absolute
|
|
1047
|
+
* timeline (Sunday 22:00 → Monday 02:00 is one four-hour event);
|
|
1048
|
+
* - **right drag** — one range per day between the two points, each over
|
|
1049
|
+
* the same time of day (Day 1 08:00 → Day 3 16:00 is three 08:00–16:00
|
|
1050
|
+
* events). Days `slotDisabled` or `preventOverlap` would reject are
|
|
1051
|
+
* skipped; the gesture only fails when every day is rejected.
|
|
1052
|
+
*
|
|
1053
|
+
* Whether the gesture is possible at all is decided by `editable` alone,
|
|
1054
|
+
* not by this prop's presence. Schedule never invents an `id`/`title`; the
|
|
1055
|
+
* consumer builds the full events and adds them to `data` themselves, same
|
|
1056
|
+
* "fully consumer-controlled" contract as `onEventChange`/`onEventRemove`.
|
|
1057
|
+
* A plain click (no discernible drag) is a no-op; a drag shorter than
|
|
1058
|
+
* `minDuration` (one `slotDuration` by default) grows to it, mirroring the
|
|
1059
|
+
* resize floor.
|
|
1060
|
+
*
|
|
1061
|
+
* @example
|
|
1062
|
+
* onEventCreate={(ranges) =>
|
|
1063
|
+
* setEvents((events) => [...events, ...ranges.map((range) => ({ id: uid(), title: "New", ...range }))])
|
|
1064
|
+
* }
|
|
1065
|
+
*/
|
|
1066
|
+
onEventCreate?: ScheduleEventCreateHandler
|
|
1067
|
+
/**
|
|
1068
|
+
* Fires on a plain click (no discernible drag) that lands on empty
|
|
1069
|
+
* day-column space — not on an event/overflow chip, and never alongside a
|
|
1070
|
+
* committed create-drag (the same click-vs-drag resolution that decides
|
|
1071
|
+
* `onEventCreate` decides this too, mutually exclusively). Independent of
|
|
1072
|
+
* `editable`'s `"create"` grant. Days view only, like `onEventCreate`.
|
|
1073
|
+
*
|
|
1074
|
+
* Formerly `onEventDismiss`, which took no argument and existed solely to be
|
|
1075
|
+
* the clear-half of a selection the consumer hand-rolled — a job `onSelect`
|
|
1076
|
+
* now does, with the same gesture, so keeping both would have shipped two
|
|
1077
|
+
* props firing on one click for one reason. What survives under this name is
|
|
1078
|
+
* the part `selected` genuinely does not cover: the raw gesture, which fires
|
|
1079
|
+
* whether or not anything was selected, and which can now report *when* on
|
|
1080
|
+
* the grid you clicked. Both fire on the same click; they are no longer
|
|
1081
|
+
* synonyms.
|
|
1082
|
+
*/
|
|
1083
|
+
onGridClick?: (date: Date) => void
|
|
1084
|
+
/**
|
|
1085
|
+
* Which gestures are possible on this schedule — `undefined` (the
|
|
1086
|
+
* default) means **nothing is editable**: no drag, no resize, no create,
|
|
1087
|
+
* no remove, regardless of which callbacks below are passed. `true` grants
|
|
1088
|
+
* all four; an array opts a subset in. A `kind:"event"` item can further
|
|
1089
|
+
* narrow (never widen) this via its own `editable` field — see
|
|
1090
|
+
* `ScheduleEvent`. In development, a console warning fires once if a
|
|
1091
|
+
* granted gesture's matching callback (`onEventChange` for `"drag"`/
|
|
1092
|
+
* `"resize"`, `onEventRemove` for `"remove"`, `onEventCreate` for
|
|
1093
|
+
* `"create"`) is missing, since the affordance would render but do
|
|
1094
|
+
* nothing when used. On `Schedule`/`Schedule.Root` specifically, passing a
|
|
1095
|
+
* literal (or otherwise call-site-resolvable) `editable` also makes this a
|
|
1096
|
+
* **compile error**, not just a console warning — see `EditableCallbacks`.
|
|
1097
|
+
* A non-literal `editable` (a plain `boolean`/`ScheduleEditGesture[]`
|
|
1098
|
+
* variable) can't be resolved to specific gestures at compile time, so it
|
|
1099
|
+
* conservatively requires every callback instead — the console warning
|
|
1100
|
+
* above remains the only check for that case, and for the standalone
|
|
1101
|
+
* `DaysView`/`DayView`/`WeekView`, which don't get the compile-time layer
|
|
1102
|
+
* at all (see `EditableCallbacks`'s own doc comment for why).
|
|
1103
|
+
*/
|
|
1104
|
+
editable?: boolean | readonly ScheduleEditGesture[]
|
|
1105
|
+
/**
|
|
1106
|
+
* Overlap-prevention — keeps a created, dragged, or resized event from
|
|
1107
|
+
* landing on another one. Deliberately separate from `slotDisabled` (RFC
|
|
1108
|
+
* §12's own "occupied and disabled are two different, non-conflated
|
|
1109
|
+
* concepts" principle applies here too). Default (`undefined`/`false`)
|
|
1110
|
+
* reproduces today's v1 behavior everywhere — overlapping data still lays
|
|
1111
|
+
* out side-by-side via `layoutEventColumns`, unaffected until you opt in.
|
|
1112
|
+
*
|
|
1113
|
+
* A plain `boolean` covers the common case (`true` enforces it for
|
|
1114
|
+
* create, drag, *and* resize, against both event kinds). Pass
|
|
1115
|
+
* `ScheduleOverlapPreventionOptions` instead to scope which gestures
|
|
1116
|
+
* enforce it (`gestures`, default `true`) and/or which event kind(s) count
|
|
1117
|
+
* as a blocker (`against`, default `"both"`) — see
|
|
1118
|
+
* `resolveOverlapPrevention` for the exact resolution table.
|
|
1119
|
+
*/
|
|
1120
|
+
preventOverlap?: boolean | ScheduleOverlapPreventionOptions
|
|
1121
|
+
/**
|
|
1122
|
+
* Cap on side-by-side columns before further concurrent events collapse
|
|
1123
|
+
* into a "+N" overflow indicator. Applies to real point-in-time
|
|
1124
|
+
* concurrency, not a cluster's historical max, so a brief spike doesn't
|
|
1125
|
+
* flatten the cluster's otherwise-uncrowded events into overflow. Default
|
|
1126
|
+
* `4`. Pass `Number.POSITIVE_INFINITY` to restore unbounded columns.
|
|
1127
|
+
*/
|
|
1128
|
+
maxOverlapColumns?: number
|
|
1129
|
+
/**
|
|
1130
|
+
* Cap on visible concurrent all-day lanes before excess all-day events
|
|
1131
|
+
* collapse into a per-day "+N" overflow indicator — same
|
|
1132
|
+
* cap-then-overflow shape as `maxOverlapColumns`, just packed by day-index
|
|
1133
|
+
* (which day columns a bar spans) instead of by time. Default `2`, lower
|
|
1134
|
+
* than `maxOverlapColumns`'s `4` since a day-column is narrow. Ignored
|
|
1135
|
+
* when no all-day events are in view — the row itself doesn't render then.
|
|
1136
|
+
*/
|
|
1137
|
+
maxAllDayRows?: number
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
export type AnchorDateProps = {
|
|
1141
|
+
date?: Date
|
|
1142
|
+
defaultDate?: Date
|
|
1143
|
+
onDateChange?: (date: Date) => void
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
export type PaginationChromeProps = {
|
|
1147
|
+
withPagination?: boolean
|
|
1148
|
+
withNowButton?: boolean
|
|
1149
|
+
}
|