@astryx-vue/core 0.3.0 → 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/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-RAVA_cT1.js → AlertDialog-C2inDZWG.js} +5 -5
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-0wTvOo3H.js → AppShell-CumzH-8z.js} +3 -3
- 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-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-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/Carousel/index.js +1 -1
- package/dist/{Carousel-CA8zpD9v.js → Carousel-DXC22UWq.js} +4 -4
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-Bmna9EOA.js → Chat-BdJW6IX5.js} +147 -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-DUsC-j03.js → ClickableCard-ChAfiw9T.js} +9 -6
- package/dist/Code/index.js +3 -3
- package/dist/{Code-XnPuGxey.js → Code-Bg7GBdxy.js} +2 -1
- package/dist/{CodeBlock-D0BFubut.js → CodeBlock-Caaflp7C.js} +3 -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-YHsUNg3V.js → CommandPalette-C_MClfAg.js} +143 -63
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-DWLdKPGI.js → ComplexSelector-BeVQaqRf.js} +85 -20
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-Bq9b3Ti5.js → ContextMenu-C6hPYvYz.js} +297 -179
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-DT518j5E.js → DateInput-BjLdmYor.js} +567 -76
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-Bqi5tlIA.js → DateRangeInput-Br3wVEfD.js} +85 -20
- 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-CoOQVlRp.js → DropdownMenu-BdGmQVb1.js} +85 -57
- package/dist/{DropdownMenu-DEb2dSSP.js → DropdownMenu-BzQrNV9C.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--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-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-D8wyPgMK.js} +8 -6
- 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-CvtN7HnF.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-DxGz0xKA.js → MobileNavToggle-pdoJFZHx.js} +52 -17
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-Dlb7MLlW.js → MoreMenu-CFNqSRev.js} +72 -59
- 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-DqwNQFRp.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-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-BoAMdFaT.js} +774 -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-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-CPISLzp7.js +1049 -0
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-BF8mYDxl.js → SideNav-CN2QeAtY.js} +51 -37
- 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-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.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-fecqnm7P.js → Table-BcrrylMX.js} +726 -452
- 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-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-CoHDGmsP.js → TimeField-CpAgja9D.js} +297 -40
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-D2k3Ux3p.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-B5C_qY7t.js → Tokenizer-Ci3E5bvP.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-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-JP9RT87x.js → Typeahead-D4JjvjK4.js} +123 -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-BkjSF265.d.ts → index-BEZ4ezJk.d.ts} +3 -3
- package/dist/{index-DeQwYJbg.d.ts → index-BNaRK-s5.d.ts} +10 -1
- package/dist/{index-0QGtSf3r.d.ts → index-BO9TY87G.d.ts} +3 -2
- package/dist/{index-IBAInumL.d.ts → index-BQEJj72c.d.ts} +23 -10
- 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-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-xrzJC4wm.d.ts → index-CJ6ajsUC.d.ts} +1 -1
- package/dist/{index-B9e52paP.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-gW0HW02U.d.ts → index-COxy6LEW.d.ts} +1 -1
- package/dist/{index-B4OOtNP8.d.ts → index-CPtDjmcX.d.ts} +3 -3
- 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-BVKivP59.d.ts → index-CTjkJP4x.d.ts} +32 -3
- package/dist/{index-COgrQZIL.d.ts → index-CdvmnNMH.d.ts} +1 -1
- package/dist/{index-GI9xIV9l.d.ts → index-CikMzeab.d.ts} +2 -2
- package/dist/{index-DUaLJO7l.d.ts → index-CpNlPLBF.d.ts} +172 -126
- package/dist/{index-yT1yiiww.d.ts → index-Cs1xsHKi.d.ts} +24 -12
- package/dist/{index-Cyb9Du5Z.d.ts → index-CtTGt6Dv.d.ts} +1 -1
- package/dist/{index-Byar3h1e.d.ts → index-D05JGsT3.d.ts} +6 -3
- package/dist/{index-B3Fomy15.d.ts → index-D0_HsuC3.d.ts} +3 -3
- 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-C2nbK2AA.d.ts → index-DLAG3m9W.d.ts} +13 -3
- package/dist/{index-DVmgNb78.d.ts → index-DRJZ-v1E.d.ts} +4 -4
- package/dist/{index-CL1T2j4y.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-D41_xqjs.d.ts → index-Dr4b_oji.d.ts} +20 -13
- package/dist/{index-CqE4Bf3Q.d.ts → index-Ds201-d2.d.ts} +16 -2
- package/dist/{index-DIXAzTKL.d.ts → index-DxxudRgB.d.ts} +1 -1
- package/dist/{index-B42oE_F-.d.ts → index-IfsSCj8J.d.ts} +18 -5
- 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-BhpAUzUr.d.ts → index-unAZVFGz.d.ts} +2 -2
- package/dist/index.d.ts +80 -74
- package/dist/index.js +149 -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-CwyibrRB.d.ts → types-C5GQ2KCK.d.ts} +23 -3
- 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/{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 +18 -2
- 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/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-DIm4figq.js +0 -141
- package/dist/ButtonGroup-ySQWanDP.js +0 -125
- package/dist/DateTimeInput-A7m2O3bg.js +0 -268
- 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/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
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as useImperativeAlertDialog } from "../AlertDialog-
|
|
1
|
+
import { n as _sfc_main, t as useImperativeAlertDialog } from "../AlertDialog-C2inDZWG.js";
|
|
2
2
|
export { _sfc_main as AlertDialog, useImperativeAlertDialog };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./Button-
|
|
1
|
+
import { t as _sfc_main$1 } from "./Button-ONOoHdkg.js";
|
|
2
2
|
import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
|
|
3
|
-
import { t as _sfc_main$2 } from "./Dialog-
|
|
4
|
-
import { t as _sfc_main$3 } from "./Heading-
|
|
3
|
+
import { t as _sfc_main$2 } from "./Dialog-fhyxB00e.js";
|
|
4
|
+
import { t as _sfc_main$3 } from "./Heading-BzBunfN7.js";
|
|
5
5
|
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
6
|
-
import { t as _sfc_main$4 } from "./Stack-
|
|
7
|
-
import { t as _sfc_main$5 } from "./Text-
|
|
6
|
+
import { t as _sfc_main$4 } from "./Stack-Bp-XN9J4.js";
|
|
7
|
+
import { t as _sfc_main$5 } from "./Text-CmTOgYXf.js";
|
|
8
8
|
import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, h, mergeProps, normalizeClass, openBlock, provide, ref, renderList, renderSlot, shallowRef, toDisplayString, unref, useId, useTemplateRef, withCtx } from "vue";
|
|
9
9
|
import "../styles/alert-dialog.css";
|
|
10
10
|
//#region src/AlertDialog/context.ts
|
package/dist/AppShell/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../AppShell-
|
|
1
|
+
import { t as _sfc_main } from "../AppShell-CumzH-8z.js";
|
|
2
2
|
export { _sfc_main as AppShell };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as appShellMobileKey } from "./useAppShellMobile-DTsyuAJ4.js";
|
|
2
|
-
import {
|
|
3
|
-
import { a as _sfc_main$2, n as _sfc_main$4, r as _sfc_main$3, t as _sfc_main$5 } from "./LayoutPanel-
|
|
4
|
-
import { n as _sfc_main$7, t as _sfc_main$6 } from "./MobileNavToggle-
|
|
2
|
+
import { s as useAstryxMessages } from "./context-DWfi56sq.js";
|
|
3
|
+
import { a as _sfc_main$2, n as _sfc_main$4, r as _sfc_main$3, t as _sfc_main$5 } from "./LayoutPanel-zM5vjrKS.js";
|
|
4
|
+
import { n as _sfc_main$7, t as _sfc_main$6 } from "./MobileNavToggle-pdoJFZHx.js";
|
|
5
5
|
import { n as sideNavRenderModeKey } from "./context-BjNya0v8.js";
|
|
6
6
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, mergeModels, mergeProps, openBlock, provide, reactive, ref, renderSlot, toDisplayString, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, watch, withCtx } from "vue";
|
|
7
7
|
import "../styles/app-shell.css";
|
package/dist/Avatar/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../Avatar-
|
|
1
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../Avatar-BW0TE8t9.js";
|
|
2
2
|
export { _sfc_main as Avatar, _sfc_main$1 as AvatarStatusDot };
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
|
|
2
|
+
import { n as isSafeUrl } from "./safeUrl-CsvfcZ9m.js";
|
|
1
3
|
import { n as useLinkComponent } from "./context-C_peZbXf.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
4
|
+
import { n as useDevWarning } from "./useDevWarning-DznOpOHT.js";
|
|
5
|
+
import { s as useAstryxMessages } from "./context-DWfi56sq.js";
|
|
6
|
+
import { t as _sfc_main$2 } from "./Tooltip-sAM8i1eO.js";
|
|
7
|
+
import { a as resolveStatusDotVariant, i as resolveStatusDotMetrics, n as getInitials, o as AvatarGroupContext, r as resolveSize, t as composeAccessibleName } from "./utils-ClVseK2w.js";
|
|
5
8
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, inject, mergeProps, normalizeStyle, onUnmounted, openBlock, provide, ref, renderSlot, resolveDynamicComponent, toDisplayString, toRaw, unref, useAttrs, useSlots, watch, withCtx } from "vue";
|
|
6
9
|
import "../styles/avatar.css";
|
|
7
10
|
//#region src/Avatar/context.ts
|
|
@@ -11,7 +14,7 @@ import "../styles/avatar.css";
|
|
|
11
14
|
*
|
|
12
15
|
* 没有住在任何头像里时取默认的 36,和默认尺寸 `md` 一致。
|
|
13
16
|
*/
|
|
14
|
-
const AvatarSizeContext =
|
|
17
|
+
const AvatarSizeContext = defineLayerScopedKey("AvatarSizeContext", null);
|
|
15
18
|
/**
|
|
16
19
|
* 状态元素往外层头像报自己读屏名字的入口。
|
|
17
20
|
*
|
|
@@ -69,7 +72,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
69
72
|
const attrs = useAttrs();
|
|
70
73
|
const erroredSrc = ref(void 0);
|
|
71
74
|
const erroredFallbackSrc = ref(void 0);
|
|
72
|
-
const avatarGroup =
|
|
75
|
+
const avatarGroup = readLayerScoped(AvatarGroupContext);
|
|
73
76
|
const resolvedSize = computed(() => avatarGroup?.size.value ?? props.size);
|
|
74
77
|
const resolvedShape = computed(() => avatarGroup?.shape.value ?? props.shape);
|
|
75
78
|
const numericSize = computed(() => resolveSize(resolvedSize.value));
|
|
@@ -78,13 +81,6 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
78
81
|
/** 状态插槽里的圆点把读屏名字写在这里,下面会拼进头像自己的名字。 */
|
|
79
82
|
const statusLabel = ref(void 0);
|
|
80
83
|
provide(AvatarStatusLabelContext, statusLabel);
|
|
81
|
-
const groupStyle = computed(() => {
|
|
82
|
-
if (!avatarGroup) return {};
|
|
83
|
-
return {
|
|
84
|
-
marginInlineStart: `${-avatarGroup.overlap.value}px`,
|
|
85
|
-
borderWidth: "2px"
|
|
86
|
-
};
|
|
87
|
-
});
|
|
88
84
|
const rootStyle = computed(() => ({
|
|
89
85
|
width: `${numericSize.value}px`,
|
|
90
86
|
height: `${numericSize.value}px`
|
|
@@ -97,18 +93,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
97
93
|
const meaningfulAlt = computed(() => {
|
|
98
94
|
return typeof props.alt === "string" && props.alt.trim() !== "" ? props.alt.trim() : void 0;
|
|
99
95
|
});
|
|
100
|
-
const initials = computed(() =>
|
|
101
|
-
if (!meaningfulName.value) return "";
|
|
102
|
-
const words = meaningfulName.value.split(/\s+/);
|
|
103
|
-
const first = words.at(0);
|
|
104
|
-
const last = words.length > 1 ? words.at(-1) : void 0;
|
|
105
|
-
const initial = (word) => {
|
|
106
|
-
if (!word) return "";
|
|
107
|
-
const match = word.match(/[\p{L}\p{N}]/u);
|
|
108
|
-
return match ? match[0].toUpperCase() : "";
|
|
109
|
-
};
|
|
110
|
-
return `${initial(first)}${initial(last)}`;
|
|
111
|
-
});
|
|
96
|
+
const initials = computed(() => meaningfulName.value ? getInitials(meaningfulName.value) : "");
|
|
112
97
|
const showInitials = computed(() => !showImage.value && !showFallbackImage.value && initials.value !== "");
|
|
113
98
|
const showIcon = computed(() => !showImage.value && !showFallbackImage.value && initials.value === "");
|
|
114
99
|
const messages = useAstryxMessages();
|
|
@@ -117,16 +102,26 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
117
102
|
const status = typeof label === "string" && label.trim() !== "" ? label.trim() : void 0;
|
|
118
103
|
return composeAccessibleName(meaningfulAlt.value || meaningfulName.value, status, messages.value.nav.avatarNameWithStatus);
|
|
119
104
|
});
|
|
105
|
+
const safeHref = computed(() => {
|
|
106
|
+
const href = props.href;
|
|
107
|
+
return href != null && href !== "" && isSafeUrl(href) ? href : void 0;
|
|
108
|
+
});
|
|
120
109
|
const isLink = computed(() => props.href != null && props.href !== "");
|
|
121
110
|
const isButton = computed(() => !isLink.value && attrs.onClick != null);
|
|
122
111
|
const isInteractive = computed(() => isLink.value || isButton.value);
|
|
123
|
-
/** 自己的 `as` 优先,其次是 LinkProvider
|
|
112
|
+
/** 自己的 `as` 优先,其次是 LinkProvider 给的默认链接组件。危险协议不用它。 */
|
|
124
113
|
const customLink = computed(() => props.as ?? linkComponent.value);
|
|
125
|
-
const isCustomLink = computed(() =>
|
|
114
|
+
const isCustomLink = computed(() => safeHref.value != null && customLink.value != null);
|
|
126
115
|
const rootTag = computed(() => {
|
|
127
|
-
if (isLink.value) return
|
|
116
|
+
if (isLink.value) return isCustomLink.value ? toRaw(customLink.value) : "a";
|
|
128
117
|
return isButton.value ? "button" : "span";
|
|
129
118
|
});
|
|
119
|
+
const consumerHasName = computed(() => {
|
|
120
|
+
const label = attrs["aria-label"];
|
|
121
|
+
const labelledBy = attrs["aria-labelledby"];
|
|
122
|
+
return typeof label === "string" && label.trim() !== "" || typeof labelledBy === "string" && labelledBy.trim() !== "";
|
|
123
|
+
});
|
|
124
|
+
useDevWarning("Avatar", "an interactive avatar (with `href` or `onClick`) needs a meaningful accessible name. Pass `alt` or `name`.", () => isInteractive.value && meaningfulAlt.value == null && meaningfulName.value == null && !consumerHasName.value);
|
|
130
125
|
const linkRel = computed(() => {
|
|
131
126
|
const parts = new Set((props.rel ?? "").split(/\s+/).filter(Boolean));
|
|
132
127
|
if (props.target === "_blank") {
|
|
@@ -160,10 +155,10 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
160
155
|
...attrs
|
|
161
156
|
};
|
|
162
157
|
if (isLink.value) {
|
|
163
|
-
bindings.href =
|
|
158
|
+
bindings.href = safeHref.value;
|
|
164
159
|
bindings.target = props.target;
|
|
165
160
|
bindings.rel = linkRel.value;
|
|
166
|
-
if (isCustomLink.value) bindings.to =
|
|
161
|
+
if (isCustomLink.value) bindings.to = safeHref.value;
|
|
167
162
|
}
|
|
168
163
|
if (isButton.value) bindings.type = attrs.type ?? "button";
|
|
169
164
|
if (!isInteractive.value && tooltipText.value != null && bindings.tabindex == null && bindings.tabIndex == null) bindings.tabindex = 0;
|
|
@@ -186,7 +181,10 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
186
181
|
"astryx-avatar--group-item": unref(avatarGroup),
|
|
187
182
|
"astryx-avatar--interactive": isInteractive.value
|
|
188
183
|
}]],
|
|
189
|
-
style:
|
|
184
|
+
style: rootStyle.value,
|
|
185
|
+
"data-size": resolvedSize.value,
|
|
186
|
+
"data-shape": resolvedShape.value,
|
|
187
|
+
"data-avatar-item": isInteractive.value ? "" : void 0
|
|
190
188
|
}, rootBindings.value), {
|
|
191
189
|
default: withCtx(() => [createElementVNode("span", _hoisted_1$1, [showImage.value ? (openBlock(), createElementBlock("img", {
|
|
192
190
|
key: 0,
|
|
@@ -214,7 +212,13 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
214
212
|
"aria-hidden": "true"
|
|
215
213
|
}, [createElementVNode("path", { d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" })], -1))])], 4)) : createCommentVNode("v-if", true)]), _ctx.$slots.status ? (openBlock(), createElementBlock("span", _hoisted_4$1, [renderSlot(_ctx.$slots, "status")])) : createCommentVNode("v-if", true)]),
|
|
216
214
|
_: 3
|
|
217
|
-
}, 16, [
|
|
215
|
+
}, 16, [
|
|
216
|
+
"class",
|
|
217
|
+
"style",
|
|
218
|
+
"data-size",
|
|
219
|
+
"data-shape",
|
|
220
|
+
"data-avatar-item"
|
|
221
|
+
]))]),
|
|
218
222
|
_: 3
|
|
219
223
|
}, 8, ["content"])) : (openBlock(), createBlock(resolveDynamicComponent(rootTag.value), mergeProps({
|
|
220
224
|
key: 1,
|
|
@@ -222,7 +226,10 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
222
226
|
"astryx-avatar--group-item": unref(avatarGroup),
|
|
223
227
|
"astryx-avatar--interactive": isInteractive.value
|
|
224
228
|
}]],
|
|
225
|
-
style:
|
|
229
|
+
style: rootStyle.value,
|
|
230
|
+
"data-size": resolvedSize.value,
|
|
231
|
+
"data-shape": resolvedShape.value,
|
|
232
|
+
"data-avatar-item": isInteractive.value ? "" : void 0
|
|
226
233
|
}, rootBindings.value), {
|
|
227
234
|
default: withCtx(() => [createElementVNode("span", _hoisted_5, [showImage.value ? (openBlock(), createElementBlock("img", {
|
|
228
235
|
key: 0,
|
|
@@ -250,7 +257,13 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
250
257
|
"aria-hidden": "true"
|
|
251
258
|
}, [createElementVNode("path", { d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" })], -1))])], 4)) : createCommentVNode("v-if", true)]), _ctx.$slots.status ? (openBlock(), createElementBlock("span", _hoisted_8, [renderSlot(_ctx.$slots, "status")])) : createCommentVNode("v-if", true)]),
|
|
252
259
|
_: 3
|
|
253
|
-
}, 16, [
|
|
260
|
+
}, 16, [
|
|
261
|
+
"class",
|
|
262
|
+
"style",
|
|
263
|
+
"data-size",
|
|
264
|
+
"data-shape",
|
|
265
|
+
"data-avatar-item"
|
|
266
|
+
]));
|
|
254
267
|
};
|
|
255
268
|
}
|
|
256
269
|
});
|
|
@@ -292,7 +305,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
292
305
|
const props = __props;
|
|
293
306
|
const slots = useSlots();
|
|
294
307
|
/** 头像没给尺寸时按默认的 `md`(36px)算,单独放着用也是这个尺寸。 */
|
|
295
|
-
const avatarSize =
|
|
308
|
+
const avatarSize = readLayerScoped(AvatarSizeContext);
|
|
296
309
|
const statusLabel = inject(AvatarStatusLabelContext, null);
|
|
297
310
|
/**
|
|
298
311
|
* 把状态名字交给外层头像,由它拼进自己的无障碍名称(`Jane Doe, Online`)。
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as AvatarGroupOverflowSlots, i as AvatarGroupOverflowProps, n as _default, o as AvatarGroupProps, r as AvatarGroupOverflowEmits, t as _default$1 } from "../index-
|
|
1
|
+
import { a as AvatarGroupOverflowSlots, i as AvatarGroupOverflowProps, n as _default, o as AvatarGroupProps, r as AvatarGroupOverflowEmits, t as _default$1 } from "../index-CpNlPLBF.js";
|
|
2
2
|
export { _default as AvatarGroup, _default$1 as AvatarGroupOverflow, type AvatarGroupOverflowEmits, type AvatarGroupOverflowProps, type AvatarGroupOverflowSlots, type AvatarGroupProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../AvatarGroup-
|
|
1
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../AvatarGroup-DLC_FFR5.js";
|
|
2
2
|
export { _sfc_main as AvatarGroup, _sfc_main$1 as AvatarGroupOverflow };
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { t as usePressFeedback } from "./usePressFeedback-BJCpjEpv.js";
|
|
2
|
+
import { n as readLayerScoped } from "./scopedProvide-C-Df7c15.js";
|
|
3
|
+
import { t as _sfc_main$2 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
4
|
+
import { s as useAstryxMessages } from "./context-DWfi56sq.js";
|
|
5
|
+
import { t as useListFocus } from "./useListFocus-ChxLg0b4.js";
|
|
6
|
+
import { o as AvatarGroupContext, r as resolveSize } from "./utils-ClVseK2w.js";
|
|
7
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createTextVNode, defineComponent, getCurrentInstance, mergeProps, normalizeStyle, onMounted, onUpdated, openBlock, provide, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useId, withCtx } from "vue";
|
|
4
8
|
import "../styles/avatar-group.css";
|
|
5
9
|
//#region src/AvatarGroup/AvatarGroup.vue
|
|
6
|
-
const _hoisted_1 = [
|
|
10
|
+
const _hoisted_1 = [
|
|
11
|
+
"aria-label",
|
|
12
|
+
"aria-describedby",
|
|
13
|
+
"data-size",
|
|
14
|
+
"data-shape"
|
|
15
|
+
];
|
|
7
16
|
const OVERLAP_RATIO = .25;
|
|
8
17
|
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
9
18
|
__name: "AvatarGroup",
|
|
@@ -16,17 +25,45 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
16
25
|
const props = __props;
|
|
17
26
|
const numericSize = computed(() => resolveSize(props.size));
|
|
18
27
|
const overlap = computed(() => Math.round(numericSize.value * OVERLAP_RATIO));
|
|
28
|
+
const messages = useAstryxMessages();
|
|
29
|
+
const hintId = `astryx-avatar-group-hint-${useId()}`;
|
|
30
|
+
const hasInteractive = ref(false);
|
|
19
31
|
provide(AvatarGroupContext, {
|
|
20
32
|
size: computed(() => props.size),
|
|
21
33
|
shape: computed(() => props.shape),
|
|
22
34
|
overlap
|
|
23
35
|
});
|
|
36
|
+
const { listRef, handleKeyDown, handleFocus } = useListFocus({
|
|
37
|
+
itemSelector: "[data-avatar-item]",
|
|
38
|
+
orientation: "horizontal",
|
|
39
|
+
hasRovingTabIndex: true
|
|
40
|
+
});
|
|
41
|
+
const rootStyle = computed(() => ({ "--astryx-avatar-group-overlap": `${-overlap.value}px` }));
|
|
42
|
+
function syncInteractive() {
|
|
43
|
+
hasInteractive.value = listRef.value?.querySelector("[data-avatar-item]") != null;
|
|
44
|
+
}
|
|
45
|
+
onMounted(syncInteractive);
|
|
46
|
+
onUpdated(syncInteractive);
|
|
24
47
|
return (_ctx, _cache) => {
|
|
25
48
|
return openBlock(), createElementBlock("div", {
|
|
49
|
+
ref_key: "listRef",
|
|
50
|
+
ref: listRef,
|
|
26
51
|
class: "astryx-avatar-group",
|
|
27
52
|
role: "group",
|
|
28
|
-
"aria-label": __props.label
|
|
29
|
-
|
|
53
|
+
"aria-label": __props.label,
|
|
54
|
+
"aria-describedby": hasInteractive.value ? hintId : void 0,
|
|
55
|
+
"data-size": __props.size,
|
|
56
|
+
"data-shape": __props.shape,
|
|
57
|
+
style: normalizeStyle(rootStyle.value),
|
|
58
|
+
onFocusin: _cache[0] || (_cache[0] = (...args) => unref(handleFocus) && unref(handleFocus)(...args)),
|
|
59
|
+
onKeydown: _cache[1] || (_cache[1] = ($event) => hasInteractive.value ? unref(handleKeyDown)($event) : void 0)
|
|
60
|
+
}, [renderSlot(_ctx.$slots, "default"), hasInteractive.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
61
|
+
key: 0,
|
|
62
|
+
id: hintId
|
|
63
|
+
}, {
|
|
64
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(messages).avatarGroup.keyboardHint), 1)]),
|
|
65
|
+
_: 1
|
|
66
|
+
})) : createCommentVNode("v-if", true)], 44, _hoisted_1);
|
|
30
67
|
};
|
|
31
68
|
}
|
|
32
69
|
});
|
|
@@ -47,7 +84,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
47
84
|
const emit = __emit;
|
|
48
85
|
const instance = getCurrentInstance();
|
|
49
86
|
const messages = useAstryxMessages();
|
|
50
|
-
const
|
|
87
|
+
const press = usePressFeedback();
|
|
88
|
+
const avatarGroup = readLayerScoped(AvatarGroupContext);
|
|
51
89
|
const size = computed(() => avatarGroup?.size.value ?? "md");
|
|
52
90
|
const shape = computed(() => avatarGroup?.shape.value ?? "circle");
|
|
53
91
|
const numericSize = computed(() => resolveSize(size.value));
|
|
@@ -70,23 +108,29 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
70
108
|
const rootStyle = computed(() => ({
|
|
71
109
|
"minWidth": `${numericSize.value + 4}px`,
|
|
72
110
|
"height": `${numericSize.value + 4}px`,
|
|
73
|
-
"marginInlineStart": `${-(avatarGroup?.overlap.value ?? 0)}px`,
|
|
74
111
|
"--astryx-avatar-group-overflow-computed-font-size": `max(var(--astryx-text-supporting-size, 0.75rem), ${Math.round(numericSize.value * OVERFLOW_FONT_RATIO * 100) / 100}px)`
|
|
75
112
|
}));
|
|
113
|
+
const pressBindings = computed(() => isInteractive.value ? press.pressableProps : {});
|
|
76
114
|
return (_ctx, _cache) => {
|
|
77
|
-
return openBlock(), createBlock(resolveDynamicComponent(isInteractive.value ? "button" : "span"), {
|
|
78
|
-
class:
|
|
79
|
-
style:
|
|
115
|
+
return openBlock(), createBlock(resolveDynamicComponent(isInteractive.value ? "button" : "span"), mergeProps(pressBindings.value, {
|
|
116
|
+
class: ["astryx-avatar-group-overflow", [`astryx-avatar-group-overflow--${shape.value}`, { "astryx-avatar-group-overflow--interactive": isInteractive.value }]],
|
|
117
|
+
style: rootStyle.value,
|
|
118
|
+
"data-size": size.value,
|
|
119
|
+
"data-shape": shape.value,
|
|
120
|
+
"data-avatar-item": isInteractive.value ? "" : void 0,
|
|
80
121
|
type: isInteractive.value ? "button" : void 0,
|
|
81
122
|
"aria-label": accessibleName.value,
|
|
82
123
|
role: isInteractive.value ? void 0 : "img",
|
|
83
124
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("click", $event))
|
|
84
|
-
}, {
|
|
125
|
+
}), {
|
|
85
126
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(`+${safeCount.value}`), 1)])]),
|
|
86
127
|
_: 3
|
|
87
|
-
},
|
|
128
|
+
}, 16, [
|
|
88
129
|
"class",
|
|
89
130
|
"style",
|
|
131
|
+
"data-size",
|
|
132
|
+
"data-shape",
|
|
133
|
+
"data-avatar-item",
|
|
90
134
|
"type",
|
|
91
135
|
"aria-label",
|
|
92
136
|
"role"
|
package/dist/Banner/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ga as
|
|
1
|
+
import { Ga as _default, Ja as BannerProps, Ka as BannerContainer, Xa as BannerStatus, Ya as BannerSlots, qa as BannerEmits } from "../index-CpNlPLBF.js";
|
|
2
2
|
export { _default as Banner, type BannerContainer, type BannerEmits, type BannerProps, type BannerSlots, type BannerStatus };
|
package/dist/Banner/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Banner-
|
|
1
|
+
import { t as _sfc_main } from "../Banner-C5VAwo4D.js";
|
|
2
2
|
export { _sfc_main as Banner };
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { t as _sfc_main$1 } from "./FieldIcon--NTgW5IU.js";
|
|
2
|
-
import { t as _sfc_main$2 } from "./IconButton-
|
|
2
|
+
import { t as _sfc_main$2 } from "./IconButton-DI-XBbtV.js";
|
|
3
|
+
import { s as useAstryxMessages } from "./context-DWfi56sq.js";
|
|
4
|
+
import { t as isRenderable } from "./isRenderable-BnKHIqfd.js";
|
|
3
5
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, openBlock, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toRaw, useId, useModel, useSlots, useTemplateRef, watch, withCtx } from "vue";
|
|
4
6
|
import "../styles/banner.css";
|
|
5
7
|
import "../styles/field.css";
|
|
6
8
|
//#region src/Banner/Banner.vue
|
|
7
9
|
const _hoisted_1 = [
|
|
8
|
-
"role",
|
|
9
|
-
"data-status",
|
|
10
10
|
"data-container",
|
|
11
11
|
"data-elevation",
|
|
12
12
|
"data-expanded"
|
|
13
13
|
];
|
|
14
|
-
const _hoisted_2 =
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
|
|
14
|
+
const _hoisted_2 = [
|
|
15
|
+
"data-centered",
|
|
16
|
+
"data-container",
|
|
17
|
+
"data-status"
|
|
18
|
+
];
|
|
19
|
+
const _hoisted_3 = ["data-status"];
|
|
19
20
|
const _hoisted_4 = ["data-has-actions"];
|
|
20
21
|
const _hoisted_5 = {
|
|
21
22
|
key: 0,
|
|
@@ -26,6 +27,11 @@ const _hoisted_6 = {
|
|
|
26
27
|
class: "astryx-banner-actions"
|
|
27
28
|
};
|
|
28
29
|
const _hoisted_7 = ["data-expanded"];
|
|
30
|
+
const _hoisted_8 = [
|
|
31
|
+
"id",
|
|
32
|
+
"data-container",
|
|
33
|
+
"data-status"
|
|
34
|
+
];
|
|
29
35
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
30
36
|
name: "AstryxBanner",
|
|
31
37
|
__name: "Banner",
|
|
@@ -36,18 +42,15 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
36
42
|
icon: {},
|
|
37
43
|
isDismissable: { type: Boolean },
|
|
38
44
|
dismissLabel: {},
|
|
39
|
-
expandLabel: {
|
|
40
|
-
collapseLabel: {
|
|
45
|
+
expandLabel: {},
|
|
46
|
+
collapseLabel: {},
|
|
41
47
|
container: { default: "card" },
|
|
42
48
|
elevation: { default: "none" },
|
|
43
49
|
collapsible: {
|
|
44
50
|
type: Boolean,
|
|
45
51
|
default: true
|
|
46
52
|
},
|
|
47
|
-
defaultIsOpen: {
|
|
48
|
-
type: Boolean,
|
|
49
|
-
default: false
|
|
50
|
-
}
|
|
53
|
+
defaultIsOpen: { type: Boolean }
|
|
51
54
|
}, {
|
|
52
55
|
"isOpen": {
|
|
53
56
|
type: Boolean,
|
|
@@ -60,11 +63,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
60
63
|
const props = __props;
|
|
61
64
|
const emit = __emit;
|
|
62
65
|
const slots = useSlots();
|
|
66
|
+
const messages = useAstryxMessages();
|
|
63
67
|
const openModel = useModel(__props, "isOpen");
|
|
64
|
-
const localOpen = shallowRef(props.defaultIsOpen);
|
|
68
|
+
const localOpen = shallowRef(props.defaultIsOpen ?? false);
|
|
65
69
|
const dismissed = shallowRef(false);
|
|
66
70
|
const expanded = computed(() => !props.collapsible || (openModel.value ?? localOpen.value));
|
|
67
|
-
|
|
71
|
+
function hasContent() {
|
|
72
|
+
return isRenderable(slots.default?.());
|
|
73
|
+
}
|
|
68
74
|
const icon = computed(() => props.icon ? toRaw(props.icon) : void 0);
|
|
69
75
|
const root = useTemplateRef("root");
|
|
70
76
|
const content = useTemplateRef("content");
|
|
@@ -72,6 +78,22 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
72
78
|
const titleId = `astryx-banner-${useId()}`;
|
|
73
79
|
const contentId = `${titleId}-content`;
|
|
74
80
|
__expose({ element: computed(() => root.value ?? null) });
|
|
81
|
+
const knownStatuses = /* @__PURE__ */ new Set([
|
|
82
|
+
"info",
|
|
83
|
+
"warning",
|
|
84
|
+
"error",
|
|
85
|
+
"success"
|
|
86
|
+
]);
|
|
87
|
+
const visualStatus = computed(() => knownStatuses.has(props.status) ? props.status : void 0);
|
|
88
|
+
const expandText = computed(() => props.expandLabel ?? messages.value.banner.expand);
|
|
89
|
+
const collapseText = computed(() => props.collapseLabel ?? messages.value.banner.collapse);
|
|
90
|
+
const dismissTooltip = computed(() => props.dismissLabel ?? messages.value.banner.dismiss);
|
|
91
|
+
const dismissName = computed(() => {
|
|
92
|
+
if (props.dismissLabel) return props.dismissLabel;
|
|
93
|
+
return messages.value.banner.dismissTitled(messages.value.banner.dismiss, props.title);
|
|
94
|
+
});
|
|
95
|
+
const hasEnd = computed(() => !!slots.end);
|
|
96
|
+
const centered = computed(() => !props.description && !slots.description && (hasEnd.value || !!props.isDismissable));
|
|
75
97
|
let focusOrigin = null;
|
|
76
98
|
function remember(candidate) {
|
|
77
99
|
if (candidate instanceof HTMLElement && candidate !== root.value?.ownerDocument.body && !root.value?.contains(candidate)) focusOrigin = candidate;
|
|
@@ -100,35 +122,43 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
100
122
|
key: 0,
|
|
101
123
|
ref_key: "root",
|
|
102
124
|
ref: root,
|
|
103
|
-
class: "astryx-banner",
|
|
104
|
-
role: __props.status === "warning" || __props.status === "error" ? "alert" : "status",
|
|
105
|
-
"data-status": __props.status,
|
|
125
|
+
class: "astryx-banner-frame",
|
|
106
126
|
"data-container": __props.container,
|
|
107
127
|
"data-elevation": __props.elevation,
|
|
108
|
-
"data-expanded": hasContent
|
|
128
|
+
"data-expanded": hasContent() && expanded.value || void 0,
|
|
109
129
|
onFocusin: focusin,
|
|
110
130
|
onPointerdownCapture: pointerdown
|
|
111
|
-
}, [createElementVNode("div",
|
|
112
|
-
|
|
131
|
+
}, [createElementVNode("div", {
|
|
132
|
+
class: "astryx-banner astryx-banner-header",
|
|
133
|
+
"data-centered": centered.value || void 0,
|
|
134
|
+
"data-container": __props.container,
|
|
135
|
+
"data-status": visualStatus.value
|
|
136
|
+
}, [
|
|
137
|
+
createElementVNode("span", {
|
|
138
|
+
class: "astryx-banner-icon",
|
|
139
|
+
"data-status": visualStatus.value,
|
|
140
|
+
"aria-hidden": "true"
|
|
141
|
+
}, [renderSlot(_ctx.$slots, "icon", {}, () => [icon.value ? (openBlock(), createBlock(resolveDynamicComponent(icon.value), { key: 0 })) : visualStatus.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
113
142
|
key: 1,
|
|
114
|
-
type:
|
|
115
|
-
}, null, 8, ["type"]))])]),
|
|
143
|
+
type: visualStatus.value
|
|
144
|
+
}, null, 8, ["type"])) : createCommentVNode("v-if", true)])], 8, _hoisted_3),
|
|
116
145
|
createElementVNode("div", {
|
|
117
146
|
class: "astryx-banner-message",
|
|
118
|
-
"data-has-actions":
|
|
147
|
+
"data-has-actions": hasEnd.value || void 0
|
|
119
148
|
}, [createElementVNode("div", {
|
|
120
149
|
id: titleId,
|
|
121
150
|
class: "astryx-banner-title"
|
|
122
151
|
}, [renderSlot(_ctx.$slots, "title", {}, () => [createTextVNode(toDisplayString(__props.title), 1)])]), __props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("div", _hoisted_5, [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(__props.description), 1)])])) : createCommentVNode("v-if", true)], 8, _hoisted_4),
|
|
123
|
-
|
|
152
|
+
hasEnd.value || __props.isDismissable || hasContent() && __props.collapsible ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
124
153
|
renderSlot(_ctx.$slots, "end"),
|
|
125
|
-
hasContent
|
|
154
|
+
hasContent() && __props.collapsible ? (openBlock(), createBlock(_sfc_main$2, {
|
|
126
155
|
key: 0,
|
|
127
156
|
ref_key: "toggleButton",
|
|
128
157
|
ref: toggleButton,
|
|
129
158
|
variant: "ghost",
|
|
130
159
|
size: "sm",
|
|
131
|
-
label: expanded.value ?
|
|
160
|
+
label: expanded.value ? collapseText.value : expandText.value,
|
|
161
|
+
tooltip: expanded.value ? collapseText.value : expandText.value,
|
|
132
162
|
"aria-expanded": expanded.value,
|
|
133
163
|
"aria-controls": expanded.value ? contentId : void 0,
|
|
134
164
|
onClick: toggle
|
|
@@ -145,6 +175,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
145
175
|
_: 1
|
|
146
176
|
}, 8, [
|
|
147
177
|
"label",
|
|
178
|
+
"tooltip",
|
|
148
179
|
"aria-expanded",
|
|
149
180
|
"aria-controls"
|
|
150
181
|
])) : createCommentVNode("v-if", true),
|
|
@@ -152,20 +183,23 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
152
183
|
key: 1,
|
|
153
184
|
variant: "ghost",
|
|
154
185
|
size: "sm",
|
|
155
|
-
label:
|
|
186
|
+
label: dismissName.value,
|
|
187
|
+
tooltip: dismissTooltip.value,
|
|
156
188
|
onClick: dismiss
|
|
157
189
|
}, {
|
|
158
190
|
default: withCtx(() => [createVNode(_sfc_main$1, { type: "clear" })]),
|
|
159
191
|
_: 1
|
|
160
|
-
}, 8, ["label"])) : createCommentVNode("v-if", true)
|
|
192
|
+
}, 8, ["label", "tooltip"])) : createCommentVNode("v-if", true)
|
|
161
193
|
])) : createCommentVNode("v-if", true)
|
|
162
|
-
]), hasContent
|
|
194
|
+
], 8, _hoisted_2), hasContent() && expanded.value ? (openBlock(), createElementBlock("div", {
|
|
163
195
|
key: 0,
|
|
164
|
-
id: contentId,
|
|
196
|
+
id: hasContent() && __props.collapsible ? contentId : void 0,
|
|
165
197
|
ref_key: "content",
|
|
166
198
|
ref: content,
|
|
167
|
-
class: "astryx-banner-content"
|
|
168
|
-
|
|
199
|
+
class: "astryx-banner-content",
|
|
200
|
+
"data-container": __props.container,
|
|
201
|
+
"data-status": visualStatus.value
|
|
202
|
+
}, [renderSlot(_ctx.$slots, "default")], 8, _hoisted_8)) : createCommentVNode("v-if", true)], 40, _hoisted_1)) : createCommentVNode("v-if", true);
|
|
169
203
|
};
|
|
170
204
|
}
|
|
171
205
|
});
|
package/dist/Blockquote/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Blockquote-
|
|
1
|
+
import { t as _sfc_main } from "../Blockquote-DRoKdcxZ.js";
|
|
2
2
|
export { _sfc_main as Blockquote };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { computed, createCommentVNode, createElementBlock, createTextVNode, defineComponent, openBlock, renderSlot, toDisplayString, useSlots } from "vue";
|
|
2
|
+
import "../styles/blockquote.css";
|
|
3
|
+
//#region src/Blockquote/Blockquote.vue
|
|
4
|
+
const _hoisted_1 = { class: "astryx-blockquote" };
|
|
5
|
+
const _hoisted_2 = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "astryx-blockquote__cite"
|
|
8
|
+
};
|
|
9
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
10
|
+
name: "AstryxBlockquote",
|
|
11
|
+
__name: "Blockquote",
|
|
12
|
+
props: { cite: {} },
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const slots = useSlots();
|
|
16
|
+
/**
|
|
17
|
+
* 空字符串和缺省都不渲染出处。
|
|
18
|
+
* 引用本身是分段根,里面再套 footer 会被读屏当成整个页面的页脚。
|
|
19
|
+
*/
|
|
20
|
+
const showCite = computed(() => slots.cite != null || props.cite != null && props.cite !== "");
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
return openBlock(), createElementBlock("blockquote", _hoisted_1, [renderSlot(_ctx.$slots, "default"), showCite.value ? (openBlock(), createElementBlock("cite", _hoisted_2, [renderSlot(_ctx.$slots, "cite", {}, () => [createTextVNode(toDisplayString(__props.cite), 1)])])) : createCommentVNode("v-if", true)]);
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
export { _sfc_main as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as BottomSheetMotion, c as BottomSheetPurpose, d as BottomSheetState, i as BottomSheetHeight, l as BottomSheetSlots, n as _default, o as BottomSheetPadding, r as BottomSheetEmits, s as BottomSheetProps, t as _default$1, u as BottomSheetSnapPoint } from "../index-
|
|
1
|
+
import { a as BottomSheetMotion, c as BottomSheetPurpose, d as BottomSheetState, i as BottomSheetHeight, l as BottomSheetSlots, n as _default, o as BottomSheetPadding, r as BottomSheetEmits, s as BottomSheetProps, t as _default$1, u as BottomSheetSnapPoint } from "../index-BO9TY87G.js";
|
|
2
2
|
export { _default as BottomSheet, type BottomSheetEmits, type BottomSheetHeight, type BottomSheetMotion, type BottomSheetPadding, type BottomSheetProps, type BottomSheetPurpose, type BottomSheetSlots, type BottomSheetSnapPoint, type BottomSheetState, _default$1 as BottomSheetSwitcher };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../BottomSheet-
|
|
2
|
-
import { t as _sfc_main$1 } from "../BottomSheet-
|
|
1
|
+
import { t as _sfc_main } from "../BottomSheet-B4sc3F1S.js";
|
|
2
|
+
import { t as _sfc_main$1 } from "../BottomSheet-m54uCMJN.js";
|
|
3
3
|
export { _sfc_main as BottomSheet, _sfc_main$1 as BottomSheetSwitcher };
|