commerce-toolkit 0.1.0 → 0.1.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.
Files changed (57) hide show
  1. package/dist/components/side-panel/index.d.ts +3 -0
  2. package/dist/components/side-panel/index.d.ts.map +1 -0
  3. package/dist/components/side-panel/primitives/side-panel-body.d.ts +4 -0
  4. package/dist/components/side-panel/primitives/side-panel-body.d.ts.map +1 -0
  5. package/dist/components/side-panel/primitives/side-panel-close.d.ts +5 -0
  6. package/dist/components/side-panel/primitives/side-panel-close.d.ts.map +1 -0
  7. package/dist/components/side-panel/primitives/side-panel-content.d.ts +5 -0
  8. package/dist/components/side-panel/primitives/side-panel-content.d.ts.map +1 -0
  9. package/dist/components/side-panel/primitives/side-panel-header.d.ts +4 -0
  10. package/dist/components/side-panel/primitives/side-panel-header.d.ts.map +1 -0
  11. package/dist/components/side-panel/primitives/side-panel-overlay.d.ts +5 -0
  12. package/dist/components/side-panel/primitives/side-panel-overlay.d.ts.map +1 -0
  13. package/dist/components/side-panel/primitives/side-panel-portal.d.ts +5 -0
  14. package/dist/components/side-panel/primitives/side-panel-portal.d.ts.map +1 -0
  15. package/dist/components/side-panel/primitives/side-panel-root.d.ts +5 -0
  16. package/dist/components/side-panel/primitives/side-panel-root.d.ts.map +1 -0
  17. package/dist/components/side-panel/primitives/side-panel-title.d.ts +5 -0
  18. package/dist/components/side-panel/primitives/side-panel-title.d.ts.map +1 -0
  19. package/dist/components/side-panel/primitives/side-panel-trigger.d.ts +5 -0
  20. package/dist/components/side-panel/primitives/side-panel-trigger.d.ts.map +1 -0
  21. package/dist/components/side-panel/primitives.d.ts +10 -0
  22. package/dist/components/side-panel/primitives.d.ts.map +1 -0
  23. package/dist/components/side-panel/side-panel.d.ts +28 -0
  24. package/dist/components/side-panel/side-panel.d.ts.map +1 -0
  25. package/dist/{dropdown-menu-node-C7Z-zRyr.js → dropdown-menu-node-4Pe3uXjC.js} +2 -2
  26. package/dist/{dropdown-menu-node-C7Z-zRyr.js.map → dropdown-menu-node-4Pe3uXjC.js.map} +1 -1
  27. package/dist/{dropdown-menu-node-BB7FJzMX.cjs → dropdown-menu-node-zOplWIzZ.cjs} +2 -2
  28. package/dist/{dropdown-menu-node-BB7FJzMX.cjs.map → dropdown-menu-node-zOplWIzZ.cjs.map} +1 -1
  29. package/dist/dropdown-menu.cjs +1 -1
  30. package/dist/dropdown-menu.js +1 -1
  31. package/dist/index-BppAzNV8.cjs +6 -0
  32. package/dist/index-BppAzNV8.cjs.map +1 -0
  33. package/dist/index-ChSlzMYI.js +242 -0
  34. package/dist/index-ChSlzMYI.js.map +1 -0
  35. package/dist/index.cjs +2 -2
  36. package/dist/index.js +4 -4
  37. package/dist/modal-title-CuB6IpxH.cjs +2 -0
  38. package/dist/modal-title-CuB6IpxH.cjs.map +1 -0
  39. package/dist/modal-title-MIH3Xsp2.js +58 -0
  40. package/dist/modal-title-MIH3Xsp2.js.map +1 -0
  41. package/dist/modal.cjs +1 -1
  42. package/dist/modal.js +1 -1
  43. package/dist/{scroll-area-corner-DLTYMMl-.js → scroll-area-corner-Bq7PB1XK.js} +2 -2
  44. package/dist/{scroll-area-corner-DLTYMMl-.js.map → scroll-area-corner-Bq7PB1XK.js.map} +1 -1
  45. package/dist/{scroll-area-corner-CEc2oMZt.cjs → scroll-area-corner-DsyetkPH.cjs} +2 -2
  46. package/dist/{scroll-area-corner-CEc2oMZt.cjs.map → scroll-area-corner-DsyetkPH.cjs.map} +1 -1
  47. package/dist/scroll-area.cjs +1 -1
  48. package/dist/scroll-area.js +1 -1
  49. package/dist/side-panel.cjs +2 -0
  50. package/dist/side-panel.cjs.map +1 -0
  51. package/dist/side-panel.js +86 -0
  52. package/dist/side-panel.js.map +1 -0
  53. package/package.json +11 -1
  54. package/dist/modal-title-B2Yr1KDi.js +0 -288
  55. package/dist/modal-title-B2Yr1KDi.js.map +0 -1
  56. package/dist/modal-title-CpD_Fors.cjs +0 -6
  57. package/dist/modal-title-CpD_Fors.cjs.map +0 -1
@@ -1,288 +0,0 @@
1
- import { jsx as s, jsxs as E, Fragment as O } from "react/jsx-runtime";
2
- import { c as y } from "./utils-BOGlfttm.js";
3
- import * as i from "react";
4
- import { c as g } from "./index-B695uy69.js";
5
- import { u as h } from "./index-DLcqcWxM.js";
6
- import { c as H, P as _, a as V } from "./index-Df-2-3xv.js";
7
- import { u as R } from "./index-9BYBSfjb.js";
8
- import { u as q } from "./index-Cn_ZXVPF.js";
9
- import { R as z, h as K, u as U, F as Y, D as Z } from "./Combination-49q9aXeT.js";
10
- import { P as J } from "./index-CM8VpmHn.js";
11
- import { P as p, c as Q } from "./index-BzgbBl8b.js";
12
- var v = "Dialog", [b] = H(v), [X, u] = b(v), I = (e) => {
13
- const {
14
- __scopeDialog: t,
15
- children: o,
16
- open: a,
17
- defaultOpen: r,
18
- onOpenChange: n,
19
- modal: c = !0
20
- } = e, l = i.useRef(null), f = i.useRef(null), [D, C] = q({
21
- prop: a,
22
- defaultProp: r ?? !1,
23
- onChange: n,
24
- caller: v
25
- });
26
- return /* @__PURE__ */ s(
27
- X,
28
- {
29
- scope: t,
30
- triggerRef: l,
31
- contentRef: f,
32
- contentId: R(),
33
- titleId: R(),
34
- descriptionId: R(),
35
- open: D,
36
- onOpenChange: C,
37
- onOpenToggle: i.useCallback(() => C((B) => !B), [C]),
38
- modal: c,
39
- children: o
40
- }
41
- );
42
- };
43
- I.displayName = v;
44
- var M = "DialogTrigger", T = i.forwardRef(
45
- (e, t) => {
46
- const { __scopeDialog: o, ...a } = e, r = u(M, o), n = h(t, r.triggerRef);
47
- return /* @__PURE__ */ s(
48
- p.button,
49
- {
50
- type: "button",
51
- "aria-haspopup": "dialog",
52
- "aria-expanded": r.open,
53
- "aria-controls": r.contentId,
54
- "data-state": P(r.open),
55
- ...a,
56
- ref: n,
57
- onClick: g(e.onClick, r.onOpenToggle)
58
- }
59
- );
60
- }
61
- );
62
- T.displayName = M;
63
- var x = "DialogPortal", [ee, A] = b(x, {
64
- forceMount: void 0
65
- }), w = (e) => {
66
- const { __scopeDialog: t, forceMount: o, children: a, container: r } = e, n = u(x, t);
67
- return /* @__PURE__ */ s(ee, { scope: t, forceMount: o, children: i.Children.map(a, (c) => /* @__PURE__ */ s(_, { present: o || n.open, children: /* @__PURE__ */ s(J, { asChild: !0, container: r, children: c }) })) });
68
- };
69
- w.displayName = x;
70
- var m = "DialogOverlay", F = i.forwardRef(
71
- (e, t) => {
72
- const o = A(m, e.__scopeDialog), { forceMount: a = o.forceMount, ...r } = e, n = u(m, e.__scopeDialog);
73
- return n.modal ? /* @__PURE__ */ s(_, { present: a || n.open, children: /* @__PURE__ */ s(oe, { ...r, ref: t }) }) : null;
74
- }
75
- );
76
- F.displayName = m;
77
- var te = Q("DialogOverlay.RemoveScroll"), oe = i.forwardRef(
78
- (e, t) => {
79
- const { __scopeDialog: o, ...a } = e, r = u(m, o);
80
- return (
81
- // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
82
- // ie. when `Overlay` and `Content` are siblings
83
- /* @__PURE__ */ s(z, { as: te, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ s(
84
- p.div,
85
- {
86
- "data-state": P(r.open),
87
- ...a,
88
- ref: t,
89
- style: { pointerEvents: "auto", ...a.style }
90
- }
91
- ) })
92
- );
93
- }
94
- ), d = "DialogContent", S = i.forwardRef(
95
- (e, t) => {
96
- const o = A(d, e.__scopeDialog), { forceMount: a = o.forceMount, ...r } = e, n = u(d, e.__scopeDialog);
97
- return /* @__PURE__ */ s(_, { present: a || n.open, children: n.modal ? /* @__PURE__ */ s(ne, { ...r, ref: t }) : /* @__PURE__ */ s(re, { ...r, ref: t }) });
98
- }
99
- );
100
- S.displayName = d;
101
- var ne = i.forwardRef(
102
- (e, t) => {
103
- const o = u(d, e.__scopeDialog), a = i.useRef(null), r = h(t, o.contentRef, a);
104
- return i.useEffect(() => {
105
- const n = a.current;
106
- if (n) return K(n);
107
- }, []), /* @__PURE__ */ s(
108
- k,
109
- {
110
- ...e,
111
- ref: r,
112
- trapFocus: o.open,
113
- disableOutsidePointerEvents: !0,
114
- onCloseAutoFocus: g(e.onCloseAutoFocus, (n) => {
115
- n.preventDefault(), o.triggerRef.current?.focus();
116
- }),
117
- onPointerDownOutside: g(e.onPointerDownOutside, (n) => {
118
- const c = n.detail.originalEvent, l = c.button === 0 && c.ctrlKey === !0;
119
- (c.button === 2 || l) && n.preventDefault();
120
- }),
121
- onFocusOutside: g(
122
- e.onFocusOutside,
123
- (n) => n.preventDefault()
124
- )
125
- }
126
- );
127
- }
128
- ), re = i.forwardRef(
129
- (e, t) => {
130
- const o = u(d, e.__scopeDialog), a = i.useRef(!1), r = i.useRef(!1);
131
- return /* @__PURE__ */ s(
132
- k,
133
- {
134
- ...e,
135
- ref: t,
136
- trapFocus: !1,
137
- disableOutsidePointerEvents: !1,
138
- onCloseAutoFocus: (n) => {
139
- e.onCloseAutoFocus?.(n), n.defaultPrevented || (a.current || o.triggerRef.current?.focus(), n.preventDefault()), a.current = !1, r.current = !1;
140
- },
141
- onInteractOutside: (n) => {
142
- e.onInteractOutside?.(n), n.defaultPrevented || (a.current = !0, n.detail.originalEvent.type === "pointerdown" && (r.current = !0));
143
- const c = n.target;
144
- o.triggerRef.current?.contains(c) && n.preventDefault(), n.detail.originalEvent.type === "focusin" && r.current && n.preventDefault();
145
- }
146
- }
147
- );
148
- }
149
- ), k = i.forwardRef(
150
- (e, t) => {
151
- const { __scopeDialog: o, trapFocus: a, onOpenAutoFocus: r, onCloseAutoFocus: n, ...c } = e, l = u(d, o), f = i.useRef(null), D = h(t, f);
152
- return U(), /* @__PURE__ */ E(O, { children: [
153
- /* @__PURE__ */ s(
154
- Y,
155
- {
156
- asChild: !0,
157
- loop: !0,
158
- trapped: a,
159
- onMountAutoFocus: r,
160
- onUnmountAutoFocus: n,
161
- children: /* @__PURE__ */ s(
162
- Z,
163
- {
164
- role: "dialog",
165
- id: l.contentId,
166
- "aria-describedby": l.descriptionId,
167
- "aria-labelledby": l.titleId,
168
- "data-state": P(l.open),
169
- ...c,
170
- ref: D,
171
- onDismiss: () => l.onOpenChange(!1)
172
- }
173
- )
174
- }
175
- ),
176
- /* @__PURE__ */ E(O, { children: [
177
- /* @__PURE__ */ s(ie, { titleId: l.titleId }),
178
- /* @__PURE__ */ s(ce, { contentRef: f, descriptionId: l.descriptionId })
179
- ] })
180
- ] });
181
- }
182
- ), N = "DialogTitle", W = i.forwardRef(
183
- (e, t) => {
184
- const { __scopeDialog: o, ...a } = e, r = u(N, o);
185
- return /* @__PURE__ */ s(p.h2, { id: r.titleId, ...a, ref: t });
186
- }
187
- );
188
- W.displayName = N;
189
- var G = "DialogDescription", ae = i.forwardRef(
190
- (e, t) => {
191
- const { __scopeDialog: o, ...a } = e, r = u(G, o);
192
- return /* @__PURE__ */ s(p.p, { id: r.descriptionId, ...a, ref: t });
193
- }
194
- );
195
- ae.displayName = G;
196
- var L = "DialogClose", se = i.forwardRef(
197
- (e, t) => {
198
- const { __scopeDialog: o, ...a } = e, r = u(L, o);
199
- return /* @__PURE__ */ s(
200
- p.button,
201
- {
202
- type: "button",
203
- ...a,
204
- ref: t,
205
- onClick: g(e.onClick, () => r.onOpenChange(!1))
206
- }
207
- );
208
- }
209
- );
210
- se.displayName = L;
211
- function P(e) {
212
- return e ? "open" : "closed";
213
- }
214
- var $ = "DialogTitleWarning", [Ee, j] = V($, {
215
- contentName: d,
216
- titleName: N,
217
- docsSlug: "dialog"
218
- }), ie = ({ titleId: e }) => {
219
- const t = j($), o = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
220
-
221
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
222
-
223
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
224
- return i.useEffect(() => {
225
- e && (document.getElementById(e) || console.error(o));
226
- }, [o, e]), null;
227
- }, le = "DialogDescriptionWarning", ce = ({ contentRef: e, descriptionId: t }) => {
228
- const a = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${j(le).contentName}}.`;
229
- return i.useEffect(() => {
230
- const r = e.current?.getAttribute("aria-describedby");
231
- t && r && (document.getElementById(t) || console.warn(a));
232
- }, [a, e, t]), null;
233
- }, ue = I, de = T, fe = w, ge = F, pe = S, me = W;
234
- function Oe({ children: e, ...t }) {
235
- return /* @__PURE__ */ s(ue, { "data-slot": "modal-root", ...t, children: e });
236
- }
237
- function be({ children: e, ...t }) {
238
- return /* @__PURE__ */ s(de, { "data-slot": "modal-trigger", ...t, children: e });
239
- }
240
- function Ie({ children: e, ...t }) {
241
- return /* @__PURE__ */ s(fe, { "data-slot": "modal-portal", ...t, children: e });
242
- }
243
- function Me({ children: e, className: t, ...o }) {
244
- return /* @__PURE__ */ s(
245
- ge,
246
- {
247
- className: y(
248
- "fixed inset-0 z-30 flex items-center justify-center bg-[var(--modal-overlay-background,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))] @container",
249
- t
250
- ),
251
- "data-slot": "modal-overlay",
252
- ...o,
253
- children: e
254
- }
255
- );
256
- }
257
- function Te({ children: e, className: t, ...o }) {
258
- return /* @__PURE__ */ s(
259
- pe,
260
- {
261
- className: y(
262
- "mx-3 my-10 max-h-[90%] max-w-3xl overflow-y-auto rounded-xl bg-[var(--modal-background,hsl(var(--background)))] px-3 py-5 transition ease-out @sm:px-6 @sm:py-8 @5xl:px-20 @5xl:py-10",
263
- // Focus styles
264
- "focus:outline-none",
265
- // Open styles
266
- "data-[state=open]:duration-200 data-[state=open]:animate-in data-[state=open]:slide-in-from-bottom-16",
267
- // Closed styles
268
- "data-[state=closed]:duration-200 data-[state=closed]:animate-out data-[state=closed]:slide-out-to-bottom-16",
269
- t
270
- ),
271
- "data-slot": "modal-content",
272
- ...o,
273
- children: e
274
- }
275
- );
276
- }
277
- function Ae({ children: e, className: t, ...o }) {
278
- return /* @__PURE__ */ s(me, { className: y("sr-only", t), "data-slot": "modal-title", ...o, children: e });
279
- }
280
- export {
281
- Oe as M,
282
- be as a,
283
- Ie as b,
284
- Me as c,
285
- Te as d,
286
- Ae as e
287
- };
288
- //# sourceMappingURL=modal-title-B2Yr1KDi.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modal-title-B2Yr1KDi.js","sources":["../node_modules/.pnpm/@radix-ui+react-dialog@1.1.15_@types+react-dom@19.2.2_@types+react@19.2.2__@types+react@19.2._aodnlqhr3elwsecxfyuv3mpycy/node_modules/@radix-ui/react-dialog/dist/index.mjs","../src/components/modal/primitives/modal-root.tsx","../src/components/modal/primitives/modal-trigger.tsx","../src/components/modal/primitives/modal-portal.tsx","../src/components/modal/primitives/modal-overlay.tsx","../src/components/modal/primitives/modal-content.tsx","../src/components/modal/primitives/modal-title.tsx"],"sourcesContent":["\"use client\";\n\n// src/dialog.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContext, createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { FocusScope } from \"@radix-ui/react-focus-scope\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { hideOthers } from \"aria-hidden\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nvar DIALOG_NAME = \"Dialog\";\nvar [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);\nvar [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);\nvar Dialog = (props) => {\n const {\n __scopeDialog,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = true\n } = props;\n const triggerRef = React.useRef(null);\n const contentRef = React.useRef(null);\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen ?? false,\n onChange: onOpenChange,\n caller: DIALOG_NAME\n });\n return /* @__PURE__ */ jsx(\n DialogProvider,\n {\n scope: __scopeDialog,\n triggerRef,\n contentRef,\n contentId: useId(),\n titleId: useId(),\n descriptionId: useId(),\n open,\n onOpenChange: setOpen,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n modal,\n children\n }\n );\n};\nDialog.displayName = DIALOG_NAME;\nvar TRIGGER_NAME = \"DialogTrigger\";\nvar DialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...triggerProps } = props;\n const context = useDialogContext(TRIGGER_NAME, __scopeDialog);\n const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.contentId,\n \"data-state\": getState(context.open),\n ...triggerProps,\n ref: composedTriggerRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n }\n);\nDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"DialogPortal\";\nvar [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar DialogPortal = (props) => {\n const { __scopeDialog, forceMount, children, container } = props;\n const context = useDialogContext(PORTAL_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopeDialog, forceMount, children: React.Children.map(children, (child) => /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children: child }) })) });\n};\nDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"DialogOverlay\";\nvar DialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);\n return context.modal ? /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;\n }\n);\nDialogOverlay.displayName = OVERLAY_NAME;\nvar Slot = createSlot(\"DialogOverlay.RemoveScroll\");\nvar DialogOverlayImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, __scopeDialog);\n return (\n // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`\n // ie. when `Overlay` and `Content` are siblings\n /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(context.open),\n ...overlayProps,\n ref: forwardedRef,\n style: { pointerEvents: \"auto\", ...overlayProps.style }\n }\n ) })\n );\n }\n);\nvar CONTENT_NAME = \"DialogContent\";\nvar DialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });\n }\n);\nDialogContent.displayName = CONTENT_NAME;\nvar DialogContentModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, context.contentRef, contentRef);\n React.useEffect(() => {\n const content = contentRef.current;\n if (content) return hideOthers(content);\n }, []);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: composedRefs,\n trapFocus: context.open,\n disableOutsidePointerEvents: true,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n event.preventDefault();\n context.triggerRef.current?.focus();\n }),\n onPointerDownOutside: composeEventHandlers(props.onPointerDownOutside, (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n if (isRightClick) event.preventDefault();\n }),\n onFocusOutside: composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault()\n )\n }\n );\n }\n);\nvar DialogContentNonModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const hasInteractedOutsideRef = React.useRef(false);\n const hasPointerDownOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n onCloseAutoFocus: (event) => {\n props.onCloseAutoFocus?.(event);\n if (!event.defaultPrevented) {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n event.preventDefault();\n }\n hasInteractedOutsideRef.current = false;\n hasPointerDownOutsideRef.current = false;\n },\n onInteractOutside: (event) => {\n props.onInteractOutside?.(event);\n if (!event.defaultPrevented) {\n hasInteractedOutsideRef.current = true;\n if (event.detail.originalEvent.type === \"pointerdown\") {\n hasPointerDownOutsideRef.current = true;\n }\n }\n const target = event.target;\n const targetIsTrigger = context.triggerRef.current?.contains(target);\n if (targetIsTrigger) event.preventDefault();\n if (event.detail.originalEvent.type === \"focusin\" && hasPointerDownOutsideRef.current) {\n event.preventDefault();\n }\n }\n }\n );\n }\n);\nvar DialogContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, __scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n useFocusGuards();\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n loop: true,\n trapped: trapFocus,\n onMountAutoFocus: onOpenAutoFocus,\n onUnmountAutoFocus: onCloseAutoFocus,\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n role: \"dialog\",\n id: context.contentId,\n \"aria-describedby\": context.descriptionId,\n \"aria-labelledby\": context.titleId,\n \"data-state\": getState(context.open),\n ...contentProps,\n ref: composedRefs,\n onDismiss: () => context.onOpenChange(false)\n }\n )\n }\n ),\n /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(TitleWarning, { titleId: context.titleId }),\n /* @__PURE__ */ jsx(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })\n ] })\n ] });\n }\n);\nvar TITLE_NAME = \"DialogTitle\";\nvar DialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...titleProps } = props;\n const context = useDialogContext(TITLE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });\n }\n);\nDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"DialogDescription\";\nvar DialogDescription = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...descriptionProps } = props;\n const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });\n }\n);\nDialogDescription.displayName = DESCRIPTION_NAME;\nvar CLOSE_NAME = \"DialogClose\";\nvar DialogClose = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...closeProps } = props;\n const context = useDialogContext(CLOSE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n ...closeProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))\n }\n );\n }\n);\nDialogClose.displayName = CLOSE_NAME;\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar TITLE_WARNING_NAME = \"DialogTitleWarning\";\nvar [WarningProvider, useWarningContext] = createContext(TITLE_WARNING_NAME, {\n contentName: CONTENT_NAME,\n titleName: TITLE_NAME,\n docsSlug: \"dialog\"\n});\nvar TitleWarning = ({ titleId }) => {\n const titleWarningContext = useWarningContext(TITLE_WARNING_NAME);\n const MESSAGE = `\\`${titleWarningContext.contentName}\\` requires a \\`${titleWarningContext.titleName}\\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \\`${titleWarningContext.titleName}\\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${titleWarningContext.docsSlug}`;\n React.useEffect(() => {\n if (titleId) {\n const hasTitle = document.getElementById(titleId);\n if (!hasTitle) console.error(MESSAGE);\n }\n }, [MESSAGE, titleId]);\n return null;\n};\nvar DESCRIPTION_WARNING_NAME = \"DialogDescriptionWarning\";\nvar DescriptionWarning = ({ contentRef, descriptionId }) => {\n const descriptionWarningContext = useWarningContext(DESCRIPTION_WARNING_NAME);\n const MESSAGE = `Warning: Missing \\`Description\\` or \\`aria-describedby={undefined}\\` for {${descriptionWarningContext.contentName}}.`;\n React.useEffect(() => {\n const describedById = contentRef.current?.getAttribute(\"aria-describedby\");\n if (descriptionId && describedById) {\n const hasDescription = document.getElementById(descriptionId);\n if (!hasDescription) console.warn(MESSAGE);\n }\n }, [MESSAGE, contentRef, descriptionId]);\n return null;\n};\nvar Root = Dialog;\nvar Trigger = DialogTrigger;\nvar Portal = DialogPortal;\nvar Overlay = DialogOverlay;\nvar Content = DialogContent;\nvar Title = DialogTitle;\nvar Description = DialogDescription;\nvar Close = DialogClose;\nexport {\n Close,\n Content,\n Description,\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n Overlay,\n Portal,\n Root,\n Title,\n Trigger,\n WarningProvider,\n createDialogScope\n};\n//# sourceMappingURL=index.mjs.map\n","'use client';\n\nimport * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nexport type ModalRootProps = ComponentProps<typeof Dialog.Root>;\n\nexport function ModalRoot({ children, ...props }: ModalRootProps) {\n return (\n <Dialog.Root data-slot=\"modal-root\" {...props}>\n {children}\n </Dialog.Root>\n );\n}\n","import * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nexport type ModalTriggerProps = ComponentProps<typeof Dialog.Trigger>;\n\nexport function ModalTrigger({ children, ...props }: ModalTriggerProps) {\n return (\n <Dialog.Trigger data-slot=\"modal-trigger\" {...props}>\n {children}\n </Dialog.Trigger>\n );\n}\n","import * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nexport type ModalPortalProps = ComponentProps<typeof Dialog.Portal>;\n\nexport function ModalPortal({ children, ...props }: ModalPortalProps) {\n return (\n <Dialog.Portal data-slot=\"modal-portal\" {...props}>\n {children}\n </Dialog.Portal>\n );\n}\n","import * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type ModalOverlayProps = ComponentProps<typeof Dialog.Overlay>;\n\nexport function ModalOverlay({ children, className, ...props }: ModalOverlayProps) {\n return (\n <Dialog.Overlay\n className={cn(\n 'fixed inset-0 z-30 flex items-center justify-center bg-[var(--modal-overlay-background,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))] @container',\n className,\n )}\n data-slot=\"modal-overlay\"\n {...props}\n >\n {children}\n </Dialog.Overlay>\n );\n}\n","import * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type ModalContentProps = ComponentProps<typeof Dialog.Content>;\n\nexport function ModalContent({ children, className, ...props }: ModalContentProps) {\n return (\n <Dialog.Content\n className={cn(\n 'mx-3 my-10 max-h-[90%] max-w-3xl overflow-y-auto rounded-xl bg-[var(--modal-background,hsl(var(--background)))] px-3 py-5 transition ease-out @sm:px-6 @sm:py-8 @5xl:px-20 @5xl:py-10',\n // Focus styles\n 'focus:outline-none',\n // Open styles\n 'data-[state=open]:duration-200 data-[state=open]:animate-in data-[state=open]:slide-in-from-bottom-16',\n // Closed styles\n 'data-[state=closed]:duration-200 data-[state=closed]:animate-out data-[state=closed]:slide-out-to-bottom-16',\n className,\n )}\n data-slot=\"modal-content\"\n {...props}\n >\n {children}\n </Dialog.Content>\n );\n}\n","import * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type ModalTitleProps = ComponentProps<typeof Dialog.Title>;\n\nexport function ModalTitle({ children, className, ...props }: ModalTitleProps) {\n return (\n <Dialog.Title className={cn('sr-only', className)} data-slot=\"modal-title\" {...props}>\n {children}\n </Dialog.Title>\n );\n}\n"],"names":["DIALOG_NAME","createDialogContext","createContextScope","DialogProvider","useDialogContext","Dialog","props","__scopeDialog","children","openProp","defaultOpen","onOpenChange","modal","triggerRef","React","contentRef","open","setOpen","useControllableState","jsx","useId","prevOpen","TRIGGER_NAME","DialogTrigger","forwardedRef","triggerProps","context","composedTriggerRef","useComposedRefs","Primitive","getState","composeEventHandlers","PORTAL_NAME","PortalProvider","usePortalContext","DialogPortal","forceMount","container","child","Presence","PortalPrimitive","OVERLAY_NAME","DialogOverlay","portalContext","overlayProps","DialogOverlayImpl","Slot","createSlot","RemoveScroll","CONTENT_NAME","DialogContent","contentProps","DialogContentModal","DialogContentNonModal","composedRefs","content","hideOthers","DialogContentImpl","event","originalEvent","ctrlLeftClick","hasInteractedOutsideRef","hasPointerDownOutsideRef","target","trapFocus","onOpenAutoFocus","onCloseAutoFocus","useFocusGuards","jsxs","Fragment","FocusScope","DismissableLayer","TitleWarning","DescriptionWarning","TITLE_NAME","DialogTitle","titleProps","DESCRIPTION_NAME","DialogDescription","descriptionProps","CLOSE_NAME","DialogClose","closeProps","TITLE_WARNING_NAME","WarningProvider","useWarningContext","createContext","titleId","titleWarningContext","MESSAGE","DESCRIPTION_WARNING_NAME","descriptionId","describedById","Root","Trigger","Portal","Overlay","Content","Title","ModalRoot","Dialog.Root","ModalTrigger","Dialog.Trigger","ModalPortal","Dialog.Portal","ModalOverlay","className","Dialog.Overlay","cn","ModalContent","Dialog.Content","ModalTitle","Dialog.Title"],"mappings":";;;;;;;;;;;AAmBA,IAAIA,IAAc,UACd,CAACC,CAAsC,IAAIC,EAAmBF,CAAW,GACzE,CAACG,GAAgBC,CAAgB,IAAIH,EAAoBD,CAAW,GACpEK,IAAS,CAACC,MAAU;AACtB,QAAM;AAAA,IACJ,eAAAC;AAAA,IACA,UAAAC;AAAA,IACA,MAAMC;AAAA,IACN,aAAAC;AAAA,IACA,cAAAC;AAAA,IACA,OAAAC,IAAQ;AAAA,EACZ,IAAMN,GACEO,IAAaC,EAAM,OAAO,IAAI,GAC9BC,IAAaD,EAAM,OAAO,IAAI,GAC9B,CAACE,GAAMC,CAAO,IAAIC,EAAqB;AAAA,IAC3C,MAAMT;AAAA,IACN,aAAaC,KAAe;AAAA,IAC5B,UAAUC;AAAA,IACV,QAAQX;AAAA,EACZ,CAAG;AACD,SAAuB,gBAAAmB;AAAA,IACrBhB;AAAA,IACA;AAAA,MACE,OAAOI;AAAA,MACP,YAAAM;AAAA,MACA,YAAAE;AAAA,MACA,WAAWK,EAAK;AAAA,MAChB,SAASA,EAAK;AAAA,MACd,eAAeA,EAAK;AAAA,MACpB,MAAAJ;AAAA,MACA,cAAcC;AAAA,MACd,cAAcH,EAAM,YAAY,MAAMG,EAAQ,CAACI,MAAa,CAACA,CAAQ,GAAG,CAACJ,CAAO,CAAC;AAAA,MACjF,OAAAL;AAAA,MACA,UAAAJ;AAAA,IAC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B;AAC7E,SACE,gBAAAa,EAAC6F,IAAA,EAAa,WAAWJ,EAAG,WAAWF,CAAS,GAAG,aAAU,eAAe,GAAGpG,GAC5E,UAAAE,EAAA,CACH;AAEJ;","x_google_ignoreList":[0]}
@@ -1,6 +0,0 @@
1
- "use strict";const s=require("react/jsx-runtime"),_=require("./utils-LBH114_M.cjs"),L=require("react"),p=require("./index-BqyOu62e.cjs"),P=require("./index-_XxjJPRD.cjs"),v=require("./index-CnXYiTkW.cjs"),y=require("./index-BRcWOeqw.cjs"),H=require("./index-BwVkw1mh.cjs"),m=require("./Combination-DAFZFTdA.cjs"),B=require("./index-BgU5ZH3M.cjs"),f=require("./index-Bw7_huW8.cjs");function z(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const i=z(L);var D="Dialog",[b]=v.createContextScope(D),[V,u]=b(D),N=e=>{const{__scopeDialog:t,children:o,open:r,defaultOpen:a,onOpenChange:n,modal:c=!0}=e,l=i.useRef(null),g=i.useRef(null),[C,R]=H.useControllableState({prop:r,defaultProp:a??!1,onChange:n,caller:D});return s.jsx(V,{scope:t,triggerRef:l,contentRef:g,contentId:y.useId(),titleId:y.useId(),descriptionId:y.useId(),open:C,onOpenChange:R,onOpenToggle:i.useCallback(()=>R(G=>!G),[R]),modal:c,children:o})};N.displayName=D;var j="DialogTrigger",M=i.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,a=u(j,o),n=P.useComposedRefs(t,a.triggerRef);return s.jsx(f.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":O(a.open),...r,ref:n,onClick:p.composeEventHandlers(e.onClick,a.onOpenToggle)})});M.displayName=j;var h="DialogPortal",[K,I]=b(h,{forceMount:void 0}),T=e=>{const{__scopeDialog:t,forceMount:o,children:r,container:a}=e,n=u(h,t);return s.jsx(K,{scope:t,forceMount:o,children:i.Children.map(r,c=>s.jsx(v.Presence,{present:o||n.open,children:s.jsx(B.Portal,{asChild:!0,container:a,children:c})}))})};T.displayName=h;var x="DialogOverlay",A=i.forwardRef((e,t)=>{const o=I(x,e.__scopeDialog),{forceMount:r=o.forceMount,...a}=e,n=u(x,e.__scopeDialog);return n.modal?s.jsx(v.Presence,{present:r||n.open,children:s.jsx(Y,{...a,ref:t})}):null});A.displayName=x;var U=f.createSlot("DialogOverlay.RemoveScroll"),Y=i.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,a=u(x,o);return s.jsx(m.ReactRemoveScroll,{as:U,allowPinchZoom:!0,shards:[a.contentRef],children:s.jsx(f.Primitive.div,{"data-state":O(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),d="DialogContent",w=i.forwardRef((e,t)=>{const o=I(d,e.__scopeDialog),{forceMount:r=o.forceMount,...a}=e,n=u(d,e.__scopeDialog);return s.jsx(v.Presence,{present:r||n.open,children:n.modal?s.jsx(Z,{...a,ref:t}):s.jsx(J,{...a,ref:t})})});w.displayName=d;var Z=i.forwardRef((e,t)=>{const o=u(d,e.__scopeDialog),r=i.useRef(null),a=P.useComposedRefs(t,o.contentRef,r);return i.useEffect(()=>{const n=r.current;if(n)return m.hideOthers(n)},[]),s.jsx(S,{...e,ref:a,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:p.composeEventHandlers(e.onCloseAutoFocus,n=>{n.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:p.composeEventHandlers(e.onPointerDownOutside,n=>{const c=n.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0;(c.button===2||l)&&n.preventDefault()}),onFocusOutside:p.composeEventHandlers(e.onFocusOutside,n=>n.preventDefault())})}),J=i.forwardRef((e,t)=>{const o=u(d,e.__scopeDialog),r=i.useRef(!1),a=i.useRef(!1);return s.jsx(S,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:n=>{e.onCloseAutoFocus?.(n),n.defaultPrevented||(r.current||o.triggerRef.current?.focus(),n.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:n=>{e.onInteractOutside?.(n),n.defaultPrevented||(r.current=!0,n.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const c=n.target;o.triggerRef.current?.contains(c)&&n.preventDefault(),n.detail.originalEvent.type==="focusin"&&a.current&&n.preventDefault()}})}),S=i.forwardRef((e,t)=>{const{__scopeDialog:o,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:n,...c}=e,l=u(d,o),g=i.useRef(null),C=P.useComposedRefs(t,g);return m.useFocusGuards(),s.jsxs(s.Fragment,{children:[s.jsx(m.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:n,children:s.jsx(m.DismissableLayer,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":O(l.open),...c,ref:C,onDismiss:()=>l.onOpenChange(!1)})}),s.jsxs(s.Fragment,{children:[s.jsx(ee,{titleId:l.titleId}),s.jsx(oe,{contentRef:g,descriptionId:l.descriptionId})]})]})}),E="DialogTitle",F=i.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,a=u(E,o);return s.jsx(f.Primitive.h2,{id:a.titleId,...r,ref:t})});F.displayName=E;var k="DialogDescription",Q=i.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,a=u(k,o);return s.jsx(f.Primitive.p,{id:a.descriptionId,...r,ref:t})});Q.displayName=k;var q="DialogClose",X=i.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,a=u(q,o);return s.jsx(f.Primitive.button,{type:"button",...r,ref:t,onClick:p.composeEventHandlers(e.onClick,()=>a.onOpenChange(!1))})});X.displayName=q;function O(e){return e?"open":"closed"}var W="DialogTitleWarning",[me,$]=v.createContext2(W,{contentName:d,titleName:E,docsSlug:"dialog"}),ee=({titleId:e})=>{const t=$(W),o=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2
-
3
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
4
-
5
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(o))},[o,e]),null},te="DialogDescriptionWarning",oe=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${$(te).contentName}}.`;return i.useEffect(()=>{const a=e.current?.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},ne=N,re=M,ae=T,se=A,ie=w,le=F;function ce({children:e,...t}){return s.jsx(ne,{"data-slot":"modal-root",...t,children:e})}function ue({children:e,...t}){return s.jsx(re,{"data-slot":"modal-trigger",...t,children:e})}function de({children:e,...t}){return s.jsx(ae,{"data-slot":"modal-portal",...t,children:e})}function fe({children:e,className:t,...o}){return s.jsx(se,{className:_.cn("fixed inset-0 z-30 flex items-center justify-center bg-[var(--modal-overlay-background,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))] @container",t),"data-slot":"modal-overlay",...o,children:e})}function ge({children:e,className:t,...o}){return s.jsx(ie,{className:_.cn("mx-3 my-10 max-h-[90%] max-w-3xl overflow-y-auto rounded-xl bg-[var(--modal-background,hsl(var(--background)))] px-3 py-5 transition ease-out @sm:px-6 @sm:py-8 @5xl:px-20 @5xl:py-10","focus:outline-none","data-[state=open]:duration-200 data-[state=open]:animate-in data-[state=open]:slide-in-from-bottom-16","data-[state=closed]:duration-200 data-[state=closed]:animate-out data-[state=closed]:slide-out-to-bottom-16",t),"data-slot":"modal-content",...o,children:e})}function pe({children:e,className:t,...o}){return s.jsx(le,{className:_.cn("sr-only",t),"data-slot":"modal-title",...o,children:e})}exports.ModalContent=ge;exports.ModalOverlay=fe;exports.ModalPortal=de;exports.ModalRoot=ce;exports.ModalTitle=pe;exports.ModalTrigger=ue;
6
- //# sourceMappingURL=modal-title-CpD_Fors.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modal-title-CpD_Fors.cjs","sources":["../node_modules/.pnpm/@radix-ui+react-dialog@1.1.15_@types+react-dom@19.2.2_@types+react@19.2.2__@types+react@19.2._aodnlqhr3elwsecxfyuv3mpycy/node_modules/@radix-ui/react-dialog/dist/index.mjs","../src/components/modal/primitives/modal-root.tsx","../src/components/modal/primitives/modal-trigger.tsx","../src/components/modal/primitives/modal-portal.tsx","../src/components/modal/primitives/modal-overlay.tsx","../src/components/modal/primitives/modal-content.tsx","../src/components/modal/primitives/modal-title.tsx"],"sourcesContent":["\"use client\";\n\n// src/dialog.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContext, createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { FocusScope } from \"@radix-ui/react-focus-scope\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { hideOthers } from \"aria-hidden\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nvar DIALOG_NAME = \"Dialog\";\nvar [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);\nvar [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);\nvar Dialog = (props) => {\n const {\n __scopeDialog,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = true\n } = props;\n const triggerRef = React.useRef(null);\n const contentRef = React.useRef(null);\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen ?? false,\n onChange: onOpenChange,\n caller: DIALOG_NAME\n });\n return /* @__PURE__ */ jsx(\n DialogProvider,\n {\n scope: __scopeDialog,\n triggerRef,\n contentRef,\n contentId: useId(),\n titleId: useId(),\n descriptionId: useId(),\n open,\n onOpenChange: setOpen,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n modal,\n children\n }\n );\n};\nDialog.displayName = DIALOG_NAME;\nvar TRIGGER_NAME = \"DialogTrigger\";\nvar DialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...triggerProps } = props;\n const context = useDialogContext(TRIGGER_NAME, __scopeDialog);\n const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.contentId,\n \"data-state\": getState(context.open),\n ...triggerProps,\n ref: composedTriggerRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n }\n);\nDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"DialogPortal\";\nvar [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar DialogPortal = (props) => {\n const { __scopeDialog, forceMount, children, container } = props;\n const context = useDialogContext(PORTAL_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopeDialog, forceMount, children: React.Children.map(children, (child) => /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children: child }) })) });\n};\nDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"DialogOverlay\";\nvar DialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);\n return context.modal ? /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;\n }\n);\nDialogOverlay.displayName = OVERLAY_NAME;\nvar Slot = createSlot(\"DialogOverlay.RemoveScroll\");\nvar DialogOverlayImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, __scopeDialog);\n return (\n // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`\n // ie. when `Overlay` and `Content` are siblings\n /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(context.open),\n ...overlayProps,\n ref: forwardedRef,\n style: { pointerEvents: \"auto\", ...overlayProps.style }\n }\n ) })\n );\n }\n);\nvar CONTENT_NAME = \"DialogContent\";\nvar DialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });\n }\n);\nDialogContent.displayName = CONTENT_NAME;\nvar DialogContentModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, context.contentRef, contentRef);\n React.useEffect(() => {\n const content = contentRef.current;\n if (content) return hideOthers(content);\n }, []);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: composedRefs,\n trapFocus: context.open,\n disableOutsidePointerEvents: true,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n event.preventDefault();\n context.triggerRef.current?.focus();\n }),\n onPointerDownOutside: composeEventHandlers(props.onPointerDownOutside, (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n if (isRightClick) event.preventDefault();\n }),\n onFocusOutside: composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault()\n )\n }\n );\n }\n);\nvar DialogContentNonModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const hasInteractedOutsideRef = React.useRef(false);\n const hasPointerDownOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n onCloseAutoFocus: (event) => {\n props.onCloseAutoFocus?.(event);\n if (!event.defaultPrevented) {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n event.preventDefault();\n }\n hasInteractedOutsideRef.current = false;\n hasPointerDownOutsideRef.current = false;\n },\n onInteractOutside: (event) => {\n props.onInteractOutside?.(event);\n if (!event.defaultPrevented) {\n hasInteractedOutsideRef.current = true;\n if (event.detail.originalEvent.type === \"pointerdown\") {\n hasPointerDownOutsideRef.current = true;\n }\n }\n const target = event.target;\n const targetIsTrigger = context.triggerRef.current?.contains(target);\n if (targetIsTrigger) event.preventDefault();\n if (event.detail.originalEvent.type === \"focusin\" && hasPointerDownOutsideRef.current) {\n event.preventDefault();\n }\n }\n }\n );\n }\n);\nvar DialogContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, __scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n useFocusGuards();\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n loop: true,\n trapped: trapFocus,\n onMountAutoFocus: onOpenAutoFocus,\n onUnmountAutoFocus: onCloseAutoFocus,\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n role: \"dialog\",\n id: context.contentId,\n \"aria-describedby\": context.descriptionId,\n \"aria-labelledby\": context.titleId,\n \"data-state\": getState(context.open),\n ...contentProps,\n ref: composedRefs,\n onDismiss: () => context.onOpenChange(false)\n }\n )\n }\n ),\n /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(TitleWarning, { titleId: context.titleId }),\n /* @__PURE__ */ jsx(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })\n ] })\n ] });\n }\n);\nvar TITLE_NAME = \"DialogTitle\";\nvar DialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...titleProps } = props;\n const context = useDialogContext(TITLE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });\n }\n);\nDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"DialogDescription\";\nvar DialogDescription = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...descriptionProps } = props;\n const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });\n }\n);\nDialogDescription.displayName = DESCRIPTION_NAME;\nvar CLOSE_NAME = \"DialogClose\";\nvar DialogClose = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...closeProps } = props;\n const context = useDialogContext(CLOSE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n ...closeProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))\n }\n );\n }\n);\nDialogClose.displayName = CLOSE_NAME;\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar TITLE_WARNING_NAME = \"DialogTitleWarning\";\nvar [WarningProvider, useWarningContext] = createContext(TITLE_WARNING_NAME, {\n contentName: CONTENT_NAME,\n titleName: TITLE_NAME,\n docsSlug: \"dialog\"\n});\nvar TitleWarning = ({ titleId }) => {\n const titleWarningContext = useWarningContext(TITLE_WARNING_NAME);\n const MESSAGE = `\\`${titleWarningContext.contentName}\\` requires a \\`${titleWarningContext.titleName}\\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \\`${titleWarningContext.titleName}\\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${titleWarningContext.docsSlug}`;\n React.useEffect(() => {\n if (titleId) {\n const hasTitle = document.getElementById(titleId);\n if (!hasTitle) console.error(MESSAGE);\n }\n }, [MESSAGE, titleId]);\n return null;\n};\nvar DESCRIPTION_WARNING_NAME = \"DialogDescriptionWarning\";\nvar DescriptionWarning = ({ contentRef, descriptionId }) => {\n const descriptionWarningContext = useWarningContext(DESCRIPTION_WARNING_NAME);\n const MESSAGE = `Warning: Missing \\`Description\\` or \\`aria-describedby={undefined}\\` for {${descriptionWarningContext.contentName}}.`;\n React.useEffect(() => {\n const describedById = contentRef.current?.getAttribute(\"aria-describedby\");\n if (descriptionId && describedById) {\n const hasDescription = document.getElementById(descriptionId);\n if (!hasDescription) console.warn(MESSAGE);\n }\n }, [MESSAGE, contentRef, descriptionId]);\n return null;\n};\nvar Root = Dialog;\nvar Trigger = DialogTrigger;\nvar Portal = DialogPortal;\nvar Overlay = DialogOverlay;\nvar Content = DialogContent;\nvar Title = DialogTitle;\nvar Description = DialogDescription;\nvar Close = DialogClose;\nexport {\n Close,\n Content,\n Description,\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n Overlay,\n Portal,\n Root,\n Title,\n Trigger,\n WarningProvider,\n createDialogScope\n};\n//# sourceMappingURL=index.mjs.map\n","'use client';\n\nimport * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nexport type ModalRootProps = ComponentProps<typeof Dialog.Root>;\n\nexport function ModalRoot({ children, ...props }: ModalRootProps) {\n return (\n <Dialog.Root data-slot=\"modal-root\" {...props}>\n {children}\n </Dialog.Root>\n );\n}\n","import * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nexport type ModalTriggerProps = ComponentProps<typeof Dialog.Trigger>;\n\nexport function ModalTrigger({ children, ...props }: ModalTriggerProps) {\n return (\n <Dialog.Trigger data-slot=\"modal-trigger\" {...props}>\n {children}\n </Dialog.Trigger>\n );\n}\n","import * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nexport type ModalPortalProps = ComponentProps<typeof Dialog.Portal>;\n\nexport function ModalPortal({ children, ...props }: ModalPortalProps) {\n return (\n <Dialog.Portal data-slot=\"modal-portal\" {...props}>\n {children}\n </Dialog.Portal>\n );\n}\n","import * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type ModalOverlayProps = ComponentProps<typeof Dialog.Overlay>;\n\nexport function ModalOverlay({ children, className, ...props }: ModalOverlayProps) {\n return (\n <Dialog.Overlay\n className={cn(\n 'fixed inset-0 z-30 flex items-center justify-center bg-[var(--modal-overlay-background,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))] @container',\n className,\n )}\n data-slot=\"modal-overlay\"\n {...props}\n >\n {children}\n </Dialog.Overlay>\n );\n}\n","import * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type ModalContentProps = ComponentProps<typeof Dialog.Content>;\n\nexport function ModalContent({ children, className, ...props }: ModalContentProps) {\n return (\n <Dialog.Content\n className={cn(\n 'mx-3 my-10 max-h-[90%] max-w-3xl overflow-y-auto rounded-xl bg-[var(--modal-background,hsl(var(--background)))] px-3 py-5 transition ease-out @sm:px-6 @sm:py-8 @5xl:px-20 @5xl:py-10',\n // Focus styles\n 'focus:outline-none',\n // Open styles\n 'data-[state=open]:duration-200 data-[state=open]:animate-in data-[state=open]:slide-in-from-bottom-16',\n // Closed styles\n 'data-[state=closed]:duration-200 data-[state=closed]:animate-out data-[state=closed]:slide-out-to-bottom-16',\n className,\n )}\n data-slot=\"modal-content\"\n {...props}\n >\n {children}\n </Dialog.Content>\n );\n}\n","import * as Dialog from '@radix-ui/react-dialog';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type ModalTitleProps = ComponentProps<typeof Dialog.Title>;\n\nexport function ModalTitle({ children, className, ...props }: ModalTitleProps) {\n return (\n <Dialog.Title className={cn('sr-only', className)} data-slot=\"modal-title\" {...props}>\n {children}\n </Dialog.Title>\n );\n}\n"],"names":["DIALOG_NAME","createDialogContext","createContextScope","DialogProvider","useDialogContext","Dialog","props","__scopeDialog","children","openProp","defaultOpen","onOpenChange","modal","triggerRef","React","contentRef","open","setOpen","useControllableState","jsx","useId","prevOpen","TRIGGER_NAME","DialogTrigger","forwardedRef","triggerProps","context","composedTriggerRef","useComposedRefs","Primitive","getState","composeEventHandlers","PORTAL_NAME","PortalProvider","usePortalContext","DialogPortal","forceMount","container","child","Presence","PortalPrimitive","OVERLAY_NAME","DialogOverlay","portalContext","overlayProps","DialogOverlayImpl","Slot","createSlot","RemoveScroll","CONTENT_NAME","DialogContent","contentProps","DialogContentModal","DialogContentNonModal","composedRefs","content","hideOthers","DialogContentImpl","event","originalEvent","ctrlLeftClick","hasInteractedOutsideRef","hasPointerDownOutsideRef","target","trapFocus","onOpenAutoFocus","onCloseAutoFocus","useFocusGuards","jsxs","Fragment","FocusScope","DismissableLayer","TitleWarning","DescriptionWarning","TITLE_NAME","DialogTitle","titleProps","DESCRIPTION_NAME","DialogDescription","descriptionProps","CLOSE_NAME","DialogClose","closeProps","TITLE_WARNING_NAME","WarningProvider","useWarningContext","createContext","titleId","titleWarningContext","MESSAGE","DESCRIPTION_WARNING_NAME","descriptionId","describedById","Root","Trigger","Portal","Overlay","Content","Title","ModalRoot","Dialog.Root","ModalTrigger","Dialog.Trigger","ModalPortal","Dialog.Portal","ModalOverlay","className","Dialog.Overlay","cn","ModalContent","Dialog.Content","ModalTitle","Dialog.Title"],"mappings":"upBAmBA,IAAIA,EAAc,SACd,CAACC,CAAsC,EAAIC,EAAAA,mBAAmBF,CAAW,EACzE,CAACG,EAAgBC,CAAgB,EAAIH,EAAoBD,CAAW,EACpEK,EAAUC,GAAU,CACtB,KAAM,CACJ,cAAAC,EACA,SAAAC,EACA,KAAMC,EACN,YAAAC,EACA,aAAAC,EACA,MAAAC,EAAQ,EACZ,EAAMN,EACEO,EAAaC,EAAM,OAAO,IAAI,EAC9BC,EAAaD,EAAM,OAAO,IAAI,EAC9B,CAACE,EAAMC,CAAO,EAAIC,uBAAqB,CAC3C,KAAMT,EACN,YAAaC,GAAe,GAC5B,SAAUC,EACV,OAAQX,CACZ,CAAG,EACD,OAAuBmB,EAAAA,IACrBhB,EACA,CACE,MAAOI,EACP,WAAAM,EACA,WAAAE,EACA,UAAWK,EAAAA,MAAK,EAChB,QAASA,EAAAA,MAAK,EACd,cAAeA,EAAAA,MAAK,EACpB,KAAAJ,EACA,aAAcC,EACd,aAAcH,EAAM,YAAY,IAAMG,EAASI,GAAa,CAACA,CAAQ,EAAG,CAACJ,CAAO,CAAC,EACjF,MAAAL,EACA,SAAAJ,CACN,CACA,CACA,EACAH,EAAO,YAAcL,EACrB,IAAIsB,EAAe,gBACfC,EAAgBT,EAAM,WACxB,CAACR,EAAOkB,IAAiB,CACvB,KAAM,CAAE,cAAAjB,EAAe,GAAGkB,CAAY,EAAKnB,EACrCoB,EAAUtB,EAAiBkB,EAAcf,CAAa,EACtDoB,EAAqBC,EAAA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