@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,690 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import { ark, type HTMLArkProps } from "@ark-ui/react"
|
|
4
|
+
import type { ReactNode } from "react"
|
|
5
|
+
import { useRef } from "react"
|
|
6
|
+
import { cn } from "../../lib/cn"
|
|
7
|
+
import { focusStyles } from "../../lib/focus-styles"
|
|
8
|
+
import { useLocale, useTimeZone } from "../../lib/intl"
|
|
9
|
+
import { OverlayContainerProvider } from "../../lib/overlay-container"
|
|
10
|
+
import { props as dataProps } from "../../lib/props"
|
|
11
|
+
import type { WithTestId } from "../../lib/test-id"
|
|
12
|
+
import { useUncontrolled } from "../../lib/use-uncontrolled"
|
|
13
|
+
import { Popover } from "../popover/popover"
|
|
14
|
+
import {
|
|
15
|
+
dayKey,
|
|
16
|
+
enumerateDays,
|
|
17
|
+
eventOccursOnDay,
|
|
18
|
+
getVisibleRange,
|
|
19
|
+
isSameMonth,
|
|
20
|
+
isToday,
|
|
21
|
+
} from "./schedule-dates"
|
|
22
|
+
import { ScheduleDisabledOverlay } from "./schedule-disabled-overlay"
|
|
23
|
+
import { ScheduleEventDetailsContent } from "./schedule-event-details"
|
|
24
|
+
import { EVENT_COLOR_CLASSES, EVENT_SELECTED_CLASSES } from "./schedule-event-styles"
|
|
25
|
+
import { ScheduleOverflowPopover } from "./schedule-overflow-popover"
|
|
26
|
+
import { ScheduleToolbar } from "./schedule-toolbar"
|
|
27
|
+
import type {
|
|
28
|
+
AnchorDateProps,
|
|
29
|
+
FirstDayOfWeek,
|
|
30
|
+
PaginationChromeProps,
|
|
31
|
+
ScheduleAnyEvent,
|
|
32
|
+
ScheduleClassNames,
|
|
33
|
+
ScheduleDayClickProps,
|
|
34
|
+
ScheduleDayDisabledProps,
|
|
35
|
+
ScheduleEventProps,
|
|
36
|
+
ScheduleOverflowProps,
|
|
37
|
+
ScheduleSharedProps,
|
|
38
|
+
ScheduleTranslations,
|
|
39
|
+
} from "./schedule-types"
|
|
40
|
+
import { resolveScheduleTranslations } from "./schedule-types"
|
|
41
|
+
import { chipSelection, usePieceAnchor, useScheduleSelection } from "./use-schedule-selection"
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* RFC §9 (`docs/rfcs/schedule.md`) — the read-only month grid. Standalone
|
|
45
|
+
* pagination reuses `Schedule.Toolbar`'s own `PrevTrigger`/`NextTrigger`/
|
|
46
|
+
* `NowTrigger` parts (retrofitted onto `DaysView` alongside this
|
|
47
|
+
* view, so every view shares one button implementation).
|
|
48
|
+
*
|
|
49
|
+
* Note on RSC: unlike the RFC's original "pure Server Component, no hooks"
|
|
50
|
+
* plan, this file uses `useUncontrolled` for standalone anchor-date state —
|
|
51
|
+
* matching `DaysView`'s already-shipped standalone behavior (RFC
|
|
52
|
+
* §1: "every view individually importable and usable"). A day-cell without
|
|
53
|
+
* a hook has nowhere to hold the anchor date across a Prev/Next click, so
|
|
54
|
+
* the two goals were incompatible; parity with the sibling views won out.
|
|
55
|
+
*/
|
|
56
|
+
/** Month only. Named so `ScheduleProps` can gate it by name rather than
|
|
57
|
+
* `Pick`ing keys out of `MonthViewProps` — the hand-maintained shape that
|
|
58
|
+
* left `maxEventsPerDay` unreachable from `Root` for two releases. */
|
|
59
|
+
export type ScheduleMonthOnlyProps = {
|
|
60
|
+
/**
|
|
61
|
+
* Chips shown per day before a "+N more" pill — RFC §9. Same for every
|
|
62
|
+
* cell, computed at render time (no `ResizeObserver`), so this stays
|
|
63
|
+
* SSR-safe. Default `3`.
|
|
64
|
+
*
|
|
65
|
+
* Also on `Schedule` itself, where — like `onMonthClick` on Year — it
|
|
66
|
+
* reaches the Month view and nothing else. That is the composition that actually needs it: `Root` spends a
|
|
67
|
+
* row of its own height on the toolbar, so the cap that fits a bare
|
|
68
|
+
* `MonthView` in a given container is often one too many under `Root`.
|
|
69
|
+
*
|
|
70
|
+
* Tune it against the height the cells really get, because it is not
|
|
71
|
+
* only a `.slice()`: it also sets each row's height floor
|
|
72
|
+
* (`monthRowMinHeight` below). Too high for the container and the cell's
|
|
73
|
+
* `overflow-hidden` clips the last pill *and* the "+N" chip that was
|
|
74
|
+
* supposed to account for it.
|
|
75
|
+
*/
|
|
76
|
+
maxEventsPerDay?: number
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type MonthViewProps<P = unknown> = ScheduleSharedProps<P> &
|
|
80
|
+
ScheduleEventProps<P> &
|
|
81
|
+
ScheduleDayClickProps &
|
|
82
|
+
ScheduleDayDisabledProps &
|
|
83
|
+
ScheduleMonthOnlyProps &
|
|
84
|
+
ScheduleOverflowProps<P> &
|
|
85
|
+
AnchorDateProps &
|
|
86
|
+
PaginationChromeProps &
|
|
87
|
+
// `ScheduleEventProps` contributes `onSelect`, and React's own DOM props
|
|
88
|
+
// carry an `onSelect` (text-selection) of their own. Without this `Omit` the
|
|
89
|
+
// two intersect into a handler that has to satisfy *both* signatures, so the
|
|
90
|
+
// declaration compiles and every call site fails. The kit already uses this
|
|
91
|
+
// treatment for other redefined natives.
|
|
92
|
+
Omit<HTMLArkProps<"div">, "onSelect"> &
|
|
93
|
+
WithTestId & {
|
|
94
|
+
/** Locale default when omitted. */
|
|
95
|
+
startOfWeek?: FirstDayOfWeek
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* A day-row's minimum height, computed from `maxEventsPerDay` rather than a
|
|
100
|
+
* fixed guess — the row must always have room for its own worst case (every
|
|
101
|
+
* cell showing up to `maxEventsPerDay` pills *and* the "+N" overflow line,
|
|
102
|
+
* since any cell in the row could need it) or the pills get clipped by the
|
|
103
|
+
* cell's own `overflow-hidden` before ever reaching the cap they're supposed
|
|
104
|
+
* to show. Every term is the rendered height of the matching class below —
|
|
105
|
+
* `text-xs` is Tailwind's fixed 1rem line box:
|
|
106
|
+
* - the cell's own `p-1` padding, top + bottom → 0.5rem
|
|
107
|
+
* - the day number: `text-xs`, no vertical padding, no border → 1rem
|
|
108
|
+
* - one gap (`gap-0.5`) between the day number and the events area
|
|
109
|
+
* - each line in the events area — a **pill** or the **"+N" chip** alike:
|
|
110
|
+
* `text-xs` (1rem) + `py-0.5` (0.25rem) + a 1px top and bottom `border`
|
|
111
|
+
* → `1.25rem + 2px`. The pill's border comes from `EVENT_COLOR_CLASSES`;
|
|
112
|
+
* the "+N" chip's is a `border-transparent` it carries for exactly this
|
|
113
|
+
* reason — it buys the chip a pill's hit target, and a pill's box math,
|
|
114
|
+
* without a pill's appearance.
|
|
115
|
+
* - `maxEventsPerDay` gaps (`gap-0.5`) between those lines (N+1 lines have N gaps)
|
|
116
|
+
*
|
|
117
|
+
* **History.** Two earlier versions got the events area wrong. The first
|
|
118
|
+
* billed every line as a flat `1.25rem`, omitting the pills' border entirely;
|
|
119
|
+
* the second fixed that but kept the "+N" line at a bare `1rem`, which was
|
|
120
|
+
* right only while that line really was an unpadded, borderless text button.
|
|
121
|
+
* It no longer is — the "+N" chip now matches a pill's box exactly — so the
|
|
122
|
+
* events area is finally uniform: `N + 1` identical lines. Coming up short
|
|
123
|
+
* here is not cosmetic: the cell's `overflow-hidden` then clips the very last
|
|
124
|
+
* pill the cap promises, the exact failure this function exists to prevent.
|
|
125
|
+
*
|
|
126
|
+
* Returns a CSS length, not a bare number, because the borders are the one
|
|
127
|
+
* term that does **not** scale with the root font-size: mixing `rem` and `px`
|
|
128
|
+
* in a `calc()` is the only way to stay exact at any root size (the same
|
|
129
|
+
* reason `ScheduleEventChip`'s own floor is `calc(1rem + 2px)`).
|
|
130
|
+
*
|
|
131
|
+
* The `rem` terms deliberately reserve each line's full **strut** (1rem),
|
|
132
|
+
* which is an upper bound rather than an exact match: `truncate` makes a line
|
|
133
|
+
* a scroll container, and a scroll container is sized by its scrollable
|
|
134
|
+
* overflow — the text's own ink extent — so with a font whose ink is shorter
|
|
135
|
+
* than the strut a line renders a fraction *under* 1rem (Lato at 12px
|
|
136
|
+
* measures 15.25px against a 16px strut). Reserving the strut is the safe
|
|
137
|
+
* direction for a floor: it can only ever over-reserve slightly, never clip,
|
|
138
|
+
* and it keeps the result independent of whatever font a consumer loads.
|
|
139
|
+
*/
|
|
140
|
+
function monthRowMinHeight(maxEventsPerDay: number): string {
|
|
141
|
+
const gap = 0.125 // gap-0.5
|
|
142
|
+
const dayNumber = 1 // text-xs line box
|
|
143
|
+
const cellPaddingY = 0.5 // p-1, top + bottom
|
|
144
|
+
const lineText = 1.25 // text-xs line box + a chip's py-0.5
|
|
145
|
+
const lineBorderPx = 2 // the chip's own `border`, top + bottom
|
|
146
|
+
const lines = maxEventsPerDay + 1 // N pills + the "+N" chip, worst case
|
|
147
|
+
const rem = cellPaddingY + dayNumber + gap + lines * lineText + (lines - 1) * gap
|
|
148
|
+
return `calc(${rem}rem + ${lines * lineBorderPx}px)`
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/** A visible pill inside a day cell — like `StaticEventChip`/`InteractiveEventChip`
|
|
152
|
+
* in the timed grid, gains its own event-details popover, gated by
|
|
153
|
+
* `withEventDetails` and opened for whichever pill is `selected`. Month never distinguishes `kind` for
|
|
154
|
+
* interaction (no drag/resize here regardless of kind), so this is the
|
|
155
|
+
* timed grid's Pattern 1 (plain single click → `Popover.Trigger`) for
|
|
156
|
+
* every pill, not just static ones. */
|
|
157
|
+
function MonthEventPill<P>({
|
|
158
|
+
event,
|
|
159
|
+
selected = false,
|
|
160
|
+
anchor = selected,
|
|
161
|
+
onEventSelect,
|
|
162
|
+
withEventDetails = true,
|
|
163
|
+
renderEventDetails,
|
|
164
|
+
locale,
|
|
165
|
+
timeZone,
|
|
166
|
+
detailsPopoverClassName,
|
|
167
|
+
}: {
|
|
168
|
+
event: ScheduleAnyEvent<P>
|
|
169
|
+
selected?: boolean
|
|
170
|
+
/** Selected and first in the list: owns the details popover. */
|
|
171
|
+
anchor?: boolean
|
|
172
|
+
onEventSelect?: (event: ScheduleAnyEvent<P> | null) => void
|
|
173
|
+
withEventDetails?: boolean
|
|
174
|
+
renderEventDetails?: (event: ScheduleAnyEvent<P>) => ReactNode
|
|
175
|
+
locale?: string
|
|
176
|
+
timeZone: string
|
|
177
|
+
detailsPopoverClassName?: string
|
|
178
|
+
}) {
|
|
179
|
+
const showDetailsPopover = withEventDetails
|
|
180
|
+
const detailsOpen = showDetailsPopover && anchor
|
|
181
|
+
|
|
182
|
+
const button = (
|
|
183
|
+
<button
|
|
184
|
+
type="button"
|
|
185
|
+
data-schedule-part="event-chip"
|
|
186
|
+
data-kind={event.kind}
|
|
187
|
+
data-color={event.color ?? "pink"}
|
|
188
|
+
{...dataProps({
|
|
189
|
+
"data-event-id": event.id,
|
|
190
|
+
"data-testid": event.testId ?? event.id,
|
|
191
|
+
"data-selected": selected,
|
|
192
|
+
})}
|
|
193
|
+
onClick={(e) => {
|
|
194
|
+
// Keeps a pill click from also reading as a day click.
|
|
195
|
+
e.stopPropagation()
|
|
196
|
+
onEventSelect?.(event)
|
|
197
|
+
}}
|
|
198
|
+
{...(showDetailsPopover
|
|
199
|
+
? { "aria-haspopup": "dialog" as const, "aria-expanded": detailsOpen }
|
|
200
|
+
: {})}
|
|
201
|
+
className={cn(
|
|
202
|
+
"block w-full truncate rounded-xs px-1 py-0.5 text-start text-xs",
|
|
203
|
+
EVENT_COLOR_CLASSES,
|
|
204
|
+
EVENT_SELECTED_CLASSES,
|
|
205
|
+
"transition-colors duration-150 ease-out motion-reduce:transition-none",
|
|
206
|
+
// `ScheduleEventChip`'s own treatment, which Month's pill never
|
|
207
|
+
// picked up — without it, tabbing through a cell would now ring the
|
|
208
|
+
// "+N" chip below and nothing else. `palette`/flush for the same two
|
|
209
|
+
// reasons the timed grid's chips use them: the pill already carries a
|
|
210
|
+
// palette surface, and the cell clips an offset ring.
|
|
211
|
+
focusStyles({ ring: "palette", offset: false }),
|
|
212
|
+
)}
|
|
213
|
+
>
|
|
214
|
+
{event.icon != null ? (
|
|
215
|
+
<span className="me-1 inline-flex align-[-1px] [&_svg]:size-3">{event.icon}</span>
|
|
216
|
+
) : null}
|
|
217
|
+
{event.title}
|
|
218
|
+
</button>
|
|
219
|
+
)
|
|
220
|
+
|
|
221
|
+
if (!showDetailsPopover) return button
|
|
222
|
+
|
|
223
|
+
return (
|
|
224
|
+
<Popover.Root
|
|
225
|
+
lazyMount
|
|
226
|
+
open={detailsOpen}
|
|
227
|
+
onOpenChange={(d) => {
|
|
228
|
+
// Closing is a deselect — see `StaticEventChip`'s own note.
|
|
229
|
+
if (!d.open) onEventSelect?.(null)
|
|
230
|
+
}}
|
|
231
|
+
width="auto"
|
|
232
|
+
>
|
|
233
|
+
<Popover.Trigger asChild>{button}</Popover.Trigger>
|
|
234
|
+
<Popover.Content className={cn("max-w-64", detailsPopoverClassName)}>
|
|
235
|
+
<Popover.Body>
|
|
236
|
+
<ScheduleEventDetailsContent
|
|
237
|
+
event={event}
|
|
238
|
+
locale={locale}
|
|
239
|
+
timeZone={timeZone}
|
|
240
|
+
renderEventDetails={renderEventDetails}
|
|
241
|
+
/>
|
|
242
|
+
</Popover.Body>
|
|
243
|
+
</Popover.Content>
|
|
244
|
+
</Popover.Root>
|
|
245
|
+
)
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
type MonthDayCellProps<P> = Pick<
|
|
249
|
+
ScheduleOverflowProps<P>,
|
|
250
|
+
"onOverflowClick" | "withOverflowDetails" | "renderOverflowDetails"
|
|
251
|
+
> & {
|
|
252
|
+
day: Date
|
|
253
|
+
cellKey: string
|
|
254
|
+
/** Capped to `maxEventsPerDay` — what renders inline in the cell. */
|
|
255
|
+
visible: ScheduleAnyEvent<P>[]
|
|
256
|
+
/** The rest — what the "+N" counts and what its disclosure lists. The two
|
|
257
|
+
* are the same set on every surface. */
|
|
258
|
+
hidden: ScheduleAnyEvent<P>[]
|
|
259
|
+
inMonth: boolean
|
|
260
|
+
disabled: boolean
|
|
261
|
+
today: boolean
|
|
262
|
+
dayNumber: string
|
|
263
|
+
isLastColumn: boolean
|
|
264
|
+
isLastRow: boolean
|
|
265
|
+
onDayClick?: (date: Date) => void
|
|
266
|
+
selected?: readonly string[]
|
|
267
|
+
/** This cell holds the piece of the anchor event that owns its details
|
|
268
|
+
* popover — see `usePieceAnchor`. */
|
|
269
|
+
ownsAnchor?: boolean
|
|
270
|
+
onEventSelect?: (event: ScheduleAnyEvent<P> | null) => void
|
|
271
|
+
withEventDetails?: boolean
|
|
272
|
+
renderEventDetails?: (event: ScheduleAnyEvent<P>) => ReactNode
|
|
273
|
+
locale?: string
|
|
274
|
+
timeZone: string
|
|
275
|
+
translations: Required<ScheduleTranslations>
|
|
276
|
+
classNames?: ScheduleClassNames
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* One day's cell — its own component rather than inlined in the grid's
|
|
281
|
+
* `.map()`, the same reason `DayColumn` was pulled out of
|
|
282
|
+
* `schedule-timed-grid.tsx`'s own map. (It used to need that for the day
|
|
283
|
+
* popover's own `useState`; that state lives in `ScheduleOverflowPopover`
|
|
284
|
+
* now, shared with the two Days surfaces.)
|
|
285
|
+
*
|
|
286
|
+
* Three click surfaces, three distinct jobs, and none of them overlap:
|
|
287
|
+
* - a **pill** → selects that event, opening its details popover;
|
|
288
|
+
* - the **"+N" chip** → the hidden events' popover (list↔detail);
|
|
289
|
+
* - the **day number** and the **cell background** → `onDayClick`, which
|
|
290
|
+
* under `Schedule`/`Schedule.Root` defaults to drilling into Days view on
|
|
291
|
+
* that date (RFC §9's "day-cell click navigates to Day view").
|
|
292
|
+
* The first two `stopPropagation`, so a chip click is never also a day click.
|
|
293
|
+
*/
|
|
294
|
+
function MonthDayCell<P>({
|
|
295
|
+
day,
|
|
296
|
+
cellKey,
|
|
297
|
+
visible,
|
|
298
|
+
hidden,
|
|
299
|
+
inMonth,
|
|
300
|
+
disabled,
|
|
301
|
+
today,
|
|
302
|
+
dayNumber,
|
|
303
|
+
isLastColumn,
|
|
304
|
+
isLastRow,
|
|
305
|
+
onDayClick,
|
|
306
|
+
selected = [],
|
|
307
|
+
ownsAnchor = false,
|
|
308
|
+
onEventSelect,
|
|
309
|
+
withEventDetails = true,
|
|
310
|
+
renderEventDetails,
|
|
311
|
+
onOverflowClick,
|
|
312
|
+
withOverflowDetails,
|
|
313
|
+
renderOverflowDetails,
|
|
314
|
+
locale,
|
|
315
|
+
timeZone,
|
|
316
|
+
translations,
|
|
317
|
+
classNames,
|
|
318
|
+
}: MonthDayCellProps<P>) {
|
|
319
|
+
// The disclosure hangs off the "+N" chip, not off a day click gated on
|
|
320
|
+
// `onDayClick`'s absence. The two used to be mutually exclusive: wiring
|
|
321
|
+
// `onDayClick` (to navigate, say) silently removed the only route to the
|
|
322
|
+
// hidden events — the exact dead end the popover exists to close. So a day
|
|
323
|
+
// click is navigation, unconditionally, and the disclosure belongs to the
|
|
324
|
+
// affordance that announces there is something to disclose. Gated on
|
|
325
|
+
// `hidden` alone: with nothing hidden, the visible pills (each with its own
|
|
326
|
+
// details popover) already show everything.
|
|
327
|
+
//
|
|
328
|
+
// Everything else about it — open state, the list↔detail swap, the aria —
|
|
329
|
+
// lives in `ScheduleOverflowPopover`, shared with the two Days surfaces.
|
|
330
|
+
// This used to be a hand-rolled copy of all of it.
|
|
331
|
+
|
|
332
|
+
const dayNumberClassName = cn(
|
|
333
|
+
"relative w-fit rounded-full px-1 text-xs",
|
|
334
|
+
inMonth && !disabled
|
|
335
|
+
? "font-medium text-gray-light-900 dark:text-gray-dark-25"
|
|
336
|
+
: "text-gray-light-400 dark:text-gray-dark-600",
|
|
337
|
+
// Same "today" convention `Calendar`/`DatePicker` already use
|
|
338
|
+
// (`calendar-body.tsx`'s `dayCellTrigger`) — bold + brand accent,
|
|
339
|
+
// no background/ring, so it stays a subtle, secondary signal next
|
|
340
|
+
// to a day's own events. Skipped when `disabled`: an unavailable
|
|
341
|
+
// day being "today" is still unavailable, and accenting it would
|
|
342
|
+
// read as more clickable than it actually is.
|
|
343
|
+
today && !disabled && "font-semibold text-brand-500",
|
|
344
|
+
)
|
|
345
|
+
|
|
346
|
+
// A `<button>` only when there is somewhere for it to go. A standalone
|
|
347
|
+
// `MonthView` with no `onDayClick` has no view to drill into, and a
|
|
348
|
+
// focusable control whose activation does nothing is worse for a keyboard
|
|
349
|
+
// user than plain text — the same conditional-element shape `YearView`'s
|
|
350
|
+
// own day cells already use for exactly this reason.
|
|
351
|
+
const dayNumberSection = onDayClick ? (
|
|
352
|
+
<button
|
|
353
|
+
type="button"
|
|
354
|
+
data-schedule-part="month-day-number"
|
|
355
|
+
// `stopPropagation` so the cell's own background click-through below
|
|
356
|
+
// doesn't double-fire the very same navigation.
|
|
357
|
+
onClick={(e) => {
|
|
358
|
+
e.stopPropagation()
|
|
359
|
+
onDayClick(day)
|
|
360
|
+
}}
|
|
361
|
+
{...dataProps({ "data-today": today })}
|
|
362
|
+
className={cn(
|
|
363
|
+
dayNumberClassName,
|
|
364
|
+
"cursor-pointer hover:bg-black/5 dark:hover:bg-white/8",
|
|
365
|
+
focusStyles({ ring: "brand", offset: false }),
|
|
366
|
+
)}
|
|
367
|
+
>
|
|
368
|
+
{dayNumber}
|
|
369
|
+
</button>
|
|
370
|
+
) : (
|
|
371
|
+
<span
|
|
372
|
+
data-schedule-part="month-day-number"
|
|
373
|
+
{...dataProps({ "data-today": today })}
|
|
374
|
+
className={dayNumberClassName}
|
|
375
|
+
>
|
|
376
|
+
{dayNumber}
|
|
377
|
+
</span>
|
|
378
|
+
)
|
|
379
|
+
|
|
380
|
+
return (
|
|
381
|
+
// biome-ignore lint/a11y/useKeyWithClickEvents lint/a11y/noStaticElementInteractions: mouse-only convenience click-through — the day-number button is the real keyboard-focusable trigger for the same action, so this outer cell is deliberately not itself a focusable/keyboard-operable control. Wired only when `onDayClick` is, so a view with nowhere to navigate has no phantom click target either.
|
|
382
|
+
<div
|
|
383
|
+
key={cellKey}
|
|
384
|
+
{...dataProps({
|
|
385
|
+
"data-testid": `day-${cellKey}`,
|
|
386
|
+
"data-disabled": disabled,
|
|
387
|
+
"data-today": today,
|
|
388
|
+
})}
|
|
389
|
+
onClick={onDayClick ? () => onDayClick(day) : undefined}
|
|
390
|
+
className={cn(
|
|
391
|
+
// `overflow-hidden` (+ `min-h-0`) is load-bearing, not
|
|
392
|
+
// decorative: a grid item's automatic minimum height is its
|
|
393
|
+
// own content size by default, so a day packed with pills
|
|
394
|
+
// would otherwise refuse to shrink to its 1fr track's real
|
|
395
|
+
// height and visually spill into the row below — breaking
|
|
396
|
+
// every other row's alignment for the whole grid, not just
|
|
397
|
+
// this one cell. `overflow-hidden` resets that automatic
|
|
398
|
+
// minimum to 0 (it establishes a new formatting context),
|
|
399
|
+
// which is what actually makes `maxEventsPerDay` + the "+N"
|
|
400
|
+
// pill a real cap instead of just a lower bound.
|
|
401
|
+
"relative flex min-h-0 flex-col gap-0.5 overflow-hidden p-1",
|
|
402
|
+
onDayClick ? "cursor-pointer" : null,
|
|
403
|
+
!isLastColumn ? "border-e border-brand-900/20 dark:border-white/15" : null,
|
|
404
|
+
!isLastRow ? "border-b border-brand-900/20 dark:border-white/15" : null,
|
|
405
|
+
disabled ? "cursor-not-allowed" : null,
|
|
406
|
+
)}
|
|
407
|
+
>
|
|
408
|
+
{disabled ? <ScheduleDisabledOverlay className={classNames?.disabledOverlay} /> : null}
|
|
409
|
+
{dayNumberSection}
|
|
410
|
+
<div className="relative flex min-h-0 flex-1 flex-col gap-0.5">
|
|
411
|
+
{visible.map((event) => (
|
|
412
|
+
<MonthEventPill
|
|
413
|
+
key={event.id}
|
|
414
|
+
event={event}
|
|
415
|
+
{...chipSelection(selected, event.id, ownsAnchor)}
|
|
416
|
+
onEventSelect={onEventSelect}
|
|
417
|
+
withEventDetails={withEventDetails}
|
|
418
|
+
renderEventDetails={renderEventDetails}
|
|
419
|
+
locale={locale}
|
|
420
|
+
timeZone={timeZone}
|
|
421
|
+
detailsPopoverClassName={classNames?.eventDetailsPopover}
|
|
422
|
+
/>
|
|
423
|
+
))}
|
|
424
|
+
{hidden.length > 0 ? (
|
|
425
|
+
<ScheduleOverflowPopover
|
|
426
|
+
events={hidden}
|
|
427
|
+
date={day}
|
|
428
|
+
source="month"
|
|
429
|
+
selectedId={ownsAnchor ? (selected[0] ?? null) : null}
|
|
430
|
+
onEventSelect={onEventSelect}
|
|
431
|
+
withEventDetails={withEventDetails}
|
|
432
|
+
onOverflowClick={onOverflowClick}
|
|
433
|
+
withOverflowDetails={withOverflowDetails}
|
|
434
|
+
renderOverflowDetails={renderOverflowDetails}
|
|
435
|
+
renderEventDetails={renderEventDetails}
|
|
436
|
+
locale={locale}
|
|
437
|
+
timeZone={timeZone}
|
|
438
|
+
translations={translations}
|
|
439
|
+
classNames={classNames?.overflow}
|
|
440
|
+
renderTrigger={(triggerProps) => (
|
|
441
|
+
<button
|
|
442
|
+
type="button"
|
|
443
|
+
data-schedule-part="month-overflow-chip"
|
|
444
|
+
{...dataProps({ "data-testid": `overflow-${cellKey}` })}
|
|
445
|
+
{...triggerProps}
|
|
446
|
+
// Composed around the handler above, not in place of it: the
|
|
447
|
+
// day cell has its own `onClick` for `onDayClick`, and
|
|
448
|
+
// disclosing the hidden events must never also navigate.
|
|
449
|
+
// Same `stopPropagation` `MonthEventPill` does.
|
|
450
|
+
onClick={(e) => {
|
|
451
|
+
e.stopPropagation()
|
|
452
|
+
triggerProps.onClick?.(e)
|
|
453
|
+
}}
|
|
454
|
+
className={cn(
|
|
455
|
+
// Deliberately the *same box* as `MonthEventPill` — `block
|
|
456
|
+
// w-full`, `px-1 py-0.5`, `rounded-xs`, a 1px border — with
|
|
457
|
+
// none of its paint: a full-width, pill-height hit target
|
|
458
|
+
// that still reads as a caption rather than a fourth event.
|
|
459
|
+
// `border-transparent` rather than an extra 1px of padding,
|
|
460
|
+
// because the pill's border is what makes the two boxes
|
|
461
|
+
// equal at *any* root font-size; faking it with
|
|
462
|
+
// `py-[calc(0.125rem+1px)]` would fold that rem/px mixing
|
|
463
|
+
// into a single value, which is precisely what
|
|
464
|
+
// `monthRowMinHeight` keeps in a `calc()` instead.
|
|
465
|
+
"block w-full truncate rounded-xs border border-transparent px-1 py-0.5 text-start text-xs",
|
|
466
|
+
"cursor-pointer text-gray-light-500 hover:underline dark:text-gray-dark-400",
|
|
467
|
+
// `palette`, matching both Days "+N" chips. None of the
|
|
468
|
+
// three carries a `data-color`, so `--c-text` resolves the
|
|
469
|
+
// same way for all of them; what matters is that one
|
|
470
|
+
// affordance does not focus two different ways depending on
|
|
471
|
+
// which view you are in. Flush (`offset: false`): the cell's
|
|
472
|
+
// own `overflow-hidden` would clip an offset ring.
|
|
473
|
+
focusStyles({ ring: "palette", offset: false }),
|
|
474
|
+
)}
|
|
475
|
+
>
|
|
476
|
+
{`+${hidden.length}`}
|
|
477
|
+
</button>
|
|
478
|
+
)}
|
|
479
|
+
/>
|
|
480
|
+
) : null}
|
|
481
|
+
</div>
|
|
482
|
+
</div>
|
|
483
|
+
)
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
export function MonthView<P = unknown>({
|
|
487
|
+
data,
|
|
488
|
+
staticEvents = [],
|
|
489
|
+
selected,
|
|
490
|
+
defaultSelected,
|
|
491
|
+
onSelect,
|
|
492
|
+
withSelection = true,
|
|
493
|
+
withEventDetails = true,
|
|
494
|
+
onDayClick,
|
|
495
|
+
renderEventDetails,
|
|
496
|
+
onOverflowClick,
|
|
497
|
+
withOverflowDetails,
|
|
498
|
+
renderOverflowDetails,
|
|
499
|
+
locale: localeProp,
|
|
500
|
+
timeZone: timeZoneProp,
|
|
501
|
+
translations,
|
|
502
|
+
classNames,
|
|
503
|
+
className,
|
|
504
|
+
date,
|
|
505
|
+
defaultDate,
|
|
506
|
+
onDateChange,
|
|
507
|
+
withPagination = true,
|
|
508
|
+
withNowButton = false,
|
|
509
|
+
startOfWeek,
|
|
510
|
+
now,
|
|
511
|
+
dayDisabled,
|
|
512
|
+
maxEventsPerDay = 3,
|
|
513
|
+
testId,
|
|
514
|
+
...rest
|
|
515
|
+
}: MonthViewProps<P>) {
|
|
516
|
+
const locale = useLocale(localeProp)
|
|
517
|
+
const timeZone = useTimeZone(timeZoneProp)
|
|
518
|
+
const [currentDate, setCurrentDate] = useUncontrolled<Date>({
|
|
519
|
+
value: date,
|
|
520
|
+
defaultValue: defaultDate,
|
|
521
|
+
finalValue: new Date(),
|
|
522
|
+
onChange: onDateChange,
|
|
523
|
+
})
|
|
524
|
+
const { selected: selectedIds, onEventSelect } = useScheduleSelection<P>({
|
|
525
|
+
selected,
|
|
526
|
+
defaultSelected,
|
|
527
|
+
onSelect,
|
|
528
|
+
withSelection,
|
|
529
|
+
})
|
|
530
|
+
const t = resolveScheduleTranslations(translations)
|
|
531
|
+
const todayRef = now ?? new Date()
|
|
532
|
+
const range = getVisibleRange("month", currentDate, {
|
|
533
|
+
timeZone,
|
|
534
|
+
locale,
|
|
535
|
+
startOfWeek,
|
|
536
|
+
})
|
|
537
|
+
const days = enumerateDays(range, timeZone)
|
|
538
|
+
const weeks = days.length / 7
|
|
539
|
+
const weekdayLabels = days
|
|
540
|
+
.slice(0, 7)
|
|
541
|
+
.map((d) => new Intl.DateTimeFormat(locale, { weekday: "short", timeZone }).format(d))
|
|
542
|
+
const allEvents: ScheduleAnyEvent<P>[] = [...data, ...staticEvents]
|
|
543
|
+
// A multi-day event has a pill (or a "+N" row) in every cell it touches, all
|
|
544
|
+
// sharing its id; exactly one of them may open the details popover.
|
|
545
|
+
const anchorEvent = allEvents.find((event) => event.id === selectedIds[0])
|
|
546
|
+
const anchorPiece = usePieceAnchor(
|
|
547
|
+
anchorEvent?.id ?? null,
|
|
548
|
+
anchorEvent
|
|
549
|
+
? days
|
|
550
|
+
.filter((day) => eventOccursOnDay(anchorEvent, day, timeZone))
|
|
551
|
+
.map((day) => dayKey(day, timeZone))
|
|
552
|
+
: [],
|
|
553
|
+
)
|
|
554
|
+
const rowMinHeight = monthRowMinHeight(maxEventsPerDay)
|
|
555
|
+
// The grid is the month's scroller, and every popover in it portals *into*
|
|
556
|
+
// it (see `OverlayContainerProvider`) so a panel scrolls with the weeks and
|
|
557
|
+
// is clipped by them instead of floating over the page.
|
|
558
|
+
const gridRef = useRef<HTMLDivElement>(null)
|
|
559
|
+
|
|
560
|
+
return (
|
|
561
|
+
<ark.div
|
|
562
|
+
className={cn("flex h-full flex-col", className)}
|
|
563
|
+
data-schedule-part="month-view"
|
|
564
|
+
{...dataProps({ "data-testid": testId })}
|
|
565
|
+
{...rest}
|
|
566
|
+
>
|
|
567
|
+
{withPagination || withNowButton ? (
|
|
568
|
+
<div className="mb-2 flex items-center gap-1">
|
|
569
|
+
{withPagination ? (
|
|
570
|
+
<>
|
|
571
|
+
<ScheduleToolbar.PrevTrigger
|
|
572
|
+
view="month"
|
|
573
|
+
date={currentDate}
|
|
574
|
+
onDateChange={setCurrentDate}
|
|
575
|
+
timeZone={timeZone}
|
|
576
|
+
translations={t}
|
|
577
|
+
/>
|
|
578
|
+
<ScheduleToolbar.NextTrigger
|
|
579
|
+
view="month"
|
|
580
|
+
date={currentDate}
|
|
581
|
+
onDateChange={setCurrentDate}
|
|
582
|
+
timeZone={timeZone}
|
|
583
|
+
translations={t}
|
|
584
|
+
/>
|
|
585
|
+
</>
|
|
586
|
+
) : null}
|
|
587
|
+
{withNowButton ? (
|
|
588
|
+
<ScheduleToolbar.NowTrigger
|
|
589
|
+
onDateChange={setCurrentDate}
|
|
590
|
+
translations={t}
|
|
591
|
+
className="ms-2"
|
|
592
|
+
/>
|
|
593
|
+
) : null}
|
|
594
|
+
</div>
|
|
595
|
+
) : null}
|
|
596
|
+
<div
|
|
597
|
+
ref={gridRef}
|
|
598
|
+
className={cn(
|
|
599
|
+
// `relative`: the containing block for the popovers portalled in
|
|
600
|
+
// here — without it they resolve against an ancestor outside this
|
|
601
|
+
// scroller and neither scroll with it nor get clipped by it.
|
|
602
|
+
//
|
|
603
|
+
// `overflow-y-auto`: if a consumer's container is shorter than
|
|
604
|
+
// `weeks * rowMinHeight` genuinely needs, the calendar scrolls
|
|
605
|
+
// internally instead of either clipping pills (the cells' own
|
|
606
|
+
// `overflow-hidden` would otherwise do that) or silently
|
|
607
|
+
// overflowing whatever comes after it on the page.
|
|
608
|
+
//
|
|
609
|
+
// No border on this container itself — only the internal `border-e`/
|
|
610
|
+
// `border-b` dividers below (each one skipped on the grid's own last
|
|
611
|
+
// column/row) organize the cells. A full perimeter here would nest a
|
|
612
|
+
// second bordered box directly inside whatever already-bordered
|
|
613
|
+
// surface a consumer wraps the view in (e.g. this doc's own preview
|
|
614
|
+
// card), reading as a redundant "double border".
|
|
615
|
+
"relative grid min-h-0 flex-1 grid-cols-7 overflow-y-auto",
|
|
616
|
+
classNames?.grid,
|
|
617
|
+
)}
|
|
618
|
+
style={{ gridTemplateRows: `auto repeat(${weeks}, minmax(${rowMinHeight}, 1fr))` }}
|
|
619
|
+
>
|
|
620
|
+
<OverlayContainerProvider value={gridRef}>
|
|
621
|
+
{weekdayLabels.map((label, i) => (
|
|
622
|
+
<div
|
|
623
|
+
key={label}
|
|
624
|
+
className={cn(
|
|
625
|
+
"border-b border-brand-900/20 bg-brand-50/90 px-1.5 py-1 text-center font-medium text-gray-light-500 text-xs dark:border-white/15 dark:bg-brand-950/85 dark:text-gray-dark-400",
|
|
626
|
+
i % 7 !== 6 ? "border-e border-brand-900/20 dark:border-white/15" : null,
|
|
627
|
+
)}
|
|
628
|
+
>
|
|
629
|
+
{label}
|
|
630
|
+
</div>
|
|
631
|
+
))}
|
|
632
|
+
{days.map((day, i) => {
|
|
633
|
+
const isLastColumn = i % 7 === 6
|
|
634
|
+
const isLastRow = i >= days.length - 7
|
|
635
|
+
const inMonth = isSameMonth(day, currentDate, timeZone)
|
|
636
|
+
const today = isToday(day, todayRef, timeZone)
|
|
637
|
+
const dayEvents = allEvents
|
|
638
|
+
.filter((event) => eventOccursOnDay(event, day, timeZone))
|
|
639
|
+
.sort((a, b) => a.start.getTime() - b.start.getTime())
|
|
640
|
+
const visible = dayEvents.slice(0, maxEventsPerDay)
|
|
641
|
+
// The hidden tail itself, not just its length: the "+N" counts it
|
|
642
|
+
// and its disclosure lists it, which is the same rule the two Days
|
|
643
|
+
// surfaces already follow.
|
|
644
|
+
const hidden = dayEvents.slice(maxEventsPerDay)
|
|
645
|
+
const disabled = dayDisabled?.(day, timeZone) ?? false
|
|
646
|
+
const cellKey = dayKey(day, timeZone)
|
|
647
|
+
const dayNumber = new Intl.DateTimeFormat(locale, { day: "numeric", timeZone }).format(
|
|
648
|
+
day,
|
|
649
|
+
)
|
|
650
|
+
|
|
651
|
+
return (
|
|
652
|
+
<MonthDayCell
|
|
653
|
+
key={cellKey}
|
|
654
|
+
day={day}
|
|
655
|
+
cellKey={cellKey}
|
|
656
|
+
visible={visible}
|
|
657
|
+
hidden={hidden}
|
|
658
|
+
inMonth={inMonth}
|
|
659
|
+
disabled={disabled}
|
|
660
|
+
today={today}
|
|
661
|
+
dayNumber={dayNumber}
|
|
662
|
+
isLastColumn={isLastColumn}
|
|
663
|
+
isLastRow={isLastRow}
|
|
664
|
+
onDayClick={onDayClick}
|
|
665
|
+
selected={selectedIds}
|
|
666
|
+
ownsAnchor={anchorPiece.key === cellKey}
|
|
667
|
+
onEventSelect={
|
|
668
|
+
onEventSelect &&
|
|
669
|
+
((event: ScheduleAnyEvent<P> | null) => {
|
|
670
|
+
anchorPiece.press(cellKey, event)
|
|
671
|
+
onEventSelect(event)
|
|
672
|
+
})
|
|
673
|
+
}
|
|
674
|
+
withEventDetails={withEventDetails}
|
|
675
|
+
renderEventDetails={renderEventDetails}
|
|
676
|
+
onOverflowClick={onOverflowClick}
|
|
677
|
+
withOverflowDetails={withOverflowDetails}
|
|
678
|
+
renderOverflowDetails={renderOverflowDetails}
|
|
679
|
+
locale={locale}
|
|
680
|
+
timeZone={timeZone}
|
|
681
|
+
translations={t}
|
|
682
|
+
classNames={classNames}
|
|
683
|
+
/>
|
|
684
|
+
)
|
|
685
|
+
})}
|
|
686
|
+
</OverlayContainerProvider>
|
|
687
|
+
</div>
|
|
688
|
+
</ark.div>
|
|
689
|
+
)
|
|
690
|
+
}
|