@orioncactuscorp/ui 1.14.0 → 1.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +116 -0
- package/README.md +65 -36
- package/dist/components/BackgroundIconButton/BackgroundIconButton.css +1 -1
- package/dist/components/Button/Button.css +1 -1
- package/dist/components/CheckMark/CheckMark.js +19 -17
- package/dist/components/Checkbox/Checkbox.css +1 -1
- package/dist/components/Checkbox/Checkbox.js +38 -36
- package/dist/components/FloatingWindow/FloatingWindow.js +138 -137
- package/dist/components/Interaction/Interaction.css +1 -1
- package/dist/components/Menu/Menu.css +1 -1
- package/dist/components/Menu/Menu.js +95 -87
- package/dist/components/Modal/Modal.css +1 -1
- package/dist/components/Modal/Modal.js +504 -488
- package/dist/components/Modal/Modal.module.scss.js +69 -62
- package/dist/components/Modal/keyboardSession.js +104 -0
- package/dist/components/Modal/snapPoints.js +95 -82
- package/dist/components/Modal/useModalDrag.js +587 -637
- package/dist/components/Modal/useModalKeyboardAvoidance.js +159 -0
- package/dist/components/Modal/useModalViewportGeometry.js +36 -0
- package/dist/components/PositionSnap/PositionSnap.css +1 -0
- package/dist/components/PositionSnap/PositionSnap.js +330 -0
- package/dist/components/PositionSnap/PositionSnap.module.scss.js +9 -0
- package/dist/components/PositionSnap/contexts.js +12 -0
- package/dist/components/PositionSnap/geometry.js +75 -0
- package/dist/components/PositionSnap/gesture.js +7 -0
- package/dist/components/PositionSnap/policy.js +60 -0
- package/dist/components/PositionSnap.d.ts +6 -0
- package/dist/components/PositionSnap.js +7 -0
- package/dist/components/ProgressIndicator/ProgressIndicator.css +1 -0
- package/dist/components/ProgressIndicator/ProgressIndicator.js +45 -0
- package/dist/components/ProgressIndicator/ProgressIndicator.module.scss.js +13 -0
- package/dist/components/ProgressIndicator.d.ts +6 -0
- package/dist/components/ProgressIndicator.js +4 -0
- package/dist/components/Radio/Radio.css +1 -1
- package/dist/components/Radio/Radio.js +26 -24
- package/dist/components/Switch/Switch.css +1 -1
- package/dist/components/Switch/Switch.js +18 -16
- package/dist/components/Tabs/Tabs.css +1 -1
- package/dist/components/Tooltip/Tooltip.css +1 -1
- package/dist/components/Tooltip/Tooltip.js +59 -56
- package/dist/components/Tooltip/Tooltip.module.scss.js +6 -4
- package/dist/components/internal/ModalPresentation.js +126 -124
- package/dist/components/internal/OverlayPortalContext.js +20 -0
- package/dist/index.js +133 -126
- package/dist/styles.css +12 -10
- package/dist/ui/src/components/CheckMark/CheckMark.d.ts +1 -1
- package/dist/ui/src/components/CheckMark/CheckMark.d.ts.map +1 -1
- package/dist/ui/src/components/CheckMark/types.d.ts +2 -1
- package/dist/ui/src/components/CheckMark/types.d.ts.map +1 -1
- package/dist/ui/src/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/ui/src/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/ui/src/components/Checkbox/types.d.ts +2 -1
- package/dist/ui/src/components/Checkbox/types.d.ts.map +1 -1
- package/dist/ui/src/components/FloatingWindow/FloatingWindow.d.ts.map +1 -1
- package/dist/ui/src/components/FloatingWindow/types.d.ts +1 -1
- package/dist/ui/src/components/FloatingWindow/types.d.ts.map +1 -1
- package/dist/ui/src/components/Interaction/index.d.ts +1 -1
- package/dist/ui/src/components/Interaction/index.d.ts.map +1 -1
- package/dist/ui/src/components/Interaction/types.d.ts +9 -1
- package/dist/ui/src/components/Interaction/types.d.ts.map +1 -1
- package/dist/ui/src/components/Menu/Menu.d.ts +2 -2
- package/dist/ui/src/components/Menu/Menu.d.ts.map +1 -1
- package/dist/ui/src/components/Menu/types.d.ts +9 -2
- package/dist/ui/src/components/Menu/types.d.ts.map +1 -1
- package/dist/ui/src/components/Modal/Modal.d.ts +1 -1
- package/dist/ui/src/components/Modal/Modal.d.ts.map +1 -1
- package/dist/ui/src/components/Modal/keyboardSession.d.ts +46 -0
- package/dist/ui/src/components/Modal/keyboardSession.d.ts.map +1 -0
- package/dist/ui/src/components/Modal/snapPoints.d.ts.map +1 -1
- package/dist/ui/src/components/Modal/types.d.ts +8 -1
- package/dist/ui/src/components/Modal/types.d.ts.map +1 -1
- package/dist/ui/src/components/Modal/useModalDrag.d.ts.map +1 -1
- package/dist/ui/src/components/Modal/useModalKeyboardAvoidance.d.ts +17 -0
- package/dist/ui/src/components/Modal/useModalKeyboardAvoidance.d.ts.map +1 -0
- package/dist/ui/src/components/Modal/useModalViewportGeometry.d.ts +9 -0
- package/dist/ui/src/components/Modal/useModalViewportGeometry.d.ts.map +1 -0
- package/dist/ui/src/components/PositionSnap/PositionSnap.d.ts +11 -0
- package/dist/ui/src/components/PositionSnap/PositionSnap.d.ts.map +1 -0
- package/dist/ui/src/components/PositionSnap/contexts.d.ts +17 -0
- package/dist/ui/src/components/PositionSnap/contexts.d.ts.map +1 -0
- package/dist/ui/src/components/PositionSnap/geometry.d.ts +31 -0
- package/dist/ui/src/components/PositionSnap/geometry.d.ts.map +1 -0
- package/dist/ui/src/components/PositionSnap/gesture.d.ts +2 -0
- package/dist/ui/src/components/PositionSnap/gesture.d.ts.map +1 -0
- package/dist/ui/src/components/PositionSnap/index.d.ts +3 -0
- package/dist/ui/src/components/PositionSnap/index.d.ts.map +1 -0
- package/dist/ui/src/components/PositionSnap/policy.d.ts +24 -0
- package/dist/ui/src/components/PositionSnap/policy.d.ts.map +1 -0
- package/dist/ui/src/components/PositionSnap/types.d.ts +31 -0
- package/dist/ui/src/components/PositionSnap/types.d.ts.map +1 -0
- package/dist/ui/src/components/ProgressIndicator/ProgressIndicator.d.ts +4 -0
- package/dist/ui/src/components/ProgressIndicator/ProgressIndicator.d.ts.map +1 -0
- package/dist/ui/src/components/ProgressIndicator/index.d.ts +3 -0
- package/dist/ui/src/components/ProgressIndicator/index.d.ts.map +1 -0
- package/dist/ui/src/components/ProgressIndicator/types.d.ts +17 -0
- package/dist/ui/src/components/ProgressIndicator/types.d.ts.map +1 -0
- package/dist/ui/src/components/Radio/Radio.d.ts +1 -1
- package/dist/ui/src/components/Radio/Radio.d.ts.map +1 -1
- package/dist/ui/src/components/Radio/types.d.ts +2 -1
- package/dist/ui/src/components/Radio/types.d.ts.map +1 -1
- package/dist/ui/src/components/Switch/Switch.d.ts +1 -1
- package/dist/ui/src/components/Switch/Switch.d.ts.map +1 -1
- package/dist/ui/src/components/Switch/types.d.ts +2 -1
- package/dist/ui/src/components/Switch/types.d.ts.map +1 -1
- package/dist/ui/src/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/ui/src/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/ui/src/components/Tooltip/types.d.ts +6 -0
- package/dist/ui/src/components/Tooltip/types.d.ts.map +1 -1
- package/dist/ui/src/components/internal/ModalPresentation.d.ts +2 -1
- package/dist/ui/src/components/internal/ModalPresentation.d.ts.map +1 -1
- package/dist/ui/src/components/internal/OverlayPortalContext.d.ts +10 -0
- package/dist/ui/src/components/internal/OverlayPortalContext.d.ts.map +1 -0
- package/dist/ui/src/index.d.ts +5 -1
- package/dist/ui/src/index.d.ts.map +1 -1
- package/docs/api-conventions.md +4 -0
- package/docs/overlay-stacking.md +48 -0
- package/docs/responsive-foundation-profile.md +1 -1
- package/docs/scss-helpers.md +110 -5
- package/docs/selector-contract.md +77 -2
- package/docs/tokens.md +2 -0
- package/package.json +1 -1
- package/src/scss/foundations/atomic.scss +9 -8
- package/src/scss/index.scss +2 -0
- package/src/scss/mixins/_fluid.scss +57 -0
- package/src/scss/mixins/_fluid.test.ts +87 -0
- package/src/scss/mixins/_gradient.scss +99 -0
- package/src/scss/mixins/_gradient.test.ts +111 -0
- package/src/scss/mixins/_responsive.scss +2 -1
- package/src/scss/mixins/_typo.scss +2 -1
- package/src/scss/mixins/_units.scss +14 -0
- package/src/scss/mixins/_utils.scss +3 -22
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useCallback as
|
|
2
|
+
import { jsx as t, jsxs as g } from "react/jsx-runtime";
|
|
3
|
+
import { useCallback as B, useEffect as Z, useId as _, useState as aa } from "react";
|
|
4
4
|
import { Dialog as ea } from "@base-ui-components/react/dialog";
|
|
5
5
|
import { MotionExpand as oa } from "../../react/motion.js";
|
|
6
6
|
import { mergeRefs as ta } from "../../utils/mergeRefs.js";
|
|
7
7
|
import na from "../Background/Background.js";
|
|
8
8
|
import ra from "../Interaction/Interaction.js";
|
|
9
|
-
import { ScrollArea as
|
|
9
|
+
import { ScrollArea as z, ScrollAreaContainer as F } from "../ScrollArea/ScrollArea.js";
|
|
10
10
|
import { DisclosureIndicator as ia } from "./DisclosureIndicator.js";
|
|
11
11
|
import { normalizeSlotIcon as la } from "./slot.js";
|
|
12
12
|
import e from "../Modal/Modal.module.scss.js";
|
|
@@ -16,94 +16,95 @@ import { useMeasuredElement as sa } from "../Modal/useElementSize.js";
|
|
|
16
16
|
function d(...a) {
|
|
17
17
|
return a.filter(Boolean).join(" ");
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function C(a) {
|
|
20
20
|
return a != null && a !== !1 && a !== "";
|
|
21
21
|
}
|
|
22
|
-
function xa(a,
|
|
23
|
-
return a === !0 || a === "auto" &&
|
|
22
|
+
function xa(a, n) {
|
|
23
|
+
return a === !0 || a === "auto" && n.canScroll && !n.scrolledToBottom;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Ba({
|
|
26
26
|
bodyNode: a,
|
|
27
|
-
bodyRef:
|
|
28
|
-
setBodyNode:
|
|
29
|
-
setScrollState:
|
|
27
|
+
bodyRef: n,
|
|
28
|
+
setBodyNode: i,
|
|
29
|
+
setScrollState: l
|
|
30
30
|
}) {
|
|
31
|
-
const r =
|
|
31
|
+
const r = B(
|
|
32
32
|
(o) => {
|
|
33
|
-
|
|
33
|
+
l(ca(o));
|
|
34
34
|
},
|
|
35
|
-
[
|
|
36
|
-
),
|
|
35
|
+
[l]
|
|
36
|
+
), m = B(
|
|
37
37
|
(o) => {
|
|
38
|
-
ta(
|
|
38
|
+
ta(i, n, r)(o);
|
|
39
39
|
},
|
|
40
|
-
[
|
|
40
|
+
[n, i, r]
|
|
41
41
|
);
|
|
42
42
|
return Z(() => {
|
|
43
43
|
const o = a;
|
|
44
44
|
if (!o || (r(o), typeof ResizeObserver > "u")) return;
|
|
45
|
-
const
|
|
46
|
-
return
|
|
47
|
-
}, [a, r]), { setBodyRef:
|
|
45
|
+
const s = new ResizeObserver(() => r(o));
|
|
46
|
+
return s.observe(o), o.firstElementChild && s.observe(o.firstElementChild), () => s.disconnect();
|
|
47
|
+
}, [a, r]), { setBodyRef: m, updateScrollState: r };
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function za({
|
|
50
50
|
children: a,
|
|
51
|
-
className:
|
|
52
|
-
contentTransition:
|
|
53
|
-
placement:
|
|
51
|
+
className: n,
|
|
52
|
+
contentTransition: i,
|
|
53
|
+
placement: l,
|
|
54
54
|
ref: r,
|
|
55
|
-
resize:
|
|
55
|
+
resize: m,
|
|
56
56
|
scrollable: o,
|
|
57
|
-
size:
|
|
57
|
+
size: s,
|
|
58
58
|
style: p,
|
|
59
59
|
variant: u
|
|
60
60
|
}) {
|
|
61
|
-
return /* @__PURE__ */
|
|
61
|
+
return /* @__PURE__ */ t(
|
|
62
62
|
"div",
|
|
63
63
|
{
|
|
64
64
|
ref: r,
|
|
65
|
-
className: d(e.surface, e[
|
|
65
|
+
className: d(e.surface, e[m], n),
|
|
66
66
|
"data-oc-part": "surface",
|
|
67
67
|
"data-oc-variant": u,
|
|
68
|
-
"data-oc-size":
|
|
69
|
-
"data-oc-resize":
|
|
70
|
-
"data-oc-content-transition":
|
|
71
|
-
"data-oc-modal-placement":
|
|
68
|
+
"data-oc-size": s,
|
|
69
|
+
"data-oc-resize": m,
|
|
70
|
+
"data-oc-content-transition": i,
|
|
71
|
+
"data-oc-modal-placement": l,
|
|
72
72
|
"data-oc-scrollable": o ? "true" : "false",
|
|
73
73
|
style: p,
|
|
74
74
|
children: a
|
|
75
75
|
}
|
|
76
76
|
);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
function Fa({
|
|
79
|
+
bottomSlot: a,
|
|
80
|
+
children: n,
|
|
81
|
+
className: i = "",
|
|
81
82
|
closeContent: l,
|
|
82
|
-
dragEnabled:
|
|
83
|
-
handleContent:
|
|
84
|
-
leadingContent:
|
|
85
|
-
sticky:
|
|
86
|
-
titleContent:
|
|
87
|
-
trailingContent:
|
|
88
|
-
...
|
|
83
|
+
dragEnabled: r,
|
|
84
|
+
handleContent: m,
|
|
85
|
+
leadingContent: o,
|
|
86
|
+
sticky: s,
|
|
87
|
+
titleContent: p,
|
|
88
|
+
trailingContent: u,
|
|
89
|
+
...h
|
|
89
90
|
}) {
|
|
90
|
-
const v =
|
|
91
|
+
const v = C(o), N = C(a);
|
|
91
92
|
return /* @__PURE__ */ g(
|
|
92
93
|
na,
|
|
93
94
|
{
|
|
94
|
-
...
|
|
95
|
+
...h,
|
|
95
96
|
as: "header",
|
|
96
97
|
backdrop: "compact",
|
|
97
|
-
className: d(e.header,
|
|
98
|
+
className: d(e.header, i),
|
|
98
99
|
backColor: "var(--oc-color-theme-background-elevated-normal)",
|
|
99
100
|
frontColor: "transparent",
|
|
100
101
|
"data-oc-part": "header",
|
|
101
102
|
"data-oc-component": "modal-header",
|
|
102
103
|
variant: "strong",
|
|
103
|
-
"data-oc-draggable":
|
|
104
|
-
"data-oc-sticky":
|
|
104
|
+
"data-oc-draggable": r === void 0 ? void 0 : String(r),
|
|
105
|
+
"data-oc-sticky": s ? "true" : "false",
|
|
105
106
|
children: [
|
|
106
|
-
|
|
107
|
+
m,
|
|
107
108
|
/* @__PURE__ */ g(
|
|
108
109
|
"div",
|
|
109
110
|
{
|
|
@@ -111,65 +112,66 @@ function Pa({
|
|
|
111
112
|
"data-oc-has-leading": v ? "true" : "false",
|
|
112
113
|
"data-oc-part": "header-inner",
|
|
113
114
|
children: [
|
|
114
|
-
v ? /* @__PURE__ */
|
|
115
|
-
/* @__PURE__ */
|
|
115
|
+
v ? /* @__PURE__ */ t("div", { className: e.headerLeading, "data-oc-part": "header-leading", children: o }) : null,
|
|
116
|
+
/* @__PURE__ */ t("div", { className: e.headerTitle, "data-oc-part": "header-title", children: p ?? n }),
|
|
116
117
|
/* @__PURE__ */ g("div", { className: e.headerTrailing, "data-oc-part": "header-trailing", children: [
|
|
117
|
-
|
|
118
|
+
u,
|
|
118
119
|
l
|
|
119
120
|
] })
|
|
120
121
|
]
|
|
121
122
|
}
|
|
122
|
-
)
|
|
123
|
+
),
|
|
124
|
+
N ? /* @__PURE__ */ t("div", { className: e.headerBottom, "data-oc-part": "header-bottom", children: a }) : null
|
|
123
125
|
]
|
|
124
126
|
}
|
|
125
127
|
);
|
|
126
128
|
}
|
|
127
|
-
function
|
|
129
|
+
function Pa({
|
|
128
130
|
className: a = "",
|
|
129
|
-
title:
|
|
130
|
-
children:
|
|
131
|
-
expanded:
|
|
131
|
+
title: n,
|
|
132
|
+
children: i,
|
|
133
|
+
expanded: l,
|
|
132
134
|
defaultExpanded: r = !0,
|
|
133
|
-
onExpandedChange:
|
|
135
|
+
onExpandedChange: m,
|
|
134
136
|
disabled: o = !1,
|
|
135
|
-
forceMount:
|
|
137
|
+
forceMount: s = !0,
|
|
136
138
|
headingLevel: p = 2,
|
|
137
139
|
indicator: u,
|
|
138
|
-
titleAsDialogTitle:
|
|
139
|
-
navigationProps:
|
|
140
|
-
panelProps:
|
|
141
|
-
panelContentProps:
|
|
142
|
-
ref:
|
|
143
|
-
style:
|
|
140
|
+
titleAsDialogTitle: h = !0,
|
|
141
|
+
navigationProps: v,
|
|
142
|
+
panelProps: N,
|
|
143
|
+
panelContentProps: P,
|
|
144
|
+
ref: T,
|
|
145
|
+
style: S,
|
|
144
146
|
canRenderHandle: R,
|
|
145
|
-
handleProps:
|
|
147
|
+
handleProps: M,
|
|
146
148
|
onPanelMotionStateChange: E,
|
|
147
149
|
...H
|
|
148
150
|
}) {
|
|
149
|
-
const { height:
|
|
150
|
-
value:
|
|
151
|
+
const { height: y, setNode: $ } = sa(), b = _(), [c, j] = da({
|
|
152
|
+
value: l,
|
|
151
153
|
defaultValue: r,
|
|
152
|
-
onChange:
|
|
154
|
+
onChange: m
|
|
153
155
|
}), [D, L] = aa(
|
|
154
156
|
c ? "open" : "closed"
|
|
155
157
|
), O = `h${p >= 2 && p <= 6 ? p : 2}`, {
|
|
156
158
|
className: w = "",
|
|
157
159
|
id: A,
|
|
158
160
|
onClick: V,
|
|
159
|
-
...
|
|
160
|
-
} =
|
|
161
|
+
...I
|
|
162
|
+
} = v ?? {}, {
|
|
161
163
|
className: q = "",
|
|
162
164
|
id: G,
|
|
163
165
|
role: J,
|
|
164
166
|
...K
|
|
165
|
-
} =
|
|
166
|
-
...
|
|
167
|
-
"--oc-modal-navigation-block-size": `${
|
|
168
|
-
} :
|
|
167
|
+
} = N ?? {}, { className: Q = "", ...U } = P ?? {}, k = A ?? `${b}-navigation`, x = G ?? `${b}-panel`, W = `${b}-dialog-title`, X = C(n), Y = y > 0 ? {
|
|
168
|
+
...S,
|
|
169
|
+
"--oc-modal-navigation-block-size": `${y}px`
|
|
170
|
+
} : S;
|
|
169
171
|
return /* @__PURE__ */ g(
|
|
170
172
|
"section",
|
|
171
173
|
{
|
|
172
|
-
ref:
|
|
174
|
+
ref: T,
|
|
173
175
|
className: d(e.navigationSection, a),
|
|
174
176
|
style: Y,
|
|
175
177
|
...H,
|
|
@@ -177,38 +179,38 @@ function Ta({
|
|
|
177
179
|
"data-oc-motion-state": D,
|
|
178
180
|
"data-oc-state": c ? "open" : "closed",
|
|
179
181
|
children: [
|
|
180
|
-
|
|
182
|
+
h && X ? /* @__PURE__ */ t(
|
|
181
183
|
ea.Title,
|
|
182
184
|
{
|
|
183
185
|
className: e.navigationDialogTitle,
|
|
184
186
|
id: W,
|
|
185
|
-
children:
|
|
187
|
+
children: n
|
|
186
188
|
}
|
|
187
189
|
) : null,
|
|
188
|
-
R ? /* @__PURE__ */
|
|
190
|
+
R ? /* @__PURE__ */ t(
|
|
189
191
|
"div",
|
|
190
192
|
{
|
|
191
|
-
...
|
|
193
|
+
...M,
|
|
192
194
|
"aria-hidden": "true",
|
|
193
|
-
className: d(e.handle,
|
|
195
|
+
className: d(e.handle, M?.className),
|
|
194
196
|
"data-oc-part": "handle"
|
|
195
197
|
}
|
|
196
198
|
) : null,
|
|
197
|
-
/* @__PURE__ */
|
|
199
|
+
/* @__PURE__ */ t(O, { className: e.navigationHeading, "data-oc-part": "heading", children: /* @__PURE__ */ g(
|
|
198
200
|
"button",
|
|
199
201
|
{
|
|
200
|
-
...
|
|
202
|
+
...I,
|
|
201
203
|
ref: $,
|
|
202
|
-
id:
|
|
204
|
+
id: k,
|
|
203
205
|
className: d(
|
|
204
206
|
e.navigation,
|
|
205
207
|
w
|
|
206
208
|
),
|
|
207
209
|
type: "button",
|
|
208
210
|
disabled: o,
|
|
209
|
-
"aria-disabled": o ? "true" :
|
|
211
|
+
"aria-disabled": o ? "true" : I["aria-disabled"],
|
|
210
212
|
"aria-expanded": c,
|
|
211
|
-
"aria-controls":
|
|
213
|
+
"aria-controls": x,
|
|
212
214
|
onClick: (f) => {
|
|
213
215
|
V?.(f), !(f.defaultPrevented || o) && j(!c);
|
|
214
216
|
},
|
|
@@ -216,32 +218,32 @@ function Ta({
|
|
|
216
218
|
"data-oc-part": "navigation",
|
|
217
219
|
"data-oc-state": c ? "open" : "closed",
|
|
218
220
|
children: [
|
|
219
|
-
/* @__PURE__ */
|
|
220
|
-
u === void 0 ? /* @__PURE__ */
|
|
221
|
+
/* @__PURE__ */ t("span", { className: e.navigationTitle, "data-oc-part": "title", children: n }),
|
|
222
|
+
u === void 0 ? /* @__PURE__ */ t(
|
|
221
223
|
ia,
|
|
222
224
|
{
|
|
223
225
|
className: e.navigationIndicator,
|
|
224
226
|
open: c
|
|
225
227
|
}
|
|
226
|
-
) : u ? /* @__PURE__ */
|
|
228
|
+
) : u ? /* @__PURE__ */ t(
|
|
227
229
|
"span",
|
|
228
230
|
{
|
|
229
231
|
className: e.navigationIndicator,
|
|
230
232
|
"data-oc-part": "indicator",
|
|
231
233
|
"data-oc-state": c ? "open" : "closed",
|
|
232
|
-
children: /* @__PURE__ */
|
|
234
|
+
children: /* @__PURE__ */ t("span", { "data-oc-part": "indicator-frame", children: la(u) })
|
|
233
235
|
}
|
|
234
236
|
) : null,
|
|
235
|
-
o ? null : /* @__PURE__ */
|
|
237
|
+
o ? null : /* @__PURE__ */ t(ra, { variant: "light" })
|
|
236
238
|
]
|
|
237
239
|
}
|
|
238
240
|
) }),
|
|
239
|
-
/* @__PURE__ */
|
|
241
|
+
/* @__PURE__ */ t(
|
|
240
242
|
oa,
|
|
241
243
|
{
|
|
242
244
|
className: d(e.navigationPanel, q),
|
|
243
245
|
open: c,
|
|
244
|
-
forceMount:
|
|
246
|
+
forceMount: s,
|
|
245
247
|
intent: "expand",
|
|
246
248
|
measureBlockSize: "rendered",
|
|
247
249
|
onMotionStateChange: (f) => {
|
|
@@ -253,20 +255,20 @@ function Ta({
|
|
|
253
255
|
},
|
|
254
256
|
...K,
|
|
255
257
|
"aria-hidden": c ? void 0 : !0,
|
|
256
|
-
"aria-labelledby":
|
|
257
|
-
id:
|
|
258
|
+
"aria-labelledby": k,
|
|
259
|
+
id: x,
|
|
258
260
|
inert: c ? void 0 : !0,
|
|
259
261
|
role: J ?? "region",
|
|
260
262
|
"data-oc-component": "modal-navigation-panel",
|
|
261
263
|
"data-oc-state": c ? "open" : "closed",
|
|
262
|
-
children: /* @__PURE__ */
|
|
263
|
-
|
|
264
|
+
children: /* @__PURE__ */ t(
|
|
265
|
+
z,
|
|
264
266
|
{
|
|
265
267
|
className: e.navigationPanelScroll,
|
|
266
268
|
"data-oc-component": "modal-navigation-panel-scroll-area",
|
|
267
269
|
"data-oc-part": "panel-scroll-area",
|
|
268
|
-
children: /* @__PURE__ */
|
|
269
|
-
|
|
270
|
+
children: /* @__PURE__ */ t(
|
|
271
|
+
F,
|
|
270
272
|
{
|
|
271
273
|
...U,
|
|
272
274
|
className: d(
|
|
@@ -274,7 +276,7 @@ function Ta({
|
|
|
274
276
|
Q
|
|
275
277
|
),
|
|
276
278
|
"data-oc-component": "modal-navigation-panel-content",
|
|
277
|
-
children:
|
|
279
|
+
children: i
|
|
278
280
|
}
|
|
279
281
|
)
|
|
280
282
|
}
|
|
@@ -285,22 +287,22 @@ function Ta({
|
|
|
285
287
|
}
|
|
286
288
|
);
|
|
287
289
|
}
|
|
288
|
-
function
|
|
290
|
+
function Ta({
|
|
289
291
|
bodyContainerProps: a,
|
|
290
|
-
bodyContentProps:
|
|
291
|
-
children:
|
|
292
|
-
layout:
|
|
292
|
+
bodyContentProps: n,
|
|
293
|
+
children: i,
|
|
294
|
+
layout: l,
|
|
293
295
|
scrollAreaProps: r
|
|
294
296
|
}) {
|
|
295
|
-
return /* @__PURE__ */
|
|
296
|
-
|
|
297
|
+
return /* @__PURE__ */ t(
|
|
298
|
+
z,
|
|
297
299
|
{
|
|
298
300
|
...r,
|
|
299
301
|
className: d(e.body, r?.className),
|
|
300
302
|
"data-oc-part": "body",
|
|
301
303
|
"data-oc-component": "modal-body",
|
|
302
|
-
children: /* @__PURE__ */
|
|
303
|
-
|
|
304
|
+
children: /* @__PURE__ */ t(
|
|
305
|
+
F,
|
|
304
306
|
{
|
|
305
307
|
...a,
|
|
306
308
|
className: d(
|
|
@@ -309,18 +311,18 @@ function Ba({
|
|
|
309
311
|
),
|
|
310
312
|
"data-oc-part": "body-container",
|
|
311
313
|
"data-oc-component": "modal-body-container",
|
|
312
|
-
children: /* @__PURE__ */
|
|
314
|
+
children: /* @__PURE__ */ t(
|
|
313
315
|
"section",
|
|
314
316
|
{
|
|
315
|
-
...
|
|
317
|
+
...n,
|
|
316
318
|
className: d(
|
|
317
319
|
e.bodyContent,
|
|
318
|
-
|
|
320
|
+
n?.className
|
|
319
321
|
),
|
|
320
322
|
"data-oc-part": "body-content",
|
|
321
323
|
"data-oc-component": "modal-body-content",
|
|
322
|
-
"data-oc-layout":
|
|
323
|
-
children:
|
|
324
|
+
"data-oc-layout": l,
|
|
325
|
+
children: i
|
|
324
326
|
}
|
|
325
327
|
)
|
|
326
328
|
}
|
|
@@ -330,30 +332,30 @@ function Ba({
|
|
|
330
332
|
}
|
|
331
333
|
function Ra({
|
|
332
334
|
backgroundActive: a,
|
|
333
|
-
children:
|
|
334
|
-
className:
|
|
335
|
-
...
|
|
335
|
+
children: n,
|
|
336
|
+
className: i = "",
|
|
337
|
+
...l
|
|
336
338
|
}) {
|
|
337
|
-
return /* @__PURE__ */
|
|
339
|
+
return /* @__PURE__ */ t(
|
|
338
340
|
"footer",
|
|
339
341
|
{
|
|
340
|
-
...
|
|
341
|
-
className: d(e.footer,
|
|
342
|
+
...l,
|
|
343
|
+
className: d(e.footer, i),
|
|
342
344
|
"data-oc-part": "footer",
|
|
343
345
|
"data-oc-component": "modal-footer",
|
|
344
346
|
"data-oc-background": a ? "true" : "false",
|
|
345
|
-
children:
|
|
347
|
+
children: n
|
|
346
348
|
}
|
|
347
349
|
);
|
|
348
350
|
}
|
|
349
351
|
export {
|
|
350
|
-
|
|
352
|
+
Ta as ModalBodyFrame,
|
|
351
353
|
Ra as ModalFooterFrame,
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
354
|
+
Fa as ModalHeaderFrame,
|
|
355
|
+
Pa as ModalNavigationSectionFrame,
|
|
356
|
+
za as ModalSurfaceFrame,
|
|
357
|
+
C as hasRenderableModalContent,
|
|
356
358
|
d as mergeModalClassName,
|
|
357
359
|
xa as resolveModalFooterBackground,
|
|
358
|
-
|
|
360
|
+
Ba as useModalBodyScrollState
|
|
359
361
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { useContext as n, createContext as a } from "react";
|
|
4
|
+
const t = a(
|
|
5
|
+
void 0
|
|
6
|
+
);
|
|
7
|
+
function u({
|
|
8
|
+
children: r,
|
|
9
|
+
container: o
|
|
10
|
+
}) {
|
|
11
|
+
return /* @__PURE__ */ e(t.Provider, { value: o, children: r });
|
|
12
|
+
}
|
|
13
|
+
function l(r) {
|
|
14
|
+
const o = n(t);
|
|
15
|
+
return r === void 0 ? o : r;
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
u as OverlayPortalProvider,
|
|
19
|
+
l as useOverlayPortalContainer
|
|
20
|
+
};
|