@orioncactuscorp/ui 1.13.0 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/CHANGELOG.md +155 -0
  2. package/README.md +133 -36
  3. package/dist/components/BackgroundIconButton/BackgroundIconButton.css +1 -1
  4. package/dist/components/Button/Button.css +1 -1
  5. package/dist/components/CheckMark/CheckMark.js +19 -17
  6. package/dist/components/Checkbox/Checkbox.css +1 -1
  7. package/dist/components/Checkbox/Checkbox.js +38 -36
  8. package/dist/components/FloatingWindow/FloatingWindow.css +1 -0
  9. package/dist/components/FloatingWindow/FloatingWindow.js +693 -0
  10. package/dist/components/FloatingWindow/FloatingWindow.module.scss.js +17 -0
  11. package/dist/components/FloatingWindow/FloatingWindowManager.js +36 -0
  12. package/dist/components/FloatingWindow/contexts.js +25 -0
  13. package/dist/components/FloatingWindow/geometry.js +222 -0
  14. package/dist/components/FloatingWindow/stack.js +31 -0
  15. package/dist/components/FloatingWindow.d.ts +6 -0
  16. package/dist/components/FloatingWindow.js +18 -0
  17. package/dist/components/Interaction/Interaction.css +1 -1
  18. package/dist/components/Menu/Menu.css +1 -1
  19. package/dist/components/Menu/Menu.js +95 -87
  20. package/dist/components/Modal/Modal.css +1 -1
  21. package/dist/components/Modal/Modal.js +558 -723
  22. package/dist/components/Modal/Modal.module.scss.js +69 -60
  23. package/dist/components/Modal/initialFocus.js +11 -0
  24. package/dist/components/Modal/keyboardSession.js +104 -0
  25. package/dist/components/Modal/snapPoints.js +95 -82
  26. package/dist/components/Modal/useModalDrag.js +730 -762
  27. package/dist/components/Modal/useModalKeyboardAvoidance.js +159 -0
  28. package/dist/components/Modal/useModalViewportGeometry.js +36 -0
  29. package/dist/components/PositionSnap/PositionSnap.css +1 -0
  30. package/dist/components/PositionSnap/PositionSnap.js +330 -0
  31. package/dist/components/PositionSnap/PositionSnap.module.scss.js +9 -0
  32. package/dist/components/PositionSnap/contexts.js +12 -0
  33. package/dist/components/PositionSnap/geometry.js +75 -0
  34. package/dist/components/PositionSnap/gesture.js +7 -0
  35. package/dist/components/PositionSnap/policy.js +60 -0
  36. package/dist/components/PositionSnap.d.ts +6 -0
  37. package/dist/components/PositionSnap.js +7 -0
  38. package/dist/components/ProgressIndicator/ProgressIndicator.css +1 -0
  39. package/dist/components/ProgressIndicator/ProgressIndicator.js +45 -0
  40. package/dist/components/ProgressIndicator/ProgressIndicator.module.scss.js +13 -0
  41. package/dist/components/ProgressIndicator.d.ts +6 -0
  42. package/dist/components/ProgressIndicator.js +4 -0
  43. package/dist/components/Radio/Radio.css +1 -1
  44. package/dist/components/Radio/Radio.js +26 -24
  45. package/dist/components/Switch/Switch.css +1 -1
  46. package/dist/components/Switch/Switch.js +18 -16
  47. package/dist/components/Tabs/Tabs.css +1 -1
  48. package/dist/components/Tooltip/Tooltip.css +1 -1
  49. package/dist/components/Tooltip/Tooltip.js +59 -56
  50. package/dist/components/Tooltip/Tooltip.module.scss.js +6 -4
  51. package/dist/components/internal/ModalPresentation.js +361 -0
  52. package/dist/components/internal/OverlayPortalContext.js +20 -0
  53. package/dist/index.js +135 -112
  54. package/dist/styles.css +13 -10
  55. package/dist/ui/src/components/CheckMark/CheckMark.d.ts +1 -1
  56. package/dist/ui/src/components/CheckMark/CheckMark.d.ts.map +1 -1
  57. package/dist/ui/src/components/CheckMark/types.d.ts +2 -1
  58. package/dist/ui/src/components/CheckMark/types.d.ts.map +1 -1
  59. package/dist/ui/src/components/Checkbox/Checkbox.d.ts +1 -1
  60. package/dist/ui/src/components/Checkbox/Checkbox.d.ts.map +1 -1
  61. package/dist/ui/src/components/Checkbox/types.d.ts +2 -1
  62. package/dist/ui/src/components/Checkbox/types.d.ts.map +1 -1
  63. package/dist/ui/src/components/FloatingWindow/FloatingWindow.d.ts +32 -0
  64. package/dist/ui/src/components/FloatingWindow/FloatingWindow.d.ts.map +1 -0
  65. package/dist/ui/src/components/FloatingWindow/FloatingWindowManager.d.ts +4 -0
  66. package/dist/ui/src/components/FloatingWindow/FloatingWindowManager.d.ts.map +1 -0
  67. package/dist/ui/src/components/FloatingWindow/contexts.d.ts +36 -0
  68. package/dist/ui/src/components/FloatingWindow/contexts.d.ts.map +1 -0
  69. package/dist/ui/src/components/FloatingWindow/geometry.d.ts +31 -0
  70. package/dist/ui/src/components/FloatingWindow/geometry.d.ts.map +1 -0
  71. package/dist/ui/src/components/FloatingWindow/index.d.ts +4 -0
  72. package/dist/ui/src/components/FloatingWindow/index.d.ts.map +1 -0
  73. package/dist/ui/src/components/FloatingWindow/stack.d.ts +9 -0
  74. package/dist/ui/src/components/FloatingWindow/stack.d.ts.map +1 -0
  75. package/dist/ui/src/components/FloatingWindow/types.d.ts +121 -0
  76. package/dist/ui/src/components/FloatingWindow/types.d.ts.map +1 -0
  77. package/dist/ui/src/components/Interaction/index.d.ts +1 -1
  78. package/dist/ui/src/components/Interaction/index.d.ts.map +1 -1
  79. package/dist/ui/src/components/Interaction/types.d.ts +9 -1
  80. package/dist/ui/src/components/Interaction/types.d.ts.map +1 -1
  81. package/dist/ui/src/components/Menu/Menu.d.ts +2 -2
  82. package/dist/ui/src/components/Menu/Menu.d.ts.map +1 -1
  83. package/dist/ui/src/components/Menu/types.d.ts +9 -2
  84. package/dist/ui/src/components/Menu/types.d.ts.map +1 -1
  85. package/dist/ui/src/components/Modal/Modal.d.ts +2 -2
  86. package/dist/ui/src/components/Modal/Modal.d.ts.map +1 -1
  87. package/dist/ui/src/components/Modal/contexts.d.ts +3 -0
  88. package/dist/ui/src/components/Modal/contexts.d.ts.map +1 -1
  89. package/dist/ui/src/components/Modal/initialFocus.d.ts +18 -0
  90. package/dist/ui/src/components/Modal/initialFocus.d.ts.map +1 -0
  91. package/dist/ui/src/components/Modal/keyboardSession.d.ts +46 -0
  92. package/dist/ui/src/components/Modal/keyboardSession.d.ts.map +1 -0
  93. package/dist/ui/src/components/Modal/snapPoints.d.ts.map +1 -1
  94. package/dist/ui/src/components/Modal/types.d.ts +17 -2
  95. package/dist/ui/src/components/Modal/types.d.ts.map +1 -1
  96. package/dist/ui/src/components/Modal/useModalDrag.d.ts.map +1 -1
  97. package/dist/ui/src/components/Modal/useModalKeyboardAvoidance.d.ts +17 -0
  98. package/dist/ui/src/components/Modal/useModalKeyboardAvoidance.d.ts.map +1 -0
  99. package/dist/ui/src/components/Modal/useModalViewportGeometry.d.ts +9 -0
  100. package/dist/ui/src/components/Modal/useModalViewportGeometry.d.ts.map +1 -0
  101. package/dist/ui/src/components/PositionSnap/PositionSnap.d.ts +11 -0
  102. package/dist/ui/src/components/PositionSnap/PositionSnap.d.ts.map +1 -0
  103. package/dist/ui/src/components/PositionSnap/contexts.d.ts +17 -0
  104. package/dist/ui/src/components/PositionSnap/contexts.d.ts.map +1 -0
  105. package/dist/ui/src/components/PositionSnap/geometry.d.ts +31 -0
  106. package/dist/ui/src/components/PositionSnap/geometry.d.ts.map +1 -0
  107. package/dist/ui/src/components/PositionSnap/gesture.d.ts +2 -0
  108. package/dist/ui/src/components/PositionSnap/gesture.d.ts.map +1 -0
  109. package/dist/ui/src/components/PositionSnap/index.d.ts +3 -0
  110. package/dist/ui/src/components/PositionSnap/index.d.ts.map +1 -0
  111. package/dist/ui/src/components/PositionSnap/policy.d.ts +24 -0
  112. package/dist/ui/src/components/PositionSnap/policy.d.ts.map +1 -0
  113. package/dist/ui/src/components/PositionSnap/types.d.ts +31 -0
  114. package/dist/ui/src/components/PositionSnap/types.d.ts.map +1 -0
  115. package/dist/ui/src/components/ProgressIndicator/ProgressIndicator.d.ts +4 -0
  116. package/dist/ui/src/components/ProgressIndicator/ProgressIndicator.d.ts.map +1 -0
  117. package/dist/ui/src/components/ProgressIndicator/index.d.ts +3 -0
  118. package/dist/ui/src/components/ProgressIndicator/index.d.ts.map +1 -0
  119. package/dist/ui/src/components/ProgressIndicator/types.d.ts +17 -0
  120. package/dist/ui/src/components/ProgressIndicator/types.d.ts.map +1 -0
  121. package/dist/ui/src/components/Radio/Radio.d.ts +1 -1
  122. package/dist/ui/src/components/Radio/Radio.d.ts.map +1 -1
  123. package/dist/ui/src/components/Radio/types.d.ts +2 -1
  124. package/dist/ui/src/components/Radio/types.d.ts.map +1 -1
  125. package/dist/ui/src/components/Switch/Switch.d.ts +1 -1
  126. package/dist/ui/src/components/Switch/Switch.d.ts.map +1 -1
  127. package/dist/ui/src/components/Switch/types.d.ts +2 -1
  128. package/dist/ui/src/components/Switch/types.d.ts.map +1 -1
  129. package/dist/ui/src/components/Tooltip/Tooltip.d.ts +1 -1
  130. package/dist/ui/src/components/Tooltip/Tooltip.d.ts.map +1 -1
  131. package/dist/ui/src/components/Tooltip/types.d.ts +6 -0
  132. package/dist/ui/src/components/Tooltip/types.d.ts.map +1 -1
  133. package/dist/ui/src/components/internal/ModalPresentation.d.ts +62 -0
  134. package/dist/ui/src/components/internal/ModalPresentation.d.ts.map +1 -0
  135. package/dist/ui/src/components/internal/OverlayPortalContext.d.ts +10 -0
  136. package/dist/ui/src/components/internal/OverlayPortalContext.d.ts.map +1 -0
  137. package/dist/ui/src/index.d.ts +7 -1
  138. package/dist/ui/src/index.d.ts.map +1 -1
  139. package/dist/ui/src/utils/motion.d.ts.map +1 -1
  140. package/dist/utils/motion.js +194 -135
  141. package/docs/api-conventions.md +4 -0
  142. package/docs/motion.md +4 -0
  143. package/docs/overlay-stacking.md +48 -0
  144. package/docs/responsive-foundation-profile.md +1 -1
  145. package/docs/scss-helpers.md +110 -5
  146. package/docs/selector-contract.md +126 -2
  147. package/docs/tokens.md +2 -0
  148. package/package.json +1 -1
  149. package/src/scss/foundations/atomic.scss +9 -8
  150. package/src/scss/index.scss +2 -0
  151. package/src/scss/mixins/_fluid.scss +57 -0
  152. package/src/scss/mixins/_fluid.test.ts +87 -0
  153. package/src/scss/mixins/_gradient.scss +99 -0
  154. package/src/scss/mixins/_gradient.test.ts +111 -0
  155. package/src/scss/mixins/_responsive.scss +2 -1
  156. package/src/scss/mixins/_typo.scss +2 -1
  157. package/src/scss/mixins/_units.scss +14 -0
  158. package/src/scss/mixins/_utils.scss +3 -22
@@ -1,34 +1,31 @@
1
1
  'use client';
2
- import { jsx as d, jsxs as ae } from "react/jsx-runtime";
3
- import { useCallback as k, useMemo as pe, useEffect as ne, useRef as j, useState as v, useLayoutEffect as ye, useId as ht } from "react";
4
- import { Dialog as $ } from "@base-ui-components/react/dialog";
5
- import gt from "@orioncactuscorp/icons/orioncactus/CloseThick";
6
- import { MotionExpand as vt } from "../../react/motion.js";
7
- import bt from "../Background/Background.js";
8
- import St from "../BackgroundIconButton/BackgroundIconButton.js";
9
- import yt from "../Interaction/Interaction.js";
10
- import { ScrollArea as Ue, ScrollAreaContainer as _e } from "../ScrollArea/ScrollArea.js";
11
- import { DisclosureIndicator as kt } from "../internal/DisclosureIndicator.js";
12
- import { normalizeSlotIcon as Nt } from "../internal/slot.js";
13
- import { mergeRefs as Fe } from "../../utils/mergeRefs.js";
14
- import { useModalContext as me, ModalProvider as Ct } from "./contexts.js";
15
- import { useControllableState as Ge } from "./useControllableState.js";
16
- import { useModalContentBlockTransition as wt } from "./useModalContentBlockTransition.js";
17
- import { useMeasuredElement as Pe } from "./useElementSize.js";
18
- import { useModalDrag as Ht } from "./useModalDrag.js";
2
+ import { jsx as u, jsxs as _e } from "react/jsx-runtime";
3
+ import { useRef as A, useState as l, useMemo as Y, useLayoutEffect as Me, useEffect as X, useCallback as v } from "react";
4
+ import { Dialog as I } from "@base-ui-components/react/dialog";
5
+ import ht from "@orioncactuscorp/icons/orioncactus/CloseThick";
6
+ import gt from "../BackgroundIconButton/BackgroundIconButton.js";
7
+ import { mergeRefs as De } from "../../utils/mergeRefs.js";
8
+ import { useModalContext as Z, ModalProvider as bt } from "./contexts.js";
9
+ import { useControllableState as vt } from "./useControllableState.js";
10
+ import { useModalContentBlockTransition as yt } from "./useModalContentBlockTransition.js";
11
+ import { useMeasuredElement as We } from "./useElementSize.js";
12
+ import { useModalDrag as St } from "./useModalDrag.js";
13
+ import { useModalKeyboardAvoidance as kt } from "./useModalKeyboardAvoidance.js";
19
14
  import { useModalPlacement as Mt } from "./useModalPlacement.js";
20
- import { useModalStackDepth as xt } from "./useModalStackDepth.js";
21
- import { resolveContentSizedBottomSheetHeight as Tt } from "./bottomSheetGeometry.js";
22
- import { getModalScrollState as Je } from "./modalScrollArbitration.js";
23
- import { resolveModalSnapMetrics as Rt, resolveModalPopupSnapPositions as Bt } from "./snapPoints.js";
24
- import c from "./Modal.module.scss.js";
25
- function R(...e) {
26
- return e.filter(Boolean).join(" ");
27
- }
28
- function Qe(e) {
29
- return e != null && e !== !1 && e !== "";
30
- }
31
- function Pt(e) {
15
+ import { useModalStackDepth as Ct } from "./useModalStackDepth.js";
16
+ import { useModalViewportGeometry as Nt } from "./useModalViewportGeometry.js";
17
+ import { resolveContentSizedBottomSheetHeight as wt } from "./bottomSheetGeometry.js";
18
+ import { getModalScrollState as Ht } from "./modalScrollArbitration.js";
19
+ import { resolveModalInitialFocus as xt } from "./initialFocus.js";
20
+ import { useModalBodyScrollState as Tt, ModalBodyFrame as Rt, ModalSurfaceFrame as Ft, resolveModalFooterBackground as Bt, ModalFooterFrame as Pt, ModalHeaderFrame as At, ModalNavigationSectionFrame as Dt, mergeModalClassName as Et } from "../internal/ModalPresentation.js";
21
+ import { OverlayPortalProvider as Vt } from "../internal/OverlayPortalContext.js";
22
+ import { resolveModalSnapMetrics as jt, resolveModalPopupSnapPositions as It } from "./snapPoints.js";
23
+ import N from "./Modal.module.scss.js";
24
+ const $t = /* @__PURE__ */ new Set([
25
+ "oc-modal-reject-shake",
26
+ "oc-modal-reject-shake-replay"
27
+ ]), Ne = Et;
28
+ function Lt(e) {
32
29
  if (!e) return;
33
30
  const t = Object.entries(e).filter(
34
31
  ([n]) => n.startsWith("--")
@@ -36,91 +33,73 @@ function Pt(e) {
36
33
  if (t.length !== 0)
37
34
  return Object.fromEntries(t);
38
35
  }
39
- function Oe() {
40
- return typeof window > "u" ? 0 : window.visualViewport?.height ?? window.innerHeight;
41
- }
42
- function Ft(e) {
36
+ function Ot(e) {
43
37
  const t = e.trim();
44
38
  if (!t.endsWith("px")) return;
45
39
  const n = Number.parseFloat(t);
46
40
  return Number.isFinite(n) && n > 0 ? n : void 0;
47
41
  }
48
- function Dt(e) {
42
+ function Kt(e) {
49
43
  if (!(!e || typeof window > "u"))
50
- return Ft(window.getComputedStyle(e).maxHeight);
44
+ return Ot(window.getComputedStyle(e).maxHeight);
51
45
  }
52
- function Et({
46
+ function qt({
53
47
  contentTransition: e,
54
48
  placement: t,
55
49
  resize: n
56
50
  }) {
57
51
  return e !== "auto" || n !== "content" || t === "full" ? "none" : t === "bottom" ? "sheet" : "surface";
58
52
  }
59
- function qe(e, t) {
53
+ function ze(e, t) {
60
54
  return e.resolvedBackdrop === t ? e : {
61
55
  resolvedBackdrop: t,
62
56
  exiting: t === "hidden" && e.resolvedBackdrop !== "hidden"
63
57
  };
64
58
  }
65
- function At(e) {
66
- const [t, n] = v(Oe);
67
- return ye(() => {
68
- if (!e || typeof window > "u") return;
69
- const a = () => {
70
- n(Oe());
71
- };
72
- return a(), window.addEventListener("resize", a), window.visualViewport?.addEventListener("resize", a), () => {
73
- window.removeEventListener("resize", a), window.visualViewport?.removeEventListener(
74
- "resize",
75
- a
76
- );
77
- };
78
- }, [e]), t;
79
- }
80
- function It(e) {
59
+ function _t(e) {
81
60
  const t = e.trim();
82
61
  return t.endsWith("ms") ? Number.parseFloat(t) || 0 : t.endsWith("s") ? (Number.parseFloat(t) || 0) * 1e3 : 0;
83
62
  }
84
63
  function we(e) {
85
- return e.split(",").reduce((t, n) => Math.max(t, It(n)), 0);
64
+ return e.split(",").reduce((t, n) => Math.max(t, _t(n)), 0);
86
65
  }
87
- function Vt(e) {
88
- const t = window.getComputedStyle(e), n = we(t.animationDuration), a = we(t.animationDelay);
89
- return n + a + 250;
66
+ function Wt(e) {
67
+ const t = window.getComputedStyle(e), n = we(t.animationDuration), s = we(t.animationDelay);
68
+ return n + s + 250;
90
69
  }
91
- function Lt(e) {
92
- const t = window.getComputedStyle(e), n = we(t.transitionDuration), a = we(t.transitionDelay);
93
- return n + a + 250;
70
+ function zt(e) {
71
+ const t = window.getComputedStyle(e), n = we(t.transitionDuration), s = we(t.transitionDelay);
72
+ return n + s + 250;
94
73
  }
95
- function zt({
74
+ function Gt({
96
75
  defaultSnapPosition: e,
97
76
  node: t,
98
77
  snapPositions: n
99
78
  }) {
100
79
  if (!n?.length) return;
101
- const a = Bt({
80
+ const s = It({
102
81
  defaultSnapPosition: e,
103
82
  snapPositions: n,
104
83
  surfaceMotion: t
105
84
  });
106
- if (!a) return;
107
- const l = a.defaultTarget;
85
+ if (!s) return;
86
+ const c = s.defaultTarget;
108
87
  t.style.setProperty(
109
88
  "--oc-modal-translate-x",
110
- l.settledTranslate?.x ?? `${l.x}px`
89
+ c.settledTranslate?.x ?? `${c.x}px`
111
90
  ), t.style.setProperty(
112
91
  "--oc-modal-translate-y",
113
- l.settledTranslate?.y ?? `${l.y}px`
92
+ c.settledTranslate?.y ?? `${c.y}px`
114
93
  );
115
94
  }
116
- function jt(e) {
95
+ function Ut(e) {
117
96
  if (e && typeof e == "object" && "reason" in e && typeof e.reason == "string")
118
97
  return e.reason;
119
98
  }
120
99
  function Ce(e) {
121
100
  e && typeof e == "object" && "cancel" in e && typeof e.cancel == "function" && e.cancel();
122
101
  }
123
- function $t(e, t) {
102
+ function Jt(e, t) {
124
103
  switch (t) {
125
104
  case "drag-dismiss":
126
105
  return e?.drag ?? "auto";
@@ -138,22 +117,22 @@ function $t(e, t) {
138
117
  return e?.programmatic ?? "auto";
139
118
  }
140
119
  }
141
- function Ot(e, t) {
120
+ function Qt(e, t) {
142
121
  return t > 0 && (e === "drag-dismiss" || e === "backdrop-press" || e === "outside-press");
143
122
  }
144
- function Ke(e, t) {
123
+ function Ge(e, t) {
145
124
  return t && (e === "backdrop-press" || e === "outside-press");
146
125
  }
147
- function qt({
126
+ function Xt({
148
127
  backdrop: e,
149
128
  canSnapPopup: t,
150
129
  placement: n,
151
- presentationState: a
130
+ presentationState: s
152
131
  }) {
153
- return e !== "auto" ? e : n === "bottom" && a === "peeked" || t ? "hidden" : "visible";
132
+ return e !== "auto" ? e : n === "bottom" && s === "peeked" || t ? "hidden" : "visible";
154
133
  }
155
- function Kt(e) {
156
- switch (jt(e)) {
134
+ function Yt(e) {
135
+ switch (Ut(e)) {
157
136
  case "close-press":
158
137
  return "close-button";
159
138
  case "outside-press":
@@ -168,429 +147,460 @@ function Kt(e) {
168
147
  return "programmatic";
169
148
  }
170
149
  }
171
- function Wt(e) {
172
- return e >= 2 && e <= 6;
173
- }
174
- function We({
150
+ function Ue({
175
151
  children: e,
176
152
  open: t,
177
153
  defaultOpen: n,
178
- modal: a = !0,
179
- onOpenChange: l,
180
- canCloseAttempt: N,
181
- onCloseAttempt: m,
182
- presentationState: C,
183
- defaultPresentationState: f = "visible",
184
- onPresentationStateChange: M,
185
- disablePointerDismissal: h,
186
- navigationDepth: S = 0,
187
- dismissBehavior: x
154
+ modal: s = !0,
155
+ onOpenChange: c,
156
+ canCloseAttempt: h,
157
+ onCloseAttempt: y,
158
+ presentationState: S,
159
+ defaultPresentationState: p = "visible",
160
+ onPresentationStateChange: H,
161
+ disablePointerDismissal: w,
162
+ navigationDepth: B = 0,
163
+ dismissBehavior: M
188
164
  }) {
189
- const p = t !== void 0, [T, G] = v(
165
+ const k = t !== void 0, [ee, $] = l(
190
166
  n ?? !1
191
- ), O = p ? t : T, [J, fe] = v("bottom"), [A, re] = v(!1), [o, q] = v(!1), [F, K] = v(!1), [r, Q] = v(!1), [X, Y] = v(0), [W, Z] = v(0), [ie, he] = v(null), [ee, te] = v({
167
+ ), L = k ? t : ee, [te, He] = l("bottom"), [O, xe] = l(!1), [o, oe] = l(!1), [D, ue] = l(!1), [i, me] = l(!1), [pe, ne] = l(0), [W, E] = l(0), [fe, re] = l(null), [he, ge] = l(null), [be, ae] = l({
192
168
  canScroll: !1,
193
169
  scrolledFromTop: !1,
194
170
  scrolledToBottom: !0
195
- }), [b, y] = Ge({
196
- value: C,
197
- defaultValue: f,
198
- onChange: M
199
- }), B = Pe(), U = Pe(), I = Math.max(0, S), D = k(
200
- (s, g) => {
201
- p || G(s), l?.(s, g);
171
+ }), [f, g] = vt({
172
+ value: S,
173
+ defaultValue: p,
174
+ onChange: H
175
+ }), x = We(), V = We(), se = Math.max(0, B), K = v(
176
+ (a, m) => {
177
+ k || $(a), c?.(a, m);
202
178
  },
203
- [l, p]
204
- ), w = k(
205
- (s = { reason: "programmatic" }) => N?.(s) !== !1,
206
- [N]
207
- ), u = k(
208
- (s = { reason: "programmatic" }) => {
209
- Y((g) => g + 1);
179
+ [c, k]
180
+ ), C = v(
181
+ (a = { reason: "programmatic" }) => h?.(a) !== !1,
182
+ [h]
183
+ ), d = v(
184
+ (a = { reason: "programmatic" }) => {
185
+ ne((m) => m + 1);
210
186
  },
211
187
  []
212
- ), V = k(() => {
213
- Z((s) => s + 1);
214
- }, []), L = k(
215
- (s = { reason: "programmatic" }) => {
216
- if (Ke(s.reason, F))
188
+ ), q = v(() => {
189
+ E((a) => a + 1);
190
+ }, []), _ = v(
191
+ (a = { reason: "programmatic" }) => {
192
+ if (Ge(a.reason, D))
217
193
  return !1;
218
- const g = $t(x, s.reason);
219
- return g === "allow" ? !0 : g === "block" ? !1 : !Ot(s.reason, I);
194
+ const m = Jt(M, a.reason);
195
+ return m === "allow" ? !0 : m === "block" ? !1 : !Qt(a.reason, se);
220
196
  },
221
- [F, x, I]
222
- ), P = k(
223
- (s = { reason: "programmatic" }, g = {}) => {
224
- const { commit: ce = !0, skipAttempt: se = !1 } = g;
225
- return !se && Ke(s.reason, F) ? (Ce(s.eventDetails), !1) : !se && !L(s) || !se && !w(s) || !se && m?.(s) === !1 ? (Ce(s.eventDetails), u(s), !1) : (ce && D(!1, s.eventDetails), !0);
197
+ [D, M, se]
198
+ ), P = v(
199
+ (a = { reason: "programmatic" }, m = {}) => {
200
+ const { commit: ve = !0, skipAttempt: T = !1 } = m;
201
+ return !T && Ge(a.reason, D) ? (Ce(a.eventDetails), !1) : !T && !_(a) || !T && !C(a) || !T && y?.(a) === !1 ? (Ce(a.eventDetails), d(a), !1) : (ve && K(!1, a.eventDetails), !0);
226
202
  },
227
203
  [
228
- w,
229
- F,
230
- L,
204
+ C,
231
205
  D,
232
- u,
233
- m
206
+ _,
207
+ K,
208
+ d,
209
+ y
234
210
  ]
235
- ), oe = k(
236
- (s, g) => {
237
- if (s && b === "peeked" && y("visible"), !s) {
211
+ ), ce = v(
212
+ (a, m) => {
213
+ if (a && f === "peeked" && g("visible"), !a) {
238
214
  P({
239
- reason: Kt(g),
240
- eventDetails: g
215
+ reason: Yt(m),
216
+ eventDetails: m
241
217
  });
242
218
  return;
243
219
  }
244
- D(s, g);
220
+ K(a, m);
245
221
  },
246
- [D, b, P, y]
247
- ), z = b === "visible" && !r ? a : !1, ge = h || J === "bottom" && (A || r), _ = pe(
222
+ [K, f, P, g]
223
+ ), z = f === "visible" && !i ? s : !1, ie = w || te === "bottom" && (O || i), j = Y(
248
224
  () => ({
249
- open: O,
250
- placement: J,
251
- setPlacement: fe,
252
- presentationState: b,
253
- setPresentationState: y,
225
+ open: L,
226
+ modal: z,
227
+ placement: te,
228
+ setPlacement: He,
229
+ presentationState: f,
230
+ setPresentationState: g,
254
231
  requestClose: P,
255
- canDismissByBehavior: L,
256
- canCloseAttempt: w,
257
- closeAttemptFeedbackKey: X,
258
- notifyCloseAttemptRejected: u,
259
- disablePointerDismissal: h ?? !1,
260
- setBackdropDismissalDisabled: K,
261
- setBackgroundInteractive: Q,
262
- canPeek: A,
263
- setCanPeek: re,
232
+ canDismissByBehavior: _,
233
+ canCloseAttempt: C,
234
+ closeAttemptFeedbackKey: pe,
235
+ notifyCloseAttemptRejected: d,
236
+ disablePointerDismissal: w ?? !1,
237
+ setBackdropDismissalDisabled: ue,
238
+ setBackgroundInteractive: me,
239
+ canPeek: O,
240
+ setCanPeek: xe,
264
241
  canRenderHandle: o,
265
- setCanRenderHandle: q,
242
+ setCanRenderHandle: oe,
266
243
  popupSnapLayoutVersion: W,
267
- notifyPopupSnapLayoutChange: V,
268
- headerHeight: B.height,
269
- footerHeight: U.height,
270
- setHeaderNode: B.setNode,
271
- setFooterNode: U.setNode,
272
- bodyNode: ie,
273
- setBodyNode: he,
274
- scrollState: ee,
275
- setScrollState: te
244
+ notifyPopupSnapLayoutChange: q,
245
+ headerHeight: x.height,
246
+ footerHeight: V.height,
247
+ setHeaderNode: x.setNode,
248
+ titleNode: he,
249
+ setTitleNode: ge,
250
+ setFooterNode: V.setNode,
251
+ bodyNode: fe,
252
+ setBodyNode: re,
253
+ scrollState: be,
254
+ setScrollState: ae
276
255
  }),
277
256
  [
278
- ie,
279
- A,
257
+ fe,
258
+ O,
280
259
  o,
281
- L,
282
- w,
283
- X,
284
- U.height,
285
- U.setNode,
286
- B.height,
287
- B.setNode,
288
- u,
289
- V,
260
+ _,
261
+ C,
262
+ pe,
263
+ V.height,
264
+ V.setNode,
265
+ x.height,
266
+ x.setNode,
267
+ z,
268
+ d,
269
+ q,
290
270
  W,
291
- O,
292
- J,
271
+ L,
272
+ te,
293
273
  P,
294
- ee,
295
- h,
296
- b,
297
- y
274
+ be,
275
+ w,
276
+ f,
277
+ g,
278
+ ge,
279
+ he
298
280
  ]
299
281
  );
300
- return /* @__PURE__ */ d(Ct, { value: _, children: /* @__PURE__ */ d(
301
- $.Root,
282
+ return /* @__PURE__ */ u(bt, { value: j, children: /* @__PURE__ */ u(
283
+ I.Root,
302
284
  {
303
- open: O,
285
+ open: L,
304
286
  modal: z,
305
- onOpenChange: oe,
306
- disablePointerDismissal: ge,
287
+ onOpenChange: ce,
288
+ disablePointerDismissal: ie,
307
289
  children: e
308
290
  }
309
291
  ) });
310
292
  }
311
- function Ut({
293
+ function Zt({
312
294
  className: e = "",
313
295
  children: t,
314
296
  render: n,
315
- nativeButton: a
297
+ nativeButton: s
316
298
  }) {
317
- return n ? /* @__PURE__ */ d(
318
- $.Trigger,
299
+ return n ? /* @__PURE__ */ u(
300
+ I.Trigger,
319
301
  {
320
302
  render: n,
321
- nativeButton: a,
303
+ nativeButton: s,
322
304
  "data-oc-component": "modal-trigger",
323
305
  children: t
324
306
  }
325
- ) : /* @__PURE__ */ d(
326
- $.Trigger,
307
+ ) : /* @__PURE__ */ u(
308
+ I.Trigger,
327
309
  {
328
- className: R(c.trigger, e),
329
- nativeButton: a,
310
+ className: Ne(N.trigger, e),
311
+ nativeButton: s,
330
312
  "data-oc-component": "modal-trigger",
331
313
  children: t
332
314
  }
333
315
  );
334
316
  }
335
- function _t({
317
+ function eo({
336
318
  className: e = "",
337
319
  children: t,
338
320
  variant: n = "adaptive",
339
- size: a = "medium",
340
- resize: l = "content",
341
- contentTransition: N = "auto",
342
- backdrop: m = "auto",
343
- backdropFrom: C,
344
- drag: f = "content",
345
- peekable: M = !1,
346
- snapPoints: h,
347
- defaultSnapPoint: S,
348
- snapPositions: x,
349
- defaultSnapPosition: p,
350
- initialFocus: T,
351
- peekHeight: G,
352
- closeThreshold: O,
353
- scrollLockTimeout: J,
354
- container: fe,
355
- style: A,
356
- ...re
321
+ size: s = "medium",
322
+ resize: c = "content",
323
+ contentTransition: h = "auto",
324
+ backdrop: y = "auto",
325
+ backdropFrom: S,
326
+ drag: p = "content",
327
+ peekable: H = !1,
328
+ snapPoints: w,
329
+ defaultSnapPoint: B,
330
+ snapPositions: M,
331
+ defaultSnapPosition: k,
332
+ initialFocus: ee,
333
+ peekHeight: $,
334
+ closeThreshold: L,
335
+ scrollLockTimeout: te,
336
+ container: He,
337
+ style: O,
338
+ ...xe
357
339
  }) {
358
- const o = me("ModalContent"), { setCanPeek: q, setCanRenderHandle: F, setPlacement: K } = o, r = Mt(n), Q = j(null), X = j(null), Y = j(null), W = j(null), [Z, ie] = v(null), [he, ee] = v(
340
+ const o = Z("ModalContent"), { setCanPeek: oe, setCanRenderHandle: D, setPlacement: ue } = o, i = Mt(n), me = A(null), pe = A(null), ne = A(null), W = A(null), [E, fe] = l(null), [re, he] = l(
359
341
  null
360
- ), te = j(0), b = j(null), y = j(null), B = j(null), [U, I] = v(), D = f === "handle" || f === "content", w = r === "popup" && D && !!x?.length, u = qt({
361
- backdrop: m,
362
- canSnapPopup: w,
363
- placement: r,
342
+ ), [ge, be] = l(null), ae = A(0), f = A(null), g = A(null), x = A(null), [V, se] = l(), K = p === "handle" || p === "content", C = i === "popup" && K && !!M?.length, d = Xt({
343
+ backdrop: y,
344
+ canSnapPopup: C,
345
+ placement: i,
364
346
  presentationState: o.presentationState
365
- }), [V, L] = v(() => ({
366
- resolvedBackdrop: u,
347
+ }), [q, _] = l(() => ({
348
+ resolvedBackdrop: d,
367
349
  exiting: !1
368
- })), P = pe(
369
- () => qe(V, u),
370
- [V, u]
371
- ), oe = P.exiting, z = w && u === "hidden", ge = (r === "bottom" || w) && D, _ = r === "bottom" && ge && M, s = _ && G !== void 0 ? G : o.headerHeight > 0 ? o.headerHeight : void 0, g = r === "bottom" && l !== "fixed", ce = At(
372
- !!h?.length || g
373
- ), se = pe(() => {
374
- if (!(!h?.length || ce <= 0))
375
- return Rt({
376
- snapPoints: h,
377
- defaultSnapPoint: S,
378
- backdropFrom: C,
379
- viewportHeight: ce
350
+ })), P = Y(
351
+ () => ze(q, d),
352
+ [q, d]
353
+ ), ce = P.exiting, z = C && d === "hidden", ie = (i === "bottom" || C) && K, j = i === "bottom" && ie && H, a = j && $ !== void 0 ? $ : o.headerHeight > 0 ? o.headerHeight : void 0, m = i === "bottom" && c !== "fixed", ve = Nt(o.open), T = kt({
354
+ bodyNode: o.bodyNode,
355
+ enabled: o.open && i === "bottom",
356
+ footerHeight: o.footerHeight,
357
+ surfaceNode: E,
358
+ viewportGeometry: ve,
359
+ viewportNode: ge
360
+ }), G = i === "bottom" ? T.viewportGeometry : ve, ye = G?.height ?? 0, Qe = Y(() => {
361
+ if (!(!w?.length || ye <= 0))
362
+ return jt({
363
+ snapPoints: w,
364
+ defaultSnapPoint: B,
365
+ backdropFrom: S,
366
+ viewportHeight: ye
380
367
  });
381
- }, [C, S, h, ce]), E = r === "bottom" ? se : void 0, Ye = xt(o.open), [ke, Ze] = v(0), Ne = j(!1), et = E !== void 0 && g, He = g && ke > 0 ? ke : void 0, de = E ? et && He !== void 0 ? He : E.sheetHeight : He, tt = E && de !== void 0 ? Math.max(0, de - E.defaultHeight) : void 0, ot = de !== void 0, Me = Et({
382
- contentTransition: N,
383
- placement: r,
384
- resize: l
385
- }), nt = Me === "surface" ? "auto" : "none", at = Me === "sheet" ? "auto" : "none", De = o.bodyNode;
386
- wt({
387
- enabled: o.open && Me === "surface",
388
- node: he
389
- }), ye(() => {
390
- if (!g) {
391
- Ne.current = !1;
368
+ }, [S, B, w, ye]), R = i === "bottom" ? Qe : void 0, Xe = Ct(o.open), [Se, Ye] = l(0), ke = A(!1), Ze = R !== void 0 && m, Te = m && Se > 0 ? Se : void 0, U = R ? Ze && Te !== void 0 ? Te : R.sheetHeight : Te, et = R && U !== void 0 ? Math.max(0, U - R.defaultHeight) : void 0, tt = U !== void 0, Re = qt({
369
+ contentTransition: h,
370
+ placement: i,
371
+ resize: c
372
+ }), ot = Re === "surface" ? "auto" : "none", nt = Re === "sheet" ? "auto" : "none", Ee = o.bodyNode;
373
+ yt({
374
+ enabled: o.open && Re === "surface",
375
+ node: re
376
+ }), Me(() => {
377
+ if (!m) {
378
+ ke.current = !1;
392
379
  return;
393
380
  }
394
- const i = De?.firstElementChild;
395
- if (!i) {
396
- Ne.current = !1;
381
+ const r = Ee?.firstElementChild;
382
+ if (!r) {
383
+ ke.current = !1;
397
384
  return;
398
385
  }
399
- const H = () => {
400
- const ue = i.getBoundingClientRect().height, Se = Tt({
401
- contentHeight: ue,
402
- maxHeight: Dt(Z),
403
- snapHeight: E?.sheetHeight
404
- }), $e = Math.abs(ke - Se) > 0.5;
405
- Ne.current = $e, $e && Ze(Se);
386
+ const b = () => {
387
+ const Q = r.getBoundingClientRect().height, le = wt({
388
+ contentHeight: Q,
389
+ maxHeight: Kt(E),
390
+ snapHeight: R?.sheetHeight
391
+ }), qe = Math.abs(Se - le) > 0.5;
392
+ ke.current = qe, qe && Ye(le);
406
393
  };
407
- if (H(), typeof ResizeObserver > "u") return;
408
- const be = new ResizeObserver(H);
409
- return be.observe(i), () => be.disconnect();
394
+ if (b(), typeof ResizeObserver > "u") return;
395
+ const F = new ResizeObserver(b);
396
+ return F.observe(r), () => F.disconnect();
410
397
  }, [
411
- De,
412
- g,
413
- E?.sheetHeight,
414
- ke,
415
- ce,
416
- Z
417
- ]), ne(() => {
418
- K(r);
419
- }, [r, K]), ne(() => {
398
+ Ee,
399
+ m,
400
+ R?.sheetHeight,
401
+ Se,
402
+ ye,
403
+ E
404
+ ]), X(() => {
405
+ ue(i);
406
+ }, [i, ue]), X(() => {
420
407
  o.open || (W.current = null);
421
- }, [o.open]), ne(() => (q(_), () => q(!1)), [_, q]), ne(() => (F(ge), () => F(!1)), [ge, F]);
422
- const rt = k(
423
- () => Ne.current,
408
+ }, [o.open]), X(() => (oe(j), () => oe(!1)), [j, oe]), X(() => (D(ie), () => D(!1)), [ie, D]);
409
+ const rt = v(
410
+ () => ke.current,
424
411
  []
425
- ), Ee = o.bodyNode, Ae = o.setScrollState, it = k(() => {
426
- Ae(Je(Ee));
427
- }, [Ee, Ae]), Ie = E?.backdropFromHeight, [Ve, Le] = v(!1), ct = k((i) => {
428
- Le(!i);
412
+ ), Ve = o.bodyNode, je = o.setScrollState, at = v(() => {
413
+ je(Ht(Ve));
414
+ }, [Ve, je]), Ie = R?.backdropFromHeight, [$e, Le] = l(!1), st = v((r) => {
415
+ Le(!r);
429
416
  }, []);
430
- !o.open && Ve && Le(!1);
431
- const xe = Ie !== void 0 && Ve, { collapseBottomSheetToUndimmedSnap: Te, handlers: st } = Ht({
432
- enabled: f !== !1,
433
- drag: f,
417
+ !o.open && $e && Le(!1);
418
+ const Fe = Ie !== void 0 && $e, { collapseBottomSheetToUndimmedSnap: Be, handlers: ct } = St({
419
+ enabled: p !== !1 && !T.active,
420
+ drag: p,
434
421
  open: o.open,
435
- placement: r,
436
- surfaceMotionRef: Q,
437
- surfaceMotionNode: Z,
438
- backdropRef: Y,
422
+ placement: i,
423
+ surfaceMotionRef: me,
424
+ surfaceMotionNode: E,
425
+ backdropRef: ne,
439
426
  bodyNode: o.bodyNode,
440
- snapHeights: E?.snapHeights,
441
- sheetHeight: de,
427
+ snapHeights: R?.snapHeights,
428
+ sheetHeight: U,
442
429
  backdropFromHeight: Ie,
443
- onBackdropDimRestChange: ct,
444
- peekHeight: _ ? G : void 0,
445
- peekFallback: _ ? "header" : void 0,
430
+ onBackdropDimRestChange: st,
431
+ peekHeight: j ? $ : void 0,
432
+ peekFallback: j ? "header" : void 0,
446
433
  presentationState: o.presentationState,
447
434
  setPresentationState: o.setPresentationState,
448
435
  requestClose: o.requestClose,
449
436
  canCloseAttempt: o.canCloseAttempt,
450
437
  dismissible: !o.disablePointerDismissal && o.canDismissByBehavior({ reason: "drag-dismiss" }),
451
- backdropHidden: u === "hidden",
452
- visibleTranslate: tt,
438
+ backdropHidden: d === "hidden",
439
+ visibleTranslate: et,
453
440
  shouldDeferBottomSettle: rt,
454
- refreshScrollState: it,
455
- snapPositions: w ? x : void 0,
456
- defaultSnapPosition: p,
457
- closeThreshold: O,
458
- scrollLockTimeout: J,
441
+ refreshScrollState: at,
442
+ snapPositions: C ? M : void 0,
443
+ defaultSnapPosition: k,
444
+ closeThreshold: L,
445
+ scrollLockTimeout: te,
459
446
  popupSnapLayoutVersion: o.popupSnapLayoutVersion
460
- }), dt = k(
461
- (i) => {
462
- Q.current = i, ie(i), i && o.open && w && W.current !== i && (zt({
463
- defaultSnapPosition: p,
464
- node: i,
465
- snapPositions: x
466
- }), W.current = i);
447
+ }), it = v(
448
+ (r) => {
449
+ me.current = r, fe(r), r && o.open && C && W.current !== r && (Gt({
450
+ defaultSnapPosition: k,
451
+ node: r,
452
+ snapPositions: M
453
+ }), W.current = r);
467
454
  },
468
- [w, o.open, p, x]
469
- ), lt = k((i) => {
470
- X.current = i, ee(i);
455
+ [C, o.open, k, M]
456
+ ), dt = v((r) => {
457
+ pe.current = r, he(r);
471
458
  }, []);
472
- ne(() => {
473
- const i = o.closeAttemptFeedbackKey;
474
- if (i === 0 || r !== "popup" || te.current === i) {
475
- te.current = i, I(void 0);
459
+ X(() => {
460
+ const r = o.closeAttemptFeedbackKey, b = () => {
461
+ se(void 0), g.current = null;
462
+ };
463
+ if (r === 0) {
464
+ ae.current = r, b();
465
+ return;
466
+ }
467
+ if (i !== "popup") {
468
+ b();
476
469
  return;
477
470
  }
478
- const H = X.current;
479
- if (!H) return;
480
- te.current = i, b.current !== null && window.cancelAnimationFrame(b.current), y.current !== null && window.clearTimeout(y.current), I(void 0);
481
- const be = () => {
482
- I(void 0), y.current = null;
483
- }, ue = (Se) => {
484
- Se.target === H && Se.animationName === "oc-modal-reject-shake" && (H.removeEventListener("animationend", ue), y.current !== null && window.clearTimeout(y.current), be());
471
+ if (ae.current === r) {
472
+ b();
473
+ return;
474
+ }
475
+ const F = re;
476
+ if (!F) return;
477
+ ae.current = r, f.current !== null && window.cancelAnimationFrame(f.current), g.current !== null && window.clearTimeout(g.current), b();
478
+ const Q = (le) => {
479
+ le.target === F && $t.has(le.animationName) && (F.removeEventListener("animationend", Q), g.current !== null && window.clearTimeout(g.current), b());
485
480
  };
486
- return H.addEventListener("animationend", ue), b.current = window.requestAnimationFrame(() => {
487
- b.current = null, I("reject"), b.current = window.requestAnimationFrame(() => {
488
- b.current = null, y.current = window.setTimeout(() => {
489
- H.removeEventListener("animationend", ue), be();
490
- }, Vt(H));
481
+ return F.addEventListener("animationend", Q), f.current = window.requestAnimationFrame(() => {
482
+ f.current = null, se(r), f.current = window.requestAnimationFrame(() => {
483
+ f.current = null, g.current = window.setTimeout(() => {
484
+ F.removeEventListener("animationend", Q), b();
485
+ }, Wt(F));
491
486
  });
492
487
  }), () => {
493
- H.removeEventListener("animationend", ue), b.current !== null && (window.cancelAnimationFrame(b.current), b.current = null), y.current !== null && (window.clearTimeout(y.current), y.current = null);
488
+ F.removeEventListener("animationend", Q), f.current !== null && (window.cancelAnimationFrame(f.current), f.current = null), g.current !== null && (window.clearTimeout(g.current), g.current = null);
494
489
  };
495
- }, [o.closeAttemptFeedbackKey, r]);
496
- const ze = Pt(A), ut = {
497
- ...ze,
490
+ }, [o.closeAttemptFeedbackKey, i, re]);
491
+ const Oe = Lt(O), lt = {
492
+ ...Oe,
498
493
  ...o.headerHeight > 0 ? { "--oc-modal-header-height": `${o.headerHeight}px` } : {},
499
494
  ...o.footerHeight > 0 ? { "--oc-modal-footer-height": `${o.footerHeight}px` } : {},
500
- ...s !== void 0 ? { "--oc-modal-peek-height": `${s}px` } : {},
501
- ...de !== void 0 ? { "--oc-modal-sheet-height": `${de}px` } : {}
495
+ ...a !== void 0 ? { "--oc-modal-peek-height": `${a}px` } : {},
496
+ ...U !== void 0 ? { "--oc-modal-sheet-height": `${U}px` } : {}
502
497
  // `--oc-modal-translate-y` and the inline `height` are owned imperatively
503
498
  // by the drag hook: content-size transitions pin the surface to a canvas
504
499
  // height and compensate the translate in the same frame. Rendering the
505
500
  // height here would commit the new size before that compensation runs and
506
501
  // make the sheet jump a frame early. The managed sizing CSS rule renders
507
502
  // the resting height from `--oc-modal-sheet-height`.
508
- }, je = {
503
+ }, Ke = {
509
504
  // Each modal reserves one backdrop slot and one viewport slot.
510
- "--oc-modal-stack-offset": Ye * 2
511
- }, pt = o.headerHeight > 0 ? {
512
- ...A,
505
+ "--oc-modal-stack-offset": Xe * 2
506
+ }, ut = {
507
+ ...Ke,
508
+ "--_-modal-keyboard-inset": `${T.keyboardInset}px`,
509
+ "--_-modal-keyboard-inset-settled": `${T.settledKeyboardInset}px`,
510
+ ...G ? {
511
+ "--_-modal-viewport-height": `${G.height}px`,
512
+ "--_-modal-viewport-offset-left": `${G.offsetLeft}px`,
513
+ "--_-modal-viewport-offset-top": `${G.offsetTop}px`,
514
+ "--_-modal-viewport-width": `${G.width}px`
515
+ } : {}
516
+ }, mt = o.headerHeight > 0 ? {
517
+ ...O,
513
518
  "--oc-modal-header-height": `${o.headerHeight}px`
514
- } : A, mt = T === "content" ? Q : T, { setBackdropDismissalDisabled: Re, setBackgroundInteractive: Be } = o, ft = u !== "hidden" || oe;
515
- ye(() => {
516
- P !== V && L(P);
517
- }, [V, P]);
518
- const le = k(() => {
519
- B.current !== null && (window.clearTimeout(B.current), B.current = null);
520
- }, []), ve = k(() => {
521
- u === "hidden" && (le(), L((i) => {
522
- const H = qe(
523
- i,
524
- u
519
+ } : O, pt = xt({
520
+ contentNode: E,
521
+ initialFocus: ee,
522
+ modal: o.modal,
523
+ titleNode: o.titleNode
524
+ }), { setBackdropDismissalDisabled: Pe, setBackgroundInteractive: Ae } = o, ft = d !== "hidden" || ce;
525
+ Me(() => {
526
+ P !== q && _(P);
527
+ }, [q, P]);
528
+ const J = v(() => {
529
+ x.current !== null && (window.clearTimeout(x.current), x.current = null);
530
+ }, []), de = v(() => {
531
+ d === "hidden" && (J(), _((r) => {
532
+ const b = ze(
533
+ r,
534
+ d
525
535
  );
526
- return H.resolvedBackdrop !== "hidden" || !H.exiting ? H : {
527
- ...H,
536
+ return b.resolvedBackdrop !== "hidden" || !b.exiting ? b : {
537
+ ...b,
528
538
  exiting: !1
529
539
  };
530
540
  }));
531
- }, [le, u]);
532
- return ne(
541
+ }, [J, d]);
542
+ return X(
533
543
  () => () => {
534
- le();
544
+ J();
535
545
  },
536
- [le]
537
- ), ye(() => {
538
- if (!oe || u !== "hidden") return;
539
- const i = Y.current;
540
- if (!i) {
541
- B.current = window.setTimeout(ve, 0);
546
+ [J]
547
+ ), Me(() => {
548
+ if (!ce || d !== "hidden") return;
549
+ const r = ne.current;
550
+ if (!r) {
551
+ x.current = window.setTimeout(de, 0);
542
552
  return;
543
553
  }
544
- le(), B.current = window.setTimeout(
545
- ve,
546
- Lt(i)
554
+ J(), x.current = window.setTimeout(
555
+ de,
556
+ zt(r)
547
557
  );
548
558
  }, [
549
- le,
550
- ve,
551
- oe,
552
- u
553
- ]), ye(() => (Re(u === "hidden"), Be(z || xe), () => {
554
- Re(!1), Be(!1);
559
+ J,
560
+ de,
561
+ ce,
562
+ d
563
+ ]), Me(() => (Pe(d === "hidden"), Ae(z || Fe), () => {
564
+ Pe(!1), Ae(!1);
555
565
  }), [
556
- xe,
566
+ Fe,
557
567
  z,
558
- u,
559
- Re,
560
- Be
561
- ]), /* @__PURE__ */ ae($.Portal, { container: fe, children: [
562
- ft ? /* @__PURE__ */ d(
563
- $.Backdrop,
568
+ d,
569
+ Pe,
570
+ Ae
571
+ ]), /* @__PURE__ */ _e(I.Portal, { container: He, children: [
572
+ ft ? /* @__PURE__ */ u(
573
+ I.Backdrop,
564
574
  {
565
- ref: Y,
566
- className: c.backdrop,
575
+ ref: ne,
576
+ className: N.backdrop,
567
577
  "data-oc-part": "backdrop",
568
578
  "data-oc-component": "modal-backdrop",
569
- "data-oc-modal-backdrop": u,
570
- "data-oc-modal-backdrop-passthrough": xe ? "true" : void 0,
571
- "data-oc-modal-placement": r,
579
+ "data-oc-modal-backdrop": d,
580
+ "data-oc-modal-backdrop-passthrough": Fe ? "true" : void 0,
581
+ "data-oc-modal-placement": i,
572
582
  "data-oc-modal-presentation-state": o.presentationState,
573
- style: je,
574
- onTransitionCancel: (i) => {
575
- i.currentTarget === i.target && i.propertyName === "opacity" && ve();
583
+ style: Ke,
584
+ onTransitionCancel: (r) => {
585
+ r.currentTarget === r.target && r.propertyName === "opacity" && de();
576
586
  },
577
- onTransitionEnd: (i) => {
578
- i.currentTarget === i.target && i.propertyName === "opacity" && ve();
587
+ onTransitionEnd: (r) => {
588
+ r.currentTarget === r.target && r.propertyName === "opacity" && de();
579
589
  },
580
590
  onClick: () => {
581
591
  if (o.disablePointerDismissal) {
582
- if (Te()) return;
592
+ if (Be()) return;
583
593
  o.notifyCloseAttemptRejected({ reason: "backdrop-press" });
584
594
  return;
585
595
  }
586
596
  if (!o.canDismissByBehavior({ reason: "backdrop-press" })) {
587
- if (Te()) return;
597
+ if (Be()) return;
588
598
  o.notifyCloseAttemptRejected({ reason: "backdrop-press" });
589
599
  return;
590
600
  }
591
- if (r === "bottom" && _) {
601
+ if (i === "bottom" && j) {
592
602
  if (o.presentationState === "visible") {
593
- if (Te()) return;
603
+ if (Be()) return;
594
604
  o.setPresentationState("peeked");
595
605
  }
596
606
  return;
@@ -599,427 +609,252 @@ function _t({
599
609
  }
600
610
  }
601
611
  ) : null,
602
- /* @__PURE__ */ d(
603
- $.Viewport,
612
+ /* @__PURE__ */ u(
613
+ I.Viewport,
604
614
  {
605
- className: c.viewport,
615
+ ref: be,
616
+ className: N.viewport,
606
617
  "data-oc-part": "viewport",
607
618
  "data-oc-component": "modal-viewport",
608
- "data-oc-modal-placement": r,
609
- style: je,
610
- children: /* @__PURE__ */ ae(
611
- $.Popup,
619
+ "data-oc-modal-placement": i,
620
+ "data-oc-modal-keyboard-avoiding": T.active ? "true" : void 0,
621
+ style: ut,
622
+ children: /* @__PURE__ */ u(
623
+ I.Popup,
612
624
  {
613
- ...re,
614
- ...st,
615
- ref: dt,
616
- initialFocus: mt,
617
- className: R(
618
- c.surfaceMotion,
619
- c[a],
620
- e
625
+ ...xe,
626
+ ...ct,
627
+ ref: it,
628
+ initialFocus: pt,
629
+ className: Ne(
630
+ N.surfaceMotion,
631
+ N[s],
632
+ e,
633
+ V === void 0 ? void 0 : V % 2 === 0 ? N.feedbackEven : N.feedbackOdd
621
634
  ),
622
635
  "data-oc-part": "surface-motion",
623
636
  "data-oc-component": "modal-content",
624
- "data-oc-modal-backdrop": u,
637
+ "data-oc-modal-backdrop": d,
625
638
  "data-oc-variant": n,
626
- "data-oc-size": a,
627
- "data-oc-resize": l,
628
- "data-oc-modal-feedback": r === "popup" ? U : void 0,
629
- "data-oc-modal-placement": r,
630
- "data-oc-modal-snapping": E || w ? "true" : void 0,
631
- "data-oc-modal-sheet-sizing": ot ? "managed" : void 0,
632
- "data-oc-modal-sheet-transition": at === "auto" ? "auto" : void 0,
633
- style: ut,
634
- children: [
635
- r === "bottom" ? /* @__PURE__ */ d(
639
+ "data-oc-size": s,
640
+ "data-oc-resize": c,
641
+ "data-oc-modal-feedback": i === "popup" && V !== void 0 ? "reject" : void 0,
642
+ "data-oc-modal-placement": i,
643
+ "data-oc-modal-snapping": R || C ? "true" : void 0,
644
+ "data-oc-modal-sheet-sizing": tt ? "managed" : void 0,
645
+ "data-oc-modal-sheet-transition": nt === "auto" ? "auto" : void 0,
646
+ style: lt,
647
+ children: /* @__PURE__ */ _e(Vt, { container: E, children: [
648
+ i === "bottom" ? /* @__PURE__ */ u(
636
649
  "div",
637
650
  {
638
651
  "aria-hidden": "true",
639
- className: R(
640
- c.bottomFill,
641
- c[a],
652
+ className: Ne(
653
+ N.bottomFill,
654
+ N[s],
642
655
  e
643
656
  ),
644
657
  "data-oc-part": "bottom-fill",
645
658
  "data-oc-component": "modal-bottom-fill",
646
- "data-oc-size": a,
647
- style: ze
659
+ "data-oc-size": s,
660
+ style: Oe
648
661
  }
649
662
  ) : null,
650
- /* @__PURE__ */ d(
651
- "div",
663
+ /* @__PURE__ */ u(
664
+ Ft,
652
665
  {
653
- ref: lt,
654
- className: R(
655
- c.surface,
656
- c[l],
657
- e
658
- ),
659
- "data-oc-part": "surface",
660
- "data-oc-variant": n,
661
- "data-oc-size": a,
662
- "data-oc-resize": l,
663
- "data-oc-content-transition": nt === "auto" ? "auto" : void 0,
664
- "data-oc-modal-placement": r,
665
- "data-oc-scrollable": o.scrollState.canScroll ? "true" : "false",
666
- style: pt,
666
+ ref: dt,
667
+ className: e,
668
+ contentTransition: ot === "auto" ? "auto" : void 0,
669
+ placement: i,
670
+ resize: c,
671
+ scrollable: o.scrollState.canScroll,
672
+ size: s,
673
+ style: mt,
674
+ variant: n,
667
675
  children: t
668
676
  }
669
677
  )
670
- ]
678
+ ] })
671
679
  }
672
680
  )
673
681
  }
674
682
  )
675
683
  ] });
676
684
  }
677
- function Gt({
685
+ function to({
678
686
  className: e = "",
679
687
  title: t,
680
688
  children: n,
681
- leadingContent: a,
682
- trailingContent: l,
683
- closeLabel: N = "닫기",
684
- closeButton: m = !0,
685
- handle: C = !0,
686
- ref: f,
687
- ...M
689
+ leadingContent: s,
690
+ trailingContent: c,
691
+ bottomContent: h,
692
+ closeLabel: y = "닫기",
693
+ closeButton: S = !0,
694
+ handle: p = !0,
695
+ ref: H,
696
+ ...w
688
697
  }) {
689
- const h = me("ModalHeader"), { setHeaderNode: S, scrollState: x } = h, p = pe(
690
- () => Fe(S, f),
691
- [f, S]
692
- ), T = Qe(a);
693
- return /* @__PURE__ */ ae(
694
- bt,
698
+ const B = Z("ModalHeader"), { setHeaderNode: M, setTitleNode: k, scrollState: ee } = B, $ = Y(
699
+ () => De(M, H),
700
+ [H, M]
701
+ ), L = Y(
702
+ () => De(k),
703
+ [k]
704
+ );
705
+ return /* @__PURE__ */ u(
706
+ At,
695
707
  {
696
- ...M,
697
- as: "header",
698
- ref: p,
699
- backdrop: "compact",
700
- className: R(c.header, e),
701
- backColor: "var(--oc-color-theme-background-elevated-normal)",
702
- frontColor: "transparent",
703
- "data-oc-part": "header",
704
- "data-oc-component": "modal-header",
705
- variant: "strong",
706
- "data-oc-sticky": x.scrolledFromTop ? "true" : "false",
707
- children: [
708
- C && h.canRenderHandle ? /* @__PURE__ */ d(
709
- "div",
710
- {
711
- "aria-hidden": "true",
712
- className: c.handle,
713
- "data-oc-part": "handle"
714
- }
715
- ) : null,
716
- /* @__PURE__ */ ae(
717
- "div",
718
- {
719
- className: c.headerInner,
720
- "data-oc-has-leading": T ? "true" : "false",
721
- "data-oc-part": "header-inner",
722
- children: [
723
- T ? /* @__PURE__ */ d("div", { className: c.headerLeading, "data-oc-part": "header-leading", children: a }) : null,
724
- /* @__PURE__ */ d("div", { className: c.headerTitle, "data-oc-part": "header-title", children: t ? /* @__PURE__ */ d($.Title, { children: t }) : n }),
725
- /* @__PURE__ */ ae("div", { className: c.headerTrailing, "data-oc-part": "header-trailing", children: [
726
- l,
727
- m ? /* @__PURE__ */ d(Xe, { label: N }) : null
728
- ] })
729
- ]
730
- }
731
- )
732
- ]
708
+ ...w,
709
+ ref: $,
710
+ bottomSlot: h,
711
+ className: e,
712
+ closeContent: S ? /* @__PURE__ */ u(Je, { label: y }) : null,
713
+ handleContent: p && B.canRenderHandle ? /* @__PURE__ */ u(
714
+ "div",
715
+ {
716
+ "aria-hidden": "true",
717
+ className: N.handle,
718
+ "data-oc-part": "handle"
719
+ }
720
+ ) : null,
721
+ leadingContent: s,
722
+ sticky: ee.scrolledFromTop,
723
+ titleContent: t ? /* @__PURE__ */ u(
724
+ I.Title,
725
+ {
726
+ ref: L,
727
+ className: N.initialFocusTitle,
728
+ tabIndex: -1,
729
+ children: t
730
+ }
731
+ ) : void 0,
732
+ trailingContent: c,
733
+ children: n
733
734
  }
734
735
  );
735
736
  }
736
- function Jt({
737
- className: e = "",
738
- title: t,
739
- children: n,
740
- expanded: a,
741
- defaultExpanded: l = !0,
742
- onExpandedChange: N,
743
- disabled: m = !1,
744
- forceMount: C = !0,
745
- handle: f = !0,
746
- headingLevel: M = 2,
747
- indicator: h,
748
- titleAsDialogTitle: S = !0,
749
- navigationProps: x,
750
- panelProps: p,
751
- panelContentProps: T,
752
- ref: G,
753
- style: O,
754
- ...J
737
+ function oo({
738
+ handle: e = !0,
739
+ ...t
755
740
  }) {
756
- const fe = me("ModalNavigationSection"), {
757
- canRenderHandle: A,
758
- notifyPopupSnapLayoutChange: re,
759
- placement: o
760
- } = fe, { height: q, setNode: F } = Pe(), K = ht(), [r, Q] = Ge({
761
- value: a,
762
- defaultValue: l,
763
- onChange: N
764
- }), [X, Y] = v(
765
- r ? "open" : "closed"
766
- ), W = `h${Wt(M) ? M : 2}`, {
767
- className: Z = "",
768
- id: ie,
769
- onClick: he,
770
- ...ee
771
- } = x ?? {}, {
772
- className: te = "",
773
- id: b,
774
- role: y,
775
- ...B
776
- } = p ?? {}, { className: U = "", ...I } = T ?? {}, D = ie ?? `${K}-navigation`, w = b ?? `${K}-panel`, u = `${K}-dialog-title`, V = Qe(t), L = f && A, P = q > 0 ? {
777
- ...O,
778
- "--oc-modal-navigation-block-size": `${q}px`
779
- } : O, oe = k(
780
- (z) => {
781
- Y(z), o === "popup" && re();
782
- },
783
- [re, o]
784
- );
785
- return /* @__PURE__ */ ae(
786
- "section",
741
+ const n = Z("ModalNavigationSection"), {
742
+ canRenderHandle: s,
743
+ notifyPopupSnapLayoutChange: c,
744
+ placement: h
745
+ } = n;
746
+ return /* @__PURE__ */ u(
747
+ Dt,
787
748
  {
788
- ref: G,
789
- className: R(c.navigationSection, e),
790
- style: P,
791
- ...J,
792
- "data-oc-component": "modal-navigation-section",
793
- "data-oc-motion-state": X,
794
- "data-oc-state": r ? "open" : "closed",
795
- children: [
796
- S && V ? /* @__PURE__ */ d(
797
- $.Title,
798
- {
799
- className: c.navigationDialogTitle,
800
- id: u,
801
- children: t
802
- }
803
- ) : null,
804
- L ? /* @__PURE__ */ d(
805
- "div",
806
- {
807
- "aria-hidden": "true",
808
- className: c.handle,
809
- "data-oc-part": "handle"
810
- }
811
- ) : null,
812
- /* @__PURE__ */ d(W, { className: c.navigationHeading, "data-oc-part": "heading", children: /* @__PURE__ */ ae(
813
- "button",
814
- {
815
- ...ee,
816
- ref: F,
817
- id: D,
818
- className: R(c.navigation, Z),
819
- type: "button",
820
- disabled: m,
821
- "aria-disabled": m ? "true" : ee["aria-disabled"],
822
- "aria-expanded": r,
823
- "aria-controls": w,
824
- onClick: (z) => {
825
- he?.(z), !(z.defaultPrevented || m) && Q(!r);
826
- },
827
- "data-oc-component": "modal-navigation",
828
- "data-oc-part": "navigation",
829
- "data-oc-state": r ? "open" : "closed",
830
- children: [
831
- /* @__PURE__ */ d("span", { className: c.navigationTitle, "data-oc-part": "title", children: t }),
832
- h === void 0 ? /* @__PURE__ */ d(
833
- kt,
834
- {
835
- className: c.navigationIndicator,
836
- open: r
837
- }
838
- ) : h ? /* @__PURE__ */ d(
839
- "span",
840
- {
841
- className: c.navigationIndicator,
842
- "data-oc-part": "indicator",
843
- "data-oc-state": r ? "open" : "closed",
844
- children: /* @__PURE__ */ d("span", { "data-oc-part": "indicator-frame", children: Nt(h) })
845
- }
846
- ) : null,
847
- m ? null : /* @__PURE__ */ d(yt, { variant: "light" })
848
- ]
849
- }
850
- ) }),
851
- /* @__PURE__ */ d(
852
- vt,
853
- {
854
- className: R(c.navigationPanel, te),
855
- open: r,
856
- forceMount: C,
857
- intent: "expand",
858
- measureBlockSize: "rendered",
859
- onMotionStateChange: oe,
860
- contentProps: {
861
- className: c.navigationPanelFrame,
862
- "data-oc-part": "panel-inner"
863
- },
864
- ...B,
865
- "aria-hidden": r ? void 0 : !0,
866
- "aria-labelledby": D,
867
- id: w,
868
- inert: r ? void 0 : !0,
869
- role: y ?? "region",
870
- "data-oc-component": "modal-navigation-panel",
871
- "data-oc-state": r ? "open" : "closed",
872
- children: /* @__PURE__ */ d(
873
- Ue,
874
- {
875
- className: c.navigationPanelScroll,
876
- "data-oc-component": "modal-navigation-panel-scroll-area",
877
- "data-oc-part": "panel-scroll-area",
878
- children: /* @__PURE__ */ d(
879
- _e,
880
- {
881
- ...I,
882
- className: R(
883
- c.navigationPanelInner,
884
- U
885
- ),
886
- "data-oc-component": "modal-navigation-panel-content",
887
- children: n
888
- }
889
- )
890
- }
891
- )
892
- }
893
- )
894
- ]
749
+ ...t,
750
+ canRenderHandle: e && s,
751
+ onPanelMotionStateChange: () => {
752
+ h === "popup" && c();
753
+ }
895
754
  }
896
755
  );
897
756
  }
898
- function Qt({
757
+ function no({
899
758
  className: e = "",
900
759
  children: t,
901
760
  layout: n = "content",
902
- containerClassName: a = "",
903
- containerProps: l,
904
- ref: N,
905
- ...m
761
+ containerClassName: s = "",
762
+ containerProps: c,
763
+ ref: h,
764
+ ...y
906
765
  }) {
907
- const C = me("ModalBody"), { bodyNode: f, setBodyNode: M, setScrollState: h } = C, S = k(
908
- (p) => {
909
- h(Je(p));
910
- },
911
- [h]
912
- ), x = pe(
913
- () => Fe(M, N, S),
914
- [N, M, S]
915
- );
916
- return ne(() => {
917
- const p = f;
918
- if (!p || (S(p), typeof ResizeObserver > "u")) return;
919
- const T = new ResizeObserver(() => S(p));
920
- return T.observe(p), p.firstElementChild && T.observe(p.firstElementChild), () => T.disconnect();
921
- }, [f, S]), /* @__PURE__ */ d(
922
- Ue,
766
+ const S = Z("ModalBody"), { bodyNode: p, setBodyNode: H, setScrollState: w } = S, { setBodyRef: B, updateScrollState: M } = Tt({
767
+ bodyNode: p,
768
+ bodyRef: h,
769
+ setBodyNode: H,
770
+ setScrollState: w
771
+ });
772
+ return /* @__PURE__ */ u(
773
+ Rt,
923
774
  {
924
- ...m,
925
- className: R(c.body, e),
926
- "data-oc-part": "body",
927
- "data-oc-component": "modal-body",
928
- children: /* @__PURE__ */ d(
929
- _e,
930
- {
931
- ref: x,
932
- className: c.bodyContainer,
933
- "data-oc-part": "body-container",
934
- "data-oc-component": "modal-body-container",
935
- onScroll: (p) => {
936
- l?.onScroll?.(p), S(p.currentTarget);
937
- },
938
- children: /* @__PURE__ */ d(
939
- "section",
940
- {
941
- ...l,
942
- className: R(c.bodyContent, a),
943
- "data-oc-part": "body-content",
944
- "data-oc-component": "modal-body-content",
945
- "data-oc-layout": n,
946
- children: t
947
- }
948
- )
775
+ bodyContainerProps: {
776
+ ref: B,
777
+ onScroll: (k) => {
778
+ c?.onScroll?.(k), M(k.currentTarget);
949
779
  }
950
- )
780
+ },
781
+ bodyContentProps: { ...c, className: s },
782
+ layout: n,
783
+ scrollAreaProps: { ...y, className: e },
784
+ children: t
951
785
  }
952
786
  );
953
787
  }
954
- function Xt({
788
+ function ro({
955
789
  className: e = "",
956
790
  children: t,
957
791
  background: n = "auto",
958
- ref: a,
959
- ...l
792
+ ref: s,
793
+ ...c
960
794
  }) {
961
- const N = me("ModalFooter"), { scrollState: m, setFooterNode: C } = N, f = pe(
962
- () => Fe(C, a),
963
- [a, C]
964
- ), M = n === !0 || n === "auto" && m.canScroll && !m.scrolledToBottom;
965
- return /* @__PURE__ */ d(
966
- "footer",
795
+ const h = Z("ModalFooter"), { scrollState: y, setFooterNode: S } = h, p = Y(
796
+ () => De(S, s),
797
+ [s, S]
798
+ ), H = Bt(
799
+ n,
800
+ y
801
+ );
802
+ return /* @__PURE__ */ u(
803
+ Pt,
967
804
  {
968
- ...l,
969
- ref: f,
970
- className: R(c.footer, e),
971
- "data-oc-part": "footer",
972
- "data-oc-component": "modal-footer",
973
- "data-oc-background": M ? "true" : "false",
805
+ ...c,
806
+ ref: p,
807
+ backgroundActive: H,
808
+ className: e,
974
809
  children: t
975
810
  }
976
811
  );
977
812
  }
978
- function Xe({
813
+ function Je({
979
814
  className: e = "",
980
- children: t = /* @__PURE__ */ d(gt, {}),
815
+ children: t = /* @__PURE__ */ u(ht, {}),
981
816
  label: n = "닫기",
982
- size: a = 24,
983
- disabled: l,
984
- onClick: N,
985
- ...m
817
+ size: s = 24,
818
+ disabled: c,
819
+ onClick: h,
820
+ ...y
986
821
  }) {
987
- const C = me("ModalClose");
988
- return /* @__PURE__ */ d(
989
- St,
822
+ const S = Z("ModalClose");
823
+ return /* @__PURE__ */ u(
824
+ gt,
990
825
  {
991
- ...m,
992
- className: R(c.close, e),
993
- "aria-label": m["aria-label"] ?? n,
826
+ ...y,
827
+ className: Ne(N.close, e),
828
+ "aria-label": y["aria-label"] ?? n,
994
829
  "data-oc-part": "close",
995
830
  "data-oc-component": "modal-close",
996
- disabled: l,
997
- onClick: (f) => {
998
- N?.(f), !f.defaultPrevented && !l && C.requestClose({ reason: "close-button" });
831
+ disabled: c,
832
+ onClick: (p) => {
833
+ h?.(p), !p.defaultPrevented && !c && S.requestClose({ reason: "close-button" });
999
834
  },
1000
- size: a,
835
+ size: s,
1001
836
  children: t
1002
837
  }
1003
838
  );
1004
839
  }
1005
- const No = Object.assign(We, {
1006
- Root: We,
1007
- Trigger: Ut,
1008
- Content: _t,
1009
- Header: Gt,
1010
- NavigationSection: Jt,
1011
- Body: Qt,
1012
- Footer: Xt,
1013
- Close: Xe
840
+ const To = Object.assign(Ue, {
841
+ Root: Ue,
842
+ Trigger: Zt,
843
+ Content: eo,
844
+ Header: to,
845
+ NavigationSection: oo,
846
+ Body: no,
847
+ Footer: ro,
848
+ Close: Je
1014
849
  });
1015
850
  export {
1016
- Qt as ModalBody,
1017
- Xe as ModalClose,
1018
- _t as ModalContent,
1019
- Xt as ModalFooter,
1020
- Gt as ModalHeader,
1021
- Jt as ModalNavigationSection,
1022
- We as ModalRoot,
1023
- Ut as ModalTrigger,
1024
- No as default
851
+ no as ModalBody,
852
+ Je as ModalClose,
853
+ eo as ModalContent,
854
+ ro as ModalFooter,
855
+ to as ModalHeader,
856
+ oo as ModalNavigationSection,
857
+ Ue as ModalRoot,
858
+ Zt as ModalTrigger,
859
+ To as default
1025
860
  };