wave-ui 3.10.1 → 3.12.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.
- package/dist/types/$waveui.d.ts +221 -0
- package/dist/types/$waveui.js +2 -0
- package/dist/types/colors.d.ts +503 -0
- package/dist/types/colors.js +2 -0
- package/dist/types/components/WAccordion.d.ts +226 -0
- package/dist/types/components/WAccordion.js +2 -0
- package/dist/types/components/WAlert.d.ts +225 -0
- package/dist/types/components/WAlert.js +2 -0
- package/dist/types/components/WApp.d.ts +84 -0
- package/dist/types/components/WApp.js +2 -0
- package/dist/types/components/WBadge.d.ts +194 -0
- package/dist/types/components/WBadge.js +2 -0
- package/dist/types/components/WBreadcrumbs.d.ts +129 -0
- package/dist/types/components/WBreadcrumbs.js +2 -0
- package/dist/types/components/WButton.d.ts +218 -0
- package/dist/types/components/WButton.js +2 -0
- package/dist/types/components/WCard.d.ts +140 -0
- package/dist/types/components/WCard.js +2 -0
- package/dist/types/components/WCheckbox.d.ts +132 -0
- package/dist/types/components/WCheckbox.js +2 -0
- package/dist/types/components/WCheckboxes.d.ts +141 -0
- package/dist/types/components/WCheckboxes.js +2 -0
- package/dist/types/components/WConfirm.d.ts +250 -0
- package/dist/types/components/WConfirm.js +2 -0
- package/dist/types/components/WDialog.d.ts +189 -0
- package/dist/types/components/WDialog.js +2 -0
- package/dist/types/components/WDivider.d.ts +49 -0
- package/dist/types/components/WDivider.js +2 -0
- package/dist/types/components/WDrawer.d.ts +249 -0
- package/dist/types/components/WDrawer.js +2 -0
- package/dist/types/components/WFlex.d.ts +137 -0
- package/dist/types/components/WFlex.js +2 -0
- package/dist/types/components/WForm.d.ts +165 -0
- package/dist/types/components/WForm.js +2 -0
- package/dist/types/components/WFormElement.d.ts +112 -0
- package/dist/types/components/WFormElement.js +2 -0
- package/dist/types/components/WGrid.d.ts +51 -0
- package/dist/types/components/WGrid.js +2 -0
- package/dist/types/components/WIcon.d.ts +167 -0
- package/dist/types/components/WIcon.js +2 -0
- package/dist/types/components/WImage.d.ts +172 -0
- package/dist/types/components/WImage.js +2 -0
- package/dist/types/components/WInput.d.ts +352 -0
- package/dist/types/components/WInput.js +2 -0
- package/dist/types/components/WList.d.ts +336 -0
- package/dist/types/components/WList.js +2 -0
- package/dist/types/components/WMenu.d.ts +250 -0
- package/dist/types/components/WMenu.js +2 -0
- package/dist/types/components/WNotification.d.ts +283 -0
- package/dist/types/components/WNotification.js +2 -0
- package/dist/types/components/WNotificationManager.d.ts +33 -0
- package/dist/types/components/WNotificationManager.js +2 -0
- package/dist/types/components/WOverlay.d.ts +118 -0
- package/dist/types/components/WOverlay.js +2 -0
- package/dist/types/components/WProgress.d.ts +177 -0
- package/dist/types/components/WProgress.js +2 -0
- package/dist/types/components/WRadio.d.ts +121 -0
- package/dist/types/components/WRadio.js +2 -0
- package/dist/types/components/WRadios.d.ts +129 -0
- package/dist/types/components/WRadios.js +2 -0
- package/dist/types/components/WRating.d.ts +176 -0
- package/dist/types/components/WRating.js +2 -0
- package/dist/types/components/WSelect.d.ts +416 -0
- package/dist/types/components/WSelect.js +2 -0
- package/dist/types/components/WSlider.d.ts +263 -0
- package/dist/types/components/WSlider.js +2 -0
- package/dist/types/components/WSpinner.d.ts +101 -0
- package/dist/types/components/WSpinner.js +2 -0
- package/dist/types/components/WSteps.d.ts +29 -0
- package/dist/types/components/WSteps.js +2 -0
- package/dist/types/components/WSwitch.d.ts +132 -0
- package/dist/types/components/WSwitch.js +2 -0
- package/dist/types/components/WTable.d.ts +504 -0
- package/dist/types/components/WTable.js +2 -0
- package/dist/types/components/WTabs.d.ts +343 -0
- package/dist/types/components/WTabs.js +2 -0
- package/dist/types/components/WTag.d.ts +160 -0
- package/dist/types/components/WTag.js +2 -0
- package/dist/types/components/WTextarea.d.ts +257 -0
- package/dist/types/components/WTextarea.js +2 -0
- package/dist/types/components/WTimeline.d.ts +102 -0
- package/dist/types/components/WTimeline.js +2 -0
- package/dist/types/components/WToolbar.d.ts +134 -0
- package/dist/types/components/WToolbar.js +2 -0
- package/dist/types/components/WTooltip.d.ts +170 -0
- package/dist/types/components/WTooltip.js +2 -0
- package/dist/types/components/WTree.d.ts +359 -0
- package/dist/types/components/WTree.js +2 -0
- package/dist/types/components/index.d.ts +42 -0
- package/dist/types/components/index.js +2 -0
- package/dist/types/extra-vue-types.d.ts +8 -0
- package/dist/types/extra-vue-types.js +2 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.js +4 -0
- package/dist/types/plugin.d.ts +19 -0
- package/dist/types/plugin.js +2 -0
- package/dist/wave-ui.cjs.js +1 -1
- package/dist/wave-ui.css +1 -1
- package/dist/wave-ui.es.js +359 -333
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +8 -2
- package/src/wave-ui/components/w-autocomplete.vue +1 -8
- package/src/wave-ui/components/w-input.vue +1 -0
- package/src/wave-ui/components/w-parallax.vue +0 -1
- package/src/wave-ui/components/w-select.vue +10 -8
- package/src/wave-ui/components/w-switch.vue +1 -1
- package/src/wave-ui/components/w-table.vue +18 -1
- package/src/wave-ui/components/w-textarea.vue +12 -10
- package/src/wave-ui/index.d.ts +21 -0
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { WaveColor } from './colors';
|
|
2
|
+
import { WaveAlertProps } from './components/WAlert';
|
|
3
|
+
export type WaveNotificationType = 'info' | 'success' | 'warning' | 'error';
|
|
4
|
+
export interface $waveui {
|
|
5
|
+
breakpoint: {
|
|
6
|
+
name: string;
|
|
7
|
+
xs: boolean;
|
|
8
|
+
sm: boolean;
|
|
9
|
+
md: boolean;
|
|
10
|
+
lg: boolean;
|
|
11
|
+
xl: boolean;
|
|
12
|
+
width: number | null;
|
|
13
|
+
};
|
|
14
|
+
config: {
|
|
15
|
+
/**
|
|
16
|
+
* From version 3.0. Sets the Wave UI root on a custom node (expects a valid CSS selector)
|
|
17
|
+
* @property {string} on - Default: '#app', if not found body will be used
|
|
18
|
+
* @see https://antoniandre.github.io/wave-ui/options-presets-and-waveui
|
|
19
|
+
*/
|
|
20
|
+
on: string;
|
|
21
|
+
/**
|
|
22
|
+
* Breakpoint settings
|
|
23
|
+
* @property breakpoints
|
|
24
|
+
* @see https://antoniandre.github.io/wave-ui/breakpoints#default-breakpoints
|
|
25
|
+
* @see https://antoniandre.github.io/wave-ui/options-presets-and-waveui
|
|
26
|
+
*/
|
|
27
|
+
breakpoints: {
|
|
28
|
+
/**
|
|
29
|
+
* @property {number} xs - Default: 600
|
|
30
|
+
*/
|
|
31
|
+
xs: number;
|
|
32
|
+
/**
|
|
33
|
+
* @property {number} sm - Default: 900
|
|
34
|
+
*/
|
|
35
|
+
sm: number;
|
|
36
|
+
/**
|
|
37
|
+
* @property {number} md - Default: 1200
|
|
38
|
+
*/
|
|
39
|
+
md: number;
|
|
40
|
+
/**
|
|
41
|
+
* @property {number} lg - Default: 1700
|
|
42
|
+
*/
|
|
43
|
+
lg: number;
|
|
44
|
+
/**
|
|
45
|
+
* Xl only needs a greater value than lg but starts from lg and goes to infinity.
|
|
46
|
+
* @property {number} xl - Default: 9999
|
|
47
|
+
*/
|
|
48
|
+
xl: number;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Css settings
|
|
52
|
+
* @property css
|
|
53
|
+
* @see https://antoniandre.github.io/wave-ui/colors
|
|
54
|
+
* @see https://antoniandre.github.io/wave-ui/options-presets-and-waveui
|
|
55
|
+
*/
|
|
56
|
+
css: {
|
|
57
|
+
/**
|
|
58
|
+
* Generate shades for custom colors and status colors.
|
|
59
|
+
* NOTE: the color palette shades are always generated separately from SCSS.
|
|
60
|
+
* @property {boolean} colorShades - Default: true
|
|
61
|
+
*/
|
|
62
|
+
colorShades: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Generate margin and padding utility classes for each breakpoint. E.g. `sm-ma2`
|
|
65
|
+
* @property {boolean} breakpointSpaces - Default: false
|
|
66
|
+
*/
|
|
67
|
+
breakpointSpaces: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Generate helper classes for each breakpoint. E.g. `sm-text-left` `sm-hide`
|
|
70
|
+
* @property {boolean} breakpointLayoutClasses - Default: true
|
|
71
|
+
* @see https://antoniandre.github.io/wave-ui/breakpoints#breakpoint-specific-layout-classes
|
|
72
|
+
*/
|
|
73
|
+
breakpointLayoutClasses: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* How many columns the flexbox based grid will use
|
|
76
|
+
* @property {number} grid - Default: 12
|
|
77
|
+
* @see https://antoniandre.github.io/wave-ui/layout--grid-system
|
|
78
|
+
*/
|
|
79
|
+
grid: number;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Color/Theme settings
|
|
83
|
+
* @property colors
|
|
84
|
+
* @see https://antoniandre.github.io/wave-ui/colors
|
|
85
|
+
* @see https://antoniandre.github.io/wave-ui/colors#defining-your-own-css-colors-in-the-wave-ui-configuration
|
|
86
|
+
*/
|
|
87
|
+
colors: {
|
|
88
|
+
/**
|
|
89
|
+
* The light theme default colors
|
|
90
|
+
* @property light
|
|
91
|
+
*/
|
|
92
|
+
light: {
|
|
93
|
+
/**
|
|
94
|
+
* @property {string} primary - Default: '#234781'
|
|
95
|
+
*/
|
|
96
|
+
primary: string;
|
|
97
|
+
/**
|
|
98
|
+
* @property {string} secondary - Default: '#d3ebff'
|
|
99
|
+
*/
|
|
100
|
+
secondary: string;
|
|
101
|
+
/**
|
|
102
|
+
* @property {string} info - Default: '#3d9ff5'
|
|
103
|
+
*/
|
|
104
|
+
info: string;
|
|
105
|
+
/**
|
|
106
|
+
* @property {string} warning - Default: '#ff8800'
|
|
107
|
+
*/
|
|
108
|
+
warning: string;
|
|
109
|
+
/**
|
|
110
|
+
* @property {string} success - Default: '#54b946'
|
|
111
|
+
*/
|
|
112
|
+
success: string;
|
|
113
|
+
/**
|
|
114
|
+
* @property {string} error - Default: '#f65555'
|
|
115
|
+
*/
|
|
116
|
+
error: string;
|
|
117
|
+
/**
|
|
118
|
+
* Here any additional colors can be defined by the user.
|
|
119
|
+
* @property {string} {string}
|
|
120
|
+
* @see https://antoniandre.github.io/wave-ui/colors#defining-your-own-css-colors-in-the-wave-ui-configuration
|
|
121
|
+
*/
|
|
122
|
+
[key: string]: string;
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* The dark theme default colors
|
|
126
|
+
* @property dark
|
|
127
|
+
*/
|
|
128
|
+
dark: {
|
|
129
|
+
/**
|
|
130
|
+
* @property {string} primary - Default: '#89b6d2'
|
|
131
|
+
*/
|
|
132
|
+
primary: string;
|
|
133
|
+
/**
|
|
134
|
+
* @property {string} secondary - Default: '#375b6a'
|
|
135
|
+
*/
|
|
136
|
+
secondary: string;
|
|
137
|
+
/**
|
|
138
|
+
* @property {string} info - Default: '#3d9ff5'
|
|
139
|
+
*/
|
|
140
|
+
info: string;
|
|
141
|
+
/**
|
|
142
|
+
* @property {string} warning - Default: '#ff8800'
|
|
143
|
+
*/
|
|
144
|
+
warning: string;
|
|
145
|
+
/**
|
|
146
|
+
* @property {string} success - Default: '#54b946'
|
|
147
|
+
*/
|
|
148
|
+
success: string;
|
|
149
|
+
/**
|
|
150
|
+
* @property {string} error - Default: '#f65555'
|
|
151
|
+
*/
|
|
152
|
+
error: string;
|
|
153
|
+
/**
|
|
154
|
+
* Here any additional colors can be defined by the user.
|
|
155
|
+
* @property {string} {string}
|
|
156
|
+
* @see https://antoniandre.github.io/wave-ui/colors#defining-your-own-css-colors-in-the-wave-ui-configuration
|
|
157
|
+
*/
|
|
158
|
+
[key: string]: string;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* The initial theme to use
|
|
163
|
+
* To switch theme while running, call the $waveui.switchTheme('light'|'dark') method.
|
|
164
|
+
* @property {string} theme - Default: 'light'
|
|
165
|
+
* @see https://antoniandre.github.io/wave-ui/options-presets-and-waveui
|
|
166
|
+
*/
|
|
167
|
+
theme: 'light' | 'dark' | 'auto';
|
|
168
|
+
/**
|
|
169
|
+
* Not sure what this does.
|
|
170
|
+
* @property {array} icons - Default: '[]'
|
|
171
|
+
* @see https://antoniandre.github.io/wave-ui/w-icon
|
|
172
|
+
*/
|
|
173
|
+
icons: [];
|
|
174
|
+
/**
|
|
175
|
+
* Whether or not to use icon ligatures
|
|
176
|
+
* @property {boolean} iconsLigature - Default: 'false'
|
|
177
|
+
* @see https://antoniandre.github.io/wave-ui/w-icon
|
|
178
|
+
*/
|
|
179
|
+
iconsLigature: boolean;
|
|
180
|
+
/**
|
|
181
|
+
* Notification manager settings
|
|
182
|
+
* @property align
|
|
183
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
184
|
+
*/
|
|
185
|
+
notificationManager: {
|
|
186
|
+
/**
|
|
187
|
+
* Here any additional colors can be defined by the user.
|
|
188
|
+
* @property {string} align - Default: 'right'
|
|
189
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification#align-to-the-left-or-right
|
|
190
|
+
*/
|
|
191
|
+
align: 'right' | 'left';
|
|
192
|
+
/**
|
|
193
|
+
* Here any additional colors can be defined by the user.
|
|
194
|
+
* @property {string|false} transition - Default: 'default'
|
|
195
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification#different-transitions
|
|
196
|
+
*/
|
|
197
|
+
transition: false | 'default' | 'bounce' | 'scale' | 'twist' | 'fade' | 'slide-fade-left' | 'slide-fade-right' | 'slide-fade-up' | 'slide-fade-down';
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* Component presets
|
|
201
|
+
* @property presets
|
|
202
|
+
* @see https://antoniandre.github.io/wave-ui/options-presets-and-waveui
|
|
203
|
+
*/
|
|
204
|
+
presets: Record<string, Record<string, string | number | boolean>>;
|
|
205
|
+
};
|
|
206
|
+
colors: Record<WaveColor | string, string>;
|
|
207
|
+
preferredTheme: null;
|
|
208
|
+
theme: null;
|
|
209
|
+
_notificationManager: null;
|
|
210
|
+
/**
|
|
211
|
+
* @param {string} message
|
|
212
|
+
* @param {NotificationType} type Defaults to 'info'
|
|
213
|
+
* @param {number} timeout Time to live. Defaults to 4000. 0 is permanently.
|
|
214
|
+
*/
|
|
215
|
+
notify(message: string, type?: WaveNotificationType, timeout?: number): void;
|
|
216
|
+
notify(options: {
|
|
217
|
+
message: string;
|
|
218
|
+
timeout: number;
|
|
219
|
+
} & WaveAlertProps): void;
|
|
220
|
+
switchTheme(theme: string, skipFlatten: boolean): void;
|
|
221
|
+
}
|