@astryx-vue/core 0.7.24 → 0.7.26
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-DZpJzvOC.js} +30 -15
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell--izaf9Fx.js → AppShell-D7ik41g-.js} +3 -3
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-cNntRBEo.js → Avatar-D_C9RBJb.js} +27 -21
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-CiJia58o.js → AvatarGroup-CFvNDgU-.js} +17 -7
- package/dist/Badge/index.js +1 -1
- package/dist/Badge-BbPS_49c.js +41 -0
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-C8f377q3.js → Banner-C1B7DsHS.js} +3 -3
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-BKeyoL9N.js → BottomSheet-BECeWtEy.js} +2 -2
- package/dist/{BottomSheet-CMukh1iI.js → BottomSheet-CgOzQHaA.js} +4 -2
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-CXJNJ93V.js → Breadcrumbs-BgiZY7un.js} +9 -8
- package/dist/Button/index.d.ts +2 -2
- package/dist/Button/index.js +1 -1
- package/dist/{Button-Dgm5wCch.js → Button-DsjdehLZ.js} +181 -18
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-UgiGP61q.js → ButtonGroup-CSW7a9vq.js} +14 -2
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-d_uOkvFE.js → Calendar-Bzgi-XyF.js} +12 -3
- package/dist/Card/index.d.ts +1 -1
- package/dist/Card/index.js +1 -1
- package/dist/{Card-H4571ZKi.js → Card-BbKFHWuD.js} +2 -0
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-BWTArLIP.js → Carousel--VycM-Sa.js} +64 -19
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-DKZWVA3Q.js → Chat-C1DlnlCQ.js} +30 -28
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-B4pDfjvr.js → CheckboxInput-uk8nuCEf.js} +4 -4
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-DtxfdHRI.js → CheckboxList-Dr4kQ-BC.js} +7 -7
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-CCu6QWG7.js → Citation-BAFsn6N1.js} +4 -2
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-jEBZbzHE.js → ClickableCard-CvxSKkXh.js} +16 -6
- 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-PSnUWX57.js} +21 -10
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BsPZ8CoN.js → Collapsible-C_tl5-L0.js} +2 -2
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-0Kg-dJg3.js → CommandPalette-lewtyQrO.js} +7 -7
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-BrGVG8c7.js → ComplexSelector-BUnqjeW5.js} +16 -8
- package/dist/ComponentIcon-BRXBBKeG.js +37 -0
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-CgSIWUYh.js → ContextMenu-IDkvorRp.js} +10 -9
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-vV0tc4a4.js → DateInput-DTxxFz9-.js} +15 -13
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-DcM1Zntr.js → DateRangeInput-D4Us58KW.js} +9 -9
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-DbbVU3bk.js → DateTimeInput-CliLnI7P.js} +10 -10
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-vPGLWE3o.js → Dialog-B_s-w66_.js} +1 -1
- package/dist/{Dialog-D4V2ZnuS.js → Dialog-BtPktuiy.js} +3 -1
- package/dist/{DialogHeader-D1sgjPC7.js → DialogHeader-Hk419KW1.js} +4 -4
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-CaZF_-lH.js → Drawer-DoQ9hjKz.js} +2 -2
- package/dist/DropdownMenu/index.d.ts +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-B3R5WLsl.js → DropdownMenu-B2iga1fe.js} +18 -13
- package/dist/{DropdownMenu-BjE_cTDM.js → DropdownMenu-BF2Z5T4h.js} +9 -9
- 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-v1cvHKav.js} +2 -2
- package/dist/Field/index.d.ts +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-DLg-trP2.js → Field-if5a58LO.js} +2 -2
- package/dist/{FieldIcon-CxTnEb4Y.js → FieldIcon-DMtfe1Ne.js} +1 -1
- package/dist/{FieldInfoTip-D5IOQrVA.js → FieldInfoTip-BJAaKJjM.js} +2 -2
- package/dist/{FieldLabel-D5_Pap_W.js → FieldLabel-C-IaUcP4.js} +3 -3
- package/dist/FieldStatus/index.d.ts +1 -1
- package/dist/FieldStatus/index.js +1 -1
- package/dist/{FieldStatus-D6Vo_dU5.js → FieldStatus-DSUCli4W.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-CKYpJtuU.js → FileInput-0zBWfO8h.js} +9 -9
- package/dist/Grid/index.d.ts +1 -1
- package/dist/Grid/index.js +1 -1
- package/dist/{Grid-D1onTzyC.js → Grid-C0mp7fha.js} +1 -1
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +1 -1
- package/dist/Heading-C10qO8wg.js +114 -0
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-B9uadAzT.js → HoverCard-CLcbBLBN.js} +4 -3
- 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-BCHo7W0x.js} +48 -86
- package/dist/IconButton/index.d.ts +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-B6AQLlx9.js → IconButton-Crtfruc0.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-DNQy7wqB.js} +3 -3
- package/dist/{InputClearButton-BbFXoxWi.js → InputClearButton-DhvxPkK6.js} +3 -3
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +2 -2
- package/dist/{InputGroup-BleRgc6W.js → InputGroup-B1kG0rBN.js} +42 -18
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-CWJDt7Qb.js → InternationalizationProvider-CUEIHCf4.js} +3 -3
- package/dist/{Item-X9wgYWoD.js → Item-Cfv4ALls.js} +29 -6
- package/dist/Kbd/index.d.ts +1 -1
- package/dist/Kbd/index.js +1 -1
- package/dist/{Kbd-CV3LO2Ge.js → Kbd-DyxKNYtE.js} +58 -30
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-mHcy28k7.js → Layout-OHKb6r7D.js} +8 -5
- package/dist/{LayoutPanel-DpbBk6rj.js → LayoutPanel-D-rpTtC-.js} +6 -3
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-DLZzT9un.js → Lightbox-B8uMFPOS.js} +96 -17
- package/dist/Link/index.d.ts +2 -2
- package/dist/Link/index.js +1 -1
- package/dist/{Link-Qhzs2lcO.js → Link-Kc2RQFHc.js} +59 -70
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-CertehfW.js → ListItem-2evjQQ7n.js} +2 -2
- package/dist/Markdown/index.js +2 -2
- package/dist/{Markdown-DGTG02tI.js → Markdown-NVkHi_tk.js} +6 -6
- package/dist/{MediaTheme-CnSOALNj.js → MediaTheme-Bt7WBTkq.js} +1 -1
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-wOngshS5.js → MetadataList-4GnMi6s9.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-C8KAzhRl.js → MobileNavToggle-TMDrnXfG.js} +2 -2
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-B_NLxMJW.js → MoreMenu-CpGEXWCd.js} +10 -10
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-B0TQuJ5d.js → MultiSelector-Baca6xNx.js} +17 -16
- package/dist/{NavDisclosure-BbRWuyhq.js → NavDisclosure-DG4jls5z.js} +1 -1
- package/dist/{NavHeadingSurface-B2HkXx6S.js → NavHeadingSurface-j2gzMVKt.js} +3 -3
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-DfHMmSsw.js → NavItem-BZLN0U5a.js} +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-mZVfqNxt.js → NavMenu-t7WN2bcq.js} +1 -1
- package/dist/{NavMenuItem-DkfXIdxs.js → NavMenuItem-DIMQohIa.js} +2 -2
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DEv4_fDj.js → NumberInput-BBFGZ4Fg.js} +27 -17
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-Bbu16_MT.js → Outline-BgDOI3ar.js} +3 -3
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-CjIOYKLM.js → OverflowList-D4fC5s_q.js} +3 -3
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-Bcq0T9qo.js → Pagination-Do_MIlo4.js} +16 -4
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-9Xt2lYdo.js → Popover-Bd93LlDd.js} +7 -7
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-DXz85xcx.js → PowerSearch-DyqItMHo.js} +111 -42
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-Dt5AS0GY.js → ProgressBar-gsm2A_cR.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-B2lYTCeV.js → RadioGroup-Dzp4qSgm.js} +5 -5
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-CieZtXzY.js → RadioList-CAIgB1j_.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-uBJj4W1M.js → ResizeHandle-GAmiHb0-.js} +2 -2
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-BmDn1avo.js → SegmentedControl-Bs74LlvS.js} +3 -2
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-2a2gsxys.js → SelectableCard-BFCwgtWf.js} +12 -7
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-CgrXQtte.js → Selector-B9lINQRM.js} +15 -13
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-DW4jXGp5.js → SideNav-DzZ12DIq.js} +8 -8
- package/dist/Slider/index.d.ts +1 -1
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-CEhy-D-R.js → Slider-Cuk2ul9w.js} +4 -4
- package/dist/Spinner/index.js +1 -1
- package/dist/{Spinner-CTWLR75x.js → Spinner-ke63bQPv.js} +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-Bu_nCu0I.js → StatusDot-DF5wK42f.js} +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-DVXisudw.js → Stepper-C68f_iJG.js} +3 -3
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-DXShvaDA.js → Switch-bnxiN6Qe.js} +4 -4
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-Bo4pjQhj.js → TabList-8dlO0Ws6.js} +13 -8
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-Bd8BQ8X_.js → Table-j_DCDbcI.js} +107 -49
- package/dist/Text/index.d.ts +2 -2
- package/dist/Text/index.js +3 -2
- package/dist/{Text-Wk-iDAzh.js → Text-WB-fpFne.js} +38 -29
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-8bifudmD.js → TextArea-Bzz_KcKT.js} +11 -11
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-Bb25yDd0.js → TextInput-givkH9HQ.js} +22 -20
- package/dist/Theme/index.d.ts +2 -2
- package/dist/Theme/index.js +2 -2
- package/dist/{Theme-D7_fQWgb.js → Theme-BQe--DY6.js} +42 -9
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-CYVlnYws.js → Thumbnail-CZOWP5HN.js} +42 -14
- package/dist/{TimeField-dDDrUtI4.js → TimeField-ByoS5s_I.js} +8 -8
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-BvGVUfWy.js → TimeInput-D9kvMQso.js} +7 -5
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-DL_MPa_h.js → Timer-BD2gSoQ3.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-CJSVY4tS.js → Timestamp-CEdNhKc5.js} +17 -13
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-cXs5Cbr4.js → Toast-CnZrcU-G.js} +5 -5
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-DFiJDsOV.js → ToggleButton-BMn4yJXe.js} +27 -8
- package/dist/Token/index.js +1 -1
- package/dist/{Token-BJDLztV6.js → Token-DWCDMawn.js} +101 -28
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-yz0873oG.js → Tokenizer-R0eC1BOk.js} +93 -10
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Toolbar/index.js +1 -1
- package/dist/{Toolbar-D5UI1JLe.js → Toolbar-BH_E0F0G.js} +4 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +2 -2
- package/dist/{Tooltip-BfKegFfq.js → Tooltip-CGHpFMnc.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CWksqYD8.js → TopNav-DHunql9h.js} +7 -7
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-tcEjVfb0.js → TreeList-Dg5gtkOu.js} +24 -17
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-ClidGB0O.js → Typeahead-BkmCC6DX.js} +52 -27
- package/dist/{TypeaheadMenu-Bu9HO-wZ.js → TypeaheadMenu-CFeJCv-6.js} +1 -1
- package/dist/componentIcons-CFr2L6o3.js +106 -0
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +13 -11
- package/dist/{composables-BWDrzi3J.js → composables-DqJzanJ5.js} +5 -24
- package/dist/context-Bg7eSJ47.js +17 -0
- package/dist/{context-BLSiTojH.js → context-CV6TrhJY.js} +57 -3
- package/dist/context-CZP3jfy-.js +125 -0
- package/dist/{context-Bv6lAoqu.js → context-CjX2RSDn.js} +14 -2
- 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-CL8JvxHW.d.ts → index-B3yTdknp.d.ts} +1 -1
- package/dist/{index-rszZajcw.d.ts → index-B449gOMC.d.ts} +2 -2
- package/dist/{index-B3PTchxx.d.ts → index-B7brdDVR.d.ts} +5 -5
- 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-DEQ5cnUV.d.ts → index-BTljzczH.d.ts} +4 -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-D_K1wfRa.d.ts → index-BfSZhAVv.d.ts} +2 -2
- package/dist/{index-CFm1rPma.d.ts → index-BjbPK91B.d.ts} +1 -1
- package/dist/{index-C3f1zsJR.d.ts → index-BngdKVro.d.ts} +1 -1
- package/dist/{index-RW8kvEwf.d.ts → index-BnqDF_AX.d.ts} +11 -6
- package/dist/{index-Be7N3B5F.d.ts → index-BqEPgwku.d.ts} +2 -2
- package/dist/{index-DxxudRgB.d.ts → index-C16d2Fc4.d.ts} +1 -1
- package/dist/{index-D97pQbua.d.ts → index-C89cIh4E.d.ts} +3 -5
- package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
- package/dist/{index-IvAfdGCC.d.ts → index-CAoenU4T.d.ts} +1 -1
- package/dist/{index-BaxM-pFP.d.ts → index-CM2L3SUw.d.ts} +6 -4
- 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-YKCx03zD.d.ts → index-CdvmnNMH.d.ts} +1 -1
- package/dist/{index-BMCjAlq6.d.ts → index-CfPGC9aW.d.ts} +1 -1
- package/dist/index-CtYlR9Cu.d.ts +46 -0
- package/dist/{index--tm6L1ot.d.ts → index-Cun6cXGP.d.ts} +1 -1
- package/dist/{index-C9gAlDt_.d.ts → index-CvquEEGw.d.ts} +8 -2
- package/dist/{index-QWh122EV.d.ts → index-D57GW53K.d.ts} +1 -1
- package/dist/{index-DX4HQToB.d.ts → index-D6pP-H_N.d.ts} +1 -1
- package/dist/{index-dcT6zeY_.d.ts → index-DCU6dy7n.d.ts} +25 -5
- package/dist/{index-DqaYENaT.d.ts → index-DFDadgys.d.ts} +68 -68
- package/dist/{index-DEm3kRBO.d.ts → index-DN1RqxjP.d.ts} +1 -1
- package/dist/{index-BzZC2Y7c.d.ts → index-DTfA4uE3.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-O9y23OPJ.d.ts → index-DneQgJfI.d.ts} +1 -1
- 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-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-BRXgpLcd.d.ts → index-mJ_aqK5M.d.ts} +3 -3
- 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-Dacg7XTH.d.ts → index-wkeCkhTi.d.ts} +16 -6
- package/dist/index.d.ts +53 -53
- package/dist/index.js +134 -130
- package/dist/layerSurfacePress-C3PjPpJP.js +29 -0
- package/dist/{loadCatalog-85MyL2bm.js → loadCatalog-Bulk4H7U.js} +2 -2
- package/dist/{loadCatalog-DSRSkHnY.d.ts → loadCatalog-D_uf2uX1.d.ts} +36 -0
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +4 -4
- package/dist/{locale-C7RSY-JG.js → locale-BA52q_fh.js} +1 -1
- package/dist/pressFeedback-Bwwpex9q.js +578 -0
- package/dist/{registry-C7OZb0PJ.js → registry-fNY3jasS.js} +23 -4
- package/dist/{searchResultMessage-T4H3r8Vz.js → searchResultMessage-CFmIy2Da.js} +2 -2
- package/dist/semantic-CXHSMwPK.d.ts +118 -0
- package/dist/{sharedResizeObserver-9EFWnSWH.js → sharedResizeObserver-BekhnB3E.js} +5 -1
- package/dist/slotContent-CNWOrGOr.js +14 -0
- package/dist/{slug-DAK6hdbr.js → slug-D6ln5PTq.js} +3 -1
- package/dist/strayClick-CY-_ImKv.js +60 -0
- package/dist/textClampContext-o3-nLErq.js +15 -0
- package/dist/textDirection-D4ObTwbB.js +32 -0
- package/dist/themeIcons-CqGF0fwW.js +128 -0
- package/dist/tooltipTriggerRules-Bg4tG8w2.js +53 -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/unicodeRegExp-B7yQnpFC.js +14 -0
- package/dist/{upstreamMap-CZUPxbc9.js → upstreamMap-DrkVNtXW.js} +2 -0
- package/dist/useActionGroupTracking-BncJjk1A.js +131 -0
- package/dist/{useAnchoredListbox-6t5zSSz1.js → useAnchoredListbox-9Gn8asBR.js} +3 -2
- package/dist/useCoarsePointer-GItEMrjX.js +21 -0
- package/dist/{useDevWarning-DznOpOHT.js → useDevWarning-B2fsk2B-.js} +1 -4
- package/dist/{usePositionedLayer-psKf3ano.js → useDismiss-0-Z-9D0A.js} +52 -52
- package/dist/{useFileSelection-BPtaegqK.js → useFileSelection-B44UpbvF.js} +14 -4
- package/dist/{useIndicator-BvF_KY9S.js → useIndicator--9mGGlT2.js} +2 -2
- package/dist/{useInputContainer-CLcYrby4.js → useInputContainer-BpLtCA-U.js} +1 -1
- package/dist/{useInputStatusIcon-BSVFtRQG.js → useInputStatusIcon-DCnx00BM.js} +2 -2
- package/dist/{useLayer-Byjda3dD.js → useLayer-CED-g4Q2.js} +1 -1
- package/dist/{useMenuDrillIn-C36Z89W3.js → useMenuDrillIn-C5eJCuO1.js} +2 -2
- package/dist/{useMenuPress-8foxY8z4.js → useMenuPress-BLPwY_m1.js} +2 -59
- package/dist/usePressFeedback-Bcjsw9vv.js +49 -0
- package/dist/{useTooltip-BKsCTWdb.js → useTooltip-D8Tq7-yd.js} +36 -22
- package/dist/{useTranslator-BDUOzbP_.js → useTranslator-Q85hi4qz.js} +2 -2
- package/dist/useTruncation-C4pdlaXa.js +135 -0
- package/dist/useTruncationTooltip-BNk2xslw.js +106 -0
- package/dist/utils/index.js +1 -1
- package/dist/{utils-ClVseK2w.js → utils-BTkg5Ie9.js} +7 -2
- package/locales/en.json +8 -0
- package/package.json +1 -1
- package/styles/alert-dialog.css +19 -0
- package/styles/avatar.css +18 -3
- package/styles/badge.css +20 -2
- package/styles/banner.css +6 -0
- package/styles/button-group.css +38 -2
- package/styles/button.css +76 -4
- package/styles/calendar.css +34 -0
- package/styles/carousel.css +19 -11
- package/styles/chat.css +2 -0
- package/styles/checkbox-indicator.css +9 -9
- package/styles/checkbox-input.css +4 -1
- package/styles/citation.css +2 -1
- package/styles/clickable-card.css +19 -5
- package/styles/code.css +6 -0
- package/styles/context-menu.css +11 -0
- package/styles/dialog-header.css +2 -0
- package/styles/dialog.css +7 -0
- package/styles/dropdown-menu.css +11 -0
- package/styles/field.css +2 -0
- package/styles/heading.css +4 -0
- package/styles/hover-card.css +2 -0
- package/styles/icon.css +18 -12
- package/styles/input-group.css +1 -0
- package/styles/kbd.css +2 -0
- package/styles/layer.css +2 -0
- package/styles/lightbox.css +78 -0
- package/styles/link.css +25 -1
- package/styles/list.css +10 -1
- package/styles/metadata-list.css +1 -1
- package/styles/more-menu.css +6 -0
- package/styles/popover.css +7 -0
- package/styles/pressable.css +7 -0
- package/styles/radio-indicator.css +21 -4
- package/styles/slider.css +2 -0
- package/styles/switch.css +2 -1
- package/styles/table.css +25 -1
- package/styles/text.css +8 -0
- package/styles/thumbnail.css +25 -0
- package/styles/toast.css +2 -0
- package/styles/toggle-button.css +17 -0
- package/styles/token.css +14 -9
- package/styles/toolbar.css +19 -0
- package/dist/Badge-CjDQPF5g.js +0 -30
- package/dist/Heading-D0zL1j5T.js +0 -99
- package/dist/context-B6UElI5X.js +0 -5
- package/dist/context-Cws_tXTr.js +0 -7
- package/dist/context-IvbU9c3T.js +0 -8
- package/dist/index-LySSG_PR.d.ts +0 -27
- 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/useTruncation-C02rA1-c.js +0 -102
- package/dist/{useRestoreFocus-XEKs5-gp.js → useRestoreFocus-CEG0n2AK.js} +1 -1
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { t as devWarn } from "./useDevWarning-B2fsk2B-.js";
|
|
2
|
+
import { n as _sfc_main$1, t as useTruncationTooltip } from "./useTruncationTooltip-BNk2xslw.js";
|
|
3
|
+
import { computed, createBlock, createCommentVNode, defineComponent, mergeProps, openBlock, renderSlot, resolveDynamicComponent, unref, useAttrs, watch, withCtx } from "vue";
|
|
4
|
+
import "../styles/heading.css";
|
|
5
|
+
//#region src/Heading/level.ts
|
|
6
|
+
/** `level` 缺失或不是 1–6 时渲染的级别。 */
|
|
7
|
+
const FALLBACK_LEVEL = 2;
|
|
8
|
+
/** 把 `level` 读成 1–6 的数字;数字字符串按数字读,其余情况退回 2 级。 */
|
|
9
|
+
function resolveHeadingLevel(level) {
|
|
10
|
+
const value = typeof level === "number" || typeof level === "string" ? Number(level) : NaN;
|
|
11
|
+
return Number.isInteger(value) && value >= 1 && value <= 6 ? value : FALLBACK_LEVEL;
|
|
12
|
+
}
|
|
13
|
+
/** 警告里展示调用方传的值:字符串带引号,其余原样。 */
|
|
14
|
+
function describeLevel(level) {
|
|
15
|
+
return typeof level === "string" ? JSON.stringify(level) : String(level);
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/Heading/Heading.vue
|
|
19
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
20
|
+
inheritAttrs: false,
|
|
21
|
+
__name: "Heading",
|
|
22
|
+
props: {
|
|
23
|
+
level: {},
|
|
24
|
+
type: {},
|
|
25
|
+
color: { default: "primary" },
|
|
26
|
+
weight: {},
|
|
27
|
+
display: { default: "block" },
|
|
28
|
+
accessibilityLevel: {},
|
|
29
|
+
textWrap: {},
|
|
30
|
+
wordBreak: {},
|
|
31
|
+
justify: { default: "start" },
|
|
32
|
+
hasCapsize: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: false
|
|
35
|
+
},
|
|
36
|
+
hasStrikethrough: { type: Boolean },
|
|
37
|
+
maxLines: { default: 0 },
|
|
38
|
+
hasTruncateTooltip: {
|
|
39
|
+
type: [Boolean, String],
|
|
40
|
+
default: true
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
setup(__props) {
|
|
44
|
+
const props = __props;
|
|
45
|
+
const level = computed(() => resolveHeadingLevel(props.level));
|
|
46
|
+
watch(() => props.level, (requested) => {
|
|
47
|
+
if (requested !== level.value) devWarn("Heading", `level must be 1, 2, 3, 4, 5 or 6, but it is ${describeLevel(requested)}. The heading renders as level ${level.value}. Pass the outline level, for example <Heading :level="2">.`);
|
|
48
|
+
}, { immediate: true });
|
|
49
|
+
const tag = computed(() => `h${level.value}`);
|
|
50
|
+
const wordBreak = computed(() => props.wordBreak ?? (props.maxLines === 1 ? "break-all" : props.maxLines > 1 ? "break-word" : void 0));
|
|
51
|
+
const tooltip = useTruncationTooltip(() => props.maxLines, () => props.hasTruncateTooltip);
|
|
52
|
+
const { interest } = tooltip;
|
|
53
|
+
const ariaLevel = computed(() => props.accessibilityLevel != null && props.accessibilityLevel !== level.value ? props.accessibilityLevel : void 0);
|
|
54
|
+
const attrs = useAttrs();
|
|
55
|
+
const classes = computed(() => [
|
|
56
|
+
"astryx-heading",
|
|
57
|
+
`astryx-heading--level-${level.value}`,
|
|
58
|
+
props.type && `astryx-heading--type-${props.type}`,
|
|
59
|
+
`astryx-heading--color-${props.color}`,
|
|
60
|
+
props.weight && `astryx-heading--weight-${props.weight}`,
|
|
61
|
+
props.display === "inline" && props.maxLines === 0 && !props.hasCapsize && "astryx-heading--inline",
|
|
62
|
+
props.hasCapsize && "astryx-heading--capsize",
|
|
63
|
+
props.textWrap && `astryx-heading--wrap-${props.textWrap}`,
|
|
64
|
+
wordBreak.value && `astryx-heading--word-${wordBreak.value}`,
|
|
65
|
+
props.justify !== "start" && `astryx-heading--justify-${props.justify}`,
|
|
66
|
+
props.hasStrikethrough && "astryx-heading--strike",
|
|
67
|
+
props.maxLines === 1 && "astryx-heading--truncate-single",
|
|
68
|
+
props.maxLines > 1 && "astryx-heading--truncate-multi"
|
|
69
|
+
]);
|
|
70
|
+
const style = computed(() => {
|
|
71
|
+
if (props.maxLines > 1) return { WebkitLineClamp: props.maxLines };
|
|
72
|
+
return {};
|
|
73
|
+
});
|
|
74
|
+
return (_ctx, _cache) => {
|
|
75
|
+
return openBlock(), createBlock(resolveDynamicComponent(tag.value), mergeProps({
|
|
76
|
+
ref: unref(tooltip).bind,
|
|
77
|
+
"aria-level": ariaLevel.value
|
|
78
|
+
}, unref(attrs), {
|
|
79
|
+
class: ["astryx-heading", classes.value],
|
|
80
|
+
style: style.value,
|
|
81
|
+
onPointerenter: unref(interest).onPointerenter,
|
|
82
|
+
onPointerleave: unref(interest).onPointerleave,
|
|
83
|
+
onPointerdown: unref(interest).onPointerdown,
|
|
84
|
+
onFocusin: unref(interest).onFocusin,
|
|
85
|
+
onFocusout: unref(interest).onFocusout
|
|
86
|
+
}), {
|
|
87
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default"), unref(tooltip).isMounted.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
88
|
+
key: 0,
|
|
89
|
+
anchor: unref(tooltip).element.value,
|
|
90
|
+
content: unref(tooltip).truncation.fullText.value,
|
|
91
|
+
placement: unref(tooltip).placement.value,
|
|
92
|
+
interest: unref(interest).state
|
|
93
|
+
}, null, 8, [
|
|
94
|
+
"anchor",
|
|
95
|
+
"content",
|
|
96
|
+
"placement",
|
|
97
|
+
"interest"
|
|
98
|
+
])) : createCommentVNode("v-if", true)]),
|
|
99
|
+
_: 3
|
|
100
|
+
}, 16, [
|
|
101
|
+
"aria-level",
|
|
102
|
+
"class",
|
|
103
|
+
"style",
|
|
104
|
+
"onPointerenter",
|
|
105
|
+
"onPointerleave",
|
|
106
|
+
"onPointerdown",
|
|
107
|
+
"onFocusin",
|
|
108
|
+
"onFocusout"
|
|
109
|
+
]);
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
//#endregion
|
|
114
|
+
export { _sfc_main as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as HoverCardAlignment, c as HoverCardHoverIndication, d as HoverCardSlots, f as HoverCardTouchTrigger, i as _default, l as HoverCardPlacement, n as UseHoverCardReturn, o as HoverCardEmits, r as useHoverCard, s as HoverCardFocusTrigger, t as UseHoverCardOptions, u as HoverCardProps } from "../index
|
|
1
|
+
import { a as HoverCardAlignment, c as HoverCardHoverIndication, d as HoverCardSlots, f as HoverCardTouchTrigger, i as _default, l as HoverCardPlacement, n as UseHoverCardReturn, o as HoverCardEmits, r as useHoverCard, s as HoverCardFocusTrigger, t as UseHoverCardOptions, u as HoverCardProps } from "../index-Cun6cXGP.js";
|
|
2
2
|
export { _default as HoverCard, type HoverCardAlignment, type HoverCardEmits, type HoverCardFocusTrigger, type HoverCardHoverIndication, type HoverCardPlacement, type HoverCardProps, type HoverCardSlots, type HoverCardTouchTrigger, type UseHoverCardOptions, type UseHoverCardReturn, useHoverCard };
|
package/dist/HoverCard/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as useHoverCard, t as _sfc_main } from "../HoverCard-
|
|
1
|
+
import { n as useHoverCard, t as _sfc_main } from "../HoverCard-CLcbBLBN.js";
|
|
2
2
|
export { _sfc_main as HoverCard, useHoverCard };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { r as registerLayerSurface } from "./layerSurfacePress-C3PjPpJP.js";
|
|
1
2
|
import { r as useResolvedLayerTeleport } from "./useLayerMountTarget-BmZyeKWE.js";
|
|
3
|
+
import { t as useLayer } from "./useLayer-CED-g4Q2.js";
|
|
4
|
+
import { t as _sfc_main$1 } from "./LayerContentBoundary-CvsKxwwm.js";
|
|
2
5
|
import { i as isFocusable } from "./focus-l8jVTcqd.js";
|
|
3
|
-
import { t as useLayer } from "./useLayer-Byjda3dD.js";
|
|
4
6
|
import { t as useMergedRefs } from "./useMergedRefs-DTGo1cEU.js";
|
|
5
|
-
import { t as _sfc_main$1 } from "./LayerContentBoundary-CvsKxwwm.js";
|
|
6
7
|
import { t as useHoverLayerDismiss } from "./useHoverLayerDismiss-kYJ_NqL4.js";
|
|
7
8
|
import { Fragment, Teleport, Transition, computed, createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, onMounted, onScopeDispose, onUpdated, openBlock, ref, renderSlot, shallowRef, toDisplayString, toValue, unref, vShow, watch, withCtx, withDirectives } from "vue";
|
|
8
9
|
import "../styles/hover-card.css";
|
|
@@ -475,7 +476,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
475
476
|
onShow: () => emit("openChange", true),
|
|
476
477
|
onHide: () => emit("openChange", false)
|
|
477
478
|
});
|
|
478
|
-
const setContentRef = useMergedRefs([surfaceRef]);
|
|
479
|
+
const setContentRef = useMergedRefs([surfaceRef, registerLayerSurface]);
|
|
479
480
|
const wrapperRef = ref(null);
|
|
480
481
|
const teleportTarget = useResolvedLayerTeleport(wrapperRef);
|
|
481
482
|
const isTextTrigger = ref(false);
|
package/dist/Icon/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as IconRegistry, c as NamespacedIconName, i as IconProps, n as IconColor, o as IconSize, r as IconName, s as IconSlots, t as ExtendedIconName } from "../types-
|
|
2
|
-
import { a as
|
|
1
|
+
import { a as IconRegistry, c as NamespacedIconName, d as IconVariantMap, i as IconProps, l as IconRequest, m as ThemeIconEntry, n as IconColor, o as IconSize, p as ThemeIconEntries, r as IconName, s as IconSlots, t as ExtendedIconName, u as IconVariant } from "../types-Dcai2Icw.js";
|
|
2
|
+
import { a as ComponentIconRequest, c as ComponentIconStaticMap, i as ComponentIconMap, l as ComponentIconValue, n as defaultSemanticIcons, o as ComponentIconSlotMap, r as resolveSemanticIcon, s as ComponentIconSlotName, t as SemanticIconMap, u as ResolvedComponentIcon } from "../semantic-CXHSMwPK.js";
|
|
3
|
+
import { a as iconGlyphSlug, i as IconGlyphName, n as _default, o as isIconGlyph, r as ICON_GLYPHS, t as useSemanticIcon } from "../index-CvquEEGw.js";
|
|
3
4
|
import { i as addIcon, n as IconifyIcon, r as addCollection, t as IconifyCollection } from "../registry-B1ObuP--.js";
|
|
4
|
-
|
|
5
|
-
export { type ExtendedIconName, ICON_GLYPHS, _default as Icon, type IconColor, type IconGlyphName, type IconName, type IconProps, type IconRegistry, type IconSize, type IconSlots, type IconifyCollection, type IconifyIcon, type NamespacedIconName, type SemanticIconMap, addCollection, addIcon, defaultSemanticIcons, iconGlyphSlug, isIconGlyph, resolveSemanticIcon, useSemanticIcon };
|
|
5
|
+
export { type ComponentIconMap, type ComponentIconRequest, type ComponentIconSlotMap, type ComponentIconSlotName, type ComponentIconStaticMap, type ComponentIconValue, type ExtendedIconName, ICON_GLYPHS, _default as Icon, type IconColor, type IconGlyphName, type IconName, type IconProps, type IconRegistry, type IconRequest, type IconSize, type IconSlots, type IconVariant, type IconVariantMap, type IconifyCollection, type IconifyIcon, type NamespacedIconName, type ResolvedComponentIcon, type SemanticIconMap, type ThemeIconEntries, type ThemeIconEntry, addCollection, addIcon, defaultSemanticIcons, iconGlyphSlug, isIconGlyph, resolveSemanticIcon, useSemanticIcon };
|
package/dist/Icon/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { i as isIconGlyph, n as ICON_GLYPHS, r as iconGlyphSlug, t as _sfc_main } from "../Icon-BCHo7W0x.js";
|
|
2
|
+
import { a as resolveSemanticIcon, i as defaultSemanticIcons } from "../themeIcons-CqGF0fwW.js";
|
|
3
|
+
import { n as addCollection, r as addIcon } from "../registry-fNY3jasS.js";
|
|
4
|
+
import { t as useSemanticIcon } from "../Icon-B2aULLnn.js";
|
|
3
5
|
export { ICON_GLYPHS, _sfc_main as Icon, addCollection, addIcon, defaultSemanticIcons, iconGlyphSlug, isIconGlyph, resolveSemanticIcon, useSemanticIcon };
|
package/dist/Icon/plugin.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as parseIconName, o as resolveCollectionIcon, t as ASTRYX_ICON_QUEUE } from "../registry-
|
|
1
|
+
import { a as parseIconName, o as resolveCollectionIcon, t as ASTRYX_ICON_QUEUE } from "../registry-fNY3jasS.js";
|
|
2
2
|
import { readFileSync } from "node:fs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import { dirname, join } from "node:path";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { a as resolveSemanticIcon, s as themeContextKey } from "./themeIcons-CqGF0fwW.js";
|
|
2
|
+
import { computed, inject, toValue } from "vue";
|
|
3
|
+
//#region src/Icon/useSemanticIcon.ts
|
|
4
|
+
/**
|
|
5
|
+
* The Iconify id for a semantic icon name, from the nearest theme.
|
|
6
|
+
*
|
|
7
|
+
* Returns undefined when the name is not a semantic icon and the theme does
|
|
8
|
+
* not map it. Callers then keep the built-in glyph or a CSS class.
|
|
9
|
+
*/
|
|
10
|
+
function useSemanticIcon(name) {
|
|
11
|
+
const context = inject(themeContextKey, null);
|
|
12
|
+
return computed(() => resolveSemanticIcon(toValue(name), context?.value.theme.icons));
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { useSemanticIcon as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, inject, mergeProps, normalizeClass, openBlock, provide, renderSlot, resolveDynamicComponent, toValue, useId } from "vue";
|
|
2
|
+
import { a as resolveSemanticIcon, r as resolveThemeIcon, s as themeContextKey } from "./themeIcons-CqGF0fwW.js";
|
|
3
|
+
import { i as getIcon, s as warnMissingIcon } from "./registry-fNY3jasS.js";
|
|
4
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, inject, mergeProps, normalizeClass, onMounted, onUpdated, openBlock, provide, renderSlot, resolveDynamicComponent, shallowRef, toValue, useId } from "vue";
|
|
5
5
|
import "../styles/icon.css";
|
|
6
6
|
//#region src/Icon/context.ts
|
|
7
7
|
/**
|
|
@@ -148,7 +148,7 @@ function iconToSVG(icon) {
|
|
|
148
148
|
}
|
|
149
149
|
function prefixIds(body, idPrefix) {
|
|
150
150
|
if (idPrefix === "" || !body.includes("id=")) return body;
|
|
151
|
-
return body.replace(
|
|
151
|
+
return body.replace(/(?<=\s)id=(["'])([^"']+)\1/g, (_, quote, id) => `id=${quote}${idPrefix}${id}${quote}`).replace(/(?<=\s)((?:href|xlink:href)=)(["'])#([^"']+)\2/g, (_, attr, quote, id) => `${attr}${quote}#${idPrefix}${id}${quote}`).replace(/url\(#([^)]+)\)/g, (_, id) => `url(#${idPrefix}${id})`);
|
|
152
152
|
}
|
|
153
153
|
/** A complete SVG element for one icon. The caller supplies a unique id prefix. */
|
|
154
154
|
function renderIconMarkup(icon, idPrefix) {
|
|
@@ -157,78 +157,6 @@ function renderIconMarkup(icon, idPrefix) {
|
|
|
157
157
|
return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="${built.viewBox}" width="100%" height="100%" aria-hidden="true" focusable="false">${body}</svg>`;
|
|
158
158
|
}
|
|
159
159
|
//#endregion
|
|
160
|
-
//#region src/Icon/semantic.ts
|
|
161
|
-
/**
|
|
162
|
-
* Semantic name to Iconify id.
|
|
163
|
-
*
|
|
164
|
-
* The names describe the job (close, search, check). The id is the drawing.
|
|
165
|
-
* Lucide matches the upstream themes. A theme replaces any of these, or adds
|
|
166
|
-
* its own keys, through `defineTheme({ icons })`.
|
|
167
|
-
*
|
|
168
|
-
* The drawing is used only after that collection is registered. Until then
|
|
169
|
-
* the built-in glyph stays, so a missing collection does not blank the icon.
|
|
170
|
-
*
|
|
171
|
-
* `upload` is its own name, not `arrowUp`: a theme can redraw the upload
|
|
172
|
-
* affordance without changing sort arrows or the send button.
|
|
173
|
-
*/
|
|
174
|
-
const defaultSemanticIcons = {
|
|
175
|
-
close: "lucide:x",
|
|
176
|
-
chevronDown: "lucide:chevron-down",
|
|
177
|
-
chevronLeft: "lucide:chevron-left",
|
|
178
|
-
chevronRight: "lucide:chevron-right",
|
|
179
|
-
chevronsLeft: "lucide:chevrons-left",
|
|
180
|
-
chevronsRight: "lucide:chevrons-right",
|
|
181
|
-
check: "lucide:check",
|
|
182
|
-
success: "lucide:circle-check",
|
|
183
|
-
error: "lucide:circle-x",
|
|
184
|
-
warning: "lucide:triangle-alert",
|
|
185
|
-
info: "lucide:info",
|
|
186
|
-
calendar: "lucide:calendar",
|
|
187
|
-
clock: "lucide:clock",
|
|
188
|
-
externalLink: "lucide:external-link",
|
|
189
|
-
menu: "lucide:menu",
|
|
190
|
-
moreHorizontal: "lucide:ellipsis",
|
|
191
|
-
search: "lucide:search",
|
|
192
|
-
upload: "lucide:upload",
|
|
193
|
-
arrowUp: "lucide:arrow-up",
|
|
194
|
-
arrowDown: "lucide:arrow-down",
|
|
195
|
-
arrowsUpDown: "lucide:arrow-up-down",
|
|
196
|
-
funnel: "lucide:funnel",
|
|
197
|
-
eyeSlash: "lucide:eye-off",
|
|
198
|
-
viewColumns: "lucide:columns-3",
|
|
199
|
-
copy: "lucide:copy",
|
|
200
|
-
checkDouble: "lucide:check-check",
|
|
201
|
-
wrench: "lucide:wrench",
|
|
202
|
-
stop: "lucide:square",
|
|
203
|
-
microphone: "lucide:mic",
|
|
204
|
-
image: "lucide:image"
|
|
205
|
-
};
|
|
206
|
-
/**
|
|
207
|
-
* The Iconify id for a semantic name.
|
|
208
|
-
*
|
|
209
|
-
* Theme entries win, including keys the package does not ship, such as a
|
|
210
|
-
* namespaced `numberInput:stepperDown`. An unknown name with no theme entry
|
|
211
|
-
* returns undefined, so a CSS class can still pass through `icon`.
|
|
212
|
-
*/
|
|
213
|
-
function resolveSemanticIcon(name, icons) {
|
|
214
|
-
if (name == null || name === "") return void 0;
|
|
215
|
-
const override = icons?.[name];
|
|
216
|
-
if (override) return override;
|
|
217
|
-
return defaultSemanticIcons[name];
|
|
218
|
-
}
|
|
219
|
-
//#endregion
|
|
220
|
-
//#region src/Icon/useSemanticIcon.ts
|
|
221
|
-
/**
|
|
222
|
-
* The Iconify id for a semantic icon name, from the nearest theme.
|
|
223
|
-
*
|
|
224
|
-
* Returns undefined when the name is not a semantic icon and the theme does
|
|
225
|
-
* not map it. Callers then keep the built-in glyph or a CSS class.
|
|
226
|
-
*/
|
|
227
|
-
function useSemanticIcon(name) {
|
|
228
|
-
const context = inject(themeContextKey, null);
|
|
229
|
-
return computed(() => resolveSemanticIcon(toValue(name), context?.value.theme.icons));
|
|
230
|
-
}
|
|
231
|
-
//#endregion
|
|
232
160
|
//#region src/Icon/Icon.vue
|
|
233
161
|
const _hoisted_1 = [
|
|
234
162
|
"data-kind",
|
|
@@ -244,25 +172,42 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
244
172
|
icon: {},
|
|
245
173
|
color: { default: "inherit" },
|
|
246
174
|
size: {},
|
|
175
|
+
variant: {},
|
|
247
176
|
label: {}
|
|
248
177
|
},
|
|
249
|
-
setup(__props) {
|
|
178
|
+
setup(__props, { expose: __expose }) {
|
|
250
179
|
const props = __props;
|
|
251
180
|
const inheritedSize = useIconDefaultSize();
|
|
181
|
+
const themeContext = inject(themeContextKey, null);
|
|
252
182
|
const idPrefix = `i${useId().replace(/\W/g, "")}-`;
|
|
253
183
|
const directName = computed(() => props.name != null && props.name !== "" ? props.name : void 0);
|
|
254
|
-
const
|
|
255
|
-
const registeredSemanticId = computed(() => {
|
|
256
|
-
const id = semanticId.value;
|
|
257
|
-
if (!id || directName.value != null) return void 0;
|
|
258
|
-
return getIcon(id) ? id : void 0;
|
|
259
|
-
});
|
|
184
|
+
const semanticName = computed(() => typeof props.icon === "string" && props.icon !== "" && directName.value == null ? props.icon : void 0);
|
|
260
185
|
const resolvedSize = computed(() => {
|
|
261
186
|
if (props.size != null) return props.size;
|
|
262
187
|
if (inheritedSize.value != null) return inheritedSize.value;
|
|
263
188
|
if (directName.value != null) return void 0;
|
|
264
189
|
return "md";
|
|
265
190
|
});
|
|
191
|
+
/**
|
|
192
|
+
* The nearest theme's answer for the semantic name at the size this icon
|
|
193
|
+
* renders: an id, `null` when its function entry answered nothing (final),
|
|
194
|
+
* or `undefined` when the theme does not map the name.
|
|
195
|
+
*/
|
|
196
|
+
const themedId = computed(() => {
|
|
197
|
+
const name = semanticName.value;
|
|
198
|
+
if (name == null) return void 0;
|
|
199
|
+
return resolveThemeIcon(name, themeContext?.value.theme, {
|
|
200
|
+
size: resolvedSize.value ?? "md",
|
|
201
|
+
variant: props.variant
|
|
202
|
+
});
|
|
203
|
+
});
|
|
204
|
+
const isHidden = computed(() => themedId.value === null);
|
|
205
|
+
const semanticId = computed(() => themedId.value === void 0 ? resolveSemanticIcon(semanticName.value) : themedId.value ?? void 0);
|
|
206
|
+
const registeredSemanticId = computed(() => {
|
|
207
|
+
const id = semanticId.value;
|
|
208
|
+
if (!id || directName.value != null) return void 0;
|
|
209
|
+
return getIcon(id) ? id : void 0;
|
|
210
|
+
});
|
|
266
211
|
const iconMarkup = computed(() => {
|
|
267
212
|
const query = directName.value ?? registeredSemanticId.value;
|
|
268
213
|
if (query == null) return void 0;
|
|
@@ -283,6 +228,19 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
283
228
|
return props.icon;
|
|
284
229
|
});
|
|
285
230
|
const iconComponent = computed(() => props.icon != null && typeof props.icon !== "string" ? props.icon : void 0);
|
|
231
|
+
const root = shallowRef(null);
|
|
232
|
+
const svg = shallowRef(null);
|
|
233
|
+
function syncSvg() {
|
|
234
|
+
svg.value = root.value?.querySelector("svg") ?? null;
|
|
235
|
+
}
|
|
236
|
+
onMounted(syncSvg);
|
|
237
|
+
onUpdated(syncSvg);
|
|
238
|
+
__expose({
|
|
239
|
+
/** The icon's root box. */
|
|
240
|
+
element: root,
|
|
241
|
+
/** The rendered `<svg>`, or `null` when the glyph has none. */
|
|
242
|
+
svg
|
|
243
|
+
});
|
|
286
244
|
const a11yAttrs = computed(() => {
|
|
287
245
|
const label = props.label;
|
|
288
246
|
return label != null && label !== "" ? {
|
|
@@ -291,7 +249,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
291
249
|
} : { "aria-hidden": "true" };
|
|
292
250
|
});
|
|
293
251
|
return (_ctx, _cache) => {
|
|
294
|
-
return openBlock(), createElementBlock("span", mergeProps(
|
|
252
|
+
return !isHidden.value ? (openBlock(), createElementBlock("span", mergeProps({
|
|
253
|
+
key: 0,
|
|
254
|
+
ref_key: "root",
|
|
255
|
+
ref: root
|
|
256
|
+
}, a11yAttrs.value, {
|
|
295
257
|
class: "astryx-icon",
|
|
296
258
|
"data-kind": glyphSlug.value || registeredSemanticId.value ? void 0 : "graphic",
|
|
297
259
|
"data-color": __props.color,
|
|
@@ -307,9 +269,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
307
269
|
key: 1,
|
|
308
270
|
class: normalizeClass(["astryx-icon__glyph", `astryx-icon--${glyphSlug.value}`])
|
|
309
271
|
}, null, 2)) : providedClass.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [createCommentVNode("\n Utility icon classes (UnoCSS `i-*`) set width and height to 100% outside\n any layer, which would override this box's size if the class sat on it.\n The box owns the size; the class only paints the inside.\n "), createElementVNode("span", { class: normalizeClass(["astryx-icon__external", providedClass.value]) }, null, 2)], 2112)) : iconComponent.value && directName.value == null ? (openBlock(), createBlock(resolveDynamicComponent(iconComponent.value), { key: 3 })) : directName.value == null ? renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 4) : createCommentVNode("v-if", true)
|
|
310
|
-
], 16, _hoisted_1);
|
|
272
|
+
], 16, _hoisted_1)) : createCommentVNode("v-if", true);
|
|
311
273
|
};
|
|
312
274
|
}
|
|
313
275
|
});
|
|
314
276
|
//#endregion
|
|
315
|
-
export {
|
|
277
|
+
export { provideIconSize as a, isIconGlyph as i, ICON_GLYPHS as n, iconGlyphSlug as r, _sfc_main as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as IconButtonSlots, n as IconButtonEmits, r as IconButtonProps, t as _default } from "../index-
|
|
1
|
+
import { i as IconButtonSlots, n as IconButtonEmits, r as IconButtonProps, t as _default } from "../index-D57GW53K.js";
|
|
2
2
|
export { _default as IconButton, _default as default, type IconButtonEmits, type IconButtonProps, type IconButtonSlots };
|
package/dist/IconButton/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./Button-
|
|
1
|
+
import { t as _sfc_main$1 } from "./Button-DsjdehLZ.js";
|
|
2
2
|
import { computed, createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, useAttrs, useTemplateRef, withCtx } from "vue";
|
|
3
3
|
//#region src/IconButton/IconButton.vue
|
|
4
4
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { B as
|
|
2
|
-
import { a as _default$1, i as isCoreIndicatorName, n as defaultIndicators, o as isRenderable, r as getIndicator, s as _default, t as useIndicator } from "../index-
|
|
1
|
+
import { B as IndicatorProps, F as IndicatorFamily, H as IndicatorSize, I as IndicatorFamilyMap, L as IndicatorMap, N as CoreIndicatorName, P as IndicatorComponent, R as IndicatorName, U as IndicatorState, V as IndicatorRegistry, z as IndicatorPosition } from "../types-Bq4Yl6CS.js";
|
|
2
|
+
import { a as _default$1, i as isCoreIndicatorName, n as defaultIndicators, o as isRenderable, r as getIndicator, s as _default, t as useIndicator } from "../index-BU78NOP-.js";
|
|
3
3
|
export { _default as CheckIndicator, type CoreIndicatorName, type IndicatorComponent, type IndicatorFamily, type IndicatorFamilyMap, type IndicatorMap, type IndicatorName, type IndicatorPosition, type IndicatorProps, type IndicatorRegistry, type IndicatorSize, type IndicatorState, _default$1 as RadioIndicator, defaultIndicators, getIndicator, isCoreIndicatorName, isRenderable, useIndicator };
|
package/dist/Indicator/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as isRenderable } from "../isRenderable-BnKHIqfd.js";
|
|
2
|
-
import { a as _sfc_main$1, i as isCoreIndicatorName, n as defaultIndicators, o as _sfc_main, r as getIndicator, t as useIndicator } from "../useIndicator
|
|
2
|
+
import { a as _sfc_main$1, i as isCoreIndicatorName, n as defaultIndicators, o as _sfc_main, r as getIndicator, t as useIndicator } from "../useIndicator--9mGGlT2.js";
|
|
3
3
|
export { _sfc_main as CheckIndicator, _sfc_main$1 as RadioIndicator, defaultIndicators, getIndicator, isCoreIndicatorName, isRenderable, useIndicator };
|
package/dist/InfoTip/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { gi as InfoTipSize, hi as InfoTipProps, mi as _default } from "../index-
|
|
1
|
+
import { gi as InfoTipSize, hi as InfoTipProps, mi as _default } from "../index-DFDadgys.js";
|
|
2
2
|
export { _default as InfoTip, _default as default, type InfoTipProps, type InfoTipSize };
|
package/dist/InfoTip/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./Icon-
|
|
2
|
-
import { s as useAstryxMessages } from "./context-
|
|
3
|
-
import {
|
|
1
|
+
import { t as _sfc_main$1 } from "./Icon-BCHo7W0x.js";
|
|
2
|
+
import { s as useAstryxMessages } from "./context-CV6TrhJY.js";
|
|
3
|
+
import { r as _sfc_main$2, t as useTooltip } from "./useTooltip-D8Tq7-yd.js";
|
|
4
4
|
import { Fragment, computed, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, onMounted, onUpdated, openBlock, ref, renderSlot, shallowRef, toDisplayString, unref, useAttrs, useTemplateRef, withCtx } from "vue";
|
|
5
5
|
import "../styles/info-tip.css";
|
|
6
6
|
//#region src/InfoTip/InfoTip.vue
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./FieldIcon-
|
|
2
|
-
import { t as _sfc_main$2 } from "./IconButton-
|
|
3
|
-
import { t as useTranslator } from "./useTranslator-
|
|
1
|
+
import { t as _sfc_main$1 } from "./FieldIcon-DMtfe1Ne.js";
|
|
2
|
+
import { t as _sfc_main$2 } from "./IconButton-Crtfruc0.js";
|
|
3
|
+
import { t as useTranslator } from "./useTranslator-Q85hi4qz.js";
|
|
4
4
|
import { createBlock, createVNode, defineComponent, mergeProps, openBlock, unref, useAttrs, withCtx } from "vue";
|
|
5
5
|
//#region src/Field/InputClearButton.vue
|
|
6
6
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as InputGroupSlots, c as INPUT_GROUP_KEY, i as InputGroupSize, l as InputGroupContext, n as _default, o as InputGroupTextProps, r as InputGroupProps, s as InputGroupTextSlots, t as _default$1 } from "../index-
|
|
1
|
+
import { a as InputGroupSlots, c as INPUT_GROUP_KEY, i as InputGroupSize, l as InputGroupContext, n as _default, o as InputGroupTextProps, r as InputGroupProps, s as InputGroupTextSlots, t as _default$1 } from "../index-BZuEYd9y.js";
|
|
2
2
|
export { INPUT_GROUP_KEY, _default as InputGroup, type InputGroupContext, type InputGroupProps, type InputGroupSize, type InputGroupSlots, _default$1 as InputGroupText, type InputGroupTextProps, type InputGroupTextSlots };
|
package/dist/InputGroup/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as INPUT_GROUP_KEY } from "../context-
|
|
2
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../InputGroup-
|
|
1
|
+
import { t as INPUT_GROUP_KEY } from "../context-Bg7eSJ47.js";
|
|
2
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../InputGroup-B1kG0rBN.js";
|
|
3
3
|
export { INPUT_GROUP_KEY, _sfc_main as InputGroup, _sfc_main$1 as InputGroupText };
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
import { r as useInputGroupDisabled, t as INPUT_GROUP_KEY } from "./context-Bg7eSJ47.js";
|
|
1
2
|
import { i as useSize, r as provideSize } from "./SizeContext-BbaF-SEx.js";
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeClass, openBlock, provide, renderSlot, useId, withCtx } from "vue";
|
|
3
|
+
import { t as textDirection } from "./textDirection-D4ObTwbB.js";
|
|
4
|
+
import { t as _sfc_main$2 } from "./Field-if5a58LO.js";
|
|
5
|
+
import { Comment, Text, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeClass, openBlock, provide, renderSlot, unref, useId, useSlots, withCtx } from "vue";
|
|
5
6
|
import "../styles/input-group.css";
|
|
6
7
|
//#region src/InputGroup/InputGroup.vue
|
|
7
|
-
const _hoisted_1 = [
|
|
8
|
+
const _hoisted_1$1 = [
|
|
9
|
+
"aria-disabled",
|
|
10
|
+
"aria-labelledby",
|
|
11
|
+
"aria-describedby"
|
|
12
|
+
];
|
|
8
13
|
const _hoisted_2 = {
|
|
9
14
|
key: 0,
|
|
10
15
|
class: "astryx-input-group-addon before"
|
|
@@ -14,12 +19,13 @@ const _hoisted_4 = {
|
|
|
14
19
|
key: 1,
|
|
15
20
|
class: "astryx-input-group-addon after"
|
|
16
21
|
};
|
|
17
|
-
const _hoisted_5 =
|
|
22
|
+
const _hoisted_5 = ["aria-disabled"];
|
|
23
|
+
const _hoisted_6 = {
|
|
18
24
|
key: 0,
|
|
19
25
|
class: "astryx-input-group-addon before"
|
|
20
26
|
};
|
|
21
|
-
const
|
|
22
|
-
const
|
|
27
|
+
const _hoisted_7 = { class: "astryx-input-group-field" };
|
|
28
|
+
const _hoisted_8 = {
|
|
23
29
|
key: 1,
|
|
24
30
|
class: "astryx-input-group-addon after"
|
|
25
31
|
};
|
|
@@ -53,7 +59,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
53
59
|
const props = __props;
|
|
54
60
|
const size = useSize(() => props.size, "md");
|
|
55
61
|
provideSize(size);
|
|
56
|
-
|
|
62
|
+
const disabled = useInputGroupDisabled(() => props.disabled);
|
|
57
63
|
const inputId = `astryx-input-group-${useId()}`;
|
|
58
64
|
const labelId = computed(() => props.label ? `${inputId}-label` : void 0);
|
|
59
65
|
const descriptionId = computed(() => props.label && props.description ? `${inputId}-description` : void 0);
|
|
@@ -61,12 +67,12 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
61
67
|
const describedBy = computed(() => [descriptionId.value, statusId.value].filter(Boolean).join(" ") || void 0);
|
|
62
68
|
provide(INPUT_GROUP_KEY, {
|
|
63
69
|
size,
|
|
64
|
-
disabled
|
|
70
|
+
disabled,
|
|
65
71
|
labelId,
|
|
66
72
|
describedBy
|
|
67
73
|
});
|
|
68
74
|
const groupClass = computed(() => [`size-${size.value}`, {
|
|
69
|
-
"is-disabled":
|
|
75
|
+
"is-disabled": disabled.value,
|
|
70
76
|
[`status-${props.status?.type}`]: props.status != null
|
|
71
77
|
}]);
|
|
72
78
|
return (_ctx, _cache) => {
|
|
@@ -77,7 +83,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
77
83
|
"input-id": inputId,
|
|
78
84
|
description: __props.description,
|
|
79
85
|
"is-label-hidden": __props.isLabelHidden,
|
|
80
|
-
"is-disabled":
|
|
86
|
+
"is-disabled": unref(disabled),
|
|
81
87
|
"is-optional": __props.isOptional,
|
|
82
88
|
"is-required": __props.isRequired,
|
|
83
89
|
status: __props.status,
|
|
@@ -88,13 +94,14 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
88
94
|
default: withCtx(() => [createElementVNode("div", {
|
|
89
95
|
class: normalizeClass(["astryx-input-group", groupClass.value]),
|
|
90
96
|
role: "group",
|
|
97
|
+
"aria-disabled": unref(disabled) || void 0,
|
|
91
98
|
"aria-labelledby": labelId.value,
|
|
92
99
|
"aria-describedby": describedBy.value
|
|
93
100
|
}, [
|
|
94
101
|
_ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_2, [renderSlot(_ctx.$slots, "before")])) : createCommentVNode("v-if", true),
|
|
95
102
|
createElementVNode("div", _hoisted_3, [renderSlot(_ctx.$slots, "default")]),
|
|
96
103
|
_ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_4, [renderSlot(_ctx.$slots, "after")])) : createCommentVNode("v-if", true)
|
|
97
|
-
], 10, _hoisted_1)]),
|
|
104
|
+
], 10, _hoisted_1$1)]),
|
|
98
105
|
_: 3
|
|
99
106
|
}, 8, [
|
|
100
107
|
"label",
|
|
@@ -107,25 +114,42 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
107
114
|
"label-tooltip"
|
|
108
115
|
])) : (openBlock(), createElementBlock("div", {
|
|
109
116
|
key: 1,
|
|
110
|
-
class: normalizeClass(["astryx-input-group", groupClass.value])
|
|
117
|
+
class: normalizeClass(["astryx-input-group", groupClass.value]),
|
|
118
|
+
"aria-disabled": unref(disabled) || void 0
|
|
111
119
|
}, [
|
|
112
|
-
_ctx.$slots.before ? (openBlock(), createElementBlock("div",
|
|
113
|
-
createElementVNode("div",
|
|
114
|
-
_ctx.$slots.after ? (openBlock(), createElementBlock("div",
|
|
115
|
-
],
|
|
120
|
+
_ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_6, [renderSlot(_ctx.$slots, "before")])) : createCommentVNode("v-if", true),
|
|
121
|
+
createElementVNode("div", _hoisted_7, [renderSlot(_ctx.$slots, "default")]),
|
|
122
|
+
_ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_8, [renderSlot(_ctx.$slots, "after")])) : createCommentVNode("v-if", true)
|
|
123
|
+
], 10, _hoisted_5));
|
|
116
124
|
};
|
|
117
125
|
}
|
|
118
126
|
});
|
|
119
127
|
//#endregion
|
|
120
128
|
//#region src/InputGroup/InputGroupText.vue
|
|
129
|
+
const _hoisted_1 = {
|
|
130
|
+
key: 0,
|
|
131
|
+
dir: "ltr"
|
|
132
|
+
};
|
|
121
133
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
122
134
|
name: "AstryxInputGroupText",
|
|
123
135
|
inheritAttrs: false,
|
|
124
136
|
__name: "InputGroupText",
|
|
125
137
|
props: { id: {} },
|
|
126
138
|
setup(__props) {
|
|
139
|
+
const slots = useSlots();
|
|
140
|
+
/** 插槽里只有纯文字时返回这段文字的排版方向,混进别的节点就交给调用方自己标。 */
|
|
141
|
+
function slotDirection() {
|
|
142
|
+
const nodes = slots.default?.() ?? [];
|
|
143
|
+
let text = "";
|
|
144
|
+
for (const node of nodes) {
|
|
145
|
+
if (node.type === Comment) continue;
|
|
146
|
+
if (node.type !== Text) return void 0;
|
|
147
|
+
text += String(node.children ?? "");
|
|
148
|
+
}
|
|
149
|
+
return text === "" ? void 0 : textDirection(text);
|
|
150
|
+
}
|
|
127
151
|
return (_ctx, _cache) => {
|
|
128
|
-
return openBlock(), createElementBlock("span", mergeProps({ class: "astryx-input-group-text" }, _ctx.$attrs), [renderSlot(_ctx.$slots, "default")], 16);
|
|
152
|
+
return openBlock(), createElementBlock("span", mergeProps({ class: "astryx-input-group-text" }, _ctx.$attrs), [createCommentVNode(" 方向放在里层:外框的逻辑圆角和边框重叠仍跟着组的方向走。 "), slotDirection() ? (openBlock(), createElementBlock("span", _hoisted_1, [renderSlot(_ctx.$slots, "default")])) : renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 1)], 16);
|
|
129
153
|
};
|
|
130
154
|
}
|
|
131
155
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as useLocaleDirection, c as ProviderMessagesByLocale, i as astryxDirectionKey, l as ProviderOverrides, n as InternationalizationProviderProps, o as TextDirection, r as InternationalizationProviderSlots, s as getLocaleDirection, t as _default, u as resolveProviderMessages } from "../index-
|
|
1
|
+
import { a as useLocaleDirection, c as ProviderMessagesByLocale, i as astryxDirectionKey, l as ProviderOverrides, n as InternationalizationProviderProps, o as TextDirection, r as InternationalizationProviderSlots, s as getLocaleDirection, t as _default, u as resolveProviderMessages } from "../index-D6pP-H_N.js";
|
|
2
2
|
export { _default as InternationalizationProvider, type InternationalizationProviderProps, type InternationalizationProviderSlots, type ProviderMessagesByLocale, type ProviderOverrides, type TextDirection, astryxDirectionKey, getLocaleDirection, resolveProviderMessages, useLocaleDirection };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as resolveProviderMessages, i as getLocaleDirection, n as astryxDirectionKey, r as useLocaleDirection, t as _sfc_main } from "../InternationalizationProvider-
|
|
1
|
+
import { a as resolveProviderMessages, i as getLocaleDirection, n as astryxDirectionKey, r as useLocaleDirection, t as _sfc_main } from "../InternationalizationProvider-CUEIHCf4.js";
|
|
2
2
|
export { _sfc_main as InternationalizationProvider, astryxDirectionKey, getLocaleDirection, resolveProviderMessages, useLocaleDirection };
|
package/dist/{InternationalizationProvider-CWJDt7Qb.js → InternationalizationProvider-CUEIHCf4.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as provideAstryxLocale, i as normalizeLocale, l as formatIcu, o as useAstryxLocale, r as builtInMessages, u as icuPlaceholderNames } from "./context-
|
|
2
|
-
import { t as upstreamMessageMap } from "./upstreamMap-
|
|
3
|
-
import { t as loadAstryxCatalog } from "./loadCatalog-
|
|
1
|
+
import { a as provideAstryxLocale, i as normalizeLocale, l as formatIcu, o as useAstryxLocale, r as builtInMessages, u as icuPlaceholderNames } from "./context-CV6TrhJY.js";
|
|
2
|
+
import { t as upstreamMessageMap } from "./upstreamMap-DrkVNtXW.js";
|
|
3
|
+
import { t as loadAstryxCatalog } from "./loadCatalog-Bulk4H7U.js";
|
|
4
4
|
import { computed, defineComponent, inject, provide, renderSlot } from "vue";
|
|
5
5
|
//#region src/InternationalizationProvider/catalog.ts
|
|
6
6
|
/**
|