@webority/theme 0.24.0 → 0.26.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/README.md +16 -2
- package/dist/purge-safelist.json +199 -2
- package/dist/webority-brand-signal.css +1 -0
- package/dist/webority-theme.css +2 -2
- package/fonts/sans/OFL.txt +92 -0
- package/fonts/sans/WeboritySans-Bold.woff2 +0 -0
- package/fonts/sans/WeboritySans-BoldItalic.woff2 +0 -0
- package/fonts/sans/WeboritySans-Medium.woff2 +0 -0
- package/fonts/sans/WeboritySans-Regular.woff2 +0 -0
- package/fonts/sans/WeboritySans-RegularItalic.woff2 +0 -0
- package/fonts/sans/WeboritySans-SemiBold.woff2 +0 -0
- package/fonts/serif/WeboritySerif-Bold.woff2 +0 -0
- package/fonts/serif/WeboritySerif-BoldItalic.woff2 +0 -0
- package/fonts/serif/WeboritySerif-DemiBold.woff2 +0 -0
- package/fonts/serif/WeboritySerif-ExtraBold.woff2 +0 -0
- package/fonts/serif/WeboritySerif-Medium.woff2 +0 -0
- package/fonts/serif/WeboritySerif-Regular.woff2 +0 -0
- package/fonts/serif/WeboritySerif-RegularItalic.woff2 +0 -0
- package/index.scss +2 -1
- package/package.json +4 -2
- package/scss/_brand-signal.scss +202 -0
- package/scss/_fonts.scss +96 -0
- package/scss/_tokens.scss +55 -2
- package/scss/_variables.scss +2 -1
- package/scss/_wui-aliases.scss +21 -0
- package/scss/_wui-components.scss +12 -0
- package/scss/wui/_calendar.scss +256 -0
- package/scss/wui/_chart-card.scss +86 -0
- package/scss/wui/_chart.scss +524 -0
- package/scss/wui/_context-menu.scss +53 -0
- package/scss/wui/_data.scss +8 -6
- package/scss/wui/_display.scss +1 -1
- package/scss/wui/_image-crop.scss +146 -0
- package/scss/wui/_kanban.scss +434 -0
- package/scss/wui/_modal-remote.scss +55 -0
- package/scss/wui/_overlays.scss +39 -0
- package/scss/wui/_rich-text.scss +281 -0
- package/scss/wui/_shell-parts.scss +503 -0
- package/scss/wui/_shell.scss +11 -0
- package/scss/wui/_sortable.scss +135 -0
- package/scss/wui/_table-server.scss +40 -0
- package/scss/wui/_tree.scss +124 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
// ── Tree view ──
|
|
2
|
+
// AppTreeView / <app-tree-view> / <wui-tree>: a hierarchy in the WAI-ARIA tree pattern. The element
|
|
3
|
+
// draws the markup and keeps the state on ARIA attributes (aria-expanded on an item,
|
|
4
|
+
// aria-selected / aria-checked for the selection), which are the state hooks below. Each row is
|
|
5
|
+
// indented by --wui-tree-level (set by the element), so the nesting needs no per-depth rule.
|
|
6
|
+
// Every colour is a theme token, so dark mode follows the token flip with no rules of its own.
|
|
7
|
+
//
|
|
8
|
+
// Part of the wui-components layer, see _wui-components.scss for load order.
|
|
9
|
+
|
|
10
|
+
wui-tree {
|
|
11
|
+
display: block;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.wui-tree,
|
|
15
|
+
.wui-tree-group {
|
|
16
|
+
margin: 0;
|
|
17
|
+
padding: 0;
|
|
18
|
+
list-style: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.wui-tree-item {
|
|
22
|
+
outline: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.wui-tree-row {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
gap: 8px;
|
|
29
|
+
min-height: 36px;
|
|
30
|
+
padding: 4px 8px;
|
|
31
|
+
padding-inline-start: calc(8px + var(--wui-tree-level, 0) * 20px);
|
|
32
|
+
border-radius: var(--radius-sm);
|
|
33
|
+
color: var(--color-text);
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
user-select: none;
|
|
36
|
+
}
|
|
37
|
+
.wui-tree-row:hover {
|
|
38
|
+
background: var(--color-bg-muted);
|
|
39
|
+
}
|
|
40
|
+
.wui-tree-row.wui-tree-row-selected {
|
|
41
|
+
background: var(--color-primary-soft);
|
|
42
|
+
color: var(--color-primary);
|
|
43
|
+
}
|
|
44
|
+
.wui-tree-item[aria-disabled="true"] > .wui-tree-row {
|
|
45
|
+
color: var(--color-text-subtle);
|
|
46
|
+
cursor: not-allowed;
|
|
47
|
+
}
|
|
48
|
+
.wui-tree-item[aria-disabled="true"] > .wui-tree-row:hover {
|
|
49
|
+
background: transparent;
|
|
50
|
+
}
|
|
51
|
+
// The item holds the focus, but it also holds its subtree, so the ring goes on its own row.
|
|
52
|
+
.wui-tree-item:focus-visible > .wui-tree-row {
|
|
53
|
+
outline: 2px solid var(--color-primary);
|
|
54
|
+
outline-offset: -2px;
|
|
55
|
+
}
|
|
56
|
+
.wui-tree-row-error .wui-tree-label {
|
|
57
|
+
color: var(--color-danger);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.wui-tree-toggle {
|
|
61
|
+
display: inline-flex;
|
|
62
|
+
flex: 0 0 auto;
|
|
63
|
+
align-items: center;
|
|
64
|
+
justify-content: center;
|
|
65
|
+
width: 20px;
|
|
66
|
+
height: 20px;
|
|
67
|
+
color: var(--color-text-muted);
|
|
68
|
+
}
|
|
69
|
+
.wui-tree-toggle .wui-icon {
|
|
70
|
+
transition: transform 0.15s ease;
|
|
71
|
+
}
|
|
72
|
+
.wui-tree-item[aria-expanded="true"] > .wui-tree-row .wui-tree-toggle .wui-icon {
|
|
73
|
+
transform: rotate(90deg);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.wui-tree-check {
|
|
77
|
+
flex: 0 0 auto;
|
|
78
|
+
margin: 0;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.wui-tree-icon {
|
|
82
|
+
display: inline-flex;
|
|
83
|
+
flex: 0 0 auto;
|
|
84
|
+
color: var(--color-text-muted);
|
|
85
|
+
}
|
|
86
|
+
.wui-tree-row-selected .wui-tree-icon {
|
|
87
|
+
color: inherit;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.wui-tree-label {
|
|
91
|
+
flex: 1 1 auto;
|
|
92
|
+
min-width: 0;
|
|
93
|
+
overflow: hidden;
|
|
94
|
+
text-overflow: ellipsis;
|
|
95
|
+
white-space: nowrap;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.wui-tree-badge {
|
|
99
|
+
flex: 0 0 auto;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.wui-tree-spinner {
|
|
103
|
+
flex: 0 0 auto;
|
|
104
|
+
width: 14px;
|
|
105
|
+
height: 14px;
|
|
106
|
+
border: 2px solid var(--color-border-strong);
|
|
107
|
+
border-top-color: var(--color-primary);
|
|
108
|
+
border-radius: 50%;
|
|
109
|
+
animation: wui-tree-spin 0.7s linear infinite;
|
|
110
|
+
}
|
|
111
|
+
@keyframes wui-tree-spin {
|
|
112
|
+
to {
|
|
113
|
+
transform: rotate(360deg);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@media (prefers-reduced-motion: reduce) {
|
|
118
|
+
.wui-tree-toggle .wui-icon {
|
|
119
|
+
transition: none;
|
|
120
|
+
}
|
|
121
|
+
.wui-tree-spinner {
|
|
122
|
+
animation-duration: 2s;
|
|
123
|
+
}
|
|
124
|
+
}
|