@monster-orange/den-ui 0.6.6 → 0.7.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/README.md +271 -7
- package/bin/den-ui-parity.mjs +80 -3
- package/inventory/fonts-dir.cjs +8 -0
- package/inventory/fonts-dir.mjs +10 -0
- package/inventory/nav-inventory.d.ts +81 -0
- package/inventory/nav-inventory.js +496 -16
- package/inventory/reference/den-chromium-1280.json +577 -98
- package/inventory/reference/den-chromium-390.json +457 -44
- package/inventory/reference/den-webkit-1280.json +577 -98
- package/inventory/reference/den-webkit-390.json +457 -44
- package/package.json +8 -1
- package/src/kit.d.ts +76 -3
- package/src/kit.js +79 -2
- package/src/marks/den.svg +6 -0
- package/src/report-shot.js +194 -12
- package/src/shell-client.d.ts +118 -0
- package/src/shell-client.js +621 -0
- package/src/shell-html.d.ts +240 -3
- package/src/shell-html.js +724 -12
- package/src/shell.css +721 -5
- package/src/strings.js +54 -0
- package/src/tokens.css +69 -63
- package/src/version.js +5 -1
package/src/strings.js
CHANGED
|
@@ -20,6 +20,24 @@ export const en = {
|
|
|
20
20
|
"kit.update.region": "Update",
|
|
21
21
|
"kit.skip": "Skip to content",
|
|
22
22
|
"kit.menu": "Menu",
|
|
23
|
+
"kit.scope": "Scope",
|
|
24
|
+
"kit.search.ph": "Search…",
|
|
25
|
+
"kit.account.local": "Local",
|
|
26
|
+
"kit.search.label": "Search",
|
|
27
|
+
"kit.bell": "Notifications",
|
|
28
|
+
"kit.bell.n": "Notifications: {n} unread",
|
|
29
|
+
"kit.bell.empty": "Nothing new.",
|
|
30
|
+
"kit.settings": "Settings",
|
|
31
|
+
"kit.appearance": "Appearance",
|
|
32
|
+
"kit.appearance.title": "Appearance and theme",
|
|
33
|
+
"kit.mode.system": "System",
|
|
34
|
+
"kit.mode.dark": "Dark",
|
|
35
|
+
"kit.mode.light": "Light",
|
|
36
|
+
"kit.theme": "Theme",
|
|
37
|
+
"kit.language": "Language",
|
|
38
|
+
"kit.menu.filter": "Filter {label}",
|
|
39
|
+
"kit.menu.filter.ph": "Filter…",
|
|
40
|
+
"kit.menu.none": "No match",
|
|
23
41
|
"kit.pages": "Pages",
|
|
24
42
|
"kit.collapse": "Collapse",
|
|
25
43
|
"kit.expand": "Expand",
|
|
@@ -160,6 +178,24 @@ export const es = {
|
|
|
160
178
|
"kit.update.region": "Actualización",
|
|
161
179
|
"kit.skip": "Saltar al contenido",
|
|
162
180
|
"kit.menu": "Menú",
|
|
181
|
+
"kit.scope": "Ámbito",
|
|
182
|
+
"kit.search.ph": "Buscar…",
|
|
183
|
+
"kit.account.local": "Local",
|
|
184
|
+
"kit.search.label": "Buscar",
|
|
185
|
+
"kit.bell": "Notificaciones",
|
|
186
|
+
"kit.bell.n": "Notificaciones: {n} sin leer",
|
|
187
|
+
"kit.bell.empty": "Nada nuevo.",
|
|
188
|
+
"kit.settings": "Ajustes",
|
|
189
|
+
"kit.appearance": "Apariencia",
|
|
190
|
+
"kit.appearance.title": "Apariencia y tema",
|
|
191
|
+
"kit.mode.system": "Sistema",
|
|
192
|
+
"kit.mode.dark": "Oscuro",
|
|
193
|
+
"kit.mode.light": "Claro",
|
|
194
|
+
"kit.theme": "Tema",
|
|
195
|
+
"kit.language": "Idioma",
|
|
196
|
+
"kit.menu.filter": "Filtrar {label}",
|
|
197
|
+
"kit.menu.filter.ph": "Filtrar…",
|
|
198
|
+
"kit.menu.none": "Sin coincidencias",
|
|
163
199
|
"kit.pages": "Páginas",
|
|
164
200
|
"kit.collapse": "Contraer",
|
|
165
201
|
"kit.expand": "Expandir",
|
|
@@ -304,6 +340,24 @@ export const ja = {
|
|
|
304
340
|
"kit.update.region": "更新",
|
|
305
341
|
"kit.skip": "本文へ移動",
|
|
306
342
|
"kit.menu": "メニュー",
|
|
343
|
+
"kit.scope": "スコープ",
|
|
344
|
+
"kit.search.ph": "検索…",
|
|
345
|
+
"kit.account.local": "ローカル",
|
|
346
|
+
"kit.search.label": "検索",
|
|
347
|
+
"kit.bell": "通知",
|
|
348
|
+
"kit.bell.n": "通知: 未読 {n} 件",
|
|
349
|
+
"kit.bell.empty": "新しいものはありません。",
|
|
350
|
+
"kit.settings": "設定",
|
|
351
|
+
"kit.appearance": "外観",
|
|
352
|
+
"kit.appearance.title": "外観とテーマ",
|
|
353
|
+
"kit.mode.system": "システム",
|
|
354
|
+
"kit.mode.dark": "ダーク",
|
|
355
|
+
"kit.mode.light": "ライト",
|
|
356
|
+
"kit.theme": "テーマ",
|
|
357
|
+
"kit.language": "言語",
|
|
358
|
+
"kit.menu.filter": "{label}を絞り込む",
|
|
359
|
+
"kit.menu.filter.ph": "絞り込み…",
|
|
360
|
+
"kit.menu.none": "一致なし",
|
|
307
361
|
"kit.pages": "ページ",
|
|
308
362
|
"kit.collapse": "折りたたむ",
|
|
309
363
|
"kit.expand": "展開する",
|
package/src/tokens.css
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* den-ui tokens (UK-1). The kit's defaults
|
|
2
|
+
* den-ui tokens (UK-1). The kit's defaults are Den's theme (themes/den,
|
|
3
|
+
* since 0.7.0: its type, shape and both modes), so a host on the kit's
|
|
4
|
+
* defaults looks like Den. A theme laid on top overrides
|
|
3
5
|
* colours (both modes), shadow, bar, type, radius, radius-button, density
|
|
4
6
|
* and fonts; never spacing, motion or layers. Every rule here has zero
|
|
5
7
|
* specificity (:where), so any theme rule wins.
|
|
@@ -10,13 +12,13 @@
|
|
|
10
12
|
|
|
11
13
|
/* Type, shape, space, depth, motion, layers, targets: one set, both modes. */
|
|
12
14
|
:where(:root) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
--display:
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
/* prettier-ignore */
|
|
16
|
+
--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
|
|
17
|
+
--mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
|
|
18
|
+
/* prettier-ignore */
|
|
19
|
+
--display: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
|
|
20
|
+
/* prettier-ignore */
|
|
21
|
+
--ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
|
|
20
22
|
--fs-xs: 12px;
|
|
21
23
|
--fs-s: 13px;
|
|
22
24
|
--fs-m: 14px;
|
|
@@ -25,8 +27,8 @@
|
|
|
25
27
|
--fs-2xl: 22px;
|
|
26
28
|
--lh: 1.45;
|
|
27
29
|
|
|
28
|
-
--radius:
|
|
29
|
-
--radius-button:
|
|
30
|
+
--radius: 8px;
|
|
31
|
+
--radius-button: 6px;
|
|
30
32
|
--r: var(--radius);
|
|
31
33
|
--r-btn: var(--radius-button);
|
|
32
34
|
|
|
@@ -68,91 +70,95 @@
|
|
|
68
70
|
:where(:root),
|
|
69
71
|
:where(:root[data-mode="light"]) {
|
|
70
72
|
color-scheme: light;
|
|
71
|
-
--bg: #
|
|
72
|
-
--surface: #
|
|
73
|
+
--bg: #f2eee8;
|
|
74
|
+
--surface: #fbf9f6;
|
|
73
75
|
--raised: #ffffff;
|
|
74
|
-
--sunken: #
|
|
75
|
-
--text:
|
|
76
|
-
--muted:
|
|
77
|
-
--faint: #
|
|
78
|
-
--border:
|
|
79
|
-
--border-strong: #
|
|
80
|
-
--accent: #
|
|
81
|
-
--accent-text: #
|
|
82
|
-
--accent-fill: #
|
|
76
|
+
--sunken: #e8e2d9;
|
|
77
|
+
--text: #241e18;
|
|
78
|
+
--muted: #5c5247;
|
|
79
|
+
--faint: #6d6358;
|
|
80
|
+
--border: #dcd3c7;
|
|
81
|
+
--border-strong: #8d7f6d;
|
|
82
|
+
--accent: #557a2a;
|
|
83
|
+
--accent-text: #415e1f;
|
|
84
|
+
--accent-fill: #4a6b23;
|
|
83
85
|
--on-accent: #ffffff;
|
|
84
|
-
--ok: #
|
|
85
|
-
--warn: #
|
|
86
|
-
--bad: #
|
|
86
|
+
--ok: #27613b;
|
|
87
|
+
--warn: #774c0e;
|
|
88
|
+
--bad: #983124;
|
|
87
89
|
--info: hsl(213 22% 36%);
|
|
88
90
|
/* #0e7280 failed the pill rule over --sunken (4.20:1). #0d6b79 failed
|
|
89
91
|
the disc rule (an agent's initial on its 16% tint) over --sunken
|
|
90
92
|
(4.33:1); 4.56:1 now, the pill 4.84:1. */
|
|
91
|
-
--remote: #
|
|
93
|
+
--remote: #205d6e;
|
|
92
94
|
--violet: #6a4bc4;
|
|
93
|
-
--shadow: 0 8px
|
|
95
|
+
--shadow: 0 8px 24px rgb(48 36 24 / 0.14);
|
|
96
|
+
/* A pop-up's or picker dialog's shadow (0.7.0). */
|
|
97
|
+
--den-pop-shadow: 0 16px 40px rgb(0 0 0 / 0.25);
|
|
94
98
|
/* The shared update pill's shadow (update-pill.css). */
|
|
95
99
|
--upd-shadow:
|
|
96
100
|
0 2px 4px rgba(32, 38, 29, 0.07), 0 10px 28px rgba(32, 38, 29, 0.1),
|
|
97
101
|
inset 0 1px 0 color-mix(in srgb, var(--text) 14%, transparent);
|
|
98
|
-
--bar: linear-gradient(90deg, #
|
|
102
|
+
--bar: linear-gradient(90deg, #557a2a 0%, #8a6a48 100%);
|
|
99
103
|
}
|
|
100
104
|
|
|
101
105
|
/* Dark: asked for, or the system's choice when no mode is set. */
|
|
102
106
|
:where(:root[data-mode="dark"]) {
|
|
103
107
|
color-scheme: dark;
|
|
104
|
-
--bg:
|
|
105
|
-
--surface:
|
|
106
|
-
--raised: #
|
|
107
|
-
--sunken:
|
|
108
|
-
--text: #
|
|
109
|
-
--muted: #
|
|
110
|
-
--faint: #
|
|
111
|
-
--border:
|
|
112
|
-
--border-strong: #
|
|
113
|
-
--accent: #
|
|
114
|
-
--accent-text: #
|
|
115
|
-
--accent-fill: #
|
|
116
|
-
--on-accent:
|
|
117
|
-
--ok: #
|
|
118
|
-
--warn: #
|
|
119
|
-
--bad: #
|
|
108
|
+
--bg: #1a1612;
|
|
109
|
+
--surface: #221d18;
|
|
110
|
+
--raised: #2b251f;
|
|
111
|
+
--sunken: #14110e;
|
|
112
|
+
--text: #ede6dc;
|
|
113
|
+
--muted: #b5aa9b;
|
|
114
|
+
--faint: #978b7e;
|
|
115
|
+
--border: #3a322a;
|
|
116
|
+
--border-strong: #7a6d5d;
|
|
117
|
+
--accent: #9bbb63;
|
|
118
|
+
--accent-text: #a8c672;
|
|
119
|
+
--accent-fill: #9bbb63;
|
|
120
|
+
--on-accent: #1a1612;
|
|
121
|
+
--ok: #6fc28f;
|
|
122
|
+
--warn: #e0a84e;
|
|
123
|
+
--bad: #ef7f6a;
|
|
120
124
|
--info: hsl(213 30% 74%);
|
|
121
|
-
--remote: #
|
|
125
|
+
--remote: #74b8c8;
|
|
122
126
|
--violet: #a993ff;
|
|
123
127
|
--shadow: 0 12px 30px rgb(0 0 0 / 0.5);
|
|
128
|
+
--den-pop-shadow: 0 16px 40px rgb(0 0 0 / 0.6);
|
|
124
129
|
--upd-shadow:
|
|
125
130
|
0 2px 4px rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.4),
|
|
126
131
|
inset 0 1px 0 color-mix(in srgb, var(--text) 14%, transparent);
|
|
127
|
-
--bar: linear-gradient(90deg, #
|
|
132
|
+
--bar: linear-gradient(90deg, #9bbb63 0%, #a07c55 100%);
|
|
128
133
|
}
|
|
129
134
|
|
|
130
135
|
@media (prefers-color-scheme: dark) {
|
|
131
136
|
:where(:root:not([data-mode])) {
|
|
132
137
|
color-scheme: dark;
|
|
133
|
-
--bg:
|
|
134
|
-
--surface:
|
|
135
|
-
--raised: #
|
|
136
|
-
--sunken:
|
|
137
|
-
--text: #
|
|
138
|
-
--muted: #
|
|
139
|
-
--faint: #
|
|
140
|
-
--border:
|
|
141
|
-
--border-strong: #
|
|
142
|
-
--accent: #
|
|
143
|
-
--accent-text: #
|
|
144
|
-
--accent-fill: #
|
|
145
|
-
--on-accent:
|
|
146
|
-
--ok: #
|
|
147
|
-
--warn: #
|
|
148
|
-
--bad: #
|
|
138
|
+
--bg: #1a1612;
|
|
139
|
+
--surface: #221d18;
|
|
140
|
+
--raised: #2b251f;
|
|
141
|
+
--sunken: #14110e;
|
|
142
|
+
--text: #ede6dc;
|
|
143
|
+
--muted: #b5aa9b;
|
|
144
|
+
--faint: #978b7e;
|
|
145
|
+
--border: #3a322a;
|
|
146
|
+
--border-strong: #7a6d5d;
|
|
147
|
+
--accent: #9bbb63;
|
|
148
|
+
--accent-text: #a8c672;
|
|
149
|
+
--accent-fill: #9bbb63;
|
|
150
|
+
--on-accent: #1a1612;
|
|
151
|
+
--ok: #6fc28f;
|
|
152
|
+
--warn: #e0a84e;
|
|
153
|
+
--bad: #ef7f6a;
|
|
149
154
|
--info: hsl(213 30% 74%);
|
|
150
|
-
--remote: #
|
|
155
|
+
--remote: #74b8c8;
|
|
151
156
|
--violet: #a993ff;
|
|
152
157
|
--shadow: 0 12px 30px rgb(0 0 0 / 0.5);
|
|
158
|
+
--den-pop-shadow: 0 16px 40px rgb(0 0 0 / 0.6);
|
|
153
159
|
--upd-shadow:
|
|
154
160
|
0 2px 4px rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.4),
|
|
155
161
|
inset 0 1px 0 color-mix(in srgb, var(--text) 14%, transparent);
|
|
156
|
-
--bar: linear-gradient(90deg, #
|
|
162
|
+
--bar: linear-gradient(90deg, #9bbb63 0%, #a07c55 100%);
|
|
157
163
|
}
|
|
158
164
|
}
|
package/src/version.js
CHANGED
|
@@ -20,7 +20,11 @@ export function setVersion(label, root = document) {
|
|
|
20
20
|
? root.getElementById("version-pill")
|
|
21
21
|
: root.querySelector("#version-pill");
|
|
22
22
|
const txt = el?.querySelector(".v-txt");
|
|
23
|
-
if (txt && label)
|
|
23
|
+
if (txt && label) {
|
|
24
|
+
txt.textContent = label;
|
|
25
|
+
// The whole version, when the bar is short and the text ends in "…".
|
|
26
|
+
txt.title = label;
|
|
27
|
+
}
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
export function setUnread(on, root = document) {
|