@astryx-vue/core 0.7.21 → 0.7.22
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-C-7Ko5Iz.js → AlertDialog-Clj4LQbD.js} +14 -8
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-ggoyfRU8.js → AppShell--izaf9Fx.js} +3 -3
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-CP5bJN1n.js → Avatar-cNntRBEo.js} +18 -14
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-Caxyz9SE.js → AvatarGroup-DbWLEmi1.js} +2 -2
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-DbyQDB6e.js → Banner-B_mAF0Cw.js} +7 -5
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-ChaxnQlr.js → BottomSheet-BKeyoL9N.js} +1 -1
- package/dist/{BottomSheet-BTFPLoGw.js → BottomSheet-CMukh1iI.js} +1 -1
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-DI7yRoNk.js → Breadcrumbs-b00jtj_I.js} +2 -2
- package/dist/Button/index.js +1 -1
- package/dist/{Button-j-zrKX71.js → Button-DVXOKWAy.js} +10 -77
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-DnkSZ9a5.js → ButtonGroup-B9sj-OvC.js} +5 -3
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-C3ImYBio.js → Calendar-d_uOkvFE.js} +3 -3
- package/dist/Card/index.js +1 -1
- package/dist/{Card-B-I24X9S.js → Card-H4571ZKi.js} +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-BQDdfnXx.js → Carousel-CUtC-6st.js} +3 -3
- package/dist/Center/index.d.ts +1 -1
- package/dist/Center/index.js +1 -1
- package/dist/{Center-DVaZaTGP.js → Center-B7FTd7Hw.js} +2 -10
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-CNPH-uIM.js → Chat-BCeC0sHI.js} +11 -8
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-B5xAXedF.js → CheckboxInput-B4pDfjvr.js} +5 -5
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-DtX0fbxc.js → CheckboxList-DtxfdHRI.js} +14 -10
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-BDHIuvX3.js → Citation-CCu6QWG7.js} +2 -2
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-Co1tB4i-.js → ClickableCard-jEBZbzHE.js} +2 -2
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-D3YjfbpG.js → CodeBlock-C8ZQsnEc.js} +17 -6
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-DPC_G0Me.js → Collapsible-BsPZ8CoN.js} +2 -2
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-CM5VyZTp.js → CommandPalette-0Kg-dJg3.js} +5 -5
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-DS23yb98.js → ComplexSelector-xJGZLLyu.js} +6 -6
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-DPY3WDdI.js → ContextMenu-CgSIWUYh.js} +7 -7
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-Bg_CG9Gq.js → DateInput-B0t3u-_h.js} +16 -14
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-Dz2AUP0I.js → DateRangeInput-CZcASUxa.js} +14 -12
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-BVbqFtKG.js → DateTimeInput-vkdQJjsh.js} +15 -13
- package/dist/Dialog/index.js +1 -1
- package/dist/{DialogHeader-B9o0yEd3.js → DialogHeader-Doo2W2Ni.js} +26 -17
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-D15rGbvd.js → Drawer-Ca7Dny6L.js} +1 -1
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-DntJ04S-.js → DropdownMenu-ogcv4KxT.js} +8 -8
- package/dist/{DropdownMenu-Ct4EORZS.js → DropdownMenu-xdyXj4Mb.js} +7 -7
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-CVbtVcRb.js → EmptyState-BQrzgh2f.js} +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-CQkyMITp.js → Field-DLg-trP2.js} +2 -2
- package/dist/{FieldIcon--Qng2Cup.js → FieldIcon-CxTnEb4Y.js} +1 -1
- package/dist/{FieldInfoTip-DJjB5GkG.js → FieldInfoTip-gWPWGd3Q.js} +3 -3
- package/dist/{FieldLabel-D9uEygay.js → FieldLabel-D5_Pap_W.js} +9 -5
- package/dist/FieldStatus/index.js +1 -1
- package/dist/{FieldStatus-BOtg9PvT.js → FieldStatus-D6Vo_dU5.js} +4 -3
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-tLDnY0rm.js → FileInput-eBk4ZBY8.js} +9 -9
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-CwMG-5tj.js → Heading-D0zL1j5T.js} +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-SuGMVIZR.js → HoverCard-B9uadAzT.js} +2 -1
- package/dist/Icon/index.js +1 -1
- package/dist/{Icon-Dosui-zD.js → Icon-CU3412Fe.js} +6 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-CR5nMj-j.js → IconButton-C5U75I5C.js} +1 -1
- package/dist/Indicator/index.js +1 -1
- package/dist/InfoTip/index.d.ts +2 -0
- package/dist/InfoTip/index.js +5 -0
- package/dist/InfoTip-BlOySTNC.js +95 -0
- package/dist/{InputClearButton-C1LdboAn.js → InputClearButton-DjLXIYX4.js} +3 -3
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-Tvm7cVv3.js → InputGroup-BleRgc6W.js} +8 -4
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-DKNYYBp5.js → InternationalizationProvider-CWJDt7Qb.js} +2 -2
- package/dist/{Item-DWMIjN8n.js → Item-X9wgYWoD.js} +1 -1
- package/dist/Layout/index.d.ts +1 -1
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-JJRCG7Mf.js → Layout-mHcy28k7.js} +3 -2
- package/dist/{LayoutPanel-zM5vjrKS.js → LayoutPanel-DpbBk6rj.js} +4 -27
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-Cu56MBXY.js → Lightbox-BKIn3xh8.js} +3 -3
- package/dist/Link/index.d.ts +3 -3
- package/dist/Link/index.js +1 -1
- package/dist/{Link-YpnthlXS.js → Link-Qhzs2lcO.js} +27 -20
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-Cq_nU1YV.js → ListItem-CertehfW.js} +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-DLeP1tb9.js → Markdown-BJFwe_pB.js} +9 -7
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-sNNwmmXa.js → MetadataList-wOngshS5.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-DgEwchpj.js → MobileNavToggle-C8KAzhRl.js} +2 -2
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-B2RqL8Dk.js → MoreMenu-VgbqyoGW.js} +13 -11
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-BdEMzzhg.js → MultiSelector-BTIeCFDV.js} +36 -38
- package/dist/{NavDisclosure-snipr7Cd.js → NavDisclosure-BbRWuyhq.js} +1 -1
- package/dist/{NavHeadingSurface-tn7cGNlX.js → NavHeadingSurface-B2HkXx6S.js} +3 -3
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-BPb3yfgz.js → NavItem-DfHMmSsw.js} +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-BA5lW02j.js → NavMenu-CZS5pRUv.js} +1 -1
- package/dist/{NavMenuItem-BuIgWJq8.js → NavMenuItem-duQuvU1o.js} +2 -2
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DC-_pL6R.js → NumberInput-CkYRY1KW.js} +18 -31
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-C6xBCP2y.js → Outline-D3g7Vq7-.js} +2 -2
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-BHnarnHA.js → OverflowList-WwL2NPbI.js} +3 -3
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-968o5gbr.js → Pagination-Cn53Nqe3.js} +2 -2
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-nNZl2uqy.js → Popover-Cbv5LUWL.js} +10 -6
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-CibPe6gr.js → PowerSearch-DtncqsYh.js} +88 -73
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-Cmbhdfla.js → ProgressBar-Dt5AS0GY.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-DuhW4utO.js → RadioGroup-B2lYTCeV.js} +4 -4
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-Bq3Ndazr.js → RadioList-CieZtXzY.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-Bxt3HOsd.js → ResizeHandle-uBJj4W1M.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/ScrollableArea/index.js +1 -1
- package/dist/{ScrollableArea-0u6RWtGG.js → ScrollableArea-BgIytCxo.js} +3 -8
- package/dist/Scrollbars/index.js +2 -2
- package/dist/{Scrollbars-D_93hJYK.js → Scrollbars-Gvu4QVaF.js} +1 -1
- package/dist/Section/index.js +1 -1
- package/dist/{Section-v2QuWBBJ.js → Section-Km_FjJ-i.js} +2 -7
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-D1wWGBZo.js → SegmentedControl-BmDn1avo.js} +6 -4
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-DmV8zq4L.js → SelectableCard-2a2gsxys.js} +2 -2
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-Bl_vRB6B.js → Selector-CgrXQtte.js} +121 -51
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-BkYc75A-.js → SideNav-B_atCEBH.js} +45 -27
- package/dist/SizeContext/index.d.ts +2 -0
- package/dist/SizeContext/index.js +2 -0
- package/dist/SizeContext-BbaF-SEx.js +37 -0
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-DmQDKGvY.js → Slider-CEhy-D-R.js} +3 -3
- package/dist/Spinner/index.js +1 -1
- package/dist/{Spinner-D8YW_EgO.js → Spinner-CTWLR75x.js} +1 -1
- package/dist/Stack/index.js +2 -2
- package/dist/{Stack-Bp-XN9J4.js → Stack-DPB-Ztf7.js} +3 -11
- package/dist/{Stack-Bb_h60t3.js → Stack-Tw4I_dt-.js} +2 -2
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-DhNtAVEN.js → StatusDot-Bu_nCu0I.js} +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-CWoK1f1i.js → Stepper-DVXisudw.js} +148 -66
- package/dist/Switch/index.d.ts +2 -2
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-D_P5kd9S.js → Switch-DXShvaDA.js} +11 -5
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-B9RRmiqV.js → TabList-DIEm4YKM.js} +10 -8
- package/dist/Table/index.d.ts +2 -2
- package/dist/Table/index.js +1 -1
- package/dist/{Table-By-8bJNs.js → Table-RQ5wklzn.js} +27 -19
- package/dist/Text/index.d.ts +2 -2
- package/dist/Text/index.js +1 -1
- package/dist/{Text-D8ZIQxgB.js → Text-Wk-iDAzh.js} +2 -2
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-MbA1CHBn.js → TextArea-D1QHRYUp.js} +23 -13
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-BTh_93lB.js → TextInput-ZSr9jgdk.js} +10 -7
- package/dist/Theme/index.js +1 -1
- package/dist/{Theme-Db264zBm.js → Theme-D7_fQWgb.js} +569 -3
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-BICV4We5.js → Thumbnail-CYRPjf1Y.js} +6 -6
- package/dist/{TimeField-aSYbUpCL.js → TimeField-DnfFPnBT.js} +9 -9
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-adg4eX-J.js → TimeInput-Dj5b3rL3.js} +6 -4
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-cp10vcti.js → Timer-DL_MPa_h.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-Ip2NKQJq.js → Timestamp-hepTGx5N.js} +5 -5
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-BXHyruqR.js → Toast-DRIZNfyy.js} +24 -18
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-CyZswHtC.js → ToggleButton-zpHmL_yH.js} +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-rBcE4hYh.js → Token-BJDLztV6.js} +2 -2
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-BbB7QIzQ.js → Tokenizer-yz0873oG.js} +45 -37
- package/dist/Toolbar/index.d.ts +2 -2
- package/dist/Toolbar/index.js +1 -1
- package/dist/{Toolbar-DKld_COt.js → Toolbar-CbVhy7K9.js} +3 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +2 -1
- package/dist/Tooltip-BfKegFfq.js +126 -0
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-Dwu7beKR.js → TopNav-aCHKxMyk.js} +7 -7
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-XMAHW9fH.js → TreeList-tcEjVfb0.js} +34 -26
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-CFOX5CtL.js → Typeahead-ClidGB0O.js} +8 -8
- package/dist/{TypeaheadMenu-CafYGgVa.js → TypeaheadMenu-Bu9HO-wZ.js} +1 -1
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +6 -5
- package/dist/{composables-rlh0LyHP.js → composables-BWDrzi3J.js} +1 -1
- package/dist/{context-dY6CBI-t.js → context-BLSiTojH.js} +12 -2
- package/dist/context-Bv6lAoqu.js +26 -0
- package/dist/{index-COxy6LEW.d.ts → index-6kd7pher.d.ts} +0 -1
- package/dist/{index-ChCcxRFB.d.ts → index-9eluGe3a.d.ts} +1 -1
- package/dist/{index-YiuDd72p.d.ts → index-B7VpAZYk.d.ts} +20 -7
- package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
- package/dist/{index-BlujHTbz.d.ts → index-BRXgpLcd.d.ts} +3 -4
- package/dist/{index-G935Rujh.d.ts → index-BUZDSd-n.d.ts} +96 -2
- package/dist/{index-C085uLOn.d.ts → index-Be7N3B5F.d.ts} +1 -2
- package/dist/{index-B8EnP-PB.d.ts → index-BfQ85cS8.d.ts} +0 -1
- package/dist/{index-C-tFz2Yx.d.ts → index-C9ZssPUV.d.ts} +1 -1
- package/dist/{index-CRPSZ4nY.d.ts → index-CFm1rPma.d.ts} +1 -1
- package/dist/{index-oYGkhGRq.d.ts → index-CM8KfpBL.d.ts} +1 -2
- package/dist/{index-B9xI9ns-.d.ts → index-CfOpGR_m.d.ts} +188 -120
- package/dist/{index-DAMHLkmd.d.ts → index-CfPGC9aW.d.ts} +1 -1
- package/dist/{index-GpET2_oj.d.ts → index-Cun6cXGP.d.ts} +1 -1
- package/dist/{index-DUnLj1kn.d.ts → index-DLq_N8bd.d.ts} +1 -1
- package/dist/{index-Dl4Kx5Pl.d.ts → index-DTfA4uE3.d.ts} +13 -3
- package/dist/{index-CKpz_Eed.d.ts → index-DX4HQToB.d.ts} +1 -1
- package/dist/{index-D97pQbua.d.ts → index-DXhtlG4u.d.ts} +2 -2
- package/dist/{index-QmmrXztz.d.ts → index-DgmlhvRV.d.ts} +3 -3
- package/dist/{index-CAttPKaF.d.ts → index-DjVJDoz4.d.ts} +1 -1
- package/dist/{index-BbArm3_c.d.ts → index-MIv3YJ_j.d.ts} +3 -3
- package/dist/{index-BNaRK-s5.d.ts → index-O9y23OPJ.d.ts} +11 -1
- package/dist/{index-ChOyJzJh.d.ts → index-Q1oG9yIT.d.ts} +2 -2
- package/dist/{index-BKnyTWPM.d.ts → index-ZbNwGVkS.d.ts} +1 -1
- package/dist/index-q7fVtnQc.d.ts +48 -0
- package/dist/{index-mcNmCMqs.d.ts → index-uqEqPcmR.d.ts} +2 -2
- package/dist/index.d.ts +60 -61
- package/dist/index.js +132 -125
- package/dist/{loadCatalog-Cr3451_V.js → loadCatalog-85MyL2bm.js} +1 -1
- package/dist/{loadCatalog-DNIEPF3f.d.ts → loadCatalog-DSRSkHnY.d.ts} +9 -0
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +4 -4
- package/dist/{locale-BdA3CTlQ.js → locale-C7RSY-JG.js} +77 -77
- package/dist/{searchResultMessage-BTUZRCT6.js → searchResultMessage-T4H3r8Vz.js} +3 -3
- package/dist/sharedResizeObserver-9EFWnSWH.js +87 -0
- package/dist/{size-Cpn_wzXi.js → size-BfginNaZ.js} +19 -1
- package/dist/{types-BymI5mmm.d.ts → types-B8suOGP8.d.ts} +3 -2
- package/dist/{useAnchoredListbox-DwQTMWjI.js → useAnchoredListbox-6t5zSSz1.js} +1 -1
- package/dist/useButtonTooltip-DjCaZMp_.js +73 -0
- package/dist/{useIndicator-fTOZfYVI.js → useIndicator-BvF_KY9S.js} +1 -1
- package/dist/{useInputStatusIcon-CX16yX33.js → useInputStatusIcon-Dax94Gdd.js} +2 -2
- package/dist/{useMergedRefs-CG0YVRL-.js → useLayer-Byjda3dD.js} +2 -23
- package/dist/{useMenuDrillIn-B6jh8tv8.js → useMenuDrillIn-C36Z89W3.js} +3 -3
- package/dist/useMergedRefs-DTGo1cEU.js +22 -0
- package/dist/{usePositionedLayer-HrhF3lEZ.js → usePositionedLayer-psKf3ano.js} +13 -3
- package/dist/{usePressFeedback-BJCpjEpv.js → usePressFeedback-Dhnfc3ee.js} +19 -2
- package/dist/{useResizable-BJ0DaMml.d.ts → useResizable-fEGAFziz.d.ts} +2 -0
- package/dist/{useScrollbars-C2NJ6Qwq.js → useScrollbars-Ch0xqJWO.js} +3 -0
- package/dist/useTooltip-BKsCTWdb.js +415 -0
- package/dist/{useTranslator-DZBywLvR.js → useTranslator-BDUOzbP_.js} +1 -1
- package/dist/utils/index.js +2 -1
- package/dist/{utils-BE5HBOBX.js → utils-BOmFijPc.js} +1 -87
- package/package.json +9 -1
- package/styles/app-shell.css +12 -0
- package/styles/avatar.css +14 -2
- package/styles/banner.css +35 -27
- package/styles/bottom-sheet.css +8 -1
- package/styles/button.css +26 -12
- package/styles/calendar.css +3 -1
- package/styles/chat.css +53 -32
- package/styles/clickable-card.css +3 -3
- package/styles/code.css +5 -7
- package/styles/collapsible.css +10 -0
- package/styles/complex-selector.css +3 -3
- package/styles/container-reveal.css +161 -69
- package/styles/dialog-header.css +6 -0
- package/styles/dialog.css +29 -9
- package/styles/dropdown-menu.css +7 -6
- package/styles/empty-state.css +0 -4
- package/styles/field.css +37 -20
- package/styles/heading.css +20 -9
- package/styles/icon.css +11 -6
- package/styles/info-tip.css +45 -0
- package/styles/layout.css +2 -1
- package/styles/link.css +54 -7
- package/styles/list.css +1 -1
- package/styles/markdown.css +46 -2
- package/styles/more-menu.css +3 -2
- package/styles/multi-selector.css +6 -6
- package/styles/number-input.css +1 -2
- package/styles/popover.css +2 -2
- package/styles/power-search.css +10 -1
- package/styles/pressable.css +4 -4
- package/styles/radio.css +2 -3
- package/styles/section.css +3 -0
- package/styles/segmented-control.css +13 -0
- package/styles/selector.css +25 -10
- package/styles/side-nav.css +75 -2
- package/styles/slider.css +5 -2
- package/styles/stepper-track.css +57 -0
- package/styles/stepper.css +81 -46
- package/styles/switch.css +22 -11
- package/styles/tab-list.css +7 -6
- package/styles/tab-menu.css +0 -1
- package/styles/table.css +38 -3
- package/styles/text-area.css +5 -8
- package/styles/text.css +21 -1
- package/styles/theme.css +2 -0
- package/styles/thumbnail.css +1 -1
- package/styles/toast.css +11 -21
- package/styles/token.css +1 -1
- package/styles/tokenizer.css +8 -1
- package/styles/toolbar.css +5 -1
- package/styles/top-nav.css +19 -6
- package/styles/tree-list.css +2 -3
- package/styles.css +2 -0
- package/dist/Tooltip-sESBLZwR.js +0 -339
- package/dist/index-CHuSkU5Q.d.ts +0 -26
- package/dist/types-CbiqoBoG.d.ts +0 -89
- package/dist/{index-BJ9Wim6J.d.ts → index-BqhgeAT4.d.ts} +1 -1
package/styles/top-nav.css
CHANGED
|
@@ -40,16 +40,20 @@
|
|
|
40
40
|
gap: var(--astryx-spacing-2, 8px);
|
|
41
41
|
box-sizing: border-box;
|
|
42
42
|
min-width: 0;
|
|
43
|
-
min-height:
|
|
43
|
+
min-height: var(--astryx-spacing-8, 2rem);
|
|
44
44
|
padding-inline: var(--astryx-spacing-2, 8px);
|
|
45
45
|
border-radius: var(--astryx-radius-element, 0.625rem);
|
|
46
46
|
color: var(--astryx-color-text-primary);
|
|
47
|
-
font-size: var(--astryx-
|
|
47
|
+
font-size: var(--astryx-text-large-size, 1.0625rem);
|
|
48
48
|
font-weight: var(--astryx-font-weight-semibold, 600);
|
|
49
|
-
line-height: 1.4118;
|
|
49
|
+
line-height: var(--astryx-text-large-leading, 1.4118);
|
|
50
50
|
text-decoration: none;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
.astryx-top-nav-heading:has(.astryx-nav-icon) {
|
|
54
|
+
padding-inline-start: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
53
57
|
.astryx-top-nav-heading--link:hover,
|
|
54
58
|
.astryx-top-nav-heading--echo:hover {
|
|
55
59
|
background: var(--astryx-color-overlay-hover);
|
|
@@ -95,9 +99,9 @@
|
|
|
95
99
|
|
|
96
100
|
.astryx-top-nav-heading__title {
|
|
97
101
|
overflow: hidden;
|
|
98
|
-
font-size: var(--astryx-
|
|
102
|
+
font-size: var(--astryx-text-large-size, 1.0625rem);
|
|
99
103
|
font-weight: var(--astryx-font-weight-semibold, 600);
|
|
100
|
-
line-height: 1.4118;
|
|
104
|
+
line-height: var(--astryx-text-large-leading, 1.4118);
|
|
101
105
|
text-overflow: ellipsis;
|
|
102
106
|
white-space: nowrap;
|
|
103
107
|
}
|
|
@@ -160,7 +164,9 @@
|
|
|
160
164
|
padding-block: var(--astryx-spacing-1-5, 6px);
|
|
161
165
|
padding-inline: var(--astryx-spacing-3, 12px);
|
|
162
166
|
color: var(--astryx-color-text-secondary, #525252);
|
|
167
|
+
font-size: var(--astryx-text-label-size, 0.875rem);
|
|
163
168
|
font-weight: var(--astryx-font-weight-medium, 500);
|
|
169
|
+
line-height: var(--astryx-text-label-leading, 1.4286);
|
|
164
170
|
text-decoration: none;
|
|
165
171
|
}
|
|
166
172
|
|
|
@@ -174,7 +180,7 @@
|
|
|
174
180
|
.astryx-top-nav-menu__trigger {
|
|
175
181
|
display: inline-flex;
|
|
176
182
|
align-items: center;
|
|
177
|
-
gap: var(--astryx-spacing-
|
|
183
|
+
gap: var(--astryx-spacing-2, 8px);
|
|
178
184
|
height: 32px;
|
|
179
185
|
padding-inline: var(--astryx-spacing-3, 12px);
|
|
180
186
|
border: 0;
|
|
@@ -199,6 +205,13 @@
|
|
|
199
205
|
outline-offset: var(--astryx-focus-outline-offset);
|
|
200
206
|
}
|
|
201
207
|
|
|
208
|
+
/* 原版把下拉箭头钉在 1em(跟随标签字号),不用 sm 的 16px 盒子。 */
|
|
209
|
+
.astryx-top-nav-menu__trigger .astryx-icon.astryx-top-nav-menu__chevron {
|
|
210
|
+
width: 1em;
|
|
211
|
+
height: 1em;
|
|
212
|
+
font-size: inherit;
|
|
213
|
+
}
|
|
214
|
+
|
|
202
215
|
.astryx-top-nav-menu__chevron {
|
|
203
216
|
transition: transform var(--astryx-duration-fast-max) var(--astryx-ease-standard);
|
|
204
217
|
}
|
package/styles/tree-list.css
CHANGED
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
border-radius: inherit;
|
|
65
65
|
background-color: transparent;
|
|
66
66
|
pointer-events: none;
|
|
67
|
-
transition: background-color var(--astryx-duration-
|
|
67
|
+
transition: background-color var(--astryx-duration-exit, 175ms) var(--astryx-ease-exit, cubic-bezier(0.3, 0, 0.6, 0.6));
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
.astryx-tree-list__content[data-density='compact'] {
|
|
@@ -178,7 +178,6 @@
|
|
|
178
178
|
justify-content: center;
|
|
179
179
|
width: var(--astryx-spacing-4, 16px);
|
|
180
180
|
height: var(--astryx-spacing-4, 16px);
|
|
181
|
-
margin-inline: var(--astryx-spacing-1, 4px) calc(var(--astryx-spacing-1, 4px) * -1);
|
|
182
181
|
padding: 0;
|
|
183
182
|
border: 0;
|
|
184
183
|
border-radius: var(--astryx-radius-inner, 0.375rem);
|
|
@@ -191,7 +190,7 @@
|
|
|
191
190
|
width: var(--astryx-spacing-4, 16px);
|
|
192
191
|
height: var(--astryx-spacing-4, 16px);
|
|
193
192
|
font-size: var(--astryx-spacing-4, 16px);
|
|
194
|
-
transition: transform var(--astryx-duration-fast, 125ms) var(--astryx-ease-
|
|
193
|
+
transition: transform var(--astryx-duration-fast, 125ms) var(--astryx-ease-move, cubic-bezier(0.24, 1, 0.4, 1));
|
|
195
194
|
}
|
|
196
195
|
|
|
197
196
|
.astryx-tree-list__chevron[data-state='expanded'] .astryx-icon {
|
package/styles.css
CHANGED
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
@import './styles/hover-card.css';
|
|
45
45
|
@import './styles/icon.css';
|
|
46
46
|
@import './styles/indicator-focus-ring.css';
|
|
47
|
+
@import './styles/info-tip.css';
|
|
47
48
|
@import './styles/kbd.css';
|
|
48
49
|
@import './styles/keyboard-hint.css';
|
|
49
50
|
@import './styles/layer.css';
|
|
@@ -80,6 +81,7 @@
|
|
|
80
81
|
@import './styles/stack.css';
|
|
81
82
|
@import './styles/status-dot.css';
|
|
82
83
|
@import './styles/stepper.css';
|
|
84
|
+
@import './styles/stepper-track.css';
|
|
83
85
|
@import './styles/switch.css';
|
|
84
86
|
@import './styles/tab-list.css';
|
|
85
87
|
@import './styles/tab-menu.css';
|
package/dist/Tooltip-sESBLZwR.js
DELETED
|
@@ -1,339 +0,0 @@
|
|
|
1
|
-
import { r as useResolvedLayerTeleport } from "./useLayerMountTarget-BmZyeKWE.js";
|
|
2
|
-
import { i as isFocusable } from "./focus-l8jVTcqd.js";
|
|
3
|
-
import { n as useLayer, t as useMergedRefs } from "./useMergedRefs-CG0YVRL-.js";
|
|
4
|
-
import { t as _sfc_main$1 } from "./LayerContentBoundary-CvsKxwwm.js";
|
|
5
|
-
import { t as useHoverLayerDismiss } from "./useHoverLayerDismiss-kYJ_NqL4.js";
|
|
6
|
-
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, nextTick, onMounted, onScopeDispose, onUpdated, openBlock, ref, renderSlot, shallowRef, toDisplayString, toValue, unref, useAttrs, vShow, watch, withCtx, withDirectives } from "vue";
|
|
7
|
-
import "../styles/tooltip.css";
|
|
8
|
-
//#region src/Tooltip/useTooltip.ts
|
|
9
|
-
const GAP = 4;
|
|
10
|
-
/** 指针离开触发器到进入气泡之间的宽限时间。 */
|
|
11
|
-
const HOVER_BRIDGE_DELAY = 100;
|
|
12
|
-
const ACTION_TAGS = [
|
|
13
|
-
"A",
|
|
14
|
-
"BUTTON",
|
|
15
|
-
"INPUT",
|
|
16
|
-
"SELECT",
|
|
17
|
-
"TEXTAREA"
|
|
18
|
-
];
|
|
19
|
-
function matchesFocusVisible(element) {
|
|
20
|
-
try {
|
|
21
|
-
return element.matches(":focus-visible");
|
|
22
|
-
} catch {
|
|
23
|
-
return false;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* 对应原版 Astryx 的 `hooks/useTooltip`:悬停和焦点触发的文字提示。
|
|
28
|
-
* 负责延迟显示、焦点处理、`aria-describedby` 关联和定位,`Tooltip` 组件内部也用它。
|
|
29
|
-
*
|
|
30
|
-
* ```ts
|
|
31
|
-
* const { triggerRef, contentRef, contentStyle, contentProps } = useTooltip()
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
function useTooltip(options = {}) {
|
|
35
|
-
const triggerRef = shallowRef(null);
|
|
36
|
-
const isControlled = computed(() => toValue(options.isOpen) !== void 0);
|
|
37
|
-
const isTouchPointer = ref(false);
|
|
38
|
-
const layer = useLayer({
|
|
39
|
-
mode: "context",
|
|
40
|
-
anchor: triggerRef,
|
|
41
|
-
placement: () => toValue(options.placement) ?? "above",
|
|
42
|
-
alignment: () => toValue(options.alignment) ?? "center",
|
|
43
|
-
gap: GAP,
|
|
44
|
-
onShow: () => options.onShow?.(),
|
|
45
|
-
onHide: () => options.onHide?.()
|
|
46
|
-
});
|
|
47
|
-
const isOpen = computed(() => toValue(options.isOpen) ?? layer.isOpen.value);
|
|
48
|
-
function isEnabled() {
|
|
49
|
-
return toValue(options.isEnabled) ?? true;
|
|
50
|
-
}
|
|
51
|
-
function focusTriggerMode() {
|
|
52
|
-
return toValue(options.focusTrigger) ?? "auto";
|
|
53
|
-
}
|
|
54
|
-
function touchTriggerMode() {
|
|
55
|
-
return toValue(options.touchTrigger) ?? "auto";
|
|
56
|
-
}
|
|
57
|
-
let showTimer;
|
|
58
|
-
let hideTimer;
|
|
59
|
-
function clearTimers() {
|
|
60
|
-
clearTimeout(showTimer);
|
|
61
|
-
clearTimeout(hideTimer);
|
|
62
|
-
showTimer = void 0;
|
|
63
|
-
hideTimer = void 0;
|
|
64
|
-
}
|
|
65
|
-
function showNow() {
|
|
66
|
-
clearTimers();
|
|
67
|
-
if (!isEnabled() || isControlled.value) return;
|
|
68
|
-
layer.show();
|
|
69
|
-
}
|
|
70
|
-
function hideNow() {
|
|
71
|
-
clearTimers();
|
|
72
|
-
if (isControlled.value) return;
|
|
73
|
-
layer.hide();
|
|
74
|
-
}
|
|
75
|
-
function scheduleShow() {
|
|
76
|
-
if (!isEnabled() || isControlled.value) return;
|
|
77
|
-
clearTimers();
|
|
78
|
-
showTimer = setTimeout(showNow, toValue(options.delay) ?? 200);
|
|
79
|
-
}
|
|
80
|
-
function scheduleHide() {
|
|
81
|
-
if (isControlled.value) return;
|
|
82
|
-
clearTimers();
|
|
83
|
-
const wait = toValue(options.hideDelay) ?? 0;
|
|
84
|
-
hideTimer = setTimeout(hideNow, wait > 0 ? wait : HOVER_BRIDGE_DELAY);
|
|
85
|
-
}
|
|
86
|
-
function cancelHide() {
|
|
87
|
-
clearTimeout(hideTimer);
|
|
88
|
-
hideTimer = void 0;
|
|
89
|
-
}
|
|
90
|
-
function onPointerEnter(event) {
|
|
91
|
-
isTouchPointer.value = event.pointerType === "touch";
|
|
92
|
-
}
|
|
93
|
-
function onMouseEnter() {
|
|
94
|
-
if (isTouchPointer.value) return;
|
|
95
|
-
scheduleShow();
|
|
96
|
-
}
|
|
97
|
-
function onMouseLeave(event) {
|
|
98
|
-
if (isTouchPointer.value) return;
|
|
99
|
-
const next = event.relatedTarget;
|
|
100
|
-
if (next instanceof Node && layer.contentRef.value?.contains(next)) return;
|
|
101
|
-
scheduleHide();
|
|
102
|
-
}
|
|
103
|
-
function onTouchTap() {
|
|
104
|
-
if (!isEnabled() || isControlled.value || touchTriggerMode() === "none") return;
|
|
105
|
-
const trigger = triggerRef.value;
|
|
106
|
-
if (touchTriggerMode() === "auto" && trigger != null && ACTION_TAGS.includes(trigger.tagName)) return;
|
|
107
|
-
if (isOpen.value) hideNow();
|
|
108
|
-
else showNow();
|
|
109
|
-
}
|
|
110
|
-
function onPointerDown(event) {
|
|
111
|
-
if (event.pointerType === "touch") {
|
|
112
|
-
onTouchTap();
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
if (isControlled.value) return;
|
|
116
|
-
hideNow();
|
|
117
|
-
}
|
|
118
|
-
function onFocusIn(event) {
|
|
119
|
-
if (!isEnabled() || isTouchPointer.value) return;
|
|
120
|
-
if (!matchesFocusVisible(event.target)) return;
|
|
121
|
-
showNow();
|
|
122
|
-
}
|
|
123
|
-
function onFocusOut() {
|
|
124
|
-
scheduleHide();
|
|
125
|
-
}
|
|
126
|
-
useHoverLayerDismiss({
|
|
127
|
-
isPresent: () => isOpen.value,
|
|
128
|
-
getContainer: () => layer.contentRef.value,
|
|
129
|
-
onDismiss() {
|
|
130
|
-
clearTimers();
|
|
131
|
-
if (isControlled.value) {
|
|
132
|
-
options.onHide?.();
|
|
133
|
-
return;
|
|
134
|
-
}
|
|
135
|
-
layer.hide();
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
function shouldListenFocus(element) {
|
|
139
|
-
return focusTriggerMode() === "always" || focusTriggerMode() === "auto" && isFocusable(element);
|
|
140
|
-
}
|
|
141
|
-
let bound = null;
|
|
142
|
-
let describedByBefore = null;
|
|
143
|
-
function bind(element) {
|
|
144
|
-
if (bound === element) return;
|
|
145
|
-
unbind();
|
|
146
|
-
bound = element;
|
|
147
|
-
element.addEventListener("pointerenter", onPointerEnter);
|
|
148
|
-
element.addEventListener("mouseenter", onMouseEnter);
|
|
149
|
-
element.addEventListener("mouseleave", onMouseLeave);
|
|
150
|
-
element.addEventListener("pointerdown", onPointerDown);
|
|
151
|
-
if (shouldListenFocus(element)) {
|
|
152
|
-
element.addEventListener("focusin", onFocusIn);
|
|
153
|
-
element.addEventListener("focusout", onFocusOut);
|
|
154
|
-
}
|
|
155
|
-
describedByBefore = element.getAttribute("aria-describedby");
|
|
156
|
-
element.setAttribute("aria-describedby", [describedByBefore, layer.id].filter(Boolean).join(" "));
|
|
157
|
-
}
|
|
158
|
-
function unbind() {
|
|
159
|
-
if (bound == null) return;
|
|
160
|
-
bound.removeEventListener("pointerenter", onPointerEnter);
|
|
161
|
-
bound.removeEventListener("mouseenter", onMouseEnter);
|
|
162
|
-
bound.removeEventListener("mouseleave", onMouseLeave);
|
|
163
|
-
bound.removeEventListener("pointerdown", onPointerDown);
|
|
164
|
-
bound.removeEventListener("focusin", onFocusIn);
|
|
165
|
-
bound.removeEventListener("focusout", onFocusOut);
|
|
166
|
-
if (describedByBefore) bound.setAttribute("aria-describedby", describedByBefore);
|
|
167
|
-
else bound.removeAttribute("aria-describedby");
|
|
168
|
-
bound = null;
|
|
169
|
-
describedByBefore = null;
|
|
170
|
-
}
|
|
171
|
-
watch(triggerRef, (element) => {
|
|
172
|
-
if (element == null) unbind();
|
|
173
|
-
else bind(element);
|
|
174
|
-
}, { flush: "sync" });
|
|
175
|
-
watch(() => toValue(options.isEnabled), (enabled) => {
|
|
176
|
-
if (enabled !== false) return;
|
|
177
|
-
clearTimeout(showTimer);
|
|
178
|
-
showTimer = void 0;
|
|
179
|
-
}, { flush: "sync" });
|
|
180
|
-
function syncControlled(open) {
|
|
181
|
-
layer.isOpen.value = open;
|
|
182
|
-
}
|
|
183
|
-
watch(() => toValue(options.isOpen), (open) => {
|
|
184
|
-
clearTimers();
|
|
185
|
-
if (open === void 0) return;
|
|
186
|
-
syncControlled(open);
|
|
187
|
-
});
|
|
188
|
-
onMounted(() => {
|
|
189
|
-
if (isControlled.value) {
|
|
190
|
-
if (toValue(options.isOpen) === true) syncControlled(true);
|
|
191
|
-
return;
|
|
192
|
-
}
|
|
193
|
-
if (options.isDefaultOpen === true) showNow();
|
|
194
|
-
});
|
|
195
|
-
onScopeDispose(() => {
|
|
196
|
-
clearTimers();
|
|
197
|
-
unbind();
|
|
198
|
-
});
|
|
199
|
-
const contentProps = computed(() => ({
|
|
200
|
-
id: layer.id,
|
|
201
|
-
role: "tooltip",
|
|
202
|
-
onMouseenter: cancelHide,
|
|
203
|
-
onMouseleave: scheduleHide
|
|
204
|
-
}));
|
|
205
|
-
return {
|
|
206
|
-
isOpen,
|
|
207
|
-
triggerRef,
|
|
208
|
-
contentRef: layer.contentRef,
|
|
209
|
-
id: layer.id,
|
|
210
|
-
anchorId: layer.anchorId,
|
|
211
|
-
describedBy: layer.id,
|
|
212
|
-
contentStyle: layer.contentStyle,
|
|
213
|
-
resolvedPlacement: layer.resolvedPlacement,
|
|
214
|
-
contentProps
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
//#endregion
|
|
218
|
-
//#region src/Tooltip/Tooltip.vue
|
|
219
|
-
const _hoisted_1 = ["data-placement"];
|
|
220
|
-
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
221
|
-
name: "AstryxTooltip",
|
|
222
|
-
inheritAttrs: false,
|
|
223
|
-
__name: "Tooltip",
|
|
224
|
-
props: {
|
|
225
|
-
content: { default: "" },
|
|
226
|
-
placement: { default: "above" },
|
|
227
|
-
alignment: { default: "center" },
|
|
228
|
-
delay: { default: 200 },
|
|
229
|
-
hideDelay: { default: 0 },
|
|
230
|
-
focusTrigger: { default: "auto" },
|
|
231
|
-
touchTrigger: { default: "auto" },
|
|
232
|
-
isEnabled: {
|
|
233
|
-
type: Boolean,
|
|
234
|
-
default: true
|
|
235
|
-
},
|
|
236
|
-
hasHoverIndication: {
|
|
237
|
-
type: [String, Boolean],
|
|
238
|
-
default: "auto"
|
|
239
|
-
},
|
|
240
|
-
isOpen: {
|
|
241
|
-
type: Boolean,
|
|
242
|
-
default: void 0
|
|
243
|
-
},
|
|
244
|
-
isDefaultOpen: {
|
|
245
|
-
type: Boolean,
|
|
246
|
-
default: false
|
|
247
|
-
},
|
|
248
|
-
anchorsOnSelf: {
|
|
249
|
-
type: Boolean,
|
|
250
|
-
default: false
|
|
251
|
-
},
|
|
252
|
-
anchor: { default: void 0 }
|
|
253
|
-
},
|
|
254
|
-
emits: ["openChange"],
|
|
255
|
-
setup(__props, { emit: __emit }) {
|
|
256
|
-
const props = __props;
|
|
257
|
-
const emit = __emit;
|
|
258
|
-
const attrs = useAttrs();
|
|
259
|
-
const instance = getCurrentInstance();
|
|
260
|
-
const { triggerRef, contentRef, isOpen, contentStyle: bubbleStyle, resolvedPlacement, contentProps } = useTooltip({
|
|
261
|
-
placement: () => props.placement,
|
|
262
|
-
alignment: () => props.alignment,
|
|
263
|
-
delay: () => props.delay,
|
|
264
|
-
hideDelay: () => props.hideDelay,
|
|
265
|
-
focusTrigger: () => props.focusTrigger,
|
|
266
|
-
touchTrigger: () => props.touchTrigger,
|
|
267
|
-
isEnabled: () => props.isEnabled,
|
|
268
|
-
isOpen: () => props.isOpen,
|
|
269
|
-
isDefaultOpen: props.isDefaultOpen,
|
|
270
|
-
onShow: () => emit("openChange", true),
|
|
271
|
-
onHide: () => emit("openChange", false)
|
|
272
|
-
});
|
|
273
|
-
const setContentRef = useMergedRefs([contentRef]);
|
|
274
|
-
const wrapperRef = ref(null);
|
|
275
|
-
const teleportTarget = useResolvedLayerTeleport(computed(() => props.anchor ?? wrapperRef.value));
|
|
276
|
-
const isTextTrigger = ref(false);
|
|
277
|
-
const showIndication = computed(() => props.hasHoverIndication === true || props.hasHoverIndication === "auto" && isTextTrigger.value);
|
|
278
|
-
function resolveTrigger() {
|
|
279
|
-
if (props.anchor) {
|
|
280
|
-
isTextTrigger.value = false;
|
|
281
|
-
return props.anchor;
|
|
282
|
-
}
|
|
283
|
-
const wrapper = wrapperRef.value;
|
|
284
|
-
if (!wrapper) return null;
|
|
285
|
-
if (props.anchorsOnSelf) {
|
|
286
|
-
isTextTrigger.value = false;
|
|
287
|
-
return wrapper;
|
|
288
|
-
}
|
|
289
|
-
const child = wrapper.firstElementChild;
|
|
290
|
-
isTextTrigger.value = child == null && (wrapper.textContent ?? "").trim() !== "";
|
|
291
|
-
if (child) return child;
|
|
292
|
-
if (isTextTrigger.value) {
|
|
293
|
-
wrapper.tabIndex = 0;
|
|
294
|
-
return wrapper;
|
|
295
|
-
}
|
|
296
|
-
return null;
|
|
297
|
-
}
|
|
298
|
-
function findAnchorElement(vnode) {
|
|
299
|
-
if (vnode.el instanceof HTMLElement) return vnode.el;
|
|
300
|
-
if (vnode.component) return findAnchorElement(vnode.component.subTree);
|
|
301
|
-
if (vnode.type === Teleport || !Array.isArray(vnode.children)) return null;
|
|
302
|
-
for (const child of vnode.children) {
|
|
303
|
-
if (child == null || typeof child !== "object") continue;
|
|
304
|
-
const element = findAnchorElement(child);
|
|
305
|
-
if (element) return element;
|
|
306
|
-
}
|
|
307
|
-
return null;
|
|
308
|
-
}
|
|
309
|
-
function syncTrigger() {
|
|
310
|
-
if (props.anchorsOnSelf && !props.anchor) wrapperRef.value = instance ? findAnchorElement(instance.subTree) : null;
|
|
311
|
-
triggerRef.value = resolveTrigger();
|
|
312
|
-
}
|
|
313
|
-
watch(() => props.anchor, () => {
|
|
314
|
-
nextTick(syncTrigger);
|
|
315
|
-
});
|
|
316
|
-
onMounted(syncTrigger);
|
|
317
|
-
onUpdated(syncTrigger);
|
|
318
|
-
return (_ctx, _cache) => {
|
|
319
|
-
return openBlock(), createElementBlock(Fragment, null, [!__props.anchorsOnSelf && !__props.anchor ? (openBlock(), createElementBlock("span", mergeProps({
|
|
320
|
-
key: 0,
|
|
321
|
-
ref_key: "wrapperRef",
|
|
322
|
-
ref: wrapperRef
|
|
323
|
-
}, unref(attrs), { class: ["astryx-tooltip-trigger", {
|
|
324
|
-
"astryx-tooltip-trigger--text": isTextTrigger.value,
|
|
325
|
-
"astryx-tooltip-trigger--indicated": showIndication.value
|
|
326
|
-
}] }), [renderSlot(_ctx.$slots, "default")], 16)) : renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 1), (openBlock(), createBlock(Teleport, { to: unref(teleportTarget) }, [createCommentVNode(" eslint-disable-next-line vue-a11y/mouse-events-have-key-events, vue-a11y/no-static-element-interactions -- 气泡上的鼠标事件仅用于指针移入气泡时保持显示;键盘焦点由触发元素的 focusin / focusout 处理。 "), withDirectives(createElementVNode("div", mergeProps({
|
|
327
|
-
ref: unref(setContentRef),
|
|
328
|
-
class: "astryx-tooltip",
|
|
329
|
-
"data-placement": unref(resolvedPlacement),
|
|
330
|
-
style: unref(bubbleStyle)
|
|
331
|
-
}, unref(contentProps)), [createVNode(_sfc_main$1, null, {
|
|
332
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "content", {}, () => [createTextVNode(toDisplayString(__props.content), 1)])]),
|
|
333
|
-
_: 3
|
|
334
|
-
})], 16, _hoisted_1), [[vShow, unref(isOpen)]])], 8, ["to"]))], 64);
|
|
335
|
-
};
|
|
336
|
-
}
|
|
337
|
-
});
|
|
338
|
-
//#endregion
|
|
339
|
-
export { useTooltip as n, _sfc_main as t };
|
package/dist/index-CHuSkU5Q.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { n as LinkProps, t as LinkColor } from "./types-CbiqoBoG.js";
|
|
2
|
-
//#region src/Link/Link.vue.d.ts
|
|
3
|
-
type __VLS_Slots = {
|
|
4
|
-
default: () => unknown;
|
|
5
|
-
};
|
|
6
|
-
declare const __VLS_base: import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
-
click: (event: MouseEvent) => any;
|
|
8
|
-
}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{
|
|
9
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
10
|
-
}>, {
|
|
11
|
-
isDisabled: boolean;
|
|
12
|
-
color: LinkColor;
|
|
13
|
-
maxLines: number;
|
|
14
|
-
isExternalLink: boolean;
|
|
15
|
-
hasUnderline: boolean;
|
|
16
|
-
isStandalone: boolean;
|
|
17
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
-
declare const _default: typeof __VLS_export;
|
|
20
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
-
new (): {
|
|
22
|
-
$slots: S;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
//#endregion
|
|
26
|
-
export { _default as t };
|
package/dist/types-CbiqoBoG.d.ts
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { l as TextWeight, o as TextSize } from "./types-BymI5mmm.js";
|
|
2
|
-
import { Component } from "vue";
|
|
3
|
-
//#region src/Link/types.d.ts
|
|
4
|
-
type LinkColor = 'primary' | 'secondary' | 'accent' | 'inherit';
|
|
5
|
-
type LinkSize = TextSize;
|
|
6
|
-
type LinkWeight = TextWeight;
|
|
7
|
-
/** Custom root used instead of `<a>` when `href` is set. Pass `RouterLink` or another component that accepts `href` and `to`. */
|
|
8
|
-
type LinkRoot = string | Component;
|
|
9
|
-
interface LinkProps {
|
|
10
|
-
/**
|
|
11
|
-
* Custom root used instead of `<a>` when `href` is set and the link is enabled.
|
|
12
|
-
* The component receives `href` and `to`. Disabled links stay a plain anchor.
|
|
13
|
-
*/
|
|
14
|
-
as?: LinkRoot;
|
|
15
|
-
/**
|
|
16
|
-
* Accessible name. Set this when the visible content is not the name,
|
|
17
|
-
* for example an icon-only link. It replaces the link text for assistive technology.
|
|
18
|
-
*/
|
|
19
|
-
label?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Link destination URL.
|
|
22
|
-
*/
|
|
23
|
-
href?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Whether the link opens in a new tab and shows an external indicator.
|
|
26
|
-
* @default false
|
|
27
|
-
*/
|
|
28
|
-
isExternalLink?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Screen-reader text after an external link. Defaults to the current locale.
|
|
31
|
-
*/
|
|
32
|
-
newTabLabel?: string;
|
|
33
|
-
/**
|
|
34
|
-
* Whether the link always shows an underline.
|
|
35
|
-
* @default false
|
|
36
|
-
*/
|
|
37
|
-
hasUnderline?: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Text color.
|
|
40
|
-
* @default 'accent'
|
|
41
|
-
*/
|
|
42
|
-
color?: LinkColor;
|
|
43
|
-
/**
|
|
44
|
-
* Whether the link is disabled.
|
|
45
|
-
* @default false
|
|
46
|
-
*/
|
|
47
|
-
isDisabled?: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* HTML target attribute.
|
|
50
|
-
*/
|
|
51
|
-
target?: string;
|
|
52
|
-
/**
|
|
53
|
-
* HTML rel attribute.
|
|
54
|
-
*/
|
|
55
|
-
rel?: string;
|
|
56
|
-
/**
|
|
57
|
-
* Causes the browser to download the linked URL.
|
|
58
|
-
*/
|
|
59
|
-
download?: string | boolean;
|
|
60
|
-
/**
|
|
61
|
-
* 链接的 referrer 策略,原样转成 `referrerpolicy` 属性。
|
|
62
|
-
*/
|
|
63
|
-
referrerPolicy?: string;
|
|
64
|
-
/**
|
|
65
|
-
* Tooltip text shown on hover and keyboard focus.
|
|
66
|
-
*/
|
|
67
|
-
tooltip?: string;
|
|
68
|
-
/**
|
|
69
|
-
* Whether the link stands alone, rather than sitting inside body text.
|
|
70
|
-
* Applies body font size and line height.
|
|
71
|
-
* @default false
|
|
72
|
-
*/
|
|
73
|
-
isStandalone?: boolean;
|
|
74
|
-
/**
|
|
75
|
-
* Font size. Uses the same steps as Text.
|
|
76
|
-
*/
|
|
77
|
-
size?: LinkSize;
|
|
78
|
-
/**
|
|
79
|
-
* Font weight. `normal` is the same as `regular`.
|
|
80
|
-
*/
|
|
81
|
-
weight?: LinkWeight;
|
|
82
|
-
/**
|
|
83
|
-
* Maximum lines before the label truncates. `0` does not truncate.
|
|
84
|
-
* @default 0
|
|
85
|
-
*/
|
|
86
|
-
maxLines?: number;
|
|
87
|
-
}
|
|
88
|
-
//#endregion
|
|
89
|
-
export { LinkWeight as a, LinkSize as i, LinkProps as n, LinkRoot as r, LinkColor as t };
|
|
@@ -44,8 +44,8 @@ declare const __VLS_base: import("vue").DefineComponent<TokenProps, {}, {}, {},
|
|
|
44
44
|
}>, {
|
|
45
45
|
size: TokenSize;
|
|
46
46
|
labelHidden: boolean;
|
|
47
|
-
color: "default" | "blue" | "cyan" | "gray" | "green" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow";
|
|
48
47
|
disabled: boolean;
|
|
48
|
+
color: "default" | "blue" | "cyan" | "gray" | "green" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow";
|
|
49
49
|
removable: boolean;
|
|
50
50
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
51
51
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|