@persona/design-system 0.7.2 → 0.8.0
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 +32 -0
- package/dist/Accordion.d.mts +1 -1
- package/dist/AccordionItem.d.mts +1 -1
- package/dist/{Action-Cyo6KCsS.d.mts → Action-B-AiHknZ.d.mts} +3 -3
- package/dist/Action.d.mts +1 -1
- package/dist/AdvancedFilterRuleRow.d.mts +2 -2
- package/dist/AdvancedFilterRulesPopover.d.mts +2 -2
- package/dist/ArrayValueControl.d.mts +1 -1
- package/dist/Attribute.d.mts +3 -3
- package/dist/{Badge-BD0Ut46g.mjs → Badge-COqUjFQu.mjs} +2 -2
- package/dist/{Badge-BD0Ut46g.mjs.map → Badge-COqUjFQu.mjs.map} +1 -1
- package/dist/BooleanValueControl.d.mts +1 -1
- package/dist/{Breadcrumb-CYXkrKXl.d.mts → Breadcrumb-DRFY46ZW.d.mts} +1 -1
- package/dist/Breadcrumb.d.mts +1 -1
- package/dist/{Breadcrumbs-CP7eUYUy.d.mts → Breadcrumbs-DUSbT1I7.d.mts} +2 -2
- package/dist/{Breadcrumbs-CrXfUK1V.mjs → Breadcrumbs-DXS7rU7_.mjs} +5 -5
- package/dist/{Breadcrumbs-CrXfUK1V.mjs.map → Breadcrumbs-DXS7rU7_.mjs.map} +1 -1
- package/dist/Breadcrumbs.d.mts +1 -1
- package/dist/{Button-Dhiund3f.d.mts → Button-xZ6DC5XC.d.mts} +4 -4
- package/dist/Button.d.mts +1 -1
- package/dist/{Calendar-CMeIZ0BO.d.mts → Calendar-dPmo2dkj.d.mts} +1 -1
- package/dist/Calendar.d.mts +1 -1
- package/dist/CalendarBase.d.mts +1 -1
- package/dist/{Card-DCYB_mtR.d.mts → Card-CUeM8Lh8.d.mts} +3 -3
- package/dist/Card.d.mts +1 -1
- package/dist/{CardV2-M3o4BELp.mjs → CardV2-D9p7D7jX.mjs} +9 -7
- package/dist/{CardV2-M3o4BELp.mjs.map → CardV2-D9p7D7jX.mjs.map} +1 -1
- package/dist/{Checkbox-AjL7ucoR.mjs → Checkbox-DQynkc_I.mjs} +3 -3
- package/dist/{Checkbox-AjL7ucoR.mjs.map → Checkbox-DQynkc_I.mjs.map} +1 -1
- package/dist/{Checkbox-fWj7GkBl.d.mts → Checkbox-DoJpxPEz.d.mts} +1 -1
- package/dist/Checkbox.d.mts +1 -1
- package/dist/CheckboxGroupField.d.mts +1 -1
- package/dist/ChoicesValueControl.d.mts +1 -1
- package/dist/{Combobox-C2b9u955.mjs → Combobox-C_kCY3P3.mjs} +23 -10
- package/dist/Combobox-C_kCY3P3.mjs.map +1 -0
- package/dist/{Combobox-CC-Osr57.d.mts → Combobox-D7hyf-jA.d.mts} +3 -3
- package/dist/Combobox.d.mts +2 -2
- package/dist/{ComboboxBase-Evo0FRxP.d.mts → ComboboxBase-BMCY6O7Y.d.mts} +8 -5
- package/dist/ComboboxBase.d.mts +1 -1
- package/dist/{ComboboxMultiSelect-CvAc0FT3.d.mts → ComboboxMultiSelect-L0KYMkmm.d.mts} +2 -2
- package/dist/ComboboxMultiSelect.d.mts +1 -1
- package/dist/{ComboboxSingleSelect-CBm7x0oh.d.mts → ComboboxSingleSelect-v5oNrJ7M.d.mts} +4 -4
- package/dist/ComboboxSingleSelect.d.mts +1 -1
- package/dist/{CompactBar-D_2qMK4y.d.mts → CompactBar-DjFaUAsN.d.mts} +4 -4
- package/dist/CompactBar.d.mts +1 -1
- package/dist/{ConfigFormGroup-Cz7GeTYd.mjs → ConfigFormGroup-DLOZOuLf.mjs} +2 -2
- package/dist/{ConfigFormGroup-Cz7GeTYd.mjs.map → ConfigFormGroup-DLOZOuLf.mjs.map} +1 -1
- package/dist/{ControlBar-B7j9sOr9.d.mts → ControlBar-Cegjxa6-.d.mts} +7 -2
- package/dist/ControlBar.d.mts +1 -1
- package/dist/DataTable.d.mts +4 -3
- package/dist/{DateField-BamAk9_w.d.mts → DateField-Dk5ykLdr.d.mts} +2 -2
- package/dist/DateField.d.mts +1 -1
- package/dist/{DatePicker-IgiUI3Wj.mjs → DatePicker-C7z1yodK.mjs} +77 -42
- package/dist/DatePicker-C7z1yodK.mjs.map +1 -0
- package/dist/{DatePicker-C3xNSkPG.d.mts → DatePicker-Dtvv0V45.d.mts} +2 -2
- package/dist/DatePicker.d.mts +1 -1
- package/dist/{DateRangePicker-C4QKMo2a.d.mts → DateRangePicker-HPYsa4wC.d.mts} +3 -3
- package/dist/DateRangePicker.d.mts +1 -1
- package/dist/DateRangeValueControl.d.mts +5 -3
- package/dist/DateValueControl.d.mts +8 -5
- package/dist/{DropdownButton-BWiXLMfD.mjs → DropdownButton-CQrFHOIW.mjs} +3 -3
- package/dist/{DropdownButton-BWiXLMfD.mjs.map → DropdownButton-CQrFHOIW.mjs.map} +1 -1
- package/dist/DropdownButton.d.mts +2 -2
- package/dist/{DropdownMenu-DL5ye-0m.d.mts → DropdownMenu-D1qvgGTZ.d.mts} +2 -2
- package/dist/{DropdownMenu-CuKSNxc9.mjs → DropdownMenu-rm9Nnxn7.mjs} +7 -2
- package/dist/DropdownMenu-rm9Nnxn7.mjs.map +1 -0
- package/dist/DropdownMenu.d.mts +1 -1
- package/dist/{ErrorProps-BA0-m_Wp.d.mts → ErrorProps-B8-Mqf1W.d.mts} +1 -1
- package/dist/ErrorProps.d.mts +1 -1
- package/dist/{FieldRegistry-bKxrF1gC.d.mts → FieldRegistry-0LmSQ-jc.d.mts} +2 -2
- package/dist/FieldRegistry.d.mts +1 -1
- package/dist/{FilterBar-DhlBLWxw.d.mts → FilterBar-BMM4Swbt.d.mts} +11 -4
- package/dist/FilterBar.d.mts +1 -1
- package/dist/FilterPickerMenu.d.mts +2 -2
- package/dist/FilterPill.d.mts +1 -1
- package/dist/FilterPopover.d.mts +1 -1
- package/dist/FloatValueControl.d.mts +1 -1
- package/dist/{FormControl-DnfZTli_.mjs → FormControl-DXrxoJLl.mjs} +3 -3
- package/dist/{FormControl-DnfZTli_.mjs.map → FormControl-DXrxoJLl.mjs.map} +1 -1
- package/dist/{FormControl-D5xyPkST.d.mts → FormControl-Dg8doZq2.d.mts} +2 -2
- package/dist/FormControl.d.mts +1 -1
- package/dist/FormControlLabel.d.mts +1 -1
- package/dist/{FormField-BJZUj6jg.d.mts → FormField-BeLigf9j.d.mts} +2 -2
- package/dist/{FormField-74TPV8-8.mjs → FormField-Crp3F-hv.mjs} +16 -16
- package/dist/{FormField-74TPV8-8.mjs.map → FormField-Crp3F-hv.mjs.map} +1 -1
- package/dist/FormField.d.mts +1 -1
- package/dist/{Grid-DOyYYsvk.mjs → Grid-eMLuyRzV.mjs} +1 -1
- package/dist/{Grid-DOyYYsvk.mjs.map → Grid-eMLuyRzV.mjs.map} +1 -1
- package/dist/{Header-BqEKkEp5.d.mts → Header-DxJ6TfPw.d.mts} +1 -1
- package/dist/Header.d.mts +1 -1
- package/dist/{HelperTooltip-mOVSuEB8.d.mts → HelperTooltip-DcyrpEZI.d.mts} +2 -2
- package/dist/HelperTooltip.d.mts +1 -1
- package/dist/{HoverCopyableField-CN3gl0ny.mjs → HoverCopyableField-12bBuG-d.mjs} +3 -3
- package/dist/{HoverCopyableField-CN3gl0ny.mjs.map → HoverCopyableField-12bBuG-d.mjs.map} +1 -1
- package/dist/{IconButton-CjPFhpVG.d.mts → IconButton-BUMMN-gH.d.mts} +2 -2
- package/dist/{IconButton-CqTPMhjV.mjs → IconButton-CCLMYWVN.mjs} +1 -1
- package/dist/{IconButton-CqTPMhjV.mjs.map → IconButton-CCLMYWVN.mjs.map} +1 -1
- package/dist/IconButton.d.mts +1 -1
- package/dist/ImageTile.d.mts +1 -1
- package/dist/InlineCombobox.d.mts +1 -1
- package/dist/InlineInput.d.mts +1 -1
- package/dist/{Input-CZ_6KWDN.d.mts → Input-2N2e5JCf.d.mts} +3 -3
- package/dist/{Input-C_3QwAAt.mjs → Input-Cl4o41k4.mjs} +7 -3
- package/dist/Input-Cl4o41k4.mjs.map +1 -0
- package/dist/Input.d.mts +1 -1
- package/dist/{InputProps-lag6BM5h.d.mts → InputProps-TWzig3QO.d.mts} +2 -2
- package/dist/InputProps.d.mts +1 -1
- package/dist/IntegerValueControl.d.mts +1 -1
- package/dist/Link-I9Bklen-.mjs +79 -0
- package/dist/Link-I9Bklen-.mjs.map +1 -0
- package/dist/Link.d.mts +1 -1
- package/dist/{ListBox-nYAdYVQx.d.mts → ListBox-BcoXOt73.d.mts} +3 -3
- package/dist/{ListBox-D4j4LCT3.mjs → ListBox-sqeLBiKS.mjs} +33 -16
- package/dist/ListBox-sqeLBiKS.mjs.map +1 -0
- package/dist/ListBox.d.mts +1 -1
- package/dist/ListBoxField.d.mts +2 -2
- package/dist/{LoadingShimmer-Dizk2sZu.mjs → LoadingShimmer-dRSkdlqD.mjs} +13 -8
- package/dist/LoadingShimmer-dRSkdlqD.mjs.map +1 -0
- package/dist/LoadingShimmer.d.mts +1 -1
- package/dist/{LogicRow-k4ZPtjN0.d.mts → LogicRow-DXywXdYt.d.mts} +3 -3
- package/dist/LogicRow.d.mts +1 -1
- package/dist/MaskedInput.d.mts +1 -1
- package/dist/{Menu-Bu7-KBhp.d.mts → Menu-BekLwm8w.d.mts} +3 -3
- package/dist/{Menu-Cd6oxjAe.mjs → Menu-CwlI7BMN.mjs} +1 -1
- package/dist/{Menu-Cd6oxjAe.mjs.map → Menu-CwlI7BMN.mjs.map} +1 -1
- package/dist/Menu.d.mts +1 -1
- package/dist/{Modal-BN0K8QXi.mjs → Modal-CMiFcXC9.mjs} +6 -4
- package/dist/Modal-CMiFcXC9.mjs.map +1 -0
- package/dist/{Modal-Dwq-QBw_.d.mts → Modal-ymxlGYKt.d.mts} +2 -2
- package/dist/Modal.d.mts +1 -1
- package/dist/{PageHeader-BTtm3hRQ.mjs → PageHeader-D_0p7UK_.mjs} +2 -2
- package/dist/{PageHeader-BTtm3hRQ.mjs.map → PageHeader-D_0p7UK_.mjs.map} +1 -1
- package/dist/PageHeader.d.mts +1 -1
- package/dist/{PageSelector-CeGC84N1.d.mts → PageSelector-Bxulu6vU.d.mts} +3 -3
- package/dist/PageSelector.d.mts +1 -1
- package/dist/{Pagination-CPd4mSnw.mjs → Pagination-Co9CfyFQ.mjs} +5 -5
- package/dist/{Pagination-CPd4mSnw.mjs.map → Pagination-Co9CfyFQ.mjs.map} +1 -1
- package/dist/{Pagination-H-CcXrCD.d.mts → Pagination-Dg-4O7F7.d.mts} +2 -2
- package/dist/Pagination.d.mts +1 -1
- package/dist/{Pii-Dz4woKd8.mjs → Pii-JGV9gP95.mjs} +2 -2
- package/dist/{Pii-Dz4woKd8.mjs.map → Pii-JGV9gP95.mjs.map} +1 -1
- package/dist/{PillShell-BQC-k7Rl.d.mts → PillShell-BA7KK1zS.d.mts} +2 -2
- package/dist/PillShell.d.mts +1 -1
- package/dist/{Popover-opVa9Xhc.mjs → Popover-ZAj03lws.mjs} +15 -2
- package/dist/Popover-ZAj03lws.mjs.map +1 -0
- package/dist/{ProgressIndicator-3A4Aqci6.mjs → ProgressIndicator-CQg08vuA.mjs} +3 -3
- package/dist/ProgressIndicator-CQg08vuA.mjs.map +1 -0
- package/dist/{ProgressIndicator-DbOLOaxJ.d.mts → ProgressIndicator-D85HQGSx.d.mts} +1 -1
- package/dist/ProgressIndicator.d.mts +1 -1
- package/dist/{PseudoClassProps-CHtBNv8B.d.mts → PseudoClassProps-BHs8TX_3.d.mts} +1 -1
- package/dist/PseudoClassProps.d.mts +1 -1
- package/dist/{Radio-Cxt89w8s.mjs → Radio-CYV290JI.mjs} +2 -2
- package/dist/{Radio-Cxt89w8s.mjs.map → Radio-CYV290JI.mjs.map} +1 -1
- package/dist/{RadioGroup-BjrfVPZQ.d.mts → RadioGroup-Cq3KV1TN.d.mts} +1 -1
- package/dist/{RadioGroup-B6Cg1kdm.mjs → RadioGroup-lWMMtu9V.mjs} +2 -2
- package/dist/{RadioGroup-B6Cg1kdm.mjs.map → RadioGroup-lWMMtu9V.mjs.map} +1 -1
- package/dist/RadioGroup.d.mts +1 -1
- package/dist/{RangeCalendar-CPnLaM-J.d.mts → RangeCalendar-Mh7h74Tp.d.mts} +2 -2
- package/dist/RangeCalendar.d.mts +1 -1
- package/dist/RangeCalendarPresets.d.mts +1 -1
- package/dist/{RouterContext-CbvHIl4K.d.mts → RouterContext-B3IU1jb0.d.mts} +2 -2
- package/dist/RouterContext.d.mts +1 -1
- package/dist/{RouterLink-v9AG9fYa.d.mts → RouterLink-CwAqTLC2.d.mts} +2 -2
- package/dist/RouterLink.d.mts +1 -1
- package/dist/RuleEditorFields.d.mts +2 -2
- package/dist/RulesPill.d.mts +1 -1
- package/dist/{SearchInput-CIjwmT8R.d.mts → SearchInput-BGyUUcoz.d.mts} +2 -2
- package/dist/SearchInput.d.mts +1 -1
- package/dist/SectionHeading.d.mts +1 -1
- package/dist/{SegmentedControl-BcwfLuHA.mjs → SegmentedControl-BEbIcV3g.mjs} +3 -3
- package/dist/SegmentedControl-BEbIcV3g.mjs.map +1 -0
- package/dist/{SegmentedControl-Crr_aHAs.d.mts → SegmentedControl-DgDabSgr.d.mts} +1 -1
- package/dist/SegmentedControl.d.mts +1 -1
- package/dist/{Select-CJQeuCiF.d.mts → Select-wqTtGyga.d.mts} +3 -3
- package/dist/{Select-BstCz8P1.mjs → Select-yC2t_gZb.mjs} +10 -8
- package/dist/Select-yC2t_gZb.mjs.map +1 -0
- package/dist/Select.d.mts +1 -1
- package/dist/{Spinner-DplDSBqf.mjs → Spinner-BlAg8_OX.mjs} +1 -1
- package/dist/{Spinner-DplDSBqf.mjs.map → Spinner-BlAg8_OX.mjs.map} +1 -1
- package/dist/{Stack-ChsImaEY.mjs → Stack-Bkn0TUDe.mjs} +1 -1
- package/dist/{Stack-ChsImaEY.mjs.map → Stack-Bkn0TUDe.mjs.map} +1 -1
- package/dist/{Stack-RVptVTVi.d.mts → Stack-CYqjBXe8.d.mts} +1 -1
- package/dist/Stack.d.mts +1 -1
- package/dist/StatusIndicator-DT2zNbkp.mjs +315 -0
- package/dist/StatusIndicator-DT2zNbkp.mjs.map +1 -0
- package/dist/{Sticker-C3Eb13OQ.mjs → Sticker-BLbgJxcH.mjs} +5 -8
- package/dist/Sticker-BLbgJxcH.mjs.map +1 -0
- package/dist/{Sticker-BVX38LKi.d.mts → Sticker-BmyKaxwx.d.mts} +4 -4
- package/dist/Sticker.d.mts +1 -1
- package/dist/StringValueControl.d.mts +1 -1
- package/dist/Tab.d.mts +1 -1
- package/dist/{TabBar-BepWbJHz.mjs → TabBar-Bj84q1Mr.mjs} +4 -7
- package/dist/{TabBar-BepWbJHz.mjs.map → TabBar-Bj84q1Mr.mjs.map} +1 -1
- package/dist/{Table-DFiSWroB.d.mts → Table-DhdHUQ8V.d.mts} +1 -1
- package/dist/{Table-B1gRr2XT.mjs → Table-WqNfjasd.mjs} +22 -3
- package/dist/Table-WqNfjasd.mjs.map +1 -0
- package/dist/Table.d.mts +1 -1
- package/dist/{TableBody-Di9JYHDN.d.mts → TableBody-qoSvQDds.d.mts} +1 -1
- package/dist/TableBody.d.mts +1 -1
- package/dist/{TableBox-DAQ3Plqx.mjs → TableBox-obl64W5Y.mjs} +22 -17
- package/dist/TableBox-obl64W5Y.mjs.map +1 -0
- package/dist/TableBox.d.mts +2 -2
- package/dist/{TableBoxCell-D6h1X5ph.d.mts → TableBoxCell-DzYMx4Ju.d.mts} +6 -6
- package/dist/TableBoxCell.d.mts +1 -1
- package/dist/TableBoxField.d.mts +3 -3
- package/dist/{TableBoxRow-C6l6J4mq.d.mts → TableBoxRow-B4rFCvWK.d.mts} +3 -3
- package/dist/TableBoxRow.d.mts +1 -1
- package/dist/{TableBoxRowActions-CsLN1b1J.d.mts → TableBoxRowActions-qMKcVuTL.d.mts} +2 -2
- package/dist/TableBoxRowActions.d.mts +1 -1
- package/dist/{TableCell-WSDXw79Q.d.mts → TableCell-CGPQRc5g.d.mts} +2 -2
- package/dist/TableCell.d.mts +1 -1
- package/dist/{TableControls-BxuPCUQS.mjs → TableControls-RS_ozBsI.mjs} +207 -66
- package/dist/TableControls-RS_ozBsI.mjs.map +1 -0
- package/dist/{TableControls-cswMgBAr.d.mts → TableControls-WP78qtET.d.mts} +4 -3
- package/dist/TableControls.d.mts +1 -1
- package/dist/{TableControlsContext-Cbh8wear.d.mts → TableControlsContext-DZIZSyfX.d.mts} +2 -2
- package/dist/TableControlsContext.d.mts +1 -1
- package/dist/{TableHead-CkL1fEg2.d.mts → TableHead-36j-_oyn.d.mts} +1 -1
- package/dist/TableHead.d.mts +1 -1
- package/dist/{TableHeaderCell-K9Ry6YqO.d.mts → TableHeaderCell-C7gp9j1X.d.mts} +1 -1
- package/dist/TableHeaderCell.d.mts +1 -1
- package/dist/{TableLayout-CYRGIFEl.d.mts → TableLayout-CQqIV0vj.d.mts} +1 -1
- package/dist/TableLayout.d.mts +1 -1
- package/dist/{TableRow-DMHlo1eg.d.mts → TableRow-BJZM8I8i.d.mts} +2 -2
- package/dist/TableRow.d.mts +1 -1
- package/dist/TableTH.d.mts +1 -1
- package/dist/{TableViewConfigurationDropdown-BRbOcVNc.d.mts → TableViewConfigurationDropdown-Dwy_9FBz.d.mts} +2 -2
- package/dist/TableViewConfigurationDropdown.d.mts +1 -1
- package/dist/{TechnicalSticker-_LtE-PRY.mjs → TechnicalSticker-CL0zkOAj.mjs} +1 -1
- package/dist/{TechnicalSticker-_LtE-PRY.mjs.map → TechnicalSticker-CL0zkOAj.mjs.map} +1 -1
- package/dist/{Text-B69gp3X_.d.mts → Text-DbtTa83E.d.mts} +3 -3
- package/dist/Text.d.mts +1 -1
- package/dist/{TextArea-Cjsdl07-.d.mts → TextArea-CbxF6u7z.d.mts} +2 -2
- package/dist/{TextArea-CcxltuBh.mjs → TextArea-CfZr5Sk4.mjs} +2 -2
- package/dist/{TextArea-CcxltuBh.mjs.map → TextArea-CfZr5Sk4.mjs.map} +1 -1
- package/dist/TextArea.d.mts +1 -1
- package/dist/{TextUnderlineTooltip-DDzKLCeX.d.mts → TextUnderlineTooltip-BgLQuK38.d.mts} +2 -2
- package/dist/TextUnderlineTooltip.d.mts +1 -1
- package/dist/Tile.d.mts +1 -1
- package/dist/Toast.d.mts +1 -1
- package/dist/{Toggle-B5sSdb_q.d.mts → Toggle-BYMLrPXk.d.mts} +1 -1
- package/dist/{Toggle-DWbJOwf3.mjs → Toggle-D4ZaUcVt.mjs} +9 -4
- package/dist/Toggle-D4ZaUcVt.mjs.map +1 -0
- package/dist/Toggle.d.mts +1 -1
- package/dist/{Tooltip-x1pFf-Mj.d.mts → Tooltip-4pshzB_i.d.mts} +2 -2
- package/dist/Tooltip.d.mts +1 -1
- package/dist/{TruncatedText-BE8FuEQm.d.mts → TruncatedText-O7hE3w0O.d.mts} +1 -1
- package/dist/VersionHistory.d.mts +23 -0
- package/dist/VersionHistoryItem-CIcEgl0K.d.mts +54 -0
- package/dist/VersionHistoryItem.d.mts +2 -0
- package/dist/WizardModal.d.mts +2 -2
- package/dist/{accordionTitleTypography-BYhjSN9t.d.mts → accordionTitleTypography-CNB1w3kn.d.mts} +2 -2
- package/dist/accordionTitleTypography.d.mts +1 -1
- package/dist/assertNever.d.mts +5 -0
- package/dist/{codec-BcgsGCHE.d.mts → codec-BXVBsB8Y.d.mts} +2 -2
- package/dist/codec.d.mts +1 -1
- package/dist/{color-LH7zKfKo.d.mts → color-3UO63ocQ.d.mts} +9 -4
- package/dist/components/Accordion/index.d.mts +1 -1
- package/dist/components/Accordion/index.mjs +1 -1
- package/dist/components/Attribute/index.mjs +2 -2
- package/dist/components/Badge/index.mjs +1 -1
- package/dist/components/Banner/index.mjs +1 -1
- package/dist/components/BottomPanel/index.mjs +5 -3
- package/dist/components/BottomPanel/index.mjs.map +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 +2 -2
- package/dist/components/Card/index.d.mts +2 -2
- 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/CodeHighlight/index.mjs +3 -1
- package/dist/components/CodeHighlight/index.mjs.map +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 +19 -19
- package/dist/components/DataTable/TableControls/index.mjs +1 -1
- package/dist/components/DataTable/index.mjs +27 -16
- package/dist/components/DataTable/index.mjs.map +1 -1
- package/dist/components/DataTable/types.d.mts +2 -2
- package/dist/components/DatePicker/index.d.mts +5 -5
- 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/FloatingPanel/index.mjs +10 -7
- package/dist/components/FloatingPanel/index.mjs.map +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/Grid/index.mjs +1 -1
- package/dist/components/HoverCopyableField/index.mjs +1 -1
- package/dist/components/ImageTile/index.mjs +13 -9
- package/dist/components/ImageTile/index.mjs.map +1 -1
- package/dist/components/Input/index.d.mts +1 -1
- package/dist/components/Input/index.mjs +1 -1
- package/dist/components/Link/index.mjs +1 -78
- 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 +1 -1
- package/dist/components/Menu/index.d.mts +1 -1
- package/dist/components/Menu/index.mjs +1 -1
- package/dist/components/Modal/index.d.mts +1 -1
- package/dist/components/Modal/index.mjs +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 -2
- package/dist/components/ProgressBar/index.mjs.map +1 -1
- package/dist/components/ProgressIndicator/index.d.mts +1 -1
- package/dist/components/ProgressIndicator/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/RightPanel/index.mjs +10 -7
- package/dist/components/RightPanel/index.mjs.map +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 +1 -1
- package/dist/components/Slider/index.mjs.map +1 -1
- package/dist/components/SmartTextInput/parser/method-chain/types.d.mts +2 -105
- package/dist/components/SmartTextInput/parser/smart-text/types.d.mts +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/StatusIndicator/index.mjs +1 -314
- 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 +8 -8
- 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 -1
- package/dist/components/Text/index.d.mts +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 +2 -2
- package/dist/components/Toast/index.mjs +2 -2
- package/dist/components/Toast/index.mjs.map +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/VersionHistory/index.d.mts +3 -0
- package/dist/components/VersionHistory/index.mjs +389 -0
- package/dist/components/VersionHistory/index.mjs.map +1 -0
- package/dist/components/WizardModal/index.mjs +4 -4
- package/dist/compound-expression.d.mts +1 -1
- package/dist/{constants-BpwnTzcv.d.mts → constants-BOxzLX-O.d.mts} +1 -1
- package/dist/constants.d.mts +1 -1
- package/dist/{createPath-Bst12Uxr.d.mts → createPath-OeTC9kvS.d.mts} +2 -2
- package/dist/createPath.d.mts +1 -1
- package/dist/{date-filter-CZeChs9T.mjs → date-filter-BnzR6NxT.mjs} +1 -1
- package/dist/{date-filter-CZeChs9T.mjs.map → date-filter-BnzR6NxT.mjs.map} +1 -1
- package/dist/{date-range-rule-value-C4ir2Y8W.d.mts → date-range-rule-value-BRp5Bi7R.d.mts} +2 -2
- package/dist/date-range-rule-value.d.mts +1 -1
- package/dist/{date-rule-intent-gKmuxMVA.d.mts → date-rule-intent-CDBtV0ET.d.mts} +3 -3
- package/dist/date-rule-intent.d.mts +1 -1
- package/dist/display.d.mts +2 -2
- package/dist/fieldPickerOptions.d.mts +2 -2
- package/dist/{filter-size-context-BOpH6pBm.d.mts → filter-size-context-CqvQ190x.d.mts} +2 -2
- package/dist/filter-size-context.d.mts +1 -1
- package/dist/format-date-value.d.mts +5 -0
- package/dist/helpers.d.mts +1 -1
- package/dist/{index-C2-PBfN3.d.mts → index-BXSe73Xn.d.mts} +2 -2
- package/dist/{index-c0aXmZV9.d.mts → index-CyAok7As.d.mts} +2 -2
- package/dist/{index-BXdrzR0c.d.mts → index-wKK9f9La.d.mts} +3 -3
- 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 +1 -1
- package/dist/index5.d.mts +14 -14
- package/dist/{input-DVJhMlxU.d.mts → input-C6cyiqm2.d.mts} +3 -3
- package/dist/inputFields.d.mts +10 -10
- package/dist/{intersperse-Bxcrxj2Q.mjs → intersperse-Df9zw7Bk.mjs} +1 -1
- package/dist/{intersperse-Bxcrxj2Q.mjs.map → intersperse-Df9zw7Bk.mjs.map} +1 -1
- package/dist/{jsonSchema-DmdZYC4a.d.mts → jsonSchema-CfGi1bzI.d.mts} +34 -2
- package/dist/lib/PDSProvider.d.mts +2 -2
- package/dist/lib/TruncatedText.d.mts +1 -1
- package/dist/lib/TruncatedTextWithTooltip.d.mts +1 -1
- package/dist/lib/chainTypes.d.mts +17 -0
- package/dist/lib/chainTypes.mjs +0 -0
- package/dist/lib/color.d.mts +2 -2
- package/dist/lib/color.mjs +18 -11
- package/dist/lib/color.mjs.map +1 -1
- package/dist/lib/customFunctionSchema.d.mts +49 -0
- package/dist/lib/customFunctionSchema.mjs +299 -0
- package/dist/lib/customFunctionSchema.mjs.map +1 -0
- package/dist/lib/date-filter/index.d.mts +2 -2
- package/dist/lib/date-filter/index.mjs +1 -1
- package/dist/lib/jsonSchema.d.mts +2 -2
- package/dist/lib/jsonSchema.mjs +26 -1
- package/dist/lib/jsonSchema.mjs.map +1 -1
- package/dist/lib/jsonSchemaType.d.mts +7 -0
- package/dist/lib/jsonSchemaType.mjs +31 -0
- package/dist/lib/jsonSchemaType.mjs.map +1 -0
- package/dist/lib/letPointerDownReachDocument.d.mts +22 -0
- package/dist/lib/letPointerDownReachDocument.mjs +25 -0
- package/dist/lib/letPointerDownReachDocument.mjs.map +1 -0
- package/dist/lib/message.d.mts +1 -1
- package/dist/lib/methodChain.d.mts +3 -66
- package/dist/lib/methodChain.mjs +1 -237
- package/dist/lib/methodChainNormalize.d.mts +2 -2
- package/dist/lib/methodChainTypes.d.mts +2 -23
- package/dist/lib/objectSchemaTypes.d.mts +1 -1
- package/dist/lib/platformObject.d.mts +38 -0
- package/dist/lib/platformObject.mjs +79 -0
- package/dist/lib/platformObject.mjs.map +1 -0
- package/dist/lib/pseudoClass.d.mts +1 -1
- package/dist/lib/router/adapters/reactRouter.d.mts +1 -1
- package/dist/lib/router/adapters/tanstack.d.mts +1 -1
- package/dist/lib/router/index.d.mts +5 -5
- package/dist/lib/schemaOptions.d.mts +173 -0
- package/dist/lib/schemaOptions.mjs +481 -0
- package/dist/lib/schemaOptions.mjs.map +1 -0
- package/dist/lib/semanticColor.d.mts +1 -1
- package/dist/lib/snakifyPath.d.mts +5 -0
- package/dist/lib/snakifyPath.mjs +11 -0
- package/dist/lib/snakifyPath.mjs.map +1 -0
- package/dist/{message-CKSLIKF0.d.mts → message-CblP0EjG.d.mts} +1 -1
- package/dist/methodChain-DAQxLgxt.mjs +241 -0
- package/dist/methodChain-DAQxLgxt.mjs.map +1 -0
- package/dist/methodChain-Pk1C3i_E.d.mts +66 -0
- package/dist/methodChainTypes-CqWzfx0M.d.mts +23 -0
- 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/input.mjs +6 -14
- package/dist/mixins/input.mjs.map +1 -1
- package/dist/mixins/menuItem.d.mts +2 -2
- package/dist/mixins/scrollbar.d.mts +10 -0
- package/dist/mixins/scrollbar.mjs +31 -0
- package/dist/mixins/scrollbar.mjs.map +1 -0
- package/dist/mixins/text.d.mts +1 -1
- package/dist/{operators-1_jTgYRX.d.mts → operators-CoXL5Hv6.d.mts} +2 -2
- package/dist/operators.d.mts +1 -1
- package/dist/{palette-CMOEyNPH.d.mts → palette-CxXUs1Fu.d.mts} +3 -3
- package/dist/palette.d.mts +1 -1
- package/dist/patterns/LayoutLoadingShimmer/index.mjs +5 -5
- package/dist/patterns/PageLayout/index.mjs +2 -2
- package/dist/reactRouterFallback.d.mts +1 -1
- package/dist/relative-date-label.d.mts +1 -1
- package/dist/{semantic-BXwNUd4a.d.mts → semantic-CFMBsuiJ.d.mts} +2 -2
- package/dist/{semanticColor-Cru2gSys.d.mts → semanticColor-DuJCmDrH.d.mts} +3 -3
- package/dist/{text-CxIup7HJ.d.mts → text-D8HPjiEX.d.mts} +1 -1
- package/dist/{theme-CW6qlONZ.d.mts → theme-BcaR-Au5.d.mts} +3 -3
- package/dist/theme.d.mts +1 -1
- package/dist/time-range.d.mts +7 -0
- package/dist/tone.d.mts +3 -3
- package/dist/{types-ChkiGhjQ.d.mts → types-BCiq4hGv.d.mts} +1 -1
- package/dist/types-BGMmkUpy.d.mts +105 -0
- package/dist/{types-BEjWTkZV.d.mts → types-C4WUSW3e.d.mts} +7 -2
- package/dist/{types-B-stjYNc.d.mts → types-CkpixGWr.d.mts} +1 -1
- package/dist/{types-YojUycQK.d.mts → types-Cl-w8tYc.d.mts} +1 -1
- package/dist/{types-3iEDsymE.d.mts → types-CoVZwrMW.d.mts} +2 -2
- package/dist/{types-g-aqbnek.d.mts → types-DgyGecdM.d.mts} +1 -1
- 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/types5.d.mts +1 -1
- package/dist/types6.d.mts +1 -1
- package/dist/{url-state-CHK2N2fA.d.mts → url-state-8j_ef8Uf.d.mts} +2 -2
- package/dist/url-state.d.mts +1 -1
- package/dist/useComboboxFooterAction.d.mts +1 -1
- package/dist/{useFilterStateV2-B26e5iUx.d.mts → useFilterStateV2-CW6eght1.d.mts} +3 -3
- package/dist/useFilterStateV2.d.mts +1 -1
- package/dist/{useFormField-DPFClB5h.d.mts → useFormField-CLRZkUZt.d.mts} +2 -2
- package/dist/{useFormField-BzhMbl5P.mjs → useFormField-XezSxho_.mjs} +2 -2
- package/dist/{useFormField-BzhMbl5P.mjs.map → useFormField-XezSxho_.mjs.map} +1 -1
- package/dist/useFormField.d.mts +1 -1
- package/dist/{useFormGroup-CH3kiXoa.mjs → useFormGroup-C7Cax8zO.mjs} +1 -1
- package/dist/{useFormGroup-CH3kiXoa.mjs.map → useFormGroup-C7Cax8zO.mjs.map} +1 -1
- package/dist/{useLocationPathname-CnRd_Rzn.d.mts → useLocationPathname-DH5Tdq5X.d.mts} +1 -1
- package/dist/useLocationPathname.d.mts +1 -1
- package/dist/{useTableBoxDragAndDrop-DWlG5vhl.d.mts → useTableBoxDragAndDrop-Da4TiYBT.d.mts} +1 -1
- package/dist/useTableBoxDragAndDrop.d.mts +1 -1
- package/dist/useTruncation.d.mts +1 -1
- package/dist/{utilities-BcGuP8Fd.d.mts → utilities-DcsbI71T.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.d.mts +1 -1
- package/dist/{validation-B-Om4ANo.d.mts → validation-BgwNghi2.d.mts} +3 -3
- package/dist/validation.d.mts +1 -1
- package/dist/{value-control-resolver-BiyhB8zt.d.mts → value-control-resolver-B0HDRxRN.d.mts} +3 -2
- package/dist/value-control-resolver.d.mts +1 -1
- package/dist/variables/effect.d.mts +1 -1
- package/dist/variables/semantic.d.mts +1 -1
- package/dist/variables/semantic.mjs +15 -18
- package/dist/variables/semantic.mjs.map +1 -1
- package/package.json +23 -4
- package/skills/ui-authoring/COMPONENTS.md +1 -0
- package/dist/Combobox-C2b9u955.mjs.map +0 -1
- package/dist/DatePicker-IgiUI3Wj.mjs.map +0 -1
- package/dist/DropdownMenu-CuKSNxc9.mjs.map +0 -1
- package/dist/Input-C_3QwAAt.mjs.map +0 -1
- package/dist/ListBox-D4j4LCT3.mjs.map +0 -1
- package/dist/LoadingShimmer-Dizk2sZu.mjs.map +0 -1
- package/dist/Modal-BN0K8QXi.mjs.map +0 -1
- package/dist/Popover-opVa9Xhc.mjs.map +0 -1
- package/dist/ProgressIndicator-3A4Aqci6.mjs.map +0 -1
- package/dist/SegmentedControl-BcwfLuHA.mjs.map +0 -1
- package/dist/Select-BstCz8P1.mjs.map +0 -1
- package/dist/Sticker-C3Eb13OQ.mjs.map +0 -1
- package/dist/Table-B1gRr2XT.mjs.map +0 -1
- package/dist/TableBox-DAQ3Plqx.mjs.map +0 -1
- package/dist/TableControls-BxuPCUQS.mjs.map +0 -1
- package/dist/Toggle-DWbJOwf3.mjs.map +0 -1
- package/dist/components/Link/index.mjs.map +0 -1
- package/dist/components/StatusIndicator/index.mjs.map +0 -1
- package/dist/lib/methodChain.mjs.map +0 -1
- /package/dist/{index--p6oQT9I.d.mts → index-B24gUwOx.d.mts} +0 -0
- /package/dist/{index-BCh-G39Y2.d.mts → index-BFnNtGdX.d.mts} +0 -0
- /package/dist/{index-BMBcfD_R.d.mts → index-BNRXMhlr.d.mts} +0 -0
- /package/dist/{index-BO_854F2.d.mts → index-BPiqSRRl.d.mts} +0 -0
- /package/dist/{index-BOn0AAue.d.mts → index-BYd3Btr1.d.mts} +0 -0
- /package/dist/{index-BcsXXrHq.d.mts → index-B_BBnMou.d.mts} +0 -0
- /package/dist/{index-BwFl_eS0.d.mts → index-Bt4QNofW.d.mts} +0 -0
- /package/dist/{index-C-lwXyQ6.d.mts → index-C6HcjJiY.d.mts} +0 -0
- /package/dist/{index-C1o2TFfS.d.mts → index-CEqOS-7M.d.mts} +0 -0
- /package/dist/{index-C3kE54DD.d.mts → index-CIABef8t.d.mts} +0 -0
- /package/dist/{index-CREkvfw9.d.mts → index-CTHojwxd.d.mts} +0 -0
- /package/dist/{index-CRo77wc3.d.mts → index-CjDodOH2.d.mts} +0 -0
- /package/dist/{index-CfCYi7PF.d.mts → index-Cm-1i165.d.mts} +0 -0
- /package/dist/{index-CuYZJcK3.d.mts → index-DB7t8whN.d.mts} +0 -0
- /package/dist/{index-DCTy4zg0.d.mts → index-DBGd4WeR.d.mts} +0 -0
- /package/dist/{index-DWIh4oP5.d.mts → index-DGsJdI5l.d.mts} +0 -0
- /package/dist/{index-De7MV8-j.d.mts → index-DWfPppPU.d.mts} +0 -0
- /package/dist/{index-Dflz2i1X.d.mts → index-DeVKzGce.d.mts} +0 -0
- /package/dist/{index-DgJfEygr.d.mts → index-DedbSZMv.d.mts} +0 -0
- /package/dist/{index-DkrC-i1D.d.mts → index-Deol7ZWO.d.mts} +0 -0
- /package/dist/{index-DrK1_jKY.d.mts → index-Jh0C5PIG.d.mts} +0 -0
- /package/dist/{index-Es5nKSSL.d.mts → index-NKYLt_R9.d.mts} +0 -0
- /package/dist/{index-Wc1llEvP.d.mts → index-VWno75SQ.d.mts} +0 -0
- /package/dist/{index-bHnO4ZKt.d.mts → index-fxXoW-qc.d.mts} +0 -0
- /package/dist/{index-dhjtMp5F.d.mts → index-gVcIuWLd.d.mts} +0 -0
- /package/dist/{index-xmouCHX9.d.mts → index-zeAhjge4.d.mts} +0 -0
|
@@ -1,315 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TruncatedText } from "../../lib/TruncatedText.mjs";
|
|
3
|
-
import { semanticTokens } from "../../lib/semanticColor.mjs";
|
|
4
|
-
import { paragraphMixins } from "../../mixins/text.mjs";
|
|
5
|
-
import { withAlpha } from "../../lib/color.mjs";
|
|
6
|
-
import { BorderRadius, Color, Spacing } from "@persona/design-tokens";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
import { CircleCheckFillIcon, CircleFillIcon, CircleHalfIcon, CircleNullIcon, CircleSlashIcon, WarningFillIcon } from "@persona/icons/12px";
|
|
9
|
-
//#region components/StatusIndicator/StatusIndicator.tsx
|
|
10
|
-
const STATUS_CONFIG = {
|
|
11
|
-
open: {
|
|
12
|
-
type: "neutral",
|
|
13
|
-
icon: /* @__PURE__ */ jsx(CircleNullIcon, {})
|
|
14
|
-
},
|
|
15
|
-
pending: {
|
|
16
|
-
type: "neutral",
|
|
17
|
-
icon: /* @__PURE__ */ jsx(CircleHalfIcon, {})
|
|
18
|
-
},
|
|
19
|
-
completed: {
|
|
20
|
-
type: "success",
|
|
21
|
-
icon: /* @__PURE__ */ jsx(CircleFillIcon, {})
|
|
22
|
-
},
|
|
23
|
-
active: {
|
|
24
|
-
type: "success",
|
|
25
|
-
icon: /* @__PURE__ */ jsx(CircleCheckFillIcon, {})
|
|
26
|
-
},
|
|
27
|
-
failed: {
|
|
28
|
-
type: "critical",
|
|
29
|
-
icon: /* @__PURE__ */ jsx(CircleSlashIcon, {})
|
|
30
|
-
},
|
|
31
|
-
needs_review: {
|
|
32
|
-
type: "warning",
|
|
33
|
-
icon: /* @__PURE__ */ jsx(WarningFillIcon, {})
|
|
34
|
-
},
|
|
35
|
-
canceled: {
|
|
36
|
-
type: "attention",
|
|
37
|
-
icon: /* @__PURE__ */ jsx(CircleSlashIcon, {})
|
|
38
|
-
},
|
|
39
|
-
archived: {
|
|
40
|
-
type: "informational",
|
|
41
|
-
icon: /* @__PURE__ */ jsx(CircleSlashIcon, {})
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
/** All supported `status` preset keys, derived from the config map. */
|
|
45
|
-
const STATUSES = Object.keys(STATUS_CONFIG);
|
|
46
|
-
const FILLED_STATUS_COLORS = {
|
|
47
|
-
neutral: {
|
|
48
|
-
background: Color.BackgroundStatusIndicatorDefault,
|
|
49
|
-
text: Color.TextStatusIndicatorDefault,
|
|
50
|
-
icon: Color.BorderIconLabelGrey
|
|
51
|
-
},
|
|
52
|
-
attention: {
|
|
53
|
-
background: Color.BackgroundStatusIndicatorAttention,
|
|
54
|
-
text: Color.TextStatusIndicatorAttention,
|
|
55
|
-
icon: Color.BorderIconLabelYellow
|
|
56
|
-
},
|
|
57
|
-
warning: {
|
|
58
|
-
background: Color.BackgroundStatusIndicatorWarning,
|
|
59
|
-
text: Color.TextStatusIndicatorWarning,
|
|
60
|
-
icon: Color.BorderIconLabelOrange
|
|
61
|
-
},
|
|
62
|
-
critical: {
|
|
63
|
-
background: Color.BackgroundStatusIndicatorCritical,
|
|
64
|
-
text: Color.TextStatusIndicatorCritical,
|
|
65
|
-
icon: Color.BorderIconLabelRed
|
|
66
|
-
},
|
|
67
|
-
success: {
|
|
68
|
-
background: Color.BackgroundStatusIndicatorSuccess,
|
|
69
|
-
text: Color.TextStatusIndicatorSuccess,
|
|
70
|
-
icon: Color.BorderIconLabelGreen
|
|
71
|
-
},
|
|
72
|
-
feature: {
|
|
73
|
-
background: Color.BackgroundStatusIndicatorFeature,
|
|
74
|
-
text: Color.TextStatusIndicatorFeature,
|
|
75
|
-
icon: Color.BorderIconLabelPurple
|
|
76
|
-
},
|
|
77
|
-
informational: {
|
|
78
|
-
background: Color.BackgroundStatusIndicatorInformational,
|
|
79
|
-
text: Color.TextStatusIndicatorInformational,
|
|
80
|
-
icon: Color.BorderIconLabelBlue
|
|
81
|
-
},
|
|
82
|
-
miscellaneous: {
|
|
83
|
-
background: Color.BackgroundStatusIndicatorMiscellaneous,
|
|
84
|
-
text: Color.TextStatusIndicatorMiscellaneous,
|
|
85
|
-
icon: Color.BorderIconLabelTeal
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
const TRANSPARENT_STATUS_COLORS = {
|
|
89
|
-
neutral: {
|
|
90
|
-
background: "transparent",
|
|
91
|
-
text: Color.TextPrimary,
|
|
92
|
-
icon: Color.BorderIconSecondary
|
|
93
|
-
},
|
|
94
|
-
attention: {
|
|
95
|
-
background: "transparent",
|
|
96
|
-
text: Color.TextPrimary,
|
|
97
|
-
icon: Color.BorderIconWarning
|
|
98
|
-
},
|
|
99
|
-
warning: {
|
|
100
|
-
background: "transparent",
|
|
101
|
-
text: Color.TextPrimary,
|
|
102
|
-
icon: Color.BorderIconWarning
|
|
103
|
-
},
|
|
104
|
-
critical: {
|
|
105
|
-
background: "transparent",
|
|
106
|
-
text: Color.TextPrimary,
|
|
107
|
-
icon: Color.BorderIconDanger
|
|
108
|
-
},
|
|
109
|
-
success: {
|
|
110
|
-
background: "transparent",
|
|
111
|
-
text: Color.TextPrimary,
|
|
112
|
-
icon: Color.BorderIconSuccess
|
|
113
|
-
},
|
|
114
|
-
feature: {
|
|
115
|
-
background: "transparent",
|
|
116
|
-
text: Color.TextPrimary,
|
|
117
|
-
icon: Color.BorderIconActive
|
|
118
|
-
},
|
|
119
|
-
informational: {
|
|
120
|
-
background: "transparent",
|
|
121
|
-
text: Color.TextPrimary,
|
|
122
|
-
icon: Color.BorderIconLabelBlue
|
|
123
|
-
},
|
|
124
|
-
miscellaneous: {
|
|
125
|
-
background: "transparent",
|
|
126
|
-
text: Color.TextPrimary,
|
|
127
|
-
icon: Color.BorderIconLabelTeal
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
const semanticFilledStatusColors = (t) => ({
|
|
131
|
-
neutral: {
|
|
132
|
-
background: t.StatusNeutral,
|
|
133
|
-
text: t.FgPrimary,
|
|
134
|
-
icon: t.FgPrimary
|
|
135
|
-
},
|
|
136
|
-
attention: {
|
|
137
|
-
background: withAlpha(t.StatusHighlight, t.Opacity15),
|
|
138
|
-
text: t.FgHighlight,
|
|
139
|
-
icon: t.FgHighlight
|
|
140
|
-
},
|
|
141
|
-
warning: {
|
|
142
|
-
background: withAlpha(t.StatusWarning, t.Opacity15),
|
|
143
|
-
text: t.FgWarning2,
|
|
144
|
-
icon: t.FgWarning2
|
|
145
|
-
},
|
|
146
|
-
critical: {
|
|
147
|
-
background: withAlpha(t.StatusDanger3, t.Opacity15),
|
|
148
|
-
text: t.FgDanger2,
|
|
149
|
-
icon: t.FgDanger2
|
|
150
|
-
},
|
|
151
|
-
success: {
|
|
152
|
-
background: withAlpha(t.StatusSuccess2, t.Opacity15),
|
|
153
|
-
text: t.FgSuccess,
|
|
154
|
-
icon: t.FgSuccess
|
|
155
|
-
},
|
|
156
|
-
feature: {
|
|
157
|
-
background: withAlpha(t.StatusFeature, t.Opacity25),
|
|
158
|
-
text: t.FgFeature,
|
|
159
|
-
icon: t.FgFeature
|
|
160
|
-
},
|
|
161
|
-
informational: {
|
|
162
|
-
background: withAlpha(t.StatusInfo2, t.Opacity25),
|
|
163
|
-
text: t.FgInfo,
|
|
164
|
-
icon: t.FgInfo
|
|
165
|
-
},
|
|
166
|
-
miscellaneous: {
|
|
167
|
-
background: withAlpha(t.StatusMisc, t.Opacity15),
|
|
168
|
-
text: t.FgMisc,
|
|
169
|
-
icon: t.FgMisc
|
|
170
|
-
}
|
|
171
|
-
});
|
|
172
|
-
const semanticTransparentStatusColors = (t) => ({
|
|
173
|
-
neutral: {
|
|
174
|
-
background: "transparent",
|
|
175
|
-
text: t.FgPrimary,
|
|
176
|
-
icon: t.FgSecondary
|
|
177
|
-
},
|
|
178
|
-
attention: {
|
|
179
|
-
background: "transparent",
|
|
180
|
-
text: t.FgPrimary,
|
|
181
|
-
icon: t.FgWarning1
|
|
182
|
-
},
|
|
183
|
-
warning: {
|
|
184
|
-
background: "transparent",
|
|
185
|
-
text: t.FgPrimary,
|
|
186
|
-
icon: t.FgWarning1
|
|
187
|
-
},
|
|
188
|
-
critical: {
|
|
189
|
-
background: "transparent",
|
|
190
|
-
text: t.FgPrimary,
|
|
191
|
-
icon: t.FgDanger1
|
|
192
|
-
},
|
|
193
|
-
success: {
|
|
194
|
-
background: "transparent",
|
|
195
|
-
text: t.FgPrimary,
|
|
196
|
-
icon: t.FgSuccess
|
|
197
|
-
},
|
|
198
|
-
feature: {
|
|
199
|
-
background: "transparent",
|
|
200
|
-
text: t.FgPrimary,
|
|
201
|
-
icon: t.FgAccent
|
|
202
|
-
},
|
|
203
|
-
informational: {
|
|
204
|
-
background: "transparent",
|
|
205
|
-
text: t.FgPrimary,
|
|
206
|
-
icon: t.FgInfo
|
|
207
|
-
},
|
|
208
|
-
miscellaneous: {
|
|
209
|
-
background: "transparent",
|
|
210
|
-
text: t.FgPrimary,
|
|
211
|
-
icon: t.FgMisc
|
|
212
|
-
}
|
|
213
|
-
});
|
|
214
|
-
const semanticStatusColorCache = /* @__PURE__ */ new WeakMap();
|
|
215
|
-
const semanticStatusColors = (tokens) => {
|
|
216
|
-
let colors = semanticStatusColorCache.get(tokens);
|
|
217
|
-
if (!colors) {
|
|
218
|
-
colors = {
|
|
219
|
-
filled: semanticFilledStatusColors(tokens),
|
|
220
|
-
none: semanticTransparentStatusColors(tokens)
|
|
221
|
-
};
|
|
222
|
-
semanticStatusColorCache.set(tokens, colors);
|
|
223
|
-
}
|
|
224
|
-
return colors;
|
|
225
|
-
};
|
|
226
|
-
const statusColors = (theme, background) => {
|
|
227
|
-
const tokens = semanticTokens(theme);
|
|
228
|
-
if (tokens) return semanticStatusColors(tokens)[background];
|
|
229
|
-
return background === "filled" ? FILLED_STATUS_COLORS : TRANSPARENT_STATUS_COLORS;
|
|
230
|
-
};
|
|
231
|
-
const Label = styled.div`
|
|
232
|
-
${paragraphMixins.sm}
|
|
233
|
-
display: flex;
|
|
234
|
-
flex-direction: column;
|
|
235
|
-
justify-content: center;
|
|
236
|
-
flex-shrink: ${({ $truncate }) => $truncate ? 1 : 0};
|
|
237
|
-
min-width: ${({ $truncate }) => $truncate ? "0" : "auto"};
|
|
238
|
-
/* Line box hugs the font so pill height is driven by padding alone, and clipping an overflowing
|
|
239
|
-
label can't cut into descenders. Matches Sticker. */
|
|
240
|
-
line-height: 1;
|
|
241
|
-
white-space: nowrap;
|
|
242
|
-
text-transform: ${({ $preserveCase }) => $preserveCase ? "none" : "capitalize"};
|
|
243
|
-
/* Slight optical centering adjustment */
|
|
244
|
-
transform: translateY(0.5px);
|
|
245
|
-
color: ${({ theme, $type, $background }) => statusColors(theme, $background)[$type].text};
|
|
246
|
-
`;
|
|
247
|
-
const IconContainer = styled.span`
|
|
248
|
-
line-height: 0;
|
|
249
|
-
color: ${({ theme, $type, $background }) => statusColors(theme, $background)[$type].icon};
|
|
250
|
-
`;
|
|
251
|
-
const LabelContainer = styled.div`
|
|
252
|
-
display: flex;
|
|
253
|
-
align-items: center;
|
|
254
|
-
gap: ${Spacing[1]};
|
|
255
|
-
padding: ${({ $hasIcon }) => `${Spacing[1]} ${Spacing[2]} ${Spacing[1]} ${$hasIcon ? Spacing[1] : Spacing[2]}`};
|
|
256
|
-
position: relative;
|
|
257
|
-
flex-shrink: ${({ $truncate }) => $truncate ? 1 : 0};
|
|
258
|
-
min-width: ${({ $truncate }) => $truncate ? "0" : "auto"};
|
|
259
|
-
`;
|
|
260
|
-
const StyledStatusIndicator = styled.div`
|
|
261
|
-
display: inline-flex;
|
|
262
|
-
align-items: center;
|
|
263
|
-
border-radius: ${BorderRadius.Xl};
|
|
264
|
-
width: fit-content;
|
|
265
|
-
max-width: ${({ $truncate }) => $truncate ? "100%" : "none"};
|
|
266
|
-
|
|
267
|
-
${({ theme, $type, $background }) => css`
|
|
268
|
-
background-color: ${statusColors(theme, $background)[$type].background};
|
|
269
|
-
`}
|
|
270
|
-
`;
|
|
271
|
-
/**
|
|
272
|
-
* StatusIndicator displays semantic status information with a colored icon and label.
|
|
273
|
-
* Supports both filled backgrounds and transparent styles.
|
|
274
|
-
*
|
|
275
|
-
* @example
|
|
276
|
-
* ```tsx
|
|
277
|
-
* <StatusIndicator status="active">Active</StatusIndicator>
|
|
278
|
-
* <StatusIndicator type="success" background="filled">Approved</StatusIndicator>
|
|
279
|
-
* <StatusIndicator type="critical" background="none">Failed</StatusIndicator>
|
|
280
|
-
* ```
|
|
281
|
-
*/
|
|
282
|
-
const StatusIndicator = ({ status, type, background = "filled", showIcon = true, leadingIcon, truncate = false, preserveCase = false, children, ...props }) => {
|
|
283
|
-
const resolvedType = type ?? (status != null ? STATUS_CONFIG[status].type : "neutral");
|
|
284
|
-
let iconToRender;
|
|
285
|
-
if (!showIcon && background === "filled") iconToRender = null;
|
|
286
|
-
else if (typeof leadingIcon !== "undefined") iconToRender = leadingIcon;
|
|
287
|
-
else if (status != null) iconToRender = STATUS_CONFIG[status].icon;
|
|
288
|
-
else iconToRender = /* @__PURE__ */ jsx(CircleNullIcon, {});
|
|
289
|
-
const hasIcon = iconToRender != null;
|
|
290
|
-
return /* @__PURE__ */ jsx(StyledStatusIndicator, {
|
|
291
|
-
$type: resolvedType,
|
|
292
|
-
$background: background,
|
|
293
|
-
$truncate: truncate,
|
|
294
|
-
...props,
|
|
295
|
-
children: /* @__PURE__ */ jsxs(LabelContainer, {
|
|
296
|
-
$hasIcon: hasIcon,
|
|
297
|
-
$truncate: truncate,
|
|
298
|
-
children: [hasIcon && /* @__PURE__ */ jsx(IconContainer, {
|
|
299
|
-
$type: resolvedType,
|
|
300
|
-
$background: background,
|
|
301
|
-
children: iconToRender
|
|
302
|
-
}), /* @__PURE__ */ jsx(Label, {
|
|
303
|
-
$type: resolvedType,
|
|
304
|
-
$background: background,
|
|
305
|
-
$truncate: truncate,
|
|
306
|
-
$preserveCase: preserveCase,
|
|
307
|
-
children: truncate ? /* @__PURE__ */ jsx(TruncatedText, { children }) : children
|
|
308
|
-
})]
|
|
309
|
-
})
|
|
310
|
-
});
|
|
311
|
-
};
|
|
312
|
-
//#endregion
|
|
1
|
+
import { n as StatusIndicator, t as STATUSES } from "../../StatusIndicator-DT2zNbkp.mjs";
|
|
313
2
|
export { STATUSES, StatusIndicator, StatusIndicator as default };
|
|
314
|
-
|
|
315
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as StickerContentContainer, i as StickerContainer, n as STICKER_COLOR_CONFIG, o as StickerProps, r as Sticker, s as StyledTruncatedText, t as LabelBackgrounds } from "../../Sticker-
|
|
1
|
+
import { a as StickerContentContainer, i as StickerContainer, n as STICKER_COLOR_CONFIG, o as StickerProps, r as Sticker, s as StyledTruncatedText, t as LabelBackgrounds } from "../../Sticker-BmyKaxwx.mjs";
|
|
2
2
|
export { LabelBackgrounds, STICKER_COLOR_CONFIG, Sticker, Sticker as default, StickerContainer, StickerContentContainer, StickerProps, StyledTruncatedText };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as StyledTruncatedText, i as StickerContentContainer, n as Sticker, r as StickerContainer, t as STICKER_COLOR_CONFIG } from "../../Sticker-
|
|
1
|
+
import { a as StyledTruncatedText, i as StickerContentContainer, n as Sticker, r as StickerContainer, t as STICKER_COLOR_CONFIG } from "../../Sticker-BLbgJxcH.mjs";
|
|
2
2
|
export { STICKER_COLOR_CONFIG, Sticker, Sticker as default, StickerContainer, StickerContentContainer, StyledTruncatedText };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TabContainer, i as TabBar, n as StyledTab, r as Tab, t as TabBarIconButton_default } from "../../TabBar-
|
|
1
|
+
import { a as TabContainer, i as TabBar, n as StyledTab, r as Tab, t as TabBarIconButton_default } from "../../TabBar-Bj84q1Mr.mjs";
|
|
2
2
|
export { StyledTab, Tab, TabBar, TabBar as default, TabBarIconButton_default as TabBarIconButton, TabContainer };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as Table } from "../../Table-
|
|
2
|
-
import { t as TableHeaderCell } from "../../TableHeaderCell-
|
|
3
|
-
import { t as TableRow } from "../../TableRow-
|
|
4
|
-
import { a as TableCellProps, c as TableTD, i as TableCell, l as TableTR, n as StickyTH, o as TableCellTitle, r as TableActionTD, s as TableIconTD, t as StickyTD } from "../../TableCell-
|
|
5
|
-
import { t as TableHead } from "../../TableHead-
|
|
6
|
-
import { t as TableBody } from "../../TableBody-
|
|
7
|
-
import { t as TableTH } from "../../index-
|
|
8
|
-
import { t as TableLayout } from "../../TableLayout-
|
|
1
|
+
import { t as Table } from "../../Table-DhdHUQ8V.mjs";
|
|
2
|
+
import { t as TableHeaderCell } from "../../TableHeaderCell-C7gp9j1X.mjs";
|
|
3
|
+
import { t as TableRow } from "../../TableRow-BJZM8I8i.mjs";
|
|
4
|
+
import { a as TableCellProps, c as TableTD, i as TableCell, l as TableTR, n as StickyTH, o as TableCellTitle, r as TableActionTD, s as TableIconTD, t as StickyTD } from "../../TableCell-CGPQRc5g.mjs";
|
|
5
|
+
import { t as TableHead } from "../../TableHead-36j-_oyn.mjs";
|
|
6
|
+
import { t as TableBody } from "../../TableBody-qoSvQDds.mjs";
|
|
7
|
+
import { t as TableTH } from "../../index-BXSe73Xn.mjs";
|
|
8
|
+
import { t as TableLayout } from "../../TableLayout-CQqIV0vj.mjs";
|
|
9
9
|
export { StickyTD, StickyTH, Table, Table as default, TableActionTD, TableBody, TableCell, TableCellProps, TableCellTitle, TableHead, TableHeaderCell, TableIconTD, TableLayout, TableRow, TableTD, TableTH, TableTR };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as StickyTH, c as TableCellTitle, d as TableTR, f as TableTH, h as Table, i as StickyTD, l as TableIconTD, m as TableHeaderCell, n as TableBody, o as TableActionTD, p as TableRow, r as TableHead, s as TableCell, t as TableLayout, u as TableTD } from "../../Table-
|
|
1
|
+
import { a as StickyTH, c as TableCellTitle, d as TableTR, f as TableTH, h as Table, i as StickyTD, l as TableIconTD, m as TableHeaderCell, n as TableBody, o as TableActionTD, p as TableRow, r as TableHead, s as TableCell, t as TableLayout, u as TableTD } from "../../Table-WqNfjasd.mjs";
|
|
2
2
|
export { StickyTD, StickyTH, Table, Table as default, TableActionTD, TableBody, TableCell, TableCellTitle, TableHead, TableHeaderCell, TableIconTD, TableLayout, TableRow, TableTD, TableTH, TableTR };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as DragDirection } from "../../useTableBoxDragAndDrop-
|
|
2
|
-
import { a as TableBox, o as TableBoxContext, r as InlineEditConfig, s as TableBoxProps } from "../../TableBoxCell-
|
|
1
|
+
import { t as DragDirection } from "../../useTableBoxDragAndDrop-Da4TiYBT.mjs";
|
|
2
|
+
import { a as TableBox, o as TableBoxContext, r as InlineEditConfig, s as TableBoxProps } from "../../TableBoxCell-DzYMx4Ju.mjs";
|
|
3
3
|
export { DragDirection, InlineEditConfig, TableBoxContext, TableBoxProps, TableBox as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TableBoxContext, t as TableBox } from "../../TableBox-
|
|
1
|
+
import { n as TableBoxContext, t as TableBox } from "../../TableBox-obl64W5Y.mjs";
|
|
2
2
|
export { TableBoxContext, TableBox as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as TechnicalSticker } from "../../TechnicalSticker-
|
|
1
|
+
import { t as TechnicalSticker } from "../../TechnicalSticker-CL0zkOAj.mjs";
|
|
2
2
|
export { TechnicalSticker, TechnicalSticker as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as Label, c as ParagraphProps, d as TabularNumber, i as HeadingProps, l as Span, n as DisplayProps, o as LabelProps, r as Heading, s as Paragraph, t as Display, u as SpanProps } from "../../Text-
|
|
1
|
+
import { a as Label, c as ParagraphProps, d as TabularNumber, i as HeadingProps, l as Span, n as DisplayProps, o as LabelProps, r as Heading, s as Paragraph, t as Display, u as SpanProps } from "../../Text-DbtTa83E.mjs";
|
|
2
2
|
export { Display, DisplayProps, Heading, HeadingProps, Label, LabelProps, Paragraph, ParagraphProps, Span, SpanProps, TabularNumber };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TextAreaWithStyle, t as TextAreaProps } from "../../TextArea-
|
|
1
|
+
import { n as TextAreaWithStyle, t as TextAreaProps } from "../../TextArea-CbxF6u7z.mjs";
|
|
2
2
|
export { TextAreaWithStyle as TextArea, TextAreaWithStyle as default, TextAreaProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as TextAreaWithStyle } from "../../TextArea-
|
|
1
|
+
import { t as TextAreaWithStyle } from "../../TextArea-CfZr5Sk4.mjs";
|
|
2
2
|
export { TextAreaWithStyle as TextArea, TextAreaWithStyle as default };
|
|
@@ -2,8 +2,8 @@ import { a as styled } from "../../styledComponentsInterop-NxwFjeA4.mjs";
|
|
|
2
2
|
import { semanticColor } from "../../lib/semanticColor.mjs";
|
|
3
3
|
import { i as Paragraph, n as Heading } from "../../Text-BdluS7Fy.mjs";
|
|
4
4
|
import { t as TextUnderlineTooltip } from "../../Tooltip-C0FuZS1C.mjs";
|
|
5
|
-
import { n as Stack, t as HStack } from "../../Stack-
|
|
6
|
-
import { n as Sticker } from "../../Sticker-
|
|
5
|
+
import { n as Stack, t as HStack } from "../../Stack-Bkn0TUDe.mjs";
|
|
6
|
+
import { n as Sticker } from "../../Sticker-BLbgJxcH.mjs";
|
|
7
7
|
import { Color, Spacing } from "@persona/design-tokens";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { ArrowRightIcon } from "@persona/icons/12px";
|
|
@@ -6,7 +6,7 @@ import { withAlpha } from "../../lib/color.mjs";
|
|
|
6
6
|
import "../../lib/message.mjs";
|
|
7
7
|
import { isActive, isFocused, isHovered, isNotDisabled } from "../../lib/pseudoClass.mjs";
|
|
8
8
|
import "../../variables/effect.mjs";
|
|
9
|
-
import { t as IconButton } from "../../IconButton-
|
|
9
|
+
import { t as IconButton } from "../../IconButton-CCLMYWVN.mjs";
|
|
10
10
|
import { BorderRadius, Color, Spacing } from "@persona/design-tokens";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
import { CircleAlertIcon, CircleCheckIcon, CircleInfoIcon } from "@persona/icons";
|
|
@@ -49,7 +49,7 @@ const CloseButton = styled(IconButton)`
|
|
|
49
49
|
&${isActive}${isNotDisabled}, &${isHovered}${isNotDisabled} {
|
|
50
50
|
background-color: ${({ theme }) => {
|
|
51
51
|
const tokens = semanticTokens(theme);
|
|
52
|
-
return tokens ? withAlpha(tokens.ActionNeutralHover, tokens.
|
|
52
|
+
return tokens ? withAlpha(tokens.ActionNeutralHover, tokens.Opacity25) : "rgba(0, 0, 0, 0.05)";
|
|
53
53
|
}};
|
|
54
54
|
${semanticOnly((tokens) => `color: ${tokens.FgPrimaryStatic};`)}
|
|
55
55
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["XIcon"],"sources":["../../../components/Toast/Toast.tsx"],"sourcesContent":["import { type HTMLMotionProps, motion } from 'framer-motion';\nimport type { ReactElement } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { IconButton } from '@persona/design-system/components/Button';\nimport {\n isActive,\n isFocused,\n isHovered,\n isNotDisabled,\n} from '@persona/design-system/lib/pseudoClass';\nimport { paragraphMixins } from '@persona/design-system/mixins/text';\nimport { Elevation } from '@persona/design-system/variables/effect';\nimport { TransitionDurationInSeconds } from '@persona/design-system/variables/transitions';\nimport { BorderRadius, Color, Spacing } from '@persona/design-tokens';\nimport { CircleAlertIcon, CircleCheckIcon, CircleInfoIcon } from '@persona/icons';\nimport { XIcon } from '@persona/icons/12px';\nimport { withAlpha } from 'design-system/lib/color';\nimport { MessageType } from 'design-system/lib/message';\nimport { semanticColor, semanticOnly, semanticTokens } from 'design-system/lib/semanticColor';\n\nexport interface ToastProps extends HTMLMotionProps<'div'> {\n id: string;\n message: React.ReactNode;\n messageType: MessageType;\n onDismiss?: () => void;\n shouldClipOverflow?: boolean;\n}\n\n// This is exported and used by whatever container is rendering the Toasts\nexport const TOAST_WIDTH = '324px';\n\nconst BaseToast = styled(motion.div)`\n border-radius: ${BorderRadius.Md};\n box-shadow: ${Elevation.Low};\n color: ${({ theme }) => semanticColor(theme, 'FgPrimaryStatic', theme.color.text.primary)};\n ${paragraphMixins.md};\n display: flex;\n align-items: center;\n gap: ${Spacing[2]};\n box-sizing: border-box;\n padding: ${Spacing[2]} ${Spacing[3]};\n width: 100%;\n`;\n\nconst ToastIcon = styled.div`\n flex-shrink: 0;\n display: flex;\n line-height: 0;\n color: ${({ theme }) => semanticColor(theme, 'FgPrimaryStatic', Color.BorderIconPrimary)};\n`;\n\nconst ToastContent = styled.div<{ $clip?: boolean }>`\n flex: 1;\n min-width: 0; /* needed for text to wrap/truncate inside flex container */\n ${({ $clip }) =>\n $clip &&\n css`\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n `}\n`;\n\nconst CloseButton = styled(IconButton)<{ isFocusVisible?: boolean }>`\n flex-shrink: 0;\n margin-left: auto;\n color: ${({ theme }) => semanticColor(theme, 'FgPrimaryStatic', Color.BorderIconPrimary)};\n\n &${isActive}${isNotDisabled}, &${isHovered}${isNotDisabled} {\n background-color: ${({ theme }) => {\n const tokens = semanticTokens(theme);\n return tokens\n ? withAlpha(tokens.ActionNeutralHover, tokens.
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["XIcon"],"sources":["../../../components/Toast/Toast.tsx"],"sourcesContent":["import { type HTMLMotionProps, motion } from 'framer-motion';\nimport type { ReactElement } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { IconButton } from '@persona/design-system/components/Button';\nimport {\n isActive,\n isFocused,\n isHovered,\n isNotDisabled,\n} from '@persona/design-system/lib/pseudoClass';\nimport { paragraphMixins } from '@persona/design-system/mixins/text';\nimport { Elevation } from '@persona/design-system/variables/effect';\nimport { TransitionDurationInSeconds } from '@persona/design-system/variables/transitions';\nimport { BorderRadius, Color, Spacing } from '@persona/design-tokens';\nimport { CircleAlertIcon, CircleCheckIcon, CircleInfoIcon } from '@persona/icons';\nimport { XIcon } from '@persona/icons/12px';\nimport { withAlpha } from 'design-system/lib/color';\nimport { MessageType } from 'design-system/lib/message';\nimport { semanticColor, semanticOnly, semanticTokens } from 'design-system/lib/semanticColor';\n\nexport interface ToastProps extends HTMLMotionProps<'div'> {\n id: string;\n message: React.ReactNode;\n messageType: MessageType;\n onDismiss?: () => void;\n shouldClipOverflow?: boolean;\n}\n\n// This is exported and used by whatever container is rendering the Toasts\nexport const TOAST_WIDTH = '324px';\n\nconst BaseToast = styled(motion.div)`\n border-radius: ${BorderRadius.Md};\n box-shadow: ${Elevation.Low};\n color: ${({ theme }) => semanticColor(theme, 'FgPrimaryStatic', theme.color.text.primary)};\n ${paragraphMixins.md};\n display: flex;\n align-items: center;\n gap: ${Spacing[2]};\n box-sizing: border-box;\n padding: ${Spacing[2]} ${Spacing[3]};\n width: 100%;\n`;\n\nconst ToastIcon = styled.div`\n flex-shrink: 0;\n display: flex;\n line-height: 0;\n color: ${({ theme }) => semanticColor(theme, 'FgPrimaryStatic', Color.BorderIconPrimary)};\n`;\n\nconst ToastContent = styled.div<{ $clip?: boolean }>`\n flex: 1;\n min-width: 0; /* needed for text to wrap/truncate inside flex container */\n ${({ $clip }) =>\n $clip &&\n css`\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n `}\n`;\n\nconst CloseButton = styled(IconButton)<{ isFocusVisible?: boolean }>`\n flex-shrink: 0;\n margin-left: auto;\n color: ${({ theme }) => semanticColor(theme, 'FgPrimaryStatic', Color.BorderIconPrimary)};\n\n &${isActive}${isNotDisabled}, &${isHovered}${isNotDisabled} {\n background-color: ${({ theme }) => {\n const tokens = semanticTokens(theme);\n return tokens\n ? withAlpha(tokens.ActionNeutralHover, tokens.Opacity25)\n : 'rgba(0, 0, 0, 0.05)';\n }};\n ${semanticOnly((tokens) => `color: ${tokens.FgPrimaryStatic};`)}\n }\n\n ${({ isFocusVisible }) =>\n !isFocusVisible &&\n css`\n &${isHovered}${isFocused}${isNotDisabled} {\n box-shadow: none;\n }\n &${isFocused}${isNotDisabled} {\n box-shadow: none;\n }\n `}\n`;\n\nconst NoticeToast = styled(BaseToast)`\n background: ${({ theme }) => semanticColor(theme, 'StatusInfo1', Color.CorePurple200)};\n`;\n\nconst SuccessToast = styled(BaseToast)`\n background: ${({ theme }) => semanticColor(theme, 'StatusSuccess1', Color.CoreGreen200)};\n`;\n\nconst FailureToast = styled(BaseToast)`\n background: ${({ theme }) => semanticColor(theme, 'StatusDanger2', Color.CoreRed200)};\n`;\n\nconst getStyledComponent = (variant: MessageType) => {\n switch (variant) {\n case MessageType.Success:\n return SuccessToast;\n case MessageType.Failure:\n return FailureToast;\n case MessageType.Notice:\n default:\n return NoticeToast;\n }\n};\n\nconst getIcon = (variant: MessageType): ReactElement => {\n switch (variant) {\n case MessageType.Success:\n return <CircleCheckIcon />;\n case MessageType.Failure:\n return <CircleAlertIcon />;\n case MessageType.Notice:\n default:\n return <CircleInfoIcon />;\n }\n};\n\nexport const Toast = ({\n message,\n messageType,\n onDismiss,\n shouldClipOverflow,\n ...elemProps\n}: ToastProps) => {\n const StyledToast = getStyledComponent(messageType);\n\n return (\n <StyledToast\n initial={{ y: 64, opacity: 0, scale: 0.96 }}\n animate={{ y: 0, opacity: 1, scale: 1 }}\n exit={{\n opacity: 0,\n scale: 0.9,\n transition: { duration: TransitionDurationInSeconds.MediumFast, ease: 'easeOut' },\n }}\n role='alert'\n aria-live='polite'\n transition={{ type: 'tween', duration: TransitionDurationInSeconds.Medium, ease: 'easeOut' }}\n {...elemProps}\n >\n <ToastIcon>{getIcon(messageType)}</ToastIcon>\n <ToastContent $clip={shouldClipOverflow}>{message}</ToastContent>\n {onDismiss && (\n <CloseButton size='sm' aria-label='Close' title='Close' onClick={onDismiss}>\n <XIcon />\n </CloseButton>\n )}\n </StyledToast>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;AA8BA,MAAa,cAAc;AAE3B,MAAM,YAAY,OAAO,OAAO,IAAI;mBACjB,aAAa,GAAG;kIACL;YAClB,EAAE,YAAY,cAAc,OAAO,mBAAmB,MAAM,MAAM,KAAK,QAAQ,CAAC;IACxF,gBAAgB,GAAG;;;SAGd,QAAQ,GAAG;;aAEP,QAAQ,GAAG,GAAG,QAAQ,GAAG;;;AAItC,MAAM,YAAY,OAAO,GAAG;;;;YAIhB,EAAE,YAAY,cAAc,OAAO,mBAAmB,MAAM,kBAAkB,CAAC;;AAG3F,MAAM,eAAe,OAAO,GAAwB;;;KAG/C,EAAE,YACH,SACA,GAAG;;;;MAID;;AAGN,MAAM,cAAc,OAAO,WAAW;;;YAG1B,EAAE,YAAY,cAAc,OAAO,mBAAmB,MAAM,kBAAkB,CAAC;;KAEtF,WAAW,cAAc,KAAK,YAAY,cAAc;yBACpC,EAAE,YAAY;CACjC,MAAM,SAAS,eAAe,MAAM;AACpC,QAAO,SACH,UAAU,OAAO,oBAAoB,OAAO,UAAU,GACtD;EACJ;MACA,cAAc,WAAW,UAAU,OAAO,gBAAgB,GAAG,CAAC;;;KAG/D,EAAE,qBACH,CAAC,kBACD,GAAG;SACE,YAAY,YAAY,cAAc;;;SAGtC,YAAY,cAAc;;;MAG7B;;AAGN,MAAM,cAAc,OAAO,UAAU;iBACpB,EAAE,YAAY,cAAc,OAAO,eAAe,MAAM,cAAc,CAAC;;AAGxF,MAAM,eAAe,OAAO,UAAU;iBACrB,EAAE,YAAY,cAAc,OAAO,kBAAkB,MAAM,aAAa,CAAC;;AAG1F,MAAM,eAAe,OAAO,UAAU;iBACrB,EAAE,YAAY,cAAc,OAAO,iBAAiB,MAAM,WAAW,CAAC;;AAGvF,MAAM,sBAAsB,YAAyB;AACnD,SAAQ,SAAR;EACE,KAAA,UACE,QAAO;EACT,KAAA,UACE,QAAO;EAET,QACE,QAAO;;;AAIb,MAAM,WAAW,YAAuC;AACtD,SAAQ,SAAR;EACE,KAAA,UACE,QAAO,oBAAC,iBAAD,EAAmB,CAAA;EAC5B,KAAA,UACE,QAAO,oBAAC,iBAAD,EAAmB,CAAA;EAE5B,QACE,QAAO,oBAAC,gBAAD,EAAkB,CAAA;;;AAI/B,MAAa,SAAS,EACpB,SACA,aACA,WACA,oBACA,GAAG,gBACa;AAGhB,QACE,qBAHkB,mBAAmB,YAGzB,EAAZ;EACE,SAAS;GAAE,GAAG;GAAI,SAAS;GAAG,OAAO;GAAM;EAC3C,SAAS;GAAE,GAAG;GAAG,SAAS;GAAG,OAAO;GAAG;EACvC,MAAM;GACJ,SAAS;GACT,OAAO;GACP,YAAY;IAAE,UAAA;IAAkD,MAAM;IAAW;GAClF;EACD,MAAK;EACL,aAAU;EACV,YAAY;GAAE,MAAM;GAAS,UAAA;GAA8C,MAAM;GAAW;EAC5F,GAAI;YAXN;GAaE,oBAAC,WAAD,EAAA,UAAY,QAAQ,YAAY,EAAa,CAAA;GAC7C,oBAAC,cAAD;IAAc,OAAO;cAAqB;IAAuB,CAAA;GAChE,aACC,oBAAC,aAAD;IAAa,MAAK;IAAK,cAAW;IAAQ,OAAM;IAAQ,SAAS;cAC/D,oBAACA,SAAD,EAAS,CAAA;IACG,CAAA;GAEJ"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ToggleProps, t as Toggle } from "../../Toggle-
|
|
1
|
+
import { n as ToggleProps, t as Toggle } from "../../Toggle-BYMLrPXk.mjs";
|
|
2
2
|
export { Toggle, Toggle as default, ToggleProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Toggle } from "../../Toggle-
|
|
1
|
+
import { t as Toggle } from "../../Toggle-D4ZaUcVt.mjs";
|
|
2
2
|
export { Toggle, Toggle as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as TooltipWithIconProps, n as Tooltip, r as TooltipStandardProps, t as FloatingTooltip } from "../../Tooltip-
|
|
2
|
-
import { t as HelperTooltip } from "../../HelperTooltip-
|
|
3
|
-
import { n as TextWithDashedUnderline, t as TextUnderlineTooltip } from "../../TextUnderlineTooltip-
|
|
1
|
+
import { i as TooltipWithIconProps, n as Tooltip, r as TooltipStandardProps, t as FloatingTooltip } from "../../Tooltip-4pshzB_i.mjs";
|
|
2
|
+
import { t as HelperTooltip } from "../../HelperTooltip-DcyrpEZI.mjs";
|
|
3
|
+
import { n as TextWithDashedUnderline, t as TextUnderlineTooltip } from "../../TextUnderlineTooltip-BgLQuK38.mjs";
|
|
4
4
|
export { FloatingTooltip, HelperTooltip, TextUnderlineTooltip, TextWithDashedUnderline, Tooltip, Tooltip as default, TooltipStandardProps, TooltipWithIconProps };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { n as VersionHistoryItemProps, r as VersionHistoryStatus } from "../../VersionHistoryItem-CIcEgl0K.mjs";
|
|
2
|
+
import { VersionHistory, VersionHistoryProps } from "../../VersionHistory.mjs";
|
|
3
|
+
export { VersionHistory, VersionHistory as default, type VersionHistoryItemProps, type VersionHistoryProps, type VersionHistoryStatus };
|