@agorapulse/ui-theme 22.0.7 → 22.0.9

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 (46) hide show
  1. package/agorapulse-ui-theme-22.0.9.tgz +0 -0
  2. package/assets/style/{css-ui/_helpers.scss → _helpers.scss} +5 -10
  3. package/assets/style/_table.scss +98 -0
  4. package/assets/style/{css-ui/_typography.scss → _typography.scss} +8 -41
  5. package/assets/style/theme.scss +2 -2
  6. package/package.json +2 -9
  7. package/agorapulse-ui-theme-22.0.7.tgz +0 -0
  8. package/assets/style/css-ui/_accordion.scss +0 -56
  9. package/assets/style/css-ui/_action-dropdown.scss +0 -163
  10. package/assets/style/css-ui/_avatar-group.scss +0 -61
  11. package/assets/style/css-ui/_avatar.scss +0 -191
  12. package/assets/style/css-ui/_badge.scss +0 -28
  13. package/assets/style/css-ui/_button.scss +0 -265
  14. package/assets/style/css-ui/_card.scss +0 -17
  15. package/assets/style/css-ui/_checkbox.scss +0 -191
  16. package/assets/style/css-ui/_counter.scss +0 -76
  17. package/assets/style/css-ui/_datepicker.scss +0 -309
  18. package/assets/style/css-ui/_dialog.scss +0 -74
  19. package/assets/style/css-ui/_dot-stepper.scss +0 -68
  20. package/assets/style/css-ui/_icon-button.scss +0 -200
  21. package/assets/style/css-ui/_infobox.scss +0 -181
  22. package/assets/style/css-ui/_input.scss +0 -128
  23. package/assets/style/css-ui/_label.scss +0 -95
  24. package/assets/style/css-ui/_link.scss +0 -86
  25. package/assets/style/css-ui/_list-panel.scss +0 -73
  26. package/assets/style/css-ui/_loader.scss +0 -228
  27. package/assets/style/css-ui/_mixins.scss +0 -50
  28. package/assets/style/css-ui/_pagination.scss +0 -177
  29. package/assets/style/css-ui/_radio-card.scss +0 -200
  30. package/assets/style/css-ui/_radio.scss +0 -106
  31. package/assets/style/css-ui/_select.scss +0 -658
  32. package/assets/style/css-ui/_selection-dropdown.scss +0 -183
  33. package/assets/style/css-ui/_snackbar.scss +0 -181
  34. package/assets/style/css-ui/_split-button.scss +0 -74
  35. package/assets/style/css-ui/_status.scss +0 -83
  36. package/assets/style/css-ui/_stepper.scss +0 -113
  37. package/assets/style/css-ui/_table.scss +0 -323
  38. package/assets/style/css-ui/_tabs.scss +0 -189
  39. package/assets/style/css-ui/_tag.scss +0 -181
  40. package/assets/style/css-ui/_textarea.scss +0 -117
  41. package/assets/style/css-ui/_toggle.scss +0 -131
  42. package/assets/style/css-ui/_tooltip.scss +0 -134
  43. package/assets/style/css-ui/font-face.css +0 -43
  44. package/assets/style/css-ui/index.css +0 -4943
  45. package/assets/style/css-ui/index.css.map +0 -1
  46. package/assets/style/css-ui/index.scss +0 -39
Binary file
@@ -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;
@@ -5,6 +5,7 @@
5
5
  $cell-height: 52px;
6
6
  $cell-height-small: 40px;
7
7
  $sort-icon-size: 16px;
8
+ $grab-icon-size: 16px;
8
9
 
9
10
  // ============================================================================
10
11
  // Base Table Styles
@@ -177,6 +178,19 @@ $sort-icon-size: 16px;
177
178
  width: $cell-height;
178
179
  text-align: center;
179
180
  }
181
+
182
+ &.ap-table__header-cell--draggable {
183
+ cursor: move;
184
+
185
+ &.cdk-drag-disabled {
186
+ cursor: default;
187
+ }
188
+ }
189
+
190
+ &.ap-table__header-cell--dragging {
191
+ color: var(--ref-color-grey-40);
192
+ background-color: var(--ref-color-electric-blue-05);
193
+ }
180
194
  }
181
195
 
182
196
  // ========================================================================
@@ -211,6 +225,11 @@ $sort-icon-size: 16px;
211
225
  padding: 0 var(--ref-spacing-sm);
212
226
  }
213
227
 
228
+ &.ap-table__body-cell--dragging {
229
+ color: transparent;
230
+ background-color: var(--ref-color-electric-blue-05);
231
+ }
232
+
214
233
  // Reserves matching right space so content aligns with the sortable
215
234
  // header title text (shifted left by the sort icon + gap).
216
235
  &.ap-table__body-cell--sortable {
@@ -315,6 +334,7 @@ $sort-icon-size: 16px;
315
334
 
316
335
  .ap-table__drag-handle {
317
336
  cursor: move;
337
+ color: var(--ref-color-grey-40);
318
338
  }
319
339
  }
320
340
 
@@ -366,3 +386,81 @@ tr[cdk-row] {
366
386
  transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
367
387
  }
368
388
  }
389
+
390
+ th[cdk-header-cell] {
391
+ &.cdk-drag-placeholder {
392
+ background-color: var(--ref-color-electric-blue-05) !important;
393
+ border-bottom: 1px dashed var(--ref-color-electric-blue-20) !important;
394
+ opacity: 0.7 !important;
395
+ transition: transform 250ms cubic-bezier(0, 0, 0.2, 1) !important;
396
+
397
+ * {
398
+ visibility: hidden;
399
+ }
400
+ }
401
+
402
+ &.cdk-drag-animating {
403
+ transition: transform 350ms cubic-bezier(0, 0, 0.2, 1);
404
+ }
405
+ }
406
+
407
+ table.ap-table.cdk-drop-list-dragging {
408
+ th[cdk-header-cell].cdk-drag,
409
+ td[cdk-cell] {
410
+ transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
411
+ }
412
+ }
413
+
414
+ .ap-table__column-preview {
415
+ display: flex;
416
+ flex-direction: column;
417
+ overflow: hidden;
418
+ border-radius: var(--ref-border-radius-md);
419
+ background-color: var(--ref-color-electric-blue-10);
420
+ border: 1px solid var(--ref-color-electric-blue-40);
421
+ font-family: Averta;
422
+ opacity: 0.95;
423
+
424
+ .ap-table__column-preview-header {
425
+ display: flex;
426
+ align-items: center;
427
+ gap: var(--ref-spacing-xxxs);
428
+ height: $cell-height;
429
+ padding: var(--ref-spacing-xxs) var(--ref-spacing-xs);
430
+ font-size: var(--ref-font-size-xs);
431
+ font-weight: var(--ref-font-weight-bold);
432
+ color: var(--ref-color-grey-100);
433
+ border-bottom: 1px solid var(--ref-color-electric-blue-40);
434
+ white-space: nowrap;
435
+ }
436
+
437
+ .ap-table__column-preview-cell {
438
+ display: flex;
439
+ align-items: center;
440
+ height: $cell-height;
441
+ padding: 0 var(--ref-spacing-xs);
442
+ font-size: var(--ref-font-size-sm);
443
+ color: var(--ref-color-grey-100);
444
+ white-space: nowrap;
445
+ }
446
+
447
+ .ap-table__drag-handle {
448
+ cursor: move;
449
+ color: var(--ref-color-grey-40);
450
+ }
451
+ }
452
+
453
+ .ap-table__column-preview--small {
454
+ .ap-table__column-preview-header,
455
+ .ap-table__column-preview-cell {
456
+ height: $cell-height-small;
457
+ }
458
+ }
459
+
460
+ .ap-table__column-preview.cdk-drag-preview {
461
+ translate: calc(-1px - var(--ref-spacing-xs) - #{$grab-icon-size * 0.5}) calc(-1px - #{$cell-height * 0.5});
462
+
463
+ &.ap-table__column-preview--small {
464
+ translate: calc(-1px - var(--ref-spacing-xs) - #{$grab-icon-size * 0.5}) calc(-1px - #{$cell-height-small * 0.5});
465
+ }
466
+ }
@@ -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
  }
@@ -40,12 +40,12 @@ $custom-typography: mat.m2-define-typography-config(
40
40
  * TYPOGRAPHY
41
41
  */
42
42
 
43
- @use 'css-ui/typography';
43
+ @use 'typography';
44
44
 
45
45
  /*
46
46
  * HELPERS
47
47
  */
48
- @use 'css-ui/helpers';
48
+ @use 'helpers';
49
49
 
50
50
  /*
51
51
  * COMPONENTS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agorapulse/ui-theme",
3
- "version": "22.0.7",
3
+ "version": "22.0.9",
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": {
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
- }