@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,18 +1,18 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./Icon-
|
|
1
|
+
import { t as _sfc_main$1 } from "./Icon-DAcZMgiJ.js";
|
|
2
2
|
import { i as useSize } from "./SizeContext-BbaF-SEx.js";
|
|
3
3
|
import { t as _sfc_main$2 } from "./VisuallyHidden-cpmsV-0M.js";
|
|
4
|
-
import { n as _sfc_main$3 } from "./Button-
|
|
4
|
+
import { n as _sfc_main$3 } from "./Button-7W3G5gok.js";
|
|
5
5
|
import { t as _sfc_main$4 } from "./ButtonTooltip-CNKOQHYR.js";
|
|
6
6
|
import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
7
7
|
import { t as characterCount } from "./characters-wTnzjkkR.js";
|
|
8
8
|
import { t as useAnnounce } from "./announce-B210eJVf.js";
|
|
9
|
-
import { t as useInputContainer } from "./useInputContainer-
|
|
10
|
-
import { t as _sfc_main$5 } from "./FieldInfoTip-
|
|
9
|
+
import { t as useInputContainer } from "./useInputContainer-BP3u3hGz.js";
|
|
10
|
+
import { t as _sfc_main$5 } from "./FieldInfoTip-CPhFmGaY.js";
|
|
11
11
|
import { o as useAstryxLocale, s as useAstryxMessages } from "./context-BLSiTojH.js";
|
|
12
12
|
import { i as useAriaRequired } from "./context-Cfml4jaK.js";
|
|
13
|
-
import { t as _sfc_main$6 } from "./Field-
|
|
14
|
-
import { t as useFieldPartStyling } from "./fieldParts
|
|
15
|
-
import { t as _sfc_main$7 } from "./InputClearButton-
|
|
13
|
+
import { t as _sfc_main$6 } from "./Field-CdrGdY7U.js";
|
|
14
|
+
import { t as useFieldPartStyling } from "./fieldParts-CDOlBdy6.js";
|
|
15
|
+
import { t as _sfc_main$7 } from "./InputClearButton-gGlttFrg.js";
|
|
16
16
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toRaw, unref, useAttrs, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
|
|
17
17
|
import "../styles/text-area.css";
|
|
18
18
|
//#region src/TextArea/useTextAreaAction.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ct as TextInputChangeEvent, dt as TextInputSize, ft as TextInputSlots, ht as TextInputType, lt as TextInputEmits, mt as TextInputStatusType, ot as _default, pt as TextInputStatus, st as TextInputChangeAction, ut as TextInputProps } from "../index-
|
|
1
|
+
import { ct as TextInputChangeEvent, dt as TextInputSize, ft as TextInputSlots, ht as TextInputType, lt as TextInputEmits, mt as TextInputStatusType, ot as _default, pt as TextInputStatus, st as TextInputChangeAction, ut as TextInputProps } from "../index-CCYGMtZy.js";
|
|
2
2
|
export { _default as TextInput, type TextInputChangeAction, type TextInputChangeEvent, type TextInputEmits, type TextInputProps, type TextInputSize, type TextInputSlots, type TextInputStatus, type TextInputStatusType, type TextInputType };
|
package/dist/TextInput/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../TextInput-
|
|
1
|
+
import { t as _sfc_main } from "../TextInput-C3TcHG4h.js";
|
|
2
2
|
export { _sfc_main as TextInput };
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
import { r as useInputGroupDisabled } from "./context-Bg7eSJ47.js";
|
|
1
2
|
import { i as useSize } from "./SizeContext-BbaF-SEx.js";
|
|
2
3
|
import { t as _sfc_main$1 } from "./VisuallyHidden-cpmsV-0M.js";
|
|
3
|
-
import { n as _sfc_main$2 } from "./Button-
|
|
4
|
+
import { n as _sfc_main$2 } from "./Button-7W3G5gok.js";
|
|
4
5
|
import { t as _sfc_main$3 } from "./ButtonTooltip-CNKOQHYR.js";
|
|
5
6
|
import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
6
|
-
import { t as useInputContainer } from "./useInputContainer-
|
|
7
|
-
import { t as useInputStatusIcon } from "./useInputStatusIcon-
|
|
7
|
+
import { t as useInputContainer } from "./useInputContainer-BP3u3hGz.js";
|
|
8
|
+
import { t as useInputStatusIcon } from "./useInputStatusIcon-CTF4yF3e.js";
|
|
8
9
|
import { s as useAstryxMessages } from "./context-BLSiTojH.js";
|
|
9
10
|
import { i as useAriaRequired } from "./context-Cfml4jaK.js";
|
|
10
|
-
import { t as _sfc_main$4 } from "./Field-
|
|
11
|
-
import { t as useFieldPartStyling } from "./fieldParts
|
|
12
|
-
import { t as _sfc_main$5 } from "./InputClearButton-
|
|
11
|
+
import { t as _sfc_main$4 } from "./Field-CdrGdY7U.js";
|
|
12
|
+
import { t as useFieldPartStyling } from "./fieldParts-CDOlBdy6.js";
|
|
13
|
+
import { t as _sfc_main$5 } from "./InputClearButton-gGlttFrg.js";
|
|
13
14
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onMounted, openBlock, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toRaw, unref, useAttrs, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
|
|
14
15
|
import "../styles/text-input.css";
|
|
15
16
|
//#region src/TextInput/useTextInputAction.ts
|
|
@@ -175,6 +176,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
175
176
|
const props = __props;
|
|
176
177
|
const emit = __emit;
|
|
177
178
|
const size = useSize(() => props.size, "md");
|
|
179
|
+
const disabled = useInputGroupDisabled(() => props.isDisabled);
|
|
178
180
|
const ariaRequired = useAriaRequired(props);
|
|
179
181
|
const messages = useAstryxMessages();
|
|
180
182
|
const model = useModel(__props, "modelValue");
|
|
@@ -186,7 +188,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
186
188
|
const isComposing = shallowRef(false);
|
|
187
189
|
const disabledDescriptionId = `${generatedId}-disabled`;
|
|
188
190
|
const disabledTooltipId = `${generatedId}-tooltip`;
|
|
189
|
-
const showsDisabledMessage = computed(() =>
|
|
191
|
+
const showsDisabledMessage = computed(() => disabled.value && !!props.disabledMessage?.trim());
|
|
190
192
|
const disabledTooltip = useButtonTooltip(showsDisabledMessage);
|
|
191
193
|
const icon = computed(() => props.startIcon ? toRaw(props.startIcon) : void 0);
|
|
192
194
|
const action = useTextInputAction({
|
|
@@ -244,7 +246,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
244
246
|
return [labelId, attrs["aria-labelledby"]].filter(Boolean).join(" ");
|
|
245
247
|
}
|
|
246
248
|
function acceptInput(event) {
|
|
247
|
-
if (
|
|
249
|
+
if (disabled.value || props.isReadOnly) {
|
|
248
250
|
if (input.value) input.value.value = action.value.value;
|
|
249
251
|
return;
|
|
250
252
|
}
|
|
@@ -259,10 +261,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
259
261
|
function keydown(event) {
|
|
260
262
|
emit("keydown", event);
|
|
261
263
|
if (event.key === "Escape") disabledTooltip.hideImmediately();
|
|
262
|
-
if (!
|
|
264
|
+
if (!disabled.value && !event.defaultPrevented && event.key === "Enter" && !isComposing.value && !event.isComposing && event.keyCode !== 229) emit("enter", event);
|
|
263
265
|
}
|
|
264
266
|
async function clear(event) {
|
|
265
|
-
if (
|
|
267
|
+
if (disabled.value || props.isReadOnly) return;
|
|
266
268
|
action.commit("", event);
|
|
267
269
|
emit("clear", event);
|
|
268
270
|
await nextTick();
|
|
@@ -276,7 +278,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
276
278
|
const inputContainer = useInputContainer({
|
|
277
279
|
containerRef: container,
|
|
278
280
|
inputRef: input,
|
|
279
|
-
disabled: () =>
|
|
281
|
+
disabled: () => disabled.value
|
|
280
282
|
});
|
|
281
283
|
onMounted(() => {
|
|
282
284
|
if (props.hasAutoFocus) focus({ preventScroll: true });
|
|
@@ -289,7 +291,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
289
291
|
description: __props.description,
|
|
290
292
|
width: __props.width,
|
|
291
293
|
"is-label-hidden": __props.isLabelHidden,
|
|
292
|
-
"is-disabled":
|
|
294
|
+
"is-disabled": unref(disabled),
|
|
293
295
|
"is-optional": __props.isOptional,
|
|
294
296
|
"is-required": __props.isRequired,
|
|
295
297
|
"label-icon": __props.labelIcon,
|
|
@@ -308,7 +310,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
308
310
|
style: normalizeStyle(unref(parts).controlStyle()),
|
|
309
311
|
"data-size": unref(size),
|
|
310
312
|
"data-status": __props.status?.type,
|
|
311
|
-
"data-disabled":
|
|
313
|
+
"data-disabled": unref(disabled) || void 0,
|
|
312
314
|
"data-readonly": __props.isReadOnly || void 0,
|
|
313
315
|
onClick: _cache[3] || (_cache[3] = (...args) => unref(inputContainer).onClick && unref(inputContainer).onClick(...args)),
|
|
314
316
|
onMouseup: _cache[4] || (_cache[4] = (...args) => unref(inputContainer).onMouseUp && unref(inputContainer).onMouseUp(...args)),
|
|
@@ -324,9 +326,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
324
326
|
type: __props.type,
|
|
325
327
|
value: unref(action).value.value,
|
|
326
328
|
placeholder: __props.placeholder,
|
|
327
|
-
name:
|
|
329
|
+
name: unref(disabled) ? void 0 : __props.htmlName ?? inputAttrs().name,
|
|
328
330
|
autocomplete: __props.autoComplete ?? inputAttrs().autocomplete,
|
|
329
|
-
disabled:
|
|
331
|
+
disabled: unref(disabled) && !showsDisabledMessage.value,
|
|
330
332
|
readonly: __props.isReadOnly || showsDisabledMessage.value,
|
|
331
333
|
"aria-disabled": showsDisabledMessage.value || void 0,
|
|
332
334
|
"aria-busy": busy.value || void 0,
|
|
@@ -343,7 +345,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
343
345
|
onBlur: _cache[2] || (_cache[2] = (...args) => unref(disabledTooltip).onBlur && unref(disabledTooltip).onBlur(...args))
|
|
344
346
|
}), null, 16, _hoisted_3),
|
|
345
347
|
_ctx.$slots.end ? (openBlock(), createElementBlock("span", _hoisted_4, [renderSlot(_ctx.$slots, "end")])) : createCommentVNode("v-if", true),
|
|
346
|
-
__props.hasClear && unref(action).value.value && !
|
|
348
|
+
__props.hasClear && unref(action).value.value && !unref(disabled) && !__props.isReadOnly ? (openBlock(), createBlock(_sfc_main$5, {
|
|
347
349
|
key: 2,
|
|
348
350
|
label: resolvedClearLabel.value,
|
|
349
351
|
onClick: clear
|
package/dist/Theme/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import { a as _default$1, c as isDefinedTheme, d as DATA_TOKEN_DEFAULTS, f as DataTokenName, i as useMediaTheme, l as neutralTheme, n as useTheme, o as _default, r as UseMediaThemeReturn, s as defineTheme, t as UseThemeReturn, u as normalizeTokenName } from "../index-
|
|
1
|
+
import { A as expandMotionScale, C as WidthBreakpointName, D as RadiusScaleConfig, E as expandTypeScale, M as expandColorScale, O as expandRadiusScale, S as WIDTH_BREAKPOINT_NAMES, T as TypeScaleConfig, _ as ThemeAdaptationRule, a as StyleOverrides, b as ThemeAdaptationWidthCondition, c as ThemeMode, d as ThemeTokenValue, f as ThemeTokens, g as ThemeAdaptationCondition, h as DEFAULT_WIDTH_BREAKPOINTS, i as MediaThemeProps, j as ColorScaleConfig, k as MotionScaleConfig, l as ThemeProps, m as TypographyRole, n as DefineThemeInput, o as ThemeDefinition, p as TypographyConfig, r as MediaThemeMode, t as ComponentStyleMap, u as ThemeSurfaceInput, v as ThemeAdaptationTypographyConfig, w as WidthBreakpoints, x as ThemeAdaptations, y as ThemeAdaptationValue } from "../types-Bq4Yl6CS.js";
|
|
2
|
+
import { a as _default$1, c as isDefinedTheme, d as DATA_TOKEN_DEFAULTS, f as DataTokenName, i as useMediaTheme, l as neutralTheme, n as useTheme, o as _default, r as UseMediaThemeReturn, s as defineTheme, t as UseThemeReturn, u as normalizeTokenName } from "../index-CbNLiaWw.js";
|
|
3
3
|
export { type ColorScaleConfig, type ComponentStyleMap, DATA_TOKEN_DEFAULTS, DEFAULT_WIDTH_BREAKPOINTS, type DataTokenName, type DefineThemeInput, _default as MediaTheme, type MediaThemeMode, type MediaThemeProps, type MotionScaleConfig, type RadiusScaleConfig, type StyleOverrides, _default$1 as Theme, type ThemeAdaptationCondition, type ThemeAdaptationRule, type ThemeAdaptationTypographyConfig, type ThemeAdaptationValue, type ThemeAdaptationWidthCondition, type ThemeAdaptations, type ThemeDefinition, type ThemeMode, type ThemeProps, type ThemeSurfaceInput, type ThemeTokenValue, type ThemeTokens, type TypeScaleConfig, type TypographyConfig, type TypographyRole, type UseMediaThemeReturn, type UseThemeReturn, WIDTH_BREAKPOINT_NAMES, type WidthBreakpointName, type WidthBreakpoints, defineTheme, expandColorScale, expandMotionScale, expandRadiusScale, expandTypeScale, isDefinedTheme, neutralTheme, normalizeTokenName, useMediaTheme, useTheme };
|
package/dist/Theme/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as neutralTheme, c as expandMotionScale, d as WIDTH_BREAKPOINT_NAMES, i as isDefinedTheme, l as expandColorScale, n as _sfc_main$1, o as expandTypeScale, r as defineTheme, s as expandRadiusScale, t as useMediaTheme, u as DEFAULT_WIDTH_BREAKPOINTS } from "../Theme-
|
|
2
|
-
import { a as normalizeTokenName, l as DATA_TOKEN_DEFAULTS, n as useTheme, t as _sfc_main } from "../MediaTheme-
|
|
1
|
+
import { a as neutralTheme, c as expandMotionScale, d as WIDTH_BREAKPOINT_NAMES, i as isDefinedTheme, l as expandColorScale, n as _sfc_main$1, o as expandTypeScale, r as defineTheme, s as expandRadiusScale, t as useMediaTheme, u as DEFAULT_WIDTH_BREAKPOINTS } from "../Theme-DkFv7FGK.js";
|
|
2
|
+
import { a as normalizeTokenName, l as DATA_TOKEN_DEFAULTS, n as useTheme, t as _sfc_main } from "../MediaTheme-Bt7WBTkq.js";
|
|
3
3
|
export { DATA_TOKEN_DEFAULTS, DEFAULT_WIDTH_BREAKPOINTS, _sfc_main as MediaTheme, _sfc_main$1 as Theme, WIDTH_BREAKPOINT_NAMES, defineTheme, expandColorScale, expandMotionScale, expandRadiusScale, expandTypeScale, isDefinedTheme, neutralTheme, normalizeTokenName, useMediaTheme, useTheme };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { n as
|
|
1
|
+
import { c as themeNestingKey, n as resolveIconEntryVariants, o as mediaThemeKey, s as themeContextKey, t as readThemeIconIds } from "./themeIcons-CqGF0fwW.js";
|
|
2
|
+
import { r as staticComponentIcons, t as mergeComponentIcons } from "./componentIcons-CFr2L6o3.js";
|
|
2
3
|
import { a as syntaxThemeStyle } from "./syntaxTheme-R7xnu5x5.js";
|
|
3
4
|
import { t as syntaxThemeKey } from "./syntaxContext-DmIfNNtb.js";
|
|
4
|
-
import { a as normalizeTokenName, c as parseColor, i as isPortableTokenName, o as prefixTokenReferences, r as bridgeComponentTokens, s as contrastRatio } from "./MediaTheme-
|
|
5
|
+
import { a as normalizeTokenName, c as parseColor, i as isPortableTokenName, o as prefixTokenReferences, r as bridgeComponentTokens, s as contrastRatio } from "./MediaTheme-Bt7WBTkq.js";
|
|
5
6
|
import { t as observeResize } from "./sharedResizeObserver-9EFWnSWH.js";
|
|
6
7
|
import { computed, createBlock, createCommentVNode, createElementBlock, defineComponent, h, inject, markRaw, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, provide, renderSlot, unref, useAttrs, useTemplateRef, watch } from "vue";
|
|
7
8
|
import "../styles/theme.css";
|
|
@@ -1368,6 +1369,13 @@ const DERIVED_VARS = {
|
|
|
1368
1369
|
property: "padding",
|
|
1369
1370
|
vars: ["--_dropdown-menu-padding"]
|
|
1370
1371
|
}],
|
|
1372
|
+
"icon": [{
|
|
1373
|
+
property: "width",
|
|
1374
|
+
vars: ["--_icon-width"]
|
|
1375
|
+
}, {
|
|
1376
|
+
property: "height",
|
|
1377
|
+
vars: ["--_icon-height"]
|
|
1378
|
+
}],
|
|
1371
1379
|
"progress-bar-mark": [{
|
|
1372
1380
|
property: "width",
|
|
1373
1381
|
vars: ["--_progressbar-mark-width"]
|
|
@@ -2432,7 +2440,12 @@ function defineTheme(input) {
|
|
|
2432
2440
|
};
|
|
2433
2441
|
const onDarkComponents = mergeComponentMaps(base?.onDarkComponents, input.onDark?.components);
|
|
2434
2442
|
const onLightComponents = mergeComponentMaps(base?.onLightComponents, input.onLight?.components);
|
|
2435
|
-
const
|
|
2443
|
+
const ownIcons = input.icons;
|
|
2444
|
+
const iconEntries = mergeMaps(base?.iconEntries ?? base?.icons, ownIcons);
|
|
2445
|
+
const icons = readThemeIconIds(iconEntries);
|
|
2446
|
+
const iconVariants = input.iconVariants !== void 0 ? [...input.iconVariants] : base?.iconVariants;
|
|
2447
|
+
const iconEntryVariants = resolveIconEntryVariants(iconEntries, ownIcons, base, iconVariants);
|
|
2448
|
+
const componentIconValues = mergeComponentIcons(base?.componentIconValues, input.componentIcons);
|
|
2436
2449
|
const indicators = sealIndicators(mergeMaps(base?.indicators, input.indicators));
|
|
2437
2450
|
const css = compileThemeCss({
|
|
2438
2451
|
name: input.name,
|
|
@@ -2458,6 +2471,13 @@ function defineTheme(input) {
|
|
|
2458
2471
|
...onLightComponents ? { onLightComponents } : {},
|
|
2459
2472
|
syntax: input.syntax ?? base?.syntax,
|
|
2460
2473
|
...icons ? { icons } : {},
|
|
2474
|
+
...iconEntries ? { iconEntries } : {},
|
|
2475
|
+
...iconVariants !== void 0 ? { iconVariants } : {},
|
|
2476
|
+
...iconEntryVariants ? { iconEntryVariants } : {},
|
|
2477
|
+
...componentIconValues ? {
|
|
2478
|
+
componentIcons: staticComponentIcons(componentIconValues),
|
|
2479
|
+
componentIconValues
|
|
2480
|
+
} : {},
|
|
2461
2481
|
...indicators ? { indicators } : {},
|
|
2462
2482
|
...components ? { components } : {},
|
|
2463
2483
|
...css ? { css } : {},
|
package/dist/Thumbnail/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Thumbnail-
|
|
1
|
+
import { t as _sfc_main } from "../Thumbnail-7hvPR8TA.js";
|
|
2
2
|
export { _sfc_main as Thumbnail };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { t as usePressFeedback } from "./usePressFeedback-
|
|
2
|
-
import { t as _sfc_main$1 } from "./Icon-
|
|
3
|
-
import { t as
|
|
1
|
+
import { t as usePressFeedback } from "./usePressFeedback-Dt76SpLj.js";
|
|
2
|
+
import { t as _sfc_main$1 } from "./Icon-DAcZMgiJ.js";
|
|
3
|
+
import { t as useAnnounce } from "./announce-B210eJVf.js";
|
|
4
|
+
import { t as _sfc_main$2 } from "./IconButton-Cn4re9lo.js";
|
|
4
5
|
import { s as useAstryxMessages } from "./context-BLSiTojH.js";
|
|
5
6
|
import { t as _sfc_main$3 } from "./Tooltip-BfKegFfq.js";
|
|
6
7
|
import { t as _sfc_main$4 } from "./Spinner-CTWLR75x.js";
|
|
@@ -10,7 +11,7 @@ import "../styles/thumbnail.css";
|
|
|
10
11
|
//#region src/Thumbnail/Thumbnail.vue
|
|
11
12
|
const _hoisted_1 = ["data-disabled", "aria-label"];
|
|
12
13
|
const _hoisted_2 = { class: "astryx-thumbnail__frame" };
|
|
13
|
-
const _hoisted_3 = ["aria-label"];
|
|
14
|
+
const _hoisted_3 = ["aria-label", "aria-disabled"];
|
|
14
15
|
const _hoisted_4 = [
|
|
15
16
|
"src",
|
|
16
17
|
"alt",
|
|
@@ -77,20 +78,43 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
77
78
|
const showSkeleton = computed(() => props.isLoading && !hasSrc.value);
|
|
78
79
|
const showImage = computed(() => hasSrc.value && !showSkeleton.value && !hasError.value);
|
|
79
80
|
const showUpload = computed(() => props.isLoading && hasSrc.value);
|
|
81
|
+
/**
|
|
82
|
+
* 上传时的转圈只是装饰,对读屏隐藏;缩略图自己在每次开始忙时用共享的播报通道
|
|
83
|
+
* 说一次「加载中」。和文字同时出生的 status 区域,很多读屏软件不会念。
|
|
84
|
+
*/
|
|
85
|
+
const announce = useAnnounce();
|
|
86
|
+
watch(showUpload, (isUploading) => {
|
|
87
|
+
if (isUploading) announce(messages.value.spinner.loading);
|
|
88
|
+
}, { immediate: true });
|
|
80
89
|
const showPlaceholder = computed(() => !props.isLoading && !hasSrc.value || Boolean(hasError.value));
|
|
81
90
|
const accessibleName = computed(() => {
|
|
82
91
|
if (props.label && props.alt) return `${props.label} — ${props.alt}`;
|
|
83
92
|
return props.label ?? props.alt ?? messages.value.thumbnail.fallbackName;
|
|
84
93
|
});
|
|
94
|
+
/**
|
|
95
|
+
* Open 和 Remove 在不能操作时仍然挂着:可以聚焦,读屏念出「已禁用」,但什么都不调用。
|
|
96
|
+
* 拿掉它们会让正在上面的键盘焦点掉到页面 body。
|
|
97
|
+
*/
|
|
98
|
+
const hasOpen = computed(() => hasListener("onClick"));
|
|
99
|
+
const canOpen = computed(() => !props.isDisabled && !props.isLoading);
|
|
85
100
|
function onImageError() {
|
|
86
101
|
failedSrc.value = props.src;
|
|
87
102
|
}
|
|
88
103
|
function onOpen(event) {
|
|
104
|
+
if (!canOpen.value) {
|
|
105
|
+
event.preventDefault();
|
|
106
|
+
event.stopPropagation();
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
89
109
|
emit("click", event);
|
|
90
110
|
}
|
|
111
|
+
/** 不能操作的 Open 上,Enter 和空格不派发点击。 */
|
|
112
|
+
function onOpenKeydown(event) {
|
|
113
|
+
if (!canOpen.value && (event.key === "Enter" || event.key === " ")) event.preventDefault();
|
|
114
|
+
}
|
|
91
115
|
function onRemove(event) {
|
|
92
116
|
event.stopPropagation();
|
|
93
|
-
emit("remove", event);
|
|
117
|
+
if (!props.isDisabled) emit("remove", event);
|
|
94
118
|
}
|
|
95
119
|
return (_ctx, _cache) => {
|
|
96
120
|
return openBlock(), createBlock(_sfc_main$3, {
|
|
@@ -105,13 +129,15 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
105
129
|
role: "group",
|
|
106
130
|
"aria-label": accessibleName.value
|
|
107
131
|
}, [createElementVNode("div", _hoisted_2, [
|
|
108
|
-
|
|
132
|
+
hasOpen.value ? (openBlock(), createElementBlock("button", mergeProps({
|
|
109
133
|
key: 0,
|
|
110
134
|
type: "button"
|
|
111
|
-
}, unref(press).pressableProps, {
|
|
135
|
+
}, canOpen.value ? unref(press).pressableProps : {}, {
|
|
112
136
|
class: "astryx-thumbnail__open",
|
|
113
137
|
"aria-label": unref(messages).thumbnail.open(accessibleName.value),
|
|
114
|
-
|
|
138
|
+
"aria-disabled": canOpen.value ? void 0 : "true",
|
|
139
|
+
onClick: onOpen,
|
|
140
|
+
onKeydown: onOpenKeydown
|
|
115
141
|
}), [showImage.value ? (openBlock(), createElementBlock("img", {
|
|
116
142
|
key: 0,
|
|
117
143
|
class: "astryx-thumbnail__image",
|
|
@@ -138,9 +164,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
138
164
|
showImage.value ? (openBlock(), createElementBlock("span", _hoisted_8)) : createCommentVNode("v-if", true),
|
|
139
165
|
showUpload.value ? (openBlock(), createElementBlock("span", _hoisted_9, [createVNode(_sfc_main$4, {
|
|
140
166
|
size: "sm",
|
|
141
|
-
shade: "onMedia"
|
|
167
|
+
shade: "onMedia",
|
|
168
|
+
"aria-hidden": "true"
|
|
142
169
|
})])) : createCommentVNode("v-if", true),
|
|
143
|
-
hasListener("onRemove")
|
|
170
|
+
hasListener("onRemove") ? (openBlock(), createElementBlock("span", {
|
|
144
171
|
key: 4,
|
|
145
172
|
class: "astryx-thumbnail__remove",
|
|
146
173
|
"data-reveal": __props.showRemoveOn
|
|
@@ -148,6 +175,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
148
175
|
variant: "secondary",
|
|
149
176
|
size: "sm",
|
|
150
177
|
label: unref(messages).thumbnail.remove(accessibleName.value),
|
|
178
|
+
"is-disabled": __props.isDisabled,
|
|
151
179
|
onClick: onRemove
|
|
152
180
|
}, {
|
|
153
181
|
default: withCtx(() => [createVNode(_sfc_main$1, {
|
|
@@ -155,7 +183,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
155
183
|
size: "sm"
|
|
156
184
|
})]),
|
|
157
185
|
_: 1
|
|
158
|
-
}, 8, ["label"])], 8, _hoisted_10)) : createCommentVNode("v-if", true)
|
|
186
|
+
}, 8, ["label", "is-disabled"])], 8, _hoisted_10)) : createCommentVNode("v-if", true)
|
|
159
187
|
])], 14, _hoisted_1)]),
|
|
160
188
|
_: 1
|
|
161
189
|
}, 8, ["content", "is-enabled"]);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { n as _sfc_main$2 } from "./BottomSheet-CMukh1iI.js";
|
|
2
|
-
import { t as _sfc_main$3 } from "./Icon-
|
|
2
|
+
import { t as _sfc_main$3 } from "./Icon-DAcZMgiJ.js";
|
|
3
3
|
import { t as _sfc_main$4 } from "./VisuallyHidden-cpmsV-0M.js";
|
|
4
4
|
import { t as _sfc_main$5 } from "./ButtonTooltip-CNKOQHYR.js";
|
|
5
5
|
import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
6
6
|
import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
|
|
7
7
|
import { a as isImeKeyEvent } from "./layerDepth-CNDh-IHb.js";
|
|
8
8
|
import { n as useDismiss, t as usePositionedLayer } from "./usePositionedLayer-psKf3ano.js";
|
|
9
|
-
import { t as _sfc_main$6 } from "./FieldIcon-
|
|
10
|
-
import { t as _sfc_main$7 } from "./IconButton-
|
|
9
|
+
import { t as _sfc_main$6 } from "./FieldIcon-BB08VXf7.js";
|
|
10
|
+
import { t as _sfc_main$7 } from "./IconButton-Cn4re9lo.js";
|
|
11
11
|
import { s as useAstryxMessages } from "./context-BLSiTojH.js";
|
|
12
12
|
import { a as parseISOTime, i as parseDisplayTime, n as formatISOTime, o as resolveTimeSurface, r as isTimeInRange, s as shiftTime, t as formatDisplayTime } from "./useTimeValue-BJd0xBhG.js";
|
|
13
13
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { at as TimeInputSize, it as TimeInputProps, nt as _default, rt as TimeInputEmits } from "../index-
|
|
1
|
+
import { at as TimeInputSize, it as TimeInputProps, nt as _default, rt as TimeInputEmits } from "../index-CCYGMtZy.js";
|
|
2
2
|
export { _default as TimeInput, type TimeInputEmits, type TimeInputProps, type TimeInputSize };
|
package/dist/TimeInput/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../TimeInput-
|
|
1
|
+
import { t as _sfc_main } from "../TimeInput-D31lgw-s.js";
|
|
2
2
|
export { _sfc_main as TimeInput };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { r as useInputGroupDisabled } from "./context-Bg7eSJ47.js";
|
|
1
2
|
import { i as useSize } from "./SizeContext-BbaF-SEx.js";
|
|
2
3
|
import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
|
|
3
|
-
import { t as _sfc_main$1 } from "./Field-
|
|
4
|
-
import { t as useFieldPartStyling } from "./fieldParts
|
|
5
|
-
import { t as _sfc_main$2 } from "./TimeField-
|
|
4
|
+
import { t as _sfc_main$1 } from "./Field-CdrGdY7U.js";
|
|
5
|
+
import { t as useFieldPartStyling } from "./fieldParts-CDOlBdy6.js";
|
|
6
|
+
import { t as _sfc_main$2 } from "./TimeField-D2vnhUvT.js";
|
|
6
7
|
import { computed, createBlock, createVNode, defineComponent, mergeModels, mergeProps, normalizeClass, normalizeStyle, openBlock, unref, useAttrs, useId, useModel, withCtx } from "vue";
|
|
7
8
|
//#region src/TimeInput/TimeInput.vue
|
|
8
9
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
@@ -79,6 +80,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
79
80
|
setup(__props) {
|
|
80
81
|
const props = __props;
|
|
81
82
|
const size = useSize(() => props.size, "md");
|
|
83
|
+
const disabled = useInputGroupDisabled(() => props.isDisabled);
|
|
82
84
|
const model = useModel(__props, "modelValue");
|
|
83
85
|
const attrs = useAttrs();
|
|
84
86
|
const parts = useFieldPartStyling({
|
|
@@ -119,7 +121,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
119
121
|
class: normalizeClass(unref(parts).containerClass.value),
|
|
120
122
|
style: normalizeStyle(unref(parts).containerStyle.value),
|
|
121
123
|
"is-label-hidden": unref(hideLabel),
|
|
122
|
-
"is-disabled":
|
|
124
|
+
"is-disabled": unref(disabled),
|
|
123
125
|
"is-optional": __props.isOptional,
|
|
124
126
|
"is-required": __props.isRequired,
|
|
125
127
|
"label-tooltip": __props.labelTooltip,
|
|
@@ -147,7 +149,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
147
149
|
"has-clear": __props.hasClear,
|
|
148
150
|
"clear-label": __props.clearLabel,
|
|
149
151
|
size: unref(size),
|
|
150
|
-
"is-disabled":
|
|
152
|
+
"is-disabled": unref(disabled),
|
|
151
153
|
"is-read-only": __props.isReadOnly,
|
|
152
154
|
"is-required": __props.isRequired && !__props.isOptional,
|
|
153
155
|
"is-loading": __props.isLoading,
|
package/dist/Timer/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as getPresentation, t as _sfc_main } from "../Timer-
|
|
1
|
+
import { n as getPresentation, t as _sfc_main } from "../Timer-D0A9hh4O.js";
|
|
2
2
|
export { _sfc_main as Timer, getPresentation };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./Text-
|
|
1
|
+
import { t as _sfc_main$1 } from "./Text-BShV9dky.js";
|
|
2
2
|
import { computed, createBlock, createElementBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, useTemplateRef, watch, withCtx } from "vue";
|
|
3
3
|
import "../styles/timer.css";
|
|
4
4
|
//#region src/Timer/format.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as FormatInstantOptions, G as TimestampColor, J as TimestampTooltipEntry, K as TimestampFormat, Q as formatRelativeTime, W as _default, X as TimestampTooltipLine, Y as TimestampTooltipFormat, Z as formatTooltipLines, et as InstantFormat, q as TimestampProps, tt as formatInstant } from "../index-
|
|
1
|
+
import { $ as FormatInstantOptions, G as TimestampColor, J as TimestampTooltipEntry, K as TimestampFormat, Q as formatRelativeTime, W as _default, X as TimestampTooltipLine, Y as TimestampTooltipFormat, Z as formatTooltipLines, et as InstantFormat, q as TimestampProps, tt as formatInstant } from "../index-CCYGMtZy.js";
|
|
2
2
|
export { type FormatInstantOptions, type InstantFormat, _default as Timestamp, type TimestampColor, type TimestampFormat, type TimestampProps, type TimestampTooltipEntry, type TimestampTooltipFormat, type TimestampTooltipLine, formatInstant, formatRelativeTime, formatTooltipLines };
|
package/dist/Timestamp/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as formatInstant } from "../formatInstant-BDWUIxS7.js";
|
|
2
|
-
import { n as formatTooltipLines, r as formatRelativeTime, t as _sfc_main } from "../Timestamp-
|
|
2
|
+
import { n as formatTooltipLines, r as formatRelativeTime, t as _sfc_main } from "../Timestamp-BCYaQaDQ.js";
|
|
3
3
|
export { _sfc_main as Timestamp, formatInstant, formatRelativeTime, formatTooltipLines };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as _sfc_main$2 } from "./
|
|
2
|
-
import { t as _sfc_main$3 } from "./IconButton-Dzhukpzc.js";
|
|
1
|
+
import { t as _sfc_main$2 } from "./IconButton-Cn4re9lo.js";
|
|
3
2
|
import { o as useAstryxLocale, s as useAstryxMessages } from "./context-BLSiTojH.js";
|
|
4
|
-
import { t as _sfc_main$
|
|
5
|
-
import { t as _sfc_main$
|
|
3
|
+
import { t as _sfc_main$3 } from "./Text-BShV9dky.js";
|
|
4
|
+
import { t as _sfc_main$4 } from "./HoverCard-B9uadAzT.js";
|
|
5
|
+
import { t as _sfc_main$5 } from "./ComponentIcon-hPmWTSXE.js";
|
|
6
6
|
import { t as formatInstant } from "./formatInstant-BDWUIxS7.js";
|
|
7
7
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, unref, watch, withCtx } from "vue";
|
|
8
8
|
import "../styles/timestamp.css";
|
|
@@ -102,7 +102,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
102
102
|
}, 1500);
|
|
103
103
|
}
|
|
104
104
|
return (_ctx, _cache) => {
|
|
105
|
-
return openBlock(), createBlock(_sfc_main$
|
|
105
|
+
return openBlock(), createBlock(_sfc_main$4, {
|
|
106
106
|
label: __props.label,
|
|
107
107
|
"focus-trigger": "always",
|
|
108
108
|
"has-hover-indication": true,
|
|
@@ -119,17 +119,21 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
119
119
|
}, [
|
|
120
120
|
hasLabel.value ? (openBlock(), createElementBlock("dt", _hoisted_2$1, toDisplayString(line.label ?? ""), 1)) : createCommentVNode("v-if", true),
|
|
121
121
|
createElementVNode("dd", _hoisted_3, toDisplayString(line.value), 1),
|
|
122
|
-
hasAction.value ? (openBlock(), createElementBlock("div", _hoisted_4, [line.isCopyable ? (openBlock(), createBlock(_sfc_main$
|
|
122
|
+
hasAction.value ? (openBlock(), createElementBlock("div", _hoisted_4, [line.isCopyable ? (openBlock(), createBlock(_sfc_main$2, {
|
|
123
123
|
key: 0,
|
|
124
124
|
variant: "ghost",
|
|
125
125
|
size: "sm",
|
|
126
126
|
label: copiedKey.value === String(index) ? unref(messages).timestamp.copied : unref(messages).timestamp.copyValue(line.value),
|
|
127
127
|
onClick: ($event) => copy(line.value, String(index))
|
|
128
128
|
}, {
|
|
129
|
-
default: withCtx(() => [createVNode(_sfc_main$
|
|
130
|
-
icon
|
|
131
|
-
|
|
132
|
-
|
|
129
|
+
default: withCtx(() => [createVNode(_sfc_main$5, {
|
|
130
|
+
"icon-slot": "timestamp-copy",
|
|
131
|
+
state: { copied: copiedKey.value === String(index) },
|
|
132
|
+
fallback: {
|
|
133
|
+
icon: copiedKey.value === String(index) ? "check" : "copy",
|
|
134
|
+
size: "sm"
|
|
135
|
+
}
|
|
136
|
+
}, null, 8, ["state", "fallback"])]),
|
|
133
137
|
_: 2
|
|
134
138
|
}, 1032, ["label", "onClick"])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true)
|
|
135
139
|
]);
|
|
@@ -302,7 +306,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
302
306
|
lines: lines.value,
|
|
303
307
|
label: unref(messages).timestamp.detailsLabel
|
|
304
308
|
}, {
|
|
305
|
-
default: withCtx(() => [createVNode(_sfc_main$
|
|
309
|
+
default: withCtx(() => [createVNode(_sfc_main$3, {
|
|
306
310
|
class: normalizeClass(["astryx-timestamp", _ctx.$attrs.class]),
|
|
307
311
|
style: normalizeStyle(_ctx.$attrs.style),
|
|
308
312
|
type: __props.type,
|
|
@@ -330,7 +334,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
330
334
|
"data-format"
|
|
331
335
|
])]),
|
|
332
336
|
_: 1
|
|
333
|
-
}, 8, ["lines", "label"])) : valid.value ? (openBlock(), createBlock(_sfc_main$
|
|
337
|
+
}, 8, ["lines", "label"])) : valid.value ? (openBlock(), createBlock(_sfc_main$3, {
|
|
334
338
|
key: 1,
|
|
335
339
|
class: normalizeClass(["astryx-timestamp", _ctx.$attrs.class]),
|
|
336
340
|
style: normalizeStyle(_ctx.$attrs.style),
|
package/dist/Toast/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main$1, r as _sfc_main, t as useToast } from "../Toast-
|
|
1
|
+
import { n as _sfc_main$1, r as _sfc_main, t as useToast } from "../Toast-BpumSIBN.js";
|
|
2
2
|
export { _sfc_main as Toast, _sfc_main$1 as ToastViewport, useToast };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { r as hasInteractiveAncestor } from "./usePressFeedback-Dt76SpLj.js";
|
|
1
2
|
import { r as resetLayerScopedContext } from "./scopedProvide-C-Df7c15.js";
|
|
2
|
-
import { t as _sfc_main$2 } from "./Icon-
|
|
3
|
-
import {
|
|
4
|
-
import { t as _sfc_main$3 } from "./IconButton-Dzhukpzc.js";
|
|
3
|
+
import { t as _sfc_main$2 } from "./Icon-DAcZMgiJ.js";
|
|
4
|
+
import { t as _sfc_main$3 } from "./IconButton-Cn4re9lo.js";
|
|
5
5
|
import { s as useAstryxMessages } from "./context-BLSiTojH.js";
|
|
6
6
|
import { r as useLayerConfig } from "./context-M-er0-Rk.js";
|
|
7
7
|
import { i as whenModalSettled, r as useActiveModalOutlet } from "./modalOutlet-CUOcrhIu.js";
|
|
8
|
-
import { n as useTheme, t as _sfc_main$4 } from "./MediaTheme-
|
|
8
|
+
import { n as useTheme, t as _sfc_main$4 } from "./MediaTheme-Bt7WBTkq.js";
|
|
9
9
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, markRaw, normalizeClass, normalizeProps, normalizeStyle, onMounted, onScopeDispose, onUnmounted, openBlock, reactive, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, watch, withCtx } from "vue";
|
|
10
10
|
import "../styles/toast.css";
|
|
11
11
|
//#region src/Toast/options.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as ToggleButtonEmits, B as ToggleButtonPressedChangeHandler, D as _default, E as _default$1, F as ToggleButtonGroupProps, H as ToggleButtonSize, I as ToggleButtonGroupSingleProps, L as ToggleButtonGroupSlots, M as ToggleButtonGroupEmits, N as ToggleButtonGroupMultipleProps, O as ToggleButtonChangeAction, P as ToggleButtonGroupOrientation, R as ToggleButtonGroupType, U as ToggleButtonSlots, V as ToggleButtonProps, j as ToggleButtonGroupBaseProps, k as ToggleButtonElevation, z as ToggleButtonGroupValue } from "../index-
|
|
1
|
+
import { A as ToggleButtonEmits, B as ToggleButtonPressedChangeHandler, D as _default, E as _default$1, F as ToggleButtonGroupProps, H as ToggleButtonSize, I as ToggleButtonGroupSingleProps, L as ToggleButtonGroupSlots, M as ToggleButtonGroupEmits, N as ToggleButtonGroupMultipleProps, O as ToggleButtonChangeAction, P as ToggleButtonGroupOrientation, R as ToggleButtonGroupType, U as ToggleButtonSlots, V as ToggleButtonProps, j as ToggleButtonGroupBaseProps, k as ToggleButtonElevation, z as ToggleButtonGroupValue } from "../index-CCYGMtZy.js";
|
|
2
2
|
export { _default as ToggleButton, _default as default, type ToggleButtonChangeAction, type ToggleButtonElevation, type ToggleButtonEmits, _default$1 as ToggleButtonGroup, type ToggleButtonGroupBaseProps, type ToggleButtonGroupEmits, type ToggleButtonGroupMultipleProps, type ToggleButtonGroupOrientation, type ToggleButtonGroupProps, type ToggleButtonGroupSingleProps, type ToggleButtonGroupSlots, type ToggleButtonGroupType, type ToggleButtonGroupValue, type ToggleButtonPressedChangeHandler, type ToggleButtonProps, type ToggleButtonSize, type ToggleButtonSlots };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main$1, r as _sfc_main, t as ToggleButton_default } from "../ToggleButton-
|
|
1
|
+
import { n as _sfc_main$1, r as _sfc_main, t as ToggleButton_default } from "../ToggleButton-DYGsPjtx.js";
|
|
2
2
|
export { _sfc_main as ToggleButton, _sfc_main$1 as ToggleButtonGroup, ToggleButton_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
|
|
2
|
-
import { t as _sfc_main$2 } from "./Button-
|
|
2
|
+
import { t as _sfc_main$2 } from "./Button-7W3G5gok.js";
|
|
3
3
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, defineComponent, mergeModels, openBlock, provide, renderSlot, shallowRef, toDisplayString, useModel, useTemplateRef, withCtx } from "vue";
|
|
4
4
|
import "../styles/toggle-button.css";
|
|
5
5
|
//#region src/ToggleButton/context.ts
|
package/dist/Token/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TokenProps, i as TokenEmits, n as TOKEN_COLORS, o as TokenSize, r as TokenColor, s as TokenSlots, t as _default } from "../index-
|
|
1
|
+
import { a as TokenProps, i as TokenEmits, n as TOKEN_COLORS, o as TokenSize, r as TokenColor, s as TokenSlots, t as _default } from "../index-BJ9Wim6J.js";
|
|
2
2
|
export { TOKEN_COLORS, _default as Token, type TokenColor, type TokenEmits, type TokenProps, type TokenSize, type TokenSlots };
|
package/dist/Token/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as usePressFeedback } from "./usePressFeedback-
|
|
1
|
+
import { t as usePressFeedback } from "./usePressFeedback-Dt76SpLj.js";
|
|
2
2
|
import { n as isSafeUrl } from "./safeUrl-CsvfcZ9m.js";
|
|
3
3
|
import { n as useLinkComponent } from "./context-C_peZbXf.js";
|
|
4
4
|
import { t as useInteractiveRole } from "./useInteractiveRole-Cn0Nd5GX.js";
|
|
@@ -49,7 +49,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
49
49
|
/** 正名 isLabelHidden,旧名 labelHidden 任一为真就藏起文字。 */
|
|
50
50
|
const hideLabel = useResolvedLabelHidden(() => props.isLabelHidden, () => props.labelHidden);
|
|
51
51
|
const linkComponent = useLinkComponent();
|
|
52
|
-
|
|
52
|
+
/** 删除按钮、尾部插槽里的控件被手指按下时,Token 自己的动作不执行,所以 Token 不亮。 */
|
|
53
|
+
const press = usePressFeedback({ isContainer: true });
|
|
53
54
|
/** 有链接时用的根组件,没有 provider 时还是 `<a>`。危险协议退回普通锚点。 */
|
|
54
55
|
const safeHref = computed(() => {
|
|
55
56
|
const href = props.href;
|
|
@@ -118,17 +119,18 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
118
119
|
}), {
|
|
119
120
|
default: withCtx(() => [
|
|
120
121
|
_ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1, [renderSlot(_ctx.$slots, "icon")])) : createCommentVNode("v-if", true),
|
|
121
|
-
actionIsLink.value ? (openBlock(), createBlock(resolveDynamicComponent(actionIsLink.value ? linkRoot.value : "a"), {
|
|
122
|
+
actionIsLink.value ? (openBlock(), createBlock(resolveDynamicComponent(actionIsLink.value ? linkRoot.value : "a"), mergeProps({
|
|
122
123
|
key: 1,
|
|
123
|
-
class: "astryx-token-action"
|
|
124
|
+
class: "astryx-token-action"
|
|
125
|
+
}, unref(press).pressActionProps, {
|
|
124
126
|
href: props.disabled ? void 0 : safeHref.value,
|
|
125
127
|
to: props.disabled || linkRoot.value === "a" ? void 0 : safeHref.value,
|
|
126
128
|
"aria-disabled": props.disabled || void 0,
|
|
127
129
|
tabindex: props.disabled ? -1 : void 0
|
|
128
|
-
}, {
|
|
130
|
+
}), {
|
|
129
131
|
default: withCtx(() => [createElementVNode("span", { class: normalizeClass(["astryx-token-label", { "is-hidden": unref(hideLabel) }]) }, toDisplayString(props.label), 3)]),
|
|
130
132
|
_: 1
|
|
131
|
-
},
|
|
133
|
+
}, 16, [
|
|
132
134
|
"href",
|
|
133
135
|
"to",
|
|
134
136
|
"aria-disabled",
|
|
@@ -138,7 +140,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
138
140
|
type: "button",
|
|
139
141
|
class: "astryx-token-action",
|
|
140
142
|
"aria-disabled": props.disabled || void 0
|
|
141
|
-
},
|
|
143
|
+
}, {
|
|
144
|
+
...disabledInteraction.value,
|
|
145
|
+
...unref(press).pressActionProps
|
|
146
|
+
}, { onClick: runClick }), [createElementVNode("span", { class: normalizeClass(["astryx-token-label", { "is-hidden": unref(hideLabel) }]) }, toDisplayString(props.label), 3)], 16, _hoisted_2)) : (openBlock(), createElementBlock("span", {
|
|
142
147
|
key: 3,
|
|
143
148
|
class: normalizeClass(["astryx-token-label", { "is-hidden": unref(hideLabel) }])
|
|
144
149
|
}, toDisplayString(props.label), 3)),
|
package/dist/Tokenizer/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Tokenizer-
|
|
1
|
+
import { t as _sfc_main } from "../Tokenizer-DlptPLpP.js";
|
|
2
2
|
export { _sfc_main as Tokenizer };
|