@astryx-vue/core 0.7.25 → 0.7.26
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--9IcMdY3.js → AlertDialog-DZpJzvOC.js} +30 -15
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell--izaf9Fx.js → AppShell-D7ik41g-.js} +3 -3
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-CqPpL59Q.js → Avatar-D_C9RBJb.js} +6 -5
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-lmO-a3Eq.js → AvatarGroup-CFvNDgU-.js} +3 -3
- package/dist/Badge/index.js +1 -1
- package/dist/{Badge-DByZSDmu.js → Badge-BbPS_49c.js} +7 -3
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-BpiQjQvG.js → Banner-C1B7DsHS.js} +3 -3
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-BKeyoL9N.js → BottomSheet-BECeWtEy.js} +2 -2
- package/dist/{BottomSheet-CMukh1iI.js → BottomSheet-CgOzQHaA.js} +4 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-CH-rcc_-.js → Breadcrumbs-BgiZY7un.js} +8 -7
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-7W3G5gok.js → Button-DsjdehLZ.js} +179 -17
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-UgiGP61q.js → ButtonGroup-CSW7a9vq.js} +14 -2
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-DjhwshS8.js → Calendar-Bzgi-XyF.js} +12 -3
- package/dist/Card/index.js +1 -1
- package/dist/{Card-H4571ZKi.js → Card-BbKFHWuD.js} +2 -0
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-RN3BV6qj.js → Carousel--VycM-Sa.js} +3 -3
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-D5cXLYlh.js → Chat-C1DlnlCQ.js} +30 -28
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-GFjf15n3.js → CheckboxInput-uk8nuCEf.js} +4 -4
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-CJzRo5vd.js → CheckboxList-Dr4kQ-BC.js} +6 -6
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-C_XMPOpv.js → Citation-BAFsn6N1.js} +2 -2
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-qeVRS9dw.js → ClickableCard-CvxSKkXh.js} +3 -2
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-9NMYGL48.js → CodeBlock-PSnUWX57.js} +5 -3
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-CifnTLlc.js → Collapsible-C_tl5-L0.js} +2 -2
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-BbGFrwAI.js → CommandPalette-lewtyQrO.js} +7 -7
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-DMnzBMY1.js → ComplexSelector-BUnqjeW5.js} +14 -6
- package/dist/{ComponentIcon-hPmWTSXE.js → ComponentIcon-BRXBBKeG.js} +1 -1
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-BD3pObnQ.js → ContextMenu-IDkvorRp.js} +10 -9
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-CYFPGd__.js → DateInput-DTxxFz9-.js} +10 -10
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-BOdKqQUw.js → DateRangeInput-D4Us58KW.js} +8 -8
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-Bs4T8KWb.js → DateTimeInput-CliLnI7P.js} +9 -9
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-vPGLWE3o.js → Dialog-B_s-w66_.js} +1 -1
- package/dist/{Dialog-D4V2ZnuS.js → Dialog-BtPktuiy.js} +3 -1
- package/dist/{DialogHeader-Dii5B7vE.js → DialogHeader-Hk419KW1.js} +4 -4
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-CtuxdSAd.js → Drawer-DoQ9hjKz.js} +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-CXyECszu.js → DropdownMenu-B2iga1fe.js} +18 -13
- package/dist/{DropdownMenu-BmAeVIu5.js → DropdownMenu-BF2Z5T4h.js} +9 -9
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-DaVNSbYi.js → EmptyState-v1cvHKav.js} +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-CdrGdY7U.js → Field-if5a58LO.js} +2 -2
- package/dist/{FieldIcon-BB08VXf7.js → FieldIcon-DMtfe1Ne.js} +1 -1
- package/dist/{FieldInfoTip-CPhFmGaY.js → FieldInfoTip-BJAaKJjM.js} +2 -2
- package/dist/{FieldLabel-lJ1exgvq.js → FieldLabel-C-IaUcP4.js} +3 -3
- package/dist/FieldStatus/index.js +1 -1
- package/dist/{FieldStatus-CR-cK1rW.js → FieldStatus-DSUCli4W.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-C85funO_.js → FileInput-0zBWfO8h.js} +8 -8
- package/dist/Grid/index.d.ts +1 -1
- package/dist/Grid/index.js +1 -1
- package/dist/{Grid-D1onTzyC.js → Grid-C0mp7fha.js} +1 -1
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +1 -1
- package/dist/Heading-C10qO8wg.js +114 -0
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-B9uadAzT.js → HoverCard-CLcbBLBN.js} +4 -3
- package/dist/Icon/index.js +1 -1
- package/dist/{Icon-DAcZMgiJ.js → Icon-BCHo7W0x.js} +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-Cn4re9lo.js → IconButton-Crtfruc0.js} +1 -1
- package/dist/Indicator/index.js +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-CQmrs5nz.js → InfoTip-DNQy7wqB.js} +3 -3
- package/dist/{InputClearButton-gGlttFrg.js → InputClearButton-DhvxPkK6.js} +3 -3
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-DQpDwkjF.js → InputGroup-B1kG0rBN.js} +22 -5
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-CWJDt7Qb.js → InternationalizationProvider-CUEIHCf4.js} +3 -3
- package/dist/{Item-Dbf2g0Ee.js → Item-Cfv4ALls.js} +5 -2
- package/dist/Kbd/index.js +1 -1
- package/dist/{Kbd-Dn1LTcNY.js → Kbd-DyxKNYtE.js} +41 -30
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-mHcy28k7.js → Layout-OHKb6r7D.js} +8 -5
- package/dist/{LayoutPanel-DpbBk6rj.js → LayoutPanel-D-rpTtC-.js} +6 -3
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-Duz-OrsN.js → Lightbox-B8uMFPOS.js} +96 -17
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-C0NPH_Zy.js → Link-Kc2RQFHc.js} +4 -4
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-C8F4r-3e.js → ListItem-2evjQQ7n.js} +1 -1
- package/dist/Markdown/index.js +2 -2
- package/dist/{Markdown-B0K6WhMg.js → Markdown-NVkHi_tk.js} +6 -6
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-wOngshS5.js → MetadataList-4GnMi6s9.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-C8KAzhRl.js → MobileNavToggle-TMDrnXfG.js} +2 -2
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-CPp7nRqq.js → MoreMenu-CpGEXWCd.js} +10 -10
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-EuMT3jk8.js → MultiSelector-Baca6xNx.js} +12 -12
- package/dist/{NavDisclosure-BbRWuyhq.js → NavDisclosure-DG4jls5z.js} +1 -1
- package/dist/{NavHeadingSurface-DemUziLF.js → NavHeadingSurface-j2gzMVKt.js} +3 -3
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-B_c92jqW.js → NavItem-BZLN0U5a.js} +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-mZVfqNxt.js → NavMenu-t7WN2bcq.js} +1 -1
- package/dist/{NavMenuItem-Crc0y9_s.js → NavMenuItem-DIMQohIa.js} +2 -2
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-nhsOtHSM.js → NumberInput-BBFGZ4Fg.js} +17 -8
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-CXQKfopf.js → Outline-BgDOI3ar.js} +3 -3
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-BGHiFBEV.js → OverflowList-D4fC5s_q.js} +3 -3
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-DtItBecM.js → Pagination-Do_MIlo4.js} +16 -4
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-DE_a8vx0.js → Popover-Bd93LlDd.js} +7 -7
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-BPqinhNg.js → PowerSearch-DyqItMHo.js} +110 -41
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-Dt5AS0GY.js → ProgressBar-gsm2A_cR.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-DgD_qw8h.js → RadioGroup-Dzp4qSgm.js} +4 -4
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-BTfVjABV.js → RadioList-CAIgB1j_.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-5JnYYMyi.js → ResizeHandle-GAmiHb0-.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-BOFsp4zL.js → SegmentedControl-Bs74LlvS.js} +3 -2
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-DkAtLqr0.js → SelectableCard-BFCwgtWf.js} +3 -2
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-Bb0Tw0IX.js → Selector-B9lINQRM.js} +11 -10
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-woP0TsbV.js → SideNav-DzZ12DIq.js} +8 -8
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-DPNiq0HG.js → Slider-Cuk2ul9w.js} +3 -3
- package/dist/Spinner/index.js +1 -1
- package/dist/{Spinner-CTWLR75x.js → Spinner-ke63bQPv.js} +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-Bu_nCu0I.js → StatusDot-DF5wK42f.js} +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-Ca1DQGyG.js → Stepper-C68f_iJG.js} +3 -3
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-yKKscO-i.js → Switch-bnxiN6Qe.js} +4 -4
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-cg8Mrbs_.js → TabList-8dlO0Ws6.js} +12 -7
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-rUgNSJgQ.js → Table-j_DCDbcI.js} +93 -44
- package/dist/Text/index.d.ts +2 -2
- package/dist/Text/index.js +3 -2
- package/dist/{Text-BShV9dky.js → Text-WB-fpFne.js} +32 -29
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-D8703Iin.js → TextArea-Bzz_KcKT.js} +10 -10
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-C3TcHG4h.js → TextInput-givkH9HQ.js} +9 -9
- package/dist/Theme/index.js +1 -1
- package/dist/{Theme-DkFv7FGK.js → Theme-BQe--DY6.js} +19 -6
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-7hvPR8TA.js → Thumbnail-CZOWP5HN.js} +6 -6
- package/dist/{TimeField-D2vnhUvT.js → TimeField-ByoS5s_I.js} +8 -8
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-D31lgw-s.js → TimeInput-D9kvMQso.js} +2 -2
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-D0A9hh4O.js → Timer-BD2gSoQ3.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-BCYaQaDQ.js → Timestamp-CEdNhKc5.js} +5 -5
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-BpumSIBN.js → Toast-CnZrcU-G.js} +4 -4
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-DYGsPjtx.js → ToggleButton-BMn4yJXe.js} +27 -8
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-DV53YBsy.js → Token-DWCDMawn.js} +96 -28
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-DlptPLpP.js → Tokenizer-R0eC1BOk.js} +92 -9
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Toolbar/index.js +1 -1
- package/dist/{Toolbar-D5UI1JLe.js → Toolbar-BH_E0F0G.js} +4 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +2 -2
- package/dist/{Tooltip-BfKegFfq.js → Tooltip-CGHpFMnc.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-ZTKVEADp.js → TopNav-DHunql9h.js} +7 -7
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-CLWHRRDM.js → TreeList-Dg5gtkOu.js} +6 -4
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-Dd8pq0fI.js → Typeahead-BkmCC6DX.js} +47 -24
- package/dist/{TypeaheadMenu-Bu9HO-wZ.js → TypeaheadMenu-CFeJCv-6.js} +1 -1
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +12 -9
- package/dist/{composables-DamLUqw3.js → composables-DqJzanJ5.js} +5 -24
- package/dist/{context-BLSiTojH.js → context-CV6TrhJY.js} +57 -3
- package/dist/context-CZP3jfy-.js +125 -0
- package/dist/{context-Bv6lAoqu.js → context-CjX2RSDn.js} +14 -2
- package/dist/{index-CO9GW-ik.d.ts → index-B-3EGjfQ.d.ts} +1 -1
- package/dist/{index-C1zwvxPH.d.ts → index-B3yTdknp.d.ts} +1 -1
- package/dist/{index-Cy1rEWC-.d.ts → index-B449gOMC.d.ts} +2 -2
- package/dist/{index-GksCg4a4.d.ts → index-B7brdDVR.d.ts} +4 -4
- package/dist/{index-DEQ5cnUV.d.ts → index-BTljzczH.d.ts} +4 -1
- package/dist/{index-CEHqYyz5.d.ts → index-BfSZhAVv.d.ts} +1 -1
- package/dist/{index-CFm1rPma.d.ts → index-BjbPK91B.d.ts} +1 -1
- package/dist/{index-UFlyBbRd.d.ts → index-BngdKVro.d.ts} +1 -1
- package/dist/{index-EvhMa33P.d.ts → index-BnqDF_AX.d.ts} +7 -2
- package/dist/{index-D4BeRDzX.d.ts → index-BqEPgwku.d.ts} +1 -1
- package/dist/{index-D97pQbua.d.ts → index-C89cIh4E.d.ts} +3 -5
- package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
- package/dist/{index-BnEhvmdR.d.ts → index-CM2L3SUw.d.ts} +2 -0
- package/dist/{index-COgrQZIL.d.ts → index-CdvmnNMH.d.ts} +1 -1
- package/dist/{index-BMCjAlq6.d.ts → index-CfPGC9aW.d.ts} +1 -1
- package/dist/index-CtYlR9Cu.d.ts +46 -0
- package/dist/{index--tm6L1ot.d.ts → index-Cun6cXGP.d.ts} +1 -1
- package/dist/{index-DX4HQToB.d.ts → index-D6pP-H_N.d.ts} +1 -1
- package/dist/{index-DAs54mND.d.ts → index-DCU6dy7n.d.ts} +12 -2
- package/dist/{index-CCYGMtZy.d.ts → index-DFDadgys.d.ts} +39 -39
- package/dist/{index-BzZC2Y7c.d.ts → index-DTfA4uE3.d.ts} +1 -1
- package/dist/{index-O9y23OPJ.d.ts → index-DneQgJfI.d.ts} +1 -1
- package/dist/{index-Ds4OafGN.d.ts → index-mJ_aqK5M.d.ts} +3 -3
- package/dist/{index-HLkEFNeu.d.ts → index-wkeCkhTi.d.ts} +11 -1
- package/dist/index.d.ts +27 -27
- package/dist/index.js +128 -124
- package/dist/layerSurfacePress-C3PjPpJP.js +29 -0
- package/dist/{loadCatalog-85MyL2bm.js → loadCatalog-Bulk4H7U.js} +2 -2
- package/dist/{loadCatalog-DSRSkHnY.d.ts → loadCatalog-D_uf2uX1.d.ts} +36 -0
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +4 -4
- package/dist/{locale-C7RSY-JG.js → locale-BA52q_fh.js} +1 -1
- package/dist/{usePressFeedback-Dt76SpLj.js → pressFeedback-Bwwpex9q.js} +11 -49
- package/dist/{searchResultMessage-U_4q8zX3.js → searchResultMessage-CFmIy2Da.js} +2 -2
- package/dist/{sharedResizeObserver-9EFWnSWH.js → sharedResizeObserver-BekhnB3E.js} +5 -1
- package/dist/slotContent-CNWOrGOr.js +14 -0
- package/dist/{slug-DAK6hdbr.js → slug-D6ln5PTq.js} +3 -1
- package/dist/strayClick-CY-_ImKv.js +60 -0
- package/dist/textDirection-D4ObTwbB.js +32 -0
- package/dist/tooltipTriggerRules-Bg4tG8w2.js +53 -0
- package/dist/unicodeRegExp-B7yQnpFC.js +14 -0
- package/dist/{upstreamMap-CZUPxbc9.js → upstreamMap-DrkVNtXW.js} +2 -0
- package/dist/useActionGroupTracking-BncJjk1A.js +131 -0
- package/dist/{useAnchoredListbox-6t5zSSz1.js → useAnchoredListbox-9Gn8asBR.js} +3 -2
- package/dist/useCoarsePointer-GItEMrjX.js +21 -0
- package/dist/{usePositionedLayer-psKf3ano.js → useDismiss-0-Z-9D0A.js} +52 -52
- package/dist/{useFileSelection-BPtaegqK.js → useFileSelection-B44UpbvF.js} +14 -4
- package/dist/{useIndicator-DGWEjVpB.js → useIndicator--9mGGlT2.js} +2 -2
- package/dist/{useInputContainer-BP3u3hGz.js → useInputContainer-BpLtCA-U.js} +1 -1
- package/dist/{useInputStatusIcon-CTF4yF3e.js → useInputStatusIcon-DCnx00BM.js} +2 -2
- package/dist/{useLayer-Byjda3dD.js → useLayer-CED-g4Q2.js} +1 -1
- package/dist/{useMenuDrillIn-DJ4U_hF7.js → useMenuDrillIn-C5eJCuO1.js} +2 -2
- package/dist/{useMenuPress-8foxY8z4.js → useMenuPress-BLPwY_m1.js} +2 -59
- package/dist/usePressFeedback-Bcjsw9vv.js +49 -0
- package/dist/{useTooltip-BKsCTWdb.js → useTooltip-D8Tq7-yd.js} +36 -22
- package/dist/{useTranslator-BDUOzbP_.js → useTranslator-Q85hi4qz.js} +2 -2
- package/dist/useTruncation-C4pdlaXa.js +135 -0
- package/dist/useTruncationTooltip-BNk2xslw.js +106 -0
- package/dist/utils/index.js +1 -1
- package/dist/{utils-DsFqXaGf.js → utils-BTkg5Ie9.js} +2 -1
- package/locales/en.json +8 -0
- package/package.json +1 -1
- package/styles/alert-dialog.css +19 -0
- package/styles/badge.css +7 -2
- package/styles/banner.css +6 -0
- package/styles/button-group.css +17 -0
- package/styles/button.css +13 -4
- package/styles/calendar.css +34 -0
- package/styles/chat.css +2 -0
- package/styles/checkbox-indicator.css +9 -9
- package/styles/checkbox-input.css +4 -1
- package/styles/context-menu.css +4 -0
- package/styles/dialog-header.css +2 -0
- package/styles/dropdown-menu.css +2 -0
- package/styles/field.css +2 -0
- package/styles/heading.css +4 -0
- package/styles/hover-card.css +2 -0
- package/styles/input-group.css +1 -0
- package/styles/layer.css +2 -0
- package/styles/lightbox.css +78 -0
- package/styles/link.css +5 -0
- package/styles/list.css +10 -1
- package/styles/metadata-list.css +1 -1
- package/styles/more-menu.css +6 -0
- package/styles/radio-indicator.css +21 -4
- package/styles/slider.css +2 -0
- package/styles/switch.css +2 -1
- package/styles/table.css +1 -1
- package/styles/text.css +8 -0
- package/styles/toast.css +2 -0
- package/styles/toggle-button.css +17 -0
- package/styles/token.css +14 -9
- package/styles/toolbar.css +19 -0
- package/dist/Heading-D0zL1j5T.js +0 -99
- package/dist/context-B6UElI5X.js +0 -5
- package/dist/index-LySSG_PR.d.ts +0 -27
- package/dist/useTruncation-C02rA1-c.js +0 -102
- package/dist/{index-BJ9Wim6J.d.ts → index-BqhgeAT4.d.ts} +1 -1
- package/dist/{useRestoreFocus-XEKs5-gp.js → useRestoreFocus-CEG0n2AK.js} +1 -1
package/dist/Field/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "../FieldLabel-
|
|
2
|
-
import { t as _sfc_main } from "../Field-
|
|
3
|
-
import { t as _sfc_main$2 } from "../InputClearButton-
|
|
1
|
+
import { t as _sfc_main$1 } from "../FieldLabel-C-IaUcP4.js";
|
|
2
|
+
import { t as _sfc_main } from "../Field-if5a58LO.js";
|
|
3
|
+
import { t as _sfc_main$2 } from "../InputClearButton-DhvxPkK6.js";
|
|
4
4
|
export { _sfc_main as Field, _sfc_main$1 as FieldLabel, _sfc_main$2 as InputClearButton };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as useFormLayout } from "./context-Cfml4jaK.js";
|
|
2
|
-
import { t as _sfc_main$1 } from "./FieldLabel-
|
|
3
|
-
import { t as _sfc_main$2 } from "./FieldStatus-
|
|
2
|
+
import { t as _sfc_main$1 } from "./FieldLabel-C-IaUcP4.js";
|
|
3
|
+
import { t as _sfc_main$2 } from "./FieldStatus-DSUCli4W.js";
|
|
4
4
|
import { computed, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderSlot, unref, useAttrs, useTemplateRef, withCtx } from "vue";
|
|
5
5
|
import "../styles/field.css";
|
|
6
6
|
//#region src/Field/Field.vue
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./Icon-
|
|
1
|
+
import { t as _sfc_main$1 } from "./Icon-BCHo7W0x.js";
|
|
2
2
|
import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, openBlock } from "vue";
|
|
3
3
|
//#region src/Field/FieldIcon.vue
|
|
4
4
|
const _hoisted_1 = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as _sfc_main$1 } from "./ButtonTooltip-CNKOQHYR.js";
|
|
2
2
|
import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
3
|
-
import { t as _sfc_main$2 } from "./FieldIcon-
|
|
4
|
-
import { t as _sfc_main$3 } from "./IconButton-
|
|
3
|
+
import { t as _sfc_main$2 } from "./FieldIcon-DMtfe1Ne.js";
|
|
4
|
+
import { t as _sfc_main$3 } from "./IconButton-Crtfruc0.js";
|
|
5
5
|
import { Fragment, computed, createElementBlock, createVNode, defineComponent, onScopeDispose, openBlock, shallowRef, unref, useId, useTemplateRef, watch, withCtx } from "vue";
|
|
6
6
|
//#region src/Field/FieldInfoTip.vue
|
|
7
7
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./Icon-
|
|
2
|
-
import { s as useAstryxMessages } from "./context-
|
|
1
|
+
import { t as _sfc_main$1 } from "./Icon-BCHo7W0x.js";
|
|
2
|
+
import { s as useAstryxMessages } from "./context-CV6TrhJY.js";
|
|
3
3
|
import { a as useFormLayout, n as showsOptionalIndicator, r as showsRequiredIndicator } from "./context-Cfml4jaK.js";
|
|
4
|
-
import { t as _sfc_main$2 } from "./InfoTip-
|
|
4
|
+
import { t as _sfc_main$2 } from "./InfoTip-DNQy7wqB.js";
|
|
5
5
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, normalizeClass, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, toRaw, unref, useTemplateRef, withCtx } from "vue";
|
|
6
6
|
import "../styles/field.css";
|
|
7
7
|
//#region src/Field/FieldLabel.vue
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../FieldStatus-
|
|
1
|
+
import { t as _sfc_main } from "../FieldStatus-DSUCli4W.js";
|
|
2
2
|
export { _sfc_main as FieldStatus };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as _sfc_main$1 } from "./VisuallyHidden-cpmsV-0M.js";
|
|
2
|
-
import { t as _sfc_main$2 } from "./FieldIcon-
|
|
2
|
+
import { t as _sfc_main$2 } from "./FieldIcon-DMtfe1Ne.js";
|
|
3
3
|
import { Fragment, createBlock, createCommentVNode, createElementBlock, createTextVNode, createVNode, defineComponent, mergeProps, nextTick, onMounted, onScopeDispose, openBlock, shallowRef, toDisplayString, useTemplateRef, watch, withCtx } from "vue";
|
|
4
4
|
import "../styles/field.css";
|
|
5
5
|
//#region src/Field/FieldStatus.vue
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ci as FileInputValue, Si as FileInputStatus, _i as _default, bi as FileInputProps, vi as FileInputEmits, xi as FileInputSize, yi as FileInputMode } from "../index-
|
|
1
|
+
import { Ci as FileInputValue, Si as FileInputStatus, _i as _default, bi as FileInputProps, vi as FileInputEmits, xi as FileInputSize, yi as FileInputMode } from "../index-DFDadgys.js";
|
|
2
2
|
export { _default as FileInput, type FileInputEmits, type FileInputMode, type FileInputProps, type FileInputSize, type FileInputStatus, type FileInputValue };
|
package/dist/FileInput/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../FileInput-
|
|
1
|
+
import { t as _sfc_main } from "../FileInput-0zBWfO8h.js";
|
|
2
2
|
export { _sfc_main as FileInput };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./Icon-
|
|
1
|
+
import { t as _sfc_main$1 } from "./Icon-BCHo7W0x.js";
|
|
2
2
|
import { t as _sfc_main$2 } from "./VisuallyHidden-cpmsV-0M.js";
|
|
3
3
|
import { t as _sfc_main$3 } from "./ButtonTooltip-CNKOQHYR.js";
|
|
4
4
|
import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
5
5
|
import { t as useAnnounce } from "./announce-B210eJVf.js";
|
|
6
|
-
import { n as selectFiles, t as formatFileSize } from "./useFileSelection-
|
|
7
|
-
import { t as _sfc_main$4 } from "./FieldIcon-
|
|
8
|
-
import { s as useAstryxMessages } from "./context-
|
|
9
|
-
import { t as _sfc_main$5 } from "./Spinner-
|
|
10
|
-
import { t as _sfc_main$6 } from "./Field-
|
|
6
|
+
import { n as selectFiles, t as formatFileSize } from "./useFileSelection-B44UpbvF.js";
|
|
7
|
+
import { t as _sfc_main$4 } from "./FieldIcon-DMtfe1Ne.js";
|
|
8
|
+
import { s as useAstryxMessages } from "./context-CV6TrhJY.js";
|
|
9
|
+
import { t as _sfc_main$5 } from "./Spinner-ke63bQPv.js";
|
|
10
|
+
import { t as _sfc_main$6 } from "./Field-if5a58LO.js";
|
|
11
11
|
import { t as useFieldPartStyling } from "./fieldParts-CDOlBdy6.js";
|
|
12
|
-
import { t as _sfc_main$7 } from "./InputClearButton-
|
|
12
|
+
import { t as _sfc_main$7 } from "./InputClearButton-DhvxPkK6.js";
|
|
13
13
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, normalizeClass, normalizeStyle, openBlock, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, withCtx } from "vue";
|
|
14
14
|
import "../styles/bordered-control.css";
|
|
15
15
|
import "../styles/file-input.css";
|
|
@@ -189,7 +189,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
189
189
|
});
|
|
190
190
|
const first = result.rejections[0];
|
|
191
191
|
if (first?.code === "type" && first.fileName) validationError.value = messages.value.fileInput.errorType(first.fileName);
|
|
192
|
-
else if (first?.code === "size" && first.fileName) validationError.value = messages.value.fileInput.errorSize(first.fileName, formatFileSize(first.maxSize ?? 0));
|
|
192
|
+
else if (first?.code === "size" && first.fileName) validationError.value = messages.value.fileInput.errorSize(first.fileName, formatFileSize(first.maxSize ?? 0, messages.value.fileInput));
|
|
193
193
|
else if (first?.code === "count") validationError.value = messages.value.fileInput.errorCount(first.maxFiles ?? 0);
|
|
194
194
|
else validationError.value = null;
|
|
195
195
|
const files = result.files;
|
package/dist/Grid/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as GridProps, c as GridSizeValue, d as GridSpanProps, f as GridSpanSlots, i as GridColumns, l as GridSlots, n as _default, o as GridRepeat, r as GridAlignment, s as GridResponsiveColumns, t as _default$1, u as GridSpanColumns } from "../index-
|
|
1
|
+
import { a as GridProps, c as GridSizeValue, d as GridSpanProps, f as GridSpanSlots, i as GridColumns, l as GridSlots, n as _default, o as GridRepeat, r as GridAlignment, s as GridResponsiveColumns, t as _default$1, u as GridSpanColumns } from "../index-BTljzczH.js";
|
|
2
2
|
export { _default as Grid, type GridAlignment, type GridColumns, type GridProps, type GridRepeat, type GridResponsiveColumns, type GridSizeValue, type GridSlots, _default$1 as GridSpan, type GridSpanColumns, type GridSpanProps, type GridSpanSlots };
|
package/dist/Grid/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../Grid-
|
|
1
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../Grid-C0mp7fha.js";
|
|
2
2
|
export { _sfc_main as Grid, _sfc_main$1 as GridSpan };
|
|
@@ -57,7 +57,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
57
57
|
if (typeof columns === "object" && columns != null) {
|
|
58
58
|
const repeatMode = columns.repeat === "fit" ? "auto-fit" : "auto-fill";
|
|
59
59
|
if (columns.max != null && columns.max > 0) return buildCappedTemplate(columns.minWidth, columns.max, repeatMode, props.gap, props.columnGap);
|
|
60
|
-
return `repeat(${repeatMode}, minmax(${columns.minWidth}px, 1fr))`;
|
|
60
|
+
return `repeat(${repeatMode}, minmax(min(100%, ${columns.minWidth}px), 1fr))`;
|
|
61
61
|
}
|
|
62
62
|
if (typeof columns === "number" && columns > 0) return `repeat(${columns}, 1fr)`;
|
|
63
63
|
return "1fr";
|
package/dist/Heading/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as HeadingLevel, c as HeadingType, d as HeadingWrap, i as HeadingJustify, l as HeadingWeight, n as HeadingColor, o as HeadingProps, r as HeadingDisplay, s as HeadingTruncateTooltip, t as _default, u as HeadingWordBreak } from "../index-
|
|
1
|
+
import { a as HeadingLevel, c as HeadingType, d as HeadingWrap, i as HeadingJustify, l as HeadingWeight, n as HeadingColor, o as HeadingProps, r as HeadingDisplay, s as HeadingTruncateTooltip, t as _default, u as HeadingWordBreak } from "../index-C89cIh4E.js";
|
|
2
2
|
export { _default as Heading, type HeadingColor, type HeadingDisplay, type HeadingJustify, type HeadingLevel, type HeadingProps, type HeadingTruncateTooltip, type HeadingType, type HeadingWeight, type HeadingWordBreak, type HeadingWrap };
|
package/dist/Heading/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Heading-
|
|
1
|
+
import { t as _sfc_main } from "../Heading-C10qO8wg.js";
|
|
2
2
|
export { _sfc_main as Heading };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { t as devWarn } from "./useDevWarning-B2fsk2B-.js";
|
|
2
|
+
import { n as _sfc_main$1, t as useTruncationTooltip } from "./useTruncationTooltip-BNk2xslw.js";
|
|
3
|
+
import { computed, createBlock, createCommentVNode, defineComponent, mergeProps, openBlock, renderSlot, resolveDynamicComponent, unref, useAttrs, watch, withCtx } from "vue";
|
|
4
|
+
import "../styles/heading.css";
|
|
5
|
+
//#region src/Heading/level.ts
|
|
6
|
+
/** `level` 缺失或不是 1–6 时渲染的级别。 */
|
|
7
|
+
const FALLBACK_LEVEL = 2;
|
|
8
|
+
/** 把 `level` 读成 1–6 的数字;数字字符串按数字读,其余情况退回 2 级。 */
|
|
9
|
+
function resolveHeadingLevel(level) {
|
|
10
|
+
const value = typeof level === "number" || typeof level === "string" ? Number(level) : NaN;
|
|
11
|
+
return Number.isInteger(value) && value >= 1 && value <= 6 ? value : FALLBACK_LEVEL;
|
|
12
|
+
}
|
|
13
|
+
/** 警告里展示调用方传的值:字符串带引号,其余原样。 */
|
|
14
|
+
function describeLevel(level) {
|
|
15
|
+
return typeof level === "string" ? JSON.stringify(level) : String(level);
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/Heading/Heading.vue
|
|
19
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
20
|
+
inheritAttrs: false,
|
|
21
|
+
__name: "Heading",
|
|
22
|
+
props: {
|
|
23
|
+
level: {},
|
|
24
|
+
type: {},
|
|
25
|
+
color: { default: "primary" },
|
|
26
|
+
weight: {},
|
|
27
|
+
display: { default: "block" },
|
|
28
|
+
accessibilityLevel: {},
|
|
29
|
+
textWrap: {},
|
|
30
|
+
wordBreak: {},
|
|
31
|
+
justify: { default: "start" },
|
|
32
|
+
hasCapsize: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: false
|
|
35
|
+
},
|
|
36
|
+
hasStrikethrough: { type: Boolean },
|
|
37
|
+
maxLines: { default: 0 },
|
|
38
|
+
hasTruncateTooltip: {
|
|
39
|
+
type: [Boolean, String],
|
|
40
|
+
default: true
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
setup(__props) {
|
|
44
|
+
const props = __props;
|
|
45
|
+
const level = computed(() => resolveHeadingLevel(props.level));
|
|
46
|
+
watch(() => props.level, (requested) => {
|
|
47
|
+
if (requested !== level.value) devWarn("Heading", `level must be 1, 2, 3, 4, 5 or 6, but it is ${describeLevel(requested)}. The heading renders as level ${level.value}. Pass the outline level, for example <Heading :level="2">.`);
|
|
48
|
+
}, { immediate: true });
|
|
49
|
+
const tag = computed(() => `h${level.value}`);
|
|
50
|
+
const wordBreak = computed(() => props.wordBreak ?? (props.maxLines === 1 ? "break-all" : props.maxLines > 1 ? "break-word" : void 0));
|
|
51
|
+
const tooltip = useTruncationTooltip(() => props.maxLines, () => props.hasTruncateTooltip);
|
|
52
|
+
const { interest } = tooltip;
|
|
53
|
+
const ariaLevel = computed(() => props.accessibilityLevel != null && props.accessibilityLevel !== level.value ? props.accessibilityLevel : void 0);
|
|
54
|
+
const attrs = useAttrs();
|
|
55
|
+
const classes = computed(() => [
|
|
56
|
+
"astryx-heading",
|
|
57
|
+
`astryx-heading--level-${level.value}`,
|
|
58
|
+
props.type && `astryx-heading--type-${props.type}`,
|
|
59
|
+
`astryx-heading--color-${props.color}`,
|
|
60
|
+
props.weight && `astryx-heading--weight-${props.weight}`,
|
|
61
|
+
props.display === "inline" && props.maxLines === 0 && !props.hasCapsize && "astryx-heading--inline",
|
|
62
|
+
props.hasCapsize && "astryx-heading--capsize",
|
|
63
|
+
props.textWrap && `astryx-heading--wrap-${props.textWrap}`,
|
|
64
|
+
wordBreak.value && `astryx-heading--word-${wordBreak.value}`,
|
|
65
|
+
props.justify !== "start" && `astryx-heading--justify-${props.justify}`,
|
|
66
|
+
props.hasStrikethrough && "astryx-heading--strike",
|
|
67
|
+
props.maxLines === 1 && "astryx-heading--truncate-single",
|
|
68
|
+
props.maxLines > 1 && "astryx-heading--truncate-multi"
|
|
69
|
+
]);
|
|
70
|
+
const style = computed(() => {
|
|
71
|
+
if (props.maxLines > 1) return { WebkitLineClamp: props.maxLines };
|
|
72
|
+
return {};
|
|
73
|
+
});
|
|
74
|
+
return (_ctx, _cache) => {
|
|
75
|
+
return openBlock(), createBlock(resolveDynamicComponent(tag.value), mergeProps({
|
|
76
|
+
ref: unref(tooltip).bind,
|
|
77
|
+
"aria-level": ariaLevel.value
|
|
78
|
+
}, unref(attrs), {
|
|
79
|
+
class: ["astryx-heading", classes.value],
|
|
80
|
+
style: style.value,
|
|
81
|
+
onPointerenter: unref(interest).onPointerenter,
|
|
82
|
+
onPointerleave: unref(interest).onPointerleave,
|
|
83
|
+
onPointerdown: unref(interest).onPointerdown,
|
|
84
|
+
onFocusin: unref(interest).onFocusin,
|
|
85
|
+
onFocusout: unref(interest).onFocusout
|
|
86
|
+
}), {
|
|
87
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default"), unref(tooltip).isMounted.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
88
|
+
key: 0,
|
|
89
|
+
anchor: unref(tooltip).element.value,
|
|
90
|
+
content: unref(tooltip).truncation.fullText.value,
|
|
91
|
+
placement: unref(tooltip).placement.value,
|
|
92
|
+
interest: unref(interest).state
|
|
93
|
+
}, null, 8, [
|
|
94
|
+
"anchor",
|
|
95
|
+
"content",
|
|
96
|
+
"placement",
|
|
97
|
+
"interest"
|
|
98
|
+
])) : createCommentVNode("v-if", true)]),
|
|
99
|
+
_: 3
|
|
100
|
+
}, 16, [
|
|
101
|
+
"aria-level",
|
|
102
|
+
"class",
|
|
103
|
+
"style",
|
|
104
|
+
"onPointerenter",
|
|
105
|
+
"onPointerleave",
|
|
106
|
+
"onPointerdown",
|
|
107
|
+
"onFocusin",
|
|
108
|
+
"onFocusout"
|
|
109
|
+
]);
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
//#endregion
|
|
114
|
+
export { _sfc_main as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as HoverCardAlignment, c as HoverCardHoverIndication, d as HoverCardSlots, f as HoverCardTouchTrigger, i as _default, l as HoverCardPlacement, n as UseHoverCardReturn, o as HoverCardEmits, r as useHoverCard, s as HoverCardFocusTrigger, t as UseHoverCardOptions, u as HoverCardProps } from "../index
|
|
1
|
+
import { a as HoverCardAlignment, c as HoverCardHoverIndication, d as HoverCardSlots, f as HoverCardTouchTrigger, i as _default, l as HoverCardPlacement, n as UseHoverCardReturn, o as HoverCardEmits, r as useHoverCard, s as HoverCardFocusTrigger, t as UseHoverCardOptions, u as HoverCardProps } from "../index-Cun6cXGP.js";
|
|
2
2
|
export { _default as HoverCard, type HoverCardAlignment, type HoverCardEmits, type HoverCardFocusTrigger, type HoverCardHoverIndication, type HoverCardPlacement, type HoverCardProps, type HoverCardSlots, type HoverCardTouchTrigger, type UseHoverCardOptions, type UseHoverCardReturn, useHoverCard };
|
package/dist/HoverCard/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as useHoverCard, t as _sfc_main } from "../HoverCard-
|
|
1
|
+
import { n as useHoverCard, t as _sfc_main } from "../HoverCard-CLcbBLBN.js";
|
|
2
2
|
export { _sfc_main as HoverCard, useHoverCard };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { r as registerLayerSurface } from "./layerSurfacePress-C3PjPpJP.js";
|
|
1
2
|
import { r as useResolvedLayerTeleport } from "./useLayerMountTarget-BmZyeKWE.js";
|
|
3
|
+
import { t as useLayer } from "./useLayer-CED-g4Q2.js";
|
|
4
|
+
import { t as _sfc_main$1 } from "./LayerContentBoundary-CvsKxwwm.js";
|
|
2
5
|
import { i as isFocusable } from "./focus-l8jVTcqd.js";
|
|
3
|
-
import { t as useLayer } from "./useLayer-Byjda3dD.js";
|
|
4
6
|
import { t as useMergedRefs } from "./useMergedRefs-DTGo1cEU.js";
|
|
5
|
-
import { t as _sfc_main$1 } from "./LayerContentBoundary-CvsKxwwm.js";
|
|
6
7
|
import { t as useHoverLayerDismiss } from "./useHoverLayerDismiss-kYJ_NqL4.js";
|
|
7
8
|
import { Fragment, Teleport, Transition, computed, createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, onMounted, onScopeDispose, onUpdated, openBlock, ref, renderSlot, shallowRef, toDisplayString, toValue, unref, vShow, watch, withCtx, withDirectives } from "vue";
|
|
8
9
|
import "../styles/hover-card.css";
|
|
@@ -475,7 +476,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
475
476
|
onShow: () => emit("openChange", true),
|
|
476
477
|
onHide: () => emit("openChange", false)
|
|
477
478
|
});
|
|
478
|
-
const setContentRef = useMergedRefs([surfaceRef]);
|
|
479
|
+
const setContentRef = useMergedRefs([surfaceRef, registerLayerSurface]);
|
|
479
480
|
const wrapperRef = ref(null);
|
|
480
481
|
const teleportTarget = useResolvedLayerTeleport(wrapperRef);
|
|
481
482
|
const isTextTrigger = ref(false);
|
package/dist/Icon/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as isIconGlyph, n as ICON_GLYPHS, r as iconGlyphSlug, t as _sfc_main } from "../Icon-
|
|
1
|
+
import { i as isIconGlyph, n as ICON_GLYPHS, r as iconGlyphSlug, t as _sfc_main } from "../Icon-BCHo7W0x.js";
|
|
2
2
|
import { a as resolveSemanticIcon, i as defaultSemanticIcons } from "../themeIcons-CqGF0fwW.js";
|
|
3
3
|
import { n as addCollection, r as addIcon } from "../registry-fNY3jasS.js";
|
|
4
4
|
import { t as useSemanticIcon } from "../Icon-B2aULLnn.js";
|
|
@@ -148,7 +148,7 @@ function iconToSVG(icon) {
|
|
|
148
148
|
}
|
|
149
149
|
function prefixIds(body, idPrefix) {
|
|
150
150
|
if (idPrefix === "" || !body.includes("id=")) return body;
|
|
151
|
-
return body.replace(
|
|
151
|
+
return body.replace(/(?<=\s)id=(["'])([^"']+)\1/g, (_, quote, id) => `id=${quote}${idPrefix}${id}${quote}`).replace(/(?<=\s)((?:href|xlink:href)=)(["'])#([^"']+)\2/g, (_, attr, quote, id) => `${attr}${quote}#${idPrefix}${id}${quote}`).replace(/url\(#([^)]+)\)/g, (_, id) => `url(#${idPrefix}${id})`);
|
|
152
152
|
}
|
|
153
153
|
/** A complete SVG element for one icon. The caller supplies a unique id prefix. */
|
|
154
154
|
function renderIconMarkup(icon, idPrefix) {
|
package/dist/IconButton/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./Button-
|
|
1
|
+
import { t as _sfc_main$1 } from "./Button-DsjdehLZ.js";
|
|
2
2
|
import { computed, createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, useAttrs, useTemplateRef, withCtx } from "vue";
|
|
3
3
|
//#region src/IconButton/IconButton.vue
|
|
4
4
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
package/dist/Indicator/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as isRenderable } from "../isRenderable-BnKHIqfd.js";
|
|
2
|
-
import { a as _sfc_main$1, i as isCoreIndicatorName, n as defaultIndicators, o as _sfc_main, r as getIndicator, t as useIndicator } from "../useIndicator
|
|
2
|
+
import { a as _sfc_main$1, i as isCoreIndicatorName, n as defaultIndicators, o as _sfc_main, r as getIndicator, t as useIndicator } from "../useIndicator--9mGGlT2.js";
|
|
3
3
|
export { _sfc_main as CheckIndicator, _sfc_main$1 as RadioIndicator, defaultIndicators, getIndicator, isCoreIndicatorName, isRenderable, useIndicator };
|
package/dist/InfoTip/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { gi as InfoTipSize, hi as InfoTipProps, mi as _default } from "../index-
|
|
1
|
+
import { gi as InfoTipSize, hi as InfoTipProps, mi as _default } from "../index-DFDadgys.js";
|
|
2
2
|
export { _default as InfoTip, _default as default, type InfoTipProps, type InfoTipSize };
|
package/dist/InfoTip/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./Icon-
|
|
2
|
-
import { s as useAstryxMessages } from "./context-
|
|
3
|
-
import {
|
|
1
|
+
import { t as _sfc_main$1 } from "./Icon-BCHo7W0x.js";
|
|
2
|
+
import { s as useAstryxMessages } from "./context-CV6TrhJY.js";
|
|
3
|
+
import { r as _sfc_main$2, t as useTooltip } from "./useTooltip-D8Tq7-yd.js";
|
|
4
4
|
import { Fragment, computed, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, onMounted, onUpdated, openBlock, ref, renderSlot, shallowRef, toDisplayString, unref, useAttrs, useTemplateRef, withCtx } from "vue";
|
|
5
5
|
import "../styles/info-tip.css";
|
|
6
6
|
//#region src/InfoTip/InfoTip.vue
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./FieldIcon-
|
|
2
|
-
import { t as _sfc_main$2 } from "./IconButton-
|
|
3
|
-
import { t as useTranslator } from "./useTranslator-
|
|
1
|
+
import { t as _sfc_main$1 } from "./FieldIcon-DMtfe1Ne.js";
|
|
2
|
+
import { t as _sfc_main$2 } from "./IconButton-Crtfruc0.js";
|
|
3
|
+
import { t as useTranslator } from "./useTranslator-Q85hi4qz.js";
|
|
4
4
|
import { createBlock, createVNode, defineComponent, mergeProps, openBlock, unref, useAttrs, withCtx } from "vue";
|
|
5
5
|
//#region src/Field/InputClearButton.vue
|
|
6
6
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
package/dist/InputGroup/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as INPUT_GROUP_KEY } from "../context-Bg7eSJ47.js";
|
|
2
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../InputGroup-
|
|
2
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../InputGroup-B1kG0rBN.js";
|
|
3
3
|
export { INPUT_GROUP_KEY, _sfc_main as InputGroup, _sfc_main$1 as InputGroupText };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { r as useInputGroupDisabled, t as INPUT_GROUP_KEY } from "./context-Bg7eSJ47.js";
|
|
2
2
|
import { i as useSize, r as provideSize } from "./SizeContext-BbaF-SEx.js";
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
3
|
+
import { t as textDirection } from "./textDirection-D4ObTwbB.js";
|
|
4
|
+
import { t as _sfc_main$2 } from "./Field-if5a58LO.js";
|
|
5
|
+
import { Comment, Text, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeClass, openBlock, provide, renderSlot, unref, useId, useSlots, withCtx } from "vue";
|
|
5
6
|
import "../styles/input-group.css";
|
|
6
7
|
//#region src/InputGroup/InputGroup.vue
|
|
7
|
-
const _hoisted_1 = [
|
|
8
|
+
const _hoisted_1$1 = [
|
|
8
9
|
"aria-disabled",
|
|
9
10
|
"aria-labelledby",
|
|
10
11
|
"aria-describedby"
|
|
@@ -100,7 +101,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
100
101
|
_ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_2, [renderSlot(_ctx.$slots, "before")])) : createCommentVNode("v-if", true),
|
|
101
102
|
createElementVNode("div", _hoisted_3, [renderSlot(_ctx.$slots, "default")]),
|
|
102
103
|
_ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_4, [renderSlot(_ctx.$slots, "after")])) : createCommentVNode("v-if", true)
|
|
103
|
-
], 10, _hoisted_1)]),
|
|
104
|
+
], 10, _hoisted_1$1)]),
|
|
104
105
|
_: 3
|
|
105
106
|
}, 8, [
|
|
106
107
|
"label",
|
|
@@ -125,14 +126,30 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
125
126
|
});
|
|
126
127
|
//#endregion
|
|
127
128
|
//#region src/InputGroup/InputGroupText.vue
|
|
129
|
+
const _hoisted_1 = {
|
|
130
|
+
key: 0,
|
|
131
|
+
dir: "ltr"
|
|
132
|
+
};
|
|
128
133
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
129
134
|
name: "AstryxInputGroupText",
|
|
130
135
|
inheritAttrs: false,
|
|
131
136
|
__name: "InputGroupText",
|
|
132
137
|
props: { id: {} },
|
|
133
138
|
setup(__props) {
|
|
139
|
+
const slots = useSlots();
|
|
140
|
+
/** 插槽里只有纯文字时返回这段文字的排版方向,混进别的节点就交给调用方自己标。 */
|
|
141
|
+
function slotDirection() {
|
|
142
|
+
const nodes = slots.default?.() ?? [];
|
|
143
|
+
let text = "";
|
|
144
|
+
for (const node of nodes) {
|
|
145
|
+
if (node.type === Comment) continue;
|
|
146
|
+
if (node.type !== Text) return void 0;
|
|
147
|
+
text += String(node.children ?? "");
|
|
148
|
+
}
|
|
149
|
+
return text === "" ? void 0 : textDirection(text);
|
|
150
|
+
}
|
|
134
151
|
return (_ctx, _cache) => {
|
|
135
|
-
return openBlock(), createElementBlock("span", mergeProps({ class: "astryx-input-group-text" }, _ctx.$attrs), [renderSlot(_ctx.$slots, "default")], 16);
|
|
152
|
+
return openBlock(), createElementBlock("span", mergeProps({ class: "astryx-input-group-text" }, _ctx.$attrs), [createCommentVNode(" 方向放在里层:外框的逻辑圆角和边框重叠仍跟着组的方向走。 "), slotDirection() ? (openBlock(), createElementBlock("span", _hoisted_1, [renderSlot(_ctx.$slots, "default")])) : renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 1)], 16);
|
|
136
153
|
};
|
|
137
154
|
}
|
|
138
155
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as useLocaleDirection, c as ProviderMessagesByLocale, i as astryxDirectionKey, l as ProviderOverrides, n as InternationalizationProviderProps, o as TextDirection, r as InternationalizationProviderSlots, s as getLocaleDirection, t as _default, u as resolveProviderMessages } from "../index-
|
|
1
|
+
import { a as useLocaleDirection, c as ProviderMessagesByLocale, i as astryxDirectionKey, l as ProviderOverrides, n as InternationalizationProviderProps, o as TextDirection, r as InternationalizationProviderSlots, s as getLocaleDirection, t as _default, u as resolveProviderMessages } from "../index-D6pP-H_N.js";
|
|
2
2
|
export { _default as InternationalizationProvider, type InternationalizationProviderProps, type InternationalizationProviderSlots, type ProviderMessagesByLocale, type ProviderOverrides, type TextDirection, astryxDirectionKey, getLocaleDirection, resolveProviderMessages, useLocaleDirection };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as resolveProviderMessages, i as getLocaleDirection, n as astryxDirectionKey, r as useLocaleDirection, t as _sfc_main } from "../InternationalizationProvider-
|
|
1
|
+
import { a as resolveProviderMessages, i as getLocaleDirection, n as astryxDirectionKey, r as useLocaleDirection, t as _sfc_main } from "../InternationalizationProvider-CUEIHCf4.js";
|
|
2
2
|
export { _sfc_main as InternationalizationProvider, astryxDirectionKey, getLocaleDirection, resolveProviderMessages, useLocaleDirection };
|
package/dist/{InternationalizationProvider-CWJDt7Qb.js → InternationalizationProvider-CUEIHCf4.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as provideAstryxLocale, i as normalizeLocale, l as formatIcu, o as useAstryxLocale, r as builtInMessages, u as icuPlaceholderNames } from "./context-
|
|
2
|
-
import { t as upstreamMessageMap } from "./upstreamMap-
|
|
3
|
-
import { t as loadAstryxCatalog } from "./loadCatalog-
|
|
1
|
+
import { a as provideAstryxLocale, i as normalizeLocale, l as formatIcu, o as useAstryxLocale, r as builtInMessages, u as icuPlaceholderNames } from "./context-CV6TrhJY.js";
|
|
2
|
+
import { t as upstreamMessageMap } from "./upstreamMap-DrkVNtXW.js";
|
|
3
|
+
import { t as loadAstryxCatalog } from "./loadCatalog-Bulk4H7U.js";
|
|
4
4
|
import { computed, defineComponent, inject, provide, renderSlot } from "vue";
|
|
5
5
|
//#region src/InternationalizationProvider/catalog.ts
|
|
6
6
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { t as
|
|
1
|
+
import { n as isLayerSurface, t as isInLayerSurface } from "./layerSurfacePress-C3PjPpJP.js";
|
|
2
|
+
import { t as usePressFeedback } from "./usePressFeedback-Bcjsw9vv.js";
|
|
2
3
|
import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
|
|
3
4
|
import { n as isSafeUrl } from "./safeUrl-CsvfcZ9m.js";
|
|
4
5
|
import { n as useLinkComponent } from "./context-C_peZbXf.js";
|
|
@@ -430,7 +431,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
430
431
|
function hasInteractiveAncestor(target, container) {
|
|
431
432
|
let current = target;
|
|
432
433
|
while (current != null && current !== container && current !== container.ownerDocument.body) {
|
|
433
|
-
if (isInteractiveElement(current)) return true;
|
|
434
|
+
if (isInteractiveElement(current) || isLayerSurface(current)) return true;
|
|
434
435
|
current = current.parentElement;
|
|
435
436
|
}
|
|
436
437
|
return false;
|
|
@@ -439,6 +440,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
439
440
|
if (props.isDisabled) return;
|
|
440
441
|
const target = event.target;
|
|
441
442
|
if (target instanceof HTMLElement && target.closest(NATIVE_CONTROL_SELECTOR) != null) return;
|
|
443
|
+
if (target instanceof Element && isInLayerSurface(target, event.currentTarget)) return;
|
|
442
444
|
props.onClick?.(event);
|
|
443
445
|
}
|
|
444
446
|
function handleDelegatedClick(event) {
|
|
@@ -504,6 +506,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
504
506
|
const rootClass = computed(() => [
|
|
505
507
|
"astryx-item",
|
|
506
508
|
swipeEnabled.value && "astryx-item--swipe",
|
|
509
|
+
isDelegate.value && "astryx-item--delegate",
|
|
507
510
|
attrs.class
|
|
508
511
|
]);
|
|
509
512
|
const forwardedAttrs = computed(() => Object.fromEntries(Object.entries(attrs).filter(([key]) => !CONTROLLED_ATTRS.has(key))));
|
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-DyxKNYtE.js";
|
|
2
2
|
export { _sfc_main as Kbd };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { n as isDevBuild, t as devPropError } from "./devBuild-G249YcdZ.js";
|
|
2
2
|
import { t as isApplePlatform } from "./isApplePlatform-B1ju6F5B.js";
|
|
3
|
+
import { s as useAstryxMessages } from "./context-CV6TrhJY.js";
|
|
3
4
|
import { Fragment, computed, createElementBlock, defineComponent, mergeProps, onMounted, openBlock, ref, renderList, toDisplayString, unref, useAttrs } from "vue";
|
|
4
5
|
import "../styles/kbd.css";
|
|
5
6
|
//#region src/Kbd/keys.ts
|
|
@@ -7,11 +8,11 @@ const KEY_ALIASES = /* @__PURE__ */ new Map([["esc", "escape"], ["return", "ente
|
|
|
7
8
|
/**
|
|
8
9
|
* Glyphs painted in a key badge on every platform. A `Map` keeps an unknown
|
|
9
10
|
* key such as `constructor` from resolving to an object prototype member.
|
|
11
|
+
* Keys painted as words (Esc, Ctrl) come from the messages instead.
|
|
10
12
|
*/
|
|
11
13
|
const KEY_DISPLAY = /* @__PURE__ */ new Map([
|
|
12
14
|
["enter", "↵"],
|
|
13
15
|
["backspace", "⌫"],
|
|
14
|
-
["escape", "Esc"],
|
|
15
16
|
["tab", "⇥"],
|
|
16
17
|
["up", "↑"],
|
|
17
18
|
["down", "↓"],
|
|
@@ -30,50 +31,59 @@ const APPLE_MODIFIER_DISPLAY = /* @__PURE__ */ new Map([
|
|
|
30
31
|
/**
|
|
31
32
|
* Modifier text elsewhere, and before the platform is known (server render
|
|
32
33
|
* and the first client render), so the keycap reads as the user's keyboard.
|
|
34
|
+
* `mod` and `ctrl` read as the messages' short Control label.
|
|
33
35
|
*/
|
|
34
36
|
const MODIFIER_TEXT = /* @__PURE__ */ new Map([
|
|
35
|
-
["mod", "Ctrl"],
|
|
36
|
-
["ctrl", "Ctrl"],
|
|
37
37
|
["alt", "Alt"],
|
|
38
38
|
["shift", "Shift"],
|
|
39
39
|
["meta", "Win"]
|
|
40
40
|
]);
|
|
41
|
-
/**
|
|
42
|
-
* Spoken words for the accessible name. Assistive technology cannot announce
|
|
43
|
-
* the glyphs above meaningfully, so the shortcut names the keys instead.
|
|
44
|
-
*/
|
|
45
41
|
const KEY_LABEL = /* @__PURE__ */ new Map([
|
|
46
|
-
["ctrl", "
|
|
47
|
-
["alt", "
|
|
48
|
-
["shift", "
|
|
49
|
-
["enter", "
|
|
50
|
-
["backspace", "
|
|
51
|
-
["escape", "
|
|
52
|
-
["tab", "
|
|
53
|
-
["up", "
|
|
54
|
-
["down", "
|
|
55
|
-
["left", "
|
|
56
|
-
["right", "
|
|
57
|
-
["plus", "
|
|
42
|
+
["ctrl", "control"],
|
|
43
|
+
["alt", "alt"],
|
|
44
|
+
["shift", "shift"],
|
|
45
|
+
["enter", "enter"],
|
|
46
|
+
["backspace", "backspace"],
|
|
47
|
+
["escape", "escape"],
|
|
48
|
+
["tab", "tab"],
|
|
49
|
+
["up", "up"],
|
|
50
|
+
["down", "down"],
|
|
51
|
+
["left", "left"],
|
|
52
|
+
["right", "right"],
|
|
53
|
+
["plus", "plus"]
|
|
58
54
|
]);
|
|
59
|
-
function keyDisplay(name, isApple) {
|
|
60
|
-
|
|
55
|
+
function keyDisplay(name, isApple, messages) {
|
|
56
|
+
if (isApple) {
|
|
57
|
+
const symbol = APPLE_MODIFIER_DISPLAY.get(name);
|
|
58
|
+
if (symbol != null) return symbol;
|
|
59
|
+
} else if (name === "mod" || name === "ctrl") return messages.controlShort;
|
|
60
|
+
else {
|
|
61
|
+
const text = MODIFIER_TEXT.get(name);
|
|
62
|
+
if (text != null) return text;
|
|
63
|
+
}
|
|
64
|
+
if (name === "escape") return messages.escapeShort;
|
|
65
|
+
return KEY_DISPLAY.get(name) ?? name.toUpperCase();
|
|
61
66
|
}
|
|
62
|
-
function keyLabel(name, isApple) {
|
|
63
|
-
if (name === "mod") return isApple ?
|
|
64
|
-
|
|
67
|
+
function keyLabel(name, isApple, messages) {
|
|
68
|
+
if (name === "mod") return isApple ? messages.command : messages.control;
|
|
69
|
+
const field = KEY_LABEL.get(name);
|
|
70
|
+
return field == null ? name.toUpperCase() : messages[field];
|
|
65
71
|
}
|
|
66
|
-
function parseShortcut(keys, isApple) {
|
|
72
|
+
function parseShortcut(keys, isApple, messages) {
|
|
67
73
|
return keys.split("+").map((segment) => {
|
|
68
74
|
const source = segment.trim().toLowerCase();
|
|
69
75
|
const name = KEY_ALIASES.get(source) ?? source;
|
|
70
76
|
return {
|
|
71
77
|
name,
|
|
72
|
-
display: keyDisplay(name, isApple),
|
|
73
|
-
label: keyLabel(name, isApple)
|
|
78
|
+
display: keyDisplay(name, isApple, messages),
|
|
79
|
+
label: keyLabel(name, isApple, messages)
|
|
74
80
|
};
|
|
75
81
|
});
|
|
76
82
|
}
|
|
83
|
+
/** The shortcut's accessible name: each key's spoken name, joined by the messages' separator. */
|
|
84
|
+
function shortcutLabel(keys, messages) {
|
|
85
|
+
return keys.map((key) => key.label).reduce((shortcut, label) => messages.shortcut(shortcut, label));
|
|
86
|
+
}
|
|
77
87
|
//#endregion
|
|
78
88
|
//#region src/Kbd/platform.ts
|
|
79
89
|
/**
|
|
@@ -103,8 +113,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
103
113
|
if (isDevBuild() && typeof props.keys !== "string") throw devPropError("Kbd", "keys", "must be a string of keys joined by \"+\", for example <Kbd keys=\"mod+k\" />. Kbd does not read slot content.");
|
|
104
114
|
const attrs = useAttrs();
|
|
105
115
|
const isApple = useIsApplePlatform();
|
|
106
|
-
const
|
|
107
|
-
const
|
|
116
|
+
const messages = useAstryxMessages();
|
|
117
|
+
const keys = computed(() => parseShortcut(props.keys, isApple.value, messages.value.kbd));
|
|
118
|
+
const accessibleName = computed(() => shortcutLabel(keys.value, messages.value.kbd));
|
|
108
119
|
const controlledAttrs = /* @__PURE__ */ new Set([
|
|
109
120
|
"class",
|
|
110
121
|
"style",
|
|
@@ -121,7 +132,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
121
132
|
}), [(openBlock(true), createElementBlock(Fragment, null, renderList(keys.value, (key, index) => {
|
|
122
133
|
return openBlock(), createElementBlock("kbd", {
|
|
123
134
|
key: `${key.name}:${index}`,
|
|
124
|
-
class: "astryx-kbd__key",
|
|
135
|
+
class: "astryx-kbd__key astryx-kbd-key",
|
|
125
136
|
"aria-hidden": "true"
|
|
126
137
|
}, toDisplayString(key.display), 1);
|
|
127
138
|
}), 128))], 16, _hoisted_1);
|
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-D-rpTtC-.js";
|
|
2
|
+
import { t as _sfc_main$2 } from "../Layout-OHKb6r7D.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 };
|