@agorapulse/ui-theme 22.0.6-beta.1 → 22.0.8

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 (61) hide show
  1. package/agorapulse-ui-theme-22.0.8.tgz +0 -0
  2. package/assets/desktop_variables.css +263 -346
  3. package/assets/mobile_variables.css +263 -346
  4. package/assets/style/_input.scss +0 -4
  5. package/assets/style/_select.scss +46 -75
  6. package/assets/style/_table.scss +118 -52
  7. package/assets/style/_tooltip.scss +19 -18
  8. package/assets/style/components-custom-style/_input.scss +0 -4
  9. package/assets/style/components-custom-style/_ng-select.scss +7 -15
  10. package/assets/style/css-ui/_action-dropdown.scss +33 -50
  11. package/assets/style/css-ui/_badge.scss +11 -9
  12. package/assets/style/css-ui/_button.scss +38 -161
  13. package/assets/style/css-ui/_checkbox.scss +36 -34
  14. package/assets/style/css-ui/_counter.scss +30 -23
  15. package/assets/style/css-ui/_icon-button.scss +22 -24
  16. package/assets/style/css-ui/_infobox.scss +68 -25
  17. package/assets/style/css-ui/_input.scss +1 -6
  18. package/assets/style/css-ui/_label.scss +16 -15
  19. package/assets/style/css-ui/_list-panel.scss +15 -33
  20. package/assets/style/css-ui/_radio-card.scss +38 -52
  21. package/assets/style/css-ui/_radio.scss +28 -32
  22. package/assets/style/css-ui/_select.scss +50 -66
  23. package/assets/style/css-ui/_selection-dropdown.scss +30 -57
  24. package/assets/style/css-ui/_table.scss +20 -52
  25. package/assets/style/css-ui/_tabs.scss +62 -54
  26. package/assets/style/css-ui/_tag.scss +76 -34
  27. package/assets/style/css-ui/_textarea.scss +7 -8
  28. package/assets/style/css-ui/_toggle.scss +17 -27
  29. package/assets/style/css-ui/_tooltip.scss +13 -15
  30. package/assets/style/css-ui/index.css +693 -657
  31. package/assets/style/css-ui/index.css.map +1 -1
  32. package/package.json +1 -1
  33. package/src/tokens/components/action-dropdown.json +93 -0
  34. package/src/tokens/components/badge.json +53 -0
  35. package/src/tokens/components/button.json +11 -225
  36. package/src/tokens/components/close-button.json +22 -0
  37. package/src/tokens/components/counter.json +108 -0
  38. package/src/tokens/components/icon-button.json +2 -12
  39. package/src/tokens/components/infobox.json +156 -0
  40. package/src/tokens/components/input.json +145 -64
  41. package/src/tokens/components/label.json +56 -0
  42. package/src/tokens/components/link.json +5 -10
  43. package/src/tokens/components/radio.json +11 -0
  44. package/src/tokens/components/select.json +14 -14
  45. package/src/tokens/components/status-card.json +187 -0
  46. package/src/tokens/components/tabs.json +136 -0
  47. package/src/tokens/components/tag.json +194 -0
  48. package/src/tokens/components/tooltip.json +36 -0
  49. package/src/tokens/reference/animation.json +0 -5
  50. package/agorapulse-ui-theme-22.0.6-beta.1.tgz +0 -0
  51. package/src/tokens/reference/v3.json +0 -242
  52. package/src/tokens/system/color-border.json +0 -85
  53. package/src/tokens/system/color-data.json +0 -58
  54. package/src/tokens/system/color-icon.json +0 -95
  55. package/src/tokens/system/color-link.json +0 -29
  56. package/src/tokens/system/color-surface.json +0 -130
  57. package/src/tokens/system/color-text.json +0 -89
  58. package/src/tokens/system/height.json +0 -24
  59. package/src/tokens/system/motion.json +0 -22
  60. package/src/tokens/system/radius.json +0 -28
  61. package/src/tokens/system/spacing.json +0 -25
@@ -1,14 +1,13 @@
1
- // Rows follow the dropdown spec's interactive ramp: neutral on hover, blue only when selected.
2
1
  .ap-list-panel {
3
- background-color: var(--sys-color-surface-default);
4
- border-right: 1px solid var(--sys-color-border-default);
2
+ background-color: var(--ref-color-white);
3
+ border-right: 1px solid var(--ref-color-grey-10);
5
4
  display: flex;
6
5
  flex-direction: column;
7
6
  height: 100%;
8
7
  }
9
8
 
10
9
  .ap-list-panel-header {
11
- border-bottom: 1px solid var(--sys-color-border-default);
10
+ border-bottom: 1px solid var(--ref-color-grey-10);
12
11
  display: flex;
13
12
  flex-direction: column;
14
13
  gap: var(--ref-spacing-sm);
@@ -28,40 +27,23 @@
28
27
  align-items: center;
29
28
  min-height: 40px;
30
29
  padding: var(--ref-spacing-xxs) var(--ref-spacing-sm);
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);
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);
35
34
  cursor: pointer;
36
35
  transition: background-color var(--ref-animation-short);
37
36
 
38
37
  &:hover {
39
- background-color: var(--sys-color-surface-interactive-hovered);
40
- }
41
-
42
- &:active {
43
- background-color: var(--sys-color-surface-interactive-clicked);
38
+ background-color: var(--ref-color-electric-blue-10);
44
39
  }
45
40
 
46
41
  &.selected {
47
- background-color: var(--sys-color-surface-interactive-active);
42
+ background-color: var(--ref-color-electric-blue-20);
48
43
 
49
44
  .ap-list-panel-item-name {
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);
45
+ color: var(--ref-color-electric-blue-150);
46
+ font-weight: var(--ref-font-weight-bold);
65
47
  }
66
48
  }
67
49
  }
@@ -80,12 +62,12 @@
80
62
  white-space: nowrap;
81
63
 
82
64
  &:has(+ .ap-list-panel-item-subtitle) {
83
- font-weight: var(--sys-text-style-body-bold-weight);
65
+ font-weight: var(--ref-font-weight-bold);
84
66
  }
85
67
  }
86
68
 
87
69
  .ap-list-panel-item-subtitle {
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);
70
+ font-size: var(--ref-font-size-xs);
71
+ line-height: var(--ref-font-line-height-xs);
72
+ color: var(--ref-color-grey-80);
91
73
  }
@@ -19,10 +19,10 @@
19
19
  content: '';
20
20
  @include m.fixed-size(16px);
21
21
  border-radius: 100%;
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);
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);
26
26
  flex-shrink: 0;
27
27
  box-sizing: border-box;
28
28
  margin-top: 1px;
@@ -30,42 +30,43 @@
30
30
 
31
31
  // Indicator: checked
32
32
  &:has(input:checked)::before {
33
- border-color: var(--sys-color-border-input-active);
34
- box-shadow: inset 0 0 0 3px var(--sys-color-surface-interactive-default);
33
+ border-color: var(--ref-color-electric-blue-100);
34
+ box-shadow: inset 0 0 0 3px var(--ref-color-white);
35
35
  }
36
36
 
37
37
  // Indicator: disabled
38
38
  &:has(input:disabled)::before {
39
- box-shadow: inset 0 0 0 16px var(--sys-color-surface-input-disabled);
40
- border-color: var(--sys-color-border-input-disabled);
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;
41
42
  }
42
43
 
43
44
  // Indicator: disabled + checked
44
45
  &:has(input:disabled:checked)::before {
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);
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);
48
49
  }
49
50
 
50
51
  // Indicator: hover (not disabled, not locked)
51
52
  &:hover:not(:has(input:disabled)):not(.locked)::before {
52
- border-color: var(--sys-color-border-input-hovered);
53
+ border-color: var(--ref-color-grey-80);
53
54
  }
54
55
 
55
56
  // Indicator: hover + checked
56
57
  &:hover:not(:has(input:disabled)):not(.locked):has(input:checked)::before {
57
- border-color: var(--sys-color-border-input-active);
58
+ border-color: var(--ref-color-electric-blue-100);
58
59
  }
59
60
 
60
61
  // Indicator: error — red fill (dot) + border, compound selectors override checked/hover
61
62
  &.error::before,
62
63
  &.error:has(input:checked)::before {
63
- border-color: var(--sys-color-border-error);
64
- background: var(--sys-color-icon-error);
64
+ border-color: var(--ref-color-red-100);
65
+ background: var(--ref-color-red-100);
65
66
  }
66
67
 
67
68
  &.error:hover:not(:has(input:disabled))::before {
68
- border-color: var(--sys-color-border-error);
69
+ border-color: var(--ref-color-red-60);
69
70
  }
70
71
 
71
72
  // Locked — hide indicator, lock icon takes its place
@@ -76,18 +77,9 @@
76
77
  // Disabled state — cursor + content opacity (matches Angular --radio-content-opacity: 0.6)
77
78
  &:has(input:disabled) {
78
79
  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
- }
88
80
 
89
- .ap-radio-card-header > i:first-child {
90
- color: var(--sys-color-icon-interactive-disabled);
81
+ > :is(span, div) {
82
+ opacity: 0.6;
91
83
  }
92
84
  }
93
85
 
@@ -105,7 +97,7 @@
105
97
  font-family: var(--ref-font-family);
106
98
  font-size: var(--ref-font-size-sm);
107
99
  line-height: var(--ref-font-line-height-sm);
108
- color: var(--sys-color-text-secondary);
100
+ color: var(--ref-color-grey-80);
109
101
  }
110
102
 
111
103
  // Link inside body
@@ -116,53 +108,48 @@
116
108
  // Card mode
117
109
  &.card {
118
110
  padding: var(--ref-spacing-xs);
119
- border: 1px solid var(--sys-color-border-interactive-default);
120
- border-radius: var(--sys-radius-inner);
121
- background: var(--sys-color-surface-default);
111
+ border: 1px solid var(--ref-color-grey-20);
112
+ border-radius: var(--ref-border-radius-md);
113
+ background: var(--ref-color-white);
122
114
  transition: border-color 0.2s ease-in-out;
123
115
 
124
116
  &:hover:not(:has(input:disabled)):not(.locked) {
125
- border-color: var(--sys-color-border-interactive-hovered);
126
- }
127
-
128
- &:active:not(:has(input:disabled)):not(.locked) {
129
- border-color: var(--sys-color-border-interactive-clicked);
117
+ border-color: var(--ref-color-grey-40);
130
118
  }
131
119
 
132
120
  // Checked card
133
121
  &:has(input:checked) {
134
- border-color: var(--sys-color-border-interactive-active);
122
+ border-color: var(--ref-color-electric-blue-100);
135
123
  }
136
124
 
137
125
  // Disabled card (not locked — locked has own styles)
138
126
  &:has(input:disabled):not(.locked) {
139
- border-color: var(--sys-color-border-interactive-disabled);
140
- }
141
-
142
- &:has(input:disabled:checked):not(.locked) {
143
- border-color: var(--sys-color-border-interactive-active-disabled);
127
+ border-color: var(--ref-color-grey-20);
144
128
  }
145
129
 
146
130
  // Error card — compound selectors override :has(input:checked) specificity
147
131
  &.error,
148
- &.error:has(input:checked),
132
+ &.error:has(input:checked) {
133
+ border-color: var(--ref-color-red-100);
134
+ }
135
+
149
136
  &.error:hover:not(:has(input:disabled)) {
150
- border-color: var(--sys-color-border-error);
137
+ border-color: var(--ref-color-red-60);
151
138
  }
152
139
 
153
140
  // Locked card
154
141
  &.locked {
155
142
  cursor: default;
156
- background: var(--sys-color-surface-featurelock);
157
- border-color: var(--sys-color-border-featurelock);
143
+ background: var(--ref-color-purple-10);
144
+ border-color: var(--ref-color-purple-20);
158
145
 
159
146
  &:hover {
160
- border-color: var(--sys-color-border-featurelock);
147
+ border-color: var(--ref-color-purple-40);
161
148
  }
162
149
 
163
150
  // Lock icon replaces radio indicator
164
151
  > i.ap-icon-feature-lock {
165
- color: var(--sys-color-icon-featurelock);
152
+ color: var(--ref-color-purple-100);
166
153
  @include m.fixed-size(16px);
167
154
  flex-shrink: 0;
168
155
  margin-top: 1px;
@@ -184,7 +171,6 @@
184
171
 
185
172
  > i:first-child {
186
173
  @include m.fixed-size(16px);
187
- color: var(--sys-color-icon-interactive-default);
188
174
  flex-shrink: 0;
189
175
  margin-top: 1px; // center 16px icon with 18px title line-height
190
176
  }
@@ -196,7 +182,7 @@
196
182
  font-size: var(--ref-font-size-sm);
197
183
  font-weight: var(--ref-font-weight-bold);
198
184
  line-height: var(--ref-font-line-height-sm);
199
- color: var(--sys-color-text-interactive-default);
185
+ color: var(--ref-color-grey-100);
200
186
  flex: 1;
201
187
  min-width: 0;
202
188
  }
@@ -204,11 +190,11 @@
204
190
  // Info icon (tooltip anchor in header)
205
191
  .ap-radio-card-info {
206
192
  @include m.fixed-size(16px);
207
- color: var(--sys-color-icon-subtle);
193
+ color: var(--ref-color-grey-60);
208
194
  flex-shrink: 0;
209
195
  cursor: pointer;
210
196
 
211
197
  &:hover {
212
- color: var(--sys-color-icon-default);
198
+ color: var(--ref-color-grey-80);
213
199
  }
214
200
  }
@@ -1,12 +1,10 @@
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).
6
4
  .ap-radio-container {
7
5
  display: flex;
8
6
  align-items: center;
9
- gap: var(--sys-spacing-inline-icon-default);
7
+ gap: var(--ref-spacing-xxs);
10
8
  cursor: pointer;
11
9
 
12
10
  // Hide native radio input (accessible)
@@ -24,70 +22,68 @@
24
22
  content: '';
25
23
  @include m.fixed-size(16px);
26
24
  border-radius: 100%;
27
- border: 1px solid var(--sys-color-border-input-default);
28
- background: var(--sys-color-surface-input-active);
29
- box-shadow: inset 0 0 0 16px var(--sys-color-surface-interactive-default);
30
- transition: box-shadow var(--sys-radio-transition-duration);
25
+ border: 1px solid var(--ref-color-grey-60);
26
+ background: var(--ref-color-electric-blue-100);
27
+ box-shadow: inset 0 0 0 16px var(--ref-color-white);
28
+ transition: box-shadow var(--comp-radio-transition-duration);
31
29
  flex-shrink: 0;
32
30
  box-sizing: border-box;
33
31
  }
34
32
 
35
33
  // Indicator: checked
36
34
  &:has(input:checked)::before {
37
- border-color: var(--sys-color-border-input-active);
38
- box-shadow: inset 0 0 0 3px var(--sys-color-surface-interactive-default);
35
+ border-color: var(--ref-color-electric-blue-100);
36
+ box-shadow: inset 0 0 0 3px var(--ref-color-white);
39
37
  }
40
38
 
41
39
  // Indicator: disabled
42
40
  &:has(input:disabled)::before {
43
- box-shadow: inset 0 0 0 16px var(--sys-color-surface-input-disabled);
44
- border-color: var(--sys-color-border-input-disabled);
41
+ box-shadow: inset 0 0 0 16px var(--ref-color-grey-10);
42
+ border-color: var(--ref-color-grey-20);
45
43
  }
46
44
 
47
- // Indicator: disabled + checked — the spec keeps a white surface and pales ring and dot
45
+ // Indicator: disabled + checked
48
46
  &:has(input:disabled:checked)::before {
49
- background: var(--sys-color-surface-input-active-disabled);
50
- box-shadow: inset 0 0 0 3px var(--sys-color-surface-input-default);
51
- border-color: var(--sys-color-border-input-active-disabled);
47
+ background: var(--ref-color-grey-40);
48
+ box-shadow: inset 0 0 0 3px var(--ref-color-grey-10);
49
+ border-color: var(--ref-color-grey-20);
52
50
  }
53
51
 
54
- // Indicator: hover (not disabled). The spec draws no separate pressed state.
52
+ // Indicator: hover (not disabled)
55
53
  &:hover:not(:has(input:disabled))::before {
56
- border-color: var(--sys-color-border-input-hovered);
54
+ border-color: var(--ref-color-grey-80);
57
55
  }
58
56
 
59
- // Indicator: hover + checked (keep the active ring)
57
+ // Indicator: hover + checked (keep blue)
60
58
  &:hover:not(:has(input:disabled)):has(input:checked)::before {
61
- border-color: var(--sys-color-border-input-active);
59
+ border-color: var(--ref-color-electric-blue-100);
62
60
  }
63
61
 
64
62
  // Focus ring on indicator (keyboard only)
65
63
  &:has(input:focus-visible)::before {
66
64
  outline: 3px solid var(--ref-color-electric-blue-100);
67
65
  outline-offset: 1px;
68
- border-color: var(--sys-color-border-input-hovered);
66
+ border-color: var(--ref-color-grey-80);
69
67
  }
70
68
 
71
69
  // Focus + checked
72
70
  &:has(input:focus-visible:checked)::before {
73
- border-color: var(--sys-color-border-input-active);
71
+ border-color: var(--ref-color-electric-blue-100);
74
72
  }
75
73
 
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.
74
+ // Error state — compound selectors to override :has(input:checked) specificity
78
75
  &.error::before,
79
- &.error:has(input:checked)::before,
80
- &.error:hover:not(:has(input:disabled))::before,
81
- &.error:has(input:focus-visible)::before {
82
- border-color: var(--sys-color-border-error);
76
+ &.error:has(input:checked)::before {
77
+ border-color: var(--ref-color-red-100);
83
78
  }
84
79
 
85
- &.error:has(input:checked)::before {
86
- background: var(--sys-color-icon-error);
80
+ &.error:hover:not(:has(input:disabled))::before {
81
+ border-color: var(--ref-color-red-60);
87
82
  }
88
83
 
89
84
  &.error:has(input:focus-visible)::before {
90
- outline-color: var(--sys-color-border-error);
85
+ outline-color: var(--ref-color-red-100);
86
+ border-color: var(--ref-color-red-60);
91
87
  }
92
88
 
93
89
  // Label — direct span child
@@ -95,7 +91,7 @@
95
91
  display: flex;
96
92
  align-items: center;
97
93
  @include m.text-style('body');
98
- color: var(--sys-color-text-interactive-default);
94
+ color: var(--ref-color-grey-100);
99
95
  user-select: none;
100
96
 
101
97
  &:empty {
@@ -105,6 +101,6 @@
105
101
 
106
102
  // Label: disabled
107
103
  &:has(input:disabled) > span {
108
- color: var(--sys-color-text-interactive-disabled);
104
+ color: var(--ref-color-grey-60);
109
105
  }
110
106
  }