@webority/theme 0.108.0 → 0.109.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/theme",
3
- "version": "0.108.0",
3
+ "version": "0.109.0",
4
4
  "description": "Webority shared design system — Bootstrap 5.3 SCSS overrides, --wui-* tokens, and shared component CSS. The single source of brand chrome for React portals and Razor sites.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "publishConfig": {
@@ -51,7 +51,7 @@
51
51
  "country-flag-icons": "^1.6.20",
52
52
  "sass-embedded": "^1.97.0",
53
53
  "vite": "^8.0.12",
54
- "@webority/tokens": "0.108.0"
54
+ "@webority/tokens": "0.109.0"
55
55
  },
56
56
  "scripts": {
57
57
  "tokens": "node ../tokens/dist/webority.js brand --library --out ../tokens/dist --web scss/_tokens.generated.scss",
@@ -1,4 +1,4 @@
1
- // Generated by @webority/tokens 0.108.0 from its token source. Do not edit; run webority brand --library.
1
+ // Generated by @webority/tokens 0.109.0 from its token source. Do not edit; run webority brand --library.
2
2
  $body-color: #252f4a !default;
3
3
  $body-secondary-color: #4b5675 !default;
4
4
  $body-tertiary-color: #626a82 !default;
@@ -1,4 +1,4 @@
1
- // Generated by @webority/tokens 0.108.0 from its token source. Do not edit; run webority brand --library.
1
+ // Generated by @webority/tokens 0.109.0 from its token source. Do not edit; run webority brand --library.
2
2
 
3
3
  :root {
4
4
  --wui-primary: #4F46E5;
@@ -74,6 +74,9 @@
74
74
  @import "wui/onboarding-checklist";
75
75
  @import "wui/rating";
76
76
  @import "wui/score-scale";
77
+ @import "wui/list-card";
78
+ @import "wui/money";
79
+ @import "wui/period-picker";
77
80
  @import "wui/relative-time";
78
81
  @import "wui/resizable";
79
82
  @import "wui/rolling-number";
@@ -63,6 +63,9 @@
63
63
  @import "wui/onboarding-checklist";
64
64
  @import "wui/rating";
65
65
  @import "wui/score-scale";
66
+ @import "wui/list-card";
67
+ @import "wui/money";
68
+ @import "wui/period-picker";
66
69
  @import "wui/relative-time";
67
70
  @import "wui/resizable";
68
71
  @import "wui/rolling-number";
@@ -282,6 +282,59 @@ button.wui-reaction:hover,
282
282
  }
283
283
  }
284
284
 
285
+ // An internal note reads apart from what the customer sees: a warning tint and a badge.
286
+ .wui-comment--internal > .wui-comment-row > .wui-comment-main {
287
+ padding: var(--wui-space-sm) var(--wui-space-md);
288
+ border: 1px solid var(--color-warning-border);
289
+ border-radius: var(--wui-radius-sm);
290
+ background: var(--color-warning-soft);
291
+ }
292
+ .wui-comment-internal-badge {
293
+ color: var(--color-warning-text-on-soft);
294
+ background: var(--color-warning-soft);
295
+ border: 1px solid var(--color-warning-border);
296
+ }
297
+
298
+ .wui-comment-attachments {
299
+ display: flex;
300
+ flex-wrap: wrap;
301
+ gap: var(--wui-space-sm) var(--wui-space-md);
302
+ margin: 0;
303
+ padding: 0;
304
+ list-style: none;
305
+ font-size: var(--wui-fs-xs);
306
+ }
307
+ .wui-comment-attachment {
308
+ display: inline-flex;
309
+ align-items: center;
310
+ gap: var(--wui-space-xs);
311
+ }
312
+ .wui-comment-attachment-size {
313
+ margin-inline-start: var(--wui-space-xs);
314
+ color: var(--color-text-muted);
315
+ font-variant-numeric: tabular-nums;
316
+ }
317
+
318
+ // Conversation: each message a bubble; the viewer's own on the right, as a chat reads.
319
+ .wui-comment-thread--conversation {
320
+ .wui-comment-row > .wui-comment-main {
321
+ flex: 0 1 auto;
322
+ max-width: min(80%, 640px);
323
+ padding: var(--wui-space-sm) var(--wui-space-md);
324
+ border-radius: var(--wui-radius-lg);
325
+ background: var(--color-bg-muted);
326
+ }
327
+ .wui-comment--mine > .wui-comment-row {
328
+ flex-direction: row-reverse;
329
+ }
330
+ .wui-comment--mine > .wui-comment-row > .wui-comment-main {
331
+ background: var(--color-primary-soft);
332
+ }
333
+ .wui-comment--internal > .wui-comment-row > .wui-comment-main {
334
+ background: var(--color-warning-soft);
335
+ }
336
+ }
337
+
285
338
  @media (prefers-reduced-motion: reduce) {
286
339
  .wui-reaction,
287
340
  .wui-reaction-add {
@@ -262,7 +262,8 @@ a.kpi:focus-visible {
262
262
  }
263
263
  @include media-breakpoint-up(lg) {
264
264
  .kpi-row.kpi-row {
265
- grid-template-columns: repeat(4, minmax(0, 1fr));
265
+ // <app-kpi-row columns> sets the count; 4 when unset.
266
+ grid-template-columns: repeat(var(--wui-kpi-row-columns, 4), minmax(0, 1fr));
266
267
  }
267
268
  }
268
269
 
@@ -0,0 +1,14 @@
1
+ // ── List card ──
2
+ // <app-list-card>: the frame of a list page. Its filter row sits between the header and the
3
+ // table with the header's side inset, so filters line up with the title.
4
+ //
5
+ // Part of the wui-components layer, see _wui-components.scss for load order.
6
+
7
+ .wui-list-card-filters {
8
+ padding: 0 var(--bs-card-spacer-x) var(--bs-card-spacer-y);
9
+ }
10
+
11
+ .wui-list-card-count {
12
+ margin-inline-start: var(--wui-space-xs);
13
+ vertical-align: middle;
14
+ }
@@ -0,0 +1,9 @@
1
+ // ── Money ──
2
+ // <app-money>: an amount in rupees; tabular figures so a column of amounts lines up.
3
+ //
4
+ // Part of the wui-components layer, see _wui-components.scss for load order.
5
+
6
+ .wui-money {
7
+ white-space: nowrap;
8
+ font-variant-numeric: tabular-nums;
9
+ }
@@ -0,0 +1,24 @@
1
+ // ── Period picker ──
2
+ // <app-period-picker>: the period filter of a report or list page. The month kind is two arrows
3
+ // around a fixed-width label, so the arrows stay put as the month name changes.
4
+ //
5
+ // Part of the wui-components layer, see _wui-components.scss for load order.
6
+
7
+ .wui-period-picker {
8
+ display: inline-flex;
9
+ align-items: center;
10
+ gap: var(--wui-space-sm);
11
+ }
12
+
13
+ .wui-period-month {
14
+ display: inline-flex;
15
+ align-items: center;
16
+ gap: var(--wui-space-xs);
17
+ }
18
+
19
+ .wui-period-month-label {
20
+ min-width: 6.5em;
21
+ text-align: center;
22
+ font-weight: var(--wui-fw-medium);
23
+ font-variant-numeric: tabular-nums;
24
+ }