@soybeanjs/headless 0.16.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. package/dist/components/_icon/types.d.ts +9 -0
  2. package/dist/components/accordion/types.d.ts +87 -0
  3. package/dist/components/affix/types.d.ts +39 -0
  4. package/dist/components/alert/types.d.ts +78 -0
  5. package/dist/components/anchor/anchor-compact.js +1 -1
  6. package/dist/components/anchor/{anchor-compact-item.js → anchor-item-compact.js} +1 -1
  7. package/dist/components/anchor/anchor-item-compact.vue.d.ts +8 -0
  8. package/dist/components/anchor/anchor-link.js +1 -1
  9. package/dist/components/anchor/anchor-root.vue.d.ts +1 -1
  10. package/dist/components/anchor/index.d.ts +5 -4
  11. package/dist/components/anchor/index.js +1 -1
  12. package/dist/components/anchor/types.d.ts +122 -10
  13. package/dist/components/arrow/types.d.ts +3 -0
  14. package/dist/components/aspect-ratio/types.d.ts +3 -0
  15. package/dist/components/autocomplete/autocomplete-compact.vue.d.ts +2 -2
  16. package/dist/components/autocomplete/autocomplete-root.vue.d.ts +3 -3
  17. package/dist/components/autocomplete/types.d.ts +141 -0
  18. package/dist/components/avatar/types.d.ts +18 -0
  19. package/dist/components/backtop/backtop.vue.d.ts +9 -3
  20. package/dist/components/backtop/index.d.ts +2 -2
  21. package/dist/components/backtop/types.d.ts +19 -12
  22. package/dist/components/badge/types.d.ts +21 -0
  23. package/dist/components/bottom-sheet/bottom-sheet-compact.js +1 -1
  24. package/dist/components/bottom-sheet/bottom-sheet-root-nested.js +1 -1
  25. package/dist/components/bottom-sheet/bottom-sheet-root-nested.vue.d.ts +2 -2
  26. package/dist/components/bottom-sheet/bottom-sheet-root.js +1 -1
  27. package/dist/components/bottom-sheet/types.d.ts +99 -0
  28. package/dist/components/breadcrumb/index.d.ts +2 -2
  29. package/dist/components/breadcrumb/types.d.ts +103 -1
  30. package/dist/components/button/types.d.ts +16 -1
  31. package/dist/components/calendar/calendar-root.js +1 -1
  32. package/dist/components/calendar/types.d.ts +363 -0
  33. package/dist/components/card/types.d.ts +90 -0
  34. package/dist/components/carousel/types.d.ts +42 -0
  35. package/dist/components/checkbox/types.d.ts +111 -0
  36. package/dist/components/clipboard/types.d.ts +42 -0
  37. package/dist/components/collapsible/types.d.ts +18 -0
  38. package/dist/components/color-area/color-area-root.vue.d.ts +1 -1
  39. package/dist/components/color-area/types.d.ts +60 -0
  40. package/dist/components/color-field/color-field-root.vue.d.ts +2 -2
  41. package/dist/components/color-field/types.d.ts +51 -0
  42. package/dist/components/color-picker/color-picker-root.vue.d.ts +1 -1
  43. package/dist/components/color-picker/types.d.ts +39 -0
  44. package/dist/components/color-slider/color-slider-root.vue.d.ts +1 -1
  45. package/dist/components/color-slider/types.d.ts +60 -0
  46. package/dist/components/color-swatch/types.d.ts +9 -0
  47. package/dist/components/color-swatch-picker/types.d.ts +27 -0
  48. package/dist/components/combobox/combobox-compact.vue.d.ts +2 -2
  49. package/dist/components/combobox/combobox-root.vue.d.ts +2 -2
  50. package/dist/components/combobox/types.d.ts +237 -0
  51. package/dist/components/command/types.d.ts +147 -0
  52. package/dist/components/config-provider/config-provider.vue.d.ts +1 -1
  53. package/dist/components/config-provider/types.d.ts +3 -0
  54. package/dist/components/context-menu/context-menu-checkbox-compact.js +1 -1
  55. package/dist/components/context-menu/context-menu-compact.js +1 -1
  56. package/dist/components/context-menu/context-menu-radio-compact.js +1 -1
  57. package/dist/components/context-menu/context-menu-root.js +1 -1
  58. package/dist/components/context-menu/context-menu-wrapper-compact.js +1 -1
  59. package/dist/components/context-menu/types.d.ts +78 -0
  60. package/dist/components/date-field/date-field-root.vue.d.ts +2 -2
  61. package/dist/components/date-field/types.d.ts +147 -0
  62. package/dist/components/date-picker/context.js +1 -1
  63. package/dist/components/date-picker/date-picker-compact.js +1 -0
  64. package/dist/components/date-picker/date-picker-compact.vue.d.ts +27 -0
  65. package/dist/components/date-picker/date-picker-content.js +1 -0
  66. package/dist/components/date-picker/date-picker-content.vue.d.ts +33 -0
  67. package/dist/components/date-picker/date-picker-root.js +1 -1
  68. package/dist/components/date-picker/date-picker-root.vue.d.ts +9 -14
  69. package/dist/components/date-picker/index.d.ts +8 -5
  70. package/dist/components/date-picker/index.js +1 -1
  71. package/dist/components/date-picker/types.d.ts +236 -10
  72. package/dist/components/date-range-field/date-range-field-root.vue.d.ts +2 -2
  73. package/dist/components/date-range-field/types.d.ts +192 -0
  74. package/dist/components/date-range-picker/date-range-picker-compact.vue.d.ts +2 -2
  75. package/dist/components/date-range-picker/date-range-picker-root.vue.d.ts +7 -7
  76. package/dist/components/date-range-picker/types.d.ts +189 -0
  77. package/dist/components/dialog/dialog-compact.js +1 -1
  78. package/dist/components/dialog/dialog-compact.vue.d.ts +5 -5
  79. package/dist/components/dialog/dialog-root.js +1 -1
  80. package/dist/components/dialog/types.d.ts +196 -2
  81. package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.js +1 -1
  82. package/dist/components/dropdown-menu/dropdown-menu-compact.js +1 -1
  83. package/dist/components/dropdown-menu/dropdown-menu-radio-compact.js +1 -1
  84. package/dist/components/dropdown-menu/dropdown-menu-root.js +1 -1
  85. package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +1 -1
  86. package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.js +1 -1
  87. package/dist/components/dropdown-menu/types.d.ts +84 -0
  88. package/dist/components/editable/types.d.ts +123 -0
  89. package/dist/components/empty/types.d.ts +24 -0
  90. package/dist/components/form/core/types.d.ts +396 -13
  91. package/dist/components/form/types.d.ts +27 -0
  92. package/dist/components/hover-card/hover-card-positioner-impl.js +1 -1
  93. package/dist/components/hover-card/types.d.ts +57 -0
  94. package/dist/components/input/types.d.ts +21 -0
  95. package/dist/components/input-number/types.d.ts +30 -0
  96. package/dist/components/input-otp/index.d.ts +1 -2
  97. package/dist/components/input-otp/index.js +1 -1
  98. package/dist/components/input-otp/input-otp-compact.vue.d.ts +4 -4
  99. package/dist/components/input-otp/input-otp-root.vue.d.ts +5 -5
  100. package/dist/components/input-otp/types.d.ts +186 -0
  101. package/dist/components/kbd/types.d.ts +6 -0
  102. package/dist/components/label/types.d.ts +3 -0
  103. package/dist/components/layout/layout-root.vue.d.ts +1 -1
  104. package/dist/components/layout/types.d.ts +124 -10
  105. package/dist/components/link/types.d.ts +12 -0
  106. package/dist/components/list/types.d.ts +21 -0
  107. package/dist/components/listbox/types.d.ts +66 -0
  108. package/dist/components/menu/menu-option-compact.js +1 -1
  109. package/dist/components/menu/menu-options-compact.js +1 -1
  110. package/dist/components/menu/menu-root.js +1 -1
  111. package/dist/components/menu/types.d.ts +266 -2
  112. package/dist/components/menubar/menubar-compact.js +1 -1
  113. package/dist/components/menubar/types.d.ts +72 -0
  114. package/dist/components/month-picker/month-picker-root.vue.d.ts +4 -4
  115. package/dist/components/month-picker/types.d.ts +141 -0
  116. package/dist/components/month-range-picker/month-range-picker-root.vue.d.ts +4 -4
  117. package/dist/components/month-range-picker/types.d.ts +165 -0
  118. package/dist/components/navigation-menu/types.d.ts +87 -0
  119. package/dist/components/page-tabs/types.d.ts +24 -0
  120. package/dist/components/pagination/types.d.ts +96 -0
  121. package/dist/components/popover/context.d.ts +9 -0
  122. package/dist/components/popover/context.js +1 -1
  123. package/dist/components/popover/index.d.ts +6 -6
  124. package/dist/components/popover/index.js +1 -1
  125. package/dist/components/popover/popover-compact.js +1 -1
  126. package/dist/components/popover/popover-root.js +1 -1
  127. package/dist/components/popover/popover-root.vue.d.ts +0 -2
  128. package/dist/components/popover/popover-trigger.js +1 -1
  129. package/dist/components/popover/types.d.ts +94 -6
  130. package/dist/components/popper/popper-positioner.vue.d.ts +2 -2
  131. package/dist/components/popper/types.d.ts +21 -0
  132. package/dist/components/portal/types.d.ts +3 -0
  133. package/dist/components/primitive/types.d.ts +6 -0
  134. package/dist/components/progress/types.d.ts +81 -0
  135. package/dist/components/radio-group/types.d.ts +66 -0
  136. package/dist/components/range-calendar/range-calendar-root.vue.d.ts +2 -2
  137. package/dist/components/range-calendar/types.d.ts +330 -0
  138. package/dist/components/roving-focus/roving-focus-group.vue.d.ts +1 -1
  139. package/dist/components/roving-focus/types.d.ts +18 -0
  140. package/dist/components/scroll-area/types.d.ts +33 -0
  141. package/dist/components/segment/types.d.ts +36 -0
  142. package/dist/components/select/select-content.vue.d.ts +1 -1
  143. package/dist/components/select/types.d.ts +240 -0
  144. package/dist/components/separator/types.d.ts +12 -0
  145. package/dist/components/skeleton/types.d.ts +3 -0
  146. package/dist/components/slider/slider-root.vue.d.ts +1 -1
  147. package/dist/components/slider/types.d.ts +90 -0
  148. package/dist/components/splitter/splitter-panel.vue.d.ts +2 -2
  149. package/dist/components/splitter/types.d.ts +114 -0
  150. package/dist/components/stepper/stepper-root.vue.d.ts +1 -1
  151. package/dist/components/stepper/types.d.ts +96 -0
  152. package/dist/components/switch/types.d.ts +21 -0
  153. package/dist/components/table/types.d.ts +819 -0
  154. package/dist/components/tabs/tabs-root.vue.d.ts +1 -1
  155. package/dist/components/tabs/types.d.ts +75 -0
  156. package/dist/components/tag/types.d.ts +12 -0
  157. package/dist/components/tags-input/tags-input-root.vue.d.ts +2 -2
  158. package/dist/components/tags-input/types.d.ts +63 -0
  159. package/dist/components/textarea/types.d.ts +27 -0
  160. package/dist/components/time-field/time-field-root.vue.d.ts +1 -1
  161. package/dist/components/time-field/types.d.ts +138 -0
  162. package/dist/components/time-picker/time-picker-root.vue.d.ts +6 -6
  163. package/dist/components/time-picker/types.d.ts +156 -0
  164. package/dist/components/time-range-field/time-range-field-root.vue.d.ts +2 -2
  165. package/dist/components/time-range-field/types.d.ts +192 -0
  166. package/dist/components/time-range-picker/time-range-picker-compact.vue.d.ts +2 -2
  167. package/dist/components/time-range-picker/time-range-picker-root.vue.d.ts +6 -6
  168. package/dist/components/time-range-picker/types.d.ts +201 -0
  169. package/dist/components/toast/toaster.vue.d.ts +2 -2
  170. package/dist/components/toast/types.d.ts +224 -4
  171. package/dist/components/toggle/toggle.vue.d.ts +1 -1
  172. package/dist/components/toggle/types.d.ts +9 -0
  173. package/dist/components/toggle-group/types.d.ts +15 -0
  174. package/dist/components/toolbar/types.d.ts +48 -0
  175. package/dist/components/tooltip/types.d.ts +27 -0
  176. package/dist/components/tree/types.d.ts +75 -0
  177. package/dist/components/tree-menu/tree-menu-root.vue.d.ts +1 -1
  178. package/dist/components/tree-menu/types.d.ts +60 -0
  179. package/dist/components/virtualizer/types.d.ts +33 -0
  180. package/dist/components/visually-hidden/types.d.ts +30 -0
  181. package/dist/components/year-picker/types.d.ts +144 -0
  182. package/dist/components/year-picker/year-picker-root.vue.d.ts +4 -4
  183. package/dist/components/year-range-picker/types.d.ts +168 -0
  184. package/dist/components/year-range-picker/year-range-picker-root.vue.d.ts +4 -4
  185. package/dist/composables/use-collection.js +1 -1
  186. package/dist/constants/components.d.ts +5 -5
  187. package/dist/constants/components.js +1 -1
  188. package/dist/constants/index.d.ts +2 -1
  189. package/dist/constants/index.js +1 -1
  190. package/dist/{components/input-otp → constants}/regexp.d.ts +1 -1
  191. package/dist/date/parts.d.ts +1 -1
  192. package/dist/index.d.ts +418 -417
  193. package/dist/index.js +1 -1
  194. package/dist/namespaced/index.d.ts +877 -872
  195. package/dist/namespaced/index.js +1 -1
  196. package/dist/node_modules/.pnpm/@soybeanjs_utils@0.1.1/node_modules/@soybeanjs/utils/dist/index.js +1 -1
  197. package/dist/resolver/index.js +1 -1
  198. package/dist/shared/index.d.ts +2 -2
  199. package/dist/shared/index.js +1 -1
  200. package/dist/shared/string.d.ts +1 -34
  201. package/dist/shared/string.js +1 -1
  202. package/dist/types/common.d.ts +9 -1
  203. package/dist/types/dom.d.ts +3 -1
  204. package/dist/types/event.d.ts +10 -1
  205. package/dist/types/index.d.ts +5 -4
  206. package/dist/types/index.js +0 -0
  207. package/dist/types/vue.d.ts +4 -1
  208. package/package.json +6 -1
  209. package/dist/components/date-picker/date-picker-popup.js +0 -1
  210. package/dist/components/date-picker/date-picker-popup.vue.d.ts +0 -21
  211. package/dist/components/date-picker/date-picker-trigger.js +0 -1
  212. package/dist/components/date-picker/date-picker-trigger.vue.d.ts +0 -21
  213. /package/dist/{components/input-otp → constants}/regexp.js +0 -0
@@ -3,6 +3,9 @@ import { FormFieldCommonProps } from "../../types/component.js";
3
3
  import { HTMLAttributes, InputHTMLAttributes, ShallowRef } from "vue";
4
4
 
5
5
  //#region src/components/input/types.d.ts
6
+ /**
7
+ * Props for the input base component.
8
+ */
6
9
  interface InputBaseProps {
7
10
  /** Id of the input element */
8
11
  id?: string;
@@ -21,17 +24,35 @@ interface InputBaseProps {
21
24
  /** When `true`, the input is read-only. */
22
25
  readonly?: boolean;
23
26
  }
27
+ /**
28
+ * Props for the input root component.
29
+ */
24
30
  interface InputRootProps extends InputBaseProps, FormFieldCommonProps, /** @vue-ignore */HTMLAttributes {
25
31
  /** The default value of the input */
26
32
  defaultValue?: string;
27
33
  /** The controlled value of the input */
28
34
  modelValue?: string;
29
35
  }
36
+ /**
37
+ * Emits for the input root component.
38
+ */
30
39
  type InputRootEmits = {
40
+ /**
41
+ * Emitted when the model value changes.
42
+ */
31
43
  'update:modelValue': [value: string];
32
44
  };
45
+ /**
46
+ * Props for the input control component.
47
+ */
33
48
  interface InputControlProps extends /** @vue-ignore */InputHTMLAttributes {}
49
+ /**
50
+ * Available UI slots for the input component.
51
+ */
34
52
  type InputUiSlot = 'root' | 'control';
53
+ /**
54
+ * UI class overrides for the input component.
55
+ */
35
56
  type InputUi = UiClass<InputUiSlot>;
36
57
  //#endregion
37
58
  export { InputBaseProps, InputControlProps, InputRootEmits, InputRootProps, InputUi, InputUiSlot };
@@ -5,6 +5,9 @@ import { InputBaseProps } from "../input/types.js";
5
5
  import { HTMLAttributes, InputHTMLAttributes, ShallowRef } from "vue";
6
6
 
7
7
  //#region src/components/input-number/types.d.ts
8
+ /**
9
+ * Props for the input number root component.
10
+ */
8
11
  interface InputNumberRootProps extends InputBaseProps, FormFieldCommonProps, /** @vue-ignore */HTMLAttributes {
9
12
  /** The default value of the input */
10
13
  defaultValue?: number;
@@ -32,17 +35,44 @@ interface InputNumberRootProps extends InputBaseProps, FormFieldCommonProps, /**
32
35
  /** When `true`, inverts the direction of the wheel change. */
33
36
  invertWheelChange?: boolean;
34
37
  }
38
+ /**
39
+ * Emits for the input number root component.
40
+ */
35
41
  type InputNumberRootEmits = {
42
+ /**
43
+ * Emitted when the model value changes.
44
+ */
36
45
  'update:modelValue': [val: number];
37
46
  };
47
+ /**
48
+ * Props for the input number control component.
49
+ */
38
50
  interface InputNumberControlProps extends /** @vue-ignore */InputHTMLAttributes {}
51
+ /**
52
+ * Props for the input number increment component.
53
+ */
39
54
  interface InputNumberIncrementProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
55
+ /**
56
+ * Whether the component is disabled.
57
+ */
40
58
  disabled?: boolean;
41
59
  }
60
+ /**
61
+ * Props for the input number decrement component.
62
+ */
42
63
  interface InputNumberDecrementProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
64
+ /**
65
+ * Whether the component is disabled.
66
+ */
43
67
  disabled?: boolean;
44
68
  }
69
+ /**
70
+ * Available UI slots for the input number component.
71
+ */
45
72
  type InputNumberUiSlot = 'root' | 'increment' | 'decrement' | 'control';
73
+ /**
74
+ * UI class overrides for the input number component.
75
+ */
46
76
  type InputNumberUi = UiClass<InputNumberUiSlot>;
47
77
  //#endregion
48
78
  export { InputNumberControlProps, InputNumberDecrementProps, InputNumberIncrementProps, InputNumberRootEmits, InputNumberRootProps, InputNumberUi, InputNumberUiSlot };
@@ -4,5 +4,4 @@ import { _default as _default$1 } from "./input-otp-input.vue.js";
4
4
  import { _default as _default$2 } from "./input-otp-positioner.vue.js";
5
5
  import { _default as _default$3 } from "./input-otp-root.vue.js";
6
6
  import { provideInputOtpUi } from "./context.js";
7
- import { REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS } from "./regexp.js";
8
- export { _default as InputOtpCompact, type InputOtpCompactEmits, type InputOtpCompactProps, type InputOtpCompactSlots, _default$1 as InputOtpInput, type InputOtpInputMode, type InputOtpInputProps, _default$2 as InputOtpPositioner, type InputOtpPositionerProps, type InputOtpPushPasswordManagerStrategy, _default$3 as InputOtpRoot, type InputOtpRootContext, type InputOtpRootEmits, type InputOtpRootProps, type InputOtpRootSlotProps, type InputOtpSlotProps, type InputOtpUi, type InputOtpUiSlot, REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS, provideInputOtpUi };
7
+ export { _default as InputOtpCompact, type InputOtpCompactEmits, type InputOtpCompactProps, type InputOtpCompactSlots, _default$1 as InputOtpInput, type InputOtpInputMode, type InputOtpInputProps, _default$2 as InputOtpPositioner, type InputOtpPositionerProps, type InputOtpPushPasswordManagerStrategy, _default$3 as InputOtpRoot, type InputOtpRootContext, type InputOtpRootEmits, type InputOtpRootProps, type InputOtpRootSlotProps, type InputOtpSlotProps, type InputOtpUi, type InputOtpUiSlot, provideInputOtpUi };
@@ -1 +1 @@
1
- import{provideInputOtpUi as e}from"./context.js";import t from"./input-otp-input.js";import n from"./input-otp-positioner.js";import r from"./input-otp-root.js";import i from"./input-otp-compact.js";import{REGEXP_ONLY_CHARS as a,REGEXP_ONLY_DIGITS as o,REGEXP_ONLY_DIGITS_AND_CHARS as s}from"./regexp.js";export{i as InputOtpCompact,t as InputOtpInput,n as InputOtpPositioner,r as InputOtpRoot,a as REGEXP_ONLY_CHARS,o as REGEXP_ONLY_DIGITS,s as REGEXP_ONLY_DIGITS_AND_CHARS,e as provideInputOtpUi};
1
+ import{provideInputOtpUi as e}from"./context.js";import t from"./input-otp-input.js";import n from"./input-otp-positioner.js";import r from"./input-otp-root.js";import i from"./input-otp-compact.js";export{i as InputOtpCompact,t as InputOtpInput,n as InputOtpPositioner,r as InputOtpRoot,e as provideInputOtpUi};
@@ -6,24 +6,24 @@ type __VLS_Slots = InputOtpCompactSlots;
6
6
  declare const __VLS_base: _$vue.DefineComponent<InputOtpCompactProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
7
7
  input: (value: string) => any;
8
8
  select: (event: Event) => any;
9
- blur: (event: FocusEvent) => any;
10
9
  change: (event: Event) => any;
10
+ "update:modelValue": (value: string) => any;
11
+ blur: (event: FocusEvent) => any;
11
12
  focus: (event: FocusEvent) => any;
12
13
  mouseleave: (event: MouseEvent) => any;
13
14
  mouseover: (event: MouseEvent) => any;
14
15
  paste: (event: ClipboardEvent) => any;
15
- "update:modelValue": (value: string) => any;
16
16
  complete: (value: string) => any;
17
17
  }, string, _$vue.PublicProps, Readonly<InputOtpCompactProps> & Readonly<{
18
18
  onInput?: ((value: string) => any) | undefined;
19
19
  onSelect?: ((event: Event) => any) | undefined;
20
- onBlur?: ((event: FocusEvent) => any) | undefined;
21
20
  onChange?: ((event: Event) => any) | undefined;
21
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
22
+ onBlur?: ((event: FocusEvent) => any) | undefined;
22
23
  onFocus?: ((event: FocusEvent) => any) | undefined;
23
24
  onMouseleave?: ((event: MouseEvent) => any) | undefined;
24
25
  onMouseover?: ((event: MouseEvent) => any) | undefined;
25
26
  onPaste?: ((event: ClipboardEvent) => any) | undefined;
26
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
27
27
  onComplete?: ((value: string) => any) | undefined;
28
28
  }>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
29
29
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -18,30 +18,30 @@ declare const __VLS_base: _$vue.DefineComponent<InputOtpRootProps, {
18
18
  }, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
19
19
  input: (value: string) => any;
20
20
  select: (event: Event) => any;
21
- blur: (event: FocusEvent) => any;
22
21
  change: (event: Event) => any;
22
+ "update:modelValue": (value: string) => any;
23
+ blur: (event: FocusEvent) => any;
23
24
  focus: (event: FocusEvent) => any;
24
25
  mouseleave: (event: MouseEvent) => any;
25
26
  mouseover: (event: MouseEvent) => any;
26
27
  paste: (event: ClipboardEvent) => any;
27
- "update:modelValue": (value: string) => any;
28
28
  complete: (value: string) => any;
29
29
  }, string, _$vue.PublicProps, Readonly<InputOtpRootProps> & Readonly<{
30
30
  onInput?: ((value: string) => any) | undefined;
31
31
  onSelect?: ((event: Event) => any) | undefined;
32
- onBlur?: ((event: FocusEvent) => any) | undefined;
33
32
  onChange?: ((event: Event) => any) | undefined;
33
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
34
+ onBlur?: ((event: FocusEvent) => any) | undefined;
34
35
  onFocus?: ((event: FocusEvent) => any) | undefined;
35
36
  onMouseleave?: ((event: MouseEvent) => any) | undefined;
36
37
  onMouseover?: ((event: MouseEvent) => any) | undefined;
37
38
  onPaste?: ((event: ClipboardEvent) => any) | undefined;
38
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
39
39
  onComplete?: ((value: string) => any) | undefined;
40
40
  }>, {
41
41
  autocomplete: string;
42
42
  inputmode: InputOtpInputMode;
43
- defaultValue: string;
44
43
  modelValue: string;
44
+ defaultValue: string;
45
45
  pushPasswordManagerStrategy: InputOtpPushPasswordManagerStrategy;
46
46
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
47
47
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -3,8 +3,17 @@ import { FormFieldCommonProps } from "../../types/component.js";
3
3
  import { ComputedRef, HTMLAttributes, InputHTMLAttributes, ShallowRef } from "vue";
4
4
 
5
5
  //#region src/components/input-otp/types.d.ts
6
+ /**
7
+ * Type information for the input otp input mode component.
8
+ */
6
9
  type InputOtpInputMode = 'numeric' | 'text';
10
+ /**
11
+ * Type information for the input otp push password manager strategy component.
12
+ */
7
13
  type InputOtpPushPasswordManagerStrategy = 'increase-width' | 'none';
14
+ /**
15
+ * Props for the input otp root component.
16
+ */
8
17
  interface InputOtpRootProps extends FormFieldCommonProps, /** @vue-ignore */Omit<HTMLAttributes, 'onInput'> {
9
18
  /** The id of the native input element. */
10
19
  id?: string;
@@ -37,25 +46,79 @@ interface InputOtpRootProps extends FormFieldCommonProps, /** @vue-ignore */Omit
37
46
  /** Transform pasted content before it is inserted. */
38
47
  pasteTransformer?: (pasted: string | undefined) => string;
39
48
  }
49
+ /**
50
+ * Emits for the input otp root component.
51
+ */
40
52
  type InputOtpRootEmits = {
53
+ /**
54
+ * Emitted when the model value changes.
55
+ */
41
56
  'update:modelValue': [value: string];
57
+ /**
58
+ * Emitted when complete occurs.
59
+ */
42
60
  complete: [value: string];
61
+ /**
62
+ * Emitted when input occurs.
63
+ */
43
64
  input: [value: string];
65
+ /**
66
+ * Emitted when change occurs.
67
+ */
44
68
  change: [event: Event];
69
+ /**
70
+ * Emitted when select occurs.
71
+ */
45
72
  select: [event: Event];
73
+ /**
74
+ * Emitted when focus occurs.
75
+ */
46
76
  focus: [event: FocusEvent];
77
+ /**
78
+ * Emitted when blur occurs.
79
+ */
47
80
  blur: [event: FocusEvent];
81
+ /**
82
+ * Emitted when mouseover occurs.
83
+ */
48
84
  mouseover: [event: MouseEvent];
85
+ /**
86
+ * Emitted when mouseleave occurs.
87
+ */
49
88
  mouseleave: [event: MouseEvent];
89
+ /**
90
+ * Emitted when paste occurs.
91
+ */
50
92
  paste: [event: ClipboardEvent];
51
93
  };
94
+ /**
95
+ * Props for the input otp positioner component.
96
+ */
52
97
  interface InputOtpPositionerProps extends /** @vue-ignore */HTMLAttributes {}
98
+ /**
99
+ * Props for the input otp input component.
100
+ */
53
101
  interface InputOtpInputProps extends /** @vue-ignore */InputHTMLAttributes {}
102
+ /**
103
+ * Props for the input otp compact component.
104
+ */
54
105
  interface InputOtpCompactProps extends InputOtpRootProps {}
106
+ /**
107
+ * Emits for the input otp compact component.
108
+ */
55
109
  type InputOtpCompactEmits = InputOtpRootEmits;
110
+ /**
111
+ * Slots for the input otp compact component.
112
+ */
56
113
  type InputOtpCompactSlots = {
114
+ /**
115
+ * Custom content for the default slot.
116
+ */
57
117
  default?: (props: InputOtpRootSlotProps) => any;
58
118
  };
119
+ /**
120
+ * Slot props for the input otp component.
121
+ */
59
122
  interface InputOtpSlotProps {
60
123
  /** The typed character at the current slot. */
61
124
  char: string | null;
@@ -66,48 +129,171 @@ interface InputOtpSlotProps {
66
129
  /** Whether the slot should render a fake caret. */
67
130
  hasFakeCaret: boolean;
68
131
  }
132
+ /**
133
+ * Slot props for the input otp root component.
134
+ */
69
135
  interface InputOtpRootSlotProps {
136
+ /**
137
+ * Slots exposed in the slot scope.
138
+ */
70
139
  slots: InputOtpSlotProps[];
140
+ /**
141
+ * Whether the item is focused.
142
+ */
71
143
  isFocused: boolean;
144
+ /**
145
+ * Whether the item is hovered.
146
+ */
72
147
  isHovering: boolean;
73
148
  }
149
+ /**
150
+ * Context for the input otp root component.
151
+ */
74
152
  interface InputOtpRootContext {
153
+ /**
154
+ * Autocomplete used by the component context.
155
+ */
75
156
  autocomplete: ComputedRef<string | undefined>;
157
+ /**
158
+ * Autofocus used by the component context.
159
+ */
76
160
  autofocus: ComputedRef<boolean | undefined>;
161
+ /**
162
+ * Whether the component is disabled.
163
+ */
77
164
  disabled: ComputedRef<boolean | undefined>;
165
+ /**
166
+ * Input attrs used by the component context.
167
+ */
78
168
  inputAttrs: ComputedRef<Record<string, unknown>>;
169
+ /**
170
+ * Current model value.
171
+ */
79
172
  modelValue: ComputedRef<string>;
173
+ /**
174
+ * Slots used by the component context.
175
+ */
80
176
  slots: ComputedRef<InputOtpSlotProps[]>;
177
+ /**
178
+ * Whether will push pwmbadge.
179
+ */
81
180
  willPushPWMBadge: ComputedRef<boolean>;
181
+ /**
182
+ * Whether the item is focused.
183
+ */
82
184
  isFocused: ShallowRef<boolean>;
185
+ /**
186
+ * Whether the item is hovered.
187
+ */
83
188
  isHovering: ShallowRef<boolean>;
189
+ /**
190
+ * Input element used by the component context.
191
+ */
84
192
  inputElement: ShallowRef<HTMLInputElement | null>;
193
+ /**
194
+ * Inputmode used by the component context.
195
+ */
85
196
  inputmode: ComputedRef<InputOtpInputMode | undefined>;
197
+ /**
198
+ * Maxlength used by the component context.
199
+ */
86
200
  maxlength: ComputedRef<number>;
201
+ /**
202
+ * Minlength used by the component context.
203
+ */
87
204
  minlength: ComputedRef<number | undefined>;
205
+ /**
206
+ * Mirror selection start used by the component context.
207
+ */
88
208
  mirrorSelectionStart: ShallowRef<number | null>;
209
+ /**
210
+ * Mirror selection end used by the component context.
211
+ */
89
212
  mirrorSelectionEnd: ShallowRef<number | null>;
213
+ /**
214
+ * Name used by the component context.
215
+ */
90
216
  name: ComputedRef<string | undefined>;
217
+ /**
218
+ * Pattern used by the component context.
219
+ */
91
220
  pattern: ComputedRef<string | undefined>;
221
+ /**
222
+ * Whether the component is readonly.
223
+ */
92
224
  readonly: ComputedRef<boolean | undefined>;
225
+ /**
226
+ * Whether the value is required.
227
+ */
93
228
  required: ComputedRef<boolean | undefined>;
229
+ /**
230
+ * Resolved accessible label used by the component context.
231
+ */
94
232
  resolvedAccessibleLabel: ComputedRef<string>;
233
+ /**
234
+ * Resolved id used by the component context.
235
+ */
95
236
  resolvedId: ComputedRef<string | undefined>;
237
+ /**
238
+ * Resolved placeholder used by the component context.
239
+ */
96
240
  resolvedPlaceholder: ComputedRef<string | undefined>;
241
+ /**
242
+ * Focus used by the component context.
243
+ */
97
244
  focus: () => void;
245
+ /**
246
+ * Blur used by the component context.
247
+ */
98
248
  blur: () => void;
249
+ /**
250
+ * Select used by the component context.
251
+ */
99
252
  select: () => void;
253
+ /**
254
+ * Callback invoked when the before input event fires.
255
+ */
100
256
  onBeforeInput: (event: InputEvent) => void;
257
+ /**
258
+ * Callback invoked when the native changes.
259
+ */
101
260
  onNativeChange: (event: Event) => void;
261
+ /**
262
+ * Callback invoked when the native select event fires.
263
+ */
102
264
  onNativeSelect: (event: Event) => void;
265
+ /**
266
+ * Callback invoked when the mouse over event fires.
267
+ */
103
268
  onMouseOver: (event: MouseEvent) => void;
269
+ /**
270
+ * Callback invoked when the mouse leave event fires.
271
+ */
104
272
  onMouseLeave: (event: MouseEvent) => void;
273
+ /**
274
+ * Callback invoked when the paste event fires.
275
+ */
105
276
  onPaste: (event: ClipboardEvent) => void;
277
+ /**
278
+ * Callback invoked when the input event fires.
279
+ */
106
280
  onInput: (event: Event) => void;
281
+ /**
282
+ * Callback invoked when the focus event fires.
283
+ */
107
284
  onFocus: (event: FocusEvent) => void;
285
+ /**
286
+ * Callback invoked when the blur event fires.
287
+ */
108
288
  onBlur: (event: FocusEvent) => void;
109
289
  }
290
+ /**
291
+ * Available UI slots for the input otp component.
292
+ */
110
293
  type InputOtpUiSlot = 'root' | 'positioner' | 'input' | 'group' | 'slot' | 'char' | 'placeholder' | 'caret';
294
+ /**
295
+ * UI class overrides for the input otp component.
296
+ */
111
297
  type InputOtpUi = UiClass<InputOtpUiSlot>;
112
298
  //#endregion
113
299
  export { InputOtpCompactEmits, InputOtpCompactProps, InputOtpCompactSlots, InputOtpInputMode, InputOtpInputProps, InputOtpPositionerProps, InputOtpPushPasswordManagerStrategy, InputOtpRootContext, InputOtpRootEmits, InputOtpRootProps, InputOtpRootSlotProps, InputOtpSlotProps, InputOtpUi, InputOtpUiSlot };
@@ -2,7 +2,13 @@ import { KbdKey } from "../../types/common.js";
2
2
  import { HTMLAttributes } from "vue";
3
3
 
4
4
  //#region src/components/kbd/types.d.ts
5
+ /**
6
+ * Type information for the kbd value component.
7
+ */
5
8
  type KbdValue = KbdKey | (string & {});
9
+ /**
10
+ * Props for the kbd component.
11
+ */
6
12
  interface KbdProps extends /** @vue-ignore */HTMLAttributes {
7
13
  /**
8
14
  * The value of the component.
@@ -1,6 +1,9 @@
1
1
  import { LabelHTMLAttributes } from "vue";
2
2
 
3
3
  //#region src/components/label/types.d.ts
4
+ /**
5
+ * Props for the label component.
6
+ */
4
7
  interface LabelProps extends /** @vue-ignore */LabelHTMLAttributes {
5
8
  /** The id of the element the label is associated with. */
6
9
  for?: string;
@@ -17,8 +17,8 @@ declare const __VLS_base: _$vue.DefineComponent<LayoutRootProps, {}, {}, {}, {},
17
17
  collapsible: LayoutCollapsible;
18
18
  open: boolean;
19
19
  defaultOpen: boolean;
20
- variant: LayoutVariant;
21
20
  side: LayoutSide;
21
+ variant: LayoutVariant;
22
22
  sidebarVisible: boolean;
23
23
  sidebarWidth: number;
24
24
  collapsedSidebarWidth: number;
@@ -3,11 +3,26 @@ import { PrimitiveProps } from "../primitive/types.js";
3
3
  import { ComputedRef, HTMLAttributes, ShallowRef } from "vue";
4
4
 
5
5
  //#region src/components/layout/types.d.ts
6
+ /**
7
+ * Type information for the layout variant component.
8
+ */
6
9
  type LayoutVariant = 'sidebar' | 'floating' | 'inset';
10
+ /**
11
+ * Type information for the layout side component.
12
+ */
7
13
  type LayoutSide = HorizontalSide;
14
+ /**
15
+ * Type information for the layout collapsible component.
16
+ */
8
17
  type LayoutCollapsible = 'offcanvas' | 'icon';
18
+ /**
19
+ * State values for the layout component.
20
+ */
9
21
  type LayoutSidebarState = 'expanded' | 'collapsed';
10
- interface LayoutRootProps extends /* @vue-ignore */HTMLAttributes {
22
+ /**
23
+ * Props for the layout root component.
24
+ */
25
+ interface LayoutRootProps extends /** @vue-ignore */HTMLAttributes {
11
26
  /** The controlled open state of the layout. Can be bound with `v-model`. */
12
27
  open?: boolean;
13
28
  /** The open state of the layout when it is initially rendered.
@@ -99,18 +114,51 @@ interface LayoutRootProps extends /* @vue-ignore */HTMLAttributes {
99
114
  */
100
115
  pxToRem?: (px: number) => number;
101
116
  }
117
+ /**
118
+ * Emits for the layout root component.
119
+ */
102
120
  type LayoutRootEmits = {
121
+ /**
122
+ * Emitted when the open state changes.
123
+ */
103
124
  'update:open': [open: boolean];
104
125
  };
105
- interface LayoutSidebarProps extends /* @vue-ignore */HTMLAttributes {}
106
- interface LayoutRailProps extends /* @vue-ignore */HTMLAttributes {}
107
- interface LayoutMainProps extends /* @vue-ignore */HTMLAttributes {}
108
- interface LayoutHeaderProps extends /* @vue-ignore */HTMLAttributes {}
109
- interface LayoutTabProps extends /* @vue-ignore */HTMLAttributes {}
110
- interface LayoutContentProps extends /* @vue-ignore */HTMLAttributes {}
111
- interface LayoutFooterProps extends /* @vue-ignore */HTMLAttributes {}
112
- interface LayoutTriggerProps extends PrimitiveProps, /* @vue-ignore */HTMLAttributes {}
113
- interface LayoutMobileProps extends /* @vue-ignore */HTMLAttributes {}
126
+ /**
127
+ * Props for the layout sidebar component.
128
+ */
129
+ interface LayoutSidebarProps extends /** @vue-ignore */HTMLAttributes {}
130
+ /**
131
+ * Props for the layout rail component.
132
+ */
133
+ interface LayoutRailProps extends /** @vue-ignore */HTMLAttributes {}
134
+ /**
135
+ * Props for the layout main component.
136
+ */
137
+ interface LayoutMainProps extends /** @vue-ignore */HTMLAttributes {}
138
+ /**
139
+ * Props for the layout header component.
140
+ */
141
+ interface LayoutHeaderProps extends /** @vue-ignore */HTMLAttributes {}
142
+ /**
143
+ * Props for the layout tab component.
144
+ */
145
+ interface LayoutTabProps extends /** @vue-ignore */HTMLAttributes {}
146
+ /**
147
+ * Props for the layout content component.
148
+ */
149
+ interface LayoutContentProps extends /** @vue-ignore */HTMLAttributes {}
150
+ /**
151
+ * Props for the layout footer component.
152
+ */
153
+ interface LayoutFooterProps extends /** @vue-ignore */HTMLAttributes {}
154
+ /**
155
+ * Props for the layout trigger component.
156
+ */
157
+ interface LayoutTriggerProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
158
+ /**
159
+ * Props for the layout mobile component.
160
+ */
161
+ interface LayoutMobileProps extends /** @vue-ignore */HTMLAttributes {}
114
162
  interface LayoutOthersProps {
115
163
  sidebarProps?: LayoutSidebarProps;
116
164
  railProps?: LayoutRailProps;
@@ -121,23 +169,65 @@ interface LayoutOthersProps {
121
169
  footerProps?: LayoutFooterProps;
122
170
  mobileProps?: LayoutMobileProps;
123
171
  }
172
+ /**
173
+ * Props for the layout compact component.
174
+ */
124
175
  interface LayoutCompactProps extends LayoutRootProps, LayoutOthersProps {}
176
+ /**
177
+ * Emits for the layout compact component.
178
+ */
125
179
  type LayoutCompactEmits = LayoutRootEmits;
180
+ /**
181
+ * Slots for the layout compact component.
182
+ */
126
183
  type LayoutCompactSlots = {
184
+ /**
185
+ * Custom content for the default slot.
186
+ */
127
187
  default?: () => any;
188
+ /**
189
+ * Custom content for the sidebar slot.
190
+ */
128
191
  sidebar?: (props: {
129
192
  open: boolean | undefined;
130
193
  collapsedSidebarWidth: number;
131
194
  }) => any;
195
+ /**
196
+ * Custom content for the header slot.
197
+ */
132
198
  header?: () => any;
199
+ /**
200
+ * Custom content for the tab slot.
201
+ */
133
202
  tab?: () => any;
203
+ /**
204
+ * Custom content for the content slot.
205
+ */
134
206
  content?: () => any;
207
+ /**
208
+ * Custom content for the footer slot.
209
+ */
135
210
  footer?: () => any;
136
211
  };
212
+ /**
213
+ * Type information for the layout classic scroll behavior component.
214
+ */
137
215
  type LayoutClassicScrollBehavior = 'wrapper' | 'content';
216
+ /**
217
+ * Props for the layout classic root component.
218
+ */
138
219
  interface LayoutClassicRootProps extends Omit<LayoutRootProps, 'variant' | 'collapsible'> {
220
+ /**
221
+ * Orientation of the component.
222
+ */
139
223
  orientation?: DataOrientation;
224
+ /**
225
+ * Scroll behavior.
226
+ */
140
227
  scrollBehavior?: LayoutClassicScrollBehavior;
228
+ /**
229
+ * Scroll id.
230
+ */
141
231
  scrollId?: string;
142
232
  /**
143
233
  * The base z-index of the layout. The z-index of the sidebar, header, tab, footer, and their fixed versions will be calculated based on this value.
@@ -164,13 +254,37 @@ interface LayoutClassicRootProps extends Omit<LayoutRootProps, 'variant' | 'coll
164
254
  */
165
255
  stretchFooter?: boolean;
166
256
  }
257
+ /**
258
+ * Emits for the layout classic root component.
259
+ */
167
260
  type LayoutClassicRootEmits = LayoutRootEmits;
261
+ /**
262
+ * Props for the layout classic compact component.
263
+ */
168
264
  interface LayoutClassicCompactProps extends LayoutClassicRootProps, LayoutOthersProps {}
265
+ /**
266
+ * Emits for the layout classic compact component.
267
+ */
169
268
  type LayoutClassicCompactEmits = LayoutClassicRootEmits;
269
+ /**
270
+ * Slots for the layout classic compact component.
271
+ */
170
272
  type LayoutClassicCompactSlots = LayoutCompactSlots;
273
+ /**
274
+ * Available UI slots for the layout component.
275
+ */
171
276
  type LayoutUiSlot = 'root' | 'sidebar' | 'sidebarRoot' | 'sidebarWrapper' | 'sidebarGapHandler' | 'main' | 'header' | 'tab' | 'content' | 'footer' | 'rail' | 'trigger' | 'mobile' | 'mobileDrawer' | 'mobileOverlay';
277
+ /**
278
+ * UI class overrides for the layout component.
279
+ */
172
280
  type LayoutUi = UiClass<LayoutUiSlot>;
281
+ /**
282
+ * Available UI slots for the layout component.
283
+ */
173
284
  type LayoutClassicUiSlot = LayoutUiSlot | 'headerPlaceholder' | 'tabPlaceholder' | 'footerPlaceholder';
285
+ /**
286
+ * UI class overrides for the layout component.
287
+ */
174
288
  type LayoutClassicUi = UiClass<LayoutClassicUiSlot>;
175
289
  //#endregion
176
290
  export { LayoutClassicCompactEmits, LayoutClassicCompactProps, LayoutClassicCompactSlots, LayoutClassicScrollBehavior, LayoutClassicUi, LayoutClassicUiSlot, LayoutCollapsible, LayoutCompactEmits, LayoutCompactProps, LayoutCompactSlots, LayoutContentProps, LayoutFooterProps, LayoutHeaderProps, LayoutMainProps, LayoutMobileProps, LayoutRailProps, LayoutRootEmits, LayoutRootProps, LayoutSide, LayoutSidebarProps, LayoutSidebarState, LayoutTabProps, LayoutTriggerProps, LayoutUi, LayoutUiSlot, LayoutVariant };