wave-ui 3.18.0 → 3.19.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wave-ui",
3
- "version": "3.18.0",
3
+ "version": "3.19.0",
4
4
  "description": "A UI framework for Vue.js 3 (and 2) with only the bright side. :sunny:",
5
5
  "author": "Antoni Andre <antoniandre.web@gmail.com>",
6
6
  "homepage": "https://antoniandre.github.io/wave-ui",
@@ -18,14 +18,8 @@
18
18
  ],
19
19
  "exports": {
20
20
  ".": {
21
- "import": {
22
- "default": "./dist/wave-ui.es.js",
23
- "types": "./dist/types/index.d.ts"
24
- },
25
- "require": {
26
- "default": "./dist/wave-ui.umd.js",
27
- "types": "./dist/types/index.d.ts"
28
- }
21
+ "import": "./dist/wave-ui.es.js",
22
+ "require": "./dist/wave-ui.umd.js"
29
23
  },
30
24
  "./package.json": "./package.json",
31
25
  "./dist/*": "./dist/*",
@@ -49,39 +43,39 @@
49
43
  "ui"
50
44
  ],
51
45
  "devDependencies": {
52
- "@eslint/js": "^9.14.0",
53
- "@faker-js/faker": "^8.4.1",
46
+ "@eslint/js": "^9.21.0",
47
+ "@faker-js/faker": "^9.5.1",
54
48
  "@mdi/font": "^7.4.47",
55
49
  "@tsconfig/recommended": "^1.0.8",
56
- "@typescript-eslint/eslint-plugin": "^8.12.2",
57
- "@typescript-eslint/parser": "^8.12.2",
58
- "@vitejs/plugin-vue": "^5.1.4",
50
+ "@typescript-eslint/eslint-plugin": "^8.25.0",
51
+ "@typescript-eslint/parser": "^8.25.0",
52
+ "@vitejs/plugin-vue": "^5.2.1",
59
53
  "autoprefixer": "^10.4.20",
60
- "axios": "^1.7.7",
61
- "eslint": "^9.14.0",
54
+ "axios": "^1.8.1",
55
+ "eslint": "^9.21.0",
62
56
  "eslint-config-standard": "^17.1.0",
63
57
  "eslint-plugin-import": "^2.31.0",
64
- "eslint-plugin-n": "^17.12.0",
65
- "eslint-plugin-promise": "^7.1.0",
66
- "eslint-plugin-vue": "^9.30.0",
58
+ "eslint-plugin-n": "^17.15.1",
59
+ "eslint-plugin-promise": "^7.2.1",
60
+ "eslint-plugin-vue": "^9.32.0",
67
61
  "font-awesome": "^4.7.0",
68
- "globals": "^15.12.0",
69
- "gsap": "^3.12.5",
62
+ "globals": "^16.0.0",
63
+ "gsap": "^3.12.7",
70
64
  "ionicons": "^4.6.3",
71
65
  "material-design-icons": "^3.0.1",
72
- "postcss": "^8.4.47",
66
+ "postcss": "^8.5.3",
73
67
  "pug": "^3.0.3",
74
- "rollup-plugin-delete": "^2.1.0",
75
- "sass": "^1.80.6",
76
- "simple-syntax-highlighter": "^3.0.10",
77
- "splitpanes": "^3.1.5",
78
- "typescript": "^5.6.3",
79
- "typescript-eslint": "^8.12.2",
80
- "vite": "^5.4.10",
68
+ "rollup-plugin-delete": "^3.0.0",
69
+ "sass": "^1.85.1",
70
+ "simple-syntax-highlighter": "^3.1.1",
71
+ "splitpanes": "^3.1.8",
72
+ "typescript": "^5.8.2",
73
+ "typescript-eslint": "^8.25.0",
74
+ "vite": "^6.2.0",
81
75
  "vite-svg-loader": "^5.1.0",
82
- "vue": "^3.5.12",
83
- "vue-router": "^4.4.5",
84
- "vueperslides": "^3.5.1",
76
+ "vue": "^3.5.13",
77
+ "vue-router": "^4.5.0",
78
+ "vueperslides": "^3.6.0",
85
79
  "vuex": "^4.1.0"
86
80
  },
87
81
  "peerDependencies": {
@@ -95,7 +89,7 @@
95
89
  "dev": "vite",
96
90
  "build": "vite build --base /wave-ui/",
97
91
  "build-types": "tsc -p ./tsconfig.json",
98
- "build-bundle": "BUNDLE=true vite build && npm run build-types && mv ./dist/style.css ./dist/wave-ui.css",
92
+ "build-bundle": "BUNDLE=true vite build && npm run build-types",
99
93
  "preview": "vite preview --base /wave-ui/",
100
94
  "lint": "vite lint",
101
95
  "publish-doc": "npm run build && npm run build-bundle && git add . && git commit -m 'Publish documentation on Github.' && git push && git push --tag"
@@ -117,6 +117,8 @@ export default {
117
117
  </script>
118
118
 
119
119
  <style lang="scss">
120
+ @use "sass:math";
121
+
120
122
  .w-accordion__item {position: relative;}
121
123
 
122
124
  button.w-accordion__expand-icon {color: color-mix(in srgb, var(--w-base-color) 40%, transparent);}
@@ -135,7 +137,7 @@ button.w-accordion__expand-icon {color: color-mix(in srgb, var(--w-base-color) 4
135
137
  position: relative;
136
138
  display: flex;
137
139
  align-items: center;
138
- font-size: round(1.2 * $base-font-size);
140
+ font-size: math.round(1.2 * $base-font-size);
139
141
  padding: 1 * $base-increment;
140
142
  user-select: none;
141
143
  cursor: pointer;
@@ -158,6 +160,7 @@ button.w-accordion__expand-icon {color: color-mix(in srgb, var(--w-base-color) 4
158
160
  background-color: currentColor;
159
161
  opacity: 0;
160
162
  transition: $fast-transition-duration;
163
+ pointer-events: none;
161
164
  }
162
165
 
163
166
  &:focus:before, &:hover:before {opacity: 0.03;}
@@ -131,6 +131,8 @@ export default {
131
131
  </script>
132
132
 
133
133
  <style lang="scss">
134
+ @use "sass:math";
135
+
134
136
  .w-alert {
135
137
  position: relative;
136
138
  margin-top: 4 * $base-increment;
@@ -214,8 +216,8 @@ export default {
214
216
  &__dismiss.w-button {
215
217
  align-self: flex-start;
216
218
  margin-left: 2 * $base-increment;
217
- margin-top: round(-0.5 * $base-increment);
218
- margin-right: round(-0.5 * $base-increment);
219
+ margin-top: math.round(-0.5 * $base-increment);
220
+ margin-right: math.round(-0.5 * $base-increment);
219
221
  }
220
222
 
221
223
  & &__icon {
@@ -246,8 +248,8 @@ export default {
246
248
  // ------------------------------------------------------
247
249
  &.size--xs {padding-top: $base-increment;padding-bottom: $base-increment;}
248
250
  &.size--sm {padding-top: $base-increment;padding-bottom: $base-increment;}
249
- &.size--md {padding-top: round(2 * $base-increment);padding-bottom: round(2 * $base-increment);}
250
- &.size--lg {padding-top: round(3 * $base-increment);padding-bottom: round(2.5 * $base-increment);}
251
- &.size--xl {padding-top: round(3 * $base-increment);padding-bottom: round(3 * $base-increment);}
251
+ &.size--md {padding-top: math.round(2 * $base-increment);padding-bottom: math.round(2 * $base-increment);}
252
+ &.size--lg {padding-top: math.round(3 * $base-increment);padding-bottom: math.round(2.5 * $base-increment);}
253
+ &.size--xl {padding-top: math.round(3 * $base-increment);padding-bottom: math.round(3 * $base-increment);}
252
254
  }
253
255
  </style>
@@ -92,6 +92,8 @@ export default {
92
92
  </script>
93
93
 
94
94
  <style lang="scss">
95
+ @use "sass:math";
96
+
95
97
  .w-badge-wrap {
96
98
  position: relative;
97
99
  display: inline-flex;
@@ -105,9 +107,9 @@ export default {
105
107
  user-select: none;
106
108
  border-radius: 99em;
107
109
  // Always get an even number for better text vertical align.
108
- height: round(1.1 * divide($base-font-size, 2)) * 2;
109
- line-height: round(1.1 * divide($base-font-size, 2)) * 2;
110
- min-width: round(1.1 * divide($base-font-size, 2)) * 2;
110
+ height: math.round(1.1 * divide($base-font-size, 2)) * 2;
111
+ line-height: math.round(1.1 * divide($base-font-size, 2)) * 2;
112
+ min-width: math.round(1.1 * divide($base-font-size, 2)) * 2;
111
113
  z-index: 1;
112
114
  padding: 0 $base-increment;
113
115
 
@@ -124,38 +126,38 @@ export default {
124
126
  // Sizes.
125
127
  &.size--xs {
126
128
  // Always get an even number for better text vertical alignment.
127
- $height: round(divide($base-font-size, 2)) * 2;
128
- font-size: round(0.67 * divide($base-font-size, 2)) * 2;
129
+ $height: math.round(divide($base-font-size, 2)) * 2;
130
+ font-size: math.round(0.67 * divide($base-font-size, 2)) * 2;
129
131
  height: $height;
130
132
  line-height: $height;
131
133
  min-width: $height;
132
134
 
133
- &--round {width: $height;padding: 0 round(divide($height, 2));}
135
+ &--round {width: $height;padding: 0 math.round(divide($height, 2));}
134
136
  }
135
137
  &.size--sm {
136
- $height: round(1.1 * divide($base-font-size, 2)) * 2;
137
- font-size: round(0.75 * divide($base-font-size, 2)) * 2;
138
+ $height: math.round(1.1 * divide($base-font-size, 2)) * 2;
139
+ font-size: math.round(0.75 * divide($base-font-size, 2)) * 2;
138
140
  height: $height;
139
141
  line-height: $height;
140
142
  min-width: $height;
141
143
  }
142
144
  &.size--md {
143
- $height: round(1.3 * divide($base-font-size, 2)) * 2;
144
- font-size: round(0.9 * divide($base-font-size, 2)) * 2;
145
+ $height: math.round(1.3 * divide($base-font-size, 2)) * 2;
146
+ font-size: math.round(0.9 * divide($base-font-size, 2)) * 2;
145
147
  height: $height;
146
148
  line-height: $height;
147
149
  min-width: $height;
148
150
  }
149
151
  &.size--lg {
150
- $height: round(1.5 * divide($base-font-size, 2)) * 2;
151
- font-size: round(1.05 * divide($base-font-size, 2)) * 2;
152
+ $height: math.round(1.5 * divide($base-font-size, 2)) * 2;
153
+ font-size: math.round(1.05 * divide($base-font-size, 2)) * 2;
152
154
  height: $height;
153
155
  line-height: $height;
154
156
  min-width: $height;
155
157
  }
156
158
  &.size--xl {
157
- $height: round(1.8 * divide($base-font-size, 2)) * 2;
158
- font-size: round(1.2 * divide($base-font-size, 2)) * 2;
159
+ $height: math.round(1.8 * divide($base-font-size, 2)) * 2;
160
+ font-size: math.round(1.2 * divide($base-font-size, 2)) * 2;
159
161
  height: $height;
160
162
  line-height: $height;
161
163
  min-width: $height;
@@ -171,12 +173,12 @@ export default {
171
173
  &.w-badge--bottom {margin-bottom: -1 * $base-increment;}
172
174
  &.w-badge--left {margin-right: -3 * $base-increment;}
173
175
  &.w-badge--right {margin-left: -3 * $base-increment;}
174
- &.w-badge--top.size--xs {margin-top: round(-0.5 * $base-increment);}
175
- &.w-badge--bottom.size--xs {margin-bottom: round(-0.5 * $base-increment);}
176
- &.w-badge--top.size--sm {margin-top: round(-0.75 * $base-increment);}
177
- &.w-badge--bottom.size--sm {margin-bottom: round(-0.75 * $base-increment);}
178
- &.w-badge--top.size--lg {margin-top: round(-1.5 * $base-increment);}
179
- &.w-badge--bottom.size--lg {margin-bottom: round(-1.5 * $base-increment);}
176
+ &.w-badge--top.size--xs {margin-top: math.round(-0.5 * $base-increment);}
177
+ &.w-badge--bottom.size--xs {margin-bottom: math.round(-0.5 * $base-increment);}
178
+ &.w-badge--top.size--sm {margin-top: math.round(-0.75 * $base-increment);}
179
+ &.w-badge--bottom.size--sm {margin-bottom: math.round(-0.75 * $base-increment);}
180
+ &.w-badge--top.size--lg {margin-top: math.round(-1.5 * $base-increment);}
181
+ &.w-badge--bottom.size--lg {margin-bottom: math.round(-1.5 * $base-increment);}
180
182
  &.w-badge--top.size--xl {margin-top: -2 * $base-increment;}
181
183
  &.w-badge--bottom.size--xl {margin-bottom: -2 * $base-increment;}
182
184
  }
@@ -190,10 +192,10 @@ export default {
190
192
  &--shadow {box-shadow: $box-shadow;}
191
193
 
192
194
  &--dot.w-badge {min-width: 0;padding: 0;aspect-ratio: 1;}
193
- &--dot.size--xs {height: round(1.35 * $base-increment);}
194
- &--dot.size--sm {height: round(1.7 * $base-increment);}
195
- &--dot.size--md {height: round(2.2 * $base-increment);}
196
- &--dot.size--lg {height: round(2.75 * $base-increment);}
195
+ &--dot.size--xs {height: math.round(1.35 * $base-increment);}
196
+ &--dot.size--sm {height: math.round(1.7 * $base-increment);}
197
+ &--dot.size--md {height: math.round(2.2 * $base-increment);}
198
+ &--dot.size--lg {height: math.round(2.75 * $base-increment);}
197
199
  &--dot.size--xl {height: 3 * $base-increment;}
198
200
  }
199
201
  </style>
@@ -85,15 +85,17 @@ export default {
85
85
  </script>
86
86
 
87
87
  <style lang="scss">
88
+ @use "sass:math";
89
+
88
90
  .w-breadcrumbs {
89
91
  display: flex;
90
92
  align-items: center;
91
93
 
92
- &.size--xs {font-size: round(0.8 * $base-font-size);}
93
- &.size--sm {font-size: round(0.9 * $base-font-size);}
94
- &.size--md {font-size: round(1.05 * $base-font-size);}
95
- &.size--lg {font-size: round(1.2 * $base-font-size);}
96
- &.size--xl {font-size: round(1.4 * $base-font-size);}
94
+ &.size--xs {font-size: math.round(0.8 * $base-font-size);}
95
+ &.size--sm {font-size: math.round(0.9 * $base-font-size);}
96
+ &.size--md {font-size: math.round(1.05 * $base-font-size);}
97
+ &.size--lg {font-size: math.round(1.2 * $base-font-size);}
98
+ &.size--xl {font-size: math.round(1.4 * $base-font-size);}
97
99
 
98
100
  &__separator {
99
101
  margin-left: $base-increment;
@@ -145,6 +145,8 @@ export default {
145
145
  </script>
146
146
 
147
147
  <style lang="scss">
148
+ @use "sass:math";
149
+
148
150
  $spinner-size: 40;
149
151
 
150
152
  .w-button {
@@ -226,16 +228,16 @@ $spinner-size: 40;
226
228
  }
227
229
 
228
230
  // Sizes adjustments (always an even number for easier vertical alignments).
229
- &.size--xs {height: round(1.25 * divide($base-font-size, 2)) * 2;}
230
- &.size--sm {height: round(1.55 * divide($base-font-size, 2)) * 2;}
231
- &.size--md {height: round(1.85 * divide($base-font-size, 2)) * 2;}
232
- &.size--lg {height: round(2.2 * divide($base-font-size, 2)) * 2;}
233
- &.size--xl {height: round(2.5 * divide($base-font-size, 2)) * 2;}
231
+ &.size--xs {height: math.round(1.25 * divide($base-font-size, 2)) * 2;}
232
+ &.size--sm {height: math.round(1.55 * divide($base-font-size, 2)) * 2;}
233
+ &.size--md {height: math.round(1.85 * divide($base-font-size, 2)) * 2;}
234
+ &.size--lg {height: math.round(2.2 * divide($base-font-size, 2)) * 2;}
235
+ &.size--xl {height: math.round(2.5 * divide($base-font-size, 2)) * 2;}
234
236
 
235
237
  &.size--xs {padding-left: $base-increment;padding-right: $base-increment;}
236
238
  &.size--xl {padding-left: 3 * $base-increment;padding-right: 3 * $base-increment;}
237
- &--round.size--xs {padding-left: round(1.5 * $base-increment);padding-right: round(1.5 * $base-increment);}
238
- &--round.size--xl {padding-left: round(4.5 * $base-increment);padding-right: round(4.5 * $base-increment);}
239
+ &--round.size--xs {padding-left: math.round(1.5 * $base-increment);padding-right: math.round(1.5 * $base-increment);}
240
+ &--round.size--xl {padding-left: math.round(4.5 * $base-increment);padding-right: math.round(4.5 * $base-increment);}
239
241
  &--icon.size--xs {padding-left: 0;padding-right: 0;}
240
242
  &--icon.size--xl {padding-left: 0;padding-right: 0;}
241
243
 
@@ -98,6 +98,8 @@ export default {
98
98
  </script>
99
99
 
100
100
  <style lang="scss">
101
+ @use "sass:math";
102
+
101
103
  .w-icon {
102
104
  position: relative;
103
105
  display: inline-flex;
@@ -113,18 +115,18 @@ export default {
113
115
  // The aspect ratio will not work if the content overflows (needs overflow hidden, but we don't want that in the library).
114
116
  height: 1em;
115
117
 
116
- &.size--xs {font-size: round(0.85 * $base-font-size);}
117
- &.size--sm {font-size: round(1.15 * $base-font-size);}
118
- &.size--md {font-size: round(1.4 * $base-font-size);}
119
- &.size--lg {font-size: round(1.7 * $base-font-size);}
118
+ &.size--xs {font-size: math.round(0.85 * $base-font-size);}
119
+ &.size--sm {font-size: math.round(1.15 * $base-font-size);}
120
+ &.size--md {font-size: math.round(1.4 * $base-font-size);}
121
+ &.size--lg {font-size: math.round(1.7 * $base-font-size);}
120
122
  &.size--xl {font-size: 2 * $base-font-size;}
121
123
 
122
124
  // Always an even number to align well vertically in a button.
123
- .w-button.size--xs & {font-size: round(0.95 * divide($base-font-size, 2)) * 2;}
125
+ .w-button.size--xs & {font-size: math.round(0.95 * divide($base-font-size, 2)) * 2;}
124
126
  .w-alert.size--xs & {font-size: $base-font-size;}
125
- .w-button.size--sm &, .w-alert.size--sm & {font-size: round(1.15 * $base-font-size);}
126
- // .w-button.size--md &, .w-alert.size--md & {font-size: round(1.4 * $base-font-size);}
127
- .w-button.size--lg &, .w-alert.size--lg & {font-size: round(1.7 * $base-font-size);}
127
+ .w-button.size--sm &, .w-alert.size--sm & {font-size: math.round(1.15 * $base-font-size);}
128
+ // .w-button.size--md &, .w-alert.size--md & {font-size: math.round(1.4 * $base-font-size);}
129
+ .w-button.size--lg &, .w-alert.size--lg & {font-size: math.round(1.7 * $base-font-size);}
128
130
  .w-button.size--xl &, .w-alert.size--xl & {font-size: 2 * $base-font-size;}
129
131
 
130
132
  &:before {transition: transform $transition-duration;}
@@ -375,6 +375,8 @@ export default {
375
375
  </script>
376
376
 
377
377
  <style lang="scss">
378
+ @use "sass:math";
379
+
378
380
  $inactive-color: #777;
379
381
 
380
382
  .w-input {
@@ -602,8 +604,8 @@ $inactive-color: #777;
602
604
  padding-right: 0;
603
605
  }
604
606
  .w-input__input-wrap--round & {
605
- padding-left: round(3 * $base-increment);
606
- padding-right: round(3 * $base-increment);
607
+ padding-left: math.round(3 * $base-increment);
608
+ padding-right: math.round(3 * $base-increment);
607
609
  }
608
610
  .w-input--inner-icon-left & {left: 18px;}
609
611
  .w-input--no-padding.w-input--inner-icon-left & {left: 26px;}
@@ -282,6 +282,8 @@ export default {
282
282
  </script>
283
283
 
284
284
  <style lang="scss">
285
+ @use "sass:math";
286
+
285
287
  .w-menu-wrap {display: none;}
286
288
 
287
289
  .w-menu {
@@ -296,7 +298,7 @@ export default {
296
298
  &--tile {border-radius: 0;}
297
299
  &--round {
298
300
  border-radius: 99em;
299
- padding: $base-increment round(2.5 * $base-increment);
301
+ padding: $base-increment math.round(2.5 * $base-increment);
300
302
  }
301
303
  &--shadow {box-shadow: $box-shadow;}
302
304
 
@@ -163,6 +163,8 @@ export default {
163
163
  </script>
164
164
 
165
165
  <style lang="scss">
166
+ @use "sass:math";
167
+
166
168
  .w-rating {
167
169
  display: inline-flex;
168
170
  align-items: center;
@@ -188,10 +190,10 @@ export default {
188
190
  .w-rating--readonly & {cursor: auto;}
189
191
 
190
192
  // Sizes.
191
- &.size--xs {font-size: round(0.85 * $base-font-size);}
192
- &.size--sm {font-size: round(1.15 * $base-font-size);}
193
- &.size--md {font-size: round(1.4 * $base-font-size);}
194
- &.size--lg {font-size: round(1.7 * $base-font-size);}
193
+ &.size--xs {font-size: math.round(0.85 * $base-font-size);}
194
+ &.size--sm {font-size: math.round(1.15 * $base-font-size);}
195
+ &.size--md {font-size: math.round(1.4 * $base-font-size);}
196
+ &.size--lg {font-size: math.round(1.7 * $base-font-size);}
195
197
  &.size--xl {font-size: 2 * $base-font-size;margin-left: 0;}
196
198
 
197
199
  &:before {font-size: 1.1em;}
@@ -424,6 +424,8 @@ export default {
424
424
  </script>
425
425
 
426
426
  <style lang="scss">
427
+ @use "sass:math";
428
+
427
429
  .w-select {
428
430
  position: relative;
429
431
  display: flex;
@@ -620,7 +622,7 @@ export default {
620
622
  margin-left: 0;
621
623
  }
622
624
  .w-select__selection-wrap--round & {
623
- margin-left: round(3 * $base-increment);
625
+ margin-left: math.round(3 * $base-increment);
624
626
  }
625
627
  .w-select--inner-icon-left & {left: 18px;}
626
628
  .w-select--no-padding.w-select--inner-icon-left & {left: 26px;}
@@ -262,6 +262,8 @@ export default {
262
262
  </script>
263
263
 
264
264
  <style lang="scss">
265
+ @use "sass:math";
266
+
265
267
  .w-slider {
266
268
  position: relative;
267
269
  display: flex;
@@ -430,9 +432,9 @@ export default {
430
432
  position: absolute;
431
433
  left: 50%;
432
434
  bottom: 100%;
433
- margin-bottom: round(3 * $base-increment);
435
+ margin-bottom: math.round(3 * $base-increment);
434
436
  transform: translateX(-50%);
435
- padding: round(0.75 * $base-increment) (2 * $base-increment);
437
+ padding: math.round(0.75 * $base-increment) (2 * $base-increment);
436
438
  background-color: $slider-thumb-label-bg-color;
437
439
  border-radius: $border-radius;
438
440
  border: $border;
@@ -55,6 +55,8 @@ export default {
55
55
  </script>
56
56
 
57
57
  <style lang="scss">
58
+ @use "sass:math";
59
+
58
60
  .w-spinner {
59
61
  position: relative;
60
62
  display: inline-flex;
@@ -64,10 +66,10 @@ export default {
64
66
  aspect-ratio: 1;
65
67
  min-width: 0; // Safari ratio fix (e.g. losing ratio if height is set and side padding are added).
66
68
 
67
- &.size--xs {font-size: round(0.9 * divide($base-font-size, 2)) * 2;}
68
- &.size--sm {font-size: round(1.5 * $base-font-size);}
69
- &.size--md {font-size: round(2 * $base-font-size);}
70
- &.size--lg {font-size: round(2.5 * $base-font-size);}
69
+ &.size--xs {font-size: math.round(0.9 * divide($base-font-size, 2)) * 2;}
70
+ &.size--sm {font-size: math.round(1.5 * $base-font-size);}
71
+ &.size--md {font-size: math.round(2 * $base-font-size);}
72
+ &.size--lg {font-size: math.round(2.5 * $base-font-size);}
71
73
  &.size--xl {font-size: 3 * $base-font-size;}
72
74
 
73
75
  &:before, &:after {
@@ -154,6 +154,8 @@ export default {
154
154
  </script>
155
155
 
156
156
  <style lang="scss">
157
+ @use "sass:math";
158
+
157
159
  $outline-width: 2px;
158
160
 
159
161
  .w-switch {
@@ -207,7 +209,7 @@ $outline-width: 2px;
207
209
  box-sizing: border-box;
208
210
  border: none;
209
211
  width: 2 * $small-form-el-size;
210
- height: round(0.7 * $small-form-el-size);
212
+ height: math.round(0.7 * $small-form-el-size);
211
213
  }
212
214
  .w-switch--thin :checked ~ & {background-color: $switch-inactive-color;}
213
215
 
@@ -248,7 +250,7 @@ $outline-width: 2px;
248
250
  .w-switch--on & {left: 100%;transform: translateX(-100%);}
249
251
 
250
252
  .w-switch--thin & {
251
- top: - round(0.15 * $small-form-el-size);
253
+ top: - math.round(0.15 * $small-form-el-size);
252
254
  transform: scale(1.1);
253
255
  box-shadow: $box-shadow;
254
256
  }
@@ -278,7 +280,7 @@ $outline-width: 2px;
278
280
  :checked ~ & {transform: translateX(-100%) scale(0);left: 100%;}
279
281
 
280
282
  .w-switch[class^="bdrs"] &, .w-switch[class*=" bdrs"] & {border-radius: inherit;}
281
- .w-switch--thin & {top: - round(0.15 * $small-form-el-size);}
283
+ .w-switch--thin & {top: - math.round(0.15 * $small-form-el-size);}
282
284
  }
283
285
 
284
286
  &--ripple &__input:before {
@@ -722,6 +722,8 @@ export default {
722
722
  </script>
723
723
 
724
724
  <style lang="scss">
725
+ @use "sass:math";
726
+
725
727
  $tr-border-top: 1px;
726
728
 
727
729
  .w-table {
@@ -882,7 +884,7 @@ $tr-border-top: 1px;
882
884
  pointer-events: none;
883
885
  }
884
886
 
885
- &__cell {padding: round(divide($base-increment, 2)) $base-increment;}
887
+ &__cell {padding: math.round(divide($base-increment, 2)) $base-increment;}
886
888
  &__header:first-child, &__cell:first-child {padding-left: 2 * $base-increment;}
887
889
  &__header:last-child, &__cell:last-child {padding-right: 2 * $base-increment;}
888
890
 
@@ -348,6 +348,8 @@ export default {
348
348
  </script>
349
349
 
350
350
  <style lang="scss">
351
+ @use "sass:math";
352
+
351
353
  .w-tabs {
352
354
  z-index: 1;
353
355
  border-radius: $border-radius;
@@ -386,7 +388,7 @@ export default {
386
388
  align-items: center;
387
389
  padding: (2 * $base-increment) (3 * $base-increment);
388
390
  justify-content: center;
389
- font-size: round(1.2 * $base-font-size);
391
+ font-size: math.round(1.2 * $base-font-size);
390
392
  transition: $transition-duration ease-in-out, flex-grow 0s, flex 0s; // `flex` for Safari.
391
393
  user-select: none;
392
394
  cursor: pointer;
@@ -79,6 +79,8 @@ export default {
79
79
  </script>
80
80
 
81
81
  <style lang="scss">
82
+ @use "sass:math";
83
+
82
84
  .w-tag {
83
85
  position: relative;
84
86
  display: inline-flex;
@@ -103,37 +105,37 @@ export default {
103
105
  &--shadow {box-shadow: $box-shadow;}
104
106
 
105
107
  &.size--xs {
106
- $font-size: round(0.7 * $base-font-size);
108
+ $font-size: math.round(0.7 * $base-font-size);
107
109
  font-size: $font-size;
108
110
  line-height: $font-size + 2px;
109
- padding: round(0.25 * $base-increment) $base-increment;
111
+ padding: math.round(0.25 * $base-increment) $base-increment;
110
112
  }
111
113
  &.size--sm {
112
- $font-size: round(0.82 * $base-font-size);
114
+ $font-size: math.round(0.82 * $base-font-size);
113
115
  font-size: $font-size;
114
116
  line-height: $font-size + 2px;
115
- padding: round(0.25 * $base-increment) $base-increment;
117
+ padding: math.round(0.25 * $base-increment) $base-increment;
116
118
  }
117
119
  &.size--md {
118
- $font-size: round(0.85 * $base-font-size);
120
+ $font-size: math.round(0.85 * $base-font-size);
119
121
  font-size: $font-size;
120
122
  line-height: $font-size + 4px;
121
- padding-top: round(0.25 * $base-increment);
122
- padding-bottom: round(0.25 * $base-increment);
123
+ padding-top: math.round(0.25 * $base-increment);
124
+ padding-bottom: math.round(0.25 * $base-increment);
123
125
  }
124
126
  &.size--lg {
125
- $font-size: round(1.1 * $base-font-size);
127
+ $font-size: math.round(1.1 * $base-font-size);
126
128
  font-size: $font-size;
127
129
  line-height: $font-size + 4px;
128
- padding-top: round(0.5 * $base-increment);
129
- padding-bottom: round(0.5 * $base-increment);
130
+ padding-top: math.round(0.5 * $base-increment);
131
+ padding-bottom: math.round(0.5 * $base-increment);
130
132
  }
131
133
  &.size--xl {
132
- $font-size: round(1.3 * $base-font-size);
134
+ $font-size: math.round(1.3 * $base-font-size);
133
135
  font-size: $font-size;
134
136
  line-height: $font-size + 4px;
135
- padding-top: round(1 * $base-increment);
136
- padding-bottom: round(1 * $base-increment);
137
+ padding-top: math.round(1 * $base-increment);
138
+ padding-bottom: math.round(1 * $base-increment);
137
139
  }
138
140
 
139
141
  &--clickable {
@@ -215,12 +215,14 @@ export default {
215
215
  </script>
216
216
 
217
217
  <style lang="scss">
218
+ @use "sass:math";
219
+
218
220
  .w-tooltip {
219
221
  // Fix Safari where `width: max-content` does not take padding and border into consideration.
220
222
  display: table;
221
223
 
222
224
  position: absolute;
223
- padding: $base-increment round(1.5 * $base-increment);
225
+ padding: $base-increment math.round(1.5 * $base-increment);
224
226
  border-radius: $border-radius;
225
227
  border: 1px solid $tooltip-border-color;
226
228
  background-color: $tooltip-bg-color;
@@ -238,7 +240,7 @@ export default {
238
240
  &--tile {border-radius: 0;}
239
241
  &--round {
240
242
  border-radius: 99em;
241
- padding: $base-increment round(2.5 * $base-increment);
243
+ padding: $base-increment math.round(2.5 * $base-increment);
242
244
  }
243
245
  &--shadow {box-shadow: $box-shadow;}
244
246
  &--no-border {border: none;}
@@ -131,7 +131,7 @@ export default class WaveUI {
131
131
  else $waveui.switchTheme(config.theme, true)
132
132
 
133
133
  injectCSSInDOM($waveui)
134
- injectNotifManagerInDOM(wApp, components, $waveui)
134
+ injectNotifManagerInDOM(app)
135
135
 
136
136
  // This mixin must only run once, we can delete it.
137
137
  app._context.mixins.find(mixin => mixin.mounted && delete mixin.mounted)