wave-ui 4.0.1 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,10 +4,10 @@ export interface WaveAccordionProps {
4
4
  /**
5
5
  * `value` in Vue 2.
6
6
  * Provide an array of booleans to dictate the state (expanded and collapsed) of all the accordion items. This value gets updated by the accordion when using a v-model.
7
- * @property {Array<any>} modelValue
7
+ * @property {Array<boolean>} modelValue
8
8
  * @see https://antoniandre.github.io/wave-ui/w-accordion
9
9
  */
10
- modelValue?: Array<any>;
10
+ modelValue?: Array<boolean>;
11
11
  /**
12
12
  * Applies a text color on each accordion item. Accepts all the color names of the color palette, status colors, or custom colors (learn more about the colors in the `colors` knowledge base page).
13
13
  * Providing a color hex, rgb(a) or hsl(a) will not work.
@@ -163,16 +163,16 @@ export interface WaveAccordionProps {
163
163
  export interface WaveAccordionEmits {
164
164
  /**
165
165
  * Emitted each time the state of the accordion changes (when an item is expanded or collapsed).<br>Updates the v-model value in Vue 2.x only.
166
- * @param {any} renameMe1 - An array of booleans representing the expanded state of each accordion item.
166
+ * @param {Array<boolean>} state - An array of booleans representing the expanded state of each accordion item.
167
167
  * @see https://antoniandre.github.io/wave-ui/w-accordion
168
168
  */
169
- 'onInput'?: (renameMe1: any) => void;
169
+ 'onInput'?: (state: Array<boolean>) => void;
170
170
  /**
171
171
  * Emitted each time the state of the accordion changes (when an item is expanded or collapsed).<br>Updates the v-model value in Vue 3 only.
172
- * @param {any} renameMe1 - An array of booleans representing the expanded state of each accordion item.
172
+ * @param {Array<boolean>} state - An array of booleans representing the expanded state of each accordion item.
173
173
  * @see https://antoniandre.github.io/wave-ui/w-accordion
174
174
  */
175
- 'onUpdate:modelValue'?: (renameMe1: any) => void;
175
+ 'onUpdate:modelValue'?: (state: Array<boolean>) => void;
176
176
  /**
177
177
  * Emitted on each accordion item title focus.
178
178
  * @param {any} renameMe1 - The focused accordion item object.
@@ -21,7 +21,8 @@ export interface WTabsItem {
21
21
  export interface WaveTabsProps {
22
22
  /**
23
23
  * `value` in Vue 2.
24
- * Provide a tab index (a number starting from 0) to open it. This value gets updated when using a v-model.
24
+ * Provide a tab index (a number starting from 0), or a tab id when using `itemIdKey`, to open it.
25
+ * This value gets updated when using a v-model.
25
26
  * @property {number|string} modelValue
26
27
  * @see https://antoniandre.github.io/wave-ui/w-tabs
27
28
  */
@@ -180,16 +181,16 @@ export interface WaveTabsProps {
180
181
  export interface WaveTabsEmits {
181
182
  /**
182
183
  * Emitted each time the current tab changes.<br>Updates the v-model value in Vue 2.x only.
183
- * @param {Array<boolean>} tabsOpened - An array of booleans representing the active state of each tab.
184
+ * @param {number|string} value - The opened tab index, or tab id when `modelValue` uses ids.
184
185
  * @see https://antoniandre.github.io/wave-ui/w-tabs
185
186
  */
186
- 'onInput'?: (tabsOpened: Array<boolean>) => void;
187
+ 'onInput'?: (value: number | string) => void;
187
188
  /**
188
189
  * Emitted each time the current tab changes.<br>Updates the v-model value in Vue 3 only.
189
- * @param {Array<boolean>} tabsOpened - An array of booleans representing the active state of each tab.
190
+ * @param {number|string} value - The opened tab index, or tab id when `modelValue` uses ids.
190
191
  * @see https://antoniandre.github.io/wave-ui/w-tabs
191
192
  */
192
- 'onUpdate:modelValue'?: (tabsOpened: Array<boolean>) => void;
193
+ 'onUpdate:modelValue'?: (value: number | string) => void;
193
194
  /**
194
195
  * Emitted on each tab title focus.
195
196
  * @param {WTabsItem} tab - The focused tab item object.