wave-ui 3.16.0 → 3.16.2

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.16.0",
3
+ "version": "3.16.2",
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,6 +42,15 @@
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
+ },
45
54
  "devDependencies": {
46
55
  "@eslint/js": "^9.10.0",
47
56
  "@faker-js/faker": "^8.4.1",
@@ -80,14 +89,5 @@
80
89
  },
81
90
  "peerDependencies": {
82
91
  "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"
92
92
  }
93
- }
93
+ }
@@ -111,10 +111,10 @@ export default {
111
111
  'w-alert--tile': this.tile,
112
112
  'w-alert--round': this.round,
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
118
  'w-alert--border': this.border && !this.hasSingleBorder,
119
119
  'w-alert--shadow': this.shadow,
120
120
  'w-alert--bold': this.bold
@@ -28,6 +28,8 @@ w-overlay.w-dialog(
28
28
  </template>
29
29
 
30
30
  <script>
31
+ import { objectifyClasses } from '../utils/index'
32
+
31
33
  export default {
32
34
  name: 'w-dialog',
33
35
 
@@ -40,9 +42,9 @@ export default {
40
42
  tile: { type: Boolean },
41
43
  title: { type: String },
42
44
  transition: { type: String, default: 'fade' }, // @todo: validator.
43
- titleClass: { type: String },
44
- contentClass: { type: String },
45
- dialogClass: { type: String },
45
+ titleClass: { type: [String, Object, Array] },
46
+ contentClass: { type: [String, Object, Array] },
47
+ dialogClass: { type: [String, Object, Array] },
46
48
  overlayColor: { type: String },
47
49
  color: { type: String },
48
50
  bgColor: { type: String },
@@ -69,9 +71,21 @@ export default {
69
71
  },
70
72
 
71
73
  computed: {
74
+ titleClasses () {
75
+ return objectifyClasses(this.titleClass)
76
+ },
77
+
78
+ contentClasses () {
79
+ return objectifyClasses(this.contentClass)
80
+ },
81
+
82
+ dialogClasses () {
83
+ return objectifyClasses(this.dialogClass)
84
+ },
85
+
72
86
  maxWidth () {
73
87
  let width = this.width
74
- if (width && parseInt(width) == width) width += 'px'
88
+ if (width && parseInt(width) === +width) width += 'px'
75
89
  return width
76
90
  },
77
91
  classes () {