@soybeanjs/ui 0.2.0 → 0.2.2

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/dist/components/alert-dialog/alert-dialog-action.vue.d.ts +3 -3
  2. package/dist/components/alert-dialog/alert-dialog-cancel.vue.d.ts +3 -3
  3. package/dist/components/alert-dialog/alert-dialog.vue.d.ts +4 -4
  4. package/dist/components/avatar/avatar.vue.d.ts +4 -4
  5. package/dist/components/badge/badge.vue.d.ts +4 -4
  6. package/dist/components/breadcrumb/breadcrumb.vue.d.ts +3 -3
  7. package/dist/components/button/button-group.vue.d.ts +6 -6
  8. package/dist/components/button/button-icon.vue.d.ts +3 -3
  9. package/dist/components/button/button-link.vue.d.ts +3 -3
  10. package/dist/components/button/button-loading.vue.d.ts +3 -3
  11. package/dist/components/button/button.vue.d.ts +4 -4
  12. package/dist/components/card/card.vue.d.ts +3 -3
  13. package/dist/components/checkbox/checkbox-card-group.vue.d.ts +3 -3
  14. package/dist/components/checkbox/checkbox-card.vue.d.ts +8 -8
  15. package/dist/components/checkbox/checkbox-group.vue.d.ts +3 -3
  16. package/dist/components/checkbox/checkbox.vue.d.ts +12 -12
  17. package/dist/components/collapsible/collapsible.vue.d.ts +4 -4
  18. package/dist/components/command/command-option.js +1 -1
  19. package/dist/components/command/command.js +1 -1
  20. package/dist/components/command/command.vue.d.ts +12 -12
  21. package/dist/components/command/index.d.ts +1 -1
  22. package/dist/components/command/shared.js +1 -1
  23. package/dist/components/command/types.d.ts +18 -16
  24. package/dist/components/config-provider/config-provider.vue.d.ts +5 -5
  25. package/dist/components/context-menu/context-menu-checkbox.vue.d.ts +8 -8
  26. package/dist/components/context-menu/context-menu-radio.vue.d.ts +8 -8
  27. package/dist/components/context-menu/context-menu-wrapper.vue.d.ts +11 -11
  28. package/dist/components/context-menu/context-menu.vue.d.ts +8 -8
  29. package/dist/components/dialog/dialog-close.vue.d.ts +2 -2
  30. package/dist/components/dialog/dialog-pure.vue.d.ts +11 -11
  31. package/dist/components/dialog/dialog.vue.d.ts +11 -11
  32. package/dist/components/drawer/drawer-close.vue.d.ts +2 -2
  33. package/dist/components/drawer/drawer.vue.d.ts +11 -11
  34. package/dist/components/dropdown-menu/dropdown-menu-checkbox.vue.d.ts +8 -8
  35. package/dist/components/dropdown-menu/dropdown-menu-radio.vue.d.ts +8 -8
  36. package/dist/components/dropdown-menu/dropdown-menu-wrapper.vue.d.ts +11 -11
  37. package/dist/components/dropdown-menu/dropdown-menu.vue.d.ts +8 -8
  38. package/dist/components/form/form.vue.d.ts +2 -2
  39. package/dist/components/form/use-form.d.ts +14 -14
  40. package/dist/components/icon/icon.vue.d.ts +2 -2
  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 +8 -8
  51. package/dist/components/menu/menu-options.vue.d.ts +8 -8
  52. package/dist/components/menu/menu-radio-options.vue.d.ts +3 -3
  53. package/dist/components/navigation-menu/navigation-menu.vue.d.ts +4 -4
  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 +11 -11
  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 +7 -7
  64. package/dist/components/separator/separator.vue.d.ts +5 -5
  65. package/dist/components/switch/switch.vue.d.ts +22 -22
  66. package/dist/components/tag/tag.vue.d.ts +4 -4
  67. package/dist/components/tooltip/tooltip.vue.d.ts +4 -4
  68. package/dist/components/tree-menu/tree-menu-styled-item.vue.d.ts +2 -2
  69. package/dist/components/tree-menu/tree-menu.vue.d.ts +3 -3
  70. package/dist/index.d.ts +2 -2
  71. package/dist/variants/button.d.ts +3 -3
  72. package/dist/variants/checkbox.d.ts +3 -3
  73. package/dist/variants/kbd.d.ts +3 -3
  74. package/dist/variants/pagination.d.ts +3 -3
  75. package/dist/variants/radio-group.d.ts +3 -3
  76. package/dist/variants/separator.d.ts +3 -3
  77. package/dist/variants/tabs.d.ts +3 -3
  78. package/dist/variants/tag.d.ts +3 -3
  79. package/dist/variants/textarea.d.ts +3 -3
  80. package/dist/variants/toast.d.ts +3 -3
  81. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  import { AlertDialogActionProps } from "./types.js";
2
- import * as vue22 from "vue";
2
+ import * as vue27 from "vue";
3
3
 
4
4
  //#region src/components/alert-dialog/alert-dialog-action.vue.d.ts
5
5
  declare var __VLS_8: {}, __VLS_16: {};
@@ -8,9 +8,9 @@ type __VLS_Slots = {} & {
8
8
  } & {
9
9
  default?: (props: typeof __VLS_16) => any;
10
10
  };
11
- declare const __VLS_base: vue22.DefineComponent<AlertDialogActionProps, {}, {}, {}, {}, vue22.ComponentOptionsMixin, vue22.ComponentOptionsMixin, {}, string, vue22.PublicProps, Readonly<AlertDialogActionProps> & Readonly<{}>, {
11
+ declare const __VLS_base: vue27.DefineComponent<AlertDialogActionProps, {}, {}, {}, {}, vue27.ComponentOptionsMixin, vue27.ComponentOptionsMixin, {}, string, vue27.PublicProps, Readonly<AlertDialogActionProps> & Readonly<{}>, {
12
12
  text: string;
13
- }, {}, {}, {}, string, vue22.ComponentProvideOptions, false, {}, any>;
13
+ }, {}, {}, {}, string, vue27.ComponentProvideOptions, false, {}, any>;
14
14
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
15
  declare const _default: typeof __VLS_export;
16
16
  type __VLS_WithSlots<T, S> = T & {
@@ -1,7 +1,7 @@
1
1
  import { ButtonVariant } from "../../variants/button.js";
2
2
  import { AlertDialogCancelProps } from "./types.js";
3
3
  import "../button/index.js";
4
- import * as vue17 from "vue";
4
+ import * as vue22 from "vue";
5
5
 
6
6
  //#region src/components/alert-dialog/alert-dialog-cancel.vue.d.ts
7
7
  declare var __VLS_8: {}, __VLS_16: {};
@@ -10,10 +10,10 @@ type __VLS_Slots = {} & {
10
10
  } & {
11
11
  default?: (props: typeof __VLS_16) => any;
12
12
  };
13
- declare const __VLS_base: vue17.DefineComponent<AlertDialogCancelProps, {}, {}, {}, {}, vue17.ComponentOptionsMixin, vue17.ComponentOptionsMixin, {}, string, vue17.PublicProps, Readonly<AlertDialogCancelProps> & Readonly<{}>, {
13
+ declare const __VLS_base: vue22.DefineComponent<AlertDialogCancelProps, {}, {}, {}, {}, vue22.ComponentOptionsMixin, vue22.ComponentOptionsMixin, {}, string, vue22.PublicProps, Readonly<AlertDialogCancelProps> & Readonly<{}>, {
14
14
  text: string;
15
15
  variant: ButtonVariant;
16
- }, {}, {}, {}, string, vue17.ComponentProvideOptions, false, {}, any>;
16
+ }, {}, {}, {}, string, vue22.ComponentProvideOptions, false, {}, any>;
17
17
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
18
  declare const _default: typeof __VLS_export;
19
19
  type __VLS_WithSlots<T, S> = T & {
@@ -1,5 +1,5 @@
1
1
  import { AlertDialogProps } from "./types.js";
2
- import * as vue12 from "vue";
2
+ import * as vue17 from "vue";
3
3
 
4
4
  //#region src/components/alert-dialog/alert-dialog.vue.d.ts
5
5
  declare var __VLS_16: {}, __VLS_52: {
@@ -26,15 +26,15 @@ type __VLS_Slots = {} & {
26
26
  } & {
27
27
  footer?: (props: typeof __VLS_70) => any;
28
28
  };
29
- declare const __VLS_base: vue12.DefineComponent<AlertDialogProps, {}, {}, {}, {}, vue12.ComponentOptionsMixin, vue12.ComponentOptionsMixin, {
29
+ declare const __VLS_base: vue17.DefineComponent<AlertDialogProps, {}, {}, {}, {}, vue17.ComponentOptionsMixin, vue17.ComponentOptionsMixin, {
30
30
  "update:open": (value: boolean) => any;
31
- }, string, vue12.PublicProps, Readonly<AlertDialogProps> & Readonly<{
31
+ }, string, vue17.PublicProps, Readonly<AlertDialogProps> & Readonly<{
32
32
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
33
33
  }>, {
34
34
  open: boolean;
35
35
  defaultOpen: boolean;
36
36
  showIcon: boolean;
37
- }, {}, {}, {}, string, vue12.ComponentProvideOptions, false, {}, any>;
37
+ }, {}, {}, {}, string, vue17.ComponentProvideOptions, false, {}, any>;
38
38
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
39
39
  declare const _default: typeof __VLS_export;
40
40
  type __VLS_WithSlots<T, S> = T & {
@@ -1,5 +1,5 @@
1
1
  import { AvatarProps } from "./types.js";
2
- import * as vue29 from "vue";
2
+ import * as vue12 from "vue";
3
3
  import * as _soybeanjs_headless1 from "@soybeanjs/headless";
4
4
 
5
5
  //#region src/components/avatar/avatar.vue.d.ts
@@ -11,11 +11,11 @@ type __VLS_Slots = {} & {
11
11
  } & {
12
12
  fallback?: (props: typeof __VLS_25) => any;
13
13
  };
14
- declare const __VLS_base: vue29.DefineComponent<AvatarProps, {}, {}, {}, {}, vue29.ComponentOptionsMixin, vue29.ComponentOptionsMixin, {
14
+ declare const __VLS_base: vue12.DefineComponent<AvatarProps, {}, {}, {}, {}, vue12.ComponentOptionsMixin, vue12.ComponentOptionsMixin, {
15
15
  loadingStatusChange: (status: _soybeanjs_headless1.ImageLoadingStatus) => any;
16
- }, string, vue29.PublicProps, Readonly<AvatarProps> & Readonly<{
16
+ }, string, vue12.PublicProps, Readonly<AvatarProps> & Readonly<{
17
17
  onLoadingStatusChange?: ((status: _soybeanjs_headless1.ImageLoadingStatus) => any) | undefined;
18
- }>, {}, {}, {}, {}, string, vue29.ComponentProvideOptions, false, {}, any>;
18
+ }>, {}, {}, {}, {}, string, vue12.ComponentProvideOptions, false, {}, any>;
19
19
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
20
  declare const _default: typeof __VLS_export;
21
21
  type __VLS_WithSlots<T, S> = T & {
@@ -1,5 +1,5 @@
1
1
  import { BadgeProps } from "./types.js";
2
- import * as vue73 from "vue";
2
+ import * as vue95 from "vue";
3
3
 
4
4
  //#region src/components/badge/badge.vue.d.ts
5
5
  declare var __VLS_10: {}, __VLS_18: {};
@@ -8,13 +8,13 @@ type __VLS_Slots = {} & {
8
8
  } & {
9
9
  content?: (props: typeof __VLS_18) => any;
10
10
  };
11
- declare const __VLS_base: vue73.DefineComponent<BadgeProps, {}, {}, {}, {}, vue73.ComponentOptionsMixin, vue73.ComponentOptionsMixin, {
11
+ declare const __VLS_base: vue95.DefineComponent<BadgeProps, {}, {}, {}, {}, vue95.ComponentOptionsMixin, vue95.ComponentOptionsMixin, {
12
12
  "update:open": (open: boolean) => any;
13
- }, string, vue73.PublicProps, Readonly<BadgeProps> & Readonly<{
13
+ }, string, vue95.PublicProps, Readonly<BadgeProps> & Readonly<{
14
14
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
15
15
  }>, {
16
16
  open: boolean;
17
- }, {}, {}, {}, string, vue73.ComponentProvideOptions, false, {}, any>;
17
+ }, {}, {}, {}, string, vue95.ComponentProvideOptions, false, {}, any>;
18
18
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
19
  declare const _default: typeof __VLS_export;
20
20
  type __VLS_WithSlots<T, S> = T & {
@@ -1,9 +1,9 @@
1
1
  import { BreadcrumbEmits, BreadcrumbOptionData, BreadcrumbProps } from "./types.js";
2
- import * as vue27 from "vue";
2
+ import * as vue34 from "vue";
3
3
 
4
4
  //#region src/components/breadcrumb/breadcrumb.vue.d.ts
5
5
  declare const __VLS_export: <T extends BreadcrumbOptionData = BreadcrumbOptionData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
- props: vue27.PublicProps & __VLS_PrettifyLocal<BreadcrumbProps<T> & {
6
+ props: vue34.PublicProps & __VLS_PrettifyLocal<BreadcrumbProps<T> & {
7
7
  onClick?: ((item: T) => any) | undefined;
8
8
  }> & (typeof globalThis extends {
9
9
  __VLS_PROPS_FALLBACK: infer P;
@@ -42,7 +42,7 @@ declare const __VLS_export: <T extends BreadcrumbOptionData = BreadcrumbOptionDa
42
42
  separator?: (props: {}) => any;
43
43
  };
44
44
  emit: BreadcrumbEmits<T>;
45
- }>) => vue27.VNode & {
45
+ }>) => vue34.VNode & {
46
46
  __ctx?: Awaited<typeof __VLS_setup>;
47
47
  };
48
48
  declare const _default: typeof __VLS_export;
@@ -1,16 +1,16 @@
1
1
  import { ButtonGroupProps } from "./types.js";
2
- import * as vue68 from "vue";
3
- import * as _soybeanjs_headless13 from "@soybeanjs/headless";
2
+ import * as vue100 from "vue";
3
+ import * as _soybeanjs_headless32 from "@soybeanjs/headless";
4
4
 
5
5
  //#region src/components/button/button-group.vue.d.ts
6
6
  declare var __VLS_8: {};
7
7
  type __VLS_Slots = {} & {
8
8
  default?: (props: typeof __VLS_8) => any;
9
9
  };
10
- declare const __VLS_base: vue68.DefineComponent<ButtonGroupProps, {}, {}, {}, {}, vue68.ComponentOptionsMixin, vue68.ComponentOptionsMixin, {}, string, vue68.PublicProps, Readonly<ButtonGroupProps> & Readonly<{}>, {
11
- dir: _soybeanjs_headless13.Direction;
12
- orientation: _soybeanjs_headless13.DataOrientation;
13
- }, {}, {}, {}, string, vue68.ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_base: vue100.DefineComponent<ButtonGroupProps, {}, {}, {}, {}, vue100.ComponentOptionsMixin, vue100.ComponentOptionsMixin, {}, string, vue100.PublicProps, Readonly<ButtonGroupProps> & Readonly<{}>, {
11
+ dir: _soybeanjs_headless32.Direction;
12
+ orientation: _soybeanjs_headless32.DataOrientation;
13
+ }, {}, {}, {}, string, vue100.ComponentProvideOptions, false, {}, any>;
14
14
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
15
  declare const _default: typeof __VLS_export;
16
16
  type __VLS_WithSlots<T, S> = T & {
@@ -2,15 +2,15 @@ import { ThemeColor } from "../../theme/types.js";
2
2
  import { ButtonShape, ButtonVariant } from "../../variants/button.js";
3
3
  import { ButtonIconProps } from "./types.js";
4
4
  import "../../index.js";
5
- import * as vue58 from "vue";
5
+ import * as vue75 from "vue";
6
6
 
7
7
  //#region src/components/button/button-icon.vue.d.ts
8
- declare const __VLS_export: vue58.DefineComponent<ButtonIconProps, {}, {}, {}, {}, vue58.ComponentOptionsMixin, vue58.ComponentOptionsMixin, {}, string, vue58.PublicProps, Readonly<ButtonIconProps> & Readonly<{}>, {
8
+ declare const __VLS_export: vue75.DefineComponent<ButtonIconProps, {}, {}, {}, {}, vue75.ComponentOptionsMixin, vue75.ComponentOptionsMixin, {}, string, vue75.PublicProps, Readonly<ButtonIconProps> & Readonly<{}>, {
9
9
  color: ThemeColor;
10
10
  variant: ButtonVariant;
11
11
  shape: ButtonShape;
12
12
  fitContent: boolean;
13
- }, {}, {}, {}, string, vue58.ComponentProvideOptions, false, {}, any>;
13
+ }, {}, {}, {}, string, vue75.ComponentProvideOptions, false, {}, any>;
14
14
  declare const _default: typeof __VLS_export;
15
15
  //#endregion
16
16
  export { _default };
@@ -1,6 +1,6 @@
1
1
  import { ButtonVariant } from "../../variants/button.js";
2
2
  import { ButtonLinkProps } from "./types.js";
3
- import * as vue63 from "vue";
3
+ import * as vue90 from "vue";
4
4
 
5
5
  //#region src/components/button/button-link.vue.d.ts
6
6
  declare var __VLS_14: {
@@ -11,7 +11,7 @@ declare var __VLS_14: {
11
11
  type __VLS_Slots = {} & {
12
12
  default?: (props: typeof __VLS_14) => any;
13
13
  };
14
- declare const __VLS_base: vue63.DefineComponent<ButtonLinkProps, {}, {}, {}, {}, vue63.ComponentOptionsMixin, vue63.ComponentOptionsMixin, {}, string, vue63.PublicProps, Readonly<ButtonLinkProps> & Readonly<{}>, {
14
+ declare const __VLS_base: vue90.DefineComponent<ButtonLinkProps, {}, {}, {}, {}, vue90.ComponentOptionsMixin, vue90.ComponentOptionsMixin, {}, string, vue90.PublicProps, Readonly<ButtonLinkProps> & Readonly<{}>, {
15
15
  disabled: boolean;
16
16
  replace: boolean;
17
17
  variant: ButtonVariant;
@@ -20,7 +20,7 @@ declare const __VLS_base: vue63.DefineComponent<ButtonLinkProps, {}, {}, {}, {},
20
20
  noRel: boolean;
21
21
  prefetch: boolean;
22
22
  noPrefetch: boolean;
23
- }, {}, {}, {}, string, vue63.ComponentProvideOptions, false, {}, any>;
23
+ }, {}, {}, {}, string, vue90.ComponentProvideOptions, false, {}, any>;
24
24
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
25
  declare const _default: typeof __VLS_export;
26
26
  type __VLS_WithSlots<T, S> = T & {
@@ -1,5 +1,5 @@
1
1
  import { ButtonLoadingProps } from "./types.js";
2
- import * as vue53 from "vue";
2
+ import * as vue85 from "vue";
3
3
  import { Align } from "@soybeanjs/headless";
4
4
 
5
5
  //#region src/components/button/button-loading.vue.d.ts
@@ -17,10 +17,10 @@ type __VLS_Slots = {} & {
17
17
  } & {
18
18
  trailing?: (props: typeof __VLS_33) => any;
19
19
  };
20
- declare const __VLS_base: vue53.DefineComponent<ButtonLoadingProps, {}, {}, {}, {}, vue53.ComponentOptionsMixin, vue53.ComponentOptionsMixin, {}, string, vue53.PublicProps, Readonly<ButtonLoadingProps> & Readonly<{}>, {
20
+ declare const __VLS_base: vue85.DefineComponent<ButtonLoadingProps, {}, {}, {}, {}, vue85.ComponentOptionsMixin, vue85.ComponentOptionsMixin, {}, string, vue85.PublicProps, Readonly<ButtonLoadingProps> & Readonly<{}>, {
21
21
  loadingIcon: string;
22
22
  loadingPosition: Align;
23
- }, {}, {}, {}, string, vue53.ComponentProvideOptions, false, {}, any>;
23
+ }, {}, {}, {}, string, vue85.ComponentProvideOptions, false, {}, any>;
24
24
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
25
  declare const _default: typeof __VLS_export;
26
26
  type __VLS_WithSlots<T, S> = T & {
@@ -1,5 +1,5 @@
1
1
  import { ButtonProps } from "./types.js";
2
- import * as vue48 from "vue";
2
+ import * as vue80 from "vue";
3
3
 
4
4
  //#region src/components/button/button.vue.d.ts
5
5
  declare var __VLS_10: {}, __VLS_12: {}, __VLS_14: {};
@@ -10,11 +10,11 @@ type __VLS_Slots = {} & {
10
10
  } & {
11
11
  trailing?: (props: typeof __VLS_14) => any;
12
12
  };
13
- declare const __VLS_base: vue48.DefineComponent<ButtonProps, {}, {}, {}, {}, vue48.ComponentOptionsMixin, vue48.ComponentOptionsMixin, {
13
+ declare const __VLS_base: vue80.DefineComponent<ButtonProps, {}, {}, {}, {}, vue80.ComponentOptionsMixin, vue80.ComponentOptionsMixin, {
14
14
  click: (event: MouseEvent) => any;
15
- }, string, vue48.PublicProps, Readonly<ButtonProps> & Readonly<{
15
+ }, string, vue80.PublicProps, Readonly<ButtonProps> & Readonly<{
16
16
  onClick?: ((event: MouseEvent) => any) | undefined;
17
- }>, {}, {}, {}, {}, string, vue48.ComponentProvideOptions, false, {}, any>;
17
+ }>, {}, {}, {}, {}, string, vue80.ComponentProvideOptions, false, {}, any>;
18
18
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
19
  declare const _default: typeof __VLS_export;
20
20
  type __VLS_WithSlots<T, S> = T & {
@@ -1,5 +1,5 @@
1
1
  import { CardProps } from "./types.js";
2
- import * as vue78 from "vue";
2
+ import * as vue164 from "vue";
3
3
 
4
4
  //#region src/components/card/card.vue.d.ts
5
5
  type Slots = {
@@ -14,9 +14,9 @@ type Slots = {
14
14
  description: () => any;
15
15
  };
16
16
  type __VLS_Slots = Slots;
17
- declare const __VLS_base: vue78.DefineComponent<CardProps, {}, {}, {}, {}, vue78.ComponentOptionsMixin, vue78.ComponentOptionsMixin, {}, string, vue78.PublicProps, Readonly<CardProps> & Readonly<{}>, {
17
+ declare const __VLS_base: vue164.DefineComponent<CardProps, {}, {}, {}, {}, vue164.ComponentOptionsMixin, vue164.ComponentOptionsMixin, {}, string, vue164.PublicProps, Readonly<CardProps> & Readonly<{}>, {
18
18
  scrollable: boolean;
19
- }, {}, {}, {}, string, vue78.ComponentProvideOptions, false, {}, any>;
19
+ }, {}, {}, {}, string, vue164.ComponentProvideOptions, false, {}, any>;
20
20
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
21
21
  declare const _default: typeof __VLS_export;
22
22
  type __VLS_WithSlots<T, S> = T & {
@@ -1,10 +1,10 @@
1
1
  import { CheckboxCardGroupOptionData, CheckboxCardGroupProps } from "./types.js";
2
- import * as vue34 from "vue";
2
+ import * as vue134 from "vue";
3
3
  import { DefinedValue } from "@soybeanjs/headless";
4
4
 
5
5
  //#region src/components/checkbox/checkbox-card-group.vue.d.ts
6
6
  declare const __VLS_export: <T extends DefinedValue = DefinedValue, S extends CheckboxCardGroupOptionData<T> = CheckboxCardGroupOptionData<T>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
7
- props: vue34.PublicProps & __VLS_PrettifyLocal<CheckboxCardGroupProps<T, S> & {
7
+ props: vue134.PublicProps & __VLS_PrettifyLocal<CheckboxCardGroupProps<T, S> & {
8
8
  "onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
9
9
  }> & (typeof globalThis extends {
10
10
  __VLS_PROPS_FALLBACK: infer P;
@@ -13,7 +13,7 @@ declare const __VLS_export: <T extends DefinedValue = DefinedValue, S extends Ch
13
13
  attrs: any;
14
14
  slots: {};
15
15
  emit: (evt: "update:modelValue", value: T[]) => void;
16
- }>) => vue34.VNode & {
16
+ }>) => vue134.VNode & {
17
17
  __ctx?: Awaited<typeof __VLS_setup>;
18
18
  };
19
19
  declare const _default: typeof __VLS_export;
@@ -1,6 +1,6 @@
1
1
  import { CheckboxCardProps } from "./types.js";
2
- import * as vue41 from "vue";
3
- import * as _soybeanjs_headless10 from "@soybeanjs/headless";
2
+ import * as vue136 from "vue";
3
+ import * as _soybeanjs_headless105 from "@soybeanjs/headless";
4
4
 
5
5
  //#region src/components/checkbox/checkbox-card.vue.d.ts
6
6
  declare var __VLS_21: {
@@ -11,13 +11,13 @@ type __VLS_Slots = {} & {
11
11
  } & {
12
12
  description?: (props: typeof __VLS_29) => any;
13
13
  };
14
- declare const __VLS_base: vue41.DefineComponent<CheckboxCardProps, {}, {}, {}, {}, vue41.ComponentOptionsMixin, vue41.ComponentOptionsMixin, {
15
- "update:modelValue": (value: _soybeanjs_headless10.CheckedState | null) => any;
16
- }, string, vue41.PublicProps, Readonly<CheckboxCardProps> & Readonly<{
17
- "onUpdate:modelValue"?: ((value: _soybeanjs_headless10.CheckedState | null) => any) | undefined;
14
+ declare const __VLS_base: vue136.DefineComponent<CheckboxCardProps, {}, {}, {}, {}, vue136.ComponentOptionsMixin, vue136.ComponentOptionsMixin, {
15
+ "update:modelValue": (value: _soybeanjs_headless105.CheckedState | null) => any;
16
+ }, string, vue136.PublicProps, Readonly<CheckboxCardProps> & Readonly<{
17
+ "onUpdate:modelValue"?: ((value: _soybeanjs_headless105.CheckedState | null) => any) | undefined;
18
18
  }>, {
19
- modelValue: _soybeanjs_headless10.CheckedState | null;
20
- }, {}, {}, {}, string, vue41.ComponentProvideOptions, false, {}, any>;
19
+ modelValue: _soybeanjs_headless105.CheckedState | null;
20
+ }, {}, {}, {}, string, vue136.ComponentProvideOptions, false, {}, any>;
21
21
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
22
  declare const _default: typeof __VLS_export;
23
23
  type __VLS_WithSlots<T, S> = T & {
@@ -1,10 +1,10 @@
1
1
  import { CheckboxGroupOptionData, CheckboxGroupProps } from "./types.js";
2
- import * as vue46 from "vue";
2
+ import * as vue127 from "vue";
3
3
  import { DefinedValue } from "@soybeanjs/headless";
4
4
 
5
5
  //#region src/components/checkbox/checkbox-group.vue.d.ts
6
6
  declare const __VLS_export: <T extends DefinedValue = DefinedValue, S extends CheckboxGroupOptionData<T> = CheckboxGroupOptionData<T>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
7
- props: vue46.PublicProps & __VLS_PrettifyLocal<CheckboxGroupProps<T, S> & {
7
+ props: vue127.PublicProps & __VLS_PrettifyLocal<CheckboxGroupProps<T, S> & {
8
8
  "onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
9
9
  }> & (typeof globalThis extends {
10
10
  __VLS_PROPS_FALLBACK: infer P;
@@ -13,7 +13,7 @@ declare const __VLS_export: <T extends DefinedValue = DefinedValue, S extends Ch
13
13
  attrs: any;
14
14
  slots: {};
15
15
  emit: (evt: "update:modelValue", value: T[]) => void;
16
- }>) => vue46.VNode & {
16
+ }>) => vue127.VNode & {
17
17
  __ctx?: Awaited<typeof __VLS_setup>;
18
18
  };
19
19
  declare const _default: typeof __VLS_export;
@@ -1,28 +1,28 @@
1
1
  import { CheckboxProps } from "./types.js";
2
- import * as vue36 from "vue";
3
- import * as _soybeanjs_headless3 from "@soybeanjs/headless";
2
+ import * as vue129 from "vue";
3
+ import * as _soybeanjs_headless98 from "@soybeanjs/headless";
4
4
 
5
5
  //#region src/components/checkbox/checkbox.vue.d.ts
6
6
  declare var __VLS_28: {
7
- modelValue: _soybeanjs_headless3.CheckedState | null | undefined;
8
- state: _soybeanjs_headless3.CheckedState;
7
+ modelValue: _soybeanjs_headless98.CheckedState | null | undefined;
8
+ state: _soybeanjs_headless98.CheckedState;
9
9
  }, __VLS_41: {
10
10
  id: string;
11
- modelValue: _soybeanjs_headless3.CheckedState | null | undefined;
12
- state: _soybeanjs_headless3.CheckedState;
11
+ modelValue: _soybeanjs_headless98.CheckedState | null | undefined;
12
+ state: _soybeanjs_headless98.CheckedState;
13
13
  };
14
14
  type __VLS_Slots = {} & {
15
15
  indicator?: (props: typeof __VLS_28) => any;
16
16
  } & {
17
17
  default?: (props: typeof __VLS_41) => any;
18
18
  };
19
- declare const __VLS_base: vue36.DefineComponent<CheckboxProps, {}, {}, {}, {}, vue36.ComponentOptionsMixin, vue36.ComponentOptionsMixin, {
20
- "update:modelValue": (value: _soybeanjs_headless3.CheckedState | null) => any;
21
- }, string, vue36.PublicProps, Readonly<CheckboxProps> & Readonly<{
22
- "onUpdate:modelValue"?: ((value: _soybeanjs_headless3.CheckedState | null) => any) | undefined;
19
+ declare const __VLS_base: vue129.DefineComponent<CheckboxProps, {}, {}, {}, {}, vue129.ComponentOptionsMixin, vue129.ComponentOptionsMixin, {
20
+ "update:modelValue": (value: _soybeanjs_headless98.CheckedState | null) => any;
21
+ }, string, vue129.PublicProps, Readonly<CheckboxProps> & Readonly<{
22
+ "onUpdate:modelValue"?: ((value: _soybeanjs_headless98.CheckedState | null) => any) | undefined;
23
23
  }>, {
24
- modelValue: _soybeanjs_headless3.CheckedState | null;
25
- }, {}, {}, {}, string, vue36.ComponentProvideOptions, false, {}, any>;
24
+ modelValue: _soybeanjs_headless98.CheckedState | null;
25
+ }, {}, {}, {}, string, vue129.ComponentProvideOptions, false, {}, any>;
26
26
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
27
27
  declare const _default: typeof __VLS_export;
28
28
  type __VLS_WithSlots<T, S> = T & {
@@ -1,5 +1,5 @@
1
1
  import { CollapsibleProps } from "./types.js";
2
- import * as vue85 from "vue";
2
+ import * as vue179 from "vue";
3
3
 
4
4
  //#region src/components/collapsible/collapsible.vue.d.ts
5
5
  declare var __VLS_10: {
@@ -8,15 +8,15 @@ declare var __VLS_10: {
8
8
  type __VLS_Slots = {} & {
9
9
  default?: (props: typeof __VLS_10) => any;
10
10
  };
11
- declare const __VLS_base: vue85.DefineComponent<CollapsibleProps, {}, {}, {}, {}, vue85.ComponentOptionsMixin, vue85.ComponentOptionsMixin, {
11
+ declare const __VLS_base: vue179.DefineComponent<CollapsibleProps, {}, {}, {}, {}, vue179.ComponentOptionsMixin, vue179.ComponentOptionsMixin, {
12
12
  "update:open": (value: boolean) => any;
13
- }, string, vue85.PublicProps, Readonly<CollapsibleProps> & Readonly<{
13
+ }, string, vue179.PublicProps, Readonly<CollapsibleProps> & Readonly<{
14
14
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
15
15
  }>, {
16
16
  open: boolean;
17
17
  defaultOpen: boolean;
18
18
  unmountOnHide: boolean;
19
- }, {}, {}, {}, string, vue85.ComponentProvideOptions, false, {}, any>;
19
+ }, {}, {}, {}, string, vue179.ComponentProvideOptions, false, {}, any>;
20
20
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
21
21
  declare const _default: typeof __VLS_export;
22
22
  type __VLS_WithSlots<T, S> = T & {
@@ -1 +1 @@
1
- import e from"./command-single-option.js";import t from"./command-group-option.js";import{isCommandGroupOption as n}from"./shared.js";import{computed as r,createBlock as i,createSlots as a,defineComponent as o,mergeProps as s,openBlock as c,renderList as l,renderSlot as u,unref as d,useSlots as f,withCtx as p}from"vue";var m=o({name:`SCommandOption`,inheritAttrs:!1,__name:`command-option`,props:{item:{},groupProps:{},groupLabelProps:{},itemProps:{},itemLabelProps:{},shortcutProps:{},separatorProps:{}},emits:[`select`],setup(o,{emit:m}){let h=m,g=f(),_=r(()=>Object.keys(g));return(r,f)=>d(n)(o.item)?(c(),i(t,s({key:0},o.groupProps,{item:o.item,"group-label-props":o.groupLabelProps,"item-props":o.itemProps,"item-label-props":o.itemLabelProps,"shortcut-props":o.shortcutProps,"separator-props":o.separatorProps,onSelect:f[0]||=e=>h(`select`,e)}),a({_:2},[l(_.value,e=>({name:e,fn:p(t=>[u(r.$slots,e,{item:t.item})])}))]),1040,[`item`,`group-label-props`,`item-props`,`item-label-props`,`shortcut-props`,`separator-props`])):(c(),i(e,s({key:1},o.itemProps,{item:o.item,"item-label-props":o.itemLabelProps,"shortcut-props":o.shortcutProps,"separator-props":o.separatorProps,onSelect:f[1]||=e=>h(`select`,e)}),a({_:2},[l(_.value,e=>({name:e,fn:p(()=>[u(r.$slots,e,{item:o.item})])}))]),1040,[`item`,`item-label-props`,`shortcut-props`,`separator-props`]))}});export{m as default};
1
+ import e from"./command-single-option.js";import t from"./command-group-option.js";import{computed as n,createBlock as r,createSlots as i,defineComponent as a,mergeProps as o,openBlock as s,renderList as c,renderSlot as l,useSlots as u,withCtx as d}from"vue";var f=a({name:`SCommandOption`,inheritAttrs:!1,__name:`command-option`,props:{item:{},groupProps:{},groupLabelProps:{},itemProps:{},itemLabelProps:{},shortcutProps:{},separatorProps:{}},emits:[`select`],setup(a,{emit:f}){let p=f,m=u(),h=n(()=>Object.keys(m));return(n,u)=>a.item.items?(s(),r(t,o({key:0},a.groupProps,{item:a.item,"group-label-props":a.groupLabelProps,"item-props":a.itemProps,"item-label-props":a.itemLabelProps,"shortcut-props":a.shortcutProps,"separator-props":a.separatorProps,onSelect:u[0]||=e=>p(`select`,e)}),i({_:2},[c(h.value,e=>({name:e,fn:d(t=>[l(n.$slots,e,{item:t.item})])}))]),1040,[`item`,`group-label-props`,`item-props`,`item-label-props`,`shortcut-props`,`separator-props`])):(s(),r(e,o({key:1},a.itemProps,{item:a.item,"item-label-props":a.itemLabelProps,"shortcut-props":a.shortcutProps,"separator-props":a.separatorProps,onSelect:u[1]||=e=>p(`select`,e)}),i({_:2},[c(h.value,e=>({name:e,fn:d(()=>[l(n.$slots,e,{item:a.item})])}))]),1040,[`item`,`item-label-props`,`shortcut-props`,`separator-props`]))}});export{f as default};
@@ -1 +1 @@
1
- import{mergeSlotVariants as e}from"../../theme/shared.js";import t from"../icon/icon.js";import{commandVariants as n}from"../../variants/command.js";import{provideCommandExtraUi as r}from"./context.js";import{getCommandHighlightSearchOption as i,getCommandItemOptions as a,getCommandSearchOptions as o}from"./shared.js";import s from"./command-option.js";import{Fragment as c,computed as l,createBlock as u,createCommentVNode as d,createElementBlock as f,createTextVNode as p,createVNode as m,defineComponent as h,guardReactiveProps as g,isRef as _,mergeProps as v,normalizeClass as y,normalizeProps as b,openBlock as x,renderList as S,renderSlot as C,toDisplayString as w,toHandlers as T,unref as E,withCtx as D}from"vue";import{useControllableState as O,useForwardListeners as k,useOmitProps as A,usePickProps as j}from"@soybeanjs/headless/composables";import{ListboxContent as M,ListboxFilter as N,ListboxRoot as P,provideListboxUi as F}from"@soybeanjs/headless";import{useFuse as I}from"@vueuse/integrations/useFuse";import{defu as L}from"defu";var R=h({name:`SCommand`,__name:`command`,props:{class:{},size:{},ui:{},items:{},listProps:{},itemProps:{},itemLabelProps:{},groupProps:{},groupLabelProps:{},shortcutProps:{},separatorProps:{},inputProps:{},searchTerm:{},clearable:{type:Boolean},fuseOptions:{},emptyProps:{},emptyLabel:{},orientation:{},dir:{},disabled:{type:Boolean},selectionBehavior:{},highlightOnHover:{type:Boolean},modelValue:{},defaultValue:{},multiple:{},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`highlight`,`entryFocus`,`leave`,`select`,`update:searchTerm`],setup(h,{emit:R}){let z=h,B=R,V=A(z,[`class`,`size`,`ui`,`items`,`listProps`,`itemProps`,`itemLabelProps`,`groupProps`,`groupLabelProps`,`shortcutProps`,`separatorProps`,`inputProps`,`searchTerm`,`fuseOptions`,`emptyProps`,`emptyLabel`]),H=k(B),U=j(z,[`itemProps`,`itemLabelProps`,`groupProps`,`groupLabelProps`,`shortcutProps`,`separatorProps`]),W=O(()=>z.searchTerm,e=>{B(`update:searchTerm`,e)},z.inputProps?.defaultValue||``),G=l(()=>L(z.fuseOptions,{fuseOptions:{ignoreLocation:!0,threshold:.1,keys:[`label`,`groupLabel`]},resultLimit:12,matchAllWhenSearchEmpty:!0})),{results:K}=I(W,l(()=>o(z.items)),G),q=l(()=>a(K.value.map(e=>i(e.item,W.value)))),J=l(()=>e(n({size:z.size}),z.ui,{root:z.class}));return F(l(()=>({...J.value,content:J.value.list,filterRoot:J.value.inputRoot,filterControl:J.value.inputControl,itemIndicator:``,virtualizer:``}))),r(J),(e,n)=>(x(),u(E(P),v(E(V),T(E(H))),{default:D(()=>[m(E(N),v(h.inputProps,{modelValue:E(W),"onUpdate:modelValue":n[0]||=e=>_(W)?W.value=e:null,autofocus:``}),{leading:D(()=>[C(e.$slots,`input-leading`,{},()=>[m(t,{icon:`lucide:search`,class:y(J.value.inputIcon)},null,8,[`class`])])]),trailing:D(({clear:n})=>[h.clearable?(x(),u(t,{key:0,icon:`lucide:x`,class:y(J.value.inputClearable),onClick:n},null,8,[`class`,`onClick`])):d(`v-if`,!0),C(e.$slots,`input-trailing`)]),_:3},16,[`modelValue`]),m(E(M),b(g(h.listProps)),{default:D(()=>[q.value.length?d(`v-if`,!0):(x(),f(`div`,{key:0,class:y(J.value.empty)},[C(e.$slots,`empty`,{},()=>[p(w(h.emptyLabel),1)])],2)),(x(!0),f(c,null,S(q.value,(t,r)=>(x(),u(s,v({ref_for:!0},E(U),{key:r,item:t,onSelect:n[1]||=e=>B(`select`,e)}),{"item-leading":D(t=>[C(e.$slots,`item-leading`,{item:t.item})]),"item-trailing":D(t=>[C(e.$slots,`item-trailing`,{item:t.item})]),"item-label":D(t=>[C(e.$slots,`item-label`,{item:t.item})]),_:2},1040,[`item`]))),128))]),_:3},16),C(e.$slots,`bottom`)]),_:3},16))}});export{R as default};
1
+ import{mergeSlotVariants as e}from"../../theme/shared.js";import t from"../icon/icon.js";import{commandVariants as n}from"../../variants/command.js";import{provideCommandExtraUi as r}from"./context.js";import i from"./command-option.js";import{getCommandHighlightSearchOption as a,getCommandItemOptions as o,getCommandSearchOptions as s}from"./shared.js";import{Fragment as c,computed as l,createBlock as u,createCommentVNode as d,createElementBlock as f,createTextVNode as p,createVNode as m,defineComponent as h,guardReactiveProps as g,isRef as _,mergeProps as v,normalizeClass as y,normalizeProps as b,openBlock as x,renderList as S,renderSlot as C,toDisplayString as w,toHandlers as T,unref as E,withCtx as D}from"vue";import{useControllableState as O,useForwardListeners as k,useOmitProps as A,usePickProps as j}from"@soybeanjs/headless/composables";import{ListboxContent as M,ListboxFilter as N,ListboxRoot as P,provideListboxUi as F}from"@soybeanjs/headless";import{useFuse as I}from"@vueuse/integrations/useFuse";import{defu as L}from"defu";var R=h({name:`SCommand`,__name:`command`,props:{class:{},size:{},ui:{},items:{},placeholder:{},searchTerm:{},clearable:{type:Boolean},fuseOptions:{},listProps:{},itemProps:{},itemLabelProps:{},groupProps:{},groupLabelProps:{},shortcutProps:{},separatorProps:{},inputProps:{},emptyProps:{},emptyLabel:{},orientation:{},dir:{},disabled:{type:Boolean},selectionBehavior:{},highlightOnHover:{type:Boolean},modelValue:{},defaultValue:{},multiple:{},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`highlight`,`entryFocus`,`leave`,`select`,`update:searchTerm`],setup(h,{emit:R}){let z=h,B=R,V=A(z,[`class`,`size`,`ui`,`items`,`placeholder`,`searchTerm`,`fuseOptions`,`emptyLabel`,`listProps`,`itemProps`,`itemLabelProps`,`groupProps`,`groupLabelProps`,`shortcutProps`,`separatorProps`,`inputProps`,`emptyProps`]),H=k(B),U=j(z,[`itemProps`,`itemLabelProps`,`groupProps`,`groupLabelProps`,`shortcutProps`,`separatorProps`]),W=O(()=>z.searchTerm,e=>{B(`update:searchTerm`,e)},z.inputProps?.defaultValue||``),G=l(()=>L(z.fuseOptions,{fuseOptions:{ignoreLocation:!0,threshold:.1,keys:[`label`]},resultLimit:12,matchAllWhenSearchEmpty:!0})),{results:K}=I(W,l(()=>s(z.items)),G),q=l(()=>o(K.value.map(e=>a(e.item,W.value)))),J=l(()=>e(n({size:z.size}),z.ui,{root:z.class})),Y=l(()=>({...J.value,content:J.value.list,filterRoot:J.value.inputRoot,filterControl:J.value.inputControl,itemIndicator:``,virtualizer:``})),X=l(()=>({...z.inputProps,placeholder:z.placeholder??z.inputProps?.placeholder}));return F(Y),r(J),(e,n)=>(x(),u(E(P),v(E(V),T(E(H))),{default:D(()=>[m(E(N),v(X.value,{modelValue:E(W),"onUpdate:modelValue":n[0]||=e=>_(W)?W.value=e:null,autofocus:``}),{leading:D(()=>[C(e.$slots,`input-leading`,{},()=>[m(t,{icon:`lucide:search`,class:y(J.value.inputIcon)},null,8,[`class`])])]),trailing:D(({clear:n})=>[h.clearable?(x(),u(t,{key:0,icon:`lucide:x`,class:y(J.value.inputClearable),onClick:n},null,8,[`class`,`onClick`])):d(`v-if`,!0),C(e.$slots,`input-trailing`)]),_:3},16,[`modelValue`]),m(E(M),b(g(h.listProps)),{default:D(()=>[q.value.length?d(`v-if`,!0):(x(),f(`div`,{key:0,class:y(J.value.empty)},[C(e.$slots,`empty`,{},()=>[p(w(h.emptyLabel),1)])],2)),(x(!0),f(c,null,S(q.value,(t,r)=>(x(),u(i,v({ref_for:!0},E(U),{key:r,item:t,onSelect:n[1]||=e=>B(`select`,e)}),{"item-leading":D(t=>[C(e.$slots,`item-leading`,{item:t.item})]),"item-trailing":D(t=>[C(e.$slots,`item-trailing`,{item:t.item})]),"item-label":D(t=>[C(e.$slots,`item-label`,{item:t.item})]),_:2},1040,[`item`]))),128))]),_:3},16),C(e.$slots,`bottom`)]),_:3},16))}});export{R as default};
@@ -1,14 +1,14 @@
1
- import { CommandOptionData, CommandProps, CommandSingleOptionData } from "./types.js";
2
- import * as vue83 from "vue";
1
+ import { CommandBaseOptionData, CommandProps } from "./types.js";
2
+ import * as vue32 from "vue";
3
3
  import * as _soybeanjs_headless_composables0 from "@soybeanjs/headless/composables";
4
- import * as _soybeanjs_headless15 from "@soybeanjs/headless";
4
+ import * as _soybeanjs_headless3 from "@soybeanjs/headless";
5
5
 
6
6
  //#region src/components/command/command.vue.d.ts
7
- declare const __VLS_export: <T extends CommandOptionData = CommandOptionData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
8
- props: vue83.PublicProps & __VLS_PrettifyLocal<CommandProps<T> & {
9
- onSelect?: ((event: _soybeanjs_headless15.SelectEvent<string>) => any) | undefined;
7
+ declare const __VLS_export: <T extends CommandBaseOptionData = CommandBaseOptionData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
8
+ props: vue32.PublicProps & __VLS_PrettifyLocal<CommandProps<T> & {
9
+ onSelect?: ((event: _soybeanjs_headless3.SelectEvent<string>) => any) | undefined;
10
10
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
11
- onHighlight?: ((payload?: _soybeanjs_headless_composables0.CollectionItemData<_soybeanjs_headless15.ListboxCollectionItemData> | undefined) => any) | undefined;
11
+ onHighlight?: ((payload?: _soybeanjs_headless_composables0.CollectionItemData<_soybeanjs_headless3.ListboxCollectionItemData> | undefined) => any) | undefined;
12
12
  onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
13
13
  onLeave?: ((event: Event) => any) | undefined;
14
14
  "onUpdate:searchTerm"?: ((value: string) => any) | undefined;
@@ -25,21 +25,21 @@ declare const __VLS_export: <T extends CommandOptionData = CommandOptionData>(__
25
25
  empty?: (props: {}) => any;
26
26
  } & {
27
27
  'item-leading'?: (props: {
28
- item: CommandSingleOptionData;
28
+ item: CommandBaseOptionData;
29
29
  }) => any;
30
30
  } & {
31
31
  'item-trailing'?: (props: {
32
- item: CommandSingleOptionData;
32
+ item: CommandBaseOptionData;
33
33
  }) => any;
34
34
  } & {
35
35
  'item-label'?: (props: {
36
- item: CommandSingleOptionData;
36
+ item: CommandBaseOptionData;
37
37
  }) => any;
38
38
  } & {
39
39
  bottom?: (props: {}) => any;
40
40
  };
41
- emit: ((evt: "select", event: _soybeanjs_headless15.SelectEvent<string>) => void) & ((evt: "update:modelValue", value: string) => void) & ((evt: "highlight", payload?: _soybeanjs_headless_composables0.CollectionItemData<_soybeanjs_headless15.ListboxCollectionItemData> | undefined) => void) & ((evt: "entryFocus", event: CustomEvent<any>) => void) & ((evt: "leave", event: Event) => void) & ((evt: "update:searchTerm", value: string) => void);
42
- }>) => vue83.VNode & {
41
+ emit: ((evt: "select", event: _soybeanjs_headless3.SelectEvent<string>) => void) & ((evt: "update:modelValue", value: string) => void) & ((evt: "highlight", payload?: _soybeanjs_headless_composables0.CollectionItemData<_soybeanjs_headless3.ListboxCollectionItemData> | undefined) => void) & ((evt: "entryFocus", event: CustomEvent<any>) => void) & ((evt: "leave", event: Event) => void) & ((evt: "update:searchTerm", value: string) => void);
42
+ }>) => vue32.VNode & {
43
43
  __ctx?: Awaited<typeof __VLS_setup>;
44
44
  };
45
45
  declare const _default: typeof __VLS_export;
@@ -1,2 +1,2 @@
1
- import { CommandEmits, CommandEmptyProps, CommandExtraUi, CommandExtraUiSlot, CommandGroupLabelProps, CommandGroupOptionData, CommandGroupOptionEmits, CommandGroupOptionProps, CommandGroupProps, CommandHighlightSearchOptionData, CommandInputProps, CommandItemEmits, CommandItemLabelProps, CommandItemProps, CommandListProps, CommandOptionData, CommandOptionEmits, CommandOptionProps, CommandProps, CommandRootEmits, CommandRootProps, CommandSearchOptionData, CommandSearchTermEmits, CommandSeparatorProps, CommandShortcutProps, CommandSingleOptionData, CommandSingleOptionEmits, CommandSingleOptionProps, CommandUi, CommandUiSlot } from "./types.js";
1
+ import { CommandBaseOptionData, CommandEmits, CommandEmptyProps, CommandExtraUi, CommandExtraUiSlot, CommandGroupLabelProps, CommandGroupOptionEmits, CommandGroupOptionProps, CommandGroupProps, CommandHighlightSearchOptionData, CommandInputProps, CommandItemEmits, CommandItemLabelProps, CommandItemProps, CommandListProps, CommandOptionData, CommandOptionEmits, CommandOptionProps, CommandProps, CommandRootEmits, CommandRootProps, CommandSearchOptionData, CommandSearchTermEmits, CommandSeparatorProps, CommandShortcutProps, CommandSingleOptionEmits, CommandSingleOptionProps, CommandUi, CommandUiSlot } from "./types.js";
2
2
  import { _default } from "./command.vue.js";
@@ -1 +1 @@
1
- function e(e){return!!e?.items}function t(t){return t.flatMap(t=>e(t)?t.items.map(e=>({groupLabel:t.label,groupSeparator:t.separator,...e})):[t])}function n(e,t){return{...e,labelHtml:a(e,t,`label`)}}function r(e){let t=e.reduce((e,t)=>{let{groupLabel:n,groupSeparator:r,...i}=t;return n?(e[n]||(e[n]={label:n,separator:r,items:[]}),e[n].items.push(i)):e[t.label]=i,e},{});return Object.values(t)}function i(e,t){let n=``,r=0,i=!1;for(let a=e.length-1;a>=0;a--){if(e[a]===`>`)i=!0;else if(e[a]===`<`){i=!1,n=e[a]+n;continue}if(i||r++,r<=t)n=e[a]+n;else{n=`...${n}`;break}}return n}function a(e,t,n,r){function a(e,n=[]){e||=``;let r=``,a=0;n.forEach(n=>{if(n.length===2&&n[0]===n[1])return;let i=n[1]+1,o=i-n[0]>=t.length;r+=[e.substring(a,n[0]),o&&`<mark>`,e.substring(n[0],i),o&&`</mark>`].filter(Boolean).join(``),a=i}),r+=e.substring(a);let o=r.indexOf(`<mark>`);return o!==-1&&(r=i(r,r.length-o)),r}let o=e?.matches?.find(e=>(!n||e.key===n)&&!r?.includes(e.key));if(o)return a(o.value,o.indices)}export{n as getCommandHighlightSearchOption,r as getCommandItemOptions,t as getCommandSearchOptions,e as isCommandGroupOption};
1
+ function e(e){return e.flatMap(e=>e.items?e.items.map(e=>({...e,isGroup:!0})):[e])}function t(e,t){return{...e,labelHtml:i(e,t,`label`)}}function n(e){let t=e.reduce((e,t)=>{let{isGroup:n,...r}=t;if(n){let{value:t,label:n,separator:i}=r;e[t]||(e[t]={value:t,label:n,separator:i}),e[t].items||(e[t].items=[]),e[t].items.push(r)}else e[t.label]=r;return e},{});return Object.values(t)}function r(e,t){let n=``,r=0,i=!1;for(let a=e.length-1;a>=0;a--){if(e[a]===`>`)i=!0;else if(e[a]===`<`){i=!1,n=e[a]+n;continue}if(i||r++,r<=t)n=e[a]+n;else{n=`...${n}`;break}}return n}function i(e,t,n,i){function a(e,n=[]){e||=``;let i=``,a=0;n.forEach(n=>{if(n.length===2&&n[0]===n[1])return;let r=n[1]+1,o=r-n[0]>=t.length;i+=[e.substring(a,n[0]),o&&`<mark>`,e.substring(n[0],r),o&&`</mark>`].filter(Boolean).join(``),a=r}),i+=e.substring(a);let o=i.indexOf(`<mark>`);return o!==-1&&(i=r(i,i.length-o)),i}let o=e?.matches?.find(e=>(!n||e.key===n)&&!i?.includes(e.key));if(o)return a(o.value,o.indices)}export{t as getCommandHighlightSearchOption,n as getCommandItemOptions,e as getCommandSearchOptions};
@@ -6,7 +6,7 @@ import { ClassValue, KbdProps, KbdValue, ListboxContentProps as CommandListProps
6
6
  import { UseFuseOptions } from "@vueuse/integrations/useFuse";
7
7
 
8
8
  //#region src/components/command/types.d.ts
9
- interface CommandSingleOptionData extends Pick<CommandItemProps, 'value' | 'disabled'> {
9
+ interface CommandBaseOptionData extends Pick<CommandItemProps, 'value' | 'disabled'> {
10
10
  /**
11
11
  * The icon of the command item.
12
12
  *
@@ -20,22 +20,24 @@ interface CommandSingleOptionData extends Pick<CommandItemProps, 'value' | 'disa
20
20
  /** The shortcut of the command item. */
21
21
  shortcut?: KbdValue | KbdValue[];
22
22
  }
23
- interface CommandGroupOptionData extends Pick<CommandSingleOptionData, 'separator' | 'label'> {
24
- items: CommandSingleOptionData[];
25
- }
26
- type CommandOptionData = CommandSingleOptionData | CommandGroupOptionData;
23
+ type CommandOptionData<T extends CommandBaseOptionData = CommandBaseOptionData> = T & {
24
+ /**
25
+ * The group option data. only the first level can be a group.
26
+ */
27
+ items?: T[];
28
+ };
27
29
  interface CommandItemLabelProps extends /** @vue-ignore */HTMLAttributes {}
28
30
  interface CommandShortcutProps extends Omit<KbdProps, 'value'> {}
29
31
  interface CommandSeparatorProps extends SeparatorRootProps {}
30
32
  interface CommandSingleOptionProps extends Omit<CommandItemProps, 'value' | 'disabled'> {
31
- item: CommandSingleOptionData;
33
+ item: CommandBaseOptionData;
32
34
  itemLabelProps?: CommandItemLabelProps;
33
35
  shortcutProps?: CommandShortcutProps;
34
36
  separatorProps?: CommandSeparatorProps;
35
37
  }
36
38
  type CommandSingleOptionEmits = CommandItemEmits;
37
39
  interface CommandGroupOptionProps extends Omit<CommandGroupProps, 'onSelect'> {
38
- item: CommandGroupOptionData;
40
+ item: CommandOptionData;
39
41
  groupLabelProps?: CommandGroupLabelProps;
40
42
  itemProps?: CommandItemProps;
41
43
  itemLabelProps?: CommandItemLabelProps;
@@ -53,9 +55,8 @@ interface CommandOptionProps {
53
55
  separatorProps?: CommandSeparatorProps;
54
56
  }
55
57
  type CommandOptionEmits = CommandItemEmits;
56
- interface CommandSearchOptionData extends CommandSingleOptionData {
57
- groupLabel?: string;
58
- groupSeparator?: boolean;
58
+ interface CommandSearchOptionData extends CommandBaseOptionData {
59
+ isGroup?: boolean;
59
60
  }
60
61
  interface CommandHighlightSearchOptionData extends CommandSearchOptionData {
61
62
  labelHtml?: string;
@@ -65,14 +66,18 @@ type CommandUiSlot = Extract<ListboxUiSlot, 'root' | 'item' | 'group' | 'groupLa
65
66
  type CommandExtraUiSlot = 'inputClearable' | 'itemLabel' | 'shortcut' | 'separator' | 'empty';
66
67
  type CommandExtraUi = UiClass<CommandExtraUiSlot>;
67
68
  type CommandUi = UiClass<CommandUiSlot | CommandExtraUiSlot>;
68
- interface CommandProps<T extends CommandOptionData = CommandOptionData> extends Omit<CommandRootProps, 'onSelect'> {
69
+ interface CommandProps<T extends CommandBaseOptionData = CommandBaseOptionData> extends Omit<CommandRootProps, 'onSelect'> {
69
70
  /**
70
71
  * root class
71
72
  */
72
73
  class?: ClassValue;
73
74
  size?: ThemeSize;
74
75
  ui?: Partial<CommandUi>;
75
- items: T[];
76
+ items: CommandOptionData<T>[];
77
+ placeholder?: string;
78
+ searchTerm?: string;
79
+ clearable?: boolean;
80
+ fuseOptions?: UseFuseOptions<CommandSearchOptionData>;
76
81
  listProps?: CommandListProps;
77
82
  itemProps?: CommandItemProps;
78
83
  itemLabelProps?: CommandItemLabelProps;
@@ -81,9 +86,6 @@ interface CommandProps<T extends CommandOptionData = CommandOptionData> extends
81
86
  shortcutProps?: CommandShortcutProps;
82
87
  separatorProps?: CommandSeparatorProps;
83
88
  inputProps?: CommandInputProps;
84
- searchTerm?: string;
85
- clearable?: boolean;
86
- fuseOptions?: UseFuseOptions<CommandSearchOptionData>;
87
89
  emptyProps?: CommandEmptyProps;
88
90
  emptyLabel?: string;
89
91
  }
@@ -92,4 +94,4 @@ type CommandSearchTermEmits = {
92
94
  };
93
95
  type CommandEmits = CommandRootEmits & CommandOptionEmits & CommandSearchTermEmits;
94
96
  //#endregion
95
- export { CommandEmits, CommandEmptyProps, CommandExtraUi, CommandExtraUiSlot, type CommandGroupLabelProps, CommandGroupOptionData, CommandGroupOptionEmits, CommandGroupOptionProps, type CommandGroupProps, CommandHighlightSearchOptionData, type CommandInputProps, type CommandItemEmits, CommandItemLabelProps, type CommandItemProps, type CommandListProps, CommandOptionData, CommandOptionEmits, CommandOptionProps, CommandProps, type CommandRootEmits, type CommandRootProps, CommandSearchOptionData, CommandSearchTermEmits, CommandSeparatorProps, CommandShortcutProps, CommandSingleOptionData, CommandSingleOptionEmits, CommandSingleOptionProps, CommandUi, CommandUiSlot };
97
+ export { CommandBaseOptionData, CommandEmits, CommandEmptyProps, CommandExtraUi, CommandExtraUiSlot, type CommandGroupLabelProps, CommandGroupOptionEmits, CommandGroupOptionProps, type CommandGroupProps, CommandHighlightSearchOptionData, type CommandInputProps, type CommandItemEmits, CommandItemLabelProps, type CommandItemProps, type CommandListProps, CommandOptionData, CommandOptionEmits, CommandOptionProps, CommandProps, type CommandRootEmits, type CommandRootProps, CommandSearchOptionData, CommandSearchTermEmits, CommandSeparatorProps, CommandShortcutProps, CommandSingleOptionEmits, CommandSingleOptionProps, CommandUi, CommandUiSlot };