@slotted/react 0.1.0-beta.2 → 0.1.0-beta.3

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 (252) hide show
  1. package/dist/{action-bar-C7cGnEyJ.js → action-bar-OACchRZw.js} +1 -1
  2. package/dist/action-bar.js +1 -1
  3. package/dist/{action-sheet-DgwzC3iY.js → action-sheet-C60BWUW8.js} +1 -1
  4. package/dist/action-sheet.js +1 -1
  5. package/dist/{app-shell-CXwma4XA.js → app-shell-CmYvnu_7.js} +310 -310
  6. package/dist/app-shell.js +1 -1
  7. package/dist/button-Db9f3Bxn.js +99 -0
  8. package/dist/button.js +2 -2
  9. package/dist/cascader-D1AhTyBL.js +1097 -0
  10. package/dist/cascader.js +1 -1
  11. package/dist/{chart-Gb_P3Kdq.js → chart-O0ZhkzJe.js} +381 -374
  12. package/dist/chart.js +1 -1
  13. package/dist/{checkbox-CwUOc-3u.js → checkbox-DfxFHZaU.js} +3 -3
  14. package/dist/{checkbox-group-BYTjgAcX.js → checkbox-group-9sDgrV5Z.js} +2 -2
  15. package/dist/checkbox-group.js +1 -1
  16. package/dist/checkbox.js +1 -1
  17. package/dist/{color-picker-BlPR4g4H.js → color-picker-CwbWzCKg.js} +4 -4
  18. package/dist/color-picker.js +1 -1
  19. package/dist/{column-manager-B7_a_jDK.js → column-manager-CTtizVhm.js} +6 -6
  20. package/dist/column-manager.js +1 -1
  21. package/dist/{combobox-C66dNlMR.js → combobox-BVMI9lg8.js} +266 -266
  22. package/dist/combobox.js +1 -1
  23. package/dist/{command-palette-BqRyNR9Y.js → command-palette-DFLbSOiv.js} +1 -1
  24. package/dist/command-palette.js +1 -1
  25. package/dist/{context-menu-DMiHdggw.js → context-menu-BuST6W94.js} +1 -1
  26. package/dist/context-menu.js +1 -1
  27. package/dist/currency-field-DD9A5U3D.js +455 -0
  28. package/dist/currency-field.js +1 -1
  29. package/dist/{dashboard-grid-CKdyO4j6.js → dashboard-grid-CBMP_-JV.js} +2 -2
  30. package/dist/dashboard-grid.js +1 -1
  31. package/dist/{data-grid-rWMDNl-6.js → data-grid-BKaGMqIm.js} +19 -19
  32. package/dist/data-grid.js +1 -1
  33. package/dist/{data-list-2xfDpHVC.js → data-list-oICmxGkA.js} +5 -5
  34. package/dist/data-list.js +1 -1
  35. package/dist/{date-field-D_kLLTfL.js → date-field-CYcN6diW.js} +1 -1
  36. package/dist/date-field.js +1 -1
  37. package/dist/date-picker-4X-_2ltN.js +264 -0
  38. package/dist/date-picker.js +1 -1
  39. package/dist/date-range-picker-CNOAtHwU.js +471 -0
  40. package/dist/date-range-picker.js +1 -1
  41. package/dist/{datetime-field-T1gNdJ7t.js → datetime-field-B8TrmsDK.js} +1 -1
  42. package/dist/datetime-field.js +1 -1
  43. package/dist/datetime-picker-HDVlUhzy.js +629 -0
  44. package/dist/datetime-picker.js +1 -1
  45. package/dist/datetime-range-picker-IqOFJtdW.js +994 -0
  46. package/dist/datetime-range-picker.js +1 -1
  47. package/dist/{dialog-Dmy-m_pe.js → dialog-BHYDDj1S.js} +112 -113
  48. package/dist/dialog.js +1 -1
  49. package/dist/docs/app-shell.json +1 -1
  50. package/dist/docs/button-group.json +1 -0
  51. package/dist/docs/button-group.md +1 -1
  52. package/dist/docs/button.json +45 -11
  53. package/dist/docs/button.md +10 -6
  54. package/dist/docs/chart.json +7 -0
  55. package/dist/docs/chart.md +1 -0
  56. package/dist/docs/currency-field.json +32 -1
  57. package/dist/docs/currency-field.md +4 -1
  58. package/dist/docs/dialog.examples.md +26 -0
  59. package/dist/docs/dialog.json +14 -2
  60. package/dist/docs/dialog.md +1 -1
  61. package/dist/docs/list.json +26 -1
  62. package/dist/docs/list.md +4 -1
  63. package/dist/docs/popover.json +1 -1
  64. package/dist/docs/segmented-control.json +29 -1
  65. package/dist/docs/segmented-control.md +17 -1
  66. package/dist/docs/side-navigation.json +2 -2
  67. package/dist/docs/side-navigation.md +19 -4
  68. package/dist/docs/skills/theme-app/SKILL.md +5 -0
  69. package/dist/docs/split-button.json +1 -0
  70. package/dist/docs/split-button.md +1 -1
  71. package/dist/docs/stat-card.json +1 -0
  72. package/dist/docs/stat-card.md +1 -1
  73. package/dist/docs/table.examples.md +1 -1
  74. package/dist/docs/table.json +78 -2
  75. package/dist/docs/table.md +12 -1
  76. package/dist/docs/tabs.examples.md +1 -1
  77. package/dist/docs/tabs.json +1 -1
  78. package/dist/docs/toggle-group.json +14 -3
  79. package/dist/docs/toggle-group.md +3 -3
  80. package/dist/docs/toggle.json +12 -3
  81. package/dist/docs/toggle.md +3 -3
  82. package/dist/docs/tokens.md +25 -1
  83. package/dist/docs/top-navigation.examples.md +23 -5
  84. package/dist/docs/top-navigation.json +2 -2
  85. package/dist/docs/tour.json +1 -1
  86. package/dist/drawer-LXM44eso.js +757 -0
  87. package/dist/drawer.js +1 -1
  88. package/dist/entity-picker-CPDd73JR.js +1110 -0
  89. package/dist/entity-picker.js +1 -1
  90. package/dist/{event-calendar-DYjVwTI6.js → event-calendar-CnF3iIZD.js} +5 -5
  91. package/dist/event-calendar.js +1 -1
  92. package/dist/{field-BJh5HI7w.js → field-NJaCxl2h.js} +1 -1
  93. package/dist/{field-group-BDaspQPh.js → field-group-hAzVa2O9.js} +1 -1
  94. package/dist/field-group.js +1 -1
  95. package/dist/field.js +1 -1
  96. package/dist/{filter-bar-Bh7cbqDE.js → filter-bar-D_xDcAp2.js} +20 -20
  97. package/dist/filter-bar.js +1 -1
  98. package/dist/{hover-card-CSDbA6zd.js → hover-card-BJE5dtaQ.js} +1 -1
  99. package/dist/hover-card.js +1 -1
  100. package/dist/{icon-button-TnvMhK4o.js → icon-button-CCWkCDMs.js} +26 -24
  101. package/dist/import-export-center-DpY2DGBZ.js +813 -0
  102. package/dist/import-export-center.js +1 -1
  103. package/dist/index.js +85 -84
  104. package/dist/{list-C1Y8MWp2.js → list-WsQ6ZzCa.js} +16 -12
  105. package/dist/{list-item-DN_mcouU.js → list-item-DpCwZIrd.js} +1 -1
  106. package/dist/list-item.js +1 -1
  107. package/dist/list.js +1 -1
  108. package/dist/{listbox-4WvqR0JF.js → listbox-Dv856z9I.js} +1 -1
  109. package/dist/listbox.js +1 -1
  110. package/dist/{loading-overlay-B83XFctM.js → loading-overlay-COfnckse.js} +73 -73
  111. package/dist/loading-overlay.js +1 -1
  112. package/dist/{markdown-CpfDn1LF.js → markdown-CeG8mUbI.js} +2 -2
  113. package/dist/markdown.js +1 -1
  114. package/dist/menu-parts-W58pVNUt.js +786 -0
  115. package/dist/menu.js +1 -1
  116. package/dist/{menubar-CtGavUTO.js → menubar-b2CruimJ.js} +1 -1
  117. package/dist/menubar.js +1 -1
  118. package/dist/{multi-select-B-tuIwAu.js → multi-select-DQ5ds0fX.js} +390 -390
  119. package/dist/multi-select.js +1 -1
  120. package/dist/{notification-center-C4pEHJ3h.js → notification-center-Sz54IziY.js} +2 -2
  121. package/dist/notification-center.js +1 -1
  122. package/dist/{number-field-J_koud1r.js → number-field-BFIAmv-z.js} +1 -1
  123. package/dist/number-field.js +1 -1
  124. package/dist/{otp-input-Bf8JUiVR.js → otp-input-BNQhuKaT.js} +1 -1
  125. package/dist/otp-input.js +1 -1
  126. package/dist/popover-Be7JWbGJ.js +475 -0
  127. package/dist/popover.js +1 -1
  128. package/dist/press-selection-DjOllE2B.js +29 -0
  129. package/dist/press-selection.js +2 -0
  130. package/dist/{prompt-composer-B7MMcER0.js → prompt-composer-BxpdkTpZ.js} +1 -1
  131. package/dist/prompt-composer.js +1 -1
  132. package/dist/{radio-group-BFpjhDkV.js → radio-group-BaVIP9UH.js} +2 -2
  133. package/dist/radio-group.js +1 -1
  134. package/dist/{rating-D1EsADFM.js → rating-DYBQBzwB.js} +1 -1
  135. package/dist/rating.js +1 -1
  136. package/dist/{saved-views-BueW-Lyb.js → saved-views-DlE_--Z9.js} +5 -5
  137. package/dist/saved-views.js +1 -1
  138. package/dist/{segmented-control-Cy_5D3Nj.js → segmented-control-DmuOGiu6.js} +28 -24
  139. package/dist/segmented-control.js +1 -1
  140. package/dist/{select-hRFp8nCj.js → select-DOFqPy26.js} +273 -273
  141. package/dist/select.js +1 -1
  142. package/dist/{side-navigation-YUiJRpng.js → side-navigation-CBLtCzuJ.js} +186 -187
  143. package/dist/side-navigation.js +1 -1
  144. package/dist/{slider-B432T6nD.js → slider-DTes4HLF.js} +1 -1
  145. package/dist/slider.js +1 -1
  146. package/dist/{split-button-DHF3v3PJ.js → split-button-CPgHiy9G.js} +2 -2
  147. package/dist/split-button.js +1 -1
  148. package/dist/styles.css +1 -1
  149. package/dist/{switch-4MHwKmkz.js → switch-DQzuIhPX.js} +1 -1
  150. package/dist/switch.js +1 -1
  151. package/dist/{table-Bd79IwDC.js → table-Cipi2c5X.js} +206 -173
  152. package/dist/table.js +2 -2
  153. package/dist/{tags-input-DLdHLWrH.js → tags-input-CcOkm0AW.js} +1 -1
  154. package/dist/tags-input.js +1 -1
  155. package/dist/{text-field-BktZbmzD.js → text-field-DLfIZ0fk.js} +1 -1
  156. package/dist/text-field.js +1 -1
  157. package/dist/{textarea-JAK2RJl0.js → textarea-CBJBJBi6.js} +1 -1
  158. package/dist/textarea.js +1 -1
  159. package/dist/{time-field-DCG_VtGO.js → time-field-DrhiCtUl.js} +1 -1
  160. package/dist/time-field.js +1 -1
  161. package/dist/{time-picker-DuT1tf5-.js → time-picker-CRQsMJbQ.js} +102 -102
  162. package/dist/time-picker.js +1 -1
  163. package/dist/{time-range-picker-HwBvrrXN.js → time-range-picker-DlZJsj1e.js} +202 -202
  164. package/dist/time-range-picker.js +1 -1
  165. package/dist/{toast-wI8BtPY5.js → toast-Bf3e0AgC.js} +157 -157
  166. package/dist/toast.js +1 -1
  167. package/dist/toggle-group-7iBR9Rn1.js +142 -0
  168. package/dist/toggle-group.js +1 -1
  169. package/dist/{toolbar-CDQTydDx.js → toolbar-DDZpEftQ.js} +1 -1
  170. package/dist/toolbar.js +1 -1
  171. package/dist/{tooltip-BggqPDcW.js → tooltip-DbKTPe_i.js} +108 -109
  172. package/dist/tooltip.js +1 -1
  173. package/dist/{top-navigation-COQZsNqW.js → top-navigation-e-tWMGNr.js} +255 -256
  174. package/dist/top-navigation.js +1 -1
  175. package/dist/{tour-C11DmYTC.js → tour-BTdt716T.js} +180 -180
  176. package/dist/tour.js +1 -1
  177. package/dist/{transfer-JA9TWjAw.js → transfer-CqZOTLMP.js} +6 -6
  178. package/dist/transfer.js +1 -1
  179. package/dist/types/app-shell/app-shell.d.ts.map +1 -1
  180. package/dist/types/button/button-link.d.ts +1 -1
  181. package/dist/types/button/button-link.d.ts.map +1 -1
  182. package/dist/types/button/button-root.d.ts +5 -3
  183. package/dist/types/button/button-root.d.ts.map +1 -1
  184. package/dist/types/button/button.constants.d.ts +2 -1
  185. package/dist/types/button/button.constants.d.ts.map +1 -1
  186. package/dist/types/button/button.d.ts +1 -1
  187. package/dist/types/button/button.d.ts.map +1 -1
  188. package/dist/types/button/button.types.d.ts +9 -2
  189. package/dist/types/button/button.types.d.ts.map +1 -1
  190. package/dist/types/button/index.d.ts +1 -1
  191. package/dist/types/button/index.d.ts.map +1 -1
  192. package/dist/types/button/toggle-button.d.ts +1 -1
  193. package/dist/types/button/toggle-button.d.ts.map +1 -1
  194. package/dist/types/chart/chart.d.ts.map +1 -1
  195. package/dist/types/currency-field/currency-field.d.ts +1 -1
  196. package/dist/types/currency-field/currency-field.d.ts.map +1 -1
  197. package/dist/types/currency-field/currency-field.types.d.ts +14 -0
  198. package/dist/types/currency-field/currency-field.types.d.ts.map +1 -1
  199. package/dist/types/currency-field/index.d.ts +1 -1
  200. package/dist/types/currency-field/index.d.ts.map +1 -1
  201. package/dist/types/dialog/dialog-demo.d.ts +8 -0
  202. package/dist/types/dialog/dialog-demo.d.ts.map +1 -1
  203. package/dist/types/filter-bar/filter-bar.d.ts.map +1 -1
  204. package/dist/types/index.d.ts +1 -0
  205. package/dist/types/index.d.ts.map +1 -1
  206. package/dist/types/list/index.d.ts +1 -1
  207. package/dist/types/list/index.d.ts.map +1 -1
  208. package/dist/types/list/list-parts.d.ts +1 -1
  209. package/dist/types/list/list-parts.d.ts.map +1 -1
  210. package/dist/types/list/list.types.d.ts +12 -0
  211. package/dist/types/list/list.types.d.ts.map +1 -1
  212. package/dist/types/press-selection/index.d.ts +3 -0
  213. package/dist/types/press-selection/index.d.ts.map +1 -0
  214. package/dist/types/press-selection/press-selection.d.ts +23 -0
  215. package/dist/types/press-selection/press-selection.d.ts.map +1 -0
  216. package/dist/types/segmented-control/index.d.ts +1 -1
  217. package/dist/types/segmented-control/index.d.ts.map +1 -1
  218. package/dist/types/segmented-control/segmented-control-defaults.d.ts.map +1 -1
  219. package/dist/types/segmented-control/segmented-control.d.ts +1 -1
  220. package/dist/types/segmented-control/segmented-control.d.ts.map +1 -1
  221. package/dist/types/segmented-control/segmented-control.types.d.ts +10 -0
  222. package/dist/types/segmented-control/segmented-control.types.d.ts.map +1 -1
  223. package/dist/types/table/index.d.ts +2 -2
  224. package/dist/types/table/index.d.ts.map +1 -1
  225. package/dist/types/table/table-parts.d.ts +8 -2
  226. package/dist/types/table/table-parts.d.ts.map +1 -1
  227. package/dist/types/table/table.types.d.ts +28 -1
  228. package/dist/types/table/table.types.d.ts.map +1 -1
  229. package/dist/types/toggle/toggle.types.d.ts +1 -1
  230. package/dist/types/toggle/toggle.types.d.ts.map +1 -1
  231. package/dist/types/toggle-group/toggle-group.d.ts.map +1 -1
  232. package/dist/types/toggle-group/toggle-group.types.d.ts +6 -1
  233. package/dist/types/toggle-group/toggle-group.types.d.ts.map +1 -1
  234. package/dist/{upload-Bq_UiyMr.js → upload-DjnlVR8y.js} +2 -2
  235. package/dist/upload.js +1 -1
  236. package/dist/{wizard-B4GrlEqh.js → wizard-BxA08vXt.js} +1 -1
  237. package/dist/wizard.js +1 -1
  238. package/package.json +12 -7
  239. package/dist/button-DakQ-7Tm.js +0 -97
  240. package/dist/cascader-CARCYdHh.js +0 -1097
  241. package/dist/currency-field-B7OZ0hk7.js +0 -436
  242. package/dist/date-picker-DQ5SIhdA.js +0 -264
  243. package/dist/date-range-picker-lpB08hK_.js +0 -471
  244. package/dist/datetime-picker-0F0kDW-8.js +0 -629
  245. package/dist/datetime-range-picker-ClnEleth.js +0 -994
  246. package/dist/drawer-Dtospdqk.js +0 -758
  247. package/dist/entity-picker-Dm-y0RNE.js +0 -1111
  248. package/dist/import-export-center-CkZ_Ar9w.js +0 -813
  249. package/dist/menu-parts-BQej6eU9.js +0 -787
  250. package/dist/popover-DE22lSpV.js +0 -476
  251. package/dist/react-dom-DzrKNxo6.js +0 -273
  252. package/dist/toggle-group-DQBlI1TV.js +0 -140
@@ -0,0 +1,757 @@
1
+ import { n as e, t } from "./icon-T9Yt4tnm.js";
2
+ import { r as n } from "./i18n-DpW8lqJ1.js";
3
+ import { createFocusScope as r } from "@slotted/core/focus";
4
+ import { createControllable as i } from "@slotted/core/state";
5
+ import { createContext as a, useCallback as o, useContext as s, useEffect as c, useId as l, useImperativeHandle as u, useLayoutEffect as d, useMemo as f, useRef as p, useState as m, useSyncExternalStore as h } from "react";
6
+ import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
7
+ import { createPresence as ee } from "@slotted/core/presence";
8
+ import { createPortalRoot as y } from "@slotted/core/portal";
9
+ import { createDismissableLayer as b } from "@slotted/core/dismissable-layer";
10
+ import { createPortal as x } from "react-dom";
11
+ import { drawerMessages as S } from "@slotted/core/i18n";
12
+ import { EXTENT_LARGE_STEP_PX as C, EXTENT_STEP_PX as w, SHEET_FLING_PX_PER_S as te, anchorsAtStart as ne, attachSheetDrag as T, dampenExtent as E, extentAtPoint as D, extentBounds as re, extentVelocity as O, holdResizeGesture as ie, isInlineSide as ae, measureSheetStops as k, sameStop as oe, settleExtent as se, stepAmountFromPixels as A, stepExtent as j, stopAsExtent as M } from "@slotted/core/extent";
13
+ import { clamp as N, observeKeyboardInset as P } from "@slotted/core/measure";
14
+ //#region src/drawer/drawer-defaults.tsx
15
+ var F = a({
16
+ back: "close",
17
+ escape: "close",
18
+ modal: !0,
19
+ mode: "overlay",
20
+ mount: "active",
21
+ outsidePress: "close",
22
+ side: "end",
23
+ size: void 0,
24
+ drag: "panel"
25
+ });
26
+ function I() {
27
+ return s(F);
28
+ }
29
+ function L({ children: e, ...t }) {
30
+ let n = I();
31
+ return /* @__PURE__ */ _(F.Provider, {
32
+ value: {
33
+ back: t.back ?? n.back,
34
+ escape: t.escape ?? n.escape,
35
+ modal: t.modal ?? n.modal,
36
+ mode: t.mode ?? n.mode,
37
+ mount: t.mount ?? n.mount,
38
+ outsidePress: t.outsidePress ?? n.outsidePress,
39
+ side: t.side ?? n.side,
40
+ size: t.size ?? n.size,
41
+ drag: t.drag ?? n.drag
42
+ },
43
+ children: e
44
+ });
45
+ }
46
+ //#endregion
47
+ //#region src/drawer/drawer.tsx
48
+ var R = a(void 0);
49
+ function z() {
50
+ let e = s(R);
51
+ if (e === void 0) throw Error("Every drawer part must be rendered inside Drawer.");
52
+ return e;
53
+ }
54
+ var ce = [];
55
+ function le({ children: e, back: t, container: r, defaultExtent: a, defaultOpen: s, drag: d, escape: h, extent: g, finalFocus: v, initialFocus: y, loading: b, maxExtent: x, messages: C, minExtent: w, modal: te, mode: ne, mount: T, onExtentChange: E, onOpenChange: D, open: O, outsidePress: ie, ref: ae, scrimFrom: k, side: oe, size: se, snapPoints: A }) {
56
+ let j = I(), M = n(S, C), P = l(), [F, L] = m(s ?? !1), z = O ?? F, [le, B] = m(a), V = g ?? le, [ue, H] = m(!1), [U, de] = m(null), [fe, pe] = m(void 0), W = ne ?? j.mode, me = W === "inline" ? !1 : te ?? j.modal, G = T ?? j.mount, K = oe ?? j.side, q = se ?? j.size ?? (K === "top" || K === "bottom" ? "content" : "md"), he = W === "inline" ? "none" : h ?? j.escape, ge = W === "inline" ? "none" : t ?? j.back, _e = W === "inline" ? "none" : ie ?? j.outsidePress, J = A ?? ce, Y = f(() => {
57
+ let e = re(J, w ?? .2, x ?? 1);
58
+ return q === "content" ? {
59
+ ...e,
60
+ max: Math.max(e.max, x ?? 1)
61
+ } : e;
62
+ }, [
63
+ x,
64
+ w,
65
+ q,
66
+ J
67
+ ]), [X, ve] = m(z ? "open" : "unmounted"), Z = p(null);
68
+ Z.current === null && (Z.current = ee({
69
+ present: z,
70
+ onStatusChange: ve
71
+ })), c(() => {
72
+ Z.current?.sync(z);
73
+ }, [z]), c(() => {
74
+ z && de(null);
75
+ }, [z]), c(() => {
76
+ let e = Z.current;
77
+ return () => e?.destroy();
78
+ }, []);
79
+ let ye = p(z);
80
+ z && (ye.current = !0);
81
+ let be = W === "inline" || G === "eager" ? !0 : G === "lazy" ? ye.current : X !== "unmounted", Q = p({
82
+ layer: null,
83
+ panel: null,
84
+ trigger: null
85
+ }), [xe, Se] = m(!1), [Ce, we] = m(!1), Te = o((e) => (e === "title" ? Se(!0) : we(!0), () => {
86
+ e === "title" ? Se(!1) : we(!1);
87
+ }), []), Ee = o((e) => {
88
+ Q.current.layer = e, Z.current?.setNode(e);
89
+ }, []), $ = o((e, t, n, r) => {
90
+ if (e === z) return;
91
+ let a = !1, o = i({
92
+ controlled: O,
93
+ initial: z,
94
+ onRequest: (e) => {
95
+ a = e.cancelled, D?.(e.value, {
96
+ get cancelled() {
97
+ return e.cancelled;
98
+ },
99
+ cancel: () => e.cancel(),
100
+ previous: e.previous,
101
+ reason: t,
102
+ result: n,
103
+ source: e.source,
104
+ value: e.value
105
+ });
106
+ }
107
+ }).request(e, t, r);
108
+ a || o && L(e);
109
+ }, [
110
+ z,
111
+ D,
112
+ O
113
+ ]), De = o((e, t, n) => {
114
+ let r = e === void 0 ? void 0 : N(e, 0, Y.max);
115
+ if (r === V) return;
116
+ let a = !1, o = i({
117
+ controlled: g,
118
+ initial: V,
119
+ onRequest: (e) => {
120
+ a = e.cancelled, E?.(e.value, {
121
+ get cancelled() {
122
+ return e.cancelled;
123
+ },
124
+ cancel: () => e.cancel(),
125
+ previous: e.previous,
126
+ reason: t,
127
+ source: e.source,
128
+ value: e.value
129
+ });
130
+ }
131
+ }).request(r, t, n);
132
+ a || o && B(r);
133
+ }, [
134
+ Y.max,
135
+ V,
136
+ g,
137
+ E
138
+ ]);
139
+ u(ae, () => ({
140
+ open: () => $(!0, "programmatic", void 0, void 0),
141
+ close: (e) => $(!1, "programmatic", e, void 0),
142
+ focus: () => Q.current.panel?.focus(),
143
+ get panel() {
144
+ return Q.current.panel;
145
+ }
146
+ }), [$]);
147
+ let Oe = f(() => ({
148
+ announce: Te,
149
+ close: (e, t, n) => $(!1, e, t, n),
150
+ container: r,
151
+ descriptionId: Ce ? `${P}description` : "",
152
+ dragging: ue,
153
+ drag: d ?? j.drag,
154
+ scrimFrom: k ?? 0,
155
+ live: U,
156
+ setLive: de,
157
+ rest: fe,
158
+ setRest: pe,
159
+ back: ge,
160
+ escape: he,
161
+ extent: V,
162
+ finalFocus: v,
163
+ initialFocus: y ?? "first",
164
+ loading: b === !0,
165
+ defaultExtent: a,
166
+ maxExtent: Y.max,
167
+ minExtent: Y.min,
168
+ modal: me,
169
+ mode: W,
170
+ mounted: be,
171
+ mount: G,
172
+ nodes: Q.current,
173
+ open: z,
174
+ openWith: (e, t) => $(!0, e, void 0, t),
175
+ outsidePress: _e,
176
+ panelId: `${P}panel`,
177
+ registerLayer: Ee,
178
+ requestExtent: De,
179
+ setDragging: H,
180
+ side: K,
181
+ size: q,
182
+ snapPoints: J,
183
+ t: M,
184
+ titleId: xe ? `${P}title` : "",
185
+ triggerId: `${P}trigger`,
186
+ visible: W === "inline" ? z : X === "open",
187
+ interactive: W === "inline" ? z : X === "entering" || X === "open"
188
+ }), [
189
+ Te,
190
+ P,
191
+ Y.max,
192
+ Y.min,
193
+ r,
194
+ V,
195
+ a,
196
+ z,
197
+ Ce,
198
+ j.drag,
199
+ d,
200
+ ue,
201
+ U,
202
+ fe,
203
+ k,
204
+ v,
205
+ y,
206
+ b,
207
+ be,
208
+ Ee,
209
+ De,
210
+ $,
211
+ ge,
212
+ he,
213
+ me,
214
+ W,
215
+ G,
216
+ _e,
217
+ K,
218
+ q,
219
+ J,
220
+ X,
221
+ M,
222
+ xe
223
+ ]);
224
+ return /* @__PURE__ */ _(R.Provider, {
225
+ value: Oe,
226
+ children: e
227
+ });
228
+ }
229
+ //#endregion
230
+ //#region src/drawer/drawer-parts.tsx
231
+ function B(e) {
232
+ return e.detail === 0 ? "keyboard" : "pointer";
233
+ }
234
+ var V = typeof document > "u" ? c : d;
235
+ function ue(e) {
236
+ return e !== null && getComputedStyle(e).direction === "rtl";
237
+ }
238
+ function H(e, t) {
239
+ if (e === null) return null;
240
+ if (t !== "inline") return e;
241
+ let n = e.parentElement;
242
+ for (; n !== null && U.has(n);) n = n.parentElement;
243
+ return n;
244
+ }
245
+ var U = /* @__PURE__ */ new WeakSet(), de = () => () => {};
246
+ function fe() {
247
+ return h(de, () => !0, () => !1);
248
+ }
249
+ function pe({ children: e, className: t, onClick: n, ref: r, render: i, style: a, ...o }) {
250
+ let s = z(), c = {
251
+ ...o,
252
+ "aria-controls": s.mounted ? s.panelId : void 0,
253
+ "aria-expanded": s.open,
254
+ ...s.mode === "overlay" ? { "aria-haspopup": "dialog" } : {},
255
+ children: e,
256
+ className: t,
257
+ "data-part": "trigger",
258
+ ...s.open ? { "data-open": "" } : {},
259
+ id: s.triggerId,
260
+ onClick: (e) => {
261
+ n?.(e), !e.defaultPrevented && (s.open ? s.close(B(e), void 0, e) : s.openWith(B(e), e));
262
+ },
263
+ ref: (e) => {
264
+ s.nodes.trigger = e, typeof r == "function" ? r(e) : r && (r.current = e);
265
+ },
266
+ style: a,
267
+ type: "button"
268
+ };
269
+ return i === void 0 ? /* @__PURE__ */ _("button", { ...c }) : i(c);
270
+ }
271
+ function W(e) {
272
+ let [t, n] = m(null);
273
+ return V(() => {
274
+ if (e.mode === "inline" || !e.mounted) return;
275
+ let t = y({
276
+ origin: e.nodes.trigger,
277
+ ...e.container === void 0 ? {} : { container: e.container }
278
+ });
279
+ return n(t.container), () => {
280
+ n(null), t.release();
281
+ };
282
+ }, [
283
+ e.container,
284
+ e.mode,
285
+ e.mounted,
286
+ e.nodes
287
+ ]), t;
288
+ }
289
+ function me(e, t) {
290
+ let [n, r] = m(void 0), { mode: i, side: a } = e, o = e.live ?? e.extent;
291
+ return V(() => {
292
+ let e = H(t, i);
293
+ if (e === null || o === void 0) {
294
+ r(void 0);
295
+ return;
296
+ }
297
+ let n = () => {
298
+ let t = e.getBoundingClientRect(), n = ae(a) ? t.width : t.height;
299
+ n > 0 && r(`${Math.round(o * n)}px`);
300
+ };
301
+ if (n(), typeof ResizeObserver > "u") return;
302
+ let s = new ResizeObserver(n);
303
+ return s.observe(e), () => s.disconnect();
304
+ }, [
305
+ o,
306
+ t,
307
+ i,
308
+ a
309
+ ]), n;
310
+ }
311
+ var G = "var(--slotted-space-12, 4rem)";
312
+ function K(e, t, n) {
313
+ return k({
314
+ atRest: e.extent === void 0 && e.live === null,
315
+ content: e.size === "content",
316
+ panel: t,
317
+ reserve: G,
318
+ rest: e.rest,
319
+ snapPoints: e.snapPoints,
320
+ span: n
321
+ });
322
+ }
323
+ function q(e, t, n) {
324
+ return M(t, n, e.size === "content");
325
+ }
326
+ function he({ children: e, className: t, ref: n, render: i, style: a, ...s }) {
327
+ let l = z(), u = W(l), [d, f] = m(null), [h, ee] = m(null), y = me(l, d), S = l.mode === "overlay", C = fe(), [w] = m(() => {
328
+ if (typeof document > "u") return null;
329
+ let e = document.createElement("div");
330
+ return e.style.display = "contents", U.add(e), e;
331
+ }), te = o((e) => {
332
+ e !== null && w !== null && (U.add(e), S ? u !== null && u.append(w) : e.append(w));
333
+ }, [
334
+ w,
335
+ S,
336
+ u
337
+ ]), ne = p(!1), D = C && w !== null && l.mounted && (!S || u !== null || ne.current);
338
+ V(() => {
339
+ ne.current = D;
340
+ });
341
+ let re = !S || u !== null, O = l.titleId !== "" && s["aria-label"] === void 0 && (S || s.role !== void 0), { registerLayer: ie } = l, k = o((e) => {
342
+ f(e), ie(e);
343
+ }, [ie]), A = p(l);
344
+ A.current = l, c(() => {
345
+ if (h === null || d === null || !l.open || !re) return;
346
+ let e = l.nodes.trigger === null ? [] : [l.nodes.trigger], t = S ? b(d, {
347
+ back: l.modal && l.back === "close",
348
+ branches: e,
349
+ content: h,
350
+ escape: l.escape === "close",
351
+ modal: l.modal,
352
+ onDismiss: (e) => {
353
+ if (e.reason === "outsidePress" && A.current.outsidePress === "none") return e.cancel();
354
+ A.current.close(e.reason, void 0, e.source);
355
+ },
356
+ outsidePress: l.outsidePress === "close",
357
+ outsidePressEvent: "click"
358
+ }) : null, n = l.initialFocus, i = l.finalFocus, a = h.ownerDocument.activeElement, o = a?.parentElement ?? null, s = r(h, {
359
+ contain: S && l.modal,
360
+ initial: S ? typeof n == "object" && n ? () => n.current : n : !1,
361
+ restore: i === void 0 ? () => {
362
+ if (a === null || a === a.ownerDocument.body) return A.current.nodes.trigger;
363
+ if (a.isConnected) return a;
364
+ let e = o;
365
+ for (; e !== null && !e.isConnected;) e = e.parentElement;
366
+ return e;
367
+ } : i === !1 ? !1 : () => i.current
368
+ });
369
+ return s.enter(), () => {
370
+ t?.destroy(), s.destroy();
371
+ };
372
+ }, [
373
+ l.back,
374
+ l.escape,
375
+ l.finalFocus,
376
+ l.initialFocus,
377
+ l.modal,
378
+ l.open,
379
+ l.outsidePress,
380
+ d,
381
+ S,
382
+ h,
383
+ re
384
+ ]);
385
+ let { setRest: j, open: M, extent: N, live: F } = l;
386
+ V(() => {
387
+ let e = H(d, l.mode);
388
+ if (h === null || e === null || !M || N !== void 0 || F !== null) return;
389
+ let t = ae(l.side), n = () => {
390
+ let n = e.getBoundingClientRect(), r = t ? n.width : n.height;
391
+ if (r <= 0) return;
392
+ let i = t ? h.offsetWidth : h.offsetHeight;
393
+ j(Math.round(i / r * 1e3) / 1e3);
394
+ };
395
+ if (n(), typeof ResizeObserver > "u") return;
396
+ let r = new ResizeObserver(n);
397
+ return r.observe(h), r.observe(e), () => r.disconnect();
398
+ }, [
399
+ d,
400
+ l.mode,
401
+ l.side,
402
+ N,
403
+ M,
404
+ F,
405
+ h,
406
+ j
407
+ ]), c(() => {
408
+ if (!S || d === null || !M) return;
409
+ let e = P(d.ownerDocument.defaultView, (e) => {
410
+ e === 0 ? d.style.removeProperty("--slotted-keyboard-inset") : d.style.setProperty("--slotted-keyboard-inset", `${e}px`);
411
+ });
412
+ return () => {
413
+ e(), d.style.removeProperty("--slotted-keyboard-inset");
414
+ };
415
+ }, [
416
+ M,
417
+ d,
418
+ S
419
+ ]);
420
+ let I = S && l.side === "bottom" && l.drag === "panel";
421
+ if (c(() => {
422
+ if (!I || h === null || d === null || !M) return;
423
+ let e = 0, t = 0, n = 0, r = {
424
+ rest: void 0,
425
+ stops: []
426
+ }, i = () => (e = d.getBoundingClientRect().height, e > 0 ? h.offsetHeight / e : 0);
427
+ return T(h, {
428
+ enabled: () => A.current.open,
429
+ canGrow: () => {
430
+ let t = i(), n = K(A.current, h, e).stops.at(-1);
431
+ return n !== void 0 && t < n && !oe(t, n);
432
+ },
433
+ onStart: () => {
434
+ t = i(), n = t, r = K(A.current, h, e), A.current.setDragging(!0), A.current.setLive(t);
435
+ },
436
+ onMove: (i) => {
437
+ if (e <= 0) return;
438
+ n = Math.max(0, t + i / e);
439
+ let a = r.stops.at(-1) ?? t;
440
+ A.current.setLive(E(n, a));
441
+ },
442
+ onEnd: (t) => {
443
+ let i = A.current;
444
+ i.setDragging(!1);
445
+ let a = se({
446
+ fraction: Math.min(n, r.stops.at(-1) ?? n),
447
+ span: e,
448
+ stops: r.stops,
449
+ velocity: e > 0 ? t / e : 0
450
+ });
451
+ if (a === "close") {
452
+ i.close("pointer", void 0, null), requestAnimationFrame(() => {
453
+ A.current.open && A.current.setLive(null);
454
+ });
455
+ return;
456
+ }
457
+ i.setLive(null), i.requestExtent(q(i, a, r.rest), "pointer", null);
458
+ }
459
+ });
460
+ }, [
461
+ M,
462
+ d,
463
+ h,
464
+ I
465
+ ]), !l.mounted) return null;
466
+ if (!C || w === null) {
467
+ if (S) return null;
468
+ } else if (!D) return null;
469
+ let L = {
470
+ ...s,
471
+ ...l.descriptionId === "" ? {} : { "aria-describedby": l.descriptionId },
472
+ ...O ? { "aria-labelledby": l.titleId } : {},
473
+ ...l.modal ? { "aria-modal": !0 } : {},
474
+ children: e,
475
+ className: t,
476
+ "data-part": "panel",
477
+ id: l.panelId,
478
+ ref: (e) => {
479
+ ee(e), l.nodes.panel = e, typeof n == "function" ? n(e) : n && (n.current = e);
480
+ },
481
+ ...S ? { role: "dialog" } : {},
482
+ style: a
483
+ }, R = /* @__PURE__ */ v("div", {
484
+ "data-mode": l.mode,
485
+ "data-mount": l.mount,
486
+ "data-part": "root",
487
+ "data-side": l.side,
488
+ "data-size": l.size,
489
+ "data-ui": "drawer",
490
+ ...l.dragging ? { "data-dragging": "" } : {},
491
+ ...S && l.side === "bottom" ? { "data-drag": l.drag } : {},
492
+ ...S && (l.live ?? l.extent ?? l.rest ?? 1) < l.scrimFrom ? { "data-undimmed": "" } : {},
493
+ ...l.loading ? { "data-loading": "" } : {},
494
+ ...l.modal ? { "data-modal": "" } : {},
495
+ ...l.interactive ? {} : { inert: !0 },
496
+ ...l.visible ? { "data-open": "" } : {},
497
+ ref: k,
498
+ style: y === void 0 ? void 0 : { "--slotted-drawer-extent": y },
499
+ children: [S ? /* @__PURE__ */ _("div", { "data-part": "backdrop" }) : null, i === void 0 ? /* @__PURE__ */ _("div", { ...L }) : i(L)]
500
+ });
501
+ return !C || w === null ? /* @__PURE__ */ _("div", {
502
+ style: ge,
503
+ children: R
504
+ }) : /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("div", {
505
+ ref: te,
506
+ style: ge
507
+ }), x(R, w)] });
508
+ }
509
+ var ge = { display: "contents" }, _e = 3;
510
+ function J({ className: e, largeStep: t = C, onDoubleClick: n, onKeyDown: r, onPointerDown: i, ref: a, render: o, step: s = w, style: c, ...l }) {
511
+ let u = z(), d = p(null), f = p(null), m = p([]), h = p(null), ee = p(null), y = p(null), b = ae(u.side), x = u.live ?? u.extent ?? u.rest ?? u.minExtent, S = (e) => Math.round(N(e, 0, 1) * 100), T = () => {
512
+ let e = H(u.nodes.layer, u.mode);
513
+ return e === null ? null : e.getBoundingClientRect();
514
+ }, E = () => {
515
+ let e = u.nodes.panel, t = T();
516
+ return e === null || t === null || u.snapPoints.length === 0 ? {
517
+ rest: u.rest,
518
+ stops: []
519
+ } : K(u, e, b ? t.width : t.height);
520
+ }, re = (e, t) => {
521
+ f.current = e, u.requestExtent(e, "pointer", t);
522
+ }, k = (e, t) => D({
523
+ point: {
524
+ x: e.clientX,
525
+ y: e.clientY
526
+ },
527
+ rect: t,
528
+ rtl: ue(d.current),
529
+ side: u.side
530
+ }), M = (e) => {
531
+ if (i?.(e), e.defaultPrevented || e.button !== 0) return;
532
+ let t = T();
533
+ t !== null && (e.preventDefault(), e.currentTarget.setPointerCapture(e.pointerId), e.currentTarget.focus(), h.current = {
534
+ moved: !1,
535
+ offset: x - k(e, t),
536
+ x: e.clientX,
537
+ y: e.clientY
538
+ }, m.current = []);
539
+ }, P = (e) => {
540
+ let t = h.current;
541
+ if (t === null) return;
542
+ let n = T();
543
+ if (n === null) return;
544
+ if (!t.moved) {
545
+ if (Math.hypot(e.clientX - t.x, e.clientY - t.y) < _e) return;
546
+ t.moved = !0, y.current?.(), y.current = ie(d.current?.ownerDocument, b ? "col-resize" : "row-resize"), u.setDragging(!0);
547
+ }
548
+ let r = N(k(e, n) + t.offset, 0, 1);
549
+ m.current = [...m.current, {
550
+ at: e.timeStamp,
551
+ fraction: r
552
+ }].slice(-3), re(r, e);
553
+ }, F = (e) => {
554
+ let { rest: t, stops: n } = E();
555
+ if (n.length < 2) return;
556
+ let r = u.live ?? u.extent ?? t ?? x, i = n.find((e) => e > r && !oe(e, r)) ?? n[0];
557
+ u.requestExtent(q(u, i, t), "pointer", e);
558
+ }, I = (e) => {
559
+ let t = h.current;
560
+ if (t === null) return;
561
+ if (h.current = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId), !t.moved) {
562
+ e.type === "pointerup" && F(e);
563
+ return;
564
+ }
565
+ y.current?.(), y.current = null, u.setDragging(!1);
566
+ let n = T(), r = n === null ? 0 : b ? n.width : n.height, i = f.current ?? x, a = O(m.current);
567
+ f.current = null, m.current = [];
568
+ let { rest: o, stops: s } = E();
569
+ if (s.length > 0) {
570
+ let t = se({
571
+ fraction: i,
572
+ span: r,
573
+ stops: s,
574
+ velocity: a
575
+ });
576
+ if (t === "close") {
577
+ u.close("pointer", void 0, e), u.requestExtent(s[0], "pointer", e);
578
+ return;
579
+ }
580
+ u.requestExtent(q(u, t, o), "pointer", e);
581
+ return;
582
+ }
583
+ if (i < u.minExtent || a * r <= -te) {
584
+ u.close("pointer", void 0, e), u.requestExtent(u.minExtent, "pointer", e);
585
+ return;
586
+ }
587
+ u.requestExtent(N(i, u.minExtent, u.maxExtent), "pointer", e);
588
+ }, L = (e) => {
589
+ if (r?.(e), e.defaultPrevented) return;
590
+ let n = ne(u.side, ue(d.current)), i = b ? "ArrowLeft" : "ArrowUp", a = b ? "ArrowRight" : "ArrowDown", o = (n) => {
591
+ e.preventDefault();
592
+ let r = T(), i = r === null ? 0 : A({
593
+ pixels: e.shiftKey ? t : s,
594
+ rect: r,
595
+ side: u.side
596
+ }), { rest: a, stops: o } = E(), c = j({
597
+ amount: i,
598
+ direction: n,
599
+ fraction: x,
600
+ max: o.at(-1) ?? u.maxExtent,
601
+ min: o[0] ?? u.minExtent,
602
+ snapPoints: o
603
+ });
604
+ u.requestExtent(q(u, c, a), "keyboard", e);
605
+ }, c = (t) => {
606
+ e.preventDefault();
607
+ let { rest: n, stops: r } = E(), i = t === "first" ? r[0] ?? u.minExtent : r.at(-1) ?? u.maxExtent;
608
+ u.requestExtent(q(u, i, n), "keyboard", e);
609
+ };
610
+ switch (e.key) {
611
+ case i: return o(n ? -1 : 1);
612
+ case a: return o(n ? 1 : -1);
613
+ case "Home": return c("first");
614
+ case "End": return c("last");
615
+ case "Enter": return e.preventDefault(), x > u.minExtent ? (ee.current = x, u.requestExtent(u.minExtent, "keyboard", e)) : u.requestExtent(ee.current ?? u.maxExtent, "keyboard", e);
616
+ default: return;
617
+ }
618
+ }, R = (e) => {
619
+ n?.(e), !e.defaultPrevented && (e.preventDefault(), u.requestExtent(u.defaultExtent, "pointer", e));
620
+ }, ce = u.size === "content" && u.rest !== void 0 ? Math.min(u.minExtent, u.rest) : u.minExtent, le = {
621
+ "aria-controls": u.panelId,
622
+ ...u.titleId === "" ? {} : { "aria-labelledby": u.titleId },
623
+ "aria-orientation": b ? "vertical" : "horizontal",
624
+ "aria-valuemax": S(u.maxExtent),
625
+ "aria-valuemin": S(ce),
626
+ "aria-valuenow": S(N(x, ce, u.maxExtent)),
627
+ ...l,
628
+ className: e,
629
+ "data-part": "resizer",
630
+ onDoubleClick: R,
631
+ onKeyDown: L,
632
+ onLostPointerCapture: I,
633
+ onPointerDown: M,
634
+ onPointerMove: P,
635
+ onPointerUp: I,
636
+ role: "separator",
637
+ style: c,
638
+ tabIndex: 0
639
+ }, B = (e) => {
640
+ d.current = e, typeof a == "function" ? a(e) : a && (a.current = e);
641
+ }, V = /* @__PURE__ */ v(g, { children: [
642
+ /* @__PURE__ */ _("span", {
643
+ "aria-hidden": "true",
644
+ "data-part": "line"
645
+ }),
646
+ /* @__PURE__ */ _("span", {
647
+ "aria-hidden": "true",
648
+ "data-part": "grip"
649
+ }),
650
+ /* @__PURE__ */ _("span", {
651
+ "aria-hidden": "true",
652
+ "data-part": "line"
653
+ })
654
+ ] });
655
+ return o === void 0 ? /* @__PURE__ */ _("div", {
656
+ ...le,
657
+ ref: B,
658
+ children: V
659
+ }) : o({
660
+ ...le,
661
+ children: V,
662
+ ref: B
663
+ });
664
+ }
665
+ function Y({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
666
+ let o = {
667
+ ...a,
668
+ children: e,
669
+ className: t,
670
+ "data-part": "header",
671
+ style: i
672
+ };
673
+ return r === void 0 ? /* @__PURE__ */ _("header", {
674
+ ...o,
675
+ ref: n
676
+ }) : r(o);
677
+ }
678
+ function X({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
679
+ let o = z();
680
+ c(() => o.announce("title"), [o]);
681
+ let s = {
682
+ ...a,
683
+ children: e,
684
+ className: t,
685
+ "data-part": "title",
686
+ id: o.titleId === "" ? void 0 : o.titleId,
687
+ style: i
688
+ };
689
+ return r === void 0 ? /* @__PURE__ */ _("h2", {
690
+ ...s,
691
+ ref: n
692
+ }) : r(s);
693
+ }
694
+ function ve({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
695
+ let o = z();
696
+ c(() => o.announce("description"), [o]);
697
+ let s = {
698
+ ...a,
699
+ children: e,
700
+ className: t,
701
+ "data-part": "description",
702
+ id: o.descriptionId === "" ? void 0 : o.descriptionId,
703
+ style: i
704
+ };
705
+ return r === void 0 ? /* @__PURE__ */ _("p", {
706
+ ...s,
707
+ ref: n
708
+ }) : r(s);
709
+ }
710
+ function Z({ children: e, className: t, inset: n, ref: r, render: i, style: a, ...o }) {
711
+ let s = z(), c = {
712
+ ...o,
713
+ ...s.loading ? { "aria-busy": !0 } : {},
714
+ children: e,
715
+ className: t,
716
+ ...n === void 0 ? {} : { "data-inset": n },
717
+ "data-part": "body",
718
+ style: a
719
+ };
720
+ return i === void 0 ? /* @__PURE__ */ _("div", {
721
+ ...c,
722
+ ref: r
723
+ }) : i(c);
724
+ }
725
+ function ye({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
726
+ let o = {
727
+ ...a,
728
+ children: e,
729
+ className: t,
730
+ "data-part": "footer",
731
+ style: i
732
+ };
733
+ return r === void 0 ? /* @__PURE__ */ _("footer", {
734
+ ...o,
735
+ ref: n
736
+ }) : r(o);
737
+ }
738
+ function be({ children: n, className: r, onClick: i, ref: a, render: o, style: s, value: c, ...l }) {
739
+ let u = z(), d = {
740
+ "aria-label": u.t("close"),
741
+ ...l,
742
+ children: n ?? /* @__PURE__ */ _(t, { children: /* @__PURE__ */ _(e, { name: "x" }) }),
743
+ className: r,
744
+ "data-part": "close",
745
+ onClick: (e) => {
746
+ i?.(e), !e.defaultPrevented && u.close("dismiss", c, e);
747
+ },
748
+ style: s,
749
+ type: "button"
750
+ };
751
+ return o === void 0 ? /* @__PURE__ */ _("button", {
752
+ ...d,
753
+ ref: a
754
+ }) : o(d);
755
+ }
756
+ //#endregion
757
+ export { Y as a, X as c, z as d, L as f, ye as i, pe as l, be as n, he as o, I as p, ve as r, J as s, Z as t, le as u };