@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
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { t as BottomSheetProps } from "./BottomSheet-BZmDJBR-.js";
|
|
2
|
-
import { n as FormFieldProps } from "./FormField-DGyCDxOp.js";
|
|
3
|
-
import { n as InputVariantProps } from "./input.cva-BjuHsDGy.js";
|
|
4
|
-
import { s as OmitDiscriminatedUnion } from "./common-UBFya8WY.js";
|
|
5
|
-
import { t as AsyncList } from "./useAsyncList-Cu-Y8If2.js";
|
|
6
|
-
import { FocusEventHandler, MouseEventHandler, ReactElement, ReactNode, Ref } from "react";
|
|
7
|
-
import { Key } from "react-aria-components";
|
|
8
|
-
import { AriaButtonProps } from "react-aria";
|
|
9
|
-
//#region src/components/inputs/Selection/shared/select.types.d.ts
|
|
10
|
-
type SelectBaseProps<TKey extends Key = Key, TInitialSelectItem = DefaultInitialSelectItem<TKey>> = FormFieldProps & GroupedSelectProps<TKey, TInitialSelectItem> & SelectNewItemProps & SelectAsyncProps & SelectVirtualizationProps & InputVariantProps & Pick<AriaButtonProps, "onBlur"> & {
|
|
11
|
-
ref?: Ref<HTMLDivElement>;
|
|
12
|
-
className?: string;
|
|
13
|
-
isDirty?: boolean;
|
|
14
|
-
placeholder?: string;
|
|
15
|
-
hideDropdownIcon?: boolean;
|
|
16
|
-
hideSearchIcon?: boolean;
|
|
17
|
-
isSearchable?: boolean;
|
|
18
|
-
searchPlacement?: "field" | "popover";
|
|
19
|
-
isScrollPreventDisabled?: boolean;
|
|
20
|
-
isClearable?: boolean;
|
|
21
|
-
isClearableIfDisabled?: boolean;
|
|
22
|
-
isClientSearchDisabled?: boolean;
|
|
23
|
-
ignoreInputValueFiltering?: boolean;
|
|
24
|
-
ignoreTriggerWidth?: boolean;
|
|
25
|
-
items: SelectItem<TKey>[];
|
|
26
|
-
inputClassName?: string;
|
|
27
|
-
containerClassName?: string;
|
|
28
|
-
leadingContent?: ReactNode;
|
|
29
|
-
trailingContent?: ReactNode;
|
|
30
|
-
customTrigger?: ReactElement;
|
|
31
|
-
selectedTagsType?: "tags" | "list";
|
|
32
|
-
collapseAfter?: number;
|
|
33
|
-
searchDebounceDelay?: number;
|
|
34
|
-
multiSelectAutoConfirm?: boolean;
|
|
35
|
-
onInputChange?: (value: string) => void;
|
|
36
|
-
onSearchChange?: (value: string) => void;
|
|
37
|
-
mapInitialToSelectItem?: (item: TInitialSelectItem) => SelectItem<TKey>;
|
|
38
|
-
onMouseEnter?: MouseEventHandler<HTMLDivElement>;
|
|
39
|
-
onFocusCapture?: FocusEventHandler<HTMLDivElement>;
|
|
40
|
-
bottomSheetProps?: Partial<Omit<BottomSheetProps, "children" | "isOpen" | "onOpenChange" | "onStateChange" | "label" | "footer">>;
|
|
41
|
-
};
|
|
42
|
-
interface SelectItem<TKey extends Key = Key> {
|
|
43
|
-
id: TKey;
|
|
44
|
-
label: string;
|
|
45
|
-
content?: string | ReactNode;
|
|
46
|
-
isDisabled?: boolean;
|
|
47
|
-
}
|
|
48
|
-
interface DefaultInitialSelectItem<TKey extends Key = Key> {
|
|
49
|
-
id: TKey;
|
|
50
|
-
label?: string;
|
|
51
|
-
name?: string;
|
|
52
|
-
}
|
|
53
|
-
interface SingleSelectProps<TKey extends Key = Key, TInitialSelectItem = DefaultInitialSelectItem<TKey>> {
|
|
54
|
-
selectionMode?: "single";
|
|
55
|
-
value?: TKey | undefined | null;
|
|
56
|
-
onChange?: (value: TKey | null) => void;
|
|
57
|
-
showSelectionBar?: never;
|
|
58
|
-
showSelectAllOption?: never;
|
|
59
|
-
initialSelection?: TInitialSelectItem | null;
|
|
60
|
-
showSelectionContent?: boolean;
|
|
61
|
-
}
|
|
62
|
-
interface MultiSelectProps<TKey extends Key = Key, TInitialSelectItem = DefaultInitialSelectItem<TKey>> {
|
|
63
|
-
selectionMode: "multiple";
|
|
64
|
-
value?: TKey[];
|
|
65
|
-
onChange?: (value: TKey[]) => void;
|
|
66
|
-
showSelectionBar?: boolean;
|
|
67
|
-
showSelectAllOption?: boolean;
|
|
68
|
-
initialSelection?: TInitialSelectItem[] | null;
|
|
69
|
-
showSelectionContent?: never;
|
|
70
|
-
}
|
|
71
|
-
type GroupedSelectProps<TKey extends Key = Key, TInitialSelectItem = DefaultInitialSelectItem<TKey>> = MultiSelectProps<TKey, TInitialSelectItem> | SingleSelectProps<TKey, TInitialSelectItem>;
|
|
72
|
-
interface SelectNewItemProps {
|
|
73
|
-
showNewItemOption?: boolean;
|
|
74
|
-
newItemMinLength?: number;
|
|
75
|
-
onNewItemOption?: (value: string) => void;
|
|
76
|
-
newItemRender?: (label: string) => ReactElement;
|
|
77
|
-
}
|
|
78
|
-
interface SelectAsyncProps {
|
|
79
|
-
isLoading?: boolean;
|
|
80
|
-
hasLoadMore?: boolean;
|
|
81
|
-
onLoadMore?: () => void;
|
|
82
|
-
}
|
|
83
|
-
interface SelectVirtualizationProps {
|
|
84
|
-
totalItems?: number;
|
|
85
|
-
virtualizerOptions?: {
|
|
86
|
-
rowHeight?: number;
|
|
87
|
-
estimatedRowHeight?: number;
|
|
88
|
-
padding?: number;
|
|
89
|
-
gap?: number;
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
//#endregion
|
|
93
|
-
//#region src/components/inputs/Selection/Select/Select.d.ts
|
|
94
|
-
type SelectList<TKey extends Key = Key> = Pick<AsyncList<SelectItem<TKey>>, "items" | "isLoading" | "hasMore" | "loadMore" | "setFilterText">;
|
|
95
|
-
type SelectDataProps<TKey extends Key = Key> = {
|
|
96
|
-
items: SelectItem<TKey>[];
|
|
97
|
-
list?: never;
|
|
98
|
-
} | {
|
|
99
|
-
items?: never;
|
|
100
|
-
list: SelectList<TKey>;
|
|
101
|
-
isLoading?: never;
|
|
102
|
-
hasLoadMore?: never;
|
|
103
|
-
onLoadMore?: never;
|
|
104
|
-
isClientSearchDisabled?: never;
|
|
105
|
-
ignoreInputValueFiltering?: never;
|
|
106
|
-
};
|
|
107
|
-
type SelectProps<TKey extends Key = Key, TInitialSelectItem = DefaultInitialSelectItem<TKey>> = OmitDiscriminatedUnion<SelectBaseProps<TKey, TInitialSelectItem>, "items"> & SelectDataProps<TKey> & {
|
|
108
|
-
field?: never;
|
|
109
|
-
renderStaticInput?: boolean;
|
|
110
|
-
};
|
|
111
|
-
type SelectInnerProps<TKey extends Key, TInitialSelectItem> = OmitDiscriminatedUnion<SelectProps<TKey, TInitialSelectItem>, "field"> & {
|
|
112
|
-
isFormControlDisabled?: boolean;
|
|
113
|
-
};
|
|
114
|
-
declare function SelectInner<TKey extends Key = Key, TInitialSelectItem = DefaultInitialSelectItem<TKey>>({ renderStaticInput, isFormControlDisabled, list, ...inputProps }: SelectInnerProps<TKey, TInitialSelectItem>): import("react").JSX.Element;
|
|
115
|
-
declare function Select<TKey extends Key = Key, TInitialSelectItem = DefaultInitialSelectItem<TKey>>(props: SelectProps<TKey, TInitialSelectItem> & {
|
|
116
|
-
field?: never;
|
|
117
|
-
}): import("react").JSX.Element;
|
|
118
|
-
//#endregion
|
|
119
|
-
export { SelectProps as a, MultiSelectProps as c, SelectItem as d, SingleSelectProps as f, SelectList as i, SelectAsyncProps as l, SelectDataProps as n, DefaultInitialSelectItem as o, SelectInner as r, GroupedSelectProps as s, Select as t, SelectBaseProps as u };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
|
|
2
|
-
import { t as FieldController } from "./form.binding-DOR5gIQf.js";
|
|
3
|
-
import { n as SelectInner } from "./Select-B-TuE_Fh.js";
|
|
4
|
-
import { memo } from "react";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
//#region src/components/inputs/Selection/Select/Select.bound.tsx
|
|
7
|
-
function SelectComponent({ renderStaticInput, ...props }) {
|
|
8
|
-
const { field, ref, ...innerProps } = props;
|
|
9
|
-
const controlWithOptions = field.form;
|
|
10
|
-
return /* @__PURE__ */ jsx(FieldController, {
|
|
11
|
-
control: field.form,
|
|
12
|
-
name: field.name,
|
|
13
|
-
onValueChange: field.onValueChange,
|
|
14
|
-
onBlur: field.onBlur,
|
|
15
|
-
render: ({ field, fieldState: { error, isDirty } }) => /* @__PURE__ */ jsx(SelectInner, {
|
|
16
|
-
...innerProps,
|
|
17
|
-
ref: $a8ea2faf2ebe4d2f$re_export$mergeRefs(ref, field.ref),
|
|
18
|
-
value: field.value ?? (props.selectionMode === "multiple" ? [] : null),
|
|
19
|
-
onChange: (value) => {
|
|
20
|
-
field.onChange(value);
|
|
21
|
-
field.onValueCommit();
|
|
22
|
-
},
|
|
23
|
-
onBlur: field.onBlur,
|
|
24
|
-
isDirty,
|
|
25
|
-
isDisabled: field.disabled || props.isDisabled,
|
|
26
|
-
isFormControlDisabled: !!controlWithOptions._options?.disabled,
|
|
27
|
-
error: props.error ?? error?.message,
|
|
28
|
-
renderStaticInput
|
|
29
|
-
})
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
const Select = memo(SelectComponent);
|
|
33
|
-
//#endregion
|
|
34
|
-
export { Select as t };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { s as OmitDiscriminatedUnion } from "./common-UBFya8WY.js";
|
|
2
|
-
import { a as SelectProps$1, c as MultiSelectProps, f as SingleSelectProps, n as SelectDataProps, o as DefaultInitialSelectItem, s as GroupedSelectProps } from "./Select-C34ENdjq.js";
|
|
3
|
-
import { n as FieldValues, t as FormControlProps } from "./form.types-C8P4sznq.js";
|
|
4
|
-
import { ReactElement } from "react";
|
|
5
|
-
import { Key } from "react-aria-components";
|
|
6
|
-
//#region src/components/inputs/Selection/Select/Select.bound.d.ts
|
|
7
|
-
type GroupedSelectControlProps<TFieldValues extends FieldValues, TKey extends Key = Key, TInitialSelectItem = DefaultInitialSelectItem<TKey>> = ({
|
|
8
|
-
selectionMode: "multiple";
|
|
9
|
-
} & FormControlProps<MultiSelectProps<TKey, TInitialSelectItem>, TFieldValues>) | ({
|
|
10
|
-
selectionMode?: "single";
|
|
11
|
-
} & FormControlProps<SingleSelectProps<TKey, TInitialSelectItem>, TFieldValues>);
|
|
12
|
-
type ControlledSelectProps<TFieldValues extends FieldValues, TKey extends Key = Key, TInitialSelectItem = DefaultInitialSelectItem<TKey>> = OmitDiscriminatedUnion<SelectProps$1<TKey, TInitialSelectItem>, keyof GroupedSelectProps | "field" | "onBlur" | "defaultValue" | "items" | "list"> & SelectDataProps<TKey> & GroupedSelectControlProps<TFieldValues, TKey extends string ? string : TKey extends number ? number : TKey, TInitialSelectItem>;
|
|
13
|
-
declare function SelectComponent<TFieldValues extends FieldValues, TKey extends Key = Key, TInitialSelectItem = DefaultInitialSelectItem<TKey>>(props: ControlledSelectProps<TFieldValues, TKey, TInitialSelectItem>): ReactElement;
|
|
14
|
-
declare const Select: typeof SelectComponent;
|
|
15
|
-
type SelectProps<TFieldValues extends FieldValues = FieldValues, TKey extends Key = Key, TInitialSelectItem = DefaultInitialSelectItem<TKey>> = ControlledSelectProps<TFieldValues, TKey, TInitialSelectItem>;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { Select as n, SelectProps as r, ControlledSelectProps as t };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { n as FormFieldProps } from "./FormField-DGyCDxOp.js";
|
|
2
|
-
import { FocusEvent, Ref } from "react";
|
|
3
|
-
import { SliderProps } from "react-aria-components";
|
|
4
|
-
//#region src/components/inputs/Slider/Slider.d.ts
|
|
5
|
-
type SliderValue<IsRange extends boolean = false> = IsRange extends false ? number : number[];
|
|
6
|
-
interface SliderBaseProps<IsRange extends boolean = false> extends FormFieldProps, Omit<SliderProps, "value" | "defaultValue" | "onChange" | "className"> {
|
|
7
|
-
ref?: Ref<HTMLDivElement>;
|
|
8
|
-
unit?: string;
|
|
9
|
-
isRange?: IsRange;
|
|
10
|
-
defaultValue?: SliderValue<IsRange>;
|
|
11
|
-
value?: SliderValue<IsRange>;
|
|
12
|
-
onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
13
|
-
onChange?: (value: SliderValue<IsRange>) => void;
|
|
14
|
-
}
|
|
15
|
-
declare const SliderBase: <IsRange extends boolean = false>(props: SliderBaseProps<IsRange>) => import("react").JSX.Element;
|
|
16
|
-
type SliderProps$1<IsRange extends boolean = false> = SliderBaseProps<IsRange> & {
|
|
17
|
-
field?: never;
|
|
18
|
-
};
|
|
19
|
-
declare function Slider<IsRange extends boolean = false>(props: SliderProps$1<IsRange> & {
|
|
20
|
-
field?: never;
|
|
21
|
-
}): import("react").JSX.Element;
|
|
22
|
-
//#endregion
|
|
23
|
-
export { SliderBase as n, SliderProps$1 as r, Slider as t };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { n as SliderBase } from "./Slider-DCsCCPFx.js";
|
|
2
|
-
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
|
|
3
|
-
import { t as FieldController } from "./form.binding-DOR5gIQf.js";
|
|
4
|
-
import { memo } from "react";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
//#region src/components/inputs/Slider/Slider.bound.tsx
|
|
7
|
-
const SliderComponent = (props) => {
|
|
8
|
-
const { field, ref, ...innerProps } = props;
|
|
9
|
-
return /* @__PURE__ */ jsx(FieldController, {
|
|
10
|
-
control: field.form,
|
|
11
|
-
name: field.name,
|
|
12
|
-
onValueChange: field.onValueChange,
|
|
13
|
-
onBlur: field.onBlur,
|
|
14
|
-
render: ({ field, fieldState: { error } }) => /* @__PURE__ */ jsx(SliderBase, {
|
|
15
|
-
...innerProps,
|
|
16
|
-
ref: $a8ea2faf2ebe4d2f$re_export$mergeRefs(ref, field.ref),
|
|
17
|
-
value: field.value,
|
|
18
|
-
onBlur: field.onBlur,
|
|
19
|
-
onChange: field.onChange,
|
|
20
|
-
onChangeEnd: (value) => {
|
|
21
|
-
innerProps.onChangeEnd?.(value);
|
|
22
|
-
field.onValueCommit();
|
|
23
|
-
},
|
|
24
|
-
isDisabled: field.disabled || props.isDisabled,
|
|
25
|
-
error: props.error ?? error?.message
|
|
26
|
-
})
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
const Slider = memo(SliderComponent);
|
|
30
|
-
//#endregion
|
|
31
|
-
export { Slider as t };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { r as SliderProps$1 } from "./Slider-DRg8zKRM.js";
|
|
2
|
-
import { n as FieldValues, t as FormControlProps } from "./form.types-C8P4sznq.js";
|
|
3
|
-
//#region src/components/inputs/Slider/Slider.bound.d.ts
|
|
4
|
-
type ControlledSliderProps<TFieldValues extends FieldValues, IsRange extends boolean = false> = FormControlProps<SliderProps$1<IsRange>, TFieldValues>;
|
|
5
|
-
type SliderProps<TFieldValues extends FieldValues = FieldValues, IsRange extends boolean = false> = ControlledSliderProps<TFieldValues, IsRange>;
|
|
6
|
-
declare const SliderComponent: <TFieldValues extends FieldValues, IsRange extends boolean = false>(props: ControlledSliderProps<TFieldValues, IsRange>) => import("react").JSX.Element;
|
|
7
|
-
declare const Slider: typeof SliderComponent;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { Slider as n, SliderProps as r, ControlledSliderProps as t };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { n as StyleMergeUtils, t as UIOverrides } from "./uiOverrides.context-DHHzLSnq.js";
|
|
2
|
-
import "./style-definitions-Dx6aFDiR.js";
|
|
3
|
-
import { SVGProps } from "react";
|
|
4
|
-
//#region src/components/status/Spinner/spinner.cva.d.ts
|
|
5
|
-
declare const spinnerWrapperDefinition: {
|
|
6
|
-
base: string[];
|
|
7
|
-
config: StyleMergeUtils.Config<{
|
|
8
|
-
readonly size: {
|
|
9
|
-
readonly default: "size-4";
|
|
10
|
-
readonly l: "size-8";
|
|
11
|
-
};
|
|
12
|
-
}>;
|
|
13
|
-
};
|
|
14
|
-
declare const spinnerDefinition: {
|
|
15
|
-
base: string[];
|
|
16
|
-
config: StyleMergeUtils.Config<{
|
|
17
|
-
readonly size: {
|
|
18
|
-
readonly default: "size-4";
|
|
19
|
-
readonly l: "size-8";
|
|
20
|
-
};
|
|
21
|
-
}>;
|
|
22
|
-
};
|
|
23
|
-
type SpinnerConfig = NonNullable<typeof spinnerDefinition.config>;
|
|
24
|
-
interface SpinnerVariantProps extends UIOverrides.VariantProps<SpinnerConfig> {}
|
|
25
|
-
//#endregion
|
|
26
|
-
//#region src/components/status/Spinner/Spinner.d.ts
|
|
27
|
-
interface SpinnerProps extends SpinnerVariantProps, SVGProps<SVGSVGElement> {}
|
|
28
|
-
declare const Spinner: ({ size, className, ...props }: Omit<SpinnerProps, "color">) => import("react").JSX.Element;
|
|
29
|
-
//#endregion
|
|
30
|
-
export { spinnerWrapperDefinition as i, SpinnerProps as n, spinnerDefinition as r, Spinner as t };
|
package/dist/Spinner-DqjP06T1.js
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { r as cva, t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
2
|
-
import { c } from "react/compiler-runtime";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
//#region src/components/status/Spinner/spinner.cva.ts
|
|
5
|
-
const spinnerWrapperDefinition = UIOverrides.defineConfig({
|
|
6
|
-
base: ["flex items-center justify-center"],
|
|
7
|
-
config: {
|
|
8
|
-
variants: { size: {
|
|
9
|
-
default: "size-4",
|
|
10
|
-
l: "size-8"
|
|
11
|
-
} },
|
|
12
|
-
defaultVariants: { size: "default" }
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
const spinnerWrapper = cva(spinnerWrapperDefinition.base, spinnerWrapperDefinition.config);
|
|
16
|
-
const spinnerDefinition = UIOverrides.defineConfig({
|
|
17
|
-
base: ["animate-spin"],
|
|
18
|
-
config: {
|
|
19
|
-
variants: { size: {
|
|
20
|
-
default: "size-4",
|
|
21
|
-
l: "size-8"
|
|
22
|
-
} },
|
|
23
|
-
defaultVariants: { size: "default" }
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
const spinner = cva(spinnerDefinition.base, spinnerDefinition.config);
|
|
27
|
-
//#endregion
|
|
28
|
-
//#region src/components/status/Spinner/Spinner.tsx
|
|
29
|
-
const Spinner = (t0) => {
|
|
30
|
-
const $ = c(17);
|
|
31
|
-
let className;
|
|
32
|
-
let props;
|
|
33
|
-
let size;
|
|
34
|
-
if ($[0] !== t0) {
|
|
35
|
-
({size, className, ...props} = t0);
|
|
36
|
-
$[0] = t0;
|
|
37
|
-
$[1] = className;
|
|
38
|
-
$[2] = props;
|
|
39
|
-
$[3] = size;
|
|
40
|
-
} else {
|
|
41
|
-
className = $[1];
|
|
42
|
-
props = $[2];
|
|
43
|
-
size = $[3];
|
|
44
|
-
}
|
|
45
|
-
let t1;
|
|
46
|
-
if ($[4] !== className || $[5] !== size) {
|
|
47
|
-
t1 = spinnerWrapper({
|
|
48
|
-
size,
|
|
49
|
-
className
|
|
50
|
-
});
|
|
51
|
-
$[4] = className;
|
|
52
|
-
$[5] = size;
|
|
53
|
-
$[6] = t1;
|
|
54
|
-
} else t1 = $[6];
|
|
55
|
-
let t2;
|
|
56
|
-
if ($[7] !== className || $[8] !== size) {
|
|
57
|
-
t2 = spinner({
|
|
58
|
-
size,
|
|
59
|
-
className
|
|
60
|
-
});
|
|
61
|
-
$[7] = className;
|
|
62
|
-
$[8] = size;
|
|
63
|
-
$[9] = t2;
|
|
64
|
-
} else t2 = $[9];
|
|
65
|
-
let t3;
|
|
66
|
-
if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
|
|
67
|
-
t3 = /* @__PURE__ */ jsx("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" });
|
|
68
|
-
$[10] = t3;
|
|
69
|
-
} else t3 = $[10];
|
|
70
|
-
let t4;
|
|
71
|
-
if ($[11] !== props || $[12] !== t2) {
|
|
72
|
-
t4 = /* @__PURE__ */ jsx("svg", {
|
|
73
|
-
className: t2,
|
|
74
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
75
|
-
fill: "none",
|
|
76
|
-
viewBox: "0 0 24 24",
|
|
77
|
-
stroke: "currentColor",
|
|
78
|
-
strokeWidth: "2",
|
|
79
|
-
strokeLinecap: "round",
|
|
80
|
-
strokeLinejoin: "round",
|
|
81
|
-
...props,
|
|
82
|
-
children: t3
|
|
83
|
-
});
|
|
84
|
-
$[11] = props;
|
|
85
|
-
$[12] = t2;
|
|
86
|
-
$[13] = t4;
|
|
87
|
-
} else t4 = $[13];
|
|
88
|
-
let t5;
|
|
89
|
-
if ($[14] !== t1 || $[15] !== t4) {
|
|
90
|
-
t5 = /* @__PURE__ */ jsx("div", {
|
|
91
|
-
className: t1,
|
|
92
|
-
children: t4
|
|
93
|
-
});
|
|
94
|
-
$[14] = t1;
|
|
95
|
-
$[15] = t4;
|
|
96
|
-
$[16] = t5;
|
|
97
|
-
} else t5 = $[16];
|
|
98
|
-
return t5;
|
|
99
|
-
};
|
|
100
|
-
//#endregion
|
|
101
|
-
export { spinnerDefinition as n, spinnerWrapperDefinition as r, Spinner as t };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { n as LinkNavigationProps } from "./Link-PvYB_M-j.js";
|
|
2
|
-
import { n as ButtonVariantProps } from "./button.cva-C8LGtNJ3.js";
|
|
3
|
-
import { r as MenuItem } from "./DropdownMenu-D_9z9ond.js";
|
|
4
|
-
import { ButtonProps } from "react-aria-components";
|
|
5
|
-
//#region src/components/buttons/SplitButton/SplitButton.d.ts
|
|
6
|
-
interface SplitButtonProps extends ButtonVariantProps, Omit<ButtonProps, "children"> {
|
|
7
|
-
label: string;
|
|
8
|
-
labelRight: string;
|
|
9
|
-
link?: LinkNavigationProps;
|
|
10
|
-
items: MenuItem[];
|
|
11
|
-
isLoading?: boolean;
|
|
12
|
-
}
|
|
13
|
-
declare const SplitButton: ({ variant, color, width, size, label, labelRight, link, items, className, isLoading, ...props }: SplitButtonProps) => import("react").JSX.Element;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { SplitButtonProps as n, SplitButton as t };
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { n as StyleMergeUtils, t as UIOverrides } from "./uiOverrides.context-DHHzLSnq.js";
|
|
2
|
-
import "./style-definitions-Dx6aFDiR.js";
|
|
3
|
-
//#region src/components/navigation/Stepper/stepper.cva.d.ts
|
|
4
|
-
declare const stepperDefinition: {
|
|
5
|
-
base: string[];
|
|
6
|
-
config: StyleMergeUtils.Config<{
|
|
7
|
-
readonly orientation: {
|
|
8
|
-
readonly horizontal: "flex flex-row items-center gap-4";
|
|
9
|
-
readonly vertical: "inline-flex flex-col gap-2";
|
|
10
|
-
};
|
|
11
|
-
}>;
|
|
12
|
-
};
|
|
13
|
-
type StepperConfig = NonNullable<typeof stepperDefinition.config>;
|
|
14
|
-
interface StepperVariantProps extends UIOverrides.VariantProps<StepperConfig> {}
|
|
15
|
-
declare const stepperItemDefinition: {
|
|
16
|
-
base: string[];
|
|
17
|
-
config: StyleMergeUtils.Config<{
|
|
18
|
-
readonly contentOrientation: {
|
|
19
|
-
readonly horizontal: "flex-row items-center gap-3 text-left";
|
|
20
|
-
readonly vertical: "flex-col items-center gap-2 text-center";
|
|
21
|
-
};
|
|
22
|
-
}>;
|
|
23
|
-
};
|
|
24
|
-
type StepperItemConfig = NonNullable<typeof stepperItemDefinition.config>;
|
|
25
|
-
interface StepperItemVariantProps extends UIOverrides.VariantProps<StepperItemConfig> {}
|
|
26
|
-
declare const stepperIconDefinition: {
|
|
27
|
-
base: string[];
|
|
28
|
-
config: StyleMergeUtils.Config<{
|
|
29
|
-
readonly status: {
|
|
30
|
-
readonly completed: "border-primary bg-primary text-primary-foreground group-hover:bg-primary/90";
|
|
31
|
-
readonly active: "border-primary bg-primary text-primary-foreground";
|
|
32
|
-
readonly todo: "border-input bg-background text-muted-foreground";
|
|
33
|
-
};
|
|
34
|
-
}>;
|
|
35
|
-
};
|
|
36
|
-
declare const stepperNumberDefinition: {
|
|
37
|
-
base: string[];
|
|
38
|
-
config: StyleMergeUtils.Config<{
|
|
39
|
-
readonly status: {
|
|
40
|
-
readonly completed: "";
|
|
41
|
-
readonly active: "";
|
|
42
|
-
readonly todo: "";
|
|
43
|
-
};
|
|
44
|
-
}>;
|
|
45
|
-
};
|
|
46
|
-
declare const stepperTitleDefinition: {
|
|
47
|
-
base: string[];
|
|
48
|
-
config: StyleMergeUtils.Config<{
|
|
49
|
-
readonly status: {
|
|
50
|
-
readonly completed: "text-foreground underline-offset-4 group-hover:underline";
|
|
51
|
-
readonly active: "text-foreground";
|
|
52
|
-
readonly todo: "text-muted-foreground";
|
|
53
|
-
};
|
|
54
|
-
}>;
|
|
55
|
-
};
|
|
56
|
-
declare const stepperSubtextDefinition: {
|
|
57
|
-
base: string[];
|
|
58
|
-
config: StyleMergeUtils.Config<{
|
|
59
|
-
readonly status: {
|
|
60
|
-
readonly completed: "";
|
|
61
|
-
readonly active: "";
|
|
62
|
-
readonly todo: "";
|
|
63
|
-
};
|
|
64
|
-
}>;
|
|
65
|
-
};
|
|
66
|
-
declare const stepperSeparatorDefinition: {
|
|
67
|
-
base: string[];
|
|
68
|
-
config: StyleMergeUtils.Config<{
|
|
69
|
-
readonly orientation: {
|
|
70
|
-
readonly horizontal: "h-px min-w-4 flex-1";
|
|
71
|
-
readonly vertical: "min-h-8 w-px";
|
|
72
|
-
};
|
|
73
|
-
readonly contentOrientation: {
|
|
74
|
-
readonly horizontal: "";
|
|
75
|
-
readonly vertical: "";
|
|
76
|
-
};
|
|
77
|
-
}>;
|
|
78
|
-
};
|
|
79
|
-
//#endregion
|
|
80
|
-
//#region src/components/navigation/Stepper/stepper.types.d.ts
|
|
81
|
-
/** A single step definition passed by the consumer. */
|
|
82
|
-
interface StepItem {
|
|
83
|
-
/** Unique key for React rendering. */
|
|
84
|
-
id: string;
|
|
85
|
-
/** Step title text. Rendered unless iconsOnly is true. */
|
|
86
|
-
title: string;
|
|
87
|
-
/** Optional subtext beneath the title. Only rendered in default (full) mode. */
|
|
88
|
-
subtext?: string;
|
|
89
|
-
}
|
|
90
|
-
/** Public props for the Stepper component. */
|
|
91
|
-
interface StepperProps extends StepperVariantProps, StepperItemVariantProps {
|
|
92
|
-
/** Array of step definitions. Order determines step numbering (1-based). */
|
|
93
|
-
steps: StepItem[];
|
|
94
|
-
/**
|
|
95
|
-
* The current active step index (0-based).
|
|
96
|
-
* - Steps at index < currentStep are "completed"
|
|
97
|
-
* - Step at index === currentStep is "active"
|
|
98
|
-
* - Steps at index > currentStep are "todo"
|
|
99
|
-
*/
|
|
100
|
-
currentStep: number;
|
|
101
|
-
/** When true, only step indicator icons are rendered (no title or subtext). */
|
|
102
|
-
iconsOnly?: boolean;
|
|
103
|
-
/** When true, step indicator icons and titles are rendered (no subtext). Takes no effect if iconsOnly is true. */
|
|
104
|
-
titlesOnly?: boolean;
|
|
105
|
-
/** Callback when a completed step is clicked. Receives the 0-based step index. */
|
|
106
|
-
onStepClick?: (stepIndex: number) => void;
|
|
107
|
-
/** Optional className for the root container. */
|
|
108
|
-
className?: string;
|
|
109
|
-
}
|
|
110
|
-
//#endregion
|
|
111
|
-
//#region src/components/navigation/Stepper/Stepper.d.ts
|
|
112
|
-
declare const Stepper: ({ steps, currentStep, orientation, contentOrientation, iconsOnly, titlesOnly, onStepClick, className }: StepperProps) => import("react").JSX.Element;
|
|
113
|
-
//#endregion
|
|
114
|
-
export { stepperDefinition as a, stepperNumberDefinition as c, stepperTitleDefinition as d, StepperVariantProps as i, stepperSeparatorDefinition as l, StepItem as n, stepperIconDefinition as o, StepperProps as r, stepperItemDefinition as s, Stepper as t, stepperSubtextDefinition as u };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { t as FormFieldErrorProps } from "./FormFieldError-BT4uxbKY.js";
|
|
2
|
-
import { t as SwitchVariantProps } from "./switch.cva-r6vcS25Q.js";
|
|
3
|
-
import { Ref } from "react";
|
|
4
|
-
import { SwitchProps } from "react-aria-components";
|
|
5
|
-
//#region src/components/inputs/Switch/Switch.d.ts
|
|
6
|
-
interface SwitchBaseProps extends FormFieldErrorProps, SwitchVariantProps, Omit<SwitchProps, "className"> {
|
|
7
|
-
ref?: Ref<HTMLLabelElement>;
|
|
8
|
-
children?: string;
|
|
9
|
-
isDirty?: boolean;
|
|
10
|
-
isRequired?: boolean;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
required?: boolean;
|
|
13
|
-
fireBlurOnChange?: boolean;
|
|
14
|
-
}
|
|
15
|
-
declare const SwitchBase: (props: SwitchBaseProps) => import("react").JSX.Element;
|
|
16
|
-
type SwitchProps$1 = SwitchBaseProps & {
|
|
17
|
-
field?: never;
|
|
18
|
-
};
|
|
19
|
-
declare const SwitchComponent: (props: SwitchProps$1 & {
|
|
20
|
-
field?: never;
|
|
21
|
-
}) => import("react").JSX.Element;
|
|
22
|
-
declare const Switch: import("react").MemoExoticComponent<typeof SwitchComponent>;
|
|
23
|
-
//#endregion
|
|
24
|
-
export { SwitchProps$1 as i, SwitchBase as n, SwitchComponent as r, Switch as t };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { i as SwitchProps$1 } from "./Switch-ELVPkPx0.js";
|
|
2
|
-
import { n as FieldValues, t as FormControlProps } from "./form.types-C8P4sznq.js";
|
|
3
|
-
//#region src/components/inputs/Switch/Switch.bound.d.ts
|
|
4
|
-
type ControlledSwitchProps<TFieldValues extends FieldValues> = FormControlProps<SwitchProps$1, TFieldValues, "isSelected">;
|
|
5
|
-
type SwitchProps<TFieldValues extends FieldValues = FieldValues> = ControlledSwitchProps<TFieldValues>;
|
|
6
|
-
declare const SwitchComponent: <TFieldValues extends FieldValues>(props: ControlledSwitchProps<TFieldValues>) => import("react").JSX.Element;
|
|
7
|
-
declare const Switch: typeof SwitchComponent;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { Switch as n, SwitchProps as r, ControlledSwitchProps as t };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { n as SwitchBase } from "./Switch-BfpSMMpv.js";
|
|
2
|
-
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
|
|
3
|
-
import { t as FieldController } from "./form.binding-DOR5gIQf.js";
|
|
4
|
-
import { memo } from "react";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
//#region src/components/inputs/Switch/Switch.bound.tsx
|
|
7
|
-
const SwitchComponent = (props) => {
|
|
8
|
-
const { field, ref, ...innerProps } = props;
|
|
9
|
-
return /* @__PURE__ */ jsx(FieldController, {
|
|
10
|
-
control: field.form,
|
|
11
|
-
name: field.name,
|
|
12
|
-
onValueChange: field.onValueChange,
|
|
13
|
-
onBlur: field.onBlur,
|
|
14
|
-
render: ({ field, fieldState: { error, isDirty } }) => /* @__PURE__ */ jsx(SwitchBase, {
|
|
15
|
-
...innerProps,
|
|
16
|
-
fireBlurOnChange: false,
|
|
17
|
-
ref: $a8ea2faf2ebe4d2f$re_export$mergeRefs(ref, field.ref),
|
|
18
|
-
isSelected: field.value ?? false,
|
|
19
|
-
onChange: (value) => {
|
|
20
|
-
field.onChange(value);
|
|
21
|
-
field.onValueCommit();
|
|
22
|
-
},
|
|
23
|
-
onBlur: field.onBlur,
|
|
24
|
-
name: field.name,
|
|
25
|
-
isDirty,
|
|
26
|
-
isDisabled: field.disabled || props.isDisabled,
|
|
27
|
-
error: props.error ?? error?.message
|
|
28
|
-
})
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
const Switch = memo(SwitchComponent);
|
|
32
|
-
//#endregion
|
|
33
|
-
export { Switch as t };
|