wave-ui 3.17.4 → 3.18.1
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/plugin.d.ts +1 -1
- package/dist/wave-ui.cjs.js +1 -1
- package/dist/wave-ui.css +1 -1
- package/dist/wave-ui.es.js +4 -4
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +31 -27
- package/src/wave-ui/components/w-accordion/item.vue +5 -2
- package/src/wave-ui/components/w-alert.vue +8 -6
- package/src/wave-ui/components/w-autocomplete.vue +4 -4
- package/src/wave-ui/components/w-badge.vue +26 -24
- package/src/wave-ui/components/w-breadcrumbs.vue +7 -5
- package/src/wave-ui/components/w-button/button.vue +9 -7
- package/src/wave-ui/components/w-checkbox.vue +2 -2
- package/src/wave-ui/components/w-icon.vue +10 -8
- package/src/wave-ui/components/w-input.vue +4 -2
- package/src/wave-ui/components/w-menu.vue +4 -2
- package/src/wave-ui/components/w-rating.vue +6 -4
- package/src/wave-ui/components/w-select.vue +3 -1
- package/src/wave-ui/components/w-slider.vue +4 -2
- package/src/wave-ui/components/w-spinner.vue +6 -4
- package/src/wave-ui/components/w-switch.vue +5 -3
- package/src/wave-ui/components/w-table.vue +8 -6
- package/src/wave-ui/components/w-tabs/index.vue +3 -1
- package/src/wave-ui/components/w-tag.vue +22 -20
- package/src/wave-ui/components/w-tooltip.vue +5 -3
- package/src/wave-ui/scss/_base.scss +22 -14
- package/src/wave-ui/scss/_colors.scss +12 -9
- package/src/wave-ui/scss/_layout.scss +19 -16
- package/src/wave-ui/scss/_transitions.scss +2 -0
- package/src/wave-ui/scss/_typography.scss +9 -6
- package/src/wave-ui/scss/index.scss +6 -18
- package/src/wave-ui/scss/variables/_index.scss +2 -0
- package/src/wave-ui/scss/{_mixins.scss → variables/_mixins.scss} +13 -12
- package/src/wave-ui/scss/{_variables.scss → variables/_variables.scss} +33 -38
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wave-ui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.18.1",
|
|
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",
|
|
@@ -43,49 +43,53 @@
|
|
|
43
43
|
"ui"
|
|
44
44
|
],
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@eslint/js": "^9.
|
|
47
|
-
"@faker-js/faker": "^
|
|
46
|
+
"@eslint/js": "^9.21.0",
|
|
47
|
+
"@faker-js/faker": "^9.5.1",
|
|
48
48
|
"@mdi/font": "^7.4.47",
|
|
49
|
-
"@tsconfig/recommended": "^1.0.
|
|
50
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
51
|
-
"@typescript-eslint/parser": "^8.
|
|
52
|
-
"@vitejs/plugin-vue": "^5.1
|
|
49
|
+
"@tsconfig/recommended": "^1.0.8",
|
|
50
|
+
"@typescript-eslint/eslint-plugin": "^8.25.0",
|
|
51
|
+
"@typescript-eslint/parser": "^8.25.0",
|
|
52
|
+
"@vitejs/plugin-vue": "^5.2.1",
|
|
53
53
|
"autoprefixer": "^10.4.20",
|
|
54
|
-
"axios": "^1.
|
|
55
|
-
"eslint": "^9.
|
|
54
|
+
"axios": "^1.8.1",
|
|
55
|
+
"eslint": "^9.21.0",
|
|
56
56
|
"eslint-config-standard": "^17.1.0",
|
|
57
|
-
"eslint-plugin-import": "^2.
|
|
58
|
-
"eslint-plugin-n": "^17.
|
|
59
|
-
"eslint-plugin-promise": "^7.1
|
|
60
|
-
"eslint-plugin-vue": "^9.
|
|
57
|
+
"eslint-plugin-import": "^2.31.0",
|
|
58
|
+
"eslint-plugin-n": "^17.15.1",
|
|
59
|
+
"eslint-plugin-promise": "^7.2.1",
|
|
60
|
+
"eslint-plugin-vue": "^9.32.0",
|
|
61
61
|
"font-awesome": "^4.7.0",
|
|
62
|
-
"globals": "^
|
|
63
|
-
"gsap": "^3.12.
|
|
62
|
+
"globals": "^16.0.0",
|
|
63
|
+
"gsap": "^3.12.7",
|
|
64
64
|
"ionicons": "^4.6.3",
|
|
65
65
|
"material-design-icons": "^3.0.1",
|
|
66
|
-
"postcss": "^8.
|
|
66
|
+
"postcss": "^8.5.3",
|
|
67
67
|
"pug": "^3.0.3",
|
|
68
|
-
"rollup-plugin-delete": "^
|
|
69
|
-
"sass": "^1.
|
|
70
|
-
"simple-syntax-highlighter": "^3.
|
|
71
|
-
"splitpanes": "^3.1.
|
|
72
|
-
"typescript": "^5.
|
|
73
|
-
"typescript-eslint": "^8.
|
|
74
|
-
"vite": "^
|
|
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",
|
|
75
75
|
"vite-svg-loader": "^5.1.0",
|
|
76
|
-
"vue": "^3.5.
|
|
77
|
-
"vue-router": "^4.
|
|
78
|
-
"vueperslides": "^3.
|
|
76
|
+
"vue": "^3.5.13",
|
|
77
|
+
"vue-router": "^4.5.0",
|
|
78
|
+
"vueperslides": "^3.6.0",
|
|
79
79
|
"vuex": "^4.1.0"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
82
|
"vue": "^3.2.0"
|
|
83
83
|
},
|
|
84
|
+
"engines": {
|
|
85
|
+
"node": ">=16.0.0",
|
|
86
|
+
"pnpm": ">=8.0.0"
|
|
87
|
+
},
|
|
84
88
|
"scripts": {
|
|
85
89
|
"dev": "vite",
|
|
86
90
|
"build": "vite build --base /wave-ui/",
|
|
87
91
|
"build-types": "tsc -p ./tsconfig.json",
|
|
88
|
-
"build-bundle": "BUNDLE=true vite build && npm run build-types
|
|
92
|
+
"build-bundle": "BUNDLE=true vite build && npm run build-types",
|
|
89
93
|
"preview": "vite preview --base /wave-ui/",
|
|
90
94
|
"lint": "vite lint",
|
|
91
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,9 +117,11 @@ 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
|
-
button.w-accordion__expand-icon {color:
|
|
124
|
+
button.w-accordion__expand-icon {color: color-mix(in srgb, var(--w-base-color) 40%, transparent);}
|
|
123
125
|
.w-accordion__expand-icon {
|
|
124
126
|
margin-right: $base-increment;
|
|
125
127
|
|
|
@@ -135,7 +137,7 @@ button.w-accordion__expand-icon {color: rgba(var(--w-base-color-rgb), 0.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: rgba(var(--w-base-color-rgb), 0.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 {
|
|
@@ -235,7 +237,7 @@ export default {
|
|
|
235
237
|
left: 1px;
|
|
236
238
|
z-index: 1;
|
|
237
239
|
transform: translateX(-50%);
|
|
238
|
-
border: 1px solid
|
|
240
|
+
border: 1px solid color-mix(in srgb, var(--w-base-bg-color) 70%, transparent);
|
|
239
241
|
background-color: $base-bg-color;
|
|
240
242
|
}
|
|
241
243
|
&--icon-outside &__icon:before {transform: scale(1.05);}
|
|
@@ -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>
|
|
@@ -343,8 +343,8 @@ export default {
|
|
|
343
343
|
&__selection {
|
|
344
344
|
display: flex;
|
|
345
345
|
align-items: center;
|
|
346
|
-
background:
|
|
347
|
-
border: 1px solid
|
|
346
|
+
background: color-mix(in srgb, var(--w-contrast-bg-color) 3.5%, transparent);
|
|
347
|
+
border: 1px solid color-mix(in srgb, var(--w-contrast-bg-color) 5%, transparent);
|
|
348
348
|
border-radius: $border-radius;
|
|
349
349
|
padding: 0 2px 0 4px;
|
|
350
350
|
flex-shrink: 0;
|
|
@@ -363,7 +363,7 @@ export default {
|
|
|
363
363
|
}
|
|
364
364
|
|
|
365
365
|
&__placeholder {
|
|
366
|
-
color:
|
|
366
|
+
color: color-mix(in srgb, var(--w-base-color) 50%, transparent);
|
|
367
367
|
pointer-events: none;
|
|
368
368
|
line-height: 18px;
|
|
369
369
|
}
|
|
@@ -375,7 +375,7 @@ export default {
|
|
|
375
375
|
margin-top: -1px;
|
|
376
376
|
margin-left: 0;
|
|
377
377
|
background-color: $base-bg-color;
|
|
378
|
-
border: 1px solid
|
|
378
|
+
border: 1px solid color-mix(in srgb, var(--w-contrast-bg-color) 20%, transparent);
|
|
379
379
|
border-top: none;
|
|
380
380
|
border-bottom-left-radius: $border-radius;
|
|
381
381
|
border-bottom-right-radius: $border-radius;
|
|
@@ -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
|
|
|
@@ -201,7 +201,7 @@ $inactive-color: #666;
|
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
.w-checkbox--indeterminate & {opacity: 0;}
|
|
204
|
-
.w-checkbox--disabled & {stroke:
|
|
204
|
+
.w-checkbox--disabled & {stroke: color-mix(in srgb, var(--w-contrast-color) 40%, transparent);}
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
&__input:after {
|
|
@@ -230,7 +230,7 @@ $inactive-color: #666;
|
|
|
230
230
|
.w-checkbox--disabled :checked ~ & {
|
|
231
231
|
border-color: $disabled-color;
|
|
232
232
|
// Prevents a tiny hole while animating and in some browser zoom levels.
|
|
233
|
-
background-color:
|
|
233
|
+
background-color: color-mix(in srgb, var(--w-contrast-color) 40%, transparent);
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
|
|
@@ -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;}
|
|
@@ -175,7 +175,7 @@ export default {
|
|
|
175
175
|
left: (this.detachableCoords.left && `${~~this.detachableCoords.left}px`) || null,
|
|
176
176
|
minWidth: (this.minWidth && this.menuMinWidth) || null,
|
|
177
177
|
maxWidth: (this.maxWidth && this.menuMaxWidth) || null,
|
|
178
|
-
'--w-menu-bg-color': this.arrow && (this.$waveui.colors[this.bgColor] || '
|
|
178
|
+
'--w-menu-bg-color': this.arrow && (this.$waveui.colors[this.bgColor] || 'var(--w-base-bg-color)')
|
|
179
179
|
}
|
|
180
180
|
},
|
|
181
181
|
|
|
@@ -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 {
|
|
@@ -758,7 +760,7 @@ $tr-border-top: 1px;
|
|
|
758
760
|
// Table columns.
|
|
759
761
|
// ------------------------------------------------------
|
|
760
762
|
&__col--highlighted {
|
|
761
|
-
background-color:
|
|
763
|
+
background-color: color-mix(in srgb, var(--w-contrast-bg-color) 4%, transparent);
|
|
762
764
|
}
|
|
763
765
|
|
|
764
766
|
// Table headers.
|
|
@@ -804,7 +806,7 @@ $tr-border-top: 1px;
|
|
|
804
806
|
// Sorting arrow.
|
|
805
807
|
&__header--sortable {cursor: pointer;}
|
|
806
808
|
&__header-sort {
|
|
807
|
-
color:
|
|
809
|
+
color: color-mix(in srgb, var(--w-base-color) 8%, transparent);
|
|
808
810
|
vertical-align: text-bottom;
|
|
809
811
|
@include default-transition;
|
|
810
812
|
|
|
@@ -867,7 +869,7 @@ $tr-border-top: 1px;
|
|
|
867
869
|
tbody {transition: opacity $transition-duration;}
|
|
868
870
|
&--loading-in-header tbody {opacity: 0.6;}
|
|
869
871
|
|
|
870
|
-
tbody tr {border-top: $tr-border-top solid
|
|
872
|
+
tbody tr {border-top: $tr-border-top solid color-mix(in srgb, var(--w-base-color) 6%, transparent);}
|
|
871
873
|
// Don't apply built-in bg color if a bg color is already found on a tr.
|
|
872
874
|
tbody tr:nth-child(odd):not(.no-data):not([class*="--bg"]) {background-color: $table-tr-odd-color;}
|
|
873
875
|
tbody .w-table__row:hover:not(.no-data):not([class*="--bg"]) {background-color: $table-tr-hover-color;}
|
|
@@ -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
|
|
|
@@ -970,8 +972,8 @@ $tr-border-top: 1px;
|
|
|
970
972
|
aspect-ratio: 1;
|
|
971
973
|
min-width: 0; // Safari ratio fix (e.g. losing ratio if height is set and side padding are added).
|
|
972
974
|
overflow: hidden;
|
|
973
|
-
color:
|
|
974
|
-
background-color:
|
|
975
|
+
color: color-mix(in srgb, var(--w-base-color) 65%, transparent);
|
|
976
|
+
background-color: color-mix(in srgb, var(--w-base-bg-color) 40%, transparent);
|
|
975
977
|
|
|
976
978
|
&:hover:before {
|
|
977
979
|
background-color: $primary;
|
|
@@ -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;
|