@astryx-vue/core 0.2.6 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.md +9 -0
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-BBhl5P1X.js → AlertDialog-C2inDZWG.js} +13 -7
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-mrflO0Uy.js → AppShell-CumzH-8z.js} +3 -3
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-pPZ4dI_s.js → Avatar-BW0TE8t9.js} +47 -34
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-B--NQSB3.js → AvatarGroup-DLC_FFR5.js} +57 -13
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-GbGxrqQO.js → Banner-C5VAwo4D.js} +68 -34
- package/dist/Blockquote/index.js +1 -1
- package/dist/Blockquote-DRoKdcxZ.js +27 -0
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-eJ3FzTBD.js → BottomSheet-B4sc3F1S.js} +288 -140
- package/dist/{BottomSheet-DIVwbGr3.js → BottomSheet-m54uCMJN.js} +20 -4
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/Breadcrumbs-CTaz7Kh4.js +223 -0
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-B6Hj_O_s.js → Button-ONOoHdkg.js} +25 -15
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/ButtonGroup-DnkSZ9a5.js +87 -0
- package/dist/{ButtonTooltip-nWWrth8j.js → ButtonTooltip-CNKOQHYR.js} +7 -4
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-B7vIowKq.js → Calendar-BAqzzQm2.js} +5 -5
- package/dist/Card/index.d.ts +2 -2
- package/dist/Card/index.js +1 -1
- package/dist/{Card-HAjZQg2s.js → Card-B-I24X9S.js} +2 -0
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-DAkOa7KK.js → Carousel-DXC22UWq.js} +50 -33
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-DVoI6UOA.js → Chat-BdJW6IX5.js} +152 -83
- package/dist/CheckboxIndicator/index.js +1 -1
- package/dist/{CheckboxIndicator-D37cm2Rh.js → CheckboxIndicator-fH4d-JE1.js} +9 -3
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-BS9J6edf.js → CheckboxInput-DJHCbwgC.js} +19 -11
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-CX1i_jVP.js → CheckboxList-BdZIP4_J.js} +155 -38
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-Djgwa0ko.js → Citation-DbZn2vms.js} +8 -3
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-Bhds4RRe.js → ClickableCard-ChAfiw9T.js} +10 -7
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +3 -3
- package/dist/{Code-XnPuGxey.js → Code-Bg7GBdxy.js} +2 -1
- package/dist/{CodeBlock-BUM3czCS.js → CodeBlock-Caaflp7C.js} +7 -3
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-Cov3Pyq5.js → Collapsible-Bdj0WYpb.js} +13 -11
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-D6wYS30d.js → CommandPalette-C_MClfAg.js} +146 -62
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-Bil81sfq.js → ComplexSelector-BeVQaqRf.js} +94 -22
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-DdLJnxNN.js → ContextMenu-C6hPYvYz.js} +299 -179
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-u2XKccpK.js → DateInput-BjLdmYor.js} +567 -76
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-u7LhH6up.js → DateRangeInput-Br3wVEfD.js} +99 -28
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/DateTimeInput-CAZBwoRe.js +562 -0
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +2 -2
- package/dist/{Dialog-BiOSKQso.js → Dialog-Dce4Y97V.js} +28 -11
- package/dist/{Dialog-FGHfDu5M.js → Dialog-fhyxB00e.js} +32 -5
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Divider/index.js +1 -1
- package/dist/{Divider-BtwnL18I.js → Divider-mOZ6vIQw.js} +5 -1
- package/dist/DropdownMenu/index.d.ts +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-SM_BEOgM.js → DropdownMenu-BdGmQVb1.js} +85 -57
- package/dist/{DropdownMenu-BEasdJ6R.js → DropdownMenu-BzQrNV9C.js} +481 -264
- package/dist/{DropdownMenuRadioItem.vue-CXEURBcq.d.ts → DropdownMenuRadioItem.vue-Qd-8Rg4Q.d.ts} +236 -230
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-C_GH7IV5.js → EmptyState-CmOQf2SH.js} +2 -2
- package/dist/Field/index.d.ts +4 -3
- package/dist/Field/index.js +4 -3
- package/dist/{Field-D5gUEGw4.js → Field--OEsLBfE.js} +4 -3
- package/dist/{FieldInfoTip-Ds-sW_jY.js → FieldInfoTip-gxsnfkZw.js} +3 -3
- package/dist/{FieldLabel-BNeXRuGH.js → FieldLabel-jxIiWgLw.js} +12 -7
- package/dist/FieldStatus/index.d.ts +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-BpdiO1V8.js → FileInput-B_pUxB0Y.js} +106 -29
- package/dist/FormLayout/index.d.ts +1 -1
- package/dist/FormLayout/index.js +1 -1
- package/dist/{FormLayout-D47FjiOq.js → FormLayout-B9dUB6Ps.js} +1 -1
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-BnwWEWkp.js → Heading-BzBunfN7.js} +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-ycY50pRN.js → HoverCard-BpJhT0sn.js} +35 -22
- package/dist/Icon/index.d.ts +4 -4
- package/dist/Icon/index.js +1 -1
- package/dist/{Icon-bteSId7T.js → Icon-KDnUyY7f.js} +12 -20
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-DDNgNl7B.js → IconButton-DI-XBbtV.js} +1 -1
- package/dist/Indicator/index.d.ts +2 -2
- package/dist/Indicator/index.js +2 -1
- package/dist/InputClearButton-CwXPan8c.js +40 -0
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +2 -2
- package/dist/{InputGroup-CA03Smrs.js → InputGroup-DiiocoIW.js} +2 -2
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-DJay_w3B.js → InternationalizationProvider-kBapgKAQ.js} +5 -9
- package/dist/{Item-KhFKX9St.js → Item-DWMIjN8n.js} +34 -9
- package/dist/Kbd/index.js +1 -1
- package/dist/{Kbd-BB-Dw6zE.js → Kbd-CV3LO2Ge.js} +18 -2
- package/dist/LayerContentBoundary-CvsKxwwm.js +27 -0
- package/dist/LayerProvider/index.js +1 -1
- package/dist/{LayerProvider-D9NsQFzL.js → LayerProvider-B6zpMBWC.js} +15 -3
- package/dist/Layout/index.d.ts +1 -1
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-9X6eCUoY.js → Layout-JJRCG7Mf.js} +1 -1
- package/dist/{LayoutPanel-DeOh00p5.js → LayoutPanel-zM5vjrKS.js} +15 -8
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-DTF9EdTG.js → Lightbox-D8wyPgMK.js} +8 -6
- package/dist/Link/index.d.ts +2 -2
- package/dist/Link/index.js +1 -1
- package/dist/{Link-BqHCtiyt.js → Link-DweIpOtN.js} +29 -12
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-8RWT8XAG.js → ListItem-BQXMu1Tb.js} +1 -1
- package/dist/Markdown/index.d.ts +5 -2
- package/dist/Markdown/index.js +5 -2
- package/dist/Markdown/parser/index.d.ts +4 -0
- package/dist/Markdown/parser/index.js +3 -0
- package/dist/Markdown/plugin-protocol/index.d.ts +35 -0
- package/dist/Markdown/plugin-protocol/index.js +107 -0
- package/dist/Markdown/plugin-renderer/index.d.ts +31 -0
- package/dist/Markdown/plugin-renderer/index.js +42 -0
- package/dist/{Markdown-2CVyZDuB.js → Markdown-DhVfOvXk.js} +195 -484
- package/dist/MediaTheme-DlLqYhDy.js +433 -0
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-B-OelQlt.js → MetadataList-CEYceIlN.js} +15 -7
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-C3dkrM98.js → MobileNavToggle-pdoJFZHx.js} +60 -19
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-D1WFGqGU.js → MoreMenu-CFNqSRev.js} +87 -67
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/MultiSelector-DuVatmq5.js +1456 -0
- package/dist/{NavDisclosure-C_fugrQ3.js → NavDisclosure-Bq9DTZLO.js} +29 -7
- package/dist/{NavHeadingSurface-B3yJspSN.js → NavHeadingSurface-C4v_MtkX.js} +29 -26
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +2 -2
- package/dist/{NavItem-BBIGSvDj.js → NavItem-BPb3yfgz.js} +17 -4
- package/dist/NavMenu/index.d.ts +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-ThXguZAz.js → NavMenu-BYIDzjix.js} +42 -15
- package/dist/{NavMenuItem-BvJNsDFC.js → NavMenuItem-D3FO90GR.js} +14 -12
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/NumberInput-B0vzOg3N.js +727 -0
- package/dist/Outline/index.d.ts +2 -2
- package/dist/Outline/index.js +2 -2
- package/dist/{Outline-755h-lMP.js → Outline-CfGv2F1o.js} +91 -6
- package/dist/OverflowList/index.d.ts +2 -2
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-NmrSMbxb.js → OverflowList-BgRLZ3dh.js} +23 -6
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-Cc4BrjQg.js → Pagination-Bfe12018.js} +2 -2
- package/dist/PickerWheel-CSwUYfes.js +69 -0
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-CtoBfVlD.js → Popover-78dFjTb9.js} +28 -17
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-DHoiObLn.js → PowerSearch-BoAMdFaT.js} +776 -586
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-CVLzdoBK.js → ProgressBar-VP4JS7vm.js} +10 -7
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-Bfu6JSNV.js → RadioGroup-BIipql-L.js} +94 -26
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-xY1cwLdZ.js → RadioList-GyhgBg4j.js} +57 -8
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-q4nD_586.js → ResizeHandle-TPlUCAHD.js} +103 -50
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/ScrollableArea/index.js +1 -1
- package/dist/{ScrollableArea-CJiaALHm.js → ScrollableArea-0u6RWtGG.js} +14 -3
- package/dist/Scrollbars/index.d.ts +2 -0
- package/dist/Scrollbars/index.js +3 -0
- package/dist/Scrollbars-D_93hJYK.js +75 -0
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-ChHmFrrC.js → SegmentedControl-D1wWGBZo.js} +11 -5
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-Bj5s_tIN.js → SelectableCard-BEqnhPaX.js} +17 -12
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/Selector-CPISLzp7.js +1049 -0
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-Dtv8eA2j.js → SideNav-CN2QeAtY.js} +64 -41
- package/dist/Slider/index.d.ts +1 -1
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-DWobsPgm.js → Slider-pdC0jpHu.js} +172 -46
- package/dist/Spinner/index.js +1 -1
- package/dist/Spinner-DdVUadii.js +200 -0
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Stack/index.js +2 -2
- package/dist/{Stack-CjQEavuq.js → Stack-Bb_h60t3.js} +10 -3
- package/dist/{Stack-D_Bhs-3r.js → Stack-Bp-XN9J4.js} +20 -9
- package/dist/StatusDot/index.d.ts +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-BPUhMOff.js → StatusDot-BS_ohXhd.js} +8 -4
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-CE8dHysu.js → Stepper-CyaSRSdu.js} +101 -79
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-DaVPRxvN.js → Switch-Z2Vfiiic.js} +38 -22
- package/dist/TabList/index.d.ts +2 -2
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-DIkK9sgK.js → TabList-DRqP0Hrv.js} +205 -63
- package/dist/Table/index.d.ts +3 -3
- package/dist/Table/index.js +1 -1
- package/dist/{Table-hqZMmzfU.js → Table-BcrrylMX.js} +727 -448
- package/dist/Text/index.d.ts +2 -2
- package/dist/Text/index.js +1 -1
- package/dist/{Text-CV3LmscH.js → Text-CmTOgYXf.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-Ab5Sw60T.js → TextArea-DA9CCG_J.js} +104 -50
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-zFT1_qgI.js → TextInput-CI96einV.js} +71 -38
- package/dist/Theme/index.d.ts +3 -3
- package/dist/Theme/index.js +3 -2
- package/dist/Theme-BbDT8B_C.js +2125 -0
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-C3NnJUFG.js → Thumbnail-B2ZAY59J.js} +13 -10
- package/dist/{TimeField-ByiJKBRM.js → TimeField-CpAgja9D.js} +299 -40
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-S8n946tp.js → TimeInput-Bw_lHS4M.js} +78 -9
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-avMQk5DN.js → Timer-CH7GsEVu.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-xpQKCk0d.js → Timestamp-BFNuoTZ0.js} +5 -5
- package/dist/Toast/index.d.ts +1 -1
- package/dist/Toast/index.js +1 -1
- package/dist/Toast-DwnPjx6j.js +685 -0
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-B-C-Q7XP.js → ToggleButton-cLjh9W-x.js} +5 -4
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-DsntTYhQ.js → Token-BfS4vi__.js} +32 -17
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-41p035dX.js → Tokenizer-Ci3E5bvP.js} +109 -23
- package/dist/Toolbar/index.d.ts +2 -2
- package/dist/Toolbar/index.js +1 -1
- package/dist/{Toolbar-BrgvvTCk.js → Toolbar-C0pMWL4S.js} +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +1 -1
- package/dist/{Tooltip-C4Vaqd3G.js → Tooltip-sAM8i1eO.js} +23 -19
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CeSeEMX3.js → TopNav-gW59zp1o.js} +16 -15
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-BUz-KZJd.js → TreeList-DaoI7zaH.js} +124 -41
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-k3xhFxkr.js → Typeahead-D4JjvjK4.js} +125 -26
- package/dist/{TypeaheadMenu-DBW6rHeO.js → TypeaheadMenu-BQlMrfqX.js} +141 -51
- package/dist/{announce-Cnio10Wk.js → announce-B210eJVf.js} +17 -2
- package/dist/characterReferences-BJ-jLhsR.js +65 -0
- package/dist/characters-rcDbGt71.d.ts +29 -0
- package/dist/characters-wTnzjkkR.js +58 -0
- package/dist/{colorMode-CBgdgDSn.js → colorMode-BxqfDP4P.js} +1 -4
- package/dist/composables/index.d.ts +5 -4
- package/dist/composables/index.js +23 -18
- package/dist/{composables-CbKx9C1Y.js → composables-Bc02zKAO.js} +167 -197
- package/dist/context-B6UElI5X.js +5 -0
- package/dist/{context-Cfjh8te1.js → context-Cfml4jaK.js} +5 -3
- package/dist/{context-iABt_ueM.js → context-DWfi56sq.js} +451 -122
- package/dist/context-IvbU9c3T.js +8 -0
- package/dist/context-pjBxaMSh.js +28 -0
- package/dist/fieldParts--SyRZVQG.js +44 -0
- package/dist/fieldParts-LXpQMKE8.d.ts +27 -0
- package/dist/{focus-CpficIgf.js → focus-l8jVTcqd.js} +1 -1
- package/dist/hoverIntent-DMHGb85c.js +115 -0
- package/dist/{index-Cde5JvtX.d.ts → index-B-nESNam.d.ts} +8 -7
- package/dist/{index-CsNi1I8j.d.ts → index-B08-Uxhv.d.ts} +4 -2
- package/dist/{index-Cn-sSds-.d.ts → index-B56j4eI2.d.ts} +24 -1
- package/dist/{index-BJMJ09K-.d.ts → index-BEZ4ezJk.d.ts} +1 -1
- package/dist/{index-DeQwYJbg.d.ts → index-BNaRK-s5.d.ts} +10 -1
- package/dist/{index-CQCTKjIO.d.ts → index-BO9TY87G.d.ts} +5 -4
- package/dist/{index-BJSxFVXH.d.ts → index-BQEJj72c.d.ts} +21 -8
- package/dist/{index-BXk7Wng7.d.ts → index-BULhhnGf.d.ts} +1 -1
- package/dist/{index-D97pQbua.d.ts → index-BV2D2x_u.d.ts} +1 -1
- package/dist/{index-BPYzIIYn.d.ts → index-BZKgbyN9.d.ts} +2 -2
- package/dist/index-BkUkm6Al.d.ts +11 -0
- package/dist/{index-ClNU2Th8.d.ts → index-Bn-v89Vt.d.ts} +10 -6
- package/dist/{index-Bu8NA2SD.d.ts → index-BnEhvmdR.d.ts} +16 -7
- package/dist/index-Bo-ofFyg.d.ts +166 -0
- package/dist/{index-i0tNFWfz.d.ts → index-BqhgeAT4.d.ts} +2 -0
- package/dist/{index-DWh2WC8W.d.ts → index-C4Cjz6OK.d.ts} +2 -2
- package/dist/{index-B7yhzGUT.d.ts → index-C7sam-SB.d.ts} +2 -2
- package/dist/{index-BrJzFA5X.d.ts → index-C90l2rH1.d.ts} +1 -1
- package/dist/{index-vP0EtrJJ.d.ts → index-C9gAlDt_.d.ts} +6 -3
- package/dist/{index-csA1lH_0.d.ts → index-CJ6ajsUC.d.ts} +2 -2
- package/dist/{index-CY-KvZ9B.d.ts → index-CK-Dbh0f.d.ts} +1 -1
- package/dist/index-CKUfpmFL.d.ts +375 -0
- package/dist/{index-DXpSFlPG.d.ts → index-CKgBTAzC.d.ts} +4 -4
- package/dist/{index-EFqQF2Bx.d.ts → index-CPtDjmcX.d.ts} +4 -4
- package/dist/{index-12QYAbiz.d.ts → index-CRrSHbok.d.ts} +3 -2
- package/dist/{index-DG52Bg0W.d.ts → index-CTf3SK0b.d.ts} +6 -0
- package/dist/{index-BNy3SW4S.d.ts → index-CTjkJP4x.d.ts} +32 -3
- package/dist/{index-Ca8VIE4l.d.ts → index-CVn0GBdB.d.ts} +1 -1
- package/dist/{index-YKCx03zD.d.ts → index-CdvmnNMH.d.ts} +1 -1
- package/dist/{index-BUEPz7BL.d.ts → index-CikMzeab.d.ts} +3 -3
- package/dist/{index-CdtZjkmG.d.ts → index-CpNlPLBF.d.ts} +183 -129
- package/dist/{index-N7OVZ38M.d.ts → index-Cs1xsHKi.d.ts} +28 -16
- package/dist/{index-Cyb9Du5Z.d.ts → index-CtTGt6Dv.d.ts} +1 -1
- package/dist/{index-HV6W3xCx.d.ts → index-D05JGsT3.d.ts} +5 -2
- package/dist/{index-CsTbMVDS.d.ts → index-D0_HsuC3.d.ts} +4 -4
- package/dist/{index-BgT6mH3U.d.ts → index-D7ShT2c-.d.ts} +1 -1
- package/dist/{index-CkKPMIeX.d.ts → index-D7XRtUTY.d.ts} +9 -0
- package/dist/{index-TntQsADQ.d.ts → index-DEm3kRBO.d.ts} +4 -3
- package/dist/{index-DamRHh1i.d.ts → index-DLAG3m9W.d.ts} +11 -1
- package/dist/{index-DUnDGFQE.d.ts → index-DNA2l1RN.d.ts} +1 -1
- package/dist/{index-WnUY4Kxu.d.ts → index-DRJZ-v1E.d.ts} +4 -4
- package/dist/{index-DYp2RWkM.d.ts → index-DY8Wph-A.d.ts} +3 -3
- package/dist/{index-B1WJxt-n.d.ts → index-DfC05uKG.d.ts} +17 -7
- package/dist/{index-C5e-7Obr.d.ts → index-Dj1_1t3j.d.ts} +19 -6
- package/dist/{index-jW-mP58D.d.ts → index-Dr4b_oji.d.ts} +22 -15
- package/dist/{index-uKnRGtzi.d.ts → index-Ds201-d2.d.ts} +18 -4
- package/dist/{index-DIXAzTKL.d.ts → index-DxxudRgB.d.ts} +1 -1
- package/dist/{index-DQmK3Lq_.d.ts → index-IfsSCj8J.d.ts} +19 -6
- package/dist/{index-B1eCxBCY.d.ts → index-TXcNH86P.d.ts} +1 -1
- package/dist/{index-XuAAcYiP.d.ts → index-f3d9cVtj.d.ts} +1 -1
- package/dist/index-fAZaRruV.d.ts +125 -0
- package/dist/{index-D5N9ikrS.d.ts → index-hCpxKePE.d.ts} +1 -1
- package/dist/{index-T2FOcOuI.d.ts → index-jOwU3YoR.d.ts} +400 -90
- package/dist/{index-DdGck82Y.d.ts → index-pNtfr-RW.d.ts} +2 -2
- package/dist/{index-BhpAUzUr.d.ts → index-unAZVFGz.d.ts} +2 -2
- package/dist/index.d.ts +84 -77
- package/dist/index.js +151 -134
- package/dist/inlineSize-BNe8wggI.js +66 -0
- package/dist/inputPresentation-BOyHkCDr.js +62 -0
- package/dist/interactionModality-ACpTMhak.js +44 -0
- package/dist/isApplePlatform-B1ju6F5B.js +27 -0
- package/dist/isRenderable-BnKHIqfd.js +21 -0
- package/dist/layerDepth-CNDh-IHb.js +181 -0
- package/dist/link-DuuA2eCL.js +30 -0
- package/dist/{loadCatalog-BGHKG_9N.d.ts → loadCatalog-DlLFZreI.d.ts} +281 -7
- package/dist/loadCatalog-eopw74qb.js +424 -0
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +4 -3
- package/dist/locale-CabGJlGp.js +343 -0
- package/dist/modalOutlet-CUOcrhIu.js +56 -0
- package/dist/optionAction-Cg7xQLUA.d.ts +6 -0
- package/dist/{power-search-DrDfcoL1.d.ts → power-search-gHLIYXs5.d.ts} +2 -0
- package/dist/protocol-DHxY0NI8.js +113 -0
- package/dist/protocol-RSeMzAN1.d.ts +238 -0
- package/dist/publicParser-B0MRoikr.d.ts +141 -0
- package/dist/publicParser-uHC_T0Fo.js +895 -0
- package/dist/resizableChannel-3vivrEcT.js +20 -0
- package/dist/safeUrl-CsvfcZ9m.js +54 -0
- package/dist/scopedProvide-C-Df7c15.js +30 -0
- package/dist/scrollKeyboardDelegation-D7cumnOl.js +238 -0
- package/dist/scrollLock-C3aT4-0z.js +102 -0
- package/dist/{searchResultMessage-hXXNOFJP.js → searchResultMessage-mCpJBvra.js} +5 -14
- package/dist/{semantic-CKH9XVqa.d.ts → semantic-BF_AjLvk.d.ts} +6 -3
- package/dist/slug-C65CUsf9.js +32 -0
- package/dist/syntaxContext-DmIfNNtb.js +4 -0
- package/dist/triggerVariant-BsL8jMHs.js +16 -0
- package/dist/{types-0Q_SJv_F.d.ts → types-Bb7OGivY.d.ts} +6 -1
- package/dist/{types-H4Bbbxiw.d.ts → types-BnNTzEnd.d.ts} +1 -1
- package/dist/{types-CwyibrRB.d.ts → types-C5GQ2KCK.d.ts} +23 -3
- package/dist/{types-BBWrcHMD.d.ts → types-Ckih2YJi.d.ts} +3 -2
- package/dist/{types-gKsEkk2g.d.ts → types-CsqwQkf1.d.ts} +143 -10
- package/dist/upstreamMap-xr3gvREu.js +731 -0
- package/dist/{useAnchoredListbox-DwztMNjP.js → useAnchoredListbox-DGxxKHZb.js} +2 -2
- package/dist/{useAsyncSource-xpQovjV_.d.ts → useAsyncSource-aGzrvRkI.d.ts} +3 -0
- package/dist/{useClickableContainer-DyNpnSEa.js → useClickableContainer-CdGp_Cev.js} +1 -1
- package/dist/{useClipboard-BDfbEsWd.js → useClipboard-Dk8cS810.js} +1 -1
- package/dist/useHoverLayerDismiss-kYJ_NqL4.js +27 -0
- package/dist/{useIndicator-i1NORM7W.js → useIndicator-MZmfBWid.js} +5 -23
- package/dist/{useInputContainer-CpgDe2-4.js → useInputContainer-CLcYrby4.js} +1 -1
- package/dist/{useInputStatusIcon-DBOwxV4x.js → useInputStatusIcon-DAE7PExr.js} +1 -1
- package/dist/useLayerMountTarget-BmZyeKWE.js +156 -0
- package/dist/{useListFocus-D0iOJl39.js → useListFocus-ChxLg0b4.js} +3 -2
- package/dist/{useMenuDrillIn-DzKGkTho.js → useMenuDrillIn-DhUnPvKs.js} +6 -5
- package/dist/useMenuHover-Djreu23i.js +170 -0
- package/dist/useMenuPress-8foxY8z4.js +764 -0
- package/dist/{useMergedRefs-CfHHlCsn.js → useMergedRefs-Cb6_w93m.js} +24 -4
- package/dist/{useNumberField-4-dIGVed.js → useNumberField-Dk1BE3-K.js} +3 -3
- package/dist/useOptionActionGrid-CkJcuvaU.js +97 -0
- package/dist/{usePositionedLayer-Cru9_00b.js → usePositionedLayer-B7cvG-_v.js} +43 -49
- package/dist/usePressFeedback-BJCpjEpv.js +319 -0
- package/dist/{useResizable-DDwPpPe6.d.ts → useResizable-1MHPNaRD.d.ts} +19 -1
- package/dist/{useResizable-B3ahKLoZ.js → useResizable-I3BCiLSL.js} +72 -40
- package/dist/useResolvedLabelHidden-B2rlWiaI.js +30 -0
- package/dist/{useRestoreFocus-Djw9RUIf.js → useRestoreFocus-XEKs5-gp.js} +49 -7
- package/dist/useScrollOverflow-DuMoGXmm.js +67 -0
- package/dist/useScrollableArea-BE8b3qm7.js +222 -0
- package/dist/useScrollbars-C2NJ6Qwq.js +43 -0
- package/dist/{useTimeValue-6ufHM15W.js → useTimeValue-BJd0xBhG.js} +4 -22
- package/dist/useTranslator-BmWt2BBt.js +35 -0
- package/dist/{useTypeahead-PAK8lMYz.js → useTypeahead-BvtflkRk.js} +4 -5
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.js +5 -0
- package/dist/{utils-D33VQDnk.js → utils-ClVseK2w.js} +29 -2
- package/dist/utils-z3Q6BGIJ.js +819 -0
- package/locales/SOURCE.json +1 -1
- package/package.json +24 -3
- package/reset.css +364 -1
- package/styles/avatar-group.css +9 -1
- package/styles/badge.css +8 -5
- package/styles/banner.css +124 -26
- package/styles/blockquote.css +1 -0
- package/styles/bordered-control.css +1 -1
- package/styles/bottom-sheet.css +74 -6
- package/styles/breadcrumbs.css +16 -2
- package/styles/button-group.css +3 -1
- package/styles/button.css +53 -11
- package/styles/card.css +1 -1
- package/styles/chat.css +16 -6
- package/styles/checkbox-input.css +10 -0
- package/styles/clickable-card.css +10 -3
- package/styles/collapsible.css +12 -5
- package/styles/command-palette.css +29 -14
- package/styles/complex-selector.css +22 -5
- package/styles/context-menu.css +3 -3
- package/styles/date-input.css +111 -1
- package/styles/dialog-header.css +4 -1
- package/styles/dialog.css +7 -0
- package/styles/dropdown-menu.css +12 -3
- package/styles/field.css +5 -0
- package/styles/form-layout.css +1 -0
- package/styles/heading.css +18 -8
- package/styles/icon.css +4 -0
- package/styles/kbd.css +1 -1
- package/styles/layer.css +72 -0
- package/styles/list.css +9 -2
- package/styles/metadata-list.css +1 -0
- package/styles/mobile-nav.css +4 -1
- package/styles/multi-selector.css +48 -1
- package/styles/nav-item.css +9 -2
- package/styles/nav-menu.css +12 -2
- package/styles/number-input.css +9 -1
- package/styles/overflow-list.css +1 -1
- package/styles/popover.css +2 -1
- package/styles/power-search.css +5 -3
- package/styles/pressable.css +63 -22
- package/styles/progress-bar.css +15 -3
- package/styles/radio.css +16 -0
- package/styles/resize-handle.css +42 -0
- package/styles/scrollbars.css +28 -0
- package/styles/segmented-control.css +12 -4
- package/styles/selector.css +53 -1
- package/styles/side-nav.css +19 -0
- package/styles/slider.css +4 -3
- package/styles/spinner.css +48 -42
- package/styles/stepper.css +58 -4
- package/styles/switch.css +26 -0
- package/styles/tab-list.css +132 -3
- package/styles/table.css +88 -10
- package/styles/text-area.css +1 -1
- package/styles/text-input.css +1 -1
- package/styles/text.css +6 -6
- package/styles/thumbnail.css +11 -3
- package/styles/time-input.css +8 -0
- package/styles/toast.css +37 -3
- package/styles/token.css +2 -2
- package/styles/tokenizer.css +1 -1
- package/styles/toolbar.css +4 -1
- package/styles/tree-list.css +1 -1
- package/styles/typeahead.css +34 -1
- package/styles.css +1 -0
- package/dist/Blockquote-DFqBv_oJ.js +0 -18
- package/dist/Breadcrumbs-DPVaziH4.js +0 -141
- package/dist/ButtonGroup-ySQWanDP.js +0 -125
- package/dist/DateTimeInput-DHp683jZ.js +0 -268
- package/dist/MultiSelector-BeV98x7X.js +0 -988
- package/dist/NumberInput-AZ9x3oja.js +0 -473
- package/dist/Selector-DuVozKNq.js +0 -675
- package/dist/Spinner-9cYUCnDy.js +0 -84
- package/dist/Theme-CtaUWo4g.js +0 -1246
- package/dist/Toast-BuqIZV5z.js +0 -322
- package/dist/context-4PuqD1Ic.js +0 -4
- package/dist/context-D5-MwxnN.js +0 -4
- package/dist/index-BH9PzQ1F.d.ts +0 -87
- package/dist/link-C4_WogdF.js +0 -18
- package/dist/loadCatalog-CXKqEB9s.js +0 -877
- package/dist/locale-DgkZEMTn.js +0 -105
- package/dist/platform-B_9W_aHW.js +0 -33
- package/dist/scrollLock-BzIvIimL.js +0 -42
- package/dist/useMenuPress-D-FRNrBW.js +0 -573
- package/dist/useScrollableArea-DDk_CluT.js +0 -172
- /package/dist/{index-lgvUFSCO.d.ts → index-CryFtTT6.d.ts} +0 -0
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
//#region src/utils/chainEventHandlers.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* 把多个事件处理函数串成一个。每个函数都会按参数顺序执行。
|
|
4
|
+
*
|
|
5
|
+
* 和「前一个调用了 preventDefault 就跳过后面」不同:组件自己的处理函数
|
|
6
|
+
* 不能把事件藏起来,调用方也不能用 preventDefault 取消组件的行为。
|
|
7
|
+
*/
|
|
8
|
+
declare function chainEventHandlers<E>(...handlers: (((event: E) => void) | undefined)[]): (event: E) => void;
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/utils/dateTypes.d.ts
|
|
11
|
+
/**
|
|
12
|
+
* ISO 8601 date string in YYYY-MM-DD format.
|
|
13
|
+
* Example: "2026-01-28"
|
|
14
|
+
*/
|
|
15
|
+
type ISODateString = `${number}${number}${number}${number}-${number}${number}-${number}${number}`;
|
|
16
|
+
/** Day of week: 0 = Sunday through 6 = Saturday */
|
|
17
|
+
type DayOfWeek = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
18
|
+
/**
|
|
19
|
+
* Three-letter lowercase weekday name, 'sun' through 'sat'.
|
|
20
|
+
* A more self-documenting alternative to the numeric {@link DayOfWeek}.
|
|
21
|
+
*/
|
|
22
|
+
type DayOfWeekName = 'sun' | 'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat';
|
|
23
|
+
/**
|
|
24
|
+
* Normalize a weekday to its numeric {@link DayOfWeek}. Accepts either a
|
|
25
|
+
* number (0–6) or a three-letter day name ('sun'–'sat', case-insensitive),
|
|
26
|
+
* so APIs like `weekStartsOn` can take whichever is more readable at the
|
|
27
|
+
* call site. Unrecognized values fall back to 0 (Sunday).
|
|
28
|
+
*/
|
|
29
|
+
declare function normalizeDayOfWeek(value: DayOfWeek | DayOfWeekName): DayOfWeek;
|
|
30
|
+
/** Immutable date record with 1-based month. */
|
|
31
|
+
interface PlainDate {
|
|
32
|
+
readonly year: number;
|
|
33
|
+
/** 1-based (1 = January, 12 = December) */
|
|
34
|
+
readonly month: number;
|
|
35
|
+
readonly day: number;
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/utils/plainDate.d.ts
|
|
39
|
+
declare function plainDateCreate(year: number, month: number, day: number): PlainDate;
|
|
40
|
+
declare function plainDateFromISO(str: ISODateString): PlainDate;
|
|
41
|
+
declare function plainDateToISO(pd: PlainDate): ISODateString;
|
|
42
|
+
declare function plainDateToDate(pd: PlainDate): Date;
|
|
43
|
+
declare function plainDateFromDate(d: Date): PlainDate;
|
|
44
|
+
declare function plainDateToday(): PlainDate;
|
|
45
|
+
declare function getDaysInMonth(year: number, month: number): number;
|
|
46
|
+
declare function plainDateDayOfWeek(pd: PlainDate): number;
|
|
47
|
+
declare function plainDateAddMonths(pd: PlainDate, n: number): PlainDate;
|
|
48
|
+
declare function plainDateAddDays(pd: PlainDate, n: number): PlainDate;
|
|
49
|
+
/**
|
|
50
|
+
* Whole calendar days from `a` to `b`, ignoring time of day. Positive when
|
|
51
|
+
* `b` is after `a`, negative when before. Uses UTC midnight so DST shifts
|
|
52
|
+
* never add or drop a day.
|
|
53
|
+
*/
|
|
54
|
+
declare function plainDateDiffDays(a: PlainDate, b: PlainDate): number;
|
|
55
|
+
/**
|
|
56
|
+
* The wall-clock fields an instant reads as in a given zone.
|
|
57
|
+
*
|
|
58
|
+
* A fixed `'en-US'` locale with `hourCycle: 'h23'` keeps the parts numeric and
|
|
59
|
+
* stable whatever locale the viewer has, so callers can assemble machine
|
|
60
|
+
* shapes (`YYYY-MM-DD`, `HH:mm:ss`) from them. Exported for Timestamp, whose
|
|
61
|
+
* `system_*` formats are built from these fields rather than through `Intl`
|
|
62
|
+
* formatting.
|
|
63
|
+
*/
|
|
64
|
+
declare function getTimeZoneParts(instant: number, timezoneID: string): {
|
|
65
|
+
year: number;
|
|
66
|
+
month: number;
|
|
67
|
+
day: number;
|
|
68
|
+
hour: number;
|
|
69
|
+
minute: number;
|
|
70
|
+
second: number;
|
|
71
|
+
};
|
|
72
|
+
declare function plainDateToInstant(date: PlainDate, timezoneID: string, hour?: number, minute?: number): number;
|
|
73
|
+
declare function plainDateFromInstant(instant: number, timezoneID: string): PlainDate;
|
|
74
|
+
declare function plainDateIsBefore(a: PlainDate, b: PlainDate): boolean;
|
|
75
|
+
declare function plainDateIsAfter(a: PlainDate, b: PlainDate): boolean;
|
|
76
|
+
declare function plainDateIsEqual(a: PlainDate, b: PlainDate): boolean;
|
|
77
|
+
declare function plainDateMax(a: PlainDate, b: PlainDate): PlainDate;
|
|
78
|
+
declare function plainDateMin(a: PlainDate, b: PlainDate): PlainDate;
|
|
79
|
+
declare function plainDateIsInRange(pd: PlainDate, range: [PlainDate, PlainDate]): boolean;
|
|
80
|
+
declare function plainDateSetFirstOfMonth(pd: PlainDate): PlainDate;
|
|
81
|
+
declare function plainDateSetStartOfWeek(pd: PlainDate, weekStartsOn: number): PlainDate;
|
|
82
|
+
declare function plainDateSetEndOfWeekExclusive(pd: PlainDate, weekStartsOn: number): PlainDate;
|
|
83
|
+
declare function plainDateGetWeekNumber(pd: PlainDate): number;
|
|
84
|
+
declare const DATE_FORMAT_WITH_WEEKDAY: Intl.DateTimeFormatOptions;
|
|
85
|
+
declare const DATE_FORMAT_SHORT_WITH_WEEKDAY: Intl.DateTimeFormatOptions;
|
|
86
|
+
declare const DATE_FORMAT_LONG: Intl.DateTimeFormatOptions;
|
|
87
|
+
declare const DATE_FORMAT_MONTH_YEAR: Intl.DateTimeFormatOptions;
|
|
88
|
+
declare const DATE_FORMAT_WEEKDAY_ONLY: Intl.DateTimeFormatOptions;
|
|
89
|
+
declare const DATE_FORMAT_MONTH_ONLY: Intl.DateTimeFormatOptions;
|
|
90
|
+
declare const DATE_FORMAT_SHORT: Intl.DateTimeFormatOptions;
|
|
91
|
+
declare const DATE_FORMAT_SHORT_WITH_YEAR: Intl.DateTimeFormatOptions;
|
|
92
|
+
/**
|
|
93
|
+
* Format a `PlainDate` for display.
|
|
94
|
+
*
|
|
95
|
+
* The locale defaults to the same `'en'` fallback as `useLocale()`, avoiding
|
|
96
|
+
* runtime-dependent output when no provider locale is available. Astryx date
|
|
97
|
+
* APIs currently model Gregorian dates, so this helper defaults to Gregorian
|
|
98
|
+
* when `options.calendar` is omitted. The explicit option remains supported for
|
|
99
|
+
* compatibility with the public `Intl.DateTimeFormatOptions` signature; it is a
|
|
100
|
+
* display-only escape hatch and does not change PlainDate arithmetic, parsing,
|
|
101
|
+
* serialization, or any Astryx component's calendar semantics.
|
|
102
|
+
*/
|
|
103
|
+
declare function plainDateFormat(pd: PlainDate, options: Intl.DateTimeFormatOptions, locale?: string): string;
|
|
104
|
+
/**
|
|
105
|
+
* The locale's name for the "week of year" date field ("week", "Woche", "週"),
|
|
106
|
+
* from CLDR through `Intl.DisplayNames`. Calendar names its week-number
|
|
107
|
+
* column header with it, so no catalog string is needed for a word the
|
|
108
|
+
* platform already carries in every locale.
|
|
109
|
+
*
|
|
110
|
+
* `Intl.DisplayNames` with `type: 'dateTimeField'` is inside the Baseline − 2
|
|
111
|
+
* support tier (Chrome 106, Safari 15.4, Firefox 110). Should a host lack it
|
|
112
|
+
* or return nothing, the field's English CLDR name stands in rather than an
|
|
113
|
+
* empty header.
|
|
114
|
+
*/
|
|
115
|
+
declare function plainDateWeekFieldName(locale?: string): string;
|
|
116
|
+
/**
|
|
117
|
+
* The date-only members of Timestamp's `format` vocabulary that a
|
|
118
|
+
* calendar-date field (no time-of-day) can render. Both Timestamp and
|
|
119
|
+
* DateInput share these string literals and the mapping below so that the same
|
|
120
|
+
* literal renders the same date shape in either component.
|
|
121
|
+
*
|
|
122
|
+
* - `date`: locale short-month date, e.g. "Mar 21, 2026"
|
|
123
|
+
* - `date_long`: locale long-month date, e.g. "March 21, 2026"
|
|
124
|
+
* - `date_weekday`: short weekday + short-month date, e.g. "Wed, Mar 21, 2026"
|
|
125
|
+
* - `system_date`: ISO 8601 calendar date, e.g. "2026-03-21"
|
|
126
|
+
*/
|
|
127
|
+
type SharedDateFormat = 'date' | 'date_long' | 'date_weekday' | 'system_date';
|
|
128
|
+
/**
|
|
129
|
+
* Intl option bags for the locale-aware shared date members. `system_date` is
|
|
130
|
+
* intentionally absent — it is emitted as a fixed ISO `YYYY-MM-DD` string, not
|
|
131
|
+
* via `Intl` — and is handled directly by {@link formatSharedDate}.
|
|
132
|
+
*
|
|
133
|
+
* This is the single source of truth consumed by both Timestamp's
|
|
134
|
+
* `formatTimestamp` switch and DateInput's display path, so the two never
|
|
135
|
+
* drift for the members they share.
|
|
136
|
+
*/
|
|
137
|
+
declare const SHARED_DATE_FORMAT_OPTIONS: Record<Exclude<SharedDateFormat, 'system_date'>, Intl.DateTimeFormatOptions>;
|
|
138
|
+
/**
|
|
139
|
+
* Renders a {@link PlainDate} using one of the {@link SharedDateFormat}
|
|
140
|
+
* members. The shared entry point DateInput uses for the named-format path;
|
|
141
|
+
* Timestamp maps the same members onto {@link SHARED_DATE_FORMAT_OPTIONS} in
|
|
142
|
+
* its own `formatTimestamp` switch (its input is a `Date`, not a `PlainDate`).
|
|
143
|
+
*/
|
|
144
|
+
declare function formatSharedDate(pd: PlainDate, format: SharedDateFormat, locale?: string): string;
|
|
145
|
+
//#endregion
|
|
146
|
+
//#region src/utils/dateParser.d.ts
|
|
147
|
+
/**
|
|
148
|
+
* Detects if the locale uses day-first date format (DD/MM/YYYY).
|
|
149
|
+
* US and a few others use month-first (MM/DD/YYYY).
|
|
150
|
+
*/
|
|
151
|
+
declare function isLocaleDayFirst(locale?: string): boolean;
|
|
152
|
+
/**
|
|
153
|
+
* Parses user input into a PlainDate.
|
|
154
|
+
*
|
|
155
|
+
* Supports ISO dates, English month names, and ASCII numeric dates with or
|
|
156
|
+
* without a year. For ambiguous ASCII numeric input where both fields are at
|
|
157
|
+
* most 12, `locale` selects month-first versus day-first order. It does not
|
|
158
|
+
* localize month-name parsing, accept non-ASCII digits, or provide a general
|
|
159
|
+
* locale-aware parser.
|
|
160
|
+
*
|
|
161
|
+
* @returns PlainDate if valid, null if unparseable
|
|
162
|
+
*/
|
|
163
|
+
declare function parseDateInput(input: string, locale?: string): PlainDate | null;
|
|
164
|
+
//#endregion
|
|
165
|
+
//#region src/utils/groupItems.d.ts
|
|
166
|
+
/**
|
|
167
|
+
* 能按组摆放的条目。分组标题写在 `auxiliaryData.group`。
|
|
168
|
+
*/
|
|
169
|
+
interface GroupableItem {
|
|
170
|
+
auxiliaryData?: unknown;
|
|
171
|
+
[extra: string]: unknown;
|
|
172
|
+
}
|
|
173
|
+
/** 一组条目。`heading` 为 null 表示这组没有标题。 */
|
|
174
|
+
interface ItemGroup<T> {
|
|
175
|
+
heading: string | null;
|
|
176
|
+
items: T[];
|
|
177
|
+
}
|
|
178
|
+
interface GroupItemsOptions {
|
|
179
|
+
/** 没有组名的条目放在有名字的组前面。默认放在最后。 */
|
|
180
|
+
ungroupedFirst?: boolean;
|
|
181
|
+
}
|
|
182
|
+
/** 读出条目上的组名。不是字符串就不算分组。空字符串仍算一个组名。 */
|
|
183
|
+
declare function getItemGroup(item: GroupableItem): string | undefined;
|
|
184
|
+
/**
|
|
185
|
+
* 按 `auxiliaryData.group` 分组,组的先后跟它们第一次出现的顺序。
|
|
186
|
+
* 没有任何组名时,返回一组 `heading: null`。
|
|
187
|
+
*/
|
|
188
|
+
declare function groupItems<T extends GroupableItem>(items: readonly T[], { ungroupedFirst }?: GroupItemsOptions): ItemGroup<T>[];
|
|
189
|
+
//#endregion
|
|
190
|
+
//#region src/utils/inputAria.d.ts
|
|
191
|
+
interface InputARIAInputGroup {
|
|
192
|
+
/** ID of the visible InputGroup label. */
|
|
193
|
+
labelID: string;
|
|
194
|
+
/** Space-separated IDs for InputGroup description/status text. */
|
|
195
|
+
describedByIDs?: string;
|
|
196
|
+
}
|
|
197
|
+
interface InputARIA {
|
|
198
|
+
/** Value for aria-labelledby on the input. */
|
|
199
|
+
ariaLabelledBy?: string;
|
|
200
|
+
/** Value for aria-describedby on the input. */
|
|
201
|
+
ariaDescribedBy?: string;
|
|
202
|
+
}
|
|
203
|
+
type AriaID = string | null | undefined | false;
|
|
204
|
+
declare function joinAriaIDs(...values: AriaID[]): string | undefined;
|
|
205
|
+
/**
|
|
206
|
+
* Builds ARIA label/description wiring for an input.
|
|
207
|
+
*
|
|
208
|
+
* Standalone inputs keep their normal native label association. Grouped inputs
|
|
209
|
+
* are named by the visible InputGroup label plus their own input label, and
|
|
210
|
+
* inherit group description/status text in addition to input-local text.
|
|
211
|
+
*/
|
|
212
|
+
declare function getInputARIA(labelID: string, describedByIDs?: AriaID[], inputGroup?: InputARIAInputGroup | null): InputARIA;
|
|
213
|
+
//#endregion
|
|
214
|
+
//#region src/utils/inputPresentation.d.ts
|
|
215
|
+
/** Picker-surface policy for date/time inputs (`spec:AST-043` FR1). */
|
|
216
|
+
type InputPresentation = 'text-input' | 'popover' | 'bottom-sheet' | 'native' | 'adaptive-bottom-sheet' | 'adaptive-native';
|
|
217
|
+
/** `presentation` for components without a text-only surface: all except `TimeInput` exclude `text-input` (AST-043). */
|
|
218
|
+
type PickerPresentation = Exclude<InputPresentation, 'text-input'>;
|
|
219
|
+
/** The surface a resolved `InputPresentation` actually renders. */
|
|
220
|
+
type InputPresentationSurface = 'text-input' | 'desktop' | 'sheet' | 'native';
|
|
221
|
+
/** The surface a resolved `PickerPresentation` renders: one where a picker opens. */
|
|
222
|
+
type PickerPresentationSurface = Exclude<InputPresentationSurface, 'text-input'>;
|
|
223
|
+
/** Deprecated picker policy (`spec:AST-043` FR3). */
|
|
224
|
+
type LegacyNativePicker = 'touch' | 'always' | 'never';
|
|
225
|
+
/**
|
|
226
|
+
* Typed as the narrower policy because the default opens a picker for every
|
|
227
|
+
* component; it is still a valid `InputPresentation`.
|
|
228
|
+
*/
|
|
229
|
+
declare const DEFAULT_INPUT_PRESENTATION: PickerPresentation;
|
|
230
|
+
/**
|
|
231
|
+
* Map a deprecated `nativePicker` value to its `presentation` equivalent for
|
|
232
|
+
* a component whose every surface opens a picker (`DateInput`,
|
|
233
|
+
* `DateTimeInput`). Their released `never` was Astryx's own pickers on every
|
|
234
|
+
* pointer, so no value maps to `text-input` — which is what lets the return
|
|
235
|
+
* type exclude it.
|
|
236
|
+
*/
|
|
237
|
+
declare function pickerPresentationFromNativePicker(nativePicker: LegacyNativePicker): PickerPresentation;
|
|
238
|
+
/**
|
|
239
|
+
* Map a deprecated `nativePicker` value to its `presentation` equivalent.
|
|
240
|
+
* `TimeInput` differs: its released `never` is the typed field on every
|
|
241
|
+
* pointer, so it maps to `text-input`, not a sheet policy.
|
|
242
|
+
*/
|
|
243
|
+
declare function presentationFromNativePicker(nativePicker: LegacyNativePicker, component: 'date' | 'time'): InputPresentation;
|
|
244
|
+
/**
|
|
245
|
+
* The effective picker-only policy: explicit `presentation` wins over the
|
|
246
|
+
* deprecated prop. The narrow twin of {@link effectiveInputPresentation} for
|
|
247
|
+
* `DateInput` and `DateTimeInput`, whose `presentation` cannot be
|
|
248
|
+
* `text-input`.
|
|
249
|
+
*/
|
|
250
|
+
declare function effectivePickerPresentation(presentation: PickerPresentation | undefined, nativePicker: LegacyNativePicker | undefined): PickerPresentation;
|
|
251
|
+
/** The effective policy: explicit `presentation` wins over the deprecated prop. */
|
|
252
|
+
declare function effectiveInputPresentation(presentation: InputPresentation | undefined, nativePicker: LegacyNativePicker | undefined, component: 'date' | 'time'): InputPresentation;
|
|
253
|
+
/** Resolve a picker-only policy to the surface rendered for the current pointer. */
|
|
254
|
+
declare function resolvePickerPresentation(presentation: PickerPresentation, isCoarsePointer: boolean): PickerPresentationSurface;
|
|
255
|
+
/** Resolve a policy to the surface rendered for the current pointer. */
|
|
256
|
+
declare function resolveInputPresentation(presentation: InputPresentation, isCoarsePointer: boolean): InputPresentationSurface;
|
|
257
|
+
//#endregion
|
|
258
|
+
//#region src/utils/parseStyleKey.d.ts
|
|
259
|
+
/**
|
|
260
|
+
* 把组件样式键编成 data 属性选择器后缀。
|
|
261
|
+
*
|
|
262
|
+
* `prop:value` 选择 `[data-prop="value"]`。裸状态选择 `[data-state="state"]`。
|
|
263
|
+
* `+` 把多个条件接在同一个组件目标上。轴名留在选择器里,避免不同属性的相同值撞在一起。
|
|
264
|
+
*
|
|
265
|
+
* @example
|
|
266
|
+
* parseStyleKey('base') // ''
|
|
267
|
+
* parseStyleKey('variant:secondary') // '[data-variant="secondary"]'
|
|
268
|
+
* parseStyleKey('checked+disabled') // '[data-checked="checked"][data-disabled="disabled"]'
|
|
269
|
+
*/
|
|
270
|
+
declare function parseStyleKey(key: string): string;
|
|
271
|
+
//#endregion
|
|
272
|
+
//#region src/utils/safeUrl.d.ts
|
|
273
|
+
/**
|
|
274
|
+
* 导航地址的协议检查。
|
|
275
|
+
*
|
|
276
|
+
* 拦下 `javascript:`、`vbscript:` 和会当成页面打开的 `data:text/html`。
|
|
277
|
+
* 通过的字符串原样返回,不去掉调用方自己写的空白以外的内容。
|
|
278
|
+
* 图片、样式这类嵌入资源不走这里。
|
|
279
|
+
*/
|
|
280
|
+
/** 规范化后的导航地址。危险协议返回 null。 */
|
|
281
|
+
declare function sanitizeUrl(url: string): string | null;
|
|
282
|
+
/** 只判断,不改写调用方要交给浏览器的那个字符串。 */
|
|
283
|
+
declare function isSafeUrl(url: string): boolean;
|
|
284
|
+
/**
|
|
285
|
+
* 检查字符串,以及带 pathname / href / protocol 的路由对象。
|
|
286
|
+
* 空地址算安全(调用方本来就没有目的地)。不是字符串也不是对象的值算不安全。
|
|
287
|
+
*/
|
|
288
|
+
declare function isSafeDestination(destination: unknown): boolean;
|
|
289
|
+
//#endregion
|
|
290
|
+
//#region src/utils/sharedResizeObserver.d.ts
|
|
291
|
+
type ResizeCallback = (entry: ResizeObserverEntry) => void;
|
|
292
|
+
/**
|
|
293
|
+
* Observe an element's size via a shared ResizeObserver singleton.
|
|
294
|
+
*
|
|
295
|
+
* Fires the callback once synchronously on registration (with a
|
|
296
|
+
* synthetic entry) so callers don't need separate initial-measurement
|
|
297
|
+
* logic. Subsequent callbacks fire on actual resizes.
|
|
298
|
+
*
|
|
299
|
+
* Returns an unsubscribe function that removes only this registration, leaving
|
|
300
|
+
* every other observer of the same element intact — prefer it over
|
|
301
|
+
* `unobserveResize(element)`, which drops them all. The shared observer is
|
|
302
|
+
* destroyed when the last element is unobserved.
|
|
303
|
+
*
|
|
304
|
+
* @example
|
|
305
|
+
* ```
|
|
306
|
+
* const unsubscribe = observeResize(element, (entry) => {
|
|
307
|
+
* console.log(entry.contentBoxSize);
|
|
308
|
+
* });
|
|
309
|
+
*
|
|
310
|
+
* // Cleanup:
|
|
311
|
+
* unsubscribe();
|
|
312
|
+
* ```
|
|
313
|
+
*/
|
|
314
|
+
declare function observeResize(element: Element, callback: ResizeCallback): () => void;
|
|
315
|
+
/**
|
|
316
|
+
* Stop observing an element.
|
|
317
|
+
*
|
|
318
|
+
* Pass the callback to remove only that registration — the unsubscribe returned
|
|
319
|
+
* by `observeResize` does this for you. Omitting it removes EVERY callback on
|
|
320
|
+
* the element, which silences peers that are still mounted, so it is only
|
|
321
|
+
* correct for a caller that owns the element outright.
|
|
322
|
+
*
|
|
323
|
+
* If no elements remain, the shared observer is disconnected and released for
|
|
324
|
+
* garbage collection.
|
|
325
|
+
*/
|
|
326
|
+
declare function unobserveResize(element: Element, callback?: ResizeCallback): void;
|
|
327
|
+
//#endregion
|
|
328
|
+
//#region src/utils/timeParser.d.ts
|
|
329
|
+
/**
|
|
330
|
+
* ISO time string in HH:MM or HH:MM:SS format (24-hour).
|
|
331
|
+
* Examples: "14:30", "09:15:00", "23:59:59"
|
|
332
|
+
*/
|
|
333
|
+
type ISOTimeString = string & {
|
|
334
|
+
readonly __brand: 'ISOTimeString';
|
|
335
|
+
};
|
|
336
|
+
/**
|
|
337
|
+
* Validates and creates an ISOTimeString from a string.
|
|
338
|
+
* Returns null if the string is not a valid time format.
|
|
339
|
+
*/
|
|
340
|
+
declare function createISOTimeString(value: string): ISOTimeString | null;
|
|
341
|
+
/**
|
|
342
|
+
* Formats a time for display in 12-hour format.
|
|
343
|
+
* Example: "14:30" -> "2:30 PM"
|
|
344
|
+
*/
|
|
345
|
+
declare function formatDisplayTime12h(time: ISOTimeString | undefined, includeSeconds?: boolean): string;
|
|
346
|
+
/**
|
|
347
|
+
* Formats a time for display in 24-hour format.
|
|
348
|
+
* Example: "14:30" -> "14:30"
|
|
349
|
+
*/
|
|
350
|
+
declare function formatDisplayTime24h(time: ISOTimeString | undefined, includeSeconds?: boolean): string;
|
|
351
|
+
/**
|
|
352
|
+
* Parses user input into an ISOTimeString.
|
|
353
|
+
* Accepts various formats:
|
|
354
|
+
* - "2:30 PM", "2:30pm", "2:30 pm"
|
|
355
|
+
* - "14:30", "1430"
|
|
356
|
+
* - "2pm", "2 PM"
|
|
357
|
+
*/
|
|
358
|
+
declare function parseTimeInput(input: string, includeSeconds?: boolean): ISOTimeString | null;
|
|
359
|
+
/**
|
|
360
|
+
* Compares two times. Returns:
|
|
361
|
+
* - negative if a < b
|
|
362
|
+
* - 0 if a === b
|
|
363
|
+
* - positive if a > b
|
|
364
|
+
*/
|
|
365
|
+
declare function compareTime(a: ISOTimeString | undefined, b: ISOTimeString | undefined): number;
|
|
366
|
+
/**
|
|
367
|
+
* Clamps a time to a min/max range.
|
|
368
|
+
*/
|
|
369
|
+
declare function clampTime(time: ISOTimeString, min?: ISOTimeString, max?: ISOTimeString, includeSeconds?: boolean): ISOTimeString;
|
|
370
|
+
/**
|
|
371
|
+
* Adjusts a time by adding/subtracting minutes.
|
|
372
|
+
*/
|
|
373
|
+
declare function adjustTime(time: ISOTimeString, deltaMinutes: number, includeSeconds?: boolean): ISOTimeString;
|
|
374
|
+
//#endregion
|
|
375
|
+
export { plainDateDayOfWeek as $, GroupItemsOptions as A, DATE_FORMAT_SHORT as B, presentationFromNativePicker as C, PlainDate as Ct, InputARIAInputGroup as D, InputARIA as E, isLocaleDayFirst as F, SHARED_DATE_FORMAT_OPTIONS as G, DATE_FORMAT_SHORT_WITH_YEAR as H, parseDateInput as I, getDaysInMonth as J, SharedDateFormat as K, DATE_FORMAT_LONG as L, ItemGroup as M, getItemGroup as N, getInputARIA as O, groupItems as P, plainDateCreate as Q, DATE_FORMAT_MONTH_ONLY as R, pickerPresentationFromNativePicker as S, ISODateString as St, resolvePickerPresentation as T, chainEventHandlers as Tt, DATE_FORMAT_WEEKDAY_ONLY as U, DATE_FORMAT_SHORT_WITH_WEEKDAY as V, DATE_FORMAT_WITH_WEEKDAY as W, plainDateAddDays as X, getTimeZoneParts as Y, plainDateAddMonths as Z, LegacyNativePicker as _, plainDateToInstant as _t, formatDisplayTime12h as a, plainDateGetWeekNumber as at, effectiveInputPresentation as b, DayOfWeek as bt, observeResize as c, plainDateIsEqual as ct, isSafeUrl as d, plainDateMin as dt, plainDateDiffDays as et, sanitizeUrl as f, plainDateSetEndOfWeekExclusive as ft, InputPresentationSurface as g, plainDateToISO as gt, InputPresentation as h, plainDateToDate as ht, createISOTimeString as i, plainDateFromInstant as it, GroupableItem as j, joinAriaIDs as k, unobserveResize as l, plainDateIsInRange as lt, DEFAULT_INPUT_PRESENTATION as m, plainDateSetStartOfWeek as mt, clampTime as n, plainDateFromDate as nt, formatDisplayTime24h as o, plainDateIsAfter as ot, parseStyleKey as p, plainDateSetFirstOfMonth as pt, formatSharedDate as q, compareTime as r, plainDateFromISO as rt, parseTimeInput as s, plainDateIsBefore as st, adjustTime as t, plainDateFormat as tt, isSafeDestination as u, plainDateMax as ut, PickerPresentation as v, plainDateToday as vt, resolveInputPresentation as w, normalizeDayOfWeek as wt, effectivePickerPresentation as x, DayOfWeekName as xt, PickerPresentationSurface as y, plainDateWeekFieldName as yt, DATE_FORMAT_MONTH_YEAR as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as AstryxMessages } from "./loadCatalog-
|
|
1
|
+
import { s as AstryxMessages } from "./loadCatalog-DlLFZreI.js";
|
|
2
2
|
import { ComputedRef, InjectionKey, MaybeRefOrGetter } from "vue";
|
|
3
3
|
//#region src/locale/types.d.ts
|
|
4
4
|
/** 内置文案的两种语言。其他语言用 `loadAstryxCatalog` 接原版 JSON。 */
|
|
@@ -8,9 +8,9 @@ type AstryxLocale = 'en' | 'zh-CN';
|
|
|
8
8
|
declare const astryxLocaleKey: InjectionKey<MaybeRefOrGetter<string>>;
|
|
9
9
|
declare const astryxMessagesKey: InjectionKey<MaybeRefOrGetter<AstryxMessages>>;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
* `
|
|
13
|
-
* `
|
|
11
|
+
* 把语言标签收成规范写法。
|
|
12
|
+
* `zh`、`zh-CN`、`zh-Hans` 收成 `zh-CN`,对上内置的简体中文文案。
|
|
13
|
+
* 其余标签只做大小写规范,例如 `en-gb` 收成 `en-GB`,日期和数字因此按这个地区的习惯排。
|
|
14
14
|
* 空值和解析不了的标签回到 `en`。
|
|
15
15
|
*/
|
|
16
16
|
declare function normalizeLocale(locale: string | null | undefined): string;
|
|
@@ -8,14 +8,14 @@ declare const __VLS_base: import("vue").DefineComponent<ButtonProps, {
|
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{
|
|
9
9
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
10
10
|
}>, {
|
|
11
|
-
isDisabled: boolean;
|
|
12
|
-
variant: ButtonVariant;
|
|
13
|
-
elevation: ButtonElevation;
|
|
14
11
|
type: "button" | "reset" | "submit";
|
|
15
|
-
isLoading: boolean;
|
|
16
12
|
isIconOnly: boolean;
|
|
13
|
+
elevation: ButtonElevation;
|
|
14
|
+
isDisabled: boolean;
|
|
17
15
|
isInterruptible: boolean;
|
|
16
|
+
isLoading: boolean;
|
|
18
17
|
loadingLabel: string;
|
|
18
|
+
variant: ButtonVariant;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as LayerPlacement, t as LayerAlignment } from "./position-DFW5ymAF.js";
|
|
2
|
-
import {
|
|
2
|
+
import { C as DropdownMenuGroupSlots, D as DropdownMenuItemVariant, E as DropdownMenuItemSlots, F as DropdownMenuSubMenuProps, I as DropdownMenuSubMenuSlots, P as DropdownMenuSubMenuPresentation, S as DropdownMenuGroupProps, T as DropdownMenuItemProps, _ as DropdownMenuSlots, d as DropdownMenuPresentation, f as DropdownMenuProps, g as DropdownMenuSize } from "./DropdownMenuRadioItem.vue-Qd-8Rg4Q.js";
|
|
3
3
|
import { ComputedRef, InjectionKey, Ref } from "vue";
|
|
4
4
|
//#region src/DropdownMenu/useMenuDrillIn.d.ts
|
|
5
5
|
/**
|
|
@@ -39,6 +39,8 @@ interface DropdownMenuContextValue {
|
|
|
39
39
|
drillIn: ComputedRef<MenuDrillIn>;
|
|
40
40
|
/** Move focus to the header or the footer. */
|
|
41
41
|
focusRegion: (direction: 'previous' | 'next') => boolean;
|
|
42
|
+
/** Cycle Tab through the dialog around the menu. No-op without a header or footer. */
|
|
43
|
+
moveDialogTab: (event: KeyboardEvent, isFromFlyout?: boolean) => void;
|
|
42
44
|
}
|
|
43
45
|
/** The surrounding menu, or `undefined` when a row stands alone. */
|
|
44
46
|
declare function useDropdownMenuContext(): DropdownMenuContextValue | undefined;
|
|
@@ -67,7 +69,6 @@ declare const __VLS_base$3: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
67
69
|
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
68
70
|
"onUpdate:isMenuOpen"?: ((...args: unknown[]) => any) | undefined;
|
|
69
71
|
}>, {
|
|
70
|
-
button: DropdownMenuButtonProps;
|
|
71
72
|
placement: LayerPlacement;
|
|
72
73
|
alignment: LayerAlignment;
|
|
73
74
|
presentation: DropdownMenuPresentation;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Component } from "vue";
|
|
1
2
|
//#region src/StatusDot/types.d.ts
|
|
2
3
|
type StatusDotVariant = 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
3
4
|
interface StatusDotProps {
|
|
@@ -19,6 +20,11 @@ interface StatusDotProps {
|
|
|
19
20
|
* Tooltip text shown on hover and on keyboard focus to explain the status.
|
|
20
21
|
*/
|
|
21
22
|
tooltip?: string;
|
|
23
|
+
/**
|
|
24
|
+
* 画在圆点里的图标。不传时圆点只靠颜色表达状态。
|
|
25
|
+
* 插槽 `icon` 优先于这个属性。
|
|
26
|
+
*/
|
|
27
|
+
icon?: Component;
|
|
22
28
|
}
|
|
23
29
|
//#endregion
|
|
24
30
|
//#region src/StatusDot/StatusDot.vue.d.ts
|
|
@@ -9,7 +9,36 @@ type CardSizeValue = number | string;
|
|
|
9
9
|
* and `muted` uses the muted surface for a de-emphasised card. The remaining
|
|
10
10
|
* names are the non-semantic hues and use the tint for that hue.
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* 卡片背景变体。主题可以扩充这张表,从而给 `variant` 增加自己的名字:
|
|
14
|
+
*
|
|
15
|
+
* ```ts
|
|
16
|
+
* declare module '@astryx-vue/core' {
|
|
17
|
+
* interface CardVariantMap {
|
|
18
|
+
* brand: true
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* 新增的变体要在主题里自己写背景。可选卡片的描边读 `--astryx-selectable-card-accent`,
|
|
24
|
+
* 主题在同一条规则里指定它,避免组件去猜一种和填充色对比得过来的颜色。
|
|
25
|
+
*/
|
|
26
|
+
interface CardVariantMap {
|
|
27
|
+
default: true;
|
|
28
|
+
transparent: true;
|
|
29
|
+
muted: true;
|
|
30
|
+
blue: true;
|
|
31
|
+
cyan: true;
|
|
32
|
+
gray: true;
|
|
33
|
+
green: true;
|
|
34
|
+
orange: true;
|
|
35
|
+
pink: true;
|
|
36
|
+
purple: true;
|
|
37
|
+
red: true;
|
|
38
|
+
teal: true;
|
|
39
|
+
yellow: true;
|
|
40
|
+
}
|
|
41
|
+
type CardVariant = keyof CardVariantMap;
|
|
13
42
|
/**
|
|
14
43
|
* Resting shadow depth. `none` is flat; `low`, `med`, and `high` follow the
|
|
15
44
|
* shadow scale, ascending in intensity.
|
|
@@ -82,8 +111,8 @@ type __VLS_Slots = CardSlots;
|
|
|
82
111
|
declare const __VLS_base: import("vue").DefineComponent<CardProps, {
|
|
83
112
|
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
84
113
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {
|
|
85
|
-
variant: CardVariant;
|
|
86
114
|
elevation: CardElevation;
|
|
115
|
+
variant: keyof CardVariantMap;
|
|
87
116
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
88
117
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
89
118
|
declare const _default: typeof __VLS_export;
|
|
@@ -93,4 +122,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
93
122
|
};
|
|
94
123
|
};
|
|
95
124
|
//#endregion
|
|
96
|
-
export { CardSlots as a, CardSizeValue as i, CardElevation as n, CardVariant as o, CardProps as r, _default as t };
|
|
125
|
+
export { CardSlots as a, CardSizeValue as i, CardElevation as n, CardVariant as o, CardProps as r, CardVariantMap as s, _default as t };
|
|
@@ -85,8 +85,8 @@ interface StepSlots {
|
|
|
85
85
|
type __VLS_Slots$1 = StepSlots;
|
|
86
86
|
declare const __VLS_base$1: import("vue").DefineComponent<StepProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StepProps> & Readonly<{}>, {
|
|
87
87
|
isDisabled: boolean;
|
|
88
|
-
indicator: StepIndicator;
|
|
89
88
|
isOptional: boolean;
|
|
89
|
+
indicator: StepIndicator;
|
|
90
90
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
91
91
|
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
92
92
|
declare const _default$1: typeof __VLS_export$1;
|
|
@@ -44,9 +44,9 @@ interface ProgressBarProps {
|
|
|
44
44
|
//#region src/ProgressBar/ProgressBar.vue.d.ts
|
|
45
45
|
declare const __VLS_export: import("vue").DefineComponent<ProgressBarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProgressBarProps> & Readonly<{}>, {
|
|
46
46
|
isDisabled: boolean;
|
|
47
|
-
variant: ProgressBarVariant;
|
|
48
47
|
size: ProgressBarSize;
|
|
49
48
|
value: number;
|
|
49
|
+
variant: ProgressBarVariant;
|
|
50
50
|
isLabelHidden: boolean;
|
|
51
51
|
min: number;
|
|
52
52
|
max: number;
|
|
@@ -32,10 +32,10 @@ declare const __VLS_base$2: import("vue").DefineComponent<ItemProps, {
|
|
|
32
32
|
focus: typeof focus;
|
|
33
33
|
blur: typeof blur;
|
|
34
34
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ItemProps> & Readonly<{}>, {
|
|
35
|
-
|
|
35
|
+
as: ItemElement;
|
|
36
36
|
isDisabled: boolean;
|
|
37
|
+
isSelected: boolean;
|
|
37
38
|
density: ListDensity;
|
|
38
|
-
as: ItemElement;
|
|
39
39
|
align: ItemAlign;
|
|
40
40
|
layout: ItemLayout;
|
|
41
41
|
isHighlighted: boolean;
|
|
@@ -53,8 +53,8 @@ type __VLS_Slots$1 = ListSlots;
|
|
|
53
53
|
declare const __VLS_base$1: import("vue").DefineComponent<ListProps, {
|
|
54
54
|
element: import("vue").ComputedRef<HTMLUListElement | HTMLOListElement | null>;
|
|
55
55
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ListProps> & Readonly<{}>, {
|
|
56
|
-
density: ListDensity;
|
|
57
56
|
start: number;
|
|
57
|
+
density: ListDensity;
|
|
58
58
|
hasDividers: boolean;
|
|
59
59
|
listStyle: ListMarkerStyle;
|
|
60
60
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|