@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,17 +1,20 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
import {
|
|
1
|
+
import { n as IconSlotIcon } from "./IconSlot-DcEDPaNb.js";
|
|
2
|
+
import { n as LinkNavigationProps } from "./Link-BdnWVYL9.js";
|
|
3
3
|
import { Key } from "react-aria-components";
|
|
4
4
|
//#region src/components/Breadcrumbs/Breadcrumbs.d.ts
|
|
5
5
|
interface BreadcrumbItem {
|
|
6
6
|
id: Key;
|
|
7
7
|
label: string;
|
|
8
8
|
link?: LinkNavigationProps;
|
|
9
|
-
icon
|
|
9
|
+
/** Leading icon: a component (`icon={Home}`) or an element (`icon={<Home />}`). */
|
|
10
|
+
icon?: IconSlotIcon;
|
|
10
11
|
}
|
|
11
12
|
interface BreadcrumbsProps {
|
|
13
|
+
/** A trail of three or more items that does not fit collapses to the first item, a "…" menu and the current page. */
|
|
12
14
|
items: BreadcrumbItem[];
|
|
13
15
|
className?: string;
|
|
14
16
|
onAction?: (id: Key) => void;
|
|
17
|
+
/** Shows only the first item's icon; its label stays as the link's accessible name. */
|
|
15
18
|
iconOnly?: boolean;
|
|
16
19
|
}
|
|
17
20
|
declare const Breadcrumbs: ({ items, className, onAction, iconOnly }: BreadcrumbsProps) => import("react").JSX.Element;
|
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
2
|
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
-
import { t as IconSlot } from "./IconSlot-
|
|
3
|
+
import { t as IconSlot } from "./IconSlot-TAWTJ6iK.js";
|
|
4
4
|
import { l as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e } from "./utils-BkLF-JA3.js";
|
|
5
|
-
import { m as $263ab7fc0f95ccdb$export$4feb769f8ddf26c5 } from "./Dialog-
|
|
5
|
+
import { m as $263ab7fc0f95ccdb$export$4feb769f8ddf26c5 } from "./Dialog-BJ13KRQo.js";
|
|
6
6
|
import { n as $984a1fc08f87e4f3$export$e2509388b49734e7, t as $984a1fc08f87e4f3$export$a6c7ac8248d6e38a } from "./Link-Chux-Clm.js";
|
|
7
|
-
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-
|
|
8
|
-
import { t as Tooltip } from "./Tooltip-
|
|
7
|
+
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-BJJkLVNj.js";
|
|
8
|
+
import { t as Tooltip } from "./Tooltip-BkXPEBqw.js";
|
|
9
9
|
import { a as breadcrumbsDefinition, i as breadcrumbSegmentDefinition, n as breadcrumbIconDefinition, r as breadcrumbItemDefinition, t as breadcrumbChevronDefinition } from "./breadcrumbs.cva-CnBIZUB3.js";
|
|
10
|
-
import { t as DropdownMenuDesktop } from "./DropdownMenuDesktop-
|
|
10
|
+
import { t as DropdownMenuDesktop } from "./DropdownMenuDesktop-DxGA0yvx.js";
|
|
11
11
|
import { t as Typography } from "./Typography-DCLnPa3P.js";
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
12
|
+
import "./i18n-DQs7jPjv.js";
|
|
13
|
+
import { t as LinkContext } from "./link.context-CD5h_b5O.js";
|
|
14
14
|
import { c } from "react/compiler-runtime";
|
|
15
15
|
import $ahdqC$react, { createContext, forwardRef, useContext, useLayoutEffect, useRef, useState } from "react";
|
|
16
16
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
+
import { ChevronRight } from "lucide-react";
|
|
17
18
|
import { mergeProps } from "react-aria/mergeProps";
|
|
18
19
|
import { CollectionBuilder, createLeafComponent } from "react-aria/CollectionBuilder";
|
|
19
20
|
import { filterDOMProps } from "react-aria/filterDOMProps";
|
|
20
21
|
import { useBreadcrumbs } from "react-aria/useBreadcrumbs";
|
|
21
22
|
import { Collection } from "react-aria/Collection";
|
|
22
23
|
import { CollectionNode } from "react-aria/private/collections/BaseCollection";
|
|
24
|
+
import { useTranslation } from "react-i18next";
|
|
23
25
|
//#region ../../node_modules/.bun/react-aria-components@1.22.1+67f6792bdf102c28/node_modules/react-aria-components/dist/private/Breadcrumbs.mjs
|
|
24
26
|
const $65dbe90f868fa5f4$export$65596d3621b0a4a0 = /*#__PURE__*/ createContext(null);
|
|
25
27
|
const $65dbe90f868fa5f4$export$2dc68d50d56fbbd = /*#__PURE__*/ forwardRef(function Breadcrumbs(props, ref) {
|
|
@@ -80,6 +82,7 @@ const Breadcrumbs = (t0) => {
|
|
|
80
82
|
const $ = c(58);
|
|
81
83
|
const { items, className, onAction, iconOnly: t1 } = t0;
|
|
82
84
|
const iconOnly = t1 === void 0 ? false : t1;
|
|
85
|
+
const { t } = useTranslation("ui");
|
|
83
86
|
const breadcrumbsCva = UIOverrides.useCva("breadcrumbs.cva", breadcrumbsDefinition);
|
|
84
87
|
const breadcrumbItem = UIOverrides.useCva("breadcrumbs.itemCva", breadcrumbItemDefinition);
|
|
85
88
|
const breadcrumbSegmentCva = UIOverrides.useCva("breadcrumbs.segmentCva", breadcrumbSegmentDefinition);
|
|
@@ -123,10 +126,12 @@ const Breadcrumbs = (t0) => {
|
|
|
123
126
|
...item.link,
|
|
124
127
|
className: breadcrumbItem({ isCurrent }),
|
|
125
128
|
children: [item.icon && /* @__PURE__ */ jsx(IconSlot, {
|
|
126
|
-
icon:
|
|
129
|
+
icon: item.icon,
|
|
130
|
+
"aria-hidden": true,
|
|
127
131
|
className: breadcrumbIconCva({})
|
|
128
|
-
}),
|
|
132
|
+
}), /* @__PURE__ */ jsx(Typography, {
|
|
129
133
|
size: "body",
|
|
134
|
+
className: iconOnly_0 && item.icon ? "sr-only" : void 0,
|
|
130
135
|
children: item.label
|
|
131
136
|
})]
|
|
132
137
|
});
|
|
@@ -142,7 +147,7 @@ const Breadcrumbs = (t0) => {
|
|
|
142
147
|
trigger: /* @__PURE__ */ jsx(Tooltip, {
|
|
143
148
|
text: hiddenItems.map(_temp2).join(", "),
|
|
144
149
|
children: /* @__PURE__ */ jsx($7705c033048f6da7$export$353f5b6fc5456de1, {
|
|
145
|
-
"aria-label":
|
|
150
|
+
"aria-label": t(_temp3),
|
|
146
151
|
className: breadcrumbItem({
|
|
147
152
|
isCurrent: false,
|
|
148
153
|
isEllipsis: true
|
|
@@ -286,12 +291,12 @@ const Breadcrumbs = (t0) => {
|
|
|
286
291
|
} else t7 = $[45];
|
|
287
292
|
let t8;
|
|
288
293
|
if ($[46] !== breadcrumbChevronCva || $[47] !== breadcrumbSegmentCva || $[48] !== iconOnly || $[49] !== items[0] || $[50] !== renderBreadcrumbLink) {
|
|
289
|
-
t8 = (
|
|
290
|
-
id:
|
|
294
|
+
t8 = (item_0) => /* @__PURE__ */ jsx($65dbe90f868fa5f4$export$dabcc1ec9dd9d1cc, {
|
|
295
|
+
id: item_0.id,
|
|
291
296
|
className: breadcrumbSegmentCva({}),
|
|
292
297
|
children: (t9) => {
|
|
293
298
|
const { isCurrent: isCurrent_0 } = t9;
|
|
294
|
-
return /* @__PURE__ */ jsxs(Fragment$1, { children: [renderBreadcrumbLink(
|
|
299
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [renderBreadcrumbLink(item_0, isCurrent_0, iconOnly && item_0 === items[0]), !isCurrent_0 && /* @__PURE__ */ jsx(IconSlot, {
|
|
295
300
|
icon: ChevronRight,
|
|
296
301
|
scale: .875,
|
|
297
302
|
className: breadcrumbChevronCva({})
|
|
@@ -324,15 +329,26 @@ const Breadcrumbs = (t0) => {
|
|
|
324
329
|
} else t9 = $[57];
|
|
325
330
|
return t9;
|
|
326
331
|
};
|
|
327
|
-
function _temp(
|
|
332
|
+
function _temp(t0) {
|
|
333
|
+
const { id, label, link } = t0;
|
|
328
334
|
return {
|
|
329
|
-
id
|
|
330
|
-
label
|
|
331
|
-
|
|
335
|
+
id,
|
|
336
|
+
label,
|
|
337
|
+
href: link?.href,
|
|
338
|
+
hrefLang: link?.hrefLang,
|
|
339
|
+
target: link?.target,
|
|
340
|
+
rel: link?.rel,
|
|
341
|
+
download: link?.download,
|
|
342
|
+
ping: link?.ping,
|
|
343
|
+
referrerPolicy: link?.referrerPolicy,
|
|
344
|
+
routerOptions: link?.routerOptions
|
|
332
345
|
};
|
|
333
346
|
}
|
|
334
347
|
function _temp2(i) {
|
|
335
348
|
return i.label;
|
|
336
349
|
}
|
|
350
|
+
function _temp3($) {
|
|
351
|
+
return $.ui.breadcrumbs.showHidden;
|
|
352
|
+
}
|
|
337
353
|
//#endregion
|
|
338
354
|
export { Breadcrumbs as t };
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import { n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e } from "./utils-BkLF-JA3.js";
|
|
2
|
+
import { n as $6c0095e7e99364f2$export$e9f3bf65a26ce129 } from "./ProgressBar-BsSimmJF.js";
|
|
2
3
|
import $ahdqC$react, { createContext, useEffect, useRef } from "react";
|
|
3
4
|
import { mergeProps } from "react-aria/mergeProps";
|
|
4
5
|
import { filterDOMProps } from "react-aria/filterDOMProps";
|
|
5
6
|
import { useFocusRing } from "react-aria/useFocusRing";
|
|
6
7
|
import { useHover } from "react-aria/useHover";
|
|
7
8
|
import { createHideableComponent } from "react-aria/private/collections/Hidden";
|
|
8
|
-
import "react-aria/useProgressBar";
|
|
9
|
-
import "react-stately/private/utils/number";
|
|
10
9
|
import { announce } from "react-aria/private/live-announcer/LiveAnnouncer";
|
|
11
10
|
import { useButton } from "react-aria/useButton";
|
|
12
11
|
import { useId as useId$1 } from "react-aria/useId";
|
|
13
|
-
//#region ../../node_modules/.bun/react-aria-components@1.22.1+67f6792bdf102c28/node_modules/react-aria-components/dist/private/ProgressBar.mjs
|
|
14
|
-
const $6c0095e7e99364f2$export$e9f3bf65a26ce129 = /*#__PURE__*/ createContext(null);
|
|
15
|
-
//#endregion
|
|
16
12
|
//#region ../../node_modules/.bun/react-aria-components@1.22.1+67f6792bdf102c28/node_modules/react-aria-components/dist/private/Button.mjs
|
|
17
13
|
const $7705c033048f6da7$export$24d547caef80ccd1 = /*#__PURE__*/ createContext({});
|
|
18
14
|
const $7705c033048f6da7$export$353f5b6fc5456de1 = /*#__PURE__*/ createHideableComponent(function Button(props, ref) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as ButtonProps$1, n as ButtonSharedProps, t as AriaButtonPropsWithoutRestated } from "./ButtonBase-Cp1w00t2.js";
|
|
2
2
|
//#region src/components/buttons/Button/Button.d.ts
|
|
3
3
|
/** A text action, optionally accompanied by icons. Use ToggleButton for persistent selection. */
|
|
4
|
-
type ButtonProps = ButtonSharedProps & ButtonProps$1 & {
|
|
4
|
+
type ButtonProps = ButtonSharedProps & AriaButtonPropsWithoutRestated<ButtonProps$1> & {
|
|
5
5
|
toggle?: never;
|
|
6
6
|
iconOnly?: never;
|
|
7
7
|
isSelected?: never;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { n as IconSlotIcon } from "./IconSlot-DcEDPaNb.js";
|
|
2
|
+
import { xn as ButtonVariantProps } from "./link.cva-D6L1c2wq.js";
|
|
3
|
+
import { n as Removed } from "./hints-B09_WDhL.js";
|
|
4
|
+
import { n as LinkNavigationProps } from "./Link-BdnWVYL9.js";
|
|
5
|
+
import { t as ButtonContentVariantProps } from "./buttonContent.cva-Dyy_RUZU.js";
|
|
6
|
+
import { ReactNode, Ref } from "react";
|
|
7
|
+
import { ButtonProps as ButtonProps$1, ToggleButtonProps as ToggleButtonProps$1 } from "react-aria-components";
|
|
8
|
+
//#region src/components/buttons/shared/ButtonBase.d.ts
|
|
9
|
+
type ButtonIconProps = {
|
|
10
|
+
/** The button's single icon: a component such as a lucide icon, or an element. Place it with `iconPosition`. */
|
|
11
|
+
icon?: IconSlotIcon;
|
|
12
|
+
};
|
|
13
|
+
type ButtonAppearanceProps = ButtonVariantProps;
|
|
14
|
+
type ButtonSharedProps = ButtonAppearanceProps & Omit<ButtonContentVariantProps, "size"> & ButtonIconProps & {
|
|
15
|
+
/** Defaults to `UIConfig.button.variant` (`contained`). */
|
|
16
|
+
variant?: ButtonVariantProps["variant"];
|
|
17
|
+
/** Omit for the default height, `sm` for compact. Defaults to `UIConfig.button.size`. */
|
|
18
|
+
size?: ButtonVariantProps["size"];
|
|
19
|
+
children: ReactNode;
|
|
20
|
+
ref?: Ref<HTMLButtonElement | HTMLAnchorElement>;
|
|
21
|
+
/** Shows a spinner in place of the icon and, unless `disableWhileLoading` is false, disables the button. */
|
|
22
|
+
isLoading?: boolean;
|
|
23
|
+
/** Renders the button as a router link instead of an action. */
|
|
24
|
+
link?: LinkNavigationProps;
|
|
25
|
+
/** Whether `isLoading` also disables the button. Defaults to true. */
|
|
26
|
+
disableWhileLoading?: boolean;
|
|
27
|
+
/** Classes for the button. React Aria's render-state function form is not supported. */
|
|
28
|
+
className?: string;
|
|
29
|
+
iconClassName?: string;
|
|
30
|
+
contentRef?: Ref<HTMLElement>;
|
|
31
|
+
/** @deprecated Use `isLoading`. */
|
|
32
|
+
isPending?: Removed<"Use `isLoading`; it shows the spinner">;
|
|
33
|
+
/** @deprecated Use `disableWhileLoading={false}`. */
|
|
34
|
+
noDisableWhenLoading?: Removed<"Use `disableWhileLoading={false}`">;
|
|
35
|
+
/** @deprecated Use `width="fill"`. */
|
|
36
|
+
fullWidth?: Removed<"Use `width='fill'` instead of `fullWidth`">;
|
|
37
|
+
/** @deprecated Use `icon`; it is placed left by default. */
|
|
38
|
+
startIcon?: Removed<"Use `icon` (placed left by default) instead of `startIcon`">;
|
|
39
|
+
/** @deprecated Use `icon` with `iconPosition="right"`. */
|
|
40
|
+
endIcon?: Removed<"Use `icon` with `iconPosition='right'` instead of `endIcon`">;
|
|
41
|
+
/** @deprecated Use `link={{ href }}`. */
|
|
42
|
+
href?: Removed<"Use `link={{ href }}` instead of `href`">;
|
|
43
|
+
};
|
|
44
|
+
/** React Aria's button props minus those `ButtonSharedProps` restates: `className` as a string, `isPending` as a hint. */
|
|
45
|
+
type AriaButtonPropsWithoutRestated<TProps> = Omit<TProps, "className" | "isPending">;
|
|
46
|
+
//#endregion
|
|
47
|
+
export { ButtonProps$1 as i, ButtonSharedProps as n, ToggleButtonProps$1 as r, AriaButtonPropsWithoutRestated as t };
|
|
@@ -1,31 +1,25 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
2
|
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
3
|
import { t as $984a1fc08f87e4f3$export$a6c7ac8248d6e38a } from "./Link-Chux-Clm.js";
|
|
4
|
-
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-
|
|
4
|
+
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-BJJkLVNj.js";
|
|
5
5
|
import { t as $75afe627ae0cc0fa$export$d2b052e7b4be1756 } from "./ToggleButton-P1z1pxzT.js";
|
|
6
|
-
import { t as LinkContext } from "./link.context-
|
|
7
|
-
import { t as ButtonContent } from "./ButtonContent-
|
|
8
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
9
|
-
import { a as buttonTypography, i as buttonSizeDefinition, n as buttonDefinition, r as buttonIconSizeDefinition, t as buttonContentDefinition } from "./button.cva-
|
|
6
|
+
import { t as LinkContext } from "./link.context-CD5h_b5O.js";
|
|
7
|
+
import { t as ButtonContent } from "./ButtonContent-2KsbdWRO.js";
|
|
8
|
+
import { t as UIConfig } from "./uiConfig.context-CjnLnQOo.js";
|
|
9
|
+
import { a as buttonTypography, i as buttonSizeDefinition, n as buttonDefinition, r as buttonIconSizeDefinition, t as buttonContentDefinition } from "./button.cva-C2aoXMh-.js";
|
|
10
10
|
import { jsx } from "react/jsx-runtime";
|
|
11
11
|
//#region src/components/buttons/shared/ButtonBase.tsx
|
|
12
|
-
const getContentIconPosition = ({ icon,
|
|
13
|
-
if (
|
|
14
|
-
|
|
15
|
-
return "none";
|
|
12
|
+
const getContentIconPosition = ({ icon, iconPosition }) => {
|
|
13
|
+
if (!icon) return "none";
|
|
14
|
+
return iconPosition === "right" ? "right" : "left";
|
|
16
15
|
};
|
|
17
|
-
const ButtonBase = ({ behavior = "action", icon: Icon,
|
|
16
|
+
const ButtonBase = ({ behavior = "action", icon: Icon, iconPosition, children, isLoading, className, link, iconClassName, disableWhileLoading = true, contentRef, variant: variantProp, size: sizeProp, width, ...props }) => {
|
|
18
17
|
const linkContext = LinkContext.useLinkContext();
|
|
19
18
|
const uiConfig = UIConfig.useConfig();
|
|
20
19
|
const variant = variantProp ?? uiConfig.button.variant;
|
|
21
20
|
const size = sizeProp ?? uiConfig.button.size;
|
|
22
|
-
const width = fullWidth ? "fill" : widthProp;
|
|
23
|
-
const isLoading = isLoadingProp ?? loading;
|
|
24
|
-
const shouldDisableWhileLoading = disableWhileLoading ?? !noDisableWhenLoading;
|
|
25
21
|
const contentIconPosition = getContentIconPosition({
|
|
26
22
|
icon: Icon,
|
|
27
|
-
startIcon,
|
|
28
|
-
endIcon,
|
|
29
23
|
iconPosition
|
|
30
24
|
});
|
|
31
25
|
const buttonCva = UIOverrides.useCva("button.cva", buttonDefinition);
|
|
@@ -42,7 +36,7 @@ const ButtonBase = ({ behavior = "action", icon: Icon, startIcon, endIcon, iconP
|
|
|
42
36
|
return /* @__PURE__ */ jsx(Component, {
|
|
43
37
|
...props,
|
|
44
38
|
...link,
|
|
45
|
-
isDisabled: props.isDisabled || isLoading &&
|
|
39
|
+
isDisabled: props.isDisabled || isLoading && disableWhileLoading,
|
|
46
40
|
className: clsx(buttonCva({
|
|
47
41
|
...props,
|
|
48
42
|
variant,
|
|
@@ -64,8 +58,6 @@ const ButtonBase = ({ behavior = "action", icon: Icon, startIcon, endIcon, iconP
|
|
|
64
58
|
ref: contentRef,
|
|
65
59
|
isLoading,
|
|
66
60
|
icon: Icon,
|
|
67
|
-
startIcon,
|
|
68
|
-
endIcon,
|
|
69
61
|
content: children,
|
|
70
62
|
hideText: props.iconOnly,
|
|
71
63
|
iconPosition,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
2
|
import { r as cva, t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
-
import { t as IconSlot } from "./IconSlot-
|
|
3
|
+
import { t as IconSlot } from "./IconSlot-TAWTJ6iK.js";
|
|
4
4
|
import { t as typographyDefinition } from "./typography.cva-CHsHX_Wp.js";
|
|
5
|
-
import {
|
|
5
|
+
import { Spinner } from "./components/spinner.js";
|
|
6
6
|
import { c } from "react/compiler-runtime";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/buttons/shared/buttonContent.cva.ts
|
|
@@ -27,7 +27,7 @@ const buttonContentLabel = cva("hyphens-auto md:truncate", {
|
|
|
27
27
|
//#region src/components/buttons/shared/ButtonContent.tsx
|
|
28
28
|
const ButtonContent = (t0) => {
|
|
29
29
|
const $ = c(24);
|
|
30
|
-
const { ref, content, isLoading, icon: Icon,
|
|
30
|
+
const { ref, content, isLoading, icon: Icon, iconClassName, hideText, iconPosition: t1, typography: typographyOverrides } = t0;
|
|
31
31
|
const iconPosition = t1 === void 0 ? "left" : t1;
|
|
32
32
|
const typographyCva = UIOverrides.useCva("typography.cva", typographyDefinition);
|
|
33
33
|
let t2;
|
|
@@ -53,7 +53,7 @@ const ButtonContent = (t0) => {
|
|
|
53
53
|
} else t3 = $[2];
|
|
54
54
|
startIconOrLoader = t3;
|
|
55
55
|
} else {
|
|
56
|
-
const t3 =
|
|
56
|
+
const t3 = iconPosition !== "right" ? Icon : void 0;
|
|
57
57
|
let t4;
|
|
58
58
|
if ($[3] !== renderIcon || $[4] !== t3) {
|
|
59
59
|
t4 = renderIcon(t3);
|
|
@@ -62,7 +62,7 @@ const ButtonContent = (t0) => {
|
|
|
62
62
|
$[5] = t4;
|
|
63
63
|
} else t4 = $[5];
|
|
64
64
|
startIconOrLoader = t4;
|
|
65
|
-
const t5 =
|
|
65
|
+
const t5 = iconPosition === "right" ? Icon : void 0;
|
|
66
66
|
let t6;
|
|
67
67
|
if ($[6] !== renderIcon || $[7] !== t5) {
|
|
68
68
|
t6 = renderIcon(t5);
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
|
-
import { t as IconSlot } from "./IconSlot-
|
|
3
|
-
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-
|
|
4
|
-
import {
|
|
2
|
+
import { t as IconSlot } from "./IconSlot-TAWTJ6iK.js";
|
|
3
|
+
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-BJJkLVNj.js";
|
|
4
|
+
import { a as $928221da08ecbc62$export$a11e76429ed99b4, t as $928221da08ecbc62$export$41f133550aa26f48 } from "./ListBox-gR4iSV7N.js";
|
|
5
5
|
import { n as $bc25b811ec97a172$export$40258cc1d95ff477 } from "./ToggleButton-P1z1pxzT.js";
|
|
6
6
|
import { t as Typography } from "./Typography-DCLnPa3P.js";
|
|
7
|
+
import "./i18n-DQs7jPjv.js";
|
|
7
8
|
import { n as uiOutlineClass } from "./outline.clsx-DGGQQRkM.js";
|
|
8
|
-
import {
|
|
9
|
-
import "./
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { n as CalendarGrid, t as $1697a7ad3db7b79f$re_export$useDateFormatter } from "./import-Dkfk7PHt.js";
|
|
13
|
-
import { ChevronDown, ChevronLeft, ChevronRight, ChevronUp } from "lucide-react";
|
|
9
|
+
import { t as TimePickerForm } from "./TimePickerForm-BMqNpDPT.js";
|
|
10
|
+
import { Badge } from "./components/badge.js";
|
|
11
|
+
import { t as useScrollableListBox } from "./useScrollableListBox-C8chM7c-.js";
|
|
12
|
+
import { n as CalendarGrid, t as $1697a7ad3db7b79f$re_export$useDateFormatter } from "./import-C73fI3WD.js";
|
|
14
13
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
15
14
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
+
import { ChevronDown, ChevronLeft, ChevronRight, ChevronUp } from "lucide-react";
|
|
16
16
|
import { CalendarDateTime, Time, today } from "@internationalized/date";
|
|
17
17
|
import { useTranslation } from "react-i18next";
|
|
18
18
|
import { useCalendar } from "@react-aria/calendar";
|
|
@@ -61,12 +61,12 @@ const CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextB
|
|
|
61
61
|
"aria-label": t(($) => $.ui.datePicker.calendarNavigation),
|
|
62
62
|
className: "flex gap-2",
|
|
63
63
|
children: [
|
|
64
|
-
granularity !== "year" && /* @__PURE__ */ jsx(
|
|
64
|
+
granularity !== "year" && /* @__PURE__ */ jsx(Badge, {
|
|
65
|
+
as: "toggle",
|
|
65
66
|
color: "secondary",
|
|
66
67
|
variant: "subtle",
|
|
67
68
|
iconPosition: "right",
|
|
68
69
|
icon: toggleState === "month" ? ChevronUp : ChevronDown,
|
|
69
|
-
toggle: true,
|
|
70
70
|
isSelected: toggleState === "month",
|
|
71
71
|
onChange: (isSelected) => {
|
|
72
72
|
if (!isSelected) {
|
|
@@ -81,12 +81,12 @@ const CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextB
|
|
|
81
81
|
},
|
|
82
82
|
children: month
|
|
83
83
|
}),
|
|
84
|
-
/* @__PURE__ */ jsx(
|
|
84
|
+
/* @__PURE__ */ jsx(Badge, {
|
|
85
|
+
as: "toggle",
|
|
85
86
|
color: "secondary",
|
|
86
87
|
variant: "subtle",
|
|
87
88
|
iconPosition: "right",
|
|
88
89
|
icon: toggleState === "year" ? ChevronUp : ChevronDown,
|
|
89
|
-
toggle: true,
|
|
90
90
|
isSelected: toggleState === "year",
|
|
91
91
|
onChange: (isSelected) => {
|
|
92
92
|
if (isSelected) {
|
|
@@ -105,12 +105,12 @@ const CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextB
|
|
|
105
105
|
},
|
|
106
106
|
children: year
|
|
107
107
|
}),
|
|
108
|
-
includesTime && /* @__PURE__ */ jsx(
|
|
108
|
+
includesTime && /* @__PURE__ */ jsx(Badge, {
|
|
109
|
+
as: "toggle",
|
|
109
110
|
color: "secondary",
|
|
110
111
|
variant: "subtle",
|
|
111
112
|
iconPosition: "right",
|
|
112
113
|
icon: toggleState === "time" ? ChevronUp : ChevronDown,
|
|
113
|
-
toggle: true,
|
|
114
114
|
isSelected: toggleState === "time",
|
|
115
115
|
onChange: (isSelected) => setToggleState(isSelected ? "time" : null),
|
|
116
116
|
children: timeLabel
|
|
@@ -132,6 +132,7 @@ const CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextB
|
|
|
132
132
|
//#endregion
|
|
133
133
|
//#region src/components/inputs/DateTime/shared/MonthPicker.tsx
|
|
134
134
|
const MonthPicker = ({ state, onSelectionChange, onDateChange, onCommit, selectedDate }) => {
|
|
135
|
+
const { t } = useTranslation("ui");
|
|
135
136
|
const formatter = $1697a7ad3db7b79f$re_export$useDateFormatter({
|
|
136
137
|
month: "long",
|
|
137
138
|
timeZone: state.timeZone
|
|
@@ -168,7 +169,7 @@ const MonthPicker = ({ state, onSelectionChange, onDateChange, onCommit, selecte
|
|
|
168
169
|
};
|
|
169
170
|
return /* @__PURE__ */ jsx($928221da08ecbc62$export$41f133550aa26f48, {
|
|
170
171
|
autoFocus: true,
|
|
171
|
-
"aria-label":
|
|
172
|
+
"aria-label": t(($) => $.ui.datePicker.month),
|
|
172
173
|
selectionMode: "single",
|
|
173
174
|
layout: "grid",
|
|
174
175
|
...listBoxSelectionProps,
|
|
@@ -215,6 +216,7 @@ const MonthPicker = ({ state, onSelectionChange, onDateChange, onCommit, selecte
|
|
|
215
216
|
//#endregion
|
|
216
217
|
//#region src/components/inputs/DateTime/shared/YearPicker.tsx
|
|
217
218
|
const YearPicker = ({ state, onSelectionChange, onDateChange, onCommit, selectedDate }) => {
|
|
219
|
+
const { t } = useTranslation("ui");
|
|
218
220
|
const formatter = $1697a7ad3db7b79f$re_export$useDateFormatter({
|
|
219
221
|
year: "numeric",
|
|
220
222
|
timeZone: state.timeZone
|
|
@@ -260,7 +262,7 @@ const YearPicker = ({ state, onSelectionChange, onDateChange, onCommit, selected
|
|
|
260
262
|
return /* @__PURE__ */ jsx($928221da08ecbc62$export$41f133550aa26f48, {
|
|
261
263
|
ref,
|
|
262
264
|
autoFocus: true,
|
|
263
|
-
"aria-label":
|
|
265
|
+
"aria-label": t(($) => $.ui.datePicker.year),
|
|
264
266
|
selectionMode: "single",
|
|
265
267
|
...listBoxSelectionProps,
|
|
266
268
|
onSelectionChange: (key) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Spinner } from "./components/spinner.js";
|
|
2
|
+
import { i as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6 } from "./DatePickerInput-Bp9ZIN5E.js";
|
|
3
3
|
import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-CuU1VIh1.js";
|
|
4
4
|
import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10 } from "./NumberFormatter-DYarfm5F.js";
|
|
5
|
-
import {
|
|
5
|
+
import { _ as $8b141f2f71e88f85$export$c5221a78ef73c5e9, h as $8b141f2f71e88f85$export$7e319ea407e63bc0, m as $8b141f2f71e88f85$export$2440da353cedad43, v as $8b141f2f71e88f85$export$f18627323ab57ac0 } from "./staticDateTimeSegments-BYk1tcxs.js";
|
|
6
6
|
import { Suspense, lazy, useMemo, useState } from "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
import { DateFormatter, toCalendarDate, toCalendarDateTime } from "@internationalized/date";
|
|
@@ -110,7 +110,7 @@ function $28aae683a942e141$export$87194bb378cc3ac2(props) {
|
|
|
110
110
|
}
|
|
111
111
|
//#endregion
|
|
112
112
|
//#region src/components/inputs/DateTime/shared/Calendar.lazy.tsx
|
|
113
|
-
const loadCalendar = () => import("./Calendar-
|
|
113
|
+
const loadCalendar = () => import("./Calendar-DN-i_b-_.js");
|
|
114
114
|
const CalendarRenderer = lazy(() => loadCalendar().then(({ Calendar }) => ({ default: Calendar })));
|
|
115
115
|
/** Fetches the calendar chunk ahead of the dialog opening (hover, focus). */
|
|
116
116
|
const preloadCalendar = () => {
|
|
@@ -4,12 +4,14 @@ import { c as $7230ffa83bc0c2cf$export$ef03459518577ad4, i as $7230ffa83bc0c2cf$
|
|
|
4
4
|
import { t as $43a3b93638fe5db9$export$75b6ee27786ba447 } from "./Label-BGvF9vWx.js";
|
|
5
5
|
import { t as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-D72yc4S6.js";
|
|
6
6
|
import { n as $1f3c3b1a70cec653$export$ff05c3ac10437e03, t as $cdaed739b1139372$export$c24727297075ec6a } from "./Form-CqF1SaVw.js";
|
|
7
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
8
|
-
import {
|
|
7
|
+
import { t as UIConfig } from "./uiConfig.context-CjnLnQOo.js";
|
|
8
|
+
import { n as FieldController } from "./form.binding-Brdjq2yr.js";
|
|
9
|
+
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
|
|
10
|
+
import { c as checkboxTypography, s as checkboxIndicatorClass, t as checkboxContentClassName } from "./checkbox.cva-qU_q0lSX.js";
|
|
9
11
|
import { t as FormFieldError } from "./FormFieldError-DTT5TUQ1.js";
|
|
10
12
|
import { t as CheckContent } from "./CheckContent-BKLnTPZr.js";
|
|
11
13
|
import { t as useFieldAccessibility } from "./useFieldAccessibility-eZIMECmG.js";
|
|
12
|
-
import { t as CheckboxCheckmark } from "./CheckboxCheckmark-
|
|
14
|
+
import { t as CheckboxCheckmark } from "./CheckboxCheckmark-DDU_Ie7-.js";
|
|
13
15
|
import $ahdqC$react, { createContext, forwardRef, memo, useContext, useMemo } from "react";
|
|
14
16
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
15
17
|
import { mergeProps } from "react-aria/mergeProps";
|
|
@@ -156,8 +158,7 @@ const CheckboxBase = (props) => {
|
|
|
156
158
|
const ui = UIConfig.useConfig();
|
|
157
159
|
const checkboxTypographyMap = UIOverrides.useMapper("checkbox.typography", checkboxTypography);
|
|
158
160
|
const checkboxContentClassNameMap = UIOverrides.useMapper("checkbox.contentClassName", checkboxContentClassName);
|
|
159
|
-
const { className, children, isDisabled,
|
|
160
|
-
const resolvedIsDisabled = isDisabled ?? disabled;
|
|
161
|
+
const { className, children, isDisabled, isRequired, error, isInvalid, hideError, labelClassName, variant: variantProp, hideLabel: hideLabelProp, fireBlurOnChange: fireBlurOnChangeProp, onChange, onBlur, ...rest } = props;
|
|
161
162
|
const variant = variantProp ?? ui.checkbox.variant;
|
|
162
163
|
const hideLabel = hideLabelProp ?? ui.input.hideLabel;
|
|
163
164
|
const fireBlurOnChange = fireBlurOnChangeProp ?? ui.checkbox.fireBlurOnChange;
|
|
@@ -168,7 +169,7 @@ const CheckboxBase = (props) => {
|
|
|
168
169
|
const formFieldErrorProps = {
|
|
169
170
|
id: accessibility.errorMessageId,
|
|
170
171
|
error,
|
|
171
|
-
isDisabled
|
|
172
|
+
isDisabled
|
|
172
173
|
};
|
|
173
174
|
const handleChange = (isSelected) => {
|
|
174
175
|
onChange?.(isSelected);
|
|
@@ -176,9 +177,10 @@ const CheckboxBase = (props) => {
|
|
|
176
177
|
};
|
|
177
178
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs($ed8ccb2e23e76301$export$48513f6b9f8ce62d, {
|
|
178
179
|
...rest,
|
|
179
|
-
isDisabled
|
|
180
|
-
isInvalid: !!error,
|
|
180
|
+
isDisabled,
|
|
181
|
+
isInvalid: isInvalid || !!error,
|
|
181
182
|
isRequired,
|
|
183
|
+
validationBehavior: "aria",
|
|
182
184
|
"aria-label": rest["aria-label"] ?? (!rest["aria-labelledby"] && hideLabel && typeof children === "string" ? children : void 0),
|
|
183
185
|
"aria-describedby": accessibility.describedBy,
|
|
184
186
|
"aria-errormessage": rest["aria-errormessage"] ?? accessibility.errorMessageId,
|
|
@@ -204,7 +206,31 @@ const CheckboxBase = (props) => {
|
|
|
204
206
|
})]
|
|
205
207
|
}), !hideError && /* @__PURE__ */ jsx(FormFieldError, { ...formFieldErrorProps })] });
|
|
206
208
|
};
|
|
207
|
-
const
|
|
209
|
+
const ControlledCheckbox = (props) => {
|
|
210
|
+
const { field, ref, ...innerProps } = props;
|
|
211
|
+
return /* @__PURE__ */ jsx(FieldController, {
|
|
212
|
+
control: field.form,
|
|
213
|
+
name: field.name,
|
|
214
|
+
onValueChange: field.onValueChange,
|
|
215
|
+
onBlur: field.onBlur,
|
|
216
|
+
render: ({ field, fieldState: { error, isDirty } }) => /* @__PURE__ */ jsx(CheckboxBase, {
|
|
217
|
+
...innerProps,
|
|
218
|
+
fireBlurOnChange: false,
|
|
219
|
+
ref: $a8ea2faf2ebe4d2f$re_export$mergeRefs(ref, field.ref),
|
|
220
|
+
isSelected: field.value ?? false,
|
|
221
|
+
onChange: (value) => {
|
|
222
|
+
field.onChange(value);
|
|
223
|
+
field.onValueCommit();
|
|
224
|
+
},
|
|
225
|
+
onBlur: field.onBlur,
|
|
226
|
+
name: field.name,
|
|
227
|
+
isDirty,
|
|
228
|
+
isDisabled: field.disabled || props.isDisabled,
|
|
229
|
+
error: props.error ?? error?.message
|
|
230
|
+
})
|
|
231
|
+
});
|
|
232
|
+
};
|
|
233
|
+
const CheckboxComponent = (props) => props.field ? /* @__PURE__ */ jsx(ControlledCheckbox, { ...props }) : /* @__PURE__ */ jsx(CheckboxBase, { ...props });
|
|
208
234
|
const Checkbox = memo(CheckboxComponent);
|
|
209
235
|
//#endregion
|
|
210
236
|
export { CheckboxBase as n, $ed8ccb2e23e76301$export$4aa08d5625cb8ead as r, Checkbox as t };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { n as IconSlotIcon } from "./IconSlot-DcEDPaNb.js";
|
|
2
|
+
import { dn as CheckboxVariantProps } from "./link.cva-D6L1c2wq.js";
|
|
3
|
+
import { n as Removed } from "./hints-B09_WDhL.js";
|
|
4
|
+
import { t as FormFieldErrorProps } from "./FormFieldError-C7yOdjzQ.js";
|
|
5
|
+
import { i as FieldValues } from "./form.binding-DSXB2AOD.js";
|
|
6
|
+
import { n as UnsupportedAriaFieldProps, t as FormControlProps } from "./form.types-a2WVJDQX.js";
|
|
7
|
+
import { ReactNode, Ref } from "react";
|
|
8
|
+
import { CheckboxProps } from "react-aria-components";
|
|
9
|
+
//#region src/components/inputs/Checkbox/Checkbox.d.ts
|
|
10
|
+
interface CheckboxBaseProps extends Omit<FormFieldErrorProps, "isHidden">, CheckboxVariantProps, Omit<CheckboxProps, "className" | UnsupportedAriaFieldProps> {
|
|
11
|
+
ref?: Ref<HTMLLabelElement>;
|
|
12
|
+
/** The label, rendered next to the box. */
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
/** Hides the label visually; a string label stays the accessible name. Defaults to `UIConfig.input.hideLabel`. */
|
|
15
|
+
hideLabel?: boolean;
|
|
16
|
+
/** Skips the error text below the checkbox; the invalid state still applies. */
|
|
17
|
+
hideError?: boolean;
|
|
18
|
+
/** Calls `onBlur` after every change. Defaults to `UIConfig.checkbox.fireBlurOnChange`. */
|
|
19
|
+
fireBlurOnChange?: boolean;
|
|
20
|
+
/** Icon shown while checked: a component such as a lucide icon, or an element. */
|
|
21
|
+
selectedIcon?: IconSlotIcon;
|
|
22
|
+
/** Icon shown while indeterminate: a component such as a lucide icon, or an element. */
|
|
23
|
+
indeterminateIcon?: IconSlotIcon;
|
|
24
|
+
/** Marks the field as changed; only sets `data-is-dirty` for styling. Filled in automatically when bound with `field`. */
|
|
25
|
+
isDirty?: boolean;
|
|
26
|
+
labelClassName?: string;
|
|
27
|
+
/** @deprecated Pass the label as children. */
|
|
28
|
+
label?: Removed<"Pass the label as children: <Checkbox>Label</Checkbox>">;
|
|
29
|
+
/** @deprecated Use `isSelected`. */
|
|
30
|
+
checked?: Removed<"Use `isSelected`">;
|
|
31
|
+
/** @deprecated Use `onChange`. */
|
|
32
|
+
onCheckedChange?: Removed<"Use `onChange`: (isSelected: boolean) => void">;
|
|
33
|
+
/** @deprecated Never had an effect. */
|
|
34
|
+
isHidden?: Removed<"Use `hideError` to drop the error text; render the checkbox conditionally to hide it">;
|
|
35
|
+
/** @deprecated Use `onChange`, or `field.onValueChange` on a bound checkbox. */
|
|
36
|
+
onValueChange?: Removed<"Use `onChange`, or `field.onValueChange` when the input is bound with `field`">;
|
|
37
|
+
}
|
|
38
|
+
/** Props for a `Checkbox` that owns its state through `isSelected`/`defaultSelected`/`onChange`. */
|
|
39
|
+
type StandaloneCheckboxProps = CheckboxBaseProps & {
|
|
40
|
+
field?: never;
|
|
41
|
+
};
|
|
42
|
+
/** Props for a `Checkbox` bound to a form field; the form owns the value, change, and blur handling. */
|
|
43
|
+
type ControlledCheckboxProps<TFieldValues extends FieldValues = FieldValues> = FormControlProps<StandaloneCheckboxProps, TFieldValues, "isSelected", "a boolean">;
|
|
44
|
+
/** Props for `Checkbox`: either its own value props, or `field={{ form, name }}` to bind a form field. */
|
|
45
|
+
type CheckboxProps$1<TFieldValues extends FieldValues = FieldValues> = StandaloneCheckboxProps | ControlledCheckboxProps<TFieldValues>;
|
|
46
|
+
declare const CheckboxComponent: <TFieldValues extends FieldValues = FieldValues>(props: CheckboxProps$1<TFieldValues>) => import("react").JSX.Element;
|
|
47
|
+
declare const Checkbox: typeof CheckboxComponent;
|
|
48
|
+
//#endregion
|
|
49
|
+
export { StandaloneCheckboxProps as i, CheckboxProps$1 as n, ControlledCheckboxProps as r, Checkbox as t };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
2
|
+
import { t as IconSlot } from "./IconSlot-TAWTJ6iK.js";
|
|
3
|
+
import { i as checkboxDefinition, o as checkboxIconDefinition } from "./checkbox.cva-qU_q0lSX.js";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { Check, Minus } from "lucide-react";
|
|
6
|
+
//#region src/components/inputs/Checkbox/CheckboxCheckmark.tsx
|
|
7
|
+
const fillWrapperStyle = {
|
|
8
|
+
width: "100%",
|
|
9
|
+
height: "100%"
|
|
10
|
+
};
|
|
11
|
+
const CheckboxCheckmark = ({ variant, className, selectedIcon = Check, indeterminateIcon = Minus, ...props }) => {
|
|
12
|
+
const checkboxCva = UIOverrides.useCva("checkbox.cva", checkboxDefinition);
|
|
13
|
+
const checkboxIconCva = UIOverrides.useCva("checkbox.iconCva", checkboxIconDefinition);
|
|
14
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
15
|
+
className: checkboxCva({
|
|
16
|
+
variant,
|
|
17
|
+
...props,
|
|
18
|
+
className
|
|
19
|
+
}),
|
|
20
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
21
|
+
className: checkboxIconCva({
|
|
22
|
+
...props,
|
|
23
|
+
iconVariant: "selected"
|
|
24
|
+
}),
|
|
25
|
+
children: /* @__PURE__ */ jsx(IconSlot, {
|
|
26
|
+
icon: selectedIcon,
|
|
27
|
+
style: fillWrapperStyle
|
|
28
|
+
})
|
|
29
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
30
|
+
className: checkboxIconCva({
|
|
31
|
+
...props,
|
|
32
|
+
iconVariant: "indeterminate"
|
|
33
|
+
}),
|
|
34
|
+
children: /* @__PURE__ */ jsx(IconSlot, {
|
|
35
|
+
icon: indeterminateIcon,
|
|
36
|
+
style: fillWrapperStyle
|
|
37
|
+
})
|
|
38
|
+
})]
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { CheckboxCheckmark as t };
|