@astryx-vue/core 0.1.3 → 0.2.1
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.js +1 -1
- package/dist/{AlertDialog-BylcA4vV.js → AlertDialog-ovx4cBjM.js} +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-b0PWt9Fz.js → AppShell-1wNIEtK_.js} +2 -2
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/Avatar-jmHInHwj.js +244 -0
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-CZcgAMjM.js → AvatarGroup-QyzSrpYA.js} +8 -7
- package/dist/Badge/index.d.ts +1 -1
- package/dist/Badge/index.js +1 -1
- package/dist/Badge-CjDQPF5g.js +30 -0
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +1 -1
- package/dist/{Breadcrumbs-C3YZFQ9w.js → Breadcrumbs-C97HmjkC.js} +45 -11
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +2 -2
- package/dist/Calendar/index.js +1 -1
- package/dist/Calendar-DqC3EDN1.js +352 -0
- package/dist/Card/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +2 -0
- package/dist/Carousel/index.js +2 -0
- package/dist/Carousel-BGUnskjo.js +363 -0
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-C1aWl5V3.js → Chat-DCjXRiOF.js} +8 -8
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-C1X0Rde8.js → Citation-DunoAqVH.js} +2 -2
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.d.ts +3 -2
- package/dist/Code/index.js +4 -2
- package/dist/Code-yb_KOFtJ.js +299 -0
- package/dist/{CodeBlock-BQdooQy2.js → CodeBlock-CAF-VJnh.js} +8 -2
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BS9ctCQV.js → Collapsible-DvMiYJp7.js} +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-u5h_E05P.js → CommandPalette-xfm9ldUI.js} +1 -1
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-BHmGWml0.js → ComplexSelector-B6lBTRhP.js} +2 -2
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +1 -1
- package/dist/{ContextMenu-dA-ppaRQ.js → ContextMenu-DUkED3Z3.js} +101 -63
- package/dist/DateInput/index.d.ts +2 -2
- package/dist/DateInput/index.js +1 -1
- package/dist/DateInput-Crcg-CCj.js +376 -0
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-fmQlr_A7.js → DateRangeInput-e9KSxBBK.js} +2 -2
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-Bs1JmcIp.js → DateTimeInput-fSOfuLex.js} +5 -3
- package/dist/DropdownMenu/index.d.ts +3 -2
- package/dist/DropdownMenu/index.js +3 -2
- package/dist/{DropdownMenu-B0gogrvG.js → DropdownMenu-8G0B1UND.js} +63 -16
- package/dist/DropdownMenu-XvW4BJob.js +164 -0
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-Bhlqgsg4.js → EmptyState-CUJdTYKV.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-CmAfOpkA.js → FileInput-D-fchyQH.js} +2 -2
- package/dist/Icon/index.d.ts +4 -0
- package/dist/Icon/index.js +3 -0
- package/dist/Icon/plugin.d.ts +45 -0
- package/dist/Icon/plugin.js +177 -0
- package/dist/Icon-Bku25g_K.js +193 -0
- package/dist/Lightbox/index.d.ts +2 -0
- package/dist/Lightbox/index.js +2 -0
- package/dist/Lightbox-uuVGgHxW.js +384 -0
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/Link-DqdQZ37C.js +141 -0
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-CwtLr3f_.js → Markdown-DLICa3db.js} +3 -3
- package/dist/MetadataList/index.d.ts +1 -1
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-DlXQTLog.js → MetadataList-h492rqEN.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-CgQamG6E.js → MobileNavToggle-BMj3Wtuq.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-BXL6Dqsu.js → MoreMenu-DkYi5az5.js} +2 -2
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-DT8ZccMI.js → MultiSelector-C2IS-EaU.js} +2 -2
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavMenu/index.d.ts +1 -1
- package/dist/NavMenu/index.js +1 -1
- package/dist/{NavMenuItem-mzNQESpB.js → NavMenuItem-B-k7olt5.js} +2 -1
- package/dist/NumberInput/index.d.ts +2 -2
- package/dist/NumberInput/index.js +1 -1
- package/dist/NumberInput-CjfAsFwj.js +210 -0
- package/dist/Outline/index.d.ts +2 -0
- package/dist/Outline/index.js +2 -0
- package/dist/Outline-BTmrtvXR.js +325 -0
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-zXg3g6fy.js → OverflowList-CRE8BE7V.js} +2 -2
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +2 -2
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-DXfgMUKJ.js → Pagination-BpGXPmc7.js} +76 -22
- package/dist/Popover/index.d.ts +1 -1
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-ChDp-7oe.js → ProgressBar-DO9Chic6.js} +31 -11
- package/dist/Radio/index.d.ts +1 -1
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{Resizable-BuGKvU9I.js → Resizable-CE8XQDL2.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +2 -2
- package/dist/Selector/index.js +1 -1
- package/dist/Selector-DkJOLZSR.js +468 -0
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-Cdrigq2A.js → SideNav-DcDWBnXJ.js} +17 -17
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-DxmLfh8O.js → Stepper-DZKaqEoz.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-C411uNQU.js → TabList-hm06QPiW.js} +10 -3
- package/dist/Table/index.js +1 -1
- package/dist/{Table-7qRmlIQd.js → Table-DwehtMap.js} +4 -4
- package/dist/Text/index.d.ts +3 -2
- package/dist/Text/index.js +1 -1
- package/dist/{Text-CKd7e3gK.js → Text-BHVghsWo.js} +12 -2
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-Cv9UVbzS.js → TextArea-CPwSytdO.js} +12 -6
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/Theme/index.d.ts +2 -0
- package/dist/Theme/index.js +2 -0
- package/dist/Theme-BuUiiJNr.js +429 -0
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-BWVzLLyI.js → Thumbnail-CAOYds8t.js} +11 -11
- package/dist/{TimeField-l3QzU6vC.js → TimeField-BGbxCoKU.js} +2 -2
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-OkgX-xbQ.js → TimeInput-DJP3l4ZS.js} +1 -1
- package/dist/Timer/index.d.ts +2 -0
- package/dist/Timer/index.js +2 -0
- package/dist/Timer-B7GV6hqd.js +134 -0
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +2 -1
- package/dist/{Timestamp-DUoP9ari.js → Timestamp-BzRp8uWc.js} +5 -122
- package/dist/Toast/index.d.ts +2 -2
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-BKXPvEMp.js → Toast-C2ML-bmi.js} +37 -7
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-C4KD0fZD.js → Token-CjocuhzE.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-BA8sTMPZ.js → Tokenizer-mYES5SPM.js} +2 -2
- 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-CZokS7E_.js → TopNav-C2t6JkZb.js} +4 -4
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-CIbAGOMf.js → TreeList-THJ0KamE.js} +3 -3
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-DIw-K4aa.js → Typeahead-D7VnvRpK.js} +2 -2
- package/dist/{context-D6ECRdc5.js → context-DzcK4T_C.js} +58 -2
- package/dist/context-O2Vb8cJl.js +57 -0
- package/dist/formatInstant-BDWUIxS7.js +119 -0
- package/dist/index-1AZ4KZhg.d.ts +96 -0
- package/dist/index-3p2BDVHq.d.ts +31 -0
- package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
- package/dist/{index-FEy8qFSD.d.ts → index-BHqRH7QW.d.ts} +2 -2
- package/dist/{index-CTolyeii.d.ts → index-BLOEjvaM.d.ts} +16 -2
- package/dist/index-BMrggCw-.d.ts +52 -0
- package/dist/{index-z4p2k9VR.d.ts → index-Bgv4ZmBl.d.ts} +20 -2
- package/dist/{index-BoRIw-bP.d.ts → index-Bt7ewoz2.d.ts} +32 -2
- package/dist/{index-CjtAH60j.d.ts → index-Bu0Zd1uw.d.ts} +1 -1
- package/dist/{index-uQrLBZfF.d.ts → index-Bu3oXIIS.d.ts} +24 -0
- package/dist/{index-CX97hlld.d.ts → index-CBym0hSq.d.ts} +2 -19
- package/dist/index-CJlBAXwj.d.ts +100 -0
- package/dist/{index-DT9S92sh.d.ts → index-CNjbOgty.d.ts} +15 -0
- package/dist/{index-gW0HW02U.d.ts → index-COxy6LEW.d.ts} +1 -1
- package/dist/index-CRizexSC.d.ts +147 -0
- package/dist/{index-DYChvBOM.d.ts → index-Clmz00IK.d.ts} +31 -0
- package/dist/index-Cm_TiLXU.d.ts +22 -0
- package/dist/index-Cn-sSds-.d.ts +68 -0
- package/dist/index-CsVS37na.d.ts +81 -0
- package/dist/{index-DRmb-oUa.d.ts → index-CuFLztiI.d.ts} +6 -1
- package/dist/{index-CT8KEpec.d.ts → index-D0TlUOtG.d.ts} +1 -1
- package/dist/{index-fa72tWIU.d.ts → index-D2bSSSBP.d.ts} +1 -1
- package/dist/{index-2u4l3wq8.d.ts → index-DAiGhkNZ.d.ts} +15 -2
- package/dist/{index-DGNqi2za.d.ts → index-DQAnGHu7.d.ts} +5 -5
- package/dist/{index-BfOtLyNH.d.ts → index-D_nYxnNv.d.ts} +1 -1
- package/dist/{index-Df2YvC8o.d.ts → index-DeOftUMq.d.ts} +191 -75
- package/dist/{index-DXDGk38y.d.ts → index-Dg3ZmwEg.d.ts} +11 -0
- package/dist/{index-BiMGXtD-.d.ts → index-DimuSES0.d.ts} +14 -1
- package/dist/{index-C_2Z65Rp.d.ts → index-DnEh-HA0.d.ts} +1 -1
- package/dist/{index-D-ZuubCK.d.ts → index-DnSrjbjP.d.ts} +1 -1
- package/dist/{index-mQ6EPmaG.d.ts → index-DsyKhauk.d.ts} +78 -9
- package/dist/{index-C6RecznD.d.ts → index-I4J7gwa1.d.ts} +51 -9
- package/dist/{index-utZGF4GR.d.ts → index-NOXYEdOI.d.ts} +1 -1
- package/dist/{index-B4OOtNP8.d.ts → index-Z_onS2lR.d.ts} +1 -1
- package/dist/{index-CVn0GBdB.d.ts → index-cG1E0U2s.d.ts} +1 -1
- package/dist/{index-DEeJowZf.d.ts → index-cGagYM1g.d.ts} +15 -2
- package/dist/{index-Ck8qy6Rf.d.ts → index-c_TaW8mM.d.ts} +24 -2
- package/dist/{index-Bqb_Fyju.d.ts → index-jdjcb3Js.d.ts} +2 -2
- package/dist/index.d.ts +78 -68
- package/dist/index.js +107 -96
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.js +1 -1
- package/dist/registry-B1ObuP--.d.ts +45 -0
- package/dist/registry-C7OZb0PJ.js +135 -0
- package/dist/syntaxTheme-Bcs1YMF7.d.ts +38 -0
- package/dist/syntaxTheme-ClpWALZX.js +75 -0
- package/dist/types-BKcxXW--.d.ts +114 -0
- package/dist/types-Bt-lSgYX.d.ts +65 -0
- package/dist/{index-B8MbfMwV.d.ts → types-DDAAT1Xd.d.ts} +36 -82
- package/package.json +30 -1
- package/styles/avatar.css +14 -0
- package/styles/badge.css +8 -0
- package/styles/breadcrumbs.css +6 -1
- package/styles/button.css +13 -0
- package/styles/calendar.css +16 -0
- package/styles/card.css +2 -0
- package/styles/carousel.css +120 -0
- package/styles/chat.css +5 -2
- package/styles/dropdown-menu.css +11 -0
- package/styles/heading.css +6 -2
- package/styles/icon.css +38 -8
- package/styles/lightbox.css +144 -0
- package/styles/link.css +5 -0
- package/styles/media-theme.css +51 -0
- package/styles/number-input.css +22 -0
- package/styles/outline.css +124 -0
- package/styles/pagination.css +45 -1
- package/styles/progress-bar.css +4 -0
- package/styles/selector.css +58 -0
- package/styles/tab-list.css +15 -0
- package/styles/text-area.css +17 -0
- package/styles/text-input.css +5 -0
- package/styles/text.css +63 -14
- package/styles/theme.css +29 -0
- package/styles/timer.css +34 -0
- package/styles/toast.css +7 -0
- package/styles/toolbar.css +11 -0
- package/styles.css +6 -0
- package/dist/Avatar-5s3HSrtN.js +0 -136
- package/dist/Badge-Ba0EwsTj.js +0 -19
- package/dist/Calendar-CYhGDT6f.js +0 -277
- package/dist/DateInput-D2ErjXYO.js +0 -250
- package/dist/Icon-5MdZQ18k.js +0 -86
- package/dist/Link-CprjOuTI.js +0 -92
- package/dist/NumberInput-DspJO6z6.js +0 -147
- package/dist/Selector-DlZpQh42.js +0 -325
- package/dist/index-BzqRns96.d.ts +0 -64
- package/dist/index-ZJyk8RtQ.d.ts +0 -68
- package/dist/{CheckboxList-EsIEXjK_.js → CheckboxList-BbCPiend.js} +1 -1
- package/dist/{index-4FM5lQdV.d.ts → index-BUXNRekN.d.ts} +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as useImperativeAlertDialog } from "../AlertDialog-
|
|
1
|
+
import { n as _sfc_main, t as useImperativeAlertDialog } from "../AlertDialog-ovx4cBjM.js";
|
|
2
2
|
export { _sfc_main as AlertDialog, useImperativeAlertDialog };
|
|
@@ -3,7 +3,7 @@ import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
|
|
|
3
3
|
import { t as _sfc_main$2 } from "./Dialog-rfUt3y8P.js";
|
|
4
4
|
import { t as _sfc_main$3 } from "./Heading-Dugosn6j.js";
|
|
5
5
|
import { t as _sfc_main$4 } from "./Stack-gGcYdOAh.js";
|
|
6
|
-
import { t as _sfc_main$5 } from "./Text-
|
|
6
|
+
import { t as _sfc_main$5 } from "./Text-BHVghsWo.js";
|
|
7
7
|
import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, h, mergeProps, normalizeClass, openBlock, provide, ref, renderList, renderSlot, shallowRef, toDisplayString, unref, useId, useTemplateRef, withCtx } from "vue";
|
|
8
8
|
import "../styles/alert-dialog.css";
|
|
9
9
|
//#region src/AlertDialog/context.ts
|
package/dist/AppShell/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../AppShell-
|
|
1
|
+
import { t as _sfc_main } from "../AppShell-1wNIEtK_.js";
|
|
2
2
|
export { _sfc_main as AppShell };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as appShellMobileKey } from "./useAppShellMobile-DTsyuAJ4.js";
|
|
2
2
|
import { a as _sfc_main$2, n as _sfc_main$4, r as _sfc_main$3, t as _sfc_main$5 } from "./LayoutPanel-C34uOq3e.js";
|
|
3
|
-
import { a as useAstryxMessages } from "./context-
|
|
4
|
-
import { n as _sfc_main$7, t as _sfc_main$6 } from "./MobileNavToggle-
|
|
3
|
+
import { a as useAstryxMessages } from "./context-DzcK4T_C.js";
|
|
4
|
+
import { n as _sfc_main$7, t as _sfc_main$6 } from "./MobileNavToggle-BMj3Wtuq.js";
|
|
5
5
|
import { n as sideNavRenderModeKey } from "./context-BjNya0v8.js";
|
|
6
6
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, mergeModels, mergeProps, openBlock, provide, reactive, ref, renderSlot, toDisplayString, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, watch, withCtx } from "vue";
|
|
7
7
|
import "../styles/app-shell.css";
|
package/dist/Avatar/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as AvatarProps, c as AvatarStatusDotProps, i as AvatarNumericSize, l as AvatarStatusDotVariant, n as _default, o as AvatarShape, r as AvatarNamedSize, s as AvatarSize, t as _default$1 } from "../index-
|
|
1
|
+
import { a as AvatarProps, c as AvatarStatusDotProps, i as AvatarNumericSize, l as AvatarStatusDotVariant, n as _default, o as AvatarShape, r as AvatarNamedSize, s as AvatarSize, t as _default$1 } from "../index-Bu3oXIIS.js";
|
|
2
2
|
export { _default as Avatar, type AvatarNamedSize, type AvatarNumericSize, type AvatarProps, type AvatarShape, type AvatarSize, _default$1 as AvatarStatusDot, type AvatarStatusDotProps, type AvatarStatusDotVariant };
|
package/dist/Avatar/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../Avatar-
|
|
1
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../Avatar-jmHInHwj.js";
|
|
2
2
|
export { _sfc_main as Avatar, _sfc_main$1 as AvatarStatusDot };
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import { n as AvatarGroupContext, t as resolveSize } from "./utils-C9r3UD_y.js";
|
|
2
|
+
import { t as _sfc_main$2 } from "./Tooltip-mp0NMh_Y.js";
|
|
3
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, inject, mergeProps, normalizeStyle, openBlock, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, withCtx } from "vue";
|
|
4
|
+
import "../styles/avatar.css";
|
|
5
|
+
//#region src/Avatar/Avatar.vue
|
|
6
|
+
const _hoisted_1$1 = { class: "astryx-avatar__content" };
|
|
7
|
+
const _hoisted_2 = ["src"];
|
|
8
|
+
const _hoisted_3 = ["src"];
|
|
9
|
+
const _hoisted_4 = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "astryx-avatar__status"
|
|
12
|
+
};
|
|
13
|
+
const _hoisted_5 = { class: "astryx-avatar__content" };
|
|
14
|
+
const _hoisted_6 = ["src"];
|
|
15
|
+
const _hoisted_7 = ["src"];
|
|
16
|
+
const _hoisted_8 = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "astryx-avatar__status"
|
|
19
|
+
};
|
|
20
|
+
const INITIALS_FONT_SIZE_RATIO = 16 / 36;
|
|
21
|
+
const DEFAULT_ICON_RATIO = .6;
|
|
22
|
+
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
23
|
+
inheritAttrs: false,
|
|
24
|
+
__name: "Avatar",
|
|
25
|
+
props: {
|
|
26
|
+
alt: {},
|
|
27
|
+
fallbackSrc: {},
|
|
28
|
+
name: {},
|
|
29
|
+
size: { default: "md" },
|
|
30
|
+
shape: { default: "circle" },
|
|
31
|
+
src: {},
|
|
32
|
+
href: {},
|
|
33
|
+
target: {},
|
|
34
|
+
rel: {},
|
|
35
|
+
tooltip: {
|
|
36
|
+
type: [Boolean, String],
|
|
37
|
+
default: true
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
emits: ["error"],
|
|
41
|
+
setup(__props, { emit: __emit }) {
|
|
42
|
+
const props = __props;
|
|
43
|
+
const emit = __emit;
|
|
44
|
+
const attrs = useAttrs();
|
|
45
|
+
const erroredSrc = ref(void 0);
|
|
46
|
+
const erroredFallbackSrc = ref(void 0);
|
|
47
|
+
const avatarGroup = inject(AvatarGroupContext, void 0);
|
|
48
|
+
const resolvedSize = computed(() => avatarGroup?.size.value ?? props.size);
|
|
49
|
+
const resolvedShape = computed(() => avatarGroup?.shape.value ?? props.shape);
|
|
50
|
+
const numericSize = computed(() => resolveSize(resolvedSize.value));
|
|
51
|
+
const groupStyle = computed(() => {
|
|
52
|
+
if (!avatarGroup) return {};
|
|
53
|
+
return {
|
|
54
|
+
marginInlineStart: `${-avatarGroup.overlap.value}px`,
|
|
55
|
+
borderWidth: "2px"
|
|
56
|
+
};
|
|
57
|
+
});
|
|
58
|
+
const rootStyle = computed(() => ({
|
|
59
|
+
width: `${numericSize.value}px`,
|
|
60
|
+
height: `${numericSize.value}px`
|
|
61
|
+
}));
|
|
62
|
+
const showImage = computed(() => props.src && erroredSrc.value !== props.src);
|
|
63
|
+
const showFallbackImage = computed(() => !showImage.value && props.fallbackSrc && erroredFallbackSrc.value !== props.fallbackSrc);
|
|
64
|
+
const meaningfulName = computed(() => {
|
|
65
|
+
return typeof props.name === "string" && props.name.trim() !== "" ? props.name.trim() : void 0;
|
|
66
|
+
});
|
|
67
|
+
const meaningfulAlt = computed(() => {
|
|
68
|
+
return typeof props.alt === "string" && props.alt.trim() !== "" ? props.alt.trim() : void 0;
|
|
69
|
+
});
|
|
70
|
+
const initials = computed(() => {
|
|
71
|
+
if (!meaningfulName.value) return "";
|
|
72
|
+
const words = meaningfulName.value.split(/\s+/);
|
|
73
|
+
const first = words.at(0);
|
|
74
|
+
const last = words.length > 1 ? words.at(-1) : void 0;
|
|
75
|
+
const initial = (word) => {
|
|
76
|
+
if (!word) return "";
|
|
77
|
+
const match = word.match(/[\p{L}\p{N}]/u);
|
|
78
|
+
return match ? match[0].toUpperCase() : "";
|
|
79
|
+
};
|
|
80
|
+
return `${initial(first)}${initial(last)}`;
|
|
81
|
+
});
|
|
82
|
+
const showInitials = computed(() => !showImage.value && !showFallbackImage.value && initials.value !== "");
|
|
83
|
+
const showIcon = computed(() => !showImage.value && !showFallbackImage.value && initials.value === "");
|
|
84
|
+
const accessibleName = computed(() => {
|
|
85
|
+
return meaningfulAlt.value || meaningfulName.value;
|
|
86
|
+
});
|
|
87
|
+
const isLink = computed(() => props.href != null);
|
|
88
|
+
const isButton = computed(() => !isLink.value && attrs.onClick != null);
|
|
89
|
+
const isInteractive = computed(() => isLink.value || isButton.value);
|
|
90
|
+
const rootTag = computed(() => isLink.value ? "a" : isButton.value ? "button" : "span");
|
|
91
|
+
const linkRel = computed(() => {
|
|
92
|
+
const parts = new Set((props.rel ?? "").split(/\s+/).filter(Boolean));
|
|
93
|
+
if (props.target === "_blank") {
|
|
94
|
+
parts.add("noopener");
|
|
95
|
+
parts.add("noreferrer");
|
|
96
|
+
}
|
|
97
|
+
return parts.size > 0 ? Array.from(parts).join(" ") : void 0;
|
|
98
|
+
});
|
|
99
|
+
const tooltipText = computed(() => {
|
|
100
|
+
if (props.tooltip === false) return void 0;
|
|
101
|
+
if (typeof props.tooltip === "string") {
|
|
102
|
+
const custom = props.tooltip.trim();
|
|
103
|
+
return custom === "" ? void 0 : custom;
|
|
104
|
+
}
|
|
105
|
+
return meaningfulName.value;
|
|
106
|
+
});
|
|
107
|
+
const a11yProps = computed(() => {
|
|
108
|
+
if (isInteractive.value) return accessibleName.value ? { "aria-label": accessibleName.value } : {};
|
|
109
|
+
if (accessibleName.value) return {
|
|
110
|
+
"role": "img",
|
|
111
|
+
"aria-label": accessibleName.value
|
|
112
|
+
};
|
|
113
|
+
return {
|
|
114
|
+
"role": "presentation",
|
|
115
|
+
"aria-hidden": "true"
|
|
116
|
+
};
|
|
117
|
+
});
|
|
118
|
+
const rootBindings = computed(() => {
|
|
119
|
+
const bindings = {
|
|
120
|
+
...a11yProps.value,
|
|
121
|
+
...attrs
|
|
122
|
+
};
|
|
123
|
+
if (isLink.value) {
|
|
124
|
+
bindings.href = props.href;
|
|
125
|
+
bindings.target = props.target;
|
|
126
|
+
bindings.rel = linkRel.value;
|
|
127
|
+
}
|
|
128
|
+
if (isButton.value) bindings.type = attrs.type ?? "button";
|
|
129
|
+
if (!isInteractive.value && tooltipText.value != null && bindings.tabindex == null && bindings.tabIndex == null) bindings.tabindex = 0;
|
|
130
|
+
return bindings;
|
|
131
|
+
});
|
|
132
|
+
function handleImageError(event) {
|
|
133
|
+
if (props.src) erroredSrc.value = props.src;
|
|
134
|
+
emit("error", event);
|
|
135
|
+
}
|
|
136
|
+
function handleFallbackError() {
|
|
137
|
+
if (props.fallbackSrc) erroredFallbackSrc.value = props.fallbackSrc;
|
|
138
|
+
}
|
|
139
|
+
return (_ctx, _cache) => {
|
|
140
|
+
return tooltipText.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
141
|
+
key: 0,
|
|
142
|
+
content: tooltipText.value
|
|
143
|
+
}, {
|
|
144
|
+
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(rootTag.value), mergeProps({
|
|
145
|
+
class: ["astryx-avatar", [`astryx-avatar--${resolvedShape.value}`, {
|
|
146
|
+
"astryx-avatar--group-item": unref(avatarGroup),
|
|
147
|
+
"astryx-avatar--interactive": isInteractive.value
|
|
148
|
+
}]],
|
|
149
|
+
style: [rootStyle.value, groupStyle.value]
|
|
150
|
+
}, rootBindings.value), {
|
|
151
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_1$1, [showImage.value ? (openBlock(), createElementBlock("img", {
|
|
152
|
+
key: 0,
|
|
153
|
+
class: "astryx-avatar__image",
|
|
154
|
+
src: __props.src,
|
|
155
|
+
alt: "",
|
|
156
|
+
onError: handleImageError
|
|
157
|
+
}, null, 40, _hoisted_2)) : showFallbackImage.value ? (openBlock(), createElementBlock("img", {
|
|
158
|
+
key: 1,
|
|
159
|
+
class: "astryx-avatar__image",
|
|
160
|
+
src: __props.fallbackSrc,
|
|
161
|
+
alt: "",
|
|
162
|
+
onError: handleFallbackError
|
|
163
|
+
}, null, 40, _hoisted_3)) : showInitials.value ? (openBlock(), createElementBlock("span", {
|
|
164
|
+
key: 2,
|
|
165
|
+
class: "astryx-avatar__fallback astryx-avatar__fallback--initials",
|
|
166
|
+
style: normalizeStyle({ fontSize: `${numericSize.value * INITIALS_FONT_SIZE_RATIO}px` })
|
|
167
|
+
}, toDisplayString(initials.value), 5)) : showIcon.value ? (openBlock(), createElementBlock("span", {
|
|
168
|
+
key: 3,
|
|
169
|
+
class: "astryx-avatar__fallback astryx-avatar__fallback--icon",
|
|
170
|
+
style: normalizeStyle({ fontSize: `${numericSize.value * DEFAULT_ICON_RATIO}px` })
|
|
171
|
+
}, [renderSlot(_ctx.$slots, "default", {}, () => [_cache[0] || (_cache[0] = createElementVNode("svg", {
|
|
172
|
+
viewBox: "0 0 24 24",
|
|
173
|
+
fill: "currentColor",
|
|
174
|
+
"aria-hidden": "true"
|
|
175
|
+
}, [createElementVNode("path", { d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" })], -1))])], 4)) : createCommentVNode("v-if", true)]), _ctx.$slots.status ? (openBlock(), createElementBlock("span", _hoisted_4, [renderSlot(_ctx.$slots, "status")])) : createCommentVNode("v-if", true)]),
|
|
176
|
+
_: 3
|
|
177
|
+
}, 16, ["class", "style"]))]),
|
|
178
|
+
_: 3
|
|
179
|
+
}, 8, ["content"])) : (openBlock(), createBlock(resolveDynamicComponent(rootTag.value), mergeProps({
|
|
180
|
+
key: 1,
|
|
181
|
+
class: ["astryx-avatar", [`astryx-avatar--${resolvedShape.value}`, {
|
|
182
|
+
"astryx-avatar--group-item": unref(avatarGroup),
|
|
183
|
+
"astryx-avatar--interactive": isInteractive.value
|
|
184
|
+
}]],
|
|
185
|
+
style: [rootStyle.value, groupStyle.value]
|
|
186
|
+
}, rootBindings.value), {
|
|
187
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_5, [showImage.value ? (openBlock(), createElementBlock("img", {
|
|
188
|
+
key: 0,
|
|
189
|
+
class: "astryx-avatar__image",
|
|
190
|
+
src: __props.src,
|
|
191
|
+
alt: "",
|
|
192
|
+
onError: handleImageError
|
|
193
|
+
}, null, 40, _hoisted_6)) : showFallbackImage.value ? (openBlock(), createElementBlock("img", {
|
|
194
|
+
key: 1,
|
|
195
|
+
class: "astryx-avatar__image",
|
|
196
|
+
src: __props.fallbackSrc,
|
|
197
|
+
alt: "",
|
|
198
|
+
onError: handleFallbackError
|
|
199
|
+
}, null, 40, _hoisted_7)) : showInitials.value ? (openBlock(), createElementBlock("span", {
|
|
200
|
+
key: 2,
|
|
201
|
+
class: "astryx-avatar__fallback astryx-avatar__fallback--initials",
|
|
202
|
+
style: normalizeStyle({ fontSize: `${numericSize.value * INITIALS_FONT_SIZE_RATIO}px` })
|
|
203
|
+
}, toDisplayString(initials.value), 5)) : showIcon.value ? (openBlock(), createElementBlock("span", {
|
|
204
|
+
key: 3,
|
|
205
|
+
class: "astryx-avatar__fallback astryx-avatar__fallback--icon",
|
|
206
|
+
style: normalizeStyle({ fontSize: `${numericSize.value * DEFAULT_ICON_RATIO}px` })
|
|
207
|
+
}, [renderSlot(_ctx.$slots, "default", {}, () => [_cache[1] || (_cache[1] = createElementVNode("svg", {
|
|
208
|
+
viewBox: "0 0 24 24",
|
|
209
|
+
fill: "currentColor",
|
|
210
|
+
"aria-hidden": "true"
|
|
211
|
+
}, [createElementVNode("path", { d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" })], -1))])], 4)) : createCommentVNode("v-if", true)]), _ctx.$slots.status ? (openBlock(), createElementBlock("span", _hoisted_8, [renderSlot(_ctx.$slots, "status")])) : createCommentVNode("v-if", true)]),
|
|
212
|
+
_: 3
|
|
213
|
+
}, 16, ["class", "style"]));
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
//#endregion
|
|
218
|
+
//#region src/Avatar/AvatarStatusDot.vue
|
|
219
|
+
const _hoisted_1 = [
|
|
220
|
+
"data-variant",
|
|
221
|
+
"role",
|
|
222
|
+
"aria-label",
|
|
223
|
+
"aria-hidden"
|
|
224
|
+
];
|
|
225
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
226
|
+
__name: "AvatarStatusDot",
|
|
227
|
+
props: {
|
|
228
|
+
variant: { default: "neutral" },
|
|
229
|
+
label: {}
|
|
230
|
+
},
|
|
231
|
+
setup(__props) {
|
|
232
|
+
return (_ctx, _cache) => {
|
|
233
|
+
return openBlock(), createElementBlock("span", {
|
|
234
|
+
class: "astryx-avatar-status-dot",
|
|
235
|
+
"data-variant": __props.variant,
|
|
236
|
+
role: __props.label ? "img" : void 0,
|
|
237
|
+
"aria-label": __props.label || void 0,
|
|
238
|
+
"aria-hidden": __props.label ? void 0 : "true"
|
|
239
|
+
}, null, 8, _hoisted_1);
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
//#endregion
|
|
244
|
+
export { _sfc_main$1 as n, _sfc_main as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as AvatarGroupProps, n as _default, r as AvatarGroupOverflowProps, t as _default$1 } from "../index-
|
|
1
|
+
import { i as AvatarGroupProps, n as _default, r as AvatarGroupOverflowProps, t as _default$1 } from "../index-DeOftUMq.js";
|
|
2
2
|
export { _default as AvatarGroup, _default$1 as AvatarGroupOverflow, type AvatarGroupOverflowProps, type AvatarGroupProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../AvatarGroup-
|
|
1
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../AvatarGroup-QyzSrpYA.js";
|
|
2
2
|
export { _sfc_main as AvatarGroup, _sfc_main$1 as AvatarGroupOverflow };
|
|
@@ -2,17 +2,14 @@ import { n as AvatarGroupContext, t as resolveSize } from "./utils-C9r3UD_y.js";
|
|
|
2
2
|
import { computed, createElementBlock, defineComponent, inject, normalizeClass, normalizeStyle, openBlock, provide, renderSlot, toDisplayString } from "vue";
|
|
3
3
|
import "../styles/avatar-group.css";
|
|
4
4
|
//#region src/AvatarGroup/AvatarGroup.vue
|
|
5
|
-
const _hoisted_1$1 =
|
|
6
|
-
class: "astryx-avatar-group",
|
|
7
|
-
role: "group",
|
|
8
|
-
"aria-label": "Avatar group"
|
|
9
|
-
};
|
|
5
|
+
const _hoisted_1$1 = ["aria-label"];
|
|
10
6
|
const OVERLAP_RATIO = .25;
|
|
11
7
|
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
12
8
|
__name: "AvatarGroup",
|
|
13
9
|
props: {
|
|
14
10
|
size: { default: "md" },
|
|
15
|
-
shape: { default: "circle" }
|
|
11
|
+
shape: { default: "circle" },
|
|
12
|
+
label: { default: "Avatar group" }
|
|
16
13
|
},
|
|
17
14
|
setup(__props) {
|
|
18
15
|
const props = __props;
|
|
@@ -24,7 +21,11 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
24
21
|
overlap
|
|
25
22
|
});
|
|
26
23
|
return (_ctx, _cache) => {
|
|
27
|
-
return openBlock(), createElementBlock("div",
|
|
24
|
+
return openBlock(), createElementBlock("div", {
|
|
25
|
+
class: "astryx-avatar-group",
|
|
26
|
+
role: "group",
|
|
27
|
+
"aria-label": __props.label
|
|
28
|
+
}, [renderSlot(_ctx.$slots, "default")], 8, _hoisted_1$1);
|
|
28
29
|
};
|
|
29
30
|
}
|
|
30
31
|
});
|
package/dist/Badge/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as BadgeVariantMap, n as BadgeProps, r as BadgeVariant, t as _default } from "../index-
|
|
1
|
+
import { i as BadgeVariantMap, n as BadgeProps, r as BadgeVariant, t as _default } from "../index-CuFLztiI.js";
|
|
2
2
|
export { _default as Badge, type BadgeProps, type BadgeVariant, type BadgeVariantMap };
|
package/dist/Badge/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Badge-
|
|
1
|
+
import { t as _sfc_main } from "../Badge-CjDQPF5g.js";
|
|
2
2
|
export { _sfc_main as Badge };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { computed, createElementBlock, createElementVNode, createTextVNode, defineComponent, openBlock, renderSlot, toDisplayString } from "vue";
|
|
2
|
+
import "../styles/badge.css";
|
|
3
|
+
//#region src/Badge/Badge.vue
|
|
4
|
+
const _hoisted_1 = ["data-variant", "title"];
|
|
5
|
+
const _hoisted_2 = { class: "astryx-badge__label" };
|
|
6
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
7
|
+
name: "Badge",
|
|
8
|
+
__name: "Badge",
|
|
9
|
+
props: {
|
|
10
|
+
variant: { default: "neutral" },
|
|
11
|
+
label: {}
|
|
12
|
+
},
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const labelTitle = computed(() => {
|
|
16
|
+
const label = props.label;
|
|
17
|
+
if (typeof label === "number") return String(label);
|
|
18
|
+
if (typeof label === "string" && label.length > 0) return label;
|
|
19
|
+
});
|
|
20
|
+
return (_ctx, _cache) => {
|
|
21
|
+
return openBlock(), createElementBlock("span", {
|
|
22
|
+
class: "astryx-badge",
|
|
23
|
+
"data-variant": __props.variant,
|
|
24
|
+
title: labelTitle.value
|
|
25
|
+
}, [renderSlot(_ctx.$slots, "icon"), createElementVNode("span", _hoisted_2, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])])], 8, _hoisted_1);
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
export { _sfc_main as t };
|
package/dist/Banner/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fr as BannerProps, Ir as BannerSlots, Lr as BannerStatus, Mr as _default, Nr as BannerContainer, Pr as BannerEmits } from "../index-DeOftUMq.js";
|
|
2
2
|
export { _default as Banner, type BannerContainer, type BannerEmits, type BannerProps, type BannerSlots, type BannerStatus };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { _default as BreadcrumbItem, type BreadcrumbItemProps, _default$1 as Breadcrumbs, type BreadcrumbsProps, type BreadcrumbsVariant };
|
|
1
|
+
import { a as BreadcrumbsProps, i as BreadcrumbMenuOption, n as _default, o as BreadcrumbsVariant, r as BreadcrumbItemProps, t as _default$1 } from "../index-DimuSES0.js";
|
|
2
|
+
export { _default as BreadcrumbItem, type BreadcrumbItemProps, type BreadcrumbMenuOption, _default$1 as Breadcrumbs, type BreadcrumbsProps, type BreadcrumbsVariant };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../Breadcrumbs-
|
|
1
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../Breadcrumbs-C97HmjkC.js";
|
|
2
2
|
export { _sfc_main as BreadcrumbItem, _sfc_main$1 as Breadcrumbs };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as _sfc_main$2 } from "./Icon-Bku25g_K.js";
|
|
2
|
+
import { t as _sfc_main$3 } from "./DropdownMenu-8G0B1UND.js";
|
|
3
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, inject, mergeProps, normalizeClass, openBlock, provide, renderSlot, toDisplayString, withCtx } from "vue";
|
|
2
4
|
import "../styles/breadcrumbs.css";
|
|
3
5
|
//#region src/Breadcrumbs/context.ts
|
|
4
6
|
const breadcrumbContextKey = Symbol("breadcrumbContext");
|
|
@@ -8,16 +10,21 @@ const _hoisted_1$1 = {
|
|
|
8
10
|
class: "astryx-breadcrumb-item__separator",
|
|
9
11
|
"aria-hidden": "true"
|
|
10
12
|
};
|
|
11
|
-
const _hoisted_2$1 = ["
|
|
13
|
+
const _hoisted_2$1 = ["aria-current"];
|
|
12
14
|
const _hoisted_3 = {
|
|
13
15
|
key: 0,
|
|
14
16
|
class: "astryx-breadcrumb-item__icon"
|
|
15
17
|
};
|
|
16
|
-
const _hoisted_4 =
|
|
18
|
+
const _hoisted_4 = ["href"];
|
|
19
|
+
const _hoisted_5 = {
|
|
17
20
|
key: 0,
|
|
18
21
|
class: "astryx-breadcrumb-item__icon"
|
|
19
22
|
};
|
|
20
|
-
const
|
|
23
|
+
const _hoisted_6 = {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: "astryx-breadcrumb-item__icon"
|
|
26
|
+
};
|
|
27
|
+
const _hoisted_7 = {
|
|
21
28
|
key: 0,
|
|
22
29
|
class: "astryx-breadcrumb-item__icon"
|
|
23
30
|
};
|
|
@@ -25,7 +32,9 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
25
32
|
__name: "BreadcrumbItem",
|
|
26
33
|
props: {
|
|
27
34
|
href: {},
|
|
28
|
-
isCurrent: { type: Boolean }
|
|
35
|
+
isCurrent: { type: Boolean },
|
|
36
|
+
menu: {},
|
|
37
|
+
menuSize: {}
|
|
29
38
|
},
|
|
30
39
|
emits: ["click"],
|
|
31
40
|
setup(__props, { emit: __emit }) {
|
|
@@ -34,8 +43,11 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
34
43
|
const context = inject(breadcrumbContextKey, void 0);
|
|
35
44
|
const variant = computed(() => context?.variant.value ?? "default");
|
|
36
45
|
const separator = computed(() => context?.separator.value ?? "/");
|
|
46
|
+
const hasMenu = computed(() => props.menu != null);
|
|
37
47
|
const classes = computed(() => ["astryx-breadcrumb-item", `astryx-breadcrumb-item--variant-${variant.value}`]);
|
|
38
48
|
const contentClasses = computed(() => ["astryx-breadcrumb-item__content", props.isCurrent && "astryx-breadcrumb-item__content--current"]);
|
|
49
|
+
const menuSize = computed(() => props.menuSize ?? (variant.value === "supporting" ? "sm" : "md"));
|
|
50
|
+
if (import.meta.env?.DEV !== false && hasMenu.value && props.href) console.warn("BreadcrumbItem: `menu` and `href` are mutually exclusive; `menu` takes precedence and `href` is ignored.");
|
|
39
51
|
function handleClick(event) {
|
|
40
52
|
if (props.isCurrent) {
|
|
41
53
|
event.preventDefault();
|
|
@@ -44,21 +56,43 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
44
56
|
emit("click", event);
|
|
45
57
|
}
|
|
46
58
|
return (_ctx, _cache) => {
|
|
47
|
-
return openBlock(), createElementBlock("li", { class: normalizeClass(classes.value) }, [createElementVNode("span", _hoisted_1$1, toDisplayString(separator.value), 1),
|
|
59
|
+
return openBlock(), createElementBlock("li", { class: normalizeClass(classes.value) }, [createElementVNode("span", _hoisted_1$1, toDisplayString(separator.value), 1), hasMenu.value ? (openBlock(), createBlock(_sfc_main$3, {
|
|
48
60
|
key: 0,
|
|
61
|
+
button: {
|
|
62
|
+
label: "Menu",
|
|
63
|
+
size: menuSize.value
|
|
64
|
+
},
|
|
65
|
+
items: __props.menu,
|
|
66
|
+
"menu-width": "max-content"
|
|
67
|
+
}, {
|
|
68
|
+
trigger: withCtx((triggerProps) => [createElementVNode("button", mergeProps({
|
|
69
|
+
type: "button",
|
|
70
|
+
class: contentClasses.value
|
|
71
|
+
}, triggerProps, { "aria-current": __props.isCurrent ? "page" : void 0 }), [
|
|
72
|
+
_ctx.$slots.startIcon ? (openBlock(), createElementBlock("span", _hoisted_3, [renderSlot(_ctx.$slots, "startIcon")])) : createCommentVNode("v-if", true),
|
|
73
|
+
renderSlot(_ctx.$slots, "default"),
|
|
74
|
+
createVNode(_sfc_main$2, {
|
|
75
|
+
class: "astryx-breadcrumb-item__chevron",
|
|
76
|
+
icon: "chevronDown",
|
|
77
|
+
size: "sm"
|
|
78
|
+
})
|
|
79
|
+
], 16, _hoisted_2$1)]),
|
|
80
|
+
_: 3
|
|
81
|
+
}, 8, ["button", "items"])) : __props.href && !__props.isCurrent ? (openBlock(), createElementBlock("a", {
|
|
82
|
+
key: 1,
|
|
49
83
|
href: __props.href,
|
|
50
84
|
class: "astryx-breadcrumb-item__content",
|
|
51
85
|
onClick: handleClick
|
|
52
|
-
}, [_ctx.$slots.startIcon ? (openBlock(), createElementBlock("span",
|
|
53
|
-
key:
|
|
86
|
+
}, [_ctx.$slots.startIcon ? (openBlock(), createElementBlock("span", _hoisted_5, [renderSlot(_ctx.$slots, "startIcon")])) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "default")], 8, _hoisted_4)) : !__props.isCurrent ? (openBlock(), createElementBlock("button", {
|
|
87
|
+
key: 2,
|
|
54
88
|
type: "button",
|
|
55
89
|
class: "astryx-breadcrumb-item__content",
|
|
56
90
|
onClick: handleClick
|
|
57
|
-
}, [_ctx.$slots.startIcon ? (openBlock(), createElementBlock("span",
|
|
58
|
-
key:
|
|
91
|
+
}, [_ctx.$slots.startIcon ? (openBlock(), createElementBlock("span", _hoisted_6, [renderSlot(_ctx.$slots, "startIcon")])) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "default")])) : (openBlock(), createElementBlock("span", {
|
|
92
|
+
key: 3,
|
|
59
93
|
class: normalizeClass(contentClasses.value),
|
|
60
94
|
"aria-current": "page"
|
|
61
|
-
}, [_ctx.$slots.startIcon ? (openBlock(), createElementBlock("span",
|
|
95
|
+
}, [_ctx.$slots.startIcon ? (openBlock(), createElementBlock("span", _hoisted_7, [renderSlot(_ctx.$slots, "startIcon")])) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "default")], 2))], 2);
|
|
62
96
|
};
|
|
63
97
|
}
|
|
64
98
|
});
|
package/dist/Button/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as ButtonProps, c as ButtonSizeValue, d as ButtonVariantMap, i as ButtonLinkElement, l as ButtonSlots, n as ButtonElevation, o as ButtonRootElement, r as ButtonEmits, s as ButtonSize, t as ButtonClickAction, u as ButtonVariant } from "../types-WlmsNL1I.js";
|
|
2
|
-
import { t as _default } from "../index-
|
|
2
|
+
import { t as _default } from "../index-Z_onS2lR.js";
|
|
3
3
|
export { _default as Button, _default as default, type ButtonClickAction, type ButtonElevation, type ButtonEmits, type ButtonLinkElement, type ButtonProps, type ButtonRootElement, type ButtonSize, type ButtonSizeValue, type ButtonSlots, type ButtonVariant, type ButtonVariantMap };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ar as ButtonGroupSlots, Or as _default, jr as ButtonGroupOrientation, kr as ButtonGroupProps } from "../index-DeOftUMq.js";
|
|
2
2
|
export { _default as ButtonGroup, _default as default, type ButtonGroupOrientation, type ButtonGroupProps, type ButtonGroupSlots };
|
package/dist/Calendar/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { _default as Calendar, type CalendarEmits, type CalendarProps, type CalendarSlots };
|
|
1
|
+
import { a as CalendarSlots, i as CalendarRangeValue, n as CalendarEmits, r as CalendarProps, t as _default } from "../index-Bgv4ZmBl.js";
|
|
2
|
+
export { _default as Calendar, type CalendarEmits, type CalendarProps, type CalendarRangeValue, type CalendarSlots };
|
package/dist/Calendar/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Calendar-
|
|
1
|
+
import { t as _sfc_main } from "../Calendar-DqC3EDN1.js";
|
|
2
2
|
export { _sfc_main as Calendar };
|