@finstack-com-public/design 0.7.0 → 0.8.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 +35 -1
- package/dist/css/calendar.css +172 -0
- package/dist/css/calendar.md +169 -0
- package/dist/css/input.css +4 -2
- package/dist/css/input.md +3 -1
- package/dist/css/popover.css +7 -0
- package/dist/css/popover.md +2 -0
- package/dist/css/wave.css +20 -5
- package/dist/css/wave.md +6 -3
- package/dist/css-text/calendar.d.ts +2 -0
- package/dist/css-text/calendar.js +1 -0
- package/dist/css-text/input.js +1 -1
- package/dist/css-text/kit.js +204 -7
- package/dist/css-text/popover.js +1 -1
- package/dist/css-text/wave.js +20 -5
- package/dist/dom/calendar-dates.d.ts +45 -0
- package/dist/dom/calendar-dates.js +129 -0
- package/dist/dom/calendar.d.ts +79 -0
- package/dist/dom/calendar.js +396 -0
- package/dist/dom/index.d.ts +1 -0
- package/dist/dom/index.js +1 -0
- package/dist/kit.css +204 -7
- package/dist/react/inputs.d.ts +23 -2
- package/dist/react/inputs.js +55 -2
- package/dist/react/overlays.d.ts +15 -15
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,41 @@
|
|
|
3
3
|
Written by hand for each release. Token names, class names, file paths and exports are the
|
|
4
4
|
public API. While the kit is 0.x, a minor version may break them, and its entry says so.
|
|
5
5
|
|
|
6
|
-
## 0.
|
|
6
|
+
## 0.8.0 — unreleased
|
|
7
|
+
|
|
8
|
+
Nothing breaks: everything here is new. Upgrading from 0.7.1 needs no change.
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **Calendar (T83, D42):** `.fs-calendar` with year, month and day views, and `createCalendar(root, options)` in
|
|
13
|
+
`dom`, which builds the grid into an empty root. `granularity: 'month'` stops at the month view (a monthly period
|
|
14
|
+
picker) and `'day'` goes down to days. Values, `min`, `max` and `today` are ISO strings (`YYYY-MM`, `YYYY-MM-DD`),
|
|
15
|
+
never `Date`s. The kit holds no words: you pass the month and weekday names, the `heading` and the day cells'
|
|
16
|
+
`cellLabel` formatters, and the previous/next labels. `weekStart` defaults to Monday. Keyboard: arrows, Home/End,
|
|
17
|
+
PageUp/PageDown (Shift for a year), Enter/Space. Emits `fs-change` with `{ value }`. See `css/calendar.md`.
|
|
18
|
+
The date maths is importable as `dom/calendar-dates`.
|
|
19
|
+
- **React `Calendar` (T84):** controlled (`value`) or uncontrolled (`defaultValue`), `onChange(value)`, `autoFocus`.
|
|
20
|
+
Server rendering outputs the empty root; the grid appears on mount.
|
|
21
|
+
- **Date-picker recipe (T84):** a `.fs-input--picker` button, a `.fs-popover` with the calendar in it, and
|
|
22
|
+
`createPopover` with `focus: 'none'` (focus goes to the value cell). Picking closes it and returns focus to the
|
|
23
|
+
button. In `css/calendar.md`, for plain DOM and React.
|
|
24
|
+
- **`.fs-popover--fit` (T84):** a popover as wide as its content, with no padding, for the calendar.
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
- **Picker buttons keep their box (T84):** `.fs-input--picker` drew no fill and no edge, because `.fs-input:read-only`
|
|
29
|
+
matched the `<button>` (CSS `:read-only` matches anything not editable). Inline fields and control rows looked right
|
|
30
|
+
because they strip the box anyway; a picker in a stacked field now shows its box like any input.
|
|
31
|
+
|
|
32
|
+
## 0.7.1 — 2026-11-08
|
|
33
|
+
|
|
34
|
+
### Fixed
|
|
35
|
+
|
|
36
|
+
- **Wave on wide bands (T82):** `.fs-wave` no longer crops off the crest. The wave is fitted to the band's height (`--fs-wave-height`),
|
|
37
|
+
centred and bottom-anchored; a band wider than height x 5.716 shows the wave at that width with both edges fading out. Narrower
|
|
38
|
+
bands look as before. See `css/wave.md`.
|
|
39
|
+
|
|
40
|
+
## 0.7.0 — 2026-11-08
|
|
7
41
|
|
|
8
42
|
### Upgrading from 0.6.0
|
|
9
43
|
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/* Calendar (spec 02 B): year, month and day views. Usage: calendar.md. Behaviour: createCalendar,
|
|
2
|
+
which renders the header and the grid into an empty .fs-calendar (D42). */
|
|
3
|
+
@layer fs.components {
|
|
4
|
+
.fs-calendar {
|
|
5
|
+
/* One cell's width: seven make the calendar, so it follows the density. */
|
|
6
|
+
--fs-calendar-cell: var(--fs-control-h);
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
gap: var(--fs-space-1);
|
|
10
|
+
box-sizing: content-box;
|
|
11
|
+
width: calc(7 * var(--fs-calendar-cell));
|
|
12
|
+
padding: var(--fs-space-2);
|
|
13
|
+
font-size: var(--fs-text-body-size);
|
|
14
|
+
line-height: var(--fs-text-body-line);
|
|
15
|
+
color: var(--fs-ink);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.fs-calendar__header {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
gap: var(--fs-space-1);
|
|
22
|
+
height: var(--fs-control-h);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* Shows the page's heading; steps up a view. In the top view it is the heading alone. */
|
|
26
|
+
.fs-calendar__view {
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
gap: var(--fs-space-1);
|
|
30
|
+
box-sizing: border-box;
|
|
31
|
+
min-width: 0;
|
|
32
|
+
height: var(--fs-control-h);
|
|
33
|
+
margin: 0 auto 0 0;
|
|
34
|
+
padding: 0 var(--fs-pad-x);
|
|
35
|
+
font: inherit;
|
|
36
|
+
font-weight: var(--fs-weight-semibold);
|
|
37
|
+
color: var(--fs-ink);
|
|
38
|
+
white-space: nowrap;
|
|
39
|
+
background: transparent;
|
|
40
|
+
border: 0;
|
|
41
|
+
border-radius: var(--fs-radius-sm);
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
}
|
|
44
|
+
.fs-calendar__view-icon {
|
|
45
|
+
width: var(--fs-icon-size);
|
|
46
|
+
height: var(--fs-icon-size);
|
|
47
|
+
color: var(--fs-ink-2);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.fs-calendar__grid {
|
|
51
|
+
display: grid;
|
|
52
|
+
align-content: start;
|
|
53
|
+
/* A six-week month and the 4 × 3 month and year pages are the same height. */
|
|
54
|
+
min-height: calc(7 * var(--fs-calendar-cell));
|
|
55
|
+
}
|
|
56
|
+
.fs-calendar__row {
|
|
57
|
+
display: grid;
|
|
58
|
+
grid-template-columns: repeat(3, 1fr);
|
|
59
|
+
}
|
|
60
|
+
.fs-calendar__grid--day .fs-calendar__row {
|
|
61
|
+
grid-template-columns: repeat(7, 1fr);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.fs-calendar__weekday {
|
|
65
|
+
display: grid;
|
|
66
|
+
place-items: center;
|
|
67
|
+
height: var(--fs-calendar-cell);
|
|
68
|
+
font-size: var(--fs-text-xs-size);
|
|
69
|
+
line-height: var(--fs-text-xs-line);
|
|
70
|
+
color: var(--fs-ink-muted);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.fs-calendar__cell {
|
|
74
|
+
position: relative;
|
|
75
|
+
display: grid;
|
|
76
|
+
place-items: center;
|
|
77
|
+
box-sizing: border-box;
|
|
78
|
+
min-width: 0;
|
|
79
|
+
height: var(--fs-calendar-cell);
|
|
80
|
+
margin: 0;
|
|
81
|
+
padding: 0 2px;
|
|
82
|
+
font: inherit;
|
|
83
|
+
font-variant-numeric: tabular-nums;
|
|
84
|
+
color: var(--fs-ink);
|
|
85
|
+
white-space: nowrap;
|
|
86
|
+
background: transparent;
|
|
87
|
+
border: 0;
|
|
88
|
+
border-radius: var(--fs-radius-sm);
|
|
89
|
+
cursor: pointer;
|
|
90
|
+
}
|
|
91
|
+
.fs-calendar__grid--month .fs-calendar__cell,
|
|
92
|
+
.fs-calendar__grid--year .fs-calendar__cell {
|
|
93
|
+
height: calc(1.75 * var(--fs-calendar-cell));
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@media (hover: hover) {
|
|
97
|
+
.fs-calendar__view:not([aria-disabled='true']):hover,
|
|
98
|
+
.fs-calendar__cell:hover {
|
|
99
|
+
background-color: var(--fs-bg-hover);
|
|
100
|
+
}
|
|
101
|
+
.fs-calendar__cell[aria-selected='true']:not([aria-disabled='true']):hover {
|
|
102
|
+
background-color: var(--fs-primary-bg-hover);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
.fs-calendar__view:not([aria-disabled='true']):active,
|
|
106
|
+
.fs-calendar__cell:active {
|
|
107
|
+
background-color: var(--fs-bg-active);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* Today: an edge, not a fill, drawn inside so it never meets a neighbour's. */
|
|
111
|
+
.fs-calendar__cell[aria-current='date']::after {
|
|
112
|
+
content: '';
|
|
113
|
+
position: absolute;
|
|
114
|
+
inset: 2px;
|
|
115
|
+
border: var(--fs-line-width) solid var(--fs-accent);
|
|
116
|
+
border-radius: var(--fs-radius-sm);
|
|
117
|
+
pointer-events: none;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* Selected: the accent fill and weight 600, so it never rests on colour alone. */
|
|
121
|
+
.fs-calendar__cell[aria-selected='true'] {
|
|
122
|
+
font-weight: var(--fs-weight-semibold);
|
|
123
|
+
color: var(--fs-primary-ink);
|
|
124
|
+
background-color: var(--fs-primary-bg);
|
|
125
|
+
}
|
|
126
|
+
.fs-calendar__cell[aria-selected='true'][aria-current='date']::after {
|
|
127
|
+
border-color: var(--fs-primary-ink);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* The ring recipe (D15). The header's own button rings outside; cells touch, so theirs is inside. */
|
|
131
|
+
.fs-calendar__view:focus-visible {
|
|
132
|
+
outline: var(--fs-ring-width) solid var(--fs-ring);
|
|
133
|
+
outline-offset: var(--fs-ring-halo-width);
|
|
134
|
+
box-shadow: 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo);
|
|
135
|
+
}
|
|
136
|
+
.fs-calendar__cell:focus-visible {
|
|
137
|
+
z-index: 1;
|
|
138
|
+
outline: var(--fs-ring-width) solid var(--fs-ring);
|
|
139
|
+
outline-offset: calc(-1 * var(--fs-ring-width));
|
|
140
|
+
box-shadow: inset 0 0 0 calc(var(--fs-ring-width) + var(--fs-ring-halo-width)) var(--fs-ring-halo);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* The top view's heading is not a control. */
|
|
144
|
+
.fs-calendar__view[aria-disabled='true'] {
|
|
145
|
+
cursor: default;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* Outside min and max: reachable, never pickable. Last, so it beats hover, press and selected. */
|
|
149
|
+
.fs-calendar__cell[aria-disabled='true'] {
|
|
150
|
+
color: var(--fs-ink-disabled);
|
|
151
|
+
background-color: transparent;
|
|
152
|
+
cursor: not-allowed;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/* Forced colours: washes and fills are erased, so the selected cell takes the Highlight pair, today
|
|
156
|
+
keeps its edge (borders survive, in the system's colour) and disabled is GrayText. */
|
|
157
|
+
@media (forced-colors: active) {
|
|
158
|
+
.fs-calendar__cell[aria-selected='true'] {
|
|
159
|
+
color: HighlightText;
|
|
160
|
+
background-color: Highlight;
|
|
161
|
+
}
|
|
162
|
+
.fs-calendar__cell[aria-current='date']::after {
|
|
163
|
+
border-color: CanvasText;
|
|
164
|
+
}
|
|
165
|
+
.fs-calendar__cell[aria-selected='true'][aria-current='date']::after {
|
|
166
|
+
border-color: HighlightText;
|
|
167
|
+
}
|
|
168
|
+
.fs-calendar__cell[aria-disabled='true'] {
|
|
169
|
+
color: GrayText;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
# Calendar — `.fs-calendar`
|
|
2
|
+
|
|
3
|
+
Spec 02 B. CSS: `css/calendar.css` (the header's previous and next buttons also use
|
|
4
|
+
`css/icon-button.css`, and its live region `.fs-visually-hidden` from `css/utilities.css`). Behaviour: `createCalendar(el, options)`, which renders the content (D42).
|
|
5
|
+
Gallery: `inputs.html` (and `react.html` for the React `Calendar` and picker).
|
|
6
|
+
|
|
7
|
+
You write only the empty root; the helper renders the header and the grid into it, and re-renders
|
|
8
|
+
the grid on every page and view.
|
|
9
|
+
|
|
10
|
+
```html
|
|
11
|
+
<div class="fs-calendar" id="period-calendar"></div>
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
```js
|
|
15
|
+
import { createCalendar } from '@finstack-com-public/design/dom/calendar';
|
|
16
|
+
const HU_MONTHS = ['január', 'február', 'március', 'április', 'május', 'június', 'július', 'augusztus',
|
|
17
|
+
'szeptember', 'október', 'november', 'december'];
|
|
18
|
+
const HU_DAYS = ['vasárnap', 'hétfő', 'kedd', 'szerda', 'csütörtök', 'péntek', 'szombat'];
|
|
19
|
+
const calendar = createCalendar(el, {
|
|
20
|
+
value: '2026-11-20', min: '2020-01-01', max: '2027-12-31', // ISO strings; today defaults to the local date
|
|
21
|
+
granularity: 'day', // 'month' for a monthly filter: the value is then 'YYYY-MM'
|
|
22
|
+
weekStart: 1, // Monday (the default); 0 = Sunday
|
|
23
|
+
monthNames: ['jan.', 'febr.', 'márc.', 'ápr.', 'máj.', 'jún.', 'júl.', 'aug.', 'szept.', 'okt.', 'nov.', 'dec.'],
|
|
24
|
+
weekdayNames: ['V', 'H', 'K', 'Sze', 'Cs', 'P', 'Szo'], // Sunday first, whatever the week start
|
|
25
|
+
heading: (p) => (p.view === 'day' ? `${p.year}. ${HU_MONTHS[p.month - 1]}` : p.view === 'month' ? `${p.year}` : `${p.from}–${p.to}`),
|
|
26
|
+
cellLabel: (d) => `${d.year}. ${HU_MONTHS[d.month - 1]} ${d.day}., ${HU_DAYS[d.weekday]}`, // day cells only
|
|
27
|
+
labels: {
|
|
28
|
+
prev: { day: 'Előző hónap', month: 'Előző év', year: 'Előző 12 év' },
|
|
29
|
+
next: { day: 'Következő hónap', month: 'Következő év', year: 'Következő 12 év' },
|
|
30
|
+
up: { day: 'hónap választása', month: 'év választása' }, // optional
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
el.addEventListener('fs-change', (e) => setPeriod(e.detail.value));
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
What it renders (the day view):
|
|
37
|
+
|
|
38
|
+
```html
|
|
39
|
+
<div class="fs-calendar__header">
|
|
40
|
+
<button type="button" class="fs-calendar__view"><span class="fs-calendar__heading" id="…-heading">2026. november</span><svg class="fs-icon fs-calendar__view-icon">…</svg></button>
|
|
41
|
+
<button type="button" class="fs-icon-button fs-calendar__prev" aria-label="Előző hónap"><svg class="fs-icon">…</svg></button>
|
|
42
|
+
<button type="button" class="fs-icon-button fs-calendar__next" aria-label="Következő hónap"><svg class="fs-icon">…</svg></button>
|
|
43
|
+
</div>
|
|
44
|
+
<div role="grid" class="fs-calendar__grid fs-calendar__grid--day" aria-labelledby="…-heading">
|
|
45
|
+
<div role="row" class="fs-calendar__row"><span role="columnheader" class="fs-calendar__weekday">H</span>…</div>
|
|
46
|
+
<div role="row" class="fs-calendar__row"><span role="gridcell" class="fs-calendar__blank"></span>…
|
|
47
|
+
<button type="button" role="gridcell" class="fs-calendar__cell" tabindex="-1" aria-label="2026. november 1., vasárnap">1</button></div>
|
|
48
|
+
…
|
|
49
|
+
</div>
|
|
50
|
+
<span class="fs-visually-hidden fs-calendar__live" aria-live="polite"></span>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
| View | Grid | Cells show | Paging (buttons, PageUp/PageDown) |
|
|
54
|
+
|---|---|---|---|
|
|
55
|
+
| `day` (`granularity: 'day'` only) | `--day`: 7 columns under the weekday row | the day number | a month; Shift+Page a year |
|
|
56
|
+
| `month` | `--month`: 12 months in 3 columns | `monthNames` | a year |
|
|
57
|
+
| `year` | `--year`: 12 years in 3 columns, pages start at multiples of 12 (2016–2027) | the year | 12 years |
|
|
58
|
+
|
|
59
|
+
| State | Set by the helper with | Look |
|
|
60
|
+
|---|---|---|
|
|
61
|
+
| hover, press | — | hover and press washes |
|
|
62
|
+
| focus | the grid's one tab stop (`tabindex="0"`) | the ring, drawn inside: cells touch |
|
|
63
|
+
| selected | `aria-selected="true"` | accent fill, weight 600; forced colours: `Highlight` |
|
|
64
|
+
| today | `aria-current="date"` | an accent edge inside the cell, not a fill; on the selected cell the edge is white |
|
|
65
|
+
| outside `min`/`max` | `aria-disabled="true"` | disabled ink; reachable by the keyboard, never picked; no opacity |
|
|
66
|
+
| neighbouring months' days | `.fs-calendar__blank` | blank |
|
|
67
|
+
| top view's heading | `aria-disabled="true"` on `__view` | the heading, no chevron, no hover |
|
|
68
|
+
|
|
69
|
+
- **The views:** it opens on the lowest view (`granularity`), on the page of the value, else
|
|
70
|
+
today, held inside `min` and `max`. The view button steps up (day → month → year); picking a
|
|
71
|
+
year or month steps down and focuses the same position there. Picking in the lowest view emits
|
|
72
|
+
`fs-change` with `{ value }` (`YYYY-MM-DD`, or `YYYY-MM` for a month calendar), every time, even
|
|
73
|
+
for the current value, so a popover can close on it.
|
|
74
|
+
- **Keyboard:** one tab stop in the grid; the arrows move (by a week up and down in the day view,
|
|
75
|
+
by a row of three in the others); Home and End go to the row's ends, inside the month; PageUp
|
|
76
|
+
and PageDown page, keeping the position, clamped (31 January → 28 February); Enter and Space
|
|
77
|
+
pick, as on any button. A move that would land on a page with nothing pickable stops at `min`
|
|
78
|
+
or `max`. The header's three buttons are ordinary tab stops; previous and next turn
|
|
79
|
+
`aria-disabled` past `min` and `max`.
|
|
80
|
+
- **Names are yours (D42):** the kit holds no month, weekday or heading text. `monthNames` is what
|
|
81
|
+
the month cells show (short forms fit), `weekdayNames` is the column headers, `heading` makes
|
|
82
|
+
the page heading (which names the grid), `cellLabel` each **day** cell's full accessible name (it
|
|
83
|
+
must contain the day number: "2026. november 9., hétfő"), and `labels` names the
|
|
84
|
+
previous and next buttons per view. `labels.up` is optional: said after the heading in the view
|
|
85
|
+
button's name.
|
|
86
|
+
- **Month and year cells have no `aria-label`:** their name is their visible text ("jan.",
|
|
87
|
+
"2026"), and the grid is labelled by the heading, which carries the year. A full name such as
|
|
88
|
+
"2026. január" behind a visible "jan." fails WCAG 2.5.3 (label in name; axe's
|
|
89
|
+
`label-content-name-mismatch`).
|
|
90
|
+
- **Dates are ISO strings,** never `Date`s: no time zone can move one by a day. `min` and `max`
|
|
91
|
+
may be a month in a day calendar (its first and last day) or a day in a month calendar.
|
|
92
|
+
- **Announcing:** when paging or stepping changes the heading (never on the first render), the new
|
|
93
|
+
heading is written to the host's live region if you pass one as `announcer`; without one the
|
|
94
|
+
calendar keeps its own polite region, a visually hidden `.fs-calendar__live` after the grid. Never
|
|
95
|
+
inside the view button: a live region in a focused button whose name changes is read twice. The
|
|
96
|
+
view button's name stays the heading (plus `labels.up`).
|
|
97
|
+
- Controller: `setValue(iso | null)` (no event), `setView(view)`, `focus()`, `update(options)`,
|
|
98
|
+
`destroy()` (empties the root). The calendar draws no surface or edge of its own: for a picker,
|
|
99
|
+
put it in a popover (below).
|
|
100
|
+
- Don't write the header or the grid yourself, style cells by position, or dim a state with
|
|
101
|
+
opacity.
|
|
102
|
+
|
|
103
|
+
## Date picker — a picker button and a popover (T84)
|
|
104
|
+
|
|
105
|
+
The recipe for a period field (BI App's monthly and daily filters): a `.fs-input--picker` button
|
|
106
|
+
shows the value; a `.fs-popover.fs-popover--fit` holds the calendar. Picking closes it and focus
|
|
107
|
+
returns to the button; Escape closes it the same way; a click outside closes it.
|
|
108
|
+
|
|
109
|
+
```html
|
|
110
|
+
<div class="fs-field">
|
|
111
|
+
<label class="fs-field__label" for="period">Időszak</label>
|
|
112
|
+
<button class="fs-input fs-input--picker" id="period" type="button" aria-haspopup="dialog">2026. 11. 20.</button>
|
|
113
|
+
</div>
|
|
114
|
+
<div class="fs-popover fs-popover--fit" id="period-pop" role="dialog" aria-label="Időszak választása" hidden>
|
|
115
|
+
<div class="fs-calendar" id="period-cal"></div>
|
|
116
|
+
</div>
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
```js
|
|
120
|
+
let value = '2026-11-20';
|
|
121
|
+
const calendar = createCalendar(calEl, { ...HU_NAMES, value, min, max }); // the names as above
|
|
122
|
+
const pop = createPopover(popEl, { anchor: button, focus: 'none' });
|
|
123
|
+
// Each open starts on the value's page with focus on the value, as WAI-ARIA's date-picker dialog does.
|
|
124
|
+
popEl.addEventListener('fs-open', (e) => {
|
|
125
|
+
if (e.target !== popEl) return;
|
|
126
|
+
calendar.setValue(value);
|
|
127
|
+
calendar.focus();
|
|
128
|
+
});
|
|
129
|
+
calEl.addEventListener('fs-change', (e) => {
|
|
130
|
+
value = e.detail.value;
|
|
131
|
+
button.textContent = formatHu(value); // "2026. 11. 20."; a month: "2026. március"
|
|
132
|
+
pop.close(); // focus returns to the button
|
|
133
|
+
});
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
```tsx
|
|
137
|
+
import { Calendar, Field, PickerButton, Popover } from '@finstack-com-public/design/react';
|
|
138
|
+
|
|
139
|
+
function PeriodPicker({ value, onChange, min, max }: Props) {
|
|
140
|
+
const button = useRef<HTMLButtonElement>(null);
|
|
141
|
+
const [open, setOpen] = useState(false);
|
|
142
|
+
const [opened, setOpened] = useState(0); // a new key each open: the calendar starts on the value
|
|
143
|
+
return (
|
|
144
|
+
<>
|
|
145
|
+
<Field label="Időszak">
|
|
146
|
+
{(c) => <PickerButton {...c} ref={button} aria-haspopup="dialog">{formatHu(value)}</PickerButton>}
|
|
147
|
+
</Field>
|
|
148
|
+
<Popover anchor={button} label="Időszak választása" className="fs-popover--fit" focus="none" open={open}
|
|
149
|
+
onOpenChange={(o) => { if (o) setOpened((n) => n + 1); setOpen(o); }}>
|
|
150
|
+
<Calendar key={opened} autoFocus={open} {...HU_NAMES} value={value} min={min} max={max}
|
|
151
|
+
onChange={(v) => { onChange(v); setOpen(false); }} />
|
|
152
|
+
</Popover>
|
|
153
|
+
</>
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
- **`focus: 'none'`, then the grid:** the popover's own `'first'` would land on the view button;
|
|
159
|
+
the recipe moves focus to the value instead (`calendar.focus()`, or `autoFocus` on a fresh
|
|
160
|
+
`Calendar`). The header's next, previous and view buttons are Shift+Tab away.
|
|
161
|
+
- **Keyboard alone:** Enter or Space on the button opens it on the value; in a day calendar three
|
|
162
|
+
Shift+Tabs reach the view button, Enter steps up to the months, three Tabs come back to the grid,
|
|
163
|
+
arrows and Enter pick a month, then arrows and Enter pick the day; the popover closes and focus
|
|
164
|
+
is back on the button. Escape closes it from anywhere inside, back on the button too.
|
|
165
|
+
- **No backdrop.** A popover is non-modal: the page stays visible and live, and an outside click
|
|
166
|
+
closes it. Don't add a dimmed backdrop (BI App's period picker had one); use a dialog if the page
|
|
167
|
+
must be blocked.
|
|
168
|
+
- The popover needs a name (`aria-label`, or a title); the button says the value, its label says
|
|
169
|
+
what it is.
|
package/dist/css/input.css
CHANGED
|
@@ -65,8 +65,10 @@
|
|
|
65
65
|
border-color: var(--fs-danger-fill);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
/* Read-only: no control edge, the value in full ink.
|
|
69
|
-
|
|
68
|
+
/* Read-only: no control edge, the value in full ink. `:read-only` matches anything not editable, a
|
|
69
|
+
<button> too, so the picker button is left out (T84); `:where` keeps the specificity at (0,2,0), so
|
|
70
|
+
disabled still wins. */
|
|
71
|
+
.fs-input:where(:not(.fs-input--picker)):read-only,
|
|
70
72
|
.fs-textarea:read-only {
|
|
71
73
|
background-color: transparent;
|
|
72
74
|
border-color: transparent;
|
package/dist/css/input.md
CHANGED
|
@@ -12,7 +12,9 @@ Spec 02 B. CSS: `css/input.css`. Gallery: `inputs.html`.
|
|
|
12
12
|
- **Select:** the native `<select>` sits in a `.fs-select` wrapper, which draws the chevron: a
|
|
13
13
|
`<select>` can't hold a pseudo-element. A custom listbox is later (spec 02).
|
|
14
14
|
- `fs-input--num` right-aligns with tabular figures; the number comes formatted from the product.
|
|
15
|
-
- `fs-input--picker` on a `<button>` makes a field that opens a picker (tree, chips, calendar).
|
|
15
|
+
- `fs-input--picker` on a `<button>` makes a field that opens a picker (tree, chips, calendar). It
|
|
16
|
+
keeps the input's fill and edge: a button is `:read-only` to CSS, and the read-only look leaves
|
|
17
|
+
the picker out (T84).
|
|
16
18
|
- An input fills its container. A short inline one (a rename field) takes
|
|
17
19
|
`width: var(--fs-size-input-sm)`: 10em, about 16 characters at any density (utilities.md,
|
|
18
20
|
"Layout widths").
|
package/dist/css/popover.css
CHANGED
|
@@ -46,6 +46,13 @@
|
|
|
46
46
|
margin-top: var(--fs-space-3);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
/* Fits its content and leaves the padding to it: a picker's calendar (T84). */
|
|
50
|
+
.fs-popover--fit {
|
|
51
|
+
width: max-content;
|
|
52
|
+
max-width: calc(100vw - 16px);
|
|
53
|
+
padding: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
49
56
|
/* The ring recipe (D15), when the panel itself takes focus. */
|
|
50
57
|
.fs-popover:focus-visible {
|
|
51
58
|
outline: var(--fs-ring-width) solid var(--fs-ring);
|
package/dist/css/popover.md
CHANGED
|
@@ -25,3 +25,5 @@ const pop = createPopover(popEl, { anchor: whyButton, placement: 'bottom-start',
|
|
|
25
25
|
- `closeOnBlur` closes it when Tab leaves it.
|
|
26
26
|
- Write it `hidden`, so it stays out of sight before the helper runs (or without script); the
|
|
27
27
|
helper moves it to the top layer where the browser has one.
|
|
28
|
+
- `.fs-popover--fit` drops the 340 px width and the padding, so the popover fits content that pads
|
|
29
|
+
itself, such as the date picker's calendar (`calendar.md`).
|
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
|
@@ -15,9 +15,12 @@ ChatGPT images are over. A new wave variant needs a new owner decision.
|
|
|
15
15
|
in light).
|
|
16
16
|
- The wave is an image file, `motifs/wave.webp` (D31, D33; 2172 x 380): white on transparent, used as a CSS
|
|
17
17
|
mask over the brand colours, so light, dark and re-tinted islands need no second file. It is made from
|
|
18
|
-
`art/wave-ai-source.png` by `npm run motifs`.
|
|
19
|
-
|
|
20
|
-
|
|
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.
|
|
21
24
|
- An empty element: place it full-width, often absolutely along the bottom of a section
|
|
22
25
|
(`position: absolute; inset: auto 0 0`), behind the content. It ignores the pointer. When it sits absolutely
|
|
23
26
|
at the bottom of a section, reserve bottom padding of at least `--fs-wave-height` on that section, so no text
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "/* Calendar (spec 02 B): year, month and day views. Usage: calendar.md. Behaviour: createCalendar,\n which renders the header and the grid into an empty .fs-calendar (D42). */\n@layer fs.components {\n .fs-calendar {\n /* One cell's width: seven make the calendar, so it follows the density. */\n --fs-calendar-cell: var(--fs-control-h);\n display: inline-flex;\n flex-direction: column;\n gap: var(--fs-space-1);\n box-sizing: content-box;\n width: calc(7 * var(--fs-calendar-cell));\n padding: var(--fs-space-2);\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n color: var(--fs-ink);\n }\n\n .fs-calendar__header {\n display: flex;\n align-items: center;\n gap: var(--fs-space-1);\n height: var(--fs-control-h);\n }\n\n /* Shows the page's heading; steps up a view. In the top view it is the heading alone. */\n .fs-calendar__view {\n display: inline-flex;\n align-items: center;\n gap: var(--fs-space-1);\n box-sizing: border-box;\n min-width: 0;\n height: var(--fs-control-h);\n margin: 0 auto 0 0;\n padding: 0 var(--fs-pad-x);\n font: inherit;\n font-weight: var(--fs-weight-semibold);\n color: var(--fs-ink);\n white-space: nowrap;\n background: transparent;\n border: 0;\n border-radius: var(--fs-radius-sm);\n cursor: pointer;\n }\n .fs-calendar__view-icon {\n width: var(--fs-icon-size);\n height: var(--fs-icon-size);\n color: var(--fs-ink-2);\n }\n\n .fs-calendar__grid {\n display: grid;\n align-content: start;\n /* A six-week month and the 4 × 3 month and year pages are the same height. */\n min-height: calc(7 * var(--fs-calendar-cell));\n }\n .fs-calendar__row {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n }\n .fs-calendar__grid--day .fs-calendar__row {\n grid-template-columns: repeat(7, 1fr);\n }\n\n .fs-calendar__weekday {\n display: grid;\n place-items: center;\n height: var(--fs-calendar-cell);\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n color: var(--fs-ink-muted);\n }\n\n .fs-calendar__cell {\n position: relative;\n display: grid;\n place-items: center;\n box-sizing: border-box;\n min-width: 0;\n height: var(--fs-calendar-cell);\n margin: 0;\n padding: 0 2px;\n font: inherit;\n font-variant-numeric: tabular-nums;\n color: var(--fs-ink);\n white-space: nowrap;\n background: transparent;\n border: 0;\n border-radius: var(--fs-radius-sm);\n cursor: pointer;\n }\n .fs-calendar__grid--month .fs-calendar__cell,\n .fs-calendar__grid--year .fs-calendar__cell {\n height: calc(1.75 * var(--fs-calendar-cell));\n }\n\n @media (hover: hover) {\n .fs-calendar__view:not([aria-disabled='true']):hover,\n .fs-calendar__cell:hover {\n background-color: var(--fs-bg-hover);\n }\n .fs-calendar__cell[aria-selected='true']:not([aria-disabled='true']):hover {\n background-color: var(--fs-primary-bg-hover);\n }\n }\n .fs-calendar__view:not([aria-disabled='true']):active,\n .fs-calendar__cell:active {\n background-color: var(--fs-bg-active);\n }\n\n /* Today: an edge, not a fill, drawn inside so it never meets a neighbour's. */\n .fs-calendar__cell[aria-current='date']::after {\n content: '';\n position: absolute;\n inset: 2px;\n border: var(--fs-line-width) solid var(--fs-accent);\n border-radius: var(--fs-radius-sm);\n pointer-events: none;\n }\n\n /* Selected: the accent fill and weight 600, so it never rests on colour alone. */\n .fs-calendar__cell[aria-selected='true'] {\n font-weight: var(--fs-weight-semibold);\n color: var(--fs-primary-ink);\n background-color: var(--fs-primary-bg);\n }\n .fs-calendar__cell[aria-selected='true'][aria-current='date']::after {\n border-color: var(--fs-primary-ink);\n }\n\n /* The ring recipe (D15). The header's own button rings outside; cells touch, so theirs is inside. */\n .fs-calendar__view: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 .fs-calendar__cell:focus-visible {\n z-index: 1;\n outline: var(--fs-ring-width) solid var(--fs-ring);\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 /* The top view's heading is not a control. */\n .fs-calendar__view[aria-disabled='true'] {\n cursor: default;\n }\n\n /* Outside min and max: reachable, never pickable. Last, so it beats hover, press and selected. */\n .fs-calendar__cell[aria-disabled='true'] {\n color: var(--fs-ink-disabled);\n background-color: transparent;\n cursor: not-allowed;\n }\n\n /* Forced colours: washes and fills are erased, so the selected cell takes the Highlight pair, today\n keeps its edge (borders survive, in the system's colour) and disabled is GrayText. */\n @media (forced-colors: active) {\n .fs-calendar__cell[aria-selected='true'] {\n color: HighlightText;\n background-color: Highlight;\n }\n .fs-calendar__cell[aria-current='date']::after {\n border-color: CanvasText;\n }\n .fs-calendar__cell[aria-selected='true'][aria-current='date']::after {\n border-color: HighlightText;\n }\n .fs-calendar__cell[aria-disabled='true'] {\n color: GrayText;\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-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";
|
|
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. `:read-only` matches anything not editable, a\n <button> too, so the picker button is left out (T84); `:where` keeps the specificity at (0,2,0), so\n disabled still wins. */\n .fs-input:where(:not(.fs-input--picker)):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";
|