@soybeanjs/ui 0.0.2-beta.8 → 0.0.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 (155) hide show
  1. package/README.md +38 -10
  2. package/dist/components/accordion/accordion.vue.d.ts +3 -3
  3. package/dist/components/alert/alert.js +1 -1
  4. package/dist/components/alert/alert.vue.d.ts +4 -4
  5. package/dist/components/alert-dialog/alert-dialog-action.js +1 -1
  6. package/dist/components/alert-dialog/alert-dialog-action.vue.d.ts +3 -3
  7. package/dist/components/alert-dialog/alert-dialog-cancel.js +1 -1
  8. package/dist/components/alert-dialog/alert-dialog-cancel.vue.d.ts +3 -3
  9. package/dist/components/alert-dialog/alert-dialog.js +1 -1
  10. package/dist/components/alert-dialog/alert-dialog.vue.d.ts +5 -4
  11. package/dist/components/alert-dialog/types.d.ts +12 -1
  12. package/dist/components/avatar/avatar.vue.d.ts +7 -7
  13. package/dist/components/badge/badge.vue.d.ts +4 -4
  14. package/dist/components/breadcrumb/breadcrumb.vue.d.ts +3 -3
  15. package/dist/components/button/button-group.js +1 -1
  16. package/dist/components/button/button-group.vue.d.ts +6 -6
  17. package/dist/components/button/button-icon.js +1 -1
  18. package/dist/components/button/button-icon.vue.d.ts +3 -3
  19. package/dist/components/button/button-link.vue.d.ts +4 -4
  20. package/dist/components/button/button-loading.js +1 -1
  21. package/dist/components/button/button-loading.vue.d.ts +3 -3
  22. package/dist/components/button/button.js +1 -1
  23. package/dist/components/button/button.vue.d.ts +4 -4
  24. package/dist/components/card/card.js +1 -1
  25. package/dist/components/card/card.vue.d.ts +3 -3
  26. package/dist/components/card/types.d.ts +0 -6
  27. package/dist/components/checkbox/checkbox-card-group.vue.d.ts +3 -3
  28. package/dist/components/checkbox/checkbox-card.vue.d.ts +8 -8
  29. package/dist/components/checkbox/checkbox-group.vue.d.ts +3 -3
  30. package/dist/components/checkbox/checkbox.vue.d.ts +12 -12
  31. package/dist/components/collapsible/collapsible.vue.d.ts +4 -4
  32. package/dist/components/command/command.vue.d.ts +7 -7
  33. package/dist/components/config-provider/config-provider.js +1 -1
  34. package/dist/components/config-provider/config-provider.vue.d.ts +7 -7
  35. package/dist/components/config-provider/context.js +1 -1
  36. package/dist/components/config-provider/types.d.ts +2 -0
  37. package/dist/components/context-menu/context-menu-checkbox.vue.d.ts +9 -9
  38. package/dist/components/context-menu/context-menu-radio.vue.d.ts +9 -9
  39. package/dist/components/context-menu/context-menu-wrapper.vue.d.ts +11 -11
  40. package/dist/components/context-menu/context-menu.vue.d.ts +9 -9
  41. package/dist/components/dialog/context.d.ts +8 -0
  42. package/dist/components/dialog/context.js +1 -0
  43. package/dist/components/dialog/dialog-close.js +1 -1
  44. package/dist/components/dialog/dialog-close.vue.d.ts +2 -2
  45. package/dist/components/dialog/dialog-provider.js +1 -0
  46. package/dist/components/dialog/dialog-pure.js +1 -1
  47. package/dist/components/dialog/dialog-pure.vue.d.ts +12 -12
  48. package/dist/components/dialog/dialog.js +1 -1
  49. package/dist/components/dialog/dialog.vue.d.ts +12 -12
  50. package/dist/components/dialog/index.d.ts +2 -1
  51. package/dist/components/dialog/types.d.ts +26 -3
  52. package/dist/components/drawer/drawer-close.js +1 -1
  53. package/dist/components/drawer/drawer-close.vue.d.ts +2 -2
  54. package/dist/components/drawer/drawer.js +1 -1
  55. package/dist/components/drawer/drawer.vue.d.ts +13 -13
  56. package/dist/components/dropdown-menu/dropdown-menu-checkbox.vue.d.ts +9 -9
  57. package/dist/components/dropdown-menu/dropdown-menu-radio.vue.d.ts +9 -9
  58. package/dist/components/dropdown-menu/dropdown-menu-wrapper.vue.d.ts +11 -11
  59. package/dist/components/dropdown-menu/dropdown-menu.vue.d.ts +9 -9
  60. package/dist/components/form/form-field-array.vue.d.ts +2 -2
  61. package/dist/components/form/form-field.vue.d.ts +2 -2
  62. package/dist/components/form/form.vue.d.ts +2 -2
  63. package/dist/components/icon/icon.vue.d.ts +4 -4
  64. package/dist/components/input/input.vue.d.ts +4 -4
  65. package/dist/components/kbd/kbd.vue.d.ts +3 -3
  66. package/dist/components/label/label.vue.d.ts +2 -2
  67. package/dist/components/layout/layout-trigger.vue.d.ts +2 -2
  68. package/dist/components/layout/layout.vue.d.ts +4 -4
  69. package/dist/components/link/link.vue.d.ts +4 -4
  70. package/dist/components/list/list-item.vue.d.ts +2 -2
  71. package/dist/components/list/list.vue.d.ts +2 -2
  72. package/dist/components/menu/menu-checkbox-options.vue.d.ts +5 -5
  73. package/dist/components/menu/menu-option.vue.d.ts +9 -9
  74. package/dist/components/menu/menu-options.vue.d.ts +9 -9
  75. package/dist/components/menu/menu-radio-options.vue.d.ts +5 -5
  76. package/dist/components/navigation-menu/navigation-menu.vue.d.ts +13 -13
  77. package/dist/components/number-input/number-input.vue.d.ts +4 -4
  78. package/dist/components/pagination/pagination.vue.d.ts +4 -4
  79. package/dist/components/password/password.vue.d.ts +4 -4
  80. package/dist/components/popover/popover.vue.d.ts +11 -11
  81. package/dist/components/radio-group/radio-card-group.vue.d.ts +3 -3
  82. package/dist/components/radio-group/radio-card.vue.d.ts +2 -2
  83. package/dist/components/radio-group/radio-group.vue.d.ts +3 -3
  84. package/dist/components/radio-group/radio.vue.d.ts +2 -2
  85. package/dist/components/segment/segment.vue.d.ts +3 -3
  86. package/dist/components/select/select.vue.d.ts +7 -7
  87. package/dist/components/separator/separator.vue.d.ts +5 -5
  88. package/dist/components/switch/switch.vue.d.ts +16 -16
  89. package/dist/components/tabs/tabs.vue.d.ts +3 -3
  90. package/dist/components/tag/tag.vue.d.ts +4 -4
  91. package/dist/components/textarea/textarea.vue.d.ts +4 -4
  92. package/dist/components/toast/context.d.ts +8 -0
  93. package/dist/components/toast/context.js +1 -0
  94. package/dist/components/toast/index.d.ts +5 -0
  95. package/dist/components/toast/index.js +1 -0
  96. package/dist/components/toast/shared.js +1 -0
  97. package/dist/components/toast/toast-provider.js +1 -0
  98. package/dist/components/toast/toast.js +1 -0
  99. package/dist/components/toast/toast.vue.d.ts +21 -0
  100. package/dist/components/toast/types.d.ts +60 -0
  101. package/dist/components/tooltip/tooltip.vue.d.ts +7 -7
  102. package/dist/components/tree/tree-virtualizer.vue.d.ts +5 -5
  103. package/dist/components/tree/tree.vue.d.ts +5 -5
  104. package/dist/components/tree-menu/tree-menu-item-wrapper.vue.d.ts +2 -2
  105. package/dist/components/tree-menu/tree-menu-item.js +1 -1
  106. package/dist/components/tree-menu/tree-menu.vue.d.ts +3 -3
  107. package/dist/components/virtualizer/virtualizer.vue.d.ts +3 -3
  108. package/dist/constants/components.d.ts +50 -0
  109. package/dist/constants/components.js +1 -0
  110. package/dist/index.d.ts +13 -8
  111. package/dist/index.js +1 -1
  112. package/dist/nuxt/index.d.ts +10 -0
  113. package/dist/nuxt/index.js +1 -0
  114. package/dist/resolver/index.d.ts +6 -0
  115. package/dist/resolver/index.js +1 -0
  116. package/dist/styles.css +10 -20
  117. package/dist/theme/index.d.ts +1 -0
  118. package/dist/theme/shared.d.ts +1 -0
  119. package/dist/theme/shared.js +1 -1
  120. package/dist/variants/accordion.js +1 -1
  121. package/dist/variants/alert.d.ts +3 -3
  122. package/dist/variants/badge.d.ts +3 -3
  123. package/dist/variants/breadcrumb.js +1 -1
  124. package/dist/variants/button.d.ts +3 -3
  125. package/dist/variants/button.js +1 -1
  126. package/dist/variants/checkbox.d.ts +3 -3
  127. package/dist/variants/checkbox.js +1 -1
  128. package/dist/variants/command.js +1 -1
  129. package/dist/variants/dialog.js +1 -1
  130. package/dist/variants/drawer.js +1 -1
  131. package/dist/variants/input.js +1 -1
  132. package/dist/variants/kbd.d.ts +3 -3
  133. package/dist/variants/label.js +1 -1
  134. package/dist/variants/layout.js +1 -1
  135. package/dist/variants/menu.js +1 -1
  136. package/dist/variants/navigation-menu.js +1 -1
  137. package/dist/variants/number-input.js +1 -1
  138. package/dist/variants/pagination.d.ts +3 -3
  139. package/dist/variants/pagination.js +1 -1
  140. package/dist/variants/popover.js +1 -1
  141. package/dist/variants/radio-group.d.ts +3 -3
  142. package/dist/variants/radio-group.js +1 -1
  143. package/dist/variants/select.js +1 -1
  144. package/dist/variants/switch.d.ts +3 -3
  145. package/dist/variants/switch.js +1 -1
  146. package/dist/variants/tabs.d.ts +3 -3
  147. package/dist/variants/tabs.js +1 -1
  148. package/dist/variants/tag.d.ts +3 -3
  149. package/dist/variants/textarea.d.ts +3 -3
  150. package/dist/variants/textarea.js +1 -1
  151. package/dist/variants/toast.d.ts +61 -0
  152. package/dist/variants/toast.js +1 -0
  153. package/dist/variants/tooltip.js +1 -1
  154. package/dist/variants/tree-menu.js +1 -1
  155. package/package.json +26 -15
@@ -1,13 +1,13 @@
1
1
  import { MenuRadioOptionData, MenuRadioOptionsProps } from "./types.js";
2
- import * as vue168 from "vue";
2
+ import * as vue211 from "vue";
3
3
  import { AcceptableBooleanValue } from "@soybeanjs/headless";
4
4
 
5
5
  //#region src/components/menu/menu-radio-options.vue.d.ts
6
6
  declare const __VLS_export: <T extends AcceptableBooleanValue = AcceptableBooleanValue, S extends MenuRadioOptionData<T> = MenuRadioOptionData<T>>(__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
  props: __VLS_PrettifyLocal<MenuRadioOptionsProps<T, S> & {
8
- "onUpdate:modelValue"?: ((payload: NonNullable<T>) => any) | undefined;
9
8
  onSelect?: ((item: S, event: Event) => any) | undefined;
10
- }> & vue168.PublicProps;
9
+ "onUpdate:modelValue"?: ((payload: NonNullable<T>) => any) | undefined;
10
+ }> & vue211.PublicProps;
11
11
  expose: (exposed: {}) => void;
12
12
  attrs: any;
13
13
  slots: {
@@ -16,8 +16,8 @@ declare const __VLS_export: <T extends AcceptableBooleanValue = AcceptableBoolea
16
16
  'item-trailing': (props: S) => any;
17
17
  'item-indicator-icon': (props: S) => any;
18
18
  };
19
- emit: ((evt: "update:modelValue", payload: NonNullable<T>) => void) & ((evt: "select", item: S, event: Event) => void);
20
- }>) => vue168.VNode & {
19
+ emit: ((evt: "select", item: S, event: Event) => void) & ((evt: "update:modelValue", payload: NonNullable<T>) => void);
20
+ }>) => vue211.VNode & {
21
21
  __ctx?: Awaited<typeof __VLS_setup>;
22
22
  };
23
23
  declare const _default: typeof __VLS_export;
@@ -1,6 +1,6 @@
1
1
  import { NavigationMenuOptionData, NavigationMenuProps } from "./types.js";
2
- import * as vue210 from "vue";
3
- import * as _soybeanjs_headless139 from "@soybeanjs/headless";
2
+ import * as vue200 from "vue";
3
+ import * as _soybeanjs_headless108 from "@soybeanjs/headless";
4
4
 
5
5
  //#region src/components/navigation-menu/navigation-menu.vue.d.ts
6
6
  type Slots = {
@@ -25,25 +25,25 @@ type Slots = {
25
25
  }) => any;
26
26
  };
27
27
  type __VLS_Slots = Slots;
28
- declare const __VLS_base: vue210.DefineComponent<NavigationMenuProps, {}, {}, {}, {}, vue210.ComponentOptionsMixin, vue210.ComponentOptionsMixin, {
29
- "update:modelValue": (value: string) => any;
28
+ declare const __VLS_base: vue200.DefineComponent<NavigationMenuProps, {}, {}, {}, {}, vue200.ComponentOptionsMixin, vue200.ComponentOptionsMixin, {
30
29
  select: (payload: CustomEvent<{
31
30
  originalEvent: Event;
32
31
  }>) => any;
32
+ "update:modelValue": (value: string) => any;
33
33
  escapeKeyDown: (event: KeyboardEvent) => any;
34
- pointerDownOutside: (event: _soybeanjs_headless139.PointerDownOutsideEvent) => any;
35
- focusOutside: (event: _soybeanjs_headless139.FocusOutsideEvent) => any;
36
- interactOutside: (event: _soybeanjs_headless139.PointerDownOutsideEvent | _soybeanjs_headless139.FocusOutsideEvent) => any;
37
- }, string, vue210.PublicProps, Readonly<NavigationMenuProps> & Readonly<{
38
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
34
+ pointerDownOutside: (event: _soybeanjs_headless108.PointerDownOutsideEvent) => any;
35
+ focusOutside: (event: _soybeanjs_headless108.FocusOutsideEvent) => any;
36
+ interactOutside: (event: _soybeanjs_headless108.PointerDownOutsideEvent | _soybeanjs_headless108.FocusOutsideEvent) => any;
37
+ }, string, vue200.PublicProps, Readonly<NavigationMenuProps> & Readonly<{
39
38
  onSelect?: ((payload: CustomEvent<{
40
39
  originalEvent: Event;
41
40
  }>) => any) | undefined;
41
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
42
42
  onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
43
- onPointerDownOutside?: ((event: _soybeanjs_headless139.PointerDownOutsideEvent) => any) | undefined;
44
- onFocusOutside?: ((event: _soybeanjs_headless139.FocusOutsideEvent) => any) | undefined;
45
- onInteractOutside?: ((event: _soybeanjs_headless139.PointerDownOutsideEvent | _soybeanjs_headless139.FocusOutsideEvent) => any) | undefined;
46
- }>, {}, {}, {}, {}, string, vue210.ComponentProvideOptions, false, {}, any>;
43
+ onPointerDownOutside?: ((event: _soybeanjs_headless108.PointerDownOutsideEvent) => any) | undefined;
44
+ onFocusOutside?: ((event: _soybeanjs_headless108.FocusOutsideEvent) => any) | undefined;
45
+ onInteractOutside?: ((event: _soybeanjs_headless108.PointerDownOutsideEvent | _soybeanjs_headless108.FocusOutsideEvent) => any) | undefined;
46
+ }>, {}, {}, {}, {}, string, vue200.ComponentProvideOptions, false, {}, any>;
47
47
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
48
48
  declare const _default: typeof __VLS_export;
49
49
  type __VLS_WithSlots<T, S> = T & {
@@ -1,5 +1,5 @@
1
1
  import { NumberInputProps } from "./types.js";
2
- import * as vue85 from "vue";
2
+ import * as vue266 from "vue";
3
3
 
4
4
  //#region src/components/number-input/number-input.vue.d.ts
5
5
  declare var __VLS_10: {}, __VLS_24: {}, __VLS_31: {}, __VLS_42: {};
@@ -12,11 +12,11 @@ type __VLS_Slots = {} & {
12
12
  } & {
13
13
  increment?: (props: typeof __VLS_42) => any;
14
14
  };
15
- declare const __VLS_base: vue85.DefineComponent<NumberInputProps, {}, {}, {}, {}, vue85.ComponentOptionsMixin, vue85.ComponentOptionsMixin, {
15
+ declare const __VLS_base: vue266.DefineComponent<NumberInputProps, {}, {}, {}, {}, vue266.ComponentOptionsMixin, vue266.ComponentOptionsMixin, {
16
16
  "update:modelValue": (val: number) => any;
17
- }, string, vue85.PublicProps, Readonly<NumberInputProps> & Readonly<{
17
+ }, string, vue266.PublicProps, Readonly<NumberInputProps> & Readonly<{
18
18
  "onUpdate:modelValue"?: ((val: number) => any) | undefined;
19
- }>, {}, {}, {}, {}, string, vue85.ComponentProvideOptions, false, {}, any>;
19
+ }>, {}, {}, {}, {}, string, vue266.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,5 +1,5 @@
1
1
  import { PaginationProps } from "./types.js";
2
- import * as vue280 from "vue";
2
+ import * as vue223 from "vue";
3
3
 
4
4
  //#region src/components/pagination/pagination.vue.d.ts
5
5
  declare var __VLS_20: {}, __VLS_31: {}, __VLS_47: {}, __VLS_58: {}, __VLS_69: {};
@@ -14,13 +14,13 @@ type __VLS_Slots = {} & {
14
14
  } & {
15
15
  last?: (props: typeof __VLS_69) => any;
16
16
  };
17
- declare const __VLS_base: vue280.DefineComponent<PaginationProps, {}, {}, {}, {}, vue280.ComponentOptionsMixin, vue280.ComponentOptionsMixin, {
17
+ declare const __VLS_base: vue223.DefineComponent<PaginationProps, {}, {}, {}, {}, vue223.ComponentOptionsMixin, vue223.ComponentOptionsMixin, {
18
18
  "update:page": (value: number) => any;
19
- }, string, vue280.PublicProps, Readonly<PaginationProps> & Readonly<{
19
+ }, string, vue223.PublicProps, Readonly<PaginationProps> & Readonly<{
20
20
  "onUpdate:page"?: ((value: number) => any) | undefined;
21
21
  }>, {
22
22
  showFirstOrLast: boolean;
23
- }, {}, {}, {}, string, vue280.ComponentProvideOptions, false, {}, any>;
23
+ }, {}, {}, {}, string, vue223.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 { PasswordProps } from "./types.js";
2
- import * as vue163 from "vue";
2
+ import * as vue233 from "vue";
3
3
 
4
4
  //#region src/components/password/password.vue.d.ts
5
5
  declare var __VLS_10: {}, __VLS_24: {}, __VLS_26: {
@@ -13,15 +13,15 @@ type __VLS_Slots = {} & {
13
13
  } & {
14
14
  visible?: (props: typeof __VLS_26) => any;
15
15
  };
16
- declare const __VLS_base: vue163.DefineComponent<PasswordProps, {}, {}, {}, {}, vue163.ComponentOptionsMixin, vue163.ComponentOptionsMixin, {
16
+ declare const __VLS_base: vue233.DefineComponent<PasswordProps, {}, {}, {}, {}, vue233.ComponentOptionsMixin, vue233.ComponentOptionsMixin, {
17
17
  "update:modelValue": (value: string) => any;
18
18
  "update:visible": (visible: boolean) => any;
19
- }, string, vue163.PublicProps, Readonly<PasswordProps> & Readonly<{
19
+ }, string, vue233.PublicProps, Readonly<PasswordProps> & Readonly<{
20
20
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
21
21
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
22
22
  }>, {
23
23
  visible: boolean;
24
- }, {}, {}, {}, string, vue163.ComponentProvideOptions, false, {}, any>;
24
+ }, {}, {}, {}, string, vue233.ComponentProvideOptions, false, {}, any>;
25
25
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
26
26
  declare const _default: typeof __VLS_export;
27
27
  type __VLS_WithSlots<T, S> = T & {
@@ -1,6 +1,6 @@
1
1
  import { PopoverProps } from "./types.js";
2
- import * as vue215 from "vue";
3
- import * as _soybeanjs_headless147 from "@soybeanjs/headless";
2
+ import * as vue228 from "vue";
3
+ import * as _soybeanjs_headless132 from "@soybeanjs/headless";
4
4
 
5
5
  //#region src/components/popover/popover.vue.d.ts
6
6
  declare var __VLS_15: {}, __VLS_27: {}, __VLS_34: {};
@@ -11,27 +11,27 @@ type __VLS_Slots = {} & {
11
11
  } & {
12
12
  close?: (props: typeof __VLS_34) => any;
13
13
  };
14
- declare const __VLS_base: vue215.DefineComponent<PopoverProps, {}, {}, {}, {}, vue215.ComponentOptionsMixin, vue215.ComponentOptionsMixin, {
14
+ declare const __VLS_base: vue228.DefineComponent<PopoverProps, {}, {}, {}, {}, vue228.ComponentOptionsMixin, vue228.ComponentOptionsMixin, {
15
15
  "update:open": (value: boolean) => any;
16
16
  escapeKeyDown: (event: KeyboardEvent) => any;
17
- pointerDownOutside: (event: _soybeanjs_headless147.PointerDownOutsideEvent) => any;
18
- focusOutside: (event: _soybeanjs_headless147.FocusOutsideEvent) => any;
19
- interactOutside: (event: _soybeanjs_headless147.PointerDownOutsideEvent | _soybeanjs_headless147.FocusOutsideEvent) => any;
17
+ pointerDownOutside: (event: _soybeanjs_headless132.PointerDownOutsideEvent) => any;
18
+ focusOutside: (event: _soybeanjs_headless132.FocusOutsideEvent) => any;
19
+ interactOutside: (event: _soybeanjs_headless132.PointerDownOutsideEvent | _soybeanjs_headless132.FocusOutsideEvent) => any;
20
20
  openAutoFocus: (event: Event) => any;
21
21
  closeAutoFocus: (event: Event) => any;
22
- }, string, vue215.PublicProps, Readonly<PopoverProps> & Readonly<{
22
+ }, string, vue228.PublicProps, Readonly<PopoverProps> & Readonly<{
23
23
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
24
24
  onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
25
- onPointerDownOutside?: ((event: _soybeanjs_headless147.PointerDownOutsideEvent) => any) | undefined;
26
- onFocusOutside?: ((event: _soybeanjs_headless147.FocusOutsideEvent) => any) | undefined;
27
- onInteractOutside?: ((event: _soybeanjs_headless147.PointerDownOutsideEvent | _soybeanjs_headless147.FocusOutsideEvent) => any) | undefined;
25
+ onPointerDownOutside?: ((event: _soybeanjs_headless132.PointerDownOutsideEvent) => any) | undefined;
26
+ onFocusOutside?: ((event: _soybeanjs_headless132.FocusOutsideEvent) => any) | undefined;
27
+ onInteractOutside?: ((event: _soybeanjs_headless132.PointerDownOutsideEvent | _soybeanjs_headless132.FocusOutsideEvent) => any) | undefined;
28
28
  onOpenAutoFocus?: ((event: Event) => any) | undefined;
29
29
  onCloseAutoFocus?: ((event: Event) => any) | undefined;
30
30
  }>, {
31
31
  open: boolean;
32
32
  defaultOpen: boolean;
33
33
  showArrow: boolean;
34
- }, {}, {}, {}, string, vue215.ComponentProvideOptions, false, {}, any>;
34
+ }, {}, {}, {}, string, vue228.ComponentProvideOptions, false, {}, any>;
35
35
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
36
36
  declare const _default: typeof __VLS_export;
37
37
  type __VLS_WithSlots<T, S> = T & {
@@ -1,17 +1,17 @@
1
1
  import { RadioCardGroupOptionData, RadioCardGroupProps } from "./types.js";
2
- import * as vue232 from "vue";
2
+ import * as vue252 from "vue";
3
3
  import { AcceptableBooleanValue } from "@soybeanjs/headless";
4
4
 
5
5
  //#region src/components/radio-group/radio-card-group.vue.d.ts
6
6
  declare const __VLS_export: <T extends AcceptableBooleanValue = AcceptableBooleanValue, S extends RadioCardGroupOptionData<T> = RadioCardGroupOptionData<T>>(__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
  props: __VLS_PrettifyLocal<RadioCardGroupProps<T, S> & {
8
8
  "onUpdate:modelValue"?: ((payload: NonNullable<AcceptableBooleanValue>) => any) | undefined;
9
- }> & vue232.PublicProps;
9
+ }> & vue252.PublicProps;
10
10
  expose: (exposed: {}) => void;
11
11
  attrs: any;
12
12
  slots: {};
13
13
  emit: (evt: "update:modelValue", payload: NonNullable<AcceptableBooleanValue>) => void;
14
- }>) => vue232.VNode & {
14
+ }>) => vue252.VNode & {
15
15
  __ctx?: Awaited<typeof __VLS_setup>;
16
16
  };
17
17
  declare const _default: typeof __VLS_export;
@@ -1,5 +1,5 @@
1
1
  import { RadioCardProps } from "./types.js";
2
- import * as vue227 from "vue";
2
+ import * as vue247 from "vue";
3
3
 
4
4
  //#region src/components/radio-group/radio-card.vue.d.ts
5
5
  declare var __VLS_16: {
@@ -10,7 +10,7 @@ type __VLS_Slots = {} & {
10
10
  } & {
11
11
  description?: (props: typeof __VLS_23) => any;
12
12
  };
13
- declare const __VLS_base: vue227.DefineComponent<RadioCardProps, {}, {}, {}, {}, vue227.ComponentOptionsMixin, vue227.ComponentOptionsMixin, {}, string, vue227.PublicProps, Readonly<RadioCardProps> & Readonly<{}>, {}, {}, {}, {}, string, vue227.ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_base: vue247.DefineComponent<RadioCardProps, {}, {}, {}, {}, vue247.ComponentOptionsMixin, vue247.ComponentOptionsMixin, {}, string, vue247.PublicProps, Readonly<RadioCardProps> & Readonly<{}>, {}, {}, {}, {}, string, vue247.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,17 +1,17 @@
1
1
  import { RadioGroupOptionData, RadioGroupProps } from "./types.js";
2
- import * as vue220 from "vue";
2
+ import * as vue240 from "vue";
3
3
  import { AcceptableBooleanValue } from "@soybeanjs/headless";
4
4
 
5
5
  //#region src/components/radio-group/radio-group.vue.d.ts
6
6
  declare const __VLS_export: <T extends AcceptableBooleanValue = AcceptableBooleanValue, S extends RadioGroupOptionData<T> = RadioGroupOptionData<T>>(__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
  props: __VLS_PrettifyLocal<RadioGroupProps<T, S> & {
8
8
  "onUpdate:modelValue"?: ((payload: NonNullable<T>) => any) | undefined;
9
- }> & vue220.PublicProps;
9
+ }> & vue240.PublicProps;
10
10
  expose: (exposed: {}) => void;
11
11
  attrs: any;
12
12
  slots: {};
13
13
  emit: (evt: "update:modelValue", payload: NonNullable<T>) => void;
14
- }>) => vue220.VNode & {
14
+ }>) => vue240.VNode & {
15
15
  __ctx?: Awaited<typeof __VLS_setup>;
16
16
  };
17
17
  declare const _default: typeof __VLS_export;
@@ -1,12 +1,12 @@
1
1
  import { RadioProps } from "./types.js";
2
- import * as vue222 from "vue";
2
+ import * as vue242 from "vue";
3
3
 
4
4
  //#region src/components/radio-group/radio.vue.d.ts
5
5
  declare var __VLS_27: {};
6
6
  type __VLS_Slots = {} & {
7
7
  default?: (props: typeof __VLS_27) => any;
8
8
  };
9
- declare const __VLS_base: vue222.DefineComponent<RadioProps, {}, {}, {}, {}, vue222.ComponentOptionsMixin, vue222.ComponentOptionsMixin, {}, string, vue222.PublicProps, Readonly<RadioProps> & Readonly<{}>, {}, {}, {}, {}, string, vue222.ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_base: vue242.DefineComponent<RadioProps, {}, {}, {}, {}, vue242.ComponentOptionsMixin, vue242.ComponentOptionsMixin, {}, string, vue242.PublicProps, Readonly<RadioProps> & Readonly<{}>, {}, {}, {}, {}, string, vue242.ComponentProvideOptions, false, {}, any>;
10
10
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
11
  declare const _default: typeof __VLS_export;
12
12
  type __VLS_WithSlots<T, S> = T & {
@@ -1,12 +1,12 @@
1
1
  import { SegmentOptionData, SegmentProps } from "./types.js";
2
- import * as vue285 from "vue";
2
+ import * as vue238 from "vue";
3
3
  import { AcceptableValue } from "@soybeanjs/headless";
4
4
 
5
5
  //#region src/components/segment/segment.vue.d.ts
6
6
  declare const __VLS_export: <T extends AcceptableValue = AcceptableValue, S extends SegmentOptionData<NonNullable<T>> = SegmentOptionData<NonNullable<T>>>(__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
  props: __VLS_PrettifyLocal<SegmentProps<T, S> & {
8
8
  "onUpdate:modelValue"?: ((payload: NonNullable<T>) => any) | undefined;
9
- }> & vue285.PublicProps;
9
+ }> & vue238.PublicProps;
10
10
  expose: (exposed: {}) => void;
11
11
  attrs: any;
12
12
  slots: {
@@ -15,7 +15,7 @@ declare const __VLS_export: <T extends AcceptableValue = AcceptableValue, S exte
15
15
  }) => any;
16
16
  };
17
17
  emit: (evt: "update:modelValue", payload: NonNullable<T>) => void;
18
- }>) => vue285.VNode & {
18
+ }>) => vue238.VNode & {
19
19
  __ctx?: Awaited<typeof __VLS_setup>;
20
20
  };
21
21
  declare const _default: typeof __VLS_export;
@@ -1,18 +1,18 @@
1
1
  import { SelectOptionData, SelectProps } from "./types.js";
2
- import * as vue107 from "vue";
3
- import * as _soybeanjs_headless31 from "@soybeanjs/headless";
2
+ import * as vue264 from "vue";
3
+ import * as _soybeanjs_headless141 from "@soybeanjs/headless";
4
4
  import { DefinedValue } from "@soybeanjs/headless";
5
5
 
6
6
  //#region src/components/select/select.vue.d.ts
7
7
  declare const __VLS_export: <T extends DefinedValue, M extends boolean = false, S extends SelectOptionData<T> = SelectOptionData<T>>(__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<{
8
8
  props: __VLS_PrettifyLocal<SelectProps<T, M, S> & {
9
+ onSelect?: ((event: _soybeanjs_headless141.SelectItemEvent<T>) => any) | undefined;
9
10
  "onUpdate:modelValue"?: ((value: M extends true ? T[] : T) => any) | undefined;
10
- onSelect?: ((event: _soybeanjs_headless31.SelectItemEvent<T>) => any) | undefined;
11
11
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
12
12
  onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
13
- onPointerDownOutside?: ((event: _soybeanjs_headless31.PointerDownOutsideEvent) => any) | undefined;
13
+ onPointerDownOutside?: ((event: _soybeanjs_headless141.PointerDownOutsideEvent) => any) | undefined;
14
14
  onCloseAutoFocus?: ((event: Event) => any) | undefined;
15
- }> & vue107.PublicProps;
15
+ }> & vue264.PublicProps;
16
16
  expose: (exposed: {}) => void;
17
17
  attrs: any;
18
18
  slots: {
@@ -42,8 +42,8 @@ declare const __VLS_export: <T extends DefinedValue, M extends boolean = false,
42
42
  item: S;
43
43
  }) => any;
44
44
  };
45
- emit: ((evt: "update:modelValue", value: M extends true ? T[] : T) => void) & ((evt: "select", event: _soybeanjs_headless31.SelectItemEvent<T>) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: _soybeanjs_headless31.PointerDownOutsideEvent) => void) & ((evt: "closeAutoFocus", event: Event) => void);
46
- }>) => vue107.VNode & {
45
+ emit: ((evt: "select", event: _soybeanjs_headless141.SelectItemEvent<T>) => void) & ((evt: "update:modelValue", value: M extends true ? T[] : T) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: _soybeanjs_headless141.PointerDownOutsideEvent) => void) & ((evt: "closeAutoFocus", event: Event) => void);
46
+ }>) => vue264.VNode & {
47
47
  __ctx?: Awaited<typeof __VLS_setup>;
48
48
  };
49
49
  declare const _default: typeof __VLS_export;
@@ -1,11 +1,11 @@
1
1
  import { SeparatorProps } from "./types.js";
2
- import * as vue234 from "vue";
3
- import * as _soybeanjs_headless155 from "@soybeanjs/headless";
2
+ import * as vue254 from "vue";
3
+ import * as _soybeanjs_headless140 from "@soybeanjs/headless";
4
4
 
5
5
  //#region src/components/separator/separator.vue.d.ts
6
- declare const __VLS_export: vue234.DefineComponent<SeparatorProps, {}, {}, {}, {}, vue234.ComponentOptionsMixin, vue234.ComponentOptionsMixin, {}, string, vue234.PublicProps, Readonly<SeparatorProps> & Readonly<{}>, {
7
- orientation: _soybeanjs_headless155.DataOrientation;
8
- }, {}, {}, {}, string, vue234.ComponentProvideOptions, false, {}, any>;
6
+ declare const __VLS_export: vue254.DefineComponent<SeparatorProps, {}, {}, {}, {}, vue254.ComponentOptionsMixin, vue254.ComponentOptionsMixin, {}, string, vue254.PublicProps, Readonly<SeparatorProps> & Readonly<{}>, {
7
+ orientation: _soybeanjs_headless140.DataOrientation;
8
+ }, {}, {}, {}, string, vue254.ComponentProvideOptions, false, {}, any>;
9
9
  declare const _default: typeof __VLS_export;
10
10
  //#endregion
11
11
  export { _default };
@@ -2,26 +2,26 @@ import { ThemeColor, ThemeSize } from "../../theme/types.js";
2
2
  import "../../theme/index.js";
3
3
  import { SwitchShape } from "../../variants/switch.js";
4
4
  import { SwitchProps } from "./types.js";
5
- import * as vue109 from "vue";
6
- import * as _soybeanjs_headless35 from "@soybeanjs/headless";
5
+ import * as vue271 from "vue";
6
+ import * as _soybeanjs_headless145 from "@soybeanjs/headless";
7
7
  import { AcceptableBooleanValue } from "@soybeanjs/headless";
8
8
 
9
9
  //#region src/components/switch/switch.vue.d.ts
10
10
  declare const __VLS_export: <T extends AcceptableBooleanValue = boolean>(__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<{
11
11
  props: __VLS_PrettifyLocal<SwitchProps<T> & {
12
12
  "onUpdate:modelValue"?: ((payload: NonNullable<T>) => any) | undefined;
13
- }> & vue109.PublicProps;
13
+ }> & vue271.PublicProps;
14
14
  expose: (exposed: {}) => void;
15
15
  attrs: any;
16
16
  slots: {
17
17
  leading?: (props: {
18
18
  modelValue: (Readonly<{
19
- ui: Partial<_soybeanjs_headless35.SwitchUi>;
19
+ ui: Partial<_soybeanjs_headless145.SwitchUi>;
20
20
  color: ThemeColor;
21
21
  size: ThemeSize;
22
22
  shape: SwitchShape;
23
- controlProps: _soybeanjs_headless35.SwitchControlProps;
24
- thumbProps: _soybeanjs_headless35.SwitchThumbProps;
23
+ controlProps: _soybeanjs_headless145.SwitchControlProps;
24
+ thumbProps: _soybeanjs_headless145.SwitchThumbProps;
25
25
  defaultValue: NonNullable<T> | undefined;
26
26
  disabled: boolean;
27
27
  value: string;
@@ -30,7 +30,7 @@ declare const __VLS_export: <T extends AcceptableBooleanValue = boolean>(__VLS_p
30
30
  manifest: string | undefined;
31
31
  innerHTML: string | undefined;
32
32
  class: any;
33
- style: vue109.StyleValue | undefined;
33
+ style: vue271.StyleValue | undefined;
34
34
  accesskey: string | undefined;
35
35
  contenteditable: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
36
36
  contextmenu: string | undefined;
@@ -223,12 +223,12 @@ declare const __VLS_export: <T extends AcceptableBooleanValue = boolean>(__VLS_p
223
223
  } & {
224
224
  default?: (props: {
225
225
  modelValue: (Readonly<{
226
- ui: Partial<_soybeanjs_headless35.SwitchUi>;
226
+ ui: Partial<_soybeanjs_headless145.SwitchUi>;
227
227
  color: ThemeColor;
228
228
  size: ThemeSize;
229
229
  shape: SwitchShape;
230
- controlProps: _soybeanjs_headless35.SwitchControlProps;
231
- thumbProps: _soybeanjs_headless35.SwitchThumbProps;
230
+ controlProps: _soybeanjs_headless145.SwitchControlProps;
231
+ thumbProps: _soybeanjs_headless145.SwitchThumbProps;
232
232
  defaultValue: NonNullable<T> | undefined;
233
233
  disabled: boolean;
234
234
  value: string;
@@ -237,7 +237,7 @@ declare const __VLS_export: <T extends AcceptableBooleanValue = boolean>(__VLS_p
237
237
  manifest: string | undefined;
238
238
  innerHTML: string | undefined;
239
239
  class: any;
240
- style: vue109.StyleValue | undefined;
240
+ style: vue271.StyleValue | undefined;
241
241
  accesskey: string | undefined;
242
242
  contenteditable: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
243
243
  contextmenu: string | undefined;
@@ -430,12 +430,12 @@ declare const __VLS_export: <T extends AcceptableBooleanValue = boolean>(__VLS_p
430
430
  } & {
431
431
  trailing?: (props: {
432
432
  modelValue: (Readonly<{
433
- ui: Partial<_soybeanjs_headless35.SwitchUi>;
433
+ ui: Partial<_soybeanjs_headless145.SwitchUi>;
434
434
  color: ThemeColor;
435
435
  size: ThemeSize;
436
436
  shape: SwitchShape;
437
- controlProps: _soybeanjs_headless35.SwitchControlProps;
438
- thumbProps: _soybeanjs_headless35.SwitchThumbProps;
437
+ controlProps: _soybeanjs_headless145.SwitchControlProps;
438
+ thumbProps: _soybeanjs_headless145.SwitchThumbProps;
439
439
  defaultValue: NonNullable<T> | undefined;
440
440
  disabled: boolean;
441
441
  value: string;
@@ -444,7 +444,7 @@ declare const __VLS_export: <T extends AcceptableBooleanValue = boolean>(__VLS_p
444
444
  manifest: string | undefined;
445
445
  innerHTML: string | undefined;
446
446
  class: any;
447
- style: vue109.StyleValue | undefined;
447
+ style: vue271.StyleValue | undefined;
448
448
  accesskey: string | undefined;
449
449
  contenteditable: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
450
450
  contextmenu: string | undefined;
@@ -636,7 +636,7 @@ declare const __VLS_export: <T extends AcceptableBooleanValue = boolean>(__VLS_p
636
636
  }) => any;
637
637
  };
638
638
  emit: (evt: "update:modelValue", payload: NonNullable<T>) => void;
639
- }>) => vue109.VNode & {
639
+ }>) => vue271.VNode & {
640
640
  __ctx?: Awaited<typeof __VLS_setup>;
641
641
  };
642
642
  declare const _default: typeof __VLS_export;
@@ -1,12 +1,12 @@
1
1
  import { TabsOptionData, TabsProps } from "./types.js";
2
- import * as vue124 from "vue";
2
+ import * as vue276 from "vue";
3
3
  import { AcceptableValue } from "@soybeanjs/headless";
4
4
 
5
5
  //#region src/components/tabs/tabs.vue.d.ts
6
6
  declare const __VLS_export: <T extends AcceptableValue = AcceptableValue, S extends TabsOptionData<NonNullable<T>> = TabsOptionData<NonNullable<T>>>(__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
  props: __VLS_PrettifyLocal<TabsProps<T, S> & {
8
8
  "onUpdate:modelValue"?: ((payload: NonNullable<T>) => any) | undefined;
9
- }> & vue124.PublicProps;
9
+ }> & vue276.PublicProps;
10
10
  expose: (exposed: {}) => void;
11
11
  attrs: any;
12
12
  slots: {
@@ -19,7 +19,7 @@ declare const __VLS_export: <T extends AcceptableValue = AcceptableValue, S exte
19
19
  }) => any;
20
20
  };
21
21
  emit: (evt: "update:modelValue", payload: NonNullable<T>) => void;
22
- }>) => vue124.VNode & {
22
+ }>) => vue276.VNode & {
23
23
  __ctx?: Awaited<typeof __VLS_setup>;
24
24
  };
25
25
  declare const _default: typeof __VLS_export;
@@ -1,5 +1,5 @@
1
1
  import { TagProps } from "./types.js";
2
- import * as vue170 from "vue";
2
+ import * as vue259 from "vue";
3
3
 
4
4
  //#region src/components/tag/tag.vue.d.ts
5
5
  declare var __VLS_10: {}, __VLS_12: {}, __VLS_14: {}, __VLS_16: {
@@ -14,13 +14,13 @@ type __VLS_Slots = {} & {
14
14
  } & {
15
15
  close?: (props: typeof __VLS_16) => any;
16
16
  };
17
- declare const __VLS_base: vue170.DefineComponent<TagProps, {}, {}, {}, {}, vue170.ComponentOptionsMixin, vue170.ComponentOptionsMixin, {
17
+ declare const __VLS_base: vue259.DefineComponent<TagProps, {}, {}, {}, {}, vue259.ComponentOptionsMixin, vue259.ComponentOptionsMixin, {
18
18
  "update:open": (open: boolean) => any;
19
- }, string, vue170.PublicProps, Readonly<TagProps> & Readonly<{
19
+ }, string, vue259.PublicProps, Readonly<TagProps> & Readonly<{
20
20
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
21
21
  }>, {
22
22
  open: boolean;
23
- }, {}, {}, {}, string, vue170.ComponentProvideOptions, false, {}, any>;
23
+ }, {}, {}, {}, string, vue259.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 { TextareaProps } from "./types.js";
2
- import * as vue114 from "vue";
2
+ import * as vue278 from "vue";
3
3
 
4
4
  //#region src/components/textarea/textarea.vue.d.ts
5
5
  declare var __VLS_27: {
@@ -11,11 +11,11 @@ type __VLS_Slots = {} & {
11
11
  } & {
12
12
  footer?: (props: typeof __VLS_29) => any;
13
13
  };
14
- declare const __VLS_base: vue114.DefineComponent<TextareaProps, {}, {}, {}, {}, vue114.ComponentOptionsMixin, vue114.ComponentOptionsMixin, {
14
+ declare const __VLS_base: vue278.DefineComponent<TextareaProps, {}, {}, {}, {}, vue278.ComponentOptionsMixin, vue278.ComponentOptionsMixin, {
15
15
  "update:modelValue": (value: string) => any;
16
- }, string, vue114.PublicProps, Readonly<TextareaProps> & Readonly<{
16
+ }, string, vue278.PublicProps, Readonly<TextareaProps> & Readonly<{
17
17
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
18
- }>, {}, {}, {}, {}, string, vue114.ComponentProvideOptions, false, {}, any>;
18
+ }>, {}, {}, {}, {}, string, vue278.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 & {
@@ -0,0 +1,8 @@
1
+ import { UseToastReturn } from "./types.js";
2
+ import "vue";
3
+
4
+ //#region src/components/toast/context.d.ts
5
+
6
+ declare const useToast: () => UseToastReturn;
7
+ //#endregion
8
+ export { useToast };
@@ -0,0 +1 @@
1
+ import{mergeUi as e}from"../../theme/shared.js";import{toastTypes as t}from"./shared.js";import{computed as n,nextTick as r,shallowRef as i,watch as a}from"vue";import{useContext as o}from"@soybeanjs/headless/composables";import{useDebounceFn as s}from"@vueuse/core";const[c,l]=o(`UiToastProvider`,o=>{let{size:c,ui:l,limits:u,removeDelay:d}=o,f=i(o.position.value),p=i([]),m=n(()=>p.value.map(e=>e.id)),h=i([]),g=s(()=>{h.value=p.value},d.value);a(p,(e,t)=>{e.length>=t.length?h.value=p.value:g()});let _=e=>{p.value=[e,...p.value].slice(0,u.value)},v=e=>{p.value=p.value.filter(t=>t.id!==e)},y=()=>{p.value=[]},b=0,x=t=>{let{showIcon:n=!0,size:r=c.value,ui:i,...a}=t,o=b;return b++,{id:o,size:r,showIcon:n,ui:e(l.value,i??{}),...a}},S=e=>{let t=x(e),n=e.position??o.position.value;f.value!==n&&(f.value=n,y()),r(()=>{_(t)})},C=S;C.clear=y;for(let e of t)C[e]=t=>S({type:e,...t});return{useToast:C,clear:y,ids:m,states:n(()=>h.value),remove:v,position:f}}),u=()=>{let{useToast:e}=l(`UiToastConsumer`);return e};export{c as provideToastProviderContext,u as useToast};
@@ -0,0 +1,5 @@
1
+ import { ToastColor, ToastProps, UseToastOptions } from "./types.js";
2
+ import { _default } from "./toast.vue.js";
3
+ import { useToast } from "./context.js";
4
+ import { ToastAction as SToastAction, ToastClose as SToastClose } from "@soybeanjs/headless/toast";
5
+ export { SToastAction, SToastClose };
@@ -0,0 +1 @@
1
+ import{useToast as e}from"./context.js";import t from"./toast.js";import{ToastAction as n,ToastClose as r}from"@soybeanjs/headless/toast";export{n as SToastAction,r as SToastClose};
@@ -0,0 +1 @@
1
+ const e=[`destructive`,`success`,`warning`,`info`];export{e as toastTypes};
@@ -0,0 +1 @@
1
+ import{cn as e}from"../../theme/merge.js";import{toastViewportVariants as t}from"../../variants/toast.js";import{provideToastProviderContext as n}from"./context.js";import r from"./toast.js";import{Fragment as i,computed as a,createBlock as o,createCommentVNode as s,createElementBlock as c,createSlots as l,createTextVNode as u,createVNode as d,defineComponent as f,guardReactiveProps as p,mergeProps as m,normalizeProps as h,onBeforeUnmount as g,openBlock as _,renderList as v,renderSlot as y,resolveDynamicComponent as b,toDisplayString as x,unref as S,withCtx as C}from"vue";import{useOmitProps as w}from"@soybeanjs/headless/composables";import{ToastProvider as T,ToastViewport as E,provideToastViewportThemeContext as D}from"@soybeanjs/headless";import{transformPropsToContext as O}from"@soybeanjs/headless/shared";var k=f({name:`SToast`,__name:`toast-provider`,props:{size:{default:`md`},ui:{default:()=>({})},limits:{default:3},removeDelay:{default:5e3},position:{default:`top-right`},viewportProps:{},label:{},duration:{},swipeDirection:{},swipeThreshold:{}},setup(f){let k=f,A=w(k,[`size`,`ui`,`limits`,`removeDelay`,`position`,`viewportProps`]),{states:j,ids:M,clear:N,remove:P,position:F}=n(O(k,[`size`,`ui`,`limits`,`removeDelay`,`position`]));return D(a(()=>e(t({size:k.size,position:F.value}),k.ui?.viewport))),g(()=>{N()}),(e,t)=>(_(),o(S(T),h(p(S(A))),{default:C(()=>[d(S(E),h(p(f.viewportProps)),null,16),(_(!0),c(i,null,v(S(j),({id:e,title:t,description:n,content:a,...d})=>(_(),o(r,m({key:e},{ref_for:!0},d,{open:S(M).includes(e),"onUpdate:open":t=>S(P)(e)}),l({default:C(()=>[a?(_(),o(b(a),{key:0})):s(`v-if`,!0)]),_:2},[t?{name:`title`,fn:C(()=>[typeof t==`string`?(_(),c(i,{key:0},[u(x(t),1)],64)):(_(),o(b(t),{key:1}))]),key:`0`}:void 0,n?{name:`description`,fn:C(()=>[typeof n==`string`?(_(),c(i,{key:0},[u(x(n),1)],64)):(_(),o(b(n),{key:1}))]),key:`1`}:void 0]),1040,[`open`,`onUpdate:open`]))),128)),y(e.$slots,`default`)]),_:3},16))}});export{k as default};
@@ -0,0 +1 @@
1
+ import{mergeSlotVariants as e}from"../../theme/shared.js";import{toastVariants as t}from"../../variants/toast.js";import n from"../button/button-icon.js";import r from"../icon/icon.js";import{computed as i,createBlock as a,createCommentVNode as o,createVNode as s,defineComponent as c,guardReactiveProps as l,mergeProps as u,normalizeClass as d,normalizeProps as f,openBlock as p,renderSlot as m,toHandlers as h,unref as g,withCtx as _}from"vue";import{useForwardListeners as v,useOmitProps as y}from"@soybeanjs/headless/composables";import{ToastClose as b,ToastDescription as x,ToastRoot as S,ToastTitle as C,provideToastThemeContext as w}from"@soybeanjs/headless";var T=c({name:`SToast`,__name:`toast`,props:{size:{},ui:{},type:{},color:{},position:{},showIcon:{type:Boolean,default:!0},titleProps:{},descriptionProps:{},liveType:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},duration:{},forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`escapeKeyDown`,`pause`,`resume`,`swipeStart`,`swipeMove`,`swipeCancel`,`swipeEnd`,`update:open`],setup(c,{emit:T}){let E=c,D=T,O=y(E,[`size`,`ui`,`color`,`titleProps`,`descriptionProps`]),k=v(D),A=i(()=>e(t({color:E.color,size:E.size}),E.ui)),j={destructive:{icon:`lucide:circle-x`,class:`text-destructive`},success:{icon:`lucide:circle-check`,class:`text-success`},warning:{icon:`lucide:circle-alert`,class:`text-warning`},info:{icon:`lucide:info`,class:`text-info`}},M=i(()=>E.type?j[E.type]:null);return w({ui:A}),(e,t)=>(p(),a(g(S),u(g(O),h(g(k))),{default:_(()=>[s(g(C),f(l(c.titleProps)),{default:_(()=>[c.showIcon&&M.value?(p(),a(r,{key:0,icon:M.value.icon,class:d(M.value.class)},null,8,[`icon`,`class`])):o(`v-if`,!0),m(e.$slots,`title`)]),_:3},16),s(g(x),f(l(c.descriptionProps)),{default:_(()=>[m(e.$slots,`description`)]),_:3},16),s(g(b),{"as-child":``},{default:_(()=>[m(e.$slots,`close`,{},()=>[s(n,{size:c.size,icon:`lucide:x`},null,8,[`size`])])]),_:3}),m(e.$slots,`default`)]),_:3},16))}});export{T as default};
@@ -0,0 +1,21 @@
1
+ //#region src/components/toast/toast.vue.d.ts
2
+ declare var __VLS_16: {}, __VLS_23: {}, __VLS_30: {}, __VLS_36: {};
3
+ type __VLS_Slots = {} & {
4
+ title?: (props: typeof __VLS_16) => any;
5
+ } & {
6
+ description?: (props: typeof __VLS_23) => any;
7
+ } & {
8
+ close?: (props: typeof __VLS_30) => any;
9
+ } & {
10
+ default?: (props: typeof __VLS_36) => any;
11
+ };
12
+ declare const __VLS_base: any;
13
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
+ declare const _default: typeof __VLS_export;
15
+ type __VLS_WithSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
20
+ //#endregion
21
+ export { _default };