@persona/design-system 0.10.10 → 0.10.12
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 +48 -0
- package/dist/AdvancedFilterRuleRow.d.mts +5 -2
- package/dist/AdvancedFilterRulesPopover.d.mts +6 -2
- package/dist/ArrayValueControl.d.mts +1 -1
- package/dist/{Badge-BCdsVKuj.mjs → Badge-B2AJMf3d.mjs} +2 -2
- package/dist/{Badge-BCdsVKuj.mjs.map → Badge-B2AJMf3d.mjs.map} +1 -1
- package/dist/BooleanValueControl.d.mts +1 -1
- package/dist/{Breadcrumbs-CMf3Uvow.mjs → Breadcrumbs-DRs9eo1o.mjs} +5 -5
- package/dist/Breadcrumbs-DRs9eo1o.mjs.map +1 -0
- package/dist/{CardV2-CrV6eEQb.mjs → CardV2-DO-8COfu.mjs} +11 -8
- package/dist/CardV2-DO-8COfu.mjs.map +1 -0
- package/dist/ChartFrame.d.mts +61 -0
- package/dist/ChartLegend.d.mts +60 -0
- package/dist/ChartPopover.d.mts +155 -0
- package/dist/{Checkbox-Dr4LMKHV.mjs → Checkbox-BAh-wF_F.mjs} +5 -5
- package/dist/Checkbox-BAh-wF_F.mjs.map +1 -0
- package/dist/{CheckboxGroupField-Bpu2j6G2.d.mts → CheckboxGroupField-XSVAmESI.d.mts} +2 -2
- package/dist/CheckboxGroupField.d.mts +1 -1
- package/dist/ChoicesValueControl.d.mts +1 -1
- package/dist/{Combobox-Gb_j1dg6.mjs → Combobox-BNjYEAmv.mjs} +313 -138
- package/dist/Combobox-BNjYEAmv.mjs.map +1 -0
- package/dist/Combobox-DbcSss15.d.mts +12 -0
- package/dist/Combobox.d.mts +3 -3
- package/dist/{ComboboxBase-BPXqJHaQ.d.mts → ComboboxBase-CrFweFGi.d.mts} +61 -21
- package/dist/ComboboxBase.d.mts +2 -2
- package/dist/{ComboboxMultiSelect-BwkkSymj.d.mts → ComboboxMultiSelect-Cp5GBGQj.d.mts} +10 -6
- package/dist/ComboboxMultiSelect.d.mts +2 -2
- package/dist/{ComboboxSingleSelect-CdNNJNkp.d.mts → ComboboxSingleSelect-u7fK3Yvy.d.mts} +8 -6
- package/dist/ComboboxSingleSelect.d.mts +2 -2
- package/dist/{DataTable-BE9inUi-.d.mts → DataTable-C1mdfmQa.d.mts} +17 -7
- package/dist/{DataTable-CIZJ1vO8.mjs → DataTable-DdSY9mzT.mjs} +36 -23
- package/dist/DataTable-DdSY9mzT.mjs.map +1 -0
- package/dist/DataTable.d.mts +1 -1
- package/dist/{DatePicker-C9redLBr.mjs → DatePicker-DiilpYQg.mjs} +5 -5
- package/dist/{DatePicker-C9redLBr.mjs.map → DatePicker-DiilpYQg.mjs.map} +1 -1
- package/dist/DateRangeValueControl.d.mts +1 -1
- package/dist/DateValueControl.d.mts +1 -1
- package/dist/{DropdownButton-DpLG-cIj.mjs → DropdownButton-BxZ5hn0X.mjs} +3 -3
- package/dist/{DropdownButton-DpLG-cIj.mjs.map → DropdownButton-BxZ5hn0X.mjs.map} +1 -1
- package/dist/DropdownButton.d.mts +1 -1
- package/dist/{DropdownMenu-B6D4stkF.d.mts → DropdownMenu-CQR0U-zM.d.mts} +2 -2
- package/dist/{DropdownMenu-c8XK2Lr4.mjs → DropdownMenu-Ip75l4Th.mjs} +21 -2
- package/dist/DropdownMenu-Ip75l4Th.mjs.map +1 -0
- package/dist/DropdownMenu.d.mts +1 -1
- package/dist/{FieldRegistry-C2NVPhMO.d.mts → FieldRegistry-CJwGpUVK.d.mts} +2 -2
- package/dist/FieldRegistry.d.mts +1 -1
- package/dist/{FilterBar-BE_gBM0H.d.mts → FilterBar-CA4mDAXK.d.mts} +13 -5
- 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 +3 -2
- package/dist/{FloatingToolbar-DLRaE0o7.mjs → FloatingToolbar-BA8Fqmrz.mjs} +35 -38
- package/dist/FloatingToolbar-BA8Fqmrz.mjs.map +1 -0
- package/dist/{FormControl-BztNXLn6.mjs → FormControl-BoKGiWdQ.mjs} +2 -2
- package/dist/{FormControl-BztNXLn6.mjs.map → FormControl-BoKGiWdQ.mjs.map} +1 -1
- package/dist/{FormField-Cf1VMvoa.mjs → FormField-yYJFkJ6R.mjs} +13 -13
- package/dist/{FormField-Cf1VMvoa.mjs.map → FormField-yYJFkJ6R.mjs.map} +1 -1
- package/dist/{HoverCopyableField-XHC_n9tp.mjs → HoverCopyableField-X2XfKTTh.mjs} +10 -5
- package/dist/HoverCopyableField-X2XfKTTh.mjs.map +1 -0
- package/dist/{IconButton-DxHB2g80.mjs → IconButton-Bj1fry_K.mjs} +4 -3
- package/dist/IconButton-Bj1fry_K.mjs.map +1 -0
- package/dist/IndexTableLayout.d.mts +11 -3
- package/dist/InlineCombobox.d.mts +1 -1
- package/dist/InlineInput.d.mts +1 -1
- package/dist/{Input-RHXujO9u.mjs → Input-DcbzPaax.mjs} +2 -2
- package/dist/{Input-RHXujO9u.mjs.map → Input-DcbzPaax.mjs.map} +1 -1
- package/dist/IntegerValueControl.d.mts +3 -2
- package/dist/{Link-D_kCyLYX.mjs → Link-B29ZMN6m.mjs} +3 -3
- package/dist/Link-B29ZMN6m.mjs.map +1 -0
- package/dist/{ListBox-BZp6exb8.mjs → ListBox-4rTgr3IJ.mjs} +6 -6
- package/dist/{ListBox-BZp6exb8.mjs.map → ListBox-4rTgr3IJ.mjs.map} +1 -1
- package/dist/{ListBox-DpFcM-dM.d.mts → ListBox-ZDaitaXR.d.mts} +2 -2
- package/dist/ListBox.d.mts +1 -1
- package/dist/{ListBoxField-DL6Zk8TU.d.mts → ListBoxField-CGvVWKyL.d.mts} +4 -4
- package/dist/ListBoxField.d.mts +1 -1
- package/dist/{LoadingShimmer-oPIv2ESr.mjs → LoadingShimmer-BVVdBeN-.mjs} +18 -20
- package/dist/LoadingShimmer-BVVdBeN-.mjs.map +1 -0
- package/dist/{LogicRow-BakOUtzx.d.mts → LogicRow-Bzp5o1sL.d.mts} +2 -2
- package/dist/LogicRow.d.mts +1 -1
- package/dist/{Menu-D6OrKCTC.d.mts → Menu-DviYNrFd.d.mts} +2 -2
- package/dist/Menu.d.mts +1 -1
- package/dist/{Modal-De5_bPJ_.mjs → Modal-CiPFqr0L.mjs} +52 -23
- package/dist/{Modal-De5_bPJ_.mjs.map → Modal-CiPFqr0L.mjs.map} +1 -1
- package/dist/{PageHeader-7_Hf6rHl.mjs → PageHeader-6KvtGED-.mjs} +2 -2
- package/dist/{PageHeader-7_Hf6rHl.mjs.map → PageHeader-6KvtGED-.mjs.map} +1 -1
- package/dist/{PageLayout-DjtGrvJa.mjs → PageLayout-CPiVnS_r.mjs} +3 -1
- package/dist/PageLayout-CPiVnS_r.mjs.map +1 -0
- package/dist/{Pagination-DMH2IaV0.mjs → Pagination-CqFvnlXc.mjs} +4 -4
- package/dist/{Pagination-DMH2IaV0.mjs.map → Pagination-CqFvnlXc.mjs.map} +1 -1
- package/dist/{Pii-24D_nSRQ.mjs → Pii-jSYND7Cn.mjs} +2 -2
- package/dist/{Pii-24D_nSRQ.mjs.map → Pii-jSYND7Cn.mjs.map} +1 -1
- package/dist/{PillShell-B7Bm-dsE.d.mts → PillShell-Bkyu5FXB.d.mts} +2 -2
- package/dist/PillShell.d.mts +1 -1
- package/dist/{Popover-DordjYNM.mjs → Popover-CVX-dfYb.mjs} +48 -18
- package/dist/Popover-CVX-dfYb.mjs.map +1 -0
- package/dist/{Radio-BlEtetrr.mjs → Radio-B1H_S-Qj.mjs} +2 -2
- package/dist/Radio-B1H_S-Qj.mjs.map +1 -0
- package/dist/{RadioGroup-CMrXmmn4.mjs → RadioGroup-7hdcVhsp.mjs} +2 -2
- package/dist/{RadioGroup-CMrXmmn4.mjs.map → RadioGroup-7hdcVhsp.mjs.map} +1 -1
- package/dist/RuleEditorFields.d.mts +2 -2
- package/dist/RulesPill.d.mts +1 -1
- package/dist/{SegmentedControl-D_DA-MU1.mjs → SegmentedControl-BNOJ1FYQ.mjs} +5 -2
- package/dist/SegmentedControl-BNOJ1FYQ.mjs.map +1 -0
- package/dist/{Select-DOlw_LPR.mjs → Select-DbWEgH5c.mjs} +5 -3
- package/dist/Select-DbWEgH5c.mjs.map +1 -0
- package/dist/{Select-CR9TjFfo.d.mts → Select-DsVeAyZy.d.mts} +2 -2
- package/dist/Select.d.mts +1 -1
- package/dist/SmartTextInputField.d.mts +2 -2
- package/dist/{Spinner-CXb-KUs1.mjs → Spinner-k9ZiOdTr.mjs} +1 -1
- package/dist/{Spinner-CXb-KUs1.mjs.map → Spinner-k9ZiOdTr.mjs.map} +1 -1
- package/dist/{Sticker-C1_6I08u.mjs → Sticker-4VdGEFAu.mjs} +2 -2
- package/dist/{Sticker-C1_6I08u.mjs.map → Sticker-4VdGEFAu.mjs.map} +1 -1
- package/dist/StringValueControl.d.mts +2 -1
- package/dist/{TabBar-BCFO38E0.mjs → TabBar-d4sdknti.mjs} +5 -5
- package/dist/TabBar-d4sdknti.mjs.map +1 -0
- package/dist/{Table-DPi4Dt5H.mjs → Table-9mNn8Q-d.mjs} +14 -6
- package/dist/Table-9mNn8Q-d.mjs.map +1 -0
- package/dist/{TableBox-DNQsgQ8x.mjs → TableBox-D9NA-s9l.mjs} +16 -12
- package/dist/TableBox-D9NA-s9l.mjs.map +1 -0
- package/dist/TableBox.d.mts +1 -1
- package/dist/{TableBoxCell-CsRt_5gP.d.mts → TableBoxCell-CQOL30et.d.mts} +4 -4
- package/dist/TableBoxCell.d.mts +1 -1
- package/dist/{TableBoxField-Db0Vjo6Z.d.mts → TableBoxField-z0GIFeQw.d.mts} +5 -5
- package/dist/TableBoxField.d.mts +1 -1
- package/dist/{TableBoxRow-exMlZyc4.d.mts → TableBoxRow-tb9-KMr9.d.mts} +2 -2
- package/dist/TableBoxRow.d.mts +1 -1
- package/dist/{TableBoxRowActions-UO9YN34k.d.mts → TableBoxRowActions-BZwulsFP.d.mts} +2 -2
- package/dist/TableBoxRowActions.d.mts +1 -1
- package/dist/{TableControls-BrP_BqnF.mjs → TableControls-BXykbUBf.mjs} +126 -40
- package/dist/TableControls-BXykbUBf.mjs.map +1 -0
- package/dist/{TableControls-Clo_0Mty.d.mts → TableControls-DE6eHq8h.d.mts} +4 -4
- package/dist/TableControls.d.mts +1 -1
- package/dist/{TableControlsContext-BNd6z9mD.d.mts → TableControlsContext-C2_2EuMh.d.mts} +2 -2
- package/dist/TableControlsContext.d.mts +1 -1
- package/dist/{TableViewConfigurationDropdown-Cp7ausV_.d.mts → TableViewConfigurationDropdown-DE9HFXYY.d.mts} +2 -2
- package/dist/TableViewConfigurationDropdown.d.mts +1 -1
- package/dist/{TechnicalSticker-Cq5jzYKQ.mjs → TechnicalSticker-DtV7Gawf.mjs} +5 -3
- package/dist/TechnicalSticker-DtV7Gawf.mjs.map +1 -0
- package/dist/{TextArea-Dro-HH8O.mjs → TextArea-CQ1YNi2b.mjs} +4 -5
- package/dist/TextArea-CQ1YNi2b.mjs.map +1 -0
- package/dist/{Toggle-D9MzTIZs.mjs → Toggle-CzHoIR-n.mjs} +8 -4
- package/dist/Toggle-CzHoIR-n.mjs.map +1 -0
- package/dist/{Tooltip-YViXzMdm.mjs → Tooltip-CVBxc1yf.mjs} +17 -4
- package/dist/Tooltip-CVBxc1yf.mjs.map +1 -0
- package/dist/chartColors.d.mts +92 -0
- package/dist/chartFrameLayout.d.mts +46 -0
- package/dist/{clientFilterUtils-CGHYF5NE.d.mts → clientFilterUtils-2TBUC31K.d.mts} +2 -2
- package/dist/clientFilterUtils.d.mts +1 -1
- package/dist/components/Accordion/index.mjs +22 -13
- package/dist/components/Accordion/index.mjs.map +1 -1
- package/dist/components/Attribute/index.mjs +6 -4
- package/dist/components/Attribute/index.mjs.map +1 -1
- package/dist/components/Badge/index.mjs +1 -1
- package/dist/components/Banner/index.mjs +1 -1
- package/dist/components/BottomPanel/index.mjs +7 -5
- package/dist/components/BottomPanel/index.mjs.map +1 -1
- package/dist/components/Breadcrumbs/index.mjs +1 -1
- package/dist/components/Button/index.mjs +1 -1
- package/dist/components/ButtonGroup/index.mjs +1 -1
- package/dist/components/CardV2/index.mjs +1 -1
- package/dist/components/Chart/index.d.mts +9 -0
- package/dist/components/Chart/index.mjs +680 -0
- package/dist/components/Chart/index.mjs.map +1 -0
- package/dist/components/Checkbox/index.mjs +1 -1
- package/dist/components/CodeHighlight/index.mjs +1 -1
- package/dist/components/Combobox/index.d.mts +5 -3
- package/dist/components/Combobox/index.mjs +1 -1
- package/dist/components/DataTable/TableControls/index.d.mts +19 -19
- package/dist/components/DataTable/TableControls/index.mjs +2 -2
- package/dist/components/DataTable/index.d.mts +5 -5
- 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 +16 -14
- package/dist/components/FloatingPanel/index.mjs.map +1 -1
- package/dist/components/FloatingToolbar/index.mjs +1 -1
- package/dist/components/FormControl/index.mjs +1 -1
- package/dist/components/FormField/index.d.mts +4 -4
- package/dist/components/FormField/index.mjs +1 -1
- package/dist/components/HoverCopyableField/index.mjs +1 -1
- package/dist/components/ImageTile/index.mjs +7 -7
- package/dist/components/ImageTile/index.mjs.map +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/Modal/index.mjs +1 -1
- package/dist/components/PageHeader/index.mjs +1 -1
- package/dist/components/Pagination/index.mjs +1 -1
- package/dist/components/Pii/index.mjs +1 -1
- package/dist/components/Popover/index.mjs +1 -1
- package/dist/components/ProgressBar/index.mjs +20 -3
- package/dist/components/ProgressBar/index.mjs.map +1 -1
- package/dist/components/Radio/index.mjs +1 -1
- package/dist/components/RadioGroup/index.mjs +1 -1
- package/dist/components/RichTextEditor/index.mjs +5 -5
- package/dist/components/RightPanel/index.mjs +28 -13
- package/dist/components/RightPanel/index.mjs.map +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/SelectionCard/index.mjs +2 -2
- package/dist/components/Slider/index.mjs +3 -2
- package/dist/components/Slider/index.mjs.map +1 -1
- package/dist/components/SmartTextInput/index.mjs +9 -78
- 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/Sticker/index.mjs +1 -1
- package/dist/components/SwatchPicker/index.mjs +2 -1
- package/dist/components/SwatchPicker/index.mjs.map +1 -1
- package/dist/components/TabBar/index.mjs +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/TextArea/index.mjs +1 -1
- package/dist/components/Tile/index.mjs +2 -2
- package/dist/components/Toast/index.mjs +16 -10
- package/dist/components/Toast/index.mjs.map +1 -1
- package/dist/components/Toggle/index.mjs +1 -1
- package/dist/components/Tooltip/index.mjs +1 -1
- package/dist/components/VersionHistory/index.mjs +5 -5
- package/dist/compound-expression.d.mts +1 -1
- package/dist/{date-range-rule-value-ASr06ClE.d.mts → date-range-rule-value-DyLlMtjr.d.mts} +2 -2
- package/dist/date-range-rule-value.d.mts +1 -1
- package/dist/display.d.mts +1 -1
- package/dist/duration-token.d.mts +11 -0
- package/dist/exit-motion.d.mts +7 -0
- package/dist/fieldPickerOptions.d.mts +2 -2
- package/dist/{filter-size-context-CmFyIPCm.d.mts → filter-size-context-DVnjmuhk.d.mts} +2 -2
- package/dist/filter-size-context.d.mts +1 -1
- package/dist/{filters-DTBc0mE7.d.mts → filters-DW7pqWv3.d.mts} +2 -2
- package/dist/filters.d.mts +1 -1
- package/dist/{helpers-CBJ2AqGZ.d.mts → helpers-BTD2kXLs.d.mts} +2 -2
- package/dist/helpers.d.mts +1 -1
- package/dist/{index-OkdnW-u5.d.mts → index-B4tE0RxY.d.mts} +3 -3
- package/dist/{index-kIon1vPp.d.mts → index-DTM_t7OG.d.mts} +2 -2
- package/dist/index4.d.mts +3 -3
- package/dist/index5.d.mts +1 -1
- package/dist/index6.d.mts +14 -14
- package/dist/{inputFields-DpHeZiFX.d.mts → inputFields-DnBb3NhK.d.mts} +4 -4
- package/dist/inputFields.d.mts +1 -1
- package/dist/lib/TruncatedTextWithTooltip.mjs +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/lib/useModalInsetRight.d.mts +4 -3
- package/dist/lib/useModalInsetRight.mjs +7 -5
- package/dist/lib/useModalInsetRight.mjs.map +1 -1
- package/dist/lint/THIRD_PARTY_NOTICES.md +30 -0
- package/dist/lint/index.mjs +696 -11
- package/dist/lint/index.mjs.map +1 -1
- package/dist/lint/recommended.json +7 -1
- package/dist/mixins/hoverable.mjs +1 -1
- package/dist/mixins/hoverable.mjs.map +1 -1
- package/dist/mixins/input.mjs +1 -0
- package/dist/mixins/input.mjs.map +1 -1
- package/dist/mixins/menuItem.mjs +2 -0
- package/dist/mixins/menuItem.mjs.map +1 -1
- package/dist/mixins/motion.d.mts +28 -0
- package/dist/mixins/motion.mjs +66 -0
- package/dist/mixins/motion.mjs.map +1 -0
- package/dist/motion-origin.d.mts +7 -0
- package/dist/motion.d.mts +63 -0
- package/dist/no-layout-motion.d.mts +7 -0
- package/dist/no-transition-all.d.mts +7 -0
- package/dist/{operators-BHxKZcpD.d.mts → operators-B8_k3r69.d.mts} +10 -3
- package/dist/operators.d.mts +2 -2
- package/dist/overlay-motion.d.mts +7 -0
- package/dist/patterns/CardGrouping/index.mjs +6 -6
- package/dist/patterns/CardGrouping/index.mjs.map +1 -1
- 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 +3 -1
- package/dist/patterns/LayoutLoadingSpinner/index.mjs.map +1 -1
- package/dist/patterns/PageLayout/index.mjs +1 -1
- package/dist/patterns/WizardModal/index.mjs +2 -2
- package/dist/relative-date-label.d.mts +1 -1
- package/dist/{types-DLnCkvTt.d.mts → types-BJqmRXFV.d.mts} +15 -1
- package/dist/{types-CqcbWyUY.d.mts → types-BOsCi-kZ.d.mts} +8 -2
- package/dist/{types-BiqzeNsa.d.mts → types-Dws2XDz2.d.mts} +2 -2
- package/dist/{types-BEdERA4v.d.mts → types-NO2GRlM-.d.mts} +2 -2
- 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-CXUuK3_r.d.mts → url-state-CXPmXzIZ.d.mts} +2 -2
- package/dist/url-state.d.mts +1 -1
- package/dist/useChartColors.d.mts +30 -0
- package/dist/useChartSeriesVisibility.d.mts +22 -0
- package/dist/useChartStyles.d.mts +108 -0
- package/dist/useColumnConfiguration.d.mts +2 -2
- package/dist/useComboboxFooterAction.d.mts +1 -1
- package/dist/{useFilterStateV2-DBpbxAEC.d.mts → useFilterStateV2-DiTS9DTg.d.mts} +3 -3
- package/dist/useFilterStateV2.d.mts +1 -1
- package/dist/{useTableColumns-Xd14vx_h.d.mts → useTableColumns-tITjHasE.d.mts} +2 -2
- package/dist/useTableColumns.d.mts +1 -1
- package/dist/useTruncation.d.mts +1 -1
- package/dist/useValueControlError.d.mts +26 -0
- package/dist/utils.d.mts +1 -1
- package/dist/{validation-Tgg3AhuP.d.mts → validation-BDQdQ1cY.d.mts} +3 -3
- package/dist/validation.d.mts +1 -1
- package/dist/{value-control-resolver-XQbGCdsP.d.mts → value-control-resolver-BFJZEWDn.d.mts} +9 -3
- package/dist/value-control-resolver.d.mts +1 -1
- package/dist/value-labels.d.mts +12 -0
- package/dist/variables/keyframes.d.mts +2 -1
- package/dist/variables/keyframes.mjs +9 -1
- package/dist/variables/keyframes.mjs.map +1 -1
- package/dist/variables/transitions.d.mts +31 -1
- package/dist/variables/transitions.mjs +50 -1
- package/dist/variables/transitions.mjs.map +1 -1
- package/llms.txt +2 -1
- package/package.json +20 -4
- package/skills/new-screen/SKILL.md +33 -0
- package/skills/ui-authoring/COMPONENTS.md +19 -1
- package/skills/ui-authoring/PATTERNS.md +57 -36
- package/skills/ui-authoring/STANDARD.md +78 -4
- package/skills/ui-authoring/TOKENS.md +27 -24
- package/dist/Breadcrumbs-CMf3Uvow.mjs.map +0 -1
- package/dist/CardV2-CrV6eEQb.mjs.map +0 -1
- package/dist/Checkbox-Dr4LMKHV.mjs.map +0 -1
- package/dist/Combobox-CIKqTYZt.d.mts +0 -11
- package/dist/Combobox-Gb_j1dg6.mjs.map +0 -1
- package/dist/DataTable-CIZJ1vO8.mjs.map +0 -1
- package/dist/DropdownMenu-c8XK2Lr4.mjs.map +0 -1
- package/dist/FloatingToolbar-DLRaE0o7.mjs.map +0 -1
- package/dist/HoverCopyableField-XHC_n9tp.mjs.map +0 -1
- package/dist/IconButton-DxHB2g80.mjs.map +0 -1
- package/dist/Link-D_kCyLYX.mjs.map +0 -1
- package/dist/LoadingShimmer-oPIv2ESr.mjs.map +0 -1
- package/dist/PageLayout-DjtGrvJa.mjs.map +0 -1
- package/dist/Popover-DordjYNM.mjs.map +0 -1
- package/dist/Radio-BlEtetrr.mjs.map +0 -1
- package/dist/SegmentedControl-D_DA-MU1.mjs.map +0 -1
- package/dist/Select-DOlw_LPR.mjs.map +0 -1
- package/dist/TabBar-BCFO38E0.mjs.map +0 -1
- package/dist/Table-DPi4Dt5H.mjs.map +0 -1
- package/dist/TableBox-DNQsgQ8x.mjs.map +0 -1
- package/dist/TableControls-BrP_BqnF.mjs.map +0 -1
- package/dist/TechnicalSticker-Cq5jzYKQ.mjs.map +0 -1
- package/dist/TextArea-Dro-HH8O.mjs.map +0 -1
- package/dist/Toggle-D9MzTIZs.mjs.map +0 -1
- package/dist/Tooltip-YViXzMdm.mjs.map +0 -1
|
@@ -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 { 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,5 +1,6 @@
|
|
|
1
1
|
import { a as styled } from "../../styledComponentsInterop-Cs5CCPRy.mjs";
|
|
2
2
|
import { semanticColor } from "../../lib/semanticColor.mjs";
|
|
3
|
+
import "../../variables/transitions.mjs";
|
|
3
4
|
import "../../variables/effect.mjs";
|
|
4
5
|
import { BorderRadius, Color, Spacing } from "@persona/design-tokens";
|
|
5
6
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -28,7 +29,7 @@ const ColorSwatch = styled.button`
|
|
|
28
29
|
background-color: ${({ $color }) => $color ?? "transparent"};
|
|
29
30
|
border-radius: ${BorderRadius.Circle};
|
|
30
31
|
border: 2px solid ${({ theme }) => semanticColor(theme, "InputSurfaceDefault", Color.PrimaryWhite)};
|
|
31
|
-
transition:
|
|
32
|
+
transition: box-shadow ${"200ms"} ${"cubic-bezier(0.4, 0, 0.2, 1)"};
|
|
32
33
|
cursor: pointer;
|
|
33
34
|
${({ selected, theme }) => selected ? `outline: 2px solid ${semanticColor(theme, "BorderAccent", Color.BorderIconActive)}` : ""};
|
|
34
35
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../../src/components/SwatchPicker/SwatchPicker.tsx"],"sourcesContent":["import type { ComponentPropsWithoutRef } from 'react';\nimport styled from 'styled-components';\n\nimport { BorderRadius, Color, Spacing } from '@persona/design-tokens';\n\nimport { semanticColor } from '#src/lib/semanticColor';\nimport { Elevation } from '#src/variables/effect';\n\nconst SwatchGrid = styled.div`\n display: flex;\n flex-wrap: wrap;\n align-items: flex-start;\n gap: ${Spacing[1]};\n`;\n\nexport interface SwatchPickerProps extends Omit<ComponentPropsWithoutRef<'div'>, 'onChange'> {\n value: string;\n onChange: (color: string) => void;\n colors: string[];\n}\n\nexport const SwatchPicker = ({ value, onChange, colors, ...restProps }: SwatchPickerProps) => {\n return (\n <SwatchGrid {...restProps}>\n {colors.map((color) => (\n <Swatch key={color} color={color} selected={color === value} onSelect={onChange} />\n ))}\n </SwatchGrid>\n );\n};\n\nconst ColorSwatch = styled.button<{ selected: boolean; $color?: string }>`\n display: inline-block;\n width: 24px;\n height: 24px;\n padding: 0;\n background-color: ${({ $color }) => $color ?? 'transparent'};\n border-radius: ${BorderRadius.Circle};\n border: 2px solid ${({ theme }) => semanticColor(theme, 'InputSurfaceDefault', Color.PrimaryWhite)};\n transition:
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../src/components/SwatchPicker/SwatchPicker.tsx"],"sourcesContent":["import type { ComponentPropsWithoutRef } from 'react';\nimport styled from 'styled-components';\n\nimport { BorderRadius, Color, Spacing } from '@persona/design-tokens';\n\nimport { semanticColor } from '#src/lib/semanticColor';\nimport { Elevation } from '#src/variables/effect';\nimport { TransitionDuration, TransitionEasing } from '#src/variables/transitions';\n\nconst SwatchGrid = styled.div`\n display: flex;\n flex-wrap: wrap;\n align-items: flex-start;\n gap: ${Spacing[1]};\n`;\n\nexport interface SwatchPickerProps extends Omit<ComponentPropsWithoutRef<'div'>, 'onChange'> {\n value: string;\n onChange: (color: string) => void;\n colors: string[];\n}\n\nexport const SwatchPicker = ({ value, onChange, colors, ...restProps }: SwatchPickerProps) => {\n return (\n <SwatchGrid {...restProps}>\n {colors.map((color) => (\n <Swatch key={color} color={color} selected={color === value} onSelect={onChange} />\n ))}\n </SwatchGrid>\n );\n};\n\nconst ColorSwatch = styled.button<{ selected: boolean; $color?: string }>`\n display: inline-block;\n width: 24px;\n height: 24px;\n padding: 0;\n background-color: ${({ $color }) => $color ?? 'transparent'};\n border-radius: ${BorderRadius.Circle};\n border: 2px solid ${({ theme }) => semanticColor(theme, 'InputSurfaceDefault', Color.PrimaryWhite)};\n transition: box-shadow ${TransitionDuration.Fast} ${TransitionEasing.Move};\n cursor: pointer;\n ${({ selected, theme }) =>\n selected\n ? `outline: 2px solid ${semanticColor(theme, 'BorderAccent', Color.BorderIconActive)}`\n : ''};\n\n &:hover {\n box-shadow: ${Elevation.Low};\n }\n`;\n\nconst WhiteSwatch = styled(ColorSwatch)`\n border-color: ${({ theme }) => semanticColor(theme, 'BorderDivider', Color.BorderHairline)};\n`;\n\ninterface SwatchProps {\n color: string;\n selected: boolean;\n onSelect: (color: string) => void;\n}\n\nconst Swatch = ({ color, selected, onSelect }: SwatchProps) => {\n // NOTE: This is a hack to get the white color to show up. In theory we may want to do this\n // for all colors close to white, but this gets the job done for now.\n return color.toUpperCase() === '#FFFFFF' ? (\n <WhiteSwatch selected={selected} title='#FFFFFF' onClick={() => onSelect(color)} />\n ) : (\n <ColorSwatch $color={color} selected={selected} title={color} onClick={() => onSelect(color)} />\n );\n};\n\nexport default SwatchPicker;\n"],"mappings":";;;;;;;AASA,MAAM,aAAa,OAAO,GAAG;;;;SAIpB,QAAQ,GAAG;;AASpB,MAAa,gBAAgB,EAAE,OAAO,UAAU,QAAQ,GAAG,gBAAmC;AAC5F,QACE,oBAAC,YAAD;EAAY,GAAI;YACb,OAAO,KAAK,UACX,oBAAC,QAAD;GAA2B;GAAO,UAAU,UAAU;GAAO,UAAU;GAAY,EAAtE,MAAsE,CACnF;EACS,CAAA;;AAIjB,MAAM,cAAc,OAAO,MAA8C;;;;;uBAKlD,EAAE,aAAa,UAAU,cAAc;mBAC3C,aAAa,OAAO;uBAChB,EAAE,YAAY,cAAc,OAAO,uBAAuB,MAAM,aAAa,CAAC;mCAClD,GAAA,+BAAyB;;KAEvE,EAAE,UAAU,YACb,WACI,sBAAsB,cAAc,OAAO,gBAAgB,MAAM,iBAAiB,KAClF,GAAG;;;oIAGqB;;;AAIhC,MAAM,cAAc,OAAO,YAAY;mBACpB,EAAE,YAAY,cAAc,OAAO,iBAAiB,MAAM,eAAe,CAAC;;AAS7F,MAAM,UAAU,EAAE,OAAO,UAAU,eAA4B;AAG7D,QAAO,MAAM,aAAa,KAAK,YAC7B,oBAAC,aAAD;EAAuB;EAAU,OAAM;EAAU,eAAe,SAAS,MAAM;EAAI,CAAA,GAEnF,oBAAC,aAAD;EAAa,QAAQ;EAAiB;EAAU,OAAO;EAAO,eAAe,SAAS,MAAM;EAAI,CAAA"}
|
|
@@ -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,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-CQOL30et.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-D9NA-s9l.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 { t as TextAreaWithStyle } from "../../TextArea-
|
|
1
|
+
import { t as TextAreaWithStyle } from "../../TextArea-CQ1YNi2b.mjs";
|
|
2
2
|
export { TextAreaWithStyle as TextArea, TextAreaWithStyle as default };
|
|
@@ -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,17 +1,17 @@
|
|
|
1
1
|
import { a as styled, r as css } from "../../styledComponentsInterop-Cs5CCPRy.mjs";
|
|
2
2
|
import { semanticColor, semanticOnly, semanticTokens } from "../../lib/semanticColor.mjs";
|
|
3
3
|
import { paragraphMixins } from "../../mixins/text.mjs";
|
|
4
|
-
import "../../variables/transitions.mjs";
|
|
4
|
+
import { ReducedMotionFade, TransitionEasingCurve } from "../../variables/transitions.mjs";
|
|
5
5
|
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-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";
|
|
13
13
|
import { XIcon as XIcon$1 } from "@persona/icons/12px";
|
|
14
|
-
import { motion } from "framer-motion";
|
|
14
|
+
import { motion, useReducedMotion } from "framer-motion";
|
|
15
15
|
//#region src/components/Toast/Toast.tsx
|
|
16
16
|
const TOAST_WIDTH = "324px";
|
|
17
17
|
const BaseToast = styled(motion.div)`
|
|
@@ -87,8 +87,14 @@ const getIcon = (variant) => {
|
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
89
|
const Toast = ({ message, messageType, onDismiss, shouldClipOverflow, ...elemProps }) => {
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
const StyledToast = getStyledComponent(messageType);
|
|
91
|
+
const prefersReducedMotion = useReducedMotion();
|
|
92
|
+
const reducedFade = {
|
|
93
|
+
duration: ReducedMotionFade.durationInSeconds,
|
|
94
|
+
ease: TransitionEasingCurve.Move
|
|
95
|
+
};
|
|
96
|
+
return /* @__PURE__ */ jsxs(StyledToast, {
|
|
97
|
+
initial: prefersReducedMotion ? { opacity: 0 } : {
|
|
92
98
|
y: 64,
|
|
93
99
|
opacity: 0,
|
|
94
100
|
scale: .96
|
|
@@ -100,18 +106,18 @@ const Toast = ({ message, messageType, onDismiss, shouldClipOverflow, ...elemPro
|
|
|
100
106
|
},
|
|
101
107
|
exit: {
|
|
102
108
|
opacity: 0,
|
|
103
|
-
scale: .9,
|
|
104
|
-
transition: {
|
|
109
|
+
scale: prefersReducedMotion ? 1 : .9,
|
|
110
|
+
transition: prefersReducedMotion ? reducedFade : {
|
|
105
111
|
duration: .3,
|
|
106
|
-
ease:
|
|
112
|
+
ease: TransitionEasingCurve.Exit
|
|
107
113
|
}
|
|
108
114
|
},
|
|
109
115
|
role: "alert",
|
|
110
116
|
"aria-live": "polite",
|
|
111
|
-
transition: {
|
|
117
|
+
transition: prefersReducedMotion ? reducedFade : {
|
|
112
118
|
type: "tween",
|
|
113
119
|
duration: .4,
|
|
114
|
-
ease:
|
|
120
|
+
ease: TransitionEasingCurve.Enter
|
|
115
121
|
},
|
|
116
122
|
...elemProps,
|
|
117
123
|
children: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["XIcon"],"sources":["../../../src/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 {
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["XIcon"],"sources":["../../../src/components/Toast/Toast.tsx"],"sourcesContent":["import { type HTMLMotionProps, motion, useReducedMotion } 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 {\n ReducedMotionFade,\n TransitionDurationInSeconds,\n TransitionEasingCurve,\n} 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';\n\nimport { withAlpha } from '#src/lib/color';\nimport { MessageType } from '#src/lib/message';\nimport { semanticColor, semanticOnly, semanticTokens } from '#src/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 const prefersReducedMotion = useReducedMotion();\n const reducedFade = {\n duration: ReducedMotionFade.durationInSeconds,\n ease: TransitionEasingCurve.Move,\n };\n\n return (\n <StyledToast\n initial={prefersReducedMotion ? { opacity: 0 } : { y: 64, opacity: 0, scale: 0.96 }}\n animate={{ y: 0, opacity: 1, scale: 1 }}\n exit={{\n opacity: 0,\n scale: prefersReducedMotion ? 1 : 0.9,\n transition: prefersReducedMotion\n ? reducedFade\n : { duration: TransitionDurationInSeconds.MediumFast, ease: TransitionEasingCurve.Exit },\n }}\n role='alert'\n aria-live='polite'\n transition={\n prefersReducedMotion\n ? reducedFade\n : {\n type: 'tween',\n duration: TransitionDurationInSeconds.Medium,\n ease: TransitionEasingCurve.Enter,\n }\n }\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":";;;;;;;;;;;;;;;AAmCA,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;CAChB,MAAM,cAAc,mBAAmB,YAAY;CACnD,MAAM,uBAAuB,kBAAkB;CAC/C,MAAM,cAAc;EAClB,UAAU,kBAAkB;EAC5B,MAAM,sBAAsB;EAC7B;AAED,QACE,qBAAC,aAAD;EACE,SAAS,uBAAuB,EAAE,SAAS,GAAG,GAAG;GAAE,GAAG;GAAI,SAAS;GAAG,OAAO;GAAM;EACnF,SAAS;GAAE,GAAG;GAAG,SAAS;GAAG,OAAO;GAAG;EACvC,MAAM;GACJ,SAAS;GACT,OAAO,uBAAuB,IAAI;GAClC,YAAY,uBACR,cACA;IAAE,UAAA;IAAkD,MAAM,sBAAsB;IAAM;GAC3F;EACD,MAAK;EACL,aAAU;EACV,YACE,uBACI,cACA;GACE,MAAM;GACN,UAAA;GACA,MAAM,sBAAsB;GAC7B;EAEP,GAAI;YArBN;GAuBE,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 { t as Toggle } from "../../Toggle-
|
|
1
|
+
import { t as Toggle } from "../../Toggle-CzHoIR-n.mjs";
|
|
2
2
|
export { Toggle, Toggle as default };
|
|
@@ -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 };
|
|
@@ -4,11 +4,11 @@ import { i as Paragraph } from "../../Text-D0vEReED.mjs";
|
|
|
4
4
|
import { focusOutline } from "../../mixins/focus.mjs";
|
|
5
5
|
import { semanticScrollbar } from "../../mixins/scrollbar.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-
|
|
11
|
-
import { t as TextAreaWithStyle } from "../../TextArea-
|
|
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-CiPFqr0L.mjs";
|
|
11
|
+
import { t as TextAreaWithStyle } from "../../TextArea-CQ1YNi2b.mjs";
|
|
12
12
|
import { n as StatusIndicator } from "../../StatusIndicator-CzRaEFSz.mjs";
|
|
13
13
|
import { useCallback, useMemo, useState } from "react";
|
|
14
14
|
import { Color, Spacing } from "@persona/design-tokens";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as CompoundExpression, u as FilterRule } from "./types-
|
|
1
|
+
import { n as CompoundExpression, u as FilterRule } from "./types-BJqmRXFV.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/components/DataTable/TableControls/FiltersV2/AdvancedFilterRulesPopover/compound-expression.d.ts
|
|
4
4
|
declare function addRuleToGroup(compound: CompoundExpression, groupIndex: number, rule: FilterRule): CompoundExpression;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as FilterFieldType, r as DateRangeFilterValue, u as FilterRule } from "./types-
|
|
1
|
+
import { c as FilterFieldType, r as DateRangeFilterValue, u as FilterRule } from "./types-BJqmRXFV.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/components/DataTable/TableControls/FiltersV2/date-range-rule-value.d.ts
|
|
4
4
|
/**
|
|
@@ -14,4 +14,4 @@ import { c as FilterFieldType, r as DateRangeFilterValue, u as FilterRule } from
|
|
|
14
14
|
declare function resolveDateRangeRuleValue(rule: Pick<FilterRule, 'operator' | 'relativeDate' | 'value'>, fieldType?: FilterFieldType): DateRangeFilterValue | null;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { resolveDateRangeRuleValue as t };
|
|
17
|
-
//# sourceMappingURL=date-range-rule-value-
|
|
17
|
+
//# sourceMappingURL=date-range-rule-value-DyLlMtjr.d.mts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as resolveDateRangeRuleValue } from "./date-range-rule-value-
|
|
1
|
+
import { t as resolveDateRangeRuleValue } from "./date-range-rule-value-DyLlMtjr.mjs";
|
|
2
2
|
export { resolveDateRangeRuleValue };
|
package/dist/display.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as FilterFieldType, d as FilterRuleValue, l as FilterOperator, o as FilterField, u as FilterRule } from "./types-
|
|
1
|
+
import { c as FilterFieldType, d as FilterRuleValue, l as FilterOperator, o as FilterField, u as FilterRule } from "./types-BJqmRXFV.mjs";
|
|
2
2
|
import { i as CommonStrings } from "./strings-DQZIO-n7.mjs";
|
|
3
3
|
//#region src/components/DataTable/TableControls/FiltersV2/AdvancedFilterRulesPopover/display.d.ts
|
|
4
4
|
interface ValueDisplayOptions {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { r as Rule } from "./index-CLAjbq8g.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/lint/rules/duration-token.d.ts
|
|
4
|
+
/** `TransitionDuration`, mirrored here because the plugin has no runtime imports. */
|
|
5
|
+
declare const DURATION_TOKENS: Record<number, string>;
|
|
6
|
+
/** `TransitionDurationInSeconds`, the same steps. */
|
|
7
|
+
declare const SECONDS_TOKENS: Record<number, string>;
|
|
8
|
+
declare const durationToken: Rule;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { DURATION_TOKENS, SECONDS_TOKENS, durationToken };
|
|
11
|
+
//# sourceMappingURL=duration-token.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as ComboboxOptionsOrGroups } from "./ComboboxBase-
|
|
2
|
-
import { t as FieldRegistry } from "./FieldRegistry-
|
|
1
|
+
import { o as ComboboxOptionsOrGroups } from "./ComboboxBase-CrFweFGi.mjs";
|
|
2
|
+
import { t as FieldRegistry } from "./FieldRegistry-CJwGpUVK.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/components/DataTable/TableControls/FiltersV2/fieldPickerOptions.d.ts
|
|
5
5
|
declare const FIELDS_SUBMENU_LABEL = "Fields";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as FilterSize } from "./types-
|
|
1
|
+
import { p as FilterSize } from "./types-BJqmRXFV.mjs";
|
|
2
2
|
import * as _$react from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/DataTable/TableControls/FiltersV2/filter-size-context.d.ts
|
|
@@ -49,4 +49,4 @@ declare const FILTER_SIZE_TOKENS: Record<FilterSize, FilterSizeTokens>;
|
|
|
49
49
|
declare function useFilterSizeTokens(override?: FilterSize): FilterSizeTokens;
|
|
50
50
|
//#endregion
|
|
51
51
|
export { useFilterBarSize as a, FilterSizeTokens as i, FilterBarContext as n, useFilterSizeTokens as o, FilterBarContextValue as r, FILTER_SIZE_TOKENS as t };
|
|
52
|
-
//# sourceMappingURL=filter-size-context-
|
|
52
|
+
//# sourceMappingURL=filter-size-context-DVnjmuhk.d.mts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as useFilterBarSize, i as FilterSizeTokens, n as FilterBarContext, o as useFilterSizeTokens, r as FilterBarContextValue, t as FILTER_SIZE_TOKENS } from "./filter-size-context-
|
|
1
|
+
import { a as useFilterBarSize, i as FilterSizeTokens, n as FilterBarContext, o as useFilterSizeTokens, r as FilterBarContextValue, t as FILTER_SIZE_TOKENS } from "./filter-size-context-DVnjmuhk.mjs";
|
|
2
2
|
export { FILTER_SIZE_TOKENS, FilterBarContext, FilterBarContextValue, FilterSizeTokens, useFilterBarSize, useFilterSizeTokens };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as BaseFilterConfig, l as FilterTypeDefinition, t as ActiveFilter, u as FilterTypeResolver } from "./types-
|
|
1
|
+
import { i as BaseFilterConfig, l as FilterTypeDefinition, t as ActiveFilter, u as FilterTypeResolver } from "./types-NO2GRlM-.mjs";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
3
|
import * as _$styled_components0 from "styled-components";
|
|
4
4
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
@@ -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-DW7pqWv3.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-DW7pqWv3.mjs";
|
|
2
2
|
export { Filters, FiltersContainer, getActiveFilters, isFilterActive, resolveFilterTypeDefinition, synchronizeActiveFilters };
|
|
@@ -1,6 +1,6 @@
|
|
|
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-Dws2XDz2.mjs";
|
|
4
4
|
import { ReactNode } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/components/DataTable/helpers.d.ts
|
|
@@ -87,4 +87,4 @@ declare const renderAsLightweightImage: (value: unknown, config?: DataTableColum
|
|
|
87
87
|
declare const renderAsPDSFormat: <TData = unknown>(value: unknown, format?: DataTableColumnFormat<TData>, row?: TData, options?: PDSFormatOptions) => string | ReactNode;
|
|
88
88
|
//#endregion
|
|
89
89
|
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-
|
|
90
|
+
//# sourceMappingURL=helpers-BTD2kXLs.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-BTD2kXLs.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-ZDaitaXR.mjs";
|
|
2
|
+
import { n as LogicRowProps } from "./LogicRow-Bzp5o1sL.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-B4tE0RxY.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/index4.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as resolveValueControl } from "./value-control-resolver-
|
|
2
|
-
import { t as FilterBar } from "./FilterBar-
|
|
3
|
-
import { t as FilterBarProps } from "./index-
|
|
1
|
+
import { r as resolveValueControl } from "./value-control-resolver-BFJZEWDn.mjs";
|
|
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/index5.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as PillShellProps, t as PillShell } from "./PillShell-
|
|
1
|
+
import { n as PillShellProps, t as PillShell } from "./PillShell-Bkyu5FXB.mjs";
|
|
2
2
|
export { PillShellProps, PillShell as default };
|
package/dist/index6.d.mts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
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-
|
|
2
|
-
import { n as RawFieldInfo, r as buildFieldRegistry, t as FieldRegistry } from "./FieldRegistry-
|
|
3
|
-
import { n as ValueControlResolver, r as resolveValueControl, t as ResolveValueControlOptions } from "./value-control-resolver-
|
|
4
|
-
import { t as FilterBar } from "./FilterBar-
|
|
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
|
+
import { n as RawFieldInfo, r as buildFieldRegistry, t as FieldRegistry } from "./FieldRegistry-CJwGpUVK.mjs";
|
|
3
|
+
import { n as ValueControlResolver, r as resolveValueControl, t as ResolveValueControlOptions } from "./value-control-resolver-BFJZEWDn.mjs";
|
|
4
|
+
import { t as FilterBar } from "./FilterBar-CA4mDAXK.mjs";
|
|
5
5
|
import { t as dateRuleIntent } from "./date-rule-intent-DDDCA6kc.mjs";
|
|
6
|
-
import { t as resolveDateRangeRuleValue } from "./date-range-rule-value-
|
|
7
|
-
import { t as FilterBarProps } from "./index-
|
|
8
|
-
import { a as useFilterBarSize, i as FilterSizeTokens, t as FILTER_SIZE_TOKENS } from "./filter-size-context-
|
|
9
|
-
import { n as PillShellProps, t as PillShell } from "./PillShell-
|
|
10
|
-
import {
|
|
11
|
-
import { a as decodeFilterStateFromUrl, i as decodeFilterStateFromString, n as UrlStateCodecResult, o as encodeFilterStateToUrlParam, r as applyFilterStateToSearchParams, t as FILTER_STATE_URL_PARAM } from "./url-state-
|
|
12
|
-
import { n as UseFilterStateV2Result, r as useFilterStateV2, t as UseFilterStateV2Options } from "./useFilterStateV2-
|
|
13
|
-
import { n as isFilterStateV2, r as pruneToRegistry, t as hasCompleteValue } from "./validation-
|
|
14
|
-
import { t as ValueControlProps } from "./types-
|
|
15
|
-
export { AndGroup, CompoundExpression, DateRangeFilterValue, EMPTY_FILTER_STATE, FILTER_SIZE_TOKENS, FILTER_STATE_URL_PARAM, FieldRegistry, FilterBar, FilterBarProps, FilterConditionOperator, FilterField, FilterFieldSource, FilterFieldType, FilterOperator, FilterRule, FilterRuleValue, FilterRuleValueChange, FilterSize, FilterSizeTokens, FilterStateV2, NUMERIC_COMPARISON_OPERATORS, NumericComparisonOperator, PillShell, PillShellProps, RawFieldInfo, ResolveValueControlOptions, TopLevelFilterRule, UrlStateCodecResult, UseFilterStateV2Options, UseFilterStateV2Result, ValueControlProps, ValueControlResolver, applyFilterStateToSearchParams, buildFieldRegistry, dateRuleIntent, decodeFilterStateFromString, decodeFilterStateFromUrl, emptyValueForRule, encodeFilterStateToUrlParam, getDefaultOperatorForType, getOperatorsForField, getOperatorsForType, hasCompleteValue, isCompleteDateRange, isEmptyState, isFilterStateV2, isNumericComparisonOperator, isRangeOperator, isValuelessOperator, pruneToRegistry, reconcileValueForOperator, resolveDateRangeRuleValue, resolveValueControl, useFilterBarSize, useFilterStateV2 };
|
|
6
|
+
import { t as resolveDateRangeRuleValue } from "./date-range-rule-value-DyLlMtjr.mjs";
|
|
7
|
+
import { t as FilterBarProps } from "./index-DTM_t7OG.mjs";
|
|
8
|
+
import { a as useFilterBarSize, i as FilterSizeTokens, t as FILTER_SIZE_TOKENS } from "./filter-size-context-DVnjmuhk.mjs";
|
|
9
|
+
import { n as PillShellProps, t as PillShell } from "./PillShell-Bkyu5FXB.mjs";
|
|
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";
|
|
11
|
+
import { a as decodeFilterStateFromUrl, i as decodeFilterStateFromString, n as UrlStateCodecResult, o as encodeFilterStateToUrlParam, r as applyFilterStateToSearchParams, t as FILTER_STATE_URL_PARAM } from "./url-state-CXPmXzIZ.mjs";
|
|
12
|
+
import { n as UseFilterStateV2Result, r as useFilterStateV2, t as UseFilterStateV2Options } from "./useFilterStateV2-DiTS9DTg.mjs";
|
|
13
|
+
import { n as isFilterStateV2, r as pruneToRegistry, t as hasCompleteValue } from "./validation-BDQdQ1cY.mjs";
|
|
14
|
+
import { t as ValueControlProps } from "./types-BOsCi-kZ.mjs";
|
|
15
|
+
export { AndGroup, CompoundExpression, DateRangeFilterValue, EMPTY_FILTER_STATE, FILTER_SIZE_TOKENS, FILTER_STATE_URL_PARAM, FieldRegistry, FilterBar, FilterBarProps, FilterConditionOperator, FilterField, FilterFieldSource, FilterFieldType, FilterOperator, FilterRule, FilterRuleValue, FilterRuleValueChange, FilterSize, FilterSizeTokens, FilterStateV2, NUMERIC_COMPARISON_OPERATORS, NumericComparisonOperator, PillShell, PillShellProps, RawFieldInfo, ResolveValueControlOptions, TopLevelFilterRule, UrlStateCodecResult, UseFilterStateV2Options, UseFilterStateV2Result, ValueControlProps, ValueControlResolver, applyFilterStateToSearchParams, buildFieldRegistry, dateRuleIntent, decodeFilterStateFromString, decodeFilterStateFromUrl, emptyValueForRule, encodeFilterStateToUrlParam, getConditionValueError, getDefaultOperatorForType, getOperatorsForField, getOperatorsForType, hasCompleteValue, isCompleteDateRange, isEmptyState, isFilterStateV2, isNumericComparisonOperator, isRangeOperator, isValuelessOperator, pruneToRegistry, reconcileValueForOperator, resolveDateRangeRuleValue, resolveValueControl, useFilterBarSize, useFilterStateV2 };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { n as CheckboxProps } from "./Checkbox-Clt9mCTk.mjs";
|
|
2
|
-
import { n as ComboboxMultiSelectProps } from "./ComboboxMultiSelect-
|
|
3
|
-
import {
|
|
2
|
+
import { n as ComboboxMultiSelectProps } from "./ComboboxMultiSelect-Cp5GBGQj.mjs";
|
|
3
|
+
import { r as ComboboxSingleSelectProps } from "./ComboboxSingleSelect-u7fK3Yvy.mjs";
|
|
4
4
|
import { n as FormFieldBaseProps } from "./FormField-BW5uMzId.mjs";
|
|
5
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-DsVeAyZy.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-DnBb3NhK.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-DnBb3NhK.mjs";
|
|
2
2
|
export { CheckboxField, CheckboxFieldProps, ComboboxField, ComboboxMultiSelectFieldProps, ComboboxSingleSelectFieldProps, ImplementsFormField, RadioGroupField, RadioGroupFieldProps, SegmentedControlField, SegmentedControlFieldProps, SelectField, SelectFieldProps, TextAreaField, TextAreaFieldProps, TextField, TextFieldProps, ToggleField, ToggleFieldProps, splitOutFormFieldProps };
|
|
@@ -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
|