@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,32 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("../chunk-CoPdw6nB.cjs");
|
|
3
|
+
//#region lib/pseudoClass.ts
|
|
4
|
+
const isDisabled = ({ disabled }) => disabled ? "" : ":disabled";
|
|
5
|
+
const isNotDisabled = ({ disabled }) => disabled ? ":not(*)" : ":not(:disabled)";
|
|
6
|
+
const isHovered = ({ hovered }) => hovered ? "" : ":hover";
|
|
7
|
+
const isNotHovered = ({ hovered }) => hovered ? ":not(*)" : ":not(:hover)";
|
|
8
|
+
const isFocused = ({ focused }) => focused ? "" : ":focus";
|
|
9
|
+
const isNotFocused = ({ focused }) => focused ? ":not(*)" : ":not(:focus)";
|
|
10
|
+
const isFocusedVisible = ({ focused }) => focused ? "" : ":focus-visible";
|
|
11
|
+
const isNotFocusedVisible = ({ focused }) => focused ? ":not(*)" : ":not(:focus-visible)";
|
|
12
|
+
const isActive = ({ active }) => active ? "" : ":focus-within";
|
|
13
|
+
const isNotActive = ({ active }) => active ? ":not(*)" : ":not(:focus-within)";
|
|
14
|
+
const isChecked = ({ checked }) => checked ? "" : ":checked";
|
|
15
|
+
const isIndeterminate = ({ mixed }) => mixed ? "" : ":indeterminate";
|
|
16
|
+
const isNotChecked = ({ checked }) => checked ? ":not(*)" : ":not(:checked)";
|
|
17
|
+
//#endregion
|
|
18
|
+
exports.isActive = isActive;
|
|
19
|
+
exports.isChecked = isChecked;
|
|
20
|
+
exports.isDisabled = isDisabled;
|
|
21
|
+
exports.isFocused = isFocused;
|
|
22
|
+
exports.isFocusedVisible = isFocusedVisible;
|
|
23
|
+
exports.isHovered = isHovered;
|
|
24
|
+
exports.isIndeterminate = isIndeterminate;
|
|
25
|
+
exports.isNotActive = isNotActive;
|
|
26
|
+
exports.isNotChecked = isNotChecked;
|
|
27
|
+
exports.isNotDisabled = isNotDisabled;
|
|
28
|
+
exports.isNotFocused = isNotFocused;
|
|
29
|
+
exports.isNotFocusedVisible = isNotFocusedVisible;
|
|
30
|
+
exports.isNotHovered = isNotHovered;
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=pseudoClass.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pseudoClass.cjs","names":[],"sources":["../../lib/pseudoClass.ts"],"sourcesContent":["/**\n * @file Contains utility functions that allow targeting pseudo-classes with props.\n * When used, allows props.active to act like :active, etc.\n *\n * When used, a preceding ampersand is needed.\n * `&${isHovered}${isNotActive}`\n */\nimport type PseudoClassProps from 'design-system/types/PseudoClassProps';\n\nexport const isDisabled = ({ disabled }: PseudoClassProps) => (disabled ? '' : ':disabled');\nexport const isNotDisabled = ({ disabled }: PseudoClassProps) =>\n disabled ? ':not(*)' : ':not(:disabled)';\n\nexport const isHovered = ({ hovered }: PseudoClassProps) => (hovered ? '' : ':hover');\nexport const isNotHovered = ({ hovered }: PseudoClassProps) =>\n hovered ? ':not(*)' : ':not(:hover)';\n\nexport const isFocused = ({ focused }: PseudoClassProps) => (focused ? '' : ':focus');\nexport const isNotFocused = ({ focused }: PseudoClassProps) =>\n focused ? ':not(*)' : ':not(:focus)';\n\nexport const isFocusedVisible = ({ focused }: PseudoClassProps) =>\n focused ? '' : ':focus-visible';\nexport const isNotFocusedVisible = ({ focused }: PseudoClassProps) =>\n focused ? ':not(*)' : ':not(:focus-visible)';\n\nexport const isActive = ({ active }: PseudoClassProps) => (active ? '' : ':focus-within');\nexport const isNotActive = ({ active }: PseudoClassProps) =>\n active ? ':not(*)' : ':not(:focus-within)';\n\nexport const isChecked = ({ checked }: PseudoClassProps) => (checked ? '' : ':checked');\nexport const isIndeterminate = ({ mixed }: PseudoClassProps) => (mixed ? '' : ':indeterminate');\nexport const isNotChecked = ({ checked }: PseudoClassProps) =>\n checked ? ':not(*)' : ':not(:checked)';\n"],"mappings":";;;AASA,MAAa,cAAc,EAAE,eAAkC,WAAW,KAAK;AAC/E,MAAa,iBAAiB,EAAE,eAC9B,WAAW,YAAY;AAEzB,MAAa,aAAa,EAAE,cAAiC,UAAU,KAAK;AAC5E,MAAa,gBAAgB,EAAE,cAC7B,UAAU,YAAY;AAExB,MAAa,aAAa,EAAE,cAAiC,UAAU,KAAK;AAC5E,MAAa,gBAAgB,EAAE,cAC7B,UAAU,YAAY;AAExB,MAAa,oBAAoB,EAAE,cACjC,UAAU,KAAK;AACjB,MAAa,uBAAuB,EAAE,cACpC,UAAU,YAAY;AAExB,MAAa,YAAY,EAAE,aAAgC,SAAS,KAAK;AACzE,MAAa,eAAe,EAAE,aAC5B,SAAS,YAAY;AAEvB,MAAa,aAAa,EAAE,cAAiC,UAAU,KAAK;AAC5E,MAAa,mBAAmB,EAAE,YAA+B,QAAQ,KAAK;AAC9E,MAAa,gBAAgB,EAAE,cAC7B,UAAU,YAAY"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { t as PseudoClassProps } from "../PseudoClassProps-C5jpj6Rp.cjs";
|
|
2
|
+
|
|
3
|
+
//#region lib/pseudoClass.d.ts
|
|
4
|
+
declare const isDisabled: ({
|
|
5
|
+
disabled
|
|
6
|
+
}: PseudoClassProps) => ":disabled" | "";
|
|
7
|
+
declare const isNotDisabled: ({
|
|
8
|
+
disabled
|
|
9
|
+
}: PseudoClassProps) => ":not(*)" | ":not(:disabled)";
|
|
10
|
+
declare const isHovered: ({
|
|
11
|
+
hovered
|
|
12
|
+
}: PseudoClassProps) => ":hover" | "";
|
|
13
|
+
declare const isNotHovered: ({
|
|
14
|
+
hovered
|
|
15
|
+
}: PseudoClassProps) => ":not(*)" | ":not(:hover)";
|
|
16
|
+
declare const isFocused: ({
|
|
17
|
+
focused
|
|
18
|
+
}: PseudoClassProps) => ":focus" | "";
|
|
19
|
+
declare const isNotFocused: ({
|
|
20
|
+
focused
|
|
21
|
+
}: PseudoClassProps) => ":not(*)" | ":not(:focus)";
|
|
22
|
+
declare const isFocusedVisible: ({
|
|
23
|
+
focused
|
|
24
|
+
}: PseudoClassProps) => ":focus-visible" | "";
|
|
25
|
+
declare const isNotFocusedVisible: ({
|
|
26
|
+
focused
|
|
27
|
+
}: PseudoClassProps) => ":not(*)" | ":not(:focus-visible)";
|
|
28
|
+
declare const isActive: ({
|
|
29
|
+
active
|
|
30
|
+
}: PseudoClassProps) => ":focus-within" | "";
|
|
31
|
+
declare const isNotActive: ({
|
|
32
|
+
active
|
|
33
|
+
}: PseudoClassProps) => ":not(*)" | ":not(:focus-within)";
|
|
34
|
+
declare const isChecked: ({
|
|
35
|
+
checked
|
|
36
|
+
}: PseudoClassProps) => ":checked" | "";
|
|
37
|
+
declare const isIndeterminate: ({
|
|
38
|
+
mixed
|
|
39
|
+
}: PseudoClassProps) => ":indeterminate" | "";
|
|
40
|
+
declare const isNotChecked: ({
|
|
41
|
+
checked
|
|
42
|
+
}: PseudoClassProps) => ":not(*)" | ":not(:checked)";
|
|
43
|
+
//#endregion
|
|
44
|
+
export { isActive, isChecked, isDisabled, isFocused, isFocusedVisible, isHovered, isIndeterminate, isNotActive, isNotChecked, isNotDisabled, isNotFocused, isNotFocusedVisible, isNotHovered };
|
|
45
|
+
//# sourceMappingURL=pseudoClass.d.cts.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { t as PseudoClassProps } from "../PseudoClassProps-mZgO_iZJ.mjs";
|
|
2
|
+
|
|
3
|
+
//#region lib/pseudoClass.d.ts
|
|
4
|
+
declare const isDisabled: ({
|
|
5
|
+
disabled
|
|
6
|
+
}: PseudoClassProps) => ":disabled" | "";
|
|
7
|
+
declare const isNotDisabled: ({
|
|
8
|
+
disabled
|
|
9
|
+
}: PseudoClassProps) => ":not(*)" | ":not(:disabled)";
|
|
10
|
+
declare const isHovered: ({
|
|
11
|
+
hovered
|
|
12
|
+
}: PseudoClassProps) => ":hover" | "";
|
|
13
|
+
declare const isNotHovered: ({
|
|
14
|
+
hovered
|
|
15
|
+
}: PseudoClassProps) => ":not(*)" | ":not(:hover)";
|
|
16
|
+
declare const isFocused: ({
|
|
17
|
+
focused
|
|
18
|
+
}: PseudoClassProps) => ":focus" | "";
|
|
19
|
+
declare const isNotFocused: ({
|
|
20
|
+
focused
|
|
21
|
+
}: PseudoClassProps) => ":not(*)" | ":not(:focus)";
|
|
22
|
+
declare const isFocusedVisible: ({
|
|
23
|
+
focused
|
|
24
|
+
}: PseudoClassProps) => ":focus-visible" | "";
|
|
25
|
+
declare const isNotFocusedVisible: ({
|
|
26
|
+
focused
|
|
27
|
+
}: PseudoClassProps) => ":not(*)" | ":not(:focus-visible)";
|
|
28
|
+
declare const isActive: ({
|
|
29
|
+
active
|
|
30
|
+
}: PseudoClassProps) => ":focus-within" | "";
|
|
31
|
+
declare const isNotActive: ({
|
|
32
|
+
active
|
|
33
|
+
}: PseudoClassProps) => ":not(*)" | ":not(:focus-within)";
|
|
34
|
+
declare const isChecked: ({
|
|
35
|
+
checked
|
|
36
|
+
}: PseudoClassProps) => ":checked" | "";
|
|
37
|
+
declare const isIndeterminate: ({
|
|
38
|
+
mixed
|
|
39
|
+
}: PseudoClassProps) => ":indeterminate" | "";
|
|
40
|
+
declare const isNotChecked: ({
|
|
41
|
+
checked
|
|
42
|
+
}: PseudoClassProps) => ":not(*)" | ":not(:checked)";
|
|
43
|
+
//#endregion
|
|
44
|
+
export { isActive, isChecked, isDisabled, isFocused, isFocusedVisible, isHovered, isIndeterminate, isNotActive, isNotChecked, isNotDisabled, isNotFocused, isNotFocusedVisible, isNotHovered };
|
|
45
|
+
//# sourceMappingURL=pseudoClass.d.mts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region lib/pseudoClass.ts
|
|
2
|
+
const isDisabled = ({ disabled }) => disabled ? "" : ":disabled";
|
|
3
|
+
const isNotDisabled = ({ disabled }) => disabled ? ":not(*)" : ":not(:disabled)";
|
|
4
|
+
const isHovered = ({ hovered }) => hovered ? "" : ":hover";
|
|
5
|
+
const isNotHovered = ({ hovered }) => hovered ? ":not(*)" : ":not(:hover)";
|
|
6
|
+
const isFocused = ({ focused }) => focused ? "" : ":focus";
|
|
7
|
+
const isNotFocused = ({ focused }) => focused ? ":not(*)" : ":not(:focus)";
|
|
8
|
+
const isFocusedVisible = ({ focused }) => focused ? "" : ":focus-visible";
|
|
9
|
+
const isNotFocusedVisible = ({ focused }) => focused ? ":not(*)" : ":not(:focus-visible)";
|
|
10
|
+
const isActive = ({ active }) => active ? "" : ":focus-within";
|
|
11
|
+
const isNotActive = ({ active }) => active ? ":not(*)" : ":not(:focus-within)";
|
|
12
|
+
const isChecked = ({ checked }) => checked ? "" : ":checked";
|
|
13
|
+
const isIndeterminate = ({ mixed }) => mixed ? "" : ":indeterminate";
|
|
14
|
+
const isNotChecked = ({ checked }) => checked ? ":not(*)" : ":not(:checked)";
|
|
15
|
+
//#endregion
|
|
16
|
+
export { isActive, isChecked, isDisabled, isFocused, isFocusedVisible, isHovered, isIndeterminate, isNotActive, isNotChecked, isNotDisabled, isNotFocused, isNotFocusedVisible, isNotHovered };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=pseudoClass.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pseudoClass.mjs","names":[],"sources":["../../lib/pseudoClass.ts"],"sourcesContent":["/**\n * @file Contains utility functions that allow targeting pseudo-classes with props.\n * When used, allows props.active to act like :active, etc.\n *\n * When used, a preceding ampersand is needed.\n * `&${isHovered}${isNotActive}`\n */\nimport type PseudoClassProps from 'design-system/types/PseudoClassProps';\n\nexport const isDisabled = ({ disabled }: PseudoClassProps) => (disabled ? '' : ':disabled');\nexport const isNotDisabled = ({ disabled }: PseudoClassProps) =>\n disabled ? ':not(*)' : ':not(:disabled)';\n\nexport const isHovered = ({ hovered }: PseudoClassProps) => (hovered ? '' : ':hover');\nexport const isNotHovered = ({ hovered }: PseudoClassProps) =>\n hovered ? ':not(*)' : ':not(:hover)';\n\nexport const isFocused = ({ focused }: PseudoClassProps) => (focused ? '' : ':focus');\nexport const isNotFocused = ({ focused }: PseudoClassProps) =>\n focused ? ':not(*)' : ':not(:focus)';\n\nexport const isFocusedVisible = ({ focused }: PseudoClassProps) =>\n focused ? '' : ':focus-visible';\nexport const isNotFocusedVisible = ({ focused }: PseudoClassProps) =>\n focused ? ':not(*)' : ':not(:focus-visible)';\n\nexport const isActive = ({ active }: PseudoClassProps) => (active ? '' : ':focus-within');\nexport const isNotActive = ({ active }: PseudoClassProps) =>\n active ? ':not(*)' : ':not(:focus-within)';\n\nexport const isChecked = ({ checked }: PseudoClassProps) => (checked ? '' : ':checked');\nexport const isIndeterminate = ({ mixed }: PseudoClassProps) => (mixed ? '' : ':indeterminate');\nexport const isNotChecked = ({ checked }: PseudoClassProps) =>\n checked ? ':not(*)' : ':not(:checked)';\n"],"mappings":";AASA,MAAa,cAAc,EAAE,eAAkC,WAAW,KAAK;AAC/E,MAAa,iBAAiB,EAAE,eAC9B,WAAW,YAAY;AAEzB,MAAa,aAAa,EAAE,cAAiC,UAAU,KAAK;AAC5E,MAAa,gBAAgB,EAAE,cAC7B,UAAU,YAAY;AAExB,MAAa,aAAa,EAAE,cAAiC,UAAU,KAAK;AAC5E,MAAa,gBAAgB,EAAE,cAC7B,UAAU,YAAY;AAExB,MAAa,oBAAoB,EAAE,cACjC,UAAU,KAAK;AACjB,MAAa,uBAAuB,EAAE,cACpC,UAAU,YAAY;AAExB,MAAa,YAAY,EAAE,aAAgC,SAAS,KAAK;AACzE,MAAa,eAAe,EAAE,aAC5B,SAAS,YAAY;AAEvB,MAAa,aAAa,EAAE,cAAiC,UAAU,KAAK;AAC5E,MAAa,mBAAmB,EAAE,YAA+B,QAAQ,KAAK;AAC9E,MAAa,gBAAgB,EAAE,cAC7B,UAAU,YAAY"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("../../chunk-CoPdw6nB.cjs");
|
|
3
|
+
const require_lib_register_ids = require("./ids.cjs");
|
|
4
|
+
let react = require("react");
|
|
5
|
+
//#region lib/register/RegisterComponent.ts
|
|
6
|
+
const ComponentRegisterContext = (0, react.createContext)({ register: () => void 0 });
|
|
7
|
+
const ComponentRegisterProvider = ComponentRegisterContext.Provider;
|
|
8
|
+
/**
|
|
9
|
+
* Coerce any value into a string for the descriptor's `value` field.
|
|
10
|
+
* Recursively flattens arrays, filters nullish entries, and JSON-serializes objects.
|
|
11
|
+
*/
|
|
12
|
+
function normalizeValue(value) {
|
|
13
|
+
if (value == null) return;
|
|
14
|
+
if (typeof value === "string") return value;
|
|
15
|
+
if (typeof value === "number" || typeof value === "boolean") return String(value);
|
|
16
|
+
if (Array.isArray(value)) return value.map(normalizeValue).filter(Boolean).join(", ");
|
|
17
|
+
if (typeof value === "object") return JSON.stringify(value);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Assign a value to a React ref (handles both callback refs and RefObjects).
|
|
21
|
+
*/
|
|
22
|
+
function setRef(ref, value) {
|
|
23
|
+
if (typeof ref === "function") ref(value);
|
|
24
|
+
else if (ref != null && typeof ref === "object") ref.current = value;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Registers a DS component with a component control system (e.g. the agent UI tree).
|
|
28
|
+
*
|
|
29
|
+
* Returns a ref to put directly on the DOM element. If a forwarded `ref`
|
|
30
|
+
* is passed in the descriptor, it will be merged automatically.
|
|
31
|
+
*
|
|
32
|
+
* When the forwarded ref is a RefObject, the same object is returned so the
|
|
33
|
+
* caller's ref identity is preserved. When it is a callback ref (or absent),
|
|
34
|
+
* a stable callback ref is returned that merges both.
|
|
35
|
+
*
|
|
36
|
+
* The hook is a no-op when no ComponentRegisterProvider is present.
|
|
37
|
+
*/
|
|
38
|
+
function useComponentRegister(descriptor) {
|
|
39
|
+
const control = (0, react.useContext)(ComponentRegisterContext);
|
|
40
|
+
const elementRef = (0, react.useRef)(null);
|
|
41
|
+
const id = require_lib_register_ids.getStableId(elementRef, descriptor.description);
|
|
42
|
+
const forwardedRef = descriptor.ref;
|
|
43
|
+
const refIsObject = forwardedRef != null && typeof forwardedRef !== "function";
|
|
44
|
+
const forwardedRefRef = (0, react.useRef)(forwardedRef);
|
|
45
|
+
if (forwardedRefRef.current !== forwardedRef) {
|
|
46
|
+
if (!refIsObject) {
|
|
47
|
+
setRef(forwardedRefRef.current, null);
|
|
48
|
+
setRef(forwardedRef, elementRef.current);
|
|
49
|
+
}
|
|
50
|
+
forwardedRefRef.current = forwardedRef;
|
|
51
|
+
}
|
|
52
|
+
const callbackRef = (0, react.useCallback)((el) => {
|
|
53
|
+
elementRef.current = el;
|
|
54
|
+
setRef(forwardedRefRef.current, el);
|
|
55
|
+
}, []);
|
|
56
|
+
(0, react.useLayoutEffect)(() => {
|
|
57
|
+
if (refIsObject && forwardedRef && typeof forwardedRef === "object") elementRef.current = forwardedRef.current;
|
|
58
|
+
});
|
|
59
|
+
const onActionRef = (0, react.useRef)(descriptor.onAction);
|
|
60
|
+
onActionRef.current = descriptor.onAction;
|
|
61
|
+
const stableOnAction = (0, react.useRef)((...args) => onActionRef.current?.(...args, elementRef)).current;
|
|
62
|
+
const normalizedValue = normalizeValue(descriptor.value);
|
|
63
|
+
const { type, description, options, multiple, enabled = true } = descriptor;
|
|
64
|
+
const hasOnAction = descriptor.onAction != null;
|
|
65
|
+
(0, react.useEffect)(() => {
|
|
66
|
+
if (!enabled) return;
|
|
67
|
+
const normalized = {
|
|
68
|
+
...descriptor,
|
|
69
|
+
value: normalizedValue,
|
|
70
|
+
...hasOnAction && { onAction: stableOnAction }
|
|
71
|
+
};
|
|
72
|
+
return control.register(id, normalized);
|
|
73
|
+
}, [
|
|
74
|
+
control,
|
|
75
|
+
id,
|
|
76
|
+
type,
|
|
77
|
+
description,
|
|
78
|
+
normalizedValue,
|
|
79
|
+
enabled,
|
|
80
|
+
stableOnAction,
|
|
81
|
+
hasOnAction,
|
|
82
|
+
options,
|
|
83
|
+
multiple
|
|
84
|
+
]);
|
|
85
|
+
return refIsObject ? forwardedRef : callbackRef;
|
|
86
|
+
}
|
|
87
|
+
//#endregion
|
|
88
|
+
exports.ComponentRegisterProvider = ComponentRegisterProvider;
|
|
89
|
+
exports.useComponentRegister = useComponentRegister;
|
|
90
|
+
|
|
91
|
+
//# sourceMappingURL=RegisterComponent.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RegisterComponent.cjs","names":["getStableId"],"sources":["../../../lib/register/RegisterComponent.ts"],"sourcesContent":["import { getStableId } from '@persona/design-system/lib/register/ids';\nimport type { ComponentDescriptor } from '@persona/design-system/lib/register/types';\nimport {\n createContext,\n useCallback,\n useContext,\n useEffect,\n useLayoutEffect,\n useRef,\n type Ref,\n} from 'react';\n\n/**\n * Interface consumed by `useComponentRegister` to announce components.\n *\n * Implement this and provide it via `ComponentRegisterProvider` to receive\n * registration calls. `register` returns an optional cleanup function\n * that the hook calls on unmount or re-registration.\n */\nexport type ComponentRegister = {\n register(id: string, descriptor: ComponentDescriptor): (() => void) | undefined;\n};\n\n/** Default no-op register — used when no provider is in the tree. */\nconst initState: ComponentRegister = {\n register: () => undefined,\n};\n\nconst ComponentRegisterContext = createContext<ComponentRegister>(initState);\n\nexport const ComponentRegisterProvider = ComponentRegisterContext.Provider;\n\n/**\n * Coerce any value into a string for the descriptor's `value` field.\n * Recursively flattens arrays, filters nullish entries, and JSON-serializes objects.\n */\nfunction normalizeValue(value: unknown): string | undefined {\n if (value == null) {\n return undefined;\n }\n if (typeof value === 'string') {\n return value;\n }\n if (typeof value === 'number' || typeof value === 'boolean') {\n return String(value);\n }\n if (Array.isArray(value)) {\n return value.map(normalizeValue).filter(Boolean).join(', ');\n }\n if (typeof value === 'object') {\n return JSON.stringify(value);\n }\n return undefined;\n}\n\n/**\n * Assign a value to a React ref (handles both callback refs and RefObjects).\n */\nfunction setRef<T>(ref: Ref<T> | undefined, value: T | null): void {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref != null && typeof ref === 'object') {\n (ref as React.MutableRefObject<T | null>).current = value;\n }\n}\n\n/**\n * Registers a DS component with a component control system (e.g. the agent UI tree).\n *\n * Returns a ref to put directly on the DOM element. If a forwarded `ref`\n * is passed in the descriptor, it will be merged automatically.\n *\n * When the forwarded ref is a RefObject, the same object is returned so the\n * caller's ref identity is preserved. When it is a callback ref (or absent),\n * a stable callback ref is returned that merges both.\n *\n * The hook is a no-op when no ComponentRegisterProvider is present.\n */\nexport function useComponentRegister<T extends HTMLElement = HTMLElement>(\n descriptor: ComponentDescriptor & { ref?: Ref<T> },\n): Ref<T> {\n const control = useContext(ComponentRegisterContext);\n const elementRef = useRef<HTMLElement | null>(null);\n\n const id = getStableId(elementRef, descriptor.description);\n\n const forwardedRef = descriptor.ref;\n const refIsObject = forwardedRef != null && typeof forwardedRef !== 'function';\n\n // Store the forwarded ref so the callback ref can assign to it.\n // When the forwarded ref changes, detach the old and attach the new.\n const forwardedRefRef = useRef(forwardedRef);\n if (forwardedRefRef.current !== forwardedRef) {\n if (!refIsObject) {\n setRef(forwardedRefRef.current, null);\n setRef(forwardedRef, elementRef.current);\n }\n forwardedRefRef.current = forwardedRef;\n }\n\n // Stable callback ref that merges our internal ref with the forwarded ref.\n // Used only when the forwarded ref is a callback or absent.\n const callbackRef = useCallback((el: HTMLElement | null) => {\n elementRef.current = el;\n setRef(forwardedRefRef.current, el);\n }, []);\n\n // When the forwarded ref is a RefObject we return it directly, so React\n // sets .current on it. Sync our internal elementRef after commit.\n useLayoutEffect(() => {\n if (refIsObject && forwardedRef && typeof forwardedRef === 'object') {\n elementRef.current = (forwardedRef as React.RefObject<HTMLElement | null>).current;\n }\n });\n\n // Stabilize onAction via ref so it doesn't cause re-registration.\n const onActionRef = useRef(descriptor.onAction);\n onActionRef.current = descriptor.onAction;\n const stableOnAction = useRef((...args: unknown[]) =>\n (onActionRef.current as ((...a: unknown[]) => unknown) | undefined)?.(...args, elementRef),\n ).current;\n\n const normalizedValue = normalizeValue(descriptor.value);\n const { type, description, options, multiple, enabled = true } = descriptor;\n const hasOnAction = descriptor.onAction != null;\n\n useEffect(() => {\n if (!enabled) {\n return;\n }\n\n const normalized = {\n ...descriptor,\n value: normalizedValue,\n ...(hasOnAction && { onAction: stableOnAction }),\n } as ComponentDescriptor;\n\n return control.register(id, normalized);\n }, [\n control,\n id,\n type,\n description,\n normalizedValue,\n enabled,\n stableOnAction,\n hasOnAction,\n options,\n multiple,\n ]);\n\n return (refIsObject ? forwardedRef : callbackRef) as Ref<T>;\n}\n"],"mappings":";;;;;AA4BA,MAAM,4BAAA,GAAA,MAAA,eAA4D,EAHhE,gBAAgB,KAAA,GAGyD,CAAC;AAE5E,MAAa,4BAA4B,yBAAyB;;;;;AAMlE,SAAS,eAAe,OAAoC;AAC1D,KAAI,SAAS,KACX;AAEF,KAAI,OAAO,UAAU,SACnB,QAAO;AAET,KAAI,OAAO,UAAU,YAAY,OAAO,UAAU,UAChD,QAAO,OAAO,MAAM;AAEtB,KAAI,MAAM,QAAQ,MAAM,CACtB,QAAO,MAAM,IAAI,eAAe,CAAC,OAAO,QAAQ,CAAC,KAAK,KAAK;AAE7D,KAAI,OAAO,UAAU,SACnB,QAAO,KAAK,UAAU,MAAM;;;;;AAQhC,SAAS,OAAU,KAAyB,OAAuB;AACjE,KAAI,OAAO,QAAQ,WACjB,KAAI,MAAM;UACD,OAAO,QAAQ,OAAO,QAAQ,SACtC,KAAyC,UAAU;;;;;;;;;;;;;;AAgBxD,SAAgB,qBACd,YACQ;CACR,MAAM,WAAA,GAAA,MAAA,YAAqB,yBAAyB;CACpD,MAAM,cAAA,GAAA,MAAA,QAAwC,KAAK;CAEnD,MAAM,KAAKA,yBAAAA,YAAY,YAAY,WAAW,YAAY;CAE1D,MAAM,eAAe,WAAW;CAChC,MAAM,cAAc,gBAAgB,QAAQ,OAAO,iBAAiB;CAIpE,MAAM,mBAAA,GAAA,MAAA,QAAyB,aAAa;AAC5C,KAAI,gBAAgB,YAAY,cAAc;AAC5C,MAAI,CAAC,aAAa;AAChB,UAAO,gBAAgB,SAAS,KAAK;AACrC,UAAO,cAAc,WAAW,QAAQ;;AAE1C,kBAAgB,UAAU;;CAK5B,MAAM,eAAA,GAAA,MAAA,cAA2B,OAA2B;AAC1D,aAAW,UAAU;AACrB,SAAO,gBAAgB,SAAS,GAAG;IAClC,EAAE,CAAC;AAIN,EAAA,GAAA,MAAA,uBAAsB;AACpB,MAAI,eAAe,gBAAgB,OAAO,iBAAiB,SACzD,YAAW,UAAW,aAAqD;GAE7E;CAGF,MAAM,eAAA,GAAA,MAAA,QAAqB,WAAW,SAAS;AAC/C,aAAY,UAAU,WAAW;CACjC,MAAM,kBAAA,GAAA,MAAA,SAAyB,GAAG,SAC/B,YAAY,UAAyD,GAAG,MAAM,WAAW,CAC3F,CAAC;CAEF,MAAM,kBAAkB,eAAe,WAAW,MAAM;CACxD,MAAM,EAAE,MAAM,aAAa,SAAS,UAAU,UAAU,SAAS;CACjE,MAAM,cAAc,WAAW,YAAY;AAE3C,EAAA,GAAA,MAAA,iBAAgB;AACd,MAAI,CAAC,QACH;EAGF,MAAM,aAAa;GACjB,GAAG;GACH,OAAO;GACP,GAAI,eAAe,EAAE,UAAU,gBAAgB;GAChD;AAED,SAAO,QAAQ,SAAS,IAAI,WAAW;IACtC;EACD;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,CAAC;AAEF,QAAQ,cAAc,eAAe"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { getStableId } from "./ids.mjs";
|
|
2
|
+
import { createContext, useCallback, useContext, useEffect, useLayoutEffect, useRef } from "react";
|
|
3
|
+
//#region lib/register/RegisterComponent.ts
|
|
4
|
+
const ComponentRegisterContext = createContext({ register: () => void 0 });
|
|
5
|
+
const ComponentRegisterProvider = ComponentRegisterContext.Provider;
|
|
6
|
+
/**
|
|
7
|
+
* Coerce any value into a string for the descriptor's `value` field.
|
|
8
|
+
* Recursively flattens arrays, filters nullish entries, and JSON-serializes objects.
|
|
9
|
+
*/
|
|
10
|
+
function normalizeValue(value) {
|
|
11
|
+
if (value == null) return;
|
|
12
|
+
if (typeof value === "string") return value;
|
|
13
|
+
if (typeof value === "number" || typeof value === "boolean") return String(value);
|
|
14
|
+
if (Array.isArray(value)) return value.map(normalizeValue).filter(Boolean).join(", ");
|
|
15
|
+
if (typeof value === "object") return JSON.stringify(value);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Assign a value to a React ref (handles both callback refs and RefObjects).
|
|
19
|
+
*/
|
|
20
|
+
function setRef(ref, value) {
|
|
21
|
+
if (typeof ref === "function") ref(value);
|
|
22
|
+
else if (ref != null && typeof ref === "object") ref.current = value;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Registers a DS component with a component control system (e.g. the agent UI tree).
|
|
26
|
+
*
|
|
27
|
+
* Returns a ref to put directly on the DOM element. If a forwarded `ref`
|
|
28
|
+
* is passed in the descriptor, it will be merged automatically.
|
|
29
|
+
*
|
|
30
|
+
* When the forwarded ref is a RefObject, the same object is returned so the
|
|
31
|
+
* caller's ref identity is preserved. When it is a callback ref (or absent),
|
|
32
|
+
* a stable callback ref is returned that merges both.
|
|
33
|
+
*
|
|
34
|
+
* The hook is a no-op when no ComponentRegisterProvider is present.
|
|
35
|
+
*/
|
|
36
|
+
function useComponentRegister(descriptor) {
|
|
37
|
+
const control = useContext(ComponentRegisterContext);
|
|
38
|
+
const elementRef = useRef(null);
|
|
39
|
+
const id = getStableId(elementRef, descriptor.description);
|
|
40
|
+
const forwardedRef = descriptor.ref;
|
|
41
|
+
const refIsObject = forwardedRef != null && typeof forwardedRef !== "function";
|
|
42
|
+
const forwardedRefRef = useRef(forwardedRef);
|
|
43
|
+
if (forwardedRefRef.current !== forwardedRef) {
|
|
44
|
+
if (!refIsObject) {
|
|
45
|
+
setRef(forwardedRefRef.current, null);
|
|
46
|
+
setRef(forwardedRef, elementRef.current);
|
|
47
|
+
}
|
|
48
|
+
forwardedRefRef.current = forwardedRef;
|
|
49
|
+
}
|
|
50
|
+
const callbackRef = useCallback((el) => {
|
|
51
|
+
elementRef.current = el;
|
|
52
|
+
setRef(forwardedRefRef.current, el);
|
|
53
|
+
}, []);
|
|
54
|
+
useLayoutEffect(() => {
|
|
55
|
+
if (refIsObject && forwardedRef && typeof forwardedRef === "object") elementRef.current = forwardedRef.current;
|
|
56
|
+
});
|
|
57
|
+
const onActionRef = useRef(descriptor.onAction);
|
|
58
|
+
onActionRef.current = descriptor.onAction;
|
|
59
|
+
const stableOnAction = useRef((...args) => onActionRef.current?.(...args, elementRef)).current;
|
|
60
|
+
const normalizedValue = normalizeValue(descriptor.value);
|
|
61
|
+
const { type, description, options, multiple, enabled = true } = descriptor;
|
|
62
|
+
const hasOnAction = descriptor.onAction != null;
|
|
63
|
+
useEffect(() => {
|
|
64
|
+
if (!enabled) return;
|
|
65
|
+
const normalized = {
|
|
66
|
+
...descriptor,
|
|
67
|
+
value: normalizedValue,
|
|
68
|
+
...hasOnAction && { onAction: stableOnAction }
|
|
69
|
+
};
|
|
70
|
+
return control.register(id, normalized);
|
|
71
|
+
}, [
|
|
72
|
+
control,
|
|
73
|
+
id,
|
|
74
|
+
type,
|
|
75
|
+
description,
|
|
76
|
+
normalizedValue,
|
|
77
|
+
enabled,
|
|
78
|
+
stableOnAction,
|
|
79
|
+
hasOnAction,
|
|
80
|
+
options,
|
|
81
|
+
multiple
|
|
82
|
+
]);
|
|
83
|
+
return refIsObject ? forwardedRef : callbackRef;
|
|
84
|
+
}
|
|
85
|
+
//#endregion
|
|
86
|
+
export { ComponentRegisterProvider, useComponentRegister };
|
|
87
|
+
|
|
88
|
+
//# sourceMappingURL=RegisterComponent.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RegisterComponent.mjs","names":[],"sources":["../../../lib/register/RegisterComponent.ts"],"sourcesContent":["import { getStableId } from '@persona/design-system/lib/register/ids';\nimport type { ComponentDescriptor } from '@persona/design-system/lib/register/types';\nimport {\n createContext,\n useCallback,\n useContext,\n useEffect,\n useLayoutEffect,\n useRef,\n type Ref,\n} from 'react';\n\n/**\n * Interface consumed by `useComponentRegister` to announce components.\n *\n * Implement this and provide it via `ComponentRegisterProvider` to receive\n * registration calls. `register` returns an optional cleanup function\n * that the hook calls on unmount or re-registration.\n */\nexport type ComponentRegister = {\n register(id: string, descriptor: ComponentDescriptor): (() => void) | undefined;\n};\n\n/** Default no-op register — used when no provider is in the tree. */\nconst initState: ComponentRegister = {\n register: () => undefined,\n};\n\nconst ComponentRegisterContext = createContext<ComponentRegister>(initState);\n\nexport const ComponentRegisterProvider = ComponentRegisterContext.Provider;\n\n/**\n * Coerce any value into a string for the descriptor's `value` field.\n * Recursively flattens arrays, filters nullish entries, and JSON-serializes objects.\n */\nfunction normalizeValue(value: unknown): string | undefined {\n if (value == null) {\n return undefined;\n }\n if (typeof value === 'string') {\n return value;\n }\n if (typeof value === 'number' || typeof value === 'boolean') {\n return String(value);\n }\n if (Array.isArray(value)) {\n return value.map(normalizeValue).filter(Boolean).join(', ');\n }\n if (typeof value === 'object') {\n return JSON.stringify(value);\n }\n return undefined;\n}\n\n/**\n * Assign a value to a React ref (handles both callback refs and RefObjects).\n */\nfunction setRef<T>(ref: Ref<T> | undefined, value: T | null): void {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref != null && typeof ref === 'object') {\n (ref as React.MutableRefObject<T | null>).current = value;\n }\n}\n\n/**\n * Registers a DS component with a component control system (e.g. the agent UI tree).\n *\n * Returns a ref to put directly on the DOM element. If a forwarded `ref`\n * is passed in the descriptor, it will be merged automatically.\n *\n * When the forwarded ref is a RefObject, the same object is returned so the\n * caller's ref identity is preserved. When it is a callback ref (or absent),\n * a stable callback ref is returned that merges both.\n *\n * The hook is a no-op when no ComponentRegisterProvider is present.\n */\nexport function useComponentRegister<T extends HTMLElement = HTMLElement>(\n descriptor: ComponentDescriptor & { ref?: Ref<T> },\n): Ref<T> {\n const control = useContext(ComponentRegisterContext);\n const elementRef = useRef<HTMLElement | null>(null);\n\n const id = getStableId(elementRef, descriptor.description);\n\n const forwardedRef = descriptor.ref;\n const refIsObject = forwardedRef != null && typeof forwardedRef !== 'function';\n\n // Store the forwarded ref so the callback ref can assign to it.\n // When the forwarded ref changes, detach the old and attach the new.\n const forwardedRefRef = useRef(forwardedRef);\n if (forwardedRefRef.current !== forwardedRef) {\n if (!refIsObject) {\n setRef(forwardedRefRef.current, null);\n setRef(forwardedRef, elementRef.current);\n }\n forwardedRefRef.current = forwardedRef;\n }\n\n // Stable callback ref that merges our internal ref with the forwarded ref.\n // Used only when the forwarded ref is a callback or absent.\n const callbackRef = useCallback((el: HTMLElement | null) => {\n elementRef.current = el;\n setRef(forwardedRefRef.current, el);\n }, []);\n\n // When the forwarded ref is a RefObject we return it directly, so React\n // sets .current on it. Sync our internal elementRef after commit.\n useLayoutEffect(() => {\n if (refIsObject && forwardedRef && typeof forwardedRef === 'object') {\n elementRef.current = (forwardedRef as React.RefObject<HTMLElement | null>).current;\n }\n });\n\n // Stabilize onAction via ref so it doesn't cause re-registration.\n const onActionRef = useRef(descriptor.onAction);\n onActionRef.current = descriptor.onAction;\n const stableOnAction = useRef((...args: unknown[]) =>\n (onActionRef.current as ((...a: unknown[]) => unknown) | undefined)?.(...args, elementRef),\n ).current;\n\n const normalizedValue = normalizeValue(descriptor.value);\n const { type, description, options, multiple, enabled = true } = descriptor;\n const hasOnAction = descriptor.onAction != null;\n\n useEffect(() => {\n if (!enabled) {\n return;\n }\n\n const normalized = {\n ...descriptor,\n value: normalizedValue,\n ...(hasOnAction && { onAction: stableOnAction }),\n } as ComponentDescriptor;\n\n return control.register(id, normalized);\n }, [\n control,\n id,\n type,\n description,\n normalizedValue,\n enabled,\n stableOnAction,\n hasOnAction,\n options,\n multiple,\n ]);\n\n return (refIsObject ? forwardedRef : callbackRef) as Ref<T>;\n}\n"],"mappings":";;;AA4BA,MAAM,2BAA2B,cAAiC,EAHhE,gBAAgB,KAAA,GAGyD,CAAC;AAE5E,MAAa,4BAA4B,yBAAyB;;;;;AAMlE,SAAS,eAAe,OAAoC;AAC1D,KAAI,SAAS,KACX;AAEF,KAAI,OAAO,UAAU,SACnB,QAAO;AAET,KAAI,OAAO,UAAU,YAAY,OAAO,UAAU,UAChD,QAAO,OAAO,MAAM;AAEtB,KAAI,MAAM,QAAQ,MAAM,CACtB,QAAO,MAAM,IAAI,eAAe,CAAC,OAAO,QAAQ,CAAC,KAAK,KAAK;AAE7D,KAAI,OAAO,UAAU,SACnB,QAAO,KAAK,UAAU,MAAM;;;;;AAQhC,SAAS,OAAU,KAAyB,OAAuB;AACjE,KAAI,OAAO,QAAQ,WACjB,KAAI,MAAM;UACD,OAAO,QAAQ,OAAO,QAAQ,SACtC,KAAyC,UAAU;;;;;;;;;;;;;;AAgBxD,SAAgB,qBACd,YACQ;CACR,MAAM,UAAU,WAAW,yBAAyB;CACpD,MAAM,aAAa,OAA2B,KAAK;CAEnD,MAAM,KAAK,YAAY,YAAY,WAAW,YAAY;CAE1D,MAAM,eAAe,WAAW;CAChC,MAAM,cAAc,gBAAgB,QAAQ,OAAO,iBAAiB;CAIpE,MAAM,kBAAkB,OAAO,aAAa;AAC5C,KAAI,gBAAgB,YAAY,cAAc;AAC5C,MAAI,CAAC,aAAa;AAChB,UAAO,gBAAgB,SAAS,KAAK;AACrC,UAAO,cAAc,WAAW,QAAQ;;AAE1C,kBAAgB,UAAU;;CAK5B,MAAM,cAAc,aAAa,OAA2B;AAC1D,aAAW,UAAU;AACrB,SAAO,gBAAgB,SAAS,GAAG;IAClC,EAAE,CAAC;AAIN,uBAAsB;AACpB,MAAI,eAAe,gBAAgB,OAAO,iBAAiB,SACzD,YAAW,UAAW,aAAqD;GAE7E;CAGF,MAAM,cAAc,OAAO,WAAW,SAAS;AAC/C,aAAY,UAAU,WAAW;CACjC,MAAM,iBAAiB,QAAQ,GAAG,SAC/B,YAAY,UAAyD,GAAG,MAAM,WAAW,CAC3F,CAAC;CAEF,MAAM,kBAAkB,eAAe,WAAW,MAAM;CACxD,MAAM,EAAE,MAAM,aAAa,SAAS,UAAU,UAAU,SAAS;CACjE,MAAM,cAAc,WAAW,YAAY;AAE3C,iBAAgB;AACd,MAAI,CAAC,QACH;EAGF,MAAM,aAAa;GACjB,GAAG;GACH,OAAO;GACP,GAAI,eAAe,EAAE,UAAU,gBAAgB;GAChD;AAED,SAAO,QAAQ,SAAS,IAAI,WAAW;IACtC;EACD;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,CAAC;AAEF,QAAQ,cAAc,eAAe"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("../../chunk-CoPdw6nB.cjs");
|
|
3
|
+
//#region lib/register/ids.ts
|
|
4
|
+
const MAX_HINT_LENGTH = 55;
|
|
5
|
+
function sanitizeId(raw) {
|
|
6
|
+
return raw.toLowerCase().replace(/[^a-z0-9_-]/g, "_").replace(/_+/g, "_").replace(/^_|_$/g, "").slice(0, MAX_HINT_LENGTH) || "unnamed";
|
|
7
|
+
}
|
|
8
|
+
const stableIds = /* @__PURE__ */ new WeakMap();
|
|
9
|
+
let fallbackCounter = 0;
|
|
10
|
+
function randomSuffix() {
|
|
11
|
+
if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") return crypto.randomUUID().slice(0, 8);
|
|
12
|
+
return String(++fallbackCounter).padStart(8, "0");
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Get or create a globally stable ID keyed on any object (typically a React ref).
|
|
16
|
+
* The hint is sanitized and combined with a random suffix for uniqueness.
|
|
17
|
+
* IDs are GC'd when the key object goes out of scope.
|
|
18
|
+
*/
|
|
19
|
+
function getStableId(key, hint) {
|
|
20
|
+
let id = stableIds.get(key);
|
|
21
|
+
if (!id) {
|
|
22
|
+
id = `${sanitizeId(hint || "tool")}_${randomSuffix()}`;
|
|
23
|
+
stableIds.set(key, id);
|
|
24
|
+
}
|
|
25
|
+
return id;
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
exports.getStableId = getStableId;
|
|
29
|
+
exports.sanitizeId = sanitizeId;
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=ids.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ids.cjs","names":[],"sources":["../../../lib/register/ids.ts"],"sourcesContent":["/**\n * Normalize a string into a valid tool/scope ID: lowercase, alphanumeric +\n * underscores/hyphens, no leading/trailing underscores, max 64 chars.\n */\nconst MAX_ID_LENGTH = 64;\nconst SUFFIX_LENGTH = 9; // \"_\" + 8-char random suffix from getStableId\nconst MAX_HINT_LENGTH = MAX_ID_LENGTH - SUFFIX_LENGTH;\n\nexport function sanitizeId(raw: string): string {\n const sanitized = raw\n .toLowerCase()\n .replace(/[^a-z0-9_-]/g, '_')\n .replace(/_+/g, '_')\n .replace(/^_|_$/g, '')\n .slice(0, MAX_HINT_LENGTH);\n return sanitized || 'unnamed';\n}\n\nconst stableIds = new WeakMap<object, string>();\n\nlet fallbackCounter = 0;\n\nfunction randomSuffix(): string {\n if (typeof crypto !== 'undefined' && typeof crypto.randomUUID === 'function') {\n return crypto.randomUUID().slice(0, 8);\n }\n return String(++fallbackCounter).padStart(8, '0');\n}\n\n/**\n * Get or create a globally stable ID keyed on any object (typically a React ref).\n * The hint is sanitized and combined with a random suffix for uniqueness.\n * IDs are GC'd when the key object goes out of scope.\n */\nexport function getStableId(key: object, hint: string): string {\n let id = stableIds.get(key);\n if (!id) {\n id = `${sanitizeId(hint || 'tool')}_${randomSuffix()}`;\n stableIds.set(key, id);\n }\n return id;\n}\n"],"mappings":";;;AAMA,MAAM,kBAAkB;AAExB,SAAgB,WAAW,KAAqB;AAO9C,QANkB,IACf,aAAa,CACb,QAAQ,gBAAgB,IAAI,CAC5B,QAAQ,OAAO,IAAI,CACnB,QAAQ,UAAU,GAAG,CACrB,MAAM,GAAG,gBACI,IAAI;;AAGtB,MAAM,4BAAY,IAAI,SAAyB;AAE/C,IAAI,kBAAkB;AAEtB,SAAS,eAAuB;AAC9B,KAAI,OAAO,WAAW,eAAe,OAAO,OAAO,eAAe,WAChE,QAAO,OAAO,YAAY,CAAC,MAAM,GAAG,EAAE;AAExC,QAAO,OAAO,EAAE,gBAAgB,CAAC,SAAS,GAAG,IAAI;;;;;;;AAQnD,SAAgB,YAAY,KAAa,MAAsB;CAC7D,IAAI,KAAK,UAAU,IAAI,IAAI;AAC3B,KAAI,CAAC,IAAI;AACP,OAAK,GAAG,WAAW,QAAQ,OAAO,CAAC,GAAG,cAAc;AACpD,YAAU,IAAI,KAAK,GAAG;;AAExB,QAAO"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
//#region lib/register/ids.ts
|
|
2
|
+
const MAX_HINT_LENGTH = 55;
|
|
3
|
+
function sanitizeId(raw) {
|
|
4
|
+
return raw.toLowerCase().replace(/[^a-z0-9_-]/g, "_").replace(/_+/g, "_").replace(/^_|_$/g, "").slice(0, MAX_HINT_LENGTH) || "unnamed";
|
|
5
|
+
}
|
|
6
|
+
const stableIds = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
let fallbackCounter = 0;
|
|
8
|
+
function randomSuffix() {
|
|
9
|
+
if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") return crypto.randomUUID().slice(0, 8);
|
|
10
|
+
return String(++fallbackCounter).padStart(8, "0");
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Get or create a globally stable ID keyed on any object (typically a React ref).
|
|
14
|
+
* The hint is sanitized and combined with a random suffix for uniqueness.
|
|
15
|
+
* IDs are GC'd when the key object goes out of scope.
|
|
16
|
+
*/
|
|
17
|
+
function getStableId(key, hint) {
|
|
18
|
+
let id = stableIds.get(key);
|
|
19
|
+
if (!id) {
|
|
20
|
+
id = `${sanitizeId(hint || "tool")}_${randomSuffix()}`;
|
|
21
|
+
stableIds.set(key, id);
|
|
22
|
+
}
|
|
23
|
+
return id;
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { getStableId, sanitizeId };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=ids.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ids.mjs","names":[],"sources":["../../../lib/register/ids.ts"],"sourcesContent":["/**\n * Normalize a string into a valid tool/scope ID: lowercase, alphanumeric +\n * underscores/hyphens, no leading/trailing underscores, max 64 chars.\n */\nconst MAX_ID_LENGTH = 64;\nconst SUFFIX_LENGTH = 9; // \"_\" + 8-char random suffix from getStableId\nconst MAX_HINT_LENGTH = MAX_ID_LENGTH - SUFFIX_LENGTH;\n\nexport function sanitizeId(raw: string): string {\n const sanitized = raw\n .toLowerCase()\n .replace(/[^a-z0-9_-]/g, '_')\n .replace(/_+/g, '_')\n .replace(/^_|_$/g, '')\n .slice(0, MAX_HINT_LENGTH);\n return sanitized || 'unnamed';\n}\n\nconst stableIds = new WeakMap<object, string>();\n\nlet fallbackCounter = 0;\n\nfunction randomSuffix(): string {\n if (typeof crypto !== 'undefined' && typeof crypto.randomUUID === 'function') {\n return crypto.randomUUID().slice(0, 8);\n }\n return String(++fallbackCounter).padStart(8, '0');\n}\n\n/**\n * Get or create a globally stable ID keyed on any object (typically a React ref).\n * The hint is sanitized and combined with a random suffix for uniqueness.\n * IDs are GC'd when the key object goes out of scope.\n */\nexport function getStableId(key: object, hint: string): string {\n let id = stableIds.get(key);\n if (!id) {\n id = `${sanitizeId(hint || 'tool')}_${randomSuffix()}`;\n stableIds.set(key, id);\n }\n return id;\n}\n"],"mappings":";AAMA,MAAM,kBAAkB;AAExB,SAAgB,WAAW,KAAqB;AAO9C,QANkB,IACf,aAAa,CACb,QAAQ,gBAAgB,IAAI,CAC5B,QAAQ,OAAO,IAAI,CACnB,QAAQ,UAAU,GAAG,CACrB,MAAM,GAAG,gBACI,IAAI;;AAGtB,MAAM,4BAAY,IAAI,SAAyB;AAE/C,IAAI,kBAAkB;AAEtB,SAAS,eAAuB;AAC9B,KAAI,OAAO,WAAW,eAAe,OAAO,OAAO,eAAe,WAChE,QAAO,OAAO,YAAY,CAAC,MAAM,GAAG,EAAE;AAExC,QAAO,OAAO,EAAE,gBAAgB,CAAC,SAAS,GAAG,IAAI;;;;;;;AAQnD,SAAgB,YAAY,KAAa,MAAsB;CAC7D,IAAI,KAAK,UAAU,IAAI,IAAI;AAC3B,KAAI,CAAC,IAAI;AACP,OAAK,GAAG,WAAW,QAAQ,OAAO,CAAC,GAAG,cAAc;AACpD,YAAU,IAAI,KAAK,GAAG;;AAExB,QAAO"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("../../chunk-CoPdw6nB.cjs");
|
|
3
|
+
const require_lib_register_ids = require("./ids.cjs");
|
|
4
|
+
const require_lib_register_RegisterComponent = require("./RegisterComponent.cjs");
|
|
5
|
+
exports.ComponentRegisterProvider = require_lib_register_RegisterComponent.ComponentRegisterProvider;
|
|
6
|
+
exports.getStableId = require_lib_register_ids.getStableId;
|
|
7
|
+
exports.sanitizeId = require_lib_register_ids.sanitizeId;
|
|
8
|
+
exports.useComponentRegister = require_lib_register_RegisterComponent.useComponentRegister;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { i as SelectDescriptor, n as ComponentDescriptor, r as InputDescriptor, t as ButtonDescriptor } from "../../types-N-cXznfM.cjs";
|
|
2
|
+
import { n as ComponentRegisterProvider, r as useComponentRegister, t as ComponentRegister } from "../../RegisterComponent-CpXIR-51.cjs";
|
|
3
|
+
import { n as sanitizeId, t as getStableId } from "../../ids-e4V5Y3Ub.cjs";
|
|
4
|
+
export { type ButtonDescriptor, type ComponentDescriptor, type ComponentRegister, ComponentRegisterProvider, type InputDescriptor, type SelectDescriptor, getStableId, sanitizeId, useComponentRegister };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { i as SelectDescriptor, n as ComponentDescriptor, r as InputDescriptor, t as ButtonDescriptor } from "../../types-DzHQ5MGm.mjs";
|
|
2
|
+
import { n as ComponentRegisterProvider, r as useComponentRegister, t as ComponentRegister } from "../../RegisterComponent-BDb43KvI.mjs";
|
|
3
|
+
import { n as sanitizeId, t as getStableId } from "../../ids-Cr-NW2RJ.mjs";
|
|
4
|
+
export { type ButtonDescriptor, type ComponentDescriptor, type ComponentRegister, ComponentRegisterProvider, type InputDescriptor, type SelectDescriptor, getStableId, sanitizeId, useComponentRegister };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require("../../chunk-CoPdw6nB.cjs");
|
|
File without changes
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("../chunk-CoPdw6nB.cjs");
|
|
3
|
+
//#region lib/reorderItems.ts
|
|
4
|
+
/**
|
|
5
|
+
* Pure index-based helpers for reordering an array of items.
|
|
6
|
+
*
|
|
7
|
+
* Shared between drag-and-drop implementations that use different underlying
|
|
8
|
+
* libraries (e.g. React Aria Components' `useDragAndDrop` and @dnd-kit's
|
|
9
|
+
* `useSortable`). Each caller reduces its library-specific event to a pair of
|
|
10
|
+
* indices and then uses `moveItemByIndex` to produce the reordered array.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Returns a new array with the item at `fromIndex` moved to `toIndex`.
|
|
14
|
+
*
|
|
15
|
+
* Returns the original array unchanged when either index is out of bounds or
|
|
16
|
+
* the indices are equal.
|
|
17
|
+
*/
|
|
18
|
+
const moveItemByIndex = (items, fromIndex, toIndex) => {
|
|
19
|
+
if (fromIndex === toIndex || fromIndex < 0 || toIndex < 0 || fromIndex >= items.length || toIndex >= items.length) return items;
|
|
20
|
+
const next = items.slice();
|
|
21
|
+
const [moved] = next.splice(fromIndex, 1);
|
|
22
|
+
next.splice(toIndex, 0, moved);
|
|
23
|
+
return next;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Finds the index of the item whose `keyPath` property stringifies to `key`.
|
|
27
|
+
*
|
|
28
|
+
* Comparison is done via `String(...)` on both sides so callers can pass
|
|
29
|
+
* numeric or string ids interchangeably.
|
|
30
|
+
*/
|
|
31
|
+
const findIndexByKey = (items, keyPath, key) => {
|
|
32
|
+
const target = String(key);
|
|
33
|
+
return items.findIndex((item) => String(item[keyPath]) === target);
|
|
34
|
+
};
|
|
35
|
+
//#endregion
|
|
36
|
+
exports.findIndexByKey = findIndexByKey;
|
|
37
|
+
exports.moveItemByIndex = moveItemByIndex;
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=reorderItems.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reorderItems.cjs","names":[],"sources":["../../lib/reorderItems.ts"],"sourcesContent":["/**\n * Pure index-based helpers for reordering an array of items.\n *\n * Shared between drag-and-drop implementations that use different underlying\n * libraries (e.g. React Aria Components' `useDragAndDrop` and @dnd-kit's\n * `useSortable`). Each caller reduces its library-specific event to a pair of\n * indices and then uses `moveItemByIndex` to produce the reordered array.\n */\n\n/**\n * Returns a new array with the item at `fromIndex` moved to `toIndex`.\n *\n * Returns the original array unchanged when either index is out of bounds or\n * the indices are equal.\n */\nexport const moveItemByIndex = <T>(items: T[], fromIndex: number, toIndex: number): T[] => {\n if (\n fromIndex === toIndex ||\n fromIndex < 0 ||\n toIndex < 0 ||\n fromIndex >= items.length ||\n toIndex >= items.length\n ) {\n return items;\n }\n\n const next = items.slice();\n const [moved] = next.splice(fromIndex, 1);\n next.splice(toIndex, 0, moved);\n return next;\n};\n\n/**\n * Finds the index of the item whose `keyPath` property stringifies to `key`.\n *\n * Comparison is done via `String(...)` on both sides so callers can pass\n * numeric or string ids interchangeably.\n */\nexport const findIndexByKey = <T>(items: T[], keyPath: string, key: string | number): number => {\n const target = String(key);\n return items.findIndex((item) => String((item as Record<string, unknown>)[keyPath]) === target);\n};\n"],"mappings":";;;;;;;;;;;;;;;;;AAeA,MAAa,mBAAsB,OAAY,WAAmB,YAAyB;AACzF,KACE,cAAc,WACd,YAAY,KACZ,UAAU,KACV,aAAa,MAAM,UACnB,WAAW,MAAM,OAEjB,QAAO;CAGT,MAAM,OAAO,MAAM,OAAO;CAC1B,MAAM,CAAC,SAAS,KAAK,OAAO,WAAW,EAAE;AACzC,MAAK,OAAO,SAAS,GAAG,MAAM;AAC9B,QAAO;;;;;;;;AAST,MAAa,kBAAqB,OAAY,SAAiB,QAAiC;CAC9F,MAAM,SAAS,OAAO,IAAI;AAC1B,QAAO,MAAM,WAAW,SAAS,OAAQ,KAAiC,SAAS,KAAK,OAAO"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region lib/reorderItems.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Pure index-based helpers for reordering an array of items.
|
|
4
|
+
*
|
|
5
|
+
* Shared between drag-and-drop implementations that use different underlying
|
|
6
|
+
* libraries (e.g. React Aria Components' `useDragAndDrop` and @dnd-kit's
|
|
7
|
+
* `useSortable`). Each caller reduces its library-specific event to a pair of
|
|
8
|
+
* indices and then uses `moveItemByIndex` to produce the reordered array.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Returns a new array with the item at `fromIndex` moved to `toIndex`.
|
|
12
|
+
*
|
|
13
|
+
* Returns the original array unchanged when either index is out of bounds or
|
|
14
|
+
* the indices are equal.
|
|
15
|
+
*/
|
|
16
|
+
declare const moveItemByIndex: <T>(items: T[], fromIndex: number, toIndex: number) => T[];
|
|
17
|
+
/**
|
|
18
|
+
* Finds the index of the item whose `keyPath` property stringifies to `key`.
|
|
19
|
+
*
|
|
20
|
+
* Comparison is done via `String(...)` on both sides so callers can pass
|
|
21
|
+
* numeric or string ids interchangeably.
|
|
22
|
+
*/
|
|
23
|
+
declare const findIndexByKey: <T>(items: T[], keyPath: string, key: string | number) => number;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { findIndexByKey, moveItemByIndex };
|
|
26
|
+
//# sourceMappingURL=reorderItems.d.cts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region lib/reorderItems.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Pure index-based helpers for reordering an array of items.
|
|
4
|
+
*
|
|
5
|
+
* Shared between drag-and-drop implementations that use different underlying
|
|
6
|
+
* libraries (e.g. React Aria Components' `useDragAndDrop` and @dnd-kit's
|
|
7
|
+
* `useSortable`). Each caller reduces its library-specific event to a pair of
|
|
8
|
+
* indices and then uses `moveItemByIndex` to produce the reordered array.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Returns a new array with the item at `fromIndex` moved to `toIndex`.
|
|
12
|
+
*
|
|
13
|
+
* Returns the original array unchanged when either index is out of bounds or
|
|
14
|
+
* the indices are equal.
|
|
15
|
+
*/
|
|
16
|
+
declare const moveItemByIndex: <T>(items: T[], fromIndex: number, toIndex: number) => T[];
|
|
17
|
+
/**
|
|
18
|
+
* Finds the index of the item whose `keyPath` property stringifies to `key`.
|
|
19
|
+
*
|
|
20
|
+
* Comparison is done via `String(...)` on both sides so callers can pass
|
|
21
|
+
* numeric or string ids interchangeably.
|
|
22
|
+
*/
|
|
23
|
+
declare const findIndexByKey: <T>(items: T[], keyPath: string, key: string | number) => number;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { findIndexByKey, moveItemByIndex };
|
|
26
|
+
//# sourceMappingURL=reorderItems.d.mts.map
|