@persona/design-system 0.1.8 → 0.1.9
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 +12 -0
- package/README.md +20 -1
- package/dist/Attribute.d.mts +1 -1
- package/dist/{Badge-DortWowZ.mjs → Badge-DEVbRlJX.mjs} +2 -2
- package/dist/{Badge-DortWowZ.mjs.map → Badge-DEVbRlJX.mjs.map} +1 -1
- package/dist/{Breadcrumbs-CDZ_Mrcg.mjs → Breadcrumbs-W8hIhdHD.mjs} +3 -3
- package/dist/{Breadcrumbs-CDZ_Mrcg.mjs.map → Breadcrumbs-W8hIhdHD.mjs.map} +1 -1
- package/dist/{Button-9p469xA1.d.mts → Button-Vd5O4DUp.d.mts} +3 -3
- package/dist/Button.d.mts +1 -1
- package/dist/CalendarBase.d.mts +1 -1
- package/dist/{CardV2-C9z0Hr-c.mjs → CardV2-C0fcOUdp.mjs} +5 -5
- package/dist/{CardV2-C9z0Hr-c.mjs.map → CardV2-C0fcOUdp.mjs.map} +1 -1
- package/dist/{Checkbox-B0bjZbji.mjs → Checkbox-BcuiFvK7.mjs} +2 -2
- package/dist/{Checkbox-B0bjZbji.mjs.map → Checkbox-BcuiFvK7.mjs.map} +1 -1
- package/dist/{Combobox-BdqU5WLG.mjs → Combobox-B6JyLog8.mjs} +13 -7
- package/dist/Combobox-B6JyLog8.mjs.map +1 -0
- package/dist/{Combobox-DBWMHwUt.d.cts → Combobox-BaD0f2Du.d.mts} +3 -3
- package/dist/Combobox.d.mts +2 -2
- package/dist/{ComboboxBase-BsY7CYoB.d.mts → ComboboxBase-BsPf8BZh.d.mts} +8 -3
- package/dist/ComboboxBase.d.mts +1 -1
- package/dist/{ComboboxMultiSelect-dNuETspL.d.mts → ComboboxMultiSelect-DhLzCWbz.d.mts} +2 -2
- package/dist/ComboboxMultiSelect.d.mts +1 -1
- package/dist/{ComboboxSingleSelect-C8KvIJ43.d.mts → ComboboxSingleSelect-P0r5rs_u.d.mts} +3 -3
- package/dist/ComboboxSingleSelect.d.mts +1 -1
- package/dist/DataTable.d.mts +9 -0
- package/dist/{DatePicker-DY1YA_Fu.mjs → DatePicker-Bw79p-Lx.mjs} +5 -5
- package/dist/{DatePicker-DY1YA_Fu.mjs.map → DatePicker-Bw79p-Lx.mjs.map} +1 -1
- package/dist/{DropdownButton-DKLjJylQ.mjs → DropdownButton-BI3IFJun.mjs} +3 -3
- package/dist/{DropdownButton-DKLjJylQ.mjs.map → DropdownButton-BI3IFJun.mjs.map} +1 -1
- package/dist/DropdownButton.d.mts +2 -2
- package/dist/{DropdownMenu-DGYexb7s.mjs → DropdownMenu-D25WBCah.mjs} +2 -2
- package/dist/{DropdownMenu-DGYexb7s.mjs.map → DropdownMenu-D25WBCah.mjs.map} +1 -1
- package/dist/{DropdownMenu-CVPanvKA.d.mts → DropdownMenu-D6nfAsi0.d.mts} +2 -2
- package/dist/DropdownMenu.d.mts +1 -1
- package/dist/{FormControl-B28qa7aQ.mjs → FormControl-CFU9uKF7.mjs} +2 -2
- package/dist/{FormControl-B28qa7aQ.mjs.map → FormControl-CFU9uKF7.mjs.map} +1 -1
- package/dist/{FormField-PeYYRO4s.mjs → FormField-DdmgSWq4.mjs} +14 -11
- package/dist/{FormField-PeYYRO4s.mjs.map → FormField-DdmgSWq4.mjs.map} +1 -1
- package/dist/{HoverCopyableField-ClXBg_ld.mjs → HoverCopyableField-7TWP0Y1Z.mjs} +3 -3
- package/dist/{HoverCopyableField-ClXBg_ld.mjs.map → HoverCopyableField-7TWP0Y1Z.mjs.map} +1 -1
- package/dist/{IconButton-ZcyTFjPn.d.cts → IconButton-BHCmHIx5.d.mts} +2 -2
- package/dist/{IconButton-CIWiEsS-.mjs → IconButton-P8w0JDI5.mjs} +2 -2
- package/dist/{IconButton-CIWiEsS-.mjs.map → IconButton-P8w0JDI5.mjs.map} +1 -1
- package/dist/IconButton.d.mts +1 -1
- package/dist/InlineCombobox.d.mts +1 -1
- package/dist/InlineInput.d.mts +1 -1
- package/dist/{Input-BPClVzwD.d.mts → Input-DMgVyZyq.d.mts} +3 -3
- package/dist/{Input-BFI_e7aU.mjs → Input-QC6xla6I.mjs} +2 -2
- package/dist/Input-QC6xla6I.mjs.map +1 -0
- package/dist/Input.d.mts +1 -1
- package/dist/{ListBox-_fcSPynx.d.mts → ListBox-D09N1a5D.d.mts} +8 -3
- package/dist/{ListBox-BwID8jpk.mjs → ListBox-TrL3Tb7X.mjs} +13 -7
- package/dist/ListBox-TrL3Tb7X.mjs.map +1 -0
- package/dist/ListBox.d.mts +1 -1
- package/dist/ListBoxField.d.mts +2 -2
- package/dist/{LogicRow-BtCKGX_j.d.mts → LogicRow-BcuiSTHN.d.mts} +2 -2
- package/dist/LogicRow.d.mts +1 -1
- package/dist/MaskedInput.d.mts +1 -1
- package/dist/{Menu-CUp_9HgC.d.mts → Menu-Bv8dsrz6.d.mts} +2 -2
- package/dist/{Menu-CPYXo61N.mjs → Menu-DmeMgN-i.mjs} +2 -2
- package/dist/{Menu-CPYXo61N.mjs.map → Menu-DmeMgN-i.mjs.map} +1 -1
- package/dist/Menu.d.mts +1 -1
- package/dist/Modal.d.mts +1 -1
- package/dist/{PageHeader-D-6W61E_.mjs → PageHeader-jSLud2JI.mjs} +5 -4
- package/dist/PageHeader-jSLud2JI.mjs.map +1 -0
- package/dist/PageHeader.d.mts +7 -2
- package/dist/{Pagination-ztqhywAP.mjs → Pagination-BeYukNCj.mjs} +4 -4
- package/dist/{Pagination-ztqhywAP.mjs.map → Pagination-BeYukNCj.mjs.map} +1 -1
- package/dist/{Pii-DrrtEz7U.mjs → Pii-QsTrz8wn.mjs} +2 -2
- package/dist/{Pii-DrrtEz7U.mjs.map → Pii-QsTrz8wn.mjs.map} +1 -1
- package/dist/{Select-2KbtKawr.d.mts → Select-Bk27TgN8.d.mts} +2 -2
- package/dist/{Select-cPEORy70.mjs → Select-C1ZoRk39.mjs} +4 -4
- package/dist/{Select-cPEORy70.mjs.map → Select-C1ZoRk39.mjs.map} +1 -1
- package/dist/Select.d.mts +1 -1
- package/dist/{Sticker-DbqKLe33.mjs → Sticker-CyGb9dEu.mjs} +2 -2
- package/dist/{Sticker-DbqKLe33.mjs.map → Sticker-CyGb9dEu.mjs.map} +1 -1
- package/dist/Tab.d.mts +13 -4
- package/dist/{TabBar-zSA8kyE6.mjs → TabBar-Bn8PHHBZ.mjs} +15 -9
- package/dist/TabBar-Bn8PHHBZ.mjs.map +1 -0
- package/dist/TabBarIconButton.d.mts +1 -1
- package/dist/{Table-D8IcpACv.mjs → Table-BfontAeY.mjs} +7 -5
- package/dist/{Table-D8IcpACv.mjs.map → Table-BfontAeY.mjs.map} +1 -1
- package/dist/{TableBox-luasMC73.mjs → TableBox-bmrKh_ax.mjs} +86 -35
- package/dist/TableBox-bmrKh_ax.mjs.map +1 -0
- package/dist/TableBox.d.mts +1 -1
- package/dist/{TableBoxCell-By1xE6_Q.d.mts → TableBoxCell-CvjLYhTV.d.mts} +21 -7
- package/dist/TableBoxCell.d.mts +1 -1
- package/dist/TableBoxField.d.mts +7 -4
- package/dist/{TableBoxRow-CsRPRPQ-.d.mts → TableBoxRow-BzXECgid.d.mts} +2 -2
- package/dist/TableBoxRow.d.mts +1 -1
- package/dist/{TableBoxRowActions-DMYOI8Do.d.mts → TableBoxRowActions-BAiFXiCh.d.mts} +2 -2
- package/dist/TableBoxRowActions.d.mts +1 -1
- package/dist/{TableControls-DHMs7o58.mjs → TableControls-DVTtNAPo.mjs} +11 -11
- package/dist/{TableControls-DHMs7o58.mjs.map → TableControls-DVTtNAPo.mjs.map} +1 -1
- package/dist/{TableLayout-Ct0kepcA.d.cts → TableLayout-BZeP8qfg.d.mts} +7 -1
- package/dist/TableLayout.d.mts +1 -1
- package/dist/{Tooltip-C6AR1xT-.mjs → Tooltip-BvDbmXak.mjs} +2 -2
- package/dist/{Tooltip-C6AR1xT-.mjs.map → Tooltip-BvDbmXak.mjs.map} +1 -1
- package/dist/components/Attribute/index.mjs +3 -3
- package/dist/components/Badge/index.mjs +1 -1
- package/dist/components/Banner/index.mjs +1 -1
- package/dist/components/Breadcrumbs/index.mjs +1 -1
- package/dist/components/Button/index.d.mts +2 -2
- package/dist/components/Button/index.mjs +1 -1
- package/dist/components/ButtonGroup/index.mjs +1 -1
- package/dist/components/CardV2/index.mjs +1 -1
- package/dist/components/Checkbox/index.mjs +1 -1
- package/dist/components/Combobox/index.d.mts +2 -2
- package/dist/components/Combobox/index.mjs +1 -1
- package/dist/components/DataTable/TableControls/index.mjs +1 -1
- package/dist/components/DataTable/index.mjs +14 -12
- package/dist/components/DataTable/index.mjs.map +1 -1
- package/dist/components/DataTable/types.d.mts +1 -1
- package/dist/components/DatePicker/index.mjs +1 -1
- package/dist/components/DropdownButton/index.mjs +1 -1
- package/dist/components/DropdownMenu/index.d.mts +1 -1
- package/dist/components/DropdownMenu/index.mjs +1 -1
- package/dist/components/FormControl/index.mjs +1 -1
- package/dist/components/FormField/index.d.mts +2 -2
- package/dist/components/FormField/index.mjs +2 -2
- package/dist/components/HoverCopyableField/index.mjs +1 -1
- package/dist/components/ImageTile/index.mjs +4 -4
- package/dist/components/Input/index.d.mts +1 -1
- package/dist/components/Input/index.mjs +1 -1
- package/dist/components/ListBox/index.d.mts +3 -3
- package/dist/components/ListBox/index.mjs +1 -1
- package/dist/components/MaskedInput/index.mjs +1 -1
- package/dist/components/Menu/index.d.mts +1 -1
- package/dist/components/Menu/index.mjs +1 -1
- package/dist/components/Modal/index.mjs +2 -2
- package/dist/components/PageHeader/index.mjs +1 -1
- package/dist/components/Pagination/index.mjs +1 -1
- package/dist/components/Pii/index.mjs +1 -1
- package/dist/components/ProgressBar/index.mjs +1 -1
- package/dist/components/Select/index.d.mts +1 -1
- package/dist/components/Select/index.mjs +1 -1
- package/dist/components/Slider/index.mjs +1 -1
- package/dist/components/Sticker/index.mjs +1 -1
- package/dist/components/TabBar/index.mjs +1 -1
- package/dist/components/Table/index.d.mts +1 -1
- package/dist/components/Table/index.mjs +1 -1
- package/dist/components/TableBox/index.d.mts +1 -1
- package/dist/components/TableBox/index.mjs +1 -1
- package/dist/components/TechnicalSticker/index.mjs +1 -1
- package/dist/components/Tile/index.mjs +2 -2
- package/dist/components/Toast/index.mjs +1 -1
- package/dist/components/Tooltip/index.mjs +1 -1
- package/dist/fieldPickerOptions.d.mts +1 -1
- package/dist/{index-IlwGkCAe2.d.mts → index-BxXTpeUb2.d.mts} +4 -3
- package/dist/inputFields.d.mts +4 -4
- package/dist/layouts/LayoutLoadingShimmer/index.mjs +3 -3
- package/dist/lib/TruncatedTextWithTooltip.mjs +1 -1
- package/dist/lib/useScrollOverflow.d.mts +7 -0
- package/dist/lib/useScrollOverflow.mjs +22 -1
- package/dist/lib/useScrollOverflow.mjs.map +1 -1
- package/dist/useComboboxFooterAction.d.mts +1 -1
- package/dist/useTruncation.d.mts +1 -1
- package/package.json +202 -746
- package/skills/ui-authoring/COMPONENTS.md +331 -0
- package/skills/ui-authoring/EXAMPLES.md +370 -0
- package/skills/ui-authoring/REFERENCE.md +293 -0
- package/skills/ui-authoring/SKILL.md +237 -0
- package/dist/Action-E90Wvqmc.d.cts +0 -35
- package/dist/Action.d.cts +0 -2
- package/dist/Attribute.d.cts +0 -107
- package/dist/AttributeGrid.d.cts +0 -40
- package/dist/Badge-ADPloFsd.cjs +0 -38
- package/dist/Badge-ADPloFsd.cjs.map +0 -1
- package/dist/Badge.d.cts +0 -25
- package/dist/Banner.d.cts +0 -48
- package/dist/Breadcrumb-VH-Mwo-M.d.cts +0 -44
- package/dist/Breadcrumb.d.cts +0 -2
- package/dist/Breadcrumbs-BBREROrw.d.cts +0 -26
- package/dist/Breadcrumbs-tR49JqAS.cjs +0 -295
- package/dist/Breadcrumbs-tR49JqAS.cjs.map +0 -1
- package/dist/Breadcrumbs.d.cts +0 -2
- package/dist/Button-C_3p5Xfi.d.cts +0 -101
- package/dist/Button.d.cts +0 -2
- package/dist/ButtonGroup.d.cts +0 -20
- package/dist/Calendar.d.cts +0 -11
- package/dist/Card-CJPEmUvg.d.cts +0 -52
- package/dist/Card-Csz-PxX0.cjs +0 -248
- package/dist/Card-Csz-PxX0.cjs.map +0 -1
- package/dist/Card.d.cts +0 -2
- package/dist/Card2.d.cts +0 -95
- package/dist/CardV2-DJXgFomd.cjs +0 -419
- package/dist/CardV2-DJXgFomd.cjs.map +0 -1
- package/dist/Checkbox-CmCujC1W.cjs +0 -183
- package/dist/Checkbox-CmCujC1W.cjs.map +0 -1
- package/dist/Checkbox-Cr8ifm10.d.cts +0 -46
- package/dist/Checkbox.d.cts +0 -2
- package/dist/CheckboxGroupField.d.cts +0 -24
- package/dist/Combobox-BdqU5WLG.mjs.map +0 -1
- package/dist/Combobox-C99xluaM.d.mts +0 -11
- package/dist/Combobox-COXvmxlM.cjs +0 -1877
- package/dist/Combobox-COXvmxlM.cjs.map +0 -1
- package/dist/Combobox.d.cts +0 -3
- package/dist/ComboboxBase-zZ3tE-dH.d.cts +0 -361
- package/dist/ComboboxBase.d.cts +0 -2
- package/dist/ComboboxMultiSelect-ioB4Jx7_.d.cts +0 -47
- package/dist/ComboboxMultiSelect.d.cts +0 -2
- package/dist/ComboboxSingleSelect-Fn80tdhz.d.cts +0 -35
- package/dist/ComboboxSingleSelect.d.cts +0 -2
- package/dist/CompactBar-BEAK55kh.d.cts +0 -21
- package/dist/CompactBar.d.cts +0 -2
- package/dist/ConfigFormGroup-m5YdVa9n.cjs +0 -35
- package/dist/ConfigFormGroup-m5YdVa9n.cjs.map +0 -1
- package/dist/ConfigFormGroup.d.cts +0 -7
- package/dist/ControlBar-D8CirAyZ.d.cts +0 -151
- package/dist/ControlBar.d.cts +0 -2
- package/dist/DataTable.d.cts +0 -372
- package/dist/DateField.d.cts +0 -23
- package/dist/DatePicker-BlCgFb7g.cjs +0 -948
- package/dist/DatePicker-BlCgFb7g.cjs.map +0 -1
- package/dist/DatePicker.d.cts +0 -19
- package/dist/DateRangePicker.d.cts +0 -52
- package/dist/DropdownButton-Dl7IEzAc.cjs +0 -32
- package/dist/DropdownButton-Dl7IEzAc.cjs.map +0 -1
- package/dist/DropdownButton.d.cts +0 -26
- package/dist/DropdownMenu-DnlQqTjs.cjs +0 -74
- package/dist/DropdownMenu-DnlQqTjs.cjs.map +0 -1
- package/dist/DropdownMenu-FkiManPP.d.cts +0 -75
- package/dist/DropdownMenu.d.cts +0 -2
- package/dist/ErrorProps-Dxqb4gw_.d.cts +0 -8
- package/dist/ErrorProps.d.cts +0 -2
- package/dist/FieldRegistry-OX60T3hr.d.cts +0 -122
- package/dist/FieldRegistry.d.cts +0 -2
- package/dist/FilterBar-YzOh02f9.d.cts +0 -103
- package/dist/FilterBar.d.cts +0 -2
- package/dist/FloatingActionBar.d.cts +0 -40
- package/dist/FormControl-DFp_qcW1.d.cts +0 -60
- package/dist/FormControl-MkBXuUF6.cjs +0 -212
- package/dist/FormControl-MkBXuUF6.cjs.map +0 -1
- package/dist/FormControl.d.cts +0 -2
- package/dist/FormField-D3XhxTMg.cjs +0 -550
- package/dist/FormField-D3XhxTMg.cjs.map +0 -1
- package/dist/FormField-idNLw5PW.d.cts +0 -69
- package/dist/FormField.d.cts +0 -2
- package/dist/Header-C-WhPOin.d.cts +0 -35
- package/dist/Header.d.cts +0 -2
- package/dist/HelperTooltip-T-sTGGLD.d.cts +0 -20
- package/dist/HelperTooltip.d.cts +0 -2
- package/dist/HoverCopyableField-CRkM7o4B.cjs +0 -110
- package/dist/HoverCopyableField-CRkM7o4B.cjs.map +0 -1
- package/dist/HoverCopyableField.d.cts +0 -16
- package/dist/IconButton-BSES_-6g.d.mts +0 -24
- package/dist/IconButton-nlgjJQCS.cjs +0 -372
- package/dist/IconButton-nlgjJQCS.cjs.map +0 -1
- package/dist/IconButton.d.cts +0 -2
- package/dist/ImageTile.d.cts +0 -60
- package/dist/Input-BFI_e7aU.mjs.map +0 -1
- package/dist/Input-BM0DzWEf.d.cts +0 -65
- package/dist/Input-OJPQ07TW.cjs +0 -209
- package/dist/Input-OJPQ07TW.cjs.map +0 -1
- package/dist/Input.d.cts +0 -2
- package/dist/InputProps-CoVNpQSj.d.cts +0 -16
- package/dist/InputProps.d.cts +0 -2
- package/dist/Inserter.d.cts +0 -12
- package/dist/LayoutLoadingShimmer.d.cts +0 -20
- package/dist/Link.d.cts +0 -43
- package/dist/ListBox-BP1eaG7L.cjs +0 -448
- package/dist/ListBox-BP1eaG7L.cjs.map +0 -1
- package/dist/ListBox-BwID8jpk.mjs.map +0 -1
- package/dist/ListBox-QaeRQBSC.d.cts +0 -138
- package/dist/ListBox.d.cts +0 -2
- package/dist/ListBoxField.d.cts +0 -46
- package/dist/LoadingShimmer-Dx6ncVUV.cjs +0 -92
- package/dist/LoadingShimmer-Dx6ncVUV.cjs.map +0 -1
- package/dist/LoadingShimmer.d.cts +0 -38
- package/dist/LogicRow-C6lrFIq0.d.cts +0 -40
- package/dist/LogicRow.d.cts +0 -2
- package/dist/MaskedInput.d.cts +0 -10
- package/dist/MatchHighlight.d.cts +0 -11
- package/dist/Menu-fUnbIYr5.d.cts +0 -70
- package/dist/Menu-t2q8NrV0.cjs +0 -217
- package/dist/Menu-t2q8NrV0.cjs.map +0 -1
- package/dist/Menu.d.cts +0 -2
- package/dist/MiddleTruncatedText-CO76xIqP.cjs +0 -178
- package/dist/MiddleTruncatedText-CO76xIqP.cjs.map +0 -1
- package/dist/Modal.d.cts +0 -146
- package/dist/PageHeader-CUDnarkt.cjs +0 -77
- package/dist/PageHeader-CUDnarkt.cjs.map +0 -1
- package/dist/PageHeader-D-6W61E_.mjs.map +0 -1
- package/dist/PageHeader.d.cts +0 -35
- package/dist/PageSelector-CNnVp3Al.d.cts +0 -30
- package/dist/PageSelector.d.cts +0 -2
- package/dist/Pagination-2Yo1vRJZ.cjs +0 -236
- package/dist/Pagination-2Yo1vRJZ.cjs.map +0 -1
- package/dist/Pagination-D04tn-tf.d.cts +0 -39
- package/dist/Pagination.d.cts +0 -2
- package/dist/Pii-DHTb3ewO.cjs +0 -25
- package/dist/Pii-DHTb3ewO.cjs.map +0 -1
- package/dist/Pii.d.cts +0 -16
- package/dist/Popover-BzgMAhsX.cjs +0 -168
- package/dist/Popover-BzgMAhsX.cjs.map +0 -1
- package/dist/Popover.d.cts +0 -90
- package/dist/ProgressBar.d.cts +0 -83
- package/dist/ProgressIndicator.d.cts +0 -64
- package/dist/PseudoClassProps-C5jpj6Rp.d.cts +0 -12
- package/dist/PseudoClassProps.d.cts +0 -2
- package/dist/Radio-BrTzy7-C.cjs +0 -154
- package/dist/Radio-BrTzy7-C.cjs.map +0 -1
- package/dist/Radio.d.cts +0 -21
- package/dist/RadioGroup-CriF2InQ.cjs +0 -57
- package/dist/RadioGroup-CriF2InQ.cjs.map +0 -1
- package/dist/RadioGroup-XYWjprsv.d.cts +0 -21
- package/dist/RadioGroup.d.cts +0 -2
- package/dist/SearchInput-CTI59-NW.d.cts +0 -46
- package/dist/SearchInput.d.cts +0 -2
- package/dist/SectionHeading-C6hjGdK-.d.cts +0 -71
- package/dist/SectionHeading.d.cts +0 -2
- package/dist/SegmentedControl-C2XZF0ys.cjs +0 -125
- package/dist/SegmentedControl-C2XZF0ys.cjs.map +0 -1
- package/dist/SegmentedControl-nHIK1ZvR.d.cts +0 -59
- package/dist/SegmentedControl.d.cts +0 -2
- package/dist/Select-BH3hXMxp.d.cts +0 -83
- package/dist/Select-BurtT6bN.cjs +0 -265
- package/dist/Select-BurtT6bN.cjs.map +0 -1
- package/dist/Select.d.cts +0 -2
- package/dist/Slider.d.cts +0 -51
- package/dist/SliderRHF.d.cts +0 -18
- package/dist/Spacer-B2CerL6e.cjs +0 -20
- package/dist/Spacer-B2CerL6e.cjs.map +0 -1
- package/dist/Spacer.d.cts +0 -17
- package/dist/Spinner-B6bx70yR.cjs +0 -48
- package/dist/Spinner-B6bx70yR.cjs.map +0 -1
- package/dist/Spinner.d.cts +0 -26
- package/dist/Stack-BzVkf3cz.d.cts +0 -47
- package/dist/Stack-UeifHn3c.cjs +0 -53
- package/dist/Stack-UeifHn3c.cjs.map +0 -1
- package/dist/Stack.d.cts +0 -2
- package/dist/StatusIndicator.d.cts +0 -82
- package/dist/Sticker-CI-XxUmM.d.cts +0 -68
- package/dist/Sticker-CIoseh9f.cjs +0 -244
- package/dist/Sticker-CIoseh9f.cjs.map +0 -1
- package/dist/Sticker.d.cts +0 -2
- package/dist/SwatchPicker.d.cts +0 -18
- package/dist/Tab.d.cts +0 -26
- package/dist/TabBar-PFaDNRw0.cjs +0 -298
- package/dist/TabBar-PFaDNRw0.cjs.map +0 -1
- package/dist/TabBar-zSA8kyE6.mjs.map +0 -1
- package/dist/TabBar.d.cts +0 -33
- package/dist/TabBarIconButton.d.cts +0 -10
- package/dist/Table-DXqyNohc.d.cts +0 -13
- package/dist/Table-DxLvJYWK.cjs +0 -478
- package/dist/Table-DxLvJYWK.cjs.map +0 -1
- package/dist/Table.d.cts +0 -2
- package/dist/TableBody-CxwHmdNb.d.cts +0 -9
- package/dist/TableBody.d.cts +0 -2
- package/dist/TableBox-CiuXCXyv.cjs +0 -1370
- package/dist/TableBox-CiuXCXyv.cjs.map +0 -1
- package/dist/TableBox-luasMC73.mjs.map +0 -1
- package/dist/TableBox.d.cts +0 -3
- package/dist/TableBoxCell-DIMenSwX.d.cts +0 -259
- package/dist/TableBoxCell.d.cts +0 -2
- package/dist/TableBoxField.d.cts +0 -99
- package/dist/TableBoxRow-RNQ6wJLh.d.cts +0 -86
- package/dist/TableBoxRow.d.cts +0 -2
- package/dist/TableBoxRowActions-CYpoPhYZ.d.cts +0 -57
- package/dist/TableBoxRowActions.d.cts +0 -2
- package/dist/TableCell.d.cts +0 -2
- package/dist/TableControls-BtXK7Ils.cjs +0 -3995
- package/dist/TableControls-BtXK7Ils.cjs.map +0 -1
- package/dist/TableControls-CLNF0AJG.d.cts +0 -70
- package/dist/TableControls.d.cts +0 -2
- package/dist/TableControlsContext-DAZx6Rrj.d.cts +0 -21
- package/dist/TableControlsContext.d.cts +0 -2
- package/dist/TableHead-Ch4Ho3LW.d.cts +0 -12
- package/dist/TableHead.d.cts +0 -2
- package/dist/TableHeaderCell-Crsa2R2g.d.cts +0 -17
- package/dist/TableHeaderCell.d.cts +0 -2
- package/dist/TableLayout-nwy094C_.d.mts +0 -19
- package/dist/TableLayout.d.cts +0 -2
- package/dist/TableRow-DVTPqT4w.d.cts +0 -13
- package/dist/TableRow.d.cts +0 -2
- package/dist/TableTH.d.cts +0 -2
- package/dist/TableViewConfigurationDropdown-CaiOGyrU.d.cts +0 -32
- package/dist/TableViewConfigurationDropdown.d.cts +0 -2
- package/dist/TechnicalSticker.d.cts +0 -51
- package/dist/Text-CrGiWG2E.d.cts +0 -42
- package/dist/Text-G9QmYf0P.cjs +0 -95
- package/dist/Text-G9QmYf0P.cjs.map +0 -1
- package/dist/Text.d.cts +0 -2
- package/dist/TextArea-BNiipQDb.cjs +0 -40
- package/dist/TextArea-BNiipQDb.cjs.map +0 -1
- package/dist/TextArea-CHW9FKM4.d.cts +0 -10
- package/dist/TextArea.d.cts +0 -2
- package/dist/TextUnderlineTooltip-DMEyOu8C.d.cts +0 -18
- package/dist/TextUnderlineTooltip.d.cts +0 -2
- package/dist/Tile.d.cts +0 -63
- package/dist/Toast.d.cts +0 -23
- package/dist/Toggle-Ce-rF8Xp.cjs +0 -174
- package/dist/Toggle-Ce-rF8Xp.cjs.map +0 -1
- package/dist/Toggle-tbIebQWC.d.cts +0 -54
- package/dist/Toggle.d.cts +0 -2
- package/dist/Tooltip--eDrrk2r.d.cts +0 -100
- package/dist/Tooltip-olP3rdUO.cjs +0 -152
- package/dist/Tooltip-olP3rdUO.cjs.map +0 -1
- package/dist/Tooltip.d.cts +0 -2
- package/dist/TruncatedText-Dit2NJI6.d.cts +0 -18
- package/dist/chunk-CKQMccvm.cjs +0 -28
- package/dist/components/Attribute/index.cjs +0 -210
- package/dist/components/Attribute/index.cjs.map +0 -1
- package/dist/components/Attribute/index.d.cts +0 -3
- package/dist/components/Badge/index.cjs +0 -7
- package/dist/components/Badge/index.d.cts +0 -2
- package/dist/components/Banner/index.cjs +0 -99
- package/dist/components/Banner/index.cjs.map +0 -1
- package/dist/components/Banner/index.d.cts +0 -2
- package/dist/components/Breadcrumbs/index.cjs +0 -7
- package/dist/components/Breadcrumbs/index.d.cts +0 -2
- package/dist/components/Button/index.cjs +0 -11
- package/dist/components/Button/index.d.cts +0 -3
- package/dist/components/ButtonGroup/index.cjs +0 -112
- package/dist/components/ButtonGroup/index.cjs.map +0 -1
- package/dist/components/ButtonGroup/index.d.cts +0 -2
- package/dist/components/Card/index.cjs +0 -12
- package/dist/components/Card/index.d.cts +0 -3
- package/dist/components/CardV2/index.cjs +0 -7
- package/dist/components/CardV2/index.d.cts +0 -3
- package/dist/components/Checkbox/index.cjs +0 -7
- package/dist/components/Checkbox/index.d.cts +0 -2
- package/dist/components/Combobox/index.cjs +0 -9
- package/dist/components/Combobox/index.d.cts +0 -3
- package/dist/components/ConfigFormGroup/index.cjs +0 -10
- package/dist/components/ConfigFormGroup/index.d.cts +0 -3
- package/dist/components/DataTable/TableControls/index.cjs +0 -27
- package/dist/components/DataTable/TableControls/index.d.cts +0 -16
- package/dist/components/DataTable/index.cjs +0 -1434
- package/dist/components/DataTable/index.cjs.map +0 -1
- package/dist/components/DataTable/index.d.cts +0 -8
- package/dist/components/DataTable/types.cjs +0 -0
- package/dist/components/DataTable/types.d.cts +0 -159
- package/dist/components/DatePicker/index.cjs +0 -10
- package/dist/components/DatePicker/index.d.cts +0 -5
- package/dist/components/DropdownButton/index.cjs +0 -7
- package/dist/components/DropdownButton/index.d.cts +0 -2
- package/dist/components/DropdownMenu/index.cjs +0 -7
- package/dist/components/DropdownMenu/index.d.cts +0 -2
- package/dist/components/FormControl/index.cjs +0 -15
- package/dist/components/FormControl/index.d.cts +0 -3
- package/dist/components/FormField/index.cjs +0 -19
- package/dist/components/FormField/index.d.cts +0 -6
- package/dist/components/HoverCopyableField/index.cjs +0 -2
- package/dist/components/HoverCopyableField/index.d.cts +0 -2
- package/dist/components/ImageTile/index.cjs +0 -225
- package/dist/components/ImageTile/index.cjs.map +0 -1
- package/dist/components/ImageTile/index.d.cts +0 -2
- package/dist/components/Input/index.cjs +0 -14
- package/dist/components/Input/index.cjs.map +0 -1
- package/dist/components/Input/index.d.cts +0 -2
- package/dist/components/Link/index.cjs +0 -87
- package/dist/components/Link/index.cjs.map +0 -1
- package/dist/components/Link/index.d.cts +0 -2
- package/dist/components/ListBox/index.cjs +0 -8
- package/dist/components/ListBox/index.d.cts +0 -4
- package/dist/components/LoadingShimmer/index.cjs +0 -6
- package/dist/components/LoadingShimmer/index.d.cts +0 -2
- package/dist/components/MaskedInput/index.cjs +0 -29
- package/dist/components/MaskedInput/index.cjs.map +0 -1
- package/dist/components/MaskedInput/index.d.cts +0 -2
- package/dist/components/MatchHighlight/index.cjs +0 -31
- package/dist/components/MatchHighlight/index.cjs.map +0 -1
- package/dist/components/MatchHighlight/index.d.cts +0 -2
- package/dist/components/Menu/index.cjs +0 -14
- package/dist/components/Menu/index.d.cts +0 -2
- package/dist/components/Modal/index.cjs +0 -290
- package/dist/components/Modal/index.cjs.map +0 -1
- package/dist/components/Modal/index.d.cts +0 -2
- package/dist/components/PageHeader/index.cjs +0 -7
- package/dist/components/PageHeader/index.d.cts +0 -2
- package/dist/components/Pagination/index.cjs +0 -10
- package/dist/components/Pagination/index.d.cts +0 -4
- package/dist/components/Pii/index.cjs +0 -2
- package/dist/components/Pii/index.d.cts +0 -2
- package/dist/components/Popover/index.cjs +0 -12
- package/dist/components/Popover/index.d.cts +0 -2
- package/dist/components/ProgressBar/index.cjs +0 -177
- package/dist/components/ProgressBar/index.cjs.map +0 -1
- package/dist/components/ProgressBar/index.d.cts +0 -2
- package/dist/components/ProgressIndicator/index.cjs +0 -185
- package/dist/components/ProgressIndicator/index.cjs.map +0 -1
- package/dist/components/ProgressIndicator/index.d.cts +0 -2
- package/dist/components/Radio/index.cjs +0 -7
- package/dist/components/Radio/index.d.cts +0 -2
- package/dist/components/RadioGroup/index.cjs +0 -7
- package/dist/components/RadioGroup/index.d.cts +0 -2
- package/dist/components/SegmentedControl/index.cjs +0 -8
- package/dist/components/SegmentedControl/index.d.cts +0 -2
- package/dist/components/Select/index.cjs +0 -9
- package/dist/components/Select/index.d.cts +0 -2
- package/dist/components/Slider/index.cjs +0 -245
- package/dist/components/Slider/index.cjs.map +0 -1
- package/dist/components/Slider/index.d.cts +0 -3
- package/dist/components/Spacer/index.cjs +0 -2
- package/dist/components/Spacer/index.d.cts +0 -2
- package/dist/components/Spinner/index.cjs +0 -7
- package/dist/components/Spinner/index.d.cts +0 -2
- package/dist/components/Stack/index.cjs +0 -8
- package/dist/components/Stack/index.d.cts +0 -2
- package/dist/components/StatusIndicator/index.cjs +0 -224
- package/dist/components/StatusIndicator/index.cjs.map +0 -1
- package/dist/components/StatusIndicator/index.d.cts +0 -2
- package/dist/components/Sticker/index.cjs +0 -11
- package/dist/components/Sticker/index.d.cts +0 -2
- package/dist/components/SwatchPicker/index.cjs +0 -63
- package/dist/components/SwatchPicker/index.cjs.map +0 -1
- package/dist/components/SwatchPicker/index.d.cts +0 -2
- package/dist/components/TabBar/index.cjs +0 -11
- package/dist/components/TabBar/index.d.cts +0 -4
- package/dist/components/Table/index.cjs +0 -21
- package/dist/components/Table/index.d.cts +0 -8
- package/dist/components/TableBox/index.cjs +0 -7
- package/dist/components/TableBox/index.d.cts +0 -3
- package/dist/components/TechnicalSticker/index.cjs +0 -239
- package/dist/components/TechnicalSticker/index.cjs.map +0 -1
- package/dist/components/TechnicalSticker/index.d.cts +0 -2
- package/dist/components/Text/index.cjs +0 -8
- package/dist/components/Text/index.d.cts +0 -2
- package/dist/components/TextArea/index.cjs +0 -7
- package/dist/components/TextArea/index.d.cts +0 -2
- package/dist/components/Tile/index.cjs +0 -102
- package/dist/components/Tile/index.cjs.map +0 -1
- package/dist/components/Tile/index.d.cts +0 -2
- package/dist/components/Toast/index.cjs +0 -134
- package/dist/components/Toast/index.cjs.map +0 -1
- package/dist/components/Toast/index.d.cts +0 -2
- package/dist/components/Toggle/index.cjs +0 -7
- package/dist/components/Toggle/index.d.cts +0 -2
- package/dist/components/Tooltip/index.cjs +0 -11
- package/dist/components/Tooltip/index.d.cts +0 -4
- package/dist/constants-B6c8S033.d.cts +0 -6
- package/dist/constants.d.cts +0 -2
- package/dist/constants2.d.cts +0 -10
- package/dist/filter-size-context-CIw0Zi6r.d.cts +0 -52
- package/dist/filter-size-context.d.cts +0 -2
- package/dist/helpers.d.cts +0 -76
- package/dist/index-BIAn8oQh.d.cts +0 -1
- package/dist/index-BL32-cvv.d.cts +0 -1
- package/dist/index-BPSCxsMC.d.cts +0 -1
- package/dist/index-BR1oNnaF.d.cts +0 -1
- package/dist/index-BXpMZvwA.d.cts +0 -1
- package/dist/index-BhY1qu3m.d.cts +0 -1
- package/dist/index-BlwcRiXv.d.cts +0 -1
- package/dist/index-Bw8QVu_o.d.cts +0 -75
- package/dist/index-C0NRIDsj2.d.cts +0 -1
- package/dist/index-C1ihAKnV.d.cts +0 -1
- package/dist/index-C9EIpBh8.d.cts +0 -7
- package/dist/index-CDAfh8Ew.d.cts +0 -1
- package/dist/index-CFG0_wK4.d.cts +0 -1
- package/dist/index-CQ25UCod.d.cts +0 -1
- package/dist/index-Cv0jeUQf2.d.cts +0 -1
- package/dist/index-CwSIy_W-.d.cts +0 -1
- package/dist/index-D-BciAtf.d.cts +0 -1
- package/dist/index-D34XP8vp.d.cts +0 -54
- package/dist/index-D6CnpA_r.d.cts +0 -1
- package/dist/index-D9IqtUDs.d.cts +0 -1
- package/dist/index-DFKoAoY2.d.cts +0 -1
- package/dist/index-DpEKQcoR.d.cts +0 -1
- package/dist/index-_wQ5ClJU.d.cts +0 -1
- package/dist/index-dC-i2r_u.d.cts +0 -1
- package/dist/index-sQecLSpR.d.cts +0 -1
- package/dist/index.cjs +0 -0
- package/dist/index.d.cts +0 -2
- package/dist/index2.d.cts +0 -2
- package/dist/index3.d.cts +0 -4
- package/dist/index4.d.cts +0 -11
- package/dist/index5.d.cts +0 -1
- package/dist/input-DPB0cX2m.d.cts +0 -17
- package/dist/inputFields.d.cts +0 -83
- package/dist/intersperse-_0nQM5Rb.cjs +0 -26
- package/dist/intersperse-_0nQM5Rb.cjs.map +0 -1
- package/dist/layouts/LayoutLoadingShimmer/index.cjs +0 -139
- package/dist/layouts/LayoutLoadingShimmer/index.cjs.map +0 -1
- package/dist/layouts/LayoutLoadingShimmer/index.d.cts +0 -2
- package/dist/lib/ConfigContext.cjs +0 -15
- package/dist/lib/ConfigContext.cjs.map +0 -1
- package/dist/lib/ConfigContext.d.cts +0 -16
- package/dist/lib/GlobalStyles.cjs +0 -57
- package/dist/lib/GlobalStyles.cjs.map +0 -1
- package/dist/lib/GlobalStyles.d.cts +0 -8
- package/dist/lib/HeadlessAriaButton.cjs +0 -33
- package/dist/lib/HeadlessAriaButton.cjs.map +0 -1
- package/dist/lib/HeadlessAriaButton.d.cts +0 -12
- package/dist/lib/MiddleTruncatedText.cjs +0 -7
- package/dist/lib/MiddleTruncatedText.d.cts +0 -14
- package/dist/lib/PDSProvider.cjs +0 -13
- package/dist/lib/PDSProvider.cjs.map +0 -1
- package/dist/lib/PDSProvider.d.cts +0 -10
- package/dist/lib/TruncatedText.cjs +0 -39
- package/dist/lib/TruncatedText.cjs.map +0 -1
- package/dist/lib/TruncatedText.d.cts +0 -2
- package/dist/lib/TruncatedTextWithTooltip.cjs +0 -34
- package/dist/lib/TruncatedTextWithTooltip.cjs.map +0 -1
- package/dist/lib/TruncatedTextWithTooltip.d.cts +0 -15
- package/dist/lib/comboboxHelper.cjs +0 -46
- package/dist/lib/comboboxHelper.cjs.map +0 -1
- package/dist/lib/comboboxHelper.d.cts +0 -24
- package/dist/lib/copyTextToClipboard.cjs +0 -33
- package/dist/lib/copyTextToClipboard.cjs.map +0 -1
- package/dist/lib/copyTextToClipboard.d.cts +0 -4
- package/dist/lib/datePickerHelper.cjs +0 -36
- package/dist/lib/datePickerHelper.cjs.map +0 -1
- package/dist/lib/datePickerHelper.d.cts +0 -19
- package/dist/lib/message.cjs +0 -12
- package/dist/lib/message.cjs.map +0 -1
- package/dist/lib/message.d.cts +0 -2
- package/dist/lib/pseudoClass.cjs +0 -31
- package/dist/lib/pseudoClass.cjs.map +0 -1
- package/dist/lib/pseudoClass.d.cts +0 -45
- package/dist/lib/reorderItems.cjs +0 -38
- package/dist/lib/reorderItems.cjs.map +0 -1
- package/dist/lib/reorderItems.d.cts +0 -26
- package/dist/lib/selectHelper.cjs +0 -22
- package/dist/lib/selectHelper.cjs.map +0 -1
- package/dist/lib/selectHelper.d.cts +0 -14
- package/dist/lib/useControlled.cjs +0 -20
- package/dist/lib/useControlled.cjs.map +0 -1
- package/dist/lib/useControlled.d.cts +0 -16
- package/dist/lib/useIsOverflow.cjs +0 -58
- package/dist/lib/useIsOverflow.cjs.map +0 -1
- package/dist/lib/useIsOverflow.d.cts +0 -11
- package/dist/lib/useOutsideClick.cjs +0 -19
- package/dist/lib/useOutsideClick.cjs.map +0 -1
- package/dist/lib/useOutsideClick.d.cts +0 -13
- package/dist/lib/useScrollOverflow.cjs +0 -61
- package/dist/lib/useScrollOverflow.cjs.map +0 -1
- package/dist/lib/useScrollOverflow.d.cts +0 -36
- package/dist/lib/zindex.cjs +0 -26
- package/dist/lib/zindex.cjs.map +0 -1
- package/dist/lib/zindex.d.cts +0 -25
- package/dist/message-BEgtEjQC.d.cts +0 -9
- package/dist/mixins/focus.cjs +0 -39
- package/dist/mixins/focus.cjs.map +0 -1
- package/dist/mixins/focus.d.cts +0 -11
- package/dist/mixins/hoverable.cjs +0 -38
- package/dist/mixins/hoverable.cjs.map +0 -1
- package/dist/mixins/hoverable.d.cts +0 -16
- package/dist/mixins/input.cjs +0 -95
- package/dist/mixins/input.cjs.map +0 -1
- package/dist/mixins/input.d.cts +0 -2
- package/dist/mixins/menuItem.cjs +0 -110
- package/dist/mixins/menuItem.cjs.map +0 -1
- package/dist/mixins/menuItem.d.cts +0 -30
- package/dist/mixins/print/index.cjs +0 -25
- package/dist/mixins/print/index.cjs.map +0 -1
- package/dist/mixins/print/index.d.cts +0 -11
- package/dist/mixins/text.cjs +0 -93
- package/dist/mixins/text.cjs.map +0 -1
- package/dist/mixins/text.d.cts +0 -2
- package/dist/operators-1qE2GpC7.d.cts +0 -43
- package/dist/operators.d.cts +0 -2
- package/dist/text-PmH5oc61.d.cts +0 -14
- package/dist/theme-Cadb1xzQ.d.cts +0 -154
- package/dist/theme.cjs +0 -353
- package/dist/theme.cjs.map +0 -1
- package/dist/theme.d.cts +0 -2
- package/dist/types-B_HHNlia.d.cts +0 -158
- package/dist/types-CCvc590y.d.cts +0 -45
- package/dist/types-CkiXVJeR.d.cts +0 -10
- package/dist/types-SYSKcZKW.d.cts +0 -25
- package/dist/types.d.cts +0 -2
- package/dist/types2.d.cts +0 -2
- package/dist/types3.d.cts +0 -2
- package/dist/types4.d.cts +0 -2
- package/dist/useFilterStateV2-DbPwX5N1.d.cts +0 -93
- package/dist/useFilterStateV2.d.cts +0 -2
- package/dist/useFormField--Q8ZdpW5.d.cts +0 -30
- package/dist/useFormField-BZlArnsI.cjs +0 -37
- package/dist/useFormField-BZlArnsI.cjs.map +0 -1
- package/dist/useFormField.d.cts +0 -2
- package/dist/useFormGroup-Bmnzgq0S.cjs +0 -26
- package/dist/useFormGroup-Bmnzgq0S.cjs.map +0 -1
- package/dist/useFormGroup.d.cts +0 -18
- package/dist/useTableBoxDragAndDrop-DnbUToce.d.cts +0 -69
- package/dist/useTableBoxDragAndDrop.d.cts +0 -2
- package/dist/useTableColumns.d.cts +0 -72
- package/dist/useToggle-DARO917w.cjs +0 -27
- package/dist/useToggle-DARO917w.cjs.map +0 -1
- package/dist/utilities-mSlaTrjB.d.cts +0 -9
- package/dist/utilities.d.cts +0 -2
- package/dist/utils/storybook.cjs +0 -12
- package/dist/utils/storybook.cjs.map +0 -1
- package/dist/utils/testing.cjs +0 -50
- package/dist/utils/testing.cjs.map +0 -1
- package/dist/utils/testing.d.cts +0 -18
- package/dist/validation-CJymv6JE.d.cts +0 -51
- package/dist/validation.d.cts +0 -2
- package/dist/value-control-resolver-B9p25q3G.d.cts +0 -46
- package/dist/value-control-resolver.d.cts +0 -2
- package/dist/variables/color.cjs +0 -22
- package/dist/variables/color.cjs.map +0 -1
- package/dist/variables/color.d.cts +0 -19
- package/dist/variables/effect.cjs +0 -27
- package/dist/variables/effect.cjs.map +0 -1
- package/dist/variables/effect.d.cts +0 -21
- package/dist/variables/keyframes.cjs +0 -22
- package/dist/variables/keyframes.cjs.map +0 -1
- package/dist/variables/keyframes.d.cts +0 -8
- package/dist/variables/spacing.cjs +0 -10
- package/dist/variables/spacing.cjs.map +0 -1
- package/dist/variables/spacing.d.cts +0 -8
- package/dist/variables/text.cjs +0 -13
- package/dist/variables/text.cjs.map +0 -1
- package/dist/variables/text.d.cts +0 -10
- package/dist/variables/transitions.cjs +0 -24
- package/dist/variables/transitions.cjs.map +0 -1
- package/dist/variables/transitions.d.cts +0 -19
package/dist/lib/PDSProvider.cjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
require("../chunk-CKQMccvm.cjs");
|
|
2
|
-
const require_theme = require("../theme.cjs");
|
|
3
|
-
let styled_components = require("styled-components");
|
|
4
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
|
-
//#region lib/PDSProvider.tsx
|
|
6
|
-
const PDSProvider = ({ children, theme = require_theme.default }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(styled_components.ThemeProvider, {
|
|
7
|
-
theme,
|
|
8
|
-
children
|
|
9
|
-
});
|
|
10
|
-
//#endregion
|
|
11
|
-
module.exports = PDSProvider;
|
|
12
|
-
|
|
13
|
-
//# sourceMappingURL=PDSProvider.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PDSProvider.cjs","names":["defaultTheme","ThemeProvider"],"sources":["../../lib/PDSProvider.tsx"],"sourcesContent":["import type { FC, PropsWithChildren } from 'react';\nimport { ThemeProvider } from 'styled-components';\n\nimport defaultTheme, { type PersonaTheme } from '@persona/design-system/theme';\n\ninterface PDSProviderProps {\n theme?: PersonaTheme;\n}\n\nconst PDSProvider: FC<PropsWithChildren<PDSProviderProps>> = ({\n children,\n theme = defaultTheme,\n}) => <ThemeProvider theme={theme}>{children}</ThemeProvider>;\n\nexport default PDSProvider;\n"],"mappings":";;;;;AASA,MAAM,eAAwD,EAC5D,UACA,QAAQA,cAAAA,cACJ,iBAAA,GAAA,kBAAA,KAACC,kBAAAA,eAAD;CAAsB;CAAQ;CAAyB,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { n as PersonaTheme } from "../theme-Cadb1xzQ.cjs";
|
|
2
|
-
import { FC, PropsWithChildren } from "react";
|
|
3
|
-
|
|
4
|
-
//#region lib/PDSProvider.d.ts
|
|
5
|
-
interface PDSProviderProps {
|
|
6
|
-
theme?: PersonaTheme;
|
|
7
|
-
}
|
|
8
|
-
declare const PDSProvider: FC<PropsWithChildren<PDSProviderProps>>;
|
|
9
|
-
export = PDSProvider;
|
|
10
|
-
//# sourceMappingURL=PDSProvider.d.cts.map
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
Object.defineProperties(exports, {
|
|
2
|
-
__esModule: { value: true },
|
|
3
|
-
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
-
});
|
|
5
|
-
const require_chunk = require("../chunk-CKQMccvm.cjs");
|
|
6
|
-
const require_lib_useIsOverflow = require("./useIsOverflow.cjs");
|
|
7
|
-
let styled_components = require("styled-components");
|
|
8
|
-
styled_components = require_chunk.__toESM(styled_components);
|
|
9
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
|
-
let react = require("react");
|
|
11
|
-
//#region lib/TruncatedText.tsx
|
|
12
|
-
const OverflowEllipsisSpan = styled_components.default.span`
|
|
13
|
-
display: block;
|
|
14
|
-
overflow: hidden;
|
|
15
|
-
text-overflow: ellipsis;
|
|
16
|
-
white-space: nowrap;
|
|
17
|
-
`;
|
|
18
|
-
/**
|
|
19
|
-
* Truncates the text if it is too long to fit in the container.
|
|
20
|
-
*
|
|
21
|
-
* The text truncation is CSS-driven, but we use JavaScript to detect when truncation
|
|
22
|
-
* happens so we can set a title attribute dynamically.
|
|
23
|
-
*/
|
|
24
|
-
const TruncatedText = ({ children, titleBehavior = "conditional", ...props }) => {
|
|
25
|
-
const ref = (0, react.useRef)(null);
|
|
26
|
-
const { isOverflowWidth } = require_lib_useIsOverflow.useIsOverflow(ref);
|
|
27
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OverflowEllipsisSpan, {
|
|
28
|
-
ref,
|
|
29
|
-
title: isOverflowWidth || titleBehavior === "always" ? ref.current?.textContent ?? "" : void 0,
|
|
30
|
-
...props,
|
|
31
|
-
children
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
//#endregion
|
|
35
|
-
exports.OverflowEllipsisSpan = OverflowEllipsisSpan;
|
|
36
|
-
exports.TruncatedText = TruncatedText;
|
|
37
|
-
exports.default = TruncatedText;
|
|
38
|
-
|
|
39
|
-
//# sourceMappingURL=TruncatedText.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TruncatedText.cjs","names":["useIsOverflow"],"sources":["../../lib/TruncatedText.tsx"],"sourcesContent":["import { type ComponentPropsWithoutRef, type FC, useRef } from 'react';\nimport styled from 'styled-components';\n\nimport { useIsOverflow } from 'design-system/lib/useIsOverflow';\n\nexport const OverflowEllipsisSpan = styled.span`\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n`;\n\nexport interface TruncatedTextProps extends ComponentPropsWithoutRef<'span'> {\n titleBehavior?: 'always' | 'conditional';\n}\n\n/**\n * Truncates the text if it is too long to fit in the container.\n *\n * The text truncation is CSS-driven, but we use JavaScript to detect when truncation\n * happens so we can set a title attribute dynamically.\n */\nexport const TruncatedText: FC<TruncatedTextProps> = ({\n children,\n titleBehavior = 'conditional',\n ...props\n}) => {\n const ref = useRef<HTMLSpanElement>(null);\n const { isOverflowWidth } = useIsOverflow(ref);\n\n return (\n <OverflowEllipsisSpan\n ref={ref}\n title={\n isOverflowWidth || titleBehavior === 'always' ? (ref.current?.textContent ?? '') : undefined\n }\n {...props}\n >\n {children}\n </OverflowEllipsisSpan>\n );\n};\n\nexport default TruncatedText;\n"],"mappings":";;;;;;;;;;;AAKA,MAAa,uBAAuB,kBAAA,QAAO,IAAI;;;;;;;;;;;;AAiB/C,MAAa,iBAAyC,EACpD,UACA,gBAAgB,eAChB,GAAG,YACC;CACJ,MAAM,OAAA,GAAA,MAAA,QAA8B,KAAK;CACzC,MAAM,EAAE,oBAAoBA,0BAAAA,cAAc,IAAI;AAE9C,QACE,iBAAA,GAAA,kBAAA,KAAC,sBAAD;EACO;EACL,OACE,mBAAmB,kBAAkB,WAAY,IAAI,SAAS,eAAe,KAAM,KAAA;EAErF,GAAI;EAEH;EACoB,CAAA"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
Object.defineProperties(exports, {
|
|
2
|
-
__esModule: { value: true },
|
|
3
|
-
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
-
});
|
|
5
|
-
require("../chunk-CKQMccvm.cjs");
|
|
6
|
-
const require_lib_useIsOverflow = require("./useIsOverflow.cjs");
|
|
7
|
-
const require_lib_TruncatedText = require("./TruncatedText.cjs");
|
|
8
|
-
const require_Tooltip = require("../Tooltip-olP3rdUO.cjs");
|
|
9
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
|
-
let react = require("react");
|
|
11
|
-
//#region lib/TruncatedTextWithTooltip.tsx
|
|
12
|
-
/**
|
|
13
|
-
* Truncates the text if it is too long to fit in the container and shows a tooltip if the text
|
|
14
|
-
* is truncated.
|
|
15
|
-
*/
|
|
16
|
-
const TruncatedTextWithTooltip = ({ children, tooltipProps = {}, ...props }) => {
|
|
17
|
-
const ref = (0, react.useRef)(null);
|
|
18
|
-
const { isOverflowWidth } = require_lib_useIsOverflow.useIsOverflow(ref);
|
|
19
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Tooltip.Tooltip, {
|
|
20
|
-
trigger: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_lib_TruncatedText.OverflowEllipsisSpan, {
|
|
21
|
-
ref,
|
|
22
|
-
...props,
|
|
23
|
-
children
|
|
24
|
-
}),
|
|
25
|
-
disabled: !isOverflowWidth,
|
|
26
|
-
...tooltipProps,
|
|
27
|
-
children
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
//#endregion
|
|
31
|
-
exports.TruncatedTextWithTooltip = TruncatedTextWithTooltip;
|
|
32
|
-
exports.default = TruncatedTextWithTooltip;
|
|
33
|
-
|
|
34
|
-
//# sourceMappingURL=TruncatedTextWithTooltip.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TruncatedTextWithTooltip.cjs","names":["useIsOverflow","Tooltip","OverflowEllipsisSpan"],"sources":["../../lib/TruncatedTextWithTooltip.tsx"],"sourcesContent":["import { type ComponentProps, type ComponentPropsWithoutRef, type FC, useRef } from 'react';\n\nimport Tooltip from 'design-system/components/Tooltip';\nimport { OverflowEllipsisSpan } from 'design-system/lib/TruncatedText';\nimport { useIsOverflow } from 'design-system/lib/useIsOverflow';\n\ninterface TruncatedTextWithTooltipProps extends ComponentPropsWithoutRef<'span'> {\n tooltipProps?: Pick<ComponentProps<typeof Tooltip>, 'side' | 'zIndex' | 'maxWidth'>;\n}\n\n/**\n * Truncates the text if it is too long to fit in the container and shows a tooltip if the text\n * is truncated.\n */\nexport const TruncatedTextWithTooltip: FC<TruncatedTextWithTooltipProps> = ({\n children,\n tooltipProps = {},\n ...props\n}) => {\n const ref = useRef<HTMLSpanElement>(null);\n const { isOverflowWidth } = useIsOverflow(ref);\n\n return (\n <Tooltip\n trigger={\n <OverflowEllipsisSpan ref={ref} {...props}>\n {children}\n </OverflowEllipsisSpan>\n }\n disabled={!isOverflowWidth}\n {...tooltipProps}\n >\n {children}\n </Tooltip>\n );\n};\n\nexport default TruncatedTextWithTooltip;\n"],"mappings":";;;;;;;;;;;;;;;AAcA,MAAa,4BAA+D,EAC1E,UACA,eAAe,EAAE,EACjB,GAAG,YACC;CACJ,MAAM,OAAA,GAAA,MAAA,QAA8B,KAAK;CACzC,MAAM,EAAE,oBAAoBA,0BAAAA,cAAc,IAAI;AAE9C,QACE,iBAAA,GAAA,kBAAA,KAACC,gBAAAA,SAAD;EACE,SACE,iBAAA,GAAA,kBAAA,KAACC,0BAAAA,sBAAD;GAA2B;GAAK,GAAI;GACjC;GACoB,CAAA;EAEzB,UAAU,CAAC;EACX,GAAI;EAEH;EACO,CAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { n as Tooltip } from "../Tooltip--eDrrk2r.cjs";
|
|
2
|
-
import { ComponentProps, ComponentPropsWithoutRef, FC } from "react";
|
|
3
|
-
|
|
4
|
-
//#region lib/TruncatedTextWithTooltip.d.ts
|
|
5
|
-
interface TruncatedTextWithTooltipProps extends ComponentPropsWithoutRef<'span'> {
|
|
6
|
-
tooltipProps?: Pick<ComponentProps<typeof Tooltip>, 'side' | 'zIndex' | 'maxWidth'>;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Truncates the text if it is too long to fit in the container and shows a tooltip if the text
|
|
10
|
-
* is truncated.
|
|
11
|
-
*/
|
|
12
|
-
declare const TruncatedTextWithTooltip: FC<TruncatedTextWithTooltipProps>;
|
|
13
|
-
//#endregion
|
|
14
|
-
export { TruncatedTextWithTooltip, TruncatedTextWithTooltip as default };
|
|
15
|
-
//# sourceMappingURL=TruncatedTextWithTooltip.d.cts.map
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../chunk-CKQMccvm.cjs");
|
|
3
|
-
let _testing_library_react = require("@testing-library/react");
|
|
4
|
-
//#region lib/comboboxHelper.ts
|
|
5
|
-
/**
|
|
6
|
-
* Test helpers for the design system Combobox component (multi-select).
|
|
7
|
-
*
|
|
8
|
-
* Similar to reactSelectHelper.ts but adapted for the Combobox DOM
|
|
9
|
-
* which uses standard ARIA roles (role="combobox", role="option")
|
|
10
|
-
* and renders options via downshift.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Open a Combobox dropdown by clicking on the combobox element.
|
|
14
|
-
*/
|
|
15
|
-
const openComboboxOptions = (comboboxInput) => {
|
|
16
|
-
_testing_library_react.fireEvent.click(comboboxInput);
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Get all option labels for a multi-select Combobox.
|
|
20
|
-
* Opens the dropdown and returns the label text of each option.
|
|
21
|
-
*/
|
|
22
|
-
const allComboboxOptionLabels = async (comboboxInput) => {
|
|
23
|
-
openComboboxOptions(comboboxInput);
|
|
24
|
-
return (await _testing_library_react.screen.findAllByRole("option")).map((opt) => {
|
|
25
|
-
const labelId = opt.getAttribute("aria-labelledby");
|
|
26
|
-
if (labelId) {
|
|
27
|
-
const labelEl = document.getElementById(labelId);
|
|
28
|
-
if (labelEl?.textContent) return labelEl.textContent.trim();
|
|
29
|
-
}
|
|
30
|
-
return (opt.textContent || "").trim();
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* Select an option in a multi-select Combobox by its label text.
|
|
35
|
-
*/
|
|
36
|
-
const selectComboboxOption = async (comboboxInput, labelText) => {
|
|
37
|
-
openComboboxOptions(comboboxInput);
|
|
38
|
-
const option = await _testing_library_react.screen.findByRole("option", { name: new RegExp(labelText) });
|
|
39
|
-
_testing_library_react.fireEvent.click(option);
|
|
40
|
-
};
|
|
41
|
-
//#endregion
|
|
42
|
-
exports.allComboboxOptionLabels = allComboboxOptionLabels;
|
|
43
|
-
exports.openComboboxOptions = openComboboxOptions;
|
|
44
|
-
exports.selectComboboxOption = selectComboboxOption;
|
|
45
|
-
|
|
46
|
-
//# sourceMappingURL=comboboxHelper.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"comboboxHelper.cjs","names":["screen"],"sources":["../../lib/comboboxHelper.ts"],"sourcesContent":["import { fireEvent, screen } from '@testing-library/react';\n\n/**\n * Test helpers for the design system Combobox component (multi-select).\n *\n * Similar to reactSelectHelper.ts but adapted for the Combobox DOM\n * which uses standard ARIA roles (role=\"combobox\", role=\"option\")\n * and renders options via downshift.\n */\n\n/**\n * Open a Combobox dropdown by clicking on the combobox element.\n */\nexport const openComboboxOptions = (comboboxInput: HTMLElement) => {\n fireEvent.click(comboboxInput);\n};\n\n/**\n * Get all option labels for a multi-select Combobox.\n * Opens the dropdown and returns the label text of each option.\n */\nexport const allComboboxOptionLabels = async (comboboxInput: HTMLElement): Promise<string[]> => {\n openComboboxOptions(comboboxInput);\n const options = await screen.findAllByRole('option');\n return options.map((opt) => {\n // Multi-select options use aria-labelledby pointing to the checkbox label\n const labelId = opt.getAttribute('aria-labelledby');\n if (labelId) {\n const labelEl = document.getElementById(labelId);\n if (labelEl?.textContent) {\n return labelEl.textContent.trim();\n }\n }\n return (opt.textContent || '').trim();\n });\n};\n\n/**\n * Select an option in a multi-select Combobox by its label text.\n */\nexport const selectComboboxOption = async (\n comboboxInput: HTMLElement,\n labelText: string,\n): Promise<void> => {\n openComboboxOptions(comboboxInput);\n const option = await screen.findByRole('option', {\n name: new RegExp(labelText),\n });\n fireEvent.click(option);\n};\n"],"mappings":";;;;;;;;;;;;;;AAaA,MAAa,uBAAuB,kBAA+B;AACjE,wBAAA,UAAU,MAAM,cAAc;;;;;;AAOhC,MAAa,0BAA0B,OAAO,kBAAkD;AAC9F,qBAAoB,cAAc;AAElC,SAAO,MADeA,uBAAAA,OAAO,cAAc,SAAS,EACrC,KAAK,QAAQ;EAE1B,MAAM,UAAU,IAAI,aAAa,kBAAkB;AACnD,MAAI,SAAS;GACX,MAAM,UAAU,SAAS,eAAe,QAAQ;AAChD,OAAI,SAAS,YACX,QAAO,QAAQ,YAAY,MAAM;;AAGrC,UAAQ,IAAI,eAAe,IAAI,MAAM;GACrC;;;;;AAMJ,MAAa,uBAAuB,OAClC,eACA,cACkB;AAClB,qBAAoB,cAAc;CAClC,MAAM,SAAS,MAAMA,uBAAAA,OAAO,WAAW,UAAU,EAC/C,MAAM,IAAI,OAAO,UAAU,EAC5B,CAAC;AACF,wBAAA,UAAU,MAAM,OAAO"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
//#region lib/comboboxHelper.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Test helpers for the design system Combobox component (multi-select).
|
|
4
|
-
*
|
|
5
|
-
* Similar to reactSelectHelper.ts but adapted for the Combobox DOM
|
|
6
|
-
* which uses standard ARIA roles (role="combobox", role="option")
|
|
7
|
-
* and renders options via downshift.
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Open a Combobox dropdown by clicking on the combobox element.
|
|
11
|
-
*/
|
|
12
|
-
declare const openComboboxOptions: (comboboxInput: HTMLElement) => void;
|
|
13
|
-
/**
|
|
14
|
-
* Get all option labels for a multi-select Combobox.
|
|
15
|
-
* Opens the dropdown and returns the label text of each option.
|
|
16
|
-
*/
|
|
17
|
-
declare const allComboboxOptionLabels: (comboboxInput: HTMLElement) => Promise<string[]>;
|
|
18
|
-
/**
|
|
19
|
-
* Select an option in a multi-select Combobox by its label text.
|
|
20
|
-
*/
|
|
21
|
-
declare const selectComboboxOption: (comboboxInput: HTMLElement, labelText: string) => Promise<void>;
|
|
22
|
-
//#endregion
|
|
23
|
-
export { allComboboxOptionLabels, openComboboxOptions, selectComboboxOption };
|
|
24
|
-
//# sourceMappingURL=comboboxHelper.d.cts.map
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
//#region lib/copyTextToClipboard.ts
|
|
2
|
-
async function copyTextToClipboard(text) {
|
|
3
|
-
try {
|
|
4
|
-
if ("clipboard" in navigator) {
|
|
5
|
-
await navigator.clipboard.writeText(text);
|
|
6
|
-
return true;
|
|
7
|
-
}
|
|
8
|
-
const textarea = document.createElement("textarea");
|
|
9
|
-
textarea.value = text;
|
|
10
|
-
textarea.setAttribute("readonly", "");
|
|
11
|
-
textarea.style.position = "fixed";
|
|
12
|
-
textarea.style.top = "0";
|
|
13
|
-
textarea.style.left = "0";
|
|
14
|
-
textarea.style.opacity = "0";
|
|
15
|
-
const activeElement = document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
16
|
-
try {
|
|
17
|
-
document.body.append(textarea);
|
|
18
|
-
textarea.focus();
|
|
19
|
-
textarea.select();
|
|
20
|
-
textarea.setSelectionRange(0, textarea.value.length);
|
|
21
|
-
return document.execCommand("copy");
|
|
22
|
-
} finally {
|
|
23
|
-
textarea.remove();
|
|
24
|
-
activeElement?.focus();
|
|
25
|
-
}
|
|
26
|
-
} catch {
|
|
27
|
-
return false;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
//#endregion
|
|
31
|
-
module.exports = copyTextToClipboard;
|
|
32
|
-
|
|
33
|
-
//# sourceMappingURL=copyTextToClipboard.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"copyTextToClipboard.cjs","names":[],"sources":["../../lib/copyTextToClipboard.ts"],"sourcesContent":["async function copyTextToClipboard(text: string): Promise<boolean> {\n try {\n if ('clipboard' in navigator) {\n await navigator.clipboard.writeText(text);\n return true;\n }\n\n const textarea = document.createElement('textarea');\n textarea.value = text;\n textarea.setAttribute('readonly', '');\n textarea.style.position = 'fixed';\n textarea.style.top = '0';\n textarea.style.left = '0';\n textarea.style.opacity = '0';\n\n const activeElement =\n document.activeElement instanceof HTMLElement ? document.activeElement : null;\n\n try {\n document.body.append(textarea);\n textarea.focus();\n textarea.select();\n textarea.setSelectionRange(0, textarea.value.length);\n\n return document.execCommand('copy');\n } finally {\n textarea.remove();\n activeElement?.focus();\n }\n } catch {\n return false;\n }\n}\n\nexport default copyTextToClipboard;\n"],"mappings":";AAAA,eAAe,oBAAoB,MAAgC;AACjE,KAAI;AACF,MAAI,eAAe,WAAW;AAC5B,SAAM,UAAU,UAAU,UAAU,KAAK;AACzC,UAAO;;EAGT,MAAM,WAAW,SAAS,cAAc,WAAW;AACnD,WAAS,QAAQ;AACjB,WAAS,aAAa,YAAY,GAAG;AACrC,WAAS,MAAM,WAAW;AAC1B,WAAS,MAAM,MAAM;AACrB,WAAS,MAAM,OAAO;AACtB,WAAS,MAAM,UAAU;EAEzB,MAAM,gBACJ,SAAS,yBAAyB,cAAc,SAAS,gBAAgB;AAE3E,MAAI;AACF,YAAS,KAAK,OAAO,SAAS;AAC9B,YAAS,OAAO;AAChB,YAAS,QAAQ;AACjB,YAAS,kBAAkB,GAAG,SAAS,MAAM,OAAO;AAEpD,UAAO,SAAS,YAAY,OAAO;YAC3B;AACR,YAAS,QAAQ;AACjB,kBAAe,OAAO;;SAElB;AACN,SAAO"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_chunk = require("../chunk-CKQMccvm.cjs");
|
|
3
|
-
let _testing_library_react = require("@testing-library/react");
|
|
4
|
-
let _testing_library_user_event = require("@testing-library/user-event");
|
|
5
|
-
_testing_library_user_event = require_chunk.__toESM(_testing_library_user_event, 1);
|
|
6
|
-
//#region lib/datePickerHelper.ts
|
|
7
|
-
/**
|
|
8
|
-
* Open a PDS DateRangePicker calendar by clicking its month segment and wait for the
|
|
9
|
-
* calendar dialog to appear.
|
|
10
|
-
*
|
|
11
|
-
* In React 18 + jsdom, clicking the wrapper label element (getByLabelText(fieldLabel))
|
|
12
|
-
* does not reliably move focus into the date field. Targeting the "month" segment directly
|
|
13
|
-
* works around this.
|
|
14
|
-
*/
|
|
15
|
-
const openDateRangePicker = async (fieldLabel) => {
|
|
16
|
-
await _testing_library_user_event.default.click(_testing_library_react.screen.getByLabelText(`month, ${fieldLabel},`));
|
|
17
|
-
await (0, _testing_library_react.waitFor)(() => {
|
|
18
|
-
expect(_testing_library_react.screen.getByRole("dialog")).toBeVisible();
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Click an enabled calendar date button whose aria-label includes dateString.
|
|
23
|
-
* dateString should be in "MMMM d, yyyy" format (e.g. "April 14, 2026").
|
|
24
|
-
* Requires the calendar dialog to already be open (call openDateRangePicker first).
|
|
25
|
-
*/
|
|
26
|
-
const clickCalendarDate = async (dateString) => {
|
|
27
|
-
const dateButton = _testing_library_react.screen.getAllByRole("button").filter((button) => !button.getAttribute("aria-disabled")).find((button) => button.getAttribute("aria-label")?.includes(dateString));
|
|
28
|
-
if (dateButton == null) throw new Error(`Calendar date button not found for "${dateString}"`);
|
|
29
|
-
expect(dateButton).toBeVisible();
|
|
30
|
-
await _testing_library_user_event.default.click(dateButton);
|
|
31
|
-
};
|
|
32
|
-
//#endregion
|
|
33
|
-
exports.clickCalendarDate = clickCalendarDate;
|
|
34
|
-
exports.openDateRangePicker = openDateRangePicker;
|
|
35
|
-
|
|
36
|
-
//# sourceMappingURL=datePickerHelper.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"datePickerHelper.cjs","names":["userEvent","screen"],"sources":["../../lib/datePickerHelper.ts"],"sourcesContent":["import { screen, waitFor } from '@testing-library/react';\nimport userEvent from '@testing-library/user-event';\n\n/**\n * Open a PDS DateRangePicker calendar by clicking its month segment and wait for the\n * calendar dialog to appear.\n *\n * In React 18 + jsdom, clicking the wrapper label element (getByLabelText(fieldLabel))\n * does not reliably move focus into the date field. Targeting the \"month\" segment directly\n * works around this.\n */\nexport const openDateRangePicker = async (fieldLabel: string) => {\n await userEvent.click(screen.getByLabelText(`month, ${fieldLabel},`));\n await waitFor(() => {\n expect(screen.getByRole('dialog')).toBeVisible();\n });\n};\n\n/**\n * Click an enabled calendar date button whose aria-label includes dateString.\n * dateString should be in \"MMMM d, yyyy\" format (e.g. \"April 14, 2026\").\n * Requires the calendar dialog to already be open (call openDateRangePicker first).\n */\nexport const clickCalendarDate = async (dateString: string) => {\n const dateButton = screen\n .getAllByRole('button')\n .filter((button) => !button.getAttribute('aria-disabled'))\n .find((button) => button.getAttribute('aria-label')?.includes(dateString));\n\n if (dateButton == null) {\n throw new Error(`Calendar date button not found for \"${dateString}\"`);\n }\n\n expect(dateButton).toBeVisible();\n await userEvent.click(dateButton);\n};\n"],"mappings":";;;;;;;;;;;;;;AAWA,MAAa,sBAAsB,OAAO,eAAuB;AAC/D,OAAMA,4BAAAA,QAAU,MAAMC,uBAAAA,OAAO,eAAe,UAAU,WAAW,GAAG,CAAC;AACrE,QAAA,GAAA,uBAAA,eAAoB;AAClB,SAAOA,uBAAAA,OAAO,UAAU,SAAS,CAAC,CAAC,aAAa;GAChD;;;;;;;AAQJ,MAAa,oBAAoB,OAAO,eAAuB;CAC7D,MAAM,aAAaA,uBAAAA,OAChB,aAAa,SAAS,CACtB,QAAQ,WAAW,CAAC,OAAO,aAAa,gBAAgB,CAAC,CACzD,MAAM,WAAW,OAAO,aAAa,aAAa,EAAE,SAAS,WAAW,CAAC;AAE5E,KAAI,cAAc,KAChB,OAAM,IAAI,MAAM,uCAAuC,WAAW,GAAG;AAGvE,QAAO,WAAW,CAAC,aAAa;AAChC,OAAMD,4BAAAA,QAAU,MAAM,WAAW"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
//#region lib/datePickerHelper.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Open a PDS DateRangePicker calendar by clicking its month segment and wait for the
|
|
4
|
-
* calendar dialog to appear.
|
|
5
|
-
*
|
|
6
|
-
* In React 18 + jsdom, clicking the wrapper label element (getByLabelText(fieldLabel))
|
|
7
|
-
* does not reliably move focus into the date field. Targeting the "month" segment directly
|
|
8
|
-
* works around this.
|
|
9
|
-
*/
|
|
10
|
-
declare const openDateRangePicker: (fieldLabel: string) => Promise<void>;
|
|
11
|
-
/**
|
|
12
|
-
* Click an enabled calendar date button whose aria-label includes dateString.
|
|
13
|
-
* dateString should be in "MMMM d, yyyy" format (e.g. "April 14, 2026").
|
|
14
|
-
* Requires the calendar dialog to already be open (call openDateRangePicker first).
|
|
15
|
-
*/
|
|
16
|
-
declare const clickCalendarDate: (dateString: string) => Promise<void>;
|
|
17
|
-
//#endregion
|
|
18
|
-
export { clickCalendarDate, openDateRangePicker };
|
|
19
|
-
//# sourceMappingURL=datePickerHelper.d.cts.map
|
package/dist/lib/message.cjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
//#region lib/message.ts
|
|
3
|
-
let MessageType = /* @__PURE__ */ function(MessageType) {
|
|
4
|
-
MessageType["Success"] = "success";
|
|
5
|
-
MessageType["Failure"] = "failure";
|
|
6
|
-
MessageType["Notice"] = "notice";
|
|
7
|
-
return MessageType;
|
|
8
|
-
}({});
|
|
9
|
-
//#endregion
|
|
10
|
-
exports.MessageType = MessageType;
|
|
11
|
-
|
|
12
|
-
//# sourceMappingURL=message.cjs.map
|
package/dist/lib/message.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"message.cjs","names":[],"sources":["../../lib/message.ts"],"sourcesContent":["export enum MessageType {\n Success = 'success',\n Failure = 'failure',\n Notice = 'notice',\n}\n"],"mappings":";;AAAA,IAAY,cAAL,yBAAA,aAAA;AACL,aAAA,aAAA;AACA,aAAA,aAAA;AACA,aAAA,YAAA;;KACD"}
|
package/dist/lib/message.d.cts
DELETED
package/dist/lib/pseudoClass.cjs
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
//#region lib/pseudoClass.ts
|
|
3
|
-
const isDisabled = ({ disabled }) => disabled ? "" : ":disabled";
|
|
4
|
-
const isNotDisabled = ({ disabled }) => disabled ? ":not(*)" : ":not(:disabled)";
|
|
5
|
-
const isHovered = ({ hovered }) => hovered ? "" : ":hover";
|
|
6
|
-
const isNotHovered = ({ hovered }) => hovered ? ":not(*)" : ":not(:hover)";
|
|
7
|
-
const isFocused = ({ focused }) => focused ? "" : ":focus";
|
|
8
|
-
const isNotFocused = ({ focused }) => focused ? ":not(*)" : ":not(:focus)";
|
|
9
|
-
const isFocusedVisible = ({ focused }) => focused ? "" : ":focus-visible";
|
|
10
|
-
const isNotFocusedVisible = ({ focused }) => focused ? ":not(*)" : ":not(:focus-visible)";
|
|
11
|
-
const isActive = ({ active }) => active ? "" : ":focus-within";
|
|
12
|
-
const isNotActive = ({ active }) => active ? ":not(*)" : ":not(:focus-within)";
|
|
13
|
-
const isChecked = ({ checked }) => checked ? "" : ":checked";
|
|
14
|
-
const isIndeterminate = ({ mixed }) => mixed ? "" : ":indeterminate";
|
|
15
|
-
const isNotChecked = ({ checked }) => checked ? ":not(*)" : ":not(:checked)";
|
|
16
|
-
//#endregion
|
|
17
|
-
exports.isActive = isActive;
|
|
18
|
-
exports.isChecked = isChecked;
|
|
19
|
-
exports.isDisabled = isDisabled;
|
|
20
|
-
exports.isFocused = isFocused;
|
|
21
|
-
exports.isFocusedVisible = isFocusedVisible;
|
|
22
|
-
exports.isHovered = isHovered;
|
|
23
|
-
exports.isIndeterminate = isIndeterminate;
|
|
24
|
-
exports.isNotActive = isNotActive;
|
|
25
|
-
exports.isNotChecked = isNotChecked;
|
|
26
|
-
exports.isNotDisabled = isNotDisabled;
|
|
27
|
-
exports.isNotFocused = isNotFocused;
|
|
28
|
-
exports.isNotFocusedVisible = isNotFocusedVisible;
|
|
29
|
-
exports.isNotHovered = isNotHovered;
|
|
30
|
-
|
|
31
|
-
//# sourceMappingURL=pseudoClass.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,45 +0,0 @@
|
|
|
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
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
//#region lib/reorderItems.ts
|
|
3
|
-
/**
|
|
4
|
-
* Pure index-based helpers for reordering an array of items.
|
|
5
|
-
*
|
|
6
|
-
* Shared between drag-and-drop implementations that use different underlying
|
|
7
|
-
* libraries (e.g. React Aria Components' `useDragAndDrop` and @dnd-kit's
|
|
8
|
-
* `useSortable`). Each caller reduces its library-specific event to a pair of
|
|
9
|
-
* indices and then uses `moveItemByIndex` to produce the reordered array.
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* Returns a new array with the item at `fromIndex` moved to `toIndex`.
|
|
13
|
-
*
|
|
14
|
-
* Returns the original array unchanged when either index is out of bounds or
|
|
15
|
-
* the indices are equal.
|
|
16
|
-
*/
|
|
17
|
-
const moveItemByIndex = (items, fromIndex, toIndex) => {
|
|
18
|
-
if (fromIndex === toIndex || fromIndex < 0 || toIndex < 0 || fromIndex >= items.length || toIndex >= items.length) return items;
|
|
19
|
-
const next = items.slice();
|
|
20
|
-
const [moved] = next.splice(fromIndex, 1);
|
|
21
|
-
next.splice(toIndex, 0, moved);
|
|
22
|
-
return next;
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Finds the index of the item whose `keyPath` property stringifies to `key`.
|
|
26
|
-
*
|
|
27
|
-
* Comparison is done via `String(...)` on both sides so callers can pass
|
|
28
|
-
* numeric or string ids interchangeably.
|
|
29
|
-
*/
|
|
30
|
-
const findIndexByKey = (items, keyPath, key) => {
|
|
31
|
-
const target = String(key);
|
|
32
|
-
return items.findIndex((item) => String(item[keyPath]) === target);
|
|
33
|
-
};
|
|
34
|
-
//#endregion
|
|
35
|
-
exports.findIndexByKey = findIndexByKey;
|
|
36
|
-
exports.moveItemByIndex = moveItemByIndex;
|
|
37
|
-
|
|
38
|
-
//# sourceMappingURL=reorderItems.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../chunk-CKQMccvm.cjs");
|
|
3
|
-
let _testing_library_react = require("@testing-library/react");
|
|
4
|
-
//#region lib/selectHelper.ts
|
|
5
|
-
/**
|
|
6
|
-
* Click a PDS Select (Radix UI) option using fireEvent.click inside act().
|
|
7
|
-
*
|
|
8
|
-
* userEvent.click doesn't work for Radix SelectItem in React 18 + JSDOM because it fires
|
|
9
|
-
* pointer events that set pointerTypeRef to "mouse", routing selection through onPointerUp
|
|
10
|
-
* instead of onClick — and that path doesn't flush React state within act() due to focus()
|
|
11
|
-
* calls from onPointerMove interfering with the concurrent scheduler. fireEvent.click
|
|
12
|
-
* bypasses all of this cleanly.
|
|
13
|
-
*/
|
|
14
|
-
const clickSelectItem = async (name) => {
|
|
15
|
-
await (0, _testing_library_react.act)(async () => {
|
|
16
|
-
_testing_library_react.fireEvent.click(_testing_library_react.screen.getByRole("option", { name }));
|
|
17
|
-
});
|
|
18
|
-
};
|
|
19
|
-
//#endregion
|
|
20
|
-
exports.clickSelectItem = clickSelectItem;
|
|
21
|
-
|
|
22
|
-
//# sourceMappingURL=selectHelper.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"selectHelper.cjs","names":["screen"],"sources":["../../lib/selectHelper.ts"],"sourcesContent":["import { act, fireEvent, screen } from '@testing-library/react';\n\n/**\n * Click a PDS Select (Radix UI) option using fireEvent.click inside act().\n *\n * userEvent.click doesn't work for Radix SelectItem in React 18 + JSDOM because it fires\n * pointer events that set pointerTypeRef to \"mouse\", routing selection through onPointerUp\n * instead of onClick — and that path doesn't flush React state within act() due to focus()\n * calls from onPointerMove interfering with the concurrent scheduler. fireEvent.click\n * bypasses all of this cleanly.\n */\n// eslint-disable-next-line @persona-id/rtl-user-event\nexport const clickSelectItem = async (name: RegExp | string) => {\n await act(async () => {\n // eslint-disable-next-line @persona-id/rtl-user-event\n fireEvent.click(screen.getByRole('option', { name }));\n });\n};\n"],"mappings":";;;;;;;;;;;;;AAYA,MAAa,kBAAkB,OAAO,SAA0B;AAC9D,QAAA,GAAA,uBAAA,KAAU,YAAY;AAEpB,yBAAA,UAAU,MAAMA,uBAAAA,OAAO,UAAU,UAAU,EAAE,MAAM,CAAC,CAAC;GACrD"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
//#region lib/selectHelper.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Click a PDS Select (Radix UI) option using fireEvent.click inside act().
|
|
4
|
-
*
|
|
5
|
-
* userEvent.click doesn't work for Radix SelectItem in React 18 + JSDOM because it fires
|
|
6
|
-
* pointer events that set pointerTypeRef to "mouse", routing selection through onPointerUp
|
|
7
|
-
* instead of onClick — and that path doesn't flush React state within act() due to focus()
|
|
8
|
-
* calls from onPointerMove interfering with the concurrent scheduler. fireEvent.click
|
|
9
|
-
* bypasses all of this cleanly.
|
|
10
|
-
*/
|
|
11
|
-
declare const clickSelectItem: (name: RegExp | string) => Promise<void>;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { clickSelectItem };
|
|
14
|
-
//# sourceMappingURL=selectHelper.d.cts.map
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
require("../chunk-CKQMccvm.cjs");
|
|
2
|
-
let react = require("react");
|
|
3
|
-
//#region lib/useControlled.ts
|
|
4
|
-
/**
|
|
5
|
-
* Hook to allow components that can be controlled and uncontrolled to get and set state.
|
|
6
|
-
*
|
|
7
|
-
* Inspired by MUI's neat controlled util
|
|
8
|
-
* https://github.com/mui-org/material-ui/blob/master/packages/mui-utils/src/useControlled.js
|
|
9
|
-
*/
|
|
10
|
-
function useControlled({ controlledValue, default: defaultProp }) {
|
|
11
|
-
const { current: isControlled } = (0, react.useRef)(controlledValue !== void 0);
|
|
12
|
-
const [valueState, setValue] = (0, react.useState)(defaultProp);
|
|
13
|
-
return [isControlled ? controlledValue : valueState, (0, react.useCallback)((newValue) => {
|
|
14
|
-
if (!isControlled) setValue(newValue);
|
|
15
|
-
}, [])];
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
module.exports = useControlled;
|
|
19
|
-
|
|
20
|
-
//# sourceMappingURL=useControlled.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useControlled.cjs","names":[],"sources":["../../lib/useControlled.ts"],"sourcesContent":["import { useCallback, useRef, useState } from 'react';\n\n/**\n * Hook to allow components that can be controlled and uncontrolled to get and set state.\n *\n * Inspired by MUI's neat controlled util\n * https://github.com/mui-org/material-ui/blob/master/packages/mui-utils/src/useControlled.js\n */\nexport default function useControlled<T>({\n controlledValue,\n default: defaultProp,\n}: {\n controlledValue?: T;\n default: T;\n}) {\n // eslint-disable-next-line @persona-id/eqeq-null-undefined\n const { current: isControlled } = useRef(controlledValue !== undefined);\n const [valueState, setValue] = useState<T | undefined>(defaultProp);\n const value = isControlled ? controlledValue : valueState;\n\n const setValueIfUncontrolled = useCallback((newValue: T | undefined) => {\n if (!isControlled) {\n setValue(newValue);\n }\n }, []);\n\n return [value, setValueIfUncontrolled] as const;\n}\n"],"mappings":";;;;;;;;;AAQA,SAAwB,cAAiB,EACvC,iBACA,SAAS,eAIR;CAED,MAAM,EAAE,SAAS,kBAAA,GAAA,MAAA,QAAwB,oBAAoB,KAAA,EAAU;CACvE,MAAM,CAAC,YAAY,aAAA,GAAA,MAAA,UAAoC,YAAY;AASnE,QAAO,CARO,eAAe,kBAAkB,aAAA,GAAA,MAAA,cAEH,aAA4B;AACtE,MAAI,CAAC,aACH,UAAS,SAAS;IAEnB,EAAE,CAEgC,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
//#region lib/useControlled.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Hook to allow components that can be controlled and uncontrolled to get and set state.
|
|
4
|
-
*
|
|
5
|
-
* Inspired by MUI's neat controlled util
|
|
6
|
-
* https://github.com/mui-org/material-ui/blob/master/packages/mui-utils/src/useControlled.js
|
|
7
|
-
*/
|
|
8
|
-
declare function useControlled<T>({
|
|
9
|
-
controlledValue,
|
|
10
|
-
default: defaultProp
|
|
11
|
-
}: {
|
|
12
|
-
controlledValue?: T;
|
|
13
|
-
default: T;
|
|
14
|
-
}): readonly [T | undefined, (newValue: T | undefined) => void];
|
|
15
|
-
export = useControlled;
|
|
16
|
-
//# sourceMappingURL=useControlled.d.cts.map
|