@awes-io/ui 2.73.1 → 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.
Files changed (32) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/assets/css/components/alert.css +14 -38
  3. package/assets/css/components/button-fixed.css +3 -4
  4. package/assets/css/components/button-nav.css +13 -34
  5. package/assets/css/components/button.css +22 -20
  6. package/assets/css/components/context-menu.css +22 -0
  7. package/assets/css/components/layout-menu.css +2 -2
  8. package/assets/css/components/layout.css +2 -4
  9. package/assets/css/components/mobile-menu-item-new.css +1 -1
  10. package/assets/css/components/mobile-menu-item.css +0 -1
  11. package/assets/css/components/mobile-menu-nav.css +7 -6
  12. package/assets/css/components/mobile-menu.css +24 -7
  13. package/assets/css/components/modal.css +5 -1
  14. package/assets/css/components/nav.css +9 -3
  15. package/assets/css/components/search.css +1 -0
  16. package/assets/css/components/table.css +4 -0
  17. package/assets/js/icons/mono.js +1 -1
  18. package/assets/js/styles.js +63 -67
  19. package/components/2_molecules/AwAlert.vue +6 -2
  20. package/components/2_molecules/AwBadge.vue +1 -1
  21. package/components/3_organisms/AwContextMenu.vue +1 -0
  22. package/components/3_organisms/AwSearch.vue +2 -1
  23. package/components/3_organisms/AwTable/AwTableBuilder.vue +2 -2
  24. package/components/4_pages/AwPageMenuButtons.vue +0 -1
  25. package/components/5_layouts/AwLayoutProvider.vue +1 -1
  26. package/components/5_layouts/_AwMenuItemIcon.vue +1 -1
  27. package/components/5_layouts/_AwMobileMenu.vue +33 -26
  28. package/components/5_layouts/_AwMobileMenuItem.vue +2 -2
  29. package/components/5_layouts/_AwMobileMenuItemNew.vue +2 -2
  30. package/components/5_layouts/_AwUserMenu.vue +25 -2
  31. package/docs/aw-badge.md +1 -1
  32. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -3,6 +3,36 @@
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
+
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)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * fix style in component ([3b2dbb4](https://github.com/awes-io/client/commit/3b2dbb485ccbeab0aa96941e2f7f53ccb4e7ddaa))
23
+ * some fix style in menu and form components ([e64a877](https://github.com/awes-io/client/commit/e64a877ce0e4d8803a7c8b1edb59dac53bcf5aed))
24
+
25
+
26
+ ### Features
27
+
28
+ * add check external link in user profile ([95e1f52](https://github.com/awes-io/client/commit/95e1f5253097847b06fbdcab808ea0e53a9513c3))
29
+ * change border radius in button nav ([9bb4252](https://github.com/awes-io/client/commit/9bb4252bdf7d4f1dc8744f025aa74f3ed3f8f89d))
30
+ * change search icon ([70553be](https://github.com/awes-io/client/commit/70553be865e11e8ddd7a9461cbffef5f129aed5d))
31
+
32
+
33
+
34
+
35
+
6
36
  ## [2.73.1](https://github.com/awes-io/client/compare/@awes-io/ui@2.73.0...@awes-io/ui@2.73.1) (2023-10-06)
7
37
 
8
38
 
@@ -1,16 +1,10 @@
1
1
  .aw-alert {
2
- display: grid;
3
-
4
- padding: theme('spacing.4', 1rem);
2
+ padding: 1rem 1.5rem;
5
3
  border-radius: 0.625rem;
6
- border: 1px solid var(--aw-alert-border);
7
4
  background: var(--aw-alert-bg);
8
5
 
9
6
  &__icon {
10
- padding-right: theme('spacing.4', 1rem);
11
- font-size: 1.5em;
12
- line-height: 0.75em;
13
- align-self: start;
7
+ margin-right: 0.625rem;
14
8
  }
15
9
 
16
10
  .aw-description {
@@ -24,22 +18,20 @@
24
18
  &__title {
25
19
  display: flex;
26
20
  margin: 0;
21
+
22
+ &-text {
23
+ margin-top: 0.125rem;
24
+ }
27
25
  }
28
26
 
29
27
  &__buttons {
30
28
  display: flex;
31
- flex-wrap: wrap;
32
- justify-content: flex-end;
33
29
 
34
- justify-self: start;
35
30
  align-items: center;
36
- margin-left: 3rem;
37
- margin-bottom: 1rem;
31
+ margin-left: 2.125rem;
32
+ margin-top: 0.5rem;
38
33
 
39
- & > * {
40
- margin-top: theme('spacing.4', 1rem);
41
- margin-left: theme('spacing.4', 1rem);
42
- }
34
+ font-size: 0.875rem;
43
35
 
44
36
  .aw-icon,
45
37
  a {
@@ -60,29 +52,13 @@
60
52
 
61
53
  @screen lg {
62
54
  .aw-alert {
63
- grid-template-columns: 1fr minmax(0, max-content);
64
- grid-template-rows: auto;
65
-
66
- padding: theme('spacing.1', 0.25rem);
67
-
68
- &__title {
69
- align-self: center;
70
-
71
- padding-top: theme('spacing.1', 0.25rem);
72
- padding-bottom: theme('spacing.1', 0.25rem);
73
- padding-left: theme('spacing.4', 1rem);
74
- }
55
+ display: flex;
56
+ justify-content: space-between;
75
57
 
76
58
  &__buttons {
77
- margin-top: calc(-1 * theme('spacing.1', 0.25rem));
78
- margin-right: 1.5rem;
79
- margin-left: 0;
80
- margin-bottom: 0;
81
-
82
- & > * {
83
- margin-top: theme('spacing.1', 0.25rem);
84
- margin-left: theme('spacing.1', 0.25rem);
85
- }
59
+ justify-content: flex-end;
60
+ margin-left: 1rem;
61
+ margin-top: 0;
86
62
  }
87
63
  }
88
64
  }
@@ -7,10 +7,9 @@
7
7
  min-height: 3.5rem;
8
8
  /* border-radius: 1rem; */
9
9
 
10
- font-size: 0.75rem;
11
- font-weight: bold;
12
- letter-spacing: 0.09375rem;
13
- text-transform: uppercase;
10
+ font-size: 0.875rem;
11
+ line-height: 1rem;
12
+ font-weight: 500;
14
13
 
15
14
  background-color: rgba(var(--btn-bg), var(--btn-bg-opacity, 1));
16
15
  color: rgba(var(--btn-fg), 1);
@@ -3,7 +3,7 @@
3
3
  font-size: theme('fontSize.sm');
4
4
  @apply bg-mono-900;
5
5
  border: none;
6
- border-radius: 1rem;
6
+ border-radius: 0.625rem;
7
7
 
8
8
  /* & .aw-slider__scroller {
9
9
  padding: theme('spacing.1') 0;
@@ -22,27 +22,26 @@
22
22
  }
23
23
 
24
24
  &__toggler {
25
- @apply font-bold tracking-widest;
26
-
27
25
  position: relative;
28
26
  flex-shrink: 0;
29
27
  padding: 0;
30
28
  min-width: theme('spacing.8');
31
29
  white-space: nowrap;
32
30
 
33
- font-size: 0.625rem;
34
- line-height: 1.6;
31
+ font-size: 1rem;
32
+ line-height: 1rem;
33
+ font-weight: 400;
35
34
  border-radius: 0;
36
35
  border-top: 2px solid var(--c-mono-800);
37
36
  border-bottom: 2px solid var(--c-mono-800);
38
37
 
39
38
  &:first-child {
40
- border-radius: 1rem 0 0 1rem;
39
+ border-radius: 0.625rem 0 0 0.625rem;
41
40
  border-left: 2px solid var(--c-mono-800);
42
41
  }
43
42
 
44
43
  &:last-child {
45
- border-radius: 0 1rem 1rem 0;
44
+ border-radius: 0 0.625rem 0.625rem 0;
46
45
  border-right: 2px solid var(--c-mono-800);
47
46
  }
48
47
 
@@ -53,40 +52,19 @@
53
52
  }
54
53
 
55
54
  &__toggler > span {
56
- @apply uppercase;
57
-
58
- padding: theme('spacing.1') 1rem;
55
+ padding: 1.125rem 1.25rem;
59
56
  width: 100%;
60
- border-radius: calc(1rem - 2px);
57
+ border-radius: 0.5rem;
61
58
  min-height: 2.75rem;
62
59
  }
63
60
 
64
- &__toggler > span:before {
65
- @apply bg-mono-700 hidden;
66
- content: '';
67
- position: absolute;
68
- left: 0;
69
- top: theme('spacing.1');
70
- bottom: theme('spacing.1');
71
- width: 1px;
72
- display: block;
73
- }
74
-
75
- &__toggler:first-child > span:before {
76
- content: none;
77
- }
78
-
79
61
  &__toggler:focus, &__toggler > span:focus {
80
62
  outline: none;
81
63
  }
82
64
 
83
- &__toggler:focus > span {
84
- outline: theme('focusOutline', 'none');
85
- }
86
-
87
65
  &__toggler_active > span {
88
66
  @apply bg-surface;
89
- border-radius: theme('borderRadius.default');
67
+ border-radius: 0.5rem;
90
68
  box-shadow: theme('boxShadow.default');
91
69
  }
92
70
 
@@ -139,7 +117,7 @@
139
117
  border: 4px solid var(--c-mono-800);
140
118
 
141
119
  & > span {
142
- border-radius: calc(1rem - 4px);
120
+ border-radius: 0.5rem;
143
121
  min-height: 2.5rem;
144
122
  }
145
123
  }
@@ -176,7 +154,8 @@
176
154
 
177
155
  & > span {
178
156
  min-height: 2.25rem;
179
- border-radius: calc(0.625rem - 2px);
157
+ border-radius: 0.5rem;
158
+ padding: 0.875rem 1.25rem;
180
159
  }
181
160
  }
182
161
 
@@ -185,7 +164,7 @@
185
164
  border: 2px solid var(--c-mono-800);
186
165
 
187
166
  & > span {
188
- border-radius: calc(0.625rem - 2px);
167
+ border-radius: 0.5rem;
189
168
  min-height: 2.25rem;
190
169
  }
191
170
  }
@@ -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
  }
@@ -19,4 +19,26 @@
19
19
  }
20
20
  }
21
21
  }
22
+
23
+ .aw-button {
24
+ .aw-button__text {
25
+ display: none;
26
+ }
27
+ }
28
+ }
29
+
30
+ @screen lg {
31
+ .aw-context-menu {
32
+ &--text {
33
+ .aw-icon {
34
+ margin-right: 0.5rem;
35
+ }
36
+ }
37
+
38
+ .aw-button {
39
+ .aw-button__text {
40
+ display: flex;
41
+ }
42
+ }
43
+ }
22
44
  }
@@ -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 {
@@ -26,6 +26,7 @@
26
26
  &__text {
27
27
  font-size: 1rem;
28
28
  line-height: 1.5rem;
29
+ margin-right: 1rem;
29
30
  }
30
31
 
31
32
  &__description {
@@ -40,6 +41,5 @@
40
41
  &__arrow {
41
42
  margin-left: auto;
42
43
  flex: none;
43
- color: var(--c-on-surface);
44
44
  }
45
45
  }
@@ -40,7 +40,6 @@
40
40
  }
41
41
 
42
42
  &__arrow {
43
- color: var(--c-on-surface);
44
43
  flex: none;
45
44
  }
46
45
  }
@@ -3,10 +3,11 @@
3
3
 
4
4
  h3, h4 {
5
5
  color: var(--c-mono-400);
6
- font-size: inherit;
7
- text-transform: uppercase;
8
- padding: 0.625rem 1.875rem 0;
9
- margin-bottom: 0.5rem;
6
+ font-size: 0.875rem;
7
+ line-height: 1rem;
8
+ font-weight: bold;
9
+ padding: 0 1.5rem;
10
+ margin-bottom: 1rem;
10
11
  }
11
12
 
12
13
  ol, ul {
@@ -28,8 +29,8 @@
28
29
 
29
30
  position: absolute;
30
31
  top: 0;
31
- left: 1.875rem;
32
- right: 1.875rem;
32
+ left: 1.5rem;
33
+ right: 1.5rem;
33
34
  }
34
35
  }
35
36
 
@@ -38,7 +38,8 @@
38
38
  }
39
39
 
40
40
  &__submenu-title {
41
- margin: 0 0 0 0.9375rem;
41
+ margin: 1rem 0 1.5rem;
42
+ padding: 0 1.5rem;
42
43
  }
43
44
 
44
45
  &__user {
@@ -61,13 +62,12 @@
61
62
 
62
63
  position: absolute;
63
64
  bottom: 0;
64
- left: 1.875rem;
65
- right: 1.875rem;
65
+ left: 1.5rem;
66
+ right: 1.5rem;
66
67
  }
67
68
 
68
69
  .aw-avatar {
69
70
  --ui-avatar-size: 2.5rem !important;
70
- --ui-avatar-font-size: 1.875rem !important;
71
71
  }
72
72
 
73
73
  &-name {
@@ -77,6 +77,11 @@
77
77
  font-weight: 400;
78
78
  }
79
79
 
80
+ &-desc {
81
+ font-size: 0.875rem;
82
+ line-height: 1rem;
83
+ }
84
+
80
85
  &-link {
81
86
  color: inherit;
82
87
  grid-column: 3;
@@ -119,6 +124,12 @@
119
124
 
120
125
  &-switcher {
121
126
  margin-left: auto;
127
+ padding-top: 0;
128
+ padding-bottom: 0;
129
+
130
+ .aw-switch-field__switch {
131
+ margin: 0.1875rem;
132
+ }
122
133
  }
123
134
  }
124
135
 
@@ -156,7 +167,7 @@
156
167
  }
157
168
 
158
169
  &__menu {
159
- margin-bottom: 1.25rem;
170
+ margin-bottom: 1.5rem;
160
171
  }
161
172
 
162
173
  &--root &__menu h3 {
@@ -178,7 +189,13 @@
178
189
 
179
190
  &__back.aw-button,
180
191
  &__close.aw-button {
181
- width: 3rem;
182
- height: 3rem;
192
+ display: flex;
193
+ align-items: center;
194
+ justify-content: center;
195
+ border-radius: 0.625rem;
196
+
197
+ .aw-button__overlay {
198
+ border-radius: 0.625rem;
199
+ }
183
200
  }
184
201
  }
@@ -82,7 +82,11 @@ $modal-aside-width-large: 75vw;
82
82
  }
83
83
 
84
84
  &__title {
85
- @apply m-0 pr-6 text-left text-xl leading-tight font-heading font-medium truncate;
85
+ @apply m-0 pr-6 text-left leading-tight font-heading truncate;
86
+
87
+ font-size: 1.25rem;
88
+ line-height: 1.5rem;
89
+ font-weight: 700;
86
90
  }
87
91
 
88
92
  &__subtitle {
@@ -18,20 +18,26 @@
18
18
 
19
19
  &__toggler {
20
20
  @apply p-1;
21
- margin-left: -1.75rem;
21
+ margin-left: auto;
22
+ margin-right: 1.25rem;
22
23
 
23
24
  svg {
24
- transform: rotate(-180deg);
25
+ @apply text-mono-400;
26
+
27
+ transform: rotate(180deg);
25
28
  transition: 240ms transform;
26
29
  }
27
30
 
28
31
  &--open svg {
29
- transform: rotate(-90deg);
32
+ @apply text-on-surface;
33
+
34
+ transform: rotate(90deg);
30
35
  }
31
36
  }
32
37
 
33
38
  &__child {
34
39
  max-width: 100%;
40
+ min-width: 0;
35
41
  color: inherit;
36
42
  @apply flex items-center py-2 px-8;
37
43
 
@@ -40,6 +40,7 @@
40
40
  .aw-text-field__element,
41
41
  input {
42
42
  border-radius: 0.625rem;
43
+ height: 2.375rem;
43
44
  }
44
45
  }
45
46
  }
@@ -235,6 +235,10 @@
235
235
  .aw-table__scroller {
236
236
  @apply rounded-t-none;
237
237
  }
238
+
239
+ .aw-table-builder__empty-filter-container, .aw-table-builder__empty-container {
240
+ @apply rounded-t-none;
241
+ }
238
242
  }
239
243
  }
240
244
  }
@@ -15,7 +15,7 @@ export default {
15
15
  'menu-dots':
16
16
  'M5.46 7.13a1.67 1.67 0 1 0 0-3.33 1.67 1.67 0 0 0 0 3.33Zm1.67 7.48a1.67 1.67 0 1 1-3.33 0 1.67 1.67 0 0 1 3.33 0Zm7.49-7.48a1.67 1.67 0 1 0 0-3.33 1.67 1.67 0 0 0 0 3.33Zm1.66 7.48a1.67 1.67 0 1 1-3.33 0 1.67 1.67 0 0 1 3.33 0Z',
17
17
  search:
18
- 'M18.8 17.7l-4.3-4.3a7.6 7.6 0 10-1 1l4.2 4.4c.3.3.8.3 1 0 .4-.3.4-.8 0-1zm-10.2-3a6 6 0 110-12.2 6 6 0 010 12.2z',
18
+ 'M8.3 2.3A6 6 0 0 1 13 12l4.1 4.1a.6.6 0 0 1 0 .9.6.6 0 0 1-.8 0l-4.2-4a6 6 0 0 1-7.9-.4A6 6 0 0 1 8.3 2.3Zm0 1.2a4.8 4.8 0 1 0 0 9.6 4.8 4.8 0 0 0 0-9.6Z',
19
19
  eye:
20
20
  'M10 3.33C4 3.33.2 9.47.13 9.6A.67.67 0 000 10c.01.12.06.24.13.33 0 0 3.2 6.34 9.87 6.34 6.67 0 9.87-6.2 9.87-6.27a.67.67 0 000-.8c-.07-.13-3.94-6.27-9.87-6.27zm0 2a4.67 4.67 0 110 9.34 4.67 4.67 0 010-9.34zM10 8a2 2 0 100 4 2 2 0 000-4z',
21
21
  'eye-no':
@@ -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
  }
@@ -13,13 +13,17 @@
13
13
  :style="{
14
14
  color: iconColor ? `var(--c-${iconColor})` : null
15
15
  }"
16
+ size="24"
16
17
  />
17
18
  </slot>
18
19
  </span>
19
- <slot name="title">{{ title }}</slot>
20
+
21
+ <span class="aw-alert__title-text">
22
+ <slot name="title">{{ title }}</slot>
23
+ </span>
20
24
  </AwDescription>
21
25
 
22
- <div class="aw-alert__buttons">
26
+ <div v-if="$scopedSlots.default" class="aw-alert__buttons">
23
27
  <slot />
24
28
  </div>
25
29
  </div>
@@ -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
@@ -80,6 +80,7 @@ export default {
80
80
  text: this.text
81
81
  },
82
82
  staticClass: this.buttonClass,
83
+ class: { 'aw-context-menu--text': this.text },
83
84
  attrs: {
84
85
  'data-arrow-focus': ''
85
86
  },
@@ -14,7 +14,8 @@
14
14
  <AwIconSystemMono
15
15
  v-if="!$route.query[param]"
16
16
  name="search"
17
- class="aw-search__icon-default h-full w-10 p-3"
17
+ class="aw-search__icon-default mr-4"
18
+ size="24"
18
19
  />
19
20
  <button
20
21
  v-else
@@ -13,7 +13,7 @@
13
13
  <slot v-if="!isWatchParamsPresent" name="empty-container">
14
14
  <!-- Block with icon, headline and slot for button. -->
15
15
  <AwCard
16
- class="flex items-center justify-center min-h-full mb-5"
16
+ class="aw-table-builder__empty-container flex items-center justify-center min-h-full mb-5"
17
17
  :class="`h-${defaultHeight}`"
18
18
  >
19
19
  <div class="text-center">
@@ -46,7 +46,7 @@
46
46
  <slot v-if="isWatchParamsPresent" name="empty-filter-container">
47
47
  <!-- Block with icon, headline and slot for button. -->
48
48
  <AwCard
49
- class="flex items-center justify-center min-h-full mb-5"
49
+ class="aw-table-builder__empty-filter-container flex items-center justify-center min-h-full mb-5"
50
50
  :class="`h-${defaultHeight}`"
51
51
  >
52
52
  <div class="text-center">
@@ -4,7 +4,6 @@
4
4
  <AwContextMenu
5
5
  v-if="splitButtons.dropdown.length"
6
6
  class="aw-page-menu-buttons__aw-context-menu"
7
- vertical
8
7
  :options="$options.dropdownOptions"
9
8
  :text="$t('More')"
10
9
  >
@@ -229,7 +229,7 @@ export default {
229
229
 
230
230
  return acc.concat({
231
231
  ...pick(
232
- 'icon,iconBg,iconActive,class,expanded,target,rel,listeners,abstract,key,badge,back,isDivide,arrow',
232
+ 'icon,iconBg,iconActive,class,expanded,target,rel,listeners,abstract,key,badge,back,isDivide,arrow,hideText',
233
233
  props
234
234
  ),
235
235
  text,
@@ -19,7 +19,7 @@
19
19
  class="aw-icon-menu-item__icon"
20
20
  />
21
21
 
22
- <span class="aw-icon-menu-item__text">
22
+ <span v-if="!hideText" class="aw-icon-menu-item__text">
23
23
  {{ text }}
24
24
  </span>
25
25
 
@@ -10,31 +10,26 @@
10
10
  @click="_closeOnLinkClick"
11
11
  >
12
12
  <div class="aw-mobile-menu__header">
13
- <template v-if="submenuOpened">
14
- <!-- back button -->
15
- <AwButton
16
- theme="ghost"
17
- color="default"
18
- class="aw-mobile-menu__back w-10 h-10 flex-shrink-0"
19
- content-class="p-2"
20
- @click="submenuOpened = false"
21
- >
22
- <template #icon>
23
- <AwIconSystemMono name="arrow" size="16" />
24
- </template>
25
- <span class="sr-only">
26
- {{ $t('Back') }}
27
- </span>
28
- </AwButton>
29
-
30
- <!-- subtitle -->
31
- <AwHeadline
32
- v-if="submenuTitle"
33
- class="aw-mobile-menu__submenu-title truncate pr-2"
34
- >
35
- {{ submenuTitle }}
36
- </AwHeadline>
37
- </template>
13
+ <!-- back button -->
14
+ <AwButton
15
+ v-if="submenuOpened"
16
+ theme="ghost"
17
+ color="default"
18
+ class="aw-mobile-menu__back w-10 h-10 flex-shrink-0"
19
+ content-class="p-2"
20
+ @click="submenuOpened = false"
21
+ >
22
+ <template #icon>
23
+ <AwIconSystemMono
24
+ name="arrow"
25
+ size="16"
26
+ class="text-mono-400"
27
+ />
28
+ </template>
29
+ <span class="sr-only">
30
+ {{ $t('Back') }}
31
+ </span>
32
+ </AwButton>
38
33
 
39
34
  <!-- close button -->
40
35
  <AwButton
@@ -45,7 +40,11 @@
45
40
  @click="show = false"
46
41
  >
47
42
  <template #icon>
48
- <AwIconSystemMono name="close" size="16" />
43
+ <AwIconSystemMono
44
+ name="close"
45
+ size="16"
46
+ class="text-mono-400"
47
+ />
49
48
  </template>
50
49
  <span class="sr-only">
51
50
  {{ $t('Close') }}
@@ -61,6 +60,14 @@
61
60
  />
62
61
  </slot>
63
62
 
63
+ <!-- subtitle -->
64
+ <AwHeadline
65
+ v-if="submenuOpened && submenuTitle"
66
+ class="aw-mobile-menu__submenu-title truncate"
67
+ >
68
+ {{ submenuTitle }}
69
+ </AwHeadline>
70
+
64
71
  <!-- top level menu -->
65
72
  <AwMobileMenuNav
66
73
  v-show="!submenuOpened"
@@ -35,14 +35,14 @@
35
35
  v-if="_linkExternal"
36
36
  name="external"
37
37
  size="24"
38
- class="aw-mobile-menu-item__arrow"
38
+ class="aw-mobile-menu-item__arrow text-on-surface"
39
39
  />
40
40
 
41
41
  <AwIconSystemMono
42
42
  v-else-if="arrow"
43
43
  name="angle"
44
44
  rotate="180"
45
- class="aw-mobile-menu-item__arrow"
45
+ class="aw-mobile-menu-item__arrow text-mono-400"
46
46
  />
47
47
  </slot>
48
48
  </Component>
@@ -41,14 +41,14 @@
41
41
  <AwIconSystemMono
42
42
  v-if="_linkExternal"
43
43
  name="external"
44
- class="aw-mobile-menu-item-new__arrow"
44
+ class="aw-mobile-menu-item-new__arrow text-on-surface"
45
45
  />
46
46
 
47
47
  <AwIconSystemMono
48
48
  v-else-if="arrow"
49
49
  name="angle"
50
50
  rotate="180"
51
- class="aw-mobile-menu-item-new__arrow"
51
+ class="aw-mobile-menu-item-new__arrow text-mono-400"
52
52
  />
53
53
  </slot>
54
54
  </Component>
@@ -29,8 +29,8 @@
29
29
  }"
30
30
  >
31
31
  <Component
32
- :is="profileUrl ? 'NLink' : 'div'"
33
- :to="profileUrl || null"
32
+ :is="profileUrlAttr.is"
33
+ v-bind="profileUrlAttr"
34
34
  class="aw-user-menu__header"
35
35
  >
36
36
  <AwUserpic v-bind="user" big-image />
@@ -102,6 +102,7 @@
102
102
  import { mapGetters } from 'vuex'
103
103
  import { pathOr, viewOr, lensProp, omit, isEmpty, isNil, isType } from 'rambdax'
104
104
  import AwNavItem from '@AwLayouts/_AwNavItem.vue'
105
+ import { LINK_REGEX } from '@AwConfig'
105
106
 
106
107
  export default {
107
108
  name: 'AwUserMenu',
@@ -155,6 +156,28 @@ export default {
155
156
  return isType('Function', profileUrl)
156
157
  ? profileUrl(this.$store.state, this.$store.getters)
157
158
  : profileUrl
159
+ },
160
+
161
+ isExternalProfileUrl() {
162
+ return (
163
+ typeof this.profileUrl === 'string' &&
164
+ this.profileUrl &&
165
+ LINK_REGEX.test(this.profileUrl)
166
+ )
167
+ },
168
+
169
+ profileUrlAttr() {
170
+ if (this.isExternalProfileUrl) {
171
+ return {
172
+ href: this.profileUrl,
173
+ is: 'a'
174
+ }
175
+ } else {
176
+ return {
177
+ to: this.profileUrl || null,
178
+ is: this.profileUrl ? 'NLink' : 'div'
179
+ }
180
+ }
158
181
  }
159
182
  },
160
183
 
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.73.1",
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": "17d9d4b22c0424d7a3155d9eb8fa2d83206afd85"
115
+ "gitHead": "3cf0338e986c43e59e3ed03b1b4e1440a931ffa6"
116
116
  }