@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.
Files changed (81) hide show
  1. package/README.md +86 -6
  2. package/README.zh-CN.md +251 -0
  3. package/dist/components/accordion/accordion.vue.d.ts +3 -3
  4. package/dist/components/alert/alert.vue.d.ts +4 -4
  5. package/dist/components/alert-dialog/alert-dialog-action.vue.d.ts +3 -3
  6. package/dist/components/alert-dialog/alert-dialog-cancel.vue.d.ts +3 -3
  7. package/dist/components/alert-dialog/alert-dialog.vue.d.ts +5 -5
  8. package/dist/components/avatar/avatar.vue.d.ts +7 -7
  9. package/dist/components/badge/badge.vue.d.ts +4 -4
  10. package/dist/components/breadcrumb/breadcrumb.vue.d.ts +3 -3
  11. package/dist/components/button/button-group.vue.d.ts +6 -6
  12. package/dist/components/button/button-icon.vue.d.ts +3 -3
  13. package/dist/components/button/button-link.vue.d.ts +4 -4
  14. package/dist/components/button/button-loading.vue.d.ts +3 -3
  15. package/dist/components/button/button.vue.d.ts +4 -4
  16. package/dist/components/card/card.vue.d.ts +3 -3
  17. package/dist/components/checkbox/checkbox-card-group.vue.d.ts +3 -3
  18. package/dist/components/checkbox/checkbox-card.vue.d.ts +8 -8
  19. package/dist/components/checkbox/checkbox-group.vue.d.ts +3 -3
  20. package/dist/components/checkbox/checkbox.vue.d.ts +12 -12
  21. package/dist/components/collapsible/collapsible.vue.d.ts +5 -5
  22. package/dist/components/command/command.vue.d.ts +7 -7
  23. package/dist/components/config-provider/config-provider.vue.d.ts +5 -5
  24. package/dist/components/context-menu/context-menu-checkbox.vue.d.ts +9 -9
  25. package/dist/components/context-menu/context-menu-radio.vue.d.ts +9 -9
  26. package/dist/components/context-menu/context-menu-wrapper.vue.d.ts +13 -13
  27. package/dist/components/context-menu/context-menu.vue.d.ts +9 -9
  28. package/dist/components/dialog/dialog-close.vue.d.ts +2 -2
  29. package/dist/components/dialog/dialog-pure.vue.d.ts +15 -15
  30. package/dist/components/dialog/dialog.vue.d.ts +15 -15
  31. package/dist/components/drawer/drawer-close.vue.d.ts +2 -2
  32. package/dist/components/drawer/drawer.vue.d.ts +16 -16
  33. package/dist/components/dropdown-menu/dropdown-menu-checkbox.vue.d.ts +9 -9
  34. package/dist/components/dropdown-menu/dropdown-menu-radio.vue.d.ts +9 -9
  35. package/dist/components/dropdown-menu/dropdown-menu-wrapper.vue.d.ts +13 -13
  36. package/dist/components/dropdown-menu/dropdown-menu.vue.d.ts +9 -9
  37. package/dist/components/form/form-field-array.vue.d.ts +2 -2
  38. package/dist/components/form/form-field.vue.d.ts +2 -2
  39. package/dist/components/form/form.vue.d.ts +2 -2
  40. package/dist/components/icon/icon.vue.d.ts +3 -3
  41. package/dist/components/input/input.vue.d.ts +4 -4
  42. package/dist/components/kbd/kbd.vue.d.ts +3 -3
  43. package/dist/components/label/label.vue.d.ts +2 -2
  44. package/dist/components/layout/layout-trigger.vue.d.ts +2 -2
  45. package/dist/components/layout/layout.vue.d.ts +4 -4
  46. package/dist/components/link/link.vue.d.ts +3 -3
  47. package/dist/components/list/list-item.vue.d.ts +2 -2
  48. package/dist/components/list/list.vue.d.ts +2 -2
  49. package/dist/components/menu/menu-checkbox-options.vue.d.ts +3 -3
  50. package/dist/components/menu/menu-option.vue.d.ts +9 -9
  51. package/dist/components/menu/menu-options.vue.d.ts +9 -9
  52. package/dist/components/menu/menu-radio-options.vue.d.ts +3 -3
  53. package/dist/components/navigation-menu/navigation-menu.vue.d.ts +13 -13
  54. package/dist/components/number-input/number-input.vue.d.ts +4 -4
  55. package/dist/components/pagination/pagination.vue.d.ts +4 -4
  56. package/dist/components/password/password.vue.d.ts +4 -4
  57. package/dist/components/popover/popover.vue.d.ts +15 -15
  58. package/dist/components/radio-group/radio-card-group.vue.d.ts +3 -3
  59. package/dist/components/radio-group/radio-card.vue.d.ts +2 -2
  60. package/dist/components/radio-group/radio-group.vue.d.ts +3 -3
  61. package/dist/components/radio-group/radio.vue.d.ts +2 -2
  62. package/dist/components/segment/segment.vue.d.ts +3 -3
  63. package/dist/components/select/select.vue.d.ts +8 -8
  64. package/dist/components/separator/separator.vue.d.ts +5 -5
  65. package/dist/components/switch/switch.vue.d.ts +19 -19
  66. package/dist/components/tabs/tabs.vue.d.ts +3 -3
  67. package/dist/components/tag/tag.vue.d.ts +4 -4
  68. package/dist/components/textarea/textarea.vue.d.ts +4 -4
  69. package/dist/components/tooltip/tooltip.vue.d.ts +11 -11
  70. package/dist/components/tree/tree-virtualizer.vue.d.ts +5 -5
  71. package/dist/components/tree/tree.vue.d.ts +5 -5
  72. package/dist/components/tree-menu/tree-menu-item-wrapper.vue.d.ts +2 -2
  73. package/dist/components/tree-menu/tree-menu.vue.d.ts +3 -3
  74. package/dist/components/virtualizer/virtualizer.vue.d.ts +3 -3
  75. package/dist/variants/button.d.ts +3 -3
  76. package/dist/variants/checkbox.d.ts +3 -3
  77. package/dist/variants/kbd.d.ts +3 -3
  78. package/dist/variants/radio-group.d.ts +3 -3
  79. package/dist/variants/switch.d.ts +3 -3
  80. package/dist/variants/toast.d.ts +3 -3
  81. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
- import * as vue279 from "vue";
2
- import * as _soybeanjs_headless154 from "@soybeanjs/headless";
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
- }> & vue279.PublicProps;
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: _soybeanjs_headless154.FlattenedItem<T>;
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
- }>) => vue279.VNode & {
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 vue285 from "vue";
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: vue285.DefineComponent<{}, {}, {}, {}, {}, vue285.ComponentOptionsMixin, vue285.ComponentOptionsMixin, {}, string, vue285.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue285.ComponentProvideOptions, true, {}, any>;
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 vue283 from "vue";
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
- }> & vue283.PublicProps;
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
- }>) => vue283.VNode & {
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 vue127 from "vue";
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>> & vue127.PublicProps;
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
- }>) => vue127.VNode & {
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 tailwind_variants3 from "tailwind-variants";
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: tailwind_variants3.TVReturnType<{
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, tailwind_variants3.TVReturnType<{
95
+ }, undefined, tailwind_variants23.TVReturnType<{
96
96
  color: {
97
97
  primary: string;
98
98
  destructive: string;
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants11 from "tailwind-variants";
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: tailwind_variants11.TVReturnType<{
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
- }, tailwind_variants11.TVReturnType<{
167
+ }, tailwind_variants27.TVReturnType<{
168
168
  color: {
169
169
  primary: {
170
170
  control: string;
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants15 from "tailwind-variants";
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: tailwind_variants15.TVReturnType<{
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, tailwind_variants15.TVReturnType<{
33
+ }, undefined, tailwind_variants19.TVReturnType<{
34
34
  variant: {
35
35
  solid: string;
36
36
  outline: string;
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants27 from "tailwind-variants";
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: tailwind_variants27.TVReturnType<{
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
- }, tailwind_variants27.TVReturnType<{
183
+ }, tailwind_variants3.TVReturnType<{
184
184
  color: {
185
185
  primary: {
186
186
  control: string;
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants19 from "tailwind-variants";
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: tailwind_variants19.TVReturnType<{
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
- }, tailwind_variants19.TVReturnType<{
139
+ }, tailwind_variants11.TVReturnType<{
140
140
  color: {
141
141
  primary: {
142
142
  control: string;
@@ -1,9 +1,9 @@
1
- import * as tailwind_variants23 from "tailwind-variants";
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: tailwind_variants23.TVReturnType<{
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, tailwind_variants23.TVReturnType<{
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-beta.1",
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-beta.1"
55
+ "@soybeanjs/headless": "^0.0.3"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@soybeanjs/cli": "^1.4.1",