@webority/theme 0.135.0 → 0.136.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.135.0",
3
+ "version": "0.136.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": {
@@ -47,7 +47,7 @@
47
47
  "postcss": "^8.5.31"
48
48
  },
49
49
  "devDependencies": {
50
- "@webority/tokens": "0.135.0",
50
+ "@webority/tokens": "0.136.0",
51
51
  "bootstrap": "5.3.3",
52
52
  "country-flag-icons": "^1.6.20",
53
53
  "sass-embedded": "^1.97.0",
@@ -1,4 +1,4 @@
1
- // Generated by @webority/tokens 0.135.0 from its token source. Do not edit; run webority brand --library.
1
+ // Generated by @webority/tokens 0.136.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.135.0 from its token source. Do not edit; run webority brand --library.
1
+ // Generated by @webority/tokens 0.136.0 from its token source. Do not edit; run webority brand --library.
2
2
 
3
3
  :root {
4
4
  --wui-primary: #4F46E5;
@@ -107,6 +107,7 @@
107
107
  @import "wui/theme-toggle";
108
108
  @import "wui/auth-layout";
109
109
  @import "wui/tree";
110
+ @import "wui/org-tree";
110
111
  @import "wui/floating";
111
112
  @import "wui/code-block";
112
113
  // After `overlays`: anchors the shared modal shell to the top when it holds the palette card.
@@ -0,0 +1,221 @@
1
+ // ── Org tree ──
2
+ // AppOrgTree / <app-org-tree> over <wui-org-tree>. Each surface draws the markup; this partial draws
3
+ // it as an inverted org chart: root on top, reports in a row below, connector lines in the border
4
+ // colour. State lives on ARIA attributes and data-wui-org-state, which the element writes.
5
+ //
6
+ // Part of the wui-components layer, see _wui-components.scss for load order.
7
+
8
+ wui-org-tree {
9
+ display: block;
10
+ min-width: 0;
11
+ max-width: 100%;
12
+ }
13
+
14
+ .wui-org-tree-toolbar {
15
+ display: flex;
16
+ margin-bottom: var(--wui-space-md);
17
+ }
18
+ // The filter bar's search width (_data.scss), so both search boxes read as the same control.
19
+ .wui-org-tree-search {
20
+ width: 100%;
21
+ max-width: 320px;
22
+ }
23
+
24
+ // The page never widens: a wide org scrolls inside the canvas.
25
+ .wui-org-tree-canvas {
26
+ max-width: 100%;
27
+ overflow-x: auto;
28
+ overscroll-behavior-x: contain;
29
+ }
30
+
31
+ .wui-org-tree,
32
+ .wui-org-tree-children {
33
+ display: flex;
34
+ align-items: flex-start;
35
+ justify-content: center;
36
+ margin: 0;
37
+ padding: 0;
38
+ list-style: none;
39
+ }
40
+ // safe keeps an overflowing root row reachable from its start edge; plain center would clip it.
41
+ .wui-org-tree {
42
+ justify-content: safe center;
43
+ }
44
+
45
+ .wui-org-tree-item {
46
+ position: relative;
47
+ display: flex;
48
+ flex: none;
49
+ flex-direction: column;
50
+ align-items: center;
51
+ padding: 0 var(--wui-space-sm);
52
+ outline: none;
53
+ }
54
+
55
+ // Connectors. Each child's top padding holds its half of the line: the vertical line runs from the
56
+ // child's top edge to the bar at half that padding, and the bar spans the sibling items. The parent's
57
+ // children list draws the line down to the same bar height, so the two halves meet.
58
+ .wui-org-tree-children > .wui-org-tree-item {
59
+ padding-top: var(--wui-space-lg);
60
+ }
61
+ .wui-org-tree-children > .wui-org-tree-item::before,
62
+ .wui-org-tree-children > .wui-org-tree-item::after {
63
+ content: "";
64
+ position: absolute;
65
+ }
66
+ .wui-org-tree-children > .wui-org-tree-item::before {
67
+ top: 0;
68
+ left: 50%;
69
+ height: calc(var(--wui-space-lg) / 2);
70
+ border-left: 1px solid var(--color-border);
71
+ }
72
+ .wui-org-tree-children > .wui-org-tree-item::after {
73
+ top: calc(var(--wui-space-lg) / 2);
74
+ right: 0;
75
+ left: 0;
76
+ border-top: 1px solid var(--color-border);
77
+ }
78
+ .wui-org-tree-children > .wui-org-tree-item:first-child::after {
79
+ left: 50%;
80
+ }
81
+ .wui-org-tree-children > .wui-org-tree-item:last-child::after {
82
+ right: 50%;
83
+ }
84
+ .wui-org-tree-children > .wui-org-tree-item:only-child::after {
85
+ display: none;
86
+ }
87
+
88
+ .wui-org-tree-children {
89
+ position: relative;
90
+ }
91
+ .wui-org-tree-children[hidden] {
92
+ display: none;
93
+ }
94
+ .wui-org-tree-children::before {
95
+ content: "";
96
+ position: absolute;
97
+ top: 0;
98
+ left: 50%;
99
+ height: calc(var(--wui-space-lg) / 2);
100
+ border-left: 1px solid var(--color-border);
101
+ }
102
+
103
+ // ── Node card ──
104
+ .wui-org-tree-node {
105
+ position: relative;
106
+ display: grid;
107
+ grid-template-columns: auto minmax(0, 1fr);
108
+ align-items: center;
109
+ gap: var(--wui-space-xs) var(--wui-space-sm);
110
+ width: 176px;
111
+ padding: var(--wui-space-sm);
112
+ border: 1px solid var(--color-border);
113
+ border-radius: var(--wui-radius-md);
114
+ background: var(--color-surface);
115
+ color: var(--color-text);
116
+ text-align: start;
117
+ transition: opacity var(--wui-duration-fast) var(--wui-ease-ui);
118
+ }
119
+
120
+ .wui-org-tree-text {
121
+ display: flex;
122
+ flex-direction: column;
123
+ min-width: 0;
124
+ }
125
+ .wui-org-tree-name {
126
+ font-size: var(--wui-fs-sm);
127
+ font-weight: var(--wui-fw-medium);
128
+ overflow-wrap: anywhere;
129
+ }
130
+ .wui-org-tree-role,
131
+ .wui-org-tree-team {
132
+ color: var(--color-text-muted);
133
+ font-size: var(--wui-fs-xs);
134
+ overflow-wrap: anywhere;
135
+ }
136
+
137
+ .wui-org-tree-overlay {
138
+ grid-column: 1 / -1;
139
+ min-width: 0;
140
+ }
141
+
142
+ .wui-org-tree-toggle {
143
+ grid-column: 1 / -1;
144
+ justify-self: center;
145
+ display: inline-flex;
146
+ align-items: center;
147
+ gap: var(--wui-space-xxs);
148
+ padding: var(--wui-space-xxs) var(--wui-space-xs);
149
+ border: 0;
150
+ border-radius: var(--wui-radius-pill);
151
+ background: transparent;
152
+ color: var(--color-text-muted);
153
+ font-size: var(--wui-fs-xs);
154
+ cursor: pointer;
155
+ }
156
+ .wui-org-tree-toggle:hover {
157
+ background: var(--color-bg-muted);
158
+ color: var(--color-text);
159
+ }
160
+ .wui-org-tree-toggle svg {
161
+ flex: none;
162
+ transition: transform var(--wui-duration-fast) var(--wui-ease-ui);
163
+ }
164
+ .wui-org-tree-item[aria-expanded="true"] > .wui-org-tree-node > .wui-org-tree-toggle svg {
165
+ transform: rotate(180deg);
166
+ }
167
+ .wui-org-tree-count {
168
+ font-weight: var(--wui-fw-semibold);
169
+ font-variant-numeric: tabular-nums;
170
+ }
171
+ @media (pointer: coarse) {
172
+ .wui-org-tree-toggle {
173
+ min-height: var(--wui-control-lg);
174
+ }
175
+ }
176
+
177
+ // ── States ──
178
+ .wui-org-tree-item[data-wui-org-state="highlight"] > .wui-org-tree-node {
179
+ border-color: var(--color-primary);
180
+ }
181
+ .wui-org-tree-item[data-wui-org-state="dim"] > .wui-org-tree-node {
182
+ opacity: var(--wui-disabled-opacity);
183
+ }
184
+ // The selected and focus treatments are the tree view's (_tree.scss).
185
+ .wui-org-tree-item[aria-selected="true"] > .wui-org-tree-node {
186
+ background: var(--color-primary-soft);
187
+ color: var(--color-primary-text);
188
+ }
189
+ // The item holds its subtree, so the ring goes on its own card, as it does on a tree row.
190
+ .wui-org-tree-item:focus-visible > .wui-org-tree-node {
191
+ outline: var(--wui-focus-ring-width) solid var(--color-focus-ring);
192
+ outline-offset: var(--wui-focus-ring-inset);
193
+ }
194
+ // Child combinators keep a matching manager's whole team from turning bold.
195
+ .wui-org-tree-match > .wui-org-tree-node > .wui-org-tree-text > .wui-org-tree-name {
196
+ font-weight: var(--wui-fw-semibold);
197
+ }
198
+
199
+ @media (prefers-reduced-motion: reduce) {
200
+ .wui-org-tree-node,
201
+ .wui-org-tree-toggle svg {
202
+ transition: none;
203
+ }
204
+ }
205
+
206
+ @media print {
207
+ .wui-org-tree-toolbar,
208
+ .wui-org-tree-toggle {
209
+ display: none;
210
+ }
211
+ .wui-org-tree-canvas {
212
+ overflow: visible;
213
+ }
214
+ .wui-org-tree {
215
+ transform: scale(var(--wui-org-tree-print-scale, 1));
216
+ transform-origin: top left;
217
+ }
218
+ .wui-org-tree-item {
219
+ break-inside: avoid;
220
+ }
221
+ }