@awes-io/ui 2.71.1 → 2.73.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,33 @@
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.73.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.72.0...@awes-io/ui@2.73.0) (2023-09-29)
7
+
8
+
9
+ ### Features
10
+
11
+ * change styles in components ([603d7a8](https://github.com/awes-io/client/commit/603d7a8ed86e548446afe5b656821ed0e34c528c))
12
+
13
+
14
+
15
+
16
+
17
+ # [2.72.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.71.1...@awes-io/ui@2.72.0) (2023-09-19)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **aw-file:** bind all attrs to input ([7cb6690](https://github.com/awes-io/client/commit/7cb66900c5fe33305f89f9b86a27c4b7e23baaef))
23
+
24
+
25
+ ### Features
26
+
27
+ * change styles and logic in components ([9888bed](https://github.com/awes-io/client/commit/9888bed0290beb06b656bfd12f9493a72c149428))
28
+
29
+
30
+
31
+
32
+
6
33
  ## [2.71.1](https://github.com/awes-io/client/compare/@awes-io/ui@2.71.0...@awes-io/ui@2.71.1) (2023-09-11)
7
34
 
8
35
 
@@ -22,11 +22,11 @@
22
22
  }
23
23
 
24
24
  &__toggler {
25
- @apply px-0 font-bold tracking-widest;
25
+ @apply font-bold tracking-widest;
26
26
 
27
27
  position: relative;
28
28
  flex-shrink: 0;
29
- padding: 0 theme('spacing.1');
29
+ padding: 0;
30
30
  min-width: theme('spacing.8');
31
31
  white-space: nowrap;
32
32
 
@@ -443,10 +443,6 @@
443
443
  @apply opacity-90;
444
444
  }
445
445
 
446
- &.theme-outline > &__overlay {
447
- @apply rounded-none;
448
- }
449
-
450
446
  /* System */
451
447
  &.theme-system {
452
448
  @apply text-mono-400;
@@ -67,7 +67,7 @@
67
67
  border-radius: 50%;
68
68
  }
69
69
 
70
- &__day_active:not(&__day_outside) > span {
70
+ &__day_active > span {
71
71
  @apply bg-success;
72
72
  font-weight: bold;
73
73
  }
@@ -5,18 +5,6 @@
5
5
  padding: 0;
6
6
  }
7
7
 
8
- & > .aw-button.theme-ghost {
9
- border-radius: 0.9375rem;
10
- width: auto;
11
- height: 3rem;
12
-
13
- .aw-button__content_md {
14
- width: auto;
15
- height: 3rem;
16
- padding: 0.5rem;
17
- }
18
- }
19
-
20
8
  &--highlight {
21
9
  .aw-button.theme-icon {
22
10
  background: var(--c-mono-800);
@@ -32,16 +20,3 @@
32
20
  }
33
21
  }
34
22
  }
35
-
36
- @screen lg {
37
- .aw-context-menu {
38
- & > .aw-button.theme-ghost {
39
- border-radius: 0.625rem;
40
- height: 2.5rem;
41
-
42
- .aw-button__content_md {
43
- height: 2.5rem;
44
- }
45
- }
46
- }
47
- }
@@ -32,7 +32,8 @@
32
32
  display: block;
33
33
  font-weight: 400;
34
34
  color: var(--c-mono-400);
35
- font-size: theme('fontSize.xs', 0.75rem);
35
+ font-size: 0.875rem;
36
+ line-height: 1rem;
36
37
  margin-top: 0.25rem;
37
38
  }
38
39
 
@@ -4,6 +4,7 @@
4
4
  display: flex;
5
5
  align-items: center;
6
6
  width: 100%;
7
+ padding: 1.5rem;
7
8
 
8
9
  &:hover,
9
10
  &:focus {
@@ -17,11 +18,9 @@
17
18
  }
18
19
 
19
20
  &__icon-bg {
20
- margin-left: 1.25rem;
21
- margin-right: -1rem;
22
- padding: 0.1875rem;
23
21
  border-radius: 0.3125rem;
24
22
  line-height: 1;
23
+ flex: none;
25
24
  }
26
25
 
27
26
  /* &__icon {} */
@@ -30,18 +29,18 @@
30
29
  display: flex;
31
30
  flex-direction: column;
32
31
  justify-content: center;
33
- min-height: 3.375rem;
34
- padding: 0.5rem 0.5rem 0.5rem 1.875rem;
32
+ padding: 0 1rem;
35
33
  flex-grow: 1;
36
34
  }
37
35
 
38
36
  &__description {
39
37
  color: var(--c-mono-400);
40
- font-size: theme('fontSize.xs', 0.75rem);
38
+ font-size: 0.875rem;
39
+ line-height: 1rem;
41
40
  }
42
41
 
43
42
  &__arrow {
44
- margin: 0.75rem 1.875rem 0.75rem 0;
45
43
  color: var(--c-on-surface);
44
+ flex: none;
46
45
  }
47
46
  }
@@ -21,7 +21,7 @@
21
21
  position: relative;
22
22
 
23
23
  &:before {
24
- @apply bg-mono-900;
24
+ @apply bg-mono-800;
25
25
  content: '';
26
26
  display: block;
27
27
  height: 1px;
@@ -50,10 +50,11 @@
50
50
  padding: 1.5rem;
51
51
 
52
52
  position: relative;
53
- border-radius: 1.25rem;
53
+ border-top-right-radius: 1.25rem;
54
+ border-top-left-radius: 1.25rem;
54
55
 
55
56
  &:after {
56
- @apply bg-mono-900;
57
+ @apply bg-mono-800;
57
58
  content: '';
58
59
  display: block;
59
60
  height: 1px;
@@ -115,6 +115,19 @@
115
115
  }
116
116
  }
117
117
 
118
+ :root[data-dark="false"] {
119
+ .aw-page-headline {
120
+ &__back {
121
+ background: var(--c-mono-800);
122
+ color: var(--c-on-mono-800);
123
+
124
+ &:hover {
125
+ background: var(--c-mono-700);
126
+ }
127
+ }
128
+ }
129
+ }
130
+
118
131
  :root[data-dark="true"] {
119
132
  .aw-page-headline {
120
133
  &__back {
@@ -23,7 +23,7 @@
23
23
  }
24
24
 
25
25
  &:focus {
26
- @apply border-info;
26
+ @apply border-accent;
27
27
  outline: none;
28
28
  }
29
29
 
@@ -144,7 +144,7 @@
144
144
 
145
145
  &--mobile {
146
146
  display: block;
147
- padding: 0.5rem 0;
147
+ padding: 1.5rem;
148
148
 
149
149
  &:hover {
150
150
  background: inherit;
@@ -157,7 +157,7 @@
157
157
  &--mobile {
158
158
  display: flex;
159
159
  justify-content: space-between;
160
- padding: theme('spacing.2', 0.5rem);
160
+ padding: 0.5rem 0;
161
161
 
162
162
  &:nth-of-type(2n + 1) {
163
163
  background: none;
@@ -53,3 +53,10 @@
53
53
  left: -4px;
54
54
  }
55
55
  }
56
+
57
+ :root[data-dark="true"] {
58
+ .aw-tooltip {
59
+ background-color: var(--c-surface);
60
+ color: rgba(var(--c-on-surface-rgb), 0.9);
61
+ }
62
+ }
@@ -71,8 +71,6 @@
71
71
  color: var(--c-on-surface);
72
72
  min-width: 250px;
73
73
  max-height: auto;
74
- box-shadow: theme('boxShadow.default');
75
- border-radius: theme('borderRadius.md');
76
74
 
77
75
  &.aw-dropdown--desktop {
78
76
  max-width: 17.625rem;
@@ -83,16 +81,20 @@
83
81
  &__nav-item {
84
82
  @apply bg-surface;
85
83
  padding: 1rem;
86
- display: block;
84
+ display: flex;
85
+ align-items: center;
87
86
  width: 100%;
88
87
 
89
88
  font-size: 1rem;
90
89
  line-height: 1.3125rem;
91
90
  font-weight: 400;
92
91
 
92
+ white-space: nowrap;
93
+
93
94
  svg {
94
95
  width: 1.5rem;
95
96
  height: 1.5rem;
97
+ flex: none;
96
98
  }
97
99
 
98
100
  &:focus {
@@ -104,5 +106,10 @@
104
106
  &--active {
105
107
  background-color: var(--c-mono-900);
106
108
  }
109
+
110
+ &-text {
111
+ text-overflow: ellipsis;
112
+ overflow: hidden;
113
+ }
107
114
  }
108
115
  }
@@ -24,7 +24,7 @@ export default {
24
24
  'M1 10a2 2 0 114 0 2 2 0 01-4 0zm7 0a2 2 0 114 0 2 2 0 01-4 0zm7 0a2 2 0 114 0 2 2 0 01-4 0z',
25
25
  triangle: 'M5 7h10l-5 5z',
26
26
  external:
27
- 'M6.67 5a1.25 1.25 0 1 0 0 2.5h4.48l-5.78 5.78a1.25 1.25 0 1 0 1.76 1.77l5.78-5.78v4.48a1.25 1.25 0 1 0 2.5 0v-7.5c0-.7-.56-1.25-1.25-1.25h-7.5Z',
27
+ 'M17.5 1.7h-5a.8.8 0 1 0 0 1.6h3l-7 7a.8.8 0 1 0 1.3 1.1l6.9-6.9v3a.8.8 0 1 0 1.6 0v-5a.8.8 0 0 0-.8-.8Z M15.8 8.8a.8.8 0 0 0-.8.9v6a1 1 0 0 1-1 1H4.4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h5.2a.8.8 0 1 0 0-1.7H4.4A2.7 2.7 0 0 0 1.7 6v9.6a2.7 2.7 0 0 0 2.7 2.7H14a2.7 2.7 0 0 0 2.7-2.7v-6a.8.8 0 0 0-.9-.8Z',
28
28
  edit:
29
29
  'M11.7 5.34l2.85 2.86-7.2 7.24-2.85-2.86 7.2-7.24zm5.01-.7l-1.27-1.27c-.49-.5-1.28-.5-1.78 0l-1.21 1.22 2.85 2.86 1.41-1.42c.39-.38.39-1 0-1.38zM3.01 16.6c-.05.24.16.45.39.4l3.17-.78-2.84-2.86L3 16.6z',
30
30
  'info-circle':
@@ -10,6 +10,8 @@
10
10
  export default {
11
11
  name: 'AwFile',
12
12
 
13
+ inheritAttrs: false,
14
+
13
15
  methods: {
14
16
  loadFile($event) {
15
17
  const files = [...$event.target.files]
@@ -77,10 +77,9 @@ export default {
77
77
  props: {
78
78
  theme: 'ghost',
79
79
  color: 'default',
80
- contentClass: 'p-2',
81
80
  text: this.text
82
81
  },
83
- staticClass: 'h-10 w-auto ' + this.buttonClass,
82
+ staticClass: this.buttonClass,
84
83
  attrs: {
85
84
  'data-arrow-focus': ''
86
85
  },
@@ -69,7 +69,7 @@
69
69
 
70
70
  <div
71
71
  v-if="$scopedSlots.buttons"
72
- :class="[elClasses.buttons, 'aw-button-group']"
72
+ :class="[elClasses.buttons]"
73
73
  >
74
74
  <slot name="buttons"></slot>
75
75
  </div>
@@ -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',
232
+ 'icon,iconBg,iconActive,class,expanded,target,rel,listeners,abstract,key,badge,back,isDivide,arrow',
233
233
  props
234
234
  ),
235
235
  text,
@@ -20,7 +20,7 @@
20
20
  </span>
21
21
 
22
22
  <span class="aw-mobile-menu-item__text" tabindex="-1">
23
- {{ text }}
23
+ <span v-html="text" />
24
24
 
25
25
  <span
26
26
  v-if="description"
@@ -34,6 +34,7 @@
34
34
  <AwIconSystemMono
35
35
  v-if="_linkExternal"
36
36
  name="external"
37
+ size="24"
37
38
  class="aw-mobile-menu-item__arrow"
38
39
  />
39
40
 
@@ -23,7 +23,13 @@
23
23
  {{ text }}
24
24
 
25
25
  <span
26
- v-if="childrenDescription"
26
+ v-if="description"
27
+ v-html="$sanitize(description)"
28
+ class="aw-mobile-menu-item-new__description"
29
+ ></span>
30
+
31
+ <span
32
+ v-else-if="childrenDescription"
27
33
  class="aw-mobile-menu-item-new__description"
28
34
  >
29
35
  {{ childrenDescription }}
@@ -16,11 +16,15 @@
16
16
  <li v-for="(item, i) in items" :key="i" v-show="!item.abstract">
17
17
  <AwMobileMenuItem
18
18
  v-bind="item"
19
- :class="{
20
- 'aw-mobile-menu-nav__item--divide': item.isDivide
21
- }"
19
+ :class="[
20
+ item.class,
21
+ {
22
+ 'aw-mobile-menu-nav__item--divide':
23
+ item.isDivide && i !== items.length - 1
24
+ }
25
+ ]"
22
26
  :href="_getChildrenCount(item) ? null : item.href"
23
- :arrow="!!(item.href || _getChildrenCount(item))"
27
+ :arrow="checkShowArrow(item)"
24
28
  :active="isActive(item)"
25
29
  v-on="
26
30
  _getChildrenCount(item)
@@ -44,7 +48,7 @@
44
48
  </template>
45
49
 
46
50
  <script>
47
- import { viewOr, lensProp } from 'rambdax'
51
+ import { viewOr, lensProp, isNil } from 'rambdax'
48
52
  import AwMobileMenuItem from '@AwLayouts/_AwMobileMenuItem.vue'
49
53
 
50
54
  export default {
@@ -88,6 +92,12 @@ export default {
88
92
  return item.children ? item.children.length : 0
89
93
  },
90
94
 
95
+ checkShowArrow(item) {
96
+ return isNil(item.arrow)
97
+ ? !!(item.href || this._getChildrenCount(item))
98
+ : item.arrow
99
+ },
100
+
91
101
  isActive(item) {
92
102
  return this._getChildrenCount(item)
93
103
  ? item.children.some((child) =>
@@ -1,7 +1,12 @@
1
1
  <template>
2
2
  <Component :is="_linkComponent" v-bind="_linkAttrs" v-on="$listeners">
3
3
  <slot />
4
- <AwIconSystemMono v-if="_linkExternal" name="external" class="ml-1" />
4
+
5
+ <AwIconSystemMono
6
+ v-if="_linkExternal && !hideExternalIcon"
7
+ name="external"
8
+ class="ml-1"
9
+ />
5
10
  </Component>
6
11
  </template>
7
12
 
@@ -11,6 +16,10 @@ import linkMixin from '@AwMixins/link'
11
16
  export default {
12
17
  name: 'AwNavItem',
13
18
 
14
- mixins: [linkMixin]
19
+ mixins: [linkMixin],
20
+
21
+ props: {
22
+ hideExternalIcon: Boolean
23
+ }
15
24
  }
16
25
  </script>
@@ -71,13 +71,18 @@
71
71
  ]"
72
72
  class="aw-user-menu__nav-item"
73
73
  v-on="item.listeners || null"
74
+ hide-external-icon
74
75
  >
75
76
  <AwIcon
76
77
  v-if="item.icon"
77
78
  :name="item.icon"
78
79
  class="mr-2"
79
80
  />
80
- {{ item.text }}
81
+
82
+ <span
83
+ class="aw-user-menu__nav-item-text"
84
+ v-html="item.text"
85
+ />
81
86
  </AwNavItem>
82
87
  </template>
83
88
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awes-io/ui",
3
- "version": "2.71.1",
3
+ "version": "2.73.0",
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": "06094c5bdf9e8a6364d6382df3d9b095e61e06bc"
115
+ "gitHead": "7082e9cda8b1588e4a644c5d802a1819c982de83"
116
116
  }