@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
@@ -17,8 +17,8 @@ declare const __VLS_base: _$vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, _$v
17
17
  }>, {
18
18
  orientation: DataOrientation;
19
19
  modelValue: DefinedValue | null;
20
- unmountOnHide: boolean;
21
20
  loop: boolean;
21
+ unmountOnHide: boolean;
22
22
  activationMode: TabsActivationMode;
23
23
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
24
24
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -5,7 +5,13 @@ import { RovingFocusGroupProps } from "../roving-focus/types.js";
5
5
  import { HTMLAttributes, ShallowRef } from "vue";
6
6
 
7
7
  //#region src/components/tabs/types.d.ts
8
+ /**
9
+ * Type information for the tabs activation mode component.
10
+ */
8
11
  type TabsActivationMode = 'automatic' | 'manual';
12
+ /**
13
+ * Props for the tabs root component.
14
+ */
9
15
  interface TabsRootProps<T extends AcceptableValue = AcceptableValue> extends Omit<RovingFocusGroupProps, 'as' | 'asChild' | 'currentTabStopId' | 'defaultCurrentTabStopId' | 'preventScrollOnEntryFocus'> {
10
16
  /** The controlled value of the tab to activate. Can be bind as `v-model`. */
11
17
  modelValue?: T;
@@ -27,45 +33,114 @@ interface TabsRootProps<T extends AcceptableValue = AcceptableValue> extends Omi
27
33
  */
28
34
  unmountOnHide?: boolean;
29
35
  }
36
+ /**
37
+ * Emits for the tabs root component.
38
+ */
30
39
  type TabsRootEmits<T = AcceptableValue> = {
31
40
  /** Event handler called when the value changes */'update:modelValue': [payload: NonNullable<T>];
32
41
  };
42
+ /**
43
+ * Props for the tabs list component.
44
+ */
33
45
  interface TabsListProps extends /** @vue-ignore */HTMLAttributes {}
46
+ /**
47
+ * Props for the tabs content component.
48
+ */
34
49
  interface TabsContentProps extends ForceMountProps, /** @vue-ignore */HTMLAttributes {
35
50
  /** A unique value that associates the content with a trigger. */
36
51
  value: DefinedValue;
37
52
  }
53
+ /**
54
+ * Props for the tabs trigger component.
55
+ */
38
56
  interface TabsTriggerProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
39
57
  /** A unique value that associates the trigger with a content. */
40
58
  value: DefinedValue;
41
59
  /** When `true`, prevents the user from interacting with the tab. */
42
60
  disabled?: boolean;
43
61
  }
62
+ /**
63
+ * Props for the tabs indicator component.
64
+ */
44
65
  interface TabsIndicatorProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
66
+ /**
67
+ * Option data for the tabs component.
68
+ */
45
69
  interface TabsOptionData<T extends DefinedValue = DefinedValue> {
70
+ /**
71
+ * Value associated with the current item.
72
+ */
46
73
  value: T;
74
+ /**
75
+ * Label text rendered by the component.
76
+ */
47
77
  label: string;
78
+ /**
79
+ * Whether the component is disabled.
80
+ */
48
81
  disabled?: boolean;
49
82
  }
83
+ /**
84
+ * Props for the tabs compact component.
85
+ */
50
86
  interface TabsCompactProps<T extends TabsOptionData = TabsOptionData> extends TabsRootProps<T['value'] | null> {
87
+ /**
88
+ * Items rendered by the component.
89
+ */
51
90
  items: T[];
91
+ /**
92
+ * Whether to enable indicator.
93
+ */
52
94
  enableIndicator?: boolean;
95
+ /**
96
+ * Props forwarded to the list element.
97
+ */
53
98
  listProps?: TabsListProps;
99
+ /**
100
+ * Props forwarded to the trigger element.
101
+ */
54
102
  triggerProps?: TabsTriggerProps;
103
+ /**
104
+ * Props forwarded to the content element.
105
+ */
55
106
  contentProps?: TabsContentProps;
107
+ /**
108
+ * Props forwarded to the indicator element.
109
+ */
56
110
  indicatorProps?: TabsIndicatorProps;
57
111
  }
112
+ /**
113
+ * Emits for the tabs compact component.
114
+ */
58
115
  type TabsCompactEmits<T extends AcceptableValue = AcceptableValue> = TabsRootEmits<T>;
116
+ /**
117
+ * Slots for the tabs compact component.
118
+ */
59
119
  type TabsCompactSlots<T extends TabsOptionData = TabsOptionData> = {
120
+ /**
121
+ * Custom content for the trigger slot.
122
+ */
60
123
  trigger?: (props: T & {
61
124
  active: boolean;
62
125
  }) => any;
126
+ /**
127
+ * Custom content for the content slot.
128
+ */
63
129
  content?: (props: T & {
64
130
  active: boolean;
65
131
  }) => any;
132
+ /**
133
+ * Custom content for the indicator slot.
134
+ */
66
135
  indicator?: () => any;
67
136
  };
137
+ /**
138
+ * Available UI slots for the tabs component.
139
+ */
68
140
  type TabsUiSlot = 'root' | 'list' | 'trigger' | 'content' | 'indicator' | 'indicatorContent';
141
+ /**
142
+ * UI class overrides for the tabs component.
143
+ */
69
144
  type TabsUi = UiClass<TabsUiSlot>;
70
145
  //#endregion
71
146
  export { TabsActivationMode, TabsCompactEmits, TabsCompactProps, TabsCompactSlots, TabsContentProps, TabsIndicatorProps, TabsListProps, TabsOptionData, TabsRootEmits, TabsRootProps, TabsTriggerProps, TabsUi, TabsUiSlot };
@@ -1,10 +1,22 @@
1
1
  import { HTMLAttributes } from "vue";
2
2
 
3
3
  //#region src/components/tag/types.d.ts
4
+ /**
5
+ * Props for the tag component.
6
+ */
4
7
  interface TagProps extends /** @vue-ignore */HTMLAttributes {
8
+ /**
9
+ * Whether the component is open.
10
+ */
5
11
  open?: boolean;
6
12
  }
13
+ /**
14
+ * Emits for the tag component.
15
+ */
7
16
  type TagEmits = {
17
+ /**
18
+ * Emitted when the open state changes.
19
+ */
8
20
  'update:open': [open: boolean];
9
21
  };
10
22
  //#endregion
@@ -4,8 +4,8 @@ import * as _$vue from "vue";
4
4
  //#region src/components/tags-input/tags-input-root.vue.d.ts
5
5
  declare const __VLS_export: <T extends TagsInputAcceptableValue = string>(__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
6
  props: _$vue.PublicProps & __VLS_PrettifyLocal<TagsInputRootProps<T> & {
7
- onInvalid?: ((value: T) => any) | undefined;
8
7
  "onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
8
+ onInvalid?: ((value: T) => any) | undefined;
9
9
  onAddTag?: ((value: T) => any) | undefined;
10
10
  onRemoveTag?: ((value: T) => any) | undefined;
11
11
  }> & (typeof globalThis extends {
@@ -18,7 +18,7 @@ declare const __VLS_export: <T extends TagsInputAcceptableValue = string>(__VLS_
18
18
  modelValue: TagsInputAcceptableValue[] | undefined;
19
19
  }) => any;
20
20
  };
21
- emit: ((evt: "invalid", value: T) => void) & ((evt: "update:modelValue", value: T[]) => void) & ((evt: "addTag", value: T) => void) & ((evt: "removeTag", value: T) => void);
21
+ emit: ((evt: "update:modelValue", value: T[]) => void) & ((evt: "invalid", value: T) => void) & ((evt: "addTag", value: T) => void) & ((evt: "removeTag", value: T) => void);
22
22
  }>) => _$vue.VNode & {
23
23
  __ctx?: Awaited<typeof __VLS_setup>;
24
24
  };
@@ -4,7 +4,13 @@ import { PrimitiveProps } from "../primitive/types.js";
4
4
  import { ComputedRef, HTMLAttributes, ShallowRef } from "vue";
5
5
 
6
6
  //#region src/components/tags-input/types.d.ts
7
+ /**
8
+ * Type information for the tags input acceptable value component.
9
+ */
7
10
  type TagsInputAcceptableValue = string | number | bigint | Record<string, unknown>;
11
+ /**
12
+ * Props for the tags input root component.
13
+ */
8
14
  interface TagsInputRootProps<T = TagsInputAcceptableValue> extends FormFieldCommonProps, /** @vue-ignore */HTMLAttributes {
9
15
  /** Id of the input element. */
10
16
  id?: string;
@@ -33,31 +39,88 @@ interface TagsInputRootProps<T = TagsInputAcceptableValue> extends FormFieldComm
33
39
  /** Display the tag value. */
34
40
  displayValue?: (value: T) => string;
35
41
  }
42
+ /**
43
+ * Emits for the tags input root component.
44
+ */
36
45
  type TagsInputRootEmits<T = TagsInputAcceptableValue> = {
46
+ /**
47
+ * Emitted when the model value changes.
48
+ */
37
49
  'update:modelValue': [value: T[]];
50
+ /**
51
+ * Emitted when invalid occurs.
52
+ */
38
53
  invalid: [value: T];
54
+ /**
55
+ * Emitted when add tag occurs.
56
+ */
39
57
  addTag: [value: T];
58
+ /**
59
+ * Emitted when remove tag occurs.
60
+ */
40
61
  removeTag: [value: T];
41
62
  };
63
+ /**
64
+ * Props for the tags input input component.
65
+ */
42
66
  interface TagsInputInputProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
67
+ /**
68
+ * Id.
69
+ */
43
70
  id?: string;
71
+ /**
72
+ * Placeholder.
73
+ */
44
74
  placeholder?: string;
75
+ /**
76
+ * Whether autofocus.
77
+ */
45
78
  autofocus?: boolean;
79
+ /**
80
+ * Maxlength.
81
+ */
46
82
  maxlength?: number;
83
+ /**
84
+ * Whether the component is disabled.
85
+ */
47
86
  disabled?: boolean;
87
+ /**
88
+ * Aria label.
89
+ */
48
90
  'aria-label'?: string;
91
+ /**
92
+ * Aria controls.
93
+ */
49
94
  'aria-controls'?: string;
50
95
  }
96
+ /**
97
+ * Props for the tags input item component.
98
+ */
51
99
  interface TagsInputItemProps<T = TagsInputAcceptableValue> extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'value'> {
52
100
  /** Value associated with the tag. */
53
101
  value: T;
54
102
  /** Whether to disable the tag item. */
55
103
  disabled?: boolean;
56
104
  }
105
+ /**
106
+ * Props for the tags input item text component.
107
+ */
57
108
  interface TagsInputItemTextProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
109
+ /**
110
+ * Props for the tags input item delete component.
111
+ */
58
112
  interface TagsInputItemDeleteProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
113
+ /**
114
+ * Props for the tags input clear component.
115
+ */
59
116
  interface TagsInputClearProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
117
+ /**
118
+ * Available UI slots for the tags input component.
119
+ */
60
120
  type TagsInputUiSlot = 'root' | 'item' | 'itemText' | 'itemDelete' | 'input' | 'clear';
121
+ /**
122
+ * UI class overrides for the tags input component.
123
+ */
61
124
  type TagsInputUi = UiClass<TagsInputUiSlot>;
62
125
  //#endregion
63
126
  export { TagsInputAcceptableValue, TagsInputClearProps, TagsInputInputProps, TagsInputItemDeleteProps, TagsInputItemProps, TagsInputItemTextProps, TagsInputRootEmits, TagsInputRootProps, TagsInputUi, TagsInputUiSlot };
@@ -3,12 +3,18 @@ import { FormFieldCommonProps } from "../../types/component.js";
3
3
  import { ComputedRef, HTMLAttributes, ShallowRef, TextareaHTMLAttributes } from "vue";
4
4
 
5
5
  //#region src/components/textarea/types.d.ts
6
+ /**
7
+ * Type information for the textarea autosize options component.
8
+ */
6
9
  interface TextareaAutosizeOptions {
7
10
  /** The minimum number of rows to display */
8
11
  minRows?: number;
9
12
  /** The maximum number of rows to display */
10
13
  maxRows?: number;
11
14
  }
15
+ /**
16
+ * Props for the textarea base component.
17
+ */
12
18
  interface TextareaBaseProps {
13
19
  /** Id of the textarea element */
14
20
  id?: string;
@@ -25,6 +31,9 @@ interface TextareaBaseProps {
25
31
  /** When `true`, the textarea is read-only. */
26
32
  readonly?: boolean;
27
33
  }
34
+ /**
35
+ * Props for the textarea root component.
36
+ */
28
37
  interface TextareaRootProps extends TextareaBaseProps, FormFieldCommonProps, /** @vue-ignore */HTMLAttributes {
29
38
  /** The default value of the textarea */
30
39
  defaultValue?: string;
@@ -33,12 +42,30 @@ interface TextareaRootProps extends TextareaBaseProps, FormFieldCommonProps, /**
33
42
  /** When `true` or an options object, enables auto-resizing based on content */
34
43
  autosize?: boolean | TextareaAutosizeOptions;
35
44
  }
45
+ /**
46
+ * Emits for the textarea root component.
47
+ */
36
48
  type TextareaRootEmits = {
49
+ /**
50
+ * Emitted when the model value changes.
51
+ */
37
52
  'update:modelValue': [value: string];
38
53
  };
54
+ /**
55
+ * Props for the textarea control component.
56
+ */
39
57
  interface TextareaControlProps extends /** @vue-ignore */TextareaHTMLAttributes {}
58
+ /**
59
+ * Props for the textarea counter component.
60
+ */
40
61
  interface TextareaCounterProps extends /** @vue-ignore */HTMLAttributes {}
62
+ /**
63
+ * Available UI slots for the textarea component.
64
+ */
41
65
  type TextareaUiSlot = 'root' | 'control' | 'counter';
66
+ /**
67
+ * UI class overrides for the textarea component.
68
+ */
42
69
  type TextareaUi = UiClass<TextareaUiSlot>;
43
70
  //#endregion
44
71
  export { TextareaControlProps, TextareaCounterProps, TextareaRootEmits, TextareaRootProps, TextareaUi, TextareaUiSlot };
@@ -25,11 +25,11 @@ declare const __VLS_base: _$vue.DefineComponent<TimeFieldRootProps, {}, {}, {},
25
25
  disabled: boolean;
26
26
  step: DateStep;
27
27
  defaultValue: TimeValue;
28
+ readonly: boolean;
28
29
  defaultPlaceholder: TimeValue;
29
30
  hourCycle: 12 | 24;
30
31
  granularity: TimeGranularity;
31
32
  hideTimeZone: boolean;
32
- readonly: boolean;
33
33
  isTimeUnavailable: TimeMatcher;
34
34
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
35
35
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -8,56 +8,194 @@ import { Formatter } from "../../date/formatter.js";
8
8
  import { ComputedRef, HTMLAttributes, ShallowRef } from "vue";
9
9
 
10
10
  //#region src/components/time-field/types.d.ts
11
+ /**
12
+ * Props for the time field root component.
13
+ */
11
14
  interface TimeFieldRootProps extends PrimitiveProps, FormFieldCommonProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {
15
+ /**
16
+ * Default value.
17
+ */
12
18
  defaultValue?: TimeValue;
19
+ /**
20
+ * Default placeholder.
21
+ */
13
22
  defaultPlaceholder?: TimeValue;
23
+ /**
24
+ * Placeholder.
25
+ */
14
26
  placeholder?: TimeValue;
27
+ /**
28
+ * Current model value.
29
+ */
15
30
  modelValue?: TimeValue;
31
+ /**
32
+ * Hour cycle.
33
+ */
16
34
  hourCycle?: HourCycle;
35
+ /**
36
+ * Step.
37
+ */
17
38
  step?: DateStep;
39
+ /**
40
+ * Granularity.
41
+ */
18
42
  granularity?: TimeGranularity;
43
+ /**
44
+ * Whether hide time zone.
45
+ */
19
46
  hideTimeZone?: boolean;
47
+ /**
48
+ * Max value.
49
+ */
20
50
  maxValue?: TimeValue;
51
+ /**
52
+ * Min value.
53
+ */
21
54
  minValue?: TimeValue;
55
+ /**
56
+ * Locale.
57
+ */
22
58
  locale?: string;
59
+ /**
60
+ * Whether the component is disabled.
61
+ */
23
62
  disabled?: boolean;
63
+ /**
64
+ * Whether the component is readonly.
65
+ */
24
66
  readonly?: boolean;
67
+ /**
68
+ * Whether the time is unavailable.
69
+ */
25
70
  isTimeUnavailable?: TimeMatcher;
71
+ /**
72
+ * Id.
73
+ */
26
74
  id?: string;
75
+ /**
76
+ * Reading direction of the component.
77
+ */
27
78
  dir?: Direction;
28
79
  }
80
+ /**
81
+ * Emits for the time field root component.
82
+ */
29
83
  type TimeFieldRootEmits = {
84
+ /**
85
+ * Emitted when the model value changes.
86
+ */
30
87
  'update:modelValue': [time: TimeValue | undefined];
88
+ /**
89
+ * Emitted when the placeholder value changes.
90
+ */
31
91
  'update:placeholder': [time: TimeValue];
32
92
  };
93
+ /**
94
+ * Props for the time field input component.
95
+ */
33
96
  interface TimeFieldInputProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
97
+ /**
98
+ * Part.
99
+ */
34
100
  part: SegmentPart;
35
101
  }
102
+ /**
103
+ * Type information for the time field segment component.
104
+ */
36
105
  interface TimeFieldSegment {
106
+ /**
107
+ * Part.
108
+ */
37
109
  part: SegmentPart;
110
+ /**
111
+ * Value associated with the current item.
112
+ */
38
113
  value: string;
39
114
  }
115
+ /**
116
+ * Context for the time field root component.
117
+ */
40
118
  interface TimeFieldRootContext extends PropsToContext<TimeFieldRootProps, 'disabled' | 'readonly'> {
119
+ /**
120
+ * Locale used by the component context.
121
+ */
41
122
  locale: ComputedRef<string>;
123
+ /**
124
+ * Reading direction of the component.
125
+ */
42
126
  dir: ComputedRef<Direction>;
127
+ /**
128
+ * Current model value.
129
+ */
43
130
  modelValue: ShallowRef<TimeValue | undefined>;
131
+ /**
132
+ * Placeholder used by the component context.
133
+ */
44
134
  placeholder: ShallowRef<TimeValue>;
135
+ /**
136
+ * Whether the time is unavailable.
137
+ */
45
138
  isTimeUnavailable?: TimeMatcher;
139
+ /**
140
+ * Whether the current value is invalid.
141
+ */
46
142
  isInvalid: ComputedRef<boolean>;
143
+ /**
144
+ * Formatter used by the component context.
145
+ */
47
146
  formatter: Formatter;
147
+ /**
148
+ * Hour cycle used by the component context.
149
+ */
48
150
  hourCycle: HourCycle;
151
+ /**
152
+ * Step used by the component context.
153
+ */
49
154
  step: ComputedRef<DateStep>;
155
+ /**
156
+ * Segment values used by the component context.
157
+ */
50
158
  segmentValues: ShallowRef<SegmentValueObj>;
159
+ /**
160
+ * Segment contents used by the component context.
161
+ */
51
162
  segmentContents: ComputedRef<TimeFieldSegment[]>;
163
+ /**
164
+ * Input type used by the component context.
165
+ */
52
166
  inputType: ComputedRef<TimeInputType>;
167
+ /**
168
+ * Input value used by the component context.
169
+ */
53
170
  inputValue: ComputedRef<string>;
171
+ /**
172
+ * Input max value used by the component context.
173
+ */
54
174
  inputMaxValue: ComputedRef<string | undefined>;
175
+ /**
176
+ * Input min value used by the component context.
177
+ */
55
178
  inputMinValue: ComputedRef<string | undefined>;
179
+ /**
180
+ * Elements used by the component context.
181
+ */
56
182
  elements: ShallowRef<HTMLElement[]>;
183
+ /**
184
+ * Focus next used by the component context.
185
+ */
57
186
  focusNext: () => void;
187
+ /**
188
+ * Set focused element used by the component context.
189
+ */
58
190
  setFocusedElement: (el: HTMLElement) => void;
59
191
  }
192
+ /**
193
+ * Available UI slots for the time field component.
194
+ */
60
195
  type TimeFieldUiSlot = 'root' | 'input';
196
+ /**
197
+ * UI class overrides for the time field component.
198
+ */
61
199
  type TimeFieldUi = UiClass<TimeFieldUiSlot>;
62
200
  //#endregion
63
201
  export { TimeFieldInputProps, TimeFieldRootContext, TimeFieldRootEmits, TimeFieldRootProps, TimeFieldUi, TimeFieldUiSlot };
@@ -13,25 +13,25 @@ type __VLS_Slots = {
13
13
  };
14
14
  declare const __VLS_base: _$vue.DefineComponent<TimePickerRootProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
15
15
  "update:modelValue": (time: TimeValue | undefined) => any;
16
- "update:placeholder": (time: TimeValue) => any;
17
16
  "update:open": (open: boolean) => any;
17
+ "update:placeholder": (time: TimeValue) => any;
18
18
  }, string, _$vue.PublicProps, Readonly<TimePickerRootProps> & Readonly<{
19
19
  "onUpdate:modelValue"?: ((time: TimeValue | undefined) => any) | undefined;
20
- "onUpdate:placeholder"?: ((time: TimeValue) => any) | undefined;
21
20
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
21
+ "onUpdate:placeholder"?: ((time: TimeValue) => any) | undefined;
22
22
  }>, {
23
23
  placeholder: TimeValue;
24
24
  disabled: boolean;
25
25
  step: DateStep;
26
26
  defaultValue: TimeValue;
27
+ open: boolean;
28
+ defaultOpen: boolean;
29
+ readonly: boolean;
27
30
  defaultPlaceholder: TimeValue;
31
+ modal: boolean;
28
32
  hourCycle: 12 | 24;
29
33
  granularity: TimeGranularity;
30
34
  hideTimeZone: boolean;
31
- readonly: boolean;
32
- open: boolean;
33
- defaultOpen: boolean;
34
- modal: boolean;
35
35
  isTimeUnavailable: TimeMatcher;
36
36
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
37
37
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;