@agorapulse/ui-theme 22.0.0 → 22.0.2-beta.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/agorapulse-ui-theme-22.0.2-beta.1.tgz +0 -0
- package/assets/desktop_variables.css +457 -538
- package/assets/mobile_variables.css +457 -538
- package/assets/style/_button-mixins.scss +92 -33
- package/assets/style/_link.scss +35 -31
- package/assets/style/_select.scss +69 -65
- package/assets/style/_tooltip.scss +21 -21
- package/assets/style/components-custom-style/_input.scss +28 -18
- package/assets/style/css-ui/_action-dropdown.scss +21 -16
- package/assets/style/css-ui/_badge.scss +12 -11
- package/assets/style/css-ui/_button.scss +95 -17
- package/assets/style/css-ui/_checkbox.scss +35 -32
- package/assets/style/css-ui/_counter.scss +30 -29
- package/assets/style/css-ui/_icon-button.scss +62 -16
- package/assets/style/css-ui/_input.scss +39 -27
- package/assets/style/css-ui/_label.scss +14 -17
- package/assets/style/css-ui/_link.scss +36 -31
- package/assets/style/css-ui/_radio-card.scss +26 -18
- package/assets/style/css-ui/_radio.scss +37 -23
- package/assets/style/css-ui/_select.scss +84 -71
- package/assets/style/css-ui/_selection-dropdown.scss +57 -20
- package/assets/style/css-ui/_snackbar.scss +2 -2
- package/assets/style/css-ui/_split-button.scss +14 -4
- package/assets/style/css-ui/_status.scss +29 -26
- package/assets/style/css-ui/_tabs.scss +64 -56
- package/assets/style/css-ui/_tag.scss +43 -45
- package/assets/style/css-ui/_textarea.scss +30 -24
- package/assets/style/css-ui/_toggle.scss +30 -21
- package/assets/style/css-ui/_tooltip.scss +16 -17
- package/assets/style/css-ui/index.css +620 -543
- package/assets/style/css-ui/index.css.map +1 -1
- package/package.json +1 -1
- package/src/build.js +3 -1
- package/src/desktop_config.js +2 -1
- package/src/formats.js +36 -0
- package/src/mobile_config.js +2 -1
- package/src/tokens/components/button.json +1 -1
- package/src/tokens/components/icon-button.json +1 -1
- package/src/tokens/reference/animation.json +5 -0
- package/src/tokens/system/color-border.json +78 -0
- package/src/tokens/system/color-icon.json +78 -0
- package/src/tokens/system/color-link.json +23 -0
- package/src/tokens/system/color-surface.json +120 -0
- package/src/tokens/system/color-text.json +78 -0
- package/src/tokens/system/height.json +15 -0
- package/src/tokens/system/motion.json +12 -0
- package/src/tokens/system/radius.json +12 -0
- package/src/tokens/system/spacing.json +25 -0
- package/agorapulse-ui-theme-22.0.0.tgz +0 -0
- package/src/tokens/components/badge.json +0 -53
- package/src/tokens/components/counter.json +0 -108
- package/src/tokens/components/label.json +0 -56
- package/src/tokens/components/link.json +0 -127
- package/src/tokens/components/status-card.json +0 -187
- package/src/tokens/components/status.json +0 -129
- package/src/tokens/components/tabs.json +0 -136
- package/src/tokens/components/tag.json +0 -194
- package/src/tokens/components/tooltip.json +0 -36
|
@@ -1,20 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// Shades are parameters so the Button can follow the design's ramp without moving
|
|
2
|
+
// Split-button, which shares this mixin. Defaults reproduce the previous behaviour.
|
|
3
|
+
// $focus defaults to null: no focus rule is emitted unless a caller asks for one.
|
|
4
|
+
@mixin btn-primary-color(
|
|
5
|
+
$color,
|
|
6
|
+
$default-shade: 100,
|
|
7
|
+
$hover-shade: 80,
|
|
8
|
+
$clicked-shade: 60,
|
|
9
|
+
$disabled-shade: 20,
|
|
10
|
+
$loading-shade: 60,
|
|
11
|
+
$focus-shade: null
|
|
12
|
+
) {
|
|
13
|
+
background: var(--ref-color-#{$color}-#{$default-shade});
|
|
3
14
|
|
|
4
15
|
&:hover {
|
|
5
|
-
background-color: var(--ref-color-#{$color}-
|
|
16
|
+
background-color: var(--ref-color-#{$color}-#{$hover-shade});
|
|
6
17
|
}
|
|
7
18
|
|
|
8
19
|
&:active:not(:disabled) {
|
|
9
|
-
background-color: var(--ref-color-#{$color}-
|
|
20
|
+
background-color: var(--ref-color-#{$color}-#{$clicked-shade});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@if $focus-shade {
|
|
24
|
+
&:focus:not(:disabled):not(:active) {
|
|
25
|
+
background-color: var(--ref-color-#{$color}-#{$focus-shade});
|
|
26
|
+
}
|
|
10
27
|
}
|
|
11
28
|
|
|
12
29
|
&:disabled {
|
|
13
|
-
background-color: var(--ref-color-#{$color}-
|
|
30
|
+
background-color: var(--ref-color-#{$color}-#{$disabled-shade});
|
|
14
31
|
}
|
|
15
32
|
|
|
16
33
|
&.loading {
|
|
17
|
-
background-color: var(--ref-color-#{$color}-
|
|
34
|
+
background-color: var(--ref-color-#{$color}-#{$loading-shade});
|
|
18
35
|
}
|
|
19
36
|
|
|
20
37
|
.loading-bar {
|
|
@@ -22,37 +39,48 @@
|
|
|
22
39
|
}
|
|
23
40
|
}
|
|
24
41
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
42
|
+
// Shades parameterised for the same reason as btn-primary-color; defaults unchanged.
|
|
43
|
+
@mixin btn-secondary-color(
|
|
44
|
+
$color,
|
|
45
|
+
$surface-shade: 10,
|
|
46
|
+
$content-shade: 100,
|
|
47
|
+
$hover-shade: 20,
|
|
48
|
+
$clicked-shade: 40,
|
|
49
|
+
$focus-shade: 10,
|
|
50
|
+
$disabled-surface-shade: 10,
|
|
51
|
+
$disabled-content-shade: 20,
|
|
52
|
+
$loading-shade: 40
|
|
53
|
+
) {
|
|
54
|
+
background: var(--ref-color-#{$color}-#{$surface-shade});
|
|
55
|
+
color: var(--ref-color-#{$color}-#{$content-shade});
|
|
28
56
|
|
|
29
57
|
ap-symbol {
|
|
30
|
-
color: var(--ref-color-#{$color}-
|
|
58
|
+
color: var(--ref-color-#{$color}-#{$content-shade});
|
|
31
59
|
}
|
|
32
60
|
|
|
33
61
|
&:hover {
|
|
34
|
-
background-color: var(--ref-color-#{$color}-
|
|
62
|
+
background-color: var(--ref-color-#{$color}-#{$hover-shade});
|
|
35
63
|
}
|
|
36
64
|
|
|
37
65
|
&:active:not(:disabled) {
|
|
38
|
-
background-color: var(--ref-color-#{$color}-
|
|
66
|
+
background-color: var(--ref-color-#{$color}-#{$clicked-shade});
|
|
39
67
|
}
|
|
40
68
|
|
|
41
69
|
&:focus:not(:disabled):not(:active) {
|
|
42
|
-
background-color: var(--ref-color-#{$color}-
|
|
70
|
+
background-color: var(--ref-color-#{$color}-#{$focus-shade});
|
|
43
71
|
}
|
|
44
72
|
|
|
45
73
|
&:disabled {
|
|
46
|
-
background-color: var(--ref-color-#{$color}-
|
|
47
|
-
color: var(--ref-color-#{$color}-
|
|
74
|
+
background-color: var(--ref-color-#{$color}-#{$disabled-surface-shade});
|
|
75
|
+
color: var(--ref-color-#{$color}-#{$disabled-content-shade});
|
|
48
76
|
|
|
49
77
|
ap-symbol {
|
|
50
|
-
color: var(--ref-color-#{$color}-
|
|
78
|
+
color: var(--ref-color-#{$color}-#{$disabled-content-shade});
|
|
51
79
|
}
|
|
52
80
|
}
|
|
53
81
|
|
|
54
82
|
&.loading {
|
|
55
|
-
background-color: var(--ref-color-#{$color}-
|
|
83
|
+
background-color: var(--ref-color-#{$color}-#{$loading-shade});
|
|
56
84
|
}
|
|
57
85
|
|
|
58
86
|
.loading-bar {
|
|
@@ -67,7 +95,10 @@
|
|
|
67
95
|
$hover-border-shade: 80,
|
|
68
96
|
$active-border-shade: 100,
|
|
69
97
|
$focus-border-shade: 60,
|
|
70
|
-
$loading-bar-shade: 100
|
|
98
|
+
$loading-bar-shade: 100,
|
|
99
|
+
$disabled-shade: 20,
|
|
100
|
+
$loading-border-shade: 20,
|
|
101
|
+
$loading-content-shade: 40
|
|
71
102
|
) {
|
|
72
103
|
border-color: var(--ref-color-#{$color}-#{$border-color-shade});
|
|
73
104
|
color: var(--ref-color-#{$color}-#{$text-color-shade});
|
|
@@ -89,20 +120,20 @@
|
|
|
89
120
|
}
|
|
90
121
|
|
|
91
122
|
&:disabled {
|
|
92
|
-
border-color: var(--ref-color-#{$color}-
|
|
93
|
-
color: var(--ref-color-#{$color}-
|
|
123
|
+
border-color: var(--ref-color-#{$color}-#{$disabled-shade});
|
|
124
|
+
color: var(--ref-color-#{$color}-#{$disabled-shade});
|
|
94
125
|
|
|
95
126
|
ap-symbol {
|
|
96
|
-
color: var(--ref-color-#{$color}-
|
|
127
|
+
color: var(--ref-color-#{$color}-#{$disabled-shade});
|
|
97
128
|
}
|
|
98
129
|
}
|
|
99
130
|
|
|
100
131
|
&.loading {
|
|
101
|
-
border-color: var(--ref-color-#{$color}-
|
|
102
|
-
color: var(--ref-color-#{$color}-
|
|
132
|
+
border-color: var(--ref-color-#{$color}-#{$loading-border-shade});
|
|
133
|
+
color: var(--ref-color-#{$color}-#{$loading-content-shade});
|
|
103
134
|
|
|
104
135
|
ap-symbol {
|
|
105
|
-
color: var(--ref-color-#{$color}-
|
|
136
|
+
color: var(--ref-color-#{$color}-#{$loading-content-shade});
|
|
106
137
|
}
|
|
107
138
|
}
|
|
108
139
|
|
|
@@ -193,7 +224,7 @@
|
|
|
193
224
|
}
|
|
194
225
|
}
|
|
195
226
|
|
|
196
|
-
@mixin icon-btn-color($base, $hover-bg: 10, $active-bg: 20) {
|
|
227
|
+
@mixin icon-btn-color($base, $hover-bg: 10, $active-bg: 20, $content-shade: 100, $disabled-shade: 20) {
|
|
197
228
|
&:hover:not(.stroked):not(:disabled) {
|
|
198
229
|
background: var(--ref-color-#{$base}-#{$hover-bg});
|
|
199
230
|
}
|
|
@@ -203,32 +234,60 @@
|
|
|
203
234
|
}
|
|
204
235
|
|
|
205
236
|
&:disabled {
|
|
206
|
-
border-color: var(--ref-color-#{$base}-
|
|
237
|
+
border-color: var(--ref-color-#{$base}-#{$disabled-shade});
|
|
207
238
|
ap-symbol {
|
|
208
|
-
color: var(--ref-color-#{$base}-
|
|
239
|
+
color: var(--ref-color-#{$base}-#{$disabled-shade});
|
|
209
240
|
}
|
|
210
241
|
}
|
|
211
242
|
|
|
212
243
|
|
|
213
244
|
ap-symbol {
|
|
214
|
-
color: var(--ref-color-#{$base}-
|
|
245
|
+
color: var(--ref-color-#{$base}-#{$content-shade});
|
|
215
246
|
}
|
|
216
247
|
}
|
|
217
248
|
|
|
218
|
-
|
|
249
|
+
// Shades parameterised so the stroked colour variants can follow Figma's
|
|
250
|
+
// `button/tertiary/<hue>/*` ramp; the defaults reproduce the previous output.
|
|
251
|
+
// `$content-shade` is opt-in: without it the glyph keeps whatever
|
|
252
|
+
// `icon-btn-color` set, which is what the un-respecified hues still want.
|
|
253
|
+
@mixin icon-btn-stroked-color(
|
|
254
|
+
$base,
|
|
255
|
+
$default-shade: 100,
|
|
256
|
+
$hover-shade: 60,
|
|
257
|
+
$active-shade: 100,
|
|
258
|
+
$disabled-shade: 20,
|
|
259
|
+
$content-shade: null,
|
|
260
|
+
$focus-shade: null
|
|
261
|
+
) {
|
|
219
262
|
&:not(.loading):not(.locked):not(:disabled) {
|
|
220
|
-
border-color: var(--ref-color-#{$base}-
|
|
263
|
+
border-color: var(--ref-color-#{$base}-#{$default-shade});
|
|
221
264
|
|
|
222
265
|
&:hover:not(.locked):not(:disabled) {
|
|
223
|
-
border-color: var(--ref-color-#{$base}-
|
|
266
|
+
border-color: var(--ref-color-#{$base}-#{$hover-shade});
|
|
224
267
|
}
|
|
225
268
|
|
|
226
269
|
&:active:not(.locked):not(:disabled) {
|
|
227
|
-
border-color: var(--ref-color-#{$base}-
|
|
270
|
+
border-color: var(--ref-color-#{$base}-#{$active-shade});
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
@if $focus-shade {
|
|
274
|
+
&:focus:not(.locked):not(:disabled):not(:active) {
|
|
275
|
+
border-color: var(--ref-color-#{$base}-#{$focus-shade});
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
@if $content-shade {
|
|
281
|
+
ap-symbol {
|
|
282
|
+
color: var(--ref-color-#{$base}-#{$content-shade});
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
&:disabled ap-symbol {
|
|
286
|
+
color: var(--ref-color-#{$base}-#{$disabled-shade});
|
|
228
287
|
}
|
|
229
288
|
}
|
|
230
289
|
|
|
231
290
|
&:disabled {
|
|
232
|
-
border-color: var(--ref-color-#{$base}-
|
|
291
|
+
border-color: var(--ref-color-#{$base}-#{$disabled-shade});
|
|
233
292
|
}
|
|
234
293
|
}
|
package/assets/style/_link.scss
CHANGED
|
@@ -1,70 +1,74 @@
|
|
|
1
|
+
// Colours come from the semantic `color/link/*` family (V2 Style Guide - Tokens,
|
|
2
|
+
// node 1193:11239). The five typographic rows of that frame map onto the variants
|
|
3
|
+
// here: Subtitle -> `big`, Body -> base, Caption -> `small`, Body Bold ->
|
|
4
|
+
// `standalone`, Caption Bold -> `standalone.small`.
|
|
1
5
|
a {
|
|
2
6
|
display: inline-flex;
|
|
3
|
-
gap: var(--
|
|
4
|
-
font-family: var(--
|
|
5
|
-
font-weight: var(--
|
|
6
|
-
line-height: var(--
|
|
7
|
-
font-size: var(--
|
|
7
|
+
gap: var(--ref-spacing-xxxs);
|
|
8
|
+
font-family: var(--sys-text-style-body-font-family);
|
|
9
|
+
font-weight: var(--sys-text-style-body-weight);
|
|
10
|
+
line-height: var(--sys-text-style-body-line-height);
|
|
11
|
+
font-size: var(--sys-text-style-body-size);
|
|
8
12
|
align-items: center;
|
|
9
13
|
text-decoration: underline;
|
|
10
14
|
-webkit-tap-highlight-color: transparent;
|
|
11
15
|
cursor: pointer;
|
|
12
16
|
|
|
13
17
|
&.small {
|
|
14
|
-
font-family: var(--
|
|
15
|
-
font-weight: var(--
|
|
16
|
-
line-height: var(--
|
|
17
|
-
font-size: var(--
|
|
18
|
+
font-family: var(--sys-text-style-caption-font-family);
|
|
19
|
+
font-weight: var(--sys-text-style-caption-weight);
|
|
20
|
+
line-height: var(--sys-text-style-caption-line-height);
|
|
21
|
+
font-size: var(--sys-text-style-caption-size);
|
|
18
22
|
}
|
|
19
23
|
|
|
20
24
|
&.big {
|
|
21
|
-
font-family: var(--
|
|
22
|
-
font-weight: var(--
|
|
23
|
-
line-height: var(--
|
|
24
|
-
font-size: var(--
|
|
25
|
+
font-family: var(--sys-text-style-subtitle-font-family);
|
|
26
|
+
font-weight: var(--sys-text-style-subtitle-weight);
|
|
27
|
+
line-height: var(--sys-text-style-subtitle-line-height);
|
|
28
|
+
font-size: var(--sys-text-style-subtitle-size);
|
|
25
29
|
}
|
|
26
30
|
|
|
27
31
|
&.standalone {
|
|
28
32
|
text-decoration: none;
|
|
29
|
-
font-family: var(--
|
|
30
|
-
font-weight: var(--
|
|
31
|
-
line-height: var(--
|
|
32
|
-
font-size: var(--
|
|
33
|
-
color: var(--
|
|
33
|
+
font-family: var(--sys-text-style-body-bold-font-family);
|
|
34
|
+
font-weight: var(--sys-text-style-body-bold-weight);
|
|
35
|
+
line-height: var(--sys-text-style-body-bold-line-height);
|
|
36
|
+
font-size: var(--sys-text-style-body-bold-size);
|
|
37
|
+
color: var(--sys-color-link-default);
|
|
34
38
|
|
|
35
39
|
&.small {
|
|
36
|
-
font-family: var(--
|
|
37
|
-
font-weight: var(--
|
|
38
|
-
line-height: var(--
|
|
39
|
-
font-size: var(--
|
|
40
|
+
font-family: var(--sys-text-style-caption-bold-font-family);
|
|
41
|
+
font-weight: var(--sys-text-style-caption-bold-weight);
|
|
42
|
+
line-height: var(--sys-text-style-caption-bold-line-height);
|
|
43
|
+
font-size: var(--sys-text-style-caption-bold-size);
|
|
40
44
|
}
|
|
41
45
|
}
|
|
42
46
|
|
|
43
47
|
&:not(:visited) {
|
|
44
|
-
color: var(--
|
|
48
|
+
color: var(--sys-color-link-default);
|
|
45
49
|
}
|
|
46
50
|
|
|
47
51
|
&:hover {
|
|
48
|
-
color: var(--
|
|
52
|
+
color: var(--sys-color-link-hovered);
|
|
49
53
|
}
|
|
50
54
|
|
|
51
55
|
&:active:not(:visited):not([disabled='true']) {
|
|
52
|
-
color: var(--
|
|
56
|
+
color: var(--sys-color-link-clicked);
|
|
53
57
|
}
|
|
54
58
|
|
|
55
59
|
&:visited:not(.standalone) {
|
|
56
|
-
color: var(--
|
|
60
|
+
color: var(--sys-color-link-visited);
|
|
57
61
|
}
|
|
58
62
|
|
|
59
63
|
&[disabled='true'] {
|
|
60
|
-
color: var(--
|
|
64
|
+
color: var(--sys-color-link-disabled);
|
|
61
65
|
pointer-events: none;
|
|
62
66
|
}
|
|
63
67
|
|
|
64
68
|
ap-symbol {
|
|
65
|
-
min-width: var(--
|
|
66
|
-
min-height: var(--
|
|
67
|
-
max-width: var(--
|
|
68
|
-
max-height: var(--
|
|
69
|
+
min-width: var(--sys-icon-md);
|
|
70
|
+
min-height: var(--sys-icon-md);
|
|
71
|
+
max-width: var(--sys-icon-md);
|
|
72
|
+
max-height: var(--sys-icon-md);
|
|
69
73
|
}
|
|
70
74
|
}
|