@42-central/ui-react 0.18.2 → 0.19.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/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/colors.css +15 -10
- 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 +11 -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 +24 -2
- package/package.json +1 -1
- package/src/colors.css +15 -10
- 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.test.tsx +4 -1
- package/src/components/timeline/timeline.tsx +11 -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 +24 -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,22 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Tabs } from '../../chunk-
|
|
2
|
+
import { Tabs } from '../../chunk-MQO42HZL.js';
|
|
3
3
|
import { Divider } from '../../chunk-CTSO6V72.js';
|
|
4
4
|
import { Text } from '../../chunk-CSCVTESP.js';
|
|
5
|
-
import { calendarValueToDate, dateToCalendarValue } from '../../chunk-
|
|
5
|
+
import { calendarValueToDate, dateToCalendarValue } from '../../chunk-ZB5VMGKB.js';
|
|
6
6
|
import { mergeRefs } from '../../chunk-UVYTJQTJ.js';
|
|
7
|
-
import { Button } from '../../chunk-
|
|
8
|
-
import { useLocale, useTimeZone,
|
|
9
|
-
import {
|
|
7
|
+
import { Button } from '../../chunk-QIDAXFKK.js';
|
|
8
|
+
import { useLocale, useTimeZone, DEFAULT_LOCALE } from '../../chunk-57BTVRRB.js';
|
|
9
|
+
import { devWarn } from '../../chunk-OC7I2CTA.js';
|
|
10
|
+
import { Popover } from '../../chunk-LM6F6DLR.js';
|
|
10
11
|
import '../../chunk-AIQG7IIT.js';
|
|
11
12
|
import { OverlayContainerProvider } from '../../chunk-7P32XCEU.js';
|
|
12
13
|
import '../../chunk-BUIHQJGE.js';
|
|
13
14
|
import '../../chunk-2GILNBZW.js';
|
|
14
|
-
import { ActionIcon } from '../../chunk-
|
|
15
|
+
import { ActionIcon } from '../../chunk-RIP5G47F.js';
|
|
15
16
|
import { useUncontrolled } from '../../chunk-BEL75C7N.js';
|
|
16
|
-
import '../../chunk-
|
|
17
|
+
import '../../chunk-PS2PZFXH.js';
|
|
17
18
|
import { withAsChildContent } from '../../chunk-I4SQQIP5.js';
|
|
18
19
|
import { props } from '../../chunk-WYCMIIRR.js';
|
|
19
|
-
import { focusStyles } from '../../chunk-
|
|
20
|
+
import { focusStyles } from '../../chunk-INJUILCN.js';
|
|
20
21
|
import { cn } from '../../chunk-QP4I37PA.js';
|
|
21
22
|
import { startOfWeek, getDayOfWeek, startOfMonth, endOfWeek, endOfMonth, startOfYear, endOfYear, getLocalTimeZone, isWeekend } from '@internationalized/date';
|
|
22
23
|
import { ark } from '@ark-ui/react';
|
|
@@ -246,10 +247,7 @@ function timeRangeLabel(start, end, locale, timeZone) {
|
|
|
246
247
|
minute: "2-digit",
|
|
247
248
|
timeZone
|
|
248
249
|
});
|
|
249
|
-
return
|
|
250
|
-
}
|
|
251
|
-
function clockTimeLabel(date, locale) {
|
|
252
|
-
return new Intl.DateTimeFormat(locale, { hour: "2-digit", minute: "2-digit" }).format(date);
|
|
250
|
+
return formatter.formatRange(start, end).normalize("NFKC");
|
|
253
251
|
}
|
|
254
252
|
function allDayRangeLabel(start, end, timeZone, locale) {
|
|
255
253
|
const lastDay = new Date(end.getTime() - 1);
|
|
@@ -333,6 +331,7 @@ function ScheduleEventDetailsContent({
|
|
|
333
331
|
onRemove,
|
|
334
332
|
removeLabel
|
|
335
333
|
}) {
|
|
334
|
+
const resolvedTimeZone = useTimeZone(timeZone);
|
|
336
335
|
if (renderEventDetails) return renderEventDetails(event);
|
|
337
336
|
return /* @__PURE__ */ jsxs(
|
|
338
337
|
"div",
|
|
@@ -345,7 +344,7 @@ function ScheduleEventDetailsContent({
|
|
|
345
344
|
event.icon != null ? /* @__PURE__ */ jsx("span", { className: "mt-0.5 shrink-0 text-(--c-text) [&_svg]:size-4", children: event.icon }) : null,
|
|
346
345
|
/* @__PURE__ */ jsx("p", { className: "min-w-0 flex-1 font-medium text-sm", children: event.title })
|
|
347
346
|
] }),
|
|
348
|
-
/* @__PURE__ */ jsx("p", { className: "text-gray-light-500 text-xs dark:text-gray-dark-400", children: event.allDay ? allDayRangeLabel(event.start, event.end,
|
|
347
|
+
/* @__PURE__ */ jsx("p", { className: "text-gray-light-500 text-xs dark:text-gray-dark-400", children: event.allDay ? allDayRangeLabel(event.start, event.end, resolvedTimeZone, locale) : timeRangeLabel(event.start, event.end, locale, resolvedTimeZone) }),
|
|
349
348
|
event.description ? (
|
|
350
349
|
// `div`, not `p` — `description` is `ReactNode`, so it can carry
|
|
351
350
|
// block-level content (a list, a nested `div`); a `<p>` can only
|
|
@@ -1113,8 +1112,8 @@ function AgendaView({
|
|
|
1113
1112
|
}
|
|
1114
1113
|
|
|
1115
1114
|
// src/components/schedule/schedule-geometry.ts
|
|
1116
|
-
function minutesFromMidnight(date) {
|
|
1117
|
-
return date.
|
|
1115
|
+
function minutesFromMidnight(date, timeZone) {
|
|
1116
|
+
return (date.getTime() - dayBoundary(date, 0, timeZone).getTime()) / 6e4;
|
|
1118
1117
|
}
|
|
1119
1118
|
function minutesToPercent(minutes, totalWindowMinutes) {
|
|
1120
1119
|
return totalWindowMinutes === 0 ? 0 : minutes / totalWindowMinutes * 100;
|
|
@@ -1168,13 +1167,16 @@ function resolvePxPerMinute(dayColumnEl, rect) {
|
|
|
1168
1167
|
}
|
|
1169
1168
|
return (rect ?? dayColumnEl.getBoundingClientRect()).height / totalMinutes;
|
|
1170
1169
|
}
|
|
1171
|
-
function isNowInBand(now, startHour, endHour) {
|
|
1172
|
-
const minutes = minutesFromMidnight(now);
|
|
1170
|
+
function isNowInBand(now, startHour, endHour, timeZone) {
|
|
1171
|
+
const minutes = minutesFromMidnight(now, timeZone);
|
|
1173
1172
|
return minutes >= startHour * 60 && minutes < endHour * 60;
|
|
1174
1173
|
}
|
|
1175
|
-
function nowIndicatorTop(now, startHour, endHour) {
|
|
1174
|
+
function nowIndicatorTop(now, startHour, endHour, timeZone) {
|
|
1176
1175
|
const totalWindowMinutes = (endHour - startHour) * 60;
|
|
1177
|
-
const rawPercent = minutesToPercent(
|
|
1176
|
+
const rawPercent = minutesToPercent(
|
|
1177
|
+
minutesFromMidnight(now, timeZone) - startHour * 60,
|
|
1178
|
+
totalWindowMinutes
|
|
1179
|
+
);
|
|
1178
1180
|
return Math.min(Math.max(rawPercent, 0), 100);
|
|
1179
1181
|
}
|
|
1180
1182
|
function scrollElementToCenter(container, element, options = {}) {
|
|
@@ -1253,13 +1255,14 @@ function NowCursorLine({
|
|
|
1253
1255
|
nowRef,
|
|
1254
1256
|
startHour,
|
|
1255
1257
|
endHour,
|
|
1258
|
+
timeZone,
|
|
1256
1259
|
variant = "marker",
|
|
1257
1260
|
hideDot = false,
|
|
1258
1261
|
className
|
|
1259
1262
|
}) {
|
|
1260
1263
|
const current = useNow(now);
|
|
1261
|
-
if (!isNowInBand(current, startHour, endHour)) return null;
|
|
1262
|
-
const top = nowIndicatorTop(current, startHour, endHour);
|
|
1264
|
+
if (!isNowInBand(current, startHour, endHour, timeZone)) return null;
|
|
1265
|
+
const top = nowIndicatorTop(current, startHour, endHour, timeZone);
|
|
1263
1266
|
return /* @__PURE__ */ jsxs(
|
|
1264
1267
|
"div",
|
|
1265
1268
|
{
|
|
@@ -1287,12 +1290,13 @@ function NowCursorLabel({
|
|
|
1287
1290
|
now,
|
|
1288
1291
|
startHour,
|
|
1289
1292
|
endHour,
|
|
1293
|
+
timeZone,
|
|
1290
1294
|
locale,
|
|
1291
1295
|
className
|
|
1292
1296
|
}) {
|
|
1293
1297
|
const current = useNow(now);
|
|
1294
|
-
if (!isNowInBand(current, startHour, endHour)) {
|
|
1295
|
-
const before = minutesFromMidnight(current) < startHour * 60;
|
|
1298
|
+
if (!isNowInBand(current, startHour, endHour, timeZone)) {
|
|
1299
|
+
const before = minutesFromMidnight(current, timeZone) < startHour * 60;
|
|
1296
1300
|
const Chevron = before ? ChevronUpIcon : ChevronDownIcon;
|
|
1297
1301
|
return /* @__PURE__ */ jsx(
|
|
1298
1302
|
Chevron,
|
|
@@ -1310,7 +1314,7 @@ function NowCursorLabel({
|
|
|
1310
1314
|
}
|
|
1311
1315
|
);
|
|
1312
1316
|
}
|
|
1313
|
-
const top = nowIndicatorTop(current, startHour, endHour);
|
|
1317
|
+
const top = nowIndicatorTop(current, startHour, endHour, timeZone);
|
|
1314
1318
|
return /* @__PURE__ */ jsx(
|
|
1315
1319
|
"span",
|
|
1316
1320
|
{
|
|
@@ -1322,7 +1326,7 @@ function NowCursorLabel({
|
|
|
1322
1326
|
className
|
|
1323
1327
|
),
|
|
1324
1328
|
style: { top: `clamp(${HALF_LABEL}, ${top}%, calc(100% - ${HALF_LABEL}))` },
|
|
1325
|
-
children:
|
|
1329
|
+
children: timeLabel(current, timeZone, locale)
|
|
1326
1330
|
}
|
|
1327
1331
|
);
|
|
1328
1332
|
}
|
|
@@ -1332,6 +1336,7 @@ function HourGutterTick({
|
|
|
1332
1336
|
now,
|
|
1333
1337
|
startHour,
|
|
1334
1338
|
endHour,
|
|
1339
|
+
timeZone,
|
|
1335
1340
|
hideWhenCurrent,
|
|
1336
1341
|
className
|
|
1337
1342
|
}) {
|
|
@@ -1343,6 +1348,7 @@ function HourGutterTick({
|
|
|
1343
1348
|
now,
|
|
1344
1349
|
startHour,
|
|
1345
1350
|
endHour,
|
|
1351
|
+
timeZone,
|
|
1346
1352
|
className
|
|
1347
1353
|
}
|
|
1348
1354
|
) : /* @__PURE__ */ jsx("div", { className, children: label });
|
|
@@ -1353,6 +1359,7 @@ function HourGutterTickLive({
|
|
|
1353
1359
|
now,
|
|
1354
1360
|
startHour,
|
|
1355
1361
|
endHour,
|
|
1362
|
+
timeZone,
|
|
1356
1363
|
className
|
|
1357
1364
|
}) {
|
|
1358
1365
|
const current = useNow(now);
|
|
@@ -1360,7 +1367,7 @@ function HourGutterTickLive({
|
|
|
1360
1367
|
"div",
|
|
1361
1368
|
{
|
|
1362
1369
|
className: cn(className, "opacity-100 transition-opacity", {
|
|
1363
|
-
"opacity-0": hideOverlapHour({ hour, current, startHour, endHour })
|
|
1370
|
+
"opacity-0": hideOverlapHour({ hour, current, startHour, endHour, timeZone })
|
|
1364
1371
|
}),
|
|
1365
1372
|
children: label
|
|
1366
1373
|
}
|
|
@@ -1370,11 +1377,13 @@ function hideOverlapHour({
|
|
|
1370
1377
|
hour,
|
|
1371
1378
|
current,
|
|
1372
1379
|
startHour,
|
|
1373
|
-
endHour
|
|
1380
|
+
endHour,
|
|
1381
|
+
timeZone
|
|
1374
1382
|
}) {
|
|
1375
|
-
if (!isNowInBand(current, startHour, endHour)) return false;
|
|
1376
|
-
const
|
|
1377
|
-
const
|
|
1383
|
+
if (!isNowInBand(current, startHour, endHour, timeZone)) return false;
|
|
1384
|
+
const elapsed = minutesFromMidnight(current, timeZone);
|
|
1385
|
+
const hours = Math.floor(elapsed / 60);
|
|
1386
|
+
const minutes = Math.floor(elapsed % 60);
|
|
1378
1387
|
return hours === hour && minutes <= 30 || hours + 1 === hour && minutes > 50;
|
|
1379
1388
|
}
|
|
1380
1389
|
|
|
@@ -2779,7 +2788,6 @@ function useEventDrag({
|
|
|
2779
2788
|
};
|
|
2780
2789
|
}
|
|
2781
2790
|
var MINUTES_IN_DAY = 24 * 60;
|
|
2782
|
-
var minutesSinceMidnight = (date) => date.getHours() * 60 + date.getMinutes();
|
|
2783
2791
|
var setChipsDimmed = (chips, dimmed) => {
|
|
2784
2792
|
for (const chip of chips) {
|
|
2785
2793
|
if (dimmed) chip.dataset["dragging"] = "true";
|
|
@@ -3086,17 +3094,12 @@ function useEventResize({
|
|
|
3086
3094
|
role: "separator",
|
|
3087
3095
|
"aria-orientation": "horizontal",
|
|
3088
3096
|
tabIndex: 0,
|
|
3089
|
-
|
|
3097
|
+
// Both in the schedule's zone, the one the rows are cut in — a host
|
|
3098
|
+
// reading would announce a different hour than the row the edge is on.
|
|
3099
|
+
"aria-valuenow": Math.floor(minutesFromMidnight(value, timeZone)),
|
|
3090
3100
|
"aria-valuemin": 0,
|
|
3091
3101
|
"aria-valuemax": MINUTES_IN_DAY,
|
|
3092
|
-
|
|
3093
|
-
// as `schedule-dates.ts`'s `timeRangeLabel`: `"numeric"`'s
|
|
3094
|
-
// zero-padding isn't guaranteed identical between Node's and a
|
|
3095
|
-
// browser's bundled ICU data.
|
|
3096
|
-
"aria-valuetext": new Intl.DateTimeFormat(locale, {
|
|
3097
|
-
hour: "2-digit",
|
|
3098
|
-
minute: "2-digit"
|
|
3099
|
-
}).format(value),
|
|
3102
|
+
"aria-valuetext": timeLabel(value, timeZone, locale),
|
|
3100
3103
|
"aria-label": `${edge === "start" ? "Adjust start time" : "Adjust end time"} of ${event.title}`,
|
|
3101
3104
|
"data-schedule-part": "resize-handle",
|
|
3102
3105
|
onPointerDown,
|
|
@@ -3398,6 +3401,7 @@ var detailsPositioning = (anchor) => ({
|
|
|
3398
3401
|
function ChipContent({
|
|
3399
3402
|
event,
|
|
3400
3403
|
locale,
|
|
3404
|
+
timeZone,
|
|
3401
3405
|
classNames,
|
|
3402
3406
|
reserveRemoveSpace
|
|
3403
3407
|
}) {
|
|
@@ -3434,7 +3438,7 @@ function ChipContent({
|
|
|
3434
3438
|
"[@container_sch-chip_(height>=calc(2rem+8px))]:block",
|
|
3435
3439
|
classNames?.time
|
|
3436
3440
|
),
|
|
3437
|
-
children: timeRangeLabel(event.start, event.end, locale)
|
|
3441
|
+
children: timeRangeLabel(event.start, event.end, locale, timeZone)
|
|
3438
3442
|
}
|
|
3439
3443
|
)
|
|
3440
3444
|
] })
|
|
@@ -3456,6 +3460,7 @@ function StaticEventChip({
|
|
|
3456
3460
|
withEventDetails = true,
|
|
3457
3461
|
renderEventDetails,
|
|
3458
3462
|
locale,
|
|
3463
|
+
timeZone,
|
|
3459
3464
|
classNames,
|
|
3460
3465
|
detailsPopoverClassName
|
|
3461
3466
|
}) {
|
|
@@ -3486,7 +3491,7 @@ function StaticEventChip({
|
|
|
3486
3491
|
}),
|
|
3487
3492
|
onClick: () => onEventSelect?.(event),
|
|
3488
3493
|
onAnimationEnd: motion.onAnimationEnd,
|
|
3489
|
-
"aria-label": `${event.title}, ${timeRangeLabel(event.start, event.end, locale)}`,
|
|
3494
|
+
"aria-label": `${event.title}, ${timeRangeLabel(event.start, event.end, locale, timeZone)}`,
|
|
3490
3495
|
...showDetailsPopover ? { "aria-haspopup": "dialog", "aria-expanded": detailsOpen } : {},
|
|
3491
3496
|
className: cn(
|
|
3492
3497
|
chipShell({ kind: "static" }),
|
|
@@ -3497,7 +3502,7 @@ function StaticEventChip({
|
|
|
3497
3502
|
classNames?.root
|
|
3498
3503
|
),
|
|
3499
3504
|
style: chipShellStyle(top, height, insets),
|
|
3500
|
-
children: /* @__PURE__ */ jsx(ChipContent, { event, locale, classNames })
|
|
3505
|
+
children: /* @__PURE__ */ jsx(ChipContent, { event, locale, timeZone, classNames })
|
|
3501
3506
|
}
|
|
3502
3507
|
);
|
|
3503
3508
|
if (!showDetailsPopover) return button;
|
|
@@ -3523,6 +3528,7 @@ function StaticEventChip({
|
|
|
3523
3528
|
{
|
|
3524
3529
|
event,
|
|
3525
3530
|
locale,
|
|
3531
|
+
timeZone,
|
|
3526
3532
|
renderEventDetails
|
|
3527
3533
|
}
|
|
3528
3534
|
) })
|
|
@@ -3537,7 +3543,7 @@ function InteractiveEventChip({
|
|
|
3537
3543
|
onPaginate,
|
|
3538
3544
|
dayIndex = 0,
|
|
3539
3545
|
day,
|
|
3540
|
-
timeZone
|
|
3546
|
+
timeZone,
|
|
3541
3547
|
startHour = 0,
|
|
3542
3548
|
totalWindowMinutes = 1440,
|
|
3543
3549
|
isFirst = true,
|
|
@@ -3693,7 +3699,7 @@ function InteractiveEventChip({
|
|
|
3693
3699
|
}),
|
|
3694
3700
|
tabIndex: present ? 0 : -1,
|
|
3695
3701
|
role: "button",
|
|
3696
|
-
"aria-label": `${event.title}, ${timeRangeLabel(event.start, event.end, locale)}`,
|
|
3702
|
+
"aria-label": `${event.title}, ${timeRangeLabel(event.start, event.end, locale, timeZone)}`,
|
|
3697
3703
|
...showDetailsPopover ? { "aria-haspopup": "dialog", "aria-expanded": detailsOpen } : {},
|
|
3698
3704
|
onKeyDown: handleBodyKeyDown,
|
|
3699
3705
|
onAnimationEnd: motion.onAnimationEnd,
|
|
@@ -3712,6 +3718,7 @@ function InteractiveEventChip({
|
|
|
3712
3718
|
{
|
|
3713
3719
|
event,
|
|
3714
3720
|
locale,
|
|
3721
|
+
timeZone,
|
|
3715
3722
|
classNames,
|
|
3716
3723
|
reserveRemoveSpace: canRemove
|
|
3717
3724
|
}
|
|
@@ -3829,6 +3836,7 @@ function InteractiveEventChip({
|
|
|
3829
3836
|
{
|
|
3830
3837
|
event,
|
|
3831
3838
|
locale,
|
|
3839
|
+
timeZone,
|
|
3832
3840
|
renderEventDetails,
|
|
3833
3841
|
onRemove: canRemove ? () => {
|
|
3834
3842
|
onEventSelect?.(null);
|
|
@@ -4713,6 +4721,7 @@ function DayColumn({
|
|
|
4713
4721
|
nowRef,
|
|
4714
4722
|
startHour,
|
|
4715
4723
|
endHour,
|
|
4724
|
+
timeZone,
|
|
4716
4725
|
hideDot: isFirstDayColumn,
|
|
4717
4726
|
className: classNames?.nowIndicator
|
|
4718
4727
|
}
|
|
@@ -4823,12 +4832,12 @@ function ScheduleTimedGrid({
|
|
|
4823
4832
|
announce(
|
|
4824
4833
|
translations.eventCreated.replace(
|
|
4825
4834
|
"{range}",
|
|
4826
|
-
ranges.map((range) => timeRangeLabel(range.start, range.end, locale)).join(", ")
|
|
4835
|
+
ranges.map((range) => timeRangeLabel(range.start, range.end, locale, timeZone)).join(", ")
|
|
4827
4836
|
)
|
|
4828
4837
|
);
|
|
4829
4838
|
onEventCreate?.(ranges);
|
|
4830
4839
|
},
|
|
4831
|
-
[onEventCreate, translations, locale, announce]
|
|
4840
|
+
[onEventCreate, translations, locale, timeZone, announce]
|
|
4832
4841
|
);
|
|
4833
4842
|
const resolvedHourHeight = hourHeight ?? defaultHourHeight(slotDuration);
|
|
4834
4843
|
const layoutFloorMs = visualFloorMs(resolvedHourHeight);
|
|
@@ -5097,7 +5106,7 @@ function ScheduleTimedGrid({
|
|
|
5097
5106
|
/* @__PURE__ */ jsxs(
|
|
5098
5107
|
"div",
|
|
5099
5108
|
{
|
|
5100
|
-
className: "relative grid h-full min-w-max overflow-x-clip",
|
|
5109
|
+
className: "relative grid min-h-full min-w-max overflow-x-clip",
|
|
5101
5110
|
style: {
|
|
5102
5111
|
gridTemplateColumns: columnsTemplate,
|
|
5103
5112
|
gridTemplateRows: `auto minmax(${minTimedHeightPx}px, 1fr)`
|
|
@@ -5199,6 +5208,7 @@ function ScheduleTimedGrid({
|
|
|
5199
5208
|
now,
|
|
5200
5209
|
startHour,
|
|
5201
5210
|
endHour,
|
|
5211
|
+
timeZone,
|
|
5202
5212
|
hideWhenCurrent: withNowIndicator && anyDayIsToday,
|
|
5203
5213
|
className: "flex-1 shrink-0 pe-2 text-end text-[10px] text-gray-light-500 dark:text-gray-dark-500"
|
|
5204
5214
|
},
|
|
@@ -5210,6 +5220,7 @@ function ScheduleTimedGrid({
|
|
|
5210
5220
|
now,
|
|
5211
5221
|
startHour,
|
|
5212
5222
|
endHour,
|
|
5223
|
+
timeZone,
|
|
5213
5224
|
locale,
|
|
5214
5225
|
className: classNames?.nowIndicator
|
|
5215
5226
|
}
|
|
@@ -5223,6 +5234,7 @@ function ScheduleTimedGrid({
|
|
|
5223
5234
|
now,
|
|
5224
5235
|
startHour,
|
|
5225
5236
|
endHour,
|
|
5237
|
+
timeZone,
|
|
5226
5238
|
variant: "guide",
|
|
5227
5239
|
className: classNames?.nowIndicator
|
|
5228
5240
|
}
|