@pantograph/vue 0.6.6 → 0.7.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 +2 -228
- package/dist/Avatar/Avatar.d.ts +41 -0
- package/dist/AvatarGroup/AvatarGroup.d.ts +1 -1
- package/dist/Badge/Badge.d.ts +1 -9
- package/dist/Base/BaseBadge/BaseBadge.d.ts +7 -15
- package/dist/Base/BaseButton/BaseButton.d.ts +5 -87
- package/dist/Base/Primitive.d.ts +2 -2
- package/dist/Button/Button.d.ts +2 -228
- package/dist/ButtonGroup/ButtonGroup.d.ts +3 -3
- package/dist/Checkbox/Checkbox.d.ts +2 -2
- package/dist/Checkbox/index.js.js +1 -1
- package/dist/Checkbox/index.umd.cjs.js +1 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-BY73A9jA.js +216 -0
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-BezXV-lY.js +1 -0
- package/dist/CheckboxGroup/index.js.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs.js +1 -1
- package/dist/ConfigProvider/index.d.ts +6 -6
- package/dist/ConfigProvider/utils.d.ts +2 -2
- package/dist/Divider/Divider.d.ts +6 -14
- package/dist/FloatButton/FloatButton.d.ts +2 -228
- package/dist/GraphicalObject/GraphicalObject.d.ts +1 -9
- package/dist/Icon/Icon.d.ts +4 -12
- package/dist/IconButton/IconButton.d.ts +2 -228
- package/dist/Image/Image.d.ts +8 -16
- package/dist/Image/index.js.js +6 -116
- package/dist/Image/index.umd.cjs.js +1 -1
- package/dist/Image.vue_vue_type_style_index_0_lang-C1KxnvZB.js +1 -0
- package/dist/Image.vue_vue_type_style_index_0_lang-f4IzwLoA.js +117 -0
- package/dist/IndentLevel/IndentLevel.d.ts +6 -14
- package/dist/Indicator/Indicator.d.ts +1 -9
- package/dist/Kbd/Kbd.d.ts +6 -14
- package/dist/Menu/Menu.d.ts +10 -10
- package/dist/Menu/index.js.js +1 -1
- package/dist/Menu/index.umd.cjs.js +1 -1
- package/dist/Menu.vue_vue_type_style_index_0_lang-CMub1sQn.js +1 -0
- package/dist/Menu.vue_vue_type_style_index_0_lang-Da97vR8P.js +513 -0
- package/dist/MenuItem/MenuItem.d.ts +2 -4
- package/dist/MenuItem/MenuItemContent.d.ts +19 -13
- package/dist/MenuItem/index.js.js +1 -1
- package/dist/MenuItem/index.umd.cjs.js +1 -1
- package/dist/Popover/Popover.d.ts +49 -0
- package/dist/RadioGroup/RadioGroup.d.ts +5 -13
- package/dist/RadioGroup/index.js.js +3 -98
- package/dist/RadioGroup/index.umd.cjs.js +1 -1
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-CLCQycnR.js +100 -0
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-CYjzOKgl.js +1 -0
- package/dist/Shortcut/index.js.js +3 -40
- package/dist/Shortcut/index.umd.cjs.js +1 -1
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-BQb7DjFe.js +41 -0
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-C49ZdQFd.js +1 -0
- package/dist/Skeleton/Skeleton.d.ts +4 -4
- package/dist/Spinner/Spinner.d.ts +4 -12
- package/dist/Switch/Switch.d.ts +3 -11
- package/dist/Switch/index.js.js +4 -102
- package/dist/Switch/index.umd.cjs.js +1 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-C2cAawMN.js +1 -0
- package/dist/Switch.vue_vue_type_style_index_0_lang-DCrwOHDJ.js +103 -0
- package/dist/Tree/Tree.d.ts +3 -15
- package/dist/Tree/TreeNode.d.ts +2 -14
- package/dist/Tree/index.js.js +7 -573
- package/dist/Tree/index.umd.cjs.js +1 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-BfqlnQLT.js +1 -0
- package/dist/Tree.vue_vue_type_style_index_0_lang-CjXY2DNC.js +574 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js.js +102 -64
- package/dist/index.umd.cjs.js +1 -1
- package/dist/style/index.css +1 -1
- package/package.json +4 -4
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-DsMbQaMY.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-GqiihInu.js +0 -218
- package/dist/Menu.vue_vue_type_style_index_0_lang-CSEBoubK.js +0 -1
- package/dist/Menu.vue_vue_type_style_index_0_lang-DvZS9q1c.js +0 -477
package/dist/Button/Button.d.ts
CHANGED
|
@@ -1,236 +1,10 @@
|
|
|
1
1
|
import { BaseButtonSlots, BaseButtonProps } from '../Base/BaseButton/BaseButton';
|
|
2
2
|
export type ButtonProps = Partial<Pick<BaseButtonProps, 'as' | 'class' | 'type' | 'color' | 'loading' | 'preIcon' | 'postIcon' | 'size' | 'text'>>;
|
|
3
3
|
type ButtonSlots = Omit<BaseButtonSlots, 'icon' | 'badge'>;
|
|
4
|
-
declare
|
|
5
|
-
attrs: Partial<{}>;
|
|
6
|
-
slots: Readonly<ButtonSlots> & ButtonSlots;
|
|
7
|
-
refs: {
|
|
8
|
-
buttonRef: ({
|
|
9
|
-
$: import('vue').ComponentInternalInstance;
|
|
10
|
-
$data: {};
|
|
11
|
-
$props: {
|
|
12
|
-
readonly class?: import('..').Class | undefined;
|
|
13
|
-
readonly text?: (string | number) | undefined;
|
|
14
|
-
readonly size?: import('..').ButtonSize | undefined;
|
|
15
|
-
readonly color?: import('..').ButtonColor | undefined;
|
|
16
|
-
readonly type?: import('..').ButtonType | undefined;
|
|
17
|
-
readonly variant?: 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').AsTag | import('vue').Component) | undefined;
|
|
27
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
28
|
-
$attrs: {
|
|
29
|
-
[x: string]: unknown;
|
|
30
|
-
};
|
|
31
|
-
$refs: {
|
|
32
|
-
[x: string]: unknown;
|
|
33
|
-
} & {
|
|
34
|
-
buttonRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
35
|
-
asChild: {
|
|
36
|
-
type: BooleanConstructor;
|
|
37
|
-
default: boolean;
|
|
38
|
-
};
|
|
39
|
-
as: {
|
|
40
|
-
type: import('vue').PropType<import('radix-vue').AsTag | import('vue').Component>;
|
|
41
|
-
default: string;
|
|
42
|
-
};
|
|
43
|
-
}>>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
44
|
-
[key: string]: any;
|
|
45
|
-
}>, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
46
|
-
asChild: boolean;
|
|
47
|
-
as: import('radix-vue').AsTag | import('vue').Component;
|
|
48
|
-
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
49
|
-
P: {};
|
|
50
|
-
B: {};
|
|
51
|
-
D: {};
|
|
52
|
-
C: {};
|
|
53
|
-
M: {};
|
|
54
|
-
Defaults: {};
|
|
55
|
-
}, Readonly<import('vue').ExtractPropTypes<{
|
|
56
|
-
asChild: {
|
|
57
|
-
type: BooleanConstructor;
|
|
58
|
-
default: boolean;
|
|
59
|
-
};
|
|
60
|
-
as: {
|
|
61
|
-
type: import('vue').PropType<import('radix-vue').AsTag | import('vue').Component>;
|
|
62
|
-
default: string;
|
|
63
|
-
};
|
|
64
|
-
}>>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
65
|
-
[key: string]: any;
|
|
66
|
-
}>, {}, {}, {}, {
|
|
67
|
-
asChild: boolean;
|
|
68
|
-
as: import('radix-vue').AsTag | import('vue').Component;
|
|
69
|
-
}> | null;
|
|
70
|
-
};
|
|
71
|
-
$slots: Readonly<{
|
|
72
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
73
|
-
}>;
|
|
74
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
75
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
76
|
-
$host: Element | null;
|
|
77
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
78
|
-
$el: any;
|
|
79
|
-
$options: import('vue').ComponentOptionsBase<Readonly<BaseButtonProps> & Readonly<{}>, {
|
|
80
|
-
focus(): void;
|
|
81
|
-
blur(): void;
|
|
82
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
83
|
-
type: import('..').ButtonType;
|
|
84
|
-
color: import('..').ButtonColor;
|
|
85
|
-
as: import('radix-vue').AsTag | import('vue').Component;
|
|
86
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
87
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
88
|
-
created?: (() => void) | (() => void)[];
|
|
89
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
90
|
-
mounted?: (() => void) | (() => void)[];
|
|
91
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
92
|
-
updated?: (() => void) | (() => void)[];
|
|
93
|
-
activated?: (() => void) | (() => void)[];
|
|
94
|
-
deactivated?: (() => void) | (() => void)[];
|
|
95
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
96
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
97
|
-
destroyed?: (() => void) | (() => void)[];
|
|
98
|
-
unmounted?: (() => void) | (() => void)[];
|
|
99
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
100
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
101
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
102
|
-
};
|
|
103
|
-
$forceUpdate: () => void;
|
|
104
|
-
$nextTick: typeof import('vue').nextTick;
|
|
105
|
-
$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;
|
|
106
|
-
} & Readonly<{
|
|
107
|
-
type: import('..').ButtonType;
|
|
108
|
-
color: import('..').ButtonColor;
|
|
109
|
-
as: import('radix-vue').AsTag | import('vue').Component;
|
|
110
|
-
}> & Omit<Readonly<BaseButtonProps> & Readonly<{}>, "focus" | "blur" | ("type" | "color" | "as")> & import('vue').ShallowUnwrapRef<{
|
|
111
|
-
focus(): void;
|
|
112
|
-
blur(): void;
|
|
113
|
-
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
114
|
-
$slots: Readonly<BaseButtonSlots> & BaseButtonSlots;
|
|
115
|
-
}) | null;
|
|
116
|
-
};
|
|
117
|
-
rootEl: any;
|
|
118
|
-
};
|
|
119
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
120
|
-
declare const __VLS_component: import('vue').DefineComponent<Partial<Pick<BaseButtonProps, "size" | "class" | "type" | "color" | "text" | "as" | "loading" | "preIcon" | "postIcon">>, {
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Partial<Pick<BaseButtonProps, "size" | "class" | "type" | "color" | "text" | "as" | "loading" | "preIcon" | "postIcon">>, {
|
|
121
5
|
focus(): void;
|
|
122
6
|
blur(): void;
|
|
123
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Partial<Pick<BaseButtonProps, "size" | "class" | "type" | "color" | "text" | "as" | "loading" | "preIcon" | "postIcon">>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
124
|
-
buttonRef: ({
|
|
125
|
-
$: import('vue').ComponentInternalInstance;
|
|
126
|
-
$data: {};
|
|
127
|
-
$props: {
|
|
128
|
-
readonly class?: import('..').Class | undefined;
|
|
129
|
-
readonly text?: (string | number) | undefined;
|
|
130
|
-
readonly size?: import('..').ButtonSize | undefined;
|
|
131
|
-
readonly color?: import('..').ButtonColor | undefined;
|
|
132
|
-
readonly type?: import('..').ButtonType | undefined;
|
|
133
|
-
readonly variant?: import('..').ButtonVariant | undefined;
|
|
134
|
-
readonly loading?: boolean | undefined;
|
|
135
|
-
readonly action?: boolean | undefined;
|
|
136
|
-
readonly active?: boolean | undefined;
|
|
137
|
-
readonly badgeText?: string | undefined;
|
|
138
|
-
readonly badgeIcon?: string | undefined;
|
|
139
|
-
readonly icon?: string | undefined;
|
|
140
|
-
readonly preIcon?: string | undefined;
|
|
141
|
-
readonly postIcon?: string | undefined;
|
|
142
|
-
readonly as?: (import('radix-vue').AsTag | import('vue').Component) | undefined;
|
|
143
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
144
|
-
$attrs: {
|
|
145
|
-
[x: string]: unknown;
|
|
146
|
-
};
|
|
147
|
-
$refs: {
|
|
148
|
-
[x: string]: unknown;
|
|
149
|
-
} & {
|
|
150
|
-
buttonRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
151
|
-
asChild: {
|
|
152
|
-
type: BooleanConstructor;
|
|
153
|
-
default: boolean;
|
|
154
|
-
};
|
|
155
|
-
as: {
|
|
156
|
-
type: import('vue').PropType<import('radix-vue').AsTag | import('vue').Component>;
|
|
157
|
-
default: string;
|
|
158
|
-
};
|
|
159
|
-
}>>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
160
|
-
[key: string]: any;
|
|
161
|
-
}>, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
162
|
-
asChild: boolean;
|
|
163
|
-
as: import('radix-vue').AsTag | import('vue').Component;
|
|
164
|
-
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
165
|
-
P: {};
|
|
166
|
-
B: {};
|
|
167
|
-
D: {};
|
|
168
|
-
C: {};
|
|
169
|
-
M: {};
|
|
170
|
-
Defaults: {};
|
|
171
|
-
}, Readonly<import('vue').ExtractPropTypes<{
|
|
172
|
-
asChild: {
|
|
173
|
-
type: BooleanConstructor;
|
|
174
|
-
default: boolean;
|
|
175
|
-
};
|
|
176
|
-
as: {
|
|
177
|
-
type: import('vue').PropType<import('radix-vue').AsTag | import('vue').Component>;
|
|
178
|
-
default: string;
|
|
179
|
-
};
|
|
180
|
-
}>>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
181
|
-
[key: string]: any;
|
|
182
|
-
}>, {}, {}, {}, {
|
|
183
|
-
asChild: boolean;
|
|
184
|
-
as: import('radix-vue').AsTag | import('vue').Component;
|
|
185
|
-
}> | null;
|
|
186
|
-
};
|
|
187
|
-
$slots: Readonly<{
|
|
188
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
189
|
-
}>;
|
|
190
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
191
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
192
|
-
$host: Element | null;
|
|
193
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
194
|
-
$el: any;
|
|
195
|
-
$options: import('vue').ComponentOptionsBase<Readonly<BaseButtonProps> & Readonly<{}>, {
|
|
196
|
-
focus(): void;
|
|
197
|
-
blur(): void;
|
|
198
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
199
|
-
type: import('..').ButtonType;
|
|
200
|
-
color: import('..').ButtonColor;
|
|
201
|
-
as: import('radix-vue').AsTag | import('vue').Component;
|
|
202
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
203
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
204
|
-
created?: (() => void) | (() => void)[];
|
|
205
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
206
|
-
mounted?: (() => void) | (() => void)[];
|
|
207
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
208
|
-
updated?: (() => void) | (() => void)[];
|
|
209
|
-
activated?: (() => void) | (() => void)[];
|
|
210
|
-
deactivated?: (() => void) | (() => void)[];
|
|
211
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
212
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
213
|
-
destroyed?: (() => void) | (() => void)[];
|
|
214
|
-
unmounted?: (() => void) | (() => void)[];
|
|
215
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
216
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
217
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
218
|
-
};
|
|
219
|
-
$forceUpdate: () => void;
|
|
220
|
-
$nextTick: typeof import('vue').nextTick;
|
|
221
|
-
$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;
|
|
222
|
-
} & Readonly<{
|
|
223
|
-
type: import('..').ButtonType;
|
|
224
|
-
color: import('..').ButtonColor;
|
|
225
|
-
as: import('radix-vue').AsTag | import('vue').Component;
|
|
226
|
-
}> & Omit<Readonly<BaseButtonProps> & Readonly<{}>, "focus" | "blur" | ("type" | "color" | "as")> & import('vue').ShallowUnwrapRef<{
|
|
227
|
-
focus(): void;
|
|
228
|
-
blur(): void;
|
|
229
|
-
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
230
|
-
$slots: Readonly<BaseButtonSlots> & BaseButtonSlots;
|
|
231
|
-
}) | null;
|
|
232
|
-
}, any>;
|
|
233
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
7
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Partial<Pick<BaseButtonProps, "size" | "class" | "type" | "color" | "text" | "as" | "loading" | "preIcon" | "postIcon">>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<ButtonSlots> & ButtonSlots>;
|
|
234
8
|
export default _default;
|
|
235
9
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
236
10
|
new (): {
|
|
@@ -30,10 +30,10 @@ export declare const injectButtonGroupContext: <T extends {
|
|
|
30
30
|
variant: ComputedRef<ButtonVariant | undefined>;
|
|
31
31
|
};
|
|
32
32
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<ButtonGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ButtonGroupProps> & Readonly<{}>, {
|
|
33
|
-
size:
|
|
33
|
+
size: "sm" | "md" | "lg";
|
|
34
34
|
split: boolean;
|
|
35
|
-
as: import('radix-vue').AsTag | import('vue').Component;
|
|
36
|
-
variant:
|
|
35
|
+
as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
36
|
+
variant: "icon" | "simple" | "float";
|
|
37
37
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
38
38
|
default?(_: {}): any;
|
|
39
39
|
}>;
|
|
@@ -23,8 +23,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Ch
|
|
|
23
23
|
onChange?: ((value: boolean | "indeterminate") => any) | undefined;
|
|
24
24
|
"onUpdate:checked"?: ((value: boolean) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
|
-
size:
|
|
27
|
-
as: import('radix-vue').AsTag | import('vue').Component;
|
|
26
|
+
size: "2xsm" | "xsm";
|
|
27
|
+
as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
28
28
|
checked: boolean | "indeterminate";
|
|
29
29
|
valueAsLabel: boolean;
|
|
30
30
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<CheckboxSlots> & CheckboxSlots>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as e, C as s, _ as r, u as C, a as h } from "../Checkbox.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { _ as e, C as s, _ as r, u as C, a as h } from "../Checkbox.vue_vue_type_style_index_0_lang-BY73A9jA.js";
|
|
2
2
|
export {
|
|
3
3
|
e as Checkbox,
|
|
4
4
|
s as CheckboxSizes,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Checkbox.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Checkbox.vue_vue_type_style_index_0_lang-BezXV-lY.js");exports.Checkbox=e._sfc_main;exports.CheckboxSizes=e.CheckboxSizes;exports.default=e._sfc_main;exports.useColoredPantographCheckbox=e.useColoredPantographCheckbox;exports.useColoredPantographCheckboxGroup=e.useColoredPantographCheckboxGroup;
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { defineComponent as S, computed as l, ref as G, watch as P, createBlock as C, openBlock as u, unref as s, normalizeProps as R, guardReactiveProps as T, withCtx as k, renderSlot as V, createElementBlock as z, createCommentVNode as w, Fragment as j, renderList as D, mergeProps as y, useSlots as F, createVNode as L, normalizeClass as $, createTextVNode as U, toDisplayString as H } from "vue";
|
|
2
|
+
import { createContext as J, Primitive as q, useId as K, CheckboxRoot as M, CheckboxIndicator as Q } from "radix-vue";
|
|
3
|
+
import { prefixTokens as i } from "@pantograph/tokens";
|
|
4
|
+
import { g as W, a as X, b as f } from "./class-DziTeW9B.js";
|
|
5
|
+
import { cva as Y } from "class-variance-authority";
|
|
6
|
+
import { g as A } from "./options-JBqnVZUl.js";
|
|
7
|
+
import { o as Z } from "./omit-Cxaoa8oo.js";
|
|
8
|
+
import { _ as ee } from "./Icon.vue_vue_type_style_index_0_lang-BfPcw6PU.js";
|
|
9
|
+
import { p as ae } from "./pick-DKW6-a-5.js";
|
|
10
|
+
const te = ["2xsm", "xsm"], he = (t) => ({
|
|
11
|
+
"--ptc-checkbox-bg": `var(--${i}-${t}-5)`,
|
|
12
|
+
"--ptc-checkbox-bg-hover": `var(--${i}-${t}-4)`,
|
|
13
|
+
"--ptc-checkbox-bg-focus": `var(--${i}-${t}-6)`,
|
|
14
|
+
"--ptc-checkbox-br-focus": `var(--${i}-${t}-6)`,
|
|
15
|
+
"--ptc-checkbox-bg-active": `var(--${i}-${t}-7)`
|
|
16
|
+
}), fe = (t) => ({
|
|
17
|
+
"--ptc-group-checkbox-bg": `var(--${i}-${t}-5)`,
|
|
18
|
+
"--ptc-group-checkbox-bg-hover": `var(--${i}-${t}-4)`,
|
|
19
|
+
"--ptc-group-checkbox-bg-focus": `var(--${i}-${t}-6)`,
|
|
20
|
+
"--ptc-group-checkbox-br-focus": `var(--${i}-${t}-6)`,
|
|
21
|
+
"--ptc-group-checkbox-bg-active": `var(--${i}-${t}-7)`
|
|
22
|
+
}), [se, oe] = J("CheckboxGroup"), ke = /* @__PURE__ */ S({
|
|
23
|
+
...A("CheckboxGroup"),
|
|
24
|
+
__name: "CheckboxGroup",
|
|
25
|
+
props: {
|
|
26
|
+
asChild: { type: Boolean, default: !1 },
|
|
27
|
+
as: {},
|
|
28
|
+
value: {},
|
|
29
|
+
size: {},
|
|
30
|
+
disabled: { type: Boolean },
|
|
31
|
+
name: {},
|
|
32
|
+
options: {}
|
|
33
|
+
},
|
|
34
|
+
emits: ["update:value", "change"],
|
|
35
|
+
setup(t, { emit: g }) {
|
|
36
|
+
const c = g, e = t, o = l(() => ae(e, "asChild", "as")), d = G(e.value ?? []);
|
|
37
|
+
P(
|
|
38
|
+
() => e.value,
|
|
39
|
+
() => {
|
|
40
|
+
d.value = e.value ?? [];
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
const x = l({
|
|
44
|
+
get() {
|
|
45
|
+
return e.value ? e.value : d.value;
|
|
46
|
+
},
|
|
47
|
+
set(r) {
|
|
48
|
+
e.value || (d.value = r), c("update:value", r), c("change", r);
|
|
49
|
+
}
|
|
50
|
+
}), v = l(() => e.size), m = l(() => e.disabled ? !0 : void 0);
|
|
51
|
+
return oe({
|
|
52
|
+
model: x,
|
|
53
|
+
size: v,
|
|
54
|
+
disabled: m
|
|
55
|
+
}), (r, B) => (u(), C(s(q), R(T(o.value)), {
|
|
56
|
+
default: k(() => [
|
|
57
|
+
V(r.$slots, "default", {}, () => {
|
|
58
|
+
var b;
|
|
59
|
+
return [
|
|
60
|
+
(b = r.options) != null && b.length ? (u(!0), z(j, { key: 0 }, D(r.options, (n) => (u(), C(ce, y({
|
|
61
|
+
key: n.value,
|
|
62
|
+
ref_for: !0
|
|
63
|
+
}, n), null, 16))), 128)) : w("", !0)
|
|
64
|
+
];
|
|
65
|
+
})
|
|
66
|
+
]),
|
|
67
|
+
_: 3
|
|
68
|
+
}, 16));
|
|
69
|
+
}
|
|
70
|
+
}), le = ["for"], ce = /* @__PURE__ */ S({
|
|
71
|
+
...A("Checkbox"),
|
|
72
|
+
__name: "Checkbox",
|
|
73
|
+
props: {
|
|
74
|
+
size: { default: "xsm" },
|
|
75
|
+
class: {},
|
|
76
|
+
rootCls: {},
|
|
77
|
+
indicatorCls: {},
|
|
78
|
+
indeterminateCls: {},
|
|
79
|
+
labelCls: {},
|
|
80
|
+
label: {},
|
|
81
|
+
value: {},
|
|
82
|
+
id: {},
|
|
83
|
+
valueAsLabel: { type: Boolean, default: !0 },
|
|
84
|
+
defaultChecked: { type: Boolean },
|
|
85
|
+
checked: { type: [Boolean, String], default: void 0 },
|
|
86
|
+
disabled: { type: Boolean },
|
|
87
|
+
required: { type: Boolean },
|
|
88
|
+
name: {},
|
|
89
|
+
as: { default: "div" }
|
|
90
|
+
},
|
|
91
|
+
emits: ["update:checked", "change"],
|
|
92
|
+
setup(t, { emit: g }) {
|
|
93
|
+
const c = W("checkbox"), e = t, o = se({}), d = g, x = F(), v = G(e.checked ?? !1);
|
|
94
|
+
P(
|
|
95
|
+
() => e.checked,
|
|
96
|
+
() => {
|
|
97
|
+
v.value = e.checked ?? !1;
|
|
98
|
+
}
|
|
99
|
+
);
|
|
100
|
+
const m = l({
|
|
101
|
+
get() {
|
|
102
|
+
var a;
|
|
103
|
+
return (a = o.model) != null && a.value ? e.value !== void 0 && o.model.value.includes(e.value) : e.checked !== void 0 ? e.checked : v.value;
|
|
104
|
+
},
|
|
105
|
+
set(a) {
|
|
106
|
+
var p;
|
|
107
|
+
if ((p = o.model) != null && p.value) {
|
|
108
|
+
if (e.value !== void 0) {
|
|
109
|
+
const h = o.model.value.indexOf(e.value);
|
|
110
|
+
a && h === -1 ? o.model.value = [...o.model.value, e.value] : !a && h !== -1 && (o.model.value = o.model.value.filter(
|
|
111
|
+
(O) => O !== e.value
|
|
112
|
+
));
|
|
113
|
+
}
|
|
114
|
+
} else
|
|
115
|
+
e.checked === void 0 && (v.value = a), d("update:checked", a), d("change", a);
|
|
116
|
+
}
|
|
117
|
+
}), r = l(() => e.id ?? K(void 0, c)), B = l(() => {
|
|
118
|
+
var a;
|
|
119
|
+
return {
|
|
120
|
+
disabled: ((a = o.disabled) == null ? void 0 : a.value) ?? e.disabled,
|
|
121
|
+
...Z(
|
|
122
|
+
e,
|
|
123
|
+
"size",
|
|
124
|
+
"class",
|
|
125
|
+
"label",
|
|
126
|
+
"as",
|
|
127
|
+
"disabled",
|
|
128
|
+
"checked",
|
|
129
|
+
"id",
|
|
130
|
+
"rootCls",
|
|
131
|
+
"indicatorCls",
|
|
132
|
+
"indeterminateCls",
|
|
133
|
+
"labelCls"
|
|
134
|
+
)
|
|
135
|
+
};
|
|
136
|
+
}), b = Y(c, {
|
|
137
|
+
variants: {
|
|
138
|
+
size: X(te, c)
|
|
139
|
+
}
|
|
140
|
+
}), n = l(() => e.label || x.default || e.value && e.valueAsLabel), N = l(() => {
|
|
141
|
+
if (e.label) return e.label;
|
|
142
|
+
if (e.value && e.valueAsLabel) return e.value;
|
|
143
|
+
}), E = l(() => ({
|
|
144
|
+
asChild: !n.value,
|
|
145
|
+
as: e.as
|
|
146
|
+
})), _ = l(() => {
|
|
147
|
+
var a;
|
|
148
|
+
return ((a = o.size) == null ? void 0 : a.value) ?? e.size;
|
|
149
|
+
}), I = l(() => {
|
|
150
|
+
switch (_.value) {
|
|
151
|
+
case "xsm":
|
|
152
|
+
return "2xsm";
|
|
153
|
+
case "2xsm":
|
|
154
|
+
default:
|
|
155
|
+
return "3xsm";
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
return (a, p) => (u(), C(s(q), y({
|
|
159
|
+
key: n.value
|
|
160
|
+
}, E.value, {
|
|
161
|
+
class: [{ [s(f)(s(c), "root")]: n.value }, n.value ? a.rootCls : void 0]
|
|
162
|
+
}), {
|
|
163
|
+
default: k(() => [
|
|
164
|
+
L(s(M), y(B.value, {
|
|
165
|
+
checked: m.value,
|
|
166
|
+
"onUpdate:checked": p[0] || (p[0] = (h) => m.value = h),
|
|
167
|
+
id: r.value,
|
|
168
|
+
class: [s(b)({ size: _.value }), e.class]
|
|
169
|
+
}), {
|
|
170
|
+
default: k(() => [
|
|
171
|
+
L(s(Q), {
|
|
172
|
+
class: $([s(f)(s(c), "indicator"), a.indicatorCls]),
|
|
173
|
+
asChild: ""
|
|
174
|
+
}, {
|
|
175
|
+
default: k(() => [
|
|
176
|
+
e.checked != "indeterminate" ? (u(), C(ee, {
|
|
177
|
+
key: 0,
|
|
178
|
+
icon: "tabler:check",
|
|
179
|
+
size: I.value
|
|
180
|
+
}, null, 8, ["size"])) : (u(), z("span", {
|
|
181
|
+
key: 1,
|
|
182
|
+
class: $([s(f)(s(c), "indeterminate"), a.indeterminateCls])
|
|
183
|
+
}, null, 2))
|
|
184
|
+
]),
|
|
185
|
+
_: 1
|
|
186
|
+
}, 8, ["class"])
|
|
187
|
+
]),
|
|
188
|
+
_: 1
|
|
189
|
+
}, 16, ["checked", "id", "class"]),
|
|
190
|
+
n.value ? (u(), z("label", {
|
|
191
|
+
key: 0,
|
|
192
|
+
for: r.value,
|
|
193
|
+
class: $([s(f)(s(c), "label"), a.labelCls])
|
|
194
|
+
}, [
|
|
195
|
+
V(a.$slots, "default", {
|
|
196
|
+
checked: a.checked,
|
|
197
|
+
disabled: a.disabled,
|
|
198
|
+
required: a.required
|
|
199
|
+
}, () => [
|
|
200
|
+
U(H(N.value), 1)
|
|
201
|
+
])
|
|
202
|
+
], 10, le)) : w("", !0)
|
|
203
|
+
]),
|
|
204
|
+
_: 3
|
|
205
|
+
}, 16, ["class"]));
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
export {
|
|
209
|
+
te as C,
|
|
210
|
+
ce as _,
|
|
211
|
+
fe as a,
|
|
212
|
+
ke as b,
|
|
213
|
+
se as i,
|
|
214
|
+
oe as p,
|
|
215
|
+
he as u
|
|
216
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),d=require("radix-vue"),n=require("@pantograph/tokens"),u=require("./class-CjZYGZDW.js"),G=require("class-variance-authority"),g=require("./options-B4iSAKol.js"),S=require("./omit-1sFJ_mId.js"),V=require("./Icon.vue_vue_type_style_index_0_lang-BvHCdzZP.js"),w=require("./pick-DojrVogK.js"),B=["2xsm","xsm"],E=a=>({"--ptc-checkbox-bg":`var(--${n.prefixTokens}-${a}-5)`,"--ptc-checkbox-bg-hover":`var(--${n.prefixTokens}-${a}-4)`,"--ptc-checkbox-bg-focus":`var(--${n.prefixTokens}-${a}-6)`,"--ptc-checkbox-br-focus":`var(--${n.prefixTokens}-${a}-6)`,"--ptc-checkbox-bg-active":`var(--${n.prefixTokens}-${a}-7)`}),L=a=>({"--ptc-group-checkbox-bg":`var(--${n.prefixTokens}-${a}-5)`,"--ptc-group-checkbox-bg-hover":`var(--${n.prefixTokens}-${a}-4)`,"--ptc-group-checkbox-bg-focus":`var(--${n.prefixTokens}-${a}-6)`,"--ptc-group-checkbox-br-focus":`var(--${n.prefixTokens}-${a}-6)`,"--ptc-group-checkbox-bg-active":`var(--${n.prefixTokens}-${a}-7)`}),[$,_]=d.createContext("CheckboxGroup"),N=e.defineComponent({...g.getComponentOptions("CheckboxGroup"),__name:"CheckboxGroup",props:{asChild:{type:Boolean,default:!1},as:{},value:{},size:{},disabled:{type:Boolean},name:{},options:{}},emits:["update:value","change"],setup(a,{emit:h}){const c=h,o=a,s=e.computed(()=>w.pick(o,"asChild","as")),i=e.ref(o.value??[]);e.watch(()=>o.value,()=>{i.value=o.value??[]});const b=e.computed({get(){return o.value?o.value:i.value},set(l){o.value||(i.value=l),c("update:value",l),c("change",l)}}),p=e.computed(()=>o.size),k=e.computed(()=>o.disabled?!0:void 0);return _({model:b,size:p,disabled:k}),(l,C)=>(e.openBlock(),e.createBlock(e.unref(d.Primitive),e.normalizeProps(e.guardReactiveProps(s.value)),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default",{},()=>{var m;return[(m=l.options)!=null&&m.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.options,r=>(e.openBlock(),e.createBlock(z,e.mergeProps({key:r.value,ref_for:!0},r),null,16))),128)):e.createCommentVNode("",!0)]})]),_:3},16))}}),A=["for"],z=e.defineComponent({...g.getComponentOptions("Checkbox"),__name:"Checkbox",props:{size:{default:"xsm"},class:{},rootCls:{},indicatorCls:{},indeterminateCls:{},labelCls:{},label:{},value:{},id:{},valueAsLabel:{type:Boolean,default:!0},defaultChecked:{type:Boolean},checked:{type:[Boolean,String],default:void 0},disabled:{type:Boolean},required:{type:Boolean},name:{},as:{default:"div"}},emits:["update:checked","change"],setup(a,{emit:h}){const c=u.getBemBlock("checkbox"),o=a,s=$({}),i=h,b=e.useSlots(),p=e.ref(o.checked??!1);e.watch(()=>o.checked,()=>{p.value=o.checked??!1});const k=e.computed({get(){var t;return(t=s.model)!=null&&t.value?o.value!==void 0&&s.model.value.includes(o.value):o.checked!==void 0?o.checked:p.value},set(t){var v;if((v=s.model)!=null&&v.value){if(o.value!==void 0){const f=s.model.value.indexOf(o.value);t&&f===-1?s.model.value=[...s.model.value,o.value]:!t&&f!==-1&&(s.model.value=s.model.value.filter(T=>T!==o.value))}}else o.checked===void 0&&(p.value=t),i("update:checked",t),i("change",t)}}),l=e.computed(()=>o.id??d.useId(void 0,c)),C=e.computed(()=>{var t;return{disabled:((t=s.disabled)==null?void 0:t.value)??o.disabled,...S.omit(o,"size","class","label","as","disabled","checked","id","rootCls","indicatorCls","indeterminateCls","labelCls")}}),m=G.cva(c,{variants:{size:u.generateVariantClassList(B,c)}}),r=e.computed(()=>o.label||b.default||o.value&&o.valueAsLabel),y=e.computed(()=>{if(o.label)return o.label;if(o.value&&o.valueAsLabel)return o.value}),q=e.computed(()=>({asChild:!r.value,as:o.as})),x=e.computed(()=>{var t;return((t=s.size)==null?void 0:t.value)??o.size}),P=e.computed(()=>{switch(x.value){case"xsm":return"2xsm";case"2xsm":default:return"3xsm"}});return(t,v)=>(e.openBlock(),e.createBlock(e.unref(d.Primitive),e.mergeProps({key:r.value},q.value,{class:[{[e.unref(u.getBemElement)(e.unref(c),"root")]:r.value},r.value?t.rootCls:void 0]}),{default:e.withCtx(()=>[e.createVNode(e.unref(d.CheckboxRoot),e.mergeProps(C.value,{checked:k.value,"onUpdate:checked":v[0]||(v[0]=f=>k.value=f),id:l.value,class:[e.unref(m)({size:x.value}),o.class]}),{default:e.withCtx(()=>[e.createVNode(e.unref(d.CheckboxIndicator),{class:e.normalizeClass([e.unref(u.getBemElement)(e.unref(c),"indicator"),t.indicatorCls]),asChild:""},{default:e.withCtx(()=>[o.checked!="indeterminate"?(e.openBlock(),e.createBlock(V._sfc_main,{key:0,icon:"tabler:check",size:P.value},null,8,["size"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass([e.unref(u.getBemElement)(e.unref(c),"indeterminate"),t.indeterminateCls])},null,2))]),_:1},8,["class"])]),_:1},16,["checked","id","class"]),r.value?(e.openBlock(),e.createElementBlock("label",{key:0,for:l.value,class:e.normalizeClass([e.unref(u.getBemElement)(e.unref(c),"label"),t.labelCls])},[e.renderSlot(t.$slots,"default",{checked:t.checked,disabled:t.disabled,required:t.required},()=>[e.createTextVNode(e.toDisplayString(y.value),1)])],10,A)):e.createCommentVNode("",!0)]),_:3},16,["class"]))}});exports.CheckboxSizes=B;exports._sfc_main=z;exports._sfc_main$1=N;exports.injectCheckboxGroupContext=$;exports.provideCheckboxGroupContext=_;exports.useColoredPantographCheckbox=E;exports.useColoredPantographCheckboxGroup=L;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Checkbox.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Checkbox.vue_vue_type_style_index_0_lang-BezXV-lY.js");exports.CheckboxGroup=e._sfc_main$1;exports.injectCheckboxGroupContext=e.injectCheckboxGroupContext;exports.provideCheckboxGroupContext=e.provideCheckboxGroupContext;
|
|
@@ -23,17 +23,17 @@ declare const provideConfigContext: (contextValue: Context) => Context;
|
|
|
23
23
|
declare const injectConfigContext: () => Context;
|
|
24
24
|
export { provideConfigContext, injectConfigContext };
|
|
25
25
|
export declare const ConfigProvider: import('vue').DefineComponent<{
|
|
26
|
-
locale?:
|
|
26
|
+
locale?: object | "fa" | "en" | undefined;
|
|
27
27
|
theme?: _Config | undefined;
|
|
28
|
-
changeAbleDirectionElement?:
|
|
29
|
-
changeAbleDarkElement?:
|
|
28
|
+
changeAbleDirectionElement?: string | HTMLElement | Ref<string | HTMLElement, string | HTMLElement> | undefined;
|
|
29
|
+
changeAbleDarkElement?: string | HTMLElement | Ref<string | HTMLElement, string | HTMLElement> | undefined;
|
|
30
30
|
}, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
31
31
|
[key: string]: any;
|
|
32
32
|
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
33
|
-
locale?:
|
|
33
|
+
locale?: object | "fa" | "en" | undefined;
|
|
34
34
|
theme?: _Config | undefined;
|
|
35
|
-
changeAbleDirectionElement?:
|
|
36
|
-
changeAbleDarkElement?:
|
|
35
|
+
changeAbleDirectionElement?: string | HTMLElement | Ref<string | HTMLElement, string | HTMLElement> | undefined;
|
|
36
|
+
changeAbleDarkElement?: string | HTMLElement | Ref<string | HTMLElement, string | HTMLElement> | undefined;
|
|
37
37
|
}> & Readonly<{}>, {
|
|
38
38
|
changeAbleDirectionElement: string | HTMLElement | Ref<string | HTMLElement, string | HTMLElement>;
|
|
39
39
|
changeAbleDarkElement: string | HTMLElement | Ref<string | HTMLElement, string | HTMLElement>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
export type Element = string | HTMLElement | Ref<string | HTMLElement>;
|
|
3
3
|
export type Direction = 'ltr' | 'rtl';
|
|
4
|
-
export declare const useDir: (changeAbleDirectionElement?: Element) => [Ref<Direction>, (value?: Direction) => void];
|
|
5
|
-
export declare const useDark: (changeAbleDirectionElement?: Element) => [Ref<boolean>, (dark?: boolean) => void];
|
|
4
|
+
export declare const useDir: (changeAbleDirectionElement?: Element) => [Ref<Direction, Direction>, (value?: Direction) => void];
|
|
5
|
+
export declare const useDark: (changeAbleDirectionElement?: Element) => [Ref<boolean, boolean>, (dark?: boolean) => void];
|
|
@@ -5,20 +5,12 @@ export interface DividerProps extends Omit<PrimitiveProps, 'asChild'> {
|
|
|
5
5
|
type?: DividerType;
|
|
6
6
|
class?: Class;
|
|
7
7
|
}
|
|
8
|
-
declare
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
rootEl: any;
|
|
15
|
-
};
|
|
16
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
-
declare const __VLS_component: import('vue').DefineComponent<DividerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DividerProps> & Readonly<{}>, {
|
|
18
|
-
type: DividerType;
|
|
19
|
-
as: import('radix-vue').AsTag | import('vue').Component;
|
|
20
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
8
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<DividerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DividerProps> & Readonly<{}>, {
|
|
9
|
+
type: "horizontal" | "vertical";
|
|
10
|
+
as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
11
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
}>;
|
|
22
14
|
export default _default;
|
|
23
15
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
16
|
new (): {
|