@persona/design-system 0.10.11 → 0.10.13
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 +52 -0
- package/dist/{Action-sLO73eKq.d.mts → Action-CHWYwpYR.d.mts} +2 -2
- package/dist/Action.d.mts +1 -1
- package/dist/AdvancedFilterRuleRow.d.mts +3 -0
- package/dist/AdvancedFilterRulesPopover.d.mts +4 -0
- package/dist/Attribute.d.mts +2 -2
- package/dist/{Badge-DZq6ByIU.mjs → Badge-B2AJMf3d.mjs} +2 -2
- package/dist/{Badge-DZq6ByIU.mjs.map → Badge-B2AJMf3d.mjs.map} +1 -1
- package/dist/{Breadcrumbs-DpsNZWF9.mjs → Breadcrumbs-DRs9eo1o.mjs} +8 -8
- package/dist/{Breadcrumbs-DpsNZWF9.mjs.map → Breadcrumbs-DRs9eo1o.mjs.map} +1 -1
- package/dist/{Button-C4a4BTjL.d.mts → Button-DjD8QxcY.d.mts} +2 -2
- package/dist/Button.d.mts +1 -1
- package/dist/CalendarBase.d.mts +1 -1
- package/dist/{Card-CPV4_mHk.d.mts → Card-DiUHtYg_.d.mts} +4 -4
- package/dist/Card.d.mts +1 -1
- package/dist/Card2.d.mts +1 -1
- package/dist/CardGrouping.d.mts +1 -1
- package/dist/{CardV2-DCoDfEvr.mjs → CardV2-DO-8COfu.mjs} +12 -12
- package/dist/{CardV2-DCoDfEvr.mjs.map → CardV2-DO-8COfu.mjs.map} +1 -1
- package/dist/{Checkbox-C3z7UUSC.mjs → Checkbox-BAh-wF_F.mjs} +5 -5
- package/dist/{Checkbox-C3z7UUSC.mjs.map → Checkbox-BAh-wF_F.mjs.map} +1 -1
- package/dist/{CheckboxGroupField-BT87OVOF.d.mts → CheckboxGroupField-BW_BcW3L.d.mts} +2 -2
- package/dist/CheckboxGroupField.d.mts +1 -1
- package/dist/{Combobox-aOJDTjzC.d.mts → Combobox-DgYwerwd.d.mts} +3 -3
- package/dist/{Combobox-BkK_tosd.mjs → Combobox-DmFQ5cAy.mjs} +92 -89
- package/dist/Combobox-DmFQ5cAy.mjs.map +1 -0
- package/dist/Combobox.d.mts +2 -2
- package/dist/{ComboboxBase-Brgv5nxk.d.mts → ComboboxBase-DoKiRjgS.d.mts} +6 -6
- package/dist/ComboboxBase.d.mts +1 -1
- package/dist/{ComboboxMultiSelect-DJyAv0Eg.d.mts → ComboboxMultiSelect-DsoIMJiZ.d.mts} +2 -2
- package/dist/ComboboxMultiSelect.d.mts +1 -1
- package/dist/{ComboboxSingleSelect-CP8-HLKl.d.mts → ComboboxSingleSelect-CKsqOAGB.d.mts} +3 -3
- package/dist/ComboboxSingleSelect.d.mts +1 -1
- package/dist/{CompactBar-B0LhjrYV.d.mts → CompactBar-tNtY2EhN.d.mts} +3 -3
- package/dist/CompactBar.d.mts +1 -1
- package/dist/{ConfigFormGroup-DAUqAhJW.mjs → ConfigFormGroup-BCTWCws5.mjs} +2 -2
- package/dist/{ConfigFormGroup-DAUqAhJW.mjs.map → ConfigFormGroup-BCTWCws5.mjs.map} +1 -1
- package/dist/{ControlBar-B3Jn8G0k.d.mts → ControlBar-CDb6b1_6.d.mts} +5 -3
- package/dist/ControlBar.d.mts +1 -1
- package/dist/{DataTable-DiwzhNMt.mjs → DataTable-DZ0B2Zm9.mjs} +159 -90
- package/dist/DataTable-DZ0B2Zm9.mjs.map +1 -0
- package/dist/{DataTable-CSl5Jn3E.d.mts → DataTable-on3vGhyi.d.mts} +32 -8
- package/dist/DataTable.d.mts +1 -1
- package/dist/{DatePicker-BK7ioKBm.mjs → DatePicker-CHVYVKB-.mjs} +375 -375
- package/dist/DatePicker-CHVYVKB-.mjs.map +1 -0
- package/dist/{DropdownButton-Dp-MZ5tA.mjs → DropdownButton-BxZ5hn0X.mjs} +3 -3
- package/dist/{DropdownButton-Dp-MZ5tA.mjs.map → DropdownButton-BxZ5hn0X.mjs.map} +1 -1
- package/dist/DropdownButton.d.mts +2 -2
- package/dist/{DropdownMenu-jJSHQaih.mjs → DropdownMenu-Ip75l4Th.mjs} +21 -4
- package/dist/DropdownMenu-Ip75l4Th.mjs.map +1 -0
- package/dist/{DropdownMenu-BnHPeHOm.d.mts → DropdownMenu-eVY-Yjpq.d.mts} +3 -3
- package/dist/DropdownMenu.d.mts +1 -1
- package/dist/{FilterBar-DDyk14sx.d.mts → FilterBar-CA4mDAXK.d.mts} +10 -2
- package/dist/FilterBar.d.mts +1 -1
- package/dist/{FloatingActionBar-BUgSKimy.d.mts → FloatingActionBar-CfgjHs81.d.mts} +5 -1
- package/dist/FloatingActionBar.d.mts +1 -1
- package/dist/{FloatingToolbar-rfKurDs8.mjs → FloatingToolbar-BA8Fqmrz.mjs} +4 -4
- package/dist/{FloatingToolbar-rfKurDs8.mjs.map → FloatingToolbar-BA8Fqmrz.mjs.map} +1 -1
- package/dist/{FormControl-DPYbLcBK.d.mts → FormControl-BQe3GRhi.d.mts} +2 -2
- package/dist/{FormControl--pbTH3bY.mjs → FormControl-BoKGiWdQ.mjs} +3 -3
- package/dist/{FormControl--pbTH3bY.mjs.map → FormControl-BoKGiWdQ.mjs.map} +1 -1
- package/dist/FormControl.d.mts +1 -1
- package/dist/FormControlLabel.d.mts +2 -2
- package/dist/{FormField-CYNGm2bJ.d.mts → FormField-BW5uMzId.d.mts} +2 -2
- package/dist/{FormField-DMxjftFw.mjs → FormField-BfVrDOY0.mjs} +13 -13
- package/dist/{FormField-DMxjftFw.mjs.map → FormField-BfVrDOY0.mjs.map} +1 -1
- package/dist/FormField.d.mts +1 -1
- package/dist/{Grid-DVC0SSEZ.mjs → Grid-CYpOqTUu.mjs} +2 -2
- package/dist/{Grid-DVC0SSEZ.mjs.map → Grid-CYpOqTUu.mjs.map} +1 -1
- package/dist/{Header-DaaUprCL.d.mts → Header-CV0Lcf0C.d.mts} +2 -2
- package/dist/Header.d.mts +1 -1
- package/dist/{HelperTooltip-C5BDdJSI.d.mts → HelperTooltip-BNM3pTM-.d.mts} +2 -2
- package/dist/HelperTooltip.d.mts +1 -1
- package/dist/HighlightedText.d.mts +1 -1
- package/dist/{HoverCopyableField-B2-xlwUt.mjs → HoverCopyableField-CJ_p3llp.mjs} +5 -5
- package/dist/{HoverCopyableField-B2-xlwUt.mjs.map → HoverCopyableField-CJ_p3llp.mjs.map} +1 -1
- package/dist/{IconButton-kSjnfhWt.mjs → IconButton-Bj1fry_K.mjs} +8 -8
- package/dist/{IconButton-kSjnfhWt.mjs.map → IconButton-Bj1fry_K.mjs.map} +1 -1
- package/dist/{IconButton-7k-wjvH3.d.mts → IconButton-C_ReZm8v.d.mts} +2 -2
- package/dist/IconButton.d.mts +1 -1
- package/dist/ImageTile.d.mts +1 -1
- package/dist/IndexTableLayout.d.mts +12 -4
- package/dist/InlineCombobox.d.mts +1 -1
- package/dist/InlineInput.d.mts +1 -1
- package/dist/{Input-CwvrBsiS.d.mts → Input-DH-5dKor.d.mts} +3 -3
- package/dist/{Input-TRmTBEav.mjs → Input-DcbzPaax.mjs} +5 -5
- package/dist/{Input-TRmTBEav.mjs.map → Input-DcbzPaax.mjs.map} +1 -1
- package/dist/Input.d.mts +1 -1
- package/dist/{Link-XvzUN8sY.mjs → Link-Df3zJrj2.mjs} +4 -4
- package/dist/{Link-XvzUN8sY.mjs.map → Link-Df3zJrj2.mjs.map} +1 -1
- package/dist/{ListBox-DahM1PgU.mjs → ListBox-BRgjgUSp.mjs} +12 -12
- package/dist/{ListBox-DahM1PgU.mjs.map → ListBox-BRgjgUSp.mjs.map} +1 -1
- package/dist/{ListBox-BePQBYR7.d.mts → ListBox-Bgug8YZF.d.mts} +3 -3
- package/dist/ListBox.d.mts +1 -1
- package/dist/{ListBoxField-lj7JN1BX.d.mts → ListBoxField-Cc1sX2bo.d.mts} +4 -4
- package/dist/ListBoxField.d.mts +1 -1
- package/dist/{LoadingShimmer-CpfKTSUs.mjs → LoadingShimmer-BVVdBeN-.mjs} +18 -21
- package/dist/LoadingShimmer-BVVdBeN-.mjs.map +1 -0
- package/dist/LoadingShimmer.d.mts +1 -1
- package/dist/{LogicRow-Do7t7Suf.d.mts → LogicRow-B1_35ZJT.d.mts} +2 -2
- package/dist/LogicRow.d.mts +1 -1
- package/dist/MaskedInput.d.mts +2 -2
- package/dist/MatchHighlight.d.mts +1 -1
- package/dist/{Menu-BvMzSH2I.mjs → Menu-BVn1jh46.mjs} +5 -5
- package/dist/{Menu-BvMzSH2I.mjs.map → Menu-BVn1jh46.mjs.map} +1 -1
- package/dist/{Menu-Ca5ftvo6.d.mts → Menu-keVl-eKm.d.mts} +4 -4
- package/dist/Menu.d.mts +1 -1
- package/dist/{MiddleTruncatedText--jzGTD00.mjs → MiddleTruncatedText-DicQsLDG.mjs} +2 -2
- package/dist/{MiddleTruncatedText--jzGTD00.mjs.map → MiddleTruncatedText-DicQsLDG.mjs.map} +1 -1
- package/dist/{Modal-BPfFyzkw.d.mts → Modal-CujB7DuB.d.mts} +3 -3
- package/dist/{Modal-B6X5AgWj.mjs → Modal-SnCo7ecm.mjs} +8 -7
- package/dist/Modal-SnCo7ecm.mjs.map +1 -0
- package/dist/Modal.d.mts +1 -1
- package/dist/{PageHeader-bhQTjuZF.mjs → PageHeader-6KvtGED-.mjs} +2 -2
- package/dist/{PageHeader-bhQTjuZF.mjs.map → PageHeader-6KvtGED-.mjs.map} +1 -1
- package/dist/{PageHeader-BeBmYmUX.d.mts → PageHeader-UPiqJpIF.d.mts} +2 -2
- package/dist/PageHeader.d.mts +1 -1
- package/dist/{PageLayout-BXM_pyrU.d.mts → PageLayout-BdVM37bV.d.mts} +2 -2
- package/dist/{PageLayout-DgEGcZgB.mjs → PageLayout-CPiVnS_r.mjs} +5 -3
- package/dist/PageLayout-CPiVnS_r.mjs.map +1 -0
- package/dist/PageLayout.d.mts +1 -1
- package/dist/{PageSelector-C14ABZVL.d.mts → PageSelector-B5CcAzss.d.mts} +2 -2
- package/dist/PageSelector.d.mts +1 -1
- package/dist/{Pagination-DE8wT55m.mjs → Pagination-CqFvnlXc.mjs} +5 -5
- package/dist/{Pagination-DE8wT55m.mjs.map → Pagination-CqFvnlXc.mjs.map} +1 -1
- package/dist/{Pii-C42ZY88Y.mjs → Pii-BYPkrBuT.mjs} +2 -2
- package/dist/{Pii-C42ZY88Y.mjs.map → Pii-BYPkrBuT.mjs.map} +1 -1
- package/dist/{Popover-DuFjaSoq.mjs → Popover-DP9DXReH.mjs} +48 -20
- package/dist/Popover-DP9DXReH.mjs.map +1 -0
- package/dist/Popover.d.mts +1 -1
- package/dist/ProgressBar.d.mts +1 -1
- package/dist/{ProgressIndicator-hy1P-RG1.mjs → ProgressIndicator-zt3ndT9U.mjs} +3 -3
- package/dist/{ProgressIndicator-hy1P-RG1.mjs.map → ProgressIndicator-zt3ndT9U.mjs.map} +1 -1
- package/dist/{Radio-B4TBAho6.mjs → Radio-B1H_S-Qj.mjs} +4 -4
- package/dist/{Radio-B4TBAho6.mjs.map → Radio-B1H_S-Qj.mjs.map} +1 -1
- package/dist/{RadioGroup-Bf24GKOb.mjs → RadioGroup-7hdcVhsp.mjs} +3 -3
- package/dist/{RadioGroup-Bf24GKOb.mjs.map → RadioGroup-7hdcVhsp.mjs.map} +1 -1
- package/dist/RichTextEditor.d.mts +1 -1
- package/dist/SectionHeading.d.mts +1 -1
- package/dist/{SegmentedControl-BpR7sUWO.mjs → SegmentedControl-BNOJ1FYQ.mjs} +3 -3
- package/dist/{SegmentedControl-BpR7sUWO.mjs.map → SegmentedControl-BNOJ1FYQ.mjs.map} +1 -1
- package/dist/{Select-DYdn73Nh.d.mts → Select-CiofH5-f.d.mts} +2 -2
- package/dist/{Select-RdTT2KoH.mjs → Select-DbWEgH5c.mjs} +9 -9
- package/dist/{Select-RdTT2KoH.mjs.map → Select-DbWEgH5c.mjs.map} +1 -1
- package/dist/Select.d.mts +1 -1
- package/dist/SmartTextInput.d.mts +1 -1
- package/dist/SmartTextInputField.d.mts +2 -2
- package/dist/SmartTextInputFunctionDialog.d.mts +1 -1
- package/dist/SmartTextInputListbox.d.mts +8 -3
- package/dist/SmartTextInputPopover.d.mts +1 -1
- package/dist/{Spinner-vcApnJzv.mjs → Spinner-k9ZiOdTr.mjs} +2 -2
- package/dist/{Spinner-vcApnJzv.mjs.map → Spinner-k9ZiOdTr.mjs.map} +1 -1
- package/dist/{Stack-B6MrjJeW.d.mts → Stack-CODxfzhl.d.mts} +2 -2
- package/dist/Stack.d.mts +1 -1
- package/dist/{StatusIndicator-lwt35J6B.mjs → StatusIndicator-CzRaEFSz.mjs} +3 -3
- package/dist/{StatusIndicator-lwt35J6B.mjs.map → StatusIndicator-CzRaEFSz.mjs.map} +1 -1
- package/dist/{Sticker-jfOM4Yi6.mjs → Sticker-4VdGEFAu.mjs} +5 -5
- package/dist/{Sticker-jfOM4Yi6.mjs.map → Sticker-4VdGEFAu.mjs.map} +1 -1
- package/dist/{Sticker-C7Wv3Obx.d.mts → Sticker-CLvRB8V5.d.mts} +4 -4
- package/dist/Sticker.d.mts +1 -1
- package/dist/Tab.d.mts +2 -2
- package/dist/{TabBar-DwHgbIQ6.mjs → TabBar-d4sdknti.mjs} +6 -6
- package/dist/{TabBar-DwHgbIQ6.mjs.map → TabBar-d4sdknti.mjs.map} +1 -1
- package/dist/{Table-SMJAWqoe.mjs → Table-9mNn8Q-d.mjs} +10 -10
- package/dist/{Table-SMJAWqoe.mjs.map → Table-9mNn8Q-d.mjs.map} +1 -1
- package/dist/{TableBox-DS8mpN3-.mjs → TableBox-RxpwflEb.mjs} +14 -14
- package/dist/{TableBox-DS8mpN3-.mjs.map → TableBox-RxpwflEb.mjs.map} +1 -1
- package/dist/TableBox.d.mts +1 -1
- package/dist/{TableBoxCell-Bo5xYEmR.d.mts → TableBoxCell-C65YFYqj.d.mts} +6 -6
- package/dist/TableBoxCell.d.mts +1 -1
- package/dist/{TableBoxField-CdgjSGLK.d.mts → TableBoxField-CHpClgsE.d.mts} +5 -5
- package/dist/TableBoxField.d.mts +1 -1
- package/dist/{TableBoxRow-DuWS2iRC.d.mts → TableBoxRow-CK-b79uD.d.mts} +2 -2
- package/dist/TableBoxRow.d.mts +1 -1
- package/dist/{TableBoxRowActions-zW74DkXt.d.mts → TableBoxRowActions-CRaabjaY.d.mts} +2 -2
- package/dist/TableBoxRowActions.d.mts +1 -1
- package/dist/{TableCell-uv_jqT5e.d.mts → TableCell-CQsF7t4e.d.mts} +2 -2
- package/dist/TableCell.d.mts +1 -1
- package/dist/{TableControls-CX7BvgD2.mjs → TableControls-DM4RddQ_.mjs} +77 -36
- package/dist/TableControls-DM4RddQ_.mjs.map +1 -0
- package/dist/{TableControls-9vz-HfDu.d.mts → TableControls-v1NmlFTW.d.mts} +5 -5
- package/dist/TableControls.d.mts +1 -1
- package/dist/{TableControlsContext-D0Hn3rwL.d.mts → TableControlsContext-DHYICXxy.d.mts} +2 -2
- package/dist/TableControlsContext.d.mts +1 -1
- package/dist/{TableViewConfigurationDropdown-CZcLH8uR.d.mts → TableViewConfigurationDropdown-1nT8wneI.d.mts} +2 -2
- package/dist/TableViewConfigurationDropdown.d.mts +1 -1
- package/dist/{TechnicalSticker-DrN45Vut.mjs → TechnicalSticker-DtV7Gawf.mjs} +7 -7
- package/dist/{TechnicalSticker-DrN45Vut.mjs.map → TechnicalSticker-DtV7Gawf.mjs.map} +1 -1
- package/dist/{Text-CdHeSHCc.d.mts → Text-CvaqognH.d.mts} +2 -2
- package/dist/Text.d.mts +1 -1
- package/dist/{TextUnderlineTooltip-By1VVsSs.d.mts → TextUnderlineTooltip-Bd5e8KH3.d.mts} +3 -3
- package/dist/TextUnderlineTooltip.d.mts +1 -1
- package/dist/Tile.d.mts +1 -1
- package/dist/{Toggle-DjmkjJlw.mjs → Toggle-CzHoIR-n.mjs} +6 -6
- package/dist/{Toggle-DjmkjJlw.mjs.map → Toggle-CzHoIR-n.mjs.map} +1 -1
- package/dist/{Tooltip-C2VB8I6y.mjs → Tooltip-CVBxc1yf.mjs} +4 -4
- package/dist/{Tooltip-C2VB8I6y.mjs.map → Tooltip-CVBxc1yf.mjs.map} +1 -1
- package/dist/{Tooltip-OxVvOfn8.d.mts → Tooltip-Ddy2Jq0K.d.mts} +3 -3
- package/dist/Tooltip.d.mts +1 -1
- package/dist/{TruncatedText-Dqj94BFK.d.mts → TruncatedText-sr9Fhm3N.d.mts} +2 -2
- package/dist/WizardModal.d.mts +1 -1
- package/dist/{clientFilterUtils-CMLuN8kK.d.mts → clientFilterUtils-CaF2QZBy.d.mts} +2 -2
- package/dist/clientFilterUtils.d.mts +1 -1
- package/dist/components/Accordion/index.mjs +5 -5
- package/dist/components/Attribute/index.mjs +6 -6
- package/dist/components/Badge/index.mjs +1 -1
- package/dist/components/Banner/index.mjs +3 -3
- package/dist/components/BottomPanel/index.mjs +7 -7
- 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.mjs +1 -1
- package/dist/components/CodeHighlight/index.mjs +4 -4
- package/dist/components/Combobox/index.d.mts +4 -4
- package/dist/components/Combobox/index.mjs +1 -1
- package/dist/components/ConfigFormGroup/index.mjs +1 -1
- package/dist/components/DataTable/TableControls/index.d.mts +9 -9
- package/dist/components/DataTable/TableControls/index.mjs +1 -1
- package/dist/components/DataTable/index.d.mts +6 -6
- package/dist/components/DataTable/index.mjs +1 -1
- package/dist/components/DataTable/types.d.mts +1 -1
- package/dist/components/DatePicker/index.mjs +1 -1
- package/dist/components/DropdownButton/index.mjs +1 -1
- package/dist/components/DropdownMenu/index.d.mts +1 -1
- package/dist/components/DropdownMenu/index.mjs +1 -1
- package/dist/components/FloatingPanel/index.mjs +8 -8
- package/dist/components/FloatingToolbar/index.mjs +1 -1
- package/dist/components/FormControl/index.d.mts +1 -1
- package/dist/components/FormControl/index.mjs +1 -1
- package/dist/components/FormField/index.d.mts +5 -5
- 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 +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 +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.d.mts +1 -1
- package/dist/components/PageHeader/index.mjs +1 -1
- package/dist/components/Pagination/index.d.mts +1 -1
- 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 +2 -2
- package/dist/components/ProgressIndicator/index.mjs +1 -1
- package/dist/components/Radio/index.mjs +1 -1
- package/dist/components/RadioGroup/index.mjs +1 -1
- package/dist/components/RichTextEditor/index.mjs +9 -9
- package/dist/components/RightPanel/index.mjs +4 -4
- 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/SelectionCard/index.mjs +5 -5
- package/dist/components/Slider/index.mjs +4 -4
- package/dist/components/SmartTextInput/index.mjs +112 -118
- package/dist/components/SmartTextInput/index.mjs.map +1 -1
- package/dist/{safe-parse.d.mts → components/SmartTextInput/parser/safe-parse.d.mts} +1 -1
- package/dist/components/SmartTextInput/parser/safe-parse.mjs +30 -0
- package/dist/components/SmartTextInput/parser/safe-parse.mjs.map +1 -0
- package/dist/{tree.d.mts → components/SmartTextInput/parser/tree.d.mts} +1 -1
- package/dist/components/SmartTextInput/parser/tree.mjs +42 -0
- package/dist/components/SmartTextInput/parser/tree.mjs.map +1 -0
- package/dist/components/Spinner/index.mjs +1 -1
- package/dist/components/Stack/index.d.mts +1 -1
- package/dist/components/StatusIndicator/index.mjs +1 -1
- package/dist/components/Sticker/index.d.mts +1 -1
- package/dist/components/Sticker/index.mjs +1 -1
- package/dist/components/SwatchPicker/index.mjs +1 -1
- package/dist/components/TabBar/index.mjs +1 -1
- package/dist/components/Table/index.d.mts +1 -1
- package/dist/components/Table/index.mjs +1 -1
- package/dist/components/TableBox/index.d.mts +1 -1
- package/dist/components/TableBox/index.mjs +1 -1
- package/dist/components/TechnicalSticker/index.mjs +1 -1
- package/dist/components/Text/index.d.mts +1 -1
- package/dist/components/Tile/index.mjs +2 -2
- package/dist/components/Toast/index.mjs +4 -4
- 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/components/VersionHistory/index.mjs +7 -7
- package/dist/fieldPickerOptions.d.mts +1 -1
- package/dist/{filters-By_TYKAZ.d.mts → filters-CShP0Jag.d.mts} +3 -3
- package/dist/filters.d.mts +1 -1
- package/dist/{helpers-BIHsqdyX.d.mts → helpers-Bbi1LyMW.d.mts} +5 -3
- package/dist/helpers.d.mts +1 -1
- package/dist/{index-CZJp4Af6.d.mts → index-3-eDlpcj.d.mts} +3 -3
- package/dist/{index-BozzRwby.d.mts → index-DTM_t7OG.d.mts} +2 -2
- package/dist/index2.d.mts +1 -1
- package/dist/index4.d.mts +2 -2
- package/dist/index6.d.mts +2 -2
- package/dist/{inputFields-BqO2H-Kj.d.mts → inputFields-Dobwb4kT.d.mts} +6 -6
- package/dist/inputFields.d.mts +1 -1
- package/dist/lib/MiddleTruncatedText.mjs +1 -1
- package/dist/lib/PDSProvider.d.mts +2 -1
- package/dist/lib/PDSProvider.mjs +8 -3
- package/dist/lib/PDSProvider.mjs.map +1 -1
- package/dist/lib/TruncatedText.d.mts +1 -1
- package/dist/lib/TruncatedTextWithTooltip.d.mts +1 -1
- package/dist/lib/TruncatedTextWithTooltip.mjs +1 -1
- package/dist/lib/colorMode.d.mts +19 -8
- package/dist/lib/colorMode.mjs +47 -13
- package/dist/lib/colorMode.mjs.map +1 -1
- package/dist/lib/schemaOptions.mjs +1 -1
- package/dist/lib/schemaOptions.mjs.map +1 -1
- package/dist/lib/useChain.d.mts +1 -1
- package/dist/lib/useCloseFocus.d.mts +45 -0
- package/dist/lib/useCloseFocus.mjs +123 -0
- package/dist/lib/useCloseFocus.mjs.map +1 -0
- package/dist/mixins/focus.mjs +1 -1
- package/dist/mixins/hoverable.mjs +1 -1
- package/dist/mixins/input.mjs +2 -2
- package/dist/mixins/motion.d.mts +6 -2
- package/dist/mixins/motion.mjs +25 -3
- package/dist/mixins/motion.mjs.map +1 -1
- package/dist/patterns/CardGrouping/index.mjs +8 -8
- package/dist/patterns/IndexTableLayout/index.mjs +23 -16
- package/dist/patterns/IndexTableLayout/index.mjs.map +1 -1
- package/dist/patterns/LayoutLoadingShimmer/index.mjs +4 -4
- package/dist/patterns/LayoutLoadingSpinner/index.mjs +1 -1
- package/dist/patterns/PageLayout/index.d.mts +1 -1
- package/dist/patterns/PageLayout/index.mjs +1 -1
- package/dist/patterns/WizardModal/index.mjs +4 -4
- package/dist/tone.d.mts +1 -1
- package/dist/{types-C_CncajO.d.mts → types-BTaKBrxG.d.mts} +2 -2
- package/dist/{types-D5txFacG.d.mts → types-CUnL8JJj.d.mts} +7 -5
- package/dist/types5.d.mts +1 -1
- package/dist/{useChain-x9fd9Fyq.d.mts → useChain-B--KAtdN.d.mts} +2 -2
- package/dist/useChainAtCursor.d.mts +1 -1
- package/dist/useColumnConfiguration.d.mts +2 -2
- package/dist/useComboboxFooterAction.d.mts +1 -1
- package/dist/{useTableColumns-BEKJNrb1.d.mts → useTableColumns-BuxN7Usm.d.mts} +17 -2
- package/dist/useTableColumns.d.mts +1 -1
- package/dist/useTruncation.d.mts +1 -1
- package/dist/utils4.d.mts +1 -1
- package/dist/value-labels.d.mts +12 -0
- package/dist/withDisabledReason.d.mts +19 -0
- package/llms.txt +5 -4
- package/package.json +10 -12
- package/skills/ui-authoring/COMPONENTS.md +1 -2
- package/skills/ui-authoring/PATTERNS.md +6 -66
- package/skills/ui-authoring/STANDARD.md +11 -1
- package/skills/ui-authoring/TOKENS.md +14 -25
- package/dist/ChartFrame.d.mts +0 -61
- package/dist/ChartLegend.d.mts +0 -60
- package/dist/ChartPopover.d.mts +0 -155
- package/dist/Combobox-BkK_tosd.mjs.map +0 -1
- package/dist/DataTable-DiwzhNMt.mjs.map +0 -1
- package/dist/DatePicker-BK7ioKBm.mjs.map +0 -1
- package/dist/DropdownMenu-jJSHQaih.mjs.map +0 -1
- package/dist/LoadingShimmer-CpfKTSUs.mjs.map +0 -1
- package/dist/Modal-B6X5AgWj.mjs.map +0 -1
- package/dist/PageLayout-DgEGcZgB.mjs.map +0 -1
- package/dist/Popover-DuFjaSoq.mjs.map +0 -1
- package/dist/TableControls-CX7BvgD2.mjs.map +0 -1
- package/dist/chartColors.d.mts +0 -92
- package/dist/chartFrameLayout.d.mts +0 -46
- package/dist/components/Chart/index.d.mts +0 -9
- package/dist/components/Chart/index.mjs +0 -680
- package/dist/components/Chart/index.mjs.map +0 -1
- package/dist/useChartColors.d.mts +0 -30
- package/dist/useChartSeriesVisibility.d.mts +0 -22
- package/dist/useChartStyles.d.mts +0 -108
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { NodeType } from "./smart-text/types.mjs";
|
|
2
|
+
import { parse as peg$parse } from "./smart-text/parser.mjs";
|
|
3
|
+
//#region src/components/SmartTextInput/parser/safe-parse.ts
|
|
4
|
+
/**
|
|
5
|
+
* Parses the input string into an ASTNode tree.
|
|
6
|
+
*/
|
|
7
|
+
function safeParse(input, options) {
|
|
8
|
+
try {
|
|
9
|
+
return peg$parse(input, {
|
|
10
|
+
startRule: "Root",
|
|
11
|
+
strict: false,
|
|
12
|
+
...options
|
|
13
|
+
});
|
|
14
|
+
} catch {
|
|
15
|
+
return {
|
|
16
|
+
type: NodeType.Root,
|
|
17
|
+
start: 0,
|
|
18
|
+
end: input.length,
|
|
19
|
+
children: [{
|
|
20
|
+
type: NodeType.Error,
|
|
21
|
+
start: 0,
|
|
22
|
+
end: input.length
|
|
23
|
+
}]
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { safeParse };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=safe-parse.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"safe-parse.mjs","names":["parse"],"sources":["../../../../src/components/SmartTextInput/parser/safe-parse.ts"],"sourcesContent":["import { parse, type ParseOptions } from './smart-text/parser.js';\nimport { NodeType, type ASTNode } from './smart-text/types';\n\n/**\n * Parses the input string into an ASTNode tree.\n */\nexport function safeParse(input: string, options?: ParseOptions): ASTNode {\n try {\n return parse(input, { startRule: 'Root', strict: false, ...options });\n } catch {\n return {\n type: NodeType.Root,\n start: 0,\n end: input.length,\n children: [{ type: NodeType.Error, start: 0, end: input.length }],\n };\n }\n}\n\nexport type { ParseOptions };\n"],"mappings":";;;;;;AAMA,SAAgB,UAAU,OAAe,SAAiC;AACxE,KAAI;AACF,SAAOA,UAAM,OAAO;GAAE,WAAW;GAAQ,QAAQ;GAAO,GAAG;GAAS,CAAC;SAC/D;AACN,SAAO;GACL,MAAM,SAAS;GACf,OAAO;GACP,KAAK,MAAM;GACX,UAAU,CAAC;IAAE,MAAM,SAAS;IAAO,OAAO;IAAG,KAAK,MAAM;IAAQ,CAAC;GAClE"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { NodeType } from "./smart-text/types.mjs";
|
|
2
|
+
//#region src/components/SmartTextInput/parser/tree.ts
|
|
3
|
+
function getChildren(node) {
|
|
4
|
+
return node.children ?? [];
|
|
5
|
+
}
|
|
6
|
+
function findAll(node, type, acc = []) {
|
|
7
|
+
if (node.type === type) acc.push(node);
|
|
8
|
+
getChildren(node).forEach((c) => findAll(c, type, acc));
|
|
9
|
+
return acc;
|
|
10
|
+
}
|
|
11
|
+
function resolve(node, charIdx) {
|
|
12
|
+
if (charIdx < node.start || charIdx >= Math.max(node.end, node.start + 1)) return null;
|
|
13
|
+
const children = getChildren(node);
|
|
14
|
+
for (let i = 0; i < children.length; i++) {
|
|
15
|
+
const hit = resolve(children[i], charIdx);
|
|
16
|
+
if (hit) return hit;
|
|
17
|
+
}
|
|
18
|
+
return node;
|
|
19
|
+
}
|
|
20
|
+
function findAncestor(root, target, pred) {
|
|
21
|
+
function walk(n, ancestors) {
|
|
22
|
+
if (n === target) {
|
|
23
|
+
for (let i = ancestors.length - 1; i >= 0; i--) if (pred(ancestors[i])) return [true, ancestors[i]];
|
|
24
|
+
return [true, null];
|
|
25
|
+
}
|
|
26
|
+
const children = getChildren(n);
|
|
27
|
+
for (let j = 0; j < children.length; j++) {
|
|
28
|
+
const [found, result] = walk(children[j], ancestors.concat([n]));
|
|
29
|
+
if (found) return [true, result];
|
|
30
|
+
}
|
|
31
|
+
return [false, null];
|
|
32
|
+
}
|
|
33
|
+
const [, result] = walk(root, []);
|
|
34
|
+
return result;
|
|
35
|
+
}
|
|
36
|
+
function enclosingExpr(root, node) {
|
|
37
|
+
return findAncestor(root, node, (a) => a.type === NodeType.Handlebars || a.type === NodeType.Code);
|
|
38
|
+
}
|
|
39
|
+
//#endregion
|
|
40
|
+
export { enclosingExpr, findAll, resolve };
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=tree.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree.mjs","names":[],"sources":["../../../../src/components/SmartTextInput/parser/tree.ts"],"sourcesContent":["// ---------------------------------------------------------------------------\n// Pure AST traversal helpers\n// ---------------------------------------------------------------------------\n\nimport { NodeType, type ASTNode } from './smart-text/types';\n\nfunction getChildren(node: ASTNode): ASTNode[] {\n return (node.children as ASTNode[]) ?? [];\n}\n\nexport function findAll(node: ASTNode, type: string, acc: ASTNode[] = []): ASTNode[] {\n if (node.type === type) {\n acc.push(node);\n }\n getChildren(node).forEach((c) => findAll(c, type, acc));\n return acc;\n}\n\nexport function resolve(node: ASTNode, charIdx: number): ASTNode | null {\n if (charIdx < node.start || charIdx >= Math.max(node.end, node.start + 1)) {\n return null;\n }\n const children = getChildren(node);\n\n for (let i = 0; i < children.length; i++) {\n const hit = resolve(children[i], charIdx);\n if (hit) {\n return hit;\n }\n }\n return node;\n}\n\nfunction findAncestor(\n root: ASTNode,\n target: ASTNode,\n pred: (n: ASTNode) => boolean,\n): ASTNode | null {\n // Returns [found, result]: found=true means target was encountered in subtree\n function walk(n: ASTNode, ancestors: ASTNode[]): [boolean, ASTNode | null] {\n if (n === target) {\n for (let i = ancestors.length - 1; i >= 0; i--) {\n if (pred(ancestors[i])) {\n return [true, ancestors[i]];\n }\n }\n return [true, null];\n }\n const children = getChildren(n);\n for (let j = 0; j < children.length; j++) {\n const [found, result] = walk(children[j], ancestors.concat([n]));\n if (found) {\n return [true, result];\n }\n }\n return [false, null];\n }\n const [, result] = walk(root, []);\n return result;\n}\n\nexport function enclosingExpr(root: ASTNode, node: ASTNode): ASTNode | null {\n return findAncestor(\n root,\n node,\n (a) => a.type === NodeType.Handlebars || a.type === NodeType.Code,\n );\n}\n"],"mappings":";;AAMA,SAAS,YAAY,MAA0B;AAC7C,QAAQ,KAAK,YAA0B,EAAE;;AAG3C,SAAgB,QAAQ,MAAe,MAAc,MAAiB,EAAE,EAAa;AACnF,KAAI,KAAK,SAAS,KAChB,KAAI,KAAK,KAAK;AAEhB,aAAY,KAAK,CAAC,SAAS,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC;AACvD,QAAO;;AAGT,SAAgB,QAAQ,MAAe,SAAiC;AACtE,KAAI,UAAU,KAAK,SAAS,WAAW,KAAK,IAAI,KAAK,KAAK,KAAK,QAAQ,EAAE,CACvE,QAAO;CAET,MAAM,WAAW,YAAY,KAAK;AAElC,MAAK,IAAI,IAAI,GAAG,IAAI,SAAS,QAAQ,KAAK;EACxC,MAAM,MAAM,QAAQ,SAAS,IAAI,QAAQ;AACzC,MAAI,IACF,QAAO;;AAGX,QAAO;;AAGT,SAAS,aACP,MACA,QACA,MACgB;CAEhB,SAAS,KAAK,GAAY,WAAiD;AACzE,MAAI,MAAM,QAAQ;AAChB,QAAK,IAAI,IAAI,UAAU,SAAS,GAAG,KAAK,GAAG,IACzC,KAAI,KAAK,UAAU,GAAG,CACpB,QAAO,CAAC,MAAM,UAAU,GAAG;AAG/B,UAAO,CAAC,MAAM,KAAK;;EAErB,MAAM,WAAW,YAAY,EAAE;AAC/B,OAAK,IAAI,IAAI,GAAG,IAAI,SAAS,QAAQ,KAAK;GACxC,MAAM,CAAC,OAAO,UAAU,KAAK,SAAS,IAAI,UAAU,OAAO,CAAC,EAAE,CAAC,CAAC;AAChE,OAAI,MACF,QAAO,CAAC,MAAM,OAAO;;AAGzB,SAAO,CAAC,OAAO,KAAK;;CAEtB,MAAM,GAAG,UAAU,KAAK,MAAM,EAAE,CAAC;AACjC,QAAO;;AAGT,SAAgB,cAAc,MAAe,MAA+B;AAC1E,QAAO,aACL,MACA,OACC,MAAM,EAAE,SAAS,SAAS,cAAc,EAAE,SAAS,SAAS,KAC9D"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Spinner } from "../../Spinner-
|
|
1
|
+
import { t as Spinner } from "../../Spinner-k9ZiOdTr.mjs";
|
|
2
2
|
export { Spinner, Spinner as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as StackProps, n as HStackProps, r as Stack, t as HStack } from "../../Stack-
|
|
1
|
+
import { i as StackProps, n as HStackProps, r as Stack, t as HStack } from "../../Stack-CODxfzhl.mjs";
|
|
2
2
|
export { HStack, HStackProps, Stack, Stack as default, StackProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as StatusIndicator, t as STATUSES } from "../../StatusIndicator-
|
|
1
|
+
import { n as StatusIndicator, t as STATUSES } from "../../StatusIndicator-CzRaEFSz.mjs";
|
|
2
2
|
export { STATUSES, StatusIndicator, StatusIndicator as default };
|
|
@@ -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-CLvRB8V5.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-4VdGEFAu.mjs";
|
|
2
2
|
export { STICKER_COLOR_CONFIG, Sticker, Sticker as default, StickerContainer, StickerContentContainer, StyledTruncatedText };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as styled } from "../../styledComponentsInterop-Cs5CCPRy.mjs";
|
|
2
2
|
import { semanticColor } from "../../lib/semanticColor.mjs";
|
|
3
|
-
import "../../variables/effect.mjs";
|
|
4
3
|
import "../../variables/transitions.mjs";
|
|
4
|
+
import "../../variables/effect.mjs";
|
|
5
5
|
import { BorderRadius, Color, Spacing } from "@persona/design-tokens";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/SwatchPicker/SwatchPicker.tsx
|
|
@@ -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-d4sdknti.mjs";
|
|
2
2
|
export { StyledTab, Tab, TabBar, TabBar as default, TabBarIconButton_default as TabBarIconButton, TabContainer };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as Table } from "../../Table-qsIo7V-R.mjs";
|
|
2
2
|
import { t as TableHeaderCell } from "../../TableHeaderCell-CAfcFwJy.mjs";
|
|
3
3
|
import { t as TableRow } from "../../TableRow-C4eHuRF3.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-
|
|
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-CQsF7t4e.mjs";
|
|
5
5
|
import { t as TableHead } from "../../TableHead-Dq0Fi4hP.mjs";
|
|
6
6
|
import { t as TableBody } from "../../TableBody-1fqZP2Cb.mjs";
|
|
7
7
|
import { t as TableTH } from "../../index-aK04IR94.mjs";
|
|
@@ -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-9mNn8Q-d.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
1
|
import { t as DragDirection } from "../../useTableBoxDragAndDrop-MwbXWWDQ.mjs";
|
|
2
|
-
import { a as TableBox, o as TableBoxContext, r as InlineEditConfig, s as TableBoxProps } from "../../TableBoxCell-
|
|
2
|
+
import { a as TableBox, o as TableBoxContext, r as InlineEditConfig, s as TableBoxProps } from "../../TableBoxCell-C65YFYqj.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-RxpwflEb.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-DtV7Gawf.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-CvaqognH.mjs";
|
|
2
2
|
export { Display, DisplayProps, Heading, HeadingProps, Label, LabelProps, Paragraph, ParagraphProps, Span, SpanProps, TabularNumber };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as styled } from "../../styledComponentsInterop-Cs5CCPRy.mjs";
|
|
2
2
|
import { semanticColor } from "../../lib/semanticColor.mjs";
|
|
3
3
|
import { i as Paragraph, n as Heading } from "../../Text-D0vEReED.mjs";
|
|
4
|
-
import { t as TextUnderlineTooltip } from "../../Tooltip-
|
|
4
|
+
import { t as TextUnderlineTooltip } from "../../Tooltip-CVBxc1yf.mjs";
|
|
5
5
|
import { n as Stack, t as HStack } from "../../Stack-Bzom2BTR.mjs";
|
|
6
|
-
import { n as Sticker } from "../../Sticker-
|
|
6
|
+
import { n as Sticker } from "../../Sticker-4VdGEFAu.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";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { a as styled, r as css } from "../../styledComponentsInterop-Cs5CCPRy.mjs";
|
|
2
|
-
import { isActive, isFocused, isHovered, isNotDisabled } from "../../lib/pseudoClass.mjs";
|
|
3
2
|
import { semanticColor, semanticOnly, semanticTokens } from "../../lib/semanticColor.mjs";
|
|
4
|
-
import "../../
|
|
3
|
+
import { paragraphMixins } from "../../mixins/text.mjs";
|
|
5
4
|
import { ReducedMotionFade, TransitionEasingCurve } from "../../variables/transitions.mjs";
|
|
6
5
|
import { withAlpha } from "../../lib/color.mjs";
|
|
7
|
-
import { paragraphMixins } from "../../mixins/text.mjs";
|
|
8
6
|
import "../../lib/message.mjs";
|
|
9
|
-
import {
|
|
7
|
+
import { isActive, isFocused, isHovered, isNotDisabled } from "../../lib/pseudoClass.mjs";
|
|
8
|
+
import "../../variables/effect.mjs";
|
|
9
|
+
import { t as IconButton } from "../../IconButton-Bj1fry_K.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";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Toggle } from "../../Toggle-
|
|
1
|
+
import { t as Toggle } from "../../Toggle-CzHoIR-n.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-Ddy2Jq0K.mjs";
|
|
2
|
+
import { t as HelperTooltip } from "../../HelperTooltip-BNM3pTM-.mjs";
|
|
3
|
+
import { n as TextWithDashedUnderline, t as TextUnderlineTooltip } from "../../TextUnderlineTooltip-Bd5e8KH3.mjs";
|
|
4
4
|
export { FloatingTooltip, HelperTooltip, TextUnderlineTooltip, TextWithDashedUnderline, Tooltip, Tooltip as default, TooltipStandardProps, TooltipWithIconProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as Tooltip, i as FloatingTooltip, n as TextWithDashedUnderline, r as HelperTooltip, t as TextUnderlineTooltip } from "../../Tooltip-
|
|
1
|
+
import { a as Tooltip, i as FloatingTooltip, n as TextWithDashedUnderline, r as HelperTooltip, t as TextUnderlineTooltip } from "../../Tooltip-CVBxc1yf.mjs";
|
|
2
2
|
export { FloatingTooltip, HelperTooltip, TextUnderlineTooltip, TextWithDashedUnderline, Tooltip, Tooltip as default };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { a as styled } from "../../styledComponentsInterop-Cs5CCPRy.mjs";
|
|
2
2
|
import { semanticColor } from "../../lib/semanticColor.mjs";
|
|
3
|
+
import { i as Paragraph } from "../../Text-D0vEReED.mjs";
|
|
3
4
|
import { focusOutline } from "../../mixins/focus.mjs";
|
|
4
5
|
import { semanticScrollbar } from "../../mixins/scrollbar.mjs";
|
|
5
|
-
import { i as Paragraph } from "../../Text-D0vEReED.mjs";
|
|
6
6
|
import { n as Stack, t as HStack } from "../../Stack-Bzom2BTR.mjs";
|
|
7
|
-
import { n as Button, t as IconButton } from "../../IconButton-
|
|
8
|
-
import { n as DropdownMenu_default } from "../../DropdownMenu-
|
|
9
|
-
import { t as Spinner } from "../../Spinner-
|
|
10
|
-
import { i as Modal_default } from "../../Modal-
|
|
7
|
+
import { n as Button, t as IconButton } from "../../IconButton-Bj1fry_K.mjs";
|
|
8
|
+
import { n as DropdownMenu_default } from "../../DropdownMenu-Ip75l4Th.mjs";
|
|
9
|
+
import { t as Spinner } from "../../Spinner-k9ZiOdTr.mjs";
|
|
10
|
+
import { i as Modal_default } from "../../Modal-SnCo7ecm.mjs";
|
|
11
11
|
import { t as TextAreaWithStyle } from "../../TextArea-CQ1YNi2b.mjs";
|
|
12
|
-
import { n as StatusIndicator } from "../../StatusIndicator-
|
|
13
|
-
import { Color, Spacing } from "@persona/design-tokens";
|
|
12
|
+
import { n as StatusIndicator } from "../../StatusIndicator-CzRaEFSz.mjs";
|
|
14
13
|
import { useCallback, useMemo, useState } from "react";
|
|
14
|
+
import { Color, Spacing } from "@persona/design-tokens";
|
|
15
15
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
16
16
|
import { MoreIcon, XIcon } from "@persona/icons";
|
|
17
17
|
//#region src/components/VersionHistory/VersionHistoryItem.tsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as ComboboxOptionsOrGroups } from "./ComboboxBase-
|
|
1
|
+
import { o as ComboboxOptionsOrGroups } from "./ComboboxBase-DoKiRjgS.mjs";
|
|
2
2
|
import { t as FieldRegistry } from "./FieldRegistry-CJwGpUVK.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/components/DataTable/TableControls/FiltersV2/fieldPickerOptions.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as BaseFilterConfig, l as FilterTypeDefinition, t as ActiveFilter, u as FilterTypeResolver } from "./types-
|
|
2
|
-
import * as _$styled_components0 from "styled-components";
|
|
1
|
+
import { i as BaseFilterConfig, l as FilterTypeDefinition, t as ActiveFilter, u as FilterTypeResolver } from "./types-BTaKBrxG.mjs";
|
|
3
2
|
import { ComponentProps } from "react";
|
|
3
|
+
import * as _$styled_components0 from "styled-components";
|
|
4
4
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/DataTable/TableControls/filters.d.ts
|
|
@@ -19,4 +19,4 @@ declare const Filters: <TFilter extends BaseFilterConfig>({
|
|
|
19
19
|
}) => _$react_jsx_runtime0.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { resolveFilterTypeDefinition as a, isFilterActive as i, FiltersContainer as n, synchronizeActiveFilters as o, getActiveFilters as r, Filters as t };
|
|
22
|
-
//# sourceMappingURL=filters-
|
|
22
|
+
//# sourceMappingURL=filters-CShP0Jag.d.mts.map
|
package/dist/filters.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as resolveFilterTypeDefinition, i as isFilterActive, n as FiltersContainer, o as synchronizeActiveFilters, r as getActiveFilters, t as Filters } from "./filters-
|
|
1
|
+
import { a as resolveFilterTypeDefinition, i as isFilterActive, n as FiltersContainer, o as synchronizeActiveFilters, r as getActiveFilters, t as Filters } from "./filters-CShP0Jag.mjs";
|
|
2
2
|
export { Filters, FiltersContainer, getActiveFilters, isFilterActive, resolveFilterTypeDefinition, synchronizeActiveFilters };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { n as CheckboxProps } from "./Checkbox-Clt9mCTk.mjs";
|
|
2
2
|
import { i as CommonStrings } from "./strings-DQZIO-n7.mjs";
|
|
3
|
-
import { S as RenderValueStickerFormatConfig, b as DatetimeConfig, d as DataTableColumnImageFormat, h as DataTableColumnStringFormat, l as DataTableColumnFormat, p as DataTableColumnPiiFormat, y as DateConfig } from "./types-
|
|
3
|
+
import { S as RenderValueStickerFormatConfig, b as DatetimeConfig, d as DataTableColumnImageFormat, h as DataTableColumnStringFormat, l as DataTableColumnFormat, p as DataTableColumnPiiFormat, y as DateConfig } from "./types-CUnL8JJj.mjs";
|
|
4
4
|
import { ReactNode } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/components/DataTable/helpers.d.ts
|
|
7
7
|
declare const renderAsCheckbox: ({
|
|
8
8
|
rowId,
|
|
9
|
+
rowLabel,
|
|
9
10
|
isChecked,
|
|
10
11
|
onChange,
|
|
11
12
|
onValueChange,
|
|
@@ -14,7 +15,8 @@ declare const renderAsCheckbox: ({
|
|
|
14
15
|
indeterminate,
|
|
15
16
|
strings
|
|
16
17
|
}: {
|
|
17
|
-
rowId: string;
|
|
18
|
+
rowId: string; /** Names the row in the checkbox's accessible label; the row id when omitted. */
|
|
19
|
+
rowLabel?: string;
|
|
18
20
|
isChecked: boolean;
|
|
19
21
|
/**
|
|
20
22
|
* Called when the checkbox is clicked
|
|
@@ -87,4 +89,4 @@ declare const renderAsLightweightImage: (value: unknown, config?: DataTableColum
|
|
|
87
89
|
declare const renderAsPDSFormat: <TData = unknown>(value: unknown, format?: DataTableColumnFormat<TData>, row?: TData, options?: PDSFormatOptions) => string | ReactNode;
|
|
88
90
|
//#endregion
|
|
89
91
|
export { renderAsDate as a, renderAsNumber as c, renderAsSticker as d, renderAsString as f, renderAsCopyableString as i, renderAsPDSFormat as l, renderAsCheckbox as n, renderAsDatetime as o, renderAsURL as p, renderAsCheckboxHeader as r, renderAsLightweightImage as s, PDSFormatOptions as t, renderAsPii as u };
|
|
90
|
-
//# sourceMappingURL=helpers-
|
|
92
|
+
//# sourceMappingURL=helpers-Bbi1LyMW.d.mts.map
|
package/dist/helpers.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as renderAsDate, c as renderAsNumber, d as renderAsSticker, f as renderAsString, i as renderAsCopyableString, l as renderAsPDSFormat, n as renderAsCheckbox, o as renderAsDatetime, p as renderAsURL, r as renderAsCheckboxHeader, s as renderAsLightweightImage, t as PDSFormatOptions, u as renderAsPii } from "./helpers-
|
|
1
|
+
import { a as renderAsDate, c as renderAsNumber, d as renderAsSticker, f as renderAsString, i as renderAsCopyableString, l as renderAsPDSFormat, n as renderAsCheckbox, o as renderAsDatetime, p as renderAsURL, r as renderAsCheckboxHeader, s as renderAsLightweightImage, t as PDSFormatOptions, u as renderAsPii } from "./helpers-Bbi1LyMW.mjs";
|
|
2
2
|
export { PDSFormatOptions, renderAsCheckbox, renderAsCheckboxHeader, renderAsCopyableString, renderAsDate, renderAsDatetime, renderAsLightweightImage, renderAsNumber, renderAsPDSFormat, renderAsPii, renderAsSticker, renderAsString, renderAsURL };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ListBoxItemProps, r as ListBoxProps$1 } from "./ListBox-
|
|
2
|
-
import { n as LogicRowProps } from "./LogicRow-
|
|
1
|
+
import { n as ListBoxItemProps, r as ListBoxProps$1 } from "./ListBox-Bgug8YZF.mjs";
|
|
2
|
+
import { n as LogicRowProps } from "./LogicRow-B1_35ZJT.mjs";
|
|
3
3
|
import * as _$react from "react";
|
|
4
4
|
import * as _$react_aria_components0 from "react-aria-components";
|
|
5
5
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
@@ -52,4 +52,4 @@ declare const ListBox: {
|
|
|
52
52
|
};
|
|
53
53
|
//#endregion
|
|
54
54
|
export { ListBox as t };
|
|
55
|
-
//# sourceMappingURL=index-
|
|
55
|
+
//# sourceMappingURL=index-3-eDlpcj.d.mts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as FilterBarProps$1 } from "./FilterBar-
|
|
1
|
+
import { n as FilterBarProps$1 } from "./FilterBar-CA4mDAXK.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/components/DataTable/TableControls/FiltersV2/FilterBar/index.d.ts
|
|
4
4
|
type FilterBarProps = FilterBarProps$1;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { FilterBarProps as t };
|
|
7
|
-
//# sourceMappingURL=index-
|
|
7
|
+
//# sourceMappingURL=index-DTM_t7OG.d.mts.map
|
package/dist/index2.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as Root, i as HeaderProps, n as Header, o as Title, r as HeaderContainer, s as TitleContainer, t as ActionsContainer } from "./Header-
|
|
1
|
+
import { a as Root, i as HeaderProps, n as Header, o as Title, r as HeaderContainer, s as TitleContainer, t as ActionsContainer } from "./Header-CV0Lcf0C.mjs";
|
|
2
2
|
export { ActionsContainer, HeaderContainer, HeaderProps, Root, Title, TitleContainer, Header as default };
|
package/dist/index4.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { r as resolveValueControl } from "./value-control-resolver-BFJZEWDn.mjs";
|
|
2
|
-
import { t as FilterBar } from "./FilterBar-
|
|
3
|
-
import { t as FilterBarProps } from "./index-
|
|
2
|
+
import { t as FilterBar } from "./FilterBar-CA4mDAXK.mjs";
|
|
3
|
+
import { t as FilterBarProps } from "./index-DTM_t7OG.mjs";
|
|
4
4
|
export { FilterBarProps, FilterBar as default, resolveValueControl };
|
package/dist/index6.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as FilterConditionOperator, c as FilterFieldType, d as FilterRuleValue, f as FilterRuleValueChange, g as isEmptyState, h as TopLevelFilterRule, i as EMPTY_FILTER_STATE, l as FilterOperator, m as FilterStateV2, n as CompoundExpression, o as FilterField, p as FilterSize, r as DateRangeFilterValue, s as FilterFieldSource, t as AndGroup, u as FilterRule } from "./types-BJqmRXFV.mjs";
|
|
2
2
|
import { n as RawFieldInfo, r as buildFieldRegistry, t as FieldRegistry } from "./FieldRegistry-CJwGpUVK.mjs";
|
|
3
3
|
import { n as ValueControlResolver, r as resolveValueControl, t as ResolveValueControlOptions } from "./value-control-resolver-BFJZEWDn.mjs";
|
|
4
|
-
import { t as FilterBar } from "./FilterBar-
|
|
4
|
+
import { t as FilterBar } from "./FilterBar-CA4mDAXK.mjs";
|
|
5
5
|
import { t as dateRuleIntent } from "./date-rule-intent-DDDCA6kc.mjs";
|
|
6
6
|
import { t as resolveDateRangeRuleValue } from "./date-range-rule-value-DyLlMtjr.mjs";
|
|
7
|
-
import { t as FilterBarProps } from "./index-
|
|
7
|
+
import { t as FilterBarProps } from "./index-DTM_t7OG.mjs";
|
|
8
8
|
import { a as useFilterBarSize, i as FilterSizeTokens, t as FILTER_SIZE_TOKENS } from "./filter-size-context-DVnjmuhk.mjs";
|
|
9
9
|
import { n as PillShellProps, t as PillShell } from "./PillShell-Bkyu5FXB.mjs";
|
|
10
10
|
import { a as emptyValueForRule, b as isValuelessOperator, c as getConditionValueError, d as getOperatorsForField, f as getOperatorsForType, l as getDefaultOperatorForType, m as isCompleteDateRange, n as NumericComparisonOperator, t as NUMERIC_COMPARISON_OPERATORS, v as isNumericComparisonOperator, x as reconcileValueForOperator, y as isRangeOperator } from "./operators-B8_k3r69.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { n as CheckboxProps } from "./Checkbox-Clt9mCTk.mjs";
|
|
2
|
-
import { n as ComboboxMultiSelectProps } from "./ComboboxMultiSelect-
|
|
3
|
-
import { r as ComboboxSingleSelectProps } from "./ComboboxSingleSelect-
|
|
4
|
-
import { n as FormFieldBaseProps } from "./FormField-
|
|
5
|
-
import { a as InputProps } from "./Input-
|
|
2
|
+
import { n as ComboboxMultiSelectProps } from "./ComboboxMultiSelect-DsoIMJiZ.mjs";
|
|
3
|
+
import { r as ComboboxSingleSelectProps } from "./ComboboxSingleSelect-CKsqOAGB.mjs";
|
|
4
|
+
import { n as FormFieldBaseProps } from "./FormField-BW5uMzId.mjs";
|
|
5
|
+
import { a as InputProps } from "./Input-DH-5dKor.mjs";
|
|
6
6
|
import { n as RadioGroupProps } from "./RadioGroup-D_z37ZOU.mjs";
|
|
7
7
|
import { i as SegmentedControlProps } from "./SegmentedControl-yVK6kkcx.mjs";
|
|
8
|
-
import { i as SelectProps } from "./Select-
|
|
8
|
+
import { i as SelectProps } from "./Select-CiofH5-f.mjs";
|
|
9
9
|
import { t as TextAreaProps } from "./TextArea-BJWEaURJ.mjs";
|
|
10
10
|
import { n as ToggleProps } from "./Toggle-CeIDF9yS.mjs";
|
|
11
11
|
import * as _$react from "react";
|
|
@@ -68,4 +68,4 @@ type ComboboxMultiSelectFieldProps<T = string> = ImplementsFormField & ComboboxM
|
|
|
68
68
|
declare const ComboboxField: (props: ComboboxSingleSelectFieldProps | ComboboxMultiSelectFieldProps) => _$react_jsx_runtime0.JSX.Element;
|
|
69
69
|
//#endregion
|
|
70
70
|
export { ToggleField as _, ComboboxSingleSelectFieldProps as a, RadioGroupFieldProps as c, SelectField as d, SelectFieldProps as f, TextFieldProps as g, TextField as h, ComboboxMultiSelectFieldProps as i, SegmentedControlField as l, TextAreaFieldProps as m, CheckboxFieldProps as n, ImplementsFormField as o, TextAreaField as p, ComboboxField as r, RadioGroupField as s, CheckboxField as t, SegmentedControlFieldProps as u, ToggleFieldProps as v, splitOutFormFieldProps as y };
|
|
71
|
-
//# sourceMappingURL=inputFields-
|
|
71
|
+
//# sourceMappingURL=inputFields-Dobwb4kT.d.mts.map
|
package/dist/inputFields.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as ToggleField, a as ComboboxSingleSelectFieldProps, c as RadioGroupFieldProps, d as SelectField, f as SelectFieldProps, g as TextFieldProps, h as TextField, i as ComboboxMultiSelectFieldProps, l as SegmentedControlField, m as TextAreaFieldProps, n as CheckboxFieldProps, o as ImplementsFormField, p as TextAreaField, r as ComboboxField, s as RadioGroupField, t as CheckboxField, u as SegmentedControlFieldProps, v as ToggleFieldProps, y as splitOutFormFieldProps } from "./inputFields-
|
|
1
|
+
import { _ as ToggleField, a as ComboboxSingleSelectFieldProps, c as RadioGroupFieldProps, d as SelectField, f as SelectFieldProps, g as TextFieldProps, h as TextField, i as ComboboxMultiSelectFieldProps, l as SegmentedControlField, m as TextAreaFieldProps, n as CheckboxFieldProps, o as ImplementsFormField, p as TextAreaField, r as ComboboxField, s as RadioGroupField, t as CheckboxField, u as SegmentedControlFieldProps, v as ToggleFieldProps, y as splitOutFormFieldProps } from "./inputFields-Dobwb4kT.mjs";
|
|
2
2
|
export { CheckboxField, CheckboxFieldProps, ComboboxField, ComboboxMultiSelectFieldProps, ComboboxSingleSelectFieldProps, ImplementsFormField, RadioGroupField, RadioGroupFieldProps, SegmentedControlField, SegmentedControlFieldProps, SelectField, SelectFieldProps, TextAreaField, TextAreaFieldProps, TextField, TextFieldProps, ToggleField, ToggleFieldProps, splitOutFormFieldProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as MiddleTruncatedText } from "../MiddleTruncatedText
|
|
1
|
+
import { t as MiddleTruncatedText } from "../MiddleTruncatedText-DicQsLDG.mjs";
|
|
2
2
|
export { MiddleTruncatedText, MiddleTruncatedText as default };
|
|
@@ -21,7 +21,8 @@ interface PDSProviderProps {
|
|
|
21
21
|
locale?: string;
|
|
22
22
|
/**
|
|
23
23
|
* Installs the semantic palette for this mode on `theme` (`withPdsTheming(theme, colorMode)`) and
|
|
24
|
-
* publishes it as `--pds-*` variables on `:root
|
|
24
|
+
* publishes it as `--pds-*` variables and `color-scheme` on `:root`; `useColorMode()` returns it.
|
|
25
|
+
* Omit it to keep today's behaviour. Pass
|
|
25
26
|
* `readDocumentColorMode()` from `@persona/design-system/lib/colorMode` to follow the host
|
|
26
27
|
* dashboard.
|
|
27
28
|
*/
|
package/dist/lib/PDSProvider.mjs
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { t as ThemeProvider } from "../styledComponentsInterop-Cs5CCPRy.mjs";
|
|
2
2
|
import defaultTheme, { withPdsTheming } from "../theme.mjs";
|
|
3
|
-
import { SemanticCssVariables } from "./colorMode.mjs";
|
|
3
|
+
import { ColorModeContext, SemanticCssVariables } from "./colorMode.mjs";
|
|
4
4
|
import { s as PDSI18nProvider } from "../i18n-DaOKaFc2.mjs";
|
|
5
5
|
import { n as RouterProvider } from "../RouterContext-DAQHKOv6.mjs";
|
|
6
|
-
import { useMemo } from "react";
|
|
6
|
+
import { useContext, useMemo } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region src/lib/PDSProvider.tsx
|
|
9
9
|
const PDSProvider = ({ children, theme = defaultTheme, router, strings, locale, colorMode }) => {
|
|
10
10
|
const providedTheme = useMemo(() => colorMode ? withPdsTheming(theme, colorMode) : theme, [theme, colorMode]);
|
|
11
|
+
const outerColorMode = useContext(ColorModeContext);
|
|
11
12
|
const routed = router ? /* @__PURE__ */ jsx(RouterProvider, {
|
|
12
13
|
...router,
|
|
13
14
|
children
|
|
14
15
|
}) : children;
|
|
15
|
-
|
|
16
|
+
const provided = /* @__PURE__ */ jsxs(ThemeProvider, {
|
|
16
17
|
theme: providedTheme,
|
|
17
18
|
children: [colorMode && /* @__PURE__ */ jsx(SemanticCssVariables, { mode: colorMode }), /* @__PURE__ */ jsx(PDSI18nProvider, {
|
|
18
19
|
strings,
|
|
@@ -20,6 +21,10 @@ const PDSProvider = ({ children, theme = defaultTheme, router, strings, locale,
|
|
|
20
21
|
children: routed
|
|
21
22
|
})]
|
|
22
23
|
});
|
|
24
|
+
return /* @__PURE__ */ jsx(ColorModeContext.Provider, {
|
|
25
|
+
value: colorMode ?? outerColorMode,
|
|
26
|
+
children: provided
|
|
27
|
+
});
|
|
23
28
|
};
|
|
24
29
|
//#endregion
|
|
25
30
|
export { PDSProvider as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PDSProvider.mjs","names":[],"sources":["../../src/lib/PDSProvider.tsx"],"sourcesContent":["import { type FC, type PropsWithChildren, useMemo } from 'react';\nimport { ThemeProvider } from 'styled-components';\n\nimport defaultTheme, { type PersonaTheme, withPdsTheming } from '@persona/design-system/theme';\n\nimport { type ColorMode, SemanticCssVariables } from '#src/lib/colorMode';\nimport { PDSI18nProvider, type CommonStringOverrides } from '#src/lib/i18n';\nimport { RouterProvider, type RouterAdapter } from '#src/lib/router';\n\ninterface PDSProviderProps {\n theme?: PersonaTheme;\n router?: RouterAdapter;\n /**\n * Translations for built-in component copy (table footer, column configuration, saved-view\n * tabs, filters). Keys you omit keep their English defaults. See `CommonStrings` in\n * `@persona/design-system/lib/i18n` for the keys.\n */\n strings?: CommonStringOverrides;\n /**\n * BCP 47 locale (e.g. `'fr-CA'`). Table dates and times follow it; omitted or `'en-US'` keeps\n * the historical English format.\n */\n locale?: string;\n /**\n * Installs the semantic palette for this mode on `theme` (`withPdsTheming(theme, colorMode)`) and\n * publishes it as `--pds-*` variables on `:root
|
|
1
|
+
{"version":3,"file":"PDSProvider.mjs","names":[],"sources":["../../src/lib/PDSProvider.tsx"],"sourcesContent":["import { type FC, type PropsWithChildren, useContext, useMemo } from 'react';\nimport { ThemeProvider } from 'styled-components';\n\nimport defaultTheme, { type PersonaTheme, withPdsTheming } from '@persona/design-system/theme';\n\nimport { type ColorMode, ColorModeContext, SemanticCssVariables } from '#src/lib/colorMode';\nimport { PDSI18nProvider, type CommonStringOverrides } from '#src/lib/i18n';\nimport { RouterProvider, type RouterAdapter } from '#src/lib/router';\n\ninterface PDSProviderProps {\n theme?: PersonaTheme;\n router?: RouterAdapter;\n /**\n * Translations for built-in component copy (table footer, column configuration, saved-view\n * tabs, filters). Keys you omit keep their English defaults. See `CommonStrings` in\n * `@persona/design-system/lib/i18n` for the keys.\n */\n strings?: CommonStringOverrides;\n /**\n * BCP 47 locale (e.g. `'fr-CA'`). Table dates and times follow it; omitted or `'en-US'` keeps\n * the historical English format.\n */\n locale?: string;\n /**\n * Installs the semantic palette for this mode on `theme` (`withPdsTheming(theme, colorMode)`) and\n * publishes it as `--pds-*` variables and `color-scheme` on `:root`; `useColorMode()` returns it.\n * Omit it to keep today's behaviour. Pass\n * `readDocumentColorMode()` from `@persona/design-system/lib/colorMode` to follow the host\n * dashboard.\n */\n colorMode?: ColorMode;\n}\n\nconst PDSProvider: FC<PropsWithChildren<PDSProviderProps>> = ({\n children,\n theme = defaultTheme,\n router,\n strings,\n locale,\n colorMode,\n}) => {\n const providedTheme = useMemo(\n () => (colorMode ? withPdsTheming(theme, colorMode) : theme),\n [theme, colorMode],\n );\n const outerColorMode = useContext(ColorModeContext);\n const routed = router ? <RouterProvider {...router}>{children}</RouterProvider> : children;\n // Always mounted, even without `strings`/`locale` (it then inherits the outer values), so a host\n // that turns localization on or off later updates context instead of remounting the subtree.\n const provided = (\n <ThemeProvider theme={providedTheme}>\n {colorMode && <SemanticCssVariables mode={colorMode} />}\n <PDSI18nProvider strings={strings} locale={locale}>\n {routed}\n </PDSI18nProvider>\n </ThemeProvider>\n );\n return (\n <ColorModeContext.Provider value={colorMode ?? outerColorMode}>\n {provided}\n </ColorModeContext.Provider>\n );\n};\n\nexport default PDSProvider;\n"],"mappings":";;;;;;;;AAiCA,MAAM,eAAwD,EAC5D,UACA,QAAQ,cACR,QACA,SACA,QACA,gBACI;CACJ,MAAM,gBAAgB,cACb,YAAY,eAAe,OAAO,UAAU,GAAG,OACtD,CAAC,OAAO,UAAU,CACnB;CACD,MAAM,iBAAiB,WAAW,iBAAiB;CACnD,MAAM,SAAS,SAAS,oBAAC,gBAAD;EAAgB,GAAI;EAAS;EAA0B,CAAA,GAAG;CAGlF,MAAM,WACJ,qBAAC,eAAD;EAAe,OAAO;YAAtB,CACG,aAAa,oBAAC,sBAAD,EAAsB,MAAM,WAAa,CAAA,EACvD,oBAAC,iBAAD;GAA0B;GAAiB;aACxC;GACe,CAAA,CACJ;;AAElB,QACE,oBAAC,iBAAiB,UAAlB;EAA2B,OAAO,aAAa;YAC5C;EACyB,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TruncatedText, r as TruncatedTextProps, t as OverflowEllipsisSpan } from "../TruncatedText-
|
|
1
|
+
import { n as TruncatedText, r as TruncatedTextProps, t as OverflowEllipsisSpan } from "../TruncatedText-sr9Fhm3N.mjs";
|
|
2
2
|
export { OverflowEllipsisSpan, TruncatedText, TruncatedText as default, TruncatedTextProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useIsOverflow } from "./useIsOverflow.mjs";
|
|
2
2
|
import { OverflowEllipsisSpan } from "./TruncatedText.mjs";
|
|
3
|
-
import { a as Tooltip } from "../Tooltip-
|
|
3
|
+
import { a as Tooltip } from "../Tooltip-CVBxc1yf.mjs";
|
|
4
4
|
import { useRef } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/lib/TruncatedTextWithTooltip.tsx
|
package/dist/lib/colorMode.d.mts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { n as SemanticTokens } from "../semantic-BZbvb3LV.mjs";
|
|
2
2
|
import { i as PersonaTheme, r as PdsThemingMode } from "../theme-CeA8jBRG.mjs";
|
|
3
|
-
import * as _$
|
|
3
|
+
import * as _$react from "react";
|
|
4
4
|
import { FC, PropsWithChildren } from "react";
|
|
5
|
+
import * as _$styled_components0 from "styled-components";
|
|
5
6
|
|
|
6
7
|
//#region src/lib/colorMode.d.ts
|
|
7
8
|
type ColorMode = Exclude<PdsThemingMode, 'off'>;
|
|
@@ -13,18 +14,28 @@ declare function createPdsTheme(mode: ColorMode, baseTheme?: PersonaTheme): Pers
|
|
|
13
14
|
declare function semanticCssVariable(token: keyof SemanticTokens): string;
|
|
14
15
|
/** `--pds-*: value;` for every semantic token. */
|
|
15
16
|
declare function semanticCssDeclarations(semantic: SemanticTokens): string;
|
|
16
|
-
|
|
17
|
+
declare const ColorModeContext: _$react.Context<ColorMode | undefined>;
|
|
18
|
+
/** The mode of the nearest `PDSProvider colorMode` or `ColorModeScope`; `'light'` outside both. */
|
|
19
|
+
declare function useColorMode(): ColorMode;
|
|
20
|
+
/**
|
|
21
|
+
* Global style: publishes the palette and `color-scheme` for `mode` on `:root`. Print always uses
|
|
22
|
+
* the light palette.
|
|
23
|
+
*/
|
|
17
24
|
declare const SemanticCssVariables: _$styled_components0.GlobalStyleComponent<{
|
|
18
25
|
mode: ColorMode;
|
|
19
26
|
}, _$styled_components0.DefaultTheme>;
|
|
27
|
+
interface ColorModeScopeProps {
|
|
28
|
+
mode: ColorMode;
|
|
29
|
+
theme?: PersonaTheme;
|
|
30
|
+
}
|
|
20
31
|
/**
|
|
21
32
|
* Renders `children` in `mode`, whatever the surrounding mode is: a nested `ThemeProvider` with
|
|
22
|
-
* `withPdsTheming(outerTheme, mode)` and a `display: contents` wrapper carrying
|
|
23
|
-
* and the `--pds-*`
|
|
33
|
+
* `withPdsTheming(theme ?? outerTheme, mode)` and a `display: contents` wrapper carrying
|
|
34
|
+
* `data-color-mode`, `color-scheme`, the mode's `FgPrimary` text colour and the `--pds-*`
|
|
35
|
+
* declarations for `mode`. Changing `mode` re-themes the subtree without remounting it. Print always
|
|
36
|
+
* uses the light palette.
|
|
24
37
|
*/
|
|
25
|
-
declare const ColorModeScope: FC<PropsWithChildren<
|
|
26
|
-
mode: ColorMode;
|
|
27
|
-
}>>;
|
|
38
|
+
declare const ColorModeScope: FC<PropsWithChildren<ColorModeScopeProps>>;
|
|
28
39
|
//#endregion
|
|
29
|
-
export { ColorMode, ColorModeScope, SemanticCssVariables, createPdsTheme, readDocumentColorMode, semanticCssDeclarations, semanticCssVariable };
|
|
40
|
+
export { ColorMode, ColorModeContext, ColorModeScope, SemanticCssVariables, createPdsTheme, readDocumentColorMode, semanticCssDeclarations, semanticCssVariable, useColorMode };
|
|
30
41
|
//# sourceMappingURL=colorMode.d.mts.map
|