@pantograph/vue 0.6.4 → 0.6.6
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/ActionButton/ActionButton.d.ts +100 -22
- package/dist/ActionButton/{index.es.js → index.js.js} +1 -1
- package/dist/ActionButton/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-BRYxIFQL.js → ActionButton.vue_vue_type_script_setup_true_lang-BbIIyV6t.js} +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-9sHS6TT0.js → ActionButton.vue_vue_type_script_setup_true_lang-OA7L3d0i.js} +4 -4
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/{index.es.js → index.js.js} +1 -1
- package/dist/Avatar/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/Avatar.vue_vue_type_style_index_0_lang-BmH5aQJ1.js +188 -0
- package/dist/Avatar.vue_vue_type_style_index_0_lang-DO7InR4k.js +1 -0
- package/dist/AvatarGroup/AvatarGroup.d.ts +11 -3
- package/dist/AvatarGroup/{index.es.js → index.js.js} +1 -1
- package/dist/AvatarGroup/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/Badge/Badge.d.ts +2 -2
- package/dist/Badge/{index.es.js → index.js.js} +1 -1
- package/dist/Badge/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-LwccxMER.js → Badge.vue_vue_type_script_setup_true_lang-DrLIHHCe.js} +4 -4
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-DzkeQwzH.js → Badge.vue_vue_type_script_setup_true_lang-zP7Q3GsL.js} +1 -1
- package/dist/Base/BaseBadge/BaseBadge.d.ts +14 -5
- package/dist/Base/BaseButton/BaseButton.d.ts +94 -8
- package/dist/Base/Primitive.d.ts +39 -0
- package/dist/Base/Slot.d.ts +6 -0
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-Cr9n5QQC.js +1 -0
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-CHhhflIH.js → BaseBadge.vue_vue_type_style_index_0_lang-DBW85mbj.js} +33 -32
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-BaS_JGCX.js +1 -0
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-D1NHQaTM.js +159 -0
- package/dist/Button/Button.d.ts +108 -30
- package/dist/Button/{index.es.js → index.js.js} +1 -1
- package/dist/Button/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-DNpM6F5j.js → Button.vue_vue_type_script_setup_true_lang-BjTrpQi-.js} +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-DMOtqE4k.js → Button.vue_vue_type_script_setup_true_lang-CVePGLAE.js} +4 -4
- package/dist/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/ButtonGroup/{index.es.js → index.js.js} +1 -1
- package/dist/{ButtonGroup.vue_vue_type_script_setup_true_lang-DBq7tYaO.js → ButtonGroup.vue_vue_type_script_setup_true_lang-CdSgBboA.js} +3 -3
- package/dist/Checkbox/Checkbox.d.ts +8 -7
- package/dist/Checkbox/index.d.ts +1 -1
- package/dist/Checkbox/{index.es.js → index.js.js} +1 -1
- package/dist/Checkbox/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-DsMbQaMY.js +1 -0
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-GqiihInu.js +218 -0
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +5 -4
- package/dist/CheckboxGroup/{index.es.js → index.js.js} +1 -1
- package/dist/CheckboxGroup/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/ConfigProvider/index.d.ts +4 -3
- package/dist/ConfigProvider/index.js.js +10 -0
- package/dist/ConfigProvider/index.umd.cjs.js +1 -0
- package/dist/ConfigProvider/utils.d.ts +4 -3
- package/dist/Divider/Divider.d.ts +1 -1
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Divider/{index.es.js → index.js.js} +1 -1
- package/dist/{Divider.vue_vue_type_style_index_0_lang-SBMg48di.js → Divider.vue_vue_type_style_index_0_lang-B_4XMyuu.js} +5 -5
- package/dist/FloatButton/FloatButton.d.ts +108 -30
- package/dist/FloatButton/{index.es.js → index.js.js} +1 -1
- package/dist/FloatButton/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-BD8KDs-3.js → FloatButton.vue_vue_type_script_setup_true_lang-CtPvptQe.js} +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-CLL_AR_I.js → FloatButton.vue_vue_type_script_setup_true_lang-Mq9SbxDf.js} +4 -4
- package/dist/GraphicalObject/GraphicalObject.d.ts +2 -2
- package/dist/GraphicalObject/{index.es.js → index.js.js} +1 -1
- package/dist/GraphicalObject/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-DqfDSUXz.js → GraphicalObject.vue_vue_type_script_setup_true_lang-CIVx-hL6.js} +4 -4
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-BKYCNg9l.js → GraphicalObject.vue_vue_type_script_setup_true_lang-DnyJeR9h.js} +1 -1
- package/dist/Icon/Icon.d.ts +1 -1
- package/dist/Icon/index.d.ts +1 -1
- package/dist/Icon/{index.es.js → index.js.js} +1 -1
- package/dist/Icon/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-BfPcw6PU.js +48 -0
- package/dist/Icon.vue_vue_type_style_index_0_lang-BvHCdzZP.js +1 -0
- package/dist/IconButton/IconButton.d.ts +108 -30
- package/dist/IconButton/{index.es.js → index.js.js} +1 -1
- package/dist/IconButton/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-DVbz9uji.js → IconButton.vue_vue_type_script_setup_true_lang-CuxyU51W.js} +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-DCrUZOP9.js → IconButton.vue_vue_type_script_setup_true_lang-PHB94Ft0.js} +4 -4
- package/dist/Image/index.d.ts +1 -1
- package/dist/Image/index.js.js +118 -0
- package/dist/Image/index.umd.cjs.js +1 -0
- package/dist/IndentLevel/IndentLevel.d.ts +1 -1
- package/dist/IndentLevel/index.d.ts +1 -1
- package/dist/IndentLevel/{index.es.js → index.js.js} +1 -1
- package/dist/IndentLevel/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-BjBc3Lu1.js +104 -0
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-D5yeMZLa.js +1 -0
- package/dist/Indicator/Indicator.d.ts +2 -2
- package/dist/Indicator/{index.es.js → index.js.js} +1 -1
- package/dist/Indicator/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-ODS_K3jA.js +34 -0
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-nav_IgdR.js +1 -0
- package/dist/Kbd/Kbd.d.ts +1 -1
- package/dist/Kbd/{index.es.js → index.js.js} +1 -1
- package/dist/Kbd/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/{Kbd.vue_vue_type_style_index_0_lang-Br1eygIf.js → Kbd.vue_vue_type_style_index_0_lang-BqEaW_kJ.js} +1 -1
- package/dist/{Kbd.vue_vue_type_style_index_0_lang-D5D9tTsQ.js → Kbd.vue_vue_type_style_index_0_lang-DbtLbpq-.js} +13 -13
- package/dist/Menu/Menu.d.ts +83 -0
- package/dist/Menu/Menu.model.d.ts +2 -0
- package/dist/Menu/index.d.ts +2 -0
- package/dist/Menu/index.js.js +8 -0
- package/dist/Menu/index.umd.cjs.js +1 -0
- package/dist/Menu.vue_vue_type_style_index_0_lang-CSEBoubK.js +1 -0
- package/dist/Menu.vue_vue_type_style_index_0_lang-DvZS9q1c.js +477 -0
- package/dist/MenuItem/MenuItem.d.ts +40 -0
- package/dist/MenuItem/MenuItemContent.d.ts +50 -0
- package/dist/MenuItem/index.d.ts +2 -1
- package/dist/MenuItem/index.js.js +6 -0
- package/dist/MenuItem/index.umd.cjs.js +1 -0
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/{index.es.js → index.js.js} +1 -1
- package/dist/Popover/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-CjdTaqQ6.js +138 -0
- package/dist/Popover.vue_vue_type_style_index_0_lang-RXHBSX6d.js +1 -0
- package/dist/RadioGroup/RadioGroupItem.d.ts +4 -1
- package/dist/RadioGroup/{index.es.js → index.js.js} +7 -7
- package/dist/RadioGroup/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/Shortcut/{index.es.js → index.js.js} +7 -7
- package/dist/Shortcut/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/Skeleton/Skeleton.d.ts +3 -3
- package/dist/Skeleton/index.d.ts +1 -1
- package/dist/Skeleton/{index.es.js → index.js.js} +1 -1
- package/dist/{Skeleton.vue_vue_type_style_index_0_lang-BgVkwMj4.js → Skeleton.vue_vue_type_style_index_0_lang-B6bCkLlD.js} +6 -6
- package/dist/Spinner/Spinner.d.ts +11 -2
- package/dist/Spinner/index.d.ts +1 -1
- package/dist/Spinner/{index.es.js → index.js.js} +1 -1
- package/dist/Spinner/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/dist/Spinner.vue_vue_type_style_index_0_lang-CxNO28J7.js +1 -0
- package/dist/{Spinner.vue_vue_type_style_index_0_lang-BOXr-RUw.js → Spinner.vue_vue_type_style_index_0_lang-D6nB06Z8.js} +10 -10
- package/dist/Switch/Switch.d.ts +21 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/{index.es.js → index.js.js} +33 -33
- package/dist/Switch/index.umd.cjs.js +1 -0
- package/dist/Tree/Tree.model.d.ts +4 -4
- package/dist/Tree/index.d.ts +1 -1
- package/dist/Tree/index.js.js +575 -0
- package/dist/Tree/index.umd.cjs.js +1 -0
- package/dist/{class-DyU-Ox8D.js → class-DziTeW9B.js} +3 -3
- package/dist/cloneDeep-mcJFBKk6.js +1 -0
- package/dist/cloneDeep-v62P9_F-.js +8 -0
- package/dist/element-CddU1vUY.js +23 -0
- package/dist/element-uBbpeYVo.js +1 -0
- package/dist/index-BCJFpT7y.js +1 -0
- package/dist/index-DgVKQuPc.js +124 -0
- package/dist/index.d.ts +22 -22
- package/dist/index.js.js +71 -0
- package/dist/index.umd.cjs.js +1 -0
- package/dist/isArray-B7z6QoM5.js +1 -0
- package/dist/isArray-WzO_os3q.js +4 -0
- package/dist/isNumber-DlKYWCo3.js +8 -0
- package/dist/isNumber-eaDdxhkG.js +1 -0
- package/dist/isObjectLike-BatpeCIi.js +29 -0
- package/dist/isObjectLike-kO9e4B7g.js +1 -0
- package/dist/omit-1sFJ_mId.js +1 -0
- package/dist/omit-Cxaoa8oo.js +747 -0
- package/dist/pick-DKW6-a-5.js +52 -0
- package/dist/pick-DojrVogK.js +1 -0
- package/dist/style/index.css +1 -1
- package/dist/utils/element.d.ts +8 -4
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/{index.es.js → index.js.js} +1 -1
- package/dist/utils/{index.cjs.js → index.umd.cjs.js} +1 -1
- package/package.json +78 -78
- package/dist/Avatar/Avatar.d.ts +0 -48
- package/dist/Avatar.vue_vue_type_style_index_0_lang-D72SN0zC.js +0 -1
- package/dist/Avatar.vue_vue_type_style_index_0_lang-RziDt5Qs.js +0 -188
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-B1Va5X21.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-BLGNTber.js +0 -151
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-HdsdAsR3.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-BQeNpCYy.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-gsOfYgHe.js +0 -245
- package/dist/ConfigProvider/index.cjs.js +0 -1
- package/dist/ConfigProvider/index.es.js +0 -112
- package/dist/Icon.vue_vue_type_style_index_0_lang-D-jaUivh.js +0 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-W7sippxn.js +0 -48
- package/dist/Image/index.cjs.js +0 -1
- package/dist/Image/index.es.js +0 -117
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-B_x8tshB.js +0 -1
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-jaoDj9GA.js +0 -103
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-D2iFmRna.js +0 -1
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-jv3IND51.js +0 -34
- package/dist/MenuItem/index.cjs.js +0 -1
- package/dist/MenuItem/index.es.js +0 -1
- package/dist/Popover/Popover.d.ts +0 -45
- package/dist/Popover.vue_vue_type_style_index_0_lang-BZMSPrfB.js +0 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-DTr33v9y.js +0 -129
- package/dist/Spinner.vue_vue_type_style_index_0_lang-DW5QRtWO.js +0 -1
- package/dist/Switch/index.cjs.js +0 -1
- package/dist/Tabs/Tab.model.d.ts +0 -2
- package/dist/Tabs/index.cjs.js +0 -1
- package/dist/Tabs/index.d.ts +0 -1
- package/dist/Tabs/index.es.js +0 -4
- package/dist/Tag/Tag.model.d.ts +0 -4
- package/dist/Tag/index.cjs.js +0 -1
- package/dist/Tag/index.d.ts +0 -1
- package/dist/Tag/index.es.js +0 -21
- package/dist/Tree/index.cjs.js +0 -1
- package/dist/Tree/index.es.js +0 -458
- package/dist/element-BSTINJi_.js +0 -1
- package/dist/element-Cf07a63h.js +0 -22
- package/dist/index.cjs.js +0 -1
- package/dist/index.es.js +0 -66
- package/dist/omit-C_ZXwm9T.js +0 -1
- package/dist/omit-DtumnYm5.js +0 -760
- /package/dist/ButtonGroup/{index.cjs.js → index.umd.cjs.js} +0 -0
- /package/dist/Divider/{index.cjs.js → index.umd.cjs.js} +0 -0
- /package/dist/Skeleton/{index.cjs.js → index.umd.cjs.js} +0 -0
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { PrimitiveProps } from 'radix-vue';
|
|
2
2
|
import { ButtonColor, ButtonSize, ButtonType, ButtonVariant } from './BaseButton.model';
|
|
3
3
|
import { Class } from '../../types';
|
|
4
|
+
import { BadgeSize } from '../BaseBadge/BaseBadge.model';
|
|
5
|
+
import { BaseBadgeSlots } from '../BaseBadge/BaseBadge';
|
|
4
6
|
export interface BaseButtonProps extends Omit<PrimitiveProps, 'asChild'> {
|
|
5
7
|
class?: Class;
|
|
6
8
|
text?: string | number;
|
|
@@ -18,13 +20,60 @@ export interface BaseButtonProps extends Omit<PrimitiveProps, 'asChild'> {
|
|
|
18
20
|
postIcon?: string;
|
|
19
21
|
}
|
|
20
22
|
export interface BaseButtonSlots {
|
|
21
|
-
default?: (
|
|
22
|
-
preIcon?: (
|
|
23
|
-
icon?: (
|
|
24
|
-
badge?: (props
|
|
25
|
-
|
|
23
|
+
default?: () => never;
|
|
24
|
+
preIcon?: () => never;
|
|
25
|
+
icon?: () => never;
|
|
26
|
+
badge?: (props?: {
|
|
27
|
+
color: 'gray' | 'primary';
|
|
28
|
+
size: BadgeSize;
|
|
29
|
+
}) => never;
|
|
30
|
+
badgeText?: () => never;
|
|
31
|
+
badgeIcon?: BaseBadgeSlots['icon'];
|
|
32
|
+
postIcon?: () => never;
|
|
26
33
|
}
|
|
27
|
-
declare function __VLS_template():
|
|
34
|
+
declare function __VLS_template(): {
|
|
35
|
+
attrs: Partial<{}>;
|
|
36
|
+
slots: Readonly<BaseButtonSlots> & BaseButtonSlots;
|
|
37
|
+
refs: {
|
|
38
|
+
buttonRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
39
|
+
asChild: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
as: {
|
|
44
|
+
type: import('vue').PropType<import('radix-vue').AsTag | import('vue').Component>;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
}>>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
}>, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
50
|
+
asChild: boolean;
|
|
51
|
+
as: import('radix-vue').AsTag | import('vue').Component;
|
|
52
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
53
|
+
P: {};
|
|
54
|
+
B: {};
|
|
55
|
+
D: {};
|
|
56
|
+
C: {};
|
|
57
|
+
M: {};
|
|
58
|
+
Defaults: {};
|
|
59
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
60
|
+
asChild: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
as: {
|
|
65
|
+
type: import('vue').PropType<import('radix-vue').AsTag | import('vue').Component>;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
}>>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
69
|
+
[key: string]: any;
|
|
70
|
+
}>, {}, {}, {}, {
|
|
71
|
+
asChild: boolean;
|
|
72
|
+
as: import('radix-vue').AsTag | import('vue').Component;
|
|
73
|
+
}> | null;
|
|
74
|
+
};
|
|
75
|
+
rootEl: any;
|
|
76
|
+
};
|
|
28
77
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
29
78
|
declare const __VLS_component: import('vue').DefineComponent<BaseButtonProps, {
|
|
30
79
|
focus(): void;
|
|
@@ -32,8 +81,45 @@ declare const __VLS_component: import('vue').DefineComponent<BaseButtonProps, {
|
|
|
32
81
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BaseButtonProps> & Readonly<{}>, {
|
|
33
82
|
type: ButtonType;
|
|
34
83
|
color: ButtonColor;
|
|
35
|
-
as: import('radix-vue'
|
|
36
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false,
|
|
84
|
+
as: import('radix-vue').AsTag | import('vue').Component;
|
|
85
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
86
|
+
buttonRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
87
|
+
asChild: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
91
|
+
as: {
|
|
92
|
+
type: import('vue').PropType<import('radix-vue').AsTag | import('vue').Component>;
|
|
93
|
+
default: string;
|
|
94
|
+
};
|
|
95
|
+
}>>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
96
|
+
[key: string]: any;
|
|
97
|
+
}>, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
98
|
+
asChild: boolean;
|
|
99
|
+
as: import('radix-vue').AsTag | import('vue').Component;
|
|
100
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
101
|
+
P: {};
|
|
102
|
+
B: {};
|
|
103
|
+
D: {};
|
|
104
|
+
C: {};
|
|
105
|
+
M: {};
|
|
106
|
+
Defaults: {};
|
|
107
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
108
|
+
asChild: {
|
|
109
|
+
type: BooleanConstructor;
|
|
110
|
+
default: boolean;
|
|
111
|
+
};
|
|
112
|
+
as: {
|
|
113
|
+
type: import('vue').PropType<import('radix-vue').AsTag | import('vue').Component>;
|
|
114
|
+
default: string;
|
|
115
|
+
};
|
|
116
|
+
}>>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
117
|
+
[key: string]: any;
|
|
118
|
+
}>, {}, {}, {}, {
|
|
119
|
+
asChild: boolean;
|
|
120
|
+
as: import('radix-vue').AsTag | import('vue').Component;
|
|
121
|
+
}> | null;
|
|
122
|
+
}, any>;
|
|
37
123
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
38
124
|
export default _default;
|
|
39
125
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Component, PropType } from 'vue';
|
|
2
|
+
export type AsTag = 'a' | 'button' | 'div' | 'form' | 'h2' | 'h3' | 'img' | 'input' | 'label' | 'li' | 'nav' | 'ol' | 'p' | 'span' | 'svg' | 'ul' | 'template' | ({} & string);
|
|
3
|
+
export interface PrimitiveProps {
|
|
4
|
+
/**
|
|
5
|
+
* Change the Menu rendered element for the one passed as a child, merging their props and behavior.
|
|
6
|
+
*
|
|
7
|
+
* Read our [Composition](https://www.radix-vue.com/guides/composition.html) guide for more details.
|
|
8
|
+
*/
|
|
9
|
+
asChild?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* The element or component this component should render as. Can be overwritten by `asChild`.
|
|
12
|
+
* @defaultValue "div"
|
|
13
|
+
*/
|
|
14
|
+
as?: AsTag | Component;
|
|
15
|
+
}
|
|
16
|
+
export declare const Primitive: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
17
|
+
asChild: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
as: {
|
|
22
|
+
type: PropType<AsTag | Component>;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
28
|
+
asChild: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
as: {
|
|
33
|
+
type: PropType<AsTag | Component>;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
}>> & Readonly<{}>, {
|
|
37
|
+
asChild: boolean;
|
|
38
|
+
as: Component | AsTag;
|
|
39
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
export declare const Slot: import('vue').DefineComponent<{}, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}> | VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}>[] | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),C=require("radix-vue"),o=require("./class-CjZYGZDW.js"),z=require("class-variance-authority"),k=require("./options-B4iSAKol.js");require("@iconify/vue");const V=require("./Icon.vue_vue_type_style_index_0_lang-BvHCdzZP.js"),l=["2xsm","xsm","sm","md","tiny","tinier"],c=["rect","pill","minify"],p=["primary","blue","red","orange","yellow","lime","violet","gray","teal","green","sky","cyan","pink","amber","fuchsia"],u=["bold","subtle"],S=e.defineComponent({...k.getComponentOptions("BaseBadge"),__name:"BaseBadge",props:{size:{default:"md"},class:{},text:{},color:{default:"primary"},type:{default:"pill"},mode:{default:"bold"},icon:{},as:{default:"div"}},setup(f){const a=o.getBemBlock("badge"),s=f,d=[...p,"none"],y=z.cva(a,{variants:{size:o.generateVariantClassList(l,a),type:o.generateVariantClassList(c,a),color:o.generateVariantClassList(d,a),mode:o.generateVariantClassList(u,a),text:o.generateVariantClassList("text",a),icon:o.generateVariantClassList("icon",a)}}),i=e.useSlots(),n=e.computed(()=>c.includes(s.type)?s.type:"pill"),g=e.computed(()=>!!(s.text||i.default)),v=e.computed(()=>!!(s.icon||i.icon)),m=e.computed(()=>{let t=l.includes(s.size)?s.size:"md";return t==="sm"&&n.value!=="rect"?n.value==="minify"?t="tiny":n.value==="pill"&&(t="md"):n.value==="minify"&&!["tiny","tinier"].includes(t)?t="tiny":n.value!=="minify"&&["tiny","tinier"].includes(t)&&(t="md"),t}),B=e.computed(()=>{switch(m.value){case"sm":return"xsm";case"xsm":return"2xsm";case"2xsm":return"3xsm";case"md":default:return"sm"}}),_=e.computed(()=>{const t=u.includes(s.mode)?s.mode:"bold";let r=d.includes(s.color)?s.color:"primary";return r==="none"&&n.value!=="rect"&&(r="primary"),{size:m.value,color:r,mode:t,type:n.value,text:g.value,icon:v.value}}),x=e.computed(()=>{const t=s.icon??i.icon;return s.type==="rect"&&(i.default||s.text)?!1:t});return(t,r)=>(e.openBlock(),e.createBlock(e.unref(C.Primitive),{as:t.as,class:e.normalizeClass([e.unref(y)(_.value),s.class])},{default:e.withCtx(()=>[n.value!=="minify"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[x.value?(e.openBlock(),e.createBlock(e.unref(V._sfc_main),{key:0,icon:t.icon,size:B.value},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"icon")]),_:3},8,["icon","size"])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.text),1)])],64)):e.createCommentVNode("",!0)]),_:3},8,["as","class"]))}});exports.BadgeColors=p;exports.BadgeModes=u;exports.BadgeSizes=l;exports.BadgeTypes=c;exports._sfc_main=S;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { defineComponent as h, useSlots as w, computed as
|
|
1
|
+
import { defineComponent as h, useSlots as w, computed as i, createBlock as d, openBlock as r, unref as c, normalizeClass as V, withCtx as p, createElementBlock as $, createCommentVNode as f, Fragment as I, renderSlot as y, createTextVNode as N, toDisplayString as P } from "vue";
|
|
2
2
|
import { Primitive as T } from "radix-vue";
|
|
3
|
-
import { g as
|
|
3
|
+
import { g as D, a as n } from "./class-DziTeW9B.js";
|
|
4
4
|
import { cva as E } from "class-variance-authority";
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
5
|
+
import { g as F } from "./options-JBqnVZUl.js";
|
|
6
|
+
import "@iconify/vue";
|
|
7
|
+
import { _ as L } from "./Icon.vue_vue_type_style_index_0_lang-BfPcw6PU.js";
|
|
7
8
|
const v = ["2xsm", "xsm", "sm", "md", "tiny", "tinier"], g = ["rect", "pill", "minify"], M = [
|
|
8
9
|
"primary",
|
|
9
10
|
"blue",
|
|
@@ -20,8 +21,8 @@ const v = ["2xsm", "xsm", "sm", "md", "tiny", "tinier"], g = ["rect", "pill", "m
|
|
|
20
21
|
"pink",
|
|
21
22
|
"amber",
|
|
22
23
|
"fuchsia"
|
|
23
|
-
], B = ["bold", "subtle"],
|
|
24
|
-
...
|
|
24
|
+
], B = ["bold", "subtle"], K = /* @__PURE__ */ h({
|
|
25
|
+
...F("BaseBadge"),
|
|
25
26
|
__name: "BaseBadge",
|
|
26
27
|
props: {
|
|
27
28
|
size: { default: "md" },
|
|
@@ -34,20 +35,20 @@ const v = ["2xsm", "xsm", "sm", "md", "tiny", "tinier"], g = ["rect", "pill", "m
|
|
|
34
35
|
as: { default: "div" }
|
|
35
36
|
},
|
|
36
37
|
setup(x) {
|
|
37
|
-
const o = D("badge"), t = x,
|
|
38
|
+
const o = D("badge"), t = x, m = [...M, "none"], z = E(o, {
|
|
38
39
|
variants: {
|
|
39
|
-
size:
|
|
40
|
-
type:
|
|
41
|
-
color:
|
|
42
|
-
mode:
|
|
43
|
-
text:
|
|
44
|
-
icon:
|
|
40
|
+
size: n(v, o),
|
|
41
|
+
type: n(g, o),
|
|
42
|
+
color: n(m, o),
|
|
43
|
+
mode: n(B, o),
|
|
44
|
+
text: n("text", o),
|
|
45
|
+
icon: n("icon", o)
|
|
45
46
|
}
|
|
46
|
-
}), a = w(), s =
|
|
47
|
+
}), a = w(), s = i(() => g.includes(t.type) ? t.type : "pill"), _ = i(() => !!(t.text || a.default)), C = i(() => !!(t.icon || a.icon)), u = i(() => {
|
|
47
48
|
let e = v.includes(t.size) ? t.size : "md";
|
|
48
49
|
return e === "sm" && s.value !== "rect" ? s.value === "minify" ? e = "tiny" : s.value === "pill" && (e = "md") : s.value === "minify" && !["tiny", "tinier"].includes(e) ? e = "tiny" : s.value !== "minify" && ["tiny", "tinier"].includes(e) && (e = "md"), e;
|
|
49
|
-
}),
|
|
50
|
-
switch (
|
|
50
|
+
}), b = i(() => {
|
|
51
|
+
switch (u.value) {
|
|
51
52
|
case "sm":
|
|
52
53
|
return "xsm";
|
|
53
54
|
case "xsm":
|
|
@@ -58,41 +59,41 @@ const v = ["2xsm", "xsm", "sm", "md", "tiny", "tinier"], g = ["rect", "pill", "m
|
|
|
58
59
|
default:
|
|
59
60
|
return "sm";
|
|
60
61
|
}
|
|
61
|
-
}), k =
|
|
62
|
+
}), k = i(() => {
|
|
62
63
|
const e = B.includes(t.mode) ? t.mode : "bold";
|
|
63
|
-
let l =
|
|
64
|
+
let l = m.includes(t.color) ? t.color : "primary";
|
|
64
65
|
return l === "none" && s.value !== "rect" && (l = "primary"), {
|
|
65
|
-
size:
|
|
66
|
+
size: u.value,
|
|
66
67
|
color: l,
|
|
67
68
|
mode: e,
|
|
68
69
|
type: s.value,
|
|
69
70
|
text: _.value,
|
|
70
|
-
icon:
|
|
71
|
+
icon: C.value
|
|
71
72
|
};
|
|
72
|
-
}), S =
|
|
73
|
+
}), S = i(() => {
|
|
73
74
|
const e = t.icon ?? a.icon;
|
|
74
75
|
return t.type === "rect" && (a.default || t.text) ? !1 : e;
|
|
75
76
|
});
|
|
76
|
-
return (e, l) => (r(),
|
|
77
|
+
return (e, l) => (r(), d(c(T), {
|
|
77
78
|
as: e.as,
|
|
78
|
-
class: V([
|
|
79
|
+
class: V([c(z)(k.value), t.class])
|
|
79
80
|
}, {
|
|
80
|
-
default:
|
|
81
|
+
default: p(() => [
|
|
81
82
|
s.value !== "minify" ? (r(), $(I, { key: 0 }, [
|
|
82
|
-
S.value ? (r(),
|
|
83
|
+
S.value ? (r(), d(c(L), {
|
|
83
84
|
key: 0,
|
|
84
85
|
icon: e.icon,
|
|
85
|
-
size:
|
|
86
|
+
size: b.value
|
|
86
87
|
}, {
|
|
87
|
-
default:
|
|
88
|
-
|
|
88
|
+
default: p(() => [
|
|
89
|
+
y(e.$slots, "icon")
|
|
89
90
|
]),
|
|
90
91
|
_: 3
|
|
91
|
-
}, 8, ["icon", "size"])) :
|
|
92
|
-
|
|
92
|
+
}, 8, ["icon", "size"])) : f("", !0),
|
|
93
|
+
y(e.$slots, "default", {}, () => [
|
|
93
94
|
N(P(e.text), 1)
|
|
94
95
|
])
|
|
95
|
-
], 64)) :
|
|
96
|
+
], 64)) : f("", !0)
|
|
96
97
|
]),
|
|
97
98
|
_: 3
|
|
98
99
|
}, 8, ["as", "class"]));
|
|
@@ -100,7 +101,7 @@ const v = ["2xsm", "xsm", "sm", "md", "tiny", "tinier"], g = ["rect", "pill", "m
|
|
|
100
101
|
});
|
|
101
102
|
export {
|
|
102
103
|
v as B,
|
|
103
|
-
|
|
104
|
+
K as _,
|
|
104
105
|
g as a,
|
|
105
106
|
M as b,
|
|
106
107
|
B as c
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),b=require("radix-vue"),v=require("./Icon.vue_vue_type_style_index_0_lang-BvHCdzZP.js"),k=require("./Spinner.vue_vue_type_style_index_0_lang-CxNO28J7.js"),V=require("./Badge.vue_vue_type_script_setup_true_lang-zP7Q3GsL.js"),s=require("./ButtonGroup.vue_vue_type_script_setup_true_lang-BSj1Y1j2.js"),n=require("./class-CjZYGZDW.js"),S=require("class-variance-authority"),x=require("./options-B4iSAKol.js"),B="2xsm",h=e.defineComponent({...x.getComponentOptions("BaseButton"),__name:"BaseButton",props:{class:{},text:{},size:{},color:{default:"primary"},type:{default:"fill"},variant:{},loading:{type:Boolean},action:{type:Boolean},active:{type:Boolean},badgeText:{},badgeIcon:{},icon:{},preIcon:{},postIcon:{},as:{default:"button"}},setup(y,{expose:_}){const o=y,a=n.getBemBlock("button"),z=S.cva(a,{variants:{size:n.generateVariantClassList(s.ButtonSizes,a),type:n.generateVariantClassList(s.ButtonTypes,a),color:n.generateVariantClassList(s.ButtonColors,a),variant:n.generateVariantClassList(s.ButtonVariants,a),action:n.generateVariantClassList("action",a),active:n.generateVariantClassList("active",a),text:n.generateVariantClassList("text",a),preIcon:n.generateVariantClassList("preIcon",a),postIcon:n.generateVariantClassList("postIcon",a),loading:n.generateVariantClassList("loading",a)}}),f=s.injectButtonGroupContext({size:e.computed(()=>o.size),variant:e.computed(()=>o.variant)}),l=e.computed(()=>o.variant??f.variant.value??"simple"),i=e.computed(()=>["icon","float"].includes(l.value)),r=e.useSlots(),I=e.computed(()=>{let t=s.ButtonTypes.includes(o.type)?o.type:"fill";const c=o.size??f.size.value,g=c&&s.ButtonSizes.includes(c)?c:"md";let u=o.color&&s.ButtonColors.includes(o.color)?o.color:"primary",p=l.value&&s.ButtonVariants.includes(l.value)?l.value:"simple";return o.action?(p==="float"&&(p="icon"),t==="fill"&&(t="outline"),u=void 0):p==="float"&&(t==="ghost"&&(t="fill"),["primary","gray"].includes(u)||(u="primary")),{size:g,type:t,color:u,variant:p,action:o.action,active:o.active,loading:o.loading,text:!i.value&&!!(o.text||r.default),preIcon:!i.value&&!!(o.preIcon||r.preIcon),postIcon:!i.value&&!!(o.postIcon||r.postIcon)}}),d=e.computed(()=>{switch(o.size){case"sm":return"3xsm";default:return"2xsm"}}),C=e.computed(()=>{switch(o.size){case"sm":return"3xsm";case"lg":return"xsm";case"md":default:return"2xsm"}}),m=e.ref();return _({focus(){var t;(t=m.value)==null||t.focus()},blur(){var t;(t=m.value)==null||t.blur()}}),(t,c)=>(e.openBlock(),e.createBlock(e.unref(b.Primitive),{as:t.as,class:e.normalizeClass([e.unref(z)(I.value),o.class]),tabindex:"0",ref_key:"buttonRef",ref:m},{default:e.withCtx(()=>[t.loading?(e.openBlock(),e.createBlock(k._sfc_main,{key:1,class:e.normalizeClass(e.unref(n.getBemElement)(e.unref(a),"loading")),size:d.value},null,8,["class","size"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(t.preIcon||r.preIcon)&&!i.value?(e.openBlock(),e.createBlock(v._sfc_main,{key:0,icon:t.preIcon,size:d.value},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"preIcon")]),_:3},8,["icon","size"])):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createBlock(v._sfc_main,{key:1,icon:t.icon,size:C.value},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"icon")]),_:3},8,["icon","size"])):e.renderSlot(t.$slots,"default",{key:2},()=>[e.createTextVNode(e.toDisplayString(t.text),1)]),t.action&&t.active&&!i.value&&(t.badgeText||r.badgeText||t.badgeIcon||r.badgeIcon)?e.renderSlot(t.$slots,"badge",e.normalizeProps(e.mergeProps({key:3},{color:t.$attrs.disabled?"gray":"primary",size:B})),()=>[e.createVNode(V._sfc_main,{text:t.badgeText,icon:t.badgeIcon,color:t.$attrs.disabled?"gray":"primary",size:B},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"badgeText")]),icon:e.withCtx(g=>[e.renderSlot(t.$slots,"badgeIcon",e.normalizeProps(e.guardReactiveProps(g)))]),_:3},8,["text","icon","color"])]):e.createCommentVNode("",!0),(t.postIcon||r.postIcon)&&!i.value?(e.openBlock(),e.createBlock(v._sfc_main,{key:4,icon:t.postIcon,size:d.value},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"postIcon")]),_:3},8,["icon","size"])):e.createCommentVNode("",!0)],64))]),_:3},8,["as","class"]))}});exports._sfc_main=h;
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { defineComponent as E, computed as i, useSlots as j, ref as A, createBlock as u, openBlock as l, unref as v, normalizeClass as k, withCtx as c, createElementBlock as D, Fragment as F, createCommentVNode as z, renderSlot as r, createTextVNode as G, toDisplayString as L, normalizeProps as $, mergeProps as O, createVNode as _, guardReactiveProps as q } from "vue";
|
|
2
|
+
import { Primitive as H } from "radix-vue";
|
|
3
|
+
import { _ as b } from "./Icon.vue_vue_type_style_index_0_lang-BfPcw6PU.js";
|
|
4
|
+
import { _ as J } from "./Spinner.vue_vue_type_style_index_0_lang-D6nB06Z8.js";
|
|
5
|
+
import { _ as K } from "./Badge.vue_vue_type_script_setup_true_lang-DrLIHHCe.js";
|
|
6
|
+
import { i as M, a as C, c as S, b as T, B as h } from "./ButtonGroup.vue_vue_type_script_setup_true_lang-CdSgBboA.js";
|
|
7
|
+
import { g as Q, a, b as U } from "./class-DziTeW9B.js";
|
|
8
|
+
import { cva as W } from "class-variance-authority";
|
|
9
|
+
import { g as X } from "./options-JBqnVZUl.js";
|
|
10
|
+
const x = "2xsm", re = /* @__PURE__ */ E({
|
|
11
|
+
...X("BaseButton"),
|
|
12
|
+
__name: "BaseButton",
|
|
13
|
+
props: {
|
|
14
|
+
class: {},
|
|
15
|
+
text: {},
|
|
16
|
+
size: {},
|
|
17
|
+
color: { default: "primary" },
|
|
18
|
+
type: { default: "fill" },
|
|
19
|
+
variant: {},
|
|
20
|
+
loading: { type: Boolean },
|
|
21
|
+
action: { type: Boolean },
|
|
22
|
+
active: { type: Boolean },
|
|
23
|
+
badgeText: {},
|
|
24
|
+
badgeIcon: {},
|
|
25
|
+
icon: {},
|
|
26
|
+
preIcon: {},
|
|
27
|
+
postIcon: {},
|
|
28
|
+
as: { default: "button" }
|
|
29
|
+
},
|
|
30
|
+
setup(P, { expose: V }) {
|
|
31
|
+
const o = P, t = Q("button"), w = W(t, {
|
|
32
|
+
variants: {
|
|
33
|
+
size: a(S, t),
|
|
34
|
+
type: a(C, t),
|
|
35
|
+
color: a(T, t),
|
|
36
|
+
variant: a(h, t),
|
|
37
|
+
action: a("action", t),
|
|
38
|
+
active: a("active", t),
|
|
39
|
+
text: a("text", t),
|
|
40
|
+
preIcon: a("preIcon", t),
|
|
41
|
+
postIcon: a("postIcon", t),
|
|
42
|
+
loading: a("loading", t)
|
|
43
|
+
}
|
|
44
|
+
}), B = M({
|
|
45
|
+
size: i(() => o.size),
|
|
46
|
+
variant: i(() => o.variant)
|
|
47
|
+
}), p = i(() => o.variant ?? B.variant.value ?? "simple"), s = i(() => ["icon", "float"].includes(p.value)), n = j(), N = i(() => {
|
|
48
|
+
let e = C.includes(o.type) ? o.type : "fill";
|
|
49
|
+
const m = o.size ?? B.size.value, y = m && S.includes(m) ? m : "md";
|
|
50
|
+
let d = o.color && T.includes(o.color) ? o.color : "primary", f = p.value && h.includes(p.value) ? p.value : "simple";
|
|
51
|
+
return o.action ? (f === "float" && (f = "icon"), e === "fill" && (e = "outline"), d = void 0) : f === "float" && (e === "ghost" && (e = "fill"), ["primary", "gray"].includes(d) || (d = "primary")), {
|
|
52
|
+
size: y,
|
|
53
|
+
type: e,
|
|
54
|
+
color: d,
|
|
55
|
+
variant: f,
|
|
56
|
+
action: o.action,
|
|
57
|
+
active: o.active,
|
|
58
|
+
loading: o.loading,
|
|
59
|
+
text: !s.value && !!(o.text || n.default),
|
|
60
|
+
preIcon: !s.value && !!(o.preIcon || n.preIcon),
|
|
61
|
+
postIcon: !s.value && !!(o.postIcon || n.postIcon)
|
|
62
|
+
};
|
|
63
|
+
}), g = i(() => {
|
|
64
|
+
switch (o.size) {
|
|
65
|
+
case "sm":
|
|
66
|
+
return "3xsm";
|
|
67
|
+
default:
|
|
68
|
+
return "2xsm";
|
|
69
|
+
}
|
|
70
|
+
}), R = i(() => {
|
|
71
|
+
switch (o.size) {
|
|
72
|
+
case "sm":
|
|
73
|
+
return "3xsm";
|
|
74
|
+
case "lg":
|
|
75
|
+
return "xsm";
|
|
76
|
+
case "md":
|
|
77
|
+
default:
|
|
78
|
+
return "2xsm";
|
|
79
|
+
}
|
|
80
|
+
}), I = A();
|
|
81
|
+
return V({
|
|
82
|
+
focus() {
|
|
83
|
+
var e;
|
|
84
|
+
(e = I.value) == null || e.focus();
|
|
85
|
+
},
|
|
86
|
+
blur() {
|
|
87
|
+
var e;
|
|
88
|
+
(e = I.value) == null || e.blur();
|
|
89
|
+
}
|
|
90
|
+
}), (e, m) => (l(), u(v(H), {
|
|
91
|
+
as: e.as,
|
|
92
|
+
class: k([v(w)(N.value), o.class]),
|
|
93
|
+
tabindex: "0",
|
|
94
|
+
ref_key: "buttonRef",
|
|
95
|
+
ref: I
|
|
96
|
+
}, {
|
|
97
|
+
default: c(() => [
|
|
98
|
+
e.loading ? (l(), u(J, {
|
|
99
|
+
key: 1,
|
|
100
|
+
class: k(v(U)(v(t), "loading")),
|
|
101
|
+
size: g.value
|
|
102
|
+
}, null, 8, ["class", "size"])) : (l(), D(F, { key: 0 }, [
|
|
103
|
+
(e.preIcon || n.preIcon) && !s.value ? (l(), u(b, {
|
|
104
|
+
key: 0,
|
|
105
|
+
icon: e.preIcon,
|
|
106
|
+
size: g.value
|
|
107
|
+
}, {
|
|
108
|
+
default: c(() => [
|
|
109
|
+
r(e.$slots, "preIcon")
|
|
110
|
+
]),
|
|
111
|
+
_: 3
|
|
112
|
+
}, 8, ["icon", "size"])) : z("", !0),
|
|
113
|
+
s.value ? (l(), u(b, {
|
|
114
|
+
key: 1,
|
|
115
|
+
icon: e.icon,
|
|
116
|
+
size: R.value
|
|
117
|
+
}, {
|
|
118
|
+
default: c(() => [
|
|
119
|
+
r(e.$slots, "icon")
|
|
120
|
+
]),
|
|
121
|
+
_: 3
|
|
122
|
+
}, 8, ["icon", "size"])) : r(e.$slots, "default", { key: 2 }, () => [
|
|
123
|
+
G(L(e.text), 1)
|
|
124
|
+
]),
|
|
125
|
+
e.action && e.active && !s.value && (e.badgeText || n.badgeText || e.badgeIcon || n.badgeIcon) ? r(e.$slots, "badge", $(O({ key: 3 }, { color: e.$attrs.disabled ? "gray" : "primary", size: x })), () => [
|
|
126
|
+
_(K, {
|
|
127
|
+
text: e.badgeText,
|
|
128
|
+
icon: e.badgeIcon,
|
|
129
|
+
color: e.$attrs.disabled ? "gray" : "primary",
|
|
130
|
+
size: x
|
|
131
|
+
}, {
|
|
132
|
+
default: c(() => [
|
|
133
|
+
r(e.$slots, "badgeText")
|
|
134
|
+
]),
|
|
135
|
+
icon: c((y) => [
|
|
136
|
+
r(e.$slots, "badgeIcon", $(q(y)))
|
|
137
|
+
]),
|
|
138
|
+
_: 3
|
|
139
|
+
}, 8, ["text", "icon", "color"])
|
|
140
|
+
]) : z("", !0),
|
|
141
|
+
(e.postIcon || n.postIcon) && !s.value ? (l(), u(b, {
|
|
142
|
+
key: 4,
|
|
143
|
+
icon: e.postIcon,
|
|
144
|
+
size: g.value
|
|
145
|
+
}, {
|
|
146
|
+
default: c(() => [
|
|
147
|
+
r(e.$slots, "postIcon")
|
|
148
|
+
]),
|
|
149
|
+
_: 3
|
|
150
|
+
}, 8, ["icon", "size"])) : z("", !0)
|
|
151
|
+
], 64))
|
|
152
|
+
]),
|
|
153
|
+
_: 3
|
|
154
|
+
}, 8, ["as", "class"]));
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
export {
|
|
158
|
+
re as _
|
|
159
|
+
};
|