@persona/design-system 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/README.md +3 -3
- package/dist/{Action-CnNf5T-l.d.mts → Action-CcAyQpYN.d.mts} +3 -3
- package/dist/Action.d.mts +1 -1
- package/dist/AdvancedFilterRuleRow.d.mts +5 -5
- package/dist/AdvancedFilterRulesPopover.d.mts +4 -4
- package/dist/ArrayValueControl.d.mts +1 -1
- package/dist/Attribute.d.mts +5 -5
- package/dist/AttributeGrid.d.mts +1 -1
- package/dist/{Badge-BqS6Nk4J.mjs → Badge-BL0J5oMa.mjs} +3 -3
- package/dist/{Badge-BqS6Nk4J.mjs.map → Badge-BL0J5oMa.mjs.map} +1 -1
- package/dist/Banner.d.mts +1 -1
- package/dist/BooleanValueControl.d.mts +1 -1
- package/dist/BottomPanel.d.mts +32 -0
- package/dist/{Breadcrumb-DEwZFJHF.d.mts → Breadcrumb-Df06cTnA.d.mts} +1 -1
- package/dist/Breadcrumb.d.mts +1 -1
- package/dist/{Breadcrumbs-0e_3v9FF.d.mts → Breadcrumbs-D_Gzd4_J.d.mts} +2 -2
- package/dist/{Breadcrumbs-CqKtnZqu.mjs → Breadcrumbs-Zi5p0HDR.mjs} +12 -12
- package/dist/{Breadcrumbs-CqKtnZqu.mjs.map → Breadcrumbs-Zi5p0HDR.mjs.map} +1 -1
- package/dist/Breadcrumbs.d.mts +1 -1
- package/dist/{Button-C0F0F2IL.d.mts → Button-BrI1s2-r.d.mts} +4 -4
- package/dist/Button.d.mts +1 -1
- package/dist/ButtonGroup.d.mts +1 -1
- package/dist/{Calendar-BvLNcHQM.d.mts → Calendar-DjnoZVcT.d.mts} +2 -2
- package/dist/Calendar.d.mts +1 -1
- package/dist/CalendarBase.d.mts +1 -1
- package/dist/{Card-BMCB9eFC.mjs → Card-CKrJtn1f.mjs} +4 -4
- package/dist/{Card-BMCB9eFC.mjs.map → Card-CKrJtn1f.mjs.map} +1 -1
- package/dist/{Card-BxNoIQWw.d.mts → Card-mZDNFaJy.d.mts} +4 -4
- package/dist/Card.d.mts +1 -1
- package/dist/Card2.d.mts +3 -3
- package/dist/{CardV2-B0ZweQYk.mjs → CardV2-CXxzl1EZ.mjs} +20 -20
- package/dist/{CardV2-B0ZweQYk.mjs.map → CardV2-CXxzl1EZ.mjs.map} +1 -1
- package/dist/{Checkbox-Bm8exUfH.d.mts → Checkbox-CwPXPLCi.d.mts} +1 -1
- package/dist/{Checkbox-DAvbgZgO.mjs → Checkbox-DxNHp59y.mjs} +8 -8
- package/dist/{Checkbox-DAvbgZgO.mjs.map → Checkbox-DxNHp59y.mjs.map} +1 -1
- package/dist/Checkbox.d.mts +1 -1
- package/dist/CheckboxGroupField.d.mts +2 -2
- package/dist/ChoicesValueControl.d.mts +1 -1
- package/dist/{Combobox-xBrxiUAu.mjs → Combobox-BUtqtzKl.mjs} +22 -22
- package/dist/Combobox-BUtqtzKl.mjs.map +1 -0
- package/dist/{Combobox-C8ue0cBP.d.mts → Combobox-C9QBItsc.d.mts} +3 -3
- package/dist/Combobox.d.mts +2 -2
- package/dist/{ComboboxBase-DJGTMf1_.d.mts → ComboboxBase-BkSpdmsT.d.mts} +8 -8
- package/dist/ComboboxBase.d.mts +1 -1
- package/dist/{ComboboxMultiSelect-D7A2bbWU.d.mts → ComboboxMultiSelect-DkVfwSKH.d.mts} +2 -2
- package/dist/ComboboxMultiSelect.d.mts +1 -1
- package/dist/{ComboboxSingleSelect-D1uzEyKj.d.mts → ComboboxSingleSelect-CpumBcDn.d.mts} +4 -4
- package/dist/ComboboxSingleSelect.d.mts +1 -1
- package/dist/{CompactBar-DMuvqaV5.d.mts → CompactBar-COxu_FDd.d.mts} +3 -3
- package/dist/CompactBar.d.mts +1 -1
- package/dist/{ConfigFormGroup-D2_sajXe.mjs → ConfigFormGroup-aSdn2r6Z.mjs} +4 -4
- package/dist/{ConfigFormGroup-D2_sajXe.mjs.map → ConfigFormGroup-aSdn2r6Z.mjs.map} +1 -1
- package/dist/{ControlBar-Dg8JeU8f.d.mts → ControlBar-DwAhPcb5.d.mts} +12 -2
- package/dist/ControlBar.d.mts +1 -1
- package/dist/DataTable.d.mts +5 -4
- package/dist/{DateField-Com9f2-j.d.mts → DateField-tOyrGcx1.d.mts} +2 -2
- package/dist/DateField.d.mts +1 -1
- package/dist/{DatePicker-BGO6doLx.d.mts → DatePicker-Bs9JODNg.d.mts} +2 -2
- package/dist/{DatePicker-BlnE2MBD.mjs → DatePicker-CLP-ajza.mjs} +95 -23
- package/dist/DatePicker-CLP-ajza.mjs.map +1 -0
- package/dist/DatePicker.d.mts +1 -1
- package/dist/{DateRangePicker-DfRBm9z4.d.mts → DateRangePicker-BT6-j8V7.d.mts} +24 -4
- package/dist/DateRangePicker.d.mts +2 -2
- package/dist/DateRangeValueControl.d.mts +8 -4
- package/dist/DateValueControl.d.mts +1 -1
- package/dist/{DropdownButton-CpWNRUma.mjs → DropdownButton-CCAfNZ9h.mjs} +3 -3
- package/dist/{DropdownButton-CpWNRUma.mjs.map → DropdownButton-CCAfNZ9h.mjs.map} +1 -1
- package/dist/DropdownButton.d.mts +2 -2
- package/dist/{DropdownMenu-CnaK78rP.d.mts → DropdownMenu-BoatixlO.d.mts} +3 -3
- package/dist/{DropdownMenu-BCyV8nC0.mjs → DropdownMenu-CUnf420M.mjs} +4 -4
- package/dist/{DropdownMenu-BCyV8nC0.mjs.map → DropdownMenu-CUnf420M.mjs.map} +1 -1
- package/dist/DropdownMenu.d.mts +1 -1
- package/dist/{ErrorProps-CN2XjaOX.d.mts → ErrorProps-C9T857Wk.d.mts} +1 -1
- package/dist/ErrorProps.d.mts +1 -1
- package/dist/{FieldRegistry-DdA63Vnh.d.mts → FieldRegistry-D6niLExM.d.mts} +2 -2
- package/dist/FieldRegistry.d.mts +1 -1
- package/dist/{FilterBar-CxNsBVrn.d.mts → FilterBar-DfBV7yKM.d.mts} +10 -4
- package/dist/FilterBar.d.mts +1 -1
- package/dist/FilterPickerMenu.d.mts +3 -3
- package/dist/FilterPill.d.mts +1 -1
- package/dist/FilterPopover.d.mts +2 -2
- package/dist/FloatValueControl.d.mts +1 -1
- package/dist/FloatingPanel.d.mts +1 -1
- package/dist/FloatingPanelContext.d.mts +1 -1
- package/dist/{FormControl-Doj2gvF0.d.mts → FormControl-0H0Jeind.d.mts} +4 -4
- package/dist/{FormControl-HVzZEqJH.mjs → FormControl-1BmoYFCu.mjs} +6 -6
- package/dist/{FormControl-HVzZEqJH.mjs.map → FormControl-1BmoYFCu.mjs.map} +1 -1
- package/dist/FormControl.d.mts +1 -1
- package/dist/FormControlLabel.d.mts +2 -2
- package/dist/{FormField-D8dHbqZZ.d.mts → FormField-BcaFdmo5.d.mts} +2 -2
- package/dist/{FormField-B9P3BWvS.mjs → FormField-oBKH25qf.mjs} +22 -22
- package/dist/FormField-oBKH25qf.mjs.map +1 -0
- package/dist/FormField.d.mts +1 -1
- package/dist/Grid.d.mts +38 -0
- package/dist/GridItem.d.mts +17 -0
- package/dist/{Header-CBlB65NY.d.mts → Header-BjSoTEX_.d.mts} +2 -2
- package/dist/Header.d.mts +1 -1
- package/dist/{HelperTooltip-C28h1zFl.d.mts → HelperTooltip-S20wVFCS.d.mts} +3 -3
- package/dist/HelperTooltip.d.mts +1 -1
- package/dist/{HoverCopyableField-0Bzygbp9.mjs → HoverCopyableField-GMXeF-3J.mjs} +31 -20
- package/dist/HoverCopyableField-GMXeF-3J.mjs.map +1 -0
- package/dist/HoverCopyableField.d.mts +15 -4
- package/dist/{IconButton-BfDlic2K.mjs → IconButton-BgL3QUVO.mjs} +9 -9
- package/dist/{IconButton-BfDlic2K.mjs.map → IconButton-BgL3QUVO.mjs.map} +1 -1
- package/dist/{IconButton-CBcW7ZU8.d.mts → IconButton-BpyOr8Ev.d.mts} +2 -2
- package/dist/IconButton.d.mts +1 -1
- package/dist/ImageTile.d.mts +2 -2
- package/dist/InlineCombobox.d.mts +2 -2
- package/dist/InlineInput.d.mts +1 -1
- package/dist/{Input-Bimw8KFj.mjs → Input-BWlvBYB3.mjs} +6 -6
- package/dist/{Input-Bimw8KFj.mjs.map → Input-BWlvBYB3.mjs.map} +1 -1
- package/dist/{Input-CVdjkX88.d.mts → Input-qlQVD5h0.d.mts} +5 -5
- package/dist/Input.d.mts +1 -1
- package/dist/{InputProps-BwKkmImn.d.mts → InputProps-D_7MnQfE.d.mts} +2 -2
- package/dist/InputProps.d.mts +1 -1
- package/dist/IntegerValueControl.d.mts +1 -1
- package/dist/LayoutLoadingSpinner.d.mts +11 -0
- package/dist/Link.d.mts +3 -3
- package/dist/{ListBox-DKZpGYjo.mjs → ListBox-9jHHEaqW.mjs} +15 -15
- package/dist/{ListBox-DKZpGYjo.mjs.map → ListBox-9jHHEaqW.mjs.map} +1 -1
- package/dist/{ListBox-CDl5oZPX.d.mts → ListBox-ZE3MYMt6.d.mts} +5 -5
- package/dist/ListBox.d.mts +1 -1
- package/dist/ListBoxField.d.mts +3 -3
- package/dist/{LoadingShimmer-DC2vqicd.mjs → LoadingShimmer-a2Hv0kAq.mjs} +2 -2
- package/dist/{LoadingShimmer-DC2vqicd.mjs.map → LoadingShimmer-a2Hv0kAq.mjs.map} +1 -1
- package/dist/LoadingShimmer.d.mts +2 -2
- package/dist/{LogicRow-CkbyvrUw.d.mts → LogicRow-CbMmaWXU.d.mts} +4 -4
- package/dist/LogicRow.d.mts +1 -1
- package/dist/MaskedInput.d.mts +2 -2
- package/dist/MatchHighlight.d.mts +1 -1
- package/dist/{Menu-Dir03WA9.mjs → Menu-38UCGcte.mjs} +6 -6
- package/dist/{Menu-Dir03WA9.mjs.map → Menu-38UCGcte.mjs.map} +1 -1
- package/dist/{Menu-CYRdEnfo.d.mts → Menu-ZShdhNd7.d.mts} +4 -4
- package/dist/Menu.d.mts +1 -1
- package/dist/{MiddleTruncatedText-GXI-CPvs.mjs → MiddleTruncatedText-DnF7F_1D.mjs} +4 -4
- package/dist/{MiddleTruncatedText-GXI-CPvs.mjs.map → MiddleTruncatedText-DnF7F_1D.mjs.map} +1 -1
- package/dist/Modal.d.mts +4 -5
- package/dist/{PageHeader-C2IUKhCg.mjs → PageHeader-B2-Slzhl.mjs} +4 -4
- package/dist/{PageHeader-C2IUKhCg.mjs.map → PageHeader-B2-Slzhl.mjs.map} +1 -1
- package/dist/PageHeader.d.mts +2 -2
- package/dist/PageLayout.d.mts +1 -1
- package/dist/{PageSelector-vay4jpMp.d.mts → PageSelector-BcZx4nqe.d.mts} +3 -3
- package/dist/PageSelector.d.mts +1 -1
- package/dist/{Pagination-0VhVdXv0.mjs → Pagination-CtUz0gdA.mjs} +8 -8
- package/dist/{Pagination-0VhVdXv0.mjs.map → Pagination-CtUz0gdA.mjs.map} +1 -1
- package/dist/{Pagination-ygLutOst.d.mts → Pagination-j4hF7GOk.d.mts} +2 -2
- package/dist/Pagination.d.mts +1 -1
- package/dist/{Pii-C7pA72Bh.mjs → Pii-RwKn-K84.mjs} +2 -2
- package/dist/{Pii-C7pA72Bh.mjs.map → Pii-RwKn-K84.mjs.map} +1 -1
- package/dist/Pii.d.mts +1 -1
- package/dist/PillShell.d.mts +1 -1
- package/dist/{Popover-BkDpDdaO.mjs → Popover-DlXyKYL5.mjs} +6 -6
- package/dist/{Popover-BkDpDdaO.mjs.map → Popover-DlXyKYL5.mjs.map} +1 -1
- package/dist/Popover.d.mts +1 -1
- package/dist/ProgressBar.d.mts +1 -1
- package/dist/ProgressIndicator.d.mts +6 -4
- package/dist/{PseudoClassProps-CcSlKNev.d.mts → PseudoClassProps-BPdn-ofQ.d.mts} +1 -1
- package/dist/PseudoClassProps.d.mts +1 -1
- package/dist/{Radio-BaFutxgV.mjs → Radio-cLL9oatf.mjs} +5 -5
- package/dist/{Radio-BaFutxgV.mjs.map → Radio-cLL9oatf.mjs.map} +1 -1
- package/dist/{RadioGroup-ClMzOZl0.mjs → RadioGroup-BGo_kXKh.mjs} +4 -4
- package/dist/{RadioGroup-ClMzOZl0.mjs.map → RadioGroup-BGo_kXKh.mjs.map} +1 -1
- package/dist/{RadioGroup-BuJaitgG.d.mts → RadioGroup-BqULCH-D.d.mts} +1 -1
- package/dist/RadioGroup.d.mts +1 -1
- package/dist/RangeCalendar.d.mts +6 -1
- package/dist/RangeCalendarPresets.d.mts +13 -3
- package/dist/ResizableVerticalPanel.d.mts +22 -0
- package/dist/ResizeHandle.d.mts +19 -0
- package/dist/RightPanel.d.mts +41 -0
- package/dist/RightPanelLoadingContent.d.mts +7 -0
- package/dist/RightPanelResizeHandle.d.mts +14 -0
- package/dist/RuleEditorFields.d.mts +5 -5
- package/dist/RulesPill.d.mts +1 -1
- package/dist/{SearchInput-Ca3_np5e.d.mts → SearchInput-Dc90GLTF.d.mts} +3 -3
- package/dist/SearchInput.d.mts +1 -1
- package/dist/SectionHeading.d.mts +1 -1
- package/dist/{SegmentedControl-DgyJL4uN.mjs → SegmentedControl-CvWJGhwy.mjs} +5 -5
- package/dist/{SegmentedControl-DgyJL4uN.mjs.map → SegmentedControl-CvWJGhwy.mjs.map} +1 -1
- package/dist/{SegmentedControl-_I4sWeD7.d.mts → SegmentedControl-Db78Pzo_.d.mts} +2 -2
- package/dist/SegmentedControl.d.mts +1 -1
- package/dist/{Select-D6MqSYVa.mjs → Select-U_vQhK1A.mjs} +12 -13
- package/dist/Select-U_vQhK1A.mjs.map +1 -0
- package/dist/{Select-vwXGlHuW.d.mts → Select-bafAe2wd.d.mts} +4 -4
- package/dist/Select.d.mts +1 -1
- package/dist/Slider.d.mts +1 -1
- package/dist/SliderRHF.d.mts +1 -1
- package/dist/SliderThumb.d.mts +1 -1
- package/dist/{Spacer-CJp0lwkL.mjs → Spacer-BsK8tTwA.mjs} +2 -2
- package/dist/{Spacer-CJp0lwkL.mjs.map → Spacer-BsK8tTwA.mjs.map} +1 -1
- package/dist/{Spinner-BgBCCHGo.mjs → Spinner-BTyc6glU.mjs} +3 -3
- package/dist/{Spinner-BgBCCHGo.mjs.map → Spinner-BTyc6glU.mjs.map} +1 -1
- package/dist/{Stack-Bl54WmhY.mjs → Stack-Bre2oiov.mjs} +2 -2
- package/dist/{Stack-Bl54WmhY.mjs.map → Stack-Bre2oiov.mjs.map} +1 -1
- package/dist/{Stack-CkV7k7TE.d.mts → Stack-_JcvIE31.d.mts} +2 -2
- package/dist/Stack.d.mts +1 -1
- package/dist/StatusIndicator.d.mts +1 -1
- package/dist/{Sticker-xtDMuOoN.mjs → Sticker-CQ6sOKUj.mjs} +6 -6
- package/dist/{Sticker-xtDMuOoN.mjs.map → Sticker-CQ6sOKUj.mjs.map} +1 -1
- package/dist/{Sticker-Dhx2wqTL.d.mts → Sticker-OKVOQt_C.d.mts} +6 -6
- package/dist/Sticker.d.mts +1 -1
- package/dist/StringValueControl.d.mts +1 -1
- package/dist/SwatchPicker.d.mts +1 -1
- package/dist/Tab.d.mts +3 -3
- package/dist/{TabBar-D6UocZXi.mjs → TabBar-B5NtgtgC.mjs} +7 -7
- package/dist/{TabBar-D6UocZXi.mjs.map → TabBar-B5NtgtgC.mjs.map} +1 -1
- package/dist/TabBarIconButton.d.mts +2 -2
- package/dist/{Table-cO7ZwGPM.d.mts → Table-BcAgCIWq.d.mts} +1 -1
- package/dist/{Table-D1WyUQuv.mjs → Table-DfUD3I2s.mjs} +8 -8
- package/dist/{Table-D1WyUQuv.mjs.map → Table-DfUD3I2s.mjs.map} +1 -1
- package/dist/Table.d.mts +1 -1
- package/dist/{TableBody-CirMgfAV.d.mts → TableBody-D-RDBun9.d.mts} +1 -1
- package/dist/TableBody.d.mts +1 -1
- package/dist/{TableBox-C5qWhr82.mjs → TableBox-0GvWjRln.mjs} +27 -21
- package/dist/{TableBox-C5qWhr82.mjs.map → TableBox-0GvWjRln.mjs.map} +1 -1
- package/dist/TableBox.d.mts +2 -2
- package/dist/{TableBoxCell-DmVX_tgn.d.mts → TableBoxCell-WXc57DwN.d.mts} +12 -9
- package/dist/TableBoxCell.d.mts +1 -1
- package/dist/TableBoxField.d.mts +4 -4
- package/dist/{TableBoxRow-nwq41Bpi.d.mts → TableBoxRow-BQz0a9vr.d.mts} +4 -4
- package/dist/TableBoxRow.d.mts +1 -1
- package/dist/{TableBoxRowActions-B4_ojiQo.d.mts → TableBoxRowActions-DfewtLrn.d.mts} +2 -2
- package/dist/TableBoxRowActions.d.mts +1 -1
- package/dist/TableCell.d.mts +1 -1
- package/dist/{TableControls-RwIPBxyU.d.mts → TableControls-C26vGkWZ.d.mts} +6 -9
- package/dist/{TableControls-CZ9iu3ma.mjs → TableControls-WUNbzSNq.mjs} +331 -113
- package/dist/TableControls-WUNbzSNq.mjs.map +1 -0
- package/dist/TableControls.d.mts +1 -1
- package/dist/{TableControlsContext-D_SBFZN1.d.mts → TableControlsContext-ChFsFEjR.d.mts} +2 -2
- package/dist/TableControlsContext.d.mts +1 -1
- package/dist/{TableHead-DMq_q_W0.d.mts → TableHead-PPaqXC0K.d.mts} +1 -1
- package/dist/TableHead.d.mts +1 -1
- package/dist/{TableHeaderCell-C2pqXBYO.d.mts → TableHeaderCell-K_avn-rR.d.mts} +1 -1
- package/dist/TableHeaderCell.d.mts +1 -1
- package/dist/{TableLayout-DQKu6Rcj.d.mts → TableLayout-_Hd-Tvto.d.mts} +1 -1
- package/dist/TableLayout.d.mts +1 -1
- package/dist/{TableRow-CPqZ8DK3.d.mts → TableRow-BTWf9xVC.d.mts} +2 -2
- package/dist/TableRow.d.mts +1 -1
- package/dist/TableTH.d.mts +1 -1
- package/dist/{TableViewConfigurationDropdown-BYPh4dIP.d.mts → TableViewConfigurationDropdown-BqB7pOh8.d.mts} +5 -3
- package/dist/TableViewConfigurationDropdown.d.mts +1 -1
- package/dist/{TechnicalSticker-DTjg6d2F.mjs → TechnicalSticker-ClRR_6Ly.mjs} +6 -6
- package/dist/{TechnicalSticker-DTjg6d2F.mjs.map → TechnicalSticker-ClRR_6Ly.mjs.map} +1 -1
- package/dist/TechnicalSticker.d.mts +1 -1
- package/dist/{Text-RcEfNFLx.mjs → Text-B0orb-cZ.mjs} +2 -2
- package/dist/{Text-RcEfNFLx.mjs.map → Text-B0orb-cZ.mjs.map} +1 -1
- package/dist/{Text-CfIFUyHt.d.mts → Text-CAKHcXSd.d.mts} +4 -4
- package/dist/Text.d.mts +1 -1
- package/dist/{TextArea-DhPBI_1-.d.mts → TextArea-NjdArapc.d.mts} +2 -2
- package/dist/{TextArea-ZMgbE_Lh.mjs → TextArea-n4IKHJKo.mjs} +4 -4
- package/dist/{TextArea-ZMgbE_Lh.mjs.map → TextArea-n4IKHJKo.mjs.map} +1 -1
- package/dist/TextArea.d.mts +1 -1
- package/dist/{TextUnderlineTooltip-BzmmiJlC.d.mts → TextUnderlineTooltip-Duzxfc_r.d.mts} +3 -3
- package/dist/TextUnderlineTooltip.d.mts +1 -1
- package/dist/Tile.d.mts +2 -2
- package/dist/Toast.d.mts +1 -1
- package/dist/{Toggle-BPgfSjuu.mjs → Toggle-e8DCYa6i.mjs} +7 -7
- package/dist/{Toggle-BPgfSjuu.mjs.map → Toggle-e8DCYa6i.mjs.map} +1 -1
- package/dist/{Toggle-BGGQ4Ukl.d.mts → Toggle-fh80PA8P.d.mts} +1 -1
- package/dist/Toggle.d.mts +1 -1
- package/dist/{Tooltip-D_a-RwAN.d.mts → Tooltip-DabloV0o.d.mts} +3 -3
- package/dist/{Tooltip-BvDbmXak.mjs → Tooltip-iJcfJqxn.mjs} +5 -5
- package/dist/{Tooltip-BvDbmXak.mjs.map → Tooltip-iJcfJqxn.mjs.map} +1 -1
- package/dist/Tooltip.d.mts +1 -1
- package/dist/{TruncatedText-BJnowVTx.d.mts → TruncatedText-B1W4BivL.d.mts} +2 -2
- package/dist/codec-B0dZTwlG.d.mts +29 -0
- package/dist/codec.d.mts +2 -0
- package/dist/components/Attribute/index.mjs +7 -7
- package/dist/components/Attribute/index.mjs.map +1 -1
- package/dist/components/Badge/index.mjs +1 -1
- package/dist/components/Banner/index.mjs +3 -3
- package/dist/components/BottomPanel/index.d.mts +2 -0
- package/dist/components/BottomPanel/index.mjs +293 -0
- package/dist/components/BottomPanel/index.mjs.map +1 -0
- package/dist/components/Breadcrumbs/index.d.mts +1 -1
- package/dist/components/Breadcrumbs/index.mjs +1 -1
- package/dist/components/Button/index.d.mts +2 -2
- package/dist/components/Button/index.mjs +1 -1
- package/dist/components/ButtonGroup/index.mjs +4 -4
- package/dist/components/Card/index.d.mts +2 -2
- package/dist/components/Card/index.mjs +1 -1
- package/dist/components/CardV2/index.d.mts +1 -1
- package/dist/components/CardV2/index.mjs +1 -1
- package/dist/components/Checkbox/index.d.mts +1 -1
- package/dist/components/Checkbox/index.mjs +1 -1
- package/dist/components/Combobox/index.d.mts +2 -2
- package/dist/components/Combobox/index.mjs +1 -1
- package/dist/components/ConfigFormGroup/index.mjs +2 -2
- package/dist/components/DataTable/TableControls/index.d.mts +19 -16
- package/dist/components/DataTable/TableControls/index.mjs +2 -2
- package/dist/components/DataTable/index.mjs +25 -25
- package/dist/components/DataTable/index.mjs.map +1 -1
- package/dist/components/DataTable/types.d.mts +2 -2
- package/dist/components/DatePicker/index.d.mts +5 -5
- package/dist/components/DatePicker/index.mjs +1 -1
- package/dist/components/DropdownButton/index.mjs +1 -1
- package/dist/components/DropdownMenu/index.d.mts +1 -1
- package/dist/components/DropdownMenu/index.mjs +1 -1
- package/dist/components/FloatingPanel/index.mjs +8 -8
- package/dist/components/FloatingPanel/index.mjs.map +1 -1
- package/dist/components/FormControl/index.d.mts +2 -2
- package/dist/components/FormControl/index.mjs +2 -2
- package/dist/components/FormField/index.d.mts +1 -1
- package/dist/components/FormField/index.mjs +1 -1
- package/dist/components/Grid/index.d.mts +3 -0
- package/dist/components/Grid/index.mjs +85 -0
- package/dist/components/Grid/index.mjs.map +1 -0
- package/dist/components/HoverCopyableField/index.d.mts +2 -2
- package/dist/components/HoverCopyableField/index.mjs +2 -2
- package/dist/components/ImageTile/index.mjs +10 -10
- package/dist/components/Input/index.d.mts +1 -1
- package/dist/components/Input/index.mjs +1 -1
- package/dist/components/Link/index.mjs +4 -4
- package/dist/components/Link/index.mjs.map +1 -1
- package/dist/components/ListBox/index.d.mts +3 -3
- package/dist/components/ListBox/index.mjs +1 -1
- package/dist/components/LoadingShimmer/index.mjs +1 -1
- package/dist/components/MaskedInput/index.mjs +2 -2
- package/dist/components/MatchHighlight/index.mjs +1 -1
- package/dist/components/Menu/index.d.mts +1 -1
- package/dist/components/Menu/index.mjs +1 -1
- package/dist/components/Modal/index.mjs +42 -12
- package/dist/components/Modal/index.mjs.map +1 -1
- package/dist/components/PageHeader/index.mjs +1 -1
- package/dist/components/Pagination/index.d.mts +3 -3
- package/dist/components/Pagination/index.mjs +1 -1
- package/dist/components/Pii/index.mjs +1 -1
- package/dist/components/Popover/index.mjs +1 -1
- package/dist/components/ProgressBar/index.mjs +2 -2
- package/dist/components/ProgressIndicator/index.mjs +14 -10
- package/dist/components/ProgressIndicator/index.mjs.map +1 -1
- package/dist/components/Radio/index.mjs +1 -1
- package/dist/components/RadioGroup/index.d.mts +1 -1
- package/dist/components/RadioGroup/index.mjs +1 -1
- package/dist/components/RightPanel/index.d.mts +2 -0
- package/dist/components/RightPanel/index.mjs +294 -0
- package/dist/components/RightPanel/index.mjs.map +1 -0
- package/dist/components/SegmentedControl/index.d.mts +1 -1
- package/dist/components/SegmentedControl/index.mjs +1 -1
- package/dist/components/Select/index.d.mts +1 -1
- package/dist/components/Select/index.mjs +1 -1
- package/dist/components/Slider/index.mjs +4 -4
- package/dist/components/Spacer/index.mjs +1 -1
- package/dist/components/Spinner/index.mjs +1 -1
- package/dist/components/Stack/index.d.mts +1 -1
- package/dist/components/Stack/index.mjs +1 -1
- package/dist/components/StatusIndicator/index.mjs +2 -2
- 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 +7 -7
- package/dist/components/Table/index.mjs +1 -1
- package/dist/components/TableBox/index.d.mts +2 -2
- package/dist/components/TableBox/index.mjs +1 -1
- package/dist/components/TechnicalSticker/index.mjs +1 -1
- package/dist/components/Text/index.d.mts +1 -1
- package/dist/components/Text/index.mjs +1 -1
- package/dist/components/TextArea/index.d.mts +1 -1
- package/dist/components/TextArea/index.mjs +1 -1
- package/dist/components/Tile/index.mjs +5 -5
- package/dist/components/Toast/index.mjs +5 -5
- package/dist/components/Toggle/index.d.mts +1 -1
- package/dist/components/Toggle/index.mjs +1 -1
- package/dist/components/Tooltip/index.d.mts +3 -3
- package/dist/components/Tooltip/index.mjs +1 -1
- package/dist/compound-expression.d.mts +1 -1
- package/dist/{constants-BASogfT_.d.mts → constants-DcJ3tnwY.d.mts} +1 -1
- package/dist/constants.d.mts +1 -1
- package/dist/date-filter-BbWgAXy3.mjs +176 -0
- package/dist/date-filter-BbWgAXy3.mjs.map +1 -0
- package/dist/date-range-rule-value-DBEEWTQp.d.mts +17 -0
- package/dist/date-range-rule-value.d.mts +2 -0
- package/dist/date-rule-intent-BArNGT2E.d.mts +20 -0
- package/dist/date-rule-intent.d.mts +2 -0
- package/dist/display.d.mts +2 -2
- package/dist/fieldPickerOptions.d.mts +2 -2
- package/dist/{filter-size-context-Bw5F7082.d.mts → filter-size-context-D1UhTwOG.d.mts} +2 -2
- package/dist/filter-size-context.d.mts +1 -1
- package/dist/helpers.d.mts +1 -1
- package/dist/{index--5Mfhlkj.d.mts → index-DASkW991.d.mts} +2 -2
- package/dist/{index-C1bz13uw.d.mts → index-Dc_BgmPv.d.mts} +5 -5
- package/dist/{index-DiCnyORA.d.mts → index-Dpo-RP6S.d.mts} +5 -5
- package/dist/index-dhjtMp5F.d.mts +1 -0
- package/dist/index-uY8Qbwfx.d.mts +1 -0
- package/dist/index.d.mts +1 -1
- package/dist/index2.d.mts +1 -1
- package/dist/index3.d.mts +3 -3
- package/dist/index4.d.mts +14 -11
- package/dist/{input-CzO-6_1V.d.mts → input-M7BEIewR.d.mts} +3 -3
- package/dist/inputFields.d.mts +11 -11
- package/dist/{intersperse-yd3oMrQl.mjs → intersperse-DQAyfeEw.mjs} +1 -1
- package/dist/{intersperse-yd3oMrQl.mjs.map → intersperse-DQAyfeEw.mjs.map} +1 -1
- package/dist/lib/GlobalStyles.mjs +1 -1
- package/dist/lib/HeadlessAriaButton.mjs +1 -1
- package/dist/lib/MiddleTruncatedText.mjs +1 -1
- package/dist/lib/PDSProvider.d.mts +1 -1
- package/dist/lib/PDSProvider.mjs +1 -1
- package/dist/lib/TruncatedText.d.mts +1 -1
- package/dist/lib/TruncatedText.mjs +2 -2
- package/dist/lib/TruncatedTextWithTooltip.d.mts +1 -1
- package/dist/lib/TruncatedTextWithTooltip.mjs +2 -2
- package/dist/lib/date-filter/index.d.mts +3 -0
- package/dist/lib/date-filter/index.mjs +2 -0
- package/dist/lib/embeddedSurfaceProtocol.d.mts +13 -1
- package/dist/lib/embeddedSurfaceProtocol.mjs +32 -5
- package/dist/lib/embeddedSurfaceProtocol.mjs.map +1 -1
- package/dist/lib/message.d.mts +1 -1
- package/dist/lib/pseudoClass.d.mts +8 -8
- package/dist/lib/useEmbeddedSurface.d.mts +31 -3
- package/dist/lib/useEmbeddedSurface.mjs +118 -13
- package/dist/lib/useEmbeddedSurface.mjs.map +1 -1
- package/dist/lib/useResizablePanel.d.mts +49 -0
- package/dist/lib/useResizablePanel.mjs +75 -0
- package/dist/lib/useResizablePanel.mjs.map +1 -0
- package/dist/{message-Cu84fcqB.d.mts → message-DaiDXonE.d.mts} +1 -1
- package/dist/mixins/focus.d.mts +1 -1
- package/dist/mixins/focus.mjs +1 -1
- package/dist/mixins/hoverable.d.mts +2 -2
- package/dist/mixins/hoverable.mjs +2 -2
- package/dist/mixins/input.d.mts +1 -1
- package/dist/mixins/input.mjs +2 -2
- package/dist/mixins/menuItem.d.mts +2 -2
- package/dist/mixins/menuItem.mjs +1 -1
- package/dist/mixins/print/index.mjs +1 -1
- package/dist/mixins/text.d.mts +1 -1
- package/dist/mixins/text.mjs +1 -1
- package/dist/{operators-CmSqHnTH.d.mts → operators-BsSl7gPE.d.mts} +10 -3
- package/dist/operators.d.mts +2 -2
- package/dist/patterns/LayoutLoadingShimmer/index.mjs +6 -6
- package/dist/patterns/LayoutLoadingSpinner/index.d.mts +2 -0
- package/dist/patterns/LayoutLoadingSpinner/index.mjs +56 -0
- package/dist/patterns/LayoutLoadingSpinner/index.mjs.map +1 -0
- package/dist/patterns/PageLayout/index.mjs +1 -1
- package/dist/relative-date-label.d.mts +15 -0
- package/dist/styledComponentsInterop-8zScIQyC.mjs +33 -0
- package/dist/styledComponentsInterop-8zScIQyC.mjs.map +1 -0
- package/dist/{text-BaQdW8qa.d.mts → text-DjTGRUM1.d.mts} +1 -1
- package/dist/{theme-D9Y6NOzb.d.mts → theme-Biwx2eJZ.d.mts} +1 -1
- package/dist/theme.d.mts +1 -1
- package/dist/{types-NJtAxsU1.d.mts → types-B5VmRRMR.d.mts} +5 -3
- package/dist/types-Bsf1VsW6.d.mts +24 -0
- package/dist/{types-TV9nVfSe.d.mts → types-Cg3aXHUh2.d.mts} +1 -1
- package/dist/{types-DEh_pXgS.d.mts → types-Df0D37uh.d.mts} +3 -1
- package/dist/{types-C-TkDdkG.d.mts → types-V8UJX-rk.d.mts} +14 -2
- package/dist/types.d.mts +1 -1
- package/dist/types2.d.mts +2 -2
- package/dist/types3.d.mts +2 -2
- package/dist/types4.d.mts +2 -2
- package/dist/types5.d.mts +2 -0
- package/dist/url-state-ektb0HnB.d.mts +42 -0
- package/dist/url-state.d.mts +2 -0
- package/dist/useComboboxFooterAction.d.mts +1 -1
- package/dist/{useFilterStateV2-C4itmN4S.d.mts → useFilterStateV2-BB14vCC-.d.mts} +3 -3
- package/dist/useFilterStateV2.d.mts +1 -1
- package/dist/{useFormField-eftOPiXj.mjs → useFormField-Bz2iMPBO.mjs} +2 -2
- package/dist/{useFormField-eftOPiXj.mjs.map → useFormField-Bz2iMPBO.mjs.map} +1 -1
- package/dist/{useFormField-B2U4GOH4.d.mts → useFormField-CQo08dR4.d.mts} +2 -2
- package/dist/useFormField.d.mts +1 -1
- package/dist/{useFormGroup-BMukAMAd.mjs → useFormGroup-CaTiD_Yt.mjs} +1 -1
- package/dist/{useFormGroup-BMukAMAd.mjs.map → useFormGroup-CaTiD_Yt.mjs.map} +1 -1
- package/dist/{useTableBoxDragAndDrop-CpemHLhL.d.mts → useTableBoxDragAndDrop-B-Dev5D6.d.mts} +1 -1
- package/dist/useTableBoxDragAndDrop.d.mts +1 -1
- package/dist/useTruncation.d.mts +1 -1
- package/dist/{utilities-DnSIlR1i.d.mts → utilities-BHMNnJ8h.d.mts} +1 -1
- package/dist/utilities.d.mts +1 -1
- package/dist/utils/storybook.mjs +1 -1
- package/dist/utils/testing.d.mts +1 -1
- package/dist/utils/testing.mjs +1 -1
- package/dist/utils.d.mts +1 -1
- package/dist/utils2.d.mts +12 -1
- package/dist/{validation-B5IXsdkE.d.mts → validation-B22QjCrV.d.mts} +3 -3
- package/dist/validation.d.mts +1 -1
- package/dist/{value-control-resolver-BPlTeIX7.d.mts → value-control-resolver-qKTH1ErF.d.mts} +5 -3
- package/dist/value-control-resolver.d.mts +1 -1
- package/dist/variables/keyframes.mjs +1 -1
- package/llms.txt +6 -6
- package/package.json +14 -2
- package/skills/ui-authoring/COMPONENTS.md +71 -305
- package/skills/ui-authoring/PATTERNS.md +364 -0
- package/skills/ui-authoring/SKILL.md +15 -147
- package/skills/ui-authoring/TOKENS.md +400 -0
- package/dist/Combobox-xBrxiUAu.mjs.map +0 -1
- package/dist/DatePicker-BlnE2MBD.mjs.map +0 -1
- package/dist/FormField-B9P3BWvS.mjs.map +0 -1
- package/dist/HoverCopyableField-0Bzygbp9.mjs.map +0 -1
- package/dist/Select-D6MqSYVa.mjs.map +0 -1
- package/dist/TableControls-CZ9iu3ma.mjs.map +0 -1
- package/skills/ui-authoring/EXAMPLES.md +0 -370
- package/skills/ui-authoring/REFERENCE.md +0 -293
- /package/dist/{index-BMBcfD_R.d.mts → index-8SLBz2NH.d.mts} +0 -0
- /package/dist/{index-BOn0AAue.d.mts → index-BINnViIh.d.mts} +0 -0
- /package/dist/{index-BYd3Btr1.d.mts → index-B_BBnMou.d.mts} +0 -0
- /package/dist/{index-CKKoxA9V.d.mts → index-BcsXXrHq.d.mts} +0 -0
- /package/dist/{index-CNxS4Tlu.d.mts → index-Bt4QNofW.d.mts} +0 -0
- /package/dist/{index-CWB6exYm.d.mts → index-BwFl_eS0.d.mts} +0 -0
- /package/dist/{index-CsuikFeJ.d.mts → index-CDGG7lCB.d.mts} +0 -0
- /package/dist/{index-CtJuGxUp.d.mts → index-CMuRFTR3.d.mts} +0 -0
- /package/dist/{index-CzItj62a.d.mts → index-CX869wwk.d.mts} +0 -0
- /package/dist/{index-D5tSVhTd.d.mts → index-CliqZ9rj.d.mts} +0 -0
- /package/dist/{index-DGsJdI5l.d.mts → index-CuheJfs-.d.mts} +0 -0
- /package/dist/{index-DkrC-i1D.d.mts → index-DBGd4WeR.d.mts} +0 -0
- /package/dist/{index-Es5nKSSL.d.mts → index-DDdPqD_H.d.mts} +0 -0
- /package/dist/{index-FtE8MXJ_.d.mts → index-DMRtRo7y.d.mts} +0 -0
- /package/dist/{index-IE5cwTAE2.d.mts → index-Dflz2i1X.d.mts} +0 -0
- /package/dist/{index-Oio5ygqN.d.mts → index-DvmLVvRD.d.mts} +0 -0
- /package/dist/{index-ehD5GjMH.d.mts → index-Wc1llEvP.d.mts} +0 -0
package/dist/mixins/input.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as InputSizes, r as inputMixin, t as InputMixinProps } from "../input-
|
|
1
|
+
import { n as InputSizes, r as inputMixin, t as InputMixinProps } from "../input-M7BEIewR.mjs";
|
|
2
2
|
export { InputMixinProps, InputSizes, inputMixin as default };
|
package/dist/mixins/input.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { r as css } from "../styledComponentsInterop-8zScIQyC.mjs";
|
|
2
|
+
import "../variables/transitions.mjs";
|
|
1
3
|
import { isDisabled, isHovered, isNotDisabled } from "../lib/pseudoClass.mjs";
|
|
2
4
|
import { focusOutlineControlled } from "./focus.mjs";
|
|
3
|
-
import "../variables/transitions.mjs";
|
|
4
5
|
import { printMixins } from "./print/index.mjs";
|
|
5
6
|
import { Color, Spacing, Typography } from "@persona/design-tokens";
|
|
6
|
-
import { css } from "styled-components";
|
|
7
7
|
//#region mixins/input.ts
|
|
8
8
|
/**
|
|
9
9
|
* Provides input-like hover and focus outline effects. Can also be applied to
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as PseudoClassProps } from "../PseudoClassProps-
|
|
2
|
-
import { i as Variant } from "../theme-
|
|
1
|
+
import { t as PseudoClassProps } from "../PseudoClassProps-BPdn-ofQ.mjs";
|
|
2
|
+
import { i as Variant } from "../theme-Biwx2eJZ.mjs";
|
|
3
3
|
import * as _$styled_components0 from "styled-components";
|
|
4
4
|
|
|
5
5
|
//#region mixins/menuItem.d.ts
|
package/dist/mixins/menuItem.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { r as css } from "../styledComponentsInterop-8zScIQyC.mjs";
|
|
1
2
|
import "../variables/transitions.mjs";
|
|
2
3
|
import { Color } from "@persona/design-tokens";
|
|
3
|
-
import { css } from "styled-components";
|
|
4
4
|
//#region mixins/menuItem.ts
|
|
5
5
|
/**
|
|
6
6
|
* Adds styles for hovered and selected states. For use with dropdowns, menu
|
package/dist/mixins/text.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as displayMixins, c as paragraphMixins, i as ParagraphSize, n as HeadingSize, o as fontFamilyMixin, r as ParagraphMixinSize, s as headingMixins, t as DisplaySize } from "../text-
|
|
1
|
+
import { a as displayMixins, c as paragraphMixins, i as ParagraphSize, n as HeadingSize, o as fontFamilyMixin, r as ParagraphMixinSize, s as headingMixins, t as DisplaySize } from "../text-DjTGRUM1.mjs";
|
|
2
2
|
export { DisplaySize, HeadingSize, ParagraphMixinSize, ParagraphSize, displayMixins, fontFamilyMixin, headingMixins, paragraphMixins };
|
package/dist/mixins/text.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { r as css } from "../styledComponentsInterop-8zScIQyC.mjs";
|
|
1
2
|
import { Typography } from "@persona/design-tokens";
|
|
2
|
-
import { css } from "styled-components";
|
|
3
3
|
//#region mixins/text.ts
|
|
4
4
|
const fontFamilyMixin = css`
|
|
5
5
|
font-family: ${({ theme }) => theme.text.fontFamily.base};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as FilterField, c as FilterOperator, l as FilterRule, r as DateRangeFilterValue, s as FilterFieldType, u as FilterRuleValue } from "./types-
|
|
1
|
+
import { a as FilterField, c as FilterOperator, l as FilterRule, r as DateRangeFilterValue, s as FilterFieldType, u as FilterRuleValue } from "./types-V8UJX-rk.mjs";
|
|
2
2
|
|
|
3
3
|
//#region components/DataTable/TableControls/FiltersV2/operators.d.ts
|
|
4
4
|
declare function getOperatorsForType(type: FilterFieldType): ReadonlyArray<FilterOperator>;
|
|
@@ -16,6 +16,13 @@ declare function getOperatorsForType(type: FilterFieldType): ReadonlyArray<Filte
|
|
|
16
16
|
declare function getOperatorsForField(field: Pick<FilterField, 'type' | 'allowedOperators'>): ReadonlyArray<FilterOperator>;
|
|
17
17
|
declare function getDefaultOperatorForType(type: FilterFieldType): FilterOperator;
|
|
18
18
|
declare function isValuelessOperator(operator: FilterOperator): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Whether a rule's value is a date range: a range operator, or a field that is
|
|
21
|
+
* one by type. Relative metadata only describes a range, so resolving or
|
|
22
|
+
* labelling it on a scalar rule would put a `{ startDate, endDate }` object
|
|
23
|
+
* where the wire expects a day string.
|
|
24
|
+
*/
|
|
25
|
+
declare function carriesDateRange(operator: FilterOperator, fieldType?: FilterFieldType): boolean;
|
|
19
26
|
declare function isRangeOperator(operator: FilterOperator): boolean;
|
|
20
27
|
/**
|
|
21
28
|
* Whether `value` carries both endpoints of a range. Shared by the pill,
|
|
@@ -60,5 +67,5 @@ declare function emptyValueForRule(field: Pick<FilterField, 'type'>, operator: F
|
|
|
60
67
|
*/
|
|
61
68
|
declare function reconcileValueForOperator(field: Pick<FilterField, 'type'>, nextOperator: FilterOperator, previousOperator: FilterOperator, value: FilterRuleValue): FilterRuleValue;
|
|
62
69
|
//#endregion
|
|
63
|
-
export {
|
|
64
|
-
//# sourceMappingURL=operators-
|
|
70
|
+
export { getDefaultOperatorForType as a, getOperatorsForType as c, isValuelessOperator as d, reconcileValueForOperator as f, fieldHasMultipleOperators as i, isCompleteDateRange as l, emptyValueForFieldType as n, getOperatorLabel as o, withValue as p, emptyValueForRule as r, getOperatorsForField as s, carriesDateRange as t, isRangeOperator as u };
|
|
71
|
+
//# sourceMappingURL=operators-BsSl7gPE.d.mts.map
|
package/dist/operators.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { emptyValueForFieldType, emptyValueForRule, fieldHasMultipleOperators, getDefaultOperatorForType, getOperatorLabel, getOperatorsForField, getOperatorsForType, isCompleteDateRange, isRangeOperator, isValuelessOperator, reconcileValueForOperator, withValue };
|
|
1
|
+
import { a as getDefaultOperatorForType, c as getOperatorsForType, d as isValuelessOperator, f as reconcileValueForOperator, i as fieldHasMultipleOperators, l as isCompleteDateRange, n as emptyValueForFieldType, o as getOperatorLabel, p as withValue, r as emptyValueForRule, s as getOperatorsForField, t as carriesDateRange, u as isRangeOperator } from "./operators-BsSl7gPE.mjs";
|
|
2
|
+
export { carriesDateRange, emptyValueForFieldType, emptyValueForRule, fieldHasMultipleOperators, getDefaultOperatorForType, getOperatorLabel, getOperatorsForField, getOperatorsForType, isCompleteDateRange, isRangeOperator, isValuelessOperator, reconcileValueForOperator, withValue };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import { n as
|
|
1
|
+
import { a as styled } from "../../styledComponentsInterop-8zScIQyC.mjs";
|
|
2
|
+
import { n as Stack, t as HStack } from "../../Stack-Bre2oiov.mjs";
|
|
3
|
+
import { t as LoadingShimmer } from "../../LoadingShimmer-a2Hv0kAq.mjs";
|
|
4
|
+
import { t as Card_default } from "../../CardV2-CXxzl1EZ.mjs";
|
|
5
|
+
import { h as Table, m as TableHeaderCell, n as TableBody, p as TableRow, r as TableHead, s as TableCell } from "../../Table-DfUD3I2s.mjs";
|
|
6
|
+
import { n as PageHeaderContainer } from "../../PageHeader-B2-Slzhl.mjs";
|
|
6
7
|
import { Color, Spacing } from "@persona/design-tokens";
|
|
7
|
-
import styled from "styled-components";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region patterns/containers.tsx
|
|
10
10
|
const Layout = styled.div`
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { a as styled } from "../../styledComponentsInterop-8zScIQyC.mjs";
|
|
2
|
+
import { fadeIn, rotate } from "../../variables/keyframes.mjs";
|
|
3
|
+
import { Color } from "@persona/design-tokens";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
//#region patterns/LayoutLoadingSpinner/LayoutLoadingSpinner.tsx
|
|
6
|
+
const Container = styled.div`
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
height: 100%;
|
|
11
|
+
width: 100%;
|
|
12
|
+
animation: ${fadeIn} 1s;
|
|
13
|
+
`;
|
|
14
|
+
const VisuallyHidden = styled.span`
|
|
15
|
+
position: absolute;
|
|
16
|
+
width: 1px;
|
|
17
|
+
height: 1px;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
clip: rect(0, 0, 0, 0);
|
|
20
|
+
white-space: nowrap;
|
|
21
|
+
`;
|
|
22
|
+
const Ring = styled.svg`
|
|
23
|
+
display: block;
|
|
24
|
+
border-radius: 50%;
|
|
25
|
+
animation: ${rotate} 0.9s linear infinite;
|
|
26
|
+
`;
|
|
27
|
+
const RingStroke = styled.circle`
|
|
28
|
+
stroke: ${Color.PrimaryPurple};
|
|
29
|
+
stroke-dasharray: 166;
|
|
30
|
+
stroke-dashoffset: 110;
|
|
31
|
+
stroke-linecap: round;
|
|
32
|
+
`;
|
|
33
|
+
/**
|
|
34
|
+
* Centered 120px loading ring that fills its container. Use as the loading state for a page or
|
|
35
|
+
* embedded app when no layout-specific shimmer exists.
|
|
36
|
+
*/
|
|
37
|
+
const LayoutLoadingSpinner = () => /* @__PURE__ */ jsxs(Container, {
|
|
38
|
+
role: "status",
|
|
39
|
+
"aria-label": "loading spinner",
|
|
40
|
+
children: [/* @__PURE__ */ jsx(VisuallyHidden, { children: "Loading..." }), /* @__PURE__ */ jsx(Ring, {
|
|
41
|
+
viewBox: "0 0 52 52",
|
|
42
|
+
width: 120,
|
|
43
|
+
height: 120,
|
|
44
|
+
"aria-hidden": "true",
|
|
45
|
+
children: /* @__PURE__ */ jsx(RingStroke, {
|
|
46
|
+
cx: "26",
|
|
47
|
+
cy: "26",
|
|
48
|
+
r: "25",
|
|
49
|
+
fill: "none"
|
|
50
|
+
})
|
|
51
|
+
})]
|
|
52
|
+
});
|
|
53
|
+
//#endregion
|
|
54
|
+
export { LayoutLoadingSpinner };
|
|
55
|
+
|
|
56
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../patterns/LayoutLoadingSpinner/LayoutLoadingSpinner.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport { Color } from '@persona/design-tokens';\nimport { fadeIn, rotate } from 'design-system/variables/keyframes';\n\nconst Container = styled.div`\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 100%;\n animation: ${fadeIn} 1s;\n`;\n\nconst VisuallyHidden = styled.span`\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n`;\n\nconst Ring = styled.svg`\n display: block;\n border-radius: 50%;\n animation: ${rotate} 0.9s linear infinite;\n`;\n\nconst RingStroke = styled.circle`\n stroke: ${Color.PrimaryPurple};\n stroke-dasharray: 166;\n stroke-dashoffset: 110;\n stroke-linecap: round;\n`;\n\n/**\n * Centered 120px loading ring that fills its container. Use as the loading state for a page or\n * embedded app when no layout-specific shimmer exists.\n */\nexport const LayoutLoadingSpinner = () => (\n <Container role='status' aria-label='loading spinner'>\n <VisuallyHidden>Loading...</VisuallyHidden>\n <Ring viewBox='0 0 52 52' width={120} height={120} aria-hidden='true'>\n <RingStroke cx='26' cy='26' r='25' fill='none' />\n </Ring>\n </Container>\n);\n"],"mappings":";;;;;AAKA,MAAM,YAAY,OAAO,GAAG;;;;;;eAMb,OAAO;;AAGtB,MAAM,iBAAiB,OAAO,IAAI;;;;;;;;AASlC,MAAM,OAAO,OAAO,GAAG;;;eAGR,OAAO;;AAGtB,MAAM,aAAa,OAAO,MAAM;YACpB,MAAM,cAAc;;;;;;;;;AAUhC,MAAa,6BACX,qBAAC,WAAD;CAAW,MAAK;CAAS,cAAW;WAApC,CACE,oBAAC,gBAAD,EAAA,UAAgB,cAA2B,CAAA,EAC3C,oBAAC,MAAD;EAAM,SAAQ;EAAY,OAAO;EAAK,QAAQ;EAAK,eAAY;YAC7D,oBAAC,YAAD;GAAY,IAAG;GAAK,IAAG;GAAK,GAAE;GAAK,MAAK;GAAS,CAAA;EAC5C,CAAA,CACG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { a as styled } from "../../styledComponentsInterop-8zScIQyC.mjs";
|
|
1
2
|
import { Spacing } from "@persona/design-tokens";
|
|
2
|
-
import styled from "styled-components";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region patterns/PageLayout/PageLayout.tsx
|
|
5
5
|
const Backdrop = styled.div`
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { l as FilterRule, u as FilterRuleValue } from "./types-V8UJX-rk.mjs";
|
|
2
|
+
|
|
3
|
+
//#region components/DataTable/TableControls/FiltersV2/relative-date-label.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* The preset name a rule should display instead of its dates, or `undefined`
|
|
6
|
+
* when it has none and the caller should fall back to rendering the value.
|
|
7
|
+
*
|
|
8
|
+
* Completeness is checked against the same predicate the serialize boundary
|
|
9
|
+
* uses: labelling a rule `hasCompleteValue` drops would advertise a filter the
|
|
10
|
+
* request never carries.
|
|
11
|
+
*/
|
|
12
|
+
declare function relativePresetLabel(value: FilterRuleValue, relativeDate: FilterRule['relativeDate']): string | undefined;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { relativePresetLabel };
|
|
15
|
+
//# sourceMappingURL=relative-date-label.d.mts.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as namespace from "styled-components";
|
|
2
|
+
//#region lib/styledComponentsInterop.ts
|
|
3
|
+
/**
|
|
4
|
+
* `styled-components` with its default export normalized across module systems.
|
|
5
|
+
*
|
|
6
|
+
* styled-components@5 ships no `exports` map, so a bundler (Vite/rollup) resolves the bare
|
|
7
|
+
* specifier to the ESM build while Node resolves it to the CJS build. Under Node's CJS→ESM interop
|
|
8
|
+
* the ESM `default` binding is the whole `module.exports` object, so `import styled from
|
|
9
|
+
* 'styled-components'` yields the namespace and `styled.button` is undefined. That is what happens
|
|
10
|
+
* when a consumer's Vitest run loads `@persona/design-system/dist/**` from `node_modules` without
|
|
11
|
+
* inlining it. The tsdown build (see `tsdown.config.ts`) redirects every `styled-components`
|
|
12
|
+
* import in the emitted bundle to this module; source files keep importing `styled-components`
|
|
13
|
+
* directly so `babel-plugin-styled-components` still sees them in the monolith.
|
|
14
|
+
*/
|
|
15
|
+
const isCjsModuleExports = (value) => typeof value === "object" && value != null && "default" in value;
|
|
16
|
+
/**
|
|
17
|
+
* Returns the module with `default` pointing at the real `styled` factory, whichever build Node or
|
|
18
|
+
* the bundler resolved. Exported for the spec; runtime callers use the re-exports below.
|
|
19
|
+
*/
|
|
20
|
+
const normalizeStyledComponents = (mod) => {
|
|
21
|
+
if (mod.default != null && isCjsModuleExports(mod.default)) return {
|
|
22
|
+
...mod.default,
|
|
23
|
+
default: mod.default.default ?? mod.default
|
|
24
|
+
};
|
|
25
|
+
return mod;
|
|
26
|
+
};
|
|
27
|
+
const resolved = normalizeStyledComponents(namespace);
|
|
28
|
+
const styled = resolved.default;
|
|
29
|
+
const { ServerStyleSheet, StyleSheetManager, ThemeConsumer, ThemeContext, ThemeProvider, createGlobalStyle, css, isStyledComponent, keyframes, useTheme, withTheme } = resolved;
|
|
30
|
+
//#endregion
|
|
31
|
+
export { styled as a, keyframes as i, createGlobalStyle as n, css as r, ThemeProvider as t };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=styledComponentsInterop-8zScIQyC.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styledComponentsInterop-8zScIQyC.mjs","names":[],"sources":["../lib/styledComponentsInterop.ts"],"sourcesContent":["/**\n * `styled-components` with its default export normalized across module systems.\n *\n * styled-components@5 ships no `exports` map, so a bundler (Vite/rollup) resolves the bare\n * specifier to the ESM build while Node resolves it to the CJS build. Under Node's CJS→ESM interop\n * the ESM `default` binding is the whole `module.exports` object, so `import styled from\n * 'styled-components'` yields the namespace and `styled.button` is undefined. That is what happens\n * when a consumer's Vitest run loads `@persona/design-system/dist/**` from `node_modules` without\n * inlining it. The tsdown build (see `tsdown.config.ts`) redirects every `styled-components`\n * import in the emitted bundle to this module; source files keep importing `styled-components`\n * directly so `babel-plugin-styled-components` still sees them in the monolith.\n */\nimport * as namespace from 'styled-components';\n\ntype StyledComponents = typeof import('styled-components');\ntype StyledDefault = StyledComponents['default'];\n\ntype CjsModuleExports = StyledComponents & { default?: StyledDefault };\n\ninterface InteropNamespace {\n default?: StyledDefault | CjsModuleExports;\n}\n\nconst isCjsModuleExports = (value: InteropNamespace['default']): value is CjsModuleExports =>\n typeof value === 'object' && value != null && 'default' in value;\n\n/**\n * Returns the module with `default` pointing at the real `styled` factory, whichever build Node or\n * the bundler resolved. Exported for the spec; runtime callers use the re-exports below.\n */\nexport const normalizeStyledComponents = (mod: InteropNamespace): StyledComponents => {\n if (mod.default != null && isCjsModuleExports(mod.default)) {\n return {\n ...mod.default,\n default: mod.default.default ?? (mod.default as unknown as StyledDefault),\n };\n }\n return mod as unknown as StyledComponents;\n};\n\nconst resolved = normalizeStyledComponents(namespace as unknown as InteropNamespace);\n\nconst styled: StyledDefault = resolved.default;\n\nexport default styled;\nexport const {\n ServerStyleSheet,\n StyleSheetManager,\n ThemeConsumer,\n ThemeContext,\n ThemeProvider,\n createGlobalStyle,\n css,\n isStyledComponent,\n keyframes,\n useTheme,\n withTheme,\n} = resolved;\n"],"mappings":";;;;;;;;;;;;;;AAuBA,MAAM,sBAAsB,UAC1B,OAAO,UAAU,YAAY,SAAS,QAAQ,aAAa;;;;;AAM7D,MAAa,6BAA6B,QAA4C;AACpF,KAAI,IAAI,WAAW,QAAQ,mBAAmB,IAAI,QAAQ,CACxD,QAAO;EACL,GAAG,IAAI;EACP,SAAS,IAAI,QAAQ,WAAY,IAAI;EACtC;AAEH,QAAO;;AAGT,MAAM,WAAW,0BAA0B,UAAyC;AAEpF,MAAM,SAAwB,SAAS;AAGvC,MAAa,EACX,kBACA,mBACA,eACA,cACA,eACA,mBACA,KACA,mBACA,WACA,UACA,cACE"}
|
|
@@ -11,4 +11,4 @@ type ParagraphSize = 'lg' | 'md' | 'sm' | 'xs';
|
|
|
11
11
|
declare const paragraphMixins: Record<ParagraphMixinSize, FlattenInterpolation<ThemeProps<DefaultTheme>>>;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { displayMixins as a, paragraphMixins as c, ParagraphSize as i, HeadingSize as n, fontFamilyMixin as o, ParagraphMixinSize as r, headingMixins as s, DisplaySize as t };
|
|
14
|
-
//# sourceMappingURL=text-
|
|
14
|
+
//# sourceMappingURL=text-DjTGRUM1.d.mts.map
|
|
@@ -151,4 +151,4 @@ declare const darkTheme: PersonaTheme;
|
|
|
151
151
|
declare const marketingFontTheme: PersonaTheme;
|
|
152
152
|
//#endregion
|
|
153
153
|
export { darkTheme as a, Variant as i, PersonaTheme as n, defaultTheme as o, TextColors as r, marketingFontTheme as s, BackgroundColors as t };
|
|
154
|
-
//# sourceMappingURL=theme-
|
|
154
|
+
//# sourceMappingURL=theme-Biwx2eJZ.d.mts.map
|
package/dist/theme.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as darkTheme, i as Variant, n as PersonaTheme, o as defaultTheme, r as TextColors, s as marketingFontTheme, t as BackgroundColors } from "./theme-
|
|
1
|
+
import { a as darkTheme, i as Variant, n as PersonaTheme, o as defaultTheme, r as TextColors, s as marketingFontTheme, t as BackgroundColors } from "./theme-Biwx2eJZ.mjs";
|
|
2
2
|
export { BackgroundColors, PersonaTheme, TextColors, Variant, darkTheme, defaultTheme as default, marketingFontTheme };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as FilterField, c as FilterOperator, u as FilterRuleValue } from "./types-
|
|
1
|
+
import { a as FilterField, c as FilterOperator, d as FilterRuleValueChange, l as FilterRule, u as FilterRuleValue } from "./types-V8UJX-rk.mjs";
|
|
2
2
|
import { ReactElement } from "react";
|
|
3
3
|
|
|
4
4
|
//#region components/DataTable/TableControls/FiltersV2/value-controls/types.d.ts
|
|
@@ -24,8 +24,10 @@ interface ValueControlProps {
|
|
|
24
24
|
operator: FilterOperator;
|
|
25
25
|
/** Current value held by the rule. */
|
|
26
26
|
value: FilterRuleValue;
|
|
27
|
+
/** Optional relative-date semantics stored beside the absolute value snapshot. */
|
|
28
|
+
relativeDate?: FilterRule['relativeDate'];
|
|
27
29
|
/** Called when the user commits a new value. */
|
|
28
|
-
onChange:
|
|
30
|
+
onChange: FilterRuleValueChange;
|
|
29
31
|
/** Optional callback for controls that commit a complete selection in one action. */
|
|
30
32
|
onCommit?: () => void;
|
|
31
33
|
/** Aria label wired to the popover's labeling. */
|
|
@@ -42,4 +44,4 @@ interface ValueControlProps {
|
|
|
42
44
|
}
|
|
43
45
|
//#endregion
|
|
44
46
|
export { ValueControlProps as t };
|
|
45
|
-
//# sourceMappingURL=types-
|
|
47
|
+
//# sourceMappingURL=types-B5VmRRMR.d.mts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region lib/date-filter/types.d.ts
|
|
2
|
+
/** Ordered preset list shared by date-filter consumers. */
|
|
3
|
+
declare const DATE_FILTER_PRESETS: readonly ["last_7_days", "last_14_days", "last_30_days", "this_month", "last_month", "this_year", "last_year"];
|
|
4
|
+
/** Closed vocabulary of named presets the picker offers. */
|
|
5
|
+
type DateFilterPreset = (typeof DATE_FILTER_PRESETS)[number];
|
|
6
|
+
declare const DATE_FILTER_PRESET_LABELS: Record<DateFilterPreset, string>;
|
|
7
|
+
interface AbsoluteDateFilterValue {
|
|
8
|
+
kind: 'absolute';
|
|
9
|
+
startDate?: string;
|
|
10
|
+
endDate?: string;
|
|
11
|
+
}
|
|
12
|
+
interface PresetRelativeDateFilterValue {
|
|
13
|
+
kind: 'relative';
|
|
14
|
+
preset: DateFilterPreset;
|
|
15
|
+
}
|
|
16
|
+
type RelativeDateFilterValue = PresetRelativeDateFilterValue;
|
|
17
|
+
type DateFilterValue = AbsoluteDateFilterValue | RelativeDateFilterValue;
|
|
18
|
+
interface AbsoluteDateRange {
|
|
19
|
+
startDate?: string;
|
|
20
|
+
endDate?: string;
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { DateFilterPreset as a, RelativeDateFilterValue as c, DATE_FILTER_PRESET_LABELS as i, AbsoluteDateRange as n, DateFilterValue as o, DATE_FILTER_PRESETS as r, PresetRelativeDateFilterValue as s, AbsoluteDateFilterValue as t };
|
|
24
|
+
//# sourceMappingURL=types-Bsf1VsW6.d.mts.map
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
interface AttributeColumn {
|
|
3
3
|
key: string;
|
|
4
4
|
label: string;
|
|
5
|
+
/** Presentation-only; never persisted into a saved view. */
|
|
6
|
+
isCustomField?: boolean;
|
|
5
7
|
}
|
|
6
8
|
interface BaseFilterConfig {
|
|
7
9
|
id: string;
|
|
@@ -22,4 +24,4 @@ interface BaseActiveFilter<TFilter extends BaseFilterConfig = BaseFilterConfig>
|
|
|
22
24
|
}
|
|
23
25
|
//#endregion
|
|
24
26
|
export { BaseActiveFilter as n, BaseFilterConfig as r, AttributeColumn as t };
|
|
25
|
-
//# sourceMappingURL=types-
|
|
27
|
+
//# sourceMappingURL=types-Df0D37uh.d.mts.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { c as RelativeDateFilterValue } from "./types-Bsf1VsW6.mjs";
|
|
1
2
|
//#region components/DataTable/TableControls/FiltersV2/types.d.ts
|
|
2
3
|
/**
|
|
3
4
|
* Filter UI v2 — client-side state shape.
|
|
@@ -105,7 +106,16 @@ interface FilterRule {
|
|
|
105
106
|
fieldId: string;
|
|
106
107
|
operator: FilterOperator;
|
|
107
108
|
value: FilterRuleValue;
|
|
109
|
+
/**
|
|
110
|
+
* Semantic metadata; `value` remains an old-client-safe absolute snapshot.
|
|
111
|
+
*
|
|
112
|
+
* Deliberately not checked by `isFilterRule`: readers fall back to the
|
|
113
|
+
* snapshot when this is unparseable, so rejecting the rule would discard a
|
|
114
|
+
* usable range over a bad label.
|
|
115
|
+
*/
|
|
116
|
+
relativeDate?: RelativeDateFilterValue;
|
|
108
117
|
}
|
|
118
|
+
type FilterRuleValueChange = (value: FilterRuleValue, relativeDate?: RelativeDateFilterValue | null) => void;
|
|
109
119
|
/**
|
|
110
120
|
* A top-level (simple pill) rule. Carries a stable `id` so multiple
|
|
111
121
|
* pills for the same field can coexist — the "Add filter" picker
|
|
@@ -155,6 +165,8 @@ interface FilterStateV2 {
|
|
|
155
165
|
type FilterSize = 'sm' | 'md';
|
|
156
166
|
/** The empty state — no filters applied. */
|
|
157
167
|
declare const EMPTY_FILTER_STATE: FilterStateV2;
|
|
168
|
+
/** True when no filters are applied — no pills and no compound groups. */
|
|
169
|
+
declare function isEmptyState(state: FilterStateV2): boolean;
|
|
158
170
|
//#endregion
|
|
159
|
-
export { FilterField as a, FilterOperator as c,
|
|
160
|
-
//# sourceMappingURL=types-
|
|
171
|
+
export { FilterField as a, FilterOperator as c, FilterRuleValueChange as d, FilterSize as f, isEmptyState as h, EMPTY_FILTER_STATE as i, FilterRule as l, TopLevelFilterRule as m, CompoundExpression as n, FilterFieldSource as o, FilterStateV2 as p, DateRangeFilterValue as r, FilterFieldType as s, AndGroup as t, FilterRuleValue as u };
|
|
172
|
+
//# sourceMappingURL=types-V8UJX-rk.d.mts.map
|
package/dist/types.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as BaseActiveFilter, r as BaseFilterConfig, t as AttributeColumn } from "./types-
|
|
1
|
+
import { n as BaseActiveFilter, r as BaseFilterConfig, t as AttributeColumn } from "./types-Df0D37uh.mjs";
|
|
2
2
|
export { AttributeColumn, BaseActiveFilter, BaseFilterConfig };
|
package/dist/types2.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export {
|
|
1
|
+
import { a as DateFilterPreset, c as RelativeDateFilterValue, i as DATE_FILTER_PRESET_LABELS, n as AbsoluteDateRange, o as DateFilterValue, r as DATE_FILTER_PRESETS, s as PresetRelativeDateFilterValue, t as AbsoluteDateFilterValue } from "./types-Bsf1VsW6.mjs";
|
|
2
|
+
export { AbsoluteDateFilterValue, AbsoluteDateRange, DATE_FILTER_PRESETS, DATE_FILTER_PRESET_LABELS, DateFilterPreset, DateFilterValue, PresetRelativeDateFilterValue, RelativeDateFilterValue };
|
package/dist/types3.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
export {
|
|
1
|
+
import { a as FilterField, c as FilterOperator, d as FilterRuleValueChange, f as FilterSize, h as isEmptyState, i as EMPTY_FILTER_STATE, l as FilterRule, m as TopLevelFilterRule, n as CompoundExpression, o as FilterFieldSource, p as FilterStateV2, r as DateRangeFilterValue, s as FilterFieldType, t as AndGroup, u as FilterRuleValue } from "./types-V8UJX-rk.mjs";
|
|
2
|
+
export { AndGroup, CompoundExpression, DateRangeFilterValue, EMPTY_FILTER_STATE, FilterField, FilterFieldSource, FilterFieldType, FilterOperator, FilterRule, FilterRuleValue, FilterRuleValueChange, FilterSize, FilterStateV2, TopLevelFilterRule, isEmptyState };
|
package/dist/types4.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
export {
|
|
1
|
+
import { t as ValueControlProps } from "./types-B5VmRRMR.mjs";
|
|
2
|
+
export { ValueControlProps };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { p as FilterStateV2 } from "./types-V8UJX-rk.mjs";
|
|
2
|
+
|
|
3
|
+
//#region components/DataTable/TableControls/FiltersV2/url-state.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* URL state encoding/decoding for the `fv2=` namespace.
|
|
6
|
+
*
|
|
7
|
+
* v2 URL state is base64'd JSON of `FilterStateV2`. Encoding is a lossless
|
|
8
|
+
* mirror of the in-memory shape — no schema migrations required when the
|
|
9
|
+
* vocabulary grows because the type already models OR-of-AND.
|
|
10
|
+
*
|
|
11
|
+
* Hosts that persist filter state elsewhere (saved views, session storage)
|
|
12
|
+
* store the same encoded string the URL carries; see
|
|
13
|
+
* {@link decodeFilterStateFromString}.
|
|
14
|
+
*/
|
|
15
|
+
/** The query param the FilterBar's full rule state travels in. */
|
|
16
|
+
declare const FILTER_STATE_URL_PARAM = "fv2";
|
|
17
|
+
interface UrlStateCodecResult {
|
|
18
|
+
/** The filter state recovered from the URL (or `EMPTY_FILTER_STATE` if absent). */
|
|
19
|
+
state: FilterStateV2;
|
|
20
|
+
/** True when an `fv2=…` param was present (regardless of decode success). */
|
|
21
|
+
hadParam: boolean;
|
|
22
|
+
/** True when the param was present but failed to decode. */
|
|
23
|
+
invalid: boolean;
|
|
24
|
+
}
|
|
25
|
+
/** Read `fv2=…` from a query string and return the decoded state. */
|
|
26
|
+
declare function decodeFilterStateFromUrl(search: string | URLSearchParams): UrlStateCodecResult;
|
|
27
|
+
/**
|
|
28
|
+
* Produce a `fv2=…` segment for the given state. Returns `null` when the
|
|
29
|
+
* state is empty — callers should treat that as "no param at all" so URLs
|
|
30
|
+
* stay clean in the common case of no filters.
|
|
31
|
+
*/
|
|
32
|
+
declare function encodeFilterStateToUrlParam(state: FilterStateV2): string | null;
|
|
33
|
+
declare function applyFilterStateToSearchParams(params: URLSearchParams, state: FilterStateV2): URLSearchParams;
|
|
34
|
+
/**
|
|
35
|
+
* Decode a bare base64 string (as produced by {@link encodeFilterStateToUrlParam})
|
|
36
|
+
* back into a {@link FilterStateV2}, or `null` when it is absent/corrupt/from a
|
|
37
|
+
* future vocabulary.
|
|
38
|
+
*/
|
|
39
|
+
declare function decodeFilterStateFromString(raw: string | null | undefined): FilterStateV2 | null;
|
|
40
|
+
//#endregion
|
|
41
|
+
export { decodeFilterStateFromUrl as a, decodeFilterStateFromString as i, UrlStateCodecResult as n, encodeFilterStateToUrlParam as o, applyFilterStateToSearchParams as r, FILTER_STATE_URL_PARAM as t };
|
|
42
|
+
//# sourceMappingURL=url-state-ektb0HnB.d.mts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
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-ektb0HnB.mjs";
|
|
2
|
+
export { FILTER_STATE_URL_PARAM, UrlStateCodecResult, applyFilterStateToSearchParams, decodeFilterStateFromString, decodeFilterStateFromUrl, encodeFilterStateToUrlParam };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as FieldRegistry } from "./FieldRegistry-
|
|
1
|
+
import { l as FilterRule, n as CompoundExpression, p as FilterStateV2 } from "./types-V8UJX-rk.mjs";
|
|
2
|
+
import { t as FieldRegistry } from "./FieldRegistry-D6niLExM.mjs";
|
|
3
3
|
|
|
4
4
|
//#region components/DataTable/TableControls/FiltersV2/useFilterStateV2.d.ts
|
|
5
5
|
interface UseFilterStateV2Options {
|
|
@@ -90,4 +90,4 @@ interface UseFilterStateV2Result {
|
|
|
90
90
|
declare function useFilterStateV2(options: UseFilterStateV2Options): UseFilterStateV2Result;
|
|
91
91
|
//#endregion
|
|
92
92
|
export { UseFilterStateV2Result as n, useFilterStateV2 as r, UseFilterStateV2Options as t };
|
|
93
|
-
//# sourceMappingURL=useFilterStateV2-
|
|
93
|
+
//# sourceMappingURL=useFilterStateV2-BB14vCC-.d.mts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as UseFilterStateV2Result, r as useFilterStateV2, t as UseFilterStateV2Options } from "./useFilterStateV2-
|
|
1
|
+
import { n as UseFilterStateV2Result, r as useFilterStateV2, t as UseFilterStateV2Options } from "./useFilterStateV2-BB14vCC-.mjs";
|
|
2
2
|
export { UseFilterStateV2Options, UseFilterStateV2Result, useFilterStateV2 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as useFormGroup } from "./useFormGroup-
|
|
1
|
+
import { n as useFormGroup } from "./useFormGroup-CaTiD_Yt.mjs";
|
|
2
2
|
import { createContext, useContext } from "react";
|
|
3
3
|
//#region components/FormControl/useFormField.ts
|
|
4
4
|
const FormControlContext = createContext({});
|
|
@@ -22,4 +22,4 @@ const useFormField = (props) => {
|
|
|
22
22
|
//#endregion
|
|
23
23
|
export { useFormField as n, FormControlContext as t };
|
|
24
24
|
|
|
25
|
-
//# sourceMappingURL=useFormField-
|
|
25
|
+
//# sourceMappingURL=useFormField-Bz2iMPBO.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFormField-
|
|
1
|
+
{"version":3,"file":"useFormField-Bz2iMPBO.mjs","names":[],"sources":["../components/FormControl/useFormField.ts"],"sourcesContent":["import { createContext, useContext } from 'react';\n\nimport useFormGroup from 'design-system/components/ConfigFormGroup/useFormGroup';\nimport type ErrorProps from 'design-system/types/ErrorProps';\n\nexport interface FormControlContextProps extends ErrorProps {\n inputId?: string;\n helperTextId?: string;\n errorTextId?: string;\n warningTextId?: string;\n labelId?: string;\n disabled?: boolean;\n maxLength?: number;\n configField?: boolean;\n}\n\nexport const FormControlContext = createContext<FormControlContextProps>({});\n\nconst useFormField = (props: Partial<FormControlContextProps>) => {\n const group = useFormGroup();\n const field = useContext(FormControlContext);\n\n const inputId = props.inputId ?? field.inputId;\n\n return {\n configField: props.configField ?? group.configField,\n hasError: props.hasError ?? field.hasError,\n hasWarning: props.hasWarning ?? field.hasWarning,\n inputId,\n helperTextId: props.helperTextId ?? field.helperTextId,\n errorTextId: props.errorTextId ?? field.errorTextId,\n warningTextId: props.warningTextId ?? field.warningTextId,\n labelId: props.labelId ?? field.labelId,\n disabled: props.disabled ?? field.disabled,\n maxLength: props.maxLength ?? field.maxLength,\n };\n};\n\nexport default useFormField;\n"],"mappings":";;;AAgBA,MAAa,qBAAqB,cAAuC,EAAE,CAAC;AAE5E,MAAM,gBAAgB,UAA4C;CAChE,MAAM,QAAQ,cAAc;CAC5B,MAAM,QAAQ,WAAW,mBAAmB;CAE5C,MAAM,UAAU,MAAM,WAAW,MAAM;AAEvC,QAAO;EACL,aAAa,MAAM,eAAe,MAAM;EACxC,UAAU,MAAM,YAAY,MAAM;EAClC,YAAY,MAAM,cAAc,MAAM;EACtC;EACA,cAAc,MAAM,gBAAgB,MAAM;EAC1C,aAAa,MAAM,eAAe,MAAM;EACxC,eAAe,MAAM,iBAAiB,MAAM;EAC5C,SAAS,MAAM,WAAW,MAAM;EAChC,UAAU,MAAM,YAAY,MAAM;EAClC,WAAW,MAAM,aAAa,MAAM;EACrC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ErrorProps } from "./ErrorProps-
|
|
1
|
+
import { t as ErrorProps } from "./ErrorProps-C9T857Wk.mjs";
|
|
2
2
|
import * as _$react from "react";
|
|
3
3
|
|
|
4
4
|
//#region components/FormControl/useFormField.d.ts
|
|
@@ -27,4 +27,4 @@ declare const useFormField: (props: Partial<FormControlContextProps>) => {
|
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { FormControlContextProps as n, useFormField as r, FormControlContext as t };
|
|
30
|
-
//# sourceMappingURL=useFormField-
|
|
30
|
+
//# sourceMappingURL=useFormField-CQo08dR4.d.mts.map
|
package/dist/useFormField.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as FormControlContextProps, r as useFormField, t as FormControlContext } from "./useFormField-
|
|
1
|
+
import { n as FormControlContextProps, r as useFormField, t as FormControlContext } from "./useFormField-CQo08dR4.mjs";
|
|
2
2
|
export { FormControlContext, FormControlContextProps, useFormField as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFormGroup-
|
|
1
|
+
{"version":3,"file":"useFormGroup-CaTiD_Yt.mjs","names":[],"sources":["../components/ConfigFormGroup/useFormGroup.ts"],"sourcesContent":["import { createContext, useContext } from 'react';\n\nexport interface FormGroupContextProps {\n configField?: boolean;\n /**\n * The z-index to use when labels are rendered as tooltips (e.g. when configField is true).\n */\n labelTooltipZIndex?: number;\n}\n\nexport const FormGroupContext = createContext<FormGroupContextProps>({});\n\nconst useFormGroup = (props?: Partial<FormGroupContextProps>) => {\n const field = useContext(FormGroupContext);\n\n return {\n configField: props?.configField ?? field.configField,\n labelTooltipZIndex: props?.labelTooltipZIndex ?? field.labelTooltipZIndex,\n };\n};\n\nexport default useFormGroup;\n"],"mappings":";;AAUA,MAAa,mBAAmB,cAAqC,EAAE,CAAC;AAExE,MAAM,gBAAgB,UAA2C;CAC/D,MAAM,QAAQ,WAAW,iBAAiB;AAE1C,QAAO;EACL,aAAa,OAAO,eAAe,MAAM;EACzC,oBAAoB,OAAO,sBAAsB,MAAM;EACxD"}
|
package/dist/{useTableBoxDragAndDrop-CpemHLhL.d.mts → useTableBoxDragAndDrop-B-Dev5D6.d.mts}
RENAMED
|
@@ -66,4 +66,4 @@ declare const useTableBoxDragAndDrop: <T extends object>({
|
|
|
66
66
|
}: UseTableBoxDragAndDropArgs<T>) => UseTableBoxDragAndDropResult;
|
|
67
67
|
//#endregion
|
|
68
68
|
export { ReorderConfig as n, useTableBoxDragAndDrop as r, DragDirection as t };
|
|
69
|
-
//# sourceMappingURL=useTableBoxDragAndDrop-
|
|
69
|
+
//# sourceMappingURL=useTableBoxDragAndDrop-B-Dev5D6.d.mts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ReorderConfig, r as useTableBoxDragAndDrop, t as DragDirection } from "./useTableBoxDragAndDrop-
|
|
1
|
+
import { n as ReorderConfig, r as useTableBoxDragAndDrop, t as DragDirection } from "./useTableBoxDragAndDrop-B-Dev5D6.mjs";
|
|
2
2
|
export { DragDirection, ReorderConfig, useTableBoxDragAndDrop };
|
package/dist/useTruncation.d.mts
CHANGED
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
type RequireOneOf<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & { [K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>> }[Keys];
|
|
7
7
|
//#endregion
|
|
8
8
|
export { RequireOneOf as t };
|
|
9
|
-
//# sourceMappingURL=utilities-
|
|
9
|
+
//# sourceMappingURL=utilities-BHMNnJ8h.d.mts.map
|
package/dist/utilities.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as RequireOneOf } from "./utilities-
|
|
1
|
+
import { t as RequireOneOf } from "./utilities-BHMNnJ8h.mjs";
|
|
2
2
|
export { RequireOneOf };
|
package/dist/utils/storybook.mjs
CHANGED
package/dist/utils/testing.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
1
2
|
import * as _$_testing_library_react0 from "@testing-library/react";
|
|
2
3
|
import { RenderOptions, screen } from "@testing-library/react";
|
|
3
|
-
import { ReactElement } from "react";
|
|
4
4
|
import * as _$_testing_library_dom_types_queries0 from "@testing-library/dom/types/queries";
|
|
5
5
|
|
|
6
6
|
//#region utils/testing.d.ts
|
package/dist/utils/testing.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import PDSProvider from "../lib/PDSProvider.mjs";
|
|
2
|
+
import { RouterProvider } from "react-aria-components";
|
|
2
3
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
4
|
import { render, screen } from "@testing-library/react";
|
|
4
|
-
import { RouterProvider } from "react-aria-components";
|
|
5
5
|
import { RouterProvider as RouterProvider$1, createMemoryRouter } from "react-router-dom";
|
|
6
6
|
//#region utils/testing.tsx
|
|
7
7
|
const AllTheProviders = ({ children, includeRouter = false }) => {
|
package/dist/utils.d.mts
CHANGED