@42-central/ui-react 0.18.2 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-YXE4B6X3.js → chunk-2NNZHVKD.js} +3 -3
- package/dist/{chunk-YXE4B6X3.js.map → chunk-2NNZHVKD.js.map} +1 -1
- package/dist/{chunk-5JHDSVEZ.js → chunk-4NNGTNPV.js} +10 -8
- package/dist/chunk-4NNGTNPV.js.map +1 -0
- package/dist/{chunk-7NZSTCJO.js → chunk-57BTVRRB.js} +4 -9
- package/dist/chunk-57BTVRRB.js.map +1 -0
- package/dist/{chunk-S2HWWR2H.js → chunk-64T6Z7BA.js} +3 -3
- package/dist/{chunk-S2HWWR2H.js.map → chunk-64T6Z7BA.js.map} +1 -1
- package/dist/{chunk-MI2WZRK3.js → chunk-A6MYJTJI.js} +4 -4
- package/dist/{chunk-MI2WZRK3.js.map → chunk-A6MYJTJI.js.map} +1 -1
- package/dist/{chunk-RQL7FVCS.js → chunk-BTFBBNRW.js} +11 -6
- package/dist/chunk-BTFBBNRW.js.map +1 -0
- package/dist/{chunk-OWG4BCQR.js → chunk-CYWMES5P.js} +4 -4
- package/dist/{chunk-OWG4BCQR.js.map → chunk-CYWMES5P.js.map} +1 -1
- package/dist/{chunk-YBJB7FGE.js → chunk-CZEKZ5HR.js} +6 -6
- package/dist/chunk-CZEKZ5HR.js.map +1 -0
- package/dist/{chunk-HAQJQFE6.js → chunk-DBTJEBMO.js} +11 -4
- package/dist/{chunk-HAQJQFE6.js.map → chunk-DBTJEBMO.js.map} +1 -1
- package/dist/{chunk-AE7QTLJ5.js → chunk-FAOBC4IS.js} +4 -4
- package/dist/{chunk-AE7QTLJ5.js.map → chunk-FAOBC4IS.js.map} +1 -1
- package/dist/{chunk-NF5JM2YO.js → chunk-FOMR74VE.js} +3 -3
- package/dist/{chunk-NF5JM2YO.js.map → chunk-FOMR74VE.js.map} +1 -1
- package/dist/{chunk-FZIHZT5R.js → chunk-GCGX4FEF.js} +16 -10
- package/dist/chunk-GCGX4FEF.js.map +1 -0
- package/dist/{chunk-B2YJKRNQ.js → chunk-HCYULRWT.js} +13 -9
- package/dist/chunk-HCYULRWT.js.map +1 -0
- package/dist/{chunk-B2LCHXUB.js → chunk-INJUILCN.js} +9 -4
- package/dist/chunk-INJUILCN.js.map +1 -0
- package/dist/{chunk-ZDXQ64A7.js → chunk-K5UWVH6P.js} +5 -5
- package/dist/{chunk-ZDXQ64A7.js.map → chunk-K5UWVH6P.js.map} +1 -1
- package/dist/{chunk-6GDMSENK.js → chunk-LM6F6DLR.js} +3 -24
- package/dist/chunk-LM6F6DLR.js.map +1 -0
- package/dist/{chunk-KHMFNH3X.js → chunk-MQO42HZL.js} +7 -7
- package/dist/chunk-MQO42HZL.js.map +1 -0
- package/dist/chunk-OC7I2CTA.js +8 -0
- package/dist/chunk-OC7I2CTA.js.map +1 -0
- package/dist/{chunk-O23Y5ML4.js → chunk-OGJFDNIS.js} +249 -231
- package/dist/chunk-OGJFDNIS.js.map +1 -0
- package/dist/{chunk-6OLTJYSX.js → chunk-PINENGML.js} +12 -5
- package/dist/chunk-PINENGML.js.map +1 -0
- package/dist/{chunk-NSDM3FEB.js → chunk-PS2PZFXH.js} +5 -3
- package/dist/chunk-PS2PZFXH.js.map +1 -0
- package/dist/{chunk-RAUOFTUH.js → chunk-QIDAXFKK.js} +4 -4
- package/dist/{chunk-RAUOFTUH.js.map → chunk-QIDAXFKK.js.map} +1 -1
- package/dist/{chunk-S7N4LGLZ.js → chunk-RIP5G47F.js} +4 -4
- package/dist/{chunk-S7N4LGLZ.js.map → chunk-RIP5G47F.js.map} +1 -1
- package/dist/{chunk-Z2Z5EXVT.js → chunk-RKYXG6X7.js} +3 -3
- package/dist/{chunk-Z2Z5EXVT.js.map → chunk-RKYXG6X7.js.map} +1 -1
- package/dist/{chunk-WQN64ZHG.js → chunk-SVKU3GUN.js} +10 -6
- package/dist/chunk-SVKU3GUN.js.map +1 -0
- package/dist/{chunk-FHG54IT5.js → chunk-TBTSEPGP.js} +13 -4
- package/dist/chunk-TBTSEPGP.js.map +1 -0
- package/dist/{chunk-HT5JAHR3.js → chunk-UJZIF2BA.js} +20 -9
- package/dist/chunk-UJZIF2BA.js.map +1 -0
- package/dist/{chunk-UHNRAI6V.js → chunk-VZBUQNLX.js} +68 -29
- package/dist/chunk-VZBUQNLX.js.map +1 -0
- package/dist/{chunk-JITF6I7N.js → chunk-WJOHNCYY.js} +11 -4
- package/dist/{chunk-JITF6I7N.js.map → chunk-WJOHNCYY.js.map} +1 -1
- package/dist/{chunk-EBREIC3L.js → chunk-YQHOKMSV.js} +26 -8
- package/dist/chunk-YQHOKMSV.js.map +1 -0
- package/dist/{chunk-WHKKN3ZK.js → chunk-YW6Q6ERX.js} +10 -8
- package/dist/chunk-YW6Q6ERX.js.map +1 -0
- package/dist/{chunk-PH354ECN.js → chunk-Z43YWH4R.js} +13 -4
- package/dist/chunk-Z43YWH4R.js.map +1 -0
- package/dist/{chunk-5OQLFX47.js → chunk-Z6RPMRFH.js} +3 -3
- package/dist/{chunk-5OQLFX47.js.map → chunk-Z6RPMRFH.js.map} +1 -1
- package/dist/{chunk-TCWYBVIL.js → chunk-ZB5VMGKB.js} +10 -7
- package/dist/chunk-ZB5VMGKB.js.map +1 -0
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/action-icon/index.js +3 -3
- package/dist/components/alert/index.js +3 -3
- package/dist/components/app-shell/index.js +4 -4
- package/dist/components/autocomplete/autocomplete.d.ts +8 -1
- package/dist/components/autocomplete/autocomplete.d.ts.map +1 -1
- package/dist/components/autocomplete/index.d.ts +1 -1
- package/dist/components/autocomplete/index.d.ts.map +1 -1
- package/dist/components/autocomplete/index.js +10 -7
- package/dist/components/autocomplete/index.js.map +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/button/index.js +3 -3
- package/dist/components/button-multi-select/index.js +5 -5
- package/dist/components/button-select/index.js +5 -5
- package/dist/components/calendar/calendar-zone-sync.d.ts +41 -0
- package/dist/components/calendar/calendar-zone-sync.d.ts.map +1 -0
- package/dist/components/calendar/calendar.d.ts +6 -5
- package/dist/components/calendar/calendar.d.ts.map +1 -1
- package/dist/components/calendar/index.js +8 -5
- package/dist/components/chart/chart.d.ts +17 -10
- package/dist/components/chart/chart.d.ts.map +1 -1
- package/dist/components/chart/index.js +50 -7
- package/dist/components/chart/index.js.map +1 -1
- package/dist/components/chart/styles.css +100 -0
- package/dist/components/checkbox/index.js +4 -4
- package/dist/components/choice-card-group/index.d.ts.map +1 -1
- package/dist/components/choice-card-group/index.js +4 -3
- package/dist/components/circular-progress/circular-progress.d.ts.map +1 -1
- package/dist/components/circular-progress/index.js.map +1 -1
- package/dist/components/clipboard/clipboard.d.ts.map +1 -1
- package/dist/components/clipboard/copy.d.ts.map +1 -1
- package/dist/components/clipboard/index.js +5 -5
- package/dist/components/clipboard/index.js.map +1 -1
- package/dist/components/code-block/chrome.js +4 -4
- package/dist/components/code-block/index.js +5 -5
- package/dist/components/combobox/combobox.d.ts +20 -1
- package/dist/components/combobox/combobox.d.ts.map +1 -1
- package/dist/components/combobox/index.d.ts +1 -1
- package/dist/components/combobox/index.d.ts.map +1 -1
- package/dist/components/combobox/index.js +4 -4
- package/dist/components/combobox-list/combobox-list.d.ts +8 -1
- package/dist/components/combobox-list/combobox-list.d.ts.map +1 -1
- package/dist/components/combobox-list/index.d.ts +1 -1
- package/dist/components/combobox-list/index.d.ts.map +1 -1
- package/dist/components/combobox-list/index.js +5 -5
- package/dist/components/data-table/data-table-filter/data-table-date-filter.d.ts.map +1 -1
- package/dist/components/data-table/data-table-filter/data-table-number-filter.d.ts +4 -1
- package/dist/components/data-table/data-table-filter/data-table-number-filter.d.ts.map +1 -1
- package/dist/components/data-table/data-table-filter/data-table-select-filter.d.ts +4 -1
- package/dist/components/data-table/data-table-filter/data-table-select-filter.d.ts.map +1 -1
- package/dist/components/data-table/data-table-filter/index.d.ts +5 -1
- package/dist/components/data-table/data-table-filter/index.d.ts.map +1 -1
- package/dist/components/data-table/data-table-header-cell.d.ts +11 -15
- package/dist/components/data-table/data-table-header-cell.d.ts.map +1 -1
- package/dist/components/data-table/data-table-meta.d.ts +2 -2
- package/dist/components/data-table/data-table-meta.d.ts.map +1 -1
- package/dist/components/data-table/data-table-pagination.d.ts +3 -0
- package/dist/components/data-table/data-table-pagination.d.ts.map +1 -1
- package/dist/components/data-table/data-table-stack.d.ts +5 -2
- package/dist/components/data-table/data-table-stack.d.ts.map +1 -1
- package/dist/components/data-table/data-table-toolbar.d.ts +3 -1
- package/dist/components/data-table/data-table-toolbar.d.ts.map +1 -1
- package/dist/components/data-table/data-table-translations.d.ts +68 -0
- package/dist/components/data-table/data-table-translations.d.ts.map +1 -0
- package/dist/components/data-table/data-table.d.ts +5 -8
- package/dist/components/data-table/data-table.d.ts.map +1 -1
- package/dist/components/data-table/index.d.ts +2 -1
- package/dist/components/data-table/index.d.ts.map +1 -1
- package/dist/components/data-table/index.js +162 -79
- package/dist/components/data-table/index.js.map +1 -1
- package/dist/components/date-picker/date-picker.d.ts +13 -9
- package/dist/components/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/date-picker/index.js +16 -15
- package/dist/components/date-picker/index.js.map +1 -1
- package/dist/components/drawer/drawer.d.ts +9 -1
- package/dist/components/drawer/drawer.d.ts.map +1 -1
- package/dist/components/drawer/index.d.ts +1 -1
- package/dist/components/drawer/index.d.ts.map +1 -1
- package/dist/components/drawer/index.js +4 -4
- package/dist/components/field/field.d.ts +9 -2
- package/dist/components/field/field.d.ts.map +1 -1
- package/dist/components/field/index.js +1 -1
- package/dist/components/file-upload/file-upload.d.ts +13 -2
- package/dist/components/file-upload/file-upload.d.ts.map +1 -1
- package/dist/components/file-upload/index.d.ts +1 -1
- package/dist/components/file-upload/index.d.ts.map +1 -1
- package/dist/components/file-upload/index.js +16 -7
- package/dist/components/file-upload/index.js.map +1 -1
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/input/index.js +2 -2
- package/dist/components/kbd/index.js +1 -1
- package/dist/components/menu/index.js +2 -2
- package/dist/components/modal/index.d.ts +1 -1
- package/dist/components/modal/index.d.ts.map +1 -1
- package/dist/components/modal/index.js +4 -4
- package/dist/components/modal/modal.d.ts +9 -1
- package/dist/components/modal/modal.d.ts.map +1 -1
- package/dist/components/multi-combobox-list/index.d.ts +1 -1
- package/dist/components/multi-combobox-list/index.d.ts.map +1 -1
- package/dist/components/multi-combobox-list/index.js +7 -5
- package/dist/components/multi-combobox-list/multi-combobox-list.d.ts +8 -1
- package/dist/components/multi-combobox-list/multi-combobox-list.d.ts.map +1 -1
- package/dist/components/multi-select/index.d.ts +1 -1
- package/dist/components/multi-select/index.d.ts.map +1 -1
- package/dist/components/multi-select/index.js +20 -9
- package/dist/components/multi-select/index.js.map +1 -1
- package/dist/components/multi-select/multi-select.d.ts +11 -1
- package/dist/components/multi-select/multi-select.d.ts.map +1 -1
- package/dist/components/nav-link/index.d.ts +1 -1
- package/dist/components/nav-link/index.d.ts.map +1 -1
- package/dist/components/nav-link/index.js +2 -2
- package/dist/components/nav-link/nav-link.d.ts +12 -0
- package/dist/components/nav-link/nav-link.d.ts.map +1 -1
- package/dist/components/nav-link/navigation.d.ts +3 -1
- package/dist/components/nav-link/navigation.d.ts.map +1 -1
- package/dist/components/nav-link/tanstack.js +2 -2
- package/dist/components/notification/create-notifier.d.ts +12 -1
- package/dist/components/notification/create-notifier.d.ts.map +1 -1
- package/dist/components/notification/index.d.ts +2 -2
- package/dist/components/notification/index.d.ts.map +1 -1
- package/dist/components/notification/index.js +9 -6
- package/dist/components/notification/index.js.map +1 -1
- package/dist/components/notification/notification.d.ts +14 -1
- package/dist/components/notification/notification.d.ts.map +1 -1
- package/dist/components/number-input/index.d.ts +1 -1
- package/dist/components/number-input/index.d.ts.map +1 -1
- package/dist/components/number-input/index.js +4 -4
- package/dist/components/number-input/number-input.d.ts +20 -2
- package/dist/components/number-input/number-input.d.ts.map +1 -1
- package/dist/components/overlays/index.js +6 -6
- package/dist/components/password-input/index.d.ts +1 -1
- package/dist/components/password-input/index.d.ts.map +1 -1
- package/dist/components/password-input/index.js +68 -7
- package/dist/components/password-input/index.js.map +1 -1
- package/dist/components/password-input/password-input.d.ts +45 -6
- package/dist/components/password-input/password-input.d.ts.map +1 -1
- package/dist/components/pill/index.js +2 -2
- package/dist/components/pills-input/index.js +5 -5
- package/dist/components/pin-input/index.js +2 -2
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover.d.ts +0 -10
- package/dist/components/popover/popover.d.ts.map +1 -1
- package/dist/components/progress/index.js.map +1 -1
- package/dist/components/progress/progress.d.ts.map +1 -1
- package/dist/components/radio-group/index.js +3 -3
- package/dist/components/rating/index.js +2 -2
- package/dist/components/rating/index.js.map +1 -1
- package/dist/components/rating/rating.d.ts.map +1 -1
- package/dist/components/schedule/index.js +60 -48
- package/dist/components/schedule/index.js.map +1 -1
- package/dist/components/schedule/now-cursor-line.d.ts +10 -5
- package/dist/components/schedule/now-cursor-line.d.ts.map +1 -1
- package/dist/components/schedule/schedule-dates.d.ts +11 -26
- package/dist/components/schedule/schedule-dates.d.ts.map +1 -1
- package/dist/components/schedule/schedule-event-chip.d.ts +4 -1
- package/dist/components/schedule/schedule-event-chip.d.ts.map +1 -1
- package/dist/components/schedule/schedule-event-details.d.ts +3 -2
- package/dist/components/schedule/schedule-event-details.d.ts.map +1 -1
- package/dist/components/schedule/schedule-geometry.d.ts +20 -21
- package/dist/components/schedule/schedule-geometry.d.ts.map +1 -1
- package/dist/components/schedule/schedule-grid-gesture.d.ts +5 -9
- package/dist/components/schedule/schedule-grid-gesture.d.ts.map +1 -1
- package/dist/components/schedule/schedule-segments.d.ts +2 -3
- package/dist/components/schedule/schedule-segments.d.ts.map +1 -1
- package/dist/components/schedule/schedule-timed-grid.d.ts.map +1 -1
- package/dist/components/schedule/use-event-resize.d.ts.map +1 -1
- package/dist/components/segment-group/index.js +4 -3
- package/dist/components/segment-group/segment-group.d.ts +3 -2
- package/dist/components/segment-group/segment-group.d.ts.map +1 -1
- package/dist/components/select/index.d.ts +1 -1
- package/dist/components/select/index.d.ts.map +1 -1
- package/dist/components/select/index.js +6 -4
- package/dist/components/select/select.d.ts +12 -2
- package/dist/components/select/select.d.ts.map +1 -1
- package/dist/components/slider/index.js +2 -2
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/spinner/spinner.d.ts.map +1 -1
- package/dist/components/switch/index.js +2 -2
- package/dist/components/table/index.js +1 -1
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/tabs/index.js +4 -3
- package/dist/components/tabs/tabs.d.ts +3 -1
- package/dist/components/tabs/tabs.d.ts.map +1 -1
- package/dist/components/tags-input/index.d.ts +1 -1
- package/dist/components/tags-input/index.d.ts.map +1 -1
- package/dist/components/tags-input/index.js +9 -7
- package/dist/components/tags-input/index.js.map +1 -1
- package/dist/components/tags-input/tags-input.d.ts +9 -2
- package/dist/components/tags-input/tags-input.d.ts.map +1 -1
- package/dist/components/text-input/index.js +2 -2
- package/dist/components/textarea/index.js +2 -2
- package/dist/components/theme-icon/index.js +2 -2
- package/dist/components/theme-icon/theme-icon.d.ts.map +1 -1
- package/dist/components/time-input/index.js +24 -8
- package/dist/components/time-input/index.js.map +1 -1
- package/dist/components/time-input/time-input.d.ts.map +1 -1
- package/dist/components/time-input/time-row.d.ts +16 -3
- package/dist/components/time-input/time-row.d.ts.map +1 -1
- package/dist/components/timeline/index.js +6 -3
- package/dist/components/timeline/index.js.map +1 -1
- package/dist/components/timeline/timeline.d.ts.map +1 -1
- package/dist/components/tooltip/index.js +2 -2
- package/dist/components/tree-multi-select/index.d.ts +1 -1
- package/dist/components/tree-multi-select/index.d.ts.map +1 -1
- package/dist/components/tree-multi-select/index.js +62 -44
- package/dist/components/tree-multi-select/index.js.map +1 -1
- package/dist/components/tree-multi-select/tree-multi-select.d.ts +10 -1
- package/dist/components/tree-multi-select/tree-multi-select.d.ts.map +1 -1
- package/dist/components/tree-select/index.d.ts +1 -1
- package/dist/components/tree-select/index.d.ts.map +1 -1
- package/dist/components/tree-select/index.js +45 -15
- package/dist/components/tree-select/index.js.map +1 -1
- package/dist/components/tree-select/tree-select.d.ts +10 -1
- package/dist/components/tree-select/tree-select.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/lib/date-value.d.ts +14 -1
- package/dist/lib/date-value.d.ts.map +1 -1
- package/dist/lib/focus-styles.d.ts +13 -5
- package/dist/lib/focus-styles.d.ts.map +1 -1
- package/dist/theme.css +1 -2
- package/package.json +1 -1
- package/src/components/autocomplete/autocomplete.test.tsx +32 -0
- package/src/components/autocomplete/autocomplete.tsx +17 -5
- package/src/components/autocomplete/index.ts +5 -1
- package/src/components/button/button.test.tsx +6 -0
- package/src/components/calendar/calendar-zone-sync.tsx +79 -0
- package/src/components/calendar/calendar.test.tsx +134 -14
- package/src/components/calendar/calendar.tsx +36 -22
- package/src/components/chart/chart.test.tsx +115 -8
- package/src/components/chart/chart.tsx +115 -25
- package/src/components/chart/styles.css +100 -0
- package/src/components/choice-card-group/index.ts +2 -0
- package/src/components/circular-progress/circular-progress.tsx +2 -0
- package/src/components/clipboard/clipboard.test.tsx +54 -22
- package/src/components/clipboard/clipboard.tsx +2 -0
- package/src/components/clipboard/copy.tsx +2 -0
- package/src/components/clipboard/index.ts +3 -3
- package/src/components/combobox/combobox.test.tsx +22 -0
- package/src/components/combobox/combobox.tsx +20 -0
- package/src/components/combobox/index.ts +1 -0
- package/src/components/combobox-list/combobox-list.test.tsx +19 -0
- package/src/components/combobox-list/combobox-list.tsx +16 -2
- package/src/components/combobox-list/index.ts +5 -1
- package/src/components/data-table/data-table-filter/data-table-date-filter.tsx +5 -4
- package/src/components/data-table/data-table-filter/data-table-number-filter.tsx +16 -2
- package/src/components/data-table/data-table-filter/data-table-select-filter.tsx +9 -1
- package/src/components/data-table/data-table-filter/index.tsx +15 -1
- package/src/components/data-table/data-table-filter.test.tsx +33 -0
- package/src/components/data-table/data-table-header-cell.tsx +37 -22
- package/src/components/data-table/data-table-meta.ts +2 -2
- package/src/components/data-table/data-table-pagination.tsx +6 -0
- package/src/components/data-table/data-table-stack.tsx +26 -14
- package/src/components/data-table/data-table-toolbar.tsx +4 -1
- package/src/components/data-table/data-table-translations.ts +105 -0
- package/src/components/data-table/data-table.test.tsx +121 -0
- package/src/components/data-table/data-table.tsx +37 -17
- package/src/components/data-table/index.ts +9 -1
- package/src/components/date-picker/date-picker.test.tsx +197 -5
- package/src/components/date-picker/date-picker.tsx +42 -16
- package/src/components/drawer/drawer.tsx +14 -1
- package/src/components/drawer/index.ts +1 -0
- package/src/components/field/field.tsx +29 -3
- package/src/components/file-upload/file-upload.test.tsx +21 -0
- package/src/components/file-upload/file-upload.tsx +26 -3
- package/src/components/file-upload/index.ts +1 -1
- package/src/components/modal/index.ts +1 -0
- package/src/components/modal/modal-translations.test.tsx +27 -0
- package/src/components/modal/modal.tsx +14 -1
- package/src/components/multi-combobox-list/index.ts +5 -1
- package/src/components/multi-combobox-list/multi-combobox-list.test.tsx +19 -0
- package/src/components/multi-combobox-list/multi-combobox-list.tsx +26 -4
- package/src/components/multi-select/index.ts +1 -1
- package/src/components/multi-select/multi-select.test.tsx +38 -0
- package/src/components/multi-select/multi-select.tsx +28 -4
- package/src/components/nav-link/index.ts +6 -1
- package/src/components/nav-link/nav-link.test.tsx +16 -0
- package/src/components/nav-link/nav-link.tsx +19 -1
- package/src/components/nav-link/navigation.test.tsx +18 -0
- package/src/components/nav-link/navigation.tsx +8 -4
- package/src/components/notification/create-notifier.tsx +20 -4
- package/src/components/notification/index.ts +7 -1
- package/src/components/notification/notification.test.tsx +49 -0
- package/src/components/notification/notification.tsx +39 -5
- package/src/components/number-input/index.ts +1 -1
- package/src/components/number-input/number-input.test.tsx +37 -0
- package/src/components/number-input/number-input.tsx +33 -4
- package/src/components/password-input/index.ts +5 -1
- package/src/components/password-input/password-input.test.tsx +201 -4
- package/src/components/password-input/password-input.tsx +162 -13
- package/src/components/popover/popover.tsx +0 -29
- package/src/components/progress/index.ts +3 -3
- package/src/components/progress/progress.tsx +2 -0
- package/src/components/rating/rating.tsx +2 -0
- package/src/components/schedule/now-cursor-line.test.tsx +56 -28
- package/src/components/schedule/now-cursor-line.tsx +30 -16
- package/src/components/schedule/schedule-agenda-view.test.tsx +1 -1
- package/src/components/schedule/schedule-dates.test.ts +19 -0
- package/src/components/schedule/schedule-dates.ts +16 -30
- package/src/components/schedule/schedule-details-popover.test.tsx +77 -6
- package/src/components/schedule/schedule-event-chip.tsx +17 -6
- package/src/components/schedule/schedule-event-details.test.tsx +38 -0
- package/src/components/schedule/schedule-event-details.tsx +7 -5
- package/src/components/schedule/schedule-geometry.test.ts +21 -18
- package/src/components/schedule/schedule-geometry.ts +37 -24
- package/src/components/schedule/schedule-grid-gesture.ts +5 -9
- package/src/components/schedule/schedule-segments.ts +2 -3
- package/src/components/schedule/schedule-timed-grid.tsx +43 -20
- package/src/components/schedule/schedule.test.tsx +34 -11
- package/src/components/schedule/use-event-resize.ts +6 -13
- package/src/components/segment-group/segment-group.test.tsx +23 -0
- package/src/components/segment-group/segment-group.tsx +13 -7
- package/src/components/select/index.ts +1 -1
- package/src/components/select/select.test.tsx +32 -0
- package/src/components/select/select.tsx +15 -1
- package/src/components/spinner/spinner.test.tsx +26 -0
- package/src/components/spinner/spinner.tsx +4 -1
- package/src/components/table/table.test.tsx +13 -0
- package/src/components/table/table.tsx +9 -5
- package/src/components/tabs/tabs.test.tsx +11 -0
- package/src/components/tabs/tabs.tsx +6 -4
- package/src/components/tags-input/index.ts +1 -1
- package/src/components/tags-input/tags-input.test.tsx +28 -0
- package/src/components/tags-input/tags-input.tsx +17 -1
- package/src/components/theme-icon/theme-icon.tsx +8 -3
- package/src/components/time-input/time-input.test.tsx +75 -0
- package/src/components/time-input/time-input.tsx +27 -3
- package/src/components/time-input/time-row.tsx +27 -3
- package/src/components/timeline/timeline.tsx +6 -3
- package/src/components/tree-multi-select/index.ts +5 -1
- package/src/components/tree-multi-select/tree-multi-select.test.tsx +72 -0
- package/src/components/tree-multi-select/tree-multi-select.tsx +156 -115
- package/src/components/tree-select/index.ts +1 -1
- package/src/components/tree-select/tree-select.test.tsx +69 -0
- package/src/components/tree-select/tree-select.tsx +128 -74
- package/src/lib/date-value.test.ts +19 -0
- package/src/lib/date-value.ts +21 -5
- package/src/lib/focus-styles.test.ts +21 -2
- package/src/lib/focus-styles.ts +24 -5
- package/src/theme.css +1 -2
- package/src/use-client-barrels.test.ts +80 -0
- package/dist/chunk-5JHDSVEZ.js.map +0 -1
- package/dist/chunk-6GDMSENK.js.map +0 -1
- package/dist/chunk-6OLTJYSX.js.map +0 -1
- package/dist/chunk-7NZSTCJO.js.map +0 -1
- package/dist/chunk-B2LCHXUB.js.map +0 -1
- package/dist/chunk-B2YJKRNQ.js.map +0 -1
- package/dist/chunk-EBREIC3L.js.map +0 -1
- package/dist/chunk-FHG54IT5.js.map +0 -1
- package/dist/chunk-FZIHZT5R.js.map +0 -1
- package/dist/chunk-HT5JAHR3.js.map +0 -1
- package/dist/chunk-KHMFNH3X.js.map +0 -1
- package/dist/chunk-NSDM3FEB.js.map +0 -1
- package/dist/chunk-O23Y5ML4.js.map +0 -1
- package/dist/chunk-PH354ECN.js.map +0 -1
- package/dist/chunk-RQL7FVCS.js.map +0 -1
- package/dist/chunk-TCWYBVIL.js.map +0 -1
- package/dist/chunk-UHNRAI6V.js.map +0 -1
- package/dist/chunk-WHKKN3ZK.js.map +0 -1
- package/dist/chunk-WQN64ZHG.js.map +0 -1
- package/dist/chunk-YBJB7FGE.js.map +0 -1
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import { TimeRow, resolveHourCycle, timeRowMinWidth, is12Hour, to12Hour, to24Hour, dayPeriodLabels } from './chunk-
|
|
2
|
-
import { CalendarBody, calendarGridWidth, resolveCalendarTranslations } from './chunk-
|
|
3
|
-
import { calendarValueToDate,
|
|
1
|
+
import { TimeRow, resolveHourCycle, timeRowMinWidth, is12Hour, to12Hour, to24Hour, dayPeriodLabels } from './chunk-Z43YWH4R.js';
|
|
2
|
+
import { CalendarBody, CalendarZoneSync, calendarGridWidth, hashArkValues, resolveCalendarTranslations } from './chunk-VZBUQNLX.js';
|
|
3
|
+
import { calendarValueToDate, dateToArkValue, fromArkValues, toArkValues } from './chunk-ZB5VMGKB.js';
|
|
4
4
|
import { mergeRefs } from './chunk-UVYTJQTJ.js';
|
|
5
5
|
import { controlOpenProps } from './chunk-5FDOOG4J.js';
|
|
6
|
-
import { inputSlot, inputControlClasses, shellGap, placeholderColor, inputShell } from './chunk-
|
|
7
|
-
import { FieldShell, fieldA11yProps } from './chunk-
|
|
8
|
-
import { Button } from './chunk-
|
|
9
|
-
import {
|
|
6
|
+
import { inputSlot, inputControlClasses, shellGap, placeholderColor, inputShell } from './chunk-Z6RPMRFH.js';
|
|
7
|
+
import { FieldShell, fieldA11yProps } from './chunk-TBTSEPGP.js';
|
|
8
|
+
import { Button } from './chunk-QIDAXFKK.js';
|
|
9
|
+
import { useTimeZone } from './chunk-57BTVRRB.js';
|
|
10
|
+
import { Popover, popoverClearTrigger, popoverPanel } from './chunk-LM6F6DLR.js';
|
|
10
11
|
import { NestedLayer } from './chunk-AIQG7IIT.js';
|
|
11
12
|
import { useOverlayContainer } from './chunk-7P32XCEU.js';
|
|
12
13
|
import { useUncontrolled } from './chunk-BEL75C7N.js';
|
|
13
14
|
import { CalendarIcon, CloseIcon } from './chunk-IG7FBZVM.js';
|
|
14
15
|
import { props } from './chunk-WYCMIIRR.js';
|
|
15
|
-
import { focusStyles } from './chunk-
|
|
16
|
+
import { focusStyles } from './chunk-INJUILCN.js';
|
|
16
17
|
import { cn } from './chunk-QP4I37PA.js';
|
|
17
18
|
import { DatePicker as DatePicker$1 } from '@ark-ui/react/date-picker';
|
|
18
19
|
import { useFieldContext } from '@ark-ui/react/field';
|
|
19
20
|
import { useLocaleContext } from '@ark-ui/react/locale';
|
|
20
21
|
import { Portal } from '@ark-ui/react/portal';
|
|
21
|
-
import {
|
|
22
|
-
import { useRef, useState } from 'react';
|
|
22
|
+
import { DateFormatter, today, toCalendarDateTime, CalendarDateTime } from '@internationalized/date';
|
|
23
|
+
import { useRef, useState, useId } from 'react';
|
|
23
24
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
24
25
|
|
|
25
26
|
var formatter = ({ locale, hourCycle, withSeconds }, timeZone) => new Intl.DateTimeFormat(locale, {
|
|
@@ -180,11 +181,13 @@ var TimePanelRow = ({
|
|
|
180
181
|
const twelveHour = is12Hour(hourCycle);
|
|
181
182
|
const display = toDisplayTime(value, twelveHour);
|
|
182
183
|
const patch = (partial) => onSetTime(fromDisplayTime({ ...display, ...partial }, twelveHour));
|
|
184
|
+
const labelId = useId();
|
|
183
185
|
return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-1", classNames?.root), children: [
|
|
184
|
-
label && /* @__PURE__ */ jsx("span", { className: timePanelLabel, children: label }),
|
|
186
|
+
label && /* @__PURE__ */ jsx("span", { id: labelId, className: timePanelLabel, children: label }),
|
|
185
187
|
/* @__PURE__ */ jsx(
|
|
186
188
|
TimeRow,
|
|
187
189
|
{
|
|
190
|
+
"aria-labelledby": label ? labelId : void 0,
|
|
188
191
|
hour: display.hour,
|
|
189
192
|
minute: display.minute,
|
|
190
193
|
second: display.second,
|
|
@@ -315,7 +318,7 @@ var DatePickerImpl = ({
|
|
|
315
318
|
const portalContainer = useOverlayContainer(container);
|
|
316
319
|
const { locale: contextLocale } = useLocaleContext();
|
|
317
320
|
const resolvedLocale = locale ?? contextLocale;
|
|
318
|
-
const resolvedTimeZone = timeZone
|
|
321
|
+
const resolvedTimeZone = useTimeZone(timeZone);
|
|
319
322
|
const resolvedHourCycle = resolveHourCycle({ locale: resolvedLocale, format, hourCycle });
|
|
320
323
|
const isInvalid = invalid || error != null;
|
|
321
324
|
const isRange = Boolean(range);
|
|
@@ -332,6 +335,7 @@ var DatePickerImpl = ({
|
|
|
332
335
|
onChange
|
|
333
336
|
});
|
|
334
337
|
const [staged, setStaged] = useState(committed);
|
|
338
|
+
const zoneReseed = useRef(null);
|
|
335
339
|
return /* @__PURE__ */ jsx(
|
|
336
340
|
FieldShell,
|
|
337
341
|
{
|
|
@@ -342,7 +346,7 @@ var DatePickerImpl = ({
|
|
|
342
346
|
disabled,
|
|
343
347
|
size,
|
|
344
348
|
className: classNames?.field,
|
|
345
|
-
children: /* @__PURE__ */
|
|
349
|
+
children: /* @__PURE__ */ jsxs(
|
|
346
350
|
DatePicker$1.Root,
|
|
347
351
|
{
|
|
348
352
|
id,
|
|
@@ -359,6 +363,10 @@ var DatePickerImpl = ({
|
|
|
359
363
|
value: toArkValues(withConfirm ? staged : value, resolvedTimeZone),
|
|
360
364
|
defaultValue: withConfirm ? void 0 : toArkValues(defaultValue, resolvedTimeZone),
|
|
361
365
|
onValueChange: (details) => {
|
|
366
|
+
if (zoneReseed.current === hashArkValues(details.value)) {
|
|
367
|
+
zoneReseed.current = null;
|
|
368
|
+
return;
|
|
369
|
+
}
|
|
362
370
|
const next = fromArkValues(details.value, isRange, resolvedTimeZone);
|
|
363
371
|
if (withConfirm) setStaged(next);
|
|
364
372
|
else onChange?.(next);
|
|
@@ -370,8 +378,8 @@ var DatePickerImpl = ({
|
|
|
370
378
|
calendarValueToDate(dateValue, resolvedTimeZone),
|
|
371
379
|
resolvedTimeZone
|
|
372
380
|
) : void 0,
|
|
373
|
-
min: min ?
|
|
374
|
-
max: max ?
|
|
381
|
+
min: min ? dateToArkValue(min, resolvedTimeZone) : void 0,
|
|
382
|
+
max: max ? dateToArkValue(max, resolvedTimeZone) : void 0,
|
|
375
383
|
format: withTime && showTypeableInput ? (date) => formatDateTimeText(date, dateTimeText, resolvedTimeZone) : withTime ? (date, { locale: fmtLocale }) => new DateFormatter(fmtLocale, { dateStyle: "medium", timeStyle: "short" }).format(
|
|
376
384
|
calendarValueToDate(date, resolvedTimeZone)
|
|
377
385
|
) : void 0,
|
|
@@ -381,239 +389,249 @@ var DatePickerImpl = ({
|
|
|
381
389
|
required,
|
|
382
390
|
invalid: isInvalid,
|
|
383
391
|
className: cn("w-full", className),
|
|
384
|
-
children:
|
|
385
|
-
/* @__PURE__ */
|
|
386
|
-
|
|
392
|
+
children: [
|
|
393
|
+
/* @__PURE__ */ jsx(
|
|
394
|
+
CalendarZoneSync,
|
|
387
395
|
{
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
396
|
+
timeZone: resolvedTimeZone,
|
|
397
|
+
controlled: withConfirm || value !== void 0,
|
|
398
|
+
pendingRef: zoneReseed
|
|
399
|
+
}
|
|
400
|
+
),
|
|
401
|
+
/* @__PURE__ */ jsx(DatePicker$1.Context, { children: (api) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
402
|
+
/* @__PURE__ */ jsxs(
|
|
403
|
+
DatePicker$1.Control,
|
|
404
|
+
{
|
|
405
|
+
ref: controlRef,
|
|
406
|
+
...props({
|
|
407
|
+
"data-invalid": isInvalid,
|
|
408
|
+
"data-with-start-slot": true,
|
|
409
|
+
"data-with-end-slot": true
|
|
410
|
+
}),
|
|
411
|
+
...disabled || readOnly ? {} : controlOpenProps(() => api.setOpen(true)),
|
|
412
|
+
className: cn(
|
|
413
|
+
inputShell({ size, variant }),
|
|
414
|
+
// A real `<input>` sits in the shell under `typeable` — leave the shell's own
|
|
415
|
+
// cursor at the browser default (text-cursor over the input, pointer over the
|
|
416
|
+
// icon trigger / clear button) instead of forcing pointer everywhere, matching
|
|
417
|
+
// `Combobox`'s Control (see `combobox.tsx`) rather than `Select`'s button-only one.
|
|
418
|
+
!showTypeableInput && "cursor-pointer",
|
|
419
|
+
classNames?.control
|
|
420
|
+
),
|
|
421
|
+
children: [
|
|
422
|
+
showTypeableInput ? /* @__PURE__ */ jsxs("div", { className: cn("flex min-w-0 flex-1 items-center", shellGap[size]), children: [
|
|
423
|
+
/* @__PURE__ */ jsx(DatePicker$1.Trigger, { className: datePickerIconTrigger, children: startSlot ?? /* @__PURE__ */ jsx(CalendarIcon, {}) }),
|
|
424
|
+
withTime ? /* @__PURE__ */ jsx(
|
|
425
|
+
DateTimeTextInput,
|
|
426
|
+
{
|
|
427
|
+
api,
|
|
428
|
+
options: dateTimeText,
|
|
429
|
+
timeZone: resolvedTimeZone,
|
|
430
|
+
ref: mergeRefs(inputRef, ref),
|
|
431
|
+
onBlur,
|
|
432
|
+
placeholder,
|
|
433
|
+
disabled,
|
|
434
|
+
readOnly,
|
|
435
|
+
invalid: isInvalid,
|
|
436
|
+
testId
|
|
437
|
+
}
|
|
438
|
+
) : /* @__PURE__ */ jsx(
|
|
439
|
+
DatePicker$1.Input,
|
|
440
|
+
{
|
|
441
|
+
ref: mergeRefs(inputRef, ref),
|
|
442
|
+
onBlur,
|
|
443
|
+
placeholder,
|
|
444
|
+
...props({ "data-testid": testId }),
|
|
445
|
+
className: inputControlClasses
|
|
446
|
+
}
|
|
447
|
+
)
|
|
448
|
+
] }) : /* @__PURE__ */ jsxs(
|
|
449
|
+
DatePicker$1.Trigger,
|
|
423
450
|
{
|
|
424
|
-
ref: mergeRefs(
|
|
451
|
+
ref: mergeRefs(triggerRef, ref),
|
|
425
452
|
onBlur,
|
|
426
|
-
|
|
453
|
+
"aria-invalid": isInvalid || void 0,
|
|
427
454
|
...props({ "data-testid": testId }),
|
|
428
|
-
className:
|
|
455
|
+
className: cn(
|
|
456
|
+
"flex min-w-0 flex-1 cursor-pointer items-center bg-transparent text-start outline-none disabled:cursor-not-allowed",
|
|
457
|
+
shellGap[size]
|
|
458
|
+
),
|
|
459
|
+
children: [
|
|
460
|
+
/* @__PURE__ */ jsx("span", { className: inputSlot, "aria-hidden": true, children: startSlot ?? /* @__PURE__ */ jsx(CalendarIcon, {}) }),
|
|
461
|
+
/* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 truncate text-start", children: isRange ? api.value.length === 0 ? /* @__PURE__ */ jsx("span", { className: placeholderColor, children: placeholder }) : (
|
|
462
|
+
// Not `Ark.RangeText`: despite the name, it renders the calendar's
|
|
463
|
+
// *visible* month/year viewport (the same text the header's ViewTrigger
|
|
464
|
+
// shows), not the selected range — `datePicker.visibleRangeText` in Ark's
|
|
465
|
+
// own source. Build the real selected-range text from `valueAsString`
|
|
466
|
+
// instead (the same per-value formatted strings `Ark.ValueText` uses).
|
|
467
|
+
api.valueAsString.join(" \u2013 ")
|
|
468
|
+
) : /* @__PURE__ */ jsx(DatePicker$1.ValueText, { placeholder }) })
|
|
469
|
+
]
|
|
429
470
|
}
|
|
430
|
-
)
|
|
431
|
-
|
|
432
|
-
DatePicker$1.
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
/* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 truncate text-start", children: isRange ? api.value.length === 0 ? /* @__PURE__ */ jsx("span", { className: placeholderColor, children: placeholder }) : (
|
|
445
|
-
// Not `Ark.RangeText`: despite the name, it renders the calendar's
|
|
446
|
-
// *visible* month/year viewport (the same text the header's ViewTrigger
|
|
447
|
-
// shows), not the selected range — `datePicker.visibleRangeText` in Ark's
|
|
448
|
-
// own source. Build the real selected-range text from `valueAsString`
|
|
449
|
-
// instead (the same per-value formatted strings `Ark.ValueText` uses).
|
|
450
|
-
api.valueAsString.join(" \u2013 ")
|
|
451
|
-
) : /* @__PURE__ */ jsx(DatePicker$1.ValueText, { placeholder }) })
|
|
452
|
-
]
|
|
453
|
-
}
|
|
454
|
-
),
|
|
455
|
-
clearable && // Ark's own ClearTrigger already self-hides (`hidden`) while empty.
|
|
456
|
-
/* @__PURE__ */ jsx(DatePicker$1.ClearTrigger, { className: popoverClearTrigger, children: /* @__PURE__ */ jsx(CloseIcon, {}) })
|
|
457
|
-
]
|
|
458
|
-
}
|
|
459
|
-
),
|
|
460
|
-
/* @__PURE__ */ jsx(NestedLayer, { open: api.open }),
|
|
461
|
-
/* @__PURE__ */ jsx(Portal, { disabled: !withinPortal, container: portalContainer, children: /* @__PURE__ */ jsx(DatePicker$1.Positioner, { children: /* @__PURE__ */ jsxs(
|
|
462
|
-
DatePicker$1.Content,
|
|
463
|
-
{
|
|
464
|
-
className: cn(
|
|
465
|
-
popoverPanel,
|
|
466
|
-
"max-w-[92vw] flex-row flex-wrap items-stretch",
|
|
467
|
-
classNames?.content
|
|
468
|
-
),
|
|
469
|
-
children: [
|
|
470
|
-
presets && /* @__PURE__ */ jsx(
|
|
471
|
-
PresetsRail,
|
|
472
|
-
{
|
|
473
|
-
presets,
|
|
474
|
-
range: isRange,
|
|
475
|
-
timeZone: resolvedTimeZone,
|
|
476
|
-
withConfirm,
|
|
477
|
-
translations: translations?.presets,
|
|
478
|
-
className: classNames?.presets
|
|
479
|
-
}
|
|
471
|
+
),
|
|
472
|
+
clearable && // Ark's own ClearTrigger already self-hides (`hidden`) while empty.
|
|
473
|
+
/* @__PURE__ */ jsx(DatePicker$1.ClearTrigger, { className: popoverClearTrigger, children: /* @__PURE__ */ jsx(CloseIcon, {}) })
|
|
474
|
+
]
|
|
475
|
+
}
|
|
476
|
+
),
|
|
477
|
+
/* @__PURE__ */ jsx(NestedLayer, { open: api.open }),
|
|
478
|
+
/* @__PURE__ */ jsx(Portal, { disabled: !withinPortal, container: portalContainer, children: /* @__PURE__ */ jsx(DatePicker$1.Positioner, { children: /* @__PURE__ */ jsxs(
|
|
479
|
+
DatePicker$1.Content,
|
|
480
|
+
{
|
|
481
|
+
className: cn(
|
|
482
|
+
popoverPanel,
|
|
483
|
+
"max-w-[92vw] flex-row flex-wrap items-stretch",
|
|
484
|
+
classNames?.content
|
|
480
485
|
),
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
className: cn(
|
|
512
|
-
"flex gap-x-2 gap-y-2 pb-2",
|
|
513
|
-
// Stacked by default — side by side only widens to match the extra
|
|
514
|
-
// room multiple months already provide; with a single month, sitting
|
|
515
|
-
// two time rows side by side would force the popover wider than the
|
|
516
|
-
// calendar above them for no reason.
|
|
517
|
-
numOfMonths > 1 ? "flex-row flex-wrap" : "flex-col",
|
|
518
|
-
classNames?.footer
|
|
519
|
-
),
|
|
520
|
-
children: [
|
|
521
|
-
/* @__PURE__ */ jsx(
|
|
522
|
-
TimePanelRow,
|
|
523
|
-
{
|
|
524
|
-
value: api.value[0],
|
|
525
|
-
onSetTime: (time) => setTimeOrToday(api, time, 0, resolvedTimeZone),
|
|
526
|
-
label: isRange ? translations?.startTime ?? "Start time" : void 0,
|
|
527
|
-
hourCycle: resolvedHourCycle,
|
|
528
|
-
minuteStep,
|
|
529
|
-
withSeconds,
|
|
530
|
-
placeholder: timePlaceholder,
|
|
531
|
-
locale: resolvedLocale,
|
|
532
|
-
translations,
|
|
533
|
-
size,
|
|
534
|
-
variant,
|
|
535
|
-
classNames: { root: "flex-1", ...classNames?.timePanel }
|
|
536
|
-
}
|
|
537
|
-
),
|
|
538
|
-
isRange && /* @__PURE__ */ jsx(
|
|
539
|
-
TimePanelRow,
|
|
486
|
+
children: [
|
|
487
|
+
presets && /* @__PURE__ */ jsx(
|
|
488
|
+
PresetsRail,
|
|
489
|
+
{
|
|
490
|
+
presets,
|
|
491
|
+
range: isRange,
|
|
492
|
+
timeZone: resolvedTimeZone,
|
|
493
|
+
withConfirm,
|
|
494
|
+
translations: translations?.presets,
|
|
495
|
+
className: classNames?.presets
|
|
496
|
+
}
|
|
497
|
+
),
|
|
498
|
+
/* @__PURE__ */ jsxs(
|
|
499
|
+
"div",
|
|
500
|
+
{
|
|
501
|
+
className: "flex min-w-0 flex-1 flex-col",
|
|
502
|
+
style: {
|
|
503
|
+
width: Math.max(
|
|
504
|
+
calendarGridWidth(size, numOfMonths),
|
|
505
|
+
withTime ? timeRowMinWidth(size, resolvedHourCycle, withSeconds) : 0
|
|
506
|
+
) + 16
|
|
507
|
+
// Take the x padding into account
|
|
508
|
+
},
|
|
509
|
+
children: [
|
|
510
|
+
/* @__PURE__ */ jsx(
|
|
511
|
+
Popover.Body,
|
|
512
|
+
{
|
|
513
|
+
className: cn("p-2", withTime || withConfirm ? "border-b" : void 0),
|
|
514
|
+
children: /* @__PURE__ */ jsx(
|
|
515
|
+
CalendarBody,
|
|
540
516
|
{
|
|
541
|
-
|
|
542
|
-
onSetTime: (time) => api.setTime(time, 1),
|
|
543
|
-
label: translations?.endTime ?? "End time",
|
|
544
|
-
disabled: api.value.length < 2,
|
|
545
|
-
hourCycle: resolvedHourCycle,
|
|
546
|
-
minuteStep,
|
|
547
|
-
withSeconds,
|
|
548
|
-
placeholder: timePlaceholder,
|
|
549
|
-
locale: resolvedLocale,
|
|
550
|
-
translations,
|
|
517
|
+
numOfMonths,
|
|
551
518
|
size,
|
|
552
|
-
|
|
553
|
-
classNames:
|
|
519
|
+
timeZone: resolvedTimeZone,
|
|
520
|
+
classNames: classNames?.calendar
|
|
554
521
|
}
|
|
555
522
|
)
|
|
556
|
-
]
|
|
557
|
-
}
|
|
558
|
-
),
|
|
559
|
-
withConfirm && /* @__PURE__ */ jsxs(Popover.Footer, { className: "flex justify-end gap-2 pb-2", children: [
|
|
560
|
-
/* @__PURE__ */ jsx(
|
|
561
|
-
Button,
|
|
562
|
-
{
|
|
563
|
-
variant: "subtle",
|
|
564
|
-
color: "neutral",
|
|
565
|
-
size,
|
|
566
|
-
onClick: () => {
|
|
567
|
-
setStaged(committed);
|
|
568
|
-
api.setOpen(false);
|
|
569
|
-
},
|
|
570
|
-
children: translations?.cancel ?? "Cancel"
|
|
571
523
|
}
|
|
572
524
|
),
|
|
573
|
-
/* @__PURE__ */
|
|
574
|
-
|
|
525
|
+
withTime && /* @__PURE__ */ jsxs(
|
|
526
|
+
Popover.Footer,
|
|
575
527
|
{
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
528
|
+
className: cn(
|
|
529
|
+
"flex gap-x-2 gap-y-2 pb-2",
|
|
530
|
+
// Stacked by default — side by side only widens to match the extra
|
|
531
|
+
// room multiple months already provide; with a single month, sitting
|
|
532
|
+
// two time rows side by side would force the popover wider than the
|
|
533
|
+
// calendar above them for no reason.
|
|
534
|
+
numOfMonths > 1 ? "flex-row flex-wrap" : "flex-col",
|
|
535
|
+
classNames?.footer
|
|
536
|
+
),
|
|
537
|
+
children: [
|
|
538
|
+
/* @__PURE__ */ jsx(
|
|
539
|
+
TimePanelRow,
|
|
540
|
+
{
|
|
541
|
+
value: api.value[0],
|
|
542
|
+
onSetTime: (time) => setTimeOrToday(api, time, 0, resolvedTimeZone),
|
|
543
|
+
label: isRange ? translations?.startTime ?? "Start time" : void 0,
|
|
544
|
+
hourCycle: resolvedHourCycle,
|
|
545
|
+
minuteStep,
|
|
546
|
+
withSeconds,
|
|
547
|
+
placeholder: timePlaceholder,
|
|
548
|
+
locale: resolvedLocale,
|
|
549
|
+
translations,
|
|
550
|
+
size,
|
|
551
|
+
variant,
|
|
552
|
+
classNames: { root: "flex-1", ...classNames?.timePanel }
|
|
553
|
+
}
|
|
554
|
+
),
|
|
555
|
+
isRange && /* @__PURE__ */ jsx(
|
|
556
|
+
TimePanelRow,
|
|
557
|
+
{
|
|
558
|
+
value: api.value[1],
|
|
559
|
+
onSetTime: (time) => api.setTime(time, 1),
|
|
560
|
+
label: translations?.endTime ?? "End time",
|
|
561
|
+
disabled: api.value.length < 2,
|
|
562
|
+
hourCycle: resolvedHourCycle,
|
|
563
|
+
minuteStep,
|
|
564
|
+
withSeconds,
|
|
565
|
+
placeholder: timePlaceholder,
|
|
566
|
+
locale: resolvedLocale,
|
|
567
|
+
translations,
|
|
568
|
+
size,
|
|
569
|
+
variant,
|
|
570
|
+
classNames: { root: "flex-1", ...classNames?.timePanel }
|
|
571
|
+
}
|
|
572
|
+
)
|
|
573
|
+
]
|
|
582
574
|
}
|
|
583
|
-
)
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
575
|
+
),
|
|
576
|
+
withConfirm && /* @__PURE__ */ jsxs(Popover.Footer, { className: "flex justify-end gap-2 pb-2", children: [
|
|
577
|
+
/* @__PURE__ */ jsx(
|
|
578
|
+
Button,
|
|
579
|
+
{
|
|
580
|
+
variant: "subtle",
|
|
581
|
+
color: "neutral",
|
|
582
|
+
size,
|
|
583
|
+
onClick: () => {
|
|
584
|
+
setStaged(committed);
|
|
585
|
+
api.setOpen(false);
|
|
586
|
+
},
|
|
587
|
+
children: translations?.cancel ?? "Cancel"
|
|
588
|
+
}
|
|
589
|
+
),
|
|
590
|
+
/* @__PURE__ */ jsx(
|
|
591
|
+
Button,
|
|
592
|
+
{
|
|
593
|
+
size,
|
|
594
|
+
onClick: () => {
|
|
595
|
+
setCommitted(staged);
|
|
596
|
+
api.setOpen(false);
|
|
597
|
+
},
|
|
598
|
+
children: translations?.apply ?? "Apply"
|
|
599
|
+
}
|
|
600
|
+
)
|
|
601
|
+
] })
|
|
602
|
+
]
|
|
603
|
+
}
|
|
604
|
+
)
|
|
605
|
+
]
|
|
598
606
|
}
|
|
599
|
-
),
|
|
600
|
-
/* @__PURE__ */
|
|
607
|
+
) }) }),
|
|
608
|
+
name && (isRange ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
609
|
+
/* @__PURE__ */ jsx(
|
|
610
|
+
"input",
|
|
611
|
+
{
|
|
612
|
+
type: "hidden",
|
|
613
|
+
name: `${name}Start`,
|
|
614
|
+
value: api.value[0] ? serializeDateValue(api.value[0], Boolean(withTime)) : ""
|
|
615
|
+
}
|
|
616
|
+
),
|
|
617
|
+
/* @__PURE__ */ jsx(
|
|
618
|
+
"input",
|
|
619
|
+
{
|
|
620
|
+
type: "hidden",
|
|
621
|
+
name: `${name}End`,
|
|
622
|
+
value: api.value[1] ? serializeDateValue(api.value[1], Boolean(withTime)) : ""
|
|
623
|
+
}
|
|
624
|
+
)
|
|
625
|
+
] }) : /* @__PURE__ */ jsx(
|
|
601
626
|
"input",
|
|
602
627
|
{
|
|
603
628
|
type: "hidden",
|
|
604
|
-
name
|
|
605
|
-
value: api.value[
|
|
629
|
+
name,
|
|
630
|
+
value: api.value[0] ? serializeDateValue(api.value[0], Boolean(withTime)) : ""
|
|
606
631
|
}
|
|
607
|
-
)
|
|
608
|
-
] })
|
|
609
|
-
|
|
610
|
-
{
|
|
611
|
-
type: "hidden",
|
|
612
|
-
name,
|
|
613
|
-
value: api.value[0] ? serializeDateValue(api.value[0], Boolean(withTime)) : ""
|
|
614
|
-
}
|
|
615
|
-
))
|
|
616
|
-
] }) })
|
|
632
|
+
))
|
|
633
|
+
] }) })
|
|
634
|
+
]
|
|
617
635
|
}
|
|
618
636
|
)
|
|
619
637
|
}
|
|
@@ -635,5 +653,5 @@ var DatePicker = Object.assign(DatePickerImpl, {
|
|
|
635
653
|
});
|
|
636
654
|
|
|
637
655
|
export { DatePicker, serializeDateValue };
|
|
638
|
-
//# sourceMappingURL=chunk-
|
|
639
|
-
//# sourceMappingURL=chunk-
|
|
656
|
+
//# sourceMappingURL=chunk-OGJFDNIS.js.map
|
|
657
|
+
//# sourceMappingURL=chunk-OGJFDNIS.js.map
|