@astryx-vue/core 0.3.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-RAVA_cT1.js → AlertDialog-C2inDZWG.js} +5 -5
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-0wTvOo3H.js → AppShell-awAKicsc.js} +3 -3
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-pPZ4dI_s.js → Avatar-DXBjJ88C.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-kpAeKLNq.js} +57 -13
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-GbGxrqQO.js → Banner-BdvuyzAe.js} +71 -35
- 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-pt7m4CvC.js → BottomSheet-B4sc3F1S.js} +286 -140
- package/dist/{BottomSheet-JYMB_Ofl.js → BottomSheet-m54uCMJN.js} +20 -4
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/Breadcrumbs-D4ZzHEB0.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-CjK-JUDM.js} +5 -5
- package/dist/Card/index.d.ts +2 -2
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-CA8zpD9v.js → Carousel-D262qigj.js} +8 -8
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-Bmna9EOA.js → Chat-DD_mlIP3.js} +165 -101
- 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-D8vTmAMZ.js} +20 -12
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-CX1i_jVP.js → CheckboxList-DCvHewHB.js} +155 -38
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-Djgwa0ko.js → Citation-C69BgxW3.js} +8 -3
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-DUsC-j03.js → ClickableCard-ChAfiw9T.js} +9 -6
- 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-D0BFubut.js → CodeBlock-DsbwTBiT.js} +8 -8
- 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-YHsUNg3V.js → CommandPalette-CZ7CZglZ.js} +147 -67
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-DWLdKPGI.js → ComplexSelector-CIz6DDmY.js} +114 -28
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-Bq9b3Ti5.js → ContextMenu-CxoiRh_h.js} +297 -179
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-DT518j5E.js → DateInput-C67HCOU-.js} +563 -72
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-Bqi5tlIA.js → DateRangeInput-Dsf5Tyf-.js} +91 -26
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/DateTimeInput-tfM1y5nZ.js +562 -0
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +2 -2
- package/dist/{Dialog-BiOSKQso.js → Dialog-DT1GzCrB.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-CoOQVlRp.js → DropdownMenu-C6wBC18g.js} +84 -56
- package/dist/{DropdownMenu-DEb2dSSP.js → DropdownMenu-G-pWSiBk.js} +479 -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-JIxT3xCh.js} +5 -4
- package/dist/FieldIcon-BFSHZEs_.js +40 -0
- package/dist/{FieldInfoTip-Ds-sW_jY.js → FieldInfoTip-BbgLt4ug.js} +4 -4
- package/dist/{FieldLabel-BNeXRuGH.js → FieldLabel-CHqp1y3z.js} +13 -8
- package/dist/FieldStatus/index.d.ts +1 -1
- package/dist/FieldStatus/index.js +1 -1
- package/dist/{FieldStatus-MjY19ERl.js → FieldStatus-DaAB3TIt.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-BpdiO1V8.js → FileInput-Bi1uty-F.js} +108 -31
- 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-CfSIqc-V.js +40 -0
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +2 -2
- package/dist/{InputGroup-CA03Smrs.js → InputGroup-D3F-QnET.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-CVV5QDgp.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-C6RHllr-.js → Layout-JJRCG7Mf.js} +1 -1
- package/dist/{LayoutPanel-DXOsaeQb.js → LayoutPanel-zM5vjrKS.js} +12 -8
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-DTF9EdTG.js → Lightbox-CjXhbDPc.js} +14 -12
- package/dist/Link/index.js +1 -1
- package/dist/{Link-BqHCtiyt.js → Link-ClNkTN1Q.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 +4 -2
- package/dist/Markdown/parser/index.d.ts +4 -0
- package/dist/Markdown/parser/index.js +2 -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-CvtN7HnF.js → Markdown-EIBrwQrb.js} +195 -524
- package/dist/MediaTheme-DlLqYhDy.js +433 -0
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-B-OelQlt.js → MetadataList-DLlSLX1n.js} +15 -7
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-DxGz0xKA.js → MobileNavToggle-DgJYyzT6.js} +52 -17
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-Dlb7MLlW.js → MoreMenu-C8BEt6-O.js} +74 -61
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/MultiSelector-C7NCAtwW.js +1456 -0
- package/dist/{NavDisclosure-C_fugrQ3.js → NavDisclosure-Bq9DTZLO.js} +29 -7
- package/dist/{NavHeadingSurface-B3yJspSN.js → NavHeadingSurface-DQXisuaX.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-3u3NZWnv.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-8szj9eXu.js} +91 -6
- package/dist/OverflowList/index.d.ts +2 -2
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-NmrSMbxb.js → OverflowList-BizpEwH8.js} +23 -6
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-DqwNQFRp.js → Pagination-Cihr1CjD.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-DJf8POzL.js → Popover-78dFjTb9.js} +20 -15
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-DvjiPqMZ.js → PowerSearch-BHx91ypY.js} +778 -590
- 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-DeSIRrgt.js} +94 -26
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-xY1cwLdZ.js → RadioList-Co2lmetC.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-DjLZ2pcq.js} +103 -50
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/ScrollableArea/index.js +1 -1
- package/dist/{ScrollableArea-D4dCJv9I.js → ScrollableArea-0u6RWtGG.js} +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -1
- 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-Cku4dRzc.js → SelectableCard-BEqnhPaX.js} +16 -11
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/Selector-swa3RNQI.js +1049 -0
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-BF8mYDxl.js → SideNav-BH6XKsW2.js} +56 -42
- package/dist/Slider/index.d.ts +1 -1
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-DWobsPgm.js → Slider-DG2YXll8.js} +172 -46
- package/dist/Spinner/index.js +1 -1
- package/dist/Spinner-BY8iQz--.js +200 -0
- package/dist/Stack/index.js +2 -2
- package/dist/{Stack-CTsTFfar.js → Stack-Bb_h60t3.js} +1 -1
- package/dist/{Stack-kQlYbbL4.js → Stack-Bp-XN9J4.js} +12 -7
- 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-FtkTq5qR.js} +127 -113
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-DaVPRxvN.js → Switch-0JKvJluV.js} +38 -22
- package/dist/TabList/index.d.ts +2 -2
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-DIkK9sgK.js → TabList-cpjvnbhx.js} +205 -63
- package/dist/Table/index.d.ts +3 -3
- package/dist/Table/index.js +1 -1
- package/dist/{Table-fecqnm7P.js → Table-fWs_ZQBF.js} +735 -461
- package/dist/Text/index.d.ts +1 -1
- 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-CwSfEjT1.js} +110 -50
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-zFT1_qgI.js → TextInput-CavITage.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-DpJnaNbg.js} +17 -14
- package/dist/{TimeField-CoHDGmsP.js → TimeField-DefNjDIT.js} +297 -40
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-D2k3Ux3p.js → TimeInput-j5vzN8MG.js} +78 -9
- 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-dtT4yADD.js} +9 -9
- package/dist/Toast/index.d.ts +1 -1
- package/dist/Toast/index.js +1 -1
- package/dist/Toast-igtJYSw0.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-DhsAtAH6.js} +32 -17
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-B5C_qY7t.js → Tokenizer-BGdj78UK.js} +107 -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-Ciq0l1w7.js → TopNav-Dw0m387B.js} +23 -22
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-BUz-KZJd.js → TreeList-Bunn7u3T.js} +129 -46
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-JP9RT87x.js → Typeahead-DRyf2HEh.js} +123 -26
- package/dist/{TypeaheadMenu-DBW6rHeO.js → TypeaheadMenu-BY5__sPC.js} +141 -51
- package/dist/{announce-Cnio10Wk.js → announce-B210eJVf.js} +17 -2
- 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-CnsDaMuU.js} +167 -197
- package/dist/context-B6UElI5X.js +5 -0
- package/dist/context-CM-cjGg_.js +1425 -0
- package/dist/{context-Cfjh8te1.js → context-Cfml4jaK.js} +5 -3
- 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-ClNU2Th8.d.ts → index-3t5RAfNP.d.ts} +6 -2
- package/dist/{index-B9e52paP.d.ts → index-5LVG3QyV.d.ts} +1 -1
- package/dist/{index-CsNi1I8j.d.ts → index-B08-Uxhv.d.ts} +4 -2
- package/dist/{index-TXcNH86P.d.ts → index-B1eCxBCY.d.ts} +1 -1
- package/dist/{index-Cn-sSds-.d.ts → index-B1t1oQWH.d.ts} +24 -1
- package/dist/{index-BkjSF265.d.ts → index-BEZ4ezJk.d.ts} +3 -3
- package/dist/{index-yT1yiiww.d.ts → index-BI6jikpA.d.ts} +23 -11
- package/dist/{index-DeQwYJbg.d.ts → index-BNaRK-s5.d.ts} +10 -1
- package/dist/{index-D97pQbua.d.ts → index-BV2D2x_u.d.ts} +1 -1
- package/dist/{index-Crp3NFLW.d.ts → index-BZKgbyN9.d.ts} +1 -1
- package/dist/{index-Bu8NA2SD.d.ts → index-BaxM-pFP.d.ts} +12 -3
- package/dist/{index-BVKivP59.d.ts → index-Bgk1Rj2A.d.ts} +32 -3
- package/dist/index-BkUkm6Al.d.ts +11 -0
- package/dist/index-Bo-ofFyg.d.ts +166 -0
- package/dist/{index-B1WJxt-n.d.ts → index-C-tFz2Yx.d.ts} +17 -7
- package/dist/{index-DWh2WC8W.d.ts → index-C4Cjz6OK.d.ts} +2 -2
- package/dist/{index-CqE4Bf3Q.d.ts → index-C732aNMY.d.ts} +18 -4
- 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-CKUfpmFL.d.ts +375 -0
- package/dist/{index-CL1T2j4y.d.ts → index-CL8JvxHW.d.ts} +3 -3
- package/dist/{index-IBAInumL.d.ts → index-CMme-xmL.d.ts} +19 -6
- package/dist/{index-gW0HW02U.d.ts → index-COxy6LEW.d.ts} +1 -1
- package/dist/{index-12QYAbiz.d.ts → index-CRrSHbok.d.ts} +3 -2
- package/dist/{index-B42oE_F-.d.ts → index-CT5OEUxd.d.ts} +17 -4
- package/dist/{index-DG52Bg0W.d.ts → index-CTf3SK0b.d.ts} +6 -0
- package/dist/{index-Cde5JvtX.d.ts → index-CUVmtB5-.d.ts} +13 -6
- package/dist/{index-DXpSFlPG.d.ts → index-CWaSYtk9.d.ts} +4 -4
- package/dist/{index-CVn0GBdB.d.ts → index-Ca8VIE4l.d.ts} +1 -1
- package/dist/{index-Cyb9Du5Z.d.ts → index-CfR2Z0uG.d.ts} +1 -1
- package/dist/{index-Byar3h1e.d.ts → index-D05JGsT3.d.ts} +6 -3
- package/dist/{index-hCpxKePE.d.ts → index-D5N9ikrS.d.ts} +1 -1
- package/dist/{index-CkKPMIeX.d.ts → index-D7XRtUTY.d.ts} +9 -0
- package/dist/{index-i0tNFWfz.d.ts → index-D8lv2BiD.d.ts} +3 -1
- package/dist/{index-TntQsADQ.d.ts → index-DEm3kRBO.d.ts} +4 -3
- package/dist/{index-0QGtSf3r.d.ts → index-DFLPv9io.d.ts} +4 -3
- package/dist/{index-C2nbK2AA.d.ts → index-DLAG3m9W.d.ts} +13 -3
- package/dist/{index-D41_xqjs.d.ts → index-DTuhnqHb.d.ts} +16 -9
- package/dist/{index-B3Fomy15.d.ts → index-DbiZvj1P.d.ts} +4 -4
- package/dist/{index-C5e-7Obr.d.ts → index-Dj1_1t3j.d.ts} +19 -6
- package/dist/{index-DIXAzTKL.d.ts → index-DxxudRgB.d.ts} +1 -1
- package/dist/{index-BhpAUzUr.d.ts → index-Dy746dfn.d.ts} +1 -1
- package/dist/{index-GI9xIV9l.d.ts → index-JL4auphT.d.ts} +2 -2
- package/dist/{index-DVmgNb78.d.ts → index-TA1zVibb.d.ts} +4 -4
- package/dist/{index-DUaLJO7l.d.ts → index-UA93Im7H.d.ts} +155 -109
- package/dist/{index-COgrQZIL.d.ts → index-YKCx03zD.d.ts} +2 -2
- package/dist/{index-XuAAcYiP.d.ts → index-f3d9cVtj.d.ts} +1 -1
- package/dist/{index-T2FOcOuI.d.ts → index-jOwU3YoR.d.ts} +400 -90
- package/dist/{index-CICeEoZV.d.ts → index-pNtfr-RW.d.ts} +1 -1
- package/dist/{index-B4OOtNP8.d.ts → index-pYh4gqgl.d.ts} +1 -1
- package/dist/index.d.ts +81 -75
- package/dist/index.js +150 -136
- 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-CsZFr9dg.js +424 -0
- package/dist/loadCatalog-opk5hs94.d.ts +803 -0
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +4 -3
- package/dist/locale-D1Z3K290.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-DwUmpC5G.d.ts +240 -0
- package/dist/publicParser-B6XMcsB2.d.ts +141 -0
- package/dist/publicParser-DWUMCx7j.js +1437 -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-DtyScdZs.js} +5 -14
- package/dist/{semantic-CKH9XVqa.d.ts → semantic-BF_AjLvk.d.ts} +6 -3
- package/dist/slug-DAK6hdbr.js +17 -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-CwyibrRB.d.ts → types-C5GQ2KCK.d.ts} +23 -3
- package/dist/{types-gKsEkk2g.d.ts → types-CsqwQkf1.d.ts} +143 -10
- package/dist/upstreamMap-ocuIRfI2.js +893 -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-D9Y0dJsm.js} +5 -23
- package/dist/{useInputContainer-CpgDe2-4.js → useInputContainer-CLcYrby4.js} +1 -1
- package/dist/{useInputStatusIcon-DBOwxV4x.js → useInputStatusIcon-CWkCeMyX.js} +2 -2
- 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/{useTimeValue-6ufHM15W.js → useTimeValue-BJd0xBhG.js} +4 -22
- package/dist/useTranslator-PEXMxDpv.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 +18 -2
- package/reset.css +364 -1
- package/styles/avatar-group.css +9 -1
- package/styles/badge.css +8 -5
- package/styles/banner.css +125 -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 +24 -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 +9 -9
- 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/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 -11
- package/styles/text-area.css +7 -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-DIm4figq.js +0 -141
- package/dist/ButtonGroup-ySQWanDP.js +0 -125
- package/dist/DateTimeInput-A7m2O3bg.js +0 -268
- package/dist/FieldIcon--NTgW5IU.js +0 -44
- package/dist/MultiSelector-BtAUfQ3t.js +0 -990
- package/dist/NumberInput-AZ9x3oja.js +0 -473
- package/dist/Selector-DJ2BhUTV.js +0 -677
- 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/context-iABt_ueM.js +0 -976
- package/dist/index-BH9PzQ1F.d.ts +0 -87
- package/dist/link-C4_WogdF.js +0 -18
- package/dist/loadCatalog-BGHKG_9N.d.ts +0 -457
- 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
package/dist/{InternationalizationProvider-DJay_w3B.js → InternationalizationProvider-CVV5QDgp.js}
RENAMED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import {
|
|
1
|
+
import { a as provideAstryxLocale, i as normalizeLocale, o as useAstryxLocale, r as builtInMessages } from "./context-CM-cjGg_.js";
|
|
2
|
+
import { n as formatIcu, r as icuPlaceholderNames, t as loadAstryxCatalog } from "./loadCatalog-CsZFr9dg.js";
|
|
3
|
+
import { t as upstreamMessageMap } from "./upstreamMap-ocuIRfI2.js";
|
|
3
4
|
import { computed, defineComponent, inject, provide, renderSlot } from "vue";
|
|
4
5
|
//#region src/InternationalizationProvider/catalog.ts
|
|
5
|
-
/** 内置文案只有这两种语言,其余语言都从英文兜底。 */
|
|
6
|
-
const BUILT_IN_LOCALES = /* @__PURE__ */ new Set(["en", "zh-CN"]);
|
|
7
6
|
/**
|
|
8
7
|
* 把 `messages` 和 `overrides` 合成本次渲染要用的文案树。
|
|
9
8
|
*
|
|
@@ -15,8 +14,8 @@ function resolveProviderMessages(locale, messages, overrides) {
|
|
|
15
14
|
const baseLanguage = tag.split("-")[0] ?? tag;
|
|
16
15
|
const catalog = pickLocale(messages, tag, baseLanguage);
|
|
17
16
|
const sparse = pickLocale(overrides, tag, baseLanguage);
|
|
18
|
-
if (catalog == null && sparse == null) return
|
|
19
|
-
const base = catalog == null ?
|
|
17
|
+
if (catalog == null && sparse == null) return builtInMessages(tag);
|
|
18
|
+
const base = catalog == null ? builtInMessages(tag) : loadAstryxCatalog(tag, catalog).messages;
|
|
20
19
|
return sparse == null ? base : applyCatalog(base, tag, sparse);
|
|
21
20
|
}
|
|
22
21
|
/** 先找完全同名的 locale,再找它的基础语言,例如 `fr-FR` 找 `fr`。 */
|
|
@@ -24,9 +23,6 @@ function pickLocale(map, tag, baseLanguage) {
|
|
|
24
23
|
if (map == null) return void 0;
|
|
25
24
|
return map[tag] ?? (baseLanguage === tag ? void 0 : map[baseLanguage]);
|
|
26
25
|
}
|
|
27
|
-
function defaultMessages(tag) {
|
|
28
|
-
return BUILT_IN_LOCALES.has(tag) ? astryxMessages[tag] : astryxMessages.en;
|
|
29
|
-
}
|
|
30
26
|
/**
|
|
31
27
|
* 把一份稀疏目录写到已有的文案树上,返回副本。
|
|
32
28
|
* 键没有对应字段、占位符对不上、ICU 解析不了时跳过该键,其余字段保持原样。
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
import { t as usePressFeedback } from "./usePressFeedback-BJCpjEpv.js";
|
|
2
|
+
import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
|
|
3
|
+
import { n as isSafeUrl } from "./safeUrl-CsvfcZ9m.js";
|
|
1
4
|
import { n as useLinkComponent } from "./context-C_peZbXf.js";
|
|
2
5
|
import { t as useInteractiveRole } from "./useInteractiveRole-Cn0Nd5GX.js";
|
|
3
|
-
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, inject, mergeProps, normalizeClass, normalizeStyle, onBeforeUnmount, openBlock, provide, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, toRaw, toValue, unref, useAttrs, useId, useSlots, useTemplateRef, withCtx, withModifiers } from "vue";
|
|
6
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, inject, mergeProps, normalizeClass, normalizeStyle, onBeforeUnmount, openBlock, provide, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, toRaw, toValue, unref, useAttrs, useId, useSlots, useTemplateRef, watch, withCtx, withModifiers } from "vue";
|
|
4
7
|
import "../styles/list.css";
|
|
5
8
|
//#region src/List/context.ts
|
|
6
|
-
const listContextKey =
|
|
9
|
+
const listContextKey = defineLayerScopedKey("astryx-list-context", void 0);
|
|
7
10
|
/** The surrounding list, or `undefined` when the row stands alone. */
|
|
8
11
|
function useListContext() {
|
|
9
|
-
return
|
|
12
|
+
return readLayerScoped(listContextKey);
|
|
10
13
|
}
|
|
11
14
|
const itemDescriptionContextKey = Symbol("astryx-item-description");
|
|
12
15
|
/**
|
|
@@ -153,6 +156,17 @@ function useItemSwipe(options) {
|
|
|
153
156
|
stopTracking();
|
|
154
157
|
springTo(0, "idle");
|
|
155
158
|
}
|
|
159
|
+
function onDocumentPointerDown(event) {
|
|
160
|
+
const root = options.root.value;
|
|
161
|
+
const target = event.target;
|
|
162
|
+
if (root == null || target instanceof Node && root.contains(target)) return;
|
|
163
|
+
springTo(0, "idle");
|
|
164
|
+
}
|
|
165
|
+
watch(phase, (next) => {
|
|
166
|
+
if (typeof document === "undefined") return;
|
|
167
|
+
if (next === "resting") document.addEventListener("pointerdown", onDocumentPointerDown, true);
|
|
168
|
+
else document.removeEventListener("pointerdown", onDocumentPointerDown, true);
|
|
169
|
+
});
|
|
156
170
|
function onPointerDown(event) {
|
|
157
171
|
if (!options.enabled.value || event.pointerType !== "touch" || phase.value === "held") return;
|
|
158
172
|
const target = event.target;
|
|
@@ -193,6 +207,7 @@ function useItemSwipe(options) {
|
|
|
193
207
|
onBeforeUnmount(() => {
|
|
194
208
|
stopTracking();
|
|
195
209
|
clearSettle();
|
|
210
|
+
if (typeof document !== "undefined") document.removeEventListener("pointerdown", onDocumentPointerDown, true);
|
|
196
211
|
});
|
|
197
212
|
return {
|
|
198
213
|
phase,
|
|
@@ -333,10 +348,17 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
333
348
|
const allowsAriaSelected = computed(() => role.value != null && ARIA_SELECTED_ROLES.has(role.value));
|
|
334
349
|
const ariaCurrent = computed(() => attrs["aria-current"] ?? (props.isSelected && !allowsAriaSelected.value ? true : void 0));
|
|
335
350
|
const isDelegate = computed(() => props.interactiveRef != null);
|
|
336
|
-
|
|
351
|
+
/** `javascript:` 这类地址不交给浏览器,行也就不是链接。 */
|
|
352
|
+
const safeHref = computed(() => {
|
|
353
|
+
const href = props.href;
|
|
354
|
+
return href != null && href !== "" && isSafeUrl(href) ? href : void 0;
|
|
355
|
+
});
|
|
356
|
+
const isInteractive = computed(() => props.onClick != null || safeHref.value != null || isDelegate.value);
|
|
337
357
|
/** 链接内容用的根组件:`as` 写了组件就用它,否则用 LinkProvider 给的默认值。 */
|
|
338
358
|
const customLink = computed(() => typeof props.as === "string" ? linkComponent.value : props.as);
|
|
339
|
-
const isLinkContent = computed(() =>
|
|
359
|
+
const isLinkContent = computed(() => safeHref.value != null && customLink.value != null);
|
|
360
|
+
usePressFeedback({ hasOverlay: false });
|
|
361
|
+
const pressable = computed(() => isInteractive.value && !props.isDisabled);
|
|
340
362
|
const resolvedTarget = computed(() => props.target);
|
|
341
363
|
const resolvedRel = computed(() => {
|
|
342
364
|
const tokens = new Set((props.rel ?? "").split(/\s+/).filter(Boolean));
|
|
@@ -364,7 +386,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
364
386
|
const descriptionClasses = computed(() => clampClass(descriptionClamp.value));
|
|
365
387
|
const descriptionStyle = computed(() => clampStyle(descriptionClamp.value));
|
|
366
388
|
const contentRole = useInteractiveRole({
|
|
367
|
-
href: () => hasParentRole.value || isDelegate.value ? void 0 :
|
|
389
|
+
href: () => hasParentRole.value || isDelegate.value ? void 0 : safeHref.value,
|
|
368
390
|
hasOnClick: () => !hasParentRole.value && !isDelegate.value && props.onClick != null
|
|
369
391
|
});
|
|
370
392
|
const contentTag = computed(() => {
|
|
@@ -375,9 +397,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
375
397
|
props.onClick?.(event);
|
|
376
398
|
}
|
|
377
399
|
const contentAttrs = computed(() => {
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
"
|
|
400
|
+
const href = safeHref.value;
|
|
401
|
+
if (href != null && !hasParentRole.value && !isDelegate.value) return {
|
|
402
|
+
"href": href,
|
|
403
|
+
"to": isLinkContent.value ? href : void 0,
|
|
381
404
|
"rel": resolvedRel.value,
|
|
382
405
|
"target": resolvedTarget.value,
|
|
383
406
|
"aria-disabled": props.isDisabled || void 0,
|
|
@@ -494,6 +517,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
494
517
|
"data-inert": __props.isDisabled && !hasParentRole.value ? true : void 0,
|
|
495
518
|
"data-interactive": isInteractive.value || void 0,
|
|
496
519
|
"data-selected": __props.isSelected || void 0,
|
|
520
|
+
"data-astryx-pressable": pressable.value ? "" : void 0,
|
|
497
521
|
"data-swipe": swipeEnabled.value ? unref(swipe).phase.value : void 0,
|
|
498
522
|
role: role.value,
|
|
499
523
|
style: unref(attrs).style,
|
|
@@ -584,6 +608,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
584
608
|
"data-inert",
|
|
585
609
|
"data-interactive",
|
|
586
610
|
"data-selected",
|
|
611
|
+
"data-astryx-pressable",
|
|
587
612
|
"data-swipe",
|
|
588
613
|
"role",
|
|
589
614
|
"style",
|
package/dist/Kbd/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Kbd-
|
|
1
|
+
import { t as _sfc_main } from "../Kbd-CV3LO2Ge.js";
|
|
2
2
|
export { _sfc_main as Kbd };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Fragment, computed, createElementBlock, defineComponent, mergeProps, openBlock, renderList, toDisplayString, unref, useAttrs } from "vue";
|
|
1
|
+
import { t as isApplePlatform } from "./isApplePlatform-B1ju6F5B.js";
|
|
2
|
+
import { Fragment, computed, createElementBlock, defineComponent, mergeProps, onMounted, openBlock, ref, renderList, toDisplayString, unref, useAttrs } from "vue";
|
|
3
3
|
import "../styles/kbd.css";
|
|
4
4
|
//#region src/Kbd/keys.ts
|
|
5
5
|
const KEY_ALIASES = /* @__PURE__ */ new Map([["esc", "escape"], ["return", "enter"]]);
|
|
@@ -59,6 +59,22 @@ function parseShortcut(keys, isApple) {
|
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
//#endregion
|
|
62
|
+
//#region src/Kbd/platform.ts
|
|
63
|
+
/**
|
|
64
|
+
* Reads the platform on the client only.
|
|
65
|
+
*
|
|
66
|
+
* The server and the first client render both answer `false`, so a
|
|
67
|
+
* server-rendered shortcut hydrates without a mismatch and only then switches
|
|
68
|
+
* to the platform-resolved keys.
|
|
69
|
+
*/
|
|
70
|
+
function useIsApplePlatform() {
|
|
71
|
+
const isApple = ref(false);
|
|
72
|
+
onMounted(() => {
|
|
73
|
+
isApple.value = isApplePlatform();
|
|
74
|
+
});
|
|
75
|
+
return isApple;
|
|
76
|
+
}
|
|
77
|
+
//#endregion
|
|
62
78
|
//#region src/Kbd/Kbd.vue
|
|
63
79
|
const _hoisted_1 = ["aria-label"];
|
|
64
80
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { r as resetLayerScopedContext } from "./scopedProvide-C-Df7c15.js";
|
|
2
|
+
import { t as provideLayerDepth } from "./layerDepth-CNDh-IHb.js";
|
|
3
|
+
import { defineComponent, renderSlot } from "vue";
|
|
4
|
+
//#region src/layer/LayerContentBoundary.vue
|
|
5
|
+
/**
|
|
6
|
+
* 浮层内容的边界。
|
|
7
|
+
*
|
|
8
|
+
* 两件事都只作用在内容上,不包住触发器:浮层组件同时渲染触发器和内容,
|
|
9
|
+
* 触发器仍然属于外面那一层。
|
|
10
|
+
*
|
|
11
|
+
* - 外面组里的尺寸、禁用、选中值进不来(细节见 `scopedProvide.ts`)。
|
|
12
|
+
* - 嵌套深度加一,往下传。Teleport 切不断 provide/inject,里面再开的
|
|
13
|
+
* Tooltip / HoverCard 能知道自己比这一层更深。
|
|
14
|
+
*/
|
|
15
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
16
|
+
name: "AstryxLayerContentBoundary",
|
|
17
|
+
__name: "LayerContentBoundary",
|
|
18
|
+
setup(__props) {
|
|
19
|
+
resetLayerScopedContext();
|
|
20
|
+
provideLayerDepth();
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
return renderSlot(_ctx.$slots, "default");
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
export { _sfc_main as t };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { i as useLayerGutter, n as layerNestingKey, r as useLayerConfig, t as layerContextKey } from "../context-M-er0-Rk.js";
|
|
2
|
-
import { n as mergeInset, r as resolveInset, t as _sfc_main } from "../LayerProvider-
|
|
2
|
+
import { n as mergeInset, r as resolveInset, t as _sfc_main } from "../LayerProvider-B6zpMBWC.js";
|
|
3
3
|
export { _sfc_main as LayerProvider, layerContextKey, layerNestingKey, mergeInset, resolveInset, useLayerConfig, useLayerGutter };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { a as measureLength, n as layerNestingKey, o as resetLayerSafeArea, t as layerContextKey } from "./context-M-er0-Rk.js";
|
|
2
|
-
import {
|
|
1
|
+
import { a as measureLength, n as layerNestingKey, o as resetLayerSafeArea, s as resolveLayerGutter, t as layerContextKey } from "./context-M-er0-Rk.js";
|
|
2
|
+
import { a as releaseLayerMaxInlineSize, i as layerMaxInlineSize, o as retainLayerMaxInlineSize } from "./inlineSize-BNe8wggI.js";
|
|
3
|
+
import { computed, defineComponent, inject, onBeforeUnmount, onMounted, provide, ref, renderSlot, watch } from "vue";
|
|
3
4
|
//#region src/LayerProvider/inset.ts
|
|
4
5
|
const EDGES = [
|
|
5
6
|
"blockStart",
|
|
@@ -60,10 +61,21 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
60
61
|
}
|
|
61
62
|
};
|
|
62
63
|
});
|
|
64
|
+
/** 外面那层 provider 的配置。没有就是 null。 */
|
|
65
|
+
const outer = inject(layerContextKey, null);
|
|
63
66
|
if (!isNested) {
|
|
64
67
|
provide(layerNestingKey, true);
|
|
65
68
|
provide(layerContextKey, config);
|
|
66
|
-
|
|
69
|
+
const inlineSizeToken = {};
|
|
70
|
+
function syncMaxInlineSize() {
|
|
71
|
+
retainLayerMaxInlineSize(inlineSizeToken, layerMaxInlineSize(resolveLayerGutter(config.value.inset)));
|
|
72
|
+
}
|
|
73
|
+
watch(config, syncMaxInlineSize, { immediate: true });
|
|
74
|
+
onBeforeUnmount(() => releaseLayerMaxInlineSize(inlineSizeToken));
|
|
75
|
+
} else if (outer != null && props.inset != null) provide(layerContextKey, computed(() => ({
|
|
76
|
+
...outer.value,
|
|
77
|
+
inset: resolveInset(props.inset) ?? {}
|
|
78
|
+
})));
|
|
67
79
|
return (_ctx, _cache) => {
|
|
68
80
|
return renderSlot(_ctx.$slots, "default");
|
|
69
81
|
};
|
package/dist/Layout/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as LayoutHeight, a as _default, c as LayoutFooterProps, d as LayoutHeaderSlots, f as LayoutPanelProps, g as LayoutArea, h as LayoutSlots, i as _default$1, l as LayoutFooterSlots, m as LayoutProps, n as _default$3, o as LayoutContentProps, p as LayoutPanelSlots, r as _default$2, s as LayoutContentSlots, t as _default$4, u as LayoutHeaderProps } from "../index-
|
|
1
|
+
import { _ as LayoutHeight, a as _default, c as LayoutFooterProps, d as LayoutHeaderSlots, f as LayoutPanelProps, g as LayoutArea, h as LayoutSlots, i as _default$1, l as LayoutFooterSlots, m as LayoutProps, n as _default$3, o as LayoutContentProps, p as LayoutPanelSlots, r as _default$2, s as LayoutContentSlots, t as _default$4, u as LayoutHeaderProps } from "../index-C4Cjz6OK.js";
|
|
2
2
|
export { _default as Layout, type LayoutArea, _default$1 as LayoutContent, type LayoutContentProps, type LayoutContentSlots, _default$2 as LayoutFooter, type LayoutFooterProps, type LayoutFooterSlots, _default$3 as LayoutHeader, type LayoutHeaderProps, type LayoutHeaderSlots, type LayoutHeight, _default$4 as LayoutPanel, type LayoutPanelProps, type LayoutPanelSlots, type LayoutProps, type LayoutSlots };
|
package/dist/Layout/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as _sfc_main, n as _sfc_main$3, r as _sfc_main$1, t as _sfc_main$4 } from "../LayoutPanel-
|
|
2
|
-
import { t as _sfc_main$2 } from "../Layout-
|
|
1
|
+
import { a as _sfc_main, n as _sfc_main$3, r as _sfc_main$1, t as _sfc_main$4 } from "../LayoutPanel-zM5vjrKS.js";
|
|
2
|
+
import { t as _sfc_main$2 } from "../Layout-JJRCG7Mf.js";
|
|
3
3
|
export { _sfc_main as Layout, _sfc_main$1 as LayoutContent, _sfc_main$2 as LayoutFooter, _sfc_main$3 as LayoutHeader, _sfc_main$4 as LayoutPanel };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as regionPaddingStyle, o as useLayoutDividers } from "./LayoutPanel-
|
|
1
|
+
import { i as regionPaddingStyle, o as useLayoutDividers } from "./LayoutPanel-zM5vjrKS.js";
|
|
2
2
|
import { t as formatSize } from "./size-Cpn_wzXi.js";
|
|
3
3
|
import { computed, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeStyle, openBlock, renderSlot, useAttrs, useTemplateRef } from "vue";
|
|
4
4
|
import "../styles/layout.css";
|
|
@@ -1,25 +1,29 @@
|
|
|
1
|
+
import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
|
|
1
2
|
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
2
3
|
import { a as supportsInternalContentWidth, i as spacingVariable, t as formatSize } from "./size-Cpn_wzXi.js";
|
|
3
|
-
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent,
|
|
4
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, normalizeStyle, openBlock, provide, renderSlot, unref, useAttrs, useSlots, useTemplateRef, withCtx } from "vue";
|
|
4
5
|
import "../styles/layout.css";
|
|
5
6
|
//#region src/Layout/context.ts
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const layoutDividerKey = Symbol("astryx-layout-dividers");
|
|
9
|
-
const emptySlots = computed(() => ({
|
|
7
|
+
/** 没有任何 `Layout` 时的槽位状态:都没有。 */
|
|
8
|
+
const emptyLayoutSlots = computed(() => ({
|
|
10
9
|
hasHeader: false,
|
|
11
10
|
hasFooter: false,
|
|
12
11
|
hasStart: false,
|
|
13
12
|
hasEnd: false
|
|
14
13
|
}));
|
|
14
|
+
const NO_LAYOUT_AREA = computed(() => null);
|
|
15
|
+
const NO_LAYOUT_DIVIDERS = computed(() => void 0);
|
|
16
|
+
const layoutSlotsKey = defineLayerScopedKey("astryx-layout-slots", emptyLayoutSlots);
|
|
17
|
+
const layoutAreaKey = defineLayerScopedKey("astryx-layout-area", NO_LAYOUT_AREA);
|
|
18
|
+
const layoutDividerKey = defineLayerScopedKey("astryx-layout-dividers", NO_LAYOUT_DIVIDERS);
|
|
15
19
|
function useLayoutSlots() {
|
|
16
|
-
return
|
|
20
|
+
return readLayerScoped(layoutSlotsKey);
|
|
17
21
|
}
|
|
18
22
|
function useLayoutArea() {
|
|
19
|
-
return
|
|
23
|
+
return readLayerScoped(layoutAreaKey);
|
|
20
24
|
}
|
|
21
25
|
function useLayoutDividers() {
|
|
22
|
-
return
|
|
26
|
+
return readLayerScoped(layoutDividerKey);
|
|
23
27
|
}
|
|
24
28
|
//#endregion
|
|
25
29
|
//#region src/Layout/LayoutRegion.vue
|
package/dist/Lightbox/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as useLightbox } from "../Lightbox-
|
|
1
|
+
import { n as _sfc_main, t as useLightbox } from "../Lightbox-CjXhbDPc.js";
|
|
2
2
|
export { _sfc_main as Lightbox, useLightbox };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
1
|
+
import { r as resetLayerScopedContext } from "./scopedProvide-C-Df7c15.js";
|
|
2
|
+
import { t as useAnnounce } from "./announce-B210eJVf.js";
|
|
3
|
+
import { t as _sfc_main$1 } from "./Icon-KDnUyY7f.js";
|
|
4
|
+
import { t as _sfc_main$2 } from "./IconButton-DI-XBbtV.js";
|
|
5
|
+
import { s as useAstryxMessages } from "./context-CM-cjGg_.js";
|
|
6
|
+
import { t as useScrollLock } from "./scrollLock-C3aT4-0z.js";
|
|
6
7
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, onBeforeUnmount, openBlock, ref, toDisplayString, toRef, unref, useTemplateRef, watch, withCtx } from "vue";
|
|
7
8
|
import "../styles/lightbox.css";
|
|
8
9
|
//#region src/Lightbox/Lightbox.vue
|
|
@@ -59,6 +60,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
59
60
|
const emit = __emit;
|
|
60
61
|
const messages = useAstryxMessages();
|
|
61
62
|
const announce = useAnnounce();
|
|
63
|
+
resetLayerScopedContext();
|
|
62
64
|
const dialogRef = useTemplateRef("dialog");
|
|
63
65
|
const containerRef = ref(null);
|
|
64
66
|
useScrollLock(toRef(props, "isOpen"));
|
|
@@ -237,7 +239,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
237
239
|
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" eslint-disable-next-line vue-a11y/click-events-have-key-events, vue-a11y/no-static-element-interactions -- 点在 dialog 自身上等于点遮罩;键盘走 Escape 和方向键。 "), current.value ? (openBlock(), createElementBlock("dialog", {
|
|
238
240
|
key: 0,
|
|
239
241
|
ref: "dialog",
|
|
240
|
-
class: normalizeClass(["astryx-lightbox", _ctx.$attrs.class]),
|
|
242
|
+
class: normalizeClass(["astryx-lightbox astryx-layer", _ctx.$attrs.class]),
|
|
241
243
|
style: normalizeStyle(_ctx.$attrs.style),
|
|
242
244
|
"aria-label": current.value.alt || unref(messages).lightbox.mediaViewer,
|
|
243
245
|
"data-component": "lightbox",
|
|
@@ -249,20 +251,20 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
249
251
|
ref: containerRef,
|
|
250
252
|
class: "astryx-lightbox__container"
|
|
251
253
|
}, [
|
|
252
|
-
createVNode(_sfc_main$
|
|
254
|
+
createVNode(_sfc_main$2, {
|
|
253
255
|
class: "astryx-lightbox__close",
|
|
254
256
|
variant: "ghost",
|
|
255
257
|
size: "sm",
|
|
256
258
|
label: unref(messages).lightbox.close,
|
|
257
259
|
onClick: close
|
|
258
260
|
}, {
|
|
259
|
-
default: withCtx(() => [createVNode(_sfc_main$
|
|
261
|
+
default: withCtx(() => [createVNode(_sfc_main$1, {
|
|
260
262
|
icon: "close",
|
|
261
263
|
size: "sm"
|
|
262
264
|
})]),
|
|
263
265
|
_: 1
|
|
264
266
|
}, 8, ["label"]),
|
|
265
|
-
isGallery.value ? (openBlock(), createBlock(_sfc_main$
|
|
267
|
+
isGallery.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
266
268
|
key: 0,
|
|
267
269
|
class: "astryx-lightbox__nav astryx-lightbox__nav--prev",
|
|
268
270
|
variant: "ghost",
|
|
@@ -271,7 +273,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
271
273
|
"is-disabled": !canPrev.value,
|
|
272
274
|
onClick: _cache[0] || (_cache[0] = ($event) => setIndex(index.value - 1))
|
|
273
275
|
}, {
|
|
274
|
-
default: withCtx(() => [createVNode(_sfc_main$
|
|
276
|
+
default: withCtx(() => [createVNode(_sfc_main$1, {
|
|
275
277
|
icon: "chevronLeft",
|
|
276
278
|
size: "sm"
|
|
277
279
|
})]),
|
|
@@ -309,7 +311,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
309
311
|
}, null, 12, _hoisted_5))], 40, _hoisted_3),
|
|
310
312
|
current.value.caption ? (openBlock(), createElementBlock("p", _hoisted_6, toDisplayString(current.value.caption), 1)) : createCommentVNode("v-if", true)
|
|
311
313
|
]),
|
|
312
|
-
isGallery.value ? (openBlock(), createBlock(_sfc_main$
|
|
314
|
+
isGallery.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
313
315
|
key: 1,
|
|
314
316
|
class: "astryx-lightbox__nav astryx-lightbox__nav--next",
|
|
315
317
|
variant: "ghost",
|
|
@@ -318,7 +320,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
318
320
|
"is-disabled": !canNext.value,
|
|
319
321
|
onClick: _cache[4] || (_cache[4] = ($event) => setIndex(index.value + 1))
|
|
320
322
|
}, {
|
|
321
|
-
default: withCtx(() => [createVNode(_sfc_main$
|
|
323
|
+
default: withCtx(() => [createVNode(_sfc_main$1, {
|
|
322
324
|
icon: "chevronRight",
|
|
323
325
|
size: "sm"
|
|
324
326
|
})]),
|
package/dist/Link/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Link-
|
|
1
|
+
import { t as _sfc_main } from "../Link-ClNkTN1Q.js";
|
|
2
2
|
export { _sfc_main as Link };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { t as usePressFeedback } from "./usePressFeedback-BJCpjEpv.js";
|
|
2
|
+
import { n as isSafeUrl } from "./safeUrl-CsvfcZ9m.js";
|
|
1
3
|
import { n as useLinkComponent } from "./context-C_peZbXf.js";
|
|
2
4
|
import { t as _sfc_main$1 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as _sfc_main$2 } from "./Tooltip-
|
|
5
|
-
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeProps, normalizeClass, normalizeStyle, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, toRaw, withCtx } from "vue";
|
|
5
|
+
import { s as useAstryxMessages } from "./context-CM-cjGg_.js";
|
|
6
|
+
import { t as _sfc_main$2 } from "./Tooltip-sAM8i1eO.js";
|
|
7
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeProps, normalizeClass, normalizeStyle, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, toRaw, useAttrs, withCtx } from "vue";
|
|
6
8
|
import "../styles/link.css";
|
|
7
9
|
//#region src/Link/Link.vue
|
|
8
10
|
const _hoisted_1 = {
|
|
@@ -54,14 +56,29 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
54
56
|
setup(__props, { emit: __emit }) {
|
|
55
57
|
const props = __props;
|
|
56
58
|
const emit = __emit;
|
|
59
|
+
const attrs = useAttrs();
|
|
57
60
|
const messages = useAstryxMessages();
|
|
58
61
|
const linkComponent = useLinkComponent();
|
|
62
|
+
const press = usePressFeedback();
|
|
63
|
+
/** 禁用时不挂按压层,鼠标和手指都不会亮。 */
|
|
64
|
+
const rootBindings = computed(() => ({
|
|
65
|
+
...attrs,
|
|
66
|
+
...props.isDisabled ? {} : press.pressableProps
|
|
67
|
+
}));
|
|
59
68
|
/** 自己的 `as` 优先,其次是 LinkProvider 给的默认链接组件。 */
|
|
60
69
|
const customLink = computed(() => props.as ?? linkComponent.value);
|
|
61
|
-
const
|
|
62
|
-
|
|
70
|
+
const destination = computed(() => {
|
|
71
|
+
const href = props.href;
|
|
72
|
+
return href != null && href !== "" ? href : void 0;
|
|
73
|
+
});
|
|
74
|
+
/** 危险协议不交给浏览器,也不交给自定义路由。 */
|
|
75
|
+
const safeHref = computed(() => destination.value != null && isSafeUrl(destination.value) ? destination.value : void 0);
|
|
76
|
+
const isBlocked = computed(() => destination.value != null && safeHref.value == null);
|
|
77
|
+
const isButton = computed(() => destination.value == null);
|
|
78
|
+
const isCustomLink = computed(() => safeHref.value != null && !props.isDisabled && customLink.value != null);
|
|
63
79
|
const root = computed(() => {
|
|
64
|
-
if (isButton.value
|
|
80
|
+
if (isButton.value) return "button";
|
|
81
|
+
if (props.isDisabled || isBlocked.value || customLink.value == null) return "a";
|
|
65
82
|
return toRaw(customLink.value);
|
|
66
83
|
});
|
|
67
84
|
const computedTarget = computed(() => {
|
|
@@ -125,10 +142,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
125
142
|
key: 0,
|
|
126
143
|
content: tooltipText.value
|
|
127
144
|
}, {
|
|
128
|
-
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(root.value), mergeProps(
|
|
145
|
+
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(root.value), mergeProps(rootBindings.value, {
|
|
129
146
|
class: ["astryx-link", classes.value],
|
|
130
|
-
href: !isButton.value && !__props.isDisabled ?
|
|
131
|
-
to: isCustomLink.value ?
|
|
147
|
+
href: !isButton.value && !__props.isDisabled ? safeHref.value : void 0,
|
|
148
|
+
to: isCustomLink.value ? safeHref.value : void 0,
|
|
132
149
|
target: !isButton.value && !__props.isDisabled ? computedTarget.value : void 0,
|
|
133
150
|
rel: !isButton.value && !__props.isDisabled ? computedRel.value : void 0,
|
|
134
151
|
download: downloadAttribute.value,
|
|
@@ -167,10 +184,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
167
184
|
"aria-label"
|
|
168
185
|
]))]),
|
|
169
186
|
_: 3
|
|
170
|
-
}, 8, ["content"])) : (openBlock(), createBlock(resolveDynamicComponent(root.value), mergeProps({ key: 1 },
|
|
187
|
+
}, 8, ["content"])) : (openBlock(), createBlock(resolveDynamicComponent(root.value), mergeProps({ key: 1 }, rootBindings.value, {
|
|
171
188
|
class: ["astryx-link", classes.value],
|
|
172
|
-
href: !isButton.value && !__props.isDisabled ?
|
|
173
|
-
to: isCustomLink.value ?
|
|
189
|
+
href: !isButton.value && !__props.isDisabled ? safeHref.value : void 0,
|
|
190
|
+
to: isCustomLink.value ? safeHref.value : void 0,
|
|
174
191
|
target: !isButton.value && !__props.isDisabled ? computedTarget.value : void 0,
|
|
175
192
|
rel: !isButton.value && !__props.isDisabled ? computedRel.value : void 0,
|
|
176
193
|
download: downloadAttribute.value,
|
package/dist/List/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { _ as ListItemSlots, a as ItemLayout, b as ListSlots, c as ItemSwipeAction, d as ItemSwipeSide, f as ItemTarget, g as ListItemProps, h as ListEdgeCompensation, i as ItemLabel, l as ItemSwipeActions, m as ListDensity, n as ItemDensity, o as ItemProps, p as ItemText, r as ItemElement, s as ItemSlots, t as ItemAlign, u as ItemSwipeBehavior, v as ListMarkerStyle, y as ListProps } from "../types-DGYHIu4I.js";
|
|
2
|
-
import { a as useListContext, i as useItemDescriptionId, n as _default$1, r as _default, t as _default$2 } from "../index-
|
|
2
|
+
import { a as useListContext, i as useItemDescriptionId, n as _default$1, r as _default, t as _default$2 } from "../index-JL4auphT.js";
|
|
3
3
|
export { _default as Item, type ItemAlign, type ItemDensity, type ItemElement, type ItemLabel, type ItemLayout, type ItemProps, type ItemSlots, type ItemSwipeAction, type ItemSwipeActions, type ItemSwipeBehavior, type ItemSwipeSide, type ItemTarget, type ItemText, _default$1 as List, type ListDensity, type ListEdgeCompensation, _default$2 as ListItem, type ListItemProps, type ListItemSlots, type ListMarkerStyle, type ListProps, type ListSlots, useItemDescriptionId, useListContext };
|
package/dist/List/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as useListContext, r as useItemDescriptionId, t as _sfc_main } from "../Item-
|
|
2
|
-
import { n as _sfc_main$1, t as _sfc_main$2 } from "../ListItem-
|
|
1
|
+
import { i as useListContext, r as useItemDescriptionId, t as _sfc_main } from "../Item-DWMIjN8n.js";
|
|
2
|
+
import { n as _sfc_main$1, t as _sfc_main$2 } from "../ListItem-BQXMu1Tb.js";
|
|
3
3
|
export { _sfc_main as Item, _sfc_main$1 as List, _sfc_main$2 as ListItem, useItemDescriptionId, useListContext };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as useListContext, n as listContextKey, t as _sfc_main$2 } from "./Item-
|
|
1
|
+
import { i as useListContext, n as listContextKey, t as _sfc_main$2 } from "./Item-DWMIjN8n.js";
|
|
2
2
|
import { computed, createBlock, createElementBlock, createElementVNode, createSlots, createTextVNode, defineComponent, mergeProps, openBlock, provide, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useSlots, useTemplateRef, withCtx } from "vue";
|
|
3
3
|
import "../styles/list.css";
|
|
4
4
|
//#region src/List/List.vue
|
package/dist/Markdown/index.d.ts
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { K as MarkdownAstRoot, Q as visitMarkdownNodes, U as MarkdownAstPhrasingContent } from "../protocol-DwUmpC5G.js";
|
|
2
|
+
import { C as MarkdownPlugin, D as applyMarkdownPlugins, E as applyInlinePlugins, O as defineMarkdownPlugin, S as MarkdownInlinePlugin, T as MarkdownTransformContext, _ as MarkdownLinkProps, a as _default, b as MarkdownSlots, c as MarkdownCitationStyle, d as MarkdownDensity, f as MarkdownDisplay, g as MarkdownInlineCodeProps, h as MarkdownImageProps, i as parseMarkdown, k as isMarkdownExtensionNode, l as MarkdownCodeProps, m as MarkdownHeadingProps, n as uniqueSlug, o as MarkdownAlign, p as MarkdownHeadingLevel, r as ParseMarkdownOptions, s as MarkdownAutolink, t as slugify, u as MarkdownComponents, v as MarkdownListProps, w as MarkdownPluginRenderContext, x as MarkdownSource, y as MarkdownProps } from "../index-C-tFz2Yx.js";
|
|
3
|
+
import { a as ParseOptions, c as parseInlineAst, d as parseMarkdownIncremental, f as BlockNode, m as InlineNode, o as createIncrementalState, s as parseInline, u as parseMarkdownAst, y as SourceRange } from "../publicParser-B6XMcsB2.js";
|
|
4
|
+
import { t as decodeMarkdownCharacterReferences } from "../index-BkUkm6Al.js";
|
|
5
|
+
export { type BlockNode, type InlineNode, _default as Markdown, type MarkdownAlign, type MarkdownAstPhrasingContent, type MarkdownAstRoot, type MarkdownAutolink, type MarkdownCitationStyle, type MarkdownCodeProps, type MarkdownComponents, type MarkdownDensity, type MarkdownDisplay, type MarkdownHeadingLevel, type MarkdownHeadingProps, type MarkdownImageProps, type MarkdownInlineCodeProps, type MarkdownInlinePlugin, type MarkdownLinkProps, type MarkdownListProps, type MarkdownPlugin, type MarkdownPluginRenderContext, type MarkdownProps, type MarkdownSlots, type MarkdownSource, type MarkdownTransformContext, type ParseMarkdownOptions, type ParseOptions, type SourceRange, applyInlinePlugins, applyMarkdownPlugins, createIncrementalState, decodeMarkdownCharacterReferences, defineMarkdownPlugin, isMarkdownExtensionNode, parseInline, parseInlineAst, parseMarkdown, parseMarkdownAst, parseMarkdownIncremental, slugify, uniqueSlug, visitMarkdownNodes };
|
package/dist/Markdown/index.js
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
|
|
1
|
+
import { a as parseMarkdownAst, c as decodeMarkdownCharacterReferences, d as parseMarkdown, g as isMarkdownExtensionNode, n as parseInline, o as parseMarkdownIncremental, r as parseInlineAst, t as createIncrementalState } from "../publicParser-DWUMCx7j.js";
|
|
2
|
+
import { a as visitMarkdownNodes, i as defineMarkdownPlugin, n as applyInlinePlugins, r as applyMarkdownPlugins, t as _sfc_main } from "../Markdown-EIBrwQrb.js";
|
|
3
|
+
import { n as uniqueSlug, t as slugify } from "../slug-DAK6hdbr.js";
|
|
4
|
+
export { _sfc_main as Markdown, applyInlinePlugins, applyMarkdownPlugins, createIncrementalState, decodeMarkdownCharacterReferences, defineMarkdownPlugin, isMarkdownExtensionNode, parseInline, parseInlineAst, parseMarkdown, parseMarkdownAst, parseMarkdownIncremental, slugify, uniqueSlug, visitMarkdownNodes };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { A as MarkdownAstExtensionNode, B as MarkdownAstNodeBase, D as MarkdownAstCitation, E as MarkdownAstBreak, F as MarkdownAstLink, G as MarkdownAstPosition, H as MarkdownAstParagraph, I as MarkdownAstList, J as MarkdownAstTableCell, K as MarkdownAstRoot, L as MarkdownAstListItem, M as MarkdownAstImage, N as MarkdownAstInlineCode, O as MarkdownAstCode, P as MarkdownAstInlineMath, R as MarkdownAstMath, T as MarkdownAstBlockquote, U as MarkdownAstPhrasingContent, V as MarkdownAstNodeMap, W as MarkdownAstPoint, X as MarkdownAstText, Y as MarkdownAstTableRow, Z as MarkdownAstThematicBreak, j as MarkdownAstHeading, k as MarkdownAstDataValue, q as MarkdownAstTable, w as MarkdownAstBlockContent, z as MarkdownAstNode } from "../../protocol-DwUmpC5G.js";
|
|
2
|
+
import { _ as MathBlockNode, a as ParseOptions, b as TableAlignment, c as parseInlineAst, d as parseMarkdownIncremental, f as BlockNode, g as ListItemNode, h as InlineNodeWithMath, i as MathParseOptions, l as parseMarkdown, m as InlineNode, n as IncrementalParseOptions, o as createIncrementalState, p as BlockNodeWithMath, r as IncrementalState, s as parseInline, t as IncrementalMathParseOptions, u as parseMarkdownAst, v as MathInlineNode, x as TableCellNode, y as SourceRange } from "../../publicParser-B6XMcsB2.js";
|
|
3
|
+
import { t as decodeMarkdownCharacterReferences } from "../../index-BkUkm6Al.js";
|
|
4
|
+
export { type BlockNode, type BlockNodeWithMath, type IncrementalMathParseOptions, type IncrementalParseOptions, type IncrementalState as IncrementalParseState, type InlineNode, type InlineNodeWithMath, type ListItemNode, type MarkdownAstBlockContent, type MarkdownAstBlockquote, type MarkdownAstBreak, type MarkdownAstCitation, type MarkdownAstCode, type MarkdownAstDataValue, type MarkdownAstExtensionNode, type MarkdownAstHeading, type MarkdownAstImage, type MarkdownAstInlineCode, type MarkdownAstInlineMath, type MarkdownAstLink, type MarkdownAstList, type MarkdownAstListItem, type MarkdownAstMath, type MarkdownAstNode, type MarkdownAstNodeBase, type MarkdownAstNodeMap, type MarkdownAstParagraph, type MarkdownAstPhrasingContent, type MarkdownAstPoint, type MarkdownAstPosition, type MarkdownAstRoot, type MarkdownAstTable, type MarkdownAstTableCell, type MarkdownAstTableRow, type MarkdownAstText, type MarkdownAstThematicBreak, type MathBlockNode, type MathInlineNode, type MathParseOptions, type ParseOptions, type SourceRange, type TableAlignment, type TableCellNode, createIncrementalState, decodeMarkdownCharacterReferences, parseInline, parseInlineAst, parseMarkdown, parseMarkdownAst, parseMarkdownIncremental };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as parseMarkdownAst, c as decodeMarkdownCharacterReferences, i as parseMarkdown, n as parseInline, o as parseMarkdownIncremental, r as parseInlineAst, t as createIncrementalState } from "../../publicParser-DWUMCx7j.js";
|
|
2
|
+
export { createIncrementalState, decodeMarkdownCharacterReferences, parseInline, parseInlineAst, parseMarkdown, parseMarkdownAst, parseMarkdownIncremental };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { C as isMarkdownSourceLinesPlugin, K as MarkdownAstRoot, S as isMarkdownPluginEntry, _ as MarkdownTransformPluginDefinition, a as MarkdownNodeOf, b as isMarkdownExtensionNode, c as MarkdownPluginDefinition, d as MarkdownSyntaxContribution, f as MarkdownSyntaxPluginDefinition, g as MarkdownTransformContext, h as MarkdownTransform, i as MarkdownExtensionsOf, l as MarkdownPluginEntry, m as MarkdownTokenizerInput, n as MarkdownExtensionRenderer, o as MarkdownPluginCapabilities, p as MarkdownTokenizeResult, r as MarkdownExtensionRenderers, s as MarkdownPluginData, t as MarkdownExtensionNode, u as MarkdownSyntaxCapability, v as createMarkdownPlugin, x as isMarkdownPluginData, y as getMarkdownPluginCapabilities } from "../../protocol-DwUmpC5G.js";
|
|
2
|
+
//#region src/Markdown/plugin-protocol/frontmatter.d.ts
|
|
3
|
+
type FieldMap = Readonly<Record<string, string>>;
|
|
4
|
+
interface MarkdownFrontmatterOptions<Metadata extends MarkdownPluginData> {
|
|
5
|
+
/** Stable plugin and metadata namespace. */
|
|
6
|
+
readonly name: string;
|
|
7
|
+
/** Converts validated key/value fields into typed document metadata. */
|
|
8
|
+
readonly parse: (fields: FieldMap) => Metadata;
|
|
9
|
+
}
|
|
10
|
+
type MarkdownFrontmatterParseResult<Metadata extends MarkdownPluginData> = {
|
|
11
|
+
readonly status: 'none';
|
|
12
|
+
} | {
|
|
13
|
+
readonly status: 'defer';
|
|
14
|
+
} | {
|
|
15
|
+
readonly status: 'match';
|
|
16
|
+
readonly contentStart: number;
|
|
17
|
+
readonly metadata: Metadata;
|
|
18
|
+
};
|
|
19
|
+
interface MarkdownFrontmatter<Metadata extends MarkdownPluginData> {
|
|
20
|
+
readonly plugin: MarkdownPluginEntry<never>;
|
|
21
|
+
parse: (source: string, isFinal?: boolean) => MarkdownFrontmatterParseResult<Metadata>;
|
|
22
|
+
getMetadata: (document: MarkdownAstRoot<MarkdownExtensionNode>) => Metadata | undefined;
|
|
23
|
+
}
|
|
24
|
+
export declare function createMarkdownFrontmatter<Metadata extends MarkdownPluginData>(options: MarkdownFrontmatterOptions<Metadata>): MarkdownFrontmatter<Metadata>;
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/Markdown/plugin-protocol/sourceLines.d.ts
|
|
27
|
+
/**
|
|
28
|
+
* Records the 1-based source lines of every block the renderer stamps.
|
|
29
|
+
* Built-in blocks get `data-source-line` and `data-source-line-end`.
|
|
30
|
+
* `components` replacements get a `sourceLines` prop instead.
|
|
31
|
+
* Without this plugin, no line attributes are written.
|
|
32
|
+
*/
|
|
33
|
+
export declare const markdownSourceLinesPlugin: MarkdownPluginEntry<never>;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { type MarkdownExtensionNode, type MarkdownExtensionRenderer, type MarkdownExtensionRenderers, type MarkdownExtensionsOf, type MarkdownFrontmatter, type MarkdownFrontmatterOptions, type MarkdownFrontmatterParseResult, type MarkdownNodeOf, type MarkdownPluginCapabilities, type MarkdownPluginData, type MarkdownPluginDefinition, type MarkdownPluginEntry, type MarkdownSyntaxCapability, type MarkdownSyntaxContribution, type MarkdownSyntaxPluginDefinition, type MarkdownTokenizeResult, type MarkdownTokenizerInput, type MarkdownTransform, type MarkdownTransformContext, type MarkdownTransformPluginDefinition, createMarkdownPlugin, getMarkdownPluginCapabilities, isMarkdownExtensionNode, isMarkdownPluginData, isMarkdownPluginEntry, isMarkdownSourceLinesPlugin };
|