@agorapulse/ui-theme 22.0.5-beta.1 → 22.0.7

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.7.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 +20 -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.5-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,16 +1,15 @@
1
1
  // Agorapulse Toggle Styles
2
2
  @use 'mixins' as m;
3
3
 
4
- // The track takes the border/input/* family, not a surface — that is what the spec binds.
5
4
  .ap-toggle-container {
6
5
  display: flex;
7
6
  align-items: center;
8
- gap: var(--sys-spacing-inline-icon-default);
7
+ gap: var(--ref-spacing-xxs);
9
8
  cursor: pointer;
10
9
  font-family: var(--sys-text-style-body-font-family);
11
10
  font-size: var(--sys-text-style-body-size);
12
11
  line-height: var(--sys-text-style-body-line-height);
13
- color: var(--sys-color-text-interactive-default);
12
+ color: var(--ref-color-grey-100);
14
13
 
15
14
  &:has(input:disabled) {
16
15
  cursor: default;
@@ -31,7 +30,7 @@
31
30
  width: 28px;
32
31
  height: 12px;
33
32
  border-radius: 16px;
34
- background: var(--sys-color-border-input-default);
33
+ background: var(--ref-color-grey-60);
35
34
  transition: background-color 0.25s;
36
35
  flex-shrink: 0;
37
36
 
@@ -40,7 +39,7 @@
40
39
  content: '';
41
40
  width: 12px;
42
41
  height: 12px;
43
- background: var(--sys-color-surface-default);
42
+ background: var(--ref-color-white);
44
43
  border-radius: 100%;
45
44
  position: absolute;
46
45
  left: 2px;
@@ -58,28 +57,23 @@
58
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");
59
58
  mask-size: contain;
60
59
  mask-repeat: no-repeat;
61
- background-color: var(--sys-color-icon-interactive-default);
60
+ background-color: var(--ref-color-grey-80);
62
61
  }
63
62
  }
64
63
 
65
64
  // Hover state (unchecked)
66
65
  &:hover:not(:has(input:disabled)) > i {
67
- background: var(--sys-color-border-input-hovered);
68
- }
69
-
70
- // Active state (unchecked)
71
- &:active:not(:has(input:disabled)) > i {
72
- background: var(--sys-color-border-input-clicked);
66
+ background: var(--ref-color-grey-80);
73
67
  }
74
68
 
75
69
  // Hover state (checked)
76
70
  &:hover:not(:has(input:disabled)):has(input:checked) > i {
77
- background: var(--sys-color-border-input-active-hovered);
71
+ background: var(--ref-color-electric-blue-80);
78
72
  }
79
73
 
80
74
  // Active state (checked)
81
75
  &:active:not(:has(input:disabled)):has(input:checked) > i {
82
- background: var(--sys-color-border-input-active-clicked);
76
+ background: var(--ref-color-electric-blue-60);
83
77
  }
84
78
 
85
79
  // Focus ring (keyboard only)
@@ -89,7 +83,7 @@
89
83
 
90
84
  // Checked state
91
85
  &:has(input:checked) > i {
92
- background: var(--sys-color-border-input-active);
86
+ background: var(--ref-color-electric-blue-100);
93
87
 
94
88
  &::before {
95
89
  left: 18px;
@@ -98,26 +92,22 @@
98
92
  &::after {
99
93
  left: 19px;
100
94
  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");
101
- background-color: var(--sys-color-icon-interactive-active);
95
+ background-color: var(--ref-color-electric-blue-150);
102
96
  }
103
97
  }
104
98
 
105
99
  // Disabled state
106
100
  &:has(input:disabled) > i {
107
- background: var(--sys-color-border-input-disabled);
101
+ background: var(--ref-color-grey-20);
108
102
 
109
103
  &::after {
110
- background-color: var(--sys-color-icon-interactive-disabled);
104
+ background-color: var(--ref-color-grey-40);
111
105
  }
112
106
  }
113
107
 
114
- // Disabled + checked — the spec tints this pale blue rather than greying it out
115
- &:has(input:disabled:checked) > i {
116
- background: var(--sys-color-border-input-active-disabled);
117
-
118
- &::after {
119
- background-color: var(--sys-color-icon-interactive-active-disabled);
120
- }
108
+ // Disabled + checked
109
+ &:has(input:disabled:checked) > i::after {
110
+ background-color: var(--ref-color-grey-40);
121
111
  }
122
112
 
123
113
  // Label — implicit > span
@@ -125,7 +115,7 @@
125
115
  display: flex;
126
116
  align-items: center;
127
117
  @include m.text-style('body');
128
- color: var(--sys-color-text-interactive-default);
118
+ color: var(--ref-color-grey-100);
129
119
  user-select: none;
130
120
  cursor: pointer;
131
121
 
@@ -135,7 +125,7 @@
135
125
  }
136
126
 
137
127
  &:has(input:disabled) > span {
138
- color: var(--sys-color-text-interactive-disabled);
128
+ color: var(--ref-color-grey-60);
139
129
  cursor: default;
140
130
  }
141
131
  }
@@ -16,11 +16,8 @@
16
16
 
17
17
  width: fit-content;
18
18
  max-width: 350px;
19
- background: var(--sys-color-surface-default);
20
- border-radius: var(--sys-radius-inner);
21
- // drop-shadow, not box-shadow: the arrow is a clipped ::after outside the box and a
22
- // box-shadow would skip it. drop-shadow has no spread, so the spec's -2px is dropped.
23
- filter: drop-shadow(0 4px 6px rgba(52, 69, 99, 0.15)) drop-shadow(0 4px 25px rgba(52, 69, 99, 0.15));
19
+ background: var(--comp-tooltip-text-color-main-default-bg);
20
+ border-radius: var(--ref-border-radius-md);
24
21
  // Viewport-relative, so a positioned host body (e.g. an Intercom banner margin) can't shift it.
25
22
  position: fixed;
26
23
  z-index: 9999999;
@@ -36,11 +33,11 @@
36
33
  &.left,
37
34
  &.right {
38
35
  padding: var(--ref-spacing-xxs) var(--ref-spacing-xs);
39
- color: var(--sys-color-text-default);
40
- font-family: var(--sys-text-style-body-font-family);
41
- font-size: var(--sys-text-style-body-size);
42
- font-weight: var(--sys-text-style-body-weight);
43
- line-height: var(--sys-text-style-body-line-height);
36
+ color: var(--comp-tooltip-text-default-color);
37
+ font-family: var(--comp-tooltip-text-style-font-family);
38
+ font-size: var(--comp-tooltip-text-style-size);
39
+ font-weight: var(--comp-tooltip-text-style-weight);
40
+ line-height: var(--comp-tooltip-text-style-line-height);
44
41
  }
45
42
 
46
43
  // Arrow via CSS (no inline SVG needed)
@@ -52,7 +49,7 @@
52
49
  z-index: 10000;
53
50
  width: var(--ap-arrow-width);
54
51
  height: var(--ap-arrow-height);
55
- background-color: var(--sys-color-surface-default);
52
+ background-color: var(--ref-color-grey-100);
56
53
  clip-path: polygon(0 0, 50% 100%, 100% 0);
57
54
  }
58
55
 
@@ -124,13 +121,14 @@
124
121
  transform: translateX(calc(-100% + var(--ap-arrow-height) / 2)) translateY(-50%) rotate(90deg);
125
122
  }
126
123
 
127
- // Custom template tooltip (rich content) — same surface as the simple one now
124
+ // Custom template tooltip (white background, rich content)
128
125
  &.custom {
129
- background-color: var(--sys-color-surface-default);
130
- color: var(--sys-color-text-default);
126
+ background-color: var(--ref-color-white);
127
+ color: var(--ref-color-grey-100);
128
+ filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.08));
131
129
 
132
130
  &::after {
133
- background-color: var(--sys-color-surface-default);
131
+ background-color: var(--ref-color-white);
134
132
  }
135
133
  }
136
134
  }