@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/Spacer-B2CerL6e.cjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
const require_chunk = require("./chunk-CKQMccvm.cjs");
|
|
2
|
-
require("./variables/spacing.cjs");
|
|
3
|
-
let styled_components = require("styled-components");
|
|
4
|
-
styled_components = require_chunk.__toESM(styled_components);
|
|
5
|
-
//#endregion
|
|
6
|
-
//#region components/Spacer/index.ts
|
|
7
|
-
var Spacer_default = styled_components.default.div.attrs(() => ({ "aria-hidden": true }))`
|
|
8
|
-
height: ${({ height = 5 }) => height * 8}px;
|
|
9
|
-
width: ${({ width = 0 }) => width * 8}px;
|
|
10
|
-
flex: none;
|
|
11
|
-
`;
|
|
12
|
-
//#endregion
|
|
13
|
-
Object.defineProperty(exports, "Spacer_default", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function() {
|
|
16
|
-
return Spacer_default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
//# sourceMappingURL=Spacer-B2CerL6e.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Spacer-B2CerL6e.cjs","names":[],"sources":["../components/Spacer/Spacer.tsx","../components/Spacer/index.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport { BASE } from 'design-system/variables/spacing';\n\ninterface SpacerProps {\n height?: number;\n width?: number;\n}\n\n/**\n * A simple spacer element used to provide vertical space in grids.\n *\n * @deprecated You probably want to use `Stack` instead with a `gap` for spacing.\n */\nconst Spacer = styled.div.attrs(() => ({ 'aria-hidden': true }))<SpacerProps>`\n height: ${({ height = 5 }) => height * BASE}px;\n width: ${({ width = 0 }) => width * BASE}px;\n flex: none;\n`;\n\nexport default Spacer;\n","import Spacer from './Spacer';\n\nexport default Spacer;\n"],"mappings":";;;;;;ACEA,IAAA,iBAAe,ADYA,kBAAA,QAAO,IAAI,aAAa,EAAE,eAAe,MAAM,EAAE;aACnD,EAAE,SAAS,QAAQ,SAAA,EAAc;YAClC,EAAE,QAAQ,QAAQ,QAAA,EAAa"}
|
package/dist/Spacer.d.cts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as _$styled_components0 from "styled-components";
|
|
2
|
-
|
|
3
|
-
//#region components/Spacer/Spacer.d.ts
|
|
4
|
-
interface SpacerProps {
|
|
5
|
-
height?: number;
|
|
6
|
-
width?: number;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* A simple spacer element used to provide vertical space in grids.
|
|
10
|
-
*
|
|
11
|
-
* @deprecated You probably want to use `Stack` instead with a `gap` for spacing.
|
|
12
|
-
*/
|
|
13
|
-
declare const Spacer: _$styled_components0.StyledComponent<"div", any, {
|
|
14
|
-
'aria-hidden': true;
|
|
15
|
-
} & SpacerProps, "aria-hidden">;
|
|
16
|
-
export = Spacer;
|
|
17
|
-
//# sourceMappingURL=Spacer.d.cts.map
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
const require_chunk = require("./chunk-CKQMccvm.cjs");
|
|
2
|
-
require("./variables/transitions.cjs");
|
|
3
|
-
const require_variables_keyframes = require("./variables/keyframes.cjs");
|
|
4
|
-
let _persona_design_tokens = require("@persona/design-tokens");
|
|
5
|
-
let styled_components = require("styled-components");
|
|
6
|
-
styled_components = require_chunk.__toESM(styled_components);
|
|
7
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
-
let _persona_icons = require("@persona/icons");
|
|
9
|
-
let _persona_icons_24px = require("@persona/icons/24px");
|
|
10
|
-
//#region components/Spinner/Spinner.tsx
|
|
11
|
-
const SPINNER_COLOR = {
|
|
12
|
-
default: _persona_design_tokens.Color.BorderIconPrimary,
|
|
13
|
-
inverse: _persona_design_tokens.Color.BorderIconInverse
|
|
14
|
-
};
|
|
15
|
-
const Container = styled_components.default.span`
|
|
16
|
-
line-height: 0;
|
|
17
|
-
display: inline-block;
|
|
18
|
-
`;
|
|
19
|
-
const VisuallyHidden = styled_components.default.span`
|
|
20
|
-
position: absolute;
|
|
21
|
-
width: 1px;
|
|
22
|
-
height: 1px;
|
|
23
|
-
overflow: hidden;
|
|
24
|
-
clip: rect(0, 0, 0, 0);
|
|
25
|
-
white-space: nowrap;
|
|
26
|
-
`;
|
|
27
|
-
const IconContainer = styled_components.default.span`
|
|
28
|
-
display: inline-block;
|
|
29
|
-
animation: ${require_variables_keyframes.rotate} ${"1000ms"} linear infinite;
|
|
30
|
-
`;
|
|
31
|
-
const Spinner = ({ variant = "default", size = "sm", srText, className }) => {
|
|
32
|
-
const resolvedColor = SPINNER_COLOR[variant];
|
|
33
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Container, {
|
|
34
|
-
role: "status",
|
|
35
|
-
"aria-label": "loading spinner",
|
|
36
|
-
className,
|
|
37
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(VisuallyHidden, { children: srText ?? "Loading..." }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconContainer, { children: size === "sm" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_persona_icons.LoaderIcon, { color: resolvedColor }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_persona_icons_24px.LoaderIcon, { color: resolvedColor }) })]
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
//#endregion
|
|
41
|
-
Object.defineProperty(exports, "Spinner", {
|
|
42
|
-
enumerable: true,
|
|
43
|
-
get: function() {
|
|
44
|
-
return Spinner;
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
//# sourceMappingURL=Spinner-B6bx70yR.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner-B6bx70yR.cjs","names":["Color","rotate","LoaderIcon","LoaderIconMedium"],"sources":["../components/Spinner/Spinner.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport { rotate } from '@persona/design-system/variables/keyframes';\nimport { TransitionDuration } from '@persona/design-system/variables/transitions';\nimport { Color } from '@persona/design-tokens';\nimport { LoaderIcon } from '@persona/icons';\nimport { LoaderIcon as LoaderIconMedium } from '@persona/icons/24px';\n\nexport type SpinnerVariant = 'default' | 'inverse';\n\nconst SPINNER_COLOR: Record<SpinnerVariant, string> = {\n default: Color.BorderIconPrimary,\n inverse: Color.BorderIconInverse,\n};\n\ntype SpinnerSize = 'sm' | 'md';\n\ninterface SpinnerProps {\n /**\n * `default` uses {@link Color.BorderIconPrimary}; `inverse` uses {@link Color.BorderIconInverse}\n * (e.g. on dark backgrounds).\n */\n variant?: SpinnerVariant;\n /** Size of the spinner. Defaults to 'sm'. */\n size?: SpinnerSize;\n /** Screen reader text. Defaults to \"Loading...\". */\n srText?: string;\n className?: string;\n}\n\nconst Container = styled.span`\n line-height: 0;\n display: inline-block;\n`;\n\nconst VisuallyHidden = styled.span`\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n`;\n\nconst IconContainer = styled.span`\n display: inline-block;\n animation: ${rotate} ${TransitionDuration.OneSecond} linear infinite;\n`;\n\nexport const Spinner = ({ variant = 'default', size = 'sm', srText, className }: SpinnerProps) => {\n const resolvedColor = SPINNER_COLOR[variant];\n return (\n <Container role='status' aria-label='loading spinner' className={className}>\n <VisuallyHidden>{srText ?? 'Loading...'}</VisuallyHidden>\n <IconContainer>\n {size === 'sm' ? (\n <LoaderIcon color={resolvedColor} />\n ) : (\n <LoaderIconMedium color={resolvedColor} />\n )}\n </IconContainer>\n </Container>\n );\n};\n\nexport default Spinner;\n"],"mappings":";;;;;;;;;;AAUA,MAAM,gBAAgD;CACpD,SAASA,uBAAAA,MAAM;CACf,SAASA,uBAAAA,MAAM;CAChB;AAiBD,MAAM,YAAY,kBAAA,QAAO,IAAI;;;;AAK7B,MAAM,iBAAiB,kBAAA,QAAO,IAAI;;;;;;;;AASlC,MAAM,gBAAgB,kBAAA,QAAO,IAAI;;eAElBC,4BAAAA,OAAO,GAAA,SAAgC;;AAGtD,MAAa,WAAW,EAAE,UAAU,WAAW,OAAO,MAAM,QAAQ,gBAA8B;CAChG,MAAM,gBAAgB,cAAc;AACpC,QACE,iBAAA,GAAA,kBAAA,MAAC,WAAD;EAAW,MAAK;EAAS,cAAW;EAA6B;YAAjE,CACE,iBAAA,GAAA,kBAAA,KAAC,gBAAD,EAAA,UAAiB,UAAU,cAA8B,CAAA,EACzD,iBAAA,GAAA,kBAAA,KAAC,eAAD,EAAA,UACG,SAAS,OACR,iBAAA,GAAA,kBAAA,KAACC,eAAAA,YAAD,EAAY,OAAO,eAAiB,CAAA,GAEpC,iBAAA,GAAA,kBAAA,KAACC,oBAAAA,YAAD,EAAkB,OAAO,eAAiB,CAAA,EAE9B,CAAA,CACN"}
|
package/dist/Spinner.d.cts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime.js";
|
|
2
|
-
|
|
3
|
-
//#region components/Spinner/Spinner.d.ts
|
|
4
|
-
type SpinnerVariant = 'default' | 'inverse';
|
|
5
|
-
type SpinnerSize = 'sm' | 'md';
|
|
6
|
-
interface SpinnerProps {
|
|
7
|
-
/**
|
|
8
|
-
* `default` uses {@link Color.BorderIconPrimary}; `inverse` uses {@link Color.BorderIconInverse}
|
|
9
|
-
* (e.g. on dark backgrounds).
|
|
10
|
-
*/
|
|
11
|
-
variant?: SpinnerVariant;
|
|
12
|
-
/** Size of the spinner. Defaults to 'sm'. */
|
|
13
|
-
size?: SpinnerSize;
|
|
14
|
-
/** Screen reader text. Defaults to "Loading...". */
|
|
15
|
-
srText?: string;
|
|
16
|
-
className?: string;
|
|
17
|
-
}
|
|
18
|
-
declare const Spinner: ({
|
|
19
|
-
variant,
|
|
20
|
-
size,
|
|
21
|
-
srText,
|
|
22
|
-
className
|
|
23
|
-
}: SpinnerProps) => _$react_jsx_runtime0.JSX.Element;
|
|
24
|
-
//#endregion
|
|
25
|
-
export { Spinner, Spinner as default, SpinnerVariant };
|
|
26
|
-
//# sourceMappingURL=Spinner.d.cts.map
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from "react";
|
|
2
|
-
import * as _$styled_components0 from "styled-components";
|
|
3
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime.js";
|
|
4
|
-
import { Spacing } from "@persona/design-tokens";
|
|
5
|
-
import * as CSS from "csstype";
|
|
6
|
-
|
|
7
|
-
//#region components/Stack/Stack.d.ts
|
|
8
|
-
interface StackProps {
|
|
9
|
-
/**
|
|
10
|
-
* Spacing between items. Defaults to Spacing[3].
|
|
11
|
-
*
|
|
12
|
-
* @defaultValue Spacing[3]
|
|
13
|
-
*/
|
|
14
|
-
spacing?: Spacing;
|
|
15
|
-
/**
|
|
16
|
-
* Direction of Stack. Defaults to vertical.
|
|
17
|
-
*
|
|
18
|
-
* @defaultValue 'vertical'
|
|
19
|
-
*/
|
|
20
|
-
direction?: 'vertical' | 'horizontal';
|
|
21
|
-
/**
|
|
22
|
-
* Passed through as `align-items`
|
|
23
|
-
*/
|
|
24
|
-
align?: CSS.Property.AlignItems;
|
|
25
|
-
/**
|
|
26
|
-
* Passed through as `justify-content`
|
|
27
|
-
*/
|
|
28
|
-
justify?: CSS.Property.JustifyContent;
|
|
29
|
-
/**
|
|
30
|
-
* Passed through as `flex-wrap`
|
|
31
|
-
*/
|
|
32
|
-
wrap?: CSS.Property.FlexWrap;
|
|
33
|
-
/**
|
|
34
|
-
* Give each item an equal width/height.
|
|
35
|
-
*/
|
|
36
|
-
equal?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Passed through as `width: 100%`
|
|
39
|
-
*/
|
|
40
|
-
fullWidth?: boolean;
|
|
41
|
-
}
|
|
42
|
-
declare const Stack: _$styled_components0.StyledComponent<"div", any, StackProps, never>;
|
|
43
|
-
type HStackProps = ComponentPropsWithoutRef<'div'> & StackProps;
|
|
44
|
-
declare const HStack: (props: HStackProps) => _$react_jsx_runtime0.JSX.Element;
|
|
45
|
-
//#endregion
|
|
46
|
-
export { StackProps as i, HStackProps as n, Stack as r, HStack as t };
|
|
47
|
-
//# sourceMappingURL=Stack-BzVkf3cz.d.cts.map
|
package/dist/Stack-UeifHn3c.cjs
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
const require_chunk = require("./chunk-CKQMccvm.cjs");
|
|
2
|
-
let _persona_design_tokens = require("@persona/design-tokens");
|
|
3
|
-
let styled_components = require("styled-components");
|
|
4
|
-
styled_components = require_chunk.__toESM(styled_components);
|
|
5
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
|
-
//#region components/Stack/Stack.tsx
|
|
7
|
-
const Stack = (0, styled_components.default)("div")`
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: ${({ direction }) => direction === "horizontal" ? "row" : "column"};
|
|
10
|
-
gap: ${({ spacing }) => spacing || _persona_design_tokens.Spacing[2]};
|
|
11
|
-
|
|
12
|
-
${({ align }) => align && styled_components.css`
|
|
13
|
-
align-items: ${align};
|
|
14
|
-
`}
|
|
15
|
-
|
|
16
|
-
${({ justify }) => justify && styled_components.css`
|
|
17
|
-
justify-content: ${justify};
|
|
18
|
-
`}
|
|
19
|
-
|
|
20
|
-
${({ wrap }) => wrap && styled_components.css`
|
|
21
|
-
flex-wrap: ${wrap};
|
|
22
|
-
`}
|
|
23
|
-
|
|
24
|
-
${({ equal }) => equal && styled_components.css`
|
|
25
|
-
> * {
|
|
26
|
-
flex-grow: 1;
|
|
27
|
-
flex-basis: 0;
|
|
28
|
-
}
|
|
29
|
-
`}
|
|
30
|
-
|
|
31
|
-
${({ fullWidth }) => fullWidth && styled_components.css`
|
|
32
|
-
width: 100%;
|
|
33
|
-
`}
|
|
34
|
-
`;
|
|
35
|
-
const HStack = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Stack, {
|
|
36
|
-
...props,
|
|
37
|
-
direction: "horizontal"
|
|
38
|
-
});
|
|
39
|
-
//#endregion
|
|
40
|
-
Object.defineProperty(exports, "HStack", {
|
|
41
|
-
enumerable: true,
|
|
42
|
-
get: function() {
|
|
43
|
-
return HStack;
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
Object.defineProperty(exports, "Stack", {
|
|
47
|
-
enumerable: true,
|
|
48
|
-
get: function() {
|
|
49
|
-
return Stack;
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
//# sourceMappingURL=Stack-UeifHn3c.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Stack-UeifHn3c.cjs","names":["Spacing"],"sources":["../components/Stack/Stack.tsx"],"sourcesContent":["import type * as CSS from 'csstype';\nimport type { ComponentPropsWithoutRef } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { Spacing } from '@persona/design-tokens';\n\nexport interface StackProps {\n /**\n * Spacing between items. Defaults to Spacing[3].\n *\n * @defaultValue Spacing[3]\n */\n spacing?: Spacing;\n\n /**\n * Direction of Stack. Defaults to vertical.\n *\n * @defaultValue 'vertical'\n */\n direction?: 'vertical' | 'horizontal';\n\n /**\n * Passed through as `align-items`\n */\n align?: CSS.Property.AlignItems;\n\n /**\n * Passed through as `justify-content`\n */\n justify?: CSS.Property.JustifyContent;\n\n /**\n * Passed through as `flex-wrap`\n */\n wrap?: CSS.Property.FlexWrap;\n\n /**\n * Give each item an equal width/height.\n */\n equal?: boolean;\n\n /**\n * Passed through as `width: 100%`\n */\n fullWidth?: boolean;\n}\n\nexport const Stack = styled('div')<StackProps>`\n display: flex;\n flex-direction: ${({ direction }) => (direction === 'horizontal' ? 'row' : 'column')};\n gap: ${({ spacing }) => spacing || Spacing[2]};\n\n ${({ align }) =>\n align &&\n css`\n align-items: ${align};\n `}\n\n ${({ justify }) =>\n justify &&\n css`\n justify-content: ${justify};\n `}\n\n ${({ wrap }) =>\n wrap &&\n css`\n flex-wrap: ${wrap};\n `}\n\n ${({ equal }) =>\n equal &&\n css`\n > * {\n flex-grow: 1;\n flex-basis: 0;\n }\n `}\n\n ${({ fullWidth }) =>\n fullWidth &&\n css`\n width: 100%;\n `}\n`;\n\nexport default Stack;\n\nexport type HStackProps = ComponentPropsWithoutRef<'div'> & StackProps;\n\nexport const HStack = (props: HStackProps) => <Stack {...props} direction='horizontal' />;\n"],"mappings":";;;;;;AA+CA,MAAa,QAAQ,CAAA,GAAA,kBAAA,SAAO,MAAM;;qBAEb,EAAE,gBAAiB,cAAc,eAAe,QAAQ,SAAU;UAC7E,EAAE,cAAc,WAAWA,uBAAAA,QAAQ,GAAG;;KAE3C,EAAE,YACH,SACA,kBAAA,GAAG;qBACc,MAAM;MACrB;;KAED,EAAE,cACH,WACA,kBAAA,GAAG;yBACkB,QAAQ;MAC3B;;KAED,EAAE,WACH,QACA,kBAAA,GAAG;mBACY,KAAK;MAClB;;KAED,EAAE,YACH,SACA,kBAAA,GAAG;;;;;MAKD;;KAED,EAAE,gBACH,aACA,kBAAA,GAAG;;MAED;;AAON,MAAa,UAAU,UAAuB,iBAAA,GAAA,kBAAA,KAAC,OAAD;CAAO,GAAI;CAAO,WAAU;CAAe,CAAA"}
|
package/dist/Stack.d.cts
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ReactNode } from "react";
|
|
2
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime.js";
|
|
3
|
-
|
|
4
|
-
//#region components/StatusIndicator/StatusIndicator.d.ts
|
|
5
|
-
type StatusType = 'neutral' | 'attention' | 'warning' | 'critical' | 'success' | 'feature' | 'informational' | 'miscellaneous';
|
|
6
|
-
type BackgroundType = 'filled' | 'none';
|
|
7
|
-
/**
|
|
8
|
-
* Narrow set of status presets — one value per type+icon combination.
|
|
9
|
-
* Override color with `type` or icon with `leadingIcon` when needed.
|
|
10
|
-
*/
|
|
11
|
-
type Status = 'open' | 'pending' | 'completed' | 'active' | 'failed' | 'needs_review' | 'canceled' | 'archived';
|
|
12
|
-
/** All supported `status` preset keys, derived from the config map. */
|
|
13
|
-
declare const STATUSES: Status[];
|
|
14
|
-
interface StatusIndicatorProps extends ComponentPropsWithoutRef<'div'> {
|
|
15
|
-
/**
|
|
16
|
-
* Preset that sets a default semantic type and icon.
|
|
17
|
-
* Explicit `type` and `leadingIcon` override the preset.
|
|
18
|
-
*/
|
|
19
|
-
status?: Status;
|
|
20
|
-
/**
|
|
21
|
-
* The semantic status type to display. Overrides `status` when both are set.
|
|
22
|
-
*/
|
|
23
|
-
type?: StatusType;
|
|
24
|
-
/**
|
|
25
|
-
* Whether to show filled background or transparent
|
|
26
|
-
*/
|
|
27
|
-
background?: BackgroundType;
|
|
28
|
-
/**
|
|
29
|
-
* Whether to show the icon. When false, displays label-only variant
|
|
30
|
-
* @default true
|
|
31
|
-
*/
|
|
32
|
-
showIcon?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Optional custom icon to replace the default icon indicator (12px recommended)
|
|
35
|
-
* - undefined (default): Uses `status` icon when set, otherwise CircleNullIcon
|
|
36
|
-
* - null: Hides the icon completely
|
|
37
|
-
* - ReactNode: Shows the provided custom icon
|
|
38
|
-
* Note: showIcon must be true for this to take effect
|
|
39
|
-
*/
|
|
40
|
-
leadingIcon?: ReactNode | null;
|
|
41
|
-
/**
|
|
42
|
-
* Truncate the label with an ellipsis instead of letting it overflow its container. Adds a
|
|
43
|
-
* title tooltip with the full text when it doesn't fit.
|
|
44
|
-
* @default false
|
|
45
|
-
*/
|
|
46
|
-
truncate?: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Render the label exactly as given instead of capitalizing each word. Use for labels that are
|
|
49
|
-
* authored outside the product, where the casing is not ours to change.
|
|
50
|
-
* @default false
|
|
51
|
-
*/
|
|
52
|
-
preserveCase?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* The text label to display
|
|
55
|
-
*/
|
|
56
|
-
children?: ReactNode;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* StatusIndicator displays semantic status information with a colored icon and label.
|
|
60
|
-
* Supports both filled backgrounds and transparent styles.
|
|
61
|
-
*
|
|
62
|
-
* @example
|
|
63
|
-
* ```tsx
|
|
64
|
-
* <StatusIndicator status="active">Active</StatusIndicator>
|
|
65
|
-
* <StatusIndicator type="success" background="filled">Approved</StatusIndicator>
|
|
66
|
-
* <StatusIndicator type="critical" background="none">Failed</StatusIndicator>
|
|
67
|
-
* ```
|
|
68
|
-
*/
|
|
69
|
-
declare const StatusIndicator: ({
|
|
70
|
-
status,
|
|
71
|
-
type,
|
|
72
|
-
background,
|
|
73
|
-
showIcon,
|
|
74
|
-
leadingIcon,
|
|
75
|
-
truncate,
|
|
76
|
-
preserveCase,
|
|
77
|
-
children,
|
|
78
|
-
...props
|
|
79
|
-
}: StatusIndicatorProps) => _$react_jsx_runtime0.JSX.Element;
|
|
80
|
-
//#endregion
|
|
81
|
-
export { BackgroundType, STATUSES, Status, StatusIndicator, StatusIndicator as default, StatusIndicatorProps, StatusType };
|
|
82
|
-
//# sourceMappingURL=StatusIndicator.d.cts.map
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { i as Variant } from "./theme-Cadb1xzQ.cjs";
|
|
2
|
-
import { i as StackProps } from "./Stack-BzVkf3cz.cjs";
|
|
3
|
-
import { r as TruncatedTextProps } from "./TruncatedText-Dit2NJI6.cjs";
|
|
4
|
-
import * as _$react from "react";
|
|
5
|
-
import { ComponentPropsWithoutRef, MouseEventHandler, ReactNode } from "react";
|
|
6
|
-
import * as _$styled_components0 from "styled-components";
|
|
7
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime.js";
|
|
8
|
-
|
|
9
|
-
//#region components/Sticker/Sticker.d.ts
|
|
10
|
-
declare const STICKER_COLOR_CONFIG: {
|
|
11
|
-
readonly white: "White";
|
|
12
|
-
readonly blue: "Blue";
|
|
13
|
-
readonly teal: "Teal";
|
|
14
|
-
readonly green: "Green";
|
|
15
|
-
readonly yellow: "Yellow";
|
|
16
|
-
readonly orange: "Orange";
|
|
17
|
-
readonly pink: "Pink";
|
|
18
|
-
readonly red: "Red";
|
|
19
|
-
readonly purple: "Purple";
|
|
20
|
-
readonly darkGrey: "Dark Grey";
|
|
21
|
-
readonly grey: "Grey";
|
|
22
|
-
};
|
|
23
|
-
type LabelBackgrounds = keyof typeof STICKER_COLOR_CONFIG;
|
|
24
|
-
interface StickerProps extends ComponentPropsWithoutRef<'div'> {
|
|
25
|
-
variant?: LabelBackgrounds | Exclude<Variant, 'inverse'>;
|
|
26
|
-
/**
|
|
27
|
-
* Icon to render to the left of the Sticker. 12px icons recommended.
|
|
28
|
-
*/
|
|
29
|
-
icon?: ReactNode;
|
|
30
|
-
/**
|
|
31
|
-
* Callback to call upon clicking "x" button. Non-null will render the button.
|
|
32
|
-
*/
|
|
33
|
-
onDismiss?: MouseEventHandler;
|
|
34
|
-
/**
|
|
35
|
-
* Additional props to pass to the dismiss "x" button.
|
|
36
|
-
*/
|
|
37
|
-
dismissButtonProps?: ComponentPropsWithoutRef<'button'>;
|
|
38
|
-
/**
|
|
39
|
-
* Renders disabled style for the entire Sticker and disables "x" button.
|
|
40
|
-
*/
|
|
41
|
-
disabled?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Shows a required asterisk (*) that won't be cut off when text is truncated.
|
|
44
|
-
*/
|
|
45
|
-
isRequired?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* In some cases we render a sticker/badge on a secondary background, which needs an adjustment
|
|
48
|
-
* for certain variants.
|
|
49
|
-
*/
|
|
50
|
-
onSecondaryBackground?: boolean;
|
|
51
|
-
}
|
|
52
|
-
declare const StickerContainer: _$styled_components0.StyledComponent<"div", any, StackProps, never>;
|
|
53
|
-
declare const StickerContentContainer: _$styled_components0.StyledComponent<"div", any, StackProps & _$styled_components0.ThemeProps<_$styled_components0.DefaultTheme>, never>;
|
|
54
|
-
declare const StyledTruncatedText: _$styled_components0.StyledComponent<_$react.FC<TruncatedTextProps>, any, _$styled_components0.ThemeProps<_$styled_components0.DefaultTheme>, never>;
|
|
55
|
-
declare const Sticker: ({
|
|
56
|
-
variant,
|
|
57
|
-
icon,
|
|
58
|
-
children,
|
|
59
|
-
onDismiss,
|
|
60
|
-
disabled,
|
|
61
|
-
dismissButtonProps,
|
|
62
|
-
isRequired,
|
|
63
|
-
onSecondaryBackground,
|
|
64
|
-
...props
|
|
65
|
-
}: StickerProps) => _$react_jsx_runtime0.JSX.Element | null;
|
|
66
|
-
//#endregion
|
|
67
|
-
export { StickerContentContainer as a, StickerContainer as i, STICKER_COLOR_CONFIG as n, StickerProps as o, Sticker as r, StyledTruncatedText as s, LabelBackgrounds as t };
|
|
68
|
-
//# sourceMappingURL=Sticker-CI-XxUmM.d.cts.map
|
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
const require_chunk = require("./chunk-CKQMccvm.cjs");
|
|
2
|
-
const require_lib_pseudoClass = require("./lib/pseudoClass.cjs");
|
|
3
|
-
const require_mixins_text = require("./mixins/text.cjs");
|
|
4
|
-
const require_Stack = require("./Stack-UeifHn3c.cjs");
|
|
5
|
-
const require_lib_TruncatedText = require("./lib/TruncatedText.cjs");
|
|
6
|
-
const require_IconButton = require("./IconButton-nlgjJQCS.cjs");
|
|
7
|
-
let _persona_design_tokens = require("@persona/design-tokens");
|
|
8
|
-
let styled_components = require("styled-components");
|
|
9
|
-
styled_components = require_chunk.__toESM(styled_components);
|
|
10
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
|
-
let _persona_icons_12px = require("@persona/icons/12px");
|
|
12
|
-
//#region components/Sticker/Sticker.tsx
|
|
13
|
-
const STICKER_COLOR_CONFIG = {
|
|
14
|
-
white: "White",
|
|
15
|
-
blue: "Blue",
|
|
16
|
-
teal: "Teal",
|
|
17
|
-
green: "Green",
|
|
18
|
-
yellow: "Yellow",
|
|
19
|
-
orange: "Orange",
|
|
20
|
-
pink: "Pink",
|
|
21
|
-
red: "Red",
|
|
22
|
-
purple: "Purple",
|
|
23
|
-
darkGrey: "Dark Grey",
|
|
24
|
-
grey: "Grey"
|
|
25
|
-
};
|
|
26
|
-
const StickerIcon = (0, styled_components.default)("div")`
|
|
27
|
-
color: ${({ theme, variant }) => {
|
|
28
|
-
switch (variant) {
|
|
29
|
-
case "darkGrey":
|
|
30
|
-
case "red": return theme.color.text.inverse;
|
|
31
|
-
default: return "inherit";
|
|
32
|
-
}
|
|
33
|
-
}};
|
|
34
|
-
line-height: 0;
|
|
35
|
-
svg {
|
|
36
|
-
width: 12px;
|
|
37
|
-
height: 12px;
|
|
38
|
-
}
|
|
39
|
-
`;
|
|
40
|
-
const RequiredAsterisk = styled_components.default.span`
|
|
41
|
-
color: ${_persona_design_tokens.Color.TextDanger};
|
|
42
|
-
/* Ensure asterisk never gets hidden and takes minimal space */
|
|
43
|
-
flex-shrink: 0;
|
|
44
|
-
`;
|
|
45
|
-
const StickerContainer = (0, styled_components.default)(require_Stack.Stack)`
|
|
46
|
-
padding: 2px ${_persona_design_tokens.Spacing[1]};
|
|
47
|
-
/* Ensure container can shrink for text truncation */
|
|
48
|
-
min-width: 0;
|
|
49
|
-
flex: 1;
|
|
50
|
-
`;
|
|
51
|
-
const StickerContentContainer = (0, styled_components.default)(StickerContainer)`
|
|
52
|
-
${require_mixins_text.paragraphMixins.sm}
|
|
53
|
-
padding: 0;
|
|
54
|
-
`;
|
|
55
|
-
const StyledTruncatedText = (0, styled_components.default)(require_lib_TruncatedText.TruncatedText)`
|
|
56
|
-
${require_mixins_text.paragraphMixins.sm}
|
|
57
|
-
flex: 1;
|
|
58
|
-
min-width: 0;
|
|
59
|
-
line-height: 1;
|
|
60
|
-
transform: translateY(0.5px);
|
|
61
|
-
`;
|
|
62
|
-
const DismissButton = (0, styled_components.default)(require_IconButton.IconButton)`
|
|
63
|
-
/* Note this will break if the element is not on a white background. Variable is provided to be able to override. */
|
|
64
|
-
--background-color-behind-sticker: ${_persona_design_tokens.Color.PrimaryWhite};
|
|
65
|
-
|
|
66
|
-
border: none;
|
|
67
|
-
|
|
68
|
-
padding: 0 ${_persona_design_tokens.Spacing[1]};
|
|
69
|
-
border-radius: ${_persona_design_tokens.BorderRadius.Sm};
|
|
70
|
-
width: 1rem;
|
|
71
|
-
|
|
72
|
-
height: 100%;
|
|
73
|
-
|
|
74
|
-
display: inline-flex;
|
|
75
|
-
align-items: center;
|
|
76
|
-
|
|
77
|
-
svg {
|
|
78
|
-
width: 12px;
|
|
79
|
-
height: 12px;
|
|
80
|
-
}
|
|
81
|
-
color: ${({ theme, variant, disabled }) => {
|
|
82
|
-
if (variant === "red" || variant === "darkGrey") return theme.color.text.inverse;
|
|
83
|
-
return disabled ? "inherit" : _persona_design_tokens.Color.BorderIconPrimary;
|
|
84
|
-
}};
|
|
85
|
-
|
|
86
|
-
&${require_lib_pseudoClass.isDisabled} {
|
|
87
|
-
background-color: inherit !important;
|
|
88
|
-
color: inherit !important;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
&${require_lib_pseudoClass.isFocusedVisible}${require_lib_pseudoClass.isNotDisabled} {
|
|
92
|
-
box-shadow: 0 0 0 1px var(--background-color-behind-sticker);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&${require_lib_pseudoClass.isHovered}${require_lib_pseudoClass.isNotDisabled} {
|
|
96
|
-
cursor: pointer;
|
|
97
|
-
|
|
98
|
-
background: ${({ variant }) => {
|
|
99
|
-
if (variant === "grey" || variant === "basic") return _persona_design_tokens.Color.BackgroundLabelGreyHover;
|
|
100
|
-
else if (variant === "darkGrey") return _persona_design_tokens.Color.BackgroundLabelDarkGreyHover;
|
|
101
|
-
else if (variant === "purple") return _persona_design_tokens.Color.BackgroundLabelPurpleHover;
|
|
102
|
-
else if (variant === "red" || variant === "danger") return _persona_design_tokens.Color.BackgroundLabelDarkRedHover;
|
|
103
|
-
else if (variant === "orange") return _persona_design_tokens.Color.BackgroundLabelOrangeHover;
|
|
104
|
-
else if (variant === "yellow" || variant === "caution") return _persona_design_tokens.Color.BackgroundLabelYellowHover;
|
|
105
|
-
else if (variant === "green" || variant === "success") return _persona_design_tokens.Color.BackgroundLabelGreenHover;
|
|
106
|
-
else if (variant === "teal") return _persona_design_tokens.Color.BackgroundLabelTealHover;
|
|
107
|
-
else if (variant === "blue") return _persona_design_tokens.Color.BackgroundLabelBlueHover;
|
|
108
|
-
else if (variant === "pink") return _persona_design_tokens.Color.BackgroundLabelRedHover;
|
|
109
|
-
else if (variant === "white") return _persona_design_tokens.Color.BackgroundLabelWhiteHover;
|
|
110
|
-
else return "inherit";
|
|
111
|
-
}};
|
|
112
|
-
}
|
|
113
|
-
`;
|
|
114
|
-
const StyledSticker = (0, styled_components.default)("div")`
|
|
115
|
-
display: inline-flex;
|
|
116
|
-
white-space: nowrap;
|
|
117
|
-
|
|
118
|
-
border-radius: ${_persona_design_tokens.BorderRadius.Sm};
|
|
119
|
-
height: 1rem;
|
|
120
|
-
max-width: 100%;
|
|
121
|
-
|
|
122
|
-
color: ${({ theme, variant, disabled }) => {
|
|
123
|
-
if (disabled) return variant === "red" || variant === "darkGrey" ? theme.color.text.inverse : theme.color.text.disabled;
|
|
124
|
-
switch (variant) {
|
|
125
|
-
case "darkGrey":
|
|
126
|
-
case "red": return theme.color.text.inverse;
|
|
127
|
-
default: return theme.color.text.primary;
|
|
128
|
-
}
|
|
129
|
-
}};
|
|
130
|
-
background: ${({ variant, disabled, $onSecondaryBackground }) => {
|
|
131
|
-
if (disabled) switch (variant) {
|
|
132
|
-
case "white": return _persona_design_tokens.Color.BackgroundLabelWhite;
|
|
133
|
-
case "blue": return _persona_design_tokens.Color.BackgroundLabelBlueDisabled;
|
|
134
|
-
case "teal": return _persona_design_tokens.Color.BackgroundLabelTealDisabled;
|
|
135
|
-
case "green":
|
|
136
|
-
case "success": return _persona_design_tokens.Color.BackgroundLabelGreenDisabled;
|
|
137
|
-
case "yellow":
|
|
138
|
-
case "caution": return _persona_design_tokens.Color.BackgroundLabelYellowDisabled;
|
|
139
|
-
case "orange": return _persona_design_tokens.Color.BackgroundLabelOrangeDisabled;
|
|
140
|
-
case "pink":
|
|
141
|
-
case "danger": return _persona_design_tokens.Color.BackgroundLabelRedDisabled;
|
|
142
|
-
case "red": return _persona_design_tokens.Color.BackgroundLabelDarkRedDisabled;
|
|
143
|
-
case "purple":
|
|
144
|
-
case "primary": return _persona_design_tokens.Color.BackgroundLabelPurpleDisabled;
|
|
145
|
-
case "darkGrey": return _persona_design_tokens.Color.BackgroundLabelDarkGreyDisabled;
|
|
146
|
-
default:
|
|
147
|
-
if ($onSecondaryBackground) return _persona_design_tokens.Color.CoreSlate100;
|
|
148
|
-
return _persona_design_tokens.Color.BackgroundLabelGreyDisabled;
|
|
149
|
-
}
|
|
150
|
-
switch (variant) {
|
|
151
|
-
case "white": return _persona_design_tokens.Color.BackgroundLabelWhiteDisabled;
|
|
152
|
-
case "blue": return _persona_design_tokens.Color.BackgroundLabelBlue;
|
|
153
|
-
case "teal": return _persona_design_tokens.Color.BackgroundLabelTeal;
|
|
154
|
-
case "green":
|
|
155
|
-
case "success": return _persona_design_tokens.Color.BackgroundLabelGreen;
|
|
156
|
-
case "yellow":
|
|
157
|
-
case "caution": return _persona_design_tokens.Color.BackgroundLabelYellow;
|
|
158
|
-
case "orange": return _persona_design_tokens.Color.BackgroundLabelOrange;
|
|
159
|
-
case "pink":
|
|
160
|
-
case "danger": return _persona_design_tokens.Color.BackgroundLabelRed;
|
|
161
|
-
case "red": return _persona_design_tokens.Color.BackgroundLabelDarkRed;
|
|
162
|
-
case "purple":
|
|
163
|
-
case "primary": return _persona_design_tokens.Color.BackgroundLabelPurple;
|
|
164
|
-
case "darkGrey": return _persona_design_tokens.Color.BackgroundLabelDarkGrey;
|
|
165
|
-
default:
|
|
166
|
-
if ($onSecondaryBackground) return _persona_design_tokens.Color.CoreSlate200;
|
|
167
|
-
return _persona_design_tokens.Color.BackgroundLabelGrey;
|
|
168
|
-
}
|
|
169
|
-
}};
|
|
170
|
-
`;
|
|
171
|
-
const Sticker = ({ variant, icon, children, onDismiss, disabled, dismissButtonProps, isRequired, onSecondaryBackground, ...props }) => {
|
|
172
|
-
const hasContent = children != null;
|
|
173
|
-
if (!hasContent) {
|
|
174
|
-
const hasIcon = icon != null;
|
|
175
|
-
if (!hasIcon) {
|
|
176
|
-
console.warn("Sticker component requires content and/or an icon to render");
|
|
177
|
-
return null;
|
|
178
|
-
}
|
|
179
|
-
if (hasIcon && !props["aria-label"]) console.warn("Sticker component requires an aria-label when only rendering an icon");
|
|
180
|
-
}
|
|
181
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StyledSticker, {
|
|
182
|
-
$onSecondaryBackground: onSecondaryBackground,
|
|
183
|
-
variant,
|
|
184
|
-
disabled,
|
|
185
|
-
sizeIcon: !!icon && !hasContent,
|
|
186
|
-
...props,
|
|
187
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StickerContainer, {
|
|
188
|
-
direction: "horizontal",
|
|
189
|
-
align: "center",
|
|
190
|
-
spacing: _persona_design_tokens.Spacing[0],
|
|
191
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StickerContentContainer, {
|
|
192
|
-
direction: "horizontal",
|
|
193
|
-
align: "center",
|
|
194
|
-
spacing: _persona_design_tokens.Spacing[1],
|
|
195
|
-
children: [icon && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StickerIcon, {
|
|
196
|
-
variant,
|
|
197
|
-
children: icon
|
|
198
|
-
}), hasContent && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledTruncatedText, { children })]
|
|
199
|
-
}), isRequired && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RequiredAsterisk, { children: "*" })]
|
|
200
|
-
}), onDismiss && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DismissButton, {
|
|
201
|
-
variant,
|
|
202
|
-
disabled,
|
|
203
|
-
id: "sticker__dismiss-button",
|
|
204
|
-
size: "sm",
|
|
205
|
-
onClick: onDismiss,
|
|
206
|
-
"aria-label": "Remove",
|
|
207
|
-
...dismissButtonProps,
|
|
208
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_persona_icons_12px.XIcon, {})
|
|
209
|
-
})]
|
|
210
|
-
});
|
|
211
|
-
};
|
|
212
|
-
//#endregion
|
|
213
|
-
Object.defineProperty(exports, "STICKER_COLOR_CONFIG", {
|
|
214
|
-
enumerable: true,
|
|
215
|
-
get: function() {
|
|
216
|
-
return STICKER_COLOR_CONFIG;
|
|
217
|
-
}
|
|
218
|
-
});
|
|
219
|
-
Object.defineProperty(exports, "Sticker", {
|
|
220
|
-
enumerable: true,
|
|
221
|
-
get: function() {
|
|
222
|
-
return Sticker;
|
|
223
|
-
}
|
|
224
|
-
});
|
|
225
|
-
Object.defineProperty(exports, "StickerContainer", {
|
|
226
|
-
enumerable: true,
|
|
227
|
-
get: function() {
|
|
228
|
-
return StickerContainer;
|
|
229
|
-
}
|
|
230
|
-
});
|
|
231
|
-
Object.defineProperty(exports, "StickerContentContainer", {
|
|
232
|
-
enumerable: true,
|
|
233
|
-
get: function() {
|
|
234
|
-
return StickerContentContainer;
|
|
235
|
-
}
|
|
236
|
-
});
|
|
237
|
-
Object.defineProperty(exports, "StyledTruncatedText", {
|
|
238
|
-
enumerable: true,
|
|
239
|
-
get: function() {
|
|
240
|
-
return StyledTruncatedText;
|
|
241
|
-
}
|
|
242
|
-
});
|
|
243
|
-
|
|
244
|
-
//# sourceMappingURL=Sticker-CIoseh9f.cjs.map
|