@awes-io/ui 2.74.0 → 2.74.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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.74.1](https://github.com/awes-io/client/compare/@awes-io/ui@2.74.0...@awes-io/ui@2.74.1) (2023-10-11)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * dark colors tuned ([cfbbe41](https://github.com/awes-io/client/commit/cfbbe41edcb1fdfd91a78cbdca645f451cceb38f))
12
+
13
+
14
+
15
+
16
+
6
17
  # [2.74.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.73.1...@awes-io/ui@2.74.0) (2023-10-10)
7
18
 
8
19
 
@@ -155,8 +155,8 @@
155
155
  }
156
156
 
157
157
  &.theme-circle .aw-button__content {
158
- width: 3.5rem;
159
- height: 3.5rem;
158
+ width: 3.5rem;
159
+ height: 3.5rem;
160
160
  }
161
161
 
162
162
  /* Mobile hidden text */
@@ -269,6 +269,7 @@
269
269
 
270
270
  &:hover {
271
271
  background: var(--c-mono-700);
272
+ color: var(--c-on-mono-700);
272
273
  }
273
274
 
274
275
  .aw-button__overlay {
@@ -300,15 +301,14 @@
300
301
  }
301
302
 
302
303
  /* Outline */
303
- &.theme-outline.color-mono:not(:disabled):hover,
304
- &.theme-outline.color-mono.is-loading:disabled {
305
- @apply border-mono-600;
304
+ &.theme-outline.color-default:not(:disabled) .aw-button__overlay {
305
+ @apply border-surface text-surface;
306
306
  }
307
307
 
308
- &.theme-outline.color-mono:not(:disabled):hover > &__content,
308
+ /* &.theme-outline.color-mono:not(:disabled):hover > &__content,
309
309
  &.theme-outline.color-mono.is-loading:disabled {
310
310
  @apply text-on-mono-600;
311
- }
311
+ } */
312
312
  }
313
313
 
314
314
  /**
@@ -323,11 +323,11 @@
323
323
  }
324
324
 
325
325
  &.add-tag-button {
326
- font-size: 10px;
327
- min-width: 20px;
328
- min-height: 20px;
329
- border-radius: 5px;
330
- line-height: 16px;
326
+ font-size: 10px;
327
+ min-width: 20px;
328
+ min-height: 20px;
329
+ border-radius: 5px;
330
+ line-height: 16px;
331
331
 
332
332
  .aw-button__content {
333
333
  @apply px-0;
@@ -382,12 +382,12 @@
382
382
  border-color: var(--c-mono-400);
383
383
 
384
384
  &:disabled {
385
- border-color: var(--c-mono-800);
385
+ border-color: var(--c-mono-800);
386
386
  }
387
387
  }
388
388
 
389
389
  &:not(:disabled):hover {
390
- border-color: var(--c-mono-400);
390
+ border-color: var(--c-mono-400);
391
391
  }
392
392
 
393
393
  .aw-button__content {
@@ -466,7 +466,7 @@
466
466
  }
467
467
 
468
468
  &.theme-circle,
469
- &.theme-circle > &__overlay {
469
+ &.theme-circle > &__overlay {
470
470
  border-radius: 50%;
471
471
  }
472
472
  }
@@ -505,16 +505,18 @@
505
505
  }
506
506
  }
507
507
 
508
- :root[data-dark="true"] {
508
+ :root[data-dark='true'] {
509
509
  .aw-button {
510
+ &.theme-ghost.color-default .aw-button__overlay {
511
+ display: none;
512
+ }
513
+
510
514
  &.theme-ghost.color-default {
511
- background: var(--c-mono-800);
512
515
  box-shadow: 0 0 0 1px rgba(var(--c-on-surface-rgb), 0.1) inset;
513
- color: var(--c-on-mono-800);
514
516
 
515
- &:hover {
517
+ /* &:hover {
516
518
  background: var(--c-mono-200);
517
- }
519
+ } */
518
520
  }
519
521
  }
520
522
  }
@@ -18,7 +18,7 @@
18
18
 
19
19
  &__menu,
20
20
  &__secondary-menu {
21
- --icon-color: var(--c-on-brand);
21
+ --icon-color: var(--c-on-surface);
22
22
  --icon-color-active: var(--c-accent);
23
23
  display: flex;
24
24
  flex-direction: column;
@@ -55,7 +55,7 @@
55
55
  @apply bg-surface;
56
56
  width: 230px;
57
57
  max-height: 100vh;
58
- border-left: 1px solid var(--c-mono-900);
58
+ border-left: 2px solid var(--c-mono-900);
59
59
 
60
60
  grid-column: 2;
61
61
  grid-row: 1 / 6;
@@ -94,7 +94,7 @@
94
94
  }
95
95
 
96
96
  &__header {
97
- @apply flex items-center bg-surface top-0 z-20 bg-brand py-3 order-first;
97
+ @apply flex items-center top-0 z-20 bg-surface py-3 order-first;
98
98
  min-height: theme('spacing.16');
99
99
  transition: 200ms box-shadow;
100
100
  }
@@ -150,9 +150,7 @@
150
150
  }
151
151
 
152
152
  @screen lg {
153
-
154
153
  .layout {
155
-
156
154
  &&--default,
157
155
  &&--simple {
158
156
  @apply flex min-h-screen;
@@ -186,7 +184,7 @@
186
184
  }
187
185
 
188
186
  &&--simple &__header {
189
- @apply bg-brand;
187
+ @apply bg-surface;
190
188
  }
191
189
 
192
190
  &&--frame-left &__frame {
@@ -1,8 +1,48 @@
1
+ export const CUSTOM_COLORS = {
2
+ red: '#fa0000',
3
+ peach: '#ff6f41',
4
+ yellow: '#ffa800',
5
+ magenta: '#f4056c',
6
+ purple: '#8338ec',
7
+ 'light-blue': '#0ab7fa',
8
+ blue: '#2d67ff',
9
+ green: '#2bb611',
10
+ lime: '#a4bf00',
11
+ grey: '#565656',
12
+ 'light-grey': '#8b9aab'
13
+ }
14
+
15
+ export const CUSTOM_COLORS_BG_LIGHT = {
16
+ red: '#fed9d9',
17
+ peach: '#ffe9e3',
18
+ yellow: '#fff2d9',
19
+ magenta: '#fddae9',
20
+ purple: '#ece1fc',
21
+ 'light-blue': '#daf4fe',
22
+ blue: '#e0e8ff',
23
+ green: '#ddefd9',
24
+ lime: '#f1f5d9',
25
+ grey: '#eceded',
26
+ 'light-grey': '#ecf0f5'
27
+ }
28
+
29
+ export const CUSTOM_COLORS_BG_DARK = {
30
+ red: '#431c1c',
31
+ peach: '#33160d',
32
+ yellow: '#3a2e17',
33
+ magenta: '#310116',
34
+ purple: '#271147',
35
+ 'light-blue': '#022532',
36
+ blue: '#202b49',
37
+ green: '#24331b',
38
+ lime: '#212600',
39
+ grey: '#060709',
40
+ 'light-grey': '#2c2e34'
41
+ }
42
+
1
43
  export default {
2
44
  default: {
3
45
  colors: {
4
- brand: '#ffffff',
5
- 'brand-tuned': '#ffffff',
6
46
  accent: '#56af40',
7
47
  success: '#56af40',
8
48
  info: '#1d6ec5',
@@ -28,21 +68,10 @@ export default {
28
68
  'mono-900': '#f3f5f7',
29
69
  'mono-1000': '#fff',
30
70
 
31
- red: '#fed9d9',
32
- peach: '#ffe9e3',
33
- yellow: '#fff2d9',
34
- magenta: '#fddae9',
35
- purple: '#ece1fc',
36
- 'light-blue': '#daf4fe',
37
- blue: '#e0e8ff',
38
- green: '#ddefd9',
39
- lime: '#f1f5d9',
40
- grey: '#eceded',
41
- 'light-grey': '#ecf0f5'
71
+ ...CUSTOM_COLORS_BG_LIGHT
42
72
  },
43
73
 
44
74
  onColors: {
45
- brand: '#383868',
46
75
  accent: '#fff',
47
76
  success: '#fff',
48
77
  info: '#fff',
@@ -63,28 +92,16 @@ export default {
63
92
  'mono-400': '#fff',
64
93
  'mono-500': '#fff',
65
94
  'mono-600': '#333',
66
- 'mono-700': '#333',
67
- 'mono-800': '#333',
95
+ 'mono-700': '#14171d',
96
+ 'mono-800': '#14171d',
68
97
  'mono-900': '#383868',
69
98
  'mono-1000': '#333',
70
99
 
71
- red: '#fa0000',
72
- peach: '#ff6f41',
73
- yellow: '#ffa800',
74
- magenta: '#f4056c',
75
- purple: '#8338ec',
76
- 'light-blue': '#0ab7fa',
77
- blue: '#2d67ff',
78
- green: '#2bb611',
79
- lime: '#a4bf00',
80
- grey: '#565656',
81
- 'light-grey': '#8b9aab'
100
+ ...CUSTOM_COLORS
82
101
  }
83
102
  },
84
103
  dark: {
85
104
  colors: {
86
- brand: '#1e1e1e',
87
- 'brand-tuned': '#1e1e1e',
88
105
  accent: '#56af40',
89
106
  success: '#56af40',
90
107
  info: '#4a7fe4',
@@ -110,21 +127,10 @@ export default {
110
127
  'mono-900': '#383838',
111
128
  'mono-1000': '#313236',
112
129
 
113
- red: '#431c1c',
114
- peach: '#33160d',
115
- yellow: '#3a2e17',
116
- magenta: '#310116',
117
- purple: '#271147',
118
- 'light-blue': '#022532',
119
- blue: '#202b49',
120
- green: '#24331b',
121
- lime: '#212600',
122
- grey: '#060709',
123
- 'light-grey': '#2c2e34'
130
+ ...CUSTOM_COLORS_BG_DARK
124
131
  },
125
132
 
126
133
  onColors: {
127
- brand: '#fff',
128
134
  accent: '#fff',
129
135
  success: '#fff',
130
136
  info: '#fff',
@@ -132,35 +138,25 @@ export default {
132
138
  warning: '#333',
133
139
  error: '#fff',
134
140
 
135
- surface: '#fff',
136
- 'page-bg': '#fff',
141
+ surface: '#e7eaed',
142
+ 'page-bg': '#e7eaed',
137
143
  overlay: '#fff',
138
144
  link: '#fff',
139
145
 
140
- 'mono-0': '#1e1e1e',
141
- 'mono-50': '#1e1e1e',
142
- 'mono-100': '#1e1e1e',
143
- 'mono-200': '#1e1e1e',
144
- 'mono-300': '#1e1e1e',
145
- 'mono-400': '#1e1e1e',
146
- 'mono-500': '#1e1e1e',
147
- 'mono-600': '#fff',
148
- 'mono-700': '#fff',
149
- 'mono-800': '#fff',
150
- 'mono-900': '#fff',
151
- 'mono-1000': '#fff',
152
-
153
- red: '#fa0000',
154
- peach: '#ff6f41',
155
- yellow: '#ffa800',
156
- magenta: '#f4056c',
157
- purple: '#8338ec',
158
- 'light-blue': '#0ab7fa',
159
- blue: '#2d67ff',
160
- green: '#2bb611',
161
- lime: '#a4bf00',
162
- grey: '#565656',
163
- 'light-grey': '#8b9aab'
146
+ 'mono-0': '#313236',
147
+ 'mono-50': '#313236',
148
+ 'mono-100': '#313236',
149
+ 'mono-200': '#313236',
150
+ 'mono-300': '#313236',
151
+ 'mono-400': '#313236',
152
+ 'mono-500': '#313236',
153
+ 'mono-600': '#313236',
154
+ 'mono-700': '#838587',
155
+ 'mono-800': '#838587',
156
+ 'mono-900': '#e7eaed',
157
+ 'mono-1000': '#e7eaed',
158
+
159
+ ...CUSTOM_COLORS
164
160
  }
165
161
  }
166
162
  }
@@ -54,7 +54,7 @@ export default {
54
54
  // Badge background color
55
55
  color: {
56
56
  type: String,
57
- default: 'brand'
57
+ default: 'page-bg'
58
58
  },
59
59
 
60
60
  // When set to `true`, badge will hide if text is empty or 0
package/docs/aw-badge.md CHANGED
@@ -14,7 +14,7 @@ title: Badge
14
14
  |---|---|---|---|---|
15
15
  |text|Text inside badge|`String` / `Number`|`false`|-|
16
16
  |icon|Icon name inside badge. See AwIcon component for available names|`String`|`false`|-|
17
- |color|Badge background color|`String`|`false`|brand|
17
+ |color|Badge background color|`String`|`false`|page-bg|
18
18
  |hideIfEmpty|When set to `true`, badge will hide if text is empty or 0|`Boolean`|`false`|-|
19
19
 
20
20
  <!-- @vuese:AwBadge:props:end -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awes-io/ui",
3
- "version": "2.74.0",
3
+ "version": "2.74.1",
4
4
  "description": "User Interface (UI) components",
5
5
  "keywords": [
6
6
  "ui",
@@ -112,5 +112,5 @@
112
112
  "rollup-plugin-visualizer": "^2.6.0",
113
113
  "rollup-plugin-vue": "^5.0.1"
114
114
  },
115
- "gitHead": "fb3404c7bd68d6380cb1bf4e5fc357aa7bdc9bfd"
115
+ "gitHead": "3cf0338e986c43e59e3ed03b1b4e1440a931ffa6"
116
116
  }