@42-central/ui-react 0.18.1 → 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 +6 -3
- 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 +206 -84
- 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 +30 -15
- package/dist/components/kbd/index.js.map +1 -1
- package/dist/components/kbd/kbd.d.ts.map +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 +62 -49
- 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 +3 -3
- package/dist/components/switch/index.js.map +1 -1
- package/dist/components/switch/switch.d.ts +2 -0
- package/dist/components/switch/switch.d.ts.map +1 -1
- 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 +31 -17
- 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 +212 -0
- package/src/components/data-table/data-table.tsx +92 -23
- 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/kbd/kbd.test.tsx +31 -0
- package/src/components/kbd/kbd.tsx +29 -14
- 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 +74 -27
- package/src/components/schedule/now-cursor-line.tsx +40 -17
- 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/switch/switch.test.tsx +12 -0
- package/src/components/switch/switch.tsx +3 -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,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
|
{
|
|
@@ -1282,16 +1285,18 @@ function NowCursorLine({
|
|
|
1282
1285
|
}
|
|
1283
1286
|
);
|
|
1284
1287
|
}
|
|
1288
|
+
var HALF_LABEL = "calc((1em + 0.25rem) / 2)";
|
|
1285
1289
|
function NowCursorLabel({
|
|
1286
1290
|
now,
|
|
1287
1291
|
startHour,
|
|
1288
1292
|
endHour,
|
|
1293
|
+
timeZone,
|
|
1289
1294
|
locale,
|
|
1290
1295
|
className
|
|
1291
1296
|
}) {
|
|
1292
1297
|
const current = useNow(now);
|
|
1293
|
-
if (!isNowInBand(current, startHour, endHour)) {
|
|
1294
|
-
const before = minutesFromMidnight(current) < startHour * 60;
|
|
1298
|
+
if (!isNowInBand(current, startHour, endHour, timeZone)) {
|
|
1299
|
+
const before = minutesFromMidnight(current, timeZone) < startHour * 60;
|
|
1295
1300
|
const Chevron = before ? ChevronUpIcon : ChevronDownIcon;
|
|
1296
1301
|
return /* @__PURE__ */ jsx(
|
|
1297
1302
|
Chevron,
|
|
@@ -1309,7 +1314,7 @@ function NowCursorLabel({
|
|
|
1309
1314
|
}
|
|
1310
1315
|
);
|
|
1311
1316
|
}
|
|
1312
|
-
const top = nowIndicatorTop(current, startHour, endHour);
|
|
1317
|
+
const top = nowIndicatorTop(current, startHour, endHour, timeZone);
|
|
1313
1318
|
return /* @__PURE__ */ jsx(
|
|
1314
1319
|
"span",
|
|
1315
1320
|
{
|
|
@@ -1320,8 +1325,8 @@ function NowCursorLabel({
|
|
|
1320
1325
|
"[--sch-now-line-color:var(--color-red-500)]",
|
|
1321
1326
|
className
|
|
1322
1327
|
),
|
|
1323
|
-
style: { top:
|
|
1324
|
-
children:
|
|
1328
|
+
style: { top: `clamp(${HALF_LABEL}, ${top}%, calc(100% - ${HALF_LABEL}))` },
|
|
1329
|
+
children: timeLabel(current, timeZone, locale)
|
|
1325
1330
|
}
|
|
1326
1331
|
);
|
|
1327
1332
|
}
|
|
@@ -1331,6 +1336,7 @@ function HourGutterTick({
|
|
|
1331
1336
|
now,
|
|
1332
1337
|
startHour,
|
|
1333
1338
|
endHour,
|
|
1339
|
+
timeZone,
|
|
1334
1340
|
hideWhenCurrent,
|
|
1335
1341
|
className
|
|
1336
1342
|
}) {
|
|
@@ -1342,6 +1348,7 @@ function HourGutterTick({
|
|
|
1342
1348
|
now,
|
|
1343
1349
|
startHour,
|
|
1344
1350
|
endHour,
|
|
1351
|
+
timeZone,
|
|
1345
1352
|
className
|
|
1346
1353
|
}
|
|
1347
1354
|
) : /* @__PURE__ */ jsx("div", { className, children: label });
|
|
@@ -1352,6 +1359,7 @@ function HourGutterTickLive({
|
|
|
1352
1359
|
now,
|
|
1353
1360
|
startHour,
|
|
1354
1361
|
endHour,
|
|
1362
|
+
timeZone,
|
|
1355
1363
|
className
|
|
1356
1364
|
}) {
|
|
1357
1365
|
const current = useNow(now);
|
|
@@ -1359,7 +1367,7 @@ function HourGutterTickLive({
|
|
|
1359
1367
|
"div",
|
|
1360
1368
|
{
|
|
1361
1369
|
className: cn(className, "opacity-100 transition-opacity", {
|
|
1362
|
-
"opacity-0": hideOverlapHour({ hour, current, startHour, endHour })
|
|
1370
|
+
"opacity-0": hideOverlapHour({ hour, current, startHour, endHour, timeZone })
|
|
1363
1371
|
}),
|
|
1364
1372
|
children: label
|
|
1365
1373
|
}
|
|
@@ -1369,11 +1377,13 @@ function hideOverlapHour({
|
|
|
1369
1377
|
hour,
|
|
1370
1378
|
current,
|
|
1371
1379
|
startHour,
|
|
1372
|
-
endHour
|
|
1380
|
+
endHour,
|
|
1381
|
+
timeZone
|
|
1373
1382
|
}) {
|
|
1374
|
-
if (!isNowInBand(current, startHour, endHour)) return false;
|
|
1375
|
-
const
|
|
1376
|
-
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);
|
|
1377
1387
|
return hours === hour && minutes <= 30 || hours + 1 === hour && minutes > 50;
|
|
1378
1388
|
}
|
|
1379
1389
|
|
|
@@ -2778,7 +2788,6 @@ function useEventDrag({
|
|
|
2778
2788
|
};
|
|
2779
2789
|
}
|
|
2780
2790
|
var MINUTES_IN_DAY = 24 * 60;
|
|
2781
|
-
var minutesSinceMidnight = (date) => date.getHours() * 60 + date.getMinutes();
|
|
2782
2791
|
var setChipsDimmed = (chips, dimmed) => {
|
|
2783
2792
|
for (const chip of chips) {
|
|
2784
2793
|
if (dimmed) chip.dataset["dragging"] = "true";
|
|
@@ -3085,17 +3094,12 @@ function useEventResize({
|
|
|
3085
3094
|
role: "separator",
|
|
3086
3095
|
"aria-orientation": "horizontal",
|
|
3087
3096
|
tabIndex: 0,
|
|
3088
|
-
|
|
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)),
|
|
3089
3100
|
"aria-valuemin": 0,
|
|
3090
3101
|
"aria-valuemax": MINUTES_IN_DAY,
|
|
3091
|
-
|
|
3092
|
-
// as `schedule-dates.ts`'s `timeRangeLabel`: `"numeric"`'s
|
|
3093
|
-
// zero-padding isn't guaranteed identical between Node's and a
|
|
3094
|
-
// browser's bundled ICU data.
|
|
3095
|
-
"aria-valuetext": new Intl.DateTimeFormat(locale, {
|
|
3096
|
-
hour: "2-digit",
|
|
3097
|
-
minute: "2-digit"
|
|
3098
|
-
}).format(value),
|
|
3102
|
+
"aria-valuetext": timeLabel(value, timeZone, locale),
|
|
3099
3103
|
"aria-label": `${edge === "start" ? "Adjust start time" : "Adjust end time"} of ${event.title}`,
|
|
3100
3104
|
"data-schedule-part": "resize-handle",
|
|
3101
3105
|
onPointerDown,
|
|
@@ -3397,6 +3401,7 @@ var detailsPositioning = (anchor) => ({
|
|
|
3397
3401
|
function ChipContent({
|
|
3398
3402
|
event,
|
|
3399
3403
|
locale,
|
|
3404
|
+
timeZone,
|
|
3400
3405
|
classNames,
|
|
3401
3406
|
reserveRemoveSpace
|
|
3402
3407
|
}) {
|
|
@@ -3433,7 +3438,7 @@ function ChipContent({
|
|
|
3433
3438
|
"[@container_sch-chip_(height>=calc(2rem+8px))]:block",
|
|
3434
3439
|
classNames?.time
|
|
3435
3440
|
),
|
|
3436
|
-
children: timeRangeLabel(event.start, event.end, locale)
|
|
3441
|
+
children: timeRangeLabel(event.start, event.end, locale, timeZone)
|
|
3437
3442
|
}
|
|
3438
3443
|
)
|
|
3439
3444
|
] })
|
|
@@ -3455,6 +3460,7 @@ function StaticEventChip({
|
|
|
3455
3460
|
withEventDetails = true,
|
|
3456
3461
|
renderEventDetails,
|
|
3457
3462
|
locale,
|
|
3463
|
+
timeZone,
|
|
3458
3464
|
classNames,
|
|
3459
3465
|
detailsPopoverClassName
|
|
3460
3466
|
}) {
|
|
@@ -3485,7 +3491,7 @@ function StaticEventChip({
|
|
|
3485
3491
|
}),
|
|
3486
3492
|
onClick: () => onEventSelect?.(event),
|
|
3487
3493
|
onAnimationEnd: motion.onAnimationEnd,
|
|
3488
|
-
"aria-label": `${event.title}, ${timeRangeLabel(event.start, event.end, locale)}`,
|
|
3494
|
+
"aria-label": `${event.title}, ${timeRangeLabel(event.start, event.end, locale, timeZone)}`,
|
|
3489
3495
|
...showDetailsPopover ? { "aria-haspopup": "dialog", "aria-expanded": detailsOpen } : {},
|
|
3490
3496
|
className: cn(
|
|
3491
3497
|
chipShell({ kind: "static" }),
|
|
@@ -3496,7 +3502,7 @@ function StaticEventChip({
|
|
|
3496
3502
|
classNames?.root
|
|
3497
3503
|
),
|
|
3498
3504
|
style: chipShellStyle(top, height, insets),
|
|
3499
|
-
children: /* @__PURE__ */ jsx(ChipContent, { event, locale, classNames })
|
|
3505
|
+
children: /* @__PURE__ */ jsx(ChipContent, { event, locale, timeZone, classNames })
|
|
3500
3506
|
}
|
|
3501
3507
|
);
|
|
3502
3508
|
if (!showDetailsPopover) return button;
|
|
@@ -3522,6 +3528,7 @@ function StaticEventChip({
|
|
|
3522
3528
|
{
|
|
3523
3529
|
event,
|
|
3524
3530
|
locale,
|
|
3531
|
+
timeZone,
|
|
3525
3532
|
renderEventDetails
|
|
3526
3533
|
}
|
|
3527
3534
|
) })
|
|
@@ -3536,7 +3543,7 @@ function InteractiveEventChip({
|
|
|
3536
3543
|
onPaginate,
|
|
3537
3544
|
dayIndex = 0,
|
|
3538
3545
|
day,
|
|
3539
|
-
timeZone
|
|
3546
|
+
timeZone,
|
|
3540
3547
|
startHour = 0,
|
|
3541
3548
|
totalWindowMinutes = 1440,
|
|
3542
3549
|
isFirst = true,
|
|
@@ -3692,7 +3699,7 @@ function InteractiveEventChip({
|
|
|
3692
3699
|
}),
|
|
3693
3700
|
tabIndex: present ? 0 : -1,
|
|
3694
3701
|
role: "button",
|
|
3695
|
-
"aria-label": `${event.title}, ${timeRangeLabel(event.start, event.end, locale)}`,
|
|
3702
|
+
"aria-label": `${event.title}, ${timeRangeLabel(event.start, event.end, locale, timeZone)}`,
|
|
3696
3703
|
...showDetailsPopover ? { "aria-haspopup": "dialog", "aria-expanded": detailsOpen } : {},
|
|
3697
3704
|
onKeyDown: handleBodyKeyDown,
|
|
3698
3705
|
onAnimationEnd: motion.onAnimationEnd,
|
|
@@ -3711,6 +3718,7 @@ function InteractiveEventChip({
|
|
|
3711
3718
|
{
|
|
3712
3719
|
event,
|
|
3713
3720
|
locale,
|
|
3721
|
+
timeZone,
|
|
3714
3722
|
classNames,
|
|
3715
3723
|
reserveRemoveSpace: canRemove
|
|
3716
3724
|
}
|
|
@@ -3828,6 +3836,7 @@ function InteractiveEventChip({
|
|
|
3828
3836
|
{
|
|
3829
3837
|
event,
|
|
3830
3838
|
locale,
|
|
3839
|
+
timeZone,
|
|
3831
3840
|
renderEventDetails,
|
|
3832
3841
|
onRemove: canRemove ? () => {
|
|
3833
3842
|
onEventSelect?.(null);
|
|
@@ -4712,6 +4721,7 @@ function DayColumn({
|
|
|
4712
4721
|
nowRef,
|
|
4713
4722
|
startHour,
|
|
4714
4723
|
endHour,
|
|
4724
|
+
timeZone,
|
|
4715
4725
|
hideDot: isFirstDayColumn,
|
|
4716
4726
|
className: classNames?.nowIndicator
|
|
4717
4727
|
}
|
|
@@ -4822,12 +4832,12 @@ function ScheduleTimedGrid({
|
|
|
4822
4832
|
announce(
|
|
4823
4833
|
translations.eventCreated.replace(
|
|
4824
4834
|
"{range}",
|
|
4825
|
-
ranges.map((range) => timeRangeLabel(range.start, range.end, locale)).join(", ")
|
|
4835
|
+
ranges.map((range) => timeRangeLabel(range.start, range.end, locale, timeZone)).join(", ")
|
|
4826
4836
|
)
|
|
4827
4837
|
);
|
|
4828
4838
|
onEventCreate?.(ranges);
|
|
4829
4839
|
},
|
|
4830
|
-
[onEventCreate, translations, locale, announce]
|
|
4840
|
+
[onEventCreate, translations, locale, timeZone, announce]
|
|
4831
4841
|
);
|
|
4832
4842
|
const resolvedHourHeight = hourHeight ?? defaultHourHeight(slotDuration);
|
|
4833
4843
|
const layoutFloorMs = visualFloorMs(resolvedHourHeight);
|
|
@@ -5096,7 +5106,7 @@ function ScheduleTimedGrid({
|
|
|
5096
5106
|
/* @__PURE__ */ jsxs(
|
|
5097
5107
|
"div",
|
|
5098
5108
|
{
|
|
5099
|
-
className: "relative grid h-full min-w-max overflow-x-clip",
|
|
5109
|
+
className: "relative grid min-h-full min-w-max overflow-x-clip",
|
|
5100
5110
|
style: {
|
|
5101
5111
|
gridTemplateColumns: columnsTemplate,
|
|
5102
5112
|
gridTemplateRows: `auto minmax(${minTimedHeightPx}px, 1fr)`
|
|
@@ -5198,6 +5208,7 @@ function ScheduleTimedGrid({
|
|
|
5198
5208
|
now,
|
|
5199
5209
|
startHour,
|
|
5200
5210
|
endHour,
|
|
5211
|
+
timeZone,
|
|
5201
5212
|
hideWhenCurrent: withNowIndicator && anyDayIsToday,
|
|
5202
5213
|
className: "flex-1 shrink-0 pe-2 text-end text-[10px] text-gray-light-500 dark:text-gray-dark-500"
|
|
5203
5214
|
},
|
|
@@ -5209,6 +5220,7 @@ function ScheduleTimedGrid({
|
|
|
5209
5220
|
now,
|
|
5210
5221
|
startHour,
|
|
5211
5222
|
endHour,
|
|
5223
|
+
timeZone,
|
|
5212
5224
|
locale,
|
|
5213
5225
|
className: classNames?.nowIndicator
|
|
5214
5226
|
}
|
|
@@ -5222,6 +5234,7 @@ function ScheduleTimedGrid({
|
|
|
5222
5234
|
now,
|
|
5223
5235
|
startHour,
|
|
5224
5236
|
endHour,
|
|
5237
|
+
timeZone,
|
|
5225
5238
|
variant: "guide",
|
|
5226
5239
|
className: classNames?.nowIndicator
|
|
5227
5240
|
}
|