@povio/ui 6.0.0-rc.12 → 6.0.0-rc.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +523 -42
- package/dist/{Accordion-ORBin0EZ.js → Accordion-BNHpv7Zj.js} +42 -42
- package/dist/{Accordion-Cup5eRZz.d.ts → Accordion-CR9oomZY.d.ts} +29 -17
- package/dist/Alert-xHGPLUpt.d.ts +36 -0
- package/dist/AlertDialog-CKcUZ6l9.d.ts +70 -0
- package/dist/Autocomplete-CkWTSFoj.d.ts +123 -0
- package/dist/Autocomplete-CrNDRxvg.js +319 -0
- package/dist/Badge-B25YEMEw.d.ts +67 -0
- package/dist/BottomSheet-CtcPZG82.d.ts +65 -0
- package/dist/{BottomSheet-CGipksM_.js → BottomSheet-tUXH3NjS.js} +9 -9
- package/dist/{BottomSheet.lazy-CuJMUeJP.d.ts → BottomSheet.lazy-DuwAJSaI.d.ts} +1 -1
- package/dist/{Breadcrumbs-CcB0oOF8.d.ts → Breadcrumbs-BrtRh_dX.d.ts} +6 -3
- package/dist/{Breadcrumbs-a1-q_he0.js → Breadcrumbs-D8WXqOLN.js} +36 -20
- package/dist/{Button-BaODzvZd.js → Button-C1Jv1Plk.js} +1 -1
- package/dist/{Button-0SswSdDg.d.ts → Button-DDuk3hJ3.d.ts} +2 -2
- package/dist/{Button-C1YB5dOw.js → Button-DF6sbTuF.js} +3 -7
- package/dist/{ButtonBase-s-VV7oCa.js → ButtonBase-BYJz1JkH.js} +12 -20
- package/dist/ButtonBase-Bn_FT89h.d.ts +47 -0
- package/dist/{ButtonContent-Dztbuz3q.js → ButtonContent-2KsbdWRO.js} +5 -5
- package/dist/{Calendar-yaQubCWK.js → Calendar-DdneUEhM.js} +71 -35
- package/dist/{Calendar.lazy-DcVss9Bk.js → Calendar.lazy-BY0kLoYH.js} +7 -7
- package/dist/Checkbox-Bwl6MA-V.d.ts +49 -0
- package/dist/{Checkbox-Bjsbx-wK.js → Checkbox-E2bns_n0.js} +40 -14
- package/dist/CheckboxCheckmark-Beu8T1g9.js +42 -0
- package/dist/CheckboxGroup-0rzsn-bA.d.ts +52 -0
- package/dist/{CheckboxGroup-B3O3IUiu.js → CheckboxGroup-C7epIEpW.js} +75 -35
- package/dist/ColumnConfigContent-LNq-6Brf.js +1025 -0
- package/dist/ColumnListContent-Dzze5R7T.js +133 -0
- package/dist/DatePicker-B70SCKfT.d.ts +80 -0
- package/dist/{DatePicker-bme8zGBo.js → DatePicker-BU-34fCk.js} +117 -46
- package/dist/{DatePickerInput-vLlL5ATh.d.ts → DatePickerInput-BCuz08Ws.d.ts} +3 -3
- package/dist/{DatePickerInput-C2881tvS.js → DatePickerInput-CMEJmZSQ.js} +41 -30
- package/dist/{DateRangePicker-Blg158JD.js → DateRangePicker-D0RtqeBM.js} +90 -162
- package/dist/DateRangePicker-jovxcWGk.d.ts +102 -0
- package/dist/{DateTimePicker-CdRFt8WM.js → DateTimePicker-Cbdt76CL.js} +94 -40
- package/dist/DateTimePicker-Cfi3ruFy.d.ts +83 -0
- package/dist/Dialog-BWNQjIgo.d.ts +66 -0
- package/dist/{Dialog-C9H9_BmK.js → Dialog-Bpwr1nuy.js} +15 -15
- package/dist/{Dialog-DN5703sy.js → Dialog-ebjPH22i.js} +23 -19
- package/dist/{Disclosure-BRSkMbZQ.js → Disclosure-D_aym2zh.js} +3 -3
- package/dist/Drawer-o018RqIt.d.ts +42 -0
- package/dist/DropdownMenu-3V-G7fZ7.d.ts +51 -0
- package/dist/{DropdownMenu-DS0RaEfH.js → DropdownMenu-C4WitobV.js} +33 -21
- package/dist/{DropdownMenuDesktop-DGPIfex-.js → DropdownMenuDesktop-BM7659Sk.js} +14 -8
- package/dist/{FileInput-BUwtAF2-.js → FileInput-Bc_E1M1X.js} +76 -81
- package/dist/FileInput-CWRW7OzZ.d.ts +61 -0
- package/dist/{FileTrigger-DlryDp2T.js → FileTrigger-tGSUFrb2.js} +6 -6
- package/dist/FileUpload-DVnp9xxv.d.ts +181 -0
- package/dist/FileUpload-Dk6ZmgWF.js +1105 -0
- package/dist/{Form-CqF1SaVw.js → Form-4jZarkjk.js} +2 -2
- package/dist/FormField-BgiWLGjf.d.ts +70 -0
- package/dist/{FormField-dduTMkNH.js → FormField-DOZ7eXjA.js} +11 -11
- package/dist/{FormFieldError-BT4uxbKY.d.ts → FormFieldError-C7yOdjzQ.d.ts} +1 -0
- package/dist/FormFieldHeaderTooltip-DW9sqJWl.js +22 -0
- package/dist/{Heading-D4XFYv__.js → Heading-B9G3z6Es.js} +2 -2
- package/dist/HiddenFormValue-DZ2d9eoA.js +20 -0
- package/dist/IconButton-Bjjf5cQL.d.ts +24 -0
- package/dist/{IconSlot-CqNuZl0E.js → IconSlot-TAWTJ6iK.js} +2 -4
- package/dist/{InlineTooltipWrapper-CKTiFpZn.js → InlineTooltipWrapper-CcdpMJa6.js} +1 -1
- package/dist/{Input-BG0Xjw5X.js → Input-BkR3jkvt.js} +2 -2
- package/dist/{Input-CG5LQ0zs.js → Input-CvYyjMWx.js} +95 -60
- package/dist/Input-lppNS8wM.d.ts +56 -0
- package/dist/{InputContent-Fx2E4UXl.js → InputContent-B5YjsLDE.js} +15 -13
- package/dist/InputContent-Bgalf6R1.d.ts +39 -0
- package/dist/{Label-BGvF9vWx.js → Label-VTcaaLO8.js} +2 -2
- package/dist/{Link-Chux-Clm.js → Link-8zP_NC_c.js} +2 -2
- package/dist/Link-HJ4y-xiW.d.ts +15 -0
- package/dist/{ListBox-DhR5kojP.js → ListBox-Ck-B1Jae.js} +9 -9
- package/dist/{Modal-DcLWF9cB.js → Modal-xT-Wz5GH.js} +3 -3
- package/dist/{NumberField-DxuikBcr.js → NumberField-BXLzNb2T.js} +92 -63
- package/dist/NumberField-Q-4y3jpb.d.ts +41 -0
- package/dist/{NumberFormatter-DYarfm5F.js → NumberFormatter-D5csbNXm.js} +1 -1
- package/dist/{NumberRangeInput-8bOjNEnS.js → NumberRangeInput-BBzZCC54.js} +153 -102
- package/dist/NumberRangeInput-DuWOdSdU.d.ts +89 -0
- package/dist/{OverlayArrow-DF0jMwul.js → OverlayArrow-BptI-A_7.js} +2 -2
- package/dist/{PageHeader-DTfzf-dA.d.ts → PageHeader-jVaC3Z9L.d.ts} +6 -5
- package/dist/PasswordInput-DtTnGHRD.d.ts +16 -0
- package/dist/{PasswordInput.bound-Dfq5c3JQ.js → PasswordInput-U0QhNsMp.js} +6 -6
- package/dist/Popover-ClCEOP3e.d.ts +51 -0
- package/dist/Progress-DlXY0dv_.js +180 -0
- package/dist/Progress-VkkXbIh7.d.ts +26 -0
- package/dist/ProgressBar-mpNpV7ow.js +46 -0
- package/dist/{RadioGroup-IL4Y8XHO.js → RadioGroup-BPPJyA1s.js} +72 -32
- package/dist/RadioGroup-BbcrP56w.d.ts +52 -0
- package/dist/{RangeCalendar-DT63UD8K.js → RangeCalendar-DIVjIl0T.js} +12 -10
- package/dist/Select-D1qIWZCv.d.ts +248 -0
- package/dist/{Select-BM8PNrjC.js → Select-DlbVDCz8.js} +452 -191
- package/dist/{SelectListBox-BFSZxDSi.js → SelectListBox-CCr5YY86.js} +55 -43
- package/dist/{SelectionIndicator-C3hniBa2.js → SelectionIndicator-CvuKjZRP.js} +3 -3
- package/dist/{SharedElementTransition-CZ2bE7yo.js → SharedElementTransition-BkyYit3Q.js} +2 -2
- package/dist/{SidebarWorkspaces-DJknAfS9.js → SidebarWorkspaces-CIpFJGOa.js} +283 -366
- package/dist/{SidebarWorkspaces-DDHJAdNH.d.ts → SidebarWorkspaces-DcwA_jv7.d.ts} +31 -17
- package/dist/Slider-CLViwkE1.d.ts +57 -0
- package/dist/{Slider-DCsCCPFx.js → Slider-_RsgBJcg.js} +72 -15
- package/dist/Spinner-GMEauCHv.d.ts +13 -0
- package/dist/SplitButton-BdP4xjFQ.d.ts +25 -0
- package/dist/{Stepper-Dyhxp0Tl.js → Stepper-D4z7JNsD.js} +116 -88
- package/dist/Stepper-DBb0qfla.d.ts +49 -0
- package/dist/{Switch-BfpSMMpv.js → Switch-Bi3_bUw1.js} +56 -14
- package/dist/Switch-DCxONL2Q.d.ts +42 -0
- package/dist/TableDnd-CG1yOlxh.js +238 -0
- package/dist/TableDragHandle-CXApnuUm.js +51 -0
- package/dist/{TabsFilters-DybNturW.js → TabsFilters-BPogry73.js} +46 -35
- package/dist/TabsFilters-CPfGBODw.d.ts +59 -0
- package/dist/Tag-xhcJOv_X.d.ts +26 -0
- package/dist/{Text-D72yc4S6.js → Text-D7Nqkw1l.js} +1 -1
- package/dist/TextArea-BYX9Kk_v.d.ts +33 -0
- package/dist/{TextArea-Blsip3ZC.js → TextArea-CuJS3-Nv.js} +62 -35
- package/dist/{TimePicker-4hV5zbgd.js → TimePicker-ByfjqkLp.js} +120 -56
- package/dist/TimePicker-UTo9C6gz.d.ts +64 -0
- package/dist/TimePickerForm-CaIHR0PV.js +532 -0
- package/dist/{ToastContainer-Dd0LPykL.js → ToastContainer-tr7Zxahc.js} +4 -4
- package/dist/{ToggleButton-HUZ8ij6i.d.ts → ToggleButton-BX8o7ECO.d.ts} +2 -2
- package/dist/{ToggleButton-P1z1pxzT.js → ToggleButton-D8BT67FO.js} +5 -5
- package/dist/ToggleGroup-18c-FZ_r.js +500 -0
- package/dist/ToggleGroup-UazUtgU1.d.ts +95 -0
- package/dist/{Tooltip-DRB6lo0U.js → Tooltip-Dl3sf8fq.js} +5 -5
- package/dist/Tooltip-FcJ29dhq.d.ts +33 -0
- package/dist/TooltipEllipsis-7QF00kXk.d.ts +21 -0
- package/dist/{TooltipWrapper-BSY31JMc.js → TooltipWrapper-bvNpM6ku.js} +6 -6
- package/dist/{Typography-DJojwiXV.d.ts → Typography-auHWN282.d.ts} +5 -1
- package/dist/{badgeButton.cva-t5PQOH4M.js → badge.cva-C9mE8CMf.js} +23 -24
- package/dist/{button.cva-Ciga0rdG.js → button.cva-C2aoXMh-.js} +10 -16
- package/dist/{buttonContent.cva-BapnODby.d.ts → buttonContent.cva-CeGnrjoA.d.ts} +2 -2
- package/dist/calendarHeader.cva-D3sXR7ox.js +23 -0
- package/dist/{checkbox.cva-aLJS7v4z.js → checkbox.cva-qU_q0lSX.js} +14 -14
- package/dist/columnConfig.cva-CERwSZRN.js +29 -0
- 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 +166 -81
- package/dist/components/bottom-sheet-header.d.ts +1 -1
- package/dist/components/bottom-sheet-header.js +25 -21
- 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 +31 -28
- 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 +2 -2
- 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 +3 -3
- package/dist/components/style-definitions.js +62 -20
- 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 +2 -2
- 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-overrides.d.ts +1 -1
- package/dist/config/ui-router.d.ts +1 -1
- package/dist/config/ui-router.js +1 -1
- package/dist/confirmation.context-C_-uADGJ.js +93 -0
- package/dist/confirmation.context-DkWyR2aT.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-CP6vV22I.js} +68 -39
- package/dist/{dom.utils-BPooTXtC.js → dom.utils-CqejLWIQ.js} +1 -1
- 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-SrF6v406.js} +3 -3
- package/dist/form-field-C735uXsi.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-D8vXIoiq.js → i18n-DaIHnR2n.js} +123 -9
- package/dist/{i18n-DM-PUcxQ.d.ts → i18n-xXkHgzet.d.ts} +124 -4
- package/dist/iconSlot.cva-DyhOI7EK.js +5 -0
- package/dist/{import-C7W0Wv2r.js → import-Cz8NlFqm.js} +40 -16
- package/dist/index.d.ts +66 -84
- package/dist/index.js +57 -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/{intlStrings-Cu1YN1tA.js → intlStrings-ClpdCJmU.js} +35 -35
- package/dist/{isEqual-LFw0W5rU.js → isEqual-BdJdNr5O.js} +1 -1
- package/dist/{label.cva-DTfT6FrX.js → label.cva-DJ5Dmbz5.js} +7 -7
- package/dist/link.context-BxVK2yQ5.d.ts +20 -0
- package/dist/{link.context-TPjDtjw3.js → link.context-CD5h_b5O.js} +12 -11
- package/dist/link.cva-ZhpQz3P0.d.ts +2277 -0
- 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/{selectItem.cva-B6vxey2R.js → selectItem.cva-DsOZSSPx.js} +2 -1
- package/dist/sidebar.cva-BgxTCejU.js +150 -0
- package/dist/spinner.cva-j4kGmIWC.js +17 -0
- package/dist/{staticDateTimeSegments-CVuAhDDl.js → staticDateTimeSegments-BgUrcqXD.js} +379 -94
- package/dist/{status.cva-CYgi3Htz.js → status.cva-WLEqUAjH.js} +9 -9
- package/dist/styles/input.d.ts +1 -1
- package/dist/{table.cva-DkcsOmZG.js → table.cva-n9TO_vu1.js} +68 -17
- package/dist/tableCells.cva-Br0_kgRM.js +18 -0
- package/dist/tableColumnConfigStorage-Cciq8gVe.js +215 -0
- package/dist/tableVirtualStore-whSmFzTV.js +67 -0
- package/dist/tanstack/form.d.ts +3 -3
- package/dist/tanstack/form.js +3 -3
- package/dist/tanstack/table-context.d.ts +2 -0
- package/dist/tanstack/table-context.js +2 -0
- package/dist/tanstack/table-types.d.ts +55 -0
- package/dist/tanstack/table.d.ts +5 -3
- package/dist/tanstack/table.js +3 -2
- package/dist/tanstack-JB8VmS9j.js +73 -0
- package/dist/tanstack-cQOW9-Q2.d.ts +165 -0
- package/dist/tanstack-table-DdWYwCZM.d.ts +858 -0
- package/dist/tanstack-table-M1M26UQJ.js +5299 -0
- package/dist/tanstack.d.ts +66 -84
- package/dist/tanstack.js +57 -92
- package/dist/{toast.cva-B6NXTwbZ.js → toast.cva-DusQwZw-.js} +13 -9
- package/dist/toast.runtime-ZN5q4T9X.js +25 -0
- package/dist/{toggleGroup.cva-CJ-3Ps7j.js → toggleGroup.cva-CvNS5QO1.js} +2 -2
- package/dist/{uiConfig.context-3DN9w6oU.js → uiConfig.context-NWmBJ2Hc.js} +72 -10
- package/dist/uiConfig.context-ykH4E2js.d.ts +19 -0
- package/dist/uiConfig.types-BsyPKepP.d.ts +291 -0
- package/dist/{uiOverrides.context-DHHzLSnq.d.ts → uiOverrides.context-C5Maic5Q.d.ts} +106 -0
- package/dist/{useAsyncList-Ct74ve3i.js → useAsyncList-DkIjhlce.js} +142 -37
- package/dist/useAsyncList-F-328rtE.d.ts +25 -0
- package/dist/useAutoFocus-K-bfNxa2.js +16 -0
- package/dist/useBreakpoint-BPrZNuNl.d.ts +9 -0
- package/dist/{useBreakpoint-CJ3mx7UF.js → useBreakpoint-DtYSRweq.js} +6 -2
- package/dist/{useControlledState-CuU1VIh1.js → useControlledState-C1-Mt2i0.js} +1 -1
- package/dist/useDebounceCallback-C7YKfjXW.js +96 -0
- package/dist/useFilters-CybBXUAA.js +217 -0
- package/dist/useFilters-DrfBFNLw.d.ts +57 -0
- package/dist/useFormAutosave-BzCGqFqi.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-npiqOvyB.js} +107 -6
- package/dist/useRemoveButton-zhlA1Pbc.js +98 -0
- package/dist/useResolveDateRangePreset-DOSzJR-N.d.ts +64 -0
- package/dist/useResolveDateRangePreset-k_h_XJBG.js +26 -0
- package/dist/{useScrollableListBox-oYKqU3Hp.js → useScrollableListBox-4pieApqz.js} +1 -1
- package/dist/{useStaticInputHandoff-BN0fOerH.js → useStaticInputHandoff-DrNFrvD7.js} +6 -1
- package/dist/useTableVirtualizer-sFInQiH-.d.ts +162 -0
- package/dist/useToast-BHqkSByv.d.ts +78 -0
- package/dist/useToast-DgqC6Ta_.js +63 -0
- package/dist/utils/file.d.ts +1 -1
- package/dist/utils/file.js +1 -1
- package/dist/{utils-BkLF-JA3.js → utils-Q5Oc6oX2.js} +1 -1
- package/llms.txt +3201 -0
- package/package.json +22 -118
- 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/TimePickerForm-DD9VA_td.js +0 -225
- 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/uiConfig.context-BnCORTNm.d.ts +0 -132
- 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/useTableColumnConfig-CXYgj5xi.js +0 -1906
- package/dist/useTableNav-BusSFEVC.d.ts +0 -197
- 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-lppNS8wM.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 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./i18n-
|
|
2
|
-
import { t as Input } from "./Input
|
|
3
|
-
import { Eye, EyeOff } from "lucide-react";
|
|
1
|
+
import "./i18n-DaIHnR2n.js";
|
|
2
|
+
import { t as Input } from "./Input-CvYyjMWx.js";
|
|
4
3
|
import { memo, useState } from "react";
|
|
5
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { Eye, EyeOff } from "lucide-react";
|
|
6
6
|
import { useTranslation } from "react-i18next";
|
|
7
|
-
//#region src/components/inputs/Input/PasswordInput/PasswordInput.
|
|
7
|
+
//#region src/components/inputs/Input/PasswordInput/PasswordInput.tsx
|
|
8
8
|
const PasswordInputComponent = (props) => {
|
|
9
9
|
const { t } = useTranslation("ui");
|
|
10
10
|
const [isRevealed, setIsRevealed] = useState(false);
|
|
@@ -13,8 +13,8 @@ const PasswordInputComponent = (props) => {
|
|
|
13
13
|
type: isRevealed ? "text" : "password",
|
|
14
14
|
action: {
|
|
15
15
|
icon: isRevealed ? Eye : EyeOff,
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
label: t(($) => isRevealed ? $.ui.password.hide : $.ui.password.reveal),
|
|
17
|
+
onPress: () => setIsRevealed(!isRevealed)
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { n as Removed } from "./hints-B09_WDhL.js";
|
|
2
|
+
import { t as BottomSheetProps } from "./BottomSheet-CtcPZG82.js";
|
|
3
|
+
import "./BottomSheet.lazy-DuwAJSaI.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,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-mpNpV7ow.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,26 @@
|
|
|
1
|
+
import { qt as ProgressVariantProps } from "./link.cva-ZhpQz3P0.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,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-Q5Oc6oX2.js";
|
|
2
|
+
import { t as $43a3b93638fe5db9$export$75b6ee27786ba447 } from "./Label-VTcaaLO8.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+6f4b9a1cfb20c0ae/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 };
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
2
|
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
-
import { c as $7230ffa83bc0c2cf$export$ef03459518577ad4, i as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, l as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a } from "./utils-
|
|
4
|
-
import { t as $43a3b93638fe5db9$export$75b6ee27786ba447 } from "./Label-
|
|
5
|
-
import { t as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-
|
|
6
|
-
import { n as $1f3c3b1a70cec653$export$ff05c3ac10437e03, t as $cdaed739b1139372$export$c24727297075ec6a } from "./Form-
|
|
7
|
-
import { t as $792f28e438b9ad5f$export$758399f318e6385a } from "./SharedElementTransition-
|
|
8
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
3
|
+
import { c as $7230ffa83bc0c2cf$export$ef03459518577ad4, i as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, l as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a } from "./utils-Q5Oc6oX2.js";
|
|
4
|
+
import { t as $43a3b93638fe5db9$export$75b6ee27786ba447 } from "./Label-VTcaaLO8.js";
|
|
5
|
+
import { t as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-D7Nqkw1l.js";
|
|
6
|
+
import { n as $1f3c3b1a70cec653$export$ff05c3ac10437e03, t as $cdaed739b1139372$export$c24727297075ec6a } from "./Form-4jZarkjk.js";
|
|
7
|
+
import { t as $792f28e438b9ad5f$export$758399f318e6385a } from "./SharedElementTransition-BkyYit3Q.js";
|
|
8
|
+
import { t as UIConfig } from "./uiConfig.context-NWmBJ2Hc.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-DOZ7eXjA.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";
|
|
@@ -23,7 +26,7 @@ import { VisuallyHidden } from "react-aria/VisuallyHidden";
|
|
|
23
26
|
import { useRadio, useRadioGroup } from "react-aria/useRadioGroup";
|
|
24
27
|
import { useRadioGroupState } from "react-stately/useRadioGroupState";
|
|
25
28
|
import { useLabel } from "@react-aria/label";
|
|
26
|
-
//#region ../../node_modules/.bun/react-aria-components@1.22.1+
|
|
29
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+6f4b9a1cfb20c0ae/node_modules/react-aria-components/dist/private/RadioGroup.mjs
|
|
27
30
|
const $fe21c36db05242bb$export$a79eda4ff50e30b6 = /*#__PURE__*/ createContext(null);
|
|
28
31
|
const $fe21c36db05242bb$export$b118023277d4a5c3 = /*#__PURE__*/ createContext(null);
|
|
29
32
|
const $fe21c36db05242bb$export$29d84393af70866c = /*#__PURE__*/ createContext(null);
|
|
@@ -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 };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Mt as RadioVariantProps, an as InputVariantProps } from "./link.cva-ZhpQz3P0.js";
|
|
2
|
+
import { n as Removed } from "./hints-B09_WDhL.js";
|
|
3
|
+
import { r as FormFieldProps } from "./FormField-BgiWLGjf.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 };
|