@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
|
@@ -0,0 +1,415 @@
|
|
|
1
|
+
import { r as useResolvedLayerTeleport } from "./useLayerMountTarget-BmZyeKWE.js";
|
|
2
|
+
import { t as useAnnounce } from "./announce-B210eJVf.js";
|
|
3
|
+
import { i as isFocusable } from "./focus-l8jVTcqd.js";
|
|
4
|
+
import { t as useLayer } from "./useLayer-Byjda3dD.js";
|
|
5
|
+
import { t as _sfc_main$1 } from "./LayerContentBoundary-CvsKxwwm.js";
|
|
6
|
+
import { t as useHoverLayerDismiss } from "./useHoverLayerDismiss-kYJ_NqL4.js";
|
|
7
|
+
import { Teleport, computed, createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, onMounted, onScopeDispose, openBlock, ref, renderSlot, shallowRef, toDisplayString, toValue, unref, vShow, watch, withCtx, withDirectives } from "vue";
|
|
8
|
+
import "../styles/tooltip.css";
|
|
9
|
+
//#region src/Tooltip/TooltipSurface.vue
|
|
10
|
+
const _hoisted_1 = ["data-placement"];
|
|
11
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
12
|
+
name: "AstryxTooltipSurface",
|
|
13
|
+
__name: "TooltipSurface",
|
|
14
|
+
props: {
|
|
15
|
+
tooltip: {},
|
|
16
|
+
anchor: {},
|
|
17
|
+
content: {}
|
|
18
|
+
},
|
|
19
|
+
setup(__props) {
|
|
20
|
+
/**
|
|
21
|
+
* 对应原版 `useTooltip` 返回的 `renderTooltip`:把 hook 管的气泡渲染出来。
|
|
22
|
+
* `Tooltip` 和 `InfoTip` 共用,气泡的挂载位置、样式和鼠标桥接都在这里。
|
|
23
|
+
*/
|
|
24
|
+
const props = __props;
|
|
25
|
+
const target = useResolvedLayerTeleport(computed(() => props.anchor));
|
|
26
|
+
const { contentRef } = props.tooltip;
|
|
27
|
+
function setContentRef(value) {
|
|
28
|
+
contentRef.value = value;
|
|
29
|
+
}
|
|
30
|
+
return (_ctx, _cache) => {
|
|
31
|
+
return openBlock(), createBlock(Teleport, { to: unref(target) }, [createCommentVNode(" eslint-disable-next-line vue-a11y/mouse-events-have-key-events, vue-a11y/no-static-element-interactions -- 气泡上的鼠标事件仅用于指针移入气泡时保持显示;键盘焦点由触发元素的 focusin / focusout 处理。 "), withDirectives(createElementVNode("div", mergeProps({
|
|
32
|
+
ref: setContentRef,
|
|
33
|
+
class: "astryx-tooltip",
|
|
34
|
+
"data-placement": __props.tooltip.resolvedPlacement.value,
|
|
35
|
+
style: __props.tooltip.contentStyle.value
|
|
36
|
+
}, __props.tooltip.contentProps.value), [createVNode(_sfc_main$1, null, {
|
|
37
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.content), 1)])]),
|
|
38
|
+
_: 3
|
|
39
|
+
})], 16, _hoisted_1), [[vShow, __props.tooltip.isOpen.value]])], 8, ["to"]);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/Tooltip/documentListeners.ts
|
|
45
|
+
/**
|
|
46
|
+
* 保持中的气泡在 document 上挂的两组监听,抽出来让 `useTooltip` 只管状态。
|
|
47
|
+
* 都返回「摘掉监听」的函数。
|
|
48
|
+
*/
|
|
49
|
+
/** 点击或滚动发生在 `isInside` 之外时调用 `onOutside`。 */
|
|
50
|
+
function listenOutside(onOutside) {
|
|
51
|
+
const handler = (event) => {
|
|
52
|
+
onOutside(event.target instanceof Node ? event.target : null);
|
|
53
|
+
};
|
|
54
|
+
document.addEventListener("pointerdown", handler, true);
|
|
55
|
+
document.addEventListener("scroll", handler, true);
|
|
56
|
+
return () => {
|
|
57
|
+
document.removeEventListener("pointerdown", handler, true);
|
|
58
|
+
document.removeEventListener("scroll", handler, true);
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
/** 一次按压的结束(抬起或取消)。`onEnd` 收到结束的事件。 */
|
|
62
|
+
function listenPressEnd(onEnd) {
|
|
63
|
+
function stop() {
|
|
64
|
+
document.removeEventListener("pointerup", handler, true);
|
|
65
|
+
document.removeEventListener("pointercancel", handler, true);
|
|
66
|
+
}
|
|
67
|
+
function handler(event) {
|
|
68
|
+
stop();
|
|
69
|
+
onEnd(event);
|
|
70
|
+
}
|
|
71
|
+
document.addEventListener("pointerup", handler, true);
|
|
72
|
+
document.addEventListener("pointercancel", handler, true);
|
|
73
|
+
return stop;
|
|
74
|
+
}
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region src/Tooltip/renderedText.ts
|
|
77
|
+
const HIDDEN = "[aria-hidden=\"true\"], [hidden]";
|
|
78
|
+
const BLOCKS = "p, div, li, br, h1, h2, h3, h4, h5, h6";
|
|
79
|
+
/**
|
|
80
|
+
* 对应原版 `hooks/useAnnounceRenderedText` 里的 `renderedText`:
|
|
81
|
+
* 读屏会念到的文字。块级元素之间隔开,`aria-hidden` 和 `hidden` 的部分跳过。
|
|
82
|
+
* 读的是真实 DOM,所以计算后的 display 也算数。
|
|
83
|
+
*/
|
|
84
|
+
function renderedText(element) {
|
|
85
|
+
const view = element.ownerDocument.defaultView;
|
|
86
|
+
const displayOf = (node) => view?.getComputedStyle(node).display ?? "";
|
|
87
|
+
const parts = [];
|
|
88
|
+
const walk = (node, parentDisplay) => {
|
|
89
|
+
if (node.nodeType === Node.TEXT_NODE) {
|
|
90
|
+
parts.push(node.textContent ?? "");
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
if (node.nodeType !== Node.ELEMENT_NODE) return;
|
|
94
|
+
const part = node;
|
|
95
|
+
if (part.matches(HIDDEN)) return;
|
|
96
|
+
const display = displayOf(part);
|
|
97
|
+
const isBlock = part.matches(BLOCKS) || display !== "" && display !== "contents" && !display.startsWith("inline") || /\b(?:flex|grid)\b/.test(parentDisplay);
|
|
98
|
+
if (isBlock) parts.push(" ");
|
|
99
|
+
part.childNodes.forEach((child) => walk(child, display));
|
|
100
|
+
if (isBlock) parts.push(" ");
|
|
101
|
+
};
|
|
102
|
+
const ownDisplay = displayOf(element);
|
|
103
|
+
element.childNodes.forEach((child) => walk(child, ownDisplay));
|
|
104
|
+
return parts.join("").replace(/\s+/g, " ").trim();
|
|
105
|
+
}
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region src/Tooltip/useTooltip.ts
|
|
108
|
+
const GAP = 4;
|
|
109
|
+
/** 指针离开触发器到进入气泡之间的宽限时间。 */
|
|
110
|
+
const HOVER_BRIDGE_DELAY = 100;
|
|
111
|
+
const ACTION_TAGS = [
|
|
112
|
+
"A",
|
|
113
|
+
"BUTTON",
|
|
114
|
+
"INPUT",
|
|
115
|
+
"SELECT",
|
|
116
|
+
"TEXTAREA"
|
|
117
|
+
];
|
|
118
|
+
function matchesFocusVisible(element) {
|
|
119
|
+
try {
|
|
120
|
+
return element.matches(":focus-visible");
|
|
121
|
+
} catch {
|
|
122
|
+
return false;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* 对应原版 Astryx 的 `hooks/useTooltip`:悬停和焦点触发的文字提示。
|
|
127
|
+
* 负责延迟显示、焦点处理、`aria-describedby` 关联和定位,`Tooltip` 组件内部也用它。
|
|
128
|
+
*
|
|
129
|
+
* ```ts
|
|
130
|
+
* const { triggerRef, contentRef, contentStyle, contentProps } = useTooltip()
|
|
131
|
+
* ```
|
|
132
|
+
*/
|
|
133
|
+
function useTooltip(options = {}) {
|
|
134
|
+
const triggerRef = shallowRef(null);
|
|
135
|
+
const isControlled = computed(() => toValue(options.isOpen) !== void 0);
|
|
136
|
+
const isTouchPointer = ref(false);
|
|
137
|
+
let bound = null;
|
|
138
|
+
const announce = useAnnounce();
|
|
139
|
+
const layer = useLayer({
|
|
140
|
+
mode: "context",
|
|
141
|
+
anchor: triggerRef,
|
|
142
|
+
placement: () => toValue(options.placement) ?? "above",
|
|
143
|
+
alignment: () => toValue(options.alignment) ?? "center",
|
|
144
|
+
gap: GAP,
|
|
145
|
+
onShow: () => options.onShow?.(),
|
|
146
|
+
onHide: () => options.onHide?.()
|
|
147
|
+
});
|
|
148
|
+
const isOpen = computed(() => toValue(options.isOpen) ?? layer.isOpen.value);
|
|
149
|
+
function isEnabled() {
|
|
150
|
+
return toValue(options.isEnabled) ?? true;
|
|
151
|
+
}
|
|
152
|
+
function focusTriggerMode() {
|
|
153
|
+
return toValue(options.focusTrigger) ?? "auto";
|
|
154
|
+
}
|
|
155
|
+
function touchTriggerMode() {
|
|
156
|
+
return toValue(options.touchTrigger) ?? "auto";
|
|
157
|
+
}
|
|
158
|
+
let showTimer;
|
|
159
|
+
let hideTimer;
|
|
160
|
+
function clearTimers() {
|
|
161
|
+
clearTimeout(showTimer);
|
|
162
|
+
clearTimeout(hideTimer);
|
|
163
|
+
showTimer = void 0;
|
|
164
|
+
hideTimer = void 0;
|
|
165
|
+
}
|
|
166
|
+
const isHeld = shallowRef(false);
|
|
167
|
+
let isHoldFromPress = false;
|
|
168
|
+
let isHoldInThisTask = false;
|
|
169
|
+
let isTriggerPressed = false;
|
|
170
|
+
let stopPressTracking = null;
|
|
171
|
+
let stopOutsideDismiss = null;
|
|
172
|
+
function isHeldOpen() {
|
|
173
|
+
return isHeld.value && layer.isOpen.value && toValue(options.isOpen) !== false;
|
|
174
|
+
}
|
|
175
|
+
function isInsideTooltip(node) {
|
|
176
|
+
return node != null && (bound?.contains(node) === true || layer.contentRef.value?.contains(node) === true);
|
|
177
|
+
}
|
|
178
|
+
function showNow() {
|
|
179
|
+
clearTimers();
|
|
180
|
+
if (!isEnabled() || isControlled.value) return;
|
|
181
|
+
layer.show();
|
|
182
|
+
}
|
|
183
|
+
function hideNow() {
|
|
184
|
+
clearTimers();
|
|
185
|
+
if (isControlled.value) return;
|
|
186
|
+
layer.hide();
|
|
187
|
+
}
|
|
188
|
+
function scheduleShow() {
|
|
189
|
+
if (!isEnabled() || isControlled.value) return;
|
|
190
|
+
clearTimers();
|
|
191
|
+
showTimer = setTimeout(showNow, toValue(options.delay) ?? 200);
|
|
192
|
+
}
|
|
193
|
+
function scheduleHide() {
|
|
194
|
+
if (toValue(options.isOpen) === true || isHeldOpen()) return;
|
|
195
|
+
clearTimers();
|
|
196
|
+
const wait = toValue(options.hideDelay) ?? 0;
|
|
197
|
+
hideTimer = setTimeout(hideNow, wait > 0 ? wait : HOVER_BRIDGE_DELAY);
|
|
198
|
+
}
|
|
199
|
+
function cancelHide() {
|
|
200
|
+
clearTimeout(hideTimer);
|
|
201
|
+
hideTimer = void 0;
|
|
202
|
+
}
|
|
203
|
+
function onPointerEnter(event) {
|
|
204
|
+
isTouchPointer.value = event.pointerType === "touch";
|
|
205
|
+
}
|
|
206
|
+
function onMouseEnter() {
|
|
207
|
+
if (isTouchPointer.value) return;
|
|
208
|
+
scheduleShow();
|
|
209
|
+
}
|
|
210
|
+
function onMouseLeave(event) {
|
|
211
|
+
if (isTouchPointer.value) return;
|
|
212
|
+
const next = event.relatedTarget;
|
|
213
|
+
if (next instanceof Node && layer.contentRef.value?.contains(next)) return;
|
|
214
|
+
scheduleHide();
|
|
215
|
+
}
|
|
216
|
+
function onTouchTap() {
|
|
217
|
+
if (!isEnabled() || isControlled.value || touchTriggerMode() === "none") return;
|
|
218
|
+
const trigger = triggerRef.value;
|
|
219
|
+
if (touchTriggerMode() === "auto" && trigger != null && ACTION_TAGS.includes(trigger.tagName)) return;
|
|
220
|
+
if (isOpen.value) hideNow();
|
|
221
|
+
else showNow();
|
|
222
|
+
}
|
|
223
|
+
function trackTriggerPress() {
|
|
224
|
+
stopPressTracking?.();
|
|
225
|
+
const trigger = bound;
|
|
226
|
+
if (trigger == null) return;
|
|
227
|
+
isTriggerPressed = true;
|
|
228
|
+
stopPressTracking = listenPressEnd((event) => {
|
|
229
|
+
isTriggerPressed = false;
|
|
230
|
+
stopPressTracking = null;
|
|
231
|
+
if (event.type !== "pointerup") return;
|
|
232
|
+
if (event.target instanceof Node && trigger.contains(event.target)) isHoldFromPress = false;
|
|
233
|
+
else if (isHoldFromPress && isHeld.value) {
|
|
234
|
+
setHeld(false);
|
|
235
|
+
if (!(event.target instanceof Node && isInsideTooltip(event.target))) scheduleHide();
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
function onPointerDown(event) {
|
|
240
|
+
trackTriggerPress();
|
|
241
|
+
if (isHeld.value) {
|
|
242
|
+
if (isHoldInThisTask) isHoldFromPress = true;
|
|
243
|
+
return;
|
|
244
|
+
}
|
|
245
|
+
if (event.pointerType === "touch") {
|
|
246
|
+
onTouchTap();
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
if (isControlled.value) return;
|
|
250
|
+
hideNow();
|
|
251
|
+
}
|
|
252
|
+
function onFocusIn(event) {
|
|
253
|
+
if (!isEnabled() || isTouchPointer.value) return;
|
|
254
|
+
if (!matchesFocusVisible(event.target)) return;
|
|
255
|
+
showNow();
|
|
256
|
+
}
|
|
257
|
+
function onFocusOut() {
|
|
258
|
+
scheduleHide();
|
|
259
|
+
}
|
|
260
|
+
function onHeldFocusOut(event) {
|
|
261
|
+
if (!isHeldOpen()) return;
|
|
262
|
+
const next = event.relatedTarget;
|
|
263
|
+
if (!(next instanceof Node) || isInsideTooltip(next)) return;
|
|
264
|
+
releaseHold();
|
|
265
|
+
}
|
|
266
|
+
function armOutsideDismiss() {
|
|
267
|
+
stopOutsideDismiss?.();
|
|
268
|
+
if (typeof document === "undefined") return;
|
|
269
|
+
stopOutsideDismiss = listenOutside((target) => {
|
|
270
|
+
if (isHeldOpen() && !(target != null && isInsideTooltip(target))) releaseHold();
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
function setHeld(next) {
|
|
274
|
+
isHeld.value = next;
|
|
275
|
+
if (!next) {
|
|
276
|
+
stopOutsideDismiss?.();
|
|
277
|
+
isHoldFromPress = false;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
function dropHold() {
|
|
281
|
+
if (isHeld.value) setHeld(false);
|
|
282
|
+
}
|
|
283
|
+
function releaseHold() {
|
|
284
|
+
setHeld(false);
|
|
285
|
+
if (toValue(options.isOpen) !== void 0) {
|
|
286
|
+
options.onHide?.();
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
289
|
+
hideNow();
|
|
290
|
+
}
|
|
291
|
+
function show() {
|
|
292
|
+
clearTimers();
|
|
293
|
+
if (!isEnabled()) return;
|
|
294
|
+
setHeld(true);
|
|
295
|
+
armOutsideDismiss();
|
|
296
|
+
isHoldFromPress = isTriggerPressed;
|
|
297
|
+
isHoldInThisTask = true;
|
|
298
|
+
setTimeout(() => {
|
|
299
|
+
isHoldInThisTask = false;
|
|
300
|
+
}, 0);
|
|
301
|
+
if (isControlled.value) {
|
|
302
|
+
options.onShow?.();
|
|
303
|
+
return;
|
|
304
|
+
}
|
|
305
|
+
layer.show();
|
|
306
|
+
}
|
|
307
|
+
function hide() {
|
|
308
|
+
clearTimers();
|
|
309
|
+
releaseHold();
|
|
310
|
+
}
|
|
311
|
+
watch(() => isHeld.value && isOpen.value, (shown) => {
|
|
312
|
+
if (!shown) return;
|
|
313
|
+
const text = layer.contentRef.value == null ? "" : renderedText(layer.contentRef.value);
|
|
314
|
+
if (text !== "") announce(text);
|
|
315
|
+
}, { flush: "post" });
|
|
316
|
+
useHoverLayerDismiss({
|
|
317
|
+
isPresent: () => isOpen.value,
|
|
318
|
+
getContainer: () => layer.contentRef.value,
|
|
319
|
+
onDismiss() {
|
|
320
|
+
clearTimers();
|
|
321
|
+
dropHold();
|
|
322
|
+
if (isControlled.value) {
|
|
323
|
+
options.onHide?.();
|
|
324
|
+
return;
|
|
325
|
+
}
|
|
326
|
+
layer.hide();
|
|
327
|
+
}
|
|
328
|
+
});
|
|
329
|
+
function shouldListenFocus(element) {
|
|
330
|
+
return focusTriggerMode() === "always" || focusTriggerMode() === "auto" && isFocusable(element);
|
|
331
|
+
}
|
|
332
|
+
let describedByBefore = null;
|
|
333
|
+
function bind(element) {
|
|
334
|
+
if (bound === element) return;
|
|
335
|
+
unbind();
|
|
336
|
+
bound = element;
|
|
337
|
+
element.addEventListener("pointerenter", onPointerEnter);
|
|
338
|
+
element.addEventListener("mouseenter", onMouseEnter);
|
|
339
|
+
element.addEventListener("mouseleave", onMouseLeave);
|
|
340
|
+
element.addEventListener("pointerdown", onPointerDown);
|
|
341
|
+
element.addEventListener("focusout", onHeldFocusOut);
|
|
342
|
+
if (shouldListenFocus(element)) {
|
|
343
|
+
element.addEventListener("focusin", onFocusIn);
|
|
344
|
+
element.addEventListener("focusout", onFocusOut);
|
|
345
|
+
}
|
|
346
|
+
describedByBefore = element.getAttribute("aria-describedby");
|
|
347
|
+
element.setAttribute("aria-describedby", [describedByBefore, layer.id].filter(Boolean).join(" "));
|
|
348
|
+
}
|
|
349
|
+
function unbind() {
|
|
350
|
+
if (bound == null) return;
|
|
351
|
+
bound.removeEventListener("pointerenter", onPointerEnter);
|
|
352
|
+
bound.removeEventListener("mouseenter", onMouseEnter);
|
|
353
|
+
bound.removeEventListener("mouseleave", onMouseLeave);
|
|
354
|
+
bound.removeEventListener("pointerdown", onPointerDown);
|
|
355
|
+
bound.removeEventListener("focusout", onHeldFocusOut);
|
|
356
|
+
stopPressTracking?.();
|
|
357
|
+
bound.removeEventListener("focusin", onFocusIn);
|
|
358
|
+
bound.removeEventListener("focusout", onFocusOut);
|
|
359
|
+
if (describedByBefore) bound.setAttribute("aria-describedby", describedByBefore);
|
|
360
|
+
else bound.removeAttribute("aria-describedby");
|
|
361
|
+
bound = null;
|
|
362
|
+
describedByBefore = null;
|
|
363
|
+
}
|
|
364
|
+
watch(triggerRef, (element) => {
|
|
365
|
+
if (element == null) unbind();
|
|
366
|
+
else bind(element);
|
|
367
|
+
}, { flush: "sync" });
|
|
368
|
+
watch(() => toValue(options.isEnabled), (enabled) => {
|
|
369
|
+
if (enabled !== false) return;
|
|
370
|
+
clearTimeout(showTimer);
|
|
371
|
+
showTimer = void 0;
|
|
372
|
+
}, { flush: "sync" });
|
|
373
|
+
function syncControlled(open) {
|
|
374
|
+
layer.isOpen.value = open;
|
|
375
|
+
}
|
|
376
|
+
watch(() => toValue(options.isOpen), (open) => {
|
|
377
|
+
clearTimers();
|
|
378
|
+
if (open === void 0) return;
|
|
379
|
+
if (!open) dropHold();
|
|
380
|
+
syncControlled(open);
|
|
381
|
+
});
|
|
382
|
+
onMounted(() => {
|
|
383
|
+
if (isControlled.value) {
|
|
384
|
+
if (toValue(options.isOpen) === true) syncControlled(true);
|
|
385
|
+
return;
|
|
386
|
+
}
|
|
387
|
+
if (options.isDefaultOpen === true) showNow();
|
|
388
|
+
});
|
|
389
|
+
onScopeDispose(() => {
|
|
390
|
+
clearTimers();
|
|
391
|
+
stopOutsideDismiss?.();
|
|
392
|
+
unbind();
|
|
393
|
+
});
|
|
394
|
+
const contentProps = computed(() => ({
|
|
395
|
+
id: layer.id,
|
|
396
|
+
role: "tooltip",
|
|
397
|
+
onMouseenter: cancelHide,
|
|
398
|
+
onMouseleave: scheduleHide
|
|
399
|
+
}));
|
|
400
|
+
return {
|
|
401
|
+
isOpen,
|
|
402
|
+
triggerRef,
|
|
403
|
+
contentRef: layer.contentRef,
|
|
404
|
+
id: layer.id,
|
|
405
|
+
anchorId: layer.anchorId,
|
|
406
|
+
describedBy: layer.id,
|
|
407
|
+
contentStyle: layer.contentStyle,
|
|
408
|
+
resolvedPlacement: layer.resolvedPlacement,
|
|
409
|
+
contentProps,
|
|
410
|
+
show,
|
|
411
|
+
hide
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
//#endregion
|
|
415
|
+
export { _sfc_main as n, useTooltip as t };
|
package/dist/utils/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { n as isSafeUrl, r as sanitizeUrl, t as isSafeDestination } from "../safeUrl-CsvfcZ9m.js";
|
|
2
2
|
import { n as firstCharacter, r as truncateCharacters, t as characterCount } from "../characters-wTnzjkkR.js";
|
|
3
3
|
import { a as presentationFromNativePicker, i as pickerPresentationFromNativePicker, n as effectiveInputPresentation, o as resolveInputPresentation, r as effectivePickerPresentation, s as resolvePickerPresentation, t as DEFAULT_INPUT_PRESENTATION } from "../inputPresentation-BOyHkCDr.js";
|
|
4
|
-
import {
|
|
4
|
+
import { n as unobserveResize, t as observeResize } from "../sharedResizeObserver-9EFWnSWH.js";
|
|
5
|
+
import { A as plainDateCreate, B as plainDateIsEqual, C as DATE_FORMAT_WITH_WEEKDAY, D as getTimeZoneParts, E as getDaysInMonth, F as plainDateFromISO, G as plainDateSetFirstOfMonth, H as plainDateMax, I as plainDateFromInstant, J as plainDateToISO, K as plainDateSetStartOfWeek, L as plainDateGetWeekNumber, M as plainDateDiffDays, N as plainDateFormat, O as plainDateAddDays, P as plainDateFromDate, Q as chainEventHandlers, R as plainDateIsAfter, S as DATE_FORMAT_WEEKDAY_ONLY, T as formatSharedDate, U as plainDateMin, V as plainDateIsInRange, W as plainDateSetEndOfWeekExclusive, X as plainDateToday, Y as plainDateToInstant, Z as plainDateWeekFieldName, _ as DATE_FORMAT_MONTH_ONLY, a as formatDisplayTime12h, b as DATE_FORMAT_SHORT_WITH_WEEKDAY, c as parseStyleKey, d as getItemGroup, f as groupItems, g as DATE_FORMAT_LONG, h as parseDateInput, i as createISOTimeString, j as plainDateDayOfWeek, k as plainDateAddMonths, l as getInputARIA, m as isLocaleDayFirst, n as clampTime, o as formatDisplayTime24h, p as normalizeDayOfWeek, q as plainDateToDate, r as compareTime, s as parseTimeInput, t as adjustTime, u as joinAriaIDs, v as DATE_FORMAT_MONTH_YEAR, w as SHARED_DATE_FORMAT_OPTIONS, x as DATE_FORMAT_SHORT_WITH_YEAR, y as DATE_FORMAT_SHORT, z as plainDateIsBefore } from "../utils-BOmFijPc.js";
|
|
5
6
|
export { DATE_FORMAT_LONG, DATE_FORMAT_MONTH_ONLY, DATE_FORMAT_MONTH_YEAR, DATE_FORMAT_SHORT, DATE_FORMAT_SHORT_WITH_WEEKDAY, DATE_FORMAT_SHORT_WITH_YEAR, DATE_FORMAT_WEEKDAY_ONLY, DATE_FORMAT_WITH_WEEKDAY, DEFAULT_INPUT_PRESENTATION, SHARED_DATE_FORMAT_OPTIONS, adjustTime, chainEventHandlers, characterCount, clampTime, compareTime, createISOTimeString, plainDateToISO as dateToISO, plainDateToISO, effectiveInputPresentation, effectivePickerPresentation, firstCharacter, formatDisplayTime12h, formatDisplayTime24h, formatSharedDate, getDaysInMonth, getInputARIA, getItemGroup, getTimeZoneParts, groupItems, isLocaleDayFirst, isSafeDestination, isSafeUrl, joinAriaIDs, normalizeDayOfWeek, observeResize, parseDateInput, plainDateFromISO as parseISO, plainDateFromISO, parseStyleKey, parseTimeInput, pickerPresentationFromNativePicker, plainDateAddDays, plainDateAddMonths, plainDateCreate, plainDateDayOfWeek, plainDateDiffDays, plainDateFormat, plainDateFromDate, plainDateFromInstant, plainDateGetWeekNumber, plainDateIsAfter, plainDateIsBefore, plainDateIsEqual, plainDateIsInRange, plainDateMax, plainDateMin, plainDateSetEndOfWeekExclusive, plainDateSetFirstOfMonth, plainDateSetStartOfWeek, plainDateToDate, plainDateToInstant, plainDateToday, plainDateWeekFieldName, presentationFromNativePicker, resolveInputPresentation, resolvePickerPresentation, sanitizeUrl, truncateCharacters, unobserveResize };
|
|
@@ -532,92 +532,6 @@ function parseStyleKey(key) {
|
|
|
532
532
|
}).join("");
|
|
533
533
|
}
|
|
534
534
|
//#endregion
|
|
535
|
-
//#region src/utils/sharedResizeObserver.ts
|
|
536
|
-
let observer = null;
|
|
537
|
-
const callbacks = /* @__PURE__ */ new Map();
|
|
538
|
-
/**
|
|
539
|
-
* The shared observer, or null where the API does not exist (jsdom, an old
|
|
540
|
-
* browser). Callers still get the one-shot measurement `observeResize` fires
|
|
541
|
-
* on registration; live resize updates are the part that needs the API.
|
|
542
|
-
*/
|
|
543
|
-
function getObserver() {
|
|
544
|
-
if (typeof ResizeObserver === "undefined") return null;
|
|
545
|
-
if (!observer) observer = new ResizeObserver((entries) => {
|
|
546
|
-
for (const entry of entries) {
|
|
547
|
-
const targetCallbacks = callbacks.get(entry.target);
|
|
548
|
-
if (targetCallbacks) for (const cb of [...targetCallbacks.keys()]) cb(entry);
|
|
549
|
-
}
|
|
550
|
-
});
|
|
551
|
-
return observer;
|
|
552
|
-
}
|
|
553
|
-
/**
|
|
554
|
-
* Observe an element's size via a shared ResizeObserver singleton.
|
|
555
|
-
*
|
|
556
|
-
* Fires the callback once synchronously on registration (with a
|
|
557
|
-
* synthetic entry) so callers don't need separate initial-measurement
|
|
558
|
-
* logic. Subsequent callbacks fire on actual resizes.
|
|
559
|
-
*
|
|
560
|
-
* Returns an unsubscribe function that removes only this registration, leaving
|
|
561
|
-
* every other observer of the same element intact — prefer it over
|
|
562
|
-
* `unobserveResize(element)`, which drops them all. The shared observer is
|
|
563
|
-
* destroyed when the last element is unobserved.
|
|
564
|
-
*
|
|
565
|
-
* @example
|
|
566
|
-
* ```
|
|
567
|
-
* const unsubscribe = observeResize(element, (entry) => {
|
|
568
|
-
* console.log(entry.contentBoxSize);
|
|
569
|
-
* });
|
|
570
|
-
*
|
|
571
|
-
* // Cleanup:
|
|
572
|
-
* unsubscribe();
|
|
573
|
-
* ```
|
|
574
|
-
*/
|
|
575
|
-
function observeResize(element, callback) {
|
|
576
|
-
const existing = callbacks.get(element);
|
|
577
|
-
if (existing) existing.set(callback, (existing.get(callback) ?? 0) + 1);
|
|
578
|
-
else callbacks.set(element, /* @__PURE__ */ new Map([[callback, 1]]));
|
|
579
|
-
getObserver()?.observe(element);
|
|
580
|
-
callback({ target: element });
|
|
581
|
-
let isSubscribed = true;
|
|
582
|
-
return () => {
|
|
583
|
-
if (!isSubscribed) return;
|
|
584
|
-
isSubscribed = false;
|
|
585
|
-
unobserveResize(element, callback);
|
|
586
|
-
};
|
|
587
|
-
}
|
|
588
|
-
/**
|
|
589
|
-
* Stop observing an element.
|
|
590
|
-
*
|
|
591
|
-
* Pass the callback to remove only that registration — the unsubscribe returned
|
|
592
|
-
* by `observeResize` does this for you. Omitting it removes EVERY callback on
|
|
593
|
-
* the element, which silences peers that are still mounted, so it is only
|
|
594
|
-
* correct for a caller that owns the element outright.
|
|
595
|
-
*
|
|
596
|
-
* If no elements remain, the shared observer is disconnected and released for
|
|
597
|
-
* garbage collection.
|
|
598
|
-
*/
|
|
599
|
-
function unobserveResize(element, callback) {
|
|
600
|
-
const targetCallbacks = callbacks.get(element);
|
|
601
|
-
if (callback != null) {
|
|
602
|
-
const registrationCount = targetCallbacks?.get(callback);
|
|
603
|
-
if (targetCallbacks == null || registrationCount == null) return;
|
|
604
|
-
if (registrationCount > 1) {
|
|
605
|
-
targetCallbacks.set(callback, registrationCount - 1);
|
|
606
|
-
return;
|
|
607
|
-
}
|
|
608
|
-
targetCallbacks.delete(callback);
|
|
609
|
-
if (targetCallbacks.size > 0) return;
|
|
610
|
-
}
|
|
611
|
-
callbacks.delete(element);
|
|
612
|
-
if (observer) {
|
|
613
|
-
observer.unobserve(element);
|
|
614
|
-
if (callbacks.size === 0) {
|
|
615
|
-
observer.disconnect();
|
|
616
|
-
observer = null;
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
//#endregion
|
|
621
535
|
//#region src/utils/timeParser.ts
|
|
622
536
|
/**
|
|
623
537
|
* Validates and creates an ISOTimeString from a string.
|
|
@@ -812,4 +726,4 @@ function adjustTime(time, deltaMinutes, includeSeconds = false) {
|
|
|
812
726
|
}, includeSeconds);
|
|
813
727
|
}
|
|
814
728
|
//#endregion
|
|
815
|
-
export {
|
|
729
|
+
export { plainDateCreate as A, plainDateIsEqual as B, DATE_FORMAT_WITH_WEEKDAY as C, getTimeZoneParts as D, getDaysInMonth as E, plainDateFromISO as F, plainDateSetFirstOfMonth as G, plainDateMax as H, plainDateFromInstant as I, plainDateToISO as J, plainDateSetStartOfWeek as K, plainDateGetWeekNumber as L, plainDateDiffDays as M, plainDateFormat as N, plainDateAddDays as O, plainDateFromDate as P, chainEventHandlers as Q, plainDateIsAfter as R, DATE_FORMAT_WEEKDAY_ONLY as S, formatSharedDate as T, plainDateMin as U, plainDateIsInRange as V, plainDateSetEndOfWeekExclusive as W, plainDateToday as X, plainDateToInstant as Y, plainDateWeekFieldName as Z, DATE_FORMAT_MONTH_ONLY as _, formatDisplayTime12h as a, DATE_FORMAT_SHORT_WITH_WEEKDAY as b, parseStyleKey as c, getItemGroup as d, groupItems as f, DATE_FORMAT_LONG as g, parseDateInput as h, createISOTimeString as i, plainDateDayOfWeek as j, plainDateAddMonths as k, getInputARIA as l, isLocaleDayFirst as m, clampTime as n, formatDisplayTime24h as o, normalizeDayOfWeek as p, plainDateToDate as q, compareTime as r, parseTimeInput as s, adjustTime as t, joinAriaIDs as u, DATE_FORMAT_MONTH_YEAR as v, SHARED_DATE_FORMAT_OPTIONS as w, DATE_FORMAT_SHORT_WITH_YEAR as x, DATE_FORMAT_SHORT as y, plainDateIsBefore as z };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryx-vue/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.22",
|
|
5
5
|
"description": "Vue 3 components for the unofficial astryx-vue port of Astryx. Not affiliated with Meta.",
|
|
6
6
|
"author": "ShenQingchuan",
|
|
7
7
|
"license": "MIT",
|
|
@@ -236,6 +236,10 @@
|
|
|
236
236
|
"types": "./dist/Timestamp/index.d.ts",
|
|
237
237
|
"import": "./dist/Timestamp/index.js"
|
|
238
238
|
},
|
|
239
|
+
"./InfoTip": {
|
|
240
|
+
"types": "./dist/InfoTip/index.d.ts",
|
|
241
|
+
"import": "./dist/InfoTip/index.js"
|
|
242
|
+
},
|
|
239
243
|
"./Tooltip": {
|
|
240
244
|
"types": "./dist/Tooltip/index.d.ts",
|
|
241
245
|
"import": "./dist/Tooltip/index.js"
|
|
@@ -248,6 +252,10 @@
|
|
|
248
252
|
"types": "./dist/Dialog/index.d.ts",
|
|
249
253
|
"import": "./dist/Dialog/index.js"
|
|
250
254
|
},
|
|
255
|
+
"./SizeContext": {
|
|
256
|
+
"types": "./dist/SizeContext/index.d.ts",
|
|
257
|
+
"import": "./dist/SizeContext/index.js"
|
|
258
|
+
},
|
|
251
259
|
"./Skeleton": {
|
|
252
260
|
"types": "./dist/Skeleton/index.d.ts",
|
|
253
261
|
"import": "./dist/Skeleton/index.js"
|
package/styles/app-shell.css
CHANGED
|
@@ -77,6 +77,18 @@
|
|
|
77
77
|
background-color: var(--astryx-color-background-surface, #fff);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
+
/* 自动高度时页头钉在顶部,页面滚动时内容从它下面走(原版 headerSticky)。 */
|
|
81
|
+
.astryx-app-shell[data-height='auto'] .astryx-app-shell__header,
|
|
82
|
+
.astryx-app-shell[data-height='auto'] .astryx-app-shell__mobile-bar {
|
|
83
|
+
position: sticky;
|
|
84
|
+
top: 0;
|
|
85
|
+
z-index: 1;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.astryx-app-shell[data-height='auto'] .astryx-app-shell__header[data-variant='section'] {
|
|
89
|
+
background-color: var(--astryx-color-background-surface, #fff);
|
|
90
|
+
}
|
|
91
|
+
|
|
80
92
|
.astryx-app-shell__banner {
|
|
81
93
|
flex-shrink: 0;
|
|
82
94
|
}
|
package/styles/avatar.css
CHANGED
|
@@ -58,14 +58,26 @@
|
|
|
58
58
|
justify-content: center;
|
|
59
59
|
width: 100%;
|
|
60
60
|
height: 100%;
|
|
61
|
-
color: var(--astryx-avatar-fallback-foreground, #
|
|
61
|
+
color: var(--astryx-avatar-fallback-foreground, var(--astryx-color-text-primary, #000));
|
|
62
62
|
font-family: var(--astryx-font-family-body, Figtree, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
|
|
63
63
|
font-weight: var(--astryx-font-weight-medium, 500);
|
|
64
|
-
|
|
64
|
+
/* 原版首字母行高跟正文行高比例走(8px 字 → 11.43px),影响行内基线对齐。 */
|
|
65
|
+
line-height: var(--astryx-text-body-leading, 1.4286);
|
|
65
66
|
text-transform: uppercase;
|
|
66
67
|
user-select: none;
|
|
67
68
|
}
|
|
68
69
|
|
|
70
|
+
/* Initials are painted via generated content (as upstream): part of the picture, not text. */
|
|
71
|
+
.astryx-avatar__fallback--initials::before {
|
|
72
|
+
content: attr(data-initials);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@supports (content: "a" / "") {
|
|
76
|
+
.astryx-avatar__fallback--initials::before {
|
|
77
|
+
content: attr(data-initials) / "";
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
69
81
|
.astryx-avatar__fallback svg {
|
|
70
82
|
width: 1em;
|
|
71
83
|
height: 1em;
|