@funstack/ui 0.1.0-alpha.20 → 0.1.0-alpha.21

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.
Files changed (105) hide show
  1. package/dist/alert-dialog/alert-dialog-root.mjs +2 -1
  2. package/dist/alert-dialog/alert-dialog-root.mjs.map +1 -1
  3. package/dist/avatar/avatar-context.mjs +24 -0
  4. package/dist/avatar/avatar-context.mjs.map +1 -0
  5. package/dist/avatar/avatar-fallback.d.mts +32 -0
  6. package/dist/avatar/avatar-fallback.d.mts.map +1 -0
  7. package/dist/avatar/avatar-fallback.mjs +31 -0
  8. package/dist/avatar/avatar-fallback.mjs.map +1 -0
  9. package/dist/avatar/avatar-image.d.mts +37 -0
  10. package/dist/avatar/avatar-image.d.mts.map +1 -0
  11. package/dist/avatar/avatar-image.mjs +91 -0
  12. package/dist/avatar/avatar-image.mjs.map +1 -0
  13. package/dist/avatar/avatar-root.d.mts +48 -0
  14. package/dist/avatar/avatar-root.d.mts.map +1 -0
  15. package/dist/avatar/avatar-root.mjs +81 -0
  16. package/dist/avatar/avatar-root.mjs.map +1 -0
  17. package/dist/avatar/index.d.mts +24 -0
  18. package/dist/avatar/index.d.mts.map +1 -0
  19. package/dist/avatar/index.mjs +24 -0
  20. package/dist/avatar/index.mjs.map +1 -0
  21. package/dist/dialog/dialog-close.d.mts.map +1 -1
  22. package/dist/dialog/dialog-close.mjs +14 -3
  23. package/dist/dialog/dialog-close.mjs.map +1 -1
  24. package/dist/dialog/dialog-context.mjs +7 -1
  25. package/dist/dialog/dialog-context.mjs.map +1 -1
  26. package/dist/dialog/dialog-popup.d.mts +1 -0
  27. package/dist/dialog/dialog-popup.d.mts.map +1 -1
  28. package/dist/dialog/dialog-popup.mjs +20 -2
  29. package/dist/dialog/dialog-popup.mjs.map +1 -1
  30. package/dist/dialog/dialog-root.mjs +6 -4
  31. package/dist/dialog/dialog-root.mjs.map +1 -1
  32. package/dist/docs/components/avatar.md +354 -0
  33. package/dist/docs/components/drawer.md +622 -0
  34. package/dist/docs/components/otp-field.md +501 -0
  35. package/dist/docs/components/scroll-area.md +294 -0
  36. package/dist/docs/index.md +5 -1
  37. package/dist/docs/roadmap.md +6 -0
  38. package/dist/drawer/drawer-close.d.mts +26 -0
  39. package/dist/drawer/drawer-close.d.mts.map +1 -0
  40. package/dist/drawer/drawer-close.mjs +19 -0
  41. package/dist/drawer/drawer-close.mjs.map +1 -0
  42. package/dist/drawer/drawer-description.d.mts +23 -0
  43. package/dist/drawer/drawer-description.d.mts.map +1 -0
  44. package/dist/drawer/drawer-description.mjs +18 -0
  45. package/dist/drawer/drawer-description.mjs.map +1 -0
  46. package/dist/drawer/drawer-form.d.mts +24 -0
  47. package/dist/drawer/drawer-form.d.mts.map +1 -0
  48. package/dist/drawer/drawer-form.mjs +19 -0
  49. package/dist/drawer/drawer-form.mjs.map +1 -0
  50. package/dist/drawer/drawer-popup.d.mts +77 -0
  51. package/dist/drawer/drawer-popup.d.mts.map +1 -0
  52. package/dist/drawer/drawer-popup.mjs +124 -0
  53. package/dist/drawer/drawer-popup.mjs.map +1 -0
  54. package/dist/drawer/drawer-root.d.mts +31 -0
  55. package/dist/drawer/drawer-root.d.mts.map +1 -0
  56. package/dist/drawer/drawer-root.mjs +23 -0
  57. package/dist/drawer/drawer-root.mjs.map +1 -0
  58. package/dist/drawer/drawer-swipe.d.mts +5 -0
  59. package/dist/drawer/drawer-swipe.d.mts.map +1 -0
  60. package/dist/drawer/drawer-swipe.mjs +193 -0
  61. package/dist/drawer/drawer-swipe.mjs.map +1 -0
  62. package/dist/drawer/drawer-title.d.mts +23 -0
  63. package/dist/drawer/drawer-title.d.mts.map +1 -0
  64. package/dist/drawer/drawer-title.mjs +18 -0
  65. package/dist/drawer/drawer-title.mjs.map +1 -0
  66. package/dist/drawer/drawer-trigger.d.mts +23 -0
  67. package/dist/drawer/drawer-trigger.d.mts.map +1 -0
  68. package/dist/drawer/drawer-trigger.mjs +18 -0
  69. package/dist/drawer/drawer-trigger.mjs.map +1 -0
  70. package/dist/drawer/index.d.mts +34 -0
  71. package/dist/drawer/index.d.mts.map +1 -0
  72. package/dist/drawer/index.mjs +33 -0
  73. package/dist/drawer/index.mjs.map +1 -0
  74. package/dist/index.d.mts +19 -1
  75. package/dist/index.mjs +4 -1
  76. package/dist/internal/swipe-arithmetic.mjs +75 -0
  77. package/dist/internal/swipe-arithmetic.mjs.map +1 -0
  78. package/dist/internal/swipe.mjs +169 -0
  79. package/dist/internal/swipe.mjs.map +1 -0
  80. package/dist/menu/menu-context-trigger.mjs +1 -1
  81. package/dist/menu/menu-popup.mjs +1 -1
  82. package/dist/otp-field/index.d.mts +23 -0
  83. package/dist/otp-field/index.d.mts.map +1 -0
  84. package/dist/otp-field/index.mjs +23 -0
  85. package/dist/otp-field/index.mjs.map +1 -0
  86. package/dist/otp-field/otp-field-context.mjs +13 -0
  87. package/dist/otp-field/otp-field-context.mjs.map +1 -0
  88. package/dist/otp-field/otp-field-filter.d.mts +5 -0
  89. package/dist/otp-field/otp-field-filter.d.mts.map +1 -0
  90. package/dist/otp-field/otp-field-filter.mjs +135 -0
  91. package/dist/otp-field/otp-field-filter.mjs.map +1 -0
  92. package/dist/otp-field/otp-field-input.d.mts +41 -0
  93. package/dist/otp-field/otp-field-input.d.mts.map +1 -0
  94. package/dist/otp-field/otp-field-input.mjs +177 -0
  95. package/dist/otp-field/otp-field-input.mjs.map +1 -0
  96. package/dist/otp-field/otp-field-root.d.mts +143 -0
  97. package/dist/otp-field/otp-field-root.d.mts.map +1 -0
  98. package/dist/otp-field/otp-field-root.mjs +397 -0
  99. package/dist/otp-field/otp-field-root.mjs.map +1 -0
  100. package/dist/otp-field/otp-field-slot.d.mts +52 -0
  101. package/dist/otp-field/otp-field-slot.d.mts.map +1 -0
  102. package/dist/otp-field/otp-field-slot.mjs +67 -0
  103. package/dist/otp-field/otp-field-slot.mjs.map +1 -0
  104. package/package.json +4 -1
  105. package/skills/funstack-ui-knowledge/SKILL.md +5 -1
@@ -0,0 +1,294 @@
1
+ # Scroll areas
2
+
3
+ FUNSTACK UI has no ScrollArea part, by decision. A ScrollArea in other libraries hides the native scrollbar and draws one out of `div`s, because restyling a scrollbar once needed a different hack per engine. Today the standard properties work in all three engines, the fades at the edges are a scroll-driven animation, and the one gap a native scroller still has (keyboard access in Safari) is an attribute. This page is the recipe: plain CSS and HTML, no JavaScript, no part.
4
+
5
+ ```tsx title="ScrollAreaNotes.tsx"
6
+ // No "use client": a Server Component, and there is no FUNSTACK UI part in it. Two native
7
+ // scrollers styled by scroll-area.css. The release notes have no focusable content, so the
8
+ // scroller is a Tab stop itself (tabindex="0", a role and a name): without it Safari gives the
9
+ // keyboard no way to scroll them. The links list needs none of that: Tab reaches the links, and
10
+ // the browser scrolls each into view.
11
+ // A pretend product's changelog.
12
+ const notes = [
13
+ "Invoices can be exported as CSV.",
14
+ "The search box remembers your last five queries.",
15
+ "Fixed: dates in the calendar view used the wrong week start.",
16
+ "Team owners can transfer a project to another team.",
17
+ "The mobile layout keeps the toolbar visible while scrolling.",
18
+ "Fixed: a long project name no longer overlaps the menu.",
19
+ "Comments can be edited for ten minutes after posting.",
20
+ "Keyboard shortcuts are listed under Help.",
21
+ "Fixed: the dark theme used a light scrollbar in the sidebar.",
22
+ "Archived projects are hidden from the dashboard.",
23
+ "Uploads show their progress in the status bar.",
24
+ "Fixed: pasting a link into a comment kept its formatting.",
25
+ ];
26
+
27
+ const pages = [
28
+ "Getting started",
29
+ "Action props",
30
+ "Pending & optimistic state",
31
+ "Transitions & ViewTransition",
32
+ "Suspense",
33
+ "Browser-owned state",
34
+ "Server Components",
35
+ "Replacing the element",
36
+ "Experimental features",
37
+ "Content Security Policy",
38
+ ];
39
+
40
+ export function ScrollAreaNotes() {
41
+ return (
42
+ <div className="demo-scroll-area-row">
43
+ <section className="demo-scroll-area-frame" aria-labelledby="demo-scroll-notes-title">
44
+ <h4 id="demo-scroll-notes-title">Release notes</h4>
45
+ <div
46
+ className="demo-scroll-area demo-scroll-fade"
47
+ tabIndex={0}
48
+ role="region"
49
+ aria-label="Release notes, scrollable"
50
+ >
51
+ <ul className="demo-scroll-area-list">
52
+ {notes.map((note) => (
53
+ <li key={note}>{note}</li>
54
+ ))}
55
+ </ul>
56
+ </div>
57
+ </section>
58
+ <nav className="demo-scroll-area-frame" aria-labelledby="demo-scroll-pages-title">
59
+ <h4 id="demo-scroll-pages-title">Pages</h4>
60
+ <div className="demo-scroll-area demo-scroll-fade">
61
+ <ul className="demo-scroll-area-list">
62
+ {pages.map((page) => (
63
+ <li key={page}>
64
+ <a href="#keyboard">{page}</a>
65
+ </li>
66
+ ))}
67
+ </ul>
68
+ </div>
69
+ </nav>
70
+ </div>
71
+ );
72
+ }
73
+ ```
74
+
75
+ ```css title="scroll-area.css"
76
+ /* Scroll areas: a native scroller, styled with the standard scrollbar properties, with edge
77
+ fades driven by a scroll timeline (no script). Run in Chromium, Firefox and WebKit by
78
+ packages/ui/src/__tests__/scroll-area-recipe.browser.test.tsx, which reads this file. */
79
+
80
+ .demo-scroll-area {
81
+ max-block-size: 12rem;
82
+ overflow: auto;
83
+ /* auto | thin | none. The thumb's shape and exact width stay the engine's. */
84
+ scrollbar-width: thin;
85
+ /* thumb, then track. */
86
+ scrollbar-color: var(--color-border) transparent;
87
+ /* Space for the bar even before the content overflows: no shift when it starts to. */
88
+ scrollbar-gutter: stable;
89
+ /* Reaching an end does not scroll the page behind. */
90
+ overscroll-behavior: contain;
91
+ }
92
+ .demo-scroll-area:hover,
93
+ .demo-scroll-area:focus-visible {
94
+ scrollbar-color: var(--color-text-secondary) transparent;
95
+ }
96
+
97
+ /* Edge fades. The two lengths are 0 unless the timeline moves them: when nothing overflows the
98
+ timeline is inactive and no fade is drawn. Each fade grows over the first (last) 2rem of
99
+ scrolling, whatever the length of the content. Behind @supports: an engine without scroll
100
+ timelines would run the animations once on the document clock and keep their end values,
101
+ a fade over the top of the content for ever. */
102
+ @property --scroll-fade-start {
103
+ syntax: "<length>";
104
+ inherits: false;
105
+ initial-value: 0px;
106
+ }
107
+ @property --scroll-fade-end {
108
+ syntax: "<length>";
109
+ inherits: false;
110
+ initial-value: 0px;
111
+ }
112
+ @supports (animation-timeline: scroll()) {
113
+ .demo-scroll-fade {
114
+ mask-image: linear-gradient(
115
+ to bottom,
116
+ transparent,
117
+ #000 var(--scroll-fade-start),
118
+ #000 calc(100% - var(--scroll-fade-end)),
119
+ transparent
120
+ );
121
+ /* The shorthand resets the timeline, so the timeline and the ranges come after it. */
122
+ animation:
123
+ scroll-fade-start linear both,
124
+ scroll-fade-end linear both;
125
+ animation-timeline: scroll(self), scroll(self);
126
+ animation-range:
127
+ 0 2rem,
128
+ calc(100% - 2rem) 100%;
129
+ }
130
+ }
131
+ @keyframes scroll-fade-start {
132
+ from {
133
+ --scroll-fade-start: 0px;
134
+ }
135
+ to {
136
+ --scroll-fade-start: 2rem;
137
+ }
138
+ }
139
+ @keyframes scroll-fade-end {
140
+ from {
141
+ --scroll-fade-end: 2rem;
142
+ }
143
+ to {
144
+ --scroll-fade-end: 0px;
145
+ }
146
+ }
147
+
148
+ /* The demo's content. */
149
+ .demo-scroll-area-list {
150
+ margin: 0;
151
+ padding: 0.5rem 0.75rem;
152
+ list-style: none;
153
+ display: grid;
154
+ gap: 0.5rem;
155
+ }
156
+ .demo-scroll-area-row {
157
+ display: grid;
158
+ grid-template-columns: repeat(2, minmax(0, 16rem));
159
+ gap: 1rem;
160
+ }
161
+ .demo-scroll-area-frame {
162
+ border: 1px solid var(--color-border);
163
+ border-radius: 0.5rem;
164
+ }
165
+ .demo-scroll-area-frame h4 {
166
+ margin: 0;
167
+ padding: 0.5rem 0.75rem;
168
+ border-block-end: 1px solid var(--color-border);
169
+ font-size: 0.875rem;
170
+ }
171
+ /* The focus ring goes on the frame, not on the scroller: the fade mask would fade the
172
+ scroller's own outline away at an edge with content beyond it. */
173
+ .demo-scroll-area:focus-visible {
174
+ outline: none;
175
+ }
176
+ .demo-scroll-area-frame:has(> .demo-scroll-area:focus-visible) {
177
+ outline: 2px solid var(--color-primary);
178
+ outline-offset: 2px;
179
+ }
180
+ ```
181
+
182
+ This example is a Server Component with no library code in it. Scroll either list: the fade at an edge appears once there is content beyond it.
183
+
184
+ ## The scrollbar
185
+
186
+ ```css
187
+ .scroll-area {
188
+ overflow: auto;
189
+ scrollbar-width: thin; /* auto | thin | none */
190
+ scrollbar-color: var(--thumb) transparent; /* thumb, then track */
191
+ scrollbar-gutter: stable; /* space for the bar before the content overflows */
192
+ overscroll-behavior: contain; /* reaching an end does not scroll the page */
193
+ }
194
+ .scroll-area:hover,
195
+ .scroll-area:focus-visible { scrollbar-color: var(--thumb-strong) transparent; }
196
+ ```
197
+
198
+ | Property | Chrome | Firefox | Safari |
199
+ | - | - | - | - |
200
+ | `scrollbar-width` | 121 | 64 | 18.2 |
201
+ | `scrollbar-color` | 121 | 64 | 26.2 |
202
+ | `scrollbar-gutter` | 94 | 97 | 18.2 |
203
+
204
+ - `scrollbar-gutter: stable` reserves the bar's space where scrollbars take space (classic scrollbars on Windows and most Linux desktops), so the content does not shift when it starts to overflow. Where scrollbars overlay the content (macOS by default, mobile) it reserves nothing.
205
+ - The user's settings keep working: "always show scroll bars", the system scrollbar size, forced colours. A drawn bar loses all three.
206
+ - `thin` is the only size: its pixels, and the thumb's shape, are the engine's.
207
+
208
+ ### A rounded thumb in Chromium and desktop Safari
209
+
210
+ `::-webkit-scrollbar` and its relatives still exist in Chromium and desktop Safari (not in Firefox; iOS honours only `display: none`), and give the thumb a radius and an inset. Chromium ignores them as soon as `scrollbar-width` or `scrollbar-color` is not `auto`, so choose one or the other per engine:
211
+
212
+ ```css
213
+ .scroll-area::-webkit-scrollbar { inline-size: 10px; block-size: 10px; }
214
+ .scroll-area::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 5px; background: var(--thumb) padding-box; }
215
+
216
+ /* Firefox, and any engine without the pseudo-elements. */
217
+ @supports not selector(::-webkit-scrollbar) {
218
+ .scroll-area { scrollbar-width: thin; scrollbar-color: var(--thumb) transparent; }
219
+ }
220
+ ```
221
+
222
+ The pseudo-elements are non-standard: forced colours and the user's scrollbar settings do not reach a thumb drawn with them either. **iOS Safari** matches the selector (so the `@supports not selector(…)` block does not apply there) but honours only `display: none` on it, so iOS gets neither the drawn thumb nor the standard properties: its overlay scrollbar stays the system's. If you want `scrollbar-color` on iOS, use the standard properties everywhere instead.
223
+
224
+ ## Edge fades
225
+
226
+ A fade at an edge that has more content beyond it, with no script: a scroll-driven animation moves two registered lengths that a mask gradient uses. When nothing overflows the timeline is inactive, the lengths keep their initial `0px`, and no fade is drawn. Each fade grows over the first (and last) `2rem` of scrolling, whatever the length of the content.
227
+
228
+ ```css
229
+ @property --scroll-fade-start { syntax: "<length>"; inherits: false; initial-value: 0px; }
230
+ @property --scroll-fade-end { syntax: "<length>"; inherits: false; initial-value: 0px; }
231
+
232
+ @supports (animation-timeline: scroll()) {
233
+ .scroll-fade {
234
+ mask-image: linear-gradient(to bottom,
235
+ transparent, #000 var(--scroll-fade-start),
236
+ #000 calc(100% - var(--scroll-fade-end)), transparent);
237
+ /* The shorthand resets the timeline: the timeline and the ranges come after it. */
238
+ animation: scroll-fade-start linear both, scroll-fade-end linear both;
239
+ animation-timeline: scroll(self), scroll(self);
240
+ animation-range: 0 2rem, calc(100% - 2rem) 100%;
241
+ }
242
+ }
243
+ @keyframes scroll-fade-start { from { --scroll-fade-start: 0px; } to { --scroll-fade-start: 2rem; } }
244
+ @keyframes scroll-fade-end { from { --scroll-fade-end: 2rem; } to { --scroll-fade-end: 0px; } }
245
+ ```
246
+
247
+ | Feature | Chrome | Firefox | Safari |
248
+ | - | - | - | - |
249
+ | Scroll-driven animations (`animation-timeline: scroll()`) | 115 | 159 | 26 |
250
+ | `@property` | 85 | 128 | 16.4 |
251
+ | `mask-image` (unprefixed) | 120 | 53 | 15.4 |
252
+
253
+ - Keep the `@supports`. In an engine without scroll timelines the animations would run once on the document clock and keep their end values: a permanent fade over the top of the content.
254
+ - The mask also fades the ends of a classic scrollbar, which is part of the masked box. If that matters, put the scroller inside a wrapper and draw the fades as overlays in the wrapper's background colour, driven by a named timeline (`scroll-timeline` on the scroller, `timeline-scope` on the wrapper; `timeline-scope` is Chrome 116, Firefox 159, Safari 26). That variant is a sketch: the browser test below does not run it.
255
+ - The fade is a mask, not motion: `prefers-reduced-motion` needs nothing here.
256
+
257
+ ## <a id="keyboard"></a>Keyboard access
258
+
259
+ A keyboard user scrolls a scroller by focusing something inside it. When the content has nothing focusable (text, images), Chrome (since 132, per the update note in Chrome's [Keyboard focusable scrollers](https://developer.chrome.com/blog/keyboard-focusable-scrollers) post: first announced for 130, then pushed back) and Firefox make the scroller itself a Tab stop; **Safari does not** (WebKit bug 277290), so there the content is out of reach. Make such a scroller focusable, and give it a role and a name so that the Tab stop is announced as something:
260
+
261
+ ```html
262
+ <!-- Only when the content has nothing focusable. -->
263
+ <div class="scroll-area" tabindex="0" role="region" aria-label="Release notes">…</div>
264
+ ```
265
+
266
+ - Once focused, the arrow keys and Page Up / Page Down scroll it, in every engine (the browser's own scrolling keys; no script).
267
+ - Give it a visible focus ring, but **not on the scroller itself** when it has the edge fades: the mask fades its own outline away at an edge with content beyond it. Draw the ring on a frame around it instead:
268
+ ```css
269
+ .scroll-area:focus-visible { outline: none; }
270
+ .scroll-frame:has(> .scroll-area:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
271
+ ```
272
+ - Do not add it when the content has links, buttons or fields: Tab reaches them and the browser scrolls each into view, and the extra Tab stop is noise.
273
+ - `role="region"` with a name makes it a landmark. For a scroller that is a minor part of the page, `role="group"` with the same name avoids adding to the landmark list.
274
+ - Whether the content has something focusable is a decision about your content, which you make better than a measuring script would. That is why this is not a part that adds `tabindex` when it overflows.
275
+
276
+ ## Why there is no part
277
+
278
+ What a native scroller still cannot do:
279
+
280
+ - a thumb shape (radius, inset, exact thickness) in Firefox and on iOS;
281
+ - an overlay scrollbar that takes no layout space on a platform whose scrollbars are classic, or one that hides until hover there.
282
+
283
+ What a drawn scrollbar costs:
284
+
285
+ - the user's settings stop applying ("always show scroll bars", scrollbar size, forced colours, where a `div` thumb is a background colour that disappears);
286
+ - a small pointer target unless you size it, and track clicks and drag behaviour that are reimplemented, never quite native;
287
+ - script on every scroll and resize to place and size the thumb;
288
+ - nothing for assistive technology: every library that draws one hides it from it.
289
+
290
+ And there is nothing asynchronous in it: no state the library would own, no action, nothing pending. If you need a drawn bar anyway, a dedicated scrollbar library is a better home for it than a headless kit.
291
+
292
+ > **Checked in three engines**
293
+ >
294
+ > The stylesheet of the example above is run by a browser test in Chromium, Firefox and WebKit (`scroll-area-recipe.browser.test.tsx` in the repository): the computed scrollbar properties, a gutter that is reserved before the content overflows where the bar takes space, the fade lengths at the top, in the middle and at the bottom, no fade without overflow, no fade at all in an engine without scroll timelines, the focusable region scrolled with the arrow keys and Page Down, and its focus ring on the frame. The Firefox the test runs (Playwright's build, 157) hides every scrollbar and predates scroll timelines, so there it checks the no-gutter and no-fade branches; the fade branch was run in it once with the feature's preference on. The `::-webkit-scrollbar` and overlay variants above are not run.
@@ -118,7 +118,7 @@ npm install @funstack/ui@alpha
118
118
 
119
119
  React 19.3 or later. Supported browsers: **the latest stable Blink, WebKit and Gecko. No fallbacks.** Platform features not yet in all three are opt-in [experimental props](concepts/experimental.md).
120
120
 
121
- Components: [Button](components/button.md), [Toggle](components/toggle.md), [ToggleGroup](components/toggle-group.md), [Toolbar](components/toolbar.md), [Tabs](components/tabs.md), [Accordion](components/accordion.md), [Collapsible](components/collapsible.md), [Tooltip](components/tooltip.md), [HoverCard](components/hover-card.md), [Popover](components/popover.md), [Dialog](components/dialog.md), [AlertDialog](components/alert-dialog.md), [Menu](components/menu.md), [Context menu (Menu)](components/context-menu.md), [Toast](components/toast.md), [Field and Form](components/field.md), [Checkbox](components/checkbox.md), [CheckboxGroup](components/checkbox-group.md), [RadioGroup](components/radio-group.md), [Switch](components/switch.md), [Select](components/select.md), [Combobox](components/combobox.md), [MultiSelect](components/multi-select.md), [Slider](components/slider.md), [NumberField](components/number-field.md), [Progress](components/progress.md), [Meter](components/meter.md) and [Separator](components/separator.md). More are coming; see the [roadmap](roadmap.md).
121
+ Components: [Button](components/button.md), [Toggle](components/toggle.md), [ToggleGroup](components/toggle-group.md), [Toolbar](components/toolbar.md), [Tabs](components/tabs.md), [Accordion](components/accordion.md), [Collapsible](components/collapsible.md), [Tooltip](components/tooltip.md), [HoverCard](components/hover-card.md), [Popover](components/popover.md), [Dialog](components/dialog.md), [AlertDialog](components/alert-dialog.md), [Drawer](components/drawer.md), [Menu](components/menu.md), [Context menu (Menu)](components/context-menu.md), [Toast](components/toast.md), [Field and Form](components/field.md), [Checkbox](components/checkbox.md), [CheckboxGroup](components/checkbox-group.md), [RadioGroup](components/radio-group.md), [Switch](components/switch.md), [Select](components/select.md), [Combobox](components/combobox.md), [MultiSelect](components/multi-select.md), [Slider](components/slider.md), [NumberField](components/number-field.md), [OTPField](components/otp-field.md), [Progress](components/progress.md), [Meter](components/meter.md), [Avatar](components/avatar.md), [Separator](components/separator.md) and [Scroll areas (recipe)](components/scroll-area.md). More are coming; see the [roadmap](roadmap.md).
122
122
 
123
123
  ## The FUNSTACK family
124
124
 
@@ -165,6 +165,7 @@ FUNSTACK UI is part of the FUNSTACK family, which aims to be the most modern Rea
165
165
  - [Popover](components/popover.md): A non-modal popover on the Popover API: JS-free when you need no state; a transition-driven open, library-owned closes with a ViewTransition exit in every engine, and Suspense-ready content when you do.
166
166
  - [Dialog](components/dialog.md): A dialog built on \<dialog> and Invoker Commands: JS-free when you need no state; a transition-driven open with a pending trigger, Suspense-ready content, and library-owned closes with a ViewTransition exit in every engine when you do.
167
167
  - [AlertDialog](components/alert-dialog.md): A Dialog with alert defaults: role alertdialog, always modal, no light dismiss, focus on Cancel. The confirm button runs your async action with its own pending state, closes when it resolves and stays open when it rejects.
168
+ - [Drawer](components/drawer.md): A dialog attached to an edge of the viewport that the user can swipe back to it, with mouse, pen or touch. A Dialog underneath: top layer, focus, Escape, the JS-free mode; the swipe is a dismissal reported to onOpenChange, and your CSS moves the drawer through three custom properties.
168
169
  - [Menu](components/menu.md): A menu button on the Popover API: items whose actions run in their own transition with pending state, optimistic checkbox and radio items, the APG keyboard model with typeahead, and submenus with hover intent.
169
170
  - [Context menu (Menu)](components/context-menu.md): Menu.ContextTrigger: a region whose right-click, Shift+F10 or touch long-press opens a Menu at the pointer, with the menu's pending items, optimistic checkbox and radio items and submenus unchanged.
170
171
  - [Toast](components/toast.md): Notifications fed by a toast() function and rendered by your own Viewport: an urgent queue that shows while the action it reports on is still pending, promise toasts, an Undo action prop, an onClose handler for the Undo window, ariaNotify announcements, and a region that stays interactive above modal dialogs.
@@ -178,9 +179,12 @@ FUNSTACK UI is part of the FUNSTACK family, which aims to be the most modern Rea
178
179
  - [MultiSelect](components/multi-select.md): A select-only combobox with a multi-select listbox: a button that shows the selection, options that load on open inside Suspense, a pick that toggles with an optimistic selection and the option pending, the open state as actions and facts, forms and required.
179
180
  - [Slider](components/slider.md): A slider on a visually hidden native \<input type=range> per thumb: every step a transition, each gesture saved once with rollback, multi-thumb, vertical and RTL.
180
181
  - [NumberField](components/number-field.md): A text field that holds a number: typed in the user's locale, stepped with keys and press-and-hold buttons, posted as a plain number through a hidden native number input, saved once per gesture with rollback.
182
+ - [OTPField](components/otp-field.md): A field for a one-time code: one input with autocomplete one-time-code drawn as a row of boxes, a filter that keeps the text a code, and completeAction, the moment the code is complete as an awaited request with data-pending.
181
183
  - [Progress](components/progress.md): A progress bar on div\[role=progressbar]: the display of someone else's action, correct in every lane, localised aria-valuetext, and a Root that is itself a Server Component.
182
184
  - [Meter](components/meter.md): A gauge on div\[role=meter] with the platform's low / high / optimum regions, localised aria-valuetext, and a Root that is itself a Server Component.
185
+ - [Avatar](components/avatar.md): A picture of a person or a thing with initials or an icon in its place: the image is in the server HTML, the fallback sits under it, the name is on the Root, and React's commit wait for images under a ViewTransition still applies.
183
186
  - [Separator](components/separator.md): A line between two pieces of content: an hr with aria-orientation and data-orientation, a decorative mode, and a component that is itself a Server Component.
187
+ - [Scroll areas (recipe)](components/scroll-area.md): There is no ScrollArea part: a native scroller with scrollbar-width, scrollbar-color and scrollbar-gutter, edge fades from a scroll-driven animation, and a Tab stop for content with nothing focusable. A recipe, run in Chromium, Firefox and WebKit.
184
188
 
185
189
  ### Resources
186
190
 
@@ -10,6 +10,12 @@ Alpha releases (`0.1.0-alpha.N`) are published on npm under the `alpha` dist-tag
10
10
 
11
11
  Changes an upgrade may notice, newest first. Each component page documents the current behaviour.
12
12
 
13
+ - New component [Drawer](components/drawer.md) ([#168](https://github.com/uhyo/funstack-ui/issues/168)): a Dialog attached to an edge (`side`, rendered as `data-side`) that the user can swipe back to it with mouse, pen or touch. The swipe writes `data-swiping` and `--drawer-swipe-x` / `-y` / `-progress` for your CSS, finishes the slide, and closes the drawer as a dismissal reported to `onOpenChange`. Its transition types are `fsui-drawer*`. Snap points and the pull from a scrolled-to-top list are not in this version.
14
+
15
+ - New component [OTPField](components/otp-field.md) ([#171](https://github.com/uhyo/funstack-ui/issues/171)): a one-time-code field that is one `autocomplete="one-time-code"` input drawn as a row of boxes, with `completeAction` for the complete code, `submitOnComplete` and `experimental_webOTP`.
16
+
17
+ - New component [Avatar](components/avatar.md) ([#171](https://github.com/uhyo/funstack-ui/issues/171)), and a [Scroll areas](components/scroll-area.md) recipe page instead of a ScrollArea part.
18
+
13
19
  - A `Dialog.Close` or `Popover.Close` with an `action` no longer renders `commandfor` / `command` ([#182](https://github.com/uhyo/funstack-ui/issues/182)). A click before hydration used to close the dialog or popover natively without running the action; it now does nothing until the page has hydrated, and then runs the action and closes. A Close without `action` is unchanged (a native invoker). Selectors on `[command]` no longer match such a button.
14
20
 
15
21
  - New component [AlertDialog](components/alert-dialog.md) ([#167](https://github.com/uhyo/funstack-ui/issues/167)): a Dialog with `role="alertdialog"`, no light dismiss and focus on Cancel, whose `Action` runs an async action and closes when it resolves. Development messages of a Dialog part outside its Root now name the Root of its own namespace.
@@ -0,0 +1,26 @@
1
+ import { DialogCloseDetails, DialogCloseProps, DialogCloseState } from "../dialog/dialog-close.mjs";
2
+ //#region src/drawer/drawer-close.d.ts
3
+ /** State of `Drawer.Close`: Dialog's. */
4
+ export type DrawerCloseState = DialogCloseState;
5
+ /** Details passed to `Drawer.Close`'s `action`: Dialog's. */
6
+ export type DrawerCloseDetails = DialogCloseDetails;
7
+ /**
8
+ * Props of `Drawer.Close`: `Dialog.Close`'s.
9
+ *
10
+ * @see https://ui.funstack.work/components/drawer
11
+ */
12
+ export type DrawerCloseProps = DialogCloseProps;
13
+ /**
14
+ * A close button: exactly `Dialog.Close` (`<button type="button" commandfor
15
+ * command="request-close">` in JS-free mode, a close through the Root in library mode; with
16
+ * `action`, the action runs first). Render one in every drawer: it closes it before hydration
17
+ * on a phone, and it is the alternative to the swipe (WCAG 2.5.1).
18
+ *
19
+ * @see https://ui.funstack.work/components/drawer
20
+ */
21
+ export declare function DrawerClose(props: DrawerCloseProps): import("react").ReactNode;
22
+ export declare namespace DrawerClose {
23
+ var displayName: string;
24
+ }
25
+ //#endregion
26
+ //# sourceMappingURL=drawer-close.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer-close.d.mts","names":[],"sources":["../../src/drawer/drawer-close.tsx"],"mappings":";;;YASY,mBAAmB;;YAGnB,qBAAqB;;;;;;YAOrB,mBAAmB;;;;;;;;;wBAUf,YAAY,OAAO,mCAAgB;yBAAnC"}
@@ -0,0 +1,19 @@
1
+ "use client";
2
+ import { useDialogClose } from "../dialog/dialog-close.mjs";
3
+ //#region src/drawer/drawer-close.tsx
4
+ /**
5
+ * A close button: exactly `Dialog.Close` (`<button type="button" commandfor
6
+ * command="request-close">` in JS-free mode, a close through the Root in library mode; with
7
+ * `action`, the action runs first). Render one in every drawer: it closes it before hydration
8
+ * on a phone, and it is the alternative to the swipe (WCAG 2.5.1).
9
+ *
10
+ * @see https://ui.funstack.work/components/drawer
11
+ */
12
+ function DrawerClose(props) {
13
+ return useDialogClose(props, { part: "Drawer.Close" });
14
+ }
15
+ DrawerClose.displayName = "DrawerClose";
16
+ //#endregion
17
+ export { DrawerClose };
18
+
19
+ //# sourceMappingURL=drawer-close.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer-close.mjs","names":[],"sources":["../../src/drawer/drawer-close.tsx"],"sourcesContent":["\"use client\";\nimport { useDialogClose } from \"../dialog/dialog-close.js\";\nimport type {\n DialogCloseDetails,\n DialogCloseProps,\n DialogCloseState,\n} from \"../dialog/dialog-close.js\";\n\n/** State of `Drawer.Close`: Dialog's. */\nexport type DrawerCloseState = DialogCloseState;\n\n/** Details passed to `Drawer.Close`'s `action`: Dialog's. */\nexport type DrawerCloseDetails = DialogCloseDetails;\n\n/**\n * Props of `Drawer.Close`: `Dialog.Close`'s.\n *\n * @see https://ui.funstack.work/components/drawer\n */\nexport type DrawerCloseProps = DialogCloseProps;\n\n/**\n * A close button: exactly `Dialog.Close` (`<button type=\"button\" commandfor\n * command=\"request-close\">` in JS-free mode, a close through the Root in library mode; with\n * `action`, the action runs first). Render one in every drawer: it closes it before hydration\n * on a phone, and it is the alternative to the swipe (WCAG 2.5.1).\n *\n * @see https://ui.funstack.work/components/drawer\n */\nexport function DrawerClose(props: DrawerCloseProps) {\n return useDialogClose(props, { part: \"Drawer.Close\" });\n}\n\nDrawerClose.displayName = \"DrawerClose\";\n"],"mappings":";;;;;;;;;;;AA6BA,SAAgB,YAAY,OAAyB;CACnD,OAAO,eAAe,OAAO,EAAE,MAAM,eAAe,CAAC;AACvD;AAEA,YAAY,cAAc"}
@@ -0,0 +1,23 @@
1
+ import { DialogDescriptionProps, DialogDescriptionState } from "../dialog/dialog-description.mjs";
2
+ //#region src/drawer/drawer-description.d.ts
3
+ /** State of `Drawer.Description`: Dialog's (the Popup's `open` and `modal`). */
4
+ export type DrawerDescriptionState = DialogDescriptionState;
5
+ /**
6
+ * Props of `Drawer.Description`: `Dialog.Description`'s.
7
+ *
8
+ * @see https://ui.funstack.work/components/drawer
9
+ */
10
+ export type DrawerDescriptionProps = DialogDescriptionProps;
11
+ /**
12
+ * Describes the drawer: a `<p>` whose id the Popup references with `aria-describedby`.
13
+ *
14
+ * Owned key (conventions 1.2): `id`.
15
+ *
16
+ * @see https://ui.funstack.work/components/drawer
17
+ */
18
+ export declare function DrawerDescription(props: DrawerDescriptionProps): import("react").ReactNode;
19
+ export declare namespace DrawerDescription {
20
+ var displayName: string;
21
+ }
22
+ //#endregion
23
+ //# sourceMappingURL=drawer-description.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer-description.d.mts","names":[],"sources":["../../src/drawer/drawer-description.tsx"],"mappings":";;;YAQY,yBAAyB;;;;;;YAOzB,yBAAyB;;;;;;;;wBASrB,kBAAkB,OAAO,yCAAsB;yBAA/C"}
@@ -0,0 +1,18 @@
1
+ "use client";
2
+ import { useDialogDescription } from "../dialog/dialog-description.mjs";
3
+ //#region src/drawer/drawer-description.tsx
4
+ /**
5
+ * Describes the drawer: a `<p>` whose id the Popup references with `aria-describedby`.
6
+ *
7
+ * Owned key (conventions 1.2): `id`.
8
+ *
9
+ * @see https://ui.funstack.work/components/drawer
10
+ */
11
+ function DrawerDescription(props) {
12
+ return useDialogDescription(props, "Drawer");
13
+ }
14
+ DrawerDescription.displayName = "DrawerDescription";
15
+ //#endregion
16
+ export { DrawerDescription };
17
+
18
+ //# sourceMappingURL=drawer-description.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer-description.mjs","names":[],"sources":["../../src/drawer/drawer-description.tsx"],"sourcesContent":["\"use client\";\nimport { useDialogDescription } from \"../dialog/dialog-description.js\";\nimport type {\n DialogDescriptionProps,\n DialogDescriptionState,\n} from \"../dialog/dialog-description.js\";\n\n/** State of `Drawer.Description`: Dialog's (the Popup's `open` and `modal`). */\nexport type DrawerDescriptionState = DialogDescriptionState;\n\n/**\n * Props of `Drawer.Description`: `Dialog.Description`'s.\n *\n * @see https://ui.funstack.work/components/drawer\n */\nexport type DrawerDescriptionProps = DialogDescriptionProps;\n\n/**\n * Describes the drawer: a `<p>` whose id the Popup references with `aria-describedby`.\n *\n * Owned key (conventions 1.2): `id`.\n *\n * @see https://ui.funstack.work/components/drawer\n */\nexport function DrawerDescription(props: DrawerDescriptionProps) {\n return useDialogDescription(props, \"Drawer\");\n}\n\nDrawerDescription.displayName = \"DrawerDescription\";\n"],"mappings":";;;;;;;;;;AAwBA,SAAgB,kBAAkB,OAA+B;CAC/D,OAAO,qBAAqB,OAAO,QAAQ;AAC7C;AAEA,kBAAkB,cAAc"}
@@ -0,0 +1,24 @@
1
+ import { DialogFormProps, DialogFormState } from "../dialog/dialog-form.mjs";
2
+ //#region src/drawer/drawer-form.d.ts
3
+ /** State of `Drawer.Form`: Dialog's (`useFormStatus().pending` of this form). */
4
+ export type DrawerFormState = DialogFormState;
5
+ /**
6
+ * Props of `Drawer.Form`: `Dialog.Form`'s.
7
+ *
8
+ * @see https://ui.funstack.work/components/drawer
9
+ */
10
+ export type DrawerFormProps = DialogFormProps;
11
+ /**
12
+ * A form whose submission closes the drawer: exactly `Dialog.Form` (`method="dialog"` without
13
+ * `action`; with a function `action`, the drawer closes when its transition settles).
14
+ *
15
+ * Owned keys (conventions 1.2): `method` (except with a string `action`), `action`.
16
+ *
17
+ * @see https://ui.funstack.work/components/drawer
18
+ */
19
+ export declare function DrawerForm(props: DrawerFormProps): import("react").ReactNode;
20
+ export declare namespace DrawerForm {
21
+ var displayName: string;
22
+ }
23
+ //#endregion
24
+ //# sourceMappingURL=drawer-form.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer-form.d.mts","names":[],"sources":["../../src/drawer/drawer-form.tsx"],"mappings":";;;YAKY,kBAAkB;;;;;;YAOlB,kBAAkB;;;;;;;;;wBAUd,WAAW,OAAO,kCAAe;yBAAjC"}
@@ -0,0 +1,19 @@
1
+ "use client";
2
+ import { useDialogForm } from "../dialog/dialog-form.mjs";
3
+ //#region src/drawer/drawer-form.tsx
4
+ /**
5
+ * A form whose submission closes the drawer: exactly `Dialog.Form` (`method="dialog"` without
6
+ * `action`; with a function `action`, the drawer closes when its transition settles).
7
+ *
8
+ * Owned keys (conventions 1.2): `method` (except with a string `action`), `action`.
9
+ *
10
+ * @see https://ui.funstack.work/components/drawer
11
+ */
12
+ function DrawerForm(props) {
13
+ return useDialogForm(props, "Drawer");
14
+ }
15
+ DrawerForm.displayName = "DrawerForm";
16
+ //#endregion
17
+ export { DrawerForm };
18
+
19
+ //# sourceMappingURL=drawer-form.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer-form.mjs","names":[],"sources":["../../src/drawer/drawer-form.tsx"],"sourcesContent":["\"use client\";\nimport { useDialogForm } from \"../dialog/dialog-form.js\";\nimport type { DialogFormProps, DialogFormState } from \"../dialog/dialog-form.js\";\n\n/** State of `Drawer.Form`: Dialog's (`useFormStatus().pending` of this form). */\nexport type DrawerFormState = DialogFormState;\n\n/**\n * Props of `Drawer.Form`: `Dialog.Form`'s.\n *\n * @see https://ui.funstack.work/components/drawer\n */\nexport type DrawerFormProps = DialogFormProps;\n\n/**\n * A form whose submission closes the drawer: exactly `Dialog.Form` (`method=\"dialog\"` without\n * `action`; with a function `action`, the drawer closes when its transition settles).\n *\n * Owned keys (conventions 1.2): `method` (except with a string `action`), `action`.\n *\n * @see https://ui.funstack.work/components/drawer\n */\nexport function DrawerForm(props: DrawerFormProps) {\n return useDialogForm(props, \"Drawer\");\n}\n\nDrawerForm.displayName = \"DrawerForm\";\n"],"mappings":";;;;;;;;;;;AAsBA,SAAgB,WAAW,OAAwB;CACjD,OAAO,cAAc,OAAO,QAAQ;AACtC;AAEA,WAAW,cAAc"}
@@ -0,0 +1,77 @@
1
+ import { RenderProp, StateValue } from "../internal/types.mjs";
2
+ import { DialogPopupProps, DialogPopupState } from "../dialog/dialog-popup.mjs";
3
+ import { DrawerSide } from "./drawer-swipe.mjs";
4
+ import { CSSProperties, ComponentPropsWithRef, ReactNode } from "react";
5
+ //#region src/drawer/drawer-popup.d.ts
6
+ /**
7
+ * State of `Drawer.Popup`, passed to the function forms of `className`, `style`, `children` and
8
+ * `render`: Dialog's, with the `side`. A drag is not in the state: it is `data-swiping` and the
9
+ * `--drawer-swipe-*` properties, written to the DOM.
10
+ */
11
+ export interface DrawerPopupState extends DialogPopupState {
12
+ /** The `side` prop. */
13
+ readonly side: DrawerSide;
14
+ }
15
+ /**
16
+ * Props of `Drawer.Popup`: `Dialog.Popup`'s, with `side` and `swipeDismiss`, and `lightDismiss`
17
+ * defaulting to the Root's `modal`.
18
+ *
19
+ * @see https://ui.funstack.work/components/drawer
20
+ */
21
+ export interface DrawerPopupProps extends Omit<DialogPopupProps, "className" | "style" | "children" | "render"> {
22
+ /**
23
+ * The edge the drawer is attached to. Rendered as `data-side` (also in the server HTML); the
24
+ * swipe goes toward it. `inline-start` / `inline-end` follow the drawer's own `direction`.
25
+ * The library places nothing: style `[data-side]`.
26
+ *
27
+ * @defaultValue `"bottom"`
28
+ */
29
+ side?: DrawerSide;
30
+ /**
31
+ * Let the user drag the drawer toward its edge to close it (mouse, pen, touch; after
32
+ * hydration). The close is a dismissal: reported to `onOpenChange`, never to
33
+ * `openChangeAction`. While dragging the drawer has `data-swiping`, `--drawer-swipe-x`,
34
+ * `--drawer-swipe-y` and `--drawer-swipe-progress`; your CSS moves it. Also renders an inline
35
+ * `touch-action`. Always give another way to close (`Drawer.Close`).
36
+ *
37
+ * @defaultValue `true`
38
+ */
39
+ swipeDismiss?: boolean;
40
+ /**
41
+ * As `Dialog.Popup`'s: close on a press outside the drawer (on the backdrop of a modal one).
42
+ *
43
+ * @defaultValue the Root's `modal`
44
+ */
45
+ lightDismiss?: boolean;
46
+ /** Class name, or a function of the part's state that returns one. */
47
+ className?: StateValue<string | undefined, DrawerPopupState>;
48
+ /** Inline style, or a function of the part's state that returns one. Merged over the `touch-action`. */
49
+ style?: StateValue<CSSProperties | undefined, DrawerPopupState>;
50
+ /** Content, or a function of the part's state. */
51
+ children?: StateValue<ReactNode, DrawerPopupState>;
52
+ /** Must render a `<dialog>`. */
53
+ render?: RenderProp<ComponentPropsWithRef<"dialog">, DrawerPopupState>;
54
+ }
55
+ /**
56
+ * The drawer: `Dialog.Popup` (a `<dialog>`, with everything a dialog does) attached to an edge.
57
+ * `side` is rendered as `data-side`; the library writes no inset, size or transform. With
58
+ * `swipeDismiss` (default), a drag toward that edge (mouse, pen or touch, after hydration)
59
+ * follows the pointer through `--drawer-swipe-x` / `-y` / `-progress` and, released past a
60
+ * quarter of the drawer or with a flick, finishes the slide with your CSS transition and then
61
+ * closes the dialog with `requestClose()`: a fact, reported to `onOpenChange(false, { reason:
62
+ * "dismiss", event: <the pointerup> })`. A press inside a scroll container along the drawer's
63
+ * axis scrolls it and never drags.
64
+ *
65
+ * Owned keys (conventions 1.2): Dialog.Popup's (`id`, `open`, `closedby`, `aria-labelledby` and
66
+ * `aria-describedby` token-merged, `data-modal`, `suppressHydrationWarning`), `data-side`,
67
+ * `data-swiping`; the inline `touch-action` is merged under your `style`.
68
+ *
69
+ * @see https://ui.funstack.work/components/drawer
70
+ */
71
+ export declare function DrawerPopup({ side, swipeDismiss, lightDismiss, className, style, children, render, ...rest }: DrawerPopupProps): ReactNode;
72
+ export declare namespace DrawerPopup {
73
+ var displayName: string;
74
+ }
75
+ //#endregion
76
+ export type { DrawerSide };
77
+ //# sourceMappingURL=drawer-popup.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer-popup.d.mts","names":[],"sources":["../../src/drawer/drawer-popup.tsx"],"mappings":";;;;;;;;;;iBAqBiB,yBAAyB;;WAE/B,MAAM;;;;;;;;iBASA,yBAAyB,KACxC;;;;;;;;EAUA,OAAO;;;;;;;;;;EAUP;;;;;;EAMA;;EAEA,YAAY,+BAA+B;;EAE3C,QAAQ,WAAW,2BAA2B;;EAE9C,WAAW,WAAW,WAAW;;EAEjC,SAAS,WAAW,iCAAiC;;;;;;;;;;;;;;;;;;wBAmBvC,cACd,MACA,cACA,cACA,WACA,OACA,UACA,WACG,QACF,mBAAgB;yBATH"}