@persona/design-system 0.1.5-pre.4
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/CHANGELOG.md +461 -0
- package/LICENSE +77 -0
- package/README.md +9 -0
- package/dist/Action-B10lxofb.d.mts +35 -0
- package/dist/Action-uduFOh2m.d.cts +35 -0
- package/dist/Action.d.cts +2 -0
- package/dist/Action.d.mts +2 -0
- package/dist/Attribute.d.cts +107 -0
- package/dist/Attribute.d.mts +107 -0
- package/dist/AttributeGrid.d.cts +40 -0
- package/dist/AttributeGrid.d.mts +41 -0
- package/dist/Badge-BqLnhb4n.mjs +34 -0
- package/dist/Badge-BqLnhb4n.mjs.map +1 -0
- package/dist/Badge-BwAZD9BH.cjs +41 -0
- package/dist/Badge-BwAZD9BH.cjs.map +1 -0
- package/dist/Badge.d.cts +25 -0
- package/dist/Badge.d.mts +25 -0
- package/dist/Banner.d.cts +48 -0
- package/dist/Banner.d.mts +48 -0
- package/dist/Button-C_3p5Xfi.d.cts +101 -0
- package/dist/Button-DqDLGURJ.d.mts +101 -0
- package/dist/Button.d.cts +2 -0
- package/dist/Button.d.mts +2 -0
- package/dist/ButtonGroup.d.cts +20 -0
- package/dist/ButtonGroup.d.mts +20 -0
- package/dist/Calendar.d.cts +11 -0
- package/dist/Calendar.d.mts +12 -0
- package/dist/CalendarBase.d.mts +12 -0
- package/dist/CalendarCell.d.mts +18 -0
- package/dist/CalendarGrid.d.mts +18 -0
- package/dist/Card-CcU9cKCd.d.mts +52 -0
- package/dist/Card-CrQL0hXm.d.cts +52 -0
- package/dist/Card-CyCKL-M5.cjs +248 -0
- package/dist/Card-CyCKL-M5.cjs.map +1 -0
- package/dist/Card-DeJSt5ys.mjs +205 -0
- package/dist/Card-DeJSt5ys.mjs.map +1 -0
- package/dist/Card.d.cts +2 -0
- package/dist/Card.d.mts +2 -0
- package/dist/Card2.d.cts +95 -0
- package/dist/Card2.d.mts +96 -0
- package/dist/Checkbox-BWJNAP27.d.mts +46 -0
- package/dist/Checkbox-BmjK0Wac.d.cts +46 -0
- package/dist/Checkbox-C5bGcb-r.mjs +176 -0
- package/dist/Checkbox-C5bGcb-r.mjs.map +1 -0
- package/dist/Checkbox-D4nv7eNs.cjs +183 -0
- package/dist/Checkbox-D4nv7eNs.cjs.map +1 -0
- package/dist/Checkbox.d.cts +2 -0
- package/dist/Checkbox.d.mts +2 -0
- package/dist/CheckboxGroupField.d.cts +24 -0
- package/dist/CheckboxGroupField.d.mts +25 -0
- package/dist/Combobox-B_-swcix.mjs +1672 -0
- package/dist/Combobox-B_-swcix.mjs.map +1 -0
- package/dist/Combobox-B_oe33Re.cjs +1692 -0
- package/dist/Combobox-B_oe33Re.cjs.map +1 -0
- package/dist/Combobox-DjbJYK_u.d.mts +11 -0
- package/dist/Combobox.d.cts +12 -0
- package/dist/Combobox.d.mts +3 -0
- package/dist/ComboboxBase-D2wypeXf.d.cts +320 -0
- package/dist/ComboboxBase-INya0Csa.d.mts +320 -0
- package/dist/ComboboxBase.d.cts +2 -0
- package/dist/ComboboxBase.d.mts +2 -0
- package/dist/ComboboxMultiSelect-Dn8cRZ6Z.d.cts +47 -0
- package/dist/ComboboxMultiSelect-Dq9DGH8S.d.mts +47 -0
- package/dist/ComboboxMultiSelect.d.cts +2 -0
- package/dist/ComboboxMultiSelect.d.mts +2 -0
- package/dist/ComboboxSingleSelect-D8YM7GKP.d.cts +35 -0
- package/dist/ComboboxSingleSelect-WwBJRb0e.d.mts +35 -0
- package/dist/ComboboxSingleSelect.d.cts +2 -0
- package/dist/ComboboxSingleSelect.d.mts +2 -0
- package/dist/ConfigFormGroup.d.cts +7 -0
- package/dist/ConfigFormGroup.d.mts +7 -0
- package/dist/DateField-Bwe_0qm9.d.cts +24 -0
- package/dist/DateField-Chko9oLb.d.mts +24 -0
- package/dist/DateField.d.cts +2 -0
- package/dist/DateField.d.mts +2 -0
- package/dist/DatePicker.d.cts +19 -0
- package/dist/DatePicker.d.mts +19 -0
- package/dist/DateRangePicker.d.cts +46 -0
- package/dist/DateRangePicker.d.mts +47 -0
- package/dist/DropdownButton-DO4NqvWR.cjs +33 -0
- package/dist/DropdownButton-DO4NqvWR.cjs.map +1 -0
- package/dist/DropdownButton-k9kEcexu.mjs +27 -0
- package/dist/DropdownButton-k9kEcexu.mjs.map +1 -0
- package/dist/DropdownButton.d.cts +26 -0
- package/dist/DropdownButton.d.mts +26 -0
- package/dist/DropdownMenu-BTk--LWo.mjs +60 -0
- package/dist/DropdownMenu-BTk--LWo.mjs.map +1 -0
- package/dist/DropdownMenu-Bm2QqLEq.d.cts +75 -0
- package/dist/DropdownMenu-D2fzpkX2.cjs +74 -0
- package/dist/DropdownMenu-D2fzpkX2.cjs.map +1 -0
- package/dist/DropdownMenu-rWgROxQe.d.mts +75 -0
- package/dist/DropdownMenu.d.cts +2 -0
- package/dist/DropdownMenu.d.mts +2 -0
- package/dist/ErrorProps-DLdVsYlk.d.cts +8 -0
- package/dist/ErrorProps-DYUKygmd.d.mts +8 -0
- package/dist/ErrorProps.d.cts +2 -0
- package/dist/ErrorProps.d.mts +2 -0
- package/dist/FormControl-BXHqI_2D.mjs +168 -0
- package/dist/FormControl-BXHqI_2D.mjs.map +1 -0
- package/dist/FormControl-CM7wTn1P.d.mts +60 -0
- package/dist/FormControl-DiR2e7Od.cjs +212 -0
- package/dist/FormControl-DiR2e7Od.cjs.map +1 -0
- package/dist/FormControl-KkeIYuBa.d.cts +60 -0
- package/dist/FormControl.d.cts +2 -0
- package/dist/FormControl.d.mts +2 -0
- package/dist/FormField-19ownwjH.d.cts +69 -0
- package/dist/FormField-CdMru4s5.d.mts +69 -0
- package/dist/FormField.d.cts +2 -0
- package/dist/FormField.d.mts +2 -0
- package/dist/Header-D8oDtnIL.d.cts +35 -0
- package/dist/Header-t1plnZc0.d.mts +35 -0
- package/dist/Header.d.cts +2 -0
- package/dist/Header.d.mts +2 -0
- package/dist/HelperTooltip-Cd7I0Ucq.d.mts +20 -0
- package/dist/HelperTooltip-oXdyk2At.d.cts +20 -0
- package/dist/HelperTooltip.d.cts +2 -0
- package/dist/HelperTooltip.d.mts +2 -0
- package/dist/IconButton-B1ZL8BqW.cjs +372 -0
- package/dist/IconButton-B1ZL8BqW.cjs.map +1 -0
- package/dist/IconButton-C28qxOdi.mjs +341 -0
- package/dist/IconButton-C28qxOdi.mjs.map +1 -0
- package/dist/IconButton-DsXbc3nQ.d.mts +24 -0
- package/dist/IconButton-ZcyTFjPn.d.cts +24 -0
- package/dist/IconButton.d.cts +2 -0
- package/dist/IconButton.d.mts +2 -0
- package/dist/ImageTile.d.cts +60 -0
- package/dist/ImageTile.d.mts +60 -0
- package/dist/Input-Cv5qieRg.d.mts +65 -0
- package/dist/Input-DHOsR4cl.cjs +210 -0
- package/dist/Input-DHOsR4cl.cjs.map +1 -0
- package/dist/Input-XppkvfUf.d.cts +65 -0
- package/dist/Input-eoFk39bE.mjs +191 -0
- package/dist/Input-eoFk39bE.mjs.map +1 -0
- package/dist/Input.d.cts +2 -0
- package/dist/Input.d.mts +2 -0
- package/dist/InputProps-BHu05fX0.d.mts +16 -0
- package/dist/InputProps-CitGo8QA.d.cts +16 -0
- package/dist/InputProps.d.cts +2 -0
- package/dist/InputProps.d.mts +2 -0
- package/dist/Link.d.cts +43 -0
- package/dist/Link.d.mts +43 -0
- package/dist/ListBox-AyjzT6ra.d.mts +138 -0
- package/dist/ListBox-CE3mfDSB.cjs +383 -0
- package/dist/ListBox-CE3mfDSB.cjs.map +1 -0
- package/dist/ListBox-DbyZFy2W.d.cts +138 -0
- package/dist/ListBox-Z1y0LG1H.mjs +369 -0
- package/dist/ListBox-Z1y0LG1H.mjs.map +1 -0
- package/dist/ListBox.d.cts +2 -0
- package/dist/ListBox.d.mts +2 -0
- package/dist/ListBoxField.d.cts +46 -0
- package/dist/ListBoxField.d.mts +47 -0
- package/dist/LoadingShimmer-CNE6JUVF.mjs +67 -0
- package/dist/LoadingShimmer-CNE6JUVF.mjs.map +1 -0
- package/dist/LoadingShimmer-DMK9RC4N.cjs +92 -0
- package/dist/LoadingShimmer-DMK9RC4N.cjs.map +1 -0
- package/dist/LoadingShimmer.d.cts +38 -0
- package/dist/LoadingShimmer.d.mts +38 -0
- package/dist/MaskedInput.d.cts +10 -0
- package/dist/MaskedInput.d.mts +10 -0
- package/dist/MatchHighlight.d.cts +11 -0
- package/dist/MatchHighlight.d.mts +11 -0
- package/dist/Menu-BpkjNO81.cjs +217 -0
- package/dist/Menu-BpkjNO81.cjs.map +1 -0
- package/dist/Menu-DIFkRQ6x.d.mts +70 -0
- package/dist/Menu-DNRHo2i_.mjs +167 -0
- package/dist/Menu-DNRHo2i_.mjs.map +1 -0
- package/dist/Menu-DPrNMatb.d.cts +70 -0
- package/dist/Menu.d.cts +2 -0
- package/dist/Menu.d.mts +2 -0
- package/dist/Modal.d.cts +141 -0
- package/dist/Modal.d.mts +141 -0
- package/dist/PageHeader.d.cts +26 -0
- package/dist/PageHeader.d.mts +26 -0
- package/dist/PageSelector.d.cts +30 -0
- package/dist/PageSelector.d.mts +30 -0
- package/dist/PageSizeSelector.d.mts +22 -0
- package/dist/Pagination.d.cts +33 -0
- package/dist/Pagination.d.mts +33 -0
- package/dist/Pii.d.cts +16 -0
- package/dist/Pii.d.mts +17 -0
- package/dist/Popover-BSdyxuja.mjs +124 -0
- package/dist/Popover-BSdyxuja.mjs.map +1 -0
- package/dist/Popover-C2dBSwiU.cjs +168 -0
- package/dist/Popover-C2dBSwiU.cjs.map +1 -0
- package/dist/Popover.d.cts +90 -0
- package/dist/Popover.d.mts +90 -0
- package/dist/ProgressBar.d.cts +83 -0
- package/dist/ProgressBar.d.mts +83 -0
- package/dist/ProgressIndicator.d.cts +64 -0
- package/dist/ProgressIndicator.d.mts +64 -0
- package/dist/PseudoClassProps-C5jpj6Rp.d.cts +12 -0
- package/dist/PseudoClassProps-mZgO_iZJ.d.mts +12 -0
- package/dist/PseudoClassProps.d.cts +2 -0
- package/dist/PseudoClassProps.d.mts +2 -0
- package/dist/Radio-mFfT6G3d.cjs +154 -0
- package/dist/Radio-mFfT6G3d.cjs.map +1 -0
- package/dist/Radio-w-L3Otuk.mjs +147 -0
- package/dist/Radio-w-L3Otuk.mjs.map +1 -0
- package/dist/Radio.d.cts +21 -0
- package/dist/Radio.d.mts +21 -0
- package/dist/RadioGroup-B8htTzsS.mjs +50 -0
- package/dist/RadioGroup-B8htTzsS.mjs.map +1 -0
- package/dist/RadioGroup-BjDmweRK.cjs +57 -0
- package/dist/RadioGroup-BjDmweRK.cjs.map +1 -0
- package/dist/RadioGroup-D5ueuC6a.d.cts +21 -0
- package/dist/RadioGroup-Ls0vPsP_.d.mts +21 -0
- package/dist/RadioGroup.d.cts +2 -0
- package/dist/RadioGroup.d.mts +2 -0
- package/dist/RangeCalendar.d.mts +33 -0
- package/dist/RangeCalendarPresets.d.mts +25 -0
- package/dist/RegisterComponent-BDb43KvI.d.mts +34 -0
- package/dist/RegisterComponent-CpXIR-51.d.cts +34 -0
- package/dist/Section.d.mts +67 -0
- package/dist/SectionHeading-DVSXofwK.d.cts +72 -0
- package/dist/SectionHeading-QvAmhVmD.d.mts +72 -0
- package/dist/SectionHeading.d.cts +2 -0
- package/dist/SectionHeading.d.mts +2 -0
- package/dist/SegmentedControl-CvznPXgC.cjs +124 -0
- package/dist/SegmentedControl-CvznPXgC.cjs.map +1 -0
- package/dist/SegmentedControl-DRtXdbLe.d.cts +59 -0
- package/dist/SegmentedControl-Dk5S4Dhz.d.mts +59 -0
- package/dist/SegmentedControl-DnwNjYre.mjs +111 -0
- package/dist/SegmentedControl-DnwNjYre.mjs.map +1 -0
- package/dist/SegmentedControl.d.cts +2 -0
- package/dist/SegmentedControl.d.mts +2 -0
- package/dist/Select-BdPdgtfU.d.cts +77 -0
- package/dist/Select-CVB-Q1g1.cjs +266 -0
- package/dist/Select-CVB-Q1g1.cjs.map +1 -0
- package/dist/Select-Cl3AOq0-.mjs +246 -0
- package/dist/Select-Cl3AOq0-.mjs.map +1 -0
- package/dist/Select-DRnRqMAL.d.mts +77 -0
- package/dist/Select.d.cts +2 -0
- package/dist/Select.d.mts +2 -0
- package/dist/Slider-D3gz7otf.d.mts +56 -0
- package/dist/Slider-uH5MOu2D.d.cts +56 -0
- package/dist/Slider.d.cts +2 -0
- package/dist/Slider.d.mts +2 -0
- package/dist/SliderRHF-Cc-9RuPe.d.cts +984 -0
- package/dist/SliderRHF-DIV-tCEv.d.mts +984 -0
- package/dist/SliderRHF.d.cts +2 -0
- package/dist/SliderRHF.d.mts +2 -0
- package/dist/SliderThumb.d.mts +139 -0
- package/dist/Spacer-DWGkX170.cjs +20 -0
- package/dist/Spacer-DWGkX170.cjs.map +1 -0
- package/dist/Spacer-DxH_sQrV.mjs +13 -0
- package/dist/Spacer-DxH_sQrV.mjs.map +1 -0
- package/dist/Spacer.d.cts +17 -0
- package/dist/Spacer.d.mts +18 -0
- package/dist/Spinner-C05An_fn.mjs +41 -0
- package/dist/Spinner-C05An_fn.mjs.map +1 -0
- package/dist/Spinner-z7DrPE1d.cjs +48 -0
- package/dist/Spinner-z7DrPE1d.cjs.map +1 -0
- package/dist/Spinner.d.cts +26 -0
- package/dist/Spinner.d.mts +26 -0
- package/dist/Stack-BHb3ZB2A.cjs +53 -0
- package/dist/Stack-BHb3ZB2A.cjs.map +1 -0
- package/dist/Stack-BntgUvsW.d.mts +47 -0
- package/dist/Stack-hwgS2FU1.mjs +40 -0
- package/dist/Stack-hwgS2FU1.mjs.map +1 -0
- package/dist/Stack-toDRLy--.d.cts +47 -0
- package/dist/Stack.d.cts +2 -0
- package/dist/Stack.d.mts +2 -0
- package/dist/StatusIndicator.d.cts +54 -0
- package/dist/StatusIndicator.d.mts +54 -0
- package/dist/Sticker-Bd7KkekO.d.mts +68 -0
- package/dist/Sticker-D6bwBTGr.mjs +215 -0
- package/dist/Sticker-D6bwBTGr.mjs.map +1 -0
- package/dist/Sticker-D_dutvp_.cjs +246 -0
- package/dist/Sticker-D_dutvp_.cjs.map +1 -0
- package/dist/Sticker-S6QWjlEJ.d.cts +68 -0
- package/dist/Sticker.d.cts +2 -0
- package/dist/Sticker.d.mts +2 -0
- package/dist/SwatchPicker.d.cts +18 -0
- package/dist/SwatchPicker.d.mts +18 -0
- package/dist/Tab.d.cts +26 -0
- package/dist/Tab.d.mts +26 -0
- package/dist/TabBar-BMv8dAS3.cjs +297 -0
- package/dist/TabBar-BMv8dAS3.cjs.map +1 -0
- package/dist/TabBar-Bf89XksH.mjs +266 -0
- package/dist/TabBar-Bf89XksH.mjs.map +1 -0
- package/dist/TabBar.d.cts +33 -0
- package/dist/TabBar.d.mts +33 -0
- package/dist/TabBarContext.d.mts +10 -0
- package/dist/TabBarIconButton.d.cts +10 -0
- package/dist/TabBarIconButton.d.mts +11 -0
- package/dist/Table-34f5m7w5.d.mts +13 -0
- package/dist/Table-DkAA1lt_.d.cts +13 -0
- package/dist/Table.d.cts +2 -0
- package/dist/Table.d.mts +2 -0
- package/dist/TableBody-5QcVMPP_.d.cts +9 -0
- package/dist/TableBody-Clf34yzJ.d.mts +9 -0
- package/dist/TableBody.d.cts +2 -0
- package/dist/TableBody.d.mts +2 -0
- package/dist/TableCell-DIs9h97h.d.cts +75 -0
- package/dist/TableCell-Dog4Blfq.d.mts +75 -0
- package/dist/TableCell.d.cts +2 -0
- package/dist/TableCell.d.mts +2 -0
- package/dist/TableHead-9LLM1B8I.d.cts +12 -0
- package/dist/TableHead-DJBGHoUD.d.mts +12 -0
- package/dist/TableHead.d.cts +2 -0
- package/dist/TableHead.d.mts +2 -0
- package/dist/TableHeaderCell-25lC9tNk.d.cts +17 -0
- package/dist/TableHeaderCell-DzYZq7SG.d.mts +17 -0
- package/dist/TableHeaderCell.d.cts +2 -0
- package/dist/TableHeaderCell.d.mts +2 -0
- package/dist/TableLayout-BA3jbdbi.d.mts +19 -0
- package/dist/TableLayout-CmDKOu10.d.cts +19 -0
- package/dist/TableLayout.d.cts +2 -0
- package/dist/TableLayout.d.mts +2 -0
- package/dist/TableRow-CBKpDeUV.d.mts +13 -0
- package/dist/TableRow-IPjQnK2q.d.cts +13 -0
- package/dist/TableRow.d.cts +2 -0
- package/dist/TableRow.d.mts +2 -0
- package/dist/TableTH.d.cts +2 -0
- package/dist/TableTH.d.mts +2 -0
- package/dist/Text-CnXedFut.d.mts +42 -0
- package/dist/Text-CrGiWG2E.d.cts +42 -0
- package/dist/Text-DOTYjIt0.mjs +58 -0
- package/dist/Text-DOTYjIt0.mjs.map +1 -0
- package/dist/Text-DVz8erdF.cjs +95 -0
- package/dist/Text-DVz8erdF.cjs.map +1 -0
- package/dist/Text.d.cts +2 -0
- package/dist/Text.d.mts +2 -0
- package/dist/TextArea-1bHvaq9p.d.mts +10 -0
- package/dist/TextArea-B1kitxCl.mjs +33 -0
- package/dist/TextArea-B1kitxCl.mjs.map +1 -0
- package/dist/TextArea-MVgGGM6r.cjs +40 -0
- package/dist/TextArea-MVgGGM6r.cjs.map +1 -0
- package/dist/TextArea-j43fhp2P.d.cts +10 -0
- package/dist/TextArea.d.cts +2 -0
- package/dist/TextArea.d.mts +2 -0
- package/dist/TextUnderlineTooltip-BDMs4iXn.d.cts +18 -0
- package/dist/TextUnderlineTooltip-z4sSGL91.d.mts +18 -0
- package/dist/TextUnderlineTooltip.d.cts +2 -0
- package/dist/TextUnderlineTooltip.d.mts +2 -0
- package/dist/Tile.d.cts +63 -0
- package/dist/Tile.d.mts +63 -0
- package/dist/Toast.d.cts +27 -0
- package/dist/Toast.d.mts +27 -0
- package/dist/Toggle-8GNRxyvE.mjs +167 -0
- package/dist/Toggle-8GNRxyvE.mjs.map +1 -0
- package/dist/Toggle-B3Cdyf7T.d.mts +54 -0
- package/dist/Toggle-BjkbL_uf.d.cts +54 -0
- package/dist/Toggle-CVdg5iQ0.cjs +174 -0
- package/dist/Toggle-CVdg5iQ0.cjs.map +1 -0
- package/dist/Toggle.d.cts +2 -0
- package/dist/Toggle.d.mts +2 -0
- package/dist/Tooltip-0i_15ysU.cjs +152 -0
- package/dist/Tooltip-0i_15ysU.cjs.map +1 -0
- package/dist/Tooltip-C0PS5InA.d.mts +100 -0
- package/dist/Tooltip-CE1oH6Iz.d.cts +100 -0
- package/dist/Tooltip-T7RQpy_a.mjs +120 -0
- package/dist/Tooltip-T7RQpy_a.mjs.map +1 -0
- package/dist/Tooltip.d.cts +2 -0
- package/dist/Tooltip.d.mts +2 -0
- package/dist/TruncatedText-0Tf8CwFX.d.mts +18 -0
- package/dist/TruncatedText-D8f3AiBL.d.cts +18 -0
- package/dist/chunk-Bpcn9VDT.mjs +39 -0
- package/dist/chunk-CoPdw6nB.cjs +64 -0
- package/dist/common.d.mts +7 -0
- package/dist/components/Attribute/index.cjs +210 -0
- package/dist/components/Attribute/index.cjs.map +1 -0
- package/dist/components/Attribute/index.d.cts +3 -0
- package/dist/components/Attribute/index.d.mts +3 -0
- package/dist/components/Attribute/index.mjs +198 -0
- package/dist/components/Attribute/index.mjs.map +1 -0
- package/dist/components/Badge/index.cjs +8 -0
- package/dist/components/Badge/index.d.cts +2 -0
- package/dist/components/Badge/index.d.mts +2 -0
- package/dist/components/Badge/index.mjs +2 -0
- package/dist/components/Banner/index.cjs +100 -0
- package/dist/components/Banner/index.cjs.map +1 -0
- package/dist/components/Banner/index.d.cts +2 -0
- package/dist/components/Banner/index.d.mts +2 -0
- package/dist/components/Banner/index.mjs +93 -0
- package/dist/components/Banner/index.mjs.map +1 -0
- package/dist/components/Button/index.cjs +12 -0
- package/dist/components/Button/index.d.cts +3 -0
- package/dist/components/Button/index.d.mts +3 -0
- package/dist/components/Button/index.mjs +2 -0
- package/dist/components/ButtonGroup/index.cjs +112 -0
- package/dist/components/ButtonGroup/index.cjs.map +1 -0
- package/dist/components/ButtonGroup/index.d.cts +2 -0
- package/dist/components/ButtonGroup/index.d.mts +2 -0
- package/dist/components/ButtonGroup/index.mjs +103 -0
- package/dist/components/ButtonGroup/index.mjs.map +1 -0
- package/dist/components/Card/index.cjs +13 -0
- package/dist/components/Card/index.d.cts +3 -0
- package/dist/components/Card/index.d.mts +3 -0
- package/dist/components/Card/index.mjs +2 -0
- package/dist/components/CardV2/index.cjs +512 -0
- package/dist/components/CardV2/index.cjs.map +1 -0
- package/dist/components/CardV2/index.d.cts +3 -0
- package/dist/components/CardV2/index.d.mts +3 -0
- package/dist/components/CardV2/index.mjs +511 -0
- package/dist/components/CardV2/index.mjs.map +1 -0
- package/dist/components/Checkbox/index.cjs +8 -0
- package/dist/components/Checkbox/index.d.cts +2 -0
- package/dist/components/Checkbox/index.d.mts +2 -0
- package/dist/components/Checkbox/index.mjs +2 -0
- package/dist/components/Combobox/index.cjs +10 -0
- package/dist/components/Combobox/index.d.cts +3 -0
- package/dist/components/Combobox/index.d.mts +3 -0
- package/dist/components/Combobox/index.mjs +2 -0
- package/dist/components/ConfigFormGroup/index.cjs +37 -0
- package/dist/components/ConfigFormGroup/index.cjs.map +1 -0
- package/dist/components/ConfigFormGroup/index.d.cts +3 -0
- package/dist/components/ConfigFormGroup/index.d.mts +3 -0
- package/dist/components/ConfigFormGroup/index.mjs +28 -0
- package/dist/components/ConfigFormGroup/index.mjs.map +1 -0
- package/dist/components/DatePicker/index.cjs +11503 -0
- package/dist/components/DatePicker/index.cjs.map +1 -0
- package/dist/components/DatePicker/index.d.cts +5 -0
- package/dist/components/DatePicker/index.d.mts +5 -0
- package/dist/components/DatePicker/index.mjs +11491 -0
- package/dist/components/DatePicker/index.mjs.map +1 -0
- package/dist/components/DropdownButton/index.cjs +8 -0
- package/dist/components/DropdownButton/index.d.cts +2 -0
- package/dist/components/DropdownButton/index.d.mts +2 -0
- package/dist/components/DropdownButton/index.mjs +2 -0
- package/dist/components/DropdownMenu/index.cjs +8 -0
- package/dist/components/DropdownMenu/index.d.cts +2 -0
- package/dist/components/DropdownMenu/index.d.mts +2 -0
- package/dist/components/DropdownMenu/index.mjs +2 -0
- package/dist/components/FormControl/index.cjs +16 -0
- package/dist/components/FormControl/index.d.cts +3 -0
- package/dist/components/FormControl/index.d.mts +3 -0
- package/dist/components/FormControl/index.mjs +3 -0
- package/dist/components/FormField/index.cjs +385 -0
- package/dist/components/FormField/index.cjs.map +1 -0
- package/dist/components/FormField/index.d.cts +5 -0
- package/dist/components/FormField/index.d.mts +5 -0
- package/dist/components/FormField/index.mjs +367 -0
- package/dist/components/FormField/index.mjs.map +1 -0
- package/dist/components/ImageTile/index.cjs +228 -0
- package/dist/components/ImageTile/index.cjs.map +1 -0
- package/dist/components/ImageTile/index.d.cts +2 -0
- package/dist/components/ImageTile/index.d.mts +2 -0
- package/dist/components/ImageTile/index.mjs +221 -0
- package/dist/components/ImageTile/index.mjs.map +1 -0
- package/dist/components/Input/index.cjs +15 -0
- package/dist/components/Input/index.cjs.map +1 -0
- package/dist/components/Input/index.d.cts +2 -0
- package/dist/components/Input/index.d.mts +2 -0
- package/dist/components/Input/index.mjs +7 -0
- package/dist/components/Input/index.mjs.map +1 -0
- package/dist/components/Link/index.cjs +87 -0
- package/dist/components/Link/index.cjs.map +1 -0
- package/dist/components/Link/index.d.cts +2 -0
- package/dist/components/Link/index.d.mts +2 -0
- package/dist/components/Link/index.mjs +80 -0
- package/dist/components/Link/index.mjs.map +1 -0
- package/dist/components/ListBox/index.cjs +9 -0
- package/dist/components/ListBox/index.d.cts +2 -0
- package/dist/components/ListBox/index.d.mts +2 -0
- package/dist/components/ListBox/index.mjs +2 -0
- package/dist/components/LoadingShimmer/index.cjs +7 -0
- package/dist/components/LoadingShimmer/index.d.cts +2 -0
- package/dist/components/LoadingShimmer/index.d.mts +2 -0
- package/dist/components/LoadingShimmer/index.mjs +2 -0
- package/dist/components/MaskedInput/index.cjs +29 -0
- package/dist/components/MaskedInput/index.cjs.map +1 -0
- package/dist/components/MaskedInput/index.d.cts +2 -0
- package/dist/components/MaskedInput/index.d.mts +2 -0
- package/dist/components/MaskedInput/index.mjs +24 -0
- package/dist/components/MaskedInput/index.mjs.map +1 -0
- package/dist/components/MatchHighlight/index.cjs +31 -0
- package/dist/components/MatchHighlight/index.cjs.map +1 -0
- package/dist/components/MatchHighlight/index.d.cts +2 -0
- package/dist/components/MatchHighlight/index.d.mts +2 -0
- package/dist/components/MatchHighlight/index.mjs +24 -0
- package/dist/components/MatchHighlight/index.mjs.map +1 -0
- package/dist/components/Menu/index.cjs +15 -0
- package/dist/components/Menu/index.d.cts +2 -0
- package/dist/components/Menu/index.d.mts +2 -0
- package/dist/components/Menu/index.mjs +2 -0
- package/dist/components/Modal/index.cjs +285 -0
- package/dist/components/Modal/index.cjs.map +1 -0
- package/dist/components/Modal/index.d.cts +2 -0
- package/dist/components/Modal/index.d.mts +2 -0
- package/dist/components/Modal/index.mjs +276 -0
- package/dist/components/Modal/index.mjs.map +1 -0
- package/dist/components/PageHeader/index.cjs +71 -0
- package/dist/components/PageHeader/index.cjs.map +1 -0
- package/dist/components/PageHeader/index.d.cts +2 -0
- package/dist/components/PageHeader/index.d.mts +2 -0
- package/dist/components/PageHeader/index.mjs +64 -0
- package/dist/components/PageHeader/index.mjs.map +1 -0
- package/dist/components/Pagination/index.cjs +211 -0
- package/dist/components/Pagination/index.cjs.map +1 -0
- package/dist/components/Pagination/index.d.cts +3 -0
- package/dist/components/Pagination/index.d.mts +3 -0
- package/dist/components/Pagination/index.mjs +203 -0
- package/dist/components/Pagination/index.mjs.map +1 -0
- package/dist/components/Pii/index.cjs +20 -0
- package/dist/components/Pii/index.cjs.map +1 -0
- package/dist/components/Pii/index.d.cts +2 -0
- package/dist/components/Pii/index.d.mts +2 -0
- package/dist/components/Pii/index.mjs +19 -0
- package/dist/components/Pii/index.mjs.map +1 -0
- package/dist/components/Popover/index.cjs +13 -0
- package/dist/components/Popover/index.d.cts +2 -0
- package/dist/components/Popover/index.d.mts +2 -0
- package/dist/components/Popover/index.mjs +2 -0
- package/dist/components/ProgressBar/index.cjs +177 -0
- package/dist/components/ProgressBar/index.cjs.map +1 -0
- package/dist/components/ProgressBar/index.d.cts +2 -0
- package/dist/components/ProgressBar/index.d.mts +2 -0
- package/dist/components/ProgressBar/index.mjs +168 -0
- package/dist/components/ProgressBar/index.mjs.map +1 -0
- package/dist/components/ProgressIndicator/index.cjs +185 -0
- package/dist/components/ProgressIndicator/index.cjs.map +1 -0
- package/dist/components/ProgressIndicator/index.d.cts +2 -0
- package/dist/components/ProgressIndicator/index.d.mts +2 -0
- package/dist/components/ProgressIndicator/index.mjs +178 -0
- package/dist/components/ProgressIndicator/index.mjs.map +1 -0
- package/dist/components/Radio/index.cjs +8 -0
- package/dist/components/Radio/index.d.cts +2 -0
- package/dist/components/Radio/index.d.mts +2 -0
- package/dist/components/Radio/index.mjs +2 -0
- package/dist/components/RadioGroup/index.cjs +8 -0
- package/dist/components/RadioGroup/index.d.cts +2 -0
- package/dist/components/RadioGroup/index.d.mts +2 -0
- package/dist/components/RadioGroup/index.mjs +2 -0
- package/dist/components/SegmentedControl/index.cjs +9 -0
- package/dist/components/SegmentedControl/index.d.cts +2 -0
- package/dist/components/SegmentedControl/index.d.mts +2 -0
- package/dist/components/SegmentedControl/index.mjs +2 -0
- package/dist/components/Select/index.cjs +10 -0
- package/dist/components/Select/index.d.cts +2 -0
- package/dist/components/Select/index.d.mts +2 -0
- package/dist/components/Select/index.mjs +2 -0
- package/dist/components/Slider/index.cjs +1507 -0
- package/dist/components/Slider/index.cjs.map +1 -0
- package/dist/components/Slider/index.d.cts +3 -0
- package/dist/components/Slider/index.d.mts +3 -0
- package/dist/components/Slider/index.mjs +1497 -0
- package/dist/components/Slider/index.mjs.map +1 -0
- package/dist/components/Spacer/index.cjs +3 -0
- package/dist/components/Spacer/index.d.cts +2 -0
- package/dist/components/Spacer/index.d.mts +2 -0
- package/dist/components/Spacer/index.mjs +2 -0
- package/dist/components/Spinner/index.cjs +8 -0
- package/dist/components/Spinner/index.d.cts +2 -0
- package/dist/components/Spinner/index.d.mts +2 -0
- package/dist/components/Spinner/index.mjs +2 -0
- package/dist/components/Stack/index.cjs +9 -0
- package/dist/components/Stack/index.d.cts +2 -0
- package/dist/components/Stack/index.d.mts +2 -0
- package/dist/components/Stack/index.mjs +2 -0
- package/dist/components/StatusIndicator/index.cjs +174 -0
- package/dist/components/StatusIndicator/index.cjs.map +1 -0
- package/dist/components/StatusIndicator/index.d.cts +2 -0
- package/dist/components/StatusIndicator/index.d.mts +2 -0
- package/dist/components/StatusIndicator/index.mjs +167 -0
- package/dist/components/StatusIndicator/index.mjs.map +1 -0
- package/dist/components/Sticker/index.cjs +12 -0
- package/dist/components/Sticker/index.d.cts +2 -0
- package/dist/components/Sticker/index.d.mts +2 -0
- package/dist/components/Sticker/index.mjs +2 -0
- package/dist/components/SwatchPicker/index.cjs +65 -0
- package/dist/components/SwatchPicker/index.cjs.map +1 -0
- package/dist/components/SwatchPicker/index.d.cts +2 -0
- package/dist/components/SwatchPicker/index.d.mts +2 -0
- package/dist/components/SwatchPicker/index.mjs +58 -0
- package/dist/components/SwatchPicker/index.mjs.map +1 -0
- package/dist/components/TabBar/index.cjs +12 -0
- package/dist/components/TabBar/index.d.cts +4 -0
- package/dist/components/TabBar/index.d.mts +4 -0
- package/dist/components/TabBar/index.mjs +2 -0
- package/dist/components/Table/index.cjs +400 -0
- package/dist/components/Table/index.cjs.map +1 -0
- package/dist/components/Table/index.d.cts +8 -0
- package/dist/components/Table/index.d.mts +8 -0
- package/dist/components/Table/index.mjs +379 -0
- package/dist/components/Table/index.mjs.map +1 -0
- package/dist/components/Text/index.cjs +9 -0
- package/dist/components/Text/index.d.cts +2 -0
- package/dist/components/Text/index.d.mts +2 -0
- package/dist/components/Text/index.mjs +2 -0
- package/dist/components/TextArea/index.cjs +8 -0
- package/dist/components/TextArea/index.d.cts +2 -0
- package/dist/components/TextArea/index.d.mts +2 -0
- package/dist/components/TextArea/index.mjs +2 -0
- package/dist/components/Tile/index.cjs +103 -0
- package/dist/components/Tile/index.cjs.map +1 -0
- package/dist/components/Tile/index.d.cts +2 -0
- package/dist/components/Tile/index.d.mts +2 -0
- package/dist/components/Tile/index.mjs +96 -0
- package/dist/components/Tile/index.mjs.map +1 -0
- package/dist/components/Toast/index.cjs +141 -0
- package/dist/components/Toast/index.cjs.map +1 -0
- package/dist/components/Toast/index.d.cts +2 -0
- package/dist/components/Toast/index.d.mts +2 -0
- package/dist/components/Toast/index.mjs +136 -0
- package/dist/components/Toast/index.mjs.map +1 -0
- package/dist/components/Toggle/index.cjs +8 -0
- package/dist/components/Toggle/index.d.cts +2 -0
- package/dist/components/Toggle/index.d.mts +2 -0
- package/dist/components/Toggle/index.mjs +2 -0
- package/dist/components/Tooltip/index.cjs +12 -0
- package/dist/components/Tooltip/index.d.cts +4 -0
- package/dist/components/Tooltip/index.d.mts +4 -0
- package/dist/components/Tooltip/index.mjs +2 -0
- package/dist/constants.d.mts +5 -0
- package/dist/ids-Cr-NW2RJ.d.mts +11 -0
- package/dist/ids-e4V5Y3Ub.d.cts +11 -0
- package/dist/index-1-AkepUA.d.mts +1 -0
- package/dist/index-7in8TPrM.d.mts +1 -0
- package/dist/index-8R9vlM2B.d.mts +83 -0
- package/dist/index-B2KLYYkM.d.cts +1 -0
- package/dist/index-BBDa5smF.d.cts +1 -0
- package/dist/index-BJ8-FA6N.d.cts +1 -0
- package/dist/index-BM1DqNZf.d.cts +628 -0
- package/dist/index-BPSCxsMC.d.cts +1 -0
- package/dist/index-BPiqSRRl.d.mts +1 -0
- package/dist/index-BUYyA1Xh.d.cts +1 -0
- package/dist/index-CCt0lwyI.d.mts +1 -0
- package/dist/index-CEDY7cmG.d.cts +1 -0
- package/dist/index-CEqOS-7M.d.mts +1 -0
- package/dist/index-CExuKKOI.d.cts +218 -0
- package/dist/index-CIABef8t.d.mts +1 -0
- package/dist/index-CIBxlpQo.d.mts +1 -0
- package/dist/index-CKu60b9I.d.mts +154 -0
- package/dist/index-CP2eJYlK.d.mts +1 -0
- package/dist/index-CRo77wc3.d.mts +1 -0
- package/dist/index-CiBIKhMu.d.cts +1 -0
- package/dist/index-Cii4Qb1X.d.mts +1 -0
- package/dist/index-CspKFJM1.d.cts +1 -0
- package/dist/index-CsuikFeJ.d.mts +1 -0
- package/dist/index-Cz6N-KeS.d.cts +1 -0
- package/dist/index-D-BciAtf.d.cts +1 -0
- package/dist/index-D26lpgQi.d.cts +1 -0
- package/dist/index-D2HUTZ-d.d.cts +1 -0
- package/dist/index-D4DUvwPf.d.mts +1 -0
- package/dist/index-D4ELpJXS.d.cts +1 -0
- package/dist/index-D6CnpA_r.d.cts +1 -0
- package/dist/index-DLoAMD9J.d.cts +1 -0
- package/dist/index-DQvVmqvS.d.mts +628 -0
- package/dist/index-DWfPppPU.d.mts +1 -0
- package/dist/index-DcU87nuJ2.d.cts +1 -0
- package/dist/index-DkrC-i1D.d.mts +1 -0
- package/dist/index-DvuJXuAN.d.mts +1 -0
- package/dist/index-OEBbnNdr.d.mts +1 -0
- package/dist/index-QbUkWSLh.d.mts +1 -0
- package/dist/index-VmEFGBxN.d.cts +1 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +2 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.mjs +0 -0
- package/dist/index2.d.cts +1 -0
- package/dist/index2.d.mts +1 -0
- package/dist/input-BCmP106-.d.mts +17 -0
- package/dist/input-Bm_anD8X.d.cts +17 -0
- package/dist/inputFields.d.cts +83 -0
- package/dist/inputFields.d.mts +83 -0
- package/dist/intersperse.d.mts +18 -0
- package/dist/lib/ConfigContext.cjs +15 -0
- package/dist/lib/ConfigContext.cjs.map +1 -0
- package/dist/lib/ConfigContext.d.cts +16 -0
- package/dist/lib/ConfigContext.d.mts +17 -0
- package/dist/lib/ConfigContext.mjs +15 -0
- package/dist/lib/ConfigContext.mjs.map +1 -0
- package/dist/lib/HeadlessAriaButton.cjs +33 -0
- package/dist/lib/HeadlessAriaButton.cjs.map +1 -0
- package/dist/lib/HeadlessAriaButton.d.cts +12 -0
- package/dist/lib/HeadlessAriaButton.d.mts +12 -0
- package/dist/lib/HeadlessAriaButton.mjs +30 -0
- package/dist/lib/HeadlessAriaButton.mjs.map +1 -0
- package/dist/lib/PDSProvider.cjs +20 -0
- package/dist/lib/PDSProvider.cjs.map +1 -0
- package/dist/lib/PDSProvider.d.cts +12 -0
- package/dist/lib/PDSProvider.d.mts +13 -0
- package/dist/lib/PDSProvider.mjs +19 -0
- package/dist/lib/PDSProvider.mjs.map +1 -0
- package/dist/lib/TruncatedText.cjs +39 -0
- package/dist/lib/TruncatedText.cjs.map +1 -0
- package/dist/lib/TruncatedText.d.cts +2 -0
- package/dist/lib/TruncatedText.d.mts +2 -0
- package/dist/lib/TruncatedText.mjs +31 -0
- package/dist/lib/TruncatedText.mjs.map +1 -0
- package/dist/lib/TruncatedTextWithTooltip.cjs +34 -0
- package/dist/lib/TruncatedTextWithTooltip.cjs.map +1 -0
- package/dist/lib/TruncatedTextWithTooltip.d.cts +15 -0
- package/dist/lib/TruncatedTextWithTooltip.d.mts +15 -0
- package/dist/lib/TruncatedTextWithTooltip.mjs +28 -0
- package/dist/lib/TruncatedTextWithTooltip.mjs.map +1 -0
- package/dist/lib/comboboxHelper.cjs +46 -0
- package/dist/lib/comboboxHelper.cjs.map +1 -0
- package/dist/lib/comboboxHelper.d.cts +24 -0
- package/dist/lib/comboboxHelper.d.mts +24 -0
- package/dist/lib/comboboxHelper.mjs +42 -0
- package/dist/lib/comboboxHelper.mjs.map +1 -0
- package/dist/lib/datePickerHelper.cjs +3568 -0
- package/dist/lib/datePickerHelper.cjs.map +1 -0
- package/dist/lib/datePickerHelper.d.cts +19 -0
- package/dist/lib/datePickerHelper.d.mts +19 -0
- package/dist/lib/datePickerHelper.mjs +3566 -0
- package/dist/lib/datePickerHelper.mjs.map +1 -0
- package/dist/lib/pseudoClass.cjs +32 -0
- package/dist/lib/pseudoClass.cjs.map +1 -0
- package/dist/lib/pseudoClass.d.cts +45 -0
- package/dist/lib/pseudoClass.d.mts +45 -0
- package/dist/lib/pseudoClass.mjs +18 -0
- package/dist/lib/pseudoClass.mjs.map +1 -0
- package/dist/lib/register/RegisterComponent.cjs +91 -0
- package/dist/lib/register/RegisterComponent.cjs.map +1 -0
- package/dist/lib/register/RegisterComponent.d.cts +2 -0
- package/dist/lib/register/RegisterComponent.d.mts +2 -0
- package/dist/lib/register/RegisterComponent.mjs +88 -0
- package/dist/lib/register/RegisterComponent.mjs.map +1 -0
- package/dist/lib/register/ids.cjs +31 -0
- package/dist/lib/register/ids.cjs.map +1 -0
- package/dist/lib/register/ids.d.cts +2 -0
- package/dist/lib/register/ids.d.mts +2 -0
- package/dist/lib/register/ids.mjs +28 -0
- package/dist/lib/register/ids.mjs.map +1 -0
- package/dist/lib/register/index.cjs +8 -0
- package/dist/lib/register/index.d.cts +4 -0
- package/dist/lib/register/index.d.mts +4 -0
- package/dist/lib/register/index.mjs +3 -0
- package/dist/lib/register/types.cjs +1 -0
- package/dist/lib/register/types.d.cts +2 -0
- package/dist/lib/register/types.d.mts +2 -0
- package/dist/lib/register/types.mjs +0 -0
- package/dist/lib/reorderItems.cjs +39 -0
- package/dist/lib/reorderItems.cjs.map +1 -0
- package/dist/lib/reorderItems.d.cts +26 -0
- package/dist/lib/reorderItems.d.mts +26 -0
- package/dist/lib/reorderItems.mjs +36 -0
- package/dist/lib/reorderItems.mjs.map +1 -0
- package/dist/lib/selectHelper.cjs +22 -0
- package/dist/lib/selectHelper.cjs.map +1 -0
- package/dist/lib/selectHelper.d.cts +14 -0
- package/dist/lib/selectHelper.d.mts +14 -0
- package/dist/lib/selectHelper.mjs +20 -0
- package/dist/lib/selectHelper.mjs.map +1 -0
- package/dist/lib/useControlled.cjs +20 -0
- package/dist/lib/useControlled.cjs.map +1 -0
- package/dist/lib/useControlled.d.cts +16 -0
- package/dist/lib/useControlled.d.mts +17 -0
- package/dist/lib/useControlled.mjs +19 -0
- package/dist/lib/useControlled.mjs.map +1 -0
- package/dist/lib/useIsOverflow.cjs +58 -0
- package/dist/lib/useIsOverflow.cjs.map +1 -0
- package/dist/lib/useIsOverflow.d.cts +11 -0
- package/dist/lib/useIsOverflow.d.mts +11 -0
- package/dist/lib/useIsOverflow.mjs +56 -0
- package/dist/lib/useIsOverflow.mjs.map +1 -0
- package/dist/lib/useOutsideClick.cjs +19 -0
- package/dist/lib/useOutsideClick.cjs.map +1 -0
- package/dist/lib/useOutsideClick.d.cts +13 -0
- package/dist/lib/useOutsideClick.d.mts +13 -0
- package/dist/lib/useOutsideClick.mjs +17 -0
- package/dist/lib/useOutsideClick.mjs.map +1 -0
- package/dist/lib/zindex.cjs +27 -0
- package/dist/lib/zindex.cjs.map +1 -0
- package/dist/lib/zindex.d.cts +25 -0
- package/dist/lib/zindex.d.mts +25 -0
- package/dist/lib/zindex.mjs +25 -0
- package/dist/lib/zindex.mjs.map +1 -0
- package/dist/mergeRefs-BZinWopc.cjs +31 -0
- package/dist/mergeRefs-BZinWopc.cjs.map +1 -0
- package/dist/mergeRefs-BgcbK0Qy.mjs +26 -0
- package/dist/mergeRefs-BgcbK0Qy.mjs.map +1 -0
- package/dist/mixins/focus.cjs +39 -0
- package/dist/mixins/focus.cjs.map +1 -0
- package/dist/mixins/focus.d.cts +11 -0
- package/dist/mixins/focus.d.mts +11 -0
- package/dist/mixins/focus.mjs +34 -0
- package/dist/mixins/focus.mjs.map +1 -0
- package/dist/mixins/hoverable.cjs +38 -0
- package/dist/mixins/hoverable.cjs.map +1 -0
- package/dist/mixins/hoverable.d.cts +16 -0
- package/dist/mixins/hoverable.d.mts +16 -0
- package/dist/mixins/hoverable.mjs +32 -0
- package/dist/mixins/hoverable.mjs.map +1 -0
- package/dist/mixins/input.cjs +95 -0
- package/dist/mixins/input.cjs.map +1 -0
- package/dist/mixins/input.d.cts +2 -0
- package/dist/mixins/input.d.mts +2 -0
- package/dist/mixins/input.mjs +94 -0
- package/dist/mixins/input.mjs.map +1 -0
- package/dist/mixins/menuItem.cjs +110 -0
- package/dist/mixins/menuItem.cjs.map +1 -0
- package/dist/mixins/menuItem.d.cts +30 -0
- package/dist/mixins/menuItem.d.mts +31 -0
- package/dist/mixins/menuItem.mjs +109 -0
- package/dist/mixins/menuItem.mjs.map +1 -0
- package/dist/mixins/print/index.cjs +25 -0
- package/dist/mixins/print/index.cjs.map +1 -0
- package/dist/mixins/print/index.d.cts +11 -0
- package/dist/mixins/print/index.d.mts +11 -0
- package/dist/mixins/print/index.mjs +23 -0
- package/dist/mixins/print/index.mjs.map +1 -0
- package/dist/mixins/text.cjs +93 -0
- package/dist/mixins/text.cjs.map +1 -0
- package/dist/mixins/text.d.cts +2 -0
- package/dist/mixins/text.d.mts +2 -0
- package/dist/mixins/text.mjs +88 -0
- package/dist/mixins/text.mjs.map +1 -0
- package/dist/motion-DoikasqZ.mjs +7483 -0
- package/dist/motion-DoikasqZ.mjs.map +1 -0
- package/dist/motion-QW6imSxE.cjs +7488 -0
- package/dist/motion-QW6imSxE.cjs.map +1 -0
- package/dist/react.esm-C-es35jP.cjs +11441 -0
- package/dist/react.esm-C-es35jP.cjs.map +1 -0
- package/dist/react.esm-Dv1lMDRs.mjs +11397 -0
- package/dist/react.esm-Dv1lMDRs.mjs.map +1 -0
- package/dist/text-BrSUs-88.d.mts +14 -0
- package/dist/text-PmH5oc61.d.cts +14 -0
- package/dist/theme-Cadb1xzQ.d.cts +154 -0
- package/dist/theme-DGAqgnUa.d.mts +154 -0
- package/dist/theme.cjs +353 -0
- package/dist/theme.cjs.map +1 -0
- package/dist/theme.d.cts +2 -0
- package/dist/theme.d.mts +2 -0
- package/dist/theme.mjs +346 -0
- package/dist/theme.mjs.map +1 -0
- package/dist/types-DzHQ5MGm.d.mts +69 -0
- package/dist/types-N-cXznfM.d.cts +69 -0
- package/dist/useFormField-Ba0CQ43u.d.cts +30 -0
- package/dist/useFormField-BmtItl8y.d.mts +30 -0
- package/dist/useFormField-DN3gpEEV.cjs +37 -0
- package/dist/useFormField-DN3gpEEV.cjs.map +1 -0
- package/dist/useFormField-eftOPiXj.mjs +25 -0
- package/dist/useFormField-eftOPiXj.mjs.map +1 -0
- package/dist/useFormField.d.cts +2 -0
- package/dist/useFormField.d.mts +2 -0
- package/dist/useFormGroup-BMukAMAd.mjs +14 -0
- package/dist/useFormGroup-BMukAMAd.mjs.map +1 -0
- package/dist/useFormGroup-B_mFNoN9.cjs +26 -0
- package/dist/useFormGroup-B_mFNoN9.cjs.map +1 -0
- package/dist/useFormGroup.d.cts +18 -0
- package/dist/useFormGroup.d.mts +18 -0
- package/dist/useLabel-BcbghpIU.cjs +1465 -0
- package/dist/useLabel-BcbghpIU.cjs.map +1 -0
- package/dist/useLabel-DHGzNIKw.mjs +1212 -0
- package/dist/useLabel-DHGzNIKw.mjs.map +1 -0
- package/dist/useModalInsetRight.d.mts +21 -0
- package/dist/useToggle-0zLL1E7s.mjs +21 -0
- package/dist/useToggle-0zLL1E7s.mjs.map +1 -0
- package/dist/useToggle-DNrEsTpr.cjs +27 -0
- package/dist/useToggle-DNrEsTpr.cjs.map +1 -0
- package/dist/useToggle.d.mts +17 -0
- package/dist/useTruncation.d.mts +12 -0
- package/dist/utilities-C8Jf-xpi.d.cts +9 -0
- package/dist/utilities-w1K54IAy.d.mts +9 -0
- package/dist/utilities.d.cts +2 -0
- package/dist/utilities.d.mts +2 -0
- package/dist/utils/storybook.cjs +13 -0
- package/dist/utils/storybook.cjs.map +1 -0
- package/dist/utils/storybook.mjs +11 -0
- package/dist/utils/storybook.mjs.map +1 -0
- package/dist/utils/testing.cjs +50 -0
- package/dist/utils/testing.cjs.map +1 -0
- package/dist/utils/testing.d.cts +370 -0
- package/dist/utils/testing.d.mts +370 -0
- package/dist/utils/testing.mjs +45 -0
- package/dist/utils/testing.mjs.map +1 -0
- package/dist/variables/color.cjs +23 -0
- package/dist/variables/color.cjs.map +1 -0
- package/dist/variables/color.d.cts +19 -0
- package/dist/variables/color.d.mts +19 -0
- package/dist/variables/color.mjs +21 -0
- package/dist/variables/color.mjs.map +1 -0
- package/dist/variables/effect.cjs +27 -0
- package/dist/variables/effect.cjs.map +1 -0
- package/dist/variables/effect.d.cts +21 -0
- package/dist/variables/effect.d.mts +21 -0
- package/dist/variables/effect.mjs +24 -0
- package/dist/variables/effect.mjs.map +1 -0
- package/dist/variables/keyframes.cjs +22 -0
- package/dist/variables/keyframes.cjs.map +1 -0
- package/dist/variables/keyframes.d.cts +8 -0
- package/dist/variables/keyframes.d.mts +8 -0
- package/dist/variables/keyframes.mjs +19 -0
- package/dist/variables/keyframes.mjs.map +1 -0
- package/dist/variables/spacing.cjs +11 -0
- package/dist/variables/spacing.cjs.map +1 -0
- package/dist/variables/spacing.d.cts +8 -0
- package/dist/variables/spacing.d.mts +8 -0
- package/dist/variables/spacing.mjs +9 -0
- package/dist/variables/spacing.mjs.map +1 -0
- package/dist/variables/text.cjs +14 -0
- package/dist/variables/text.cjs.map +1 -0
- package/dist/variables/text.d.cts +10 -0
- package/dist/variables/text.d.mts +10 -0
- package/dist/variables/text.mjs +12 -0
- package/dist/variables/text.mjs.map +1 -0
- package/dist/variables/transitions.cjs +25 -0
- package/dist/variables/transitions.cjs.map +1 -0
- package/dist/variables/transitions.d.cts +19 -0
- package/dist/variables/transitions.d.mts +19 -0
- package/dist/variables/transitions.mjs +22 -0
- package/dist/variables/transitions.mjs.map +1 -0
- package/package.json +781 -0
|
@@ -0,0 +1,984 @@
|
|
|
1
|
+
import { t as Slider } from "./Slider-D3gz7otf.mjs";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import React, { ComponentPropsWithoutRef, ReactNode } from "react";
|
|
4
|
+
|
|
5
|
+
//#region ../../node_modules/react-hook-form/dist/constants.d.ts
|
|
6
|
+
declare const VALIDATION_MODE: {
|
|
7
|
+
readonly onBlur: "onBlur";
|
|
8
|
+
readonly onChange: "onChange";
|
|
9
|
+
readonly onSubmit: "onSubmit";
|
|
10
|
+
readonly onTouched: "onTouched";
|
|
11
|
+
readonly all: "all";
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region ../../node_modules/react-hook-form/dist/utils/createSubject.d.ts
|
|
15
|
+
type Observer<T> = {
|
|
16
|
+
next: (value: T) => void;
|
|
17
|
+
};
|
|
18
|
+
type Subscription = {
|
|
19
|
+
unsubscribe: Noop;
|
|
20
|
+
};
|
|
21
|
+
type Subject<T> = {
|
|
22
|
+
readonly observers: Observer<T>[];
|
|
23
|
+
subscribe: (value: Observer<T>) => Subscription;
|
|
24
|
+
unsubscribe: Noop;
|
|
25
|
+
} & Observer<T>;
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region ../../node_modules/react-hook-form/dist/types/events.d.ts
|
|
28
|
+
type EventType = 'focus' | 'blur' | 'change' | 'changeText' | 'valueChange' | 'contentSizeChange' | 'endEditing' | 'keyPress' | 'submitEditing' | 'layout' | 'selectionChange' | 'longPress' | 'press' | 'pressIn' | 'pressOut' | 'momentumScrollBegin' | 'momentumScrollEnd' | 'scroll' | 'scrollBeginDrag' | 'scrollEndDrag' | 'load' | 'error' | 'progress' | 'custom';
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region ../../node_modules/react-hook-form/dist/types/path/common.d.ts
|
|
31
|
+
/**
|
|
32
|
+
* Type to query whether an array type T is a tuple type.
|
|
33
|
+
* @typeParam T - type which may be an array or tuple
|
|
34
|
+
* @example
|
|
35
|
+
* ```
|
|
36
|
+
* IsTuple<[number]> = true
|
|
37
|
+
* IsTuple<number[]> = false
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
type IsTuple<T extends ReadonlyArray<any>> = number extends T['length'] ? false : true;
|
|
41
|
+
/**
|
|
42
|
+
* Type which can be used to index an array or tuple type.
|
|
43
|
+
*/
|
|
44
|
+
type ArrayKey = number;
|
|
45
|
+
/**
|
|
46
|
+
* Type which given a tuple type returns its own keys, i.e. only its indices.
|
|
47
|
+
* @typeParam T - tuple type
|
|
48
|
+
* @example
|
|
49
|
+
* ```
|
|
50
|
+
* TupleKeys<[number, string]> = '0' | '1'
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
type TupleKeys<T extends ReadonlyArray<any>> = Exclude<keyof T, keyof any[]>;
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region ../../node_modules/react-hook-form/dist/types/path/eager.d.ts
|
|
56
|
+
/**
|
|
57
|
+
* Helper function to break apart T1 and check if any are equal to T2
|
|
58
|
+
*
|
|
59
|
+
* See {@link IsEqual}
|
|
60
|
+
*/
|
|
61
|
+
type AnyIsEqual<T1, T2> = T1 extends T2 ? IsEqual<T1, T2> extends true ? true : never : never;
|
|
62
|
+
/**
|
|
63
|
+
* Helper type for recursively constructing paths through a type.
|
|
64
|
+
* This actually constructs the strings and recurses into nested
|
|
65
|
+
* object types.
|
|
66
|
+
*
|
|
67
|
+
* See {@link Path}
|
|
68
|
+
*/
|
|
69
|
+
type PathImpl<K extends string | number, V, TraversedTypes> = V extends Primitive | BrowserNativeObject ? `${K}` : true extends AnyIsEqual<TraversedTypes, V> ? `${K}` : `${K}` | `${K}.${PathInternal<V, TraversedTypes | V>}`;
|
|
70
|
+
/**
|
|
71
|
+
* Helper type for recursively constructing paths through a type.
|
|
72
|
+
* This obscures the internal type param TraversedTypes from exported contract.
|
|
73
|
+
*
|
|
74
|
+
* See {@link Path}
|
|
75
|
+
*/
|
|
76
|
+
type PathInternal<T, TraversedTypes = T> = T extends ReadonlyArray<infer V> ? IsTuple<T> extends true ? { [K in TupleKeys<T>]-?: PathImpl<K & string, T[K], TraversedTypes> }[TupleKeys<T>] : PathImpl<ArrayKey, V, TraversedTypes> : { [K in keyof T]-?: PathImpl<K & string, T[K], TraversedTypes> }[keyof T];
|
|
77
|
+
/**
|
|
78
|
+
* Type which eagerly collects all paths through a type
|
|
79
|
+
* @typeParam T - type which should be introspected
|
|
80
|
+
* @example
|
|
81
|
+
* ```
|
|
82
|
+
* Path<{foo: {bar: string}}> = 'foo' | 'foo.bar'
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
type Path<T> = T extends any ? PathInternal<T> : never;
|
|
86
|
+
/**
|
|
87
|
+
* See {@link Path}
|
|
88
|
+
*/
|
|
89
|
+
type FieldPath<TFieldValues extends FieldValues> = Path<TFieldValues>;
|
|
90
|
+
/**
|
|
91
|
+
* Helper type for recursively constructing paths through a type.
|
|
92
|
+
* This actually constructs the strings and recurses into nested
|
|
93
|
+
* object types.
|
|
94
|
+
*
|
|
95
|
+
* See {@link ArrayPath}
|
|
96
|
+
*/
|
|
97
|
+
type ArrayPathImpl<K extends string | number, V, TraversedTypes> = V extends Primitive | BrowserNativeObject ? IsAny<V> extends true ? string : never : V extends ReadonlyArray<infer U> ? U extends Primitive | BrowserNativeObject ? IsAny<V> extends true ? string : never : true extends AnyIsEqual<TraversedTypes, V> ? never : `${K}` | `${K}.${ArrayPathInternal<V, TraversedTypes | V>}` : true extends AnyIsEqual<TraversedTypes, V> ? never : `${K}.${ArrayPathInternal<V, TraversedTypes | V>}`;
|
|
98
|
+
/**
|
|
99
|
+
* Helper type for recursively constructing paths through a type.
|
|
100
|
+
* This obscures the internal type param TraversedTypes from exported contract.
|
|
101
|
+
*
|
|
102
|
+
* See {@link ArrayPath}
|
|
103
|
+
*/
|
|
104
|
+
type ArrayPathInternal<T, TraversedTypes = T> = T extends ReadonlyArray<infer V> ? IsTuple<T> extends true ? { [K in TupleKeys<T>]-?: ArrayPathImpl<K & string, T[K], TraversedTypes> }[TupleKeys<T>] : ArrayPathImpl<ArrayKey, V, TraversedTypes> : { [K in keyof T]-?: ArrayPathImpl<K & string, T[K], TraversedTypes> }[keyof T];
|
|
105
|
+
/**
|
|
106
|
+
* Type which eagerly collects all paths through a type which point to an array
|
|
107
|
+
* type.
|
|
108
|
+
* @typeParam T - type which should be introspected.
|
|
109
|
+
* @example
|
|
110
|
+
* ```
|
|
111
|
+
* Path<{foo: {bar: string[], baz: number[]}}> = 'foo.bar' | 'foo.baz'
|
|
112
|
+
* ```
|
|
113
|
+
*/
|
|
114
|
+
type ArrayPath<T> = T extends any ? ArrayPathInternal<T> : never;
|
|
115
|
+
/**
|
|
116
|
+
* See {@link ArrayPath}
|
|
117
|
+
*/
|
|
118
|
+
type FieldArrayPath<TFieldValues extends FieldValues> = ArrayPath<TFieldValues>;
|
|
119
|
+
/**
|
|
120
|
+
* Type to evaluate the type which the given path points to.
|
|
121
|
+
* @typeParam T - deeply nested type which is indexed by the path
|
|
122
|
+
* @typeParam P - path into the deeply nested type
|
|
123
|
+
* @example
|
|
124
|
+
* ```
|
|
125
|
+
* PathValue<{foo: {bar: string}}, 'foo.bar'> = string
|
|
126
|
+
* PathValue<[number, string], '1'> = string
|
|
127
|
+
* ```
|
|
128
|
+
*/
|
|
129
|
+
type PathValue<T, P extends Path<T> | ArrayPath<T>> = PathValueImpl<T, P>;
|
|
130
|
+
type PathValueImpl<T, P extends string> = T extends any ? P extends `${infer K}.${infer R}` ? K extends keyof T ? undefined extends T[K] ? PathValueImpl<T[K], R> | undefined : PathValueImpl<T[K], R> : K extends `${ArrayKey}` ? T extends ReadonlyArray<infer V> ? PathValueImpl<V, R> : never : never : P extends keyof T ? T[P] : P extends `${ArrayKey}` ? T extends ReadonlyArray<infer V> ? V : T extends undefined ? undefined : never : never : never;
|
|
131
|
+
/**
|
|
132
|
+
* See {@link PathValue}
|
|
133
|
+
*/
|
|
134
|
+
type FieldPathValue<TFieldValues extends FieldValues, TFieldPath extends FieldPath<TFieldValues>> = PathValue<TFieldValues, TFieldPath>;
|
|
135
|
+
/**
|
|
136
|
+
* See {@link PathValue}
|
|
137
|
+
*/
|
|
138
|
+
type FieldArrayPathValue<TFieldValues extends FieldValues, TFieldArrayPath extends FieldArrayPath<TFieldValues>> = PathValue<TFieldValues, TFieldArrayPath>;
|
|
139
|
+
/**
|
|
140
|
+
* Type to evaluate the type which the given paths point to.
|
|
141
|
+
* @typeParam TFieldValues - field values which are indexed by the paths
|
|
142
|
+
* @typeParam TPath - paths into the deeply nested field values
|
|
143
|
+
* @example
|
|
144
|
+
* ```
|
|
145
|
+
* FieldPathValues<{foo: {bar: string}}, ['foo', 'foo.bar']>
|
|
146
|
+
* = [{bar: string}, string]
|
|
147
|
+
* ```
|
|
148
|
+
*/
|
|
149
|
+
type FieldPathValues<TFieldValues extends FieldValues, TPath extends FieldPath<TFieldValues>[] | readonly FieldPath<TFieldValues>[]> = {} & { [K in keyof TPath]: FieldPathValue<TFieldValues, TPath[K] & FieldPath<TFieldValues>> };
|
|
150
|
+
//#endregion
|
|
151
|
+
//#region ../../node_modules/react-hook-form/dist/types/fieldArray.d.ts
|
|
152
|
+
type FieldArray<TFieldValues extends FieldValues = FieldValues, TFieldArrayName extends FieldArrayPath<TFieldValues> = FieldArrayPath<TFieldValues>> = FieldArrayPathValue<TFieldValues, TFieldArrayName> extends ReadonlyArray<infer U> | null | undefined ? U : never;
|
|
153
|
+
//#endregion
|
|
154
|
+
//#region ../../node_modules/react-hook-form/dist/types/resolvers.d.ts
|
|
155
|
+
type ResolverSuccess<TTransformedValues> = {
|
|
156
|
+
values: TTransformedValues;
|
|
157
|
+
errors: Record<string, never>;
|
|
158
|
+
};
|
|
159
|
+
type ResolverError<TFieldValues extends FieldValues = FieldValues> = {
|
|
160
|
+
values: Record<string, never>;
|
|
161
|
+
errors: FieldErrors<TFieldValues>;
|
|
162
|
+
};
|
|
163
|
+
type ResolverResult<TFieldValues extends FieldValues = FieldValues, TTransformedValues = TFieldValues> = ResolverSuccess<TTransformedValues> | ResolverError<TFieldValues>;
|
|
164
|
+
interface ResolverOptions<TFieldValues extends FieldValues> {
|
|
165
|
+
criteriaMode?: CriteriaMode;
|
|
166
|
+
fields: Record<InternalFieldName, Field['_f']>;
|
|
167
|
+
names?: FieldName<TFieldValues>[];
|
|
168
|
+
shouldUseNativeValidation: boolean | undefined;
|
|
169
|
+
}
|
|
170
|
+
type Resolver<TFieldValues extends FieldValues = FieldValues, TContext = any, TTransformedValues = TFieldValues> = (values: TFieldValues, context: TContext | undefined, options: ResolverOptions<TFieldValues>) => Promise<ResolverResult<TFieldValues, TTransformedValues>> | ResolverResult<TFieldValues, TTransformedValues>;
|
|
171
|
+
//#endregion
|
|
172
|
+
//#region ../../node_modules/react-hook-form/dist/types/form.d.ts
|
|
173
|
+
declare const $NestedValue: unique symbol;
|
|
174
|
+
/**
|
|
175
|
+
* @deprecated to be removed in the next major version
|
|
176
|
+
*/
|
|
177
|
+
type NestedValue<TValue extends object = object> = {
|
|
178
|
+
[$NestedValue]: never;
|
|
179
|
+
} & TValue;
|
|
180
|
+
type DefaultValues<TFieldValues> = TFieldValues extends AsyncDefaultValues<TFieldValues> ? DeepPartial<Awaited<TFieldValues>> : DeepPartial<TFieldValues>;
|
|
181
|
+
type InternalNameSet = Set<InternalFieldName>;
|
|
182
|
+
type ValidationMode = typeof VALIDATION_MODE;
|
|
183
|
+
type Mode = keyof ValidationMode;
|
|
184
|
+
type CriteriaMode = 'firstError' | 'all';
|
|
185
|
+
type SubmitHandler<T> = (data: T, event?: React.BaseSyntheticEvent) => unknown | Promise<unknown>;
|
|
186
|
+
type SubmitErrorHandler<TFieldValues extends FieldValues> = (errors: FieldErrors<TFieldValues>, event?: React.BaseSyntheticEvent) => unknown | Promise<unknown>;
|
|
187
|
+
type SetValueConfig = Partial<{
|
|
188
|
+
shouldValidate: boolean;
|
|
189
|
+
shouldDirty: boolean;
|
|
190
|
+
shouldTouch: boolean;
|
|
191
|
+
}>;
|
|
192
|
+
type TriggerConfig = Partial<{
|
|
193
|
+
shouldFocus: boolean;
|
|
194
|
+
}>;
|
|
195
|
+
type ResetFieldConfig<TFieldValues extends FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = Partial<{
|
|
196
|
+
keepDirty: boolean;
|
|
197
|
+
keepTouched: boolean;
|
|
198
|
+
keepError: boolean;
|
|
199
|
+
defaultValue: FieldPathValue<TFieldValues, TFieldName>;
|
|
200
|
+
}>;
|
|
201
|
+
type ChangeHandler = (event: {
|
|
202
|
+
target: any;
|
|
203
|
+
type?: any;
|
|
204
|
+
}) => Promise<void | boolean>;
|
|
205
|
+
type AsyncDefaultValues<TFieldValues> = (payload?: unknown) => Promise<TFieldValues>;
|
|
206
|
+
type UseFormProps<TFieldValues extends FieldValues = FieldValues, TContext = any, TTransformedValues = TFieldValues> = Partial<{
|
|
207
|
+
mode: Mode;
|
|
208
|
+
disabled: boolean;
|
|
209
|
+
reValidateMode: Exclude<Mode, 'onTouched' | 'all'>;
|
|
210
|
+
defaultValues: DefaultValues<TFieldValues> | AsyncDefaultValues<TFieldValues>;
|
|
211
|
+
values: TFieldValues;
|
|
212
|
+
errors: FieldErrors<TFieldValues>;
|
|
213
|
+
resetOptions: Parameters<UseFormReset<TFieldValues>>[1];
|
|
214
|
+
resolver: Resolver<TFieldValues, TContext, TTransformedValues>;
|
|
215
|
+
context: TContext;
|
|
216
|
+
shouldFocusError: boolean;
|
|
217
|
+
shouldUnregister: boolean;
|
|
218
|
+
shouldUseNativeValidation: boolean;
|
|
219
|
+
progressive: boolean;
|
|
220
|
+
criteriaMode: CriteriaMode;
|
|
221
|
+
delayError: number;
|
|
222
|
+
formControl?: Omit<UseFormReturn<TFieldValues, TContext, TTransformedValues>, 'formState'>;
|
|
223
|
+
}>;
|
|
224
|
+
type FieldNamesMarkedBoolean<TFieldValues extends FieldValues> = DeepMap<DeepPartial<TFieldValues>, boolean>;
|
|
225
|
+
type FormStateProxy<TFieldValues extends FieldValues = FieldValues> = {
|
|
226
|
+
isDirty: boolean;
|
|
227
|
+
isValidating: boolean;
|
|
228
|
+
dirtyFields: FieldNamesMarkedBoolean<TFieldValues>;
|
|
229
|
+
touchedFields: FieldNamesMarkedBoolean<TFieldValues>;
|
|
230
|
+
validatingFields: FieldNamesMarkedBoolean<TFieldValues>;
|
|
231
|
+
errors: boolean;
|
|
232
|
+
isValid: boolean;
|
|
233
|
+
};
|
|
234
|
+
type ReadFormState = { [K in keyof FormStateProxy]: boolean | 'all' } & {
|
|
235
|
+
values?: boolean;
|
|
236
|
+
};
|
|
237
|
+
type FormState<TFieldValues extends FieldValues> = {
|
|
238
|
+
isDirty: boolean;
|
|
239
|
+
isLoading: boolean;
|
|
240
|
+
isSubmitted: boolean;
|
|
241
|
+
isSubmitSuccessful: boolean;
|
|
242
|
+
isSubmitting: boolean;
|
|
243
|
+
isValidating: boolean;
|
|
244
|
+
isValid: boolean;
|
|
245
|
+
disabled: boolean;
|
|
246
|
+
submitCount: number;
|
|
247
|
+
defaultValues?: undefined | Readonly<DeepPartial<TFieldValues>>;
|
|
248
|
+
dirtyFields: Partial<Readonly<FieldNamesMarkedBoolean<TFieldValues>>>;
|
|
249
|
+
touchedFields: Partial<Readonly<FieldNamesMarkedBoolean<TFieldValues>>>;
|
|
250
|
+
validatingFields: Partial<Readonly<FieldNamesMarkedBoolean<TFieldValues>>>;
|
|
251
|
+
errors: FieldErrors<TFieldValues>;
|
|
252
|
+
isReady: boolean;
|
|
253
|
+
};
|
|
254
|
+
type KeepStateOptions = Partial<{
|
|
255
|
+
keepDirtyValues: boolean;
|
|
256
|
+
keepErrors: boolean;
|
|
257
|
+
keepDirty: boolean;
|
|
258
|
+
keepValues: boolean;
|
|
259
|
+
keepDefaultValues: boolean;
|
|
260
|
+
keepIsSubmitted: boolean;
|
|
261
|
+
keepIsSubmitSuccessful: boolean;
|
|
262
|
+
keepTouched: boolean;
|
|
263
|
+
keepIsValidating: boolean;
|
|
264
|
+
keepIsValid: boolean;
|
|
265
|
+
keepSubmitCount: boolean;
|
|
266
|
+
keepFieldsRef: boolean;
|
|
267
|
+
}>;
|
|
268
|
+
type RefCallBack = (instance: any) => void;
|
|
269
|
+
type UseFormRegisterReturn<TFieldName extends InternalFieldName = InternalFieldName> = {
|
|
270
|
+
onChange: ChangeHandler;
|
|
271
|
+
onBlur: ChangeHandler;
|
|
272
|
+
ref: RefCallBack;
|
|
273
|
+
name: TFieldName;
|
|
274
|
+
min?: string | number;
|
|
275
|
+
max?: string | number;
|
|
276
|
+
maxLength?: number;
|
|
277
|
+
minLength?: number;
|
|
278
|
+
pattern?: string;
|
|
279
|
+
required?: boolean;
|
|
280
|
+
disabled?: boolean;
|
|
281
|
+
};
|
|
282
|
+
/**
|
|
283
|
+
* Register field into hook form with or without the actual DOM ref. You can invoke register anywhere in the component including at `useEffect`.
|
|
284
|
+
*
|
|
285
|
+
* @remarks
|
|
286
|
+
* [API](https://react-hook-form.com/docs/useform/register) • [Demo](https://codesandbox.io/s/react-hook-form-register-ts-ip2j3) • [Video](https://www.youtube.com/watch?v=JFIpCoajYkA)
|
|
287
|
+
*
|
|
288
|
+
* @param name - the path name to the form field value, name is required and unique
|
|
289
|
+
* @param options - register options include validation, disabled, unregister, value as and dependent validation
|
|
290
|
+
*
|
|
291
|
+
* @returns onChange, onBlur, name, ref, and native contribute attribute if browser validation is enabled.
|
|
292
|
+
*
|
|
293
|
+
* @example
|
|
294
|
+
* ```tsx
|
|
295
|
+
* // Register HTML native input
|
|
296
|
+
* <input {...register("input")} />
|
|
297
|
+
* <select {...register("select")} />
|
|
298
|
+
*
|
|
299
|
+
* // Register options
|
|
300
|
+
* <textarea {...register("textarea", { required: "This is required.", maxLength: 20 })} />
|
|
301
|
+
* <input type="number" {...register("name2", { valueAsNumber: true })} />
|
|
302
|
+
* <input {...register("name3", { deps: ["name2"] })} />
|
|
303
|
+
*
|
|
304
|
+
* // Register custom field at useEffect
|
|
305
|
+
* useEffect(() => {
|
|
306
|
+
* register("name4");
|
|
307
|
+
* register("name5", { value: "hiddenValue" });
|
|
308
|
+
* }, [register])
|
|
309
|
+
*
|
|
310
|
+
* // Register without ref
|
|
311
|
+
* const { onChange, onBlur, name } = register("name6")
|
|
312
|
+
* <input onChange={onChange} onBlur={onBlur} name={name} />
|
|
313
|
+
* ```
|
|
314
|
+
*/
|
|
315
|
+
type UseFormRegister<TFieldValues extends FieldValues> = <TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(name: TFieldName, options?: RegisterOptions<TFieldValues, TFieldName>) => UseFormRegisterReturn<TFieldName>;
|
|
316
|
+
type SetFocusOptions = Partial<{
|
|
317
|
+
shouldSelect: boolean;
|
|
318
|
+
}>;
|
|
319
|
+
/**
|
|
320
|
+
* Set focus on a registered field. You can start to invoke this method after all fields are mounted to the DOM.
|
|
321
|
+
*
|
|
322
|
+
* @remarks
|
|
323
|
+
* [API](https://react-hook-form.com/docs/useform/setfocus) • [Demo](https://codesandbox.io/s/setfocus-rolus)
|
|
324
|
+
*
|
|
325
|
+
* @param name - the path name to the form field value.
|
|
326
|
+
* @param options - input focus behavior options
|
|
327
|
+
*
|
|
328
|
+
* @example
|
|
329
|
+
* ```tsx
|
|
330
|
+
* useEffect(() => {
|
|
331
|
+
* setFocus("name");
|
|
332
|
+
* }, [setFocus])
|
|
333
|
+
* // shouldSelect allows to select input's content on focus
|
|
334
|
+
* <button onClick={() => setFocus("name", { shouldSelect: true })}>Focus</button>
|
|
335
|
+
* ```
|
|
336
|
+
*/
|
|
337
|
+
type UseFormSetFocus<TFieldValues extends FieldValues> = <TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(name: TFieldName, options?: SetFocusOptions) => void;
|
|
338
|
+
type EitherOption<T> = { [K in keyof T]: { [P in K]: T[P] } & Partial<Record<Exclude<keyof T, K>, never>> }[keyof T];
|
|
339
|
+
type GetValuesConfig = EitherOption<{
|
|
340
|
+
dirtyFields: boolean;
|
|
341
|
+
touchedFields: boolean;
|
|
342
|
+
}>;
|
|
343
|
+
type UseFormGetValues<TFieldValues extends FieldValues> = {
|
|
344
|
+
/**
|
|
345
|
+
* Get the entire form values when no argument is supplied to this function.
|
|
346
|
+
*
|
|
347
|
+
* @remarks
|
|
348
|
+
* [API](https://react-hook-form.com/docs/useform/getvalues) • [Demo](https://codesandbox.io/s/react-hook-form-v7-ts-getvalues-txsfg)
|
|
349
|
+
*
|
|
350
|
+
* @returns form values
|
|
351
|
+
*
|
|
352
|
+
* @example
|
|
353
|
+
* ```tsx
|
|
354
|
+
* <button onClick={() => getValues()}>getValues</button>
|
|
355
|
+
*
|
|
356
|
+
* <input {...register("name", {
|
|
357
|
+
* validate: (value, formValues) => formValues.otherField === value;
|
|
358
|
+
* })} />
|
|
359
|
+
* ```
|
|
360
|
+
*/
|
|
361
|
+
(name?: undefined, config?: GetValuesConfig): TFieldValues;
|
|
362
|
+
/**
|
|
363
|
+
* Get a single field value.
|
|
364
|
+
*
|
|
365
|
+
* @remarks
|
|
366
|
+
* [API](https://react-hook-form.com/docs/useform/getvalues) • [Demo](https://codesandbox.io/s/react-hook-form-v7-ts-getvalues-txsfg)
|
|
367
|
+
*
|
|
368
|
+
* @param name - the path name to the form field value.
|
|
369
|
+
* @param config - return touched or dirty fields
|
|
370
|
+
*
|
|
371
|
+
* @returns the single field value
|
|
372
|
+
*
|
|
373
|
+
* @example
|
|
374
|
+
* ```tsx
|
|
375
|
+
* <button onClick={() => getValues("name")}>getValues</button>
|
|
376
|
+
*
|
|
377
|
+
* <input {...register("name", {
|
|
378
|
+
* validate: () => getValues('otherField') === "test";
|
|
379
|
+
* })} />
|
|
380
|
+
* ```
|
|
381
|
+
*/
|
|
382
|
+
<TFieldName extends FieldPath<TFieldValues>>(name: TFieldName, config?: GetValuesConfig): FieldPathValue<TFieldValues, TFieldName>;
|
|
383
|
+
/**
|
|
384
|
+
* Get an array of field values.
|
|
385
|
+
*
|
|
386
|
+
* @remarks
|
|
387
|
+
* [API](https://react-hook-form.com/docs/useform/getvalues) • [Demo](https://codesandbox.io/s/react-hook-form-v7-ts-getvalues-txsfg)
|
|
388
|
+
*
|
|
389
|
+
* @param names - an array of field names
|
|
390
|
+
* @param config - return touched or dirty fields
|
|
391
|
+
*
|
|
392
|
+
* @returns An array of field values
|
|
393
|
+
*
|
|
394
|
+
* @example
|
|
395
|
+
* ```tsx
|
|
396
|
+
* <button onClick={() => getValues(["name", "name1"])}>getValues</button>
|
|
397
|
+
*
|
|
398
|
+
* <input {...register("name", {
|
|
399
|
+
* validate: () => getValues(["fieldA", "fieldB"]).includes("test");
|
|
400
|
+
* })} />
|
|
401
|
+
* ```
|
|
402
|
+
*/
|
|
403
|
+
<TFieldNames extends FieldPath<TFieldValues>[]>(names: readonly [...TFieldNames], config?: GetValuesConfig): [...FieldPathValues<TFieldValues, TFieldNames>];
|
|
404
|
+
};
|
|
405
|
+
/**
|
|
406
|
+
* This method will return individual field states. It will be useful when you are trying to retrieve the nested value field state in a typesafe approach.
|
|
407
|
+
*
|
|
408
|
+
* @remarks
|
|
409
|
+
* [API](https://react-hook-form.com/docs/useform/getfieldstate) • [Demo](https://codesandbox.io/s/getfieldstate-jvekk)
|
|
410
|
+
*
|
|
411
|
+
* @param name - the path name to the form field value.
|
|
412
|
+
*
|
|
413
|
+
* @returns invalid, isDirty, isTouched and error object
|
|
414
|
+
*
|
|
415
|
+
* @example
|
|
416
|
+
* ```tsx
|
|
417
|
+
* // those formState has to be subscribed
|
|
418
|
+
* const { formState: { dirtyFields, errors, touchedFields } } = formState();
|
|
419
|
+
* getFieldState('name')
|
|
420
|
+
* // Get field state when form state is not subscribed yet
|
|
421
|
+
* getFieldState('name', formState)
|
|
422
|
+
*
|
|
423
|
+
* // It's ok to combine with useFormState
|
|
424
|
+
* const formState = useFormState();
|
|
425
|
+
* getFieldState('name')
|
|
426
|
+
* getFieldState('name', formState)
|
|
427
|
+
* ```
|
|
428
|
+
*/
|
|
429
|
+
type UseFormGetFieldState<TFieldValues extends FieldValues> = <TFieldName extends FieldPath<TFieldValues>>(name: TFieldName, formState?: FormState<TFieldValues>) => {
|
|
430
|
+
invalid: boolean;
|
|
431
|
+
isDirty: boolean;
|
|
432
|
+
isTouched: boolean;
|
|
433
|
+
isValidating: boolean;
|
|
434
|
+
error?: FieldError;
|
|
435
|
+
};
|
|
436
|
+
/**
|
|
437
|
+
* This method will allow you to subscribe to formState without component render
|
|
438
|
+
*
|
|
439
|
+
* @remarks
|
|
440
|
+
* [API](https://react-hook-form.com/docs/useform/subscribe) • [Demo](https://codesandbox.io/s/subscribe)
|
|
441
|
+
*
|
|
442
|
+
* @param options - subscription options on which formState subscribe to
|
|
443
|
+
*
|
|
444
|
+
* @example
|
|
445
|
+
* ```tsx
|
|
446
|
+
const { subscribe } = useForm()
|
|
447
|
+
|
|
448
|
+
useEffect(() => {
|
|
449
|
+
subscribe({
|
|
450
|
+
formState: { isDirty: true },
|
|
451
|
+
callback: () => {}
|
|
452
|
+
})
|
|
453
|
+
})
|
|
454
|
+
* ```
|
|
455
|
+
*/
|
|
456
|
+
type UseFormSubscribe<TFieldValues extends FieldValues> = <TFieldNames extends readonly FieldPath<TFieldValues>[]>(payload: {
|
|
457
|
+
name?: readonly [...TFieldNames] | TFieldNames[number];
|
|
458
|
+
formState?: Partial<ReadFormState>;
|
|
459
|
+
callback: (data: Partial<FormState<TFieldValues>> & {
|
|
460
|
+
values: TFieldValues;
|
|
461
|
+
name?: InternalFieldName;
|
|
462
|
+
type?: EventType;
|
|
463
|
+
}) => void;
|
|
464
|
+
exact?: boolean;
|
|
465
|
+
}) => () => void;
|
|
466
|
+
type UseFormWatch<TFieldValues extends FieldValues> = {
|
|
467
|
+
/**
|
|
468
|
+
* Watch and subscribe to the entire form update/change based on onChange and re-render at the useForm.
|
|
469
|
+
*
|
|
470
|
+
* @remarks
|
|
471
|
+
* [API](https://react-hook-form.com/docs/useform/watch) • [Demo](https://codesandbox.io/s/react-hook-form-watch-v7-ts-8et1d) • [Video](https://www.youtube.com/watch?v=3qLd69WMqKk)
|
|
472
|
+
*
|
|
473
|
+
* @returns return the entire form values
|
|
474
|
+
*
|
|
475
|
+
* @example
|
|
476
|
+
* ```tsx
|
|
477
|
+
* const formValues = watch();
|
|
478
|
+
* ```
|
|
479
|
+
*/
|
|
480
|
+
(): TFieldValues;
|
|
481
|
+
/**
|
|
482
|
+
* Watch and subscribe to an array of fields used outside of render.
|
|
483
|
+
*
|
|
484
|
+
* @remarks
|
|
485
|
+
* [API](https://react-hook-form.com/docs/useform/watch) • [Demo](https://codesandbox.io/s/react-hook-form-watch-v7-ts-8et1d) • [Video](https://www.youtube.com/watch?v=3qLd69WMqKk)
|
|
486
|
+
*
|
|
487
|
+
* @param names - an array of field names
|
|
488
|
+
* @param defaultValue - defaultValues for the entire form
|
|
489
|
+
*
|
|
490
|
+
* @returns return an array of field values
|
|
491
|
+
*
|
|
492
|
+
* @example
|
|
493
|
+
* ```tsx
|
|
494
|
+
* const [name, name1] = watch(["name", "name1"]);
|
|
495
|
+
* ```
|
|
496
|
+
*/
|
|
497
|
+
<TFieldNames extends readonly FieldPath<TFieldValues>[]>(names: readonly [...TFieldNames], defaultValue?: DeepPartial<TFieldValues>): FieldPathValues<TFieldValues, TFieldNames>;
|
|
498
|
+
/**
|
|
499
|
+
* Watch and subscribe to a single field used outside of render.
|
|
500
|
+
*
|
|
501
|
+
* @remarks
|
|
502
|
+
* [API](https://react-hook-form.com/docs/useform/watch) • [Demo](https://codesandbox.io/s/react-hook-form-watch-v7-ts-8et1d) • [Video](https://www.youtube.com/watch?v=3qLd69WMqKk)
|
|
503
|
+
*
|
|
504
|
+
* @param name - the path name to the form field value.
|
|
505
|
+
* @param defaultValue - defaultValues for the entire form
|
|
506
|
+
*
|
|
507
|
+
* @returns return the single field value
|
|
508
|
+
*
|
|
509
|
+
* @example
|
|
510
|
+
* ```tsx
|
|
511
|
+
* const name = watch("name");
|
|
512
|
+
* ```
|
|
513
|
+
*/
|
|
514
|
+
<TFieldName extends FieldPath<TFieldValues>>(name: TFieldName, defaultValue?: FieldPathValue<TFieldValues, TFieldName>): FieldPathValue<TFieldValues, TFieldName>;
|
|
515
|
+
/**
|
|
516
|
+
* Subscribe to field update/change without trigger re-render
|
|
517
|
+
*
|
|
518
|
+
* @remarks
|
|
519
|
+
* [API](https://react-hook-form.com/docs/useform/watch) • [Demo](https://codesandbox.io/s/react-hook-form-watch-v7-ts-8et1d) • [Video](https://www.youtube.com/watch?v=3qLd69WMqKk)
|
|
520
|
+
*
|
|
521
|
+
* @param callback - call back function to subscribe all fields change and return unsubscribe function
|
|
522
|
+
* @param defaultValues - defaultValues for the entire form
|
|
523
|
+
*
|
|
524
|
+
* @returns unsubscribe function
|
|
525
|
+
*
|
|
526
|
+
* @example
|
|
527
|
+
* ```tsx
|
|
528
|
+
* useEffect(() => {
|
|
529
|
+
* const { unsubscribe } = watch((value) => {
|
|
530
|
+
* console.log(value);
|
|
531
|
+
* });
|
|
532
|
+
* return () => unsubscribe();
|
|
533
|
+
* }, [watch])
|
|
534
|
+
* ```
|
|
535
|
+
*/
|
|
536
|
+
(callback: WatchObserver<TFieldValues>, defaultValues?: DeepPartial<TFieldValues>): Subscription;
|
|
537
|
+
};
|
|
538
|
+
/**
|
|
539
|
+
* Trigger field or form validation
|
|
540
|
+
*
|
|
541
|
+
* @remarks
|
|
542
|
+
* [API](https://react-hook-form.com/docs/useform/trigger) • [Demo](https://codesandbox.io/s/react-hook-form-v7-ts-triggervalidation-forked-xs7hl) • [Video](https://www.youtube.com/watch?v=-bcyJCDjksE)
|
|
543
|
+
*
|
|
544
|
+
* @param name - provide empty argument will trigger the entire form validation, an array of field names will validate an array of fields, and a single field name will only trigger that field's validation.
|
|
545
|
+
* @param options - should focus on the error field
|
|
546
|
+
*
|
|
547
|
+
* @returns validation result
|
|
548
|
+
*
|
|
549
|
+
* @example
|
|
550
|
+
* ```tsx
|
|
551
|
+
* useEffect(() => {
|
|
552
|
+
* trigger();
|
|
553
|
+
* }, [trigger])
|
|
554
|
+
*
|
|
555
|
+
* <button onClick={async () => {
|
|
556
|
+
* const result = await trigger(); // result will be a boolean value
|
|
557
|
+
* }}>
|
|
558
|
+
* trigger
|
|
559
|
+
* </button>
|
|
560
|
+
* ```
|
|
561
|
+
*/
|
|
562
|
+
type UseFormTrigger<TFieldValues extends FieldValues> = (name?: FieldPath<TFieldValues> | FieldPath<TFieldValues>[] | readonly FieldPath<TFieldValues>[], options?: TriggerConfig) => Promise<boolean>;
|
|
563
|
+
/**
|
|
564
|
+
* Clear the entire form errors.
|
|
565
|
+
*
|
|
566
|
+
* @remarks
|
|
567
|
+
* [API](https://react-hook-form.com/docs/useform/clearerrors) • [Demo](https://codesandbox.io/s/react-hook-form-v7-ts-clearerrors-w3ymx)
|
|
568
|
+
*
|
|
569
|
+
* @param name - the path name to the form field value.
|
|
570
|
+
*
|
|
571
|
+
* @example
|
|
572
|
+
* Clear all errors
|
|
573
|
+
* ```tsx
|
|
574
|
+
* clearErrors(); // clear the entire form error
|
|
575
|
+
* clearErrors(["name", "name1"]) // clear an array of fields' error
|
|
576
|
+
* clearErrors("name2"); // clear a single field error
|
|
577
|
+
* ```
|
|
578
|
+
*/
|
|
579
|
+
type UseFormClearErrors<TFieldValues extends FieldValues> = (name?: FieldPath<TFieldValues> | FieldPath<TFieldValues>[] | readonly FieldPath<TFieldValues>[] | `root.${string}` | 'root') => void;
|
|
580
|
+
/**
|
|
581
|
+
* Set a single field value, or a group of fields value.
|
|
582
|
+
*
|
|
583
|
+
* @remarks
|
|
584
|
+
* [API](https://react-hook-form.com/docs/useform/setvalue) • [Demo](https://codesandbox.io/s/react-hook-form-v7-ts-setvalue-8z9hx) • [Video](https://www.youtube.com/watch?v=qpv51sCH3fI)
|
|
585
|
+
*
|
|
586
|
+
* @param name - the path name to the form field value.
|
|
587
|
+
* @param value - field value
|
|
588
|
+
* @param options - should validate or update form state
|
|
589
|
+
*
|
|
590
|
+
* @example
|
|
591
|
+
* ```tsx
|
|
592
|
+
* // Update a single field
|
|
593
|
+
* setValue('name', 'value', {
|
|
594
|
+
* shouldValidate: true, // trigger validation
|
|
595
|
+
* shouldTouch: true, // update touched fields form state
|
|
596
|
+
* shouldDirty: true, // update dirty and dirty fields form state
|
|
597
|
+
* });
|
|
598
|
+
*
|
|
599
|
+
* // Update a group fields
|
|
600
|
+
* setValue('root', {
|
|
601
|
+
* a: 'test', // setValue('root.a', 'data')
|
|
602
|
+
* b: 'test1', // setValue('root.b', 'data')
|
|
603
|
+
* });
|
|
604
|
+
*
|
|
605
|
+
* // Update a nested object field
|
|
606
|
+
* setValue('select', { label: 'test', value: 'Test' });
|
|
607
|
+
* ```
|
|
608
|
+
*/
|
|
609
|
+
type UseFormSetValue<TFieldValues extends FieldValues> = <TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(name: TFieldName, value: FieldPathValue<TFieldValues, TFieldName>, options?: SetValueConfig) => void;
|
|
610
|
+
/**
|
|
611
|
+
* Set an error for the field. When set an error which is not associated to a field then manual `clearErrors` invoke is required.
|
|
612
|
+
*
|
|
613
|
+
* @remarks
|
|
614
|
+
* [API](https://react-hook-form.com/docs/useform/seterror) • [Demo](https://codesandbox.io/s/react-hook-form-v7-ts-seterror-nfxxu) • [Video](https://www.youtube.com/watch?v=raMqvE0YyIY)
|
|
615
|
+
*
|
|
616
|
+
* @param name - the path name to the form field value.
|
|
617
|
+
* @param error - an error object which contains type and optional message
|
|
618
|
+
* @param options - whether or not to focus on the field
|
|
619
|
+
*
|
|
620
|
+
* @example
|
|
621
|
+
* ```tsx
|
|
622
|
+
* // when the error is not associated with any fields, `clearError` will need to invoke to clear the error
|
|
623
|
+
* const onSubmit = () => setError("serverError", { type: "server", message: "Error occurred"})
|
|
624
|
+
*
|
|
625
|
+
* <button onClick={() => setError("name", { type: "min" })} />
|
|
626
|
+
*
|
|
627
|
+
* // focus on the input after setting the error
|
|
628
|
+
* <button onClick={() => setError("name", { type: "max" }, { shouldFocus: true })} />
|
|
629
|
+
* ```
|
|
630
|
+
*/
|
|
631
|
+
type UseFormSetError<TFieldValues extends FieldValues> = (name: FieldPath<TFieldValues> | `root.${string}` | 'root', error: ErrorOption, options?: {
|
|
632
|
+
shouldFocus: boolean;
|
|
633
|
+
}) => void;
|
|
634
|
+
/**
|
|
635
|
+
* Unregister a field reference and remove its value.
|
|
636
|
+
*
|
|
637
|
+
* @remarks
|
|
638
|
+
* [API](https://react-hook-form.com/docs/useform/unregister) • [Demo](https://codesandbox.io/s/react-hook-form-unregister-4k2ey) • [Video](https://www.youtube.com/watch?v=TM99g_NW5Gk&feature=emb_imp_woyt)
|
|
639
|
+
*
|
|
640
|
+
* @param name - the path name to the form field value.
|
|
641
|
+
* @param options - keep form state options
|
|
642
|
+
*
|
|
643
|
+
* @example
|
|
644
|
+
* ```tsx
|
|
645
|
+
* register("name", { required: true })
|
|
646
|
+
*
|
|
647
|
+
* <button onClick={() => unregister("name")} />
|
|
648
|
+
* // there are various keep options to retain formState
|
|
649
|
+
* <button onClick={() => unregister("name", { keepErrors: true })} />
|
|
650
|
+
* ```
|
|
651
|
+
*/
|
|
652
|
+
type UseFormUnregister<TFieldValues extends FieldValues> = (name?: FieldPath<TFieldValues> | FieldPath<TFieldValues>[] | readonly FieldPath<TFieldValues>[], options?: Omit<KeepStateOptions, 'keepIsSubmitted' | 'keepSubmitCount' | 'keepValues' | 'keepDefaultValues' | 'keepErrors'> & {
|
|
653
|
+
keepValue?: boolean;
|
|
654
|
+
keepDefaultValue?: boolean;
|
|
655
|
+
keepError?: boolean;
|
|
656
|
+
}) => void;
|
|
657
|
+
/**
|
|
658
|
+
* Validate the entire form. Handle submit and error callback.
|
|
659
|
+
*
|
|
660
|
+
* @remarks
|
|
661
|
+
* [API](https://react-hook-form.com/docs/useform/handlesubmit) • [Demo](https://codesandbox.io/s/react-hook-form-handlesubmit-ts-v7-lcrtu) • [Video](https://www.youtube.com/watch?v=KzcPKB9SOEk)
|
|
662
|
+
*
|
|
663
|
+
* @param onValid - callback function invoked after form pass validation
|
|
664
|
+
* @param onInvalid - callback function invoked when form failed validation
|
|
665
|
+
*
|
|
666
|
+
* @returns callback - return callback function
|
|
667
|
+
*
|
|
668
|
+
* @example
|
|
669
|
+
* ```tsx
|
|
670
|
+
* const onSubmit = (data) => console.log(data);
|
|
671
|
+
* const onError = (error) => console.log(error);
|
|
672
|
+
*
|
|
673
|
+
* <form onSubmit={handleSubmit(onSubmit, onError)} />
|
|
674
|
+
* ```
|
|
675
|
+
*/
|
|
676
|
+
type UseFormHandleSubmit<TFieldValues extends FieldValues, TTransformedValues = TFieldValues> = (onValid: SubmitHandler<TTransformedValues>, onInvalid?: SubmitErrorHandler<TFieldValues>) => (e?: React.BaseSyntheticEvent) => Promise<void>;
|
|
677
|
+
/**
|
|
678
|
+
* Reset a field state and reference.
|
|
679
|
+
*
|
|
680
|
+
* @remarks
|
|
681
|
+
* [API](https://react-hook-form.com/docs/useform/resetfield) • [Demo](https://codesandbox.io/s/priceless-firefly-d0kuv) • [Video](https://www.youtube.com/watch?v=IdLFcNaEFEo)
|
|
682
|
+
*
|
|
683
|
+
* @param name - the path name to the form field value.
|
|
684
|
+
* @param options - keep form state options
|
|
685
|
+
*
|
|
686
|
+
* @example
|
|
687
|
+
* ```tsx
|
|
688
|
+
* <input {...register("firstName", { required: true })} />
|
|
689
|
+
* <button type="button" onClick={() => resetField("firstName"))}>Reset</button>
|
|
690
|
+
* ```
|
|
691
|
+
*/
|
|
692
|
+
type UseFormResetField<TFieldValues extends FieldValues> = <TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(name: TFieldName, options?: ResetFieldConfig<TFieldValues, TFieldName>) => void;
|
|
693
|
+
type ResetAction<TFieldValues> = (formValues: TFieldValues) => TFieldValues;
|
|
694
|
+
/**
|
|
695
|
+
* Reset at the entire form state.
|
|
696
|
+
*
|
|
697
|
+
* @remarks
|
|
698
|
+
* [API](https://react-hook-form.com/docs/useform/reset) • [Demo](https://codesandbox.io/s/react-hook-form-reset-v7-ts-pu901) • [Video](https://www.youtube.com/watch?v=qmCLBjyPwVk)
|
|
699
|
+
*
|
|
700
|
+
* @param values - the entire form values to be reset
|
|
701
|
+
* @param keepStateOptions - keep form state options
|
|
702
|
+
*
|
|
703
|
+
* @example
|
|
704
|
+
* ```tsx
|
|
705
|
+
* useEffect(() => {
|
|
706
|
+
* // reset the entire form after component mount or form defaultValues is ready
|
|
707
|
+
* reset({
|
|
708
|
+
* fieldA: "test"
|
|
709
|
+
* fieldB: "test"
|
|
710
|
+
* });
|
|
711
|
+
* }, [reset])
|
|
712
|
+
*
|
|
713
|
+
* // reset by combine with existing form values
|
|
714
|
+
* reset({
|
|
715
|
+
* ...getValues(),
|
|
716
|
+
* fieldB: "test"
|
|
717
|
+
*});
|
|
718
|
+
*
|
|
719
|
+
* // reset and keep form state
|
|
720
|
+
* reset({
|
|
721
|
+
* ...getValues(),
|
|
722
|
+
*}, {
|
|
723
|
+
* keepErrors: true,
|
|
724
|
+
* keepDirty: true
|
|
725
|
+
*});
|
|
726
|
+
* ```
|
|
727
|
+
*/
|
|
728
|
+
type UseFormReset<TFieldValues extends FieldValues> = (values?: DefaultValues<TFieldValues> | TFieldValues | ResetAction<TFieldValues>, keepStateOptions?: KeepStateOptions) => void;
|
|
729
|
+
type WatchInternal<TFieldValues> = (fieldNames?: InternalFieldName | InternalFieldName[], defaultValue?: DeepPartial<TFieldValues>, isMounted?: boolean, isGlobal?: boolean) => FieldPathValue<FieldValues, InternalFieldName> | FieldPathValues<FieldValues, InternalFieldName[]>;
|
|
730
|
+
type GetIsDirty = <TName extends InternalFieldName, TData>(name?: TName, data?: TData) => boolean;
|
|
731
|
+
type FormStateSubjectRef<TFieldValues extends FieldValues> = Subject<Partial<FormState<TFieldValues>> & {
|
|
732
|
+
name?: InternalFieldName;
|
|
733
|
+
values?: TFieldValues;
|
|
734
|
+
type?: EventType;
|
|
735
|
+
}>;
|
|
736
|
+
type Subjects<TFieldValues extends FieldValues = FieldValues> = {
|
|
737
|
+
array: Subject<{
|
|
738
|
+
name?: InternalFieldName;
|
|
739
|
+
values?: FieldValues;
|
|
740
|
+
}>;
|
|
741
|
+
state: FormStateSubjectRef<TFieldValues>;
|
|
742
|
+
};
|
|
743
|
+
type Names = {
|
|
744
|
+
mount: InternalNameSet;
|
|
745
|
+
unMount: InternalNameSet;
|
|
746
|
+
disabled: InternalNameSet;
|
|
747
|
+
array: InternalNameSet;
|
|
748
|
+
watch: InternalNameSet;
|
|
749
|
+
focus?: InternalFieldName;
|
|
750
|
+
watchAll?: boolean;
|
|
751
|
+
};
|
|
752
|
+
type BatchFieldArrayUpdate = <T extends Function, TFieldValues extends FieldValues, TFieldArrayName extends FieldArrayPath<TFieldValues> = FieldArrayPath<TFieldValues>>(name: InternalFieldName, updatedFieldArrayValues?: Partial<FieldArray<TFieldValues, TFieldArrayName>>[], method?: T, args?: Partial<{
|
|
753
|
+
argA: unknown;
|
|
754
|
+
argB: unknown;
|
|
755
|
+
}>, shouldSetValue?: boolean, shouldUpdateFieldsAndErrors?: boolean) => void;
|
|
756
|
+
type FromSubscribe<TFieldValues extends FieldValues> = <TFieldNames extends readonly FieldPath<TFieldValues>[]>(payload: {
|
|
757
|
+
name?: readonly [...TFieldNames] | TFieldNames[number];
|
|
758
|
+
formState?: Partial<ReadFormState>;
|
|
759
|
+
callback: (data: Partial<FormState<TFieldValues>> & {
|
|
760
|
+
values: TFieldValues;
|
|
761
|
+
name?: InternalFieldName;
|
|
762
|
+
}) => void;
|
|
763
|
+
exact?: boolean;
|
|
764
|
+
reRenderRoot?: boolean;
|
|
765
|
+
}) => () => void;
|
|
766
|
+
type Control<TFieldValues extends FieldValues = FieldValues, TContext = any, TTransformedValues = TFieldValues> = {
|
|
767
|
+
_subjects: Subjects<TFieldValues>;
|
|
768
|
+
_removeUnmounted: Noop;
|
|
769
|
+
_names: Names;
|
|
770
|
+
_state: {
|
|
771
|
+
mount: boolean;
|
|
772
|
+
action: boolean;
|
|
773
|
+
watch: boolean;
|
|
774
|
+
};
|
|
775
|
+
_reset: UseFormReset<TFieldValues>;
|
|
776
|
+
_options: UseFormProps<TFieldValues, TContext, TTransformedValues>;
|
|
777
|
+
_getDirty: GetIsDirty;
|
|
778
|
+
_resetDefaultValues: Noop;
|
|
779
|
+
_formState: FormState<TFieldValues>;
|
|
780
|
+
_setValid: (shouldUpdateValid?: boolean) => void;
|
|
781
|
+
_fields: FieldRefs;
|
|
782
|
+
_formValues: FieldValues;
|
|
783
|
+
_proxyFormState: ReadFormState;
|
|
784
|
+
_defaultValues: Partial<DefaultValues<TFieldValues>>;
|
|
785
|
+
_getWatch: WatchInternal<TFieldValues>;
|
|
786
|
+
_setFieldArray: BatchFieldArrayUpdate;
|
|
787
|
+
_getFieldArray: <TFieldArrayValues>(name: InternalFieldName) => Partial<TFieldArrayValues>[];
|
|
788
|
+
_setErrors: (errors: FieldErrors<TFieldValues>) => void;
|
|
789
|
+
_setDisabledField: (props: {
|
|
790
|
+
disabled?: boolean;
|
|
791
|
+
name: FieldName<any>;
|
|
792
|
+
}) => void;
|
|
793
|
+
_runSchema: (names: InternalFieldName[]) => Promise<{
|
|
794
|
+
errors: FieldErrors;
|
|
795
|
+
}>;
|
|
796
|
+
_updateIsValidating: (names?: InternalFieldName[], isValidating?: boolean) => void;
|
|
797
|
+
_focusError: () => boolean | undefined;
|
|
798
|
+
_disableForm: (disabled?: boolean) => void;
|
|
799
|
+
_subscribe: FromSubscribe<TFieldValues>;
|
|
800
|
+
register: UseFormRegister<TFieldValues>;
|
|
801
|
+
handleSubmit: UseFormHandleSubmit<TFieldValues, TTransformedValues>;
|
|
802
|
+
unregister: UseFormUnregister<TFieldValues>;
|
|
803
|
+
getFieldState: UseFormGetFieldState<TFieldValues>;
|
|
804
|
+
setError: UseFormSetError<TFieldValues>;
|
|
805
|
+
};
|
|
806
|
+
type WatchObserver<TFieldValues extends FieldValues> = (value: DeepPartial<TFieldValues>, info: {
|
|
807
|
+
name?: FieldPath<TFieldValues>;
|
|
808
|
+
type?: EventType;
|
|
809
|
+
values?: unknown;
|
|
810
|
+
}) => void;
|
|
811
|
+
type UseFormReturn<TFieldValues extends FieldValues = FieldValues, TContext = any, TTransformedValues = TFieldValues> = {
|
|
812
|
+
watch: UseFormWatch<TFieldValues>;
|
|
813
|
+
getValues: UseFormGetValues<TFieldValues>;
|
|
814
|
+
getFieldState: UseFormGetFieldState<TFieldValues>;
|
|
815
|
+
setError: UseFormSetError<TFieldValues>;
|
|
816
|
+
clearErrors: UseFormClearErrors<TFieldValues>;
|
|
817
|
+
setValue: UseFormSetValue<TFieldValues>;
|
|
818
|
+
trigger: UseFormTrigger<TFieldValues>;
|
|
819
|
+
formState: FormState<TFieldValues>;
|
|
820
|
+
resetField: UseFormResetField<TFieldValues>;
|
|
821
|
+
reset: UseFormReset<TFieldValues>;
|
|
822
|
+
handleSubmit: UseFormHandleSubmit<TFieldValues, TTransformedValues>;
|
|
823
|
+
unregister: UseFormUnregister<TFieldValues>;
|
|
824
|
+
control: Control<TFieldValues, TContext, TTransformedValues>;
|
|
825
|
+
register: UseFormRegister<TFieldValues>;
|
|
826
|
+
setFocus: UseFormSetFocus<TFieldValues>;
|
|
827
|
+
subscribe: UseFormSubscribe<TFieldValues>;
|
|
828
|
+
};
|
|
829
|
+
//#endregion
|
|
830
|
+
//#region ../../node_modules/react-hook-form/dist/types/utils.d.ts
|
|
831
|
+
type Noop = () => void;
|
|
832
|
+
interface File extends Blob {
|
|
833
|
+
readonly lastModified: number;
|
|
834
|
+
readonly name: string;
|
|
835
|
+
}
|
|
836
|
+
interface FileList$1 {
|
|
837
|
+
readonly length: number;
|
|
838
|
+
item(index: number): File | null;
|
|
839
|
+
[index: number]: File;
|
|
840
|
+
}
|
|
841
|
+
type Primitive = null | undefined | string | number | boolean | symbol | bigint;
|
|
842
|
+
type BrowserNativeObject = Date | FileList$1 | File;
|
|
843
|
+
type NonUndefined<T> = T extends undefined ? never : T;
|
|
844
|
+
type LiteralUnion<T extends U, U extends Primitive> = T | (U & {
|
|
845
|
+
_?: never;
|
|
846
|
+
});
|
|
847
|
+
type ExtractObjects<T> = T extends infer U ? U extends object ? U : never : never;
|
|
848
|
+
type IsPrimitiveLike<T> = T extends Primitive ? true : T extends Primitive & object ? true : false;
|
|
849
|
+
type DeepPartial<T> = IsPrimitiveLike<T> extends true ? T : T extends BrowserNativeObject | NestedValue ? T : { [K in keyof T]?: ExtractObjects<T[K]> extends never ? T[K] : DeepPartial<T[K]> };
|
|
850
|
+
/**
|
|
851
|
+
* Checks whether the type is any
|
|
852
|
+
* See {@link https://stackoverflow.com/a/49928360/3406963}
|
|
853
|
+
* @typeParam T - type which may be any
|
|
854
|
+
* ```
|
|
855
|
+
* IsAny<any> = true
|
|
856
|
+
* IsAny<string> = false
|
|
857
|
+
* ```
|
|
858
|
+
*/
|
|
859
|
+
type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
860
|
+
/**
|
|
861
|
+
* Checks whether T1 can be exactly (mutually) assigned to T2
|
|
862
|
+
* @typeParam T1 - type to check
|
|
863
|
+
* @typeParam T2 - type to check against
|
|
864
|
+
* ```
|
|
865
|
+
* IsEqual<string, string> = true
|
|
866
|
+
* IsEqual<'foo', 'foo'> = true
|
|
867
|
+
* IsEqual<string, number> = false
|
|
868
|
+
* IsEqual<string, number> = false
|
|
869
|
+
* IsEqual<string, 'foo'> = false
|
|
870
|
+
* IsEqual<'foo', string> = false
|
|
871
|
+
* IsEqual<'foo' | 'bar', 'foo'> = boolean // 'foo' is assignable, but 'bar' is not (true | false) -> boolean
|
|
872
|
+
* ```
|
|
873
|
+
*/
|
|
874
|
+
type IsEqual<T1, T2> = T1 extends T2 ? (<G>() => G extends T1 ? 1 : 2) extends (<G>() => G extends T2 ? 1 : 2) ? true : false : false;
|
|
875
|
+
type DeepMap<T, TValue> = IsAny<T> extends true ? any : T extends BrowserNativeObject | NestedValue ? TValue : T extends object ? { [K in keyof T]: DeepMap<NonUndefined<T[K]>, TValue> } : TValue;
|
|
876
|
+
type IsFlatObject<T extends object> = Extract<Exclude<T[keyof T], NestedValue | Date | FileList$1>, any[] | object> extends never ? true : false;
|
|
877
|
+
type Merge<A, B> = { [K in keyof A | keyof B]?: K extends keyof A & keyof B ? [A[K], B[K]] extends [object, object] ? Merge<A[K], B[K]> : B[K] : K extends keyof A ? A[K] : K extends keyof B ? B[K] : never };
|
|
878
|
+
//#endregion
|
|
879
|
+
//#region ../../node_modules/react-hook-form/dist/types/fields.d.ts
|
|
880
|
+
type InternalFieldName = string;
|
|
881
|
+
type FieldName<TFieldValues extends FieldValues> = IsFlatObject<TFieldValues> extends true ? Extract<keyof TFieldValues, string> : string;
|
|
882
|
+
type CustomElement<TFieldValues extends FieldValues> = Partial<HTMLElement> & {
|
|
883
|
+
name: FieldName<TFieldValues>;
|
|
884
|
+
type?: string;
|
|
885
|
+
value?: any;
|
|
886
|
+
disabled?: boolean;
|
|
887
|
+
checked?: boolean;
|
|
888
|
+
options?: HTMLOptionsCollection;
|
|
889
|
+
files?: FileList | null;
|
|
890
|
+
focus?: Noop;
|
|
891
|
+
};
|
|
892
|
+
type FieldValues = Record<string, any>;
|
|
893
|
+
type FieldElement<TFieldValues extends FieldValues = FieldValues> = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement | CustomElement<TFieldValues>;
|
|
894
|
+
type Ref$1 = FieldElement;
|
|
895
|
+
type Field = {
|
|
896
|
+
_f: {
|
|
897
|
+
ref: Ref$1;
|
|
898
|
+
name: InternalFieldName;
|
|
899
|
+
refs?: HTMLInputElement[];
|
|
900
|
+
mount?: boolean;
|
|
901
|
+
} & RegisterOptions;
|
|
902
|
+
};
|
|
903
|
+
type FieldRefs = Partial<{
|
|
904
|
+
[key: InternalFieldName]: Field | FieldRefs;
|
|
905
|
+
}>;
|
|
906
|
+
//#endregion
|
|
907
|
+
//#region ../../node_modules/react-hook-form/dist/types/errors.d.ts
|
|
908
|
+
type Message = string;
|
|
909
|
+
type MultipleFieldErrors = { [K in keyof RegisterOptions]?: ValidateResult } & {
|
|
910
|
+
[key: string]: ValidateResult;
|
|
911
|
+
};
|
|
912
|
+
type FieldError = {
|
|
913
|
+
type: LiteralUnion<keyof RegisterOptions, string>;
|
|
914
|
+
root?: FieldError;
|
|
915
|
+
ref?: Ref$1;
|
|
916
|
+
types?: MultipleFieldErrors;
|
|
917
|
+
message?: Message;
|
|
918
|
+
};
|
|
919
|
+
type ErrorOption = {
|
|
920
|
+
message?: Message;
|
|
921
|
+
type?: LiteralUnion<keyof RegisterOptions, string>;
|
|
922
|
+
types?: MultipleFieldErrors;
|
|
923
|
+
};
|
|
924
|
+
type DeepRequired<T> = T extends BrowserNativeObject | Blob ? T : { [K in keyof T]-?: NonNullable<DeepRequired<T[K]>> };
|
|
925
|
+
type FieldErrorsImpl<T extends FieldValues = FieldValues> = { [K in keyof T]?: T[K] extends BrowserNativeObject | Blob ? FieldError : K extends 'root' | `root.${string}` ? GlobalError : T[K] extends object ? Merge<FieldError, FieldErrorsImpl<T[K]>> : FieldError };
|
|
926
|
+
type GlobalError = Partial<{
|
|
927
|
+
type: string | number;
|
|
928
|
+
message: Message;
|
|
929
|
+
}>;
|
|
930
|
+
type FieldErrors<T extends FieldValues = FieldValues> = Partial<FieldValues extends IsAny<FieldValues> ? any : FieldErrorsImpl<DeepRequired<T>>> & {
|
|
931
|
+
root?: Record<string, GlobalError> & GlobalError;
|
|
932
|
+
};
|
|
933
|
+
//#endregion
|
|
934
|
+
//#region ../../node_modules/react-hook-form/dist/types/validator.d.ts
|
|
935
|
+
type ValidationValue = boolean | number | string | RegExp;
|
|
936
|
+
type ValidationRule<TValidationValue extends ValidationValue = ValidationValue> = TValidationValue | ValidationValueMessage<TValidationValue>;
|
|
937
|
+
type ValidationValueMessage<TValidationValue extends ValidationValue = ValidationValue> = {
|
|
938
|
+
value: TValidationValue;
|
|
939
|
+
message: Message;
|
|
940
|
+
};
|
|
941
|
+
type ValidateResult = Message | Message[] | boolean | undefined;
|
|
942
|
+
type Validate<TFieldValue, TFormValues> = (value: TFieldValue, formValues: TFormValues) => ValidateResult | Promise<ValidateResult>;
|
|
943
|
+
type RegisterOptions<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = Partial<{
|
|
944
|
+
required: Message | ValidationRule<boolean>;
|
|
945
|
+
min: ValidationRule<number | string>;
|
|
946
|
+
max: ValidationRule<number | string>;
|
|
947
|
+
maxLength: ValidationRule<number>;
|
|
948
|
+
minLength: ValidationRule<number>;
|
|
949
|
+
validate: Validate<FieldPathValue<TFieldValues, TFieldName>, TFieldValues> | Record<string, Validate<FieldPathValue<TFieldValues, TFieldName>, TFieldValues>>;
|
|
950
|
+
value: FieldPathValue<TFieldValues, TFieldName>;
|
|
951
|
+
setValueAs: (value: any) => any;
|
|
952
|
+
shouldUnregister?: boolean;
|
|
953
|
+
onChange?: (event: any) => void;
|
|
954
|
+
onBlur?: (event: any) => void;
|
|
955
|
+
disabled: boolean;
|
|
956
|
+
deps: FieldPath<TFieldValues> | FieldPath<TFieldValues>[];
|
|
957
|
+
}> & ({
|
|
958
|
+
pattern?: ValidationRule<RegExp>;
|
|
959
|
+
valueAsNumber?: false;
|
|
960
|
+
valueAsDate?: false;
|
|
961
|
+
} | {
|
|
962
|
+
pattern?: undefined;
|
|
963
|
+
valueAsNumber?: false;
|
|
964
|
+
valueAsDate?: true;
|
|
965
|
+
} | {
|
|
966
|
+
pattern?: undefined;
|
|
967
|
+
valueAsNumber?: true;
|
|
968
|
+
valueAsDate?: false;
|
|
969
|
+
});
|
|
970
|
+
//#endregion
|
|
971
|
+
//#region components/Slider/SliderRHF.d.ts
|
|
972
|
+
interface SliderRHFProps extends ComponentPropsWithoutRef<typeof Slider> {
|
|
973
|
+
control: Control<FieldValues, object>;
|
|
974
|
+
name: string;
|
|
975
|
+
}
|
|
976
|
+
declare const SliderRHF: ({
|
|
977
|
+
control,
|
|
978
|
+
name: nameProp,
|
|
979
|
+
defaultValue,
|
|
980
|
+
...elemProps
|
|
981
|
+
}: SliderRHFProps) => _$react_jsx_runtime0.JSX.Element;
|
|
982
|
+
//#endregion
|
|
983
|
+
export { SliderRHF as t };
|
|
984
|
+
//# sourceMappingURL=SliderRHF-DIV-tCEv.d.mts.map
|