@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
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
@use 'mixins' as m;
|
|
3
3
|
|
|
4
4
|
// Textarea field container
|
|
5
|
+
//
|
|
6
|
+
// Same treatment as the input (V2 Style Guide - Tokens, node 1207:11220): the field
|
|
7
|
+
// is an input, so it reads the semantic `input/*` state matrix. The
|
|
8
|
+
// `--comp-forms-*` metrics stay — that tier is shared with select and the legacy
|
|
9
|
+
// input, which the frame does not cover.
|
|
5
10
|
.ap-textarea-field {
|
|
6
11
|
display: flex;
|
|
7
12
|
flex-direction: column;
|
|
@@ -16,7 +21,7 @@
|
|
|
16
21
|
font-weight: var(--comp-forms-label-font-weight);
|
|
17
22
|
line-height: var(--comp-forms-label-line-height);
|
|
18
23
|
font-family: var(--comp-forms-label-font-family);
|
|
19
|
-
color: var(--
|
|
24
|
+
color: var(--sys-color-text-default);
|
|
20
25
|
|
|
21
26
|
// Description — implicit > label > small
|
|
22
27
|
> small {
|
|
@@ -24,7 +29,7 @@
|
|
|
24
29
|
font-weight: var(--comp-forms-label-description-text-font-weight);
|
|
25
30
|
line-height: var(--comp-forms-label-description-text-line-height);
|
|
26
31
|
font-family: var(--comp-forms-label-description-text-font-family);
|
|
27
|
-
color: var(--
|
|
32
|
+
color: var(--sys-color-text-secondary);
|
|
28
33
|
}
|
|
29
34
|
}
|
|
30
35
|
|
|
@@ -33,52 +38,52 @@
|
|
|
33
38
|
resize: none;
|
|
34
39
|
width: 100%;
|
|
35
40
|
min-width: 256px;
|
|
36
|
-
border: 1px solid var(--
|
|
37
|
-
background-color: var(--
|
|
41
|
+
border: 1px solid var(--sys-color-border-input-default);
|
|
42
|
+
background-color: var(--sys-color-surface-interactive-default);
|
|
38
43
|
padding: var(--ref-spacing-xxs) var(--ref-spacing-xs);
|
|
39
|
-
border-radius: var(--
|
|
44
|
+
border-radius: var(--sys-radius-inner);
|
|
40
45
|
font-family: var(--comp-input-text-font-family);
|
|
41
46
|
font-size: var(--comp-input-text-size);
|
|
42
47
|
font-weight: var(--comp-input-text-font-weight);
|
|
43
|
-
color: var(--
|
|
48
|
+
color: var(--sys-color-text-default);
|
|
44
49
|
box-sizing: border-box;
|
|
45
50
|
outline: none;
|
|
46
51
|
|
|
47
52
|
&::placeholder {
|
|
48
|
-
color: var(--
|
|
53
|
+
color: var(--sys-color-text-subtle);
|
|
49
54
|
}
|
|
50
55
|
|
|
51
|
-
|
|
52
|
-
|
|
56
|
+
// Hover, pressed and focus all outrank the invalid/valid rules below, which is
|
|
57
|
+
// how the design replaces the error or success border while the field is being
|
|
58
|
+
// interacted with — the message underneath keeps the red or green.
|
|
59
|
+
&:hover:not(:disabled) {
|
|
60
|
+
border-color: var(--sys-color-border-input-hovered);
|
|
53
61
|
}
|
|
54
62
|
|
|
55
63
|
&:active:not(:disabled) {
|
|
56
|
-
border-color: var(--
|
|
64
|
+
border-color: var(--sys-color-border-input-clicked);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&:focus:not(:disabled):not(:active) {
|
|
68
|
+
border-color: var(--sys-color-border-input-active);
|
|
57
69
|
}
|
|
58
70
|
|
|
59
71
|
&:disabled {
|
|
60
|
-
background-color: var(--
|
|
61
|
-
color: var(--
|
|
72
|
+
background-color: var(--sys-color-surface-input-disabled);
|
|
73
|
+
border-color: var(--sys-color-border-input-disabled);
|
|
74
|
+
color: var(--sys-color-text-interactive-disabled);
|
|
62
75
|
cursor: default;
|
|
63
76
|
}
|
|
64
77
|
}
|
|
65
78
|
|
|
66
79
|
// Invalid state — on container
|
|
67
80
|
&.invalid > textarea {
|
|
68
|
-
border-color: var(--
|
|
69
|
-
|
|
70
|
-
&:hover:not(:focus):not(:disabled) {
|
|
71
|
-
border-color: var(--comp-input-border-error-color);
|
|
72
|
-
}
|
|
81
|
+
border-color: var(--sys-color-border-error);
|
|
73
82
|
}
|
|
74
83
|
|
|
75
84
|
// Valid state — on container
|
|
76
85
|
&.valid > textarea {
|
|
77
|
-
border-color: var(--
|
|
78
|
-
|
|
79
|
-
&:hover:not(:focus):not(:disabled) {
|
|
80
|
-
border-color: var(--comp-input-border-success-color);
|
|
81
|
-
}
|
|
86
|
+
border-color: var(--sys-color-border-success);
|
|
82
87
|
}
|
|
83
88
|
|
|
84
89
|
// Resize variants — on container
|
|
@@ -104,14 +109,15 @@
|
|
|
104
109
|
font-size: var(--sys-text-style-caption-size);
|
|
105
110
|
font-weight: var(--sys-text-style-caption-weight);
|
|
106
111
|
line-height: var(--sys-text-style-caption-line-height);
|
|
107
|
-
color: var(--
|
|
112
|
+
color: var(--sys-color-text-secondary);
|
|
108
113
|
text-align: right;
|
|
109
114
|
|
|
115
|
+
// `warning` has no counterpart in the frame and keeps its own orange.
|
|
110
116
|
&.warning {
|
|
111
117
|
color: var(--ref-color-orange-100);
|
|
112
118
|
}
|
|
113
119
|
|
|
114
120
|
&.error {
|
|
115
|
-
color: var(--
|
|
121
|
+
color: var(--sys-color-text-error);
|
|
116
122
|
}
|
|
117
123
|
}
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
.ap-toggle-container {
|
|
5
5
|
display: flex;
|
|
6
6
|
align-items: center;
|
|
7
|
-
gap: var(--
|
|
7
|
+
gap: var(--sys-spacing-inline-icon-default);
|
|
8
8
|
cursor: pointer;
|
|
9
9
|
font-family: var(--sys-text-style-body-font-family);
|
|
10
10
|
font-size: var(--sys-text-style-body-size);
|
|
11
11
|
line-height: var(--sys-text-style-body-line-height);
|
|
12
|
-
color: var(--
|
|
12
|
+
color: var(--sys-color-text-interactive-default);
|
|
13
13
|
|
|
14
14
|
&:has(input:disabled) {
|
|
15
15
|
cursor: default;
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
width: 28px;
|
|
31
31
|
height: 12px;
|
|
32
32
|
border-radius: 16px;
|
|
33
|
-
background: var(--
|
|
33
|
+
background: var(--sys-color-border-input-default);
|
|
34
34
|
transition: background-color 0.25s;
|
|
35
35
|
flex-shrink: 0;
|
|
36
36
|
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
content: '';
|
|
40
40
|
width: 12px;
|
|
41
41
|
height: 12px;
|
|
42
|
-
background: var(--
|
|
42
|
+
background: var(--sys-color-surface-default);
|
|
43
43
|
border-radius: 100%;
|
|
44
44
|
position: absolute;
|
|
45
45
|
left: 2px;
|
|
@@ -57,23 +57,28 @@
|
|
|
57
57
|
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11.394 12.525a.8.8 0 1 0 1.131-1.13L9.131 8l3.394-3.394a.8.8 0 0 0-1.13-1.131L8 6.869 4.606 3.474a.8.8 0 1 0-1.131 1.132L6.869 8l-3.395 3.394a.8.8 0 1 0 1.132 1.132L8 9.13l3.394 3.394Z'/%3E%3C/svg%3E");
|
|
58
58
|
mask-size: contain;
|
|
59
59
|
mask-repeat: no-repeat;
|
|
60
|
-
background-color: var(--
|
|
60
|
+
background-color: var(--sys-color-icon-interactive-default);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
// Hover
|
|
65
|
-
&:hover:not(:has(input:disabled)) > i
|
|
66
|
-
|
|
64
|
+
// Hover and focus share a shade — that is what the design's focused row shows.
|
|
65
|
+
&:hover:not(:has(input:disabled)) > i,
|
|
66
|
+
&:has(input:focus-visible):not(:has(input:disabled)) > i {
|
|
67
|
+
background: var(--sys-color-border-input-hovered);
|
|
67
68
|
}
|
|
68
69
|
|
|
69
|
-
|
|
70
|
-
&:
|
|
71
|
-
background: var(--
|
|
70
|
+
&:hover:not(:has(input:disabled)):has(input:checked) > i,
|
|
71
|
+
&:has(input:focus-visible):not(:has(input:disabled)):has(input:checked) > i {
|
|
72
|
+
background: var(--sys-color-border-input-active-hovered);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// Pressed — a distinct shade the unchecked side did not carry before.
|
|
76
|
+
&:active:not(:has(input:disabled)) > i {
|
|
77
|
+
background: var(--sys-color-border-input-clicked);
|
|
72
78
|
}
|
|
73
79
|
|
|
74
|
-
// Active state (checked)
|
|
75
80
|
&:active:not(:has(input:disabled)):has(input:checked) > i {
|
|
76
|
-
background: var(--
|
|
81
|
+
background: var(--sys-color-border-input-active-clicked);
|
|
77
82
|
}
|
|
78
83
|
|
|
79
84
|
// Focus ring (keyboard only)
|
|
@@ -83,7 +88,7 @@
|
|
|
83
88
|
|
|
84
89
|
// Checked state
|
|
85
90
|
&:has(input:checked) > i {
|
|
86
|
-
background: var(--
|
|
91
|
+
background: var(--sys-color-border-input-active);
|
|
87
92
|
|
|
88
93
|
&::before {
|
|
89
94
|
left: 18px;
|
|
@@ -92,22 +97,26 @@
|
|
|
92
97
|
&::after {
|
|
93
98
|
left: 19px;
|
|
94
99
|
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M14.238 3.337a.92.92 0 0 1 .025 1.301l-7.7 8a.92.92 0 0 1-1.326 0l-3.5-3.636a.92.92 0 1 1 1.326-1.276L5.9 10.674l7.037-7.312a.92.92 0 0 1 1.301-.025Z'/%3E%3C/svg%3E");
|
|
95
|
-
background-color: var(--
|
|
100
|
+
background-color: var(--sys-color-icon-interactive-active);
|
|
96
101
|
}
|
|
97
102
|
}
|
|
98
103
|
|
|
99
104
|
// Disabled state
|
|
100
105
|
&:has(input:disabled) > i {
|
|
101
|
-
background: var(--
|
|
106
|
+
background: var(--sys-color-border-input-disabled);
|
|
102
107
|
|
|
103
108
|
&::after {
|
|
104
|
-
background-color: var(--
|
|
109
|
+
background-color: var(--sys-color-icon-interactive-disabled);
|
|
105
110
|
}
|
|
106
111
|
}
|
|
107
112
|
|
|
108
|
-
// Disabled + checked
|
|
109
|
-
&:has(input:disabled:checked) > i
|
|
110
|
-
background
|
|
113
|
+
// Disabled + checked keeps a blue tint rather than going grey.
|
|
114
|
+
&:has(input:disabled:checked) > i {
|
|
115
|
+
background: var(--sys-color-border-input-active-disabled);
|
|
116
|
+
|
|
117
|
+
&::after {
|
|
118
|
+
background-color: var(--sys-color-icon-interactive-active-disabled);
|
|
119
|
+
}
|
|
111
120
|
}
|
|
112
121
|
|
|
113
122
|
// Label — implicit > span
|
|
@@ -125,7 +134,7 @@
|
|
|
125
134
|
}
|
|
126
135
|
|
|
127
136
|
&:has(input:disabled) > span {
|
|
128
|
-
color: var(--
|
|
137
|
+
color: var(--sys-color-text-interactive-disabled);
|
|
129
138
|
cursor: default;
|
|
130
139
|
}
|
|
131
140
|
}
|
|
@@ -16,8 +16,12 @@
|
|
|
16
16
|
|
|
17
17
|
width: fit-content;
|
|
18
18
|
max-width: 350px;
|
|
19
|
-
background: var(--
|
|
20
|
-
border-radius: var(--
|
|
19
|
+
background: var(--sys-color-surface-default);
|
|
20
|
+
border-radius: var(--sys-radius-inner);
|
|
21
|
+
// Shadow/Low (default) — the sys layer has no elevation token yet.
|
|
22
|
+
box-shadow:
|
|
23
|
+
0 4px 6px -2px rgba(52, 69, 99, 0.15),
|
|
24
|
+
0 4px 25px -2px rgba(52, 69, 99, 0.15);
|
|
21
25
|
// Viewport-relative, so a positioned host body (e.g. an Intercom banner margin) can't shift it.
|
|
22
26
|
position: fixed;
|
|
23
27
|
z-index: 9999999;
|
|
@@ -32,12 +36,12 @@
|
|
|
32
36
|
&.bottom-right,
|
|
33
37
|
&.left,
|
|
34
38
|
&.right {
|
|
35
|
-
padding: var(--
|
|
36
|
-
color: var(--
|
|
37
|
-
font-family: var(--
|
|
38
|
-
font-size: var(--
|
|
39
|
-
font-weight: var(--
|
|
40
|
-
line-height: var(--
|
|
39
|
+
padding: var(--sys-spacing-container-sm) var(--sys-spacing-container-md);
|
|
40
|
+
color: var(--sys-color-text-default);
|
|
41
|
+
font-family: var(--sys-text-style-body-font-family);
|
|
42
|
+
font-size: var(--sys-text-style-body-size);
|
|
43
|
+
font-weight: var(--sys-text-style-body-weight);
|
|
44
|
+
line-height: var(--sys-text-style-body-line-height);
|
|
41
45
|
}
|
|
42
46
|
|
|
43
47
|
// Arrow via CSS (no inline SVG needed)
|
|
@@ -49,7 +53,7 @@
|
|
|
49
53
|
z-index: 10000;
|
|
50
54
|
width: var(--ap-arrow-width);
|
|
51
55
|
height: var(--ap-arrow-height);
|
|
52
|
-
background-color: var(--
|
|
56
|
+
background-color: var(--sys-color-surface-default);
|
|
53
57
|
clip-path: polygon(0 0, 50% 100%, 100% 0);
|
|
54
58
|
}
|
|
55
59
|
|
|
@@ -121,14 +125,9 @@
|
|
|
121
125
|
transform: translateX(calc(-100% + var(--ap-arrow-height) / 2)) translateY(-50%) rotate(90deg);
|
|
122
126
|
}
|
|
123
127
|
|
|
124
|
-
// Custom template tooltip (
|
|
128
|
+
// Custom template tooltip (rich content). Same surface and shadow as the base
|
|
129
|
+
// tooltip now — the design no longer distinguishes them by colour.
|
|
125
130
|
&.custom {
|
|
126
|
-
|
|
127
|
-
color: var(--ref-color-grey-100);
|
|
128
|
-
filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.08));
|
|
129
|
-
|
|
130
|
-
&::after {
|
|
131
|
-
background-color: var(--ref-color-white);
|
|
132
|
-
}
|
|
131
|
+
color: var(--sys-color-text-default);
|
|
133
132
|
}
|
|
134
133
|
}
|