@povio/ui 6.0.0-rc.12 → 6.0.0-rc.13
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 +469 -42
- package/dist/{Accordion-Cup5eRZz.d.ts → Accordion-CR9oomZY.d.ts} +29 -17
- package/dist/{Accordion-ORBin0EZ.js → Accordion-gUW7u1Zn.js} +41 -41
- package/dist/Alert-DwnALnFY.d.ts +36 -0
- package/dist/AlertDialog-BcRiqY_n.d.ts +70 -0
- package/dist/Autocomplete-CV4Aa1Ok.js +319 -0
- package/dist/Autocomplete-DRwQxx0U.d.ts +123 -0
- package/dist/Badge-CO-ZsmbR.d.ts +67 -0
- package/dist/{BottomSheet-CGipksM_.js → BottomSheet-APVu5TUd.js} +8 -8
- package/dist/BottomSheet-Be0HtQzP.d.ts +65 -0
- package/dist/{BottomSheet.lazy-CuJMUeJP.d.ts → BottomSheet.lazy-NNB7ivkW.d.ts} +1 -1
- package/dist/{Breadcrumbs-CcB0oOF8.d.ts → Breadcrumbs-Bn3fqVYx.d.ts} +6 -3
- package/dist/{Breadcrumbs-a1-q_he0.js → Breadcrumbs-Cd75RPbS.js} +33 -17
- package/dist/{Button-C1YB5dOw.js → Button-BJJkLVNj.js} +1 -5
- package/dist/{Button-BaODzvZd.js → Button-CzEs3tcV.js} +1 -1
- package/dist/{Button-0SswSdDg.d.ts → Button-Hk8zm9q_.d.ts} +2 -2
- package/dist/ButtonBase-Cp1w00t2.d.ts +47 -0
- package/dist/{ButtonBase-s-VV7oCa.js → ButtonBase-aGz6DYum.js} +10 -18
- package/dist/{ButtonContent-Dztbuz3q.js → ButtonContent-2KsbdWRO.js} +5 -5
- package/dist/{Calendar-yaQubCWK.js → Calendar-DN-i_b-_.js} +19 -17
- package/dist/{Calendar.lazy-DcVss9Bk.js → Calendar.lazy-CqmyDSND.js} +4 -4
- package/dist/{Checkbox-Bjsbx-wK.js → Checkbox-CzKXZw_w.js} +35 -9
- package/dist/Checkbox-D32MOIhF.d.ts +49 -0
- package/dist/CheckboxCheckmark-DDU_Ie7-.js +42 -0
- package/dist/CheckboxGroup-B5Mn1G3u.d.ts +52 -0
- package/dist/{CheckboxGroup-B3O3IUiu.js → CheckboxGroup-BqWt09kZ.js} +75 -35
- package/dist/DatePicker-CmoVbapu.d.ts +80 -0
- package/dist/{DatePicker-bme8zGBo.js → DatePicker-DQewd1By.js} +80 -41
- package/dist/{DatePickerInput-vLlL5ATh.d.ts → DatePickerInput-B9VnExeA.d.ts} +3 -3
- package/dist/{DatePickerInput-C2881tvS.js → DatePickerInput-Bp9ZIN5E.js} +37 -26
- package/dist/{DateRangePicker-Blg158JD.js → DateRangePicker-DRZ1hLlR.js} +86 -158
- package/dist/DateRangePicker-LX1VJlnD.d.ts +102 -0
- package/dist/DateTimePicker-D9pODhAj.d.ts +83 -0
- package/dist/{DateTimePicker-CdRFt8WM.js → DateTimePicker-DWtKPaE6.js} +70 -35
- package/dist/{Dialog-C9H9_BmK.js → Dialog-BJ13KRQo.js} +1 -1
- package/dist/{Dialog-DN5703sy.js → Dialog-BzQYDPJ9.js} +23 -19
- package/dist/Dialog-D0SeePPz.d.ts +66 -0
- package/dist/{Disclosure-BRSkMbZQ.js → Disclosure-Bjm5IOpg.js} +1 -1
- package/dist/Drawer-o018RqIt.d.ts +42 -0
- package/dist/DropdownMenu-DTr7b-XO.d.ts +51 -0
- package/dist/{DropdownMenu-DS0RaEfH.js → DropdownMenu-DrshB60h.js} +33 -21
- package/dist/{DropdownMenuDesktop-DGPIfex-.js → DropdownMenuDesktop-DxGA0yvx.js} +14 -8
- package/dist/FileInput-Bokcp9nH.d.ts +61 -0
- package/dist/{FileInput-BUwtAF2-.js → FileInput-LMhFxlqB.js} +75 -80
- package/dist/FileUpload-BqXd4_nz.d.ts +181 -0
- package/dist/FileUpload-CJZrkr_U.js +679 -0
- package/dist/{FormField-dduTMkNH.js → FormField-TI8Vx5aC.js} +10 -10
- package/dist/FormField-XQbjfGSv.d.ts +70 -0
- package/dist/{FormFieldError-BT4uxbKY.d.ts → FormFieldError-C7yOdjzQ.d.ts} +1 -0
- package/dist/FormFieldHeaderTooltip-DB7KrrcD.js +22 -0
- package/dist/HiddenFormValue-DZ2d9eoA.js +20 -0
- package/dist/IconButton-CQLHX8-Y.d.ts +24 -0
- package/dist/{IconSlot-CqNuZl0E.js → IconSlot-TAWTJ6iK.js} +2 -4
- package/dist/{InlineTooltipWrapper-CKTiFpZn.js → InlineTooltipWrapper-CjDUsi2I.js} +1 -1
- package/dist/{Input-CG5LQ0zs.js → Input-CeRJeAoR.js} +94 -59
- package/dist/Input-onUj0DKg.d.ts +56 -0
- package/dist/{InputContent-Fx2E4UXl.js → InputContent-B8OCdbVP.js} +15 -13
- package/dist/InputContent-D5ZkB9hO.d.ts +39 -0
- package/dist/Link-BdnWVYL9.d.ts +15 -0
- package/dist/{ListBox-DhR5kojP.js → ListBox-gR4iSV7N.js} +3 -3
- package/dist/{Modal-DcLWF9cB.js → Modal-DAMsCwzb.js} +1 -1
- package/dist/{NumberField-DxuikBcr.js → NumberField-6Q9LHGSo.js} +91 -62
- package/dist/NumberField-Sb30Qao3.d.ts +41 -0
- package/dist/{NumberRangeInput-8bOjNEnS.js → NumberRangeInput-BDSkcHVJ.js} +152 -101
- package/dist/NumberRangeInput-Dvq8mOUY.d.ts +89 -0
- package/dist/{PageHeader-DTfzf-dA.d.ts → PageHeader-eJk6GNK6.d.ts} +6 -5
- package/dist/{PasswordInput.bound-Dfq5c3JQ.js → PasswordInput-BcHpV0Ie.js} +6 -6
- package/dist/PasswordInput-VHzP4VPU.d.ts +16 -0
- package/dist/Popover-qplPGDnR.d.ts +51 -0
- package/dist/Progress-DH-w99MU.d.ts +26 -0
- package/dist/Progress-WzWvbvtp.js +180 -0
- package/dist/ProgressBar-BsSimmJF.js +46 -0
- package/dist/RadioGroup-CC8bKtBN.d.ts +52 -0
- package/dist/{RadioGroup-IL4Y8XHO.js → RadioGroup-PKqFHoKP.js} +66 -26
- package/dist/{RangeCalendar-DT63UD8K.js → RangeCalendar-DqCTlIuy.js} +12 -10
- package/dist/Select-CSyfDyxG.d.ts +248 -0
- package/dist/{Select-BM8PNrjC.js → Select-D3fuXwVt.js} +435 -184
- package/dist/{SelectListBox-BFSZxDSi.js → SelectListBox-DqAxkT1f.js} +46 -37
- package/dist/{SidebarWorkspaces-DJknAfS9.js → SidebarWorkspaces-BGl_PIsH.js} +280 -363
- package/dist/{SidebarWorkspaces-DDHJAdNH.d.ts → SidebarWorkspaces-CdtK2M-C.d.ts} +31 -17
- package/dist/{Slider-DCsCCPFx.js → Slider-BCUiALjE.js} +69 -12
- package/dist/Slider-DxalZD3o.d.ts +57 -0
- package/dist/Spinner-BTrEbNFy.d.ts +13 -0
- package/dist/SplitButton-Dv5l8p5t.d.ts +25 -0
- package/dist/Stepper-B1IOUcSI.d.ts +49 -0
- package/dist/{Stepper-Dyhxp0Tl.js → Stepper-DA2G546I.js} +116 -88
- package/dist/{Switch-BfpSMMpv.js → Switch-Ce-bJOVw.js} +54 -12
- package/dist/Switch-urNrop0P.d.ts +42 -0
- package/dist/{TabsFilters-DybNturW.js → TabsFilters-Cweij8He.js} +44 -33
- package/dist/TabsFilters-M5Ld7eb8.d.ts +59 -0
- package/dist/Tag-BKR1AZFa.d.ts +26 -0
- package/dist/TextArea-D7YVclaz.d.ts +33 -0
- package/dist/{TextArea-Blsip3ZC.js → TextArea-P8F0oD_A.js} +59 -32
- package/dist/TimePicker-Ai1M2TGW.d.ts +63 -0
- package/dist/{TimePicker-4hV5zbgd.js → TimePicker-l4Ysk2AX.js} +99 -50
- package/dist/{TimePickerForm-DD9VA_td.js → TimePickerForm-BMqNpDPT.js} +5 -5
- package/dist/{ToastContainer-Dd0LPykL.js → ToastContainer-BeklfvlK.js} +4 -4
- package/dist/{ToggleButton-HUZ8ij6i.d.ts → ToggleButton-DWw53pTt.d.ts} +2 -2
- package/dist/ToggleGroup-BQk3k0at.d.ts +95 -0
- package/dist/ToggleGroup-BdIgqoqA.js +500 -0
- package/dist/{Tooltip-DRB6lo0U.js → Tooltip-BkXPEBqw.js} +2 -2
- package/dist/Tooltip-H8OB7CqY.d.ts +33 -0
- package/dist/TooltipEllipsis-7QF00kXk.d.ts +21 -0
- package/dist/{TooltipWrapper-BSY31JMc.js → TooltipWrapper-ubbBHHVD.js} +6 -6
- package/dist/{Typography-DJojwiXV.d.ts → Typography-Cx1oRGxd.d.ts} +5 -1
- package/dist/{badgeButton.cva-t5PQOH4M.js → badge.cva-BpoxNggB.js} +20 -22
- package/dist/{button.cva-Ciga0rdG.js → button.cva-C2aoXMh-.js} +10 -16
- package/dist/{buttonContent.cva-BapnODby.d.ts → buttonContent.cva-Dyy_RUZU.d.ts} +1 -1
- package/dist/{checkbox.cva-aLJS7v4z.js → checkbox.cva-qU_q0lSX.js} +14 -14
- package/dist/components/accordion.d.ts +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/alert-dialog.d.ts +2 -2
- package/dist/components/alert-dialog.js +174 -128
- package/dist/components/alert.d.ts +1 -1
- package/dist/components/alert.js +17 -15
- package/dist/components/autocomplete.d.ts +2 -2
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/badge.d.ts +2 -2
- package/dist/components/badge.js +159 -81
- package/dist/components/bottom-sheet-header.d.ts +1 -1
- package/dist/components/bottom-sheet-header.js +4 -4
- 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 +2 -2
- package/dist/components/checkbox-group.js +1 -1
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/checkbox.js +1 -1
- package/dist/components/date-picker.d.ts +2 -2
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker.d.ts +4 -41
- package/dist/components/date-range-picker.js +4 -2
- package/dist/components/date-range-presets.d.ts +2 -0
- package/dist/components/date-range-presets.js +3 -0
- package/dist/components/date-time-picker.d.ts +2 -2
- 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.d.ts +1 -1
- package/dist/components/drawer.js +16 -80
- package/dist/components/dropdown-menu.d.ts +2 -3
- package/dist/components/dropdown-menu.js +2 -3
- package/dist/components/file-input.d.ts +2 -2
- package/dist/components/file-input.js +1 -1
- package/dist/components/file-upload.d.ts +2 -3
- package/dist/components/file-upload.js +1 -1
- package/dist/components/form-field.d.ts +3 -2
- package/dist/components/form-field.js +1 -1
- package/dist/components/icon-button.d.ts +1 -1
- package/dist/components/icon-button.js +22 -25
- package/dist/components/icon-slot.d.ts +1 -2
- package/dist/components/icon-slot.js +2 -2
- package/dist/components/input-frame.d.ts +6 -10
- package/dist/components/input-frame.js +29 -26
- package/dist/components/input.d.ts +2 -2
- package/dist/components/input.js +2 -2
- package/dist/components/link.d.ts +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/number-field.d.ts +2 -2
- package/dist/components/number-field.js +2 -2
- package/dist/components/number-range-input.d.ts +2 -2
- package/dist/components/number-range-input.js +1 -1
- package/dist/components/page-header.d.ts +1 -1
- package/dist/components/page-header.js +5 -5
- package/dist/components/password-input.d.ts +2 -2
- package/dist/components/password-input.js +1 -22
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.js +105 -87
- package/dist/components/progress.d.ts +2 -2
- package/dist/components/progress.js +1 -1
- package/dist/components/radio-group.d.ts +2 -2
- package/dist/components/radio-group.js +1 -1
- package/dist/components/select.d.ts +2 -2
- 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 +2 -2
- package/dist/components/slider.js +1 -1
- package/dist/components/spinner.d.ts +1 -1
- package/dist/components/spinner.js +71 -1
- package/dist/components/split-button.d.ts +1 -1
- package/dist/components/split-button.js +15 -4
- 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 +33 -18
- package/dist/components/switch.d.ts +2 -2
- 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 +50 -64
- package/dist/components/text-area.d.ts +2 -2
- package/dist/components/text-area.js +1 -1
- package/dist/components/time-picker.d.ts +2 -2
- package/dist/components/time-picker.js +1 -1
- package/dist/components/toast.d.ts +3 -3
- package/dist/components/toast.js +4 -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 +2 -2
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/tooltip-ellipsis.d.ts +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 +2 -2
- package/dist/components/use-toast.js +1 -41
- package/dist/config/component-configuration.d.ts +1 -1
- package/dist/config/component-configuration.js +53 -2
- package/dist/config/confirmation.d.ts +1 -1
- package/dist/config/confirmation.js +1 -1
- package/dist/config/link-context.d.ts +3 -3
- package/dist/config/link-context.js +1 -1
- 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-router.d.ts +1 -1
- package/dist/config/ui-router.js +1 -1
- package/dist/confirmation.context-BflM4Vxg.js +93 -0
- package/dist/confirmation.context-C_js9qNv.d.ts +32 -0
- package/dist/{datePickerInput.cva-Du0Zn04v.js → datePickerInput.cva-CWkV2fut.js} +1 -1
- package/dist/dateRangePreset.utils-Bnb-rjTt.js +116 -0
- package/dist/{dialog.cva-BIpz6HcA.js → dialog.cva-BjVggO5l.js} +1 -1
- package/dist/{dist-DEZzXa0W.js → dist-DZOoWaZz.js} +63 -38
- package/dist/{dropdownMenu.cva-DwSOcbmR.js → dropdownMenu.cva-BopsvbOy.js} +19 -7
- package/dist/{exports-BNrTn8Tj.js → exports-DeBGRThC.js} +3 -3
- package/dist/{file.utils-Crb-mIHs.d.ts → file.utils-DUADtzdt.d.ts} +3 -3
- package/dist/{file.utils-DqQxnuAm.js → file.utils-X6tkeWaz.js} +2 -6
- package/dist/fileInputButton.cva-gbqRUf1g.js +39 -0
- package/dist/{fileUpload.cva-BYzXGc9C.js → fileUpload.cva-MH5ziWUe.js} +2 -2
- package/dist/form-field-Bw7U_ZPI.d.ts +1 -0
- package/dist/form.binding-Brdjq2yr.js +161 -0
- package/dist/form.binding-DSXB2AOD.d.ts +127 -0
- package/dist/form.types-a2WVJDQX.d.ts +43 -0
- package/dist/formReset-CnZl_yze.js +35 -0
- package/dist/hints-B09_WDhL.d.ts +17 -0
- package/dist/hooks/use-async-list.d.ts +1 -1
- package/dist/hooks/use-async-list.js +1 -1
- package/dist/hooks/use-breakpoint.d.ts +3 -0
- package/dist/hooks/use-breakpoint.js +2 -0
- package/dist/hooks/use-filters.d.ts +2 -2
- package/dist/hooks/use-filters.js +1 -1
- package/dist/{i18n-DM-PUcxQ.d.ts → i18n-B3PeqBM7.d.ts} +100 -4
- package/dist/{i18n-D8vXIoiq.js → i18n-DQs7jPjv.js} +99 -9
- package/dist/iconSlot.cva-DyhOI7EK.js +5 -0
- package/dist/{import-C7W0Wv2r.js → import-C73fI3WD.js} +2 -2
- package/dist/index.d.ts +64 -83
- package/dist/index.js +55 -90
- package/dist/{input.cva-DZii82eS.js → input.cva-mm1dnfKP.js} +27 -23
- package/dist/inputLayout-CIVpuUBq.js +7 -0
- package/dist/inputRow.clsx-BbcaXVta.js +6 -0
- package/dist/{label.cva-DTfT6FrX.js → label.cva-DJ5Dmbz5.js} +7 -7
- package/dist/link.context-BcBuP9ZT.d.ts +20 -0
- package/dist/{link.context-TPjDtjw3.js → link.context-CD5h_b5O.js} +12 -11
- package/dist/link.cva-D6L1c2wq.d.ts +2157 -0
- package/dist/{logger-CqZjM-sn.js → logger-CW24po62.js} +10 -1
- package/dist/{progress.cva-CsGaGVJ-.js → progress.cva-mkJxrrac.js} +2 -2
- package/dist/{radio.cva-DistaZtZ.js → radio.cva-Dt5N2ul2.js} +7 -7
- package/dist/rich-text-editor.d.ts +44 -2
- package/dist/rich-text-editor.js +733 -1
- package/dist/router.context-B6j_M4cN.js +151 -0
- package/dist/router.context-CSd9JYQ4.d.ts +33 -0
- package/dist/{selectDesktop.cva-DStkOdwm.js → selectDesktop.cva-30JAvtgB.js} +1 -1
- package/dist/sidebar.cva-BgxTCejU.js +150 -0
- package/dist/spinner.cva-j4kGmIWC.js +17 -0
- package/dist/{staticDateTimeSegments-CVuAhDDl.js → staticDateTimeSegments-BYk1tcxs.js} +43 -13
- package/dist/{status.cva-CYgi3Htz.js → status.cva-WLEqUAjH.js} +9 -9
- package/dist/styles/input.d.ts +1 -1
- package/dist/tanstack/form.d.ts +3 -3
- package/dist/tanstack/form.js +3 -3
- package/dist/tanstack/table.d.ts +5 -3
- package/dist/tanstack/table.js +1 -1
- package/dist/tanstack-ABeiJISz.js +10 -0
- package/dist/tanstack-bLXoUPDY.d.ts +165 -0
- package/dist/tanstack.d.ts +64 -83
- package/dist/tanstack.js +55 -90
- package/dist/{toast.cva-B6NXTwbZ.js → toast.cva-C3oA7He3.js} +8 -8
- package/dist/toast.runtime-BHXdSTXV.js +25 -0
- package/dist/{toggleGroup.cva-CJ-3Ps7j.js → toggleGroup.cva-CvNS5QO1.js} +2 -2
- package/dist/uiConfig.context-CN_QgxGO.d.ts +19 -0
- package/dist/{uiConfig.context-3DN9w6oU.js → uiConfig.context-CjnLnQOo.js} +5 -7
- package/dist/{uiConfig.context-BnCORTNm.d.ts → uiConfig.types-B0sPL7nN.d.ts} +34 -34
- package/dist/{useAsyncList-Ct74ve3i.js → useAsyncList-CQgkDfjW.js} +140 -35
- package/dist/useAsyncList-F-328rtE.d.ts +25 -0
- package/dist/useAutoFocus-K-bfNxa2.js +16 -0
- package/dist/{useBreakpoint-CJ3mx7UF.js → useBreakpoint-BrJrvp9_.js} +5 -1
- package/dist/useBreakpoint-D-SVcBeQ.d.ts +9 -0
- package/dist/useDebounceCallback-BjePw6y4.js +90 -0
- package/dist/useFilters-CybBXUAA.js +217 -0
- package/dist/useFilters-DrfBFNLw.d.ts +57 -0
- package/dist/useFormAutosave-BN-zueci.js +419 -0
- package/dist/{useFormAutosave-BBLm3Ujo.d.ts → useFormAutosave-ClMnzVE7.d.ts} +1 -1
- package/dist/{useIntersectionObserver-DFAhTsV0.js → useIntersectionObserver-B8msnQTR.js} +15 -3
- package/dist/{numberStatic.utils-BIyZuILs.js → useLiveNumberFieldState-B7qGzySj.js} +103 -2
- package/dist/useRemoveButton-B6-IGvpY.js +98 -0
- package/dist/useResolveDateRangePreset-C_L-doA6.js +26 -0
- package/dist/useResolveDateRangePreset-DOSzJR-N.d.ts +64 -0
- package/dist/{useScrollableListBox-oYKqU3Hp.js → useScrollableListBox-C8chM7c-.js} +1 -1
- package/dist/{useStaticInputHandoff-BN0fOerH.js → useStaticInputHandoff-DrNFrvD7.js} +6 -1
- package/dist/{useTableColumnConfig-CXYgj5xi.js → useTableColumnConfig-B9cYBKo3.js} +956 -535
- package/dist/useTableNav-rP1wDkhV.d.ts +372 -0
- package/dist/useToast-D2C9pROU.d.ts +78 -0
- package/dist/useToast-DSoOiSw0.js +63 -0
- package/dist/utils/file.d.ts +1 -1
- package/dist/utils/file.js +1 -1
- package/dist/utils/logger.js +1 -1
- package/llms.txt +3116 -0
- package/package.json +13 -121
- package/MIGRATION.md +0 -655
- package/dist/Alert-D4X7OWiv.d.ts +0 -34
- package/dist/AlertDialog-DklLDjmw.d.ts +0 -26
- package/dist/Autocomplete-BgFz3kuR.d.ts +0 -23
- package/dist/Autocomplete-Bn13u0zu.js +0 -145
- package/dist/Autocomplete.bound-CpHZZ3C9.d.ts +0 -9
- package/dist/Autocomplete.bound-Dwh__y-Z.js +0 -28
- package/dist/Badge-Db1ndK67.d.ts +0 -30
- package/dist/BadgeButton-BPhWDAnc.d.ts +0 -15
- package/dist/BottomSheet-BZmDJBR-.d.ts +0 -33
- package/dist/ButtonBase-CZuEy3Pk.d.ts +0 -32
- package/dist/Checkbox-w2j5hLOQ.d.ts +0 -27
- package/dist/Checkbox.bound-D2nBglJz.js +0 -33
- package/dist/Checkbox.bound-DD_RCjVm.d.ts +0 -9
- package/dist/CheckboxCheckmark-DWsYVZuu.js +0 -25
- package/dist/CheckboxGroup-BYI15Y09.d.ts +0 -30
- package/dist/CheckboxGroup.bound-DY0HKGSh.js +0 -32
- package/dist/CheckboxGroup.bound-QiJ-P0KR.d.ts +0 -9
- package/dist/ComboBox-ChsdI0lt.js +0 -212
- package/dist/DatePicker-QzfQf21b.d.ts +0 -56
- package/dist/DatePicker.bound-DoCAqhM4.d.ts +0 -9
- package/dist/DatePicker.bound-M2cjR37s.js +0 -36
- package/dist/DateRangePicker-32D4pWJg.d.ts +0 -97
- package/dist/DateRangePicker.bound-CVtoVsho.d.ts +0 -9
- package/dist/DateRangePicker.bound-CkIDsAUf.js +0 -35
- package/dist/DateTimePicker-BTRIUagV.d.ts +0 -55
- package/dist/DateTimePicker.bound-X4DTyQ1b.d.ts +0 -9
- package/dist/DateTimePicker.bound-nSCVUqd0.js +0 -32
- package/dist/Dialog-CO9xljD3.d.ts +0 -21
- package/dist/Drawer-D1cHiBFO.d.ts +0 -18
- package/dist/DropdownMenu-D_9z9ond.d.ts +0 -25
- package/dist/FileInput-BEaECoBS.d.ts +0 -75
- package/dist/FileInput.bound-C12mOKpg.js +0 -30
- package/dist/FileInput.bound-D2HuuqSb.d.ts +0 -8
- package/dist/FileUpload-BUTSqHVk.d.ts +0 -11
- package/dist/FileUpload-D7FMYm-k.js +0 -749
- package/dist/FileUpload.bound-CGQXb4iT.d.ts +0 -16
- package/dist/FileUpload.bound-DmkuulOi.js +0 -30
- package/dist/FileUploadContainer-Dzg5aXXZ.d.ts +0 -5
- package/dist/FormField-DGyCDxOp.d.ts +0 -42
- package/dist/FormFieldHeaderTooltip-Dt-g40Tc.js +0 -17
- package/dist/IconButton-shH_9wcl.d.ts +0 -25
- package/dist/Input-CTp_9mS9.d.ts +0 -34
- package/dist/Input.bound-B9a62ylL.d.ts +0 -9
- package/dist/Input.bound-DYoXyRGy.js +0 -31
- package/dist/InputContent-BCNkN4Fx.d.ts +0 -27
- package/dist/Link-PvYB_M-j.d.ts +0 -30
- package/dist/MenuItem-U3-pu1j5.d.ts +0 -6
- package/dist/NumberField-WXebfxjK.d.ts +0 -34
- package/dist/NumberField.bound-ChJnNyJS.js +0 -32
- package/dist/NumberField.bound-Dy0A5iVc.d.ts +0 -9
- package/dist/NumberRangeInput-BCKQaGpy.d.ts +0 -50
- package/dist/NumberRangeInput.bound-BF6P_ega.js +0 -32
- package/dist/NumberRangeInput.bound-BNXxIQ0b.d.ts +0 -9
- package/dist/PasswordInput-EhQjYyJS.d.ts +0 -11
- package/dist/PasswordInput.bound-CK5GwKL4.d.ts +0 -9
- package/dist/Popover-D_t1XDPA.d.ts +0 -20
- package/dist/Progress-Ckfpi_-M.d.ts +0 -45
- package/dist/Progress-RiEGGxNG.js +0 -119
- package/dist/RadioGroup-6e-Z6jW8.d.ts +0 -26
- package/dist/RadioGroup.bound-BFWSq-on.js +0 -32
- package/dist/RadioGroup.bound-w3SZqSkH.d.ts +0 -9
- package/dist/RichTextEditor-DHhuBeT6.d.ts +0 -28
- package/dist/RichTextEditor-DfwVdm45.js +0 -651
- package/dist/Select-C34ENdjq.d.ts +0 -119
- package/dist/Select.bound--Az1Xwgm.js +0 -34
- package/dist/Select.bound-qOihchei.d.ts +0 -17
- package/dist/Slider-DRg8zKRM.d.ts +0 -23
- package/dist/Slider.bound-CByTXPTr.js +0 -31
- package/dist/Slider.bound-CaEF19um.d.ts +0 -9
- package/dist/Spinner-Cvy_6zgD.d.ts +0 -30
- package/dist/Spinner-DqjP06T1.js +0 -101
- package/dist/SplitButton-V1f2NWfh.d.ts +0 -15
- package/dist/Stepper-k91x_m-E.d.ts +0 -114
- package/dist/Switch-ELVPkPx0.d.ts +0 -24
- package/dist/Switch.bound-DeEdVvZV.d.ts +0 -9
- package/dist/Switch.bound-Dv0cHsMM.js +0 -33
- package/dist/TableDnd-CuHxANWh.js +0 -133
- package/dist/TableRowDetails-D8HFTghI.d.ts +0 -109
- package/dist/TabsFilters-DePddjCk.d.ts +0 -30
- package/dist/Tag-B2_ZiSE-.d.ts +0 -44
- package/dist/TextArea-iqUeB2QY.d.ts +0 -26
- package/dist/TextArea.bound-BJHyCogp.d.ts +0 -9
- package/dist/TextArea.bound-DeaskY6r.js +0 -28
- package/dist/TimePicker-BZ1ocsBX.d.ts +0 -45
- package/dist/TimePicker.bound-8DmjMXuE.d.ts +0 -9
- package/dist/TimePicker.bound-BFSXJvE_.js +0 -32
- package/dist/Toast-D9pdadZ4.d.ts +0 -16
- package/dist/ToggleGroup-CrDoeLN0.js +0 -333
- package/dist/ToggleGroup-DvjnSinl.d.ts +0 -42
- package/dist/ToggleGroup.bound-B03ISHQ8.d.ts +0 -9
- package/dist/ToggleGroup.bound-DCnYwmBt.js +0 -67
- package/dist/Tooltip-B8DTURLQ.d.ts +0 -16
- package/dist/TooltipEllipsis-Di9Dvd4x.d.ts +0 -11
- package/dist/badgeButton.cva-CBFIhr1S.d.ts +0 -41
- package/dist/button.cva-C8LGtNJ3.d.ts +0 -94
- package/dist/checkbox.cva-CCh_UlrC.d.ts +0 -76
- package/dist/components/badge-button.d.ts +0 -2
- package/dist/components/badge-button.js +0 -74
- package/dist/components/file-upload-container.d.ts +0 -3
- package/dist/components/file-upload-container.js +0 -15
- package/dist/confirmation.context-Bc2yEVp_.js +0 -114
- package/dist/confirmation.context-C_GDRn3a.d.ts +0 -23
- package/dist/fileUpload.types-C-ke21yY.d.ts +0 -110
- package/dist/form.binding-DOR5gIQf.js +0 -49
- package/dist/form.types-C8P4sznq.d.ts +0 -22
- package/dist/formFieldHelper.cva-DRmSyRZN.js +0 -14
- package/dist/iconSlot.cva-CLB5Tlsr.d.ts +0 -9
- package/dist/icons.d.ts +0 -4
- package/dist/icons.js +0 -3
- package/dist/input.cva-BjuHsDGy.d.ts +0 -80
- package/dist/inputLayout-KdAtunGk.js +0 -5
- package/dist/link.context-BCHn7NSy.d.ts +0 -12
- package/dist/radio.cva-D7M1hqLe.d.ts +0 -56
- package/dist/router.context-CtafjXV7.d.ts +0 -16
- package/dist/router.context-MckTbHw9.js +0 -63
- package/dist/routing.utils-DfxEt0_Y.js +0 -30
- package/dist/style-definitions-Dx6aFDiR.d.ts +0 -1038
- package/dist/switch.cva-r6vcS25Q.d.ts +0 -16
- package/dist/tanstack/autocomplete.d.ts +0 -3
- package/dist/tanstack/autocomplete.js +0 -2
- package/dist/tanstack/checkbox-group.d.ts +0 -3
- package/dist/tanstack/checkbox-group.js +0 -2
- package/dist/tanstack/checkbox.d.ts +0 -3
- package/dist/tanstack/checkbox.js +0 -2
- package/dist/tanstack/date-picker.d.ts +0 -3
- package/dist/tanstack/date-picker.js +0 -2
- package/dist/tanstack/date-range-picker.d.ts +0 -3
- package/dist/tanstack/date-range-picker.js +0 -2
- package/dist/tanstack/date-time-picker.d.ts +0 -3
- package/dist/tanstack/date-time-picker.js +0 -2
- package/dist/tanstack/file-input.d.ts +0 -3
- package/dist/tanstack/file-input.js +0 -2
- package/dist/tanstack/file-upload.d.ts +0 -4
- package/dist/tanstack/file-upload.js +0 -2
- package/dist/tanstack/input.d.ts +0 -3
- package/dist/tanstack/input.js +0 -2
- package/dist/tanstack/number-field.d.ts +0 -3
- package/dist/tanstack/number-field.js +0 -2
- package/dist/tanstack/number-range-input.d.ts +0 -3
- package/dist/tanstack/number-range-input.js +0 -2
- package/dist/tanstack/password-input.d.ts +0 -2
- package/dist/tanstack/password-input.js +0 -2
- package/dist/tanstack/radio-group.d.ts +0 -3
- package/dist/tanstack/radio-group.js +0 -2
- package/dist/tanstack/rich-text-editor.d.ts +0 -9
- package/dist/tanstack/rich-text-editor.js +0 -28
- package/dist/tanstack/select.d.ts +0 -3
- package/dist/tanstack/select.js +0 -2
- package/dist/tanstack/slider.d.ts +0 -3
- package/dist/tanstack/slider.js +0 -2
- package/dist/tanstack/switch.d.ts +0 -3
- package/dist/tanstack/switch.js +0 -2
- package/dist/tanstack/text-area.d.ts +0 -3
- package/dist/tanstack/text-area.js +0 -2
- package/dist/tanstack/time-picker.d.ts +0 -3
- package/dist/tanstack/time-picker.js +0 -2
- package/dist/tanstack/toggle-group.d.ts +0 -3
- package/dist/tanstack/toggle-group.js +0 -2
- package/dist/tanstack-Bgdv0qU1.js +0 -19
- package/dist/tanstack-wNbE6b-h.d.ts +0 -566
- package/dist/toast.cva-AmLw6Cf5.d.ts +0 -61
- package/dist/toast.runtime-Drd2IJ_j.js +0 -17
- package/dist/toastActivation.store-BELtcr76.js +0 -16
- package/dist/toggleGroup.cva-DA4U21gn.d.ts +0 -26
- package/dist/typography.cva-BCHlTHdM.d.ts +0 -36
- package/dist/useAsyncList-Cu-Y8If2.d.ts +0 -9
- package/dist/useFilters-BxRScJdn.d.ts +0 -11
- package/dist/useFilters-DMi94RZK.js +0 -190
- package/dist/useForm-Cb7KWLds.js +0 -217
- package/dist/useForm-I6z23FXf.d.ts +0 -51
- package/dist/useFormAutosave-BPGlChiY.js +0 -216
- package/dist/useTableNav-BusSFEVC.d.ts +0 -197
- package/dist/useToast-DsA8CVoY.d.ts +0 -16
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { n as LinkNavigationProps } from "./Link-PvYB_M-j.js";
|
|
2
1
|
import { n as IconSlotIcon } from "./IconSlot-DcEDPaNb.js";
|
|
2
|
+
import { n as Removed } from "./hints-B09_WDhL.js";
|
|
3
|
+
import { n as LinkNavigationProps } from "./Link-BdnWVYL9.js";
|
|
4
|
+
import { t as Breakpoint } from "./uiConfig.types-B0sPL7nN.js";
|
|
5
|
+
import "./useBreakpoint-D-SVcBeQ.js";
|
|
3
6
|
import { HTMLAttributes, ReactNode } from "react";
|
|
4
7
|
import { ButtonProps, Key } from "react-aria-components";
|
|
5
|
-
//#region src/hooks/useBreakpoint.d.ts
|
|
6
|
-
type Breakpoint = "sm" | "md" | "lg" | "xl";
|
|
7
|
-
declare function useBreakpoint(breakpointKey: Breakpoint): boolean;
|
|
8
|
-
//#endregion
|
|
9
8
|
//#region src/components/navigation/Sidebar/sidebar.types.d.ts
|
|
10
9
|
interface SidebarProps extends HTMLAttributes<HTMLElement> {
|
|
11
10
|
"aria-label"?: string;
|
|
@@ -26,8 +25,10 @@ interface SidebarItemBaseProps {
|
|
|
26
25
|
/** Renders a router link when `href` (or a router `to`) is set. */
|
|
27
26
|
interface SidebarLinkItemProps extends SidebarItemBaseProps, Omit<LinkNavigationProps, "children" | "className"> {}
|
|
28
27
|
/** Renders a button when no link target is set. */
|
|
29
|
-
interface SidebarButtonItemProps extends SidebarItemBaseProps, Omit<ButtonProps, "children" | "className"> {
|
|
28
|
+
interface SidebarButtonItemProps extends SidebarItemBaseProps, Omit<ButtonProps, "children" | "className" | "isPending"> {
|
|
30
29
|
href?: never;
|
|
30
|
+
/** @deprecated A sidebar item has no pending state. */
|
|
31
|
+
isPending?: Removed<"A sidebar item has no pending state; show progress on the page instead">;
|
|
31
32
|
}
|
|
32
33
|
type SidebarItemProps = SidebarLinkItemProps | SidebarButtonItemProps;
|
|
33
34
|
interface SidebarGroupProps {
|
|
@@ -68,17 +69,30 @@ interface SidebarUserProps {
|
|
|
68
69
|
action?: ReactNode;
|
|
69
70
|
className?: string;
|
|
70
71
|
}
|
|
71
|
-
interface SidebarWorkspaceOption {
|
|
72
|
-
id:
|
|
73
|
-
name
|
|
74
|
-
|
|
72
|
+
interface SidebarWorkspaceOption<TKey extends Key = Key> {
|
|
73
|
+
id: TKey;
|
|
74
|
+
/** The workspace's name, shown in the expanded rail and as the collapsed tile's tooltip */
|
|
75
|
+
label: string;
|
|
76
|
+
/** Logo element; falls back to the first letter of `label` */
|
|
75
77
|
logo?: ReactNode;
|
|
78
|
+
/** @deprecated Use `label`. */
|
|
79
|
+
name?: Removed<"Use `label`, as on every other `items` entry">;
|
|
76
80
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
81
|
+
/** A vertical workspace rail. Render it next to the `Sidebar` in `SidebarLayout`'s `navigation`, not inside it. */
|
|
82
|
+
interface SidebarWorkspacesProps<TKey extends Key = Key> {
|
|
83
|
+
items: readonly SidebarWorkspaceOption<TKey>[];
|
|
84
|
+
/** The selected workspace's `id` (controlled); `null` selects none. */
|
|
85
|
+
value?: NoInfer<TKey> | null;
|
|
86
|
+
/** The initially selected workspace's `id` (uncontrolled). */
|
|
87
|
+
defaultValue?: NoInfer<TKey> | null;
|
|
88
|
+
/** Receives the `id` of the workspace the user picks. */
|
|
89
|
+
onChange?: (value: NoInfer<TKey>) => void;
|
|
90
|
+
/** @deprecated Use `value`. */
|
|
91
|
+
selectedKey?: Removed<"Use `value`, the selected workspace `id`">;
|
|
92
|
+
/** @deprecated Use `defaultValue`. */
|
|
93
|
+
defaultSelectedKey?: Removed<"Use `defaultValue`">;
|
|
94
|
+
/** @deprecated Use `onChange`. */
|
|
95
|
+
onSelectionChange?: Removed<"Use `onChange`; it receives the picked workspace `id`">;
|
|
82
96
|
/** Shows the "add workspace" tile when set */
|
|
83
97
|
onAdd?: () => void;
|
|
84
98
|
addLabel?: string;
|
|
@@ -127,6 +141,6 @@ declare const useSidebarLayout: () => SidebarLayoutContextValue | null;
|
|
|
127
141
|
declare const SidebarLayout: ({ navigation, children, mobileTitle, menuLabel, breakpoint, className }: SidebarLayoutProps) => import("react").JSX.Element;
|
|
128
142
|
//#endregion
|
|
129
143
|
//#region src/components/navigation/Sidebar/SidebarWorkspaces.d.ts
|
|
130
|
-
declare const SidebarWorkspaces: ({ items,
|
|
144
|
+
declare const SidebarWorkspaces: <TKey extends Key = Key>({ items, value, defaultValue, onChange, onAdd, addLabel: addLabelProp, isExpanded: isExpandedProp, defaultExpanded, onExpandedChange, user, "aria-label": ariaLabelProp, className }: SidebarWorkspacesProps<TKey>) => import("react").JSX.Element;
|
|
131
145
|
//#endregion
|
|
132
|
-
export {
|
|
146
|
+
export { SidebarWorkspacesProps as S, SidebarProps as _, SidebarGroup as a, SidebarWorkspaceOption as b, SidebarContent as c, SidebarUser as d, SidebarWorkspace as f, SidebarLayoutProps as g, SidebarItemProps as h, SidebarItem as i, SidebarFooter as l, SidebarGroupProps as m, SidebarLayout as n, Sidebar as o, SidebarAvatarProps as p, useSidebarLayout as r, SidebarAvatar as s, SidebarWorkspaces as t, SidebarHeader as u, SidebarSectionProps as v, SidebarWorkspaceProps as x, SidebarUserProps as y };
|
|
@@ -2,9 +2,12 @@ import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
|
2
2
|
import { 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-BkLF-JA3.js";
|
|
3
3
|
import { t as $43a3b93638fe5db9$export$75b6ee27786ba447 } from "./Label-BGvF9vWx.js";
|
|
4
4
|
import { t as Typography } from "./Typography-DCLnPa3P.js";
|
|
5
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
5
|
+
import { t as UIConfig } from "./uiConfig.context-CjnLnQOo.js";
|
|
6
|
+
import { n as FieldController } from "./form.binding-Brdjq2yr.js";
|
|
7
|
+
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
|
|
8
|
+
import { t as useFieldAccessibility } from "./useFieldAccessibility-eZIMECmG.js";
|
|
9
|
+
import { t as FormField } from "./FormField-TI8Vx5aC.js";
|
|
10
|
+
import $ahdqC$react, { createContext, forwardRef, memo, useContext, useRef } from "react";
|
|
8
11
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
12
|
import { mergeProps } from "react-aria/mergeProps";
|
|
10
13
|
import { filterDOMProps } from "react-aria/filterDOMProps";
|
|
@@ -145,41 +148,60 @@ const $806e559d0c2c64a0$export$2c1b491743890dec = /*#__PURE__*/ forwardRef(funct
|
|
|
145
148
|
});
|
|
146
149
|
//#endregion
|
|
147
150
|
//#region src/components/inputs/Slider/Slider.tsx
|
|
151
|
+
const toAriaValue = (value) => typeof value === "number" ? value : value ? [value.start, value.end] : void 0;
|
|
152
|
+
const fromAriaValue = (value) => typeof value === "number" ? value : {
|
|
153
|
+
start: value[0],
|
|
154
|
+
end: value[1]
|
|
155
|
+
};
|
|
148
156
|
const SliderBase = (props) => {
|
|
149
157
|
const ui = UIConfig.useConfig();
|
|
150
|
-
const { label, tooltipText, helperText, isRequired, rightContent, isDisabled, headerClassName, errorClassName,
|
|
158
|
+
const { label, tooltipText, helperText, isRequired, rightContent, isDisabled, headerClassName, errorClassName, error, unit, hideLabel: hideLabelProp, minValue: minValueProp, maxValue: maxValueProp, isRange, value, defaultValue: defaultValueProp, onChange, onChangeEnd, onBlur, className, ...rest } = props;
|
|
151
159
|
const hideLabel = hideLabelProp ?? ui.input.hideLabel;
|
|
152
160
|
const minValue = minValueProp ?? ui.slider.minValue;
|
|
153
161
|
const maxValue = maxValueProp ?? ui.slider.maxValue;
|
|
162
|
+
const { describedBy, errorMessageId, helperTextId } = useFieldAccessibility({
|
|
163
|
+
describedBy: rest["aria-describedby"],
|
|
164
|
+
error,
|
|
165
|
+
helperText
|
|
166
|
+
});
|
|
154
167
|
const formFieldProps = {
|
|
155
168
|
error,
|
|
169
|
+
errorMessageId,
|
|
156
170
|
label,
|
|
157
171
|
tooltipText,
|
|
158
172
|
helperText,
|
|
173
|
+
helperTextId,
|
|
159
174
|
isRequired,
|
|
160
175
|
rightContent,
|
|
161
|
-
isHeaderHidden,
|
|
162
176
|
hideLabel,
|
|
163
177
|
isDisabled,
|
|
164
178
|
headerClassName,
|
|
165
179
|
errorClassName
|
|
166
180
|
};
|
|
167
|
-
const
|
|
181
|
+
const emptyValue = isRange ? [minValue, minValue] : minValue;
|
|
182
|
+
const defaultValue = toAriaValue(defaultValueProp) ?? emptyValue;
|
|
183
|
+
const controlledValue = value === void 0 ? void 0 : toAriaValue(value) ?? emptyValue;
|
|
184
|
+
const handleChange = (nextValue) => onChange?.(fromAriaValue(nextValue));
|
|
185
|
+
const handleChangeEnd = (nextValue) => onChangeEnd?.(fromAriaValue(nextValue));
|
|
168
186
|
const getTrackFillStyle = (state) => {
|
|
169
187
|
const p0 = state.getThumbPercent(0);
|
|
170
188
|
const p1 = state.getThumbPercent(1);
|
|
171
189
|
return {
|
|
172
|
-
left:
|
|
173
|
-
width:
|
|
190
|
+
left: isRange ? `${p0 * 100}%` : 0,
|
|
191
|
+
width: isRange ? `${(p1 - p0) * 100}%` : `${p0 * 100}%`
|
|
174
192
|
};
|
|
175
193
|
};
|
|
176
194
|
return /* @__PURE__ */ jsx($806e559d0c2c64a0$export$472062a354075cee, {
|
|
177
195
|
...rest,
|
|
196
|
+
"aria-describedby": describedBy,
|
|
197
|
+
value: controlledValue,
|
|
178
198
|
defaultValue,
|
|
199
|
+
onChange: handleChange,
|
|
200
|
+
onChangeEnd: handleChangeEnd,
|
|
179
201
|
minValue,
|
|
180
202
|
maxValue,
|
|
181
203
|
isDisabled,
|
|
182
|
-
className: clsx("group",
|
|
204
|
+
className: clsx("group", className),
|
|
183
205
|
children: /* @__PURE__ */ jsx(FormField, {
|
|
184
206
|
...formFieldProps,
|
|
185
207
|
children: /* @__PURE__ */ jsxs("div", {
|
|
@@ -202,6 +224,9 @@ const SliderBase = (props) => {
|
|
|
202
224
|
index: i,
|
|
203
225
|
className: clsx("absolute top-1/2 block size-4 shrink-0 cursor-pointer rounded-full border border-primary bg-white shadow-sm transition-[color,box-shadow]", "ring-ring/50 outline-none hover:ring-4 focus-visible:ring-4 dragging:ring-4 disabled:pointer-events-none"),
|
|
204
226
|
isDisabled,
|
|
227
|
+
isInvalid: !!error,
|
|
228
|
+
isRequired,
|
|
229
|
+
"aria-errormessage": errorMessageId,
|
|
205
230
|
onBlur: (event) => onBlur?.(event)
|
|
206
231
|
}, i))] })
|
|
207
232
|
}),
|
|
@@ -215,8 +240,40 @@ const SliderBase = (props) => {
|
|
|
215
240
|
})
|
|
216
241
|
});
|
|
217
242
|
};
|
|
218
|
-
|
|
219
|
-
|
|
243
|
+
const ControlledSlider = (props) => {
|
|
244
|
+
const { field, ref, ...innerProps } = props;
|
|
245
|
+
return /* @__PURE__ */ jsx(FieldController, {
|
|
246
|
+
control: field.form,
|
|
247
|
+
name: field.name,
|
|
248
|
+
onValueChange: field.onValueChange,
|
|
249
|
+
onBlur: field.onBlur,
|
|
250
|
+
render: ({ field, fieldState: { error } }) => /* @__PURE__ */ jsx(SliderBase, {
|
|
251
|
+
...innerProps,
|
|
252
|
+
ref: $a8ea2faf2ebe4d2f$re_export$mergeRefs(ref, field.ref),
|
|
253
|
+
value: field.value ?? null,
|
|
254
|
+
onBlur: field.onBlur,
|
|
255
|
+
onChange: field.onChange,
|
|
256
|
+
onChangeEnd: (value) => {
|
|
257
|
+
innerProps.onChangeEnd?.(value);
|
|
258
|
+
field.onValueCommit();
|
|
259
|
+
},
|
|
260
|
+
isDisabled: field.disabled || props.isDisabled,
|
|
261
|
+
error: props.error ?? error?.message
|
|
262
|
+
})
|
|
263
|
+
});
|
|
264
|
+
};
|
|
265
|
+
function SliderComponent(props) {
|
|
266
|
+
return props.field ? /* @__PURE__ */ jsx(ControlledSlider, { ...props }) : /* @__PURE__ */ jsx(SliderBase, { ...props });
|
|
220
267
|
}
|
|
268
|
+
/**
|
|
269
|
+
* Single-value or range slider.
|
|
270
|
+
*
|
|
271
|
+
* @example
|
|
272
|
+
* <Slider label="Volume" minValue={0} maxValue={100} value={volume} onChange={setVolume} />
|
|
273
|
+
* @example
|
|
274
|
+
* // With `isRange` the value is `{ start, end }`.
|
|
275
|
+
* <Slider label="Price" isRange field={{ form, name: "priceRange" }} />
|
|
276
|
+
*/
|
|
277
|
+
const Slider = memo(SliderComponent);
|
|
221
278
|
//#endregion
|
|
222
|
-
export {
|
|
279
|
+
export { Slider as t };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { t as Hint } from "./hints-B09_WDhL.js";
|
|
2
|
+
import { r as FormFieldProps } from "./FormField-XQbjfGSv.js";
|
|
3
|
+
import { i as FieldValues } from "./form.binding-DSXB2AOD.js";
|
|
4
|
+
import { t as FormControlProps } from "./form.types-a2WVJDQX.js";
|
|
5
|
+
import { FocusEvent, ReactElement, Ref } from "react";
|
|
6
|
+
import { SliderProps } from "react-aria-components";
|
|
7
|
+
//#region src/components/inputs/Slider/Slider.d.ts
|
|
8
|
+
/** The two thumbs of a range `Slider`: the same `{ start, end }` shape every range input uses. */
|
|
9
|
+
interface SliderRangeValue {
|
|
10
|
+
start: number;
|
|
11
|
+
end: number;
|
|
12
|
+
}
|
|
13
|
+
/** A `Slider` value: a number, or `{ start, end }` with `isRange`. */
|
|
14
|
+
type SliderValue<IsRange extends boolean = false> = IsRange extends false ? number : SliderRangeValue;
|
|
15
|
+
interface SliderBaseProps<IsRange extends boolean = false> extends FormFieldProps, Omit<SliderProps, "value" | "defaultValue" | "onChange" | "onChangeEnd" | "className" | "children"> {
|
|
16
|
+
ref?: Ref<HTMLDivElement>;
|
|
17
|
+
className?: string;
|
|
18
|
+
/** Text appended to the bounds shown beside the track, e.g. `"%"`. */
|
|
19
|
+
unit?: string;
|
|
20
|
+
/** Renders two thumbs; the value becomes `{ start, end }`. */
|
|
21
|
+
isRange?: IsRange;
|
|
22
|
+
/** Lower bound. Defaults to `UIConfig.slider.minValue`. */
|
|
23
|
+
minValue?: number;
|
|
24
|
+
/** Upper bound. Defaults to `UIConfig.slider.maxValue`. */
|
|
25
|
+
maxValue?: number;
|
|
26
|
+
defaultValue?: SliderValue<IsRange>;
|
|
27
|
+
/** The controlled value; `null` shows the thumbs at `minValue`. */
|
|
28
|
+
value?: SliderValue<IsRange> | null;
|
|
29
|
+
/** @deprecated Not supported. */
|
|
30
|
+
isReadOnly?: Hint<"`Slider` has no read-only mode: show the value as text, or use `isDisabled`">;
|
|
31
|
+
onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
32
|
+
onChange?: (value: SliderValue<IsRange>) => void;
|
|
33
|
+
/** Called once when a drag or keyboard change ends. */
|
|
34
|
+
onChangeEnd?: (value: SliderValue<IsRange>) => void;
|
|
35
|
+
}
|
|
36
|
+
/** Props for a `Slider` that owns its value through `value`/`defaultValue`/`onChange`. */
|
|
37
|
+
type StandaloneSliderProps<IsRange extends boolean = false> = SliderBaseProps<IsRange> & {
|
|
38
|
+
field?: never;
|
|
39
|
+
};
|
|
40
|
+
/** Props for a `Slider` bound to a form field; the form owns the value, change, and blur handling. */
|
|
41
|
+
type ControlledSliderProps<IsRange extends boolean = false, TFieldValues extends FieldValues = FieldValues> = FormControlProps<StandaloneSliderProps<IsRange>, TFieldValues, "value", IsRange extends true ? "a { start, end } range of numbers" : "a number">;
|
|
42
|
+
/** Props for `Slider`: either its own value props, or `field={{ form, name }}` to bind a form field. */
|
|
43
|
+
type SliderProps$1<IsRange extends boolean = false, TFieldValues extends FieldValues = FieldValues> = StandaloneSliderProps<IsRange> | ControlledSliderProps<IsRange, TFieldValues>;
|
|
44
|
+
declare function SliderComponent<IsRange extends boolean = false>(props: StandaloneSliderProps<IsRange>): ReactElement;
|
|
45
|
+
declare function SliderComponent<IsRange extends boolean = false, TFieldValues extends FieldValues = FieldValues>(props: SliderProps$1<IsRange, TFieldValues>): ReactElement;
|
|
46
|
+
/**
|
|
47
|
+
* Single-value or range slider.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* <Slider label="Volume" minValue={0} maxValue={100} value={volume} onChange={setVolume} />
|
|
51
|
+
* @example
|
|
52
|
+
* // With `isRange` the value is `{ start, end }`.
|
|
53
|
+
* <Slider label="Price" isRange field={{ form, name: "priceRange" }} />
|
|
54
|
+
*/
|
|
55
|
+
declare const Slider: typeof SliderComponent;
|
|
56
|
+
//#endregion
|
|
57
|
+
export { SliderValue as a, SliderRangeValue as i, Slider as n, StandaloneSliderProps as o, SliderProps$1 as r, ControlledSliderProps as t };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { S as SpinnerVariantProps } from "./link.cva-D6L1c2wq.js";
|
|
2
|
+
import { t as Hint } from "./hints-B09_WDhL.js";
|
|
3
|
+
import { SVGProps } from "react";
|
|
4
|
+
//#region src/components/status/Spinner/Spinner.d.ts
|
|
5
|
+
interface SpinnerProps extends Omit<SpinnerVariantProps, "size">, Omit<SVGProps<SVGSVGElement>, "className" | "color"> {
|
|
6
|
+
/** `lg` (32px) for page and panel loaders; omit for the default 16px. */
|
|
7
|
+
size?: "default" | "lg" | Hint<"Sizes are `default` (16px) and `lg` (32px); `l` is now `lg`">;
|
|
8
|
+
/** Classes for the spinner (margin, colour, a custom size); the icon fills it. */
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const Spinner: ({ size, className, ...props }: SpinnerProps) => import("react").JSX.Element;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { SpinnerProps as n, Spinner as t };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { xn as ButtonVariantProps } from "./link.cva-D6L1c2wq.js";
|
|
2
|
+
import { n as Removed } from "./hints-B09_WDhL.js";
|
|
3
|
+
import { n as LinkNavigationProps } from "./Link-BdnWVYL9.js";
|
|
4
|
+
import { n as DropdownMenuItem } from "./DropdownMenu-DTr7b-XO.js";
|
|
5
|
+
import { ButtonProps } from "react-aria-components";
|
|
6
|
+
//#region src/components/buttons/SplitButton/SplitButton.d.ts
|
|
7
|
+
interface SplitButtonProps extends ButtonVariantProps, Omit<ButtonProps, "children" | "className" | "isPending"> {
|
|
8
|
+
/** Classes for the main button. */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** Visible text of the main button. */
|
|
11
|
+
label: string;
|
|
12
|
+
/** Accessible name of the chevron button that opens the menu, e.g. "More save options". */
|
|
13
|
+
labelRight: string;
|
|
14
|
+
/** Makes the main button a link. */
|
|
15
|
+
link?: LinkNavigationProps;
|
|
16
|
+
/** The menu opened by the chevron button. */
|
|
17
|
+
items: DropdownMenuItem[];
|
|
18
|
+
/** Shows a spinner in the main button and blocks presses. */
|
|
19
|
+
isLoading?: boolean;
|
|
20
|
+
/** @deprecated Use `label`. */
|
|
21
|
+
children?: Removed<"Use `label` for the main button's text">;
|
|
22
|
+
}
|
|
23
|
+
declare const SplitButton: ({ variant, color, width, size, label, labelRight, link, items, className, isLoading, children: _children, ...props }: SplitButtonProps) => import("react").JSX.Element;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { SplitButtonProps as n, SplitButton as t };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { $ as StepperItemVariantProps, et as StepperVariantProps } from "./link.cva-D6L1c2wq.js";
|
|
2
|
+
import { n as Removed } from "./hints-B09_WDhL.js";
|
|
3
|
+
//#region src/components/navigation/Stepper/stepper.types.d.ts
|
|
4
|
+
/** A single step definition passed by the consumer. */
|
|
5
|
+
interface StepItem {
|
|
6
|
+
/** Unique key for React rendering. */
|
|
7
|
+
id: string;
|
|
8
|
+
/** Step name. Visible unless `iconOnly` is set, when it stays as the step's accessible name. */
|
|
9
|
+
label: string;
|
|
10
|
+
/** Secondary line under the label. Hidden with `iconOnly` or `labelsOnly`. */
|
|
11
|
+
description?: string;
|
|
12
|
+
/** @deprecated Use `label`. */
|
|
13
|
+
title?: Removed<"Use `label`">;
|
|
14
|
+
/** @deprecated Use `description`. */
|
|
15
|
+
subtext?: Removed<"Use `description`">;
|
|
16
|
+
}
|
|
17
|
+
/** Public props for the Stepper component. */
|
|
18
|
+
interface StepperProps extends StepperVariantProps, StepperItemVariantProps {
|
|
19
|
+
/** The steps as `{ id, label, description? }`. Order determines step numbering (1-based). */
|
|
20
|
+
items: StepItem[];
|
|
21
|
+
/** @deprecated Use `items`. */
|
|
22
|
+
steps?: Removed<"Use `items`">;
|
|
23
|
+
/**
|
|
24
|
+
* The current active step index (0-based).
|
|
25
|
+
* - Steps at index < currentStep are "completed"
|
|
26
|
+
* - Step at index === currentStep is "active"
|
|
27
|
+
* - Steps at index > currentStep are "todo"
|
|
28
|
+
*/
|
|
29
|
+
currentStep: number;
|
|
30
|
+
/** Shows only the step indicators; the labels stay as accessible names. */
|
|
31
|
+
iconOnly?: boolean;
|
|
32
|
+
/** Shows the indicators and labels without descriptions. Ignored with `iconOnly`. */
|
|
33
|
+
labelsOnly?: boolean;
|
|
34
|
+
/** Makes completed steps pressable; receives the 0-based index of the pressed step. */
|
|
35
|
+
onStepPress?: (stepIndex: number) => void;
|
|
36
|
+
/** @deprecated Use `iconOnly`. */
|
|
37
|
+
iconsOnly?: Removed<"Use `iconOnly`">;
|
|
38
|
+
/** @deprecated Use `labelsOnly`. */
|
|
39
|
+
titlesOnly?: Removed<"Use `labelsOnly`">;
|
|
40
|
+
/** @deprecated Use `onStepPress`. */
|
|
41
|
+
onStepClick?: Removed<"Use `onStepPress`">;
|
|
42
|
+
/** Optional className for the root container. */
|
|
43
|
+
className?: string;
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/components/navigation/Stepper/Stepper.d.ts
|
|
47
|
+
declare const Stepper: ({ items, currentStep, orientation, contentOrientation, iconOnly, labelsOnly, onStepPress, className }: StepperProps) => import("react").JSX.Element;
|
|
48
|
+
//#endregion
|
|
49
|
+
export { StepItem as n, StepperProps as r, Stepper as t };
|
|
@@ -1,24 +1,26 @@
|
|
|
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 $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-
|
|
3
|
+
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-BJJkLVNj.js";
|
|
4
4
|
import { t as Typography } from "./Typography-DCLnPa3P.js";
|
|
5
|
+
import "./i18n-DQs7jPjv.js";
|
|
5
6
|
import { n as uiOutlineClass } from "./outline.clsx-DGGQQRkM.js";
|
|
6
7
|
import { a as stepperSeparatorDefinition, i as stepperNumberDefinition, n as stepperIconDefinition, o as stepperSubtextDefinition, r as stepperItemDefinition, s as stepperTitleDefinition, t as stepperDefinition } from "./stepper.cva-Cecphqeo.js";
|
|
7
|
-
import { Check } from "lucide-react";
|
|
8
8
|
import { c } from "react/compiler-runtime";
|
|
9
9
|
import { Fragment } from "react";
|
|
10
10
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { Check } from "lucide-react";
|
|
12
|
+
import { useTranslation } from "react-i18next";
|
|
11
13
|
//#region src/components/navigation/Stepper/StepperItem.tsx
|
|
12
14
|
const StepperItem = (t0) => {
|
|
13
|
-
const $ = c(
|
|
14
|
-
const { step, stepNumber, status, contentOrientation,
|
|
15
|
+
const $ = c(35);
|
|
16
|
+
const { step, stepNumber, status, contentOrientation, iconOnly, labelsOnly, onPress } = t0;
|
|
15
17
|
const stepperItemCva = UIOverrides.useCva("stepper.itemCva", stepperItemDefinition);
|
|
16
18
|
const stepperIconCva = UIOverrides.useCva("stepper.iconCva", stepperIconDefinition);
|
|
17
19
|
const stepperNumberCva = UIOverrides.useCva("stepper.numberCva", stepperNumberDefinition);
|
|
18
20
|
const stepperTitleCva = UIOverrides.useCva("stepper.titleCva", stepperTitleDefinition);
|
|
19
21
|
const stepperSubtextCva = UIOverrides.useCva("stepper.subtextCva", stepperSubtextDefinition);
|
|
20
|
-
const showTitle = !
|
|
21
|
-
const showSubtext = !
|
|
22
|
+
const showTitle = !iconOnly;
|
|
23
|
+
const showSubtext = !iconOnly && !labelsOnly && !!step.description;
|
|
22
24
|
let t1;
|
|
23
25
|
if ($[0] !== status || $[1] !== stepperIconCva) {
|
|
24
26
|
t1 = stepperIconCva({ status });
|
|
@@ -49,43 +51,58 @@ const StepperItem = (t0) => {
|
|
|
49
51
|
$[9] = t3;
|
|
50
52
|
} else t3 = $[9];
|
|
51
53
|
let t4;
|
|
52
|
-
if ($[10] !==
|
|
53
|
-
t4 = showTitle && /* @__PURE__ */
|
|
54
|
+
if ($[10] !== showTitle || $[11] !== step) {
|
|
55
|
+
t4 = !showTitle && /* @__PURE__ */ jsx("span", {
|
|
56
|
+
className: "sr-only",
|
|
57
|
+
children: step.label
|
|
58
|
+
});
|
|
59
|
+
$[10] = showTitle;
|
|
60
|
+
$[11] = step;
|
|
61
|
+
$[12] = t4;
|
|
62
|
+
} else t4 = $[12];
|
|
63
|
+
let t5;
|
|
64
|
+
if ($[13] !== showSubtext || $[14] !== showTitle || $[15] !== status || $[16] !== step || $[17] !== stepperSubtextCva || $[18] !== stepperTitleCva) {
|
|
65
|
+
t5 = showTitle && /* @__PURE__ */ jsxs("div", {
|
|
54
66
|
className: "flex flex-col gap-0.5",
|
|
55
67
|
children: [/* @__PURE__ */ jsx(Typography, {
|
|
56
68
|
className: stepperTitleCva({ status }),
|
|
57
69
|
size: "body",
|
|
58
|
-
children: step.
|
|
70
|
+
children: step.label
|
|
59
71
|
}), showSubtext && /* @__PURE__ */ jsx(Typography, {
|
|
60
72
|
className: stepperSubtextCva({ status }),
|
|
61
73
|
size: "body",
|
|
62
|
-
children: step.
|
|
74
|
+
children: step.description
|
|
63
75
|
})]
|
|
64
76
|
});
|
|
65
|
-
$[
|
|
66
|
-
$[
|
|
67
|
-
$[
|
|
68
|
-
$[
|
|
69
|
-
$[
|
|
70
|
-
$[
|
|
71
|
-
$[16] = t4;
|
|
72
|
-
} else t4 = $[16];
|
|
73
|
-
let t5;
|
|
74
|
-
if ($[17] !== t3 || $[18] !== t4) {
|
|
75
|
-
t5 = /* @__PURE__ */ jsxs(Fragment$1, { children: [t3, t4] });
|
|
76
|
-
$[17] = t3;
|
|
77
|
-
$[18] = t4;
|
|
77
|
+
$[13] = showSubtext;
|
|
78
|
+
$[14] = showTitle;
|
|
79
|
+
$[15] = status;
|
|
80
|
+
$[16] = step;
|
|
81
|
+
$[17] = stepperSubtextCva;
|
|
82
|
+
$[18] = stepperTitleCva;
|
|
78
83
|
$[19] = t5;
|
|
79
84
|
} else t5 = $[19];
|
|
80
|
-
const content = t5;
|
|
81
|
-
let className;
|
|
82
85
|
let t6;
|
|
83
|
-
if ($[20] !==
|
|
84
|
-
t6 =
|
|
86
|
+
if ($[20] !== t3 || $[21] !== t4 || $[22] !== t5) {
|
|
87
|
+
t6 = /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
88
|
+
t3,
|
|
89
|
+
t4,
|
|
90
|
+
t5
|
|
91
|
+
] });
|
|
92
|
+
$[20] = t3;
|
|
93
|
+
$[21] = t4;
|
|
94
|
+
$[22] = t5;
|
|
95
|
+
$[23] = t6;
|
|
96
|
+
} else t6 = $[23];
|
|
97
|
+
const content = t6;
|
|
98
|
+
let className;
|
|
99
|
+
let t7;
|
|
100
|
+
if ($[24] !== content || $[25] !== contentOrientation || $[26] !== onPress || $[27] !== status || $[28] !== stepperItemCva) {
|
|
101
|
+
t7 = Symbol.for("react.early_return_sentinel");
|
|
85
102
|
bb0: {
|
|
86
103
|
className = stepperItemCva({ contentOrientation });
|
|
87
104
|
if (onPress) {
|
|
88
|
-
|
|
105
|
+
t7 = /* @__PURE__ */ jsx($7705c033048f6da7$export$353f5b6fc5456de1, {
|
|
89
106
|
onPress,
|
|
90
107
|
className: clsx("group cursor-pointer rounded-md", uiOutlineClass, className),
|
|
91
108
|
"aria-current": status === "active" ? "step" : void 0,
|
|
@@ -94,32 +111,32 @@ const StepperItem = (t0) => {
|
|
|
94
111
|
break bb0;
|
|
95
112
|
}
|
|
96
113
|
}
|
|
97
|
-
$[
|
|
98
|
-
$[
|
|
99
|
-
$[
|
|
100
|
-
$[
|
|
101
|
-
$[
|
|
102
|
-
$[
|
|
103
|
-
$[
|
|
114
|
+
$[24] = content;
|
|
115
|
+
$[25] = contentOrientation;
|
|
116
|
+
$[26] = onPress;
|
|
117
|
+
$[27] = status;
|
|
118
|
+
$[28] = stepperItemCva;
|
|
119
|
+
$[29] = className;
|
|
120
|
+
$[30] = t7;
|
|
104
121
|
} else {
|
|
105
|
-
className = $[
|
|
106
|
-
|
|
122
|
+
className = $[29];
|
|
123
|
+
t7 = $[30];
|
|
107
124
|
}
|
|
108
|
-
if (
|
|
109
|
-
const
|
|
110
|
-
let
|
|
111
|
-
if ($[
|
|
112
|
-
|
|
125
|
+
if (t7 !== Symbol.for("react.early_return_sentinel")) return t7;
|
|
126
|
+
const t8 = status === "active" ? "step" : void 0;
|
|
127
|
+
let t9;
|
|
128
|
+
if ($[31] !== className || $[32] !== content || $[33] !== t8) {
|
|
129
|
+
t9 = /* @__PURE__ */ jsx("div", {
|
|
113
130
|
className,
|
|
114
|
-
"aria-current":
|
|
131
|
+
"aria-current": t8,
|
|
115
132
|
children: content
|
|
116
133
|
});
|
|
117
|
-
$[
|
|
118
|
-
$[
|
|
119
|
-
$[
|
|
120
|
-
$[
|
|
121
|
-
} else
|
|
122
|
-
return
|
|
134
|
+
$[31] = className;
|
|
135
|
+
$[32] = content;
|
|
136
|
+
$[33] = t8;
|
|
137
|
+
$[34] = t9;
|
|
138
|
+
} else t9 = $[34];
|
|
139
|
+
return t9;
|
|
123
140
|
};
|
|
124
141
|
//#endregion
|
|
125
142
|
//#region src/components/navigation/Stepper/StepperSeparator.tsx
|
|
@@ -149,11 +166,12 @@ const StepperSeparator = (t0) => {
|
|
|
149
166
|
//#endregion
|
|
150
167
|
//#region src/components/navigation/Stepper/Stepper.tsx
|
|
151
168
|
const Stepper = (t0) => {
|
|
152
|
-
const $ = c(
|
|
153
|
-
const {
|
|
169
|
+
const $ = c(26);
|
|
170
|
+
const { items, currentStep, orientation: t1, contentOrientation: t2, iconOnly, labelsOnly, onStepPress, className } = t0;
|
|
154
171
|
const orientation = t1 === void 0 ? "horizontal" : t1;
|
|
155
172
|
const contentOrientation = t2 === void 0 ? "horizontal" : t2;
|
|
156
173
|
const stepperCva = UIOverrides.useCva("stepper.cva", stepperDefinition);
|
|
174
|
+
const { t } = useTranslation("ui");
|
|
157
175
|
let t3;
|
|
158
176
|
if ($[0] !== className || $[1] !== orientation || $[2] !== stepperCva) {
|
|
159
177
|
t3 = stepperCva({
|
|
@@ -166,56 +184,66 @@ const Stepper = (t0) => {
|
|
|
166
184
|
$[3] = t3;
|
|
167
185
|
} else t3 = $[3];
|
|
168
186
|
let t4;
|
|
169
|
-
if ($[4] !==
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
187
|
+
if ($[4] !== t) {
|
|
188
|
+
t4 = t(_temp);
|
|
189
|
+
$[4] = t;
|
|
190
|
+
$[5] = t4;
|
|
191
|
+
} else t4 = $[5];
|
|
192
|
+
let t5;
|
|
193
|
+
if ($[6] !== contentOrientation || $[7] !== currentStep || $[8] !== iconOnly || $[9] !== items || $[10] !== labelsOnly || $[11] !== onStepPress || $[12] !== orientation) {
|
|
194
|
+
let t6;
|
|
195
|
+
if ($[14] !== contentOrientation || $[15] !== currentStep || $[16] !== iconOnly || $[17] !== items.length || $[18] !== labelsOnly || $[19] !== onStepPress || $[20] !== orientation) {
|
|
196
|
+
t6 = (step, index) => {
|
|
173
197
|
const status = index < currentStep ? "completed" : index === currentStep ? "active" : "todo";
|
|
174
198
|
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(StepperItem, {
|
|
175
199
|
step,
|
|
176
200
|
stepNumber: index + 1,
|
|
177
201
|
status,
|
|
178
202
|
contentOrientation,
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
onPress:
|
|
182
|
-
}), index <
|
|
203
|
+
iconOnly,
|
|
204
|
+
labelsOnly,
|
|
205
|
+
onPress: onStepPress && status === "completed" ? () => onStepPress(index) : void 0
|
|
206
|
+
}), index < items.length - 1 && /* @__PURE__ */ jsx(StepperSeparator, {
|
|
183
207
|
orientation,
|
|
184
208
|
contentOrientation
|
|
185
209
|
})] }, step.id);
|
|
186
210
|
};
|
|
187
|
-
$[
|
|
188
|
-
$[
|
|
189
|
-
$[
|
|
190
|
-
$[
|
|
191
|
-
$[
|
|
192
|
-
$[
|
|
193
|
-
$[
|
|
194
|
-
$[
|
|
195
|
-
} else
|
|
196
|
-
|
|
197
|
-
$[
|
|
198
|
-
$[
|
|
199
|
-
$[
|
|
200
|
-
$[
|
|
201
|
-
$[
|
|
202
|
-
$[
|
|
203
|
-
$[
|
|
204
|
-
$[
|
|
205
|
-
} else
|
|
206
|
-
let
|
|
207
|
-
if ($[
|
|
208
|
-
|
|
211
|
+
$[14] = contentOrientation;
|
|
212
|
+
$[15] = currentStep;
|
|
213
|
+
$[16] = iconOnly;
|
|
214
|
+
$[17] = items.length;
|
|
215
|
+
$[18] = labelsOnly;
|
|
216
|
+
$[19] = onStepPress;
|
|
217
|
+
$[20] = orientation;
|
|
218
|
+
$[21] = t6;
|
|
219
|
+
} else t6 = $[21];
|
|
220
|
+
t5 = items.map(t6);
|
|
221
|
+
$[6] = contentOrientation;
|
|
222
|
+
$[7] = currentStep;
|
|
223
|
+
$[8] = iconOnly;
|
|
224
|
+
$[9] = items;
|
|
225
|
+
$[10] = labelsOnly;
|
|
226
|
+
$[11] = onStepPress;
|
|
227
|
+
$[12] = orientation;
|
|
228
|
+
$[13] = t5;
|
|
229
|
+
} else t5 = $[13];
|
|
230
|
+
let t6;
|
|
231
|
+
if ($[22] !== t3 || $[23] !== t4 || $[24] !== t5) {
|
|
232
|
+
t6 = /* @__PURE__ */ jsx("div", {
|
|
209
233
|
className: t3,
|
|
210
234
|
role: "group",
|
|
211
|
-
"aria-label":
|
|
212
|
-
children:
|
|
235
|
+
"aria-label": t4,
|
|
236
|
+
children: t5
|
|
213
237
|
});
|
|
214
|
-
$[
|
|
215
|
-
$[
|
|
216
|
-
$[
|
|
217
|
-
|
|
218
|
-
|
|
238
|
+
$[22] = t3;
|
|
239
|
+
$[23] = t4;
|
|
240
|
+
$[24] = t5;
|
|
241
|
+
$[25] = t6;
|
|
242
|
+
} else t6 = $[25];
|
|
243
|
+
return t6;
|
|
219
244
|
};
|
|
245
|
+
function _temp($) {
|
|
246
|
+
return $.ui.stepper.progress;
|
|
247
|
+
}
|
|
220
248
|
//#endregion
|
|
221
249
|
export { Stepper as t };
|