@astryx-vue/core 0.7.24 → 0.7.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AlertDialog/index.d.ts +1 -1
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-DsPFYRxB.js → AlertDialog--9IcMdY3.js} +2 -2
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-cNntRBEo.js → Avatar-CqPpL59Q.js} +24 -19
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-CiJia58o.js → AvatarGroup-lmO-a3Eq.js} +16 -6
- package/dist/Badge/index.js +1 -1
- package/dist/{Badge-CjDQPF5g.js → Badge-DByZSDmu.js} +10 -3
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-C8f377q3.js → Banner-BpiQjQvG.js} +2 -2
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-CXJNJ93V.js → Breadcrumbs-CH-rcc_-.js} +3 -3
- package/dist/Button/index.d.ts +2 -2
- package/dist/Button/index.js +1 -1
- package/dist/{Button-Dgm5wCch.js → Button-7W3G5gok.js} +4 -3
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-d_uOkvFE.js → Calendar-DjhwshS8.js} +1 -1
- package/dist/Card/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-BWTArLIP.js → Carousel-RN3BV6qj.js} +63 -18
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-DKZWVA3Q.js → Chat-D5cXLYlh.js} +3 -3
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-B4pDfjvr.js → CheckboxInput-GFjf15n3.js} +4 -4
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-DtxfdHRI.js → CheckboxList-CJzRo5vd.js} +5 -5
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-CCu6QWG7.js → Citation-C_XMPOpv.js} +3 -1
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-jEBZbzHE.js → ClickableCard-qeVRS9dw.js} +14 -5
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +2 -2
- package/dist/{Code-PDhTfE2w.js → Code-6GS0nAkR.js} +1 -1
- package/dist/{CodeBlock-BrE72i6C.js → CodeBlock-9NMYGL48.js} +19 -10
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BsPZ8CoN.js → Collapsible-CifnTLlc.js} +2 -2
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-0Kg-dJg3.js → CommandPalette-BbGFrwAI.js} +3 -3
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-BrGVG8c7.js → ComplexSelector-DMnzBMY1.js} +5 -5
- package/dist/ComponentIcon-hPmWTSXE.js +37 -0
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-CgSIWUYh.js → ContextMenu-BD3pObnQ.js} +2 -2
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-vV0tc4a4.js → DateInput-CYFPGd__.js} +10 -8
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-DcM1Zntr.js → DateRangeInput-BOdKqQUw.js} +6 -6
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-DbbVU3bk.js → DateTimeInput-Bs4T8KWb.js} +7 -7
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +1 -1
- package/dist/{DialogHeader-D1sgjPC7.js → DialogHeader-Dii5B7vE.js} +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-CaZF_-lH.js → Drawer-CtuxdSAd.js} +1 -1
- package/dist/DropdownMenu/index.d.ts +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-BjE_cTDM.js → DropdownMenu-BmAeVIu5.js} +4 -4
- package/dist/{DropdownMenu-B3R5WLsl.js → DropdownMenu-CXyECszu.js} +4 -4
- package/dist/{DropdownMenuRadioItem.vue-z0XU7pZS.d.ts → DropdownMenuRadioItem.vue-D455cIQQ.d.ts} +1 -1
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-BQrzgh2f.js → EmptyState-DaVNSbYi.js} +1 -1
- package/dist/Field/index.d.ts +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-DLg-trP2.js → Field-CdrGdY7U.js} +2 -2
- package/dist/{FieldIcon-CxTnEb4Y.js → FieldIcon-BB08VXf7.js} +1 -1
- package/dist/{FieldInfoTip-D5IOQrVA.js → FieldInfoTip-CPhFmGaY.js} +2 -2
- package/dist/{FieldLabel-D5_Pap_W.js → FieldLabel-lJ1exgvq.js} +2 -2
- package/dist/FieldStatus/index.d.ts +1 -1
- package/dist/FieldStatus/index.js +1 -1
- package/dist/{FieldStatus-D6Vo_dU5.js → FieldStatus-CR-cK1rW.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-CKYpJtuU.js → FileInput-C85funO_.js} +5 -5
- package/dist/Icon/index.d.ts +4 -4
- package/dist/Icon/index.js +4 -2
- package/dist/Icon/plugin.js +1 -1
- package/dist/Icon-B2aULLnn.js +15 -0
- package/dist/{Icon-CU3412Fe.js → Icon-DAcZMgiJ.js} +47 -85
- package/dist/IconButton/index.d.ts +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-B6AQLlx9.js → IconButton-Cn4re9lo.js} +1 -1
- package/dist/Indicator/index.d.ts +2 -2
- package/dist/Indicator/index.js +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-BlOySTNC.js → InfoTip-CQmrs5nz.js} +1 -1
- package/dist/{InputClearButton-BbFXoxWi.js → InputClearButton-gGlttFrg.js} +2 -2
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +2 -2
- package/dist/{InputGroup-BleRgc6W.js → InputGroup-DQpDwkjF.js} +23 -16
- package/dist/{Item-X9wgYWoD.js → Item-Dbf2g0Ee.js} +25 -5
- package/dist/Kbd/index.d.ts +1 -1
- package/dist/Kbd/index.js +1 -1
- package/dist/{Kbd-CV3LO2Ge.js → Kbd-Dn1LTcNY.js} +24 -7
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-DLZzT9un.js → Lightbox-Duz-OrsN.js} +2 -2
- package/dist/Link/index.d.ts +2 -2
- package/dist/Link/index.js +1 -1
- package/dist/{Link-Qhzs2lcO.js → Link-C0NPH_Zy.js} +57 -68
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-CertehfW.js → ListItem-C8F4r-3e.js} +2 -2
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-DGTG02tI.js → Markdown-B0K6WhMg.js} +3 -3
- package/dist/{MediaTheme-CnSOALNj.js → MediaTheme-Bt7WBTkq.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-B_NLxMJW.js → MoreMenu-CPp7nRqq.js} +3 -3
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-B0TQuJ5d.js → MultiSelector-EuMT3jk8.js} +11 -10
- package/dist/{NavHeadingSurface-B2HkXx6S.js → NavHeadingSurface-DemUziLF.js} +1 -1
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-DfHMmSsw.js → NavItem-B_c92jqW.js} +1 -1
- package/dist/NavMenu/index.js +1 -1
- package/dist/{NavMenuItem-DkfXIdxs.js → NavMenuItem-Crc0y9_s.js} +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DEv4_fDj.js → NumberInput-nhsOtHSM.js} +15 -14
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-Bbu16_MT.js → Outline-CXQKfopf.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-CjIOYKLM.js → OverflowList-BGHiFBEV.js} +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-Bcq0T9qo.js → Pagination-DtItBecM.js} +1 -1
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-9Xt2lYdo.js → Popover-DE_a8vx0.js} +1 -1
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-DXz85xcx.js → PowerSearch-BPqinhNg.js} +15 -15
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-B2lYTCeV.js → RadioGroup-DgD_qw8h.js} +4 -4
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-CieZtXzY.js → RadioList-BTfVjABV.js} +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-uBJj4W1M.js → ResizeHandle-5JnYYMyi.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-BmDn1avo.js → SegmentedControl-BOFsp4zL.js} +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-2a2gsxys.js → SelectableCard-DkAtLqr0.js} +10 -6
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-CgrXQtte.js → Selector-Bb0Tw0IX.js} +8 -7
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-DW4jXGp5.js → SideNav-woP0TsbV.js} +5 -5
- package/dist/Slider/index.d.ts +1 -1
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-CEhy-D-R.js → Slider-DPNiq0HG.js} +3 -3
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-DVXisudw.js → Stepper-Ca1DQGyG.js} +2 -2
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-DXShvaDA.js → Switch-yKKscO-i.js} +3 -3
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-Bo4pjQhj.js → TabList-cg8Mrbs_.js} +3 -3
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-Bd8BQ8X_.js → Table-rUgNSJgQ.js} +41 -32
- package/dist/Text/index.js +1 -1
- package/dist/{Text-Wk-iDAzh.js → Text-BShV9dky.js} +7 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-8bifudmD.js → TextArea-D8703Iin.js} +7 -7
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-Bb25yDd0.js → TextInput-C3TcHG4h.js} +18 -16
- package/dist/Theme/index.d.ts +2 -2
- package/dist/Theme/index.js +2 -2
- package/dist/{Theme-D7_fQWgb.js → Theme-DkFv7FGK.js} +23 -3
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-CYVlnYws.js → Thumbnail-7hvPR8TA.js} +39 -11
- package/dist/{TimeField-dDDrUtI4.js → TimeField-D2vnhUvT.js} +3 -3
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-BvGVUfWy.js → TimeInput-D31lgw-s.js} +7 -5
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-DL_MPa_h.js → Timer-D0A9hh4O.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-CJSVY4tS.js → Timestamp-BCYaQaDQ.js} +16 -12
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-cXs5Cbr4.js → Toast-BpumSIBN.js} +4 -4
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-DFiJDsOV.js → ToggleButton-DYGsPjtx.js} +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-BJDLztV6.js → Token-DV53YBsy.js} +12 -7
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-yz0873oG.js → Tokenizer-DlptPLpP.js} +3 -3
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CWksqYD8.js → TopNav-ZTKVEADp.js} +4 -4
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-tcEjVfb0.js → TreeList-CLWHRRDM.js} +21 -16
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-ClidGB0O.js → Typeahead-Dd8pq0fI.js} +7 -5
- package/dist/componentIcons-CFr2L6o3.js +106 -0
- package/dist/composables/index.d.ts +1 -1
- package/dist/composables/index.js +5 -6
- package/dist/{composables-BWDrzi3J.js → composables-DamLUqw3.js} +1 -1
- package/dist/context-Bg7eSJ47.js +17 -0
- package/dist/devBuild-G249YcdZ.js +17 -0
- package/dist/{fieldParts--SyRZVQG.js → fieldParts-CDOlBdy6.js} +2 -2
- package/dist/{index-CM8KfpBL.d.ts → index--uIQXVJ7.d.ts} +2 -2
- package/dist/{index-BO9TY87G.d.ts → index-BOCb89V9.d.ts} +3 -3
- package/dist/{index-Gnewu6-J.d.ts → index-BPyRH3WL.d.ts} +1 -1
- package/dist/{index-f3d9cVtj.d.ts → index-BU78NOP-.d.ts} +1 -1
- package/dist/{index-BfQ85cS8.d.ts → index-BZuEYd9y.d.ts} +1 -1
- package/dist/{index-BaxM-pFP.d.ts → index-BnEhvmdR.d.ts} +4 -4
- package/dist/{index-DxxudRgB.d.ts → index-C16d2Fc4.d.ts} +1 -1
- package/dist/{index-CL8JvxHW.d.ts → index-C1zwvxPH.d.ts} +2 -2
- package/dist/{index-IvAfdGCC.d.ts → index-CAoenU4T.d.ts} +1 -1
- package/dist/{index-DqaYENaT.d.ts → index-CCYGMtZy.d.ts} +67 -67
- package/dist/{index-D_K1wfRa.d.ts → index-CEHqYyz5.d.ts} +3 -3
- package/dist/{index-B-3EGjfQ.d.ts → index-CO9GW-ik.d.ts} +1 -1
- package/dist/{index-YKCx03zD.d.ts → index-COgrQZIL.d.ts} +2 -2
- package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
- package/dist/{index-Bo-ofFyg.d.ts → index-CbNLiaWw.d.ts} +2 -2
- package/dist/{index-C9gAlDt_.d.ts → index-CvquEEGw.d.ts} +8 -2
- package/dist/{index-rszZajcw.d.ts → index-Cy1rEWC-.d.ts} +1 -1
- package/dist/{index-Be7N3B5F.d.ts → index-D4BeRDzX.d.ts} +3 -3
- package/dist/{index-QWh122EV.d.ts → index-D57GW53K.d.ts} +1 -1
- package/dist/{index-dcT6zeY_.d.ts → index-DAs54mND.d.ts} +13 -3
- package/dist/{index-DEm3kRBO.d.ts → index-DN1RqxjP.d.ts} +1 -1
- package/dist/{index-BZchpRgm.d.ts → index-DZKv1WNB.d.ts} +2 -2
- package/dist/{index-BUZDSd-n.d.ts → index-Dc52pmSr.d.ts} +4 -2
- package/dist/{index-uqEqPcmR.d.ts → index-DhMCql2U.d.ts} +1 -1
- package/dist/{index-BRXgpLcd.d.ts → index-Ds4OafGN.d.ts} +5 -5
- package/dist/{index-RW8kvEwf.d.ts → index-EvhMa33P.d.ts} +4 -4
- package/dist/{index-B3PTchxx.d.ts → index-GksCg4a4.d.ts} +7 -7
- package/dist/{index-Dacg7XTH.d.ts → index-HLkEFNeu.d.ts} +5 -5
- package/dist/{index-Dj1_1t3j.d.ts → index-IFFGXlhq.d.ts} +1 -1
- package/dist/{index-DaXzQxos.d.ts → index-MEix_m1o.d.ts} +2 -2
- package/dist/{index-B1eCxBCY.d.ts → index-TXcNH86P.d.ts} +1 -1
- package/dist/{index-C3f1zsJR.d.ts → index-UFlyBbRd.d.ts} +2 -2
- package/dist/{index-D21zdEgS.d.ts → index-Uh-ddE5F.d.ts} +1 -1
- package/dist/{index-BtrAhmSP.d.ts → index-fuztfDLA.d.ts} +10 -6
- package/dist/{index-3t5RAfNP.d.ts → index-mkbGYz8f.d.ts} +2 -2
- package/dist/{index-BEZ4ezJk.d.ts → index-wY6dKz6c.d.ts} +2 -2
- package/dist/index.d.ts +44 -44
- package/dist/index.js +91 -91
- package/dist/{registry-C7OZb0PJ.js → registry-fNY3jasS.js} +23 -4
- package/dist/{searchResultMessage-T4H3r8Vz.js → searchResultMessage-U_4q8zX3.js} +1 -1
- package/dist/semantic-CXHSMwPK.d.ts +118 -0
- package/dist/textClampContext-o3-nLErq.js +15 -0
- package/dist/themeIcons-CqGF0fwW.js +128 -0
- package/dist/{types-CsqwQkf1.d.ts → types-Bq4Yl6CS.d.ts} +68 -7
- package/dist/{types-Bb7OGivY.d.ts → types-BwVJBE-G.d.ts} +1 -1
- package/dist/{types-C5GQ2KCK.d.ts → types-Dcai2Icw.d.ts} +55 -1
- package/dist/{types-DnrU3HYQ.d.ts → types-hB0M54I7.d.ts} +1 -1
- package/dist/{useDevWarning-DznOpOHT.js → useDevWarning-B2fsk2B-.js} +1 -4
- package/dist/{useIndicator-BvF_KY9S.js → useIndicator-DGWEjVpB.js} +2 -2
- package/dist/{useInputContainer-CLcYrby4.js → useInputContainer-BP3u3hGz.js} +1 -1
- package/dist/{useInputStatusIcon-BSVFtRQG.js → useInputStatusIcon-CTF4yF3e.js} +2 -2
- package/dist/{useMenuDrillIn-C36Z89W3.js → useMenuDrillIn-DJ4U_hF7.js} +2 -2
- package/dist/usePressFeedback-Dt76SpLj.js +616 -0
- package/dist/{utils-ClVseK2w.js → utils-DsFqXaGf.js} +5 -1
- package/package.json +1 -1
- package/styles/avatar.css +18 -3
- package/styles/badge.css +13 -0
- package/styles/button-group.css +21 -2
- package/styles/button.css +63 -0
- package/styles/carousel.css +19 -11
- package/styles/citation.css +2 -1
- package/styles/clickable-card.css +19 -5
- package/styles/code.css +6 -0
- package/styles/context-menu.css +7 -0
- package/styles/dialog.css +7 -0
- package/styles/dropdown-menu.css +9 -0
- package/styles/icon.css +18 -12
- package/styles/kbd.css +2 -0
- package/styles/link.css +20 -1
- package/styles/popover.css +7 -0
- package/styles/pressable.css +7 -0
- package/styles/table.css +24 -0
- package/styles/thumbnail.css +25 -0
- package/dist/context-Cws_tXTr.js +0 -7
- package/dist/context-IvbU9c3T.js +0 -8
- package/dist/semantic-BF_AjLvk.d.ts +0 -57
- package/dist/useClickableContainer-CdGp_Cev.js +0 -112
- package/dist/usePressFeedback-Dhnfc3ee.js +0 -336
- package/dist/{index-BqhgeAT4.d.ts → index-BJ9Wim6J.d.ts} +1 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { r as useInputGroupDisabled } from "./context-Bg7eSJ47.js";
|
|
1
2
|
import { i as useSize } from "./SizeContext-BbaF-SEx.js";
|
|
2
3
|
import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
|
|
3
|
-
import { t as _sfc_main$1 } from "./Field-
|
|
4
|
-
import { t as useFieldPartStyling } from "./fieldParts
|
|
5
|
-
import { t as _sfc_main$2 } from "./TimeField-
|
|
4
|
+
import { t as _sfc_main$1 } from "./Field-CdrGdY7U.js";
|
|
5
|
+
import { t as useFieldPartStyling } from "./fieldParts-CDOlBdy6.js";
|
|
6
|
+
import { t as _sfc_main$2 } from "./TimeField-D2vnhUvT.js";
|
|
6
7
|
import { computed, createBlock, createVNode, defineComponent, mergeModels, mergeProps, normalizeClass, normalizeStyle, openBlock, unref, useAttrs, useId, useModel, withCtx } from "vue";
|
|
7
8
|
//#region src/TimeInput/TimeInput.vue
|
|
8
9
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
@@ -79,6 +80,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
79
80
|
setup(__props) {
|
|
80
81
|
const props = __props;
|
|
81
82
|
const size = useSize(() => props.size, "md");
|
|
83
|
+
const disabled = useInputGroupDisabled(() => props.isDisabled);
|
|
82
84
|
const model = useModel(__props, "modelValue");
|
|
83
85
|
const attrs = useAttrs();
|
|
84
86
|
const parts = useFieldPartStyling({
|
|
@@ -119,7 +121,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
119
121
|
class: normalizeClass(unref(parts).containerClass.value),
|
|
120
122
|
style: normalizeStyle(unref(parts).containerStyle.value),
|
|
121
123
|
"is-label-hidden": unref(hideLabel),
|
|
122
|
-
"is-disabled":
|
|
124
|
+
"is-disabled": unref(disabled),
|
|
123
125
|
"is-optional": __props.isOptional,
|
|
124
126
|
"is-required": __props.isRequired,
|
|
125
127
|
"label-tooltip": __props.labelTooltip,
|
|
@@ -147,7 +149,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
147
149
|
"has-clear": __props.hasClear,
|
|
148
150
|
"clear-label": __props.clearLabel,
|
|
149
151
|
size: unref(size),
|
|
150
|
-
"is-disabled":
|
|
152
|
+
"is-disabled": unref(disabled),
|
|
151
153
|
"is-read-only": __props.isReadOnly,
|
|
152
154
|
"is-required": __props.isRequired && !__props.isOptional,
|
|
153
155
|
"is-loading": __props.isLoading,
|
package/dist/Timer/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as getPresentation, t as _sfc_main } from "../Timer-
|
|
1
|
+
import { n as getPresentation, t as _sfc_main } from "../Timer-D0A9hh4O.js";
|
|
2
2
|
export { _sfc_main as Timer, getPresentation };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./Text-
|
|
1
|
+
import { t as _sfc_main$1 } from "./Text-BShV9dky.js";
|
|
2
2
|
import { computed, createBlock, createElementBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, useTemplateRef, watch, withCtx } from "vue";
|
|
3
3
|
import "../styles/timer.css";
|
|
4
4
|
//#region src/Timer/format.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as FormatInstantOptions, G as TimestampColor, J as TimestampTooltipEntry, K as TimestampFormat, Q as formatRelativeTime, W as _default, X as TimestampTooltipLine, Y as TimestampTooltipFormat, Z as formatTooltipLines, et as InstantFormat, q as TimestampProps, tt as formatInstant } from "../index-
|
|
1
|
+
import { $ as FormatInstantOptions, G as TimestampColor, J as TimestampTooltipEntry, K as TimestampFormat, Q as formatRelativeTime, W as _default, X as TimestampTooltipLine, Y as TimestampTooltipFormat, Z as formatTooltipLines, et as InstantFormat, q as TimestampProps, tt as formatInstant } from "../index-CCYGMtZy.js";
|
|
2
2
|
export { type FormatInstantOptions, type InstantFormat, _default as Timestamp, type TimestampColor, type TimestampFormat, type TimestampProps, type TimestampTooltipEntry, type TimestampTooltipFormat, type TimestampTooltipLine, formatInstant, formatRelativeTime, formatTooltipLines };
|
package/dist/Timestamp/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as formatInstant } from "../formatInstant-BDWUIxS7.js";
|
|
2
|
-
import { n as formatTooltipLines, r as formatRelativeTime, t as _sfc_main } from "../Timestamp-
|
|
2
|
+
import { n as formatTooltipLines, r as formatRelativeTime, t as _sfc_main } from "../Timestamp-BCYaQaDQ.js";
|
|
3
3
|
export { _sfc_main as Timestamp, formatInstant, formatRelativeTime, formatTooltipLines };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as _sfc_main$2 } from "./
|
|
2
|
-
import { t as _sfc_main$3 } from "./IconButton-B6AQLlx9.js";
|
|
1
|
+
import { t as _sfc_main$2 } from "./IconButton-Cn4re9lo.js";
|
|
3
2
|
import { o as useAstryxLocale, s as useAstryxMessages } from "./context-BLSiTojH.js";
|
|
4
|
-
import { t as _sfc_main$
|
|
5
|
-
import { t as _sfc_main$
|
|
3
|
+
import { t as _sfc_main$3 } from "./Text-BShV9dky.js";
|
|
4
|
+
import { t as _sfc_main$4 } from "./HoverCard-B9uadAzT.js";
|
|
5
|
+
import { t as _sfc_main$5 } from "./ComponentIcon-hPmWTSXE.js";
|
|
6
6
|
import { t as formatInstant } from "./formatInstant-BDWUIxS7.js";
|
|
7
7
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, unref, watch, withCtx } from "vue";
|
|
8
8
|
import "../styles/timestamp.css";
|
|
@@ -102,7 +102,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
102
102
|
}, 1500);
|
|
103
103
|
}
|
|
104
104
|
return (_ctx, _cache) => {
|
|
105
|
-
return openBlock(), createBlock(_sfc_main$
|
|
105
|
+
return openBlock(), createBlock(_sfc_main$4, {
|
|
106
106
|
label: __props.label,
|
|
107
107
|
"focus-trigger": "always",
|
|
108
108
|
"has-hover-indication": true,
|
|
@@ -119,17 +119,21 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
119
119
|
}, [
|
|
120
120
|
hasLabel.value ? (openBlock(), createElementBlock("dt", _hoisted_2$1, toDisplayString(line.label ?? ""), 1)) : createCommentVNode("v-if", true),
|
|
121
121
|
createElementVNode("dd", _hoisted_3, toDisplayString(line.value), 1),
|
|
122
|
-
hasAction.value ? (openBlock(), createElementBlock("div", _hoisted_4, [line.isCopyable ? (openBlock(), createBlock(_sfc_main$
|
|
122
|
+
hasAction.value ? (openBlock(), createElementBlock("div", _hoisted_4, [line.isCopyable ? (openBlock(), createBlock(_sfc_main$2, {
|
|
123
123
|
key: 0,
|
|
124
124
|
variant: "ghost",
|
|
125
125
|
size: "sm",
|
|
126
126
|
label: copiedKey.value === String(index) ? unref(messages).timestamp.copied : unref(messages).timestamp.copyValue(line.value),
|
|
127
127
|
onClick: ($event) => copy(line.value, String(index))
|
|
128
128
|
}, {
|
|
129
|
-
default: withCtx(() => [createVNode(_sfc_main$
|
|
130
|
-
icon
|
|
131
|
-
|
|
132
|
-
|
|
129
|
+
default: withCtx(() => [createVNode(_sfc_main$5, {
|
|
130
|
+
"icon-slot": "timestamp-copy",
|
|
131
|
+
state: { copied: copiedKey.value === String(index) },
|
|
132
|
+
fallback: {
|
|
133
|
+
icon: copiedKey.value === String(index) ? "check" : "copy",
|
|
134
|
+
size: "sm"
|
|
135
|
+
}
|
|
136
|
+
}, null, 8, ["state", "fallback"])]),
|
|
133
137
|
_: 2
|
|
134
138
|
}, 1032, ["label", "onClick"])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true)
|
|
135
139
|
]);
|
|
@@ -302,7 +306,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
302
306
|
lines: lines.value,
|
|
303
307
|
label: unref(messages).timestamp.detailsLabel
|
|
304
308
|
}, {
|
|
305
|
-
default: withCtx(() => [createVNode(_sfc_main$
|
|
309
|
+
default: withCtx(() => [createVNode(_sfc_main$3, {
|
|
306
310
|
class: normalizeClass(["astryx-timestamp", _ctx.$attrs.class]),
|
|
307
311
|
style: normalizeStyle(_ctx.$attrs.style),
|
|
308
312
|
type: __props.type,
|
|
@@ -330,7 +334,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
330
334
|
"data-format"
|
|
331
335
|
])]),
|
|
332
336
|
_: 1
|
|
333
|
-
}, 8, ["lines", "label"])) : valid.value ? (openBlock(), createBlock(_sfc_main$
|
|
337
|
+
}, 8, ["lines", "label"])) : valid.value ? (openBlock(), createBlock(_sfc_main$3, {
|
|
334
338
|
key: 1,
|
|
335
339
|
class: normalizeClass(["astryx-timestamp", _ctx.$attrs.class]),
|
|
336
340
|
style: normalizeStyle(_ctx.$attrs.style),
|
package/dist/Toast/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main$1, r as _sfc_main, t as useToast } from "../Toast-
|
|
1
|
+
import { n as _sfc_main$1, r as _sfc_main, t as useToast } from "../Toast-BpumSIBN.js";
|
|
2
2
|
export { _sfc_main as Toast, _sfc_main$1 as ToastViewport, useToast };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { r as hasInteractiveAncestor } from "./usePressFeedback-Dt76SpLj.js";
|
|
1
2
|
import { r as resetLayerScopedContext } from "./scopedProvide-C-Df7c15.js";
|
|
2
|
-
import { t as _sfc_main$2 } from "./Icon-
|
|
3
|
-
import {
|
|
4
|
-
import { t as _sfc_main$3 } from "./IconButton-B6AQLlx9.js";
|
|
3
|
+
import { t as _sfc_main$2 } from "./Icon-DAcZMgiJ.js";
|
|
4
|
+
import { t as _sfc_main$3 } from "./IconButton-Cn4re9lo.js";
|
|
5
5
|
import { s as useAstryxMessages } from "./context-BLSiTojH.js";
|
|
6
6
|
import { r as useLayerConfig } from "./context-M-er0-Rk.js";
|
|
7
7
|
import { i as whenModalSettled, r as useActiveModalOutlet } from "./modalOutlet-CUOcrhIu.js";
|
|
8
|
-
import { n as useTheme, t as _sfc_main$4 } from "./MediaTheme-
|
|
8
|
+
import { n as useTheme, t as _sfc_main$4 } from "./MediaTheme-Bt7WBTkq.js";
|
|
9
9
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, markRaw, normalizeClass, normalizeProps, normalizeStyle, onMounted, onScopeDispose, onUnmounted, openBlock, reactive, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, watch, withCtx } from "vue";
|
|
10
10
|
import "../styles/toast.css";
|
|
11
11
|
//#region src/Toast/options.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as ToggleButtonEmits, B as ToggleButtonPressedChangeHandler, D as _default, E as _default$1, F as ToggleButtonGroupProps, H as ToggleButtonSize, I as ToggleButtonGroupSingleProps, L as ToggleButtonGroupSlots, M as ToggleButtonGroupEmits, N as ToggleButtonGroupMultipleProps, O as ToggleButtonChangeAction, P as ToggleButtonGroupOrientation, R as ToggleButtonGroupType, U as ToggleButtonSlots, V as ToggleButtonProps, j as ToggleButtonGroupBaseProps, k as ToggleButtonElevation, z as ToggleButtonGroupValue } from "../index-
|
|
1
|
+
import { A as ToggleButtonEmits, B as ToggleButtonPressedChangeHandler, D as _default, E as _default$1, F as ToggleButtonGroupProps, H as ToggleButtonSize, I as ToggleButtonGroupSingleProps, L as ToggleButtonGroupSlots, M as ToggleButtonGroupEmits, N as ToggleButtonGroupMultipleProps, O as ToggleButtonChangeAction, P as ToggleButtonGroupOrientation, R as ToggleButtonGroupType, U as ToggleButtonSlots, V as ToggleButtonProps, j as ToggleButtonGroupBaseProps, k as ToggleButtonElevation, z as ToggleButtonGroupValue } from "../index-CCYGMtZy.js";
|
|
2
2
|
export { _default as ToggleButton, _default as default, type ToggleButtonChangeAction, type ToggleButtonElevation, type ToggleButtonEmits, _default$1 as ToggleButtonGroup, type ToggleButtonGroupBaseProps, type ToggleButtonGroupEmits, type ToggleButtonGroupMultipleProps, type ToggleButtonGroupOrientation, type ToggleButtonGroupProps, type ToggleButtonGroupSingleProps, type ToggleButtonGroupSlots, type ToggleButtonGroupType, type ToggleButtonGroupValue, type ToggleButtonPressedChangeHandler, type ToggleButtonProps, type ToggleButtonSize, type ToggleButtonSlots };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main$1, r as _sfc_main, t as ToggleButton_default } from "../ToggleButton-
|
|
1
|
+
import { n as _sfc_main$1, r as _sfc_main, t as ToggleButton_default } from "../ToggleButton-DYGsPjtx.js";
|
|
2
2
|
export { _sfc_main as ToggleButton, _sfc_main$1 as ToggleButtonGroup, ToggleButton_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
|
|
2
|
-
import { t as _sfc_main$2 } from "./Button-
|
|
2
|
+
import { t as _sfc_main$2 } from "./Button-7W3G5gok.js";
|
|
3
3
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, defineComponent, mergeModels, openBlock, provide, renderSlot, shallowRef, toDisplayString, useModel, useTemplateRef, withCtx } from "vue";
|
|
4
4
|
import "../styles/toggle-button.css";
|
|
5
5
|
//#region src/ToggleButton/context.ts
|
package/dist/Token/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TokenProps, i as TokenEmits, n as TOKEN_COLORS, o as TokenSize, r as TokenColor, s as TokenSlots, t as _default } from "../index-
|
|
1
|
+
import { a as TokenProps, i as TokenEmits, n as TOKEN_COLORS, o as TokenSize, r as TokenColor, s as TokenSlots, t as _default } from "../index-BJ9Wim6J.js";
|
|
2
2
|
export { TOKEN_COLORS, _default as Token, type TokenColor, type TokenEmits, type TokenProps, type TokenSize, type TokenSlots };
|
package/dist/Token/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as usePressFeedback } from "./usePressFeedback-
|
|
1
|
+
import { t as usePressFeedback } from "./usePressFeedback-Dt76SpLj.js";
|
|
2
2
|
import { n as isSafeUrl } from "./safeUrl-CsvfcZ9m.js";
|
|
3
3
|
import { n as useLinkComponent } from "./context-C_peZbXf.js";
|
|
4
4
|
import { t as useInteractiveRole } from "./useInteractiveRole-Cn0Nd5GX.js";
|
|
@@ -49,7 +49,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
49
49
|
/** 正名 isLabelHidden,旧名 labelHidden 任一为真就藏起文字。 */
|
|
50
50
|
const hideLabel = useResolvedLabelHidden(() => props.isLabelHidden, () => props.labelHidden);
|
|
51
51
|
const linkComponent = useLinkComponent();
|
|
52
|
-
|
|
52
|
+
/** 删除按钮、尾部插槽里的控件被手指按下时,Token 自己的动作不执行,所以 Token 不亮。 */
|
|
53
|
+
const press = usePressFeedback({ isContainer: true });
|
|
53
54
|
/** 有链接时用的根组件,没有 provider 时还是 `<a>`。危险协议退回普通锚点。 */
|
|
54
55
|
const safeHref = computed(() => {
|
|
55
56
|
const href = props.href;
|
|
@@ -118,17 +119,18 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
118
119
|
}), {
|
|
119
120
|
default: withCtx(() => [
|
|
120
121
|
_ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1, [renderSlot(_ctx.$slots, "icon")])) : createCommentVNode("v-if", true),
|
|
121
|
-
actionIsLink.value ? (openBlock(), createBlock(resolveDynamicComponent(actionIsLink.value ? linkRoot.value : "a"), {
|
|
122
|
+
actionIsLink.value ? (openBlock(), createBlock(resolveDynamicComponent(actionIsLink.value ? linkRoot.value : "a"), mergeProps({
|
|
122
123
|
key: 1,
|
|
123
|
-
class: "astryx-token-action"
|
|
124
|
+
class: "astryx-token-action"
|
|
125
|
+
}, unref(press).pressActionProps, {
|
|
124
126
|
href: props.disabled ? void 0 : safeHref.value,
|
|
125
127
|
to: props.disabled || linkRoot.value === "a" ? void 0 : safeHref.value,
|
|
126
128
|
"aria-disabled": props.disabled || void 0,
|
|
127
129
|
tabindex: props.disabled ? -1 : void 0
|
|
128
|
-
}, {
|
|
130
|
+
}), {
|
|
129
131
|
default: withCtx(() => [createElementVNode("span", { class: normalizeClass(["astryx-token-label", { "is-hidden": unref(hideLabel) }]) }, toDisplayString(props.label), 3)]),
|
|
130
132
|
_: 1
|
|
131
|
-
},
|
|
133
|
+
}, 16, [
|
|
132
134
|
"href",
|
|
133
135
|
"to",
|
|
134
136
|
"aria-disabled",
|
|
@@ -138,7 +140,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
138
140
|
type: "button",
|
|
139
141
|
class: "astryx-token-action",
|
|
140
142
|
"aria-disabled": props.disabled || void 0
|
|
141
|
-
},
|
|
143
|
+
}, {
|
|
144
|
+
...disabledInteraction.value,
|
|
145
|
+
...unref(press).pressActionProps
|
|
146
|
+
}, { onClick: runClick }), [createElementVNode("span", { class: normalizeClass(["astryx-token-label", { "is-hidden": unref(hideLabel) }]) }, toDisplayString(props.label), 3)], 16, _hoisted_2)) : (openBlock(), createElementBlock("span", {
|
|
142
147
|
key: 3,
|
|
143
148
|
class: normalizeClass(["astryx-token-label", { "is-hidden": unref(hideLabel) }])
|
|
144
149
|
}, toDisplayString(props.label), 3)),
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TokenizerProps, c as TokenizerStatus, i as TokenizerOverflow, n as TokenizerChange, o as TokenizerSize, r as TokenizerEmits, s as TokenizerSlots, t as _default } from "../index-
|
|
1
|
+
import { a as TokenizerProps, c as TokenizerStatus, i as TokenizerOverflow, n as TokenizerChange, o as TokenizerSize, r as TokenizerEmits, s as TokenizerSlots, t as _default } from "../index-mkbGYz8f.js";
|
|
2
2
|
export { _default as Tokenizer, type TokenizerChange, type TokenizerEmits, type TokenizerOverflow, type TokenizerProps, type TokenizerSize, type TokenizerSlots, type TokenizerStatus };
|
package/dist/Tokenizer/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Tokenizer-
|
|
1
|
+
import { t as _sfc_main } from "../Tokenizer-DlptPLpP.js";
|
|
2
2
|
export { _sfc_main as Tokenizer };
|
|
@@ -7,9 +7,9 @@ import { s as useAstryxMessages } from "./context-BLSiTojH.js";
|
|
|
7
7
|
import { n as useOverflow } from "./useOverflow-VrwF5oek.js";
|
|
8
8
|
import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
|
|
9
9
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
10
|
-
import { t as _sfc_main$2 } from "./Field-
|
|
11
|
-
import { t as useFieldPartStyling } from "./fieldParts
|
|
12
|
-
import { t as _sfc_main$3 } from "./Token-
|
|
10
|
+
import { t as _sfc_main$2 } from "./Field-CdrGdY7U.js";
|
|
11
|
+
import { t as useFieldPartStyling } from "./fieldParts-CDOlBdy6.js";
|
|
12
|
+
import { t as _sfc_main$3 } from "./Token-DV53YBsy.js";
|
|
13
13
|
import { n as useAnchoredListbox, t as scrollOptionIntoView } from "./useAnchoredListbox-6t5zSSz1.js";
|
|
14
14
|
import { i as useTypeaheadMenu, r as useLatchedOptionGrid, t as _sfc_main$4 } from "./TypeaheadMenu-Bu9HO-wZ.js";
|
|
15
15
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useAttrs, useId, useTemplateRef, vShow, watch, withCtx, withDirectives } from "vue";
|
package/dist/Toolbar/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { T as _default } from "../index-
|
|
1
|
+
import { T as _default } from "../index-CCYGMtZy.js";
|
|
2
2
|
import { $ as ToolbarSize, Q as ToolbarProps, Z as ToolbarOrientation } from "../useResizable-fEGAFziz.js";
|
|
3
3
|
export { _default as Toolbar, type ToolbarOrientation, type ToolbarProps, type ToolbarSize };
|
package/dist/TopNav/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as TopNavMenuProps, S as TopNavMenuItem, _ as TopNavMegaMenuEmits, b as TopNavMegaMenuProps, c as _default$5, d as _default$2, f as _default$1, g as TopNavItemProps, h as TopNavItemEmits, l as _default$4, m as TopNavHeadingProps, p as _default, s as _default$6, u as _default$3, v as TopNavMegaMenuFeaturedCardProps, w as TopNavProps, x as TopNavMenuEmits, y as TopNavMegaMenuItemProps } from "../index-
|
|
1
|
+
import { C as TopNavMenuProps, S as TopNavMenuItem, _ as TopNavMegaMenuEmits, b as TopNavMegaMenuProps, c as _default$5, d as _default$2, f as _default$1, g as TopNavItemProps, h as TopNavItemEmits, l as _default$4, m as TopNavHeadingProps, p as _default, s as _default$6, u as _default$3, v as TopNavMegaMenuFeaturedCardProps, w as TopNavProps, x as TopNavMenuEmits, y as TopNavMegaMenuItemProps } from "../index-CCYGMtZy.js";
|
|
2
2
|
export { _default as TopNav, _default$1 as TopNavHeading, type TopNavHeadingProps, _default$2 as TopNavItem, type TopNavItemEmits, type TopNavItemProps, _default$3 as TopNavMegaMenu, type TopNavMegaMenuEmits, _default$4 as TopNavMegaMenuFeaturedCard, type TopNavMegaMenuFeaturedCardProps, _default$5 as TopNavMegaMenuItem, type TopNavMegaMenuItemProps, type TopNavMegaMenuProps, _default$6 as TopNavMenu, type TopNavMenuEmits, type TopNavMenuItem, type TopNavMenuProps, type TopNavProps };
|
package/dist/TopNav/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as _sfc_main$2, i as _sfc_main$3, n as _sfc_main$5, o as _sfc_main$1, r as _sfc_main$4, s as _sfc_main, t as _sfc_main$6 } from "../TopNav-
|
|
1
|
+
import { a as _sfc_main$2, i as _sfc_main$3, n as _sfc_main$5, o as _sfc_main$1, r as _sfc_main$4, s as _sfc_main, t as _sfc_main$6 } from "../TopNav-ZTKVEADp.js";
|
|
2
2
|
export { _sfc_main as TopNav, _sfc_main$1 as TopNavHeading, _sfc_main$2 as TopNavItem, _sfc_main$3 as TopNavMegaMenu, _sfc_main$4 as TopNavMegaMenuFeaturedCard, _sfc_main$5 as TopNavMegaMenuItem, _sfc_main$6 as TopNavMenu };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as _sfc_main$8 } from "./Icon-
|
|
1
|
+
import { t as _sfc_main$8 } from "./Icon-DAcZMgiJ.js";
|
|
2
2
|
import { n as useLinkComponent } from "./context-C_peZbXf.js";
|
|
3
3
|
import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
|
|
4
4
|
import { n as useAppShellMobile } from "./useAppShellMobile-DTsyuAJ4.js";
|
|
@@ -6,10 +6,10 @@ import { s as useAstryxMessages } from "./context-BLSiTojH.js";
|
|
|
6
6
|
import { t as useListFocus } from "./useListFocus-CbHkLT-X.js";
|
|
7
7
|
import { n as _sfc_main$10, r as mobileNavKey, t as _sfc_main$9 } from "./MobileNavToggle-C8KAzhRl.js";
|
|
8
8
|
import { i as safeNavHref, n as isNavigableHref, r as resolveNavRoot } from "./link-DuuA2eCL.js";
|
|
9
|
-
import { t as _sfc_main$11 } from "./NavItem-
|
|
9
|
+
import { t as _sfc_main$11 } from "./NavItem-B_c92jqW.js";
|
|
10
10
|
import { n as navMenuCloseKey, t as _sfc_main$12 } from "./NavDisclosure-BbRWuyhq.js";
|
|
11
|
-
import { n as _sfc_main$14, t as _sfc_main$13 } from "./NavMenuItem-
|
|
12
|
-
import { t as _sfc_main$15 } from "./NavHeadingSurface-
|
|
11
|
+
import { n as _sfc_main$14, t as _sfc_main$13 } from "./NavMenuItem-Crc0y9_s.js";
|
|
12
|
+
import { t as _sfc_main$15 } from "./NavHeadingSurface-DemUziLF.js";
|
|
13
13
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, inject, nextTick, normalizeClass, normalizeProps, onMounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useId, useSlots, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
|
|
14
14
|
import "../styles/top-nav.css";
|
|
15
15
|
//#region src/TopNav/TopNav.vue
|
package/dist/TreeList/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as useTreeFocus, t as _sfc_main } from "../TreeList-
|
|
1
|
+
import { n as useTreeFocus, t as _sfc_main } from "../TreeList-CLWHRRDM.js";
|
|
2
2
|
export { _sfc_main as TreeList, useTreeFocus };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as usePressFeedback } from "./usePressFeedback-
|
|
2
|
-
import {
|
|
1
|
+
import { t as usePressFeedback } from "./usePressFeedback-Dt76SpLj.js";
|
|
2
|
+
import { i as isIconGlyph, t as _sfc_main$2 } from "./Icon-DAcZMgiJ.js";
|
|
3
3
|
import { n as isSafeUrl } from "./safeUrl-CsvfcZ9m.js";
|
|
4
4
|
import { n as useLinkComponent } from "./context-C_peZbXf.js";
|
|
5
5
|
import { s as useAstryxMessages } from "./context-BLSiTojH.js";
|
|
6
|
-
import { t as _sfc_main$3 } from "./Badge-
|
|
6
|
+
import { t as _sfc_main$3 } from "./Badge-DByZSDmu.js";
|
|
7
7
|
import { t as consumeWhileDisabled } from "./disabledInteraction-CPzL8kVP.js";
|
|
8
8
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, normalizeClass, normalizeStyle, onMounted, openBlock, reactive, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, toDisplayString, toRaw, unref, useAttrs, useId, useSlots, vShow, withCtx, withDirectives } from "vue";
|
|
9
9
|
import "../styles/tree-list.css";
|
|
@@ -142,7 +142,9 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
142
142
|
if (props.item.isDisabled) event.preventDefault();
|
|
143
143
|
consumeWhileDisabled(event, props.item.isDisabled === true);
|
|
144
144
|
}
|
|
145
|
-
const press = usePressFeedback();
|
|
145
|
+
const press = usePressFeedback({ isContainer: true });
|
|
146
|
+
/** 整行点下去是展开收起(没有自己的点击):这时箭头按钮做的是同一件事,按它也算按这一行。 */
|
|
147
|
+
const chevronPress = computed(() => props.item.onClick == null ? press.pressActionProps : {});
|
|
146
148
|
const rowPress = computed(() => {
|
|
147
149
|
return (props.item.onClick != null || safeHref.value != null || hasChildren.value) && props.item.isDisabled !== true ? press.pressableProps : {};
|
|
148
150
|
});
|
|
@@ -189,7 +191,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
189
191
|
"data-interactive": __props.item.onClick != null || safeHref.value != null || hasChildren.value || void 0,
|
|
190
192
|
style: { "--_tree-indent": indent.value }
|
|
191
193
|
}, rowPress.value, { onClick: onRowClick }), [createElementVNode("div", _hoisted_5, [
|
|
192
|
-
hasChildren.value ? (openBlock(), createElementBlock("button", {
|
|
194
|
+
hasChildren.value ? (openBlock(), createElementBlock("button", mergeProps({
|
|
193
195
|
key: 0,
|
|
194
196
|
type: "button",
|
|
195
197
|
class: "astryx-tree-list__chevron",
|
|
@@ -198,14 +200,15 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
198
200
|
"aria-expanded": isExpanded.value,
|
|
199
201
|
"aria-label": unref(messages).treeList.toggleChildren,
|
|
200
202
|
"aria-disabled": __props.item.isDisabled || void 0,
|
|
201
|
-
tabindex: "-1"
|
|
203
|
+
tabindex: "-1"
|
|
204
|
+
}, chevronPress.value, {
|
|
202
205
|
onClick: onToggle,
|
|
203
206
|
onKeydown: _cache[0] || (_cache[0] = ($event) => unref(consumeWhileDisabled)($event, __props.item.isDisabled === true))
|
|
204
|
-
}, [createVNode(_sfc_main$2, {
|
|
207
|
+
}), [createVNode(_sfc_main$2, {
|
|
205
208
|
icon: "chevronRight",
|
|
206
209
|
size: "sm",
|
|
207
210
|
color: "inherit"
|
|
208
|
-
})],
|
|
211
|
+
})], 16, _hoisted_6)) : createCommentVNode("v-if", true),
|
|
209
212
|
__props.item.startContent ? (openBlock(), createElementBlock("span", _hoisted_7, [(openBlock(), createBlock(resolveDynamicComponent(__props.item.startContent)))])) : __props.item.icon ? (openBlock(), createElementBlock("span", _hoisted_8, [unref(isIconGlyph)(__props.item.icon) ? (openBlock(), createBlock(_sfc_main$2, {
|
|
210
213
|
key: 0,
|
|
211
214
|
icon: __props.item.icon,
|
|
@@ -214,9 +217,10 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
214
217
|
class: normalizeClass(__props.item.icon),
|
|
215
218
|
"aria-hidden": "true"
|
|
216
219
|
}, null, 2)]))])) : createCommentVNode("v-if", true),
|
|
217
|
-
safeHref.value ? (openBlock(), createBlock(resolveDynamicComponent(linkRoot.value), {
|
|
220
|
+
safeHref.value ? (openBlock(), createBlock(resolveDynamicComponent(linkRoot.value), mergeProps({
|
|
218
221
|
key: 3,
|
|
219
|
-
class: "astryx-tree-list__action"
|
|
222
|
+
class: "astryx-tree-list__action"
|
|
223
|
+
}, unref(press).pressActionProps, {
|
|
220
224
|
href: safeHref.value,
|
|
221
225
|
to: linkRoot.value === "a" ? void 0 : safeHref.value,
|
|
222
226
|
target: __props.item.target,
|
|
@@ -227,7 +231,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
227
231
|
tabindex: "-1",
|
|
228
232
|
onClick: onLinkClick,
|
|
229
233
|
onKeydown: _cache[1] || (_cache[1] = ($event) => unref(consumeWhileDisabled)($event, __props.item.isDisabled === true))
|
|
230
|
-
}, {
|
|
234
|
+
}), {
|
|
231
235
|
default: withCtx(() => [createElementVNode("span", {
|
|
232
236
|
id: unref(labelId),
|
|
233
237
|
class: "astryx-tree-list__label"
|
|
@@ -237,7 +241,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
237
241
|
class: "astryx-tree-list__description"
|
|
238
242
|
}, toDisplayString(__props.item.description), 9, _hoisted_11)) : createCommentVNode("v-if", true)]),
|
|
239
243
|
_: 1
|
|
240
|
-
},
|
|
244
|
+
}, 16, [
|
|
241
245
|
"href",
|
|
242
246
|
"to",
|
|
243
247
|
"target",
|
|
@@ -245,24 +249,25 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
245
249
|
"aria-labelledby",
|
|
246
250
|
"aria-describedby",
|
|
247
251
|
"aria-disabled"
|
|
248
|
-
])) : __props.item.onClick ? (openBlock(), createElementBlock("button", {
|
|
252
|
+
])) : __props.item.onClick ? (openBlock(), createElementBlock("button", mergeProps({
|
|
249
253
|
key: 4,
|
|
250
254
|
type: "button",
|
|
251
|
-
class: "astryx-tree-list__action"
|
|
255
|
+
class: "astryx-tree-list__action"
|
|
256
|
+
}, unref(press).pressActionProps, {
|
|
252
257
|
"aria-labelledby": unref(labelId),
|
|
253
258
|
"aria-describedby": __props.item.description ? unref(descriptionId) : void 0,
|
|
254
259
|
"aria-disabled": __props.item.isDisabled || void 0,
|
|
255
260
|
tabindex: "-1",
|
|
256
261
|
onClick: onActionClick,
|
|
257
262
|
onKeydown: _cache[2] || (_cache[2] = ($event) => unref(consumeWhileDisabled)($event, __props.item.isDisabled === true))
|
|
258
|
-
}, [createElementVNode("span", {
|
|
263
|
+
}), [createElementVNode("span", {
|
|
259
264
|
id: unref(labelId),
|
|
260
265
|
class: "astryx-tree-list__label"
|
|
261
266
|
}, toDisplayString(__props.item.label), 9, _hoisted_13), __props.item.description ? (openBlock(), createElementBlock("span", {
|
|
262
267
|
key: 0,
|
|
263
268
|
id: unref(descriptionId),
|
|
264
269
|
class: "astryx-tree-list__description"
|
|
265
|
-
}, toDisplayString(__props.item.description), 9, _hoisted_14)) : createCommentVNode("v-if", true)],
|
|
270
|
+
}, toDisplayString(__props.item.description), 9, _hoisted_14)) : createCommentVNode("v-if", true)], 16, _hoisted_12)) : (openBlock(), createElementBlock("span", _hoisted_15, [createElementVNode("span", {
|
|
266
271
|
id: unref(labelId),
|
|
267
272
|
class: "astryx-tree-list__label"
|
|
268
273
|
}, toDisplayString(__props.item.label), 9, _hoisted_16), __props.item.description ? (openBlock(), createElementBlock("span", {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TypeaheadEmits, c as TypeaheadSize, i as BaseTypeaheadProps, l as TypeaheadSlots, n as _default$1, o as TypeaheadItemProps, r as _default, s as TypeaheadProps, t as _default$2, u as TypeaheadStatus } from "../index-
|
|
1
|
+
import { a as TypeaheadEmits, c as TypeaheadSize, i as BaseTypeaheadProps, l as TypeaheadSlots, n as _default$1, o as TypeaheadItemProps, r as _default, s as TypeaheadProps, t as _default$2, u as TypeaheadStatus } from "../index-BnEhvmdR.js";
|
|
2
2
|
export { _default as BaseTypeahead, type BaseTypeaheadProps, _default$1 as Typeahead, type TypeaheadEmits, _default$2 as TypeaheadItem, type TypeaheadItemProps, type TypeaheadProps, type TypeaheadSize, type TypeaheadSlots, type TypeaheadStatus };
|
package/dist/Typeahead/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as _sfc_main$2 } from "../TypeaheadMenu-Bu9HO-wZ.js";
|
|
2
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../Typeahead-
|
|
2
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../Typeahead-Dd8pq0fI.js";
|
|
3
3
|
export { _sfc_main as BaseTypeahead, _sfc_main$1 as Typeahead, _sfc_main$2 as TypeaheadItem };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { r as useInputGroupDisabled } from "./context-Bg7eSJ47.js";
|
|
1
2
|
import { t as _sfc_main$2 } from "./ButtonTooltip-CNKOQHYR.js";
|
|
2
3
|
import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
3
4
|
import { a as isImeKeyEvent } from "./layerDepth-CNDh-IHb.js";
|
|
@@ -5,9 +6,9 @@ import { s as useAstryxMessages } from "./context-BLSiTojH.js";
|
|
|
5
6
|
import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
|
|
6
7
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
7
8
|
import { t as _sfc_main$3 } from "./Spinner-CTWLR75x.js";
|
|
8
|
-
import { t as _sfc_main$4 } from "./Field-
|
|
9
|
-
import { t as useFieldPartStyling } from "./fieldParts
|
|
10
|
-
import { t as _sfc_main$5 } from "./Token-
|
|
9
|
+
import { t as _sfc_main$4 } from "./Field-CdrGdY7U.js";
|
|
10
|
+
import { t as useFieldPartStyling } from "./fieldParts-CDOlBdy6.js";
|
|
11
|
+
import { t as _sfc_main$5 } from "./Token-DV53YBsy.js";
|
|
11
12
|
import { n as useAnchoredListbox, t as scrollOptionIntoView } from "./useAnchoredListbox-6t5zSSz1.js";
|
|
12
13
|
import { i as useTypeaheadMenu, r as useLatchedOptionGrid, t as _sfc_main$6 } from "./TypeaheadMenu-Bu9HO-wZ.js";
|
|
13
14
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, inject, mergeProps, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, provide, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useTemplateRef, vShow, watch, withCtx, withDirectives } from "vue";
|
|
@@ -629,6 +630,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
629
630
|
return message?.trim() ? message : void 0;
|
|
630
631
|
});
|
|
631
632
|
/** 两个名字都是真才画清除按钮,任一个关掉就关掉。 */
|
|
633
|
+
const isDisabled = useInputGroupDisabled(() => props.disabled);
|
|
632
634
|
const showsClear = computed(() => props.hasClear && props.clearable);
|
|
633
635
|
/** 两个名字任一为真就在聚焦时先展开。 */
|
|
634
636
|
const showsEntriesOnFocus = computed(() => props.hasEntriesOnFocus || props.showOnFocus);
|
|
@@ -655,7 +657,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
655
657
|
description: props.description,
|
|
656
658
|
"label-tooltip": props.labelTooltip,
|
|
657
659
|
"is-label-hidden": unref(hideLabel),
|
|
658
|
-
"is-disabled":
|
|
660
|
+
"is-disabled": unref(isDisabled),
|
|
659
661
|
"is-required": props.required,
|
|
660
662
|
"is-optional": props.optional,
|
|
661
663
|
status: fieldStatus.value,
|
|
@@ -672,7 +674,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
672
674
|
"input-id": field.inputId,
|
|
673
675
|
"described-by": field.describedBy,
|
|
674
676
|
placeholder: props.placeholder,
|
|
675
|
-
disabled:
|
|
677
|
+
disabled: unref(isDisabled),
|
|
676
678
|
"disabled-reason": disabledMessage.value,
|
|
677
679
|
status: props.status,
|
|
678
680
|
size: props.size,
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { i as defaultSemanticIcons } from "./themeIcons-CqGF0fwW.js";
|
|
2
|
+
import { t as devWarn } from "./useDevWarning-B2fsk2B-.js";
|
|
3
|
+
//#region src/Icon/componentIcons.ts
|
|
4
|
+
const ICON_SIZES = /* @__PURE__ */ new Set([
|
|
5
|
+
"xsm",
|
|
6
|
+
"sm",
|
|
7
|
+
"md",
|
|
8
|
+
"lg"
|
|
9
|
+
]);
|
|
10
|
+
function isIconName(value) {
|
|
11
|
+
return typeof value === "string" && Object.hasOwn(defaultSemanticIcons, value);
|
|
12
|
+
}
|
|
13
|
+
function isDevBuild() {
|
|
14
|
+
return import.meta.env?.DEV === true;
|
|
15
|
+
}
|
|
16
|
+
const warned = /* @__PURE__ */ new Set();
|
|
17
|
+
/**
|
|
18
|
+
* One development warning per slot and problem. Formatting a value that
|
|
19
|
+
* cannot be serialized never throws, and production builds skip it.
|
|
20
|
+
*/
|
|
21
|
+
function warnMalformed(slot, prefix, value, suffix = "") {
|
|
22
|
+
if (!isDevBuild()) return;
|
|
23
|
+
let formatted;
|
|
24
|
+
try {
|
|
25
|
+
formatted = JSON.stringify(value) ?? String(value);
|
|
26
|
+
} catch {
|
|
27
|
+
formatted = "[unserializable value]";
|
|
28
|
+
}
|
|
29
|
+
const problem = `${prefix} ${formatted}${suffix}`;
|
|
30
|
+
const key = `${slot}:${problem}`;
|
|
31
|
+
if (warned.has(key)) return;
|
|
32
|
+
warned.add(key);
|
|
33
|
+
devWarn("Icon", `componentIcons["${slot}"] ${problem}. The component keeps its own value for that field.`);
|
|
34
|
+
}
|
|
35
|
+
function applyRequest(slot, fallback, request, theme) {
|
|
36
|
+
if (request === void 0) return fallback;
|
|
37
|
+
if (request === null) return {
|
|
38
|
+
...fallback,
|
|
39
|
+
icon: null
|
|
40
|
+
};
|
|
41
|
+
if (typeof request !== "object" || Array.isArray(request)) {
|
|
42
|
+
warnMalformed(slot, "returned", request, ", which is not a request");
|
|
43
|
+
return fallback;
|
|
44
|
+
}
|
|
45
|
+
const { icon, variant, size } = request;
|
|
46
|
+
let resolved = fallback;
|
|
47
|
+
if (icon === null || isIconName(icon)) resolved = {
|
|
48
|
+
...resolved,
|
|
49
|
+
icon
|
|
50
|
+
};
|
|
51
|
+
else if (icon !== void 0) warnMalformed(slot, "requests the unknown icon", icon);
|
|
52
|
+
if (typeof variant === "string" && theme?.iconVariants?.includes(variant)) resolved = {
|
|
53
|
+
...resolved,
|
|
54
|
+
variant
|
|
55
|
+
};
|
|
56
|
+
else if (variant !== void 0) warnMalformed(slot, "requests the variant", variant, ", which the theme does not list");
|
|
57
|
+
if (ICON_SIZES.has(size)) resolved = {
|
|
58
|
+
...resolved,
|
|
59
|
+
size
|
|
60
|
+
};
|
|
61
|
+
else if (size !== void 0) warnMalformed(slot, "requests the unsupported size", size);
|
|
62
|
+
return resolved;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Resolve a component's icon slot: the theme's `componentIcons[slot]`
|
|
66
|
+
* applied to the component's own fallback, field by field.
|
|
67
|
+
*
|
|
68
|
+
* A shared icon name replaces the fallback icon, `null` hides it, and a
|
|
69
|
+
* request applies field by field. A slot function receives the state; its
|
|
70
|
+
* `null` hides the icon and its `undefined` changes nothing. A malformed
|
|
71
|
+
* field is ignored with one development warning and the valid fields beside
|
|
72
|
+
* it still apply.
|
|
73
|
+
*/
|
|
74
|
+
function resolveComponentIcon(slot, state, fallback, theme) {
|
|
75
|
+
const value = (theme?.componentIconValues ?? theme?.componentIcons)?.[slot];
|
|
76
|
+
if (value === void 0) return fallback;
|
|
77
|
+
if (typeof value === "function") {
|
|
78
|
+
const result = value(state);
|
|
79
|
+
if (typeof result === "string") {
|
|
80
|
+
warnMalformed(slot, "returned", result, ", which is not a request");
|
|
81
|
+
return fallback;
|
|
82
|
+
}
|
|
83
|
+
return applyRequest(slot, fallback, result, theme);
|
|
84
|
+
}
|
|
85
|
+
if (typeof value === "string") return applyRequest(slot, fallback, { icon: value }, theme);
|
|
86
|
+
return applyRequest(slot, fallback, value, theme);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* A theme's slot values: the base's, then its own, by slot. An own entry
|
|
90
|
+
* replaces the inherited one whole; an `undefined` entry keeps it.
|
|
91
|
+
*/
|
|
92
|
+
function mergeComponentIcons(inherited, own) {
|
|
93
|
+
if (own == null) return inherited;
|
|
94
|
+
const merged = { ...inherited };
|
|
95
|
+
for (const [slot, value] of Object.entries(own)) if (value !== void 0) merged[slot] = value;
|
|
96
|
+
return merged;
|
|
97
|
+
}
|
|
98
|
+
/** The static view of slot values, without slot functions. */
|
|
99
|
+
function staticComponentIcons(values) {
|
|
100
|
+
if (values == null) return void 0;
|
|
101
|
+
const view = {};
|
|
102
|
+
for (const [slot, value] of Object.entries(values)) if (typeof value !== "function" && value !== void 0) view[slot] = value;
|
|
103
|
+
return view;
|
|
104
|
+
}
|
|
105
|
+
//#endregion
|
|
106
|
+
export { resolveComponentIcon as n, staticComponentIcons as r, mergeComponentIcons as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as MergedRefHandle, $n as UseContainerReveal, $t as Hotkey, A as useResolvedLabelHidden, An as useDevWarning, Ar as applyRangeClick, At as UseKeyboardHint, B as computeOverflow, Bn as TimeSurface, Bt as useInputStatusIcon, C as ScrollableAreaState, Cn as useEntryAnimation, Cr as useAppShellMobile, Ct as useLayerTeleportTarget, D as RestoreFocus, Dn as DisclosureHandleRef, Dr as ISODateRange, Dt as UseLayerReturn, E as useScrollableArea, En as DisclosureHandle, Er as useAnnounce, Et as UseLayerOptions, F as usePendingChange, Fn as HourFormat, Fr as isSameRange, Ft as UseInteractiveRoleReturn, G as computeSteppedValue, Gn as parseISOTime, Gt as UseIndicatorFocusRingOptions, H as NumberField, Hn as formatISOTime, Ht as UseInputContainerOptions, I as ComputeOverflowInput, In as ISOTimeString, Ir as orderRange, It as useInteractiveRole, J as buildMonthGrid, Jn as ControllableState, Jt as ImageSampleRegion, K as useNumberField, Kn as resolveTimeSurface, Kt as UseIndicatorFocusRingReturn, L as ComputeOverflowResult, Ln as NativePicker, Lr as resolveWeekStart, Lt as InputStatusVariant, M as UsePressFeedbackReturn, Mn as DateSurface, Mr as formatDateRange, Mt as useKeyboardHint, N as usePressFeedback, Nn as resolveDatePresentation, Nr as isDayOutsideSpan, Nt as InteractiveRole, O as UseRestoreFocusOptions, On as useDisclosureHandle, Or as RangeClickResult, Ot as useLayer, P as PendingChange, Pn as resolveDateSurface, Pr as isRangeWithinSpan, Pt as UseInteractiveRoleOptions, Q as MergedRef, Qn as ContentRevealOptions, Qt as useImageMode, R as UseOverflowOptions, Rn as ParsedTime, Rr as spanDays, Rt as UseInputStatusIconOptions, S as ScrollStickyContainment, Sn as UseEntryAnimationReturn, Sr as appShellMobileKey, St as useLayerMountTarget, T as UseScrollableAreaResult, Tn as useDismiss, Tr as AnnouncePoliteness, Tt as LayerMode, U as NumberStepDirection, Un as isTimeInRange, Ut as useInputContainer, V as useOverflow, Vn as formatDisplayTime, Vt as InputContainerHandlers, W as UseNumberFieldOptions, Wn as parseDisplayTime, Wt as IndicatorFocusRingHandlers, X as toISODate, Xn as useControllableState, Xt as imageModeFromPixels, Y as parseISODate, Yn as UseControllableStateOptions, Yt as UseImageModeOptions, Z as todayISODate, Zn as ContainerRevealOptions, Zt as perceptualLightness, _ as ScrollAxis, _n as FieldControlState, _r as CHAT_MESSAGE_CLASS, _t as useLongPress, a as UseTouchTriggerOptions, an as useGridRovingFocus, ar as useCombobox, at as resetMenuPress, b as ScrollOverscroll, bn as EntryAnimationPreset, br as useChatNewMessages, bt as UseListFocusOptions, c as useTouchTrigger, cn as useGridFocus, cr as INTERACTIVE_SELECTORS, ct as MenuPressEffect, d as snapToGraphemeBoundary, dn as useFocusTrap, dr as hasTextSelection, dt as MenuPressPointerType, en as useHotkeys, er as UseContainerRevealOptions, et as useMergedRefs, f as useStreamingText, fn as FileRejection, fr as useClickableContainer, ft as MenuPressStep, g as useScrollLock, gn as selectFiles, gr as useChatStreamScroll, gt as LongPressOptions, h as useScrollOverflow, hn as formatFileSize, hr as UseChatStreamScrollReturn, ht as LongPressHandlers, i as LayerTouchTrigger, in as UseGridRovingFocusOptions, ir as UseComboboxOptions, it as isMenuPressActivation, j as UsePressFeedbackOptions, jn as DatePresentation, jr as compareISODate, jt as UseKeyboardHintOptions, k as useRestoreFocus, kn as devWarn, kr as WeekStartsOn, kt as KeyboardHintOrientation, l as StreamingTextSpeed, ln as FocusTrap, lr as UseClickableContainerOptions, lt as MenuPressEvent, m as UseScrollOverflowResult, mn as FileSelectionResult, mr as UseChatStreamScrollOptions, mt as useMediaQuery, n as UseTypeaheadReturn, nn as useHandleRef, nr as Combobox, nt as MenuPressOptions, o as UseTouchTriggerReturn, on as UseGridFocusOptions, or as useCoarsePointer, ot as MENU_PRESS_MARKER, p as ScrollOverflowState, pn as FileSelectionOptions, pr as ChatScrollToBottomOptions, pt as menuPressStep, q as addMonths, qn as shiftTime, qt as useIndicatorFocusRing, r as useTypeahead, rn as GridRovingFocus, rr as ComboboxOption, rt as useMenuPress, s as isActionTrigger, sn as UseGridFocusReturn, sr as ClickableContainerHandlers, st as MENU_PRESS_SETTLE_MS, t as UseTypeaheadOptions, tn as HandleRef, tr as useContainerReveal, tt as MenuPress, u as UseStreamingTextOptions, un as UseFocusTrapOptions, ur as hasInteractiveAncestor, ut as MenuPressGesture, v as ScrollAxisState, vn as FieldControlStateInput, vr as UseChatNewMessagesOptions, vt as ListFocus, w as UseScrollableAreaOptions, wn as UseDismissOptions, wr as AnnounceFn, wt as useResolvedLayerTeleport, x as ScrollRole, xn as UseEntryAnimationOptions, xr as AppShellMobile, xt as useListFocus, y as ScrollKeyboardAccess, yn as useFieldControlState, yr as UseChatNewMessagesReturn, yt as ListFocusOrientation, z as UseOverflowReturn, zn as TimePresentation, zt as UseInputStatusIconReturn } from "../index-
|
|
1
|
+
import { $ as MergedRefHandle, $n as UseContainerReveal, $t as Hotkey, A as useResolvedLabelHidden, An as useDevWarning, Ar as applyRangeClick, At as UseKeyboardHint, B as computeOverflow, Bn as TimeSurface, Bt as useInputStatusIcon, C as ScrollableAreaState, Cn as useEntryAnimation, Cr as useAppShellMobile, Ct as useLayerTeleportTarget, D as RestoreFocus, Dn as DisclosureHandleRef, Dr as ISODateRange, Dt as UseLayerReturn, E as useScrollableArea, En as DisclosureHandle, Er as useAnnounce, Et as UseLayerOptions, F as usePendingChange, Fn as HourFormat, Fr as isSameRange, Ft as UseInteractiveRoleReturn, G as computeSteppedValue, Gn as parseISOTime, Gt as UseIndicatorFocusRingOptions, H as NumberField, Hn as formatISOTime, Ht as UseInputContainerOptions, I as ComputeOverflowInput, In as ISOTimeString, Ir as orderRange, It as useInteractiveRole, J as buildMonthGrid, Jn as ControllableState, Jt as ImageSampleRegion, K as useNumberField, Kn as resolveTimeSurface, Kt as UseIndicatorFocusRingReturn, L as ComputeOverflowResult, Ln as NativePicker, Lr as resolveWeekStart, Lt as InputStatusVariant, M as UsePressFeedbackReturn, Mn as DateSurface, Mr as formatDateRange, Mt as useKeyboardHint, N as usePressFeedback, Nn as resolveDatePresentation, Nr as isDayOutsideSpan, Nt as InteractiveRole, O as UseRestoreFocusOptions, On as useDisclosureHandle, Or as RangeClickResult, Ot as useLayer, P as PendingChange, Pn as resolveDateSurface, Pr as isRangeWithinSpan, Pt as UseInteractiveRoleOptions, Q as MergedRef, Qn as ContentRevealOptions, Qt as useImageMode, R as UseOverflowOptions, Rn as ParsedTime, Rr as spanDays, Rt as UseInputStatusIconOptions, S as ScrollStickyContainment, Sn as UseEntryAnimationReturn, Sr as appShellMobileKey, St as useLayerMountTarget, T as UseScrollableAreaResult, Tn as useDismiss, Tr as AnnouncePoliteness, Tt as LayerMode, U as NumberStepDirection, Un as isTimeInRange, Ut as useInputContainer, V as useOverflow, Vn as formatDisplayTime, Vt as InputContainerHandlers, W as UseNumberFieldOptions, Wn as parseDisplayTime, Wt as IndicatorFocusRingHandlers, X as toISODate, Xn as useControllableState, Xt as imageModeFromPixels, Y as parseISODate, Yn as UseControllableStateOptions, Yt as UseImageModeOptions, Z as todayISODate, Zn as ContainerRevealOptions, Zt as perceptualLightness, _ as ScrollAxis, _n as FieldControlState, _r as CHAT_MESSAGE_CLASS, _t as useLongPress, a as UseTouchTriggerOptions, an as useGridRovingFocus, ar as useCombobox, at as resetMenuPress, b as ScrollOverscroll, bn as EntryAnimationPreset, br as useChatNewMessages, bt as UseListFocusOptions, c as useTouchTrigger, cn as useGridFocus, cr as INTERACTIVE_SELECTORS, ct as MenuPressEffect, d as snapToGraphemeBoundary, dn as useFocusTrap, dr as hasTextSelection, dt as MenuPressPointerType, en as useHotkeys, er as UseContainerRevealOptions, et as useMergedRefs, f as useStreamingText, fn as FileRejection, fr as useClickableContainer, ft as MenuPressStep, g as useScrollLock, gn as selectFiles, gr as useChatStreamScroll, gt as LongPressOptions, h as useScrollOverflow, hn as formatFileSize, hr as UseChatStreamScrollReturn, ht as LongPressHandlers, i as LayerTouchTrigger, in as UseGridRovingFocusOptions, ir as UseComboboxOptions, it as isMenuPressActivation, j as UsePressFeedbackOptions, jn as DatePresentation, jr as compareISODate, jt as UseKeyboardHintOptions, k as useRestoreFocus, kn as devWarn, kr as WeekStartsOn, kt as KeyboardHintOrientation, l as StreamingTextSpeed, ln as FocusTrap, lr as UseClickableContainerOptions, lt as MenuPressEvent, m as UseScrollOverflowResult, mn as FileSelectionResult, mr as UseChatStreamScrollOptions, mt as useMediaQuery, n as UseTypeaheadReturn, nn as useHandleRef, nr as Combobox, nt as MenuPressOptions, o as UseTouchTriggerReturn, on as UseGridFocusOptions, or as useCoarsePointer, ot as MENU_PRESS_MARKER, p as ScrollOverflowState, pn as FileSelectionOptions, pr as ChatScrollToBottomOptions, pt as menuPressStep, q as addMonths, qn as shiftTime, qt as useIndicatorFocusRing, r as useTypeahead, rn as GridRovingFocus, rr as ComboboxOption, rt as useMenuPress, s as isActionTrigger, sn as UseGridFocusReturn, sr as ClickableContainerHandlers, st as MENU_PRESS_SETTLE_MS, t as UseTypeaheadOptions, tn as HandleRef, tr as useContainerReveal, tt as MenuPress, u as UseStreamingTextOptions, un as UseFocusTrapOptions, ur as hasInteractiveAncestor, ut as MenuPressGesture, v as ScrollAxisState, vn as FieldControlStateInput, vr as UseChatNewMessagesOptions, vt as ListFocus, w as UseScrollableAreaOptions, wn as UseDismissOptions, wr as AnnounceFn, wt as useResolvedLayerTeleport, x as ScrollRole, xn as UseEntryAnimationOptions, xr as AppShellMobile, xt as useListFocus, y as ScrollKeyboardAccess, yn as useFieldControlState, yr as UseChatNewMessagesReturn, yt as ListFocusOrientation, z as UseOverflowReturn, zn as TimePresentation, zt as UseInputStatusIconReturn } from "../index-DAs54mND.js";
|
|
2
2
|
import { a as SearchableItem, c as useAsyncSource, i as SearchSource, n as AsyncSourceStatus, o as UseAsyncSourceOptions, r as CreateStaticSourceOptions, s as createStaticSource, t as AsyncSource } from "../useAsyncSource-aGzrvRkI.js";
|
|
3
3
|
import { n as UseClipboardReturn, r as useClipboard, t as UseClipboardOptions } from "../useClipboard-CU-kfqeJ.js";
|
|
4
4
|
import { t as characterCount } from "../characters-rcDbGt71.js";
|