@agorapulse/ui-theme 22.0.3-beta.1 → 22.0.5-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.
Files changed (64) hide show
  1. package/agorapulse-ui-theme-22.0.5-beta.1.tgz +0 -0
  2. package/assets/desktop_variables.css +624 -460
  3. package/assets/mobile_variables.css +624 -460
  4. package/assets/style/_button-mixins.scss +33 -92
  5. package/assets/style/_input.scss +4 -0
  6. package/assets/style/_link.scss +31 -35
  7. package/assets/style/_select.scss +67 -44
  8. package/assets/style/_table.scss +52 -20
  9. package/assets/style/_tooltip.scss +6 -7
  10. package/assets/style/components-custom-style/_input.scss +22 -28
  11. package/assets/style/components-custom-style/_ng-select.scss +15 -7
  12. package/assets/style/css-ui/_action-dropdown.scss +39 -27
  13. package/assets/style/css-ui/_badge.scss +2 -5
  14. package/assets/style/css-ui/_button.scss +141 -96
  15. package/assets/style/css-ui/_checkbox.scss +6 -11
  16. package/assets/style/css-ui/_counter.scss +7 -15
  17. package/assets/style/css-ui/_icon-button.scss +24 -68
  18. package/assets/style/css-ui/_infobox.scss +25 -68
  19. package/assets/style/css-ui/_input.scss +31 -38
  20. package/assets/style/css-ui/_label.scss +10 -8
  21. package/assets/style/css-ui/_link.scss +31 -36
  22. package/assets/style/css-ui/_list-panel.scss +33 -15
  23. package/assets/style/css-ui/_radio-card.scss +37 -31
  24. package/assets/style/css-ui/_radio.scss +17 -27
  25. package/assets/style/css-ui/_select.scss +53 -50
  26. package/assets/style/css-ui/_selection-dropdown.scss +25 -35
  27. package/assets/style/css-ui/_snackbar.scss +2 -2
  28. package/assets/style/css-ui/_split-button.scss +4 -14
  29. package/assets/style/css-ui/_status.scss +26 -29
  30. package/assets/style/css-ui/_table.scss +52 -20
  31. package/assets/style/css-ui/_tabs.scss +15 -31
  32. package/assets/style/css-ui/_tag.scss +25 -65
  33. package/assets/style/css-ui/_textarea.scss +25 -30
  34. package/assets/style/css-ui/_toggle.scss +12 -11
  35. package/assets/style/css-ui/_tooltip.scss +10 -7
  36. package/assets/style/css-ui/index.css +525 -638
  37. package/assets/style/css-ui/index.css.map +1 -1
  38. package/package.json +1 -1
  39. package/src/build.js +1 -3
  40. package/src/desktop_config.js +1 -2
  41. package/src/mobile_config.js +1 -2
  42. package/src/tokens/components/button.json +225 -11
  43. package/src/tokens/components/icon-button.json +11 -1
  44. package/src/tokens/components/input.json +64 -145
  45. package/src/tokens/components/link.json +132 -0
  46. package/src/tokens/components/select.json +14 -14
  47. package/src/tokens/components/status.json +129 -0
  48. package/src/tokens/reference/v3.json +242 -0
  49. package/src/tokens/system/color-border.json +50 -43
  50. package/src/tokens/system/color-data.json +58 -0
  51. package/src/tokens/system/color-icon.json +62 -45
  52. package/src/tokens/system/color-link.json +15 -9
  53. package/src/tokens/system/color-surface.json +87 -77
  54. package/src/tokens/system/color-text.json +63 -52
  55. package/src/tokens/system/height.json +12 -3
  56. package/src/tokens/system/motion.json +10 -0
  57. package/src/tokens/system/radius.json +18 -2
  58. package/src/tokens/system/spacing.json +13 -13
  59. package/agorapulse-ui-theme-22.0.3-beta.1.tgz +0 -0
  60. package/src/formats.js +0 -36
  61. package/src/tokens/components/action-dropdown.json +0 -93
  62. package/src/tokens/components/close-button.json +0 -22
  63. package/src/tokens/components/infobox.json +0 -156
  64. package/src/tokens/components/radio.json +0 -11
@@ -1,74 +1,69 @@
1
1
  // Agorapulse Link Styles
2
- //
3
- // Colours come from the semantic `color/link/*` family (V2 Style Guide - Tokens,
4
- // node 1193:11239). The five typographic rows of that frame map onto the variants
5
- // here: Subtitle -> `big`, Body -> base, Caption -> `small`, Body Bold ->
6
- // `standalone`, Caption Bold -> `standalone.small`.
7
2
  @use 'mixins' as m;
8
3
 
9
4
  // Base link styling
10
5
  .ap-link {
11
6
  display: inline-flex;
12
- gap: var(--ref-spacing-xxxs);
13
- font-family: var(--sys-text-style-body-font-family);
14
- font-weight: var(--sys-text-style-body-weight);
15
- line-height: var(--sys-text-style-body-line-height);
16
- font-size: var(--sys-text-style-body-size);
7
+ gap: var(--comp-link-spacing);
8
+ font-family: var(--comp-link-text-font-family);
9
+ font-weight: var(--comp-link-text-font-weight);
10
+ line-height: var(--comp-link-text-line-height);
11
+ font-size: var(--comp-link-text-size);
17
12
  align-items: center;
18
13
  text-decoration: underline;
19
14
  -webkit-tap-highlight-color: transparent;
20
15
  cursor: pointer;
21
- color: var(--sys-color-link-default);
16
+ color: var(--comp-link-default-color);
22
17
 
23
18
  // Size variants
24
19
  &.small {
25
- font-family: var(--sys-text-style-caption-font-family);
26
- font-weight: var(--sys-text-style-caption-weight);
27
- line-height: var(--sys-text-style-caption-line-height);
28
- font-size: var(--sys-text-style-caption-size);
20
+ font-family: var(--comp-link-small-text-style-font-family);
21
+ font-weight: var(--comp-link-small-text-style-font-weight);
22
+ line-height: var(--comp-link-small-text-style-line-height);
23
+ font-size: var(--comp-link-small-text-style-size);
29
24
  }
30
25
 
31
26
  &.big {
32
- font-family: var(--sys-text-style-subtitle-font-family);
33
- font-weight: var(--sys-text-style-subtitle-weight);
34
- line-height: var(--sys-text-style-subtitle-line-height);
35
- font-size: var(--sys-text-style-subtitle-size);
27
+ font-family: var(--comp-link-big-text-style-font-family);
28
+ font-weight: var(--comp-link-big-text-style-font-weight);
29
+ line-height: var(--comp-link-big-text-style-line-height);
30
+ font-size: var(--comp-link-big-text-style-size);
36
31
  }
37
32
 
38
33
  // Standalone variant (no underline)
39
34
  &.standalone {
40
35
  text-decoration: none;
41
- font-family: var(--sys-text-style-body-bold-font-family);
42
- font-weight: var(--sys-text-style-body-bold-weight);
43
- line-height: var(--sys-text-style-body-bold-line-height);
44
- font-size: var(--sys-text-style-body-bold-size);
45
- color: var(--sys-color-link-default);
36
+ font-family: var(--comp-link-standalone-default-text-style-font-family);
37
+ font-weight: var(--comp-link-standalone-default-text-style-font-weight);
38
+ line-height: var(--comp-link-standalone-default-text-style-line-height);
39
+ font-size: var(--comp-link-standalone-default-text-style-size);
40
+ color: var(--comp-link-default-color);
46
41
 
47
42
  &.small {
48
- font-family: var(--sys-text-style-caption-bold-font-family);
49
- font-weight: var(--sys-text-style-caption-bold-weight);
50
- line-height: var(--sys-text-style-caption-bold-line-height);
51
- font-size: var(--sys-text-style-caption-bold-size);
43
+ font-family: var(--comp-link-standalone-small-text-style-font-family);
44
+ font-weight: var(--comp-link-standalone-small-text-style-font-weight);
45
+ line-height: var(--comp-link-standalone-small-text-style-line-height);
46
+ font-size: var(--comp-link-standalone-small-text-style-size);
52
47
  }
53
48
  }
54
49
 
55
50
  // States
56
51
  &:hover {
57
- color: var(--sys-color-link-hovered);
52
+ color: var(--comp-link-hover-color);
58
53
  }
59
54
 
60
55
  &:active:not(:visited):not(.disabled) {
61
- color: var(--sys-color-link-clicked);
56
+ color: var(--comp-link-clicked-color);
62
57
  }
63
58
 
64
59
  &:visited:not(.standalone) {
65
- color: var(--sys-color-link-visited);
60
+ color: var(--comp-link-visited-color);
66
61
  }
67
62
 
68
63
  // Disabled state
69
64
  &.disabled,
70
65
  &[aria-disabled='true'] {
71
- color: var(--sys-color-link-disabled);
66
+ color: var(--comp-link-disabled-color);
72
67
  pointer-events: none;
73
68
  cursor: default;
74
69
  }
@@ -82,10 +77,10 @@
82
77
 
83
78
  // Icon sizing — implicit > i
84
79
  > i {
85
- min-width: var(--sys-icon-md);
86
- min-height: var(--sys-icon-md);
87
- max-width: var(--sys-icon-md);
88
- max-height: var(--sys-icon-md);
80
+ min-width: var(--comp-link-icon-size);
81
+ min-height: var(--comp-link-icon-size);
82
+ max-width: var(--comp-link-icon-size);
83
+ max-height: var(--comp-link-icon-size);
89
84
  flex-shrink: 0;
90
85
  }
91
86
  }
@@ -1,13 +1,14 @@
1
+ // Rows follow the dropdown spec's interactive ramp: neutral on hover, blue only when selected.
1
2
  .ap-list-panel {
2
- background-color: var(--ref-color-white);
3
- border-right: 1px solid var(--ref-color-grey-10);
3
+ background-color: var(--sys-color-surface-default);
4
+ border-right: 1px solid var(--sys-color-border-default);
4
5
  display: flex;
5
6
  flex-direction: column;
6
7
  height: 100%;
7
8
  }
8
9
 
9
10
  .ap-list-panel-header {
10
- border-bottom: 1px solid var(--ref-color-grey-10);
11
+ border-bottom: 1px solid var(--sys-color-border-default);
11
12
  display: flex;
12
13
  flex-direction: column;
13
14
  gap: var(--ref-spacing-sm);
@@ -27,23 +28,40 @@
27
28
  align-items: center;
28
29
  min-height: 40px;
29
30
  padding: var(--ref-spacing-xxs) var(--ref-spacing-sm);
30
- gap: var(--ref-spacing-xxs);
31
- font-size: var(--ref-font-size-sm);
32
- line-height: var(--ref-font-line-height-sm);
33
- color: var(--ref-color-grey-100);
31
+ gap: var(--sys-spacing-inline-icon-default);
32
+ font-size: var(--sys-text-style-body-size);
33
+ line-height: var(--sys-text-style-body-line-height);
34
+ color: var(--sys-color-text-interactive-default);
34
35
  cursor: pointer;
35
36
  transition: background-color var(--ref-animation-short);
36
37
 
37
38
  &:hover {
38
- background-color: var(--ref-color-electric-blue-10);
39
+ background-color: var(--sys-color-surface-interactive-hovered);
40
+ }
41
+
42
+ &:active {
43
+ background-color: var(--sys-color-surface-interactive-clicked);
39
44
  }
40
45
 
41
46
  &.selected {
42
- background-color: var(--ref-color-electric-blue-20);
47
+ background-color: var(--sys-color-surface-interactive-active);
43
48
 
44
49
  .ap-list-panel-item-name {
45
- color: var(--ref-color-electric-blue-150);
46
- font-weight: var(--ref-font-weight-bold);
50
+ color: var(--sys-color-text-interactive-active);
51
+ font-weight: var(--sys-text-style-body-bold-weight);
52
+ }
53
+
54
+ // The spec takes the caption blue with the title, not the title alone.
55
+ .ap-list-panel-item-subtitle {
56
+ color: var(--sys-color-text-interactive-active);
57
+ }
58
+
59
+ &:hover {
60
+ background-color: var(--sys-color-surface-interactive-active-hovered);
61
+ }
62
+
63
+ &:active {
64
+ background-color: var(--sys-color-surface-interactive-active-clicked);
47
65
  }
48
66
  }
49
67
  }
@@ -62,12 +80,12 @@
62
80
  white-space: nowrap;
63
81
 
64
82
  &:has(+ .ap-list-panel-item-subtitle) {
65
- font-weight: var(--ref-font-weight-bold);
83
+ font-weight: var(--sys-text-style-body-bold-weight);
66
84
  }
67
85
  }
68
86
 
69
87
  .ap-list-panel-item-subtitle {
70
- font-size: var(--ref-font-size-xs);
71
- line-height: var(--ref-font-line-height-xs);
72
- color: var(--ref-color-grey-80);
88
+ font-size: var(--sys-text-style-caption-size);
89
+ line-height: var(--sys-text-style-caption-line-height);
90
+ color: var(--sys-color-text-interactive-secondary);
73
91
  }
@@ -19,10 +19,10 @@
19
19
  content: '';
20
20
  @include m.fixed-size(16px);
21
21
  border-radius: 100%;
22
- border: 1px solid var(--ref-color-grey-60);
23
- background: var(--ref-color-electric-blue-100);
24
- box-shadow: inset 0 0 0 16px var(--ref-color-white);
25
- transition: box-shadow var(--comp-radio-transition-duration);
22
+ border: 1px solid var(--sys-color-border-input-default);
23
+ background: var(--sys-color-surface-input-active);
24
+ box-shadow: inset 0 0 0 16px var(--sys-color-surface-interactive-default);
25
+ transition: box-shadow var(--sys-radio-transition-duration);
26
26
  flex-shrink: 0;
27
27
  box-sizing: border-box;
28
28
  margin-top: 1px;
@@ -30,43 +30,42 @@
30
30
 
31
31
  // Indicator: checked
32
32
  &:has(input:checked)::before {
33
- border-color: var(--ref-color-electric-blue-100);
34
- box-shadow: inset 0 0 0 3px var(--ref-color-white);
33
+ border-color: var(--sys-color-border-input-active);
34
+ box-shadow: inset 0 0 0 3px var(--sys-color-surface-interactive-default);
35
35
  }
36
36
 
37
37
  // Indicator: disabled
38
38
  &:has(input:disabled)::before {
39
- box-shadow: inset 0 0 0 16px var(--ref-color-grey-10);
40
- border-color: var(--ref-color-grey-40);
41
- opacity: 0.6;
39
+ box-shadow: inset 0 0 0 16px var(--sys-color-surface-input-disabled);
40
+ border-color: var(--sys-color-border-input-disabled);
42
41
  }
43
42
 
44
43
  // Indicator: disabled + checked
45
44
  &:has(input:disabled:checked)::before {
46
- background: var(--ref-color-grey-40);
47
- box-shadow: inset 0 0 0 3px var(--ref-color-grey-10);
48
- border-color: var(--ref-color-grey-40);
45
+ background: var(--sys-color-surface-input-active-disabled);
46
+ box-shadow: inset 0 0 0 3px var(--sys-color-surface-input-default);
47
+ border-color: var(--sys-color-border-input-active-disabled);
49
48
  }
50
49
 
51
50
  // Indicator: hover (not disabled, not locked)
52
51
  &:hover:not(:has(input:disabled)):not(.locked)::before {
53
- border-color: var(--ref-color-grey-80);
52
+ border-color: var(--sys-color-border-input-hovered);
54
53
  }
55
54
 
56
55
  // Indicator: hover + checked
57
56
  &:hover:not(:has(input:disabled)):not(.locked):has(input:checked)::before {
58
- border-color: var(--ref-color-electric-blue-100);
57
+ border-color: var(--sys-color-border-input-active);
59
58
  }
60
59
 
61
60
  // Indicator: error — red fill (dot) + border, compound selectors override checked/hover
62
61
  &.error::before,
63
62
  &.error:has(input:checked)::before {
64
- border-color: var(--ref-color-red-100);
65
- background: var(--ref-color-red-100);
63
+ border-color: var(--sys-color-border-error);
64
+ background: var(--sys-color-icon-error);
66
65
  }
67
66
 
68
67
  &.error:hover:not(:has(input:disabled))::before {
69
- border-color: var(--ref-color-red-60);
68
+ border-color: var(--sys-color-border-error);
70
69
  }
71
70
 
72
71
  // Locked — hide indicator, lock icon takes its place
@@ -77,9 +76,18 @@
77
76
  // Disabled state — cursor + content opacity (matches Angular --radio-content-opacity: 0.6)
78
77
  &:has(input:disabled) {
79
78
  cursor: default;
79
+ }
80
+
81
+ // The spec colours disabled text and icons explicitly rather than fading them, and it
82
+ // keeps a locked card's text at full strength.
83
+ &:has(input:disabled):not(.locked) {
84
+ .ap-radio-card-title,
85
+ > div > span {
86
+ color: var(--sys-color-text-interactive-disabled);
87
+ }
80
88
 
81
- > :is(span, div) {
82
- opacity: 0.6;
89
+ .ap-radio-card-header > i:first-child {
90
+ color: var(--sys-color-icon-interactive-disabled);
83
91
  }
84
92
  }
85
93
 
@@ -117,8 +125,11 @@
117
125
  border-color: var(--sys-color-border-interactive-hovered);
118
126
  }
119
127
 
120
- // Checked card. The card border sits on the -150 shade; the radio glyph above
121
- // stays on -100, which is what the frame renders at 1:1.
128
+ &:active:not(:has(input:disabled)):not(.locked) {
129
+ border-color: var(--sys-color-border-interactive-clicked);
130
+ }
131
+
132
+ // Checked card
122
133
  &:has(input:checked) {
123
134
  border-color: var(--sys-color-border-interactive-active);
124
135
  }
@@ -128,19 +139,13 @@
128
139
  border-color: var(--sys-color-border-interactive-disabled);
129
140
  }
130
141
 
131
- // Disabled + checked
132
- &:has(input:disabled):has(input:checked):not(.locked) {
142
+ &:has(input:disabled:checked):not(.locked) {
133
143
  border-color: var(--sys-color-border-interactive-active-disabled);
134
144
  }
135
145
 
136
- // Error card — compound selectors override :has(input:checked) specificity.
137
- // One red for every interaction state: the frame has no error-hovered token and
138
- // renders default, hovered and pressed identically.
146
+ // Error card — compound selectors override :has(input:checked) specificity
139
147
  &.error,
140
- &.error:has(input:checked) {
141
- border-color: var(--sys-color-border-error);
142
- }
143
-
148
+ &.error:has(input:checked),
144
149
  &.error:hover:not(:has(input:disabled)) {
145
150
  border-color: var(--sys-color-border-error);
146
151
  }
@@ -179,6 +184,7 @@
179
184
 
180
185
  > i:first-child {
181
186
  @include m.fixed-size(16px);
187
+ color: var(--sys-color-icon-interactive-default);
182
188
  flex-shrink: 0;
183
189
  margin-top: 1px; // center 16px icon with 18px title line-height
184
190
  }
@@ -203,6 +209,6 @@
203
209
  cursor: pointer;
204
210
 
205
211
  &:hover {
206
- color: var(--sys-color-text-secondary);
212
+ color: var(--sys-color-icon-default);
207
213
  }
208
214
  }
@@ -1,6 +1,8 @@
1
1
  // Agorapulse Radio Styles
2
2
  @use 'mixins' as m;
3
3
 
4
+ // The dot is the indicator's own background; the inset box-shadow masks it. A 16px inset covers
5
+ // it entirely (unselected), 3px leaves the 10px dot showing (selected).
4
6
  .ap-radio-container {
5
7
  display: flex;
6
8
  align-items: center;
@@ -23,10 +25,9 @@
23
25
  @include m.fixed-size(16px);
24
26
  border-radius: 100%;
25
27
  border: 1px solid var(--sys-color-border-input-default);
26
- // `background` is the dot; the inset shadow covers it until checked.
27
28
  background: var(--sys-color-surface-input-active);
28
- box-shadow: inset 0 0 0 16px var(--sys-color-surface-input-default);
29
- transition: box-shadow var(--comp-radio-transition-duration);
29
+ box-shadow: inset 0 0 0 16px var(--sys-color-surface-interactive-default);
30
+ transition: box-shadow var(--sys-radio-transition-duration);
30
31
  flex-shrink: 0;
31
32
  box-sizing: border-box;
32
33
  }
@@ -34,7 +35,7 @@
34
35
  // Indicator: checked
35
36
  &:has(input:checked)::before {
36
37
  border-color: var(--sys-color-border-input-active);
37
- box-shadow: inset 0 0 0 3px var(--sys-color-surface-input-default);
38
+ box-shadow: inset 0 0 0 3px var(--sys-color-surface-interactive-default);
38
39
  }
39
40
 
40
41
  // Indicator: disabled
@@ -43,28 +44,19 @@
43
44
  border-color: var(--sys-color-border-input-disabled);
44
45
  }
45
46
 
46
- // Indicator: disabled + checked
47
+ // Indicator: disabled + checked — the spec keeps a white surface and pales ring and dot
47
48
  &:has(input:disabled:checked)::before {
48
49
  background: var(--sys-color-surface-input-active-disabled);
49
50
  box-shadow: inset 0 0 0 3px var(--sys-color-surface-input-default);
50
51
  border-color: var(--sys-color-border-input-active-disabled);
51
52
  }
52
53
 
53
- // Error + checked + disabled lands on plain grey: the design drops both the red and
54
- // the `active-disabled` blue here, and binds the dot to a raw grey-40 ref — there is
55
- // no token for it (node 1194:10479).
56
- &.error:has(input:disabled:checked)::before {
57
- background: var(--ref-color-grey-40);
58
- box-shadow: inset 0 0 0 3px var(--sys-color-surface-input-disabled);
59
- border-color: var(--sys-color-border-input-disabled);
60
- }
61
-
62
- // Indicator: hover (not disabled)
54
+ // Indicator: hover (not disabled). The spec draws no separate pressed state.
63
55
  &:hover:not(:has(input:disabled))::before {
64
56
  border-color: var(--sys-color-border-input-hovered);
65
57
  }
66
58
 
67
- // Indicator: hover + checked (keep blue)
59
+ // Indicator: hover + checked (keep the active ring)
68
60
  &:hover:not(:has(input:disabled)):has(input:checked)::before {
69
61
  border-color: var(--sys-color-border-input-active);
70
62
  }
@@ -81,23 +73,21 @@
81
73
  border-color: var(--sys-color-border-input-active);
82
74
  }
83
75
 
84
- // Error state — compound selectors to override :has(input:checked) specificity
85
- // `:not(:has(input:disabled))` matters: disabled drops the error entirely in the
86
- // design, and without the guard these two rules tie with the disabled ones on
87
- // specificity and win on source order.
88
- &.error:not(:has(input:disabled))::before,
89
- &.error:not(:has(input:disabled)):has(input:checked)::before {
76
+ // Error state — compound selectors to override :has(input:checked) specificity.
77
+ // The error ring holds the same red through hover and focus, and the dot turns red too.
78
+ &.error::before,
79
+ &.error:has(input:checked)::before,
80
+ &.error:hover:not(:has(input:disabled))::before,
81
+ &.error:has(input:focus-visible)::before {
90
82
  border-color: var(--sys-color-border-error);
91
- background: var(--sys-color-icon-error);
92
83
  }
93
84
 
94
- &.error:hover:not(:has(input:disabled))::before {
95
- border-color: var(--sys-color-border-error);
85
+ &.error:has(input:checked)::before {
86
+ background: var(--sys-color-icon-error);
96
87
  }
97
88
 
98
- &.error:not(:has(input:disabled)):has(input:focus-visible)::before {
89
+ &.error:has(input:focus-visible)::before {
99
90
  outline-color: var(--sys-color-border-error);
100
- border-color: var(--sys-color-border-error);
101
91
  }
102
92
 
103
93
  // Label — direct span child