wave-ui 3.10.0 → 3.11.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 (103) hide show
  1. package/dist/types/$waveui.d.ts +29 -0
  2. package/dist/types/$waveui.js +2 -0
  3. package/dist/types/colors.d.ts +503 -0
  4. package/dist/types/colors.js +2 -0
  5. package/dist/types/components/WAccordion.d.ts +226 -0
  6. package/dist/types/components/WAccordion.js +2 -0
  7. package/dist/types/components/WAlert.d.ts +225 -0
  8. package/dist/types/components/WAlert.js +2 -0
  9. package/dist/types/components/WApp.d.ts +84 -0
  10. package/dist/types/components/WApp.js +2 -0
  11. package/dist/types/components/WBadge.d.ts +194 -0
  12. package/dist/types/components/WBadge.js +2 -0
  13. package/dist/types/components/WBreadcrumbs.d.ts +129 -0
  14. package/dist/types/components/WBreadcrumbs.js +2 -0
  15. package/dist/types/components/WButton.d.ts +218 -0
  16. package/dist/types/components/WButton.js +2 -0
  17. package/dist/types/components/WCard.d.ts +140 -0
  18. package/dist/types/components/WCard.js +2 -0
  19. package/dist/types/components/WCheckbox.d.ts +132 -0
  20. package/dist/types/components/WCheckbox.js +2 -0
  21. package/dist/types/components/WCheckboxes.d.ts +141 -0
  22. package/dist/types/components/WCheckboxes.js +2 -0
  23. package/dist/types/components/WConfirm.d.ts +250 -0
  24. package/dist/types/components/WConfirm.js +2 -0
  25. package/dist/types/components/WDialog.d.ts +189 -0
  26. package/dist/types/components/WDialog.js +2 -0
  27. package/dist/types/components/WDivider.d.ts +49 -0
  28. package/dist/types/components/WDivider.js +2 -0
  29. package/dist/types/components/WDrawer.d.ts +249 -0
  30. package/dist/types/components/WDrawer.js +2 -0
  31. package/dist/types/components/WFlex.d.ts +137 -0
  32. package/dist/types/components/WFlex.js +2 -0
  33. package/dist/types/components/WForm.d.ts +165 -0
  34. package/dist/types/components/WForm.js +2 -0
  35. package/dist/types/components/WFormElement.d.ts +112 -0
  36. package/dist/types/components/WFormElement.js +2 -0
  37. package/dist/types/components/WGrid.d.ts +51 -0
  38. package/dist/types/components/WGrid.js +2 -0
  39. package/dist/types/components/WIcon.d.ts +167 -0
  40. package/dist/types/components/WIcon.js +2 -0
  41. package/dist/types/components/WImage.d.ts +172 -0
  42. package/dist/types/components/WImage.js +2 -0
  43. package/dist/types/components/WInput.d.ts +338 -0
  44. package/dist/types/components/WInput.js +2 -0
  45. package/dist/types/components/WList.d.ts +336 -0
  46. package/dist/types/components/WList.js +2 -0
  47. package/dist/types/components/WMenu.d.ts +250 -0
  48. package/dist/types/components/WMenu.js +2 -0
  49. package/dist/types/components/WNotification.d.ts +283 -0
  50. package/dist/types/components/WNotification.js +2 -0
  51. package/dist/types/components/WNotificationManager.d.ts +33 -0
  52. package/dist/types/components/WNotificationManager.js +2 -0
  53. package/dist/types/components/WOverlay.d.ts +118 -0
  54. package/dist/types/components/WOverlay.js +2 -0
  55. package/dist/types/components/WProgress.d.ts +177 -0
  56. package/dist/types/components/WProgress.js +2 -0
  57. package/dist/types/components/WRadio.d.ts +121 -0
  58. package/dist/types/components/WRadio.js +2 -0
  59. package/dist/types/components/WRadios.d.ts +129 -0
  60. package/dist/types/components/WRadios.js +2 -0
  61. package/dist/types/components/WRating.d.ts +176 -0
  62. package/dist/types/components/WRating.js +2 -0
  63. package/dist/types/components/WSelect.d.ts +371 -0
  64. package/dist/types/components/WSelect.js +2 -0
  65. package/dist/types/components/WSlider.d.ts +263 -0
  66. package/dist/types/components/WSlider.js +2 -0
  67. package/dist/types/components/WSpinner.d.ts +101 -0
  68. package/dist/types/components/WSpinner.js +2 -0
  69. package/dist/types/components/WSteps.d.ts +29 -0
  70. package/dist/types/components/WSteps.js +2 -0
  71. package/dist/types/components/WSwitch.d.ts +132 -0
  72. package/dist/types/components/WSwitch.js +2 -0
  73. package/dist/types/components/WTable.d.ts +406 -0
  74. package/dist/types/components/WTable.js +2 -0
  75. package/dist/types/components/WTabs.d.ts +301 -0
  76. package/dist/types/components/WTabs.js +2 -0
  77. package/dist/types/components/WTag.d.ts +160 -0
  78. package/dist/types/components/WTag.js +2 -0
  79. package/dist/types/components/WTextarea.d.ts +243 -0
  80. package/dist/types/components/WTextarea.js +2 -0
  81. package/dist/types/components/WTimeline.d.ts +102 -0
  82. package/dist/types/components/WTimeline.js +2 -0
  83. package/dist/types/components/WToolbar.d.ts +134 -0
  84. package/dist/types/components/WToolbar.js +2 -0
  85. package/dist/types/components/WTooltip.d.ts +170 -0
  86. package/dist/types/components/WTooltip.js +2 -0
  87. package/dist/types/components/WTree.d.ts +359 -0
  88. package/dist/types/components/WTree.js +2 -0
  89. package/dist/types/components/index.d.ts +42 -0
  90. package/dist/types/components/index.js +2 -0
  91. package/dist/types/extra-vue-types.d.ts +8 -0
  92. package/dist/types/extra-vue-types.js +2 -0
  93. package/dist/types/index.d.ts +5 -0
  94. package/dist/types/index.js +4 -0
  95. package/dist/types/plugin.d.ts +19 -0
  96. package/dist/types/plugin.js +2 -0
  97. package/dist/wave-ui.cjs.js +1 -1
  98. package/dist/wave-ui.es.js +405 -382
  99. package/dist/wave-ui.umd.js +1 -1
  100. package/package.json +16 -10
  101. package/src/wave-ui/components/transitions/w-transition-expand.vue +2 -4
  102. package/src/wave-ui/components/w-parallax.vue +0 -1
  103. package/src/wave-ui/index.d.ts +21 -0
@@ -0,0 +1,263 @@
1
+ import { ComputedGetter, ComputedOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, SlotsType } from 'vue';
2
+ import { PublicProps, ResolveProps } from '../extra-vue-types';
3
+ export interface WaveSliderProps {
4
+ /**
5
+ * ``value` in Vue 2.`
6
+ * Dictates the range selection of the slider. When the user changes the range, the `v-model` value will be updated.
7
+ * @property {number} modelValue - Default: 0
8
+ * @see https://antoniandre.github.io/wave-ui/w-slider
9
+ */
10
+ modelValue?: number;
11
+ /**
12
+ * Applies a foreground color to the slider. 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
+ * Providing a color hex, rgb(a) or hsl(a) will not work.
14
+ * @property {string} color - Default: 'primary'
15
+ * @see https://antoniandre.github.io/wave-ui/w-slider
16
+ * @see https://antoniandre.github.io/wave-ui/colors
17
+ */
18
+ color?: string;
19
+ /**
20
+ * Applies a background color to the slider's track. 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).
21
+ * Providing a color hex, rgb(a) or hsl(a) will not work.
22
+ * @property {string} bgColor
23
+ * @see https://antoniandre.github.io/wave-ui/w-slider
24
+ * @see https://antoniandre.github.io/wave-ui/colors
25
+ */
26
+ bgColor?: string;
27
+ /**
28
+ * Applies a specific color to the slider's left and right labels. Note that on validation failure, the validation-color takes precedence.
29
+ * 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).
30
+ * Providing a color hex, rgb(a) or hsl(a) will not work.
31
+ * @property {string} labelColor - Default: 'primary'
32
+ * @see https://antoniandre.github.io/wave-ui/w-slider
33
+ * @see https://antoniandre.github.io/wave-ui/colors
34
+ */
35
+ labelColor?: string;
36
+ /**
37
+ * A Boolean to display or hide the labels of each steps under the slider.
38
+ * A future version will allow passing an array of custom labels.
39
+ * @property {boolean|Array<any>} stepLabels
40
+ * @see https://antoniandre.github.io/wave-ui/w-slider
41
+ */
42
+ stepLabels?: boolean | Array<any>;
43
+ /**
44
+ * TODO: Add Description
45
+ * @property {boolean|string} thumbLabel
46
+ * @see https://antoniandre.github.io/wave-ui/w-slider
47
+ */
48
+ thumbLabel?: boolean | string;
49
+ /**
50
+ * Applies a custom CSS class to the slider's thumb label.
51
+ * @property {string} thumbLabelClass
52
+ * @see https://antoniandre.github.io/wave-ui/w-slider
53
+ */
54
+ thumbLabelClass?: string;
55
+ /**
56
+ * Applies a custom CSS class to the slider's track.
57
+ * @property {string} trackClass
58
+ * @see https://antoniandre.github.io/wave-ui/w-slider
59
+ */
60
+ trackClass?: string;
61
+ /**
62
+ * Applies a custom CSS class to the slider's highlighted range.
63
+ * @property {string} rangeClass
64
+ * @see https://antoniandre.github.io/wave-ui/w-slider
65
+ */
66
+ rangeClass?: string;
67
+ /**
68
+ * Sets an integer or floating minimum number for the slider.
69
+ * @property {number|string} min - Default: 0
70
+ * @see https://antoniandre.github.io/wave-ui/w-slider
71
+ */
72
+ min?: number | string;
73
+ /**
74
+ * Sets an integer or floating maximum number for the slider.
75
+ * @property {number|string} max - Default: 100
76
+ * @see https://antoniandre.github.io/wave-ui/w-slider
77
+ */
78
+ max?: number | string;
79
+ /**
80
+ * Sets an incremental/decremental integer or floating step number for the slider, e.g. `0.3`.
81
+ * @property {number|string} step
82
+ * @see https://antoniandre.github.io/wave-ui/w-slider
83
+ */
84
+ step?: number | string;
85
+ /**
86
+ * Defines a label to display on the left of the slider.
87
+ * @property {string} labelLeft
88
+ * @see https://antoniandre.github.io/wave-ui/w-slider
89
+ */
90
+ labelLeft?: string;
91
+ /**
92
+ * Defines a label to display on the right of the slider.
93
+ * @property {string} labelRight
94
+ * @see https://antoniandre.github.io/wave-ui/w-slider
95
+ */
96
+ labelRight?: string;
97
+ /**
98
+ * TODO: Add Description
99
+ * @property {boolean} dark
100
+ * @see https://antoniandre.github.io/wave-ui/w-slider
101
+ */
102
+ dark?: boolean;
103
+ /**
104
+ * TODO: Add Description
105
+ * @property {boolean} light
106
+ * @see https://antoniandre.github.io/wave-ui/w-slider
107
+ */
108
+ light?: boolean;
109
+ }
110
+ export interface WaveSliderEmits {
111
+ /**
112
+ * Emitted each time the slider range changes.<br>Updates the v-model value in Vue 2.x only.
113
+ * @param {any} renameMe1 - The current value of the slider.
114
+ * @see https://antoniandre.github.io/wave-ui/w-slider
115
+ */
116
+ 'onInput'?: (renameMe1: any) => void;
117
+ /**
118
+ * Emitted each time the slider range changes.<br>Updates the v-model value in Vue 3 only.
119
+ * @param {any} renameMe1 - The current value of the slider.
120
+ * @see https://antoniandre.github.io/wave-ui/w-slider
121
+ */
122
+ 'onUpdate:modelValue'?: (renameMe1: any) => void;
123
+ /**
124
+ * Emitted when the slider is focused (the thumb button).
125
+ * @param {any} renameMe1 - The associated focus DOM event.
126
+ * @see https://antoniandre.github.io/wave-ui/w-slider
127
+ */
128
+ 'onFocus'?: (renameMe1: any) => void;
129
+ }
130
+ export interface WaveSliderComputeds extends ComputedOptions {
131
+ /**
132
+ * TODO: Add Description
133
+ * @see https://antoniandre.github.io/wave-ui/w-slider
134
+ */
135
+ minVal: ComputedGetter<any>;
136
+ /**
137
+ * TODO: Add Description
138
+ * @see https://antoniandre.github.io/wave-ui/w-slider
139
+ */
140
+ maxVal: ComputedGetter<any>;
141
+ /**
142
+ * TODO: Add Description
143
+ * @see https://antoniandre.github.io/wave-ui/w-slider
144
+ */
145
+ stepValPercent: ComputedGetter<any>;
146
+ /**
147
+ * TODO: Add Description
148
+ * @see https://antoniandre.github.io/wave-ui/w-slider
149
+ */
150
+ scaledRange: ComputedGetter<any>;
151
+ /**
152
+ * TODO: Add Description
153
+ * @see https://antoniandre.github.io/wave-ui/w-slider
154
+ */
155
+ numberOfSteps: ComputedGetter<any>;
156
+ /**
157
+ * TODO: Add Description
158
+ * @see https://antoniandre.github.io/wave-ui/w-slider
159
+ */
160
+ rangeStyles: ComputedGetter<any>;
161
+ /**
162
+ * TODO: Add Description
163
+ * @see https://antoniandre.github.io/wave-ui/w-slider
164
+ */
165
+ thumbStyles: ComputedGetter<any>;
166
+ /**
167
+ * TODO: Add Description
168
+ * @see https://antoniandre.github.io/wave-ui/w-slider
169
+ */
170
+ rangeClasses: ComputedGetter<any>;
171
+ /**
172
+ * TODO: Add Description
173
+ * @see https://antoniandre.github.io/wave-ui/w-slider
174
+ */
175
+ trackClasses: ComputedGetter<any>;
176
+ /**
177
+ * TODO: Add Description
178
+ * @see https://antoniandre.github.io/wave-ui/w-slider
179
+ */
180
+ thumbClasses: ComputedGetter<any>;
181
+ /**
182
+ * TODO: Add Description
183
+ * @see https://antoniandre.github.io/wave-ui/w-slider
184
+ */
185
+ wrapperClasses: ComputedGetter<any>;
186
+ }
187
+ export interface WaveSliderMethods extends MethodOptions {
188
+ /**
189
+ * TODO: Add Description
190
+ * @param {any} value
191
+ * @see https://antoniandre.github.io/wave-ui/w-slider
192
+ */
193
+ scaledToPercent(value: any): void;
194
+ /**
195
+ * TODO: Add Description
196
+ * @param {any} value
197
+ * @see https://antoniandre.github.io/wave-ui/w-slider
198
+ */
199
+ percentToScaled(value: any): void;
200
+ /**
201
+ * TODO: Add Description
202
+ * @param {any} e
203
+ * @see https://antoniandre.github.io/wave-ui/w-slider
204
+ */
205
+ onTrackMouseDown(e: any): void;
206
+ /**
207
+ * TODO: Add Description
208
+ * @param {any} e
209
+ * @see https://antoniandre.github.io/wave-ui/w-slider
210
+ */
211
+ onDrag(e: any): void;
212
+ /**
213
+ * TODO: Add Description
214
+ * @param {any} e
215
+ * @see https://antoniandre.github.io/wave-ui/w-slider
216
+ */
217
+ onMouseUp(e: any): void;
218
+ /**
219
+ * TODO: Add Description
220
+ * @param {any} step
221
+ * @see https://antoniandre.github.io/wave-ui/w-slider
222
+ */
223
+ onStepLabelClick(step: any): void;
224
+ /**
225
+ * TODO: Add Description
226
+ * @param {any} e
227
+ * @param {any} direction
228
+ * @see https://antoniandre.github.io/wave-ui/w-slider
229
+ */
230
+ onKeyDown(e: any, direction: any): void;
231
+ /**
232
+ * TODO: Add Description
233
+ * @param {any} cursorPositionX
234
+ * @see https://antoniandre.github.io/wave-ui/w-slider
235
+ */
236
+ updateRange(cursorPositionX: any): void;
237
+ /**
238
+ * TODO: Add Description
239
+ * @see https://antoniandre.github.io/wave-ui/w-slider
240
+ */
241
+ updateRangeValueScaled(): void;
242
+ }
243
+ export type WaveSliderSlots = SlotsType<{
244
+ /**
245
+ * TODO: Add Description
246
+ * @see https://antoniandre.github.io/wave-ui/w-slider
247
+ */
248
+ 'label-left': () => any;
249
+ /**
250
+ * TODO: Add Description
251
+ * @param {any} value TODO: Describe me!
252
+ * @see https://antoniandre.github.io/wave-ui/w-slider
253
+ */
254
+ 'label': (_: {
255
+ value: any;
256
+ }) => any;
257
+ /**
258
+ * TODO: Add Description
259
+ * @see https://antoniandre.github.io/wave-ui/w-slider
260
+ */
261
+ 'label-right': () => any;
262
+ }>;
263
+ export type WSlider = DefineComponent<WaveSliderProps, {}, {}, WaveSliderComputeds, WaveSliderMethods, {}, {}, WaveSliderEmits & EmitsOptions, string, PublicProps, ResolveProps<WaveSliderProps & WaveSliderEmits, EmitsOptions>, ExtractDefaultPropTypes<WaveSliderProps>, WaveSliderSlots>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,101 @@
1
+ import { ComputedGetter, ComputedOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, SlotsType } from 'vue';
2
+ import { PublicProps, ResolveProps } from '../extra-vue-types';
3
+ export interface WaveSpinnerProps {
4
+ /**
5
+ * ``value` in Vue 2.`
6
+ * The `value` or `v-model` controls the visibility of the spinner. Any truthy value will show the spinner whereas any falsy value will hide it. If no value/v-model or `undefined` is provided, the spinner will be visible.
7
+ * @property {any} modelValue
8
+ * @see https://antoniandre.github.io/wave-ui/w-spinner
9
+ */
10
+ modelValue?: any;
11
+ /**
12
+ * Sets the color of the spinner.
13
+ * 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).
14
+ * Providing a color hex, rgb(a) or hsl(a) will not work.
15
+ * @property {string} color - Default: 'primary'
16
+ * @see https://antoniandre.github.io/wave-ui/w-spinner
17
+ * @see https://antoniandre.github.io/wave-ui/colors
18
+ */
19
+ color?: string;
20
+ /**
21
+ * Sets the size of the spinner.
22
+ * @property {boolean} xs
23
+ * @see https://antoniandre.github.io/wave-ui/w-spinner
24
+ */
25
+ xs?: boolean;
26
+ /**
27
+ * Sets the size of the spinner.
28
+ * @property {boolean} sm
29
+ * @see https://antoniandre.github.io/wave-ui/w-spinner
30
+ */
31
+ sm?: boolean;
32
+ /**
33
+ * Sets the size of the spinner.
34
+ * @property {boolean} md
35
+ * @see https://antoniandre.github.io/wave-ui/w-spinner
36
+ */
37
+ md?: boolean;
38
+ /**
39
+ * Sets the size of the spinner.
40
+ * @property {boolean} lg
41
+ * @see https://antoniandre.github.io/wave-ui/w-spinner
42
+ */
43
+ lg?: boolean;
44
+ /**
45
+ * Sets the size of the spinner.
46
+ * @property {boolean} xl
47
+ * @see https://antoniandre.github.io/wave-ui/w-spinner
48
+ */
49
+ xl?: boolean;
50
+ /**
51
+ * Sets the size of the spinner. Accepts a string made of a value and a unit (e.g. `2.5em`) or a number (e.g. `45`) that will be a pixel value.
52
+ * @property {number|string} size
53
+ * @see https://antoniandre.github.io/wave-ui/w-spinner
54
+ */
55
+ size?: number | string;
56
+ /**
57
+ * Sets the style of the spinner.
58
+ * @property {boolean} bounce
59
+ * @see https://antoniandre.github.io/wave-ui/w-spinner
60
+ */
61
+ bounce?: boolean;
62
+ /**
63
+ * Sets the style of the spinner.
64
+ * @property {boolean} fade
65
+ * @see https://antoniandre.github.io/wave-ui/w-spinner
66
+ */
67
+ fade?: boolean;
68
+ }
69
+ export interface WaveSpinnerEmits {
70
+ }
71
+ export interface WaveSpinnerComputeds extends ComputedOptions {
72
+ /**
73
+ * TODO: Add Description
74
+ * @see https://antoniandre.github.io/wave-ui/w-spinner
75
+ */
76
+ isThreeDots: ComputedGetter<any>;
77
+ /**
78
+ * TODO: Add Description
79
+ * @see https://antoniandre.github.io/wave-ui/w-spinner
80
+ */
81
+ forcedSize: ComputedGetter<any>;
82
+ /**
83
+ * TODO: Add Description
84
+ * @see https://antoniandre.github.io/wave-ui/w-spinner
85
+ */
86
+ presetSize: ComputedGetter<any>;
87
+ /**
88
+ * TODO: Add Description
89
+ * @see https://antoniandre.github.io/wave-ui/w-spinner
90
+ */
91
+ styles: ComputedGetter<any>;
92
+ /**
93
+ * TODO: Add Description
94
+ * @see https://antoniandre.github.io/wave-ui/w-spinner
95
+ */
96
+ classes: ComputedGetter<any>;
97
+ }
98
+ export interface WaveSpinnerMethods extends MethodOptions {
99
+ }
100
+ export type WaveSpinnerSlots = SlotsType<{}>;
101
+ export type WSpinner = DefineComponent<WaveSpinnerProps, {}, {}, WaveSpinnerComputeds, WaveSpinnerMethods, {}, {}, WaveSpinnerEmits & EmitsOptions, string, PublicProps, ResolveProps<WaveSpinnerProps & WaveSpinnerEmits, EmitsOptions>, ExtractDefaultPropTypes<WaveSpinnerProps>, WaveSpinnerSlots>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
1
+ import { ComputedGetter, ComputedOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, SlotsType } from 'vue';
2
+ import { PublicProps, ResolveProps } from '../extra-vue-types';
3
+ export interface WaveStepsProps {
4
+ /**
5
+ * TODO: Add Description
6
+ * @property {boolean} dark
7
+ * @see https://antoniandre.github.io/wave-ui/w-steps
8
+ */
9
+ dark?: boolean;
10
+ /**
11
+ * TODO: Add Description
12
+ * @property {boolean} light
13
+ * @see https://antoniandre.github.io/wave-ui/w-steps
14
+ */
15
+ light?: boolean;
16
+ }
17
+ export interface WaveStepsEmits {
18
+ }
19
+ export interface WaveStepsComputeds extends ComputedOptions {
20
+ /**
21
+ * TODO: Add Description
22
+ * @see https://antoniandre.github.io/wave-ui/w-steps
23
+ */
24
+ classes: ComputedGetter<any>;
25
+ }
26
+ export interface WaveStepsMethods extends MethodOptions {
27
+ }
28
+ export type WaveStepsSlots = SlotsType<{}>;
29
+ export type WSteps = DefineComponent<WaveStepsProps, {}, {}, WaveStepsComputeds, WaveStepsMethods, {}, {}, WaveStepsEmits & EmitsOptions, string, PublicProps, ResolveProps<WaveStepsProps & WaveStepsEmits, EmitsOptions>, ExtractDefaultPropTypes<WaveStepsProps>, WaveStepsSlots>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,132 @@
1
+ import { ComputedGetter, ComputedOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, SlotsType } from 'vue';
2
+ import { PublicProps, ResolveProps } from '../extra-vue-types';
3
+ export interface WaveSwitchProps {
4
+ /**
5
+ * ``value` in Vue 2.`
6
+ * Dictates the state of the switch. When the user toggles the switch, the `v-model` value will be updated.
7
+ * @property {any} modelValue - Default: false
8
+ * @see https://antoniandre.github.io/wave-ui/w-switch
9
+ */
10
+ modelValue?: any;
11
+ /**
12
+ * Sets a visible label for the switch.
13
+ * @property {string} label - Default: ''
14
+ * @see https://antoniandre.github.io/wave-ui/w-switch
15
+ */
16
+ label?: string;
17
+ /**
18
+ * Moves the label to the left of the switch. By default the label is displayed on the right.
19
+ * @property {boolean} labelOnLeft
20
+ * @see https://antoniandre.github.io/wave-ui/w-switch
21
+ */
22
+ labelOnLeft?: boolean;
23
+ /**
24
+ * Applies a color to the switch. 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).
25
+ * Providing a color hex, rgb(a) or hsl(a) will not work.
26
+ * @property {string} color - Default: 'primary'
27
+ * @see https://antoniandre.github.io/wave-ui/w-switch
28
+ * @see https://antoniandre.github.io/wave-ui/colors
29
+ */
30
+ color?: string;
31
+ /**
32
+ * Applies a specific color to the switch's label. Note that on validation failure, the validation-color takes precedence.
33
+ * 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).
34
+ * Providing a color hex, rgb(a) or hsl(a) will not work.
35
+ * @property {string} labelColor - Default: 'primary'
36
+ * @see https://antoniandre.github.io/wave-ui/w-switch
37
+ * @see https://antoniandre.github.io/wave-ui/colors
38
+ */
39
+ labelColor?: string;
40
+ /**
41
+ * Applies a thiner style to the switch.
42
+ * @property {boolean} thin
43
+ * @see https://antoniandre.github.io/wave-ui/w-switch
44
+ */
45
+ thin?: boolean;
46
+ /**
47
+ * Removes the ripple animation on activation.
48
+ * @property {boolean} noRipple
49
+ * @see https://antoniandre.github.io/wave-ui/w-switch
50
+ */
51
+ noRipple?: boolean;
52
+ /**
53
+ * When set to `true`, displays an indefinite-value progress circle inside the switch thumb. If a number is given, it will be the value of the progress.
54
+ * @property {boolean|number} loading - Default: false
55
+ * @see https://antoniandre.github.io/wave-ui/w-switch
56
+ */
57
+ loading?: boolean | number;
58
+ /**
59
+ * TODO: Add Description
60
+ * @property {boolean} dark
61
+ * @see https://antoniandre.github.io/wave-ui/w-switch
62
+ */
63
+ dark?: boolean;
64
+ /**
65
+ * TODO: Add Description
66
+ * @property {boolean} light
67
+ * @see https://antoniandre.github.io/wave-ui/w-switch
68
+ */
69
+ light?: boolean;
70
+ }
71
+ export interface WaveSwitchEmits {
72
+ /**
73
+ * Emitted each time the state of the switch changes.<br>Updates the v-model value in Vue 2.x only.
74
+ * @param {any} renameMe1 - A boolean representing the current state of the switch.
75
+ * @see https://antoniandre.github.io/wave-ui/w-switch
76
+ */
77
+ 'onInput'?: (renameMe1: any) => void;
78
+ /**
79
+ * Emitted each time the state of the switch changes.<br>Updates the v-model value in Vue 3 only.
80
+ * @param {any} renameMe1 - A boolean representing the current state of the switch.
81
+ * @see https://antoniandre.github.io/wave-ui/w-switch
82
+ */
83
+ 'onUpdate:modelValue'?: (renameMe1: any) => void;
84
+ /**
85
+ * Emitted on switch focus.
86
+ * @param {any} renameMe1 - The associated focus DOM event.
87
+ * @see https://antoniandre.github.io/wave-ui/w-switch
88
+ */
89
+ 'onFocus'?: (renameMe1: any) => void;
90
+ }
91
+ export interface WaveSwitchComputeds extends ComputedOptions {
92
+ /**
93
+ * TODO: Add Description
94
+ * @see https://antoniandre.github.io/wave-ui/w-switch
95
+ */
96
+ hasLabel: ComputedGetter<any>;
97
+ /**
98
+ * TODO: Add Description
99
+ * @see https://antoniandre.github.io/wave-ui/w-switch
100
+ */
101
+ classes: ComputedGetter<any>;
102
+ /**
103
+ * TODO: Add Description
104
+ * @see https://antoniandre.github.io/wave-ui/w-switch
105
+ */
106
+ inputClasses: ComputedGetter<any>;
107
+ }
108
+ export interface WaveSwitchMethods extends MethodOptions {
109
+ /**
110
+ * TODO: Add Description
111
+ * @see https://antoniandre.github.io/wave-ui/w-switch
112
+ */
113
+ onInput(): void;
114
+ }
115
+ export type WaveSwitchSlots = SlotsType<{
116
+ /**
117
+ * The switch label content, if the label prop is not flexible enough.
118
+ * @see https://antoniandre.github.io/wave-ui/w-switch
119
+ */
120
+ 'default': () => any;
121
+ /**
122
+ * Optional switch track content.
123
+ * @see https://antoniandre.github.io/wave-ui/w-switch
124
+ */
125
+ 'track': () => any;
126
+ /**
127
+ * Optional switch thumb content. Useful to place an icon or small text.
128
+ * @see https://antoniandre.github.io/wave-ui/w-switch
129
+ */
130
+ 'thumb': () => any;
131
+ }>;
132
+ export type WSwitch = DefineComponent<WaveSwitchProps, {}, {}, WaveSwitchComputeds, WaveSwitchMethods, {}, {}, WaveSwitchEmits & EmitsOptions, string, PublicProps, ResolveProps<WaveSwitchProps & WaveSwitchEmits, EmitsOptions>, ExtractDefaultPropTypes<WaveSwitchProps>, WaveSwitchSlots>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });