@persona/design-system 0.2.0 → 0.3.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 +24 -0
- package/dist/{Action-B25g4O9p.d.mts → Action-CnNf5T-l.d.mts} +2 -2
- package/dist/Action.d.mts +1 -1
- package/dist/AdvancedFilterRuleRow.d.mts +3 -3
- package/dist/AdvancedFilterRulesPopover.d.mts +3 -3
- package/dist/ArrayValueControl.d.mts +1 -1
- package/dist/Attribute.d.mts +4 -4
- package/dist/AttributeGrid.d.mts +1 -1
- package/dist/{Badge-Bd_k492g.mjs → Badge-BqS6Nk4J.mjs} +2 -2
- package/dist/{Badge-Bd_k492g.mjs.map → Badge-BqS6Nk4J.mjs.map} +1 -1
- package/dist/Banner.d.mts +1 -1
- package/dist/BooleanValueControl.d.mts +1 -1
- package/dist/{Breadcrumbs-C9udlH48.mjs → Breadcrumbs-CqKtnZqu.mjs} +11 -11
- package/dist/{Breadcrumbs-C9udlH48.mjs.map → Breadcrumbs-CqKtnZqu.mjs.map} +1 -1
- package/dist/{Button-KCl4uRtU.d.mts → Button-C0F0F2IL.d.mts} +3 -3
- package/dist/Button.d.mts +1 -1
- package/dist/ButtonGroup.d.mts +1 -1
- package/dist/Calendar-BvLNcHQM.d.mts +12 -0
- package/dist/Calendar.d.mts +2 -12
- package/dist/CalendarBase.d.mts +1 -1
- package/dist/{Card-CLTkZLKr.mjs → Card-BMCB9eFC.mjs} +4 -4
- package/dist/{Card-CLTkZLKr.mjs.map → Card-BMCB9eFC.mjs.map} +1 -1
- package/dist/{Card-8DuhHQIk.d.mts → Card-BxNoIQWw.d.mts} +4 -4
- package/dist/Card.d.mts +1 -1
- package/dist/Card2.d.mts +2 -2
- package/dist/{CardV2-_GfXFd3d.mjs → CardV2-B0ZweQYk.mjs} +25 -19
- package/dist/CardV2-B0ZweQYk.mjs.map +1 -0
- package/dist/{Checkbox-Bmm-r5ei.d.mts → Checkbox-Bm8exUfH.d.mts} +1 -1
- package/dist/{Checkbox-D77Rg7La.mjs → Checkbox-DAvbgZgO.mjs} +8 -8
- package/dist/Checkbox-DAvbgZgO.mjs.map +1 -0
- package/dist/Checkbox.d.mts +1 -1
- package/dist/CheckboxGroupField.d.mts +2 -2
- package/dist/ChoicesValueControl.d.mts +1 -1
- package/dist/{Combobox-DVI8PoKx.d.mts → Combobox-C8ue0cBP.d.mts} +3 -3
- package/dist/{Combobox-BzqlrMK0.mjs → Combobox-xBrxiUAu.mjs} +21 -21
- package/dist/Combobox-xBrxiUAu.mjs.map +1 -0
- package/dist/Combobox.d.mts +2 -2
- package/dist/{ComboboxBase-B8evOZpf.d.mts → ComboboxBase-DJGTMf1_.d.mts} +8 -8
- package/dist/ComboboxBase.d.mts +1 -1
- package/dist/{ComboboxMultiSelect-KJarhRm4.d.mts → ComboboxMultiSelect-D7A2bbWU.d.mts} +2 -2
- package/dist/ComboboxMultiSelect.d.mts +1 -1
- package/dist/{ComboboxSingleSelect-CcIGaphR.d.mts → ComboboxSingleSelect-D1uzEyKj.d.mts} +4 -4
- package/dist/ComboboxSingleSelect.d.mts +1 -1
- package/dist/{CompactBar-DfP7Wu1l.d.mts → CompactBar-DMuvqaV5.d.mts} +3 -3
- package/dist/CompactBar.d.mts +1 -1
- package/dist/{ConfigFormGroup-D1Qma23p.mjs → ConfigFormGroup-D2_sajXe.mjs} +3 -3
- package/dist/{ConfigFormGroup-D1Qma23p.mjs.map → ConfigFormGroup-D2_sajXe.mjs.map} +1 -1
- package/dist/{ControlBar-DYrjBDzu.d.mts → ControlBar-Dg8JeU8f.d.mts} +2 -2
- package/dist/ControlBar.d.mts +1 -1
- package/dist/DataTable.d.mts +4 -4
- package/dist/DateField-Com9f2-j.d.mts +23 -0
- package/dist/DateField.d.mts +2 -23
- package/dist/DatePicker-BGO6doLx.d.mts +19 -0
- package/dist/{DatePicker-CK2D9jvG.mjs → DatePicker-BlnE2MBD.mjs} +18 -17
- package/dist/{DatePicker-CK2D9jvG.mjs.map → DatePicker-BlnE2MBD.mjs.map} +1 -1
- package/dist/DatePicker.d.mts +2 -19
- package/dist/DateRangePicker-DfRBm9z4.d.mts +53 -0
- package/dist/DateRangePicker.d.mts +2 -53
- package/dist/DateRangeValueControl.d.mts +19 -0
- package/dist/DateValueControl.d.mts +1 -1
- package/dist/{DropdownButton-CaM0itat.mjs → DropdownButton-CpWNRUma.mjs} +3 -3
- package/dist/{DropdownButton-CaM0itat.mjs.map → DropdownButton-CpWNRUma.mjs.map} +1 -1
- package/dist/DropdownButton.d.mts +2 -2
- package/dist/{DropdownMenu-B4f3LNoW.mjs → DropdownMenu-BCyV8nC0.mjs} +3 -3
- package/dist/{DropdownMenu-B4f3LNoW.mjs.map → DropdownMenu-BCyV8nC0.mjs.map} +1 -1
- package/dist/{DropdownMenu-Bgho2AsJ.d.mts → DropdownMenu-CnaK78rP.d.mts} +3 -3
- package/dist/DropdownMenu.d.mts +1 -1
- package/dist/{ErrorProps-DX50vo-U.d.mts → ErrorProps-CN2XjaOX.d.mts} +1 -1
- package/dist/ErrorProps.d.mts +1 -1
- package/dist/{FieldRegistry-COyIA4VU.d.mts → FieldRegistry-DdA63Vnh.d.mts} +2 -2
- package/dist/FieldRegistry.d.mts +1 -1
- package/dist/{FilterBar-CS2YjiTr.d.mts → FilterBar-CxNsBVrn.d.mts} +5 -8
- package/dist/FilterBar.d.mts +1 -1
- package/dist/FilterPickerMenu.d.mts +3 -3
- package/dist/FilterPill.d.mts +1 -1
- package/dist/FilterPopover.d.mts +3 -13
- package/dist/FloatValueControl.d.mts +1 -1
- package/dist/FloatingPanel.d.mts +80 -0
- package/dist/FloatingPanelContext.d.mts +33 -0
- package/dist/FloatingPanelRenderer.d.mts +7 -0
- package/dist/{FormControl-iPeOOlFb.d.mts → FormControl-Doj2gvF0.d.mts} +4 -4
- package/dist/{FormControl-CFYlkv7E.mjs → FormControl-HVzZEqJH.mjs} +6 -6
- package/dist/FormControl-HVzZEqJH.mjs.map +1 -0
- package/dist/FormControl.d.mts +1 -1
- package/dist/FormControlLabel.d.mts +2 -2
- package/dist/{FormField-Bol8gzNt.mjs → FormField-B9P3BWvS.mjs} +62 -59
- package/dist/FormField-B9P3BWvS.mjs.map +1 -0
- package/dist/{FormField-BruK7Des.d.mts → FormField-D8dHbqZZ.d.mts} +2 -2
- package/dist/FormField.d.mts +1 -1
- package/dist/{Header-BxTdWg0Q.d.mts → Header-CBlB65NY.d.mts} +2 -2
- package/dist/Header.d.mts +1 -1
- package/dist/{HelperTooltip-Z5NdrLCT.d.mts → HelperTooltip-C28h1zFl.d.mts} +3 -3
- package/dist/HelperTooltip.d.mts +1 -1
- package/dist/{HoverCopyableField-C8AdtVrT.mjs → HoverCopyableField-0Bzygbp9.mjs} +7 -7
- package/dist/{HoverCopyableField-C8AdtVrT.mjs.map → HoverCopyableField-0Bzygbp9.mjs.map} +1 -1
- package/dist/HoverCopyableField.d.mts +1 -1
- package/dist/{IconButton-Bi4kdsbV.mjs → IconButton-BfDlic2K.mjs} +12 -12
- package/dist/IconButton-BfDlic2K.mjs.map +1 -0
- package/dist/{IconButton-BycIGS3p.d.mts → IconButton-CBcW7ZU8.d.mts} +2 -2
- package/dist/IconButton.d.mts +1 -1
- package/dist/ImageTile.d.mts +2 -2
- package/dist/InlineCombobox.d.mts +2 -2
- package/dist/InlineInput.d.mts +1 -1
- package/dist/{Input-CSOxMzlt.mjs → Input-Bimw8KFj.mjs} +5 -5
- package/dist/{Input-CSOxMzlt.mjs.map → Input-Bimw8KFj.mjs.map} +1 -1
- package/dist/{Input-CEcoDtTu.d.mts → Input-CVdjkX88.d.mts} +4 -4
- package/dist/Input.d.mts +1 -1
- package/dist/{InputProps-Buxtnz77.d.mts → InputProps-BwKkmImn.d.mts} +2 -2
- package/dist/InputProps.d.mts +1 -1
- package/dist/IntegerValueControl.d.mts +1 -1
- package/dist/Link.d.mts +1 -1
- package/dist/{ListBox-CajNIX9P.d.mts → ListBox-CDl5oZPX.d.mts} +5 -5
- package/dist/{ListBox-CSMVAgHm.mjs → ListBox-DKZpGYjo.mjs} +25 -18
- package/dist/ListBox-DKZpGYjo.mjs.map +1 -0
- package/dist/ListBox.d.mts +1 -1
- package/dist/ListBoxField.d.mts +6 -3
- package/dist/{LoadingShimmer-Dsc_RCCf.mjs → LoadingShimmer-DC2vqicd.mjs} +1 -1
- package/dist/{LoadingShimmer-Dsc_RCCf.mjs.map → LoadingShimmer-DC2vqicd.mjs.map} +1 -1
- package/dist/LoadingShimmer.d.mts +1 -1
- package/dist/{LogicRow-DK1NcP2a.d.mts → LogicRow-CkbyvrUw.d.mts} +4 -4
- package/dist/LogicRow.d.mts +1 -1
- package/dist/MaskedInput.d.mts +2 -2
- package/dist/MatchHighlight.d.mts +1 -1
- package/dist/{Menu-BLtjpLst.d.mts → Menu-CYRdEnfo.d.mts} +4 -4
- package/dist/{Menu-DDXR9uHy.mjs → Menu-Dir03WA9.mjs} +6 -6
- package/dist/{Menu-DDXR9uHy.mjs.map → Menu-Dir03WA9.mjs.map} +1 -1
- package/dist/Menu.d.mts +1 -1
- package/dist/{MiddleTruncatedText-DjsUk8HM.mjs → MiddleTruncatedText-GXI-CPvs.mjs} +4 -4
- package/dist/{MiddleTruncatedText-DjsUk8HM.mjs.map → MiddleTruncatedText-GXI-CPvs.mjs.map} +1 -1
- package/dist/Modal.d.mts +3 -3
- package/dist/{PageHeader-BI2gxol5.mjs → PageHeader-C2IUKhCg.mjs} +3 -3
- package/dist/{PageHeader-BI2gxol5.mjs.map → PageHeader-C2IUKhCg.mjs.map} +1 -1
- package/dist/PageHeader.d.mts +1 -1
- package/dist/PageLayout.d.mts +1 -1
- package/dist/{PageSelector-BDo3ge1E.d.mts → PageSelector-vay4jpMp.d.mts} +3 -3
- package/dist/PageSelector.d.mts +1 -1
- package/dist/{Pagination-DiaJX5Da.mjs → Pagination-0VhVdXv0.mjs} +10 -10
- package/dist/{Pagination-DiaJX5Da.mjs.map → Pagination-0VhVdXv0.mjs.map} +1 -1
- package/dist/{Pagination-Dcmv7bVe.d.mts → Pagination-ygLutOst.d.mts} +2 -2
- package/dist/Pagination.d.mts +1 -1
- package/dist/{Pii-CSBV5Is7.mjs → Pii-C7pA72Bh.mjs} +2 -2
- package/dist/{Pii-CSBV5Is7.mjs.map → Pii-C7pA72Bh.mjs.map} +1 -1
- package/dist/Pii.d.mts +1 -1
- package/dist/PillShell.d.mts +1 -1
- package/dist/{Popover-5y0p85Sw.mjs → Popover-BkDpDdaO.mjs} +6 -6
- package/dist/{Popover-5y0p85Sw.mjs.map → Popover-BkDpDdaO.mjs.map} +1 -1
- package/dist/Popover.d.mts +1 -1
- package/dist/ProgressBar.d.mts +1 -1
- package/dist/ProgressIndicator.d.mts +1 -1
- package/dist/{Radio-aMjdUp4K.mjs → Radio-BaFutxgV.mjs} +5 -5
- package/dist/Radio-BaFutxgV.mjs.map +1 -0
- package/dist/{RadioGroup-Xn46ovrV.d.mts → RadioGroup-BuJaitgG.d.mts} +1 -1
- package/dist/{RadioGroup-BpoKyoi3.mjs → RadioGroup-ClMzOZl0.mjs} +3 -3
- package/dist/{RadioGroup-BpoKyoi3.mjs.map → RadioGroup-ClMzOZl0.mjs.map} +1 -1
- package/dist/RadioGroup.d.mts +1 -1
- package/dist/RangeCalendar.d.mts +1 -1
- package/dist/RangeCalendarPresets.d.mts +1 -1
- package/dist/RuleEditorFields.d.mts +3 -3
- package/dist/RulesPill.d.mts +1 -1
- package/dist/{SearchInput-Try11aJD.d.mts → SearchInput-Ca3_np5e.d.mts} +3 -3
- package/dist/SearchInput.d.mts +1 -1
- package/dist/Section.d.mts +1 -1
- package/dist/SectionHeading.d.mts +77 -2
- package/dist/{SegmentedControl-Cgs6qlhN.mjs → SegmentedControl-DgyJL4uN.mjs} +4 -4
- package/dist/{SegmentedControl-Cgs6qlhN.mjs.map → SegmentedControl-DgyJL4uN.mjs.map} +1 -1
- package/dist/{SegmentedControl-DckAdhcD.d.mts → SegmentedControl-_I4sWeD7.d.mts} +2 -2
- package/dist/SegmentedControl.d.mts +1 -1
- package/dist/{Select-CmJEiYXU.mjs → Select-D6MqSYVa.mjs} +12 -12
- package/dist/{Select-CmJEiYXU.mjs.map → Select-D6MqSYVa.mjs.map} +1 -1
- package/dist/{Select-COT4bkPb.d.mts → Select-vwXGlHuW.d.mts} +4 -4
- package/dist/Select.d.mts +1 -1
- package/dist/Slider.d.mts +1 -1
- package/dist/SliderRHF.d.mts +1 -1
- package/dist/SliderThumb.d.mts +1 -1
- package/dist/{Spacer-Ln3KChb5.mjs → Spacer-CJp0lwkL.mjs} +1 -1
- package/dist/{Spacer-Ln3KChb5.mjs.map → Spacer-CJp0lwkL.mjs.map} +1 -1
- package/dist/{Spinner-BXfYWjC_.mjs → Spinner-BgBCCHGo.mjs} +2 -2
- package/dist/{Spinner-BXfYWjC_.mjs.map → Spinner-BgBCCHGo.mjs.map} +1 -1
- package/dist/{Stack-ckRN7LrP.mjs → Stack-Bl54WmhY.mjs} +1 -1
- package/dist/{Stack-ckRN7LrP.mjs.map → Stack-Bl54WmhY.mjs.map} +1 -1
- package/dist/{Stack-DHaK1-dw.d.mts → Stack-CkV7k7TE.d.mts} +2 -2
- package/dist/Stack.d.mts +1 -1
- package/dist/StatusIndicator.d.mts +1 -1
- package/dist/{Sticker-C8rvpu7M.d.mts → Sticker-Dhx2wqTL.d.mts} +5 -5
- package/dist/{Sticker-BOlAy2TE.mjs → Sticker-xtDMuOoN.mjs} +5 -5
- package/dist/{Sticker-BOlAy2TE.mjs.map → Sticker-xtDMuOoN.mjs.map} +1 -1
- package/dist/Sticker.d.mts +1 -1
- package/dist/StringValueControl.d.mts +1 -1
- package/dist/SwatchPicker.d.mts +1 -1
- package/dist/Tab.d.mts +3 -3
- package/dist/{TabBar-DX1Spi6D.mjs → TabBar-D6UocZXi.mjs} +6 -6
- package/dist/{TabBar-DX1Spi6D.mjs.map → TabBar-D6UocZXi.mjs.map} +1 -1
- package/dist/TabBarIconButton.d.mts +2 -2
- package/dist/{Table-BnYZVCLj.mjs → Table-D1WyUQuv.mjs} +7 -7
- package/dist/{Table-BnYZVCLj.mjs.map → Table-D1WyUQuv.mjs.map} +1 -1
- package/dist/{Table-8jXlKYLy.d.mts → Table-cO7ZwGPM.d.mts} +1 -1
- package/dist/Table.d.mts +1 -1
- package/dist/{TableBody-ByEcFueE.d.mts → TableBody-CirMgfAV.d.mts} +1 -1
- package/dist/TableBody.d.mts +1 -1
- package/dist/{TableBox-BC5l3UMT.mjs → TableBox-C5qWhr82.mjs} +17 -17
- package/dist/{TableBox-BC5l3UMT.mjs.map → TableBox-C5qWhr82.mjs.map} +1 -1
- package/dist/TableBox.d.mts +2 -2
- package/dist/{TableBoxCell-CWh_riC8.d.mts → TableBoxCell-DmVX_tgn.d.mts} +8 -8
- package/dist/TableBoxCell.d.mts +1 -1
- package/dist/TableBoxField.d.mts +4 -4
- package/dist/{TableBoxRow-JnJXVqMr.d.mts → TableBoxRow-nwq41Bpi.d.mts} +4 -4
- package/dist/TableBoxRow.d.mts +1 -1
- package/dist/{TableBoxRowActions-CfEE1r4C.d.mts → TableBoxRowActions-B4_ojiQo.d.mts} +2 -2
- package/dist/TableBoxRowActions.d.mts +1 -1
- package/dist/TableCell.d.mts +1 -1
- package/dist/{TableControls-51NYgFvI.mjs → TableControls-CZ9iu3ma.mjs} +188 -69
- package/dist/TableControls-CZ9iu3ma.mjs.map +1 -0
- package/dist/{TableControls-DscP6fyt.d.mts → TableControls-RwIPBxyU.d.mts} +4 -4
- package/dist/TableControls.d.mts +1 -1
- package/dist/{TableControlsContext-BeJ7GHPN.d.mts → TableControlsContext-D_SBFZN1.d.mts} +2 -2
- package/dist/TableControlsContext.d.mts +1 -1
- package/dist/{TableHead-g3afLl5B.d.mts → TableHead-DMq_q_W0.d.mts} +1 -1
- package/dist/TableHead.d.mts +1 -1
- package/dist/{TableHeaderCell-CWTMf2Fe.d.mts → TableHeaderCell-C2pqXBYO.d.mts} +1 -1
- package/dist/TableHeaderCell.d.mts +1 -1
- package/dist/{TableLayout-hPlVO3dD.d.mts → TableLayout-DQKu6Rcj.d.mts} +1 -1
- package/dist/TableLayout.d.mts +1 -1
- package/dist/{TableRow-lvjbVccA.d.mts → TableRow-CPqZ8DK3.d.mts} +1 -1
- package/dist/TableRow.d.mts +1 -1
- package/dist/TableTH.d.mts +1 -1
- package/dist/{TableViewConfigurationDropdown-Ccxtk5dA.d.mts → TableViewConfigurationDropdown-BYPh4dIP.d.mts} +2 -2
- package/dist/TableViewConfigurationDropdown.d.mts +1 -1
- package/dist/{TechnicalSticker-D7viw4H5.mjs → TechnicalSticker-DTjg6d2F.mjs} +6 -6
- package/dist/{TechnicalSticker-D7viw4H5.mjs.map → TechnicalSticker-DTjg6d2F.mjs.map} +1 -1
- package/dist/TechnicalSticker.d.mts +1 -1
- package/dist/{Text-CEisq2at.d.mts → Text-CfIFUyHt.d.mts} +2 -2
- package/dist/{Text-hEoPeOc9.mjs → Text-RcEfNFLx.mjs} +1 -1
- package/dist/{Text-hEoPeOc9.mjs.map → Text-RcEfNFLx.mjs.map} +1 -1
- package/dist/Text.d.mts +1 -1
- package/dist/{TextArea-DiKEhpfD.d.mts → TextArea-DhPBI_1-.d.mts} +2 -2
- package/dist/{TextArea-DjmlpCdJ.mjs → TextArea-ZMgbE_Lh.mjs} +3 -3
- package/dist/{TextArea-DjmlpCdJ.mjs.map → TextArea-ZMgbE_Lh.mjs.map} +1 -1
- package/dist/TextArea.d.mts +1 -1
- package/dist/{TextUnderlineTooltip-BKE4peKI.d.mts → TextUnderlineTooltip-BzmmiJlC.d.mts} +3 -3
- package/dist/TextUnderlineTooltip.d.mts +1 -1
- package/dist/Tile.d.mts +2 -2
- package/dist/Toast.d.mts +1 -1
- package/dist/{Toggle-oukvAn6V.d.mts → Toggle-BGGQ4Ukl.d.mts} +1 -1
- package/dist/{Toggle-D1rEjYoN.mjs → Toggle-BPgfSjuu.mjs} +6 -6
- package/dist/{Toggle-D1rEjYoN.mjs.map → Toggle-BPgfSjuu.mjs.map} +1 -1
- package/dist/Toggle.d.mts +1 -1
- package/dist/{Tooltip-B-DDlRMw.mjs → Tooltip-BvDbmXak.mjs} +4 -4
- package/dist/{Tooltip-B-DDlRMw.mjs.map → Tooltip-BvDbmXak.mjs.map} +1 -1
- package/dist/{Tooltip-DZVPqxai.d.mts → Tooltip-D_a-RwAN.d.mts} +3 -3
- package/dist/Tooltip.d.mts +1 -1
- package/dist/{TruncatedText-D2R7uy_y.d.mts → TruncatedText-BJnowVTx.d.mts} +2 -2
- package/dist/components/Attribute/index.mjs +8 -9
- package/dist/components/Attribute/index.mjs.map +1 -1
- package/dist/components/Badge/index.mjs +1 -1
- package/dist/components/Banner/index.mjs +2 -2
- package/dist/components/Breadcrumbs/index.mjs +1 -1
- package/dist/components/Button/index.d.mts +2 -2
- package/dist/components/Button/index.mjs +1 -1
- package/dist/components/ButtonGroup/index.mjs +3 -3
- package/dist/components/Card/index.d.mts +2 -2
- package/dist/components/Card/index.mjs +1 -1
- package/dist/components/CardV2/index.d.mts +3 -2
- package/dist/components/CardV2/index.mjs +2 -2
- package/dist/components/Checkbox/index.d.mts +1 -1
- package/dist/components/Checkbox/index.mjs +1 -1
- package/dist/components/Combobox/index.d.mts +2 -2
- package/dist/components/Combobox/index.mjs +1 -1
- package/dist/components/ConfigFormGroup/index.mjs +2 -2
- package/dist/components/DataTable/TableControls/index.d.mts +16 -16
- package/dist/components/DataTable/TableControls/index.mjs +2 -2
- package/dist/components/DataTable/index.mjs +30 -32
- package/dist/components/DataTable/index.mjs.map +1 -1
- package/dist/components/DataTable/types.d.mts +2 -2
- package/dist/components/DatePicker/index.d.mts +4 -4
- package/dist/components/DatePicker/index.mjs +1 -1
- package/dist/components/DropdownButton/index.mjs +1 -1
- package/dist/components/DropdownMenu/index.d.mts +1 -1
- package/dist/components/DropdownMenu/index.mjs +1 -1
- package/dist/components/FloatingPanel/index.d.mts +5 -0
- package/dist/components/FloatingPanel/index.mjs +635 -0
- package/dist/components/FloatingPanel/index.mjs.map +1 -0
- package/dist/components/FormControl/index.d.mts +2 -2
- package/dist/components/FormControl/index.mjs +2 -2
- package/dist/components/FormField/index.d.mts +1 -1
- package/dist/components/FormField/index.mjs +1 -1
- package/dist/components/HoverCopyableField/index.mjs +1 -1
- package/dist/components/ImageTile/index.mjs +9 -9
- package/dist/components/Input/index.d.mts +1 -1
- package/dist/components/Input/index.mjs +1 -1
- package/dist/components/Link/index.mjs +3 -3
- package/dist/components/ListBox/index.d.mts +3 -3
- package/dist/components/ListBox/index.mjs +1 -1
- package/dist/components/LoadingShimmer/index.mjs +1 -1
- package/dist/components/MaskedInput/index.mjs +2 -2
- package/dist/components/Menu/index.d.mts +1 -1
- package/dist/components/Menu/index.mjs +1 -1
- package/dist/components/Modal/index.mjs +20 -13
- package/dist/components/Modal/index.mjs.map +1 -1
- package/dist/components/PageHeader/index.mjs +1 -1
- package/dist/components/Pagination/index.d.mts +3 -3
- package/dist/components/Pagination/index.mjs +1 -1
- package/dist/components/Pii/index.mjs +1 -1
- package/dist/components/Popover/index.mjs +1 -1
- package/dist/components/ProgressBar/index.mjs +3 -3
- package/dist/components/ProgressBar/index.mjs.map +1 -1
- package/dist/components/ProgressIndicator/index.mjs +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/SegmentedControl/index.d.mts +1 -1
- package/dist/components/SegmentedControl/index.mjs +1 -1
- package/dist/components/Select/index.d.mts +1 -1
- package/dist/components/Select/index.mjs +1 -1
- package/dist/components/Slider/index.mjs +5 -5
- package/dist/components/Slider/index.mjs.map +1 -1
- package/dist/components/Spacer/index.mjs +1 -1
- package/dist/components/Spinner/index.mjs +1 -1
- package/dist/components/Stack/index.d.mts +1 -1
- package/dist/components/Stack/index.mjs +1 -1
- package/dist/components/StatusIndicator/index.mjs +1 -1
- package/dist/components/Sticker/index.d.mts +1 -1
- package/dist/components/Sticker/index.mjs +1 -1
- package/dist/components/TabBar/index.mjs +1 -1
- package/dist/components/Table/index.d.mts +7 -7
- package/dist/components/Table/index.mjs +1 -1
- package/dist/components/TableBox/index.d.mts +2 -2
- package/dist/components/TableBox/index.mjs +1 -1
- package/dist/components/TechnicalSticker/index.mjs +1 -1
- package/dist/components/Text/index.d.mts +1 -1
- package/dist/components/Text/index.mjs +1 -1
- package/dist/components/TextArea/index.d.mts +1 -1
- package/dist/components/TextArea/index.mjs +1 -1
- package/dist/components/Tile/index.mjs +4 -4
- package/dist/components/Toast/index.mjs +4 -4
- package/dist/components/Toggle/index.d.mts +1 -1
- package/dist/components/Toggle/index.mjs +1 -1
- package/dist/components/Tooltip/index.d.mts +3 -3
- package/dist/components/Tooltip/index.mjs +1 -1
- package/dist/compound-expression.d.mts +1 -1
- package/dist/{constants-bA9kCzRQ.d.mts → constants-BASogfT_.d.mts} +1 -1
- package/dist/constants.d.mts +1 -1
- package/dist/display.d.mts +1 -1
- package/dist/fieldPickerOptions.d.mts +2 -2
- package/dist/{filter-size-context-C1TvrE_O.d.mts → filter-size-context-Bw5F7082.d.mts} +2 -2
- package/dist/filter-size-context.d.mts +1 -1
- package/dist/helpers.d.mts +1 -1
- package/dist/{index-BC4edEsD.d.mts → index--5Mfhlkj.d.mts} +2 -2
- package/dist/{index-Doptc4HI.d.mts → index-C1bz13uw.d.mts} +5 -5
- package/dist/{index-DLV1eMsr.d.mts → index-DiCnyORA.d.mts} +5 -5
- 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 +11 -11
- package/dist/{input-D3Qd6dI8.d.mts → input-CzO-6_1V.d.mts} +2 -2
- package/dist/inputFields.d.mts +12 -26
- package/dist/{intersperse-vOYvFOfF.mjs → intersperse-yd3oMrQl.mjs} +1 -1
- package/dist/{intersperse-vOYvFOfF.mjs.map → intersperse-yd3oMrQl.mjs.map} +1 -1
- package/dist/lib/ConfigContext.d.mts +4 -1
- package/dist/lib/ConfigContext.mjs.map +1 -1
- package/dist/lib/MiddleTruncatedText.mjs +1 -1
- package/dist/lib/TruncatedText.d.mts +1 -1
- package/dist/lib/TruncatedText.mjs +1 -1
- package/dist/lib/TruncatedTextWithTooltip.d.mts +1 -1
- package/dist/lib/TruncatedTextWithTooltip.mjs +2 -2
- package/dist/lib/embeddedSurfaceProtocol.d.mts +29 -0
- package/dist/lib/embeddedSurfaceProtocol.mjs +74 -0
- package/dist/lib/embeddedSurfaceProtocol.mjs.map +1 -0
- package/dist/lib/embeddedSurfaceRegistry.d.mts +11 -0
- package/dist/lib/embeddedSurfaceRegistry.mjs +19 -0
- package/dist/lib/embeddedSurfaceRegistry.mjs.map +1 -0
- package/dist/lib/message.d.mts +1 -1
- package/dist/lib/pseudoClass.d.mts +7 -7
- package/dist/lib/useEmbeddedSurface.d.mts +6 -0
- package/dist/lib/useEmbeddedSurface.mjs +135 -0
- package/dist/lib/useEmbeddedSurface.mjs.map +1 -0
- package/dist/lib/zindex.d.mts +2 -0
- package/dist/lib/zindex.mjs +2 -0
- package/dist/lib/zindex.mjs.map +1 -1
- package/dist/{message-CsK3sIq0.d.mts → message-Cu84fcqB.d.mts} +1 -1
- package/dist/mixins/hoverable.mjs +1 -1
- package/dist/mixins/input.d.mts +1 -1
- package/dist/mixins/input.mjs +1 -1
- package/dist/{operators-C_xPzItk.d.mts → operators-CmSqHnTH.d.mts} +24 -3
- package/dist/operators.d.mts +2 -2
- package/dist/patterns/LayoutLoadingShimmer/index.mjs +5 -5
- package/dist/{types-mb3woqzE.d.mts → types-C-TkDdkG.d.mts} +6 -3
- package/dist/{types-CjHuZoVJ.d.mts → types-DEh_pXgS.d.mts} +1 -1
- package/dist/{types-BKEwt0uq.d.mts → types-NJtAxsU1.d.mts} +2 -2
- package/dist/{types-DVsBRqjZ.d.mts → types-TV9nVfSe.d.mts} +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/types2.d.mts +1 -1
- package/dist/types3.d.mts +1 -1
- package/dist/types4.d.mts +1 -1
- package/dist/useComboboxFooterAction.d.mts +1 -1
- package/dist/{useFilterStateV2-CGzRyv0i.d.mts → useFilterStateV2-C4itmN4S.d.mts} +3 -3
- package/dist/useFilterStateV2.d.mts +1 -1
- package/dist/{useFormField-DhwEi45-.d.mts → useFormField-B2U4GOH4.d.mts} +2 -2
- package/dist/{useFormField-DhYd6bNn.mjs → useFormField-eftOPiXj.mjs} +2 -2
- package/dist/{useFormField-DhYd6bNn.mjs.map → useFormField-eftOPiXj.mjs.map} +1 -1
- package/dist/useFormField.d.mts +1 -1
- package/dist/{useFormGroup-DWVW7A9f.mjs → useFormGroup-BMukAMAd.mjs} +1 -1
- package/dist/{useFormGroup-DWVW7A9f.mjs.map → useFormGroup-BMukAMAd.mjs.map} +1 -1
- package/dist/{useTableBoxDragAndDrop-CsnN52lx.d.mts → useTableBoxDragAndDrop-CpemHLhL.d.mts} +1 -1
- package/dist/useTableBoxDragAndDrop.d.mts +1 -1
- package/dist/{useToggle-3k3EkV8V.mjs → useToggle-Bo3yd14Y.mjs} +1 -1
- package/dist/{useToggle-3k3EkV8V.mjs.map → useToggle-Bo3yd14Y.mjs.map} +1 -1
- package/dist/useTruncation.d.mts +1 -1
- package/dist/utils/storybook.mjs +1 -1
- package/dist/utils/testing.d.mts +1 -1
- package/dist/utils/testing.mjs +1 -1
- package/dist/utils.d.mts +1 -1
- package/dist/utils3.d.mts +7 -0
- package/dist/{validation-BdP2vajF.d.mts → validation-B5IXsdkE.d.mts} +3 -3
- package/dist/validation.d.mts +1 -1
- package/dist/{value-control-resolver-CiGEHQAc.d.mts → value-control-resolver-BPlTeIX7.d.mts} +2 -2
- package/dist/value-control-resolver.d.mts +1 -1
- package/llms.txt +1 -1
- package/package.json +11 -2
- package/skills/ui-authoring/SKILL.md +1 -1
- package/dist/CardV2-_GfXFd3d.mjs.map +0 -1
- package/dist/Checkbox-D77Rg7La.mjs.map +0 -1
- package/dist/Combobox-BzqlrMK0.mjs.map +0 -1
- package/dist/FormControl-CFYlkv7E.mjs.map +0 -1
- package/dist/FormField-Bol8gzNt.mjs.map +0 -1
- package/dist/IconButton-Bi4kdsbV.mjs.map +0 -1
- package/dist/ListBox-CSMVAgHm.mjs.map +0 -1
- package/dist/Radio-aMjdUp4K.mjs.map +0 -1
- package/dist/SectionHeading-BxKNuU2m.d.mts +0 -71
- package/dist/TableControls-51NYgFvI.mjs.map +0 -1
- /package/dist/{index-0-W_aPej.d.mts → index-BMBcfD_R.d.mts} +0 -0
- /package/dist/{index-7in8TPrM.d.mts → index-BYd3Btr1.d.mts} +0 -0
- /package/dist/{index-B4woaFSm.d.mts → index-CNxS4Tlu.d.mts} +0 -0
- /package/dist/{index-BINnViIh.d.mts → index-CWB6exYm.d.mts} +0 -0
- /package/dist/{index-BNRXMhlr.d.mts → index-CtJuGxUp.d.mts} +0 -0
- /package/dist/{index-BO_854F2.d.mts → index-CzItj62a.d.mts} +0 -0
- /package/dist/{index-CCt0lwyI.d.mts → index-D4DUvwPf.d.mts} +0 -0
- /package/dist/{index-CREkvfw9.d.mts → index-D5tSVhTd.d.mts} +0 -0
- /package/dist/{index-Ci-uuV07.d.mts → index-DGsJdI5l.d.mts} +0 -0
- /package/dist/{index-CzUpNo0e.d.mts → index-DkrC-i1D.d.mts} +0 -0
- /package/dist/{index-DDdPqD_H.d.mts → index-DztUdPP_.d.mts} +0 -0
- /package/dist/{index-DeVKzGce.d.mts → index-IE5cwTAE2.d.mts} +0 -0
- /package/dist/{index-uMNhmxEh.d.mts → index-e6k85DKM.d.mts} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./variables/spacing.mjs";
|
|
2
2
|
import { Z_INDICES } from "./lib/zindex.mjs";
|
|
3
|
-
import { a as MenuDivider, i as Menu, o as MenuHeading, s as MenuItem } from "./Menu-
|
|
4
|
-
import { Children, forwardRef } from "react";
|
|
3
|
+
import { a as MenuDivider, i as Menu, o as MenuHeading, s as MenuItem } from "./Menu-Dir03WA9.mjs";
|
|
5
4
|
import styled from "styled-components";
|
|
6
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { Children, forwardRef } from "react";
|
|
7
7
|
import * as Primitive from "@radix-ui/react-dropdown-menu";
|
|
8
8
|
//#region components/DropdownMenu/DropdownMenu.tsx
|
|
9
9
|
const DropdownMenuContent = styled(Primitive.Content)`
|
|
@@ -57,4 +57,4 @@ var DropdownMenu_default = Object.assign(DropdownMenu, {
|
|
|
57
57
|
//#endregion
|
|
58
58
|
export { DropdownMenu_default as n, DropdownMenu as t };
|
|
59
59
|
|
|
60
|
-
//# sourceMappingURL=DropdownMenu-
|
|
60
|
+
//# sourceMappingURL=DropdownMenu-BCyV8nC0.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownMenu-
|
|
1
|
+
{"version":3,"file":"DropdownMenu-BCyV8nC0.mjs","names":[],"sources":["../components/DropdownMenu/DropdownMenu.tsx"],"sourcesContent":["import * as Primitive from '@radix-ui/react-dropdown-menu';\nimport type { Property } from 'csstype';\nimport {\n Children,\n type ComponentPropsWithoutRef,\n type ComponentPropsWithRef,\n type ElementType,\n type FC,\n forwardRef,\n type FunctionComponentElement,\n type Ref,\n} from 'react';\nimport styled from 'styled-components';\n\nimport Menu, {\n MenuDivider,\n MenuHeading,\n MenuItem,\n type MenuItemProps,\n} from 'design-system/components/Menu/Menu';\nimport { Z_INDICES } from 'design-system/lib/zindex';\nimport { BASE } from 'design-system/variables/spacing';\n\nconst DropdownMenuContent = styled(Primitive.Content)<{ $zIndex?: Property.ZIndex }>`\n z-index: ${({ $zIndex }) => $zIndex || Z_INDICES.tooltip};\n`;\n\nexport interface DropdownMenuProps\n extends Primitive.DropdownMenuProps, Pick<Primitive.DropdownMenuContentProps, 'side' | 'align'> {\n id?: string;\n className?: string;\n\n trigger: FunctionComponentElement<any>;\n\n /**\n * Props passed to internal DropdownMenu.Content component.\n */\n contentProps?: Primitive.DropdownMenuContentProps;\n\n /**\n * Props passed to internal DropdownMenu.Trigger component.\n */\n triggerProps?: Primitive.DropdownMenuTriggerProps;\n\n /**\n * Props passed to internal DropdownMenu.Portal component.\n */\n portalProps?: Primitive.DropdownMenuPortalProps;\n\n /**\n * Whether or not to wrap menu with DropdownMenu.Portal component.\n */\n portal?: boolean;\n\n /**\n * Whether or not clicks render menu items.\n */\n disabled?: boolean;\n\n zIndex?: Property.ZIndex;\n}\n\nexport const DropdownMenu = ({\n trigger,\n children,\n side,\n align = 'end',\n contentProps,\n triggerProps,\n portalProps,\n className,\n portal = false, // Default to false for old behavior\n modal = false,\n disabled = false,\n zIndex,\n ...props\n}: DropdownMenuProps) => {\n if (Children.count(children) === 0) {\n return null;\n }\n\n const content = disabled ? null : (\n <DropdownMenuContent\n sideOffset={BASE}\n collisionPadding={BASE}\n align={align}\n side={side}\n $zIndex={zIndex}\n {...contentProps}\n >\n <Menu className={className} doNotSetRole>\n {children}\n </Menu>\n </DropdownMenuContent>\n );\n\n return (\n <Primitive.Root modal={modal} {...props}>\n <Primitive.Trigger asChild {...triggerProps}>\n {trigger}\n </Primitive.Trigger>\n\n {portal ? <Primitive.Portal {...portalProps}>{content}</Primitive.Portal> : content}\n </Primitive.Root>\n );\n};\n\ninterface DropdownMenuItemProps<T extends ElementType = 'div'>\n extends MenuItemProps<T>, Omit<Primitive.DropdownMenuItemProps, 'asChild' | 'children'> {}\n\ninterface DropdownMenuItemType<T extends ElementType = 'div'> extends FC<\n DropdownMenuItemProps<T> & ComponentPropsWithRef<T>\n> {\n <T extends ElementType = 'div'>(\n props: DropdownMenuItemProps<T> & ComponentPropsWithoutRef<T>,\n ): ReturnType<FC<DropdownMenuItemProps<T> & ComponentPropsWithoutRef<T>>>;\n}\n\n/* @ts-expect-error [strict-migration] The following line is not strict; please fix! */\nconst DropdownMenuItem: DropdownMenuItemType = forwardRef(function DropdownMenuItem(\n { children, disabled, ...props },\n ref: Ref<HTMLDivElement>,\n) {\n return (\n <Primitive.Item asChild disabled={disabled} {...props}>\n <MenuItem disabled={disabled} ref={ref}>\n {children}\n </MenuItem>\n </Primitive.Item>\n );\n});\n\nexport default Object.assign(DropdownMenu, {\n Item: DropdownMenuItem,\n Heading: MenuHeading,\n Divider: MenuDivider,\n});\n"],"mappings":";;;;;;;;AAuBA,MAAM,sBAAsB,OAAO,UAAU,QAAQ;cACvC,EAAE,cAAc,WAAW,UAAU,QAAQ;;AAsC3D,MAAa,gBAAgB,EAC3B,SACA,UACA,MACA,QAAQ,OACR,cACA,cACA,aACA,WACA,SAAS,OACT,QAAQ,OACR,WAAW,OACX,QACA,GAAG,YACoB;AACvB,KAAI,SAAS,MAAM,SAAS,KAAK,EAC/B,QAAO;CAGT,MAAM,UAAU,WAAW,OACzB,oBAAC,qBAAD;EACE,YAAA;EACA,kBAAA;EACO;EACD;EACN,SAAS;EACT,GAAI;YAEJ,oBAAC,MAAD;GAAiB;GAAW,cAAA;GACzB;GACI,CAAA;EACa,CAAA;AAGxB,QACE,qBAAC,UAAU,MAAX;EAAuB;EAAO,GAAI;YAAlC,CACE,oBAAC,UAAU,SAAX;GAAmB,SAAA;GAAQ,GAAI;aAC5B;GACiB,CAAA,EAEnB,SAAS,oBAAC,UAAU,QAAX;GAAkB,GAAI;aAAc;GAA2B,CAAA,GAAG,QAC7D;;;AAgBrB,MAAM,mBAAyC,WAAW,SAAS,iBACjE,EAAE,UAAU,UAAU,GAAG,SACzB,KACA;AACA,QACE,oBAAC,UAAU,MAAX;EAAgB,SAAA;EAAkB;EAAU,GAAI;YAC9C,oBAAC,UAAD;GAAoB;GAAe;GAChC;GACQ,CAAA;EACI,CAAA;EAEnB;AAEF,IAAA,uBAAe,OAAO,OAAO,cAAc;CACzC,MAAM;CACN,SAAS;CACT,SAAS;CACV,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { l as MenuItemProps, s as MenuHeadingProps } from "./Menu-
|
|
2
|
-
import { ComponentPropsWithRef, ComponentPropsWithoutRef, ElementType, FC, FunctionComponentElement } from "react";
|
|
1
|
+
import { l as MenuItemProps, s as MenuHeadingProps } from "./Menu-CYRdEnfo.mjs";
|
|
3
2
|
import * as _$styled_components0 from "styled-components";
|
|
4
3
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
import { ComponentPropsWithRef, ComponentPropsWithoutRef, ElementType, FC, FunctionComponentElement } from "react";
|
|
5
5
|
import * as Primitive from "@radix-ui/react-dropdown-menu";
|
|
6
6
|
import { Property } from "csstype";
|
|
7
7
|
|
|
@@ -72,4 +72,4 @@ declare const _default: (({
|
|
|
72
72
|
};
|
|
73
73
|
//#endregion
|
|
74
74
|
export { DropdownMenuProps as n, _default as r, DropdownMenu as t };
|
|
75
|
-
//# sourceMappingURL=DropdownMenu-
|
|
75
|
+
//# sourceMappingURL=DropdownMenu-CnaK78rP.d.mts.map
|
package/dist/DropdownMenu.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as DropdownMenuProps, r as _default, t as DropdownMenu } from "./DropdownMenu-
|
|
1
|
+
import { n as DropdownMenuProps, r as _default, t as DropdownMenu } from "./DropdownMenu-CnaK78rP.mjs";
|
|
2
2
|
export { DropdownMenu, DropdownMenuProps, _default as default };
|
package/dist/ErrorProps.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ErrorProps } from "./ErrorProps-
|
|
1
|
+
import { t as ErrorProps } from "./ErrorProps-CN2XjaOX.mjs";
|
|
2
2
|
export { ErrorProps as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as FilterField, c as FilterOperator } from "./types-
|
|
1
|
+
import { a as FilterField, c as FilterOperator } from "./types-C-TkDdkG.mjs";
|
|
2
2
|
|
|
3
3
|
//#region components/DataTable/TableControls/FiltersV2/FieldRegistry.d.ts
|
|
4
4
|
/**
|
|
@@ -119,4 +119,4 @@ declare function buildFieldRegistry(resource: string, fieldKeyToInfo: Record<str
|
|
|
119
119
|
}): FieldRegistry;
|
|
120
120
|
//#endregion
|
|
121
121
|
export { RawFieldInfo as n, buildFieldRegistry as r, FieldRegistry as t };
|
|
122
|
-
//# sourceMappingURL=FieldRegistry-
|
|
122
|
+
//# sourceMappingURL=FieldRegistry-DdA63Vnh.d.mts.map
|
package/dist/FieldRegistry.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as RawFieldInfo, r as buildFieldRegistry, t as FieldRegistry } from "./FieldRegistry-
|
|
1
|
+
import { n as RawFieldInfo, r as buildFieldRegistry, t as FieldRegistry } from "./FieldRegistry-DdA63Vnh.mjs";
|
|
2
2
|
export { FieldRegistry, RawFieldInfo, buildFieldRegistry };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as FilterSize, f as FilterStateV2 } from "./types-
|
|
2
|
-
import { t as FieldRegistry } from "./FieldRegistry-
|
|
3
|
-
import { n as ValueControlResolver } from "./value-control-resolver-
|
|
1
|
+
import { d as FilterSize, f as FilterStateV2 } from "./types-C-TkDdkG.mjs";
|
|
2
|
+
import { t as FieldRegistry } from "./FieldRegistry-DdA63Vnh.mjs";
|
|
3
|
+
import { n as ValueControlResolver } from "./value-control-resolver-BPlTeIX7.mjs";
|
|
4
4
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region components/DataTable/TableControls/FiltersV2/FilterBar/FilterBar.d.ts
|
|
@@ -88,8 +88,6 @@ interface FilterBarProps {
|
|
|
88
88
|
* Return a nullish value to use the built-in resolver.
|
|
89
89
|
*/
|
|
90
90
|
valueControlResolver?: ValueControlResolver;
|
|
91
|
-
/** Host element used by filter editor portals. */
|
|
92
|
-
portalContainer?: HTMLElement | null;
|
|
93
91
|
}
|
|
94
92
|
declare function FilterBar({
|
|
95
93
|
registry,
|
|
@@ -98,9 +96,8 @@ declare function FilterBar({
|
|
|
98
96
|
advancedRulesEnabled,
|
|
99
97
|
singleUseFields,
|
|
100
98
|
size,
|
|
101
|
-
valueControlResolver
|
|
102
|
-
portalContainer
|
|
99
|
+
valueControlResolver
|
|
103
100
|
}: FilterBarProps): _$react_jsx_runtime0.JSX.Element;
|
|
104
101
|
//#endregion
|
|
105
102
|
export { FilterBarProps as n, FilterBar as t };
|
|
106
|
-
//# sourceMappingURL=FilterBar-
|
|
103
|
+
//# sourceMappingURL=FilterBar-CxNsBVrn.d.mts.map
|
package/dist/FilterBar.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as FilterBarProps, t as FilterBar } from "./FilterBar-
|
|
1
|
+
import { n as FilterBarProps, t as FilterBar } from "./FilterBar-CxNsBVrn.mjs";
|
|
2
2
|
export { FilterBarProps, FilterBar as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as FilterField, d as FilterSize } from "./types-
|
|
2
|
-
import { t as FieldRegistry } from "./FieldRegistry-
|
|
3
|
-
import { HTMLAttributes } from "react";
|
|
1
|
+
import { a as FilterField, d as FilterSize } from "./types-C-TkDdkG.mjs";
|
|
2
|
+
import { t as FieldRegistry } from "./FieldRegistry-DdA63Vnh.mjs";
|
|
4
3
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
import { HTMLAttributes } from "react";
|
|
5
5
|
|
|
6
6
|
//#region components/DataTable/TableControls/FiltersV2/FilterPickerMenu/FilterPickerMenu.d.ts
|
|
7
7
|
/**
|
package/dist/FilterPill.d.mts
CHANGED
package/dist/FilterPopover.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as FilterField, c as FilterOperator, d as FilterSize } from "./types-
|
|
2
|
-
import { ReactNode } from "react";
|
|
1
|
+
import { a as FilterField, c as FilterOperator, d as FilterSize } from "./types-C-TkDdkG.mjs";
|
|
3
2
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
4
|
|
|
5
5
|
//#region components/DataTable/TableControls/FiltersV2/FilterPopover/FilterPopover.d.ts
|
|
6
6
|
/**
|
|
@@ -57,15 +57,6 @@ interface FilterPopoverProps {
|
|
|
57
57
|
* passed to any DropdownMenu items.
|
|
58
58
|
*/
|
|
59
59
|
size?: FilterSize;
|
|
60
|
-
/**
|
|
61
|
-
* Element to mount the editor into instead of `document.body`. Supplying one
|
|
62
|
-
* hands the host responsibility for the editor's stacking and clipping, so
|
|
63
|
-
* viewport collision handling is dropped: the editor stays pinned below its
|
|
64
|
-
* pill and the host's own scroll box decides how much of it is visible. The
|
|
65
|
-
* container must be a containing block for fixed positioning (`contain`,
|
|
66
|
-
* `transform`, …) for that clipping to apply.
|
|
67
|
-
*/
|
|
68
|
-
portalContainer?: HTMLElement | null;
|
|
69
60
|
}
|
|
70
61
|
/**
|
|
71
62
|
* The single-rule editor popover. Renders a Radix `Popover` anchored on
|
|
@@ -89,8 +80,7 @@ declare const FilterPopover: ({
|
|
|
89
80
|
trigger,
|
|
90
81
|
open,
|
|
91
82
|
onOpenChange,
|
|
92
|
-
size
|
|
93
|
-
portalContainer
|
|
83
|
+
size
|
|
94
84
|
}: FilterPopoverProps) => _$react_jsx_runtime0.JSX.Element;
|
|
95
85
|
//#endregion
|
|
96
86
|
export { FilterPopoverProps, FilterPopover as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ValueControlProps } from "./types-
|
|
1
|
+
import { t as ValueControlProps } from "./types-NJtAxsU1.mjs";
|
|
2
2
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region components/DataTable/TableControls/FiltersV2/value-controls/FloatValueControl/FloatValueControl.d.ts
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import { ReactNode, RefObject } from "react";
|
|
3
|
+
import { Placement } from "@floating-ui/react";
|
|
4
|
+
|
|
5
|
+
//#region components/FloatingPanel/FloatingPanel.d.ts
|
|
6
|
+
declare const FLOATING_PANEL_ID_PREFIX: "floating-panel__";
|
|
7
|
+
interface FloatingPanelProps {
|
|
8
|
+
/** The title text displayed in the panel header */
|
|
9
|
+
title: ReactNode;
|
|
10
|
+
/** Callback function called when the close button is clicked */
|
|
11
|
+
onClose?: () => void;
|
|
12
|
+
/** Content to render inside the main panel area */
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
/** Optional React component rendered to the left of the expand button in the header */
|
|
15
|
+
headerActions?: ReactNode;
|
|
16
|
+
/** Whether the panel displays the fullsize button */
|
|
17
|
+
canFullsize?: boolean;
|
|
18
|
+
/** When true, the panel opens already in full-size (maximized) mode. */
|
|
19
|
+
defaultFullSize?: boolean;
|
|
20
|
+
/** Initial width of the panel in pixels */
|
|
21
|
+
initialWidth?: number;
|
|
22
|
+
/** Initial height of the panel in pixels */
|
|
23
|
+
initialHeight?: number;
|
|
24
|
+
/** Minimum width the panel can be resized to in pixels */
|
|
25
|
+
minWidth?: number;
|
|
26
|
+
/** Minimum height the panel can be resized to in pixels */
|
|
27
|
+
minHeight?: number;
|
|
28
|
+
footerButtons?: ReactNode;
|
|
29
|
+
footerAdditionalAction?: ReactNode;
|
|
30
|
+
portal?: boolean;
|
|
31
|
+
/** Reference to the element that triggered this panel, used for automatic positioning */
|
|
32
|
+
triggerRef?: RefObject<HTMLElement>;
|
|
33
|
+
/** Which placement of the trigger element to position the panel on */
|
|
34
|
+
placement?: Placement;
|
|
35
|
+
/** Additional main axis offset in pixels from the calculated position. Main axis is defined as the axis in position to where its being defined
|
|
36
|
+
* i.e. right, top, left ,bottom */
|
|
37
|
+
mainAxisOffset?: number;
|
|
38
|
+
/** Additional cross offset in pixels from the calculated position. Cross is defined as the axis that runs along the alignment
|
|
39
|
+
* of the floating element. */
|
|
40
|
+
crossAxisOffset?: number;
|
|
41
|
+
/** remove padding from the panel content */
|
|
42
|
+
noPadding?: boolean;
|
|
43
|
+
/** When true, automatically calls `onClose` if the route changes after the
|
|
44
|
+
* panel mounts. Mirrors the auto-dismiss-on-navigation behavior provided by
|
|
45
|
+
* `PanelProvider` / `usePersistentFloatingPanel` for panels that don't opt
|
|
46
|
+
* into the persistent panel context. Defaults to `false` so existing
|
|
47
|
+
* consumers (e.g. dirty-check confirmation flows) are not broken. */
|
|
48
|
+
dismissOnNavigate?: boolean;
|
|
49
|
+
/** When true, the panel's height auto-fits its content via CSS (`max-content`)
|
|
50
|
+
* up to the viewport, instead of using `initialHeight`. Once the user manually
|
|
51
|
+
* resizes, the panel switches to pixel mode and stays there. `initialHeight`
|
|
52
|
+
* is ignored while auto-fitting. */
|
|
53
|
+
fitContent?: boolean;
|
|
54
|
+
}
|
|
55
|
+
declare function FloatingPanel({
|
|
56
|
+
title,
|
|
57
|
+
children,
|
|
58
|
+
portal,
|
|
59
|
+
triggerRef,
|
|
60
|
+
initialWidth,
|
|
61
|
+
initialHeight,
|
|
62
|
+
minWidth,
|
|
63
|
+
minHeight,
|
|
64
|
+
mainAxisOffset,
|
|
65
|
+
crossAxisOffset,
|
|
66
|
+
footerButtons,
|
|
67
|
+
footerAdditionalAction,
|
|
68
|
+
placement,
|
|
69
|
+
canFullsize,
|
|
70
|
+
defaultFullSize,
|
|
71
|
+
noPadding,
|
|
72
|
+
headerActions,
|
|
73
|
+
dismissOnNavigate,
|
|
74
|
+
fitContent,
|
|
75
|
+
onClose,
|
|
76
|
+
...restProps
|
|
77
|
+
}: FloatingPanelProps): _$react_jsx_runtime0.JSX.Element;
|
|
78
|
+
//#endregion
|
|
79
|
+
export { FLOATING_PANEL_ID_PREFIX, FloatingPanelProps, FloatingPanel as default };
|
|
80
|
+
//# sourceMappingURL=FloatingPanel.d.mts.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import { ReactElement, ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
//#region components/FloatingPanel/FloatingPanelContext.d.ts
|
|
5
|
+
type Panel = {
|
|
6
|
+
key: string;
|
|
7
|
+
panelElement: ReactElement;
|
|
8
|
+
persistUntilPathRoot?: string;
|
|
9
|
+
};
|
|
10
|
+
interface PanelContextType {
|
|
11
|
+
openPanel: (panel: Panel) => void;
|
|
12
|
+
closePanel: (key: string) => void;
|
|
13
|
+
togglePanel: (panel: Panel) => void;
|
|
14
|
+
closeAllPanels: () => void;
|
|
15
|
+
isPanelOpen: (key: string) => boolean;
|
|
16
|
+
panels: Panel[];
|
|
17
|
+
}
|
|
18
|
+
declare const PanelProvider: ({
|
|
19
|
+
children
|
|
20
|
+
}: {
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
}) => _$react_jsx_runtime0.JSX.Element;
|
|
23
|
+
declare const usePersistentFloatingPanels: () => PanelContextType;
|
|
24
|
+
declare const usePersistentFloatingPanel: (panelId?: string) => {
|
|
25
|
+
id: string;
|
|
26
|
+
openPanel: (panel: Panel) => void;
|
|
27
|
+
closePanel: () => void;
|
|
28
|
+
togglePanel: (panel: Panel) => void;
|
|
29
|
+
isPanelOpen: boolean;
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
32
|
+
export { Panel, PanelProvider, usePersistentFloatingPanel, usePersistentFloatingPanels };
|
|
33
|
+
//# sourceMappingURL=FloatingPanelContext.d.mts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as _$react from "react";
|
|
2
|
+
|
|
3
|
+
//#region components/FloatingPanel/FloatingPanelRenderer.d.ts
|
|
4
|
+
declare function FloatingPanelRenderer(): _$react.ReactPortal | null;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { FloatingPanelRenderer as default };
|
|
7
|
+
//# sourceMappingURL=FloatingPanelRenderer.d.mts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as ErrorProps } from "./ErrorProps-
|
|
2
|
-
import * as _$react from "react";
|
|
3
|
-
import { ComponentPropsWithoutRef, ReactNode } from "react";
|
|
1
|
+
import { t as ErrorProps } from "./ErrorProps-CN2XjaOX.mjs";
|
|
4
2
|
import * as _$styled_components0 from "styled-components";
|
|
5
3
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
import * as _$react from "react";
|
|
5
|
+
import { ComponentPropsWithoutRef, ReactNode } from "react";
|
|
6
6
|
import { Root } from "@radix-ui/react-label";
|
|
7
7
|
|
|
8
8
|
//#region components/FormControl/FormControl.d.ts
|
|
@@ -57,4 +57,4 @@ interface FormControlProps extends ComponentPropsWithoutRef<'div'>, FormControlB
|
|
|
57
57
|
declare const FormControl: _$react.ForwardRefExoticComponent<FormControlProps & _$react.RefAttributes<HTMLDivElement>>;
|
|
58
58
|
//#endregion
|
|
59
59
|
export { FormControlProps as a, FormLabelProps as c, FormControlBaseProps as i, HelperText as l, ErrorText as n, FormInputContainer as o, FormControl as r, FormLabel as s, Container as t, WarningText as u };
|
|
60
|
-
//# sourceMappingURL=FormControl-
|
|
60
|
+
//# sourceMappingURL=FormControl-Doj2gvF0.d.mts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as Tooltip, n as TextWithDashedUnderline } from "./Tooltip-
|
|
2
|
-
import { n as useFormGroup } from "./useFormGroup-
|
|
3
|
-
import { n as useFormField, t as FormControlContext } from "./useFormField-
|
|
1
|
+
import { a as Tooltip, n as TextWithDashedUnderline } from "./Tooltip-BvDbmXak.mjs";
|
|
2
|
+
import { n as useFormGroup } from "./useFormGroup-BMukAMAd.mjs";
|
|
3
|
+
import { n as useFormField, t as FormControlContext } from "./useFormField-eftOPiXj.mjs";
|
|
4
4
|
import { Color, Spacing, Typography } from "@persona/design-tokens";
|
|
5
|
-
import { Children, forwardRef, isValidElement, useMemo } from "react";
|
|
6
5
|
import styled, { css } from "styled-components";
|
|
7
6
|
import { jsx } from "react/jsx-runtime";
|
|
8
|
-
import
|
|
7
|
+
import { Children, forwardRef, isValidElement, useMemo } from "react";
|
|
8
|
+
import { uniqueId } from "lodash-es";
|
|
9
9
|
import { Root } from "@radix-ui/react-label";
|
|
10
10
|
//#region components/FormControl/FormControl.tsx
|
|
11
11
|
const LabelBase = styled(Root)`
|
|
@@ -165,4 +165,4 @@ const FormControl = forwardRef(function FormControl({ children, hasError, hasWar
|
|
|
165
165
|
//#endregion
|
|
166
166
|
export { FormLabel as a, FormInputContainer as i, ErrorText as n, HelperText as o, FormControl as r, WarningText as s, Container as t };
|
|
167
167
|
|
|
168
|
-
//# sourceMappingURL=FormControl-
|
|
168
|
+
//# sourceMappingURL=FormControl-HVzZEqJH.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormControl-HVzZEqJH.mjs","names":[],"sources":["../components/FormControl/FormControl.tsx"],"sourcesContent":["import { Root } from '@radix-ui/react-label';\nimport { uniqueId } from 'lodash-es';\nimport {\n Children,\n type ComponentPropsWithoutRef,\n forwardRef,\n isValidElement,\n type ReactNode,\n useMemo,\n} from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { Color, Spacing, Typography } from '@persona/design-tokens';\nimport useFormGroup from 'design-system/components/ConfigFormGroup/useFormGroup';\nimport useFormField, {\n FormControlContext,\n type FormControlContextProps,\n} from 'design-system/components/FormControl/useFormField';\nimport Tooltip, { TextWithDashedUnderline } from 'design-system/components/Tooltip';\nimport type ErrorProps from 'design-system/types/ErrorProps';\n\ntype LabelSizes = 'md' | 'sm';\n\ninterface StyledLabelProps {\n $size?: LabelSizes;\n}\n\nconst LabelBase = styled(Root)<StyledLabelProps>`\n ${({ $size }) => {\n switch ($size) {\n default:\n case 'md':\n return css`\n ${Typography.TextMedium};\n `;\n case 'sm':\n return css`\n ${Typography.TextSmall};\n `;\n }\n }}\n\n color: ${({ theme }) => theme.color.text.primary};\n`;\n\nexport interface FormLabelProps extends ComponentPropsWithoutRef<typeof Root> {\n tooltip?: ReactNode;\n size?: LabelSizes;\n side?: 'top' | 'right' | 'bottom' | 'left';\n labelTooltipZIndex?: number;\n}\n\nexport const FormLabel = ({\n tooltip,\n side,\n size,\n children,\n labelTooltipZIndex,\n ...props\n}: FormLabelProps) => {\n const field = useFormField({ labelId: props.id });\n const formGroup = useFormGroup();\n const labelProps = {\n id: field.labelId,\n htmlFor: field.inputId,\n ...props,\n };\n\n // Use labelTooltipZIndex from props, then from form group context\n const effectivelabelTooltipZIndex = labelTooltipZIndex ?? formGroup.labelTooltipZIndex;\n\n if (tooltip) {\n return (\n <Tooltip\n size={size}\n trigger={\n <LabelBase {...labelProps} $size={size}>\n <TextWithDashedUnderline>{children}</TextWithDashedUnderline>\n </LabelBase>\n }\n side={side}\n {...(effectivelabelTooltipZIndex != null && { zIndex: effectivelabelTooltipZIndex })}\n >\n {tooltip}\n </Tooltip>\n );\n }\n\n return (\n <LabelBase {...labelProps} $size={size}>\n {children}\n </LabelBase>\n );\n};\n\n/**\n * Used to target an input field within a FormControl.\n */\nexport const FormInputContainer = styled.div``;\n\nconst HelperTextBase = styled.div<ErrorProps>`\n ${Typography.TextSmall};\n line-height: 1;\n color: ${({ theme, hasWarning, hasError }) =>\n hasError\n ? theme.color.variants.danger.default\n : hasWarning\n ? Color.CoreOrange900\n : theme.color.text.secondary};\n`;\n\ninterface HelperTextProps extends ComponentPropsWithoutRef<'div'>, ErrorProps {}\n\nexport const HelperText = forwardRef<HTMLDivElement, HelperTextProps>(\n function HelperText(props, ref) {\n const field = useFormField({ helperTextId: props.id });\n return (\n <HelperTextBase\n hasError={field.hasError}\n hasWarning={field.hasWarning}\n id={field.helperTextId}\n ref={ref}\n {...props}\n />\n );\n },\n);\n\nexport const ErrorText = forwardRef<HTMLDivElement, React.ComponentPropsWithoutRef<'div'>>(\n function ErrorText(props, ref) {\n const field = useFormField({ errorTextId: props.id });\n return <HelperTextBase hasError id={field.errorTextId} ref={ref} {...props} />;\n },\n);\n\nexport const WarningText = forwardRef<HTMLDivElement, React.ComponentPropsWithoutRef<'div'>>(\n function WarningText(props, ref) {\n const field = useFormField({ warningTextId: props.id });\n return <HelperTextBase hasWarning id={field.warningTextId} ref={ref} {...props} />;\n },\n);\n\nexport const Container = styled.div<{\n $configField?: boolean;\n $hasRightActions?: boolean;\n $configFieldInputWidth?: string;\n}>`\n display: flex;\n ${({ $configField, $hasRightActions, $configFieldInputWidth }) =>\n $configField\n ? $hasRightActions\n ? css`\n flex-direction: column;\n `\n : css`\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n gap: ${Spacing[4]};\n min-width: 288px;\n\n > ${FormInputContainer} {\n display: flex;\n flex-direction: row-reverse;\n width: ${$configFieldInputWidth ?? '50%'};\n min-width: 180px;\n }\n\n &:has(textarea) {\n flex-direction: column;\n align-items: flex-start;\n gap: ${Spacing[1]};\n\n > ${FormInputContainer} {\n width: 100%;\n }\n }\n `\n : css`\n flex-direction: column;\n margin-bottom: ${Spacing[3]};\n `}\n\n > *:not(:first-child) {\n margin-top: ${({ $configField, $hasRightActions }) =>\n $hasRightActions ? Spacing[1] : $configField ? Spacing[0] : Spacing[2]};\n }\n\n > ${HelperTextBase} {\n margin-top: ${Spacing[1]};\n }\n`;\n\nexport interface FormControlBaseProps extends ErrorProps {\n inputId?: string;\n disabled?: boolean;\n /**\n * Whether to render the form field as a config field.\n * This will remove the label and helper text.\n */\n configField?: boolean;\n /**\n * Whether the form field has right actions.\n */\n hasRightActions?: boolean;\n /**\n * Override the width of the form input container when `configField` is true.\n * Accepts any valid CSS width value (e.g. `'33%'`, `'66.67%'`).\n * Defaults to `'50%'`.\n */\n configFieldInputWidth?: string;\n}\n\nexport interface FormControlProps extends ComponentPropsWithoutRef<'div'>, FormControlBaseProps {}\n\nexport const FormControl = forwardRef<HTMLDivElement, FormControlProps>(function FormControl(\n {\n children,\n hasError,\n hasWarning,\n inputId,\n disabled,\n configField,\n hasRightActions,\n configFieldInputWidth,\n ...props\n }: FormControlProps,\n ref,\n) {\n const generatedId = useMemo(() => uniqueId('pds_form_control__'), []);\n\n const initFormField: FormControlContextProps = {\n hasError,\n hasWarning,\n disabled,\n inputId: inputId ?? generatedId,\n configField,\n };\n\n Children.map(children, (child: ReactNode) => {\n if (isValidElement(child)) {\n switch (child.type) {\n case FormLabel: {\n initFormField.labelId = child.props.id ?? `${initFormField.inputId}-label`;\n break;\n }\n case HelperText: {\n initFormField.helperTextId = child.props.id ?? `${initFormField.inputId}-help-text`;\n break;\n }\n case ErrorText: {\n initFormField.errorTextId = child.props.id ?? `${initFormField.inputId}-error-text`;\n break;\n }\n case WarningText: {\n initFormField.warningTextId = child.props.id ?? `${initFormField.inputId}-warning-text`;\n break;\n }\n }\n }\n });\n\n const field = useFormField(initFormField);\n\n return (\n <FormControlContext.Provider value={field}>\n <Container\n ref={ref}\n $configField={field.configField}\n $hasRightActions={hasRightActions}\n $configFieldInputWidth={configFieldInputWidth}\n {...props}\n >\n {children}\n </Container>\n </FormControlContext.Provider>\n );\n});\n\nexport default FormControl;\n"],"mappings":";;;;;;;;;;AA2BA,MAAM,YAAY,OAAO,KAAK;KACzB,EAAE,YAAY;AACf,SAAQ,OAAR;EACE;EACA,KAAK,KACH,QAAO,GAAG;YACN,WAAW,WAAW;;EAE5B,KAAK,KACH,QAAO,GAAG;YACN,WAAW,UAAU;;;EAG7B;;YAEQ,EAAE,YAAY,MAAM,MAAM,KAAK,QAAQ;;AAUnD,MAAa,aAAa,EACxB,SACA,MACA,MACA,UACA,oBACA,GAAG,YACiB;CACpB,MAAM,QAAQ,aAAa,EAAE,SAAS,MAAM,IAAI,CAAC;CACjD,MAAM,YAAY,cAAc;CAChC,MAAM,aAAa;EACjB,IAAI,MAAM;EACV,SAAS,MAAM;EACf,GAAG;EACJ;CAGD,MAAM,8BAA8B,sBAAsB,UAAU;AAEpE,KAAI,QACF,QACE,oBAAC,SAAD;EACQ;EACN,SACE,oBAAC,WAAD;GAAW,GAAI;GAAY,OAAO;aAChC,oBAAC,yBAAD,EAA0B,UAAmC,CAAA;GACnD,CAAA;EAER;EACN,GAAK,+BAA+B,QAAQ,EAAE,QAAQ,6BAA6B;YAElF;EACO,CAAA;AAId,QACE,oBAAC,WAAD;EAAW,GAAI;EAAY,OAAO;EAC/B;EACS,CAAA;;;;;AAOhB,MAAa,qBAAqB,OAAO,GAAG;AAE5C,MAAM,iBAAiB,OAAO,GAAe;IACzC,WAAW,UAAU;;YAEb,EAAE,OAAO,YAAY,eAC7B,WACI,MAAM,MAAM,SAAS,OAAO,UAC5B,aACE,MAAM,gBACN,MAAM,MAAM,KAAK,UAAU;;AAKrC,MAAa,aAAa,WACxB,SAAS,WAAW,OAAO,KAAK;CAC9B,MAAM,QAAQ,aAAa,EAAE,cAAc,MAAM,IAAI,CAAC;AACtD,QACE,oBAAC,gBAAD;EACE,UAAU,MAAM;EAChB,YAAY,MAAM;EAClB,IAAI,MAAM;EACL;EACL,GAAI;EACJ,CAAA;EAGP;AAED,MAAa,YAAY,WACvB,SAAS,UAAU,OAAO,KAAK;AAE7B,QAAO,oBAAC,gBAAD;EAAgB,UAAA;EAAS,IADlB,aAAa,EAAE,aAAa,MAAM,IAAI,CACX,CAAC;EAAkB;EAAK,GAAI;EAAS,CAAA;EAEjF;AAED,MAAa,cAAc,WACzB,SAAS,YAAY,OAAO,KAAK;AAE/B,QAAO,oBAAC,gBAAD;EAAgB,YAAA;EAAW,IADpB,aAAa,EAAE,eAAe,MAAM,IAAI,CACX,CAAC;EAAoB;EAAK,GAAI;EAAS,CAAA;EAErF;AAED,MAAa,YAAY,OAAO,GAI9B;;KAEG,EAAE,cAAc,kBAAkB,6BACnC,eACI,mBACE,GAAG;;cAGH,GAAG;;;;mBAIM,QAAQ,GAAG;;;gBAGd,mBAAmB;;;uBAGZ,0BAA0B,MAAM;;;;;;;qBAOlC,QAAQ,GAAG;;kBAEd,mBAAmB;;;;cAK7B,GAAG;;2BAEgB,QAAQ,GAAG;UAC5B;;;mBAGS,EAAE,cAAc,uBAC7B,mBAAmB,QAAQ,KAAK,eAAe,QAAQ,KAAK,QAAQ,GAAG;;;MAGvE,eAAe;kBACH,QAAQ,GAAG;;;AA0B7B,MAAa,cAAc,WAA6C,SAAS,YAC/E,EACE,UACA,UACA,YACA,SACA,UACA,aACA,iBACA,uBACA,GAAG,SAEL,KACA;CACA,MAAM,cAAc,cAAc,SAAS,qBAAqB,EAAE,EAAE,CAAC;CAErE,MAAM,gBAAyC;EAC7C;EACA;EACA;EACA,SAAS,WAAW;EACpB;EACD;AAED,UAAS,IAAI,WAAW,UAAqB;AAC3C,MAAI,eAAe,MAAM,CACvB,SAAQ,MAAM,MAAd;GACE,KAAK;AACH,kBAAc,UAAU,MAAM,MAAM,MAAM,GAAG,cAAc,QAAQ;AACnE;GAEF,KAAK;AACH,kBAAc,eAAe,MAAM,MAAM,MAAM,GAAG,cAAc,QAAQ;AACxE;GAEF,KAAK;AACH,kBAAc,cAAc,MAAM,MAAM,MAAM,GAAG,cAAc,QAAQ;AACvE;GAEF,KAAK;AACH,kBAAc,gBAAgB,MAAM,MAAM,MAAM,GAAG,cAAc,QAAQ;AACzE;;GAIN;CAEF,MAAM,QAAQ,aAAa,cAAc;AAEzC,QACE,oBAAC,mBAAmB,UAApB;EAA6B,OAAO;YAClC,oBAAC,WAAD;GACO;GACL,cAAc,MAAM;GACpB,kBAAkB;GAClB,wBAAwB;GACxB,GAAI;GAEH;GACS,CAAA;EACgB,CAAA;EAEhC"}
|
package/dist/FormControl.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as FormControlProps, c as FormLabelProps, i as FormControlBaseProps, l as HelperText, n as ErrorText, o as FormInputContainer, r as FormControl, s as FormLabel, t as Container, u as WarningText } from "./FormControl-
|
|
1
|
+
import { a as FormControlProps, c as FormLabelProps, i as FormControlBaseProps, l as HelperText, n as ErrorText, o as FormInputContainer, r as FormControl, s as FormLabel, t as Container, u as WarningText } from "./FormControl-Doj2gvF0.mjs";
|
|
2
2
|
export { Container, ErrorText, FormControl, FormControl as default, FormControlBaseProps, FormControlProps, FormInputContainer, FormLabel, FormLabelProps, HelperText, WarningText };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as ParagraphProps, o as LabelProps, u as SpanProps } from "./Text-
|
|
2
|
-
import * as _$react from "react";
|
|
1
|
+
import { c as ParagraphProps, o as LabelProps, u as SpanProps } from "./Text-CfIFUyHt.mjs";
|
|
3
2
|
import * as _$styled_components0 from "styled-components";
|
|
3
|
+
import * as _$react from "react";
|
|
4
4
|
|
|
5
5
|
//#region components/DataTable/FormControlLabel/FormControlLabel.d.ts
|
|
6
6
|
declare const FormControlLabel: _$styled_components0.StyledComponent<_$react.FC<_$react.PropsWithChildren<SpanProps>>, any, ParagraphProps & LabelProps & {
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { t as HStack } from "./Stack-
|
|
2
|
-
import { t as IconButton } from "./IconButton-
|
|
3
|
-
import { n as
|
|
4
|
-
import {
|
|
5
|
-
import { t as FormControlContext } from "./useFormField-DhYd6bNn.mjs";
|
|
1
|
+
import { t as HStack } from "./Stack-Bl54WmhY.mjs";
|
|
2
|
+
import { t as IconButton } from "./IconButton-BfDlic2K.mjs";
|
|
3
|
+
import { n as useFormGroup } from "./useFormGroup-BMukAMAd.mjs";
|
|
4
|
+
import { t as FormControlContext } from "./useFormField-eftOPiXj.mjs";
|
|
6
5
|
import Input_default from "./components/Input/index.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
6
|
+
import { n as DropdownMenu_default } from "./DropdownMenu-BCyV8nC0.mjs";
|
|
7
|
+
import { t as Checkbox } from "./Checkbox-DAvbgZgO.mjs";
|
|
8
|
+
import { t as Combobox } from "./Combobox-xBrxiUAu.mjs";
|
|
9
|
+
import { n as Select } from "./Select-D6MqSYVa.mjs";
|
|
10
|
+
import { t as Toggle } from "./Toggle-BPgfSjuu.mjs";
|
|
11
|
+
import { a as FormLabel, i as FormInputContainer, n as ErrorText, o as HelperText, r as FormControl, s as WarningText } from "./FormControl-HVzZEqJH.mjs";
|
|
12
|
+
import { t as ListBox } from "./ListBox-DKZpGYjo.mjs";
|
|
13
|
+
import { t as RadioGroup } from "./RadioGroup-ClMzOZl0.mjs";
|
|
14
|
+
import { t as SegmentedControl } from "./SegmentedControl-DgyJL4uN.mjs";
|
|
15
|
+
import { t as TextAreaWithStyle } from "./TextArea-ZMgbE_Lh.mjs";
|
|
16
|
+
import { t as TableBox } from "./TableBox-C5qWhr82.mjs";
|
|
17
17
|
import { Spacing } from "@persona/design-tokens";
|
|
18
|
-
import {
|
|
19
|
-
import { Fragment as Fragment$1,
|
|
18
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
+
import { Children, Fragment as Fragment$1, cloneElement, createContext, forwardRef, useContext, useMemo, useRef, useState } from "react";
|
|
20
20
|
import { MoreIcon, PlusIcon } from "@persona/icons";
|
|
21
|
-
import { uniqueId } from "lodash
|
|
21
|
+
import { uniqueId } from "lodash-es";
|
|
22
22
|
import { mergeProps, useCheckboxGroup, useCheckboxGroupItem } from "react-aria";
|
|
23
23
|
import { useCheckboxGroupState } from "react-stately";
|
|
24
24
|
import innerText from "react-innertext";
|
|
@@ -120,36 +120,35 @@ const TextField = forwardRef(function TextField(props, ref) {
|
|
|
120
120
|
})
|
|
121
121
|
});
|
|
122
122
|
});
|
|
123
|
-
const TextAreaField = forwardRef(function TextAreaField(
|
|
123
|
+
const TextAreaField = forwardRef(function TextAreaField(props, ref) {
|
|
124
|
+
const { formFieldProps, inputProps } = splitOutFormFieldProps(props);
|
|
125
|
+
const { id, ...rest } = inputProps;
|
|
124
126
|
return /* @__PURE__ */ jsx(FormField, {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
configField,
|
|
127
|
+
...formFieldProps,
|
|
128
|
+
labelProps: {
|
|
129
|
+
size: props.size,
|
|
130
|
+
...formFieldProps.labelProps
|
|
131
|
+
},
|
|
132
|
+
inputId: formFieldProps.inputId ?? id,
|
|
132
133
|
children: /* @__PURE__ */ jsx(TextAreaWithStyle, {
|
|
133
|
-
...
|
|
134
|
+
...rest,
|
|
134
135
|
ref
|
|
135
136
|
})
|
|
136
137
|
});
|
|
137
138
|
});
|
|
138
|
-
const SelectField = ({ id,
|
|
139
|
-
const
|
|
139
|
+
const SelectField = ({ id, children, ...props }) => {
|
|
140
|
+
const { formFieldProps, inputProps } = splitOutFormFieldProps(props);
|
|
141
|
+
const linkedId = useMemo(() => formFieldProps.inputId ?? id ?? uniqueId("pds-form-field-input-fields-select__"), [formFieldProps.inputId, id]);
|
|
140
142
|
return /* @__PURE__ */ jsx(FormField, {
|
|
141
|
-
|
|
143
|
+
...formFieldProps,
|
|
144
|
+
inputId: linkedId,
|
|
142
145
|
labelProps: {
|
|
143
146
|
htmlFor: linkedId,
|
|
144
|
-
size:
|
|
145
|
-
...labelProps
|
|
147
|
+
size: inputProps.size,
|
|
148
|
+
...formFieldProps.labelProps
|
|
146
149
|
},
|
|
147
|
-
helperText,
|
|
148
|
-
warningText,
|
|
149
|
-
errorText,
|
|
150
|
-
configField,
|
|
151
150
|
children: /* @__PURE__ */ jsx(Select, {
|
|
152
|
-
...
|
|
151
|
+
...inputProps,
|
|
153
152
|
id: linkedId,
|
|
154
153
|
children
|
|
155
154
|
})
|
|
@@ -181,16 +180,16 @@ const CheckboxField = ({ label, helperText, errorText, warningText, checkboxLabe
|
|
|
181
180
|
})
|
|
182
181
|
});
|
|
183
182
|
};
|
|
184
|
-
const ToggleField = forwardRef(function ToggleField(
|
|
183
|
+
const ToggleField = forwardRef(function ToggleField(props, ref) {
|
|
184
|
+
const { formFieldProps, inputProps } = splitOutFormFieldProps(props);
|
|
185
185
|
return /* @__PURE__ */ jsx(FormField, {
|
|
186
|
-
|
|
187
|
-
labelProps: {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
configField,
|
|
186
|
+
...formFieldProps,
|
|
187
|
+
labelProps: {
|
|
188
|
+
size: inputProps.size,
|
|
189
|
+
...formFieldProps.labelProps
|
|
190
|
+
},
|
|
192
191
|
children: /* @__PURE__ */ jsx(Toggle, {
|
|
193
|
-
...
|
|
192
|
+
...inputProps,
|
|
194
193
|
ref
|
|
195
194
|
})
|
|
196
195
|
});
|
|
@@ -211,15 +210,18 @@ const SegmentedControlField = forwardRef(function SegmentedControlField({ label,
|
|
|
211
210
|
})
|
|
212
211
|
});
|
|
213
212
|
});
|
|
214
|
-
const ComboboxField = (
|
|
213
|
+
const ComboboxField = (props) => {
|
|
214
|
+
if (props.multiple) {
|
|
215
|
+
const { formFieldProps, inputProps } = splitOutFormFieldProps(props);
|
|
216
|
+
return /* @__PURE__ */ jsx(FormField, {
|
|
217
|
+
...formFieldProps,
|
|
218
|
+
children: /* @__PURE__ */ jsx(Combobox, { ...inputProps })
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
const { formFieldProps, inputProps } = splitOutFormFieldProps(props);
|
|
215
222
|
return /* @__PURE__ */ jsx(FormField, {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
helperText,
|
|
219
|
-
warningText,
|
|
220
|
-
errorText,
|
|
221
|
-
configField,
|
|
222
|
-
children: /* @__PURE__ */ jsx(Combobox, { ...props })
|
|
223
|
+
...formFieldProps,
|
|
224
|
+
children: /* @__PURE__ */ jsx(Combobox, { ...inputProps })
|
|
223
225
|
});
|
|
224
226
|
};
|
|
225
227
|
//#endregion
|
|
@@ -287,7 +289,7 @@ const CheckboxGroupField = ({ children, name, onChange, disabled, readOnly, requ
|
|
|
287
289
|
};
|
|
288
290
|
//#endregion
|
|
289
291
|
//#region components/FormField/ListBoxField.tsx
|
|
290
|
-
const ListBoxField = ({ label, helperText, errorText, warningText, labelProps, helperProps, errorProps, warningProps, inputId, onAdd, onDelete, deleteDisabled, configField: configFieldProp, size = "md", actions = [], addDropdownConfig, selectedKeys: selectedKeysProp, onSelectionChange, defaultSelectedKeys, ...props }) => {
|
|
292
|
+
const ListBoxField = ({ label, helperText, errorText, warningText, labelProps, helperProps, errorProps, warningProps, inputId, onAdd, onDelete, deleteDisabled, configField: configFieldProp, size = "md", actions = [], addDropdownConfig, addDisabled, selectedKeys: selectedKeysProp, onSelectionChange, defaultSelectedKeys, ...props }) => {
|
|
291
293
|
const { configField } = useFormGroup({ configField: configFieldProp });
|
|
292
294
|
const menuActions = [...actions];
|
|
293
295
|
const [selectedKeysState, setSelectedKeys] = useState(defaultSelectedKeys);
|
|
@@ -302,6 +304,7 @@ const ListBoxField = ({ label, helperText, errorText, warningText, labelProps, h
|
|
|
302
304
|
size: "sm",
|
|
303
305
|
onClick: onAdd,
|
|
304
306
|
"aria-label": "Add item to list",
|
|
307
|
+
disabled: addDisabled,
|
|
305
308
|
children: /* @__PURE__ */ jsx(PlusIcon, {})
|
|
306
309
|
});
|
|
307
310
|
return /* @__PURE__ */ jsx(FormField, {
|
|
@@ -315,7 +318,7 @@ const ListBoxField = ({ label, helperText, errorText, warningText, labelProps, h
|
|
|
315
318
|
warningProps,
|
|
316
319
|
inputId,
|
|
317
320
|
configField,
|
|
318
|
-
rightActions: configField && /* @__PURE__ */ jsxs(Fragment
|
|
321
|
+
rightActions: configField && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
319
322
|
menuActions.length > 0 && /* @__PURE__ */ jsx(DropdownMenu_default, {
|
|
320
323
|
trigger: /* @__PURE__ */ jsx(IconButton, {
|
|
321
324
|
"aria-label": "Actions",
|
|
@@ -403,7 +406,7 @@ const TableBoxField = ({ label, helperText, errorText, warningText, labelProps:
|
|
|
403
406
|
errorProps,
|
|
404
407
|
warningProps,
|
|
405
408
|
inputId,
|
|
406
|
-
rightActions: configField && /* @__PURE__ */ jsxs(Fragment
|
|
409
|
+
rightActions: configField && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
407
410
|
visibleMenuActions.length > 0 && /* @__PURE__ */ jsx(DropdownMenu_default, {
|
|
408
411
|
trigger: /* @__PURE__ */ jsx(IconButton, {
|
|
409
412
|
"aria-label": "Actions",
|
|
@@ -414,7 +417,7 @@ const TableBoxField = ({ label, helperText, errorText, warningText, labelProps:
|
|
|
414
417
|
portal: true,
|
|
415
418
|
children: visibleMenuActions.map((entry, entryIndex) => {
|
|
416
419
|
const previousEntry = visibleMenuActions[entryIndex - 1];
|
|
417
|
-
if (isActionGroup(entry)) return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
420
|
+
if (isActionGroup(entry)) return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
418
421
|
entryIndex > 0 && /* @__PURE__ */ jsx(DropdownMenu_default.Divider, {}),
|
|
419
422
|
/* @__PURE__ */ jsx(DropdownMenu_default.Heading, {
|
|
420
423
|
size: "sm",
|
|
@@ -428,7 +431,7 @@ const TableBoxField = ({ label, helperText, errorText, warningText, labelProps:
|
|
|
428
431
|
children: action.label
|
|
429
432
|
}, action.label))
|
|
430
433
|
] }, `${entry.heading}-${entryIndex}`);
|
|
431
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [previousEntry && isActionGroup(previousEntry) && /* @__PURE__ */ jsx(DropdownMenu_default.Divider, {}), /* @__PURE__ */ jsx(DropdownMenu_default.Item, {
|
|
434
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [previousEntry && isActionGroup(previousEntry) && /* @__PURE__ */ jsx(DropdownMenu_default.Divider, {}), /* @__PURE__ */ jsx(DropdownMenu_default.Item, {
|
|
432
435
|
...entry,
|
|
433
436
|
disabled: disabled || entry.disabled,
|
|
434
437
|
onClick: () => entry.onClick(selectedKey),
|
|
@@ -471,4 +474,4 @@ TableBoxField.Cell = TableBox.Cell;
|
|
|
471
474
|
//#endregion
|
|
472
475
|
export { CheckboxField as a, SegmentedControlField as c, TextField as d, ToggleField as f, CheckboxGroupField as i, SelectField as l, FormField as m, TableBoxField as n, ComboboxField as o, splitOutFormFieldProps as p, ListBoxField as r, RadioGroupField as s, TABLE_BOX_FIELD_ADD_BUTTON_ARIA_LABEL as t, TextAreaField as u };
|
|
473
476
|
|
|
474
|
-
//# sourceMappingURL=FormField-
|
|
477
|
+
//# sourceMappingURL=FormField-B9P3BWvS.mjs.map
|