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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wave-ui",
3
- "version": "3.15.0",
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.9.1",
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.9.1",
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.44",
66
+ "postcss": "^8.4.45",
77
67
  "pug": "^3.0.3",
78
68
  "rollup-plugin-delete": "^2.0.0",
79
- "sass": "^1.77.8",
80
- "simple-syntax-highlighter": "^3.0.8",
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.2",
74
+ "vite": "^5.4.3",
85
75
  "vite-svg-loader": "^5.1.0",
86
- "vue": "^3.4.38",
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.mr2(v-if="type || icon") {{ type ? typeIcon : 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
- noBorder: { type: Boolean },
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
- [`${this.bgColor || (this.plain && this.type)}--bg w-alert--bg`]: this.bgColor || (this.plain && this.type),
103
- [this.color || (!this.plain && this.type)]: this.color || (!this.plain && this.type),
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': (!this.noBorder && this.borderLeft) || this.iconOutside,
115
- 'w-alert--border-right': !this.noBorder && this.borderRight,
116
- 'w-alert--border-top': !this.noBorder && this.borderTop,
117
- 'w-alert--border-bottom': !this.noBorder && this.borderBottom,
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--dark': this.dark,
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: round(1.1 * $base-font-size);
140
- font-weight: 700;
139
+ font-size: $base-font-size;
141
140
  border-radius: $border-radius;
142
- border: 1px solid currentColor;
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-color: currentColor;}
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
- &--no-border, &--one-border, &--plain {border: transparent;}
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;align-self: flex-start;}
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.85 * $base-font-size);}
172
- .size--sm {font-size: round(1 * $base-font-size);}
173
- .size--md {font-size: round(1.1 * $base-font-size);}
174
- .size--lg {font-size: round(1.4 * $base-font-size);}
175
- .size--xl {font-size: round(1.65 * $base-font-size);}
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.
@@ -2,7 +2,6 @@
2
2
  .headline, .title1 {
3
3
  font-size: round(2.2 * $base-font-size);
4
4
  font-weight: 100;
5
- letter-spacing: 1px;
6
5
  }
7
6
 
8
7
  .title2 {