@persona/design-system 0.3.1 → 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 +19 -0
- package/README.md +1 -1
- package/dist/{Action-DL3kHI9Z.d.mts → Action-CcAyQpYN.d.mts} +3 -3
- package/dist/Action.d.mts +1 -1
- package/dist/AdvancedFilterRuleRow.d.mts +4 -4
- package/dist/AdvancedFilterRulesPopover.d.mts +3 -3
- package/dist/ArrayValueControl.d.mts +1 -1
- package/dist/Attribute.d.mts +3 -3
- package/dist/BooleanValueControl.d.mts +1 -1
- package/dist/BottomPanel.d.mts +32 -0
- package/dist/{Breadcrumb-Czgdi0xf.d.mts → Breadcrumb-Df06cTnA.d.mts} +1 -1
- package/dist/Breadcrumb.d.mts +1 -1
- package/dist/{Breadcrumbs-zei-cpdU.d.mts → Breadcrumbs-D_Gzd4_J.d.mts} +2 -2
- package/dist/{Breadcrumbs-ed4wRDS7.mjs → Breadcrumbs-Zi5p0HDR.mjs} +3 -3
- package/dist/{Breadcrumbs-ed4wRDS7.mjs.map → Breadcrumbs-Zi5p0HDR.mjs.map} +1 -1
- package/dist/Breadcrumbs.d.mts +1 -1
- package/dist/{Button-CKzNTpPL.d.mts → Button-BrI1s2-r.d.mts} +2 -2
- package/dist/Button.d.mts +1 -1
- package/dist/{Calendar-CcxN7y3e.d.mts → Calendar-DjnoZVcT.d.mts} +1 -1
- package/dist/Calendar.d.mts +1 -1
- package/dist/CalendarBase.d.mts +1 -1
- package/dist/{Card-pr4FQWjn.d.mts → Card-mZDNFaJy.d.mts} +3 -3
- package/dist/Card.d.mts +1 -1
- package/dist/{CardV2-D3m5EKlp.mjs → CardV2-CXxzl1EZ.mjs} +6 -6
- package/dist/{CardV2-D3m5EKlp.mjs.map → CardV2-CXxzl1EZ.mjs.map} +1 -1
- package/dist/{Checkbox-Bmm-r5ei.d.mts → Checkbox-CwPXPLCi.d.mts} +1 -1
- package/dist/{Checkbox-Ccuicmlo.mjs → Checkbox-DxNHp59y.mjs} +1 -1
- package/dist/{Checkbox-Ccuicmlo.mjs.map → Checkbox-DxNHp59y.mjs.map} +1 -1
- package/dist/Checkbox.d.mts +1 -1
- package/dist/CheckboxGroupField.d.mts +1 -1
- package/dist/ChoicesValueControl.d.mts +1 -1
- package/dist/{Combobox-BGRyr_-L.mjs → Combobox-BUtqtzKl.mjs} +5 -5
- package/dist/{Combobox-BGRyr_-L.mjs.map → Combobox-BUtqtzKl.mjs.map} +1 -1
- package/dist/{Combobox-Bf_Xe1BG.d.mts → Combobox-C9QBItsc.d.mts} +3 -3
- package/dist/Combobox.d.mts +2 -2
- package/dist/{ComboboxBase-CWzN8GML.d.mts → ComboboxBase-BkSpdmsT.d.mts} +6 -6
- package/dist/ComboboxBase.d.mts +1 -1
- package/dist/{ComboboxMultiSelect-iSuvyOx2.d.mts → ComboboxMultiSelect-DkVfwSKH.d.mts} +2 -2
- package/dist/ComboboxMultiSelect.d.mts +1 -1
- package/dist/{ComboboxSingleSelect-DVRFKPi1.d.mts → ComboboxSingleSelect-CpumBcDn.d.mts} +4 -4
- package/dist/ComboboxSingleSelect.d.mts +1 -1
- package/dist/{CompactBar-C_61pgp7.d.mts → CompactBar-COxu_FDd.d.mts} +3 -3
- package/dist/CompactBar.d.mts +1 -1
- package/dist/{ConfigFormGroup-DGCTW3by.mjs → ConfigFormGroup-aSdn2r6Z.mjs} +1 -1
- package/dist/{ConfigFormGroup-DGCTW3by.mjs.map → ConfigFormGroup-aSdn2r6Z.mjs.map} +1 -1
- package/dist/{ControlBar-0XwbM4yC.d.mts → ControlBar-DwAhPcb5.d.mts} +12 -2
- package/dist/ControlBar.d.mts +1 -1
- package/dist/DataTable.d.mts +4 -3
- package/dist/{DateField-CKeSIhGy.d.mts → DateField-tOyrGcx1.d.mts} +2 -2
- package/dist/DateField.d.mts +1 -1
- package/dist/{DatePicker-B1iWrqR5.d.mts → DatePicker-Bs9JODNg.d.mts} +2 -2
- package/dist/{DatePicker-BNnZ6L1y.mjs → DatePicker-CLP-ajza.mjs} +71 -16
- package/dist/DatePicker-CLP-ajza.mjs.map +1 -0
- package/dist/DatePicker.d.mts +1 -1
- package/dist/{DateRangePicker-BmF9eH9R.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-BlVeFbJ0.mjs → DropdownButton-CCAfNZ9h.mjs} +2 -2
- package/dist/{DropdownButton-BlVeFbJ0.mjs.map → DropdownButton-CCAfNZ9h.mjs.map} +1 -1
- package/dist/DropdownButton.d.mts +2 -2
- package/dist/{DropdownMenu-DuTnq9j7.d.mts → DropdownMenu-BoatixlO.d.mts} +2 -2
- package/dist/{DropdownMenu-82xH1AZr.mjs → DropdownMenu-CUnf420M.mjs} +2 -2
- package/dist/{DropdownMenu-82xH1AZr.mjs.map → DropdownMenu-CUnf420M.mjs.map} +1 -1
- package/dist/DropdownMenu.d.mts +1 -1
- package/dist/{ErrorProps-DX50vo-U.d.mts → ErrorProps-C9T857Wk.d.mts} +1 -1
- package/dist/ErrorProps.d.mts +1 -1
- package/dist/{FieldRegistry-D1vghSC_.d.mts → FieldRegistry-D6niLExM.d.mts} +2 -2
- package/dist/FieldRegistry.d.mts +1 -1
- package/dist/{FilterBar-Ck085Dic.d.mts → FilterBar-DfBV7yKM.d.mts} +10 -4
- package/dist/FilterBar.d.mts +1 -1
- package/dist/FilterPickerMenu.d.mts +2 -2
- package/dist/FilterPill.d.mts +1 -1
- package/dist/FilterPopover.d.mts +1 -1
- package/dist/FloatValueControl.d.mts +1 -1
- package/dist/{FormControl-CfpwZGlD.d.mts → FormControl-0H0Jeind.d.mts} +2 -2
- package/dist/{FormControl-D1HIqDKm.mjs → FormControl-1BmoYFCu.mjs} +1 -1
- package/dist/{FormControl-D1HIqDKm.mjs.map → FormControl-1BmoYFCu.mjs.map} +1 -1
- package/dist/FormControl.d.mts +1 -1
- package/dist/FormControlLabel.d.mts +1 -1
- package/dist/{FormField-0p4y0sS5.d.mts → FormField-BcaFdmo5.d.mts} +2 -2
- package/dist/{FormField-CVnbsNvU.mjs → FormField-oBKH25qf.mjs} +11 -11
- package/dist/{FormField-CVnbsNvU.mjs.map → FormField-oBKH25qf.mjs.map} +1 -1
- package/dist/FormField.d.mts +1 -1
- package/dist/Grid.d.mts +38 -0
- package/dist/GridItem.d.mts +17 -0
- package/dist/{Header-gDUTQgWj.d.mts → Header-BjSoTEX_.d.mts} +1 -1
- package/dist/Header.d.mts +1 -1
- package/dist/{HelperTooltip-CqhiRb5g.d.mts → HelperTooltip-S20wVFCS.d.mts} +2 -2
- package/dist/HelperTooltip.d.mts +1 -1
- package/dist/{HoverCopyableField-HWshrU_1.mjs → HoverCopyableField-GMXeF-3J.mjs} +2 -2
- package/dist/{HoverCopyableField-HWshrU_1.mjs.map → HoverCopyableField-GMXeF-3J.mjs.map} +1 -1
- package/dist/{IconButton-CLsHdYm7.d.mts → IconButton-BpyOr8Ev.d.mts} +2 -2
- package/dist/IconButton.d.mts +1 -1
- package/dist/ImageTile.d.mts +1 -1
- package/dist/InlineCombobox.d.mts +1 -1
- package/dist/InlineInput.d.mts +1 -1
- package/dist/{Input-DoB8YswA.mjs → Input-BWlvBYB3.mjs} +1 -1
- package/dist/{Input-DoB8YswA.mjs.map → Input-BWlvBYB3.mjs.map} +1 -1
- package/dist/{Input-BHHWpSKN.d.mts → Input-qlQVD5h0.d.mts} +5 -5
- package/dist/Input.d.mts +1 -1
- package/dist/{InputProps-sHxlDiss.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/{ListBox-B9uuMt2R.mjs → ListBox-9jHHEaqW.mjs} +5 -5
- package/dist/{ListBox-B9uuMt2R.mjs.map → ListBox-9jHHEaqW.mjs.map} +1 -1
- package/dist/{ListBox-BrY1bQ5-.d.mts → ListBox-ZE3MYMt6.d.mts} +3 -3
- package/dist/ListBox.d.mts +1 -1
- package/dist/ListBoxField.d.mts +2 -2
- package/dist/{LoadingShimmer-dsBWRdTU.mjs → LoadingShimmer-a2Hv0kAq.mjs} +1 -1
- package/dist/{LoadingShimmer-dsBWRdTU.mjs.map → LoadingShimmer-a2Hv0kAq.mjs.map} +1 -1
- package/dist/LoadingShimmer.d.mts +1 -1
- package/dist/{LogicRow-9a_klV2v.d.mts → LogicRow-CbMmaWXU.d.mts} +3 -3
- package/dist/LogicRow.d.mts +1 -1
- package/dist/MaskedInput.d.mts +2 -2
- package/dist/{Menu-CHbUf9PQ.mjs → Menu-38UCGcte.mjs} +1 -1
- package/dist/{Menu-CHbUf9PQ.mjs.map → Menu-38UCGcte.mjs.map} +1 -1
- package/dist/{Menu-D4Y_J-QI.d.mts → Menu-ZShdhNd7.d.mts} +3 -3
- package/dist/Menu.d.mts +1 -1
- package/dist/Modal.d.mts +1 -1
- package/dist/{PageHeader-XxGsFLHb.mjs → PageHeader-B2-Slzhl.mjs} +2 -2
- package/dist/{PageHeader-XxGsFLHb.mjs.map → PageHeader-B2-Slzhl.mjs.map} +1 -1
- package/dist/PageHeader.d.mts +1 -1
- package/dist/{PageSelector-BDo3ge1E.d.mts → PageSelector-BcZx4nqe.d.mts} +3 -3
- package/dist/PageSelector.d.mts +1 -1
- package/dist/{Pagination-DvVKQLdC.mjs → Pagination-CtUz0gdA.mjs} +3 -3
- package/dist/{Pagination-DvVKQLdC.mjs.map → Pagination-CtUz0gdA.mjs.map} +1 -1
- package/dist/{Pagination-Dcmv7bVe.d.mts → Pagination-j4hF7GOk.d.mts} +2 -2
- package/dist/Pagination.d.mts +1 -1
- package/dist/{Pii-BD48BtZ0.mjs → Pii-RwKn-K84.mjs} +1 -1
- package/dist/{Pii-BD48BtZ0.mjs.map → Pii-RwKn-K84.mjs.map} +1 -1
- package/dist/PillShell.d.mts +1 -1
- package/dist/{Popover-DNH8Jx1-.mjs → Popover-DlXyKYL5.mjs} +1 -1
- package/dist/{Popover-DNH8Jx1-.mjs.map → Popover-DlXyKYL5.mjs.map} +1 -1
- package/dist/ProgressIndicator.d.mts +5 -3
- package/dist/{PseudoClassProps-DgT5G_z5.d.mts → PseudoClassProps-BPdn-ofQ.d.mts} +1 -1
- package/dist/PseudoClassProps.d.mts +1 -1
- package/dist/{Radio-DSMPX5_2.mjs → Radio-cLL9oatf.mjs} +1 -1
- package/dist/{Radio-DSMPX5_2.mjs.map → Radio-cLL9oatf.mjs.map} +1 -1
- package/dist/{RadioGroup-D5IITQLz.mjs → RadioGroup-BGo_kXKh.mjs} +2 -2
- package/dist/{RadioGroup-D5IITQLz.mjs.map → RadioGroup-BGo_kXKh.mjs.map} +1 -1
- package/dist/{RadioGroup-Jl1yAvGu.d.mts → RadioGroup-BqULCH-D.d.mts} +1 -1
- package/dist/RadioGroup.d.mts +1 -1
- package/dist/RangeCalendar.d.mts +5 -0
- package/dist/RangeCalendarPresets.d.mts +12 -2
- 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 +4 -4
- package/dist/RulesPill.d.mts +1 -1
- package/dist/{SearchInput-CaKHRC_s.d.mts → SearchInput-Dc90GLTF.d.mts} +2 -2
- package/dist/SearchInput.d.mts +1 -1
- package/dist/SectionHeading.d.mts +1 -1
- package/dist/{SegmentedControl-JUgRw_M-.mjs → SegmentedControl-CvWJGhwy.mjs} +1 -1
- package/dist/{SegmentedControl-JUgRw_M-.mjs.map → SegmentedControl-CvWJGhwy.mjs.map} +1 -1
- package/dist/{SegmentedControl-e6xDtoHC.d.mts → SegmentedControl-Db78Pzo_.d.mts} +1 -1
- package/dist/SegmentedControl.d.mts +1 -1
- package/dist/{Select-DX3toj6M.mjs → Select-U_vQhK1A.mjs} +3 -4
- package/dist/Select-U_vQhK1A.mjs.map +1 -0
- package/dist/{Select-CPYztD4m.d.mts → Select-bafAe2wd.d.mts} +3 -3
- package/dist/Select.d.mts +1 -1
- package/dist/{Spinner-D3wXIoXN.mjs → Spinner-BTyc6glU.mjs} +1 -1
- package/dist/{Spinner-D3wXIoXN.mjs.map → Spinner-BTyc6glU.mjs.map} +1 -1
- package/dist/{Stack-DHaK1-dw.d.mts → Stack-_JcvIE31.d.mts} +1 -1
- package/dist/Stack.d.mts +1 -1
- package/dist/{Sticker-DnSemOcW.d.mts → Sticker-OKVOQt_C.d.mts} +4 -4
- package/dist/Sticker.d.mts +1 -1
- package/dist/StringValueControl.d.mts +1 -1
- package/dist/Tab.d.mts +1 -1
- package/dist/{TabBar-sYllYizt.mjs → TabBar-B5NtgtgC.mjs} +1 -1
- package/dist/{TabBar-sYllYizt.mjs.map → TabBar-B5NtgtgC.mjs.map} +1 -1
- package/dist/TabBarIconButton.d.mts +1 -1
- package/dist/{Table-CFbPINKr.d.mts → Table-BcAgCIWq.d.mts} +1 -1
- package/dist/{Table-C2pkP5Xg.mjs → Table-DfUD3I2s.mjs} +2 -2
- package/dist/{Table-C2pkP5Xg.mjs.map → Table-DfUD3I2s.mjs.map} +1 -1
- package/dist/Table.d.mts +1 -1
- package/dist/{TableBody-BQsGc4Lw.d.mts → TableBody-D-RDBun9.d.mts} +1 -1
- package/dist/TableBody.d.mts +1 -1
- package/dist/{TableBox-CaTHcR4F.mjs → TableBox-0GvWjRln.mjs} +18 -12
- package/dist/{TableBox-CaTHcR4F.mjs.map → TableBox-0GvWjRln.mjs.map} +1 -1
- package/dist/TableBox.d.mts +2 -2
- package/dist/{TableBoxCell-52g97gEg.d.mts → TableBoxCell-WXc57DwN.d.mts} +10 -7
- package/dist/TableBoxCell.d.mts +1 -1
- package/dist/TableBoxField.d.mts +3 -3
- package/dist/{TableBoxRow-DnoumHIE.d.mts → TableBoxRow-BQz0a9vr.d.mts} +3 -3
- package/dist/TableBoxRow.d.mts +1 -1
- package/dist/{TableBoxRowActions-CDcREhP4.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-CrGGlkEG.d.mts → TableControls-C26vGkWZ.d.mts} +4 -3
- package/dist/{TableControls-3bXyd8gS.mjs → TableControls-WUNbzSNq.mjs} +238 -45
- package/dist/TableControls-WUNbzSNq.mjs.map +1 -0
- package/dist/TableControls.d.mts +1 -1
- package/dist/{TableControlsContext-BKZt2Jid.d.mts → TableControlsContext-ChFsFEjR.d.mts} +2 -2
- package/dist/TableControlsContext.d.mts +1 -1
- package/dist/{TableHead-CqVIJfjh.d.mts → TableHead-PPaqXC0K.d.mts} +1 -1
- package/dist/TableHead.d.mts +1 -1
- package/dist/{TableHeaderCell-DK4R8vdK.d.mts → TableHeaderCell-K_avn-rR.d.mts} +1 -1
- package/dist/TableHeaderCell.d.mts +1 -1
- package/dist/{TableLayout-BcIazRB-.d.mts → TableLayout-_Hd-Tvto.d.mts} +1 -1
- package/dist/TableLayout.d.mts +1 -1
- package/dist/{TableRow-DdJcjG2b.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-CHBOjw7O.d.mts → TableViewConfigurationDropdown-BqB7pOh8.d.mts} +2 -2
- package/dist/TableViewConfigurationDropdown.d.mts +1 -1
- package/dist/{TechnicalSticker-D3eeGMDR.mjs → TechnicalSticker-ClRR_6Ly.mjs} +1 -1
- package/dist/{TechnicalSticker-D3eeGMDR.mjs.map → TechnicalSticker-ClRR_6Ly.mjs.map} +1 -1
- package/dist/{Text-BIgrwIdS.d.mts → Text-CAKHcXSd.d.mts} +3 -3
- package/dist/Text.d.mts +1 -1
- package/dist/{TextArea-CiLttt0s.d.mts → TextArea-NjdArapc.d.mts} +2 -2
- package/dist/{TextArea-DWXuV2aZ.mjs → TextArea-n4IKHJKo.mjs} +1 -1
- package/dist/{TextArea-DWXuV2aZ.mjs.map → TextArea-n4IKHJKo.mjs.map} +1 -1
- package/dist/TextArea.d.mts +1 -1
- package/dist/{TextUnderlineTooltip-_7mIrZ2-.d.mts → TextUnderlineTooltip-Duzxfc_r.d.mts} +2 -2
- package/dist/TextUnderlineTooltip.d.mts +1 -1
- package/dist/Tile.d.mts +1 -1
- package/dist/Toast.d.mts +1 -1
- package/dist/{Toggle-Cav7bMxg.d.mts → Toggle-fh80PA8P.d.mts} +1 -1
- package/dist/Toggle.d.mts +1 -1
- package/dist/{Tooltip-DX-N-szt.d.mts → Tooltip-DabloV0o.d.mts} +2 -2
- package/dist/Tooltip.d.mts +1 -1
- package/dist/{TruncatedText-D2R7uy_y.d.mts → TruncatedText-B1W4BivL.d.mts} +1 -1
- package/dist/codec-B0dZTwlG.d.mts +29 -0
- package/dist/codec.d.mts +2 -0
- 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/Card/index.d.mts +2 -2
- package/dist/components/CardV2/index.d.mts +1 -1
- package/dist/components/CardV2/index.mjs +1 -1
- package/dist/components/Checkbox/index.d.mts +1 -1
- package/dist/components/Checkbox/index.mjs +1 -1
- package/dist/components/Combobox/index.d.mts +2 -2
- package/dist/components/Combobox/index.mjs +1 -1
- package/dist/components/ConfigFormGroup/index.mjs +1 -1
- 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 +7 -7
- 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/FormControl/index.d.mts +2 -2
- package/dist/components/FormControl/index.mjs +1 -1
- 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.mjs +1 -1
- package/dist/components/ImageTile/index.mjs +3 -3
- package/dist/components/Input/index.d.mts +1 -1
- package/dist/components/Input/index.mjs +1 -1
- package/dist/components/ListBox/index.d.mts +3 -3
- package/dist/components/ListBox/index.mjs +1 -1
- package/dist/components/LoadingShimmer/index.mjs +1 -1
- package/dist/components/MaskedInput/index.mjs +1 -1
- package/dist/components/Menu/index.d.mts +1 -1
- package/dist/components/Menu/index.mjs +1 -1
- package/dist/components/Modal/index.mjs +1 -1
- package/dist/components/PageHeader/index.mjs +1 -1
- package/dist/components/Pagination/index.d.mts +3 -3
- package/dist/components/Pagination/index.mjs +1 -1
- package/dist/components/Pii/index.mjs +1 -1
- package/dist/components/Popover/index.mjs +1 -1
- package/dist/components/ProgressIndicator/index.mjs +12 -8
- 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/Spinner/index.mjs +1 -1
- package/dist/components/Stack/index.d.mts +1 -1
- package/dist/components/Sticker/index.d.mts +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/TextArea/index.d.mts +1 -1
- package/dist/components/TextArea/index.mjs +1 -1
- package/dist/components/Toggle/index.d.mts +1 -1
- package/dist/components/Tooltip/index.d.mts +3 -3
- package/dist/compound-expression.d.mts +1 -1
- package/dist/{constants-bA9kCzRQ.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-C7injfBh.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-BPfK-u7y.d.mts → index-DASkW991.d.mts} +2 -2
- package/dist/{index-d_fTFuMM.d.mts → index-Dc_BgmPv.d.mts} +3 -3
- package/dist/{index-BxBsQi2S.d.mts → index-Dpo-RP6S.d.mts} +3 -3
- package/dist/index-e6k85DKM.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-D9FuQmlI.d.mts → input-M7BEIewR.d.mts} +3 -3
- package/dist/inputFields.d.mts +10 -10
- package/dist/{intersperse-CLkblj9A.mjs → intersperse-DQAyfeEw.mjs} +1 -1
- package/dist/{intersperse-CLkblj9A.mjs.map → intersperse-DQAyfeEw.mjs.map} +1 -1
- package/dist/lib/PDSProvider.d.mts +1 -1
- package/dist/lib/TruncatedText.d.mts +1 -1
- package/dist/lib/TruncatedTextWithTooltip.d.mts +1 -1
- package/dist/lib/date-filter/index.d.mts +3 -0
- package/dist/lib/date-filter/index.mjs +2 -0
- package/dist/lib/message.d.mts +1 -1
- package/dist/lib/pseudoClass.d.mts +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-CqKB5mko.d.mts → message-DaiDXonE.d.mts} +1 -1
- package/dist/mixins/focus.d.mts +1 -1
- package/dist/mixins/hoverable.d.mts +2 -2
- package/dist/mixins/input.d.mts +1 -1
- package/dist/mixins/menuItem.d.mts +2 -2
- package/dist/mixins/text.d.mts +1 -1
- package/dist/{operators-CgcsYzfy.d.mts → operators-BsSl7gPE.d.mts} +10 -3
- package/dist/operators.d.mts +2 -2
- package/dist/patterns/LayoutLoadingShimmer/index.mjs +4 -4
- package/dist/relative-date-label.d.mts +15 -0
- package/dist/{text-xwtyWIbE.d.mts → text-DjTGRUM1.d.mts} +1 -1
- package/dist/{theme-Ftogn9Wo.d.mts → theme-Biwx2eJZ.d.mts} +1 -1
- package/dist/theme.d.mts +1 -1
- package/dist/{types-BrNreYUU.d.mts → types-B5VmRRMR.d.mts} +5 -3
- package/dist/types-Bsf1VsW6.d.mts +24 -0
- package/dist/{types-DVsBRqjZ.d.mts → types-Cg3aXHUh2.d.mts} +1 -1
- package/dist/{types-0_9G0kWg.d.mts → types-Df0D37uh.d.mts} +1 -1
- package/dist/{types-D55MZSyx.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-D8Q8QKhS.d.mts → useFilterStateV2-BB14vCC-.d.mts} +3 -3
- package/dist/useFilterStateV2.d.mts +1 -1
- package/dist/{useFormField-BBbq1izo.d.mts → useFormField-CQo08dR4.d.mts} +2 -2
- package/dist/useFormField.d.mts +1 -1
- package/dist/{useTableBoxDragAndDrop-Bye8gJTl.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-Bmwk_DRn.d.mts → utilities-BHMNnJ8h.d.mts} +1 -1
- package/dist/utilities.d.mts +1 -1
- package/dist/utils.d.mts +1 -1
- package/dist/{validation-CAtTuHO9.d.mts → validation-B22QjCrV.d.mts} +3 -3
- package/dist/validation.d.mts +1 -1
- package/dist/{value-control-resolver-DadI8r9a.d.mts → value-control-resolver-qKTH1ErF.d.mts} +5 -3
- package/dist/value-control-resolver.d.mts +1 -1
- package/llms.txt +3 -3
- package/package.json +11 -1
- package/skills/ui-authoring/COMPONENTS.md +2 -0
- package/skills/ui-authoring/PATTERNS.md +3 -1
- package/skills/ui-authoring/SKILL.md +2 -2
- package/dist/DatePicker-BNnZ6L1y.mjs.map +0 -1
- package/dist/Select-DX3toj6M.mjs.map +0 -1
- package/dist/TableControls-3bXyd8gS.mjs.map +0 -1
- /package/dist/{index-0-W_aPej.d.mts → index-7rWKHdox.d.mts} +0 -0
- /package/dist/{index-7in8TPrM.d.mts → index-8SLBz2NH.d.mts} +0 -0
- /package/dist/{index-BNRXMhlr.d.mts → index-B_BBnMou.d.mts} +0 -0
- /package/dist/{index-BO_854F2.d.mts → index-BcsXXrHq.d.mts} +0 -0
- /package/dist/{index-BSVhZrWN.d.mts → index-Bt4QNofW.d.mts} +0 -0
- /package/dist/{index-BrGZHEgX.d.mts → index-BwFl_eS0.d.mts} +0 -0
- /package/dist/{index-BwAfCVZH2.d.mts → index-CMuRFTR3.d.mts} +0 -0
- /package/dist/{index-CCt0lwyI.d.mts → index-CRo77wc3.d.mts} +0 -0
- /package/dist/{index-CFhUdAHM.d.mts → index-CX869wwk.d.mts} +0 -0
- /package/dist/{index-CREkvfw9.d.mts → index-CliqZ9rj.d.mts} +0 -0
- /package/dist/{index-CROz1VSV.d.mts → index-CuheJfs-.d.mts} +0 -0
- /package/dist/{index-CsuikFeJ.d.mts → index-D4DUvwPf.d.mts} +0 -0
- /package/dist/{index-CzUpNo0e.d.mts → index-DBGd4WeR.d.mts} +0 -0
- /package/dist/{index-DA6_cwf8.d.mts → index-DDdPqD_H.d.mts} +0 -0
- /package/dist/{index-DM6vVDZD.d.mts → index-DMRtRo7y.d.mts} +0 -0
- /package/dist/{index-DeVKzGce.d.mts → index-Dflz2i1X.d.mts} +0 -0
- /package/dist/{index-Jh0C5PIG.d.mts → index-DvmLVvRD.d.mts} +0 -0
- /package/dist/{index-Oio5ygqN.d.mts → index-DztUdPP_.d.mts} +0 -0
- /package/dist/{index-PWQavSPf.d.mts → index-Wc1llEvP.d.mts} +0 -0
- /package/dist/{index-sViox9YW.d.mts → index-dhjtMp5F.d.mts} +0 -0
package/dist/inputFields.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { n as CheckboxProps } from "./Checkbox-
|
|
2
|
-
import { a as InputProps } from "./Input-
|
|
3
|
-
import { n as ComboboxMultiSelectProps } from "./ComboboxMultiSelect-
|
|
4
|
-
import { n as ComboboxSingleSelectProps } from "./ComboboxSingleSelect-
|
|
5
|
-
import { n as FormFieldBaseProps } from "./FormField-
|
|
6
|
-
import { n as RadioGroupProps } from "./RadioGroup-
|
|
7
|
-
import { i as SegmentedControlProps } from "./SegmentedControl-
|
|
8
|
-
import { i as SelectProps } from "./Select-
|
|
9
|
-
import { t as TextAreaProps } from "./TextArea-
|
|
10
|
-
import { n as ToggleProps } from "./Toggle-
|
|
1
|
+
import { n as CheckboxProps } from "./Checkbox-CwPXPLCi.mjs";
|
|
2
|
+
import { a as InputProps } from "./Input-qlQVD5h0.mjs";
|
|
3
|
+
import { n as ComboboxMultiSelectProps } from "./ComboboxMultiSelect-DkVfwSKH.mjs";
|
|
4
|
+
import { n as ComboboxSingleSelectProps } from "./ComboboxSingleSelect-CpumBcDn.mjs";
|
|
5
|
+
import { n as FormFieldBaseProps } from "./FormField-BcaFdmo5.mjs";
|
|
6
|
+
import { n as RadioGroupProps } from "./RadioGroup-BqULCH-D.mjs";
|
|
7
|
+
import { i as SegmentedControlProps } from "./SegmentedControl-Db78Pzo_.mjs";
|
|
8
|
+
import { i as SelectProps } from "./Select-bafAe2wd.mjs";
|
|
9
|
+
import { t as TextAreaProps } from "./TextArea-NjdArapc.mjs";
|
|
10
|
+
import { n as ToggleProps } from "./Toggle-fh80PA8P.mjs";
|
|
11
11
|
import * as _$react from "react";
|
|
12
12
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
13
13
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intersperse-
|
|
1
|
+
{"version":3,"file":"intersperse-DQAyfeEw.mjs","names":[],"sources":["../lib/intersperse.ts"],"sourcesContent":["/**\n * @name intersperse\n *\n * Inserts an element between array items using a separator function. The\n * separator function is passed the previous index, the previous element, and\n * the next element.\n *\n * ```typescript\n * const nodeList: React.ReactNode[] = [...]\n * const commaSeparatedList = intersperse(nodeList, () => ', ')\n * const advancedSeparatedList = intersperse(nodeList, i => <Separator key={i}/>)\n * ```\n */\nexport function intersperse<T>(arr: T[], separator: (n: number, prev: T, curr: T) => T): T[] {\n return arr.flatMap((a, i) => (i > 0 ? [separator(i - 1, arr[i - 1], a), a] : [a]));\n}\n"],"mappings":";;;;;;;;;;;;;;AAaA,SAAgB,YAAe,KAAU,WAAoD;AAC3F,QAAO,IAAI,SAAS,GAAG,MAAO,IAAI,IAAI,CAAC,UAAU,IAAI,GAAG,IAAI,IAAI,IAAI,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,CAAE"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TruncatedText, r as TruncatedTextProps, t as OverflowEllipsisSpan } from "../TruncatedText-
|
|
1
|
+
import { n as TruncatedText, r as TruncatedTextProps, t as OverflowEllipsisSpan } from "../TruncatedText-B1W4BivL.mjs";
|
|
2
2
|
export { OverflowEllipsisSpan, TruncatedText, TruncatedText as default, TruncatedTextProps };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { a as DateFilterPreset, c as RelativeDateFilterValue, n as AbsoluteDateRange, o as DateFilterValue } from "../../types-Bsf1VsW6.mjs";
|
|
2
|
+
import { a as selectedPresetFor, i as resolveDateFilterValue, r as parseDateFilterValue } from "../../codec-B0dZTwlG.mjs";
|
|
3
|
+
export { AbsoluteDateRange, DateFilterPreset, DateFilterValue, RelativeDateFilterValue, parseDateFilterValue, resolveDateFilterValue, selectedPresetFor };
|
package/dist/lib/message.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as MessageType } from "../message-
|
|
1
|
+
import { t as MessageType } from "../message-DaiDXonE.mjs";
|
|
2
2
|
export { MessageType };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
//#region lib/useResizablePanel.d.ts
|
|
2
|
+
declare enum PanelState {
|
|
3
|
+
Drawer = "drawer",
|
|
4
|
+
Maximized = "maximized"
|
|
5
|
+
}
|
|
6
|
+
interface UseResizablePanelOptions {
|
|
7
|
+
initialPanelState?: PanelState;
|
|
8
|
+
initialSize?: number;
|
|
9
|
+
/** Smallest size the panel snaps back to when a drag ends below it. */
|
|
10
|
+
minSize: number;
|
|
11
|
+
/** Fraction of the available space past which a released drag snaps to maximized. */
|
|
12
|
+
snapThreshold?: number;
|
|
13
|
+
}
|
|
14
|
+
interface ResizablePanelState {
|
|
15
|
+
/** Leave maximized and return to the drawer at `size` (null = `minSize`). */
|
|
16
|
+
collapse: () => void;
|
|
17
|
+
/** Open the drawer at the given size. */
|
|
18
|
+
expandTo: (size: number) => void;
|
|
19
|
+
/**
|
|
20
|
+
* Called on every drag frame. `size` is the requested panel size and
|
|
21
|
+
* `maxSize` the space the panel can grow into; both in px.
|
|
22
|
+
*/
|
|
23
|
+
handleDragMove: (size: number, maxSize: number) => void;
|
|
24
|
+
/** Called once when a drag ends; snaps to maximized or back to `minSize`. */
|
|
25
|
+
handleDragRelease: () => void;
|
|
26
|
+
maximize: () => void;
|
|
27
|
+
panelState: PanelState;
|
|
28
|
+
/**
|
|
29
|
+
* Return from maximized to the drawer size the panel had before maximizing
|
|
30
|
+
* (for a drag that snapped to maximized, the size when the drag started).
|
|
31
|
+
*/
|
|
32
|
+
restore: () => void;
|
|
33
|
+
size: number | null;
|
|
34
|
+
toggleMaximized: () => void;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Size and maximize/restore state for a resizable panel. Coordinates are
|
|
38
|
+
* caller-supplied sizes, so the hook works for both viewport- and
|
|
39
|
+
* container-anchored panels.
|
|
40
|
+
*/
|
|
41
|
+
declare const useResizablePanel: ({
|
|
42
|
+
initialPanelState,
|
|
43
|
+
initialSize,
|
|
44
|
+
minSize,
|
|
45
|
+
snapThreshold
|
|
46
|
+
}: UseResizablePanelOptions) => ResizablePanelState;
|
|
47
|
+
//#endregion
|
|
48
|
+
export { PanelState, ResizablePanelState, useResizablePanel };
|
|
49
|
+
//# sourceMappingURL=useResizablePanel.d.mts.map
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { useCallback, useRef, useState } from "react";
|
|
2
|
+
//#region lib/useResizablePanel.ts
|
|
3
|
+
let PanelState = /* @__PURE__ */ function(PanelState) {
|
|
4
|
+
PanelState["Drawer"] = "drawer";
|
|
5
|
+
PanelState["Maximized"] = "maximized";
|
|
6
|
+
return PanelState;
|
|
7
|
+
}({});
|
|
8
|
+
/**
|
|
9
|
+
* Size and maximize/restore state for a resizable panel. Coordinates are
|
|
10
|
+
* caller-supplied sizes, so the hook works for both viewport- and
|
|
11
|
+
* container-anchored panels.
|
|
12
|
+
*/
|
|
13
|
+
const useResizablePanel = ({ initialPanelState = "drawer", initialSize, minSize, snapThreshold = .95 }) => {
|
|
14
|
+
const [size, setSize] = useState(initialSize ?? null);
|
|
15
|
+
const [panelState, setPanelState] = useState(initialPanelState);
|
|
16
|
+
const maxSizeRef = useRef(null);
|
|
17
|
+
const dragStartSizeRef = useRef(null);
|
|
18
|
+
const sizeBeforeMaximizeRef = useRef(initialPanelState === "maximized" ? initialSize ?? null : null);
|
|
19
|
+
const maximize = useCallback(() => {
|
|
20
|
+
if (panelState !== "maximized") sizeBeforeMaximizeRef.current = size;
|
|
21
|
+
setPanelState("maximized");
|
|
22
|
+
}, [panelState, size]);
|
|
23
|
+
const restore = useCallback(() => {
|
|
24
|
+
setPanelState("drawer");
|
|
25
|
+
setSize(sizeBeforeMaximizeRef.current ?? minSize);
|
|
26
|
+
}, [minSize]);
|
|
27
|
+
const toggleMaximized = useCallback(() => {
|
|
28
|
+
if (panelState === "maximized") restore();
|
|
29
|
+
else maximize();
|
|
30
|
+
}, [
|
|
31
|
+
maximize,
|
|
32
|
+
panelState,
|
|
33
|
+
restore
|
|
34
|
+
]);
|
|
35
|
+
return {
|
|
36
|
+
collapse: useCallback(() => {
|
|
37
|
+
setPanelState("drawer");
|
|
38
|
+
setSize(null);
|
|
39
|
+
}, []),
|
|
40
|
+
expandTo: useCallback((nextSize) => {
|
|
41
|
+
setPanelState("drawer");
|
|
42
|
+
setSize(nextSize);
|
|
43
|
+
}, []),
|
|
44
|
+
handleDragMove: useCallback((nextSize, maxSize) => {
|
|
45
|
+
if (maxSizeRef.current == null) dragStartSizeRef.current = panelState === "maximized" ? null : size;
|
|
46
|
+
maxSizeRef.current = maxSize;
|
|
47
|
+
setPanelState("drawer");
|
|
48
|
+
setSize(Math.max(0, Math.min(nextSize, maxSize)));
|
|
49
|
+
}, [panelState, size]),
|
|
50
|
+
handleDragRelease: useCallback(() => {
|
|
51
|
+
const maxSize = maxSizeRef.current;
|
|
52
|
+
const dragStartSize = dragStartSizeRef.current;
|
|
53
|
+
maxSizeRef.current = null;
|
|
54
|
+
dragStartSizeRef.current = null;
|
|
55
|
+
if (size == null || maxSize == null) return;
|
|
56
|
+
if (size > maxSize * snapThreshold) {
|
|
57
|
+
sizeBeforeMaximizeRef.current = dragStartSize;
|
|
58
|
+
setPanelState("maximized");
|
|
59
|
+
} else if (size < minSize) setSize(minSize);
|
|
60
|
+
}, [
|
|
61
|
+
minSize,
|
|
62
|
+
size,
|
|
63
|
+
snapThreshold
|
|
64
|
+
]),
|
|
65
|
+
maximize,
|
|
66
|
+
panelState,
|
|
67
|
+
restore,
|
|
68
|
+
size,
|
|
69
|
+
toggleMaximized
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
//#endregion
|
|
73
|
+
export { PanelState, useResizablePanel };
|
|
74
|
+
|
|
75
|
+
//# sourceMappingURL=useResizablePanel.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useResizablePanel.mjs","names":[],"sources":["../../lib/useResizablePanel.ts"],"sourcesContent":["import { useCallback, useRef, useState } from 'react';\n\nexport enum PanelState {\n Drawer = 'drawer',\n Maximized = 'maximized',\n}\n\ninterface UseResizablePanelOptions {\n initialPanelState?: PanelState;\n initialSize?: number;\n /** Smallest size the panel snaps back to when a drag ends below it. */\n minSize: number;\n /** Fraction of the available space past which a released drag snaps to maximized. */\n snapThreshold?: number;\n}\n\nexport interface ResizablePanelState {\n /** Leave maximized and return to the drawer at `size` (null = `minSize`). */\n collapse: () => void;\n /** Open the drawer at the given size. */\n expandTo: (size: number) => void;\n /**\n * Called on every drag frame. `size` is the requested panel size and\n * `maxSize` the space the panel can grow into; both in px.\n */\n handleDragMove: (size: number, maxSize: number) => void;\n /** Called once when a drag ends; snaps to maximized or back to `minSize`. */\n handleDragRelease: () => void;\n maximize: () => void;\n panelState: PanelState;\n /**\n * Return from maximized to the drawer size the panel had before maximizing\n * (for a drag that snapped to maximized, the size when the drag started).\n */\n restore: () => void;\n size: number | null;\n toggleMaximized: () => void;\n}\n\n/**\n * Size and maximize/restore state for a resizable panel. Coordinates are\n * caller-supplied sizes, so the hook works for both viewport- and\n * container-anchored panels.\n */\nexport const useResizablePanel = ({\n initialPanelState = PanelState.Drawer,\n initialSize,\n minSize,\n snapThreshold = 0.95,\n}: UseResizablePanelOptions): ResizablePanelState => {\n const [size, setSize] = useState<number | null>(initialSize ?? null);\n const [panelState, setPanelState] = useState<PanelState>(initialPanelState);\n const maxSizeRef = useRef<number | null>(null);\n const dragStartSizeRef = useRef<number | null>(null);\n const sizeBeforeMaximizeRef = useRef<number | null>(\n initialPanelState === PanelState.Maximized ? (initialSize ?? null) : null,\n );\n\n const maximize = useCallback(() => {\n if (panelState !== PanelState.Maximized) {\n sizeBeforeMaximizeRef.current = size;\n }\n setPanelState(PanelState.Maximized);\n }, [panelState, size]);\n\n const restore = useCallback(() => {\n setPanelState(PanelState.Drawer);\n setSize(sizeBeforeMaximizeRef.current ?? minSize);\n }, [minSize]);\n\n const toggleMaximized = useCallback(() => {\n if (panelState === PanelState.Maximized) {\n restore();\n } else {\n maximize();\n }\n }, [maximize, panelState, restore]);\n\n const collapse = useCallback(() => {\n setPanelState(PanelState.Drawer);\n setSize(null);\n }, []);\n\n const expandTo = useCallback((nextSize: number) => {\n setPanelState(PanelState.Drawer);\n setSize(nextSize);\n }, []);\n\n const handleDragMove = useCallback(\n (nextSize: number, maxSize: number) => {\n if (maxSizeRef.current == null) {\n dragStartSizeRef.current = panelState === PanelState.Maximized ? null : size;\n }\n maxSizeRef.current = maxSize;\n setPanelState(PanelState.Drawer);\n setSize(Math.max(0, Math.min(nextSize, maxSize)));\n },\n [panelState, size],\n );\n\n const handleDragRelease = useCallback(() => {\n const maxSize = maxSizeRef.current;\n const dragStartSize = dragStartSizeRef.current;\n maxSizeRef.current = null;\n dragStartSizeRef.current = null;\n if (size == null || maxSize == null) {\n return;\n }\n\n if (size > maxSize * snapThreshold) {\n sizeBeforeMaximizeRef.current = dragStartSize;\n setPanelState(PanelState.Maximized);\n } else if (size < minSize) {\n setSize(minSize);\n }\n }, [minSize, size, snapThreshold]);\n\n return {\n collapse,\n expandTo,\n handleDragMove,\n handleDragRelease,\n maximize,\n panelState,\n restore,\n size,\n toggleMaximized,\n };\n};\n"],"mappings":";;AAEA,IAAY,aAAL,yBAAA,YAAA;AACL,YAAA,YAAA;AACA,YAAA,eAAA;;KACD;;;;;;AAuCD,MAAa,qBAAqB,EAChC,oBAAA,UACA,aACA,SACA,gBAAgB,UACmC;CACnD,MAAM,CAAC,MAAM,WAAW,SAAwB,eAAe,KAAK;CACpE,MAAM,CAAC,YAAY,iBAAiB,SAAqB,kBAAkB;CAC3E,MAAM,aAAa,OAAsB,KAAK;CAC9C,MAAM,mBAAmB,OAAsB,KAAK;CACpD,MAAM,wBAAwB,OAC5B,sBAAA,cAA8C,eAAe,OAAQ,KACtE;CAED,MAAM,WAAW,kBAAkB;AACjC,MAAI,eAAA,YACF,uBAAsB,UAAU;AAElC,gBAAA,YAAmC;IAClC,CAAC,YAAY,KAAK,CAAC;CAEtB,MAAM,UAAU,kBAAkB;AAChC,gBAAA,SAAgC;AAChC,UAAQ,sBAAsB,WAAW,QAAQ;IAChD,CAAC,QAAQ,CAAC;CAEb,MAAM,kBAAkB,kBAAkB;AACxC,MAAI,eAAA,YACF,UAAS;MAET,WAAU;IAEX;EAAC;EAAU;EAAY;EAAQ,CAAC;AAyCnC,QAAO;EACL,UAxCe,kBAAkB;AACjC,iBAAA,SAAgC;AAChC,WAAQ,KAAK;KACZ,EAAE,CAqCK;EACR,UApCe,aAAa,aAAqB;AACjD,iBAAA,SAAgC;AAChC,WAAQ,SAAS;KAChB,EAAE,CAiCK;EACR,gBAhCqB,aACpB,UAAkB,YAAoB;AACrC,OAAI,WAAW,WAAW,KACxB,kBAAiB,UAAU,eAAA,cAAsC,OAAO;AAE1E,cAAW,UAAU;AACrB,iBAAA,SAAgC;AAChC,WAAQ,KAAK,IAAI,GAAG,KAAK,IAAI,UAAU,QAAQ,CAAC,CAAC;KAEnD,CAAC,YAAY,KAAK,CAuBJ;EACd,mBArBwB,kBAAkB;GAC1C,MAAM,UAAU,WAAW;GAC3B,MAAM,gBAAgB,iBAAiB;AACvC,cAAW,UAAU;AACrB,oBAAiB,UAAU;AAC3B,OAAI,QAAQ,QAAQ,WAAW,KAC7B;AAGF,OAAI,OAAO,UAAU,eAAe;AAClC,0BAAsB,UAAU;AAChC,kBAAA,YAAmC;cAC1B,OAAO,QAChB,SAAQ,QAAQ;KAEjB;GAAC;GAAS;GAAM;GAAc,CAMd;EACjB;EACA;EACA;EACA;EACA;EACD"}
|
package/dist/mixins/focus.d.mts
CHANGED
|
@@ -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/hoverable.d.ts
|
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 };
|
|
@@ -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/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 };
|
|
@@ -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,9 +1,9 @@
|
|
|
1
1
|
import { a as styled } from "../../styledComponentsInterop-8zScIQyC.mjs";
|
|
2
2
|
import { n as Stack, t as HStack } from "../../Stack-Bre2oiov.mjs";
|
|
3
|
-
import { t as LoadingShimmer } from "../../LoadingShimmer-
|
|
4
|
-
import { t as Card_default } from "../../CardV2-
|
|
5
|
-
import { h as Table, m as TableHeaderCell, n as TableBody, p as TableRow, r as TableHead, s as TableCell } from "../../Table-
|
|
6
|
-
import { n as PageHeaderContainer } from "../../PageHeader-
|
|
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";
|
|
7
7
|
import { Color, Spacing } from "@persona/design-tokens";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region patterns/containers.tsx
|
|
@@ -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
|
|
@@ -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
|
|
@@ -24,4 +24,4 @@ interface BaseActiveFilter<TFilter extends BaseFilterConfig = BaseFilterConfig>
|
|
|
24
24
|
}
|
|
25
25
|
//#endregion
|
|
26
26
|
export { BaseActiveFilter as n, BaseFilterConfig as r, AttributeColumn as t };
|
|
27
|
-
//# 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 { 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 };
|
package/dist/{useTableBoxDragAndDrop-Bye8gJTl.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 };
|