@pantograph/vue 0.0.3 → 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 +148 -5
- package/dist/ActionButton/index.cjs.js +1 -1
- package/dist/ActionButton/index.es.js +1 -1
- 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 +1 -1
- package/dist/Avatar/index.cjs.js +1 -1
- package/dist/Avatar/index.es.js +1 -1
- package/dist/Avatar.vue_vue_type_style_index_0_lang-D72SN0zC.js +1 -0
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-BWeEmazM.js → Avatar.vue_vue_type_style_index_0_lang-RziDt5Qs.js} +19 -18
- package/dist/AvatarGroup/index.cjs.js +1 -1
- package/dist/AvatarGroup/index.es.js +1 -1
- package/dist/Badge/Badge.d.ts +3 -3
- package/dist/Badge/index.cjs.js +1 -1
- package/dist/Badge/index.es.js +1 -1
- 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 +6 -10
- package/dist/Base/BaseButton/BaseButton.d.ts +13 -15
- 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 +149 -5
- package/dist/Button/index.cjs.js +1 -1
- package/dist/Button/index.es.js +1 -1
- 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/index.cjs.js +1 -1
- package/dist/ButtonGroup/index.es.js +1 -1
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-BSj1Y1j2.js +1 -0
- package/dist/{ButtonGroup.vue_vue_type_script_setup_true_lang-jtE0Gtp9.js → ButtonGroup.vue_vue_type_script_setup_true_lang-DBq7tYaO.js} +11 -10
- package/dist/Checkbox/Checkbox.d.ts +6 -14
- package/dist/Checkbox/Checkbox.model.d.ts +0 -2
- package/dist/Checkbox/index.cjs.js +1 -1
- package/dist/Checkbox/index.es.js +1 -1
- 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/index.cjs.js +1 -1
- package/dist/CheckboxGroup/index.es.js +1 -1
- 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 +149 -5
- package/dist/FloatButton/index.cjs.js +1 -1
- package/dist/FloatButton/index.es.js +1 -1
- 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 +3 -3
- package/dist/GraphicalObject/index.cjs.js +1 -1
- package/dist/GraphicalObject/index.es.js +1 -1
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-BKYCNg9l.js +1 -0
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-CcI-aIS4.js → GraphicalObject.vue_vue_type_script_setup_true_lang-DqfDSUXz.js} +7 -6
- package/dist/Icon/Icon.d.ts +1 -1
- package/dist/Icon/index.cjs.js +1 -1
- 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 +149 -5
- package/dist/IconButton/index.cjs.js +1 -1
- package/dist/IconButton/index.es.js +1 -1
- 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 +1 -1
- package/dist/Indicator/index.cjs.js +1 -1
- package/dist/Indicator/index.es.js +1 -1
- 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 +6 -83
- package/dist/Popover/index.cjs.js +1 -1
- package/dist/Popover/index.es.js +1 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-BZMSPrfB.js +1 -0
- package/dist/{Popover.vue_vue_type_style_index_0_lang-Jf0LVKU_.js → Popover.vue_vue_type_style_index_0_lang-DTr33v9y.js} +31 -29
- 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/index.cjs.js +1 -1
- package/dist/Skeleton/index.es.js +1 -1
- package/dist/{Skeleton.vue_vue_type_style_index_0_lang-C56TOumA.js → Skeleton.vue_vue_type_style_index_0_lang-BgVkwMj4.js} +10 -9
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-PNNUgKOq.js +1 -0
- package/dist/Spinner/Spinner.d.ts +2 -10
- package/dist/Spinner/index.cjs.js +1 -1
- package/dist/Spinner/index.es.js +1 -1
- 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/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/index.cjs.js +1 -1
- package/dist/index.es.js +27 -24
- 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 -1
- package/dist/utils/element.d.ts +1 -1
- package/dist/utils/index.cjs.js +1 -1
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.es.js +7 -4
- package/package.json +61 -16
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-Drb30rfG.js +0 -39
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-dxthnFw4.js +0 -1
- package/dist/Avatar.vue_vue_type_style_index_0_lang-BB-v9NHG.js +0 -1
- package/dist/Badge.vue_vue_type_script_setup_true_lang-CXfdGkKV.js +0 -33
- package/dist/Badge.vue_vue_type_script_setup_true_lang-sx-dXgFD.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-B-uDLmB_.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-F50Tg7IQ.js +0 -151
- package/dist/Button.vue_vue_type_script_setup_true_lang-Crhe5sHQ.js +0 -1
- package/dist/Button.vue_vue_type_script_setup_true_lang-XrPBGQq8.js +0 -36
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-DmShg2d-.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-BRJhkPIY.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-OQRmH46S.js +0 -194
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-Bu9Ndwxm.js +0 -1
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-CCfZsUxy.js +0 -34
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-BhMxC00o.js +0 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-CB4CYuWH.js +0 -47
- package/dist/Icon.vue_vue_type_style_index_0_lang-CV1YvIs-.js +0 -1
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-BTG_oQuF.js +0 -34
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-C93zhnQU.js +0 -1
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-Z02asVPa.js +0 -1
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-qIUYIdkm.js +0 -33
- package/dist/Logotype-Dark.svg +0 -3
- package/dist/Logotype-Light.svg +0 -3
- package/dist/Popover.vue_vue_type_style_index_0_lang-VH8LnLG9.js +0 -1
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-B6-i0F1w.js +0 -1
- package/dist/Spinner.vue_vue_type_style_index_0_lang-B5byV1za.js +0 -75
- package/dist/Spinner.vue_vue_type_style_index_0_lang-Baaz0Dxb.js +0 -1
- package/dist/logo.svg +0 -4
- package/dist/omit-B0hUroNu.js +0 -1
- package/dist/omit-DU39EwuA.js +0 -851
- package/dist/options-B8SF1auT.js +0 -1
- package/dist/options-B8rT2fg0.js +0 -30
|
@@ -1,15 +1,159 @@
|
|
|
1
|
-
import { BaseButtonProps } from '../Base/BaseButton/BaseButton';
|
|
2
|
-
export type FloatButtonProps = Pick<BaseButtonProps, 'as' | 'class' | 'color' | 'loading' | 'size' | 'icon'
|
|
1
|
+
import { BaseButtonSlots, BaseButtonProps } from '../Base/BaseButton/BaseButton';
|
|
2
|
+
export type FloatButtonProps = Partial<Pick<BaseButtonProps, 'as' | 'class' | 'color' | 'loading' | 'size' | 'icon'>> & {
|
|
3
3
|
type?: 'fill' | 'outline';
|
|
4
4
|
};
|
|
5
|
+
type FloatButtonSlots = Omit<BaseButtonSlots, 'preIcon' | 'badge' | 'postIcon' | 'default'>;
|
|
5
6
|
declare function __VLS_template(): {
|
|
6
7
|
attrs: Partial<{}>;
|
|
7
|
-
slots:
|
|
8
|
-
refs: {
|
|
8
|
+
slots: Readonly<FloatButtonSlots> & FloatButtonSlots;
|
|
9
|
+
refs: {
|
|
10
|
+
buttonRef: ({
|
|
11
|
+
$: import('vue').ComponentInternalInstance;
|
|
12
|
+
$data: {};
|
|
13
|
+
$props: {
|
|
14
|
+
readonly class?: import('../index.ts', { with: { "resolution-mode": "import" } }).Class | undefined;
|
|
15
|
+
readonly text?: (string | number) | undefined;
|
|
16
|
+
readonly size?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonSize | undefined;
|
|
17
|
+
readonly color?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor | undefined;
|
|
18
|
+
readonly type?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType | undefined;
|
|
19
|
+
readonly variant?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonVariant | undefined;
|
|
20
|
+
readonly loading?: boolean | undefined;
|
|
21
|
+
readonly action?: boolean | undefined;
|
|
22
|
+
readonly active?: boolean | undefined;
|
|
23
|
+
readonly badgeText?: string | undefined;
|
|
24
|
+
readonly badgeIcon?: string | undefined;
|
|
25
|
+
readonly icon?: string | undefined;
|
|
26
|
+
readonly preIcon?: string | undefined;
|
|
27
|
+
readonly postIcon?: string | undefined;
|
|
28
|
+
readonly as?: (import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component) | undefined;
|
|
29
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
30
|
+
$attrs: {
|
|
31
|
+
[x: string]: unknown;
|
|
32
|
+
};
|
|
33
|
+
$refs: any;
|
|
34
|
+
$slots: Readonly<{
|
|
35
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
38
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
39
|
+
$host: Element | null;
|
|
40
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
41
|
+
$el: any;
|
|
42
|
+
$options: import('vue').ComponentOptionsBase<Readonly<BaseButtonProps> & Readonly<{}>, {
|
|
43
|
+
focus(): void;
|
|
44
|
+
blur(): void;
|
|
45
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
46
|
+
type: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType;
|
|
47
|
+
color: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor;
|
|
48
|
+
as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
49
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
50
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
51
|
+
created?: (() => void) | (() => void)[];
|
|
52
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
53
|
+
mounted?: (() => void) | (() => void)[];
|
|
54
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
55
|
+
updated?: (() => void) | (() => void)[];
|
|
56
|
+
activated?: (() => void) | (() => void)[];
|
|
57
|
+
deactivated?: (() => void) | (() => void)[];
|
|
58
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
59
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
60
|
+
destroyed?: (() => void) | (() => void)[];
|
|
61
|
+
unmounted?: (() => void) | (() => void)[];
|
|
62
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
63
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
64
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
65
|
+
};
|
|
66
|
+
$forceUpdate: () => void;
|
|
67
|
+
$nextTick: typeof import('vue').nextTick;
|
|
68
|
+
$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;
|
|
69
|
+
} & Readonly<{
|
|
70
|
+
type: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType;
|
|
71
|
+
color: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor;
|
|
72
|
+
as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
73
|
+
}> & Omit<Readonly<BaseButtonProps> & Readonly<{}>, "blur" | "focus" | ("type" | "color" | "as")> & import('vue').ShallowUnwrapRef<{
|
|
74
|
+
focus(): void;
|
|
75
|
+
blur(): void;
|
|
76
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
77
|
+
$slots: any;
|
|
78
|
+
}) | null;
|
|
79
|
+
};
|
|
9
80
|
rootEl: any;
|
|
10
81
|
};
|
|
11
82
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
-
declare const __VLS_component: import('vue').DefineComponent<FloatButtonProps, {
|
|
83
|
+
declare const __VLS_component: import('vue').DefineComponent<FloatButtonProps, {
|
|
84
|
+
focus(): void;
|
|
85
|
+
blur(): void;
|
|
86
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FloatButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
87
|
+
buttonRef: ({
|
|
88
|
+
$: import('vue').ComponentInternalInstance;
|
|
89
|
+
$data: {};
|
|
90
|
+
$props: {
|
|
91
|
+
readonly class?: import('../index.ts', { with: { "resolution-mode": "import" } }).Class | undefined;
|
|
92
|
+
readonly text?: (string | number) | undefined;
|
|
93
|
+
readonly size?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonSize | undefined;
|
|
94
|
+
readonly color?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor | undefined;
|
|
95
|
+
readonly type?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType | undefined;
|
|
96
|
+
readonly variant?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonVariant | undefined;
|
|
97
|
+
readonly loading?: boolean | undefined;
|
|
98
|
+
readonly action?: boolean | undefined;
|
|
99
|
+
readonly active?: boolean | undefined;
|
|
100
|
+
readonly badgeText?: string | undefined;
|
|
101
|
+
readonly badgeIcon?: string | undefined;
|
|
102
|
+
readonly icon?: string | undefined;
|
|
103
|
+
readonly preIcon?: string | undefined;
|
|
104
|
+
readonly postIcon?: string | undefined;
|
|
105
|
+
readonly as?: (import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component) | undefined;
|
|
106
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
107
|
+
$attrs: {
|
|
108
|
+
[x: string]: unknown;
|
|
109
|
+
};
|
|
110
|
+
$refs: any;
|
|
111
|
+
$slots: Readonly<{
|
|
112
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
113
|
+
}>;
|
|
114
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
115
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
116
|
+
$host: Element | null;
|
|
117
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
118
|
+
$el: any;
|
|
119
|
+
$options: import('vue').ComponentOptionsBase<Readonly<BaseButtonProps> & Readonly<{}>, {
|
|
120
|
+
focus(): void;
|
|
121
|
+
blur(): void;
|
|
122
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
123
|
+
type: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType;
|
|
124
|
+
color: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor;
|
|
125
|
+
as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
126
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
127
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
128
|
+
created?: (() => void) | (() => void)[];
|
|
129
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
130
|
+
mounted?: (() => void) | (() => void)[];
|
|
131
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
132
|
+
updated?: (() => void) | (() => void)[];
|
|
133
|
+
activated?: (() => void) | (() => void)[];
|
|
134
|
+
deactivated?: (() => void) | (() => void)[];
|
|
135
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
136
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
137
|
+
destroyed?: (() => void) | (() => void)[];
|
|
138
|
+
unmounted?: (() => void) | (() => void)[];
|
|
139
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
140
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
141
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
142
|
+
};
|
|
143
|
+
$forceUpdate: () => void;
|
|
144
|
+
$nextTick: typeof import('vue').nextTick;
|
|
145
|
+
$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;
|
|
146
|
+
} & Readonly<{
|
|
147
|
+
type: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType;
|
|
148
|
+
color: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor;
|
|
149
|
+
as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
150
|
+
}> & Omit<Readonly<BaseButtonProps> & Readonly<{}>, "blur" | "focus" | ("type" | "color" | "as")> & import('vue').ShallowUnwrapRef<{
|
|
151
|
+
focus(): void;
|
|
152
|
+
blur(): void;
|
|
153
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
154
|
+
$slots: any;
|
|
155
|
+
}) | null;
|
|
156
|
+
}, any>;
|
|
13
157
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
158
|
export default _default;
|
|
15
159
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../FloatButton.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../FloatButton.vue_vue_type_script_setup_true_lang-BD8KDs-3.js");exports.FloatButton=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),l=require("./omit-C_ZXwm9T.js"),p=require("./BaseButton.vue_vue_type_style_index_0_lang-HdsdAsR3.js"),_=require("./options-B4iSAKol.js"),f=e.defineComponent({..._.getComponentOptions("FloatButton",!1),__name:"FloatButton",props:{as:{},class:{},color:{},loading:{type:Boolean},size:{},icon:{},type:{}},setup(s,{expose:r}){const a=s,c=e.useAttrs(),i=e.computed(()=>({...l.omit(c,"variant","text","preIcon","postIcon","action","active","badgeText"),...a})),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(p._sfc_main,e.mergeProps(i.value,{variant:"float",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,47 @@
|
|
|
1
|
+
import { defineComponent as i, useAttrs as l, computed as m, ref as u, openBlock as f, 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 C } from "./BaseButton.vue_vue_type_style_index_0_lang-BLGNTber.js";
|
|
4
|
+
import { g as P } from "./options-JBqnVZUl.js";
|
|
5
|
+
const I = /* @__PURE__ */ i({
|
|
6
|
+
...P("FloatButton", !1),
|
|
7
|
+
__name: "FloatButton",
|
|
8
|
+
props: {
|
|
9
|
+
as: {},
|
|
10
|
+
class: {},
|
|
11
|
+
color: {},
|
|
12
|
+
loading: { type: Boolean },
|
|
13
|
+
size: {},
|
|
14
|
+
icon: {},
|
|
15
|
+
type: {}
|
|
16
|
+
},
|
|
17
|
+
setup(r, { expose: n }) {
|
|
18
|
+
const s = r, a = l(), c = m(() => ({
|
|
19
|
+
...y(a, "variant", "text", "preIcon", "postIcon", "action", "active", "badgeText"),
|
|
20
|
+
...s
|
|
21
|
+
})), t = u();
|
|
22
|
+
return n({
|
|
23
|
+
focus() {
|
|
24
|
+
var o;
|
|
25
|
+
(o = t.value) == null || o.focus();
|
|
26
|
+
},
|
|
27
|
+
blur() {
|
|
28
|
+
var o;
|
|
29
|
+
(o = t.value) == null || o.blur();
|
|
30
|
+
}
|
|
31
|
+
}), (o, R) => (f(), _(C, d(c.value, {
|
|
32
|
+
variant: "float",
|
|
33
|
+
ref_key: "buttonRef",
|
|
34
|
+
ref: t
|
|
35
|
+
}), b({ _: 2 }, [
|
|
36
|
+
g(Object.keys(o.$slots), (e) => ({
|
|
37
|
+
name: e,
|
|
38
|
+
fn: v((p) => [
|
|
39
|
+
B(o.$slots, e, k(x(p)))
|
|
40
|
+
])
|
|
41
|
+
}))
|
|
42
|
+
]), 1040));
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
export {
|
|
46
|
+
I as _
|
|
47
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { BaseBadgeProps } from '../Base/BaseBadge/BaseBadge';
|
|
2
|
-
export type GraphicalObjectProps = Pick<BaseBadgeProps, 'as' | 'class' | 'mode' | 'icon' | 'color'
|
|
1
|
+
import { BadgeSlots, BaseBadgeProps } from '../Base/BaseBadge/BaseBadge';
|
|
2
|
+
export type GraphicalObjectProps = Partial<Pick<BaseBadgeProps, 'as' | 'class' | 'mode' | 'icon' | 'color'>> & {
|
|
3
3
|
size?: Exclude<BaseBadgeProps['size'], 'tiny' | 'tinier'>;
|
|
4
4
|
};
|
|
5
5
|
declare function __VLS_template(): {
|
|
6
6
|
attrs: Partial<{}>;
|
|
7
|
-
slots:
|
|
7
|
+
slots: Readonly<BadgeSlots> & BadgeSlots;
|
|
8
8
|
refs: {};
|
|
9
9
|
rootEl: any;
|
|
10
10
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../GraphicalObject.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../GraphicalObject.vue_vue_type_script_setup_true_lang-BKYCNg9l.js");exports.GraphicalObject=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -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("GraphicalObject",!1),__name:"GraphicalObject",props:{as:{},class:{},mode:{},icon:{},color:{},size:{}},setup(r){const o=r,n=e.useAttrs(),c=e.computed(()=>({...a.omit(n,"type","text"),...o}));return(t,l)=>(e.openBlock(),e.createBlock(p._sfc_main,e.mergeProps(c.value,{type:"rect"}),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=_;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent as c, useAttrs as p, computed as i, openBlock as m, createBlock as l, mergeProps as
|
|
2
|
-
import { o as O
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { defineComponent as c, useAttrs as p, computed as i, openBlock as m, createBlock as l, mergeProps as f, createSlots as _, renderList as u, withCtx as d, renderSlot as g, normalizeProps as b, guardReactiveProps as h } from "vue";
|
|
2
|
+
import { o as O } from "./omit-DtumnYm5.js";
|
|
3
|
+
import { _ as j } from "./BaseBadge.vue_vue_type_style_index_0_lang-CHhhflIH.js";
|
|
4
|
+
import { g as k } from "./options-JBqnVZUl.js";
|
|
5
|
+
const x = /* @__PURE__ */ c({
|
|
5
6
|
...k("GraphicalObject", !1),
|
|
6
7
|
__name: "GraphicalObject",
|
|
7
8
|
props: {
|
|
@@ -17,7 +18,7 @@ const v = /* @__PURE__ */ c({
|
|
|
17
18
|
...O(s, "type", "text"),
|
|
18
19
|
...r
|
|
19
20
|
}));
|
|
20
|
-
return (e, y) => (m(), l(j,
|
|
21
|
+
return (e, y) => (m(), l(j, f(n.value, { type: "rect" }), _({ _: 2 }, [
|
|
21
22
|
u(Object.keys(e.$slots), (t) => ({
|
|
22
23
|
name: t,
|
|
23
24
|
fn: d((a) => [
|
|
@@ -28,5 +29,5 @@ const v = /* @__PURE__ */ c({
|
|
|
28
29
|
}
|
|
29
30
|
});
|
|
30
31
|
export {
|
|
31
|
-
|
|
32
|
+
x as _
|
|
32
33
|
};
|
package/dist/Icon/Icon.d.ts
CHANGED
package/dist/Icon/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var s=Object.create;var t=Object.defineProperty;var _=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var r=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty;var I=(e,o,c,i)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of d(o))!u.call(e,n)&&n!==c&&t(e,n,{get:()=>o[n],enumerable:!(i=_(o,n))||i.enumerable});return e};var l=(e,o,c)=>(c=e!=null?s(r(e)):{},I(o||!e||!e.__esModule?t(c,"default",{value:e,enumerable:!0}):c,e));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("@iconify/vue");const a=require("../Icon.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";var s=Object.create;var t=Object.defineProperty;var _=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var r=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty;var I=(e,o,c,i)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of d(o))!u.call(e,n)&&n!==c&&t(e,n,{get:()=>o[n],enumerable:!(i=_(o,n))||i.enumerable});return e};var l=(e,o,c)=>(c=e!=null?s(r(e)):{},I(o||!e||!e.__esModule?t(c,"default",{value:e,enumerable:!0}):c,e));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("@iconify/vue");const a=require("../Icon.vue_vue_type_style_index_0_lang-D-jaUivh.js"),f=async(e,o="")=>{const{addCollection:c}=await import("@iconify/vue");c(e,o)},C=async e=>{const{disableCache:o}=await import("@iconify/vue");o(e??"all")};exports.Icon=a._sfc_main;exports.IconSizes=a.IconSizes;exports.default=a._sfc_main;exports.defineLocaleIconCollection=f;exports.disableIconCache=C;
|
package/dist/Icon/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "@iconify/vue";
|
|
2
|
-
import { _ as l, I as d, _ as r } from "../Icon.vue_vue_type_style_index_0_lang-
|
|
2
|
+
import { _ as l, I as d, _ as r } from "../Icon.vue_vue_type_style_index_0_lang-W7sippxn.js";
|
|
3
3
|
const e = async (o, a = "") => {
|
|
4
4
|
const { addCollection: c } = await import("@iconify/vue");
|
|
5
5
|
c(o, a);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),d=require("@iconify/vue"),t=require("./class-CjZYGZDW.js"),z=require("class-variance-authority"),B=require("./options-B4iSAKol.js"),o=["3xsm","2xsm","xsm","sm"],g=e.defineComponent({...B.getComponentOptions("Icon"),__name:"Icon",props:{size:{default:"xsm"},class:{},icon:{},flipOnDir:{},flipX:{type:Boolean},flipY:{type:Boolean}},setup(l){const i=l,n=t.getBemBlock("icon"),c=z.cva(n,{variants:{size:t.generateVariantClassList(o,n)}}),p=e.computed(()=>{if(Number(i.size)>0)return`${i.size}px`;if(typeof i.size=="string"&&!o.includes(i.size))return i.size}),a=e.computed(()=>{const s=[],r=t.getBemModifier(n,"flip-x"),f=t.getBemModifier(n,"flip-y"),u=t.getBemModifier(n,"flip-rtl"),m=t.getBemModifier(n,"flip-ltr");return i.flipX?s.push(r):(i.flipOnDir==="rtl"&&s.push(u),i.flipOnDir==="ltr"&&s.push(m)),i.flipY&&s.push(f),s.join(" ")});return(s,r)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass([e.unref(c)({size:s.size}),a.value,i.class]),style:e.normalizeStyle({"--pt-icon-size":p.value})},[e.renderSlot(s.$slots,"default",{},()=>[s.icon?(e.openBlock(),e.createBlock(e.unref(d.Icon),{key:0,icon:s.icon,ssr:""},null,8,["icon"])):e.createCommentVNode("",!0)])],6))}});exports.IconSizes=o;exports._sfc_main=g;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { defineComponent as B, computed as t, openBlock as r, createElementBlock as g, normalizeClass as y, unref as l, normalizeStyle as C, renderSlot as h, createBlock as k, createCommentVNode as v } from "vue";
|
|
2
|
+
import { Icon as x } from "@iconify/vue";
|
|
3
|
+
import { g as I, b as O, c as n } from "./class-DyU-Ox8D.js";
|
|
4
|
+
import { cva as S } from "class-variance-authority";
|
|
5
|
+
import { g as D } from "./options-JBqnVZUl.js";
|
|
6
|
+
const p = ["3xsm", "2xsm", "xsm", "sm"], N = /* @__PURE__ */ B({
|
|
7
|
+
...D("Icon"),
|
|
8
|
+
__name: "Icon",
|
|
9
|
+
props: {
|
|
10
|
+
size: { default: "xsm" },
|
|
11
|
+
class: {},
|
|
12
|
+
icon: {},
|
|
13
|
+
flipOnDir: {},
|
|
14
|
+
flipX: { type: Boolean },
|
|
15
|
+
flipY: { type: Boolean }
|
|
16
|
+
},
|
|
17
|
+
setup(c) {
|
|
18
|
+
const e = c, i = O("icon"), a = S(i, {
|
|
19
|
+
variants: {
|
|
20
|
+
size: I(p, i)
|
|
21
|
+
}
|
|
22
|
+
}), f = t(() => {
|
|
23
|
+
if (Number(e.size) > 0)
|
|
24
|
+
return `${e.size}px`;
|
|
25
|
+
if (typeof e.size == "string" && !p.includes(e.size))
|
|
26
|
+
return e.size;
|
|
27
|
+
}), m = t(() => {
|
|
28
|
+
const s = [], o = n(i, "flip-x"), u = n(i, "flip-y"), z = n(i, "flip-rtl"), d = n(i, "flip-ltr");
|
|
29
|
+
return e.flipX ? s.push(o) : (e.flipOnDir === "rtl" && s.push(z), e.flipOnDir === "ltr" && s.push(d)), e.flipY && s.push(u), s.join(" ");
|
|
30
|
+
});
|
|
31
|
+
return (s, o) => (r(), g("span", {
|
|
32
|
+
class: y([l(a)({ size: s.size }), m.value, e.class]),
|
|
33
|
+
style: C({ "--pt-icon-size": f.value })
|
|
34
|
+
}, [
|
|
35
|
+
h(s.$slots, "default", {}, () => [
|
|
36
|
+
s.icon ? (r(), k(l(x), {
|
|
37
|
+
key: 0,
|
|
38
|
+
icon: s.icon,
|
|
39
|
+
ssr: ""
|
|
40
|
+
}, null, 8, ["icon"])) : v("", !0)
|
|
41
|
+
])
|
|
42
|
+
], 6));
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
export {
|
|
46
|
+
p as I,
|
|
47
|
+
N as _
|
|
48
|
+
};
|
|
@@ -1,13 +1,157 @@
|
|
|
1
|
-
import { BaseButtonProps } from '../Base/BaseButton/BaseButton';
|
|
2
|
-
export type IconButtonProps = Pick<BaseButtonProps, 'as' | 'class' | 'type' | 'color' | 'loading' | 'icon' | 'size'
|
|
1
|
+
import { BaseButtonSlots, BaseButtonProps } from '../Base/BaseButton/BaseButton';
|
|
2
|
+
export type IconButtonProps = Partial<Pick<BaseButtonProps, 'as' | 'class' | 'type' | 'color' | 'loading' | 'icon' | 'size'>>;
|
|
3
|
+
type IconButtonSlots = Omit<BaseButtonSlots, 'preIcon' | 'badge' | 'postIcon' | 'default'>;
|
|
3
4
|
declare function __VLS_template(): {
|
|
4
5
|
attrs: Partial<{}>;
|
|
5
|
-
slots:
|
|
6
|
-
refs: {
|
|
6
|
+
slots: Readonly<IconButtonSlots> & IconButtonSlots;
|
|
7
|
+
refs: {
|
|
8
|
+
buttonRef: ({
|
|
9
|
+
$: import('vue').ComponentInternalInstance;
|
|
10
|
+
$data: {};
|
|
11
|
+
$props: {
|
|
12
|
+
readonly class?: import('../index.ts', { with: { "resolution-mode": "import" } }).Class | undefined;
|
|
13
|
+
readonly text?: (string | number) | undefined;
|
|
14
|
+
readonly size?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonSize | undefined;
|
|
15
|
+
readonly color?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor | undefined;
|
|
16
|
+
readonly type?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType | undefined;
|
|
17
|
+
readonly variant?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonVariant | undefined;
|
|
18
|
+
readonly loading?: boolean | undefined;
|
|
19
|
+
readonly action?: boolean | undefined;
|
|
20
|
+
readonly active?: boolean | undefined;
|
|
21
|
+
readonly badgeText?: string | undefined;
|
|
22
|
+
readonly badgeIcon?: string | undefined;
|
|
23
|
+
readonly icon?: string | undefined;
|
|
24
|
+
readonly preIcon?: string | undefined;
|
|
25
|
+
readonly postIcon?: string | undefined;
|
|
26
|
+
readonly as?: (import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component) | undefined;
|
|
27
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
28
|
+
$attrs: {
|
|
29
|
+
[x: string]: unknown;
|
|
30
|
+
};
|
|
31
|
+
$refs: any;
|
|
32
|
+
$slots: Readonly<{
|
|
33
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
34
|
+
}>;
|
|
35
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
36
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
37
|
+
$host: Element | null;
|
|
38
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
39
|
+
$el: any;
|
|
40
|
+
$options: import('vue').ComponentOptionsBase<Readonly<BaseButtonProps> & Readonly<{}>, {
|
|
41
|
+
focus(): void;
|
|
42
|
+
blur(): void;
|
|
43
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
44
|
+
type: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType;
|
|
45
|
+
color: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor;
|
|
46
|
+
as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
47
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
48
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
49
|
+
created?: (() => void) | (() => void)[];
|
|
50
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
51
|
+
mounted?: (() => void) | (() => void)[];
|
|
52
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
53
|
+
updated?: (() => void) | (() => void)[];
|
|
54
|
+
activated?: (() => void) | (() => void)[];
|
|
55
|
+
deactivated?: (() => void) | (() => void)[];
|
|
56
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
57
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
58
|
+
destroyed?: (() => void) | (() => void)[];
|
|
59
|
+
unmounted?: (() => void) | (() => void)[];
|
|
60
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
61
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
62
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
63
|
+
};
|
|
64
|
+
$forceUpdate: () => void;
|
|
65
|
+
$nextTick: typeof import('vue').nextTick;
|
|
66
|
+
$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;
|
|
67
|
+
} & Readonly<{
|
|
68
|
+
type: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType;
|
|
69
|
+
color: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor;
|
|
70
|
+
as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
71
|
+
}> & Omit<Readonly<BaseButtonProps> & Readonly<{}>, "blur" | "focus" | ("type" | "color" | "as")> & import('vue').ShallowUnwrapRef<{
|
|
72
|
+
focus(): void;
|
|
73
|
+
blur(): void;
|
|
74
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
75
|
+
$slots: any;
|
|
76
|
+
}) | null;
|
|
77
|
+
};
|
|
7
78
|
rootEl: any;
|
|
8
79
|
};
|
|
9
80
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
81
|
+
declare const __VLS_component: import('vue').DefineComponent<Partial<Pick<BaseButtonProps, "size" | "class" | "icon" | "type" | "color" | "as" | "loading">>, {
|
|
82
|
+
focus(): void;
|
|
83
|
+
blur(): void;
|
|
84
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Partial<Pick<BaseButtonProps, "size" | "class" | "icon" | "type" | "color" | "as" | "loading">>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
85
|
+
buttonRef: ({
|
|
86
|
+
$: import('vue').ComponentInternalInstance;
|
|
87
|
+
$data: {};
|
|
88
|
+
$props: {
|
|
89
|
+
readonly class?: import('../index.ts', { with: { "resolution-mode": "import" } }).Class | undefined;
|
|
90
|
+
readonly text?: (string | number) | undefined;
|
|
91
|
+
readonly size?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonSize | undefined;
|
|
92
|
+
readonly color?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor | undefined;
|
|
93
|
+
readonly type?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType | undefined;
|
|
94
|
+
readonly variant?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonVariant | undefined;
|
|
95
|
+
readonly loading?: boolean | undefined;
|
|
96
|
+
readonly action?: boolean | undefined;
|
|
97
|
+
readonly active?: boolean | undefined;
|
|
98
|
+
readonly badgeText?: string | undefined;
|
|
99
|
+
readonly badgeIcon?: string | undefined;
|
|
100
|
+
readonly icon?: string | undefined;
|
|
101
|
+
readonly preIcon?: string | undefined;
|
|
102
|
+
readonly postIcon?: string | undefined;
|
|
103
|
+
readonly as?: (import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component) | undefined;
|
|
104
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
105
|
+
$attrs: {
|
|
106
|
+
[x: string]: unknown;
|
|
107
|
+
};
|
|
108
|
+
$refs: any;
|
|
109
|
+
$slots: Readonly<{
|
|
110
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
111
|
+
}>;
|
|
112
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
113
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
114
|
+
$host: Element | null;
|
|
115
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
116
|
+
$el: any;
|
|
117
|
+
$options: import('vue').ComponentOptionsBase<Readonly<BaseButtonProps> & Readonly<{}>, {
|
|
118
|
+
focus(): void;
|
|
119
|
+
blur(): void;
|
|
120
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
121
|
+
type: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType;
|
|
122
|
+
color: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor;
|
|
123
|
+
as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
124
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
125
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
126
|
+
created?: (() => void) | (() => void)[];
|
|
127
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
128
|
+
mounted?: (() => void) | (() => void)[];
|
|
129
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
130
|
+
updated?: (() => void) | (() => void)[];
|
|
131
|
+
activated?: (() => void) | (() => void)[];
|
|
132
|
+
deactivated?: (() => void) | (() => void)[];
|
|
133
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
134
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
135
|
+
destroyed?: (() => void) | (() => void)[];
|
|
136
|
+
unmounted?: (() => void) | (() => void)[];
|
|
137
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
138
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
139
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
140
|
+
};
|
|
141
|
+
$forceUpdate: () => void;
|
|
142
|
+
$nextTick: typeof import('vue').nextTick;
|
|
143
|
+
$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;
|
|
144
|
+
} & Readonly<{
|
|
145
|
+
type: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType;
|
|
146
|
+
color: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor;
|
|
147
|
+
as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
148
|
+
}> & Omit<Readonly<BaseButtonProps> & Readonly<{}>, "blur" | "focus" | ("type" | "color" | "as")> & import('vue').ShallowUnwrapRef<{
|
|
149
|
+
focus(): void;
|
|
150
|
+
blur(): void;
|
|
151
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
152
|
+
$slots: any;
|
|
153
|
+
}) | null;
|
|
154
|
+
}, any>;
|
|
11
155
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
156
|
export default _default;
|
|
13
157
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../IconButton.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../IconButton.vue_vue_type_script_setup_true_lang-DVbz9uji.js");exports.IconButton=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 I } from "./BaseButton.vue_vue_type_style_index_0_lang-BLGNTber.js";
|
|
4
|
+
import { g as C } from "./options-JBqnVZUl.js";
|
|
5
|
+
const O = /* @__PURE__ */ p({
|
|
6
|
+
...C("IconButton", !1),
|
|
7
|
+
__name: "IconButton",
|
|
8
|
+
props: {
|
|
9
|
+
as: {},
|
|
10
|
+
class: {},
|
|
11
|
+
type: {},
|
|
12
|
+
color: {},
|
|
13
|
+
loading: { type: Boolean },
|
|
14
|
+
icon: {},
|
|
15
|
+
size: {}
|
|
16
|
+
},
|
|
17
|
+
setup(n, { expose: r }) {
|
|
18
|
+
const s = n, a = m(), c = u(() => ({
|
|
19
|
+
...y(a, "variant", "preIcon", "postIcon", "text", "action", "active", "badgeText"),
|
|
20
|
+
...s
|
|
21
|
+
})), e = f();
|
|
22
|
+
return r({
|
|
23
|
+
focus() {
|
|
24
|
+
var o;
|
|
25
|
+
(o = e.value) == null || o.focus();
|
|
26
|
+
},
|
|
27
|
+
blur() {
|
|
28
|
+
var o;
|
|
29
|
+
(o = e.value) == null || o.blur();
|
|
30
|
+
}
|
|
31
|
+
}), (o, P) => (l(), _(I, d(c.value, {
|
|
32
|
+
variant: "icon",
|
|
33
|
+
ref_key: "buttonRef",
|
|
34
|
+
ref: e
|
|
35
|
+
}), b({ _: 2 }, [
|
|
36
|
+
g(Object.keys(o.$slots), (t) => ({
|
|
37
|
+
name: t,
|
|
38
|
+
fn: v((i) => [
|
|
39
|
+
B(o.$slots, t, k(x(i)))
|
|
40
|
+
])
|
|
41
|
+
}))
|
|
42
|
+
]), 1040));
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
export {
|
|
46
|
+
O as _
|
|
47
|
+
};
|
|
@@ -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("IconButton",!1),__name:"IconButton",props:{as:{},class:{},type:{},color:{},loading:{type:Boolean},icon:{},size:{}},setup(s,{expose:r}){const c=s,a=e.useAttrs(),i=e.computed(()=>({...p.omit(a,"variant","preIcon","postIcon","text","action","active","badgeText"),...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,{variant:"icon",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;
|