@finstack-com-public/design 0.10.1 → 0.10.2

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/grid.json CHANGED
@@ -17,6 +17,7 @@
17
17
  "selected": "#3d3db4",
18
18
  "selected-invalid-bg": "#ffe6e6",
19
19
  "editing-bg": "#ddddf4",
20
+ "editing-danger-ink": "#b71c1c",
20
21
  "nodata-bg": "#f7f7f7",
21
22
  "chevron": "#8a8983",
22
23
  "tree-guide": "#d9d9d9",
@@ -1,5 +1,6 @@
1
1
  /* Mask-image icons for authored layouts, which can't contain <svg> (CE H7). Lucide 1.63.0, ISC. Generated; do not edit. */
2
- @layer fs.utilities {
2
+ @layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities;
3
+ @layer fs.base {
3
4
  .fs-i-folder,
4
5
  .fs-i-folder-open,
5
6
  .fs-i-layout-dashboard,
@@ -85,6 +86,8 @@
85
86
  background-color: currentColor;
86
87
  mask: var(--fs-i) center / contain no-repeat;
87
88
  }
89
+ }
90
+ @layer fs.utilities {
88
91
  .fs-i-folder {
89
92
  --fs-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.875' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z'/%3E%3C/svg%3E");
90
93
  }
@@ -332,4 +335,167 @@
332
335
  width: 24px;
333
336
  height: 24px;
334
337
  }
338
+ @media (forced-colors: active) {
339
+ .fs-i-folder,
340
+ .fs-i-folder-open,
341
+ .fs-i-layout-dashboard,
342
+ .fs-i-sigma,
343
+ .fs-i-network,
344
+ .fs-i-box,
345
+ .fs-i-sliders-horizontal,
346
+ .fs-i-layers,
347
+ .fs-i-shield,
348
+ .fs-i-sheet,
349
+ .fs-i-table,
350
+ .fs-i-circle-dashed,
351
+ .fs-i-circle-check,
352
+ .fs-i-triangle-alert,
353
+ .fs-i-circle-alert,
354
+ .fs-i-info,
355
+ .fs-i-circle-x,
356
+ .fs-i-circle,
357
+ .fs-i-lock,
358
+ .fs-i-lock-open,
359
+ .fs-i-circle-question-mark,
360
+ .fs-i-plus,
361
+ .fs-i-minus,
362
+ .fs-i-trash,
363
+ .fs-i-pencil,
364
+ .fs-i-save,
365
+ .fs-i-undo-2,
366
+ .fs-i-redo-2,
367
+ .fs-i-refresh-cw,
368
+ .fs-i-calculator,
369
+ .fs-i-rotate-ccw,
370
+ .fs-i-upload,
371
+ .fs-i-download,
372
+ .fs-i-file-plus,
373
+ .fs-i-copy,
374
+ .fs-i-folder-input,
375
+ .fs-i-search,
376
+ .fs-i-funnel,
377
+ .fs-i-maximize-2,
378
+ .fs-i-minimize-2,
379
+ .fs-i-x,
380
+ .fs-i-check,
381
+ .fs-i-ellipsis,
382
+ .fs-i-printer,
383
+ .fs-i-external-link,
384
+ .fs-i-chevron-right,
385
+ .fs-i-chevron-down,
386
+ .fs-i-chevron-up,
387
+ .fs-i-chevron-left,
388
+ .fs-i-arrow-up,
389
+ .fs-i-arrow-down,
390
+ .fs-i-arrow-up-down,
391
+ .fs-i-arrow-right,
392
+ .fs-i-menu,
393
+ .fs-i-log-out,
394
+ .fs-i-arrow-left-right,
395
+ .fs-i-grip-vertical,
396
+ .fs-i-list-tree,
397
+ .fs-i-repeat,
398
+ .fs-i-keyboard,
399
+ .fs-i-calendar,
400
+ .fs-i-clock,
401
+ .fs-i-file,
402
+ .fs-i-file-text,
403
+ .fs-i-code,
404
+ .fs-i-square-function,
405
+ .fs-i-variable,
406
+ .fs-i-columns-3,
407
+ .fs-i-diff,
408
+ .fs-i-chart-column,
409
+ .fs-i-chart-bar,
410
+ .fs-i-chart-line,
411
+ .fs-i-chart-pie,
412
+ .fs-i-grid-3x3,
413
+ .fs-i-loader-circle,
414
+ .fs-i-badge-check,
415
+ .fs-i-users {
416
+ background-color: CanvasText;
417
+ }
418
+ @supports (forced-color-adjust: preserve-parent-color) {
419
+ .fs-i-folder,
420
+ .fs-i-folder-open,
421
+ .fs-i-layout-dashboard,
422
+ .fs-i-sigma,
423
+ .fs-i-network,
424
+ .fs-i-box,
425
+ .fs-i-sliders-horizontal,
426
+ .fs-i-layers,
427
+ .fs-i-shield,
428
+ .fs-i-sheet,
429
+ .fs-i-table,
430
+ .fs-i-circle-dashed,
431
+ .fs-i-circle-check,
432
+ .fs-i-triangle-alert,
433
+ .fs-i-circle-alert,
434
+ .fs-i-info,
435
+ .fs-i-circle-x,
436
+ .fs-i-circle,
437
+ .fs-i-lock,
438
+ .fs-i-lock-open,
439
+ .fs-i-circle-question-mark,
440
+ .fs-i-plus,
441
+ .fs-i-minus,
442
+ .fs-i-trash,
443
+ .fs-i-pencil,
444
+ .fs-i-save,
445
+ .fs-i-undo-2,
446
+ .fs-i-redo-2,
447
+ .fs-i-refresh-cw,
448
+ .fs-i-calculator,
449
+ .fs-i-rotate-ccw,
450
+ .fs-i-upload,
451
+ .fs-i-download,
452
+ .fs-i-file-plus,
453
+ .fs-i-copy,
454
+ .fs-i-folder-input,
455
+ .fs-i-search,
456
+ .fs-i-funnel,
457
+ .fs-i-maximize-2,
458
+ .fs-i-minimize-2,
459
+ .fs-i-x,
460
+ .fs-i-check,
461
+ .fs-i-ellipsis,
462
+ .fs-i-printer,
463
+ .fs-i-external-link,
464
+ .fs-i-chevron-right,
465
+ .fs-i-chevron-down,
466
+ .fs-i-chevron-up,
467
+ .fs-i-chevron-left,
468
+ .fs-i-arrow-up,
469
+ .fs-i-arrow-down,
470
+ .fs-i-arrow-up-down,
471
+ .fs-i-arrow-right,
472
+ .fs-i-menu,
473
+ .fs-i-log-out,
474
+ .fs-i-arrow-left-right,
475
+ .fs-i-grip-vertical,
476
+ .fs-i-list-tree,
477
+ .fs-i-repeat,
478
+ .fs-i-keyboard,
479
+ .fs-i-calendar,
480
+ .fs-i-clock,
481
+ .fs-i-file,
482
+ .fs-i-file-text,
483
+ .fs-i-code,
484
+ .fs-i-square-function,
485
+ .fs-i-variable,
486
+ .fs-i-columns-3,
487
+ .fs-i-diff,
488
+ .fs-i-chart-column,
489
+ .fs-i-chart-bar,
490
+ .fs-i-chart-line,
491
+ .fs-i-chart-pie,
492
+ .fs-i-grid-3x3,
493
+ .fs-i-loader-circle,
494
+ .fs-i-badge-check,
495
+ .fs-i-users {
496
+ forced-color-adjust: preserve-parent-color;
497
+ background-color: currentColor;
498
+ }
499
+ }
500
+ }
335
501
  }
package/dist/kit.css CHANGED
@@ -171,6 +171,7 @@
171
171
  --fs-grid-selected: #3d3db4;
172
172
  --fs-grid-selected-invalid-bg: rgba(252,0,0,0.10);
173
173
  --fs-grid-editing-bg: rgb(221,221,244);
174
+ --fs-grid-editing-danger-ink: #b71c1c;
174
175
  --fs-grid-nodata-bg: rgba(0,0,0,0.03);
175
176
  --fs-grid-chevron: #8a8983;
176
177
  --fs-grid-tree-guide: #d9d9d9;
@@ -432,6 +433,7 @@
432
433
  --fs-grid-selected: #8c8cff;
433
434
  --fs-grid-selected-invalid-bg: rgba(255,138,128,0.08);
434
435
  --fs-grid-editing-bg: #223a7e;
436
+ --fs-grid-editing-danger-ink: #ff8a80;
435
437
  --fs-grid-nodata-bg: rgba(232,238,252,0.04);
436
438
  --fs-grid-chevron: #6f81ad;
437
439
  --fs-grid-tree-guide: #22356a;
@@ -570,6 +572,7 @@
570
572
  --fs-grid-selected: #8c8cff;
571
573
  --fs-grid-selected-invalid-bg: rgba(255,138,128,0.08);
572
574
  --fs-grid-editing-bg: #223a7e;
575
+ --fs-grid-editing-danger-ink: #ff8a80;
573
576
  --fs-grid-nodata-bg: rgba(232,238,252,0.04);
574
577
  --fs-grid-chevron: #6f81ad;
575
578
  --fs-grid-tree-guide: #22356a;
@@ -708,6 +711,7 @@
708
711
  --fs-grid-selected: #3d3db4;
709
712
  --fs-grid-selected-invalid-bg: rgba(252,0,0,0.10);
710
713
  --fs-grid-editing-bg: rgb(221,221,244);
714
+ --fs-grid-editing-danger-ink: #b71c1c;
711
715
  --fs-grid-nodata-bg: rgba(0,0,0,0.03);
712
716
  --fs-grid-chevron: #8a8983;
713
717
  --fs-grid-tree-guide: #d9d9d9;
@@ -889,6 +893,7 @@
889
893
  --fs-grid-selected: #8c8cff;
890
894
  --fs-grid-selected-invalid-bg: rgba(255,138,128,0.08);
891
895
  --fs-grid-editing-bg: #223a7e;
896
+ --fs-grid-editing-danger-ink: #ff8a80;
892
897
  --fs-grid-nodata-bg: rgba(232,238,252,0.04);
893
898
  --fs-grid-chevron: #6f81ad;
894
899
  --fs-grid-tree-guide: #22356a;
@@ -1081,6 +1086,7 @@
1081
1086
  --fs-grid-selected: #3d3db4;
1082
1087
  --fs-grid-selected-invalid-bg: rgba(252,0,0,0.10);
1083
1088
  --fs-grid-editing-bg: rgb(221,221,244);
1089
+ --fs-grid-editing-danger-ink: #b71c1c;
1084
1090
  --fs-grid-nodata-bg: rgba(0,0,0,0.03);
1085
1091
  --fs-grid-chevron: #8a8983;
1086
1092
  --fs-grid-tree-guide: #d9d9d9;
@@ -1236,6 +1242,13 @@
1236
1242
  outline-offset: var(--fs-ring-halo-width);
1237
1243
  box-shadow: 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo);
1238
1244
  }
1245
+
1246
+ /* Forced colours erase a fill, so the separator's mask is drawn in CanvasText (T105). */
1247
+ @media (forced-colors: active) {
1248
+ .fs-breadcrumbs__item + .fs-breadcrumbs__item::before {
1249
+ background-color: CanvasText;
1250
+ }
1251
+ }
1239
1252
  }
1240
1253
 
1241
1254
  /* Button (spec 02 A). Usage: button.md. */
@@ -1398,6 +1411,20 @@
1398
1411
  transform: rotate(360deg);
1399
1412
  }
1400
1413
  }
1414
+
1415
+ /* Forced colours erase the pressed fill and the accent edge, so pressed takes the system's
1416
+ selection colours; aria-disabled gets GrayText, as a native :disabled button does (T107). */
1417
+ @media (forced-colors: active) {
1418
+ .fs-button[aria-pressed='true'] {
1419
+ --fs-button-ink: HighlightText;
1420
+ background-color: Highlight;
1421
+ border-color: Highlight;
1422
+ }
1423
+ .fs-button[aria-disabled='true'] {
1424
+ --fs-button-ink: GrayText;
1425
+ border-color: GrayText;
1426
+ }
1427
+ }
1401
1428
  }
1402
1429
 
1403
1430
  /* Calendar (spec 02 B): year, month and day views; one value or a range (T85), one page or two.
@@ -2626,6 +2653,13 @@
2626
2653
  background: var(--fs-gap-wash);
2627
2654
  border-color: var(--fs-gap-edge);
2628
2655
  }
2656
+
2657
+ /* Forced colours erase a fill, so the chevron's mask is drawn in CanvasText (T105, as node.css does). */
2658
+ @media (forced-colors: active) {
2659
+ .fs-disclosure__summary::before {
2660
+ background-color: CanvasText;
2661
+ }
2662
+ }
2629
2663
  }
2630
2664
 
2631
2665
  /* Drag markers (spec 02 F): the kit styles them; BI App's own engine runs the drag (BI §9.6).
@@ -2886,6 +2920,15 @@
2886
2920
  background: var(--fs-accent-wash);
2887
2921
  border-color: var(--fs-accent);
2888
2922
  }
2923
+
2924
+ /* Forced colours erase the wash and the accent edge: the slot being dropped on gets a Highlight
2925
+ ring just outside its edge, on Canvas (T107). */
2926
+ @media (forced-colors: active) {
2927
+ .fs-slot.fs-is-dragover {
2928
+ outline: 2px solid Highlight;
2929
+ outline-offset: 2px;
2930
+ }
2931
+ }
2889
2932
  }
2890
2933
 
2891
2934
  /* Empty state (spec 02 E). Usage: empty.md. */
@@ -3150,6 +3193,24 @@
3150
3193
  outline-offset: calc(-1 * var(--fs-ring-width));
3151
3194
  box-shadow: inset 0 0 0 calc(var(--fs-ring-width) + var(--fs-ring-halo-width)) var(--fs-ring-halo);
3152
3195
  }
3196
+
3197
+ /* Forced colours turn the invalid box's red edge into the plain one, so a second, inner line
3198
+ marks it (the focus ring takes the outline while focused); a disabled box greys its edge and
3199
+ text (T107). */
3200
+ @media (forced-colors: active) {
3201
+ .fs-field__box:has([aria-invalid='true']):not(:has(:focus-visible)) {
3202
+ outline: var(--fs-line-width) solid CanvasText;
3203
+ outline-offset: calc(-2 * var(--fs-line-width) - 1px);
3204
+ }
3205
+ .fs-field__box:has(:disabled) {
3206
+ color: GrayText;
3207
+ border-color: GrayText;
3208
+ }
3209
+ .fs-field__box:has(:disabled) :is(.fs-input, .fs-select__control, .fs-field__control) {
3210
+ color: GrayText;
3211
+ -webkit-text-fill-color: GrayText;
3212
+ }
3213
+ }
3153
3214
  }
3154
3215
 
3155
3216
  /* "Not computed" markers (spec 02 F; GZ §6.1). Usage: gap.md. Every marker brings its own surface
@@ -3555,6 +3616,12 @@
3555
3616
  .fs-grid .fs-cell--editing {
3556
3617
  background-color: var(--fs-grid-editing-bg);
3557
3618
  }
3619
+ /* Red ink on the editing fill: a darker red in light (T108), the same red as before in dark. */
3620
+ .fs-grid .fs-cell--editing.fs-cell--negative,
3621
+ .fs-grid .fs-cell--editing.fs-cell--error,
3622
+ .fs-grid .fs-cell--editing.fs-cell--invalid {
3623
+ color: var(--fs-grid-editing-danger-ink);
3624
+ }
3558
3625
  .fs-grid .fs-cell--editing .fs-grid__cover {
3559
3626
  visibility: hidden;
3560
3627
  }
@@ -3580,6 +3647,21 @@
3580
3647
  border-top: 6px solid var(--fs-accent);
3581
3648
  border-left: 6px solid transparent;
3582
3649
  }
3650
+
3651
+ /* Forced colours erase the danger ink and the error fill: a wavy underline marks the value (on the
3652
+ cover, which is positioned, so the cell's own underline doesn't reach it), as .fs-diag--error
3653
+ does, and an error cell also gets a dashed inner edge (T107). */
3654
+ @media (forced-colors: active) {
3655
+ .fs-grid :is(.fs-cell--invalid, .fs-cell--error) > .fs-grid__cover {
3656
+ text-decoration: underline wavy CanvasText;
3657
+ text-decoration-skip-ink: none;
3658
+ text-underline-offset: 3px;
3659
+ }
3660
+ .fs-grid .fs-cell--error:not(.fs-is-selected) {
3661
+ outline: var(--fs-line-width) dashed CanvasText;
3662
+ outline-offset: -3px;
3663
+ }
3664
+ }
3583
3665
  }
3584
3666
 
3585
3667
  /* Gutter mark (spec 02 H). Usage: gutter-mark.md.
@@ -3688,6 +3770,16 @@
3688
3770
  border-color: transparent;
3689
3771
  cursor: not-allowed;
3690
3772
  }
3773
+
3774
+ /* Forced colours erase the pressed fill and edge, so pressed takes the system's selection
3775
+ colours (T107). */
3776
+ @media (forced-colors: active) {
3777
+ .fs-icon-button[aria-pressed='true'] {
3778
+ color: HighlightText;
3779
+ background-color: Highlight;
3780
+ border-color: Highlight;
3781
+ }
3782
+ }
3691
3783
  }
3692
3784
 
3693
3785
  /* Icons drawn by createIcon and iconSvg (spec 05 §1). */
@@ -3825,6 +3917,30 @@
3825
3917
  .fs-select:has(:disabled) {
3826
3918
  color: var(--fs-ink-disabled);
3827
3919
  }
3920
+
3921
+ /* Forced colours erase a fill, so the select's arrow is drawn in a system colour (T105). */
3922
+ @media (forced-colors: active) {
3923
+ .fs-select::after {
3924
+ background-color: CanvasText;
3925
+ }
3926
+ .fs-select:has(:disabled)::after {
3927
+ background-color: GrayText;
3928
+ }
3929
+ /* An invalid control's red edge becomes the plain one: a second, inner line marks it (T107). */
3930
+ .fs-input[aria-invalid='true'],
3931
+ .fs-textarea[aria-invalid='true'],
3932
+ .fs-select__control[aria-invalid='true'] {
3933
+ outline: var(--fs-line-width) solid CanvasText;
3934
+ outline-offset: calc(-2 * var(--fs-line-width) - 1px);
3935
+ }
3936
+ .fs-input:disabled,
3937
+ .fs-textarea:disabled,
3938
+ .fs-select__control:disabled {
3939
+ color: GrayText;
3940
+ -webkit-text-fill-color: GrayText;
3941
+ border-color: GrayText;
3942
+ }
3943
+ }
3828
3944
  }
3829
3945
 
3830
3946
  /* Kicker and section label (spec 02 E). Usage: kicker.md. */
@@ -4353,6 +4469,26 @@
4353
4469
  .fs-menu__item[aria-disabled='true'] > .fs-icon {
4354
4470
  color: var(--fs-ink-disabled);
4355
4471
  }
4472
+
4473
+ /* Forced colours erase a fill, so the check mark is drawn in a system colour (T105). */
4474
+ @media (forced-colors: active) {
4475
+ .fs-menu__item:is([role='menuitemcheckbox'], [role='menuitemradio'])[aria-checked='true']::before {
4476
+ background-color: CanvasText;
4477
+ }
4478
+ .fs-menu__item:is([role='menuitemcheckbox'], [role='menuitemradio'])[aria-checked='true']:is(
4479
+ [aria-disabled='true'],
4480
+ :disabled
4481
+ )::before {
4482
+ background-color: GrayText;
4483
+ }
4484
+ /* A disabled item's ink is forced to the plain text colour, so it is greyed with GrayText. Firefox
4485
+ showed no difference without this; Chromium did, for a reason not traced (T109). */
4486
+ .fs-menu__item[aria-disabled='true'],
4487
+ .fs-menu__item:disabled,
4488
+ .fs-menu__item[aria-disabled='true'] > .fs-icon {
4489
+ color: GrayText;
4490
+ }
4491
+ }
4356
4492
  }
4357
4493
 
4358
4494
  /* Meter (spec 02 E; Grizzbi's score meter). Usage: meter.md. */
@@ -5181,6 +5317,23 @@
5181
5317
  transform: rotate(360deg);
5182
5318
  }
5183
5319
  }
5320
+
5321
+ /* Forced colours draw a transparent border and erase fills and shadows, so every step would be a
5322
+ plain ring: the current step's gap is painted in Canvas, done is a filled dot, failed a thick
5323
+ ring (T107). */
5324
+ @media (forced-colors: active) {
5325
+ .fs-progress__step[aria-current='step']::before {
5326
+ border-color: CanvasText;
5327
+ border-top-color: Canvas;
5328
+ }
5329
+ .fs-progress__step.fs-is-done::before {
5330
+ background-color: CanvasText;
5331
+ border-color: CanvasText;
5332
+ }
5333
+ .fs-progress__step.fs-is-failed::before {
5334
+ border: 4px solid CanvasText;
5335
+ }
5336
+ }
5184
5337
  }
5185
5338
 
5186
5339
  /* Segmented control (spec 02 A). Usage: segmented.md. Behaviour: createRovingGroup, mode 'radio'.
@@ -5957,6 +6110,14 @@
5957
6110
  break-inside: avoid;
5958
6111
  }
5959
6112
  }
6113
+
6114
+ /* Forced colours erase the selected row's fill: the system's selection colours instead (T107). */
6115
+ @media (forced-colors: active) {
6116
+ .fs-table tbody tr[aria-selected='true'] > * {
6117
+ color: HighlightText;
6118
+ background-color: Highlight;
6119
+ }
6120
+ }
5960
6121
  }
5961
6122
 
5962
6123
  /* Tabs, choice tabs and page tabs (spec 02 C). Usage: tabs.md. Behaviour: createTabs. */
@@ -6139,6 +6300,15 @@
6139
6300
  background-color: transparent;
6140
6301
  cursor: not-allowed;
6141
6302
  }
6303
+
6304
+ /* After the disabled rule above, which it overrides: forced colours turn the disabled ink into
6305
+ the plain text colour, so a disabled tab is greyed with GrayText (T107). */
6306
+ @media (forced-colors: active) {
6307
+ .fs-tabs__tab:disabled,
6308
+ .fs-tabs__tab[aria-disabled='true'] {
6309
+ color: GrayText;
6310
+ }
6311
+ }
6142
6312
  }
6143
6313
 
6144
6314
  /* Page and section titles (spec 01 §4, T68, D39). Usage: title.md. */
@@ -6536,6 +6706,14 @@
6536
6706
  .fs-tree__status.fs-tone-danger {
6537
6707
  color: var(--fs-danger-ink);
6538
6708
  }
6709
+
6710
+ /* Forced colours erase the selected row's fill: the system's selection colours instead (T107). */
6711
+ @media (forced-colors: active) {
6712
+ .fs-tree__item[aria-selected='true'] > .fs-tree__row {
6713
+ color: HighlightText;
6714
+ background-color: Highlight;
6715
+ }
6716
+ }
6539
6717
  }
6540
6718
 
6541
6719
  /* Object-type icon colours (spec 02 F; 01-tokens §3.7). Usage: type-icon.md. Shipped in T14 for the tree. */
@@ -143,12 +143,11 @@ export function contrastPairs() {
143
143
  grid('text', 'dirty-ink', 'editing-bg');
144
144
  grid('non-text', 'chevron', 'subtotal-bg');
145
145
  for (const ink of ['negative-ink', 'error-ink']) {
146
- // Light editing-bg is BI App's own (red on it is 4.2:1, unchanged by D32), so only dark is held.
147
- if (scheme === 'dark')
148
- grid('text', ink, 'editing-bg');
149
146
  grid('text', ink, 'subtotal-bg');
150
147
  }
151
148
  grid('text', 'invalid-ink', 'subtotal-bg');
149
+ // T108 (I14): the red ink inside the editing cell is its own token, so light holds 4.5:1 on BI App's editing fill.
150
+ grid('text', 'editing-danger-ink', 'editing-bg');
152
151
  grid('text', 'stale-ink', 'input-bg');
153
152
  // Non-text: edges that identify a control, the ring, meaningful icons, fills.
154
153
  // D38 (T65): the pale edge of inputs, selects and chips is accepted below 3:1; the fill and the ring
@@ -18,6 +18,7 @@ export declare const gridRoles: {
18
18
  selected: Schemed;
19
19
  'selected-invalid-bg': Schemed;
20
20
  'editing-bg': Schemed;
21
+ 'editing-danger-ink': Schemed;
21
22
  'nodata-bg': Schemed;
22
23
  chevron: Schemed;
23
24
  'tree-guide': Schemed;
@@ -22,6 +22,7 @@ export const gridRoles = {
22
22
  selected: s('#3d3db4', '#8c8cff'),
23
23
  'selected-invalid-bg': s('rgba(252,0,0,0.10)', 'rgba(255,138,128,0.08)'), // D20: was 0.25, failed AA
24
24
  'editing-bg': s('rgb(221,221,244)', '#223a7e'), // dark: brighter blue than the input teal, under the selected outline
25
+ 'editing-danger-ink': s('#b71c1c', '#ff8a80'), // I14/T108: red ink on editing-bg; dark = the red the editing cell had (--fs-grid-negative-ink)
25
26
  'nodata-bg': s('rgba(0,0,0,0.03)', 'rgba(232,238,252,0.04)'),
26
27
  chevron: s('#8a8983', '#6f81ad'), // ✱ was #9e9e9e; dark = --fs-line-control-strong
27
28
  'tree-guide': s('#d9d9d9', '#22356a'), // dark = --fs-line
@@ -16,8 +16,8 @@ export declare const tokens: {
16
16
  dark: Record<"1" | "2" | "3" | "drawer" | "tooltip" | "lift", string>;
17
17
  };
18
18
  readonly grid: {
19
- light: Record<"line" | "header-bg" | "label-bg" | "row-hover" | "subtotal-bg" | "input-bg" | "locked-ink" | "locked-bg" | "error-ink" | "error-bg" | "negative-ink" | "stale-ink" | "stale-dot" | "dirty-ink" | "invalid-ink" | "selected" | "selected-invalid-bg" | "editing-bg" | "nodata-bg" | "chevron" | "tree-guide" | "lock-mine-ink" | "lock-mine-bg" | "lock-other-ink" | "lock-other-bg", string>;
20
- dark: Record<"line" | "header-bg" | "label-bg" | "row-hover" | "subtotal-bg" | "input-bg" | "locked-ink" | "locked-bg" | "error-ink" | "error-bg" | "negative-ink" | "stale-ink" | "stale-dot" | "dirty-ink" | "invalid-ink" | "selected" | "selected-invalid-bg" | "editing-bg" | "nodata-bg" | "chevron" | "tree-guide" | "lock-mine-ink" | "lock-mine-bg" | "lock-other-ink" | "lock-other-bg", string>;
19
+ light: Record<"line" | "header-bg" | "label-bg" | "row-hover" | "subtotal-bg" | "input-bg" | "locked-ink" | "locked-bg" | "error-ink" | "error-bg" | "negative-ink" | "stale-ink" | "stale-dot" | "dirty-ink" | "invalid-ink" | "selected" | "selected-invalid-bg" | "editing-bg" | "editing-danger-ink" | "nodata-bg" | "chevron" | "tree-guide" | "lock-mine-ink" | "lock-mine-bg" | "lock-other-ink" | "lock-other-bg", string>;
20
+ dark: Record<"line" | "header-bg" | "label-bg" | "row-hover" | "subtotal-bg" | "input-bg" | "locked-ink" | "locked-bg" | "error-ink" | "error-bg" | "negative-ink" | "stale-ink" | "stale-dot" | "dirty-ink" | "invalid-ink" | "selected" | "selected-invalid-bg" | "editing-bg" | "editing-danger-ink" | "nodata-bg" | "chevron" | "tree-guide" | "lock-mine-ink" | "lock-mine-bg" | "lock-other-ink" | "lock-other-bg", string>;
21
21
  };
22
22
  readonly syntax: {
23
23
  light: Record<"string" | "number" | "function" | "keyword" | "operator" | "variableName" | "propertyName" | "typeName" | "bool" | "null" | "comment" | "punctuation" | "bracket" | "angleBracket" | "tagName" | "attributeName" | "attributeValue" | "content" | "meta" | "invalid", string>;
package/dist/tokens.json CHANGED
@@ -291,6 +291,7 @@
291
291
  "selected": "#3d3db4",
292
292
  "selected-invalid-bg": "rgba(252,0,0,0.10)",
293
293
  "editing-bg": "rgb(221,221,244)",
294
+ "editing-danger-ink": "#b71c1c",
294
295
  "nodata-bg": "rgba(0,0,0,0.03)",
295
296
  "chevron": "#8a8983",
296
297
  "tree-guide": "#d9d9d9",
@@ -318,6 +319,7 @@
318
319
  "selected": "#8c8cff",
319
320
  "selected-invalid-bg": "rgba(255,138,128,0.08)",
320
321
  "editing-bg": "#223a7e",
322
+ "editing-danger-ink": "#ff8a80",
321
323
  "nodata-bg": "rgba(232,238,252,0.04)",
322
324
  "chevron": "#6f81ad",
323
325
  "tree-guide": "#22356a",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finstack-com-public/design",
3
- "version": "0.10.1",
3
+ "version": "0.10.2",
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",