@webority/theme 0.180.0 → 0.181.1

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.180.0",
3
+ "version": "0.181.1",
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": {
@@ -80,8 +80,8 @@
80
80
  "devDependencies": {
81
81
  "@popperjs/core": "2.11.8",
82
82
  "@types/node": "25.6.0",
83
- "@webority/biome-config": "0.180.0",
84
- "@webority/tokens": "0.180.0",
83
+ "@webority/biome-config": "0.181.1",
84
+ "@webority/tokens": "0.181.1",
85
85
  "bootstrap": "5.3.9",
86
86
  "country-flag-icons": "^1.6.20",
87
87
  "sass-embedded": "^1.108.0",
@@ -1,4 +1,4 @@
1
- // Generated by @webority/tokens 0.180.0 from its token source. Do not edit; run webority brand --library.
1
+ // Generated by @webority/tokens 0.181.1 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.180.0 from its token source. Do not edit; run webority brand --library.
1
+ // Generated by @webority/tokens 0.181.1 from its token source. Do not edit; run webority brand --library.
2
2
 
3
3
  @media (prefers-contrast: more) {
4
4
  :root,
@@ -1,4 +1,4 @@
1
- // Generated by @webority/tokens 0.180.0 from its token source. Do not edit; run webority brand --library.
1
+ // Generated by @webority/tokens 0.181.1 from its token source. Do not edit; run webority brand --library.
2
2
 
3
3
  :root {
4
4
  --wui-primary: #4F46E5;
@@ -121,7 +121,3 @@
121
121
  width: 100%;
122
122
  // `.wui-empty-state-table` / `.tbl-empty-plain` inside own the centring and padding.
123
123
  }
124
- // An empty list shows its empty state with no column headers above it, unless the table opts in with .wui-table-empty-header.
125
- .table-wrap:has(> .tbl-empty-block:not([hidden])) > table:not(.wui-table-empty-header) > thead {
126
- display: none;
127
- }
@@ -30,9 +30,17 @@
30
30
  background: var(--color-surface);
31
31
  }
32
32
 
33
- // Inputs fill their cell; the cell adds no padding around them, so a line reads as one row of fields.
34
- .wui-entry-grid-table td:has(input:not([type="checkbox"], [type="radio"]), select, textarea) {
35
- padding: 0;
33
+ // Headings and cells share one inline padding, so each field starts and ends where its heading does,
34
+ // and a number field ends under its number heading. Body cells align to the top, so a picker, an input
35
+ // and a row button share one top edge. The status column and the row detail keep their own padding.
36
+ .wui-entry-grid-table {
37
+ --wui-entry-grid-cell-padding-inline: var(--wui-space-md);
38
+ }
39
+ .wui-entry-grid-table > * > tr:not(.wui-entry-grid-detail) > :is(th, td):not(.wui-entry-grid-status) {
40
+ padding-inline: var(--wui-entry-grid-cell-padding-inline);
41
+ }
42
+ .wui-entry-grid-table > tbody > tr.wui-entry-grid-row > td:not(.wui-entry-grid-status) {
43
+ vertical-align: top;
36
44
  }
37
45
  .wui-entry-grid-table td > :is(input, select, textarea):not([type="checkbox"], [type="radio"]) {
38
46
  width: 100%;
@@ -41,7 +49,6 @@
41
49
  .wui-entry-grid-table td > wui-select {
42
50
  display: block;
43
51
  width: 100%;
44
- max-width: 22.125rem;
45
52
  min-width: 0;
46
53
  }
47
54
 
@@ -57,11 +64,9 @@
57
64
  vertical-align: middle;
58
65
  }
59
66
 
67
+ // The edited row keeps one light tint, hovered or not. A brand sets its own tint with this token.
60
68
  .wui-entry-grid-row.is-active {
61
- --bs-table-bg-state: var(--color-primary-soft);
62
- }
63
- .wui-entry-grid-row.is-active:hover {
64
- --bs-table-bg-state: color-mix(in srgb, var(--color-primary) 14%, transparent);
69
+ --bs-table-bg-state: var(--wui-entry-grid-active-bg, var(--color-primary-soft));
65
70
  }
66
71
  .wui-entry-grid-row.is-active > td:first-child {
67
72
  box-shadow:
@@ -106,10 +111,22 @@
106
111
  }
107
112
 
108
113
  // The actions column: Save and Cancel sit at the end of the row with a small gap. Drawn only with that column.
114
+ // It stays at the end edge while the wrap scrolls sideways, so a changed line's Save and Cancel stay in reach.
115
+ // Its cells are opaque like the pinned start column's, and the header's own cell sits in the header's layer.
109
116
  .wui-entry-grid__row-actions {
110
117
  text-align: end;
111
118
  white-space: nowrap;
112
119
  }
120
+ .wui-entry-grid-table .wui-entry-grid__row-actions {
121
+ position: sticky;
122
+ inset-inline-end: 0;
123
+ z-index: 1;
124
+ background: var(--color-surface);
125
+ box-shadow: inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)));
126
+ }
127
+ .wui-entry-grid-table thead .wui-entry-grid__row-actions {
128
+ z-index: 3;
129
+ }
113
130
  .wui-entry-grid__row-actions > .btn + .btn {
114
131
  margin-inline-start: var(--wui-space-xs);
115
132
  }