@finstack-com-public/design 0.10.0 → 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/CHANGELOG.md +52 -0
- package/dist/css/breadcrumbs.css +7 -0
- package/dist/css/button.css +14 -0
- package/dist/css/disclosure.css +7 -0
- package/dist/css/dropzone.css +9 -0
- package/dist/css/field.css +18 -0
- package/dist/css/grid.css +21 -0
- package/dist/css/icon-button.css +10 -0
- package/dist/css/icon.md +7 -2
- package/dist/css/input.css +24 -0
- package/dist/css/menu.css +20 -0
- package/dist/css/node.css +6 -0
- package/dist/css/node.md +1 -1
- package/dist/css/progress.css +17 -0
- package/dist/css/reset.css +3 -1
- package/dist/css/reset.md +1 -0
- package/dist/css/table.css +8 -0
- package/dist/css/tabs.css +9 -0
- package/dist/css/tokens.css +6 -0
- package/dist/css/tree.css +8 -0
- package/dist/css/xyflow.css +2 -1
- package/dist/css/xyflow.md +2 -2
- package/dist/css-text/breadcrumbs.js +1 -1
- package/dist/css-text/button.js +1 -1
- package/dist/css-text/disclosure.js +1 -1
- package/dist/css-text/dropzone.js +1 -1
- package/dist/css-text/field.js +1 -1
- package/dist/css-text/grid.js +1 -1
- package/dist/css-text/icon-button.js +1 -1
- package/dist/css-text/input.js +1 -1
- package/dist/css-text/kit.js +184 -0
- package/dist/css-text/menu.js +1 -1
- package/dist/css-text/node.js +1 -1
- package/dist/css-text/progress.js +1 -1
- package/dist/css-text/reset.js +1 -1
- package/dist/css-text/table.js +1 -1
- package/dist/css-text/tabs.js +1 -1
- package/dist/css-text/tokens.js +1 -1
- package/dist/css-text/tree.js +1 -1
- package/dist/css-text/xyflow.js +1 -1
- package/dist/grid.json +1 -0
- package/dist/icons/masks.css +167 -1
- package/dist/kit.css +184 -0
- package/dist/tokens/contrast-pairs.js +2 -3
- package/dist/tokens/grid.d.ts +1 -0
- package/dist/tokens/grid.js +1 -0
- package/dist/tokens/index.d.ts +2 -2
- package/dist/tokens.json +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,58 @@
|
|
|
3
3
|
Written by hand for each release. Token names, class names, file paths and exports are the
|
|
4
4
|
public API. While the kit is 0.x, a minor version may break them, and its entry says so.
|
|
5
5
|
|
|
6
|
+
## 0.10.2 — 2026-11-14
|
|
7
|
+
|
|
8
|
+
Nothing breaks. Upgrading from 0.10.1 needs no change. The normal look is unchanged; only the light grid's editing
|
|
9
|
+
cell (red ink) and forced colours look different.
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- **`--fs-grid-editing-danger-ink` (T108):** a grid token for red ink (negative, error, invalid) inside
|
|
14
|
+
`.fs-cell--editing`: `#b71c1c` in the light theme (4.92:1 on `--fs-grid-editing-bg`; `#c62828` was 4.21:1), and
|
|
15
|
+
`#ff8a80` in the dark theme, the red the editing cell already had. Every other red ink is unchanged.
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- **`icons/masks.css` sets the layer order (T106):** it now starts with the kit's `@layer` order statement, so it can
|
|
20
|
+
load before or after `kit.css`. Before, loaded first it made `fs.utilities` the weakest layer, and component rules
|
|
21
|
+
beat the mask classes' rules.
|
|
22
|
+
- **Mask icons in components keep the component's size (T106):** the mask classes' base look, with its `1em` size,
|
|
23
|
+
moved from `fs.utilities` to `fs.base`. A mask icon in a button or a notice (`.fs-button__icon`,
|
|
24
|
+
`.fs-notice__icon`) is 16 px again, as those rules say, whichever sheet loads first; with `kit.css` loaded first the
|
|
25
|
+
`1em` size had beaten them. `.fs-i--14` … `--24` stay in `fs.utilities`.
|
|
26
|
+
- **Mask-drawn glyphs show in forced colours (T105):** the disclosure chevron (and the grid, table and tree rows that
|
|
27
|
+
reuse it), the breadcrumb separator, the select arrow and the menu check mark are drawn in `CanvasText` (`GrayText`
|
|
28
|
+
when disabled); the `.fs-i-*` mask icons take their parent's forced colour (`forced-color-adjust:
|
|
29
|
+
preserve-parent-color`). Before, they painted in the background colour and vanished.
|
|
30
|
+
- **State cues show in forced colours (T107):** 16 cues that forced colours erased are drawn with system colours: a
|
|
31
|
+
pressed button and icon button, a selected table row and tree item (`Highlight`/`HighlightText`); the current, done
|
|
32
|
+
and failed progress steps; an invalid input and field box (an inner `CanvasText` outline, replaced by the focus ring
|
|
33
|
+
while focused); an invalid or error grid cell (a wavy underline); a disabled input and field box and an
|
|
34
|
+
`aria-disabled` button, icon button and tab (`GrayText`); and a slot under a drag (a `Highlight` outline). Focus
|
|
35
|
+
rings were already kept (the outline survives; only the halo goes). A disabled menu item and its icon are drawn in
|
|
36
|
+
`GrayText` too (T109; Firefox had drawn it like an enabled item).
|
|
37
|
+
|
|
38
|
+
## 0.10.1 — 2026-11-12
|
|
39
|
+
|
|
40
|
+
Nothing breaks. Upgrading from 0.10.0 needs no change.
|
|
41
|
+
|
|
42
|
+
### Fixed
|
|
43
|
+
|
|
44
|
+
- **Opt-in sheets set the layer order (T102):** `css/xyflow.css` and `css/reset.css` now start with the kit's `@layer`
|
|
45
|
+
order statement, so they can load before or after `kit.css`. Before, `xyflow.css` loaded first set `fs.components`
|
|
46
|
+
before `fs.reset` in the order, the reset's `svg { max-width: 100% }` won, and every xyflow edge vanished.
|
|
47
|
+
|
|
48
|
+
### Changed
|
|
49
|
+
|
|
50
|
+
- **The node section's chevron takes the head's ink (T103):** `.fs-node__section-head`'s chevron is drawn in
|
|
51
|
+
`--fs-ink-2`, the colour of its caps label, instead of `--fs-grid-chevron`, and in `CanvasText` in forced colours.
|
|
52
|
+
Grid, table, tree and the plain disclosure keep `--fs-grid-chevron`.
|
|
53
|
+
|
|
54
|
+
### Docs
|
|
55
|
+
|
|
56
|
+
- **`xyflow.md` (T101):** the attribution note no longer names a product that hides the link; both options stay.
|
|
57
|
+
|
|
6
58
|
## 0.10.0 — 2026-11-12
|
|
7
59
|
|
|
8
60
|
Nothing breaks. Upgrading from 0.9.1 needs no change.
|
package/dist/css/breadcrumbs.css
CHANGED
|
@@ -66,4 +66,11 @@
|
|
|
66
66
|
outline-offset: var(--fs-ring-halo-width);
|
|
67
67
|
box-shadow: 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo);
|
|
68
68
|
}
|
|
69
|
+
|
|
70
|
+
/* Forced colours erase a fill, so the separator's mask is drawn in CanvasText (T105). */
|
|
71
|
+
@media (forced-colors: active) {
|
|
72
|
+
.fs-breadcrumbs__item + .fs-breadcrumbs__item::before {
|
|
73
|
+
background-color: CanvasText;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
69
76
|
}
|
package/dist/css/button.css
CHANGED
|
@@ -158,4 +158,18 @@
|
|
|
158
158
|
transform: rotate(360deg);
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
+
|
|
162
|
+
/* Forced colours erase the pressed fill and the accent edge, so pressed takes the system's
|
|
163
|
+
selection colours; aria-disabled gets GrayText, as a native :disabled button does (T107). */
|
|
164
|
+
@media (forced-colors: active) {
|
|
165
|
+
.fs-button[aria-pressed='true'] {
|
|
166
|
+
--fs-button-ink: HighlightText;
|
|
167
|
+
background-color: Highlight;
|
|
168
|
+
border-color: Highlight;
|
|
169
|
+
}
|
|
170
|
+
.fs-button[aria-disabled='true'] {
|
|
171
|
+
--fs-button-ink: GrayText;
|
|
172
|
+
border-color: GrayText;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
161
175
|
}
|
package/dist/css/disclosure.css
CHANGED
|
@@ -90,4 +90,11 @@
|
|
|
90
90
|
background: var(--fs-gap-wash);
|
|
91
91
|
border-color: var(--fs-gap-edge);
|
|
92
92
|
}
|
|
93
|
+
|
|
94
|
+
/* Forced colours erase a fill, so the chevron's mask is drawn in CanvasText (T105, as node.css does). */
|
|
95
|
+
@media (forced-colors: active) {
|
|
96
|
+
.fs-disclosure__summary::before {
|
|
97
|
+
background-color: CanvasText;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
93
100
|
}
|
package/dist/css/dropzone.css
CHANGED
|
@@ -117,4 +117,13 @@
|
|
|
117
117
|
background: var(--fs-accent-wash);
|
|
118
118
|
border-color: var(--fs-accent);
|
|
119
119
|
}
|
|
120
|
+
|
|
121
|
+
/* Forced colours erase the wash and the accent edge: the slot being dropped on gets a Highlight
|
|
122
|
+
ring just outside its edge, on Canvas (T107). */
|
|
123
|
+
@media (forced-colors: active) {
|
|
124
|
+
.fs-slot.fs-is-dragover {
|
|
125
|
+
outline: 2px solid Highlight;
|
|
126
|
+
outline-offset: 2px;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
120
129
|
}
|
package/dist/css/field.css
CHANGED
|
@@ -181,4 +181,22 @@
|
|
|
181
181
|
outline-offset: calc(-1 * var(--fs-ring-width));
|
|
182
182
|
box-shadow: inset 0 0 0 calc(var(--fs-ring-width) + var(--fs-ring-halo-width)) var(--fs-ring-halo);
|
|
183
183
|
}
|
|
184
|
+
|
|
185
|
+
/* Forced colours turn the invalid box's red edge into the plain one, so a second, inner line
|
|
186
|
+
marks it (the focus ring takes the outline while focused); a disabled box greys its edge and
|
|
187
|
+
text (T107). */
|
|
188
|
+
@media (forced-colors: active) {
|
|
189
|
+
.fs-field__box:has([aria-invalid='true']):not(:has(:focus-visible)) {
|
|
190
|
+
outline: var(--fs-line-width) solid CanvasText;
|
|
191
|
+
outline-offset: calc(-2 * var(--fs-line-width) - 1px);
|
|
192
|
+
}
|
|
193
|
+
.fs-field__box:has(:disabled) {
|
|
194
|
+
color: GrayText;
|
|
195
|
+
border-color: GrayText;
|
|
196
|
+
}
|
|
197
|
+
.fs-field__box:has(:disabled) :is(.fs-input, .fs-select__control, .fs-field__control) {
|
|
198
|
+
color: GrayText;
|
|
199
|
+
-webkit-text-fill-color: GrayText;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
184
202
|
}
|
package/dist/css/grid.css
CHANGED
|
@@ -171,6 +171,12 @@
|
|
|
171
171
|
.fs-grid .fs-cell--editing {
|
|
172
172
|
background-color: var(--fs-grid-editing-bg);
|
|
173
173
|
}
|
|
174
|
+
/* Red ink on the editing fill: a darker red in light (T108), the same red as before in dark. */
|
|
175
|
+
.fs-grid .fs-cell--editing.fs-cell--negative,
|
|
176
|
+
.fs-grid .fs-cell--editing.fs-cell--error,
|
|
177
|
+
.fs-grid .fs-cell--editing.fs-cell--invalid {
|
|
178
|
+
color: var(--fs-grid-editing-danger-ink);
|
|
179
|
+
}
|
|
174
180
|
.fs-grid .fs-cell--editing .fs-grid__cover {
|
|
175
181
|
visibility: hidden;
|
|
176
182
|
}
|
|
@@ -196,4 +202,19 @@
|
|
|
196
202
|
border-top: 6px solid var(--fs-accent);
|
|
197
203
|
border-left: 6px solid transparent;
|
|
198
204
|
}
|
|
205
|
+
|
|
206
|
+
/* Forced colours erase the danger ink and the error fill: a wavy underline marks the value (on the
|
|
207
|
+
cover, which is positioned, so the cell's own underline doesn't reach it), as .fs-diag--error
|
|
208
|
+
does, and an error cell also gets a dashed inner edge (T107). */
|
|
209
|
+
@media (forced-colors: active) {
|
|
210
|
+
.fs-grid :is(.fs-cell--invalid, .fs-cell--error) > .fs-grid__cover {
|
|
211
|
+
text-decoration: underline wavy CanvasText;
|
|
212
|
+
text-decoration-skip-ink: none;
|
|
213
|
+
text-underline-offset: 3px;
|
|
214
|
+
}
|
|
215
|
+
.fs-grid .fs-cell--error:not(.fs-is-selected) {
|
|
216
|
+
outline: var(--fs-line-width) dashed CanvasText;
|
|
217
|
+
outline-offset: -3px;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
199
220
|
}
|
package/dist/css/icon-button.css
CHANGED
|
@@ -65,4 +65,14 @@
|
|
|
65
65
|
border-color: transparent;
|
|
66
66
|
cursor: not-allowed;
|
|
67
67
|
}
|
|
68
|
+
|
|
69
|
+
/* Forced colours erase the pressed fill and edge, so pressed takes the system's selection
|
|
70
|
+
colours (T107). */
|
|
71
|
+
@media (forced-colors: active) {
|
|
72
|
+
.fs-icon-button[aria-pressed='true'] {
|
|
73
|
+
color: HighlightText;
|
|
74
|
+
background-color: Highlight;
|
|
75
|
+
border-color: Highlight;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
68
78
|
}
|
package/dist/css/icon.md
CHANGED
|
@@ -11,8 +11,13 @@ button.prepend(createIcon('download', { size: 16, className: 'fs-button__icon' }
|
|
|
11
11
|
its own (`role="img"`).
|
|
12
12
|
- `.fs-icon` draws one 1.25 px stroke at every size; override `--fs-icon-stroke` to thicken.
|
|
13
13
|
- Colour is `currentColor`. Authored layouts that can't hold `<svg>` use the mask classes in
|
|
14
|
-
`icons/masks.css` (`<i class="fs-i-folder"></i>`).
|
|
14
|
+
`icons/masks.css` (`<i class="fs-i-folder"></i>`). It starts with the kit's layer order, so it can load
|
|
15
|
+
before or after `kit.css` (T106).
|
|
16
|
+
- In forced colours a mask icon is coloured as an `<svg>` icon is (`preserve-parent-color`), or in
|
|
17
|
+
`CanvasText` where the browser lacks it; a mask's fill would otherwise be erased (T105).
|
|
15
18
|
- A mask icon is `1em` square, so `font-size` sizes it. Set `--fs-i-size` (on the icon or any
|
|
16
19
|
ancestor) to size it apart from the text; `.fs-i--14` … `--24` fix it in px. `--fs-icon-size`
|
|
17
20
|
is the density's icon-in-a-control size (`.fs-button`, `.fs-tabs__tab`, …) and doesn't reach
|
|
18
|
-
the masks.
|
|
21
|
+
the masks. The 1em size is in `fs.base`, so a component's own icon size (`.fs-button__icon`,
|
|
22
|
+
`.fs-notice__icon`, 16 px) beats it in any load order; `.fs-i--14` … `--24` are in `fs.utilities`
|
|
23
|
+
and beat the component (T106).
|
package/dist/css/input.css
CHANGED
|
@@ -118,4 +118,28 @@
|
|
|
118
118
|
.fs-select:has(:disabled) {
|
|
119
119
|
color: var(--fs-ink-disabled);
|
|
120
120
|
}
|
|
121
|
+
|
|
122
|
+
/* Forced colours erase a fill, so the select's arrow is drawn in a system colour (T105). */
|
|
123
|
+
@media (forced-colors: active) {
|
|
124
|
+
.fs-select::after {
|
|
125
|
+
background-color: CanvasText;
|
|
126
|
+
}
|
|
127
|
+
.fs-select:has(:disabled)::after {
|
|
128
|
+
background-color: GrayText;
|
|
129
|
+
}
|
|
130
|
+
/* An invalid control's red edge becomes the plain one: a second, inner line marks it (T107). */
|
|
131
|
+
.fs-input[aria-invalid='true'],
|
|
132
|
+
.fs-textarea[aria-invalid='true'],
|
|
133
|
+
.fs-select__control[aria-invalid='true'] {
|
|
134
|
+
outline: var(--fs-line-width) solid CanvasText;
|
|
135
|
+
outline-offset: calc(-2 * var(--fs-line-width) - 1px);
|
|
136
|
+
}
|
|
137
|
+
.fs-input:disabled,
|
|
138
|
+
.fs-textarea:disabled,
|
|
139
|
+
.fs-select__control:disabled {
|
|
140
|
+
color: GrayText;
|
|
141
|
+
-webkit-text-fill-color: GrayText;
|
|
142
|
+
border-color: GrayText;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
121
145
|
}
|
package/dist/css/menu.css
CHANGED
|
@@ -157,4 +157,24 @@
|
|
|
157
157
|
.fs-menu__item[aria-disabled='true'] > .fs-icon {
|
|
158
158
|
color: var(--fs-ink-disabled);
|
|
159
159
|
}
|
|
160
|
+
|
|
161
|
+
/* Forced colours erase a fill, so the check mark is drawn in a system colour (T105). */
|
|
162
|
+
@media (forced-colors: active) {
|
|
163
|
+
.fs-menu__item:is([role='menuitemcheckbox'], [role='menuitemradio'])[aria-checked='true']::before {
|
|
164
|
+
background-color: CanvasText;
|
|
165
|
+
}
|
|
166
|
+
.fs-menu__item:is([role='menuitemcheckbox'], [role='menuitemradio'])[aria-checked='true']:is(
|
|
167
|
+
[aria-disabled='true'],
|
|
168
|
+
:disabled
|
|
169
|
+
)::before {
|
|
170
|
+
background-color: GrayText;
|
|
171
|
+
}
|
|
172
|
+
/* A disabled item's ink is forced to the plain text colour, so it is greyed with GrayText. Firefox
|
|
173
|
+
showed no difference without this; Chromium did, for a reason not traced (T109). */
|
|
174
|
+
.fs-menu__item[aria-disabled='true'],
|
|
175
|
+
.fs-menu__item:disabled,
|
|
176
|
+
.fs-menu__item[aria-disabled='true'] > .fs-icon {
|
|
177
|
+
color: GrayText;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
160
180
|
}
|
package/dist/css/node.css
CHANGED
|
@@ -150,9 +150,11 @@
|
|
|
150
150
|
text-transform: uppercase;
|
|
151
151
|
color: var(--fs-ink-2);
|
|
152
152
|
}
|
|
153
|
+
/* The chevron takes the head's ink, not --fs-grid-chevron, so it reads at the weight of its caps label (T103). */
|
|
153
154
|
.fs-node__section-head::before {
|
|
154
155
|
width: 12px;
|
|
155
156
|
height: 12px;
|
|
157
|
+
background-color: var(--fs-ink-2);
|
|
156
158
|
}
|
|
157
159
|
/* The slot for T92's mark counts, pushed right. */
|
|
158
160
|
.fs-node__counts {
|
|
@@ -238,5 +240,9 @@
|
|
|
238
240
|
background-image: none;
|
|
239
241
|
border-bottom: var(--fs-line-width) dashed CanvasText;
|
|
240
242
|
}
|
|
243
|
+
/* Forced colours erase a fill, so the section chevron's mask is drawn in CanvasText (T103). */
|
|
244
|
+
.fs-node__section-head::before {
|
|
245
|
+
background-color: CanvasText;
|
|
246
|
+
}
|
|
241
247
|
}
|
|
242
248
|
}
|
package/dist/css/node.md
CHANGED
|
@@ -49,7 +49,7 @@ and the kit does not style xyflow's wrapper. A product that leaves nodes selecta
|
|
|
49
49
|
| `__body` | Any children. Omitted by `DiagramNode` when it has none. |
|
|
50
50
|
| `__row` | A column row, 24 px. Every row has hover; a `button` or an element with `tabindex` also gets the pointer cursor and the inset focus ring. |
|
|
51
51
|
| `__row-name`, `__tag`, `__gap`, `__more` | The row's name (flex, ellipsis); a muted small tag or icon (hidden, key, calculated); the gap word in the gap ink; the "+ 3 more columns" line. |
|
|
52
|
-
| `__section`, `__section-head`, `__counts` | A folding section on `.fs-disclosure` (a `details`; chevron, open state and ring are the disclosure's): caps text (12 px, `--fs-tracking-caps`); `__counts` is the right-hand slot for `.fs-mark-count`s (T92). |
|
|
52
|
+
| `__section`, `__section-head`, `__counts` | A folding section on `.fs-disclosure` (a `details`; chevron, open state and ring are the disclosure's, the chevron in the head's `--fs-ink-2`, `CanvasText` in forced colours): caps text (12 px, `--fs-tracking-caps`); `__counts` is the right-hand slot for `.fs-mark-count`s (T92). |
|
|
53
53
|
|
|
54
54
|
## States
|
|
55
55
|
|
package/dist/css/progress.css
CHANGED
|
@@ -57,4 +57,21 @@
|
|
|
57
57
|
transform: rotate(360deg);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
+
|
|
61
|
+
/* Forced colours draw a transparent border and erase fills and shadows, so every step would be a
|
|
62
|
+
plain ring: the current step's gap is painted in Canvas, done is a filled dot, failed a thick
|
|
63
|
+
ring (T107). */
|
|
64
|
+
@media (forced-colors: active) {
|
|
65
|
+
.fs-progress__step[aria-current='step']::before {
|
|
66
|
+
border-color: CanvasText;
|
|
67
|
+
border-top-color: Canvas;
|
|
68
|
+
}
|
|
69
|
+
.fs-progress__step.fs-is-done::before {
|
|
70
|
+
background-color: CanvasText;
|
|
71
|
+
border-color: CanvasText;
|
|
72
|
+
}
|
|
73
|
+
.fs-progress__step.fs-is-failed::before {
|
|
74
|
+
border: 4px solid CanvasText;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
60
77
|
}
|
package/dist/css/reset.css
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/* The opt-in reset (spec 02 G; CE H4). Usage: reset.md. Never part of kit.css: load it yourself,
|
|
2
|
-
and only in an app the kit owns, never inside an embed on someone else's page.
|
|
2
|
+
and only in an app the kit owns, never inside an embed on someone else's page. It starts with the
|
|
3
|
+
kit's layer order, so it can load before or after kit.css (T102). */
|
|
4
|
+
@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities;
|
|
3
5
|
@layer fs.reset {
|
|
4
6
|
*,
|
|
5
7
|
*::before,
|
package/dist/css/reset.md
CHANGED
|
@@ -7,5 +7,6 @@ Spec 02 G (CE H4). CSS: `css/reset.css`, in `fs.reset`. **Not** part of `kit.css
|
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
- Box-sizing, no body margin, form controls inherit their font, media fits its box.
|
|
10
|
+
- It starts with the kit's layer order, so it can load before or after `kit.css`.
|
|
10
11
|
- Load it only in an app the kit owns. Never put it in an embed on someone else's page: it styles
|
|
11
12
|
bare elements.
|
package/dist/css/table.css
CHANGED
|
@@ -190,4 +190,12 @@
|
|
|
190
190
|
break-inside: avoid;
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
+
|
|
194
|
+
/* Forced colours erase the selected row's fill: the system's selection colours instead (T107). */
|
|
195
|
+
@media (forced-colors: active) {
|
|
196
|
+
.fs-table tbody tr[aria-selected='true'] > * {
|
|
197
|
+
color: HighlightText;
|
|
198
|
+
background-color: Highlight;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
193
201
|
}
|
package/dist/css/tabs.css
CHANGED
|
@@ -178,4 +178,13 @@
|
|
|
178
178
|
background-color: transparent;
|
|
179
179
|
cursor: not-allowed;
|
|
180
180
|
}
|
|
181
|
+
|
|
182
|
+
/* After the disabled rule above, which it overrides: forced colours turn the disabled ink into
|
|
183
|
+
the plain text colour, so a disabled tab is greyed with GrayText (T107). */
|
|
184
|
+
@media (forced-colors: active) {
|
|
185
|
+
.fs-tabs__tab:disabled,
|
|
186
|
+
.fs-tabs__tab[aria-disabled='true'] {
|
|
187
|
+
color: GrayText;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
181
190
|
}
|
package/dist/css/tokens.css
CHANGED
|
@@ -169,6 +169,7 @@
|
|
|
169
169
|
--fs-grid-selected: #3d3db4;
|
|
170
170
|
--fs-grid-selected-invalid-bg: rgba(252,0,0,0.10);
|
|
171
171
|
--fs-grid-editing-bg: rgb(221,221,244);
|
|
172
|
+
--fs-grid-editing-danger-ink: #b71c1c;
|
|
172
173
|
--fs-grid-nodata-bg: rgba(0,0,0,0.03);
|
|
173
174
|
--fs-grid-chevron: #8a8983;
|
|
174
175
|
--fs-grid-tree-guide: #d9d9d9;
|
|
@@ -430,6 +431,7 @@
|
|
|
430
431
|
--fs-grid-selected: #8c8cff;
|
|
431
432
|
--fs-grid-selected-invalid-bg: rgba(255,138,128,0.08);
|
|
432
433
|
--fs-grid-editing-bg: #223a7e;
|
|
434
|
+
--fs-grid-editing-danger-ink: #ff8a80;
|
|
433
435
|
--fs-grid-nodata-bg: rgba(232,238,252,0.04);
|
|
434
436
|
--fs-grid-chevron: #6f81ad;
|
|
435
437
|
--fs-grid-tree-guide: #22356a;
|
|
@@ -568,6 +570,7 @@
|
|
|
568
570
|
--fs-grid-selected: #8c8cff;
|
|
569
571
|
--fs-grid-selected-invalid-bg: rgba(255,138,128,0.08);
|
|
570
572
|
--fs-grid-editing-bg: #223a7e;
|
|
573
|
+
--fs-grid-editing-danger-ink: #ff8a80;
|
|
571
574
|
--fs-grid-nodata-bg: rgba(232,238,252,0.04);
|
|
572
575
|
--fs-grid-chevron: #6f81ad;
|
|
573
576
|
--fs-grid-tree-guide: #22356a;
|
|
@@ -706,6 +709,7 @@
|
|
|
706
709
|
--fs-grid-selected: #3d3db4;
|
|
707
710
|
--fs-grid-selected-invalid-bg: rgba(252,0,0,0.10);
|
|
708
711
|
--fs-grid-editing-bg: rgb(221,221,244);
|
|
712
|
+
--fs-grid-editing-danger-ink: #b71c1c;
|
|
709
713
|
--fs-grid-nodata-bg: rgba(0,0,0,0.03);
|
|
710
714
|
--fs-grid-chevron: #8a8983;
|
|
711
715
|
--fs-grid-tree-guide: #d9d9d9;
|
|
@@ -887,6 +891,7 @@
|
|
|
887
891
|
--fs-grid-selected: #8c8cff;
|
|
888
892
|
--fs-grid-selected-invalid-bg: rgba(255,138,128,0.08);
|
|
889
893
|
--fs-grid-editing-bg: #223a7e;
|
|
894
|
+
--fs-grid-editing-danger-ink: #ff8a80;
|
|
890
895
|
--fs-grid-nodata-bg: rgba(232,238,252,0.04);
|
|
891
896
|
--fs-grid-chevron: #6f81ad;
|
|
892
897
|
--fs-grid-tree-guide: #22356a;
|
|
@@ -1079,6 +1084,7 @@
|
|
|
1079
1084
|
--fs-grid-selected: #3d3db4;
|
|
1080
1085
|
--fs-grid-selected-invalid-bg: rgba(252,0,0,0.10);
|
|
1081
1086
|
--fs-grid-editing-bg: rgb(221,221,244);
|
|
1087
|
+
--fs-grid-editing-danger-ink: #b71c1c;
|
|
1082
1088
|
--fs-grid-nodata-bg: rgba(0,0,0,0.03);
|
|
1083
1089
|
--fs-grid-chevron: #8a8983;
|
|
1084
1090
|
--fs-grid-tree-guide: #d9d9d9;
|
package/dist/css/tree.css
CHANGED
|
@@ -138,4 +138,12 @@
|
|
|
138
138
|
.fs-tree__status.fs-tone-danger {
|
|
139
139
|
color: var(--fs-danger-ink);
|
|
140
140
|
}
|
|
141
|
+
|
|
142
|
+
/* Forced colours erase the selected row's fill: the system's selection colours instead (T107). */
|
|
143
|
+
@media (forced-colors: active) {
|
|
144
|
+
.fs-tree__item[aria-selected='true'] > .fs-tree__row {
|
|
145
|
+
color: HighlightText;
|
|
146
|
+
background-color: Highlight;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
141
149
|
}
|
package/dist/css/xyflow.css
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
/* A scoped, CSS-only theme for xyflow (spec 02 J, T95). Usage: xyflow.md. Opt-in like reset.css: never part of kit.css, load it yourself
|
|
1
|
+
/* A scoped, CSS-only theme for xyflow (spec 02 J, T95). Usage: xyflow.md. Opt-in like reset.css: never part of kit.css, load it yourself. It starts with the kit's layer order, so the load order doesn't matter, against xyflow's stylesheet or the kit's (T102). The kit has no xyflow dependency. */
|
|
2
|
+
@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities;
|
|
2
3
|
@layer fs.components {
|
|
3
4
|
/* xyflow reads its own --xy-* variables before its -default ones, so setting them here themes every
|
|
4
5
|
part that reads them. Set on the plane, they reach a `.react-flow` inside it or on the same element. */
|
package/dist/css/xyflow.md
CHANGED
|
@@ -4,7 +4,7 @@ Spec 02 J (T95, Phase G). CSS: `css/xyflow.css`. Gallery: `diagram.html` (live,
|
|
|
4
4
|
**A CSS-only theme for [xyflow](https://xyflow.com).** The kit has no xyflow dependency (the rule of `codemirror.md`):
|
|
5
5
|
`@xyflow/react` is a devDependency of the gallery and its tests, and the product keeps its own copy.
|
|
6
6
|
|
|
7
|
-
**Opt-in, like `reset.css`.** `kit.css` does not contain it. Import it yourself
|
|
7
|
+
**Opt-in, like `reset.css`.** `kit.css` does not contain it. Import it yourself, in any order. It starts with the kit's layer order, so it may come before `kit.css` (T102); against xyflow's stylesheet, see "Layers decide what works" below.
|
|
8
8
|
|
|
9
9
|
```ts
|
|
10
10
|
import '@xyflow/react/dist/style.css';
|
|
@@ -62,7 +62,7 @@ xyflow reads `--xy-*` before its own `-default` values, so these set the whole l
|
|
|
62
62
|
- **The attribution link keeps xyflow's `#999`**, which fails AA on the surface (only its background is set here). A product
|
|
63
63
|
that shows the attribution restyles the link in its own unlayered CSS (the gallery's `gallery.css` gives it
|
|
64
64
|
`--fs-ink-link`, a text pair on the surface this sheet puts behind it); otherwise it hides it
|
|
65
|
-
(`proOptions={{ hideAttribution: true }}
|
|
65
|
+
(`proOptions={{ hideAttribution: true }}`).
|
|
66
66
|
- **More than one diagram on a page:** give each `<ReactFlow>` its own `id`. The default is the same for all, and the ids of
|
|
67
67
|
xyflow's aria descriptions and live region would repeat. xyflow also puts that `id` on its root element, so it must be unique
|
|
68
68
|
on the page and must not reuse another element's id (the gallery uses `<host id>-flow`).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Breadcrumbs (spec 02 C). Usage: breadcrumbs.md. */\n@layer fs.components {\n .fs-breadcrumbs__list {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--fs-space-1);\n margin: 0;\n padding: 0;\n list-style: none;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n }\n .fs-breadcrumbs__item {\n display: inline-flex;\n align-items: center;\n gap: var(--fs-space-1);\n min-width: 0;\n color: var(--fs-ink-muted);\n }\n /* The separator is decoration: the list already says where each item sits. */\n .fs-breadcrumbs__item + .fs-breadcrumbs__item::before {\n content: '';\n flex: none;\n width: 12px;\n height: 12px;\n background-color: currentColor;\n mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E\")\n center / contain no-repeat;\n }\n .fs-breadcrumbs__link,\n .fs-breadcrumbs__gap {\n margin: 0;\n padding: 0;\n font: inherit;\n color: var(--fs-ink-2);\n text-decoration: none;\n background: transparent;\n border: 0;\n border-radius: var(--fs-radius-sm);\n cursor: pointer;\n }\n .fs-breadcrumbs__gap {\n color: var(--fs-ink-muted);\n }\n @media (hover: hover) {\n .fs-breadcrumbs__link:hover,\n .fs-breadcrumbs__gap:hover {\n color: var(--fs-ink);\n text-decoration: underline;\n text-underline-offset: 2px;\n }\n }\n .fs-breadcrumbs__current,\n .fs-breadcrumbs__link[aria-current='page'] {\n color: var(--fs-ink);\n font-weight: var(--fs-weight-medium);\n text-decoration: none;\n cursor: default;\n }\n\n /* The ring recipe (D15). */\n .fs-breadcrumbs__link:focus-visible,\n .fs-breadcrumbs__gap:focus-visible {\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: var(--fs-ring-halo-width);\n box-shadow: 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo);\n }\n}\n";
|
|
1
|
+
export default "/* Breadcrumbs (spec 02 C). Usage: breadcrumbs.md. */\n@layer fs.components {\n .fs-breadcrumbs__list {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--fs-space-1);\n margin: 0;\n padding: 0;\n list-style: none;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n }\n .fs-breadcrumbs__item {\n display: inline-flex;\n align-items: center;\n gap: var(--fs-space-1);\n min-width: 0;\n color: var(--fs-ink-muted);\n }\n /* The separator is decoration: the list already says where each item sits. */\n .fs-breadcrumbs__item + .fs-breadcrumbs__item::before {\n content: '';\n flex: none;\n width: 12px;\n height: 12px;\n background-color: currentColor;\n mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E\")\n center / contain no-repeat;\n }\n .fs-breadcrumbs__link,\n .fs-breadcrumbs__gap {\n margin: 0;\n padding: 0;\n font: inherit;\n color: var(--fs-ink-2);\n text-decoration: none;\n background: transparent;\n border: 0;\n border-radius: var(--fs-radius-sm);\n cursor: pointer;\n }\n .fs-breadcrumbs__gap {\n color: var(--fs-ink-muted);\n }\n @media (hover: hover) {\n .fs-breadcrumbs__link:hover,\n .fs-breadcrumbs__gap:hover {\n color: var(--fs-ink);\n text-decoration: underline;\n text-underline-offset: 2px;\n }\n }\n .fs-breadcrumbs__current,\n .fs-breadcrumbs__link[aria-current='page'] {\n color: var(--fs-ink);\n font-weight: var(--fs-weight-medium);\n text-decoration: none;\n cursor: default;\n }\n\n /* The ring recipe (D15). */\n .fs-breadcrumbs__link:focus-visible,\n .fs-breadcrumbs__gap:focus-visible {\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: var(--fs-ring-halo-width);\n box-shadow: 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo);\n }\n\n /* Forced colours erase a fill, so the separator's mask is drawn in CanvasText (T105). */\n @media (forced-colors: active) {\n .fs-breadcrumbs__item + .fs-breadcrumbs__item::before {\n background-color: CanvasText;\n }\n }\n}\n";
|
package/dist/css-text/button.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Button (spec 02 A). Usage: button.md. */\n@layer fs.components {\n .fs-button {\n --fs-button-ink: var(--fs-ink);\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: max(var(--fs-space-1), calc(var(--fs-gap) - 2px));\n box-sizing: border-box;\n height: var(--fs-control-h);\n min-width: var(--fs-control-h);\n margin: 0;\n padding: 0 calc(var(--fs-pad-x) * 1.5);\n font: inherit;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n font-weight: var(--fs-weight-medium);\n color: var(--fs-button-ink);\n white-space: nowrap;\n text-decoration: none;\n background: var(--fs-bg-surface);\n border: var(--fs-line-width) solid var(--fs-line-button);\n border-radius: var(--fs-radius-md);\n cursor: pointer;\n transition:\n background-color var(--fs-dur-fast) var(--fs-ease),\n border-color var(--fs-dur-fast) var(--fs-ease);\n }\n\n .fs-button__icon,\n .fs-button > .fs-icon {\n flex: none;\n width: var(--fs-icon-size);\n height: var(--fs-icon-size);\n }\n\n @media (hover: hover) {\n .fs-button:hover {\n border-color: var(--fs-ink-2);\n }\n .fs-button--ghost:hover {\n background-color: var(--fs-bg-hover);\n }\n .fs-button--danger:hover {\n background-color: var(--fs-danger-wash);\n }\n .fs-button--primary:hover {\n background-color: var(--fs-primary-bg-hover);\n border-color: var(--fs-primary-bg-hover);\n }\n }\n\n .fs-button:active {\n background-color: var(--fs-bg-active);\n }\n\n /* The ring recipe (D15). */\n .fs-button:focus-visible {\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: var(--fs-ring-halo-width);\n box-shadow: 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo);\n }\n\n .fs-button--primary {\n --fs-button-ink: var(--fs-primary-ink);\n background-color: var(--fs-primary-bg);\n border-color: var(--fs-primary-bg);\n }\n .fs-button--primary:active {\n background-color: var(--fs-primary-bg-hover);\n }\n\n .fs-button--ghost,\n .fs-button--danger {\n background-color: transparent;\n border-color: transparent;\n }\n .fs-button--danger {\n --fs-button-ink: var(--fs-danger-ink);\n }\n\n .fs-button--sm {\n height: var(--fs-size-touch);\n min-width: var(--fs-size-touch);\n padding: 0 var(--fs-space-2);\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n }\n\n .fs-button--icon-only {\n padding: 0;\n width: var(--fs-control-h);\n }\n .fs-button--sm.fs-button--icon-only {\n width: var(--fs-size-touch);\n }\n\n /* Toggle: a button with aria-pressed. */\n .fs-button[aria-pressed='true'] {\n --fs-button-ink: var(--fs-accent);\n background-color: var(--fs-bg-selected);\n border-color: var(--fs-accent);\n }\n\n /* Busy: a spinner in place of the leading icon; with no icon, over the hidden label. */\n .fs-button[aria-busy='true'] {\n cursor: progress;\n }\n .fs-button[aria-busy='true']::before {\n content: '';\n flex: none;\n box-sizing: border-box;\n width: var(--fs-icon-size);\n height: var(--fs-icon-size);\n border: 2px solid var(--fs-button-ink);\n border-top-color: transparent;\n border-radius: 50%;\n animation: fs-spin 0.7s linear infinite;\n }\n .fs-button[aria-busy='true'] > .fs-button__icon,\n .fs-button[aria-busy='true'] > .fs-icon {\n display: none;\n }\n .fs-button[aria-busy='true']:not(:has(> .fs-button__icon, > .fs-icon)) {\n color: transparent;\n }\n .fs-button[aria-busy='true']:not(:has(> .fs-button__icon, > .fs-icon))::before {\n position: absolute;\n inset: 0;\n margin: auto;\n }\n\n /* Disabled comes last, so it beats hover, press and every variant. Never opacity. */\n .fs-button:disabled,\n .fs-button[aria-disabled='true'] {\n --fs-button-ink: var(--fs-ink-disabled);\n background-color: var(--fs-bg-disabled);\n border-color: var(--fs-line);\n cursor: not-allowed;\n }\n .fs-button--ghost:disabled,\n .fs-button--ghost[aria-disabled='true'],\n .fs-button--danger:disabled,\n .fs-button--danger[aria-disabled='true'] {\n background-color: transparent;\n border-color: transparent;\n }\n\n @media (prefers-reduced-motion: reduce) {\n .fs-button[aria-busy='true']::before {\n animation: none;\n }\n }\n\n @keyframes fs-spin {\n to {\n transform: rotate(360deg);\n }\n }\n}\n";
|
|
1
|
+
export default "/* Button (spec 02 A). Usage: button.md. */\n@layer fs.components {\n .fs-button {\n --fs-button-ink: var(--fs-ink);\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: max(var(--fs-space-1), calc(var(--fs-gap) - 2px));\n box-sizing: border-box;\n height: var(--fs-control-h);\n min-width: var(--fs-control-h);\n margin: 0;\n padding: 0 calc(var(--fs-pad-x) * 1.5);\n font: inherit;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n font-weight: var(--fs-weight-medium);\n color: var(--fs-button-ink);\n white-space: nowrap;\n text-decoration: none;\n background: var(--fs-bg-surface);\n border: var(--fs-line-width) solid var(--fs-line-button);\n border-radius: var(--fs-radius-md);\n cursor: pointer;\n transition:\n background-color var(--fs-dur-fast) var(--fs-ease),\n border-color var(--fs-dur-fast) var(--fs-ease);\n }\n\n .fs-button__icon,\n .fs-button > .fs-icon {\n flex: none;\n width: var(--fs-icon-size);\n height: var(--fs-icon-size);\n }\n\n @media (hover: hover) {\n .fs-button:hover {\n border-color: var(--fs-ink-2);\n }\n .fs-button--ghost:hover {\n background-color: var(--fs-bg-hover);\n }\n .fs-button--danger:hover {\n background-color: var(--fs-danger-wash);\n }\n .fs-button--primary:hover {\n background-color: var(--fs-primary-bg-hover);\n border-color: var(--fs-primary-bg-hover);\n }\n }\n\n .fs-button:active {\n background-color: var(--fs-bg-active);\n }\n\n /* The ring recipe (D15). */\n .fs-button:focus-visible {\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: var(--fs-ring-halo-width);\n box-shadow: 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo);\n }\n\n .fs-button--primary {\n --fs-button-ink: var(--fs-primary-ink);\n background-color: var(--fs-primary-bg);\n border-color: var(--fs-primary-bg);\n }\n .fs-button--primary:active {\n background-color: var(--fs-primary-bg-hover);\n }\n\n .fs-button--ghost,\n .fs-button--danger {\n background-color: transparent;\n border-color: transparent;\n }\n .fs-button--danger {\n --fs-button-ink: var(--fs-danger-ink);\n }\n\n .fs-button--sm {\n height: var(--fs-size-touch);\n min-width: var(--fs-size-touch);\n padding: 0 var(--fs-space-2);\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n }\n\n .fs-button--icon-only {\n padding: 0;\n width: var(--fs-control-h);\n }\n .fs-button--sm.fs-button--icon-only {\n width: var(--fs-size-touch);\n }\n\n /* Toggle: a button with aria-pressed. */\n .fs-button[aria-pressed='true'] {\n --fs-button-ink: var(--fs-accent);\n background-color: var(--fs-bg-selected);\n border-color: var(--fs-accent);\n }\n\n /* Busy: a spinner in place of the leading icon; with no icon, over the hidden label. */\n .fs-button[aria-busy='true'] {\n cursor: progress;\n }\n .fs-button[aria-busy='true']::before {\n content: '';\n flex: none;\n box-sizing: border-box;\n width: var(--fs-icon-size);\n height: var(--fs-icon-size);\n border: 2px solid var(--fs-button-ink);\n border-top-color: transparent;\n border-radius: 50%;\n animation: fs-spin 0.7s linear infinite;\n }\n .fs-button[aria-busy='true'] > .fs-button__icon,\n .fs-button[aria-busy='true'] > .fs-icon {\n display: none;\n }\n .fs-button[aria-busy='true']:not(:has(> .fs-button__icon, > .fs-icon)) {\n color: transparent;\n }\n .fs-button[aria-busy='true']:not(:has(> .fs-button__icon, > .fs-icon))::before {\n position: absolute;\n inset: 0;\n margin: auto;\n }\n\n /* Disabled comes last, so it beats hover, press and every variant. Never opacity. */\n .fs-button:disabled,\n .fs-button[aria-disabled='true'] {\n --fs-button-ink: var(--fs-ink-disabled);\n background-color: var(--fs-bg-disabled);\n border-color: var(--fs-line);\n cursor: not-allowed;\n }\n .fs-button--ghost:disabled,\n .fs-button--ghost[aria-disabled='true'],\n .fs-button--danger:disabled,\n .fs-button--danger[aria-disabled='true'] {\n background-color: transparent;\n border-color: transparent;\n }\n\n @media (prefers-reduced-motion: reduce) {\n .fs-button[aria-busy='true']::before {\n animation: none;\n }\n }\n\n @keyframes fs-spin {\n to {\n transform: rotate(360deg);\n }\n }\n\n /* Forced colours erase the pressed fill and the accent edge, so pressed takes the system's\n selection colours; aria-disabled gets GrayText, as a native :disabled button does (T107). */\n @media (forced-colors: active) {\n .fs-button[aria-pressed='true'] {\n --fs-button-ink: HighlightText;\n background-color: Highlight;\n border-color: Highlight;\n }\n .fs-button[aria-disabled='true'] {\n --fs-button-ink: GrayText;\n border-color: GrayText;\n }\n }\n}\n";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Disclosure on native <details> (spec 02 D), and Grizzbi's folding filter card. Usage: disclosure.md. */\n@layer fs.components {\n .fs-disclosure {\n color: var(--fs-ink);\n }\n .fs-disclosure__summary {\n display: flex;\n align-items: center;\n gap: var(--fs-space-2);\n min-height: var(--fs-row-h);\n padding: 0 var(--fs-space-2);\n list-style: none;\n border-radius: var(--fs-radius-sm);\n cursor: pointer;\n }\n .fs-disclosure__summary::-webkit-details-marker {\n display: none;\n }\n .fs-disclosure__summary::before {\n content: '';\n flex: none;\n width: 16px;\n height: 16px;\n background-color: var(--fs-grid-chevron);\n mask: 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='m9 18 6-6-6-6'/%3E%3C/svg%3E\")\n center / contain no-repeat;\n transition: transform var(--fs-dur) var(--fs-ease);\n }\n .fs-disclosure[open] > .fs-disclosure__summary::before {\n transform: rotate(90deg);\n }\n .fs-disclosure__title {\n flex: none;\n font-weight: var(--fs-weight-semibold);\n }\n .fs-disclosure__hint {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n color: var(--fs-ink-muted);\n white-space: nowrap;\n text-align: right;\n text-overflow: ellipsis;\n }\n .fs-disclosure__body {\n padding: var(--fs-space-1) var(--fs-space-2) var(--fs-space-3) calc(var(--fs-space-2) * 2 + 16px);\n }\n\n @media (hover: hover) {\n .fs-disclosure__summary:hover {\n background-color: var(--fs-bg-hover);\n }\n }\n\n /* The ring recipe (D15). */\n .fs-disclosure__summary:focus-visible {\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: var(--fs-ring-halo-width);\n box-shadow: 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo);\n }\n\n .fs-disclosure--card {\n background: var(--fs-bg-surface);\n border: var(--fs-line-width) solid var(--fs-line);\n border-radius: var(--fs-radius-md);\n }\n .fs-disclosure--card > .fs-disclosure__summary {\n min-height: calc(var(--fs-row-h) + 8px);\n padding: 0 var(--fs-space-3);\n }\n\n /* Active filter: the hint in accent ink at weight 600. */\n .fs-disclosure.fs-is-active .fs-disclosure__hint {\n color: var(--fs-accent);\n font-weight: var(--fs-weight-semibold);\n }\n /* Locked: read-only, not disabled. It still opens; it holds no control. */\n .fs-disclosure.fs-is-locked .fs-disclosure__title {\n color: var(--fs-ink-2);\n }\n .fs-disclosure__lock {\n flex: none;\n width: 14px;\n height: 14px;\n color: var(--fs-ink-muted);\n }\n .fs-disclosure.fs-tone-gap {\n background: var(--fs-gap-wash);\n border-color: var(--fs-gap-edge);\n }\n}\n";
|
|
1
|
+
export default "/* Disclosure on native <details> (spec 02 D), and Grizzbi's folding filter card. Usage: disclosure.md. */\n@layer fs.components {\n .fs-disclosure {\n color: var(--fs-ink);\n }\n .fs-disclosure__summary {\n display: flex;\n align-items: center;\n gap: var(--fs-space-2);\n min-height: var(--fs-row-h);\n padding: 0 var(--fs-space-2);\n list-style: none;\n border-radius: var(--fs-radius-sm);\n cursor: pointer;\n }\n .fs-disclosure__summary::-webkit-details-marker {\n display: none;\n }\n .fs-disclosure__summary::before {\n content: '';\n flex: none;\n width: 16px;\n height: 16px;\n background-color: var(--fs-grid-chevron);\n mask: 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='m9 18 6-6-6-6'/%3E%3C/svg%3E\")\n center / contain no-repeat;\n transition: transform var(--fs-dur) var(--fs-ease);\n }\n .fs-disclosure[open] > .fs-disclosure__summary::before {\n transform: rotate(90deg);\n }\n .fs-disclosure__title {\n flex: none;\n font-weight: var(--fs-weight-semibold);\n }\n .fs-disclosure__hint {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n color: var(--fs-ink-muted);\n white-space: nowrap;\n text-align: right;\n text-overflow: ellipsis;\n }\n .fs-disclosure__body {\n padding: var(--fs-space-1) var(--fs-space-2) var(--fs-space-3) calc(var(--fs-space-2) * 2 + 16px);\n }\n\n @media (hover: hover) {\n .fs-disclosure__summary:hover {\n background-color: var(--fs-bg-hover);\n }\n }\n\n /* The ring recipe (D15). */\n .fs-disclosure__summary:focus-visible {\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: var(--fs-ring-halo-width);\n box-shadow: 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo);\n }\n\n .fs-disclosure--card {\n background: var(--fs-bg-surface);\n border: var(--fs-line-width) solid var(--fs-line);\n border-radius: var(--fs-radius-md);\n }\n .fs-disclosure--card > .fs-disclosure__summary {\n min-height: calc(var(--fs-row-h) + 8px);\n padding: 0 var(--fs-space-3);\n }\n\n /* Active filter: the hint in accent ink at weight 600. */\n .fs-disclosure.fs-is-active .fs-disclosure__hint {\n color: var(--fs-accent);\n font-weight: var(--fs-weight-semibold);\n }\n /* Locked: read-only, not disabled. It still opens; it holds no control. */\n .fs-disclosure.fs-is-locked .fs-disclosure__title {\n color: var(--fs-ink-2);\n }\n .fs-disclosure__lock {\n flex: none;\n width: 14px;\n height: 14px;\n color: var(--fs-ink-muted);\n }\n .fs-disclosure.fs-tone-gap {\n background: var(--fs-gap-wash);\n border-color: var(--fs-gap-edge);\n }\n\n /* Forced colours erase a fill, so the chevron's mask is drawn in CanvasText (T105, as node.css does). */\n @media (forced-colors: active) {\n .fs-disclosure__summary::before {\n background-color: CanvasText;\n }\n }\n}\n";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Drop zone and slot (spec 02 F; Grizzbi's Open screen). Usage: dropzone.md. */\n@layer fs.components {\n .fs-dropzone {\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: var(--fs-space-3);\n box-sizing: border-box;\n min-height: 300px;\n padding: var(--fs-space-8) var(--fs-space-6);\n color: var(--fs-ink);\n text-align: center;\n background: var(--fs-bg-surface);\n border: 2px dashed var(--fs-line-control-strong);\n border-radius: var(--fs-radius-lg);\n }\n .fs-dropzone__icon {\n width: 32px;\n height: 32px;\n color: var(--fs-ink-muted);\n }\n .fs-dropzone__title {\n margin: 0;\n font-size: var(--fs-text-2xl-size);\n line-height: var(--fs-text-2xl-line);\n font-weight: var(--fs-weight-semibold);\n letter-spacing: var(--fs-tracking-tight);\n }\n .fs-dropzone__text {\n margin: 0;\n color: var(--fs-ink-2);\n }\n .fs-dropzone__actions {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n gap: var(--fs-space-2);\n }\n .fs-dropzone__overlay {\n position: absolute;\n inset: 0;\n display: none;\n place-items: center;\n font-size: var(--fs-text-xl-size);\n line-height: var(--fs-text-xl-line);\n font-weight: var(--fs-weight-semibold);\n color: var(--fs-accent);\n background: var(--fs-accent-wash);\n border-radius: inherit;\n }\n .fs-dropzone.fs-is-dragover {\n border-color: var(--fs-accent);\n }\n .fs-dropzone.fs-is-dragover > .fs-dropzone__overlay {\n display: grid;\n }\n .fs-dropzone[aria-busy='true'] {\n border-style: solid;\n }\n .fs-dropzone.fs-is-error {\n border-style: solid;\n border-color: var(--fs-danger-fill);\n }\n\n /* A slot: a numbered field that names what it holds; filled is a success look. */\n .fs-slot {\n display: flex;\n align-items: center;\n gap: var(--fs-space-3);\n box-sizing: border-box;\n min-height: 56px;\n padding: var(--fs-space-3) var(--fs-space-4);\n color: var(--fs-ink);\n background: var(--fs-bg-surface);\n border: 2px dashed var(--fs-line-control-strong);\n border-radius: var(--fs-radius-lg);\n }\n .fs-slot__number {\n display: grid;\n flex: none;\n place-items: center;\n width: 24px;\n height: 24px;\n font-size: var(--fs-text-xs-size);\n font-weight: var(--fs-weight-bold);\n color: var(--fs-primary-ink);\n background: var(--fs-primary-bg);\n border-radius: 50%;\n }\n .fs-slot--optional .fs-slot__number {\n color: var(--fs-ink-2);\n background: transparent;\n box-shadow: inset 0 0 0 1.5px var(--fs-line-control-strong);\n }\n .fs-slot__content {\n flex: 1 1 auto;\n min-width: 0;\n }\n .fs-slot__title {\n display: block;\n font-weight: var(--fs-weight-semibold);\n }\n .fs-slot__text {\n display: block;\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n color: var(--fs-ink-2);\n }\n .fs-slot--filled {\n background: var(--fs-positive-wash);\n border-style: solid;\n border-color: var(--fs-positive-fill);\n }\n .fs-slot.fs-is-dragover {\n background: var(--fs-accent-wash);\n border-color: var(--fs-accent);\n }\n}\n";
|
|
1
|
+
export default "/* Drop zone and slot (spec 02 F; Grizzbi's Open screen). Usage: dropzone.md. */\n@layer fs.components {\n .fs-dropzone {\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: var(--fs-space-3);\n box-sizing: border-box;\n min-height: 300px;\n padding: var(--fs-space-8) var(--fs-space-6);\n color: var(--fs-ink);\n text-align: center;\n background: var(--fs-bg-surface);\n border: 2px dashed var(--fs-line-control-strong);\n border-radius: var(--fs-radius-lg);\n }\n .fs-dropzone__icon {\n width: 32px;\n height: 32px;\n color: var(--fs-ink-muted);\n }\n .fs-dropzone__title {\n margin: 0;\n font-size: var(--fs-text-2xl-size);\n line-height: var(--fs-text-2xl-line);\n font-weight: var(--fs-weight-semibold);\n letter-spacing: var(--fs-tracking-tight);\n }\n .fs-dropzone__text {\n margin: 0;\n color: var(--fs-ink-2);\n }\n .fs-dropzone__actions {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n gap: var(--fs-space-2);\n }\n .fs-dropzone__overlay {\n position: absolute;\n inset: 0;\n display: none;\n place-items: center;\n font-size: var(--fs-text-xl-size);\n line-height: var(--fs-text-xl-line);\n font-weight: var(--fs-weight-semibold);\n color: var(--fs-accent);\n background: var(--fs-accent-wash);\n border-radius: inherit;\n }\n .fs-dropzone.fs-is-dragover {\n border-color: var(--fs-accent);\n }\n .fs-dropzone.fs-is-dragover > .fs-dropzone__overlay {\n display: grid;\n }\n .fs-dropzone[aria-busy='true'] {\n border-style: solid;\n }\n .fs-dropzone.fs-is-error {\n border-style: solid;\n border-color: var(--fs-danger-fill);\n }\n\n /* A slot: a numbered field that names what it holds; filled is a success look. */\n .fs-slot {\n display: flex;\n align-items: center;\n gap: var(--fs-space-3);\n box-sizing: border-box;\n min-height: 56px;\n padding: var(--fs-space-3) var(--fs-space-4);\n color: var(--fs-ink);\n background: var(--fs-bg-surface);\n border: 2px dashed var(--fs-line-control-strong);\n border-radius: var(--fs-radius-lg);\n }\n .fs-slot__number {\n display: grid;\n flex: none;\n place-items: center;\n width: 24px;\n height: 24px;\n font-size: var(--fs-text-xs-size);\n font-weight: var(--fs-weight-bold);\n color: var(--fs-primary-ink);\n background: var(--fs-primary-bg);\n border-radius: 50%;\n }\n .fs-slot--optional .fs-slot__number {\n color: var(--fs-ink-2);\n background: transparent;\n box-shadow: inset 0 0 0 1.5px var(--fs-line-control-strong);\n }\n .fs-slot__content {\n flex: 1 1 auto;\n min-width: 0;\n }\n .fs-slot__title {\n display: block;\n font-weight: var(--fs-weight-semibold);\n }\n .fs-slot__text {\n display: block;\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n color: var(--fs-ink-2);\n }\n .fs-slot--filled {\n background: var(--fs-positive-wash);\n border-style: solid;\n border-color: var(--fs-positive-fill);\n }\n .fs-slot.fs-is-dragover {\n background: var(--fs-accent-wash);\n border-color: var(--fs-accent);\n }\n\n /* Forced colours erase the wash and the accent edge: the slot being dropped on gets a Highlight\n ring just outside its edge, on Canvas (T107). */\n @media (forced-colors: active) {\n .fs-slot.fs-is-dragover {\n outline: 2px solid Highlight;\n outline-offset: 2px;\n }\n }\n}\n";
|
package/dist/css-text/field.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Field (spec 02 B). Usage: field.md. */\n@layer fs.components {\n /* Stacked (default): label above, the control's own edge, message below. */\n .fs-field {\n display: flex;\n flex-direction: column;\n gap: var(--fs-space-1);\n min-width: 0;\n }\n .fs-field__label {\n min-width: 0;\n overflow: hidden;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n font-weight: var(--fs-weight-medium);\n color: var(--fs-ink);\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .fs-field--wrap .fs-field__label {\n white-space: normal;\n }\n .fs-field__required {\n margin-left: 2px;\n color: var(--fs-ink-muted);\n }\n\n .fs-field__message {\n display: flex;\n align-items: flex-start;\n gap: var(--fs-space-1);\n margin: 0;\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n color: var(--fs-neutral-ink);\n }\n .fs-field__message > .fs-icon {\n flex: none;\n width: 14px;\n height: 14px;\n margin-top: 1px;\n }\n .fs-field__message.fs-tone-caution {\n color: var(--fs-caution-ink);\n }\n .fs-field__message.fs-tone-danger {\n color: var(--fs-danger-ink);\n }\n .fs-field__message.fs-tone-warning {\n color: var(--fs-warning-ink);\n }\n .fs-field__message.fs-tone-warning > .fs-icon {\n color: var(--fs-warning-icon);\n }\n\n .fs-field__count {\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n font-variant-numeric: tabular-nums;\n color: var(--fs-ink-muted);\n text-align: right;\n }\n\n /* Inline (BI §9.1): a box with a label column and a value; the message sits beside it. */\n .fs-field--inline {\n flex-direction: row;\n align-items: center;\n gap: var(--fs-space-3);\n }\n .fs-field__box {\n position: relative;\n display: flex;\n flex: none;\n box-sizing: border-box;\n height: var(--fs-control-h);\n background: var(--fs-bg-sunken);\n border: var(--fs-line-width) solid var(--fs-line-control);\n }\n .fs-field--full {\n width: 100%;\n }\n .fs-field--full .fs-field__box {\n flex: 1 1 auto;\n }\n .fs-field__box > .fs-field__label {\n display: flex;\n flex: 0 0 190px;\n align-items: center;\n box-sizing: border-box;\n padding: 0 var(--fs-pad-x);\n font-weight: var(--fs-weight-regular);\n color: var(--fs-ink-2);\n background: var(--fs-bg-sunken);\n border-right: var(--fs-line-width) solid var(--fs-line);\n }\n .fs-field__box > .fs-field__label > span {\n overflow: hidden;\n text-overflow: ellipsis;\n }\n .fs-field__box > .fs-field__control {\n flex: 0 0 240px;\n box-sizing: border-box;\n height: 100%;\n }\n .fs-field--full .fs-field__box > .fs-field__control {\n flex: 1 1 auto;\n }\n /* The box draws the edge, the ring and the states, so the control inside draws none of them.\n Specificity (0,3,0) beats the controls' own hover, invalid and focus rules (0,2,0). */\n .fs-field .fs-field__box :is(.fs-input, .fs-select__control, .fs-value--computed) {\n height: 100%;\n border-color: transparent;\n border-radius: 0;\n background-color: transparent;\n }\n .fs-field .fs-field__box :is(.fs-input, .fs-select__control, .fs-field__control):focus-visible {\n outline: none;\n box-shadow: none;\n }\n .fs-field__mark {\n position: absolute;\n top: 0;\n right: var(--fs-pad-x);\n bottom: 0;\n display: flex;\n align-items: center;\n color: var(--fs-ink-muted);\n pointer-events: none;\n }\n .fs-field__mark > .fs-icon {\n width: 16px;\n height: 16px;\n }\n .fs-field__box:has(.fs-field__mark) .fs-field__control {\n padding-right: calc(var(--fs-pad-x) * 2 + 16px);\n }\n\n @media (hover: hover) {\n .fs-field__box:hover {\n border-color: var(--fs-ink-2);\n }\n }\n\n /* The ring recipe (D15), on the box. */\n .fs-field__box:has(:focus-visible) {\n z-index: 1;\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: var(--fs-ring-halo-width);\n box-shadow: 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo);\n }\n .fs-field__box:has([aria-invalid='true']) {\n border-color: var(--fs-danger-fill);\n }\n .fs-field__box:has(:disabled) {\n background: var(--fs-bg-disabled);\n border-color: var(--fs-line);\n }\n .fs-field__box:has(:disabled) > .fs-field__mark {\n color: var(--fs-ink-disabled);\n }\n\n /* Stacked inline fields share their borders. */\n .fs-field-stack {\n display: flex;\n flex-direction: column;\n }\n .fs-field-stack > .fs-field--inline + .fs-field--inline .fs-field__box {\n margin-top: calc(-1 * var(--fs-line-width));\n }\n\n /* Headless: inside a table cell, no label and no edge; the ring sits inside the cell. */\n .fs-field--headless .fs-field__box {\n height: 100%;\n border-color: transparent;\n background: transparent;\n }\n .fs-field--headless .fs-field__box > .fs-field__control {\n flex: 1 1 auto;\n }\n .fs-field--headless .fs-field__box:has(:focus-visible) {\n outline-offset: calc(-1 * var(--fs-ring-width));\n box-shadow: inset 0 0 0 calc(var(--fs-ring-width) + var(--fs-ring-halo-width)) var(--fs-ring-halo);\n }\n}\n";
|
|
1
|
+
export default "/* Field (spec 02 B). Usage: field.md. */\n@layer fs.components {\n /* Stacked (default): label above, the control's own edge, message below. */\n .fs-field {\n display: flex;\n flex-direction: column;\n gap: var(--fs-space-1);\n min-width: 0;\n }\n .fs-field__label {\n min-width: 0;\n overflow: hidden;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n font-weight: var(--fs-weight-medium);\n color: var(--fs-ink);\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .fs-field--wrap .fs-field__label {\n white-space: normal;\n }\n .fs-field__required {\n margin-left: 2px;\n color: var(--fs-ink-muted);\n }\n\n .fs-field__message {\n display: flex;\n align-items: flex-start;\n gap: var(--fs-space-1);\n margin: 0;\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n color: var(--fs-neutral-ink);\n }\n .fs-field__message > .fs-icon {\n flex: none;\n width: 14px;\n height: 14px;\n margin-top: 1px;\n }\n .fs-field__message.fs-tone-caution {\n color: var(--fs-caution-ink);\n }\n .fs-field__message.fs-tone-danger {\n color: var(--fs-danger-ink);\n }\n .fs-field__message.fs-tone-warning {\n color: var(--fs-warning-ink);\n }\n .fs-field__message.fs-tone-warning > .fs-icon {\n color: var(--fs-warning-icon);\n }\n\n .fs-field__count {\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n font-variant-numeric: tabular-nums;\n color: var(--fs-ink-muted);\n text-align: right;\n }\n\n /* Inline (BI §9.1): a box with a label column and a value; the message sits beside it. */\n .fs-field--inline {\n flex-direction: row;\n align-items: center;\n gap: var(--fs-space-3);\n }\n .fs-field__box {\n position: relative;\n display: flex;\n flex: none;\n box-sizing: border-box;\n height: var(--fs-control-h);\n background: var(--fs-bg-sunken);\n border: var(--fs-line-width) solid var(--fs-line-control);\n }\n .fs-field--full {\n width: 100%;\n }\n .fs-field--full .fs-field__box {\n flex: 1 1 auto;\n }\n .fs-field__box > .fs-field__label {\n display: flex;\n flex: 0 0 190px;\n align-items: center;\n box-sizing: border-box;\n padding: 0 var(--fs-pad-x);\n font-weight: var(--fs-weight-regular);\n color: var(--fs-ink-2);\n background: var(--fs-bg-sunken);\n border-right: var(--fs-line-width) solid var(--fs-line);\n }\n .fs-field__box > .fs-field__label > span {\n overflow: hidden;\n text-overflow: ellipsis;\n }\n .fs-field__box > .fs-field__control {\n flex: 0 0 240px;\n box-sizing: border-box;\n height: 100%;\n }\n .fs-field--full .fs-field__box > .fs-field__control {\n flex: 1 1 auto;\n }\n /* The box draws the edge, the ring and the states, so the control inside draws none of them.\n Specificity (0,3,0) beats the controls' own hover, invalid and focus rules (0,2,0). */\n .fs-field .fs-field__box :is(.fs-input, .fs-select__control, .fs-value--computed) {\n height: 100%;\n border-color: transparent;\n border-radius: 0;\n background-color: transparent;\n }\n .fs-field .fs-field__box :is(.fs-input, .fs-select__control, .fs-field__control):focus-visible {\n outline: none;\n box-shadow: none;\n }\n .fs-field__mark {\n position: absolute;\n top: 0;\n right: var(--fs-pad-x);\n bottom: 0;\n display: flex;\n align-items: center;\n color: var(--fs-ink-muted);\n pointer-events: none;\n }\n .fs-field__mark > .fs-icon {\n width: 16px;\n height: 16px;\n }\n .fs-field__box:has(.fs-field__mark) .fs-field__control {\n padding-right: calc(var(--fs-pad-x) * 2 + 16px);\n }\n\n @media (hover: hover) {\n .fs-field__box:hover {\n border-color: var(--fs-ink-2);\n }\n }\n\n /* The ring recipe (D15), on the box. */\n .fs-field__box:has(:focus-visible) {\n z-index: 1;\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: var(--fs-ring-halo-width);\n box-shadow: 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo);\n }\n .fs-field__box:has([aria-invalid='true']) {\n border-color: var(--fs-danger-fill);\n }\n .fs-field__box:has(:disabled) {\n background: var(--fs-bg-disabled);\n border-color: var(--fs-line);\n }\n .fs-field__box:has(:disabled) > .fs-field__mark {\n color: var(--fs-ink-disabled);\n }\n\n /* Stacked inline fields share their borders. */\n .fs-field-stack {\n display: flex;\n flex-direction: column;\n }\n .fs-field-stack > .fs-field--inline + .fs-field--inline .fs-field__box {\n margin-top: calc(-1 * var(--fs-line-width));\n }\n\n /* Headless: inside a table cell, no label and no edge; the ring sits inside the cell. */\n .fs-field--headless .fs-field__box {\n height: 100%;\n border-color: transparent;\n background: transparent;\n }\n .fs-field--headless .fs-field__box > .fs-field__control {\n flex: 1 1 auto;\n }\n .fs-field--headless .fs-field__box:has(:focus-visible) {\n outline-offset: calc(-1 * var(--fs-ring-width));\n box-shadow: inset 0 0 0 calc(var(--fs-ring-width) + var(--fs-ring-halo-width)) var(--fs-ring-halo);\n }\n\n /* Forced colours turn the invalid box's red edge into the plain one, so a second, inner line\n marks it (the focus ring takes the outline while focused); a disabled box greys its edge and\n text (T107). */\n @media (forced-colors: active) {\n .fs-field__box:has([aria-invalid='true']):not(:has(:focus-visible)) {\n outline: var(--fs-line-width) solid CanvasText;\n outline-offset: calc(-2 * var(--fs-line-width) - 1px);\n }\n .fs-field__box:has(:disabled) {\n color: GrayText;\n border-color: GrayText;\n }\n .fs-field__box:has(:disabled) :is(.fs-input, .fs-select__control, .fs-field__control) {\n color: GrayText;\n -webkit-text-fill-color: GrayText;\n }\n }\n}\n";
|
package/dist/css-text/grid.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* BI App's slice grid (spec 02 F; KEEP, D7): CSS over BI App's own table. Usage: grid.md.\n Every value is a --fs-grid-* token (01-tokens §3.10). Put the grid in a .fs-dense subtree. */\n@layer fs.components {\n .fs-grid {\n table-layout: fixed;\n border-collapse: collapse;\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n font-weight: var(--fs-weight-regular);\n font-variant-numeric: tabular-nums;\n color: var(--fs-ink);\n background: var(--fs-bg-surface);\n }\n .fs-grid + .fs-grid {\n margin-top: var(--fs-row-h);\n }\n .fs-grid :is(th, td) {\n position: relative;\n box-sizing: border-box;\n width: 96px;\n height: var(--fs-row-h);\n padding: 0 var(--fs-cell-pad-x);\n overflow: hidden;\n text-align: right;\n white-space: nowrap;\n border: var(--fs-line-width) solid var(--fs-grid-line);\n }\n .fs-grid tbody tr:hover > * {\n box-shadow: inset 0 0 0 999px var(--fs-grid-row-hover);\n }\n\n /* A member's title: indented 12 px a level, with a chevron. */\n .fs-grid .fs-grid__member {\n width: 180px;\n min-width: 180px;\n text-align: left;\n }\n .fs-grid .fs-level-1 {\n padding-left: calc(var(--fs-cell-pad-x) + 0px);\n }\n .fs-grid .fs-level-2 {\n padding-left: calc(var(--fs-cell-pad-x) + 12px);\n }\n .fs-grid .fs-level-3 {\n padding-left: calc(var(--fs-cell-pad-x) + 24px);\n }\n .fs-grid .fs-level-4 {\n padding-left: calc(var(--fs-cell-pad-x) + 36px);\n }\n .fs-grid .fs-level-5 {\n padding-left: calc(var(--fs-cell-pad-x) + 48px);\n }\n .fs-grid .fs-level-6 {\n padding-left: calc(var(--fs-cell-pad-x) + 60px);\n }\n .fs-grid .fs-level-7 {\n padding-left: calc(var(--fs-cell-pad-x) + 72px);\n }\n .fs-grid .fs-level-8 {\n padding-left: calc(var(--fs-cell-pad-x) + 84px);\n }\n .fs-grid .fs-level-9 {\n padding-left: calc(var(--fs-cell-pad-x) + 96px);\n }\n .fs-grid .fs-level-10 {\n padding-left: calc(var(--fs-cell-pad-x) + 108px);\n }\n .fs-grid__chevron {\n display: inline-grid;\n place-items: center;\n width: 16px;\n height: 16px;\n margin: 0 2px 0 -2px;\n padding: 0;\n color: var(--fs-grid-chevron);\n vertical-align: -4px;\n background: transparent;\n border: 0;\n transition: transform var(--fs-dur) var(--fs-ease);\n }\n .fs-grid__chevron > .fs-icon {\n width: 16px;\n height: 16px;\n }\n .fs-grid__chevron[aria-expanded='true'] {\n transform: rotate(90deg);\n }\n\n /* The input sits under a cover that shows the formatted value (BI §5.1). */\n .fs-grid__input,\n .fs-grid__cover {\n position: absolute;\n inset: 0;\n box-sizing: border-box;\n padding: 0 var(--fs-cell-pad-x);\n }\n /* Out of editing the input's text is hidden, not covered: a cover with the cell's fill would\n paint a translucent fill twice (T16). */\n .fs-grid__input {\n width: 100%;\n margin: 0;\n font: inherit;\n color: transparent;\n caret-color: transparent;\n text-align: right;\n background: transparent;\n border: 0;\n outline: none;\n }\n .fs-grid__cover {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n pointer-events: none;\n }\n\n /* Roles, in BI App's precedence: when two set the same property, the later one wins. */\n .fs-grid .fs-cell--header {\n font-weight: var(--fs-weight-medium);\n text-align: center;\n background-color: var(--fs-grid-header-bg);\n }\n .fs-grid .fs-cell--member {\n text-align: left;\n }\n .fs-grid .fs-cell--subtotal {\n font-weight: var(--fs-weight-medium);\n background-color: var(--fs-grid-subtotal-bg);\n }\n .fs-grid .fs-cell--input {\n background-color: var(--fs-grid-input-bg);\n }\n .fs-grid .fs-cell--locked {\n color: var(--fs-grid-locked-ink);\n background-color: var(--fs-grid-locked-bg);\n }\n .fs-grid .fs-cell--error {\n color: var(--fs-grid-error-ink);\n background-color: var(--fs-grid-error-bg);\n }\n .fs-grid .fs-cell--stale {\n font-style: italic;\n color: var(--fs-grid-stale-ink);\n }\n /* The top-left corner is the stale dot's; the top-right the note's. Nothing else goes there. */\n .fs-grid .fs-cell--stale::before {\n content: '';\n position: absolute;\n top: 2px;\n left: 2px;\n z-index: 1;\n width: 5px;\n height: 5px;\n background: var(--fs-grid-stale-dot);\n border-radius: 50%;\n }\n .fs-grid .fs-cell--negative {\n color: var(--fs-grid-negative-ink);\n }\n\n /* Editing states. */\n .fs-grid .fs-cell--dirty {\n color: var(--fs-grid-dirty-ink);\n }\n .fs-grid .fs-cell--invalid {\n color: var(--fs-grid-invalid-ink);\n }\n .fs-grid .fs-cell--nodata {\n background-color: var(--fs-grid-nodata-bg);\n }\n .fs-grid .fs-cell--editing {\n background-color: var(--fs-grid-editing-bg);\n }\n .fs-grid .fs-cell--editing .fs-grid__cover {\n visibility: hidden;\n }\n .fs-grid .fs-cell--editing .fs-grid__input {\n color: inherit;\n caret-color: auto;\n }\n /* The selected cell is the grid's cursor and its focus indicator (06-accessibility §3). */\n .fs-grid .fs-is-selected {\n outline: 2px solid var(--fs-grid-selected);\n outline-offset: -2px;\n }\n .fs-grid .fs-is-selected.fs-cell--invalid {\n background-color: var(--fs-grid-selected-invalid-bg);\n }\n .fs-grid__note {\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1;\n width: 0;\n height: 0;\n border-top: 6px solid var(--fs-accent);\n border-left: 6px solid transparent;\n }\n}\n";
|
|
1
|
+
export default "/* BI App's slice grid (spec 02 F; KEEP, D7): CSS over BI App's own table. Usage: grid.md.\n Every value is a --fs-grid-* token (01-tokens §3.10). Put the grid in a .fs-dense subtree. */\n@layer fs.components {\n .fs-grid {\n table-layout: fixed;\n border-collapse: collapse;\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n font-weight: var(--fs-weight-regular);\n font-variant-numeric: tabular-nums;\n color: var(--fs-ink);\n background: var(--fs-bg-surface);\n }\n .fs-grid + .fs-grid {\n margin-top: var(--fs-row-h);\n }\n .fs-grid :is(th, td) {\n position: relative;\n box-sizing: border-box;\n width: 96px;\n height: var(--fs-row-h);\n padding: 0 var(--fs-cell-pad-x);\n overflow: hidden;\n text-align: right;\n white-space: nowrap;\n border: var(--fs-line-width) solid var(--fs-grid-line);\n }\n .fs-grid tbody tr:hover > * {\n box-shadow: inset 0 0 0 999px var(--fs-grid-row-hover);\n }\n\n /* A member's title: indented 12 px a level, with a chevron. */\n .fs-grid .fs-grid__member {\n width: 180px;\n min-width: 180px;\n text-align: left;\n }\n .fs-grid .fs-level-1 {\n padding-left: calc(var(--fs-cell-pad-x) + 0px);\n }\n .fs-grid .fs-level-2 {\n padding-left: calc(var(--fs-cell-pad-x) + 12px);\n }\n .fs-grid .fs-level-3 {\n padding-left: calc(var(--fs-cell-pad-x) + 24px);\n }\n .fs-grid .fs-level-4 {\n padding-left: calc(var(--fs-cell-pad-x) + 36px);\n }\n .fs-grid .fs-level-5 {\n padding-left: calc(var(--fs-cell-pad-x) + 48px);\n }\n .fs-grid .fs-level-6 {\n padding-left: calc(var(--fs-cell-pad-x) + 60px);\n }\n .fs-grid .fs-level-7 {\n padding-left: calc(var(--fs-cell-pad-x) + 72px);\n }\n .fs-grid .fs-level-8 {\n padding-left: calc(var(--fs-cell-pad-x) + 84px);\n }\n .fs-grid .fs-level-9 {\n padding-left: calc(var(--fs-cell-pad-x) + 96px);\n }\n .fs-grid .fs-level-10 {\n padding-left: calc(var(--fs-cell-pad-x) + 108px);\n }\n .fs-grid__chevron {\n display: inline-grid;\n place-items: center;\n width: 16px;\n height: 16px;\n margin: 0 2px 0 -2px;\n padding: 0;\n color: var(--fs-grid-chevron);\n vertical-align: -4px;\n background: transparent;\n border: 0;\n transition: transform var(--fs-dur) var(--fs-ease);\n }\n .fs-grid__chevron > .fs-icon {\n width: 16px;\n height: 16px;\n }\n .fs-grid__chevron[aria-expanded='true'] {\n transform: rotate(90deg);\n }\n\n /* The input sits under a cover that shows the formatted value (BI §5.1). */\n .fs-grid__input,\n .fs-grid__cover {\n position: absolute;\n inset: 0;\n box-sizing: border-box;\n padding: 0 var(--fs-cell-pad-x);\n }\n /* Out of editing the input's text is hidden, not covered: a cover with the cell's fill would\n paint a translucent fill twice (T16). */\n .fs-grid__input {\n width: 100%;\n margin: 0;\n font: inherit;\n color: transparent;\n caret-color: transparent;\n text-align: right;\n background: transparent;\n border: 0;\n outline: none;\n }\n .fs-grid__cover {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n pointer-events: none;\n }\n\n /* Roles, in BI App's precedence: when two set the same property, the later one wins. */\n .fs-grid .fs-cell--header {\n font-weight: var(--fs-weight-medium);\n text-align: center;\n background-color: var(--fs-grid-header-bg);\n }\n .fs-grid .fs-cell--member {\n text-align: left;\n }\n .fs-grid .fs-cell--subtotal {\n font-weight: var(--fs-weight-medium);\n background-color: var(--fs-grid-subtotal-bg);\n }\n .fs-grid .fs-cell--input {\n background-color: var(--fs-grid-input-bg);\n }\n .fs-grid .fs-cell--locked {\n color: var(--fs-grid-locked-ink);\n background-color: var(--fs-grid-locked-bg);\n }\n .fs-grid .fs-cell--error {\n color: var(--fs-grid-error-ink);\n background-color: var(--fs-grid-error-bg);\n }\n .fs-grid .fs-cell--stale {\n font-style: italic;\n color: var(--fs-grid-stale-ink);\n }\n /* The top-left corner is the stale dot's; the top-right the note's. Nothing else goes there. */\n .fs-grid .fs-cell--stale::before {\n content: '';\n position: absolute;\n top: 2px;\n left: 2px;\n z-index: 1;\n width: 5px;\n height: 5px;\n background: var(--fs-grid-stale-dot);\n border-radius: 50%;\n }\n .fs-grid .fs-cell--negative {\n color: var(--fs-grid-negative-ink);\n }\n\n /* Editing states. */\n .fs-grid .fs-cell--dirty {\n color: var(--fs-grid-dirty-ink);\n }\n .fs-grid .fs-cell--invalid {\n color: var(--fs-grid-invalid-ink);\n }\n .fs-grid .fs-cell--nodata {\n background-color: var(--fs-grid-nodata-bg);\n }\n .fs-grid .fs-cell--editing {\n background-color: var(--fs-grid-editing-bg);\n }\n /* Red ink on the editing fill: a darker red in light (T108), the same red as before in dark. */\n .fs-grid .fs-cell--editing.fs-cell--negative,\n .fs-grid .fs-cell--editing.fs-cell--error,\n .fs-grid .fs-cell--editing.fs-cell--invalid {\n color: var(--fs-grid-editing-danger-ink);\n }\n .fs-grid .fs-cell--editing .fs-grid__cover {\n visibility: hidden;\n }\n .fs-grid .fs-cell--editing .fs-grid__input {\n color: inherit;\n caret-color: auto;\n }\n /* The selected cell is the grid's cursor and its focus indicator (06-accessibility §3). */\n .fs-grid .fs-is-selected {\n outline: 2px solid var(--fs-grid-selected);\n outline-offset: -2px;\n }\n .fs-grid .fs-is-selected.fs-cell--invalid {\n background-color: var(--fs-grid-selected-invalid-bg);\n }\n .fs-grid__note {\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1;\n width: 0;\n height: 0;\n border-top: 6px solid var(--fs-accent);\n border-left: 6px solid transparent;\n }\n\n /* Forced colours erase the danger ink and the error fill: a wavy underline marks the value (on the\n cover, which is positioned, so the cell's own underline doesn't reach it), as .fs-diag--error\n does, and an error cell also gets a dashed inner edge (T107). */\n @media (forced-colors: active) {\n .fs-grid :is(.fs-cell--invalid, .fs-cell--error) > .fs-grid__cover {\n text-decoration: underline wavy CanvasText;\n text-decoration-skip-ink: none;\n text-underline-offset: 3px;\n }\n .fs-grid .fs-cell--error:not(.fs-is-selected) {\n outline: var(--fs-line-width) dashed CanvasText;\n outline-offset: -3px;\n }\n }\n}\n";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Icon button (spec 02 A). Usage: icon-button.md. */\n@layer fs.components {\n .fs-icon-button {\n --fs-icon-button-box: var(--fs-control-h);\n --fs-icon-button-icon: var(--fs-icon-size);\n display: inline-grid;\n place-items: center;\n box-sizing: border-box;\n width: var(--fs-icon-button-box);\n height: var(--fs-icon-button-box);\n margin: 0;\n padding: 0;\n color: var(--fs-ink-2);\n background: transparent;\n border: var(--fs-line-width) solid transparent;\n border-radius: var(--fs-radius-md);\n cursor: pointer;\n transition: background-color var(--fs-dur-fast) var(--fs-ease);\n }\n .fs-icon-button > .fs-icon {\n width: var(--fs-icon-button-icon);\n height: var(--fs-icon-button-icon);\n }\n\n .fs-icon-button--tool {\n --fs-icon-button-box: 28px;\n --fs-icon-button-icon: 20px;\n }\n .fs-icon-button--row {\n --fs-icon-button-box: var(--fs-size-touch);\n --fs-icon-button-icon: 16px;\n }\n .fs-icon-button--tone-accent {\n color: var(--fs-accent);\n }\n\n @media (hover: hover) {\n .fs-icon-button:hover {\n color: var(--fs-ink);\n background-color: var(--fs-bg-hover);\n }\n }\n .fs-icon-button:active {\n background-color: var(--fs-bg-active);\n }\n\n /* The ring recipe (D15). */\n .fs-icon-button:focus-visible {\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: var(--fs-ring-halo-width);\n box-shadow: 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo);\n }\n\n .fs-icon-button[aria-pressed='true'] {\n color: var(--fs-accent);\n background-color: var(--fs-bg-selected);\n border-color: var(--fs-accent);\n }\n\n /* aria-disabled keeps it focusable, so its tooltip still works (BI §4). */\n .fs-icon-button:disabled,\n .fs-icon-button[aria-disabled='true'] {\n color: var(--fs-ink-disabled);\n background-color: transparent;\n border-color: transparent;\n cursor: not-allowed;\n }\n}\n";
|
|
1
|
+
export default "/* Icon button (spec 02 A). Usage: icon-button.md. */\n@layer fs.components {\n .fs-icon-button {\n --fs-icon-button-box: var(--fs-control-h);\n --fs-icon-button-icon: var(--fs-icon-size);\n display: inline-grid;\n place-items: center;\n box-sizing: border-box;\n width: var(--fs-icon-button-box);\n height: var(--fs-icon-button-box);\n margin: 0;\n padding: 0;\n color: var(--fs-ink-2);\n background: transparent;\n border: var(--fs-line-width) solid transparent;\n border-radius: var(--fs-radius-md);\n cursor: pointer;\n transition: background-color var(--fs-dur-fast) var(--fs-ease);\n }\n .fs-icon-button > .fs-icon {\n width: var(--fs-icon-button-icon);\n height: var(--fs-icon-button-icon);\n }\n\n .fs-icon-button--tool {\n --fs-icon-button-box: 28px;\n --fs-icon-button-icon: 20px;\n }\n .fs-icon-button--row {\n --fs-icon-button-box: var(--fs-size-touch);\n --fs-icon-button-icon: 16px;\n }\n .fs-icon-button--tone-accent {\n color: var(--fs-accent);\n }\n\n @media (hover: hover) {\n .fs-icon-button:hover {\n color: var(--fs-ink);\n background-color: var(--fs-bg-hover);\n }\n }\n .fs-icon-button:active {\n background-color: var(--fs-bg-active);\n }\n\n /* The ring recipe (D15). */\n .fs-icon-button:focus-visible {\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: var(--fs-ring-halo-width);\n box-shadow: 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo);\n }\n\n .fs-icon-button[aria-pressed='true'] {\n color: var(--fs-accent);\n background-color: var(--fs-bg-selected);\n border-color: var(--fs-accent);\n }\n\n /* aria-disabled keeps it focusable, so its tooltip still works (BI §4). */\n .fs-icon-button:disabled,\n .fs-icon-button[aria-disabled='true'] {\n color: var(--fs-ink-disabled);\n background-color: transparent;\n border-color: transparent;\n cursor: not-allowed;\n }\n\n /* Forced colours erase the pressed fill and edge, so pressed takes the system's selection\n colours (T107). */\n @media (forced-colors: active) {\n .fs-icon-button[aria-pressed='true'] {\n color: HighlightText;\n background-color: Highlight;\n border-color: Highlight;\n }\n }\n}\n";
|