@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
@@ -7,7 +7,13 @@ import { RovingFocusGroupProps } from "../roving-focus/types.js";
7
7
  import { ButtonHTMLAttributes, ComputedRef, HTMLAttributes, ShallowRef } from "vue";
8
8
 
9
9
  //#region src/components/checkbox/types.d.ts
10
+ /**
11
+ * Props for the checkbox root component.
12
+ */
10
13
  interface CheckboxRootProps extends FormFieldCommonProps, /** @vue-ignore */HTMLAttributes {
14
+ /**
15
+ * Id.
16
+ */
11
17
  id?: string;
12
18
  /** The controlled value of the checkbox. Can be bound with v-model. */
13
19
  modelValue?: CheckedState | null;
@@ -26,23 +32,56 @@ interface CheckboxRootProps extends FormFieldCommonProps, /** @vue-ignore */HTML
26
32
  */
27
33
  disabled?: boolean;
28
34
  }
35
+ /**
36
+ * Emits for the checkbox root component.
37
+ */
29
38
  type CheckboxRootEmits = {
30
39
  /** Event handler called when the value of the checkbox changes. */'update:modelValue': [value: CheckedState | null];
31
40
  };
41
+ /**
42
+ * Props for the checkbox control component.
43
+ */
32
44
  interface CheckboxControlProps extends /** @vue-ignore */ButtonHTMLAttributes {
33
45
  /** Id of the element */
34
46
  id?: string;
35
47
  }
48
+ /**
49
+ * Props for the checkbox indicator component.
50
+ */
36
51
  interface CheckboxIndicatorProps extends PrimitiveProps, ForceMountProps, /** @vue-ignore */HTMLAttributes {}
52
+ /**
53
+ * Option data for the checkbox group component.
54
+ */
37
55
  type CheckboxGroupOptionData<T extends DefinedValue = DefinedValue> = {
56
+ /**
57
+ * Value associated with the current item.
58
+ */
38
59
  value: T;
60
+ /**
61
+ * Label text rendered by the component.
62
+ */
39
63
  label: string;
64
+ /**
65
+ * Whether the component is disabled.
66
+ */
40
67
  disabled?: boolean;
41
68
  };
69
+ /**
70
+ * Option data for the checkbox card group component.
71
+ */
42
72
  type CheckboxCardGroupOptionData<T extends DefinedValue = DefinedValue> = CheckboxGroupOptionData<T> & {
73
+ /**
74
+ * Icon rendered by the component.
75
+ */
43
76
  icon?: string;
77
+ /**
78
+ * Description text rendered by the component.
79
+ */
44
80
  description?: string;
45
81
  };
82
+ /**
83
+ * Props for the checkbox group root component.
84
+ */
46
85
  interface CheckboxGroupRootProps<T extends DefinedValue = DefinedValue> extends Omit<RovingFocusGroupProps, 'currentTabStopId' | 'defaultCurrentTabStopId' | 'preventScrollOnEntryFocus' | 'as' | 'asChild'>, FormFieldCommonProps {
47
86
  /** The controlled value of the checkbox. Can be bound with v-model. */
48
87
  modelValue?: T[];
@@ -61,34 +100,106 @@ interface CheckboxGroupRootProps<T extends DefinedValue = DefinedValue> extends
61
100
  */
62
101
  disabled?: boolean;
63
102
  }
103
+ /**
104
+ * Emits for the checkbox group root component.
105
+ */
64
106
  type CheckboxGroupRootEmits<T extends DefinedValue = DefinedValue> = {
65
107
  /** Event handler called when the value of the checkbox group changes. */'update:modelValue': [value: T[]];
66
108
  };
109
+ /**
110
+ * Props for the checkbox compact component.
111
+ */
67
112
  interface CheckboxCompactProps extends CheckboxRootProps {
113
+ /**
114
+ * Label text rendered by the component.
115
+ */
68
116
  label?: string;
117
+ /**
118
+ * Props forwarded to the control element.
119
+ */
69
120
  controlProps?: CheckboxControlProps;
121
+ /**
122
+ * Props forwarded to the indicator element.
123
+ */
70
124
  indicatorProps?: CheckboxIndicatorProps;
125
+ /**
126
+ * Props forwarded to the label element.
127
+ */
71
128
  labelProps?: LabelProps;
72
129
  }
130
+ /**
131
+ * Emits for the checkbox compact component.
132
+ */
73
133
  type CheckboxCompactEmits = CheckboxRootEmits;
134
+ /**
135
+ * Props for the checkbox card compact component.
136
+ */
74
137
  interface CheckboxCardCompactProps extends CheckboxCompactProps {
138
+ /**
139
+ * Icon rendered by the component.
140
+ */
75
141
  icon?: IconValue;
142
+ /**
143
+ * Description text rendered by the component.
144
+ */
76
145
  description?: string;
77
146
  }
147
+ /**
148
+ * Emits for the checkbox card compact component.
149
+ */
78
150
  type CheckboxCardCompactEmits = CheckboxCompactEmits;
151
+ /**
152
+ * Props for the checkbox group compact component.
153
+ */
79
154
  interface CheckboxGroupCompactProps<T extends CheckboxGroupOptionData = CheckboxGroupOptionData> extends CheckboxGroupRootProps<T['value']> {
155
+ /**
156
+ * Items rendered by the component.
157
+ */
80
158
  items: T[];
159
+ /**
160
+ * Props forwarded to the root element.
161
+ */
81
162
  rootProps?: CheckboxRootProps;
163
+ /**
164
+ * Props forwarded to the control element.
165
+ */
82
166
  controlProps?: CheckboxControlProps;
167
+ /**
168
+ * Props forwarded to the indicator element.
169
+ */
83
170
  indicatorProps?: CheckboxIndicatorProps;
171
+ /**
172
+ * Props forwarded to the label element.
173
+ */
84
174
  labelProps?: LabelProps;
85
175
  }
176
+ /**
177
+ * Props for the checkbox card group compact component.
178
+ */
86
179
  interface CheckboxCardGroupCompactProps<T extends CheckboxCardGroupOptionData = CheckboxCardGroupOptionData> extends CheckboxGroupCompactProps<T> {}
180
+ /**
181
+ * Emits for the checkbox group compact component.
182
+ */
87
183
  type CheckboxGroupCompactEmits<T extends DefinedValue = DefinedValue> = CheckboxGroupRootEmits<T>;
184
+ /**
185
+ * Emits for the checkbox card group compact component.
186
+ */
88
187
  type CheckboxCardGroupCompactEmits<T extends DefinedValue = DefinedValue> = CheckboxGroupRootEmits<T>;
188
+ /**
189
+ * Available UI slots for the checkbox component.
190
+ */
89
191
  type CheckboxUiSlot = 'groupRoot' | 'root' | 'indicator' | 'indicator-icon' | 'label' | 'control';
192
+ /**
193
+ * Available UI slots for the checkbox component.
194
+ */
90
195
  type CheckboxCardUiSlot = CheckboxUiSlot | 'content' | 'icon' | 'textContent' | 'description';
196
+ /**
197
+ * UI class overrides for the checkbox component.
198
+ */
91
199
  type CheckboxUi = UiClass<CheckboxUiSlot>;
200
+ /**
201
+ * UI class overrides for the checkbox component.
202
+ */
92
203
  type CheckboxCardUi = UiClass<CheckboxCardUiSlot>;
93
204
  //#endregion
94
205
  export { CheckboxCardCompactEmits, CheckboxCardCompactProps, CheckboxCardGroupCompactEmits, CheckboxCardGroupCompactProps, CheckboxCardGroupOptionData, CheckboxCardUi, CheckboxCardUiSlot, CheckboxCompactEmits, CheckboxCompactProps, CheckboxControlProps, CheckboxGroupCompactEmits, CheckboxGroupCompactProps, CheckboxGroupOptionData, CheckboxGroupRootEmits, CheckboxGroupRootProps, CheckboxIndicatorProps, CheckboxRootEmits, CheckboxRootProps, CheckboxUi, CheckboxUiSlot };
@@ -2,7 +2,13 @@ import { IconValue } from "../_icon/types.js";
2
2
  import { ButtonProps } from "../button/types.js";
3
3
 
4
4
  //#region src/components/clipboard/types.d.ts
5
+ /**
6
+ * State values for the clipboard component.
7
+ */
5
8
  type ClipboardState = 'ready' | 'copied' | 'unsupported';
9
+ /**
10
+ * Props for the clipboard component.
11
+ */
6
12
  interface ClipboardProps extends ButtonProps {
7
13
  /**
8
14
  * The text value to copy.
@@ -45,18 +51,54 @@ interface ClipboardProps extends ButtonProps {
45
51
  */
46
52
  copiedText?: string;
47
53
  }
54
+ /**
55
+ * Slot props for the clipboard component.
56
+ */
48
57
  interface ClipboardSlotProps {
58
+ /**
59
+ * Whether copied.
60
+ */
49
61
  copied: boolean;
62
+ /**
63
+ * Whether the component is disabled.
64
+ */
50
65
  disabled: boolean;
66
+ /**
67
+ * Icon rendered by the component.
68
+ */
51
69
  icon: IconValue;
70
+ /**
71
+ * Whether supported.
72
+ */
52
73
  supported: boolean;
74
+ /**
75
+ * State exposed in the slot scope.
76
+ */
53
77
  state: ClipboardState;
78
+ /**
79
+ * Text exposed in the slot scope.
80
+ */
54
81
  text: string;
82
+ /**
83
+ * Copy exposed in the slot scope.
84
+ */
55
85
  copy: () => Promise<void>;
56
86
  }
87
+ /**
88
+ * Emits for the clipboard component.
89
+ */
57
90
  type ClipboardEmits = {
91
+ /**
92
+ * Emitted when click occurs.
93
+ */
58
94
  click: [event: MouseEvent];
95
+ /**
96
+ * Emitted when copied occurs.
97
+ */
59
98
  copied: [value: string];
99
+ /**
100
+ * Emitted when copy error occurs.
101
+ */
60
102
  copyError: [error: unknown];
61
103
  };
62
104
  //#endregion
@@ -4,6 +4,9 @@ import { PrimitiveProps } from "../primitive/types.js";
4
4
  import { ButtonHTMLAttributes, HTMLAttributes, Ref } from "vue";
5
5
 
6
6
  //#region src/components/collapsible/types.d.ts
7
+ /**
8
+ * Props for the collapsible root component.
9
+ */
7
10
  interface CollapsibleRootProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
8
11
  /**
9
12
  * The open state of the collapsible when it is initially rendered.
@@ -18,15 +21,30 @@ interface CollapsibleRootProps extends PrimitiveProps, /** @vue-ignore */HTMLAtt
18
21
  /** When `true`, the element will be unmounted on closed state. */
19
22
  unmountOnHide?: boolean;
20
23
  }
24
+ /**
25
+ * Emits for the collapsible root component.
26
+ */
21
27
  type CollapsibleRootEmits = {
22
28
  /** Event handler called when the open state of the collapsible changes. */'update:open': [value: boolean];
23
29
  };
30
+ /**
31
+ * Props for the collapsible content component.
32
+ */
24
33
  interface CollapsibleContentProps extends PrimitiveProps, ForceMountProps, /** @vue-ignore */HTMLAttributes {}
34
+ /**
35
+ * Props for the collapsible trigger component.
36
+ */
25
37
  interface CollapsibleTriggerProps extends PrimitiveProps, /** @vue-ignore */ButtonHTMLAttributes {
26
38
  /** When `true`, prevents the user from toggling the collapsible. */
27
39
  disabledCollapsible?: boolean;
28
40
  }
41
+ /**
42
+ * Available UI slots for the collapsible component.
43
+ */
29
44
  type CollapsibleUiSlot = 'root' | 'trigger' | 'content';
45
+ /**
46
+ * UI class overrides for the collapsible component.
47
+ */
30
48
  type CollapsibleUi = UiClass<CollapsibleUiSlot>;
31
49
  //#endregion
32
50
  export { CollapsibleContentProps, CollapsibleRootEmits, CollapsibleRootProps, CollapsibleTriggerProps, CollapsibleUi, CollapsibleUiSlot };
@@ -22,8 +22,8 @@ declare const __VLS_base: _$vue.DefineComponent<ColorAreaRootProps, {}, {}, {},
22
22
  disabled: boolean;
23
23
  format: ColorFormat;
24
24
  as: AsTag | _$vue.Component;
25
- defaultValue: string | ColorValue;
26
25
  modelValue: string | ColorValue;
26
+ defaultValue: string | ColorValue;
27
27
  colorSpace: ColorSpace;
28
28
  xChannel: ColorAreaAxisChannel;
29
29
  yChannel: ColorAreaAxisChannel;
@@ -5,27 +5,87 @@ import { ColorChannel, ColorFormat, ColorSpace, ColorValue, NormalizedColor } fr
5
5
  import { CSSProperties, ComputedRef, HTMLAttributes, ShallowRef } from "vue";
6
6
 
7
7
  //#region src/components/color-area/types.d.ts
8
+ /**
9
+ * Type information for the color area axis channel component.
10
+ */
8
11
  type ColorAreaAxisChannel = Extract<ColorChannel, 'hue' | 'saturation' | 'lightness' | 'brightness' | 'chroma'>;
12
+ /**
13
+ * Props for the color area root component.
14
+ */
9
15
  interface ColorAreaRootProps extends PrimitiveProps, FormFieldCommonProps, /** @vue-ignore */HTMLAttributes {
16
+ /**
17
+ * Current model value.
18
+ */
10
19
  modelValue?: string | ColorValue;
20
+ /**
21
+ * Default value.
22
+ */
11
23
  defaultValue?: string | ColorValue;
24
+ /**
25
+ * Color space.
26
+ */
12
27
  colorSpace?: ColorSpace;
28
+ /**
29
+ * Format.
30
+ */
13
31
  format?: ColorFormat;
32
+ /**
33
+ * X channel.
34
+ */
14
35
  xChannel?: ColorAreaAxisChannel;
36
+ /**
37
+ * Y channel.
38
+ */
15
39
  yChannel?: ColorAreaAxisChannel;
40
+ /**
41
+ * Whether the component is disabled.
42
+ */
16
43
  disabled?: boolean;
44
+ /**
45
+ * X name.
46
+ */
17
47
  xName?: string;
48
+ /**
49
+ * Y name.
50
+ */
18
51
  yName?: string;
19
52
  }
53
+ /**
54
+ * Emits for the color area root component.
55
+ */
20
56
  type ColorAreaRootEmits = {
57
+ /**
58
+ * Emitted when the model value changes.
59
+ */
21
60
  'update:modelValue': [value: string];
61
+ /**
62
+ * Emitted when the color value changes.
63
+ */
22
64
  'update:color': [value: NormalizedColor];
65
+ /**
66
+ * Emitted when change occurs.
67
+ */
23
68
  change: [value: string];
69
+ /**
70
+ * Emitted when change end occurs.
71
+ */
24
72
  changeEnd: [value: string];
25
73
  };
74
+ /**
75
+ * Props for the color area area component.
76
+ */
26
77
  interface ColorAreaAreaProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
78
+ /**
79
+ * Props for the color area thumb component.
80
+ */
27
81
  interface ColorAreaThumbProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
82
+ /**
83
+ * Available UI slots for the color area component.
84
+ */
28
85
  type ColorAreaUiSlot = 'root' | 'area' | 'thumb';
86
+ /**
87
+ * UI class overrides for the color area component.
88
+ */
29
89
  type ColorAreaUi = UiClass<ColorAreaUiSlot>;
30
90
  //#endregion
31
91
  export { ColorAreaAreaProps, ColorAreaAxisChannel, ColorAreaRootEmits, ColorAreaRootProps, ColorAreaThumbProps, ColorAreaUi, ColorAreaUiSlot };
@@ -19,10 +19,10 @@ declare const __VLS_base: _$vue.DefineComponent<ColorFieldRootProps, {}, {}, {},
19
19
  format: ColorFormat;
20
20
  as: AsTag | _$vue.Component;
21
21
  step: number;
22
- defaultValue: string | ColorValue;
23
22
  modelValue: string | ColorValue;
24
- readonly: boolean;
23
+ defaultValue: string | ColorValue;
25
24
  colorSpace: ColorSpace;
25
+ readonly: boolean;
26
26
  disableWheelChange: boolean;
27
27
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
28
28
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -5,24 +5,75 @@ import { ColorChannel, ColorFormat, ColorSpace, ColorValue, NormalizedColor } fr
5
5
  import { HTMLAttributes, InputHTMLAttributes, ShallowRef } from "vue";
6
6
 
7
7
  //#region src/components/color-field/types.d.ts
8
+ /**
9
+ * Props for the color field root component.
10
+ */
8
11
  interface ColorFieldRootProps extends PrimitiveProps, FormFieldCommonProps, /** @vue-ignore */HTMLAttributes {
12
+ /**
13
+ * Current model value.
14
+ */
9
15
  modelValue?: string | ColorValue;
16
+ /**
17
+ * Default value.
18
+ */
10
19
  defaultValue?: string | ColorValue;
20
+ /**
21
+ * Color space.
22
+ */
11
23
  colorSpace?: ColorSpace;
24
+ /**
25
+ * Channel.
26
+ */
12
27
  channel?: ColorChannel;
28
+ /**
29
+ * Format.
30
+ */
13
31
  format?: ColorFormat;
32
+ /**
33
+ * Placeholder.
34
+ */
14
35
  placeholder?: string;
36
+ /**
37
+ * Whether the component is disabled.
38
+ */
15
39
  disabled?: boolean;
40
+ /**
41
+ * Whether the component is readonly.
42
+ */
16
43
  readonly?: boolean;
44
+ /**
45
+ * Whether to disable wheel change.
46
+ */
17
47
  disableWheelChange?: boolean;
48
+ /**
49
+ * Step.
50
+ */
18
51
  step?: number;
19
52
  }
53
+ /**
54
+ * Emits for the color field root component.
55
+ */
20
56
  type ColorFieldRootEmits = {
57
+ /**
58
+ * Emitted when the model value changes.
59
+ */
21
60
  'update:modelValue': [value: string];
61
+ /**
62
+ * Emitted when the color value changes.
63
+ */
22
64
  'update:color': [value: NormalizedColor];
23
65
  };
66
+ /**
67
+ * Props for the color field input component.
68
+ */
24
69
  interface ColorFieldInputProps extends /** @vue-ignore */InputHTMLAttributes {}
70
+ /**
71
+ * Available UI slots for the color field component.
72
+ */
25
73
  type ColorFieldUiSlot = 'root' | 'input';
74
+ /**
75
+ * UI class overrides for the color field component.
76
+ */
26
77
  type ColorFieldUi = UiClass<ColorFieldUiSlot>;
27
78
  //#endregion
28
79
  export { ColorFieldInputProps, ColorFieldRootEmits, ColorFieldRootProps, ColorFieldUi, ColorFieldUiSlot };
@@ -26,8 +26,8 @@ declare const __VLS_base: _$vue.DefineComponent<ColorPickerRootProps, {}, {}, {}
26
26
  disabled: boolean;
27
27
  format: ColorFormat;
28
28
  as: AsTag | _$vue.Component;
29
- defaultValue: string | ColorValue;
30
29
  modelValue: string | ColorValue;
30
+ defaultValue: string | ColorValue;
31
31
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
32
32
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
33
33
  declare const _default: typeof __VLS_export;
@@ -4,20 +4,59 @@ import { ColorFormat, ColorValue, NormalizedColor } from "../../shared/color.js"
4
4
  import { ComputedRef, HTMLAttributes } from "vue";
5
5
 
6
6
  //#region src/components/color-picker/types.d.ts
7
+ /**
8
+ * Props for the color picker root component.
9
+ */
7
10
  interface ColorPickerRootProps extends PrimitiveProps, FormFieldCommonProps, /** @vue-ignore */HTMLAttributes {
11
+ /**
12
+ * Current model value.
13
+ */
8
14
  modelValue?: string | ColorValue;
15
+ /**
16
+ * Default value.
17
+ */
9
18
  defaultValue?: string | ColorValue;
19
+ /**
20
+ * Format.
21
+ */
10
22
  format?: ColorFormat;
23
+ /**
24
+ * Whether the component is disabled.
25
+ */
11
26
  disabled?: boolean;
12
27
  }
28
+ /**
29
+ * Emits for the color picker root component.
30
+ */
13
31
  type ColorPickerRootEmits = {
32
+ /**
33
+ * Emitted when the model value changes.
34
+ */
14
35
  'update:modelValue': [value: string];
36
+ /**
37
+ * Emitted when the color value changes.
38
+ */
15
39
  'update:color': [value: NormalizedColor];
40
+ /**
41
+ * Emitted when change occurs.
42
+ */
16
43
  change: [value: string];
17
44
  };
45
+ /**
46
+ * Slot props for the color picker root component.
47
+ */
18
48
  interface ColorPickerRootSlotProps {
49
+ /**
50
+ * Theme color of the component.
51
+ */
19
52
  color: ComputedRef<ColorValue>;
53
+ /**
54
+ * Formatted value exposed in the slot scope.
55
+ */
20
56
  formattedValue: ComputedRef<string>;
57
+ /**
58
+ * Set color exposed in the slot scope.
59
+ */
21
60
  setColor: (color: ColorValue) => void;
22
61
  }
23
62
  //#endregion
@@ -23,8 +23,8 @@ declare const __VLS_base: _$vue.DefineComponent<ColorSliderRootProps, {}, {}, {}
23
23
  format: ColorFormat;
24
24
  orientation: DataOrientation;
25
25
  step: number;
26
- defaultValue: string | ColorValue;
27
26
  modelValue: string | ColorValue;
27
+ defaultValue: string | ColorValue;
28
28
  colorSpace: ColorSpace;
29
29
  inverted: boolean;
30
30
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
@@ -5,27 +5,87 @@ import { ColorChannel, ColorFormat, ColorSpace, ColorValue, NormalizedColor } fr
5
5
  import { ComputedRef, HTMLAttributes } from "vue";
6
6
 
7
7
  //#region src/components/color-slider/types.d.ts
8
+ /**
9
+ * Props for the color slider root component.
10
+ */
8
11
  interface ColorSliderRootProps extends PrimitiveProps, FormFieldCommonProps, /** @vue-ignore */HTMLAttributes {
12
+ /**
13
+ * Current model value.
14
+ */
9
15
  modelValue?: string | ColorValue;
16
+ /**
17
+ * Default value.
18
+ */
10
19
  defaultValue?: string | ColorValue;
20
+ /**
21
+ * Color space.
22
+ */
11
23
  colorSpace?: ColorSpace;
24
+ /**
25
+ * Channel.
26
+ */
12
27
  channel: ColorChannel;
28
+ /**
29
+ * Format.
30
+ */
13
31
  format?: ColorFormat;
32
+ /**
33
+ * Orientation of the component.
34
+ */
14
35
  orientation?: DataOrientation;
36
+ /**
37
+ * Reading direction of the component.
38
+ */
15
39
  dir?: Direction;
40
+ /**
41
+ * Whether inverted.
42
+ */
16
43
  inverted?: boolean;
44
+ /**
45
+ * Whether the component is disabled.
46
+ */
17
47
  disabled?: boolean;
48
+ /**
49
+ * Step.
50
+ */
18
51
  step?: number;
19
52
  }
53
+ /**
54
+ * Emits for the color slider root component.
55
+ */
20
56
  type ColorSliderRootEmits = {
57
+ /**
58
+ * Emitted when the model value changes.
59
+ */
21
60
  'update:modelValue': [value: string];
61
+ /**
62
+ * Emitted when the color value changes.
63
+ */
22
64
  'update:color': [value: NormalizedColor];
65
+ /**
66
+ * Emitted when change occurs.
67
+ */
23
68
  change: [value: string];
69
+ /**
70
+ * Emitted when change end occurs.
71
+ */
24
72
  changeEnd: [value: string];
25
73
  };
74
+ /**
75
+ * Props for the color slider track component.
76
+ */
26
77
  interface ColorSliderTrackProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
78
+ /**
79
+ * Props for the color slider thumb component.
80
+ */
27
81
  interface ColorSliderThumbProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
82
+ /**
83
+ * Available UI slots for the color slider component.
84
+ */
28
85
  type ColorSliderUiSlot = 'root' | 'track' | 'thumb';
86
+ /**
87
+ * UI class overrides for the color slider component.
88
+ */
29
89
  type ColorSliderUi = UiClass<ColorSliderUiSlot>;
30
90
  //#endregion
31
91
  export { ColorSliderRootEmits, ColorSliderRootProps, ColorSliderThumbProps, ColorSliderTrackProps, ColorSliderUi, ColorSliderUiSlot };
@@ -3,8 +3,17 @@ import { ColorValue } from "../../shared/color.js";
3
3
  import { HTMLAttributes } from "vue";
4
4
 
5
5
  //#region src/components/color-swatch/types.d.ts
6
+ /**
7
+ * Props for the color swatch component.
8
+ */
6
9
  interface ColorSwatchProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'color'> {
10
+ /**
11
+ * Theme color of the component.
12
+ */
7
13
  color?: string | ColorValue;
14
+ /**
15
+ * Label text rendered by the component.
16
+ */
8
17
  label?: string;
9
18
  }
10
19
  //#endregion