@persona/design-system 0.1.9 → 0.2.1
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 +27 -0
- package/dist/{Action-CVtzREhU.d.mts → Action-DnR0YTxO.d.mts} +3 -3
- package/dist/Action.d.mts +1 -1
- package/dist/AdvancedFilterRuleRow.d.mts +3 -3
- package/dist/AdvancedFilterRulesPopover.d.mts +3 -3
- package/dist/ArrayValueControl.d.mts +1 -1
- package/dist/Attribute.d.mts +4 -4
- package/dist/AttributeGrid.d.mts +1 -1
- package/dist/{Badge-DEVbRlJX.mjs → Badge-DRn_r6is.mjs} +2 -2
- package/dist/{Badge-DEVbRlJX.mjs.map → Badge-DRn_r6is.mjs.map} +1 -1
- package/dist/Banner.d.mts +1 -1
- package/dist/BooleanValueControl.d.mts +1 -1
- package/dist/{Breadcrumb-lziQ1FX9.d.mts → Breadcrumb-DEwZFJHF.d.mts} +10 -2
- package/dist/Breadcrumb.d.mts +1 -1
- package/dist/{Breadcrumbs-DJ5qqqRD.d.mts → Breadcrumbs-0e_3v9FF.d.mts} +2 -2
- package/dist/{Breadcrumbs-W8hIhdHD.mjs → Breadcrumbs-Byf2ye6H.mjs} +43 -26
- package/dist/Breadcrumbs-Byf2ye6H.mjs.map +1 -0
- package/dist/Breadcrumbs.d.mts +1 -1
- package/dist/{Button-Vd5O4DUp.d.mts → Button-DkjwN_Op.d.mts} +3 -3
- package/dist/Button.d.mts +1 -1
- package/dist/ButtonGroup.d.mts +1 -1
- package/dist/Calendar.d.mts +1 -1
- package/dist/CalendarBase.d.mts +1 -1
- package/dist/{Card-BMCB9eFC.mjs → Card-CLTkZLKr.mjs} +4 -4
- package/dist/{Card-BMCB9eFC.mjs.map → Card-CLTkZLKr.mjs.map} +1 -1
- package/dist/{Card-CqnG--CU.d.mts → Card-DxFajLnx.d.mts} +4 -4
- package/dist/Card.d.mts +1 -1
- package/dist/Card2.d.mts +1 -1
- package/dist/{CardV2-C0fcOUdp.mjs → CardV2-m9yOInMU.mjs} +16 -16
- package/dist/{CardV2-C0fcOUdp.mjs.map → CardV2-m9yOInMU.mjs.map} +1 -1
- package/dist/{Checkbox-Bm8exUfH.d.mts → Checkbox-Bmm-r5ei.d.mts} +1 -1
- package/dist/{Checkbox-BcuiFvK7.mjs → Checkbox-CU27-Aa8.mjs} +6 -6
- package/dist/{Checkbox-BcuiFvK7.mjs.map → Checkbox-CU27-Aa8.mjs.map} +1 -1
- package/dist/Checkbox.d.mts +1 -1
- package/dist/CheckboxGroupField.d.mts +2 -2
- package/dist/ChoicesValueControl.d.mts +1 -1
- package/dist/{Combobox-BaD0f2Du.d.mts → Combobox-BgKEHP9p.d.mts} +3 -3
- package/dist/{Combobox-B6JyLog8.mjs → Combobox-DhTUY8JT.mjs} +55 -31
- package/dist/Combobox-DhTUY8JT.mjs.map +1 -0
- package/dist/Combobox.d.mts +2 -2
- package/dist/{ComboboxBase-BsPf8BZh.d.mts → ComboboxBase-Dmzn8a53.d.mts} +7 -7
- package/dist/ComboboxBase.d.mts +1 -1
- package/dist/{ComboboxMultiSelect-DhLzCWbz.d.mts → ComboboxMultiSelect-BLKUKNEW.d.mts} +2 -2
- package/dist/ComboboxMultiSelect.d.mts +1 -1
- package/dist/{ComboboxSingleSelect-P0r5rs_u.d.mts → ComboboxSingleSelect-Kpl-iOok.d.mts} +4 -4
- package/dist/ComboboxSingleSelect.d.mts +1 -1
- package/dist/{CompactBar-CXqlVKy7.d.mts → CompactBar-E9hPDRvI.d.mts} +3 -3
- package/dist/CompactBar.d.mts +1 -1
- package/dist/{ConfigFormGroup-yhb2jldT.mjs → ConfigFormGroup-GgzSDzgL.mjs} +3 -3
- package/dist/{ConfigFormGroup-yhb2jldT.mjs.map → ConfigFormGroup-GgzSDzgL.mjs.map} +1 -1
- package/dist/{ControlBar-tOCQnbAl.d.mts → ControlBar-DYrjBDzu.d.mts} +2 -2
- package/dist/ControlBar.d.mts +1 -1
- package/dist/DataTable.d.mts +4 -4
- package/dist/DateField.d.mts +1 -1
- package/dist/{DatePicker-Bw79p-Lx.mjs → DatePicker-DpGvo7Bd.mjs} +23 -23
- package/dist/DatePicker-DpGvo7Bd.mjs.map +1 -0
- package/dist/DatePicker.d.mts +1 -1
- package/dist/DateRangePicker.d.mts +2 -1
- package/dist/DateValueControl.d.mts +1 -1
- package/dist/{DropdownButton-BI3IFJun.mjs → DropdownButton-DGgfGW_o.mjs} +3 -3
- package/dist/{DropdownButton-BI3IFJun.mjs.map → DropdownButton-DGgfGW_o.mjs.map} +1 -1
- package/dist/DropdownButton.d.mts +2 -2
- package/dist/{DropdownMenu-D6nfAsi0.d.mts → DropdownMenu-B2t3Bwky.d.mts} +3 -3
- package/dist/{DropdownMenu-D25WBCah.mjs → DropdownMenu-DZIFSJXD.mjs} +3 -3
- package/dist/{DropdownMenu-D25WBCah.mjs.map → DropdownMenu-DZIFSJXD.mjs.map} +1 -1
- package/dist/DropdownMenu.d.mts +1 -1
- package/dist/{ErrorProps-CN2XjaOX.d.mts → ErrorProps-DX50vo-U.d.mts} +1 -1
- package/dist/ErrorProps.d.mts +1 -1
- package/dist/{FieldRegistry-rqSkjchY.d.mts → FieldRegistry-COyIA4VU.d.mts} +2 -2
- package/dist/FieldRegistry.d.mts +1 -1
- package/dist/{FilterBar-D3LiIy1-.d.mts → FilterBar-CS2YjiTr.d.mts} +8 -5
- package/dist/FilterBar.d.mts +1 -1
- package/dist/FilterPickerMenu.d.mts +3 -3
- package/dist/FilterPill.d.mts +1 -1
- package/dist/FilterPopover.d.mts +13 -3
- package/dist/FloatValueControl.d.mts +1 -1
- package/dist/{FormControl-CFU9uKF7.mjs → FormControl-BIXJ-FPI.mjs} +5 -5
- package/dist/{FormControl-CFU9uKF7.mjs.map → FormControl-BIXJ-FPI.mjs.map} +1 -1
- package/dist/{FormControl-DH3bgqaB.d.mts → FormControl-CZFmub1N.d.mts} +3 -3
- package/dist/FormControl.d.mts +1 -1
- package/dist/FormControlLabel.d.mts +1 -1
- package/dist/{FormField-BugkBvN4.d.mts → FormField-8rlT8pm0.d.mts} +2 -2
- package/dist/{FormField-DdmgSWq4.mjs → FormField-DcGQvgNW.mjs} +32 -31
- package/dist/FormField-DcGQvgNW.mjs.map +1 -0
- package/dist/FormField.d.mts +1 -1
- package/dist/{Header-CDTYK1XJ.d.mts → Header-OLZuv8fF.d.mts} +2 -2
- package/dist/Header.d.mts +1 -1
- package/dist/{HelperTooltip-B7Ysh8B3.d.mts → HelperTooltip-CJDG7Ugp.d.mts} +3 -3
- package/dist/HelperTooltip.d.mts +1 -1
- package/dist/{HoverCopyableField-7TWP0Y1Z.mjs → HoverCopyableField-BHdCaR-R.mjs} +6 -6
- package/dist/{HoverCopyableField-7TWP0Y1Z.mjs.map → HoverCopyableField-BHdCaR-R.mjs.map} +1 -1
- package/dist/HoverCopyableField.d.mts +1 -1
- package/dist/{IconButton-P8w0JDI5.mjs → IconButton-DC4rh6ow.mjs} +5 -5
- package/dist/{IconButton-P8w0JDI5.mjs.map → IconButton-DC4rh6ow.mjs.map} +1 -1
- package/dist/{IconButton-BHCmHIx5.d.mts → IconButton-Dc17jZPG.d.mts} +2 -2
- package/dist/IconButton.d.mts +1 -1
- package/dist/ImageTile.d.mts +2 -2
- package/dist/InlineCombobox.d.mts +2 -2
- package/dist/InlineInput.d.mts +1 -1
- package/dist/{Input-DMgVyZyq.d.mts → Input-DsS4J78T.d.mts} +5 -5
- package/dist/{Input-QC6xla6I.mjs → Input-PWfwMSJ7.mjs} +5 -5
- package/dist/{Input-QC6xla6I.mjs.map → Input-PWfwMSJ7.mjs.map} +1 -1
- package/dist/Input.d.mts +1 -1
- package/dist/{InputProps-BnjxrdWQ.d.mts → InputProps-Buxtnz77.d.mts} +2 -2
- package/dist/InputProps.d.mts +1 -1
- package/dist/IntegerValueControl.d.mts +1 -1
- package/dist/LayoutLoadingShimmer.d.mts +1 -1
- package/dist/Link.d.mts +1 -1
- package/dist/{ListBox-TrL3Tb7X.mjs → ListBox-BwD-q7wF.mjs} +12 -12
- package/dist/{ListBox-TrL3Tb7X.mjs.map → ListBox-BwD-q7wF.mjs.map} +1 -1
- package/dist/{ListBox-D09N1a5D.d.mts → ListBox-Nl9aOBeh.d.mts} +5 -5
- package/dist/ListBox.d.mts +1 -1
- package/dist/ListBoxField.d.mts +3 -3
- package/dist/{LoadingShimmer-Dsc_RCCf.mjs → LoadingShimmer-BPYPtFE1.mjs} +1 -1
- package/dist/{LoadingShimmer-Dsc_RCCf.mjs.map → LoadingShimmer-BPYPtFE1.mjs.map} +1 -1
- package/dist/LoadingShimmer.d.mts +2 -2
- package/dist/{LogicRow-BcuiSTHN.d.mts → LogicRow-BAREMenx.d.mts} +4 -4
- package/dist/LogicRow.d.mts +1 -1
- package/dist/MaskedInput.d.mts +1 -1
- package/dist/{Menu-Bv8dsrz6.d.mts → Menu-DM9OoZ71.d.mts} +4 -4
- package/dist/{Menu-DmeMgN-i.mjs → Menu-DpM8o234.mjs} +4 -4
- package/dist/{Menu-DmeMgN-i.mjs.map → Menu-DpM8o234.mjs.map} +1 -1
- package/dist/Menu.d.mts +1 -1
- package/dist/{MiddleTruncatedText-GXI-CPvs.mjs → MiddleTruncatedText-Bzpg3zAU.mjs} +3 -3
- package/dist/{MiddleTruncatedText-GXI-CPvs.mjs.map → MiddleTruncatedText-Bzpg3zAU.mjs.map} +1 -1
- package/dist/Modal.d.mts +3 -3
- package/dist/{PageHeader-jSLud2JI.mjs → PageHeader-Dq-J3san.mjs} +3 -3
- package/dist/{PageHeader-jSLud2JI.mjs.map → PageHeader-Dq-J3san.mjs.map} +1 -1
- package/dist/PageHeader.d.mts +2 -2
- package/dist/PageLayout.d.mts +16 -0
- package/dist/{PageSelector-vay4jpMp.d.mts → PageSelector-Ca4TcyxG.d.mts} +3 -3
- package/dist/PageSelector.d.mts +1 -1
- package/dist/{Pagination-ygLutOst.d.mts → Pagination-Dcmv7bVe.d.mts} +2 -2
- package/dist/{Pagination-BeYukNCj.mjs → Pagination-GALyid4q.mjs} +7 -7
- package/dist/{Pagination-BeYukNCj.mjs.map → Pagination-GALyid4q.mjs.map} +1 -1
- package/dist/Pagination.d.mts +1 -1
- package/dist/{Pii-QsTrz8wn.mjs → Pii-BalLvfze.mjs} +2 -2
- package/dist/{Pii-QsTrz8wn.mjs.map → Pii-BalLvfze.mjs.map} +1 -1
- package/dist/Pii.d.mts +1 -1
- package/dist/PillShell.d.mts +1 -1
- package/dist/{Popover-BkDpDdaO.mjs → Popover-BZ5Bs80y.mjs} +5 -5
- package/dist/{Popover-BkDpDdaO.mjs.map → Popover-BZ5Bs80y.mjs.map} +1 -1
- package/dist/Popover.d.mts +1 -1
- package/dist/ProgressBar.d.mts +1 -1
- package/dist/ProgressIndicator.d.mts +1 -1
- package/dist/{PseudoClassProps-DLxPxo7T.d.mts → PseudoClassProps-CcSlKNev.d.mts} +1 -1
- package/dist/PseudoClassProps.d.mts +1 -1
- package/dist/{Radio-CSX2eO-O.mjs → Radio-CtPz3EzX.mjs} +3 -3
- package/dist/{Radio-CSX2eO-O.mjs.map → Radio-CtPz3EzX.mjs.map} +1 -1
- package/dist/{RadioGroup-DKqbSfju.d.mts → RadioGroup-Xn46ovrV.d.mts} +1 -1
- package/dist/{RadioGroup-CnK0opBd.mjs → RadioGroup-sjBzFE_-.mjs} +3 -3
- package/dist/{RadioGroup-CnK0opBd.mjs.map → RadioGroup-sjBzFE_-.mjs.map} +1 -1
- package/dist/RadioGroup.d.mts +1 -1
- package/dist/RangeCalendar.d.mts +3 -1
- package/dist/RangeCalendarPresets.d.mts +1 -1
- package/dist/RuleEditorFields.d.mts +3 -3
- package/dist/RulesPill.d.mts +1 -1
- package/dist/{SearchInput-Bp2yjaE1.d.mts → SearchInput-Try11aJD.d.mts} +10 -3
- package/dist/SearchInput.d.mts +1 -1
- package/dist/Section.d.mts +1 -1
- package/dist/{SectionHeading-Q-rx2LEd.d.mts → SectionHeading-DvP9NEgN.d.mts} +2 -2
- package/dist/SectionHeading.d.mts +1 -1
- package/dist/{SegmentedControl-CgDQIVll.mjs → SegmentedControl-BugnH-h2.mjs} +4 -4
- package/dist/{SegmentedControl-CgDQIVll.mjs.map → SegmentedControl-BugnH-h2.mjs.map} +1 -1
- package/dist/{SegmentedControl-DrjdUOU9.d.mts → SegmentedControl-DckAdhcD.d.mts} +2 -2
- package/dist/SegmentedControl.d.mts +1 -1
- package/dist/{Select-Bk27TgN8.d.mts → Select-BmJ1OjXA.d.mts} +4 -4
- package/dist/{Select-C1ZoRk39.mjs → Select-DL-AjL0Q.mjs} +9 -9
- package/dist/{Select-C1ZoRk39.mjs.map → Select-DL-AjL0Q.mjs.map} +1 -1
- package/dist/Select.d.mts +1 -1
- package/dist/Slider.d.mts +1 -1
- package/dist/SliderRHF.d.mts +1 -1
- package/dist/SliderThumb.d.mts +1 -1
- package/dist/{Spacer-CJp0lwkL.mjs → Spacer-Ln3KChb5.mjs} +1 -1
- package/dist/{Spacer-CJp0lwkL.mjs.map → Spacer-Ln3KChb5.mjs.map} +1 -1
- package/dist/{Spinner-BEPF42RW.mjs → Spinner-BgBCCHGo.mjs} +1 -1
- package/dist/{Spinner-BEPF42RW.mjs.map → Spinner-BgBCCHGo.mjs.map} +1 -1
- package/dist/{Stack-CkV7k7TE.d.mts → Stack-CbcJykx9.d.mts} +2 -2
- package/dist/{Stack-Bl54WmhY.mjs → Stack-ckRN7LrP.mjs} +1 -1
- package/dist/{Stack-Bl54WmhY.mjs.map → Stack-ckRN7LrP.mjs.map} +1 -1
- package/dist/Stack.d.mts +1 -1
- package/dist/StatusIndicator.d.mts +1 -1
- package/dist/{Sticker-CyGb9dEu.mjs → Sticker-B0TbkV4o.mjs} +3 -3
- package/dist/{Sticker-CyGb9dEu.mjs.map → Sticker-B0TbkV4o.mjs.map} +1 -1
- package/dist/{Sticker-Bs25ISz7.d.mts → Sticker-BIVuastf.d.mts} +5 -5
- package/dist/Sticker.d.mts +1 -1
- package/dist/StringValueControl.d.mts +1 -1
- package/dist/SwatchPicker.d.mts +1 -1
- package/dist/Tab.d.mts +2 -2
- package/dist/{TabBar-Bn8PHHBZ.mjs → TabBar-DLf4Hwa4.mjs} +4 -4
- package/dist/{TabBar-Bn8PHHBZ.mjs.map → TabBar-DLf4Hwa4.mjs.map} +1 -1
- package/dist/TabBarIconButton.d.mts +1 -1
- package/dist/{Table-BNScLj9g.d.mts → Table-8jXlKYLy.d.mts} +1 -1
- package/dist/{Table-BfontAeY.mjs → Table-C-mx8Uj0.mjs} +5 -5
- package/dist/{Table-BfontAeY.mjs.map → Table-C-mx8Uj0.mjs.map} +1 -1
- package/dist/Table.d.mts +1 -1
- package/dist/{TableBody-CrDNMyT8.d.mts → TableBody-ByEcFueE.d.mts} +1 -1
- package/dist/TableBody.d.mts +1 -1
- package/dist/{TableBox-bmrKh_ax.mjs → TableBox-DGjKVQFO.mjs} +65 -55
- package/dist/TableBox-DGjKVQFO.mjs.map +1 -0
- package/dist/TableBox.d.mts +2 -2
- package/dist/{TableBoxCell-CvjLYhTV.d.mts → TableBoxCell-BmoPs1u1.d.mts} +7 -7
- package/dist/TableBoxCell.d.mts +1 -1
- package/dist/TableBoxField.d.mts +4 -4
- package/dist/{TableBoxRow-BzXECgid.d.mts → TableBoxRow-BAYvEDjT.d.mts} +4 -4
- package/dist/TableBoxRow.d.mts +1 -1
- package/dist/{TableBoxRowActions-BAiFXiCh.d.mts → TableBoxRowActions-DRs4MdK0.d.mts} +2 -2
- package/dist/TableBoxRowActions.d.mts +1 -1
- package/dist/TableCell.d.mts +1 -1
- package/dist/{TableControls-DVTtNAPo.mjs → TableControls-BK8DCsqi.mjs} +139 -67
- package/dist/TableControls-BK8DCsqi.mjs.map +1 -0
- package/dist/{TableControls-BehR7CKS.d.mts → TableControls-DscP6fyt.d.mts} +4 -4
- package/dist/TableControls.d.mts +1 -1
- package/dist/{TableControlsContext-D_SBFZN1.d.mts → TableControlsContext-BeJ7GHPN.d.mts} +2 -2
- package/dist/TableControlsContext.d.mts +1 -1
- package/dist/{TableHead-LxvG0e9k.d.mts → TableHead-g3afLl5B.d.mts} +1 -1
- package/dist/TableHead.d.mts +1 -1
- package/dist/{TableHeaderCell-Br8ZE3Xe.d.mts → TableHeaderCell-CWTMf2Fe.d.mts} +1 -1
- package/dist/TableHeaderCell.d.mts +1 -1
- package/dist/{TableLayout-BZeP8qfg.d.mts → TableLayout-hPlVO3dD.d.mts} +1 -1
- package/dist/TableLayout.d.mts +1 -1
- package/dist/{TableRow-BvS4yjo6.d.mts → TableRow-lvjbVccA.d.mts} +2 -2
- package/dist/TableRow.d.mts +1 -1
- package/dist/TableTH.d.mts +1 -1
- package/dist/{TableViewConfigurationDropdown-BYPh4dIP.d.mts → TableViewConfigurationDropdown-Ccxtk5dA.d.mts} +2 -2
- package/dist/TableViewConfigurationDropdown.d.mts +1 -1
- package/dist/TechnicalSticker-BrvR0zhC.mjs +266 -0
- package/dist/TechnicalSticker-BrvR0zhC.mjs.map +1 -0
- package/dist/TechnicalSticker.d.mts +7 -1
- package/dist/{Text-DNPbAuUG.d.mts → Text-CfIFUyHt.d.mts} +3 -3
- package/dist/{Text-RcEfNFLx.mjs → Text-hEoPeOc9.mjs} +1 -1
- package/dist/{Text-RcEfNFLx.mjs.map → Text-hEoPeOc9.mjs.map} +1 -1
- package/dist/Text.d.mts +1 -1
- package/dist/{TextArea-NCLsW-03.mjs → TextArea-BFsXUkuj.mjs} +3 -3
- package/dist/{TextArea-NCLsW-03.mjs.map → TextArea-BFsXUkuj.mjs.map} +1 -1
- package/dist/{TextArea-B89wtTsF.d.mts → TextArea-DiKEhpfD.d.mts} +2 -2
- package/dist/TextArea.d.mts +1 -1
- package/dist/{TextUnderlineTooltip-5-0D8s4z.d.mts → TextUnderlineTooltip-Bs6Jn5yr.d.mts} +3 -3
- package/dist/TextUnderlineTooltip.d.mts +1 -1
- package/dist/Tile.d.mts +2 -2
- package/dist/Toast.d.mts +1 -1
- package/dist/{Toggle-Bie9zCem.mjs → Toggle-CC2FTAKS.mjs} +5 -5
- package/dist/{Toggle-Bie9zCem.mjs.map → Toggle-CC2FTAKS.mjs.map} +1 -1
- package/dist/{Toggle-DzYLgxGk.d.mts → Toggle-oukvAn6V.d.mts} +1 -1
- package/dist/Toggle.d.mts +1 -1
- package/dist/{Tooltip-CUC-JuRL.d.mts → Tooltip-0iXDCV2O.d.mts} +3 -3
- package/dist/{Tooltip-BvDbmXak.mjs → Tooltip-CDvOu1UN.mjs} +3 -3
- package/dist/{Tooltip-BvDbmXak.mjs.map → Tooltip-CDvOu1UN.mjs.map} +1 -1
- package/dist/Tooltip.d.mts +1 -1
- package/dist/{TruncatedText-BJnowVTx.d.mts → TruncatedText-CdeU19Ev.d.mts} +1 -1
- package/dist/components/Attribute/index.mjs +10 -10
- package/dist/components/Attribute/index.mjs.map +1 -1
- package/dist/components/Badge/index.mjs +1 -1
- package/dist/components/Banner/index.mjs +1 -1
- package/dist/components/Breadcrumbs/index.d.mts +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 +3 -3
- package/dist/components/Card/index.d.mts +2 -2
- package/dist/components/Card/index.mjs +1 -1
- package/dist/components/CardV2/index.d.mts +1 -1
- package/dist/components/CardV2/index.mjs +1 -1
- package/dist/components/Checkbox/index.d.mts +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/ConfigFormGroup/index.mjs +2 -2
- package/dist/components/DataTable/TableControls/index.d.mts +15 -15
- package/dist/components/DataTable/TableControls/index.mjs +1 -1
- package/dist/components/DataTable/index.mjs +21 -21
- package/dist/components/DataTable/index.mjs.map +1 -1
- package/dist/components/DataTable/types.d.mts +2 -2
- 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.d.mts +2 -2
- package/dist/components/FormControl/index.mjs +2 -2
- package/dist/components/FormField/index.d.mts +1 -1
- package/dist/components/FormField/index.mjs +1 -1
- package/dist/components/HoverCopyableField/index.mjs +1 -1
- package/dist/components/ImageTile/index.mjs +8 -8
- package/dist/components/Input/index.d.mts +1 -1
- package/dist/components/Input/index.mjs +1 -1
- package/dist/components/Link/index.mjs +1 -1
- package/dist/components/ListBox/index.d.mts +3 -3
- package/dist/components/ListBox/index.mjs +1 -1
- package/dist/components/LoadingShimmer/index.mjs +1 -1
- package/dist/components/MaskedInput/index.mjs +2 -2
- package/dist/components/Menu/index.d.mts +1 -1
- package/dist/components/Menu/index.mjs +1 -1
- package/dist/components/Modal/index.mjs +16 -8
- package/dist/components/Modal/index.mjs.map +1 -1
- package/dist/components/PageHeader/index.mjs +1 -1
- package/dist/components/Pagination/index.d.mts +3 -3
- package/dist/components/Pagination/index.mjs +1 -1
- package/dist/components/Pii/index.mjs +1 -1
- package/dist/components/Popover/index.mjs +1 -1
- package/dist/components/ProgressBar/index.mjs +1 -1
- package/dist/components/Radio/index.mjs +1 -1
- package/dist/components/RadioGroup/index.d.mts +1 -1
- package/dist/components/RadioGroup/index.mjs +1 -1
- package/dist/components/SegmentedControl/index.d.mts +1 -1
- package/dist/components/SegmentedControl/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 +2 -2
- package/dist/components/Spacer/index.mjs +1 -1
- package/dist/components/Spinner/index.mjs +1 -1
- package/dist/components/Stack/index.d.mts +1 -1
- package/dist/components/Stack/index.mjs +1 -1
- package/dist/components/Sticker/index.d.mts +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 +7 -7
- package/dist/components/Table/index.mjs +1 -1
- package/dist/components/TableBox/index.d.mts +2 -2
- package/dist/components/TableBox/index.mjs +1 -1
- package/dist/components/TechnicalSticker/index.mjs +1 -231
- package/dist/components/Text/index.d.mts +1 -1
- package/dist/components/Text/index.mjs +1 -1
- package/dist/components/TextArea/index.d.mts +1 -1
- package/dist/components/TextArea/index.mjs +1 -1
- package/dist/components/Tile/index.mjs +4 -4
- package/dist/components/Toast/index.mjs +1 -1
- package/dist/components/Toggle/index.d.mts +1 -1
- package/dist/components/Toggle/index.mjs +1 -1
- package/dist/components/Tooltip/index.d.mts +3 -3
- package/dist/components/Tooltip/index.mjs +1 -1
- package/dist/compound-expression.d.mts +1 -1
- package/dist/{constants-BASogfT_.d.mts → constants-bA9kCzRQ.d.mts} +1 -1
- package/dist/constants.d.mts +1 -1
- package/dist/containers.d.mts +1 -1
- package/dist/display.d.mts +1 -1
- package/dist/fieldPickerOptions.d.mts +2 -2
- package/dist/{filter-size-context-Blw6Sd69.d.mts → filter-size-context-C1TvrE_O.d.mts} +2 -2
- package/dist/filter-size-context.d.mts +1 -1
- package/dist/helpers.d.mts +1 -1
- package/dist/{index-4_B2yRzD.d.mts → index-BC4edEsD.d.mts} +2 -2
- package/dist/{index-BxXTpeUb2.d.mts → index-CdaoOvFH.d.mts} +5 -5
- package/dist/{index-DDbjWdk0.d.mts → index-DJn4AeE4.d.mts} +4 -4
- package/dist/index.d.mts +1 -1
- package/dist/index2.d.mts +1 -1
- package/dist/index3.d.mts +3 -3
- package/dist/index4.d.mts +10 -10
- package/dist/{input-Bv5fKt5J.d.mts → input-D3Qd6dI8.d.mts} +3 -3
- package/dist/inputFields.d.mts +11 -11
- package/dist/{intersperse-vOYvFOfF.mjs → intersperse-yd3oMrQl.mjs} +1 -1
- package/dist/{intersperse-vOYvFOfF.mjs.map → intersperse-yd3oMrQl.mjs.map} +1 -1
- package/dist/lib/MiddleTruncatedText.mjs +1 -1
- package/dist/lib/PDSProvider.d.mts +1 -1
- package/dist/lib/TruncatedText.d.mts +1 -1
- package/dist/lib/TruncatedText.mjs +1 -1
- package/dist/lib/TruncatedTextWithTooltip.d.mts +1 -1
- package/dist/lib/TruncatedTextWithTooltip.mjs +2 -2
- package/dist/lib/embeddedSurfaceProtocol.d.mts +29 -0
- package/dist/lib/embeddedSurfaceProtocol.mjs +74 -0
- package/dist/lib/embeddedSurfaceProtocol.mjs.map +1 -0
- package/dist/lib/embeddedSurfaceRegistry.d.mts +11 -0
- package/dist/lib/embeddedSurfaceRegistry.mjs +19 -0
- package/dist/lib/embeddedSurfaceRegistry.mjs.map +1 -0
- package/dist/lib/message.d.mts +1 -1
- package/dist/lib/pseudoClass.d.mts +1 -1
- package/dist/lib/useEmbeddedSurface.d.mts +6 -0
- package/dist/lib/useEmbeddedSurface.mjs +135 -0
- package/dist/lib/useEmbeddedSurface.mjs.map +1 -0
- package/dist/lib/zindex.d.mts +2 -0
- package/dist/lib/zindex.mjs +2 -0
- package/dist/lib/zindex.mjs.map +1 -1
- package/dist/{message-CMHvlPGn.d.mts → message-CsK3sIq0.d.mts} +1 -1
- package/dist/mixins/focus.d.mts +1 -1
- package/dist/mixins/hoverable.d.mts +2 -2
- package/dist/mixins/input.d.mts +1 -1
- package/dist/mixins/menuItem.d.mts +2 -2
- package/dist/mixins/text.d.mts +1 -1
- package/dist/{operators-Bo31xlc2.d.mts → operators-C_xPzItk.d.mts} +2 -2
- package/dist/operators.d.mts +1 -1
- package/dist/{layouts → patterns}/LayoutLoadingShimmer/index.mjs +7 -7
- package/dist/patterns/LayoutLoadingShimmer/index.mjs.map +1 -0
- package/dist/patterns/PageLayout/index.d.mts +2 -0
- package/dist/patterns/PageLayout/index.mjs +35 -0
- package/dist/patterns/PageLayout/index.mjs.map +1 -0
- package/dist/{text-B21s9mRZ.d.mts → text-BaQdW8qa.d.mts} +1 -1
- package/dist/{theme-BzBpJXhO.d.mts → theme-D9Y6NOzb.d.mts} +1 -1
- package/dist/theme.d.mts +1 -1
- package/dist/{types-D7ppqnNj.d.mts → types-BKEwt0uq.d.mts} +2 -2
- package/dist/{types-DEh_pXgS.d.mts → types-CjHuZoVJ.d.mts} +1 -1
- package/dist/{types-TV9nVfSe.d.mts → types-DVsBRqjZ.d.mts} +1 -1
- package/dist/{types-D58IoRx6.d.mts → types-mb3woqzE.d.mts} +6 -7
- package/dist/types.d.mts +1 -1
- package/dist/types2.d.mts +1 -1
- package/dist/types3.d.mts +1 -1
- package/dist/types4.d.mts +1 -1
- package/dist/useComboboxFooterAction.d.mts +1 -1
- package/dist/{useFilterStateV2-DCQghouq.d.mts → useFilterStateV2-CGzRyv0i.d.mts} +3 -3
- package/dist/useFilterStateV2.d.mts +1 -1
- package/dist/{useFormField-D8mLsiQc.d.mts → useFormField-DhwEi45-.d.mts} +2 -2
- package/dist/{useFormField-DhYd6bNn.mjs → useFormField-eftOPiXj.mjs} +2 -2
- package/dist/{useFormField-DhYd6bNn.mjs.map → useFormField-eftOPiXj.mjs.map} +1 -1
- package/dist/useFormField.d.mts +1 -1
- package/dist/{useFormGroup-DWVW7A9f.mjs → useFormGroup-BMukAMAd.mjs} +1 -1
- package/dist/{useFormGroup-DWVW7A9f.mjs.map → useFormGroup-BMukAMAd.mjs.map} +1 -1
- package/dist/{useTableBoxDragAndDrop-BMo-iaUF.d.mts → useTableBoxDragAndDrop-CsnN52lx.d.mts} +1 -1
- package/dist/useTableBoxDragAndDrop.d.mts +1 -1
- package/dist/{useToggle-Bo3yd14Y.mjs → useToggle-3k3EkV8V.mjs} +1 -1
- package/dist/{useToggle-Bo3yd14Y.mjs.map → useToggle-3k3EkV8V.mjs.map} +1 -1
- package/dist/useTruncation.d.mts +1 -1
- package/dist/{utilities-BO_95qFA.d.mts → utilities-DnSIlR1i.d.mts} +1 -1
- package/dist/utilities.d.mts +1 -1
- package/dist/utils/storybook.mjs +1 -1
- package/dist/utils/testing.d.mts +1 -1
- package/dist/utils/testing.mjs +1 -1
- package/dist/utils.d.mts +1 -1
- package/dist/{validation-vLh3t2dk.d.mts → validation-BdP2vajF.d.mts} +3 -3
- package/dist/validation.d.mts +1 -1
- package/dist/{value-control-resolver-CE-bqdAl.d.mts → value-control-resolver-CiGEHQAc.d.mts} +2 -2
- package/dist/value-control-resolver.d.mts +1 -1
- package/llms.txt +43 -0
- package/package.json +14 -5
- package/skills/ui-authoring/SKILL.md +27 -1
- package/dist/Breadcrumbs-W8hIhdHD.mjs.map +0 -1
- package/dist/Combobox-B6JyLog8.mjs.map +0 -1
- package/dist/DatePicker-Bw79p-Lx.mjs.map +0 -1
- package/dist/FormField-DdmgSWq4.mjs.map +0 -1
- package/dist/TableBox-bmrKh_ax.mjs.map +0 -1
- package/dist/TableControls-DVTtNAPo.mjs.map +0 -1
- package/dist/components/TechnicalSticker/index.mjs.map +0 -1
- package/dist/layouts/LayoutLoadingShimmer/index.mjs.map +0 -1
- /package/dist/{index--p6oQT9I.d.mts → index-0-W_aPej.d.mts} +0 -0
- /package/dist/{index-BYd3Btr1.d.mts → index-7in8TPrM.d.mts} +0 -0
- /package/dist/{index-CDGG7lCB.d.mts → index-7rWKHdox.d.mts} +0 -0
- /package/dist/{index-CMuRFTR3.d.mts → index-B4woaFSm.d.mts} +0 -0
- /package/dist/{index-CNxS4Tlu.d.mts → index-BINnViIh.d.mts} +0 -0
- /package/dist/{index-CWB6exYm.d.mts → index-BNRXMhlr.d.mts} +0 -0
- /package/dist/{index-CzItj62a.d.mts → index-BO_854F2.d.mts} +0 -0
- /package/dist/{index-D4DUvwPf.d.mts → index-BOn0AAue.d.mts} +0 -0
- /package/dist/{index-D5tSVhTd.d.mts → index-CCt0lwyI.d.mts} +0 -0
- /package/dist/{index-DGsJdI5l.d.mts → index-CREkvfw9.d.mts} +0 -0
- /package/dist/{index-DM6vVDZD.d.mts → index-CRo77wc3.d.mts} +0 -0
- /package/dist/{index-DWfPppPU.d.mts → index-Ci-uuV07.d.mts} +0 -0
- /package/dist/{index-DXJd7-2Z.d.mts → index-CsuikFeJ.d.mts} +0 -0
- /package/dist/{index-DkrC-i1D.d.mts → index-CzUpNo0e.d.mts} +0 -0
- /package/dist/{index-DvuJXuAN.d.mts → index-DDdPqD_H.d.mts} +0 -0
- /package/dist/{index-Iujpc9_6.d.mts → index-DeVKzGce.d.mts} +0 -0
- /package/dist/{index-PWQavSPf.d.mts → index-Es5nKSSL.d.mts} +0 -0
- /package/dist/{index-e6k85DKM.d.mts → index-FtE8MXJ_.d.mts} +0 -0
- /package/dist/{index-lIMqGGJz.d.mts → index-ehD5GjMH.d.mts} +0 -0
- /package/dist/{index-sViox9YW.d.mts → index-uMNhmxEh.d.mts} +0 -0
- /package/dist/{layouts → patterns}/LayoutLoadingShimmer/index.d.mts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
Summary of changes to the @persona/design-system package.
|
|
4
4
|
|
|
5
|
+
> **Do not edit this file by hand as part of a feature change.** It is generated at release time
|
|
6
|
+
> from the commits since the last release (see `CONTRIBUTING.md` → Releasing, step 2). Adding an
|
|
7
|
+
> entry alongside a feature PR only creates conflicts and duplicates — ship the change and let the
|
|
8
|
+
> release regenerate the entry.
|
|
9
|
+
|
|
10
|
+
## [0.2.1] - 2026-08-28
|
|
11
|
+
|
|
12
|
+
- **2026-08-27**: Made Modal register itself as an embedded UI surface when it renders inside a Persona dashboard iframe, so the host shell can dim, inert and scroll-lock everything outside the iframe while the modal is open. In a host that speaks the protocol the modal keeps rendering exactly as it does today and gains the shell-level overlay; with no host transport present the registration is a no-op and top-level modal behaviour is unchanged. Adds the `./lib/useEmbeddedSurface` and `./lib/embeddedSurfaceRegistry` entry points, and reserves `Z_INDICES.embeddedSurfaceBackdrop` (9998) and `Z_INDICES.embeddedSurface` (9999) below `modal`
|
|
13
|
+
- **2026-08-26**: Added the `./lib/embeddedSurfaceProtocol` entry point — the cross-origin message envelope, epoch and lease vocabulary an embedded app and its dashboard host exchange. Malformed or foreign messages are rejected rather than acted on
|
|
14
|
+
- **2026-08-20**: Made TextAreaField forward the FormField props it previously dropped (`rightActions`, `labelProps`, `helperProps`, `errorProps`, `configFieldInputWidth`) instead of leaking them onto the DOM textarea, so they now reach FormField as documented
|
|
15
|
+
|
|
16
|
+
## [0.2.0] - 2026-08-26
|
|
17
|
+
|
|
18
|
+
- **2026-08-26**: Fixed DatePicker reopening its calendar the instant it was dismissed, leaving no way to close it: the internal `isClosing` guard is a ref rather than state, so the focus restoration that runs during close no longer reads a stale value and calls `setOpen(true)`. Applied the same guard to DateRangePicker
|
|
19
|
+
- **2026-08-25**: Documented the FiltersV2 predicate model as `AND(...topLevelRules) AND OR(...compound.groups)`: every simple pill narrows the result set, including multiple pills on one field, and OR lives only inside a pill's multi-select value or the Rules pill
|
|
20
|
+
- **2026-08-24**: Moved the page layout primitives from `layouts/` to `patterns/`: the `./layouts/LayoutLoadingShimmer` entry point is removed in favour of `./patterns/LayoutLoadingShimmer`, and `./patterns/PageLayout` is a new export
|
|
21
|
+
- **2026-08-24**: Fixed Checkbox detaching its internal input ref whenever a consumer forwarded a ref, which left the `indeterminate` effect with nothing to write to — `useImperativeHandle` already hands the node to the caller
|
|
22
|
+
- **2026-08-24**: Scoped TableBox row hover, focus and inline-edit feedback to rows that actually respond to a pointer via a `data-interactive` marker, so display-only tables stop reading as clickable; TechnicalSticker now keeps its copy actions visible only for keyboard focus (`:has(:focus-visible)`) instead of any focus, and cancels an in-flight copy so a dismissed confirmation cannot reappear
|
|
23
|
+
- **2026-08-21**: Bumped the `react-router-dom` devDependency to `^6.30.5`; the published peer range is unchanged
|
|
24
|
+
- **2026-08-21**: Added `llms.txt` to the published files and expanded the bundled `ui-authoring` skill
|
|
25
|
+
- **2026-08-18**: Added `portalContainer` to FiltersV2 `FilterBar` and `FilterPopover` so a host can mount filter editors into its own container — collision avoidance is dropped when it does, leaving the editor pinned below its pill — and gave the editor an explicit `Z_INDICES.dropdown` layer with its operator menu one layer above. Added `visibleMonths?: 1 | 2` to RangeCalendar and DateRangePicker for compact single-month controls, and made embedded Comboboxes open one render after mount and focus with `preventScroll` so they no longer scroll the host page
|
|
26
|
+
- **2026-08-14**: Added a `copyConfirmationLabel` prop to TechnicalSticker for overriding the post-copy confirmation text
|
|
27
|
+
- **2026-08-13**: Narrowed the breadcrumb copy tooltip sticker to the design-specified widths (max width 240px → 96px, tooltip max width 400px → 250px)
|
|
28
|
+
- **2026-08-13**: Fixed a single-select Combobox clearing its committed label when the dropdown closed, so the selected option stays displayed
|
|
29
|
+
- **2026-08-12**: Made the breadcrumb copy tooltip show the token it copied
|
|
30
|
+
- **2026-08-11**: Anchored the DataTable SearchInput's disabled-state tooltip to the cursor instead of the input, so it stays reachable while the input cannot take focus
|
|
31
|
+
|
|
5
32
|
## [0.1.9] - 2026-08-12
|
|
6
33
|
|
|
7
34
|
- **2026-08-12**: Moved `@persona/design-tokens`, `@persona/icons`, and `styled-components` from dependencies to peerDependencies so consumers supply the single copy PDS renders against, instead of installing PDS's own duplicates
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as Tooltip } from "./Tooltip-
|
|
2
|
-
import { t as RequireOneOf } from "./utilities-
|
|
1
|
+
import { n as Tooltip } from "./Tooltip-0iXDCV2O.mjs";
|
|
2
|
+
import { t as RequireOneOf } from "./utilities-DnSIlR1i.mjs";
|
|
3
3
|
import { ComponentProps, ComponentPropsWithoutRef, ReactElement } from "react";
|
|
4
4
|
|
|
5
5
|
//#region types/Action.d.ts
|
|
@@ -32,4 +32,4 @@ type MenuAction = Action & {
|
|
|
32
32
|
};
|
|
33
33
|
//#endregion
|
|
34
34
|
export { TextAction as i, IconAction as n, MenuAction as r, Action as t };
|
|
35
|
-
//# sourceMappingURL=Action-
|
|
35
|
+
//# sourceMappingURL=Action-DnR0YTxO.d.mts.map
|
package/dist/Action.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as TextAction, n as IconAction, r as MenuAction, t as Action } from "./Action-
|
|
1
|
+
import { i as TextAction, n as IconAction, r as MenuAction, t as Action } from "./Action-DnR0YTxO.mjs";
|
|
2
2
|
export { Action, IconAction, MenuAction, TextAction };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as FilterField, c as FilterOperator, d as FilterSize, l as FilterRule, u as FilterRuleValue } from "./types-
|
|
2
|
-
import { t as FieldRegistry } from "./FieldRegistry-
|
|
3
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
1
|
+
import { a as FilterField, c as FilterOperator, d as FilterSize, l as FilterRule, u as FilterRuleValue } from "./types-mb3woqzE.mjs";
|
|
2
|
+
import { t as FieldRegistry } from "./FieldRegistry-COyIA4VU.mjs";
|
|
4
3
|
import { ReactNode } from "react";
|
|
4
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region components/DataTable/TableControls/FiltersV2/AdvancedFilterRulesPopover/AdvancedFilterRuleRow.d.ts
|
|
7
7
|
interface AdvancedFilterRuleRowProps {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as FilterField, c as FilterOperator, d as FilterSize, n as CompoundExpression, u as FilterRuleValue } from "./types-
|
|
2
|
-
import { t as FieldRegistry } from "./FieldRegistry-
|
|
3
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
1
|
+
import { a as FilterField, c as FilterOperator, d as FilterSize, n as CompoundExpression, u as FilterRuleValue } from "./types-mb3woqzE.mjs";
|
|
2
|
+
import { t as FieldRegistry } from "./FieldRegistry-COyIA4VU.mjs";
|
|
4
3
|
import { ReactElement, ReactNode } from "react";
|
|
4
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region components/DataTable/TableControls/FiltersV2/AdvancedFilterRulesPopover/AdvancedFilterRulesPopover.d.ts
|
|
7
7
|
interface AdvancedFilterRulesPopoverProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ValueControlProps } from "./types-
|
|
1
|
+
import { t as ValueControlProps } from "./types-BKEwt0uq.mjs";
|
|
2
2
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region components/DataTable/TableControls/FiltersV2/value-controls/ArrayValueControl/ArrayValueControl.d.ts
|
package/dist/Attribute.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as IconButtonProps } from "./IconButton-
|
|
2
|
-
import { i as ParagraphSize } from "./text-
|
|
3
|
-
import { c as ParagraphProps, u as SpanProps } from "./Text-
|
|
1
|
+
import { n as IconButtonProps } from "./IconButton-Dc17jZPG.mjs";
|
|
2
|
+
import { i as ParagraphSize } from "./text-BaQdW8qa.mjs";
|
|
3
|
+
import { c as ParagraphProps, u as SpanProps } from "./Text-CfIFUyHt.mjs";
|
|
4
4
|
import * as _$styled_components0 from "styled-components";
|
|
5
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
5
|
import * as _$react from "react";
|
|
7
6
|
import { ComponentPropsWithoutRef, ComponentType, FC, PropsWithChildren, ReactNode } from "react";
|
|
7
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
8
8
|
|
|
9
9
|
//#region components/Attribute/Attribute.d.ts
|
|
10
10
|
type WordBreak = 'break-all' | 'break-word' | 'normal';
|
package/dist/AttributeGrid.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AttributeSize, TableLayoutValue } from "./Attribute.mjs";
|
|
2
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
2
|
import { ReactNode } from "react";
|
|
3
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region components/Attribute/AttributeGrid.d.ts
|
|
6
6
|
type AttributeGridProps = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as Sticker } from "./Sticker-
|
|
1
|
+
import { n as Sticker } from "./Sticker-B0TbkV4o.mjs";
|
|
2
2
|
import styled, { css } from "styled-components";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region components/Badge/Badge.tsx
|
|
@@ -28,4 +28,4 @@ const Badge = styled(({ variant, ...rest }) => {
|
|
|
28
28
|
//#endregion
|
|
29
29
|
export { Badge as t };
|
|
30
30
|
|
|
31
|
-
//# sourceMappingURL=Badge-
|
|
31
|
+
//# sourceMappingURL=Badge-DRn_r6is.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge-
|
|
1
|
+
{"version":3,"file":"Badge-DRn_r6is.mjs","names":[],"sources":["../components/Badge/Badge.tsx"],"sourcesContent":["import styled, { css, type DefaultTheme, type StyledComponent } from 'styled-components';\n\nimport Sticker, { type StickerProps } from 'design-system/components/Sticker';\n\nexport interface BadgeProps {\n /**\n * When rendered on a secondary background (e.g. inside a panel or card with\n * a grey fill), set this to true so the component adjusts its colours\n * appropriately for certain variants.\n */\n onSecondaryBackground?: boolean;\n /**\n * Semantic colour variant for the badge.\n *\n * - `basic` – neutral grey, for informational counts or labels (default).\n * - `active` – purple, to highlight an active or selected state.\n * - `alert` – red/danger, to draw attention to errors or urgent counts.\n *\n * @defaultValue 'basic'\n */\n variant?: 'alert' | 'active' | 'basic';\n}\n\nexport const Badge = styled(({ variant, ...rest }: BadgeProps) => {\n let variantProp: StickerProps['variant'];\n switch (variant) {\n case 'alert':\n variantProp = 'danger';\n break;\n case 'active':\n variantProp = 'purple';\n break;\n case 'basic':\n default:\n variantProp = 'grey';\n }\n\n return <Sticker {...rest} variant={variantProp} />;\n})<BadgeProps>(\n () => css`\n min-width: 16px;\n text-align: center;\n border-radius: 100px;\n span {\n font-size: 10px;\n }\n `,\n) as StyledComponent<'span', DefaultTheme, BadgeProps, never>;\n/**\n * The type workaround above makes the correct types available for Badge.\n * Having duplicate prop names between Badge and Sticker seems to cause some oddities.\n *\n * We insist on making this a styled component so the component itself can be targeted in styles.\n * See: https://styled-components.com/docs/advanced#referring-to-other-components\n */\n\nexport default Badge;\n"],"mappings":";;;;AAuBA,MAAa,QAAQ,QAAQ,EAAE,SAAS,GAAG,WAAuB;CAChE,IAAI;AACJ,SAAQ,SAAR;EACE,KAAK;AACH,iBAAc;AACd;EACF,KAAK;AACH,iBAAc;AACd;EAEF,QACE,eAAc;;AAGlB,QAAO,oBAAC,SAAD;EAAS,GAAI;EAAM,SAAS;EAAe,CAAA;EAClD,OACM,GAAG;;;;;;;IAQV"}
|
package/dist/Banner.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
1
|
import { ComponentPropsWithoutRef, ReactElement, ReactNode } from "react";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region components/Banner/Banner.d.ts
|
|
5
5
|
interface BannerProps extends ComponentPropsWithoutRef<'div'> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ValueControlProps } from "./types-
|
|
1
|
+
import { t as ValueControlProps } from "./types-BKEwt0uq.mjs";
|
|
2
2
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region components/DataTable/TableControls/FiltersV2/value-controls/BooleanValueControl/BooleanValueControl.d.ts
|
|
@@ -14,7 +14,13 @@ type BreadcrumbProps = {
|
|
|
14
14
|
headingAs?: BreadcrumbHeadingAs;
|
|
15
15
|
showCopyAction?: boolean;
|
|
16
16
|
copyValue?: string;
|
|
17
|
-
copyTooltipLabel?: string; /**
|
|
17
|
+
copyTooltipLabel?: string; /** Copy tooltip text shown after a successful copy. Defaults to `Copied!`. */
|
|
18
|
+
copiedTooltipLabel?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Appends `copyValue` to both copy tooltip texts as a `TechnicalSticker`, so the tooltip shows
|
|
21
|
+
* which token is being copied.
|
|
22
|
+
*/
|
|
23
|
+
showCopyValueInTooltip?: boolean; /** Internal dashboard path (e.g. `/cases`). Passed to the router `Link` as `to`. */
|
|
18
24
|
href?: string;
|
|
19
25
|
/**
|
|
20
26
|
* Activates a non-current crumb without a route change, for trails that navigate in-place (e.g.
|
|
@@ -33,6 +39,8 @@ declare const Breadcrumb: ({
|
|
|
33
39
|
showCopyAction,
|
|
34
40
|
copyValue,
|
|
35
41
|
copyTooltipLabel,
|
|
42
|
+
copiedTooltipLabel,
|
|
43
|
+
showCopyValueInTooltip,
|
|
36
44
|
href,
|
|
37
45
|
onClick,
|
|
38
46
|
onEdit,
|
|
@@ -41,4 +49,4 @@ declare const Breadcrumb: ({
|
|
|
41
49
|
}: BreadcrumbProps) => _$react_jsx_runtime0.JSX.Element;
|
|
42
50
|
//#endregion
|
|
43
51
|
export { BreadcrumbSize as i, BreadcrumbHeadingAs as n, BreadcrumbProps as r, Breadcrumb as t };
|
|
44
|
-
//# sourceMappingURL=Breadcrumb-
|
|
52
|
+
//# sourceMappingURL=Breadcrumb-DEwZFJHF.d.mts.map
|
package/dist/Breadcrumb.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as BreadcrumbSize, n as BreadcrumbHeadingAs, r as BreadcrumbProps, t as Breadcrumb } from "./Breadcrumb-
|
|
1
|
+
import { i as BreadcrumbSize, n as BreadcrumbHeadingAs, r as BreadcrumbProps, t as Breadcrumb } from "./Breadcrumb-DEwZFJHF.mjs";
|
|
2
2
|
export { BreadcrumbHeadingAs, BreadcrumbProps, BreadcrumbSize, Breadcrumb as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as BreadcrumbSize, n as BreadcrumbHeadingAs, r as BreadcrumbProps } from "./Breadcrumb-
|
|
1
|
+
import { i as BreadcrumbSize, n as BreadcrumbHeadingAs, r as BreadcrumbProps } from "./Breadcrumb-DEwZFJHF.mjs";
|
|
2
2
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region components/Breadcrumbs/Breadcrumbs.d.ts
|
|
@@ -23,4 +23,4 @@ declare const Breadcrumbs: ({
|
|
|
23
23
|
}: BreadcrumbsProps) => _$react_jsx_runtime0.JSX.Element | null;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { BreadcrumbsItemProps as n, BreadcrumbsProps as r, Breadcrumbs as t };
|
|
26
|
-
//# sourceMappingURL=Breadcrumbs-
|
|
26
|
+
//# sourceMappingURL=Breadcrumbs-0e_3v9FF.d.mts.map
|
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
import { focusOutline } from "./mixins/focus.mjs";
|
|
2
2
|
import "./variables/transitions.mjs";
|
|
3
3
|
import { paragraphMixins } from "./mixins/text.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { t as IconButton } from "./IconButton-
|
|
8
|
-
import { t as intersperse } from "./intersperse-
|
|
4
|
+
import { i as Paragraph } from "./Text-hEoPeOc9.mjs";
|
|
5
|
+
import { a as Tooltip } from "./Tooltip-CDvOu1UN.mjs";
|
|
6
|
+
import { t as HStack } from "./Stack-ckRN7LrP.mjs";
|
|
7
|
+
import { t as IconButton } from "./IconButton-DC4rh6ow.mjs";
|
|
8
|
+
import { t as intersperse } from "./intersperse-yd3oMrQl.mjs";
|
|
9
9
|
import Input_default from "./components/Input/index.mjs";
|
|
10
|
+
import { t as TechnicalSticker } from "./TechnicalSticker-BrvR0zhC.mjs";
|
|
10
11
|
import { Spacing } from "@persona/design-tokens";
|
|
11
12
|
import styled, { css } from "styled-components";
|
|
12
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { Link } from "react-router-dom";
|
|
14
13
|
import { useEffect, useRef, useState } from "react";
|
|
14
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
15
|
import { CopyIcon, EditIcon } from "@persona/icons";
|
|
16
|
+
import { Link } from "react-router-dom";
|
|
16
17
|
//#region components/Breadcrumbs/Breadcrumb.tsx
|
|
17
18
|
const COPY_TOOLTIP_LABEL = "Copy ID";
|
|
19
|
+
const COPIED_TOOLTIP_LABEL = "Copied!";
|
|
18
20
|
const DEFAULT_EDIT_MAX_LENGTH = 100;
|
|
21
|
+
const COPY_TOOLTIP_STICKER_MAX_WIDTH = "96px";
|
|
22
|
+
const COPY_TOOLTIP_STICKER_TOOLTIP_MAX_WIDTH = "250px";
|
|
19
23
|
const LABEL_ACTION_GAP = Spacing[2];
|
|
20
24
|
const ACTION_BUTTON_GAP = Spacing[1];
|
|
21
25
|
const CrumbRow = styled(HStack)`
|
|
@@ -91,7 +95,7 @@ const copyToClipboard = async (value) => {
|
|
|
91
95
|
return false;
|
|
92
96
|
}
|
|
93
97
|
};
|
|
94
|
-
const BreadcrumbCopyButton = ({ copyValue, copyTooltipLabel = COPY_TOOLTIP_LABEL, onCopy }) => {
|
|
98
|
+
const BreadcrumbCopyButton = ({ copyValue, copyTooltipLabel = COPY_TOOLTIP_LABEL, copiedTooltipLabel = COPIED_TOOLTIP_LABEL, showCopyValueInTooltip = false, onCopy }) => {
|
|
95
99
|
const [tooltipOpen, setTooltipOpen] = useState(false);
|
|
96
100
|
const [copied, setCopied] = useState(false);
|
|
97
101
|
const handleCopy = async () => {
|
|
@@ -110,22 +114,24 @@ const BreadcrumbCopyButton = ({ copyValue, copyTooltipLabel = COPY_TOOLTIP_LABEL
|
|
|
110
114
|
const handleMouseLeave = () => {
|
|
111
115
|
if (!copied) setTooltipOpen(false);
|
|
112
116
|
};
|
|
117
|
+
const trigger = /* @__PURE__ */ jsx("span", {
|
|
118
|
+
onMouseEnter: handleMouseEnter,
|
|
119
|
+
onMouseLeave: handleMouseLeave,
|
|
120
|
+
children: /* @__PURE__ */ jsx(IconButton, {
|
|
121
|
+
type: "button",
|
|
122
|
+
size: "sm",
|
|
123
|
+
"aria-label": `Copy ${copyValue}`,
|
|
124
|
+
onClick: (event) => {
|
|
125
|
+
event.preventDefault();
|
|
126
|
+
event.stopPropagation();
|
|
127
|
+
handleCopy();
|
|
128
|
+
},
|
|
129
|
+
children: /* @__PURE__ */ jsx(CopyIcon, {})
|
|
130
|
+
})
|
|
131
|
+
});
|
|
132
|
+
const tooltipLabel = copied ? copiedTooltipLabel : copyTooltipLabel;
|
|
113
133
|
return /* @__PURE__ */ jsx(Tooltip, {
|
|
114
|
-
trigger
|
|
115
|
-
onMouseEnter: handleMouseEnter,
|
|
116
|
-
onMouseLeave: handleMouseLeave,
|
|
117
|
-
children: /* @__PURE__ */ jsx(IconButton, {
|
|
118
|
-
type: "button",
|
|
119
|
-
size: "sm",
|
|
120
|
-
"aria-label": `Copy ${copyValue}`,
|
|
121
|
-
onClick: (event) => {
|
|
122
|
-
event.preventDefault();
|
|
123
|
-
event.stopPropagation();
|
|
124
|
-
handleCopy();
|
|
125
|
-
},
|
|
126
|
-
children: /* @__PURE__ */ jsx(CopyIcon, {})
|
|
127
|
-
})
|
|
128
|
-
}),
|
|
134
|
+
trigger,
|
|
129
135
|
open: tooltipOpen,
|
|
130
136
|
side: "top",
|
|
131
137
|
sideOffset: 4,
|
|
@@ -134,10 +140,19 @@ const BreadcrumbCopyButton = ({ copyValue, copyTooltipLabel = COPY_TOOLTIP_LABEL
|
|
|
134
140
|
interactive: false,
|
|
135
141
|
hideArrow: true,
|
|
136
142
|
portal: false,
|
|
137
|
-
|
|
143
|
+
maxWidth: showCopyValueInTooltip ? COPY_TOOLTIP_STICKER_TOOLTIP_MAX_WIDTH : void 0,
|
|
144
|
+
children: showCopyValueInTooltip ? /* @__PURE__ */ jsxs(HStack, {
|
|
145
|
+
spacing: ACTION_BUTTON_GAP,
|
|
146
|
+
align: "center",
|
|
147
|
+
children: [/* @__PURE__ */ jsx("span", { children: tooltipLabel }), /* @__PURE__ */ jsx(TechnicalSticker, {
|
|
148
|
+
copyable: false,
|
|
149
|
+
maxWidth: COPY_TOOLTIP_STICKER_MAX_WIDTH,
|
|
150
|
+
children: copyValue
|
|
151
|
+
})]
|
|
152
|
+
}) : tooltipLabel
|
|
138
153
|
});
|
|
139
154
|
};
|
|
140
|
-
const Breadcrumb = ({ label, size = "md", current = false, headingAs = "h1", showCopyAction = false, copyValue, copyTooltipLabel, href, onClick, onEdit, editMaxLength = DEFAULT_EDIT_MAX_LENGTH, onCopy }) => {
|
|
155
|
+
const Breadcrumb = ({ label, size = "md", current = false, headingAs = "h1", showCopyAction = false, copyValue, copyTooltipLabel, copiedTooltipLabel, showCopyValueInTooltip, href, onClick, onEdit, editMaxLength = DEFAULT_EDIT_MAX_LENGTH, onCopy }) => {
|
|
141
156
|
const [isEditing, setIsEditing] = useState(false);
|
|
142
157
|
const [editValue, setEditValue] = useState(label);
|
|
143
158
|
const [editMinWidth, setEditMinWidth] = useState();
|
|
@@ -177,6 +192,8 @@ const Breadcrumb = ({ label, size = "md", current = false, headingAs = "h1", sho
|
|
|
177
192
|
}), showCopyAction && copyValue != null && /* @__PURE__ */ jsx(BreadcrumbCopyButton, {
|
|
178
193
|
copyValue,
|
|
179
194
|
copyTooltipLabel,
|
|
195
|
+
copiedTooltipLabel,
|
|
196
|
+
showCopyValueInTooltip,
|
|
180
197
|
onCopy
|
|
181
198
|
})]
|
|
182
199
|
});
|
|
@@ -285,4 +302,4 @@ const Breadcrumbs = ({ items, size = "md", headingAs = "h1", "aria-label": ariaL
|
|
|
285
302
|
//#endregion
|
|
286
303
|
export { Breadcrumbs as t };
|
|
287
304
|
|
|
288
|
-
//# sourceMappingURL=Breadcrumbs-
|
|
305
|
+
//# sourceMappingURL=Breadcrumbs-Byf2ye6H.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Breadcrumbs-Byf2ye6H.mjs","names":["Input"],"sources":["../components/Breadcrumbs/Breadcrumb.tsx","../components/Breadcrumbs/Breadcrumbs.tsx"],"sourcesContent":["import { type ChangeEvent, useEffect, useRef, useState } from 'react';\nimport { Link } from 'react-router-dom';\nimport styled, { css } from 'styled-components';\n\nimport { Spacing } from '@persona/design-tokens';\nimport { CopyIcon, EditIcon } from '@persona/icons';\nimport { IconButton } from 'design-system/components/Button';\nimport Input from 'design-system/components/Input';\nimport { HStack } from 'design-system/components/Stack';\nimport TechnicalSticker from 'design-system/components/TechnicalSticker';\nimport { Paragraph } from 'design-system/components/Text';\nimport Tooltip from 'design-system/components/Tooltip';\nimport { focusOutline } from 'design-system/mixins/focus';\nimport { paragraphMixins } from 'design-system/mixins/text';\nimport { TransitionDuration } from 'design-system/variables/transitions';\n\nexport type BreadcrumbSize = 'md' | 'lg';\n\nexport type BreadcrumbHeadingAs = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';\n\nconst COPY_TOOLTIP_LABEL = 'Copy ID';\nconst COPIED_TOOLTIP_LABEL = 'Copied!';\nconst DEFAULT_EDIT_MAX_LENGTH = 100;\nconst COPY_TOOLTIP_STICKER_MAX_WIDTH = '96px';\nconst COPY_TOOLTIP_STICKER_TOOLTIP_MAX_WIDTH = '250px';\n\nexport type BreadcrumbProps = {\n label: string;\n size?: BreadcrumbSize;\n current?: boolean;\n /**\n * Overrides the heading element rendered for the current crumb. Defaults to `h1`; use `h2` or\n * lower when the page already has an `h1`.\n */\n headingAs?: BreadcrumbHeadingAs;\n showCopyAction?: boolean;\n copyValue?: string;\n copyTooltipLabel?: string;\n /** Copy tooltip text shown after a successful copy. Defaults to `Copied!`. */\n copiedTooltipLabel?: string;\n /**\n * Appends `copyValue` to both copy tooltip texts as a `TechnicalSticker`, so the tooltip shows\n * which token is being copied.\n */\n showCopyValueInTooltip?: boolean;\n /** Internal dashboard path (e.g. `/cases`). Passed to the router `Link` as `to`. */\n href?: string;\n /**\n * Activates a non-current crumb without a route change, for trails that navigate in-place (e.g.\n * a control panel drilling into a sub-panel). Ignored when `href` is set.\n */\n onClick?: () => void;\n onEdit?: (newLabel: string) => void;\n editMaxLength?: number;\n onCopy?: () => void;\n};\n\nconst LABEL_ACTION_GAP = Spacing[2];\nconst ACTION_BUTTON_GAP = Spacing[1];\n\nconst CrumbRow = styled(HStack)`\n align-items: center;\n min-width: 0;\n`;\n\nconst crumbLayoutStyles = (size: BreadcrumbSize) => css`\n display: inline-flex;\n align-items: center;\n min-width: 0;\n min-height: ${({ theme }) => theme.element.height.xs};\n ${\n size === 'lg'\n ? css`\n font-size: ${({ theme }) => theme.text.paragraph.lg.fontSize};\n line-height: ${({ theme }) => theme.text.paragraph.lg.lineHeight};\n `\n : css``\n };\n`;\n\nconst editInputTextStyles = (size: BreadcrumbSize, current: boolean) => {\n if (current) {\n return size === 'lg' ? paragraphMixins.lgBold : paragraphMixins.mdBold;\n }\n return size === 'lg' ? paragraphMixins.lg : paragraphMixins.md;\n};\n\nconst ancestorCrumbStyles = css<{ $size: BreadcrumbSize }>`\n ${paragraphMixins.md};\n color: ${({ theme }) => theme.color.text.secondary};\n text-decoration: none;\n transition: color ${TransitionDuration.ExtraFast} ease-out;\n ${focusOutline}\n ${({ $size }) => crumbLayoutStyles($size)}\n\n &:hover {\n color: ${({ theme }) => theme.color.text.primary};\n }\n`;\n\nconst AncestorNavLink = styled(Link)<{ $size: BreadcrumbSize }>`\n ${ancestorCrumbStyles}\n`;\n\nconst AncestorNavButton = styled.button<{ $size: BreadcrumbSize }>`\n ${ancestorCrumbStyles}\n padding: 0;\n border: none;\n background: none;\n cursor: pointer;\n`;\n\nconst InlineEditInput = styled(Input)<{\n $size: BreadcrumbSize;\n $current: boolean;\n $editMinWidth?: number;\n}>`\n margin: 0;\n padding: 2px 10px;\n width: auto;\n max-width: 100%;\n min-width: ${({ $editMinWidth }) => ($editMinWidth != null ? `${$editMinWidth}px` : '0')};\n field-sizing: content;\n display: inline-block;\n ${({ $size, $current }) => editInputTextStyles($size, $current)};\n background-color: ${({ theme }) => theme.color.background.primary};\n color: ${({ theme }) => theme.color.text.primary};\n\n &:not(:focus) {\n border-color: transparent;\n }\n\n &:hover:not(:disabled) {\n border-style: solid;\n }\n`;\n\nconst CurrentLabel = styled(Paragraph)<{ $size: BreadcrumbSize }>`\n margin: 0;\n ${({ $size }) => crumbLayoutStyles($size)}\n`;\n\nconst copyToClipboard = async (value: string): Promise<boolean> => {\n try {\n if (navigator.clipboard?.writeText == null) {\n return false;\n }\n\n await navigator.clipboard.writeText(value);\n return true;\n } catch {\n return false;\n }\n};\n\nconst BreadcrumbCopyButton = ({\n copyValue,\n copyTooltipLabel = COPY_TOOLTIP_LABEL,\n copiedTooltipLabel = COPIED_TOOLTIP_LABEL,\n showCopyValueInTooltip = false,\n onCopy,\n}: {\n copyValue: string;\n copyTooltipLabel?: string;\n copiedTooltipLabel?: string;\n showCopyValueInTooltip?: boolean;\n onCopy?: () => void;\n}) => {\n const [tooltipOpen, setTooltipOpen] = useState(false);\n const [copied, setCopied] = useState(false);\n\n const handleCopy = async () => {\n const success = await copyToClipboard(copyValue);\n if (!success) {\n return;\n }\n\n setCopied(true);\n setTooltipOpen(true);\n onCopy?.();\n\n window.setTimeout(() => {\n setTooltipOpen(false);\n window.setTimeout(() => setCopied(false), 200);\n }, 1000);\n };\n\n const handleMouseEnter = () => {\n if (!copied) {\n setTooltipOpen(true);\n }\n };\n\n const handleMouseLeave = () => {\n if (!copied) {\n setTooltipOpen(false);\n }\n };\n\n const trigger = (\n <span onMouseEnter={handleMouseEnter} onMouseLeave={handleMouseLeave}>\n <IconButton\n type='button'\n size='sm'\n aria-label={`Copy ${copyValue}`}\n onClick={(event) => {\n event.preventDefault();\n event.stopPropagation();\n void handleCopy();\n }}\n >\n <CopyIcon />\n </IconButton>\n </span>\n );\n\n const tooltipLabel = copied ? copiedTooltipLabel : copyTooltipLabel;\n\n return (\n <Tooltip\n trigger={trigger}\n open={tooltipOpen}\n side='top'\n sideOffset={4}\n size='sm'\n contentAlignment='center'\n interactive={false}\n hideArrow\n portal={false}\n maxWidth={showCopyValueInTooltip ? COPY_TOOLTIP_STICKER_TOOLTIP_MAX_WIDTH : undefined}\n >\n {showCopyValueInTooltip ? (\n <HStack spacing={ACTION_BUTTON_GAP} align='center'>\n <span>{tooltipLabel}</span>\n <TechnicalSticker copyable={false} maxWidth={COPY_TOOLTIP_STICKER_MAX_WIDTH}>\n {copyValue}\n </TechnicalSticker>\n </HStack>\n ) : (\n tooltipLabel\n )}\n </Tooltip>\n );\n};\n\nconst Breadcrumb = ({\n label,\n size = 'md',\n current = false,\n headingAs = 'h1',\n showCopyAction = false,\n copyValue,\n copyTooltipLabel,\n copiedTooltipLabel,\n showCopyValueInTooltip,\n href,\n onClick,\n onEdit,\n editMaxLength = DEFAULT_EDIT_MAX_LENGTH,\n onCopy,\n}: BreadcrumbProps) => {\n const [isEditing, setIsEditing] = useState(false);\n const [editValue, setEditValue] = useState(label);\n const [editMinWidth, setEditMinWidth] = useState<number | undefined>();\n const editInputRef = useRef<HTMLInputElement>(null);\n\n useEffect(() => {\n if (!isEditing) {\n setEditValue(label);\n }\n }, [isEditing, label]);\n\n useEffect(() => {\n if (!isEditing) {\n setEditMinWidth(undefined);\n return;\n }\n\n const input = editInputRef.current;\n if (input == null) {\n return;\n }\n\n setEditMinWidth(input.offsetWidth);\n input.focus();\n input.select();\n }, [isEditing]);\n\n const commitEdit = () => {\n if (!isEditing) {\n return;\n }\n\n setIsEditing(false);\n if (editValue !== label) {\n onEdit?.(editValue);\n }\n };\n\n const inlineActions = !isEditing && (showCopyAction || onEdit) && (\n <HStack spacing={ACTION_BUTTON_GAP} align='center'>\n {onEdit && (\n <IconButton\n type='button'\n size='sm'\n aria-label={`Edit ${label}`}\n onClick={(event) => {\n event.preventDefault();\n event.stopPropagation();\n setIsEditing(true);\n }}\n >\n <EditIcon />\n </IconButton>\n )}\n {showCopyAction && copyValue != null && (\n <BreadcrumbCopyButton\n copyValue={copyValue}\n copyTooltipLabel={copyTooltipLabel}\n copiedTooltipLabel={copiedTooltipLabel}\n showCopyValueInTooltip={showCopyValueInTooltip}\n onCopy={onCopy}\n />\n )}\n </HStack>\n );\n\n if (isEditing) {\n return (\n <CrumbRow spacing={LABEL_ACTION_GAP}>\n <InlineEditInput\n ref={editInputRef}\n $size={size}\n $current={current}\n $editMinWidth={editMinWidth}\n size='md'\n aria-label={`Edit ${label}`}\n maxLength={editMaxLength}\n value={editValue}\n onChange={(event: ChangeEvent<HTMLInputElement>) => setEditValue(event.target.value)}\n onBlur={commitEdit}\n onKeyDown={(event) => {\n if (event.key === 'Enter') {\n event.preventDefault();\n commitEdit();\n }\n if (event.key === 'Escape') {\n setEditValue(label);\n setIsEditing(false);\n }\n }}\n />\n </CrumbRow>\n );\n }\n\n if (current) {\n return (\n <CrumbRow spacing={LABEL_ACTION_GAP}>\n <CurrentLabel\n $size={size}\n size={size === 'lg' ? 'lg' : 'md'}\n weight='bold'\n color='primary'\n as={headingAs}\n >\n {label}\n </CurrentLabel>\n {inlineActions}\n </CrumbRow>\n );\n }\n\n if (href == null && onClick != null) {\n return (\n <CrumbRow spacing={LABEL_ACTION_GAP}>\n <AncestorNavButton type='button' onClick={onClick} $size={size}>\n {label}\n </AncestorNavButton>\n {inlineActions}\n </CrumbRow>\n );\n }\n\n return (\n <CrumbRow spacing={LABEL_ACTION_GAP}>\n <AncestorNavLink to={href ?? ''} $size={size}>\n {label}\n </AncestorNavLink>\n {inlineActions}\n </CrumbRow>\n );\n};\n\nexport default Breadcrumb;\n","import styled from 'styled-components';\n\nimport { Spacing } from '@persona/design-tokens';\nimport { intersperse } from 'design-system/lib/intersperse';\nimport { paragraphMixins } from 'design-system/mixins/text';\n\nimport Breadcrumb, {\n type BreadcrumbHeadingAs,\n type BreadcrumbProps,\n type BreadcrumbSize,\n} from './Breadcrumb';\n\nexport type BreadcrumbsItemProps = Omit<BreadcrumbProps, 'size' | 'current' | 'headingAs'>;\n\nexport type BreadcrumbsProps = {\n items: BreadcrumbsItemProps[];\n size?: BreadcrumbSize;\n /**\n * Overrides the heading element rendered for the current crumb. Defaults to `h1`; use `h2` or\n * lower when the page already has an `h1`.\n */\n headingAs?: BreadcrumbHeadingAs;\n 'aria-label'?: string;\n className?: string;\n};\n\nconst BreadcrumbList = styled.ol`\n max-width: 100%;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n list-style: none;\n margin: 0;\n padding: 0;\n min-width: 0;\n`;\n\nconst BreadcrumbListItem = styled.li`\n display: flex;\n align-items: center;\n min-width: 0;\n`;\n\nconst Separator = styled.span<{ $size: BreadcrumbSize }>`\n padding: 0 ${Spacing[2]};\n color: ${({ theme }) => theme.color.text.tertiary};\n user-select: none;\n ${({ $size }) => ($size === 'lg' ? paragraphMixins.lg : paragraphMixins.md)};\n`;\n\nexport const Breadcrumbs = ({\n items,\n size = 'md',\n headingAs = 'h1',\n 'aria-label': ariaLabel = 'Breadcrumbs',\n className,\n}: BreadcrumbsProps) => {\n if (items.length === 0) {\n return null;\n }\n\n const crumbNodes = items.map((item, index) => {\n const isCurrent = index === items.length - 1;\n\n return (\n <BreadcrumbListItem\n key={`${item.label}-${index}`}\n aria-current={isCurrent ? 'page' : undefined}\n >\n <Breadcrumb {...item} size={size} current={isCurrent} headingAs={headingAs} />\n </BreadcrumbListItem>\n );\n });\n\n const listItems = intersperse(crumbNodes, (separatorIndex: number) => (\n <BreadcrumbListItem key={`separator-${separatorIndex}`} aria-hidden='true'>\n <Separator $size={size}>/</Separator>\n </BreadcrumbListItem>\n ));\n\n return (\n <nav aria-label={ariaLabel} className={className}>\n <BreadcrumbList>{listItems}</BreadcrumbList>\n </nav>\n );\n};\n\nexport default Breadcrumbs;\n"],"mappings":";;;;;;;;;;;;;;;;;AAoBA,MAAM,qBAAqB;AAC3B,MAAM,uBAAuB;AAC7B,MAAM,0BAA0B;AAChC,MAAM,iCAAiC;AACvC,MAAM,yCAAyC;AAiC/C,MAAM,mBAAmB,QAAQ;AACjC,MAAM,oBAAoB,QAAQ;AAElC,MAAM,WAAW,OAAO,OAAO;;;;AAK/B,MAAM,qBAAqB,SAAyB,GAAG;;;;iBAItC,EAAE,YAAY,MAAM,QAAQ,OAAO,GAAG;IAEnD,SAAS,OACL,GAAG;sBACW,EAAE,YAAY,MAAM,KAAK,UAAU,GAAG,SAAS;wBAC7C,EAAE,YAAY,MAAM,KAAK,UAAU,GAAG,WAAW;UAEjE,GAAG,GACR;;AAGH,MAAM,uBAAuB,MAA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BreadcrumbsItemProps, r as BreadcrumbsProps, t as Breadcrumbs } from "./Breadcrumbs-0e_3v9FF.mjs";
|
|
2
2
|
export { Breadcrumbs, Breadcrumbs as default, BreadcrumbsItemProps, BreadcrumbsProps };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as PseudoClassProps } from "./PseudoClassProps-
|
|
1
|
+
import { t as PseudoClassProps } from "./PseudoClassProps-CcSlKNev.mjs";
|
|
2
2
|
import * as _$styled_components0 from "styled-components";
|
|
3
|
-
import { LinkProps } from "react-router-dom";
|
|
4
3
|
import * as _$react from "react";
|
|
5
4
|
import { ComponentPropsWithoutRef, MouseEvent, ReactNode, Ref } from "react";
|
|
5
|
+
import { LinkProps } from "react-router-dom";
|
|
6
6
|
|
|
7
7
|
//#region components/Button/Button.d.ts
|
|
8
8
|
interface ButtonPropsWithTransientProps extends Omit<ButtonProps, 'isPending'> {
|
|
@@ -98,4 +98,4 @@ interface ButtonProps extends ComponentPropsWithoutRef<'button'>, Omit<PseudoCla
|
|
|
98
98
|
declare const Button: _$react.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & _$react.RefAttributes<HTMLButtonElement>>;
|
|
99
99
|
//#endregion
|
|
100
100
|
export { SuffixIconContainer as a, StyledButton as i, ButtonChildren as n, ButtonProps as r, Button as t };
|
|
101
|
-
//# sourceMappingURL=Button-
|
|
101
|
+
//# sourceMappingURL=Button-DkjwN_Op.d.mts.map
|
package/dist/Button.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as SuffixIconContainer, i as StyledButton, n as ButtonChildren, r as ButtonProps, t as Button } from "./Button-
|
|
1
|
+
import { a as SuffixIconContainer, i as StyledButton, n as ButtonChildren, r as ButtonProps, t as Button } from "./Button-DkjwN_Op.mjs";
|
|
2
2
|
export { ButtonChildren, ButtonProps, StyledButton, SuffixIconContainer, Button as default };
|
package/dist/ButtonGroup.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
1
|
import * as _$react from "react";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
4
4
|
import { ToggleGroupMultipleProps, ToggleGroupSingleProps } from "@radix-ui/react-toggle-group";
|
|
5
5
|
|
package/dist/Calendar.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
1
|
import { Ref } from "react";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
import { AriaCalendarProps, DateValue } from "react-aria";
|
|
4
4
|
|
|
5
5
|
//#region components/DatePicker/Calendar/Calendar.d.ts
|
package/dist/CalendarBase.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { headingMixins, paragraphMixins } from "./mixins/text.mjs";
|
|
2
2
|
import "./variables/spacing.mjs";
|
|
3
|
-
import { t as Spacer_default } from "./Spacer-
|
|
4
|
-
import { i as Paragraph } from "./Text-
|
|
5
|
-
import { t as useToggle } from "./useToggle-
|
|
3
|
+
import { t as Spacer_default } from "./Spacer-Ln3KChb5.mjs";
|
|
4
|
+
import { i as Paragraph } from "./Text-hEoPeOc9.mjs";
|
|
5
|
+
import { t as useToggle } from "./useToggle-3k3EkV8V.mjs";
|
|
6
6
|
import { Color, Spacing } from "@persona/design-tokens";
|
|
7
7
|
import styled, { css } from "styled-components";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -202,4 +202,4 @@ var Card_default = Object.assign(Card, {
|
|
|
202
202
|
//#endregion
|
|
203
203
|
export { Root as a, HeaderContainer as i, ActionsContainer as n, Title$1 as o, Header as r, TitleContainer as s, Card_default as t };
|
|
204
204
|
|
|
205
|
-
//# sourceMappingURL=Card-
|
|
205
|
+
//# sourceMappingURL=Card-CLTkZLKr.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card-BMCB9eFC.mjs","names":["Title","Spacer"],"sources":["../components/Card/Header/Header.tsx","../components/Card/Card.tsx"],"sourcesContent":["import type { ComponentPropsWithoutRef, ReactNode } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { Color, Spacing } from '@persona/design-tokens';\nimport { headingMixins, paragraphMixins } from 'design-system/mixins/text';\n\nexport interface HeaderProps {\n children: ReactNode;\n subtitle?: ReactNode;\n variant?: 'title' | 'section';\n actions?: ReactNode;\n $matchCardV2?: boolean;\n}\n\nexport const HeaderContainer = styled.div<Pick<HeaderProps, 'variant' | '$matchCardV2'>>`\n ${paragraphMixins.md};\n display: flex;\n align-items: center;\n justify-content: space-between;\n &:not(:only-child) {\n margin: 0px 0px ${Spacing[4]} 0px;\n ${({ $matchCardV2 }) =>\n $matchCardV2 &&\n css`\n margin-bottom: ${Spacing[1]};\n `}\n }\n ${({ variant }) =>\n variant === 'section' &&\n css`\n border-bottom: 1px solid ${({ theme }) => theme.color.border.primary};\n `}\n`;\n\nexport const TitleContainer = styled.div`\n display: flex;\n align-items: center;\n gap: ${Spacing[2]};\n`;\n\nexport const Title = styled.h3<Pick<HeaderProps, 'variant' | '$matchCardV2'>>`\n display: flex;\n align-items: center;\n margin: 0px;\n gap: ${Spacing[2]};\n ${({ variant }) => {\n switch (variant) {\n case 'section':\n return paragraphMixins.lgBold;\n case 'title':\n default:\n return headingMixins.sm;\n }\n }}\n ${({ $matchCardV2 }) =>\n $matchCardV2 &&\n css`\n ${headingMixins.xsm};\n `}\n`;\n\nexport const ActionsContainer = styled.div`\n color: ${({ theme }) => theme.color.text.secondary};\n display: flex;\n align-items: center;\n gap: ${Spacing[2]};\n`;\n\nconst FullDivider = styled.hr`\n border-top: 1px solid ${Color.BorderDivider};\n margin: 0;\n\n /* Use negative margin to bleed the divider out of the grid. */\n margin-left: -${Spacing[5]};\n margin-right: -${Spacing[5]};\n`;\n\nconst Header = ({\n children,\n variant,\n actions,\n subtitle,\n $matchCardV2,\n ...elemProps\n}: HeaderProps & ComponentPropsWithoutRef<'div'>) => {\n return (\n <>\n <HeaderContainer variant={variant} {...elemProps} $matchCardV2={$matchCardV2}>\n <TitleContainer>\n <Title variant={variant} $matchCardV2={$matchCardV2}>\n {children}\n </Title>\n {subtitle}\n </TitleContainer>\n <ActionsContainer>{actions}</ActionsContainer>\n </HeaderContainer>\n {$matchCardV2 && <FullDivider />}\n </>\n );\n};\n\nexport const Root = Header;\n\nexport default Header;\n","import type {\n ComponentPropsWithoutRef,\n FC,\n PropsWithChildren,\n ReactElement,\n ReactNode,\n} from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { Spacing } from '@persona/design-tokens';\nimport { ChevronDownIcon, ChevronUpIcon } from '@persona/icons';\nimport Header, { type HeaderProps } from 'design-system/components/Card/Header';\nimport Spacer from 'design-system/components/Spacer';\nimport { Paragraph } from 'design-system/components/Text';\nimport useToggle from 'design-system/lib/useToggle';\nimport { BASE } from 'design-system/variables/spacing';\n\nexport interface CardProps {\n elevated?: boolean;\n $matchCardV2?: boolean;\n}\n\n/**\n * @deprecated Use CardV2 instead\n */\nconst Card = styled('div')<CardProps>`\n border-radius: ${({ theme }) => {\n return theme.card.borderRadius;\n }};\n display: flex;\n flex-direction: column;\n margin-bottom: ${Spacing[4]};\n background-color: ${({ theme }) => theme.color.background.primary};\n font-family: ${({ theme }) => theme.text.fontFamily.base};\n ${({ elevated }) =>\n elevated &&\n css`\n box-shadow: 0px 0px 14px 2px rgba(0, 0, 0, 0.12);\n `}\n\n ${({ $matchCardV2 }) =>\n $matchCardV2 &&\n css`\n margin-bottom: 0;\n `}\n`;\n\n/**\n * To be used within cards. Provides padding and basic layout. Should not be\n * used if card's contents are edge-to-edge with no padding.\n */\nconst Body = styled('section')<{ gap?: number; padding?: Spacing; $matchCardV2?: boolean }>`\n margin: 0;\n padding: ${({ padding }) => padding ?? Spacing[5]};\n display: grid;\n grid-auto-flow: row;\n grid-gap: ${({ gap }) => (gap != null ? gap : BASE)}px;\n /**\n * Prevent grid blowout\n * https://css-tricks.com/preventing-a-grid-blowout/\n */\n grid-template-columns: minmax(0, 1fr);\n\n ${({ $matchCardV2 }) =>\n $matchCardV2 &&\n css`\n padding: ${Spacing[4]} ${Spacing[5]};\n grid-gap: ${Spacing[3]};\n `}\n`;\n\nconst IconContainer = styled('div')`\n margin-right: ${Spacing[3]};\n display: flex;\n align-items: center;\n\n > svg {\n height: 24px;\n width: 24px;\n }\n`;\n\nconst ImageWrapper = styled('div')<{ height: number }>`\n width: 100%;\n overflow: hidden;\n border-radius: ${({ theme }) => theme.card.borderRadius} ${({ theme }) => theme.card.borderRadius}\n 0px 0px;\n\n ${({ height }) => {\n return css`\n height: ${height}px;\n `;\n }};\n\n > img,\n svg {\n width: 100%;\n border-radius: ${({ theme }) => theme.card.borderRadius}\n ${({ theme }) => theme.card.borderRadius} 0px 0px;\n }\n`;\n\ninterface TitleBaseProps {\n icon?: ReactElement;\n}\n\ninterface TitleProps\n extends\n TitleBaseProps,\n Pick<HeaderProps, 'actions' | 'subtitle'>,\n Omit<ComponentPropsWithoutRef<'h3'>, 'color' | 'size'> {\n $matchCardV2?: boolean;\n}\n\n/**\n * Label to be used within cards. Note that some cards lead with a Title while\n * some others lead with a Subtitle (see below).\n */\nconst Title: FC<TitleProps> = ({ icon, children, ...elemProps }) => (\n <Header variant='title' {...elemProps}>\n {icon != null && <IconContainer>{icon}</IconContainer>}\n {children}\n </Header>\n);\n\n/**\n * Smaller label to be used within cards.\n */\nconst Subtitle = styled(Paragraph).attrs(() => ({ size: 'md' }))`\n color: ${({ theme }) => theme.color.text.tertiary};\n`;\n\nexport interface SectionProps\n extends\n Pick<HeaderProps, 'subtitle' | 'actions'>,\n Omit<ComponentPropsWithoutRef<'h3'>, 'color' | 'size'> {}\n\n/**\n * Header for section headers within a Card\n */\nconst SectionHeader = ({ children, ...elemProps }: SectionProps) => (\n <Header variant='section' {...elemProps}>\n {children}\n </Header>\n);\n\n/**\n * Wrapper for a full-width image to be used at the top of a card.\n */\n\ninterface ImageProps {\n height: number;\n children: ReactNode;\n}\n\nconst Image: FC<ImageProps> = ({ height, children, ...elemProps }) => (\n <ImageWrapper {...elemProps} height={height}>\n {children}\n </ImageWrapper>\n);\n\ninterface CollapsibleSectionProps {\n id?: string;\n defaultExpanded?: boolean;\n title: ReactNode;\n}\n\nconst CollapsibleSection: FC<PropsWithChildren<CollapsibleSectionProps>> = ({\n id,\n defaultExpanded,\n title,\n children,\n}) => {\n const [isOpen, { toggle }] = useToggle(defaultExpanded);\n\n return (\n <section>\n <div id={id} onClick={toggle}>\n <Header variant='section'>\n <HeaderIcon>\n {isOpen ? <ChevronUpIcon /> : <ChevronDownIcon />}\n <Spacer width={0.5} height={0} />\n </HeaderIcon>\n {title}\n </Header>\n </div>\n <div>\n {isOpen && (\n <>\n <Spacer height={1} />\n {children}\n </>\n )}\n </div>\n <Spacer height={1} />\n </section>\n );\n};\n\nconst HeaderIcon = styled.div`\n display: flex;\n`;\n\nexport default Object.assign(Card, {\n Title,\n SectionHeader,\n Subtitle,\n Body,\n Image,\n CollapsibleSection,\n});\n"],"mappings":";;;;;;;;;;AAcA,MAAa,kBAAkB,OAAO,GAAkD;IACpF,gBAAgB,GAAG;;;;;sBAKD,QAAQ,GAAG;OAC1B,EAAE,mBACH,gBACA,GAAG;yBACgB,QAAQ,GAAG;QAC5B;;KAEH,EAAE,cACH,YAAY,aACZ,GAAG;kCAC2B,EAAE,YAAY,MAAM,MAAM,OAAO,QAAQ;MACrE;;AAGN,MAAa,iBAAiB,OAAO,GAAG;;;SAG/B,QAAQ,GAAG;;AAGpB,MAAaA,UAAQ,OAAO,EAAiD;;;;SAIpE,QAAQ,GAAG;KACf,EAAE,cAAc;AACjB,SAAQ,SAAR;EACE,KAAK,UACH,QAAO,gBAAgB;EAEzB,QACE,QAAO,cAAc;;EAEzB;KACC,EAAE,mBACH,gBACA,GAAG;QACC,cAAc,I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AD,EAAQ,QAAQ,GAAK,CAAA;EACb,EAAA,CAAA;;AAId,MAAM,aAAa,OAAO,GAAG;;;AAI7B,IAAA,eAAe,OAAO,OAAO,MAAM;CACjC;CACA;CACA;CACA;CACA;CACA;CACD,CAAC"}
|
|
1
|
+
{"version":3,"file":"Card-CLTkZLKr.mjs","names":["Title","Spacer"],"sources":["../components/Card/Header/Header.tsx","../components/Card/Card.tsx"],"sourcesContent":["import type { ComponentPropsWithoutRef, ReactNode } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { Color, Spacing } from '@persona/design-tokens';\nimport { headingMixins, paragraphMixins } from 'design-system/mixins/text';\n\nexport interface HeaderProps {\n children: ReactNode;\n subtitle?: ReactNode;\n variant?: 'title' | 'section';\n actions?: ReactNode;\n $matchCardV2?: boolean;\n}\n\nexport const HeaderContainer = styled.div<Pick<HeaderProps, 'variant' | '$matchCardV2'>>`\n ${paragraphMixins.md};\n display: flex;\n align-items: center;\n justify-content: space-between;\n &:not(:only-child) {\n margin: 0px 0px ${Spacing[4]} 0px;\n ${({ $matchCardV2 }) =>\n $matchCardV2 &&\n css`\n margin-bottom: ${Spacing[1]};\n `}\n }\n ${({ variant }) =>\n variant === 'section' &&\n css`\n border-bottom: 1px solid ${({ theme }) => theme.color.border.primary};\n `}\n`;\n\nexport const TitleContainer = styled.div`\n display: flex;\n align-items: center;\n gap: ${Spacing[2]};\n`;\n\nexport const Title = styled.h3<Pick<HeaderProps, 'variant' | '$matchCardV2'>>`\n display: flex;\n align-items: center;\n margin: 0px;\n gap: ${Spacing[2]};\n ${({ variant }) => {\n switch (variant) {\n case 'section':\n return paragraphMixins.lgBold;\n case 'title':\n default:\n return headingMixins.sm;\n }\n }}\n ${({ $matchCardV2 }) =>\n $matchCardV2 &&\n css`\n ${headingMixins.xsm};\n `}\n`;\n\nexport const ActionsContainer = styled.div`\n color: ${({ theme }) => theme.color.text.secondary};\n display: flex;\n align-items: center;\n gap: ${Spacing[2]};\n`;\n\nconst FullDivider = styled.hr`\n border-top: 1px solid ${Color.BorderDivider};\n margin: 0;\n\n /* Use negative margin to bleed the divider out of the grid. */\n margin-left: -${Spacing[5]};\n margin-right: -${Spacing[5]};\n`;\n\nconst Header = ({\n children,\n variant,\n actions,\n subtitle,\n $matchCardV2,\n ...elemProps\n}: HeaderProps & ComponentPropsWithoutRef<'div'>) => {\n return (\n <>\n <HeaderContainer variant={variant} {...elemProps} $matchCardV2={$matchCardV2}>\n <TitleContainer>\n <Title variant={variant} $matchCardV2={$matchCardV2}>\n {children}\n </Title>\n {subtitle}\n </TitleContainer>\n <ActionsContainer>{actions}</ActionsContainer>\n </HeaderContainer>\n {$matchCardV2 && <FullDivider />}\n </>\n );\n};\n\nexport const Root = Header;\n\nexport default Header;\n","import type {\n ComponentPropsWithoutRef,\n FC,\n PropsWithChildren,\n ReactElement,\n ReactNode,\n} from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { Spacing } from '@persona/design-tokens';\nimport { ChevronDownIcon, ChevronUpIcon } from '@persona/icons';\nimport Header, { type HeaderProps } from 'design-system/components/Card/Header';\nimport Spacer from 'design-system/components/Spacer';\nimport { Paragraph } from 'design-system/components/Text';\nimport useToggle from 'design-system/lib/useToggle';\nimport { BASE } from 'design-system/variables/spacing';\n\nexport interface CardProps {\n elevated?: boolean;\n $matchCardV2?: boolean;\n}\n\n/**\n * @deprecated Use CardV2 instead\n */\nconst Card = styled('div')<CardProps>`\n border-radius: ${({ theme }) => {\n return theme.card.borderRadius;\n }};\n display: flex;\n flex-direction: column;\n margin-bottom: ${Spacing[4]};\n background-color: ${({ theme }) => theme.color.background.primary};\n font-family: ${({ theme }) => theme.text.fontFamily.base};\n ${({ elevated }) =>\n elevated &&\n css`\n box-shadow: 0px 0px 14px 2px rgba(0, 0, 0, 0.12);\n `}\n\n ${({ $matchCardV2 }) =>\n $matchCardV2 &&\n css`\n margin-bottom: 0;\n `}\n`;\n\n/**\n * To be used within cards. Provides padding and basic layout. Should not be\n * used if card's contents are edge-to-edge with no padding.\n */\nconst Body = styled('section')<{ gap?: number; padding?: Spacing; $matchCardV2?: boolean }>`\n margin: 0;\n padding: ${({ padding }) => padding ?? Spacing[5]};\n display: grid;\n grid-auto-flow: row;\n grid-gap: ${({ gap }) => (gap != null ? gap : BASE)}px;\n /**\n * Prevent grid blowout\n * https://css-tricks.com/preventing-a-grid-blowout/\n */\n grid-template-columns: minmax(0, 1fr);\n\n ${({ $matchCardV2 }) =>\n $matchCardV2 &&\n css`\n padding: ${Spacing[4]} ${Spacing[5]};\n grid-gap: ${Spacing[3]};\n `}\n`;\n\nconst IconContainer = styled('div')`\n margin-right: ${Spacing[3]};\n display: flex;\n align-items: center;\n\n > svg {\n height: 24px;\n width: 24px;\n }\n`;\n\nconst ImageWrapper = styled('div')<{ height: number }>`\n width: 100%;\n overflow: hidden;\n border-radius: ${({ theme }) => theme.card.borderRadius} ${({ theme }) => theme.card.borderRadius}\n 0px 0px;\n\n ${({ height }) => {\n return css`\n height: ${height}px;\n `;\n }};\n\n > img,\n svg {\n width: 100%;\n border-radius: ${({ theme }) => theme.card.borderRadius}\n ${({ theme }) => theme.card.borderRadius} 0px 0px;\n }\n`;\n\ninterface TitleBaseProps {\n icon?: ReactElement;\n}\n\ninterface TitleProps\n extends\n TitleBaseProps,\n Pick<HeaderProps, 'actions' | 'subtitle'>,\n Omit<ComponentPropsWithoutRef<'h3'>, 'color' | 'size'> {\n $matchCardV2?: boolean;\n}\n\n/**\n * Label to be used within cards. Note that some cards lead with a Title while\n * some others lead with a Subtitle (see below).\n */\nconst Title: FC<TitleProps> = ({ icon, children, ...elemProps }) => (\n <Header variant='title' {...elemProps}>\n {icon != null && <IconContainer>{icon}</IconContainer>}\n {children}\n </Header>\n);\n\n/**\n * Smaller label to be used within cards.\n */\nconst Subtitle = styled(Paragraph).attrs(() => ({ size: 'md' }))`\n color: ${({ theme }) => theme.color.text.tertiary};\n`;\n\nexport interface SectionProps\n extends\n Pick<HeaderProps, 'subtitle' | 'actions'>,\n Omit<ComponentPropsWithoutRef<'h3'>, 'color' | 'size'> {}\n\n/**\n * Header for section headers within a Card\n */\nconst SectionHeader = ({ children, ...elemProps }: SectionProps) => (\n <Header variant='section' {...elemProps}>\n {children}\n </Header>\n);\n\n/**\n * Wrapper for a full-width image to be used at the top of a card.\n */\n\ninterface ImageProps {\n height: number;\n children: ReactNode;\n}\n\nconst Image: FC<ImageProps> = ({ height, children, ...elemProps }) => (\n <ImageWrapper {...elemProps} height={height}>\n {children}\n </ImageWrapper>\n);\n\ninterface CollapsibleSectionProps {\n id?: string;\n defaultExpanded?: boolean;\n title: ReactNode;\n}\n\nconst CollapsibleSection: FC<PropsWithChildren<CollapsibleSectionProps>> = ({\n id,\n defaultExpanded,\n title,\n children,\n}) => {\n const [isOpen, { toggle }] = useToggle(defaultExpanded);\n\n return (\n <section>\n <div id={id} onClick={toggle}>\n <Header variant='section'>\n <HeaderIcon>\n {isOpen ? <ChevronUpIcon /> : <ChevronDownIcon />}\n <Spacer width={0.5} height={0} />\n </HeaderIcon>\n {title}\n </Header>\n </div>\n <div>\n {isOpen && (\n <>\n <Spacer height={1} />\n {children}\n </>\n )}\n </div>\n <Spacer height={1} />\n </section>\n );\n};\n\nconst HeaderIcon = styled.div`\n display: flex;\n`;\n\nexport default Object.assign(Card, {\n Title,\n SectionHeader,\n Subtitle,\n Body,\n Image,\n CollapsibleSection,\n});\n"],"mappings":";;;;;;;;;;AAcA,MAAa,kBAAkB,OAAO,GAAkD;IACpF,gBAAgB,GAAG;;;;;sBAKD,QAAQ,GAAG;OAC1B,EAAE,mBACH,gBACA,GAAG;yBACgB,QAAQ,GAAG;QAC5B;;KAEH,EAAE,cACH,YAAY,aACZ,GAAG;kCAC2B,EAAE,YAAY,MAAM,MAAM,OAAO,QAAQ;MACrE;;AAGN,MAAa,iBAAiB,OAAO,GAAG;;;SAG/B,QAAQ,GAAG;;AAGpB,MAAaA,UAAQ,OAAO,EAAiD;;;;SAIpE,QAAQ,GAAG;KACf,EAAE,c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G,UACC,qBAAA,UAAA,EAAA,UAAA,CACE,oBAACA,gBAAD,EAAQ,QAAQ,GAAK,CAAA,EACpB,SACA,EAAA,CAAA,EAED,CAAA;EACN,oBAACA,gBAAD,EAAQ,QAAQ,GAAK,CAAA;EACb,EAAA,CAAA;;AAId,MAAM,aAAa,OAAO,GAAG;;;AAI7B,IAAA,eAAe,OAAO,OAAO,MAAM;CACjC;CACA;CACA;CACA;CACA;CACA;CACD,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as ParagraphProps, u as SpanProps } from "./Text-
|
|
2
|
-
import { i as HeaderProps } from "./Header-
|
|
1
|
+
import { c as ParagraphProps, u as SpanProps } from "./Text-CfIFUyHt.mjs";
|
|
2
|
+
import { i as HeaderProps } from "./Header-OLZuv8fF.mjs";
|
|
3
3
|
import { Spacing } from "@persona/design-tokens";
|
|
4
4
|
import * as _$styled_components0 from "styled-components";
|
|
5
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
5
|
import { ComponentPropsWithoutRef, FC, PropsWithChildren, ReactElement, ReactNode } from "react";
|
|
6
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
7
7
|
import * as _$hoist_non_react_statics0 from "hoist-non-react-statics";
|
|
8
8
|
|
|
9
9
|
//#region components/Card/Card.d.ts
|
|
@@ -49,4 +49,4 @@ declare const _default: string & _$styled_components0.StyledComponentBase<"div",
|
|
|
49
49
|
};
|
|
50
50
|
//#endregion
|
|
51
51
|
export { SectionProps as n, _default as r, CardProps as t };
|
|
52
|
-
//# sourceMappingURL=Card-
|
|
52
|
+
//# sourceMappingURL=Card-DxFajLnx.d.mts.map
|
package/dist/Card.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as SectionProps, r as _default, t as CardProps } from "./Card-
|
|
1
|
+
import { n as SectionProps, r as _default, t as CardProps } from "./Card-DxFajLnx.mjs";
|
|
2
2
|
export { CardProps, SectionProps, _default as default };
|
package/dist/Card2.d.mts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { focusStyle } from "./mixins/focus.mjs";
|
|
2
2
|
import "./variables/transitions.mjs";
|
|
3
|
-
import { t as HStack } from "./Stack-Bl54WmhY.mjs";
|
|
4
3
|
import ConfigContext from "./lib/ConfigContext.mjs";
|
|
5
4
|
import { HeadlessAriaButton } from "./lib/HeadlessAriaButton.mjs";
|
|
6
5
|
import { TruncatedText } from "./lib/TruncatedText.mjs";
|
|
7
|
-
import { i as Paragraph, n as Heading$1 } from "./Text-
|
|
8
|
-
import { a as Tooltip } from "./Tooltip-
|
|
6
|
+
import { i as Paragraph, n as Heading$1 } from "./Text-hEoPeOc9.mjs";
|
|
7
|
+
import { a as Tooltip } from "./Tooltip-CDvOu1UN.mjs";
|
|
9
8
|
import { Z_INDICES } from "./lib/zindex.mjs";
|
|
10
|
-
import {
|
|
11
|
-
import { n as
|
|
12
|
-
import { t as
|
|
13
|
-
import {
|
|
14
|
-
import { t as
|
|
9
|
+
import { t as HStack } from "./Stack-ckRN7LrP.mjs";
|
|
10
|
+
import { n as Button$1, t as IconButton } from "./IconButton-DC4rh6ow.mjs";
|
|
11
|
+
import { t as intersperse } from "./intersperse-yd3oMrQl.mjs";
|
|
12
|
+
import { n as DropdownMenu_default } from "./DropdownMenu-DZIFSJXD.mjs";
|
|
13
|
+
import { t as DropdownButton } from "./DropdownButton-DGgfGW_o.mjs";
|
|
14
|
+
import { t as LoadingShimmer } from "./LoadingShimmer-BPYPtFE1.mjs";
|
|
15
15
|
import { Color, Spacing, Typography } from "@persona/design-tokens";
|
|
16
16
|
import styled, { css } from "styled-components";
|
|
17
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
18
|
-
import { Disclosure, DisclosurePanel } from "react-aria-components";
|
|
19
17
|
import { createContext, useContext } from "react";
|
|
18
|
+
import { Disclosure, DisclosurePanel } from "react-aria-components";
|
|
19
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
20
20
|
import { ChevronDownIcon, MoreIcon } from "@persona/icons";
|
|
21
21
|
import { ErrorBoundary } from "react-error-boundary";
|
|
22
22
|
//#region components/CardV2/SectionHeading.tsx
|
|
@@ -162,7 +162,7 @@ const SectionHeading = ({ isTopSection, sectionHasContent, hasFooter, loading, t
|
|
|
162
162
|
children: loading ? /* @__PURE__ */ jsx(CardLoadingShimmer$1, {
|
|
163
163
|
height: "24px",
|
|
164
164
|
width: "200px"
|
|
165
|
-
}) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
165
|
+
}) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
166
166
|
/* @__PURE__ */ jsx(HeaderButton, {
|
|
167
167
|
slot: "trigger",
|
|
168
168
|
isDisabled: !toggle,
|
|
@@ -283,7 +283,7 @@ const Section = ({ children, isTopSection, heading, footer, footerContent, loadi
|
|
|
283
283
|
return /* @__PURE__ */ jsx(StyledDisclosure, {
|
|
284
284
|
defaultExpanded: !defaultCollapsed,
|
|
285
285
|
$fullHeight: fullHeight,
|
|
286
|
-
children: ({ isExpanded, state }) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
286
|
+
children: ({ isExpanded, state }) => /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
287
287
|
heading && /* @__PURE__ */ jsx(MaybeStickyContainer, {
|
|
288
288
|
$enabled: sticky,
|
|
289
289
|
children: /* @__PURE__ */ jsx(SectionHeading, {
|
|
@@ -316,7 +316,7 @@ const Section = ({ children, isTopSection, heading, footer, footerContent, loadi
|
|
|
316
316
|
}), /* @__PURE__ */ jsx(CardLoadingShimmer, {
|
|
317
317
|
height: "16px",
|
|
318
318
|
width: "120px"
|
|
319
|
-
})] }) : /* @__PURE__ */ jsxs(Fragment, { children: [footer && /* @__PURE__ */ jsx(FooterParagraph, {
|
|
319
|
+
})] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [footer && /* @__PURE__ */ jsx(FooterParagraph, {
|
|
320
320
|
size: "sm",
|
|
321
321
|
children: /* @__PURE__ */ jsx(HStack, {
|
|
322
322
|
spacing: Spacing[1],
|
|
@@ -395,9 +395,9 @@ const Card = ({ children, errored, erroredProps, containerProps, sticky = true,
|
|
|
395
395
|
children: errorFallback
|
|
396
396
|
}),
|
|
397
397
|
onError: erroredProps?.onError ?? ((error) => captureException(error)),
|
|
398
|
-
children: isStacked ? /* @__PURE__ */ jsx(Fragment, { children: errored ? /* @__PURE__ */ jsx(Fragment, { children: errorFallback }) : /* @__PURE__ */ jsx(Fragment, { children: section }) }) : /* @__PURE__ */ jsx(CardContainer, {
|
|
398
|
+
children: isStacked ? /* @__PURE__ */ jsx(Fragment$1, { children: errored ? /* @__PURE__ */ jsx(Fragment$1, { children: errorFallback }) : /* @__PURE__ */ jsx(Fragment$1, { children: section }) }) : /* @__PURE__ */ jsx(CardContainer, {
|
|
399
399
|
...containerProps,
|
|
400
|
-
children: errored ? /* @__PURE__ */ jsx(Fragment, { children: errorFallback }) : /* @__PURE__ */ jsx(Fragment, { children: section })
|
|
400
|
+
children: errored ? /* @__PURE__ */ jsx(Fragment$1, { children: errorFallback }) : /* @__PURE__ */ jsx(Fragment$1, { children: section })
|
|
401
401
|
})
|
|
402
402
|
});
|
|
403
403
|
};
|
|
@@ -408,4 +408,4 @@ var Card_default = Object.assign(Card, {
|
|
|
408
408
|
//#endregion
|
|
409
409
|
export { Card_default as t };
|
|
410
410
|
|
|
411
|
-
//# sourceMappingURL=CardV2-
|
|
411
|
+
//# sourceMappingURL=CardV2-m9yOInMU.mjs.map
|