@awes-io/ui 2.111.0 → 2.112.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,29 @@
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.112.1](https://github.com/awes-io/client/compare/@awes-io/ui@2.112.0...@awes-io/ui@2.112.1) (2024-10-04)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * aw-dock z-index increased ([d552d36](https://github.com/awes-io/client/commit/d552d36487ff48115c94e61e39e8fad629d95283))
12
+ * z-indexes fix ([ee4a1ec](https://github.com/awes-io/client/commit/ee4a1ecdd99828391360159bafa7d10db834e6c1))
13
+
14
+
15
+
16
+
17
+
18
+ # [2.112.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.111.0...@awes-io/ui@2.112.0) (2024-10-03)
19
+
20
+
21
+ ### Features
22
+
23
+ * ui styles updated ([a702ef3](https://github.com/awes-io/client/commit/a702ef35671a0fbd173ee826c84faed802037560))
24
+
25
+
26
+
27
+
28
+
6
29
  # [2.111.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.110.0...@awes-io/ui@2.111.0) (2024-09-30)
7
30
 
8
31
 
@@ -13,7 +13,7 @@
13
13
  bottom: 0;
14
14
  min-height: 3.5rem;
15
15
  width: 100%;
16
- z-index: 2;
16
+ z-index: 19;
17
17
 
18
18
  & > * {
19
19
  flex-basis: 9rem;
@@ -73,14 +73,6 @@
73
73
  }
74
74
  }
75
75
 
76
- &:where(:disabled) .aw-button__icon-wrapper--highlighted {
77
- background-color: color-mix(
78
- in srgb,
79
- var(--icon-color, var(--btn-color)) 8%,
80
- rgba(255, 255, 255, 0.05)
81
- );
82
- }
83
-
84
76
  &__loader {
85
77
  height: 0.5rem;
86
78
  width: auto;
@@ -120,6 +112,7 @@
120
112
  &:disabled {
121
113
  cursor: not-allowed;
122
114
  user-select: none !important;
115
+ opacity: 0.5;
123
116
  }
124
117
 
125
118
  &:disabled .aw-icon--animated {
@@ -170,18 +163,20 @@
170
163
  --btn-padding-x: 0.75rem;
171
164
  }
172
165
 
166
+ &--with-text:where(&--size-lg) {
167
+ --btn-padding-x: 1.5rem;
168
+ }
169
+
173
170
  &--color-accent:where(&--theme-solid) {
174
171
  --btn-bg-color: var(--c-accent);
175
172
  --btn-color: var(--c-on-accent);
176
173
  --btn-bg-hover: var(--c-accent-hover);
177
- --btn-bg-disabled: var(--c-green);
178
174
  }
179
175
 
180
176
  &--color-error:where(&--theme-solid) {
181
177
  --btn-bg-color: var(--c-error);
182
178
  --btn-color: var(--c-on-error);
183
179
  --btn-bg-hover: var(--c-error-hover);
184
- --btn-bg-disabled: var(--c-red);
185
180
  }
186
181
 
187
182
  &--color-dark:where(&--theme-solid) {
@@ -252,10 +247,10 @@
252
247
  --icon-color: var(--c-mono-100);
253
248
  }
254
249
 
255
- &--theme-solid:where(:not(&--loading, &--locked)):disabled {
250
+ /* &--theme-solid:where(:not(&--loading, &--locked)):disabled {
256
251
  --btn-bg-color: var(--btn-bg-disabled, var(--c-mono-800));
257
252
  --btn-color: var(--c-mono-400);
258
- }
253
+ } */
259
254
 
260
255
  &--theme-icon {
261
256
  opacity: 0.4;
@@ -280,10 +275,6 @@
280
275
 
281
276
  cursor: wait !important;
282
277
  user-select: none !important;
283
-
284
- &:disabled {
285
- opacity: 1;
286
- }
287
278
  }
288
279
 
289
280
  &--loading &__icon-wrapper {
@@ -1,5 +1,6 @@
1
1
  .aw-calendar {
2
- @apply bg-surface;
2
+ background-color: var(--c-surface);
3
+ color: var(--c-on-surface);
3
4
  display: flex;
4
5
  flex-wrap: wrap;
5
6
  padding-bottom: theme('spacing.2');
@@ -1,6 +1,6 @@
1
1
  .aw-card {
2
- --card-padding-x: theme('spacing.5', 1.25rem);
3
- --card-padding-y: theme('spacing.5', 1.25rem);
2
+ --card-padding-x: var(--container-padding);
3
+ --card-padding-y: 1.5rem;
4
4
 
5
5
  display: block;
6
6
  min-width: 100%;
@@ -8,7 +8,7 @@
8
8
  color: var(--c-on-surface);
9
9
  background-color: var(--c-surface);
10
10
 
11
- border-radius: theme('spacing.5', 1.25rem);
11
+ border-radius: 15px;
12
12
  padding: var(--card-padding-y) var(--card-padding-x);
13
13
  box-shadow: none;
14
14
 
@@ -42,8 +42,8 @@
42
42
 
43
43
  @screen lg {
44
44
  .aw-card {
45
- --card-padding-x: 1.875rem;
46
- --card-padding-y: 1.875rem;
45
+ --card-padding-x: 1.5rem;
46
+ /* --card-padding-y: 1.5rem; */
47
47
  }
48
48
 
49
49
  .container .aw-card,
@@ -12,7 +12,7 @@
12
12
  position: fixed;
13
13
  left: 0;
14
14
  bottom: 0;
15
- z-index: 10;
15
+ z-index: 21;
16
16
 
17
17
  touch-action: pan-y;
18
18
 
@@ -48,7 +48,7 @@
48
48
  &__text {
49
49
  display: block;
50
50
 
51
- font-size: 0.5625rem;
51
+ font-size: 0.625rem;
52
52
  font-weight: 400;
53
53
  line-height: 0.659375rem;
54
54
  color: var(--c-mono-300);
@@ -117,3 +117,7 @@
117
117
  }
118
118
  }
119
119
  }
120
+
121
+ .aw-icon-menu-item-tooltip.aw-tooltip[data-visible] {
122
+ z-index: 21;
123
+ }
@@ -5,7 +5,7 @@
5
5
  grid-template-columns: 5rem auto;
6
6
  grid-template-rows: 78px minmax(0, 2fr) minmax(0, 1fr) 60px minmax(0, auto);
7
7
 
8
- z-index: 4;
8
+ z-index: 21;
9
9
 
10
10
  &__logo,
11
11
  &__aw-user-menu {
@@ -21,13 +21,13 @@
21
21
 
22
22
  &.aw-layout-menu--hide-submenu {
23
23
  max-width: 6rem;
24
- z-index: 11;
24
+ z-index: 21;
25
25
  }
26
26
 
27
27
  & ~ * {
28
28
  max-width: calc(100% - 300px);
29
29
  margin-left: 300px;
30
- transition: max-width ease-in-out 0.3s, margin-left ease-in-out 0.3s;
30
+ /* transition: max-width ease-in-out 0.3s, margin-left ease-in-out 0.3s; */
31
31
  }
32
32
 
33
33
  &.aw-layout-menu--no-submenu ~ * {
@@ -203,6 +203,24 @@ $modal-aside-width-large: 75vw;
203
203
 
204
204
  @screen md {
205
205
  .aw-modal {
206
+ &.is-default {
207
+ flex-direction: column;
208
+
209
+ &:before {
210
+ content: '';
211
+ display: block;
212
+ flex-basis: 8rem;
213
+ flex-shrink: 1;
214
+ min-height: 2rem;
215
+ }
216
+ }
217
+
218
+ &.is-default &__container {
219
+ padding-top: 0;
220
+ flex-basis: 100vh;
221
+ min-height: inherit;
222
+ }
223
+
206
224
  &__header {
207
225
  padding-top: 1.5rem;
208
226
  min-height: auto;
@@ -432,33 +450,31 @@ $modal-t-dur: 200ms;
432
450
  .modal-transition-overlay-aside,
433
451
  .modal-transition-overlay-aside-medium,
434
452
  .modal-transition-overlay-aside-large,
435
- .modal-transition-fullscreen {
453
+ .modal-transition-fullscreen {
436
454
  &-enter,
437
455
  &-leave-to {
438
456
  opacity: 0;
439
- transform: perspective(150rem) translate3d(0, 5rem, -10rem) rotateX(-30deg);
457
+ transform: translateY(100%);
440
458
  }
441
459
 
442
460
  &-leave,
443
461
  &-enter-to {
444
462
  opacity: 1;
445
- transform: perspective(150rem) translate3d(0, 0, 0) rotateX(0deg);
463
+ transform: translateY(0);
446
464
  }
447
465
 
448
466
  &-enter-active,
449
467
  &-leave-active {
450
- transform-style: preserve-3d;
451
468
  pointer-events: none;
452
- backface-visibility: hidden;
453
- /* transform: translate3d(0, 0, 0); */
454
469
  }
455
470
 
456
471
  &-enter-active {
457
- transition: calc($modal-t-dur * .5) opacity, $modal-t-dur transform;
472
+ transition: calc($modal-t-dur * 0.5) opacity, $modal-t-dur transform;
458
473
  }
459
474
 
460
475
  &-leave-active {
461
- transition: calc($modal-t-dur * .8) opacity, calc($modal-t-dur * .8) transform;
476
+ transition: calc($modal-t-dur * 0.8) opacity,
477
+ calc($modal-t-dur * 0.8) transform;
462
478
  }
463
479
  }
464
480
  }
@@ -500,8 +516,7 @@ $modal-t-dur: 200ms;
500
516
  }
501
517
 
502
518
  &-enter-active {
503
- transition: $modal-t-dur transform,
504
- $modal-t-dur opacity;
519
+ transition: $modal-t-dur transform, $modal-t-dur opacity;
505
520
  }
506
521
 
507
522
  &-leave-active {
@@ -580,4 +595,3 @@ $modal-t-dur: 200ms;
580
595
  }
581
596
  }
582
597
  }
583
-
@@ -9,21 +9,20 @@
9
9
  box-shadow: none;
10
10
 
11
11
  position: relative;
12
- z-index: 10;
12
+ z-index: 20;
13
13
 
14
14
  transition: none;
15
15
 
16
+ position: sticky;
17
+ top: 0;
18
+
16
19
  &--is-stuck {
17
- @apply bg-surface;
20
+ @apply bg-page-bg;
18
21
  width: 100%;
19
22
 
20
- box-shadow: 0px 10px 20px 0px rgba(0, 19, 106, 0.1);
23
+ box-shadow: 0px 10px 20px 0px rgba(37, 38, 41, 0.05);
21
24
 
22
25
  transition: 60ms box-shadow 120ms;
23
- animation: aw-page-header-slide 180ms ease-out;
24
-
25
- position: sticky;
26
- top: 0;
27
26
  }
28
27
 
29
28
  .aw-progress {
@@ -40,7 +39,7 @@
40
39
  }
41
40
 
42
41
  &--primary {
43
- @apply bg-surface;
42
+ /* @apply bg-surface; */
44
43
  width: 100%;
45
44
  }
46
45
 
@@ -56,10 +55,21 @@
56
55
 
57
56
  margin: 0;
58
57
 
59
- font-size: 0.875rem;
58
+ font-size: 1.25rem;
60
59
  line-height: 1.4285;
61
60
  font-weight: 700;
62
- text-align: center;
61
+ text-align: start;
62
+
63
+ &--showable {
64
+ opacity: 0;
65
+ transform: translateY(50%);
66
+ transition: opacity 200ms, transform 200ms;
67
+ }
68
+
69
+ &--visible {
70
+ opacity: 1;
71
+ transform: translateY(0);
72
+ }
63
73
  }
64
74
 
65
75
  &__breadcrumbs,
@@ -79,12 +89,12 @@
79
89
  @screen md {
80
90
  .aw-page-header {
81
91
  &__title {
82
- flex: 10 1 max-content;
92
+ flex: 1 1 max-content;
83
93
  }
84
94
 
85
95
  &__breadcrumbs,
86
96
  &__buttons {
87
- flex: 1 10 max-content;
97
+ flex: 1 0 max-content;
88
98
  }
89
99
 
90
100
  &__buttons {
@@ -98,6 +108,10 @@
98
108
  /* padding-left: 2.5rem;
99
109
  padding-right: 2.5rem; */
100
110
 
111
+ &--primary {
112
+ @apply bg-surface;
113
+ }
114
+
101
115
  &__title {
102
116
  font-size: 1.25rem;
103
117
  line-height: 1.2;
@@ -108,6 +122,8 @@
108
122
  width: 100%;
109
123
  margin-left: 0;
110
124
  margin-right: 0;
125
+
126
+ position: static;
111
127
  }
112
128
 
113
129
  :where(&--container) &__breadcrumbs {
@@ -118,12 +134,19 @@
118
134
  );
119
135
  }
120
136
 
137
+ &:where(:not(&--container)) &__title {
138
+ position: absolute;
139
+ top: 50%;
140
+ left: 50%;
141
+ transform: translate(-50%, -50%);
142
+ }
143
+
121
144
  :where(&--container) &__title {
122
145
  text-align: left;
123
146
  margin-right: 1rem;
124
147
  }
125
148
 
126
- :where(&--container) &__buttons {
149
+ /* :where(&--container) &__buttons {
127
150
  margin-right: max(
128
151
  0px,
129
152
  calc(
@@ -131,7 +154,7 @@
131
154
  var(--header-padding-horizontal)
132
155
  )
133
156
  );
134
- }
157
+ } */
135
158
  }
136
159
  }
137
160
 
@@ -25,7 +25,7 @@
25
25
  &__mobile-title {
26
26
  order: -4;
27
27
 
28
- padding: 0 1.5rem;
28
+ padding: 0 var(--container-padding);
29
29
 
30
30
  font-size: 1.25rem;
31
31
  line-height: 1.2;
@@ -35,7 +35,7 @@
35
35
  &__mobile-description {
36
36
  order: -3;
37
37
 
38
- padding: 0 1.5rem;
38
+ padding: 0 var(--container-padding);
39
39
  margin-top: -1rem;
40
40
  }
41
41
 
@@ -50,16 +50,16 @@
50
50
  }
51
51
 
52
52
  &__top-scroll-mark {
53
- order: -3;
53
+ /* order: -3; */
54
54
  height: 1px;
55
- margin-top: -1.5rem;
55
+ /* margin-top: -1.5rem; */
56
56
  margin-bottom: -1px;
57
57
  }
58
58
 
59
59
  &__mobile-action-button {
60
60
  display: grid;
61
61
 
62
- padding: 1rem 2rem;
62
+ padding: 1rem var(--container-padding);
63
63
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0));
64
64
 
65
65
  position: sticky;
@@ -76,30 +76,13 @@
76
76
  }
77
77
  }
78
78
 
79
- @screen sm {
79
+ @screen lg {
80
80
  .aw-page-single {
81
- &__container--preview {
82
- padding-left: 1.5rem;
83
- padding-right: 1.5rem;
84
- }
85
-
86
81
  &__mobile-title,
87
82
  &__mobile-description {
88
83
  padding: 0;
89
84
  }
90
85
 
91
- &__mobile-action-button {
92
- padding-left: 1.5rem;
93
- padding-right: 1.5rem;
94
-
95
- margin-left: -1.5rem;
96
- margin-right: -1.5rem;
97
- }
98
- }
99
- }
100
-
101
- @screen lg {
102
- .aw-page-single {
103
86
  &__header {
104
87
  position: sticky;
105
88
  top: 0;
@@ -120,8 +103,8 @@
120
103
  align-content: start;
121
104
  gap: 0;
122
105
 
123
- padding-left: 2.5rem;
124
- padding-right: 2.5rem;
106
+ padding-left: var(--container-padding, 1.5rem);
107
+ padding-right: var(--container-padding, 1.5rem);
125
108
  margin: 0 auto;
126
109
  max-width: 70.25rem;
127
110
  }
@@ -132,11 +115,11 @@
132
115
  display: none;
133
116
  }
134
117
 
135
- &__top-scroll-mark {
118
+ /* &__top-scroll-mark {
136
119
  margin-top: calc(-2rem - var(--header-height, 0px));
137
120
  margin-bottom: calc(var(--header-height, 0px) + 0.5rem);
138
121
  grid-column: 1 / -1;
139
- }
122
+ } */
140
123
 
141
124
  &__content--column {
142
125
  width: 40rem;
@@ -159,5 +142,13 @@
159
142
  transition: top 180ms ease-out;
160
143
  } */
161
144
  }
145
+
146
+ &__mobile-action-button {
147
+ padding-left: 1.5rem;
148
+ padding-right: 1.5rem;
149
+
150
+ margin-left: -1.5rem;
151
+ margin-right: -1.5rem;
152
+ }
162
153
  }
163
154
  }
@@ -43,8 +43,9 @@
43
43
 
44
44
  &__top-scroll-mark {
45
45
  height: 1px;
46
- margin-top: -1.5rem;
47
- margin-bottom: 1.5rem;
46
+ margin-bottom: -1px;
47
+ /* margin-top: -1.5rem;
48
+ margin-bottom: 1.5rem; */
48
49
  }
49
50
  }
50
51
 
@@ -5,7 +5,7 @@
5
5
  font-style: normal;
6
6
 
7
7
  margin-bottom: 0;
8
- font-size: 1rem;
9
- line-height: 1.125;
8
+ font-size: 1.125rem;
9
+ line-height: 1.2222;
10
10
  display: inline-block;
11
11
  }
@@ -1,5 +1,5 @@
1
1
  .aw-switch-field {
2
- @apply flex relative py-1;
2
+ @apply flex relative;
3
3
  align-items: flex-start;
4
4
 
5
5
  &__element {
@@ -104,7 +104,7 @@
104
104
  &__switch {
105
105
  @apply bg-mono-600 relative;
106
106
  flex-shrink: 0;
107
- margin: 0.15rem 0;
107
+ margin: 0;
108
108
  cursor: pointer;
109
109
  order: -1;
110
110
  border-radius: 90px;
@@ -279,7 +279,7 @@
279
279
  &__label {
280
280
  padding-top: 0.3125rem;
281
281
  font-size: 1rem;
282
- line-height: 1.5rem;
282
+ line-height: 1.18rem;
283
283
  }
284
284
 
285
285
  &__element + &__label {
@@ -22,6 +22,7 @@
22
22
  width: inherit;
23
23
  position: fixed;
24
24
  top: 0;
25
+ z-index: 29;
25
26
 
26
27
  transition: 300ms opacity;
27
28
  }
@@ -42,6 +43,7 @@
42
43
  position: absolute;
43
44
  top: 2rem;
44
45
  right: 0;
46
+ z-index: 29;
45
47
 
46
48
  width: 1.5rem;
47
49
  height: 1.5rem;
@@ -32,6 +32,14 @@
32
32
  */
33
33
  @import 'prismjs/themes/prism.css';
34
34
 
35
+ [data-dark="false"] {
36
+ color-scheme: light;
37
+ }
38
+
39
+ [data-dark="true"] {
40
+ color-scheme: dark;
41
+ }
42
+
35
43
  [data-dark="true"] {
36
44
  pre[class*="language-"] {
37
45
  background-color: theme('darkTheme.colors.surface');
@@ -35,7 +35,7 @@ export default {
35
35
 
36
36
  gap: {
37
37
  type: [Number, Object],
38
- default: 4
38
+ default: 6
39
39
  },
40
40
 
41
41
  align: {
@@ -1,5 +1,6 @@
1
1
  <script>
2
2
  import { isNil, mergeDeepRight } from 'rambdax'
3
+ import { toColor } from '@AwUtils/styles'
3
4
  import { VIEW_BOX, ICONS as ANIMATED_ICONS } from '@AwUtils/icons/animated'
4
5
 
5
6
  const staticClass = 'aw-icon'
@@ -54,7 +55,7 @@ export default {
54
55
  }
55
56
  ],
56
57
  style: [data.style, data.staticStyle].concat(
57
- color ? { fill: `var(--c-${color})` } : []
58
+ color ? { fill: toColor(color) } : []
58
59
  ),
59
60
  attrs: {
60
61
  'aria-hidden': true,
@@ -3,6 +3,7 @@
3
3
  <div ref="chart"></div>
4
4
  </div>
5
5
  </template>
6
+
6
7
  <script>
7
8
  import { equals } from 'rambdax'
8
9
  import loadjs from 'loadjs'
@@ -41,8 +42,14 @@ export default {
41
42
  this.generateChart()
42
43
  },
43
44
 
44
- beforeDestroy() {
45
- this.destroyChart()
45
+ beforeRouteLeave(to, from, next) {
46
+ // Navigate to the new route first
47
+ next()
48
+
49
+ // Once the navigation is done, destroy the chart
50
+ this.$nextTick(() => {
51
+ this.destroyChart(this.chart)
52
+ })
46
53
  },
47
54
 
48
55
  methods: {
@@ -71,9 +78,9 @@ export default {
71
78
  })
72
79
  },
73
80
 
74
- destroyChart() {
75
- if (this.chart) {
76
- this.chart.destroy()
81
+ destroyChart(chart) {
82
+ if (chart) {
83
+ chart.destroy()
77
84
  }
78
85
  }
79
86
  }
@@ -16,6 +16,7 @@
16
16
  :aria-describedby="errorText ? errorId : null"
17
17
  :class="cssClass"
18
18
  :value="phoneValue"
19
+ :autocomplete="autocomplete"
19
20
  type="tel"
20
21
  v-on="mergedListeners"
21
22
  />
@@ -143,6 +144,11 @@ export default {
143
144
  value: {
144
145
  type: String,
145
146
  default: ''
147
+ },
148
+
149
+ autocomplete: {
150
+ type: String,
151
+ default: 'tel'
146
152
  }
147
153
  },
148
154
 
@@ -10,8 +10,8 @@
10
10
  }"
11
11
  >
12
12
  <div class="aw-toggle-show-aside__btn-wrapper">
13
- <button
14
- v-tooltip="
13
+ <!--
14
+ v-tooltip="
15
15
  isAttachedKeyListener && isVisibleTooltip
16
16
  ? {
17
17
  content: $t(
@@ -24,7 +24,8 @@
24
24
  flip: false
25
25
  }
26
26
  : null
27
- "
27
+ " -->
28
+ <button
28
29
  class="aw-toggle-show-aside__arrow-btn"
29
30
  @click="onClickToggleShown"
30
31
  @mouseenter="onMouseEnterBtn"
@@ -182,7 +183,7 @@ export default {
182
183
  }
183
184
  },
184
185
 
185
- onMouseLeaveBtn() {
186
+ onMouseLeaveBtn($event) {
186
187
  this.isShownOnBtn = false
187
188
  }
188
189
  }
@@ -5,14 +5,22 @@
5
5
  '--page-buttons-bottom': _hideBottomBar ? null : '3.5rem'
6
6
  }"
7
7
  >
8
+ <div
9
+ ref="topScrollMark"
10
+ class="aw-page__top-scroll-mark"
11
+ aria-hidden="true"
12
+ ></div>
13
+
8
14
  <div class="aw-page__heading">
9
15
  <slot name="heading" v-bind="{ titleTag, title, breadcrumb }">
10
16
  <AwPageHeader
11
17
  ref="header"
12
18
  :primary="!isDesktop && isHeaderStuck"
13
19
  :title="_title"
20
+ :title-showable="!isDesktop"
14
21
  :hide-title="!isDesktop && !isHeaderStuck"
15
22
  :container="container"
23
+ is-container
16
24
  :is-stuck="isHeaderStuck && !isDesktop"
17
25
  hide-menu
18
26
  class="aw-page__header"
@@ -25,11 +33,7 @@
25
33
  <slot name="headline-breadcrumb">
26
34
  <AwButton
27
35
  v-if="backUrl || isMenuToggler"
28
- :color="
29
- isDesktop || !isHeaderStuck
30
- ? 'mono'
31
- : 'mono-light'
32
- "
36
+ color="mono"
33
37
  :href="backUrl || '/more'"
34
38
  :aria-label="breadcrumb?.title ?? $t('Back')"
35
39
  class="aw-page__back"
@@ -83,12 +87,6 @@
83
87
  {{ _title }}
84
88
  </div>
85
89
 
86
- <div
87
- ref="topScrollMark"
88
- class="aw-page__top-scroll-mark"
89
- aria-hidden="true"
90
- ></div>
91
-
92
90
  <div v-if="hasAside">
93
91
  <slot />
94
92
  </div>
@@ -47,6 +47,7 @@
47
47
  v-for="({ listeners, tooltip, ...attrs },
48
48
  i) in splitButtons.fixed"
49
49
  :key="i"
50
+ style="--btn-padding-x: 1rem"
50
51
  v-tooltip="tooltip"
51
52
  v-bind="attrs"
52
53
  auto-width
@@ -1,10 +1,17 @@
1
1
  <template>
2
2
  <div class="aw-page-single">
3
+ <div
4
+ ref="topScrollMark"
5
+ class="aw-page-single__top-scroll-mark"
6
+ aria-hidden="true"
7
+ ></div>
8
+
3
9
  <AwPageHeader
4
10
  ref="header"
5
11
  :progress="isDesktop ? headerProgress : null"
6
12
  :primary="isDesktop || isHeaderStuck"
7
13
  :title="_title"
14
+ :title-showable="!isDesktop"
8
15
  :hide-title="!isDesktop && !isHeaderStuck"
9
16
  :hide-menu="hideMenu"
10
17
  :is-stuck="isHeaderStuck"
@@ -13,9 +20,7 @@
13
20
  <template #breadcrumbs>
14
21
  <slot name="breadcrumb">
15
22
  <AwButton
16
- :color="
17
- isDesktop || isHeaderStuck ? 'mono-light' : 'mono'
18
- "
23
+ :color="isDesktop ? 'mono-light' : 'mono'"
19
24
  :href="backUrl"
20
25
  :aria-label="breadcrumb?.title ?? $t('Back')"
21
26
  v-on="backUrl ? null : { click: () => $router.back() }"
@@ -76,12 +81,6 @@
76
81
  {{ description }}
77
82
  </AwDescription>
78
83
 
79
- <div
80
- ref="topScrollMark"
81
- class="aw-page-single__top-scroll-mark"
82
- aria-hidden="true"
83
- ></div>
84
-
85
84
  <div
86
85
  class="aw-page-single__content"
87
86
  :class="{
@@ -4,7 +4,7 @@
4
4
  :class="{
5
5
  'aw-page-header--primary': primary,
6
6
  'aw-page-header--is-stuck': isStuck,
7
- 'aw-page-header--container': container !== 'full'
7
+ 'aw-page-header--container': isContainer
8
8
  }"
9
9
  :style="{ '--header-container-width': headerContainerWidth }"
10
10
  >
@@ -15,7 +15,11 @@
15
15
  <h1
16
16
  v-if="title"
17
17
  class="aw-page-header__title"
18
- :class="{ 'sr-only': hideTitle }"
18
+ :class="{
19
+ 'sr-only': !titleShowable && hideTitle,
20
+ 'aw-page-header__title--showable': titleShowable,
21
+ 'aw-page-header__title--visible': !hideTitle
22
+ }"
19
23
  >
20
24
  {{ title }}
21
25
  </h1>
@@ -63,11 +67,15 @@ export default {
63
67
 
64
68
  hideTitle: Boolean,
65
69
 
70
+ titleShowable: Boolean,
71
+
66
72
  hideMenu: Boolean,
67
73
 
68
74
  primary: Boolean,
69
75
 
70
- isStuck: Boolean
76
+ isStuck: Boolean,
77
+
78
+ isContainer: Boolean
71
79
  },
72
80
 
73
81
  computed: {
@@ -85,6 +93,8 @@ export default {
85
93
  case 'small':
86
94
  name = '--container-small-width'
87
95
  break
96
+ case 'full':
97
+ return '100%'
88
98
  }
89
99
 
90
100
  return name
@@ -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, 7] } : null
16
+ tooltip ? { content: text, offset: [0, 7], class: 'aw-icon-menu-item-tooltip' } : null
17
17
  "
18
18
  >
19
19
  <AwIcon
@@ -23,7 +23,7 @@
23
23
  >
24
24
  <AwIcon v-if="item.icon" size="16" :name="item.icon" />
25
25
  <span
26
- v-tooltip="tooltips[i]"
26
+ v-tooltip.prepend="tooltips[i]"
27
27
  :[$options.TOOLTIP_EL_ATTR]="i"
28
28
  >
29
29
  {{ item.text }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awes-io/ui",
3
- "version": "2.111.0",
3
+ "version": "2.112.1",
4
4
  "description": "User Interface (UI) components",
5
5
  "keywords": [
6
6
  "ui",
@@ -114,5 +114,5 @@
114
114
  "rollup-plugin-visualizer": "^2.6.0",
115
115
  "rollup-plugin-vue": "^5.0.1"
116
116
  },
117
- "gitHead": "4425bd4d524a3818f1fff86daa9af1ee732bbb57"
117
+ "gitHead": "2bc3682b3eb1b0873c37918e8254b65c9e97a62e"
118
118
  }
@@ -13,6 +13,8 @@ module.exports = {
13
13
  focusOutline: (theme) => `2px dashed ${theme('colors.info')}`,
14
14
  borderRadius: {
15
15
  none: '0',
16
+ '10': '10px',
17
+ '15': '15px',
16
18
  default: '.125rem',
17
19
  md: '.25rem',
18
20
  lg: '.375rem',