@tcn/ui 0.0.4 → 0.1.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/dist/actions/button/base_button/base_button.d.ts.map +1 -1
- package/dist/actions/button/base_button/base_button.js +17 -12
- package/dist/actions/button/base_button/base_button.js.map +1 -1
- package/dist/actions/button/button/button.d.ts.map +1 -1
- package/dist/actions/button/button/button.js +7 -7
- package/dist/actions/button/button/button.js.map +1 -1
- package/dist/actions/button/slim_button/slim_button.js +2 -2
- package/dist/actions/button/slim_button/slim_button.js.map +1 -1
- package/dist/button.css +1 -1
- package/dist/footer.css +1 -1
- package/dist/form/field/common/field_error.js +3 -2
- package/dist/form/field/common/field_error.js.map +1 -1
- package/dist/inputs/input/input.d.ts +2 -2
- package/dist/inputs/input/input.d.ts.map +1 -1
- package/dist/inputs/input/input.js.map +1 -1
- package/dist/inputs/options/option.d.ts +1 -0
- package/dist/inputs/options/option.d.ts.map +1 -1
- package/dist/inputs/options/option.js.map +1 -1
- package/dist/inputs/phone_number_input/phone_number_input.d.ts +6 -1
- package/dist/inputs/phone_number_input/phone_number_input.d.ts.map +1 -1
- package/dist/inputs/phone_number_input/phone_number_input.js +169 -125
- package/dist/inputs/phone_number_input/phone_number_input.js.map +1 -1
- package/dist/inputs/suggestions/suggestion_item.d.ts +1 -1
- package/dist/inputs/suggestions/suggestion_item.d.ts.map +1 -1
- package/dist/inputs/suggestions/suggestion_item.js +23 -18
- package/dist/inputs/suggestions/suggestion_item.js.map +1 -1
- package/dist/inputs/suggestions/suggestion_list.d.ts +1 -1
- package/dist/inputs/suggestions/suggestion_list.d.ts.map +1 -1
- package/dist/inputs/suggestions/suggestion_list.js +105 -95
- package/dist/inputs/suggestions/suggestion_list.js.map +1 -1
- package/dist/layouts/footer/footer.js +5 -5
- package/dist/layouts/footer/footer.js.map +1 -1
- package/dist/layouts/index.d.ts +3 -2
- package/dist/layouts/index.d.ts.map +1 -1
- package/dist/layouts/index.js +26 -24
- package/dist/layouts/index.js.map +1 -1
- package/dist/layouts/list/item.d.ts +1 -0
- package/dist/layouts/list/item.d.ts.map +1 -1
- package/dist/layouts/list/item.js +17 -6
- package/dist/layouts/list/item.js.map +1 -1
- package/dist/layouts/list/list.js +10 -10
- package/dist/layouts/list/list.js.map +1 -1
- package/dist/overlay/context_menu/context_menu.js +4 -4
- package/dist/overlay/index.js +3 -3
- package/dist/overlay/popper/popper.js +12 -12
- package/dist/{portal-qqIp4SIl.js → overlay/portal/portal.js} +3 -3
- package/dist/overlay/portal/portal.js.map +1 -0
- package/dist/overlay/portal/portal_platform.js +3 -4
- package/dist/overlay/portal/portal_platform.js.map +1 -1
- package/dist/phone_number_input.css +1 -1
- package/dist/slim_button.css +1 -1
- package/dist/surfaces/card/card.d.ts.map +1 -1
- package/dist/surfaces/card/card.js +7 -16
- package/dist/surfaces/card/card.js.map +1 -1
- package/dist/surfaces/confirm/confirm.js +4 -4
- package/dist/themes/index.js +6 -141
- package/dist/themes/index.js.map +1 -1
- package/dist/themes/stylesheets/reset.js +140 -0
- package/dist/themes/stylesheets/reset.js.map +1 -0
- package/dist/themes/themes/ergo/ergo_theme.js +595 -0
- package/dist/themes/themes/ergo/ergo_theme.js.map +1 -0
- package/dist/tokens/bubble/bubble.js +17 -16
- package/dist/tokens/bubble/bubble.js.map +1 -1
- package/dist/tokens/chip/chip.js +9 -8
- package/dist/tokens/chip/chip.js.map +1 -1
- package/dist/typography/title/title.js +8 -8
- package/dist/typography/title/title.js.map +1 -1
- package/package.json +3 -3
- package/src/actions/button/base_button/base_button.tsx +7 -2
- package/src/actions/button/button/button.module.css +0 -78
- package/src/actions/button/button/button.tsx +2 -4
- package/src/actions/button/slim_button/slim_button.module.css +0 -26
- package/src/actions/button/slim_button/slim_button.tsx +1 -1
- package/src/inputs/input/input.tsx +3 -2
- package/src/inputs/options/option.tsx +1 -0
- package/src/inputs/phone_number_input/phone_number_input.module.css +12 -0
- package/src/inputs/phone_number_input/phone_number_input.stories.tsx +8 -0
- package/src/inputs/phone_number_input/phone_number_input.tsx +99 -21
- package/src/inputs/suggestions/suggestion_item.tsx +12 -2
- package/src/inputs/suggestions/suggestion_list.tsx +22 -3
- package/src/layouts/footer/footer.module.css +0 -1
- package/src/layouts/footer/footer.tsx +1 -1
- package/src/layouts/index.ts +3 -2
- package/src/layouts/list/item.tsx +10 -2
- package/src/layouts/list/list.tsx +2 -2
- package/src/surfaces/card/card.tsx +2 -8
- package/src/surfaces/modal/__stories__/modal.stories.tsx +1 -1
- package/src/surfaces/panel/__stories__/panel.stories.tsx +13 -12
- package/src/themes/themes/ergo/__stories__/components/material_picker/sb_inverted_materials.module.css +34 -0
- package/src/themes/themes/ergo/__stories__/components/material_picker/sb_material_picker.tsx +52 -0
- package/src/themes/themes/ergo/__stories__/components/tone_picker/sb_card.module.css +5 -0
- package/src/themes/themes/ergo/__stories__/components/tone_picker/sb_tone_card.tsx +40 -0
- package/src/themes/themes/ergo/__stories__/components/tone_picker/sb_tone_picker.tsx +83 -0
- package/src/themes/themes/ergo/__stories__/components/tone_picker/types.ts +7 -0
- package/src/themes/themes/ergo/__stories__/material.stories.tsx +154 -0
- package/src/themes/themes/ergo/__stories__/sb_materials.module.css +110 -0
- package/src/themes/themes/ergo/__stories__/utils.ts +92 -0
- package/src/themes/themes/ergo/ergo_theme.css +298 -35
- package/src/typography/title/title.tsx +1 -1
- package/tsconfig.json +0 -3
- package/dist/card.css +0 -1
- package/dist/portal-qqIp4SIl.js.map +0 -1
- package/dist/themes/stylesheets/reset.css +0 -1
- package/dist/themes/themes/ergo/ergo_theme.css +0 -1
- package/dist/themes/themes/windows_98/windows_98.css +0 -1
- package/src/surfaces/card/card.module.css +0 -5
- /package/dist/{overlay/portal/portal.css → portal_platform.css} +0 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
interface HSL {
|
|
2
|
+
h: string;
|
|
3
|
+
s: string;
|
|
4
|
+
l: string;
|
|
5
|
+
a?: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export function parseHSL(color: string): HSL {
|
|
9
|
+
if (!color) return { h: '46', s: '46%', l: '89%', a: '100%' };
|
|
10
|
+
|
|
11
|
+
// Handle hsl() format: "hsl(46, 46%, 89%)"
|
|
12
|
+
if (color.startsWith('hsl(')) {
|
|
13
|
+
const match = color.match(
|
|
14
|
+
/hsl\((\d+(?:\.\d+)?),\s*(\d+(?:\.\d+)?)%?,\s*(\d+(?:\.\d+)?)%?\)/
|
|
15
|
+
);
|
|
16
|
+
if (match) {
|
|
17
|
+
return {
|
|
18
|
+
h: match[1],
|
|
19
|
+
s: match[2].includes('%') ? match[2] : `${match[2]}%`,
|
|
20
|
+
l: match[3].includes('%') ? match[3] : `${match[3]}%`,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if (color.startsWith('hsla(')) {
|
|
26
|
+
const match = color.match(
|
|
27
|
+
/hsla\((\d+(?:\.\d+)?),\s*(\d+(?:\.\d+)?)%?,\s*(\d+(?:\.\d+)?)%?,\s*(\d+(?:\.\d+)?)\)/
|
|
28
|
+
);
|
|
29
|
+
if (match) {
|
|
30
|
+
return {
|
|
31
|
+
h: match[1],
|
|
32
|
+
s: match[2].includes('%') ? match[2] : `${match[2]}%`,
|
|
33
|
+
l: match[3].includes('%') ? match[3] : `${match[3]}%`,
|
|
34
|
+
a: match[4].includes('%') ? match[4] : `${match[4]}%`,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Handle hex format (Storybook color picker often returns hex)
|
|
40
|
+
if (color.startsWith('#')) {
|
|
41
|
+
const r = parseInt(color.slice(1, 3), 16) / 255;
|
|
42
|
+
const g = parseInt(color.slice(3, 5), 16) / 255;
|
|
43
|
+
const b = parseInt(color.slice(5, 7), 16) / 255;
|
|
44
|
+
const max = Math.max(r, g, b);
|
|
45
|
+
const min = Math.min(r, g, b);
|
|
46
|
+
let h = 0;
|
|
47
|
+
let s = 0;
|
|
48
|
+
const l = (max + min) / 2;
|
|
49
|
+
if (max !== min) {
|
|
50
|
+
const d = max - min;
|
|
51
|
+
s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
|
|
52
|
+
switch (max) {
|
|
53
|
+
case r:
|
|
54
|
+
h = ((g - b) / d + (g < b ? 6 : 0)) / 6;
|
|
55
|
+
break;
|
|
56
|
+
case g:
|
|
57
|
+
h = ((b - r) / d + 2) / 6;
|
|
58
|
+
break;
|
|
59
|
+
case b:
|
|
60
|
+
h = ((r - g) / d + 4) / 6;
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
h: Math.round(h * 360).toString(),
|
|
66
|
+
s: `${Math.round(s * 100)}%`,
|
|
67
|
+
l: `${Math.round(l * 100)}%`,
|
|
68
|
+
a: '100%',
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// Default fallback
|
|
73
|
+
return { h: '46', s: '46%', l: '89%', a: '100%' };
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function getContrastText(material: HSL) {
|
|
77
|
+
const l = parseFloat(material.l);
|
|
78
|
+
|
|
79
|
+
// If background is light, return off-black for contrast.
|
|
80
|
+
// If background is dark, return off-white for contrast.
|
|
81
|
+
if (l > 50) {
|
|
82
|
+
// dark text for light background: "off-black"
|
|
83
|
+
return { h: '0', s: '0%', l: '12%' }; // near black, but not pure black
|
|
84
|
+
} else {
|
|
85
|
+
// light text for dark background: "off-white"
|
|
86
|
+
return { h: '0', s: '0%', l: '95%' }; // near white, but not pure white
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function formatHSLString(hsl: HSL) {
|
|
91
|
+
return `${hsl.h}, ${hsl.s}, ${hsl.l}`;
|
|
92
|
+
}
|
|
@@ -146,7 +146,8 @@ legend {
|
|
|
146
146
|
|
|
147
147
|
--status-color-disabled: #7f7f7f;
|
|
148
148
|
--status-color-info: #008cff;
|
|
149
|
-
--status-color-warning: #
|
|
149
|
+
--status-color-warning: #ffff00;
|
|
150
|
+
--status-color-positive: #00ff00;
|
|
150
151
|
--status-color-error: #ff0000;
|
|
151
152
|
|
|
152
153
|
--async-color-initial: #c0c0c0;
|
|
@@ -184,24 +185,280 @@ legend {
|
|
|
184
185
|
--foreground-color-tertiary: #222222;
|
|
185
186
|
--foreground-color-quaternary: #222222;
|
|
186
187
|
|
|
187
|
-
--
|
|
188
|
+
--material-disabled: #d3d3d3;
|
|
189
|
+
--material-secondary-dark: 197 29.1% 40.4%;
|
|
190
|
+
--material-tan: 33, 22%, 84%;
|
|
188
191
|
|
|
189
192
|
--shape-radius-small: 2px;
|
|
190
193
|
--shape-radius-medium: 4px;
|
|
191
194
|
--shape-radius-large: 8px;
|
|
195
|
+
|
|
196
|
+
--accent-color: #cd6b2c;
|
|
197
|
+
|
|
198
|
+
--action: 23, 65%, 49%;
|
|
199
|
+
--on-action: 0, 0%, 100%;
|
|
200
|
+
--material: 0, 0%, 100%;
|
|
201
|
+
--on-material: 213, 35.6%, 34.7%;
|
|
192
202
|
}
|
|
193
203
|
|
|
194
204
|
* {
|
|
195
205
|
position: relative;
|
|
196
206
|
box-sizing: border-box;
|
|
197
207
|
}
|
|
208
|
+
/* ===== Actions ===== */
|
|
209
|
+
|
|
210
|
+
.tcn-interactive {
|
|
211
|
+
cursor: pointer;
|
|
212
|
+
user-select: none;
|
|
213
|
+
transition:
|
|
214
|
+
transform 0.1s,
|
|
215
|
+
background 0.1s,
|
|
216
|
+
color 0.1s;
|
|
217
|
+
|
|
218
|
+
--act: hsl(var(--action));
|
|
219
|
+
--on-act: hsl(var(--on-action));
|
|
220
|
+
/* Could use hsl here if we made three color variables for each of the hsl values */
|
|
221
|
+
--act-down: color-mix(in srgb, var(--act), black 8%);
|
|
222
|
+
--act-raised: color-mix(in srgb, var(--act), white 8%);
|
|
223
|
+
--act-faint: hsla(var(--action), 0.2);
|
|
224
|
+
--on-mat: hsl(var(--on-material));
|
|
225
|
+
--on-mat-faint: hsla(var(--on-material), 0.2);
|
|
226
|
+
--mat: hsl(var(--material));
|
|
227
|
+
--mat-down: color-mix(in srgb, var(--mat), black 8%);
|
|
228
|
+
--mat-raised: color-mix(in srgb, var(--mat), white 8%);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.tcn-interactive[data-is-disabled="true"] {
|
|
232
|
+
pointer-events: none;
|
|
233
|
+
cursor: not-allowed;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.tcn-interactive[data-hierarchy="primary"] {
|
|
237
|
+
background: var(--act);
|
|
238
|
+
color: var(--on-act);
|
|
239
|
+
border: 1px solid var(--act);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.tcn-interactive[data-hierarchy="primary"]:focus-visible {
|
|
243
|
+
outline: 2px dashed var(--act);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.tcn-interactive[data-hierarchy="primary"][data-is-disabled="true"] {
|
|
247
|
+
background: var(--material-disabled);
|
|
248
|
+
color: white;
|
|
249
|
+
border: 1px solid var(--material-disabled);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.tcn-interactive[data-hierarchy="primary"]:hover {
|
|
253
|
+
background: var(--act-raised);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.tcn-interactive[data-hierarchy="primary"]:active {
|
|
257
|
+
background: var(--act-down);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.tcn-interactive[data-hierarchy="secondary"] {
|
|
261
|
+
background: transparent;
|
|
262
|
+
color: var(--on-mat);
|
|
263
|
+
border: 1px solid var(--on-mat);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.tcn-interactive[data-hierarchy="secondary"]:focus-visible {
|
|
267
|
+
outline: 2px dashed var(--on-mat);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.tcn-interactive[data-hierarchy="secondary"][data-is-disabled="true"] {
|
|
271
|
+
color: var(--material-disabled);
|
|
272
|
+
border: 1px solid var(--material-disabled);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.tcn-interactive[data-hierarchy="secondary"]:hover {
|
|
276
|
+
background: var(--on-mat-faint);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.tcn-interactive[data-hierarchy="secondary"]:active {
|
|
280
|
+
background: var(--mat-down);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.tcn-interactive[data-hierarchy="tertiary"] {
|
|
284
|
+
background: transparent;
|
|
285
|
+
color: var(--on-mat);
|
|
286
|
+
border: 1px solid transparent;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.tcn-interactive[data-hierarchy="tertiary"]:focus-visible {
|
|
290
|
+
outline: 2px dashed var(--on-mat);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.tcn-interactive[data-hierarchy="tertiary"][data-is-disabled="true"] {
|
|
294
|
+
color: var(--material-disabled);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.tcn-interactive[data-hierarchy="tertiary"]:hover {
|
|
298
|
+
text-decoration: underline;
|
|
299
|
+
text-decoration-color: var(--on-mat);
|
|
300
|
+
text-decoration-thickness: 1px;
|
|
301
|
+
text-underline-offset: 4px;
|
|
302
|
+
color: var(--on-mat);
|
|
303
|
+
background: var(--on-mat-faint);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.tcn-interactive[data-hierarchy="tertiary"]:active {
|
|
307
|
+
background: var(--mat-down);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/* Button */
|
|
311
|
+
.tcn-button {
|
|
312
|
+
border-radius: 4px;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.tcn-button[data-size="sm"] {
|
|
316
|
+
padding: 0px 8px;
|
|
317
|
+
min-height: 22px;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.tcn-button[data-size="md"] {
|
|
321
|
+
padding: 0px 12px;
|
|
322
|
+
min-height: 26px;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.tcn-button[data-size="lg"] {
|
|
326
|
+
padding: 0px 16px;
|
|
327
|
+
min-height: 32px;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.tcn-button:hover {
|
|
331
|
+
transform: translateY(-1px);
|
|
332
|
+
box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.1);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.tcn-button:active {
|
|
336
|
+
transform: translateY(1px);
|
|
337
|
+
box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.1);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.tcn-slim-button {
|
|
341
|
+
height: auto;
|
|
342
|
+
width: auto;
|
|
343
|
+
padding: 0;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.tcn-slim-button[data-size="sm"] {
|
|
347
|
+
min-height: 12px;
|
|
348
|
+
min-width: 12px;
|
|
349
|
+
padding: 0;
|
|
350
|
+
.tcn-icon {
|
|
351
|
+
min-height: 10px;
|
|
352
|
+
min-width: 10px;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.tcn-slim-button[data-size="md"] {
|
|
357
|
+
min-height: 18px;
|
|
358
|
+
min-width: 18px;
|
|
359
|
+
padding: 0;
|
|
360
|
+
.tcn-icon {
|
|
361
|
+
min-height: 14px;
|
|
362
|
+
min-width: 14px;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.tcn-slim-button[data-size="lg"] {
|
|
367
|
+
min-height: 24px;
|
|
368
|
+
min-width: 24px;
|
|
369
|
+
padding: 0;
|
|
370
|
+
.tcn-icon {
|
|
371
|
+
min-height: 20px;
|
|
372
|
+
min-width: 20px;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/* ===== Materials ===== */
|
|
377
|
+
|
|
378
|
+
/* White on Gray */
|
|
379
|
+
.material-status-disabled {
|
|
380
|
+
--action: 0, 0%, 100%;
|
|
381
|
+
--on-action: 0, 0%, 49.8%;
|
|
382
|
+
--material: 0, 0%, 49.8%;
|
|
383
|
+
--on-material: 0, 0%, 100%;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/* White on Vivid Blue */
|
|
387
|
+
.material-status-info {
|
|
388
|
+
--action: 0, 0%, 100%;
|
|
389
|
+
--on-action: 207, 100%, 50%;
|
|
390
|
+
--material: 207, 100%, 50%;
|
|
391
|
+
--on-material: 0, 0%, 100%;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
/* Navy on Yellow */
|
|
395
|
+
.material-status-warning {
|
|
396
|
+
--action: 213, 35.6%, 34.7%;
|
|
397
|
+
--on-action: 60, 100%, 50%;
|
|
398
|
+
--material: 60, 100%, 50%;
|
|
399
|
+
--on-material: 213, 35.6%, 34.7%;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/* White on Red */
|
|
403
|
+
.material-status-error {
|
|
404
|
+
--action: 0, 0%, 100%;
|
|
405
|
+
--on-action: 0, 100%, 50%;
|
|
406
|
+
--material: 0, 100%, 50%;
|
|
407
|
+
--on-material: 0, 0%, 100%;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/* Navy on Light Grey */
|
|
411
|
+
.material-async-initial {
|
|
412
|
+
--action: 213, 35.6%, 34.7%;
|
|
413
|
+
--on-action: 0, 0%, 75.3%;
|
|
414
|
+
--material: 0, 0%, 75.3%;
|
|
415
|
+
--on-material: 213, 35.6%, 34.7%;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
/* White on Loading Blue */
|
|
419
|
+
.material-async-pending {
|
|
420
|
+
--action: 0, 0%, 100%;
|
|
421
|
+
--on-action: 207, 100%, 50%;
|
|
422
|
+
--material: 207, 100%, 50%;
|
|
423
|
+
--on-material: 0, 0%, 100%;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
/* White on Vivid Green */
|
|
427
|
+
.material-async-success {
|
|
428
|
+
--action: 0, 0%, 100%;
|
|
429
|
+
--on-action: 120, 100%, 50%;
|
|
430
|
+
--material: 120, 100%, 50%;
|
|
431
|
+
--on-material: 0, 0%, 100%;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
/* White on Red */
|
|
435
|
+
.material-async-failed {
|
|
436
|
+
--action: 0, 0%, 100%;
|
|
437
|
+
--on-action: 0, 100%, 50%;
|
|
438
|
+
--material: 0, 100%, 50%;
|
|
439
|
+
--on-material: 0, 0%, 100%;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.material {
|
|
443
|
+
background-color: hsl(var(--material));
|
|
444
|
+
color: hsl(var(--on-material));
|
|
445
|
+
}
|
|
198
446
|
|
|
199
447
|
/* ===== SURFACES ===== */
|
|
448
|
+
.tcn-list {
|
|
449
|
+
gap: var(--gap-medium);
|
|
450
|
+
.tcn-item {
|
|
451
|
+
height: 24px;
|
|
452
|
+
padding: 0px var(--padding-medium);
|
|
453
|
+
border-radius: var(--shape-radius-medium);
|
|
454
|
+
}
|
|
455
|
+
}
|
|
200
456
|
|
|
201
457
|
.tcn-veil {
|
|
202
458
|
background-color: rgba(0, 0, 0, 0.5);
|
|
203
459
|
}
|
|
204
460
|
|
|
461
|
+
/* TODO: FIX Borders on modal header and footer -- when there are multiple header/footers */
|
|
205
462
|
/* MODAL: */
|
|
206
463
|
.tcn-modal {
|
|
207
464
|
--v-inset: var(--padding-large);
|
|
@@ -210,29 +467,22 @@ legend {
|
|
|
210
467
|
/* TODO: This should be a variable */
|
|
211
468
|
border: 1px solid rgba(170, 170, 170, 1);
|
|
212
469
|
overflow: hidden;
|
|
470
|
+
|
|
471
|
+
:where(.tcn-typography) {
|
|
472
|
+
color: inherit;
|
|
473
|
+
}
|
|
474
|
+
|
|
213
475
|
:where(.tcn-header) {
|
|
476
|
+
--material: var(--material-secondary-dark);
|
|
477
|
+
--on-material: 0, 0%, 100%;
|
|
478
|
+
--action: var(--material-tan);
|
|
479
|
+
--on-action: 0, 0%, 100%;
|
|
480
|
+
background-color: hsl(var(--material));
|
|
481
|
+
color: hsl(var(--on-material));
|
|
214
482
|
min-height: 40px;
|
|
215
|
-
/* TODO: This should be a variable */
|
|
216
|
-
background-color: rgb(73, 116, 133);
|
|
217
|
-
color: white;
|
|
218
483
|
padding: 0 var(--v-inset);
|
|
219
484
|
gap: var(--gap-medium);
|
|
220
485
|
|
|
221
|
-
:where(.tcn-title) {
|
|
222
|
-
color: white;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
:where(.tcn-button) {
|
|
226
|
-
padding: 0;
|
|
227
|
-
min-width: 18px;
|
|
228
|
-
min-height: 18px;
|
|
229
|
-
color: white;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
:where(.tcn-button)[data-hierarchy="tertiary"] {
|
|
233
|
-
color: white;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
486
|
:where(.tcn-divider) {
|
|
237
487
|
padding: 4px 0;
|
|
238
488
|
:where(.tcn-divider-line) {
|
|
@@ -273,10 +523,10 @@ legend {
|
|
|
273
523
|
--v-inset: var(--padding-large);
|
|
274
524
|
background-color: var(--background-color-primary);
|
|
275
525
|
border-radius: var(--shape-radius-medium);
|
|
526
|
+
overflow: hidden;
|
|
276
527
|
|
|
277
528
|
:where(.tcn-header) {
|
|
278
529
|
min-height: 40px;
|
|
279
|
-
border-bottom: 1px solid var(--foreground-color-primary);
|
|
280
530
|
padding: 0 var(--v-inset);
|
|
281
531
|
gap: var(--gap-medium);
|
|
282
532
|
|
|
@@ -284,12 +534,6 @@ legend {
|
|
|
284
534
|
font-weight: 700;
|
|
285
535
|
}
|
|
286
536
|
|
|
287
|
-
:where(.tcn-button) {
|
|
288
|
-
padding: 0;
|
|
289
|
-
min-width: 18px;
|
|
290
|
-
min-height: 18px;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
537
|
:where(.tcn-divider) {
|
|
294
538
|
padding: 4px 0;
|
|
295
539
|
:where(.tcn-divider-line) {
|
|
@@ -300,16 +544,20 @@ legend {
|
|
|
300
544
|
}
|
|
301
545
|
}
|
|
302
546
|
|
|
547
|
+
/* Border appears on body only when it follows header or utility-bar */
|
|
548
|
+
:where(.tcn-header) + :where(.tcn-body),
|
|
549
|
+
:where(.tcn-utility-bar) + :where(.tcn-body) {
|
|
550
|
+
border-top: 1px solid var(--foreground-color-primary);
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
/* Border appears on footer only when it follows body */
|
|
554
|
+
:where(.tcn-body) + :where(.tcn-footer) {
|
|
555
|
+
border-top: 1px solid var(--foreground-color-primary);
|
|
556
|
+
}
|
|
557
|
+
|
|
303
558
|
:where(.tcn-utility-bar) {
|
|
304
559
|
min-height: 32px;
|
|
305
|
-
border-bottom: 1px solid var(--foreground-color-primary);
|
|
306
560
|
padding: 0 var(--v-inset);
|
|
307
|
-
|
|
308
|
-
:where(.tcn-button) {
|
|
309
|
-
padding: 0;
|
|
310
|
-
min-width: 18px;
|
|
311
|
-
min-height: 18px;
|
|
312
|
-
}
|
|
313
561
|
}
|
|
314
562
|
|
|
315
563
|
:where(.tcn-body) {
|
|
@@ -320,7 +568,22 @@ legend {
|
|
|
320
568
|
:where(.tcn-footer) {
|
|
321
569
|
gap: var(--gap-medium);
|
|
322
570
|
min-height: 40px;
|
|
323
|
-
border-top: 1px solid var(--foreground-color-primary);
|
|
324
571
|
padding: 0 var(--v-inset);
|
|
325
572
|
}
|
|
326
573
|
}
|
|
574
|
+
|
|
575
|
+
/* Card */
|
|
576
|
+
.tcn-card {
|
|
577
|
+
padding: 0;
|
|
578
|
+
gap: 0px;
|
|
579
|
+
border: 1px solid var(--foreground-color-primary);
|
|
580
|
+
border-radius: var(--shape-radius-medium);
|
|
581
|
+
overflow: hidden;
|
|
582
|
+
:where(.tcn-header) {
|
|
583
|
+
/* TODO: Color header */
|
|
584
|
+
min-height: 32px;
|
|
585
|
+
}
|
|
586
|
+
:where(.tcn-body) {
|
|
587
|
+
padding: var(--padding-medium) var(--v-inset);
|
|
588
|
+
}
|
|
589
|
+
}
|
|
@@ -78,7 +78,7 @@ export function Title({
|
|
|
78
78
|
data-hierarchy={hierarchy}
|
|
79
79
|
data-emphasis={emphasis}
|
|
80
80
|
data-selectable={selectable}
|
|
81
|
-
className={clsx(styles['title'], 'title', 'tcn-title', className)}
|
|
81
|
+
className={clsx(styles['title'], 'title', 'tcn-typography', 'tcn-title', className)}
|
|
82
82
|
style={style}
|
|
83
83
|
data-size={size}
|
|
84
84
|
>
|
package/tsconfig.json
CHANGED
package/dist/card.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._card_a3c9492{box-shadow:0 2px 10px #00000040;padding:16px;gap:8px}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"portal-qqIp4SIl.js","sources":["../src/overlay/portal/portal.tsx"],"sourcesContent":["import React, { useState, useLayoutEffect } from 'react';\nimport { usePortalPlatform } from './portal_platform_context.js';\n\nexport interface PortalProps {\n children: React.ReactNode | React.ReactNode[];\n zIndex?: number;\n}\n\nexport const Portal = ({ children, zIndex }: PortalProps) => {\n const portalPlatform = usePortalPlatform();\n\n const [portal] = useState(() => {\n return portalPlatform.createPortal();\n });\n\n useLayoutEffect(() => {\n portal.setZIndex(zIndex);\n }, [portal, zIndex]);\n\n useLayoutEffect(() => {\n portalPlatform.mountPortal(portal);\n return () => portalPlatform.unmountPortal(portal);\n }, [portal, portalPlatform]);\n\n return portal.render(children);\n};\n"],"names":["Portal","children","zIndex","portalPlatform","usePortalPlatform","portal","useState","useLayoutEffect"],"mappings":";;AAQO,MAAMA,IAAS,CAAC,EAAE,UAAAC,GAAU,QAAAC,QAA0B;AAC3D,QAAMC,IAAiBC,EAAA,GAEjB,CAACC,CAAM,IAAIC,EAAS,MACjBH,EAAe,aAAA,CACvB;AAED,SAAAI,EAAgB,MAAM;AACpB,IAAAF,EAAO,UAAUH,CAAM;AAAA,EACzB,GAAG,CAACG,GAAQH,CAAM,CAAC,GAEnBK,EAAgB,OACdJ,EAAe,YAAYE,CAAM,GAC1B,MAAMF,EAAe,cAAcE,CAAM,IAC/C,CAACA,GAAQF,CAAc,CAAC,GAEpBE,EAAO,OAAOJ,CAAQ;AAC/B;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}legend{all:unset;display:block;margin:0;padding:0;font:inherit;color:inherit}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}legend{all:unset;display:block;margin:0;padding:0;font:inherit;color:inherit}:root{--scalar: 1;--gap-small: 4px;--gap-medium: 8px;--gap-large: 16px;--padding-small: 4px;--padding-medium: 8px;--padding-large: 16px;--status-color-disabled: #7f7f7f;--status-color-info: #008cff;--status-color-warning: #ff0000;--status-color-error: #ff0000;--async-color-initial: #c0c0c0;--async-color-pending: #008cff;--async-color-success: #00ff00;--async-color-failed: #ff0000;--primary-color-faint: #c0c0c0;--primary-color: #008cff;--primary-color-strong: #008cff;--secondary-color-faint: #c0c0c0;--secondary-color: #008cff;--secondary-color-strong: #008cff;--tertiary-color-faint: #c0c0c0;--tertiary-color: #008cff;--tertiary-color-strong: #008cff;--quaternary-color-faint: #c0c0c0;--quaternary-color: #008cff;--quaternary-color-strong: #008cff;--font-color: #395578;--font-family: "Lato", sans-serif;--font-size: 12px;--background-color-primary: #ffffff;--background-color-secondary: #ffffff;--background-color-tertiary: #ffffff;--background-color-quaternary: #ffffff;--foreground-color-primary: #aaa;--foreground-color-secondary: #222222;--foreground-color-tertiary: #222222;--foreground-color-quaternary: #222222;--accent-color: #008cff;--shape-radius-small: 2px;--shape-radius-medium: 4px;--shape-radius-large: 8px}*{position:relative;box-sizing:border-box}.tcn-veil{background-color:#00000080}.tcn-modal{--v-inset: var(--padding-large);background-color:var(--background-color-primary);border-radius:var(--shape-radius-medium);border:1px solid rgba(170,170,170,1);overflow:hidden}.tcn-modal :where(.tcn-header){min-height:40px;background-color:#497485;color:#fff;padding:0 var(--v-inset);gap:var(--gap-medium)}.tcn-modal :where(.tcn-header) :where(.tcn-title){color:#fff}.tcn-modal :where(.tcn-header) :where(.tcn-button){padding:0;min-width:18px;min-height:18px;color:#fff}.tcn-modal :where(.tcn-header) :where(.tcn-button)[data-hierarchy=tertiary]{color:#fff}.tcn-modal :where(.tcn-header) :where(.tcn-divider){padding:4px 0}.tcn-modal :where(.tcn-header) :where(.tcn-divider) :where(.tcn-divider-line){width:1.5px;min-height:18px;height:auto}.tcn-modal :where(.tcn-utility-bar){min-height:32px;border-bottom:1px solid var(--foreground-color-primary);padding:0 var(--v-inset)}.tcn-modal :where(.tcn-utility-bar) :where(.tcn-button){padding:0;min-width:18px;min-height:18px}.tcn-modal :where(.tcn-body){padding:0 var(--v-inset);gap:var(--gap-medium)}.tcn-modal :where(.tcn-footer){gap:var(--gap-medium);min-height:40px;border-top:1px solid var(--foreground-color-primary);padding:0 var(--v-inset)}.tcn-panel{--v-inset: var(--padding-large);background-color:var(--background-color-primary);border-radius:var(--shape-radius-medium)}.tcn-panel :where(.tcn-header){min-height:40px;border-bottom:1px solid var(--foreground-color-primary);padding:0 var(--v-inset);gap:var(--gap-medium)}.tcn-panel :where(.tcn-header) :where(.tcn-title){font-weight:700}.tcn-panel :where(.tcn-header) :where(.tcn-button){padding:0;min-width:18px;min-height:18px}.tcn-panel :where(.tcn-header) :where(.tcn-divider){padding:4px 0}.tcn-panel :where(.tcn-header) :where(.tcn-divider) :where(.tcn-divider-line){width:1.5px;min-height:18px;height:auto}.tcn-panel :where(.tcn-utility-bar){min-height:32px;border-bottom:1px solid var(--foreground-color-primary);padding:0 var(--v-inset)}.tcn-panel :where(.tcn-utility-bar) :where(.tcn-button){padding:0;min-width:18px;min-height:18px}.tcn-panel :where(.tcn-body){padding:0 var(--v-inset);gap:var(--gap-medium)}.tcn-panel :where(.tcn-footer){gap:var(--gap-medium);min-height:40px;border-top:1px solid var(--foreground-color-primary);padding:0 var(--v-inset)}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}legend{all:unset;display:block;margin:0;padding:0;font:inherit;color:inherit}*{position:relative;box-sizing:border-box}:root{--scalar: 1;--gap-small: 2px;--gap-medium: 4px;--gap-large: 8px;--padding-small: 2px;--padding-medium: 4px;--padding-large: 8px;--status-color-disabled: #7f7f7f;--status-color-info: #000080;--status-color-warning: #000080;--status-color-error: #be0000;--async-color-initial: #c0c0c0;--async-color-pending: #000080;--async-color-success: #00ff00;--async-color-failed: #be0000;--primary-color-faint: #c0c0c0;--primary-color: #000080;--primary-color-strong: #000080;--secondary-color-faint: #c0c0c0;--secondary-color: #000080;--secondary-color-strong: #000080;--tertiary-color-faint: #c0c0c0;--tertiary-color: #000080;--tertiary-color-strong: #000080;--quaternary-color-faint: #c0c0c0;--quaternary-color: #000080;--quaternary-color-strong: #000080;--font-color: #222222;--font-family: "Pixelated MS Sans Serif", Arial;--font-size: 12px;--background-color-primary: #c0c0c0;--background-color-secondary: #c0c0c0;--background-color-tertiary: #c0c0c0;--background-color-quaternary: #c0c0c0;--foreground-color-primary: #222222;--foreground-color-secondary: #222222;--foreground-color-tertiary: #222222;--foreground-color-quaternary: #222222;--accent-color: #000080}.title[data-size=sm]{font-size:10px}.title[data-size=md]{font-size:12px}.title[data-size=lg]{font-size:14px}.body-text[data-size=sm]{font-size:10px}.body-text[data-size=md]{font-size:11px}.body-text[data-size=lg]{font-size:12px}.button-text{position:relative;opacity:1;font-size:12px!important}.button,.button[data-hierarchy=primary],.button[data-hierarchy=secondary],.button[data-hierarchy=primary]:hover,.button[data-hierarchy=secondary]:hover{background:silver;border:none;border-radius:0;box-shadow:inset -1px -1px #0a0a0a,inset 1px 1px #fff,inset -2px -2px gray,inset 2px 2px silver;box-sizing:border-box;color:#222;min-height:23px;min-width:0;padding:0 12px;font-size:12px;text-decoration:none;outline:none}.button[data-hierarchy=primary]>*,.button[data-hierarchy=secondary]>*{position:relative}.button[data-hierarchy=primary]:active>*,.button[data-hierarchy=secondary]:active>*{position:relative;top:0;left:1px}.button[data-hierarchy=primary]:focus:not(:active):before,.button[data-hierarchy=secondary]:focus:not(:active):before{content:"";position:absolute;inset:1px 2px 2px 1px;outline:1px dotted #222;outline-offset:-3px}.button[data-hierarchy=primary],.button[data-hierarchy=primary]:hover{box-shadow:inset -2px -2px #0a0a0a,inset 1px 1px #0a0a0a,inset -3px -3px gray,inset 2px 2px #fff,inset 3px 3px silver}.button[data-hierarchy=primary]:active,.button[data-hierarchy=secondary]:active{background:silver;box-shadow:inset -1px -1px #fff,inset 1px 1px #0a0a0a,inset -2px -2px silver,inset 2px 2px gray;color:#222;border:none;text-decoration:none}.button[data-hierarchy=primary]:focus,.button[data-hierarchy=secondary]:focus,.button[data-hierarchy=primary]:focus:not(:active),.button[data-hierarchy=secondary]:focus:not(:active){background:silver;border:none;text-decoration:none}.button[data-hierarchy=tertiary]{padding:0 4px;background:none;border:none;border-radius:0;box-shadow:none;box-sizing:border-box;color:navy;min-height:auto;min-width:auto;text-decoration:none}.button[data-hierarchy=tertiary]:hover{background:none;border:none;border-radius:0;box-shadow:none;box-sizing:border-box;color:navy;min-height:auto;min-width:auto;text-decoration:none}.button[data-hierarchy=tertiary]:active{background:none;border:none;border-radius:0;box-shadow:none;box-sizing:border-box;color:#00008099;min-height:auto;min-width:auto;text-decoration:none}.button[data-hierarchy=tertiary]:focus,.button[data-hierarchy=tertiary]:focus:not(:active){background:none;outline:1px dotted #000080;outline-offset:0;border:none;text-decoration:none}.button[data-hierarchy=secondary][data-is-disabled=true]{box-shadow:inset -1px -1px #717171,inset 1px 1px #fff,inset -2px -2px #999,inset 2px 2px silver}.button[data-hierarchy=primary][data-is-disabled=true]{box-shadow:inset -2px -2px #717171,inset 1px 1px #717171,inset -3px -3px #999,inset 2px 2px #fff,inset 3px 3px silver}.button[data-hierarchy=primary][data-is-disabled=true],.button[data-hierarchy=secondary][data-is-disabled=true],.button[data-hierarchy=tertiary][data-is-disabled=true]{color:#7f7f7f;cursor:not-allowed}.button.select,.button.select:hover{position:relative;padding-inline-end:20px;padding-inline-start:4px}.button.select:dir(ltr):after{content:"";position:absolute;right:calc(4px * var(--scalar, 1));top:50%;transform:translateY(-50%);width:calc(12px * var(--scalar, 1));height:calc(12px * var(--scalar, 1));background-color:currentColor;-webkit-mask-image:url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 12 12' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4l4 4 4-4z' fill='currentColor'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 12 12' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4l4 4 4-4z' fill='currentColor'/%3E%3C/svg%3E");-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain;pointer-events:none}.button.select:dir(rtl):after{content:"";position:absolute;left:calc(4px * var(--scalar, 1));top:50%;transform:translateY(-50%);width:calc(12px * var(--scalar, 1));height:calc(12px * var(--scalar, 1));background-color:#222;-webkit-mask-image:url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 12 12' fill='black' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4l4 4 4-4z' fill='black'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 12 12' fill='black' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4l4 4 4-4z' fill='black'/%3E%3C/svg%3E");-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain;pointer-events:none}.slim-button,.slim-button[data-hierarchy=primary],.slim-button[data-hierarchy=secondary],.slim-button[data-hierarchy=primary]:hover,.slim-button[data-hierarchy=secondary]:hover{padding:2px;min-width:0;min-height:0;height:auto;width:auto}.slim-button[data-size=sm],.slim-button[data-hierarchy=primary][data-size=sm],.slim-button[data-hierarchy=secondary][data-size=sm],.slim-button[data-hierarchy=primary][data-size=sm]:hover,.slim-button[data-hierarchy=secondary][data-size=sm]:hover{padding:1px}.slim-button[data-size=md],.slim-button[data-hierarchy=primary][data-size=md],.slim-button[data-hierarchy=secondary][data-size=md],.slim-button[data-hierarchy=primary][data-size=md]:hover,.slim-button[data-hierarchy=secondary][data-size=md]:hover{padding:2px}.slim-button[data-size=lg],.slim-button[data-hierarchy=primary][data-size=lg],.slim-button[data-hierarchy=secondary][data-size=lg],.slim-button[data-hierarchy=primary][data-size=lg]:hover,.slim-button[data-hierarchy=secondary][data-size=lg]:hover{padding:4px}.select-group .button[data-hierarchy=primary],.select-group .button[data-hierarchy=primary]:hover,.select-group .button[data-hierarchy=primary]:focus{background-color:navy;box-shadow:inset -1px -1px #0a0a0a,inset 1px 1px #fff,inset -2px -2px gray,inset 2px 2px silver;color:#fff}.select-group .button:hover,.select-group .button:focus,.button-group .button:hover,.button-group .button:focus{z-index:1}.input,.textarea,.suggestion-list-search-input,.multi-combo-box-values-container,.multiselect-values-container{border-radius:0;outline:none;border:none;background-color:#fff;box-shadow:inset -1px -1px #fff,inset 1px 1px gray,inset -2px -2px #dfdfdf,inset 2px 2px #0a0a0a;box-sizing:border-box;padding:3px 4px}.suggestion-list-search-input{box-shadow:inset -1px -1px #fff,inset 1px 1px gray,inset -2px -2px #dfdfdf,inset 2px 2px #0a0a0a,0 -2px 0 2px silver}.input,.textarea,.suggestion-list-search-input{height:23px}.input:is(:focus,:focus-visible,:active,:hover),.input:is(:focus,:focus-visible,:active,:hover)[data-is-disabled=false],.textarea:is(:focus,:focus-visible,:active,:hover),.textarea:is(:focus,:focus-visible,:active,:hover)[data-is-disabled=false]{outline:none;border:none}.input[data-is-disabled=true],.textarea[data-is-disabled=true],.suggestion-list-search-input[data-is-disabled=true],.multiselect-values-container[data-is-disabled=true]{box-shadow:inset -1px -1px #fff,inset 1px 1px #999,inset -2px -2px #dfdfdf,inset 2px 2px #717171}.input[data-is-disabled=true],.textarea[data-is-disabled=true],.suggestion-list-search-input[data-is-disabled=true],.multiselect-values-container[data-is-disabled=true],.input[data-is-disabled=true]::placeholder,.textarea[data-is-disabled=true]::placeholder,.suggestion-list-search-input[data-is-disabled=true]::placeholder,.multiselect-values-container[data-is-disabled=true]::placeholder{color:#7f7f7f;cursor:not-allowed;background-color:silver}.select-group .button[data-hierarchy=primary]:active{box-shadow:inset -1px -1px #fff,inset 1px 1px #0a0a0a,inset -2px -2px silver,inset 2px 2px gray;color:#fff}.select-group .button[data-hierarchy=primary]:focus:not(:active):before{outline:1px dotted #fcfcfc}.suggestion-list{padding:2px}.suggestion-item{padding:0;background:transparent;border:none;min-height:0}.suggestion-item:hover{background:navy;color:#fff}.suggestion-item[data-is-selected=true],.suggestion-item[data-is-focused=true]{padding:0;background:navy;color:#fff;border:none}.suggestion-list-search-input{border-radius:0;padding:4px;height:24px;min-height:24px}.title{color:#000}.header .title{color:#fff}.header[data-kind=window]{padding:4px;background:linear-gradient(90deg,navy,#1084d0);border:none;color:#fff}.header[data-kind=window]>.button{color:#222}.header[data-kind=toolbar],.header[data-kind=app],.header[data-kind=nav]{padding:4px 0;background:silver;color:#222;border-bottom:1px solid #808080;border-top:1px solid #f5f5f5;border-right:1px solid #808080;border-left:1px solid #f5f5f5;padding-inline-start:4px}.header[data-kind=panel]{padding:4px;background:linear-gradient(90deg,#7c7c7c,#aeaeae);border:none;color:#fff}.main[data-kind=window],.main[data-kind=app],.main[data-kind=nav],.main[data-kind=toolbar],.main[data-kind=section],.main[data-kind=panel],.main[data-kind=drawer],.main[data-kind=card],.panel,.h-panel,.v-panel,.sidebar-start[data-hierarchy],.sidebar-end[data-hierarchy]{border-radius:0;background:silver;color:#222;border-bottom:1px solid #808080;border-top:1px solid #f5f5f5;border-right:1px solid #808080;border-left:1px solid #f5f5f5}.column:after{content:"";position:absolute;bottom:var(--padding);top:var(--padding);right:0;width:0px;border-bottom:1px solid #f5f5f5;border-top:1px solid #808080;border-right:1px solid #f5f5f5;border-left:1px solid #808080}.column:last-child:after{display:none}.main[data-kind=panel],.sidebar-start[data-kind=panel],.sidebar-end[data-kind=panel]{padding:0}.sidebar-start[data-hierarchy=tertiary],.sidebar-start[data-hierarchy=secondary]{background:silver;color:#222}.sidebar-start[data-kind=nav],.v-nav{background:#fff;padding:2px;border-top:1px solid #808080;border-bottom:1px solid #f5f5f5;border-right:1px solid #f5f5f5;border-left:1px solid #808080}.sidebar-end[data-hierarchy=tertiary],.sidebar-end[data-hierarchy=secondary]{background:silver;color:#222}.sidebar-end[data-hierarchy=primary],.sidebar-start[data-hierarchy=primary]{background:#fff;color:#222}.footer[data-kind=window]{padding:4px;background:silver;box-shadow:inset 1px 1px gray,inset -1px -1px #f5f5f5,inset 2px 2px #c1c1c1,inset -2px -2px silver;color:#222}.window,.date-picker-popover,.date-picker-year-selector,.menu,.suggestion-list{border-radius:0;background:silver;padding:4px;box-shadow:inset -1px -1px #0a0a0a,inset 1px 1px #f5f5f5,inset -2px -2px gray,inset 2px 2px silver}.suggestion-list-header{background:silver}.date-picker-box{background:silver;padding:0}.date-picker-date,.date-picker-year-button{box-shadow:none!important}.date-picker-header{height:20px}.button.phone-number-input-select,.button.phone-number-input-select:hover{min-width:0}.phone-number-input[data-has-phone-book=false]{border-end-end-radius:0px;border-start-end-radius:0px}.button.phone-number-input-phone-book{max-width:23px!important;max-height:23px!important;height:23px!important;min-width:23px!important;min-height:23px!important}.button.date-picker-year-select{padding-inline-end:20px}.button.date-picker-year-select:dir(ltr):after{width:calc(12px * var(--scalar, 1));height:calc(12px * var(--scalar, 1));-webkit-mask-image:url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 12 12' fill='black' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4l4 4 4-4z' fill='black'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 12 12' fill='black' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4l4 4 4-4z' fill='black'/%3E%3C/svg%3E")}.button.date-picker-year-select:dir(rtl):after{width:calc(12px * var(--scalar, 1));height:calc(12px * var(--scalar, 1));-webkit-mask-image:url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 12 12' fill='black' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4l4 4 4-4z' fill='black'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 12 12' fill='black' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4l4 4 4-4z' fill='black'/%3E%3C/svg%3E")}.time-box{border-radius:0;background:#fff;border:none;box-shadow:inset 1px 1px gray,inset -1px -1px #f5f5f5,inset 2px 2px #c1c1c1,inset -2px -2px silver}.time-box-title-container{min-height:25px;height:25px}.field-set{padding:8px 12px 12px;margin-top:10px;border-radius:0;background:silver;box-shadow:inset 1px 1px gray,inset -1px -1px #f5f5f5,inset 2px 2px #f5f5f5,inset -2px -2px gray}.field-set>.field-set-body{background:transparent;padding:0;gap:8px}.field-set>.field-set-legend{position:relative;top:-7px;left:-4px;height:0}.field-set-legend-text{background:silver;padding:0;font-size:12px}.chip{background:silver;border-radius:0;color:#222;border:none;font-size:12px;box-shadow:inset -1px -1px #0a0a0a,inset 1px 1px #fff,inset -2px -2px gray,inset 2px 2px silver}.checkbox{outline:none;border-radius:0;background:#fff;border:none;background-position:center;background-repeat:no-repeat;box-shadow:inset 1px 1px gray,inset -1px -1px #f5f5f5,inset 2px 2px #c1c1c1,inset -2px -2px silver}.checkbox:focus{outline:none}.checkbox[data-checked=true]{background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='%23222' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.5068 5.44714C20.8121 5.72703 20.8328 6.20146 20.5529 6.5068L9.55287 18.5068C9.41464 18.6576 9.22081 18.7454 9.01629 18.7498C8.81178 18.7543 8.61432 18.675 8.46967 18.5303L3.46967 13.5303C3.17678 13.2374 3.17678 12.7626 3.46967 12.4697C3.76256 12.1768 4.23744 12.1768 4.53033 12.4697L8.97644 16.9158L19.4471 5.49321C19.727 5.18787 20.2015 5.16724 20.5068 5.44714Z' stroke='%23222' stroke-width='2'/%3E%3C/svg%3E")}.checkbox[data-is-disabled=false]:active{background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='%23222' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.5068 5.44714C20.8121 5.72703 20.8328 6.20146 20.5529 6.5068L9.55287 18.5068C9.41464 18.6576 9.22081 18.7454 9.01629 18.7498C8.81178 18.7543 8.61432 18.675 8.46967 18.5303L3.46967 13.5303C3.17678 13.2374 3.17678 12.7626 3.46967 12.4697C3.76256 12.1768 4.23744 12.1768 4.53033 12.4697L8.97644 16.9158L19.4471 5.49321C19.727 5.18787 20.2015 5.16724 20.5068 5.44714Z' stroke='%23222' stroke-width='2'/%3E%3C/svg%3E")}.checkbox[data-is-disabled=true]{background-color:silver}.checkbox[data-checked=true][data-is-disabled=true]{background-image:url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='%23222' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.5068 5.44714C20.8121 5.72703 20.8328 6.20146 20.5529 6.5068L9.55287 18.5068C9.41464 18.6576 9.22081 18.7454 9.01629 18.7498C8.81178 18.7543 8.61432 18.675 8.46967 18.5303L3.46967 13.5303C3.17678 13.2374 3.17678 12.7626 3.46967 12.4697C3.76256 12.1768 4.23744 12.1768 4.53033 12.4697L8.97644 16.9158L19.4471 5.49321C19.727 5.18787 20.2015 5.16724 20.5068 5.44714Z' stroke='%23707070' stroke-width='2'/%3E%3C/svg%3E")}.radio,.radio[data-checked=true],.radio[checked=true]{width:14px;height:14px;min-width:14px;min-height:14px;border-inline-end:1px solid #fff;border-inline-start:1px solid #222;border-block-end:1px solid #fff;border-block-start:1px solid #222}.radio:focus{outline:none}.radio:before{content:"";background:transparent;position:absolute;border-radius:50%;inset:0;border-inline-end:1px solid #dfdfdf;border-inline-start:1px solid #808080;border-block-end:1px solid #dfdfdf;border-block-start:1px solid #808080}.radio[data-checked=true]:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:40%;height:40%;background:#222;border-radius:50%}.switch:focus,.switch:focus-visible,.switch-wrapper[data-focused=true][data-is-checked=false],.switch-wrapper[data-focused=true][data-is-checked=true]{outline:none}.switch-wrapper{border-radius:0;box-shadow:inset -1px -1px #fff,inset 1px 1px gray,inset -2px -2px #dfdfdf,inset 2px 2px #0a0a0a;border-color:silver;background-color:#fff;transition:background-color .2s ease-out;margin-top:2px;margin-bottom:3px}.switch-wrapper[data-is-checked=false]>.switch-icon{color:#222}.switch:after{content:"";cursor:pointer;position:absolute;top:0;transition:transform .2s ease-out;width:calc(16px * var(--scalar, 1));height:calc(16px * var(--scalar, 1));border-radius:0;background-color:silver;box-sizing:border-box;box-shadow:inset -1px -1px #0a0a0a,inset 1px 1px #fff,inset -2px -2px gray,inset 2px 2px silver}.switch-wrapper[data-is-checked=true][data-is-disabled=false]{background-color:var(--accent-color);border-color:silver}.switch-wrapper[data-is-disabled=true]{background-color:silver;border-color:silver;box-shadow:inset -1px -1px #fff,inset 1px 1px #999,inset -2px -2px #dfdfdf,inset 2px 2px #7f7f7f}.switch[data-is-disabled=true]:after{box-shadow:inset -1px -1px #666,inset 1px 1px #fff,inset -2px -2px #949494,inset 2px 2px silver}.switch-wrapper[data-is-disabled=true]>.switch-icon{color:#707070}.slider::-webkit-slider-runnable-track{border-radius:0;height:5px;box-shadow:inset -1px -1px #fff,inset 1px 1px gray,inset -2px -2px #dfdfdf,inset 2px 2px #0a0a0a}.slider::-webkit-slider-runnable-track [data-is-disabled=true]{box-shadow:inset -1px -1px #fff,inset 1px 1px #999,inset -2px -2px #dfdfdf,inset 2px 2px #717171}.slider::-webkit-slider-thumb{outline:none;width:calc(12px * var(--scalar, 1));height:calc(16px * var(--scalar, 1));border-radius:0;border:none;background-color:silver;box-sizing:border-box;box-shadow:inset -1px -1px #0a0a0a,inset 1px 1px #fff,inset -2px -2px gray,inset 2px 2px silver}.slider[data-is-disabled=false]:active::-webkit-slider-thumb{background-color:silver}.slider[data-is-disabled=true]::-webkit-slider-thumb{box-shadow:inset -1px -1px #717171,inset 1px 1px #fff,inset -2px -2px #999,inset 2px 2px silver}.slider::-moz-range-track{border-radius:0;height:5px;border:none;background:silver;box-shadow:inset -1px -1px #fff,inset 1px 1px gray,inset -2px -2px #dfdfdf,inset 2px 2px #0a0a0a}.slider::-moz-range-track [data-is-disabled=true]{box-shadow:inset -1px -1px #fff,inset 1px 1px #999,inset -2px -2px #dfdfdf,inset 2px 2px #717171}.slider::-moz-range-thumb{outline:none;width:calc(12px * var(--scalar, 1));height:calc(16px * var(--scalar, 1));border-radius:0;border:none;background-color:silver;box-sizing:border-box;box-shadow:inset -1px -1px #0a0a0a,inset 1px 1px #fff,inset -2px -2px gray,inset 2px 2px silver;cursor:pointer}.slider[data-is-disabled=false]:active::-moz-range-thumb,.slider[data-is-disabled=false]:focus::-moz-range-thumb{background-color:silver;box-shadow:inset -1px -1px #0a0a0a,inset 1px 1px #fff,inset -2px -2px gray,inset 2px 2px silver;outline:none}.slider[data-is-disabled=true]::-moz-range-thumb{box-shadow:inset -1px -1px #717171,inset 1px 1px #fff,inset -2px -2px #999,inset 2px 2px silver;cursor:not-allowed}.nav-item,.nav-item[data-is-selected],.menu-item{border-radius:0;font-size:12px}.nav-item,.menu-item .body-text{font-size:12px}.main[data-hierarchy=primary],.main[data-hierarchy=secondary],.main[data-hierarchy=tertiary]{background:silver;padding:0}.h-nav{border:none}.h-nav:after{content:"";position:absolute;left:0;right:0;bottom:0;height:0px;border-bottom:1px solid #f5f5f5;border-top:1px solid #808080;border-right:1px solid #f5f5f5;border-left:1px solid #808080}.footer{border:none}.footer:after{content:"";position:absolute;left:0;right:0;top:0;height:0px;border-bottom:1px solid #f5f5f5;border-top:1px solid #808080;border-right:1px solid #f5f5f5;border-left:1px solid #808080}
|
|
File without changes
|