@povio/ui 6.0.0-rc.12 → 6.0.0-rc.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +523 -42
- package/dist/{Accordion-ORBin0EZ.js → Accordion-BNHpv7Zj.js} +42 -42
- package/dist/{Accordion-Cup5eRZz.d.ts → Accordion-CR9oomZY.d.ts} +29 -17
- package/dist/Alert-xHGPLUpt.d.ts +36 -0
- package/dist/AlertDialog-CKcUZ6l9.d.ts +70 -0
- package/dist/Autocomplete-CkWTSFoj.d.ts +123 -0
- package/dist/Autocomplete-CrNDRxvg.js +319 -0
- package/dist/Badge-B25YEMEw.d.ts +67 -0
- package/dist/BottomSheet-CtcPZG82.d.ts +65 -0
- package/dist/{BottomSheet-CGipksM_.js → BottomSheet-tUXH3NjS.js} +9 -9
- package/dist/{BottomSheet.lazy-CuJMUeJP.d.ts → BottomSheet.lazy-DuwAJSaI.d.ts} +1 -1
- package/dist/{Breadcrumbs-CcB0oOF8.d.ts → Breadcrumbs-BrtRh_dX.d.ts} +6 -3
- package/dist/{Breadcrumbs-a1-q_he0.js → Breadcrumbs-D8WXqOLN.js} +36 -20
- package/dist/{Button-BaODzvZd.js → Button-C1Jv1Plk.js} +1 -1
- package/dist/{Button-0SswSdDg.d.ts → Button-DDuk3hJ3.d.ts} +2 -2
- package/dist/{Button-C1YB5dOw.js → Button-DF6sbTuF.js} +3 -7
- package/dist/{ButtonBase-s-VV7oCa.js → ButtonBase-BYJz1JkH.js} +12 -20
- package/dist/ButtonBase-Bn_FT89h.d.ts +47 -0
- package/dist/{ButtonContent-Dztbuz3q.js → ButtonContent-2KsbdWRO.js} +5 -5
- package/dist/{Calendar-yaQubCWK.js → Calendar-DdneUEhM.js} +71 -35
- package/dist/{Calendar.lazy-DcVss9Bk.js → Calendar.lazy-BY0kLoYH.js} +7 -7
- package/dist/Checkbox-Bwl6MA-V.d.ts +49 -0
- package/dist/{Checkbox-Bjsbx-wK.js → Checkbox-E2bns_n0.js} +40 -14
- package/dist/CheckboxCheckmark-Beu8T1g9.js +42 -0
- package/dist/CheckboxGroup-0rzsn-bA.d.ts +52 -0
- package/dist/{CheckboxGroup-B3O3IUiu.js → CheckboxGroup-C7epIEpW.js} +75 -35
- package/dist/ColumnConfigContent-LNq-6Brf.js +1025 -0
- package/dist/ColumnListContent-Dzze5R7T.js +133 -0
- package/dist/DatePicker-B70SCKfT.d.ts +80 -0
- package/dist/{DatePicker-bme8zGBo.js → DatePicker-BU-34fCk.js} +117 -46
- package/dist/{DatePickerInput-vLlL5ATh.d.ts → DatePickerInput-BCuz08Ws.d.ts} +3 -3
- package/dist/{DatePickerInput-C2881tvS.js → DatePickerInput-CMEJmZSQ.js} +41 -30
- package/dist/{DateRangePicker-Blg158JD.js → DateRangePicker-D0RtqeBM.js} +90 -162
- package/dist/DateRangePicker-jovxcWGk.d.ts +102 -0
- package/dist/{DateTimePicker-CdRFt8WM.js → DateTimePicker-Cbdt76CL.js} +94 -40
- package/dist/DateTimePicker-Cfi3ruFy.d.ts +83 -0
- package/dist/Dialog-BWNQjIgo.d.ts +66 -0
- package/dist/{Dialog-C9H9_BmK.js → Dialog-Bpwr1nuy.js} +15 -15
- package/dist/{Dialog-DN5703sy.js → Dialog-ebjPH22i.js} +23 -19
- package/dist/{Disclosure-BRSkMbZQ.js → Disclosure-D_aym2zh.js} +3 -3
- package/dist/Drawer-o018RqIt.d.ts +42 -0
- package/dist/DropdownMenu-3V-G7fZ7.d.ts +51 -0
- package/dist/{DropdownMenu-DS0RaEfH.js → DropdownMenu-C4WitobV.js} +33 -21
- package/dist/{DropdownMenuDesktop-DGPIfex-.js → DropdownMenuDesktop-BM7659Sk.js} +14 -8
- package/dist/{FileInput-BUwtAF2-.js → FileInput-Bc_E1M1X.js} +76 -81
- package/dist/FileInput-CWRW7OzZ.d.ts +61 -0
- package/dist/{FileTrigger-DlryDp2T.js → FileTrigger-tGSUFrb2.js} +6 -6
- package/dist/FileUpload-DVnp9xxv.d.ts +181 -0
- package/dist/FileUpload-Dk6ZmgWF.js +1105 -0
- package/dist/{Form-CqF1SaVw.js → Form-4jZarkjk.js} +2 -2
- package/dist/FormField-BgiWLGjf.d.ts +70 -0
- package/dist/{FormField-dduTMkNH.js → FormField-DOZ7eXjA.js} +11 -11
- package/dist/{FormFieldError-BT4uxbKY.d.ts → FormFieldError-C7yOdjzQ.d.ts} +1 -0
- package/dist/FormFieldHeaderTooltip-DW9sqJWl.js +22 -0
- package/dist/{Heading-D4XFYv__.js → Heading-B9G3z6Es.js} +2 -2
- package/dist/HiddenFormValue-DZ2d9eoA.js +20 -0
- package/dist/IconButton-Bjjf5cQL.d.ts +24 -0
- package/dist/{IconSlot-CqNuZl0E.js → IconSlot-TAWTJ6iK.js} +2 -4
- package/dist/{InlineTooltipWrapper-CKTiFpZn.js → InlineTooltipWrapper-CcdpMJa6.js} +1 -1
- package/dist/{Input-BG0Xjw5X.js → Input-BkR3jkvt.js} +2 -2
- package/dist/{Input-CG5LQ0zs.js → Input-CvYyjMWx.js} +95 -60
- package/dist/Input-lppNS8wM.d.ts +56 -0
- package/dist/{InputContent-Fx2E4UXl.js → InputContent-B5YjsLDE.js} +15 -13
- package/dist/InputContent-Bgalf6R1.d.ts +39 -0
- package/dist/{Label-BGvF9vWx.js → Label-VTcaaLO8.js} +2 -2
- package/dist/{Link-Chux-Clm.js → Link-8zP_NC_c.js} +2 -2
- package/dist/Link-HJ4y-xiW.d.ts +15 -0
- package/dist/{ListBox-DhR5kojP.js → ListBox-Ck-B1Jae.js} +9 -9
- package/dist/{Modal-DcLWF9cB.js → Modal-xT-Wz5GH.js} +3 -3
- package/dist/{NumberField-DxuikBcr.js → NumberField-BXLzNb2T.js} +92 -63
- package/dist/NumberField-Q-4y3jpb.d.ts +41 -0
- package/dist/{NumberFormatter-DYarfm5F.js → NumberFormatter-D5csbNXm.js} +1 -1
- package/dist/{NumberRangeInput-8bOjNEnS.js → NumberRangeInput-BBzZCC54.js} +153 -102
- package/dist/NumberRangeInput-DuWOdSdU.d.ts +89 -0
- package/dist/{OverlayArrow-DF0jMwul.js → OverlayArrow-BptI-A_7.js} +2 -2
- package/dist/{PageHeader-DTfzf-dA.d.ts → PageHeader-jVaC3Z9L.d.ts} +6 -5
- package/dist/PasswordInput-DtTnGHRD.d.ts +16 -0
- package/dist/{PasswordInput.bound-Dfq5c3JQ.js → PasswordInput-U0QhNsMp.js} +6 -6
- package/dist/Popover-ClCEOP3e.d.ts +51 -0
- package/dist/Progress-DlXY0dv_.js +180 -0
- package/dist/Progress-VkkXbIh7.d.ts +26 -0
- package/dist/ProgressBar-mpNpV7ow.js +46 -0
- package/dist/{RadioGroup-IL4Y8XHO.js → RadioGroup-BPPJyA1s.js} +72 -32
- package/dist/RadioGroup-BbcrP56w.d.ts +52 -0
- package/dist/{RangeCalendar-DT63UD8K.js → RangeCalendar-DIVjIl0T.js} +12 -10
- package/dist/Select-D1qIWZCv.d.ts +248 -0
- package/dist/{Select-BM8PNrjC.js → Select-DlbVDCz8.js} +452 -191
- package/dist/{SelectListBox-BFSZxDSi.js → SelectListBox-CCr5YY86.js} +55 -43
- package/dist/{SelectionIndicator-C3hniBa2.js → SelectionIndicator-CvuKjZRP.js} +3 -3
- package/dist/{SharedElementTransition-CZ2bE7yo.js → SharedElementTransition-BkyYit3Q.js} +2 -2
- package/dist/{SidebarWorkspaces-DJknAfS9.js → SidebarWorkspaces-CIpFJGOa.js} +283 -366
- package/dist/{SidebarWorkspaces-DDHJAdNH.d.ts → SidebarWorkspaces-DcwA_jv7.d.ts} +31 -17
- package/dist/Slider-CLViwkE1.d.ts +57 -0
- package/dist/{Slider-DCsCCPFx.js → Slider-_RsgBJcg.js} +72 -15
- package/dist/Spinner-GMEauCHv.d.ts +13 -0
- package/dist/SplitButton-BdP4xjFQ.d.ts +25 -0
- package/dist/{Stepper-Dyhxp0Tl.js → Stepper-D4z7JNsD.js} +116 -88
- package/dist/Stepper-DBb0qfla.d.ts +49 -0
- package/dist/{Switch-BfpSMMpv.js → Switch-Bi3_bUw1.js} +56 -14
- package/dist/Switch-DCxONL2Q.d.ts +42 -0
- package/dist/TableDnd-CG1yOlxh.js +238 -0
- package/dist/TableDragHandle-CXApnuUm.js +51 -0
- package/dist/{TabsFilters-DybNturW.js → TabsFilters-BPogry73.js} +46 -35
- package/dist/TabsFilters-CPfGBODw.d.ts +59 -0
- package/dist/Tag-xhcJOv_X.d.ts +26 -0
- package/dist/{Text-D72yc4S6.js → Text-D7Nqkw1l.js} +1 -1
- package/dist/TextArea-BYX9Kk_v.d.ts +33 -0
- package/dist/{TextArea-Blsip3ZC.js → TextArea-CuJS3-Nv.js} +62 -35
- package/dist/{TimePicker-4hV5zbgd.js → TimePicker-ByfjqkLp.js} +120 -56
- package/dist/TimePicker-UTo9C6gz.d.ts +64 -0
- package/dist/TimePickerForm-CaIHR0PV.js +532 -0
- package/dist/{ToastContainer-Dd0LPykL.js → ToastContainer-tr7Zxahc.js} +4 -4
- package/dist/{ToggleButton-HUZ8ij6i.d.ts → ToggleButton-BX8o7ECO.d.ts} +2 -2
- package/dist/{ToggleButton-P1z1pxzT.js → ToggleButton-D8BT67FO.js} +5 -5
- package/dist/ToggleGroup-18c-FZ_r.js +500 -0
- package/dist/ToggleGroup-UazUtgU1.d.ts +95 -0
- package/dist/{Tooltip-DRB6lo0U.js → Tooltip-Dl3sf8fq.js} +5 -5
- package/dist/Tooltip-FcJ29dhq.d.ts +33 -0
- package/dist/TooltipEllipsis-7QF00kXk.d.ts +21 -0
- package/dist/{TooltipWrapper-BSY31JMc.js → TooltipWrapper-bvNpM6ku.js} +6 -6
- package/dist/{Typography-DJojwiXV.d.ts → Typography-auHWN282.d.ts} +5 -1
- package/dist/{badgeButton.cva-t5PQOH4M.js → badge.cva-C9mE8CMf.js} +23 -24
- package/dist/{button.cva-Ciga0rdG.js → button.cva-C2aoXMh-.js} +10 -16
- package/dist/{buttonContent.cva-BapnODby.d.ts → buttonContent.cva-CeGnrjoA.d.ts} +2 -2
- package/dist/calendarHeader.cva-D3sXR7ox.js +23 -0
- package/dist/{checkbox.cva-aLJS7v4z.js → checkbox.cva-qU_q0lSX.js} +14 -14
- package/dist/columnConfig.cva-CERwSZRN.js +29 -0
- package/dist/components/accordion.d.ts +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/alert-dialog.d.ts +2 -2
- package/dist/components/alert-dialog.js +174 -128
- package/dist/components/alert.d.ts +1 -1
- package/dist/components/alert.js +17 -15
- package/dist/components/autocomplete.d.ts +2 -2
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/badge.d.ts +2 -2
- package/dist/components/badge.js +166 -81
- package/dist/components/bottom-sheet-header.d.ts +1 -1
- package/dist/components/bottom-sheet-header.js +25 -21
- package/dist/components/bottom-sheet.d.ts +2 -2
- package/dist/components/bottom-sheet.js +2 -2
- package/dist/components/breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/button.d.ts +2 -2
- package/dist/components/button.js +1 -1
- package/dist/components/checkbox-group.d.ts +2 -2
- package/dist/components/checkbox-group.js +1 -1
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/checkbox.js +1 -1
- package/dist/components/date-picker.d.ts +2 -2
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker.d.ts +4 -41
- package/dist/components/date-range-picker.js +4 -2
- package/dist/components/date-range-presets.d.ts +2 -0
- package/dist/components/date-range-presets.js +3 -0
- package/dist/components/date-time-picker.d.ts +2 -2
- package/dist/components/date-time-picker.js +1 -1
- package/dist/components/dialog.d.ts +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/drawer.d.ts +1 -1
- package/dist/components/drawer.js +16 -80
- package/dist/components/dropdown-menu.d.ts +2 -3
- package/dist/components/dropdown-menu.js +2 -3
- package/dist/components/file-input.d.ts +2 -2
- package/dist/components/file-input.js +1 -1
- package/dist/components/file-upload.d.ts +2 -3
- package/dist/components/file-upload.js +1 -1
- package/dist/components/form-field.d.ts +3 -2
- package/dist/components/form-field.js +1 -1
- package/dist/components/icon-button.d.ts +1 -1
- package/dist/components/icon-button.js +22 -25
- package/dist/components/icon-slot.d.ts +1 -2
- package/dist/components/icon-slot.js +2 -2
- package/dist/components/input-frame.d.ts +6 -10
- package/dist/components/input-frame.js +31 -28
- package/dist/components/input.d.ts +2 -2
- package/dist/components/input.js +2 -2
- package/dist/components/link.d.ts +1 -1
- package/dist/components/link.js +2 -2
- package/dist/components/number-field.d.ts +2 -2
- package/dist/components/number-field.js +2 -2
- package/dist/components/number-range-input.d.ts +2 -2
- package/dist/components/number-range-input.js +1 -1
- package/dist/components/page-header.d.ts +1 -1
- package/dist/components/page-header.js +5 -5
- package/dist/components/password-input.d.ts +2 -2
- package/dist/components/password-input.js +1 -22
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.js +105 -87
- package/dist/components/progress.d.ts +2 -2
- package/dist/components/progress.js +1 -1
- package/dist/components/radio-group.d.ts +2 -2
- package/dist/components/radio-group.js +1 -1
- package/dist/components/select.d.ts +2 -2
- package/dist/components/select.js +1 -1
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/slider.d.ts +2 -2
- package/dist/components/slider.js +1 -1
- package/dist/components/spinner.d.ts +1 -1
- package/dist/components/spinner.js +71 -1
- package/dist/components/split-button.d.ts +1 -1
- package/dist/components/split-button.js +15 -4
- package/dist/components/stepper.d.ts +1 -1
- package/dist/components/stepper.js +1 -1
- package/dist/components/style-definitions.d.ts +3 -3
- package/dist/components/style-definitions.js +62 -20
- package/dist/components/switch.d.ts +2 -2
- package/dist/components/switch.js +1 -1
- package/dist/components/tabs-filters.d.ts +1 -1
- package/dist/components/tabs-filters.js +1 -1
- package/dist/components/tag.d.ts +1 -1
- package/dist/components/tag.js +50 -64
- package/dist/components/text-area.d.ts +2 -2
- package/dist/components/text-area.js +1 -1
- package/dist/components/time-picker.d.ts +2 -2
- package/dist/components/time-picker.js +1 -1
- package/dist/components/toast.d.ts +3 -3
- package/dist/components/toast.js +4 -3
- package/dist/components/toggle-button.d.ts +1 -1
- package/dist/components/toggle-button.js +1 -1
- package/dist/components/toggle-group.d.ts +2 -2
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/tooltip-ellipsis.d.ts +1 -1
- package/dist/components/tooltip-ellipsis.js +1 -1
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/typography.d.ts +2 -2
- package/dist/components/use-toast.d.ts +2 -2
- package/dist/components/use-toast.js +1 -41
- package/dist/config/component-configuration.d.ts +2 -2
- package/dist/config/component-configuration.js +53 -2
- package/dist/config/confirmation.d.ts +1 -1
- package/dist/config/confirmation.js +1 -1
- package/dist/config/link-context.d.ts +3 -3
- package/dist/config/link-context.js +1 -1
- package/dist/config/resources.d.ts +1 -1
- package/dist/config/resources.js +1 -1
- package/dist/config/ui-config.d.ts +2 -2
- package/dist/config/ui-config.js +1 -1
- package/dist/config/ui-overrides.d.ts +1 -1
- package/dist/config/ui-router.d.ts +1 -1
- package/dist/config/ui-router.js +1 -1
- package/dist/confirmation.context-C_-uADGJ.js +93 -0
- package/dist/confirmation.context-DkWyR2aT.d.ts +32 -0
- package/dist/{datePickerInput.cva-Du0Zn04v.js → datePickerInput.cva-CWkV2fut.js} +1 -1
- package/dist/dateRangePreset.utils-Bnb-rjTt.js +116 -0
- package/dist/{dialog.cva-BIpz6HcA.js → dialog.cva-BjVggO5l.js} +1 -1
- package/dist/{dist-DEZzXa0W.js → dist-CP6vV22I.js} +68 -39
- package/dist/{dom.utils-BPooTXtC.js → dom.utils-CqejLWIQ.js} +1 -1
- package/dist/{dropdownMenu.cva-DwSOcbmR.js → dropdownMenu.cva-BopsvbOy.js} +19 -7
- package/dist/{exports-BNrTn8Tj.js → exports-DeBGRThC.js} +3 -3
- package/dist/{file.utils-Crb-mIHs.d.ts → file.utils-DUADtzdt.d.ts} +3 -3
- package/dist/{file.utils-DqQxnuAm.js → file.utils-X6tkeWaz.js} +2 -6
- package/dist/fileInputButton.cva-gbqRUf1g.js +39 -0
- package/dist/{fileUpload.cva-BYzXGc9C.js → fileUpload.cva-SrF6v406.js} +3 -3
- package/dist/form-field-C735uXsi.d.ts +1 -0
- package/dist/form.binding-Brdjq2yr.js +161 -0
- package/dist/form.binding-DSXB2AOD.d.ts +127 -0
- package/dist/form.types-a2WVJDQX.d.ts +43 -0
- package/dist/formReset-CnZl_yze.js +35 -0
- package/dist/hints-B09_WDhL.d.ts +17 -0
- package/dist/hooks/use-async-list.d.ts +1 -1
- package/dist/hooks/use-async-list.js +1 -1
- package/dist/hooks/use-breakpoint.d.ts +3 -0
- package/dist/hooks/use-breakpoint.js +2 -0
- package/dist/hooks/use-filters.d.ts +2 -2
- package/dist/hooks/use-filters.js +1 -1
- package/dist/{i18n-D8vXIoiq.js → i18n-DaIHnR2n.js} +123 -9
- package/dist/{i18n-DM-PUcxQ.d.ts → i18n-xXkHgzet.d.ts} +124 -4
- package/dist/iconSlot.cva-DyhOI7EK.js +5 -0
- package/dist/{import-C7W0Wv2r.js → import-Cz8NlFqm.js} +40 -16
- package/dist/index.d.ts +66 -84
- package/dist/index.js +57 -92
- package/dist/{input.cva-DZii82eS.js → input.cva-mm1dnfKP.js} +27 -23
- package/dist/inputLayout-CIVpuUBq.js +7 -0
- package/dist/inputRow.clsx-BbcaXVta.js +6 -0
- package/dist/{intlStrings-Cu1YN1tA.js → intlStrings-ClpdCJmU.js} +35 -35
- package/dist/{isEqual-LFw0W5rU.js → isEqual-BdJdNr5O.js} +1 -1
- package/dist/{label.cva-DTfT6FrX.js → label.cva-DJ5Dmbz5.js} +7 -7
- package/dist/link.context-BxVK2yQ5.d.ts +20 -0
- package/dist/{link.context-TPjDtjw3.js → link.context-CD5h_b5O.js} +12 -11
- package/dist/link.cva-ZhpQz3P0.d.ts +2277 -0
- package/dist/{progress.cva-CsGaGVJ-.js → progress.cva-mkJxrrac.js} +2 -2
- package/dist/{radio.cva-DistaZtZ.js → radio.cva-Dt5N2ul2.js} +7 -7
- package/dist/rich-text-editor.d.ts +44 -2
- package/dist/rich-text-editor.js +733 -1
- package/dist/router.context-B6j_M4cN.js +151 -0
- package/dist/router.context-CSd9JYQ4.d.ts +33 -0
- package/dist/{selectDesktop.cva-DStkOdwm.js → selectDesktop.cva-30JAvtgB.js} +1 -1
- package/dist/{selectItem.cva-B6vxey2R.js → selectItem.cva-DsOZSSPx.js} +2 -1
- package/dist/sidebar.cva-BgxTCejU.js +150 -0
- package/dist/spinner.cva-j4kGmIWC.js +17 -0
- package/dist/{staticDateTimeSegments-CVuAhDDl.js → staticDateTimeSegments-BgUrcqXD.js} +379 -94
- package/dist/{status.cva-CYgi3Htz.js → status.cva-WLEqUAjH.js} +9 -9
- package/dist/styles/input.d.ts +1 -1
- package/dist/{table.cva-DkcsOmZG.js → table.cva-n9TO_vu1.js} +68 -17
- package/dist/tableCells.cva-Br0_kgRM.js +18 -0
- package/dist/tableColumnConfigStorage-Cciq8gVe.js +215 -0
- package/dist/tableVirtualStore-whSmFzTV.js +67 -0
- package/dist/tanstack/form.d.ts +3 -3
- package/dist/tanstack/form.js +3 -3
- package/dist/tanstack/table-context.d.ts +2 -0
- package/dist/tanstack/table-context.js +2 -0
- package/dist/tanstack/table-types.d.ts +55 -0
- package/dist/tanstack/table.d.ts +5 -3
- package/dist/tanstack/table.js +3 -2
- package/dist/tanstack-JB8VmS9j.js +73 -0
- package/dist/tanstack-cQOW9-Q2.d.ts +165 -0
- package/dist/tanstack-table-DdWYwCZM.d.ts +858 -0
- package/dist/tanstack-table-M1M26UQJ.js +5299 -0
- package/dist/tanstack.d.ts +66 -84
- package/dist/tanstack.js +57 -92
- package/dist/{toast.cva-B6NXTwbZ.js → toast.cva-DusQwZw-.js} +13 -9
- package/dist/toast.runtime-ZN5q4T9X.js +25 -0
- package/dist/{toggleGroup.cva-CJ-3Ps7j.js → toggleGroup.cva-CvNS5QO1.js} +2 -2
- package/dist/{uiConfig.context-3DN9w6oU.js → uiConfig.context-NWmBJ2Hc.js} +72 -10
- package/dist/uiConfig.context-ykH4E2js.d.ts +19 -0
- package/dist/uiConfig.types-BsyPKepP.d.ts +291 -0
- package/dist/{uiOverrides.context-DHHzLSnq.d.ts → uiOverrides.context-C5Maic5Q.d.ts} +106 -0
- package/dist/{useAsyncList-Ct74ve3i.js → useAsyncList-DkIjhlce.js} +142 -37
- package/dist/useAsyncList-F-328rtE.d.ts +25 -0
- package/dist/useAutoFocus-K-bfNxa2.js +16 -0
- package/dist/useBreakpoint-BPrZNuNl.d.ts +9 -0
- package/dist/{useBreakpoint-CJ3mx7UF.js → useBreakpoint-DtYSRweq.js} +6 -2
- package/dist/{useControlledState-CuU1VIh1.js → useControlledState-C1-Mt2i0.js} +1 -1
- package/dist/useDebounceCallback-C7YKfjXW.js +96 -0
- package/dist/useFilters-CybBXUAA.js +217 -0
- package/dist/useFilters-DrfBFNLw.d.ts +57 -0
- package/dist/useFormAutosave-BzCGqFqi.js +419 -0
- package/dist/{useFormAutosave-BBLm3Ujo.d.ts → useFormAutosave-ClMnzVE7.d.ts} +1 -1
- package/dist/{useIntersectionObserver-DFAhTsV0.js → useIntersectionObserver-B8msnQTR.js} +15 -3
- package/dist/{numberStatic.utils-BIyZuILs.js → useLiveNumberFieldState-npiqOvyB.js} +107 -6
- package/dist/useRemoveButton-zhlA1Pbc.js +98 -0
- package/dist/useResolveDateRangePreset-DOSzJR-N.d.ts +64 -0
- package/dist/useResolveDateRangePreset-k_h_XJBG.js +26 -0
- package/dist/{useScrollableListBox-oYKqU3Hp.js → useScrollableListBox-4pieApqz.js} +1 -1
- package/dist/{useStaticInputHandoff-BN0fOerH.js → useStaticInputHandoff-DrNFrvD7.js} +6 -1
- package/dist/useTableVirtualizer-sFInQiH-.d.ts +162 -0
- package/dist/useToast-BHqkSByv.d.ts +78 -0
- package/dist/useToast-DgqC6Ta_.js +63 -0
- package/dist/utils/file.d.ts +1 -1
- package/dist/utils/file.js +1 -1
- package/dist/{utils-BkLF-JA3.js → utils-Q5Oc6oX2.js} +1 -1
- package/llms.txt +3201 -0
- package/package.json +22 -118
- package/MIGRATION.md +0 -655
- package/dist/Alert-D4X7OWiv.d.ts +0 -34
- package/dist/AlertDialog-DklLDjmw.d.ts +0 -26
- package/dist/Autocomplete-BgFz3kuR.d.ts +0 -23
- package/dist/Autocomplete-Bn13u0zu.js +0 -145
- package/dist/Autocomplete.bound-CpHZZ3C9.d.ts +0 -9
- package/dist/Autocomplete.bound-Dwh__y-Z.js +0 -28
- package/dist/Badge-Db1ndK67.d.ts +0 -30
- package/dist/BadgeButton-BPhWDAnc.d.ts +0 -15
- package/dist/BottomSheet-BZmDJBR-.d.ts +0 -33
- package/dist/ButtonBase-CZuEy3Pk.d.ts +0 -32
- package/dist/Checkbox-w2j5hLOQ.d.ts +0 -27
- package/dist/Checkbox.bound-D2nBglJz.js +0 -33
- package/dist/Checkbox.bound-DD_RCjVm.d.ts +0 -9
- package/dist/CheckboxCheckmark-DWsYVZuu.js +0 -25
- package/dist/CheckboxGroup-BYI15Y09.d.ts +0 -30
- package/dist/CheckboxGroup.bound-DY0HKGSh.js +0 -32
- package/dist/CheckboxGroup.bound-QiJ-P0KR.d.ts +0 -9
- package/dist/ComboBox-ChsdI0lt.js +0 -212
- package/dist/DatePicker-QzfQf21b.d.ts +0 -56
- package/dist/DatePicker.bound-DoCAqhM4.d.ts +0 -9
- package/dist/DatePicker.bound-M2cjR37s.js +0 -36
- package/dist/DateRangePicker-32D4pWJg.d.ts +0 -97
- package/dist/DateRangePicker.bound-CVtoVsho.d.ts +0 -9
- package/dist/DateRangePicker.bound-CkIDsAUf.js +0 -35
- package/dist/DateTimePicker-BTRIUagV.d.ts +0 -55
- package/dist/DateTimePicker.bound-X4DTyQ1b.d.ts +0 -9
- package/dist/DateTimePicker.bound-nSCVUqd0.js +0 -32
- package/dist/Dialog-CO9xljD3.d.ts +0 -21
- package/dist/Drawer-D1cHiBFO.d.ts +0 -18
- package/dist/DropdownMenu-D_9z9ond.d.ts +0 -25
- package/dist/FileInput-BEaECoBS.d.ts +0 -75
- package/dist/FileInput.bound-C12mOKpg.js +0 -30
- package/dist/FileInput.bound-D2HuuqSb.d.ts +0 -8
- package/dist/FileUpload-BUTSqHVk.d.ts +0 -11
- package/dist/FileUpload-D7FMYm-k.js +0 -749
- package/dist/FileUpload.bound-CGQXb4iT.d.ts +0 -16
- package/dist/FileUpload.bound-DmkuulOi.js +0 -30
- package/dist/FileUploadContainer-Dzg5aXXZ.d.ts +0 -5
- package/dist/FormField-DGyCDxOp.d.ts +0 -42
- package/dist/FormFieldHeaderTooltip-Dt-g40Tc.js +0 -17
- package/dist/IconButton-shH_9wcl.d.ts +0 -25
- package/dist/Input-CTp_9mS9.d.ts +0 -34
- package/dist/Input.bound-B9a62ylL.d.ts +0 -9
- package/dist/Input.bound-DYoXyRGy.js +0 -31
- package/dist/InputContent-BCNkN4Fx.d.ts +0 -27
- package/dist/Link-PvYB_M-j.d.ts +0 -30
- package/dist/MenuItem-U3-pu1j5.d.ts +0 -6
- package/dist/NumberField-WXebfxjK.d.ts +0 -34
- package/dist/NumberField.bound-ChJnNyJS.js +0 -32
- package/dist/NumberField.bound-Dy0A5iVc.d.ts +0 -9
- package/dist/NumberRangeInput-BCKQaGpy.d.ts +0 -50
- package/dist/NumberRangeInput.bound-BF6P_ega.js +0 -32
- package/dist/NumberRangeInput.bound-BNXxIQ0b.d.ts +0 -9
- package/dist/PasswordInput-EhQjYyJS.d.ts +0 -11
- package/dist/PasswordInput.bound-CK5GwKL4.d.ts +0 -9
- package/dist/Popover-D_t1XDPA.d.ts +0 -20
- package/dist/Progress-Ckfpi_-M.d.ts +0 -45
- package/dist/Progress-RiEGGxNG.js +0 -119
- package/dist/RadioGroup-6e-Z6jW8.d.ts +0 -26
- package/dist/RadioGroup.bound-BFWSq-on.js +0 -32
- package/dist/RadioGroup.bound-w3SZqSkH.d.ts +0 -9
- package/dist/RichTextEditor-DHhuBeT6.d.ts +0 -28
- package/dist/RichTextEditor-DfwVdm45.js +0 -651
- package/dist/Select-C34ENdjq.d.ts +0 -119
- package/dist/Select.bound--Az1Xwgm.js +0 -34
- package/dist/Select.bound-qOihchei.d.ts +0 -17
- package/dist/Slider-DRg8zKRM.d.ts +0 -23
- package/dist/Slider.bound-CByTXPTr.js +0 -31
- package/dist/Slider.bound-CaEF19um.d.ts +0 -9
- package/dist/Spinner-Cvy_6zgD.d.ts +0 -30
- package/dist/Spinner-DqjP06T1.js +0 -101
- package/dist/SplitButton-V1f2NWfh.d.ts +0 -15
- package/dist/Stepper-k91x_m-E.d.ts +0 -114
- package/dist/Switch-ELVPkPx0.d.ts +0 -24
- package/dist/Switch.bound-DeEdVvZV.d.ts +0 -9
- package/dist/Switch.bound-Dv0cHsMM.js +0 -33
- package/dist/TableDnd-CuHxANWh.js +0 -133
- package/dist/TableRowDetails-D8HFTghI.d.ts +0 -109
- package/dist/TabsFilters-DePddjCk.d.ts +0 -30
- package/dist/Tag-B2_ZiSE-.d.ts +0 -44
- package/dist/TextArea-iqUeB2QY.d.ts +0 -26
- package/dist/TextArea.bound-BJHyCogp.d.ts +0 -9
- package/dist/TextArea.bound-DeaskY6r.js +0 -28
- package/dist/TimePicker-BZ1ocsBX.d.ts +0 -45
- package/dist/TimePicker.bound-8DmjMXuE.d.ts +0 -9
- package/dist/TimePicker.bound-BFSXJvE_.js +0 -32
- package/dist/TimePickerForm-DD9VA_td.js +0 -225
- package/dist/Toast-D9pdadZ4.d.ts +0 -16
- package/dist/ToggleGroup-CrDoeLN0.js +0 -333
- package/dist/ToggleGroup-DvjnSinl.d.ts +0 -42
- package/dist/ToggleGroup.bound-B03ISHQ8.d.ts +0 -9
- package/dist/ToggleGroup.bound-DCnYwmBt.js +0 -67
- package/dist/Tooltip-B8DTURLQ.d.ts +0 -16
- package/dist/TooltipEllipsis-Di9Dvd4x.d.ts +0 -11
- package/dist/badgeButton.cva-CBFIhr1S.d.ts +0 -41
- package/dist/button.cva-C8LGtNJ3.d.ts +0 -94
- package/dist/checkbox.cva-CCh_UlrC.d.ts +0 -76
- package/dist/components/badge-button.d.ts +0 -2
- package/dist/components/badge-button.js +0 -74
- package/dist/components/file-upload-container.d.ts +0 -3
- package/dist/components/file-upload-container.js +0 -15
- package/dist/confirmation.context-Bc2yEVp_.js +0 -114
- package/dist/confirmation.context-C_GDRn3a.d.ts +0 -23
- package/dist/fileUpload.types-C-ke21yY.d.ts +0 -110
- package/dist/form.binding-DOR5gIQf.js +0 -49
- package/dist/form.types-C8P4sznq.d.ts +0 -22
- package/dist/formFieldHelper.cva-DRmSyRZN.js +0 -14
- package/dist/iconSlot.cva-CLB5Tlsr.d.ts +0 -9
- package/dist/icons.d.ts +0 -4
- package/dist/icons.js +0 -3
- package/dist/input.cva-BjuHsDGy.d.ts +0 -80
- package/dist/inputLayout-KdAtunGk.js +0 -5
- package/dist/link.context-BCHn7NSy.d.ts +0 -12
- package/dist/radio.cva-D7M1hqLe.d.ts +0 -56
- package/dist/router.context-CtafjXV7.d.ts +0 -16
- package/dist/router.context-MckTbHw9.js +0 -63
- package/dist/routing.utils-DfxEt0_Y.js +0 -30
- package/dist/style-definitions-Dx6aFDiR.d.ts +0 -1038
- package/dist/switch.cva-r6vcS25Q.d.ts +0 -16
- package/dist/tanstack/autocomplete.d.ts +0 -3
- package/dist/tanstack/autocomplete.js +0 -2
- package/dist/tanstack/checkbox-group.d.ts +0 -3
- package/dist/tanstack/checkbox-group.js +0 -2
- package/dist/tanstack/checkbox.d.ts +0 -3
- package/dist/tanstack/checkbox.js +0 -2
- package/dist/tanstack/date-picker.d.ts +0 -3
- package/dist/tanstack/date-picker.js +0 -2
- package/dist/tanstack/date-range-picker.d.ts +0 -3
- package/dist/tanstack/date-range-picker.js +0 -2
- package/dist/tanstack/date-time-picker.d.ts +0 -3
- package/dist/tanstack/date-time-picker.js +0 -2
- package/dist/tanstack/file-input.d.ts +0 -3
- package/dist/tanstack/file-input.js +0 -2
- package/dist/tanstack/file-upload.d.ts +0 -4
- package/dist/tanstack/file-upload.js +0 -2
- package/dist/tanstack/input.d.ts +0 -3
- package/dist/tanstack/input.js +0 -2
- package/dist/tanstack/number-field.d.ts +0 -3
- package/dist/tanstack/number-field.js +0 -2
- package/dist/tanstack/number-range-input.d.ts +0 -3
- package/dist/tanstack/number-range-input.js +0 -2
- package/dist/tanstack/password-input.d.ts +0 -2
- package/dist/tanstack/password-input.js +0 -2
- package/dist/tanstack/radio-group.d.ts +0 -3
- package/dist/tanstack/radio-group.js +0 -2
- package/dist/tanstack/rich-text-editor.d.ts +0 -9
- package/dist/tanstack/rich-text-editor.js +0 -28
- package/dist/tanstack/select.d.ts +0 -3
- package/dist/tanstack/select.js +0 -2
- package/dist/tanstack/slider.d.ts +0 -3
- package/dist/tanstack/slider.js +0 -2
- package/dist/tanstack/switch.d.ts +0 -3
- package/dist/tanstack/switch.js +0 -2
- package/dist/tanstack/text-area.d.ts +0 -3
- package/dist/tanstack/text-area.js +0 -2
- package/dist/tanstack/time-picker.d.ts +0 -3
- package/dist/tanstack/time-picker.js +0 -2
- package/dist/tanstack/toggle-group.d.ts +0 -3
- package/dist/tanstack/toggle-group.js +0 -2
- package/dist/tanstack-Bgdv0qU1.js +0 -19
- package/dist/tanstack-wNbE6b-h.d.ts +0 -566
- package/dist/toast.cva-AmLw6Cf5.d.ts +0 -61
- package/dist/toast.runtime-Drd2IJ_j.js +0 -17
- package/dist/toastActivation.store-BELtcr76.js +0 -16
- package/dist/toggleGroup.cva-DA4U21gn.d.ts +0 -26
- package/dist/typography.cva-BCHlTHdM.d.ts +0 -36
- package/dist/uiConfig.context-BnCORTNm.d.ts +0 -132
- package/dist/useAsyncList-Cu-Y8If2.d.ts +0 -9
- package/dist/useFilters-BxRScJdn.d.ts +0 -11
- package/dist/useFilters-DMi94RZK.js +0 -190
- package/dist/useForm-Cb7KWLds.js +0 -217
- package/dist/useForm-I6z23FXf.d.ts +0 -51
- package/dist/useFormAutosave-BPGlChiY.js +0 -216
- package/dist/useTableColumnConfig-CXYgj5xi.js +0 -1906
- package/dist/useTableNav-BusSFEVC.d.ts +0 -197
- package/dist/useToast-DsA8CVoY.d.ts +0 -16
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { i as TooltipVariantProps } from "./style-definitions-Dx6aFDiR.js";
|
|
2
|
-
import { PropsWithChildren, ReactNode } from "react";
|
|
3
|
-
import { TooltipProps } from "react-aria-components";
|
|
4
|
-
//#region src/components/overlays/Tooltip/Tooltip.d.ts
|
|
5
|
-
interface TooltipProps$1 extends PropsWithChildren<TooltipProps>, TooltipVariantProps {
|
|
6
|
-
text: ReactNode;
|
|
7
|
-
isDisabled?: boolean;
|
|
8
|
-
delay?: number;
|
|
9
|
-
closeDelay?: number;
|
|
10
|
-
isNonInteractiveTrigger?: boolean;
|
|
11
|
-
triggerClassName?: string;
|
|
12
|
-
triggerTabIndex?: number;
|
|
13
|
-
}
|
|
14
|
-
declare const Tooltip: ({ children, text, isDisabled, delay, closeDelay, color, isNonInteractiveTrigger, triggerClassName, triggerTabIndex, ...tooltipProps }: TooltipProps$1) => import("react").JSX.Element;
|
|
15
|
-
//#endregion
|
|
16
|
-
export { TooltipProps$1 as n, Tooltip as t };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { JSX, ReactNode, Ref } from "react";
|
|
2
|
-
//#region src/components/overlays/Tooltip/TooltipEllipsis.d.ts
|
|
3
|
-
interface TooltipEllipsisProps {
|
|
4
|
-
text: ReactNode;
|
|
5
|
-
children: (ref: Ref<HTMLElement> | undefined) => JSX.Element;
|
|
6
|
-
isDisabled?: boolean;
|
|
7
|
-
isNonInteractiveTrigger?: boolean;
|
|
8
|
-
}
|
|
9
|
-
declare const TooltipEllipsis: ({ text, children, isDisabled, isNonInteractiveTrigger }: TooltipEllipsisProps) => JSX.Element;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { TooltipEllipsisProps as n, TooltipEllipsis as t };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { n as StyleMergeUtils, t as UIOverrides } from "./uiOverrides.context-DHHzLSnq.js";
|
|
2
|
-
import "./style-definitions-Dx6aFDiR.js";
|
|
3
|
-
import "./typography.cva-BCHlTHdM.js";
|
|
4
|
-
//#region src/components/buttons/BadgeButton/badgeButton.cva.d.ts
|
|
5
|
-
declare const badgeButtonDefinition: {
|
|
6
|
-
base: string[];
|
|
7
|
-
config: StyleMergeUtils.Config<{
|
|
8
|
-
readonly color: {
|
|
9
|
-
readonly primary: "";
|
|
10
|
-
readonly secondary: "";
|
|
11
|
-
readonly success: "";
|
|
12
|
-
readonly warning: "";
|
|
13
|
-
readonly error: "";
|
|
14
|
-
};
|
|
15
|
-
readonly hasIcon: {
|
|
16
|
-
readonly true: "px-2";
|
|
17
|
-
readonly false: "px-2";
|
|
18
|
-
};
|
|
19
|
-
readonly variant: {
|
|
20
|
-
readonly contained: "";
|
|
21
|
-
readonly solid: "";
|
|
22
|
-
readonly outlined: "";
|
|
23
|
-
readonly outline: "";
|
|
24
|
-
readonly subtle: "";
|
|
25
|
-
};
|
|
26
|
-
}>;
|
|
27
|
-
};
|
|
28
|
-
type BadgeButtonConfig = NonNullable<typeof badgeButtonDefinition.config>;
|
|
29
|
-
interface BadgeButtonVariants extends Omit<UIOverrides.VariantProps<BadgeButtonConfig>, "hasIcon"> {}
|
|
30
|
-
declare const badgeButtonContentDefinition: {
|
|
31
|
-
base: string[];
|
|
32
|
-
config: StyleMergeUtils.Config<{
|
|
33
|
-
readonly iconPosition: {
|
|
34
|
-
readonly left: "";
|
|
35
|
-
readonly right: "";
|
|
36
|
-
readonly none: "";
|
|
37
|
-
};
|
|
38
|
-
}>;
|
|
39
|
-
};
|
|
40
|
-
//#endregion
|
|
41
|
-
export { badgeButtonContentDefinition as n, badgeButtonDefinition as r, BadgeButtonVariants as t };
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { n as StyleMergeUtils, t as UIOverrides } from "./uiOverrides.context-DHHzLSnq.js";
|
|
2
|
-
import "./style-definitions-Dx6aFDiR.js";
|
|
3
|
-
import "./typography.cva-BCHlTHdM.js";
|
|
4
|
-
//#region src/components/buttons/Button/button.cva.d.ts
|
|
5
|
-
declare const buttonDefinition: {
|
|
6
|
-
base: string[];
|
|
7
|
-
config: StyleMergeUtils.Config<{
|
|
8
|
-
readonly width: {
|
|
9
|
-
readonly fill: "w-full";
|
|
10
|
-
readonly hug: "";
|
|
11
|
-
};
|
|
12
|
-
readonly size: {
|
|
13
|
-
readonly s: "";
|
|
14
|
-
readonly sm: "";
|
|
15
|
-
readonly default: "";
|
|
16
|
-
readonly none: "";
|
|
17
|
-
};
|
|
18
|
-
readonly color: {
|
|
19
|
-
readonly primary: "";
|
|
20
|
-
readonly secondary: "";
|
|
21
|
-
readonly error: "";
|
|
22
|
-
readonly dual: "";
|
|
23
|
-
};
|
|
24
|
-
readonly variant: {
|
|
25
|
-
readonly contained: "";
|
|
26
|
-
readonly solid: "";
|
|
27
|
-
readonly outlined: "";
|
|
28
|
-
readonly outline: "";
|
|
29
|
-
readonly subtle: "";
|
|
30
|
-
readonly text: "group-data-[split]/split:data-[separator]:after:hidden";
|
|
31
|
-
readonly ghost: "group-data-[split]/split:data-[separator]:after:hidden";
|
|
32
|
-
};
|
|
33
|
-
readonly inverted: {
|
|
34
|
-
readonly true: "";
|
|
35
|
-
readonly false: "";
|
|
36
|
-
};
|
|
37
|
-
}>;
|
|
38
|
-
};
|
|
39
|
-
type ButtonConfig = NonNullable<typeof buttonDefinition.config>;
|
|
40
|
-
interface ButtonVariantProps extends UIOverrides.VariantProps<ButtonConfig> {}
|
|
41
|
-
declare const buttonSizeDefinition: {
|
|
42
|
-
base: string[];
|
|
43
|
-
config: StyleMergeUtils.Config<{
|
|
44
|
-
readonly size: {
|
|
45
|
-
readonly s: "rounded-md";
|
|
46
|
-
readonly sm: "rounded-md";
|
|
47
|
-
readonly default: "rounded-md";
|
|
48
|
-
readonly none: "p-0";
|
|
49
|
-
};
|
|
50
|
-
readonly iconOnly: {
|
|
51
|
-
readonly true: "";
|
|
52
|
-
readonly false: "";
|
|
53
|
-
};
|
|
54
|
-
readonly iconPosition: {
|
|
55
|
-
readonly left: "";
|
|
56
|
-
readonly right: "";
|
|
57
|
-
readonly none: "";
|
|
58
|
-
};
|
|
59
|
-
}>;
|
|
60
|
-
};
|
|
61
|
-
declare const buttonContentDefinition: {
|
|
62
|
-
base: string[];
|
|
63
|
-
config: StyleMergeUtils.Config<{
|
|
64
|
-
readonly size: {
|
|
65
|
-
readonly s: "gap-1.5";
|
|
66
|
-
readonly sm: "gap-1.5";
|
|
67
|
-
readonly default: "gap-2";
|
|
68
|
-
readonly none: "gap-1.5";
|
|
69
|
-
};
|
|
70
|
-
readonly iconPosition: {
|
|
71
|
-
readonly left: "";
|
|
72
|
-
readonly right: "";
|
|
73
|
-
readonly none: "";
|
|
74
|
-
};
|
|
75
|
-
readonly iconOnly: {
|
|
76
|
-
readonly true: "";
|
|
77
|
-
readonly false: "";
|
|
78
|
-
};
|
|
79
|
-
}>;
|
|
80
|
-
};
|
|
81
|
-
type ButtonContentConfig = NonNullable<typeof buttonContentDefinition.config>;
|
|
82
|
-
declare const buttonIconSizeDefinition: {
|
|
83
|
-
base: string[];
|
|
84
|
-
config: StyleMergeUtils.Config<{
|
|
85
|
-
readonly size: {
|
|
86
|
-
readonly s: "size-4";
|
|
87
|
-
readonly sm: "size-4";
|
|
88
|
-
readonly default: "size-4";
|
|
89
|
-
readonly none: "size-4";
|
|
90
|
-
};
|
|
91
|
-
}>;
|
|
92
|
-
};
|
|
93
|
-
//#endregion
|
|
94
|
-
export { buttonIconSizeDefinition as a, buttonDefinition as i, ButtonVariantProps as n, buttonSizeDefinition as o, buttonContentDefinition as r, ButtonContentConfig as t };
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { n as StyleMergeUtils, t as UIOverrides } from "./uiOverrides.context-DHHzLSnq.js";
|
|
2
|
-
import "./style-definitions-Dx6aFDiR.js";
|
|
3
|
-
import "./typography.cva-BCHlTHdM.js";
|
|
4
|
-
//#region src/components/inputs/Checkbox/checkbox.cva.d.ts
|
|
5
|
-
declare const checkboxDefinition: {
|
|
6
|
-
base: string[];
|
|
7
|
-
config: StyleMergeUtils.Config<{
|
|
8
|
-
readonly variant: {
|
|
9
|
-
default: ["border-input text-primary-foreground dark:bg-input/30", "group-selected:border-primary group-selected:bg-primary dark:group-selected:bg-primary", "group-indeterminate:border-primary group-indeterminate:bg-primary dark:group-indeterminate:bg-primary", "group-not-selected:group-not-indeterminate:group-not-invalid:group-focus-visible:border-ring", "group-not-selected:group-not-indeterminate:group-invalid:border-destructive"];
|
|
10
|
-
};
|
|
11
|
-
}>;
|
|
12
|
-
};
|
|
13
|
-
type CheckboxConfig = NonNullable<typeof checkboxDefinition.config>;
|
|
14
|
-
interface CheckboxVariantProps extends UIOverrides.VariantProps<CheckboxConfig> {}
|
|
15
|
-
declare const checkboxContentWrapperDefinition: {
|
|
16
|
-
base: string[];
|
|
17
|
-
config: StyleMergeUtils.Config<{
|
|
18
|
-
readonly variant: {
|
|
19
|
-
readonly default: "";
|
|
20
|
-
};
|
|
21
|
-
readonly size: {
|
|
22
|
-
readonly small: "";
|
|
23
|
-
readonly default: "";
|
|
24
|
-
};
|
|
25
|
-
readonly as: {
|
|
26
|
-
readonly default: "flex-col";
|
|
27
|
-
readonly floating: "flex-col";
|
|
28
|
-
readonly filter: "flex-row flex-wrap items-center gap-2";
|
|
29
|
-
readonly inline: "flex-row flex-wrap items-center gap-2";
|
|
30
|
-
};
|
|
31
|
-
readonly hasInputFrame: {
|
|
32
|
-
readonly true: "gap-2";
|
|
33
|
-
readonly false: "";
|
|
34
|
-
};
|
|
35
|
-
}>;
|
|
36
|
-
};
|
|
37
|
-
declare const checkboxGroupLabelDefinition: {
|
|
38
|
-
base: string[];
|
|
39
|
-
config: StyleMergeUtils.Config<{
|
|
40
|
-
readonly as: {
|
|
41
|
-
readonly default: "";
|
|
42
|
-
readonly floating: ["pointer-events-none absolute", "top-[0.5625rem]", "text-foreground", "font-medium!", "text-xs!"];
|
|
43
|
-
readonly filter: "";
|
|
44
|
-
readonly inline: "";
|
|
45
|
-
};
|
|
46
|
-
}>;
|
|
47
|
-
};
|
|
48
|
-
declare const checkboxContentRowDefinition: {
|
|
49
|
-
base: string[];
|
|
50
|
-
config: StyleMergeUtils.Config<{
|
|
51
|
-
readonly variant: {
|
|
52
|
-
readonly default: "";
|
|
53
|
-
};
|
|
54
|
-
readonly as: {
|
|
55
|
-
readonly default: "flex-col";
|
|
56
|
-
readonly floating: "flex-col";
|
|
57
|
-
readonly filter: "flex-row flex-wrap items-center gap-2";
|
|
58
|
-
readonly inline: "flex-row flex-wrap items-center gap-2";
|
|
59
|
-
};
|
|
60
|
-
readonly hasInputFrame: {
|
|
61
|
-
readonly true: "gap-2";
|
|
62
|
-
readonly false: "";
|
|
63
|
-
};
|
|
64
|
-
}>;
|
|
65
|
-
};
|
|
66
|
-
declare const checkboxIconDefinition: {
|
|
67
|
-
base: string[];
|
|
68
|
-
config: StyleMergeUtils.Config<{
|
|
69
|
-
readonly iconVariant: {
|
|
70
|
-
selected: ["group-selected:group-not-indeterminate:block"];
|
|
71
|
-
indeterminate: ["group-indeterminate:block"];
|
|
72
|
-
};
|
|
73
|
-
}>;
|
|
74
|
-
};
|
|
75
|
-
//#endregion
|
|
76
|
-
export { checkboxGroupLabelDefinition as a, checkboxDefinition as i, checkboxContentRowDefinition as n, checkboxIconDefinition as o, checkboxContentWrapperDefinition as r, CheckboxVariantProps as t };
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { t as clsx } from "../clsx-CnD0nOiA.js";
|
|
2
|
-
import { t as UIOverrides } from "../uiOverrides.context-DNEQlTx0.js";
|
|
3
|
-
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "../Button-C1YB5dOw.js";
|
|
4
|
-
import { t as $75afe627ae0cc0fa$export$d2b052e7b4be1756 } from "../ToggleButton-P1z1pxzT.js";
|
|
5
|
-
import { t as ButtonContent } from "../ButtonContent-Dztbuz3q.js";
|
|
6
|
-
import { a as badgeButtonTypography, i as badgeButtonIconSize, r as badgeButtonDefinition, t as badgeButtonContent } from "../badgeButton.cva-t5PQOH4M.js";
|
|
7
|
-
import { X } from "lucide-react";
|
|
8
|
-
import { c } from "react/compiler-runtime";
|
|
9
|
-
import { jsx } from "react/jsx-runtime";
|
|
10
|
-
//#region src/components/buttons/BadgeButton/BadgeButton.tsx
|
|
11
|
-
const BadgeButton = (t0) => {
|
|
12
|
-
const $ = c(17);
|
|
13
|
-
const { children, dismissable, toggle, icon, iconPosition, contentRef, ...props } = t0;
|
|
14
|
-
const badgeButtonCva = UIOverrides.useCva("badgeButton.cva", badgeButtonDefinition);
|
|
15
|
-
const badgeButtonTypographyMap = UIOverrides.useMapper("badgeButton.typography", badgeButtonTypography);
|
|
16
|
-
const Component = toggle ? $75afe627ae0cc0fa$export$d2b052e7b4be1756 : $7705c033048f6da7$export$353f5b6fc5456de1;
|
|
17
|
-
let t1;
|
|
18
|
-
if ($[0] !== dismissable || $[1] !== icon || $[2] !== iconPosition) {
|
|
19
|
-
t1 = () => {
|
|
20
|
-
if (dismissable) return "right";
|
|
21
|
-
return icon ? iconPosition : "none";
|
|
22
|
-
};
|
|
23
|
-
$[0] = dismissable;
|
|
24
|
-
$[1] = icon;
|
|
25
|
-
$[2] = iconPosition;
|
|
26
|
-
$[3] = t1;
|
|
27
|
-
} else t1 = $[3];
|
|
28
|
-
const getIconPosition = t1;
|
|
29
|
-
const t2 = clsx(badgeButtonCva({
|
|
30
|
-
...props,
|
|
31
|
-
hasIcon: !!dismissable || !!icon && iconPosition !== "none",
|
|
32
|
-
className: props.className
|
|
33
|
-
}), badgeButtonContent({ iconPosition: getIconPosition() }));
|
|
34
|
-
const T0 = ButtonContent;
|
|
35
|
-
const t3 = dismissable ? X : icon;
|
|
36
|
-
const t4 = dismissable ? "right" : iconPosition;
|
|
37
|
-
const t5 = badgeButtonIconSize;
|
|
38
|
-
const t6 = badgeButtonTypographyMap({ ...props });
|
|
39
|
-
let t7;
|
|
40
|
-
if ($[4] !== T0 || $[5] !== children || $[6] !== contentRef || $[7] !== t3 || $[8] !== t4 || $[9] !== t5 || $[10] !== t6) {
|
|
41
|
-
t7 = /* @__PURE__ */ jsx(T0, {
|
|
42
|
-
ref: contentRef,
|
|
43
|
-
content: children,
|
|
44
|
-
icon: t3,
|
|
45
|
-
iconPosition: t4,
|
|
46
|
-
iconClassName: t5,
|
|
47
|
-
typography: t6
|
|
48
|
-
});
|
|
49
|
-
$[4] = T0;
|
|
50
|
-
$[5] = children;
|
|
51
|
-
$[6] = contentRef;
|
|
52
|
-
$[7] = t3;
|
|
53
|
-
$[8] = t4;
|
|
54
|
-
$[9] = t5;
|
|
55
|
-
$[10] = t6;
|
|
56
|
-
$[11] = t7;
|
|
57
|
-
} else t7 = $[11];
|
|
58
|
-
let t8;
|
|
59
|
-
if ($[12] !== Component || $[13] !== props || $[14] !== t2 || $[15] !== t7) {
|
|
60
|
-
t8 = /* @__PURE__ */ jsx(Component, {
|
|
61
|
-
...props,
|
|
62
|
-
className: t2,
|
|
63
|
-
children: t7
|
|
64
|
-
});
|
|
65
|
-
$[12] = Component;
|
|
66
|
-
$[13] = props;
|
|
67
|
-
$[14] = t2;
|
|
68
|
-
$[15] = t7;
|
|
69
|
-
$[16] = t8;
|
|
70
|
-
} else t8 = $[16];
|
|
71
|
-
return t8;
|
|
72
|
-
};
|
|
73
|
-
//#endregion
|
|
74
|
-
export { BadgeButton };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { t as FileUpload } from "../FileUpload-D7FMYm-k.js";
|
|
2
|
-
import { memo } from "react";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
//#region src/components/inputs/File/FileUploadContainer.tsx
|
|
5
|
-
const FileUploadContainer = memo((props) => {
|
|
6
|
-
return /* @__PURE__ */ jsx(FileUpload, {
|
|
7
|
-
label: "",
|
|
8
|
-
hideLabel: true,
|
|
9
|
-
variant: "vertical",
|
|
10
|
-
as: "button",
|
|
11
|
-
...props
|
|
12
|
-
});
|
|
13
|
-
});
|
|
14
|
-
//#endregion
|
|
15
|
-
export { FileUploadContainer };
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import "./i18n-D8vXIoiq.js";
|
|
2
|
-
import { AlertDialog } from "./components/alert-dialog.js";
|
|
3
|
-
import { c } from "react/compiler-runtime";
|
|
4
|
-
import { createContext, use, useRef, useState } from "react";
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { useTranslation } from "react-i18next";
|
|
7
|
-
//#region src/config/confirmation.context.tsx
|
|
8
|
-
let Confirmation;
|
|
9
|
-
(function(_Confirmation) {
|
|
10
|
-
const Context = createContext(null);
|
|
11
|
-
_Confirmation.Provider = (t0) => {
|
|
12
|
-
const $ = c(14);
|
|
13
|
-
const { children } = t0;
|
|
14
|
-
let t1;
|
|
15
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
16
|
-
t1 = [];
|
|
17
|
-
$[0] = t1;
|
|
18
|
-
} else t1 = $[0];
|
|
19
|
-
const [requests, setRequests] = useState(t1);
|
|
20
|
-
const nextRequestId = useRef(0);
|
|
21
|
-
const { t } = useTranslation("ui");
|
|
22
|
-
let t2;
|
|
23
|
-
if ($[1] !== t) {
|
|
24
|
-
t2 = async (input) => new Promise((resolve) => {
|
|
25
|
-
setRequests((current) => [...current, {
|
|
26
|
-
id: nextRequestId.current = nextRequestId.current + 1,
|
|
27
|
-
input: {
|
|
28
|
-
...input,
|
|
29
|
-
cancelLabel: input.cancelLabel ?? t(_temp),
|
|
30
|
-
confirmLabel: input.confirmLabel ?? t(_temp2)
|
|
31
|
-
},
|
|
32
|
-
resolve
|
|
33
|
-
}]);
|
|
34
|
-
});
|
|
35
|
-
$[1] = t;
|
|
36
|
-
$[2] = t2;
|
|
37
|
-
} else t2 = $[2];
|
|
38
|
-
const confirm = t2;
|
|
39
|
-
const activeRequest = requests[0];
|
|
40
|
-
let t3;
|
|
41
|
-
if ($[3] !== activeRequest) {
|
|
42
|
-
t3 = (result) => {
|
|
43
|
-
if (!activeRequest) return;
|
|
44
|
-
activeRequest.resolve(result);
|
|
45
|
-
setRequests((current_0) => current_0.filter((t4) => {
|
|
46
|
-
const { id } = t4;
|
|
47
|
-
return id !== activeRequest.id;
|
|
48
|
-
}));
|
|
49
|
-
};
|
|
50
|
-
$[3] = activeRequest;
|
|
51
|
-
$[4] = t3;
|
|
52
|
-
} else t3 = $[4];
|
|
53
|
-
const settle = t3;
|
|
54
|
-
let t4;
|
|
55
|
-
if ($[5] !== confirm) {
|
|
56
|
-
t4 = { confirm };
|
|
57
|
-
$[5] = confirm;
|
|
58
|
-
$[6] = t4;
|
|
59
|
-
} else t4 = $[6];
|
|
60
|
-
const value = t4;
|
|
61
|
-
let t5;
|
|
62
|
-
if ($[7] !== activeRequest || $[8] !== settle) {
|
|
63
|
-
t5 = activeRequest ? /* @__PURE__ */ jsx(AlertDialog, {
|
|
64
|
-
heading: activeRequest.input.heading,
|
|
65
|
-
description: activeRequest.input.description,
|
|
66
|
-
buttonSize: activeRequest.input.buttonSize,
|
|
67
|
-
textAlign: activeRequest.input.textAlign,
|
|
68
|
-
dialogClassName: activeRequest.input.dialogClassName,
|
|
69
|
-
isOpen: true,
|
|
70
|
-
onClose: () => settle(false),
|
|
71
|
-
primaryAction: {
|
|
72
|
-
label: activeRequest.input.confirmLabel ?? "",
|
|
73
|
-
variant: activeRequest.input.confirmVariant,
|
|
74
|
-
color: activeRequest.input.confirmColor,
|
|
75
|
-
onPress: () => settle(true)
|
|
76
|
-
},
|
|
77
|
-
secondaryAction: {
|
|
78
|
-
label: activeRequest.input.cancelLabel ?? "",
|
|
79
|
-
variant: activeRequest.input.cancelVariant,
|
|
80
|
-
color: activeRequest.input.cancelColor,
|
|
81
|
-
onPress: () => settle(false)
|
|
82
|
-
}
|
|
83
|
-
}) : null;
|
|
84
|
-
$[7] = activeRequest;
|
|
85
|
-
$[8] = settle;
|
|
86
|
-
$[9] = t5;
|
|
87
|
-
} else t5 = $[9];
|
|
88
|
-
let t6;
|
|
89
|
-
if ($[10] !== children || $[11] !== t5 || $[12] !== value) {
|
|
90
|
-
t6 = /* @__PURE__ */ jsxs(Context.Provider, {
|
|
91
|
-
value,
|
|
92
|
-
children: [t5, children]
|
|
93
|
-
});
|
|
94
|
-
$[10] = children;
|
|
95
|
-
$[11] = t5;
|
|
96
|
-
$[12] = value;
|
|
97
|
-
$[13] = t6;
|
|
98
|
-
} else t6 = $[13];
|
|
99
|
-
return t6;
|
|
100
|
-
};
|
|
101
|
-
_Confirmation.useConfirmation = () => {
|
|
102
|
-
const context = use(Context);
|
|
103
|
-
if (!context) throw new Error("Confirmation.useConfirmation must be used within a Confirmation.Provider");
|
|
104
|
-
return context;
|
|
105
|
-
};
|
|
106
|
-
})(Confirmation || (Confirmation = {}));
|
|
107
|
-
function _temp($) {
|
|
108
|
-
return $.ui.confirmation.cancel;
|
|
109
|
-
}
|
|
110
|
-
function _temp2($_0) {
|
|
111
|
-
return $_0.ui.confirmation.confirm;
|
|
112
|
-
}
|
|
113
|
-
//#endregion
|
|
114
|
-
export { Confirmation as t };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { n as AlertDialogProps } from "./AlertDialog-DklLDjmw.js";
|
|
2
|
-
import { PropsWithChildren } from "react";
|
|
3
|
-
//#region src/config/confirmation.context.d.ts
|
|
4
|
-
declare namespace Confirmation {
|
|
5
|
-
type ContextState = Pick<AlertDialogProps, "heading" | "description" | "buttonSize" | "textAlign" | "primaryAction" | "secondaryAction" | "dialogClassName"> & {
|
|
6
|
-
isOpen: boolean;
|
|
7
|
-
};
|
|
8
|
-
type ConfirmationInput = Pick<ContextState, "heading" | "description" | "buttonSize" | "textAlign" | "dialogClassName"> & {
|
|
9
|
-
cancelLabel?: NonNullable<ContextState["secondaryAction"]>["label"];
|
|
10
|
-
confirmLabel?: NonNullable<ContextState["primaryAction"]>["label"];
|
|
11
|
-
cancelVariant?: NonNullable<ContextState["secondaryAction"]>["variant"];
|
|
12
|
-
cancelColor?: NonNullable<ContextState["secondaryAction"]>["color"];
|
|
13
|
-
confirmVariant?: NonNullable<ContextState["primaryAction"]>["variant"];
|
|
14
|
-
confirmColor?: NonNullable<ContextState["primaryAction"]>["color"];
|
|
15
|
-
};
|
|
16
|
-
interface Options {
|
|
17
|
-
confirm: (input: ConfirmationInput) => Promise<boolean>;
|
|
18
|
-
}
|
|
19
|
-
const Provider: ({ children }: PropsWithChildren) => import("react").JSX.Element;
|
|
20
|
-
const useConfirmation: () => Options;
|
|
21
|
-
}
|
|
22
|
-
//#endregion
|
|
23
|
-
export { Confirmation as t };
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { n as ButtonProps$1 } from "./Button-0SswSdDg.js";
|
|
2
|
-
import { n as FormFieldProps } from "./FormField-DGyCDxOp.js";
|
|
3
|
-
import { FocusEventHandler, ReactNode, Ref } from "react";
|
|
4
|
-
import { DropZoneProps, FileTriggerProps } from "react-aria-components";
|
|
5
|
-
//#region src/types/error-handling.d.ts
|
|
6
|
-
type GeneralErrorCodes = "DATA_VALIDATION_ERROR" | "NETWORK_ERROR" | "CANCELED_ERROR" | "INTERNAL_ERROR" | "UNKNOWN_ERROR";
|
|
7
|
-
declare class ApplicationException<CodeT> extends Error {
|
|
8
|
-
code: CodeT;
|
|
9
|
-
serverMessage: string | null;
|
|
10
|
-
constructor(message: string, code: CodeT, serverMessage: string | null);
|
|
11
|
-
}
|
|
12
|
-
//#endregion
|
|
13
|
-
//#region src/components/inputs/File/fileUpload.types.d.ts
|
|
14
|
-
interface FileUploadVariant {
|
|
15
|
-
variant?: "vertical" | "horizontal";
|
|
16
|
-
}
|
|
17
|
-
interface SingleFileUploadProps {
|
|
18
|
-
allowsMultiple?: false;
|
|
19
|
-
/** Standard alias for React Aria's `allowsMultiple`. */
|
|
20
|
-
multiple?: false;
|
|
21
|
-
value?: FileUploadState[] | null;
|
|
22
|
-
onChange?: (file: File | null) => void;
|
|
23
|
-
defaultValue?: File | null;
|
|
24
|
-
onInvalidFileType?: (filename: string) => void;
|
|
25
|
-
}
|
|
26
|
-
type MultipleFileUploadProps = ({
|
|
27
|
-
allowsMultiple: true;
|
|
28
|
-
multiple?: true;
|
|
29
|
-
} |
|
|
30
|
-
/** Standard alias for React Aria's `allowsMultiple`. */
|
|
31
|
-
{
|
|
32
|
-
allowsMultiple?: true;
|
|
33
|
-
multiple: true;
|
|
34
|
-
}) & {
|
|
35
|
-
value?: FileUploadState[];
|
|
36
|
-
onChange?: (files: File[]) => void;
|
|
37
|
-
defaultValue?: File[];
|
|
38
|
-
onInvalidFileType?: (filenames: string[]) => void;
|
|
39
|
-
};
|
|
40
|
-
type GroupedFileUploadProps = MultipleFileUploadProps | SingleFileUploadProps;
|
|
41
|
-
interface FileUploadResponse {
|
|
42
|
-
id: string;
|
|
43
|
-
}
|
|
44
|
-
interface FileUploadRequest {
|
|
45
|
-
data: {
|
|
46
|
-
resourceName: string;
|
|
47
|
-
fileName: string;
|
|
48
|
-
fileSize: number;
|
|
49
|
-
method: string;
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
interface DefaultFile {
|
|
53
|
-
name: string;
|
|
54
|
-
size: number;
|
|
55
|
-
type?: string;
|
|
56
|
-
id?: string;
|
|
57
|
-
}
|
|
58
|
-
interface FileUploadCallbacks {
|
|
59
|
-
fileUpload?: (request: FileUploadRequest, file: File, options?: {
|
|
60
|
-
abortController?: AbortController;
|
|
61
|
-
onUploadProgress?: ({ loaded, total }: {
|
|
62
|
-
loaded: number;
|
|
63
|
-
total: number;
|
|
64
|
-
}) => void;
|
|
65
|
-
}) => Promise<FileUploadResponse>;
|
|
66
|
-
fileRemove?: ({ id }: {
|
|
67
|
-
id: string;
|
|
68
|
-
}) => Promise<void>;
|
|
69
|
-
}
|
|
70
|
-
type FileUploadError = ApplicationException<GeneralErrorCodes>;
|
|
71
|
-
interface FileUploadState {
|
|
72
|
-
state: "idle" | "uploading" | "uploaded" | "error";
|
|
73
|
-
file?: File;
|
|
74
|
-
displayName?: string;
|
|
75
|
-
displaySize?: number;
|
|
76
|
-
displayType?: string;
|
|
77
|
-
src?: string;
|
|
78
|
-
id?: string;
|
|
79
|
-
progress?: number;
|
|
80
|
-
error?: FileUploadError;
|
|
81
|
-
abortController?: AbortController;
|
|
82
|
-
}
|
|
83
|
-
interface FileUploadContainerChildrenProps {
|
|
84
|
-
files: FileUploadState[];
|
|
85
|
-
onRemove: (id: string) => void;
|
|
86
|
-
onCancel: (index: number) => void;
|
|
87
|
-
}
|
|
88
|
-
type FileUploadButtonProps = Omit<ButtonProps$1, "children" | "isDisabled" | "onPress">;
|
|
89
|
-
type FileUploadBaseProps = {
|
|
90
|
-
as?: "button" | "link";
|
|
91
|
-
ref?: Ref<HTMLElement>;
|
|
92
|
-
onBlur?: FocusEventHandler<HTMLDivElement>;
|
|
93
|
-
label?: string;
|
|
94
|
-
className?: string;
|
|
95
|
-
emptyText?: string;
|
|
96
|
-
uploadText?: string;
|
|
97
|
-
browseText?: string;
|
|
98
|
-
defaultState?: DefaultFile[];
|
|
99
|
-
clearOnSuccess?: boolean;
|
|
100
|
-
children?: (props: FileUploadContainerChildrenProps) => ReactNode;
|
|
101
|
-
listRenderer?: (props: FileUploadContainerChildrenProps) => ReactNode;
|
|
102
|
-
browseButtonProps?: FileUploadButtonProps;
|
|
103
|
-
cancelButtonProps?: FileUploadButtonProps;
|
|
104
|
-
} & FormFieldProps & FileUploadVariant & Omit<FileTriggerProps, "children" | "onSelect" | "allowsMultiple" | "value"> & Omit<DropZoneProps, "children" | "onDrop" | "value"> & GroupedFileUploadProps & FileUploadCallbacks;
|
|
105
|
-
type FileUploadProps = FileUploadBaseProps & {
|
|
106
|
-
field?: never;
|
|
107
|
-
};
|
|
108
|
-
type FileUploadContainerProps = (Omit<FileUploadBaseProps, "label" | "hideLabel" | "variant" | "as"> & SingleFileUploadProps) | (Omit<FileUploadBaseProps, "label" | "hideLabel" | "variant" | "as"> & MultipleFileUploadProps);
|
|
109
|
-
//#endregion
|
|
110
|
-
export { FileUploadError as a, FileUploadResponse as c, FileUploadContainerProps as i, FileUploadState as l, FileUploadBaseProps as n, FileUploadProps as o, FileUploadButtonProps as r, FileUploadRequest as s, DefaultFile as t };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { n as useFormDisabled, r as useFormState } from "./useForm-Cb7KWLds.js";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
//#region src/components/inputs/shared/form.types.ts
|
|
4
|
-
const getFieldError = (errors) => errors.flatMap((error) => {
|
|
5
|
-
if (typeof error === "string") return [error];
|
|
6
|
-
if (error && typeof error === "object" && "message" in error) return [String(error.message)];
|
|
7
|
-
return [];
|
|
8
|
-
}).at(0);
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region src/components/inputs/shared/form.binding.tsx
|
|
11
|
-
function FieldController({ control: form, name, onValueChange, onBlur, render }) {
|
|
12
|
-
const isFormDisabled = useFormDisabled(form);
|
|
13
|
-
const submissionAttempts = useFormState(form, (state) => state.submissionAttempts);
|
|
14
|
-
return /* @__PURE__ */ jsx(form.Field, {
|
|
15
|
-
name,
|
|
16
|
-
validators: form.getFieldValidators(name),
|
|
17
|
-
children: (field) => {
|
|
18
|
-
const validators = form.getFieldValidators(name);
|
|
19
|
-
const validationError = submissionAttempts > 0 ? getFieldError(field.state.meta.errors) : 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;
|
|
20
|
-
return render({
|
|
21
|
-
field: {
|
|
22
|
-
disabled: isFormDisabled,
|
|
23
|
-
name: field.name,
|
|
24
|
-
onBlur: (event) => {
|
|
25
|
-
field.handleBlur();
|
|
26
|
-
form.notifyBlur(name);
|
|
27
|
-
if (event && typeof event === "object" && ("nativeEvent" in event || "type" in event && event.type === "blur")) onBlur?.();
|
|
28
|
-
},
|
|
29
|
-
onValueCommit: () => {
|
|
30
|
-
field.handleBlur();
|
|
31
|
-
form.notifyBlur(name);
|
|
32
|
-
},
|
|
33
|
-
onChange: (value) => {
|
|
34
|
-
field.handleChange(value);
|
|
35
|
-
onValueChange?.(value);
|
|
36
|
-
},
|
|
37
|
-
ref: () => void 0,
|
|
38
|
-
value: field.state.value
|
|
39
|
-
},
|
|
40
|
-
fieldState: {
|
|
41
|
-
error: validationError ? { message: validationError } : void 0,
|
|
42
|
-
isDirty: field.state.meta.isDirty
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
//#endregion
|
|
49
|
-
export { FieldController as t };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { a as UIForm, n as DeepValue, t as DeepKeys } from "./useForm-I6z23FXf.js";
|
|
2
|
-
//#region src/components/inputs/shared/form.binding.d.ts
|
|
3
|
-
type FieldValues = Record<string, any>;
|
|
4
|
-
//#endregion
|
|
5
|
-
//#region src/components/inputs/shared/form.types.d.ts
|
|
6
|
-
type ControlKeys<TProps, TValueProp extends keyof TProps = "value" extends keyof TProps ? "value" : never> = TValueProp | "value" | "onChange" | "onBlur" | "defaultValue" | "defaultSelected" | "defaultChecked" | "defaultState" | "onValueCommit";
|
|
7
|
-
type ChangeValue<TProps> = TProps extends {
|
|
8
|
-
onChange?: infer TChange;
|
|
9
|
-
} ? NonNullable<TChange> extends ((value: infer TValue, ...args: never[]) => unknown) ? TValue : never : never;
|
|
10
|
-
interface FormControl<TFieldValues extends Record<string, unknown>, TType, TChangeValue = NonNullable<TType>> {
|
|
11
|
-
form: UIForm<TFieldValues, unknown>;
|
|
12
|
-
name: { [K in DeepKeys<TFieldValues>]: DeepValue<TFieldValues, K> extends TType ? K : never; }[DeepKeys<TFieldValues>];
|
|
13
|
-
/** Runs after an interaction updates the raw form value. Resets and setters do not invoke it. */
|
|
14
|
-
onValueChange?: (value: TChangeValue) => void;
|
|
15
|
-
/** Runs after an actual blur marks the field touched and notifies autosave. */
|
|
16
|
-
onBlur?: () => void;
|
|
17
|
-
}
|
|
18
|
-
type FormControlProps<TProps, TFieldValues extends Record<string, unknown>, TValueProp extends keyof TProps = "value" extends keyof TProps ? "value" : never> = TProps extends unknown ? {
|
|
19
|
-
field: FormControl<TFieldValues, TProps[TValueProp] | null, ChangeValue<TProps>>;
|
|
20
|
-
} & Omit<TProps, ControlKeys<TProps, TValueProp> | "field"> & Partial<Record<ControlKeys<TProps, TValueProp>, never>> : never;
|
|
21
|
-
//#endregion
|
|
22
|
-
export { FieldValues as n, FormControlProps as t };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
2
|
-
//#region src/components/inputs/FormField/formFieldHelper.cva.ts
|
|
3
|
-
const formFieldHelperDefinition = UIOverrides.defineConfig({
|
|
4
|
-
base: ["text-sm text-muted-foreground"],
|
|
5
|
-
config: {
|
|
6
|
-
variants: { visible: {
|
|
7
|
-
true: "mt-2",
|
|
8
|
-
false: "sr-only"
|
|
9
|
-
} },
|
|
10
|
-
defaultVariants: { visible: false }
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
//#endregion
|
|
14
|
-
export { formFieldHelperDefinition as t };
|