@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
package/dist/components/tag.js
CHANGED
|
@@ -1,94 +1,80 @@
|
|
|
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-
|
|
4
|
-
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "../Button-
|
|
3
|
+
import { t as IconSlot } from "../IconSlot-TAWTJ6iK.js";
|
|
4
|
+
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "../Button-BJJkLVNj.js";
|
|
5
5
|
import { t as Typography } from "../Typography-DCLnPa3P.js";
|
|
6
|
-
import { t as UIConfig } from "../uiConfig.context-
|
|
7
|
-
import "../i18n-BE9Wvs9L.js";
|
|
6
|
+
import { t as UIConfig } from "../uiConfig.context-CjnLnQOo.js";
|
|
8
7
|
import { t as tagDefinition } from "../tag.cva-ExMNsTN-.js";
|
|
9
|
-
import {
|
|
8
|
+
import { t as useRemoveButton } from "../useRemoveButton-B6-IGvpY.js";
|
|
10
9
|
import { c } from "react/compiler-runtime";
|
|
11
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
-
import {
|
|
11
|
+
import { X } from "lucide-react";
|
|
13
12
|
//#region src/components/text/Tag/Tag.tsx
|
|
14
13
|
const Tag = (t0) => {
|
|
15
|
-
const $ = c(
|
|
16
|
-
const { className, children,
|
|
14
|
+
const $ = c(17);
|
|
15
|
+
const { className, children, isDisabled, onRemove, removeButtonProps, excludeFromTabOrder, contentRef, textSize: textSizeProp, ...appearanceProps } = t0;
|
|
17
16
|
const uiConfig = UIConfig.useConfig();
|
|
18
17
|
const textSize = textSizeProp ?? uiConfig.tag.textSize;
|
|
19
|
-
const isDismissible = dismissible ?? dismissable ?? false;
|
|
20
|
-
const resolvedIsDisabled = isDisabled ?? disabled;
|
|
21
18
|
const tagCva = UIOverrides.useCva("tag.cva", tagDefinition);
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
$[0] = t;
|
|
28
|
-
$[1] = t2;
|
|
29
|
-
} else t2 = $[1];
|
|
30
|
-
let t3;
|
|
31
|
-
if ($[2] !== dismissButtonProps || $[3] !== excludeFromTabOrder || $[4] !== resolvedIsDisabled || $[5] !== t1 || $[6] !== t2) {
|
|
32
|
-
t3 = {
|
|
33
|
-
...dismissButtonProps,
|
|
19
|
+
let t1;
|
|
20
|
+
if ($[0] !== excludeFromTabOrder || $[1] !== isDisabled || $[2] !== onRemove || $[3] !== removeButtonProps) {
|
|
21
|
+
t1 = {
|
|
22
|
+
onRemove,
|
|
23
|
+
removeButtonProps,
|
|
34
24
|
excludeFromTabOrder,
|
|
35
|
-
isDisabled
|
|
36
|
-
onPress: t1,
|
|
37
|
-
"aria-label": t2
|
|
25
|
+
isDisabled
|
|
38
26
|
};
|
|
39
|
-
$[
|
|
40
|
-
$[
|
|
41
|
-
$[
|
|
42
|
-
$[
|
|
43
|
-
$[
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
const
|
|
47
|
-
const t4 = tagCva({
|
|
27
|
+
$[0] = excludeFromTabOrder;
|
|
28
|
+
$[1] = isDisabled;
|
|
29
|
+
$[2] = onRemove;
|
|
30
|
+
$[3] = removeButtonProps;
|
|
31
|
+
$[4] = t1;
|
|
32
|
+
} else t1 = $[4];
|
|
33
|
+
const { textId, buttonProps } = useRemoveButton(t1);
|
|
34
|
+
const t2 = tagCva({
|
|
48
35
|
...appearanceProps,
|
|
49
36
|
className: clsx("pointer-events-none", className)
|
|
50
37
|
});
|
|
51
|
-
const
|
|
52
|
-
let
|
|
53
|
-
if ($[
|
|
54
|
-
|
|
55
|
-
ref:
|
|
38
|
+
const t3 = contentRef;
|
|
39
|
+
let t4;
|
|
40
|
+
if ($[5] !== children || $[6] !== t3 || $[7] !== textId || $[8] !== textSize) {
|
|
41
|
+
t4 = /* @__PURE__ */ jsx(Typography, {
|
|
42
|
+
ref: t3,
|
|
43
|
+
id: textId,
|
|
56
44
|
size: textSize,
|
|
57
45
|
as: "span",
|
|
58
46
|
className: "truncate",
|
|
59
47
|
children
|
|
60
48
|
});
|
|
61
|
-
$[
|
|
62
|
-
$[
|
|
63
|
-
$[
|
|
64
|
-
$[
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
49
|
+
$[5] = children;
|
|
50
|
+
$[6] = t3;
|
|
51
|
+
$[7] = textId;
|
|
52
|
+
$[8] = textSize;
|
|
53
|
+
$[9] = t4;
|
|
54
|
+
} else t4 = $[9];
|
|
55
|
+
let t5;
|
|
56
|
+
if ($[10] !== buttonProps || $[11] !== onRemove) {
|
|
57
|
+
t5 = onRemove && /* @__PURE__ */ jsx($7705c033048f6da7$export$353f5b6fc5456de1, {
|
|
69
58
|
...buttonProps,
|
|
70
59
|
className: "pointer-events-auto flex items-center shrink-0 rounded-sm opacity-70 outline-none transition-opacity hover:opacity-100 disabled:pointer-events-none disabled:opacity-50",
|
|
71
60
|
children: /* @__PURE__ */ jsx(IconSlot, { icon: X })
|
|
72
61
|
});
|
|
73
|
-
$[
|
|
74
|
-
$[
|
|
75
|
-
$[
|
|
76
|
-
} else
|
|
77
|
-
let
|
|
78
|
-
if ($[
|
|
79
|
-
|
|
80
|
-
className:
|
|
81
|
-
children: [
|
|
62
|
+
$[10] = buttonProps;
|
|
63
|
+
$[11] = onRemove;
|
|
64
|
+
$[12] = t5;
|
|
65
|
+
} else t5 = $[12];
|
|
66
|
+
let t6;
|
|
67
|
+
if ($[13] !== t2 || $[14] !== t4 || $[15] !== t5) {
|
|
68
|
+
t6 = /* @__PURE__ */ jsxs("div", {
|
|
69
|
+
className: t2,
|
|
70
|
+
children: [t4, t5]
|
|
82
71
|
});
|
|
83
|
-
$[
|
|
72
|
+
$[13] = t2;
|
|
73
|
+
$[14] = t4;
|
|
74
|
+
$[15] = t5;
|
|
84
75
|
$[16] = t6;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
} else t8 = $[18];
|
|
88
|
-
return t8;
|
|
76
|
+
} else t6 = $[16];
|
|
77
|
+
return t6;
|
|
89
78
|
};
|
|
90
|
-
function _temp($) {
|
|
91
|
-
return $.ui.tag.dismiss;
|
|
92
|
-
}
|
|
93
79
|
//#endregion
|
|
94
80
|
export { Tag };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as TextAreaProps, n as
|
|
2
|
-
export {
|
|
1
|
+
import { i as TextAreaProps, n as StandaloneTextAreaProps, r as TextArea, t as ControlledTextAreaProps } from "../TextArea-D7YVclaz.js";
|
|
2
|
+
export { type ControlledTextAreaProps, type StandaloneTextAreaProps, TextArea, type TextAreaProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as TextArea } from "../TextArea-
|
|
1
|
+
import { t as TextArea } from "../TextArea-P8F0oD_A.js";
|
|
2
2
|
export { TextArea };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as TimePickerProps, n as
|
|
2
|
-
export {
|
|
1
|
+
import { i as TimePickerProps, n as StandaloneTimePickerProps, r as TimePicker, t as ControlledTimePickerProps } from "../TimePicker-Ai1M2TGW.js";
|
|
2
|
+
export { type ControlledTimePickerProps, type StandaloneTimePickerProps, TimePicker, type TimePickerProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as TimePicker } from "../TimePicker-
|
|
1
|
+
import { t as TimePicker } from "../TimePicker-l4Ysk2AX.js";
|
|
2
2
|
export { TimePicker };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as ToastAction, r as ToastProps, t as
|
|
1
|
+
import { g as ToastVariantProps } from "../link.cva-D6L1c2wq.js";
|
|
2
|
+
import { a as Toast, i as useToast, n as ToastOptions, o as ToastAction, r as ToastParams, s as ToastProps, t as ToastInput } from "../useToast-D2C9pROU.js";
|
|
3
3
|
import { n as ToastProvider, t as ToastContainer } from "../ToastContainer-1H_IxvyH.js";
|
|
4
|
-
export { Toast, type ToastAction, ToastContainer, type ToastProps, ToastProvider, type ToastVariantProps };
|
|
4
|
+
export { Toast, type ToastAction, ToastContainer, type ToastInput, type ToastOptions, type ToastParams, type ToastProps, ToastProvider, type ToastVariantProps, useToast };
|
package/dist/components/toast.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { r as Toast } from "../dist-
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { r as Toast } from "../dist-DZOoWaZz.js";
|
|
2
|
+
import { t as useToast } from "../useToast-DSoOiSw0.js";
|
|
3
|
+
import { n as ToastProvider, t as ToastContainer } from "../ToastContainer-BeklfvlK.js";
|
|
4
|
+
export { Toast, ToastContainer, ToastProvider, useToast };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ToggleButtonProps, t as ToggleButton } from "../ToggleButton-
|
|
1
|
+
import { n as ToggleButtonProps, t as ToggleButton } from "../ToggleButton-DWw53pTt.js";
|
|
2
2
|
export { ToggleButton, ToggleButtonProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ButtonBase } from "../ButtonBase-
|
|
1
|
+
import { t as ButtonBase } from "../ButtonBase-aGz6DYum.js";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/buttons/ToggleButton/ToggleButton.tsx
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ToggleGroupProps, t as ToggleGroup } from "../ToggleGroup-
|
|
2
|
-
export { ToggleGroup, type ToggleGroupProps };
|
|
1
|
+
import { a as ToggleGroupProps, i as ToggleGroupItem, n as ControlledToggleGroupProps, r as StandaloneToggleGroupProps, t as ToggleGroup } from "../ToggleGroup-BQk3k0at.js";
|
|
2
|
+
export { type ControlledToggleGroupProps, type StandaloneToggleGroupProps, ToggleGroup, type ToggleGroupItem, type ToggleGroupProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ToggleGroup } from "../ToggleGroup-
|
|
1
|
+
import { t as ToggleGroup } from "../ToggleGroup-BdIgqoqA.js";
|
|
2
2
|
export { ToggleGroup };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TooltipEllipsisProps, t as TooltipEllipsis } from "../TooltipEllipsis-
|
|
1
|
+
import { n as TooltipEllipsisProps, t as TooltipEllipsis } from "../TooltipEllipsis-7QF00kXk.js";
|
|
2
2
|
export { TooltipEllipsis, TooltipEllipsisProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TooltipProps, t as Tooltip } from "../Tooltip-
|
|
1
|
+
import { n as TooltipProps, t as Tooltip } from "../Tooltip-H8OB7CqY.js";
|
|
2
2
|
export { Tooltip, TooltipProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Tooltip } from "../Tooltip-
|
|
1
|
+
import { t as Tooltip } from "../Tooltip-BkXPEBqw.js";
|
|
2
2
|
export { Tooltip };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as TypographyProps, t as Typography } from "../Typography-
|
|
1
|
+
import { En as TypographyVariantProps } from "../link.cva-D6L1c2wq.js";
|
|
2
|
+
import { n as TypographyProps, t as Typography } from "../Typography-Cx1oRGxd.js";
|
|
3
3
|
export { Typography, type TypographyProps, type TypographyVariantProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
export { ToastOptions, ToastParams, useToast };
|
|
1
|
+
import { i as useToast, n as ToastOptions, r as ToastParams, t as ToastInput } from "../useToast-D2C9pROU.js";
|
|
2
|
+
export { ToastInput, ToastOptions, ToastParams, useToast };
|
|
@@ -1,42 +1,2 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { useCallback, useMemo } from "react";
|
|
3
|
-
//#region src/components/status/Toast/useToast.tsx
|
|
4
|
-
let nextToastId = 0;
|
|
5
|
-
const enqueueToast = (color, params, options) => {
|
|
6
|
-
const id = `povio-toast-${++nextToastId}`;
|
|
7
|
-
activateToastRenderer();
|
|
8
|
-
import("../toast.runtime-Drd2IJ_j.js").then(({ showToast }) => showToast(id, color, params, options));
|
|
9
|
-
return id;
|
|
10
|
-
};
|
|
11
|
-
const useToast = () => {
|
|
12
|
-
const successToast = useCallback((params, options) => {
|
|
13
|
-
return enqueueToast("success", params, options);
|
|
14
|
-
}, []);
|
|
15
|
-
const errorToast = useCallback((params_0, options_0) => {
|
|
16
|
-
return enqueueToast("error", params_0, options_0);
|
|
17
|
-
}, []);
|
|
18
|
-
const warningToast = useCallback((params_1, options_1) => {
|
|
19
|
-
return enqueueToast("warning", params_1, options_1);
|
|
20
|
-
}, []);
|
|
21
|
-
const neutralToast = useCallback((params_2, options_2) => {
|
|
22
|
-
return enqueueToast("neutral", params_2, options_2);
|
|
23
|
-
}, []);
|
|
24
|
-
const closeToast = useCallback((id) => {
|
|
25
|
-
import("../toast.runtime-Drd2IJ_j.js").then(({ dismissToast }) => dismissToast(id));
|
|
26
|
-
}, []);
|
|
27
|
-
return useMemo(() => ({
|
|
28
|
-
successToast,
|
|
29
|
-
errorToast,
|
|
30
|
-
warningToast,
|
|
31
|
-
neutralToast,
|
|
32
|
-
closeToast
|
|
33
|
-
}), [
|
|
34
|
-
successToast,
|
|
35
|
-
errorToast,
|
|
36
|
-
warningToast,
|
|
37
|
-
neutralToast,
|
|
38
|
-
closeToast
|
|
39
|
-
]);
|
|
40
|
-
};
|
|
41
|
-
//#endregion
|
|
1
|
+
import { t as useToast } from "../useToast-DSoOiSw0.js";
|
|
42
2
|
export { useToast };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as UIOverrides } from "../uiOverrides.context-DHHzLSnq.js";
|
|
2
|
-
import { t as UIConfig } from "../uiConfig.context-
|
|
2
|
+
import { t as UIConfig } from "../uiConfig.context-CN_QgxGO.js";
|
|
3
3
|
//#region src/config/component-configuration.d.ts
|
|
4
4
|
interface CvaDefinition {
|
|
5
5
|
base: string[];
|
|
@@ -30,10 +30,61 @@ function parseComponentConfiguration(value) {
|
|
|
30
30
|
if (!isRecord(value) || !safeJSON(value) || !isRecord(value.config) || value.overrides !== void 0 && !validCvaEdits(value.overrides)) return void 0;
|
|
31
31
|
const copy = JSON.parse(JSON.stringify(value));
|
|
32
32
|
return {
|
|
33
|
-
config: copy.config ?? {},
|
|
34
|
-
overrides: copy.overrides ?? {}
|
|
33
|
+
config: migrateLegacyConfig(copy.config ?? {}),
|
|
34
|
+
overrides: migrateLegacyOverrides(copy.overrides ?? {})
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
+
/** 5.x saved the default input label layout as `input.as`; 6.0 names it `input.layout`. */
|
|
38
|
+
function migrateLegacyConfig(config) {
|
|
39
|
+
const input = config.input;
|
|
40
|
+
if (!isRecord(input) || !("as" in input)) return config;
|
|
41
|
+
const { as, ...rest } = input;
|
|
42
|
+
const migrated = rest.layout === void 0 && as !== void 0 ? {
|
|
43
|
+
layout: as,
|
|
44
|
+
...rest
|
|
45
|
+
} : rest;
|
|
46
|
+
return {
|
|
47
|
+
...config,
|
|
48
|
+
input: migrated
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
/** Variant keys renamed in 6.0, by recipe: 5.x keyed the label layout `as` and the progress text place `valueLabel`. */
|
|
52
|
+
const renamedVariantKeys = {
|
|
53
|
+
"input.baseCva": ["as", "layout"],
|
|
54
|
+
"input.sizeCva": ["as", "layout"],
|
|
55
|
+
"input.contentWrapperCva": ["as", "layout"],
|
|
56
|
+
"input.clearClassCva": ["as", "layout"],
|
|
57
|
+
"radio.contentWrapperCva": ["as", "layout"],
|
|
58
|
+
"radio.contentRowCva": ["as", "layout"],
|
|
59
|
+
"checkbox.contentWrapperCva": ["as", "layout"],
|
|
60
|
+
"checkbox.contentRowCva": ["as", "layout"],
|
|
61
|
+
"checkbox.groupLabelCva": ["as", "layout"],
|
|
62
|
+
"label.cva": ["as", "layout"],
|
|
63
|
+
"progress.cva": ["valueLabel", "valuePosition"]
|
|
64
|
+
};
|
|
65
|
+
function renameKey(record, [from, to]) {
|
|
66
|
+
if (!(from in record)) return record;
|
|
67
|
+
const { [from]: value, ...rest } = record;
|
|
68
|
+
return to in rest ? rest : {
|
|
69
|
+
[to]: value,
|
|
70
|
+
...rest
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
/** A configurator file saved by 5.x replaces these recipes with ones keyed by the old names, which 6.0 never matches. */
|
|
74
|
+
function migrateLegacyOverrides(overrides) {
|
|
75
|
+
return Object.fromEntries(Object.entries(overrides).map(([slot, definition]) => {
|
|
76
|
+
const rename = Object.hasOwn(renamedVariantKeys, slot) ? renamedVariantKeys[slot] : void 0;
|
|
77
|
+
if (!definition || !rename) return [slot, definition];
|
|
78
|
+
return [slot, {
|
|
79
|
+
...definition,
|
|
80
|
+
config: {
|
|
81
|
+
variants: renameKey(definition.config.variants, rename),
|
|
82
|
+
defaultVariants: renameKey(definition.config.defaultVariants, rename),
|
|
83
|
+
compoundVariants: definition.config.compoundVariants.map((compound) => renameKey(compound, rename))
|
|
84
|
+
}
|
|
85
|
+
}];
|
|
86
|
+
}));
|
|
87
|
+
}
|
|
37
88
|
function applyCvaEdits(inherited, edits = {}) {
|
|
38
89
|
const result = { ...inherited };
|
|
39
90
|
for (const [slot, definition] of Object.entries(edits)) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Confirmation } from "../confirmation.context-
|
|
1
|
+
import { t as Confirmation } from "../confirmation.context-C_js9qNv.js";
|
|
2
2
|
export { Confirmation };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Confirmation } from "../confirmation.context-
|
|
1
|
+
import { t as Confirmation } from "../confirmation.context-BflM4Vxg.js";
|
|
2
2
|
export { Confirmation };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as LinkNavigationProps } from "../Link-
|
|
2
|
-
import { t as LinkContext } from "../link.context-
|
|
3
|
-
export { LinkContext, type LinkNavigationProps };
|
|
1
|
+
import { n as LinkNavigationProps } from "../Link-BdnWVYL9.js";
|
|
2
|
+
import { n as LinkContextProviderProps, t as LinkContext } from "../link.context-BcBuP9ZT.js";
|
|
3
|
+
export { LinkContext, type LinkContextProviderProps, type LinkNavigationProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as LinkContext } from "../link.context-
|
|
1
|
+
import { t as LinkContext } from "../link.context-CD5h_b5O.js";
|
|
2
2
|
export { LinkContext };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as resources, t as ns } from "../i18n-
|
|
1
|
+
import { n as resources, t as ns } from "../i18n-B3PeqBM7.js";
|
|
2
2
|
export { ns, resources };
|
package/dist/config/resources.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as resources, t as ns } from "../i18n-
|
|
1
|
+
import { n as resources, t as ns } from "../i18n-DQs7jPjv.js";
|
|
2
2
|
export { ns, resources };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { n as DateRangeRelativeOption, r as DateRangeResolvedValue } from "../uiConfig.types-B0sPL7nN.js";
|
|
2
|
+
import { t as UIConfig } from "../uiConfig.context-CN_QgxGO.js";
|
|
3
3
|
export { type DateRangeRelativeOption, type DateRangeResolvedValue, UIConfig };
|
package/dist/config/ui-config.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as UIConfig } from "../uiConfig.context-
|
|
1
|
+
import { t as UIConfig } from "../uiConfig.context-CjnLnQOo.js";
|
|
2
2
|
export { UIConfig };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as UIRouter } from "../router.context-
|
|
1
|
+
import { t as UIRouter } from "../router.context-CSd9JYQ4.js";
|
|
2
2
|
export { UIRouter };
|
package/dist/config/ui-router.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as UIRouter } from "../router.context-
|
|
1
|
+
import { t as UIRouter } from "../router.context-B6j_M4cN.js";
|
|
2
2
|
export { UIRouter };
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import "./i18n-DQs7jPjv.js";
|
|
2
|
+
import { AlertDialog } from "./components/alert-dialog.js";
|
|
3
|
+
import { createContext, use, useCallback, useMemo, useRef, useState } from "react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { useTranslation } from "react-i18next";
|
|
6
|
+
//#region src/config/confirmation.context.tsx
|
|
7
|
+
let Confirmation;
|
|
8
|
+
(function(_Confirmation) {
|
|
9
|
+
const Context = createContext(null);
|
|
10
|
+
_Confirmation.Provider = ({ children }) => {
|
|
11
|
+
const [requests, setRequests] = useState([]);
|
|
12
|
+
const [pendingRequestId, setPendingRequestId] = useState();
|
|
13
|
+
const nextRequestId = useRef(0);
|
|
14
|
+
const { t } = useTranslation("ui");
|
|
15
|
+
const confirm = useCallback(async (input) => {
|
|
16
|
+
return new Promise((resolve, reject) => {
|
|
17
|
+
setRequests((current) => [...current, {
|
|
18
|
+
id: ++nextRequestId.current,
|
|
19
|
+
input: {
|
|
20
|
+
...input,
|
|
21
|
+
cancelLabel: input.cancelLabel ?? t(($) => $.ui.confirmation.cancel),
|
|
22
|
+
confirmLabel: input.confirmLabel ?? t(($_0) => $_0.ui.confirmation.confirm)
|
|
23
|
+
},
|
|
24
|
+
resolve,
|
|
25
|
+
reject
|
|
26
|
+
}]);
|
|
27
|
+
});
|
|
28
|
+
}, [t]);
|
|
29
|
+
const removeRequest = useCallback((request) => {
|
|
30
|
+
setRequests((current_0) => current_0.filter(({ id }) => id !== request.id));
|
|
31
|
+
}, []);
|
|
32
|
+
const cancelRequest = useCallback((request_0) => {
|
|
33
|
+
request_0.resolve(false);
|
|
34
|
+
removeRequest(request_0);
|
|
35
|
+
}, [removeRequest]);
|
|
36
|
+
const confirmRequest = useCallback(async (request_1) => {
|
|
37
|
+
const { onConfirm } = request_1.input;
|
|
38
|
+
if (onConfirm) {
|
|
39
|
+
setPendingRequestId(request_1.id);
|
|
40
|
+
try {
|
|
41
|
+
await onConfirm();
|
|
42
|
+
} catch (error) {
|
|
43
|
+
request_1.reject(error);
|
|
44
|
+
removeRequest(request_1);
|
|
45
|
+
return;
|
|
46
|
+
} finally {
|
|
47
|
+
setPendingRequestId(void 0);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
request_1.resolve(true);
|
|
51
|
+
removeRequest(request_1);
|
|
52
|
+
}, [removeRequest]);
|
|
53
|
+
const value = useMemo(() => ({ confirm }), [confirm]);
|
|
54
|
+
const activeRequest = requests[0];
|
|
55
|
+
const isPending = activeRequest !== void 0 && activeRequest.id === pendingRequestId;
|
|
56
|
+
return /* @__PURE__ */ jsxs(Context.Provider, {
|
|
57
|
+
value,
|
|
58
|
+
children: [activeRequest ? /* @__PURE__ */ jsx(AlertDialog, {
|
|
59
|
+
heading: activeRequest.input.heading,
|
|
60
|
+
description: activeRequest.input.description,
|
|
61
|
+
buttonSize: activeRequest.input.buttonSize,
|
|
62
|
+
textAlign: activeRequest.input.textAlign,
|
|
63
|
+
className: activeRequest.input.className,
|
|
64
|
+
isOpen: true,
|
|
65
|
+
isDismissable: !isPending,
|
|
66
|
+
onOpenChange: (isOpen) => {
|
|
67
|
+
if (!isOpen && !isPending) cancelRequest(activeRequest);
|
|
68
|
+
},
|
|
69
|
+
confirmAction: {
|
|
70
|
+
label: activeRequest.input.confirmLabel ?? "",
|
|
71
|
+
variant: activeRequest.input.confirmVariant,
|
|
72
|
+
color: activeRequest.input.confirmColor,
|
|
73
|
+
isLoading: isPending,
|
|
74
|
+
onPress: () => void confirmRequest(activeRequest)
|
|
75
|
+
},
|
|
76
|
+
cancelAction: {
|
|
77
|
+
label: activeRequest.input.cancelLabel ?? "",
|
|
78
|
+
variant: activeRequest.input.cancelVariant,
|
|
79
|
+
color: activeRequest.input.cancelColor,
|
|
80
|
+
isDisabled: isPending,
|
|
81
|
+
onPress: () => cancelRequest(activeRequest)
|
|
82
|
+
}
|
|
83
|
+
}, activeRequest.id) : null, children]
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
_Confirmation.useConfirmation = () => {
|
|
87
|
+
const context = use(Context);
|
|
88
|
+
if (!context) throw new Error("Confirmation.useConfirmation must be used within a Confirmation.Provider");
|
|
89
|
+
return context;
|
|
90
|
+
};
|
|
91
|
+
})(Confirmation || (Confirmation = {}));
|
|
92
|
+
//#endregion
|
|
93
|
+
export { Confirmation as t };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { n as Removed } from "./hints-B09_WDhL.js";
|
|
2
|
+
import { r as AlertDialogProps } from "./AlertDialog-BcRiqY_n.js";
|
|
3
|
+
import { PropsWithChildren } from "react";
|
|
4
|
+
//#region src/config/confirmation.context.d.ts
|
|
5
|
+
declare namespace Confirmation {
|
|
6
|
+
type ContextState = Pick<AlertDialogProps, "heading" | "description" | "buttonSize" | "textAlign" | "confirmAction" | "cancelAction" | "className"> & {
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
};
|
|
9
|
+
type ConfirmationInput = Pick<ContextState, "heading" | "description" | "buttonSize" | "textAlign" | "className"> & {
|
|
10
|
+
/** @deprecated Use `className`. */
|
|
11
|
+
dialogClassName?: Removed<"Use `className`">;
|
|
12
|
+
cancelLabel?: NonNullable<ContextState["cancelAction"]>["label"];
|
|
13
|
+
confirmLabel?: ContextState["confirmAction"]["label"];
|
|
14
|
+
cancelVariant?: NonNullable<ContextState["cancelAction"]>["variant"];
|
|
15
|
+
cancelColor?: NonNullable<ContextState["cancelAction"]>["color"];
|
|
16
|
+
confirmVariant?: ContextState["confirmAction"]["variant"];
|
|
17
|
+
confirmColor?: ContextState["confirmAction"]["color"];
|
|
18
|
+
/**
|
|
19
|
+
* Runs when the user confirms. The dialog stays open, with a spinner in the confirm button and cancelling
|
|
20
|
+
* disabled, until the returned promise settles; `confirm()` then resolves to `true`, or rejects with its error.
|
|
21
|
+
*/
|
|
22
|
+
onConfirm?: () => Promise<unknown> | void;
|
|
23
|
+
};
|
|
24
|
+
interface Options {
|
|
25
|
+
/** Resolves to `true` when the user confirms (after `onConfirm` finishes) and `false` when they cancel. */
|
|
26
|
+
confirm: (input: ConfirmationInput) => Promise<boolean>;
|
|
27
|
+
}
|
|
28
|
+
const Provider: ({ children }: PropsWithChildren) => import("react").JSX.Element;
|
|
29
|
+
const useConfirmation: () => Options;
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
export { Confirmation as t };
|