@finstack-com-public/design 0.10.2 → 0.11.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/CHANGELOG.md +89 -0
- package/dist/css/checkbox.css +3 -1
- package/dist/css/combobox.css +58 -0
- package/dist/css/combobox.md +75 -0
- package/dist/css/data-type.md +1 -1
- package/dist/css/diag.md +1 -1
- package/dist/css/drag.css +7 -0
- package/dist/css/drag.md +2 -0
- package/dist/css/grid.css +4 -0
- package/dist/css/input.md +6 -1
- package/dist/css/pill.css +7 -0
- package/dist/css/select.css +103 -0
- package/dist/css/select.md +69 -0
- package/dist/css/slider.css +169 -0
- package/dist/css/slider.md +87 -0
- package/dist/css/stacked-bar.css +16 -0
- package/dist/css/switch.css +137 -0
- package/dist/css/switch.md +28 -0
- package/dist/css/tokens.css +3 -3
- package/dist/css-text/checkbox.js +1 -1
- package/dist/css-text/combobox.d.ts +2 -0
- package/dist/css-text/combobox.js +1 -0
- package/dist/css-text/drag.js +1 -1
- package/dist/css-text/grid.js +1 -1
- package/dist/css-text/kit.js +511 -4
- package/dist/css-text/pill.js +1 -1
- package/dist/css-text/select.d.ts +2 -0
- package/dist/css-text/select.js +1 -0
- package/dist/css-text/slider.d.ts +2 -0
- package/dist/css-text/slider.js +1 -0
- package/dist/css-text/stacked-bar.js +1 -1
- package/dist/css-text/switch.d.ts +2 -0
- package/dist/css-text/switch.js +1 -0
- package/dist/css-text/tokens.js +1 -1
- package/dist/dom/combobox.d.ts +47 -0
- package/dist/dom/combobox.js +178 -0
- package/dist/dom/index.d.ts +3 -0
- package/dist/dom/index.js +3 -0
- package/dist/dom/listbox.d.ts +11 -0
- package/dist/dom/listbox.js +9 -3
- package/dist/dom/select.d.ts +39 -0
- package/dist/dom/select.js +221 -0
- package/dist/dom/slider.d.ts +51 -0
- package/dist/dom/slider.js +256 -0
- package/dist/grid.json +1 -1
- package/dist/kit.css +511 -4
- package/dist/react/actions.js +12 -6
- package/dist/react/inputs.d.ts +181 -0
- package/dist/react/inputs.js +291 -15
- package/dist/react/navigation.js +33 -15
- package/dist/tokens/contrast-pairs.js +24 -0
- package/dist/tokens/grid.js +1 -1
- package/dist/tokens.json +1 -1
- package/package.json +2 -1
|
@@ -44,6 +44,20 @@ export function contrastPairs() {
|
|
|
44
44
|
role('text', 'ink', 'brand-wash-end');
|
|
45
45
|
role('text', 'ink-2', 'brand-wash-start');
|
|
46
46
|
role('text', 'ink-2', 'brand-wash-end');
|
|
47
|
+
// Pairs found by T125's scan of src/css (src/tokens/contrast-coverage.test.ts): ink on every tone's wash (notice,
|
|
48
|
+
// disclosure, filled slot), the pressed and active fills, the grid's translucent fills, the tooltip's inverse.
|
|
49
|
+
for (const tone of toneNames)
|
|
50
|
+
role('text', 'ink', `${tone}-wash`);
|
|
51
|
+
role('text', 'ink', 'bg-active', 'bg-surface');
|
|
52
|
+
role('text', 'accent', 'bg-selected');
|
|
53
|
+
role('text', 'bg-surface', 'ink');
|
|
54
|
+
add('text', 'ink', c.ink, 'grid-nodata-bg', g['nodata-bg'], ['bg-surface', c['bg-surface']]);
|
|
55
|
+
add('text', 'ink', c.ink, 'grid-selected-invalid-bg', g['selected-invalid-bg'], ['grid-input-bg', g['input-bg']]);
|
|
56
|
+
add('text', 'grid-editing-danger-ink', g['editing-danger-ink'], 'bg-surface', c['bg-surface']);
|
|
57
|
+
role('non-text', 'warning-icon', 'warning-wash');
|
|
58
|
+
// The end circle's edge and its label on the plane (the label sits on the circle: diagram-end-bg, above).
|
|
59
|
+
role('non-text', 'diagram-end-line', 'diagram-bg');
|
|
60
|
+
role('text', 'diagram-end-ink', 'diagram-bg');
|
|
47
61
|
// The glass panel (spec 02 I): translucent, so over the page and over both ends of the wash.
|
|
48
62
|
// ink-muted too: fs-card__meta and fs-widget__subtitle use it on glass.
|
|
49
63
|
for (const fg of ['ink', 'ink-2', 'ink-muted']) {
|
|
@@ -121,6 +135,8 @@ export function contrastPairs() {
|
|
|
121
135
|
for (const bg of ['header-bg', 'label-bg', 'subtotal-bg', 'input-bg', 'editing-bg'])
|
|
122
136
|
grid('text', 'ink', bg);
|
|
123
137
|
grid('text', 'locked-ink', 'locked-bg');
|
|
138
|
+
// The stale dot, a second cue beside the italic (I22).
|
|
139
|
+
grid('non-text', 'stale-dot', 'bg-surface');
|
|
124
140
|
grid('text', 'error-ink', 'error-bg');
|
|
125
141
|
grid('text', 'negative-ink', 'bg-surface');
|
|
126
142
|
grid('text', 'negative-ink', 'input-bg');
|
|
@@ -157,8 +173,12 @@ export function contrastPairs() {
|
|
|
157
173
|
// The edge of a control with no fill and no label keeps the 3:1 floor (D38 "how to apply").
|
|
158
174
|
for (const bg of ['bg-surface', 'bg-chrome', 'bg-page'])
|
|
159
175
|
role('non-text', 'line-control-strong', bg);
|
|
176
|
+
// The off switch: its knob and edge on its sunken track (switch.css, T131).
|
|
177
|
+
role('non-text', 'line-control-strong', 'bg-sunken');
|
|
160
178
|
role('non-text', 'ring', 'ring-halo');
|
|
161
179
|
role('non-text', 'accent', 'bg-surface');
|
|
180
|
+
// The checked checkbox and radio mark on its accent fill (checkbox.css, I21).
|
|
181
|
+
role('non-text', 'bg-surface', 'accent');
|
|
162
182
|
role('non-text', 'warning-icon', 'bg-surface');
|
|
163
183
|
// The gutter marks (T17, T22): all three lint marks on the gutter, light and dark.
|
|
164
184
|
for (const lint of ['error', 'warning', 'refusal'])
|
|
@@ -179,6 +199,10 @@ export function contrastPairs() {
|
|
|
179
199
|
// Disabled: WCAG-exempt, kept readable without opacity (spec 06 §2).
|
|
180
200
|
role('disabled', 'ink-disabled', 'bg-disabled');
|
|
181
201
|
role('disabled', 'ink-disabled', 'bg-surface');
|
|
202
|
+
// A disabled checked box: the mark on the box's disabled fill (checkbox.css).
|
|
203
|
+
role('disabled', 'bg-surface', 'ink-disabled');
|
|
204
|
+
// A disabled checked switch: the knob on the track's disabled fill (switch.css, T131).
|
|
205
|
+
role('disabled', 'bg-disabled', 'ink-disabled');
|
|
182
206
|
}
|
|
183
207
|
return out;
|
|
184
208
|
}
|
package/dist/tokens/grid.js
CHANGED
|
@@ -16,7 +16,7 @@ export const gridRoles = {
|
|
|
16
16
|
'error-bg': s('#fdecea', '#3d1a26'), // dark = --fs-danger-wash
|
|
17
17
|
'negative-ink': s('#c62828', '#ff8a80'),
|
|
18
18
|
'stale-ink': s('#5f5e5a', '#93a1c2'), // ✱ was #757575; dark = --fs-ink-muted
|
|
19
|
-
'stale-dot': s('#
|
|
19
|
+
'stale-dot': s('#c27c00', '#f9a825'), // I22: was #f9a825 in light, 1.97:1; now 3.40:1 on the surface
|
|
20
20
|
'dirty-ink': s('#3d3db4', '#a5a5ff'),
|
|
21
21
|
'invalid-ink': s('#c62828', '#ff8a80'),
|
|
22
22
|
selected: s('#3d3db4', '#8c8cff'),
|
package/dist/tokens.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finstack-com-public/design",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Design kit: tokens, icons, components and a chart theme, shared by Grizzbi, BI App and the calculation engine.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Finstack",
|
|
@@ -101,6 +101,7 @@
|
|
|
101
101
|
"gallery": "vite --config gallery/vite.config.ts",
|
|
102
102
|
"gallery:build": "tsc -p gallery/tsconfig.json && vite build --config gallery/vite.config.ts",
|
|
103
103
|
"icons:sync": "node scripts/sync-icons.ts",
|
|
104
|
+
"release:check": "node scripts/release-check.ts",
|
|
104
105
|
"motifs": "python3 scripts/make-wave.py art/wave-ai-source.png src/motifs/wave.webp"
|
|
105
106
|
},
|
|
106
107
|
"peerDependencies": {
|