@astryx-vue/core 0.7.23 → 0.7.25
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-XBjLwnAX.js → AlertDialog--9IcMdY3.js} +2 -2
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-cNntRBEo.js → Avatar-CqPpL59Q.js} +24 -19
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-DbWLEmi1.js → AvatarGroup-lmO-a3Eq.js} +17 -7
- package/dist/Badge/index.js +1 -1
- package/dist/{Badge-CjDQPF5g.js → Badge-DByZSDmu.js} +10 -3
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-ks2zPq6Z.js → Banner-BpiQjQvG.js} +2 -2
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-k-Xqzbkt.js → Breadcrumbs-CH-rcc_-.js} +3 -3
- package/dist/Button/index.d.ts +2 -2
- package/dist/Button/index.js +1 -1
- package/dist/{Button-Byrr4hAu.js → Button-7W3G5gok.js} +7 -10
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-B9sj-OvC.js → ButtonGroup-UgiGP61q.js} +3 -2
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-d_uOkvFE.js → Calendar-DjhwshS8.js} +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-CrRD6YdZ.js → Carousel-RN3BV6qj.js} +107 -56
- package/dist/Center/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-D0m-tH7R.js → Chat-D5cXLYlh.js} +3 -3
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-B4pDfjvr.js → CheckboxInput-GFjf15n3.js} +4 -4
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-DtxfdHRI.js → CheckboxList-CJzRo5vd.js} +5 -5
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-CCu6QWG7.js → Citation-C_XMPOpv.js} +3 -1
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-jEBZbzHE.js → ClickableCard-qeVRS9dw.js} +14 -5
- package/dist/Code/index.js +2 -2
- package/dist/{Code-PDhTfE2w.js → Code-6GS0nAkR.js} +1 -1
- package/dist/{CodeBlock-C1CyMSCL.js → CodeBlock-9NMYGL48.js} +19 -10
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BsPZ8CoN.js → Collapsible-CifnTLlc.js} +2 -2
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-0Kg-dJg3.js → CommandPalette-BbGFrwAI.js} +3 -3
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-wbVUmVh6.js → ComplexSelector-DMnzBMY1.js} +5 -5
- package/dist/ComponentIcon-hPmWTSXE.js +37 -0
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-CgSIWUYh.js → ContextMenu-BD3pObnQ.js} +2 -2
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-CdwODQhw.js → DateInput-CYFPGd__.js} +10 -8
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-Byb8zqZ2.js → DateRangeInput-BOdKqQUw.js} +6 -6
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-lcpORu_P.js → DateTimeInput-Bs4T8KWb.js} +7 -7
- package/dist/Dialog/index.js +1 -1
- package/dist/{DialogHeader-8cIwslf4.js → DialogHeader-Dii5B7vE.js} +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-B8OuWU7j.js → Drawer-CtuxdSAd.js} +1 -1
- package/dist/DropdownMenu/index.d.ts +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-BYD5fFzB.js → DropdownMenu-BmAeVIu5.js} +5 -5
- package/dist/{DropdownMenu-BnY1UWKa.js → DropdownMenu-CXyECszu.js} +4 -4
- 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-DaVNSbYi.js} +1 -1
- package/dist/Field/index.d.ts +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-DLg-trP2.js → Field-CdrGdY7U.js} +2 -2
- package/dist/{FieldIcon-CxTnEb4Y.js → FieldIcon-BB08VXf7.js} +1 -1
- package/dist/{FieldInfoTip-xYN2qeQk.js → FieldInfoTip-CPhFmGaY.js} +2 -2
- package/dist/{FieldLabel-D5_Pap_W.js → FieldLabel-lJ1exgvq.js} +2 -2
- package/dist/FieldStatus/index.d.ts +1 -1
- package/dist/FieldStatus/index.js +1 -1
- package/dist/{FieldStatus-D6Vo_dU5.js → FieldStatus-CR-cK1rW.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-D2AOeGrs.js → FileInput-C85funO_.js} +5 -5
- 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-DAcZMgiJ.js} +47 -85
- package/dist/IconButton/index.d.ts +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-Dzhukpzc.js → IconButton-Cn4re9lo.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-CQmrs5nz.js} +1 -1
- package/dist/{InputClearButton-D9QzdIWM.js → InputClearButton-gGlttFrg.js} +2 -2
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +2 -2
- package/dist/{InputGroup-BleRgc6W.js → InputGroup-DQpDwkjF.js} +23 -16
- package/dist/{Item-X9wgYWoD.js → Item-Dbf2g0Ee.js} +25 -5
- package/dist/Kbd/index.d.ts +1 -1
- package/dist/Kbd/index.js +1 -1
- package/dist/{Kbd-CV3LO2Ge.js → Kbd-Dn1LTcNY.js} +24 -7
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-COttfQHP.js → Lightbox-Duz-OrsN.js} +2 -2
- package/dist/Link/index.d.ts +2 -2
- package/dist/Link/index.js +1 -1
- package/dist/{Link-Qhzs2lcO.js → Link-C0NPH_Zy.js} +57 -68
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-CertehfW.js → ListItem-C8F4r-3e.js} +2 -2
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-C42NPUFp.js → Markdown-B0K6WhMg.js} +3 -3
- package/dist/{MediaTheme-CnSOALNj.js → MediaTheme-Bt7WBTkq.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-CocuDVj-.js → MoreMenu-CPp7nRqq.js} +3 -3
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-D0g3yHj6.js → MultiSelector-EuMT3jk8.js} +11 -10
- package/dist/{NavHeadingSurface-B2HkXx6S.js → NavHeadingSurface-DemUziLF.js} +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-DfHMmSsw.js → NavItem-B_c92jqW.js} +1 -1
- package/dist/NavMenu/index.js +2 -2
- package/dist/{NavMenu-CZS5pRUv.js → NavMenu-mZVfqNxt.js} +1 -1
- package/dist/{NavMenuItem-duQuvU1o.js → NavMenuItem-Crc0y9_s.js} +2 -2
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DEfKx0qI.js → NumberInput-nhsOtHSM.js} +15 -14
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-D3g7Vq7-.js → Outline-CXQKfopf.js} +2 -2
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-WwL2NPbI.js → OverflowList-BGHiFBEV.js} +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-Cn53Nqe3.js → Pagination-DtItBecM.js} +2 -2
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-D90phFsK.js → Popover-DE_a8vx0.js} +1 -1
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-Cj_D0iaM.js → PowerSearch-BPqinhNg.js} +15 -15
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-B2lYTCeV.js → RadioGroup-DgD_qw8h.js} +4 -4
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-CieZtXzY.js → RadioList-BTfVjABV.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-uBJj4W1M.js → ResizeHandle-5JnYYMyi.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-BmDn1avo.js → SegmentedControl-BOFsp4zL.js} +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-2a2gsxys.js → SelectableCard-DkAtLqr0.js} +10 -6
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-CgrXQtte.js → Selector-Bb0Tw0IX.js} +8 -7
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-GELGN9LR.js → SideNav-woP0TsbV.js} +5 -5
- package/dist/Slider/index.d.ts +1 -1
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-CEhy-D-R.js → Slider-DPNiq0HG.js} +3 -3
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-DVXisudw.js → Stepper-Ca1DQGyG.js} +2 -2
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-DXShvaDA.js → Switch-yKKscO-i.js} +3 -3
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-DIEm4YKM.js → TabList-cg8Mrbs_.js} +4 -4
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-Du4FXP9X.js → Table-rUgNSJgQ.js} +41 -32
- package/dist/Text/index.js +1 -1
- package/dist/{Text-Wk-iDAzh.js → Text-BShV9dky.js} +7 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-CbQp3Lqm.js → TextArea-D8703Iin.js} +7 -7
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-CkJRorQb.js → TextInput-C3TcHG4h.js} +18 -16
- package/dist/Theme/index.d.ts +2 -2
- package/dist/Theme/index.js +2 -2
- package/dist/{Theme-D7_fQWgb.js → Theme-DkFv7FGK.js} +23 -3
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-7dKY4N-p.js → Thumbnail-7hvPR8TA.js} +39 -11
- package/dist/{TimeField-DGPsFfii.js → TimeField-D2vnhUvT.js} +3 -3
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-CnOvJGgC.js → TimeInput-D31lgw-s.js} +7 -5
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-DL_MPa_h.js → Timer-D0A9hh4O.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-BQc2NBd7.js → Timestamp-BCYaQaDQ.js} +16 -12
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-DytdMVIS.js → Toast-BpumSIBN.js} +4 -4
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-Cgr84UJy.js → ToggleButton-DYGsPjtx.js} +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-BJDLztV6.js → Token-DV53YBsy.js} +12 -7
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-yz0873oG.js → Tokenizer-DlptPLpP.js} +3 -3
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Toolbar/index.js +1 -1
- package/dist/{Toolbar-CbVhy7K9.js → Toolbar-D5UI1JLe.js} +2 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-aCHKxMyk.js → TopNav-ZTKVEADp.js} +5 -5
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-tcEjVfb0.js → TreeList-CLWHRRDM.js} +21 -16
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-ClidGB0O.js → Typeahead-Dd8pq0fI.js} +7 -5
- package/dist/componentIcons-CFr2L6o3.js +106 -0
- package/dist/composables/index.d.ts +1 -1
- package/dist/composables/index.js +6 -7
- package/dist/{composables-BWDrzi3J.js → composables-DamLUqw3.js} +1 -1
- package/dist/context-Bg7eSJ47.js +17 -0
- package/dist/devBuild-G249YcdZ.js +17 -0
- package/dist/{fieldParts--SyRZVQG.js → fieldParts-CDOlBdy6.js} +2 -2
- package/dist/{index-ZbNwGVkS.d.ts → index-BKnyTWPM.d.ts} +1 -1
- package/dist/{index-CfPGC9aW.d.ts → index-BMCjAlq6.d.ts} +1 -1
- package/dist/{index-Gnewu6-J.d.ts → index-BPyRH3WL.d.ts} +1 -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-DxxudRgB.d.ts → index-C16d2Fc4.d.ts} +1 -1
- package/dist/{index-IvAfdGCC.d.ts → index-CAoenU4T.d.ts} +1 -1
- package/dist/{index-HoCUEVoX.d.ts → index-CCYGMtZy.d.ts} +28 -28
- package/dist/{index-BhLLG-Gi.d.ts → index-CEHqYyz5.d.ts} +1 -1
- package/dist/{index-Bo-ofFyg.d.ts → index-CbNLiaWw.d.ts} +2 -2
- package/dist/{index-C9gAlDt_.d.ts → index-CvquEEGw.d.ts} +8 -2
- package/dist/{index-BqEPgwku.d.ts → index-D4BeRDzX.d.ts} +1 -1
- package/dist/{index-QWh122EV.d.ts → index-D57GW53K.d.ts} +1 -1
- package/dist/{index-DjVJDoz4.d.ts → index-DAs54mND.d.ts} +20 -3
- package/dist/{index-DEm3kRBO.d.ts → index-DN1RqxjP.d.ts} +1 -1
- 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-Dw-zjHHD.d.ts → index-Ds4OafGN.d.ts} +2 -2
- package/dist/{index-cJKrAHO-.d.ts → index-GksCg4a4.d.ts} +4 -4
- package/dist/{index-8px-LKw_.d.ts → index-HLkEFNeu.d.ts} +3 -3
- package/dist/{index-Dj1_1t3j.d.ts → index-IFFGXlhq.d.ts} +1 -1
- package/dist/{index-BtrAhmSP.d.ts → index-fuztfDLA.d.ts} +10 -6
- package/dist/index.d.ts +30 -30
- package/dist/index.js +95 -95
- package/dist/{registry-C7OZb0PJ.js → registry-fNY3jasS.js} +23 -4
- package/dist/{searchResultMessage-T4H3r8Vz.js → searchResultMessage-U_4q8zX3.js} +1 -1
- package/dist/semantic-CXHSMwPK.d.ts +118 -0
- package/dist/textClampContext-o3-nLErq.js +15 -0
- package/dist/themeIcons-CqGF0fwW.js +128 -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/{useDevWarning-DznOpOHT.js → useDevWarning-B2fsk2B-.js} +1 -4
- package/dist/{useIndicator-BvF_KY9S.js → useIndicator-DGWEjVpB.js} +2 -2
- package/dist/{useInputContainer-CLcYrby4.js → useInputContainer-BP3u3hGz.js} +1 -1
- package/dist/{useInputStatusIcon-Bpe0xKqN.js → useInputStatusIcon-CTF4yF3e.js} +2 -2
- package/dist/{useListFocus-ChxLg0b4.js → useListFocus-CbHkLT-X.js} +4 -3
- package/dist/{useMenuDrillIn-C36Z89W3.js → useMenuDrillIn-DJ4U_hF7.js} +2 -2
- package/dist/{useMenuHover-Ctmp4Xkh.js → useMenuHover-CbjjfzAd.js} +1 -1
- package/dist/usePressFeedback-Dt76SpLj.js +616 -0
- package/dist/{utils-ClVseK2w.js → utils-DsFqXaGf.js} +5 -1
- package/package.json +1 -1
- package/styles/avatar.css +18 -3
- package/styles/badge.css +13 -0
- package/styles/button-group.css +21 -2
- package/styles/button.css +63 -0
- package/styles/carousel.css +19 -11
- package/styles/citation.css +2 -1
- package/styles/clickable-card.css +19 -5
- package/styles/code.css +6 -0
- package/styles/context-menu.css +7 -0
- package/styles/dialog.css +7 -0
- package/styles/dropdown-menu.css +9 -0
- package/styles/icon.css +18 -12
- package/styles/kbd.css +2 -0
- package/styles/link.css +20 -1
- package/styles/popover.css +7 -0
- package/styles/pressable.css +7 -0
- package/styles/table.css +24 -0
- package/styles/thumbnail.css +25 -0
- package/dist/context-Cws_tXTr.js +0 -7
- package/dist/context-IvbU9c3T.js +0 -8
- 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/{index-BqhgeAT4.d.ts → index-BJ9Wim6J.d.ts} +1 -1
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
//#region src/Theme/context.ts
|
|
2
|
+
const themeContextKey = Symbol("astryx-theme");
|
|
3
|
+
/** Present when this component is already inside a Theme. */
|
|
4
|
+
const themeNestingKey = Symbol("astryx-theme-nesting");
|
|
5
|
+
const mediaThemeKey = Symbol("astryx-media-theme");
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/Icon/semantic.ts
|
|
8
|
+
/**
|
|
9
|
+
* Semantic name to Iconify id.
|
|
10
|
+
*
|
|
11
|
+
* The names describe the job (close, search, check). The id is the drawing.
|
|
12
|
+
* Lucide matches the upstream themes. A theme replaces any of these, or adds
|
|
13
|
+
* its own keys, through `defineTheme({ icons })`.
|
|
14
|
+
*
|
|
15
|
+
* The drawing is used only after that collection is registered. Until then
|
|
16
|
+
* the built-in glyph stays, so a missing collection does not blank the icon.
|
|
17
|
+
*
|
|
18
|
+
* `upload` is its own name, not `arrowUp`: a theme can redraw the upload
|
|
19
|
+
* affordance without changing sort arrows or the send button.
|
|
20
|
+
*/
|
|
21
|
+
const defaultSemanticIcons = {
|
|
22
|
+
close: "lucide:x",
|
|
23
|
+
chevronDown: "lucide:chevron-down",
|
|
24
|
+
chevronLeft: "lucide:chevron-left",
|
|
25
|
+
chevronRight: "lucide:chevron-right",
|
|
26
|
+
chevronsLeft: "lucide:chevrons-left",
|
|
27
|
+
chevronsRight: "lucide:chevrons-right",
|
|
28
|
+
check: "lucide:check",
|
|
29
|
+
success: "lucide:circle-check",
|
|
30
|
+
error: "lucide:circle-x",
|
|
31
|
+
warning: "lucide:triangle-alert",
|
|
32
|
+
info: "lucide:info",
|
|
33
|
+
calendar: "lucide:calendar",
|
|
34
|
+
clock: "lucide:clock",
|
|
35
|
+
externalLink: "lucide:external-link",
|
|
36
|
+
menu: "lucide:menu",
|
|
37
|
+
moreHorizontal: "lucide:ellipsis",
|
|
38
|
+
search: "lucide:search",
|
|
39
|
+
upload: "lucide:upload",
|
|
40
|
+
arrowUp: "lucide:arrow-up",
|
|
41
|
+
arrowDown: "lucide:arrow-down",
|
|
42
|
+
arrowsUpDown: "lucide:arrow-up-down",
|
|
43
|
+
funnel: "lucide:funnel",
|
|
44
|
+
eyeSlash: "lucide:eye-off",
|
|
45
|
+
viewColumns: "lucide:columns-3",
|
|
46
|
+
copy: "lucide:copy",
|
|
47
|
+
checkDouble: "lucide:check-check",
|
|
48
|
+
wrench: "lucide:wrench",
|
|
49
|
+
stop: "lucide:square",
|
|
50
|
+
microphone: "lucide:mic",
|
|
51
|
+
image: "lucide:image"
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* The Iconify id for a semantic name.
|
|
55
|
+
*
|
|
56
|
+
* Theme entries win, including keys the package does not ship, such as a
|
|
57
|
+
* namespaced `numberInput:stepperDown`. An unknown name with no theme entry
|
|
58
|
+
* returns undefined, so a CSS class can still pass through `icon`.
|
|
59
|
+
*/
|
|
60
|
+
function resolveSemanticIcon(name, icons) {
|
|
61
|
+
if (name == null || name === "") return void 0;
|
|
62
|
+
const override = icons?.[name];
|
|
63
|
+
if (override) return override;
|
|
64
|
+
return defaultSemanticIcons[name];
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region src/Icon/themeIcons.ts
|
|
68
|
+
/** The size every one-argument read uses: `useSemanticIcon`, `theme.icons`. */
|
|
69
|
+
const PUBLIC_ICON_REQUEST = { size: "md" };
|
|
70
|
+
/**
|
|
71
|
+
* The Iconify id a theme maps a name to for one request.
|
|
72
|
+
*
|
|
73
|
+
* - `undefined`: the theme does not map the name, so the built-in id stays.
|
|
74
|
+
* - `null`: a function entry answered with nothing, which is final.
|
|
75
|
+
* - a string: the id to draw.
|
|
76
|
+
*
|
|
77
|
+
* A function entry receives `variant` only when the active theme lists it
|
|
78
|
+
* and, for an inherited entry, the theme that defined the entry lists it too.
|
|
79
|
+
*/
|
|
80
|
+
function resolveThemeIcon(name, theme, request) {
|
|
81
|
+
const entry = theme?.iconEntries?.[name] ?? theme?.icons?.[name];
|
|
82
|
+
if (entry == null || entry === "") return void 0;
|
|
83
|
+
if (typeof entry === "string") return entry;
|
|
84
|
+
const active = theme?.iconVariants;
|
|
85
|
+
const owners = theme?.iconEntryVariants;
|
|
86
|
+
const defining = owners != null && Object.hasOwn(owners, name) ? owners[name] : active;
|
|
87
|
+
const { size, variant } = request;
|
|
88
|
+
const result = entry(variant !== void 0 && active?.includes(variant) === true && defining?.includes(variant) === true ? {
|
|
89
|
+
size,
|
|
90
|
+
variant
|
|
91
|
+
} : { size });
|
|
92
|
+
return typeof result === "string" && result !== "" ? result : null;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* The id view of a theme's entries: each function read at `md`. An entry
|
|
96
|
+
* that answers nothing at `md` is left out. Entries without a function come
|
|
97
|
+
* back as the same object.
|
|
98
|
+
*/
|
|
99
|
+
function readThemeIconIds(entries) {
|
|
100
|
+
if (entries == null || !Object.values(entries).some((entry) => typeof entry === "function")) return entries;
|
|
101
|
+
const ids = {};
|
|
102
|
+
for (const [name, entry] of Object.entries(entries)) {
|
|
103
|
+
const id = typeof entry === "function" ? entry(PUBLIC_ICON_REQUEST) : entry;
|
|
104
|
+
if (typeof id === "string" && id !== "") ids[name] = id;
|
|
105
|
+
}
|
|
106
|
+
return ids;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* For each function entry a theme inherits, the variant list of the theme
|
|
110
|
+
* that defined it, where that list is not the theme's own. Entries the theme
|
|
111
|
+
* defines itself use its own list and need no record.
|
|
112
|
+
*/
|
|
113
|
+
function resolveIconEntryVariants(entries, ownEntries, base, iconVariants) {
|
|
114
|
+
if (entries == null || base == null) return void 0;
|
|
115
|
+
const baseRecord = base.iconEntryVariants;
|
|
116
|
+
let record;
|
|
117
|
+
for (const [name, entry] of Object.entries(entries)) {
|
|
118
|
+
if (typeof entry !== "function" || ownEntries != null && Object.hasOwn(ownEntries, name)) continue;
|
|
119
|
+
const defining = baseRecord != null && Object.hasOwn(baseRecord, name) ? baseRecord[name] : base.iconVariants;
|
|
120
|
+
if (defining !== iconVariants) {
|
|
121
|
+
record ??= {};
|
|
122
|
+
record[name] = defining;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
return record;
|
|
126
|
+
}
|
|
127
|
+
//#endregion
|
|
128
|
+
export { resolveSemanticIcon as a, themeNestingKey as c, defaultSemanticIcons as i, resolveIconEntryVariants as n, mediaThemeKey as o, resolveThemeIcon as r, themeContextKey as s, readThemeIconIds as t };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { f as StoredIconEntry, p as ThemeIconEntries } from "./types-Dcai2Icw.js";
|
|
1
2
|
import { i as SyntaxThemeDefinition } from "./syntaxTheme-CwVEcVDk.js";
|
|
2
|
-
import { t as SemanticIconMap } from "./semantic-
|
|
3
|
+
import { c as ComponentIconStaticMap, d as StoredComponentIconValue, i as ComponentIconMap, t as SemanticIconMap } from "./semantic-CXHSMwPK.js";
|
|
3
4
|
import { Component } from "vue";
|
|
4
5
|
//#region src/Indicator/types.d.ts
|
|
5
6
|
/**
|
|
@@ -314,7 +315,26 @@ interface TypographyConfig {
|
|
|
314
315
|
heading?: TypographyRole;
|
|
315
316
|
code?: TypographyRole;
|
|
316
317
|
}
|
|
317
|
-
|
|
318
|
+
/**
|
|
319
|
+
* The icon variant names a base theme lists: exact for a theme from
|
|
320
|
+
* `defineTheme`, none without a base.
|
|
321
|
+
*/
|
|
322
|
+
type BaseThemeIconVariant<Base> = Base extends {
|
|
323
|
+
__iconVariant?(variant: infer Variant): void;
|
|
324
|
+
} ? Extract<Variant, string> : never;
|
|
325
|
+
/** A theme's own `iconVariants` when it sets the field, otherwise the inherited list. */
|
|
326
|
+
type ThemeIconVariant<IconVariants extends readonly string[] | undefined, Base> = [IconVariants] extends [readonly (infer Variant extends string)[]] ? Variant : BaseThemeIconVariant<Base>;
|
|
327
|
+
/**
|
|
328
|
+
* The same names, as a type `defineTheme` does not infer from: only
|
|
329
|
+
* `iconVariants` and `extends` decide them, never an entry's parameter type.
|
|
330
|
+
*/
|
|
331
|
+
type ThemeIconEntryVariant<IconVariants extends readonly string[] | undefined, Base> = [ThemeIconVariant<IconVariants, Base>][IconVariants extends unknown ? 0 : never];
|
|
332
|
+
/**
|
|
333
|
+
* Input to `defineTheme`. `IconVariants` is the theme's own `iconVariants`
|
|
334
|
+
* list and `Base` its `extends` theme; together they type the `variant` an
|
|
335
|
+
* icon entry function receives. `defineTheme` infers both.
|
|
336
|
+
*/
|
|
337
|
+
interface DefineThemeInput<IconVariants extends readonly string[] | undefined = readonly string[] | undefined, Base extends ThemeDefinition | undefined = ThemeDefinition | undefined> {
|
|
318
338
|
/** Theme name. Used as `data-astryx-theme`. */
|
|
319
339
|
name: string;
|
|
320
340
|
/** Semantic token overrides. These win over generated values, token by token. */
|
|
@@ -345,7 +365,7 @@ interface DefineThemeInput {
|
|
|
345
365
|
*/
|
|
346
366
|
components?: ComponentStyleMap;
|
|
347
367
|
/** Another theme to start from. This theme's own values win. */
|
|
348
|
-
extends?:
|
|
368
|
+
extends?: Base;
|
|
349
369
|
/** Syntax colors for code in this subtree, unless a SyntaxTheme is closer. */
|
|
350
370
|
syntax?: SyntaxThemeDefinition;
|
|
351
371
|
/** Extra tokens and component styles for content on a dark surface. */
|
|
@@ -376,8 +396,27 @@ interface DefineThemeInput {
|
|
|
376
396
|
*
|
|
377
397
|
* Entries replace the built-in map by name and merge with the theme this
|
|
378
398
|
* one extends. A name that is not listed keeps the built-in id.
|
|
399
|
+
*
|
|
400
|
+
* An entry may also be a pure synchronous function of `{ size, variant }`
|
|
401
|
+
* that returns an id. `Icon` calls it with the size it renders at, so the
|
|
402
|
+
* theme can pick artwork per size. Its result is final: `null` draws no
|
|
403
|
+
* glyph instead of falling back to the built-in id.
|
|
379
404
|
*/
|
|
380
|
-
icons?:
|
|
405
|
+
icons?: ThemeIconEntries<ThemeIconEntryVariant<IconVariants, Base>>;
|
|
406
|
+
/**
|
|
407
|
+
* The icon variant names this theme supports, listed once for the whole
|
|
408
|
+
* theme. Icon entry functions receive `variant` typed as these names.
|
|
409
|
+
* A list set here replaces the inherited one; an omitted list is inherited.
|
|
410
|
+
*/
|
|
411
|
+
iconVariants?: IconVariants;
|
|
412
|
+
/**
|
|
413
|
+
* Which shared icon a component's own icon role uses, by slot, such as
|
|
414
|
+
* `code-block-copy`. A value is a shared icon name, `null` to hide the
|
|
415
|
+
* icon, a partial `{ icon, variant, size }` request, or, for a slot with
|
|
416
|
+
* state, a pure function of that state that returns one. An entry
|
|
417
|
+
* replaces the inherited entry for the same slot.
|
|
418
|
+
*/
|
|
419
|
+
componentIcons?: ComponentIconMap<ThemeIconEntryVariant<IconVariants, Base>>;
|
|
381
420
|
/**
|
|
382
421
|
* Indicator graphics, replaced by name.
|
|
383
422
|
*
|
|
@@ -386,7 +425,7 @@ interface DefineThemeInput {
|
|
|
386
425
|
*/
|
|
387
426
|
indicators?: IndicatorRegistry;
|
|
388
427
|
}
|
|
389
|
-
interface ThemeDefinition {
|
|
428
|
+
interface ThemeDefinition<IconVariant extends string = string> {
|
|
390
429
|
name: string;
|
|
391
430
|
/** Token values already written as CSS, with the `--astryx-` prefix. */
|
|
392
431
|
tokens: Readonly<Record<string, string>>;
|
|
@@ -401,8 +440,30 @@ interface ThemeDefinition {
|
|
|
401
440
|
/** Component styles on a light MediaTheme surface. */
|
|
402
441
|
onLightComponents?: ComponentStyleMap;
|
|
403
442
|
syntax?: SyntaxThemeDefinition;
|
|
404
|
-
/**
|
|
443
|
+
/**
|
|
444
|
+
* Semantic icon overrides as ids. A function entry is read at size `md`.
|
|
445
|
+
* Absent when this theme does not set any.
|
|
446
|
+
*/
|
|
405
447
|
icons?: SemanticIconMap;
|
|
448
|
+
/** Icon entries with their functions. Only icon resolution reads it. */
|
|
449
|
+
iconEntries?: Readonly<Record<string, StoredIconEntry>>;
|
|
450
|
+
/** The icon variant names this theme lists, its own or inherited. */
|
|
451
|
+
iconVariants?: readonly string[];
|
|
452
|
+
/**
|
|
453
|
+
* The variant list of the theme that defined each inherited function
|
|
454
|
+
* entry, where it differs from `iconVariants`.
|
|
455
|
+
*/
|
|
456
|
+
iconEntryVariants?: Readonly<Record<string, readonly string[] | undefined>>;
|
|
457
|
+
/** Component icon slots: names, `null`, and static requests. Function slots are left out. */
|
|
458
|
+
componentIcons?: ComponentIconStaticMap;
|
|
459
|
+
/** Component icon slot values with their functions. Only slot resolution reads it. */
|
|
460
|
+
componentIconValues?: Readonly<Record<string, StoredComponentIconValue | undefined>>;
|
|
461
|
+
/**
|
|
462
|
+
* Type-only: the names in `iconVariants`, so a theme that extends this one
|
|
463
|
+
* types its icon entries by the list it inherits. Never set. Method
|
|
464
|
+
* syntax keeps themes with different lists assignable to each other.
|
|
465
|
+
*/
|
|
466
|
+
__iconVariant?(variant: IconVariant): void;
|
|
406
467
|
/** Indicator overrides. Absent when this theme does not set any. */
|
|
407
468
|
indicators?: IndicatorRegistry;
|
|
408
469
|
/**
|
|
@@ -450,4 +511,4 @@ interface MediaThemeProps {
|
|
|
450
511
|
fallback?: 'dark' | 'light';
|
|
451
512
|
}
|
|
452
513
|
//#endregion
|
|
453
|
-
export {
|
|
514
|
+
export { expandMotionScale as A, IndicatorProps as B, WidthBreakpointName as C, RadiusScaleConfig as D, expandTypeScale as E, IndicatorFamily as F, IndicatorSize as H, IndicatorFamilyMap as I, IndicatorMap as L, expandColorScale as M, CoreIndicatorName as N, expandRadiusScale as O, IndicatorComponent as P, IndicatorName as R, WIDTH_BREAKPOINT_NAMES as S, TypeScaleConfig as T, IndicatorState as U, IndicatorRegistry as V, ThemeAdaptationRule as _, StyleOverrides as a, ThemeAdaptationWidthCondition as b, ThemeMode as c, ThemeTokenValue as d, ThemeTokens as f, ThemeAdaptationCondition as g, DEFAULT_WIDTH_BREAKPOINTS as h, MediaThemeProps as i, ColorScaleConfig as j, MotionScaleConfig as k, ThemeProps as l, TypographyRole as m, DefineThemeInput as n, ThemeDefinition as o, TypographyConfig as p, MediaThemeMode as r, ThemeIconVariant as s, ComponentStyleMap as t, ThemeSurfaceInput as u, ThemeAdaptationTypographyConfig as v, WidthBreakpoints as w, ThemeAdaptations as x, ThemeAdaptationValue as y, IndicatorPosition as z };
|
|
@@ -1,4 +1,47 @@
|
|
|
1
1
|
import { Component, VNodeChild } from "vue";
|
|
2
|
+
//#region src/Icon/themeIcons.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Icon variant names an application uses. Astryx defines none: a theme lists
|
|
5
|
+
* the names it supports in `defineTheme({ iconVariants })`, and an
|
|
6
|
+
* application augments this map with the names it requests.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* declare module '@astryx-vue/core/Icon' {
|
|
11
|
+
* interface IconVariantMap {
|
|
12
|
+
* outline: true
|
|
13
|
+
* filled: true
|
|
14
|
+
* }
|
|
15
|
+
* }
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
interface IconVariantMap {}
|
|
19
|
+
/** A variant name from the augmentable {@link IconVariantMap}. */
|
|
20
|
+
type IconVariant = keyof IconVariantMap & string;
|
|
21
|
+
/**
|
|
22
|
+
* What `Icon` asks a function entry for: the size it renders at (explicit
|
|
23
|
+
* `size`, then the owning component's default, then `md`) and a variant the
|
|
24
|
+
* entry can receive, or none.
|
|
25
|
+
*/
|
|
26
|
+
interface IconRequest<Variant extends string = IconVariant> {
|
|
27
|
+
readonly size: IconSize;
|
|
28
|
+
readonly variant?: Variant;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* A theme's icon entry: an Iconify id, or a pure synchronous function of the
|
|
32
|
+
* {@link IconRequest} that returns one.
|
|
33
|
+
*
|
|
34
|
+
* A function reads only the request: no composables, DOM measurement,
|
|
35
|
+
* browser globals, or mutable state. Its result is final: `null`,
|
|
36
|
+
* `undefined`, or an empty string draws no glyph instead of falling back to
|
|
37
|
+
* the built-in id.
|
|
38
|
+
*/
|
|
39
|
+
type ThemeIconEntry<Variant extends string = IconVariant> = string | ((request: IconRequest<Variant>) => string | null | undefined);
|
|
40
|
+
/** A theme's icon entries by semantic name or namespaced key. */
|
|
41
|
+
type ThemeIconEntries<Variant extends string = IconVariant> = Readonly<Record<string, ThemeIconEntry<Variant>>>;
|
|
42
|
+
/** How resolution holds any entry, whatever variant names it was typed for. */
|
|
43
|
+
type StoredIconEntry = ThemeIconEntry<never>;
|
|
44
|
+
//#endregion
|
|
2
45
|
//#region src/Icon/types.d.ts
|
|
3
46
|
/**
|
|
4
47
|
* Icon sizes are expressed in `rem` so they scale with the root font-size.
|
|
@@ -111,6 +154,17 @@ interface IconProps {
|
|
|
111
154
|
* supplied by an owning astryx-vue component, then falls back to `md`.
|
|
112
155
|
*/
|
|
113
156
|
size?: IconSize;
|
|
157
|
+
/**
|
|
158
|
+
* Requests the nearest theme's alternate artwork for a semantic name, such
|
|
159
|
+
* as `filled`. Names come from the augmentable `IconVariantMap`.
|
|
160
|
+
*
|
|
161
|
+
* A theme's function entry receives the variant only when the theme lists
|
|
162
|
+
* it in `iconVariants` and, for an inherited entry, the theme that defined
|
|
163
|
+
* the entry lists it too. Otherwise the entry draws its normal artwork.
|
|
164
|
+
* `name`, a CSS class, a component, and the default slot ignore it, and it
|
|
165
|
+
* is never written to the DOM.
|
|
166
|
+
*/
|
|
167
|
+
variant?: IconVariant;
|
|
114
168
|
/**
|
|
115
169
|
* Accessible name for the icon.
|
|
116
170
|
*
|
|
@@ -132,4 +186,4 @@ interface IconSlots {
|
|
|
132
186
|
default?: () => VNodeChild;
|
|
133
187
|
}
|
|
134
188
|
//#endregion
|
|
135
|
-
export { IconRegistry as a, NamespacedIconName as c, IconProps as i, IconColor as n, IconSize as o, IconName as r, IconSlots as s, ExtendedIconName as t };
|
|
189
|
+
export { IconRegistry as a, NamespacedIconName as c, IconVariantMap as d, StoredIconEntry as f, IconProps as i, IconRequest as l, ThemeIconEntry as m, IconColor as n, IconSize as o, ThemeIconEntries as p, IconName as r, IconSlots as s, ExtendedIconName as t, IconVariant as u };
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
+
import { n as isDevBuild } from "./devBuild-G249YcdZ.js";
|
|
1
2
|
import { toValue, watch } from "vue";
|
|
2
3
|
//#region src/composables/useDevWarning.ts
|
|
3
|
-
/** 生产构建里 `import.meta.env.DEV` 是 false,这两个函数整段会被摇掉。 */
|
|
4
|
-
function isDevBuild() {
|
|
5
|
-
return import.meta.env?.DEV === true;
|
|
6
|
-
}
|
|
7
4
|
/**
|
|
8
5
|
* 对应原版 Astryx 的 `devWarn`。
|
|
9
6
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as _sfc_main$2 } from "./Icon-
|
|
2
|
-
import {
|
|
1
|
+
import { t as _sfc_main$2 } from "./Icon-DAcZMgiJ.js";
|
|
2
|
+
import { s as themeContextKey } from "./themeIcons-CqGF0fwW.js";
|
|
3
3
|
import { t as isRenderable } from "./isRenderable-BnKHIqfd.js";
|
|
4
4
|
import { n as decorativeAttrs, t as _sfc_main$3 } from "./CheckboxIndicator-fH4d-JE1.js";
|
|
5
5
|
import { computed, createBlock, createCommentVNode, createElementBlock, defineComponent, inject, mergeProps, openBlock, renderSlot, unref, useAttrs, useSlots, useTemplateRef } from "vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as useClickableContainer } from "./usePressFeedback-Dt76SpLj.js";
|
|
2
2
|
import { toValue } from "vue";
|
|
3
3
|
//#region src/composables/useInputContainer.ts
|
|
4
4
|
/** 点了以后接焦点的输入框类型:这些类型自己不会因为点击容器而聚焦。 */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as _sfc_main } from "./FieldIcon-
|
|
2
|
-
import { t as _sfc_main$1 } from "./FieldInfoTip-
|
|
1
|
+
import { t as _sfc_main } from "./FieldIcon-BB08VXf7.js";
|
|
2
|
+
import { t as _sfc_main$1 } from "./FieldInfoTip-CPhFmGaY.js";
|
|
3
3
|
import { computed, toValue } from "vue";
|
|
4
4
|
//#region src/composables/useInputStatusIcon.ts
|
|
5
5
|
/**
|
|
@@ -49,7 +49,7 @@ function shouldDeferToCaret(target, key) {
|
|
|
49
49
|
* 由这里维持唯一的 tab 停靠点。横向时会看容器的书写方向,RTL 里左右对调。
|
|
50
50
|
*/
|
|
51
51
|
function useListFocus(options = {}) {
|
|
52
|
-
const { itemSelector = "[role=\"menuitem\"]", boundarySelector, wrap = true, onEscape, hasHomeEnd = true, hasPaging = false, hasRovingTabIndex = false, hasCaretGuard = false } = options;
|
|
52
|
+
const { itemSelector = "[role=\"menuitem\"]", boundarySelector, wrap = true, onEscape, hasHomeEnd = true, hasPaging = false, hasRovingTabIndex = false, hasCaretGuard = false, hasDisabledTabStop = false } = options;
|
|
53
53
|
const listRef = ref(null);
|
|
54
54
|
function isItemDisabled(el) {
|
|
55
55
|
return el.getAttribute("aria-disabled") === "true" || el.disabled === true || el.hasAttribute("disabled");
|
|
@@ -94,8 +94,9 @@ function useListFocus(options = {}) {
|
|
|
94
94
|
function syncTabStops() {
|
|
95
95
|
const items = getItems();
|
|
96
96
|
const enabled = items.filter((el) => !isItemDisabled(el));
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
const candidates = enabled.length > 0 ? enabled : hasDisabledTabStop ? items : [];
|
|
98
|
+
if (candidates.length === 0) return;
|
|
99
|
+
const tabbable = candidates.find((el) => el.getAttribute("tabindex") === "0") ?? candidates[0];
|
|
99
100
|
for (const el of items) setTabIndex(el, el === tabbable ? 0 : -1);
|
|
100
101
|
}
|
|
101
102
|
function focusIndex(items, index) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
|
|
2
|
-
import { t as _sfc_main$4 } from "./Icon-
|
|
3
|
-
import { t as _sfc_main$5 } from "./Item-
|
|
2
|
+
import { t as _sfc_main$4 } from "./Icon-DAcZMgiJ.js";
|
|
3
|
+
import { t as _sfc_main$5 } from "./Item-Dbf2g0Ee.js";
|
|
4
4
|
import { t as _sfc_main$6 } from "./CheckboxIndicator-fH4d-JE1.js";
|
|
5
5
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, inject, mergeModels, mergeProps, openBlock, provide, ref, renderSlot, toDisplayString, unref, useAttrs, useModel, useSlots, watch, withCtx } from "vue";
|
|
6
6
|
import "../styles/dropdown-menu.css";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
|
|
2
|
-
import { t as useListFocus } from "./useListFocus-
|
|
2
|
+
import { t as useListFocus } from "./useListFocus-CbHkLT-X.js";
|
|
3
3
|
import { t as createHideTimer } from "./hoverIntent-DMHGb85c.js";
|
|
4
4
|
import { getCurrentScope, onScopeDispose, toValue, watch } from "vue";
|
|
5
5
|
/**
|