@persona/design-system 0.5.0 → 0.6.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 +11 -1
- package/dist/{Action-C2waxwIy.d.mts → Action-C2FTJhnQ.d.mts} +3 -3
- package/dist/Action.d.mts +1 -1
- package/dist/AdvancedFilterRuleRow.d.mts +2 -2
- package/dist/AdvancedFilterRulesPopover.d.mts +2 -2
- package/dist/ArrayValueControl.d.mts +1 -1
- package/dist/Attribute.d.mts +8 -6
- package/dist/{Badge-CM2TzkdE.mjs → Badge-BtNIvtDZ.mjs} +3 -3
- package/dist/{Badge-CM2TzkdE.mjs.map → Badge-BtNIvtDZ.mjs.map} +1 -1
- package/dist/BooleanValueControl.d.mts +1 -1
- package/dist/{Breadcrumb-Df06cTnA.d.mts → Breadcrumb-BlAhp45l.d.mts} +1 -1
- package/dist/Breadcrumb.d.mts +1 -1
- package/dist/{Breadcrumbs-BEYQlGbW.mjs → Breadcrumbs-CR-xdruP.mjs} +16 -15
- package/dist/Breadcrumbs-CR-xdruP.mjs.map +1 -0
- package/dist/{Breadcrumbs-D_Gzd4_J.d.mts → Breadcrumbs-DdZ14ZFw.d.mts} +2 -2
- package/dist/Breadcrumbs.d.mts +1 -1
- package/dist/{Button-CRFbWv3l.d.mts → Button-CTgyA3gc.d.mts} +5 -4
- package/dist/Button.d.mts +1 -1
- package/dist/{Calendar-DjnoZVcT.d.mts → Calendar-_gM6U5ET.d.mts} +1 -1
- package/dist/Calendar.d.mts +1 -1
- package/dist/CalendarBase.d.mts +1 -1
- package/dist/Card-Dorym91P.d.mts +75 -0
- package/dist/{Card-CKrJtn1f.mjs → Card-vQIPtdXi.mjs} +12 -10
- package/dist/Card-vQIPtdXi.mjs.map +1 -0
- package/dist/Card.d.mts +1 -1
- package/dist/Card2.d.mts +3 -3
- package/dist/{CardV2-B2wx1NE3.mjs → CardV2-CBjhsfrn.mjs} +19 -18
- package/dist/CardV2-CBjhsfrn.mjs.map +1 -0
- package/dist/{Checkbox-DwZEsi7x.mjs → Checkbox-BHZ7c7_6.mjs} +27 -23
- package/dist/Checkbox-BHZ7c7_6.mjs.map +1 -0
- package/dist/{Checkbox-CwPXPLCi.d.mts → Checkbox-DRJXDs2T.d.mts} +1 -1
- package/dist/Checkbox.d.mts +1 -1
- package/dist/CheckboxGroupField.d.mts +1 -1
- package/dist/ChoicesValueControl.d.mts +1 -1
- package/dist/CodeHighlight.d.mts +40 -0
- package/dist/{Combobox-CKaVX-32.mjs → Combobox-BCYLeZDP.mjs} +23 -22
- package/dist/Combobox-BCYLeZDP.mjs.map +1 -0
- package/dist/{Combobox-BQN5OwB-.d.mts → Combobox-DMN3nc7E.d.mts} +3 -3
- package/dist/Combobox.d.mts +2 -2
- package/dist/{ComboboxBase-nfHr19x-.d.mts → ComboboxBase-DBLJYQrh.d.mts} +18 -29
- package/dist/ComboboxBase.d.mts +1 -1
- package/dist/{ComboboxMultiSelect-DRNj2Mtx.d.mts → ComboboxMultiSelect-CZRLyM_y.d.mts} +2 -2
- package/dist/ComboboxMultiSelect.d.mts +1 -1
- package/dist/{ComboboxSingleSelect-BkhbEx-F.d.mts → ComboboxSingleSelect-BS6pZpU_.d.mts} +4 -4
- package/dist/ComboboxSingleSelect.d.mts +1 -1
- package/dist/{CompactBar-CyHbWTv4.d.mts → CompactBar-DEqItiZr.d.mts} +3 -3
- package/dist/CompactBar.d.mts +1 -1
- package/dist/{ConfigFormGroup-CmCRJyse.mjs → ConfigFormGroup-BnRDAs0j.mjs} +3 -3
- package/dist/{ConfigFormGroup-CmCRJyse.mjs.map → ConfigFormGroup-BnRDAs0j.mjs.map} +1 -1
- package/dist/{ControlBar-DwAhPcb5.d.mts → ControlBar-BVG5Pbvh.d.mts} +2 -2
- package/dist/ControlBar.d.mts +1 -1
- package/dist/DataTable.d.mts +17 -6
- package/dist/{DateField-tOyrGcx1.d.mts → DateField-CBCo8_d3.d.mts} +2 -2
- package/dist/DateField.d.mts +1 -1
- package/dist/{DatePicker-Bs9JODNg.d.mts → DatePicker-BZ4_I4Db.d.mts} +2 -2
- package/dist/{DatePicker-D2SfjS-N.mjs → DatePicker-BcjrAr7o.mjs} +44 -33
- package/dist/DatePicker-BcjrAr7o.mjs.map +1 -0
- package/dist/DatePicker.d.mts +1 -1
- package/dist/{DateRangePicker-BT6-j8V7.d.mts → DateRangePicker-BMKJquPT.d.mts} +3 -3
- package/dist/DateRangePicker.d.mts +1 -1
- package/dist/DateRangeValueControl.d.mts +2 -2
- package/dist/DateValueControl.d.mts +1 -1
- package/dist/{DropdownButton-dpGAmVlN.mjs → DropdownButton-l-fzkb5_.mjs} +3 -3
- package/dist/{DropdownButton-dpGAmVlN.mjs.map → DropdownButton-l-fzkb5_.mjs.map} +1 -1
- package/dist/DropdownButton.d.mts +2 -2
- package/dist/{DropdownMenu-RTxQ0Zu1.d.mts → DropdownMenu-Bg68vvxx.d.mts} +3 -3
- package/dist/{DropdownMenu-CyxizDxJ.mjs → DropdownMenu-C0WK4bM0.mjs} +3 -3
- package/dist/{DropdownMenu-CyxizDxJ.mjs.map → DropdownMenu-C0WK4bM0.mjs.map} +1 -1
- package/dist/DropdownMenu.d.mts +1 -1
- package/dist/{ErrorProps-C9T857Wk.d.mts → ErrorProps-7eWoxSes.d.mts} +1 -1
- package/dist/ErrorProps.d.mts +1 -1
- package/dist/{FieldRegistry-D6niLExM.d.mts → FieldRegistry-BslyuPZw.d.mts} +2 -2
- package/dist/FieldRegistry.d.mts +1 -1
- package/dist/{FilterBar-DfBV7yKM.d.mts → FilterBar-DjZE4PoB.d.mts} +4 -4
- package/dist/FilterBar.d.mts +1 -1
- package/dist/FilterPickerMenu.d.mts +2 -2
- package/dist/FilterPill.d.mts +1 -1
- package/dist/FilterPopover.d.mts +1 -1
- package/dist/FloatValueControl.d.mts +1 -1
- package/dist/{FormControl-DQFefbrI.mjs → FormControl-BzMbbgr0.mjs} +8 -7
- package/dist/FormControl-BzMbbgr0.mjs.map +1 -0
- package/dist/{FormControl-BMYRsFkI.d.mts → FormControl-gpLZZpNs.d.mts} +3 -3
- package/dist/FormControl.d.mts +1 -1
- package/dist/FormControlLabel.d.mts +2 -2
- package/dist/{FormField-C7bW-O6H.mjs → FormField-2sNS5PzN.mjs} +16 -16
- package/dist/{FormField-C7bW-O6H.mjs.map → FormField-2sNS5PzN.mjs.map} +1 -1
- package/dist/{FormField-C1DaUT5U.d.mts → FormField-CZXKvCGt.d.mts} +2 -2
- package/dist/FormField.d.mts +1 -1
- package/dist/{Header-BKk3qESS.d.mts → Header-1laYnwRP.d.mts} +2 -2
- package/dist/Header.d.mts +1 -1
- package/dist/{HelperTooltip-CD_yy7Hp.d.mts → HelperTooltip-BPJS3EwC.d.mts} +2 -2
- package/dist/HelperTooltip.d.mts +1 -1
- package/dist/{HoverCopyableField-Bgt639FR.mjs → HoverCopyableField-CeJ0UP87.mjs} +8 -8
- package/dist/{HoverCopyableField-Bgt639FR.mjs.map → HoverCopyableField-CeJ0UP87.mjs.map} +1 -1
- package/dist/{IconButton-BnSEV7eR.mjs → IconButton-CnJNIJVQ.mjs} +124 -25
- package/dist/IconButton-CnJNIJVQ.mjs.map +1 -0
- package/dist/{IconButton-Bh-JJ-0x.d.mts → IconButton-PnrnqQ1s.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-D7of_GtJ.mjs → Input-DGWThZlt.mjs} +12 -10
- package/dist/Input-DGWThZlt.mjs.map +1 -0
- package/dist/{Input-1bDdMAgO.d.mts → Input-Diztxhle.d.mts} +5 -9
- package/dist/Input.d.mts +1 -1
- package/dist/{InputProps-BBShwi8N.d.mts → InputProps-BILq1X-n.d.mts} +2 -2
- package/dist/InputProps.d.mts +1 -1
- package/dist/IntegerValueControl.d.mts +1 -1
- package/dist/{ListBox-DeFHRX2T.d.mts → ListBox-Awtw7Xy_.d.mts} +3 -3
- package/dist/{ListBox-jzXQDraS.mjs → ListBox-DqII8giL.mjs} +37 -29
- package/dist/ListBox-DqII8giL.mjs.map +1 -0
- package/dist/ListBox.d.mts +1 -1
- package/dist/ListBoxField.d.mts +2 -2
- package/dist/{LoadingShimmer-a2Hv0kAq.mjs → LoadingShimmer-ZyzJs5Vi.mjs} +13 -5
- package/dist/LoadingShimmer-ZyzJs5Vi.mjs.map +1 -0
- package/dist/LoadingShimmer.d.mts +2 -2
- package/dist/{LogicRow-BOhB0uNS.d.mts → LogicRow-DIn0gLEq.d.mts} +3 -3
- package/dist/LogicRow.d.mts +1 -1
- package/dist/MaskedInput.d.mts +2 -2
- package/dist/MatchHighlight.d.mts +1 -1
- package/dist/{Menu-DVI8l-4Q.mjs → Menu-CeV3lL2g.mjs} +42 -25
- package/dist/Menu-CeV3lL2g.mjs.map +1 -0
- package/dist/{Menu-BCVhmNEe.d.mts → Menu-DdHN-drQ.d.mts} +4 -4
- package/dist/Menu.d.mts +1 -1
- package/dist/{MiddleTruncatedText-DnF7F_1D.mjs → MiddleTruncatedText-CO58jrNF.mjs} +2 -2
- package/dist/{MiddleTruncatedText-DnF7F_1D.mjs.map → MiddleTruncatedText-CO58jrNF.mjs.map} +1 -1
- package/dist/Modal.d.mts +4 -4
- package/dist/{PageHeader-BpGT-BM0.mjs → PageHeader-UI_6yImi.mjs} +9 -6
- package/dist/PageHeader-UI_6yImi.mjs.map +1 -0
- package/dist/PageHeader.d.mts +2 -2
- package/dist/PageLayout.d.mts +1 -1
- package/dist/{PageSelector-D6tffcGW.d.mts → PageSelector-CIa3Zts9.d.mts} +3 -3
- package/dist/PageSelector.d.mts +1 -1
- package/dist/{Pagination-BkjmybcI.d.mts → Pagination-C2eZEM7K.d.mts} +2 -2
- package/dist/{Pagination-CVRTcKSG.mjs → Pagination-DgA0U1fa.mjs} +9 -8
- package/dist/Pagination-DgA0U1fa.mjs.map +1 -0
- package/dist/Pagination.d.mts +1 -1
- package/dist/{Pii-CA7aCuYT.mjs → Pii-bxG0qu3t.mjs} +2 -2
- package/dist/{Pii-CA7aCuYT.mjs.map → Pii-bxG0qu3t.mjs.map} +1 -1
- package/dist/{PillShell-CVqpZ5iV.d.mts → PillShell-D6dN9sWk.d.mts} +2 -2
- package/dist/PillShell.d.mts +1 -1
- package/dist/{Popover-DlXyKYL5.mjs → Popover-UiOUt5up.mjs} +9 -5
- package/dist/Popover-UiOUt5up.mjs.map +1 -0
- package/dist/{PseudoClassProps-BPdn-ofQ.d.mts → PseudoClassProps-DnlHhW5u.d.mts} +1 -1
- package/dist/PseudoClassProps.d.mts +1 -1
- package/dist/{Radio-DYGEt0FT.mjs → Radio-BrQzZhwP.mjs} +22 -18
- package/dist/Radio-BrQzZhwP.mjs.map +1 -0
- package/dist/{RadioGroup-pegXtLwD.mjs → RadioGroup-Bl9oXPIo.mjs} +3 -3
- package/dist/{RadioGroup-pegXtLwD.mjs.map → RadioGroup-Bl9oXPIo.mjs.map} +1 -1
- package/dist/{RadioGroup-DYIfRj02.d.mts → RadioGroup-Dg_gydUp.d.mts} +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 +2 -2
- package/dist/RulesPill.d.mts +1 -1
- package/dist/{SearchInput-Dc90GLTF.d.mts → SearchInput-CNg109M5.d.mts} +2 -2
- package/dist/SearchInput.d.mts +1 -1
- package/dist/SectionHeading.d.mts +1 -1
- package/dist/{SegmentedControl-DIHonamg.d.mts → SegmentedControl-BBIHKcvo.d.mts} +1 -1
- package/dist/{SegmentedControl-DwbltwDQ.mjs → SegmentedControl-BozydMtT.mjs} +10 -9
- package/dist/SegmentedControl-BozydMtT.mjs.map +1 -0
- package/dist/SegmentedControl.d.mts +1 -1
- package/dist/{Select-CBVvPyRJ.mjs → Select-CktsIrzf.mjs} +16 -15
- package/dist/Select-CktsIrzf.mjs.map +1 -0
- package/dist/{Select-DwqWnWBi.d.mts → Select-yPqzqe5k.d.mts} +3 -3
- package/dist/Select.d.mts +1 -1
- package/dist/{Spacer-BsK8tTwA.mjs → Spacer-D58qwuXR.mjs} +2 -2
- package/dist/{Spacer-BsK8tTwA.mjs.map → Spacer-D58qwuXR.mjs.map} +1 -1
- package/dist/{Spinner-e725Rxkd.mjs → Spinner-Dpw3-3JS.mjs} +6 -8
- package/dist/Spinner-Dpw3-3JS.mjs.map +1 -0
- package/dist/{Stack-Bre2oiov.mjs → Stack-BqQndGI9.mjs} +2 -2
- package/dist/{Stack-Bre2oiov.mjs.map → Stack-BqQndGI9.mjs.map} +1 -1
- package/dist/{Stack-6eOrxjJi.d.mts → Stack-DgC83-nw.d.mts} +2 -2
- package/dist/Stack.d.mts +1 -1
- package/dist/{Sticker-By3F8Aip.mjs → Sticker-BDyejPZa.mjs} +159 -14
- package/dist/Sticker-BDyejPZa.mjs.map +1 -0
- package/dist/{Sticker-Ep6N4Exq.d.mts → Sticker-qvWkqEMw.d.mts} +5 -5
- package/dist/Sticker.d.mts +1 -1
- package/dist/StringValueControl.d.mts +1 -1
- package/dist/Tab.d.mts +3 -4
- package/dist/{TabBar-CWF65Tv4.mjs → TabBar-Dw3xE_B-.mjs} +17 -16
- package/dist/TabBar-Dw3xE_B-.mjs.map +1 -0
- package/dist/TabBarIconButton.d.mts +1 -5
- package/dist/{Table-BOcWdwpv.d.mts → Table-CPvIH27_.d.mts} +1 -1
- package/dist/{Table-nWd5ZVbm.mjs → Table-ELLvSvH4.mjs} +86 -39
- package/dist/Table-ELLvSvH4.mjs.map +1 -0
- package/dist/Table.d.mts +1 -1
- package/dist/{TableBody-BFPFaZnD.d.mts → TableBody-CQYijW_3.d.mts} +1 -1
- package/dist/TableBody.d.mts +1 -1
- package/dist/{TableBox-Bd-H5oyh.mjs → TableBox-CCfha6G2.mjs} +57 -47
- package/dist/TableBox-CCfha6G2.mjs.map +1 -0
- package/dist/TableBox.d.mts +2 -2
- package/dist/{TableBoxCell-Cjlc_xJz.d.mts → TableBoxCell-xnzuHPV1.d.mts} +7 -7
- package/dist/TableBoxCell.d.mts +1 -1
- package/dist/TableBoxField.d.mts +3 -3
- package/dist/{TableBoxRow-CKDjNUsU.d.mts → TableBoxRow-BBDMh5xl.d.mts} +3 -3
- package/dist/TableBoxRow.d.mts +1 -1
- package/dist/{TableBoxRowActions-BJ8ue3Bk.d.mts → TableBoxRowActions-DCfol4GC.d.mts} +2 -2
- package/dist/TableBoxRowActions.d.mts +1 -1
- package/dist/{index-CvBvfQAY.d.mts → TableCell-BQv4ASkE.d.mts} +5 -26
- package/dist/TableCell.d.mts +1 -1
- package/dist/{TableControls-BnesnTue.mjs → TableControls-C-yb5EYU.mjs} +76 -64
- package/dist/TableControls-C-yb5EYU.mjs.map +1 -0
- package/dist/{TableControls-D8xMNgyS.d.mts → TableControls-CtEL3ioz.d.mts} +3 -3
- package/dist/TableControls.d.mts +1 -1
- package/dist/{TableControlsContext-ChFsFEjR.d.mts → TableControlsContext-X-Lupvc6.d.mts} +2 -2
- package/dist/TableControlsContext.d.mts +1 -1
- package/dist/{TableHead-CWDxuy5V.d.mts → TableHead-DLLn0zoP.d.mts} +1 -1
- package/dist/TableHead.d.mts +1 -1
- package/dist/{TableHeaderCell-C_sIU1d7.d.mts → TableHeaderCell-DiJ2jyw4.d.mts} +3 -1
- package/dist/TableHeaderCell.d.mts +1 -1
- package/dist/{TableLayout-CgGhKU_A.d.mts → TableLayout-BgnUz8NO.d.mts} +1 -1
- package/dist/TableLayout.d.mts +1 -1
- package/dist/{TableRow-B1UKlbze.d.mts → TableRow-Dgg8hGy5.d.mts} +2 -2
- package/dist/TableRow.d.mts +1 -1
- package/dist/TableTH.d.mts +1 -1
- package/dist/{TableViewConfigurationDropdown-BqB7pOh8.d.mts → TableViewConfigurationDropdown-DRxd562-.d.mts} +2 -2
- package/dist/TableViewConfigurationDropdown.d.mts +1 -1
- package/dist/{TechnicalSticker-Ct2WnNzJ.mjs → TechnicalSticker-CLbNA0kp.mjs} +27 -22
- package/dist/TechnicalSticker-CLbNA0kp.mjs.map +1 -0
- package/dist/{Text-B0orb-cZ.mjs → Text-Dn_p7ZvT.mjs} +16 -12
- package/dist/Text-Dn_p7ZvT.mjs.map +1 -0
- package/dist/{Text-BzzUdBdc.d.mts → Text-tgFz40XD.d.mts} +4 -4
- package/dist/Text.d.mts +1 -1
- package/dist/{TextArea-CGpY5xqX.d.mts → TextArea-BxxXQSwP.d.mts} +2 -2
- package/dist/{TextArea-CospIXEO.mjs → TextArea-oAK1DKId.mjs} +3 -3
- package/dist/{TextArea-CospIXEO.mjs.map → TextArea-oAK1DKId.mjs.map} +1 -1
- package/dist/TextArea.d.mts +1 -1
- package/dist/{TextUnderlineTooltip-DZYGjJq1.d.mts → TextUnderlineTooltip-DQVYsLqM.d.mts} +3 -3
- package/dist/TextUnderlineTooltip.d.mts +1 -1
- package/dist/Tile.d.mts +1 -1
- package/dist/Toast.d.mts +1 -1
- package/dist/{Toggle-BjAivdyX.d.mts → Toggle-BmUl78kH.d.mts} +1 -1
- package/dist/{Toggle-Do5z1VcO.mjs → Toggle-DZzirZ8p.mjs} +20 -11
- package/dist/Toggle-DZzirZ8p.mjs.map +1 -0
- package/dist/Toggle.d.mts +1 -1
- package/dist/{Tooltip-DSKGD33G.mjs → Tooltip-BsuYG0fw.mjs} +12 -9
- package/dist/Tooltip-BsuYG0fw.mjs.map +1 -0
- package/dist/{Tooltip-n3XkX4dp.d.mts → Tooltip-eSaiYjxT.d.mts} +3 -3
- package/dist/Tooltip.d.mts +1 -1
- package/dist/{TruncatedText-C-MJPIRi.d.mts → TruncatedText-B2v53Y11.d.mts} +2 -2
- package/dist/{codec-B0dZTwlG.d.mts → codec-D5qlDVgU.d.mts} +2 -2
- package/dist/codec.d.mts +1 -1
- package/dist/color-fQTsW4gq.d.mts +20 -0
- package/dist/components/Attribute/index.mjs +34 -9
- package/dist/components/Attribute/index.mjs.map +1 -1
- package/dist/components/Badge/index.mjs +1 -1
- package/dist/components/Banner/index.mjs +19 -8
- package/dist/components/Banner/index.mjs.map +1 -1
- package/dist/components/BottomPanel/index.mjs +4 -4
- 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 +13 -5
- package/dist/components/ButtonGroup/index.mjs.map +1 -1
- package/dist/components/Card/index.d.mts +2 -2
- package/dist/components/Card/index.mjs +1 -1
- package/dist/components/CardV2/index.d.mts +1 -1
- package/dist/components/CardV2/index.mjs +1 -1
- package/dist/components/Checkbox/index.d.mts +1 -1
- package/dist/components/Checkbox/index.mjs +1 -1
- package/dist/components/CodeHighlight/PrismWithLanguages.d.mts +2 -0
- package/dist/components/CodeHighlight/PrismWithLanguages.mjs +48 -0
- package/dist/components/CodeHighlight/PrismWithLanguages.mjs.map +1 -0
- package/dist/components/CodeHighlight/index.d.mts +2 -0
- package/dist/components/CodeHighlight/index.mjs +381 -0
- package/dist/components/CodeHighlight/index.mjs.map +1 -0
- 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 +84 -44
- 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.mjs +5 -5
- package/dist/components/FormControl/index.d.mts +2 -2
- package/dist/components/FormControl/index.mjs +2 -2
- package/dist/components/FormField/index.d.mts +1 -1
- package/dist/components/FormField/index.mjs +1 -1
- package/dist/components/Grid/index.mjs +1 -1
- package/dist/components/HoverCopyableField/index.mjs +1 -1
- package/dist/components/ImageTile/index.mjs +18 -17
- 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 +7 -8
- package/dist/components/Link/index.mjs.map +1 -1
- package/dist/components/ListBox/index.d.mts +3 -3
- package/dist/components/ListBox/index.mjs +1 -1
- package/dist/components/LoadingShimmer/index.mjs +1 -1
- package/dist/components/MaskedInput/index.mjs +1 -1
- package/dist/components/MatchHighlight/index.mjs +6 -4
- package/dist/components/MatchHighlight/index.mjs.map +1 -1
- package/dist/components/Menu/index.d.mts +1 -1
- package/dist/components/Menu/index.mjs +1 -1
- package/dist/components/Modal/index.mjs +12 -72
- 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 +16 -19
- package/dist/components/ProgressBar/index.mjs.map +1 -1
- package/dist/components/ProgressIndicator/index.mjs +25 -19
- package/dist/components/ProgressIndicator/index.mjs.map +1 -1
- package/dist/components/Radio/index.mjs +1 -1
- package/dist/components/RadioGroup/index.d.mts +1 -1
- package/dist/components/RadioGroup/index.mjs +1 -1
- package/dist/components/RightPanel/index.mjs +5 -5
- 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 +21 -12
- package/dist/components/Slider/index.mjs.map +1 -1
- package/dist/components/SmartTextInput/PillType.d.mts +10 -0
- package/dist/components/SmartTextInput/PillType.mjs +31 -0
- package/dist/components/SmartTextInput/PillType.mjs.map +1 -0
- package/dist/components/SmartTextInput/parser/method-chain/grammar.pegjs +219 -0
- package/dist/components/SmartTextInput/parser/method-chain/parser.d.mts +21 -0
- package/dist/components/SmartTextInput/parser/method-chain/parser.mjs +2 -0
- package/dist/components/SmartTextInput/parser/method-chain/types.d.mts +105 -0
- package/dist/components/SmartTextInput/parser/method-chain/types.mjs +31 -0
- package/dist/components/SmartTextInput/parser/method-chain/types.mjs.map +1 -0
- package/dist/components/SmartTextInput/parser/smart-text/grammar.pegjs +154 -0
- package/dist/components/SmartTextInput/parser/smart-text/parser.d.mts +17 -0
- package/dist/components/SmartTextInput/parser/smart-text/parser.mjs +814 -0
- package/dist/components/SmartTextInput/parser/smart-text/parser.mjs.map +1 -0
- package/dist/components/SmartTextInput/parser/smart-text/types.d.mts +72 -0
- package/dist/components/SmartTextInput/parser/smart-text/types.mjs +38 -0
- package/dist/components/SmartTextInput/parser/smart-text/types.mjs.map +1 -0
- 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 +112 -13
- package/dist/components/StatusIndicator/index.mjs.map +1 -1
- package/dist/components/Sticker/index.d.mts +1 -1
- package/dist/components/Sticker/index.mjs +1 -1
- package/dist/components/SwatchPicker/index.mjs +5 -4
- package/dist/components/SwatchPicker/index.mjs.map +1 -1
- package/dist/components/TabBar/index.mjs +1 -1
- package/dist/components/Table/index.d.mts +8 -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 +9 -8
- package/dist/components/Tile/index.mjs.map +1 -1
- package/dist/components/Toast/index.mjs +18 -12
- 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/Tooltip/index.mjs +1 -1
- package/dist/compound-expression.d.mts +1 -1
- package/dist/{constants-Bs94Jw4y.d.mts → constants-zZyl7QbX.d.mts} +1 -1
- package/dist/constants.d.mts +1 -1
- package/dist/{date-filter-BbWgAXy3.mjs → date-filter-DMZnJwGs.mjs} +1 -1
- package/dist/{date-filter-BbWgAXy3.mjs.map → date-filter-DMZnJwGs.mjs.map} +1 -1
- package/dist/{date-range-rule-value-DBEEWTQp.d.mts → date-range-rule-value-zJaa_jR9.d.mts} +2 -2
- package/dist/date-range-rule-value.d.mts +1 -1
- package/dist/{date-rule-intent-BArNGT2E.d.mts → date-rule-intent-CdWv68my.d.mts} +3 -3
- package/dist/date-rule-intent.d.mts +1 -1
- package/dist/display.d.mts +1 -1
- package/dist/fieldPickerOptions.d.mts +2 -2
- package/dist/fieldSchemaTypes-COEJOqYL.d.mts +39 -0
- package/dist/{filter-size-context-D1UhTwOG.d.mts → filter-size-context-DYkfYMkX.d.mts} +2 -2
- package/dist/filter-size-context.d.mts +1 -1
- package/dist/helpers.d.mts +1 -1
- package/dist/{index-DASkW991.d.mts → index-BX8dSNcy.d.mts} +2 -2
- package/dist/{index-I_Cy3X5R.d.mts → index-CBWvk6Ch.d.mts} +3 -3
- package/dist/index-DxIXll2Z.d.mts +21 -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-M7BEIewR.d.mts → input-DN_8iHVD.d.mts} +3 -3
- package/dist/inputFields.d.mts +10 -10
- package/dist/{intersperse-CRUnXmnu.mjs → intersperse-vOYvFOfF.mjs} +1 -1
- package/dist/{intersperse-CRUnXmnu.mjs.map → intersperse-vOYvFOfF.mjs.map} +1 -1
- package/dist/jsonSchema-B1VonQij.d.mts +222 -0
- package/dist/lib/GlobalStyles.mjs +1 -1
- package/dist/lib/HeadlessAriaButton.d.mts +1 -2
- package/dist/lib/HeadlessAriaButton.mjs +1 -1
- package/dist/lib/MiddleTruncatedText.mjs +1 -1
- package/dist/lib/PDSProvider.d.mts +1 -1
- package/dist/lib/PDSProvider.mjs +1 -1
- package/dist/lib/TruncatedText.d.mts +1 -1
- package/dist/lib/TruncatedText.mjs +1 -1
- package/dist/lib/TruncatedTextWithTooltip.d.mts +1 -1
- package/dist/lib/TruncatedTextWithTooltip.mjs +1 -1
- package/dist/lib/color.d.mts +2 -0
- package/dist/lib/color.mjs +21 -0
- package/dist/lib/color.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/errorReporter.d.mts +7 -0
- package/dist/lib/errorReporter.mjs +15 -0
- package/dist/lib/errorReporter.mjs.map +1 -0
- package/dist/lib/fieldSchemaTypes.d.mts +2 -0
- package/dist/lib/fieldSchemaTypes.mjs +41 -0
- package/dist/lib/fieldSchemaTypes.mjs.map +1 -0
- package/dist/lib/jsonSchema.d.mts +2 -0
- package/dist/lib/jsonSchema.mjs +260 -0
- package/dist/lib/jsonSchema.mjs.map +1 -0
- package/dist/lib/message.d.mts +1 -1
- package/dist/lib/methodChain.d.mts +66 -0
- package/dist/lib/methodChain.mjs +239 -0
- package/dist/lib/methodChain.mjs.map +1 -0
- package/dist/lib/methodChainNormalize.d.mts +14 -0
- package/dist/lib/methodChainNormalize.mjs +53 -0
- package/dist/lib/methodChainNormalize.mjs.map +1 -0
- package/dist/lib/methodChainTypes.d.mts +23 -0
- package/dist/lib/methodChainTypes.mjs +0 -0
- package/dist/lib/objectSchemaTypes.d.mts +2 -0
- package/dist/lib/objectSchemaTypes.mjs +0 -0
- package/dist/lib/pseudoClass.d.mts +1 -1
- package/dist/lib/selectHelper.mjs.map +1 -1
- package/dist/lib/semanticColor.d.mts +2 -0
- package/dist/lib/semanticColor.mjs +17 -0
- package/dist/lib/semanticColor.mjs.map +1 -0
- package/dist/lib/useControlled.mjs.map +1 -1
- package/dist/lib/useModalInsetRight.mjs +69 -0
- package/dist/lib/useModalInsetRight.mjs.map +1 -0
- package/dist/{message-CyxgAWZl.d.mts → message-DfEpU8lV.d.mts} +1 -1
- package/dist/mixins/focus.d.mts +4 -4
- package/dist/mixins/focus.mjs +7 -5
- package/dist/mixins/focus.mjs.map +1 -1
- package/dist/mixins/hoverable.d.mts +2 -2
- package/dist/mixins/hoverable.mjs +2 -2
- package/dist/mixins/input.d.mts +1 -1
- package/dist/mixins/input.mjs +56 -23
- package/dist/mixins/input.mjs.map +1 -1
- package/dist/mixins/menuItem.d.mts +2 -2
- package/dist/mixins/menuItem.mjs +78 -50
- package/dist/mixins/menuItem.mjs.map +1 -1
- package/dist/mixins/print/index.mjs +4 -2
- package/dist/mixins/print/index.mjs.map +1 -1
- package/dist/mixins/text.d.mts +1 -1
- package/dist/mixins/text.mjs +1 -1
- package/dist/{operators-CXkmvFpP.d.mts → operators-F8X0hyQB.d.mts} +2 -2
- package/dist/operators.d.mts +1 -1
- package/dist/palette-BANY1Xfs.d.mts +21 -0
- package/dist/palette.d.mts +2 -0
- package/dist/parser-Kxos6siN.mjs +2156 -0
- package/dist/parser-Kxos6siN.mjs.map +1 -0
- package/dist/patterns/LayoutLoadingShimmer/index.mjs +6 -6
- package/dist/patterns/LayoutLoadingSpinner/index.mjs +1 -1
- package/dist/patterns/PageLayout/index.mjs +1 -1
- package/dist/relative-date-label.d.mts +1 -1
- package/dist/semantic-Dy7mTyBP.d.mts +133 -0
- package/dist/semanticColor-DkVQjcbc.d.mts +29 -0
- package/dist/{styledComponentsInterop-8zScIQyC.mjs → styledComponentsInterop-NxwFjeA4.mjs} +2 -2
- package/dist/{styledComponentsInterop-8zScIQyC.mjs.map → styledComponentsInterop-NxwFjeA4.mjs.map} +1 -1
- package/dist/{text-DjTGRUM1.d.mts → text-BaQdW8qa.d.mts} +1 -1
- package/dist/{theme-Biwx2eJZ.d.mts → theme-D02MOaH6.d.mts} +22 -5
- package/dist/theme.d.mts +2 -2
- package/dist/theme.mjs +22 -1
- package/dist/theme.mjs.map +1 -1
- package/dist/tone.d.mts +17 -0
- package/dist/{types-V8UJX-rk.d.mts → types-1_JSe9Wr.d.mts} +2 -2
- package/dist/{types-DBBfOCX1.d.mts → types-C2s9yhgO.d.mts} +2 -2
- package/dist/{types-Bsf1VsW6.d.mts → types-COeginAF.d.mts} +1 -1
- package/dist/{types-Df0D37uh.d.mts → types-CtLY82w5.d.mts} +1 -1
- package/dist/{types-Ds43XULD.d.mts → types-Ok2lRZeu.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/types5.d.mts +1 -1
- package/dist/{url-state-M64mdtQ2.d.mts → url-state-DP78aDol.d.mts} +2 -2
- package/dist/url-state.d.mts +1 -1
- package/dist/useComboboxFooterAction.d.mts +1 -1
- package/dist/{useFilterStateV2-gALqONXf.d.mts → useFilterStateV2-DC2rGXHK.d.mts} +3 -3
- package/dist/useFilterStateV2.d.mts +1 -1
- package/dist/{useFormField-Bo7oHMof.d.mts → useFormField--_14te0K.d.mts} +2 -2
- package/dist/{useFormField-C-K1lgmv.mjs → useFormField-DhYd6bNn.mjs} +2 -2
- package/dist/{useFormField-C-K1lgmv.mjs.map → useFormField-DhYd6bNn.mjs.map} +1 -1
- package/dist/useFormField.d.mts +1 -1
- package/dist/{useFormGroup-y-duFylq.mjs → useFormGroup-DWVW7A9f.mjs} +1 -1
- package/dist/{useFormGroup-y-duFylq.mjs.map → useFormGroup-DWVW7A9f.mjs.map} +1 -1
- package/dist/{useTableBoxDragAndDrop-BrJFRSaG.d.mts → useTableBoxDragAndDrop-DkCxC7Mi.d.mts} +1 -1
- package/dist/useTableBoxDragAndDrop.d.mts +1 -1
- package/dist/{useToggle-Bo3yd14Y.mjs → useToggle-0zLL1E7s.mjs} +1 -1
- package/dist/{useToggle-Bo3yd14Y.mjs.map → useToggle-0zLL1E7s.mjs.map} +1 -1
- package/dist/useTruncation.d.mts +1 -1
- package/dist/{utilities-BHMNnJ8h.d.mts → utilities-C1hOxjt_.d.mts} +1 -1
- package/dist/utilities.d.mts +1 -1
- package/dist/utils/storybook.mjs +1 -1
- package/dist/utils/storybook.mjs.map +1 -1
- package/dist/utils/testing.mjs.map +1 -1
- package/dist/utils.d.mts +1 -1
- package/dist/{validation-BCBIvN6H.d.mts → validation-CpDsI-TM.d.mts} +3 -3
- package/dist/validation.d.mts +1 -1
- package/dist/{value-control-resolver-qKTH1ErF.d.mts → value-control-resolver-DhaqxKmK.d.mts} +2 -2
- package/dist/value-control-resolver.d.mts +1 -1
- package/dist/variables/effect.d.mts +14 -3
- package/dist/variables/effect.mjs +5 -3
- package/dist/variables/effect.mjs.map +1 -1
- package/dist/variables/keyframes.mjs +1 -1
- package/dist/variables/semantic.d.mts +2 -0
- package/dist/variables/semantic.mjs +241 -0
- package/dist/variables/semantic.mjs.map +1 -0
- package/llms.txt +1 -0
- package/package.json +70 -7
- package/skills/design-system-component-authoring/SKILL.md +79 -0
- package/skills/design-system-component-authoring/clarifying-scope.md +18 -0
- package/skills/design-system-component-authoring/component-conventions.md +70 -0
- package/skills/design-system-component-authoring/prop-interface-patterns.md +30 -0
- package/skills/ui-authoring/COMPONENTS.md +1 -1
- package/skills/ui-authoring/TOKENS.md +1 -1
- package/dist/Breadcrumbs-BEYQlGbW.mjs.map +0 -1
- package/dist/Card-BoGV5tY2.d.mts +0 -52
- package/dist/Card-CKrJtn1f.mjs.map +0 -1
- package/dist/CardV2-B2wx1NE3.mjs.map +0 -1
- package/dist/Checkbox-DwZEsi7x.mjs.map +0 -1
- package/dist/Combobox-CKaVX-32.mjs.map +0 -1
- package/dist/DatePicker-D2SfjS-N.mjs.map +0 -1
- package/dist/FormControl-DQFefbrI.mjs.map +0 -1
- package/dist/IconButton-BnSEV7eR.mjs.map +0 -1
- package/dist/Input-D7of_GtJ.mjs.map +0 -1
- package/dist/ListBox-jzXQDraS.mjs.map +0 -1
- package/dist/LoadingShimmer-a2Hv0kAq.mjs.map +0 -1
- package/dist/Menu-DVI8l-4Q.mjs.map +0 -1
- package/dist/PageHeader-BpGT-BM0.mjs.map +0 -1
- package/dist/Pagination-CVRTcKSG.mjs.map +0 -1
- package/dist/Popover-DlXyKYL5.mjs.map +0 -1
- package/dist/Radio-DYGEt0FT.mjs.map +0 -1
- package/dist/SegmentedControl-DwbltwDQ.mjs.map +0 -1
- package/dist/Select-CBVvPyRJ.mjs.map +0 -1
- package/dist/Spinner-e725Rxkd.mjs.map +0 -1
- package/dist/Sticker-By3F8Aip.mjs.map +0 -1
- package/dist/TabBar-CWF65Tv4.mjs.map +0 -1
- package/dist/Table-nWd5ZVbm.mjs.map +0 -1
- package/dist/TableBox-Bd-H5oyh.mjs.map +0 -1
- package/dist/TableControls-BnesnTue.mjs.map +0 -1
- package/dist/TechnicalSticker-Ct2WnNzJ.mjs.map +0 -1
- package/dist/Text-B0orb-cZ.mjs.map +0 -1
- package/dist/Toggle-Do5z1VcO.mjs.map +0 -1
- package/dist/Tooltip-DSKGD33G.mjs.map +0 -1
- /package/dist/{index-8SLBz2NH.d.mts → index-1-AkepUA.d.mts} +0 -0
- /package/dist/{index-Bt4QNofW.d.mts → index-BFnNtGdX.d.mts} +0 -0
- /package/dist/{index-BwAfCVZH2.d.mts → index-BO_854F2.d.mts} +0 -0
- /package/dist/{index-BwFl_eS0.d.mts → index-BPiqSRRl.d.mts} +0 -0
- /package/dist/{index-CCKHlTA4.d.mts → index-BSVhZrWN.d.mts} +0 -0
- /package/dist/{index-CDGG7lCB.d.mts → index-BYd3Btr1.d.mts} +0 -0
- /package/dist/{index-CRo77wc3.d.mts → index-B_BBnMou.d.mts} +0 -0
- /package/dist/{index-CX869wwk.d.mts → index-BrGZHEgX.d.mts} +0 -0
- /package/dist/{index-D13oYj4_.d.mts → index-Ci-uuV07.d.mts} +0 -0
- /package/dist/{index-D4DUvwPf.d.mts → index-CknANNvQ2.d.mts} +0 -0
- /package/dist/{index-D7UbuJwP.d.mts → index-CtJuGxUp.d.mts} +0 -0
- /package/dist/{index-DA6_cwf8.d.mts → index-CuYZJcK3.d.mts} +0 -0
- /package/dist/{index-DMRtRo7y.d.mts → index-DWfPppPU.d.mts} +0 -0
- /package/dist/{index-Dflz2i1X.d.mts → index-DYX_PQ7T2.d.mts} +0 -0
- /package/dist/{index-DvmLVvRD.d.mts → index-DZlqSwCF.d.mts} +0 -0
- /package/dist/{index-Es5nKSSL.d.mts → index-De7MV8-j.d.mts} +0 -0
- /package/dist/{index-Wc1llEvP.d.mts → index-Deol7ZWO.d.mts} +0 -0
- /package/dist/{index-dhjtMp5F.d.mts → index-N-OgGgfF.d.mts} +0 -0
- /package/dist/{index-e6k85DKM.d.mts → index-VWno75SQ.d.mts} +0 -0
- /package/dist/{index-ehD5GjMH.d.mts → index-hcx6LMSC.d.mts} +0 -0
- /package/dist/{useModalInsetRight.d.mts → lib/useModalInsetRight.d.mts} +0 -0
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { t as FieldSchemaType } from "./fieldSchemaTypes-COEJOqYL.mjs";
|
|
2
|
+
|
|
3
|
+
//#region lib/objectSchemaTypes.d.ts
|
|
4
|
+
interface FunctionJsonSchema extends JsonSchemaObject {
|
|
5
|
+
properties: {
|
|
6
|
+
parameterTypes: JsonSchemaObject<FunctionParameterJsonSchema>;
|
|
7
|
+
returnType: FunctionReturnTypeJsonSchema;
|
|
8
|
+
};
|
|
9
|
+
function: true;
|
|
10
|
+
codeChainFunctionToken?: string;
|
|
11
|
+
acceptsNullReceiver?: boolean;
|
|
12
|
+
}
|
|
13
|
+
interface CollectionMetaJsonSchema extends JsonSchemaObject {
|
|
14
|
+
properties: {
|
|
15
|
+
filter_attributes: {
|
|
16
|
+
oneOf: FilterAttributeSchema[];
|
|
17
|
+
};
|
|
18
|
+
sort_attributes: JsonSchemaString & {
|
|
19
|
+
oneOf: JsonSchemaConst[];
|
|
20
|
+
};
|
|
21
|
+
collect_from_each_attributes: CollectFromEachPropertiesSchema;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
interface FilterAttributeSchema extends JsonSchemaObject {
|
|
25
|
+
properties: {
|
|
26
|
+
name: JsonSchemaConst;
|
|
27
|
+
value: JsonSchemaString;
|
|
28
|
+
operator: JsonSchemaString;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
interface CollectFromEachPropertiesSchema extends JsonSchemaObject {
|
|
32
|
+
properties: {
|
|
33
|
+
[$ref: string]: CollectFromEachAttibuteSchema;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
interface CollectFromEachAttibuteSchema extends JsonSchemaArray {
|
|
37
|
+
items: JsonSchemaRef;
|
|
38
|
+
}
|
|
39
|
+
interface GenericType extends JsonSchemaBase {
|
|
40
|
+
genericType: 'array_item_schema' | 'parameter_schema' | 'preceding_schema' | 'converted_type';
|
|
41
|
+
}
|
|
42
|
+
interface FunctionGenericParameterSchema extends GenericType {
|
|
43
|
+
genericType: 'parameter_schema';
|
|
44
|
+
position: number;
|
|
45
|
+
}
|
|
46
|
+
interface FunctionConvertedTypeSchema extends GenericType {
|
|
47
|
+
genericType: 'converted_type';
|
|
48
|
+
position: number;
|
|
49
|
+
schemaByValue: {
|
|
50
|
+
[value: string]: JsonSchema;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
type FunctionParameterJsonSchema = (JsonSchema | GenericType) & {
|
|
54
|
+
position: number;
|
|
55
|
+
collectionMetaSchemaProperty?: keyof CollectionMetaJsonSchema['properties'];
|
|
56
|
+
computedSchema?: JsonSchema;
|
|
57
|
+
};
|
|
58
|
+
type FunctionReturnTypeJsonSchema = JsonSchema | GenericType | FunctionConvertedTypeSchema | JsonSchemaArray<GenericType>;
|
|
59
|
+
interface ObjectSchemaMap {
|
|
60
|
+
[$ref: string]: JsonSchemaObject<JsonSchema | FunctionJsonSchema | CollectionMetaJsonSchema>;
|
|
61
|
+
}
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region lib/jsonSchema.d.ts
|
|
64
|
+
/**
|
|
65
|
+
* Consumers with a known set of platform object keys can narrow `objectKey`
|
|
66
|
+
* via declaration merging:
|
|
67
|
+
*
|
|
68
|
+
* declare module '@persona/design-system/lib/jsonSchema' {
|
|
69
|
+
* interface JsonSchemaObjectKeyRegistry { objectKey: MyObjectKeyEnum }
|
|
70
|
+
* }
|
|
71
|
+
*/
|
|
72
|
+
interface JsonSchemaObjectKeyRegistry {}
|
|
73
|
+
type JsonSchemaObjectKey = JsonSchemaObjectKeyRegistry extends {
|
|
74
|
+
objectKey: infer K extends string;
|
|
75
|
+
} ? K : string;
|
|
76
|
+
declare enum JsonSchemaTypes {
|
|
77
|
+
Array = "array",
|
|
78
|
+
Boolean = "boolean",
|
|
79
|
+
Integer = "integer",
|
|
80
|
+
Number = "number",
|
|
81
|
+
Object = "object",
|
|
82
|
+
String = "string",
|
|
83
|
+
Null = "null"
|
|
84
|
+
}
|
|
85
|
+
type JsonSchemaBasicTypes = JsonSchemaTypes.Boolean | JsonSchemaTypes.Integer | JsonSchemaTypes.Number | JsonSchemaTypes.String;
|
|
86
|
+
interface JsonSchemaBase {
|
|
87
|
+
title?: string;
|
|
88
|
+
description?: string;
|
|
89
|
+
examples?: (string | number)[];
|
|
90
|
+
oneOf?: JsonSchema[];
|
|
91
|
+
$ref?: string;
|
|
92
|
+
$id?: string;
|
|
93
|
+
id?: string;
|
|
94
|
+
serializedSchema?: {
|
|
95
|
+
type: JsonSchemaTypes;
|
|
96
|
+
} | null;
|
|
97
|
+
default?: unknown;
|
|
98
|
+
readOnly?: boolean;
|
|
99
|
+
}
|
|
100
|
+
interface JsonSchemaArray<ItemSchema = JsonSchema> extends JsonSchemaBase {
|
|
101
|
+
type: JsonSchemaTypes.Array;
|
|
102
|
+
items: ItemSchema;
|
|
103
|
+
uniqueItems?: boolean;
|
|
104
|
+
fieldType?: FieldSchemaType.Array | FieldSchemaType.MultiChoices;
|
|
105
|
+
default?: unknown[];
|
|
106
|
+
supportedFunctions?: string[];
|
|
107
|
+
}
|
|
108
|
+
interface JsonSchemaBoolean extends JsonSchemaBase {
|
|
109
|
+
type: JsonSchemaTypes.Boolean;
|
|
110
|
+
fieldType?: FieldSchemaType.Boolean;
|
|
111
|
+
default?: boolean;
|
|
112
|
+
}
|
|
113
|
+
interface JsonSchemaInteger extends JsonSchemaBase {
|
|
114
|
+
type: JsonSchemaTypes.Integer;
|
|
115
|
+
enum?: number[];
|
|
116
|
+
minimum?: number;
|
|
117
|
+
maximum?: number;
|
|
118
|
+
fieldType?: FieldSchemaType.Integer;
|
|
119
|
+
default?: number;
|
|
120
|
+
}
|
|
121
|
+
interface JsonSchemaNumber extends JsonSchemaBase {
|
|
122
|
+
type: JsonSchemaTypes.Number;
|
|
123
|
+
enum?: number[];
|
|
124
|
+
minimum?: number;
|
|
125
|
+
maximum?: number;
|
|
126
|
+
fieldType?: FieldSchemaType.Number;
|
|
127
|
+
default?: number;
|
|
128
|
+
}
|
|
129
|
+
interface JsonSchemaNull extends JsonSchemaBase {
|
|
130
|
+
type: JsonSchemaTypes.Null;
|
|
131
|
+
default?: null;
|
|
132
|
+
}
|
|
133
|
+
interface JsonSchemaObject<PropertySchema = JsonSchema> extends JsonSchemaBase {
|
|
134
|
+
type: JsonSchemaTypes.Object;
|
|
135
|
+
properties: Record<string, PropertySchema>;
|
|
136
|
+
required?: string[];
|
|
137
|
+
objectKey?: JsonSchemaObjectKey;
|
|
138
|
+
fieldType?: FieldSchemaType.File | FieldSchemaType.Hash | FieldSchemaType.Json | FieldSchemaType.Relation | FieldSchemaType.DocumentGeneric | FieldSchemaType.GovernmentId | FieldSchemaType.GovernmentIdNfc | FieldSchemaType.Selfie;
|
|
139
|
+
isVariable?: boolean;
|
|
140
|
+
rootDescription?: string;
|
|
141
|
+
additionalProperties?: boolean;
|
|
142
|
+
baseSupportedFunctions?: string[];
|
|
143
|
+
}
|
|
144
|
+
declare const EMPTY_JSON_SCHEMA_OBJECT: JsonSchemaObject;
|
|
145
|
+
interface JsonSchemaString extends JsonSchemaBase {
|
|
146
|
+
type: JsonSchemaTypes.String;
|
|
147
|
+
enum?: string[];
|
|
148
|
+
oneOf?: JsonSchemaConst[];
|
|
149
|
+
const?: string;
|
|
150
|
+
format?: string;
|
|
151
|
+
group?: string;
|
|
152
|
+
labels?: string[];
|
|
153
|
+
maxLength?: number | null;
|
|
154
|
+
fieldType?: FieldSchemaType.Choices | FieldSchemaType.Date | FieldSchemaType.Datetime | FieldSchemaType.EmailAddress | FieldSchemaType.String;
|
|
155
|
+
default?: string;
|
|
156
|
+
}
|
|
157
|
+
interface JsonSchemaAnyOf extends JsonSchemaBase {
|
|
158
|
+
anyOf: JsonSchema[];
|
|
159
|
+
}
|
|
160
|
+
interface JsonSchemaConst extends JsonSchemaBase {
|
|
161
|
+
const: string;
|
|
162
|
+
}
|
|
163
|
+
interface JsonSchemaRef extends JsonSchemaBase {
|
|
164
|
+
$ref: string;
|
|
165
|
+
objectKey?: JsonSchemaObjectKey;
|
|
166
|
+
}
|
|
167
|
+
type JsonSchemaEmpty = Record<string, never>;
|
|
168
|
+
type JsonSchemaBasic = JsonSchemaBoolean | JsonSchemaInteger | JsonSchemaNumber | JsonSchemaString;
|
|
169
|
+
type JsonSchemaCore = JsonSchemaArray<JsonSchemaCore> | JsonSchemaBoolean | JsonSchemaInteger | JsonSchemaNumber | JsonSchemaObject<JsonSchemaCore> | JsonSchemaString;
|
|
170
|
+
type JsonSchema = JsonSchemaArray | JsonSchemaBoolean | JsonSchemaInteger | JsonSchemaNumber | JsonSchemaObject | JsonSchemaString | JsonSchemaAnyOf | JsonSchemaConst | JsonSchemaRef | JsonSchemaBase;
|
|
171
|
+
declare const isJsonSchemaObject: (schema: JsonSchema) => schema is JsonSchemaObject;
|
|
172
|
+
declare const isJsonSchemaArray: (schema: JsonSchema) => schema is JsonSchemaArray;
|
|
173
|
+
/** Returns true for non-primitive schemas (object, array, or $ref to a platform object). */
|
|
174
|
+
declare const isNonPrimitiveSchema: (schema: JsonSchema) => boolean;
|
|
175
|
+
declare const isFileType: (fieldType: FieldSchemaType | undefined) => fieldType is FieldSchemaType.File;
|
|
176
|
+
declare const isFileField: (schema: JsonSchema) => boolean;
|
|
177
|
+
declare const isArrayWithFileItems: (schema: JsonSchema) => boolean;
|
|
178
|
+
/** ImageGallery accepts file schemas or arrays of file items. */
|
|
179
|
+
declare const isFileSchema: (schema: JsonSchema) => boolean;
|
|
180
|
+
declare const isJsonSchemaRef: (schema: JsonSchema) => schema is JsonSchemaRef;
|
|
181
|
+
declare const isJsonSchemaPlatformObject: (schema: JsonSchema) => schema is JsonSchemaRef;
|
|
182
|
+
declare const isJsonSchemaString: (schema: JsonSchema) => schema is JsonSchemaString;
|
|
183
|
+
declare const isJsonSchemaDate: (schema: JsonSchema) => schema is JsonSchemaString;
|
|
184
|
+
declare const isJsonSchemaDateTime: (schema: JsonSchema) => schema is JsonSchemaString;
|
|
185
|
+
declare const isJsonSchemaSecret: (schema: JsonSchema) => schema is JsonSchemaString;
|
|
186
|
+
declare const isOneOfSchema: (schema: JsonSchema) => schema is JsonSchemaBase & {
|
|
187
|
+
oneOf: JsonSchemaConst[];
|
|
188
|
+
};
|
|
189
|
+
declare const isOneOfStringSchema: (schema: JsonSchema) => schema is JsonSchemaString & {
|
|
190
|
+
oneOf: JsonSchemaConst[];
|
|
191
|
+
};
|
|
192
|
+
declare const isFunctionSchema: (schema: JsonSchema) => schema is FunctionJsonSchema;
|
|
193
|
+
declare const genericArrayItemSchema: (object: JsonSchema, schema: FunctionParameterJsonSchema | FunctionReturnTypeJsonSchema) => JsonSchema | null;
|
|
194
|
+
declare const isPrecedingSchema: (schema: FunctionParameterJsonSchema | FunctionReturnTypeJsonSchema) => boolean;
|
|
195
|
+
declare const isGenericParameterSchema: (schema: FunctionParameterJsonSchema | FunctionReturnTypeJsonSchema) => schema is FunctionGenericParameterSchema;
|
|
196
|
+
declare const isConvertedTypeSchema: (schema: FunctionParameterJsonSchema | FunctionReturnTypeJsonSchema) => schema is FunctionConvertedTypeSchema;
|
|
197
|
+
declare const isJsonSchemaChoices: (schema: JsonSchema) => schema is JsonSchemaString;
|
|
198
|
+
declare const isJsonSchemaInteger: (schema: JsonSchema) => schema is JsonSchemaInteger;
|
|
199
|
+
declare const isJsonSchemaNumber: (schema: JsonSchema) => schema is JsonSchemaNumber;
|
|
200
|
+
declare const isJsonSchemaBoolean: (schema: JsonSchema) => schema is JsonSchemaBoolean;
|
|
201
|
+
declare const functionParametersFromJsonSchema: (functionSchema: JsonSchema, currentSchema: JsonSchema) => JsonSchema[];
|
|
202
|
+
declare const getArrayItemType: (schema: JsonSchema) => JsonSchemaTypes | null;
|
|
203
|
+
declare const humanizeSchemaType: ({
|
|
204
|
+
schema,
|
|
205
|
+
parentSchema
|
|
206
|
+
}: {
|
|
207
|
+
schema: JsonSchema | FunctionJsonSchema;
|
|
208
|
+
parentSchema?: JsonSchema;
|
|
209
|
+
}) => string;
|
|
210
|
+
declare const getNonNullableType: (schema: JsonSchema | FunctionJsonSchema | null | undefined) => JsonSchemaTypes | null;
|
|
211
|
+
/**
|
|
212
|
+
* Unwraps an exactly-nullable platform-object union — a `oneOf` of one `$ref`
|
|
213
|
+
* member and one `null` member — to its `$ref` member. Any other shape
|
|
214
|
+
* (arbitrary unions, multiple refs, inline members) returns null so it is
|
|
215
|
+
* never treated as a single receiver type.
|
|
216
|
+
*/
|
|
217
|
+
declare const getNonNullableRefSchema: (schema: JsonSchema | null | undefined) => JsonSchemaRef | null;
|
|
218
|
+
declare const isSchemaTypeAllowed: (schema: JsonSchema | FunctionJsonSchema | null | undefined, allowedTypes: readonly string[]) => boolean;
|
|
219
|
+
declare const extendSchema: (schemaMap: ObjectSchemaMap, schemaToAdd: Partial<Record<keyof typeof schemaMap, Record<string, JsonSchema>>>) => ObjectSchemaMap;
|
|
220
|
+
//#endregion
|
|
221
|
+
export { FunctionConvertedTypeSchema as $, isFileField as A, isJsonSchemaInteger as B, genericArrayItemSchema as C, humanizeSchemaType as D, getNonNullableType as E, isJsonSchemaArray as F, isJsonSchemaSecret as G, isJsonSchemaObject as H, isJsonSchemaBoolean as I, isOneOfSchema as J, isJsonSchemaString as K, isJsonSchemaChoices as L, isFileType as M, isFunctionSchema as N, isArrayWithFileItems as O, isGenericParameterSchema as P, CollectionMetaJsonSchema as Q, isJsonSchemaDate as R, functionParametersFromJsonSchema as S, getNonNullableRefSchema as T, isJsonSchemaPlatformObject as U, isJsonSchemaNumber as V, isJsonSchemaRef as W, isPrecedingSchema as X, isOneOfStringSchema as Y, isSchemaTypeAllowed as Z, JsonSchemaObjectKeyRegistry as _, JsonSchemaBase as a, ObjectSchemaMap as at, JsonSchemaTypes as b, JsonSchemaBoolean as c, JsonSchemaEmpty as d, FunctionGenericParameterSchema as et, JsonSchemaInteger as f, JsonSchemaObjectKey as g, JsonSchemaObject as h, JsonSchemaArray as i, GenericType as it, isFileSchema as j, isConvertedTypeSchema as k, JsonSchemaConst as l, JsonSchemaNumber as m, JsonSchema as n, FunctionParameterJsonSchema as nt, JsonSchemaBasic as o, JsonSchemaNull as p, isNonPrimitiveSchema as q, JsonSchemaAnyOf as r, FunctionReturnTypeJsonSchema as rt, JsonSchemaBasicTypes as s, EMPTY_JSON_SCHEMA_OBJECT as t, FunctionJsonSchema as tt, JsonSchemaCore as u, JsonSchemaRef as v, getArrayItemType as w, extendSchema as x, JsonSchemaString as y, isJsonSchemaDateTime as z };
|
|
222
|
+
//# sourceMappingURL=jsonSchema-B1VonQij.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as createGlobalStyle, r as css } from "../styledComponentsInterop-
|
|
1
|
+
import { n as createGlobalStyle, r as css } from "../styledComponentsInterop-NxwFjeA4.mjs";
|
|
2
2
|
import { Color, Typography } from "@persona/design-tokens";
|
|
3
3
|
//#region lib/GlobalStyles.tsx
|
|
4
4
|
const globalStylesRaw = css`
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import * as _$styled_components0 from "styled-components";
|
|
2
|
-
import * as _$react_aria_components0 from "react-aria-components";
|
|
3
2
|
|
|
4
3
|
//#region lib/HeadlessAriaButton.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* A fully headless version of the react-aria Button component. A react-aria button is sometimes
|
|
7
6
|
* needed for react-aria components to function.
|
|
8
7
|
*/
|
|
9
|
-
declare const HeadlessAriaButton: _$styled_components0.StyledComponent<
|
|
8
|
+
declare const HeadlessAriaButton: _$styled_components0.StyledComponent<any, any, any, any>;
|
|
10
9
|
//#endregion
|
|
11
10
|
export { HeadlessAriaButton };
|
|
12
11
|
//# sourceMappingURL=HeadlessAriaButton.d.mts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as MiddleTruncatedText } from "../MiddleTruncatedText-
|
|
1
|
+
import { t as MiddleTruncatedText } from "../MiddleTruncatedText-CO58jrNF.mjs";
|
|
2
2
|
export { MiddleTruncatedText, MiddleTruncatedText as default };
|
package/dist/lib/PDSProvider.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import defaultTheme from "../theme.mjs";
|
|
2
|
-
import { t as ThemeProvider } from "../styledComponentsInterop-
|
|
2
|
+
import { t as ThemeProvider } from "../styledComponentsInterop-NxwFjeA4.mjs";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region lib/PDSProvider.tsx
|
|
5
5
|
const PDSProvider = ({ children, theme = defaultTheme }) => /* @__PURE__ */ jsx(ThemeProvider, {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TruncatedText, r as TruncatedTextProps, t as OverflowEllipsisSpan } from "../TruncatedText-
|
|
1
|
+
import { n as TruncatedText, r as TruncatedTextProps, t as OverflowEllipsisSpan } from "../TruncatedText-B2v53Y11.mjs";
|
|
2
2
|
export { OverflowEllipsisSpan, TruncatedText, TruncatedText as default, TruncatedTextProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as styled } from "../styledComponentsInterop-
|
|
1
|
+
import { a as styled } from "../styledComponentsInterop-NxwFjeA4.mjs";
|
|
2
2
|
import { useIsOverflow } from "./useIsOverflow.mjs";
|
|
3
3
|
import { useRef } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useIsOverflow } from "./useIsOverflow.mjs";
|
|
2
2
|
import { OverflowEllipsisSpan } from "./TruncatedText.mjs";
|
|
3
|
-
import { a as Tooltip } from "../Tooltip-
|
|
3
|
+
import { a as Tooltip } from "../Tooltip-BsuYG0fw.mjs";
|
|
4
4
|
import { useRef } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region lib/TruncatedTextWithTooltip.tsx
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region lib/color.ts
|
|
2
|
+
const transparent = "transparent";
|
|
3
|
+
const HEX = /^#([0-9a-f]{6})$/i;
|
|
4
|
+
/** Percentage token as a unitless `opacity`; percentage `opacity` is below the browserslist floor. */
|
|
5
|
+
const opacityOf = (amount) => String(Number.parseFloat(amount) / 100);
|
|
6
|
+
/** `rgba()` rather than `color-mix()`: browserslist still includes IE 11 and iOS Safari < 16.2. */
|
|
7
|
+
const withAlpha = (color, amount) => {
|
|
8
|
+
const hex = HEX.exec(color);
|
|
9
|
+
if (!hex) throw new Error(`withAlpha expects a six-digit hex primitive, received "${color}"`);
|
|
10
|
+
const channels = hex[1];
|
|
11
|
+
const [red, green, blue] = [
|
|
12
|
+
0,
|
|
13
|
+
2,
|
|
14
|
+
4
|
|
15
|
+
].map((offset) => Number.parseInt(channels.slice(offset, offset + 2), 16));
|
|
16
|
+
return `rgba(${red}, ${green}, ${blue}, ${opacityOf(amount)})`;
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { opacityOf, transparent, withAlpha };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=color.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color.mjs","names":[],"sources":["../../lib/color.ts"],"sourcesContent":["import type { Color } from '@persona/design-tokens';\nimport type { CssPercentage } from 'design-system/variables/semantic';\n\n/**\n * A computed theme colour (not a token primitive). Property-branded rather than `unique symbol`\n * so the brand survives declaration emit.\n */\nexport type CssColor = string & { readonly __pdsCssColor: true };\n\nexport type PdsColor = Color | CssColor;\n\nexport const transparent = 'transparent' as CssColor;\n\nconst HEX = /^#([0-9a-f]{6})$/i;\n\n/** Percentage token as a unitless `opacity`; percentage `opacity` is below the browserslist floor. */\nexport const opacityOf = (amount: CssPercentage): string => String(Number.parseFloat(amount) / 100);\n\n/** `rgba()` rather than `color-mix()`: browserslist still includes IE 11 and iOS Safari < 16.2. */\nexport const withAlpha = (color: Color, amount: CssPercentage): CssColor => {\n const hex = HEX.exec(color);\n if (!hex) {\n throw new Error(`withAlpha expects a six-digit hex primitive, received \"${color}\"`);\n }\n\n const channels = hex[1];\n const [red, green, blue] = [0, 2, 4].map((offset) =>\n Number.parseInt(channels.slice(offset, offset + 2), 16),\n );\n return `rgba(${red}, ${green}, ${blue}, ${opacityOf(amount)})` as CssColor;\n};\n"],"mappings":";AAWA,MAAa,cAAc;AAE3B,MAAM,MAAM;;AAGZ,MAAa,aAAa,WAAkC,OAAO,OAAO,WAAW,OAAO,GAAG,IAAI;;AAGnG,MAAa,aAAa,OAAc,WAAoC;CAC1E,MAAM,MAAM,IAAI,KAAK,MAAM;AAC3B,KAAI,CAAC,IACH,OAAM,IAAI,MAAM,0DAA0D,MAAM,GAAG;CAGrF,MAAM,WAAW,IAAI;CACrB,MAAM,CAAC,KAAK,OAAO,QAAQ;EAAC;EAAG;EAAG;EAAE,CAAC,KAAK,WACxC,OAAO,SAAS,SAAS,MAAM,QAAQ,SAAS,EAAE,EAAE,GAAG,CACxD;AACD,QAAO,QAAQ,IAAI,IAAI,MAAM,IAAI,KAAK,IAAI,UAAU,OAAO,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as DateFilterPreset, c as RelativeDateFilterValue, n as AbsoluteDateRange, o as DateFilterValue } from "../../types-
|
|
2
|
-
import { a as selectedPresetFor, i as resolveDateFilterValue, r as parseDateFilterValue } from "../../codec-
|
|
1
|
+
import { a as DateFilterPreset, c as RelativeDateFilterValue, n as AbsoluteDateRange, o as DateFilterValue } from "../../types-COeginAF.mjs";
|
|
2
|
+
import { a as selectedPresetFor, i as resolveDateFilterValue, r as parseDateFilterValue } from "../../codec-D5qlDVgU.mjs";
|
|
3
3
|
export { AbsoluteDateRange, DateFilterPreset, DateFilterValue, RelativeDateFilterValue, parseDateFilterValue, resolveDateFilterValue, selectedPresetFor };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as selectedPresetFor, n as parseDateFilterValue, r as resolveDateFilterValue } from "../../date-filter-
|
|
1
|
+
import { i as selectedPresetFor, n as parseDateFilterValue, r as resolveDateFilterValue } from "../../date-filter-DMZnJwGs.mjs";
|
|
2
2
|
export { parseDateFilterValue, resolveDateFilterValue, selectedPresetFor };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region lib/errorReporter.d.ts
|
|
2
|
+
/** Configure how PDS reports non-fatal errors from non-React code paths (e.g. method-chain serialization). */
|
|
3
|
+
declare const setErrorReporter: (next: (error: Error) => void) => void;
|
|
4
|
+
declare const reportError: (error: Error) => void;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { reportError, setErrorReporter };
|
|
7
|
+
//# sourceMappingURL=errorReporter.d.mts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region lib/errorReporter.ts
|
|
2
|
+
let reporter = (error) => {
|
|
3
|
+
console.error(error);
|
|
4
|
+
};
|
|
5
|
+
/** Configure how PDS reports non-fatal errors from non-React code paths (e.g. method-chain serialization). */
|
|
6
|
+
const setErrorReporter = (next) => {
|
|
7
|
+
reporter = next;
|
|
8
|
+
};
|
|
9
|
+
const reportError = (error) => {
|
|
10
|
+
reporter(error);
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { reportError, setErrorReporter };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=errorReporter.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errorReporter.mjs","names":[],"sources":["../../lib/errorReporter.ts"],"sourcesContent":["let reporter: (error: Error) => void = (error) => {\n console.error(error);\n};\n\n/** Configure how PDS reports non-fatal errors from non-React code paths (e.g. method-chain serialization). */\nexport const setErrorReporter = (next: (error: Error) => void): void => {\n reporter = next;\n};\n\nexport const reportError = (error: Error): void => {\n reporter(error);\n};\n"],"mappings":";AAAA,IAAI,YAAoC,UAAU;AAChD,SAAQ,MAAM,MAAM;;;AAItB,MAAa,oBAAoB,SAAuC;AACtE,YAAW;;AAGb,MAAa,eAAe,UAAuB;AACjD,UAAS,MAAM"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
//#region lib/fieldSchemaTypes.ts
|
|
2
|
+
/**
|
|
3
|
+
* Enum describing the schema-level field types shared across form and JSON schema utilities.
|
|
4
|
+
* Keep this module free of runtime dependencies so it can be safely imported in both directions.
|
|
5
|
+
*/
|
|
6
|
+
let FieldSchemaType = /* @__PURE__ */ function(FieldSchemaType) {
|
|
7
|
+
FieldSchemaType["Alias"] = "alias";
|
|
8
|
+
FieldSchemaType["Array"] = "array";
|
|
9
|
+
FieldSchemaType["Boolean"] = "boolean";
|
|
10
|
+
FieldSchemaType["Calculated"] = "calculated";
|
|
11
|
+
FieldSchemaType["Choices"] = "choices";
|
|
12
|
+
FieldSchemaType["Date"] = "date";
|
|
13
|
+
FieldSchemaType["Datetime"] = "datetime";
|
|
14
|
+
FieldSchemaType["EmailAddress"] = "email-address";
|
|
15
|
+
FieldSchemaType["File"] = "file";
|
|
16
|
+
FieldSchemaType["Hash"] = "hash";
|
|
17
|
+
FieldSchemaType["Integer"] = "integer";
|
|
18
|
+
FieldSchemaType["Json"] = "json";
|
|
19
|
+
FieldSchemaType["MultiChoices"] = "multi-choices";
|
|
20
|
+
FieldSchemaType["Number"] = "number";
|
|
21
|
+
FieldSchemaType["String"] = "string";
|
|
22
|
+
/**
|
|
23
|
+
* NOTE: please also add all relation fields to the RELATION_FIELDS constant.
|
|
24
|
+
*/
|
|
25
|
+
FieldSchemaType["Relation"] = "Field::Relation";
|
|
26
|
+
/**
|
|
27
|
+
* Not ideal because 'generic' is not very descriptive. Should migrate
|
|
28
|
+
* fields serialization to not demodulize. But that's a breaking change.
|
|
29
|
+
*/
|
|
30
|
+
FieldSchemaType["DocumentGeneric"] = "Field::Relation::Document::Generic";
|
|
31
|
+
FieldSchemaType["GovernmentId"] = "Field::Relation::Document::GovernmentId";
|
|
32
|
+
FieldSchemaType["GovernmentIdNfc"] = "Field::Relation::Document::GovernmentIdNfc";
|
|
33
|
+
FieldSchemaType["Mdoc"] = "Field::Relation::Document::Mdoc";
|
|
34
|
+
FieldSchemaType["QrCode"] = "Field::Relation::Document::QrCode";
|
|
35
|
+
FieldSchemaType["Selfie"] = "Field::Relation::Selfie";
|
|
36
|
+
return FieldSchemaType;
|
|
37
|
+
}({});
|
|
38
|
+
//#endregion
|
|
39
|
+
export { FieldSchemaType };
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=fieldSchemaTypes.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fieldSchemaTypes.mjs","names":[],"sources":["../../lib/fieldSchemaTypes.ts"],"sourcesContent":["/**\n * Enum describing the schema-level field types shared across form and JSON schema utilities.\n * Keep this module free of runtime dependencies so it can be safely imported in both directions.\n */\nexport enum FieldSchemaType {\n Alias = 'alias',\n Array = 'array',\n Boolean = 'boolean',\n Calculated = 'calculated',\n Choices = 'choices',\n Date = 'date',\n Datetime = 'datetime',\n EmailAddress = 'email-address',\n File = 'file',\n Hash = 'hash',\n Integer = 'integer',\n Json = 'json',\n MultiChoices = 'multi-choices',\n Number = 'number',\n String = 'string',\n /**\n * NOTE: please also add all relation fields to the RELATION_FIELDS constant.\n */\n Relation = 'Field::Relation',\n /**\n * Not ideal because 'generic' is not very descriptive. Should migrate\n * fields serialization to not demodulize. But that's a breaking change.\n */\n DocumentGeneric = 'Field::Relation::Document::Generic',\n GovernmentId = 'Field::Relation::Document::GovernmentId',\n GovernmentIdNfc = 'Field::Relation::Document::GovernmentIdNfc',\n Mdoc = 'Field::Relation::Document::Mdoc',\n QrCode = 'Field::Relation::Document::QrCode',\n Selfie = 'Field::Relation::Selfie',\n}\n"],"mappings":";;;;;AAIA,IAAY,kBAAL,yBAAA,iBAAA;AACL,iBAAA,WAAA;AACA,iBAAA,WAAA;AACA,iBAAA,aAAA;AACA,iBAAA,gBAAA;AACA,iBAAA,aAAA;AACA,iBAAA,UAAA;AACA,iBAAA,cAAA;AACA,iBAAA,kBAAA;AACA,iBAAA,UAAA;AACA,iBAAA,UAAA;AACA,iBAAA,aAAA;AACA,iBAAA,UAAA;AACA,iBAAA,kBAAA;AACA,iBAAA,YAAA;AACA,iBAAA,YAAA;;;;AAIA,iBAAA,cAAA;;;;;AAKA,iBAAA,qBAAA;AACA,iBAAA,kBAAA;AACA,iBAAA,qBAAA;AACA,iBAAA,UAAA;AACA,iBAAA,YAAA;AACA,iBAAA,YAAA;;KACD"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { A as isFileField, B as isJsonSchemaInteger, C as genericArrayItemSchema, D as humanizeSchemaType, E as getNonNullableType, F as isJsonSchemaArray, G as isJsonSchemaSecret, H as isJsonSchemaObject, I as isJsonSchemaBoolean, J as isOneOfSchema, K as isJsonSchemaString, L as isJsonSchemaChoices, M as isFileType, N as isFunctionSchema, O as isArrayWithFileItems, P as isGenericParameterSchema, R as isJsonSchemaDate, S as functionParametersFromJsonSchema, T as getNonNullableRefSchema, U as isJsonSchemaPlatformObject, V as isJsonSchemaNumber, W as isJsonSchemaRef, X as isPrecedingSchema, Y as isOneOfStringSchema, Z as isSchemaTypeAllowed, _ as JsonSchemaObjectKeyRegistry, a as JsonSchemaBase, b as JsonSchemaTypes, c as JsonSchemaBoolean, d as JsonSchemaEmpty, f as JsonSchemaInteger, g as JsonSchemaObjectKey, h as JsonSchemaObject, i as JsonSchemaArray, j as isFileSchema, k as isConvertedTypeSchema, l as JsonSchemaConst, m as JsonSchemaNumber, n as JsonSchema, o as JsonSchemaBasic, p as JsonSchemaNull, q as isNonPrimitiveSchema, r as JsonSchemaAnyOf, s as JsonSchemaBasicTypes, t as EMPTY_JSON_SCHEMA_OBJECT, u as JsonSchemaCore, v as JsonSchemaRef, w as getArrayItemType, x as extendSchema, y as JsonSchemaString, z as isJsonSchemaDateTime } from "../jsonSchema-B1VonQij.mjs";
|
|
2
|
+
export { EMPTY_JSON_SCHEMA_OBJECT, JsonSchema, JsonSchemaAnyOf, JsonSchemaArray, JsonSchemaBase, JsonSchemaBasic, JsonSchemaBasicTypes, JsonSchemaBoolean, JsonSchemaConst, JsonSchemaCore, JsonSchemaEmpty, JsonSchemaInteger, JsonSchemaNull, JsonSchemaNumber, JsonSchemaObject, JsonSchemaObjectKey, JsonSchemaObjectKeyRegistry, JsonSchemaRef, JsonSchemaString, JsonSchemaTypes, extendSchema, functionParametersFromJsonSchema, genericArrayItemSchema, getArrayItemType, getNonNullableRefSchema, getNonNullableType, humanizeSchemaType, isArrayWithFileItems, isConvertedTypeSchema, isFileField, isFileSchema, isFileType, isFunctionSchema, isGenericParameterSchema, isJsonSchemaArray, isJsonSchemaBoolean, isJsonSchemaChoices, isJsonSchemaDate, isJsonSchemaDateTime, isJsonSchemaInteger, isJsonSchemaNumber, isJsonSchemaObject, isJsonSchemaPlatformObject, isJsonSchemaRef, isJsonSchemaSecret, isJsonSchemaString, isNonPrimitiveSchema, isOneOfSchema, isOneOfStringSchema, isPrecedingSchema, isSchemaTypeAllowed };
|