wave-ui 3.14.1 → 3.14.3

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.14.1",
3
+ "version": "3.14.3",
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,15 +42,6 @@
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
- "serve": "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
46
  "@eslint/js": "^9.8.0",
56
47
  "@faker-js/faker": "^8.4.1",
@@ -77,7 +68,7 @@
77
68
  "pug": "^3.0.3",
78
69
  "rollup-plugin-delete": "^2.0.0",
79
70
  "sass": "^1.77.6",
80
- "simple-syntax-highlighter": "^3.0.3",
71
+ "simple-syntax-highlighter": "^3.0.5",
81
72
  "splitpanes": "^3.1.5",
82
73
  "typescript": "^5.5.2",
83
74
  "typescript-eslint": "^8.0.0",
@@ -90,5 +81,14 @@
90
81
  },
91
82
  "peerDependencies": {
92
83
  "vue": "^3.2.0"
84
+ },
85
+ "scripts": {
86
+ "dev": "vite",
87
+ "build": "vite build --base /wave-ui/",
88
+ "build-types": "tsc -p ./tsconfig.json",
89
+ "build-bundle": "BUNDLE=true vite build && npm run build-types && mv ./dist/style.css ./dist/wave-ui.css",
90
+ "serve": "vite preview --base /wave-ui/",
91
+ "lint": "vite lint",
92
+ "publish-doc": "npm run build && npm run build-bundle && git add . && git commit -m 'Publish documentation on Github.' && git push && git push --tag"
93
93
  }
94
- }
94
+ }
@@ -116,7 +116,6 @@ export default {
116
116
  attrs () {
117
117
  // Remove class and style which are meant to stay on the wrapper.
118
118
  // Note: in Vue 3 $attrs may contain both HTML attributes AND JS events (onClick, onFocus, etc.).
119
- // eslint-disable-next-line no-unused-vars
120
119
  const { class: classes, style, ...attrs } = this.$attrs
121
120
  return attrs
122
121
  },
@@ -67,7 +67,7 @@ export default {
67
67
  .w-toolbar {
68
68
  position: relative;
69
69
  display: flex;
70
- flex: 0 1 auto; // No grow, so it doesn't stretch vertically in flex column.
70
+ flex: 1 1 auto;
71
71
  align-items: center;
72
72
  padding: (2 * $base-increment) (3 * $base-increment);
73
73
  background-color: $toolbar-bg-color;
@@ -94,6 +94,7 @@ export default {
94
94
  &--vertical {
95
95
  padding: (2 * $base-increment);
96
96
  flex-direction: column;
97
+ flex-grow: 0;
97
98
  flex-shrink: 0;
98
99
  }
99
100
 
@@ -14,6 +14,8 @@
14
14
  .fill-width {width: 100%;}
15
15
  .fill-height {height: 100%;}
16
16
  .basis-zero {flex-basis: 0;}
17
+ .wrap {flex-wrap: wrap;}
18
+ .no-wrap {flex-wrap: nowrap;}
17
19
 
18
20
  .align-start {align-items: flex-start;}
19
21
  .align-center {align-items: center;}
@@ -14,7 +14,7 @@ $theme-light: (
14
14
  base-color-rgb: (0, 0, 0), // #000.
15
15
  contrast-bg-color-rgb: (0, 0, 0), // #000.
16
16
  contrast-color-rgb: (255, 255, 255), // #fff.
17
- caption-color-rgb: (80, 80, 80, 0.7), // #505050.
17
+ caption-color-rgb: (160, 160, 160), // #a0a0a0.
18
18
  disabled-color-rgb: (204, 204, 204), // #ccc.
19
19
  ) !default;
20
20
 
@@ -23,7 +23,7 @@ $theme-dark: (
23
23
  base-color-rgb: (255, 255, 255), // #fff.
24
24
  contrast-bg-color-rgb: (255, 255, 255), // #fff.
25
25
  contrast-color-rgb: (0, 0, 0), // #000.
26
- caption-color-rgb: (175, 175, 175, 0.7), // #afafaf.
26
+ caption-color-rgb: (110, 110, 110), // #6e6e6e.
27
27
  disabled-color-rgb: (74, 74, 74), // #4a4a4a.
28
28
  ) !default;
29
29
 
@@ -116,7 +116,7 @@ $slider-step-label-color: rgba(var(--w-base-color-rgb), 0.5) !default;
116
116
  // w-switch.
117
117
  // --------------------------------------------------------
118
118
  $switch-inactive-color: rgba(var(--w-contrast-bg-color-rgb), 0.25) !default;
119
- $switch-thumb-color: #fff !default;
119
+ $switch-thumb-color: $base-bg-color !default;
120
120
  // --------------------------------------------------------
121
121
 
122
122
  // w-table.
@@ -15,10 +15,11 @@ export const generateColorShades = config => {
15
15
  for (const label in themeOfColors) {
16
16
  if (label === 'shades') continue // Skip if item is the `shades` container.
17
17
 
18
- // Account for string colors and the fine tuned shaded colors
18
+ // Account for string colors and the fine tuned shaded colors.
19
19
  const colorInfo = themeOfColors[label]
20
- const color = { label, color: (themeOfColors[label]?.color ?? themeOfColors[label]).replace('#', '') }
20
+ const color = { label, color: (themeOfColors[label]?.color ?? themeOfColors[label])?.replace?.('#', '') }
21
21
  const col = color.color
22
+ if (!col) continue // Don't break if a color is only set for one of the themes.
22
23
  if (col.length === 3) color.color = col[0] + '' + col[0] + col[1] + col[1] + col[2] + col[2]
23
24
 
24
25
  for (let i = 1; i <= 6; i++) {
@@ -167,6 +167,8 @@ const genBreakpointLayoutClasses = breakpoints => {
167
167
  'no-grow{flex-grow:0}',
168
168
  'shrink{flex-shrink:1;margin-left:auto;margin-right:auto}',
169
169
  'no-shrink{flex-shrink:0}',
170
+ 'wrap{flex-wrap: wrap}',
171
+ 'no-wrap{flex-wrap: nowrap}',
170
172
  'fill-width{width:100%}',
171
173
  'fill-height{height:100%}',
172
174
  'basis-zero{flex-basis:0}',