wave-ui 4.2.1 → 4.2.3
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.
- package/dist/types/types/components/WBadge.d.ts +7 -0
- package/dist/types/types/components/WCard.d.ts +7 -0
- package/dist/types/types/components/WDrawer.d.ts +7 -0
- package/dist/types/types/components/WIcon.d.ts +7 -0
- package/dist/types/types/components/WProgress.d.ts +7 -0
- package/dist/types/types/components/WRating.d.ts +7 -0
- package/dist/types/types/components/WSpinner.d.ts +6 -0
- package/dist/types/types/components/WTable.d.ts +18 -0
- package/dist/types/types/components/WToolbar.d.ts +7 -0
- package/dist/wave-ui.cjs.js +2 -2
- package/dist/wave-ui.esm.js +499 -402
- package/dist/wave-ui.umd.js +2 -2
- package/package.json +13 -16
- package/src/wave-ui/components/w-alert.vue +7 -1
- package/src/wave-ui/components/w-badge.vue +6 -4
- package/src/wave-ui/components/w-breadcrumbs.vue +2 -2
- package/src/wave-ui/components/w-card.vue +3 -0
- package/src/wave-ui/components/w-checkbox.vue +1 -0
- package/src/wave-ui/components/w-dialog.vue +5 -0
- package/src/wave-ui/components/w-drawer.vue +7 -0
- package/src/wave-ui/components/w-icon.vue +4 -2
- package/src/wave-ui/components/w-input.vue +1 -0
- package/src/wave-ui/components/w-menu.vue +1 -1
- package/src/wave-ui/components/w-progress.vue +10 -1
- package/src/wave-ui/components/w-radio.vue +1 -0
- package/src/wave-ui/components/w-rating.vue +22 -19
- package/src/wave-ui/components/w-select.vue +11 -2
- package/src/wave-ui/components/w-spinner.vue +2 -1
- package/src/wave-ui/components/w-table.vue +18 -14
- package/src/wave-ui/components/w-tag.vue +3 -3
- package/src/wave-ui/components/w-textarea.vue +1 -0
- package/src/wave-ui/components/w-toolbar.vue +2 -1
- package/src/wave-ui/components/w-tooltip.vue +3 -1
|
@@ -8,6 +8,13 @@ export interface WaveBadgeProps {
|
|
|
8
8
|
* @see https://antoniandre.github.io/wave-ui/w-badge
|
|
9
9
|
*/
|
|
10
10
|
modelValue?: any;
|
|
11
|
+
/**
|
|
12
|
+
* Overrides the default accessible label of the badge. By default the badge value is used as the label.
|
|
13
|
+
* When `dot` is set the badge is always hidden from assistive technology.
|
|
14
|
+
* @property {string} ariaLabel
|
|
15
|
+
* @see https://antoniandre.github.io/wave-ui/w-badge
|
|
16
|
+
*/
|
|
17
|
+
ariaLabel?: string;
|
|
11
18
|
/**
|
|
12
19
|
* Sets the size of the badge (font-size).
|
|
13
20
|
* @property {boolean} xs
|
|
@@ -77,6 +77,13 @@ export interface WaveCardProps {
|
|
|
77
77
|
* @see https://antoniandre.github.io/wave-ui/w-card
|
|
78
78
|
*/
|
|
79
79
|
light?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Sets an `id` attribute on the card title element.
|
|
82
|
+
* Used internally by `w-dialog` to wire `aria-labelledby`. Can also be set manually for custom `aria-labelledby` associations.
|
|
83
|
+
* @property {string} titleId
|
|
84
|
+
* @see https://antoniandre.github.io/wave-ui/w-card
|
|
85
|
+
*/
|
|
86
|
+
titleId?: string;
|
|
80
87
|
}
|
|
81
88
|
export type WaveCardEmits = {};
|
|
82
89
|
export interface WaveCardComputeds extends ComputedOptions {
|
|
@@ -129,6 +129,13 @@ export interface WaveDrawerProps {
|
|
|
129
129
|
* @see https://antoniandre.github.io/wave-ui/w-drawer
|
|
130
130
|
*/
|
|
131
131
|
drawerClass?: string;
|
|
132
|
+
/**
|
|
133
|
+
* Sets the accessible label (`aria-label`) for the drawer dialog.
|
|
134
|
+
* Recommended so assistive technology can identify the purpose of the drawer.
|
|
135
|
+
* @property {string} ariaLabel
|
|
136
|
+
* @see https://antoniandre.github.io/wave-ui/w-drawer
|
|
137
|
+
*/
|
|
138
|
+
ariaLabel?: string;
|
|
132
139
|
/**
|
|
133
140
|
* TODO: Add Description
|
|
134
141
|
* @property {string} tag - Default: 'aside'
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import type { ComputedGetter, ComputedOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, SlotsType } from 'vue';
|
|
2
2
|
import type { PublicProps, ResolveProps } from '../extra-vue-types';
|
|
3
3
|
export interface WaveIconProps {
|
|
4
|
+
/**
|
|
5
|
+
* When set, the icon is exposed as `role="img"` with the provided string as its `aria-label` instead of being hidden from assistive technology.
|
|
6
|
+
* Use this for icons that convey meaning on their own without surrounding visible text.
|
|
7
|
+
* @property {string} ariaLabel
|
|
8
|
+
* @see https://antoniandre.github.io/wave-ui/w-icon
|
|
9
|
+
*/
|
|
10
|
+
ariaLabel?: string;
|
|
4
11
|
/**
|
|
5
12
|
* The HTML tag to render the icon into. `<i>` by default.
|
|
6
13
|
* @property {string} tag - Default: 'i'
|
|
@@ -9,6 +9,13 @@ export interface WaveProgressProps {
|
|
|
9
9
|
* @see https://antoniandre.github.io/wave-ui/w-progress
|
|
10
10
|
*/
|
|
11
11
|
modelValue?: number | string | boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Sets the accessible name of the progress bar for assistive technology (e.g. `"Upload progress"`).
|
|
14
|
+
* Recommended whenever the purpose of the progress bar is not obvious from surrounding context.
|
|
15
|
+
* @property {string} ariaLabel
|
|
16
|
+
* @see https://antoniandre.github.io/wave-ui/w-progress
|
|
17
|
+
*/
|
|
18
|
+
ariaLabel?: string;
|
|
12
19
|
/**
|
|
13
20
|
* Shows or hides the label of the progress containing the current progress value.
|
|
14
21
|
* @property {boolean} label
|
|
@@ -8,6 +8,13 @@ export interface WaveRatingProps {
|
|
|
8
8
|
* @see https://antoniandre.github.io/wave-ui/w-rating
|
|
9
9
|
*/
|
|
10
10
|
modelValue?: any;
|
|
11
|
+
/**
|
|
12
|
+
* Sets the accessible label for the rating group. Defaults to `"Rating"`.
|
|
13
|
+
* Override when multiple rating components are on the same page (e.g. `"Overall rating"`, `"Service rating"`).
|
|
14
|
+
* @property {string} ariaLabel
|
|
15
|
+
* @see https://antoniandre.github.io/wave-ui/w-rating
|
|
16
|
+
*/
|
|
17
|
+
ariaLabel?: string;
|
|
11
18
|
/**
|
|
12
19
|
* The total count of buttons (usually stars) to display in the rating component.
|
|
13
20
|
* @property {number|string} max - Default: 5
|
|
@@ -8,6 +8,12 @@ export interface WaveSpinnerProps {
|
|
|
8
8
|
* @see https://antoniandre.github.io/wave-ui/w-spinner
|
|
9
9
|
*/
|
|
10
10
|
modelValue?: any;
|
|
11
|
+
/**
|
|
12
|
+
* Sets the accessible label announced by screen readers when the spinner is visible. Defaults to `"Loading"`.
|
|
13
|
+
* @property {string} ariaLabel
|
|
14
|
+
* @see https://antoniandre.github.io/wave-ui/w-spinner
|
|
15
|
+
*/
|
|
16
|
+
ariaLabel?: string;
|
|
11
17
|
/**
|
|
12
18
|
* Sets the color of the spinner.
|
|
13
19
|
* 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).
|
|
@@ -210,6 +210,24 @@ export interface WaveTableProps {
|
|
|
210
210
|
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
211
211
|
*/
|
|
212
212
|
light?: boolean;
|
|
213
|
+
/**
|
|
214
|
+
* A CSS class (string, array, or object) to apply to the inner `<table>` element.
|
|
215
|
+
* @property {string | Array<any> | Record<string, any>} tableClass
|
|
216
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
217
|
+
*/
|
|
218
|
+
tableClass?: string | Array<any> | Record<string, any>;
|
|
219
|
+
/**
|
|
220
|
+
* A CSS class (string, array, or object) to apply to every `<th>` header cell.
|
|
221
|
+
* @property {string | Array<any> | Record<string, any>} headerClass
|
|
222
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
223
|
+
*/
|
|
224
|
+
headerClass?: string | Array<any> | Record<string, any>;
|
|
225
|
+
/**
|
|
226
|
+
* A CSS class (string, array, or object) to apply to every `<tr>` item row.
|
|
227
|
+
* @property {string | Array<any> | Record<string, any>} itemClass
|
|
228
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
229
|
+
*/
|
|
230
|
+
itemClass?: string | Array<any> | Record<string, any>;
|
|
213
231
|
/**
|
|
214
232
|
* TODO: Add Description
|
|
215
233
|
* @property {any} itemsPerPageOptions
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import type { ComputedGetter, ComputedOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, SlotsType } from 'vue';
|
|
2
2
|
import type { PublicProps, ResolveProps } from '../extra-vue-types';
|
|
3
3
|
export interface WaveToolbarProps {
|
|
4
|
+
/**
|
|
5
|
+
* Sets the accessible label (`aria-label`) for the toolbar.
|
|
6
|
+
* Recommended when multiple toolbars are present on the same page so assistive technology can distinguish them.
|
|
7
|
+
* @property {string} ariaLabel
|
|
8
|
+
* @see https://antoniandre.github.io/wave-ui/w-toolbar
|
|
9
|
+
*/
|
|
10
|
+
ariaLabel?: string;
|
|
4
11
|
/**
|
|
5
12
|
* Applies a color to the toolbar's text. 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).
|
|
6
13
|
* Providing a color hex, rgb(a) or hsl(a) will not work.
|