@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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ComboboxMultiSelectProps } from "./ComboboxMultiSelect-
|
|
2
|
-
import { n as ComboboxSingleSelectProps } from "./ComboboxSingleSelect-
|
|
1
|
+
import { n as ComboboxMultiSelectProps } from "./ComboboxMultiSelect-DkVfwSKH.mjs";
|
|
2
|
+
import { n as ComboboxSingleSelectProps } from "./ComboboxSingleSelect-CpumBcDn.mjs";
|
|
3
3
|
|
|
4
4
|
//#region components/Combobox/Combobox.d.ts
|
|
5
5
|
type ComboboxProps<T = string> = ComboboxSingleSelectProps<T> | ComboboxMultiSelectProps<T>;
|
|
@@ -8,4 +8,4 @@ declare const Combobox: <T = string>(props: ComboboxProps<T> & {
|
|
|
8
8
|
}) => React.ReactElement;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { ComboboxProps as n, Combobox as t };
|
|
11
|
-
//# sourceMappingURL=Combobox-
|
|
11
|
+
//# sourceMappingURL=Combobox-C9QBItsc.d.mts.map
|
package/dist/Combobox.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as CaretButton } from "./ComboboxBase-
|
|
2
|
-
import { n as ComboboxProps, t as Combobox } from "./Combobox-
|
|
1
|
+
import { t as CaretButton } from "./ComboboxBase-BkSpdmsT.mjs";
|
|
2
|
+
import { n as ComboboxProps, t as Combobox } from "./Combobox-C9QBItsc.mjs";
|
|
3
3
|
export { CaretButton, Combobox, Combobox as default, ComboboxProps };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as ButtonProps } from "./Button-
|
|
2
|
-
import { c as ParagraphProps, u as SpanProps } from "./Text-
|
|
3
|
-
import { n as InputSizes } from "./input-
|
|
4
|
-
import { a as InputProps } from "./Input-
|
|
5
|
-
import { o as StickerProps } from "./Sticker-
|
|
1
|
+
import { r as ButtonProps } from "./Button-BrI1s2-r.mjs";
|
|
2
|
+
import { c as ParagraphProps, u as SpanProps } from "./Text-CAKHcXSd.mjs";
|
|
3
|
+
import { n as InputSizes } from "./input-M7BEIewR.mjs";
|
|
4
|
+
import { a as InputProps } from "./Input-qlQVD5h0.mjs";
|
|
5
|
+
import { o as StickerProps } from "./Sticker-OKVOQt_C.mjs";
|
|
6
6
|
import { Spacing } from "@persona/design-tokens";
|
|
7
7
|
import * as _$react from "react";
|
|
8
8
|
import { CSSProperties, ReactNode } from "react";
|
|
@@ -363,4 +363,4 @@ declare function DropdownPortalWrapper({
|
|
|
363
363
|
}: DropdownPortalWrapperProps): _$react_jsx_runtime0.JSX.Element;
|
|
364
364
|
//#endregion
|
|
365
365
|
export { isNestedGroup as A, SearchInputContainer as C, flattenOptions as D, flattenLeafOptions as E, renderOptionsWithGroups as M, useDropdownPosition as N, getNavigableItemsAtLevel as O, useFilteredOptions as P, SearchInput as S, containsNestedGroup as T, LoadingContainer as _, ComboboxOptionGroup as a, OptionLabel as b, Description as c, DropdownPortalWrapperProps as d, EmptyState as f, LeafOptionEntry as g, InputContainer as h, ComboboxOption as i, isOptionGroup as j, getOptionsAtPath as k, DropdownContainer as l, FooterActionRow as m, ComboboxBaseProps as n, ComboboxOptionsOrGroups as o, FooterAction as p, ComboboxInput as r, Container as s, CaretButton as t, DropdownPortalWrapper as u, MAX_DROPDOWN_HEIGHT as v, buildVirtualRows as w, ScrollableMenuList as x, NavigableItem as y };
|
|
366
|
-
//# sourceMappingURL=ComboboxBase-
|
|
366
|
+
//# sourceMappingURL=ComboboxBase-BkSpdmsT.d.mts.map
|
package/dist/ComboboxBase.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as isNestedGroup, C as SearchInputContainer, D as flattenOptions, E as flattenLeafOptions, M as renderOptionsWithGroups, N as useDropdownPosition, O as getNavigableItemsAtLevel, P as useFilteredOptions, S as SearchInput, T as containsNestedGroup, _ as LoadingContainer, a as ComboboxOptionGroup, b as OptionLabel, c as Description, d as DropdownPortalWrapperProps, f as EmptyState, g as LeafOptionEntry, h as InputContainer, i as ComboboxOption, j as isOptionGroup, k as getOptionsAtPath, l as DropdownContainer, m as FooterActionRow, n as ComboboxBaseProps, o as ComboboxOptionsOrGroups, p as FooterAction, r as ComboboxInput, s as Container, t as CaretButton, u as DropdownPortalWrapper, v as MAX_DROPDOWN_HEIGHT, w as buildVirtualRows, x as ScrollableMenuList, y as NavigableItem } from "./ComboboxBase-
|
|
1
|
+
import { A as isNestedGroup, C as SearchInputContainer, D as flattenOptions, E as flattenLeafOptions, M as renderOptionsWithGroups, N as useDropdownPosition, O as getNavigableItemsAtLevel, P as useFilteredOptions, S as SearchInput, T as containsNestedGroup, _ as LoadingContainer, a as ComboboxOptionGroup, b as OptionLabel, c as Description, d as DropdownPortalWrapperProps, f as EmptyState, g as LeafOptionEntry, h as InputContainer, i as ComboboxOption, j as isOptionGroup, k as getOptionsAtPath, l as DropdownContainer, m as FooterActionRow, n as ComboboxBaseProps, o as ComboboxOptionsOrGroups, p as FooterAction, r as ComboboxInput, s as Container, t as CaretButton, u as DropdownPortalWrapper, v as MAX_DROPDOWN_HEIGHT, w as buildVirtualRows, x as ScrollableMenuList, y as NavigableItem } from "./ComboboxBase-BkSpdmsT.mjs";
|
|
2
2
|
export { CaretButton, ComboboxBaseProps, ComboboxInput, ComboboxOption, ComboboxOptionGroup, ComboboxOptionsOrGroups, Container, Description, DropdownContainer, DropdownPortalWrapper, DropdownPortalWrapperProps, EmptyState, FooterAction, FooterActionRow, InputContainer, LeafOptionEntry, LoadingContainer, MAX_DROPDOWN_HEIGHT, NavigableItem, OptionLabel, ScrollableMenuList, SearchInput, SearchInputContainer, buildVirtualRows, containsNestedGroup, flattenLeafOptions, flattenOptions, getNavigableItemsAtLevel, getOptionsAtPath, isNestedGroup, isOptionGroup, renderOptionsWithGroups, useDropdownPosition, useFilteredOptions };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ComboboxBaseProps } from "./ComboboxBase-
|
|
1
|
+
import { n as ComboboxBaseProps } from "./ComboboxBase-BkSpdmsT.mjs";
|
|
2
2
|
|
|
3
3
|
//#region components/Combobox/ComboboxMultiSelect.d.ts
|
|
4
4
|
interface ComboboxMultiSelectProps<T = string> extends ComboboxBaseProps<T> {
|
|
@@ -44,4 +44,4 @@ declare const ComboboxMultiSelect: <T = string>(props: ComboboxMultiSelectProps<
|
|
|
44
44
|
}) => React.ReactElement;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { ComboboxMultiSelectProps as n, ComboboxMultiSelect as t };
|
|
47
|
-
//# sourceMappingURL=ComboboxMultiSelect-
|
|
47
|
+
//# sourceMappingURL=ComboboxMultiSelect-DkVfwSKH.d.mts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ComboboxMultiSelectProps, t as ComboboxMultiSelect } from "./ComboboxMultiSelect-
|
|
1
|
+
import { n as ComboboxMultiSelectProps, t as ComboboxMultiSelect } from "./ComboboxMultiSelect-DkVfwSKH.mjs";
|
|
2
2
|
export { ComboboxMultiSelect, ComboboxMultiSelect as default, ComboboxMultiSelectProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as InputSizes } from "./input-
|
|
2
|
-
import { n as ComboboxBaseProps } from "./ComboboxBase-
|
|
3
|
-
import { u as MenuItemType } from "./Menu-
|
|
1
|
+
import { n as InputSizes } from "./input-M7BEIewR.mjs";
|
|
2
|
+
import { n as ComboboxBaseProps } from "./ComboboxBase-BkSpdmsT.mjs";
|
|
3
|
+
import { u as MenuItemType } from "./Menu-ZShdhNd7.mjs";
|
|
4
4
|
import * as _$styled_components0 from "styled-components";
|
|
5
5
|
|
|
6
6
|
//#region components/Combobox/ComboboxSingleSelect.d.ts
|
|
@@ -32,4 +32,4 @@ declare const ComboboxSingleSelect: <T = string>(props: ComboboxSingleSelectProp
|
|
|
32
32
|
}) => React.ReactElement;
|
|
33
33
|
//#endregion
|
|
34
34
|
export { ComboboxSingleSelectProps as n, StyledMenuItem as r, ComboboxSingleSelect as t };
|
|
35
|
-
//# sourceMappingURL=ComboboxSingleSelect-
|
|
35
|
+
//# sourceMappingURL=ComboboxSingleSelect-CpumBcDn.d.mts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ComboboxSingleSelectProps, r as StyledMenuItem, t as ComboboxSingleSelect } from "./ComboboxSingleSelect-
|
|
1
|
+
import { n as ComboboxSingleSelectProps, r as StyledMenuItem, t as ComboboxSingleSelect } from "./ComboboxSingleSelect-CpumBcDn.mjs";
|
|
2
2
|
export { ComboboxSingleSelect, ComboboxSingleSelect as default, ComboboxSingleSelectProps, StyledMenuItem };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as HStackProps } from "./Stack-
|
|
2
|
-
import { n as ControlBarProps } from "./ControlBar-
|
|
1
|
+
import { n as HStackProps } from "./Stack-_JcvIE31.mjs";
|
|
2
|
+
import { n as ControlBarProps } from "./ControlBar-DwAhPcb5.mjs";
|
|
3
3
|
import * as _$styled_components0 from "styled-components";
|
|
4
4
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
5
|
|
|
@@ -18,4 +18,4 @@ type CompactBarProps = Pick<ControlBarProps, 'title' | 'searchProps' | 'showFilt
|
|
|
18
18
|
declare const CompactBar: React.FC<CompactBarProps>;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { DataTableCompactBar as n, CompactBar as t };
|
|
21
|
-
//# sourceMappingURL=CompactBar-
|
|
21
|
+
//# sourceMappingURL=CompactBar-COxu_FDd.d.mts.map
|
package/dist/CompactBar.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as DataTableCompactBar, t as CompactBar } from "./CompactBar-
|
|
1
|
+
import { n as DataTableCompactBar, t as CompactBar } from "./CompactBar-COxu_FDd.mjs";
|
|
2
2
|
export { DataTableCompactBar, CompactBar as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigFormGroup-
|
|
1
|
+
{"version":3,"file":"ConfigFormGroup-aSdn2r6Z.mjs","names":[],"sources":["../components/ConfigFormGroup/ConfigFormGroup.tsx"],"sourcesContent":["import { type ComponentPropsWithoutRef, forwardRef } from 'react';\nimport styled from 'styled-components';\n\nimport { Spacing } from '@persona/design-tokens';\n\nimport { FormGroupContext } from './useFormGroup';\n\n/**\n * Use to wrap a group of config fields.\n * Provides consistent spacing between the fields.\n */\nconst FormGroup = styled.div`\n display: flex;\n flex-direction: column;\n gap: ${Spacing[5]};\n`;\n\nexport const ConfigFormGroup = forwardRef<HTMLDivElement, ComponentPropsWithoutRef<'div'>>(\n function ConfigFormGroup(props, ref) {\n return (\n <FormGroupContext.Provider value={{ configField: true }}>\n <FormGroup ref={ref} {...props} />\n </FormGroupContext.Provider>\n );\n },\n);\n\nexport default ConfigFormGroup;\n"],"mappings":";;;;;;;;;;AAWA,MAAM,YAAY,OAAO,GAAG;;;SAGnB,QAAQ,GAAG;;AAGpB,MAAa,kBAAkB,WAC7B,SAAS,gBAAgB,OAAO,KAAK;AACnC,QACE,oBAAC,iBAAiB,UAAlB;EAA2B,OAAO,EAAE,aAAa,MAAM;YACrD,oBAAC,WAAD;GAAgB;GAAK,GAAI;GAAS,CAAA;EACR,CAAA;EAGjC"}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import { t as OmniSearchProps } from "./SearchInput-
|
|
1
|
+
import { t as OmniSearchProps } from "./SearchInput-Dc90GLTF.mjs";
|
|
2
2
|
import { FC } from "react";
|
|
3
3
|
|
|
4
4
|
//#region components/DataTable/TableControls/ControlBar.d.ts
|
|
5
5
|
interface TableViewConfig {
|
|
6
6
|
id: string;
|
|
7
7
|
name: string;
|
|
8
|
+
/**
|
|
9
|
+
* Whether this view is currently marked as the default view. Used to toggle the
|
|
10
|
+
* "Set as default"/"Already the default" menu item label when `onSetDefaultView` is provided.
|
|
11
|
+
*/
|
|
12
|
+
isDefault?: boolean;
|
|
8
13
|
}
|
|
9
14
|
interface EventHandlers {
|
|
10
15
|
/**
|
|
@@ -31,6 +36,11 @@ interface EventHandlers {
|
|
|
31
36
|
* Called when the save view button is clicked. If not provided, the save view button will not be displayed.
|
|
32
37
|
*/
|
|
33
38
|
onSaveView?: () => Promise<void>;
|
|
39
|
+
/**
|
|
40
|
+
* Called when the "Set as default" menu item is clicked. If not provided, the menu item
|
|
41
|
+
* will not be displayed.
|
|
42
|
+
*/
|
|
43
|
+
onSetDefaultView?: (viewId: string) => Promise<void>;
|
|
34
44
|
/**
|
|
35
45
|
* Called when the add view button is clicked. If not provided, the add view button will not be displayed.
|
|
36
46
|
*
|
|
@@ -148,4 +158,4 @@ interface ControlBarProps extends EventHandlers {
|
|
|
148
158
|
declare const ControlBar: FC<ControlBarProps>;
|
|
149
159
|
//#endregion
|
|
150
160
|
export { ControlBarProps as n, ControlBar as t };
|
|
151
|
-
//# sourceMappingURL=ControlBar-
|
|
161
|
+
//# sourceMappingURL=ControlBar-DwAhPcb5.d.mts.map
|
package/dist/ControlBar.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ControlBarProps, t as ControlBar } from "./ControlBar-
|
|
1
|
+
import { n as ControlBarProps, t as ControlBar } from "./ControlBar-DwAhPcb5.mjs";
|
|
2
2
|
export { ControlBarProps, ControlBar as default };
|
package/dist/DataTable.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as AttributeColumn } from "./types-
|
|
2
|
-
import { n as TableControlsProps, t as TableControls } from "./TableControls-
|
|
3
|
-
import { t as Pagination } from "./Pagination-
|
|
1
|
+
import { t as AttributeColumn } from "./types-Df0D37uh.mjs";
|
|
2
|
+
import { n as TableControlsProps, t as TableControls } from "./TableControls-C26vGkWZ.mjs";
|
|
3
|
+
import { t as Pagination } from "./Pagination-j4hF7GOk.mjs";
|
|
4
4
|
import { BulkAction, DataTableColumnFormat, DataTableColumns, RowAction, SortProps } from "./components/DataTable/types.mjs";
|
|
5
5
|
import { RenderFormatFn } from "./useTableColumns.mjs";
|
|
6
6
|
import { ComponentProps } from "react";
|
|
@@ -37,6 +37,7 @@ declare const DataTableControls: _$styled_components0.StyledComponent<({
|
|
|
37
37
|
onDuplicateView,
|
|
38
38
|
onDeleteView,
|
|
39
39
|
onSaveView,
|
|
40
|
+
onSetDefaultView,
|
|
40
41
|
isViewDirty,
|
|
41
42
|
selectedRows,
|
|
42
43
|
bulkActions,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as InputSizes } from "./input-
|
|
1
|
+
import { n as InputSizes } from "./input-M7BEIewR.mjs";
|
|
2
2
|
import * as _$react from "react";
|
|
3
3
|
import { DateValue } from "@internationalized/date";
|
|
4
4
|
import { AriaDateFieldProps } from "@react-aria/datepicker";
|
|
@@ -20,4 +20,4 @@ interface DateFieldProps extends AriaDateFieldProps<DateValue> {
|
|
|
20
20
|
declare const DateField: _$react.ForwardRefExoticComponent<DateFieldProps & _$react.RefAttributes<HTMLDivElement>>;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { DateField as t };
|
|
23
|
-
//# sourceMappingURL=DateField-
|
|
23
|
+
//# sourceMappingURL=DateField-tOyrGcx1.d.mts.map
|
package/dist/DateField.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as DateField } from "./DateField-
|
|
1
|
+
import { t as DateField } from "./DateField-tOyrGcx1.mjs";
|
|
2
2
|
export { DateField, DateField as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as InputSizes } from "./input-
|
|
1
|
+
import { n as InputSizes } from "./input-M7BEIewR.mjs";
|
|
2
2
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
import { DateValue } from "@internationalized/date";
|
|
4
4
|
import { DatePickerProps } from "@react-types/datepicker";
|
|
@@ -16,4 +16,4 @@ interface DatePickerProps$1 extends DatePickerProps<DateValue> {
|
|
|
16
16
|
declare const DatePicker: (props: DatePickerProps$1) => _$react_jsx_runtime0.JSX.Element;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { DatePickerProps$1 as n, DatePicker as t };
|
|
19
|
-
//# sourceMappingURL=DatePicker-
|
|
19
|
+
//# sourceMappingURL=DatePicker-Bs9JODNg.d.mts.map
|
|
@@ -5,10 +5,10 @@ import { Z_INDICES } from "./lib/zindex.mjs";
|
|
|
5
5
|
import { focusWithinOutline } from "./mixins/focus.mjs";
|
|
6
6
|
import inputMixin from "./mixins/input.mjs";
|
|
7
7
|
import { t as IconButton } from "./IconButton-BgL3QUVO.mjs";
|
|
8
|
-
import { t as ClearButton } from "./Input-
|
|
9
|
-
import { c as MenuList, s as MenuItem } from "./Menu-
|
|
10
|
-
import { s as Popover_default } from "./Popover-
|
|
11
|
-
import { a as FormLabel } from "./FormControl-
|
|
8
|
+
import { t as ClearButton } from "./Input-BWlvBYB3.mjs";
|
|
9
|
+
import { c as MenuList, s as MenuItem } from "./Menu-38UCGcte.mjs";
|
|
10
|
+
import { s as Popover_default } from "./Popover-DlXyKYL5.mjs";
|
|
11
|
+
import { a as FormLabel } from "./FormControl-1BmoYFCu.mjs";
|
|
12
12
|
import { BorderRadius, Color, Spacing, Typography } from "@persona/design-tokens";
|
|
13
13
|
import { forwardRef, memo, useCallback, useEffect, useRef, useState } from "react";
|
|
14
14
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -16,8 +16,8 @@ import { ArrowLeftIcon, ArrowRightIcon, CircleXInverseIcon } from "@persona/icon
|
|
|
16
16
|
import { range } from "lodash-es";
|
|
17
17
|
import { VisuallyHidden, mergeProps, useButton, useCalendar, useCalendarCell, useCalendarGrid, useDateFormatter, useDatePicker, useDateRangePicker, useFocusWithin, useLocale, usePress, useRangeCalendar } from "react-aria";
|
|
18
18
|
import { useCalendarState, useDatePickerState, useDateRangePickerState, useRangeCalendarState } from "react-stately";
|
|
19
|
-
import { DateTime, Settings } from "luxon";
|
|
20
19
|
import { mergeRefs } from "@react-aria/utils";
|
|
20
|
+
import { DateTime, Settings } from "luxon";
|
|
21
21
|
import { CalendarDate, GregorianCalendar, endOfMonth, endOfYear, getWeeksInMonth, isSameDay, isSameMonth, now, parseAbsolute, startOfMonth, startOfYear, toCalendarDateTime, today } from "@internationalized/date";
|
|
22
22
|
import { useDateField, useDateSegment } from "@react-aria/datepicker";
|
|
23
23
|
import { useLocale as useLocale$1 } from "@react-aria/i18n";
|
|
@@ -431,10 +431,12 @@ const DatePicker = (props) => {
|
|
|
431
431
|
};
|
|
432
432
|
//#endregion
|
|
433
433
|
//#region components/DatePicker/Calendar/RangeCalendarPresets.tsx
|
|
434
|
+
/** The preset windows the picker offers; the codec resolves the same ids on read. */
|
|
434
435
|
const getDefaultPresets = (tz) => {
|
|
435
436
|
const now = today(tz);
|
|
436
437
|
return [
|
|
437
438
|
{
|
|
439
|
+
id: "last_7_days",
|
|
438
440
|
label: "Last 7 days",
|
|
439
441
|
range: {
|
|
440
442
|
start: now.subtract({ days: 7 }),
|
|
@@ -442,6 +444,7 @@ const getDefaultPresets = (tz) => {
|
|
|
442
444
|
}
|
|
443
445
|
},
|
|
444
446
|
{
|
|
447
|
+
id: "last_14_days",
|
|
445
448
|
label: "Last 14 days",
|
|
446
449
|
range: {
|
|
447
450
|
start: now.subtract({ days: 14 }),
|
|
@@ -449,6 +452,7 @@ const getDefaultPresets = (tz) => {
|
|
|
449
452
|
}
|
|
450
453
|
},
|
|
451
454
|
{
|
|
455
|
+
id: "last_30_days",
|
|
452
456
|
label: "Last 30 days",
|
|
453
457
|
range: {
|
|
454
458
|
start: now.subtract({ days: 30 }),
|
|
@@ -456,6 +460,7 @@ const getDefaultPresets = (tz) => {
|
|
|
456
460
|
}
|
|
457
461
|
},
|
|
458
462
|
{
|
|
463
|
+
id: "this_month",
|
|
459
464
|
label: "This month",
|
|
460
465
|
range: {
|
|
461
466
|
start: startOfMonth(now),
|
|
@@ -463,6 +468,7 @@ const getDefaultPresets = (tz) => {
|
|
|
463
468
|
}
|
|
464
469
|
},
|
|
465
470
|
{
|
|
471
|
+
id: "last_month",
|
|
466
472
|
label: "Last month",
|
|
467
473
|
range: {
|
|
468
474
|
start: startOfMonth(now.subtract({ months: 1 })),
|
|
@@ -470,6 +476,7 @@ const getDefaultPresets = (tz) => {
|
|
|
470
476
|
}
|
|
471
477
|
},
|
|
472
478
|
{
|
|
479
|
+
id: "this_year",
|
|
473
480
|
label: "This year",
|
|
474
481
|
range: {
|
|
475
482
|
start: startOfYear(now),
|
|
@@ -477,6 +484,7 @@ const getDefaultPresets = (tz) => {
|
|
|
477
484
|
}
|
|
478
485
|
},
|
|
479
486
|
{
|
|
487
|
+
id: "last_year",
|
|
480
488
|
label: "Last year",
|
|
481
489
|
range: {
|
|
482
490
|
start: startOfYear(now.subtract({ years: 1 })),
|
|
@@ -506,10 +514,12 @@ const StyledPresetButton = styled(MenuItem)`
|
|
|
506
514
|
outline-offset: 1px;
|
|
507
515
|
}
|
|
508
516
|
`;
|
|
509
|
-
const PresetButton = ({ state, preset, isSelected, setDateMode, ...props }) => {
|
|
517
|
+
const PresetButton = ({ commitRange, state, preset, isSelected, setDateMode, onPresetSelect, ...props }) => {
|
|
510
518
|
const ref = useRef();
|
|
511
519
|
const { buttonProps } = useButton({ onPress: () => {
|
|
512
|
-
|
|
520
|
+
const commit = () => commitRange(preset.range);
|
|
521
|
+
if (onPresetSelect) onPresetSelect(preset.id, commit);
|
|
522
|
+
else commit();
|
|
513
523
|
setDateMode(null);
|
|
514
524
|
} }, ref);
|
|
515
525
|
const { "aria-current": _ariaCurrent, ...mergedProps } = mergeProps(props, buttonProps);
|
|
@@ -520,24 +530,28 @@ const PresetButton = ({ state, preset, isSelected, setDateMode, ...props }) => {
|
|
|
520
530
|
children: preset.label
|
|
521
531
|
});
|
|
522
532
|
};
|
|
523
|
-
const DateRangePickerPresets = ({ presetsFn = getDefaultPresets, state, setDateMode, ...props }) => {
|
|
533
|
+
const DateRangePickerPresets = ({ presetsFn = getDefaultPresets, commitRange, state, setDateMode, onPresetSelect, selectedPreset, ...props }) => {
|
|
524
534
|
const presets = presetsFn(Settings.defaultZone.name);
|
|
525
535
|
const { value } = state;
|
|
526
536
|
const selectedPresetIndex = value ? presets.findIndex((preset) => datesMatchByDay(preset.range.start, value.start) && datesMatchByDay(preset.range.end, value.end)) : -1;
|
|
537
|
+
const infersSelection = typeof selectedPreset === "undefined";
|
|
527
538
|
return /* @__PURE__ */ jsx(Container, {
|
|
528
539
|
...props,
|
|
529
540
|
children: /* @__PURE__ */ jsx(MenuList, {
|
|
530
541
|
"aria-label": "Date range presets",
|
|
531
542
|
children: presets.map((preset, i) => /* @__PURE__ */ jsx(PresetButton, {
|
|
532
543
|
preset,
|
|
544
|
+
commitRange,
|
|
533
545
|
state,
|
|
534
546
|
setDateMode,
|
|
535
|
-
|
|
547
|
+
onPresetSelect,
|
|
548
|
+
isSelected: infersSelection ? i === selectedPresetIndex : preset.id === selectedPreset
|
|
536
549
|
}, i))
|
|
537
550
|
})
|
|
538
551
|
});
|
|
539
552
|
};
|
|
540
553
|
const arePropsEqual = (prevProps, nextProps) => {
|
|
554
|
+
if (prevProps.selectedPreset !== nextProps.selectedPreset || prevProps.onPresetSelect !== nextProps.onPresetSelect || prevProps.commitRange !== nextProps.commitRange || prevProps.setDateMode !== nextProps.setDateMode || prevProps.presetsFn !== nextProps.presetsFn) return false;
|
|
541
555
|
const prevValue = prevProps.state.value;
|
|
542
556
|
const nextValue = nextProps.state.value;
|
|
543
557
|
if (!prevValue && !nextValue) return true;
|
|
@@ -598,7 +612,7 @@ const presetEnd = (end) => earliest(end.set({
|
|
|
598
612
|
second: 0,
|
|
599
613
|
millisecond: 0
|
|
600
614
|
}));
|
|
601
|
-
const RangeCalendar = ({ calendarRef, onSelectDate, minDate, maxDate, hidePresets, visibleMonths = 2, setDateMode, setValue, granularity, ...props }) => {
|
|
615
|
+
const RangeCalendar = ({ calendarRef, onSelectDate, minDate, maxDate, hidePresets, visibleMonths = 2, setDateMode, onPresetSelect, selectedPreset, setValue, granularity, ...props }) => {
|
|
602
616
|
const { locale } = useLocale();
|
|
603
617
|
const timezoneName = Settings.defaultZone.name;
|
|
604
618
|
const rangeCalendarState = useRangeCalendarState({
|
|
@@ -628,6 +642,11 @@ const RangeCalendar = ({ calendarRef, onSelectDate, minDate, maxDate, hidePreset
|
|
|
628
642
|
} else rangeCalendarState.selectDate(date);
|
|
629
643
|
}
|
|
630
644
|
};
|
|
645
|
+
const commitRef = useRef(state.setValue);
|
|
646
|
+
useEffect(() => {
|
|
647
|
+
commitRef.current = state.setValue;
|
|
648
|
+
});
|
|
649
|
+
const commitRange = useCallback((value) => commitRef.current(value), []);
|
|
631
650
|
const ref = useRef();
|
|
632
651
|
const { calendarProps, prevButtonProps, nextButtonProps } = useRangeCalendar(props, state, ref);
|
|
633
652
|
const monthDateFormatter = useDateFormatter({
|
|
@@ -664,7 +683,10 @@ const RangeCalendar = ({ calendarRef, onSelectDate, minDate, maxDate, hidePreset
|
|
|
664
683
|
padding: Spacing[3],
|
|
665
684
|
children: /* @__PURE__ */ jsx(RangeCalendarPresets_default, {
|
|
666
685
|
state,
|
|
667
|
-
|
|
686
|
+
commitRange,
|
|
687
|
+
setDateMode,
|
|
688
|
+
onPresetSelect,
|
|
689
|
+
selectedPreset
|
|
668
690
|
})
|
|
669
691
|
}), /* @__PURE__ */ jsx(Card_default.Body, {
|
|
670
692
|
padding: Spacing[3],
|
|
@@ -717,11 +739,37 @@ const ClearRangeButton = styled(ClearButton)`
|
|
|
717
739
|
background-color: transparent;
|
|
718
740
|
}
|
|
719
741
|
`;
|
|
720
|
-
const DateRangePicker = ({ granularity = "day", hideTimeZone = true, className, calendarZIndex, portalContainer, ...props }) => {
|
|
742
|
+
const DateRangePicker = ({ granularity = "day", hideTimeZone = true, className, calendarZIndex, portalContainer, onDateFilterChange, selectedPreset, ...props }) => {
|
|
743
|
+
const writeOriginRef = useRef({ kind: "interaction" });
|
|
744
|
+
const writeWithOrigin = useCallback((origin, commit) => {
|
|
745
|
+
writeOriginRef.current = origin;
|
|
746
|
+
try {
|
|
747
|
+
commit();
|
|
748
|
+
} finally {
|
|
749
|
+
writeOriginRef.current = { kind: "interaction" };
|
|
750
|
+
}
|
|
751
|
+
}, []);
|
|
721
752
|
const state = useDateRangePickerState({
|
|
722
753
|
granularity,
|
|
723
754
|
hideTimeZone,
|
|
724
|
-
...props
|
|
755
|
+
...props,
|
|
756
|
+
onChange: (range) => {
|
|
757
|
+
props.onChange(range);
|
|
758
|
+
const origin = writeOriginRef.current;
|
|
759
|
+
if (origin.kind === "sync" || origin.kind === "clear") return;
|
|
760
|
+
if (origin.kind === "preset" && range) {
|
|
761
|
+
onDateFilterChange?.({
|
|
762
|
+
source: "preset",
|
|
763
|
+
preset: origin.preset,
|
|
764
|
+
range
|
|
765
|
+
});
|
|
766
|
+
return;
|
|
767
|
+
}
|
|
768
|
+
onDateFilterChange?.({
|
|
769
|
+
source: "calendar",
|
|
770
|
+
range
|
|
771
|
+
});
|
|
772
|
+
}
|
|
725
773
|
});
|
|
726
774
|
const ref = useRef(null);
|
|
727
775
|
const startFieldRef = useRef(null);
|
|
@@ -746,6 +794,10 @@ const DateRangePicker = ({ granularity = "day", hideTimeZone = true, className,
|
|
|
746
794
|
openCalendar();
|
|
747
795
|
focusCalendar();
|
|
748
796
|
}, [focusCalendar, openCalendar]);
|
|
797
|
+
const handlePresetSelect = useCallback((preset, commit) => writeWithOrigin({
|
|
798
|
+
kind: "preset",
|
|
799
|
+
preset
|
|
800
|
+
}, commit), [writeWithOrigin]);
|
|
749
801
|
const startInstant = props.dateRange.startDate?.isValid ? props.dateRange.startDate.toMillis() : void 0;
|
|
750
802
|
const endInstant = props.dateRange.endDate?.isValid ? props.dateRange.endDate.toMillis() : void 0;
|
|
751
803
|
useEffect(() => {
|
|
@@ -757,7 +809,7 @@ const DateRangePicker = ({ granularity = "day", hideTimeZone = true, className,
|
|
|
757
809
|
start: state.hasTime ? parseAbsolute(startDate.toISO(), Settings.defaultZone.name) : new CalendarDate(startDate.year, startDate.month, startDate.day),
|
|
758
810
|
end: state.hasTime ? parseAbsolute(endDate.toISO(), Settings.defaultZone.name) : new CalendarDate(endDate.year, endDate.month, endDate.day)
|
|
759
811
|
};
|
|
760
|
-
state.setValue(dateRangeV2);
|
|
812
|
+
writeWithOrigin({ kind: "sync" }, () => state.setValue(dateRangeV2));
|
|
761
813
|
}, [
|
|
762
814
|
startInstant,
|
|
763
815
|
endInstant,
|
|
@@ -800,8 +852,9 @@ const DateRangePicker = ({ granularity = "day", hideTimeZone = true, className,
|
|
|
800
852
|
}
|
|
801
853
|
};
|
|
802
854
|
const { pressProps: pressClearProps } = usePress({ onPress: () => {
|
|
803
|
-
state.setValue(null);
|
|
855
|
+
writeWithOrigin({ kind: "clear" }, () => state.setValue(null));
|
|
804
856
|
if (props.onClear) props.onClear();
|
|
857
|
+
onDateFilterChange?.({ source: "clear" });
|
|
805
858
|
} });
|
|
806
859
|
const handleKeyDown = useCallback((event) => {
|
|
807
860
|
if (event.key === "Enter") {
|
|
@@ -890,6 +943,8 @@ const DateRangePicker = ({ granularity = "day", hideTimeZone = true, className,
|
|
|
890
943
|
granularity,
|
|
891
944
|
hidePresets: props.hidePresets,
|
|
892
945
|
visibleMonths: props.visibleMonths,
|
|
946
|
+
onPresetSelect: handlePresetSelect,
|
|
947
|
+
selectedPreset,
|
|
893
948
|
onSelectDate: (dateVal) => {
|
|
894
949
|
/**
|
|
895
950
|
* Please use caution when editing the logic below.
|
|
@@ -937,4 +992,4 @@ const DateRangePicker = ({ granularity = "day", hideTimeZone = true, className,
|
|
|
937
992
|
//#endregion
|
|
938
993
|
export { Calendar as i, DatePicker as n, DateField as r, DateRangePicker as t };
|
|
939
994
|
|
|
940
|
-
//# sourceMappingURL=DatePicker-
|
|
995
|
+
//# sourceMappingURL=DatePicker-CLP-ajza.mjs.map
|