@kanso-labs/kanso-ui 0.45.21 → 0.45.23

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 (269) hide show
  1. package/dist/badge/index.js.map +1 -1
  2. package/dist/button/context.js.map +1 -1
  3. package/dist/button/group.js.map +1 -1
  4. package/dist/button/hooks.js.map +1 -1
  5. package/dist/button/index.d.ts +3 -4
  6. package/dist/button/index.js.map +1 -1
  7. package/dist/button/styles.js.map +1 -1
  8. package/dist/button/toggle.js.map +1 -1
  9. package/dist/calendar/index.js +119 -11
  10. package/dist/calendar/index.js.map +1 -1
  11. package/dist/calendar/styles.js +19 -1
  12. package/dist/calendar/styles.js.map +1 -1
  13. package/dist/carousel/arrangement.d.ts +1 -2
  14. package/dist/carousel/arrangement.js.map +1 -1
  15. package/dist/chip/index.js.map +1 -1
  16. package/dist/chip/label.js.map +1 -1
  17. package/dist/chip/styles.js.map +1 -1
  18. package/dist/collection/empty.js.map +1 -1
  19. package/dist/collection/index.js.map +1 -1
  20. package/dist/collection/styles.js.map +1 -1
  21. package/dist/collection/text.js.map +1 -1
  22. package/dist/color-scheme.d.ts +1 -2
  23. package/dist/color-scheme.js.map +1 -1
  24. package/dist/components/app-bar/index.d.ts +9 -4
  25. package/dist/components/app-bar/index.js +123 -73
  26. package/dist/components/app-bar/index.js.map +1 -1
  27. package/dist/components/autocomplete/index.d.ts +1 -2
  28. package/dist/components/autocomplete/index.js.map +1 -1
  29. package/dist/components/avatar/index.d.ts +1 -2
  30. package/dist/components/avatar/index.js.map +1 -1
  31. package/dist/components/badge/index.d.ts +1 -2
  32. package/dist/components/badge/index.js.map +1 -1
  33. package/dist/components/breadcrumbs/index.d.ts +1 -2
  34. package/dist/components/breadcrumbs/index.js.map +1 -1
  35. package/dist/components/button/index.d.ts +1 -2
  36. package/dist/components/button/index.js.map +1 -1
  37. package/dist/components/button-group/index.d.ts +1 -2
  38. package/dist/components/button-group/index.js.map +1 -1
  39. package/dist/components/calendar/index.d.ts +4 -5
  40. package/dist/components/calendar/index.js +8 -19
  41. package/dist/components/calendar/index.js.map +1 -1
  42. package/dist/components/card/index.d.ts +1 -2
  43. package/dist/components/card/index.js.map +1 -1
  44. package/dist/components/carousel/index.d.ts +22 -4
  45. package/dist/components/carousel/index.js +26 -14
  46. package/dist/components/carousel/index.js.map +1 -1
  47. package/dist/components/checkbox/index.d.ts +1 -2
  48. package/dist/components/checkbox/index.js.map +1 -1
  49. package/dist/components/checkbox-group/index.d.ts +1 -2
  50. package/dist/components/checkbox-group/index.js.map +1 -1
  51. package/dist/components/chip/index.d.ts +1 -2
  52. package/dist/components/chip/index.js.map +1 -1
  53. package/dist/components/chip-group/index.d.ts +1 -2
  54. package/dist/components/chip-group/index.js +3 -0
  55. package/dist/components/chip-group/index.js.map +1 -1
  56. package/dist/components/code/index.d.ts +1 -2
  57. package/dist/components/code/index.js.map +1 -1
  58. package/dist/components/color-area/index.d.ts +1 -2
  59. package/dist/components/color-area/index.js.map +1 -1
  60. package/dist/components/color-field/index.d.ts +1 -2
  61. package/dist/components/color-field/index.js.map +1 -1
  62. package/dist/components/color-picker/index.d.ts +1 -2
  63. package/dist/components/color-picker/index.js +64 -46
  64. package/dist/components/color-picker/index.js.map +1 -1
  65. package/dist/components/color-slider/index.d.ts +1 -2
  66. package/dist/components/color-slider/index.js.map +1 -1
  67. package/dist/components/color-swatch/index.d.ts +1 -2
  68. package/dist/components/color-swatch/index.js +20 -16
  69. package/dist/components/color-swatch/index.js.map +1 -1
  70. package/dist/components/color-swatch-picker/index.d.ts +1 -2
  71. package/dist/components/color-swatch-picker/index.js.map +1 -1
  72. package/dist/components/color-wheel/index.d.ts +1 -2
  73. package/dist/components/color-wheel/index.js.map +1 -1
  74. package/dist/components/combo-box/index.d.ts +1 -2
  75. package/dist/components/combo-box/index.js.map +1 -1
  76. package/dist/components/container/index.d.ts +1 -2
  77. package/dist/components/container/index.js.map +1 -1
  78. package/dist/components/copy-field/index.d.ts +1 -2
  79. package/dist/components/copy-field/index.js +1 -0
  80. package/dist/components/copy-field/index.js.map +1 -1
  81. package/dist/components/currency/index.d.ts +1 -2
  82. package/dist/components/currency/index.js.map +1 -1
  83. package/dist/components/date-field/index.d.ts +1 -2
  84. package/dist/components/date-field/index.js.map +1 -1
  85. package/dist/components/date-picker/index.d.ts +1 -2
  86. package/dist/components/date-picker/index.js.map +1 -1
  87. package/dist/components/date-range-picker/index.d.ts +1 -2
  88. package/dist/components/date-range-picker/index.js +165 -81
  89. package/dist/components/date-range-picker/index.js.map +1 -1
  90. package/dist/components/dialog/index.d.ts +1 -2
  91. package/dist/components/dialog/index.js.map +1 -1
  92. package/dist/components/disclosure/index.d.ts +1 -2
  93. package/dist/components/disclosure/index.js.map +1 -1
  94. package/dist/components/disclosure-group/index.d.ts +1 -2
  95. package/dist/components/disclosure-group/index.js.map +1 -1
  96. package/dist/components/drop-zone/index.d.ts +1 -2
  97. package/dist/components/drop-zone/index.js.map +1 -1
  98. package/dist/components/drop-zone/styles.js.map +1 -1
  99. package/dist/components/fab/index.d.ts +1 -2
  100. package/dist/components/fab/index.js.map +1 -1
  101. package/dist/components/fab-menu/index.d.ts +1 -2
  102. package/dist/components/fab-menu/index.js.map +1 -1
  103. package/dist/components/feed/index.d.ts +1 -2
  104. package/dist/components/feed/index.js.map +1 -1
  105. package/dist/components/form/index.d.ts +1 -2
  106. package/dist/components/form/index.js.map +1 -1
  107. package/dist/components/icon-button/index.d.ts +1 -2
  108. package/dist/components/icon-button/index.js.map +1 -1
  109. package/dist/components/index.d.ts +2 -2
  110. package/dist/components/keycap/index.d.ts +1 -2
  111. package/dist/components/keycap/index.js.map +1 -1
  112. package/dist/components/link/index.d.ts +1 -2
  113. package/dist/components/link/index.js.map +1 -1
  114. package/dist/components/list/index.d.ts +1 -2
  115. package/dist/components/list/index.js.map +1 -1
  116. package/dist/components/list-box/index.d.ts +1 -2
  117. package/dist/components/list-box/index.js.map +1 -1
  118. package/dist/components/list-detail/index.d.ts +1 -2
  119. package/dist/components/list-detail/index.js.map +1 -1
  120. package/dist/components/list-item/index.d.ts +1 -2
  121. package/dist/components/list-item/index.js.map +1 -1
  122. package/dist/components/loading-indicator/index.d.ts +1 -2
  123. package/dist/components/loading-indicator/index.js.map +1 -1
  124. package/dist/components/menu/index.d.ts +1 -2
  125. package/dist/components/menu/index.js.map +1 -1
  126. package/dist/components/meter/index.d.ts +1 -2
  127. package/dist/components/meter/index.js.map +1 -1
  128. package/dist/components/navigation-bar/index.d.ts +1 -2
  129. package/dist/components/navigation-bar/index.js.map +1 -1
  130. package/dist/components/navigation-rail/index.d.ts +1 -2
  131. package/dist/components/navigation-rail/index.js.map +1 -1
  132. package/dist/components/navigation-tree/index.d.ts +1 -2
  133. package/dist/components/navigation-tree/index.js.map +1 -1
  134. package/dist/components/number-field/index.d.ts +1 -2
  135. package/dist/components/number-field/index.js.map +1 -1
  136. package/dist/components/popover/index.d.ts +1 -2
  137. package/dist/components/popover/index.js +14 -4
  138. package/dist/components/popover/index.js.map +1 -1
  139. package/dist/components/product-icon/index.d.ts +1 -2
  140. package/dist/components/product-icon/index.js.map +1 -1
  141. package/dist/components/progress-indicator/index.d.ts +1 -2
  142. package/dist/components/progress-indicator/index.js.map +1 -1
  143. package/dist/components/radio-group/index.d.ts +1 -2
  144. package/dist/components/radio-group/index.js.map +1 -1
  145. package/dist/components/range-calendar/index.d.ts +1 -2
  146. package/dist/components/range-calendar/index.js +53 -80
  147. package/dist/components/range-calendar/index.js.map +1 -1
  148. package/dist/components/search-field/index.d.ts +1 -2
  149. package/dist/components/search-field/index.js.map +1 -1
  150. package/dist/components/search-view/index.d.ts +1 -2
  151. package/dist/components/search-view/index.js.map +1 -1
  152. package/dist/components/segmented-button/index.d.ts +1 -2
  153. package/dist/components/segmented-button/index.js +261 -145
  154. package/dist/components/segmented-button/index.js.map +1 -1
  155. package/dist/components/select/index.d.ts +1 -2
  156. package/dist/components/select/index.js.map +1 -1
  157. package/dist/components/separator/index.d.ts +1 -2
  158. package/dist/components/separator/index.js.map +1 -1
  159. package/dist/components/sheet/index.d.ts +1 -2
  160. package/dist/components/sheet/index.js +149 -82
  161. package/dist/components/sheet/index.js.map +1 -1
  162. package/dist/components/slider/index.d.ts +1 -2
  163. package/dist/components/slider/index.js.map +1 -1
  164. package/dist/components/snackbar/index.d.ts +1 -2
  165. package/dist/components/snackbar/index.js.map +1 -1
  166. package/dist/components/split-button/index.d.ts +1 -2
  167. package/dist/components/split-button/index.js.map +1 -1
  168. package/dist/components/stack/index.d.ts +1 -2
  169. package/dist/components/stack/index.js.map +1 -1
  170. package/dist/components/supporting-pane/index.d.ts +1 -2
  171. package/dist/components/supporting-pane/index.js.map +1 -1
  172. package/dist/components/switch/index.d.ts +1 -2
  173. package/dist/components/switch/index.js.map +1 -1
  174. package/dist/components/table/index.d.ts +1 -2
  175. package/dist/components/table/index.js +251 -123
  176. package/dist/components/table/index.js.map +1 -1
  177. package/dist/components/tabs/index.d.ts +1 -2
  178. package/dist/components/tabs/index.js.map +1 -1
  179. package/dist/components/tag/index.d.ts +1 -2
  180. package/dist/components/tag/index.js.map +1 -1
  181. package/dist/components/text/index.d.ts +1 -2
  182. package/dist/components/text/index.js.map +1 -1
  183. package/dist/components/text-area/index.d.ts +1 -2
  184. package/dist/components/text-area/index.js.map +1 -1
  185. package/dist/components/text-field/index.d.ts +1 -2
  186. package/dist/components/text-field/index.js.map +1 -1
  187. package/dist/components/time-field/index.d.ts +1 -2
  188. package/dist/components/time-field/index.js.map +1 -1
  189. package/dist/components/time-picker/index.d.ts +1 -2
  190. package/dist/components/time-picker/index.js.map +1 -1
  191. package/dist/components/token-field/index.d.ts +1 -2
  192. package/dist/components/token-field/index.js.map +1 -1
  193. package/dist/components/toolbar/index.d.ts +1 -2
  194. package/dist/components/toolbar/index.js.map +1 -1
  195. package/dist/components/tooltip/index.d.ts +1 -2
  196. package/dist/components/tooltip/index.js.map +1 -1
  197. package/dist/components/tree/index.d.ts +1 -2
  198. package/dist/components/tree/index.js.map +1 -1
  199. package/dist/control/index.js.map +1 -1
  200. package/dist/control/styles.js.map +1 -1
  201. package/dist/drag/hooks.d.ts +1 -2
  202. package/dist/drag/hooks.js.map +1 -1
  203. package/dist/drag/index.js.map +1 -1
  204. package/dist/drag/styles.js.map +1 -1
  205. package/dist/fab/styles.js.map +1 -1
  206. package/dist/field/index.d.ts +3 -4
  207. package/dist/field/index.js.map +1 -1
  208. package/dist/field/press.js.map +1 -1
  209. package/dist/field/root.js.map +1 -1
  210. package/dist/field/styles.js.map +1 -1
  211. package/dist/glyphs/index.js.map +1 -1
  212. package/dist/glyphs/styles.js.map +1 -1
  213. package/dist/hooks/useAppBarScroll.d.ts +1 -2
  214. package/dist/hooks/useAppBarScroll.js.map +1 -1
  215. package/dist/hooks/useBottomEdge.js.map +1 -1
  216. package/dist/hooks/useClippedTitle.js.map +1 -1
  217. package/dist/hooks/useImageLoadingStatus.js.map +1 -1
  218. package/dist/hooks/useRipple.js +3 -2
  219. package/dist/hooks/useRipple.js.map +1 -1
  220. package/dist/hooks/useScrollStop.js.map +1 -1
  221. package/dist/hooks/useToggleGroupDisabled.js.map +1 -1
  222. package/dist/i18n/index.js.map +1 -1
  223. package/dist/i18n/messages.js.map +1 -1
  224. package/dist/index.d.ts +2 -2
  225. package/dist/indicator/index.js.map +1 -1
  226. package/dist/indicator/styles.d.ts +1 -2
  227. package/dist/indicator/styles.js.map +1 -1
  228. package/dist/kanso-ui-core/defaults-DMH0HWCw.d.ts +1 -2
  229. package/dist/keycap/context.js.map +1 -1
  230. package/dist/layout.d.ts +1 -2
  231. package/dist/layout.js.map +1 -1
  232. package/dist/mark/index.js.map +1 -1
  233. package/dist/mark/initials.js.map +1 -1
  234. package/dist/mark/styles.js.map +1 -1
  235. package/dist/navigation/context.js.map +1 -1
  236. package/dist/navigation/index.d.ts +2 -3
  237. package/dist/navigation/index.js.map +1 -1
  238. package/dist/navigation/styles.js.map +1 -1
  239. package/dist/overlay/index.js.map +1 -1
  240. package/dist/render/aria.js.map +1 -1
  241. package/dist/render/content.js.map +1 -1
  242. package/dist/render/name.d.ts +1 -2
  243. package/dist/render/ref.js.map +1 -1
  244. package/dist/render/useRender.d.ts +1 -2
  245. package/dist/render/useRender.js.map +1 -1
  246. package/dist/row/index.js.map +1 -1
  247. package/dist/row/styles.js.map +1 -1
  248. package/dist/segments/index.js +2 -1
  249. package/dist/segments/index.js.map +1 -1
  250. package/dist/segments/styles.js +5 -1
  251. package/dist/segments/styles.js.map +1 -1
  252. package/dist/styles/chequer.js.map +1 -1
  253. package/dist/styles/color.js.map +1 -1
  254. package/dist/styles/focus.js.map +1 -1
  255. package/dist/styles/icon-button.js.map +1 -1
  256. package/dist/styles/merge.js.map +1 -1
  257. package/dist/styles/overlay.d.ts +2 -3
  258. package/dist/styles/overlay.js.map +1 -1
  259. package/dist/styles/picker.js.map +1 -1
  260. package/dist/styles/ripple.js.map +1 -1
  261. package/dist/styles/scheme.js.map +1 -1
  262. package/dist/styles.css +40 -8
  263. package/dist/swatch/index.js +19 -0
  264. package/dist/swatch/index.js.map +1 -0
  265. package/dist/theme-scope.d.ts +1 -2
  266. package/dist/theme-scope.js.map +1 -1
  267. package/dist/tokens/design.tokens.stylex.js.map +1 -1
  268. package/dist/tokens/values.js.map +1 -1
  269. package/package.json +16 -16
@@ -121,6 +121,69 @@ function escapeKeyOn(escape, state, render) {
121
121
  return render === void 0 ? /* @__PURE__ */ jsx("section", { ...next }) : render(next, renderProps);
122
122
  };
123
123
  }
124
+ function hasSize(element) {
125
+ return element.clientWidth > 0 && element.clientHeight > 0;
126
+ }
127
+ /**
128
+ * Puts a panel against the edge it rests on, without the smooth scroll an
129
+ * arrival takes: a bottom sheet, or a sheet on the right, at the end of its
130
+ * scroller, and a sheet on the left at the start. React Aria stamps the edge
131
+ * it resolved, by the writing direction, on the layer.
132
+ */
133
+ function restAtEdge(layer, scroller) {
134
+ const edge = layer.dataset.position;
135
+ if (edge === "bottom") scroller.scrollTo({ top: scroller.scrollHeight });
136
+ else scroller.scrollTo({ left: edge === "left" ? 0 : scroller.scrollWidth });
137
+ }
138
+ /**
139
+ * Rests a panel that opened before it could be laid out, once it can be.
140
+ *
141
+ * React Aria brings a panel in by scrolling its scroller to where it rests,
142
+ * and counts the panel as arriving until that scroll ends. A scroller with no
143
+ * size scrolls nowhere and never ends a scroll, which is what a sheet opened
144
+ * inside something hidden has — a `container` in a tab panel or a route not
145
+ * shown yet. Shown later, the panel was laid out where the scroll left it,
146
+ * off the window, with its scrim over the page, and React Aria went on
147
+ * waiting: focus never moved in, and a press on the trigger behind it closed
148
+ * a sheet nobody had seen.
149
+ *
150
+ * So a layer whose scroller has no size as it mounts is watched until the
151
+ * scroller first has one, and the panel is then put where it opens, which
152
+ * ends the scroll React Aria is waiting on. A scroller with a size from the
153
+ * start is left to React Aria, and nothing here runs again: a panel being
154
+ * dragged or arriving always has a size. A ref callback rather than an
155
+ * effect, since the layer mounts with the sheet's opening, which the trigger
156
+ * rather than this part decides.
157
+ */
158
+ function restOnceLaidOut(layer) {
159
+ const scroller = layer?.querySelector("[data-sheet-scroll]");
160
+ if (!(layer instanceof HTMLElement && scroller instanceof HTMLElement) || hasSize(scroller)) return;
161
+ const observer = new ResizeObserver(() => {
162
+ if (!hasSize(scroller)) return;
163
+ observer.disconnect();
164
+ restWhereItOpens(layer, scroller);
165
+ });
166
+ observer.observe(scroller);
167
+ return () => {
168
+ observer.disconnect();
169
+ };
170
+ }
171
+ /**
172
+ * Puts a panel where it opens, as React Aria's arrival does: at its first
173
+ * snap point where it has them, which React Aria marks inside the panel, and
174
+ * otherwise against its edge. Only a bottom sheet takes snap points, and the
175
+ * marker's top edge, less its scroll margin, is what React Aria lines up with
176
+ * the top of the scroller.
177
+ */
178
+ function restWhereItOpens(layer, scroller) {
179
+ const first = layer.querySelector("[data-sheet-initial]");
180
+ if (!(first instanceof HTMLElement)) {
181
+ restAtEdge(layer, scroller);
182
+ return;
183
+ }
184
+ const margin = Number.parseFloat(getComputedStyle(first).scrollMarginTop) || 0;
185
+ scroller.scrollTo({ top: first.getBoundingClientRect().top - scroller.getBoundingClientRect().top + scroller.scrollTop - margin });
186
+ }
124
187
  /**
125
188
  * A modal panel that arrives from the edge of the screen — a side sheet on a
126
189
  * wide viewport, a bottom sheet on a narrow one. Open state is React Aria's:
@@ -253,21 +316,21 @@ function SheetBody(t0) {
253
316
  * positioned element holds the sheet to that element instead.
254
317
  */
255
318
  function SheetContent$1(t0) {
256
- const $ = c(42);
319
+ const $ = c(43);
257
320
  let children;
258
321
  let className;
259
322
  let container;
260
323
  let defaultOpen;
261
324
  let isOpen;
262
325
  let onOpenChange;
263
- let props$1;
326
+ let props$3;
264
327
  let ref;
265
328
  let snapPoints;
266
329
  let style;
267
330
  let t1;
268
331
  let t2;
269
332
  if ($[0] !== t0) {
270
- ({children, className, container, defaultOpen, isDismissable: t1, isKeyboardDismissDisabled: t2, isOpen, onOpenChange, ref, snapPoints, style, ...props$1} = t0);
333
+ ({children, className, container, defaultOpen, isDismissable: t1, isKeyboardDismissDisabled: t2, isOpen, onOpenChange, ref, snapPoints, style, ...props$3} = t0);
271
334
  $[0] = t0;
272
335
  $[1] = children;
273
336
  $[2] = className;
@@ -275,7 +338,7 @@ function SheetContent$1(t0) {
275
338
  $[4] = defaultOpen;
276
339
  $[5] = isOpen;
277
340
  $[6] = onOpenChange;
278
- $[7] = props$1;
341
+ $[7] = props$3;
279
342
  $[8] = ref;
280
343
  $[9] = snapPoints;
281
344
  $[10] = style;
@@ -288,7 +351,7 @@ function SheetContent$1(t0) {
288
351
  defaultOpen = $[4];
289
352
  isOpen = $[5];
290
353
  onOpenChange = $[6];
291
- props$1 = $[7];
354
+ props$3 = $[7];
292
355
  ref = $[8];
293
356
  snapPoints = $[9];
294
357
  style = $[10];
@@ -302,117 +365,123 @@ function SheetContent$1(t0) {
302
365
  const position = isBottom ? "bottom" : "end";
303
366
  const heights = isBottom && snapPoints !== void 0 && snapPoints.length > 0 ? snapPoints : void 0;
304
367
  const overlayRef = useRef(null);
368
+ let t3;
369
+ if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
370
+ t3 = mergeRefs(overlayRef, restOnceLaidOut);
371
+ $[13] = t3;
372
+ } else t3 = $[13];
373
+ const layerRef = t3;
305
374
  useRestOnTurn(overlayRef, position);
306
375
  let escape;
307
- if ($[13] !== isDismissable || $[14] !== isKeyboardDismissDisabled) {
376
+ if ($[14] !== isDismissable || $[15] !== isKeyboardDismissDisabled) {
308
377
  if (isDismissable === isKeyboardDismissDisabled) escape = isKeyboardDismissDisabled ? "hold" : "close";
309
- $[13] = isDismissable;
310
- $[14] = isKeyboardDismissDisabled;
311
- $[15] = escape;
312
- } else escape = $[15];
313
- const t3 = !isDismissable;
314
- const t4 = isReduced ? void 0 : scrimIn;
315
- const t5 = heights === void 0 ? void 0 : TO_THE_FIRST_SNAP_POINT;
316
- let t6;
317
- if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
318
- t6 = props(overlay.backdrop);
319
- $[16] = t6;
320
- } else t6 = $[16];
378
+ $[14] = isDismissable;
379
+ $[15] = isKeyboardDismissDisabled;
380
+ $[16] = escape;
381
+ } else escape = $[16];
382
+ const t4 = !isDismissable;
383
+ const t5 = isReduced ? void 0 : scrimIn;
384
+ const t6 = heights === void 0 ? void 0 : TO_THE_FIRST_SNAP_POINT;
321
385
  let t7;
322
- if ($[17] !== t4 || $[18] !== t5) {
323
- t7 = /* @__PURE__ */ jsx(SheetBackdrop, {
324
- swipeAnimation: t4,
325
- swipeAnimationRange: t5,
326
- ...t6
386
+ if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
387
+ t7 = props(overlay.backdrop);
388
+ $[17] = t7;
389
+ } else t7 = $[17];
390
+ let t8;
391
+ if ($[18] !== t5 || $[19] !== t6) {
392
+ t8 = /* @__PURE__ */ jsx(SheetBackdrop, {
393
+ swipeAnimation: t5,
394
+ swipeAnimationRange: t6,
395
+ ...t7
327
396
  });
328
- $[17] = t4;
329
397
  $[18] = t5;
330
- $[19] = t7;
331
- } else t7 = $[19];
332
- let t8;
333
- if ($[20] !== className || $[21] !== style) {
334
- t8 = mergeStatefulStyles(panelStyles, {
398
+ $[19] = t6;
399
+ $[20] = t8;
400
+ } else t8 = $[20];
401
+ let t9;
402
+ if ($[21] !== className || $[22] !== style) {
403
+ t9 = mergeStatefulStyles(panelStyles, {
335
404
  className,
336
405
  style
337
406
  });
338
- $[20] = className;
339
- $[21] = style;
340
- $[22] = t8;
341
- } else t8 = $[22];
342
- let t9;
343
- if ($[23] !== children || $[24] !== escape || $[25] !== heights || $[26] !== props$1) {
344
- t9 = (t10) => {
345
- const { isExpanded } = t10;
407
+ $[21] = className;
408
+ $[22] = style;
409
+ $[23] = t9;
410
+ } else t9 = $[23];
411
+ let t10;
412
+ if ($[24] !== children || $[25] !== escape || $[26] !== heights || $[27] !== props$3) {
413
+ t10 = (t11) => {
414
+ const { isExpanded } = t11;
346
415
  let snap = null;
347
416
  if (heights !== void 0) snap = isExpanded ? "expanded" : "collapsed";
348
417
  return /* @__PURE__ */ jsx(SnapContext, {
349
418
  value: snap,
350
419
  children: /* @__PURE__ */ jsx(SheetDialog, {
351
420
  escape,
352
- ...props$1,
421
+ ...props$3,
353
422
  children
354
423
  })
355
424
  });
356
425
  };
357
- $[23] = children;
358
- $[24] = escape;
359
- $[25] = heights;
360
- $[26] = props$1;
361
- $[27] = t9;
362
- } else t9 = $[27];
363
- let t10;
364
- if ($[28] !== ref || $[29] !== t8 || $[30] !== t9) {
365
- t10 = /* @__PURE__ */ jsx(Sheet, {
426
+ $[24] = children;
427
+ $[25] = escape;
428
+ $[26] = heights;
429
+ $[27] = props$3;
430
+ $[28] = t10;
431
+ } else t10 = $[28];
432
+ let t11;
433
+ if ($[29] !== ref || $[30] !== t10 || $[31] !== t9) {
434
+ t11 = /* @__PURE__ */ jsx(Sheet, {
366
435
  ref,
367
- ...t8,
368
- children: t9
436
+ ...t9,
437
+ children: t10
369
438
  });
370
- $[28] = ref;
371
- $[29] = t8;
372
- $[30] = t9;
373
- $[31] = t10;
374
- } else t10 = $[31];
375
- let t11;
376
- if ($[32] !== container || $[33] !== defaultOpen || $[34] !== heights || $[35] !== isOpen || $[36] !== onOpenChange || $[37] !== position || $[38] !== t10 || $[39] !== t3 || $[40] !== t7) {
377
- t11 = /* @__PURE__ */ jsx(OverlayScope, { children: /* @__PURE__ */ jsxs(SheetOverlay, {
439
+ $[29] = ref;
440
+ $[30] = t10;
441
+ $[31] = t9;
442
+ $[32] = t11;
443
+ } else t11 = $[32];
444
+ let t12;
445
+ if ($[33] !== container || $[34] !== defaultOpen || $[35] !== heights || $[36] !== isOpen || $[37] !== onOpenChange || $[38] !== position || $[39] !== t11 || $[40] !== t4 || $[41] !== t8) {
446
+ t12 = /* @__PURE__ */ jsx(OverlayScope, { children: /* @__PURE__ */ jsxs(SheetOverlay, {
378
447
  defaultOpen,
379
448
  isOpen,
380
449
  onOpenChange,
381
450
  position,
382
- preventDismissal: t3,
383
- ref: overlayRef,
451
+ preventDismissal: t4,
452
+ ref: layerRef,
384
453
  snapPoints: heights,
385
454
  UNSTABLE_portalContainer: container,
386
455
  className: "x9f619 x125h2g0",
387
- children: [t7, t10]
456
+ children: [t8, t11]
388
457
  }) });
389
- $[32] = container;
390
- $[33] = defaultOpen;
391
- $[34] = heights;
392
- $[35] = isOpen;
393
- $[36] = onOpenChange;
394
- $[37] = position;
395
- $[38] = t10;
396
- $[39] = t3;
397
- $[40] = t7;
398
- $[41] = t11;
399
- } else t11 = $[41];
400
- return t11;
458
+ $[33] = container;
459
+ $[34] = defaultOpen;
460
+ $[35] = heights;
461
+ $[36] = isOpen;
462
+ $[37] = onOpenChange;
463
+ $[38] = position;
464
+ $[39] = t11;
465
+ $[40] = t4;
466
+ $[41] = t8;
467
+ $[42] = t12;
468
+ } else t12 = $[42];
469
+ return t12;
401
470
  }
402
471
  function SheetDialog(t0) {
403
472
  const $ = c(12);
404
473
  let escape;
405
- let props$3;
474
+ let props$1;
406
475
  let render;
407
476
  if ($[0] !== t0) {
408
- ({escape, render, ...props$3} = t0);
477
+ ({escape, render, ...props$1} = t0);
409
478
  $[0] = t0;
410
479
  $[1] = escape;
411
- $[2] = props$3;
480
+ $[2] = props$1;
412
481
  $[3] = render;
413
482
  } else {
414
483
  escape = $[1];
415
- props$3 = $[2];
484
+ props$1 = $[2];
416
485
  render = $[3];
417
486
  }
418
487
  const state = useContext(OverlayTriggerStateContext);
@@ -430,13 +499,13 @@ function SheetDialog(t0) {
430
499
  $[8] = t2;
431
500
  } else t2 = $[8];
432
501
  let t3;
433
- if ($[9] !== props$3 || $[10] !== t1) {
502
+ if ($[9] !== props$1 || $[10] !== t1) {
434
503
  t3 = /* @__PURE__ */ jsx(SheetContent, {
435
- ...props$3,
504
+ ...props$1,
436
505
  render: t1,
437
506
  ...t2
438
507
  });
439
- $[9] = props$3;
508
+ $[9] = props$1;
440
509
  $[10] = t1;
441
510
  $[11] = t3;
442
511
  } else t3 = $[11];
@@ -617,9 +686,7 @@ function useRestOnTurn(overlayRef, position) {
617
686
  const layer = overlayRef.current;
618
687
  const scroller = layer?.querySelector("[data-sheet-scroll]");
619
688
  if (!(layer instanceof HTMLElement && scroller instanceof HTMLElement)) return;
620
- const edge = layer.dataset.position;
621
- if (edge === "bottom") scroller.scrollTo({ top: scroller.scrollHeight });
622
- else scroller.scrollTo({ left: edge === "left" ? 0 : scroller.scrollWidth });
689
+ restAtEdge(layer, scroller);
623
690
  };
624
691
  t1 = [overlayRef, position];
625
692
  $[0] = overlayRef;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["c","_c","HTMLAttributes","KeyboardEvent","ReactNode","RefAttributes","RefObject","ClassNameOrFunction","DialogProps","DialogTriggerProps","HeadingProps","ModalOverlayProps","PressEvent","SheetRenderProps","StyleOrFunction","OverlayTriggerState","stylex","createContext","useContext","useLayoutEffect","useMemo","useRef","useSyncExternalStore","Heading","HeadingContext","OverlayTriggerStateContext","Button","RACButton","Sheet","RACSheet","SheetContent","RACSheetContent","SheetBackdrop","SheetOverlay","SheetTrigger","useSlottedContext","useHoldBottomEdge","useScrollStop","useMessages","OverlayScope","mergeRefs","layers","mergeStatefulStyles","mergeStyles","overlay","colors","media","radii","shadows","spacing","typography","FORCED_COLORS","scrimIn","BOTTOM_SHEET","REDUCED_MOTION","TO_THE_FIRST_SNAP_POINT","end","styles","body","kB7OPa","k1xSpc","kXwgrk","kzQI83","kOIVth","kAzted","kHjlTd","kORKVm","k8WAf4","kg3NbH","$$css","bodyHeld","isBottomSheet","window","matchMedia","matches","isReducedMotion","moveToNextSnapPoint","target","scroller","closest","HTMLElement","origin","getBoundingClientRect","top","scrollTop","stops","querySelectorAll","map","marker","Number","parseFloat","getComputedStyle","scrollMarginTop","length","distances","stop","Math","abs","at","indexOf","min","scrollTo","behavior","onServer","panelStyles","position","className","subscribeTo","query","listener","list","addEventListener","removeEventListener","subscribeToBottomSheet","subscribeToReducedMotion","SnapState","SnapContext","escapeKeyOn","escape","state","render","NonNullable","props","renderProps","next","onKeyDown","event","key","nativeEvent","isComposing","Node","currentTarget","contains","stopPropagation","preventDefault","close","undefined","t0","$","children","t1","SheetBody","ref","callerRef","snap","title","scrollStop","label","id","t2","merged","t3","modalBodyRing","t4","container","defaultOpen","isOpen","onOpenChange","snapPoints","style","isDismissable","isKeyboardDismissDisabled","isBottom","isReduced","heights","overlayRef","useRestOnTurn","t5","t6","Symbol","for","backdrop","t7","t8","t9","t10","isExpanded","t11","SheetDialog","modalDialog","SheetFooter","SheetHandle","messages","bar","dragHandle","SheetHeader","SheetTitle","previous","current","layer","querySelector","edge","dataset","scrollHeight","left","scrollWidth","Body","Content","Footer","Handle","Header","Title","SheetContentProps","Omit","Pick","Element","Array","SheetProps","SheetTitleProps","Sheet","_c","props","stylex.props","SheetContent","RACSheet","RACSheetContent","RACButton"],"sources":["../../../src/components/sheet/index.tsx"],"sourcesContent":["'use client';\n\nimport type { HTMLAttributes, KeyboardEvent, ReactNode, RefAttributes, RefObject } from 'react';\nimport type { ClassNameOrFunction, DialogProps, DialogTriggerProps, HeadingProps, ModalOverlayProps, PressEvent, SheetRenderProps, StyleOrFunction } from 'react-aria-components';\nimport type { OverlayTriggerState } from 'react-stately';\nimport * as stylex from '@stylexjs/stylex';\nimport { createContext, useContext, useLayoutEffect, useMemo, useRef, useSyncExternalStore } from 'react';\nimport { Heading, HeadingContext, OverlayTriggerStateContext, Button as RACButton, Sheet as RACSheet, SheetContent as RACSheetContent, SheetBackdrop, SheetOverlay, SheetTrigger, useSlottedContext } from 'react-aria-components';\nimport { useHoldBottomEdge } from '../../hooks/useBottomEdge';\nimport { useScrollStop } from '../../hooks/useScrollStop';\nimport { useMessages } from '../../i18n';\nimport { OverlayScope } from '../../overlay';\nimport { mergeRefs } from '../../render/ref';\nimport '../../styles/layers.stylex';\nimport { layers } from '../../styles/layers.stylex';\nimport { mergeStatefulStyles, mergeStyles } from '../../styles/merge';\nimport { overlay } from '../../styles/overlay';\nimport '../../tokens/design.tokens.stylex';\nimport { colors, media, radii, shadows, spacing, typography } from '../../tokens/design.tokens.stylex';\n\n// Windows High Contrast and the rest of the forced-colours modes. Spelled\n// here rather than imported, for the reason src/field/styles.ts records: the\n// StyleX compiler resolves a constant across files only out of a `.stylex.ts`\n// module, and the generated one holds design tokens rather than queries.\nconst FORCED_COLORS = '@media (forced-colors: active)';\n\n// One component, two presentations. Above the medium breakpoint it is a side\n// sheet pinned to the inline end of the viewport; below it, the same panel\n// becomes a bottom sheet. That is the pairing the Material Design pages draw\n// rather than two components: a sheet that stayed on the right at 375px would\n// be a drawer covering the whole screen.\n//\n// The two differ in five things and no more: which edge they rest on, which\n// two corners are rounded, which axis they arrive and leave along, how much\n// of the viewport they may take, and the drag handle, which is the bottom\n// sheets page's element alone. Everything inside the panel — the 24 of start\n// and end padding, the 12 between the header's elements, the actions area —\n// comes from the side sheets page and is drawn the same in both.\n//\n// **It is React Aria's `Sheet`.** The panel sits on a scroller a viewport\n// longer than the window along the axis it arrives on, and the browser's own\n// scrolling moves it: a swipe toward the edge it rests on scrolls it out of\n// view, which closes it, as the bottom sheets page's swipe down and the side\n// sheets page's slide off the edge do. Which edge is a prop rather than a\n// style, so the breakpoint is read here in JavaScript, as Dialog's full screen\n// is, and the styles below are keyed on the edge React Aria reports rather\n// than on the media query. `end` is the right, or the left in a right-to-left\n// locale: React Aria reads the locale's direction, not the document's, so a\n// right-to-left page sets it through `I18nProvider`, as it does for anything\n// drawn in a popover.\n//\n// **It moves at the browser's pace.** Entry and exit are a smooth scroll, so\n// they take the browser's own duration and easing rather than the\n// side sheets page's medium 1 and emphasized decelerate: a scroll position is\n// what a swipe moves, and timing it in CSS would leave the panel somewhere\n// the scroller is not. Under reduced motion React Aria scrolls without\n// smoothing, so the panel arrives and leaves in place. The scrim follows the\n// scroll through the backdrop's swipe animation, darkening as the panel comes\n// in and lifting as a swipe takes it out, and keeps the shared fade under\n// reduced motion — see `backdrop` in src/styles/overlay.ts.\nconst scrimIn = \"x18re5ia-B\";\n\n// The window sizes the panel is drawn at as a bottom sheet: the medium\n// breakpoint, as `media.belowMedium` spells it for the handle below.\nconst BOTTOM_SHEET = '(width < 600px)';\nconst REDUCED_MOTION = '(prefers-reduced-motion: reduce)';\n\n// The scrim's range along a sheet with snap points: from closed to the first\n// of them, as React Aria counts its swipe animation's range in snap points.\nconst TO_THE_FIRST_SNAP_POINT = {\n end: 0\n};\n\n// React Aria's overlay is a layer holding the scrim and a scroller, the\n// scroller holds the panel, and the panel holds the dialog. The styles are\n// split the same way: the layer and the scrim, `panel` and the edge's own\n// styles on the panel, and the overlay module's modal dialog style on the\n// element that carries the role.\nconst styles = {\n body: {\n kB7OPa: \"x9f619\",\n k1xSpc: \"x78zum5\",\n kXwgrk: \"xdt5ytf\",\n kzQI83: \"x1iyjqo2\",\n kOIVth: \"xxj4525\",\n kAzted: \"x2lwn1j\",\n kHjlTd: \"xj0a0fe\",\n kORKVm: \"x1odjw0f\",\n k8WAf4: \"xp6hjv6\",\n kg3NbH: \"xg0ps1x\",\n $$css: true\n },\n bodyHeld: {\n kORKVm: \"x1s73dr8\",\n $$css: true\n }\n};\n\n// Whether the window is at the size the bottom sheet is drawn at, and whether\n// its reader asked for less motion, each kept current. False on the server,\n// where there is no window and nothing is open.\nfunction isBottomSheet() {\n return window.matchMedia(BOTTOM_SHEET).matches;\n}\nfunction isReducedMotion() {\n return window.matchMedia(REDUCED_MOTION).matches;\n}\n\n/**\n * Moves the sheet whose handle was pressed to its next snap point, or from\n * the last back to the first. React Aria offers no call that moves a sheet,\n * so this scrolls its scroller as React Aria does to open the sheet at the\n * first: React Aria places a marker in the panel for each snap point, and a\n * scroll that rests a marker one viewport below the scroller's top leaves\n * that snap point showing. The markers are `[data-sheet-detent]`, in the\n * order the snap points were given, and they are React Aria's markup rather\n * than its API — a release that renames them leaves the handle pressing\n * nothing, which the handle's tests are there to say.\n *\n * Which snap point the sheet is at is the marker whose resting scroll lies\n * nearest the scroller's own, so a press after a swipe moves on from where\n * the swipe left the sheet.\n */\nfunction moveToNextSnapPoint({\n target\n}: PressEvent) {\n const scroller = target.closest('[data-sheet-scroll]');\n if (!(scroller instanceof HTMLElement)) {\n return;\n }\n // Where the scroller's content starts, in the window's coordinates.\n const origin = scroller.getBoundingClientRect().top - scroller.scrollTop;\n const stops = [...scroller.querySelectorAll('[data-sheet-detent]')].map(marker => marker.getBoundingClientRect().top - origin - Number.parseFloat(getComputedStyle(marker).scrollMarginTop));\n if (stops.length === 0) {\n return;\n }\n const distances = stops.map(stop => Math.abs(stop - scroller.scrollTop));\n const at = distances.indexOf(Math.min(...distances));\n scroller.scrollTo({\n behavior: isReducedMotion() ? 'auto' : 'smooth',\n top: stops[(at + 1) % stops.length]\n });\n}\nfunction onServer() {\n return false;\n}\n\n// The panel's styles for the edge React Aria rests it on. `top` and `center`\n// are positions React Aria offers and this never asks for.\nfunction panelStyles({\n position\n}: SheetRenderProps) {\n return {\n 0: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x5yr21d xrzall9 xjslfuv x1gbqego xjg5lhu x6xk272 x1l2rt3b x1a148e8 x1mrd0q\"\n },\n 4: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x19dwuzr x4z998w x1lym3mf x1u81hx7 x1uop38w xh8yej3 xv4ka1z x1a148e8 x196z7tn xg4jtgg\"\n },\n 2: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x5yr21d xrzall9 xjslfuv x1gbqego xjg5lhu x6xk272 x1l2rt3b x1a148e8 x1mrd0q x196z7tn\"\n },\n 6: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x19dwuzr x4z998w x1lym3mf x1u81hx7 x1uop38w xh8yej3 xv4ka1z x1a148e8 xg4jtgg x196z7tn\"\n },\n 1: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x5yr21d xrzall9 xjslfuv x1gbqego xjg5lhu x6xk272 x1l2rt3b x1a148e8 x1mrd0q xg4jtgg\"\n },\n 5: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x19dwuzr x4z998w x1lym3mf x1u81hx7 x1uop38w xh8yej3 xv4ka1z x1a148e8 x196z7tn xg4jtgg\"\n },\n 3: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x5yr21d xrzall9 xjslfuv x1gbqego xjg5lhu x6xk272 x1l2rt3b x1a148e8 x1mrd0q x196z7tn xg4jtgg\"\n },\n 7: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x19dwuzr x4z998w x1lym3mf x1u81hx7 x1uop38w xh8yej3 xv4ka1z x1a148e8 x196z7tn xg4jtgg\"\n }\n }[!!(position === 'bottom') << 2 | !!(position === 'left') << 1 | !!(position === 'right') << 0];\n}\nfunction subscribeTo(query: string) {\n return (listener: () => void) => {\n const list = window.matchMedia(query);\n list.addEventListener('change', listener);\n return () => {\n list.removeEventListener('change', listener);\n };\n };\n}\nconst subscribeToBottomSheet = subscribeTo(BOTTOM_SHEET);\nconst subscribeToReducedMotion = subscribeTo(REDUCED_MOTION);\n\n// Where a bottom sheet with snap points rests: at its last, `expanded`, or\n// short of it, `collapsed`. Content sets it from React Aria's render state,\n// and the handle and the body read it. Null in a sheet without snap points,\n// whose handle is decoration and whose body always scrolls.\ntype SnapState = 'collapsed' | 'expanded' | null;\nconst SnapContext = createContext<SnapState>(null);\n\n/**\n * The dialog's element, given a key handler for Escape. React Aria's sheet\n * has one switch for every way out, so where this sheet's two settings\n * disagree about Escape the handler answers for it: `close` closes the sheet\n * React Aria is holding open, and `hold` keeps Escape from the overlay that\n * would close it. Either way the key goes no further, as it would not have\n * from React Aria's own handler.\n */\nfunction escapeKeyOn(escape: 'close' | 'hold', state: null | OverlayTriggerState, render: DialogProps['render']): NonNullable<DialogProps['render']> {\n return (props, renderProps) => {\n const next = {\n ...props,\n onKeyDown: (event: KeyboardEvent<HTMLElement>) => {\n props.onKeyDown?.(event);\n if (event.key !== 'Escape' || event.nativeEvent.isComposing ||\n // A key from an overlay opened inside this one reaches here through\n // React's tree, though that overlay is portalled out over this one,\n // and is that overlay's to answer.\n !(event.target instanceof Node && event.currentTarget.contains(event.target))) {\n return;\n }\n event.stopPropagation();\n if (escape === 'close') {\n event.preventDefault();\n state?.close();\n }\n }\n };\n return render === undefined ? <section {...next} /> : render(next, renderProps);\n };\n}\n\n/**\n * A modal panel that arrives from the edge of the screen — a side sheet on a\n * wide viewport, a bottom sheet on a narrow one. Open state is React Aria's:\n * pass `isOpen` with `onOpenChange` to control it, or `defaultOpen` to let it\n * keep its own.\n *\n * Composed rather than configured by props, because a sheet's header, body,\n * and footer all take arbitrary content — the parts are `Sheet.Content`,\n * `Sheet.Header`, `Sheet.Title`, `Sheet.Body`, and `Sheet.Footer`. A\n * `Button` or `IconButton` placed directly inside `Sheet` opens it, and one\n * given `slot=\"close\"` anywhere inside the content closes it; neither needs\n * a part of its own.\n *\n * ```tsx\n * <Sheet>\n * <Button>Open</Button>\n * <Sheet.Content>\n * <Sheet.Handle />\n * <Sheet.Header>\n * <Sheet.Title>Headline</Sheet.Title>\n * </Sheet.Header>\n * <Sheet.Body>Supporting line</Sheet.Body>\n * <Sheet.Footer>\n * <Button slot=\"close\">Close</Button>\n * </Sheet.Footer>\n * </Sheet.Content>\n * </Sheet>\n * ```\n *\n * `Sheet` is the trigger's half, so a sheet nothing on the page opens — one\n * a route shows, or a menu item raises — leaves it out and passes `isOpen`\n * and `onOpenChange` to `Sheet.Content` instead. Wrapped in `Sheet` with no\n * button inside it, React Aria warns that its press responder found nothing\n * to press.\n *\n * ```tsx\n * <Sheet.Content isOpen={isOpen} onOpenChange={setOpen}>\n * …\n * </Sheet.Content>\n * ```\n *\n * Tab stays inside an open sheet, so a `Snackbar` shown meanwhile is reached\n * with F6, which React Aria uses to move between landmarks. Tabbing on past\n * the snackbar's last control leads back into the sheet.\n */\nfunction Sheet({\n children,\n ...props\n}: SheetProps) {\n return <SheetTrigger {...props}>{children}</SheetTrigger>;\n}\nfunction SheetBody({\n ref: callerRef,\n ...props\n}: HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>) {\n const ref = useRef<HTMLDivElement>(null);\n const snap = useContext(SnapContext);\n // A body its content runs past is a tab stop named by the title, so a\n // keyboard can scroll it, when nothing inside it takes focus; a call\n // site's own name, role and tabIndex still win. See useScrollStop.\n const title = useSlottedContext(HeadingContext, 'title');\n const scrollStop = useScrollStop(ref, {\n label: props['aria-label'],\n title: title?.id\n });\n // The body measures itself through its own ref, and the call site's lands\n // on the same element.\n const merged = useMemo(() => mergeRefs(ref, callerRef ?? undefined), [callerRef]);\n return <div {...scrollStop} {...props} ref={merged} {...mergeStyles(stylex.props(styles.body, snap === 'collapsed' && styles.bodyHeld, overlay.modalBodyRing), props)} />;\n}\n\n/**\n * The panel itself, and the scrim behind it. Everything the sheet shows goes\n * in here; the trigger stays outside it, since the trigger lives in the page\n * while this is portalled out to the end of the body.\n *\n * A swipe toward the edge the panel rests on closes it — down on a bottom\n * sheet, toward the screen's edge on a side sheet — as do a press on the\n * scrim, Escape and a `slot=\"close\"` button. `isDismissable` holds the first\n * two, and `isKeyboardDismissDisabled` holds Escape. React Aria's default for\n * the scrim is the reverse of this one: a sheet that ignores a tap outside it\n * reads as stuck.\n *\n * Inside `Sheet`, the open state is the trigger's. On its own, with no\n * trigger, it is this part's: `isOpen` with `onOpenChange` controls it, and\n * a swipe, a `slot=\"close\"` button, Escape and the scrim all report through\n * `onOpenChange`, as they would to `Sheet`.\n *\n * The sheet draws at `z-index: 900`, the scrim and the panel over it, over\n * any page content layered below that, such as a sticky header. A\n * `Snackbar` draws at 1000, so a toast raised from inside the sheet is read\n * over it, and React Aria's popovers and menus draw above both.\n *\n * React Aria lays the sheet over the page from the page's own top-left\n * corner rather than fixing it to the window, so a `container` inside a\n * positioned element holds the sheet to that element instead.\n */\nfunction SheetContent({\n children,\n className,\n container,\n defaultOpen,\n isDismissable = true,\n isKeyboardDismissDisabled = false,\n isOpen,\n onOpenChange,\n ref,\n snapPoints,\n style,\n ...props\n}: RefAttributes<HTMLDivElement> & SheetContentProps) {\n const isBottom = useSyncExternalStore(subscribeToBottomSheet, isBottomSheet, onServer);\n const isReduced = useSyncExternalStore(subscribeToReducedMotion, isReducedMotion, onServer);\n const position = isBottom ? 'bottom' : 'end';\n // The heights are the bottom sheet's alone; a side sheet has one width.\n const heights = isBottom && snapPoints !== undefined && snapPoints.length > 0 ? snapPoints : undefined;\n const overlayRef = useRef<HTMLDivElement>(null);\n useRestOnTurn(overlayRef, position);\n // React Aria holds Escape whenever it holds the scrim and the swipe, so\n // the two settings disagreeing is where the dialog answers for Escape.\n let escape: 'close' | 'hold' | undefined;\n if (isDismissable === isKeyboardDismissDisabled) {\n escape = isKeyboardDismissDisabled ? 'hold' : 'close';\n }\n return <OverlayScope>\n <SheetOverlay defaultOpen={defaultOpen} isOpen={isOpen} onOpenChange={onOpenChange} position={position} preventDismissal={!isDismissable} ref={overlayRef} snapPoints={heights}\n // oxlint-disable-next-line typescript/no-deprecated -- its replacement, UNSAFE_PortalProvider, is not exported by react-aria-components\n UNSTABLE_portalContainer={container} className=\"x9f619 x125h2g0\">\n <SheetBackdrop\n // The shared fade instead under reduced motion, where the panel\n // arrives without moving and the scrim is all that says so.\n swipeAnimation={isReduced ? undefined : scrimIn}\n // Whole once the panel reaches its first snap point rather than\n // only once all of it shows, so a collapsed sheet holds the page\n // behind the same scrim an expanded one does, and a swipe below\n // that point is what lifts it.\n swipeAnimationRange={heights === undefined ? undefined : TO_THE_FIRST_SNAP_POINT} {...stylex.props(overlay.backdrop)} />\n <RACSheet\n // The panel, where the call site's class and style land, rather than\n // the dialog inside it, which takes the rest of the props.\n ref={ref} {...mergeStatefulStyles(panelStyles, {\n className,\n style\n })}>\n {({\n isExpanded\n }) => {\n let snap: SnapState = null;\n if (heights !== undefined) {\n snap = isExpanded ? 'expanded' : 'collapsed';\n }\n return <SnapContext value={snap}>\n <SheetDialog escape={escape} {...props}>\n {children}\n </SheetDialog>\n </SnapContext>;\n }}\n </RACSheet>\n </SheetOverlay>\n </OverlayScope>;\n}\n\n// The element with the dialog role, inside the overlay so it can reach the\n// open state React Aria holds there.\nfunction SheetDialog({\n escape,\n render,\n ...props\n}: DialogProps & {\n escape: 'close' | 'hold' | undefined;\n}) {\n const state = useContext(OverlayTriggerStateContext);\n return <RACSheetContent {...props} render={escape === undefined ? render : escapeKeyOn(escape, state, render)} {...stylex.props(overlay.modalDialog)} />;\n}\n\n/**\n * The sheet's actions. The panel rests on the window's bottom edge in both\n * presentations, so they sit on that edge, and a toast rises clear of them\n * while the sheet is open rather than lying over its buttons. A side sheet's\n * are included: the toast is centred in the window, and on any window\n * narrower than about 1376px its 576 reach into the sheet's 400.\n */\nfunction SheetFooter({\n ref: callerRef,\n ...props\n}: HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>) {\n const ref = useRef<HTMLDivElement>(null);\n useHoldBottomEdge(ref, true);\n // The footer measures itself through its own ref, and the call site's\n // lands on the same element.\n const merged = useMemo(() => mergeRefs(ref, callerRef ?? undefined), [callerRef]);\n return <div {...props} ref={merged} {...mergeStyles({\n className: \"x12smttz x13fuv20 x178xt8z x9f619 x78zum5 x2lah0s x1a02dak x126z3so x1nhvcw1 x1qafhyn x8i8c5o x1clyivc xg0ps1x\"\n }, props)} />;\n}\n\n/**\n * The bottom sheets page's drag handle: a short bar above the sheet's\n * content, saying the panel is a bottom sheet that a swipe moves. Place it\n * first inside `Sheet.Content`; above the medium breakpoint the panel is a\n * side sheet and this draws nothing.\n *\n * On a sheet given `snapPoints` it is a button, as the bottom sheets page\n * asks of a handle that moves the sheet between heights: a press, from a\n * pointer, a keyboard or assistive technology, moves the sheet to its next\n * snap point, from the last back to the first, and `aria-expanded` says\n * whether it rests at the last. It is called \"Drag handle\" in the locale's\n * own words, and a call site's `aria-label` names it instead. Its 48 square\n * is the page's target, centred over the bar.\n *\n * On a sheet without them it is decoration, hidden from assistive\n * technology: the panel has one height, and the swipe the bar points at\n * takes it from anywhere on the panel, so a control here would offer\n * nothing a swipe, the scrim, Escape or a `slot=\"close\"` button does not.\n */\nfunction SheetHandle({\n 'aria-label': label,\n ...props\n}: HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>) {\n const snap = useContext(SnapContext);\n const messages = useMessages();\n const bar = <span className=\"x1ccu2yh xwvh9j7 xqu0tyb x1dkaolv x9f619 x1g12otp x1td3qas\" />;\n if (snap === null) {\n return <div aria-hidden=\"true\" aria-label={label} {...props} {...mergeStyles({\n className: \"x6s0dn4 x9f619 x1s85apg x37i4ze x2lah0s xl56j7k x1xg6qyv\"\n }, props)}>\n {bar}\n </div>;\n }\n return <div {...props} {...mergeStyles({\n className: \"x6s0dn4 x9f619 x1s85apg x37i4ze x2lah0s xl56j7k xt970qd\"\n }, props)}>\n <RACButton aria-expanded={snap === 'expanded'} aria-label={label ?? messages.dragHandle} onPress={moveToNextSnapPoint} className=\"x6s0dn4 xjbqb8w xsdox4t x1dkaolv xng3xce x9f619 x1ypdohk x78zum5 x1useyqa xl56j7k x1ghz6dp xrgy624 x2ssjo2 x9v5kkp x1t137rt x1de99jn x1717udv\">\n {bar}\n </RACButton>\n </div>;\n}\nfunction SheetHeader(props: HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>) {\n return <div {...props} {...mergeStyles({\n className: \"x6s0dn4 x1j6faob x1q0q8m5 xso031l x9f619 x78zum5 x2lah0s x1gka490 x1qughib x1cmllll xg0ps1x\"\n }, props)} />;\n}\n\n/**\n * Names the sheet. Rendered through React Aria's title slot, which is what\n * points the dialog's `aria-labelledby` at it — a sheet without one announces\n * itself as an unnamed dialog.\n */\nfunction SheetTitle(props: RefAttributes<HTMLHeadingElement> & SheetTitleProps) {\n return <Heading slot=\"title\" {...props} {...mergeStyles({\n className: \"x9f619 x1w5n3ug xdy5w5q xete2z3 x14ijtet xug9e1u x2divse x1ghz6dp xeuugli xj0a0fe\"\n }, props)} />;\n}\n\n/**\n * Puts an open panel back where it rests when the window crosses the\n * breakpoint. Its scroller runs along the axis the panel arrives on, so a\n * side sheet turned into a bottom sheet kept the side sheet's scroll, which on\n * the new axis is the closed position: the panel stayed open below the\n * window, and its scrim went on holding the page. A panel resting against the\n * end of its scroller — a bottom sheet, a sheet on the right — goes to the\n * end, and a sheet on the left to the start, without the smooth scroll its\n * arrival takes, since it is not arriving.\n *\n * A layout effect, so the panel is back before the frame is drawn and before\n * React Aria's observer can see it gone; the parent's, so it runs after\n * React Aria has set the scroller up for the new edge.\n */\nfunction useRestOnTurn(overlayRef: RefObject<HTMLDivElement | null>, position: 'bottom' | 'end') {\n const previous = useRef(position);\n useLayoutEffect(() => {\n if (previous.current === position) {\n return;\n }\n previous.current = position;\n const layer = overlayRef.current;\n const scroller = layer?.querySelector('[data-sheet-scroll]');\n if (!(layer instanceof HTMLElement && scroller instanceof HTMLElement)) {\n return;\n }\n const edge = layer.dataset.position;\n if (edge === 'bottom') {\n scroller.scrollTo({\n top: scroller.scrollHeight\n });\n } else {\n scroller.scrollTo({\n left: edge === 'left' ? 0 : scroller.scrollWidth\n });\n }\n }, [overlayRef, position]);\n}\nSheet.Body = SheetBody;\nSheet.Content = SheetContent;\nSheet.Footer = SheetFooter;\nSheet.Handle = SheetHandle;\nSheet.Header = SheetHeader;\nSheet.Title = SheetTitle;\n\n// The dialog's own props, plus the overlay's open state and dismissal\n// settings and the panel's styling. A call site has no reason to know there\n// are four elements: `className` and `style` reach the panel, which is the\n// one worth restyling, the open state and the dismissal settings reach the\n// overlay, and everything else lands on the dialog.\n//\n// The two dismissal settings are declared here rather than picked with their\n// siblings, since React Aria's sheet has neither: one switch holds every way\n// out of it, and these split the keyboard from the pointer as the rest of the\n// library's modals do.\ntype SheetContentProps = Omit<DialogProps, 'className' | 'style'> & Pick<ModalOverlayProps, 'defaultOpen' | 'isOpen' | 'onOpenChange'> & {\n /** A function may compute the class from the panel's render state. */\n className?: ClassNameOrFunction<SheetRenderProps>;\n /**\n * Where to portal the panel and scrim. Defaults to the container of the\n * `ThemeScope` around it, which keeps the sheet on that scope's tokens, or\n * to the end of `<body>` where there is none. A subtree themed through the\n * `themeScope` class has no container of its own, so point this inside it,\n * or the sheet renders outside and keeps the page's tokens.\n */\n container?: Element;\n /**\n * Whether a press on the scrim, outside the panel, or a swipe toward the\n * edge it rests on closes the sheet. `true` here where React Aria's own\n * default for the scrim is `false`, since a sheet that ignores a tap\n * outside it reads as stuck. Escape is `isKeyboardDismissDisabled`'s, and\n * this says nothing about it.\n * @default true\n */\n isDismissable?: boolean;\n /**\n * Whether Escape is kept from closing the sheet. The scrim and the swipe\n * are `isDismissable`'s, and this says nothing about them.\n * @default false\n */\n isKeyboardDismissDisabled?: boolean;\n /**\n * The heights a bottom sheet rests at, each the amount of the panel\n * showing: a number of pixels, or a percentage of the panel's own\n * height. The sheet opens at the first, a swipe moves it between them,\n * and a press on `Sheet.Handle` moves it to the next, from the last\n * back to the first. React Aria's own prop, under its own name.\n *\n * End on `'100%'` for a sheet that can show all of itself: its body\n * scrolls only while the whole panel is showing, and short of that a\n * swipe on the body moves the sheet instead. The side sheet has one\n * width and ignores them.\n */\n snapPoints?: Array<number | string>;\n /** A function may compute the style from the panel's render state. */\n style?: StyleOrFunction<SheetRenderProps>;\n};\ntype SheetProps = Omit<DialogTriggerProps, 'children'> & {\n children?: ReactNode;\n};\ntype SheetTitleProps = HeadingProps;\nexport type { SheetContentProps, SheetProps, SheetTitleProps };\nexport { SheetBody, SheetContent, SheetFooter, SheetHandle, SheetHeader, SheetTitle };\nexport default Sheet;"],"mappings":";;;;;;;;;;;;;;AA4DA,MAAMoD,UAAU;AAIhB,MAAMC,eAAe;AACrB,MAAMC,iBAAiB;AAIvB,MAAMC,0BAA0B,EAC9BC,KAAK,EACP;AAOA,MAAMC,SAAS;CACbC,MAAM;EACJC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;CACT;CACAC,UAAU;EACRJ,QAAQ;EACRG,OAAO;CACT;AACF;AAKA,SAASE,gBAAgB;CACvB,OAAOC,OAAOC,WAAWpB,YAAY,CAAC,CAACqB;AACzC;AACA,SAASC,kBAAkB;CACzB,OAAOH,OAAOC,WAAWnB,cAAc,CAAC,CAACoB;AAC3C;;;;;;;;;;;;;;;;AAiBA,SAASE,oBAAoB,EAC3BC,UACa;CACb,MAAMC,WAAWD,OAAOE,QAAQ,qBAAqB;CACrD,IAAI,EAAED,oBAAoBE,cACxB;CAGF,MAAMC,SAASH,SAASI,sBAAsB,CAAC,CAACC,MAAML,SAASM;CAC/D,MAAMC,QAAQ,CAAC,GAAGP,SAASQ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fxJ,QAAM2K,SAASlB;AACfzJ,QAAM4K,SAASf;AACf7J,QAAM6K,QAAQf"}
1
+ {"version":3,"file":"index.js","names":["_c","stylex","createContext","useContext","useLayoutEffect","useRef","useSyncExternalStore","HeadingContext","OverlayTriggerStateContext","Sheet","SheetContent","useSlottedContext","useHoldBottomEdge","useScrollStop","useMessages","mergeRefs","mergeStatefulStyles","mergeStyles","overlay","scrimIn","BOTTOM_SHEET","REDUCED_MOTION","TO_THE_FIRST_SNAP_POINT","end","styles","body","kB7OPa","k1xSpc","kXwgrk","kzQI83","kOIVth","kAzted","kHjlTd","kORKVm","k8WAf4","kg3NbH","$$css","bodyHeld","isBottomSheet","window","matchMedia","matches","isReducedMotion","moveToNextSnapPoint","target","scroller","closest","HTMLElement","origin","getBoundingClientRect","top","scrollTop","stops","querySelectorAll","map","marker","Number","parseFloat","getComputedStyle","scrollMarginTop","length","distances","stop","Math","abs","at","indexOf","min","scrollTo","behavior","onServer","panelStyles","position","className","subscribeTo","query","listener","list","addEventListener","removeEventListener","subscribeToBottomSheet","subscribeToReducedMotion","SnapContext","escapeKeyOn","escape","state","render","props","renderProps","next","onKeyDown","event","key","nativeEvent","isComposing","Node","currentTarget","contains","stopPropagation","preventDefault","close","undefined","hasSize","element","clientWidth","clientHeight","restAtEdge","layer","edge","dataset","scrollHeight","left","scrollWidth","restOnceLaidOut","querySelector","observer","ResizeObserver","disconnect","restWhereItOpens","observe","first","margin","t0","$","children","t1","SheetBody","ref","callerRef","snap","title","scrollStop","label","id","t2","merged","t3","modalBodyRing","t4","container","defaultOpen","isOpen","onOpenChange","snapPoints","style","isDismissable","isKeyboardDismissDisabled","isBottom","isReduced","heights","overlayRef","Symbol","for","layerRef","useRestOnTurn","t5","t6","t7","backdrop","t8","t9","t10","t11","isExpanded","t12","SheetDialog","modalDialog","SheetFooter","SheetHandle","messages","bar","dragHandle","SheetHeader","SheetTitle","previous","current","Body","Content","Footer","Handle","Header","Title","RACSheet","RACSheetContent","RACButton"],"sources":["../../../src/components/sheet/index.tsx"],"sourcesContent":["'use client';\n\nimport type { HTMLAttributes, KeyboardEvent, ReactNode, RefAttributes, RefObject } from 'react';\nimport type { ClassNameOrFunction, DialogProps, DialogTriggerProps, HeadingProps, ModalOverlayProps, PressEvent, SheetRenderProps, StyleOrFunction } from 'react-aria-components';\nimport type { OverlayTriggerState } from 'react-stately';\nimport * as stylex from '@stylexjs/stylex';\nimport { createContext, useContext, useLayoutEffect, useMemo, useRef, useSyncExternalStore } from 'react';\nimport { Heading, HeadingContext, OverlayTriggerStateContext, Button as RACButton, Sheet as RACSheet, SheetContent as RACSheetContent, SheetBackdrop, SheetOverlay, SheetTrigger, useSlottedContext } from 'react-aria-components';\nimport { useHoldBottomEdge } from '../../hooks/useBottomEdge';\nimport { useScrollStop } from '../../hooks/useScrollStop';\nimport { useMessages } from '../../i18n';\nimport { OverlayScope } from '../../overlay';\nimport { mergeRefs } from '../../render/ref';\nimport '../../styles/layers.stylex';\nimport { layers } from '../../styles/layers.stylex';\nimport { mergeStatefulStyles, mergeStyles } from '../../styles/merge';\nimport { overlay } from '../../styles/overlay';\nimport '../../tokens/design.tokens.stylex';\nimport { colors, media, radii, shadows, spacing, typography } from '../../tokens/design.tokens.stylex';\n\n// Windows High Contrast and the rest of the forced-colours modes. Spelled\n// here rather than imported, for the reason src/field/styles.ts records: the\n// StyleX compiler resolves a constant across files only out of a `.stylex.ts`\n// module, and the generated one holds design tokens rather than queries.\nconst FORCED_COLORS = '@media (forced-colors: active)';\n\n// One component, two presentations. Above the medium breakpoint it is a side\n// sheet pinned to the inline end of the viewport; below it, the same panel\n// becomes a bottom sheet. That is the pairing the Material Design pages draw\n// rather than two components: a sheet that stayed on the right at 375px would\n// be a drawer covering the whole screen.\n//\n// The two differ in five things and no more: which edge they rest on, which\n// two corners are rounded, which axis they arrive and leave along, how much\n// of the viewport they may take, and the drag handle, which is the bottom\n// sheets page's element alone. Everything inside the panel — the 24 of start\n// and end padding, the 12 between the header's elements, the actions area —\n// comes from the side sheets page and is drawn the same in both.\n//\n// **It is React Aria's `Sheet`.** The panel sits on a scroller a viewport\n// longer than the window along the axis it arrives on, and the browser's own\n// scrolling moves it: a swipe toward the edge it rests on scrolls it out of\n// view, which closes it, as the bottom sheets page's swipe down and the side\n// sheets page's slide off the edge do. Which edge is a prop rather than a\n// style, so the breakpoint is read here in JavaScript, as Dialog's full screen\n// is, and the styles below are keyed on the edge React Aria reports rather\n// than on the media query. `end` is the right, or the left in a right-to-left\n// locale: React Aria reads the locale's direction, not the document's, so a\n// right-to-left page sets it through `I18nProvider`, as it does for anything\n// drawn in a popover.\n//\n// **It moves at the browser's pace.** Entry and exit are a smooth scroll, so\n// they take the browser's own duration and easing rather than the\n// side sheets page's medium 1 and emphasized decelerate: a scroll position is\n// what a swipe moves, and timing it in CSS would leave the panel somewhere\n// the scroller is not. Under reduced motion React Aria scrolls without\n// smoothing, so the panel arrives and leaves in place. The scrim follows the\n// scroll through the backdrop's swipe animation, darkening as the panel comes\n// in and lifting as a swipe takes it out, and keeps the shared fade under\n// reduced motion — see `backdrop` in src/styles/overlay.ts.\nconst scrimIn = \"x18re5ia-B\";\n\n// The window sizes the panel is drawn at as a bottom sheet: the medium\n// breakpoint, as `media.belowMedium` spells it for the handle below.\nconst BOTTOM_SHEET = '(width < 600px)';\nconst REDUCED_MOTION = '(prefers-reduced-motion: reduce)';\n\n// The scrim's range along a sheet with snap points: from closed to the first\n// of them, as React Aria counts its swipe animation's range in snap points.\nconst TO_THE_FIRST_SNAP_POINT = {\n end: 0\n};\n\n// React Aria's overlay is a layer holding the scrim and a scroller, the\n// scroller holds the panel, and the panel holds the dialog. The styles are\n// split the same way: the layer and the scrim, `panel` and the edge's own\n// styles on the panel, and the overlay module's modal dialog style on the\n// element that carries the role.\nconst styles = {\n body: {\n kB7OPa: \"x9f619\",\n k1xSpc: \"x78zum5\",\n kXwgrk: \"xdt5ytf\",\n kzQI83: \"x1iyjqo2\",\n kOIVth: \"xxj4525\",\n kAzted: \"x2lwn1j\",\n kHjlTd: \"xj0a0fe\",\n kORKVm: \"x1odjw0f\",\n k8WAf4: \"xp6hjv6\",\n kg3NbH: \"xg0ps1x\",\n $$css: true\n },\n bodyHeld: {\n kORKVm: \"x1s73dr8\",\n $$css: true\n }\n};\n\n// Whether the window is at the size the bottom sheet is drawn at, and whether\n// its reader asked for less motion, each kept current. False on the server,\n// where there is no window and nothing is open.\nfunction isBottomSheet() {\n return window.matchMedia(BOTTOM_SHEET).matches;\n}\nfunction isReducedMotion() {\n return window.matchMedia(REDUCED_MOTION).matches;\n}\n\n/**\n * Moves the sheet whose handle was pressed to its next snap point, or from\n * the last back to the first. React Aria offers no call that moves a sheet,\n * so this scrolls its scroller as React Aria does to open the sheet at the\n * first: React Aria places a marker in the panel for each snap point, and a\n * scroll that rests a marker one viewport below the scroller's top leaves\n * that snap point showing. The markers are `[data-sheet-detent]`, in the\n * order the snap points were given, and they are React Aria's markup rather\n * than its API — a release that renames them leaves the handle pressing\n * nothing, which the handle's tests are there to say.\n *\n * Which snap point the sheet is at is the marker whose resting scroll lies\n * nearest the scroller's own, so a press after a swipe moves on from where\n * the swipe left the sheet.\n */\nfunction moveToNextSnapPoint({\n target\n}: PressEvent) {\n const scroller = target.closest('[data-sheet-scroll]');\n if (!(scroller instanceof HTMLElement)) {\n return;\n }\n // Where the scroller's content starts, in the window's coordinates.\n const origin = scroller.getBoundingClientRect().top - scroller.scrollTop;\n const stops = [...scroller.querySelectorAll('[data-sheet-detent]')].map(marker => marker.getBoundingClientRect().top - origin - Number.parseFloat(getComputedStyle(marker).scrollMarginTop));\n if (stops.length === 0) {\n return;\n }\n const distances = stops.map(stop => Math.abs(stop - scroller.scrollTop));\n const at = distances.indexOf(Math.min(...distances));\n scroller.scrollTo({\n behavior: isReducedMotion() ? 'auto' : 'smooth',\n top: stops[(at + 1) % stops.length]\n });\n}\nfunction onServer() {\n return false;\n}\n\n// The panel's styles for the edge React Aria rests it on. `top` and `center`\n// are positions React Aria offers and this never asks for.\nfunction panelStyles({\n position\n}: SheetRenderProps) {\n return {\n 0: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x5yr21d xrzall9 xjslfuv x1gbqego xjg5lhu x6xk272 x1l2rt3b x1a148e8 x1mrd0q\"\n },\n 4: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x19dwuzr x4z998w x1lym3mf x1u81hx7 x1uop38w xh8yej3 xv4ka1z x1a148e8 x196z7tn xg4jtgg\"\n },\n 2: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x5yr21d xrzall9 xjslfuv x1gbqego xjg5lhu x6xk272 x1l2rt3b x1a148e8 x1mrd0q x196z7tn\"\n },\n 6: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x19dwuzr x4z998w x1lym3mf x1u81hx7 x1uop38w xh8yej3 xv4ka1z x1a148e8 xg4jtgg x196z7tn\"\n },\n 1: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x5yr21d xrzall9 xjslfuv x1gbqego xjg5lhu x6xk272 x1l2rt3b x1a148e8 x1mrd0q xg4jtgg\"\n },\n 5: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x19dwuzr x4z998w x1lym3mf x1u81hx7 x1uop38w xh8yej3 xv4ka1z x1a148e8 x196z7tn xg4jtgg\"\n },\n 3: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x5yr21d xrzall9 xjslfuv x1gbqego xjg5lhu x6xk272 x1l2rt3b x1a148e8 x1mrd0q x196z7tn xg4jtgg\"\n },\n 7: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x19dwuzr x4z998w x1lym3mf x1u81hx7 x1uop38w xh8yej3 xv4ka1z x1a148e8 x196z7tn xg4jtgg\"\n }\n }[!!(position === 'bottom') << 2 | !!(position === 'left') << 1 | !!(position === 'right') << 0];\n}\nfunction subscribeTo(query: string) {\n return (listener: () => void) => {\n const list = window.matchMedia(query);\n list.addEventListener('change', listener);\n return () => {\n list.removeEventListener('change', listener);\n };\n };\n}\nconst subscribeToBottomSheet = subscribeTo(BOTTOM_SHEET);\nconst subscribeToReducedMotion = subscribeTo(REDUCED_MOTION);\n\n// Where a bottom sheet with snap points rests: at its last, `expanded`, or\n// short of it, `collapsed`. Content sets it from React Aria's render state,\n// and the handle and the body read it. Null in a sheet without snap points,\n// whose handle is decoration and whose body always scrolls.\ntype SnapState = 'collapsed' | 'expanded' | null;\nconst SnapContext = createContext<SnapState>(null);\n\n/**\n * The dialog's element, given a key handler for Escape. React Aria's sheet\n * has one switch for every way out, so where this sheet's two settings\n * disagree about Escape the handler answers for it: `close` closes the sheet\n * React Aria is holding open, and `hold` keeps Escape from the overlay that\n * would close it. Either way the key goes no further, as it would not have\n * from React Aria's own handler.\n */\nfunction escapeKeyOn(escape: 'close' | 'hold', state: null | OverlayTriggerState, render: DialogProps['render']): NonNullable<DialogProps['render']> {\n return (props, renderProps) => {\n const next = {\n ...props,\n onKeyDown: (event: KeyboardEvent<HTMLElement>) => {\n props.onKeyDown?.(event);\n if (event.key !== 'Escape' || event.nativeEvent.isComposing ||\n // A key from an overlay opened inside this one reaches here through\n // React's tree, though that overlay is portalled out over this one,\n // and is that overlay's to answer.\n !(event.target instanceof Node && event.currentTarget.contains(event.target))) {\n return;\n }\n event.stopPropagation();\n if (escape === 'close') {\n event.preventDefault();\n state?.close();\n }\n }\n };\n return render === undefined ? <section {...next} /> : render(next, renderProps);\n };\n}\nfunction hasSize(element: HTMLElement) {\n return element.clientWidth > 0 && element.clientHeight > 0;\n}\n\n/**\n * Puts a panel against the edge it rests on, without the smooth scroll an\n * arrival takes: a bottom sheet, or a sheet on the right, at the end of its\n * scroller, and a sheet on the left at the start. React Aria stamps the edge\n * it resolved, by the writing direction, on the layer.\n */\nfunction restAtEdge(layer: HTMLElement, scroller: HTMLElement) {\n const edge = layer.dataset.position;\n if (edge === 'bottom') {\n scroller.scrollTo({\n top: scroller.scrollHeight\n });\n } else {\n scroller.scrollTo({\n left: edge === 'left' ? 0 : scroller.scrollWidth\n });\n }\n}\n\n/**\n * Rests a panel that opened before it could be laid out, once it can be.\n *\n * React Aria brings a panel in by scrolling its scroller to where it rests,\n * and counts the panel as arriving until that scroll ends. A scroller with no\n * size scrolls nowhere and never ends a scroll, which is what a sheet opened\n * inside something hidden has — a `container` in a tab panel or a route not\n * shown yet. Shown later, the panel was laid out where the scroll left it,\n * off the window, with its scrim over the page, and React Aria went on\n * waiting: focus never moved in, and a press on the trigger behind it closed\n * a sheet nobody had seen.\n *\n * So a layer whose scroller has no size as it mounts is watched until the\n * scroller first has one, and the panel is then put where it opens, which\n * ends the scroll React Aria is waiting on. A scroller with a size from the\n * start is left to React Aria, and nothing here runs again: a panel being\n * dragged or arriving always has a size. A ref callback rather than an\n * effect, since the layer mounts with the sheet's opening, which the trigger\n * rather than this part decides.\n */\nfunction restOnceLaidOut(layer: HTMLDivElement | null): (() => void) | undefined {\n const scroller = layer?.querySelector('[data-sheet-scroll]');\n if (!(layer instanceof HTMLElement && scroller instanceof HTMLElement) || hasSize(scroller)) {\n return undefined;\n }\n const observer = new ResizeObserver(() => {\n if (!hasSize(scroller)) {\n return;\n }\n observer.disconnect();\n restWhereItOpens(layer, scroller);\n });\n observer.observe(scroller);\n return () => {\n observer.disconnect();\n };\n}\n\n/**\n * Puts a panel where it opens, as React Aria's arrival does: at its first\n * snap point where it has them, which React Aria marks inside the panel, and\n * otherwise against its edge. Only a bottom sheet takes snap points, and the\n * marker's top edge, less its scroll margin, is what React Aria lines up with\n * the top of the scroller.\n */\nfunction restWhereItOpens(layer: HTMLElement, scroller: HTMLElement) {\n const first = layer.querySelector('[data-sheet-initial]');\n if (!(first instanceof HTMLElement)) {\n restAtEdge(layer, scroller);\n return;\n }\n const margin = Number.parseFloat(getComputedStyle(first).scrollMarginTop) || 0;\n scroller.scrollTo({\n top: first.getBoundingClientRect().top - scroller.getBoundingClientRect().top + scroller.scrollTop - margin\n });\n}\n\n/**\n * A modal panel that arrives from the edge of the screen — a side sheet on a\n * wide viewport, a bottom sheet on a narrow one. Open state is React Aria's:\n * pass `isOpen` with `onOpenChange` to control it, or `defaultOpen` to let it\n * keep its own.\n *\n * Composed rather than configured by props, because a sheet's header, body,\n * and footer all take arbitrary content — the parts are `Sheet.Content`,\n * `Sheet.Header`, `Sheet.Title`, `Sheet.Body`, and `Sheet.Footer`. A\n * `Button` or `IconButton` placed directly inside `Sheet` opens it, and one\n * given `slot=\"close\"` anywhere inside the content closes it; neither needs\n * a part of its own.\n *\n * ```tsx\n * <Sheet>\n * <Button>Open</Button>\n * <Sheet.Content>\n * <Sheet.Handle />\n * <Sheet.Header>\n * <Sheet.Title>Headline</Sheet.Title>\n * </Sheet.Header>\n * <Sheet.Body>Supporting line</Sheet.Body>\n * <Sheet.Footer>\n * <Button slot=\"close\">Close</Button>\n * </Sheet.Footer>\n * </Sheet.Content>\n * </Sheet>\n * ```\n *\n * `Sheet` is the trigger's half, so a sheet nothing on the page opens — one\n * a route shows, or a menu item raises — leaves it out and passes `isOpen`\n * and `onOpenChange` to `Sheet.Content` instead. Wrapped in `Sheet` with no\n * button inside it, React Aria warns that its press responder found nothing\n * to press.\n *\n * ```tsx\n * <Sheet.Content isOpen={isOpen} onOpenChange={setOpen}>\n * …\n * </Sheet.Content>\n * ```\n *\n * Tab stays inside an open sheet, so a `Snackbar` shown meanwhile is reached\n * with F6, which React Aria uses to move between landmarks. Tabbing on past\n * the snackbar's last control leads back into the sheet.\n */\nfunction Sheet({\n children,\n ...props\n}: SheetProps) {\n return <SheetTrigger {...props}>{children}</SheetTrigger>;\n}\nfunction SheetBody({\n ref: callerRef,\n ...props\n}: HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>) {\n const ref = useRef<HTMLDivElement>(null);\n const snap = useContext(SnapContext);\n // A body its content runs past is a tab stop named by the title, so a\n // keyboard can scroll it, when nothing inside it takes focus; a call\n // site's own name, role and tabIndex still win. See useScrollStop.\n const title = useSlottedContext(HeadingContext, 'title');\n const scrollStop = useScrollStop(ref, {\n label: props['aria-label'],\n title: title?.id\n });\n // The body measures itself through its own ref, and the call site's lands\n // on the same element.\n const merged = useMemo(() => mergeRefs(ref, callerRef ?? undefined), [callerRef]);\n return <div {...scrollStop} {...props} ref={merged} {...mergeStyles(stylex.props(styles.body, snap === 'collapsed' && styles.bodyHeld, overlay.modalBodyRing), props)} />;\n}\n\n/**\n * The panel itself, and the scrim behind it. Everything the sheet shows goes\n * in here; the trigger stays outside it, since the trigger lives in the page\n * while this is portalled out to the end of the body.\n *\n * A swipe toward the edge the panel rests on closes it — down on a bottom\n * sheet, toward the screen's edge on a side sheet — as do a press on the\n * scrim, Escape and a `slot=\"close\"` button. `isDismissable` holds the first\n * two, and `isKeyboardDismissDisabled` holds Escape. React Aria's default for\n * the scrim is the reverse of this one: a sheet that ignores a tap outside it\n * reads as stuck.\n *\n * Inside `Sheet`, the open state is the trigger's. On its own, with no\n * trigger, it is this part's: `isOpen` with `onOpenChange` controls it, and\n * a swipe, a `slot=\"close\"` button, Escape and the scrim all report through\n * `onOpenChange`, as they would to `Sheet`.\n *\n * The sheet draws at `z-index: 900`, the scrim and the panel over it, over\n * any page content layered below that, such as a sticky header. A\n * `Snackbar` draws at 1000, so a toast raised from inside the sheet is read\n * over it, and React Aria's popovers and menus draw above both.\n *\n * React Aria lays the sheet over the page from the page's own top-left\n * corner rather than fixing it to the window, so a `container` inside a\n * positioned element holds the sheet to that element instead.\n */\nfunction SheetContent({\n children,\n className,\n container,\n defaultOpen,\n isDismissable = true,\n isKeyboardDismissDisabled = false,\n isOpen,\n onOpenChange,\n ref,\n snapPoints,\n style,\n ...props\n}: RefAttributes<HTMLDivElement> & SheetContentProps) {\n const isBottom = useSyncExternalStore(subscribeToBottomSheet, isBottomSheet, onServer);\n const isReduced = useSyncExternalStore(subscribeToReducedMotion, isReducedMotion, onServer);\n const position = isBottom ? 'bottom' : 'end';\n // The heights are the bottom sheet's alone; a side sheet has one width.\n const heights = isBottom && snapPoints !== undefined && snapPoints.length > 0 ? snapPoints : undefined;\n const overlayRef = useRef<HTMLDivElement>(null);\n const layerRef = mergeRefs(overlayRef, restOnceLaidOut);\n useRestOnTurn(overlayRef, position);\n // React Aria holds Escape whenever it holds the scrim and the swipe, so\n // the two settings disagreeing is where the dialog answers for Escape.\n let escape: 'close' | 'hold' | undefined;\n if (isDismissable === isKeyboardDismissDisabled) {\n escape = isKeyboardDismissDisabled ? 'hold' : 'close';\n }\n return <OverlayScope>\n <SheetOverlay defaultOpen={defaultOpen} isOpen={isOpen} onOpenChange={onOpenChange} position={position} preventDismissal={!isDismissable} ref={layerRef} snapPoints={heights}\n // oxlint-disable-next-line typescript/no-deprecated -- its replacement, UNSAFE_PortalProvider, is not exported by react-aria-components\n UNSTABLE_portalContainer={container} className=\"x9f619 x125h2g0\">\n <SheetBackdrop\n // The shared fade instead under reduced motion, where the panel\n // arrives without moving and the scrim is all that says so.\n swipeAnimation={isReduced ? undefined : scrimIn}\n // Whole once the panel reaches its first snap point rather than\n // only once all of it shows, so a collapsed sheet holds the page\n // behind the same scrim an expanded one does, and a swipe below\n // that point is what lifts it.\n swipeAnimationRange={heights === undefined ? undefined : TO_THE_FIRST_SNAP_POINT} {...stylex.props(overlay.backdrop)} />\n <RACSheet\n // The panel, where the call site's class and style land, rather than\n // the dialog inside it, which takes the rest of the props.\n ref={ref} {...mergeStatefulStyles(panelStyles, {\n className,\n style\n })}>\n {({\n isExpanded\n }) => {\n let snap: SnapState = null;\n if (heights !== undefined) {\n snap = isExpanded ? 'expanded' : 'collapsed';\n }\n return <SnapContext value={snap}>\n <SheetDialog escape={escape} {...props}>\n {children}\n </SheetDialog>\n </SnapContext>;\n }}\n </RACSheet>\n </SheetOverlay>\n </OverlayScope>;\n}\n\n// The element with the dialog role, inside the overlay so it can reach the\n// open state React Aria holds there.\nfunction SheetDialog({\n escape,\n render,\n ...props\n}: DialogProps & {\n escape: 'close' | 'hold' | undefined;\n}) {\n const state = useContext(OverlayTriggerStateContext);\n return <RACSheetContent {...props} render={escape === undefined ? render : escapeKeyOn(escape, state, render)} {...stylex.props(overlay.modalDialog)} />;\n}\n\n/**\n * The sheet's actions. The panel rests on the window's bottom edge in both\n * presentations, so they sit on that edge, and a toast rises clear of them\n * while the sheet is open rather than lying over its buttons. A side sheet's\n * are included: the toast is centred in the window, and on any window\n * narrower than about 1376px its 576 reach into the sheet's 400.\n */\nfunction SheetFooter({\n ref: callerRef,\n ...props\n}: HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>) {\n const ref = useRef<HTMLDivElement>(null);\n useHoldBottomEdge(ref, true);\n // The footer measures itself through its own ref, and the call site's\n // lands on the same element.\n const merged = useMemo(() => mergeRefs(ref, callerRef ?? undefined), [callerRef]);\n return <div {...props} ref={merged} {...mergeStyles({\n className: \"x12smttz x13fuv20 x178xt8z x9f619 x78zum5 x2lah0s x1a02dak x126z3so x1nhvcw1 x1qafhyn x8i8c5o x1clyivc xg0ps1x\"\n }, props)} />;\n}\n\n/**\n * The bottom sheets page's drag handle: a short bar above the sheet's\n * content, saying the panel is a bottom sheet that a swipe moves. Place it\n * first inside `Sheet.Content`; above the medium breakpoint the panel is a\n * side sheet and this draws nothing.\n *\n * On a sheet given `snapPoints` it is a button, as the bottom sheets page\n * asks of a handle that moves the sheet between heights: a press, from a\n * pointer, a keyboard or assistive technology, moves the sheet to its next\n * snap point, from the last back to the first, and `aria-expanded` says\n * whether it rests at the last. It is called \"Drag handle\" in the locale's\n * own words, and a call site's `aria-label` names it instead. Its 48 square\n * is the page's target, centred over the bar.\n *\n * On a sheet without them it is decoration, hidden from assistive\n * technology: the panel has one height, and the swipe the bar points at\n * takes it from anywhere on the panel, so a control here would offer\n * nothing a swipe, the scrim, Escape or a `slot=\"close\"` button does not.\n */\nfunction SheetHandle({\n 'aria-label': label,\n ...props\n}: HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>) {\n const snap = useContext(SnapContext);\n const messages = useMessages();\n const bar = <span className=\"x1ccu2yh xwvh9j7 xqu0tyb x1dkaolv x9f619 x1g12otp x1td3qas\" />;\n if (snap === null) {\n return <div aria-hidden=\"true\" aria-label={label} {...props} {...mergeStyles({\n className: \"x6s0dn4 x9f619 x1s85apg x37i4ze x2lah0s xl56j7k x1xg6qyv\"\n }, props)}>\n {bar}\n </div>;\n }\n return <div {...props} {...mergeStyles({\n className: \"x6s0dn4 x9f619 x1s85apg x37i4ze x2lah0s xl56j7k xt970qd\"\n }, props)}>\n <RACButton aria-expanded={snap === 'expanded'} aria-label={label ?? messages.dragHandle} onPress={moveToNextSnapPoint} className=\"x6s0dn4 xjbqb8w xsdox4t x1dkaolv xng3xce x9f619 x1ypdohk x78zum5 x1useyqa xl56j7k x1ghz6dp xrgy624 x2ssjo2 x9v5kkp x1t137rt x1de99jn x1717udv\">\n {bar}\n </RACButton>\n </div>;\n}\nfunction SheetHeader(props: HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>) {\n return <div {...props} {...mergeStyles({\n className: \"x6s0dn4 x1j6faob x1q0q8m5 xso031l x9f619 x78zum5 x2lah0s x1gka490 x1qughib x1cmllll xg0ps1x\"\n }, props)} />;\n}\n\n/**\n * Names the sheet. Rendered through React Aria's title slot, which is what\n * points the dialog's `aria-labelledby` at it — a sheet without one announces\n * itself as an unnamed dialog.\n */\nfunction SheetTitle(props: RefAttributes<HTMLHeadingElement> & SheetTitleProps) {\n return <Heading slot=\"title\" {...props} {...mergeStyles({\n className: \"x9f619 x1w5n3ug xdy5w5q xete2z3 x14ijtet xug9e1u x2divse x1ghz6dp xeuugli xj0a0fe\"\n }, props)} />;\n}\n\n/**\n * Puts an open panel back where it rests when the window crosses the\n * breakpoint. Its scroller runs along the axis the panel arrives on, so a\n * side sheet turned into a bottom sheet kept the side sheet's scroll, which on\n * the new axis is the closed position: the panel stayed open below the\n * window, and its scrim went on holding the page. A panel resting against the\n * end of its scroller — a bottom sheet, a sheet on the right — goes to the\n * end, and a sheet on the left to the start, without the smooth scroll its\n * arrival takes, since it is not arriving.\n *\n * A layout effect, so the panel is back before the frame is drawn and before\n * React Aria's observer can see it gone; the parent's, so it runs after\n * React Aria has set the scroller up for the new edge.\n */\nfunction useRestOnTurn(overlayRef: RefObject<HTMLDivElement | null>, position: 'bottom' | 'end') {\n const previous = useRef(position);\n useLayoutEffect(() => {\n if (previous.current === position) {\n return;\n }\n previous.current = position;\n const layer = overlayRef.current;\n const scroller = layer?.querySelector('[data-sheet-scroll]');\n if (!(layer instanceof HTMLElement && scroller instanceof HTMLElement)) {\n return;\n }\n restAtEdge(layer, scroller);\n }, [overlayRef, position]);\n}\nSheet.Body = SheetBody;\nSheet.Content = SheetContent;\nSheet.Footer = SheetFooter;\nSheet.Handle = SheetHandle;\nSheet.Header = SheetHeader;\nSheet.Title = SheetTitle;\n\n// The dialog's own props, plus the overlay's open state and dismissal\n// settings and the panel's styling. A call site has no reason to know there\n// are four elements: `className` and `style` reach the panel, which is the\n// one worth restyling, the open state and the dismissal settings reach the\n// overlay, and everything else lands on the dialog.\n//\n// The two dismissal settings are declared here rather than picked with their\n// siblings, since React Aria's sheet has neither: one switch holds every way\n// out of it, and these split the keyboard from the pointer as the rest of the\n// library's modals do.\ntype SheetContentProps = Omit<DialogProps, 'className' | 'style'> & Pick<ModalOverlayProps, 'defaultOpen' | 'isOpen' | 'onOpenChange'> & {\n /** A function may compute the class from the panel's render state. */\n className?: ClassNameOrFunction<SheetRenderProps>;\n /**\n * Where to portal the panel and scrim. Defaults to the container of the\n * `ThemeScope` around it, which keeps the sheet on that scope's tokens, or\n * to the end of `<body>` where there is none. A subtree themed through the\n * `themeScope` class has no container of its own, so point this inside it,\n * or the sheet renders outside and keeps the page's tokens.\n */\n container?: Element;\n /**\n * Whether a press on the scrim, outside the panel, or a swipe toward the\n * edge it rests on closes the sheet. `true` here where React Aria's own\n * default for the scrim is `false`, since a sheet that ignores a tap\n * outside it reads as stuck. Escape is `isKeyboardDismissDisabled`'s, and\n * this says nothing about it.\n * @default true\n */\n isDismissable?: boolean;\n /**\n * Whether Escape is kept from closing the sheet. The scrim and the swipe\n * are `isDismissable`'s, and this says nothing about them.\n * @default false\n */\n isKeyboardDismissDisabled?: boolean;\n /**\n * The heights a bottom sheet rests at, each the amount of the panel\n * showing: a number of pixels, or a percentage of the panel's own\n * height. The sheet opens at the first, a swipe moves it between them,\n * and a press on `Sheet.Handle` moves it to the next, from the last\n * back to the first. React Aria's own prop, under its own name.\n *\n * End on `'100%'` for a sheet that can show all of itself: its body\n * scrolls only while the whole panel is showing, and short of that a\n * swipe on the body moves the sheet instead. The side sheet has one\n * width and ignores them.\n */\n snapPoints?: Array<number | string>;\n /** A function may compute the style from the panel's render state. */\n style?: StyleOrFunction<SheetRenderProps>;\n};\ntype SheetProps = Omit<DialogTriggerProps, 'children'> & {\n children?: ReactNode;\n};\ntype SheetTitleProps = HeadingProps;\nexport type { SheetContentProps, SheetProps, SheetTitleProps };\nexport { SheetBody, SheetContent, SheetFooter, SheetHandle, SheetHeader, SheetTitle };\nexport default Sheet;"],"mappings":";;;;;;;;;;;;;;AA4DA,MAAMmB,UAAU;AAIhB,MAAMC,eAAe;AACrB,MAAMC,iBAAiB;AAIvB,MAAMC,0BAA0B,EAC9BC,KAAK,EACP;AAOA,MAAMC,SAAS;CACbC,MAAM;EACJC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;CACT;CACAC,UAAU;EACRJ,QAAQ;EACRG,OAAO;CACT;AACF;AAKA,SAASE,gBAAgB;CACvB,OAAOC,OAAOC,WAAW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AA,KAAAD;EAAAC,EAAA,KAAAE;CAAA,OAAA;EAAAH,KAAAC,EAAA;EAAAE,KAAAF,EAAA;CAAA;CAXzBvH,gBAAgBsH,IAWbG,EAAsB;AAAC;AAE5BpH,QAAMuK,OAAOlD;AACbrH,QAAMwK,UAAUvK;AAChBD,QAAMyK,SAASX;AACf9J,QAAM0K,SAASX;AACf/J,QAAM2K,SAASR;AACfnK,QAAM4K,QAAQR"}
@@ -52,5 +52,4 @@ type SliderProps$1 = Omit<SliderProps, 'children' | 'orientation'> & {
52
52
  * slider its height.
53
53
  */
54
54
  declare function Slider$1({ icon, label, orientation, showStops, size, thumbLabels, ...props }: RefAttributes<HTMLDivElement> & SliderProps$1): import("react").JSX.Element;
55
- export { type SliderProps$1 as SliderProps, type SliderSize, Slider$1 as default };
56
- //# sourceMappingURL=index.d.ts.map
55
+ export { type SliderProps$1 as SliderProps, type SliderSize, Slider$1 as default };