@awes-io/ui 2.79.0 → 2.81.0
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 +26 -0
- package/assets/css/components/alert.css +4 -0
- package/assets/css/components/avatar.css +1 -1
- package/assets/css/components/button-nav.css +0 -1
- package/assets/css/components/dropdown-button.css +2 -2
- package/assets/css/components/layout.css +3 -3
- package/assets/css/components/switch-field.css +62 -20
- package/assets/css/components/tooltip.css +3 -3
- package/assets/css/components/user-menu.css +5 -0
- package/assets/css/typography.css +2 -2
- package/assets/js/styles.js +21 -19
- package/components/1_atoms/AwDropdownButton.vue +6 -2
- package/components/5_layouts/_AwMenuItemIcon.vue +1 -1
- package/components/5_layouts/_AwUserMenu.vue +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,32 @@
|
|
|
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.81.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.80.0...@awes-io/ui@2.81.0) (2023-11-08)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* change hover state in switch component and links ([0fb0378](https://github.com/awes-io/client/commit/0fb0378f3d905ce6f9ab7989f6d6b191a7b4f247))
|
|
12
|
+
* **aw-user-menu:** add hover state on profile link ([27cb4a8](https://github.com/awes-io/client/commit/27cb4a869d3f397106d395e17c5dc0f1096ef908))
|
|
13
|
+
* change color in icon in dropdown btn ([b1c3b91](https://github.com/awes-io/client/commit/b1c3b91758c2b3b3589fecde8bbdaa008553c6c8))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
# [2.80.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.79.0...@awes-io/ui@2.80.0) (2023-11-07)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* change dark colors ([778849d](https://github.com/awes-io/client/commit/778849d643154a47a587126c09647f9459dcc492))
|
|
25
|
+
* change style for tooltip and menu item ([7d37a3f](https://github.com/awes-io/client/commit/7d37a3f7b98c02b735a0bceb394bb586a5b4ae96))
|
|
26
|
+
* change style in layot, dd btn and button nav ([c00a414](https://github.com/awes-io/client/commit/c00a414cb403de539e2a69b3e01b3449467edec7))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
6
32
|
# [2.79.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.78.0...@awes-io/ui@2.79.0) (2023-11-03)
|
|
7
33
|
|
|
8
34
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
bottom: 0;
|
|
17
17
|
|
|
18
18
|
&.aw-layout-menu--no-submenu {
|
|
19
|
-
max-width:
|
|
19
|
+
max-width: 5rem;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
& ~ * {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
&.aw-layout-menu--no-submenu ~ * {
|
|
28
|
-
max-width: calc(100% -
|
|
29
|
-
margin-left:
|
|
28
|
+
max-width: calc(100% - 5rem);
|
|
29
|
+
margin-left: 5rem;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@apply flex relative py-1;
|
|
3
3
|
|
|
4
4
|
&__element {
|
|
5
|
-
@apply bg-surface border;
|
|
5
|
+
@apply bg-surface border border-mono-800;
|
|
6
6
|
flex-shrink: 0;
|
|
7
7
|
cursor: pointer;
|
|
8
8
|
appearance: none;
|
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
box-shadow: none;
|
|
18
18
|
|
|
19
19
|
&:checked {
|
|
20
|
-
@apply bg-accent;
|
|
21
|
-
border-color: inherit;
|
|
20
|
+
@apply bg-accent border-accent;
|
|
22
21
|
background-size: 100% 100%;
|
|
23
22
|
}
|
|
24
23
|
|
|
@@ -27,6 +26,30 @@
|
|
|
27
26
|
outline: none;
|
|
28
27
|
}
|
|
29
28
|
|
|
29
|
+
&:hover {
|
|
30
|
+
@apply border-mono-600;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&:checked:hover {
|
|
34
|
+
@apply bg-accent-hover border-accent-hover;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:disabled {
|
|
38
|
+
@apply border-mono-800 bg-mono-800;
|
|
39
|
+
|
|
40
|
+
&:hover {
|
|
41
|
+
@apply border-mono-800 bg-mono-800;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.aw-switch-field__label {
|
|
45
|
+
@apply text-mono-400;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&:checked:disabled {
|
|
50
|
+
@apply bg-accent-hover opacity-50 border-accent-hover;
|
|
51
|
+
}
|
|
52
|
+
|
|
30
53
|
/* &:checked:focus {
|
|
31
54
|
border-color: theme('colors.info.700');
|
|
32
55
|
} */
|
|
@@ -44,25 +67,13 @@
|
|
|
44
67
|
background-position: center;
|
|
45
68
|
background-repeat: no-repeat;
|
|
46
69
|
|
|
47
|
-
&:disabled {
|
|
48
|
-
@apply bg-mono-900;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
70
|
&:checked {
|
|
52
71
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' width='20' height='20' fill='none'%3E%3Cpath fill='%23fff' d='m7 13.8-3-3.1a.8.8 0 0 0-1.3 1.1l3.8 3.8a.8.8 0 0 0 1.2 0l9.1-9.2a.8.8 0 0 0-1.1-1.2L7 13.8Z'/%3E%3C/svg%3E");
|
|
53
72
|
}
|
|
54
73
|
|
|
55
|
-
&:checked:disabled {
|
|
56
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' width='20' height='20' fill='none'%3E%3Cpath fill='%23838587' d='m7 13.8-3-3.1a.8.8 0 0 0-1.3 1.1l3.8 3.8a.8.8 0 0 0 1.2 0l9.1-9.2a.8.8 0 0 0-1.1-1.2L7 13.8Z'/%3E%3C/svg%3E");
|
|
57
|
-
}
|
|
58
|
-
|
|
59
74
|
&--partial:checked {
|
|
60
75
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none'%3E%3Cpath fill='%23fff' d='M3.3 10.8h13.4a.8.8 0 0 0 0-1.6H3.3a.8.8 0 1 0 0 1.6Z'/%3E%3C/svg%3E");
|
|
61
76
|
}
|
|
62
|
-
|
|
63
|
-
&--partial:checked:disabled {
|
|
64
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none'%3E%3Cpath fill='%23838587' d='M3.3 10.8h13.4a.8.8 0 0 0 0-1.6H3.3a.8.8 0 1 0 0 1.6Z'/%3E%3C/svg%3E");
|
|
65
|
-
}
|
|
66
77
|
}
|
|
67
78
|
|
|
68
79
|
/**
|
|
@@ -122,6 +133,42 @@
|
|
|
122
133
|
}
|
|
123
134
|
}
|
|
124
135
|
|
|
136
|
+
&.is-switcher:hover &__element ~ &__switch {
|
|
137
|
+
@apply bg-mono-400;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&.is-switcher:hover &__element:checked ~ &__switch {
|
|
141
|
+
@apply bg-accent-hover;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&.is-switcher &__element:disabled ~ &__switch {
|
|
145
|
+
@apply bg-mono-800;
|
|
146
|
+
|
|
147
|
+
.aw-switch-field__switch-circle {
|
|
148
|
+
@apply bg-mono-600;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.aw-switch-field__switch-icon {
|
|
152
|
+
@apply text-mono-600;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
&.is-switcher &__element:checked:disabled ~ &__switch {
|
|
157
|
+
@apply bg-accent-hover bg-opacity-50;
|
|
158
|
+
|
|
159
|
+
.aw-switch-field__switch-circle {
|
|
160
|
+
background-color: var(--c-on-overlay, '#fff');
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.aw-switch-field__switch-icon {
|
|
164
|
+
color: var(--c-white);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
&.is-switcher &__element:disabled ~ &__label {
|
|
169
|
+
@apply text-mono-400;
|
|
170
|
+
}
|
|
171
|
+
|
|
125
172
|
&.is-switcher &__element:focus-visible ~ &__switch {
|
|
126
173
|
outline: theme('focusOutline');
|
|
127
174
|
}
|
|
@@ -263,10 +310,5 @@
|
|
|
263
310
|
&.is-switcher &__element[disabled] ~ &__switch {
|
|
264
311
|
cursor: not-allowed;
|
|
265
312
|
user-select: none;
|
|
266
|
-
opacity: 0.3;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
&.is-switcher &__element[disabled] ~ &__label {
|
|
270
|
-
opacity: 0.3;
|
|
271
313
|
}
|
|
272
314
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
.aw-tooltip {
|
|
2
|
-
padding:
|
|
2
|
+
padding: 0.5rem;
|
|
3
3
|
font-size: theme('fontSize.xs', 0.75rem);
|
|
4
|
-
line-height:
|
|
5
|
-
border-radius: 0.
|
|
4
|
+
line-height: 0.875rem;
|
|
5
|
+
border-radius: 0.3125rem;
|
|
6
6
|
background-color: var(--c-mono-200);
|
|
7
7
|
color: var(--c-surface);
|
|
8
8
|
display: none;
|
package/assets/js/styles.js
CHANGED
|
@@ -27,23 +27,24 @@ export const CUSTOM_COLORS_BG_LIGHT = {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export const CUSTOM_COLORS_BG_DARK = {
|
|
30
|
-
red: '#
|
|
31
|
-
peach: '#
|
|
32
|
-
yellow: '#
|
|
33
|
-
magenta: '#
|
|
30
|
+
red: '#5F2A26',
|
|
31
|
+
peach: '#4C2113',
|
|
32
|
+
yellow: '#4C3200',
|
|
33
|
+
magenta: '#490120',
|
|
34
34
|
purple: '#271147',
|
|
35
|
-
'light-blue': '#
|
|
36
|
-
blue: '#
|
|
37
|
-
green: '#
|
|
38
|
-
lime: '#
|
|
35
|
+
'light-blue': '#044964',
|
|
36
|
+
blue: '#242C4A',
|
|
37
|
+
green: '#114907',
|
|
38
|
+
lime: '#313900',
|
|
39
39
|
grey: '#060709',
|
|
40
|
-
'light-grey': '#
|
|
40
|
+
'light-grey': '#434447'
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
export default {
|
|
44
44
|
default: {
|
|
45
45
|
colors: {
|
|
46
46
|
accent: '#56af40',
|
|
47
|
+
'accent-hover': '#469E30',
|
|
47
48
|
success: '#56af40',
|
|
48
49
|
info: '#1d6ec5',
|
|
49
50
|
notify: '#ffc230',
|
|
@@ -73,6 +74,7 @@ export default {
|
|
|
73
74
|
|
|
74
75
|
onColors: {
|
|
75
76
|
accent: '#fff',
|
|
77
|
+
'accent-hover': '#fff',
|
|
76
78
|
success: '#fff',
|
|
77
79
|
info: '#fff',
|
|
78
80
|
notify: '#463100',
|
|
@@ -116,16 +118,16 @@ export default {
|
|
|
116
118
|
|
|
117
119
|
'mono-0': '#fff',
|
|
118
120
|
'mono-50': '#f3f5f7',
|
|
119
|
-
'mono-100': '#
|
|
120
|
-
'mono-200': '#
|
|
121
|
-
'mono-300': '#
|
|
122
|
-
'mono-400': '#
|
|
123
|
-
'mono-500': '#
|
|
124
|
-
'mono-600': '#
|
|
125
|
-
'mono-700': '#
|
|
126
|
-
'mono-800': '#
|
|
127
|
-
'mono-900': '#
|
|
128
|
-
'mono-1000': '#
|
|
121
|
+
'mono-100': '#EAEAEB',
|
|
122
|
+
'mono-200': '#D5D5D6',
|
|
123
|
+
'mono-300': '#C0C1C2',
|
|
124
|
+
'mono-400': '#ABACAD',
|
|
125
|
+
'mono-500': '#979799',
|
|
126
|
+
'mono-600': '#828285',
|
|
127
|
+
'mono-700': '#6D6D70',
|
|
128
|
+
'mono-800': '#46474A',
|
|
129
|
+
'mono-900': '#434447',
|
|
130
|
+
'mono-1000': '#2E2F33',
|
|
129
131
|
|
|
130
132
|
...CUSTOM_COLORS_BG_DARK
|
|
131
133
|
},
|
|
@@ -14,7 +14,11 @@
|
|
|
14
14
|
class="w-6 text-left inline-block mr-1"
|
|
15
15
|
>
|
|
16
16
|
<slot name="icon">
|
|
17
|
-
<AwIcon
|
|
17
|
+
<AwIcon
|
|
18
|
+
:name="icon"
|
|
19
|
+
:size="iconSize"
|
|
20
|
+
class="text-mono-400"
|
|
21
|
+
/>
|
|
18
22
|
</slot>
|
|
19
23
|
</span>
|
|
20
24
|
<slot>
|
|
@@ -60,7 +64,7 @@ export default {
|
|
|
60
64
|
|
|
61
65
|
iconSize: {
|
|
62
66
|
type: [String, Number],
|
|
63
|
-
default: ''
|
|
67
|
+
default: '16'
|
|
64
68
|
},
|
|
65
69
|
|
|
66
70
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awes-io/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.81.0",
|
|
4
4
|
"description": "User Interface (UI) components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui",
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"rollup-plugin-visualizer": "^2.6.0",
|
|
114
114
|
"rollup-plugin-vue": "^5.0.1"
|
|
115
115
|
},
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "4652ce2e297a512f850ff0c8eb6a6315a22733f3"
|
|
117
117
|
}
|