@awes-io/ui 2.145.9 → 2.147.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 +23 -0
- package/assets/css/components/action-button.css +83 -13
- package/assets/css/components/alert.css +5 -0
- package/assets/css/components/button-nav.css +87 -0
- package/assets/css/components/button.css +16 -0
- package/assets/css/components/card.css +29 -0
- package/assets/css/components/icon-menu-item.css +1 -1
- package/assets/css/components/nav.css +6 -0
- package/assets/css/components/page-header.css +16 -0
- package/assets/css/components/page.css +9 -0
- package/assets/css/components/progress.css +22 -0
- package/assets/css/components/switch-field.css +36 -0
- package/assets/css/components/tags.css +31 -2
- package/assets/css/components/text-field.css +16 -0
- package/assets/css/fonts.css +44 -0
- package/assets/css/main.css +1 -0
- package/components/1_atoms/AwActionIcon.vue +2 -2
- package/components/1_atoms/AwCard.vue +14 -3
- package/components/1_atoms/AwProgress.vue +9 -0
- package/components/1_atoms/AwSwitcher.vue +4 -1
- package/components/1_atoms/AwTag.vue +44 -2
- package/components/2_molecules/AwActionButton.vue +39 -11
- package/components/2_molecules/AwButton.vue +9 -1
- package/components/4_pages/AwPage.vue +66 -22
- package/components/5_layouts/AwLayoutProvider.vue +1 -1
- package/components/5_layouts/_AwNav.vue +15 -0
- package/docs/components/atoms/aw-action-icon.md +1 -1
- package/docs/components/atoms/aw-card.md +11 -0
- package/docs/components/atoms/aw-input.md +1 -0
- package/docs/components/atoms/aw-progress.md +9 -0
- package/docs/components/atoms/aw-tag.md +23 -2
- package/docs/components/layouts/aw-layout-provider.md +2 -1
- package/docs/components/molecules/aw-action-button.md +41 -1
- package/docs/components/molecules/aw-button.md +14 -0
- package/docs/components/pages/aw-page.md +10 -0
- package/docs/configuration.md +15 -6
- package/nuxt/awes.config.js +0 -1
- package/package.json +2 -2
- package/tailwind.config.js +2 -2
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.147.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.146.0...@awes-io/ui@2.147.0) (2026-12-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **ui:** title size of card, new look of button nav (EW-1433) ([d07c573](https://github.com/awes-io/client/commit/d07c5731b8cc2d322f1b4ce7f2d1e0427f95fb8f))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [2.146.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.145.9...@awes-io/ui@2.146.0) (2026-12-03)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **ui:** new options of tag, button, action button, page and menu (EW-1433) ([e90ce04](https://github.com/awes-io/client/commit/e90ce04fb8caa8d200d968743fe171f3ac3e0871))
|
|
23
|
+
* **ui:** use Inter from our CDN as the default font (EW-1433) ([a0c8fc4](https://github.com/awes-io/client/commit/a0c8fc48a270b78aa969cb78f5ff1d1327f760d3))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
6
29
|
## [2.145.9](https://github.com/awes-io/client/compare/@awes-io/ui@2.145.8...@awes-io/ui@2.145.9) (2026-11-22)
|
|
7
30
|
|
|
8
31
|
|
|
@@ -17,8 +17,18 @@
|
|
|
17
17
|
|
|
18
18
|
width: 100%;
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
transition: 120ms box-shadow;
|
|
21
|
+
|
|
22
|
+
&:where(label) {
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&__icon-right {
|
|
27
|
+
align-self: center;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&[aria-expanded='true'] &__icon-right {
|
|
31
|
+
transform: rotate(180deg);
|
|
22
32
|
}
|
|
23
33
|
|
|
24
34
|
&__icon-empty {
|
|
@@ -31,16 +41,6 @@
|
|
|
31
41
|
margin-left: -1rem;
|
|
32
42
|
}
|
|
33
43
|
|
|
34
|
-
&:hover &__icon-wrapper {
|
|
35
|
-
color: var(--bg-color);
|
|
36
|
-
background-color: var(--color);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&:focus-visible {
|
|
40
|
-
outline: 0;
|
|
41
|
-
box-shadow: 0 0 0 2px var(--c-mono-800) inset;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
44
|
&__text {
|
|
45
45
|
font-size: 1rem;
|
|
46
46
|
font-weight: 700;
|
|
@@ -61,10 +61,24 @@
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
&--outline {
|
|
64
|
-
box-shadow: 0 0 0
|
|
64
|
+
box-shadow: 0 0 0 1px var(--c-mono-800) inset;
|
|
65
65
|
background: transparent;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
&:where(:is(a, button, label):hover:not(:disabled)) {
|
|
69
|
+
box-shadow: 0 0 0 1px var(--c-mono-500) inset;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:focus-visible {
|
|
73
|
+
outline: 0;
|
|
74
|
+
box-shadow: 0 0 0 2px var(--c-mono-500) inset;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&--active,
|
|
78
|
+
&--active:where(:hover:not(:disabled)) {
|
|
79
|
+
box-shadow: 0 0 0 2px var(--c-mono-100) inset;
|
|
80
|
+
}
|
|
81
|
+
|
|
68
82
|
&--narrow {
|
|
69
83
|
padding: 1rem;
|
|
70
84
|
}
|
|
@@ -75,4 +89,60 @@
|
|
|
75
89
|
calc((var(--min-header-height) - var(--size)) / 2)
|
|
76
90
|
);
|
|
77
91
|
}
|
|
92
|
+
|
|
93
|
+
& > .aw-switch-field {
|
|
94
|
+
margin-top: calc((var(--min-header-height) - 1.25rem) / 2);
|
|
95
|
+
|
|
96
|
+
&:not(.is-switcher) .aw-switch-field__element {
|
|
97
|
+
width: 1.25rem;
|
|
98
|
+
height: 1.25rem;
|
|
99
|
+
mask-size: 100% 100%;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&--size-sm {
|
|
104
|
+
--min-header-height: 2.5rem;
|
|
105
|
+
|
|
106
|
+
column-gap: 0.75rem;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&--size-sm:where(&--narrow) {
|
|
110
|
+
padding: 0.75rem 0.875rem;
|
|
111
|
+
border-radius: 0.75rem;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&--size-sm &__text {
|
|
115
|
+
font-size: 0.9375rem;
|
|
116
|
+
font-weight: 600;
|
|
117
|
+
line-height: 1.35;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&--size-sm &__icon-empty + &__text {
|
|
121
|
+
margin-left: -0.75rem;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&--size-sm &__description,
|
|
125
|
+
&--size-sm &__subdescription {
|
|
126
|
+
font-size: 0.8125rem;
|
|
127
|
+
line-height: 1.4;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&--size-sm &__description {
|
|
131
|
+
margin-top: 0.125rem;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&--size-sm &__subdescription {
|
|
135
|
+
padding-top: 0.625rem;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&--size-sm > .aw-action-icon {
|
|
139
|
+
width: 2.5rem;
|
|
140
|
+
margin-top: 0;
|
|
141
|
+
border-radius: 0.75rem;
|
|
142
|
+
|
|
143
|
+
.aw-action-icon__icon {
|
|
144
|
+
width: 1.25rem;
|
|
145
|
+
height: 1.25rem;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
78
148
|
}
|
|
@@ -241,3 +241,90 @@
|
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
|
+
|
|
245
|
+
.aw-slider.aw-button-nav {
|
|
246
|
+
border-radius: 0.75rem;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
:where(.aw-slider) .aw-button-nav__toggler {
|
|
250
|
+
padding: 0.1875rem 0.0625rem;
|
|
251
|
+
|
|
252
|
+
border: 0;
|
|
253
|
+
background-color: rgba(var(--c-mono-100-rgb), 0.05);
|
|
254
|
+
|
|
255
|
+
font-size: 0.84375rem;
|
|
256
|
+
font-weight: 500;
|
|
257
|
+
|
|
258
|
+
&:first-child {
|
|
259
|
+
padding-left: 0.1875rem;
|
|
260
|
+
|
|
261
|
+
border: 0;
|
|
262
|
+
border-radius: 0.75rem 0 0 0.75rem;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
&:last-child {
|
|
266
|
+
padding-right: 0.1875rem;
|
|
267
|
+
|
|
268
|
+
border: 0;
|
|
269
|
+
border-radius: 0 0.75rem 0.75rem 0;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
&:only-child {
|
|
273
|
+
border-radius: 0.75rem;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
& > span {
|
|
277
|
+
min-width: 0;
|
|
278
|
+
min-height: 2.125rem;
|
|
279
|
+
padding-left: 0.75rem;
|
|
280
|
+
padding-right: 0.75rem;
|
|
281
|
+
|
|
282
|
+
border-radius: 0.5625rem;
|
|
283
|
+
|
|
284
|
+
color: var(--c-mono-300);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
& .aw-icon.mr-1 {
|
|
288
|
+
margin-right: 0;
|
|
289
|
+
margin-inline-end: 0.375rem;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
:where(.aw-slider) .aw-button-nav__toggler_no_text > span {
|
|
294
|
+
padding-left: 0.625rem;
|
|
295
|
+
padding-right: 0.625rem;
|
|
296
|
+
|
|
297
|
+
font-size: 1rem;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
:where(.aw-slider) .aw-button-nav__toggler_active > span {
|
|
301
|
+
border-radius: 0.5625rem;
|
|
302
|
+
box-shadow: none;
|
|
303
|
+
|
|
304
|
+
color: var(--c-on-surface);
|
|
305
|
+
font-weight: 600;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
:where(.aw-slider).aw-button-nav--without-min-with .aw-button-nav__toggler > span {
|
|
309
|
+
min-width: 2.375rem;
|
|
310
|
+
padding-left: 0.5rem;
|
|
311
|
+
padding-right: 0.5rem;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
[dir='rtl'] :where(.aw-slider) .aw-button-nav__toggler:first-child {
|
|
315
|
+
padding-left: 0.0625rem;
|
|
316
|
+
padding-right: 0.1875rem;
|
|
317
|
+
|
|
318
|
+
border-radius: 0 0.75rem 0.75rem 0;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
[dir='rtl'] :where(.aw-slider) .aw-button-nav__toggler:last-child {
|
|
322
|
+
padding-left: 0.1875rem;
|
|
323
|
+
padding-right: 0.0625rem;
|
|
324
|
+
|
|
325
|
+
border-radius: 0.75rem 0 0 0.75rem;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
[dir='rtl'] :where(.aw-slider) .aw-button-nav__toggler:only-child {
|
|
329
|
+
border-radius: 0.75rem;
|
|
330
|
+
}
|
|
@@ -221,7 +221,12 @@
|
|
|
221
221
|
--icon-color: var(--c-mono-400);
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
+
&--corners-pill {
|
|
225
|
+
--btn-radius: 9999px;
|
|
226
|
+
}
|
|
227
|
+
|
|
224
228
|
&--theme-outline {
|
|
229
|
+
--btn-border-width: 1px;
|
|
225
230
|
--btn-bg-color: transparent;
|
|
226
231
|
--btn-color: var(--c-mono-100);
|
|
227
232
|
--btn-border-color: var(--c-mono-800);
|
|
@@ -229,6 +234,17 @@
|
|
|
229
234
|
--btn-border-hover-fallback: var(--c-mono-700);
|
|
230
235
|
}
|
|
231
236
|
|
|
237
|
+
&--color-surface:where(&--theme-solid) {
|
|
238
|
+
--btn-bg-color: var(--c-surface);
|
|
239
|
+
--btn-color: var(--c-on-surface);
|
|
240
|
+
--icon-color: var(--c-mono-400);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
&--color-surface:where(&--theme-outline) {
|
|
244
|
+
--btn-bg-color: var(--c-surface);
|
|
245
|
+
--btn-color: var(--c-on-surface);
|
|
246
|
+
}
|
|
247
|
+
|
|
232
248
|
&--theme-outline:where(:not(:disabled)):hover {
|
|
233
249
|
border-color: var(--btn-border-hover, var(--btn-border-hover-fallback));
|
|
234
250
|
}
|
|
@@ -16,6 +16,17 @@
|
|
|
16
16
|
display: flex;
|
|
17
17
|
align-items: center;
|
|
18
18
|
gap: 1rem;
|
|
19
|
+
|
|
20
|
+
font-size: 1rem;
|
|
21
|
+
line-height: 1.5;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&__heading {
|
|
25
|
+
margin: 0;
|
|
26
|
+
|
|
27
|
+
font-size: inherit;
|
|
28
|
+
font-weight: 700;
|
|
29
|
+
line-height: inherit;
|
|
19
30
|
}
|
|
20
31
|
|
|
21
32
|
&__header {
|
|
@@ -28,10 +39,28 @@
|
|
|
28
39
|
}
|
|
29
40
|
}
|
|
30
41
|
|
|
42
|
+
&__header--title-sm &__title {
|
|
43
|
+
font-size: 0.875rem;
|
|
44
|
+
line-height: 1.4285;
|
|
45
|
+
color: var(--c-mono-300);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&__header--title-sm &__heading {
|
|
49
|
+
font-weight: 600;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&__header--title-sm&__header--offset {
|
|
53
|
+
margin-bottom: 0.75rem;
|
|
54
|
+
}
|
|
55
|
+
|
|
31
56
|
&__header-badge {
|
|
32
57
|
flex-shrink: 0;
|
|
33
58
|
align-self: flex-start;
|
|
34
59
|
margin-left: auto;
|
|
60
|
+
|
|
61
|
+
&:empty {
|
|
62
|
+
display: none;
|
|
63
|
+
}
|
|
35
64
|
}
|
|
36
65
|
}
|
|
37
66
|
|
|
@@ -48,6 +48,18 @@
|
|
|
48
48
|
transition: 60ms box-shadow 120ms;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
&__heading {
|
|
52
|
+
display: contents;
|
|
53
|
+
|
|
54
|
+
&--described {
|
|
55
|
+
flex: 1 1 max-content;
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-direction: column;
|
|
58
|
+
gap: 0.25rem;
|
|
59
|
+
min-width: 0;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
51
63
|
&__title {
|
|
52
64
|
@apply font-body;
|
|
53
65
|
|
|
@@ -81,6 +93,10 @@
|
|
|
81
93
|
}
|
|
82
94
|
}
|
|
83
95
|
|
|
96
|
+
&__heading--described &__title {
|
|
97
|
+
flex: none;
|
|
98
|
+
}
|
|
99
|
+
|
|
84
100
|
&__breadcrumbs {
|
|
85
101
|
align-self: flex-start;
|
|
86
102
|
}
|
|
@@ -41,6 +41,14 @@
|
|
|
41
41
|
margin-bottom: 1.5rem;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
&__mobile-heading--described {
|
|
45
|
+
margin-bottom: 1.5rem;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&__mobile-heading--described &__mobile-title {
|
|
49
|
+
margin-bottom: 0.25rem;
|
|
50
|
+
}
|
|
51
|
+
|
|
44
52
|
&__top-scroll-mark {
|
|
45
53
|
height: 1px;
|
|
46
54
|
margin-bottom: -1px;
|
|
@@ -55,6 +63,7 @@
|
|
|
55
63
|
margin-right: 1rem;
|
|
56
64
|
}
|
|
57
65
|
|
|
66
|
+
&__mobile-heading,
|
|
58
67
|
&__mobile-title,
|
|
59
68
|
&__top-scroll-mark {
|
|
60
69
|
display: none;
|
|
@@ -20,4 +20,26 @@
|
|
|
20
20
|
left: 0;
|
|
21
21
|
z-index: 1;
|
|
22
22
|
}
|
|
23
|
+
|
|
24
|
+
&--size-md,
|
|
25
|
+
&--size-lg {
|
|
26
|
+
height: var(--progress-height);
|
|
27
|
+
border-radius: var(--progress-height);
|
|
28
|
+
|
|
29
|
+
&::after {
|
|
30
|
+
width: calc(var(--progress) * 100%);
|
|
31
|
+
height: 100%;
|
|
32
|
+
border-radius: inherit;
|
|
33
|
+
transform: none;
|
|
34
|
+
position: static;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&--size-md {
|
|
39
|
+
--progress-height: 0.375rem;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&--size-lg {
|
|
43
|
+
--progress-height: 0.625rem;
|
|
44
|
+
}
|
|
23
45
|
}
|
|
@@ -324,3 +324,39 @@
|
|
|
324
324
|
user-select: none;
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
|
+
|
|
328
|
+
[dir='rtl'] {
|
|
329
|
+
.aw-switch-field__element + .aw-switch-field__label {
|
|
330
|
+
padding-left: 0;
|
|
331
|
+
padding-right: theme('spacing.4', 1rem);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.aw-switch-field--sm .aw-switch-field__element:checked ~ .aw-switch-field__switch .aw-switch-field__switch-circle,
|
|
335
|
+
.aw-switch-field--lg .aw-switch-field__element:checked ~ .aw-switch-field__switch .aw-switch-field__switch-circle {
|
|
336
|
+
transform: translateX(-100%);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.aw-switch-field--md .aw-switch-field__element:checked ~ .aw-switch-field__switch .aw-switch-field__switch-circle {
|
|
340
|
+
transform: translateX(-108%);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.aw-switch-field--md .aw-switch-field__switch-icon--on {
|
|
344
|
+
left: auto;
|
|
345
|
+
right: 5px;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.aw-switch-field--md .aw-switch-field__switch-icon--off {
|
|
349
|
+
left: 5px;
|
|
350
|
+
right: auto;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.aw-switch-field--lg .aw-switch-field__switch-icon--on {
|
|
354
|
+
left: auto;
|
|
355
|
+
right: 4px;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.aw-switch-field--lg .aw-switch-field__switch-icon--off {
|
|
359
|
+
left: 4px;
|
|
360
|
+
right: auto;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
align-items: center;
|
|
11
11
|
gap: 0.5rem;
|
|
12
12
|
|
|
13
|
-
border-radius:
|
|
13
|
+
border-radius: 9999px;
|
|
14
14
|
padding: 0.25rem 1rem;
|
|
15
15
|
min-height: 2rem;
|
|
16
16
|
min-width: calc(
|
|
@@ -19,10 +19,35 @@
|
|
|
19
19
|
|
|
20
20
|
text-align: center;
|
|
21
21
|
font-size: 0.75rem;
|
|
22
|
-
font-weight:
|
|
22
|
+
font-weight: 600;
|
|
23
23
|
line-height: 1.25rem;
|
|
24
24
|
white-space: nowrap;
|
|
25
25
|
|
|
26
|
+
&--size-xs {
|
|
27
|
+
gap: 0.25rem;
|
|
28
|
+
min-height: 1.125rem;
|
|
29
|
+
padding: 0 0.4375rem;
|
|
30
|
+
font-size: 0.625rem;
|
|
31
|
+
line-height: 1;
|
|
32
|
+
font-weight: 700;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&--size-sm {
|
|
36
|
+
gap: 0.375rem;
|
|
37
|
+
min-height: 1.625rem;
|
|
38
|
+
padding: 0 0.75rem;
|
|
39
|
+
font-size: 0.75rem;
|
|
40
|
+
font-weight: 700;
|
|
41
|
+
letter-spacing: 0.02em;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&--size-lg {
|
|
45
|
+
gap: 0.4375rem;
|
|
46
|
+
min-height: 2.25rem;
|
|
47
|
+
padding: 0 0.875rem;
|
|
48
|
+
font-size: 0.8125rem;
|
|
49
|
+
}
|
|
50
|
+
|
|
26
51
|
&--clickable {
|
|
27
52
|
&:focus:not(:focus-visible) {
|
|
28
53
|
outline: none;
|
|
@@ -40,4 +65,8 @@
|
|
|
40
65
|
color: var(--c-on-surface);
|
|
41
66
|
}
|
|
42
67
|
}
|
|
68
|
+
|
|
69
|
+
.aw-tag--theme-soft {
|
|
70
|
+
color: var(--tag-dark-color, var(--tag-color));
|
|
71
|
+
}
|
|
43
72
|
}
|
|
@@ -116,6 +116,22 @@
|
|
|
116
116
|
color: var(--c-on-page-bg);
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
+
&--filled {
|
|
120
|
+
background-color: var(--c-mono-900);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&--filled,
|
|
124
|
+
&--filled:hover,
|
|
125
|
+
&--filled:focus-within {
|
|
126
|
+
border-color: transparent;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&--filled &__element,
|
|
130
|
+
&--filled &__postfix {
|
|
131
|
+
background-color: transparent;
|
|
132
|
+
color: var(--c-on-mono-900);
|
|
133
|
+
}
|
|
134
|
+
|
|
119
135
|
&__fake-input {
|
|
120
136
|
--icon-width: 2.5rem;
|
|
121
137
|
--icon-count: 0;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: 'Inter';
|
|
3
|
+
src: url('https://storage2.easyweek.io/fonts/inter/fonts_inter_Inter-VariableFont_opsz,wght.woff2') format('woff2');
|
|
4
|
+
font-weight: 400 700;
|
|
5
|
+
font-style: normal;
|
|
6
|
+
font-display: swap;
|
|
7
|
+
unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF, U+1EA0-1EF1, U+1F00-1FFF;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@font-face {
|
|
11
|
+
font-family: 'Inter';
|
|
12
|
+
src: url('https://storage2.easyweek.io/fonts/inter/distilled/inter-latin-ext-wght.woff2') format('woff2');
|
|
13
|
+
font-weight: 400 700;
|
|
14
|
+
font-style: normal;
|
|
15
|
+
font-display: swap;
|
|
16
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@font-face {
|
|
20
|
+
font-family: 'Inter';
|
|
21
|
+
src: url('https://storage2.easyweek.io/fonts/inter/distilled/inter-latin-wght.woff2') format('woff2');
|
|
22
|
+
font-weight: 400 700;
|
|
23
|
+
font-style: normal;
|
|
24
|
+
font-display: swap;
|
|
25
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@font-face {
|
|
29
|
+
font-family: 'Inter';
|
|
30
|
+
src: url('https://storage2.easyweek.io/fonts/inter/distilled/inter-cyrillic-ext-wght.woff2') format('woff2');
|
|
31
|
+
font-weight: 400 700;
|
|
32
|
+
font-style: normal;
|
|
33
|
+
font-display: swap;
|
|
34
|
+
unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@font-face {
|
|
38
|
+
font-family: 'Inter';
|
|
39
|
+
src: url('https://storage2.easyweek.io/fonts/inter/distilled/inter-cyrillic-wght.woff2') format('woff2');
|
|
40
|
+
font-weight: 400 700;
|
|
41
|
+
font-style: normal;
|
|
42
|
+
font-display: swap;
|
|
43
|
+
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
|
44
|
+
}
|
package/assets/css/main.css
CHANGED
|
@@ -131,8 +131,8 @@ export default {
|
|
|
131
131
|
if (isType('Number', this.size)) {
|
|
132
132
|
return {
|
|
133
133
|
size: this.size + 'px',
|
|
134
|
-
iconSize: Math.floor(this.size * 0.
|
|
135
|
-
radius: Math.floor(this.size * 0.
|
|
134
|
+
iconSize: Math.floor(this.size * 0.5) + 'px',
|
|
135
|
+
radius: Math.floor(this.size * 0.28) + 'px'
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
|
|
@@ -4,13 +4,16 @@
|
|
|
4
4
|
<div
|
|
5
5
|
v-if="showHeader"
|
|
6
6
|
class="aw-card__header"
|
|
7
|
-
:class="
|
|
7
|
+
:class="[
|
|
8
|
+
`aw-card__header--title-${titleSize}`,
|
|
9
|
+
{ 'aw-card__header--offset': hasContent }
|
|
10
|
+
]"
|
|
8
11
|
>
|
|
9
12
|
<div class="aw-card__title">
|
|
10
13
|
<slot name="title">
|
|
11
|
-
<
|
|
14
|
+
<Component :is="titleTag" class="aw-card__heading">
|
|
12
15
|
{{ title }}
|
|
13
|
-
</
|
|
16
|
+
</Component>
|
|
14
17
|
</slot>
|
|
15
18
|
|
|
16
19
|
<div class="aw-card__header-badge">
|
|
@@ -32,6 +35,7 @@
|
|
|
32
35
|
|
|
33
36
|
<script>
|
|
34
37
|
import AwDescription from '@AwAtoms/AwDescription.vue'
|
|
38
|
+
import { conf } from '@AwUtils/component'
|
|
35
39
|
|
|
36
40
|
export default {
|
|
37
41
|
name: 'AwCard',
|
|
@@ -56,6 +60,13 @@ export default {
|
|
|
56
60
|
default: ''
|
|
57
61
|
},
|
|
58
62
|
|
|
63
|
+
titleSize: {
|
|
64
|
+
type: String,
|
|
65
|
+
default() {
|
|
66
|
+
return conf(this, 'titleSize', 'md')
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
|
|
59
70
|
description: {
|
|
60
71
|
type: String,
|
|
61
72
|
default: ''
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
class="aw-progress"
|
|
4
|
+
:class="`aw-progress--size-${size}`"
|
|
4
5
|
:style="{ '--progress': progressRatio, '--color': fgColor }"
|
|
5
6
|
></div>
|
|
6
7
|
</template>
|
|
@@ -9,6 +10,7 @@
|
|
|
9
10
|
import anime from 'animejs'
|
|
10
11
|
import { clamp } from 'rambdax'
|
|
11
12
|
import { toColor } from '@AwUtils/styles'
|
|
13
|
+
import { conf } from '@AwUtils/component'
|
|
12
14
|
|
|
13
15
|
export default {
|
|
14
16
|
name: 'AwProgress',
|
|
@@ -27,6 +29,13 @@ export default {
|
|
|
27
29
|
color: {
|
|
28
30
|
type: String,
|
|
29
31
|
default: 'accent'
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
size: {
|
|
35
|
+
type: String,
|
|
36
|
+
default() {
|
|
37
|
+
return conf(this, 'size', 'sm')
|
|
38
|
+
}
|
|
30
39
|
}
|
|
31
40
|
},
|
|
32
41
|
|