@finstack-com-public/design 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +240 -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 +62 -17
- package/dist/css/card.md +18 -2
- 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 +34 -0
- package/dist/css/glass.md +19 -0
- 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 +207 -137
- 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 +36 -0
- package/dist/css/wave.md +43 -0
- 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.d.ts +2 -0
- 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.d.ts +2 -0
- package/dist/css-text/glass.js +1 -0
- package/dist/css-text/input.js +1 -1
- package/dist/css-text/kicker.js +1 -1
- package/dist/css-text/kit.js +6073 -1
- 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.d.ts +2 -0
- 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.d.ts +2 -0
- package/dist/css-text/wave.js +37 -0
- package/dist/css-text/widget.js +1 -1
- package/dist/dom/dialog.js +13 -2
- package/dist/grid.json +2 -2
- package/dist/kit.css +982 -262
- package/dist/motifs/wave.webp +0 -0
- package/dist/react/data.d.ts +34 -0
- package/dist/react/data.js +7 -3
- package/dist/react/util.d.ts +5 -1
- package/dist/react/util.js +10 -2
- package/dist/tokens/color.d.ts +7 -0
- package/dist/tokens/color.js +40 -18
- package/dist/tokens/contrast-pairs.js +43 -6
- package/dist/tokens/contrast.js +2 -0
- package/dist/tokens/density.d.ts +2 -0
- package/dist/tokens/density.js +8 -2
- package/dist/tokens/grid.js +19 -18
- package/dist/tokens/index.d.ts +32 -22
- package/dist/tokens/primitives.d.ts +2 -0
- package/dist/tokens/primitives.js +3 -0
- package/dist/tokens/scale.d.ts +27 -17
- package/dist/tokens/scale.js +26 -14
- package/dist/tokens.json +92 -62
- package/package.json +5 -2
package/dist/css/kpi.css
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
letter-spacing: var(--fs-tracking-tighter);
|
|
16
16
|
}
|
|
17
17
|
.fs-kpi__label {
|
|
18
|
-
font-size: var(--fs-text-
|
|
19
|
-
line-height: var(--fs-text-
|
|
18
|
+
font-size: var(--fs-text-body-size);
|
|
19
|
+
line-height: var(--fs-text-body-line);
|
|
20
20
|
color: var(--fs-ink-2);
|
|
21
21
|
}
|
|
22
22
|
.fs-kpi__secondary {
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
flex-direction: column;
|
|
33
33
|
}
|
|
34
34
|
.fs-kpi__figure {
|
|
35
|
-
font-size: var(--fs-text-
|
|
36
|
-
line-height: var(--fs-text-
|
|
35
|
+
font-size: var(--fs-text-body-size);
|
|
36
|
+
line-height: var(--fs-text-body-line);
|
|
37
37
|
font-weight: var(--fs-weight-semibold);
|
|
38
38
|
font-variant-numeric: tabular-nums;
|
|
39
39
|
}
|
|
40
40
|
.fs-kpi__figure-label {
|
|
41
|
-
font-size: var(--fs-text-
|
|
42
|
-
line-height: var(--fs-text-
|
|
41
|
+
font-size: var(--fs-text-body-size);
|
|
42
|
+
line-height: var(--fs-text-body-line);
|
|
43
43
|
color: var(--fs-ink-muted);
|
|
44
44
|
}
|
|
45
45
|
/* The calculation engine's result box: a 4 px accent edge on the sunken surface. */
|
|
@@ -49,4 +49,118 @@
|
|
|
49
49
|
border-left: 4px solid var(--fs-accent);
|
|
50
50
|
border-radius: var(--fs-radius-sm);
|
|
51
51
|
}
|
|
52
|
+
|
|
53
|
+
/* KPI card, variant D (T71, page plan §1; the Dashboard board's spacing): a flat square card on the page, title row
|
|
54
|
+
with the parameter badge slot, the figure, a change chip, then a hairline and a two-cell footer. Good or bad
|
|
55
|
+
is the chip's colour; the direction is the arrow (a good chip can point down). */
|
|
56
|
+
.fs-kpi--card {
|
|
57
|
+
box-sizing: border-box;
|
|
58
|
+
gap: 0;
|
|
59
|
+
min-height: 176px;
|
|
60
|
+
background: var(--fs-bg-surface);
|
|
61
|
+
border: var(--fs-line-width) solid var(--fs-line);
|
|
62
|
+
border-radius: var(--fs-radius-xl);
|
|
63
|
+
}
|
|
64
|
+
.fs-kpi__body {
|
|
65
|
+
display: flex;
|
|
66
|
+
flex: 1 1 auto;
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
min-width: 0;
|
|
69
|
+
padding: var(--fs-space-4) var(--fs-space-4) var(--fs-space-5);
|
|
70
|
+
}
|
|
71
|
+
.fs-kpi__head {
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
gap: var(--fs-space-2);
|
|
75
|
+
min-width: 0;
|
|
76
|
+
}
|
|
77
|
+
.fs-kpi__title {
|
|
78
|
+
flex: 1 1 auto;
|
|
79
|
+
min-width: 0;
|
|
80
|
+
margin: 0;
|
|
81
|
+
font-size: var(--fs-text-body-size);
|
|
82
|
+
line-height: var(--fs-text-body-line);
|
|
83
|
+
font-weight: var(--fs-weight-semibold);
|
|
84
|
+
color: var(--fs-ink-2);
|
|
85
|
+
}
|
|
86
|
+
.fs-kpi__head > :not(.fs-kpi__title) {
|
|
87
|
+
flex: none;
|
|
88
|
+
}
|
|
89
|
+
.fs-kpi--card .fs-kpi__value {
|
|
90
|
+
margin-top: var(--fs-space-4);
|
|
91
|
+
overflow-wrap: anywhere;
|
|
92
|
+
}
|
|
93
|
+
.fs-kpi__change {
|
|
94
|
+
display: inline-flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
align-self: flex-start;
|
|
97
|
+
gap: var(--fs-space-1);
|
|
98
|
+
box-sizing: border-box;
|
|
99
|
+
height: 22px;
|
|
100
|
+
margin-top: var(--fs-space-3);
|
|
101
|
+
padding: 0 var(--fs-space-2);
|
|
102
|
+
font-size: var(--fs-text-body-size);
|
|
103
|
+
line-height: var(--fs-text-body-line);
|
|
104
|
+
font-weight: var(--fs-weight-semibold);
|
|
105
|
+
font-variant-numeric: tabular-nums;
|
|
106
|
+
white-space: nowrap;
|
|
107
|
+
border-radius: var(--fs-radius-sm);
|
|
108
|
+
}
|
|
109
|
+
.fs-kpi__change > .fs-icon {
|
|
110
|
+
width: 12px;
|
|
111
|
+
height: 12px;
|
|
112
|
+
}
|
|
113
|
+
.fs-kpi__change--good {
|
|
114
|
+
color: var(--fs-positive-ink);
|
|
115
|
+
background: var(--fs-positive-wash);
|
|
116
|
+
}
|
|
117
|
+
.fs-kpi__change--bad {
|
|
118
|
+
color: var(--fs-danger-ink);
|
|
119
|
+
background: var(--fs-danger-wash);
|
|
120
|
+
}
|
|
121
|
+
.fs-kpi__footer {
|
|
122
|
+
display: grid;
|
|
123
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
124
|
+
height: 32px;
|
|
125
|
+
font-variant-numeric: tabular-nums;
|
|
126
|
+
border-top: var(--fs-line-width) solid var(--fs-line);
|
|
127
|
+
}
|
|
128
|
+
.fs-kpi__cell {
|
|
129
|
+
display: flex;
|
|
130
|
+
align-items: center;
|
|
131
|
+
min-width: 0;
|
|
132
|
+
padding: 0 var(--fs-space-4);
|
|
133
|
+
overflow: hidden;
|
|
134
|
+
white-space: nowrap;
|
|
135
|
+
text-overflow: ellipsis;
|
|
136
|
+
}
|
|
137
|
+
.fs-kpi__cell + .fs-kpi__cell {
|
|
138
|
+
color: var(--fs-ink-muted);
|
|
139
|
+
border-left: var(--fs-line-width) solid var(--fs-line);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* The error fits the card: an icon, two lines and a retry button, with no red edge. */
|
|
143
|
+
.fs-kpi__error {
|
|
144
|
+
display: flex;
|
|
145
|
+
align-items: flex-start;
|
|
146
|
+
gap: var(--fs-space-2);
|
|
147
|
+
margin-top: var(--fs-space-4);
|
|
148
|
+
}
|
|
149
|
+
.fs-kpi__error > .fs-icon {
|
|
150
|
+
margin-top: 0;
|
|
151
|
+
color: var(--fs-danger-ink);
|
|
152
|
+
}
|
|
153
|
+
.fs-kpi__error-text {
|
|
154
|
+
display: flex;
|
|
155
|
+
flex-direction: column;
|
|
156
|
+
min-width: 0;
|
|
157
|
+
}
|
|
158
|
+
.fs-kpi__error-detail {
|
|
159
|
+
color: var(--fs-ink-muted);
|
|
160
|
+
}
|
|
161
|
+
.fs-kpi__retry {
|
|
162
|
+
display: flex;
|
|
163
|
+
margin-top: var(--fs-space-3);
|
|
164
|
+
padding-left: var(--fs-space-6);
|
|
165
|
+
}
|
|
52
166
|
}
|
package/dist/css/kpi.md
CHANGED
|
@@ -13,7 +13,34 @@ Spec 02 F. CSS: `css/kpi.css` (figure tones in `css/utilities.css`). Gallery: `d
|
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
- `role="list"` keeps the list's semantics in Safari with VoiceOver, which drops them from a list styled `list-style: none`.
|
|
16
|
-
- The main figure is 32
|
|
16
|
+
- The main figure is Inter 600 24/32 (`fig-lg`), tabular, tightly tracked; secondary figures are 14 px with
|
|
17
17
|
11 px labels. Tones: `fs-fig--good`, `--bad`, `--plain`, always with the sign.
|
|
18
18
|
- `fs-kpi--result`: the calculation engine's result box (4 px accent edge on the sunken surface).
|
|
19
19
|
- An explainable figure is a `<button class="fs-value fs-value--explainable">` inside `__value`.
|
|
20
|
+
|
|
21
|
+
## KPI card, variant D — `.fs-kpi--card` (T71)
|
|
22
|
+
|
|
23
|
+
The dashboard card of the BI lane look (D37, D39): flat, square, a 1 px `--fs-line` edge on the page, no shadow.
|
|
24
|
+
|
|
25
|
+
```html
|
|
26
|
+
<article class="fs-kpi fs-kpi--card">
|
|
27
|
+
<div class="fs-kpi__body">
|
|
28
|
+
<div class="fs-kpi__head"><h3 class="fs-kpi__title">Revenue</h3><!-- the parameter badge (T72) goes here --></div>
|
|
29
|
+
<div class="fs-kpi__value">907 949,7 €</div>
|
|
30
|
+
<span class="fs-kpi__change fs-kpi__change--bad"><svg class="fs-icon" role="img" aria-label="Down">…</svg>−5,16 %</span>
|
|
31
|
+
</div>
|
|
32
|
+
<div class="fs-kpi__footer"><span class="fs-kpi__cell">957 343,4 €</span><span class="fs-kpi__cell">202511</span></div>
|
|
33
|
+
</article>
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
- Spacing (the Dashboard board): padding 16 (bottom 20), title to figure 16, figure to chip 12, footer row 32, minimum
|
|
37
|
+
height 176. The title is Inter 600 12/16 in `ink-2` (T68); the figure is `fig-lg` 24/32.
|
|
38
|
+
- `__change`: a 22 px chip with 4 px corners. `--good` uses the positive tone, `--bad` the danger tone: **colour says good or
|
|
39
|
+
bad, the arrow says the direction**, so a good chip can point down. The arrow is an icon with an accessible name
|
|
40
|
+
(`aria-label="Down"`), so the direction does not rest on colour.
|
|
41
|
+
- `__footer`: a hairline, then two cells, comparison value | comparison period (the second in `ink-muted`).
|
|
42
|
+
- No comparison: leave out the chip and the footer. The title row's slot takes any control (`flex: none`).
|
|
43
|
+
- Error: swap the figure and chip for `__error` (a `circle-alert` icon in `danger-ink`, `__error-text` with a message and an
|
|
44
|
+
`__error-detail` line) and `__retry` holding a normal `.fs-button`. The card keeps its `--fs-line` edge: no red edge.
|
|
45
|
+
- React: `<KpiCard title badge value change comparison error />`. The existing `.fs-kpi` (value, label, secondary figures) and
|
|
46
|
+
`--result` are unchanged.
|
package/dist/css/link.css
CHANGED
package/dist/css/menu.css
CHANGED
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
}
|
|
29
29
|
.fs-menu__group-label {
|
|
30
30
|
padding: var(--fs-space-2) var(--fs-space-2) var(--fs-space-1);
|
|
31
|
-
font-size: var(--fs-text-
|
|
32
|
-
line-height: var(--fs-text-
|
|
31
|
+
font-size: var(--fs-text-body-size);
|
|
32
|
+
line-height: var(--fs-text-body-line);
|
|
33
33
|
font-weight: var(--fs-weight-semibold);
|
|
34
34
|
letter-spacing: var(--fs-tracking-caps);
|
|
35
35
|
text-transform: uppercase;
|
package/dist/css/meter.css
CHANGED
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
overflow: hidden;
|
|
9
9
|
vertical-align: middle;
|
|
10
10
|
background: var(--fs-line);
|
|
11
|
-
border-radius:
|
|
11
|
+
border-radius: var(--fs-radius-sm);
|
|
12
12
|
}
|
|
13
13
|
.fs-meter--lg {
|
|
14
14
|
width: 120px;
|
|
15
15
|
height: 8px;
|
|
16
|
-
border-radius:
|
|
16
|
+
border-radius: var(--fs-radius-sm);
|
|
17
17
|
}
|
|
18
18
|
.fs-meter__fill {
|
|
19
19
|
display: block;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* Page and page header (spec 02 C, T69). Usage: page.md. Spacing only: the page grid is the product's. */
|
|
2
|
+
@layer fs.components {
|
|
3
|
+
.fs-page {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: var(--fs-size-page-gap);
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
min-width: 0;
|
|
9
|
+
padding: var(--fs-size-page-top) var(--fs-size-page-x) var(--fs-size-page-bottom);
|
|
10
|
+
color: var(--fs-ink);
|
|
11
|
+
background: var(--fs-bg-page);
|
|
12
|
+
}
|
|
13
|
+
/* Breadcrumb, 12 px, the title, an optional caption 4 px under it, then 32 px to the content. */
|
|
14
|
+
.fs-page-header {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
gap: var(--fs-size-page-header-gap);
|
|
18
|
+
margin-bottom: calc(var(--fs-size-page-header-after) - var(--fs-size-page-gap));
|
|
19
|
+
}
|
|
20
|
+
.fs-page-header__title {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
gap: var(--fs-size-page-caption-gap);
|
|
24
|
+
min-width: 0;
|
|
25
|
+
}
|
|
26
|
+
.fs-page-header__caption {
|
|
27
|
+
margin: 0;
|
|
28
|
+
color: var(--fs-ink-muted);
|
|
29
|
+
}
|
|
30
|
+
/* A row of widgets: the 8 px gap, square edges. Columns are the product's (BI App sets the minimum). */
|
|
31
|
+
.fs-widget-row {
|
|
32
|
+
display: grid;
|
|
33
|
+
grid-template-columns: repeat(auto-fill, minmax(var(--fs-widget-min, 264px), 1fr));
|
|
34
|
+
gap: var(--fs-size-widget-gap);
|
|
35
|
+
}
|
|
36
|
+
}
|
package/dist/css/page.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Page and page header — `.fs-page`, `.fs-page-header`, `.fs-widget-row`
|
|
2
|
+
|
|
3
|
+
Spec 02 C. CSS: `css/page.css`. Gallery: `feedback.html` (the title roles cell). T69, page plan §1.
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<main class="fs-page">
|
|
7
|
+
<header class="fs-page-header">
|
|
8
|
+
<nav class="fs-breadcrumbs" aria-label="Breadcrumb">…</nav>
|
|
9
|
+
<div class="fs-page-header__title">
|
|
10
|
+
<h1 class="fs-page-title">Revenue by site</h1>
|
|
11
|
+
<p class="fs-page-header__caption">Actual against budget, 2027</p>
|
|
12
|
+
</div>
|
|
13
|
+
</header>
|
|
14
|
+
<section class="fs-widget-row">
|
|
15
|
+
<article class="fs-widget">…</article>
|
|
16
|
+
</section>
|
|
17
|
+
</main>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
- `.fs-page` pads 24 top, 32 sides, 32 bottom (`--fs-size-page-top`, `-x`, `-bottom`) and puts its sections 24 apart
|
|
21
|
+
(`--fs-size-page-gap`). It sets no width: cap it with `--fs-size-content` if the page needs it.
|
|
22
|
+
- `.fs-page-header` is the breadcrumb, 12 px (`--fs-size-page-header-gap`), then the title, with an optional caption 4 px under
|
|
23
|
+
the title (`--fs-size-page-caption-gap`), and 32 px from the title to the content (`--fs-size-page-header-after`; the
|
|
24
|
+
header takes the 24 px section gap off its own bottom margin). The title is `.fs-page-title` (Plus Jakarta Sans 24/32, T68).
|
|
25
|
+
- `.fs-widget-row` is a grid with the 8 px gap (`--fs-size-widget-gap`) between square widgets. Its columns repeat at
|
|
26
|
+
`--fs-widget-min` (default 264 px, the KPI grid's minimum; set 420 px for a chart grid). BI App's page grid, its
|
|
27
|
+
spans and its edit mode stay BI App's own (bi-app T220).
|
|
28
|
+
- The density tokens do not change these: the page spacing is the same in dense, compact and comfortable.
|
package/dist/css/panel.css
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
background: var(--fs-bg-surface);
|
|
8
8
|
border: var(--fs-line-width) solid var(--fs-line);
|
|
9
9
|
border-radius: var(--fs-radius-xl);
|
|
10
|
-
box-shadow: var(--fs-shadow-1);
|
|
11
10
|
}
|
|
12
11
|
.fs-panel--flat {
|
|
13
12
|
background: transparent;
|
|
@@ -22,9 +21,8 @@
|
|
|
22
21
|
}
|
|
23
22
|
.fs-panel__title {
|
|
24
23
|
margin: 0;
|
|
25
|
-
font-
|
|
26
|
-
|
|
27
|
-
line-height: var(--fs-text-md-line);
|
|
24
|
+
font-size: var(--fs-text-body-size);
|
|
25
|
+
line-height: var(--fs-text-body-line);
|
|
28
26
|
font-weight: var(--fs-weight-semibold);
|
|
29
27
|
color: var(--fs-ink-2);
|
|
30
28
|
}
|
package/dist/css/panel.md
CHANGED
|
@@ -10,5 +10,5 @@ Spec 02 D. CSS: `css/panel.css`. Gallery: `overlays.html`.
|
|
|
10
10
|
</section>
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
- A surface with a 1 px line, a
|
|
13
|
+
- A surface with a 1 px line, a square corner (`--fs-radius-xl`, 0 since T66) and no shadow (flat since T67): the calculation
|
|
14
14
|
engine's view cards, the base of the widget frame. `fs-panel--flat` drops the edge, the surface and the shadow.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* Parameter badge: how many parameters reach a widget (spec 02 A, T72). Usage: param-badge.md. */
|
|
2
|
+
@layer fs.components {
|
|
3
|
+
.fs-param-badge {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
flex: none;
|
|
6
|
+
align-items: center;
|
|
7
|
+
gap: var(--fs-space-1);
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
height: 20px;
|
|
10
|
+
margin: 0;
|
|
11
|
+
padding: 0 7px;
|
|
12
|
+
font: inherit;
|
|
13
|
+
font-size: var(--fs-text-body-size);
|
|
14
|
+
line-height: var(--fs-text-body-line);
|
|
15
|
+
font-weight: var(--fs-weight-semibold);
|
|
16
|
+
font-variant-numeric: tabular-nums;
|
|
17
|
+
color: var(--fs-accent);
|
|
18
|
+
white-space: nowrap;
|
|
19
|
+
background: var(--fs-accent-wash);
|
|
20
|
+
/* A badge is a pill (D37: pills for counts, badges and switches), so 20 px high is the page plan's "radius 10". */
|
|
21
|
+
border: 0;
|
|
22
|
+
border-radius: var(--fs-radius-pill);
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
}
|
|
25
|
+
.fs-param-badge > .fs-icon {
|
|
26
|
+
width: 12px;
|
|
27
|
+
height: 12px;
|
|
28
|
+
}
|
|
29
|
+
@media (hover: hover) {
|
|
30
|
+
.fs-param-badge:hover {
|
|
31
|
+
box-shadow: inset 0 0 0 var(--fs-line-width) var(--fs-accent);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* The ring recipe (D15). */
|
|
36
|
+
.fs-param-badge:focus-visible {
|
|
37
|
+
outline: var(--fs-ring-width) solid var(--fs-ring);
|
|
38
|
+
outline-offset: var(--fs-ring-halo-width);
|
|
39
|
+
box-shadow: 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* The wash is a fill, so forced colours draws the badge's edge instead. */
|
|
43
|
+
@media (forced-colors: active) {
|
|
44
|
+
.fs-param-badge {
|
|
45
|
+
border: var(--fs-line-width) solid ButtonText;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Parameter badge — `.fs-param-badge`
|
|
2
|
+
|
|
3
|
+
Spec 02 A. CSS: `css/param-badge.css` (the tip is `css/tooltip.css`, `--list`). Gallery: `overlays.html` and `data.html`.
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<button class="fs-param-badge" id="b1" aria-label="1 parameter">
|
|
7
|
+
<svg class="fs-icon fs-icon-sliders-horizontal" aria-hidden="true">…</svg>1
|
|
8
|
+
</button>
|
|
9
|
+
<div class="fs-tooltip fs-tooltip--list" id="b1-tip" hidden>
|
|
10
|
+
<span class="fs-tooltip__title">Parameters</span>
|
|
11
|
+
<span class="fs-tooltip__item">Scenario: A - Actual</span>
|
|
12
|
+
</div>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
- Shows how many parameters reach a widget (BI App F37). 20 px high, `accent` text on `accent-wash` (5.5:1), the
|
|
16
|
+
`sliders-horizontal` icon at 12 px and the count. It is a **pill**: D37 allows pills for counts, badges and switches, and at
|
|
17
|
+
20 px high the pill is the canvas's "radius 10".
|
|
18
|
+
- A real `<button>` with a name that carries the count ("1 parameter"); the number alone says nothing to a screen reader.
|
|
19
|
+
- The tip is the existing tooltip, so `createTooltip(badge, tip)` gives hover and keyboard focus (500 ms), Escape, hoverable and
|
|
20
|
+
`aria-describedby`. `.fs-tooltip--list` is the light variant for a list: 200 px wide, surface fill, `--fs-line` edge, 4 px
|
|
21
|
+
corners, `--fs-shadow-tooltip`, a semibold `__title` and one `__item` per parameter and its value.
|
|
22
|
+
- It sits in `.fs-kpi__head` of the KPI card, and in any widget head that a parameter reaches.
|
package/dist/css/popover.css
CHANGED
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
}
|
|
18
18
|
.fs-popover__kicker {
|
|
19
19
|
display: block;
|
|
20
|
-
font-size: var(--fs-text-
|
|
21
|
-
line-height: var(--fs-text-
|
|
20
|
+
font-size: var(--fs-text-body-size);
|
|
21
|
+
line-height: var(--fs-text-body-line);
|
|
22
22
|
font-weight: var(--fs-weight-semibold);
|
|
23
23
|
letter-spacing: var(--fs-tracking-caps);
|
|
24
24
|
text-transform: uppercase;
|
|
@@ -29,9 +29,10 @@
|
|
|
29
29
|
align-items: center;
|
|
30
30
|
gap: var(--fs-space-2);
|
|
31
31
|
margin: var(--fs-space-1) 0 var(--fs-space-2);
|
|
32
|
-
font-size: var(--fs-text-
|
|
33
|
-
line-height: var(--fs-text-
|
|
32
|
+
font-size: var(--fs-text-body-size);
|
|
33
|
+
line-height: var(--fs-text-body-line);
|
|
34
34
|
font-weight: var(--fs-weight-semibold);
|
|
35
|
+
color: var(--fs-ink-2);
|
|
35
36
|
}
|
|
36
37
|
.fs-popover__body {
|
|
37
38
|
display: grid;
|
package/dist/css/problems.css
CHANGED
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
/* A path for the calculation engine's panel ("Sales.Margin.Q1 — message"): mono. Put it before the message. */
|
|
51
51
|
.fs-problems__location--path {
|
|
52
52
|
font-family: var(--fs-font-mono);
|
|
53
|
-
font-size: var(--fs-text-
|
|
53
|
+
font-size: var(--fs-text-body-size);
|
|
54
54
|
overflow-wrap: anywhere;
|
|
55
55
|
text-align: left;
|
|
56
56
|
}
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
.fs-problems__summary {
|
|
61
61
|
margin: 0;
|
|
62
62
|
padding: var(--fs-space-1) var(--fs-space-3);
|
|
63
|
-
font-size: var(--fs-text-
|
|
63
|
+
font-size: var(--fs-text-body-size);
|
|
64
64
|
font-weight: var(--fs-weight-semibold);
|
|
65
65
|
color: var(--fs-ink-muted);
|
|
66
66
|
}
|
package/dist/css/progress.css
CHANGED
package/dist/css/segmented.css
CHANGED
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
border-left: var(--fs-line-width) solid var(--fs-line-button);
|
|
32
32
|
}
|
|
33
33
|
.fs-segmented__item:first-child {
|
|
34
|
-
border-radius:
|
|
34
|
+
border-radius: var(--fs-radius-sm) 0 0 var(--fs-radius-sm);
|
|
35
35
|
}
|
|
36
36
|
.fs-segmented__item:last-child {
|
|
37
|
-
border-radius: 0
|
|
37
|
+
border-radius: 0 var(--fs-radius-sm) var(--fs-radius-sm) 0;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
@media (hover: hover) {
|
package/dist/css/sheet.css
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
background: var(--fs-bg-surface);
|
|
15
15
|
border: 0;
|
|
16
16
|
border-left: var(--fs-line-width) solid var(--fs-line-strong);
|
|
17
|
-
border-radius: var(--fs-radius-lg)
|
|
18
|
-
box-shadow: var(--fs-shadow-
|
|
17
|
+
border-radius: var(--fs-radius-lg);
|
|
18
|
+
box-shadow: var(--fs-shadow-drawer);
|
|
19
19
|
}
|
|
20
20
|
.fs-sheet[open],
|
|
21
21
|
.fs-sheet--docked {
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
flex: 1 1 auto;
|
|
54
54
|
margin: 0;
|
|
55
55
|
font-family: var(--fs-font-display);
|
|
56
|
-
font-size: var(--fs-text-
|
|
57
|
-
line-height: var(--fs-text-
|
|
56
|
+
font-size: var(--fs-text-lg-size);
|
|
57
|
+
line-height: var(--fs-text-lg-line);
|
|
58
58
|
font-weight: var(--fs-weight-semibold);
|
|
59
59
|
}
|
|
60
60
|
.fs-sheet__body {
|
package/dist/css/sidenav.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
.fs-sidenav {
|
|
4
4
|
box-sizing: border-box;
|
|
5
5
|
width: var(--fs-size-nav);
|
|
6
|
-
padding: var(--fs-space-2);
|
|
6
|
+
padding: var(--fs-space-2) 0;
|
|
7
7
|
overflow-y: auto;
|
|
8
8
|
background: var(--fs-bg-chrome);
|
|
9
9
|
border-right: var(--fs-line-width) solid var(--fs-line);
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
gap: var(--fs-space-2);
|
|
23
23
|
box-sizing: border-box;
|
|
24
24
|
min-height: var(--fs-row-h);
|
|
25
|
-
padding: 0 var(--fs-space-
|
|
25
|
+
padding: 0 var(--fs-space-4);
|
|
26
26
|
font-size: var(--fs-text-body-size);
|
|
27
27
|
line-height: var(--fs-text-body-line);
|
|
28
28
|
color: var(--fs-ink-2);
|
|
29
29
|
text-decoration: none;
|
|
30
|
-
border-radius:
|
|
30
|
+
border-radius: 0;
|
|
31
31
|
}
|
|
32
32
|
.fs-sidenav__item > .fs-icon {
|
|
33
33
|
flex: none;
|
|
@@ -40,12 +40,11 @@
|
|
|
40
40
|
background-color: var(--fs-bg-hover);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
/* Current:
|
|
43
|
+
/* Current: a full-width, square row on the selection wash, plus weight (T61, owner K4). No bar. */
|
|
44
44
|
.fs-sidenav__item[aria-current='page'] {
|
|
45
45
|
color: var(--fs-ink);
|
|
46
46
|
font-weight: var(--fs-weight-semibold);
|
|
47
47
|
background-color: var(--fs-bg-selected);
|
|
48
|
-
box-shadow: inset 2px 0 0 var(--fs-accent);
|
|
49
48
|
}
|
|
50
49
|
|
|
51
50
|
/* The ring recipe (D15). */
|
package/dist/css/sidenav.md
CHANGED
|
@@ -12,5 +12,5 @@ Spec 02 C (BI App's side menu). CSS: `css/sidenav.css`. Gallery: `navigation.htm
|
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
- `role="list"` keeps the list's semantics in Safari with VoiceOver, which drops them from a list styled `list-style: none`.
|
|
15
|
-
- Current: `aria-current="page"`, drawn
|
|
15
|
+
- Current: `aria-current="page"`, drawn as a full-width, square (radius 0) row on the selection wash (`--fs-bg-selected`) in weight 600. No bar (T61). The list has no side padding so the row spans the nav.
|
|
16
16
|
- To collapse it, the product toggles `hidden` on the nav and `aria-expanded` on its menu button.
|
package/dist/css/site.css
CHANGED
|
@@ -19,8 +19,9 @@
|
|
|
19
19
|
}
|
|
20
20
|
.fs-site-header__wordmark {
|
|
21
21
|
font-family: var(--fs-font-display);
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
/* The site's brand mark, not an interface title: its own 18/26, off the type scale (T68). */
|
|
23
|
+
font-size: 18px;
|
|
24
|
+
line-height: 26px;
|
|
24
25
|
font-weight: var(--fs-weight-bold);
|
|
25
26
|
letter-spacing: var(--fs-tracking-tight);
|
|
26
27
|
color: var(--fs-ink);
|
package/dist/css/stacked-bar.css
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
gap: 2px;
|
|
7
7
|
height: 10px;
|
|
8
8
|
overflow: hidden;
|
|
9
|
-
border-radius:
|
|
9
|
+
border-radius: var(--fs-radius-sm);
|
|
10
10
|
}
|
|
11
11
|
.fs-stacked-bar__segment {
|
|
12
12
|
min-width: 2px;
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
flex: none;
|
|
44
44
|
width: 9px;
|
|
45
45
|
height: 9px;
|
|
46
|
-
background: var(--fs-line-control);
|
|
46
|
+
background: var(--fs-line-control-strong);
|
|
47
47
|
border-radius: 50%;
|
|
48
48
|
}
|
|
49
49
|
.fs-legend__dot--exact {
|
package/dist/css/tabbar.css
CHANGED
|
@@ -2,24 +2,26 @@
|
|
|
2
2
|
@layer fs.components {
|
|
3
3
|
.fs-tabbar {
|
|
4
4
|
display: flex;
|
|
5
|
-
align-items:
|
|
6
|
-
gap: 2px;
|
|
5
|
+
align-items: stretch;
|
|
7
6
|
box-sizing: border-box;
|
|
8
7
|
height: var(--fs-size-tabbar);
|
|
9
|
-
padding: 0
|
|
10
|
-
|
|
8
|
+
padding: 0;
|
|
9
|
+
background-color: var(--fs-bg-chrome);
|
|
10
|
+
border-bottom: var(--fs-line-width) solid var(--fs-line);
|
|
11
11
|
}
|
|
12
12
|
.fs-tabbar__item {
|
|
13
13
|
position: relative;
|
|
14
14
|
display: flex;
|
|
15
15
|
align-items: center;
|
|
16
16
|
box-sizing: border-box;
|
|
17
|
-
height: 100
|
|
17
|
+
height: calc(100% + var(--fs-line-width));
|
|
18
18
|
min-width: 0;
|
|
19
19
|
margin-bottom: calc(-1 * var(--fs-line-width));
|
|
20
20
|
border: var(--fs-line-width) solid transparent;
|
|
21
|
-
border-
|
|
22
|
-
border-
|
|
21
|
+
border-block-width: 0;
|
|
22
|
+
border-inline-start-width: 0;
|
|
23
|
+
border-inline-end-color: var(--fs-line);
|
|
24
|
+
border-radius: 0;
|
|
23
25
|
}
|
|
24
26
|
.fs-tabbar__tab {
|
|
25
27
|
display: flex;
|
|
@@ -28,7 +30,7 @@
|
|
|
28
30
|
height: 100%;
|
|
29
31
|
min-width: 0;
|
|
30
32
|
margin: 0;
|
|
31
|
-
padding: 0 var(--fs-space-
|
|
33
|
+
padding: 0 var(--fs-space-3);
|
|
32
34
|
font: inherit;
|
|
33
35
|
font-size: var(--fs-text-body-size);
|
|
34
36
|
color: var(--fs-ink-2);
|
|
@@ -52,8 +54,8 @@
|
|
|
52
54
|
display: inline-grid;
|
|
53
55
|
place-items: center;
|
|
54
56
|
flex: none;
|
|
55
|
-
width:
|
|
56
|
-
height:
|
|
57
|
+
width: 20px;
|
|
58
|
+
height: 20px;
|
|
57
59
|
margin-right: var(--fs-space-1);
|
|
58
60
|
color: var(--fs-ink-muted);
|
|
59
61
|
border-radius: var(--fs-radius-sm);
|
|
@@ -74,14 +76,35 @@
|
|
|
74
76
|
}
|
|
75
77
|
}
|
|
76
78
|
|
|
77
|
-
/* Selected:
|
|
79
|
+
/* Selected: white and semibold, joined to the page below (no bottom line under it). No accent line or
|
|
80
|
+
marker, no blue (T70). Full height, square, no top border (T63). */
|
|
78
81
|
.fs-tabbar__item:has(> [aria-selected='true']) {
|
|
79
82
|
background-color: var(--fs-bg-surface);
|
|
80
|
-
border-color: var(--fs-line-strong);
|
|
81
83
|
}
|
|
82
84
|
.fs-tabbar__tab[aria-selected='true'] {
|
|
83
85
|
color: var(--fs-ink);
|
|
84
|
-
font-weight: var(--fs-weight-
|
|
86
|
+
font-weight: var(--fs-weight-semibold);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* Grizzbi's tabs sit under the canvas: padding 0 16 and a hairline on top instead of below. */
|
|
90
|
+
.fs-tabbar--under {
|
|
91
|
+
border-top: var(--fs-line-width) solid var(--fs-line);
|
|
92
|
+
border-bottom: 0;
|
|
93
|
+
}
|
|
94
|
+
.fs-tabbar--under .fs-tabbar__tab {
|
|
95
|
+
padding: 0 var(--fs-space-4);
|
|
96
|
+
}
|
|
97
|
+
.fs-tabbar--under .fs-tabbar__item {
|
|
98
|
+
margin-top: calc(-1 * var(--fs-line-width));
|
|
99
|
+
margin-bottom: 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* Forced colours drops the fills: the selected tab keeps both side edges in the system text colour, and the
|
|
103
|
+
bar's bottom line stops under it, so it is told apart without colour (T41's cue, T70). */
|
|
104
|
+
@media (forced-colors: active) {
|
|
105
|
+
.fs-tabbar__item:has(> [aria-selected='true']) {
|
|
106
|
+
border-inline: var(--fs-line-width) solid CanvasText;
|
|
107
|
+
}
|
|
85
108
|
}
|
|
86
109
|
|
|
87
110
|
/* The ring recipe (D15). */
|
package/dist/css/tabbar.md
CHANGED
|
@@ -20,4 +20,7 @@ Gallery: `navigation.html`.
|
|
|
20
20
|
product removes the tab and calls `tabs.update()`.
|
|
21
21
|
- A fixed tab has no close mark. Names cut with "…" at 160 px; give the tab a `title` with the
|
|
22
22
|
full name.
|
|
23
|
-
- Selected: the tab joins the page below
|
|
23
|
+
- Selected: the tab is white (`--fs-bg-surface`) and semibold, and joins the page below. It has no accent line or marker and no blue (T70).
|
|
24
|
+
Tabs fill the bar's full height and have square corners (T63). The bar is 40 px on `--fs-bg-chrome` (`#f7f8fa`), with
|
|
25
|
+
tab padding 0 12 and a hairline on the right of each tab. In forced colours the selected tab keeps both side edges in `CanvasText`.
|
|
26
|
+
- `fs-tabbar--under` is for Grizzbi's tabs under the canvas: padding 0 16 and a hairline on top instead of below.
|