wave-ui 3.15.0 → 3.16.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/components/WAlert.d.ts +9 -3
- package/dist/wave-ui.cjs.js +1 -1
- package/dist/wave-ui.css +1 -1
- package/dist/wave-ui.es.js +355 -356
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +18 -19
- package/src/wave-ui/components/w-alert.vue +22 -22
- package/src/wave-ui/scss/_layout.scss +5 -5
- package/src/wave-ui/scss/_typography.scss +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wave-ui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.16.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",
|
|
@@ -42,27 +42,17 @@
|
|
|
42
42
|
"vue framework",
|
|
43
43
|
"ui"
|
|
44
44
|
],
|
|
45
|
-
"scripts": {
|
|
46
|
-
"dev": "vite",
|
|
47
|
-
"build": "vite build --base /wave-ui/",
|
|
48
|
-
"build-types": "tsc -p ./tsconfig.json",
|
|
49
|
-
"build-bundle": "BUNDLE=true vite build && npm run build-types && mv ./dist/style.css ./dist/wave-ui.css",
|
|
50
|
-
"preview": "vite preview --base /wave-ui/",
|
|
51
|
-
"lint": "vite lint",
|
|
52
|
-
"publish-doc": "npm run build && npm run build-bundle && git add . && git commit -m 'Publish documentation on Github.' && git push && git push --tag"
|
|
53
|
-
},
|
|
54
45
|
"devDependencies": {
|
|
55
|
-
"@eslint/js": "^9.
|
|
46
|
+
"@eslint/js": "^9.10.0",
|
|
56
47
|
"@faker-js/faker": "^8.4.1",
|
|
57
48
|
"@mdi/font": "^7.4.47",
|
|
58
49
|
"@tsconfig/recommended": "^1.0.7",
|
|
59
50
|
"@typescript-eslint/eslint-plugin": "^8.4.0",
|
|
60
51
|
"@typescript-eslint/parser": "^8.4.0",
|
|
61
52
|
"@vitejs/plugin-vue": "^5.1.3",
|
|
62
|
-
"@vue/compiler-sfc": "3.4.38",
|
|
63
53
|
"autoprefixer": "^10.4.20",
|
|
64
54
|
"axios": "^1.7.7",
|
|
65
|
-
"eslint": "^9.
|
|
55
|
+
"eslint": "^9.10.0",
|
|
66
56
|
"eslint-config-standard": "^17.1.0",
|
|
67
57
|
"eslint-plugin-import": "^2.30.0",
|
|
68
58
|
"eslint-plugin-n": "^17.10.2",
|
|
@@ -73,22 +63,31 @@
|
|
|
73
63
|
"gsap": "^3.12.5",
|
|
74
64
|
"ionicons": "^4.6.3",
|
|
75
65
|
"material-design-icons": "^3.0.1",
|
|
76
|
-
"postcss": "^8.4.
|
|
66
|
+
"postcss": "^8.4.45",
|
|
77
67
|
"pug": "^3.0.3",
|
|
78
68
|
"rollup-plugin-delete": "^2.0.0",
|
|
79
|
-
"sass": "^1.
|
|
80
|
-
"simple-syntax-highlighter": "^3.0.
|
|
69
|
+
"sass": "^1.78.0",
|
|
70
|
+
"simple-syntax-highlighter": "^3.0.10",
|
|
81
71
|
"splitpanes": "^3.1.5",
|
|
82
72
|
"typescript": "^5.5.4",
|
|
83
73
|
"typescript-eslint": "^8.4.0",
|
|
84
|
-
"vite": "^5.4.
|
|
74
|
+
"vite": "^5.4.3",
|
|
85
75
|
"vite-svg-loader": "^5.1.0",
|
|
86
|
-
"vue": "^3.
|
|
76
|
+
"vue": "^3.5.3",
|
|
87
77
|
"vue-router": "^4.4.3",
|
|
88
78
|
"vueperslides": "^3.5.1",
|
|
89
79
|
"vuex": "^4.1.0"
|
|
90
80
|
},
|
|
91
81
|
"peerDependencies": {
|
|
92
82
|
"vue": "^3.2.0"
|
|
83
|
+
},
|
|
84
|
+
"scripts": {
|
|
85
|
+
"dev": "vite",
|
|
86
|
+
"build": "vite build --base /wave-ui/",
|
|
87
|
+
"build-types": "tsc -p ./tsconfig.json",
|
|
88
|
+
"build-bundle": "BUNDLE=true vite build && npm run build-types && mv ./dist/style.css ./dist/wave-ui.css",
|
|
89
|
+
"preview": "vite preview --base /wave-ui/",
|
|
90
|
+
"lint": "vite lint",
|
|
91
|
+
"publish-doc": "npm run build && npm run build-bundle && git add . && git commit -m 'Publish documentation on Github.' && git push && git push --tag"
|
|
93
92
|
}
|
|
94
|
-
}
|
|
93
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
.w-alert(v-if="show" :class="classes")
|
|
3
3
|
//- Add a wrapper around the content when needed.
|
|
4
4
|
template(v-if="type || icon || dismiss")
|
|
5
|
-
w-icon.w-alert__icon
|
|
5
|
+
w-icon.w-alert__icon(v-if="type || icon") {{ type ? typeIcon : icon }}
|
|
6
6
|
.w-alert__content
|
|
7
7
|
slot
|
|
8
8
|
w-button.w-alert__dismiss(
|
|
@@ -31,6 +31,7 @@ export default {
|
|
|
31
31
|
iconOutside: { type: Boolean },
|
|
32
32
|
plain: { type: Boolean },
|
|
33
33
|
dismiss: { type: Boolean },
|
|
34
|
+
bold: { type: Boolean },
|
|
34
35
|
// Types (with icon).
|
|
35
36
|
success: { type: Boolean },
|
|
36
37
|
info: { type: Boolean },
|
|
@@ -43,14 +44,12 @@ export default {
|
|
|
43
44
|
lg: { type: Boolean },
|
|
44
45
|
xl: { type: Boolean },
|
|
45
46
|
// Borders.
|
|
46
|
-
|
|
47
|
+
border: { type: Boolean },
|
|
47
48
|
borderLeft: { type: Boolean },
|
|
48
49
|
borderRight: { type: Boolean },
|
|
49
50
|
borderTop: { type: Boolean },
|
|
50
51
|
borderBottom: { type: Boolean },
|
|
51
|
-
outline: { type: Boolean }
|
|
52
|
-
dark: { type: Boolean },
|
|
53
|
-
light: { type: Boolean }
|
|
52
|
+
outline: { type: Boolean }
|
|
54
53
|
},
|
|
55
54
|
|
|
56
55
|
emits: ['input', 'update:modelValue', 'close'],
|
|
@@ -93,14 +92,16 @@ export default {
|
|
|
93
92
|
},
|
|
94
93
|
|
|
95
94
|
hasSingleBorder () {
|
|
96
|
-
return this.borderLeft || this.borderRight ||
|
|
97
|
-
this.borderTop || this.borderBottom
|
|
95
|
+
return this.borderLeft || this.borderRight || this.borderTop || this.borderBottom
|
|
98
96
|
},
|
|
99
97
|
|
|
100
98
|
classes () {
|
|
99
|
+
const bgColor = this.bgColor || (this.plain && this.type)
|
|
100
|
+
const color = this.color || (!this.plain && this.type) || (!bgColor && 'primary')
|
|
101
|
+
|
|
101
102
|
return {
|
|
102
|
-
[`${
|
|
103
|
-
[
|
|
103
|
+
[`${bgColor}--bg w-alert--bg`]: bgColor,
|
|
104
|
+
[color]: color,
|
|
104
105
|
[`size--${this.presetSize}`]: this.presetSize,
|
|
105
106
|
[`w-alert--${this.type}`]: this.type,
|
|
106
107
|
'w-alert--has-icon': this.type || this.icon || this.dismiss,
|
|
@@ -109,15 +110,14 @@ export default {
|
|
|
109
110
|
'w-alert--outline': this.outline,
|
|
110
111
|
'w-alert--tile': this.tile,
|
|
111
112
|
'w-alert--round': this.round,
|
|
112
|
-
'w-alert--no-border': this.noBorder || (this.plain && this.type),
|
|
113
113
|
'w-alert--one-border': this.hasSingleBorder || this.iconOutside,
|
|
114
|
-
'w-alert--border-left':
|
|
115
|
-
'w-alert--border-right':
|
|
116
|
-
'w-alert--border-top':
|
|
117
|
-
'w-alert--border-bottom':
|
|
114
|
+
'w-alert--border-left': this.borderLeft || this.iconOutside,
|
|
115
|
+
'w-alert--border-right': this.borderRight,
|
|
116
|
+
'w-alert--border-top': this.borderTop,
|
|
117
|
+
'w-alert--border-bottom': this.borderBottom,
|
|
118
|
+
'w-alert--border': this.border && !this.hasSingleBorder,
|
|
118
119
|
'w-alert--shadow': this.shadow,
|
|
119
|
-
'w-alert--
|
|
120
|
-
'w-alert--light': this.light
|
|
120
|
+
'w-alert--bold': this.bold
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
},
|
|
@@ -136,19 +136,19 @@ export default {
|
|
|
136
136
|
margin-top: 4 * $base-increment;
|
|
137
137
|
margin-bottom: 4 * $base-increment;
|
|
138
138
|
padding: 2 * $base-increment;
|
|
139
|
-
font-size:
|
|
140
|
-
font-weight: 700;
|
|
139
|
+
font-size: $base-font-size;
|
|
141
140
|
border-radius: $border-radius;
|
|
142
|
-
border:
|
|
141
|
+
border: 0 solid currentColor;
|
|
143
142
|
|
|
144
143
|
@include themeable;
|
|
145
144
|
|
|
145
|
+
&--bold {font-weight: 700;}
|
|
146
146
|
&--has-icon {
|
|
147
147
|
display: flex;
|
|
148
148
|
align-items: center;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
&--outline {border-
|
|
151
|
+
&--border, &--outline {border-width: 1px;}
|
|
152
152
|
&--tile {border-radius: 0;}
|
|
153
153
|
&--round {
|
|
154
154
|
border-radius: 99em;
|
|
@@ -156,7 +156,7 @@ export default {
|
|
|
156
156
|
padding-right: 3 * $base-increment;
|
|
157
157
|
}
|
|
158
158
|
&--shadow {box-shadow: $box-shadow;}
|
|
159
|
-
&--
|
|
159
|
+
&--one-border, &--plain {border: transparent;}
|
|
160
160
|
|
|
161
161
|
// Before for the border, after for the background color.
|
|
162
162
|
// ------------------------------------------------------
|
|
@@ -224,7 +224,7 @@ export default {
|
|
|
224
224
|
margin-right: 2 * $base-increment;
|
|
225
225
|
font-size: 1.3em;
|
|
226
226
|
}
|
|
227
|
-
&--has-icon &__content {flex-grow: 1;
|
|
227
|
+
&--has-icon &__content {flex-grow: 1;}
|
|
228
228
|
@-moz-document url-prefix() {
|
|
229
229
|
&--has-icon &__content {margin-top: 0.18em;}
|
|
230
230
|
}
|
|
@@ -168,11 +168,11 @@
|
|
|
168
168
|
// In all the sizes below, round(x / 2) * 2 to always have even numbers.
|
|
169
169
|
// Different heights with a mix of odd and even numbers will misalign
|
|
170
170
|
// when vertically centering (vertical-align or align-items center).
|
|
171
|
-
.size--xs {font-size: round(0.
|
|
172
|
-
.size--sm {font-size: round(
|
|
173
|
-
.size--md {font-size: round(1
|
|
174
|
-
.size--lg {font-size: round(1.
|
|
175
|
-
.size--xl {font-size: round(1.
|
|
171
|
+
.size--xs {font-size: round(0.8 * $base-font-size);}
|
|
172
|
+
.size--sm {font-size: round(0.9 * $base-font-size);}
|
|
173
|
+
.size--md {font-size: round(1 * $base-font-size);}
|
|
174
|
+
.size--lg {font-size: round(1.2 * $base-font-size);}
|
|
175
|
+
.size--xl {font-size: round(1.4 * $base-font-size);}
|
|
176
176
|
// ----------------------------------------------
|
|
177
177
|
|
|
178
178
|
// Grid system.
|