@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 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
 
@@ -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
-
@@ -90,7 +90,6 @@
90
90
  margin-left: calc(-1 * var(--container-padding));
91
91
  margin-right: calc(-1 * var(--container-padding));
92
92
  max-width: calc(100% + 2 * var(--container-padding));
93
- width: 100%;
94
93
 
95
94
  .aw-slider__scroller:before,
96
95
  .aw-slider__scroller:after {
@@ -26,11 +26,11 @@
26
26
  color: inherit;
27
27
 
28
28
  &:hover {
29
- @apply bg-mono-800;
29
+ @apply bg-mono-900;
30
30
  }
31
31
 
32
32
  &.is-active {
33
- @apply bg-mono-800;
33
+ @apply bg-mono-900;
34
34
  }
35
35
  }
36
36
 
@@ -16,7 +16,7 @@
16
16
  bottom: 0;
17
17
 
18
18
  &.aw-layout-menu--no-submenu {
19
- max-width: 4.5rem;
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% - 4.5rem);
29
- margin-left: 4.5rem;
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: 1rem;
2
+ padding: 0.5rem;
3
3
  font-size: theme('fontSize.xs', 0.75rem);
4
- line-height: theme('leading.5', 1.25rem);
5
- border-radius: 0.625rem;
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;
@@ -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,
@@ -27,23 +27,24 @@ export const CUSTOM_COLORS_BG_LIGHT = {
27
27
  }
28
28
 
29
29
  export const CUSTOM_COLORS_BG_DARK = {
30
- red: '#431c1c',
31
- peach: '#33160d',
32
- yellow: '#3a2e17',
33
- magenta: '#310116',
30
+ red: '#5F2A26',
31
+ peach: '#4C2113',
32
+ yellow: '#4C3200',
33
+ magenta: '#490120',
34
34
  purple: '#271147',
35
- 'light-blue': '#022532',
36
- blue: '#202b49',
37
- green: '#24331b',
38
- lime: '#212600',
35
+ 'light-blue': '#044964',
36
+ blue: '#242C4A',
37
+ green: '#114907',
38
+ lime: '#313900',
39
39
  grey: '#060709',
40
- 'light-grey': '#2c2e34'
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': '#e7eaed',
120
- 'mono-200': '#d7dbde',
121
- 'mono-300': '#c1c4c7',
122
- 'mono-400': '#838587',
123
- 'mono-500': '#838587',
124
- 'mono-600': '#595d62',
125
- 'mono-700': '#46474a',
126
- 'mono-800': '#373c46',
127
- 'mono-900': '#383838',
128
- 'mono-1000': '#313236',
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 :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
  /**
@@ -13,7 +13,7 @@
13
13
  class="aw-icon-menu-item__icon-block"
14
14
  tabindex="-1"
15
15
  v-tooltip:right="
16
- tooltip ? { content: text, offset: [0, -6] } : null
16
+ tooltip ? { content: text, offset: [0, 7] } : null
17
17
  "
18
18
  >
19
19
  <AwIcon
@@ -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.79.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": "acc0cf881db35c97a082498b3ad12f686412904f"
116
+ "gitHead": "4652ce2e297a512f850ff0c8eb6a6315a22733f3"
117
117
  }