@persona/design-system 0.7.2 → 0.8.1
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 +273 -0
- package/dist/Accordion.d.mts +1 -1
- package/dist/AccordionItem.d.mts +1 -1
- package/dist/{Action-Cyo6KCsS.d.mts → Action-BwYS9qaG.d.mts} +3 -3
- package/dist/Action.d.mts +1 -1
- package/dist/AdvancedFilterRuleRow.d.mts +4 -2
- package/dist/AdvancedFilterRulesPopover.d.mts +5 -3
- package/dist/ArrayValueControl.d.mts +1 -1
- package/dist/Attribute.d.mts +3 -3
- package/dist/{Badge-BD0Ut46g.mjs → Badge-D-5tbZDw.mjs} +2 -2
- package/dist/{Badge-BD0Ut46g.mjs.map → Badge-D-5tbZDw.mjs.map} +1 -1
- package/dist/BooleanValueControl.d.mts +1 -1
- package/dist/{Breadcrumb-CYXkrKXl.d.mts → Breadcrumb-BADja8tn.d.mts} +1 -1
- package/dist/Breadcrumb.d.mts +1 -1
- package/dist/{Breadcrumbs-CrXfUK1V.mjs → Breadcrumbs-CNpM0aXm.mjs} +5 -5
- package/dist/{Breadcrumbs-CrXfUK1V.mjs.map → Breadcrumbs-CNpM0aXm.mjs.map} +1 -1
- package/dist/{Breadcrumbs-CP7eUYUy.d.mts → Breadcrumbs-CxP7ktfM.d.mts} +2 -2
- package/dist/Breadcrumbs.d.mts +1 -1
- package/dist/{Button-Dhiund3f.d.mts → Button-CnswHEJ2.d.mts} +4 -4
- package/dist/Button.d.mts +1 -1
- package/dist/{Calendar-CMeIZ0BO.d.mts → Calendar-Cke5IlMI.d.mts} +1 -1
- package/dist/Calendar.d.mts +1 -1
- package/dist/CalendarBase.d.mts +1 -1
- package/dist/{Card-DCYB_mtR.d.mts → Card-Bp6L08H4.d.mts} +3 -3
- package/dist/Card.d.mts +1 -1
- package/dist/{CardV2-M3o4BELp.mjs → CardV2-DEW6mw_o.mjs} +9 -7
- package/dist/{CardV2-M3o4BELp.mjs.map → CardV2-DEW6mw_o.mjs.map} +1 -1
- package/dist/{Checkbox-fWj7GkBl.d.mts → Checkbox-DUXws1Os.d.mts} +1 -1
- package/dist/{Checkbox-AjL7ucoR.mjs → Checkbox-GibG2pg5.mjs} +3 -3
- package/dist/{Checkbox-AjL7ucoR.mjs.map → Checkbox-GibG2pg5.mjs.map} +1 -1
- package/dist/Checkbox.d.mts +1 -1
- package/dist/CheckboxGroupField-DzdOYIjo.d.mts +25 -0
- package/dist/CheckboxGroupField.d.mts +2 -25
- package/dist/ChoicesValueControl.d.mts +1 -1
- package/dist/{Combobox-C2b9u955.mjs → Combobox-CCDoNF9Y.mjs} +23 -10
- package/dist/Combobox-CCDoNF9Y.mjs.map +1 -0
- package/dist/{Combobox-CC-Osr57.d.mts → Combobox-CnxmKUQf.d.mts} +3 -3
- package/dist/Combobox.d.mts +2 -2
- package/dist/{ComboboxBase-Evo0FRxP.d.mts → ComboboxBase-CtNrsPO9.d.mts} +8 -5
- package/dist/ComboboxBase.d.mts +1 -1
- package/dist/{ComboboxMultiSelect-CvAc0FT3.d.mts → ComboboxMultiSelect-CMH6iVu4.d.mts} +2 -2
- package/dist/ComboboxMultiSelect.d.mts +1 -1
- package/dist/{ComboboxSingleSelect-CBm7x0oh.d.mts → ComboboxSingleSelect-BLPbLmMY.d.mts} +4 -4
- package/dist/ComboboxSingleSelect.d.mts +1 -1
- package/dist/{CompactBar-D_2qMK4y.d.mts → CompactBar-BwKIIlWz.d.mts} +4 -4
- package/dist/CompactBar.d.mts +1 -1
- package/dist/{ConfigFormGroup-Cz7GeTYd.mjs → ConfigFormGroup-BQXN2Pgj.mjs} +2 -2
- package/dist/{ConfigFormGroup-Cz7GeTYd.mjs.map → ConfigFormGroup-BQXN2Pgj.mjs.map} +1 -1
- package/dist/{ControlBar-B7j9sOr9.d.mts → ControlBar-BJUY6GOX.d.mts} +7 -2
- package/dist/ControlBar.d.mts +1 -1
- package/dist/DataTable.d.mts +4 -3
- package/dist/{DateField-BamAk9_w.d.mts → DateField-BojOHfrv.d.mts} +2 -2
- package/dist/DateField.d.mts +1 -1
- package/dist/{DatePicker-C3xNSkPG.d.mts → DatePicker-BHVx_i_F.d.mts} +2 -2
- package/dist/{DatePicker-IgiUI3Wj.mjs → DatePicker-LPIJrc0n.mjs} +77 -42
- package/dist/DatePicker-LPIJrc0n.mjs.map +1 -0
- package/dist/DatePicker.d.mts +1 -1
- package/dist/{DateRangePicker-C4QKMo2a.d.mts → DateRangePicker-CelDK_44.d.mts} +3 -3
- package/dist/DateRangePicker.d.mts +1 -1
- package/dist/DateRangeValueControl.d.mts +5 -3
- package/dist/DateValueControl.d.mts +8 -5
- package/dist/{DropdownButton-BWiXLMfD.mjs → DropdownButton-i5Dmxiq1.mjs} +3 -3
- package/dist/{DropdownButton-BWiXLMfD.mjs.map → DropdownButton-i5Dmxiq1.mjs.map} +1 -1
- package/dist/DropdownButton.d.mts +2 -2
- package/dist/{DropdownMenu-DL5ye-0m.d.mts → DropdownMenu-YtLxcNWt.d.mts} +2 -2
- package/dist/{DropdownMenu-CuKSNxc9.mjs → DropdownMenu-j8NWbAvM.mjs} +7 -2
- package/dist/DropdownMenu-j8NWbAvM.mjs.map +1 -0
- package/dist/DropdownMenu.d.mts +1 -1
- package/dist/{ErrorProps-BA0-m_Wp.d.mts → ErrorProps-6dRdJ4QQ.d.mts} +1 -1
- package/dist/ErrorProps.d.mts +1 -1
- package/dist/{FieldRegistry-bKxrF1gC.d.mts → FieldRegistry-DqO8HiYb.d.mts} +2 -2
- package/dist/FieldRegistry.d.mts +1 -1
- package/dist/{FilterBar-DhlBLWxw.d.mts → FilterBar-CpAA2Ozk.d.mts} +11 -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 +8 -2
- package/dist/FloatValueControl.d.mts +1 -1
- package/dist/{FormControl-D5xyPkST.d.mts → FormControl-B-s6G9mp.d.mts} +2 -2
- package/dist/{FormControl-DnfZTli_.mjs → FormControl-bDxFF0hl.mjs} +3 -3
- package/dist/{FormControl-DnfZTli_.mjs.map → FormControl-bDxFF0hl.mjs.map} +1 -1
- package/dist/FormControl.d.mts +1 -1
- package/dist/FormControlLabel.d.mts +1 -1
- package/dist/{FormField-BJZUj6jg.d.mts → FormField-D3k-f3-f.d.mts} +2 -2
- package/dist/{FormField-74TPV8-8.mjs → FormField-DbcqNcx2.mjs} +16 -16
- package/dist/{FormField-74TPV8-8.mjs.map → FormField-DbcqNcx2.mjs.map} +1 -1
- package/dist/FormField.d.mts +1 -1
- package/dist/{Grid-DOyYYsvk.mjs → Grid-CeH9E5Ai.mjs} +1 -1
- package/dist/{Grid-DOyYYsvk.mjs.map → Grid-CeH9E5Ai.mjs.map} +1 -1
- package/dist/{Header-BqEKkEp5.d.mts → Header-2K49LYkR.d.mts} +1 -1
- package/dist/Header.d.mts +1 -1
- package/dist/{HelperTooltip-mOVSuEB8.d.mts → HelperTooltip-CTHUM2nC.d.mts} +2 -2
- package/dist/HelperTooltip.d.mts +1 -1
- package/dist/HighlightedText.d.mts +61 -0
- package/dist/{HoverCopyableField-CN3gl0ny.mjs → HoverCopyableField-BARZLhfO.mjs} +3 -3
- package/dist/{HoverCopyableField-CN3gl0ny.mjs.map → HoverCopyableField-BARZLhfO.mjs.map} +1 -1
- package/dist/{IconButton-CqTPMhjV.mjs → IconButton-BHFCjvzs.mjs} +1 -1
- package/dist/{IconButton-CqTPMhjV.mjs.map → IconButton-BHFCjvzs.mjs.map} +1 -1
- package/dist/{IconButton-CjPFhpVG.d.mts → IconButton-D5hx405r.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-C_3QwAAt.mjs → Input-BQN97Hzm.mjs} +7 -3
- package/dist/Input-BQN97Hzm.mjs.map +1 -0
- package/dist/{Input-CZ_6KWDN.d.mts → Input-BQbcIiVj.d.mts} +3 -3
- package/dist/Input.d.mts +1 -1
- package/dist/{InputProps-lag6BM5h.d.mts → InputProps-DT1ZReZS.d.mts} +2 -2
- package/dist/InputProps.d.mts +1 -1
- package/dist/IntegerValueControl.d.mts +1 -1
- package/dist/Link-Bzm4AL5J.mjs +79 -0
- package/dist/Link-Bzm4AL5J.mjs.map +1 -0
- package/dist/Link.d.mts +1 -1
- package/dist/{ListBox-nYAdYVQx.d.mts → ListBox-CdqRwBvA.d.mts} +7 -7
- package/dist/{ListBox-D4j4LCT3.mjs → ListBox-DOqN9DNl.mjs} +33 -16
- package/dist/ListBox-DOqN9DNl.mjs.map +1 -0
- package/dist/ListBox.d.mts +1 -1
- package/dist/ListBoxField-Bl2WLplO.d.mts +51 -0
- package/dist/ListBoxField.d.mts +2 -51
- package/dist/{LoadingShimmer-Dizk2sZu.mjs → LoadingShimmer-Ds7rvIUN.mjs} +13 -8
- package/dist/LoadingShimmer-Ds7rvIUN.mjs.map +1 -0
- package/dist/LoadingShimmer.d.mts +1 -1
- package/dist/{LogicRow-k4ZPtjN0.d.mts → LogicRow-CwMAn1sh.d.mts} +3 -3
- package/dist/LogicRow.d.mts +1 -1
- package/dist/MaskedInput.d.mts +1 -1
- package/dist/{Menu-Bu7-KBhp.d.mts → Menu-CUN9bmc1.d.mts} +3 -3
- package/dist/{Menu-Cd6oxjAe.mjs → Menu-DjW2b3Wk.mjs} +1 -1
- package/dist/{Menu-Cd6oxjAe.mjs.map → Menu-DjW2b3Wk.mjs.map} +1 -1
- package/dist/Menu.d.mts +1 -1
- package/dist/{MiddleTruncatedText-CO58jrNF.mjs → MiddleTruncatedText-DoTyfMem.mjs} +2 -2
- package/dist/{MiddleTruncatedText-CO58jrNF.mjs.map → MiddleTruncatedText-DoTyfMem.mjs.map} +1 -1
- package/dist/{Modal-Dwq-QBw_.d.mts → Modal-CGXJGrKg.d.mts} +2 -2
- package/dist/{Modal-BN0K8QXi.mjs → Modal-DHLPK65-.mjs} +6 -4
- package/dist/Modal-DHLPK65-.mjs.map +1 -0
- package/dist/Modal.d.mts +1 -1
- package/dist/{PageHeader-BTtm3hRQ.mjs → PageHeader-eI4RM_uL.mjs} +2 -2
- package/dist/{PageHeader-BTtm3hRQ.mjs.map → PageHeader-eI4RM_uL.mjs.map} +1 -1
- package/dist/PageHeader.d.mts +1 -1
- package/dist/{PageSelector-CeGC84N1.d.mts → PageSelector-kAfYxEky.d.mts} +3 -3
- package/dist/PageSelector.d.mts +1 -1
- package/dist/{Pagination-CPd4mSnw.mjs → Pagination-6BDOn9bX.mjs} +6 -6
- package/dist/Pagination-6BDOn9bX.mjs.map +1 -0
- package/dist/{Pagination-H-CcXrCD.d.mts → Pagination-Bhr7xyd2.d.mts} +2 -2
- package/dist/Pagination.d.mts +1 -1
- package/dist/{Pii-Dz4woKd8.mjs → Pii-DhL1gblz.mjs} +2 -2
- package/dist/{Pii-Dz4woKd8.mjs.map → Pii-DhL1gblz.mjs.map} +1 -1
- package/dist/{PillShell-BQC-k7Rl.d.mts → PillShell-CVJL1k5I.d.mts} +2 -2
- package/dist/PillShell.d.mts +1 -1
- package/dist/{Popover-opVa9Xhc.mjs → Popover-CbYaWrAy.mjs} +15 -2
- package/dist/Popover-CbYaWrAy.mjs.map +1 -0
- package/dist/{ProgressIndicator-3A4Aqci6.mjs → ProgressIndicator-BpF3XLn3.mjs} +3 -3
- package/dist/ProgressIndicator-BpF3XLn3.mjs.map +1 -0
- package/dist/{ProgressIndicator-DbOLOaxJ.d.mts → ProgressIndicator-CYyM6OSx.d.mts} +1 -1
- package/dist/ProgressIndicator.d.mts +1 -1
- package/dist/{PseudoClassProps-CHtBNv8B.d.mts → PseudoClassProps-BOVN6Etr.d.mts} +1 -1
- package/dist/PseudoClassProps.d.mts +1 -1
- package/dist/{Radio-Cxt89w8s.mjs → Radio-DPaX-9LH.mjs} +2 -2
- package/dist/{Radio-Cxt89w8s.mjs.map → Radio-DPaX-9LH.mjs.map} +1 -1
- package/dist/{RadioGroup-BjrfVPZQ.d.mts → RadioGroup-C0l0pdEt.d.mts} +1 -1
- package/dist/{RadioGroup-B6Cg1kdm.mjs → RadioGroup-D7f4m2Uc.mjs} +2 -2
- package/dist/{RadioGroup-B6Cg1kdm.mjs.map → RadioGroup-D7f4m2Uc.mjs.map} +1 -1
- package/dist/RadioGroup.d.mts +1 -1
- package/dist/{RangeCalendar-CPnLaM-J.d.mts → RangeCalendar-BJn9V3iN.d.mts} +2 -2
- package/dist/RangeCalendar.d.mts +1 -1
- package/dist/RangeCalendarPresets.d.mts +1 -1
- package/dist/{RouterContext-CbvHIl4K.d.mts → RouterContext-BLrzYlJ_.d.mts} +2 -2
- package/dist/RouterContext.d.mts +1 -1
- package/dist/{RouterLink-v9AG9fYa.d.mts → RouterLink-BHXjhqps.d.mts} +2 -2
- package/dist/RouterLink.d.mts +1 -1
- package/dist/RuleEditorFields.d.mts +4 -2
- package/dist/RulesPill.d.mts +1 -1
- package/dist/{SearchInput-CIjwmT8R.d.mts → SearchInput-Buh8LdIL.d.mts} +2 -2
- package/dist/SearchInput.d.mts +1 -1
- package/dist/SectionHeading.d.mts +1 -1
- package/dist/{SegmentedControl-Crr_aHAs.d.mts → SegmentedControl-B9qLyIIW.d.mts} +1 -1
- package/dist/{SegmentedControl-BcwfLuHA.mjs → SegmentedControl-zEvBtVj0.mjs} +3 -3
- package/dist/SegmentedControl-zEvBtVj0.mjs.map +1 -0
- package/dist/SegmentedControl.d.mts +1 -1
- package/dist/{Select-BstCz8P1.mjs → Select-BoZuM_e9.mjs} +10 -8
- package/dist/Select-BoZuM_e9.mjs.map +1 -0
- package/dist/{Select-CJQeuCiF.d.mts → Select-Cv_9PLOt.d.mts} +3 -3
- package/dist/Select.d.mts +1 -1
- package/dist/SmartTextInput.d.mts +107 -0
- package/dist/SmartTextInputCodeDialog.d.mts +18 -0
- package/dist/SmartTextInputField.d.mts +25 -0
- package/dist/SmartTextInputFunctionDialog.d.mts +37 -0
- package/dist/SmartTextInputListbox.d.mts +26 -0
- package/dist/SmartTextInputPopover.d.mts +45 -0
- package/dist/{Spinner-DplDSBqf.mjs → Spinner-CarSRiBF.mjs} +1 -1
- package/dist/{Spinner-DplDSBqf.mjs.map → Spinner-CarSRiBF.mjs.map} +1 -1
- package/dist/{Stack-ChsImaEY.mjs → Stack-CEPzs4Pb.mjs} +1 -1
- package/dist/{Stack-ChsImaEY.mjs.map → Stack-CEPzs4Pb.mjs.map} +1 -1
- package/dist/{Stack-RVptVTVi.d.mts → Stack-XzBzPvSV.d.mts} +1 -1
- package/dist/Stack.d.mts +1 -1
- package/dist/StatusIndicator-bEnMWV_S.mjs +315 -0
- package/dist/StatusIndicator-bEnMWV_S.mjs.map +1 -0
- package/dist/{Sticker-C3Eb13OQ.mjs → Sticker-B-fU8lgu.mjs} +5 -8
- package/dist/Sticker-B-fU8lgu.mjs.map +1 -0
- package/dist/{Sticker-BVX38LKi.d.mts → Sticker-DGfNuxUK.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-BepWbJHz.mjs → TabBar-BSl5v5aa.mjs} +4 -7
- package/dist/{TabBar-BepWbJHz.mjs.map → TabBar-BSl5v5aa.mjs.map} +1 -1
- package/dist/{Table-DFiSWroB.d.mts → Table-B2V5tlfA.d.mts} +1 -1
- package/dist/{Table-B1gRr2XT.mjs → Table-msXj0glu.mjs} +22 -3
- package/dist/Table-msXj0glu.mjs.map +1 -0
- package/dist/Table.d.mts +1 -1
- package/dist/{TableBody-Di9JYHDN.d.mts → TableBody-SlQe4Jyp.d.mts} +1 -1
- package/dist/TableBody.d.mts +1 -1
- package/dist/{TableBox-DAQ3Plqx.mjs → TableBox-CF1_Fk0j.mjs} +22 -17
- package/dist/TableBox-CF1_Fk0j.mjs.map +1 -0
- package/dist/TableBox.d.mts +2 -2
- package/dist/{TableBoxCell-D6h1X5ph.d.mts → TableBoxCell-BRhGeUnO.d.mts} +6 -6
- package/dist/TableBoxCell.d.mts +1 -1
- package/dist/TableBoxField-Cq9M1upV.d.mts +103 -0
- package/dist/TableBoxField.d.mts +2 -103
- package/dist/{TableBoxRow-C6l6J4mq.d.mts → TableBoxRow-DZzRYoID.d.mts} +3 -3
- package/dist/TableBoxRow.d.mts +1 -1
- package/dist/{TableBoxRowActions-CsLN1b1J.d.mts → TableBoxRowActions-4-j3flJq.d.mts} +2 -2
- package/dist/TableBoxRowActions.d.mts +1 -1
- package/dist/{TableCell-WSDXw79Q.d.mts → TableCell-D5Sqb6iO.d.mts} +2 -2
- package/dist/TableCell.d.mts +1 -1
- package/dist/{TableControls-cswMgBAr.d.mts → TableControls-B-LakH-8.d.mts} +4 -3
- package/dist/{TableControls-BxuPCUQS.mjs → TableControls-CqW_nyBY.mjs} +286 -78
- package/dist/TableControls-CqW_nyBY.mjs.map +1 -0
- package/dist/TableControls.d.mts +1 -1
- package/dist/{TableControlsContext-Cbh8wear.d.mts → TableControlsContext-Dh1YVmBM.d.mts} +2 -2
- package/dist/TableControlsContext.d.mts +1 -1
- package/dist/{TableHead-CkL1fEg2.d.mts → TableHead-BCrVa0BY.d.mts} +1 -1
- package/dist/TableHead.d.mts +1 -1
- package/dist/{TableHeaderCell-K9Ry6YqO.d.mts → TableHeaderCell-CcEkDozs.d.mts} +1 -1
- package/dist/TableHeaderCell.d.mts +1 -1
- package/dist/{TableLayout-CYRGIFEl.d.mts → TableLayout-Bhj1QBBz.d.mts} +1 -1
- package/dist/TableLayout.d.mts +1 -1
- package/dist/{TableRow-DMHlo1eg.d.mts → TableRow-Cy1y7b9S.d.mts} +2 -2
- package/dist/TableRow.d.mts +1 -1
- package/dist/TableTH.d.mts +1 -1
- package/dist/{TableViewConfigurationDropdown-BRbOcVNc.d.mts → TableViewConfigurationDropdown-BzygLtGm.d.mts} +2 -2
- package/dist/TableViewConfigurationDropdown.d.mts +1 -1
- package/dist/{TechnicalSticker-_LtE-PRY.mjs → TechnicalSticker-B6T7cHHc.mjs} +2 -2
- package/dist/{TechnicalSticker-_LtE-PRY.mjs.map → TechnicalSticker-B6T7cHHc.mjs.map} +1 -1
- package/dist/{Text-B69gp3X_.d.mts → Text-BVGJ-Nlw.d.mts} +3 -3
- package/dist/Text.d.mts +1 -1
- package/dist/{TextArea-Cjsdl07-.d.mts → TextArea-Bzj593VO.d.mts} +2 -2
- package/dist/{TextArea-CcxltuBh.mjs → TextArea-C1CmFRiz.mjs} +2 -2
- package/dist/{TextArea-CcxltuBh.mjs.map → TextArea-C1CmFRiz.mjs.map} +1 -1
- package/dist/TextArea.d.mts +1 -1
- package/dist/{TextUnderlineTooltip-DDzKLCeX.d.mts → TextUnderlineTooltip-CgFmtqF_.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-DWbJOwf3.mjs → Toggle-CntyMUPJ.mjs} +9 -4
- package/dist/Toggle-CntyMUPJ.mjs.map +1 -0
- package/dist/{Toggle-B5sSdb_q.d.mts → Toggle-bSu1xAaq.d.mts} +1 -1
- package/dist/Toggle.d.mts +1 -1
- package/dist/{Tooltip-x1pFf-Mj.d.mts → Tooltip-Duw4Fz1t.d.mts} +2 -2
- package/dist/Tooltip.d.mts +1 -1
- package/dist/{TruncatedText-BE8FuEQm.d.mts → TruncatedText-CbTpX_R1.d.mts} +1 -1
- package/dist/VersionHistory.d.mts +23 -0
- package/dist/VersionHistoryItem-D05QYej7.d.mts +54 -0
- package/dist/VersionHistoryItem.d.mts +2 -0
- package/dist/WizardModal.d.mts +3 -3
- package/dist/{accordionTitleTypography-BYhjSN9t.d.mts → accordionTitleTypography-Leehcmb3.d.mts} +2 -2
- package/dist/accordionTitleTypography.d.mts +1 -1
- package/dist/assertNever.d.mts +5 -0
- package/dist/chainTypes-D8SGRGba.d.mts +17 -0
- package/dist/{codec-BcgsGCHE.d.mts → codec-Vsztf4fe.d.mts} +2 -2
- package/dist/codec.d.mts +1 -1
- package/dist/{color-LH7zKfKo.d.mts → color-CrlF3pba.d.mts} +9 -4
- package/dist/components/Accordion/index.d.mts +1 -1
- package/dist/components/Accordion/index.mjs +1 -1
- package/dist/components/Attribute/index.mjs +2 -2
- package/dist/components/Badge/index.mjs +1 -1
- package/dist/components/Banner/index.mjs +1 -1
- package/dist/components/BottomPanel/index.mjs +5 -3
- package/dist/components/BottomPanel/index.mjs.map +1 -1
- package/dist/components/Breadcrumbs/index.d.mts +1 -1
- package/dist/components/Breadcrumbs/index.mjs +1 -1
- package/dist/components/Button/index.d.mts +2 -2
- package/dist/components/Button/index.mjs +1 -1
- package/dist/components/ButtonGroup/index.mjs +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/CodeHighlight/index.mjs +3 -1
- package/dist/components/CodeHighlight/index.mjs.map +1 -1
- package/dist/components/Combobox/index.d.mts +2 -2
- package/dist/components/Combobox/index.mjs +1 -1
- package/dist/components/ConfigFormGroup/index.mjs +2 -2
- package/dist/components/DataTable/TableControls/index.d.mts +19 -19
- package/dist/components/DataTable/TableControls/index.mjs +1 -1
- package/dist/components/DataTable/index.mjs +27 -16
- package/dist/components/DataTable/index.mjs.map +1 -1
- package/dist/components/DataTable/types.d.mts +2 -2
- package/dist/components/DatePicker/index.d.mts +5 -5
- package/dist/components/DatePicker/index.mjs +1 -1
- package/dist/components/DropdownButton/index.mjs +1 -1
- package/dist/components/DropdownMenu/index.d.mts +1 -1
- package/dist/components/DropdownMenu/index.mjs +1 -1
- package/dist/components/FloatingPanel/index.mjs +10 -7
- package/dist/components/FloatingPanel/index.mjs.map +1 -1
- package/dist/components/FormControl/index.d.mts +2 -2
- package/dist/components/FormControl/index.mjs +2 -2
- package/dist/components/FormField/index.d.mts +6 -6
- package/dist/components/FormField/index.mjs +1 -1
- package/dist/components/Grid/index.mjs +1 -1
- package/dist/components/HoverCopyableField/index.mjs +1 -1
- package/dist/components/ImageTile/index.mjs +13 -9
- package/dist/components/ImageTile/index.mjs.map +1 -1
- package/dist/components/Input/index.d.mts +1 -1
- package/dist/components/Input/index.mjs +1 -1
- package/dist/components/Link/index.mjs +1 -78
- 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.d.mts +1 -1
- package/dist/components/Modal/index.mjs +1 -1
- package/dist/components/PageHeader/index.mjs +1 -1
- package/dist/components/Pagination/index.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 +1 -2
- package/dist/components/ProgressBar/index.mjs.map +1 -1
- package/dist/components/ProgressIndicator/index.d.mts +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/RightPanel/index.mjs +10 -7
- package/dist/components/RightPanel/index.mjs.map +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 +1 -1
- package/dist/components/Slider/index.mjs.map +1 -1
- package/dist/components/SmartTextInput/index.d.mts +5 -0
- package/dist/components/SmartTextInput/index.mjs +2035 -0
- package/dist/components/SmartTextInput/index.mjs.map +1 -0
- package/dist/components/SmartTextInput/parser/method-chain/parser.mjs +1 -1
- package/dist/components/SmartTextInput/parser/method-chain/types.d.mts +2 -105
- package/dist/components/SmartTextInput/parser/smart-text/parser.mjs +1 -1
- package/dist/components/SmartTextInput/parser/smart-text/types.d.mts +3 -72
- 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 -314
- 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 +8 -8
- 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/Tile/index.mjs +2 -2
- package/dist/components/Toast/index.mjs +2 -2
- package/dist/components/Toast/index.mjs.map +1 -1
- 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/VersionHistory/index.d.mts +3 -0
- package/dist/components/VersionHistory/index.mjs +389 -0
- package/dist/components/VersionHistory/index.mjs.map +1 -0
- package/dist/compound-expression.d.mts +1 -1
- package/dist/{constants-BpwnTzcv.d.mts → constants-CQUCM6__.d.mts} +1 -1
- package/dist/constants.d.mts +1 -1
- package/dist/{createPath-Bst12Uxr.d.mts → createPath-Bq7wYGt_.d.mts} +2 -2
- package/dist/createPath.d.mts +1 -1
- package/dist/{date-filter-CZeChs9T.mjs → date-filter-D6IfCkwp.mjs} +1 -1
- package/dist/{date-filter-CZeChs9T.mjs.map → date-filter-D6IfCkwp.mjs.map} +1 -1
- package/dist/{date-range-rule-value-C4ir2Y8W.d.mts → date-range-rule-value-DVhMQP4-.d.mts} +2 -2
- package/dist/date-range-rule-value.d.mts +1 -1
- package/dist/{date-rule-intent-gKmuxMVA.d.mts → date-rule-intent-BwQ6OTVD.d.mts} +3 -3
- package/dist/date-rule-intent.d.mts +1 -1
- package/dist/display.d.mts +2 -2
- package/dist/fieldPickerOptions.d.mts +2 -2
- package/dist/{filter-size-context-BOpH6pBm.d.mts → filter-size-context-BjTzcZwZ.d.mts} +2 -2
- package/dist/filter-size-context.d.mts +1 -1
- package/dist/format-date-value.d.mts +5 -0
- package/dist/helpers.d.mts +1 -1
- package/dist/{index-C2-PBfN3.d.mts → index-BFIFjR7Q.d.mts} +2 -2
- package/dist/{index-BXdrzR0c.d.mts → index-BhDvrF4l.d.mts} +4 -4
- package/dist/{index-c0aXmZV9.d.mts → index-C-xpEL8b.d.mts} +2 -2
- package/dist/index-irNqT1qQ2.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 +1 -1
- package/dist/index5.d.mts +14 -14
- package/dist/{input-DVJhMlxU.d.mts → input-DpHBIUpP.d.mts} +3 -3
- package/dist/inputFields-BVDurw3L.d.mts +71 -0
- package/dist/inputFields.d.mts +2 -71
- package/dist/{intersperse-Bxcrxj2Q.mjs → intersperse-bvY2gibK.mjs} +1 -1
- package/dist/{intersperse-Bxcrxj2Q.mjs.map → intersperse-bvY2gibK.mjs.map} +1 -1
- package/dist/{jsonSchema-DmdZYC4a.d.mts → jsonSchema-Bl-qzgrr.d.mts} +34 -2
- package/dist/lib/MiddleTruncatedText.mjs +1 -1
- package/dist/lib/PDSProvider.d.mts +2 -2
- package/dist/lib/TruncatedText.d.mts +1 -1
- package/dist/lib/TruncatedText.mjs +1 -1
- package/dist/lib/TruncatedText.mjs.map +1 -1
- package/dist/lib/TruncatedTextWithTooltip.d.mts +1 -1
- package/dist/lib/TruncatedTextWithTooltip.mjs +1 -1
- package/dist/lib/TruncatedTextWithTooltip.mjs.map +1 -1
- package/dist/lib/chainTypes.d.mts +2 -0
- package/dist/lib/chainTypes.mjs +0 -0
- package/dist/lib/color.d.mts +2 -2
- package/dist/lib/color.mjs +18 -11
- package/dist/lib/color.mjs.map +1 -1
- package/dist/lib/customFunctionSchema.d.mts +49 -0
- package/dist/lib/customFunctionSchema.mjs +299 -0
- package/dist/lib/customFunctionSchema.mjs.map +1 -0
- package/dist/lib/date-filter/index.d.mts +2 -2
- package/dist/lib/date-filter/index.mjs +1 -1
- package/dist/lib/jsonSchema.d.mts +2 -2
- package/dist/lib/jsonSchema.mjs +26 -1
- package/dist/lib/jsonSchema.mjs.map +1 -1
- package/dist/lib/jsonSchemaType.d.mts +7 -0
- package/dist/lib/jsonSchemaType.mjs +31 -0
- package/dist/lib/jsonSchemaType.mjs.map +1 -0
- package/dist/lib/letPointerDownReachDocument.d.mts +22 -0
- package/dist/lib/letPointerDownReachDocument.mjs +25 -0
- package/dist/lib/letPointerDownReachDocument.mjs.map +1 -0
- package/dist/lib/message.d.mts +1 -1
- package/dist/lib/methodChain.d.mts +3 -66
- package/dist/lib/methodChain.mjs +1 -238
- package/dist/lib/methodChainNormalize.d.mts +2 -2
- package/dist/lib/methodChainTypes.d.mts +2 -23
- package/dist/lib/objectSchemaTypes.d.mts +1 -1
- package/dist/lib/platformObject.d.mts +38 -0
- package/dist/lib/platformObject.mjs +79 -0
- package/dist/lib/platformObject.mjs.map +1 -0
- package/dist/lib/pseudoClass.d.mts +1 -1
- package/dist/lib/router/adapters/reactRouter.d.mts +1 -1
- package/dist/lib/router/adapters/tanstack.d.mts +1 -1
- package/dist/lib/router/index.d.mts +5 -5
- package/dist/lib/schemaOptions.d.mts +2 -0
- package/dist/lib/schemaOptions.mjs +481 -0
- package/dist/lib/schemaOptions.mjs.map +1 -0
- package/dist/lib/semanticColor.d.mts +1 -1
- package/dist/lib/snakifyPath.d.mts +5 -0
- package/dist/lib/snakifyPath.mjs +11 -0
- package/dist/lib/snakifyPath.mjs.map +1 -0
- package/dist/lib/useChain.d.mts +2 -0
- package/dist/lib/useChain.mjs +2 -0
- package/dist/listbox-options-BjOkovND.d.mts +38 -0
- package/dist/listbox-options.d.mts +2 -0
- package/dist/{message-CKSLIKF0.d.mts → message-w_1-kTDE.d.mts} +1 -1
- package/dist/methodChain-B5vZEOff.d.mts +66 -0
- package/dist/methodChain-L_h8Z8Bx.mjs +241 -0
- package/dist/methodChain-L_h8Z8Bx.mjs.map +1 -0
- package/dist/methodChainTypes-BVkTI8MX.d.mts +23 -0
- 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/input.mjs +6 -14
- package/dist/mixins/input.mjs.map +1 -1
- package/dist/mixins/menuItem.d.mts +2 -2
- package/dist/mixins/scrollbar.d.mts +10 -0
- package/dist/mixins/scrollbar.mjs +31 -0
- package/dist/mixins/scrollbar.mjs.map +1 -0
- package/dist/mixins/text.d.mts +1 -1
- package/dist/{operators-1_jTgYRX.d.mts → operators-BG82-g3M.d.mts} +9 -3
- package/dist/operators.d.mts +2 -2
- package/dist/{palette-CMOEyNPH.d.mts → palette-C8tyI81D.d.mts} +3 -3
- package/dist/palette.d.mts +1 -1
- package/dist/{parser-Kxos6siN.mjs → parser-BeTiVjRs.mjs} +3 -2
- package/dist/{parser-Kxos6siN.mjs.map → parser-BeTiVjRs.mjs.map} +1 -1
- package/dist/patterns/LayoutLoadingShimmer/index.mjs +5 -5
- package/dist/patterns/PageLayout/index.mjs +2 -2
- package/dist/{components → patterns}/WizardModal/index.mjs +5 -5
- package/dist/patterns/WizardModal/index.mjs.map +1 -0
- package/dist/reactRouterFallback.d.mts +1 -1
- package/dist/relative-date-label.d.mts +1 -1
- package/dist/safe-parse.d.mts +23 -0
- package/dist/schemaOptions-DGca6x7E.d.mts +173 -0
- package/dist/{semantic-BXwNUd4a.d.mts → semantic-D1661f_6.d.mts} +2 -2
- package/dist/{semanticColor-Cru2gSys.d.mts → semanticColor-Bg0H3RUL.d.mts} +3 -3
- package/dist/{text-CxIup7HJ.d.mts → text-Iw9DKpbZ.d.mts} +1 -1
- package/dist/{theme-CW6qlONZ.d.mts → theme-BB1B6Wkz.d.mts} +3 -3
- package/dist/theme.d.mts +1 -1
- package/dist/time-range.d.mts +7 -0
- package/dist/tone.d.mts +3 -3
- package/dist/tree.d.mts +9 -0
- package/dist/{types-3iEDsymE.d.mts → types-B0ilOIfE.d.mts} +2 -2
- package/dist/types-BYRTxB0a.d.mts +72 -0
- package/dist/{types-ChkiGhjQ.d.mts → types-CI2bPi02.d.mts} +1 -1
- package/dist/types-Cs6CdZCO.d.mts +83 -0
- package/dist/{types-B-stjYNc.d.mts → types-D1DijcJv.d.mts} +1 -1
- package/dist/{types-YojUycQK.d.mts → types-DZTbvdpO.d.mts} +1 -1
- package/dist/{types-g-aqbnek.d.mts → types-DdTu747j.d.mts} +1 -1
- package/dist/{types-BEjWTkZV.d.mts → types-Dy3lZv9z.d.mts} +7 -2
- package/dist/types-M-rsm1Km.d.mts +105 -0
- 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/types5.d.mts +1 -1
- package/dist/types6.d.mts +1 -1
- package/dist/types7.d.mts +2 -0
- package/dist/{url-state-CHK2N2fA.d.mts → url-state-DWA7UFxS.d.mts} +2 -2
- package/dist/url-state.d.mts +1 -1
- package/dist/useChain-CEsXE2Bx.d.mts +77 -0
- package/dist/useChain-CKqYGdx4.mjs +4589 -0
- package/dist/useChain-CKqYGdx4.mjs.map +1 -0
- package/dist/useChainAtCursor.d.mts +87 -0
- package/dist/useCodeChainFunctionPanel.d.mts +26 -0
- package/dist/useComboboxFooterAction.d.mts +1 -1
- package/dist/{useFilterStateV2-B26e5iUx.d.mts → useFilterStateV2-DoJ9lyJx.d.mts} +3 -3
- package/dist/useFilterStateV2.d.mts +1 -1
- package/dist/{useFormField-BzhMbl5P.mjs → useFormField-BAmkdxtA.mjs} +2 -2
- package/dist/{useFormField-BzhMbl5P.mjs.map → useFormField-BAmkdxtA.mjs.map} +1 -1
- package/dist/{useFormField-DPFClB5h.d.mts → useFormField-BtnAYcHV.d.mts} +2 -2
- package/dist/useFormField.d.mts +1 -1
- package/dist/{useFormGroup-CH3kiXoa.mjs → useFormGroup-BZayb9fZ.mjs} +1 -1
- package/dist/{useFormGroup-CH3kiXoa.mjs.map → useFormGroup-BZayb9fZ.mjs.map} +1 -1
- package/dist/{useLocationPathname-CnRd_Rzn.d.mts → useLocationPathname-pLyLOrAi.d.mts} +1 -1
- package/dist/useLocationPathname.d.mts +1 -1
- package/dist/{useTableBoxDragAndDrop-DWlG5vhl.d.mts → useTableBoxDragAndDrop-wjc_LCpC.d.mts} +1 -1
- package/dist/useTableBoxDragAndDrop.d.mts +1 -1
- package/dist/useTruncation.d.mts +1 -1
- package/dist/{utilities-BcGuP8Fd.d.mts → utilities-DL18UdPs.d.mts} +1 -1
- package/dist/utilities.d.mts +1 -1
- package/dist/utils/storybook.mjs +1 -1
- package/dist/utils/testing.d.mts +1 -1
- package/dist/utils.d.mts +1 -1
- package/dist/utils4.d.mts +111 -0
- package/dist/{validation-B-Om4ANo.d.mts → validation-PeVTwtd-.d.mts} +3 -3
- package/dist/validation.d.mts +1 -1
- package/dist/validation2.d.mts +64 -0
- package/dist/{value-control-resolver-BiyhB8zt.d.mts → value-control-resolver-Cx_wXQFv.d.mts} +3 -2
- package/dist/value-control-resolver.d.mts +1 -1
- package/dist/variables/effect.d.mts +1 -1
- package/dist/variables/semantic.d.mts +1 -1
- package/dist/variables/semantic.mjs +15 -18
- package/dist/variables/semantic.mjs.map +1 -1
- package/llms.txt +1 -1
- package/package.json +32 -6
- package/skills/ui-authoring/COMPONENTS.md +1 -1
- package/skills/ui-authoring/PATTERNS.md +1 -0
- package/dist/Combobox-C2b9u955.mjs.map +0 -1
- package/dist/DatePicker-IgiUI3Wj.mjs.map +0 -1
- package/dist/DropdownMenu-CuKSNxc9.mjs.map +0 -1
- package/dist/Input-C_3QwAAt.mjs.map +0 -1
- package/dist/ListBox-D4j4LCT3.mjs.map +0 -1
- package/dist/LoadingShimmer-Dizk2sZu.mjs.map +0 -1
- package/dist/Modal-BN0K8QXi.mjs.map +0 -1
- package/dist/Pagination-CPd4mSnw.mjs.map +0 -1
- package/dist/Popover-opVa9Xhc.mjs.map +0 -1
- package/dist/ProgressIndicator-3A4Aqci6.mjs.map +0 -1
- package/dist/SegmentedControl-BcwfLuHA.mjs.map +0 -1
- package/dist/Select-BstCz8P1.mjs.map +0 -1
- package/dist/Sticker-C3Eb13OQ.mjs.map +0 -1
- package/dist/Table-B1gRr2XT.mjs.map +0 -1
- package/dist/TableBox-DAQ3Plqx.mjs.map +0 -1
- package/dist/TableControls-BxuPCUQS.mjs.map +0 -1
- package/dist/Toggle-DWbJOwf3.mjs.map +0 -1
- package/dist/components/Link/index.mjs.map +0 -1
- package/dist/components/StatusIndicator/index.mjs.map +0 -1
- package/dist/components/WizardModal/index.mjs.map +0 -1
- package/dist/lib/methodChain.mjs.map +0 -1
- /package/dist/{index--p6oQT9I.d.mts → index-7in8TPrM.d.mts} +0 -0
- /package/dist/{index-BCh-G39Y2.d.mts → index-BCq_fh4A2.d.mts} +0 -0
- /package/dist/{index-BO_854F2.d.mts → index-BINnViIh.d.mts} +0 -0
- /package/dist/{index-BwFl_eS0.d.mts → index-BjgW3E7y.d.mts} +0 -0
- /package/dist/{index-C-lwXyQ6.d.mts → index-BwXb5CoQ.d.mts} +0 -0
- /package/dist/{index-C1o2TFfS.d.mts → index-C3usUse7.d.mts} +0 -0
- /package/dist/{index-C3kE54DD.d.mts → index-C9achTF6.d.mts} +0 -0
- /package/dist/{index-CREkvfw9.d.mts → index-CCKHlTA4.d.mts} +0 -0
- /package/dist/{index-CRo77wc3.d.mts → index-CFuHCx9T.d.mts} +0 -0
- /package/dist/{index-CfCYi7PF.d.mts → index-CP2eJYlK.d.mts} +0 -0
- /package/dist/{index-CoUVmp_Q.d.mts → index-CWB6exYm.d.mts} +0 -0
- /package/dist/{index-DCTy4zg0.d.mts → index-CryTAIZM.d.mts} +0 -0
- /package/dist/{index-DWIh4oP5.d.mts → index-CuheJfs-.d.mts} +0 -0
- /package/dist/{index-De7MV8-j.d.mts → index-D-9tW2r5.d.mts} +0 -0
- /package/dist/{index-DgJfEygr.d.mts → index-D9XihFV1.d.mts} +0 -0
- /package/dist/{index-Es5nKSSL.d.mts → index-Deol7ZWO.d.mts} +0 -0
- /package/dist/{index-Qwqzz3XM.d.mts → index-DjOaHFU3.d.mts} +0 -0
- /package/dist/{index-Wc1llEvP.d.mts → index-Iujpc9_6.d.mts} +0 -0
- /package/dist/{index-bHnO4ZKt.d.mts → index-e6k85DKM.d.mts} +0 -0
- /package/dist/{index-dhjtMp5F.d.mts → index-gpCH5158.d.mts} +0 -0
- /package/dist/{components → patterns}/WizardModal/index.d.mts +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { n as PossibleChainSchema } from "./chainTypes-D8SGRGba.mjs";
|
|
2
|
+
import { a as Mode, u as ValueType } from "./types-Cs6CdZCO.mjs";
|
|
3
|
+
|
|
4
|
+
//#region components/SmartTextInput/listbox-options.d.ts
|
|
5
|
+
type MethodChainOption = {
|
|
6
|
+
id: string;
|
|
7
|
+
type: 'method-chain-option';
|
|
8
|
+
ariaLabel: string;
|
|
9
|
+
label: string;
|
|
10
|
+
returnType: string | undefined;
|
|
11
|
+
description: string | undefined;
|
|
12
|
+
interactive: boolean;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
};
|
|
15
|
+
type ContextMenuOption = {
|
|
16
|
+
id: string;
|
|
17
|
+
type: 'context-menu-option';
|
|
18
|
+
ariaLabel: string;
|
|
19
|
+
label: string;
|
|
20
|
+
returnType: string;
|
|
21
|
+
description: string | undefined;
|
|
22
|
+
interactive: boolean;
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
};
|
|
25
|
+
type SmartTextInputOption = ContextMenuOption | MethodChainOption;
|
|
26
|
+
declare const EXIT_METHOD_CHAIN_VALUE_TYPE_OPTION: MethodChainOption;
|
|
27
|
+
declare const isContextMenuOption: (item: SmartTextInputOption) => item is ContextMenuOption;
|
|
28
|
+
declare const isMethodChainOption: (item: SmartTextInputOption) => item is MethodChainOption;
|
|
29
|
+
type ContextMenuExamples = {
|
|
30
|
+
code?: string;
|
|
31
|
+
handlebars?: string;
|
|
32
|
+
methodChain?: string;
|
|
33
|
+
};
|
|
34
|
+
declare const getContextMenuOptions: (valueIsEmpty: boolean, allowedValueType: ValueType | undefined, allowedInterpolationModes: (Mode.MethodChain | Mode.Code)[] | undefined, examples?: ContextMenuExamples) => ContextMenuOption[];
|
|
35
|
+
declare const getMethodChainOptions: (options: PossibleChainSchema[]) => MethodChainOption[];
|
|
36
|
+
//#endregion
|
|
37
|
+
export { SmartTextInputOption as a, isContextMenuOption as c, MethodChainOption as i, isMethodChainOption as l, ContextMenuOption as n, getContextMenuOptions as o, EXIT_METHOD_CHAIN_VALUE_TYPE_OPTION as r, getMethodChainOptions as s, ContextMenuExamples as t };
|
|
38
|
+
//# sourceMappingURL=listbox-options-BjOkovND.d.mts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as SmartTextInputOption, c as isContextMenuOption, i as MethodChainOption, l as isMethodChainOption, n as ContextMenuOption, o as getContextMenuOptions, r as EXIT_METHOD_CHAIN_VALUE_TYPE_OPTION, s as getMethodChainOptions, t as ContextMenuExamples } from "./listbox-options-BjOkovND.mjs";
|
|
2
|
+
export { ContextMenuExamples, ContextMenuOption, EXIT_METHOD_CHAIN_VALUE_TYPE_OPTION, MethodChainOption, SmartTextInputOption, getContextMenuOptions, getMethodChainOptions, isContextMenuOption, isMethodChainOption };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { u as ASTNodeType } from "./types-M-rsm1Km.mjs";
|
|
2
|
+
import { n as JsonSchema } from "./jsonSchema-Bl-qzgrr.mjs";
|
|
3
|
+
import { a as FunctionParamType, c as NumberNode, i as FunctionNode, l as StringNode, n as Chain, o as IdentifierNode, r as CustomFunctionNode, s as MethodChainNode, t as ArrayNode } from "./methodChainTypes-BVkTI8MX.mjs";
|
|
4
|
+
|
|
5
|
+
//#region components/SmartTextInput/parser/method-chain/parser.d.ts
|
|
6
|
+
declare class SyntaxError extends Error {
|
|
7
|
+
expected: string[];
|
|
8
|
+
found: string;
|
|
9
|
+
location: {
|
|
10
|
+
start: number;
|
|
11
|
+
end: number;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region lib/methodChain.d.ts
|
|
16
|
+
declare const methodChainCache: {
|
|
17
|
+
[key: string]: Chain;
|
|
18
|
+
};
|
|
19
|
+
declare const MethodChainNodeTypes: {
|
|
20
|
+
readonly Chain: ASTNodeType.Chain;
|
|
21
|
+
readonly String: ASTNodeType.String;
|
|
22
|
+
readonly Number: ASTNodeType.Number;
|
|
23
|
+
readonly Identifier: ASTNodeType.Identifier;
|
|
24
|
+
readonly Function: ASTNodeType.Function;
|
|
25
|
+
readonly CustomFunction: ASTNodeType.CustomFunction;
|
|
26
|
+
readonly Array: ASTNodeType.Array;
|
|
27
|
+
};
|
|
28
|
+
declare const EMPTY_METHOD_CHAIN: Chain;
|
|
29
|
+
type MethodChainLiteral = string | number | (string | number)[];
|
|
30
|
+
declare const isFunctionNode: (node: MethodChainNode) => node is FunctionNode;
|
|
31
|
+
declare const isCustomFunctionNode: (node: MethodChainNode) => node is CustomFunctionNode;
|
|
32
|
+
declare const isIdentifierNode: (node: MethodChainNode) => node is IdentifierNode;
|
|
33
|
+
declare const isStringNode: (node: FunctionParamType) => node is StringNode;
|
|
34
|
+
declare const isArrayNode: (node: FunctionParamType) => node is ArrayNode;
|
|
35
|
+
declare const containsFunctionNode: (methodChain: Chain, ...functionNames: string[]) => boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Returns true if the string contains any function node (e.g. `.at(...)`) when parsed
|
|
38
|
+
* as a method chain. Use this to detect whether a field path must be treated as an
|
|
39
|
+
* opaque key rather than split on `.` for Lodash set/get operations.
|
|
40
|
+
*/
|
|
41
|
+
declare const pathContainsFunctionNode: (path: string) => boolean;
|
|
42
|
+
declare const isEmpty: (methodChain: Chain) => boolean;
|
|
43
|
+
declare const getFunctionParams: (methodChain: Chain, ...functionNames: string[]) => Record<string, MethodChainLiteral[]>;
|
|
44
|
+
declare const removeFunctionNode: (methodChain: Chain, functionName: string) => Chain;
|
|
45
|
+
declare const isValid: (methodChain: string) => boolean;
|
|
46
|
+
/**
|
|
47
|
+
* The parsed chain, or undefined when it will not parse. Callers that read a chain while it is being
|
|
48
|
+
* authored hold half-typed input, where a throw is noise rather than an error.
|
|
49
|
+
*/
|
|
50
|
+
declare const tryParseMethodChain: (methodChain: string) => Chain | undefined;
|
|
51
|
+
/** The object a chain is rooted at: `current_case.inquiries` -> `current_case`. */
|
|
52
|
+
declare const methodChainRootName: (methodChain: string) => string | undefined;
|
|
53
|
+
declare const parseMethodChain: (methodChain: string) => Chain;
|
|
54
|
+
declare const methodChainToString: (methodChain: Chain | StringNode | NumberNode | ArrayNode) => string;
|
|
55
|
+
declare const appendedMethodChain: (parentChain: Chain, appended: string | MethodChainNode) => Chain;
|
|
56
|
+
declare const parseWithPartialOption: (path: string) => {
|
|
57
|
+
methodChain: Chain;
|
|
58
|
+
partial: string;
|
|
59
|
+
valid: boolean;
|
|
60
|
+
};
|
|
61
|
+
declare const pathIsNormative: (path: string) => boolean;
|
|
62
|
+
declare const getSyntaxError: () => typeof SyntaxError;
|
|
63
|
+
declare const methodChainNodeToJsonSchema: (node: StringNode | NumberNode | ArrayNode) => JsonSchema | null;
|
|
64
|
+
//#endregion
|
|
65
|
+
export { tryParseMethodChain as C, removeFunctionNode as S, methodChainToString as _, getFunctionParams as a, pathContainsFunctionNode as b, isCustomFunctionNode as c, isIdentifierNode as d, isStringNode as f, methodChainRootName as g, methodChainNodeToJsonSchema as h, containsFunctionNode as i, isEmpty as l, methodChainCache as m, MethodChainNodeTypes as n, getSyntaxError as o, isValid as p, appendedMethodChain as r, isArrayNode as s, EMPTY_METHOD_CHAIN as t, isFunctionNode as u, parseMethodChain as v, pathIsNormative as x, parseWithPartialOption as y };
|
|
66
|
+
//# sourceMappingURL=methodChain-B5vZEOff.d.mts.map
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import { i as peg$parse, n as peg$SyntaxError } from "./parser-BeTiVjRs.mjs";
|
|
2
|
+
import "./lib/jsonSchema.mjs";
|
|
3
|
+
import { reportError } from "./lib/errorReporter.mjs";
|
|
4
|
+
import "./components/SmartTextInput/parser/method-chain/types.mjs";
|
|
5
|
+
import { normalizeChain } from "./lib/methodChainNormalize.mjs";
|
|
6
|
+
import { last } from "lodash-es";
|
|
7
|
+
//#region lib/assertNever.ts
|
|
8
|
+
function assertNever(value) {
|
|
9
|
+
const dump = typeof value === "object" ? JSON.stringify(value) : value;
|
|
10
|
+
reportError(/* @__PURE__ */ new TypeError(`assertNever non-exhaustive match: ${dump}`));
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region lib/methodChain.ts
|
|
14
|
+
const methodChainCache = {};
|
|
15
|
+
const MethodChainNodeTypes = {
|
|
16
|
+
Chain: "chain",
|
|
17
|
+
String: "string",
|
|
18
|
+
Number: "number",
|
|
19
|
+
Identifier: "identifier",
|
|
20
|
+
Function: "function",
|
|
21
|
+
CustomFunction: "custom_function",
|
|
22
|
+
Array: "array"
|
|
23
|
+
};
|
|
24
|
+
const EMPTY_METHOD_CHAIN = {
|
|
25
|
+
type: MethodChainNodeTypes.Chain,
|
|
26
|
+
links: []
|
|
27
|
+
};
|
|
28
|
+
const isFunctionNode = (node) => node.type === MethodChainNodeTypes.Function;
|
|
29
|
+
const isCustomFunctionNode = (node) => node.type === MethodChainNodeTypes.CustomFunction;
|
|
30
|
+
const isIdentifierNode = (node) => node.type === MethodChainNodeTypes.Identifier;
|
|
31
|
+
const isStringNode = (node) => node.type === MethodChainNodeTypes.String;
|
|
32
|
+
const isArrayNode = (node) => node.type === MethodChainNodeTypes.Array;
|
|
33
|
+
const containsFunctionNode = (methodChain, ...functionNames) => methodChain.links.some((link) => isFunctionNode(link) && functionNames.includes(link.name));
|
|
34
|
+
/**
|
|
35
|
+
* Returns true if the string contains any function node (e.g. `.at(...)`) when parsed
|
|
36
|
+
* as a method chain. Use this to detect whether a field path must be treated as an
|
|
37
|
+
* opaque key rather than split on `.` for Lodash set/get operations.
|
|
38
|
+
*/
|
|
39
|
+
const pathContainsFunctionNode = (path) => {
|
|
40
|
+
try {
|
|
41
|
+
return parseMethodChain(path).links.some((link) => link.type === MethodChainNodeTypes.Function || link.type === MethodChainNodeTypes.CustomFunction);
|
|
42
|
+
} catch {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
const isEmpty$1 = (methodChain) => methodChain.links.length === 0;
|
|
47
|
+
const getFunctionParams = (methodChain, ...functionNames) => {
|
|
48
|
+
return Object.fromEntries(methodChain.links.filter((link) => isFunctionNode(link)).filter((link) => functionNames.includes(link.name)).map((link) => [link.name, flattenParamsToString(link.params)]));
|
|
49
|
+
};
|
|
50
|
+
const removeFunctionNode = (methodChain, functionName) => {
|
|
51
|
+
return {
|
|
52
|
+
type: MethodChainNodeTypes.Chain,
|
|
53
|
+
links: methodChain.links.filter((link) => link.type !== MethodChainNodeTypes.Function || link.name !== functionName)
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
const flattenParamsToString = (params) => {
|
|
57
|
+
const result = [];
|
|
58
|
+
for (const param of params) switch (param.type) {
|
|
59
|
+
case MethodChainNodeTypes.Chain:
|
|
60
|
+
result.push(...flattenChainToString(param));
|
|
61
|
+
break;
|
|
62
|
+
case MethodChainNodeTypes.String:
|
|
63
|
+
case MethodChainNodeTypes.Number:
|
|
64
|
+
result.push(param.value);
|
|
65
|
+
break;
|
|
66
|
+
case MethodChainNodeTypes.Array:
|
|
67
|
+
result.push(param.items.map((item) => item.value));
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
return result;
|
|
71
|
+
};
|
|
72
|
+
const flattenChainToString = (methodChain) => methodChain.links.map((link) => {
|
|
73
|
+
switch (link.type) {
|
|
74
|
+
case MethodChainNodeTypes.Function:
|
|
75
|
+
case MethodChainNodeTypes.CustomFunction: return flattenParamsToString(link.params);
|
|
76
|
+
case MethodChainNodeTypes.Identifier: return link.name;
|
|
77
|
+
}
|
|
78
|
+
}).flat();
|
|
79
|
+
const isValid = (methodChain) => {
|
|
80
|
+
try {
|
|
81
|
+
parseMethodChain(methodChain);
|
|
82
|
+
return true;
|
|
83
|
+
} catch {
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* The parsed chain, or undefined when it will not parse. Callers that read a chain while it is being
|
|
89
|
+
* authored hold half-typed input, where a throw is noise rather than an error.
|
|
90
|
+
*/
|
|
91
|
+
const tryParseMethodChain = (methodChain) => {
|
|
92
|
+
try {
|
|
93
|
+
return parseMethodChain(methodChain);
|
|
94
|
+
} catch {
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
/** The object a chain is rooted at: `current_case.inquiries` -> `current_case`. */
|
|
99
|
+
const methodChainRootName = (methodChain) => {
|
|
100
|
+
const [root] = tryParseMethodChain(methodChain)?.links ?? [];
|
|
101
|
+
return root && isIdentifierNode(root) ? root.name : void 0;
|
|
102
|
+
};
|
|
103
|
+
const parseMethodChain = (methodChain) => {
|
|
104
|
+
if (!methodChain || methodChain === "") return EMPTY_METHOD_CHAIN;
|
|
105
|
+
if (!methodChainCache[methodChain]) methodChainCache[methodChain] = normalizeChain(peg$parse(methodChain, { strict: true }));
|
|
106
|
+
return methodChainCache[methodChain];
|
|
107
|
+
};
|
|
108
|
+
const memberToString = (value) => {
|
|
109
|
+
return `'${value.replace(/'/g, "\\'")}'`;
|
|
110
|
+
};
|
|
111
|
+
const expandExponentialNotation = (str) => {
|
|
112
|
+
const match = /^(-?)(\d)(?:\.(\d+))?e([+-]\d+)$/.exec(str);
|
|
113
|
+
if (!match) return str;
|
|
114
|
+
const [, sign, leadingDigit, fractionDigits = "", exponentStr] = match;
|
|
115
|
+
const digits = leadingDigit + fractionDigits;
|
|
116
|
+
const exponent = Number(exponentStr);
|
|
117
|
+
if (exponent < 0) return `${sign}0.${"0".repeat(-exponent - 1)}${digits}`;
|
|
118
|
+
return `${sign}${digits}${"0".repeat(exponent - fractionDigits.length)}`;
|
|
119
|
+
};
|
|
120
|
+
const numberLiteralToString = (value) => {
|
|
121
|
+
if (!Number.isFinite(value)) return `${value}`;
|
|
122
|
+
const str = value.toString();
|
|
123
|
+
return /e/i.test(str) ? expandExponentialNotation(str) : str;
|
|
124
|
+
};
|
|
125
|
+
const methodChainToString = (methodChain) => {
|
|
126
|
+
switch (methodChain.type) {
|
|
127
|
+
case MethodChainNodeTypes.String: return methodChain.value;
|
|
128
|
+
case MethodChainNodeTypes.Number: return numberLiteralToString(methodChain.value);
|
|
129
|
+
case MethodChainNodeTypes.Array: return `[${methodChain.items.map((item) => item.type === MethodChainNodeTypes.String ? memberToString(item.value) : `#${numberLiteralToString(item.value)}`).join(", ")}]`;
|
|
130
|
+
default: {
|
|
131
|
+
const regex = /* @__PURE__ */ new RegExp("^@?[a-zA-Z0-9_-]+$");
|
|
132
|
+
return methodChain.links.map((link, index) => {
|
|
133
|
+
switch (link.type) {
|
|
134
|
+
case MethodChainNodeTypes.Identifier: {
|
|
135
|
+
const fullName = `${link.prefix ?? ""}${link.name}`;
|
|
136
|
+
return index === 0 ? fullName : regex.test(fullName) ? `.${fullName}` : `['${fullName.replace(/'/g, "\\'")}']`;
|
|
137
|
+
}
|
|
138
|
+
case MethodChainNodeTypes.Function: return `.${link.name}(${link.params.map((param) => {
|
|
139
|
+
switch (param.type) {
|
|
140
|
+
case MethodChainNodeTypes.String: return memberToString(param.value);
|
|
141
|
+
case MethodChainNodeTypes.Number: return `#${numberLiteralToString(param.value)}`;
|
|
142
|
+
case MethodChainNodeTypes.Chain:
|
|
143
|
+
case MethodChainNodeTypes.Array: return methodChainToString(param);
|
|
144
|
+
}
|
|
145
|
+
}).join(", ")})`;
|
|
146
|
+
case MethodChainNodeTypes.CustomFunction: {
|
|
147
|
+
const paramStr = link.params.map((param) => {
|
|
148
|
+
switch (param.type) {
|
|
149
|
+
case MethodChainNodeTypes.String: return memberToString(param.value);
|
|
150
|
+
case MethodChainNodeTypes.Number: return `#${numberLiteralToString(param.value)}`;
|
|
151
|
+
case MethodChainNodeTypes.Chain:
|
|
152
|
+
case MethodChainNodeTypes.Array: return methodChainToString(param);
|
|
153
|
+
}
|
|
154
|
+
}).join(", ");
|
|
155
|
+
return [
|
|
156
|
+
index === 0 ? "" : ".",
|
|
157
|
+
`@${link.name}`,
|
|
158
|
+
link.params.length === 0 ? "" : `(${paramStr})`
|
|
159
|
+
].join("");
|
|
160
|
+
}
|
|
161
|
+
default: assertNever(link);
|
|
162
|
+
}
|
|
163
|
+
}).join("");
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
const appendedMethodChain = (parentChain, appended) => {
|
|
168
|
+
const buildNode = (name) => {
|
|
169
|
+
if (name.startsWith("@")) return {
|
|
170
|
+
type: MethodChainNodeTypes.CustomFunction,
|
|
171
|
+
name: name.slice(1),
|
|
172
|
+
params: []
|
|
173
|
+
};
|
|
174
|
+
return {
|
|
175
|
+
type: MethodChainNodeTypes.Identifier,
|
|
176
|
+
name
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
return {
|
|
180
|
+
type: MethodChainNodeTypes.Chain,
|
|
181
|
+
links: [...parentChain.links, typeof appended === "string" ? buildNode(appended) : appended]
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
const parseWithPartialOption = (path) => {
|
|
185
|
+
if (isValid(path)) {
|
|
186
|
+
const methodChain = parseMethodChain(path);
|
|
187
|
+
return {
|
|
188
|
+
methodChain: {
|
|
189
|
+
type: MethodChainNodeTypes.Chain,
|
|
190
|
+
links: methodChain.links.slice(0, methodChain.links.length - 1)
|
|
191
|
+
},
|
|
192
|
+
partial: last(methodChain.links)?.name || "",
|
|
193
|
+
valid: true
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
const rawParse = (input) => {
|
|
197
|
+
return normalizeChain(peg$parse(input, { strict: true }));
|
|
198
|
+
};
|
|
199
|
+
try {
|
|
200
|
+
if (path.endsWith(".")) return {
|
|
201
|
+
methodChain: rawParse(path.slice(0, -1)),
|
|
202
|
+
partial: "",
|
|
203
|
+
valid: true
|
|
204
|
+
};
|
|
205
|
+
if (path.lastIndexOf("[") > path.lastIndexOf("]")) {
|
|
206
|
+
const partialString = path.slice(path.lastIndexOf("[") + 2);
|
|
207
|
+
const partialValue = partialString.endsWith("'") ? partialString.slice(0, -1) : partialString;
|
|
208
|
+
return {
|
|
209
|
+
methodChain: rawParse(path.slice(0, path.lastIndexOf("["))),
|
|
210
|
+
partial: partialValue,
|
|
211
|
+
valid: true
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
} catch {}
|
|
215
|
+
return {
|
|
216
|
+
methodChain: EMPTY_METHOD_CHAIN,
|
|
217
|
+
partial: path,
|
|
218
|
+
valid: false
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
const pathIsNormative = (path) => {
|
|
222
|
+
return path.split(".").every((part) => /^[a-zA-Z0-9_-]+$/.test(part));
|
|
223
|
+
};
|
|
224
|
+
const getSyntaxError = () => peg$SyntaxError;
|
|
225
|
+
const methodChainNodeToJsonSchema = (node) => {
|
|
226
|
+
if (node.type === MethodChainNodeTypes.String) return { type: "string" };
|
|
227
|
+
else if (node.type === MethodChainNodeTypes.Number) return { type: "number" };
|
|
228
|
+
else if (node.type === MethodChainNodeTypes.Array) if (node.items.length > 0) return {
|
|
229
|
+
type: "array",
|
|
230
|
+
items: node.items[0].type === MethodChainNodeTypes.String ? { type: "string" } : { type: "number" }
|
|
231
|
+
};
|
|
232
|
+
else return {
|
|
233
|
+
type: "array",
|
|
234
|
+
items: { type: "string" }
|
|
235
|
+
};
|
|
236
|
+
return null;
|
|
237
|
+
};
|
|
238
|
+
//#endregion
|
|
239
|
+
export { tryParseMethodChain as C, removeFunctionNode as S, methodChainToString as _, getFunctionParams as a, pathContainsFunctionNode as b, isCustomFunctionNode as c, isIdentifierNode as d, isStringNode as f, methodChainRootName as g, methodChainNodeToJsonSchema as h, containsFunctionNode as i, isEmpty$1 as l, methodChainCache as m, MethodChainNodeTypes as n, getSyntaxError as o, isValid as p, appendedMethodChain as r, isArrayNode as s, EMPTY_METHOD_CHAIN as t, isFunctionNode as u, parseMethodChain as v, assertNever as w, pathIsNormative as x, parseWithPartialOption as y };
|
|
240
|
+
|
|
241
|
+
//# sourceMappingURL=methodChain-L_h8Z8Bx.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"methodChain-L_h8Z8Bx.mjs","names":["isEmpty","updatedParse","UpdatedSyntaxError"],"sources":["../lib/assertNever.ts","../lib/methodChain.ts"],"sourcesContent":["import { reportError } from './errorReporter';\n\n// @ts-expect-error Returns never so the compiler checks exhaustiveness, but doesn't throw so a malformed\n// value degrades instead of breaking render.\nexport function assertNever(value: never): never {\n const dump = typeof value === 'object' ? JSON.stringify(value) : value;\n reportError(new TypeError(`assertNever non-exhaustive match: ${dump}`));\n}\n","import { last } from 'lodash-es';\n\nimport {\n parse as updatedParse,\n SyntaxError as UpdatedSyntaxError,\n} from '@persona/design-system/components/SmartTextInput/parser/method-chain/parser';\nimport { ASTNodeType } from '@persona/design-system/components/SmartTextInput/parser/method-chain/types';\n\nimport { assertNever } from './assertNever';\nimport { type JsonSchema, JsonSchemaTypes } from './jsonSchema';\nimport { normalizeChain } from './methodChainNormalize';\nimport type {\n Chain,\n FunctionNode,\n CustomFunctionNode,\n IdentifierNode,\n StringNode,\n NumberNode,\n ArrayNode,\n FunctionParamType,\n MethodChainNode,\n} from './methodChainTypes';\n\n// Re-export types for backward compatibility\nexport {\n Chain,\n FunctionNode,\n CustomFunctionNode,\n IdentifierNode,\n StringNode,\n NumberNode,\n ArrayNode,\n FunctionParamType,\n MethodChainNode,\n};\n\nexport const methodChainCache: { [key: string]: Chain } = {};\n\nexport const MethodChainNodeTypes = {\n Chain: ASTNodeType.Chain,\n String: ASTNodeType.String,\n Number: ASTNodeType.Number,\n Identifier: ASTNodeType.Identifier,\n Function: ASTNodeType.Function,\n CustomFunction: ASTNodeType.CustomFunction,\n Array: ASTNodeType.Array,\n} as const;\n\nexport const EMPTY_METHOD_CHAIN: Chain = {\n type: MethodChainNodeTypes.Chain,\n links: [],\n};\n\ntype MethodChainLiteral = string | number | (string | number)[];\n\nexport const isFunctionNode = (node: MethodChainNode): node is FunctionNode =>\n node.type === MethodChainNodeTypes.Function;\n\nexport const isCustomFunctionNode = (node: MethodChainNode): node is CustomFunctionNode =>\n node.type === MethodChainNodeTypes.CustomFunction;\n\nexport const isIdentifierNode = (node: MethodChainNode): node is IdentifierNode =>\n node.type === MethodChainNodeTypes.Identifier;\n\nexport const isStringNode = (node: FunctionParamType): node is StringNode =>\n node.type === MethodChainNodeTypes.String;\n\nexport const isArrayNode = (node: FunctionParamType): node is ArrayNode =>\n node.type === MethodChainNodeTypes.Array;\n\nexport const containsFunctionNode = (methodChain: Chain, ...functionNames: string[]): boolean =>\n methodChain.links.some((link) => isFunctionNode(link) && functionNames.includes(link.name));\n\n/**\n * Returns true if the string contains any function node (e.g. `.at(...)`) when parsed\n * as a method chain. Use this to detect whether a field path must be treated as an\n * opaque key rather than split on `.` for Lodash set/get operations.\n */\nexport const pathContainsFunctionNode = (path: string): boolean => {\n try {\n const chain = parseMethodChain(path);\n return chain.links.some(\n (link) =>\n link.type === MethodChainNodeTypes.Function ||\n link.type === MethodChainNodeTypes.CustomFunction,\n );\n } catch {\n return false;\n }\n};\n\nexport const isEmpty = (methodChain: Chain): boolean => methodChain.links.length === 0;\n\nexport const getFunctionParams = (\n methodChain: Chain,\n ...functionNames: string[]\n): Record<string, MethodChainLiteral[]> => {\n return Object.fromEntries(\n methodChain.links\n .filter((link) => isFunctionNode(link))\n .filter((link) => functionNames.includes(link.name))\n .map((link) => [link.name, flattenParamsToString(link.params)]),\n );\n};\n\nexport const removeFunctionNode = (methodChain: Chain, functionName: string): Chain => {\n return {\n type: MethodChainNodeTypes.Chain,\n links: methodChain.links.filter(\n (link) => link.type !== MethodChainNodeTypes.Function || link.name !== functionName,\n ),\n };\n};\n\nconst flattenParamsToString = (params: FunctionParamType[]): MethodChainLiteral[] => {\n const result: MethodChainLiteral[] = [];\n\n for (const param of params) {\n switch (param.type) {\n case MethodChainNodeTypes.Chain:\n result.push(...flattenChainToString(param));\n break;\n case MethodChainNodeTypes.String:\n case MethodChainNodeTypes.Number:\n result.push(param.value);\n break;\n case MethodChainNodeTypes.Array:\n result.push(param.items.map((item) => item.value));\n break;\n }\n }\n\n return result;\n};\n\nconst flattenChainToString = (methodChain: Chain): MethodChainLiteral[] =>\n methodChain.links\n .map((link) => {\n switch (link.type) {\n case MethodChainNodeTypes.Function:\n case MethodChainNodeTypes.CustomFunction:\n return flattenParamsToString(link.params);\n case MethodChainNodeTypes.Identifier:\n return link.name;\n }\n })\n .flat();\n\nexport const isValid = (methodChain: string): boolean => {\n try {\n parseMethodChain(methodChain);\n return true;\n } catch {\n return false;\n }\n};\n\n/**\n * The parsed chain, or undefined when it will not parse. Callers that read a chain while it is being\n * authored hold half-typed input, where a throw is noise rather than an error.\n */\nexport const tryParseMethodChain = (methodChain: string): Chain | undefined => {\n try {\n return parseMethodChain(methodChain);\n } catch {\n return undefined;\n }\n};\n\n/** The object a chain is rooted at: `current_case.inquiries` -> `current_case`. */\nexport const methodChainRootName = (methodChain: string): string | undefined => {\n const [root] = tryParseMethodChain(methodChain)?.links ?? [];\n return root && isIdentifierNode(root) ? root.name : undefined;\n};\n\nexport const parseMethodChain = (methodChain: string): Chain => {\n if (!methodChain || methodChain === '') {\n return EMPTY_METHOD_CHAIN;\n }\n\n if (!methodChainCache[methodChain]) {\n methodChainCache[methodChain] = normalizeChain(updatedParse(methodChain, { strict: true }));\n }\n return methodChainCache[methodChain];\n};\n\nconst memberToString = (value: string): string => {\n return `'${value.replace(/'/g, \"\\\\'\")}'`;\n};\n\n// Number#toString gives the shortest decimal string that round-trips back to the same\n// float64, but for magnitudes below 1e-6 (or above 1e21) it switches to exponential\n// notation (e.g. `0.0000001` -> \"1e-7\"), which the method chain grammar's plain-decimal\n// literal can't parse. Expand that exponential form back into plain decimal by shifting\n// its digits, rather than capping fraction digits (e.g. via toLocaleString), which silently\n// rounds magnitudes below the cap to \"0\" instead of reproducing them.\nconst expandExponentialNotation = (str: string): string => {\n const match = /^(-?)(\\d)(?:\\.(\\d+))?e([+-]\\d+)$/.exec(str);\n if (!match) {\n return str;\n }\n const [, sign, leadingDigit, fractionDigits = '', exponentStr] = match;\n const digits = leadingDigit + fractionDigits;\n const exponent = Number(exponentStr);\n\n if (exponent < 0) {\n return `${sign}0.${'0'.repeat(-exponent - 1)}${digits}`;\n }\n // Positive exponential notation only appears at exponent >= 21 (Number#toString's own\n // threshold), while a double's mantissa never carries more than 17 significant digits,\n // so the exponent always reaches past the end of `digits` — there's no case where the\n // decimal point lands inside them.\n return `${sign}${digits}${'0'.repeat(exponent - fractionDigits.length)}`;\n};\n\nconst numberLiteralToString = (value: number): string => {\n // The grammar has no literal for Infinity/NaN; render/label call sites have no way to\n // recover from a throw, so fall back to JS's own string form instead of crashing them.\n if (!Number.isFinite(value)) {\n return `${value}`;\n }\n\n const str = value.toString();\n return /e/i.test(str) ? expandExponentialNotation(str) : str;\n};\n\nexport const methodChainToString = (\n methodChain: Chain | StringNode | NumberNode | ArrayNode,\n): string => {\n switch (methodChain.type) {\n case MethodChainNodeTypes.String:\n return methodChain.value;\n case MethodChainNodeTypes.Number:\n return numberLiteralToString(methodChain.value);\n case MethodChainNodeTypes.Array:\n return `[${methodChain.items\n .map((item) =>\n item.type === MethodChainNodeTypes.String\n ? memberToString(item.value)\n : `#${numberLiteralToString(item.value)}`,\n )\n .join(', ')}]`;\n default: {\n const regex = new RegExp('^@?[a-zA-Z0-9_-]+$');\n return methodChain.links\n .map((link, index) => {\n switch (link.type) {\n case MethodChainNodeTypes.Identifier: {\n const fullName = `${link.prefix ?? ''}${link.name}`;\n return index === 0\n ? fullName\n : regex.test(fullName)\n ? `.${fullName}`\n : `['${fullName.replace(/'/g, \"\\\\'\")}']`;\n }\n case MethodChainNodeTypes.Function: {\n return `.${link.name}(${link.params\n .map((param) => {\n switch (param.type) {\n case MethodChainNodeTypes.String:\n return memberToString(param.value);\n case MethodChainNodeTypes.Number:\n return `#${numberLiteralToString(param.value)}`;\n case MethodChainNodeTypes.Chain:\n case MethodChainNodeTypes.Array:\n return methodChainToString(param);\n }\n })\n .join(', ')})`;\n }\n case MethodChainNodeTypes.CustomFunction: {\n const paramStr = link.params\n .map((param) => {\n switch (param.type) {\n case MethodChainNodeTypes.String:\n return memberToString(param.value);\n case MethodChainNodeTypes.Number:\n return `#${numberLiteralToString(param.value)}`;\n case MethodChainNodeTypes.Chain:\n case MethodChainNodeTypes.Array:\n return methodChainToString(param);\n }\n })\n .join(', ');\n return [\n index === 0 ? '' : '.',\n `@${link.name}`,\n link.params.length === 0 ? '' : `(${paramStr})`,\n ].join('');\n }\n default:\n assertNever(link);\n }\n })\n .join('');\n }\n }\n};\n\nexport const appendedMethodChain = (\n parentChain: Chain,\n appended: string | MethodChainNode,\n): Chain => {\n const buildNode = (name: string): MethodChainNode => {\n if (name.startsWith('@')) {\n return { type: MethodChainNodeTypes.CustomFunction, name: name.slice(1), params: [] };\n }\n return { type: MethodChainNodeTypes.Identifier, name };\n };\n\n return {\n type: MethodChainNodeTypes.Chain,\n links: [...parentChain.links, typeof appended === 'string' ? buildNode(appended) : appended],\n };\n};\n\nexport const parseWithPartialOption = (\n path: string,\n): { methodChain: Chain; partial: string; valid: boolean } => {\n if (isValid(path)) {\n const methodChain = parseMethodChain(path);\n\n return {\n methodChain: {\n type: MethodChainNodeTypes.Chain,\n links: methodChain.links.slice(0, methodChain.links.length - 1),\n },\n partial: last(methodChain.links)?.name || '',\n valid: true,\n };\n }\n\n const rawParse = (input: string): Chain => {\n return normalizeChain(updatedParse(input, { strict: true }));\n };\n\n try {\n if (path.endsWith('.')) {\n return {\n methodChain: rawParse(path.slice(0, -1)),\n partial: '',\n valid: true,\n };\n }\n\n if (path.lastIndexOf('[') > path.lastIndexOf(']')) {\n const partialString = path.slice(path.lastIndexOf('[') + 2);\n const partialValue = partialString.endsWith(\"'\") ? partialString.slice(0, -1) : partialString;\n return {\n methodChain: rawParse(path.slice(0, path.lastIndexOf('['))),\n partial: partialValue,\n valid: true,\n };\n }\n } catch {\n /* empty */\n }\n\n return {\n methodChain: EMPTY_METHOD_CHAIN,\n partial: path,\n valid: false,\n };\n};\n\n// Check if the path can be parsed as legacy method chain format.\n// Normative means all the name parts are\n// 1. delimited by only dots and\n// 2. only contain alphanumeric characters, underscores, and hyphens.\nexport const pathIsNormative = (path: string): boolean => {\n return path.split('.').every((part) => /^[a-zA-Z0-9_-]+$/.test(part));\n};\nexport const getSyntaxError = (): typeof UpdatedSyntaxError => UpdatedSyntaxError;\n\nexport const methodChainNodeToJsonSchema = (\n node: StringNode | NumberNode | ArrayNode,\n): JsonSchema | null => {\n if (node.type === MethodChainNodeTypes.String) {\n return {\n type: JsonSchemaTypes.String,\n };\n } else if (node.type === MethodChainNodeTypes.Number) {\n return {\n type: JsonSchemaTypes.Number,\n };\n } else if (node.type === MethodChainNodeTypes.Array) {\n // Determine the items schema based on the first item type\n // For simplicity, assume all items are the same type\n if (node.items.length > 0) {\n const firstItem = node.items[0];\n const itemSchema: JsonSchema =\n firstItem.type === MethodChainNodeTypes.String\n ? { type: JsonSchemaTypes.String }\n : { type: JsonSchemaTypes.Number };\n\n return {\n type: JsonSchemaTypes.Array,\n items: itemSchema,\n };\n } else {\n return {\n type: JsonSchemaTypes.Array,\n items: { type: JsonSchemaTypes.String },\n };\n }\n }\n\n return null;\n};\n"],"mappings":"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"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { c as ASTIdentifierNode, d as ASTNumberNode, m as ASTStringNode, n as ASTChain, o as ASTFunctionNode, r as ASTCustomFunctionNode, t as ASTArrayNode } from "./types-M-rsm1Km.mjs";
|
|
2
|
+
|
|
3
|
+
//#region lib/methodChainTypes.d.ts
|
|
4
|
+
type MethodChainNode = IdentifierNode | FunctionNode | CustomFunctionNode;
|
|
5
|
+
type FunctionParamType = Chain | StringNode | NumberNode | ArrayNode;
|
|
6
|
+
type Chain = Omit<ASTChain, 'children' | 'start' | 'end'> & {
|
|
7
|
+
links: MethodChainNode[];
|
|
8
|
+
};
|
|
9
|
+
type StringNode = Omit<ASTStringNode, 'start' | 'end'>;
|
|
10
|
+
type NumberNode = Omit<ASTNumberNode, 'start' | 'end'>;
|
|
11
|
+
type ArrayNode = Omit<ASTArrayNode, 'children' | 'start' | 'end'> & {
|
|
12
|
+
items: (StringNode | NumberNode)[];
|
|
13
|
+
};
|
|
14
|
+
type IdentifierNode = Omit<ASTIdentifierNode, 'start' | 'end'>;
|
|
15
|
+
type FunctionNode = Omit<ASTFunctionNode, 'children' | 'start' | 'end'> & {
|
|
16
|
+
params: FunctionParamType[];
|
|
17
|
+
};
|
|
18
|
+
type CustomFunctionNode = Omit<ASTCustomFunctionNode, 'children' | 'start' | 'end'> & {
|
|
19
|
+
params: FunctionParamType[];
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
export { FunctionParamType as a, NumberNode as c, FunctionNode as i, StringNode as l, Chain as n, IdentifierNode as o, CustomFunctionNode as r, MethodChainNode as s, ArrayNode as t };
|
|
23
|
+
//# sourceMappingURL=methodChainTypes-BVkTI8MX.d.mts.map
|
package/dist/mixins/focus.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as Variant } from "../theme-
|
|
2
|
-
import { t as PseudoClassProps } from "../PseudoClassProps-
|
|
1
|
+
import { o as Variant } from "../theme-BB1B6Wkz.mjs";
|
|
2
|
+
import { t as PseudoClassProps } from "../PseudoClassProps-BOVN6Etr.mjs";
|
|
3
3
|
import * as _$styled_components0 from "styled-components";
|
|
4
4
|
|
|
5
5
|
//#region mixins/hoverable.d.ts
|
package/dist/mixins/input.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as InputSizes, r as inputMixin, t as InputMixinProps } from "../input-
|
|
1
|
+
import { n as InputSizes, r as inputMixin, t as InputMixinProps } from "../input-DpHBIUpP.mjs";
|
|
2
2
|
export { InputMixinProps, InputSizes, inputMixin as default };
|
package/dist/mixins/input.mjs
CHANGED
|
@@ -38,7 +38,10 @@ const inputMixin = css`
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
&${isDisabled} {
|
|
41
|
-
background: ${({ theme }) =>
|
|
41
|
+
background: ${({ theme }) => {
|
|
42
|
+
const tokens = semanticTokens(theme);
|
|
43
|
+
return tokens ? withAlpha(tokens.InputSurfaceDisabled, tokens.Opacity65) : theme.color.background.disabled;
|
|
44
|
+
}};
|
|
42
45
|
border-color: ${({ theme }) => semanticColor(theme, "InputBorderDisabled", theme.color.border.disabled)};
|
|
43
46
|
color: ${({ theme }) => semanticColor(theme, "FgDisabled", theme.color.text.disabled)};
|
|
44
47
|
::placeholder {
|
|
@@ -80,8 +83,9 @@ const inputMixin = css`
|
|
|
80
83
|
}
|
|
81
84
|
}}
|
|
82
85
|
|
|
86
|
+
/* Validation borders are for enabled fields only. Disabled fields keep the
|
|
87
|
+
disabled border above, whose :disabled selector outranks this bare rule. */
|
|
83
88
|
${({ theme, hasError, hasWarning }) => {
|
|
84
|
-
const tokens = semanticTokens(theme);
|
|
85
89
|
if (hasError) {
|
|
86
90
|
const danger = semanticColor(theme, "BorderDanger", theme.color.variants.danger.default);
|
|
87
91
|
return css`
|
|
@@ -90,12 +94,6 @@ const inputMixin = css`
|
|
|
90
94
|
&${isHovered}${isNotDisabled} {
|
|
91
95
|
border-color: ${danger};
|
|
92
96
|
}
|
|
93
|
-
|
|
94
|
-
${tokens && css`
|
|
95
|
-
&${isDisabled} {
|
|
96
|
-
border-color: ${withAlpha(tokens.BorderDanger, tokens.Opacity65)};
|
|
97
|
-
}
|
|
98
|
-
`}
|
|
99
97
|
`;
|
|
100
98
|
}
|
|
101
99
|
if (hasWarning) {
|
|
@@ -106,12 +104,6 @@ const inputMixin = css`
|
|
|
106
104
|
&${isHovered}${isNotDisabled} {
|
|
107
105
|
border-color: ${warning};
|
|
108
106
|
}
|
|
109
|
-
|
|
110
|
-
${tokens && css`
|
|
111
|
-
&${isDisabled} {
|
|
112
|
-
border-color: ${withAlpha(tokens.BorderWarning, tokens.Opacity65)};
|
|
113
|
-
}
|
|
114
|
-
`}
|
|
115
107
|
`;
|
|
116
108
|
}
|
|
117
109
|
return css`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.mjs","names":[],"sources":["../../mixins/input.ts"],"sourcesContent":["import { css } from 'styled-components';\n\nimport { Color, Spacing, Typography } from '@persona/design-tokens';\nimport { withAlpha } from 'design-system/lib/color';\nimport { isDisabled, isHovered, isNotDisabled } from 'design-system/lib/pseudoClass';\nimport { semanticColor, semanticTokens } from 'design-system/lib/semanticColor';\nimport { focusOutlineControlled } from 'design-system/mixins/focus';\nimport { printMixins } from 'design-system/mixins/print';\nimport type ErrorProps from 'design-system/types/ErrorProps';\nimport type PseudoClassProps from 'design-system/types/PseudoClassProps';\nimport { TransitionDuration } from 'design-system/variables/transitions';\n\nexport type InputSizes = 'md' | 'sm';\n\nexport interface InputMixinProps extends ErrorProps, PseudoClassProps {\n $size?: InputSizes;\n}\n\n/**\n * Provides input-like hover and focus outline effects. Can also be applied to\n * non-input elements (like divs) to give input-like styles.\n */\nconst inputMixin = css<InputMixinProps>`\n background: ${({ theme }) =>\n semanticColor(theme, 'InputSurfaceDefault', theme.color.background.primary)};\n color: ${({ theme }) => semanticColor(theme, 'FgPrimary', theme.color.text.primary)};\n border-width: 1px;\n border-style: solid;\n border-color: ${({ theme }) => semanticColor(theme, 'InputBorderDefault', theme.color.border.input)};\n box-sizing: border-box;\n border-radius: ${({ theme }) => theme.element.borderRadius};\n\n width: 100%;\n min-width: 0;\n\n ${focusOutlineControlled}\n\n text-decoration: none;\n transition-duration: ${TransitionDuration.Fast};\n transition-property: background-color, color, border-color, width, height;\n\n /* Some input-likes like <select/> reduce opacity when disabled */\n opacity: 1;\n\n &::placeholder {\n font-weight: ${({ theme }) => theme.text.paragraph.md.fontWeight};\n color: ${({ theme }) => semanticColor(theme, 'FgSecondary', theme.color.text.tertiary)};\n }\n\n &${isDisabled} {\n background: ${({ theme })
|
|
1
|
+
{"version":3,"file":"input.mjs","names":[],"sources":["../../mixins/input.ts"],"sourcesContent":["import { css } from 'styled-components';\n\nimport { Color, Spacing, Typography } from '@persona/design-tokens';\nimport { withAlpha } from 'design-system/lib/color';\nimport { isDisabled, isHovered, isNotDisabled } from 'design-system/lib/pseudoClass';\nimport { semanticColor, semanticTokens } from 'design-system/lib/semanticColor';\nimport { focusOutlineControlled } from 'design-system/mixins/focus';\nimport { printMixins } from 'design-system/mixins/print';\nimport type ErrorProps from 'design-system/types/ErrorProps';\nimport type PseudoClassProps from 'design-system/types/PseudoClassProps';\nimport { TransitionDuration } from 'design-system/variables/transitions';\n\nexport type InputSizes = 'md' | 'sm';\n\nexport interface InputMixinProps extends ErrorProps, PseudoClassProps {\n $size?: InputSizes;\n}\n\n/**\n * Provides input-like hover and focus outline effects. Can also be applied to\n * non-input elements (like divs) to give input-like styles.\n */\nconst inputMixin = css<InputMixinProps>`\n background: ${({ theme }) =>\n semanticColor(theme, 'InputSurfaceDefault', theme.color.background.primary)};\n color: ${({ theme }) => semanticColor(theme, 'FgPrimary', theme.color.text.primary)};\n border-width: 1px;\n border-style: solid;\n border-color: ${({ theme }) => semanticColor(theme, 'InputBorderDefault', theme.color.border.input)};\n box-sizing: border-box;\n border-radius: ${({ theme }) => theme.element.borderRadius};\n\n width: 100%;\n min-width: 0;\n\n ${focusOutlineControlled}\n\n text-decoration: none;\n transition-duration: ${TransitionDuration.Fast};\n transition-property: background-color, color, border-color, width, height;\n\n /* Some input-likes like <select/> reduce opacity when disabled */\n opacity: 1;\n\n &::placeholder {\n font-weight: ${({ theme }) => theme.text.paragraph.md.fontWeight};\n color: ${({ theme }) => semanticColor(theme, 'FgSecondary', theme.color.text.tertiary)};\n }\n\n &${isDisabled} {\n background: ${({ theme }) => {\n const tokens = semanticTokens(theme);\n return tokens\n ? withAlpha(tokens.InputSurfaceDisabled, tokens.Opacity65)\n : theme.color.background.disabled;\n }};\n border-color: ${({ theme }) =>\n semanticColor(theme, 'InputBorderDisabled', theme.color.border.disabled)};\n color: ${({ theme }) => semanticColor(theme, 'FgDisabled', theme.color.text.disabled)};\n ::placeholder {\n color: ${({ theme }) => semanticColor(theme, 'FgDisabled', theme.color.text.disabled)};\n }\n }\n\n &${isHovered}${isNotDisabled} {\n ${({ theme }) => {\n const tokens = semanticTokens(theme);\n return tokens\n ? css`\n background: ${tokens.InputSurfaceHover};\n border-color: ${tokens.InputBorderHover};\n `\n : css`\n border-color: ${theme.color.border.inputHover};\n `;\n }}\n }\n\n ${({ $size }) => {\n switch ($size) {\n default:\n case 'md':\n return css`\n height: ${({ theme }) => theme.element.height.xs};\n padding-top: ${Spacing[2]};\n padding-right: ${Spacing[3]};\n padding-bottom: ${Spacing[2]};\n padding-left: ${Spacing[3]};\n ${Typography.TextMedium};\n `;\n case 'sm':\n return css`\n height: 24px;\n padding-top: ${Spacing[1]};\n padding-right: ${Spacing[2]};\n padding-bottom: ${Spacing[1]};\n padding-left: ${Spacing[2]};\n ${Typography.TextSmall};\n `;\n }\n }}\n\n /* Validation borders are for enabled fields only. Disabled fields keep the\n disabled border above, whose :disabled selector outranks this bare rule. */\n ${({ theme, hasError, hasWarning }) => {\n if (hasError) {\n const danger = semanticColor(theme, 'BorderDanger', theme.color.variants.danger.default);\n return css`\n border-color: ${danger};\n\n &${isHovered}${isNotDisabled} {\n border-color: ${danger};\n }\n `;\n }\n\n if (hasWarning) {\n const warning = semanticColor(theme, 'BorderWarning', Color.CoreOrange700);\n return css`\n border-color: ${warning};\n\n &${isHovered}${isNotDisabled} {\n border-color: ${warning};\n }\n `;\n }\n\n return css`\n border-color: ${semanticColor(theme, 'InputBorderDefault', theme.color.border.input)};\n `;\n }}\n\n ${printMixins.hide}\n`;\n\nexport default inputMixin;\n"],"mappings":";;;;;;;;;;;;;AAsBA,MAAM,aAAa,GAAoB;iBACtB,EAAE,YACf,cAAc,OAAO,uBAAuB,MAAM,MAAM,WAAW,QAAQ,CAAC;YACpE,EAAE,YAAY,cAAc,OAAO,aAAa,MAAM,MAAM,KAAK,QAAQ,CAAC;;;mBAGnE,EAAE,YAAY,cAAc,OAAO,sBAAsB,MAAM,MAAM,OAAO,MAAM,CAAC;;oBAElF,EAAE,YAAY,MAAM,QAAQ,aAAa;;;;;IAKzD,uBAAuB;;;iCAGsB;;;;;;;oBAO7B,EAAE,YAAY,MAAM,KAAK,UAAU,GAAG,WAAW;cACvD,EAAE,YAAY,cAAc,OAAO,eAAe,MAAM,MAAM,KAAK,SAAS,CAAC;;;KAGtF,WAAW;mBACG,EAAE,YAAY;CAC3B,MAAM,SAAS,eAAe,MAAM;AACpC,QAAO,SACH,UAAU,OAAO,sBAAsB,OAAO,UAAU,GACxD,MAAM,MAAM,WAAW;EAC3B;qBACe,EAAE,YACjB,cAAc,OAAO,uBAAuB,MAAM,MAAM,OAAO,SAAS,CAAC;cACjE,EAAE,YAAY,cAAc,OAAO,cAAc,MAAM,MAAM,KAAK,SAAS,CAAC;;gBAE1E,EAAE,YAAY,cAAc,OAAO,cAAc,MAAM,MAAM,KAAK,SAAS,CAAC;;;;KAIvF,YAAY,cAAc;OACxB,EAAE,YAAY;CACf,MAAM,SAAS,eAAe,MAAM;AACpC,QAAO,SACH,GAAG;0BACa,OAAO,kBAAkB;4BACvB,OAAO,iBAAiB;cAE1C,GAAG;4BACe,MAAM,MAAM,OAAO,WAAW;;EAEpD;;;KAGD,EAAE,YAAY;AACf,SAAQ,OAAR;EACE;EACA,KAAK,KACH,QAAO,GAAG;qBACG,EAAE,YAAY,MAAM,QAAQ,OAAO,GAAG;yBAClC,QAAQ,GAAG;2BACT,QAAQ,GAAG;4BACV,QAAQ,GAAG;0BACb,QAAQ,GAAG;YACzB,WAAW,WAAW;;EAE5B,KAAK,KACH,QAAO,GAAG;;yBAEO,QAAQ,GAAG;2BACT,QAAQ,GAAG;4BACV,QAAQ,GAAG;0BACb,QAAQ,GAAG;YACzB,WAAW,UAAU;;;EAG7B;;;;KAIC,EAAE,OAAO,UAAU,iBAAiB;AACrC,KAAI,UAAU;EACZ,MAAM,SAAS,cAAc,OAAO,gBAAgB,MAAM,MAAM,SAAS,OAAO,QAAQ;AACxF,SAAO,GAAG;wBACQ,OAAO;;WAEpB,YAAY,cAAc;0BACX,OAAO;;;;AAK7B,KAAI,YAAY;EACd,MAAM,UAAU,cAAc,OAAO,iBAAiB,MAAM,cAAc;AAC1E,SAAO,GAAG;wBACQ,QAAQ;;WAErB,YAAY,cAAc;0BACX,QAAQ;;;;AAK9B,QAAO,GAAG;sBACQ,cAAc,OAAO,sBAAsB,MAAM,MAAM,OAAO,MAAM,CAAC;;EAEvF;;IAEA,YAAY,KAAK"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as Variant } from "../theme-
|
|
2
|
-
import { t as PseudoClassProps } from "../PseudoClassProps-
|
|
1
|
+
import { o as Variant } from "../theme-BB1B6Wkz.mjs";
|
|
2
|
+
import { t as PseudoClassProps } from "../PseudoClassProps-BOVN6Etr.mjs";
|
|
3
3
|
import * as _$styled_components0 from "styled-components";
|
|
4
4
|
|
|
5
5
|
//#region mixins/menuItem.d.ts
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { t as MaybeSemanticTheme } from "../semanticColor-Bg0H3RUL.mjs";
|
|
2
|
+
import * as _$styled_components0 from "styled-components";
|
|
3
|
+
|
|
4
|
+
//#region mixins/scrollbar.d.ts
|
|
5
|
+
declare const semanticScrollbar: _$styled_components0.FlattenInterpolation<_$styled_components0.ThemedStyledProps<{
|
|
6
|
+
theme?: MaybeSemanticTheme;
|
|
7
|
+
}, any>>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { semanticScrollbar };
|
|
10
|
+
//# sourceMappingURL=scrollbar.d.mts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { r as css } from "../styledComponentsInterop-NxwFjeA4.mjs";
|
|
2
|
+
import { semanticOnly } from "../lib/semanticColor.mjs";
|
|
3
|
+
import { Spacing } from "@persona/design-tokens";
|
|
4
|
+
//#region mixins/scrollbar.ts
|
|
5
|
+
const semanticScrollbar = css`
|
|
6
|
+
${semanticOnly((tokens) => `
|
|
7
|
+
scrollbar-color: ${tokens.BorderDefault} transparent;
|
|
8
|
+
|
|
9
|
+
&::-webkit-scrollbar {
|
|
10
|
+
width: ${Spacing[2]};
|
|
11
|
+
height: ${Spacing[2]};
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&::-webkit-scrollbar-track {
|
|
15
|
+
background: transparent;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&::-webkit-scrollbar-thumb {
|
|
19
|
+
background: ${tokens.BorderDefault};
|
|
20
|
+
border-radius: ${Spacing[2]};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
24
|
+
background: ${tokens.BorderHover};
|
|
25
|
+
}
|
|
26
|
+
`)}
|
|
27
|
+
`;
|
|
28
|
+
//#endregion
|
|
29
|
+
export { semanticScrollbar };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=scrollbar.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scrollbar.mjs","names":[],"sources":["../../mixins/scrollbar.ts"],"sourcesContent":["import { css } from 'styled-components';\n\nimport { Spacing } from '@persona/design-tokens';\nimport { semanticOnly } from 'design-system/lib/semanticColor';\n\n// Legacy themes keep the browser scrollbar. These colors exist only once semantic tokens are installed.\nexport const semanticScrollbar = css`\n ${semanticOnly(\n (tokens) => `\n scrollbar-color: ${tokens.BorderDefault} transparent;\n\n &::-webkit-scrollbar {\n width: ${Spacing[2]};\n height: ${Spacing[2]};\n }\n\n &::-webkit-scrollbar-track {\n background: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n background: ${tokens.BorderDefault};\n border-radius: ${Spacing[2]};\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background: ${tokens.BorderHover};\n }\n `,\n )}\n`;\n"],"mappings":";;;;AAMA,MAAa,oBAAoB,GAAG;IAChC,cACC,WAAW;yBACS,OAAO,cAAc;;;iBAG7B,QAAQ,GAAG;kBACV,QAAQ,GAAG;;;;;;;;sBAQP,OAAO,cAAc;yBAClB,QAAQ,GAAG;;;;sBAId,OAAO,YAAY;;MAGtC,CAAC"}
|
package/dist/mixins/text.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as displayMixins, c as paragraphMixins, i as ParagraphSize, n as HeadingSize, o as fontFamilyMixin, r as ParagraphMixinSize, s as headingMixins, t as DisplaySize } from "../text-
|
|
1
|
+
import { a as displayMixins, c as paragraphMixins, i as ParagraphSize, n as HeadingSize, o as fontFamilyMixin, r as ParagraphMixinSize, s as headingMixins, t as DisplaySize } from "../text-Iw9DKpbZ.mjs";
|
|
2
2
|
export { DisplaySize, HeadingSize, ParagraphMixinSize, ParagraphSize, displayMixins, fontFamilyMixin, headingMixins, paragraphMixins };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as FilterField, c as FilterOperator, l as FilterRule, r as DateRangeFilterValue, s as FilterFieldType, u as FilterRuleValue } from "./types-
|
|
1
|
+
import { a as FilterField, c as FilterOperator, l as FilterRule, r as DateRangeFilterValue, s as FilterFieldType, u as FilterRuleValue } from "./types-Dy3lZv9z.mjs";
|
|
2
2
|
|
|
3
3
|
//#region components/DataTable/TableControls/FiltersV2/operators.d.ts
|
|
4
4
|
declare function getOperatorsForType(type: FilterFieldType): ReadonlyArray<FilterOperator>;
|
|
@@ -23,6 +23,12 @@ declare function isValuelessOperator(operator: FilterOperator): boolean;
|
|
|
23
23
|
* where the wire expects a day string.
|
|
24
24
|
*/
|
|
25
25
|
declare function carriesDateRange(operator: FilterOperator, fieldType?: FilterFieldType): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Whether a rule's value control edits minute-precision date-times: the bar
|
|
28
|
+
* and field both opt in, and the value is a range or a before/after instant
|
|
29
|
+
* (`date` + `is` stays a whole calendar day).
|
|
30
|
+
*/
|
|
31
|
+
declare function isMinutePrecisionDate(field: Pick<FilterField, 'type' | 'timeGranularity'>, operator: FilterOperator, dateTimesEnabled: boolean): boolean;
|
|
26
32
|
declare function isRangeOperator(operator: FilterOperator): boolean;
|
|
27
33
|
/**
|
|
28
34
|
* Whether `value` carries both endpoints of a range. Shared by the pill,
|
|
@@ -67,5 +73,5 @@ declare function emptyValueForRule(field: Pick<FilterField, 'type'>, operator: F
|
|
|
67
73
|
*/
|
|
68
74
|
declare function reconcileValueForOperator(field: Pick<FilterField, 'type'>, nextOperator: FilterOperator, previousOperator: FilterOperator, value: FilterRuleValue): FilterRuleValue;
|
|
69
75
|
//#endregion
|
|
70
|
-
export { getDefaultOperatorForType as a, getOperatorsForType as c,
|
|
71
|
-
//# sourceMappingURL=operators-
|
|
76
|
+
export { getDefaultOperatorForType as a, getOperatorsForType as c, isRangeOperator as d, isValuelessOperator as f, fieldHasMultipleOperators as i, isCompleteDateRange as l, withValue as m, emptyValueForFieldType as n, getOperatorLabel as o, reconcileValueForOperator as p, emptyValueForRule as r, getOperatorsForField as s, carriesDateRange as t, isMinutePrecisionDate as u };
|
|
77
|
+
//# sourceMappingURL=operators-BG82-g3M.d.mts.map
|
package/dist/operators.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as getDefaultOperatorForType, c as getOperatorsForType, d as
|
|
2
|
-
export { carriesDateRange, emptyValueForFieldType, emptyValueForRule, fieldHasMultipleOperators, getDefaultOperatorForType, getOperatorLabel, getOperatorsForField, getOperatorsForType, isCompleteDateRange, isRangeOperator, isValuelessOperator, reconcileValueForOperator, withValue };
|
|
1
|
+
import { a as getDefaultOperatorForType, c as getOperatorsForType, d as isRangeOperator, f as isValuelessOperator, i as fieldHasMultipleOperators, l as isCompleteDateRange, m as withValue, n as emptyValueForFieldType, o as getOperatorLabel, p as reconcileValueForOperator, r as emptyValueForRule, s as getOperatorsForField, t as carriesDateRange, u as isMinutePrecisionDate } from "./operators-BG82-g3M.mjs";
|
|
2
|
+
export { carriesDateRange, emptyValueForFieldType, emptyValueForRule, fieldHasMultipleOperators, getDefaultOperatorForType, getOperatorLabel, getOperatorsForField, getOperatorsForType, isCompleteDateRange, isMinutePrecisionDate, isRangeOperator, isValuelessOperator, reconcileValueForOperator, withValue };
|