@povio/ui 6.0.0-rc.11 → 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 +470 -43
- 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-DX0dVo6z.js → Calendar-DN-i_b-_.js} +19 -17
- package/dist/{Calendar.lazy-W51M56GQ.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-CqNS7lgR.js → DatePicker-DQewd1By.js} +80 -41
- package/dist/{DatePickerInput-vLlL5ATh.d.ts → DatePickerInput-B9VnExeA.d.ts} +3 -3
- package/dist/{DatePickerInput-B2Pc_aJr.js → DatePickerInput-Bp9ZIN5E.js} +37 -26
- package/dist/{DateRangePicker-C3ClfSfj.js → DateRangePicker-DRZ1hLlR.js} +93 -169
- package/dist/DateRangePicker-LX1VJlnD.d.ts +102 -0
- package/dist/DateTimePicker-D9pODhAj.d.ts +83 -0
- package/dist/{DateTimePicker-CYa2J-1r.js → DateTimePicker-DWtKPaE6.js} +70 -35
- package/dist/{Dialog-C9H9_BmK.js → Dialog-BJ13KRQo.js} +1 -1
- package/dist/{Dialog-96c4Pzfm.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-IRM0C9W6.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-UbFhc_J2.js → Input-CeRJeAoR.js} +94 -59
- package/dist/Input-onUj0DKg.d.ts +56 -0
- package/dist/{InputContent-D7lnNLWk.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-twW8zuJ9.js → NumberField-6Q9LHGSo.js} +91 -62
- package/dist/NumberField-Sb30Qao3.d.ts +41 -0
- package/dist/{NumberRangeInput-gT6gEJIz.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-CXtbMCD6.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-0W1YFZqn.js → RangeCalendar-DqCTlIuy.js} +42 -13
- package/dist/Select-CSyfDyxG.d.ts +248 -0
- package/dist/{Select-B-TuE_Fh.js → Select-D3fuXwVt.js} +435 -184
- package/dist/{SelectListBox-Dlonoc5z.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-CWUNeqYa.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-DakA3nzZ.js → TextArea-P8F0oD_A.js} +59 -32
- package/dist/TimePicker-Ai1M2TGW.d.ts +63 -0
- package/dist/{TimePicker-RFzfDezn.js → TimePicker-l4Ysk2AX.js} +99 -50
- package/dist/{TimePickerForm-DohOZViU.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-DLBksJsF.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-EDC8xyfH.d.ts → i18n-B3PeqBM7.d.ts} +100 -20
- package/dist/{i18n-BE9Wvs9L.js → i18n-DQs7jPjv.js} +99 -25
- package/dist/iconSlot.cva-DyhOI7EK.js +5 -0
- package/dist/{import-Dkfk7PHt.js → import-C73fI3WD.js} +2 -2
- package/dist/index.d.ts +64 -85
- package/dist/index.js +55 -92
- 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-4tIzPL8l.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 +2 -2
- package/dist/tanstack-ABeiJISz.js +10 -0
- package/dist/tanstack-bLXoUPDY.d.ts +165 -0
- package/dist/tanstack.d.ts +64 -85
- package/dist/tanstack.js +55 -92
- 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-D3KH4Rpo.js → useTableColumnConfig-B9cYBKo3.js} +956 -689
- 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 -131
- package/MIGRATION.md +0 -673
- 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-BxRjxjtp.js +0 -145
- package/dist/Autocomplete.bound-CpHZZ3C9.d.ts +0 -9
- package/dist/Autocomplete.bound-DweyHUI5.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-Dxg2LM89.js +0 -36
- package/dist/DateRangePicker-32D4pWJg.d.ts +0 -97
- package/dist/DateRangePicker.bound-CVtoVsho.d.ts +0 -9
- package/dist/DateRangePicker.bound-PR9rBoXc.js +0 -35
- package/dist/DateTimePicker-BTRIUagV.d.ts +0 -55
- package/dist/DateTimePicker.bound-CQxnRveH.js +0 -32
- package/dist/DateTimePicker.bound-X4DTyQ1b.d.ts +0 -9
- 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-CctyulN9.js +0 -30
- package/dist/FileInput.bound-D2HuuqSb.d.ts +0 -8
- package/dist/FileUpload-BUTSqHVk.d.ts +0 -11
- package/dist/FileUpload-Dfs3FvJ7.js +0 -749
- package/dist/FileUpload.bound-CGQXb4iT.d.ts +0 -16
- package/dist/FileUpload.bound-vik_sTkm.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-0iJO2-ia.js +0 -31
- package/dist/Input.bound-B9a62ylL.d.ts +0 -9
- 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-DHDsBNvI.js +0 -32
- package/dist/NumberField.bound-Dy0A5iVc.d.ts +0 -9
- package/dist/NumberRangeInput-BCKQaGpy.d.ts +0 -50
- package/dist/NumberRangeInput.bound-5Yv3Og73.js +0 -32
- package/dist/NumberRangeInput.bound-BNXxIQ0b.d.ts +0 -9
- package/dist/Pagination-BCGUVYOF.d.ts +0 -12
- package/dist/PaginationList-CvlSkJGn.d.ts +0 -18
- package/dist/PaginationList-D7SRwySe.js +0 -220
- 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-BuqZth3X.js +0 -651
- package/dist/RichTextEditor-DHhuBeT6.d.ts +0 -28
- package/dist/Select-C34ENdjq.d.ts +0 -119
- package/dist/Select.bound-CNCChZww.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-CDVPP_qb.js +0 -28
- package/dist/TimePicker-BZ1ocsBX.d.ts +0 -45
- package/dist/TimePicker.bound-8DmjMXuE.d.ts +0 -9
- package/dist/TimePicker.bound-DPia51Qs.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/components/pagination-list.d.ts +0 -2
- package/dist/components/pagination-list.js +0 -2
- package/dist/components/pagination.d.ts +0 -2
- package/dist/components/pagination.js +0 -138
- package/dist/confirmation.context-BwlIEVeF.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-CtuKX9Ss.d.ts +0 -568
- 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-H5DrogZU.d.ts +0 -215
- package/dist/useToast-DsA8CVoY.d.ts +0 -16
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { i as FieldValues } from "./form.binding-DSXB2AOD.js";
|
|
2
|
+
import { t as FormControlProps } from "./form.types-a2WVJDQX.js";
|
|
3
|
+
import { i as StandaloneInputProps } from "./Input-onUj0DKg.js";
|
|
4
|
+
//#region src/components/inputs/Input/PasswordInput/PasswordInput.d.ts
|
|
5
|
+
/** Props for a `PasswordInput` that owns its value through `value`/`defaultValue`/`onChange`. */
|
|
6
|
+
interface StandalonePasswordInputProps extends Omit<StandaloneInputProps, "type" | "action" | "trailingIcon" | "unit"> {
|
|
7
|
+
field?: never;
|
|
8
|
+
}
|
|
9
|
+
/** Props for a `PasswordInput` bound to a form field; the form owns the value, change, and blur handling. */
|
|
10
|
+
type ControlledPasswordInputProps<TFieldValues extends FieldValues = FieldValues> = FormControlProps<StandalonePasswordInputProps, TFieldValues, "value", "a string">;
|
|
11
|
+
/** Props for `PasswordInput`: either its own value props, or `field={{ form, name }}` to bind a form field. */
|
|
12
|
+
type PasswordInputProps<TFieldValues extends FieldValues = FieldValues> = StandalonePasswordInputProps | ControlledPasswordInputProps<TFieldValues>;
|
|
13
|
+
declare const PasswordInputComponent: <TFieldValues extends FieldValues = FieldValues>(props: PasswordInputProps<TFieldValues>) => import("react").JSX.Element;
|
|
14
|
+
declare const PasswordInput: typeof PasswordInputComponent;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { StandalonePasswordInputProps as i, PasswordInput as n, PasswordInputProps as r, ControlledPasswordInputProps as t };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { n as Removed } from "./hints-B09_WDhL.js";
|
|
2
|
+
import { t as BottomSheetProps } from "./BottomSheet-Be0HtQzP.js";
|
|
3
|
+
import "./BottomSheet.lazy-NNB7ivkW.js";
|
|
4
|
+
import { ReactElement, ReactNode } from "react";
|
|
5
|
+
import { PopoverProps } from "react-aria-components";
|
|
6
|
+
//#region src/components/overlays/Popover/Popover.d.ts
|
|
7
|
+
type PopoverBottomSheetProps = Partial<Omit<BottomSheetProps, "children" | "isOpen" | "onOpenChange" | "trigger">>;
|
|
8
|
+
type PopoverAriaProps = Partial<Omit<PopoverProps, "children" | "className" | "placement">> & {
|
|
9
|
+
/** @deprecated Use the `placement` prop. */
|
|
10
|
+
placement?: Removed<"Use the `placement` prop of `Popover`">;
|
|
11
|
+
};
|
|
12
|
+
interface PopoverProps$1 {
|
|
13
|
+
/** A pressable element (`Button`, `IconButton`) that opens the popover on press and anchors it. Required. */
|
|
14
|
+
trigger: ReactElement;
|
|
15
|
+
/** Popover content, or a function that receives `close`. */
|
|
16
|
+
children: ReactNode | ((close: () => void) => ReactNode);
|
|
17
|
+
/** Controlled open state. Omit it to let `trigger` own the state. */
|
|
18
|
+
isOpen?: boolean;
|
|
19
|
+
/** Called with the next open state: `false` on Escape, outside press or `close()`. */
|
|
20
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
21
|
+
/** Accessible name. Not rendered from `md` up; below `md` it is also the header text of the bottom sheet. */
|
|
22
|
+
label: string;
|
|
23
|
+
/**
|
|
24
|
+
* Classes for the visible surface: the popover panel from `md` up, the bottom sheet below `md`. Width classes size
|
|
25
|
+
* the sheet too, so scope them to the popover with `md:` (`md:w-80`).
|
|
26
|
+
*/
|
|
27
|
+
className?: string;
|
|
28
|
+
/** Where the popover opens relative to `trigger` from `md` up, like `"bottom end"`. Defaults to `"bottom start"`. */
|
|
29
|
+
placement?: PopoverProps["placement"];
|
|
30
|
+
/** Props for the `BottomSheet` used below `md`. Defaults: `height="auto"`, dismissable. */
|
|
31
|
+
bottomSheetProps?: PopoverBottomSheetProps;
|
|
32
|
+
/** More React Aria popover options used from `md` up. Defaults: `offset={0}`. */
|
|
33
|
+
popoverProps?: PopoverAriaProps;
|
|
34
|
+
/** @deprecated Use `isOpen`. */
|
|
35
|
+
open?: Removed<"Use `isOpen`">;
|
|
36
|
+
/** @deprecated Use `onOpenChange`. */
|
|
37
|
+
onClose?: Removed<"Use `onOpenChange`; it is called with `false` when the popover closes">;
|
|
38
|
+
/** @deprecated Use `label`. */
|
|
39
|
+
sheetLabel?: Removed<"Use `label`">;
|
|
40
|
+
/** @deprecated Use `label`. */
|
|
41
|
+
"aria-label"?: Removed<"Use `label`">;
|
|
42
|
+
/** @deprecated Use `className`. */
|
|
43
|
+
popoverClassName?: Removed<"Use `className`">;
|
|
44
|
+
/** @deprecated Render the heading in `children`. */
|
|
45
|
+
title?: Removed<"Popover has no heading prop: render the heading in `children` and name the popover with `label`">;
|
|
46
|
+
/** @deprecated Render the heading in `children`. */
|
|
47
|
+
heading?: Removed<"Popover has no heading prop: render the heading in `children` and name the popover with `label`">;
|
|
48
|
+
}
|
|
49
|
+
declare const Popover: ({ trigger, isOpen: isOpenProp, onOpenChange, children, className, label, placement, bottomSheetProps, popoverProps }: PopoverProps$1) => import("react").JSX.Element;
|
|
50
|
+
//#endregion
|
|
51
|
+
export { PopoverProps$1 as n, Popover as t };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { qt as ProgressVariantProps } from "./link.cva-D6L1c2wq.js";
|
|
2
|
+
import { n as Removed } from "./hints-B09_WDhL.js";
|
|
3
|
+
//#region src/components/status/Progress/Progress.d.ts
|
|
4
|
+
interface ProgressProps extends ProgressVariantProps {
|
|
5
|
+
/** Completion on a 0–100 scale, clamped to it and printed as given (round it first). Defaults to 0. */
|
|
6
|
+
value?: number;
|
|
7
|
+
/** Where the percentage text sits: `trailing` (default), `leading` or `none`. */
|
|
8
|
+
valuePosition?: ProgressVariantProps["valuePosition"];
|
|
9
|
+
/** What the bar measures ("Uploading report.pdf"), shown above it. It names the progressbar for screen readers. */
|
|
10
|
+
label?: string;
|
|
11
|
+
/** Keeps `label` off screen; it stays the accessible name. */
|
|
12
|
+
hideLabel?: boolean;
|
|
13
|
+
/** ID of a visible caption elsewhere that names the bar; use instead of `label`. */
|
|
14
|
+
"aria-labelledby"?: string;
|
|
15
|
+
/** Classes for the outer element. */
|
|
16
|
+
className?: string;
|
|
17
|
+
/** @deprecated Use `value`. */
|
|
18
|
+
progress?: Removed<"Use `value` (0–100), as on React Aria's ProgressBar">;
|
|
19
|
+
/** @deprecated Use `label`. */
|
|
20
|
+
"aria-label"?: Removed<"Use `label`, with `hideLabel` to keep it off screen">;
|
|
21
|
+
/** @deprecated Use `valuePosition`. */
|
|
22
|
+
valueLabel?: Removed<"Use `valuePosition` (`trailing` | `leading` | `none`) for where the percentage sits">;
|
|
23
|
+
}
|
|
24
|
+
declare const Progress: ({ value, valuePosition, label, hideLabel, "aria-labelledby": ariaLabelledBy, className }: ProgressProps) => import("react").JSX.Element;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { ProgressProps as n, Progress as t };
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
|
+
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
+
import { t as $6c0095e7e99364f2$export$c17561cb55d4db30 } from "./ProgressBar-BsSimmJF.js";
|
|
4
|
+
import { t as Typography } from "./Typography-DCLnPa3P.js";
|
|
5
|
+
import { a as progressValueDefinition, i as progressTrackWrapperDefinition, n as progressFillDefinition, r as progressTrackDefinition, t as progressDefinition } from "./progress.cva-mkJxrrac.js";
|
|
6
|
+
import { c } from "react/compiler-runtime";
|
|
7
|
+
import { useId } from "react";
|
|
8
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
//#region src/components/status/Progress/Progress.tsx
|
|
10
|
+
const clampPercent = (value) => Number.isFinite(value) ? Math.min(100, Math.max(0, value)) : 0;
|
|
11
|
+
const Progress = (t0) => {
|
|
12
|
+
const $ = c(54);
|
|
13
|
+
const { value: t1, valuePosition: t2, label, hideLabel, "aria-labelledby": ariaLabelledBy, className } = t0;
|
|
14
|
+
const value = t1 === void 0 ? 0 : t1;
|
|
15
|
+
const valuePosition = t2 === void 0 ? "trailing" : t2;
|
|
16
|
+
const progressCva = UIOverrides.useCva("progress.cva", progressDefinition);
|
|
17
|
+
const progressTrackWrapperCva = UIOverrides.useCva("progress.trackWrapperCva", progressTrackWrapperDefinition);
|
|
18
|
+
const progressTrackCva = UIOverrides.useCva("progress.trackCva", progressTrackDefinition);
|
|
19
|
+
const progressFillCva = UIOverrides.useCva("progress.fillCva", progressFillDefinition);
|
|
20
|
+
const progressValueCva = UIOverrides.useCva("progress.valueCva", progressValueDefinition);
|
|
21
|
+
const labelId = useId();
|
|
22
|
+
let t3;
|
|
23
|
+
if ($[0] !== value) {
|
|
24
|
+
t3 = clampPercent(value);
|
|
25
|
+
$[0] = value;
|
|
26
|
+
$[1] = t3;
|
|
27
|
+
} else t3 = $[1];
|
|
28
|
+
const percent = t3;
|
|
29
|
+
const valueText = `${percent}%`;
|
|
30
|
+
const showLabel = !!label && !hideLabel;
|
|
31
|
+
let t4;
|
|
32
|
+
if ($[2] !== progressTrackWrapperCva) {
|
|
33
|
+
t4 = progressTrackWrapperCva();
|
|
34
|
+
$[2] = progressTrackWrapperCva;
|
|
35
|
+
$[3] = t4;
|
|
36
|
+
} else t4 = $[3];
|
|
37
|
+
let t5;
|
|
38
|
+
if ($[4] !== progressTrackCva) {
|
|
39
|
+
t5 = progressTrackCva({ part: "container" });
|
|
40
|
+
$[4] = progressTrackCva;
|
|
41
|
+
$[5] = t5;
|
|
42
|
+
} else t5 = $[5];
|
|
43
|
+
let t6;
|
|
44
|
+
if ($[6] !== progressTrackCva) {
|
|
45
|
+
t6 = progressTrackCva({ part: "background" });
|
|
46
|
+
$[6] = progressTrackCva;
|
|
47
|
+
$[7] = t6;
|
|
48
|
+
} else t6 = $[7];
|
|
49
|
+
let t7;
|
|
50
|
+
if ($[8] !== t6) {
|
|
51
|
+
t7 = /* @__PURE__ */ jsx("div", { className: t6 });
|
|
52
|
+
$[8] = t6;
|
|
53
|
+
$[9] = t7;
|
|
54
|
+
} else t7 = $[9];
|
|
55
|
+
let t8;
|
|
56
|
+
if ($[10] !== progressFillCva) {
|
|
57
|
+
t8 = progressFillCva();
|
|
58
|
+
$[10] = progressFillCva;
|
|
59
|
+
$[11] = t8;
|
|
60
|
+
} else t8 = $[11];
|
|
61
|
+
let t9;
|
|
62
|
+
if ($[12] !== valueText) {
|
|
63
|
+
t9 = { width: valueText };
|
|
64
|
+
$[12] = valueText;
|
|
65
|
+
$[13] = t9;
|
|
66
|
+
} else t9 = $[13];
|
|
67
|
+
let t10;
|
|
68
|
+
if ($[14] !== t8 || $[15] !== t9) {
|
|
69
|
+
t10 = /* @__PURE__ */ jsx("div", {
|
|
70
|
+
className: t8,
|
|
71
|
+
style: t9
|
|
72
|
+
});
|
|
73
|
+
$[14] = t8;
|
|
74
|
+
$[15] = t9;
|
|
75
|
+
$[16] = t10;
|
|
76
|
+
} else t10 = $[16];
|
|
77
|
+
let t11;
|
|
78
|
+
if ($[17] !== t10 || $[18] !== t5 || $[19] !== t7) {
|
|
79
|
+
t11 = /* @__PURE__ */ jsxs("div", {
|
|
80
|
+
className: t5,
|
|
81
|
+
children: [t7, t10]
|
|
82
|
+
});
|
|
83
|
+
$[17] = t10;
|
|
84
|
+
$[18] = t5;
|
|
85
|
+
$[19] = t7;
|
|
86
|
+
$[20] = t11;
|
|
87
|
+
} else t11 = $[20];
|
|
88
|
+
let t12;
|
|
89
|
+
if ($[21] !== t11 || $[22] !== t4) {
|
|
90
|
+
t12 = /* @__PURE__ */ jsx("div", {
|
|
91
|
+
className: t4,
|
|
92
|
+
children: t11
|
|
93
|
+
});
|
|
94
|
+
$[21] = t11;
|
|
95
|
+
$[22] = t4;
|
|
96
|
+
$[23] = t12;
|
|
97
|
+
} else t12 = $[23];
|
|
98
|
+
let t13;
|
|
99
|
+
if ($[24] !== progressValueCva || $[25] !== valuePosition || $[26] !== valueText) {
|
|
100
|
+
t13 = valuePosition !== "none" && /* @__PURE__ */ jsx(Typography, {
|
|
101
|
+
size: "small",
|
|
102
|
+
as: "span",
|
|
103
|
+
className: progressValueCva(),
|
|
104
|
+
children: valueText
|
|
105
|
+
});
|
|
106
|
+
$[24] = progressValueCva;
|
|
107
|
+
$[25] = valuePosition;
|
|
108
|
+
$[26] = valueText;
|
|
109
|
+
$[27] = t13;
|
|
110
|
+
} else t13 = $[27];
|
|
111
|
+
let t14;
|
|
112
|
+
if ($[28] !== t12 || $[29] !== t13) {
|
|
113
|
+
t14 = /* @__PURE__ */ jsxs(Fragment$1, { children: [t12, t13] });
|
|
114
|
+
$[28] = t12;
|
|
115
|
+
$[29] = t13;
|
|
116
|
+
$[30] = t14;
|
|
117
|
+
} else t14 = $[30];
|
|
118
|
+
const bar = t14;
|
|
119
|
+
const t15 = label && hideLabel ? label : void 0;
|
|
120
|
+
let t16;
|
|
121
|
+
if ($[31] !== ariaLabelledBy || $[32] !== labelId || $[33] !== showLabel) {
|
|
122
|
+
t16 = clsx(showLabel && labelId, ariaLabelledBy) || void 0;
|
|
123
|
+
$[31] = ariaLabelledBy;
|
|
124
|
+
$[32] = labelId;
|
|
125
|
+
$[33] = showLabel;
|
|
126
|
+
$[34] = t16;
|
|
127
|
+
} else t16 = $[34];
|
|
128
|
+
let t17;
|
|
129
|
+
if ($[35] !== className || $[36] !== progressCva || $[37] !== showLabel || $[38] !== valuePosition) {
|
|
130
|
+
t17 = showLabel ? clsx("flex w-full flex-col gap-1.5", className) : progressCva({
|
|
131
|
+
valuePosition,
|
|
132
|
+
className
|
|
133
|
+
});
|
|
134
|
+
$[35] = className;
|
|
135
|
+
$[36] = progressCva;
|
|
136
|
+
$[37] = showLabel;
|
|
137
|
+
$[38] = valuePosition;
|
|
138
|
+
$[39] = t17;
|
|
139
|
+
} else t17 = $[39];
|
|
140
|
+
let t18;
|
|
141
|
+
if ($[40] !== bar || $[41] !== label || $[42] !== labelId || $[43] !== progressCva || $[44] !== showLabel || $[45] !== valuePosition) {
|
|
142
|
+
t18 = showLabel ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Typography, {
|
|
143
|
+
id: labelId,
|
|
144
|
+
size: "small",
|
|
145
|
+
as: "span",
|
|
146
|
+
children: label
|
|
147
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
148
|
+
className: progressCva({ valuePosition }),
|
|
149
|
+
children: bar
|
|
150
|
+
})] }) : bar;
|
|
151
|
+
$[40] = bar;
|
|
152
|
+
$[41] = label;
|
|
153
|
+
$[42] = labelId;
|
|
154
|
+
$[43] = progressCva;
|
|
155
|
+
$[44] = showLabel;
|
|
156
|
+
$[45] = valuePosition;
|
|
157
|
+
$[46] = t18;
|
|
158
|
+
} else t18 = $[46];
|
|
159
|
+
let t19;
|
|
160
|
+
if ($[47] !== percent || $[48] !== t15 || $[49] !== t16 || $[50] !== t17 || $[51] !== t18 || $[52] !== valueText) {
|
|
161
|
+
t19 = /* @__PURE__ */ jsx($6c0095e7e99364f2$export$c17561cb55d4db30, {
|
|
162
|
+
value: percent,
|
|
163
|
+
valueLabel: valueText,
|
|
164
|
+
"aria-label": t15,
|
|
165
|
+
"aria-labelledby": t16,
|
|
166
|
+
className: t17,
|
|
167
|
+
children: t18
|
|
168
|
+
});
|
|
169
|
+
$[47] = percent;
|
|
170
|
+
$[48] = t15;
|
|
171
|
+
$[49] = t16;
|
|
172
|
+
$[50] = t17;
|
|
173
|
+
$[51] = t18;
|
|
174
|
+
$[52] = valueText;
|
|
175
|
+
$[53] = t19;
|
|
176
|
+
} else t19 = $[53];
|
|
177
|
+
return t19;
|
|
178
|
+
};
|
|
179
|
+
//#endregion
|
|
180
|
+
export { Progress as t };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { i as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e } from "./utils-BkLF-JA3.js";
|
|
2
|
+
import { t as $43a3b93638fe5db9$export$75b6ee27786ba447 } from "./Label-BGvF9vWx.js";
|
|
3
|
+
import $ahdqC$react, { createContext, forwardRef } from "react";
|
|
4
|
+
import { mergeProps } from "react-aria/mergeProps";
|
|
5
|
+
import { filterDOMProps } from "react-aria/filterDOMProps";
|
|
6
|
+
import { useProgressBar } from "react-aria/useProgressBar";
|
|
7
|
+
import { clamp } from "react-stately/private/utils/number";
|
|
8
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+67f6792bdf102c28/node_modules/react-aria-components/dist/private/ProgressBar.mjs
|
|
9
|
+
const $6c0095e7e99364f2$export$e9f3bf65a26ce129 = /*#__PURE__*/ createContext(null);
|
|
10
|
+
const $6c0095e7e99364f2$export$c17561cb55d4db30 = /*#__PURE__*/ forwardRef(function ProgressBar(props, ref) {
|
|
11
|
+
[props, ref] = $7230ffa83bc0c2cf$export$29f1550f4b0d4415(props, ref, $6c0095e7e99364f2$export$e9f3bf65a26ce129);
|
|
12
|
+
let { value = 0, minValue = 0, maxValue = 100, isIndeterminate = false } = props;
|
|
13
|
+
value = clamp(value, minValue, maxValue);
|
|
14
|
+
let [labelRef, label] = $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8(!props["aria-label"] && !props["aria-labelledby"]);
|
|
15
|
+
let { progressBarProps, labelProps } = useProgressBar({
|
|
16
|
+
...props,
|
|
17
|
+
label
|
|
18
|
+
});
|
|
19
|
+
let range = maxValue - minValue;
|
|
20
|
+
let percentage = void 0;
|
|
21
|
+
if (!isIndeterminate) {
|
|
22
|
+
if (range === 0) percentage = 0;
|
|
23
|
+
else percentage = (value - minValue) / range * 100;
|
|
24
|
+
}
|
|
25
|
+
let renderProps = $7230ffa83bc0c2cf$export$4d86445c2cf5e3({
|
|
26
|
+
...props,
|
|
27
|
+
defaultClassName: "react-aria-ProgressBar",
|
|
28
|
+
values: {
|
|
29
|
+
percentage,
|
|
30
|
+
valueText: progressBarProps["aria-valuetext"],
|
|
31
|
+
isIndeterminate
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
let DOMProps = filterDOMProps(props, { global: true });
|
|
35
|
+
return /*#__PURE__*/ $ahdqC$react.createElement($7230ffa83bc0c2cf$export$df3a06d6289f983e.div, {
|
|
36
|
+
...mergeProps(DOMProps, renderProps, progressBarProps),
|
|
37
|
+
ref,
|
|
38
|
+
slot: props.slot || void 0
|
|
39
|
+
}, /*#__PURE__*/ $ahdqC$react.createElement($43a3b93638fe5db9$export$75b6ee27786ba447.Provider, { value: {
|
|
40
|
+
...labelProps,
|
|
41
|
+
ref: labelRef,
|
|
42
|
+
elementType: "span"
|
|
43
|
+
} }, renderProps.children));
|
|
44
|
+
});
|
|
45
|
+
//#endregion
|
|
46
|
+
export { $6c0095e7e99364f2$export$e9f3bf65a26ce129 as n, $6c0095e7e99364f2$export$c17561cb55d4db30 as t };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Mt as RadioVariantProps, an as InputVariantProps } from "./link.cva-D6L1c2wq.js";
|
|
2
|
+
import { n as Removed } from "./hints-B09_WDhL.js";
|
|
3
|
+
import { r as FormFieldProps } from "./FormField-XQbjfGSv.js";
|
|
4
|
+
import { i as FieldValues } from "./form.binding-DSXB2AOD.js";
|
|
5
|
+
import { n as UnsupportedAriaFieldProps, t as FormControlProps } from "./form.types-a2WVJDQX.js";
|
|
6
|
+
import { ReactElement, Ref } from "react";
|
|
7
|
+
import { Key, RadioGroupProps } from "react-aria-components";
|
|
8
|
+
//#region src/components/inputs/RadioGroup/RadioGroup.d.ts
|
|
9
|
+
/** One choice of a `RadioGroup`. */
|
|
10
|
+
interface RadioGroupItem<TKey extends Key = Key> {
|
|
11
|
+
/** The group's value while this choice is selected. */
|
|
12
|
+
id: TKey;
|
|
13
|
+
label: string | ReactElement;
|
|
14
|
+
isDisabled?: boolean;
|
|
15
|
+
}
|
|
16
|
+
interface RadioGroupFieldProps extends Omit<FormFieldProps, "variant">, RadioVariantProps, Omit<InputVariantProps, "variant">, Omit<RadioGroupProps, "children" | "className" | "defaultValue" | "onChange" | "value" | UnsupportedAriaFieldProps> {
|
|
17
|
+
ref?: Ref<HTMLDivElement>;
|
|
18
|
+
/** Hides the label visually while keeping it as the accessible name. Defaults to `UIConfig.radioGroup.hideLabel`. */
|
|
19
|
+
hideLabel?: boolean;
|
|
20
|
+
/** Marks the field as changed; only sets `data-is-dirty` for styling. Filled in automatically when bound with `field`. */
|
|
21
|
+
isDirty?: boolean;
|
|
22
|
+
inputClassName?: string;
|
|
23
|
+
labelClassName?: string;
|
|
24
|
+
}
|
|
25
|
+
interface RadioGroupItemsProps<TKey extends Key> {
|
|
26
|
+
/** The choices. `value` and `onChange` use their `id`s. */
|
|
27
|
+
items: readonly RadioGroupItem<TKey>[];
|
|
28
|
+
/** @deprecated Use `items`. */
|
|
29
|
+
options?: Removed<"Use `items`: { id, label }[]">;
|
|
30
|
+
}
|
|
31
|
+
interface RadioGroupValueProps<TKey extends Key> {
|
|
32
|
+
/** The `id` of the selected item. */
|
|
33
|
+
value?: TKey | null;
|
|
34
|
+
defaultValue?: TKey | null;
|
|
35
|
+
onChange?: (value: TKey) => void;
|
|
36
|
+
}
|
|
37
|
+
interface RadioGroupBaseProps<TKey extends Key = Key> extends RadioGroupFieldProps, RadioGroupItemsProps<TKey>, RadioGroupValueProps<TKey> {}
|
|
38
|
+
/** Props for a `RadioGroup` that owns its value through `value`/`defaultValue`/`onChange`. */
|
|
39
|
+
interface StandaloneRadioGroupProps<TKey extends Key = Key> extends RadioGroupBaseProps<TKey> {
|
|
40
|
+
field?: never;
|
|
41
|
+
}
|
|
42
|
+
type FieldKey<TKey extends Key> = TKey extends string ? string : TKey extends number ? number : TKey;
|
|
43
|
+
/** Props for a `RadioGroup` bound to a form field; the form owns the value, change, and blur handling. */
|
|
44
|
+
type ControlledRadioGroupProps<TKey extends Key = Key, TFieldValues extends FieldValues = FieldValues> = FormControlProps<RadioGroupFieldProps & RadioGroupValueProps<FieldKey<TKey>> & {
|
|
45
|
+
field?: never;
|
|
46
|
+
}, TFieldValues, "value", "an item id"> & RadioGroupItemsProps<TKey>;
|
|
47
|
+
/** Props for `RadioGroup`: either its own value props, or `field={{ form, name }}` to bind a form field. */
|
|
48
|
+
type RadioGroupProps$1<TKey extends Key = Key, TFieldValues extends FieldValues = FieldValues> = StandaloneRadioGroupProps<TKey> | ControlledRadioGroupProps<TKey, TFieldValues>;
|
|
49
|
+
declare const RadioGroupComponent: <TKey extends Key = Key, TFieldValues extends FieldValues = FieldValues>(props: RadioGroupProps$1<TKey, TFieldValues>) => import("react").JSX.Element;
|
|
50
|
+
declare const RadioGroup: typeof RadioGroupComponent;
|
|
51
|
+
//#endregion
|
|
52
|
+
export { StandaloneRadioGroupProps as a, RadioGroupProps$1 as i, RadioGroup as n, RadioGroupItem as r, ControlledRadioGroupProps as t };
|
|
@@ -5,12 +5,15 @@ import { t as $43a3b93638fe5db9$export$75b6ee27786ba447 } from "./Label-BGvF9vWx
|
|
|
5
5
|
import { t as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-D72yc4S6.js";
|
|
6
6
|
import { n as $1f3c3b1a70cec653$export$ff05c3ac10437e03, t as $cdaed739b1139372$export$c24727297075ec6a } from "./Form-CqF1SaVw.js";
|
|
7
7
|
import { t as $792f28e438b9ad5f$export$758399f318e6385a } from "./SharedElementTransition-CZ2bE7yo.js";
|
|
8
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
8
|
+
import { t as UIConfig } from "./uiConfig.context-CjnLnQOo.js";
|
|
9
|
+
import { n as FieldController } from "./form.binding-Brdjq2yr.js";
|
|
10
|
+
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
|
|
9
11
|
import { t as CheckContent } from "./CheckContent-BKLnTPZr.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { t as
|
|
13
|
-
import {
|
|
12
|
+
import { t as useFieldAccessibility } from "./useFieldAccessibility-eZIMECmG.js";
|
|
13
|
+
import { n as FormFieldLabel, t as FormField } from "./FormField-TI8Vx5aC.js";
|
|
14
|
+
import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-mm1dnfKP.js";
|
|
15
|
+
import { n as resolveInputLayout, t as isFieldHeaderHiddenByLayout } from "./inputLayout-CIVpuUBq.js";
|
|
16
|
+
import { a as radioIndicatorClass, i as radioDefinition, n as radioContentRowDefinition, o as radioTypography, r as radioContentWrapperDefinition, t as radioContentClassName } from "./radio.cva-Dt5N2ul2.js";
|
|
14
17
|
import $ahdqC$react, { createContext, forwardRef, memo, useContext, useMemo } from "react";
|
|
15
18
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
19
|
import { mergeProps } from "react-aria/mergeProps";
|
|
@@ -142,6 +145,7 @@ const $fe21c36db05242bb$export$f4422ae58352e179 = /*#__PURE__*/ forwardRef(funct
|
|
|
142
145
|
});
|
|
143
146
|
//#endregion
|
|
144
147
|
//#region src/components/inputs/RadioGroup/RadioGroup.tsx
|
|
148
|
+
const toAriaValue = (id) => id == null ? id : String(id);
|
|
145
149
|
const RadioGroupBase = (props) => {
|
|
146
150
|
const ui = UIConfig.useConfig();
|
|
147
151
|
const radioCva = UIOverrides.useCva("radio.cva", radioDefinition);
|
|
@@ -151,11 +155,12 @@ const RadioGroupBase = (props) => {
|
|
|
151
155
|
const inputBaseCva = UIOverrides.useCva("input.baseCva", inputBaseDefinition);
|
|
152
156
|
const inputSizeCva = UIOverrides.useCva("input.sizeCva", inputSizeDefinition);
|
|
153
157
|
const radioContentClassNameMap = UIOverrides.useMapper("radio.contentClassName", radioContentClassName);
|
|
154
|
-
const { ref, label, tooltipText, helperText, isDirty, isRequired, rightContent, isDisabled, headerClassName, errorClassName, labelClassName, inputClassName,
|
|
155
|
-
const as = resolveInputLayout(layoutProp,
|
|
158
|
+
const { ref, label, tooltipText, helperText, isDirty, isRequired, rightContent, isDisabled, headerClassName, errorClassName, labelClassName, inputClassName, error, isInvalid: isInvalidProp, className, items, value, defaultValue, onChange, onBlur, layout: layoutProp, size: sizeProp, variant: variantProp, hideLabel: hideLabelProp, ...rest } = props;
|
|
159
|
+
const as = resolveInputLayout(layoutProp, ui.input.layout);
|
|
156
160
|
const size = sizeProp ?? ui.input.size;
|
|
157
161
|
const variant = variantProp ?? ui.radioGroup.variant;
|
|
158
162
|
const hideLabel = hideLabelProp ?? ui.radioGroup.hideLabel;
|
|
163
|
+
const isInvalid = isInvalidProp || !!error;
|
|
159
164
|
const radioClassName = radioCva({
|
|
160
165
|
variant,
|
|
161
166
|
...rest
|
|
@@ -168,16 +173,22 @@ const RadioGroupBase = (props) => {
|
|
|
168
173
|
variant,
|
|
169
174
|
...rest
|
|
170
175
|
});
|
|
176
|
+
const { describedBy, errorMessageId, helperTextId } = useFieldAccessibility({
|
|
177
|
+
describedBy: rest["aria-describedby"],
|
|
178
|
+
error,
|
|
179
|
+
helperText
|
|
180
|
+
});
|
|
171
181
|
const formFieldProps = {
|
|
172
182
|
className,
|
|
173
183
|
error,
|
|
184
|
+
errorMessageId,
|
|
174
185
|
label,
|
|
175
186
|
tooltipText,
|
|
176
187
|
helperText,
|
|
188
|
+
helperTextId,
|
|
177
189
|
isRequired,
|
|
178
190
|
rightContent,
|
|
179
|
-
|
|
180
|
-
hideLabel,
|
|
191
|
+
hideLabel: hideLabel || isFieldHeaderHiddenByLayout(as),
|
|
181
192
|
isDisabled,
|
|
182
193
|
headerClassName,
|
|
183
194
|
errorClassName
|
|
@@ -189,7 +200,7 @@ const RadioGroupBase = (props) => {
|
|
|
189
200
|
helperText,
|
|
190
201
|
isRequired,
|
|
191
202
|
rightContent,
|
|
192
|
-
isHeaderHidden: hideLabel
|
|
203
|
+
isHeaderHidden: hideLabel,
|
|
193
204
|
isDisabled,
|
|
194
205
|
className: headerClassName,
|
|
195
206
|
labelProps
|
|
@@ -197,24 +208,29 @@ const RadioGroupBase = (props) => {
|
|
|
197
208
|
const selectedValue = value ?? defaultValue;
|
|
198
209
|
const shouldRenderInputFrame = as !== "default";
|
|
199
210
|
const handleChange = (nextValue) => {
|
|
200
|
-
|
|
211
|
+
const item = items.find((item) => String(item.id) === nextValue);
|
|
212
|
+
if (item) onChange?.(item.id);
|
|
201
213
|
};
|
|
202
214
|
return /* @__PURE__ */ jsx($fe21c36db05242bb$export$a98f0dcb43a68a25, {
|
|
203
215
|
...rest,
|
|
204
216
|
...fieldProps,
|
|
217
|
+
"aria-describedby": describedBy,
|
|
218
|
+
"aria-errormessage": rest["aria-errormessage"] ?? errorMessageId,
|
|
205
219
|
ref,
|
|
206
|
-
value,
|
|
207
|
-
defaultValue,
|
|
220
|
+
value: toAriaValue(value),
|
|
221
|
+
defaultValue: toAriaValue(defaultValue),
|
|
208
222
|
onChange: handleChange,
|
|
209
223
|
onBlur,
|
|
210
224
|
isDisabled,
|
|
211
|
-
isInvalid
|
|
225
|
+
isInvalid,
|
|
226
|
+
isRequired,
|
|
227
|
+
validationBehavior: "aria",
|
|
212
228
|
"data-is-dirty": isDirty || void 0,
|
|
213
229
|
"data-is-required": isRequired || void 0,
|
|
214
230
|
className: "group",
|
|
215
231
|
children: /* @__PURE__ */ jsx(FormField, {
|
|
216
232
|
...formFieldProps,
|
|
217
|
-
as,
|
|
233
|
+
layout: as,
|
|
218
234
|
labelProps,
|
|
219
235
|
className: clsx("w-full", as === "inline" && "h-full", className),
|
|
220
236
|
tabIndex: as === "inline" ? -1 : void 0,
|
|
@@ -222,22 +238,22 @@ const RadioGroupBase = (props) => {
|
|
|
222
238
|
children: /* @__PURE__ */ jsx("div", {
|
|
223
239
|
className: clsx("group/radio-group-content relative", shouldRenderInputFrame && inputBaseCva({
|
|
224
240
|
variant: ui.input.variant,
|
|
225
|
-
as
|
|
241
|
+
layout: as
|
|
226
242
|
}), inputClassName),
|
|
227
243
|
"data-rac": "",
|
|
228
244
|
"data-disabled": isDisabled || void 0,
|
|
229
245
|
"data-is-disabled": isDisabled || void 0,
|
|
230
|
-
"data-invalid":
|
|
246
|
+
"data-invalid": isInvalid || void 0,
|
|
231
247
|
"data-has-selection": selectedValue != null && selectedValue !== "" ? true : void 0,
|
|
232
248
|
"data-radio-group-content": "",
|
|
233
249
|
children: /* @__PURE__ */ jsxs("div", {
|
|
234
250
|
className: clsx(radioContentWrapperCva({
|
|
235
251
|
variant,
|
|
236
|
-
as,
|
|
252
|
+
layout: as,
|
|
237
253
|
hasInputFrame: shouldRenderInputFrame,
|
|
238
254
|
...rest
|
|
239
255
|
}), shouldRenderInputFrame && inputSizeCva({
|
|
240
|
-
as,
|
|
256
|
+
layout: as,
|
|
241
257
|
size
|
|
242
258
|
})),
|
|
243
259
|
"data-is-dirty": isDirty || void 0,
|
|
@@ -249,27 +265,51 @@ const RadioGroupBase = (props) => {
|
|
|
249
265
|
}), /* @__PURE__ */ jsx("div", {
|
|
250
266
|
className: radioContentRowCva({
|
|
251
267
|
variant,
|
|
252
|
-
as,
|
|
268
|
+
layout: as,
|
|
253
269
|
hasInputFrame: shouldRenderInputFrame,
|
|
254
270
|
...rest
|
|
255
271
|
}),
|
|
256
|
-
children:
|
|
257
|
-
value:
|
|
272
|
+
children: items.map((item) => /* @__PURE__ */ jsxs($fe21c36db05242bb$export$d7b12c4107be0d61, {
|
|
273
|
+
value: String(item.id),
|
|
274
|
+
isDisabled: item.isDisabled,
|
|
258
275
|
className: clsx("relative", radioIndicatorClass),
|
|
259
276
|
children: [/* @__PURE__ */ jsx("div", { className: radioClassName }), /* @__PURE__ */ jsx(CheckContent, {
|
|
260
277
|
typography: radioTypographyProps,
|
|
261
278
|
contentClassName: radioContentClassNameValue,
|
|
262
279
|
className: labelClassName,
|
|
263
|
-
children:
|
|
280
|
+
children: item.label
|
|
264
281
|
})]
|
|
265
|
-
},
|
|
282
|
+
}, item.id))
|
|
266
283
|
})]
|
|
267
284
|
})
|
|
268
285
|
})
|
|
269
286
|
})
|
|
270
287
|
});
|
|
271
288
|
};
|
|
272
|
-
const
|
|
289
|
+
const ControlledRadioGroup = (props) => {
|
|
290
|
+
const { field, ref, ...innerProps } = props;
|
|
291
|
+
return /* @__PURE__ */ jsx(FieldController, {
|
|
292
|
+
control: field.form,
|
|
293
|
+
name: field.name,
|
|
294
|
+
onValueChange: field.onValueChange,
|
|
295
|
+
onBlur: field.onBlur,
|
|
296
|
+
render: ({ field, fieldState: { error, isDirty } }) => /* @__PURE__ */ jsx(RadioGroupBase, {
|
|
297
|
+
...innerProps,
|
|
298
|
+
ref: $a8ea2faf2ebe4d2f$re_export$mergeRefs(ref, field.ref),
|
|
299
|
+
value: field.value ?? null,
|
|
300
|
+
onChange: (value) => {
|
|
301
|
+
field.onChange(value);
|
|
302
|
+
field.onValueCommit();
|
|
303
|
+
},
|
|
304
|
+
onBlur: field.onBlur,
|
|
305
|
+
name: field.name,
|
|
306
|
+
isDirty,
|
|
307
|
+
isDisabled: field.disabled || props.isDisabled,
|
|
308
|
+
error: props.error ?? error?.message
|
|
309
|
+
})
|
|
310
|
+
});
|
|
311
|
+
};
|
|
312
|
+
const RadioGroupComponent = (props) => props.field ? /* @__PURE__ */ jsx(ControlledRadioGroup, { ...props }) : /* @__PURE__ */ jsx(RadioGroupBase, { ...props });
|
|
273
313
|
const RadioGroup = memo(RadioGroupComponent);
|
|
274
314
|
//#endregion
|
|
275
|
-
export {
|
|
315
|
+
export { RadioGroup as t };
|