@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
|
@@ -0,0 +1,532 @@
|
|
|
1
|
+
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
|
+
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
+
import { t as Typography } from "./Typography-DCLnPa3P.js";
|
|
4
|
+
import "./i18n-DaIHnR2n.js";
|
|
5
|
+
import { t as UIConfig } from "./uiConfig.context-NWmBJ2Hc.js";
|
|
6
|
+
import { C as timePickerSegmentDefinition, c as useTimeWheelCommit, w as timePickerSegmentTypography } from "./staticDateTimeSegments-BgUrcqXD.js";
|
|
7
|
+
import { useId, useLayoutEffect, useRef } from "react";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { Time, getLocalTimeZone, toCalendarDateTime, today } from "@internationalized/date";
|
|
10
|
+
import { useTranslation } from "react-i18next";
|
|
11
|
+
import { useLocale } from "react-aria";
|
|
12
|
+
import { useTimeFieldState } from "@react-stately/datepicker";
|
|
13
|
+
const TIME_WHEEL_MIDDLE_COPY = Math.floor(7 / 2);
|
|
14
|
+
const MAX_FLICK_COLUMN_FRACTION = 1 / 3;
|
|
15
|
+
const FULL_FLICK_SPEED = 1.2;
|
|
16
|
+
const MIN_FLICK_SPEED = .35;
|
|
17
|
+
const VELOCITY_WINDOW = 80;
|
|
18
|
+
const MOUSE_VELOCITY_WINDOW = 240;
|
|
19
|
+
const STOPPED_RELEASE_MS = 170;
|
|
20
|
+
const modulo = (value, length) => (value % length + length) % length;
|
|
21
|
+
/** Native wheel scrolling with consistent mouse, pen, and touch drag momentum. */
|
|
22
|
+
const useTimeWheel = (options) => {
|
|
23
|
+
const ref = useRef(null);
|
|
24
|
+
const latest = useRef(options);
|
|
25
|
+
const sync = useRef(() => {});
|
|
26
|
+
const commit = useTimeWheelCommit();
|
|
27
|
+
const settlers = commit?.settlers;
|
|
28
|
+
const isOpen = commit?.isOpen ?? true;
|
|
29
|
+
const count = options.values.length;
|
|
30
|
+
const { loop, isDisabled, isReadOnly } = options;
|
|
31
|
+
useLayoutEffect(() => {
|
|
32
|
+
latest.current = options;
|
|
33
|
+
sync.current();
|
|
34
|
+
});
|
|
35
|
+
useLayoutEffect(() => {
|
|
36
|
+
const element = ref.current;
|
|
37
|
+
if (!element || !count || !isOpen) return;
|
|
38
|
+
const motion = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
39
|
+
const locked = isDisabled || isReadOnly;
|
|
40
|
+
const offset = loop ? TIME_WHEEL_MIDDLE_COPY * count : 0;
|
|
41
|
+
const maxIndex = count * (loop ? 7 : 1) - 1;
|
|
42
|
+
let selected = latest.current.value;
|
|
43
|
+
let frame = 0;
|
|
44
|
+
let settleTimer;
|
|
45
|
+
let pointer = null;
|
|
46
|
+
let captureRecovery;
|
|
47
|
+
let suppressClick = false;
|
|
48
|
+
let painted = [];
|
|
49
|
+
const sensitivity = () => {
|
|
50
|
+
const value = latest.current.sensitivity;
|
|
51
|
+
return Number.isFinite(value) && value > 0 ? value : 1;
|
|
52
|
+
};
|
|
53
|
+
const clampIndex = (index) => Math.max(0, Math.min(maxIndex, index));
|
|
54
|
+
const currentIndex = () => clampIndex(Math.round(element.scrollTop / 44));
|
|
55
|
+
const paint = () => {
|
|
56
|
+
const position = element.scrollTop / 44;
|
|
57
|
+
for (const row of painted) delete row.dataset.current;
|
|
58
|
+
painted = [];
|
|
59
|
+
for (let index = Math.max(0, Math.floor(position) - 3); index <= Math.min(maxIndex, Math.ceil(position) + 3); index++) {
|
|
60
|
+
const row = element.children[index];
|
|
61
|
+
const content = row.firstElementChild;
|
|
62
|
+
const distance = index - position;
|
|
63
|
+
content.style.transform = motion.matches ? "none" : `perspective(300px) rotateX(${Math.max(-55, Math.min(55, -distance * 18))}deg) scale(${1 - Math.min(Math.abs(distance), 3) * .04})`;
|
|
64
|
+
if (index === Math.round(position)) row.dataset.current = "true";
|
|
65
|
+
painted.push(row);
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
const stop = () => {
|
|
69
|
+
cancelAnimationFrame(frame);
|
|
70
|
+
frame = 0;
|
|
71
|
+
clearTimeout(settleTimer);
|
|
72
|
+
element.scrollTo({
|
|
73
|
+
top: element.scrollTop,
|
|
74
|
+
behavior: "instant"
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
const emit = (index) => {
|
|
78
|
+
const value = latest.current.values[modulo(index, count)];
|
|
79
|
+
if (value !== selected) {
|
|
80
|
+
selected = value;
|
|
81
|
+
latest.current.onChange(value);
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
const releasePointer = () => {
|
|
85
|
+
clearTimeout(captureRecovery);
|
|
86
|
+
const active = pointer;
|
|
87
|
+
pointer = null;
|
|
88
|
+
if (active && element.hasPointerCapture(active.id)) element.releasePointerCapture(active.id);
|
|
89
|
+
};
|
|
90
|
+
const settle = () => {
|
|
91
|
+
stop();
|
|
92
|
+
releasePointer();
|
|
93
|
+
const index = currentIndex();
|
|
94
|
+
const normalized = modulo(index, count);
|
|
95
|
+
element.style.scrollSnapType = "y mandatory";
|
|
96
|
+
element.scrollTo({
|
|
97
|
+
top: (offset + normalized) * 44,
|
|
98
|
+
behavior: "instant"
|
|
99
|
+
});
|
|
100
|
+
paint();
|
|
101
|
+
if (!locked) emit(index);
|
|
102
|
+
};
|
|
103
|
+
const animateTo = (index, duration) => {
|
|
104
|
+
stop();
|
|
105
|
+
const start = element.scrollTop;
|
|
106
|
+
const target = clampIndex(index) * 44;
|
|
107
|
+
const distance = Math.abs(target - start);
|
|
108
|
+
element.style.scrollSnapType = "none";
|
|
109
|
+
if (motion.matches || duration === 0 || distance < 1) {
|
|
110
|
+
element.scrollTop = target;
|
|
111
|
+
settle();
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
const travelTime = duration ?? Math.min(180, 90 + distance / 44 * 80);
|
|
115
|
+
const startedAt = performance.now();
|
|
116
|
+
const glide = (time) => {
|
|
117
|
+
const progress = Math.min(1, (time - startedAt) / travelTime);
|
|
118
|
+
element.scrollTop = start + (target - start) * (1 - (1 - progress) ** 3);
|
|
119
|
+
paint();
|
|
120
|
+
if (progress === 1) settle();
|
|
121
|
+
else frame = requestAnimationFrame(glide);
|
|
122
|
+
};
|
|
123
|
+
frame = requestAnimationFrame(glide);
|
|
124
|
+
};
|
|
125
|
+
const settleScroll = () => animateTo(currentIndex());
|
|
126
|
+
const onScroll = () => {
|
|
127
|
+
paint();
|
|
128
|
+
clearTimeout(settleTimer);
|
|
129
|
+
if (!pointer && !frame) settleTimer = setTimeout(settleScroll, 160);
|
|
130
|
+
};
|
|
131
|
+
const onScrollEnd = () => {
|
|
132
|
+
if (!pointer && !frame) settleScroll();
|
|
133
|
+
};
|
|
134
|
+
const onWheel = (event) => {
|
|
135
|
+
if (event.ctrlKey) return;
|
|
136
|
+
if (locked) {
|
|
137
|
+
event.preventDefault();
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
if (frame) stop();
|
|
141
|
+
element.style.scrollSnapType = "none";
|
|
142
|
+
event.stopPropagation();
|
|
143
|
+
};
|
|
144
|
+
const onPointerDown = (event) => {
|
|
145
|
+
if (locked || !event.isPrimary || event.button !== 0) return;
|
|
146
|
+
stop();
|
|
147
|
+
suppressClick = false;
|
|
148
|
+
element.focus({ preventScroll: true });
|
|
149
|
+
const start = {
|
|
150
|
+
y: event.clientY,
|
|
151
|
+
time: event.timeStamp
|
|
152
|
+
};
|
|
153
|
+
pointer = {
|
|
154
|
+
id: event.pointerId,
|
|
155
|
+
y: event.clientY,
|
|
156
|
+
start,
|
|
157
|
+
moved: false,
|
|
158
|
+
lostMouseCapture: false,
|
|
159
|
+
startScrollTop: element.scrollTop,
|
|
160
|
+
scrollTop: element.scrollTop,
|
|
161
|
+
samples: [start]
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
const onPointerMove = (event) => {
|
|
165
|
+
if (!pointer || pointer.id !== event.pointerId) return;
|
|
166
|
+
if (event.type === "pointermove" && pointer.lostMouseCapture && !(event.buttons & 1)) {
|
|
167
|
+
onPointerEnd(event);
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
if (!pointer.moved && Math.abs(event.clientY - pointer.start.y) < 4) return;
|
|
171
|
+
if (!pointer.moved) {
|
|
172
|
+
if (event.type === "pointermove") element.setPointerCapture(event.pointerId);
|
|
173
|
+
element.style.scrollSnapType = "none";
|
|
174
|
+
}
|
|
175
|
+
pointer.moved = true;
|
|
176
|
+
event.preventDefault();
|
|
177
|
+
const samples = pointer.samples;
|
|
178
|
+
const historyWindow = event.pointerType === "mouse" ? MOUSE_VELOCITY_WINDOW : VELOCITY_WINDOW;
|
|
179
|
+
const record = (sample) => {
|
|
180
|
+
if (Math.abs(samples[samples.length - 1].y - sample.clientY) < 2) return;
|
|
181
|
+
samples.push({
|
|
182
|
+
y: sample.clientY,
|
|
183
|
+
time: sample.timeStamp
|
|
184
|
+
});
|
|
185
|
+
while (samples.length > 2 && samples[1].time <= sample.timeStamp - historyWindow) samples.shift();
|
|
186
|
+
};
|
|
187
|
+
for (const sample of event.getCoalescedEvents?.() ?? []) record(sample);
|
|
188
|
+
record(event);
|
|
189
|
+
const delta = pointer.y - event.clientY;
|
|
190
|
+
if (!delta) return;
|
|
191
|
+
pointer.scrollTop = Math.max(0, Math.min(maxIndex * 44, pointer.scrollTop + delta * sensitivity()));
|
|
192
|
+
element.scrollTop = pointer.scrollTop;
|
|
193
|
+
pointer.y = event.clientY;
|
|
194
|
+
paint();
|
|
195
|
+
};
|
|
196
|
+
const onPointerEnd = (event) => {
|
|
197
|
+
if (!pointer || pointer.id !== event.pointerId) return;
|
|
198
|
+
if (event.type === "pointerup") onPointerMove(event);
|
|
199
|
+
const drag = pointer;
|
|
200
|
+
releasePointer();
|
|
201
|
+
if (!drag.moved) {
|
|
202
|
+
onScroll();
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
suppressClick = true;
|
|
206
|
+
if (motion.matches || event.type === "pointercancel") {
|
|
207
|
+
settle();
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
const samples = drag.samples;
|
|
211
|
+
const last = samples[samples.length - 1];
|
|
212
|
+
const velocityFrom = (index) => {
|
|
213
|
+
const first = samples[index];
|
|
214
|
+
let elapsed = last.time - first.time;
|
|
215
|
+
if (first === drag.start && samples.length > 1) elapsed -= Math.max(0, samples[1].time - first.time - VELOCITY_WINDOW);
|
|
216
|
+
return (first.y - last.y) / Math.max(1, elapsed);
|
|
217
|
+
};
|
|
218
|
+
let recent = 0;
|
|
219
|
+
while (recent + 1 < samples.length - 1 && samples[recent + 1].time <= last.time - VELOCITY_WINDOW) recent++;
|
|
220
|
+
let velocity = velocityFrom(recent);
|
|
221
|
+
if (event.pointerType === "mouse" && recent > 0) {
|
|
222
|
+
const pullVelocity = velocityFrom(0);
|
|
223
|
+
if (Math.sign(pullVelocity) === Math.sign(velocity) && Math.abs(pullVelocity) > Math.abs(velocity)) velocity = pullVelocity;
|
|
224
|
+
}
|
|
225
|
+
const speed = Math.abs(velocity);
|
|
226
|
+
const releaseAge = event.timeStamp - last.time;
|
|
227
|
+
if (!loop || releaseAge >= STOPPED_RELEASE_MS || speed < MIN_FLICK_SPEED) {
|
|
228
|
+
settleScroll();
|
|
229
|
+
return;
|
|
230
|
+
}
|
|
231
|
+
const strength = Math.min(1, speed / FULL_FLICK_SPEED);
|
|
232
|
+
const remaining = Math.min(1, (STOPPED_RELEASE_MS - releaseAge) / 95);
|
|
233
|
+
const maxTravel = count * MAX_FLICK_COLUMN_FRACTION * 44 * sensitivity();
|
|
234
|
+
const direction = Math.sign(velocity);
|
|
235
|
+
const dragged = Math.max(0, direction * (element.scrollTop - drag.startScrollTop));
|
|
236
|
+
if (dragged >= maxTravel) {
|
|
237
|
+
settleScroll();
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
const travel = direction * remaining * strength ** 2 * (maxTravel - dragged);
|
|
241
|
+
animateTo(Math.round((element.scrollTop + travel) / 44), 200 + remaining * strength * 500);
|
|
242
|
+
};
|
|
243
|
+
const onLostPointerCapture = (event) => {
|
|
244
|
+
if (event.target !== element || pointer?.id !== event.pointerId || element.hasPointerCapture(event.pointerId)) return;
|
|
245
|
+
if (event.pointerType !== "mouse") {
|
|
246
|
+
settle();
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
const drag = pointer;
|
|
250
|
+
drag.lostMouseCapture = true;
|
|
251
|
+
if (event.buttons & 1) return;
|
|
252
|
+
clearTimeout(captureRecovery);
|
|
253
|
+
captureRecovery = setTimeout(() => {
|
|
254
|
+
if (pointer !== drag || element.hasPointerCapture(event.pointerId)) return;
|
|
255
|
+
try {
|
|
256
|
+
element.setPointerCapture(event.pointerId);
|
|
257
|
+
} catch (error) {
|
|
258
|
+
if (!(error instanceof DOMException && error.name === "NotFoundError")) throw error;
|
|
259
|
+
}
|
|
260
|
+
if (!element.hasPointerCapture(event.pointerId)) onPointerEnd(event);
|
|
261
|
+
}, 0);
|
|
262
|
+
};
|
|
263
|
+
const onWindowBlur = () => {
|
|
264
|
+
if (pointer || frame) settle();
|
|
265
|
+
};
|
|
266
|
+
const onClick = (event) => {
|
|
267
|
+
if (locked || suppressClick) {
|
|
268
|
+
suppressClick = false;
|
|
269
|
+
return;
|
|
270
|
+
}
|
|
271
|
+
const row = event.target.closest("[data-wheel-index]");
|
|
272
|
+
if (row) animateTo(Number(row.dataset.wheelIndex));
|
|
273
|
+
};
|
|
274
|
+
const onKeyDown = (event) => {
|
|
275
|
+
if (locked || event.altKey || event.ctrlKey || event.metaKey) return;
|
|
276
|
+
let index = currentIndex();
|
|
277
|
+
switch (event.key) {
|
|
278
|
+
case "ArrowDown":
|
|
279
|
+
index++;
|
|
280
|
+
break;
|
|
281
|
+
case "ArrowUp":
|
|
282
|
+
index--;
|
|
283
|
+
break;
|
|
284
|
+
case "PageDown":
|
|
285
|
+
index += latest.current.pageStep;
|
|
286
|
+
break;
|
|
287
|
+
case "PageUp":
|
|
288
|
+
index -= latest.current.pageStep;
|
|
289
|
+
break;
|
|
290
|
+
case "Home":
|
|
291
|
+
index = offset;
|
|
292
|
+
break;
|
|
293
|
+
case "End":
|
|
294
|
+
index = offset + count - 1;
|
|
295
|
+
break;
|
|
296
|
+
default: return;
|
|
297
|
+
}
|
|
298
|
+
event.preventDefault();
|
|
299
|
+
event.stopPropagation();
|
|
300
|
+
animateTo(index, 0);
|
|
301
|
+
};
|
|
302
|
+
sync.current = () => {
|
|
303
|
+
if (latest.current.value === selected) return;
|
|
304
|
+
stop();
|
|
305
|
+
selected = latest.current.value;
|
|
306
|
+
element.scrollTop = (offset + Math.max(0, latest.current.values.indexOf(selected))) * 44;
|
|
307
|
+
paint();
|
|
308
|
+
};
|
|
309
|
+
element.style.scrollSnapType = "y mandatory";
|
|
310
|
+
element.scrollTop = (offset + Math.max(0, latest.current.values.indexOf(selected))) * 44;
|
|
311
|
+
paint();
|
|
312
|
+
const onMotionChange = () => {
|
|
313
|
+
settle();
|
|
314
|
+
paint();
|
|
315
|
+
};
|
|
316
|
+
settlers?.add(settle);
|
|
317
|
+
element.addEventListener("scroll", onScroll, { passive: true });
|
|
318
|
+
element.addEventListener("scrollend", onScrollEnd);
|
|
319
|
+
element.addEventListener("wheel", onWheel, { passive: false });
|
|
320
|
+
element.addEventListener("pointerdown", onPointerDown);
|
|
321
|
+
window.addEventListener("pointermove", onPointerMove, true);
|
|
322
|
+
window.addEventListener("pointerup", onPointerEnd, true);
|
|
323
|
+
window.addEventListener("pointercancel", onPointerEnd, true);
|
|
324
|
+
element.addEventListener("lostpointercapture", onLostPointerCapture);
|
|
325
|
+
window.addEventListener("blur", onWindowBlur);
|
|
326
|
+
element.addEventListener("click", onClick);
|
|
327
|
+
element.addEventListener("keydown", onKeyDown);
|
|
328
|
+
motion.addEventListener("change", onMotionChange);
|
|
329
|
+
return () => {
|
|
330
|
+
stop();
|
|
331
|
+
releasePointer();
|
|
332
|
+
settlers?.delete(settle);
|
|
333
|
+
sync.current = () => {};
|
|
334
|
+
element.removeEventListener("scroll", onScroll);
|
|
335
|
+
element.removeEventListener("scrollend", onScrollEnd);
|
|
336
|
+
element.removeEventListener("wheel", onWheel);
|
|
337
|
+
element.removeEventListener("pointerdown", onPointerDown);
|
|
338
|
+
window.removeEventListener("pointermove", onPointerMove, true);
|
|
339
|
+
window.removeEventListener("pointerup", onPointerEnd, true);
|
|
340
|
+
window.removeEventListener("pointercancel", onPointerEnd, true);
|
|
341
|
+
element.removeEventListener("lostpointercapture", onLostPointerCapture);
|
|
342
|
+
window.removeEventListener("blur", onWindowBlur);
|
|
343
|
+
element.removeEventListener("click", onClick);
|
|
344
|
+
element.removeEventListener("keydown", onKeyDown);
|
|
345
|
+
motion.removeEventListener("change", onMotionChange);
|
|
346
|
+
};
|
|
347
|
+
}, [
|
|
348
|
+
count,
|
|
349
|
+
loop,
|
|
350
|
+
isDisabled,
|
|
351
|
+
isReadOnly,
|
|
352
|
+
settlers,
|
|
353
|
+
isOpen
|
|
354
|
+
]);
|
|
355
|
+
return ref;
|
|
356
|
+
};
|
|
357
|
+
//#endregion
|
|
358
|
+
//#region src/components/inputs/DateTime/shared/TimeWheel.tsx
|
|
359
|
+
const TimeWheel = ({ label, value, options, onChange, loop = true, sensitivity = 1, pageStep = 1, isDisabled, isReadOnly, isInvalid, errorMessageId }) => {
|
|
360
|
+
const labelId = useId();
|
|
361
|
+
const segmentCva = UIOverrides.useCva("timePicker.segmentCva", timePickerSegmentDefinition);
|
|
362
|
+
const segmentTypography = UIOverrides.useMapper("timePicker.segmentTypography", timePickerSegmentTypography)({});
|
|
363
|
+
const ref = useTimeWheel({
|
|
364
|
+
value,
|
|
365
|
+
values: options.map((option) => option.value),
|
|
366
|
+
onChange,
|
|
367
|
+
loop,
|
|
368
|
+
sensitivity,
|
|
369
|
+
pageStep,
|
|
370
|
+
isDisabled,
|
|
371
|
+
isReadOnly
|
|
372
|
+
});
|
|
373
|
+
const rows = Array.from({ length: loop ? 7 : 1 }, () => options).flat();
|
|
374
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
375
|
+
className: segmentCva(),
|
|
376
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
377
|
+
as: "div",
|
|
378
|
+
size: segmentTypography?.size ?? "body",
|
|
379
|
+
id: labelId,
|
|
380
|
+
className: clsx("mb-2 text-center", segmentTypography?.className),
|
|
381
|
+
children: label
|
|
382
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
383
|
+
ref,
|
|
384
|
+
role: "listbox",
|
|
385
|
+
tabIndex: isDisabled ? -1 : 0,
|
|
386
|
+
"aria-labelledby": labelId,
|
|
387
|
+
"aria-activedescendant": `${labelId}-option-${value}`,
|
|
388
|
+
"aria-disabled": isDisabled || void 0,
|
|
389
|
+
"aria-readonly": isReadOnly || void 0,
|
|
390
|
+
"aria-invalid": isInvalid || void 0,
|
|
391
|
+
"aria-describedby": isInvalid ? errorMessageId : void 0,
|
|
392
|
+
"data-time-wheel": true,
|
|
393
|
+
className: "relative select-none rounded-md text-muted-foreground tabular-nums outline-none [&::-webkit-scrollbar]:hidden",
|
|
394
|
+
style: {
|
|
395
|
+
height: 220,
|
|
396
|
+
paddingBlock: 88,
|
|
397
|
+
boxSizing: "border-box",
|
|
398
|
+
overflowY: isDisabled || isReadOnly ? "hidden" : "auto",
|
|
399
|
+
overscrollBehaviorY: "contain",
|
|
400
|
+
touchAction: "pinch-zoom",
|
|
401
|
+
scrollSnapType: "y mandatory",
|
|
402
|
+
scrollbarWidth: "none",
|
|
403
|
+
maskImage: "linear-gradient(transparent, black 30%, black 70%, transparent)"
|
|
404
|
+
},
|
|
405
|
+
children: rows.map((option, index) => {
|
|
406
|
+
const canonical = !loop || Math.floor(index / options.length) === TIME_WHEEL_MIDDLE_COPY;
|
|
407
|
+
return /* @__PURE__ */ jsx("div", {
|
|
408
|
+
role: canonical ? "option" : void 0,
|
|
409
|
+
id: canonical ? `${labelId}-option-${option.value}` : void 0,
|
|
410
|
+
"aria-selected": canonical ? option.value === value : void 0,
|
|
411
|
+
"aria-hidden": canonical ? void 0 : true,
|
|
412
|
+
"data-wheel-index": index,
|
|
413
|
+
className: "flex cursor-grab items-center justify-center text-lg data-[current]:font-semibold data-[current]:text-accent-foreground active:cursor-grabbing",
|
|
414
|
+
style: {
|
|
415
|
+
height: 44,
|
|
416
|
+
scrollSnapAlign: "center"
|
|
417
|
+
},
|
|
418
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
419
|
+
className: "pointer-events-none block",
|
|
420
|
+
children: option.label
|
|
421
|
+
})
|
|
422
|
+
}, `${Math.floor(index / options.length)}-${option.value}`);
|
|
423
|
+
})
|
|
424
|
+
})]
|
|
425
|
+
});
|
|
426
|
+
};
|
|
427
|
+
//#endregion
|
|
428
|
+
//#region src/components/inputs/DateTime/shared/TimePickerForm.tsx
|
|
429
|
+
const TimePickerForm = ({ state, datePickerState, hourCycle, shouldForceLeadingZeros, isDisabled, isReadOnly }) => {
|
|
430
|
+
const { locale, direction } = useLocale();
|
|
431
|
+
const { t } = useTranslation("ui");
|
|
432
|
+
const { hourWheelSensitivity, minuteWheelSensitivity } = UIConfig.useConfig().dateInput;
|
|
433
|
+
const fieldState = useTimeFieldState({
|
|
434
|
+
locale,
|
|
435
|
+
value: datePickerState?.timeValue ?? null,
|
|
436
|
+
onChange: (value) => datePickerState?.setTimeValue(value ?? new Time(0, 0)),
|
|
437
|
+
hourCycle,
|
|
438
|
+
shouldForceLeadingZeros,
|
|
439
|
+
hideTimeZone: true
|
|
440
|
+
});
|
|
441
|
+
const innerState = state ?? fieldState;
|
|
442
|
+
const validation = (datePickerState ?? innerState).displayValidation;
|
|
443
|
+
const errorMessageId = useId();
|
|
444
|
+
const errorMessage = validation.isInvalid ? validation.validationErrors.join(" ") || t(($) => $.zodErrors.invalid) : "";
|
|
445
|
+
const time = innerState.timeValue ?? new Time(0, 0);
|
|
446
|
+
const draft = useRef(time);
|
|
447
|
+
useLayoutEffect(() => {
|
|
448
|
+
draft.current = time;
|
|
449
|
+
});
|
|
450
|
+
const is12Hour = innerState.segments.some((segment) => segment.type === "dayPeriod");
|
|
451
|
+
const resolvedCycle = innerState.dateFormatter.resolvedOptions().hourCycle;
|
|
452
|
+
const firstHour = resolvedCycle === "h12" || resolvedCycle === "h24" ? 1 : 0;
|
|
453
|
+
const hoursPerCycle = is12Hour ? 12 : 24;
|
|
454
|
+
const hourFormatter = new Intl.NumberFormat(locale, {
|
|
455
|
+
minimumIntegerDigits: shouldForceLeadingZeros || !is12Hour ? 2 : 1,
|
|
456
|
+
useGrouping: false
|
|
457
|
+
});
|
|
458
|
+
const minuteFormatter = new Intl.NumberFormat(locale, {
|
|
459
|
+
minimumIntegerDigits: 2,
|
|
460
|
+
useGrouping: false
|
|
461
|
+
});
|
|
462
|
+
const periodFormatter = new Intl.DateTimeFormat(locale, {
|
|
463
|
+
hour: "numeric",
|
|
464
|
+
hour12: true,
|
|
465
|
+
timeZone: "UTC"
|
|
466
|
+
});
|
|
467
|
+
const periodLabel = (hour) => periodFormatter.formatToParts(new Date(Date.UTC(2e3, 0, 1, hour))).find((part) => part.type === "dayPeriod")?.value ?? (hour === 0 ? "AM" : "PM");
|
|
468
|
+
const change = (type, value) => {
|
|
469
|
+
if (isDisabled || isReadOnly) return;
|
|
470
|
+
const current = draft.current;
|
|
471
|
+
const next = type === "minute" ? current.set({ minute: value }) : current.set({ hour: type === "dayPeriod" ? current.hour % 12 + value * 12 : is12Hour ? value + Math.floor(current.hour / 12) * 12 : value });
|
|
472
|
+
draft.current = next;
|
|
473
|
+
if (datePickerState) datePickerState.setTimeValue(next);
|
|
474
|
+
else innerState.setValue((innerState.value ?? toCalendarDateTime(today(getLocalTimeZone()))).set(next));
|
|
475
|
+
};
|
|
476
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
477
|
+
className: "w-full min-w-60 p-4",
|
|
478
|
+
dir: direction,
|
|
479
|
+
"data-time-wheels": true,
|
|
480
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
481
|
+
className: "relative flex items-end justify-center gap-2",
|
|
482
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
483
|
+
"aria-hidden": "true",
|
|
484
|
+
className: "pointer-events-none absolute inset-x-0 rounded-md bg-accent",
|
|
485
|
+
style: {
|
|
486
|
+
bottom: 88,
|
|
487
|
+
height: 44
|
|
488
|
+
}
|
|
489
|
+
}), innerState.segments.filter((segment) => [
|
|
490
|
+
"hour",
|
|
491
|
+
"minute",
|
|
492
|
+
"dayPeriod"
|
|
493
|
+
].includes(segment.type)).map((segment) => {
|
|
494
|
+
const type = segment.type;
|
|
495
|
+
const options = type === "hour" ? Array.from({ length: hoursPerCycle }, (_, index) => ({
|
|
496
|
+
value: (firstHour + index) % hoursPerCycle,
|
|
497
|
+
label: hourFormatter.format(firstHour + index)
|
|
498
|
+
})) : type === "minute" ? Array.from({ length: 60 }, (_, value) => ({
|
|
499
|
+
value,
|
|
500
|
+
label: minuteFormatter.format(value)
|
|
501
|
+
})) : [{
|
|
502
|
+
value: 0,
|
|
503
|
+
label: periodLabel(0)
|
|
504
|
+
}, {
|
|
505
|
+
value: 1,
|
|
506
|
+
label: periodLabel(12)
|
|
507
|
+
}];
|
|
508
|
+
return /* @__PURE__ */ jsx(TimeWheel, {
|
|
509
|
+
label: t(($) => type === "hour" ? $.ui.datePicker.adjustTime.hour : type === "minute" ? $.ui.datePicker.adjustTime.minute : $.ui.datePicker.adjustTime.dayPeriod),
|
|
510
|
+
value: type === "hour" ? time.hour % hoursPerCycle : type === "minute" ? time.minute : Math.floor(time.hour / 12),
|
|
511
|
+
options,
|
|
512
|
+
onChange: (value) => change(type, value),
|
|
513
|
+
loop: type !== "dayPeriod",
|
|
514
|
+
sensitivity: type === "hour" ? hourWheelSensitivity : type === "minute" ? minuteWheelSensitivity : 1,
|
|
515
|
+
pageStep: type === "minute" ? 5 : type === "hour" ? 3 : 1,
|
|
516
|
+
isDisabled,
|
|
517
|
+
isReadOnly,
|
|
518
|
+
isInvalid: validation.isInvalid,
|
|
519
|
+
errorMessageId
|
|
520
|
+
}, type === "hour" ? `hour-${resolvedCycle}` : type);
|
|
521
|
+
})]
|
|
522
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
523
|
+
id: errorMessageId,
|
|
524
|
+
"aria-live": "polite",
|
|
525
|
+
"aria-atomic": "true",
|
|
526
|
+
className: validation.isInvalid ? "mt-2 text-sm text-destructive" : void 0,
|
|
527
|
+
children: errorMessage
|
|
528
|
+
})]
|
|
529
|
+
});
|
|
530
|
+
};
|
|
531
|
+
//#endregion
|
|
532
|
+
export { TimePickerForm as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
2
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
3
|
-
import {
|
|
4
|
-
import { t as xo } from "./dist-
|
|
5
|
-
import { i as subscribeToToastActivation, n as isToastRendererActive, r as isToastRendererInactive } from "./useToast-
|
|
2
|
+
import { t as UIConfig } from "./uiConfig.context-NWmBJ2Hc.js";
|
|
3
|
+
import { a as toastContainerDefinition, u as toastWrapper } from "./toast.cva-DusQwZw-.js";
|
|
4
|
+
import { t as xo } from "./dist-CP6vV22I.js";
|
|
5
|
+
import { i as subscribeToToastActivation, n as isToastRendererActive, r as isToastRendererInactive } from "./useToast-DgqC6Ta_.js";
|
|
6
6
|
import { c } from "react/compiler-runtime";
|
|
7
7
|
import { useSyncExternalStore } from "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ButtonSharedProps, r as ToggleButtonProps$1, t as AriaButtonPropsWithoutRestated } from "./ButtonBase-
|
|
1
|
+
import { n as ButtonSharedProps, r as ToggleButtonProps$1, t as AriaButtonPropsWithoutRestated } from "./ButtonBase-Bn_FT89h.js";
|
|
2
2
|
import { Ref } from "react";
|
|
3
3
|
//#region src/components/buttons/ToggleButton/ToggleButton.d.ts
|
|
4
4
|
/** A persistent selected/unselected action. Selection belongs here rather than on Button. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e } from "./utils-
|
|
2
|
-
import { t as $792f28e438b9ad5f$export$758399f318e6385a } from "./SharedElementTransition-
|
|
3
|
-
import { n as $91fe5e721c7f36c1$export$c9549807523555e0 } from "./SelectionIndicator-
|
|
1
|
+
import { n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e } from "./utils-Q5Oc6oX2.js";
|
|
2
|
+
import { t as $792f28e438b9ad5f$export$758399f318e6385a } from "./SharedElementTransition-BkyYit3Q.js";
|
|
3
|
+
import { n as $91fe5e721c7f36c1$export$c9549807523555e0 } from "./SelectionIndicator-CvuKjZRP.js";
|
|
4
4
|
import $ahdqC$react, { createContext, forwardRef, useContext } from "react";
|
|
5
5
|
import { mergeProps } from "react-aria/mergeProps";
|
|
6
6
|
import { filterDOMProps } from "react-aria/filterDOMProps";
|
|
@@ -10,7 +10,7 @@ import { useToggleState } from "react-stately/useToggleState";
|
|
|
10
10
|
import { useToggleButtonGroup, useToggleButtonGroupItem } from "react-aria/useToggleButtonGroup";
|
|
11
11
|
import { useToggleGroupState } from "react-stately/useToggleGroupState";
|
|
12
12
|
import { useToggleButton } from "react-aria/useToggleButton";
|
|
13
|
-
//#region ../../node_modules/.bun/react-aria-components@1.22.1+
|
|
13
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+6f4b9a1cfb20c0ae/node_modules/react-aria-components/dist/private/ToggleButtonGroup.mjs
|
|
14
14
|
const $bc25b811ec97a172$export$298258635ae0dd97 = /*#__PURE__*/ createContext({});
|
|
15
15
|
const $bc25b811ec97a172$export$a8a71863db173133 = /*#__PURE__*/ createContext(null);
|
|
16
16
|
const $bc25b811ec97a172$export$40258cc1d95ff477 = /*#__PURE__*/ forwardRef(function ToggleButtonGroup(props, ref) {
|
|
@@ -36,7 +36,7 @@ const $bc25b811ec97a172$export$40258cc1d95ff477 = /*#__PURE__*/ forwardRef(funct
|
|
|
36
36
|
}, /*#__PURE__*/ $ahdqC$react.createElement($bc25b811ec97a172$export$a8a71863db173133.Provider, { value: state }, /*#__PURE__*/ $ahdqC$react.createElement($792f28e438b9ad5f$export$758399f318e6385a, null, renderProps.children)));
|
|
37
37
|
});
|
|
38
38
|
//#endregion
|
|
39
|
-
//#region ../../node_modules/.bun/react-aria-components@1.22.1+
|
|
39
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+6f4b9a1cfb20c0ae/node_modules/react-aria-components/dist/private/ToggleButton.mjs
|
|
40
40
|
const $75afe627ae0cc0fa$export$43506d75ebd2e218 = /*#__PURE__*/ createContext({});
|
|
41
41
|
const $75afe627ae0cc0fa$export$d2b052e7b4be1756 = /*#__PURE__*/ forwardRef(function ToggleButton(props, ref) {
|
|
42
42
|
[props, ref] = $7230ffa83bc0c2cf$export$29f1550f4b0d4415(props, ref, $75afe627ae0cc0fa$export$43506d75ebd2e218);
|
|
@@ -1,21 +1,21 @@
|
|
|
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 $bc25b811ec97a172$export$40258cc1d95ff477, t as $75afe627ae0cc0fa$export$d2b052e7b4be1756 } from "./ToggleButton-
|
|
4
|
+
import { n as $bc25b811ec97a172$export$40258cc1d95ff477, t as $75afe627ae0cc0fa$export$d2b052e7b4be1756 } from "./ToggleButton-D8BT67FO.js";
|
|
5
5
|
import { t as Typography } from "./Typography-DCLnPa3P.js";
|
|
6
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
6
|
+
import { t as UIConfig } from "./uiConfig.context-NWmBJ2Hc.js";
|
|
7
7
|
import { n as FieldController } from "./form.binding-Brdjq2yr.js";
|
|
8
8
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
|
|
9
9
|
import { t as useFieldAccessibility } from "./useFieldAccessibility-eZIMECmG.js";
|
|
10
|
-
import { t as FormField } from "./FormField-
|
|
11
|
-
import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-
|
|
10
|
+
import { t as FormField } from "./FormField-DOZ7eXjA.js";
|
|
11
|
+
import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-C1-Mt2i0.js";
|
|
12
12
|
import { n as toggleGroupItemDefinition, t as toggleGroupDefinition } from "./toggleGroup.cva-CvNS5QO1.js";
|
|
13
13
|
import { c } from "react/compiler-runtime";
|
|
14
14
|
import { Fragment, useLayoutEffect, useMemo, useRef } from "react";
|
|
15
15
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
16
|
import { useToggleButtonGroup } from "react-aria";
|
|
17
17
|
import { useLabel } from "@react-aria/label";
|
|
18
|
-
//#region ../../node_modules/.bun/react-stately@3.51.0+
|
|
18
|
+
//#region ../../node_modules/.bun/react-stately@3.51.0+62547eec5a2188e3/node_modules/react-stately/dist/private/toggle/useToggleGroupState.mjs
|
|
19
19
|
function $3d8ad31c4c1725e9$export$8deac67f4addf270(props) {
|
|
20
20
|
let { selectionMode = "single", disallowEmptySelection, isDisabled = false } = props;
|
|
21
21
|
let [selectedKeys, setSelectedKeys] = $3e6197669829fe11$export$40bfa8c7b0832715(useMemo(() => props.selectedKeys ? new Set(props.selectedKeys) : void 0, [props.selectedKeys]), useMemo(() => props.defaultSelectedKeys ? new Set(props.defaultSelectedKeys) : /* @__PURE__ */ new Set(), [props.defaultSelectedKeys]), props.onSelectionChange);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { O as ToggleGroupItemVariantProps, k as ToggleGroupVariantProps } from "./link.cva-
|
|
1
|
+
import { O as ToggleGroupItemVariantProps, k as ToggleGroupVariantProps } from "./link.cva-ZhpQz3P0.js";
|
|
2
2
|
import { n as Removed, t as Hint } from "./hints-B09_WDhL.js";
|
|
3
|
-
import { r as FormFieldProps } from "./FormField-
|
|
3
|
+
import { r as FormFieldProps } from "./FormField-BgiWLGjf.js";
|
|
4
4
|
import { i as FieldValues } from "./form.binding-DSXB2AOD.js";
|
|
5
5
|
import { t as FormControlProps } from "./form.types-a2WVJDQX.js";
|
|
6
6
|
import { FC, FocusEventHandler, ReactElement, Ref, SVGProps } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
2
|
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
-
import { n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a } from "./utils-
|
|
4
|
-
import { n as $4fcfe18fac72dabd$export$746d02f47f4d381, t as $4fcfe18fac72dabd$export$2de4954e8ae13b9f } from "./OverlayArrow-
|
|
3
|
+
import { 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 { n as $4fcfe18fac72dabd$export$746d02f47f4d381, t as $4fcfe18fac72dabd$export$2de4954e8ae13b9f } from "./OverlayArrow-BptI-A_7.js";
|
|
5
5
|
import { i as tooltipTextDefinition, n as tooltipPointerHorizontalDefinition, r as tooltipPointerVerticalDefinition, t as tooltipDefinition } from "./tooltip.cva-BEyxvcG2.js";
|
|
6
6
|
import { t as Typography } from "./Typography-DCLnPa3P.js";
|
|
7
7
|
import { c } from "react/compiler-runtime";
|
|
@@ -17,7 +17,7 @@ import { useOverlayPosition } from "react-aria/useOverlayPosition";
|
|
|
17
17
|
import { OverlayContainer } from "react-aria/private/overlays/useModal";
|
|
18
18
|
import { useTooltip, useTooltipTrigger } from "react-aria/useTooltipTrigger";
|
|
19
19
|
import { useFocusable } from "react-aria";
|
|
20
|
-
//#region ../../node_modules/.bun/react-aria-components@1.22.1+
|
|
20
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+6f4b9a1cfb20c0ae/node_modules/react-aria-components/dist/private/Tooltip.mjs
|
|
21
21
|
const $05a50f7d78b03ad9$export$7a7623236eec67fa = /*#__PURE__*/ createContext(null);
|
|
22
22
|
const $05a50f7d78b03ad9$export$39ae08fa83328b12 = /*#__PURE__*/ createContext(null);
|
|
23
23
|
function $05a50f7d78b03ad9$export$8c610744efcf8a1d(props) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as TooltipVariantProps } from "./link.cva-
|
|
1
|
+
import { M as TooltipVariantProps } from "./link.cva-ZhpQz3P0.js";
|
|
2
2
|
import { n as Removed } from "./hints-B09_WDhL.js";
|
|
3
3
|
import { PropsWithChildren, ReactNode } from "react";
|
|
4
4
|
import { TooltipProps } from "react-aria-components";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
2
|
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
-
import "./i18n-
|
|
4
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
3
|
+
import "./i18n-DaIHnR2n.js";
|
|
4
|
+
import { t as UIConfig } from "./uiConfig.context-NWmBJ2Hc.js";
|
|
5
5
|
import { n as inputClearClassDefinition } from "./input.cva-mm1dnfKP.js";
|
|
6
6
|
import { t as tooltipWrapperTriggerDefinition } from "./tooltipWrapper.cva-t4NQ9zz9.js";
|
|
7
7
|
import { Suspense, lazy } from "react";
|
|
@@ -47,7 +47,7 @@ const InputClearButton = ({ onClear, className, style }) => {
|
|
|
47
47
|
};
|
|
48
48
|
//#endregion
|
|
49
49
|
//#region src/components/inputs/shared/TooltipWrapper.tsx
|
|
50
|
-
const InlineTooltipWrapper = lazy(() => import("./InlineTooltipWrapper-
|
|
50
|
+
const InlineTooltipWrapper = lazy(() => import("./InlineTooltipWrapper-CcdpMJa6.js"));
|
|
51
51
|
const InlineTooltipFallback = ({ children, triggerClassName }) => {
|
|
52
52
|
const triggerCva = UIOverrides.useCva("tooltipWrapper.triggerCva", tooltipWrapperTriggerDefinition);
|
|
53
53
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -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 { HTMLAttributes, Ref } from "react";
|
|
4
4
|
//#region src/components/text/Typography/Typography.d.ts
|