@agorapulse/ui-theme 22.0.8 → 22.0.10

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 (49) hide show
  1. package/agorapulse-ui-theme-22.0.10.tgz +0 -0
  2. package/assets/desktop_variables.css +2 -0
  3. package/assets/mobile_variables.css +2 -0
  4. package/assets/style/_floating-arrow.scss +42 -0
  5. package/assets/style/{css-ui/_helpers.scss → _helpers.scss} +5 -10
  6. package/assets/style/{css-ui/_typography.scss → _typography.scss} +8 -41
  7. package/assets/style/theme.scss +3 -2
  8. package/package.json +2 -9
  9. package/src/tokens/system/elevation.json +12 -0
  10. package/agorapulse-ui-theme-22.0.8.tgz +0 -0
  11. package/assets/style/css-ui/_accordion.scss +0 -56
  12. package/assets/style/css-ui/_action-dropdown.scss +0 -163
  13. package/assets/style/css-ui/_avatar-group.scss +0 -61
  14. package/assets/style/css-ui/_avatar.scss +0 -191
  15. package/assets/style/css-ui/_badge.scss +0 -28
  16. package/assets/style/css-ui/_button.scss +0 -265
  17. package/assets/style/css-ui/_card.scss +0 -17
  18. package/assets/style/css-ui/_checkbox.scss +0 -191
  19. package/assets/style/css-ui/_counter.scss +0 -76
  20. package/assets/style/css-ui/_datepicker.scss +0 -309
  21. package/assets/style/css-ui/_dialog.scss +0 -74
  22. package/assets/style/css-ui/_dot-stepper.scss +0 -68
  23. package/assets/style/css-ui/_icon-button.scss +0 -200
  24. package/assets/style/css-ui/_infobox.scss +0 -181
  25. package/assets/style/css-ui/_input.scss +0 -128
  26. package/assets/style/css-ui/_label.scss +0 -95
  27. package/assets/style/css-ui/_link.scss +0 -86
  28. package/assets/style/css-ui/_list-panel.scss +0 -73
  29. package/assets/style/css-ui/_loader.scss +0 -228
  30. package/assets/style/css-ui/_mixins.scss +0 -50
  31. package/assets/style/css-ui/_pagination.scss +0 -177
  32. package/assets/style/css-ui/_radio-card.scss +0 -200
  33. package/assets/style/css-ui/_radio.scss +0 -106
  34. package/assets/style/css-ui/_select.scss +0 -658
  35. package/assets/style/css-ui/_selection-dropdown.scss +0 -183
  36. package/assets/style/css-ui/_snackbar.scss +0 -181
  37. package/assets/style/css-ui/_split-button.scss +0 -74
  38. package/assets/style/css-ui/_status.scss +0 -83
  39. package/assets/style/css-ui/_stepper.scss +0 -113
  40. package/assets/style/css-ui/_table.scss +0 -323
  41. package/assets/style/css-ui/_tabs.scss +0 -189
  42. package/assets/style/css-ui/_tag.scss +0 -181
  43. package/assets/style/css-ui/_textarea.scss +0 -117
  44. package/assets/style/css-ui/_toggle.scss +0 -131
  45. package/assets/style/css-ui/_tooltip.scss +0 -134
  46. package/assets/style/css-ui/font-face.css +0 -43
  47. package/assets/style/css-ui/index.css +0 -4943
  48. package/assets/style/css-ui/index.css.map +0 -1
  49. package/assets/style/css-ui/index.scss +0 -39
Binary file
@@ -208,6 +208,8 @@
208
208
  --sys-color-feature-lock-light-bg: #EFEDF8;
209
209
  --sys-color-feature-lock-light-text: #3C2C95;
210
210
  --sys-color-feature-lock-text: #6554C0;
211
+ --sys-elevation-floating: 0px 4px 25px -2px rgba(52, 69, 99, 0.15), 0px 4px 6px -2px rgba(52, 69, 99, 0.15);
212
+ --sys-elevation-floating-filter: drop-shadow(0 4px 25px rgba(52, 69, 99, 0.15)) drop-shadow(0 4px 6px rgba(52, 69, 99, 0.15));
211
213
  --sys-icon-sm: 14px;
212
214
  --sys-icon-md: 16px;
213
215
  --sys-icon-css-xxs: 8px;
@@ -208,6 +208,8 @@
208
208
  --sys-color-feature-lock-light-bg: #EFEDF8;
209
209
  --sys-color-feature-lock-light-text: #3C2C95;
210
210
  --sys-color-feature-lock-text: #6554C0;
211
+ --sys-elevation-floating: 0px 4px 25px -2px rgba(52, 69, 99, 0.15), 0px 4px 6px -2px rgba(52, 69, 99, 0.15);
212
+ --sys-elevation-floating-filter: drop-shadow(0 4px 25px rgba(52, 69, 99, 0.15)) drop-shadow(0 4px 6px rgba(52, 69, 99, 0.15));
211
213
  --sys-icon-sm: 14px;
212
214
  --sys-icon-md: 16px;
213
215
  --sys-icon-css-xxs: 8px;
@@ -0,0 +1,42 @@
1
+ /// The arrow of a floating surface, drawn on the CDK pane by `@agorapulse/ui-components/floating`.
2
+ ///
3
+ /// Global CSS, and it has to be: the pane is in no component's DOM. A mixin on the consumer's
4
+ /// surface would not reach it either — a `TemplatePortal` moves only the nodes, so `:host-context()`
5
+ /// never sees the pane. The engine sets `.ap-floating-arrow` only when an arrow is asked for.
6
+ .ap-floating-arrow {
7
+ // One shadow over the whole silhouette: `drop-shadow` follows the alpha where `box-shadow`
8
+ // would follow the box. A surface with its own elevation overrides `--ap-arrow-filter` — the
9
+ // tooltip's three surfaces do not share one, and the dark one has none.
10
+ filter: var(--ap-arrow-filter, var(--sys-elevation-floating-filter));
11
+
12
+ > * {
13
+ // `!important` because an encapsulated `.class[_ngcontent-x]` is twice as specific as this
14
+ // selector and injected after it. Both properties, since a surface may carry its elevation
15
+ // either way.
16
+ box-shadow: none !important;
17
+ filter: none !important;
18
+ }
19
+
20
+ &::before {
21
+ content: '';
22
+ position: absolute;
23
+ // Written on the pane from `arrow-geometry.ts`, which the offset computation reads too.
24
+ width: var(--ap-floating-arrow-width, 16px);
25
+ height: var(--ap-floating-arrow-height, 8px);
26
+ top: var(--ap-arrow-top, auto);
27
+ right: var(--ap-arrow-right, auto);
28
+ bottom: var(--ap-arrow-bottom, auto);
29
+ left: var(--ap-arrow-left, auto);
30
+ rotate: var(--ap-arrow-rotate, 0deg);
31
+
32
+ background: var(--ap-arrow-background, var(--ref-color-white));
33
+
34
+ // A mask, not a border triangle: it keeps the rounded tip, and `drop-shadow` follows its alpha.
35
+ mask-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 8"%3E%3Cpath d="M6.68299 1.15238C7.43705 0.492586 8.56296 0.492588 9.31701 1.15238L16 7L0 7L6.68299 1.15238Z"/%3E%3C/svg%3E');
36
+ mask-size: 100% 100%;
37
+ mask-repeat: no-repeat;
38
+
39
+ // Born hidden: before the first computation it has no correct place to stand.
40
+ visibility: var(--ap-arrow-visibility, hidden);
41
+ }
42
+ }
@@ -7,23 +7,19 @@ blockquote {
7
7
  font-style: italic;
8
8
  }
9
9
 
10
- .divider,
11
- .ap-divider {
10
+ .divider {
12
11
  height: 1px;
13
12
  overflow: hidden;
14
13
  background-color: var(--sys-color-border-color-default);
15
14
  }
16
15
 
17
- .left-align,
18
- .ap-text-left {
16
+ .left-align {
19
17
  text-align: left;
20
18
  }
21
- .center-align,
22
- .ap-text-center {
19
+ .center-align {
23
20
  text-align: center;
24
21
  }
25
- .right-align,
26
- .ap-text-right {
22
+ .right-align {
27
23
  text-align: right;
28
24
  }
29
25
 
@@ -32,8 +28,7 @@ blockquote {
32
28
  display: flex;
33
29
  }
34
30
 
35
- .truncate,
36
- .ap-truncate {
31
+ .truncate {
37
32
  display: block;
38
33
  white-space: nowrap;
39
34
  overflow: hidden;
@@ -1,5 +1,3 @@
1
- @use 'mixins';
2
-
3
1
  // ── Tag-based rules (global styling) ──
4
2
 
5
3
  h1,
@@ -33,51 +31,22 @@ p {
33
31
  margin: 0 0 var(--ref-spacing-xs);
34
32
  }
35
33
 
36
- // ── Typography classes — legacy + .ap-* aliases ──
37
-
38
- .h0,
39
- .ap-h0 {
40
- @include mixins.text-style(h0);
41
- }
34
+ // ── Typography classes ──
42
35
 
43
- .ap-subtitle {
44
- @include mixins.text-style(subtitle);
45
- }
46
-
47
- .ap-h1 {
48
- @include mixins.text-style(h1);
49
- }
50
- .ap-h2 {
51
- @include mixins.text-style(h2);
52
- }
53
- .ap-h3 {
54
- @include mixins.text-style(h3);
55
- }
56
- .ap-h4 {
57
- @include mixins.text-style(h4);
58
- }
59
- .ap-body {
60
- @include mixins.text-style(body);
61
- }
62
- .ap-body-bold {
63
- @include mixins.text-style(body-bold);
36
+ .h0 {
37
+ font-family: var(--sys-text-style-h0-font-family);
38
+ font-size: var(--sys-text-style-h0-size);
39
+ font-weight: var(--sys-text-style-h0-weight);
40
+ line-height: var(--sys-text-style-h0-line-height);
64
41
  }
65
42
 
66
43
  p.caption,
67
44
  span.caption,
68
- .ap-caption,
69
45
  .mat-caption {
70
46
  font-size: var(--sys-text-style-caption-size);
71
47
  line-height: var(--sys-text-style-caption-line-height);
72
48
  }
73
49
 
74
- .ap-caption-bold {
75
- @include mixins.text-style(caption-bold);
76
- }
77
- .ap-marketing {
78
- @include mixins.text-style(marketing);
79
- }
80
-
81
50
  p.large,
82
51
  span.large {
83
52
  font-size: 16px;
@@ -90,12 +59,10 @@ small {
90
59
  line-height: 14px;
91
60
  }
92
61
 
93
- .bold,
94
- .ap-bold {
62
+ .bold {
95
63
  font-weight: var(--sys-text-style-body-bold-weight);
96
64
  }
97
65
 
98
- .italic,
99
- .ap-italic {
66
+ .italic {
100
67
  font-style: italic;
101
68
  }
@@ -14,6 +14,7 @@
14
14
  @use 'variables' as vars;
15
15
 
16
16
  @use '_tooltip.scss';
17
+ @use '_floating-arrow.scss';
17
18
  @use '_link.scss';
18
19
  @use '_input.scss' as base-input;
19
20
  @use '_select.scss' as base-select;
@@ -40,12 +41,12 @@ $custom-typography: mat.m2-define-typography-config(
40
41
  * TYPOGRAPHY
41
42
  */
42
43
 
43
- @use 'css-ui/typography';
44
+ @use 'typography';
44
45
 
45
46
  /*
46
47
  * HELPERS
47
48
  */
48
- @use 'css-ui/helpers';
49
+ @use 'helpers';
49
50
 
50
51
  /*
51
52
  * COMPONENTS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agorapulse/ui-theme",
3
- "version": "22.0.8",
3
+ "version": "22.0.10",
4
4
  "description": "Agorapulse UI Theme Library",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,8 +13,7 @@
13
13
  },
14
14
  "scripts": {
15
15
  "generate-tokens": "cd src && node build.js && cd ../assets && git add mobile_variables.css && git add desktop_variables.css",
16
- "build:theme": "sass --load-path=node_modules assets/style/theme.scss assets/style/theme.css",
17
- "build:css-ui": "sass --load-path=.. assets/style/css-ui/index.scss assets/style/css-ui/index.css"
16
+ "build:theme": "sass --load-path=node_modules assets/style/theme.scss assets/style/theme.css"
18
17
  },
19
18
  "homepage": "https://github.com/agorapulse/design#readme",
20
19
  "peerDependencies": {
@@ -28,12 +27,6 @@
28
27
  "./assets/desktop_variables.css": {
29
28
  "default": "./assets/desktop_variables.css"
30
29
  },
31
- "./assets/style/css-ui/font-face.css": {
32
- "default": "./assets/style/css-ui/font-face.css"
33
- },
34
- "./assets/style/css-ui/index.css": {
35
- "default": "./assets/style/css-ui/index.css"
36
- },
37
30
  "./assets/fonts/*": "./assets/fonts/*"
38
31
  },
39
32
  "overrides": {
@@ -0,0 +1,12 @@
1
+ {
2
+ "sys": {
3
+ "elevation": {
4
+ "floating": {
5
+ "value": "0px 4px 25px -2px rgba(52, 69, 99, 0.15), 0px 4px 6px -2px rgba(52, 69, 99, 0.15)"
6
+ },
7
+ "floatingFilter": {
8
+ "value": "drop-shadow(0 4px 25px rgba(52, 69, 99, 0.15)) drop-shadow(0 4px 6px rgba(52, 69, 99, 0.15))"
9
+ }
10
+ }
11
+ }
12
+ }
Binary file
@@ -1,56 +0,0 @@
1
- // Agorapulse Accordion Styles
2
-
3
- .ap-accordion {
4
- background-color: var(--ref-color-white);
5
- border: 1px solid var(--ref-color-grey-10);
6
- border-radius: var(--ref-border-radius-md);
7
- display: flex;
8
- flex-direction: column;
9
- }
10
-
11
- .ap-accordion-header {
12
- border-bottom: 1px solid var(--ref-color-grey-10);
13
- display: flex;
14
- align-items: center;
15
- gap: var(--ref-spacing-xxs);
16
- padding: 6px var(--ref-spacing-xs) 6px var(--ref-spacing-sm);
17
-
18
- > i {
19
- flex-shrink: 0;
20
- }
21
- }
22
-
23
- .ap-accordion-title {
24
- flex: 1;
25
- min-width: 0;
26
- font-size: var(--ref-font-size-sm);
27
- font-weight: var(--ref-font-weight-bold);
28
- line-height: var(--ref-font-line-height-md);
29
- color: var(--ref-color-grey-100);
30
- }
31
-
32
- .ap-accordion-toggle {
33
- flex-shrink: 0;
34
- transition: transform var(--ref-animation-short);
35
- }
36
-
37
- .ap-accordion-content {
38
- display: flex;
39
- flex-direction: column;
40
- gap: var(--ref-spacing-sm);
41
- padding: var(--ref-spacing-sm);
42
- }
43
-
44
- .ap-accordion.collapsed {
45
- .ap-accordion-header {
46
- border-bottom: none;
47
- }
48
-
49
- .ap-accordion-toggle {
50
- transform: rotate(180deg);
51
- }
52
-
53
- .ap-accordion-content {
54
- display: none;
55
- }
56
- }
@@ -1,163 +0,0 @@
1
- // Agorapulse Action Dropdown Styles
2
- @use 'mixins' as m;
3
-
4
- // Container
5
- .ap-action-dropdown {
6
- background-color: var(--comp-action-dropdown-background-color, var(--ref-color-white));
7
- border-radius: var(--comp-action-dropdown-border-radius, var(--ref-border-radius-md));
8
- box-shadow: var(--comp-action-dropdown-box-shadow, 0 4px 25px -2px rgba(52, 69, 99, 0.15), 0 4px 6px -2px rgba(52, 69, 99, 0.15));
9
- padding: var(--comp-action-dropdown-padding, var(--ref-spacing-xxs));
10
- outline: none;
11
- overflow: hidden;
12
- z-index: 1000;
13
- width: 250px;
14
-
15
- &.large {
16
- width: 340px;
17
- }
18
-
19
- &:focus {
20
- outline: 2px solid var(--comp-action-dropdown-item-background-color-focused, var(--ref-color-electric-blue-10));
21
- outline-offset: 2px;
22
- }
23
- }
24
-
25
- // Item
26
- .ap-action-dropdown-item {
27
- display: flex;
28
- align-items: center;
29
- width: 100%;
30
- height: 40px;
31
- padding: var(--comp-action-dropdown-item-padding, var(--ref-spacing-xxs) var(--ref-spacing-xs));
32
- border: none;
33
- background: transparent;
34
- color: var(--comp-action-dropdown-item-text-color, var(--ref-color-grey-100));
35
- cursor: pointer;
36
- font-family: var(--ref-font-family);
37
- font-size: var(--comp-action-dropdown-item-text-size, var(--ref-font-size-sm));
38
- line-height: var(--comp-action-dropdown-item-text-line-height, var(--ref-line-height-sm));
39
- text-align: left;
40
- box-sizing: border-box;
41
-
42
- // Implicit icon styling via > i
43
- > i {
44
- @include m.fixed-size(16px);
45
- flex-shrink: 0;
46
- color: var(--ref-color-grey-100);
47
-
48
- // Start icon = first child
49
- &:first-child {
50
- margin-right: var(--comp-action-dropdown-item-icon-spacing, var(--ref-spacing-xs));
51
- }
52
-
53
- // End icon = last child (but not the only child)
54
- &:last-child:not(:first-child) {
55
- margin-left: var(--comp-action-dropdown-item-icon-spacing, var(--ref-spacing-xs));
56
- color: var(--ref-color-grey-60);
57
- }
58
- }
59
-
60
- &:hover {
61
- background-color: var(--comp-action-dropdown-item-background-color-hover, var(--ref-color-grey-05));
62
- }
63
-
64
- &:focus,
65
- &.focused {
66
- outline: none;
67
- background-color: var(--comp-action-dropdown-item-background-color-focused, var(--ref-color-electric-blue-10));
68
- }
69
-
70
- &:disabled {
71
- cursor: not-allowed;
72
- opacity: 0.4;
73
-
74
- &:hover {
75
- background-color: transparent;
76
- }
77
- }
78
-
79
- // Item with description
80
- &.has-description {
81
- height: auto;
82
- min-height: 50px;
83
- }
84
-
85
- // Red mode (destructive action)
86
- &.red-mode {
87
- color: var(--comp-action-dropdown-item-text-color-red-mode, var(--ref-color-red-100));
88
-
89
- > i {
90
- color: inherit;
91
- }
92
-
93
- &:hover {
94
- background-color: var(--comp-action-dropdown-item-background-color-red-mode-hover, var(--ref-color-red-10));
95
- }
96
-
97
- &:focus,
98
- &.focused {
99
- background-color: var(--comp-action-dropdown-item-background-color-red-mode-focused, var(--ref-color-red-10));
100
- }
101
- }
102
-
103
- // Feature lock
104
- &.feature-lock {
105
- > i:last-child {
106
- color: var(--ref-color-purple-100);
107
- }
108
-
109
- &:hover {
110
- background-color: var(--comp-action-dropdown-item-background-color-feature-lock-hover, var(--ref-color-purple-10));
111
- }
112
-
113
- &:focus,
114
- &.focused {
115
- background-color: var(--comp-action-dropdown-item-background-color-feature-lock-focused, var(--ref-color-purple-10));
116
- }
117
- }
118
-
119
- // Badge within dropdown item
120
- .ap-badge {
121
- flex-shrink: 0;
122
- }
123
- }
124
-
125
- // Text container
126
- .ap-action-dropdown-item-text {
127
- display: flex;
128
- flex-direction: column;
129
- flex: 1;
130
- min-width: 0;
131
- gap: var(--ref-spacing-xxxs);
132
- }
133
-
134
- // Label container
135
- .ap-action-dropdown-item-label-container {
136
- display: flex;
137
- align-items: center;
138
- gap: var(--comp-action-dropdown-item-label-spacing, var(--ref-spacing-xs));
139
- @include m.truncate;
140
- }
141
-
142
- // Label
143
- .ap-action-dropdown-item-label {
144
- @include m.truncate;
145
-
146
- &.bold {
147
- font-weight: var(--ref-font-weight-bold);
148
- }
149
- }
150
-
151
- // Description
152
- .ap-action-dropdown-item-description {
153
- color: var(--comp-action-dropdown-item-description-color, var(--ref-color-grey-60));
154
- font-size: var(--comp-action-dropdown-item-description-size, var(--ref-font-size-xs));
155
- line-height: var(--comp-action-dropdown-item-description-line-height, var(--ref-line-height-xs));
156
- }
157
-
158
- // Divider
159
- .ap-action-dropdown-divider {
160
- height: 1px;
161
- background-color: var(--comp-action-dropdown-divider-color, var(--ref-color-grey-10));
162
- margin: var(--comp-action-dropdown-divider-margin, var(--ref-spacing-xxs) 0);
163
- }
@@ -1,61 +0,0 @@
1
- // Agorapulse Avatar Group Styles
2
- @use 'mixins' as m;
3
-
4
- // Avatar group container — uses row-reverse for correct z-stacking (first avatar on top)
5
- // DOM order is reversed from visual order
6
- .ap-avatar-group {
7
- display: inline-flex;
8
- flex-direction: row-reverse;
9
- align-items: center;
10
- padding-left: 2px; // compensate overlap offset
11
-
12
- .ap-avatar,
13
- .ap-avatar-group-overflow {
14
- margin-inline-start: -2px;
15
- cursor: default;
16
- }
17
-
18
- // Size variants set overflow counter dimensions
19
- &.size-16 .ap-avatar-group-overflow {
20
- width: 16px;
21
- height: 16px;
22
- font-size: 8px;
23
- }
24
-
25
- &.size-32 .ap-avatar-group-overflow {
26
- width: 32px;
27
- height: 32px;
28
- font-size: 12px;
29
- }
30
- }
31
-
32
- // Overflow counter badge
33
- .ap-avatar-group-overflow {
34
- display: flex;
35
- align-items: center;
36
- justify-content: center;
37
- background-color: var(--ref-color-grey-10);
38
- border-radius: 24px;
39
- transition: background-color var(--ref-animation-short);
40
- width: 24px;
41
- height: 24px;
42
- font-family: var(--ref-font-family);
43
- font-weight: 700;
44
- font-size: 10px;
45
- color: var(--ref-color-grey-80);
46
- line-height: 1em;
47
-
48
- &:hover {
49
- background-color: var(--ref-color-grey-20);
50
- }
51
-
52
- &:active {
53
- background-color: var(--ref-color-grey-40);
54
- }
55
-
56
- &:focus-visible {
57
- background-color: var(--ref-color-grey-20);
58
- outline: 3px solid var(--ref-color-electric-blue-100);
59
- outline-offset: 1px;
60
- }
61
- }