@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
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { f as FilterStateV2, l as FilterRule, n as CompoundExpression } from "./types-B_HHNlia.cjs";
|
|
2
|
-
import { t as FieldRegistry } from "./FieldRegistry-OX60T3hr.cjs";
|
|
3
|
-
|
|
4
|
-
//#region components/DataTable/TableControls/FiltersV2/useFilterStateV2.d.ts
|
|
5
|
-
interface UseFilterStateV2Options {
|
|
6
|
-
/** Initial state. Defaults to the empty state. */
|
|
7
|
-
initialState?: FilterStateV2;
|
|
8
|
-
/**
|
|
9
|
-
* When `false`, the Rules pill is hidden and the hook force-pins
|
|
10
|
-
* `compound.groups` to `[]`. Mutations targeting compound state become
|
|
11
|
-
* no-ops. Defaults to `true`.
|
|
12
|
-
*
|
|
13
|
-
* Each owning index view decides whether Advanced Filter Rules is in or
|
|
14
|
-
* out for its surface.
|
|
15
|
-
*/
|
|
16
|
-
advancedRulesEnabled?: boolean;
|
|
17
|
-
/** Field registry for the resource this hook is filtering. */
|
|
18
|
-
registry: FieldRegistry;
|
|
19
|
-
}
|
|
20
|
-
interface UseFilterStateV2Result {
|
|
21
|
-
/**
|
|
22
|
-
* Everything the bar renders: the committed filters plus the pills the
|
|
23
|
-
* user has picked but not yet given a value to.
|
|
24
|
-
*/
|
|
25
|
-
state: FilterStateV2;
|
|
26
|
-
/**
|
|
27
|
-
* The filters the parent owns — `state` without in-progress pills. This is
|
|
28
|
-
* what `FilterBar` reports through `onChange`, so a controlled parent that
|
|
29
|
-
* hands it straight back as `initialState` hydrates to exactly what it
|
|
30
|
-
* sent, and nothing has to distinguish that echo from a saved view.
|
|
31
|
-
*/
|
|
32
|
-
committedState: FilterStateV2;
|
|
33
|
-
/** Whether the Rules pill is visible. */
|
|
34
|
-
advancedRulesEnabled: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Replace the whole state, in-progress pills included. Useful for
|
|
37
|
-
* saved-view loading and URL hydration, where the caller means "these
|
|
38
|
-
* are the filters now" and a surviving pill would be a filter the
|
|
39
|
-
* caller didn't ask for.
|
|
40
|
-
*/
|
|
41
|
-
setState: (next: FilterStateV2) => void;
|
|
42
|
-
/**
|
|
43
|
-
* Replace the compound expression, leaving every pill alone. The
|
|
44
|
-
* `AdvancedFilterRulesPopover` edits the compound expression as a value
|
|
45
|
-
* and emits one full expression per user action, so the hook exposes no
|
|
46
|
-
* per-rule compound mutators.
|
|
47
|
-
*/
|
|
48
|
-
setCompound: (compound: CompoundExpression) => void;
|
|
49
|
-
/** Reset to the empty state — used when the user clicks "Clear all filters". */
|
|
50
|
-
reset: () => void;
|
|
51
|
-
/**
|
|
52
|
-
* Append a new top-level rule and return the freshly-generated id.
|
|
53
|
-
* The caller uses the returned id to identify the new pill (e.g. for
|
|
54
|
-
* "open the editor for the rule I just created"). Each call always
|
|
55
|
-
* creates a new rule — duplicate `fieldId`s are allowed so a user
|
|
56
|
-
* can pick the same field twice from the picker and get two pills.
|
|
57
|
-
*/
|
|
58
|
-
addTopLevelRule: (rule: Omit<FilterRule, never>) => string;
|
|
59
|
-
/**
|
|
60
|
-
* Update an existing top-level rule by `id`. No-op if no rule with
|
|
61
|
-
* that id exists (e.g. it was removed between event and dispatch).
|
|
62
|
-
*/
|
|
63
|
-
updateTopLevelRule: (id: string, rule: FilterRule) => void;
|
|
64
|
-
/** Remove the top-level rule with the given id. No-op if absent. */
|
|
65
|
-
removeTopLevelRule: (id: string) => void;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Owns `FilterStateV2` for a filter surface and exposes a small mutator API.
|
|
69
|
-
*
|
|
70
|
-
* When `advancedRulesEnabled` is false, `compound.groups` is forced to
|
|
71
|
-
* `[]`.
|
|
72
|
-
*
|
|
73
|
-
* Putting that invariant here (rather than in the components) keeps
|
|
74
|
-
* `TableControls/FiltersV2` callers from accidentally leaking compound state when
|
|
75
|
-
* the owning view has opted out.
|
|
76
|
-
*
|
|
77
|
-
* The mutator surface is deliberately small: top-level rules get
|
|
78
|
-
* upsert/remove, the compound expression gets whole-value writes. That
|
|
79
|
-
* matches how the UI emits changes — simple pills mutate one rule at a
|
|
80
|
-
* time; the rules popover always emits a full compound expression as
|
|
81
|
-
* one `onChange`.
|
|
82
|
-
*
|
|
83
|
-
* A pill the user has picked but not yet valued is held by the bar rather
|
|
84
|
-
* than committed. Which pills those are is recorded when the picker mints
|
|
85
|
-
* them rather than inferred: they are never reported, so incoming state never
|
|
86
|
-
* describes one and hydration has nothing to reconcile against them. They
|
|
87
|
-
* stay in the same row as the committed pills, so giving one a value doesn't
|
|
88
|
-
* move it.
|
|
89
|
-
*/
|
|
90
|
-
declare function useFilterStateV2(options: UseFilterStateV2Options): UseFilterStateV2Result;
|
|
91
|
-
//#endregion
|
|
92
|
-
export { UseFilterStateV2Result as n, useFilterStateV2 as r, UseFilterStateV2Options as t };
|
|
93
|
-
//# sourceMappingURL=useFilterStateV2-DbPwX5N1.d.cts.map
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { t as ErrorProps } from "./ErrorProps-Dxqb4gw_.cjs";
|
|
2
|
-
import * as _$react from "react";
|
|
3
|
-
|
|
4
|
-
//#region components/FormControl/useFormField.d.ts
|
|
5
|
-
interface FormControlContextProps extends ErrorProps {
|
|
6
|
-
inputId?: string;
|
|
7
|
-
helperTextId?: string;
|
|
8
|
-
errorTextId?: string;
|
|
9
|
-
warningTextId?: string;
|
|
10
|
-
labelId?: string;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
maxLength?: number;
|
|
13
|
-
configField?: boolean;
|
|
14
|
-
}
|
|
15
|
-
declare const FormControlContext: _$react.Context<FormControlContextProps>;
|
|
16
|
-
declare const useFormField: (props: Partial<FormControlContextProps>) => {
|
|
17
|
-
configField: boolean | undefined;
|
|
18
|
-
hasError: boolean | undefined;
|
|
19
|
-
hasWarning: boolean | undefined;
|
|
20
|
-
inputId: string | undefined;
|
|
21
|
-
helperTextId: string | undefined;
|
|
22
|
-
errorTextId: string | undefined;
|
|
23
|
-
warningTextId: string | undefined;
|
|
24
|
-
labelId: string | undefined;
|
|
25
|
-
disabled: boolean | undefined;
|
|
26
|
-
maxLength: number | undefined;
|
|
27
|
-
};
|
|
28
|
-
//#endregion
|
|
29
|
-
export { FormControlContextProps as n, useFormField as r, FormControlContext as t };
|
|
30
|
-
//# sourceMappingURL=useFormField--Q8ZdpW5.d.cts.map
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
require("./chunk-CKQMccvm.cjs");
|
|
2
|
-
const require_useFormGroup = require("./useFormGroup-Bmnzgq0S.cjs");
|
|
3
|
-
let react = require("react");
|
|
4
|
-
//#region components/FormControl/useFormField.ts
|
|
5
|
-
const FormControlContext = (0, react.createContext)({});
|
|
6
|
-
const useFormField = (props) => {
|
|
7
|
-
const group = require_useFormGroup.useFormGroup();
|
|
8
|
-
const field = (0, react.useContext)(FormControlContext);
|
|
9
|
-
const inputId = props.inputId ?? field.inputId;
|
|
10
|
-
return {
|
|
11
|
-
configField: props.configField ?? group.configField,
|
|
12
|
-
hasError: props.hasError ?? field.hasError,
|
|
13
|
-
hasWarning: props.hasWarning ?? field.hasWarning,
|
|
14
|
-
inputId,
|
|
15
|
-
helperTextId: props.helperTextId ?? field.helperTextId,
|
|
16
|
-
errorTextId: props.errorTextId ?? field.errorTextId,
|
|
17
|
-
warningTextId: props.warningTextId ?? field.warningTextId,
|
|
18
|
-
labelId: props.labelId ?? field.labelId,
|
|
19
|
-
disabled: props.disabled ?? field.disabled,
|
|
20
|
-
maxLength: props.maxLength ?? field.maxLength
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
//#endregion
|
|
24
|
-
Object.defineProperty(exports, "FormControlContext", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function() {
|
|
27
|
-
return FormControlContext;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "useFormField", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function() {
|
|
33
|
-
return useFormField;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
//# sourceMappingURL=useFormField-BZlArnsI.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useFormField-BZlArnsI.cjs","names":["useFormGroup"],"sources":["../components/FormControl/useFormField.ts"],"sourcesContent":["import { createContext, useContext } from 'react';\n\nimport useFormGroup from 'design-system/components/ConfigFormGroup/useFormGroup';\nimport type ErrorProps from 'design-system/types/ErrorProps';\n\nexport interface FormControlContextProps extends ErrorProps {\n inputId?: string;\n helperTextId?: string;\n errorTextId?: string;\n warningTextId?: string;\n labelId?: string;\n disabled?: boolean;\n maxLength?: number;\n configField?: boolean;\n}\n\nexport const FormControlContext = createContext<FormControlContextProps>({});\n\nconst useFormField = (props: Partial<FormControlContextProps>) => {\n const group = useFormGroup();\n const field = useContext(FormControlContext);\n\n const inputId = props.inputId ?? field.inputId;\n\n return {\n configField: props.configField ?? group.configField,\n hasError: props.hasError ?? field.hasError,\n hasWarning: props.hasWarning ?? field.hasWarning,\n inputId,\n helperTextId: props.helperTextId ?? field.helperTextId,\n errorTextId: props.errorTextId ?? field.errorTextId,\n warningTextId: props.warningTextId ?? field.warningTextId,\n labelId: props.labelId ?? field.labelId,\n disabled: props.disabled ?? field.disabled,\n maxLength: props.maxLength ?? field.maxLength,\n };\n};\n\nexport default useFormField;\n"],"mappings":";;;;AAgBA,MAAa,sBAAA,GAAA,MAAA,eAA4D,EAAE,CAAC;AAE5E,MAAM,gBAAgB,UAA4C;CAChE,MAAM,QAAQA,qBAAAA,cAAc;CAC5B,MAAM,SAAA,GAAA,MAAA,YAAmB,mBAAmB;CAE5C,MAAM,UAAU,MAAM,WAAW,MAAM;AAEvC,QAAO;EACL,aAAa,MAAM,eAAe,MAAM;EACxC,UAAU,MAAM,YAAY,MAAM;EAClC,YAAY,MAAM,cAAc,MAAM;EACtC;EACA,cAAc,MAAM,gBAAgB,MAAM;EAC1C,aAAa,MAAM,eAAe,MAAM;EACxC,eAAe,MAAM,iBAAiB,MAAM;EAC5C,SAAS,MAAM,WAAW,MAAM;EAChC,UAAU,MAAM,YAAY,MAAM;EAClC,WAAW,MAAM,aAAa,MAAM;EACrC"}
|
package/dist/useFormField.d.cts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
require("./chunk-CKQMccvm.cjs");
|
|
2
|
-
let react = require("react");
|
|
3
|
-
//#region components/ConfigFormGroup/useFormGroup.ts
|
|
4
|
-
const FormGroupContext = (0, react.createContext)({});
|
|
5
|
-
const useFormGroup = (props) => {
|
|
6
|
-
const field = (0, react.useContext)(FormGroupContext);
|
|
7
|
-
return {
|
|
8
|
-
configField: props?.configField ?? field.configField,
|
|
9
|
-
labelTooltipZIndex: props?.labelTooltipZIndex ?? field.labelTooltipZIndex
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
//#endregion
|
|
13
|
-
Object.defineProperty(exports, "FormGroupContext", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function() {
|
|
16
|
-
return FormGroupContext;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "useFormGroup", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function() {
|
|
22
|
-
return useFormGroup;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
//# sourceMappingURL=useFormGroup-Bmnzgq0S.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useFormGroup-Bmnzgq0S.cjs","names":[],"sources":["../components/ConfigFormGroup/useFormGroup.ts"],"sourcesContent":["import { createContext, useContext } from 'react';\n\nexport interface FormGroupContextProps {\n configField?: boolean;\n /**\n * The z-index to use when labels are rendered as tooltips (e.g. when configField is true).\n */\n labelTooltipZIndex?: number;\n}\n\nexport const FormGroupContext = createContext<FormGroupContextProps>({});\n\nconst useFormGroup = (props?: Partial<FormGroupContextProps>) => {\n const field = useContext(FormGroupContext);\n\n return {\n configField: props?.configField ?? field.configField,\n labelTooltipZIndex: props?.labelTooltipZIndex ?? field.labelTooltipZIndex,\n };\n};\n\nexport default useFormGroup;\n"],"mappings":";;;AAUA,MAAa,oBAAA,GAAA,MAAA,eAAwD,EAAE,CAAC;AAExE,MAAM,gBAAgB,UAA2C;CAC/D,MAAM,SAAA,GAAA,MAAA,YAAmB,iBAAiB;AAE1C,QAAO;EACL,aAAa,OAAO,eAAe,MAAM;EACzC,oBAAoB,OAAO,sBAAsB,MAAM;EACxD"}
|
package/dist/useFormGroup.d.cts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as _$react from "react";
|
|
2
|
-
|
|
3
|
-
//#region components/ConfigFormGroup/useFormGroup.d.ts
|
|
4
|
-
interface FormGroupContextProps {
|
|
5
|
-
configField?: boolean;
|
|
6
|
-
/**
|
|
7
|
-
* The z-index to use when labels are rendered as tooltips (e.g. when configField is true).
|
|
8
|
-
*/
|
|
9
|
-
labelTooltipZIndex?: number;
|
|
10
|
-
}
|
|
11
|
-
declare const FormGroupContext: _$react.Context<FormGroupContextProps>;
|
|
12
|
-
declare const useFormGroup: (props?: Partial<FormGroupContextProps>) => {
|
|
13
|
-
configField: boolean | undefined;
|
|
14
|
-
labelTooltipZIndex: number | undefined;
|
|
15
|
-
};
|
|
16
|
-
//#endregion
|
|
17
|
-
export { FormGroupContext, FormGroupContextProps, useFormGroup as default };
|
|
18
|
-
//# sourceMappingURL=useFormGroup.d.cts.map
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { ReactNode, RefObject } from "react";
|
|
2
|
-
import { DndContextProps } from "@dnd-kit/core";
|
|
3
|
-
|
|
4
|
-
//#region components/TableBox/useTableBoxDragAndDrop.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Vertical direction of an active drag relative to its starting position.
|
|
7
|
-
* `null` means the pointer hasn't moved far enough from the drag origin to
|
|
8
|
-
* infer a direction.
|
|
9
|
-
*/
|
|
10
|
-
type DragDirection = 'up' | 'down' | null;
|
|
11
|
-
interface ReorderConfig<T extends object> {
|
|
12
|
-
items: T[];
|
|
13
|
-
itemKeyPath: keyof T & string;
|
|
14
|
-
onReorder: (reorderedItems: T[]) => void;
|
|
15
|
-
}
|
|
16
|
-
interface UseTableBoxDragAndDropArgs<T extends object> {
|
|
17
|
-
tableRef: RefObject<HTMLTableElement>;
|
|
18
|
-
reorderConfig: ReorderConfig<T> | undefined;
|
|
19
|
-
}
|
|
20
|
-
interface UseTableBoxDragAndDropResult {
|
|
21
|
-
/**
|
|
22
|
-
* `id` of the row currently being dragged, or `null` when no drag is active.
|
|
23
|
-
* Use this to derive the DragOverlay content via the `rowRegistry`.
|
|
24
|
-
*/
|
|
25
|
-
activeId: string | null;
|
|
26
|
-
/**
|
|
27
|
-
* Cell widths captured at drag start, in source order. Apply via a
|
|
28
|
-
* `<colgroup>` with `table-layout: fixed` on the overlay table so its
|
|
29
|
-
* columns line up 1:1 with the source row.
|
|
30
|
-
*/
|
|
31
|
-
overlayCellWidths: number[] | null;
|
|
32
|
-
/**
|
|
33
|
-
* Current vertical direction of the active drag. Rows use this to place
|
|
34
|
-
* the drop indicator on a neighbor when the pointer is still within the
|
|
35
|
-
* dragged row's slot.
|
|
36
|
-
*/
|
|
37
|
-
draggedDirection: DragDirection;
|
|
38
|
-
/**
|
|
39
|
-
* Sortable ids in source order. Pass to the `SortableContext`'s `items`.
|
|
40
|
-
*/
|
|
41
|
-
sortableIds: string[];
|
|
42
|
-
/**
|
|
43
|
-
* Registry of row content keyed by row id, populated by each `TableBoxRow`
|
|
44
|
-
* and read when rendering the DragOverlay clone. Always non-null when
|
|
45
|
-
* drag-and-drop is enabled (i.e. `reorderConfig` is set).
|
|
46
|
-
*/
|
|
47
|
-
rowRegistry: React.MutableRefObject<Map<string, ReactNode>>;
|
|
48
|
-
/**
|
|
49
|
-
* Spread on `DndContext`. Includes sensors, collision detection, and the
|
|
50
|
-
* lifecycle handlers that update the rest of this hook's state.
|
|
51
|
-
*/
|
|
52
|
-
dndContextProps: Pick<DndContextProps, 'sensors' | 'collisionDetection' | 'onDragStart' | 'onDragMove' | 'onDragEnd' | 'onDragCancel'>;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Bundles the `@dnd-kit` wiring TableBox needs to support row reordering:
|
|
56
|
-
* sensors, lifecycle handlers, the dragged row's overlay content, and the
|
|
57
|
-
* pointer direction used by rows to position drop indicators in dnd-kit's
|
|
58
|
-
* "dead zone" (overIndex === activeIndex).
|
|
59
|
-
*
|
|
60
|
-
* Also forces a `grabbing` cursor on `<body>` while a row is active so the
|
|
61
|
-
* cursor persists when the pointer leaves the drag handle.
|
|
62
|
-
*/
|
|
63
|
-
declare const useTableBoxDragAndDrop: <T extends object>({
|
|
64
|
-
tableRef,
|
|
65
|
-
reorderConfig
|
|
66
|
-
}: UseTableBoxDragAndDropArgs<T>) => UseTableBoxDragAndDropResult;
|
|
67
|
-
//#endregion
|
|
68
|
-
export { ReorderConfig as n, useTableBoxDragAndDrop as r, DragDirection as t };
|
|
69
|
-
//# sourceMappingURL=useTableBoxDragAndDrop-DnbUToce.d.cts.map
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { DataTableColumnFormat, DataTableColumns, RowAction, SortProps } from "./components/DataTable/types.cjs";
|
|
2
|
-
import { ColumnDef, Row, RowData, Table } from "@tanstack/react-table";
|
|
3
|
-
|
|
4
|
-
//#region components/DataTable/useTableColumns.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Host-injected cell format renderer. Dashboard passes its own implementation
|
|
7
|
-
* that handles all format types including tags, files, and status indicators.
|
|
8
|
-
*/
|
|
9
|
-
type RenderFormatFn<TData = unknown, TFormat extends {
|
|
10
|
-
type: string;
|
|
11
|
-
} = {
|
|
12
|
-
type: string;
|
|
13
|
-
}> = (value: unknown, format?: TFormat, row?: TData) => React.ReactNode;
|
|
14
|
-
interface UseTableColumnsParams<TData extends RowData, TFormat extends {
|
|
15
|
-
type: string;
|
|
16
|
-
} = DataTableColumnFormat<TData>, TFilter = unknown> {
|
|
17
|
-
columns: DataTableColumns<TData, TFormat, TFilter>;
|
|
18
|
-
data: TData[];
|
|
19
|
-
compact?: boolean;
|
|
20
|
-
sort?: boolean | SortProps;
|
|
21
|
-
clientSearch?: boolean | {
|
|
22
|
-
placeholder?: string;
|
|
23
|
-
initialValue?: string;
|
|
24
|
-
};
|
|
25
|
-
clientFiltering?: boolean;
|
|
26
|
-
expandColumnVisibility?: 'auto' | 'always';
|
|
27
|
-
showControls?: boolean;
|
|
28
|
-
enableRowSelection?: boolean;
|
|
29
|
-
enableSubRowSelection?: boolean;
|
|
30
|
-
rowActions?: RowAction[] | ((row: TData) => RowAction[]);
|
|
31
|
-
getRowId?: (row: TData) => string;
|
|
32
|
-
expandedRows: Set<string>;
|
|
33
|
-
toggleRowExpansion: (rowId: string) => void;
|
|
34
|
-
canRowExpand: (rowData: TData) => boolean;
|
|
35
|
-
checkboxColumnStates: Record<string, Set<string>>;
|
|
36
|
-
handleCheckboxCellChange: (columnId: string, rowId: string, checked: boolean) => void;
|
|
37
|
-
handleSelectAllCheckboxCell: (columnId: string, checked: boolean) => void;
|
|
38
|
-
getSelfAndNestedRowIds: (row: TData, indexPath: number[]) => string[];
|
|
39
|
-
handleRowSelectionWithShift: (clickedRow: Row<TData>, table: Table<TData>, checked: boolean, isShiftKey: boolean) => void;
|
|
40
|
-
renderFormat: RenderFormatFn<TData, TFormat>;
|
|
41
|
-
}
|
|
42
|
-
declare function useTableColumns<TData extends RowData, TFormat extends {
|
|
43
|
-
type: string;
|
|
44
|
-
} = DataTableColumnFormat<TData>, TFilter = unknown>({
|
|
45
|
-
columns,
|
|
46
|
-
data,
|
|
47
|
-
compact,
|
|
48
|
-
sort,
|
|
49
|
-
clientSearch,
|
|
50
|
-
clientFiltering,
|
|
51
|
-
expandColumnVisibility,
|
|
52
|
-
showControls,
|
|
53
|
-
enableRowSelection,
|
|
54
|
-
enableSubRowSelection,
|
|
55
|
-
rowActions,
|
|
56
|
-
getRowId,
|
|
57
|
-
expandedRows,
|
|
58
|
-
toggleRowExpansion,
|
|
59
|
-
canRowExpand,
|
|
60
|
-
checkboxColumnStates,
|
|
61
|
-
handleCheckboxCellChange,
|
|
62
|
-
handleSelectAllCheckboxCell,
|
|
63
|
-
getSelfAndNestedRowIds,
|
|
64
|
-
handleRowSelectionWithShift,
|
|
65
|
-
renderFormat
|
|
66
|
-
}: UseTableColumnsParams<TData, TFormat, TFilter>): [ColumnDef<TData, any>[], {
|
|
67
|
-
key: string;
|
|
68
|
-
label: string;
|
|
69
|
-
}[]];
|
|
70
|
-
//#endregion
|
|
71
|
-
export { RenderFormatFn, UseTableColumnsParams, useTableColumns };
|
|
72
|
-
//# sourceMappingURL=useTableColumns.d.cts.map
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
require("./chunk-CKQMccvm.cjs");
|
|
2
|
-
let react = require("react");
|
|
3
|
-
//#region lib/useToggle.ts
|
|
4
|
-
/**
|
|
5
|
-
* useToggle
|
|
6
|
-
*
|
|
7
|
-
* Boolean state hook that provides callbacks for enabling, disabling, flipping
|
|
8
|
-
* and setting state.
|
|
9
|
-
*/
|
|
10
|
-
function useToggle(initialValue = false) {
|
|
11
|
-
const [value, setValue] = (0, react.useState)(!!initialValue);
|
|
12
|
-
return [value, {
|
|
13
|
-
set: (0, react.useCallback)((newValue) => setValue(newValue), []),
|
|
14
|
-
toggle: (0, react.useCallback)(() => setValue(!value), [value]),
|
|
15
|
-
enable: (0, react.useCallback)(() => setValue(true), []),
|
|
16
|
-
disable: (0, react.useCallback)(() => setValue(false), [])
|
|
17
|
-
}];
|
|
18
|
-
}
|
|
19
|
-
//#endregion
|
|
20
|
-
Object.defineProperty(exports, "useToggle", {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function() {
|
|
23
|
-
return useToggle;
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
//# sourceMappingURL=useToggle-DARO917w.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useToggle-DARO917w.cjs","names":[],"sources":["../lib/useToggle.ts"],"sourcesContent":["import { useCallback, useState } from 'react';\n\ninterface UseToggleCallbacks {\n set: (value: boolean) => void;\n toggle: () => void;\n enable: () => void;\n disable: () => void;\n}\n\n/**\n * useToggle\n *\n * Boolean state hook that provides callbacks for enabling, disabling, flipping\n * and setting state.\n */\nexport default function useToggle(initialValue = false): [boolean, UseToggleCallbacks] {\n const [value, setValue] = useState<boolean>(!!initialValue);\n const set = useCallback((newValue: boolean) => setValue(newValue), []);\n const toggle = useCallback(() => setValue(!value), [value]);\n const enable = useCallback(() => setValue(true), []);\n const disable = useCallback(() => setValue(false), []);\n return [value, { set, toggle, enable, disable }];\n}\n"],"mappings":";;;;;;;;;AAeA,SAAwB,UAAU,eAAe,OAAsC;CACrF,MAAM,CAAC,OAAO,aAAA,GAAA,MAAA,UAA8B,CAAC,CAAC,aAAa;AAK3D,QAAO,CAAC,OAAO;EAAE,MAAA,GAAA,MAAA,cAJQ,aAAsB,SAAS,SAAS,EAAE,EAAE,CAIjD;EAAE,SAAA,GAAA,MAAA,mBAHW,SAAS,CAAC,MAAM,EAAE,CAAC,MAAM,CAG9B;EAAE,SAAA,GAAA,MAAA,mBAFG,SAAS,KAAK,EAAE,EAAE,CAEf;EAAE,UAAA,GAAA,MAAA,mBADJ,SAAS,MAAM,EAAE,EAAE,CACR;EAAE,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
//#region types/utilities.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Given a type T, require at least one of the passed keys which are optional keys of T to
|
|
4
|
-
* be present.
|
|
5
|
-
*/
|
|
6
|
-
type RequireOneOf<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & { [K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>> }[Keys];
|
|
7
|
-
//#endregion
|
|
8
|
-
export { RequireOneOf as t };
|
|
9
|
-
//# sourceMappingURL=utilities-mSlaTrjB.d.cts.map
|
package/dist/utilities.d.cts
DELETED
package/dist/utils/storybook.cjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../chunk-CKQMccvm.cjs");
|
|
3
|
-
const require_Stack = require("../Stack-UeifHn3c.cjs");
|
|
4
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
|
-
//#region utils/storybook.tsx
|
|
6
|
-
const withStack = (Story) => {
|
|
7
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Stack.Stack, { children: Story() });
|
|
8
|
-
};
|
|
9
|
-
//#endregion
|
|
10
|
-
exports.withStack = withStack;
|
|
11
|
-
|
|
12
|
-
//# sourceMappingURL=storybook.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storybook.cjs","names":["Stack"],"sources":["../../utils/storybook.tsx"],"sourcesContent":["// eslint-disable-next-line rulesdir/no-restricted-imports-error\nimport type { Decorator } from '@storybook/react-vite';\n\nimport { Stack } from 'design-system/components/Stack';\n\nexport const withStack: Decorator = (Story) => {\n return <Stack>{Story()}</Stack>;\n};\n"],"mappings":";;;;;AAKA,MAAa,aAAwB,UAAU;AAC7C,QAAO,iBAAA,GAAA,kBAAA,KAACA,cAAAA,OAAD,EAAA,UAAQ,OAAO,EAAS,CAAA"}
|
package/dist/utils/testing.cjs
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../chunk-CKQMccvm.cjs");
|
|
3
|
-
const require_lib_PDSProvider = require("../lib/PDSProvider.cjs");
|
|
4
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
|
-
let _testing_library_react = require("@testing-library/react");
|
|
6
|
-
let react_aria_components = require("react-aria-components");
|
|
7
|
-
let react_router_dom = require("react-router-dom");
|
|
8
|
-
//#region utils/testing.tsx
|
|
9
|
-
const AllTheProviders = ({ children, includeRouter = false }) => {
|
|
10
|
-
let router;
|
|
11
|
-
if (includeRouter) router = (0, react_router_dom.createMemoryRouter)([{
|
|
12
|
-
path: "/internal-route",
|
|
13
|
-
element: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: "INTERNAL ROUTE" })
|
|
14
|
-
}, {
|
|
15
|
-
path: "*",
|
|
16
|
-
element: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children })
|
|
17
|
-
}]);
|
|
18
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_lib_PDSProvider, { children: router ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.RouterProvider, {
|
|
19
|
-
navigate: router.navigate,
|
|
20
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_router_dom.RouterProvider, { router })
|
|
21
|
-
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children }) });
|
|
22
|
-
};
|
|
23
|
-
const customRender = (ui, options) => (0, _testing_library_react.render)(ui, {
|
|
24
|
-
wrapper: ({ children }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AllTheProviders, {
|
|
25
|
-
includeRouter: options?.includeRouter,
|
|
26
|
-
children
|
|
27
|
-
}),
|
|
28
|
-
...options
|
|
29
|
-
});
|
|
30
|
-
/**
|
|
31
|
-
* TODO: Improve this helper or the Select to make querying it easer
|
|
32
|
-
*/
|
|
33
|
-
const getSelectByTrigger = (triggerLabel) => {
|
|
34
|
-
const triggerBtn = _testing_library_react.screen.getByText(triggerLabel).closest("button");
|
|
35
|
-
if (triggerBtn.getAttribute("role") !== "combobox") return null;
|
|
36
|
-
return triggerBtn;
|
|
37
|
-
};
|
|
38
|
-
const isInLoadingState = (screenObj) => {
|
|
39
|
-
expect(screenObj.queryAllByTestId("loading-shimmer").length).toBeGreaterThan(0);
|
|
40
|
-
};
|
|
41
|
-
const isNotInLoadingState = (screenObj) => {
|
|
42
|
-
expect(screenObj.queryAllByTestId("loading-shimmer").length).toBe(0);
|
|
43
|
-
};
|
|
44
|
-
//#endregion
|
|
45
|
-
exports.getSelectByTrigger = getSelectByTrigger;
|
|
46
|
-
exports.isInLoadingState = isInLoadingState;
|
|
47
|
-
exports.isNotInLoadingState = isNotInLoadingState;
|
|
48
|
-
exports.render = customRender;
|
|
49
|
-
|
|
50
|
-
//# sourceMappingURL=testing.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"testing.cjs","names":["PDSProvider","ReactAriaRouterProvider","RouterProvider","screen"],"sources":["../../utils/testing.tsx"],"sourcesContent":["import { render, type RenderOptions, screen } from '@testing-library/react';\nimport type { FC, PropsWithChildren, ReactElement } from 'react';\nimport { RouterProvider as ReactAriaRouterProvider } from 'react-aria-components';\nimport { createMemoryRouter, RouterProvider } from 'react-router-dom';\n\nimport PDSProvider from '@persona/design-system/lib/PDSProvider';\n\nconst AllTheProviders: FC<PropsWithChildren<{ includeRouter?: boolean }>> = ({\n children,\n includeRouter = false,\n}) => {\n let router: ReturnType<typeof createMemoryRouter> | undefined;\n if (includeRouter) {\n router = createMemoryRouter([\n {\n path: '/internal-route',\n element: <div>INTERNAL ROUTE</div>,\n },\n {\n path: '*',\n element: <>{children}</>,\n },\n ]);\n }\n\n return (\n <PDSProvider>\n {router ? (\n <ReactAriaRouterProvider navigate={router.navigate}>\n <RouterProvider router={router} />\n </ReactAriaRouterProvider>\n ) : (\n <>{children}</>\n )}\n </PDSProvider>\n );\n};\n\n// https://testing-library.com/docs/react-testing-library/setup/#custom-render\nconst customRender = (\n ui: ReactElement,\n options?: Omit<RenderOptions, 'wrapper'> & { includeRouter?: boolean },\n) =>\n render(ui, {\n wrapper: ({ children }) => (\n <AllTheProviders includeRouter={options?.includeRouter}>{children}</AllTheProviders>\n ),\n ...options,\n });\n\n/**\n * TODO: Improve this helper or the Select to make querying it easer\n */\nexport const getSelectByTrigger = (triggerLabel: string) => {\n const triggerBtn = screen.getByText(triggerLabel).closest('button');\n\n // Check to make sure it's a combobox button\n /* @ts-expect-error [strict-migration] The following line is not strict; please fix! */\n if (triggerBtn.getAttribute('role') !== 'combobox') {\n return null;\n }\n\n return triggerBtn;\n};\n\nexport const isInLoadingState = (screenObj: typeof screen) => {\n // eslint-disable-next-line rulesdir/jest-test-id\n expect(screenObj.queryAllByTestId('loading-shimmer').length).toBeGreaterThan(0);\n};\n\nexport const isNotInLoadingState = (screenObj: typeof screen) => {\n // eslint-disable-next-line rulesdir/jest-test-id\n expect(screenObj.queryAllByTestId('loading-shimmer').length).toBe(0);\n};\n\nexport { customRender as render };\n"],"mappings":";;;;;;;;AAOA,MAAM,mBAAuE,EAC3E,UACA,gBAAgB,YACZ;CACJ,IAAI;AACJ,KAAI,cACF,WAAA,GAAA,iBAAA,oBAA4B,CAC1B;EACE,MAAM;EACN,SAAS,iBAAA,GAAA,kBAAA,KAAC,OAAD,EAAA,UAAK,kBAAoB,CAAA;EACnC,EACD;EACE,MAAM;EACN,SAAS,iBAAA,GAAA,kBAAA,KAAA,kBAAA,UAAA,EAAG,UAAY,CAAA;EACzB,CACF,CAAC;AAGJ,QACE,iBAAA,GAAA,kBAAA,KAACA,yBAAD,EAAA,UACG,SACC,iBAAA,GAAA,kBAAA,KAACC,sBAAAA,gBAAD;EAAyB,UAAU,OAAO;YACxC,iBAAA,GAAA,kBAAA,KAACC,iBAAAA,gBAAD,EAAwB,QAAU,CAAA;EACV,CAAA,GAE1B,iBAAA,GAAA,kBAAA,KAAA,kBAAA,UAAA,EAAG,UAAY,CAAA,EAEL,CAAA;;AAKlB,MAAM,gBACJ,IACA,aAAA,GAAA,uBAAA,QAEO,IAAI;CACT,UAAU,EAAE,eACV,iBAAA,GAAA,kBAAA,KAAC,iBAAD;EAAiB,eAAe,SAAS;EAAgB;EAA2B,CAAA;CAEtF,GAAG;CACJ,CAAC;;;;AAKJ,MAAa,sBAAsB,iBAAyB;CAC1D,MAAM,aAAaC,uBAAAA,OAAO,UAAU,aAAa,CAAC,QAAQ,SAAS;AAInE,KAAI,WAAW,aAAa,OAAO,KAAK,WACtC,QAAO;AAGT,QAAO;;AAGT,MAAa,oBAAoB,cAA6B;AAE5D,QAAO,UAAU,iBAAiB,kBAAkB,CAAC,OAAO,CAAC,gBAAgB,EAAE;;AAGjF,MAAa,uBAAuB,cAA6B;AAE/D,QAAO,UAAU,iBAAiB,kBAAkB,CAAC,OAAO,CAAC,KAAK,EAAE"}
|
package/dist/utils/testing.d.cts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
import * as _$_testing_library_dom_types_queries0 from "@testing-library/dom/types/queries";
|
|
3
|
-
import * as _$_testing_library_react0 from "@testing-library/react";
|
|
4
|
-
import { RenderOptions, screen } from "@testing-library/react";
|
|
5
|
-
|
|
6
|
-
//#region utils/testing.d.ts
|
|
7
|
-
declare const customRender: (ui: ReactElement, options?: Omit<RenderOptions, "wrapper"> & {
|
|
8
|
-
includeRouter?: boolean;
|
|
9
|
-
}) => _$_testing_library_react0.RenderResult<typeof _$_testing_library_dom_types_queries0, HTMLElement, HTMLElement>;
|
|
10
|
-
/**
|
|
11
|
-
* TODO: Improve this helper or the Select to make querying it easer
|
|
12
|
-
*/
|
|
13
|
-
declare const getSelectByTrigger: (triggerLabel: string) => HTMLButtonElement | null;
|
|
14
|
-
declare const isInLoadingState: (screenObj: typeof screen) => void;
|
|
15
|
-
declare const isNotInLoadingState: (screenObj: typeof screen) => void;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { getSelectByTrigger, isInLoadingState, isNotInLoadingState, customRender as render };
|
|
18
|
-
//# sourceMappingURL=testing.d.cts.map
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { f as FilterStateV2, l as FilterRule } from "./types-B_HHNlia.cjs";
|
|
2
|
-
import { t as FieldRegistry } from "./FieldRegistry-OX60T3hr.cjs";
|
|
3
|
-
|
|
4
|
-
//#region components/DataTable/TableControls/FiltersV2/validation.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Returns `true` when `value` is a structurally-valid `FilterStateV2`,
|
|
7
|
-
* including per-rule content validation. A `topLevelRules` element
|
|
8
|
-
* with a non-string `fieldId`, an operator not in the known
|
|
9
|
-
* vocabulary, or a value of an unsupported type is rejected — a
|
|
10
|
-
* shallow shape sniff would let those reach the adapter.
|
|
11
|
-
*/
|
|
12
|
-
declare function isFilterStateV2(value: unknown): value is FilterStateV2;
|
|
13
|
-
/**
|
|
14
|
-
* Strip rules referencing unregistered `fieldId`s from a decoded state.
|
|
15
|
-
* Pairs with `isFilterStateV2` for defense-in-depth: even after the
|
|
16
|
-
* shape guard passes, a rule with a `fieldId` that doesn't exist in the
|
|
17
|
-
* current resource's registry would silently render nothing in the UI
|
|
18
|
-
* but still reach the adapter and ship to the backend. Pruning closes
|
|
19
|
-
* that gap.
|
|
20
|
-
*
|
|
21
|
-
* Empty AND-groups created by pruning are also dropped, since the
|
|
22
|
-
* adapter prunes them on serialize anyway and the editor UI hides
|
|
23
|
-
* empty groups too.
|
|
24
|
-
*
|
|
25
|
-
* Skips its own work and returns the input unchanged when `registry`
|
|
26
|
-
* is `undefined` — useful for callers that hydrate before the registry
|
|
27
|
-
* is built.
|
|
28
|
-
*
|
|
29
|
-
* For valueless operators (`is_empty`, etc.) the value contract is
|
|
30
|
-
* `null`. Non-valueless operators keep in-progress draft values (an empty
|
|
31
|
-
* string / empty array) so a pill the user is mid-editing survives the
|
|
32
|
-
* report/hydrate round-trip and stays visible — top-level and compound
|
|
33
|
-
* rules are treated alike here, and the serialize boundary
|
|
34
|
-
* (`hasCompleteValue`) is what drops incomplete rules from the request.
|
|
35
|
-
*/
|
|
36
|
-
declare function pruneToRegistry(state: FilterStateV2, registry: FieldRegistry | undefined): FilterStateV2;
|
|
37
|
-
/**
|
|
38
|
-
* Whether `rule` carries a complete value for its field type — the
|
|
39
|
-
* serialize-boundary predicate `pruneEmptyRulesForSerialize` uses to drop
|
|
40
|
-
* half-edited rules from the request (a value-requiring operator like
|
|
41
|
-
* `is_not` with no value yet makes the backend reject the whole request).
|
|
42
|
-
*
|
|
43
|
-
* Deliberately stricter than `isRuleAllowed`'s hydration policy, which keeps
|
|
44
|
-
* an empty string so an in-progress pill survives the state round-trip and
|
|
45
|
-
* stays visible for the user to finish. Checks value completeness only — it
|
|
46
|
-
* does not gate operator vocabulary or registry membership.
|
|
47
|
-
*/
|
|
48
|
-
declare function hasCompleteValue(rule: FilterRule, registry: FieldRegistry): boolean;
|
|
49
|
-
//#endregion
|
|
50
|
-
export { isFilterStateV2 as n, pruneToRegistry as r, hasCompleteValue as t };
|
|
51
|
-
//# sourceMappingURL=validation-CJymv6JE.d.cts.map
|
package/dist/validation.d.cts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { a as FilterField, c as FilterOperator, u as FilterRuleValue } from "./types-B_HHNlia.cjs";
|
|
2
|
-
import { ReactNode } from "react";
|
|
3
|
-
|
|
4
|
-
//#region components/DataTable/TableControls/FiltersV2/FilterBar/value-control-resolver.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Single dispatch point that picks the right type-aware value control for a
|
|
7
|
-
* given `FilterField`. Used by both the simple-rule `FilterPopover` and the
|
|
8
|
-
* Advanced Filter Rules editor so the per-type input behavior stays
|
|
9
|
-
* consistent across surfaces.
|
|
10
|
-
*
|
|
11
|
-
* Adding a new field type:
|
|
12
|
-
*
|
|
13
|
-
* 1. Add the type to `FilterFieldType` in `../types.ts` (and decide its
|
|
14
|
-
* operator vocabulary in `../operators.ts`).
|
|
15
|
-
* 2. Implement a control under `../value-controls/<NewType>ValueControl/`
|
|
16
|
-
* that accepts `ValueControlProps` from `../value-controls/types.ts`.
|
|
17
|
-
* 3. Add the new branch to `RESOLVERS` below. TypeScript will require it
|
|
18
|
-
* because the `Record<FilterFieldType, …>` keying makes the table
|
|
19
|
-
* exhaustive.
|
|
20
|
-
*
|
|
21
|
-
* `layout` is forwarded to the underlying control so the same component
|
|
22
|
-
* can render differently between the two surfaces — see
|
|
23
|
-
* `ChoicesValueControl` in `multiple` mode ("popover" → inline checkbox
|
|
24
|
-
* list, "inline" → compact Combobox with chips).
|
|
25
|
-
*/
|
|
26
|
-
interface ResolveValueControlOptions {
|
|
27
|
-
field: FilterField;
|
|
28
|
-
operator: FilterOperator;
|
|
29
|
-
value: FilterRuleValue;
|
|
30
|
-
onChange: (value: FilterRuleValue) => void;
|
|
31
|
-
onCommit?: () => void;
|
|
32
|
-
ariaLabel?: string;
|
|
33
|
-
/**
|
|
34
|
-
* Where the control is being rendered. `popover` (default) is the
|
|
35
|
-
* simple-pill `FilterPopover` surface — dedicated to one rule with
|
|
36
|
-
* room for an inline checkbox list. `inline` is the Advanced Filter
|
|
37
|
-
* Rules `LogicRow` dropdown surface — compact, prefers a Combobox
|
|
38
|
-
* with chips over a vertically expansive list.
|
|
39
|
-
*/
|
|
40
|
-
layout?: 'popover' | 'inline';
|
|
41
|
-
}
|
|
42
|
-
type ValueControlResolver = (opts: ResolveValueControlOptions) => ReactNode | undefined;
|
|
43
|
-
declare function resolveValueControl(opts: ResolveValueControlOptions, hostResolver?: ValueControlResolver): ReactNode;
|
|
44
|
-
//#endregion
|
|
45
|
-
export { ValueControlResolver as n, resolveValueControl as r, ResolveValueControlOptions as t };
|
|
46
|
-
//# sourceMappingURL=value-control-resolver-B9p25q3G.d.cts.map
|
package/dist/variables/color.cjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
//#region variables/color.ts
|
|
3
|
-
/**
|
|
4
|
-
* COLORS => Color
|
|
5
|
-
* 10 => 100
|
|
6
|
-
* 20 => 200
|
|
7
|
-
* 30 => 300
|
|
8
|
-
* 50 => 400
|
|
9
|
-
* 60 => 500
|
|
10
|
-
* 80 => 600 (primary color)
|
|
11
|
-
* 100 => 700
|
|
12
|
-
* unused => 800
|
|
13
|
-
*/
|
|
14
|
-
let Color = /* @__PURE__ */ function(Color) {
|
|
15
|
-
Color["Black"] = "#000000";
|
|
16
|
-
Color["White"] = "#FFFFFF";
|
|
17
|
-
return Color;
|
|
18
|
-
}({});
|
|
19
|
-
//#endregion
|
|
20
|
-
exports.Color = Color;
|
|
21
|
-
|
|
22
|
-
//# sourceMappingURL=color.cjs.map
|