@soybeanjs/ui 0.0.3-beta.1 → 0.0.3
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/README.md +86 -6
- package/README.zh-CN.md +251 -0
- package/dist/components/accordion/accordion.vue.d.ts +3 -3
- package/dist/components/alert/alert.vue.d.ts +4 -4
- package/dist/components/alert-dialog/alert-dialog-action.vue.d.ts +3 -3
- package/dist/components/alert-dialog/alert-dialog-cancel.vue.d.ts +3 -3
- package/dist/components/alert-dialog/alert-dialog.vue.d.ts +5 -5
- package/dist/components/avatar/avatar.vue.d.ts +7 -7
- package/dist/components/badge/badge.vue.d.ts +4 -4
- package/dist/components/breadcrumb/breadcrumb.vue.d.ts +3 -3
- package/dist/components/button/button-group.vue.d.ts +6 -6
- package/dist/components/button/button-icon.vue.d.ts +3 -3
- package/dist/components/button/button-link.vue.d.ts +4 -4
- package/dist/components/button/button-loading.vue.d.ts +3 -3
- package/dist/components/button/button.vue.d.ts +4 -4
- package/dist/components/card/card.vue.d.ts +3 -3
- package/dist/components/checkbox/checkbox-card-group.vue.d.ts +3 -3
- package/dist/components/checkbox/checkbox-card.vue.d.ts +8 -8
- package/dist/components/checkbox/checkbox-group.vue.d.ts +3 -3
- package/dist/components/checkbox/checkbox.vue.d.ts +12 -12
- package/dist/components/collapsible/collapsible.vue.d.ts +5 -5
- package/dist/components/command/command.vue.d.ts +7 -7
- package/dist/components/config-provider/config-provider.vue.d.ts +5 -5
- package/dist/components/context-menu/context-menu-checkbox.vue.d.ts +9 -9
- package/dist/components/context-menu/context-menu-radio.vue.d.ts +9 -9
- package/dist/components/context-menu/context-menu-wrapper.vue.d.ts +13 -13
- package/dist/components/context-menu/context-menu.vue.d.ts +9 -9
- package/dist/components/dialog/dialog-close.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-pure.vue.d.ts +15 -15
- package/dist/components/dialog/dialog.vue.d.ts +15 -15
- package/dist/components/drawer/drawer-close.vue.d.ts +2 -2
- package/dist/components/drawer/drawer.vue.d.ts +16 -16
- package/dist/components/dropdown-menu/dropdown-menu-checkbox.vue.d.ts +9 -9
- package/dist/components/dropdown-menu/dropdown-menu-radio.vue.d.ts +9 -9
- package/dist/components/dropdown-menu/dropdown-menu-wrapper.vue.d.ts +13 -13
- package/dist/components/dropdown-menu/dropdown-menu.vue.d.ts +9 -9
- package/dist/components/form/form-field-array.vue.d.ts +2 -2
- package/dist/components/form/form-field.vue.d.ts +2 -2
- package/dist/components/form/form.vue.d.ts +2 -2
- package/dist/components/icon/icon.vue.d.ts +3 -3
- package/dist/components/input/input.vue.d.ts +4 -4
- package/dist/components/kbd/kbd.vue.d.ts +3 -3
- package/dist/components/label/label.vue.d.ts +2 -2
- package/dist/components/layout/layout-trigger.vue.d.ts +2 -2
- package/dist/components/layout/layout.vue.d.ts +4 -4
- package/dist/components/link/link.vue.d.ts +3 -3
- package/dist/components/list/list-item.vue.d.ts +2 -2
- package/dist/components/list/list.vue.d.ts +2 -2
- package/dist/components/menu/menu-checkbox-options.vue.d.ts +3 -3
- package/dist/components/menu/menu-option.vue.d.ts +9 -9
- package/dist/components/menu/menu-options.vue.d.ts +9 -9
- package/dist/components/menu/menu-radio-options.vue.d.ts +3 -3
- package/dist/components/navigation-menu/navigation-menu.vue.d.ts +13 -13
- package/dist/components/number-input/number-input.vue.d.ts +4 -4
- package/dist/components/pagination/pagination.vue.d.ts +4 -4
- package/dist/components/password/password.vue.d.ts +4 -4
- package/dist/components/popover/popover.vue.d.ts +15 -15
- package/dist/components/radio-group/radio-card-group.vue.d.ts +3 -3
- package/dist/components/radio-group/radio-card.vue.d.ts +2 -2
- package/dist/components/radio-group/radio-group.vue.d.ts +3 -3
- package/dist/components/radio-group/radio.vue.d.ts +2 -2
- package/dist/components/segment/segment.vue.d.ts +3 -3
- package/dist/components/select/select.vue.d.ts +8 -8
- package/dist/components/separator/separator.vue.d.ts +5 -5
- package/dist/components/switch/switch.vue.d.ts +19 -19
- package/dist/components/tabs/tabs.vue.d.ts +3 -3
- package/dist/components/tag/tag.vue.d.ts +4 -4
- package/dist/components/textarea/textarea.vue.d.ts +4 -4
- package/dist/components/tooltip/tooltip.vue.d.ts +11 -11
- package/dist/components/tree/tree-virtualizer.vue.d.ts +5 -5
- package/dist/components/tree/tree.vue.d.ts +5 -5
- package/dist/components/tree-menu/tree-menu-item-wrapper.vue.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu.vue.d.ts +3 -3
- package/dist/components/virtualizer/virtualizer.vue.d.ts +3 -3
- package/dist/variants/button.d.ts +3 -3
- package/dist/variants/checkbox.d.ts +3 -3
- package/dist/variants/kbd.d.ts +3 -3
- package/dist/variants/radio-group.d.ts +3 -3
- package/dist/variants/switch.d.ts +3 -3
- package/dist/variants/toast.d.ts +3 -3
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as vue229 from "vue";
|
|
2
|
+
import * as _soybeanjs_headless113 from "@soybeanjs/headless";
|
|
3
3
|
import { MaybeArray, TreeItemData, TreeRootProps } from "@soybeanjs/headless";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tree/tree.vue.d.ts
|
|
@@ -7,7 +7,7 @@ declare const __VLS_export: <T extends TreeItemData, U extends MaybeArray<string
|
|
|
7
7
|
props: __VLS_PrettifyLocal<TreeRootProps<T, U, M> & {
|
|
8
8
|
"onUpdate:modelValue"?: ((value: string | ((U extends string ? false : M extends true ? true : false) extends infer T_1 ? T_1 extends (U extends string ? false : M extends true ? true : false) ? T_1 extends true ? string[] : string : never : never)) => any) | undefined;
|
|
9
9
|
"onUpdate:expanded"?: ((value: string[]) => any) | undefined;
|
|
10
|
-
}> &
|
|
10
|
+
}> & vue229.PublicProps;
|
|
11
11
|
expose: (exposed: {}) => void;
|
|
12
12
|
attrs: any;
|
|
13
13
|
slots: {
|
|
@@ -15,7 +15,7 @@ declare const __VLS_export: <T extends TreeItemData, U extends MaybeArray<string
|
|
|
15
15
|
} & {
|
|
16
16
|
item?: (props: {
|
|
17
17
|
key: string;
|
|
18
|
-
item:
|
|
18
|
+
item: _soybeanjs_headless113.FlattenedItem<T>;
|
|
19
19
|
modelValue: U | undefined;
|
|
20
20
|
expanded: string[];
|
|
21
21
|
}) => any;
|
|
@@ -23,7 +23,7 @@ declare const __VLS_export: <T extends TreeItemData, U extends MaybeArray<string
|
|
|
23
23
|
bottom?: (props: {}) => any;
|
|
24
24
|
};
|
|
25
25
|
emit: ((evt: "update:modelValue", value: string | ((U extends string ? false : M extends true ? true : false) extends infer T_1 ? T_1 extends (U extends string ? false : M extends true ? true : false) ? T_1 extends true ? string[] : string : never : never)) => void) & ((evt: "update:expanded", value: string[]) => void);
|
|
26
|
-
}>) =>
|
|
26
|
+
}>) => vue229.VNode & {
|
|
27
27
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
28
28
|
};
|
|
29
29
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue224 from "vue";
|
|
2
2
|
|
|
3
3
|
//#region src/components/tree-menu/tree-menu-item-wrapper.vue.d.ts
|
|
4
4
|
declare var __VLS_1: {};
|
|
5
5
|
type __VLS_Slots = {} & {
|
|
6
6
|
default?: (props: typeof __VLS_1) => any;
|
|
7
7
|
};
|
|
8
|
-
declare const __VLS_base:
|
|
8
|
+
declare const __VLS_base: vue224.DefineComponent<{}, {}, {}, {}, {}, vue224.ComponentOptionsMixin, vue224.ComponentOptionsMixin, {}, string, vue224.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue224.ComponentProvideOptions, true, {}, any>;
|
|
9
9
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
10
|
declare const _default: typeof __VLS_export;
|
|
11
11
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TreeMenuGroupOptionData, TreeMenuOptionData, TreeMenuProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue222 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/tree-menu/tree-menu.vue.d.ts
|
|
5
5
|
declare const __VLS_export: <T extends TreeMenuOptionData = TreeMenuOptionData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
@@ -7,7 +7,7 @@ declare const __VLS_export: <T extends TreeMenuOptionData = TreeMenuOptionData>(
|
|
|
7
7
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
8
8
|
"onUpdate:expanded"?: ((value: string[]) => any) | undefined;
|
|
9
9
|
"onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
|
|
10
|
-
}> &
|
|
10
|
+
}> & vue222.PublicProps;
|
|
11
11
|
expose: (exposed: {}) => void;
|
|
12
12
|
attrs: any;
|
|
13
13
|
slots: {
|
|
@@ -35,7 +35,7 @@ declare const __VLS_export: <T extends TreeMenuOptionData = TreeMenuOptionData>(
|
|
|
35
35
|
bottom?: (props: {}) => any;
|
|
36
36
|
};
|
|
37
37
|
emit: ((evt: "update:modelValue", value: string) => void) & ((evt: "update:expanded", value: string[]) => void) & ((evt: "update:collapsed", value: boolean) => void);
|
|
38
|
-
}>) =>
|
|
38
|
+
}>) => vue222.VNode & {
|
|
39
39
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
40
40
|
};
|
|
41
41
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { VirtualizerProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue109 from "vue";
|
|
3
3
|
import * as _tanstack_vue_virtual0 from "@tanstack/vue-virtual";
|
|
4
4
|
|
|
5
5
|
//#region src/components/virtualizer/virtualizer.vue.d.ts
|
|
6
6
|
declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
|
-
props: __VLS_PrettifyLocal<VirtualizerProps<T>> &
|
|
7
|
+
props: __VLS_PrettifyLocal<VirtualizerProps<T>> & vue109.PublicProps;
|
|
8
8
|
expose: (exposed: {}) => void;
|
|
9
9
|
attrs: any;
|
|
10
10
|
slots: {
|
|
@@ -15,7 +15,7 @@ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNull
|
|
|
15
15
|
}) => any;
|
|
16
16
|
};
|
|
17
17
|
emit: {};
|
|
18
|
-
}>) =>
|
|
18
|
+
}>) => vue109.VNode & {
|
|
19
19
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
20
20
|
};
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as tailwind_variants23 from "tailwind-variants";
|
|
2
2
|
import { VariantProps } from "tailwind-variants";
|
|
3
3
|
|
|
4
4
|
//#region src/variants/button.d.ts
|
|
5
|
-
declare const buttonVariants:
|
|
5
|
+
declare const buttonVariants: tailwind_variants23.TVReturnType<{
|
|
6
6
|
color: {
|
|
7
7
|
primary: string;
|
|
8
8
|
destructive: string;
|
|
@@ -92,7 +92,7 @@ declare const buttonVariants: tailwind_variants3.TVReturnType<{
|
|
|
92
92
|
true: string;
|
|
93
93
|
false: string;
|
|
94
94
|
};
|
|
95
|
-
}, undefined,
|
|
95
|
+
}, undefined, tailwind_variants23.TVReturnType<{
|
|
96
96
|
color: {
|
|
97
97
|
primary: string;
|
|
98
98
|
destructive: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as tailwind_variants27 from "tailwind-variants";
|
|
2
2
|
import { VariantProps } from "tailwind-variants";
|
|
3
3
|
|
|
4
4
|
//#region src/variants/checkbox.d.ts
|
|
5
|
-
declare const checkboxVariants:
|
|
5
|
+
declare const checkboxVariants: tailwind_variants27.TVReturnType<{
|
|
6
6
|
color: {
|
|
7
7
|
primary: {
|
|
8
8
|
control: string;
|
|
@@ -164,7 +164,7 @@ declare const checkboxVariants: tailwind_variants11.TVReturnType<{
|
|
|
164
164
|
control: string[];
|
|
165
165
|
indicator: string;
|
|
166
166
|
label: string;
|
|
167
|
-
},
|
|
167
|
+
}, tailwind_variants27.TVReturnType<{
|
|
168
168
|
color: {
|
|
169
169
|
primary: {
|
|
170
170
|
control: string;
|
package/dist/variants/kbd.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as tailwind_variants19 from "tailwind-variants";
|
|
2
2
|
import { VariantProps } from "tailwind-variants";
|
|
3
3
|
|
|
4
4
|
//#region src/variants/kbd.d.ts
|
|
5
|
-
declare const kbdVariants:
|
|
5
|
+
declare const kbdVariants: tailwind_variants19.TVReturnType<{
|
|
6
6
|
variant: {
|
|
7
7
|
solid: string;
|
|
8
8
|
outline: string;
|
|
@@ -30,7 +30,7 @@ declare const kbdVariants: tailwind_variants15.TVReturnType<{
|
|
|
30
30
|
xl: string;
|
|
31
31
|
'2xl': string;
|
|
32
32
|
};
|
|
33
|
-
}, undefined,
|
|
33
|
+
}, undefined, tailwind_variants19.TVReturnType<{
|
|
34
34
|
variant: {
|
|
35
35
|
solid: string;
|
|
36
36
|
outline: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as tailwind_variants3 from "tailwind-variants";
|
|
2
2
|
import { VariantProps } from "tailwind-variants";
|
|
3
3
|
|
|
4
4
|
//#region src/variants/radio-group.d.ts
|
|
5
|
-
declare const radioGroupVariants:
|
|
5
|
+
declare const radioGroupVariants: tailwind_variants3.TVReturnType<{
|
|
6
6
|
color: {
|
|
7
7
|
primary: {
|
|
8
8
|
control: string;
|
|
@@ -180,7 +180,7 @@ declare const radioGroupVariants: tailwind_variants27.TVReturnType<{
|
|
|
180
180
|
control: string[];
|
|
181
181
|
indicator: string;
|
|
182
182
|
label: string;
|
|
183
|
-
},
|
|
183
|
+
}, tailwind_variants3.TVReturnType<{
|
|
184
184
|
color: {
|
|
185
185
|
primary: {
|
|
186
186
|
control: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as tailwind_variants11 from "tailwind-variants";
|
|
2
2
|
import { VariantProps } from "tailwind-variants";
|
|
3
3
|
|
|
4
4
|
//#region src/variants/switch.d.ts
|
|
5
|
-
declare const switchVariants:
|
|
5
|
+
declare const switchVariants: tailwind_variants11.TVReturnType<{
|
|
6
6
|
color: {
|
|
7
7
|
primary: {
|
|
8
8
|
control: string;
|
|
@@ -136,7 +136,7 @@ declare const switchVariants: tailwind_variants19.TVReturnType<{
|
|
|
136
136
|
root: string;
|
|
137
137
|
control: string[];
|
|
138
138
|
thumb: string;
|
|
139
|
-
},
|
|
139
|
+
}, tailwind_variants11.TVReturnType<{
|
|
140
140
|
color: {
|
|
141
141
|
primary: {
|
|
142
142
|
control: string;
|
package/dist/variants/toast.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as tailwind_variants13 from "tailwind-variants";
|
|
2
2
|
import { VariantProps } from "tailwind-variants";
|
|
3
3
|
|
|
4
4
|
//#region src/variants/toast.d.ts
|
|
5
5
|
|
|
6
|
-
declare const toastViewportVariants:
|
|
6
|
+
declare const toastViewportVariants: tailwind_variants13.TVReturnType<{
|
|
7
7
|
size: {
|
|
8
8
|
xs: string;
|
|
9
9
|
sm: string;
|
|
@@ -37,7 +37,7 @@ declare const toastViewportVariants: tailwind_variants23.TVReturnType<{
|
|
|
37
37
|
'bottom-left': string;
|
|
38
38
|
'bottom-right': string;
|
|
39
39
|
};
|
|
40
|
-
}, undefined,
|
|
40
|
+
}, undefined, tailwind_variants13.TVReturnType<{
|
|
41
41
|
size: {
|
|
42
42
|
xs: string;
|
|
43
43
|
sm: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soybeanjs/ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.3
|
|
4
|
+
"version": "0.0.3",
|
|
5
5
|
"description": "SoybeanUI is built on top of SoybeanHeadless, providing a collection of styled components for Vue 3.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Soybean",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"fuse.js": "^7.1.0",
|
|
53
53
|
"tailwind-merge": "^3.4.0",
|
|
54
54
|
"tailwind-variants": "^3.1.1",
|
|
55
|
-
"@soybeanjs/headless": "^0.0.3
|
|
55
|
+
"@soybeanjs/headless": "^0.0.3"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@soybeanjs/cli": "^1.4.1",
|