@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, inject, mergeProps, normalizeClass, openBlock, provide, renderSlot, resolveDynamicComponent, toValue, useId } from "vue";
|
|
2
|
+
import { a as resolveSemanticIcon, r as resolveThemeIcon, s as themeContextKey } from "./themeIcons-CqGF0fwW.js";
|
|
3
|
+
import { i as getIcon, s as warnMissingIcon } from "./registry-fNY3jasS.js";
|
|
4
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, inject, mergeProps, normalizeClass, onMounted, onUpdated, openBlock, provide, renderSlot, resolveDynamicComponent, shallowRef, toValue, useId } from "vue";
|
|
5
5
|
import "../styles/icon.css";
|
|
6
6
|
//#region src/Icon/context.ts
|
|
7
7
|
/**
|
|
@@ -157,78 +157,6 @@ function renderIconMarkup(icon, idPrefix) {
|
|
|
157
157
|
return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="${built.viewBox}" width="100%" height="100%" aria-hidden="true" focusable="false">${body}</svg>`;
|
|
158
158
|
}
|
|
159
159
|
//#endregion
|
|
160
|
-
//#region src/Icon/semantic.ts
|
|
161
|
-
/**
|
|
162
|
-
* Semantic name to Iconify id.
|
|
163
|
-
*
|
|
164
|
-
* The names describe the job (close, search, check). The id is the drawing.
|
|
165
|
-
* Lucide matches the upstream themes. A theme replaces any of these, or adds
|
|
166
|
-
* its own keys, through `defineTheme({ icons })`.
|
|
167
|
-
*
|
|
168
|
-
* The drawing is used only after that collection is registered. Until then
|
|
169
|
-
* the built-in glyph stays, so a missing collection does not blank the icon.
|
|
170
|
-
*
|
|
171
|
-
* `upload` is its own name, not `arrowUp`: a theme can redraw the upload
|
|
172
|
-
* affordance without changing sort arrows or the send button.
|
|
173
|
-
*/
|
|
174
|
-
const defaultSemanticIcons = {
|
|
175
|
-
close: "lucide:x",
|
|
176
|
-
chevronDown: "lucide:chevron-down",
|
|
177
|
-
chevronLeft: "lucide:chevron-left",
|
|
178
|
-
chevronRight: "lucide:chevron-right",
|
|
179
|
-
chevronsLeft: "lucide:chevrons-left",
|
|
180
|
-
chevronsRight: "lucide:chevrons-right",
|
|
181
|
-
check: "lucide:check",
|
|
182
|
-
success: "lucide:circle-check",
|
|
183
|
-
error: "lucide:circle-x",
|
|
184
|
-
warning: "lucide:triangle-alert",
|
|
185
|
-
info: "lucide:info",
|
|
186
|
-
calendar: "lucide:calendar",
|
|
187
|
-
clock: "lucide:clock",
|
|
188
|
-
externalLink: "lucide:external-link",
|
|
189
|
-
menu: "lucide:menu",
|
|
190
|
-
moreHorizontal: "lucide:ellipsis",
|
|
191
|
-
search: "lucide:search",
|
|
192
|
-
upload: "lucide:upload",
|
|
193
|
-
arrowUp: "lucide:arrow-up",
|
|
194
|
-
arrowDown: "lucide:arrow-down",
|
|
195
|
-
arrowsUpDown: "lucide:arrow-up-down",
|
|
196
|
-
funnel: "lucide:funnel",
|
|
197
|
-
eyeSlash: "lucide:eye-off",
|
|
198
|
-
viewColumns: "lucide:columns-3",
|
|
199
|
-
copy: "lucide:copy",
|
|
200
|
-
checkDouble: "lucide:check-check",
|
|
201
|
-
wrench: "lucide:wrench",
|
|
202
|
-
stop: "lucide:square",
|
|
203
|
-
microphone: "lucide:mic",
|
|
204
|
-
image: "lucide:image"
|
|
205
|
-
};
|
|
206
|
-
/**
|
|
207
|
-
* The Iconify id for a semantic name.
|
|
208
|
-
*
|
|
209
|
-
* Theme entries win, including keys the package does not ship, such as a
|
|
210
|
-
* namespaced `numberInput:stepperDown`. An unknown name with no theme entry
|
|
211
|
-
* returns undefined, so a CSS class can still pass through `icon`.
|
|
212
|
-
*/
|
|
213
|
-
function resolveSemanticIcon(name, icons) {
|
|
214
|
-
if (name == null || name === "") return void 0;
|
|
215
|
-
const override = icons?.[name];
|
|
216
|
-
if (override) return override;
|
|
217
|
-
return defaultSemanticIcons[name];
|
|
218
|
-
}
|
|
219
|
-
//#endregion
|
|
220
|
-
//#region src/Icon/useSemanticIcon.ts
|
|
221
|
-
/**
|
|
222
|
-
* The Iconify id for a semantic icon name, from the nearest theme.
|
|
223
|
-
*
|
|
224
|
-
* Returns undefined when the name is not a semantic icon and the theme does
|
|
225
|
-
* not map it. Callers then keep the built-in glyph or a CSS class.
|
|
226
|
-
*/
|
|
227
|
-
function useSemanticIcon(name) {
|
|
228
|
-
const context = inject(themeContextKey, null);
|
|
229
|
-
return computed(() => resolveSemanticIcon(toValue(name), context?.value.theme.icons));
|
|
230
|
-
}
|
|
231
|
-
//#endregion
|
|
232
160
|
//#region src/Icon/Icon.vue
|
|
233
161
|
const _hoisted_1 = [
|
|
234
162
|
"data-kind",
|
|
@@ -244,25 +172,42 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
244
172
|
icon: {},
|
|
245
173
|
color: { default: "inherit" },
|
|
246
174
|
size: {},
|
|
175
|
+
variant: {},
|
|
247
176
|
label: {}
|
|
248
177
|
},
|
|
249
|
-
setup(__props) {
|
|
178
|
+
setup(__props, { expose: __expose }) {
|
|
250
179
|
const props = __props;
|
|
251
180
|
const inheritedSize = useIconDefaultSize();
|
|
181
|
+
const themeContext = inject(themeContextKey, null);
|
|
252
182
|
const idPrefix = `i${useId().replace(/\W/g, "")}-`;
|
|
253
183
|
const directName = computed(() => props.name != null && props.name !== "" ? props.name : void 0);
|
|
254
|
-
const
|
|
255
|
-
const registeredSemanticId = computed(() => {
|
|
256
|
-
const id = semanticId.value;
|
|
257
|
-
if (!id || directName.value != null) return void 0;
|
|
258
|
-
return getIcon(id) ? id : void 0;
|
|
259
|
-
});
|
|
184
|
+
const semanticName = computed(() => typeof props.icon === "string" && props.icon !== "" && directName.value == null ? props.icon : void 0);
|
|
260
185
|
const resolvedSize = computed(() => {
|
|
261
186
|
if (props.size != null) return props.size;
|
|
262
187
|
if (inheritedSize.value != null) return inheritedSize.value;
|
|
263
188
|
if (directName.value != null) return void 0;
|
|
264
189
|
return "md";
|
|
265
190
|
});
|
|
191
|
+
/**
|
|
192
|
+
* The nearest theme's answer for the semantic name at the size this icon
|
|
193
|
+
* renders: an id, `null` when its function entry answered nothing (final),
|
|
194
|
+
* or `undefined` when the theme does not map the name.
|
|
195
|
+
*/
|
|
196
|
+
const themedId = computed(() => {
|
|
197
|
+
const name = semanticName.value;
|
|
198
|
+
if (name == null) return void 0;
|
|
199
|
+
return resolveThemeIcon(name, themeContext?.value.theme, {
|
|
200
|
+
size: resolvedSize.value ?? "md",
|
|
201
|
+
variant: props.variant
|
|
202
|
+
});
|
|
203
|
+
});
|
|
204
|
+
const isHidden = computed(() => themedId.value === null);
|
|
205
|
+
const semanticId = computed(() => themedId.value === void 0 ? resolveSemanticIcon(semanticName.value) : themedId.value ?? void 0);
|
|
206
|
+
const registeredSemanticId = computed(() => {
|
|
207
|
+
const id = semanticId.value;
|
|
208
|
+
if (!id || directName.value != null) return void 0;
|
|
209
|
+
return getIcon(id) ? id : void 0;
|
|
210
|
+
});
|
|
266
211
|
const iconMarkup = computed(() => {
|
|
267
212
|
const query = directName.value ?? registeredSemanticId.value;
|
|
268
213
|
if (query == null) return void 0;
|
|
@@ -283,6 +228,19 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
283
228
|
return props.icon;
|
|
284
229
|
});
|
|
285
230
|
const iconComponent = computed(() => props.icon != null && typeof props.icon !== "string" ? props.icon : void 0);
|
|
231
|
+
const root = shallowRef(null);
|
|
232
|
+
const svg = shallowRef(null);
|
|
233
|
+
function syncSvg() {
|
|
234
|
+
svg.value = root.value?.querySelector("svg") ?? null;
|
|
235
|
+
}
|
|
236
|
+
onMounted(syncSvg);
|
|
237
|
+
onUpdated(syncSvg);
|
|
238
|
+
__expose({
|
|
239
|
+
/** The icon's root box. */
|
|
240
|
+
element: root,
|
|
241
|
+
/** The rendered `<svg>`, or `null` when the glyph has none. */
|
|
242
|
+
svg
|
|
243
|
+
});
|
|
286
244
|
const a11yAttrs = computed(() => {
|
|
287
245
|
const label = props.label;
|
|
288
246
|
return label != null && label !== "" ? {
|
|
@@ -291,7 +249,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
291
249
|
} : { "aria-hidden": "true" };
|
|
292
250
|
});
|
|
293
251
|
return (_ctx, _cache) => {
|
|
294
|
-
return openBlock(), createElementBlock("span", mergeProps(
|
|
252
|
+
return !isHidden.value ? (openBlock(), createElementBlock("span", mergeProps({
|
|
253
|
+
key: 0,
|
|
254
|
+
ref_key: "root",
|
|
255
|
+
ref: root
|
|
256
|
+
}, a11yAttrs.value, {
|
|
295
257
|
class: "astryx-icon",
|
|
296
258
|
"data-kind": glyphSlug.value || registeredSemanticId.value ? void 0 : "graphic",
|
|
297
259
|
"data-color": __props.color,
|
|
@@ -307,9 +269,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
307
269
|
key: 1,
|
|
308
270
|
class: normalizeClass(["astryx-icon__glyph", `astryx-icon--${glyphSlug.value}`])
|
|
309
271
|
}, null, 2)) : providedClass.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [createCommentVNode("\n Utility icon classes (UnoCSS `i-*`) set width and height to 100% outside\n any layer, which would override this box's size if the class sat on it.\n The box owns the size; the class only paints the inside.\n "), createElementVNode("span", { class: normalizeClass(["astryx-icon__external", providedClass.value]) }, null, 2)], 2112)) : iconComponent.value && directName.value == null ? (openBlock(), createBlock(resolveDynamicComponent(iconComponent.value), { key: 3 })) : directName.value == null ? renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 4) : createCommentVNode("v-if", true)
|
|
310
|
-
], 16, _hoisted_1);
|
|
272
|
+
], 16, _hoisted_1)) : createCommentVNode("v-if", true);
|
|
311
273
|
};
|
|
312
274
|
}
|
|
313
275
|
});
|
|
314
276
|
//#endregion
|
|
315
|
-
export {
|
|
277
|
+
export { provideIconSize as a, isIconGlyph as i, ICON_GLYPHS as n, iconGlyphSlug as r, _sfc_main as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as IconButtonSlots, n as IconButtonEmits, r as IconButtonProps, t as _default } from "../index-
|
|
1
|
+
import { i as IconButtonSlots, n as IconButtonEmits, r as IconButtonProps, t as _default } from "../index-D57GW53K.js";
|
|
2
2
|
export { _default as IconButton, _default as default, type IconButtonEmits, type IconButtonProps, type IconButtonSlots };
|
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-7W3G5gok.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({
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { B as
|
|
2
|
-
import { a as _default$1, i as isCoreIndicatorName, n as defaultIndicators, o as isRenderable, r as getIndicator, s as _default, t as useIndicator } from "../index-
|
|
1
|
+
import { B as IndicatorProps, F as IndicatorFamily, H as IndicatorSize, I as IndicatorFamilyMap, L as IndicatorMap, N as CoreIndicatorName, P as IndicatorComponent, R as IndicatorName, U as IndicatorState, V as IndicatorRegistry, z as IndicatorPosition } from "../types-Bq4Yl6CS.js";
|
|
2
|
+
import { a as _default$1, i as isCoreIndicatorName, n as defaultIndicators, o as isRenderable, r as getIndicator, s as _default, t as useIndicator } from "../index-BU78NOP-.js";
|
|
3
3
|
export { _default as CheckIndicator, type CoreIndicatorName, type IndicatorComponent, type IndicatorFamily, type IndicatorFamilyMap, type IndicatorMap, type IndicatorName, type IndicatorPosition, type IndicatorProps, type IndicatorRegistry, type IndicatorSize, type IndicatorState, _default$1 as RadioIndicator, defaultIndicators, getIndicator, isCoreIndicatorName, isRenderable, useIndicator };
|
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-DGWEjVpB.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-CCYGMtZy.js";
|
|
2
2
|
export { _default as InfoTip, _default as default, type InfoTipProps, type InfoTipSize };
|
package/dist/InfoTip/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./Icon-
|
|
1
|
+
import { t as _sfc_main$1 } from "./Icon-DAcZMgiJ.js";
|
|
2
2
|
import { s as useAstryxMessages } from "./context-BLSiTojH.js";
|
|
3
3
|
import { n as _sfc_main$2, t as useTooltip } from "./useTooltip-BKsCTWdb.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";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./FieldIcon-
|
|
2
|
-
import { t as _sfc_main$2 } from "./IconButton-
|
|
1
|
+
import { t as _sfc_main$1 } from "./FieldIcon-BB08VXf7.js";
|
|
2
|
+
import { t as _sfc_main$2 } from "./IconButton-Cn4re9lo.js";
|
|
3
3
|
import { t as useTranslator } from "./useTranslator-BDUOzbP_.js";
|
|
4
4
|
import { createBlock, createVNode, defineComponent, mergeProps, openBlock, unref, useAttrs, withCtx } from "vue";
|
|
5
5
|
//#region src/Field/InputClearButton.vue
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as InputGroupSlots, c as INPUT_GROUP_KEY, i as InputGroupSize, l as InputGroupContext, n as _default, o as InputGroupTextProps, r as InputGroupProps, s as InputGroupTextSlots, t as _default$1 } from "../index-
|
|
1
|
+
import { a as InputGroupSlots, c as INPUT_GROUP_KEY, i as InputGroupSize, l as InputGroupContext, n as _default, o as InputGroupTextProps, r as InputGroupProps, s as InputGroupTextSlots, t as _default$1 } from "../index-BZuEYd9y.js";
|
|
2
2
|
export { INPUT_GROUP_KEY, _default as InputGroup, type InputGroupContext, type InputGroupProps, type InputGroupSize, type InputGroupSlots, _default$1 as InputGroupText, type InputGroupTextProps, type InputGroupTextSlots };
|
package/dist/InputGroup/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as INPUT_GROUP_KEY } from "../context-
|
|
2
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../InputGroup-
|
|
1
|
+
import { t as INPUT_GROUP_KEY } from "../context-Bg7eSJ47.js";
|
|
2
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../InputGroup-DQpDwkjF.js";
|
|
3
3
|
export { INPUT_GROUP_KEY, _sfc_main as InputGroup, _sfc_main$1 as InputGroupText };
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
import { r as useInputGroupDisabled, t as INPUT_GROUP_KEY } from "./context-Bg7eSJ47.js";
|
|
1
2
|
import { i as useSize, r as provideSize } from "./SizeContext-BbaF-SEx.js";
|
|
2
|
-
import { t as _sfc_main$2 } from "./Field-
|
|
3
|
-
import {
|
|
4
|
-
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeClass, openBlock, provide, renderSlot, useId, withCtx } from "vue";
|
|
3
|
+
import { t as _sfc_main$2 } from "./Field-CdrGdY7U.js";
|
|
4
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeClass, openBlock, provide, renderSlot, unref, useId, withCtx } from "vue";
|
|
5
5
|
import "../styles/input-group.css";
|
|
6
6
|
//#region src/InputGroup/InputGroup.vue
|
|
7
|
-
const _hoisted_1 = [
|
|
7
|
+
const _hoisted_1 = [
|
|
8
|
+
"aria-disabled",
|
|
9
|
+
"aria-labelledby",
|
|
10
|
+
"aria-describedby"
|
|
11
|
+
];
|
|
8
12
|
const _hoisted_2 = {
|
|
9
13
|
key: 0,
|
|
10
14
|
class: "astryx-input-group-addon before"
|
|
@@ -14,12 +18,13 @@ const _hoisted_4 = {
|
|
|
14
18
|
key: 1,
|
|
15
19
|
class: "astryx-input-group-addon after"
|
|
16
20
|
};
|
|
17
|
-
const _hoisted_5 =
|
|
21
|
+
const _hoisted_5 = ["aria-disabled"];
|
|
22
|
+
const _hoisted_6 = {
|
|
18
23
|
key: 0,
|
|
19
24
|
class: "astryx-input-group-addon before"
|
|
20
25
|
};
|
|
21
|
-
const
|
|
22
|
-
const
|
|
26
|
+
const _hoisted_7 = { class: "astryx-input-group-field" };
|
|
27
|
+
const _hoisted_8 = {
|
|
23
28
|
key: 1,
|
|
24
29
|
class: "astryx-input-group-addon after"
|
|
25
30
|
};
|
|
@@ -53,7 +58,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
53
58
|
const props = __props;
|
|
54
59
|
const size = useSize(() => props.size, "md");
|
|
55
60
|
provideSize(size);
|
|
56
|
-
|
|
61
|
+
const disabled = useInputGroupDisabled(() => props.disabled);
|
|
57
62
|
const inputId = `astryx-input-group-${useId()}`;
|
|
58
63
|
const labelId = computed(() => props.label ? `${inputId}-label` : void 0);
|
|
59
64
|
const descriptionId = computed(() => props.label && props.description ? `${inputId}-description` : void 0);
|
|
@@ -61,12 +66,12 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
61
66
|
const describedBy = computed(() => [descriptionId.value, statusId.value].filter(Boolean).join(" ") || void 0);
|
|
62
67
|
provide(INPUT_GROUP_KEY, {
|
|
63
68
|
size,
|
|
64
|
-
disabled
|
|
69
|
+
disabled,
|
|
65
70
|
labelId,
|
|
66
71
|
describedBy
|
|
67
72
|
});
|
|
68
73
|
const groupClass = computed(() => [`size-${size.value}`, {
|
|
69
|
-
"is-disabled":
|
|
74
|
+
"is-disabled": disabled.value,
|
|
70
75
|
[`status-${props.status?.type}`]: props.status != null
|
|
71
76
|
}]);
|
|
72
77
|
return (_ctx, _cache) => {
|
|
@@ -77,7 +82,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
77
82
|
"input-id": inputId,
|
|
78
83
|
description: __props.description,
|
|
79
84
|
"is-label-hidden": __props.isLabelHidden,
|
|
80
|
-
"is-disabled":
|
|
85
|
+
"is-disabled": unref(disabled),
|
|
81
86
|
"is-optional": __props.isOptional,
|
|
82
87
|
"is-required": __props.isRequired,
|
|
83
88
|
status: __props.status,
|
|
@@ -88,6 +93,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
88
93
|
default: withCtx(() => [createElementVNode("div", {
|
|
89
94
|
class: normalizeClass(["astryx-input-group", groupClass.value]),
|
|
90
95
|
role: "group",
|
|
96
|
+
"aria-disabled": unref(disabled) || void 0,
|
|
91
97
|
"aria-labelledby": labelId.value,
|
|
92
98
|
"aria-describedby": describedBy.value
|
|
93
99
|
}, [
|
|
@@ -107,12 +113,13 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
107
113
|
"label-tooltip"
|
|
108
114
|
])) : (openBlock(), createElementBlock("div", {
|
|
109
115
|
key: 1,
|
|
110
|
-
class: normalizeClass(["astryx-input-group", groupClass.value])
|
|
116
|
+
class: normalizeClass(["astryx-input-group", groupClass.value]),
|
|
117
|
+
"aria-disabled": unref(disabled) || void 0
|
|
111
118
|
}, [
|
|
112
|
-
_ctx.$slots.before ? (openBlock(), createElementBlock("div",
|
|
113
|
-
createElementVNode("div",
|
|
114
|
-
_ctx.$slots.after ? (openBlock(), createElementBlock("div",
|
|
115
|
-
],
|
|
119
|
+
_ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_6, [renderSlot(_ctx.$slots, "before")])) : createCommentVNode("v-if", true),
|
|
120
|
+
createElementVNode("div", _hoisted_7, [renderSlot(_ctx.$slots, "default")]),
|
|
121
|
+
_ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_8, [renderSlot(_ctx.$slots, "after")])) : createCommentVNode("v-if", true)
|
|
122
|
+
], 10, _hoisted_5));
|
|
116
123
|
};
|
|
117
124
|
}
|
|
118
125
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as usePressFeedback } from "./usePressFeedback-
|
|
1
|
+
import { t as usePressFeedback } from "./usePressFeedback-Dt76SpLj.js";
|
|
2
2
|
import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
|
|
3
3
|
import { n as isSafeUrl } from "./safeUrl-CsvfcZ9m.js";
|
|
4
4
|
import { n as useLinkComponent } from "./context-C_peZbXf.js";
|
|
5
5
|
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";
|
|
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, watchEffect, withCtx, withModifiers } from "vue";
|
|
7
7
|
import "../styles/list.css";
|
|
8
8
|
//#region src/List/context.ts
|
|
9
9
|
const listContextKey = defineLayerScopedKey("astryx-list-context", void 0);
|
|
@@ -357,8 +357,16 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
357
357
|
/** 链接内容用的根组件:`as` 写了组件就用它,否则用 LinkProvider 给的默认值。 */
|
|
358
358
|
const customLink = computed(() => typeof props.as === "string" ? linkComponent.value : props.as);
|
|
359
359
|
const isLinkContent = computed(() => safeHref.value != null && customLink.value != null);
|
|
360
|
-
|
|
360
|
+
const { pressActionProps } = usePressFeedback({
|
|
361
|
+
hasOverlay: false,
|
|
362
|
+
isContainer: true
|
|
363
|
+
});
|
|
361
364
|
const pressable = computed(() => isInteractive.value && !props.isDisabled);
|
|
365
|
+
/**
|
|
366
|
+
* 行自己有动作(点击、链接、或把点击转给嵌套控件)时,它是可按容器:
|
|
367
|
+
* 手指按在行里别的控件上,那一下不执行行的动作,行就不亮。带父级角色的行(选项、菜单项)整行就是动作。
|
|
368
|
+
*/
|
|
369
|
+
const isPressContainer = computed(() => pressable.value && (isDelegate.value || !hasParentRole.value));
|
|
362
370
|
const resolvedTarget = computed(() => props.target);
|
|
363
371
|
const resolvedRel = computed(() => {
|
|
364
372
|
const tokens = new Set((props.rel ?? "").split(/\s+/).filter(Boolean));
|
|
@@ -404,12 +412,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
404
412
|
"rel": resolvedRel.value,
|
|
405
413
|
"target": resolvedTarget.value,
|
|
406
414
|
"aria-disabled": props.isDisabled || void 0,
|
|
407
|
-
"tabindex": props.isDisabled ? -1 : void 0
|
|
415
|
+
"tabindex": props.isDisabled ? -1 : void 0,
|
|
416
|
+
...pressActionProps
|
|
408
417
|
};
|
|
409
418
|
if (contentTag.value === "button") return {
|
|
410
419
|
type: "button",
|
|
411
420
|
disabled: props.isDisabled,
|
|
412
|
-
onClick: handleContentClick
|
|
421
|
+
onClick: handleContentClick,
|
|
422
|
+
...pressActionProps
|
|
413
423
|
};
|
|
414
424
|
return {};
|
|
415
425
|
});
|
|
@@ -451,6 +461,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
451
461
|
}));
|
|
452
462
|
event.stopPropagation();
|
|
453
463
|
}
|
|
464
|
+
watchEffect((onCleanup) => {
|
|
465
|
+
const control = isDelegate.value ? toValue(props.interactiveRef) : null;
|
|
466
|
+
if (control == null) return;
|
|
467
|
+
for (const [name, value] of Object.entries(pressActionProps)) control.setAttribute(name, value);
|
|
468
|
+
onCleanup(() => {
|
|
469
|
+
for (const name of Object.keys(pressActionProps)) control.removeAttribute(name);
|
|
470
|
+
});
|
|
471
|
+
});
|
|
454
472
|
const SWIPE_BLOCKED_ROLES = /* @__PURE__ */ new Set([
|
|
455
473
|
"option",
|
|
456
474
|
"menuitem",
|
|
@@ -518,6 +536,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
518
536
|
"data-interactive": isInteractive.value || void 0,
|
|
519
537
|
"data-selected": __props.isSelected || void 0,
|
|
520
538
|
"data-astryx-pressable": pressable.value ? "" : void 0,
|
|
539
|
+
"data-astryx-press-container": isPressContainer.value ? "" : void 0,
|
|
521
540
|
"data-swipe": swipeEnabled.value ? unref(swipe).phase.value : void 0,
|
|
522
541
|
role: role.value,
|
|
523
542
|
style: unref(attrs).style,
|
|
@@ -609,6 +628,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
609
628
|
"data-interactive",
|
|
610
629
|
"data-selected",
|
|
611
630
|
"data-astryx-pressable",
|
|
631
|
+
"data-astryx-press-container",
|
|
612
632
|
"data-swipe",
|
|
613
633
|
"role",
|
|
614
634
|
"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-Dn1LTcNY.js";
|
|
2
2
|
export { _sfc_main as Kbd };
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
+
import { n as isDevBuild, t as devPropError } from "./devBuild-G249YcdZ.js";
|
|
1
2
|
import { t as isApplePlatform } from "./isApplePlatform-B1ju6F5B.js";
|
|
2
3
|
import { Fragment, computed, createElementBlock, defineComponent, mergeProps, onMounted, openBlock, ref, renderList, toDisplayString, unref, useAttrs } from "vue";
|
|
3
4
|
import "../styles/kbd.css";
|
|
4
5
|
//#region src/Kbd/keys.ts
|
|
5
6
|
const KEY_ALIASES = /* @__PURE__ */ new Map([["esc", "escape"], ["return", "enter"]]);
|
|
6
7
|
/**
|
|
7
|
-
* Glyphs painted in a key badge. A `Map` keeps an unknown
|
|
8
|
-
* `constructor` from resolving to an object prototype member.
|
|
8
|
+
* Glyphs painted in a key badge on every platform. A `Map` keeps an unknown
|
|
9
|
+
* key such as `constructor` from resolving to an object prototype member.
|
|
9
10
|
*/
|
|
10
11
|
const KEY_DISPLAY = /* @__PURE__ */ new Map([
|
|
11
|
-
["ctrl", "⌃"],
|
|
12
|
-
["alt", "⌥"],
|
|
13
|
-
["shift", "⇧"],
|
|
14
12
|
["enter", "↵"],
|
|
15
13
|
["backspace", "⌫"],
|
|
16
14
|
["escape", "Esc"],
|
|
@@ -21,6 +19,25 @@ const KEY_DISPLAY = /* @__PURE__ */ new Map([
|
|
|
21
19
|
["right", "→"],
|
|
22
20
|
["plus", "+"]
|
|
23
21
|
]);
|
|
22
|
+
/** Modifier symbols on Apple platforms; `meta` is the Command key there. */
|
|
23
|
+
const APPLE_MODIFIER_DISPLAY = /* @__PURE__ */ new Map([
|
|
24
|
+
["mod", "⌘"],
|
|
25
|
+
["meta", "⌘"],
|
|
26
|
+
["ctrl", "⌃"],
|
|
27
|
+
["alt", "⌥"],
|
|
28
|
+
["shift", "⇧"]
|
|
29
|
+
]);
|
|
30
|
+
/**
|
|
31
|
+
* Modifier text elsewhere, and before the platform is known (server render
|
|
32
|
+
* and the first client render), so the keycap reads as the user's keyboard.
|
|
33
|
+
*/
|
|
34
|
+
const MODIFIER_TEXT = /* @__PURE__ */ new Map([
|
|
35
|
+
["mod", "Ctrl"],
|
|
36
|
+
["ctrl", "Ctrl"],
|
|
37
|
+
["alt", "Alt"],
|
|
38
|
+
["shift", "Shift"],
|
|
39
|
+
["meta", "Win"]
|
|
40
|
+
]);
|
|
24
41
|
/**
|
|
25
42
|
* Spoken words for the accessible name. Assistive technology cannot announce
|
|
26
43
|
* the glyphs above meaningfully, so the shortcut names the keys instead.
|
|
@@ -40,8 +57,7 @@ const KEY_LABEL = /* @__PURE__ */ new Map([
|
|
|
40
57
|
["plus", "Plus"]
|
|
41
58
|
]);
|
|
42
59
|
function keyDisplay(name, isApple) {
|
|
43
|
-
|
|
44
|
-
return KEY_DISPLAY.get(name) ?? name.toUpperCase();
|
|
60
|
+
return (isApple ? APPLE_MODIFIER_DISPLAY : MODIFIER_TEXT).get(name) ?? KEY_DISPLAY.get(name) ?? name.toUpperCase();
|
|
45
61
|
}
|
|
46
62
|
function keyLabel(name, isApple) {
|
|
47
63
|
if (name === "mod") return isApple ? "Command" : "Control";
|
|
@@ -84,6 +100,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
84
100
|
props: { keys: {} },
|
|
85
101
|
setup(__props) {
|
|
86
102
|
const props = __props;
|
|
103
|
+
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
104
|
const attrs = useAttrs();
|
|
88
105
|
const isApple = useIsApplePlatform();
|
|
89
106
|
const keys = computed(() => parseShortcut(props.keys, isApple.value));
|
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-Duz-OrsN.js";
|
|
2
2
|
export { _sfc_main as Lightbox, useLightbox };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as resetLayerScopedContext } from "./scopedProvide-C-Df7c15.js";
|
|
2
|
-
import { t as _sfc_main$1 } from "./Icon-
|
|
2
|
+
import { t as _sfc_main$1 } from "./Icon-DAcZMgiJ.js";
|
|
3
3
|
import { t as useAnnounce } from "./announce-B210eJVf.js";
|
|
4
|
-
import { t as _sfc_main$2 } from "./IconButton-
|
|
4
|
+
import { t as _sfc_main$2 } from "./IconButton-Cn4re9lo.js";
|
|
5
5
|
import { s as useAstryxMessages } from "./context-BLSiTojH.js";
|
|
6
6
|
import { t as useScrollLock } from "./scrollLock-C3aT4-0z.js";
|
|
7
7
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, onBeforeUnmount, openBlock, ref, toDisplayString, toRef, unref, useTemplateRef, watch, withCtx } from "vue";
|
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-CCYGMtZy.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-C0NPH_Zy.js";
|
|
2
2
|
export { _sfc_main as Link };
|