@awes-io/ui 2.80.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 CHANGED
@@ -3,6 +3,19 @@
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
+
6
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)
7
20
 
8
21
 
@@ -45,6 +45,10 @@
45
45
  a {
46
46
  text-decoration: underline;
47
47
  }
48
+
49
+ a:hover {
50
+ color: color-mix(in srgb, var(--aw-alert-on-color) 90%, var(--c-mono-0));
51
+ }
48
52
  }
49
53
 
50
54
  &--title-start {
@@ -37,6 +37,7 @@
37
37
  & > :not(img):not(&__no-img-icon) {
38
38
  text-align: center;
39
39
  font-size: var(--ui-avatar-font-size);
40
+ line-height: var(--ui-avatar-size);
40
41
  }
41
42
 
42
43
  &__no-img-icon {
@@ -63,4 +64,3 @@
63
64
  will-change: transform;
64
65
  }
65
66
  }
66
-
@@ -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
  }
@@ -46,6 +46,11 @@
46
46
  margin-right: 1rem;
47
47
  }
48
48
  }
49
+
50
+ &--hoverable:hover,
51
+ &--hoverable:focus-visible {
52
+ background-color: var(--c-mono-900);
53
+ }
49
54
  }
50
55
 
51
56
  &__theme {
@@ -149,8 +149,8 @@
149
149
 
150
150
  a:not([class]):hover,
151
151
  .link:hover {
152
- color: var(--c-mono-0);
153
- text-decoration: none;
152
+ color: var(--c-accent-hover);
153
+ text-decoration: underline;
154
154
  }
155
155
 
156
156
  a:not([class]):focus-visible,
@@ -44,6 +44,7 @@ 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',
@@ -14,7 +14,11 @@
14
14
  class="w-6 text-left inline-block mr-1"
15
15
  >
16
16
  <slot name="icon">
17
- <AwIcon :name="icon" :size="iconSize" />
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
  /**
@@ -45,6 +45,7 @@
45
45
  :is="profileUrlAttr.is"
46
46
  v-bind="profileUrlAttr"
47
47
  class="aw-user-menu__header"
48
+ :class="{ 'aw-user-menu__header--hoverable': profileUrl }"
48
49
  >
49
50
  <AwUserpic v-bind="user" big-image />
50
51
  </Component>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awes-io/ui",
3
- "version": "2.80.0",
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": "48246faf5d78f3c6474d2fe140d68676f66efae0"
116
+ "gitHead": "4652ce2e297a512f850ff0c8eb6a6315a22733f3"
117
117
  }