@pantograph/vue 0.0.2 → 0.5.0
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 +164 -0
- package/dist/ActionButton/index.cjs.js +1 -0
- package/dist/ActionButton/index.d.ts +1 -0
- package/dist/ActionButton/index.es.js +5 -0
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-9sHS6TT0.js +52 -0
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-BRYxIFQL.js +1 -0
- package/dist/Avatar/Avatar.d.ts +48 -0
- package/dist/Avatar/Avatar.model.d.ts +11 -0
- package/dist/Avatar/index.cjs.js +1 -0
- package/dist/Avatar/index.d.ts +2 -0
- package/dist/Avatar/index.es.js +9 -0
- package/dist/Avatar.vue_vue_type_style_index_0_lang-D72SN0zC.js +1 -0
- package/dist/Avatar.vue_vue_type_style_index_0_lang-RziDt5Qs.js +188 -0
- package/dist/AvatarGroup/AvatarGroup.d.ts +21 -0
- package/dist/AvatarGroup/index.cjs.js +1 -0
- package/dist/AvatarGroup/index.d.ts +1 -0
- package/dist/AvatarGroup/index.es.js +6 -0
- package/dist/Badge/Badge.d.ts +20 -0
- package/dist/Badge/index.cjs.js +1 -0
- package/dist/Badge/index.d.ts +1 -0
- package/dist/Badge/index.es.js +5 -0
- package/dist/Badge.vue_vue_type_script_setup_true_lang-DzkeQwzH.js +1 -0
- package/dist/Badge.vue_vue_type_script_setup_true_lang-LwccxMER.js +34 -0
- package/dist/Base/BaseBadge/BaseBadge.d.ts +32 -0
- package/dist/Base/BaseBadge/BaseBadge.model.d.ts +8 -0
- package/dist/Base/BaseButton/BaseButton.d.ts +43 -0
- package/dist/Base/BaseButton/BaseButton.model.d.ts +8 -0
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-B1Va5X21.js +1 -0
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-CHhhflIH.js +107 -0
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-BLGNTber.js +151 -0
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-HdsdAsR3.js +1 -0
- package/dist/Button/Button.d.ts +161 -0
- package/dist/Button/index.cjs.js +1 -0
- package/dist/Button/index.d.ts +1 -0
- package/dist/Button/index.es.js +5 -0
- package/dist/Button.vue_vue_type_script_setup_true_lang-DMOtqE4k.js +49 -0
- package/dist/Button.vue_vue_type_script_setup_true_lang-DNpM6F5j.js +1 -0
- package/dist/ButtonGroup/ButtonGroup.d.ts +45 -0
- package/dist/ButtonGroup/index.cjs.js +1 -0
- package/dist/ButtonGroup/index.d.ts +1 -0
- package/dist/ButtonGroup/index.es.js +7 -0
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-BSj1Y1j2.js +1 -0
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-DBq7tYaO.js +52 -0
- package/dist/Checkbox/Checkbox.d.ts +35 -0
- package/dist/Checkbox/Checkbox.model.d.ts +16 -0
- package/dist/Checkbox/index.cjs.js +1 -1
- package/dist/Checkbox/index.d.ts +2 -0
- package/dist/Checkbox/index.es.js +5 -3
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-BQeNpCYy.js +1 -0
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-gsOfYgHe.js +245 -0
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +38 -0
- package/dist/CheckboxGroup/index.cjs.js +1 -0
- package/dist/CheckboxGroup/index.d.ts +1 -0
- package/dist/CheckboxGroup/index.es.js +6 -0
- package/dist/ConfigProvider/index.cjs.js +1 -0
- package/dist/ConfigProvider/index.d.ts +40 -0
- package/dist/ConfigProvider/index.es.js +112 -0
- package/dist/ConfigProvider/utils.d.ts +4 -0
- package/dist/Divider/Divider.d.ts +27 -0
- package/dist/Divider/Divider.model.d.ts +2 -0
- package/dist/Divider/index.cjs.js +1 -0
- package/dist/Divider/index.d.ts +2 -0
- package/dist/Divider/index.es.js +6 -0
- package/dist/Divider.vue_vue_type_style_index_0_lang-C6Suy0tD.js +1 -0
- package/dist/Divider.vue_vue_type_style_index_0_lang-SBMg48di.js +40 -0
- package/dist/FloatButton/FloatButton.d.ts +163 -0
- package/dist/FloatButton/index.cjs.js +1 -0
- package/dist/FloatButton/index.d.ts +1 -0
- package/dist/FloatButton/index.es.js +5 -0
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-BD8KDs-3.js +1 -0
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-CLL_AR_I.js +47 -0
- package/dist/GraphicalObject/GraphicalObject.d.ts +19 -0
- package/dist/GraphicalObject/index.cjs.js +1 -0
- package/dist/GraphicalObject/index.d.ts +1 -0
- package/dist/GraphicalObject/index.es.js +5 -0
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-BKYCNg9l.js +1 -0
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-DqfDSUXz.js +33 -0
- package/dist/Icon/Icon.d.ts +29 -0
- package/dist/Icon/Icon.model.d.ts +2 -0
- package/dist/Icon/index.cjs.js +1 -1
- package/dist/Icon/index.d.ts +5 -0
- package/dist/Icon/index.es.js +1 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-D-jaUivh.js +1 -0
- package/dist/Icon.vue_vue_type_style_index_0_lang-W7sippxn.js +48 -0
- package/dist/IconButton/IconButton.d.ts +161 -0
- package/dist/IconButton/index.cjs.js +1 -0
- package/dist/IconButton/index.d.ts +1 -0
- package/dist/IconButton/index.es.js +5 -0
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-DCrUZOP9.js +47 -0
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-DVbz9uji.js +1 -0
- package/dist/Image/Image.d.ts +48 -0
- package/dist/Image/Image.model.d.ts +6 -0
- package/dist/Image/index.cjs.js +1 -0
- package/dist/Image/index.d.ts +2 -0
- package/dist/Image/index.es.js +117 -0
- package/dist/IndentLevel/IndentLevel.d.ts +35 -0
- package/dist/IndentLevel/IndentLevel.model.d.ts +4 -0
- package/dist/IndentLevel/index.cjs.js +1 -0
- package/dist/IndentLevel/index.d.ts +2 -0
- package/dist/IndentLevel/index.es.js +7 -0
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-B_x8tshB.js +1 -0
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-jaoDj9GA.js +103 -0
- package/dist/Indicator/Indicator.d.ts +20 -0
- package/dist/Indicator/index.cjs.js +1 -0
- package/dist/Indicator/index.d.ts +1 -0
- package/dist/Indicator/index.es.js +5 -0
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-D2iFmRna.js +1 -0
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-jv3IND51.js +34 -0
- package/dist/Kbd/Kbd.d.ts +31 -0
- package/dist/Kbd/index.cjs.js +1 -0
- package/dist/Kbd/index.d.ts +1 -0
- package/dist/Kbd/index.es.js +5 -0
- package/dist/Kbd.vue_vue_type_style_index_0_lang-Br1eygIf.js +1 -0
- package/dist/Kbd.vue_vue_type_style_index_0_lang-D5D9tTsQ.js +60 -0
- package/dist/MenuItem/MenuItem.model.d.ts +2 -0
- package/dist/MenuItem/index.cjs.js +1 -0
- package/dist/MenuItem/index.d.ts +1 -0
- package/dist/MenuItem/index.es.js +1 -0
- package/dist/Popover/Popover.d.ts +45 -0
- package/dist/Popover/Popover.model.d.ts +4 -0
- package/dist/Popover/index.cjs.js +1 -0
- package/dist/Popover/index.d.ts +2 -0
- package/dist/Popover/index.es.js +7 -0
- package/dist/Popover.vue_vue_type_style_index_0_lang-BZMSPrfB.js +1 -0
- package/dist/Popover.vue_vue_type_style_index_0_lang-DTr33v9y.js +129 -0
- package/dist/RadioGroup/RadioGroup.d.ts +32 -0
- package/dist/RadioGroup/RadioGroup.model.d.ts +2 -0
- package/dist/RadioGroup/RadioGroupItem.d.ts +16 -0
- package/dist/RadioGroup/index.cjs.js +1 -0
- package/dist/RadioGroup/index.d.ts +2 -0
- package/dist/RadioGroup/index.es.js +100 -0
- package/dist/Shortcut/Shortcut.d.ts +12 -0
- package/dist/Shortcut/index.cjs.js +1 -0
- package/dist/Shortcut/index.d.ts +1 -0
- package/dist/Shortcut/index.es.js +42 -0
- package/dist/Skeleton/Skeleton.d.ts +20 -0
- package/dist/Skeleton/Skeleton.model.d.ts +4 -0
- package/dist/Skeleton/index.cjs.js +1 -1
- package/dist/Skeleton/index.d.ts +2 -0
- package/dist/Skeleton/index.es.js +1 -1
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-BgVkwMj4.js +66 -0
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-PNNUgKOq.js +1 -0
- package/dist/Spinner/Spinner.d.ts +23 -0
- package/dist/Spinner/Spinner.model.d.ts +2 -0
- package/dist/Spinner/index.cjs.js +1 -0
- package/dist/Spinner/index.d.ts +2 -0
- package/dist/Spinner/index.es.js +6 -0
- package/dist/Spinner.vue_vue_type_style_index_0_lang-BOXr-RUw.js +85 -0
- package/dist/Spinner.vue_vue_type_style_index_0_lang-DW5QRtWO.js +1 -0
- package/dist/Switch/Switch.d.ts +29 -0
- package/dist/Switch/Switch.model.d.ts +2 -0
- package/dist/Switch/index.cjs.js +1 -0
- package/dist/Switch/index.d.ts +2 -0
- package/dist/Switch/index.es.js +104 -0
- package/dist/Tabs/Tab.model.d.ts +2 -0
- package/dist/Tabs/index.cjs.js +1 -0
- package/dist/Tabs/index.d.ts +1 -0
- package/dist/Tabs/index.es.js +4 -0
- package/dist/Tag/Tag.model.d.ts +4 -0
- package/dist/Tag/index.cjs.js +1 -0
- package/dist/Tag/index.d.ts +1 -0
- package/dist/Tag/index.es.js +21 -0
- package/dist/Tree/Tree.d.ts +66 -0
- package/dist/Tree/Tree.model.d.ts +71 -0
- package/dist/Tree/TreeNode.d.ts +33 -0
- package/dist/Tree/index.cjs.js +1 -0
- package/dist/Tree/index.d.ts +2 -0
- package/dist/Tree/index.es.js +456 -0
- package/dist/class-CjZYGZDW.js +1 -0
- package/dist/class-DyU-Ox8D.js +24 -0
- package/dist/element-BSTINJi_.js +1 -0
- package/dist/element-Cf07a63h.js +22 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +22 -1
- package/dist/index.es.js +63 -10
- package/dist/omit-C_ZXwm9T.js +1 -0
- package/dist/omit-DtumnYm5.js +760 -0
- package/dist/options-B4iSAKol.js +1 -0
- package/dist/options-JBqnVZUl.js +9 -0
- package/dist/style/index.css +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/utils/element.d.ts +4 -0
- package/dist/utils/index.cjs.js +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.es.js +10 -0
- package/dist/utils/options.d.ts +6 -0
- package/package.json +174 -29
- package/dist/Checkbox/index.css +0 -1
- package/dist/Checkbox.d.ts +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-BLvqKFXl.js +0 -3
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-DxEbn-Bk.js +0 -474
- package/dist/Icon/index.css +0 -1
- package/dist/Icon.d.ts +0 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-EkZalwcR.js +0 -50
- package/dist/Icon.vue_vue_type_style_index_0_lang-wnLu7tWh.js +0 -1
- package/dist/Primitive-CSm3KbEm.js +0 -1
- package/dist/Primitive-DVdcdPSP.js +0 -50
- package/dist/Skeleton/index.css +0 -1
- package/dist/Skeleton.d.ts +0 -1
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-CDohV4V1.js +0 -70
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-CY6NdYvf.js +0 -1
- package/dist/class-BGw-1EB2.js +0 -29
- package/dist/class-vyfpYITq.js +0 -1
- package/dist/styles/index.css +0 -1
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { BaseButtonSlots, BaseButtonProps } from '../Base/BaseButton/BaseButton';
|
|
2
|
+
import { ButtonType, ButtonVariant } from '../Base/BaseButton/BaseButton.model';
|
|
3
|
+
export type ActionButtonProps = Partial<Pick<BaseButtonProps, 'as' | 'class' | 'preIcon' | 'postIcon' | 'size' | 'text' | 'icon' | 'active' | 'badgeText' | 'badgeIcon'>> & {
|
|
4
|
+
type?: Exclude<ButtonType, 'fill'>;
|
|
5
|
+
variant?: Exclude<ButtonVariant, 'float'>;
|
|
6
|
+
};
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: Readonly<BaseButtonSlots> & BaseButtonSlots;
|
|
10
|
+
refs: {
|
|
11
|
+
buttonRef: ({
|
|
12
|
+
$: import('vue').ComponentInternalInstance;
|
|
13
|
+
$data: {};
|
|
14
|
+
$props: {
|
|
15
|
+
readonly class?: import('../index.ts', { with: { "resolution-mode": "import" } }).Class | undefined;
|
|
16
|
+
readonly text?: (string | number) | undefined;
|
|
17
|
+
readonly size?: import('../Base/BaseButton/BaseButton.model', { with: { "resolution-mode": "import" } }).ButtonSize | undefined;
|
|
18
|
+
readonly color?: import('../Base/BaseButton/BaseButton.model', { with: { "resolution-mode": "import" } }).ButtonColor | undefined;
|
|
19
|
+
readonly type?: ButtonType | undefined;
|
|
20
|
+
readonly variant?: ButtonVariant | undefined;
|
|
21
|
+
readonly loading?: boolean | undefined;
|
|
22
|
+
readonly action?: boolean | undefined;
|
|
23
|
+
readonly active?: boolean | undefined;
|
|
24
|
+
readonly badgeText?: string | undefined;
|
|
25
|
+
readonly badgeIcon?: string | undefined;
|
|
26
|
+
readonly icon?: string | undefined;
|
|
27
|
+
readonly preIcon?: string | undefined;
|
|
28
|
+
readonly postIcon?: string | undefined;
|
|
29
|
+
readonly as?: (import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component) | undefined;
|
|
30
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
31
|
+
$attrs: {
|
|
32
|
+
[x: string]: unknown;
|
|
33
|
+
};
|
|
34
|
+
$refs: any;
|
|
35
|
+
$slots: Readonly<{
|
|
36
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
37
|
+
}>;
|
|
38
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
39
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
40
|
+
$host: Element | null;
|
|
41
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
42
|
+
$el: any;
|
|
43
|
+
$options: import('vue').ComponentOptionsBase<Readonly<BaseButtonProps> & Readonly<{}>, {
|
|
44
|
+
focus(): void;
|
|
45
|
+
blur(): void;
|
|
46
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
47
|
+
type: ButtonType;
|
|
48
|
+
color: import('../Base/BaseButton/BaseButton.model', { with: { "resolution-mode": "import" } }).ButtonColor;
|
|
49
|
+
as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
50
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
51
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
52
|
+
created?: (() => void) | (() => void)[];
|
|
53
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
54
|
+
mounted?: (() => void) | (() => void)[];
|
|
55
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
56
|
+
updated?: (() => void) | (() => void)[];
|
|
57
|
+
activated?: (() => void) | (() => void)[];
|
|
58
|
+
deactivated?: (() => void) | (() => void)[];
|
|
59
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
60
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
61
|
+
destroyed?: (() => void) | (() => void)[];
|
|
62
|
+
unmounted?: (() => void) | (() => void)[];
|
|
63
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
64
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
65
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
66
|
+
};
|
|
67
|
+
$forceUpdate: () => void;
|
|
68
|
+
$nextTick: typeof import('vue').nextTick;
|
|
69
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
70
|
+
} & Readonly<{
|
|
71
|
+
type: ButtonType;
|
|
72
|
+
color: import('../Base/BaseButton/BaseButton.model', { with: { "resolution-mode": "import" } }).ButtonColor;
|
|
73
|
+
as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
74
|
+
}> & Omit<Readonly<BaseButtonProps> & Readonly<{}>, "blur" | "focus" | ("type" | "color" | "as")> & import('vue').ShallowUnwrapRef<{
|
|
75
|
+
focus(): void;
|
|
76
|
+
blur(): void;
|
|
77
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
78
|
+
$slots: any;
|
|
79
|
+
}) | null;
|
|
80
|
+
};
|
|
81
|
+
rootEl: any;
|
|
82
|
+
};
|
|
83
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
84
|
+
declare const __VLS_component: import('vue').DefineComponent<ActionButtonProps, {
|
|
85
|
+
focus(): void;
|
|
86
|
+
blur(): void;
|
|
87
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ActionButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
88
|
+
buttonRef: ({
|
|
89
|
+
$: import('vue').ComponentInternalInstance;
|
|
90
|
+
$data: {};
|
|
91
|
+
$props: {
|
|
92
|
+
readonly class?: import('../index.ts', { with: { "resolution-mode": "import" } }).Class | undefined;
|
|
93
|
+
readonly text?: (string | number) | undefined;
|
|
94
|
+
readonly size?: import('../Base/BaseButton/BaseButton.model', { with: { "resolution-mode": "import" } }).ButtonSize | undefined;
|
|
95
|
+
readonly color?: import('../Base/BaseButton/BaseButton.model', { with: { "resolution-mode": "import" } }).ButtonColor | undefined;
|
|
96
|
+
readonly type?: ButtonType | undefined;
|
|
97
|
+
readonly variant?: ButtonVariant | undefined;
|
|
98
|
+
readonly loading?: boolean | undefined;
|
|
99
|
+
readonly action?: boolean | undefined;
|
|
100
|
+
readonly active?: boolean | undefined;
|
|
101
|
+
readonly badgeText?: string | undefined;
|
|
102
|
+
readonly badgeIcon?: string | undefined;
|
|
103
|
+
readonly icon?: string | undefined;
|
|
104
|
+
readonly preIcon?: string | undefined;
|
|
105
|
+
readonly postIcon?: string | undefined;
|
|
106
|
+
readonly as?: (import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component) | undefined;
|
|
107
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
108
|
+
$attrs: {
|
|
109
|
+
[x: string]: unknown;
|
|
110
|
+
};
|
|
111
|
+
$refs: any;
|
|
112
|
+
$slots: Readonly<{
|
|
113
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
114
|
+
}>;
|
|
115
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
116
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
117
|
+
$host: Element | null;
|
|
118
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
119
|
+
$el: any;
|
|
120
|
+
$options: import('vue').ComponentOptionsBase<Readonly<BaseButtonProps> & Readonly<{}>, {
|
|
121
|
+
focus(): void;
|
|
122
|
+
blur(): void;
|
|
123
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
124
|
+
type: ButtonType;
|
|
125
|
+
color: import('../Base/BaseButton/BaseButton.model', { with: { "resolution-mode": "import" } }).ButtonColor;
|
|
126
|
+
as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
127
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
128
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
129
|
+
created?: (() => void) | (() => void)[];
|
|
130
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
131
|
+
mounted?: (() => void) | (() => void)[];
|
|
132
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
133
|
+
updated?: (() => void) | (() => void)[];
|
|
134
|
+
activated?: (() => void) | (() => void)[];
|
|
135
|
+
deactivated?: (() => void) | (() => void)[];
|
|
136
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
137
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
138
|
+
destroyed?: (() => void) | (() => void)[];
|
|
139
|
+
unmounted?: (() => void) | (() => void)[];
|
|
140
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
141
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
142
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
143
|
+
};
|
|
144
|
+
$forceUpdate: () => void;
|
|
145
|
+
$nextTick: typeof import('vue').nextTick;
|
|
146
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
147
|
+
} & Readonly<{
|
|
148
|
+
type: ButtonType;
|
|
149
|
+
color: import('../Base/BaseButton/BaseButton.model', { with: { "resolution-mode": "import" } }).ButtonColor;
|
|
150
|
+
as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
151
|
+
}> & Omit<Readonly<BaseButtonProps> & Readonly<{}>, "blur" | "focus" | ("type" | "color" | "as")> & import('vue').ShallowUnwrapRef<{
|
|
152
|
+
focus(): void;
|
|
153
|
+
blur(): void;
|
|
154
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
155
|
+
$slots: any;
|
|
156
|
+
}) | null;
|
|
157
|
+
}, any>;
|
|
158
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
159
|
+
export default _default;
|
|
160
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
161
|
+
new (): {
|
|
162
|
+
$slots: S;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../ActionButton.vue_vue_type_script_setup_true_lang-BRYxIFQL.js");exports.ActionButton=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ActionButton, type ActionButtonProps, default } from './ActionButton';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { defineComponent as p, useAttrs as m, computed as u, ref as f, openBlock as l, createBlock as _, mergeProps as d, createSlots as b, renderList as g, withCtx as v, renderSlot as B, normalizeProps as k, guardReactiveProps as x } from "vue";
|
|
2
|
+
import { o as y } from "./omit-DtumnYm5.js";
|
|
3
|
+
import { _ as A } from "./BaseButton.vue_vue_type_style_index_0_lang-BLGNTber.js";
|
|
4
|
+
import { g as C } from "./options-JBqnVZUl.js";
|
|
5
|
+
const z = /* @__PURE__ */ p({
|
|
6
|
+
...C("ActionButton", !1),
|
|
7
|
+
__name: "ActionButton",
|
|
8
|
+
props: {
|
|
9
|
+
as: {},
|
|
10
|
+
class: {},
|
|
11
|
+
preIcon: {},
|
|
12
|
+
postIcon: {},
|
|
13
|
+
size: {},
|
|
14
|
+
text: {},
|
|
15
|
+
icon: {},
|
|
16
|
+
active: { type: Boolean },
|
|
17
|
+
badgeText: {},
|
|
18
|
+
badgeIcon: {},
|
|
19
|
+
type: {},
|
|
20
|
+
variant: {}
|
|
21
|
+
},
|
|
22
|
+
setup(n, { expose: r }) {
|
|
23
|
+
const s = n, a = m(), c = u(() => ({
|
|
24
|
+
...y(a, "variant", "loading", "color"),
|
|
25
|
+
...s
|
|
26
|
+
})), e = f();
|
|
27
|
+
return r({
|
|
28
|
+
focus() {
|
|
29
|
+
var o;
|
|
30
|
+
(o = e.value) == null || o.focus();
|
|
31
|
+
},
|
|
32
|
+
blur() {
|
|
33
|
+
var o;
|
|
34
|
+
(o = e.value) == null || o.blur();
|
|
35
|
+
}
|
|
36
|
+
}), (o, I) => (l(), _(A, d(c.value, {
|
|
37
|
+
action: "",
|
|
38
|
+
ref_key: "buttonRef",
|
|
39
|
+
ref: e
|
|
40
|
+
}), b({ _: 2 }, [
|
|
41
|
+
g(Object.keys(o.$slots), (t) => ({
|
|
42
|
+
name: t,
|
|
43
|
+
fn: v((i) => [
|
|
44
|
+
B(o.$slots, t, k(x(i)))
|
|
45
|
+
])
|
|
46
|
+
}))
|
|
47
|
+
]), 1040));
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
export {
|
|
51
|
+
z as _
|
|
52
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),p=require("./omit-C_ZXwm9T.js"),l=require("./BaseButton.vue_vue_type_style_index_0_lang-HdsdAsR3.js"),_=require("./options-B4iSAKol.js"),f=e.defineComponent({..._.getComponentOptions("ActionButton",!1),__name:"ActionButton",props:{as:{},class:{},preIcon:{},postIcon:{},size:{},text:{},icon:{},active:{type:Boolean},badgeText:{},badgeIcon:{},type:{},variant:{}},setup(s,{expose:r}){const c=s,a=e.useAttrs(),i=e.computed(()=>({...p.omit(a,"variant","loading","color"),...c})),o=e.ref();return r({focus(){var t;(t=o.value)==null||t.focus()},blur(){var t;(t=o.value)==null||t.blur()}}),(t,m)=>(e.openBlock(),e.createBlock(l._sfc_main,e.mergeProps(i.value,{action:"",ref_key:"buttonRef",ref:o}),e.createSlots({_:2},[e.renderList(Object.keys(t.$slots),n=>({name:n,fn:e.withCtx(u=>[e.renderSlot(t.$slots,n,e.normalizeProps(e.guardReactiveProps(u)))])}))]),1040))}});exports._sfc_main=f;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { AvatarFallbackProps, AvatarImageProps, AvatarRootProps } from 'radix-vue';
|
|
2
|
+
import { Class } from '../types';
|
|
3
|
+
import { BadgeColor } from '../Base/BaseBadge/BaseBadge.model';
|
|
4
|
+
import { AvatarSize, AvatarStroke, AvatarShape, AvatarOnlineAlignment } from './Avatar.model';
|
|
5
|
+
type Avatar = AvatarRootProps & AvatarImageProps & AvatarFallbackProps;
|
|
6
|
+
export interface AvatarProps extends Omit<Avatar, 'asChild' | 'src'> {
|
|
7
|
+
src?: string;
|
|
8
|
+
class?: Class;
|
|
9
|
+
onlineColor?: BadgeColor;
|
|
10
|
+
size?: AvatarSize;
|
|
11
|
+
stroke?: AvatarStroke;
|
|
12
|
+
shape?: AvatarShape;
|
|
13
|
+
online?: boolean;
|
|
14
|
+
alt?: string;
|
|
15
|
+
fallback?: string;
|
|
16
|
+
text?: string;
|
|
17
|
+
icon?: string;
|
|
18
|
+
onlineAlignment?: AvatarOnlineAlignment;
|
|
19
|
+
}
|
|
20
|
+
declare function __VLS_template(): {
|
|
21
|
+
attrs: Partial<{}>;
|
|
22
|
+
slots: {
|
|
23
|
+
fallback?(_: {}): any;
|
|
24
|
+
default?(_: {}): any;
|
|
25
|
+
};
|
|
26
|
+
refs: {};
|
|
27
|
+
rootEl: any;
|
|
28
|
+
};
|
|
29
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
30
|
+
declare const __VLS_component: import('vue').DefineComponent<AvatarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
31
|
+
loadingStatusChange: (value: import('../../../../node_modules/radix-vue/dist/Avatar/utils.js', { with: { "resolution-mode": "import" } }).ImageLoadingStatus) => any;
|
|
32
|
+
}, string, import('vue').PublicProps, Readonly<AvatarProps> & Readonly<{
|
|
33
|
+
onLoadingStatusChange?: ((value: import('../../../../node_modules/radix-vue/dist/Avatar/utils.js', { with: { "resolution-mode": "import" } }).ImageLoadingStatus) => any) | undefined;
|
|
34
|
+
}>, {
|
|
35
|
+
size: AvatarSize;
|
|
36
|
+
icon: string;
|
|
37
|
+
shape: AvatarShape;
|
|
38
|
+
src: string;
|
|
39
|
+
onlineColor: BadgeColor;
|
|
40
|
+
onlineAlignment: AvatarOnlineAlignment;
|
|
41
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
42
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
43
|
+
export default _default;
|
|
44
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
45
|
+
new (): {
|
|
46
|
+
$slots: S;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const AvatarSizes: readonly ["2xsm", "xsm", "sm", "md", "lg", "2xlg"];
|
|
2
|
+
export type AvatarSize = (typeof AvatarSizes)[number];
|
|
3
|
+
export declare const AvatarStrokes: readonly ["gray", "white"];
|
|
4
|
+
export type AvatarStroke = (typeof AvatarStrokes)[number];
|
|
5
|
+
export declare const AvatarShapes: readonly ["circle", "square", "rect"];
|
|
6
|
+
export type AvatarShape = (typeof AvatarShapes)[number];
|
|
7
|
+
export declare const AvatarOnlineAlignments: {
|
|
8
|
+
start: string;
|
|
9
|
+
end: string;
|
|
10
|
+
};
|
|
11
|
+
export type AvatarOnlineAlignment = keyof typeof AvatarOnlineAlignments;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Avatar.vue_vue_type_style_index_0_lang-D72SN0zC.js");exports.Avatar=e._sfc_main;exports.AvatarOnlineAlignments=e.AvatarOnlineAlignments;exports.AvatarShapes=e.AvatarShapes;exports.AvatarSizes=e.AvatarSizes;exports.AvatarStrokes=e.AvatarStrokes;exports.default=e._sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),c=require("radix-vue"),s=require("./class-CjZYGZDW.js"),B=require("class-variance-authority"),z=require("./options-B4iSAKol.js"),E=require("./Popover.vue_vue_type_style_index_0_lang-BZMSPrfB.js");require("@iconify/vue");const P=require("./Icon.vue_vue_type_style_index_0_lang-D-jaUivh.js"),b=require("./Indicator.vue_vue_type_script_setup_true_lang-D2iFmRna.js"),[x,y]=c.createContext("AvatarGroup"),G=e.defineComponent({...z.getComponentOptions("AvatarGroup"),__name:"AvatarGroup",props:{as:{default:"div"},class:{},gutter:{type:Boolean},size:{},shape:{},popoverClass:{},maxCount:{}},setup(v){const o=v,n=e.computed(()=>o.size),a=e.computed(()=>o.shape),d=s.getBemBlock("avatar"),m=s.getBemElement(d,"group"),f=B.cva(m,{variants:{gutter:s.generateVariantClassList("gutter",m)}});y({size:n,shape:a});const u=e.useSlots(),r=e.computed(()=>o.maxCount?+o.maxCount:0),i=e.computed(()=>f({gutter:o.gutter})),g=()=>{const l=u.default?u.default():[];return r.value>1&&l.length>r.value?[...l.filter((p,t)=>t<r.value-1),e.h(E._sfc_main,{},{default:e.h(S,{text:`+${l.length-r.value+1}`}),content:e.h(c.Primitive,{class:[i.value,o.class],as:o.as},{default:()=>l.filter((p,t)=>t>=r.value-1)})})]:l};return(l,p)=>(e.openBlock(),e.createBlock(e.unref(c.Primitive),{as:l.as,class:e.normalizeClass([i.value,o.class])},{default:e.withCtx(()=>[e.createVNode(g,{maxCount:l.maxCount},null,8,["maxCount"])]),_:1},8,["as","class"]))}}),C=["2xsm","xsm","sm","md","lg","2xlg"],k=["gray","white"],_=["circle","square","rect"],A={start:"online-start",end:"online-end"},S=e.defineComponent({...z.getComponentOptions("Avatar"),__name:"Avatar",props:{src:{default:""},class:{},onlineColor:{default:"lime"},size:{default:"md"},stroke:{},shape:{default:"circle"},online:{type:Boolean},alt:{},fallback:{},text:{},icon:{default:"tabler:user"},onlineAlignment:{default:"start"},as:{},referrerPolicy:{},delayMs:{}},emits:["loadingStatusChange"],setup(v,{emit:o}){const n=s.getBemBlock("avatar"),a=v,d=o,m=c.useEmitAsProps(d),f=B.cva(n,{variants:{size:s.generateVariantClassList(C,n),stroke:s.generateVariantClassList(k,n),shape:s.generateVariantClassList(_,n),onlineAlignment:s.generateVariantClassList(A,n)}}),u=x({size:e.computed(()=>a.size),shape:e.computed(()=>a.shape)}),r=e.computed(()=>u.size.value??a.size),i=e.computed(()=>u.shape.value??a.shape),g=e.computed(()=>{const t=r.value&&C.includes(r.value)?r.value:"md",h=a.stroke&&k.includes(a.stroke)?a.stroke:"none",V=i.value&&_.includes(i.value)?i.value:"circle",q=A[a.onlineAlignment]?a.onlineAlignment:"start";return{size:t,stroke:h,shape:V,onlineAlignment:q}}),l=e.computed(()=>{switch(r.value){case"lg":case"2xlg":return"tiny";default:return"tinier"}}),p=e.computed(()=>{switch(r.value){case"lg":case"2xlg":return"sm";case"xsm":case"2xsm":return"3xsm";case"sm":case"md":default:return"xsm"}});return(t,h)=>(e.openBlock(),e.createBlock(e.unref(c.AvatarRoot),{as:t.as,class:e.normalizeClass([e.unref(f)(g.value),a.class])},{default:e.withCtx(()=>[!t.$slots.default&&!t.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.src?(e.openBlock(),e.createBlock(e.unref(c.AvatarImage),e.mergeProps({key:0},e.unref(m),{src:t.src,alt:t.alt,class:e.unref(s.getBemElement)(e.unref(n),"image")}),null,16,["src","alt","class"])):e.createCommentVNode("",!0),e.createVNode(e.unref(c.AvatarFallback),{class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(n),"fallback"))},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"fallback",{},()=>[t.fallback?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(P._sfc_main),{key:0,icon:t.icon,size:p.value},null,8,["icon","size"])),e.createTextVNode(" "+e.toDisplayString(t.fallback),1)])]),_:3},8,["class"])],64)):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(n),"image"))},[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.text),1)])],2)),t.online?(e.openBlock(),e.createBlock(b._sfc_main,{key:2,color:t.onlineColor,size:l.value,class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(n),"online"))},null,8,["color","size","class"])):e.createCommentVNode("",!0)]),_:3},8,["as","class"]))}});exports.AvatarOnlineAlignments=A;exports.AvatarShapes=_;exports.AvatarSizes=C;exports.AvatarStrokes=k;exports._sfc_main=S;exports._sfc_main$1=G;exports.injectAvatarGroupContext=x;exports.provideAvatarGroupContext=y;
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { defineComponent as N, computed as l, useSlots as L, openBlock as i, createBlock as m, unref as s, normalizeClass as p, withCtx as x, createVNode as F, h as k, createElementBlock as S, Fragment as M, mergeProps as R, createCommentVNode as z, renderSlot as b, createTextVNode as B, toDisplayString as $ } from "vue";
|
|
2
|
+
import { createContext as T, Primitive as P, useEmitAsProps as H, AvatarRoot as J, AvatarImage as K, AvatarFallback as Q } from "radix-vue";
|
|
3
|
+
import { g as v, a as f, b as I } from "./class-DyU-Ox8D.js";
|
|
4
|
+
import { cva as O } from "class-variance-authority";
|
|
5
|
+
import { g as j } from "./options-JBqnVZUl.js";
|
|
6
|
+
import { _ as U } from "./Popover.vue_vue_type_style_index_0_lang-DTr33v9y.js";
|
|
7
|
+
import "@iconify/vue";
|
|
8
|
+
import { _ as W } from "./Icon.vue_vue_type_style_index_0_lang-W7sippxn.js";
|
|
9
|
+
import { _ as X } from "./Indicator.vue_vue_type_script_setup_true_lang-jv3IND51.js";
|
|
10
|
+
const [Y, Z] = T("AvatarGroup"), ue = /* @__PURE__ */ N({
|
|
11
|
+
...j("AvatarGroup"),
|
|
12
|
+
__name: "AvatarGroup",
|
|
13
|
+
props: {
|
|
14
|
+
as: { default: "div" },
|
|
15
|
+
class: {},
|
|
16
|
+
gutter: { type: Boolean },
|
|
17
|
+
size: {},
|
|
18
|
+
shape: {},
|
|
19
|
+
popoverClass: {},
|
|
20
|
+
maxCount: {}
|
|
21
|
+
},
|
|
22
|
+
setup(A) {
|
|
23
|
+
const o = A, t = l(() => o.size), a = l(() => o.shape), _ = I("avatar"), d = f(_, "group"), h = O(d, {
|
|
24
|
+
variants: {
|
|
25
|
+
gutter: v("gutter", d)
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
Z({
|
|
29
|
+
size: t,
|
|
30
|
+
shape: a
|
|
31
|
+
});
|
|
32
|
+
const u = L(), n = l(() => o.maxCount ? +o.maxCount : 0), c = l(
|
|
33
|
+
() => h({
|
|
34
|
+
gutter: o.gutter
|
|
35
|
+
})
|
|
36
|
+
), C = () => {
|
|
37
|
+
const r = u.default ? u.default() : [];
|
|
38
|
+
return n.value > 1 && r.length > n.value ? [
|
|
39
|
+
...r.filter((g, e) => e < n.value - 1),
|
|
40
|
+
k(
|
|
41
|
+
U,
|
|
42
|
+
{},
|
|
43
|
+
{
|
|
44
|
+
default: k(ee, { text: `+${r.length - n.value + 1}` }),
|
|
45
|
+
content: k(
|
|
46
|
+
P,
|
|
47
|
+
{ class: [c.value, o.class], as: o.as },
|
|
48
|
+
{
|
|
49
|
+
default: () => r.filter((g, e) => e >= n.value - 1)
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
}
|
|
53
|
+
)
|
|
54
|
+
] : r;
|
|
55
|
+
};
|
|
56
|
+
return (r, g) => (i(), m(s(P), {
|
|
57
|
+
as: r.as,
|
|
58
|
+
class: p([c.value, o.class])
|
|
59
|
+
}, {
|
|
60
|
+
default: x(() => [
|
|
61
|
+
F(C, { maxCount: r.maxCount }, null, 8, ["maxCount"])
|
|
62
|
+
]),
|
|
63
|
+
_: 1
|
|
64
|
+
}, 8, ["as", "class"]));
|
|
65
|
+
}
|
|
66
|
+
}), G = ["2xsm", "xsm", "sm", "md", "lg", "2xlg"], w = ["gray", "white"], V = ["circle", "square", "rect"], E = {
|
|
67
|
+
start: "online-start",
|
|
68
|
+
end: "online-end"
|
|
69
|
+
}, ee = /* @__PURE__ */ N({
|
|
70
|
+
...j("Avatar"),
|
|
71
|
+
__name: "Avatar",
|
|
72
|
+
props: {
|
|
73
|
+
src: { default: "" },
|
|
74
|
+
class: {},
|
|
75
|
+
onlineColor: { default: "lime" },
|
|
76
|
+
size: { default: "md" },
|
|
77
|
+
stroke: {},
|
|
78
|
+
shape: { default: "circle" },
|
|
79
|
+
online: { type: Boolean },
|
|
80
|
+
alt: {},
|
|
81
|
+
fallback: {},
|
|
82
|
+
text: {},
|
|
83
|
+
icon: { default: "tabler:user" },
|
|
84
|
+
onlineAlignment: { default: "start" },
|
|
85
|
+
as: {},
|
|
86
|
+
referrerPolicy: {},
|
|
87
|
+
delayMs: {}
|
|
88
|
+
},
|
|
89
|
+
emits: ["loadingStatusChange"],
|
|
90
|
+
setup(A, { emit: o }) {
|
|
91
|
+
const t = I("avatar"), a = A, d = H(o), h = O(t, {
|
|
92
|
+
variants: {
|
|
93
|
+
size: v(G, t),
|
|
94
|
+
stroke: v(w, t),
|
|
95
|
+
shape: v(V, t),
|
|
96
|
+
onlineAlignment: v(
|
|
97
|
+
E,
|
|
98
|
+
t
|
|
99
|
+
)
|
|
100
|
+
}
|
|
101
|
+
}), u = Y({
|
|
102
|
+
size: l(() => a.size),
|
|
103
|
+
shape: l(() => a.shape)
|
|
104
|
+
}), n = l(() => u.size.value ?? a.size), c = l(() => u.shape.value ?? a.shape), C = l(() => {
|
|
105
|
+
const e = n.value && G.includes(n.value) ? n.value : "md", y = a.stroke && w.includes(a.stroke) ? a.stroke : "none", q = c.value && V.includes(c.value) ? c.value : "circle", D = E[a.onlineAlignment] ? a.onlineAlignment : "start";
|
|
106
|
+
return {
|
|
107
|
+
size: e,
|
|
108
|
+
stroke: y,
|
|
109
|
+
shape: q,
|
|
110
|
+
onlineAlignment: D
|
|
111
|
+
};
|
|
112
|
+
}), r = l(() => {
|
|
113
|
+
switch (n.value) {
|
|
114
|
+
case "lg":
|
|
115
|
+
case "2xlg":
|
|
116
|
+
return "tiny";
|
|
117
|
+
default:
|
|
118
|
+
return "tinier";
|
|
119
|
+
}
|
|
120
|
+
}), g = l(() => {
|
|
121
|
+
switch (n.value) {
|
|
122
|
+
case "lg":
|
|
123
|
+
case "2xlg":
|
|
124
|
+
return "sm";
|
|
125
|
+
case "xsm":
|
|
126
|
+
case "2xsm":
|
|
127
|
+
return "3xsm";
|
|
128
|
+
case "sm":
|
|
129
|
+
case "md":
|
|
130
|
+
default:
|
|
131
|
+
return "xsm";
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
return (e, y) => (i(), m(s(J), {
|
|
135
|
+
as: e.as,
|
|
136
|
+
class: p([s(h)(C.value), a.class])
|
|
137
|
+
}, {
|
|
138
|
+
default: x(() => [
|
|
139
|
+
!e.$slots.default && !e.text ? (i(), S(M, { key: 0 }, [
|
|
140
|
+
e.src ? (i(), m(s(K), R({ key: 0 }, s(d), {
|
|
141
|
+
src: e.src,
|
|
142
|
+
alt: e.alt,
|
|
143
|
+
class: s(f)(s(t), "image")
|
|
144
|
+
}), null, 16, ["src", "alt", "class"])) : z("", !0),
|
|
145
|
+
F(s(Q), {
|
|
146
|
+
class: p(s(f)(s(t), "fallback"))
|
|
147
|
+
}, {
|
|
148
|
+
default: x(() => [
|
|
149
|
+
b(e.$slots, "fallback", {}, () => [
|
|
150
|
+
e.fallback ? z("", !0) : (i(), m(s(W), {
|
|
151
|
+
key: 0,
|
|
152
|
+
icon: e.icon,
|
|
153
|
+
size: g.value
|
|
154
|
+
}, null, 8, ["icon", "size"])),
|
|
155
|
+
B(" " + $(e.fallback), 1)
|
|
156
|
+
])
|
|
157
|
+
]),
|
|
158
|
+
_: 3
|
|
159
|
+
}, 8, ["class"])
|
|
160
|
+
], 64)) : (i(), S("span", {
|
|
161
|
+
key: 1,
|
|
162
|
+
class: p(s(f)(s(t), "image"))
|
|
163
|
+
}, [
|
|
164
|
+
b(e.$slots, "default", {}, () => [
|
|
165
|
+
B($(e.text), 1)
|
|
166
|
+
])
|
|
167
|
+
], 2)),
|
|
168
|
+
e.online ? (i(), m(X, {
|
|
169
|
+
key: 2,
|
|
170
|
+
color: e.onlineColor,
|
|
171
|
+
size: r.value,
|
|
172
|
+
class: p(s(f)(s(t), "online"))
|
|
173
|
+
}, null, 8, ["color", "size", "class"])) : z("", !0)
|
|
174
|
+
]),
|
|
175
|
+
_: 3
|
|
176
|
+
}, 8, ["as", "class"]));
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
export {
|
|
180
|
+
G as A,
|
|
181
|
+
ee as _,
|
|
182
|
+
w as a,
|
|
183
|
+
V as b,
|
|
184
|
+
E as c,
|
|
185
|
+
ue as d,
|
|
186
|
+
Y as i,
|
|
187
|
+
Z as p
|
|
188
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AvatarShape, AvatarSize } from '../Avatar/Avatar.model';
|
|
2
|
+
import { PrimitiveProps } from 'radix-vue';
|
|
3
|
+
import { ComputedRef } from 'vue';
|
|
4
|
+
import { Class } from '../types';
|
|
5
|
+
export type AvatarGroupProps = Omit<PrimitiveProps, 'asChild'> & {
|
|
6
|
+
class?: Class;
|
|
7
|
+
gutter?: boolean;
|
|
8
|
+
size?: AvatarSize;
|
|
9
|
+
shape?: AvatarShape;
|
|
10
|
+
popoverClass?: string;
|
|
11
|
+
maxCount?: number | string;
|
|
12
|
+
};
|
|
13
|
+
interface Context {
|
|
14
|
+
size: ComputedRef<AvatarGroupProps['size']>;
|
|
15
|
+
shape: ComputedRef<AvatarGroupProps['shape']>;
|
|
16
|
+
}
|
|
17
|
+
export declare const injectAvatarGroupContext: <T extends Context | null | undefined = Context>(fallback?: T | undefined) => T extends null ? Context | null : Context, provideAvatarGroupContext: (contextValue: Context) => Context;
|
|
18
|
+
declare const _default: import('vue').DefineComponent<AvatarGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AvatarGroupProps> & Readonly<{}>, {
|
|
19
|
+
as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
20
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../Avatar.vue_vue_type_style_index_0_lang-D72SN0zC.js");exports.AvatarGroup=t._sfc_main$1;exports.injectAvatarGroupContext=t.injectAvatarGroupContext;exports.provideAvatarGroupContext=t.provideAvatarGroupContext;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AvatarGroup, type AvatarGroupProps, injectAvatarGroupContext, provideAvatarGroupContext, } from './AvatarGroup';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BadgeSlots, BaseBadgeProps } from '../Base/BaseBadge/BaseBadge';
|
|
2
|
+
export type BadgeProps = Partial<Pick<BaseBadgeProps, 'as' | 'class' | 'text' | 'mode' | 'icon'>> & {
|
|
3
|
+
size?: Exclude<BaseBadgeProps['size'], 'sm' | 'tiny' | 'tinier'>;
|
|
4
|
+
color?: Exclude<BaseBadgeProps['color'], 'none'>;
|
|
5
|
+
};
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: Readonly<BadgeSlots> & BadgeSlots;
|
|
9
|
+
refs: {};
|
|
10
|
+
rootEl: any;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<BadgeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BadgeProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Badge.vue_vue_type_script_setup_true_lang-DzkeQwzH.js");exports.Badge=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Badge, type BadgeProps, default } from './Badge';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),a=require("./omit-C_ZXwm9T.js"),p=require("./BaseBadge.vue_vue_type_style_index_0_lang-B1Va5X21.js"),u=require("./options-B4iSAKol.js"),_=e.defineComponent({...u.getComponentOptions("Badge",!1),__name:"Badge",props:{as:{},class:{},text:{},mode:{},icon:{},size:{},color:{}},setup(o){const n=o,r=e.useAttrs(),c=e.computed(()=>({...a.omit(r,"type"),...n}));return(t,l)=>(e.openBlock(),e.createBlock(p._sfc_main,e.mergeProps(c.value,{type:"pill"}),e.createSlots({_:2},[e.renderList(Object.keys(t.$slots),s=>({name:s,fn:e.withCtx(i=>[e.renderSlot(t.$slots,s,e.normalizeProps(e.guardReactiveProps(i)))])}))]),1040))}});exports._sfc_main=_;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { defineComponent as p, useAttrs as m, computed as i, openBlock as c, createBlock as l, mergeProps as d, createSlots as f, renderList as _, withCtx as u, renderSlot as g, normalizeProps as B, guardReactiveProps as k } from "vue";
|
|
2
|
+
import { o as y } from "./omit-DtumnYm5.js";
|
|
3
|
+
import { _ as C } from "./BaseBadge.vue_vue_type_style_index_0_lang-CHhhflIH.js";
|
|
4
|
+
import { g as P } from "./options-JBqnVZUl.js";
|
|
5
|
+
const z = /* @__PURE__ */ p({
|
|
6
|
+
...P("Badge", !1),
|
|
7
|
+
__name: "Badge",
|
|
8
|
+
props: {
|
|
9
|
+
as: {},
|
|
10
|
+
class: {},
|
|
11
|
+
text: {},
|
|
12
|
+
mode: {},
|
|
13
|
+
icon: {},
|
|
14
|
+
size: {},
|
|
15
|
+
color: {}
|
|
16
|
+
},
|
|
17
|
+
setup(t) {
|
|
18
|
+
const r = t, s = m(), n = i(() => ({
|
|
19
|
+
...y(s, "type"),
|
|
20
|
+
...r
|
|
21
|
+
}));
|
|
22
|
+
return (e, $) => (c(), l(C, d(n.value, { type: "pill" }), f({ _: 2 }, [
|
|
23
|
+
_(Object.keys(e.$slots), (o) => ({
|
|
24
|
+
name: o,
|
|
25
|
+
fn: u((a) => [
|
|
26
|
+
g(e.$slots, o, B(k(a)))
|
|
27
|
+
])
|
|
28
|
+
}))
|
|
29
|
+
]), 1040));
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
export {
|
|
33
|
+
z as _
|
|
34
|
+
};
|