@povio/ui 6.0.0-rc.13 → 6.0.0-rc.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +55 -1
- package/dist/{Accordion-gUW7u1Zn.js → Accordion-BNHpv7Zj.js} +3 -3
- package/dist/{Alert-DwnALnFY.d.ts → Alert-xHGPLUpt.d.ts} +1 -1
- package/dist/{AlertDialog-BcRiqY_n.d.ts → AlertDialog-CKcUZ6l9.d.ts} +3 -3
- package/dist/{Autocomplete-DRwQxx0U.d.ts → Autocomplete-CkWTSFoj.d.ts} +1 -1
- package/dist/{Autocomplete-CV4Aa1Ok.js → Autocomplete-CrNDRxvg.js} +10 -10
- package/dist/{Badge-CO-ZsmbR.d.ts → Badge-B25YEMEw.d.ts} +3 -3
- package/dist/{BottomSheet-Be0HtQzP.d.ts → BottomSheet-CtcPZG82.d.ts} +1 -1
- package/dist/{BottomSheet-APVu5TUd.js → BottomSheet-tUXH3NjS.js} +4 -4
- package/dist/{BottomSheet.lazy-NNB7ivkW.d.ts → BottomSheet.lazy-DuwAJSaI.d.ts} +1 -1
- package/dist/{Breadcrumbs-Bn3fqVYx.d.ts → Breadcrumbs-BrtRh_dX.d.ts} +1 -1
- package/dist/{Breadcrumbs-Cd75RPbS.js → Breadcrumbs-D8WXqOLN.js} +8 -8
- package/dist/{Button-CzEs3tcV.js → Button-C1Jv1Plk.js} +1 -1
- package/dist/{Button-Hk8zm9q_.d.ts → Button-DDuk3hJ3.d.ts} +1 -1
- package/dist/{Button-BJJkLVNj.js → Button-DF6sbTuF.js} +3 -3
- package/dist/{ButtonBase-aGz6DYum.js → ButtonBase-BYJz1JkH.js} +4 -4
- package/dist/{ButtonBase-Cp1w00t2.d.ts → ButtonBase-Bn_FT89h.d.ts} +3 -3
- package/dist/{Calendar-DN-i_b-_.js → Calendar-DdneUEhM.js} +58 -24
- package/dist/{Calendar.lazy-CqmyDSND.js → Calendar.lazy-BY0kLoYH.js} +6 -6
- package/dist/{Checkbox-D32MOIhF.d.ts → Checkbox-Bwl6MA-V.d.ts} +1 -1
- package/dist/{Checkbox-CzKXZw_w.js → Checkbox-E2bns_n0.js} +7 -7
- package/dist/{CheckboxCheckmark-DDU_Ie7-.js → CheckboxCheckmark-Beu8T1g9.js} +2 -2
- package/dist/{CheckboxGroup-B5Mn1G3u.d.ts → CheckboxGroup-0rzsn-bA.d.ts} +2 -2
- package/dist/{CheckboxGroup-BqWt09kZ.js → CheckboxGroup-C7epIEpW.js} +3 -3
- package/dist/ColumnConfigContent-LNq-6Brf.js +1025 -0
- package/dist/ColumnListContent-Dzze5R7T.js +133 -0
- package/dist/{DatePicker-CmoVbapu.d.ts → DatePicker-B70SCKfT.d.ts} +3 -3
- package/dist/{DatePicker-DQewd1By.js → DatePicker-BU-34fCk.js} +44 -12
- package/dist/{DatePickerInput-B9VnExeA.d.ts → DatePickerInput-BCuz08Ws.d.ts} +3 -3
- package/dist/{DatePickerInput-Bp9ZIN5E.js → DatePickerInput-CMEJmZSQ.js} +10 -10
- package/dist/{DateRangePicker-DRZ1hLlR.js → DateRangePicker-D0RtqeBM.js} +13 -13
- package/dist/{DateRangePicker-LX1VJlnD.d.ts → DateRangePicker-jovxcWGk.d.ts} +4 -4
- package/dist/{DateTimePicker-DWtKPaE6.js → DateTimePicker-Cbdt76CL.js} +30 -11
- package/dist/{DateTimePicker-D9pODhAj.d.ts → DateTimePicker-Cfi3ruFy.d.ts} +3 -3
- package/dist/{Dialog-D0SeePPz.d.ts → Dialog-BWNQjIgo.d.ts} +1 -1
- package/dist/{Dialog-BJ13KRQo.js → Dialog-Bpwr1nuy.js} +15 -15
- package/dist/{Dialog-BzQYDPJ9.js → Dialog-ebjPH22i.js} +3 -3
- package/dist/{Disclosure-Bjm5IOpg.js → Disclosure-D_aym2zh.js} +3 -3
- package/dist/{DropdownMenu-DTr7b-XO.d.ts → DropdownMenu-3V-G7fZ7.d.ts} +2 -2
- package/dist/{DropdownMenu-DrshB60h.js → DropdownMenu-C4WitobV.js} +4 -4
- package/dist/{DropdownMenuDesktop-DxGA0yvx.js → DropdownMenuDesktop-BM7659Sk.js} +1 -1
- package/dist/{FileInput-LMhFxlqB.js → FileInput-Bc_E1M1X.js} +5 -5
- package/dist/{FileInput-Bokcp9nH.d.ts → FileInput-CWRW7OzZ.d.ts} +2 -2
- package/dist/{FileTrigger-DlryDp2T.js → FileTrigger-tGSUFrb2.js} +6 -6
- package/dist/{FileUpload-BqXd4_nz.d.ts → FileUpload-DVnp9xxv.d.ts} +2 -2
- package/dist/{FileUpload-CJZrkr_U.js → FileUpload-Dk6ZmgWF.js} +501 -75
- package/dist/{Form-CqF1SaVw.js → Form-4jZarkjk.js} +2 -2
- package/dist/{FormField-XQbjfGSv.d.ts → FormField-BgiWLGjf.d.ts} +1 -1
- package/dist/{FormField-TI8Vx5aC.js → FormField-DOZ7eXjA.js} +2 -2
- package/dist/{FormFieldHeaderTooltip-DB7KrrcD.js → FormFieldHeaderTooltip-DW9sqJWl.js} +3 -3
- package/dist/{Heading-D4XFYv__.js → Heading-B9G3z6Es.js} +2 -2
- package/dist/{IconButton-CQLHX8-Y.d.ts → IconButton-Bjjf5cQL.d.ts} +1 -1
- package/dist/{InlineTooltipWrapper-CjDUsi2I.js → InlineTooltipWrapper-CcdpMJa6.js} +1 -1
- package/dist/{Input-BG0Xjw5X.js → Input-BkR3jkvt.js} +2 -2
- package/dist/{Input-CeRJeAoR.js → Input-CvYyjMWx.js} +5 -5
- package/dist/{Input-onUj0DKg.d.ts → Input-lppNS8wM.d.ts} +3 -3
- package/dist/{InputContent-B8OCdbVP.js → InputContent-B5YjsLDE.js} +2 -2
- package/dist/{InputContent-D5ZkB9hO.d.ts → InputContent-Bgalf6R1.d.ts} +2 -2
- package/dist/{Label-BGvF9vWx.js → Label-VTcaaLO8.js} +2 -2
- package/dist/{Link-Chux-Clm.js → Link-8zP_NC_c.js} +2 -2
- package/dist/{Link-BdnWVYL9.d.ts → Link-HJ4y-xiW.d.ts} +1 -1
- package/dist/{ListBox-gR4iSV7N.js → ListBox-Ck-B1Jae.js} +7 -7
- package/dist/{Modal-DAMsCwzb.js → Modal-xT-Wz5GH.js} +3 -3
- package/dist/{NumberField-6Q9LHGSo.js → NumberField-BXLzNb2T.js} +6 -6
- package/dist/{NumberField-Sb30Qao3.d.ts → NumberField-Q-4y3jpb.d.ts} +3 -3
- package/dist/{NumberFormatter-DYarfm5F.js → NumberFormatter-D5csbNXm.js} +1 -1
- package/dist/{NumberRangeInput-BDSkcHVJ.js → NumberRangeInput-BBzZCC54.js} +6 -6
- package/dist/{NumberRangeInput-Dvq8mOUY.d.ts → NumberRangeInput-DuWOdSdU.d.ts} +2 -2
- package/dist/{OverlayArrow-DF0jMwul.js → OverlayArrow-BptI-A_7.js} +2 -2
- package/dist/{PageHeader-eJk6GNK6.d.ts → PageHeader-jVaC3Z9L.d.ts} +2 -2
- package/dist/{PasswordInput-VHzP4VPU.d.ts → PasswordInput-DtTnGHRD.d.ts} +1 -1
- package/dist/{PasswordInput-BcHpV0Ie.js → PasswordInput-U0QhNsMp.js} +2 -2
- package/dist/{Popover-qplPGDnR.d.ts → Popover-ClCEOP3e.d.ts} +2 -2
- package/dist/{Progress-WzWvbvtp.js → Progress-DlXY0dv_.js} +1 -1
- package/dist/{Progress-DH-w99MU.d.ts → Progress-VkkXbIh7.d.ts} +1 -1
- package/dist/{ProgressBar-BsSimmJF.js → ProgressBar-mpNpV7ow.js} +3 -3
- package/dist/{RadioGroup-PKqFHoKP.js → RadioGroup-BPPJyA1s.js} +8 -8
- package/dist/{RadioGroup-CC8bKtBN.d.ts → RadioGroup-BbcrP56w.d.ts} +2 -2
- package/dist/{RangeCalendar-DqCTlIuy.js → RangeCalendar-DIVjIl0T.js} +4 -4
- package/dist/{Select-CSyfDyxG.d.ts → Select-D1qIWZCv.d.ts} +3 -3
- package/dist/{Select-D3fuXwVt.js → Select-DlbVDCz8.js} +36 -26
- package/dist/{SelectListBox-DqAxkT1f.js → SelectListBox-CCr5YY86.js} +15 -12
- package/dist/{SelectionIndicator-C3hniBa2.js → SelectionIndicator-CvuKjZRP.js} +3 -3
- package/dist/{SharedElementTransition-CZ2bE7yo.js → SharedElementTransition-BkyYit3Q.js} +2 -2
- package/dist/{SidebarWorkspaces-BGl_PIsH.js → SidebarWorkspaces-CIpFJGOa.js} +10 -10
- package/dist/{SidebarWorkspaces-CdtK2M-C.d.ts → SidebarWorkspaces-DcwA_jv7.d.ts} +3 -3
- package/dist/{Slider-DxalZD3o.d.ts → Slider-CLViwkE1.d.ts} +1 -1
- package/dist/{Slider-BCUiALjE.js → Slider-_RsgBJcg.js} +5 -5
- package/dist/{Spinner-BTrEbNFy.d.ts → Spinner-GMEauCHv.d.ts} +1 -1
- package/dist/{SplitButton-Dv5l8p5t.d.ts → SplitButton-BdP4xjFQ.d.ts} +3 -3
- package/dist/{Stepper-DA2G546I.js → Stepper-D4z7JNsD.js} +2 -2
- package/dist/{Stepper-B1IOUcSI.d.ts → Stepper-DBb0qfla.d.ts} +1 -1
- package/dist/{Switch-Ce-bJOVw.js → Switch-Bi3_bUw1.js} +3 -3
- package/dist/{Switch-urNrop0P.d.ts → Switch-DCxONL2Q.d.ts} +1 -1
- package/dist/TableDnd-CG1yOlxh.js +238 -0
- package/dist/TableDragHandle-CXApnuUm.js +51 -0
- package/dist/{TabsFilters-Cweij8He.js → TabsFilters-BPogry73.js} +4 -4
- package/dist/{TabsFilters-M5Ld7eb8.d.ts → TabsFilters-CPfGBODw.d.ts} +1 -1
- package/dist/{Tag-BKR1AZFa.d.ts → Tag-xhcJOv_X.d.ts} +2 -2
- package/dist/{Text-D72yc4S6.js → Text-D7Nqkw1l.js} +1 -1
- package/dist/{TextArea-D7YVclaz.d.ts → TextArea-BYX9Kk_v.d.ts} +2 -2
- package/dist/{TextArea-P8F0oD_A.js → TextArea-CuJS3-Nv.js} +6 -6
- package/dist/{TimePicker-l4Ysk2AX.js → TimePicker-ByfjqkLp.js} +28 -13
- package/dist/{TimePicker-Ai1M2TGW.d.ts → TimePicker-UTo9C6gz.d.ts} +3 -2
- package/dist/TimePickerForm-CaIHR0PV.js +532 -0
- package/dist/{ToastContainer-BeklfvlK.js → ToastContainer-tr7Zxahc.js} +4 -4
- package/dist/{ToggleButton-DWw53pTt.d.ts → ToggleButton-BX8o7ECO.d.ts} +1 -1
- package/dist/{ToggleButton-P1z1pxzT.js → ToggleButton-D8BT67FO.js} +5 -5
- package/dist/{ToggleGroup-BdIgqoqA.js → ToggleGroup-18c-FZ_r.js} +5 -5
- package/dist/{ToggleGroup-BQk3k0at.d.ts → ToggleGroup-UazUtgU1.d.ts} +2 -2
- package/dist/{Tooltip-BkXPEBqw.js → Tooltip-Dl3sf8fq.js} +3 -3
- package/dist/{Tooltip-H8OB7CqY.d.ts → Tooltip-FcJ29dhq.d.ts} +1 -1
- package/dist/{TooltipWrapper-ubbBHHVD.js → TooltipWrapper-bvNpM6ku.js} +3 -3
- package/dist/{Typography-Cx1oRGxd.d.ts → Typography-auHWN282.d.ts} +1 -1
- package/dist/{badge.cva-BpoxNggB.js → badge.cva-C9mE8CMf.js} +3 -2
- package/dist/{buttonContent.cva-Dyy_RUZU.d.ts → buttonContent.cva-CeGnrjoA.d.ts} +2 -2
- package/dist/calendarHeader.cva-D3sXR7ox.js +23 -0
- package/dist/columnConfig.cva-CERwSZRN.js +29 -0
- package/dist/components/accordion.js +1 -1
- package/dist/components/alert-dialog.d.ts +1 -1
- package/dist/components/alert-dialog.js +3 -3
- package/dist/components/alert.d.ts +1 -1
- package/dist/components/autocomplete.d.ts +1 -1
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/badge.js +37 -30
- package/dist/components/bottom-sheet-header.d.ts +1 -1
- package/dist/components/bottom-sheet-header.js +23 -19
- package/dist/components/bottom-sheet.d.ts +2 -2
- package/dist/components/bottom-sheet.js +2 -2
- package/dist/components/breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/button.d.ts +2 -2
- package/dist/components/button.js +1 -1
- package/dist/components/checkbox-group.d.ts +1 -1
- package/dist/components/checkbox-group.js +1 -1
- package/dist/components/checkbox.d.ts +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/date-picker.d.ts +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker.d.ts +2 -2
- package/dist/components/date-range-picker.js +2 -2
- package/dist/components/date-range-presets.js +1 -1
- package/dist/components/date-time-picker.d.ts +1 -1
- package/dist/components/date-time-picker.js +1 -1
- package/dist/components/dialog.d.ts +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/drawer.js +2 -2
- package/dist/components/dropdown-menu.d.ts +1 -1
- package/dist/components/dropdown-menu.js +1 -1
- package/dist/components/file-input.d.ts +1 -1
- package/dist/components/file-input.js +1 -1
- package/dist/components/file-upload.d.ts +1 -1
- package/dist/components/file-upload.js +1 -1
- package/dist/components/form-field.d.ts +2 -2
- package/dist/components/form-field.js +1 -1
- package/dist/components/icon-button.d.ts +1 -1
- package/dist/components/icon-button.js +2 -2
- package/dist/components/input-frame.d.ts +3 -3
- package/dist/components/input-frame.js +5 -5
- package/dist/components/input.d.ts +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/link.d.ts +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/number-field.d.ts +1 -1
- package/dist/components/number-field.js +1 -1
- package/dist/components/number-range-input.d.ts +1 -1
- package/dist/components/number-range-input.js +1 -1
- package/dist/components/page-header.d.ts +1 -1
- package/dist/components/page-header.js +1 -1
- package/dist/components/password-input.d.ts +1 -1
- package/dist/components/password-input.js +1 -1
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.js +2 -2
- package/dist/components/progress.d.ts +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/radio-group.d.ts +1 -1
- package/dist/components/radio-group.js +1 -1
- package/dist/components/select.d.ts +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/slider.d.ts +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/spinner.d.ts +1 -1
- package/dist/components/split-button.d.ts +1 -1
- package/dist/components/split-button.js +2 -2
- package/dist/components/stepper.d.ts +1 -1
- package/dist/components/stepper.js +1 -1
- package/dist/components/style-definitions.d.ts +2 -2
- package/dist/components/style-definitions.js +32 -5
- package/dist/components/switch.d.ts +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/tabs-filters.d.ts +1 -1
- package/dist/components/tabs-filters.js +1 -1
- package/dist/components/tag.d.ts +1 -1
- package/dist/components/tag.js +3 -3
- package/dist/components/text-area.d.ts +1 -1
- package/dist/components/text-area.js +1 -1
- package/dist/components/time-picker.d.ts +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/toast.d.ts +2 -2
- package/dist/components/toast.js +3 -3
- package/dist/components/toggle-button.d.ts +1 -1
- package/dist/components/toggle-button.js +1 -1
- package/dist/components/toggle-group.d.ts +1 -1
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/tooltip-ellipsis.js +1 -1
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/typography.d.ts +2 -2
- package/dist/components/use-toast.d.ts +1 -1
- package/dist/components/use-toast.js +1 -1
- package/dist/config/component-configuration.d.ts +2 -2
- package/dist/config/confirmation.d.ts +1 -1
- package/dist/config/confirmation.js +1 -1
- package/dist/config/link-context.d.ts +2 -2
- package/dist/config/resources.d.ts +1 -1
- package/dist/config/resources.js +1 -1
- package/dist/config/ui-config.d.ts +2 -2
- package/dist/config/ui-config.js +1 -1
- package/dist/config/ui-overrides.d.ts +1 -1
- package/dist/{confirmation.context-BflM4Vxg.js → confirmation.context-C_-uADGJ.js} +1 -1
- package/dist/{confirmation.context-C_js9qNv.d.ts → confirmation.context-DkWyR2aT.d.ts} +1 -1
- package/dist/{dist-DZOoWaZz.js → dist-CP6vV22I.js} +14 -10
- package/dist/{dom.utils-BPooTXtC.js → dom.utils-CqejLWIQ.js} +1 -1
- package/dist/{fileUpload.cva-MH5ziWUe.js → fileUpload.cva-SrF6v406.js} +1 -1
- package/dist/form-field-C735uXsi.d.ts +1 -0
- package/dist/hooks/use-async-list.js +1 -1
- package/dist/hooks/use-breakpoint.d.ts +2 -2
- package/dist/hooks/use-breakpoint.js +1 -1
- package/dist/{i18n-DQs7jPjv.js → i18n-DaIHnR2n.js} +26 -2
- package/dist/{i18n-B3PeqBM7.d.ts → i18n-xXkHgzet.d.ts} +24 -0
- package/dist/{import-C73fI3WD.js → import-Cz8NlFqm.js} +39 -15
- package/dist/index.d.ts +56 -55
- package/dist/index.js +49 -49
- package/dist/{intlStrings-Cu1YN1tA.js → intlStrings-ClpdCJmU.js} +35 -35
- package/dist/{isEqual-LFw0W5rU.js → isEqual-BdJdNr5O.js} +1 -1
- package/dist/{link.context-BcBuP9ZT.d.ts → link.context-BxVK2yQ5.d.ts} +1 -1
- package/dist/{link.cva-D6L1c2wq.d.ts → link.cva-ZhpQz3P0.d.ts} +129 -9
- package/dist/{logger-CW24po62.js → logger-CqZjM-sn.js} +1 -10
- package/dist/rich-text-editor.d.ts +2 -2
- package/dist/rich-text-editor.js +14 -14
- package/dist/{selectItem.cva-B6vxey2R.js → selectItem.cva-DsOZSSPx.js} +2 -1
- package/dist/{staticDateTimeSegments-BYk1tcxs.js → staticDateTimeSegments-BgUrcqXD.js} +342 -87
- package/dist/styles/input.d.ts +1 -1
- package/dist/{table.cva-DkcsOmZG.js → table.cva-n9TO_vu1.js} +68 -17
- package/dist/tableCells.cva-Br0_kgRM.js +18 -0
- package/dist/tableColumnConfigStorage-Cciq8gVe.js +215 -0
- package/dist/tableVirtualStore-whSmFzTV.js +67 -0
- package/dist/tanstack/form.js +1 -1
- package/dist/tanstack/table-context.d.ts +2 -0
- package/dist/tanstack/table-context.js +2 -0
- package/dist/tanstack/table-types.d.ts +55 -0
- package/dist/tanstack/table.d.ts +5 -5
- package/dist/tanstack/table.js +3 -2
- package/dist/tanstack-JB8VmS9j.js +73 -0
- package/dist/{tanstack-bLXoUPDY.d.ts → tanstack-cQOW9-Q2.d.ts} +50 -50
- package/dist/tanstack-table-DdWYwCZM.d.ts +858 -0
- package/dist/tanstack-table-M1M26UQJ.js +5299 -0
- package/dist/tanstack.d.ts +56 -55
- package/dist/tanstack.js +49 -49
- package/dist/{toast.cva-C3oA7He3.js → toast.cva-DusQwZw-.js} +5 -1
- package/dist/{toast.runtime-BHXdSTXV.js → toast.runtime-ZN5q4T9X.js} +1 -1
- package/dist/{uiConfig.context-CjnLnQOo.js → uiConfig.context-NWmBJ2Hc.js} +68 -4
- package/dist/{uiConfig.context-CN_QgxGO.d.ts → uiConfig.context-ykH4E2js.d.ts} +1 -1
- package/dist/uiConfig.types-BsyPKepP.d.ts +291 -0
- package/dist/{uiOverrides.context-DHHzLSnq.d.ts → uiOverrides.context-C5Maic5Q.d.ts} +106 -0
- package/dist/{useAsyncList-CQgkDfjW.js → useAsyncList-DkIjhlce.js} +2 -2
- package/dist/{useBreakpoint-D-SVcBeQ.d.ts → useBreakpoint-BPrZNuNl.d.ts} +1 -1
- package/dist/{useBreakpoint-BrJrvp9_.js → useBreakpoint-DtYSRweq.js} +2 -2
- package/dist/{useControlledState-CuU1VIh1.js → useControlledState-C1-Mt2i0.js} +1 -1
- package/dist/{useDebounceCallback-BjePw6y4.js → useDebounceCallback-C7YKfjXW.js} +6 -0
- package/dist/{useFormAutosave-BN-zueci.js → useFormAutosave-BzCGqFqi.js} +2 -2
- package/dist/{useLiveNumberFieldState-B7qGzySj.js → useLiveNumberFieldState-npiqOvyB.js} +4 -4
- package/dist/{useRemoveButton-B6-IGvpY.js → useRemoveButton-zhlA1Pbc.js} +1 -1
- package/dist/{useResolveDateRangePreset-C_L-doA6.js → useResolveDateRangePreset-k_h_XJBG.js} +1 -1
- package/dist/{useScrollableListBox-C8chM7c-.js → useScrollableListBox-4pieApqz.js} +1 -1
- package/dist/useTableVirtualizer-sFInQiH-.d.ts +162 -0
- package/dist/{useToast-D2C9pROU.d.ts → useToast-BHqkSByv.d.ts} +1 -1
- package/dist/{useToast-DSoOiSw0.js → useToast-DgqC6Ta_.js} +2 -2
- package/dist/utils/logger.js +1 -1
- package/dist/{utils-BkLF-JA3.js → utils-Q5Oc6oX2.js} +1 -1
- package/llms.txt +89 -4
- package/package.json +13 -1
- package/dist/TimePickerForm-BMqNpDPT.js +0 -225
- package/dist/form-field-Bw7U_ZPI.d.ts +0 -1
- package/dist/tanstack-ABeiJISz.js +0 -10
- package/dist/uiConfig.types-B0sPL7nN.d.ts +0 -132
- package/dist/useTableColumnConfig-B9cYBKo3.js +0 -2327
- package/dist/useTableNav-rP1wDkhV.d.ts +0 -372
package/README.md
CHANGED
|
@@ -279,6 +279,10 @@ Date-only controls use UTC calendar fields for parsing and output. In full ISO m
|
|
|
279
279
|
|
|
280
280
|
`DateTimePicker` and `TimePicker` display and edit in `timeZone`, falling back to `UIConfig.dateInput.timeZone` (default: `"clientLocal"`, the browser's zone). Changing the zone changes displayed clock fields, while emitted timestamps remain UTC. For example, `2025-07-04T08:30:00.000Z` displays as 10:30 in `Europe/Ljubljana`; editing it to 11:30 emits `2025-07-04T09:30:00.000Z`. Display locale and `format` do not change the value format.
|
|
281
281
|
|
|
282
|
+
Their dropdowns and mobile sheets use draggable time wheels with touch/mouse scrolling, row selection, and keyboard controls. Hour and minute wheels wrap independently; AM/PM appears for 12-hour time and stays bounded. At default sensitivity, a full mouse or touch flick targets 20 minutes on the minute wheel, 8 hours on a 24-hour wheel, or 4 hours on a 12-hour wheel. The glide accounts for the distance already dragged. A longer manual pull continues to follow the pointer. Arrow keys adjust one step, Page Up/Down adjust five minutes or three hours, and Home/End select a column's endpoints. Save settles moving wheels and commits the draft; dismissing discards it. Empty time drafts start at the current minute in the effective time zone (`isTimeOptional` retains midnight). Reduced motion removes curvature and drag-release momentum. The editable input and timestamp contracts are unchanged.
|
|
283
|
+
|
|
284
|
+
Tune hour and minute drag/flick distances independently through `UIConfig.Provider` with `config={{ dateInput: { hourWheelSensitivity: 0.5, minuteWheelSensitivity: 1.5 } }}`. Both default to `1`; positive finite values below `1` move less, and values above `1` move farther. Invalid values fall back to `1`. The settings apply to both pickers and mobile sheets without changing keyboard steps, row clicks, native mouse-wheel/trackpad scrolling, or AM/PM. Reduced motion still disables release momentum. Storybook's **Wheel Sensitivity** stories provide live controls for both settings.
|
|
285
|
+
|
|
282
286
|
`TimePicker` uses `date` as its calendar anchor: it parses that string as a JavaScript `Date` instant, converts it into the effective zone, then replaces the clock fields. Use an explicit offset or `Z` to avoid ambiguous local timestamps. For example, `date="2025-03-04T00:00:00.000Z"` falls on March 3 in `America/Los_Angeles`; entering 10:30 emits `2025-03-03T18:30:00.000Z`. Without `date` (or with `null`), edits use today's date in the effective zone, even if the supplied `value` has another date. Once the editable input is mounted, changing `date` re-emits the current clock time on the new anchor. `isTimeOptional` on `DateTimePicker` completes a date with midnight in the effective zone when time is omitted.
|
|
283
287
|
|
|
284
288
|
```tsx
|
|
@@ -309,12 +313,60 @@ import { TimePicker } from "@povio/ui/time-picker";
|
|
|
309
313
|
|
|
310
314
|
Every other table state follows the same `<x>` + `on<X>Change` pattern (`sorting`, `columnOrder`, `columnVisibility`, `columnPinning`, `columnSizing`, `expanded`). Headers are sortable only when `onSortingChange` is passed. The table never reorders rows: pass `order` from `useSorting` to the list query, and `sorting={sorting} onSortingChange={setSorting}` to the table; a sort in the URL wins over `defaultSorting`, and a sort the user cleared stays cleared until the URL changes from outside. `onRowAction` runs when a row is clicked outside its selection checkbox, or on Enter in a focused cell that holds no control of its own; it and `onRowDoubleClick` receive the row's item.
|
|
311
315
|
|
|
312
|
-
Pass the query's `isLoading` to show a spinner in place of the rows, and `emptyState` for a custom message when there are no rows (the default is a translated "No results").
|
|
316
|
+
Pass the query's `isLoading` to show a spinner in place of the rows, and `emptyState` for a custom message when there are no rows (the default is a translated "No results"; `false` shows no empty row). `loadingContent` replaces the spinner, and `isPlaceholderData` (a query's `placeholderData`) renders skeleton rows of the same count instead of stale values. `Table` has no error state: when the query has failed with no data (`query.error && !query.data`), render your error UI instead of the table, or a failed load shows "No results" (`InfiniteTable` takes `isError`, below). `className` styles the `<table>` element and `containerClassName` its scroll container (border, radius, background); limit the height with `maxHeight`, or let the page scroll with `scroll="page"`.
|
|
317
|
+
|
|
318
|
+
## Large tables
|
|
319
|
+
|
|
320
|
+
- **Virtualization:** `enableRowVirtualization` renders only the rows in view once there are more than `table.virtualization.rowThreshold` (it needs a bounded scroller: `maxHeight`, a fixed-height parent, or `scroll="page"`), and `enableColumnVirtualization` only the columns in view (pinned and `meta.keepMounted` columns stay). The virtualizer and dnd-kit load on demand; call `preloadTableVirtualizer()` / `preloadTableDnd()` early (for example when the route starts loading) so the first paint already has them.
|
|
321
|
+
- **Column widths:** `columnLayout="sized"` gives columns their `size` and stretches them to fill the table until one is resized (double-click a resize handle to fit a column to its content); `natural` (the default) fits columns to their content. `useColumnWidths` applies `size` without resizing, `tableLayout` overrides the CSS `table-layout`, and `useRemainingNameColumnWidth` sizes one column to the space the others leave.
|
|
322
|
+
- **Headers and rows:** `renderColumnFilter` adds content after a header's label (`isColumnFilterActive` marks applied filters with `data-filter-active`), and `scrollResetKey` scrolls back to the top when it changes (the applied filters, say). Rows take `onAuxClick` (middle click), `onRightClick`, `onRowHover`, `getRowClassName` and `renderRowProvider`; `renderRow` adds rows of your own around each row (each in its own `<tbody>`), `renderBodyStartRows` / `renderFooterRows` add content before and after them, and `stickyLastRow` keeps a totals row in view. `enableArrowKeyRowNavigation` moves the selection (and `onRowAction`) with Up and Down.
|
|
323
|
+
- **Loading more:** `hasMoreRows` with `loadMoreRef`, or `onEndReached` for virtualized rows, load the next page from a plain `Table`; `InfiniteTable` wires them for you.
|
|
324
|
+
- **Drag and drop:** `showDragHandleColumn={false}` places the handle yourself (`RowDragHandleCell`, or `renderRow`'s `dragHandleProps`), `optimisticReordering` shows the new order until `items` changes, and `onReorder` also receives `{ oldIndex, newIndex, itemId }`.
|
|
325
|
+
- **Cells:** `CellText`, `CellNumber` (locale-aware, optional `unit`), `CellDate` / `CellDateUTC` / `CellDateTime` / `CellDateTimeUTC`, and `CellLink`, which opens `href` in a new tab. Wire route preloading for every `CellLink` with `CellLinkPreloadContext`, or open links in place with `CellLinkNavigationContext`. Dates and numbers use the active i18next language unless a `locale` is passed. A column that shows selection its own way takes `meta.selectionModel` with `TableSelectionCheckbox` (driven by a `TableSelectionModel`) or the lightweight `TableRowCheckbox`; `useControlledTableRowSelection` turns a list of selected ids into `rowSelection` + `onRowSelectionChange`.
|
|
326
|
+
- **Column meta:** `import "@povio/ui/tanstack/table-types";` in one of the app's `.d.ts` files types the `meta` fields the table reads (`width`, `sortKey`, `filterKey`, `colSpan`, `grow`, `configuredPinPosition`, `keepMounted`, …).
|
|
327
|
+
|
|
328
|
+
## Table defaults in `UIConfig`
|
|
329
|
+
|
|
330
|
+
Every default lives in `UIConfig.table` (`variant`, `scroll`, `columnLayout`, `enableColumnResizing`, `virtualization`, `sortIcons`, `dragHandleIcon`, …), so an app sets them once. These keep the 6.0 behaviour above by default and switch an app that relied on the `5.1` table engine back to it:
|
|
331
|
+
|
|
332
|
+
| Option | Default (6.0) | Set to |
|
|
333
|
+
| --------------------------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
|
|
334
|
+
| `loadingState` | `"spinner"`: a spinner row in place of the rows | `"skeleton"`: skeleton rows while there are no rows yet (`loadingSkeleton` sets count and delay) |
|
|
335
|
+
| `emptyState` | a translated "No results" | `false`: no empty row, or any node |
|
|
336
|
+
| `showSelectionColumn` | `true`: `enableRowSelection` adds the checkbox column | `false`: the app places its own (`meta.selectionModel`) |
|
|
337
|
+
| `enableMultiRowSelection` | `true` | `false`: one selected row at a time |
|
|
338
|
+
| `enableRowSelection` | `false`: selection is opt-in per table | `true`: rows are selectable unless a table says otherwise |
|
|
339
|
+
| `selectRowOnClick` | `true`: a click on a selectable row toggles it | `false`: only the checkbox selects |
|
|
340
|
+
| `rowKeyboardActivation` | `false`: one body cell is the Tab stop; Enter on a cell runs `onRowAction` | `true`: rows are the Tab stops; Enter and Space select and run `onRowAction` |
|
|
341
|
+
| `plainUnsortableHeaders` | `true`: headers that can't sort are plain text | `false`: they keep a sort button that does nothing |
|
|
342
|
+
| `columnConfigLayout` | `"list"`: the sortable checkbox list | `"pinning"`: pinned-left, scrollable and pinned-right zones (with `onPinningChange`) |
|
|
343
|
+
| `followDefaultRowSelection` | `false`: `defaultRowSelection` is read once | `true`: a change of its ids resets the selection |
|
|
313
344
|
|
|
314
345
|
## Lists
|
|
315
346
|
|
|
316
347
|
Load server lists with `InfiniteTable` and an `...Infinite` query; pass the page size as a constant in the query parameters, not through the URL. Use `Table` only for short, fixed data loaded at once.
|
|
317
348
|
|
|
349
|
+
`InfiniteTable` takes either `items` with `hasNextPage` / `fetchNextPage`, or the query's `data` (or the whole `query`). It requests the next page while the end of the table is in view or near it, and again after a page lands while it stays there; nothing is requested during the first load. Each page is requested once per `items` / `data` value, and a page that added no rows (a failed request) is retried only when the user scrolls. `isError` shows `errorContent` (default: a translated "Data could not be loaded") instead of the empty state, or as an alert above rows already loaded. `loadingIndicator="overlay"` replaces the footer spinner with one over the rows, and `deferMount` mounts the table right after the page's first commit; both default from `UIConfig.table` (`infiniteLoadingIndicator`, `infiniteDeferMount`, `infiniteEmptyState`, `infiniteErrorContent`).
|
|
350
|
+
|
|
351
|
+
## Table column configuration
|
|
352
|
+
|
|
353
|
+
`useTableColumnConfig(columns, options)` keeps visibility, order and pinning; pass its result to `ColumnConfigModal` or `ColumnConfigPopover` (a popover with its own trigger, a bottom sheet on small screens). They show the sortable checkbox list; with `layout="pinning"` (or `table.columnConfigLayout: "pinning"`) and `onPinningChange`, columns are dragged between pinned-left, scrollable and pinned-right zones, and `onDefaultSortingChange` adds a default sorting picker. Columns with `enableHiding: false` always show and are not listed; columns missing from a saved order go last.
|
|
354
|
+
|
|
355
|
+
Configuration is kept in memory by default. To save it, give the table a `location` (or per-setting `persistence` keys) and provide a storage adapter once:
|
|
356
|
+
|
|
357
|
+
```tsx
|
|
358
|
+
const storage: TableColumnConfigStorage = {
|
|
359
|
+
// A hook: read the saved settings for `target` and return a stable `save`.
|
|
360
|
+
useColumnSettings: (target) => useMyUserSettings(target),
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
<TableColumnConfigStorageContext value={storage}>{app}</TableColumnConfigStorageContext>;
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
`save` receives only changed settings; `widths` patches are merged into the saved widths. Saved settings are ignored inside `<TableConfigurationEnabledContext value={false}>`.
|
|
367
|
+
|
|
368
|
+
`@povio/ui/tanstack/table-context` exports the table contexts (`TableColumnConfigStorageContext`, `TableConfigurationEnabledContext`, `CellLinkPreloadContext`, `CellLinkNavigationContext`) and `preloadTableVirtualizer` / `preloadTableDnd` without the tables, so an app root can provide them while its tables load with the routes that show them. Inside `<TableConfigurationEnabledContext value={false}>` column resizing and `ColumnConfigPopover` are off too.
|
|
369
|
+
|
|
318
370
|
## Built-package tests
|
|
319
371
|
|
|
320
372
|
From `packages/ui`, run `bun run test:package` to build the publishable package and run its Chromium regressions. The tests resolve public imports through `dist/package.json`, covering both date pickers with empty and populated values in static and editable modes, including locale switches without remounting.
|
|
@@ -861,6 +913,8 @@ Work through the groups below in order. Most removed props are still declared, w
|
|
|
861
913
|
- **Still compiles:** `ColumnConfigModal` no longer lists columns with `enableHiding: false`, and `useTableColumnConfig`'s `columns` always includes them; set it on utility columns such as row actions. Columns missing from a saved `columnOrder` go last (5.x: first).
|
|
862
914
|
- **Still compiles:** `InfiniteTable` fetches the next page again while its end stays in view after a page loads, so short pages no longer stall. A page that adds no rows (a failed fetch) is retried only when the end scrolls back into view, not in a loop.
|
|
863
915
|
- **Still compiles:** column resize separators always carry `aria-valuenow`, and the `onRowAction`/`onRowDoubleClick` parameter is named `item` (the same row item).
|
|
916
|
+
- **From the 5.1 table engine (`5.1.0-rc`):** the same renames apply (`onRowClick`, `onDoubleClick`, the `set<X>` props, `defaultSelectedRows`), and `emptyContent` → `emptyState` on `Table` and `InfiniteTable`. `defaultSelectedRows` with `onRowSelectionChange` was the controlled selection: pass it as `rowSelection`. In `UIConfig.table`, `followDefaultSelectedRows` → `followDefaultRowSelection` and `infiniteEmptyContent` → `infiniteEmptyState` (_no hint_). `RowDragHandleCell` takes an optional `label` (default "Drag handle"); the built-in handle is named "Reorder row N". The `fileUpload.content*Cva` recipes variant `orientation` and `actionStyle` (were `variant` and `as`) and have no `error` content.
|
|
917
|
+
- **Still compiles (5.1 table engine):** the engine's defaults are now 6.0's: a spinner row instead of skeleton rows, a "No results" row, the built-in checkbox column, multiple selection, rows selectable only with `enableRowSelection`, plain unsortable headers, the roving cell Tab stop and the checkbox list in the column dialog. Headers sort only with `onSortingChange`, and `ColumnConfigModal` / `ColumnConfigPopover` show the pinning zones only with `layout="pinning"`. Set the `UIConfig.table` options in [Table defaults in `UIConfig`](#table-defaults-in-uiconfig) once to keep the 5.1 behaviour.
|
|
864
918
|
|
|
865
919
|
### Hooks
|
|
866
920
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
2
|
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
3
|
import { t as IconSlot } from "./IconSlot-TAWTJ6iK.js";
|
|
4
|
-
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-
|
|
5
|
-
import { t as $2ec61d1d4f780267$export$a8a3e93435678ff9 } from "./Heading-
|
|
6
|
-
import { n as $a3e16eab0ea4036c$export$944aceb4f8c89f10, r as $a3e16eab0ea4036c$export$feabaa331e1d464c, t as $a3e16eab0ea4036c$export$74a362b31437ec83 } from "./Disclosure-
|
|
4
|
+
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-DF6sbTuF.js";
|
|
5
|
+
import { t as $2ec61d1d4f780267$export$a8a3e93435678ff9 } from "./Heading-B9G3z6Es.js";
|
|
6
|
+
import { n as $a3e16eab0ea4036c$export$944aceb4f8c89f10, r as $a3e16eab0ea4036c$export$feabaa331e1d464c, t as $a3e16eab0ea4036c$export$74a362b31437ec83 } from "./Disclosure-D_aym2zh.js";
|
|
7
7
|
import { t as Typography } from "./Typography-DCLnPa3P.js";
|
|
8
8
|
import { a as accordionHeadingTitleDefinition, c as accordionPanelContentDefinition, i as accordionHeadingSubtitleDefinition, l as accordionPanelDefinition, n as accordionDefinition, o as accordionIconDefinition, r as accordionHeadingDefinition, s as accordionItemDefinition, t as accordionChevronDefinition, u as accordionTriggerDefinition } from "./accordion.cva-DwxY-k1e.js";
|
|
9
9
|
import { c } from "react/compiler-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as IconSlotIcon } from "./IconSlot-DcEDPaNb.js";
|
|
2
|
-
import { T as AlertVariantProps } from "./link.cva-
|
|
2
|
+
import { T as AlertVariantProps } from "./link.cva-ZhpQz3P0.js";
|
|
3
3
|
import { n as Removed, t as Hint } from "./hints-B09_WDhL.js";
|
|
4
4
|
import { ReactNode } from "react";
|
|
5
5
|
//#region src/components/status/Alert/Alert.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { xn as ButtonVariantProps } from "./link.cva-
|
|
1
|
+
import { xn as ButtonVariantProps } from "./link.cva-ZhpQz3P0.js";
|
|
2
2
|
import { n as Removed } from "./hints-B09_WDhL.js";
|
|
3
|
-
import { n as DialogBaseProps } from "./Dialog-
|
|
4
|
-
import { r as TypographyPropsCva } from "./Typography-
|
|
3
|
+
import { n as DialogBaseProps } from "./Dialog-BWNQjIgo.js";
|
|
4
|
+
import { r as TypographyPropsCva } from "./Typography-auHWN282.js";
|
|
5
5
|
//#region src/components/overlays/AlertDialog/AlertDialog.d.ts
|
|
6
6
|
interface AlertDialogAction {
|
|
7
7
|
/** The button text. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as Removed } from "./hints-B09_WDhL.js";
|
|
2
2
|
import { i as FieldValues } from "./form.binding-DSXB2AOD.js";
|
|
3
3
|
import { t as FormControlProps } from "./form.types-a2WVJDQX.js";
|
|
4
|
-
import { i as StandaloneInputProps } from "./Input-
|
|
4
|
+
import { i as StandaloneInputProps } from "./Input-lppNS8wM.js";
|
|
5
5
|
import { t as AsyncList } from "./useAsyncList-F-328rtE.js";
|
|
6
6
|
import { ReactElement, ReactNode } from "react";
|
|
7
7
|
import { InputProps, Key } from "react-aria-components";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
2
|
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
-
import { l as $7230ffa83bc0c2cf$export$fabf2dc03a41866e } from "./utils-
|
|
4
|
-
import { _ as $4b38b5b75ecc6208$export$698f465ec27e93df, g as $4b38b5b75ecc6208$export$2f2b9559550c7bbc, l as $542a13ca2fa5b484$export$5b6b19405a83ff9d } from "./Dialog-
|
|
5
|
-
import { n as $41fb335299a4a39e$export$f5b8910cec6cf069 } from "./Input-
|
|
6
|
-
import { a as $928221da08ecbc62$export$a11e76429ed99b4, i as $928221da08ecbc62$export$8e6d031a08cf56a1, t as $928221da08ecbc62$export$41f133550aa26f48 } from "./ListBox-
|
|
3
|
+
import { l as $7230ffa83bc0c2cf$export$fabf2dc03a41866e } from "./utils-Q5Oc6oX2.js";
|
|
4
|
+
import { _ as $4b38b5b75ecc6208$export$698f465ec27e93df, g as $4b38b5b75ecc6208$export$2f2b9559550c7bbc, l as $542a13ca2fa5b484$export$5b6b19405a83ff9d } from "./Dialog-Bpwr1nuy.js";
|
|
5
|
+
import { n as $41fb335299a4a39e$export$f5b8910cec6cf069 } from "./Input-BkR3jkvt.js";
|
|
6
|
+
import { a as $928221da08ecbc62$export$a11e76429ed99b4, i as $928221da08ecbc62$export$8e6d031a08cf56a1, t as $928221da08ecbc62$export$41f133550aa26f48 } from "./ListBox-Ck-B1Jae.js";
|
|
7
7
|
import { i as $a3be900807531178$re_export$useFilter, t as $a3be900807531178$re_export$Collection } from "./exports-DeBGRThC.js";
|
|
8
8
|
import { Spinner } from "./components/spinner.js";
|
|
9
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
9
|
+
import { t as UIConfig } from "./uiConfig.context-NWmBJ2Hc.js";
|
|
10
10
|
import { n as FieldController } from "./form.binding-Brdjq2yr.js";
|
|
11
11
|
import { n as $a8ea2faf2ebe4d2f$re_export$mergeProps, r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
|
|
12
12
|
import { t as useFieldAccessibility } from "./useFieldAccessibility-eZIMECmG.js";
|
|
13
|
-
import { t as FormField } from "./FormField-
|
|
13
|
+
import { t as FormField } from "./FormField-DOZ7eXjA.js";
|
|
14
14
|
import { t as inputBaseDefinition } from "./input.cva-mm1dnfKP.js";
|
|
15
15
|
import { n as resolveInputLayout, t as isFieldHeaderHiddenByLayout } from "./inputLayout-CIVpuUBq.js";
|
|
16
|
-
import { t as TooltipWrapper } from "./TooltipWrapper-
|
|
16
|
+
import { t as TooltipWrapper } from "./TooltipWrapper-bvNpM6ku.js";
|
|
17
17
|
import { t as popoverDefinition } from "./popover.cva-DAbfSma6.js";
|
|
18
|
-
import { t as InputContent } from "./InputContent-
|
|
19
|
-
import {
|
|
20
|
-
import { n as SelectInputTags, t as useDebounceCallback } from "./useDebounceCallback-
|
|
18
|
+
import { t as InputContent } from "./InputContent-B5YjsLDE.js";
|
|
19
|
+
import { n as selectListBoxItemDefinition } from "./selectItem.cva-DsOZSSPx.js";
|
|
20
|
+
import { n as SelectInputTags, t as useDebounceCallback } from "./useDebounceCallback-C7YKfjXW.js";
|
|
21
21
|
import { memo, useId, useRef, useState } from "react";
|
|
22
22
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
23
23
|
//#region src/components/inputs/Selection/Autocomplete/Autocomplete.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as IconSlotIcon } from "./IconSlot-DcEDPaNb.js";
|
|
2
|
-
import { _n as BadgeVariantProps } from "./link.cva-
|
|
2
|
+
import { _n as BadgeVariantProps } from "./link.cva-ZhpQz3P0.js";
|
|
3
3
|
import { n as Removed } from "./hints-B09_WDhL.js";
|
|
4
|
-
import { t as ButtonContentVariantProps } from "./buttonContent.cva-
|
|
5
|
-
import { n as TypographyProps } from "./Typography-
|
|
4
|
+
import { t as ButtonContentVariantProps } from "./buttonContent.cva-CeGnrjoA.js";
|
|
5
|
+
import { n as TypographyProps } from "./Typography-auHWN282.js";
|
|
6
6
|
import { ReactNode, Ref } from "react";
|
|
7
7
|
import { ButtonProps, ToggleButtonProps } from "react-aria-components";
|
|
8
8
|
//#region src/components/text/Badge/Badge.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { En as TypographyVariantProps } from "./link.cva-
|
|
1
|
+
import { En as TypographyVariantProps } from "./link.cva-ZhpQz3P0.js";
|
|
2
2
|
import { n as Removed } from "./hints-B09_WDhL.js";
|
|
3
3
|
import { ReactElement, ReactNode, RefObject } from "react";
|
|
4
4
|
//#region src/components/overlays/BottomSheet/BottomSheet.d.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
|
-
import { n as $f2ff30fde7b014be$export$3ddf2d174ce01153, t as $f2ff30fde7b014be$export$2e1e1122cf0cba88 } from "./Dialog-
|
|
3
|
-
import { n as $8b8d26808cb8cb53$export$8948f78d83984c69, t as $8b8d26808cb8cb53$export$2b77a92f1a5ad772 } from "./Modal-
|
|
4
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
2
|
+
import { n as $f2ff30fde7b014be$export$3ddf2d174ce01153, t as $f2ff30fde7b014be$export$2e1e1122cf0cba88 } from "./Dialog-Bpwr1nuy.js";
|
|
3
|
+
import { n as $8b8d26808cb8cb53$export$8948f78d83984c69, t as $8b8d26808cb8cb53$export$2b77a92f1a5ad772 } from "./Modal-xT-Wz5GH.js";
|
|
4
|
+
import { t as UIConfig } from "./uiConfig.context-NWmBJ2Hc.js";
|
|
5
5
|
import { a as $a8ea2faf2ebe4d2f$re_export$useResizeObserver, o as $a8ea2faf2ebe4d2f$re_export$useViewportSize } from "./import-D_3dPATF.js";
|
|
6
|
-
import { n as useStateAndRef, t as DomUtils } from "./dom.utils-
|
|
6
|
+
import { n as useStateAndRef, t as DomUtils } from "./dom.utils-CqejLWIQ.js";
|
|
7
7
|
import { BottomSheetHeader } from "./components/bottom-sheet-header.js";
|
|
8
8
|
import { c } from "react/compiler-runtime";
|
|
9
9
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as BottomSheetProps } from "./BottomSheet-
|
|
1
|
+
import { t as BottomSheetProps } from "./BottomSheet-CtcPZG82.js";
|
|
2
2
|
//#region src/components/overlays/BottomSheet/BottomSheet.lazy.d.ts
|
|
3
3
|
declare const BottomSheet: ({ isOpen, onOpenChange, trigger, ...props }: BottomSheetProps) => import("react").JSX.Element;
|
|
4
4
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as IconSlotIcon } from "./IconSlot-DcEDPaNb.js";
|
|
2
|
-
import { n as LinkNavigationProps } from "./Link-
|
|
2
|
+
import { n as LinkNavigationProps } from "./Link-HJ4y-xiW.js";
|
|
3
3
|
import { Key } from "react-aria-components";
|
|
4
4
|
//#region src/components/Breadcrumbs/Breadcrumbs.d.ts
|
|
5
5
|
interface BreadcrumbItem {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
2
|
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
3
|
import { t as IconSlot } from "./IconSlot-TAWTJ6iK.js";
|
|
4
|
-
import { l as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e } from "./utils-
|
|
5
|
-
import { m as $263ab7fc0f95ccdb$export$4feb769f8ddf26c5 } from "./Dialog-
|
|
6
|
-
import { n as $984a1fc08f87e4f3$export$e2509388b49734e7, t as $984a1fc08f87e4f3$export$a6c7ac8248d6e38a } from "./Link-
|
|
7
|
-
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-
|
|
8
|
-
import { t as Tooltip } from "./Tooltip-
|
|
4
|
+
import { l as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e } from "./utils-Q5Oc6oX2.js";
|
|
5
|
+
import { m as $263ab7fc0f95ccdb$export$4feb769f8ddf26c5 } from "./Dialog-Bpwr1nuy.js";
|
|
6
|
+
import { n as $984a1fc08f87e4f3$export$e2509388b49734e7, t as $984a1fc08f87e4f3$export$a6c7ac8248d6e38a } from "./Link-8zP_NC_c.js";
|
|
7
|
+
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-DF6sbTuF.js";
|
|
8
|
+
import { t as Tooltip } from "./Tooltip-Dl3sf8fq.js";
|
|
9
9
|
import { a as breadcrumbsDefinition, i as breadcrumbSegmentDefinition, n as breadcrumbIconDefinition, r as breadcrumbItemDefinition, t as breadcrumbChevronDefinition } from "./breadcrumbs.cva-CnBIZUB3.js";
|
|
10
|
-
import { t as DropdownMenuDesktop } from "./DropdownMenuDesktop-
|
|
10
|
+
import { t as DropdownMenuDesktop } from "./DropdownMenuDesktop-BM7659Sk.js";
|
|
11
11
|
import { t as Typography } from "./Typography-DCLnPa3P.js";
|
|
12
|
-
import "./i18n-
|
|
12
|
+
import "./i18n-DaIHnR2n.js";
|
|
13
13
|
import { t as LinkContext } from "./link.context-CD5h_b5O.js";
|
|
14
14
|
import { c } from "react/compiler-runtime";
|
|
15
15
|
import $ahdqC$react, { createContext, forwardRef, useContext, useLayoutEffect, useRef, useState } from "react";
|
|
@@ -22,7 +22,7 @@ import { useBreadcrumbs } from "react-aria/useBreadcrumbs";
|
|
|
22
22
|
import { Collection } from "react-aria/Collection";
|
|
23
23
|
import { CollectionNode } from "react-aria/private/collections/BaseCollection";
|
|
24
24
|
import { useTranslation } from "react-i18next";
|
|
25
|
-
//#region ../../node_modules/.bun/react-aria-components@1.22.1+
|
|
25
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+6f4b9a1cfb20c0ae/node_modules/react-aria-components/dist/private/Breadcrumbs.mjs
|
|
26
26
|
const $65dbe90f868fa5f4$export$65596d3621b0a4a0 = /*#__PURE__*/ createContext(null);
|
|
27
27
|
const $65dbe90f868fa5f4$export$2dc68d50d56fbbd = /*#__PURE__*/ forwardRef(function Breadcrumbs(props, ref) {
|
|
28
28
|
[props, ref] = $7230ffa83bc0c2cf$export$29f1550f4b0d4415(props, ref, $65dbe90f868fa5f4$export$65596d3621b0a4a0);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as ButtonProps$1, n as ButtonSharedProps, t as AriaButtonPropsWithoutRestated } from "./ButtonBase-
|
|
1
|
+
import { i as ButtonProps$1, n as ButtonSharedProps, t as AriaButtonPropsWithoutRestated } from "./ButtonBase-Bn_FT89h.js";
|
|
2
2
|
//#region src/components/buttons/Button/Button.d.ts
|
|
3
3
|
/** A text action, optionally accompanied by icons. Use ToggleButton for persistent selection. */
|
|
4
4
|
type ButtonProps = ButtonSharedProps & AriaButtonPropsWithoutRestated<ButtonProps$1> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e } from "./utils-
|
|
2
|
-
import { n as $6c0095e7e99364f2$export$e9f3bf65a26ce129 } from "./ProgressBar-
|
|
1
|
+
import { n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e } from "./utils-Q5Oc6oX2.js";
|
|
2
|
+
import { n as $6c0095e7e99364f2$export$e9f3bf65a26ce129 } from "./ProgressBar-mpNpV7ow.js";
|
|
3
3
|
import $ahdqC$react, { createContext, useEffect, useRef } from "react";
|
|
4
4
|
import { mergeProps } from "react-aria/mergeProps";
|
|
5
5
|
import { filterDOMProps } from "react-aria/filterDOMProps";
|
|
@@ -9,7 +9,7 @@ import { createHideableComponent } from "react-aria/private/collections/Hidden";
|
|
|
9
9
|
import { announce } from "react-aria/private/live-announcer/LiveAnnouncer";
|
|
10
10
|
import { useButton } from "react-aria/useButton";
|
|
11
11
|
import { useId as useId$1 } from "react-aria/useId";
|
|
12
|
-
//#region ../../node_modules/.bun/react-aria-components@1.22.1+
|
|
12
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+6f4b9a1cfb20c0ae/node_modules/react-aria-components/dist/private/Button.mjs
|
|
13
13
|
const $7705c033048f6da7$export$24d547caef80ccd1 = /*#__PURE__*/ createContext({});
|
|
14
14
|
const $7705c033048f6da7$export$353f5b6fc5456de1 = /*#__PURE__*/ createHideableComponent(function Button(props, ref) {
|
|
15
15
|
[props, ref] = $7230ffa83bc0c2cf$export$29f1550f4b0d4415(props, ref, $7705c033048f6da7$export$24d547caef80ccd1);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
2
|
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
-
import { t as $984a1fc08f87e4f3$export$a6c7ac8248d6e38a } from "./Link-
|
|
4
|
-
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-
|
|
5
|
-
import { t as $75afe627ae0cc0fa$export$d2b052e7b4be1756 } from "./ToggleButton-
|
|
3
|
+
import { t as $984a1fc08f87e4f3$export$a6c7ac8248d6e38a } from "./Link-8zP_NC_c.js";
|
|
4
|
+
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-DF6sbTuF.js";
|
|
5
|
+
import { t as $75afe627ae0cc0fa$export$d2b052e7b4be1756 } from "./ToggleButton-D8BT67FO.js";
|
|
6
6
|
import { t as LinkContext } from "./link.context-CD5h_b5O.js";
|
|
7
7
|
import { t as ButtonContent } from "./ButtonContent-2KsbdWRO.js";
|
|
8
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
8
|
+
import { t as UIConfig } from "./uiConfig.context-NWmBJ2Hc.js";
|
|
9
9
|
import { a as buttonTypography, i as buttonSizeDefinition, n as buttonDefinition, r as buttonIconSizeDefinition, t as buttonContentDefinition } from "./button.cva-C2aoXMh-.js";
|
|
10
10
|
import { jsx } from "react/jsx-runtime";
|
|
11
11
|
//#region src/components/buttons/shared/ButtonBase.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as IconSlotIcon } from "./IconSlot-DcEDPaNb.js";
|
|
2
|
-
import { xn as ButtonVariantProps } from "./link.cva-
|
|
2
|
+
import { xn as ButtonVariantProps } from "./link.cva-ZhpQz3P0.js";
|
|
3
3
|
import { n as Removed } from "./hints-B09_WDhL.js";
|
|
4
|
-
import { n as LinkNavigationProps } from "./Link-
|
|
5
|
-
import { t as ButtonContentVariantProps } from "./buttonContent.cva-
|
|
4
|
+
import { n as LinkNavigationProps } from "./Link-HJ4y-xiW.js";
|
|
5
|
+
import { t as ButtonContentVariantProps } from "./buttonContent.cva-CeGnrjoA.js";
|
|
6
6
|
import { ReactNode, Ref } from "react";
|
|
7
7
|
import { ButtonProps as ButtonProps$1, ToggleButtonProps as ToggleButtonProps$1 } from "react-aria-components";
|
|
8
8
|
//#region src/components/buttons/shared/ButtonBase.d.ts
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
|
+
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
2
3
|
import { t as IconSlot } from "./IconSlot-TAWTJ6iK.js";
|
|
3
|
-
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-
|
|
4
|
-
import { a as $928221da08ecbc62$export$a11e76429ed99b4, t as $928221da08ecbc62$export$41f133550aa26f48 } from "./ListBox-
|
|
5
|
-
import { n as $bc25b811ec97a172$export$40258cc1d95ff477 } from "./ToggleButton-
|
|
4
|
+
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-DF6sbTuF.js";
|
|
5
|
+
import { a as $928221da08ecbc62$export$a11e76429ed99b4, t as $928221da08ecbc62$export$41f133550aa26f48 } from "./ListBox-Ck-B1Jae.js";
|
|
6
|
+
import { n as $bc25b811ec97a172$export$40258cc1d95ff477 } from "./ToggleButton-D8BT67FO.js";
|
|
6
7
|
import { t as Typography } from "./Typography-DCLnPa3P.js";
|
|
7
|
-
import "./i18n-
|
|
8
|
-
import {
|
|
9
|
-
import { t as TimePickerForm } from "./TimePickerForm-
|
|
8
|
+
import "./i18n-DaIHnR2n.js";
|
|
9
|
+
import { S as calendarYearDefinition, _ as calendarMonthDefinition, c as useTimeWheelCommit, v as calendarOptionTypography } from "./staticDateTimeSegments-BgUrcqXD.js";
|
|
10
|
+
import { t as TimePickerForm } from "./TimePickerForm-CaIHR0PV.js";
|
|
10
11
|
import { Badge } from "./components/badge.js";
|
|
11
|
-
import { t as useScrollableListBox } from "./useScrollableListBox-
|
|
12
|
-
import { n as
|
|
12
|
+
import { t as useScrollableListBox } from "./useScrollableListBox-4pieApqz.js";
|
|
13
|
+
import { a as calendarNavigationDefinition, i as calendarNavIconDefinition, n as calendarHeaderSideDefinition, r as calendarNavButtonDefinition, t as calendarHeaderDefinition } from "./calendarHeader.cva-D3sXR7ox.js";
|
|
14
|
+
import { n as CalendarGrid, t as $1697a7ad3db7b79f$re_export$useDateFormatter } from "./import-Cz8NlFqm.js";
|
|
13
15
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
14
16
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
17
|
import { ChevronDown, ChevronLeft, ChevronRight, ChevronUp } from "lucide-react";
|
|
16
18
|
import { CalendarDateTime, Time, today } from "@internationalized/date";
|
|
19
|
+
import { flushSync } from "react-dom";
|
|
17
20
|
import { useTranslation } from "react-i18next";
|
|
18
21
|
import { useCalendar } from "@react-aria/calendar";
|
|
19
22
|
//#region src/components/inputs/DateTime/shared/CalendarHeader.tsx
|
|
20
|
-
const calendarNavButtonClassName = clsx("inline-flex size-8 shrink-0 items-center justify-center rounded-md p-0 transition-all select-none", "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50 disabled:pointer-events-none", uiOutlineClass);
|
|
21
23
|
const HourCycle = {
|
|
22
24
|
12: "h12",
|
|
23
25
|
24: "h23"
|
|
@@ -27,6 +29,11 @@ const getTimeFormatterDate = (timeValue, timeZone) => {
|
|
|
27
29
|
};
|
|
28
30
|
const CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextButtonProps, includesTime, isTimeOptional, hourCycle, granularity = "day", toggleState, setToggleState }) => {
|
|
29
31
|
const { t } = useTranslation("ui");
|
|
32
|
+
const headerCva = UIOverrides.useCva("calendar.headerCva", calendarHeaderDefinition);
|
|
33
|
+
const headerSideCva = UIOverrides.useCva("calendar.headerSideCva", calendarHeaderSideDefinition);
|
|
34
|
+
const navButtonCva = UIOverrides.useCva("calendar.navButtonCva", calendarNavButtonDefinition);
|
|
35
|
+
const navIconCva = UIOverrides.useCva("calendar.navIconCva", calendarNavIconDefinition);
|
|
36
|
+
const navigationCva = UIOverrides.useCva("calendar.navigationCva", calendarNavigationDefinition);
|
|
30
37
|
const formatter = $1697a7ad3db7b79f$re_export$useDateFormatter({
|
|
31
38
|
month: "long",
|
|
32
39
|
timeZone: calendarState.timeZone
|
|
@@ -45,21 +52,26 @@ const CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextB
|
|
|
45
52
|
const date = getTimeFormatterDate(timeValue, calendarState.timeZone);
|
|
46
53
|
timeLabel = timeFormatter.format(date);
|
|
47
54
|
}
|
|
55
|
+
const sideClassName = headerSideCva({ includesTime: !!includesTime });
|
|
56
|
+
const navButtonClassName = clsx(navButtonCva({}), !!toggleState && "opacity-0");
|
|
48
57
|
return /* @__PURE__ */ jsxs("div", {
|
|
49
|
-
className:
|
|
58
|
+
className: headerCva({}),
|
|
50
59
|
children: [
|
|
51
60
|
/* @__PURE__ */ jsx("div", {
|
|
52
|
-
className:
|
|
61
|
+
className: sideClassName,
|
|
53
62
|
children: /* @__PURE__ */ jsx($7705c033048f6da7$export$353f5b6fc5456de1, {
|
|
54
63
|
...prevButtonProps,
|
|
55
64
|
isDisabled: !!toggleState,
|
|
56
|
-
className:
|
|
57
|
-
children: /* @__PURE__ */ jsx(IconSlot, {
|
|
65
|
+
className: navButtonClassName,
|
|
66
|
+
children: /* @__PURE__ */ jsx(IconSlot, {
|
|
67
|
+
icon: ChevronLeft,
|
|
68
|
+
className: navIconCva({}) || void 0
|
|
69
|
+
})
|
|
58
70
|
})
|
|
59
71
|
}),
|
|
60
72
|
/* @__PURE__ */ jsxs($bc25b811ec97a172$export$40258cc1d95ff477, {
|
|
61
73
|
"aria-label": t(($) => $.ui.datePicker.calendarNavigation),
|
|
62
|
-
className:
|
|
74
|
+
className: navigationCva({}),
|
|
63
75
|
children: [
|
|
64
76
|
granularity !== "year" && /* @__PURE__ */ jsx(Badge, {
|
|
65
77
|
as: "toggle",
|
|
@@ -118,12 +130,15 @@ const CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextB
|
|
|
118
130
|
]
|
|
119
131
|
}),
|
|
120
132
|
/* @__PURE__ */ jsx("div", {
|
|
121
|
-
className:
|
|
133
|
+
className: sideClassName,
|
|
122
134
|
children: /* @__PURE__ */ jsx($7705c033048f6da7$export$353f5b6fc5456de1, {
|
|
123
135
|
...nextButtonProps,
|
|
124
136
|
isDisabled: !!toggleState,
|
|
125
|
-
className:
|
|
126
|
-
children: /* @__PURE__ */ jsx(IconSlot, {
|
|
137
|
+
className: navButtonClassName,
|
|
138
|
+
children: /* @__PURE__ */ jsx(IconSlot, {
|
|
139
|
+
icon: ChevronRight,
|
|
140
|
+
className: navIconCva({}) || void 0
|
|
141
|
+
})
|
|
127
142
|
})
|
|
128
143
|
})
|
|
129
144
|
]
|
|
@@ -133,6 +148,8 @@ const CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextB
|
|
|
133
148
|
//#region src/components/inputs/DateTime/shared/MonthPicker.tsx
|
|
134
149
|
const MonthPicker = ({ state, onSelectionChange, onDateChange, onCommit, selectedDate }) => {
|
|
135
150
|
const { t } = useTranslation("ui");
|
|
151
|
+
const monthCva = UIOverrides.useCva("calendar.monthCva", calendarMonthDefinition);
|
|
152
|
+
const optionTypography = UIOverrides.useMapper("calendar.optionTypography", calendarOptionTypography);
|
|
136
153
|
const formatter = $1697a7ad3db7b79f$re_export$useDateFormatter({
|
|
137
154
|
month: "long",
|
|
138
155
|
timeZone: state.timeZone
|
|
@@ -203,10 +220,11 @@ const MonthPicker = ({ state, onSelectionChange, onDateChange, onCommit, selecte
|
|
|
203
220
|
if (monthNumber !== selectedMonth) return;
|
|
204
221
|
onCommit?.();
|
|
205
222
|
},
|
|
206
|
-
className:
|
|
223
|
+
className: monthCva({ isDisabled: !!isDisabled }),
|
|
207
224
|
children: /* @__PURE__ */ jsx(Typography, {
|
|
208
225
|
as: "span",
|
|
209
|
-
size: "body",
|
|
226
|
+
size: optionTypography({})?.size ?? "body",
|
|
227
|
+
className: optionTypography({})?.className,
|
|
210
228
|
children: month
|
|
211
229
|
})
|
|
212
230
|
}, monthNumber);
|
|
@@ -217,6 +235,8 @@ const MonthPicker = ({ state, onSelectionChange, onDateChange, onCommit, selecte
|
|
|
217
235
|
//#region src/components/inputs/DateTime/shared/YearPicker.tsx
|
|
218
236
|
const YearPicker = ({ state, onSelectionChange, onDateChange, onCommit, selectedDate }) => {
|
|
219
237
|
const { t } = useTranslation("ui");
|
|
238
|
+
const yearCva = UIOverrides.useCva("calendar.yearCva", calendarYearDefinition);
|
|
239
|
+
const optionTypography = UIOverrides.useMapper("calendar.optionTypography", calendarOptionTypography);
|
|
220
240
|
const formatter = $1697a7ad3db7b79f$re_export$useDateFormatter({
|
|
221
241
|
year: "numeric",
|
|
222
242
|
timeZone: state.timeZone
|
|
@@ -295,10 +315,11 @@ const YearPicker = ({ state, onSelectionChange, onDateChange, onCommit, selected
|
|
|
295
315
|
if (index !== selectedYearIndex) return;
|
|
296
316
|
onCommit?.();
|
|
297
317
|
},
|
|
298
|
-
className:
|
|
318
|
+
className: yearCva({ isDisabled: !!isDisabled }),
|
|
299
319
|
children: /* @__PURE__ */ jsx(Typography, {
|
|
300
320
|
as: "span",
|
|
301
|
-
size: "body",
|
|
321
|
+
size: optionTypography({})?.size ?? "body",
|
|
322
|
+
className: optionTypography({})?.className,
|
|
302
323
|
children: year.formatted
|
|
303
324
|
})
|
|
304
325
|
}, index);
|
|
@@ -307,13 +328,20 @@ const YearPicker = ({ state, onSelectionChange, onDateChange, onCommit, selected
|
|
|
307
328
|
};
|
|
308
329
|
//#endregion
|
|
309
330
|
//#region src/components/inputs/DateTime/shared/Calendar.tsx
|
|
310
|
-
const Calendar = ({ showWeekNumbers, className, includesTime, datePickerState, hourCycle, isTimeOptional, onApply, onMonthYearChange, onMonthYearCommit, selectedDate, granularity = "day", setDateValueOnDateSelection = false, onDateSelectionChange, ...props }) => {
|
|
331
|
+
const Calendar = ({ showWeekNumbers, className, includesTime, datePickerState, hourCycle, shouldForceLeadingZeros, isTimeDisabled, isTimeReadOnly, isTimeOptional, onApply, onMonthYearChange, onMonthYearCommit, selectedDate, granularity = "day", setDateValueOnDateSelection = false, onDateSelectionChange, ...props }) => {
|
|
311
332
|
const [toggleState, setToggleState] = useState(() => {
|
|
312
333
|
if (granularity === "year") return "year";
|
|
313
334
|
if (granularity === "month") return "month";
|
|
314
335
|
return null;
|
|
315
336
|
});
|
|
316
337
|
const { calendarProps, prevButtonProps, nextButtonProps } = useCalendar(props.calendarProps, props.state);
|
|
338
|
+
const settlers = useTimeWheelCommit()?.settlers;
|
|
339
|
+
const changeView = (next) => {
|
|
340
|
+
if (toggleState === "time" && next !== "time" && settlers?.size) flushSync(() => {
|
|
341
|
+
for (const settle of settlers) settle();
|
|
342
|
+
});
|
|
343
|
+
setToggleState(next);
|
|
344
|
+
};
|
|
317
345
|
useEffect(() => {
|
|
318
346
|
if (granularity === "year" && toggleState !== "year") {
|
|
319
347
|
setToggleState("year");
|
|
@@ -453,7 +481,13 @@ const Calendar = ({ showWeekNumbers, className, includesTime, datePickerState, h
|
|
|
453
481
|
});
|
|
454
482
|
if (toggleState === "time" && includesTime) return /* @__PURE__ */ jsx("div", {
|
|
455
483
|
className: "flex h-72 w-80 items-center justify-center",
|
|
456
|
-
children: /* @__PURE__ */ jsx(TimePickerForm, {
|
|
484
|
+
children: /* @__PURE__ */ jsx(TimePickerForm, {
|
|
485
|
+
datePickerState,
|
|
486
|
+
hourCycle,
|
|
487
|
+
shouldForceLeadingZeros,
|
|
488
|
+
isDisabled: isTimeDisabled,
|
|
489
|
+
isReadOnly: isTimeReadOnly
|
|
490
|
+
})
|
|
457
491
|
});
|
|
458
492
|
return null;
|
|
459
493
|
};
|
|
@@ -470,7 +504,7 @@ const Calendar = ({ showWeekNumbers, className, includesTime, datePickerState, h
|
|
|
470
504
|
hourCycle,
|
|
471
505
|
granularity,
|
|
472
506
|
toggleState,
|
|
473
|
-
setToggleState
|
|
507
|
+
setToggleState: changeView
|
|
474
508
|
}), /* @__PURE__ */ jsx("div", {
|
|
475
509
|
className: clsx("flex min-h-0 w-full flex-1 flex-col items-center", toggleState !== "year" && "pb-8 md:pb-0"),
|
|
476
510
|
children: getContent()
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Spinner } from "./components/spinner.js";
|
|
2
|
-
import { i as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6 } from "./DatePickerInput-
|
|
3
|
-
import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-
|
|
4
|
-
import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10 } from "./NumberFormatter-
|
|
5
|
-
import {
|
|
2
|
+
import { i as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6 } from "./DatePickerInput-CMEJmZSQ.js";
|
|
3
|
+
import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-C1-Mt2i0.js";
|
|
4
|
+
import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10 } from "./NumberFormatter-D5csbNXm.js";
|
|
5
|
+
import { A as $8b141f2f71e88f85$export$f18627323ab57ac0, D as $8b141f2f71e88f85$export$7e319ea407e63bc0, E as $8b141f2f71e88f85$export$2440da353cedad43, k as $8b141f2f71e88f85$export$c5221a78ef73c5e9 } from "./staticDateTimeSegments-BgUrcqXD.js";
|
|
6
6
|
import { Suspense, lazy, useMemo, useState } from "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
import { DateFormatter, toCalendarDate, toCalendarDateTime } from "@internationalized/date";
|
|
9
|
-
//#region ../../node_modules/.bun/react-stately@3.51.0+
|
|
9
|
+
//#region ../../node_modules/.bun/react-stately@3.51.0+62547eec5a2188e3/node_modules/react-stately/dist/private/datepicker/useDatePickerState.mjs
|
|
10
10
|
function $28aae683a942e141$export$87194bb378cc3ac2(props) {
|
|
11
11
|
let overlayState = $f11fb0bcf1b2687a$export$61c6a8c84e605fb6(props);
|
|
12
12
|
let [value, setValue] = $3e6197669829fe11$export$40bfa8c7b0832715(props.value, props.defaultValue || null, props.onChange);
|
|
@@ -110,7 +110,7 @@ function $28aae683a942e141$export$87194bb378cc3ac2(props) {
|
|
|
110
110
|
}
|
|
111
111
|
//#endregion
|
|
112
112
|
//#region src/components/inputs/DateTime/shared/Calendar.lazy.tsx
|
|
113
|
-
const loadCalendar = () => import("./Calendar-
|
|
113
|
+
const loadCalendar = () => import("./Calendar-DdneUEhM.js");
|
|
114
114
|
const CalendarRenderer = lazy(() => loadCalendar().then(({ Calendar }) => ({ default: Calendar })));
|
|
115
115
|
/** Fetches the calendar chunk ahead of the dialog opening (hover, focus). */
|
|
116
116
|
const preloadCalendar = () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as IconSlotIcon } from "./IconSlot-DcEDPaNb.js";
|
|
2
|
-
import { dn as CheckboxVariantProps } from "./link.cva-
|
|
2
|
+
import { dn as CheckboxVariantProps } from "./link.cva-ZhpQz3P0.js";
|
|
3
3
|
import { n as Removed } from "./hints-B09_WDhL.js";
|
|
4
4
|
import { t as FormFieldErrorProps } from "./FormFieldError-C7yOdjzQ.js";
|
|
5
5
|
import { i as FieldValues } from "./form.binding-DSXB2AOD.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
2
|
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
-
import { c as $7230ffa83bc0c2cf$export$ef03459518577ad4, i as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, l as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a } from "./utils-
|
|
4
|
-
import { t as $43a3b93638fe5db9$export$75b6ee27786ba447 } from "./Label-
|
|
5
|
-
import { t as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-
|
|
6
|
-
import { n as $1f3c3b1a70cec653$export$ff05c3ac10437e03, t as $cdaed739b1139372$export$c24727297075ec6a } from "./Form-
|
|
7
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
3
|
+
import { c as $7230ffa83bc0c2cf$export$ef03459518577ad4, i as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, l as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a } from "./utils-Q5Oc6oX2.js";
|
|
4
|
+
import { t as $43a3b93638fe5db9$export$75b6ee27786ba447 } from "./Label-VTcaaLO8.js";
|
|
5
|
+
import { t as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-D7Nqkw1l.js";
|
|
6
|
+
import { n as $1f3c3b1a70cec653$export$ff05c3ac10437e03, t as $cdaed739b1139372$export$c24727297075ec6a } from "./Form-4jZarkjk.js";
|
|
7
|
+
import { t as UIConfig } from "./uiConfig.context-NWmBJ2Hc.js";
|
|
8
8
|
import { n as FieldController } from "./form.binding-Brdjq2yr.js";
|
|
9
9
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
|
|
10
10
|
import { c as checkboxTypography, s as checkboxIndicatorClass, t as checkboxContentClassName } from "./checkbox.cva-qU_q0lSX.js";
|
|
11
11
|
import { t as FormFieldError } from "./FormFieldError-DTT5TUQ1.js";
|
|
12
12
|
import { t as CheckContent } from "./CheckContent-BKLnTPZr.js";
|
|
13
13
|
import { t as useFieldAccessibility } from "./useFieldAccessibility-eZIMECmG.js";
|
|
14
|
-
import { t as CheckboxCheckmark } from "./CheckboxCheckmark-
|
|
14
|
+
import { t as CheckboxCheckmark } from "./CheckboxCheckmark-Beu8T1g9.js";
|
|
15
15
|
import $ahdqC$react, { createContext, forwardRef, memo, useContext, useMemo } from "react";
|
|
16
16
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
17
17
|
import { mergeProps } from "react-aria/mergeProps";
|
|
@@ -25,7 +25,7 @@ import { useCheckboxGroup, useCheckboxGroupItem } from "react-aria/useCheckboxGr
|
|
|
25
25
|
import { useCheckbox } from "react-aria/useCheckbox";
|
|
26
26
|
import { useCheckboxGroupState } from "react-stately/useCheckboxGroupState";
|
|
27
27
|
import { useToggleState } from "react-stately/useToggleState";
|
|
28
|
-
//#region ../../node_modules/.bun/react-aria-components@1.22.1+
|
|
28
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+6f4b9a1cfb20c0ae/node_modules/react-aria-components/dist/private/Checkbox.mjs
|
|
29
29
|
const $ed8ccb2e23e76301$export$b085522c77523c51 = /*#__PURE__*/ createContext(null);
|
|
30
30
|
const $ed8ccb2e23e76301$export$baf37c4be89255b8 = /*#__PURE__*/ createContext(null);
|
|
31
31
|
const $ed8ccb2e23e76301$export$139c5b8563afc1fc = /*#__PURE__*/ createContext(null);
|