@astryx-vue/core 0.7.24 → 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.d.ts +1 -1
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-DsPFYRxB.js → AlertDialog-DZpJzvOC.js} +30 -15
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell--izaf9Fx.js → AppShell-D7ik41g-.js} +3 -3
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-cNntRBEo.js → Avatar-D_C9RBJb.js} +27 -21
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-CiJia58o.js → AvatarGroup-CFvNDgU-.js} +17 -7
- package/dist/Badge/index.js +1 -1
- package/dist/Badge-BbPS_49c.js +41 -0
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-C8f377q3.js → Banner-C1B7DsHS.js} +3 -3
- package/dist/BottomSheet/index.d.ts +1 -1
- 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.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-CXJNJ93V.js → Breadcrumbs-BgiZY7un.js} +9 -8
- package/dist/Button/index.d.ts +2 -2
- package/dist/Button/index.js +1 -1
- package/dist/{Button-Dgm5wCch.js → Button-DsjdehLZ.js} +181 -18
- 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-d_uOkvFE.js → Calendar-Bzgi-XyF.js} +12 -3
- package/dist/Card/index.d.ts +1 -1
- 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-BWTArLIP.js → Carousel--VycM-Sa.js} +64 -19
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-DKZWVA3Q.js → Chat-C1DlnlCQ.js} +30 -28
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-B4pDfjvr.js → CheckboxInput-uk8nuCEf.js} +4 -4
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-DtxfdHRI.js → CheckboxList-Dr4kQ-BC.js} +7 -7
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-CCu6QWG7.js → Citation-BAFsn6N1.js} +4 -2
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-jEBZbzHE.js → ClickableCard-CvxSKkXh.js} +16 -6
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +2 -2
- package/dist/{Code-PDhTfE2w.js → Code-6GS0nAkR.js} +1 -1
- package/dist/{CodeBlock-BrE72i6C.js → CodeBlock-PSnUWX57.js} +21 -10
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BsPZ8CoN.js → Collapsible-C_tl5-L0.js} +2 -2
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-0Kg-dJg3.js → CommandPalette-lewtyQrO.js} +7 -7
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-BrGVG8c7.js → ComplexSelector-BUnqjeW5.js} +16 -8
- package/dist/ComponentIcon-BRXBBKeG.js +37 -0
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-CgSIWUYh.js → ContextMenu-IDkvorRp.js} +10 -9
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-vV0tc4a4.js → DateInput-DTxxFz9-.js} +15 -13
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-DcM1Zntr.js → DateRangeInput-D4Us58KW.js} +9 -9
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-DbbVU3bk.js → DateTimeInput-CliLnI7P.js} +10 -10
- package/dist/Dialog/index.d.ts +1 -1
- 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-D1sgjPC7.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-CaZF_-lH.js → Drawer-DoQ9hjKz.js} +2 -2
- package/dist/DropdownMenu/index.d.ts +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-B3R5WLsl.js → DropdownMenu-B2iga1fe.js} +18 -13
- package/dist/{DropdownMenu-BjE_cTDM.js → DropdownMenu-BF2Z5T4h.js} +9 -9
- package/dist/{DropdownMenuRadioItem.vue-z0XU7pZS.d.ts → DropdownMenuRadioItem.vue-D455cIQQ.d.ts} +1 -1
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-BQrzgh2f.js → EmptyState-v1cvHKav.js} +2 -2
- package/dist/Field/index.d.ts +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-DLg-trP2.js → Field-if5a58LO.js} +2 -2
- package/dist/{FieldIcon-CxTnEb4Y.js → FieldIcon-DMtfe1Ne.js} +1 -1
- package/dist/{FieldInfoTip-D5IOQrVA.js → FieldInfoTip-BJAaKJjM.js} +2 -2
- package/dist/{FieldLabel-D5_Pap_W.js → FieldLabel-C-IaUcP4.js} +3 -3
- package/dist/FieldStatus/index.d.ts +1 -1
- package/dist/FieldStatus/index.js +1 -1
- package/dist/{FieldStatus-D6Vo_dU5.js → FieldStatus-DSUCli4W.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-CKYpJtuU.js → FileInput-0zBWfO8h.js} +9 -9
- 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.d.ts +4 -4
- package/dist/Icon/index.js +4 -2
- package/dist/Icon/plugin.js +1 -1
- package/dist/Icon-B2aULLnn.js +15 -0
- package/dist/{Icon-CU3412Fe.js → Icon-BCHo7W0x.js} +48 -86
- package/dist/IconButton/index.d.ts +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-B6AQLlx9.js → IconButton-Crtfruc0.js} +1 -1
- package/dist/Indicator/index.d.ts +2 -2
- 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-BlOySTNC.js → InfoTip-DNQy7wqB.js} +3 -3
- package/dist/{InputClearButton-BbFXoxWi.js → InputClearButton-DhvxPkK6.js} +3 -3
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +2 -2
- package/dist/{InputGroup-BleRgc6W.js → InputGroup-B1kG0rBN.js} +42 -18
- 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-X9wgYWoD.js → Item-Cfv4ALls.js} +29 -6
- package/dist/Kbd/index.d.ts +1 -1
- package/dist/Kbd/index.js +1 -1
- package/dist/{Kbd-CV3LO2Ge.js → Kbd-DyxKNYtE.js} +58 -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-DLZzT9un.js → Lightbox-B8uMFPOS.js} +96 -17
- package/dist/Link/index.d.ts +2 -2
- package/dist/Link/index.js +1 -1
- package/dist/{Link-Qhzs2lcO.js → Link-Kc2RQFHc.js} +59 -70
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-CertehfW.js → ListItem-2evjQQ7n.js} +2 -2
- package/dist/Markdown/index.js +2 -2
- package/dist/{Markdown-DGTG02tI.js → Markdown-NVkHi_tk.js} +6 -6
- package/dist/{MediaTheme-CnSOALNj.js → MediaTheme-Bt7WBTkq.js} +1 -1
- 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-B_NLxMJW.js → MoreMenu-CpGEXWCd.js} +10 -10
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-B0TQuJ5d.js → MultiSelector-Baca6xNx.js} +17 -16
- package/dist/{NavDisclosure-BbRWuyhq.js → NavDisclosure-DG4jls5z.js} +1 -1
- package/dist/{NavHeadingSurface-B2HkXx6S.js → NavHeadingSurface-j2gzMVKt.js} +3 -3
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-DfHMmSsw.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-DkfXIdxs.js → NavMenuItem-DIMQohIa.js} +2 -2
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DEv4_fDj.js → NumberInput-BBFGZ4Fg.js} +27 -17
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-Bbu16_MT.js → Outline-BgDOI3ar.js} +3 -3
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-CjIOYKLM.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-Bcq0T9qo.js → Pagination-Do_MIlo4.js} +16 -4
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-9Xt2lYdo.js → Popover-Bd93LlDd.js} +7 -7
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-DXz85xcx.js → PowerSearch-DyqItMHo.js} +111 -42
- 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-B2lYTCeV.js → RadioGroup-Dzp4qSgm.js} +5 -5
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-CieZtXzY.js → RadioList-CAIgB1j_.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-uBJj4W1M.js → ResizeHandle-GAmiHb0-.js} +2 -2
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-BmDn1avo.js → SegmentedControl-Bs74LlvS.js} +3 -2
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-2a2gsxys.js → SelectableCard-BFCwgtWf.js} +12 -7
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-CgrXQtte.js → Selector-B9lINQRM.js} +15 -13
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-DW4jXGp5.js → SideNav-DzZ12DIq.js} +8 -8
- package/dist/Slider/index.d.ts +1 -1
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-CEhy-D-R.js → Slider-Cuk2ul9w.js} +4 -4
- 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.js +1 -1
- package/dist/{Stepper-DVXisudw.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-DXShvaDA.js → Switch-bnxiN6Qe.js} +4 -4
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-Bo4pjQhj.js → TabList-8dlO0Ws6.js} +13 -8
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-Bd8BQ8X_.js → Table-j_DCDbcI.js} +107 -49
- package/dist/Text/index.d.ts +2 -2
- package/dist/Text/index.js +3 -2
- package/dist/{Text-Wk-iDAzh.js → Text-WB-fpFne.js} +38 -29
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-8bifudmD.js → TextArea-Bzz_KcKT.js} +11 -11
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-Bb25yDd0.js → TextInput-givkH9HQ.js} +22 -20
- package/dist/Theme/index.d.ts +2 -2
- package/dist/Theme/index.js +2 -2
- package/dist/{Theme-D7_fQWgb.js → Theme-BQe--DY6.js} +42 -9
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-CYVlnYws.js → Thumbnail-CZOWP5HN.js} +42 -14
- package/dist/{TimeField-dDDrUtI4.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-BvGVUfWy.js → TimeInput-D9kvMQso.js} +7 -5
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-DL_MPa_h.js → Timer-BD2gSoQ3.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-CJSVY4tS.js → Timestamp-CEdNhKc5.js} +17 -13
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-cXs5Cbr4.js → Toast-CnZrcU-G.js} +5 -5
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-DFiJDsOV.js → ToggleButton-BMn4yJXe.js} +27 -8
- package/dist/Token/index.js +1 -1
- package/dist/{Token-BJDLztV6.js → Token-DWCDMawn.js} +101 -28
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-yz0873oG.js → Tokenizer-R0eC1BOk.js} +93 -10
- 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-CWksqYD8.js → TopNav-DHunql9h.js} +7 -7
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-tcEjVfb0.js → TreeList-Dg5gtkOu.js} +24 -17
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-ClidGB0O.js → Typeahead-BkmCC6DX.js} +52 -27
- package/dist/{TypeaheadMenu-Bu9HO-wZ.js → TypeaheadMenu-CFeJCv-6.js} +1 -1
- package/dist/componentIcons-CFr2L6o3.js +106 -0
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +13 -11
- package/dist/{composables-BWDrzi3J.js → composables-DqJzanJ5.js} +5 -24
- package/dist/context-Bg7eSJ47.js +17 -0
- 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/devBuild-G249YcdZ.js +17 -0
- package/dist/{fieldParts--SyRZVQG.js → fieldParts-CDOlBdy6.js} +2 -2
- package/dist/{index-CM8KfpBL.d.ts → index--uIQXVJ7.d.ts} +2 -2
- package/dist/{index-CL8JvxHW.d.ts → index-B3yTdknp.d.ts} +1 -1
- package/dist/{index-rszZajcw.d.ts → index-B449gOMC.d.ts} +2 -2
- package/dist/{index-B3PTchxx.d.ts → index-B7brdDVR.d.ts} +5 -5
- package/dist/{index-BO9TY87G.d.ts → index-BOCb89V9.d.ts} +3 -3
- package/dist/{index-Gnewu6-J.d.ts → index-BPyRH3WL.d.ts} +1 -1
- package/dist/{index-DEQ5cnUV.d.ts → index-BTljzczH.d.ts} +4 -1
- package/dist/{index-f3d9cVtj.d.ts → index-BU78NOP-.d.ts} +1 -1
- package/dist/{index-BfQ85cS8.d.ts → index-BZuEYd9y.d.ts} +1 -1
- package/dist/{index-D_K1wfRa.d.ts → index-BfSZhAVv.d.ts} +2 -2
- package/dist/{index-CFm1rPma.d.ts → index-BjbPK91B.d.ts} +1 -1
- package/dist/{index-C3f1zsJR.d.ts → index-BngdKVro.d.ts} +1 -1
- package/dist/{index-RW8kvEwf.d.ts → index-BnqDF_AX.d.ts} +11 -6
- package/dist/{index-Be7N3B5F.d.ts → index-BqEPgwku.d.ts} +2 -2
- package/dist/{index-DxxudRgB.d.ts → index-C16d2Fc4.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-IvAfdGCC.d.ts → index-CAoenU4T.d.ts} +1 -1
- package/dist/{index-BaxM-pFP.d.ts → index-CM2L3SUw.d.ts} +6 -4
- package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
- package/dist/{index-Bo-ofFyg.d.ts → index-CbNLiaWw.d.ts} +2 -2
- package/dist/{index-YKCx03zD.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-C9gAlDt_.d.ts → index-CvquEEGw.d.ts} +8 -2
- package/dist/{index-QWh122EV.d.ts → index-D57GW53K.d.ts} +1 -1
- package/dist/{index-DX4HQToB.d.ts → index-D6pP-H_N.d.ts} +1 -1
- package/dist/{index-dcT6zeY_.d.ts → index-DCU6dy7n.d.ts} +25 -5
- package/dist/{index-DqaYENaT.d.ts → index-DFDadgys.d.ts} +68 -68
- package/dist/{index-DEm3kRBO.d.ts → index-DN1RqxjP.d.ts} +1 -1
- package/dist/{index-BzZC2Y7c.d.ts → index-DTfA4uE3.d.ts} +1 -1
- package/dist/{index-BZchpRgm.d.ts → index-DZKv1WNB.d.ts} +2 -2
- package/dist/{index-BUZDSd-n.d.ts → index-Dc52pmSr.d.ts} +4 -2
- package/dist/{index-uqEqPcmR.d.ts → index-DhMCql2U.d.ts} +1 -1
- package/dist/{index-O9y23OPJ.d.ts → index-DneQgJfI.d.ts} +1 -1
- package/dist/{index-Dj1_1t3j.d.ts → index-IFFGXlhq.d.ts} +1 -1
- package/dist/{index-DaXzQxos.d.ts → index-MEix_m1o.d.ts} +2 -2
- package/dist/{index-B1eCxBCY.d.ts → index-TXcNH86P.d.ts} +1 -1
- package/dist/{index-D21zdEgS.d.ts → index-Uh-ddE5F.d.ts} +1 -1
- package/dist/{index-BtrAhmSP.d.ts → index-fuztfDLA.d.ts} +10 -6
- package/dist/{index-BRXgpLcd.d.ts → index-mJ_aqK5M.d.ts} +3 -3
- package/dist/{index-3t5RAfNP.d.ts → index-mkbGYz8f.d.ts} +2 -2
- package/dist/{index-BEZ4ezJk.d.ts → index-wY6dKz6c.d.ts} +2 -2
- package/dist/{index-Dacg7XTH.d.ts → index-wkeCkhTi.d.ts} +16 -6
- package/dist/index.d.ts +53 -53
- package/dist/index.js +134 -130
- 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/pressFeedback-Bwwpex9q.js +578 -0
- package/dist/{registry-C7OZb0PJ.js → registry-fNY3jasS.js} +23 -4
- package/dist/{searchResultMessage-T4H3r8Vz.js → searchResultMessage-CFmIy2Da.js} +2 -2
- package/dist/semantic-CXHSMwPK.d.ts +118 -0
- 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/textClampContext-o3-nLErq.js +15 -0
- package/dist/textDirection-D4ObTwbB.js +32 -0
- package/dist/themeIcons-CqGF0fwW.js +128 -0
- package/dist/tooltipTriggerRules-Bg4tG8w2.js +53 -0
- package/dist/{types-CsqwQkf1.d.ts → types-Bq4Yl6CS.d.ts} +68 -7
- package/dist/{types-Bb7OGivY.d.ts → types-BwVJBE-G.d.ts} +1 -1
- package/dist/{types-C5GQ2KCK.d.ts → types-Dcai2Icw.d.ts} +55 -1
- package/dist/{types-DnrU3HYQ.d.ts → types-hB0M54I7.d.ts} +1 -1
- 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/{useDevWarning-DznOpOHT.js → useDevWarning-B2fsk2B-.js} +1 -4
- 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-BvF_KY9S.js → useIndicator--9mGGlT2.js} +2 -2
- package/dist/{useInputContainer-CLcYrby4.js → useInputContainer-BpLtCA-U.js} +1 -1
- package/dist/{useInputStatusIcon-BSVFtRQG.js → useInputStatusIcon-DCnx00BM.js} +2 -2
- package/dist/{useLayer-Byjda3dD.js → useLayer-CED-g4Q2.js} +1 -1
- package/dist/{useMenuDrillIn-C36Z89W3.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-ClVseK2w.js → utils-BTkg5Ie9.js} +7 -2
- package/locales/en.json +8 -0
- package/package.json +1 -1
- package/styles/alert-dialog.css +19 -0
- package/styles/avatar.css +18 -3
- package/styles/badge.css +20 -2
- package/styles/banner.css +6 -0
- package/styles/button-group.css +38 -2
- package/styles/button.css +76 -4
- package/styles/calendar.css +34 -0
- package/styles/carousel.css +19 -11
- package/styles/chat.css +2 -0
- package/styles/checkbox-indicator.css +9 -9
- package/styles/checkbox-input.css +4 -1
- package/styles/citation.css +2 -1
- package/styles/clickable-card.css +19 -5
- package/styles/code.css +6 -0
- package/styles/context-menu.css +11 -0
- package/styles/dialog-header.css +2 -0
- package/styles/dialog.css +7 -0
- package/styles/dropdown-menu.css +11 -0
- package/styles/field.css +2 -0
- package/styles/heading.css +4 -0
- package/styles/hover-card.css +2 -0
- package/styles/icon.css +18 -12
- package/styles/input-group.css +1 -0
- package/styles/kbd.css +2 -0
- package/styles/layer.css +2 -0
- package/styles/lightbox.css +78 -0
- package/styles/link.css +25 -1
- package/styles/list.css +10 -1
- package/styles/metadata-list.css +1 -1
- package/styles/more-menu.css +6 -0
- package/styles/popover.css +7 -0
- package/styles/pressable.css +7 -0
- package/styles/radio-indicator.css +21 -4
- package/styles/slider.css +2 -0
- package/styles/switch.css +2 -1
- package/styles/table.css +25 -1
- package/styles/text.css +8 -0
- package/styles/thumbnail.css +25 -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/Badge-CjDQPF5g.js +0 -30
- package/dist/Heading-D0zL1j5T.js +0 -99
- package/dist/context-B6UElI5X.js +0 -5
- package/dist/context-Cws_tXTr.js +0 -7
- package/dist/context-IvbU9c3T.js +0 -8
- package/dist/index-LySSG_PR.d.ts +0 -27
- package/dist/semantic-BF_AjLvk.d.ts +0 -57
- package/dist/useClickableContainer-CdGp_Cev.js +0 -112
- package/dist/usePressFeedback-Dhnfc3ee.js +0 -336
- package/dist/useTruncation-C02rA1-c.js +0 -102
- package/dist/{useRestoreFocus-XEKs5-gp.js → useRestoreFocus-CEG0n2AK.js} +1 -1
|
@@ -1,9 +1,10 @@
|
|
|
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";
|
|
5
6
|
import { t as useInteractiveRole } from "./useInteractiveRole-Cn0Nd5GX.js";
|
|
6
|
-
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, inject, mergeProps, normalizeClass, normalizeStyle, onBeforeUnmount, openBlock, provide, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, toRaw, toValue, unref, useAttrs, useId, useSlots, useTemplateRef, watch, withCtx, withModifiers } from "vue";
|
|
7
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, inject, mergeProps, normalizeClass, normalizeStyle, onBeforeUnmount, openBlock, provide, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, toRaw, toValue, unref, useAttrs, useId, useSlots, useTemplateRef, watch, watchEffect, withCtx, withModifiers } from "vue";
|
|
7
8
|
import "../styles/list.css";
|
|
8
9
|
//#region src/List/context.ts
|
|
9
10
|
const listContextKey = defineLayerScopedKey("astryx-list-context", void 0);
|
|
@@ -357,8 +358,16 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
357
358
|
/** 链接内容用的根组件:`as` 写了组件就用它,否则用 LinkProvider 给的默认值。 */
|
|
358
359
|
const customLink = computed(() => typeof props.as === "string" ? linkComponent.value : props.as);
|
|
359
360
|
const isLinkContent = computed(() => safeHref.value != null && customLink.value != null);
|
|
360
|
-
|
|
361
|
+
const { pressActionProps } = usePressFeedback({
|
|
362
|
+
hasOverlay: false,
|
|
363
|
+
isContainer: true
|
|
364
|
+
});
|
|
361
365
|
const pressable = computed(() => isInteractive.value && !props.isDisabled);
|
|
366
|
+
/**
|
|
367
|
+
* 行自己有动作(点击、链接、或把点击转给嵌套控件)时,它是可按容器:
|
|
368
|
+
* 手指按在行里别的控件上,那一下不执行行的动作,行就不亮。带父级角色的行(选项、菜单项)整行就是动作。
|
|
369
|
+
*/
|
|
370
|
+
const isPressContainer = computed(() => pressable.value && (isDelegate.value || !hasParentRole.value));
|
|
362
371
|
const resolvedTarget = computed(() => props.target);
|
|
363
372
|
const resolvedRel = computed(() => {
|
|
364
373
|
const tokens = new Set((props.rel ?? "").split(/\s+/).filter(Boolean));
|
|
@@ -404,12 +413,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
404
413
|
"rel": resolvedRel.value,
|
|
405
414
|
"target": resolvedTarget.value,
|
|
406
415
|
"aria-disabled": props.isDisabled || void 0,
|
|
407
|
-
"tabindex": props.isDisabled ? -1 : void 0
|
|
416
|
+
"tabindex": props.isDisabled ? -1 : void 0,
|
|
417
|
+
...pressActionProps
|
|
408
418
|
};
|
|
409
419
|
if (contentTag.value === "button") return {
|
|
410
420
|
type: "button",
|
|
411
421
|
disabled: props.isDisabled,
|
|
412
|
-
onClick: handleContentClick
|
|
422
|
+
onClick: handleContentClick,
|
|
423
|
+
...pressActionProps
|
|
413
424
|
};
|
|
414
425
|
return {};
|
|
415
426
|
});
|
|
@@ -420,7 +431,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
420
431
|
function hasInteractiveAncestor(target, container) {
|
|
421
432
|
let current = target;
|
|
422
433
|
while (current != null && current !== container && current !== container.ownerDocument.body) {
|
|
423
|
-
if (isInteractiveElement(current)) return true;
|
|
434
|
+
if (isInteractiveElement(current) || isLayerSurface(current)) return true;
|
|
424
435
|
current = current.parentElement;
|
|
425
436
|
}
|
|
426
437
|
return false;
|
|
@@ -429,6 +440,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
429
440
|
if (props.isDisabled) return;
|
|
430
441
|
const target = event.target;
|
|
431
442
|
if (target instanceof HTMLElement && target.closest(NATIVE_CONTROL_SELECTOR) != null) return;
|
|
443
|
+
if (target instanceof Element && isInLayerSurface(target, event.currentTarget)) return;
|
|
432
444
|
props.onClick?.(event);
|
|
433
445
|
}
|
|
434
446
|
function handleDelegatedClick(event) {
|
|
@@ -451,6 +463,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
451
463
|
}));
|
|
452
464
|
event.stopPropagation();
|
|
453
465
|
}
|
|
466
|
+
watchEffect((onCleanup) => {
|
|
467
|
+
const control = isDelegate.value ? toValue(props.interactiveRef) : null;
|
|
468
|
+
if (control == null) return;
|
|
469
|
+
for (const [name, value] of Object.entries(pressActionProps)) control.setAttribute(name, value);
|
|
470
|
+
onCleanup(() => {
|
|
471
|
+
for (const name of Object.keys(pressActionProps)) control.removeAttribute(name);
|
|
472
|
+
});
|
|
473
|
+
});
|
|
454
474
|
const SWIPE_BLOCKED_ROLES = /* @__PURE__ */ new Set([
|
|
455
475
|
"option",
|
|
456
476
|
"menuitem",
|
|
@@ -486,6 +506,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
486
506
|
const rootClass = computed(() => [
|
|
487
507
|
"astryx-item",
|
|
488
508
|
swipeEnabled.value && "astryx-item--swipe",
|
|
509
|
+
isDelegate.value && "astryx-item--delegate",
|
|
489
510
|
attrs.class
|
|
490
511
|
]);
|
|
491
512
|
const forwardedAttrs = computed(() => Object.fromEntries(Object.entries(attrs).filter(([key]) => !CONTROLLED_ATTRS.has(key))));
|
|
@@ -518,6 +539,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
518
539
|
"data-interactive": isInteractive.value || void 0,
|
|
519
540
|
"data-selected": __props.isSelected || void 0,
|
|
520
541
|
"data-astryx-pressable": pressable.value ? "" : void 0,
|
|
542
|
+
"data-astryx-press-container": isPressContainer.value ? "" : void 0,
|
|
521
543
|
"data-swipe": swipeEnabled.value ? unref(swipe).phase.value : void 0,
|
|
522
544
|
role: role.value,
|
|
523
545
|
style: unref(attrs).style,
|
|
@@ -609,6 +631,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
609
631
|
"data-interactive",
|
|
610
632
|
"data-selected",
|
|
611
633
|
"data-astryx-pressable",
|
|
634
|
+
"data-astryx-press-container",
|
|
612
635
|
"data-swipe",
|
|
613
636
|
"role",
|
|
614
637
|
"style",
|
package/dist/Kbd/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as KbdSpecialKey, i as KbdProps, n as KbdKeyAlias, r as KbdKeyName, t as _default } from "../index-
|
|
1
|
+
import { a as KbdSpecialKey, i as KbdProps, n as KbdKeyAlias, r as KbdKeyName, t as _default } from "../index-fuztfDLA.js";
|
|
2
2
|
export { _default as Kbd, type KbdKeyAlias, type KbdKeyName, type KbdProps, type KbdSpecialKey };
|
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,19 +1,18 @@
|
|
|
1
|
+
import { n as isDevBuild, t as devPropError } from "./devBuild-G249YcdZ.js";
|
|
1
2
|
import { t as isApplePlatform } from "./isApplePlatform-B1ju6F5B.js";
|
|
3
|
+
import { s as useAstryxMessages } from "./context-CV6TrhJY.js";
|
|
2
4
|
import { Fragment, computed, createElementBlock, defineComponent, mergeProps, onMounted, openBlock, ref, renderList, toDisplayString, unref, useAttrs } from "vue";
|
|
3
5
|
import "../styles/kbd.css";
|
|
4
6
|
//#region src/Kbd/keys.ts
|
|
5
7
|
const KEY_ALIASES = /* @__PURE__ */ new Map([["esc", "escape"], ["return", "enter"]]);
|
|
6
8
|
/**
|
|
7
|
-
* Glyphs painted in a key badge. A `Map` keeps an unknown
|
|
8
|
-
* `constructor` from resolving to an object prototype member.
|
|
9
|
+
* Glyphs painted in a key badge on every platform. A `Map` keeps an unknown
|
|
10
|
+
* key such as `constructor` from resolving to an object prototype member.
|
|
11
|
+
* Keys painted as words (Esc, Ctrl) come from the messages instead.
|
|
9
12
|
*/
|
|
10
13
|
const KEY_DISPLAY = /* @__PURE__ */ new Map([
|
|
11
|
-
["ctrl", "⌃"],
|
|
12
|
-
["alt", "⌥"],
|
|
13
|
-
["shift", "⇧"],
|
|
14
14
|
["enter", "↵"],
|
|
15
15
|
["backspace", "⌫"],
|
|
16
|
-
["escape", "Esc"],
|
|
17
16
|
["tab", "⇥"],
|
|
18
17
|
["up", "↑"],
|
|
19
18
|
["down", "↓"],
|
|
@@ -21,43 +20,70 @@ const KEY_DISPLAY = /* @__PURE__ */ new Map([
|
|
|
21
20
|
["right", "→"],
|
|
22
21
|
["plus", "+"]
|
|
23
22
|
]);
|
|
23
|
+
/** Modifier symbols on Apple platforms; `meta` is the Command key there. */
|
|
24
|
+
const APPLE_MODIFIER_DISPLAY = /* @__PURE__ */ new Map([
|
|
25
|
+
["mod", "⌘"],
|
|
26
|
+
["meta", "⌘"],
|
|
27
|
+
["ctrl", "⌃"],
|
|
28
|
+
["alt", "⌥"],
|
|
29
|
+
["shift", "⇧"]
|
|
30
|
+
]);
|
|
24
31
|
/**
|
|
25
|
-
*
|
|
26
|
-
* the
|
|
32
|
+
* Modifier text elsewhere, and before the platform is known (server render
|
|
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.
|
|
27
35
|
*/
|
|
28
|
-
const
|
|
29
|
-
["ctrl", "Control"],
|
|
36
|
+
const MODIFIER_TEXT = /* @__PURE__ */ new Map([
|
|
30
37
|
["alt", "Alt"],
|
|
31
38
|
["shift", "Shift"],
|
|
32
|
-
["
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
["
|
|
36
|
-
["
|
|
37
|
-
["
|
|
38
|
-
["
|
|
39
|
-
["
|
|
40
|
-
["
|
|
39
|
+
["meta", "Win"]
|
|
40
|
+
]);
|
|
41
|
+
const KEY_LABEL = /* @__PURE__ */ new Map([
|
|
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"]
|
|
41
54
|
]);
|
|
42
|
-
function keyDisplay(name, isApple) {
|
|
43
|
-
if (
|
|
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;
|
|
44
65
|
return KEY_DISPLAY.get(name) ?? name.toUpperCase();
|
|
45
66
|
}
|
|
46
|
-
function keyLabel(name, isApple) {
|
|
47
|
-
if (name === "mod") return isApple ?
|
|
48
|
-
|
|
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];
|
|
49
71
|
}
|
|
50
|
-
function parseShortcut(keys, isApple) {
|
|
72
|
+
function parseShortcut(keys, isApple, messages) {
|
|
51
73
|
return keys.split("+").map((segment) => {
|
|
52
74
|
const source = segment.trim().toLowerCase();
|
|
53
75
|
const name = KEY_ALIASES.get(source) ?? source;
|
|
54
76
|
return {
|
|
55
77
|
name,
|
|
56
|
-
display: keyDisplay(name, isApple),
|
|
57
|
-
label: keyLabel(name, isApple)
|
|
78
|
+
display: keyDisplay(name, isApple, messages),
|
|
79
|
+
label: keyLabel(name, isApple, messages)
|
|
58
80
|
};
|
|
59
81
|
});
|
|
60
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
|
+
}
|
|
61
87
|
//#endregion
|
|
62
88
|
//#region src/Kbd/platform.ts
|
|
63
89
|
/**
|
|
@@ -84,10 +110,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
84
110
|
props: { keys: {} },
|
|
85
111
|
setup(__props) {
|
|
86
112
|
const props = __props;
|
|
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.");
|
|
87
114
|
const attrs = useAttrs();
|
|
88
115
|
const isApple = useIsApplePlatform();
|
|
89
|
-
const
|
|
90
|
-
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));
|
|
91
119
|
const controlledAttrs = /* @__PURE__ */ new Set([
|
|
92
120
|
"class",
|
|
93
121
|
"style",
|
|
@@ -104,7 +132,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
104
132
|
}), [(openBlock(true), createElementBlock(Fragment, null, renderList(keys.value, (key, index) => {
|
|
105
133
|
return openBlock(), createElementBlock("kbd", {
|
|
106
134
|
key: `${key.name}:${index}`,
|
|
107
|
-
class: "astryx-kbd__key",
|
|
135
|
+
class: "astryx-kbd__key astryx-kbd-key",
|
|
108
136
|
"aria-hidden": "true"
|
|
109
137
|
}, toDisplayString(key.display), 1);
|
|
110
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 };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import { o as useLayoutContainer, s as useLayoutDividers } from "./context-CjX2RSDn.js";
|
|
1
2
|
import { t as formatSize } from "./size-BfginNaZ.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { computed, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeStyle, openBlock, renderSlot, useAttrs, useTemplateRef } from "vue";
|
|
3
|
+
import { i as regionPaddingStyle } from "./LayoutPanel-D-rpTtC-.js";
|
|
4
|
+
import { computed, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeStyle, openBlock, renderSlot, unref, useAttrs, useTemplateRef } from "vue";
|
|
5
5
|
import "../styles/layout.css";
|
|
6
6
|
//#region src/Layout/LayoutFooter.vue
|
|
7
7
|
const _hoisted_1 = [
|
|
8
8
|
"role",
|
|
9
9
|
"aria-label",
|
|
10
|
-
"data-divider"
|
|
10
|
+
"data-divider",
|
|
11
|
+
"data-container"
|
|
11
12
|
];
|
|
12
13
|
const _hoisted_2 = ["data-bleed"];
|
|
13
14
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
@@ -29,6 +30,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
29
30
|
const attrs = useAttrs();
|
|
30
31
|
const root = useTemplateRef("root");
|
|
31
32
|
const dividers = useLayoutDividers();
|
|
33
|
+
const container = useLayoutContainer();
|
|
32
34
|
__expose({ element: root });
|
|
33
35
|
const hasDivider = computed(() => props.hasDivider ?? dividers.value ?? false);
|
|
34
36
|
const forwardedAttrs = computed(() => Object.fromEntries(Object.entries(attrs).filter(([key]) => key !== "class" && key !== "style")));
|
|
@@ -44,7 +46,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
44
46
|
style: rootStyle.value,
|
|
45
47
|
role: __props.role,
|
|
46
48
|
"aria-label": __props.label,
|
|
47
|
-
"data-divider": hasDivider.value || void 0
|
|
49
|
+
"data-divider": hasDivider.value || void 0,
|
|
50
|
+
"data-container": unref(container) ?? void 0
|
|
48
51
|
}), [createElementVNode("div", {
|
|
49
52
|
class: "astryx-layout-footer__inner",
|
|
50
53
|
"data-bleed": __props.padding === 0 || void 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { a as useLayoutArea, c as useLayoutSlots, n as layoutDividerKey, o as useLayoutContainer, r as layoutSlotsKey, s as useLayoutDividers, t as layoutAreaKey } from "./context-CjX2RSDn.js";
|
|
1
2
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
2
3
|
import { a as spacingVariable, o as supportsInternalContentWidth, t as formatSize } from "./size-BfginNaZ.js";
|
|
3
|
-
import { a as useLayoutDividers, i as useLayoutArea, n as layoutDividerKey, o as useLayoutSlots, r as layoutSlotsKey, t as layoutAreaKey } from "./context-Bv6lAoqu.js";
|
|
4
4
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, normalizeStyle, openBlock, provide, renderSlot, unref, useAttrs, useSlots, useTemplateRef, withCtx } from "vue";
|
|
5
5
|
import "../styles/layout.css";
|
|
6
6
|
//#region src/Layout/LayoutRegion.vue
|
|
@@ -220,7 +220,8 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
220
220
|
const _hoisted_1$1 = [
|
|
221
221
|
"role",
|
|
222
222
|
"aria-label",
|
|
223
|
-
"data-divider"
|
|
223
|
+
"data-divider",
|
|
224
|
+
"data-container"
|
|
224
225
|
];
|
|
225
226
|
const _hoisted_2 = ["data-bleed"];
|
|
226
227
|
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
@@ -243,6 +244,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
243
244
|
const attrs = useAttrs();
|
|
244
245
|
const root = useTemplateRef("root");
|
|
245
246
|
const dividers = useLayoutDividers();
|
|
247
|
+
const container = useLayoutContainer();
|
|
246
248
|
__expose({ element: root });
|
|
247
249
|
const hasDivider = computed(() => props.hasDivider ?? dividers.value ?? false);
|
|
248
250
|
const forwardedAttrs = computed(() => Object.fromEntries(Object.entries(attrs).filter(([key]) => key !== "class" && key !== "style")));
|
|
@@ -258,7 +260,8 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
258
260
|
style: rootStyle.value,
|
|
259
261
|
role: __props.role,
|
|
260
262
|
"aria-label": __props.label,
|
|
261
|
-
"data-divider": hasDivider.value || void 0
|
|
263
|
+
"data-divider": hasDivider.value || void 0,
|
|
264
|
+
"data-container": unref(container) ?? void 0
|
|
262
265
|
}), [createElementVNode("div", {
|
|
263
266
|
class: "astryx-layout-header__inner",
|
|
264
267
|
"data-bleed": __props.padding === 0 || void 0,
|
package/dist/Lightbox/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as useLightbox } from "../Lightbox-
|
|
1
|
+
import { n as _sfc_main, t as useLightbox } from "../Lightbox-B8uMFPOS.js";
|
|
2
2
|
export { _sfc_main as Lightbox, useLightbox };
|
|
@@ -1,13 +1,71 @@
|
|
|
1
1
|
import { r as resetLayerScopedContext } from "./scopedProvide-C-Df7c15.js";
|
|
2
|
-
import { t as _sfc_main$
|
|
2
|
+
import { t as _sfc_main$2 } from "./Icon-BCHo7W0x.js";
|
|
3
3
|
import { t as useAnnounce } from "./announce-B210eJVf.js";
|
|
4
|
-
import { t as _sfc_main$
|
|
5
|
-
import { s as useAstryxMessages } from "./context-
|
|
4
|
+
import { t as _sfc_main$3 } from "./IconButton-Crtfruc0.js";
|
|
5
|
+
import { s as useAstryxMessages } from "./context-CV6TrhJY.js";
|
|
6
6
|
import { t as useScrollLock } from "./scrollLock-C3aT4-0z.js";
|
|
7
|
-
import {
|
|
7
|
+
import { n as useTruncation } from "./useTruncation-C4pdlaXa.js";
|
|
8
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, openBlock, ref, toDisplayString, toRef, unref, useId, useTemplateRef, watch, withCtx } from "vue";
|
|
8
9
|
import "../styles/lightbox.css";
|
|
10
|
+
//#region src/Lightbox/LightboxCaption.vue
|
|
11
|
+
const _hoisted_1$1 = ["data-empty", "data-expanded"];
|
|
12
|
+
const _hoisted_2$1 = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "astryx-lightbox__caption-panel"
|
|
15
|
+
};
|
|
16
|
+
const _hoisted_3$1 = ["id"];
|
|
17
|
+
const _hoisted_4$1 = ["aria-expanded", "aria-controls"];
|
|
18
|
+
const MAX_LINES = 2;
|
|
19
|
+
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
20
|
+
name: "AstryxLightboxCaption",
|
|
21
|
+
__name: "LightboxCaption",
|
|
22
|
+
props: {
|
|
23
|
+
text: {},
|
|
24
|
+
id: {}
|
|
25
|
+
},
|
|
26
|
+
setup(__props) {
|
|
27
|
+
const messages = useAstryxMessages();
|
|
28
|
+
/**
|
|
29
|
+
* 图注最多显示两行。超出时第二行末尾跟一个「更多」,点开后整段图注盖在照片底部,
|
|
30
|
+
* 「收起」再合上。整段文字一直在 DOM 里,所以无障碍描述总是完整的图注。
|
|
31
|
+
*/
|
|
32
|
+
const truncation = useTruncation(ref(MAX_LINES));
|
|
33
|
+
const isExpanded = ref(false);
|
|
34
|
+
/** 展开时文字不再被截断,量出来是 false;这时仍要留着「收起」。 */
|
|
35
|
+
const hasToggle = computed(() => isExpanded.value || truncation.isTruncated.value);
|
|
36
|
+
function bindText(element) {
|
|
37
|
+
truncation.bind(element instanceof Element ? element : null);
|
|
38
|
+
}
|
|
39
|
+
function toggle() {
|
|
40
|
+
isExpanded.value = !isExpanded.value;
|
|
41
|
+
}
|
|
42
|
+
return (_ctx, _cache) => {
|
|
43
|
+
return openBlock(), createElementBlock("div", {
|
|
44
|
+
class: "astryx-lightbox__caption-band",
|
|
45
|
+
"data-empty": __props.text ? void 0 : "",
|
|
46
|
+
"data-expanded": isExpanded.value || void 0
|
|
47
|
+
}, [__props.text ? (openBlock(), createElementBlock("div", _hoisted_2$1, [createElementVNode("p", {
|
|
48
|
+
id: __props.id,
|
|
49
|
+
ref: bindText,
|
|
50
|
+
class: "astryx-lightbox__caption astryx-lightbox__caption--band"
|
|
51
|
+
}, toDisplayString(__props.text), 9, _hoisted_3$1), hasToggle.value ? (openBlock(), createElementBlock("button", {
|
|
52
|
+
key: 0,
|
|
53
|
+
type: "button",
|
|
54
|
+
class: "astryx-lightbox__caption-toggle",
|
|
55
|
+
"aria-expanded": isExpanded.value,
|
|
56
|
+
"aria-controls": __props.id,
|
|
57
|
+
onClick: toggle
|
|
58
|
+
}, toDisplayString(isExpanded.value ? unref(messages).lightbox.captionLess : unref(messages).lightbox.captionMore), 9, _hoisted_4$1)) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true)], 8, _hoisted_1$1);
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
//#endregion
|
|
9
63
|
//#region src/Lightbox/Lightbox.vue
|
|
10
|
-
const _hoisted_1 = [
|
|
64
|
+
const _hoisted_1 = [
|
|
65
|
+
"aria-label",
|
|
66
|
+
"aria-describedby",
|
|
67
|
+
"data-gallery"
|
|
68
|
+
];
|
|
11
69
|
const _hoisted_2 = { class: "astryx-lightbox__media" };
|
|
12
70
|
const _hoisted_3 = [
|
|
13
71
|
"data-zoomable",
|
|
@@ -29,10 +87,6 @@ const _hoisted_5 = [
|
|
|
29
87
|
"data-dragging"
|
|
30
88
|
];
|
|
31
89
|
const _hoisted_6 = {
|
|
32
|
-
key: 0,
|
|
33
|
-
class: "astryx-lightbox__caption"
|
|
34
|
-
};
|
|
35
|
-
const _hoisted_7 = {
|
|
36
90
|
key: 2,
|
|
37
91
|
class: "astryx-lightbox__counter"
|
|
38
92
|
};
|
|
@@ -63,6 +117,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
63
117
|
resetLayerScopedContext();
|
|
64
118
|
const dialogRef = useTemplateRef("dialog");
|
|
65
119
|
const containerRef = ref(null);
|
|
120
|
+
const frameRef = useTemplateRef("frame");
|
|
121
|
+
const closeRef = useTemplateRef("close");
|
|
122
|
+
const captionId = `astryx-lightbox-caption-${useId()}`;
|
|
66
123
|
useScrollLock(toRef(props, "isOpen"));
|
|
67
124
|
const mediaList = computed(() => Array.isArray(props.media) ? props.media : [props.media]);
|
|
68
125
|
const isGallery = computed(() => Array.isArray(props.media) && mediaList.value.length > 1);
|
|
@@ -209,6 +266,16 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
209
266
|
restoreFocus = null;
|
|
210
267
|
}
|
|
211
268
|
}, { flush: "post" });
|
|
269
|
+
/**
|
|
270
|
+
* 从图注的「更多」「收起」上翻页时,旧图注随页面换掉,焦点会掉到 body。
|
|
271
|
+
* 这时把焦点交给新一页的照片(能缩放时),否则交给关闭按钮,方向键还能接着翻页。
|
|
272
|
+
*/
|
|
273
|
+
watch(index, () => {
|
|
274
|
+
const active = document.activeElement;
|
|
275
|
+
if (active instanceof HTMLElement && active.closest(".astryx-lightbox__caption-band") != null) nextTick(() => {
|
|
276
|
+
(zoomable.value ? frameRef.value : closeRef.value?.element)?.focus();
|
|
277
|
+
});
|
|
278
|
+
}, { flush: "pre" });
|
|
212
279
|
watch(index, () => {
|
|
213
280
|
resetZoom();
|
|
214
281
|
if (!props.isOpen) return;
|
|
@@ -242,6 +309,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
242
309
|
class: normalizeClass(["astryx-lightbox astryx-layer", _ctx.$attrs.class]),
|
|
243
310
|
style: normalizeStyle(_ctx.$attrs.style),
|
|
244
311
|
"aria-label": current.value.alt || unref(messages).lightbox.mediaViewer,
|
|
312
|
+
"aria-describedby": current.value.caption ? captionId : void 0,
|
|
313
|
+
"data-gallery": isGallery.value || void 0,
|
|
245
314
|
"data-component": "lightbox",
|
|
246
315
|
onCancel,
|
|
247
316
|
onClick: onBackdropClick,
|
|
@@ -251,20 +320,21 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
251
320
|
ref: containerRef,
|
|
252
321
|
class: "astryx-lightbox__container"
|
|
253
322
|
}, [
|
|
254
|
-
createVNode(_sfc_main$
|
|
323
|
+
createVNode(_sfc_main$3, {
|
|
324
|
+
ref: "close",
|
|
255
325
|
class: "astryx-lightbox__close",
|
|
256
326
|
variant: "ghost",
|
|
257
327
|
size: "sm",
|
|
258
328
|
label: unref(messages).lightbox.close,
|
|
259
329
|
onClick: close
|
|
260
330
|
}, {
|
|
261
|
-
default: withCtx(() => [createVNode(_sfc_main$
|
|
331
|
+
default: withCtx(() => [createVNode(_sfc_main$2, {
|
|
262
332
|
icon: "close",
|
|
263
333
|
size: "sm"
|
|
264
334
|
})]),
|
|
265
335
|
_: 1
|
|
266
336
|
}, 8, ["label"]),
|
|
267
|
-
isGallery.value ? (openBlock(), createBlock(_sfc_main$
|
|
337
|
+
isGallery.value ? (openBlock(), createBlock(_sfc_main$3, {
|
|
268
338
|
key: 0,
|
|
269
339
|
class: "astryx-lightbox__nav astryx-lightbox__nav--prev",
|
|
270
340
|
variant: "ghost",
|
|
@@ -273,7 +343,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
273
343
|
"is-disabled": !canPrev.value,
|
|
274
344
|
onClick: _cache[0] || (_cache[0] = ($event) => setIndex(index.value - 1))
|
|
275
345
|
}, {
|
|
276
|
-
default: withCtx(() => [createVNode(_sfc_main$
|
|
346
|
+
default: withCtx(() => [createVNode(_sfc_main$2, {
|
|
277
347
|
icon: "chevronLeft",
|
|
278
348
|
size: "sm"
|
|
279
349
|
})]),
|
|
@@ -282,6 +352,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
282
352
|
createElementVNode("div", _hoisted_2, [
|
|
283
353
|
createCommentVNode(" eslint-disable-next-line vue-a11y/no-static-element-interactions -- 可缩放时 role、tabindex 和 aria 从脚本绑上;视频没有这些交互。 "),
|
|
284
354
|
createElementVNode("div", {
|
|
355
|
+
ref: "frame",
|
|
285
356
|
class: "astryx-lightbox__frame",
|
|
286
357
|
"data-zoomable": zoomable.value || void 0,
|
|
287
358
|
"data-zoomed": zoom.value > 1 || void 0,
|
|
@@ -309,9 +380,17 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
309
380
|
style: normalizeStyle(imageTransform.value ? { transform: imageTransform.value } : void 0),
|
|
310
381
|
"data-dragging": dragging.value || void 0
|
|
311
382
|
}, null, 12, _hoisted_5))], 40, _hoisted_3),
|
|
312
|
-
|
|
383
|
+
isGallery.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
384
|
+
id: captionId,
|
|
385
|
+
key: index.value,
|
|
386
|
+
text: current.value.caption
|
|
387
|
+
}, null, 8, ["text"])) : current.value.caption ? (openBlock(), createElementBlock("p", {
|
|
388
|
+
key: 1,
|
|
389
|
+
id: captionId,
|
|
390
|
+
class: "astryx-lightbox__caption"
|
|
391
|
+
}, toDisplayString(current.value.caption), 1)) : createCommentVNode("v-if", true)
|
|
313
392
|
]),
|
|
314
|
-
isGallery.value ? (openBlock(), createBlock(_sfc_main$
|
|
393
|
+
isGallery.value ? (openBlock(), createBlock(_sfc_main$3, {
|
|
315
394
|
key: 1,
|
|
316
395
|
class: "astryx-lightbox__nav astryx-lightbox__nav--next",
|
|
317
396
|
variant: "ghost",
|
|
@@ -320,13 +399,13 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
320
399
|
"is-disabled": !canNext.value,
|
|
321
400
|
onClick: _cache[4] || (_cache[4] = ($event) => setIndex(index.value + 1))
|
|
322
401
|
}, {
|
|
323
|
-
default: withCtx(() => [createVNode(_sfc_main$
|
|
402
|
+
default: withCtx(() => [createVNode(_sfc_main$2, {
|
|
324
403
|
icon: "chevronRight",
|
|
325
404
|
size: "sm"
|
|
326
405
|
})]),
|
|
327
406
|
_: 1
|
|
328
407
|
}, 8, ["label", "is-disabled"])) : createCommentVNode("v-if", true),
|
|
329
|
-
isGallery.value ? (openBlock(), createElementBlock("p",
|
|
408
|
+
isGallery.value ? (openBlock(), createElementBlock("p", _hoisted_6, toDisplayString(index.value + 1) + " / " + toDisplayString(mediaList.value.length), 1)) : createCommentVNode("v-if", true)
|
|
330
409
|
], 512)], 46, _hoisted_1)) : createCommentVNode("v-if", true)], 2112);
|
|
331
410
|
};
|
|
332
411
|
}
|
package/dist/Link/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { _ as LinkWeight, f as LinkColor, g as LinkType, h as LinkSize, m as LinkRoot, p as LinkProps } from "../index-
|
|
2
|
-
import { pi as _default } from "../index-
|
|
1
|
+
import { _ as LinkWeight, f as LinkColor, g as LinkType, h as LinkSize, m as LinkRoot, p as LinkProps } from "../index-Dc52pmSr.js";
|
|
2
|
+
import { pi as _default } from "../index-DFDadgys.js";
|
|
3
3
|
export { _default as Link, type LinkColor, type LinkProps, type LinkRoot, type LinkSize, type LinkType, type LinkWeight };
|
package/dist/Link/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Link-
|
|
1
|
+
import { t as _sfc_main } from "../Link-Kc2RQFHc.js";
|
|
2
2
|
export { _sfc_main as Link };
|