@finstack-com-public/design 0.6.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +179 -0
- package/dist/charts/index.d.ts +7 -2
- package/dist/charts/index.js +20 -17
- package/dist/css/appbar.css +2 -2
- package/dist/css/breadcrumbs.css +1 -1
- package/dist/css/card.css +52 -21
- package/dist/css/card.md +18 -3
- package/dist/css/checkbox.css +61 -1
- package/dist/css/checkbox.md +3 -2
- package/dist/css/chip.css +37 -6
- package/dist/css/chip.md +5 -0
- package/dist/css/control-rows.css +111 -0
- package/dist/css/control-rows.md +46 -0
- package/dist/css/count.css +2 -2
- package/dist/css/dialog.css +5 -1
- package/dist/css/dialog.md +1 -0
- package/dist/css/drag.css +6 -6
- package/dist/css/drag.md +1 -0
- package/dist/css/dropzone.css +3 -3
- package/dist/css/error-message.css +2 -2
- package/dist/css/field.css +1 -1
- package/dist/css/gap.css +7 -7
- package/dist/css/glass.css +11 -7
- package/dist/css/glass.md +4 -3
- package/dist/css/input.css +1 -1
- package/dist/css/kicker.css +12 -2
- package/dist/css/kicker.md +5 -0
- package/dist/css/kpi.css +120 -6
- package/dist/css/kpi.md +28 -1
- package/dist/css/link.css +1 -1
- package/dist/css/menu.css +2 -2
- package/dist/css/meter.css +2 -2
- package/dist/css/page.css +36 -0
- package/dist/css/page.md +28 -0
- package/dist/css/panel.css +2 -4
- package/dist/css/panel.md +1 -1
- package/dist/css/param-badge.css +48 -0
- package/dist/css/param-badge.md +22 -0
- package/dist/css/popover.css +5 -4
- package/dist/css/problems.css +2 -2
- package/dist/css/progress.css +1 -1
- package/dist/css/segmented.css +2 -2
- package/dist/css/sheet.css +4 -4
- package/dist/css/sidenav.css +4 -5
- package/dist/css/sidenav.md +1 -1
- package/dist/css/site.css +3 -2
- package/dist/css/stacked-bar.css +2 -2
- package/dist/css/tabbar.css +36 -13
- package/dist/css/tabbar.md +4 -1
- package/dist/css/table.css +2 -1
- package/dist/css/tabs.css +18 -2
- package/dist/css/tabs.md +1 -0
- package/dist/css/title.css +20 -0
- package/dist/css/title.md +13 -0
- package/dist/css/tokens.css +146 -111
- package/dist/css/tooltip.css +25 -2
- package/dist/css/tooltip.md +1 -0
- package/dist/css/tree.css +44 -9
- package/dist/css/tree.md +1 -0
- package/dist/css/wave.css +20 -5
- package/dist/css/wave.md +10 -3
- package/dist/css/widget.css +7 -9
- package/dist/css-text/appbar.js +1 -1
- package/dist/css-text/breadcrumbs.js +1 -1
- package/dist/css-text/card.js +1 -1
- package/dist/css-text/checkbox.js +1 -1
- package/dist/css-text/chip.js +1 -1
- package/dist/css-text/control-rows.js +1 -0
- package/dist/css-text/count.js +1 -1
- package/dist/css-text/dialog.js +1 -1
- package/dist/css-text/drag.js +1 -1
- package/dist/css-text/dropzone.js +1 -1
- package/dist/css-text/error-message.js +1 -1
- package/dist/css-text/field.js +1 -1
- package/dist/css-text/gap.js +1 -1
- package/dist/css-text/glass.js +1 -1
- package/dist/css-text/input.js +1 -1
- package/dist/css-text/kicker.js +1 -1
- package/dist/css-text/kit.js +872 -358
- package/dist/css-text/kpi.js +1 -1
- package/dist/css-text/link.js +1 -1
- package/dist/css-text/menu.js +1 -1
- package/dist/css-text/meter.js +1 -1
- package/dist/css-text/page.js +1 -0
- package/dist/css-text/panel.js +1 -1
- package/dist/css-text/param-badge.d.ts +2 -0
- package/dist/css-text/param-badge.js +1 -0
- package/dist/css-text/popover.js +1 -1
- package/dist/css-text/problems.js +1 -1
- package/dist/css-text/progress.js +1 -1
- package/dist/css-text/segmented.js +1 -1
- package/dist/css-text/sheet.js +1 -1
- package/dist/css-text/sidenav.js +1 -1
- package/dist/css-text/site.js +1 -1
- package/dist/css-text/stacked-bar.js +1 -1
- package/dist/css-text/tabbar.js +1 -1
- package/dist/css-text/table.js +1 -1
- package/dist/css-text/tabs.js +1 -1
- package/dist/css-text/title.d.ts +2 -0
- package/dist/css-text/title.js +1 -0
- package/dist/css-text/tokens.js +1 -1
- package/dist/css-text/tooltip.js +1 -1
- package/dist/css-text/tree.js +1 -1
- package/dist/css-text/wave.js +20 -5
- package/dist/css-text/widget.js +1 -1
- package/dist/grid.json +2 -2
- package/dist/kit.css +872 -358
- package/dist/react/data.d.ts +34 -0
- package/dist/react/data.js +7 -3
- package/dist/tokens/color.d.ts +5 -3
- package/dist/tokens/color.js +38 -25
- package/dist/tokens/contrast-pairs.js +23 -6
- package/dist/tokens/density.d.ts +2 -0
- package/dist/tokens/density.js +8 -2
- package/dist/tokens/grid.js +5 -5
- package/dist/tokens/index.d.ts +29 -20
- package/dist/tokens/primitives.d.ts +2 -0
- package/dist/tokens/primitives.js +3 -0
- package/dist/tokens/scale.d.ts +24 -15
- package/dist/tokens/scale.js +20 -9
- package/dist/tokens.json +71 -52
- package/package.json +2 -1
- package/dist/css/blocks.css +0 -47
- package/dist/css/blocks.md +0 -18
- package/dist/css/sweep.css +0 -55
- package/dist/css/sweep.md +0 -20
- package/dist/css-text/blocks.js +0 -1
- package/dist/css-text/sweep.js +0 -1
- /package/dist/css-text/{blocks.d.ts → control-rows.d.ts} +0 -0
- /package/dist/css-text/{sweep.d.ts → page.d.ts} +0 -0
package/dist/css/tooltip.css
CHANGED
|
@@ -8,11 +8,34 @@
|
|
|
8
8
|
margin: 0;
|
|
9
9
|
padding: var(--fs-space-1) var(--fs-space-2);
|
|
10
10
|
overflow: visible;
|
|
11
|
-
font-size: var(--fs-text-
|
|
12
|
-
line-height: var(--fs-text-
|
|
11
|
+
font-size: var(--fs-text-body-size);
|
|
12
|
+
line-height: var(--fs-text-body-line);
|
|
13
13
|
color: var(--fs-bg-surface);
|
|
14
14
|
background: var(--fs-ink);
|
|
15
15
|
border: 0;
|
|
16
16
|
border-radius: var(--fs-radius-sm);
|
|
17
|
+
box-shadow: var(--fs-shadow-tooltip);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* A list tip (T72): the parameter badge's tooltip on the surface, 200 px wide, with a title and one item per value. */
|
|
21
|
+
.fs-tooltip--list {
|
|
22
|
+
width: 200px;
|
|
23
|
+
padding: var(--fs-space-2) 10px;
|
|
24
|
+
color: var(--fs-ink);
|
|
25
|
+
background: var(--fs-bg-surface);
|
|
26
|
+
border: var(--fs-line-width) solid var(--fs-line);
|
|
27
|
+
border-radius: var(--fs-radius-sm);
|
|
28
|
+
}
|
|
29
|
+
/* No display on the tip itself: a popover keeps the browser's display: none until it opens. */
|
|
30
|
+
.fs-tooltip__title,
|
|
31
|
+
.fs-tooltip__item {
|
|
32
|
+
display: block;
|
|
33
|
+
}
|
|
34
|
+
.fs-tooltip__title {
|
|
35
|
+
font-weight: var(--fs-weight-semibold);
|
|
36
|
+
}
|
|
37
|
+
.fs-tooltip__item {
|
|
38
|
+
margin-top: var(--fs-space-0_5);
|
|
39
|
+
color: var(--fs-ink-2);
|
|
17
40
|
}
|
|
18
41
|
}
|
package/dist/css/tooltip.md
CHANGED
|
@@ -13,3 +13,4 @@ Spec 02 D. CSS: `css/tooltip.css`. Behaviour: `createTooltip(anchorEl, tipEl)`.
|
|
|
13
13
|
`hidden`, so it stays out of sight before the helper runs.
|
|
14
14
|
- A tooltip repeats or adds to a name; it never replaces the anchor's own `aria-label`.
|
|
15
15
|
- An `aria-disabled` control keeps its tooltip, since it stays focusable (BI §4).
|
|
16
|
+
- `fs-tooltip--list` (T72): the light list tip of the parameter badge, see `param-badge.md`. Parts `__title` and `__item`.
|
package/dist/css/tree.css
CHANGED
|
@@ -10,12 +10,41 @@
|
|
|
10
10
|
font-size: var(--fs-text-body-size);
|
|
11
11
|
line-height: var(--fs-text-body-line);
|
|
12
12
|
}
|
|
13
|
-
/*
|
|
13
|
+
/* Indent: 16 px a level, as padding inside the row, so the selected row spans the full width (T61).
|
|
14
|
+
A group sets its depth (to 8 levels); the row pads by it and draws a 1 px guide under each ancestor's
|
|
15
|
+
chevron as a background. */
|
|
14
16
|
.fs-tree__group {
|
|
15
|
-
|
|
16
|
-
padding-left: 4px;
|
|
17
|
-
border-left: var(--fs-line-width) solid var(--fs-grid-tree-guide);
|
|
17
|
+
--fs-tree-level: 1;
|
|
18
18
|
}
|
|
19
|
+
.fs-tree__group .fs-tree__group {
|
|
20
|
+
--fs-tree-level: 2;
|
|
21
|
+
}
|
|
22
|
+
.fs-tree__group .fs-tree__group .fs-tree__group {
|
|
23
|
+
--fs-tree-level: 3;
|
|
24
|
+
}
|
|
25
|
+
.fs-tree__group .fs-tree__group .fs-tree__group .fs-tree__group {
|
|
26
|
+
--fs-tree-level: 4;
|
|
27
|
+
}
|
|
28
|
+
.fs-tree__group .fs-tree__group .fs-tree__group .fs-tree__group .fs-tree__group {
|
|
29
|
+
--fs-tree-level: 5;
|
|
30
|
+
}
|
|
31
|
+
.fs-tree__group .fs-tree__group .fs-tree__group .fs-tree__group .fs-tree__group .fs-tree__group {
|
|
32
|
+
--fs-tree-level: 6;
|
|
33
|
+
}
|
|
34
|
+
.fs-tree__group .fs-tree__group .fs-tree__group .fs-tree__group .fs-tree__group .fs-tree__group .fs-tree__group {
|
|
35
|
+
--fs-tree-level: 7;
|
|
36
|
+
}
|
|
37
|
+
.fs-tree__group
|
|
38
|
+
.fs-tree__group
|
|
39
|
+
.fs-tree__group
|
|
40
|
+
.fs-tree__group
|
|
41
|
+
.fs-tree__group
|
|
42
|
+
.fs-tree__group
|
|
43
|
+
.fs-tree__group
|
|
44
|
+
.fs-tree__group {
|
|
45
|
+
--fs-tree-level: 8;
|
|
46
|
+
}
|
|
47
|
+
|
|
19
48
|
.fs-tree__item:focus-visible {
|
|
20
49
|
outline: none;
|
|
21
50
|
}
|
|
@@ -25,9 +54,16 @@
|
|
|
25
54
|
gap: 6px;
|
|
26
55
|
box-sizing: border-box;
|
|
27
56
|
height: var(--fs-row-h);
|
|
28
|
-
padding: 0 var(--fs-space-1);
|
|
57
|
+
padding: 0 var(--fs-space-1) 0 calc(var(--fs-space-1) + var(--fs-tree-level, 0) * 16px);
|
|
29
58
|
color: var(--fs-ink);
|
|
30
|
-
|
|
59
|
+
background: repeating-linear-gradient(
|
|
60
|
+
to right,
|
|
61
|
+
transparent 0 12px,
|
|
62
|
+
var(--fs-grid-tree-guide) 12px calc(12px + var(--fs-line-width)),
|
|
63
|
+
transparent calc(12px + var(--fs-line-width)) 16px
|
|
64
|
+
)
|
|
65
|
+
left top / calc(var(--fs-tree-level, 0) * 16px) 100% no-repeat;
|
|
66
|
+
border-radius: 0;
|
|
31
67
|
cursor: pointer;
|
|
32
68
|
}
|
|
33
69
|
.fs-tree__chevron {
|
|
@@ -71,10 +107,9 @@
|
|
|
71
107
|
background-color: var(--fs-bg-hover);
|
|
72
108
|
}
|
|
73
109
|
}
|
|
74
|
-
/* Selected:
|
|
110
|
+
/* Selected: a full-width, square row on the selection wash. No bar (T61, owner K4). */
|
|
75
111
|
.fs-tree__item[aria-selected='true'] > .fs-tree__row {
|
|
76
112
|
background-color: var(--fs-bg-selected);
|
|
77
|
-
box-shadow: inset 2px 0 0 var(--fs-accent);
|
|
78
113
|
}
|
|
79
114
|
.fs-tree__row.fs-is-dragover {
|
|
80
115
|
background-color: var(--fs-accent-wash);
|
|
@@ -97,7 +132,7 @@
|
|
|
97
132
|
align-items: center;
|
|
98
133
|
gap: var(--fs-space-1);
|
|
99
134
|
height: var(--fs-row-h);
|
|
100
|
-
padding-left: 26px;
|
|
135
|
+
padding-left: calc(26px + var(--fs-tree-level, 0) * 16px);
|
|
101
136
|
color: var(--fs-ink-muted);
|
|
102
137
|
}
|
|
103
138
|
.fs-tree__status.fs-tone-danger {
|
package/dist/css/tree.md
CHANGED
|
@@ -21,6 +21,7 @@ Spec 02 C (BI App's object tree). CSS: `css/tree.css`. Behaviour: `createTree(tr
|
|
|
21
21
|
|
|
22
22
|
- Items, not rows, are focusable: the helper gives one `treeitem` `tabindex="0"`. The ring is
|
|
23
23
|
drawn on the item's row.
|
|
24
|
+
- The indent is padding inside the row (16 px a level, up to 8 levels, by `--fs-tree-level` which the nested `__group`s set), so a selected row (`aria-selected="true"`: the selection wash, radius 0, no bar) spans the full width. The 1 px guide under each ancestor's chevron is drawn on the row's background.
|
|
24
25
|
- A leaf keeps an empty `__chevron` so names line up. `aria-expanded` marks an item that has
|
|
25
26
|
children (or will, once loaded); collapsed groups are hidden by CSS.
|
|
26
27
|
- Keys (spec 06 §4): Up/Down; Right opens, then enters; Left closes, then goes to the parent;
|
package/dist/css/wave.css
CHANGED
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
@layer fs.components {
|
|
3
3
|
/* An empty, aria-hidden band: a wave of dots, cyan at the left to blue at the right. The
|
|
4
4
|
wave is an image (motifs/wave.webp, D33): the owner's ChatGPT image as white on transparent,
|
|
5
|
-
used as a mask over the brand colours, so its colour comes from the roles.
|
|
6
|
-
|
|
7
|
-
the
|
|
5
|
+
used as a mask over the brand colours, so its colour comes from the roles. The whole wave
|
|
6
|
+
shows: the image is fitted to the band's height (its ratio is 5.716), centred and anchored at
|
|
7
|
+
the bottom. A band narrower than that ratio times its height is filled by the image
|
|
8
|
+
(`cover`: the sides are cropped, never the crest). A wider band gets a box exactly as wide as
|
|
9
|
+
the image, centred, with both edges fading out instead of ending in a cut. `--fs-wave-image`
|
|
10
|
+
points it at a self-hosted copy (keep the ratio). */
|
|
8
11
|
.fs-wave {
|
|
9
12
|
display: block;
|
|
10
13
|
height: var(--fs-wave-height, 160px);
|
|
@@ -18,9 +21,21 @@
|
|
|
18
21
|
content: '';
|
|
19
22
|
display: block;
|
|
20
23
|
height: 100%;
|
|
24
|
+
/* --fs-wave-height is read here, on the host's own value, so a custom height moves the cap too. */
|
|
25
|
+
max-width: calc(var(--fs-wave-height, 160px) * 5.716);
|
|
26
|
+
margin-inline: auto;
|
|
21
27
|
background: linear-gradient(90deg, var(--fs-brand-end), var(--fs-brand-start) 65%);
|
|
22
|
-
|
|
23
|
-
mask:
|
|
28
|
+
/* Two mask layers, intersected: the soft right edge, then the image. */
|
|
29
|
+
-webkit-mask:
|
|
30
|
+
linear-gradient(90deg, transparent, currentcolor 5%, currentcolor 90%, transparent) center bottom / 100% 100%
|
|
31
|
+
no-repeat,
|
|
32
|
+
var(--fs-wave-image, url('../motifs/wave.webp')) center bottom / cover no-repeat;
|
|
33
|
+
-webkit-mask-composite: source-in;
|
|
34
|
+
mask:
|
|
35
|
+
linear-gradient(90deg, transparent, currentcolor 5%, currentcolor 90%, transparent) center bottom / 100% 100%
|
|
36
|
+
no-repeat,
|
|
37
|
+
var(--fs-wave-image, url('../motifs/wave.webp')) center bottom / cover no-repeat;
|
|
38
|
+
mask-composite: intersect;
|
|
24
39
|
}
|
|
25
40
|
/* Decoration: nothing to show in forced colours, nothing to print. */
|
|
26
41
|
@media (forced-colors: active) {
|
package/dist/css/wave.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Spec 02 I. CSS: `css/wave.css`. Image: `motifs/wave.webp`. Gallery: `motifs.html`.
|
|
4
4
|
|
|
5
|
+
**Sites only, never on app pages (D41, T77).** The wave is a motif for marketing and public sites. BI App and Grizzbi
|
|
6
|
+
pages do not use it (the owner's V9, "remove the wave"), and no light or dark variant (K7) will follow: the
|
|
7
|
+
ChatGPT images are over. A new wave variant needs a new owner decision.
|
|
8
|
+
|
|
5
9
|
```html
|
|
6
10
|
<div class="fs-wave" aria-hidden="true"></div>
|
|
7
11
|
<div class="fs-wave" aria-hidden="true" style="--fs-wave-height: 200px"></div>
|
|
@@ -11,9 +15,12 @@ Spec 02 I. CSS: `css/wave.css`. Image: `motifs/wave.webp`. Gallery: `motifs.html
|
|
|
11
15
|
in light).
|
|
12
16
|
- The wave is an image file, `motifs/wave.webp` (D31, D33; 2172 x 380): white on transparent, used as a CSS
|
|
13
17
|
mask over the brand colours, so light, dark and re-tinted islands need no second file. It is made from
|
|
14
|
-
`art/wave-ai-source.png` by `npm run motifs`.
|
|
15
|
-
|
|
16
|
-
|
|
18
|
+
`art/wave-ai-source.png` by `npm run motifs`. The whole wave always shows: the image
|
|
19
|
+
is fitted to the band's height (`--fs-wave-height`), centred and anchored at the bottom. Up to a band width
|
|
20
|
+
of height x 5.716 (the image's ratio; 915 px at the default 160 px) it fills the band, and a narrower band
|
|
21
|
+
crops its sides, never the crest. A wider band gets a wave exactly that wide, centred, with empty space at
|
|
22
|
+
both sides, and both edges fade out (the left over the first 5 %, the right over the last tenth) instead of ending in a cut. The width cap
|
|
23
|
+
follows a custom `--fs-wave-height`. A replacement `--fs-wave-image` should keep the 5.716 ratio.
|
|
17
24
|
- An empty element: place it full-width, often absolutely along the bottom of a section
|
|
18
25
|
(`position: absolute; inset: auto 0 0`), behind the content. It ignores the pointer. When it sits absolutely
|
|
19
26
|
at the bottom of a section, reserve bottom padding of at least `--fs-wave-height` on that section, so no text
|
package/dist/css/widget.css
CHANGED
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
background: var(--fs-bg-surface);
|
|
13
13
|
border: var(--fs-line-width) solid var(--fs-line);
|
|
14
14
|
border-radius: var(--fs-radius-xl);
|
|
15
|
-
box-shadow: var(--fs-shadow-1);
|
|
16
15
|
}
|
|
17
16
|
.fs-widget__head {
|
|
18
17
|
min-width: 0;
|
|
@@ -26,14 +25,14 @@
|
|
|
26
25
|
text-overflow: ellipsis;
|
|
27
26
|
}
|
|
28
27
|
.fs-widget__title {
|
|
29
|
-
font-
|
|
30
|
-
|
|
31
|
-
line-height: var(--fs-text-md-line);
|
|
28
|
+
font-size: var(--fs-text-body-size);
|
|
29
|
+
line-height: var(--fs-text-body-line);
|
|
32
30
|
font-weight: var(--fs-weight-semibold);
|
|
31
|
+
color: var(--fs-ink-2);
|
|
33
32
|
}
|
|
34
33
|
.fs-widget__subtitle {
|
|
35
|
-
font-size: var(--fs-text-
|
|
36
|
-
line-height: var(--fs-text-
|
|
34
|
+
font-size: var(--fs-text-body-size);
|
|
35
|
+
line-height: var(--fs-text-body-line);
|
|
37
36
|
color: var(--fs-ink-muted);
|
|
38
37
|
}
|
|
39
38
|
.fs-widget__body {
|
|
@@ -52,9 +51,8 @@
|
|
|
52
51
|
}
|
|
53
52
|
.fs-widget__body--prose :is(h1, h2, h3) {
|
|
54
53
|
margin: var(--fs-space-3) 0 var(--fs-space-1);
|
|
55
|
-
font-
|
|
56
|
-
|
|
57
|
-
line-height: var(--fs-text-md-line);
|
|
54
|
+
font-size: var(--fs-text-body-size);
|
|
55
|
+
line-height: var(--fs-text-body-line);
|
|
58
56
|
font-weight: var(--fs-weight-semibold);
|
|
59
57
|
}
|
|
60
58
|
.fs-widget__body--prose p {
|
package/dist/css-text/appbar.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* App bar (spec 02 C): a dark island on navy-900, declared in tokens.css. Usage: appbar.md. */\n@layer fs.components {\n .fs-appbar {\n display: flex;\n align-items: center;\n gap: var(--fs-space-4);\n box-sizing: border-box;\n height: var(--fs-size-appbar);\n padding: 0 var(--fs-space-4);\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n color: var(--fs-ink);\n background: var(--fs-bg-surface);\n }\n /* The product's identity: wordmark, logo, a \"by <company>\" credit (D7). The kit only gives the slot. */\n .fs-appbar__identity {\n display: flex;\n flex: none;\n align-items: center;\n gap: var(--fs-space-2);\n height: 24px;\n padding-right: var(--fs-space-4);\n border-right: var(--fs-line-width) solid var(--fs-line-strong);\n }\n .fs-appbar__title {\n display: flex;\n flex-direction: column;\n min-width: 0;\n }\n .fs-appbar__name,\n .fs-appbar__source {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .fs-appbar__name {\n font-weight: var(--fs-weight-semibold);\n }\n .fs-appbar__source {\n font-size: var(--fs-text-
|
|
1
|
+
export default "/* App bar (spec 02 C): a dark island on navy-900, declared in tokens.css. Usage: appbar.md. */\n@layer fs.components {\n .fs-appbar {\n display: flex;\n align-items: center;\n gap: var(--fs-space-4);\n box-sizing: border-box;\n height: var(--fs-size-appbar);\n padding: 0 var(--fs-space-4);\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n color: var(--fs-ink);\n background: var(--fs-bg-surface);\n }\n /* The product's identity: wordmark, logo, a \"by <company>\" credit (D7). The kit only gives the slot. */\n .fs-appbar__identity {\n display: flex;\n flex: none;\n align-items: center;\n gap: var(--fs-space-2);\n height: 24px;\n padding-right: var(--fs-space-4);\n border-right: var(--fs-line-width) solid var(--fs-line-strong);\n }\n .fs-appbar__title {\n display: flex;\n flex-direction: column;\n min-width: 0;\n }\n .fs-appbar__name,\n .fs-appbar__source {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .fs-appbar__name {\n font-weight: var(--fs-weight-semibold);\n }\n .fs-appbar__source {\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n color: var(--fs-ink-muted);\n }\n .fs-appbar__actions {\n display: flex;\n align-items: center;\n gap: var(--fs-space-2);\n margin-left: auto;\n }\n @media print {\n .fs-appbar {\n display: none;\n }\n }\n}\n";
|
|
@@ -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:
|
|
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";
|
package/dist/css-text/card.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Card: a whole panel that is one link or button (spec 02 D). Usage: card.md. */\n@layer fs.components {\n .fs-card {\n display: block;\n box-sizing: border-box;\n margin: 0;\n padding: var(--fs-space-4);\n font: inherit;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n color: var(--fs-ink);\n text-align: left;\n text-decoration: none;\n background-color: var(--fs-bg-surface);\n border: var(--fs-line-width) solid var(--fs-line);\n border-radius: var(--fs-radius-xl);\n
|
|
1
|
+
export default "/* Card: a whole panel that is one link or button (spec 02 D). Usage: card.md. */\n@layer fs.components {\n .fs-card {\n display: block;\n box-sizing: border-box;\n margin: 0;\n padding: var(--fs-space-4);\n font: inherit;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n color: var(--fs-ink);\n text-align: left;\n text-decoration: none;\n background-color: var(--fs-bg-surface);\n border: var(--fs-line-width) solid var(--fs-line);\n border-radius: var(--fs-radius-xl);\n transition:\n box-shadow var(--fs-dur) var(--fs-ease),\n translate var(--fs-dur) var(--fs-ease);\n }\n .fs-card__kicker {\n display: block;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n font-weight: var(--fs-weight-semibold);\n letter-spacing: var(--fs-tracking-caps);\n text-transform: uppercase;\n color: var(--fs-ink-2);\n }\n .fs-card__title {\n display: block;\n margin: var(--fs-space-1) 0;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n font-weight: var(--fs-weight-semibold);\n color: var(--fs-ink-2);\n }\n .fs-card__text {\n display: block;\n margin: 0;\n color: var(--fs-ink-2);\n }\n .fs-card__meta {\n display: block;\n margin-top: var(--fs-space-2);\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 }\n\n /* Only an interactive card (a link or a button) takes the pointer, the lift and the press; a static .fs-card is a flat\n box that does nothing on hover (T75). The lift is the new shadow (--fs-shadow-lift) and a 2 px rise; the edge, the fill\n and the accent stay as they are (T56: no accent edge, no grey fill). The press settles back with a faint tint over the\n surface as an image, so the card never turns see-through. */\n .fs-card:is(a[href], button, [role='link'], [role='button']):not(:disabled, [aria-disabled='true']) {\n cursor: pointer;\n }\n @media (hover: hover) {\n .fs-card:is(a[href], button, [role='link'], [role='button']):not(:disabled, [aria-disabled='true']):hover {\n box-shadow: var(--fs-shadow-lift);\n translate: 0 -2px;\n }\n /* Reduced motion: the shadow still changes, but the card does not move. */\n @media (prefers-reduced-motion: reduce) {\n .fs-card:is(a[href], button, [role='link'], [role='button']):not(:disabled, [aria-disabled='true']):hover {\n translate: none;\n }\n }\n }\n .fs-card:is(a[href], button, [role='link'], [role='button']):not(:disabled, [aria-disabled='true']):active {\n box-shadow: none;\n translate: none;\n background-image: linear-gradient(var(--fs-bg-active), var(--fs-bg-active));\n }\n\n /* The ring recipe (D15). */\n .fs-card:focus-visible,\n .fs-card:is(a[href], button, [role='link'], [role='button']):not(:disabled, [aria-disabled='true']):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 /* The folder page card (T75, the Folder board): an icon tile, the name and the type in a row. */\n .fs-card--page {\n display: flex;\n align-items: center;\n gap: var(--fs-space-3);\n }\n .fs-card__tile {\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n color: var(--fs-accent);\n background: var(--fs-accent-wash);\n }\n .fs-card__body {\n display: flex;\n flex-direction: column;\n min-width: 0;\n }\n .fs-card--page .fs-card__title {\n margin: 0;\n color: var(--fs-ink);\n }\n .fs-card--page .fs-card__meta {\n margin: 0;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n color: var(--fs-ink-muted);\n }\n}\n";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Checkbox and radio (spec 02 B): native inputs, so authored layouts and forced colours work.\n Usage: checkbox.md. */\n@layer fs.components {\n .fs-checkbox,\n .fs-radio {\n display: inline-flex;\n align-items: center;\n gap: var(--fs-space-2);\n min-height: var(--fs-size-touch);\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n color: var(--fs-ink);\n cursor: pointer;\n }\n .fs-checkbox__input,\n .fs-radio__input {\n flex: none;\n width: 16px;\n height: 16px;\n margin: 0;\n accent-color: var(--fs-accent);\n
|
|
1
|
+
export default "/* Checkbox and radio (spec 02 B): native inputs, so authored layouts and forced colours work.\n Usage: checkbox.md. */\n@layer fs.components {\n .fs-checkbox,\n .fs-radio {\n display: inline-flex;\n align-items: center;\n gap: var(--fs-space-2);\n min-height: var(--fs-size-touch);\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n color: var(--fs-ink);\n cursor: pointer;\n }\n /* Drawn by the kit (T81), still a native input: the browser's own unchecked edge was a mixed olive in dark\n (Chrome blends accent-color into it). The edge is --fs-line-control-strong (3:1: a box has no label inside). */\n .fs-checkbox__input,\n .fs-radio__input {\n appearance: none;\n position: relative;\n flex: none;\n box-sizing: border-box;\n width: 16px;\n height: 16px;\n margin: 0;\n background: var(--fs-bg-sunken);\n border: var(--fs-line-width) solid var(--fs-line-control-strong);\n border-radius: var(--fs-radius-sm);\n cursor: pointer;\n }\n .fs-radio__input {\n border-radius: 50%;\n }\n .fs-checkbox__input::before,\n .fs-radio__input::before {\n content: '';\n position: absolute;\n inset: 0;\n background: var(--fs-ink-on-accent);\n visibility: hidden;\n }\n .fs-checkbox__input::before {\n mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.8 2.8L12 5.5' fill='none' stroke='currentColor' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\")\n center / 100% 100% no-repeat;\n }\n .fs-radio__input::before {\n inset: 3px;\n border-radius: 50%;\n }\n .fs-checkbox__input:checked,\n .fs-checkbox__input:indeterminate,\n .fs-radio__input:checked {\n background: var(--fs-accent);\n border-color: var(--fs-accent);\n }\n .fs-checkbox__input:checked::before,\n .fs-checkbox__input:indeterminate::before,\n .fs-radio__input:checked::before {\n visibility: visible;\n }\n .fs-checkbox__input:indeterminate::before {\n mask: linear-gradient(var(--fs-ink) 0 0) center / 8px 2px no-repeat;\n }\n\n /* The ring recipe (D15). */\n .fs-checkbox__input:focus-visible,\n .fs-radio__input: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-checkbox:has(:disabled),\n .fs-radio:has(:disabled) {\n color: var(--fs-ink-disabled);\n cursor: not-allowed;\n }\n .fs-checkbox__input:disabled,\n .fs-radio__input:disabled {\n background: var(--fs-bg-disabled);\n border-color: var(--fs-line);\n cursor: not-allowed;\n }\n .fs-checkbox__input:disabled:checked,\n .fs-checkbox__input:disabled:indeterminate,\n .fs-radio__input:disabled:checked {\n background: var(--fs-ink-disabled);\n border-color: var(--fs-ink-disabled);\n }\n\n /* Forced colours: hand the control back to the system's own drawing. */\n @media (forced-colors: active) {\n .fs-checkbox__input,\n .fs-radio__input {\n appearance: auto;\n }\n .fs-checkbox__input::before,\n .fs-radio__input::before {\n display: none;\n }\n }\n}\n";
|
package/dist/css-text/chip.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Chip (spec 02 B). Usage: chip.md. */\n@layer fs.components {\n .fs-chip {\n display: inline-flex;\n align-items: center;\n gap: var(--fs-space-1);\n box-sizing: border-box;\n height: max(var(--fs-size-touch), calc(var(--fs-control-h) - 4px));\n margin: 0;\n padding: 0 var(--fs-space-3);\n font: inherit;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n color: var(--fs-ink);\n white-space: nowrap;\n background: var(--fs-bg-
|
|
1
|
+
export default "/* Chip (spec 02 B). Usage: chip.md. */\n@layer fs.components {\n .fs-chip {\n display: inline-flex;\n align-items: center;\n gap: var(--fs-space-1);\n box-sizing: border-box;\n height: max(var(--fs-size-touch), calc(var(--fs-control-h) - 4px));\n margin: 0;\n padding: 0 var(--fs-space-3);\n font: inherit;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n color: var(--fs-ink);\n white-space: nowrap;\n background: var(--fs-bg-sunken);\n border: var(--fs-line-width) solid var(--fs-line-control);\n border-radius: var(--fs-radius-md);\n }\n\n /* A choice chip (a button) is outlined: aria-pressed (or aria-checked) marks it chosen. */\n .fs-chip--choice {\n cursor: pointer;\n }\n @media (hover: hover) {\n .fs-chip--choice:hover,\n .fs-chip__part:hover,\n .fs-chip__remove:hover {\n background-color: var(--fs-bg-hover);\n }\n .fs-chip--choice:hover {\n border-color: var(--fs-ink-2);\n }\n }\n .fs-chip[aria-pressed='true'],\n .fs-chip[aria-checked='true'] {\n color: var(--fs-accent);\n font-weight: var(--fs-weight-semibold);\n background-color: var(--fs-bg-selected);\n border-color: var(--fs-accent);\n }\n\n /* Removable and filter chips hold a remove button; split chips hold parts. */\n .fs-chip--removable,\n .fs-chip--filter {\n padding-right: var(--fs-space-1);\n }\n .fs-chip--filter {\n background: var(--fs-bg-sunken);\n border-color: var(--fs-line-strong);\n }\n .fs-chip__label {\n overflow: hidden;\n text-overflow: ellipsis;\n }\n .fs-chip__remove {\n display: inline-grid;\n place-items: center;\n flex: none;\n width: 20px;\n height: 20px;\n margin: 0;\n padding: 0;\n color: var(--fs-ink-2);\n background: transparent;\n border: 0;\n border-radius: var(--fs-radius-sm);\n cursor: pointer;\n }\n .fs-chip__remove > .fs-icon {\n width: 14px;\n height: 14px;\n }\n .fs-chip--split {\n padding: 0;\n gap: 0;\n }\n .fs-chip__part {\n position: relative;\n height: 100%;\n margin: 0;\n padding: 0 var(--fs-space-3);\n font: inherit;\n color: inherit;\n background: transparent;\n border: 0;\n cursor: pointer;\n }\n .fs-chip__part:first-child {\n border-radius: var(--fs-radius-md) 0 0 var(--fs-radius-md);\n }\n .fs-chip__part + .fs-chip__part {\n border-left: var(--fs-line-width) solid var(--fs-line-control);\n }\n .fs-chip--split > .fs-chip__remove {\n margin: 0 var(--fs-space-1);\n }\n\n /* The ring recipe (D15), on the chip or on each part. */\n .fs-chip--choice:focus-visible,\n .fs-chip__part: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\n /* The remove button is 20 px inside a 22 px chip, next to the label: its ring sits tight on it (no offset, no halo),\n with the 4 px corners, so it never covers the neighbouring text (T81). */\n .fs-chip__remove:focus-visible {\n z-index: 1;\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: 0;\n }\n\n .fs-chip:disabled,\n .fs-chip[aria-disabled='true'],\n .fs-chip__part:disabled,\n .fs-chip__remove:disabled {\n color: var(--fs-ink-disabled);\n background-color: var(--fs-bg-disabled);\n border-color: var(--fs-line);\n cursor: not-allowed;\n }\n .fs-chip__remove:disabled {\n background-color: transparent;\n }\n\n /* The lock chip (T74): who holds the page, e.g. a lock icon and \"You\" in the page header. A status, not a control:\n 22 px, 4 px corners, the accent on the accent wash (the same shape as the KPI change chip). */\n .fs-chip--lock {\n gap: var(--fs-space-1);\n height: 22px;\n padding: 0 var(--fs-space-2);\n font-weight: var(--fs-weight-semibold);\n color: var(--fs-accent);\n background: var(--fs-accent-wash);\n border-color: transparent;\n cursor: default;\n }\n .fs-chip--lock > .fs-icon {\n flex: none;\n width: 12px;\n height: 12px;\n }\n /* Forced colours drops the wash, so the chip keeps an edge. */\n @media (forced-colors: active) {\n .fs-chip--lock {\n border-color: ButtonText;\n }\n }\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "/* Control-row grid: filters, parameters and the property list (spec 02 B, T73). Usage: control-rows.md. */\n@layer fs.components {\n /* A stack of sections (Szűrők, then Paraméterek), 12 apart. */\n .fs-control-rows-stack {\n display: flex;\n flex-direction: column;\n gap: var(--fs-space-3);\n max-width: 520px;\n }\n\n /* One section: a title row, then gapless label | value rows in one edged box. */\n .fs-control-rows {\n display: flex;\n flex-direction: column;\n min-width: 0;\n max-width: 520px;\n }\n .fs-control-rows__title {\n display: flex;\n align-items: center;\n gap: 6px;\n height: var(--fs-control-h);\n margin: 0;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n font-weight: var(--fs-weight-semibold);\n color: var(--fs-ink);\n }\n .fs-control-rows__title > .fs-icon {\n color: var(--fs-ink-2);\n }\n .fs-control-rows__grid {\n display: grid;\n grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);\n border: var(--fs-line-width) solid var(--fs-line-control);\n }\n\n /* The label cell is the sunken grey (2fr); the value cell is the surface (3fr) and holds the control. */\n .fs-control-rows__label {\n display: flex;\n align-items: center;\n box-sizing: border-box;\n min-height: var(--fs-control-h);\n padding: 0 var(--fs-pad-x);\n color: var(--fs-ink-2);\n overflow-wrap: anywhere;\n background: var(--fs-bg-sunken);\n border-right: var(--fs-line-width) solid var(--fs-line-control);\n }\n .fs-control-rows__value {\n position: relative;\n display: flex;\n align-items: center;\n min-width: 0;\n min-height: var(--fs-control-h);\n background: var(--fs-bg-surface);\n }\n /* The rows share their edges: every cell but the last row's has a line under it. */\n .fs-control-rows__grid > :nth-last-child(n + 3) {\n border-bottom: var(--fs-line-width) solid var(--fs-line-control);\n }\n\n /* The cell draws the edge, so the control inside is bare and its ring sits inside the cell (the field box's rule). */\n .fs-control-rows__value :is(.fs-input, .fs-select__control, .fs-input--picker) {\n height: 100%;\n min-height: var(--fs-control-h);\n background-color: transparent;\n border-color: transparent;\n border-radius: 0;\n }\n .fs-control-rows__value :is(.fs-input, .fs-select__control):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 .fs-control-rows__value > .fs-select {\n flex: 1 1 auto;\n }\n .fs-control-rows__value > .fs-field__mark {\n right: var(--fs-pad-x);\n }\n .fs-control-rows__value:has(> .fs-field__mark) > :is(.fs-input, .fs-select__control) {\n padding-right: calc(var(--fs-pad-x) * 2 + 16px);\n }\n\n /* The property list (Object settings): a <dl> with a 160 px label column; read-only, so the hairline, not the control edge. */\n .fs-property-list {\n display: grid;\n grid-template-columns: 160px minmax(0, 1fr);\n max-width: 560px;\n margin: 0;\n border: var(--fs-line-width) solid var(--fs-line);\n }\n .fs-property-list__label,\n .fs-property-list__value {\n display: flex;\n align-items: center;\n box-sizing: border-box;\n min-height: var(--fs-control-h);\n margin: 0;\n padding: 0 var(--fs-pad-x);\n overflow-wrap: anywhere;\n }\n .fs-property-list__label {\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-property-list > :nth-last-child(n + 3) {\n border-bottom: var(--fs-line-width) solid var(--fs-line);\n }\n}\n";
|
package/dist/css-text/count.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Count badge (spec 02 A). Usage: count.md. */\n@layer fs.components {\n .fs-count {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n min-width: 16px;\n height: 16px;\n padding: 0 var(--fs-space-1);\n font-size: var(--fs-text-
|
|
1
|
+
export default "/* Count badge (spec 02 A). Usage: count.md. */\n@layer fs.components {\n .fs-count {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n min-width: 16px;\n height: 16px;\n padding: 0 var(--fs-space-1);\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n font-weight: var(--fs-weight-semibold);\n font-variant-numeric: tabular-nums;\n color: var(--fs-neutral-ink);\n background: var(--fs-neutral-wash);\n border-radius: var(--fs-radius-pill);\n }\n .fs-count.fs-tone-accent {\n color: var(--fs-accent);\n background: var(--fs-accent-wash);\n }\n .fs-count.fs-tone-gap {\n color: var(--fs-gap-ink);\n background: var(--fs-gap-wash);\n }\n .fs-count.fs-tone-danger {\n color: var(--fs-danger-ink);\n background: var(--fs-danger-wash);\n }\n}\n";
|
package/dist/css-text/dialog.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Dialog on the native <dialog> (spec 02 D). Usage: dialog.md. Behaviour: createDialog. */\n@layer fs.components {\n .fs-dialog {\n box-sizing: border-box;\n width: min(var(--fs-size-dialog), calc(100vw - 32px));\n max-width: none;\n max-height: calc(100vh - 32px);\n margin: auto;\n padding: 0;\n overflow: auto;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n color: var(--fs-ink);\n background: var(--fs-bg-surface);\n border: var(--fs-line-width) solid var(--fs-line-strong);\n border-radius: var(--fs-radius-
|
|
1
|
+
export default "/* Dialog on the native <dialog> (spec 02 D). Usage: dialog.md. Behaviour: createDialog. */\n@layer fs.components {\n .fs-dialog {\n box-sizing: border-box;\n width: min(var(--fs-size-dialog), calc(100vw - 32px));\n max-width: none;\n max-height: calc(100vh - 32px);\n margin: auto;\n padding: 0;\n overflow: auto;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n color: var(--fs-ink);\n background: var(--fs-bg-surface);\n border: var(--fs-line-width) solid var(--fs-line-strong);\n border-radius: var(--fs-radius-md);\n box-shadow: var(--fs-shadow-3);\n }\n .fs-dialog::backdrop {\n background: var(--fs-bg-backdrop);\n }\n .fs-dialog--sm {\n width: min(var(--fs-size-dialog-sm), calc(100vw - 32px));\n }\n .fs-dialog--lg {\n width: min(var(--fs-size-dialog-lg), calc(100vw - 32px));\n }\n .fs-dialog__title {\n margin: 0;\n padding: var(--fs-space-5) var(--fs-space-6) 0;\n font-family: var(--fs-font-display);\n font-size: var(--fs-text-lg-size);\n line-height: var(--fs-text-lg-line);\n font-weight: var(--fs-weight-semibold);\n }\n .fs-dialog__text {\n margin: var(--fs-space-2) 0 0;\n padding: 0 var(--fs-space-6);\n color: var(--fs-ink-2);\n }\n .fs-dialog__body {\n padding: var(--fs-space-4) var(--fs-space-6);\n }\n /* Space between the text and the divider above the actions (T59). */\n .fs-dialog__text + .fs-dialog__footer {\n margin-top: var(--fs-space-4);\n }\n /* Right-aligned, Cancel first, the action last (C6). */\n .fs-dialog__footer {\n display: flex;\n justify-content: flex-end;\n gap: var(--fs-space-2);\n margin: 0;\n padding: var(--fs-space-3) var(--fs-space-6) var(--fs-space-5);\n border-top: var(--fs-line-width) solid var(--fs-line);\n }\n\n /* The ring recipe (D15), when the dialog itself holds focus (nothing focusable inside). */\n .fs-dialog: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";
|
package/dist/css-text/drag.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Drag markers (spec 02 F): the kit styles them; BI App's own engine runs the drag (BI §9.6).\n Usage: drag.md. */\n@layer fs.components {\n .fs-grip {\n display: inline-grid;\n flex: none;\n place-items: center;\n width: 16px;\n min-height: var(--fs-size-touch);\n padding: 0;\n color: var(--fs-ink-muted);\n background: transparent;\n border: 0;\n border-radius: var(--fs-radius-sm);\n cursor: grab;\n }\n .fs-grip:active {\n cursor: grabbing;\n }\n .fs-grip > .fs-icon {\n width: 16px;\n height: 16px;\n }\n .fs-grip: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 /* Where a drop would land: a 4 px accent bar. */\n .fs-drop-bar {\n display: block;\n height: 4px;\n background: var(--fs-accent);\n border-radius:
|
|
1
|
+
export default "/* Drag markers (spec 02 F): the kit styles them; BI App's own engine runs the drag (BI §9.6).\n Usage: drag.md. */\n@layer fs.components {\n .fs-grip {\n display: inline-grid;\n flex: none;\n place-items: center;\n width: 16px;\n min-height: var(--fs-size-touch);\n padding: 0;\n color: var(--fs-ink-muted);\n background: transparent;\n border: 0;\n border-radius: var(--fs-radius-sm);\n cursor: grab;\n }\n .fs-grip:active {\n cursor: grabbing;\n }\n .fs-grip > .fs-icon {\n width: 16px;\n height: 16px;\n }\n .fs-grip: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 /* Where a drop would land: a 4 px accent bar. */\n .fs-drop-bar {\n display: block;\n height: 4px;\n background: var(--fs-accent);\n border-radius: 0;\n }\n .fs-drop-target.fs-is-dragover {\n background-color: var(--fs-accent-wash);\n outline: var(--fs-line-width) solid var(--fs-accent);\n outline-offset: calc(-1 * var(--fs-line-width));\n }\n\n /* Resize handles: an 8 px hit area with a 4 px bar on hover. The parent is position: relative. */\n .fs-resize-handle {\n position: absolute;\n z-index: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n .fs-resize-handle--row {\n right: 0;\n bottom: -4px;\n left: 0;\n height: 8px;\n cursor: row-resize;\n }\n .fs-resize-handle--col {\n top: 0;\n right: -4px;\n bottom: 0;\n width: 8px;\n cursor: col-resize;\n }\n .fs-resize-handle::after {\n content: '';\n border-radius: 0;\n }\n .fs-resize-handle--row::after {\n width: 100%;\n height: 4px;\n }\n .fs-resize-handle--col::after {\n width: 4px;\n height: 100%;\n }\n @media (hover: hover) {\n .fs-resize-handle:hover::after {\n background: var(--fs-accent);\n }\n .fs-add-cell:hover {\n color: var(--fs-accent);\n border-color: var(--fs-accent);\n }\n }\n\n /* The ghost of a moved or resized item: accent, or danger when refused. */\n .fs-drag-ghost {\n background: var(--fs-accent-wash);\n border-radius: var(--fs-radius-sm);\n outline: 2px solid var(--fs-accent);\n outline-offset: -2px;\n }\n .fs-drag-ghost.fs-is-refused {\n background: var(--fs-danger-wash);\n outline-color: var(--fs-danger-fill);\n }\n\n .fs-add-cell {\n display: grid;\n place-items: center;\n box-sizing: border-box;\n min-height: var(--fs-row-h);\n margin: 0;\n padding: 0 var(--fs-space-3);\n font: inherit;\n color: var(--fs-ink-muted);\n background: transparent;\n border: var(--fs-line-width) dashed var(--fs-line-control-strong);\n border-radius: var(--fs-radius-sm);\n cursor: pointer;\n }\n .fs-add-cell: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-palette-pill {\n display: inline-flex;\n align-items: center;\n gap: var(--fs-space-1);\n box-sizing: border-box;\n height: 26px;\n padding: 0 var(--fs-space-2) 0 var(--fs-space-1);\n font-size: var(--fs-text-xs-size);\n color: var(--fs-ink);\n background: var(--fs-bg-surface);\n border: var(--fs-line-width) solid var(--fs-line-control-strong);\n border-radius: var(--fs-radius-md);\n cursor: grab;\n }\n .fs-palette-pill > .fs-icon {\n width: 14px;\n height: 14px;\n color: var(--fs-ink-muted);\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);\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);\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);\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";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Error message: BI App's four lines (spec 02 E). Usage: error-message.md. */\n@layer fs.components {\n .fs-error-message {\n display: grid;\n gap: var(--fs-space-1);\n box-sizing: border-box;\n width: 100%;\n max-width: 380px;\n margin: auto;\n padding: var(--fs-space-3) var(--fs-space-4);\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n color: var(--fs-ink);\n background: var(--fs-bg-surface);\n border: var(--fs-line-width) solid var(--fs-line-strong);\n border-left: 3px solid var(--fs-danger-fill);\n border-radius: var(--fs-radius-sm);\n }\n .fs-error-message--lg {\n max-width: 460px;\n }\n .fs-error-message__what {\n display: flex;\n align-items: center;\n gap: var(--fs-space-2);\n margin: 0;\n font-weight: var(--fs-weight-medium);\n }\n .fs-error-message__what > .fs-icon {\n flex: none;\n width: 16px;\n height: 16px;\n color: var(--fs-danger-ink);\n }\n .fs-error-message__why {\n margin: 0;\n color: var(--fs-ink-muted);\n }\n .fs-error-message__do {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--fs-space-2);\n margin: var(--fs-space-1) 0 0;\n color: var(--fs-ink-2);\n }\n .fs-error-message__code {\n margin: 0;\n font-size: var(--fs-text-
|
|
1
|
+
export default "/* Error message: BI App's four lines (spec 02 E). Usage: error-message.md. */\n@layer fs.components {\n .fs-error-message {\n display: grid;\n gap: var(--fs-space-1);\n box-sizing: border-box;\n width: 100%;\n max-width: 380px;\n margin: auto;\n padding: var(--fs-space-3) var(--fs-space-4);\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n color: var(--fs-ink);\n background: var(--fs-bg-surface);\n border: var(--fs-line-width) solid var(--fs-line-strong);\n border-left: 3px solid var(--fs-danger-fill);\n border-radius: var(--fs-radius-sm);\n }\n .fs-error-message--lg {\n max-width: 460px;\n }\n .fs-error-message__what {\n display: flex;\n align-items: center;\n gap: var(--fs-space-2);\n margin: 0;\n font-weight: var(--fs-weight-medium);\n }\n .fs-error-message__what > .fs-icon {\n flex: none;\n width: 16px;\n height: 16px;\n color: var(--fs-danger-ink);\n }\n .fs-error-message__why {\n margin: 0;\n color: var(--fs-ink-muted);\n }\n .fs-error-message__do {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--fs-space-2);\n margin: var(--fs-space-1) 0 0;\n color: var(--fs-ink-2);\n }\n .fs-error-message__code {\n margin: 0;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n font-variant-numeric: tabular-nums;\n color: var(--fs-ink-muted);\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-
|
|
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";
|
package/dist/css-text/gap.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* \"Not computed\" markers (spec 02 F; GZ §6.1). Usage: gap.md. Every marker brings its own surface\n and edge, so it reads on any report background, and carries a word as well as colour and hatch.\n A gap is not an error: no alert role. */\n@layer fs.components {\n .fs-gap-panel {\n display: flex;\n flex-direction: column;\n justify-content: center;\n gap: 6px;\n box-sizing: border-box;\n height: 100%;\n padding: var(--fs-space-4) 18px;\n color: var(--fs-ink);\n background-color: var(--fs-bg-surface);\n background-image: var(--fs-gap-hatch);\n border: var(--fs-line-width) solid var(--fs-gap-edge);\n border-radius: var(--fs-radius-md);\n }\n .fs-gap-panel__head {\n display: flex;\n align-items: center;\n gap: var(--fs-space-2);\n margin: 0;\n font-size: var(--fs-text-
|
|
1
|
+
export default "/* \"Not computed\" markers (spec 02 F; GZ §6.1). Usage: gap.md. Every marker brings its own surface\n and edge, so it reads on any report background, and carries a word as well as colour and hatch.\n A gap is not an error: no alert role. */\n@layer fs.components {\n .fs-gap-panel {\n display: flex;\n flex-direction: column;\n justify-content: center;\n gap: 6px;\n box-sizing: border-box;\n height: 100%;\n padding: var(--fs-space-4) 18px;\n color: var(--fs-ink);\n background-color: var(--fs-bg-surface);\n background-image: var(--fs-gap-hatch);\n border: var(--fs-line-width) solid var(--fs-gap-edge);\n border-radius: var(--fs-radius-md);\n }\n .fs-gap-panel__head {\n display: flex;\n align-items: center;\n gap: var(--fs-space-2);\n margin: 0;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n font-weight: var(--fs-weight-bold);\n color: var(--fs-gap-ink);\n }\n .fs-gap-panel__head > .fs-icon {\n flex: none;\n width: 16px;\n height: 16px;\n }\n .fs-gap-panel__short {\n margin: 0;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n font-weight: var(--fs-weight-semibold);\n }\n .fs-gap-panel__why {\n max-width: 440px;\n margin: 0;\n font-size: var(--fs-text-xs-size);\n line-height: 1.45;\n color: var(--fs-ink-2);\n }\n .fs-gap-panel__actions {\n display: flex;\n flex-wrap: wrap;\n gap: var(--fs-space-2);\n margin-top: 6px;\n }\n\n /* A card's missing value: a button that opens the details. */\n .fs-gap-value {\n display: flex;\n align-items: flex-start;\n gap: 10px;\n box-sizing: border-box;\n margin: 0;\n padding: 10px var(--fs-space-3);\n font: inherit;\n color: var(--fs-ink);\n text-align: left;\n background-color: var(--fs-bg-surface);\n background-image: var(--fs-gap-hatch);\n border: var(--fs-line-width) solid var(--fs-gap-edge);\n border-radius: var(--fs-radius-sm);\n cursor: pointer;\n }\n .fs-gap-value > .fs-icon {\n flex: none;\n width: 20px;\n height: 20px;\n margin-top: 1px;\n color: var(--fs-gap-ink);\n }\n .fs-gap-value__title {\n display: block;\n font-size: var(--fs-text-lg-size);\n line-height: 1.1;\n font-weight: var(--fs-weight-bold);\n color: var(--fs-gap-ink);\n }\n .fs-gap-value__why {\n display: block;\n margin-top: 3px;\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n color: var(--fs-ink-2);\n }\n\n /* A table column with no values: its header and hatched cells. */\n .fs-gap-col {\n color: var(--fs-gap-ink);\n }\n .fs-gap-col__why {\n display: inline-grid;\n place-items: center;\n width: 20px;\n height: 20px;\n margin: 0 0 0 var(--fs-space-1);\n padding: 0;\n color: var(--fs-gap-ink);\n vertical-align: middle;\n background: transparent;\n border: 0;\n border-radius: var(--fs-radius-sm);\n cursor: pointer;\n }\n .fs-gap-col__why > .fs-icon {\n width: 14px;\n height: 14px;\n }\n .fs-gap-cell {\n background-color: var(--fs-bg-surface);\n background-image: var(--fs-gap-hatch-sm);\n }\n .fs-gap-cell__word {\n font-size: var(--fs-text-body-size);\n font-style: italic;\n color: var(--fs-gap-ink);\n }\n\n /* The header tag: a real button (GZ §9: not a span with role=button). */\n .fs-gap-tag {\n display: inline-flex;\n align-items: center;\n gap: 5px;\n margin: 0;\n padding: 2px var(--fs-space-2) 2px 6px;\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-semibold);\n color: var(--fs-gap-ink);\n white-space: nowrap;\n background: var(--fs-gap-wash);\n border: var(--fs-line-width) solid var(--fs-gap-edge);\n border-radius: var(--fs-radius-pill);\n cursor: pointer;\n }\n .fs-gap-tag > .fs-icon {\n width: 14px;\n height: 14px;\n }\n\n /* The fallback strip above a visual drawn another way (\"show as a table\"). */\n .fs-gap-bar {\n display: flex;\n align-items: center;\n gap: var(--fs-space-2);\n padding: var(--fs-space-1) var(--fs-space-2);\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n color: var(--fs-gap-ink);\n background: var(--fs-gap-wash);\n border: var(--fs-line-width) solid var(--fs-gap-edge);\n border-radius: var(--fs-radius-sm);\n }\n .fs-gap-bar__text {\n flex: 1 1 auto;\n min-width: 0;\n }\n\n @media (hover: hover) {\n .fs-gap-value:hover,\n .fs-gap-tag:hover {\n border-color: var(--fs-gap-fill);\n }\n .fs-gap-col__why:hover {\n background-color: var(--fs-bg-hover);\n }\n }\n\n /* The ring recipe (D15). */\n .fs-gap-value:focus-visible,\n .fs-gap-tag:focus-visible,\n .fs-gap-col__why: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 the hatch: a dashed system-colour border takes its place (06 §7). */\n @media (forced-colors: active) {\n .fs-gap-panel,\n .fs-gap-value,\n .fs-gap-cell {\n background-image: none;\n border: var(--fs-line-width) dashed CanvasText;\n }\n }\n}\n";
|
package/dist/css-text/glass.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Glass (spec 02 I). Usage: glass.md. */\n@layer fs.components {\n /* A modifier on a container block. It is doubled so it beats the block's own surface, whichever\n file comes later in kit.css (the files load alphabetically: card, glass, panel, widget). */\n .fs-glass.fs-glass {\n background
|
|
1
|
+
export default "/* Glass (spec 02 I). Usage: glass.md. */\n@layer fs.components {\n /* A modifier on a container block. It is doubled so it beats the block's own surface, whichever\n file comes later in kit.css (the files load alphabetically: card, glass, panel, widget).\n T60, D36: no border (kept transparent, so the box does not change size), a small radius (the\n controls' size), a thin fill and a gradient from blue at the left to cyan at the right. */\n .fs-glass.fs-glass {\n background: linear-gradient(to right, var(--fs-glass-bg), var(--fs-glass-bg-end));\n border-color: transparent;\n border-radius: var(--fs-radius-sm);\n -webkit-backdrop-filter: blur(var(--fs-glass-blur)) saturate(140%);\n backdrop-filter: blur(var(--fs-glass-blur)) saturate(140%);\n }\n /* The doubled rule above would beat the card's hover edge (same specificity, later file): a glass\n card shows no edge on hover either. */\n @media (hover: hover) {\n .fs-glass.fs-card:hover {\n border-color: transparent;\n }\n }\n /* Without backdrop-filter the fill would let the ground show through unblurred. */\n @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {\n .fs-glass.fs-glass {\n background: var(--fs-bg-surface);\n }\n }\n /* Not decoration: a surface that holds text. Forced colours use the system colours. */\n @media (forced-colors: active) {\n .fs-glass.fs-glass {\n background: Canvas;\n border-color: CanvasText;\n }\n }\n}\n";
|
package/dist/css-text/input.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Text input, textarea and select (spec 02 B). Usage: input.md. */\n@layer fs.components {\n .fs-input,\n .fs-textarea,\n .fs-select__control {\n box-sizing: border-box;\n width: 100%;\n margin: 0;\n padding: 0 var(--fs-pad-x);\n font: inherit;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n color: var(--fs-ink);\n background-color: var(--fs-bg-
|
|
1
|
+
export default "/* Text input, textarea and select (spec 02 B). Usage: input.md. */\n@layer fs.components {\n .fs-input,\n .fs-textarea,\n .fs-select__control {\n box-sizing: border-box;\n width: 100%;\n margin: 0;\n padding: 0 var(--fs-pad-x);\n font: inherit;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n color: var(--fs-ink);\n background-color: var(--fs-bg-sunken);\n border: var(--fs-line-width) solid var(--fs-line-control);\n border-radius: var(--fs-radius-md);\n }\n .fs-input,\n .fs-select__control {\n height: var(--fs-control-h);\n }\n .fs-textarea {\n display: block;\n min-height: calc(var(--fs-text-body-line) * 3 + var(--fs-space-2) * 2);\n padding-block: var(--fs-space-2);\n resize: vertical;\n }\n /* A button that opens a picker (a tree, chips, a calendar) and shows the chosen value. */\n .fs-input--picker {\n display: flex;\n align-items: center;\n text-align: left;\n cursor: pointer;\n }\n .fs-input--num {\n text-align: right;\n font-variant-numeric: tabular-nums;\n }\n .fs-input::placeholder,\n .fs-textarea::placeholder {\n color: var(--fs-ink-muted);\n opacity: 1;\n }\n\n @media (hover: hover) {\n .fs-input:hover,\n .fs-textarea:hover,\n .fs-select__control:hover {\n border-color: var(--fs-ink-2);\n }\n }\n\n /* The ring recipe (D15). */\n .fs-input:focus-visible,\n .fs-textarea:focus-visible,\n .fs-select__control: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-input[aria-invalid='true'],\n .fs-textarea[aria-invalid='true'],\n .fs-select__control[aria-invalid='true'] {\n border-color: var(--fs-danger-fill);\n }\n\n /* Read-only: no control edge, the value in full ink. */\n .fs-input:read-only,\n .fs-textarea:read-only {\n background-color: transparent;\n border-color: transparent;\n }\n .fs-textarea:read-only {\n resize: none;\n }\n\n /* Disabled last. opacity: 1 undoes Safari's own dimming. */\n .fs-input:disabled,\n .fs-textarea:disabled,\n .fs-select__control:disabled {\n color: var(--fs-ink-disabled);\n -webkit-text-fill-color: var(--fs-ink-disabled);\n background-color: var(--fs-bg-disabled);\n border-color: var(--fs-line);\n cursor: not-allowed;\n opacity: 1;\n }\n\n /* Select: a wrapper draws the chevron, since a <select> can't hold a pseudo-element. */\n .fs-select {\n position: relative;\n display: block;\n min-width: 0;\n color: var(--fs-ink-2);\n }\n .fs-select__control {\n appearance: none;\n padding-right: calc(var(--fs-pad-x) * 2 + 16px);\n cursor: pointer;\n }\n .fs-select::after {\n content: '';\n position: absolute;\n top: 0;\n right: var(--fs-pad-x);\n bottom: 0;\n width: 16px;\n margin: auto 0;\n height: 16px;\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='1.875' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\")\n center / contain no-repeat;\n pointer-events: none;\n }\n .fs-select:has(:disabled) {\n color: var(--fs-ink-disabled);\n }\n}\n";
|
package/dist/css-text/kicker.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Kicker and section label (spec 02 E). Usage: kicker.md. */\n@layer fs.components {\n .fs-kicker {\n display: block;\n font-family: var(--fs-font-display);\n font-size: var(--fs-text-
|
|
1
|
+
export default "/* Kicker and section label (spec 02 E). Usage: kicker.md. */\n@layer fs.components {\n .fs-kicker {\n display: block;\n font-family: var(--fs-font-display);\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n font-weight: var(--fs-weight-semibold);\n letter-spacing: var(--fs-tracking-caps-wide);\n text-transform: uppercase;\n color: var(--fs-ink-2);\n }\n /* Drawer section label (T68, D39): Inter 600 12/16, capitals, 0.06em, ink-2. */\n .fs-section-label {\n display: block;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n font-weight: var(--fs-weight-semibold);\n letter-spacing: var(--fs-tracking-caps);\n text-transform: uppercase;\n color: var(--fs-ink-2);\n }\n .fs-kicker.fs-tone-positive {\n color: var(--fs-positive-ink);\n }\n .fs-kicker.fs-tone-gap {\n color: var(--fs-gap-ink);\n }\n .fs-kicker.fs-tone-danger {\n color: var(--fs-danger-ink);\n }\n .fs-kicker.fs-tone-info {\n color: var(--fs-info-ink);\n }\n}\n";
|