@povio/ui 6.0.0-rc.12 → 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 +469 -42
- 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-yaQubCWK.js → Calendar-DN-i_b-_.js} +19 -17
- package/dist/{Calendar.lazy-DcVss9Bk.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-bme8zGBo.js → DatePicker-DQewd1By.js} +80 -41
- package/dist/{DatePickerInput-vLlL5ATh.d.ts → DatePickerInput-B9VnExeA.d.ts} +3 -3
- package/dist/{DatePickerInput-C2881tvS.js → DatePickerInput-Bp9ZIN5E.js} +37 -26
- package/dist/{DateRangePicker-Blg158JD.js → DateRangePicker-DRZ1hLlR.js} +86 -158
- package/dist/DateRangePicker-LX1VJlnD.d.ts +102 -0
- package/dist/DateTimePicker-D9pODhAj.d.ts +83 -0
- package/dist/{DateTimePicker-CdRFt8WM.js → DateTimePicker-DWtKPaE6.js} +70 -35
- package/dist/{Dialog-C9H9_BmK.js → Dialog-BJ13KRQo.js} +1 -1
- package/dist/{Dialog-DN5703sy.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-BUwtAF2-.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-CG5LQ0zs.js → Input-CeRJeAoR.js} +94 -59
- package/dist/Input-onUj0DKg.d.ts +56 -0
- package/dist/{InputContent-Fx2E4UXl.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-DxuikBcr.js → NumberField-6Q9LHGSo.js} +91 -62
- package/dist/NumberField-Sb30Qao3.d.ts +41 -0
- package/dist/{NumberRangeInput-8bOjNEnS.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-Dfq5c3JQ.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-DT63UD8K.js → RangeCalendar-DqCTlIuy.js} +12 -10
- package/dist/Select-CSyfDyxG.d.ts +248 -0
- package/dist/{Select-BM8PNrjC.js → Select-D3fuXwVt.js} +435 -184
- package/dist/{SelectListBox-BFSZxDSi.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-DybNturW.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-Blsip3ZC.js → TextArea-P8F0oD_A.js} +59 -32
- package/dist/TimePicker-Ai1M2TGW.d.ts +63 -0
- package/dist/{TimePicker-4hV5zbgd.js → TimePicker-l4Ysk2AX.js} +99 -50
- package/dist/{TimePickerForm-DD9VA_td.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-BSY31JMc.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-DM-PUcxQ.d.ts → i18n-B3PeqBM7.d.ts} +100 -4
- package/dist/{i18n-D8vXIoiq.js → i18n-DQs7jPjv.js} +99 -9
- package/dist/iconSlot.cva-DyhOI7EK.js +5 -0
- package/dist/{import-C7W0Wv2r.js → import-C73fI3WD.js} +2 -2
- package/dist/index.d.ts +64 -83
- package/dist/index.js +55 -90
- 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-CVuAhDDl.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 +1 -1
- package/dist/tanstack-ABeiJISz.js +10 -0
- package/dist/tanstack-bLXoUPDY.d.ts +165 -0
- package/dist/tanstack.d.ts +64 -83
- package/dist/tanstack.js +55 -90
- 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-CXYgj5xi.js → useTableColumnConfig-B9cYBKo3.js} +956 -535
- 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 -121
- package/MIGRATION.md +0 -655
- package/dist/Alert-D4X7OWiv.d.ts +0 -34
- package/dist/AlertDialog-DklLDjmw.d.ts +0 -26
- package/dist/Autocomplete-BgFz3kuR.d.ts +0 -23
- package/dist/Autocomplete-Bn13u0zu.js +0 -145
- package/dist/Autocomplete.bound-CpHZZ3C9.d.ts +0 -9
- package/dist/Autocomplete.bound-Dwh__y-Z.js +0 -28
- package/dist/Badge-Db1ndK67.d.ts +0 -30
- package/dist/BadgeButton-BPhWDAnc.d.ts +0 -15
- package/dist/BottomSheet-BZmDJBR-.d.ts +0 -33
- package/dist/ButtonBase-CZuEy3Pk.d.ts +0 -32
- package/dist/Checkbox-w2j5hLOQ.d.ts +0 -27
- package/dist/Checkbox.bound-D2nBglJz.js +0 -33
- package/dist/Checkbox.bound-DD_RCjVm.d.ts +0 -9
- package/dist/CheckboxCheckmark-DWsYVZuu.js +0 -25
- package/dist/CheckboxGroup-BYI15Y09.d.ts +0 -30
- package/dist/CheckboxGroup.bound-DY0HKGSh.js +0 -32
- package/dist/CheckboxGroup.bound-QiJ-P0KR.d.ts +0 -9
- package/dist/ComboBox-ChsdI0lt.js +0 -212
- package/dist/DatePicker-QzfQf21b.d.ts +0 -56
- package/dist/DatePicker.bound-DoCAqhM4.d.ts +0 -9
- package/dist/DatePicker.bound-M2cjR37s.js +0 -36
- package/dist/DateRangePicker-32D4pWJg.d.ts +0 -97
- package/dist/DateRangePicker.bound-CVtoVsho.d.ts +0 -9
- package/dist/DateRangePicker.bound-CkIDsAUf.js +0 -35
- package/dist/DateTimePicker-BTRIUagV.d.ts +0 -55
- package/dist/DateTimePicker.bound-X4DTyQ1b.d.ts +0 -9
- package/dist/DateTimePicker.bound-nSCVUqd0.js +0 -32
- package/dist/Dialog-CO9xljD3.d.ts +0 -21
- package/dist/Drawer-D1cHiBFO.d.ts +0 -18
- package/dist/DropdownMenu-D_9z9ond.d.ts +0 -25
- package/dist/FileInput-BEaECoBS.d.ts +0 -75
- package/dist/FileInput.bound-C12mOKpg.js +0 -30
- package/dist/FileInput.bound-D2HuuqSb.d.ts +0 -8
- package/dist/FileUpload-BUTSqHVk.d.ts +0 -11
- package/dist/FileUpload-D7FMYm-k.js +0 -749
- package/dist/FileUpload.bound-CGQXb4iT.d.ts +0 -16
- package/dist/FileUpload.bound-DmkuulOi.js +0 -30
- package/dist/FileUploadContainer-Dzg5aXXZ.d.ts +0 -5
- package/dist/FormField-DGyCDxOp.d.ts +0 -42
- package/dist/FormFieldHeaderTooltip-Dt-g40Tc.js +0 -17
- package/dist/IconButton-shH_9wcl.d.ts +0 -25
- package/dist/Input-CTp_9mS9.d.ts +0 -34
- package/dist/Input.bound-B9a62ylL.d.ts +0 -9
- package/dist/Input.bound-DYoXyRGy.js +0 -31
- package/dist/InputContent-BCNkN4Fx.d.ts +0 -27
- package/dist/Link-PvYB_M-j.d.ts +0 -30
- package/dist/MenuItem-U3-pu1j5.d.ts +0 -6
- package/dist/NumberField-WXebfxjK.d.ts +0 -34
- package/dist/NumberField.bound-ChJnNyJS.js +0 -32
- package/dist/NumberField.bound-Dy0A5iVc.d.ts +0 -9
- package/dist/NumberRangeInput-BCKQaGpy.d.ts +0 -50
- package/dist/NumberRangeInput.bound-BF6P_ega.js +0 -32
- package/dist/NumberRangeInput.bound-BNXxIQ0b.d.ts +0 -9
- package/dist/PasswordInput-EhQjYyJS.d.ts +0 -11
- package/dist/PasswordInput.bound-CK5GwKL4.d.ts +0 -9
- package/dist/Popover-D_t1XDPA.d.ts +0 -20
- package/dist/Progress-Ckfpi_-M.d.ts +0 -45
- package/dist/Progress-RiEGGxNG.js +0 -119
- package/dist/RadioGroup-6e-Z6jW8.d.ts +0 -26
- package/dist/RadioGroup.bound-BFWSq-on.js +0 -32
- package/dist/RadioGroup.bound-w3SZqSkH.d.ts +0 -9
- package/dist/RichTextEditor-DHhuBeT6.d.ts +0 -28
- package/dist/RichTextEditor-DfwVdm45.js +0 -651
- package/dist/Select-C34ENdjq.d.ts +0 -119
- package/dist/Select.bound--Az1Xwgm.js +0 -34
- package/dist/Select.bound-qOihchei.d.ts +0 -17
- package/dist/Slider-DRg8zKRM.d.ts +0 -23
- package/dist/Slider.bound-CByTXPTr.js +0 -31
- package/dist/Slider.bound-CaEF19um.d.ts +0 -9
- package/dist/Spinner-Cvy_6zgD.d.ts +0 -30
- package/dist/Spinner-DqjP06T1.js +0 -101
- package/dist/SplitButton-V1f2NWfh.d.ts +0 -15
- package/dist/Stepper-k91x_m-E.d.ts +0 -114
- package/dist/Switch-ELVPkPx0.d.ts +0 -24
- package/dist/Switch.bound-DeEdVvZV.d.ts +0 -9
- package/dist/Switch.bound-Dv0cHsMM.js +0 -33
- package/dist/TableDnd-CuHxANWh.js +0 -133
- package/dist/TableRowDetails-D8HFTghI.d.ts +0 -109
- package/dist/TabsFilters-DePddjCk.d.ts +0 -30
- package/dist/Tag-B2_ZiSE-.d.ts +0 -44
- package/dist/TextArea-iqUeB2QY.d.ts +0 -26
- package/dist/TextArea.bound-BJHyCogp.d.ts +0 -9
- package/dist/TextArea.bound-DeaskY6r.js +0 -28
- package/dist/TimePicker-BZ1ocsBX.d.ts +0 -45
- package/dist/TimePicker.bound-8DmjMXuE.d.ts +0 -9
- package/dist/TimePicker.bound-BFSXJvE_.js +0 -32
- package/dist/Toast-D9pdadZ4.d.ts +0 -16
- package/dist/ToggleGroup-CrDoeLN0.js +0 -333
- package/dist/ToggleGroup-DvjnSinl.d.ts +0 -42
- package/dist/ToggleGroup.bound-B03ISHQ8.d.ts +0 -9
- package/dist/ToggleGroup.bound-DCnYwmBt.js +0 -67
- package/dist/Tooltip-B8DTURLQ.d.ts +0 -16
- package/dist/TooltipEllipsis-Di9Dvd4x.d.ts +0 -11
- package/dist/badgeButton.cva-CBFIhr1S.d.ts +0 -41
- package/dist/button.cva-C8LGtNJ3.d.ts +0 -94
- package/dist/checkbox.cva-CCh_UlrC.d.ts +0 -76
- package/dist/components/badge-button.d.ts +0 -2
- package/dist/components/badge-button.js +0 -74
- package/dist/components/file-upload-container.d.ts +0 -3
- package/dist/components/file-upload-container.js +0 -15
- package/dist/confirmation.context-Bc2yEVp_.js +0 -114
- package/dist/confirmation.context-C_GDRn3a.d.ts +0 -23
- package/dist/fileUpload.types-C-ke21yY.d.ts +0 -110
- package/dist/form.binding-DOR5gIQf.js +0 -49
- package/dist/form.types-C8P4sznq.d.ts +0 -22
- package/dist/formFieldHelper.cva-DRmSyRZN.js +0 -14
- package/dist/iconSlot.cva-CLB5Tlsr.d.ts +0 -9
- package/dist/icons.d.ts +0 -4
- package/dist/icons.js +0 -3
- package/dist/input.cva-BjuHsDGy.d.ts +0 -80
- package/dist/inputLayout-KdAtunGk.js +0 -5
- package/dist/link.context-BCHn7NSy.d.ts +0 -12
- package/dist/radio.cva-D7M1hqLe.d.ts +0 -56
- package/dist/router.context-CtafjXV7.d.ts +0 -16
- package/dist/router.context-MckTbHw9.js +0 -63
- package/dist/routing.utils-DfxEt0_Y.js +0 -30
- package/dist/style-definitions-Dx6aFDiR.d.ts +0 -1038
- package/dist/switch.cva-r6vcS25Q.d.ts +0 -16
- package/dist/tanstack/autocomplete.d.ts +0 -3
- package/dist/tanstack/autocomplete.js +0 -2
- package/dist/tanstack/checkbox-group.d.ts +0 -3
- package/dist/tanstack/checkbox-group.js +0 -2
- package/dist/tanstack/checkbox.d.ts +0 -3
- package/dist/tanstack/checkbox.js +0 -2
- package/dist/tanstack/date-picker.d.ts +0 -3
- package/dist/tanstack/date-picker.js +0 -2
- package/dist/tanstack/date-range-picker.d.ts +0 -3
- package/dist/tanstack/date-range-picker.js +0 -2
- package/dist/tanstack/date-time-picker.d.ts +0 -3
- package/dist/tanstack/date-time-picker.js +0 -2
- package/dist/tanstack/file-input.d.ts +0 -3
- package/dist/tanstack/file-input.js +0 -2
- package/dist/tanstack/file-upload.d.ts +0 -4
- package/dist/tanstack/file-upload.js +0 -2
- package/dist/tanstack/input.d.ts +0 -3
- package/dist/tanstack/input.js +0 -2
- package/dist/tanstack/number-field.d.ts +0 -3
- package/dist/tanstack/number-field.js +0 -2
- package/dist/tanstack/number-range-input.d.ts +0 -3
- package/dist/tanstack/number-range-input.js +0 -2
- package/dist/tanstack/password-input.d.ts +0 -2
- package/dist/tanstack/password-input.js +0 -2
- package/dist/tanstack/radio-group.d.ts +0 -3
- package/dist/tanstack/radio-group.js +0 -2
- package/dist/tanstack/rich-text-editor.d.ts +0 -9
- package/dist/tanstack/rich-text-editor.js +0 -28
- package/dist/tanstack/select.d.ts +0 -3
- package/dist/tanstack/select.js +0 -2
- package/dist/tanstack/slider.d.ts +0 -3
- package/dist/tanstack/slider.js +0 -2
- package/dist/tanstack/switch.d.ts +0 -3
- package/dist/tanstack/switch.js +0 -2
- package/dist/tanstack/text-area.d.ts +0 -3
- package/dist/tanstack/text-area.js +0 -2
- package/dist/tanstack/time-picker.d.ts +0 -3
- package/dist/tanstack/time-picker.js +0 -2
- package/dist/tanstack/toggle-group.d.ts +0 -3
- package/dist/tanstack/toggle-group.js +0 -2
- package/dist/tanstack-Bgdv0qU1.js +0 -19
- package/dist/tanstack-wNbE6b-h.d.ts +0 -566
- package/dist/toast.cva-AmLw6Cf5.d.ts +0 -61
- package/dist/toast.runtime-Drd2IJ_j.js +0 -17
- package/dist/toastActivation.store-BELtcr76.js +0 -16
- package/dist/toggleGroup.cva-DA4U21gn.d.ts +0 -26
- package/dist/typography.cva-BCHlTHdM.d.ts +0 -36
- package/dist/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-BusSFEVC.d.ts +0 -197
- package/dist/useToast-DsA8CVoY.d.ts +0 -16
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
|
|
2
|
+
import { endOfMonth, endOfWeek, endOfYear, getLocalTimeZone, startOfMonth, startOfWeek, startOfYear, toCalendarDate, today } from "@internationalized/date";
|
|
3
|
+
//#region src/components/inputs/DateTime/DateRangePicker/dateRangePreset.utils.ts
|
|
4
|
+
const dateRangePresetValues = [
|
|
5
|
+
"thisWeek",
|
|
6
|
+
"lastWeek",
|
|
7
|
+
"thisAndLastWeek",
|
|
8
|
+
"thisMonth",
|
|
9
|
+
"thisAndLastMonth",
|
|
10
|
+
"thisYear",
|
|
11
|
+
"lastYear",
|
|
12
|
+
"thisAndLastYear",
|
|
13
|
+
"soFar"
|
|
14
|
+
];
|
|
15
|
+
const RELATIVE_DAYS_VALUE_PATTERN = /^days:([+-]?\d{1,7}):([+-]?\d{1,7})$/;
|
|
16
|
+
/** Whole days from `currentDate` to `date`; negative when `date` is in the past. */
|
|
17
|
+
const getRelativeDaysOffset = (date, currentDate) => toCalendarDate(date).compare(currentDate);
|
|
18
|
+
/** Display form of a single offset, e.g. `-7`, `0` or `+3`. */
|
|
19
|
+
const formatRelativeDaysOffset = (days) => days > 0 ? `+${days}` : `${days}`;
|
|
20
|
+
/** Serializes day offsets into a stable `relativeValue`, e.g. `days:-7:+3`. */
|
|
21
|
+
const formatRelativeDaysValue = ({ start, end }) => `days:${formatRelativeDaysOffset(start)}:${formatRelativeDaysOffset(end)}`;
|
|
22
|
+
/** Returns undefined when the value is not a day-offset value or its start is after its end. */
|
|
23
|
+
const parseRelativeDaysValue = (value) => {
|
|
24
|
+
const match = RELATIVE_DAYS_VALUE_PATTERN.exec(value);
|
|
25
|
+
if (!match) return;
|
|
26
|
+
const start = Number(match[1]);
|
|
27
|
+
const end = Number(match[2]);
|
|
28
|
+
return start <= end ? {
|
|
29
|
+
start,
|
|
30
|
+
end
|
|
31
|
+
} : void 0;
|
|
32
|
+
};
|
|
33
|
+
const isStoredRelativeDateRangeValue = (value) => typeof value === "object" && value !== null && typeof value.relativeValue === "string";
|
|
34
|
+
const isRelativeDateRangeValue = (value) => isStoredRelativeDateRangeValue(value) && typeof value.resolvedValue === "object";
|
|
35
|
+
const isDateRangePresetValue = (value) => dateRangePresetValues.some((preset) => preset === value);
|
|
36
|
+
/**
|
|
37
|
+
* The concrete range of a preset key or a `days:` offset value, counted from `currentDate`.
|
|
38
|
+
* `locale` sets the first day of the week for week presets; it defaults to `en-GB` (Monday), which differs from the
|
|
39
|
+
* picker in other locales such as `en-US` (Sunday). Inside a component, use `useResolveDateRangePreset`, which reads
|
|
40
|
+
* the picker's locale and time zone.
|
|
41
|
+
*/
|
|
42
|
+
const getDateRangePreset = (value, currentDate = today(getLocalTimeZone()), locale = "en-GB") => {
|
|
43
|
+
const relativeDays = parseRelativeDaysValue(value);
|
|
44
|
+
if (relativeDays) return {
|
|
45
|
+
start: currentDate.add({ days: relativeDays.start }),
|
|
46
|
+
end: currentDate.add({ days: relativeDays.end })
|
|
47
|
+
};
|
|
48
|
+
if (!isDateRangePresetValue(value)) return;
|
|
49
|
+
const previousYear = currentDate.subtract({ years: 1 });
|
|
50
|
+
switch (value) {
|
|
51
|
+
case "thisWeek": return {
|
|
52
|
+
start: startOfWeek(currentDate, locale),
|
|
53
|
+
end: endOfWeek(currentDate, locale)
|
|
54
|
+
};
|
|
55
|
+
case "lastWeek": {
|
|
56
|
+
const thisWeekStart = startOfWeek(currentDate, locale);
|
|
57
|
+
return {
|
|
58
|
+
start: thisWeekStart.subtract({ weeks: 1 }),
|
|
59
|
+
end: thisWeekStart.subtract({ days: 1 })
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
case "thisAndLastWeek": return {
|
|
63
|
+
start: startOfWeek(currentDate, locale).subtract({ weeks: 1 }),
|
|
64
|
+
end: endOfWeek(currentDate, locale)
|
|
65
|
+
};
|
|
66
|
+
case "thisMonth": return {
|
|
67
|
+
start: startOfMonth(currentDate),
|
|
68
|
+
end: endOfMonth(currentDate)
|
|
69
|
+
};
|
|
70
|
+
case "thisAndLastMonth": return {
|
|
71
|
+
start: startOfMonth(currentDate).subtract({ months: 1 }),
|
|
72
|
+
end: endOfMonth(currentDate)
|
|
73
|
+
};
|
|
74
|
+
case "thisYear":
|
|
75
|
+
case "soFar": return {
|
|
76
|
+
start: startOfYear(currentDate),
|
|
77
|
+
end: currentDate
|
|
78
|
+
};
|
|
79
|
+
case "lastYear": return {
|
|
80
|
+
start: startOfYear(previousYear),
|
|
81
|
+
end: endOfYear(previousYear)
|
|
82
|
+
};
|
|
83
|
+
case "thisAndLastYear": return {
|
|
84
|
+
start: startOfYear(previousYear),
|
|
85
|
+
end: currentDate
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
/** Formats a preset range like a `DateRangePicker` value: full ISO endpoints, or `YYYY-MM-DD` with `fullIso: false`. */
|
|
90
|
+
const formatDateRangePreset = (range, fullIso = true) => fullIso ? {
|
|
91
|
+
start: DateTimeUtils.fromCalendarDateToUTCISO(range.start),
|
|
92
|
+
end: DateTimeUtils.fromCalendarDateToUTCISO(range.end, { endOfDay: true })
|
|
93
|
+
} : {
|
|
94
|
+
start: range.start.toString(),
|
|
95
|
+
end: range.end.toString()
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* `getDateRangePreset` formatted as full ISO endpoints, the default `DateRangePicker` value format.
|
|
99
|
+
* The `locale` default (`en-GB`, weeks start on Monday) only matches an `en-GB`-like picker; inside a component, use
|
|
100
|
+
* `useResolveDateRangePreset` so week presets match the picker.
|
|
101
|
+
*/
|
|
102
|
+
const resolveDateRangePreset = (value, currentDate = today(getLocalTimeZone()), locale = "en-GB") => {
|
|
103
|
+
const range = getDateRangePreset(value, currentDate, locale);
|
|
104
|
+
return range ? formatDateRangePreset(range) : void 0;
|
|
105
|
+
};
|
|
106
|
+
/** Adds `resolvedValue` to a stored `{ relativeValue }`; `locale` works as in `resolveDateRangePreset`. */
|
|
107
|
+
const hydrateRelativeDateRangeValue = (value, currentDate = today(getLocalTimeZone()), locale = "en-GB") => {
|
|
108
|
+
if (isRelativeDateRangeValue(value)) return value;
|
|
109
|
+
const resolvedValue = resolveDateRangePreset(value.relativeValue, currentDate, locale);
|
|
110
|
+
return resolvedValue ? {
|
|
111
|
+
relativeValue: value.relativeValue,
|
|
112
|
+
resolvedValue
|
|
113
|
+
} : void 0;
|
|
114
|
+
};
|
|
115
|
+
//#endregion
|
|
116
|
+
export { getDateRangePreset as a, isDateRangePresetValue as c, parseRelativeDaysValue as d, resolveDateRangePreset as f, formatRelativeDaysValue as i, isRelativeDateRangeValue as l, formatDateRangePreset as n, getRelativeDaysOffset as o, formatRelativeDaysOffset as r, hydrateRelativeDateRangeValue as s, dateRangePresetValues as t, isStoredRelativeDateRangeValue as u };
|
|
@@ -3,7 +3,7 @@ import { r as cva, t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
|
3
3
|
const dialogContentDefinition = UIOverrides.defineConfig({
|
|
4
4
|
base: [
|
|
5
5
|
"relative flex flex-col gap-4 shadow-lg",
|
|
6
|
-
"
|
|
6
|
+
"max-w-full [&>*]:max-w-full",
|
|
7
7
|
"bg-background text-foreground outline-none",
|
|
8
8
|
"pointer-events-auto"
|
|
9
9
|
],
|
|
@@ -1,57 +1,82 @@
|
|
|
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 { t as Typography } from "./Typography-DCLnPa3P.js";
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
5
|
+
import "./i18n-DQs7jPjv.js";
|
|
6
|
+
import { Spinner } from "./components/spinner.js";
|
|
7
|
+
import { t as UIConfig } from "./uiConfig.context-CjnLnQOo.js";
|
|
8
|
+
import { t as Button } from "./Button-CzEs3tcV.js";
|
|
9
|
+
import { IconButton } from "./components/icon-button.js";
|
|
10
|
+
import { a as toastDefinition, n as statusIconDefinition, r as statusSeparatorDefinition, t as buttonColorVariant } from "./toast.cva-C3oA7He3.js";
|
|
9
11
|
import $ahdqC$react, { cloneElement, isValidElement, useEffect, useLayoutEffect, useRef, useState, useSyncExternalStore } from "react";
|
|
10
12
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { X } from "lucide-react";
|
|
14
|
+
import { useTranslation } from "react-i18next";
|
|
11
15
|
//#region src/components/status/Toast/Toast.tsx
|
|
12
|
-
const
|
|
16
|
+
const ToastView = ({ text, isLoading = false, actions = [], icon, closeToast, showCloseButton = false, ...props }) => {
|
|
17
|
+
const { t } = useTranslation("ui");
|
|
13
18
|
const uiConfig = UIConfig.useConfig();
|
|
14
|
-
const { variant = uiConfig.toast.variant, ...restProps } = props;
|
|
19
|
+
const { variant = uiConfig.toast.variant, color, ...restProps } = props;
|
|
15
20
|
const toastCva = UIOverrides.useCva("toast.cva", toastDefinition);
|
|
16
21
|
const buttonColor = UIOverrides.useMapper("toast.buttonColor", buttonColorVariant);
|
|
17
22
|
const iconCva = UIOverrides.useCva("status.iconCva", statusIconDefinition);
|
|
18
23
|
const separatorCva = UIOverrides.useCva("status.separatorCva", statusSeparatorDefinition);
|
|
19
24
|
const variantProps = {
|
|
20
25
|
variant,
|
|
26
|
+
color,
|
|
21
27
|
...restProps
|
|
22
28
|
};
|
|
23
29
|
return /* @__PURE__ */ jsxs("div", {
|
|
24
30
|
className: toastCva(variantProps),
|
|
25
|
-
children: [
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
icon
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
31
|
+
children: [
|
|
32
|
+
/* @__PURE__ */ jsxs("div", {
|
|
33
|
+
className: "flex min-w-0 flex-1 items-start gap-1.5",
|
|
34
|
+
children: [
|
|
35
|
+
isLoading && /* @__PURE__ */ jsx("span", {
|
|
36
|
+
className: "flex h-5 shrink-0 items-center",
|
|
37
|
+
children: /* @__PURE__ */ jsx(Spinner, { size: "default" })
|
|
38
|
+
}),
|
|
39
|
+
!isLoading && icon && /* @__PURE__ */ jsx(IconSlot, {
|
|
40
|
+
icon,
|
|
41
|
+
className: iconCva(variantProps)
|
|
42
|
+
}),
|
|
43
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
44
|
+
size: "large",
|
|
45
|
+
className: "font-medium",
|
|
46
|
+
children: text
|
|
47
|
+
})
|
|
48
|
+
]
|
|
49
|
+
}),
|
|
50
|
+
actions.length > 0 && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", { className: separatorCva(variantProps) }), /* @__PURE__ */ jsx("div", {
|
|
51
|
+
className: "ml-auto flex shrink-0 items-center gap-2",
|
|
52
|
+
children: actions.map(({ label, onPress }) => /* @__PURE__ */ jsx(Button, {
|
|
53
|
+
onPress: () => {
|
|
54
|
+
onPress();
|
|
55
|
+
closeToast?.();
|
|
56
|
+
},
|
|
57
|
+
...buttonColor(variantProps),
|
|
58
|
+
variant: "contained",
|
|
59
|
+
size: "sm",
|
|
60
|
+
width: "hug",
|
|
61
|
+
children: label
|
|
62
|
+
}, label))
|
|
63
|
+
})] }),
|
|
64
|
+
showCloseButton && closeToast && /* @__PURE__ */ jsx(IconButton, {
|
|
65
|
+
icon: X,
|
|
66
|
+
label: t(($) => $.ui.closeAlt),
|
|
67
|
+
onPress: closeToast,
|
|
68
|
+
variant: "ghost",
|
|
69
|
+
color: "secondary",
|
|
70
|
+
size: "sm",
|
|
49
71
|
width: "hug",
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
72
|
+
disableTooltip: true,
|
|
73
|
+
className: "shrink-0 self-start"
|
|
74
|
+
})
|
|
75
|
+
]
|
|
53
76
|
});
|
|
54
77
|
};
|
|
78
|
+
/** A toast's content and look. Show toasts with the functions from `useToast`; render `Toast` only to preview one. */
|
|
79
|
+
const Toast = ToastView;
|
|
55
80
|
//#endregion
|
|
56
81
|
//#region ../../node_modules/.bun/react-toastify@11.1.0+67f6792bdf102c28/node_modules/react-toastify/dist/index.mjs
|
|
57
82
|
var L = (t) => typeof t == "number" && !isNaN(t);
|
|
@@ -260,7 +285,7 @@ var Ct = (t, { containerId: o }) => {
|
|
|
260
285
|
var e;
|
|
261
286
|
return (e = I.get(o || 1)) == null ? void 0 : e.toasts.get(t);
|
|
262
287
|
};
|
|
263
|
-
function X(t, o) {
|
|
288
|
+
function X$1(t, o) {
|
|
264
289
|
var r;
|
|
265
290
|
if (o) return !!((r = I.get(o)) != null && r.isToastActive(t));
|
|
266
291
|
let e = !1;
|
|
@@ -406,7 +431,7 @@ function Yt(t) {
|
|
|
406
431
|
}
|
|
407
432
|
y.dismiss = Yt;
|
|
408
433
|
y.clearWaitingQueue = Et;
|
|
409
|
-
y.isActive = X;
|
|
434
|
+
y.isActive = X$1;
|
|
410
435
|
y.update = (t, o = {}) => {
|
|
411
436
|
let e = Ct(t, o);
|
|
412
437
|
if (e) {
|
|
@@ -443,7 +468,7 @@ function kt(t) {
|
|
|
443
468
|
}
|
|
444
469
|
return {
|
|
445
470
|
getToastToRender: l,
|
|
446
|
-
isToastActive: X,
|
|
471
|
+
isToastActive: X$1,
|
|
447
472
|
count: a == null ? void 0 : a.length
|
|
448
473
|
};
|
|
449
474
|
}
|
|
@@ -1535,4 +1560,4 @@ function xo(t) {
|
|
|
1535
1560
|
return Rt(Mt, t.nonce), $ahdqC$react.createElement(dt, { ...t });
|
|
1536
1561
|
}
|
|
1537
1562
|
//#endregion
|
|
1538
|
-
export { y as n, Toast as r, xo as t };
|
|
1563
|
+
export { ToastView as i, y as n, Toast as r, xo as t };
|
|
@@ -13,16 +13,28 @@ const dropdownMenuDefinition = UIOverrides.defineConfig({
|
|
|
13
13
|
const menuItemDefinition = UIOverrides.defineConfig({
|
|
14
14
|
base: [
|
|
15
15
|
"relative flex cursor-default items-center gap-2 text-sm outline-none select-none",
|
|
16
|
-
"focused:bg-accent focused:text-accent-foreground open:bg-accent open:text-accent-foreground",
|
|
17
16
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
18
|
-
"[&_svg]:pointer-events-none [&_svg]:shrink-0
|
|
17
|
+
"[&_svg]:pointer-events-none [&_svg]:shrink-0"
|
|
19
18
|
],
|
|
20
19
|
config: {
|
|
21
|
-
variants: {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
variants: {
|
|
21
|
+
isMobile: {
|
|
22
|
+
true: ["min-h-11 w-full justify-start px-4 py-2.5 font-medium"],
|
|
23
|
+
false: ["justify-between rounded-sm px-2 py-1.5"]
|
|
24
|
+
},
|
|
25
|
+
color: {
|
|
26
|
+
default: ["focus:bg-accent focus:text-accent-foreground open:bg-accent open:text-accent-foreground", "[&_svg:not([class*='text-'])]:text-muted-foreground"],
|
|
27
|
+
error: [
|
|
28
|
+
"text-destructive focus:bg-destructive/10 focus:text-destructive open:bg-destructive/10 open:text-destructive",
|
|
29
|
+
"dark:focus:bg-destructive/20 dark:open:bg-destructive/20",
|
|
30
|
+
"[&_svg:not([class*='text-'])]:text-destructive"
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
defaultVariants: {
|
|
35
|
+
isMobile: false,
|
|
36
|
+
color: "default"
|
|
37
|
+
}
|
|
26
38
|
}
|
|
27
39
|
});
|
|
28
40
|
const menuPopoverDefinition = UIOverrides.defineConfig({ base: ["pt-1 outline-none"] });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "react-aria/CollectionBuilder";
|
|
2
|
-
import "react-aria/Collection";
|
|
2
|
+
import { Collection as $a3be900807531178$re_export$Collection } from "react-aria/Collection";
|
|
3
3
|
import { useLocale as $a3be900807531178$re_export$useLocale } from "react-aria/I18nProvider";
|
|
4
4
|
import "react-aria/VisuallyHidden";
|
|
5
5
|
import "react-stately/private/form/useFormValidationState";
|
|
@@ -13,9 +13,9 @@ import "react-stately/useToastState";
|
|
|
13
13
|
import "react-aria/useDrag";
|
|
14
14
|
import "react-aria/private/utils/openLink";
|
|
15
15
|
import "react-aria/Pressable";
|
|
16
|
-
import
|
|
16
|
+
import "react-aria/Focusable";
|
|
17
17
|
import "react-aria/useFocusVisible";
|
|
18
18
|
import "react-stately/useListData";
|
|
19
19
|
import "react-stately/useTreeData";
|
|
20
20
|
import "react-stately/useAsyncList";
|
|
21
|
-
export { $a3be900807531178$re_export$useLocale as a, $a3be900807531178$re_export$useFilter as i, $a3be900807531178$re_export$ListLayout as n, $a3be900807531178$re_export$Rect as r, $a3be900807531178$re_export$
|
|
21
|
+
export { $a3be900807531178$re_export$useLocale as a, $a3be900807531178$re_export$useFilter as i, $a3be900807531178$re_export$ListLayout as n, $a3be900807531178$re_export$Rect as r, $a3be900807531178$re_export$Collection as t };
|
|
@@ -11,9 +11,9 @@ declare namespace FileUtils {
|
|
|
11
11
|
const downloadFile: (data: Blob | BlobResponse, fileName?: string, revokeTimeoutMs?: number) => void;
|
|
12
12
|
const isFileTypeAccepted: (file: File, fileTypes?: readonly string[] | string[]) => boolean;
|
|
13
13
|
const getCalculatedFileSize: (file?: File) => string;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
/** Formats the size of a `File` or of an uploaded file record; empty when the size is unknown. */
|
|
15
|
+
const getFileDisplaySize: (file: {
|
|
16
|
+
size?: number;
|
|
17
17
|
}) => string;
|
|
18
18
|
const formatBytes: (size: number, decimals?: number) => string;
|
|
19
19
|
}
|
|
@@ -38,18 +38,14 @@ let FileUtils;
|
|
|
38
38
|
return file.name.toLowerCase().endsWith(type.toLowerCase());
|
|
39
39
|
});
|
|
40
40
|
};
|
|
41
|
-
|
|
41
|
+
_FileUtils.getCalculatedFileSize = (file) => {
|
|
42
42
|
if (!file) return "";
|
|
43
43
|
if (file.size < 1024) return `${file.size} B`;
|
|
44
44
|
if (file.size < 1048576) return `${(file.size / 1024).toFixed(2)} KB`;
|
|
45
45
|
if (file.size < 1073741824) return `${(file.size / 1024 / 1024).toFixed(2)} MB`;
|
|
46
46
|
return `${(file.size / 1024 / 1024 / 1024).toFixed(2)} GB`;
|
|
47
47
|
};
|
|
48
|
-
_FileUtils.getFileDisplaySize = (
|
|
49
|
-
if (state.file) return getCalculatedFileSize(state.file);
|
|
50
|
-
if (state.displaySize != null) return formatBytes(state.displaySize);
|
|
51
|
-
return "";
|
|
52
|
-
};
|
|
48
|
+
_FileUtils.getFileDisplaySize = (file) => file.size == null ? "" : formatBytes(file.size);
|
|
53
49
|
const formatBytes = _FileUtils.formatBytes = (size, decimals = 2) => {
|
|
54
50
|
if (size < 1024) return `${size} B`;
|
|
55
51
|
if (size < 1048576) return `${(size / 1024).toFixed(decimals)} KB`;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
|
+
import { r as cva, t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
+
//#region src/components/inputs/File/shared/fileInputButton.cva.ts
|
|
4
|
+
const fileInputButtonDefinition = UIOverrides.defineConfig({
|
|
5
|
+
base: ["flex w-full items-center justify-between gap-2"],
|
|
6
|
+
config: {
|
|
7
|
+
variants: { buttonPosition: {
|
|
8
|
+
outside: [],
|
|
9
|
+
inside: []
|
|
10
|
+
} },
|
|
11
|
+
defaultVariants: { buttonPosition: "outside" }
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
const fileInputButtonBase = cva(fileInputButtonDefinition.base, fileInputButtonDefinition.config);
|
|
15
|
+
const fileInputButton = (props) => {
|
|
16
|
+
const { className, ...rest } = props;
|
|
17
|
+
return clsx(fileInputButtonBase(rest), className);
|
|
18
|
+
};
|
|
19
|
+
const fileInputDropZoneDefinition = UIOverrides.defineConfig({
|
|
20
|
+
base: [
|
|
21
|
+
"relative",
|
|
22
|
+
"min-w-0 flex-1",
|
|
23
|
+
"flex items-center",
|
|
24
|
+
"outline-none transition-[color,box-shadow]",
|
|
25
|
+
"focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",
|
|
26
|
+
"data-[drop-target]:border-ring data-[drop-target]:ring-[3px] data-[drop-target]:ring-ring/50",
|
|
27
|
+
"group-invalid/input-upload:border-destructive group-invalid/input-upload:ring-destructive/20 dark:group-invalid/input-upload:ring-destructive/40"
|
|
28
|
+
],
|
|
29
|
+
config: {
|
|
30
|
+
variants: { buttonPosition: {
|
|
31
|
+
outside: ["rounded-md border border-input border-solid bg-transparent shadow-xs dark:bg-input/30"],
|
|
32
|
+
inside: ["rounded-md border border-input border-solid bg-transparent shadow-xs dark:bg-input/30"]
|
|
33
|
+
} },
|
|
34
|
+
defaultVariants: { buttonPosition: "outside" }
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
const fileInputDropZone = cva(fileInputDropZoneDefinition.base, fileInputDropZoneDefinition.config);
|
|
38
|
+
//#endregion
|
|
39
|
+
export { fileInputDropZoneDefinition as i, fileInputButtonDefinition as n, fileInputDropZone as r, fileInputButton as t };
|
|
@@ -4,7 +4,7 @@ const fileUploadDropZoneDefinition = UIOverrides.defineConfig({
|
|
|
4
4
|
base: ["relative w-full rounded-lg outline-none"],
|
|
5
5
|
config: {
|
|
6
6
|
variants: {
|
|
7
|
-
|
|
7
|
+
orientation: {
|
|
8
8
|
vertical: ["flex-col justify-center"],
|
|
9
9
|
horizontal: ["flex-row justify-between"]
|
|
10
10
|
},
|
|
@@ -35,7 +35,7 @@ const fileUploadDropZoneDefinition = UIOverrides.defineConfig({
|
|
|
35
35
|
]
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
|
-
defaultVariants: {
|
|
38
|
+
defaultVariants: { orientation: "vertical" }
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./FormField-XQbjfGSv.js";
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { c } from "react/compiler-runtime";
|
|
2
|
+
import { useSyncExternalStore } from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/hooks/formStore.ts
|
|
5
|
+
/** Subscribes to a store slice. The selector must return a referentially stable value (a primitive). */
|
|
6
|
+
function useStoreSelector(store, selector) {
|
|
7
|
+
const $ = c(5);
|
|
8
|
+
let t0;
|
|
9
|
+
if ($[0] !== store) {
|
|
10
|
+
t0 = (listener) => {
|
|
11
|
+
const subscription = store.subscribe(listener);
|
|
12
|
+
return typeof subscription === "function" ? subscription : () => subscription.unsubscribe();
|
|
13
|
+
};
|
|
14
|
+
$[0] = store;
|
|
15
|
+
$[1] = t0;
|
|
16
|
+
} else t0 = $[1];
|
|
17
|
+
const subscribe = t0;
|
|
18
|
+
let t1;
|
|
19
|
+
if ($[2] !== selector || $[3] !== store.state) {
|
|
20
|
+
t1 = () => selector(store.state);
|
|
21
|
+
$[2] = selector;
|
|
22
|
+
$[3] = store.state;
|
|
23
|
+
$[4] = t1;
|
|
24
|
+
} else t1 = $[4];
|
|
25
|
+
const getSnapshot = t1;
|
|
26
|
+
return useSyncExternalStore(subscribe, getSnapshot, getSnapshot);
|
|
27
|
+
}
|
|
28
|
+
const disabledStores = /* @__PURE__ */ new WeakMap();
|
|
29
|
+
function registerFormDisabledStore(form, store) {
|
|
30
|
+
disabledStores.set(form, store);
|
|
31
|
+
}
|
|
32
|
+
const selectDisabled = (disabled) => disabled;
|
|
33
|
+
function useFormDisabledStore(form) {
|
|
34
|
+
const $ = c(2);
|
|
35
|
+
let t0;
|
|
36
|
+
if ($[0] !== form) {
|
|
37
|
+
t0 = disabledStores.get(form);
|
|
38
|
+
$[0] = form;
|
|
39
|
+
$[1] = t0;
|
|
40
|
+
} else t0 = $[1];
|
|
41
|
+
const store = t0;
|
|
42
|
+
if (!store) throw new Error("useFormDisabled must be used with a form created by useForm");
|
|
43
|
+
return useStoreSelector(store, selectDisabled);
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/components/inputs/shared/form.types.ts
|
|
47
|
+
const getFieldError = (errors) => errors.flatMap((error) => {
|
|
48
|
+
if (typeof error === "string") return [error];
|
|
49
|
+
if (error && typeof error === "object" && "message" in error) return [String(error.message)];
|
|
50
|
+
return [];
|
|
51
|
+
}).at(0);
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/components/inputs/shared/form.binding.tsx
|
|
54
|
+
const selectSubmissionAttempts = (state) => state.submissionAttempts;
|
|
55
|
+
/**
|
|
56
|
+
* Ref callback for the element of a form-bound control. The form's schema is its only validation; the browser's own
|
|
57
|
+
* checks (`type="email"`, `minLength`, `pattern`) would run first, cancel the submit with a browser bubble, and keep
|
|
58
|
+
* the schema's messages from showing. So the `<form>` around a bound control skips them (`noValidate`).
|
|
59
|
+
*/
|
|
60
|
+
const skipBrowserValidation = (element) => {
|
|
61
|
+
if (!(element instanceof Element)) return;
|
|
62
|
+
const form = element instanceof HTMLInputElement ? element.form : element.closest("form");
|
|
63
|
+
if (form) form.noValidate = true;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Whether a control's `onBlur` call is real focus loss, which runs `field.onBlur`, rather than a commit (a clear, a
|
|
67
|
+
* pick, a closed sheet) that only marks the field touched. Focus loss passes a focus event or an object with
|
|
68
|
+
* `type: "blur"`; TipTap passes `{ editor, event }`. Commits pass nothing, `null`, `{}` or `{ target }`.
|
|
69
|
+
*/
|
|
70
|
+
const isFocusLoss = (event) => {
|
|
71
|
+
if (!event || typeof event !== "object") return false;
|
|
72
|
+
if ("nativeEvent" in event) return true;
|
|
73
|
+
if ("type" in event) return event.type === "blur" || event.type === "focusout";
|
|
74
|
+
return "editor" in event && "event" in event && isFocusLoss(event.event);
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* The first error reported beneath a field's own path (`range.start`, `recipients[0].label`). Schema issues are
|
|
78
|
+
* keyed by their exact path, so a field holding an object or an array would otherwise never show them.
|
|
79
|
+
*/
|
|
80
|
+
const getNestedFieldError = (fieldMeta, name) => {
|
|
81
|
+
for (const path in fieldMeta) if (path.startsWith(`${name}.`) || path.startsWith(`${name}[`)) {
|
|
82
|
+
const error = getFieldError(fieldMeta[path]?.errors ?? []);
|
|
83
|
+
if (error) return error;
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
function FieldController({ control: form, name: nameProp, onValueChange, onBlur, validateOnSubmit, render }) {
|
|
87
|
+
const name = nameProp;
|
|
88
|
+
const isFormDisabled = useFormDisabledStore(form);
|
|
89
|
+
const submissionAttempts = useStoreSelector(form.store, selectSubmissionAttempts);
|
|
90
|
+
const nestedError = useStoreSelector(form.store, (state) => state.submissionAttempts > 0 ? getNestedFieldError(state.fieldMeta, name) : void 0);
|
|
91
|
+
const fieldValidators = form.getFieldValidators(name);
|
|
92
|
+
return /* @__PURE__ */ jsx(form.Field, {
|
|
93
|
+
name,
|
|
94
|
+
validators: validateOnSubmit ? {
|
|
95
|
+
...fieldValidators,
|
|
96
|
+
onSubmit: validateOnSubmit
|
|
97
|
+
} : fieldValidators,
|
|
98
|
+
children: (field) => {
|
|
99
|
+
const validators = form.getFieldValidators(name);
|
|
100
|
+
const validationError = submissionAttempts > 0 ? getFieldError(field.state.meta.errors) ?? nestedError : validators?.onChange && field.state.meta.isDirty ? validators.onChange({ value: field.state.value }) : validators?.onBlur && field.state.meta.isTouched ? validators.onBlur({ value: field.state.value }) : void 0;
|
|
101
|
+
return render({
|
|
102
|
+
field: {
|
|
103
|
+
disabled: isFormDisabled,
|
|
104
|
+
name: field.name,
|
|
105
|
+
onBlur: (event) => {
|
|
106
|
+
field.handleBlur();
|
|
107
|
+
form.notifyBlur(name);
|
|
108
|
+
if (isFocusLoss(event)) onBlur?.();
|
|
109
|
+
},
|
|
110
|
+
onValueCommit: () => {
|
|
111
|
+
field.handleBlur();
|
|
112
|
+
form.notifyBlur(name);
|
|
113
|
+
},
|
|
114
|
+
onChange: (value) => {
|
|
115
|
+
field.handleChange(value);
|
|
116
|
+
onValueChange?.(value);
|
|
117
|
+
},
|
|
118
|
+
ref: skipBrowserValidation,
|
|
119
|
+
value: field.state.value
|
|
120
|
+
},
|
|
121
|
+
fieldState: {
|
|
122
|
+
error: validationError ? { message: validationError } : void 0,
|
|
123
|
+
isDirty: field.state.meta.isDirty
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Binds a custom control (one the library has no input for) to a form field, with the same error, touched and
|
|
131
|
+
* autosave behaviour as the library's bound inputs. Render the control and a `FormField` in the children.
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* <BoundField field={{ form, name: "brandColor" }}>
|
|
135
|
+
* {({ value, onChange, onBlur, ref, error }) => (
|
|
136
|
+
* <FormField label="Brand colour" error={error} labelProps={{ htmlFor: id }}>
|
|
137
|
+
* <input id={id} type="color" ref={ref} value={value} onChange={(e) => onChange(e.target.value)} onBlur={onBlur} />
|
|
138
|
+
* </FormField>
|
|
139
|
+
* )}
|
|
140
|
+
* </BoundField>
|
|
141
|
+
*/
|
|
142
|
+
function BoundField({ field, children }) {
|
|
143
|
+
return /* @__PURE__ */ jsx(FieldController, {
|
|
144
|
+
control: field.form,
|
|
145
|
+
name: field.name,
|
|
146
|
+
onValueChange: field.onValueChange,
|
|
147
|
+
onBlur: field.onBlur,
|
|
148
|
+
render: ({ field: control, fieldState }) => children({
|
|
149
|
+
name: control.name,
|
|
150
|
+
value: control.value,
|
|
151
|
+
onChange: control.onChange,
|
|
152
|
+
onBlur: () => control.onBlur({ type: "blur" }),
|
|
153
|
+
ref: control.ref,
|
|
154
|
+
error: fieldState.error?.message,
|
|
155
|
+
isDirty: fieldState.isDirty,
|
|
156
|
+
isDisabled: control.disabled
|
|
157
|
+
})
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
//#endregion
|
|
161
|
+
export { registerFormDisabledStore as a, skipBrowserValidation as i, FieldController as n, useStoreSelector as o, selectSubmissionAttempts as r, BoundField as t };
|