@42-central/ui-react 0.0.0 → 0.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +315 -2
- package/dist/chunk-2762HZYX.js +284 -0
- package/dist/chunk-2762HZYX.js.map +1 -0
- package/dist/chunk-2GILNBZW.js +31 -0
- package/dist/chunk-2GILNBZW.js.map +1 -0
- package/dist/chunk-2H46IXW4.js +264 -0
- package/dist/chunk-2H46IXW4.js.map +1 -0
- package/dist/chunk-2SVX3MQQ.js +78 -0
- package/dist/chunk-2SVX3MQQ.js.map +1 -0
- package/dist/chunk-3GYOIQW7.js +242 -0
- package/dist/chunk-3GYOIQW7.js.map +1 -0
- package/dist/chunk-3NZXWCGF.js +152 -0
- package/dist/chunk-3NZXWCGF.js.map +1 -0
- package/dist/chunk-44OV3PNH.js +294 -0
- package/dist/chunk-44OV3PNH.js.map +1 -0
- package/dist/chunk-5FDOOG4J.js +15 -0
- package/dist/chunk-5FDOOG4J.js.map +1 -0
- package/dist/chunk-6I4R3HR6.js +90 -0
- package/dist/chunk-6I4R3HR6.js.map +1 -0
- package/dist/chunk-6SWK4XG5.js +128 -0
- package/dist/chunk-6SWK4XG5.js.map +1 -0
- package/dist/chunk-7NZSTCJO.js +82 -0
- package/dist/chunk-7NZSTCJO.js.map +1 -0
- package/dist/chunk-7P32XCEU.js +15 -0
- package/dist/chunk-7P32XCEU.js.map +1 -0
- package/dist/chunk-AIQG7IIT.js +39 -0
- package/dist/chunk-AIQG7IIT.js.map +1 -0
- package/dist/chunk-B2LCHXUB.js +26 -0
- package/dist/chunk-B2LCHXUB.js.map +1 -0
- package/dist/chunk-BEL75C7N.js +35 -0
- package/dist/chunk-BEL75C7N.js.map +1 -0
- package/dist/chunk-BJZLQTAZ.js +3 -0
- package/dist/chunk-BJZLQTAZ.js.map +1 -0
- package/dist/chunk-BUIHQJGE.js +8 -0
- package/dist/chunk-BUIHQJGE.js.map +1 -0
- package/dist/chunk-CHTN5AHI.js +106 -0
- package/dist/chunk-CHTN5AHI.js.map +1 -0
- package/dist/chunk-CSCVTESP.js +58 -0
- package/dist/chunk-CSCVTESP.js.map +1 -0
- package/dist/chunk-EEMRRRYS.js +60 -0
- package/dist/chunk-EEMRRRYS.js.map +1 -0
- package/dist/chunk-EVVMHTCL.js +216 -0
- package/dist/chunk-EVVMHTCL.js.map +1 -0
- package/dist/chunk-FD6P6PLQ.js +153 -0
- package/dist/chunk-FD6P6PLQ.js.map +1 -0
- package/dist/chunk-FMMKEYHB.js +3 -0
- package/dist/chunk-FMMKEYHB.js.map +1 -0
- package/dist/chunk-FUWSTUDM.js +219 -0
- package/dist/chunk-FUWSTUDM.js.map +1 -0
- package/dist/chunk-G52U24GR.js +10 -0
- package/dist/chunk-G52U24GR.js.map +1 -0
- package/dist/chunk-GTKKRV5N.js +14 -0
- package/dist/chunk-GTKKRV5N.js.map +1 -0
- package/dist/chunk-HWNPXAEN.js +31 -0
- package/dist/chunk-HWNPXAEN.js.map +1 -0
- package/dist/chunk-IFWCCAQV.js +222 -0
- package/dist/chunk-IFWCCAQV.js.map +1 -0
- package/dist/chunk-IG7FBZVM.js +101 -0
- package/dist/chunk-IG7FBZVM.js.map +1 -0
- package/dist/chunk-IHYFYMHJ.js +167 -0
- package/dist/chunk-IHYFYMHJ.js.map +1 -0
- package/dist/chunk-IRXZHLUL.js +51 -0
- package/dist/chunk-IRXZHLUL.js.map +1 -0
- package/dist/chunk-IXKELBJA.js +202 -0
- package/dist/chunk-IXKELBJA.js.map +1 -0
- package/dist/chunk-J3PELDH3.js +279 -0
- package/dist/chunk-J3PELDH3.js.map +1 -0
- package/dist/chunk-JBVFWSRQ.js +21 -0
- package/dist/chunk-JBVFWSRQ.js.map +1 -0
- package/dist/chunk-MOI7B3KH.js +217 -0
- package/dist/chunk-MOI7B3KH.js.map +1 -0
- package/dist/chunk-NF5JM2YO.js +57 -0
- package/dist/chunk-NF5JM2YO.js.map +1 -0
- package/dist/chunk-NGAQITWP.js +156 -0
- package/dist/chunk-NGAQITWP.js.map +1 -0
- package/dist/chunk-NSDM3FEB.js +82 -0
- package/dist/chunk-NSDM3FEB.js.map +1 -0
- package/dist/chunk-NSOA3GMZ.js +376 -0
- package/dist/chunk-NSOA3GMZ.js.map +1 -0
- package/dist/chunk-ORTCK34Y.js +3 -0
- package/dist/chunk-ORTCK34Y.js.map +1 -0
- package/dist/chunk-P3XMBETI.js +26 -0
- package/dist/chunk-P3XMBETI.js.map +1 -0
- package/dist/chunk-P7A3BCAC.js +93 -0
- package/dist/chunk-P7A3BCAC.js.map +1 -0
- package/dist/chunk-POKDSVQT.js +223 -0
- package/dist/chunk-POKDSVQT.js.map +1 -0
- package/dist/chunk-QMW7D5GU.js +207 -0
- package/dist/chunk-QMW7D5GU.js.map +1 -0
- package/dist/chunk-QP4I37PA.js +14 -0
- package/dist/chunk-QP4I37PA.js.map +1 -0
- package/dist/chunk-R5GMMWAY.js +3 -0
- package/dist/chunk-R5GMMWAY.js.map +1 -0
- package/dist/chunk-S53FHWNG.js +30 -0
- package/dist/chunk-S53FHWNG.js.map +1 -0
- package/dist/chunk-SIG4DMNZ.js +238 -0
- package/dist/chunk-SIG4DMNZ.js.map +1 -0
- package/dist/chunk-SKPM2FRX.js +44 -0
- package/dist/chunk-SKPM2FRX.js.map +1 -0
- package/dist/chunk-TCWYBVIL.js +33 -0
- package/dist/chunk-TCWYBVIL.js.map +1 -0
- package/dist/chunk-TNNH3FVQ.js +155 -0
- package/dist/chunk-TNNH3FVQ.js.map +1 -0
- package/dist/chunk-TWGCWKRV.js +44 -0
- package/dist/chunk-TWGCWKRV.js.map +1 -0
- package/dist/chunk-U5GW5EBR.js +150 -0
- package/dist/chunk-U5GW5EBR.js.map +1 -0
- package/dist/chunk-UNSAA7YG.js +148 -0
- package/dist/chunk-UNSAA7YG.js.map +1 -0
- package/dist/chunk-UVYTJQTJ.js +14 -0
- package/dist/chunk-UVYTJQTJ.js.map +1 -0
- package/dist/chunk-VLUKI3HL.js +120 -0
- package/dist/chunk-VLUKI3HL.js.map +1 -0
- package/dist/chunk-VZ2TPU4B.js +348 -0
- package/dist/chunk-VZ2TPU4B.js.map +1 -0
- package/dist/chunk-VZH6TS7M.js +153 -0
- package/dist/chunk-VZH6TS7M.js.map +1 -0
- package/dist/chunk-WYCMIIRR.js +12 -0
- package/dist/chunk-WYCMIIRR.js.map +1 -0
- package/dist/chunk-WZB6LPQI.js +47 -0
- package/dist/chunk-WZB6LPQI.js.map +1 -0
- package/dist/chunk-YBJB7FGE.js +187 -0
- package/dist/chunk-YBJB7FGE.js.map +1 -0
- package/dist/chunk-YIQI2CF3.js +92 -0
- package/dist/chunk-YIQI2CF3.js.map +1 -0
- package/dist/chunk-YKUCSV34.js +72 -0
- package/dist/chunk-YKUCSV34.js.map +1 -0
- package/dist/chunk-YON5Y336.js +639 -0
- package/dist/chunk-YON5Y336.js.map +1 -0
- package/dist/chunk-ZP6EBROY.js +3 -0
- package/dist/chunk-ZP6EBROY.js.map +1 -0
- package/dist/colors.css +296 -0
- package/dist/components/accordion/accordion-data.d.ts +52 -0
- package/dist/components/accordion/accordion-data.d.ts.map +1 -0
- package/dist/components/accordion/accordion.d.ts +116 -0
- package/dist/components/accordion/accordion.d.ts.map +1 -0
- package/dist/components/accordion/index.d.ts +3 -0
- package/dist/components/accordion/index.d.ts.map +1 -0
- package/dist/components/accordion/index.js +206 -0
- package/dist/components/accordion/index.js.map +1 -0
- package/dist/components/action-icon/action-icon.d.ts +51 -0
- package/dist/components/action-icon/action-icon.d.ts.map +1 -0
- package/dist/components/action-icon/index.d.ts +2 -0
- package/dist/components/action-icon/index.d.ts.map +1 -0
- package/dist/components/action-icon/index.js +8 -0
- package/dist/components/action-icon/index.js.map +1 -0
- package/dist/components/alert/alert.d.ts +90 -0
- package/dist/components/alert/alert.d.ts.map +1 -0
- package/dist/components/alert/index.d.ts +2 -0
- package/dist/components/alert/index.d.ts.map +1 -0
- package/dist/components/alert/index.js +74 -0
- package/dist/components/alert/index.js.map +1 -0
- package/dist/components/ambient-background/ambient-background.d.ts +47 -0
- package/dist/components/ambient-background/ambient-background.d.ts.map +1 -0
- package/dist/components/ambient-background/index.d.ts +2 -0
- package/dist/components/ambient-background/index.d.ts.map +1 -0
- package/dist/components/ambient-background/index.js +35 -0
- package/dist/components/ambient-background/index.js.map +1 -0
- package/dist/components/app-shell/app-shell.d.ts +185 -0
- package/dist/components/app-shell/app-shell.d.ts.map +1 -0
- package/dist/components/app-shell/index.d.ts +2 -0
- package/dist/components/app-shell/index.d.ts.map +1 -0
- package/dist/components/app-shell/index.js +243 -0
- package/dist/components/app-shell/index.js.map +1 -0
- package/dist/components/autocomplete/autocomplete.d.ts +70 -0
- package/dist/components/autocomplete/autocomplete.d.ts.map +1 -0
- package/dist/components/autocomplete/index.d.ts +3 -0
- package/dist/components/autocomplete/index.d.ts.map +1 -0
- package/dist/components/autocomplete/index.js +149 -0
- package/dist/components/autocomplete/index.js.map +1 -0
- package/dist/components/avatar/avatar.d.ts +105 -0
- package/dist/components/avatar/avatar.d.ts.map +1 -0
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/avatar/index.d.ts.map +1 -0
- package/dist/components/avatar/index.js +211 -0
- package/dist/components/avatar/index.js.map +1 -0
- package/dist/components/badge/badge.d.ts +48 -0
- package/dist/components/badge/badge.d.ts.map +1 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/badge/index.d.ts.map +1 -0
- package/dist/components/badge/index.js +102 -0
- package/dist/components/badge/index.js.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +64 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -0
- package/dist/components/breadcrumb/index.d.ts +2 -0
- package/dist/components/breadcrumb/index.d.ts.map +1 -0
- package/dist/components/breadcrumb/index.js +203 -0
- package/dist/components/breadcrumb/index.js.map +1 -0
- package/dist/components/button/button.d.ts +72 -0
- package/dist/components/button/button.d.ts.map +1 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/button/index.js +9 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/button-group/button-group.d.ts +49 -0
- package/dist/components/button-group/button-group.d.ts.map +1 -0
- package/dist/components/button-group/index.d.ts +2 -0
- package/dist/components/button-group/index.d.ts.map +1 -0
- package/dist/components/button-group/index.js +5 -0
- package/dist/components/button-group/index.js.map +1 -0
- package/dist/components/button-multi-select/button-multi-select.d.ts +39 -0
- package/dist/components/button-multi-select/button-multi-select.d.ts.map +1 -0
- package/dist/components/button-multi-select/index.d.ts +5 -0
- package/dist/components/button-multi-select/index.d.ts.map +1 -0
- package/dist/components/button-multi-select/index.js +45 -0
- package/dist/components/button-multi-select/index.js.map +1 -0
- package/dist/components/button-select/button-select-control.d.ts +56 -0
- package/dist/components/button-select/button-select-control.d.ts.map +1 -0
- package/dist/components/button-select/button-select-data.d.ts +53 -0
- package/dist/components/button-select/button-select-data.d.ts.map +1 -0
- package/dist/components/button-select/button-select-items.d.ts +72 -0
- package/dist/components/button-select/button-select-items.d.ts.map +1 -0
- package/dist/components/button-select/button-select.d.ts +98 -0
- package/dist/components/button-select/button-select.d.ts.map +1 -0
- package/dist/components/button-select/index.d.ts +5 -0
- package/dist/components/button-select/index.d.ts.map +1 -0
- package/dist/components/button-select/index.js +45 -0
- package/dist/components/button-select/index.js.map +1 -0
- package/dist/components/calendar/calendar-body.d.ts +48 -0
- package/dist/components/calendar/calendar-body.d.ts.map +1 -0
- package/dist/components/calendar/calendar.d.ts +88 -0
- package/dist/components/calendar/calendar.d.ts.map +1 -0
- package/dist/components/calendar/index.d.ts +4 -0
- package/dist/components/calendar/index.d.ts.map +1 -0
- package/dist/components/calendar/index.js +11 -0
- package/dist/components/calendar/index.js.map +1 -0
- package/dist/components/card/card.d.ts +69 -0
- package/dist/components/card/card.d.ts.map +1 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/card/index.d.ts.map +1 -0
- package/dist/components/card/index.js +6 -0
- package/dist/components/card/index.js.map +1 -0
- package/dist/components/chart/chart.d.ts +103 -0
- package/dist/components/chart/chart.d.ts.map +1 -0
- package/dist/components/chart/index.d.ts +2 -0
- package/dist/components/chart/index.d.ts.map +1 -0
- package/dist/components/chart/index.js +70 -0
- package/dist/components/chart/index.js.map +1 -0
- package/dist/components/chart/styles.css +50 -0
- package/dist/components/checkbox/checkbox.d.ts +74 -0
- package/dist/components/checkbox/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox/control.d.ts +28 -0
- package/dist/components/checkbox/control.d.ts.map +1 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/checkbox/index.js +10 -0
- package/dist/components/checkbox/index.js.map +1 -0
- package/dist/components/choice-card-group/choice-card-group.d.ts +148 -0
- package/dist/components/choice-card-group/choice-card-group.d.ts.map +1 -0
- package/dist/components/choice-card-group/index.d.ts +2 -0
- package/dist/components/choice-card-group/index.d.ts.map +1 -0
- package/dist/components/choice-card-group/index.js +280 -0
- package/dist/components/choice-card-group/index.js.map +1 -0
- package/dist/components/circular-progress/circular-progress.d.ts +49 -0
- package/dist/components/circular-progress/circular-progress.d.ts.map +1 -0
- package/dist/components/circular-progress/index.d.ts +2 -0
- package/dist/components/circular-progress/index.d.ts.map +1 -0
- package/dist/components/circular-progress/index.js +133 -0
- package/dist/components/circular-progress/index.js.map +1 -0
- package/dist/components/clipboard/clipboard.d.ts +95 -0
- package/dist/components/clipboard/clipboard.d.ts.map +1 -0
- package/dist/components/clipboard/copy.d.ts +67 -0
- package/dist/components/clipboard/copy.d.ts.map +1 -0
- package/dist/components/clipboard/index.d.ts +3 -0
- package/dist/components/clipboard/index.d.ts.map +1 -0
- package/dist/components/clipboard/index.js +86 -0
- package/dist/components/clipboard/index.js.map +1 -0
- package/dist/components/code/code.d.ts +37 -0
- package/dist/components/code/code.d.ts.map +1 -0
- package/dist/components/code/index.d.ts +2 -0
- package/dist/components/code/index.d.ts.map +1 -0
- package/dist/components/code/index.js +28 -0
- package/dist/components/code/index.js.map +1 -0
- package/dist/components/code-block/chrome.d.ts +77 -0
- package/dist/components/code-block/chrome.d.ts.map +1 -0
- package/dist/components/code-block/chrome.js +15 -0
- package/dist/components/code-block/chrome.js.map +1 -0
- package/dist/components/code-block/code-block.d.ts +99 -0
- package/dist/components/code-block/code-block.d.ts.map +1 -0
- package/dist/components/code-block/diff.d.ts +79 -0
- package/dist/components/code-block/diff.d.ts.map +1 -0
- package/dist/components/code-block/diff.js +23 -0
- package/dist/components/code-block/diff.js.map +1 -0
- package/dist/components/code-block/gutters.d.ts +100 -0
- package/dist/components/code-block/gutters.d.ts.map +1 -0
- package/dist/components/code-block/highlighter.d.ts +84 -0
- package/dist/components/code-block/highlighter.d.ts.map +1 -0
- package/dist/components/code-block/index.d.ts +23 -0
- package/dist/components/code-block/index.d.ts.map +1 -0
- package/dist/components/code-block/index.js +463 -0
- package/dist/components/code-block/index.js.map +1 -0
- package/dist/components/code-block/notation.d.ts +126 -0
- package/dist/components/code-block/notation.d.ts.map +1 -0
- package/dist/components/code-block/presets.d.ts +23 -0
- package/dist/components/code-block/presets.d.ts.map +1 -0
- package/dist/components/code-block/static.d.ts +65 -0
- package/dist/components/code-block/static.d.ts.map +1 -0
- package/dist/components/code-block/static.js +380 -0
- package/dist/components/code-block/static.js.map +1 -0
- package/dist/components/code-block/styles.css +198 -0
- package/dist/components/collapse/collapse.d.ts +50 -0
- package/dist/components/collapse/collapse.d.ts.map +1 -0
- package/dist/components/collapse/index.d.ts +2 -0
- package/dist/components/collapse/index.d.ts.map +1 -0
- package/dist/components/collapse/index.js +5 -0
- package/dist/components/collapse/index.js.map +1 -0
- package/dist/components/combobox/combobox.d.ts +78 -0
- package/dist/components/combobox/combobox.d.ts.map +1 -0
- package/dist/components/combobox/index.d.ts +3 -0
- package/dist/components/combobox/index.d.ts.map +1 -0
- package/dist/components/combobox/index.js +15 -0
- package/dist/components/combobox/index.js.map +1 -0
- package/dist/components/combobox-list/combobox-list.d.ts +77 -0
- package/dist/components/combobox-list/combobox-list.d.ts.map +1 -0
- package/dist/components/combobox-list/index.d.ts +2 -0
- package/dist/components/combobox-list/index.d.ts.map +1 -0
- package/dist/components/combobox-list/index.js +16 -0
- package/dist/components/combobox-list/index.js.map +1 -0
- package/dist/components/container/container.d.ts +18 -0
- package/dist/components/container/container.d.ts.map +1 -0
- package/dist/components/container/index.d.ts +2 -0
- package/dist/components/container/index.d.ts.map +1 -0
- package/dist/components/container/index.js +40 -0
- package/dist/components/container/index.js.map +1 -0
- package/dist/components/data-table/data-table-features.d.ts +80 -0
- package/dist/components/data-table/data-table-features.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-date-filter.d.ts +53 -0
- package/dist/components/data-table/data-table-filter/data-table-date-filter.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-filter-fns.d.ts +18 -0
- package/dist/components/data-table/data-table-filter/data-table-filter-fns.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-number-filter.d.ts +7 -0
- package/dist/components/data-table/data-table-filter/data-table-number-filter.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-select-filter.d.ts +15 -0
- package/dist/components/data-table/data-table-filter/data-table-select-filter.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-text-filter.d.ts +7 -0
- package/dist/components/data-table/data-table-filter/data-table-text-filter.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/index.d.ts +15 -0
- package/dist/components/data-table/data-table-filter/index.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/utils.d.ts +52 -0
- package/dist/components/data-table/data-table-filter/utils.d.ts.map +1 -0
- package/dist/components/data-table/data-table-header-cell.d.ts +65 -0
- package/dist/components/data-table/data-table-header-cell.d.ts.map +1 -0
- package/dist/components/data-table/data-table-meta.d.ts +103 -0
- package/dist/components/data-table/data-table-meta.d.ts.map +1 -0
- package/dist/components/data-table/data-table-pagination.d.ts +56 -0
- package/dist/components/data-table/data-table-pagination.d.ts.map +1 -0
- package/dist/components/data-table/data-table-placeholder.d.ts +18 -0
- package/dist/components/data-table/data-table-placeholder.d.ts.map +1 -0
- package/dist/components/data-table/data-table-schema.d.ts +45 -0
- package/dist/components/data-table/data-table-schema.d.ts.map +1 -0
- package/dist/components/data-table/data-table-skeleton.d.ts +10 -0
- package/dist/components/data-table/data-table-skeleton.d.ts.map +1 -0
- package/dist/components/data-table/data-table-stack.d.ts +48 -0
- package/dist/components/data-table/data-table-stack.d.ts.map +1 -0
- package/dist/components/data-table/data-table-state.d.ts +10 -0
- package/dist/components/data-table/data-table-state.d.ts.map +1 -0
- package/dist/components/data-table/data-table-toolbar.d.ts +21 -0
- package/dist/components/data-table/data-table-toolbar.d.ts.map +1 -0
- package/dist/components/data-table/data-table.d.ts +194 -0
- package/dist/components/data-table/data-table.d.ts.map +1 -0
- package/dist/components/data-table/index.d.ts +14 -0
- package/dist/components/data-table/index.d.ts.map +1 -0
- package/dist/components/data-table/index.js +1603 -0
- package/dist/components/data-table/index.js.map +1 -0
- package/dist/components/date-picker/aliases.d.ts +11 -0
- package/dist/components/date-picker/aliases.d.ts.map +1 -0
- package/dist/components/date-picker/date-picker.d.ts +204 -0
- package/dist/components/date-picker/date-picker.d.ts.map +1 -0
- package/dist/components/date-picker/date-time-text.d.ts +32 -0
- package/dist/components/date-picker/date-time-text.d.ts.map +1 -0
- package/dist/components/date-picker/index.d.ts +7 -0
- package/dist/components/date-picker/index.d.ts.map +1 -0
- package/dist/components/date-picker/index.js +48 -0
- package/dist/components/date-picker/index.js.map +1 -0
- package/dist/components/divider/divider.d.ts +79 -0
- package/dist/components/divider/divider.d.ts.map +1 -0
- package/dist/components/divider/index.d.ts +2 -0
- package/dist/components/divider/index.d.ts.map +1 -0
- package/dist/components/divider/index.js +5 -0
- package/dist/components/divider/index.js.map +1 -0
- package/dist/components/drawer/drawer.d.ts +103 -0
- package/dist/components/drawer/drawer.d.ts.map +1 -0
- package/dist/components/drawer/index.d.ts +2 -0
- package/dist/components/drawer/index.d.ts.map +1 -0
- package/dist/components/drawer/index.js +13 -0
- package/dist/components/drawer/index.js.map +1 -0
- package/dist/components/field/field.d.ts +79 -0
- package/dist/components/field/field.d.ts.map +1 -0
- package/dist/components/field/index.d.ts +2 -0
- package/dist/components/field/index.d.ts.map +1 -0
- package/dist/components/field/index.js +6 -0
- package/dist/components/field/index.js.map +1 -0
- package/dist/components/file-upload/file-upload.d.ts +68 -0
- package/dist/components/file-upload/file-upload.d.ts.map +1 -0
- package/dist/components/file-upload/index.d.ts +2 -0
- package/dist/components/file-upload/index.d.ts.map +1 -0
- package/dist/components/file-upload/index.js +189 -0
- package/dist/components/file-upload/index.js.map +1 -0
- package/dist/components/flex/flex.d.ts +25 -0
- package/dist/components/flex/flex.d.ts.map +1 -0
- package/dist/components/flex/index.d.ts +2 -0
- package/dist/components/flex/index.d.ts.map +1 -0
- package/dist/components/flex/index.js +5 -0
- package/dist/components/flex/index.js.map +1 -0
- package/dist/components/grid/grid.d.ts +21 -0
- package/dist/components/grid/grid.d.ts.map +1 -0
- package/dist/components/grid/index.d.ts +2 -0
- package/dist/components/grid/index.d.ts.map +1 -0
- package/dist/components/grid/index.js +44 -0
- package/dist/components/grid/index.js.map +1 -0
- package/dist/components/hover-card/hover-card.d.ts +122 -0
- package/dist/components/hover-card/hover-card.d.ts.map +1 -0
- package/dist/components/hover-card/index.d.ts +2 -0
- package/dist/components/hover-card/index.d.ts.map +1 -0
- package/dist/components/hover-card/index.js +157 -0
- package/dist/components/hover-card/index.js.map +1 -0
- package/dist/components/indicator/index.d.ts +2 -0
- package/dist/components/indicator/index.d.ts.map +1 -0
- package/dist/components/indicator/index.js +152 -0
- package/dist/components/indicator/index.js.map +1 -0
- package/dist/components/indicator/indicator.d.ts +69 -0
- package/dist/components/indicator/indicator.d.ts.map +1 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/input/index.js +7 -0
- package/dist/components/input/index.js.map +1 -0
- package/dist/components/input/input.d.ts +116 -0
- package/dist/components/input/input.d.ts.map +1 -0
- package/dist/components/kbd/index.d.ts +2 -0
- package/dist/components/kbd/index.d.ts.map +1 -0
- package/dist/components/kbd/index.js +65 -0
- package/dist/components/kbd/index.js.map +1 -0
- package/dist/components/kbd/kbd.d.ts +43 -0
- package/dist/components/kbd/kbd.d.ts.map +1 -0
- package/dist/components/mark/index.d.ts +2 -0
- package/dist/components/mark/index.d.ts.map +1 -0
- package/dist/components/mark/index.js +5 -0
- package/dist/components/mark/index.js.map +1 -0
- package/dist/components/mark/mark.d.ts +50 -0
- package/dist/components/mark/mark.d.ts.map +1 -0
- package/dist/components/menu/index.d.ts +3 -0
- package/dist/components/menu/index.d.ts.map +1 -0
- package/dist/components/menu/index.js +88 -0
- package/dist/components/menu/index.js.map +1 -0
- package/dist/components/menu/menu-data.d.ts +119 -0
- package/dist/components/menu/menu-data.d.ts.map +1 -0
- package/dist/components/menu/menu.d.ts +123 -0
- package/dist/components/menu/menu.d.ts.map +1 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/index.d.ts.map +1 -0
- package/dist/components/modal/index.js +12 -0
- package/dist/components/modal/index.js.map +1 -0
- package/dist/components/modal/modal.d.ts +100 -0
- package/dist/components/modal/modal.d.ts.map +1 -0
- package/dist/components/multi-combobox-list/index.d.ts +2 -0
- package/dist/components/multi-combobox-list/index.d.ts.map +1 -0
- package/dist/components/multi-combobox-list/index.js +16 -0
- package/dist/components/multi-combobox-list/index.js.map +1 -0
- package/dist/components/multi-combobox-list/multi-combobox-list.d.ts +83 -0
- package/dist/components/multi-combobox-list/multi-combobox-list.d.ts.map +1 -0
- package/dist/components/multi-select/index.d.ts +3 -0
- package/dist/components/multi-select/index.d.ts.map +1 -0
- package/dist/components/multi-select/index.js +203 -0
- package/dist/components/multi-select/index.js.map +1 -0
- package/dist/components/multi-select/multi-select.d.ts +83 -0
- package/dist/components/multi-select/multi-select.d.ts.map +1 -0
- package/dist/components/nav-link/index.d.ts +3 -0
- package/dist/components/nav-link/index.d.ts.map +1 -0
- package/dist/components/nav-link/index.js +11 -0
- package/dist/components/nav-link/index.js.map +1 -0
- package/dist/components/nav-link/nav-link.d.ts +40 -0
- package/dist/components/nav-link/nav-link.d.ts.map +1 -0
- package/dist/components/nav-link/navigation.d.ts +45 -0
- package/dist/components/nav-link/navigation.d.ts.map +1 -0
- package/dist/components/nav-link/tanstack.d.ts +38 -0
- package/dist/components/nav-link/tanstack.d.ts.map +1 -0
- package/dist/components/nav-link/tanstack.js +21 -0
- package/dist/components/nav-link/tanstack.js.map +1 -0
- package/dist/components/notification/create-notifier.d.ts +117 -0
- package/dist/components/notification/create-notifier.d.ts.map +1 -0
- package/dist/components/notification/index.d.ts +5 -0
- package/dist/components/notification/index.d.ts.map +1 -0
- package/dist/components/notification/index.js +388 -0
- package/dist/components/notification/index.js.map +1 -0
- package/dist/components/notification/notification.d.ts +124 -0
- package/dist/components/notification/notification.d.ts.map +1 -0
- package/dist/components/notification/store.d.ts +42 -0
- package/dist/components/notification/store.d.ts.map +1 -0
- package/dist/components/notification/types.d.ts +62 -0
- package/dist/components/notification/types.d.ts.map +1 -0
- package/dist/components/number-input/index.d.ts +2 -0
- package/dist/components/number-input/index.d.ts.map +1 -0
- package/dist/components/number-input/index.js +16 -0
- package/dist/components/number-input/index.js.map +1 -0
- package/dist/components/number-input/number-input.d.ts +105 -0
- package/dist/components/number-input/number-input.d.ts.map +1 -0
- package/dist/components/overlays/create-overlays.d.ts +77 -0
- package/dist/components/overlays/create-overlays.d.ts.map +1 -0
- package/dist/components/overlays/index.d.ts +4 -0
- package/dist/components/overlays/index.d.ts.map +1 -0
- package/dist/components/overlays/index.js +332 -0
- package/dist/components/overlays/index.js.map +1 -0
- package/dist/components/overlays/renderer.d.ts +30 -0
- package/dist/components/overlays/renderer.d.ts.map +1 -0
- package/dist/components/overlays/store.d.ts +33 -0
- package/dist/components/overlays/store.d.ts.map +1 -0
- package/dist/components/overlays/types.d.ts +119 -0
- package/dist/components/overlays/types.d.ts.map +1 -0
- package/dist/components/password-input/index.d.ts +2 -0
- package/dist/components/password-input/index.d.ts.map +1 -0
- package/dist/components/password-input/index.js +125 -0
- package/dist/components/password-input/index.js.map +1 -0
- package/dist/components/password-input/password-input.d.ts +65 -0
- package/dist/components/password-input/password-input.d.ts.map +1 -0
- package/dist/components/pill/index.d.ts +2 -0
- package/dist/components/pill/index.d.ts.map +1 -0
- package/dist/components/pill/index.js +8 -0
- package/dist/components/pill/index.js.map +1 -0
- package/dist/components/pill/pill.d.ts +69 -0
- package/dist/components/pill/pill.d.ts.map +1 -0
- package/dist/components/pills-input/index.d.ts +2 -0
- package/dist/components/pills-input/index.d.ts.map +1 -0
- package/dist/components/pills-input/index.js +10 -0
- package/dist/components/pills-input/index.js.map +1 -0
- package/dist/components/pills-input/pills-input.d.ts +146 -0
- package/dist/components/pills-input/pills-input.d.ts.map +1 -0
- package/dist/components/pin-input/index.d.ts +2 -0
- package/dist/components/pin-input/index.d.ts.map +1 -0
- package/dist/components/pin-input/index.js +107 -0
- package/dist/components/pin-input/index.js.map +1 -0
- package/dist/components/pin-input/pin-input.d.ts +80 -0
- package/dist/components/pin-input/pin-input.d.ts.map +1 -0
- package/dist/components/popover/icons.d.ts +24 -0
- package/dist/components/popover/icons.d.ts.map +1 -0
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/popover/index.d.ts.map +1 -0
- package/dist/components/popover/index.js +10 -0
- package/dist/components/popover/index.js.map +1 -0
- package/dist/components/popover/popover.d.ts +190 -0
- package/dist/components/popover/popover.d.ts.map +1 -0
- package/dist/components/progress/index.d.ts +2 -0
- package/dist/components/progress/index.d.ts.map +1 -0
- package/dist/components/progress/index.js +111 -0
- package/dist/components/progress/index.js.map +1 -0
- package/dist/components/progress/progress.d.ts +47 -0
- package/dist/components/progress/progress.d.ts.map +1 -0
- package/dist/components/radio-group/index.d.ts +2 -0
- package/dist/components/radio-group/index.d.ts.map +1 -0
- package/dist/components/radio-group/index.js +104 -0
- package/dist/components/radio-group/index.js.map +1 -0
- package/dist/components/radio-group/radio-group.d.ts +86 -0
- package/dist/components/radio-group/radio-group.d.ts.map +1 -0
- package/dist/components/rating/icons.d.ts +19 -0
- package/dist/components/rating/icons.d.ts.map +1 -0
- package/dist/components/rating/index.d.ts +2 -0
- package/dist/components/rating/index.d.ts.map +1 -0
- package/dist/components/rating/index.js +194 -0
- package/dist/components/rating/index.js.map +1 -0
- package/dist/components/rating/rating.d.ts +119 -0
- package/dist/components/rating/rating.d.ts.map +1 -0
- package/dist/components/schedule/index.d.ts +98 -0
- package/dist/components/schedule/index.d.ts.map +1 -0
- package/dist/components/schedule/index.js +6656 -0
- package/dist/components/schedule/index.js.map +1 -0
- package/dist/components/schedule/now-cursor-line.d.ts +97 -0
- package/dist/components/schedule/now-cursor-line.d.ts.map +1 -0
- package/dist/components/schedule/schedule-agenda-list.d.ts +55 -0
- package/dist/components/schedule/schedule-agenda-list.d.ts.map +1 -0
- package/dist/components/schedule/schedule-agenda-view.d.ts +48 -0
- package/dist/components/schedule/schedule-agenda-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-all-day-row.d.ts +100 -0
- package/dist/components/schedule/schedule-all-day-row.d.ts.map +1 -0
- package/dist/components/schedule/schedule-create-draft.d.ts +30 -0
- package/dist/components/schedule/schedule-create-draft.d.ts.map +1 -0
- package/dist/components/schedule/schedule-dates.d.ts +359 -0
- package/dist/components/schedule/schedule-dates.d.ts.map +1 -0
- package/dist/components/schedule/schedule-day-view.d.ts +24 -0
- package/dist/components/schedule/schedule-day-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-days-view.d.ts +60 -0
- package/dist/components/schedule/schedule-days-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-disabled-overlay.d.ts +34 -0
- package/dist/components/schedule/schedule-disabled-overlay.d.ts.map +1 -0
- package/dist/components/schedule/schedule-drag-ghost.d.ts +31 -0
- package/dist/components/schedule/schedule-drag-ghost.d.ts.map +1 -0
- package/dist/components/schedule/schedule-event-chip.d.ts +101 -0
- package/dist/components/schedule/schedule-event-chip.d.ts.map +1 -0
- package/dist/components/schedule/schedule-event-details.d.ts +37 -0
- package/dist/components/schedule/schedule-event-details.d.ts.map +1 -0
- package/dist/components/schedule/schedule-event-list-popover-content.d.ts +41 -0
- package/dist/components/schedule/schedule-event-list-popover-content.d.ts.map +1 -0
- package/dist/components/schedule/schedule-event-styles.d.ts +58 -0
- package/dist/components/schedule/schedule-event-styles.d.ts.map +1 -0
- package/dist/components/schedule/schedule-geometry.d.ts +307 -0
- package/dist/components/schedule/schedule-geometry.d.ts.map +1 -0
- package/dist/components/schedule/schedule-grid-gesture.d.ts +311 -0
- package/dist/components/schedule/schedule-grid-gesture.d.ts.map +1 -0
- package/dist/components/schedule/schedule-layout.d.ts +83 -0
- package/dist/components/schedule/schedule-layout.d.ts.map +1 -0
- package/dist/components/schedule/schedule-month-view.d.ts +44 -0
- package/dist/components/schedule/schedule-month-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-next-up-grouping.d.ts +37 -0
- package/dist/components/schedule/schedule-next-up-grouping.d.ts.map +1 -0
- package/dist/components/schedule/schedule-next-up.d.ts +79 -0
- package/dist/components/schedule/schedule-next-up.d.ts.map +1 -0
- package/dist/components/schedule/schedule-overflow-chip.d.ts +45 -0
- package/dist/components/schedule/schedule-overflow-chip.d.ts.map +1 -0
- package/dist/components/schedule/schedule-overflow-popover.d.ts +57 -0
- package/dist/components/schedule/schedule-overflow-popover.d.ts.map +1 -0
- package/dist/components/schedule/schedule-segments.d.ts +89 -0
- package/dist/components/schedule/schedule-segments.d.ts.map +1 -0
- package/dist/components/schedule/schedule-snap.d.ts +204 -0
- package/dist/components/schedule/schedule-snap.d.ts.map +1 -0
- package/dist/components/schedule/schedule-timed-grid.d.ts +78 -0
- package/dist/components/schedule/schedule-timed-grid.d.ts.map +1 -0
- package/dist/components/schedule/schedule-toolbar.d.ts +107 -0
- package/dist/components/schedule/schedule-toolbar.d.ts.map +1 -0
- package/dist/components/schedule/schedule-types.d.ts +844 -0
- package/dist/components/schedule/schedule-types.d.ts.map +1 -0
- package/dist/components/schedule/schedule-views.d.ts +197 -0
- package/dist/components/schedule/schedule-views.d.ts.map +1 -0
- package/dist/components/schedule/schedule-week-view.d.ts +19 -0
- package/dist/components/schedule/schedule-week-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-year-view.d.ts +38 -0
- package/dist/components/schedule/schedule-year-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule.d.ts +163 -0
- package/dist/components/schedule/schedule.d.ts.map +1 -0
- package/dist/components/schedule/use-event-create.d.ts +54 -0
- package/dist/components/schedule/use-event-create.d.ts.map +1 -0
- package/dist/components/schedule/use-event-drag.d.ts +95 -0
- package/dist/components/schedule/use-event-drag.d.ts.map +1 -0
- package/dist/components/schedule/use-event-resize.d.ts +63 -0
- package/dist/components/schedule/use-event-resize.d.ts.map +1 -0
- package/dist/components/schedule/use-schedule-selection.d.ts +74 -0
- package/dist/components/schedule/use-schedule-selection.d.ts.map +1 -0
- package/dist/components/schedule/use-schedule.d.ts +78 -0
- package/dist/components/schedule/use-schedule.d.ts.map +1 -0
- package/dist/components/segment-group/index.d.ts +2 -0
- package/dist/components/segment-group/index.d.ts.map +1 -0
- package/dist/components/segment-group/index.js +10 -0
- package/dist/components/segment-group/index.js.map +1 -0
- package/dist/components/segment-group/segment-group.d.ts +187 -0
- package/dist/components/segment-group/segment-group.d.ts.map +1 -0
- package/dist/components/select/index.d.ts +3 -0
- package/dist/components/select/index.d.ts.map +1 -0
- package/dist/components/select/index.js +17 -0
- package/dist/components/select/index.js.map +1 -0
- package/dist/components/select/select.d.ts +83 -0
- package/dist/components/select/select.d.ts.map +1 -0
- package/dist/components/skeleton/index.d.ts +2 -0
- package/dist/components/skeleton/index.d.ts.map +1 -0
- package/dist/components/skeleton/index.js +5 -0
- package/dist/components/skeleton/index.js.map +1 -0
- package/dist/components/skeleton/skeleton.d.ts +83 -0
- package/dist/components/skeleton/skeleton.d.ts.map +1 -0
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/slider/index.d.ts.map +1 -0
- package/dist/components/slider/index.js +258 -0
- package/dist/components/slider/index.js.map +1 -0
- package/dist/components/slider/slider.d.ts +90 -0
- package/dist/components/slider/slider.d.ts.map +1 -0
- package/dist/components/slider/sliderThumb.d.ts +1 -0
- package/dist/components/slider/sliderThumb.d.ts.map +1 -0
- package/dist/components/spinner/index.d.ts +2 -0
- package/dist/components/spinner/index.d.ts.map +1 -0
- package/dist/components/spinner/index.js +5 -0
- package/dist/components/spinner/index.js.map +1 -0
- package/dist/components/spinner/spinner.d.ts +61 -0
- package/dist/components/spinner/spinner.d.ts.map +1 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/switch/index.d.ts.map +1 -0
- package/dist/components/switch/index.js +140 -0
- package/dist/components/switch/index.js.map +1 -0
- package/dist/components/switch/switch.d.ts +48 -0
- package/dist/components/switch/switch.d.ts.map +1 -0
- package/dist/components/table/index.d.ts +2 -0
- package/dist/components/table/index.d.ts.map +1 -0
- package/dist/components/table/index.js +5 -0
- package/dist/components/table/index.js.map +1 -0
- package/dist/components/table/table.d.ts +113 -0
- package/dist/components/table/table.d.ts.map +1 -0
- package/dist/components/tabs/index.d.ts +3 -0
- package/dist/components/tabs/index.d.ts.map +1 -0
- package/dist/components/tabs/index.js +8 -0
- package/dist/components/tabs/index.js.map +1 -0
- package/dist/components/tabs/tabs-data.d.ts +67 -0
- package/dist/components/tabs/tabs-data.d.ts.map +1 -0
- package/dist/components/tabs/tabs.d.ts +96 -0
- package/dist/components/tabs/tabs.d.ts.map +1 -0
- package/dist/components/tags-input/index.d.ts +2 -0
- package/dist/components/tags-input/index.d.ts.map +1 -0
- package/dist/components/tags-input/index.js +203 -0
- package/dist/components/tags-input/index.js.map +1 -0
- package/dist/components/tags-input/tags-input.d.ts +68 -0
- package/dist/components/tags-input/tags-input.d.ts.map +1 -0
- package/dist/components/text/index.d.ts +2 -0
- package/dist/components/text/index.d.ts.map +1 -0
- package/dist/components/text/index.js +6 -0
- package/dist/components/text/index.js.map +1 -0
- package/dist/components/text/text.d.ts +50 -0
- package/dist/components/text/text.d.ts.map +1 -0
- package/dist/components/text-input/index.d.ts +2 -0
- package/dist/components/text-input/index.d.ts.map +1 -0
- package/dist/components/text-input/index.js +34 -0
- package/dist/components/text-input/index.js.map +1 -0
- package/dist/components/text-input/text-input.d.ts +56 -0
- package/dist/components/text-input/text-input.d.ts.map +1 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/index.d.ts.map +1 -0
- package/dist/components/textarea/index.js +116 -0
- package/dist/components/textarea/index.js.map +1 -0
- package/dist/components/textarea/textarea.d.ts +48 -0
- package/dist/components/textarea/textarea.d.ts.map +1 -0
- package/dist/components/theme-icon/index.d.ts +2 -0
- package/dist/components/theme-icon/index.d.ts.map +1 -0
- package/dist/components/theme-icon/index.js +6 -0
- package/dist/components/theme-icon/index.js.map +1 -0
- package/dist/components/theme-icon/theme-icon.d.ts +34 -0
- package/dist/components/theme-icon/theme-icon.d.ts.map +1 -0
- package/dist/components/theme-script/index.d.ts +2 -0
- package/dist/components/theme-script/index.d.ts.map +1 -0
- package/dist/components/theme-script/index.js +29 -0
- package/dist/components/theme-script/index.js.map +1 -0
- package/dist/components/theme-script/theme-script.d.ts +41 -0
- package/dist/components/theme-script/theme-script.d.ts.map +1 -0
- package/dist/components/time-input/hour-cycle.d.ts +32 -0
- package/dist/components/time-input/hour-cycle.d.ts.map +1 -0
- package/dist/components/time-input/index.d.ts +3 -0
- package/dist/components/time-input/index.d.ts.map +1 -0
- package/dist/components/time-input/index.js +125 -0
- package/dist/components/time-input/index.js.map +1 -0
- package/dist/components/time-input/time-input.d.ts +63 -0
- package/dist/components/time-input/time-input.d.ts.map +1 -0
- package/dist/components/time-input/time-row.d.ts +72 -0
- package/dist/components/time-input/time-row.d.ts.map +1 -0
- package/dist/components/timeline/index.d.ts +2 -0
- package/dist/components/timeline/index.d.ts.map +1 -0
- package/dist/components/timeline/index.js +372 -0
- package/dist/components/timeline/index.js.map +1 -0
- package/dist/components/timeline/timeline.d.ts +194 -0
- package/dist/components/timeline/timeline.d.ts.map +1 -0
- package/dist/components/title/index.d.ts +2 -0
- package/dist/components/title/index.d.ts.map +1 -0
- package/dist/components/title/index.js +6 -0
- package/dist/components/title/index.js.map +1 -0
- package/dist/components/title/title.d.ts +47 -0
- package/dist/components/title/title.d.ts.map +1 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/index.d.ts.map +1 -0
- package/dist/components/tooltip/index.js +10 -0
- package/dist/components/tooltip/index.js.map +1 -0
- package/dist/components/tooltip/tooltip.d.ts +70 -0
- package/dist/components/tooltip/tooltip.d.ts.map +1 -0
- package/dist/components/tree-multi-select/index.d.ts +3 -0
- package/dist/components/tree-multi-select/index.d.ts.map +1 -0
- package/dist/components/tree-multi-select/index.js +424 -0
- package/dist/components/tree-multi-select/index.js.map +1 -0
- package/dist/components/tree-multi-select/tree-multi-select.d.ts +72 -0
- package/dist/components/tree-multi-select/tree-multi-select.d.ts.map +1 -0
- package/dist/components/tree-select/index.d.ts +3 -0
- package/dist/components/tree-select/index.d.ts.map +1 -0
- package/dist/components/tree-select/index.js +425 -0
- package/dist/components/tree-select/index.js.map +1 -0
- package/dist/components/tree-select/tree-select.d.ts +68 -0
- package/dist/components/tree-select/tree-select.d.ts.map +1 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +269 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/align.d.ts +7 -0
- package/dist/lib/align.d.ts.map +1 -0
- package/dist/lib/available-if.d.ts +114 -0
- package/dist/lib/available-if.d.ts.map +1 -0
- package/dist/lib/brand.d.ts +22 -0
- package/dist/lib/brand.d.ts.map +1 -0
- package/dist/lib/cn.d.ts +14 -0
- package/dist/lib/cn.d.ts.map +1 -0
- package/dist/lib/cn.js +3 -0
- package/dist/lib/cn.js.map +1 -0
- package/dist/lib/colors.d.ts +14 -0
- package/dist/lib/colors.d.ts.map +1 -0
- package/dist/lib/control-open.d.ts +28 -0
- package/dist/lib/control-open.d.ts.map +1 -0
- package/dist/lib/date-predicates.d.ts +28 -0
- package/dist/lib/date-predicates.d.ts.map +1 -0
- package/dist/lib/date-value.d.ts +45 -0
- package/dist/lib/date-value.d.ts.map +1 -0
- package/dist/lib/dev-warn.d.ts +2 -0
- package/dist/lib/dev-warn.d.ts.map +1 -0
- package/dist/lib/focus-styles.d.ts +102 -0
- package/dist/lib/focus-styles.d.ts.map +1 -0
- package/dist/lib/form-control.d.ts +72 -0
- package/dist/lib/form-control.d.ts.map +1 -0
- package/dist/lib/gradient.d.ts +31 -0
- package/dist/lib/gradient.d.ts.map +1 -0
- package/dist/lib/intl.d.ts +77 -0
- package/dist/lib/intl.d.ts.map +1 -0
- package/dist/lib/link-component.d.ts +13 -0
- package/dist/lib/link-component.d.ts.map +1 -0
- package/dist/lib/merge-refs.d.ts +12 -0
- package/dist/lib/merge-refs.d.ts.map +1 -0
- package/dist/lib/overlay-container.d.ts +14 -0
- package/dist/lib/overlay-container.d.ts.map +1 -0
- package/dist/lib/overlay-layer.d.ts +51 -0
- package/dist/lib/overlay-layer.d.ts.map +1 -0
- package/dist/lib/placement.d.ts +16 -0
- package/dist/lib/placement.d.ts.map +1 -0
- package/dist/lib/props.d.ts +40 -0
- package/dist/lib/props.d.ts.map +1 -0
- package/dist/lib/required-if.d.ts +46 -0
- package/dist/lib/required-if.d.ts.map +1 -0
- package/dist/lib/schedule-predicates.d.ts +72 -0
- package/dist/lib/schedule-predicates.d.ts.map +1 -0
- package/dist/lib/select-data.d.ts +135 -0
- package/dist/lib/select-data.d.ts.map +1 -0
- package/dist/lib/sizes.d.ts +20 -0
- package/dist/lib/sizes.d.ts.map +1 -0
- package/dist/lib/test-id.d.ts +30 -0
- package/dist/lib/test-id.d.ts.map +1 -0
- package/dist/lib/theme-init-runtime.d.ts +26 -0
- package/dist/lib/theme-init-runtime.d.ts.map +1 -0
- package/dist/lib/theme.d.ts +93 -0
- package/dist/lib/theme.d.ts.map +1 -0
- package/dist/lib/tree-data.d.ts +99 -0
- package/dist/lib/tree-data.d.ts.map +1 -0
- package/dist/lib/typography-size.d.ts +49 -0
- package/dist/lib/typography-size.d.ts.map +1 -0
- package/dist/lib/use-container-query.d.ts +19 -0
- package/dist/lib/use-container-query.d.ts.map +1 -0
- package/dist/lib/use-disclosure.d.ts +35 -0
- package/dist/lib/use-disclosure.d.ts.map +1 -0
- package/dist/lib/use-isomorphic-layout-effect.d.ts +12 -0
- package/dist/lib/use-isomorphic-layout-effect.d.ts.map +1 -0
- package/dist/lib/use-local-storage.d.ts +45 -0
- package/dist/lib/use-local-storage.d.ts.map +1 -0
- package/dist/lib/use-logger.d.ts +2 -0
- package/dist/lib/use-logger.d.ts.map +1 -0
- package/dist/lib/use-media-query.d.ts +11 -0
- package/dist/lib/use-media-query.d.ts.map +1 -0
- package/dist/lib/use-now.d.ts +7 -0
- package/dist/lib/use-now.d.ts.map +1 -0
- package/dist/lib/use-theme.d.ts +101 -0
- package/dist/lib/use-theme.d.ts.map +1 -0
- package/dist/lib/use-uncontrolled.d.ts +45 -0
- package/dist/lib/use-uncontrolled.d.ts.map +1 -0
- package/dist/styles.css +17 -0
- package/dist/test-setup.d.ts +2 -0
- package/dist/test-setup.d.ts.map +1 -0
- package/dist/theme-init-script.d.ts +2 -0
- package/dist/theme-init-script.d.ts.map +1 -0
- package/dist/theme-init.js +2 -0
- package/dist/theme-init.js.map +1 -0
- package/dist/theme.css +1281 -0
- package/package.json +99 -3
- package/src/colors.css +296 -0
- package/src/components/accordion/accordion-data.tsx +86 -0
- package/src/components/accordion/accordion.test.tsx +234 -0
- package/src/components/accordion/accordion.tsx +336 -0
- package/src/components/accordion/index.ts +18 -0
- package/src/components/action-icon/action-icon.test.tsx +57 -0
- package/src/components/action-icon/action-icon.tsx +180 -0
- package/src/components/action-icon/index.ts +12 -0
- package/src/components/alert/alert.test.tsx +131 -0
- package/src/components/alert/alert.tsx +165 -0
- package/src/components/alert/index.ts +3 -0
- package/src/components/ambient-background/ambient-background.test.tsx +64 -0
- package/src/components/ambient-background/ambient-background.tsx +76 -0
- package/src/components/ambient-background/index.ts +1 -0
- package/src/components/app-shell/app-shell.test.tsx +271 -0
- package/src/components/app-shell/app-shell.tsx +492 -0
- package/src/components/app-shell/index.ts +17 -0
- package/src/components/autocomplete/autocomplete.test.tsx +120 -0
- package/src/components/autocomplete/autocomplete.tsx +249 -0
- package/src/components/autocomplete/index.ts +11 -0
- package/src/components/avatar/avatar.test.tsx +345 -0
- package/src/components/avatar/avatar.tsx +456 -0
- package/src/components/avatar/index.ts +12 -0
- package/src/components/badge/badge.test.tsx +51 -0
- package/src/components/badge/badge.tsx +148 -0
- package/src/components/badge/index.ts +6 -0
- package/src/components/breadcrumb/breadcrumb.test.tsx +238 -0
- package/src/components/breadcrumb/breadcrumb.tsx +348 -0
- package/src/components/breadcrumb/index.ts +9 -0
- package/src/components/button/button.test.tsx +87 -0
- package/src/components/button/button.tsx +253 -0
- package/src/components/button/index.ts +12 -0
- package/src/components/button-group/button-group.test.tsx +168 -0
- package/src/components/button-group/button-group.tsx +121 -0
- package/src/components/button-group/index.ts +1 -0
- package/src/components/button-multi-select/button-multi-select.test.tsx +146 -0
- package/src/components/button-multi-select/button-multi-select.tsx +76 -0
- package/src/components/button-multi-select/index.ts +17 -0
- package/src/components/button-select/button-select-control.tsx +153 -0
- package/src/components/button-select/button-select-data.tsx +96 -0
- package/src/components/button-select/button-select-items.ts +103 -0
- package/src/components/button-select/button-select.test.tsx +239 -0
- package/src/components/button-select/button-select.tsx +323 -0
- package/src/components/button-select/index.ts +14 -0
- package/src/components/calendar/calendar-body.tsx +410 -0
- package/src/components/calendar/calendar.test.tsx +278 -0
- package/src/components/calendar/calendar.tsx +220 -0
- package/src/components/calendar/index.ts +10 -0
- package/src/components/card/card.tsx +211 -0
- package/src/components/card/index.ts +12 -0
- package/src/components/chart/chart.test.tsx +98 -0
- package/src/components/chart/chart.tsx +192 -0
- package/src/components/chart/index.ts +8 -0
- package/src/components/chart/styles.css +50 -0
- package/src/components/checkbox/checkbox.test.tsx +113 -0
- package/src/components/checkbox/checkbox.tsx +182 -0
- package/src/components/checkbox/control.ts +76 -0
- package/src/components/checkbox/index.ts +3 -0
- package/src/components/choice-card-group/choice-card-group.test.tsx +250 -0
- package/src/components/choice-card-group/choice-card-group.tsx +549 -0
- package/src/components/choice-card-group/index.ts +9 -0
- package/src/components/circular-progress/circular-progress.test.tsx +120 -0
- package/src/components/circular-progress/circular-progress.tsx +214 -0
- package/src/components/circular-progress/index.ts +15 -0
- package/src/components/clipboard/clipboard.test.tsx +229 -0
- package/src/components/clipboard/clipboard.tsx +128 -0
- package/src/components/clipboard/copy.tsx +127 -0
- package/src/components/clipboard/index.ts +12 -0
- package/src/components/code/code.test.tsx +57 -0
- package/src/components/code/code.tsx +54 -0
- package/src/components/code/index.ts +1 -0
- package/src/components/code-block/chrome.tsx +347 -0
- package/src/components/code-block/code-block.test.tsx +252 -0
- package/src/components/code-block/code-block.tsx +254 -0
- package/src/components/code-block/diff.test.ts +177 -0
- package/src/components/code-block/diff.ts +114 -0
- package/src/components/code-block/gutters.test.ts +280 -0
- package/src/components/code-block/gutters.ts +260 -0
- package/src/components/code-block/highlighter.test.ts +261 -0
- package/src/components/code-block/highlighter.ts +290 -0
- package/src/components/code-block/index.ts +53 -0
- package/src/components/code-block/notation.test.ts +166 -0
- package/src/components/code-block/notation.ts +233 -0
- package/src/components/code-block/presets.test.ts +43 -0
- package/src/components/code-block/presets.ts +28 -0
- package/src/components/code-block/static.tsx +130 -0
- package/src/components/code-block/styles.css +198 -0
- package/src/components/collapse/collapse.test.tsx +96 -0
- package/src/components/collapse/collapse.tsx +81 -0
- package/src/components/collapse/index.ts +1 -0
- package/src/components/combobox/combobox.tsx +317 -0
- package/src/components/combobox/index.ts +15 -0
- package/src/components/combobox-list/combobox-list.test.tsx +148 -0
- package/src/components/combobox-list/combobox-list.tsx +276 -0
- package/src/components/combobox-list/index.ts +3 -0
- package/src/components/container/container.tsx +47 -0
- package/src/components/container/index.ts +1 -0
- package/src/components/data-table/data-table-features.ts +127 -0
- package/src/components/data-table/data-table-filter/data-table-date-filter.tsx +275 -0
- package/src/components/data-table/data-table-filter/data-table-filter-fns.ts +126 -0
- package/src/components/data-table/data-table-filter/data-table-number-filter.tsx +74 -0
- package/src/components/data-table/data-table-filter/data-table-select-filter.tsx +47 -0
- package/src/components/data-table/data-table-filter/data-table-text-filter.tsx +29 -0
- package/src/components/data-table/data-table-filter/index.tsx +62 -0
- package/src/components/data-table/data-table-filter/utils.ts +112 -0
- package/src/components/data-table/data-table-filter-fns.test.tsx +145 -0
- package/src/components/data-table/data-table-filter.test.tsx +365 -0
- package/src/components/data-table/data-table-header-cell.tsx +292 -0
- package/src/components/data-table/data-table-meta.ts +102 -0
- package/src/components/data-table/data-table-pagination.tsx +175 -0
- package/src/components/data-table/data-table-placeholder.tsx +61 -0
- package/src/components/data-table/data-table-schema.test.tsx +22 -0
- package/src/components/data-table/data-table-schema.ts +23 -0
- package/src/components/data-table/data-table-skeleton.ts +9 -0
- package/src/components/data-table/data-table-stack.tsx +376 -0
- package/src/components/data-table/data-table-state.ts +35 -0
- package/src/components/data-table/data-table-toolbar.tsx +81 -0
- package/src/components/data-table/data-table.test.tsx +1143 -0
- package/src/components/data-table/data-table.tsx +829 -0
- package/src/components/data-table/index.ts +46 -0
- package/src/components/date-picker/aliases.tsx +15 -0
- package/src/components/date-picker/date-picker.test.tsx +699 -0
- package/src/components/date-picker/date-picker.tsx +1000 -0
- package/src/components/date-picker/date-time-text.test.ts +68 -0
- package/src/components/date-picker/date-time-text.ts +103 -0
- package/src/components/date-picker/index.ts +32 -0
- package/src/components/divider/divider.test.tsx +106 -0
- package/src/components/divider/divider.tsx +162 -0
- package/src/components/divider/index.ts +8 -0
- package/src/components/drawer/drawer.tsx +405 -0
- package/src/components/drawer/index.ts +21 -0
- package/src/components/field/field.tsx +235 -0
- package/src/components/field/index.ts +3 -0
- package/src/components/file-upload/file-upload.test.tsx +47 -0
- package/src/components/file-upload/file-upload.tsx +280 -0
- package/src/components/file-upload/index.ts +3 -0
- package/src/components/flex/flex.tsx +81 -0
- package/src/components/flex/index.ts +1 -0
- package/src/components/grid/grid.tsx +52 -0
- package/src/components/grid/index.ts +1 -0
- package/src/components/hover-card/hover-card.test.tsx +192 -0
- package/src/components/hover-card/hover-card.tsx +376 -0
- package/src/components/hover-card/index.ts +9 -0
- package/src/components/indicator/index.ts +6 -0
- package/src/components/indicator/indicator.test.tsx +241 -0
- package/src/components/indicator/indicator.tsx +275 -0
- package/src/components/input/index.ts +12 -0
- package/src/components/input/input.test.tsx +111 -0
- package/src/components/input/input.tsx +320 -0
- package/src/components/kbd/index.ts +1 -0
- package/src/components/kbd/kbd.test.tsx +20 -0
- package/src/components/kbd/kbd.tsx +98 -0
- package/src/components/mark/index.ts +1 -0
- package/src/components/mark/mark.test.tsx +85 -0
- package/src/components/mark/mark.tsx +79 -0
- package/src/components/menu/index.ts +27 -0
- package/src/components/menu/menu-data.tsx +230 -0
- package/src/components/menu/menu.test.tsx +547 -0
- package/src/components/menu/menu.tsx +514 -0
- package/src/components/modal/index.ts +14 -0
- package/src/components/modal/modal.tsx +420 -0
- package/src/components/multi-combobox-list/index.ts +3 -0
- package/src/components/multi-combobox-list/multi-combobox-list.test.tsx +190 -0
- package/src/components/multi-combobox-list/multi-combobox-list.tsx +308 -0
- package/src/components/multi-select/index.ts +12 -0
- package/src/components/multi-select/multi-select.test.tsx +248 -0
- package/src/components/multi-select/multi-select.tsx +355 -0
- package/src/components/nav-link/index.ts +4 -0
- package/src/components/nav-link/nav-link.test.tsx +107 -0
- package/src/components/nav-link/nav-link.tsx +205 -0
- package/src/components/nav-link/navigation.test.tsx +117 -0
- package/src/components/nav-link/navigation.tsx +81 -0
- package/src/components/nav-link/tanstack.tsx +67 -0
- package/src/components/notification/create-notifier.tsx +518 -0
- package/src/components/notification/index.ts +20 -0
- package/src/components/notification/notification.test.tsx +321 -0
- package/src/components/notification/notification.tsx +353 -0
- package/src/components/notification/store.ts +159 -0
- package/src/components/notification/types.ts +67 -0
- package/src/components/number-input/index.ts +3 -0
- package/src/components/number-input/number-input.test.tsx +291 -0
- package/src/components/number-input/number-input.tsx +407 -0
- package/src/components/overlays/create-overlays.tsx +267 -0
- package/src/components/overlays/index.ts +25 -0
- package/src/components/overlays/renderer.tsx +214 -0
- package/src/components/overlays/store.ts +103 -0
- package/src/components/overlays/types.ts +150 -0
- package/src/components/password-input/index.ts +3 -0
- package/src/components/password-input/password-input.test.tsx +94 -0
- package/src/components/password-input/password-input.tsx +191 -0
- package/src/components/pill/index.ts +9 -0
- package/src/components/pill/pill.test.tsx +22 -0
- package/src/components/pill/pill.tsx +221 -0
- package/src/components/pills-input/index.ts +12 -0
- package/src/components/pills-input/pills-input.test.ts +136 -0
- package/src/components/pills-input/pills-input.tsx +422 -0
- package/src/components/pin-input/index.ts +3 -0
- package/src/components/pin-input/pin-input.test.tsx +74 -0
- package/src/components/pin-input/pin-input.tsx +186 -0
- package/src/components/popover/icons.tsx +129 -0
- package/src/components/popover/index.ts +8 -0
- package/src/components/popover/popover.test.tsx +223 -0
- package/src/components/popover/popover.tsx +635 -0
- package/src/components/progress/index.ts +18 -0
- package/src/components/progress/progress.test.tsx +112 -0
- package/src/components/progress/progress.tsx +194 -0
- package/src/components/radio-group/index.ts +9 -0
- package/src/components/radio-group/radio-group.test.tsx +107 -0
- package/src/components/radio-group/radio-group.tsx +207 -0
- package/src/components/rating/icons.tsx +35 -0
- package/src/components/rating/index.ts +9 -0
- package/src/components/rating/rating.test.tsx +288 -0
- package/src/components/rating/rating.tsx +389 -0
- package/src/components/schedule/index.ts +170 -0
- package/src/components/schedule/now-cursor-line.test.tsx +262 -0
- package/src/components/schedule/now-cursor-line.tsx +343 -0
- package/src/components/schedule/schedule-agenda-list.tsx +480 -0
- package/src/components/schedule/schedule-agenda-view.test.tsx +333 -0
- package/src/components/schedule/schedule-agenda-view.tsx +211 -0
- package/src/components/schedule/schedule-all-day-row.test.ts +187 -0
- package/src/components/schedule/schedule-all-day-row.tsx +616 -0
- package/src/components/schedule/schedule-create-draft.tsx +190 -0
- package/src/components/schedule/schedule-dates.test.ts +771 -0
- package/src/components/schedule/schedule-dates.ts +722 -0
- package/src/components/schedule/schedule-day-view.tsx +30 -0
- package/src/components/schedule/schedule-days-view.tsx +279 -0
- package/src/components/schedule/schedule-details-popover.test.tsx +765 -0
- package/src/components/schedule/schedule-disabled-overlay.tsx +51 -0
- package/src/components/schedule/schedule-drag-ghost.tsx +172 -0
- package/src/components/schedule/schedule-event-chip.tsx +1183 -0
- package/src/components/schedule/schedule-event-details.tsx +101 -0
- package/src/components/schedule/schedule-event-list-popover-content.tsx +149 -0
- package/src/components/schedule/schedule-event-styles.ts +60 -0
- package/src/components/schedule/schedule-geometry.test.ts +426 -0
- package/src/components/schedule/schedule-geometry.ts +482 -0
- package/src/components/schedule/schedule-grid-gesture.test.ts +235 -0
- package/src/components/schedule/schedule-grid-gesture.ts +606 -0
- package/src/components/schedule/schedule-layout.test.ts +260 -0
- package/src/components/schedule/schedule-layout.ts +270 -0
- package/src/components/schedule/schedule-month-view.test.tsx +193 -0
- package/src/components/schedule/schedule-month-view.tsx +690 -0
- package/src/components/schedule/schedule-next-up-grouping.test.ts +95 -0
- package/src/components/schedule/schedule-next-up-grouping.ts +69 -0
- package/src/components/schedule/schedule-next-up.test.tsx +189 -0
- package/src/components/schedule/schedule-next-up.tsx +138 -0
- package/src/components/schedule/schedule-overflow-chip.tsx +156 -0
- package/src/components/schedule/schedule-overflow-popover.tsx +173 -0
- package/src/components/schedule/schedule-segments.test.ts +201 -0
- package/src/components/schedule/schedule-segments.ts +120 -0
- package/src/components/schedule/schedule-snap.test.ts +546 -0
- package/src/components/schedule/schedule-snap.ts +380 -0
- package/src/components/schedule/schedule-timed-grid.tsx +1647 -0
- package/src/components/schedule/schedule-toolbar.tsx +270 -0
- package/src/components/schedule/schedule-type-cost.test.ts +104 -0
- package/src/components/schedule/schedule-types.test.ts +64 -0
- package/src/components/schedule/schedule-types.ts +1152 -0
- package/src/components/schedule/schedule-views.test.ts +263 -0
- package/src/components/schedule/schedule-views.ts +293 -0
- package/src/components/schedule/schedule-week-view.tsx +25 -0
- package/src/components/schedule/schedule-year-view.test.tsx +105 -0
- package/src/components/schedule/schedule-year-view.tsx +307 -0
- package/src/components/schedule/schedule.test.tsx +4386 -0
- package/src/components/schedule/schedule.tsx +1040 -0
- package/src/components/schedule/use-event-create.ts +591 -0
- package/src/components/schedule/use-event-drag.ts +510 -0
- package/src/components/schedule/use-event-resize.ts +565 -0
- package/src/components/schedule/use-schedule-selection.ts +119 -0
- package/src/components/schedule/use-schedule.test.ts +91 -0
- package/src/components/schedule/use-schedule.ts +135 -0
- package/src/components/segment-group/index.ts +15 -0
- package/src/components/segment-group/segment-group.test.tsx +172 -0
- package/src/components/segment-group/segment-group.tsx +570 -0
- package/src/components/select/index.ts +12 -0
- package/src/components/select/select.test.tsx +173 -0
- package/src/components/select/select.tsx +405 -0
- package/src/components/skeleton/index.ts +7 -0
- package/src/components/skeleton/skeleton.test.tsx +96 -0
- package/src/components/skeleton/skeleton.tsx +178 -0
- package/src/components/slider/index.ts +3 -0
- package/src/components/slider/slider.test.tsx +136 -0
- package/src/components/slider/slider.tsx +390 -0
- package/src/components/slider/sliderThumb.tsx +0 -0
- package/src/components/spinner/index.ts +6 -0
- package/src/components/spinner/spinner.tsx +136 -0
- package/src/components/switch/index.ts +3 -0
- package/src/components/switch/switch.test.tsx +98 -0
- package/src/components/switch/switch.tsx +234 -0
- package/src/components/table/index.ts +14 -0
- package/src/components/table/table.test.tsx +262 -0
- package/src/components/table/table.tsx +309 -0
- package/src/components/tabs/index.ts +17 -0
- package/src/components/tabs/tabs-data.tsx +125 -0
- package/src/components/tabs/tabs.test.tsx +172 -0
- package/src/components/tabs/tabs.tsx +292 -0
- package/src/components/tags-input/index.ts +3 -0
- package/src/components/tags-input/tags-input.test.tsx +85 -0
- package/src/components/tags-input/tags-input.tsx +294 -0
- package/src/components/text/index.ts +1 -0
- package/src/components/text/text.test.tsx +73 -0
- package/src/components/text/text.tsx +107 -0
- package/src/components/text-input/index.ts +3 -0
- package/src/components/text-input/text-input.test.tsx +129 -0
- package/src/components/text-input/text-input.tsx +88 -0
- package/src/components/textarea/index.ts +3 -0
- package/src/components/textarea/textarea.test.tsx +88 -0
- package/src/components/textarea/textarea.tsx +205 -0
- package/src/components/theme-icon/index.ts +7 -0
- package/src/components/theme-icon/theme-icon.test.tsx +20 -0
- package/src/components/theme-icon/theme-icon.tsx +114 -0
- package/src/components/theme-script/index.ts +1 -0
- package/src/components/theme-script/theme-script.tsx +68 -0
- package/src/components/time-input/hour-cycle.ts +61 -0
- package/src/components/time-input/index.ts +4 -0
- package/src/components/time-input/time-input.test.tsx +292 -0
- package/src/components/time-input/time-input.tsx +196 -0
- package/src/components/time-input/time-row.tsx +305 -0
- package/src/components/timeline/index.ts +11 -0
- package/src/components/timeline/timeline.test.tsx +701 -0
- package/src/components/timeline/timeline.tsx +720 -0
- package/src/components/title/index.ts +1 -0
- package/src/components/title/title.test.tsx +68 -0
- package/src/components/title/title.tsx +95 -0
- package/src/components/tooltip/index.ts +9 -0
- package/src/components/tooltip/tooltip.test.tsx +96 -0
- package/src/components/tooltip/tooltip.tsx +255 -0
- package/src/components/tree-multi-select/index.ts +11 -0
- package/src/components/tree-multi-select/tree-multi-select.test.tsx +327 -0
- package/src/components/tree-multi-select/tree-multi-select.tsx +626 -0
- package/src/components/tree-select/index.ts +11 -0
- package/src/components/tree-select/tree-select.test.tsx +376 -0
- package/src/components/tree-select/tree-select.tsx +634 -0
- package/src/index.ts +64 -0
- package/src/lib/align.ts +6 -0
- package/src/lib/available-if.test.ts +76 -0
- package/src/lib/available-if.ts +114 -0
- package/src/lib/brand.ts +19 -0
- package/src/lib/cn.test.ts +13 -0
- package/src/lib/cn.ts +28 -0
- package/src/lib/colors.ts +31 -0
- package/src/lib/control-open.ts +38 -0
- package/src/lib/date-predicates.test.ts +149 -0
- package/src/lib/date-predicates.ts +83 -0
- package/src/lib/date-value.test.ts +107 -0
- package/src/lib/date-value.ts +76 -0
- package/src/lib/dev-warn.ts +18 -0
- package/src/lib/focus-styles.test.ts +138 -0
- package/src/lib/focus-styles.ts +145 -0
- package/src/lib/form-control.ts +72 -0
- package/src/lib/gradient.ts +81 -0
- package/src/lib/intl-direction.test.tsx +96 -0
- package/src/lib/intl.test.tsx +162 -0
- package/src/lib/intl.tsx +210 -0
- package/src/lib/link-component.test.tsx +46 -0
- package/src/lib/link-component.tsx +32 -0
- package/src/lib/merge-refs.ts +20 -0
- package/src/lib/overlay-container.test.tsx +69 -0
- package/src/lib/overlay-container.tsx +64 -0
- package/src/lib/overlay-layer.test.tsx +139 -0
- package/src/lib/overlay-layer.tsx +81 -0
- package/src/lib/placement.ts +23 -0
- package/src/lib/props.ts +48 -0
- package/src/lib/required-if.ts +57 -0
- package/src/lib/schedule-predicates.test.ts +230 -0
- package/src/lib/schedule-predicates.ts +193 -0
- package/src/lib/select-data.ts +227 -0
- package/src/lib/sizes.ts +20 -0
- package/src/lib/test-id.ts +27 -0
- package/src/lib/theme-init-runtime.test.ts +152 -0
- package/src/lib/theme-init-runtime.ts +79 -0
- package/src/lib/theme.test.ts +223 -0
- package/src/lib/theme.ts +153 -0
- package/src/lib/tree-data.ts +159 -0
- package/src/lib/typography-size.ts +59 -0
- package/src/lib/use-container-query.test.ts +83 -0
- package/src/lib/use-container-query.ts +44 -0
- package/src/lib/use-disclosure.test.ts +85 -0
- package/src/lib/use-disclosure.ts +77 -0
- package/src/lib/use-isomorphic-layout-effect.ts +12 -0
- package/src/lib/use-local-storage.test.ts +165 -0
- package/src/lib/use-local-storage.ts +178 -0
- package/src/lib/use-logger.ts +39 -0
- package/src/lib/use-media-query.test.ts +77 -0
- package/src/lib/use-media-query.ts +35 -0
- package/src/lib/use-now.ts +59 -0
- package/src/lib/use-theme.test.ts +305 -0
- package/src/lib/use-theme.ts +279 -0
- package/src/lib/use-uncontrolled.test.ts +207 -0
- package/src/lib/use-uncontrolled.ts +85 -0
- package/src/styles.css +17 -0
- package/src/test-setup.ts +130 -0
- package/src/theme-init-script.ts +10 -0
- package/src/theme.css +1281 -0
- package/src/theme.forced-colors.test.tsx +215 -0
- package/src/theme.test.ts +221 -0
- package/src/visually-hidden-containment.test.tsx +98 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedule-types.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAC9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AAE1E;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,YAChC,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,MAAM,EACN,MAAM,EACN,MAAM,EACN,QAAQ,EACR,MAAM,CACE,CAAA;AACV,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEvE;;;;;;;;;;;;GAYG;AACH,KAAK,iBAAiB,CAAC,CAAC,GAAG,OAAO,IAAI;IACpC,wDAAwD;IACxD,EAAE,EAAE,MAAM,CAAA;IACV,4EAA4E;IAC5E,KAAK,EAAE,IAAI,CAAA;IACX,mFAAmF;IACnF,GAAG,EAAE,IAAI,CAAA;IACT,KAAK,EAAE,MAAM,CAAA;IACb;;;;+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OAMG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,WAAW,CAAC,EAAE,IAAI,CAAA;IAClB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAA;CACpC,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAA"}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { ScheduleTranslations, ScheduleView } from "./schedule-types";
|
|
3
|
+
/**
|
|
4
|
+
* The view-switcher's configurable entry list (`ScheduleProps.views`), and the
|
|
5
|
+
* pure resolvers that turn it into something `Root` and `Schedule.Toolbar`'s
|
|
6
|
+
* `ViewSwitcher` can render.
|
|
7
|
+
*
|
|
8
|
+
* Kept out of `schedule-types.ts` deliberately — that file is already past 600
|
|
9
|
+
* lines, and this directory is split strictly one-concern-per-file with a
|
|
10
|
+
* paired test each (`schedule-dates`, `schedule-layout`, `schedule-segments`,
|
|
11
|
+
* `schedule-snap`, `schedule-geometry`). The import graph stays acyclic: this
|
|
12
|
+
* module imports from `schedule-types.ts`, never the other way round.
|
|
13
|
+
*
|
|
14
|
+
* The distinction the whole file turns on: an entry's **`id`** is its
|
|
15
|
+
* *identity* (which tab is active, and what `view`/`defaultView`/
|
|
16
|
+
* `onViewChange` carry), while its **`view`** is its *renderer* (which of the
|
|
17
|
+
* three view components draws it). They coincide for the plain
|
|
18
|
+
* `"days"`/`"month"`/`"year"` entries, which is why a single `ScheduleView`
|
|
19
|
+
* sufficed before this existed — but they must not be conflated once one
|
|
20
|
+
* schedule can offer two differently-sized days-windows.
|
|
21
|
+
*/
|
|
22
|
+
/** The bare-string entries `views` accepts.
|
|
23
|
+
*
|
|
24
|
+
* `"day"`/`"week"` are **not** `ScheduleView`s — there is no "day" renderer,
|
|
25
|
+
* they are preconfigured `"days"` windows — which is exactly why this is a
|
|
26
|
+
* wider union than `ScheduleView` rather than an alias for it. `"agenda"`,
|
|
27
|
+
* by contrast, *is* a renderer and rides in on `ScheduleView`. */
|
|
28
|
+
export type ScheduleViewShorthand = "day" | "week" | ScheduleView;
|
|
29
|
+
export type ScheduleViewOptionObject = {
|
|
30
|
+
/** The entry's identity: the value `view`/`defaultView`/`onViewChange` carry,
|
|
31
|
+
* and the switcher tab's key. Arbitrary — only the six
|
|
32
|
+
* `ScheduleViewShorthand` ids come with defaults. */
|
|
33
|
+
id: string;
|
|
34
|
+
/** Which renderer draws it. Defaults from `id` when `id` is a known
|
|
35
|
+
* shorthand, otherwise `"days"`. */
|
|
36
|
+
view?: ScheduleView;
|
|
37
|
+
/** Overrides `ScheduleProps.visibleDays` while this entry is active.
|
|
38
|
+
* Meaningful only for the `"days"` renderer; Month, Year and Agenda take no
|
|
39
|
+
* window size. */
|
|
40
|
+
visibleDays?: number;
|
|
41
|
+
/** Overrides the `translations`-derived tab label. `ReactNode`, not `string`,
|
|
42
|
+
* so a custom entry can carry an icon or a `<Trans>`-style element. */
|
|
43
|
+
label?: ReactNode;
|
|
44
|
+
};
|
|
45
|
+
export type ScheduleViewOption = ScheduleViewShorthand | ScheduleViewOptionObject;
|
|
46
|
+
/** The `views` array `Schedule` is generic over. `ReadonlyArray`, not `Array`,
|
|
47
|
+
* so an `as const` tuple at the call site is assignable. */
|
|
48
|
+
export type ScheduleViews = ReadonlyArray<ScheduleViewOption>;
|
|
49
|
+
/** Reproduces the pre-`views` behaviour exactly, and is `V`'s default type
|
|
50
|
+
* argument — see `ScheduleViewId`'s note on why that matters.
|
|
51
|
+
*
|
|
52
|
+
* Deliberately excludes `"agenda"`: adding a fourth tab to every schedule
|
|
53
|
+
* that never asked for one is precisely the silent change this list exists
|
|
54
|
+
* to prevent. Opt in with `views`. */
|
|
55
|
+
export declare const DEFAULT_SCHEDULE_VIEWS: readonly ["days", "month", "year"];
|
|
56
|
+
export type DefaultScheduleViews = typeof DEFAULT_SCHEDULE_VIEWS;
|
|
57
|
+
/**
|
|
58
|
+
* One entry's id — the analogue of `TabsValue<Data>` (`tabs-data.tsx`) and
|
|
59
|
+
* `SelectValue<Data>` (`lib/select-data.ts`), which this whole mechanism is
|
|
60
|
+
* modelled on.
|
|
61
|
+
*
|
|
62
|
+
* **Deliberately distributive — do not add the `[T] extends [U]` tuple wrap.**
|
|
63
|
+
* `lib/required-if.ts` documents that idiom as mandatory for *its* shape and
|
|
64
|
+
* that is still true there; this is the opposite shape and the opposite
|
|
65
|
+
* conclusion, so the two rules only look contradictory. There, the type maps a
|
|
66
|
+
* flag onto a *requirement*, and distributing over a `boolean` yields
|
|
67
|
+
* `Required | Partial` — a union whose `Partial` half silently accepts a value
|
|
68
|
+
* missing the callback, i.e. it fails **unsafe**. Here the type is a plain
|
|
69
|
+
* projection (union in, union out), and distribution is the only thing that
|
|
70
|
+
* makes a non-literal `ScheduleViewOption[]` collapse to `string`. Tuple-wrap
|
|
71
|
+
* it and both branch checks fail against the union check type, yielding
|
|
72
|
+
* `never` — and a `view?: never` prop rejects every value a caller could pass.
|
|
73
|
+
* Verified in both directions against the repo's own tsc.
|
|
74
|
+
*/
|
|
75
|
+
type ScheduleViewIdOf<Option> = Option extends string ? Option : Option extends {
|
|
76
|
+
id: infer Id extends string;
|
|
77
|
+
} ? Id : never;
|
|
78
|
+
export type ScheduleViewId<V extends ScheduleViews> = ScheduleViewIdOf<V[number]>;
|
|
79
|
+
/**
|
|
80
|
+
* Which **renderer** each shorthand expands to — the type-level mirror of
|
|
81
|
+
* `SHORTHANDS`' `view` column below. Restated rather than derived from that
|
|
82
|
+
* table because the table is annotated `Record<ScheduleViewShorthand,
|
|
83
|
+
* ResolvedScheduleView>`, which widens every `view` to the full
|
|
84
|
+
* `ScheduleView` union and leaves nothing to read back. `SHORTHANDS` is
|
|
85
|
+
* checked against this map, so adding a seventh shorthand to one without the
|
|
86
|
+
* other is a compile error rather than a silent gap.
|
|
87
|
+
*/
|
|
88
|
+
type ShorthandRenderer = {
|
|
89
|
+
day: "days";
|
|
90
|
+
week: "days";
|
|
91
|
+
days: "days";
|
|
92
|
+
month: "month";
|
|
93
|
+
year: "year";
|
|
94
|
+
agenda: "agenda";
|
|
95
|
+
};
|
|
96
|
+
/** Mirrors `resolveScheduleViewOption`'s `base?.view ?? "days"` tail.
|
|
97
|
+
*
|
|
98
|
+
* The `[string] extends [Id]` wrap is load-bearing and is *not* the same
|
|
99
|
+
* check as `Id extends ScheduleViewShorthand` below: it asks "is this id
|
|
100
|
+
* still a widened `string`", i.e. an id computed at runtime. Such an id
|
|
101
|
+
* could name any shorthand, so it has to answer with every renderer — fail
|
|
102
|
+
* **open**. Drop the wrap and it resolves to `"days"` instead, which would
|
|
103
|
+
* forbid every Month/Year/Agenda prop on any schedule whose `views` are
|
|
104
|
+
* built dynamically. */
|
|
105
|
+
type RendererFromId<Id> = [string] extends [Id] ? ScheduleView : Id extends ScheduleViewShorthand ? ShorthandRenderer[Id] : "days";
|
|
106
|
+
/**
|
|
107
|
+
* Normalises an entry to two *always-required* fields before anything is
|
|
108
|
+
* inferred out of it.
|
|
109
|
+
*
|
|
110
|
+
* Necessary because `O extends { view?: infer Vw }` infers `"month"`, not
|
|
111
|
+
* `"month" | undefined`, from `{ id: "x"; view?: "month" }` — TS drops
|
|
112
|
+
* `undefined` when inferring through an optional target property. That loses
|
|
113
|
+
* the "the key may be absent, so fall back to the id" branch entirely, and
|
|
114
|
+
* the type then fails **closed** on exactly the entries that need the
|
|
115
|
+
* fallback most.
|
|
116
|
+
*/
|
|
117
|
+
type NormalizedOption<O> = {
|
|
118
|
+
[K in "id" | "view"]: K extends keyof O ? O[K] : undefined;
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* One entry's renderer — the renderer-side twin of `ScheduleViewIdOf` above,
|
|
122
|
+
* and a type-level mirror of `resolveScheduleViewOption`'s
|
|
123
|
+
* `option.view ?? base?.view ?? "days"` chain, evaluated in that same order.
|
|
124
|
+
*
|
|
125
|
+
* **Deliberately distributive — do not add the `[T] extends [U]` tuple
|
|
126
|
+
* wrap.** Same side of that argument as `ScheduleViewIdOf`, and the opposite
|
|
127
|
+
* side from `lib/required-if.ts`; see `ScheduleViewIdOf`'s own note for why
|
|
128
|
+
* the two rules only look contradictory. This is a plain projection (union of
|
|
129
|
+
* entries in, union of renderers out), and distribution is the only thing
|
|
130
|
+
* that resolves a mixed list like `["month", { id: "fortnight" }]` at all.
|
|
131
|
+
* Tuple-wrapped, every branch check fails against the union check type and
|
|
132
|
+
* the result is `never` — which `ScheduleProps` would read as "no renderer
|
|
133
|
+
* configured" and use to strip every renderer-scoped prop off the component.
|
|
134
|
+
* It still answers correctly for a uniform all-shorthand tuple, so a test
|
|
135
|
+
* suite that only covers `["days","month","year"]` would not catch it.
|
|
136
|
+
*/
|
|
137
|
+
type RendererOfOption<O> = O extends ScheduleViewShorthand ? ShorthandRenderer[O] : NormalizedOption<O> extends {
|
|
138
|
+
id: infer Id;
|
|
139
|
+
view: infer Vw;
|
|
140
|
+
} ? Extract<Vw, ScheduleView> | (undefined extends Vw ? RendererFromId<Id> : never) : never;
|
|
141
|
+
/**
|
|
142
|
+
* Every renderer a `views` array can put on screen — what `ScheduleProps`
|
|
143
|
+
* gates each of its slices on.
|
|
144
|
+
*
|
|
145
|
+
* `views={[]}` answers `"days"` rather than `never`, mirroring the runtime's
|
|
146
|
+
* own `FALLBACK_VIEW` (`schedule.tsx`). Without that guard an empty tuple's
|
|
147
|
+
* `V[number]` is `never`, every gate closes, and a caller who already has a
|
|
148
|
+
* `devWarn` telling them the list is empty would additionally be told that
|
|
149
|
+
* every prop they passed does not exist.
|
|
150
|
+
*/
|
|
151
|
+
export type ScheduleRenderers<V extends ScheduleViews> = [V[number]] extends [never] ? "days" : RendererOfOption<V[number]>;
|
|
152
|
+
/** A fully-defaulted entry. `label` stays optional — `scheduleViewLabel`
|
|
153
|
+
* resolves it against `translations`, which this module has no business
|
|
154
|
+
* reaching into. */
|
|
155
|
+
export type ResolvedScheduleView = {
|
|
156
|
+
id: string;
|
|
157
|
+
view: ScheduleView;
|
|
158
|
+
/** `undefined` means "inherit `ScheduleProps.visibleDays`". */
|
|
159
|
+
visibleDays?: number;
|
|
160
|
+
label?: ReactNode;
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* Expands one entry to its full shape.
|
|
164
|
+
*
|
|
165
|
+
* `{ id: "day" }` is exactly equivalent to `"day"` — the object form inherits
|
|
166
|
+
* `view` *and* `visibleDays` from the shorthand table, so there is one mental
|
|
167
|
+
* model (`{ ...shorthand, ...explicit }`) rather than two. `{ id: "day",
|
|
168
|
+
* visibleDays: 2 }` is still an ordinary override of that inherited default.
|
|
169
|
+
*
|
|
170
|
+
* Idempotent: re-resolving a `ResolvedScheduleView` returns an equivalent
|
|
171
|
+
* value, which is what lets `Root` hand its already-resolved array straight to
|
|
172
|
+
* `ViewSwitcher` instead of threading the raw one alongside it.
|
|
173
|
+
*/
|
|
174
|
+
export declare function resolveScheduleViewOption(option: ScheduleViewOption): ResolvedScheduleView;
|
|
175
|
+
/** Not memoized, deliberately: this is a `map` over 3-5 entries, the same cost
|
|
176
|
+
* class as `resolveScheduleTranslations(translations)` which `Root` already
|
|
177
|
+
* calls unmemoized on every render. */
|
|
178
|
+
export declare function resolveScheduleViews(views?: ScheduleViews): ResolvedScheduleView[];
|
|
179
|
+
export declare function findScheduleView(views: ResolvedScheduleView[], id: string | undefined): ResolvedScheduleView | undefined;
|
|
180
|
+
/**
|
|
181
|
+
* The first entry drawn by a given renderer — the drill-down's target lookup.
|
|
182
|
+
*
|
|
183
|
+
* Drill-down is specified in terms of renderers ("a day click lands in the
|
|
184
|
+
* days grid"), but it has to *set* an id, and with a configurable `views` the
|
|
185
|
+
* two are no longer the same string. Returns `undefined` when the configured
|
|
186
|
+
* entries offer no such renderer at all, which is a real configuration (e.g.
|
|
187
|
+
* `views={["month", "year"]}`) and is why callers must handle the miss rather
|
|
188
|
+
* than assume a target exists.
|
|
189
|
+
*/
|
|
190
|
+
export declare function findScheduleViewByRenderer(views: ResolvedScheduleView[], view: ScheduleView): ResolvedScheduleView | undefined;
|
|
191
|
+
/** Label precedence: an explicit `label`, then the translation for a shorthand
|
|
192
|
+
* id, then the raw `id`. The last is a deliberate fallback rather than a
|
|
193
|
+
* warning — a custom entry's id is the only thing the kit knows about it, and
|
|
194
|
+
* rendering it is more useful than rendering nothing. */
|
|
195
|
+
export declare function scheduleViewLabel(view: ResolvedScheduleView, t: Required<ScheduleTranslations>): ReactNode;
|
|
196
|
+
export {};
|
|
197
|
+
//# sourceMappingURL=schedule-views.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedule-views.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-views.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE1E;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;;;mEAKmE;AACnE,MAAM,MAAM,qBAAqB,GAAG,KAAK,GAAG,MAAM,GAAG,YAAY,CAAA;AAEjE,MAAM,MAAM,wBAAwB,GAAG;IACrC;;0DAEsD;IACtD,EAAE,EAAE,MAAM,CAAA;IACV;yCACqC;IACrC,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB;;uBAEmB;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;4EACwE;IACxE,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,qBAAqB,GAAG,wBAAwB,CAAA;AAEjF;6DAC6D;AAC7D,MAAM,MAAM,aAAa,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|
|
|
1
|
+
import { type DaysViewBaseProps } from "./schedule-days-view";
|
|
2
|
+
import type { ScheduleSlotProps } from "./schedule-types";
|
|
3
|
+
/**
|
|
4
|
+
* RFC §17a (`docs/rfcs/schedule.md`) — a thin, preconfigured `DaysView` with
|
|
5
|
+
* `visibleDays` fixed to `7`, reinstated as a convenience wrapper (not a
|
|
6
|
+
* reimplementation — the whole point of the `DaysView` merge was one
|
|
7
|
+
* underlying engine) for the common full-week case.
|
|
8
|
+
*
|
|
9
|
+
* Unlike `DayView`, `align` stays on the public surface — matching the
|
|
10
|
+
* old, pre-merge `WeekView`'s `firstDayOfWeek` prop, a week genuinely has a
|
|
11
|
+
* start-of-week concept to configure (unlike a single day, see `DayView`).
|
|
12
|
+
*
|
|
13
|
+
* Renders `data-schedule-part="days-view"`, same as `DaysView` itself —
|
|
14
|
+
* this genuinely mounts one, so there's exactly one source of truth for
|
|
15
|
+
* that attribute rather than a second value to keep in sync.
|
|
16
|
+
*/
|
|
17
|
+
export type WeekViewProps<P = unknown> = Omit<DaysViewBaseProps<P>, "visibleDays"> & ScheduleSlotProps;
|
|
18
|
+
export declare function WeekView<P = unknown>(props: WeekViewProps<P>): import("react").JSX.Element;
|
|
19
|
+
//# sourceMappingURL=schedule-week-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedule-week-view.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-week-view.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAEzD;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,OAAO,IAAI,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,GAChF,iBAAiB,CAAA;AAEnB,wBAAgB,QAAQ,CAAC,CAAC,GAAG,OAAO,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,+BAE5D"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type HTMLArkProps } from "@ark-ui/react";
|
|
2
|
+
import type { WithTestId } from "../../lib/test-id";
|
|
3
|
+
import type { AnchorDateProps, PaginationChromeProps, ScheduleDayClickProps, ScheduleDayDisabledProps, ScheduleSharedProps } from "./schedule-types";
|
|
4
|
+
/**
|
|
5
|
+
* RFC §10 (`docs/rfcs/schedule.md`) — the year overview: 12 mini-months, no
|
|
6
|
+
* per-event rendering, ever. A day shows a neutral dot for exactly one
|
|
7
|
+
* event, a capped numeral ("9+") for more, and nothing for zero — mixing up
|
|
8
|
+
* to 9 event colors into ~2px dots at this cell size would read as
|
|
9
|
+
* noise, not signal. Disabled days get a muted day-number only (Month's
|
|
10
|
+
* diagonal-stripe overlay is illegible at mini-month scale).
|
|
11
|
+
*
|
|
12
|
+
* Each mini-month renders only its own real days — adjacent-month padding
|
|
13
|
+
* is blank cells (no number, no dot), not `MonthView`'s dimmed-but-real
|
|
14
|
+
* adjacent days, since duplicating a day's dot across two neighboring
|
|
15
|
+
* mini-months (the seam) would be genuinely confusing at a glance.
|
|
16
|
+
*
|
|
17
|
+
* `repeat(4, 1fr)` is the RFC's specified desktop shape; a fixed 4-column
|
|
18
|
+
* grid of 12 mini-calendars is illegible on a narrow viewport, and nothing
|
|
19
|
+
* in the RFC forbids stepping that down responsively, so this falls back to
|
|
20
|
+
* fewer columns below `sm`/`lg`.
|
|
21
|
+
*/
|
|
22
|
+
export type YearViewProps<P = unknown> = ScheduleSharedProps<P> & ScheduleDayClickProps & ScheduleDayDisabledProps & AnchorDateProps & PaginationChromeProps & HTMLArkProps<"div"> & WithTestId & ScheduleYearOnlyProps;
|
|
23
|
+
/** Year only. Named so `ScheduleProps` can gate it by name rather than
|
|
24
|
+
* `Pick`ing the key out of `YearViewProps` — the hand-maintained shape that
|
|
25
|
+
* left `maxEventsPerDay` unreachable from `Root` for two releases. */
|
|
26
|
+
export type ScheduleYearOnlyProps = {
|
|
27
|
+
/**
|
|
28
|
+
* Mini-month header click, with that month's own start instant — the
|
|
29
|
+
* month-granularity twin of `onDayClick`, and gated by presence the same
|
|
30
|
+
* way: absent, the header is inert text and isn't focusable; present, it
|
|
31
|
+
* becomes a real button. RFC §10 calls this out as the sanctioned
|
|
32
|
+
* drill-down, and `Schedule`/`Schedule.Root` defaults it to switching to
|
|
33
|
+
* Month view for that month.
|
|
34
|
+
*/
|
|
35
|
+
onMonthClick?: (date: Date) => void;
|
|
36
|
+
};
|
|
37
|
+
export declare function YearView<P = unknown>({ data, staticEvents, onDayClick, onMonthClick, locale: localeProp, timeZone: timeZoneProp, translations, classNames, className, date, defaultDate, onDateChange, withPagination, withNowButton, now, dayDisabled, testId, ...rest }: YearViewProps<P>): import("react").JSX.Element;
|
|
38
|
+
//# sourceMappingURL=schedule-year-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedule-year-view.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-year-view.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAA;AAKtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAWnD,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,mBAAmB,EACpB,MAAM,kBAAkB,CAAA;AAGzB;;;;;;;;;;;;;;;;;GAiBG;AAOH,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,OAAO,IAAI,mBAAmB,CAAC,CAAC,CAAC,GAC7D,qBAAqB,GACrB,wBAAwB,GACxB,eAAe,GACf,qBAAqB,GACrB,YAAY,CAAC,KAAK,CAAC,GACnB,UAAU,GACV,qBAAqB,CAAA;AAEvB;;uEAEuE;AACvE,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAA;CACpC,CAAA;AAKD,wBAAgB,QAAQ,CAAC,CAAC,GAAG,OAAO,EAAE,EACpC,IAAI,EACJ,YAAiB,EACjB,UAAU,EACV,YAAY,EACZ,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,YAAY,EACtB,YAAY,EACZ,UAAU,EACV,SAAS,EACT,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,cAAqB,EACrB,aAAqB,EACrB,GAAG,EACH,WAAW,EACX,MAAM,EACN,GAAG,IAAI,EACR,EAAE,aAAa,CAAC,CAAC,CAAC,+BAiNlB"}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { type HTMLArkProps } from "@ark-ui/react";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
import type { AvailableIf, UnavailableProps } from "../../lib/available-if";
|
|
4
|
+
import type { WithTestId } from "../../lib/test-id";
|
|
5
|
+
import { type ScheduleAgendaOnlyProps } from "./schedule-agenda-view";
|
|
6
|
+
import { type ScheduleMonthOnlyProps } from "./schedule-month-view";
|
|
7
|
+
import type { AnchorDateProps, EditableCallbacks, FirstDayOfWeek, ScheduleAlign, ScheduleDayClickProps, ScheduleDayDisabledProps, ScheduleEditGesture, ScheduleEmptyProps, ScheduleEventProps, ScheduleOverflowProps, ScheduleSharedProps, ScheduleSlotProps, ScheduleTimedProps, ScheduleView } from "./schedule-types";
|
|
8
|
+
import type { DefaultScheduleViews, ScheduleRenderers, ScheduleViewId, ScheduleViews } from "./schedule-views";
|
|
9
|
+
import { type ScheduleYearOnlyProps } from "./schedule-year-view";
|
|
10
|
+
/**
|
|
11
|
+
* RFC §1/§3 (`docs/rfcs/schedule.md`) — `Schedule` (`Root`): orchestrates
|
|
12
|
+
* view-switching and the shared anchor date via `Schedule.Toolbar`,
|
|
13
|
+
* delegating all rendering to whichever view is active
|
|
14
|
+
* (`ts-pattern match(view).exhaustive()`). Composed by intersection from the
|
|
15
|
+
* views' own prop slices, never a context provider — the same "share
|
|
16
|
+
* via a superset type, not context" mechanism the RFC establishes
|
|
17
|
+
* throughout. Passes `withPagination={false} withNowButton={false}` to
|
|
18
|
+
* whichever view it renders, since `Root`'s own toolbar already covers both
|
|
19
|
+
* — a standalone view keeps its own built-in chrome exactly as before.
|
|
20
|
+
*
|
|
21
|
+
* `Editable` (inferred from a literal `editable` at the call site — see
|
|
22
|
+
* `EditableCallbacks`) makes a granted gesture's matching callback a compile
|
|
23
|
+
* error to omit, on top of the existing dev-mode runtime warning
|
|
24
|
+
* (`ScheduleTimedProps.editable`'s own doc comment). `Root`-only: the
|
|
25
|
+
* standalone `DaysView`/`DayView`/`WeekView` don't get this generic, for the
|
|
26
|
+
* reason `EditableCallbacks` explains.
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* Is any renderer in `R` among the ones `V` actually puts on screen?
|
|
30
|
+
*
|
|
31
|
+
* Three distribution decisions, each load-bearing and each proved against the
|
|
32
|
+
* repo's own tsc before this shipped:
|
|
33
|
+
*
|
|
34
|
+
* - `Extract<R, …>` **distributes over `R`**, which is what makes this "any
|
|
35
|
+
* of" rather than "all of". `[R] extends [ScheduleRenderers<V>]` reads as
|
|
36
|
+
* ALL of `R` and would forbid `dayDisabled` under `views={["days","month"]}`
|
|
37
|
+
* — Month is rendering, so it is plainly legal there.
|
|
38
|
+
* - `[…] extends [never]` **must** be tuple-wrapped. A naked
|
|
39
|
+
* `Active extends never` distributes, `never` in gives `never` out, and
|
|
40
|
+
* `X & never` is `never` — collapsing the whole props type so that every
|
|
41
|
+
* attribute errors, including the ones the caller got right.
|
|
42
|
+
* - `ScheduleRenderers<V>` must itself stay distributive; see its own note.
|
|
43
|
+
*/
|
|
44
|
+
type HasRenderer<V extends ScheduleViews, R extends ScheduleView> = [
|
|
45
|
+
Extract<R, ScheduleRenderers<V>>
|
|
46
|
+
] extends [never] ? false : true;
|
|
47
|
+
/** `align`'s type narrows with `V` as well as its availability: `"relative"`
|
|
48
|
+
* is a rolling *days* window, and `MonthView` has no use for one —
|
|
49
|
+
* `resolveWeekStartDay` drops it on the floor. With `views={["month"]}`,
|
|
50
|
+
* `align="relative"` is therefore a compile error rather than a silent
|
|
51
|
+
* no-op, which is the one silent drop that lives inside a prop's value
|
|
52
|
+
* rather than in the prop itself. */
|
|
53
|
+
type ScheduleAlignFor<V extends ScheduleViews> = HasRenderer<V, "days"> extends true ? ScheduleAlign : FirstDayOfWeek;
|
|
54
|
+
/**
|
|
55
|
+
* RFC §1/§3 (`docs/rfcs/schedule.md`) — `Schedule` (`Root`): orchestrates
|
|
56
|
+
* view-switching and the shared anchor date via `Schedule.Toolbar`,
|
|
57
|
+
* delegating all rendering to whichever view is active
|
|
58
|
+
* (`ts-pattern match(view).exhaustive()`). Composed by intersection from the
|
|
59
|
+
* views' own prop slices, never a context provider — the same "share via a
|
|
60
|
+
* superset type, not context" mechanism the RFC establishes throughout.
|
|
61
|
+
* Passes `withPagination={false} withNowButton={false}` to whichever view it
|
|
62
|
+
* renders, since `Root`'s own toolbar already covers both — a standalone view
|
|
63
|
+
* keeps its own built-in chrome exactly as before.
|
|
64
|
+
*
|
|
65
|
+
* **Each slice is gated on `views` actually configuring a renderer that reads
|
|
66
|
+
* it** (`lib/available-if.ts`). `<Schedule views={["month","year"]}
|
|
67
|
+
* slotDuration={30} />` used to typecheck and do nothing; it is now a compile
|
|
68
|
+
* error that says which renderer it wanted. The RFC already claimed this
|
|
69
|
+
* invariant — "structurally absent elsewhere, enforcing the view restriction
|
|
70
|
+
* at the type level" — and it held for every view *except* `Root`, which
|
|
71
|
+
* intersected the days slice unconditionally.
|
|
72
|
+
*
|
|
73
|
+
* Omitting `views` leaves `V` at `DefaultScheduleViews`, which configures
|
|
74
|
+
* days, month and year, so the default call site keeps every prop it had.
|
|
75
|
+
* Anything `views` cannot be resolved to — a `ScheduleViewOption[]` variable,
|
|
76
|
+
* a ternary between two tuples — widens to every renderer and likewise
|
|
77
|
+
* changes nothing; see `ScheduleRenderers`.
|
|
78
|
+
*
|
|
79
|
+
* `Editable` (inferred from a literal `editable` at the call site — see
|
|
80
|
+
* `EditableCallbacks`) makes a granted gesture's matching callback a compile
|
|
81
|
+
* error to omit, on top of the existing dev-mode runtime warning
|
|
82
|
+
* (`ScheduleTimedProps.editable`'s own doc comment). `Root`-only: the
|
|
83
|
+
* standalone `DaysView`/`DayView`/`WeekView` don't get this generic, for the
|
|
84
|
+
* reason `EditableCallbacks` explains.
|
|
85
|
+
*/
|
|
86
|
+
export type ScheduleProps<P = unknown, Editable extends boolean | readonly ScheduleEditGesture[] = false, V extends ScheduleViews = DefaultScheduleViews> = ScheduleSharedProps<P> & AnchorDateProps & Omit<HTMLArkProps<"div">, "onSelect"> & WithTestId & AvailableIf<HasRenderer<V, "days" | "month" | "year">, ScheduleDayClickProps, "requires a days, month or year renderer in `views` — an agenda has no day to click"> & AvailableIf<HasRenderer<V, "days" | "month" | "agenda">, ScheduleEventProps<P>, "requires a days, month or agenda renderer in `views` — year draws density dots, never an event to select"> & AvailableIf<HasRenderer<V, "days" | "agenda">, ScheduleEmptyProps, "requires a days or agenda renderer in `views` — month and year always draw a calendar, so they have no empty state"> & AvailableIf<HasRenderer<V, "days" | "month">, ScheduleOverflowProps<P>, 'requires a days or month renderer in `views` — year and agenda cap nothing, so they have no "+N" to disclose'> & AvailableIf<HasRenderer<V, "days" | "month">, {
|
|
87
|
+
/**
|
|
88
|
+
* Locale default when omitted; `"relative"` starts the days-window at
|
|
89
|
+
* the anchor date itself instead of snapping to a calendar-week
|
|
90
|
+
* boundary. Named `align`, not `startOfWeek` — this same value also
|
|
91
|
+
* governs Month's window, and Root's own days-window isn't necessarily
|
|
92
|
+
* a week (`visibleDays` can be anything), so a literal "start of week"
|
|
93
|
+
* name would mislead here. Declared on `Root` rather than reused from
|
|
94
|
+
* `MonthViewProps.startOfWeek`, which is both narrower and differently
|
|
95
|
+
* named; it is narrowed via `resolveWeekStartDay` when forwarded to
|
|
96
|
+
* `MonthView` below.
|
|
97
|
+
*
|
|
98
|
+
* Its **type** follows `views` as well as its availability:
|
|
99
|
+
* `"relative"` is a rolling days window, so with no days renderer
|
|
100
|
+
* configured this is `FirstDayOfWeek` and `align="relative"` is a
|
|
101
|
+
* compile error rather than a silent no-op — see `ScheduleAlignFor`.
|
|
102
|
+
*/
|
|
103
|
+
align?: ScheduleAlignFor<V>;
|
|
104
|
+
}, "requires a days or month renderer in `views`"> & AvailableIf<HasRenderer<V, "days">, Omit<ScheduleTimedProps<P>, "editable" | "onEventChange" | "onEventRemove" | "onEventCreate"> & {
|
|
105
|
+
/** Fallback window size, in days, for the `"days"` renderer. Default `7`.
|
|
106
|
+
* An active entry that pins its own `visibleDays` (`"day"` and `"week"`
|
|
107
|
+
* do) overrides this; `"days"` deliberately does not, so this prop keeps
|
|
108
|
+
* working exactly as before under the default entries. */
|
|
109
|
+
visibleDays?: number;
|
|
110
|
+
/**
|
|
111
|
+
* How a **reveal** scrolls the days grid — the day brought into view by
|
|
112
|
+
* navigating to it, and the chip brought into view by selecting it.
|
|
113
|
+
* Default `"auto"`, i.e. no animation.
|
|
114
|
+
*
|
|
115
|
+
* Replaces the former `scrollBehavior`, which borrowed the name of a CSS
|
|
116
|
+
* property whose job it does not do — it never governed the Now button
|
|
117
|
+
* (which always animates) nor a page turn (CSS keyframes), only reveals.
|
|
118
|
+
*
|
|
119
|
+
* A reveal is a side effect of going somewhere, not a gesture of its own,
|
|
120
|
+
* and an animated one reads as the grid drifting rather than as feedback
|
|
121
|
+
* — so it is opt-in, unlike the Now button, whose scroll answers a press
|
|
122
|
+
* and keeps animating. `"auto"` defers to the platform (and to any CSS
|
|
123
|
+
* `scroll-behavior` you have set, which is the right way to turn this on
|
|
124
|
+
* globally); `"instant"` refuses to animate whatever the CSS says.
|
|
125
|
+
*
|
|
126
|
+
* `"smooth"` still yields to `prefers-reduced-motion` — this can ask for
|
|
127
|
+
* motion, it cannot override someone asking for none.
|
|
128
|
+
*/
|
|
129
|
+
revealBehavior?: ScrollBehavior;
|
|
130
|
+
}, "requires a days renderer in `views` — only a timed grid has hours, slots and gestures"> & AvailableIf<HasRenderer<V, "days">, ScheduleSlotProps, "requires a days renderer in `views` — only a timed grid has slots"> & (HasRenderer<V, "days"> extends true ? {
|
|
131
|
+
editable?: Editable;
|
|
132
|
+
} & EditableCallbacks<P, Editable> : UnavailableProps<Record<"editable" | "onEventChange" | "onEventRemove" | "onEventCreate", unknown>, "requires a days renderer in `views` — only a timed grid has gestures to permit">) & AvailableIf<HasRenderer<V, "month">, ScheduleMonthOnlyProps, "requires a month renderer in `views`"> & AvailableIf<HasRenderer<V, "month" | "year">, ScheduleDayDisabledProps, "requires a month or year renderer in `views` — the days grid restricts by time range, via `slotDisabled`"> & AvailableIf<HasRenderer<V, "year">, ScheduleYearOnlyProps, "requires a year renderer in `views`"> & AvailableIf<HasRenderer<V, "agenda">, ScheduleAgendaOnlyProps<P>, "requires an agenda renderer in `views` — note the default `views` does not include one"> & {
|
|
133
|
+
/**
|
|
134
|
+
* Which entries the view switcher offers, in order. Default
|
|
135
|
+
* `["days", "month", "year"]` — exactly the pre-`views` behaviour.
|
|
136
|
+
*
|
|
137
|
+
* Entries are `"day"`/`"week"`/`"days"`/`"month"`/`"year"` shorthands or
|
|
138
|
+
* `{ id, view, visibleDays, label }` objects; see `schedule-views.ts` for
|
|
139
|
+
* the id-vs-renderer distinction. `Schedule` is generic over this array,
|
|
140
|
+
* so `view`/`defaultView`/`onViewChange` below carry the exact union of
|
|
141
|
+
* ids you pass — hoist it with `as const` to keep that narrowing.
|
|
142
|
+
*/
|
|
143
|
+
views?: V;
|
|
144
|
+
/** The active entry's **id**. Note an entry's own `view` field names its
|
|
145
|
+
* *renderer*; these three props carry the *identity*. They coincide under
|
|
146
|
+
* the default entries. */
|
|
147
|
+
view?: ScheduleViewId<V>;
|
|
148
|
+
defaultView?: ScheduleViewId<V>;
|
|
149
|
+
onViewChange?: (view: ScheduleViewId<V>) => void;
|
|
150
|
+
/** Default `true` — the standalone-view default is `false`, since a bare
|
|
151
|
+
* `DaysView`/... has no toolbar row of its own to put it in unless
|
|
152
|
+
* `withPagination` is also on; `Root` always has one. */
|
|
153
|
+
withNowButton?: boolean;
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* The public, view-gated signature. `const Editable`/`const V` are what let a
|
|
157
|
+
* call site's own literals narrow — an inline `views={["month","year"]}` in
|
|
158
|
+
* JSX narrows `V` with no `as const` needed (a *hoisted* variable still does;
|
|
159
|
+
* see the docs page).
|
|
160
|
+
*/
|
|
161
|
+
export declare function ScheduleRoot<P = unknown, const Editable extends boolean | readonly ScheduleEditGesture[] = false, const V extends ScheduleViews = DefaultScheduleViews>(props: ScheduleProps<P, Editable, V>): ReactNode;
|
|
162
|
+
export {};
|
|
163
|
+
//# sourceMappingURL=schedule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedule.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,OAAO,CAAA;AAEzD,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAK3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEnD,OAAO,EAAc,KAAK,uBAAuB,EAAE,MAAM,wBAAwB,CAAA;AAKjF,OAAO,EAAa,KAAK,sBAAsB,EAAE,MAAM,uBAAuB,CAAA;AAE9E,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,qBAAqB,EACrB,wBAAwB,EACxB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,iBAAiB,EAEjB,kBAAkB,EAClB,YAAY,EACb,MAAM,kBAAkB,CAAA;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,CACT,WAAW,CAAC,CAAC,EAAE,QAAQ,CAAC,EACxB,uBAAuB,CAAC,CAAC,CAAC,EAC1B,wFAAwF,CACzF,GAAG;IACF;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,CAAC,CAAA;IACT;;+BAE2B;IAC3B,IAAI,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,CAAA;IACxB,WAAW,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,CAAA;IAC/B,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,KAAK,IAAI,CAAA;IAChD;;8DAE0D;IAC1D,aAAa,CAAC,EAAE,OAAO,CAAA;CAKxB,CAAA;AAmCH;;;;;GAKG;AACH,wBAAgB,YAAY,CAC1B,CAAC,GAAG,OAAO,EACX,KAAK,CAAC,QAAQ,SAAS,OAAO,GAAG,SAAS,mBAAmB,EAAE,GAAG,KAAK,EACvE,KAAK,CAAC,CAAC,SAAS,aAAa,GAAG,oBAAoB,EACpD,KAAK,EAAE,aAAa,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,GAAG,SAAS,CAAA"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { CSSProperties, PointerEvent as ReactPointerEvent } from "react";
|
|
2
|
+
import type { ScheduleSlotPredicate } from "../../lib/schedule-predicates";
|
|
3
|
+
import type { ScheduleEventCreateHandler } from "./schedule-types";
|
|
4
|
+
export type UseEventCreateOptions = {
|
|
5
|
+
/** The column the gesture anchors in. Every other day it reaches is derived
|
|
6
|
+
* from this one by a calendar-day offset, never by indexing a `days` array
|
|
7
|
+
* — that array belongs to a render this gesture can outlive, since paging
|
|
8
|
+
* mid-gesture unmounts the component that supplied it. */
|
|
9
|
+
day: Date;
|
|
10
|
+
/** 0-based index of this column in the range rendered at pointerdown. */
|
|
11
|
+
dayIndex: number;
|
|
12
|
+
timeZone: string;
|
|
13
|
+
startHour: number;
|
|
14
|
+
endHour: number;
|
|
15
|
+
/** Minutes — both the grid's slot spacing and the create snap increment. */
|
|
16
|
+
slotDuration: number;
|
|
17
|
+
/** Minutes. Defaults to `slotDuration` — a draft can never be shorter than
|
|
18
|
+
* one snap unit, mirroring `use-event-resize.ts`'s own floor. */
|
|
19
|
+
minDurationMinutes?: number;
|
|
20
|
+
/** Minutes. The ceiling on each drafted event — see `durationBounds`. */
|
|
21
|
+
maxDurationMinutes?: number;
|
|
22
|
+
slotDisabled?: ScheduleSlotPredicate;
|
|
23
|
+
/** Whether `"create"` is granted — gates the draft-preview visuals and the
|
|
24
|
+
* actual `onEventCreate` commit, but *not* pointer tracking itself (needed
|
|
25
|
+
* regardless, to resolve click-vs-drag for `onGridClick`). */
|
|
26
|
+
editableCreate: boolean;
|
|
27
|
+
/** RFC §12a, axis A already resolved for this gesture by the caller. */
|
|
28
|
+
preventOverlap?: boolean;
|
|
29
|
+
/** RFC §12a, axis B already resolved by the caller, window-wide and
|
|
30
|
+
* unclipped — so a draft crossing midnight validates against whatever sits
|
|
31
|
+
* on the far side of the boundary. */
|
|
32
|
+
overlapCandidates?: {
|
|
33
|
+
id: string;
|
|
34
|
+
start: Date;
|
|
35
|
+
end: Date;
|
|
36
|
+
}[];
|
|
37
|
+
onEventCreate?: ScheduleEventCreateHandler;
|
|
38
|
+
onGridClick?: (date: Date) => void;
|
|
39
|
+
/** Page the view by one range, after the pointer has been held against an
|
|
40
|
+
* edge the grid can no longer scroll. Omitting it leaves auto-scroll
|
|
41
|
+
* working and simply never pages. */
|
|
42
|
+
onPaginate?: (direction: -1 | 1) => void;
|
|
43
|
+
locale?: string;
|
|
44
|
+
};
|
|
45
|
+
export declare function useEventCreate({ day, dayIndex, timeZone, startHour, endHour, slotDuration, minDurationMinutes, maxDurationMinutes, slotDisabled, editableCreate, preventOverlap, overlapCandidates, onEventCreate, onGridClick, onPaginate, locale, }: UseEventCreateOptions): {
|
|
46
|
+
getColumnProps: () => {
|
|
47
|
+
onPointerDown: (e: ReactPointerEvent<HTMLElement>) => void;
|
|
48
|
+
onPointerMove: (e: ReactPointerEvent<HTMLElement>) => void;
|
|
49
|
+
onPointerUp: (e: ReactPointerEvent<HTMLElement>) => void;
|
|
50
|
+
onPointerCancel: (e: ReactPointerEvent<HTMLElement>) => void;
|
|
51
|
+
style: CSSProperties;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=use-event-create.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-event-create.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/use-event-create.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,IAAI,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAE7E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AAoB1E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAgElE,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;+DAG2D;IAC3D,GAAG,EAAE,IAAI,CAAA;IACT,yEAAyE;IACzE,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,4EAA4E;IAC5E,YAAY,EAAE,MAAM,CAAA;IACpB;sEACkE;IAClE,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,yEAAyE;IACzE,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,YAAY,CAAC,EAAE,qBAAqB,CAAA;IACpC;;mEAE+D;IAC/D,cAAc,EAAE,OAAO,CAAA;IACvB,wEAAwE;IACxE,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB;;2CAEuC;IACvC,iBAAiB,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,IAAI,CAAC;QAAC,GAAG,EAAE,IAAI,CAAA;KAAE,EAAE,CAAA;IAC5D,aAAa,CAAC,EAAE,0BAA0B,CAAA;IAC1C,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAA;IAClC;;0CAEsC;IACtC,UAAU,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,IAAI,CAAA;IACxC,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAgED,wBAAgB,cAAc,CAAC,EAC7B,GAAG,EACH,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,OAAO,EACP,YAAY,EACZ,kBAAiC,EACjC,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,UAAU,EACV,MAAM,GACP,EAAE,qBAAqB;;2BAuPhB,iBAAiB,CAAC,WAAW,CAAC;2BAiG9B,iBAAiB,CAAC,WAAW,CAAC;yBAW9B,iBAAiB,CAAC,WAAW,CAAC;;eA0BE,aAAa;;EAGpD"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import type { PointerEvent as ReactPointerEvent } from "react";
|
|
2
|
+
import type { ScheduleSlotPredicate } from "../../lib/schedule-predicates";
|
|
3
|
+
import type { ScheduleEvent } from "./schedule-types";
|
|
4
|
+
/**
|
|
5
|
+
* RFC §6 (`docs/rfcs/schedule.md`) move-drag, extended to two axes — vertical
|
|
6
|
+
* moves the time, horizontal moves the day. Still modeled on the toast
|
|
7
|
+
* notifier's swipe-to-dismiss (`notification/create-notifier.tsx`): a plain ref
|
|
8
|
+
* (not state) tracks the in-flight gesture, and a movement under `CLICK_SLOP`
|
|
9
|
+
* is a click rather than a drag.
|
|
10
|
+
*
|
|
11
|
+
* Three things differ from the single-axis version, all forced by the second
|
|
12
|
+
* axis:
|
|
13
|
+
*
|
|
14
|
+
* **Listeners live on the grid, not the chip.** `setPointerCapture` targets the
|
|
15
|
+
* grid element and `pointermove`/`pointerup` are attached to it imperatively
|
|
16
|
+
* for the gesture's duration. A chip-owned gesture dies the moment its chip
|
|
17
|
+
* unmounts — which now genuinely happens mid-drag, because holding at the
|
|
18
|
+
* grid's edge pages the view and the dragged event's own day can leave the
|
|
19
|
+
* window. The listeners are removed on every terminating path, including
|
|
20
|
+
* `lostpointercapture`, so nothing leaks if the element goes away underneath.
|
|
21
|
+
*
|
|
22
|
+
* **The preview is a grid-level ghost, not a transform on the chip** — see
|
|
23
|
+
* `schedule-drag-ghost.tsx` for why. The chip itself only dims.
|
|
24
|
+
*
|
|
25
|
+
* **The target day comes from measured column rects, not `elementFromPoint`.**
|
|
26
|
+
* The obvious approach is wrong here: the preview and the chip both sit under
|
|
27
|
+
* the pointer for the whole gesture, so hit-testing would keep resolving to
|
|
28
|
+
* the source column. Rects are also deterministic, and mockable in jsdom,
|
|
29
|
+
* which is what makes a cross-day commit unit-testable at all.
|
|
30
|
+
*/
|
|
31
|
+
export type UseEventDragOptions = {
|
|
32
|
+
event: ScheduleEvent;
|
|
33
|
+
/** 0-based index of the column this chip is painted in. A drag's day delta
|
|
34
|
+
* is measured from the **grabbed piece**, not from the event's start: grab
|
|
35
|
+
* the Tuesday half of a Mon→Tue event, drop it on Wednesday, and that means
|
|
36
|
+
* "+1 day", not "move the start to Wednesday". */
|
|
37
|
+
dayIndex: number;
|
|
38
|
+
/** That column's date. The preview needs a real day to measure the
|
|
39
|
+
* candidate's band against — a vertical drag can move the event to another
|
|
40
|
+
* day without the pointer ever leaving its column. */
|
|
41
|
+
day: Date;
|
|
42
|
+
timeZone: string;
|
|
43
|
+
/** Minutes from midnight at which the rendered window starts — the ghost's
|
|
44
|
+
* own percentage math is relative to it, exactly like a chip's `top`. */
|
|
45
|
+
startHour: number;
|
|
46
|
+
/** `(endHour - startHour) * 60`, the percent denominator. */
|
|
47
|
+
totalWindowMinutes: number;
|
|
48
|
+
/** The band's own end hour, for clipping the preview to a partial window. */
|
|
49
|
+
endHour: number;
|
|
50
|
+
/**
|
|
51
|
+
* Whether this event can actually be dragged (the caller's already-
|
|
52
|
+
* resolved `editable` grant for `"drag"`). When `false`, pointer down/up
|
|
53
|
+
* are still tracked so click-to-open-details keeps working, but nothing
|
|
54
|
+
* previews and a drag past `CLICK_SLOP` is silently ignored — not a
|
|
55
|
+
* rejected commit, just not draggable at all.
|
|
56
|
+
*/
|
|
57
|
+
enabled?: boolean;
|
|
58
|
+
/** Minutes — both the grid's slot spacing and the drag snap increment. */
|
|
59
|
+
slotDuration: number;
|
|
60
|
+
slotDisabled?: ScheduleSlotPredicate;
|
|
61
|
+
/** RFC §12a, axis A already resolved for this gesture by the caller. */
|
|
62
|
+
preventOverlap?: boolean;
|
|
63
|
+
/** RFC §12a, axis B already resolved by the caller — resolved over the whole
|
|
64
|
+
* visible window, so a cross-day drop validates against its *target* day.
|
|
65
|
+
* The event's own pre-drag range is excluded via `event.id`. */
|
|
66
|
+
overlapCandidates?: {
|
|
67
|
+
id: string;
|
|
68
|
+
start: Date;
|
|
69
|
+
end: Date;
|
|
70
|
+
}[];
|
|
71
|
+
onEventChange?: (event: ScheduleEvent, next: {
|
|
72
|
+
start: Date;
|
|
73
|
+
end: Date;
|
|
74
|
+
}, reason: "drag" | "resize") => void;
|
|
75
|
+
onEventClick?: (event: ScheduleEvent) => void;
|
|
76
|
+
/**
|
|
77
|
+
* Page the view by one range. Called only when the pointer is held against
|
|
78
|
+
* an edge the grid can no longer scroll past, for `PAGINATE_DWELL_MS`.
|
|
79
|
+
*
|
|
80
|
+
* Auto-**scroll** and auto-**navigate** are deliberately separate concerns
|
|
81
|
+
* (Syncfusion splits them as `allowScroll`/`allowNavigation` for the same
|
|
82
|
+
* reason): scrolling only reveals what is already in the range, while paging
|
|
83
|
+
* changes the range itself. Omitting this leaves auto-scroll working and
|
|
84
|
+
* simply never pages — a consumer holding `date` controlled decides for
|
|
85
|
+
* itself, degrading to "no pagination" rather than to a broken gesture.
|
|
86
|
+
*/
|
|
87
|
+
onPaginate?: (direction: -1 | 1) => void;
|
|
88
|
+
locale?: string;
|
|
89
|
+
};
|
|
90
|
+
export declare function useEventDrag({ event, dayIndex, day, timeZone, startHour, totalWindowMinutes, endHour, enabled, slotDuration, slotDisabled, preventOverlap, overlapCandidates, onEventChange, onEventClick, onPaginate, locale, }: UseEventDragOptions): {
|
|
91
|
+
getBodyProps: () => {
|
|
92
|
+
onPointerDown: (e: ReactPointerEvent<HTMLElement>) => void;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=use-event-drag.d.ts.map
|