@yamada-ui/modal 1.4.5-dev-20241117113320 → 1.4.5-dev-20241117115416
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{chunk-U2DBPI7Y.mjs → chunk-3RGLB7UM.mjs} +3 -3
- package/dist/{chunk-E4FDNJ4R.mjs → chunk-5NLJNYIN.mjs} +2 -2
- package/dist/{chunk-EPC5EUXN.mjs → chunk-64A25YOZ.mjs} +1 -1
- package/dist/chunk-64A25YOZ.mjs.map +1 -0
- package/dist/{chunk-CBL7CH2A.mjs → chunk-6ZTN6KKG.mjs} +3 -3
- package/dist/{chunk-DWQHOEUG.mjs → chunk-A64FIX7X.mjs} +5 -6
- package/dist/chunk-A64FIX7X.mjs.map +1 -0
- package/dist/{chunk-DH735WKL.mjs → chunk-AVLVLAM5.mjs} +3 -3
- package/dist/{chunk-4SA2BXAV.mjs → chunk-AZF6QW2S.mjs} +10 -9
- package/dist/chunk-AZF6QW2S.mjs.map +1 -0
- package/dist/{chunk-X5STF2Y7.mjs → chunk-F6XJWJIF.mjs} +2 -2
- package/dist/{chunk-SCU75AQJ.mjs → chunk-FXMVCPK5.mjs} +9 -8
- package/dist/chunk-FXMVCPK5.mjs.map +1 -0
- package/dist/{chunk-W4G2GVI7.mjs → chunk-GMWH5UP2.mjs} +8 -8
- package/dist/{chunk-EITLQG4B.mjs → chunk-I7XUEPCF.mjs} +3 -3
- package/dist/{chunk-GBZ3BEXX.mjs → chunk-OPXWQC3M.mjs} +5 -6
- package/dist/chunk-OPXWQC3M.mjs.map +1 -0
- package/dist/{chunk-UWNNN2FG.mjs → chunk-PXCCIW5O.mjs} +3 -3
- package/dist/{chunk-DT5IIM35.mjs → chunk-PXV3LL5A.mjs} +2 -2
- package/dist/{chunk-KRAXUNBU.mjs → chunk-QIRIQ2KT.mjs} +5 -5
- package/dist/{chunk-4MSKF3NP.mjs → chunk-R2TMPSE3.mjs} +3 -3
- package/dist/{chunk-CTBGRQX2.mjs → chunk-V6LGJTK2.mjs} +3 -3
- package/dist/{chunk-4VGCDKI3.mjs → chunk-XDFGVPCC.mjs} +2 -2
- package/dist/{chunk-Z7MBETMY.mjs → chunk-XOD2SYPV.mjs} +3 -3
- package/dist/{chunk-WKDYYNHI.mjs → chunk-YK2YBJMG.mjs} +12 -12
- package/dist/chunk-YK2YBJMG.mjs.map +1 -0
- package/dist/{chunk-O6TYHALA.mjs → chunk-ZG6MHJXG.mjs} +3 -3
- package/dist/{chunk-4L4JX6MZ.mjs → chunk-ZMEZYJLF.mjs} +3 -3
- package/dist/dialog-body.js +2 -3
- package/dist/dialog-body.js.map +1 -1
- package/dist/dialog-body.mjs +3 -3
- package/dist/dialog-close-button.js.map +1 -1
- package/dist/dialog-close-button.mjs +3 -3
- package/dist/dialog-footer.js.map +1 -1
- package/dist/dialog-footer.mjs +3 -3
- package/dist/dialog-header.js +2 -3
- package/dist/dialog-header.js.map +1 -1
- package/dist/dialog-header.mjs +3 -3
- package/dist/dialog-overlay.js.map +1 -1
- package/dist/dialog-overlay.mjs +3 -3
- package/dist/dialog.js +19 -19
- package/dist/dialog.js.map +1 -1
- package/dist/dialog.mjs +18 -18
- package/dist/drawer-body.js +2 -3
- package/dist/drawer-body.js.map +1 -1
- package/dist/drawer-body.mjs +3 -3
- package/dist/drawer-close-button.js.map +1 -1
- package/dist/drawer-close-button.mjs +3 -3
- package/dist/drawer-content.js +6 -5
- package/dist/drawer-content.js.map +1 -1
- package/dist/drawer-content.mjs +5 -5
- package/dist/drawer-drag-bar.js.map +1 -1
- package/dist/drawer-drag-bar.mjs +2 -2
- package/dist/drawer-footer.js.map +1 -1
- package/dist/drawer-footer.mjs +3 -3
- package/dist/drawer-header.js +2 -3
- package/dist/drawer-header.js.map +1 -1
- package/dist/drawer-header.mjs +3 -3
- package/dist/drawer-overlay.js.map +1 -1
- package/dist/drawer-overlay.mjs +3 -3
- package/dist/drawer.js +15 -13
- package/dist/drawer.js.map +1 -1
- package/dist/drawer.mjs +12 -12
- package/dist/index.js +19 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -22
- package/dist/modal-body.js +2 -3
- package/dist/modal-body.js.map +1 -1
- package/dist/modal-body.mjs +2 -2
- package/dist/modal-close-button.js.map +1 -1
- package/dist/modal-close-button.mjs +2 -2
- package/dist/modal-content.js +5 -4
- package/dist/modal-content.js.map +1 -1
- package/dist/modal-content.mjs +4 -4
- package/dist/modal-context.d.mts +3 -2
- package/dist/modal-context.d.ts +3 -2
- package/dist/modal-context.js.map +1 -1
- package/dist/modal-context.mjs +1 -1
- package/dist/modal-footer.js.map +1 -1
- package/dist/modal-footer.mjs +2 -2
- package/dist/modal-header.js +2 -3
- package/dist/modal-header.js.map +1 -1
- package/dist/modal-header.mjs +2 -2
- package/dist/modal-overlay.js.map +1 -1
- package/dist/modal-overlay.mjs +2 -2
- package/dist/modal.js +15 -13
- package/dist/modal.js.map +1 -1
- package/dist/modal.mjs +11 -11
- package/package.json +5 -5
- package/dist/chunk-4SA2BXAV.mjs.map +0 -1
- package/dist/chunk-DWQHOEUG.mjs.map +0 -1
- package/dist/chunk-EPC5EUXN.mjs.map +0 -1
- package/dist/chunk-GBZ3BEXX.mjs.map +0 -1
- package/dist/chunk-SCU75AQJ.mjs.map +0 -1
- package/dist/chunk-WKDYYNHI.mjs.map +0 -1
- /package/dist/{chunk-U2DBPI7Y.mjs.map → chunk-3RGLB7UM.mjs.map} +0 -0
- /package/dist/{chunk-E4FDNJ4R.mjs.map → chunk-5NLJNYIN.mjs.map} +0 -0
- /package/dist/{chunk-CBL7CH2A.mjs.map → chunk-6ZTN6KKG.mjs.map} +0 -0
- /package/dist/{chunk-DH735WKL.mjs.map → chunk-AVLVLAM5.mjs.map} +0 -0
- /package/dist/{chunk-X5STF2Y7.mjs.map → chunk-F6XJWJIF.mjs.map} +0 -0
- /package/dist/{chunk-W4G2GVI7.mjs.map → chunk-GMWH5UP2.mjs.map} +0 -0
- /package/dist/{chunk-EITLQG4B.mjs.map → chunk-I7XUEPCF.mjs.map} +0 -0
- /package/dist/{chunk-UWNNN2FG.mjs.map → chunk-PXCCIW5O.mjs.map} +0 -0
- /package/dist/{chunk-DT5IIM35.mjs.map → chunk-PXV3LL5A.mjs.map} +0 -0
- /package/dist/{chunk-KRAXUNBU.mjs.map → chunk-QIRIQ2KT.mjs.map} +0 -0
- /package/dist/{chunk-4MSKF3NP.mjs.map → chunk-R2TMPSE3.mjs.map} +0 -0
- /package/dist/{chunk-CTBGRQX2.mjs.map → chunk-V6LGJTK2.mjs.map} +0 -0
- /package/dist/{chunk-4VGCDKI3.mjs.map → chunk-XDFGVPCC.mjs.map} +0 -0
- /package/dist/{chunk-Z7MBETMY.mjs.map → chunk-XOD2SYPV.mjs.map} +0 -0
- /package/dist/{chunk-O6TYHALA.mjs.map → chunk-ZG6MHJXG.mjs.map} +0 -0
- /package/dist/{chunk-4L4JX6MZ.mjs.map → chunk-ZMEZYJLF.mjs.map} +0 -0
@@ -1,10 +1,10 @@
|
|
1
1
|
"use client"
|
2
2
|
import {
|
3
3
|
ModalCloseButton
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-PXV3LL5A.mjs";
|
5
5
|
import {
|
6
6
|
useDialog
|
7
|
-
} from "./chunk-
|
7
|
+
} from "./chunk-64A25YOZ.mjs";
|
8
8
|
|
9
9
|
// src/dialog-close-button.tsx
|
10
10
|
import { forwardRef } from "@yamada-ui/core";
|
@@ -32,4 +32,4 @@ DialogCloseButton.__ui__ = "DialogCloseButton";
|
|
32
32
|
export {
|
33
33
|
DialogCloseButton
|
34
34
|
};
|
35
|
-
//# sourceMappingURL=chunk-
|
35
|
+
//# sourceMappingURL=chunk-3RGLB7UM.mjs.map
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use client"
|
2
2
|
import {
|
3
3
|
useDrawer
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-64A25YOZ.mjs";
|
5
5
|
|
6
6
|
// src/drawer-drag-bar.tsx
|
7
7
|
import { forwardRef, ui } from "@yamada-ui/core";
|
@@ -28,4 +28,4 @@ DrawerDragBar.__ui__ = "DrawerDragBar";
|
|
28
28
|
export {
|
29
29
|
DrawerDragBar
|
30
30
|
};
|
31
|
-
//# sourceMappingURL=chunk-
|
31
|
+
//# sourceMappingURL=chunk-5NLJNYIN.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/modal-context.ts"],"sourcesContent":["import type { CSSUIObject } from \"@yamada-ui/core\"\nimport type { RefObject } from \"react\"\nimport type { ModalOptions } from \"./modal\"\nimport { createContext } from \"@yamada-ui/utils\"\n\ninterface ModalContext extends ModalOptions {\n bodyRef: RefObject<HTMLElement>\n headerRef: RefObject<HTMLElement>\n styles: { [key: string]: CSSUIObject | undefined }\n}\n\nexport const [ModalProvider, useModal] = createContext<ModalContext>({\n name: `ModalContext`,\n errorMessage: `useModal returned is 'undefined'. Seems you forgot to wrap the components in \"<Modal />\" `,\n})\n\ninterface DialogContext {\n [key: string]: CSSUIObject | undefined\n}\n\nexport const [DialogProvider, useDialog] = createContext<DialogContext>({\n name: `DialogContext`,\n errorMessage: `useDialog returned is 'undefined'. Seems you forgot to wrap the components in \"<Dialog />\" `,\n})\n\ninterface DrawerContext {\n [key: string]: CSSUIObject | undefined\n}\n\nexport const [DrawerProvider, useDrawer] = createContext<DrawerContext>({\n name: `DrawerContext`,\n errorMessage: `useDrawer returned is 'undefined'. Seems you forgot to wrap the components in \"<Drawer />\" `,\n})\n"],"mappings":";;;AAGA,SAAS,qBAAqB;AAQvB,IAAM,CAAC,eAAe,QAAQ,IAAI,cAA4B;AAAA,EACnE,MAAM;AAAA,EACN,cAAc;AAChB,CAAC;AAMM,IAAM,CAAC,gBAAgB,SAAS,IAAI,cAA6B;AAAA,EACtE,MAAM;AAAA,EACN,cAAc;AAChB,CAAC;AAMM,IAAM,CAAC,gBAAgB,SAAS,IAAI,cAA6B;AAAA,EACtE,MAAM;AAAA,EACN,cAAc;AAChB,CAAC;","names":[]}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
"use client"
|
2
2
|
import {
|
3
3
|
ModalHeader
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-A64FIX7X.mjs";
|
5
5
|
import {
|
6
6
|
useDialog
|
7
|
-
} from "./chunk-
|
7
|
+
} from "./chunk-64A25YOZ.mjs";
|
8
8
|
|
9
9
|
// src/dialog-header.tsx
|
10
10
|
import { forwardRef } from "@yamada-ui/core";
|
@@ -31,4 +31,4 @@ DialogHeader.__ui__ = "DialogHeader";
|
|
31
31
|
export {
|
32
32
|
DialogHeader
|
33
33
|
};
|
34
|
-
//# sourceMappingURL=chunk-
|
34
|
+
//# sourceMappingURL=chunk-6ZTN6KKG.mjs.map
|
@@ -1,15 +1,15 @@
|
|
1
1
|
"use client"
|
2
2
|
import {
|
3
3
|
useModal
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-64A25YOZ.mjs";
|
5
5
|
|
6
6
|
// src/modal-header.tsx
|
7
7
|
import { forwardRef, ui } from "@yamada-ui/core";
|
8
|
-
import { cx } from "@yamada-ui/utils";
|
8
|
+
import { cx, mergeRefs } from "@yamada-ui/utils";
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
10
10
|
var ModalHeader = forwardRef(
|
11
11
|
({ className, __css, ...rest }, ref) => {
|
12
|
-
const {
|
12
|
+
const { headerRef, styles } = useModal();
|
13
13
|
const css = {
|
14
14
|
alignItems: "center",
|
15
15
|
display: "flex",
|
@@ -19,8 +19,7 @@ var ModalHeader = forwardRef(
|
|
19
19
|
return /* @__PURE__ */ jsx(
|
20
20
|
ui.header,
|
21
21
|
{
|
22
|
-
|
23
|
-
ref,
|
22
|
+
ref: mergeRefs(headerRef, ref),
|
24
23
|
className: cx("ui-modal__header", className),
|
25
24
|
__css: css,
|
26
25
|
...rest
|
@@ -34,4 +33,4 @@ ModalHeader.__ui__ = "ModalHeader";
|
|
34
33
|
export {
|
35
34
|
ModalHeader
|
36
35
|
};
|
37
|
-
//# sourceMappingURL=chunk-
|
36
|
+
//# sourceMappingURL=chunk-A64FIX7X.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/modal-header.tsx"],"sourcesContent":["import type { CSSUIObject, HTMLUIProps } from \"@yamada-ui/core\"\nimport { forwardRef, ui } from \"@yamada-ui/core\"\nimport { cx, mergeRefs } from \"@yamada-ui/utils\"\nimport { useModal } from \"./modal-context\"\n\nexport interface ModalHeaderProps extends HTMLUIProps<\"header\"> {}\n\nexport const ModalHeader = forwardRef<ModalHeaderProps, \"header\">(\n ({ className, __css, ...rest }, ref) => {\n const { headerRef, styles } = useModal()\n\n const css: CSSUIObject = {\n alignItems: \"center\",\n display: \"flex\",\n justifyContent: \"flex-start\",\n ...(__css ? __css : styles.header),\n }\n\n return (\n <ui.header\n ref={mergeRefs(headerRef, ref)}\n className={cx(\"ui-modal__header\", className)}\n __css={css}\n {...rest}\n />\n )\n },\n)\n\nModalHeader.displayName = \"ModalHeader\"\nModalHeader.__ui__ = \"ModalHeader\"\n"],"mappings":";;;;;;AACA,SAAS,YAAY,UAAU;AAC/B,SAAS,IAAI,iBAAiB;AAiBxB;AAZC,IAAM,cAAc;AAAA,EACzB,CAAC,EAAE,WAAW,OAAO,GAAG,KAAK,GAAG,QAAQ;AACtC,UAAM,EAAE,WAAW,OAAO,IAAI,SAAS;AAEvC,UAAM,MAAmB;AAAA,MACvB,YAAY;AAAA,MACZ,SAAS;AAAA,MACT,gBAAgB;AAAA,MAChB,GAAI,QAAQ,QAAQ,OAAO;AAAA,IAC7B;AAEA,WACE;AAAA,MAAC,GAAG;AAAA,MAAH;AAAA,QACC,KAAK,UAAU,WAAW,GAAG;AAAA,QAC7B,WAAW,GAAG,oBAAoB,SAAS;AAAA,QAC3C,OAAO;AAAA,QACN,GAAG;AAAA;AAAA,IACN;AAAA,EAEJ;AACF;AAEA,YAAY,cAAc;AAC1B,YAAY,SAAS;","names":[]}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
"use client"
|
2
2
|
import {
|
3
3
|
ModalFooter
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-F6XJWJIF.mjs";
|
5
5
|
import {
|
6
6
|
useDrawer
|
7
|
-
} from "./chunk-
|
7
|
+
} from "./chunk-64A25YOZ.mjs";
|
8
8
|
|
9
9
|
// src/drawer-footer.tsx
|
10
10
|
import { forwardRef } from "@yamada-ui/core";
|
@@ -31,4 +31,4 @@ DrawerFooter.__ui__ = "DrawerFooter";
|
|
31
31
|
export {
|
32
32
|
DrawerFooter
|
33
33
|
};
|
34
|
-
//# sourceMappingURL=chunk-
|
34
|
+
//# sourceMappingURL=chunk-AVLVLAM5.mjs.map
|
@@ -1,14 +1,14 @@
|
|
1
1
|
"use client"
|
2
2
|
import {
|
3
3
|
DrawerDragBar
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-5NLJNYIN.mjs";
|
5
5
|
import {
|
6
6
|
DrawerCloseButton
|
7
|
-
} from "./chunk-
|
7
|
+
} from "./chunk-PXCCIW5O.mjs";
|
8
8
|
import {
|
9
9
|
useDrawer,
|
10
10
|
useModal
|
11
|
-
} from "./chunk-
|
11
|
+
} from "./chunk-64A25YOZ.mjs";
|
12
12
|
|
13
13
|
// src/drawer-content.tsx
|
14
14
|
import { ui } from "@yamada-ui/core";
|
@@ -33,7 +33,8 @@ var DrawerContent = motionForwardRef(
|
|
33
33
|
blankForDragProps,
|
34
34
|
...rest
|
35
35
|
}, ref) => {
|
36
|
-
|
36
|
+
var _a, _b;
|
37
|
+
let { bodyRef, duration, headerRef, isOpen, open, onClose } = useModal();
|
37
38
|
open != null ? open : open = isOpen;
|
38
39
|
const styles = useDrawer();
|
39
40
|
const placement = useValue(_placement);
|
@@ -43,8 +44,8 @@ var DrawerContent = motionForwardRef(
|
|
43
44
|
DrawerCloseButton
|
44
45
|
);
|
45
46
|
const blankForDragBg = useMemo(() => {
|
46
|
-
var
|
47
|
-
const propBg = (_c = (
|
47
|
+
var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j;
|
48
|
+
const propBg = (_c = (_b2 = (_a2 = rest.backgroundColor) != null ? _a2 : rest.bgColor) != null ? _b2 : rest.background) != null ? _c : rest.bg;
|
48
49
|
const styleBg = (_j = (_h = (_f = (_d = styles.container) == null ? void 0 : _d.backgroundColor) != null ? _f : (_e = styles.container) == null ? void 0 : _e.bgColor) != null ? _h : (_g = styles.container) == null ? void 0 : _g.background) != null ? _j : (_i = styles.container) == null ? void 0 : _i.bg;
|
49
50
|
const computedBg = propBg != null ? propBg : styleBg;
|
50
51
|
return isArray(computedBg) ? computedBg : [computedBg];
|
@@ -139,8 +140,8 @@ var DrawerContent = motionForwardRef(
|
|
139
140
|
{
|
140
141
|
ref,
|
141
142
|
className: cx("ui-drawer", className),
|
142
|
-
"aria-describedby":
|
143
|
-
"aria-labelledby":
|
143
|
+
"aria-describedby": (_a = bodyRef.current) == null ? void 0 : _a.id,
|
144
|
+
"aria-labelledby": (_b = headerRef.current) == null ? void 0 : _b.id,
|
144
145
|
"aria-modal": "true",
|
145
146
|
drag: closeOnDrag ? getDragDirection() : false,
|
146
147
|
dragConstraints: getDragDirectionRestriction(dragConstraints),
|
@@ -185,4 +186,4 @@ DrawerContent.__ui__ = "DrawerContent";
|
|
185
186
|
export {
|
186
187
|
DrawerContent
|
187
188
|
};
|
188
|
-
//# sourceMappingURL=chunk-
|
189
|
+
//# sourceMappingURL=chunk-AZF6QW2S.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/drawer-content.tsx"],"sourcesContent":["import type { CSSUIObject, ThemeProps } from \"@yamada-ui/core\"\nimport type { MotionPanInfo } from \"@yamada-ui/motion\"\nimport type { Merge } from \"@yamada-ui/utils\"\nimport type { DrawerProps } from \"./drawer\"\nimport { ui } from \"@yamada-ui/core\"\nimport { motionForwardRef } from \"@yamada-ui/motion\"\nimport { Slide } from \"@yamada-ui/transitions\"\nimport { useValue } from \"@yamada-ui/use-value\"\nimport { cx, findChildren, getValidChildren, isArray } from \"@yamada-ui/utils\"\nimport { useCallback, useMemo } from \"react\"\nimport { DrawerCloseButton } from \"./drawer-close-button\"\nimport { DrawerDragBar } from \"./drawer-drag-bar\"\nimport { useDrawer, useModal } from \"./modal-context\"\n\nexport interface DrawerContentProps\n extends Merge<\n Omit<DrawerProps, \"isOpen\" | \"open\" | \"placement\" | keyof ThemeProps>,\n Required<\n Pick<\n DrawerProps,\n | \"dragConstraints\"\n | \"dragElastic\"\n | \"dragOffset\"\n | \"dragVelocity\"\n | \"placement\"\n | \"placement\"\n >\n >\n > {}\n\nexport const DrawerContent = motionForwardRef<DrawerContentProps, \"div\">(\n (\n {\n className,\n children,\n closeOnDrag,\n dragConstraints,\n dragElastic,\n dragOffset,\n dragVelocity,\n placement: _placement,\n withCloseButton,\n withDragBar,\n blankForDragProps,\n ...rest\n },\n ref,\n ) => {\n let { bodyRef, duration, headerRef, isOpen, open, onClose } = useModal()\n\n open ??= isOpen\n\n const styles = useDrawer()\n const placement = useValue(_placement)\n\n const validChildren = getValidChildren(children)\n\n const [customDrawerCloseButton, ...cloneChildren] = findChildren(\n validChildren,\n DrawerCloseButton,\n )\n\n const blankForDragBg = useMemo(() => {\n const propBg =\n rest.backgroundColor ?? rest.bgColor ?? rest.background ?? rest.bg\n const styleBg =\n styles.container?.backgroundColor ??\n styles.container?.bgColor ??\n styles.container?.background ??\n styles.container?.bg\n const computedBg = propBg ?? styleBg\n\n return isArray(computedBg) ? computedBg : [computedBg]\n }, [rest, styles])\n\n const blankForDrag = useMemo<CSSUIObject>(() => {\n let position: CSSUIObject = {}\n\n switch (placement) {\n case \"top\":\n position = { left: 0, right: 0, top: \"calc(-100dvh + 1px)\" }\n break\n\n case \"bottom\":\n position = { bottom: \"calc(-100dvh + 1px)\", left: 0, right: 0 }\n break\n\n case \"left\":\n position = { bottom: 0, left: \"calc(-100% + 1px)\", top: 0 }\n break\n\n case \"right\":\n position = { bottom: 0, right: \"calc(-100% + 1px)\", top: 0 }\n break\n }\n\n const [lightBg, darkBg] = blankForDragBg\n\n return {\n _after: {\n bg: lightBg,\n content: '\"\"',\n display: \"block\",\n h: \"100dvh\",\n position: \"absolute\",\n w: \"100%\",\n ...position,\n ...blankForDragProps,\n },\n _dark: {\n _after: {\n bg: darkBg,\n },\n },\n }\n }, [placement, blankForDragBg, blankForDragProps])\n\n const css = useMemo<CSSUIObject>(\n () => ({\n display: \"flex\",\n flexDirection:\n placement === \"top\" || placement === \"bottom\" ? \"column\" : \"row\",\n outline: 0,\n ...(closeOnDrag ? blankForDrag : {}),\n ...styles.container,\n }),\n [blankForDrag, closeOnDrag, placement, styles],\n )\n\n const getDragDirectionRestriction = useCallback(\n (value: number) => {\n switch (placement) {\n case \"top\":\n return { bottom: value }\n case \"bottom\":\n return { top: value }\n case \"left\":\n return { right: value }\n case \"right\":\n return { left: value }\n }\n },\n [placement],\n )\n\n const getDragDirection = useCallback(() => {\n switch (placement) {\n case \"top\":\n case \"bottom\":\n return \"y\"\n case \"left\":\n case \"right\":\n return \"x\"\n }\n }, [placement])\n\n const isCloseByDragInfo = useCallback(\n (info: MotionPanInfo) => {\n switch (placement) {\n case \"top\":\n return (\n info.velocity.y <= dragVelocity * -1 ||\n info.offset.y <= dragOffset * -1\n )\n case \"bottom\":\n return (\n info.velocity.y >= dragVelocity || info.offset.y >= dragOffset\n )\n case \"left\":\n return (\n info.velocity.x <= dragVelocity * -1 ||\n info.offset.x <= dragOffset * -1\n )\n case \"right\":\n return (\n info.velocity.x >= dragVelocity || info.offset.x >= dragOffset\n )\n }\n },\n [placement, dragVelocity, dragOffset],\n )\n\n return (\n <Slide\n ref={ref}\n className={cx(\"ui-drawer\", className)}\n aria-describedby={bodyRef.current?.id}\n aria-labelledby={headerRef.current?.id}\n aria-modal=\"true\"\n drag={closeOnDrag ? getDragDirection() : false}\n dragConstraints={getDragDirectionRestriction(dragConstraints)}\n dragElastic={getDragDirectionRestriction(dragElastic)}\n dragMomentum={false}\n dragSnapToOrigin\n duration={duration}\n isOpen={open}\n placement={placement}\n role=\"dialog\"\n tabIndex={-1}\n onDragEnd={(_, info) => {\n if (isCloseByDragInfo(info)) onClose?.()\n }}\n __css={css}\n {...rest}\n >\n {customDrawerCloseButton ??\n (withCloseButton && onClose ? <DrawerCloseButton /> : null)}\n\n {withDragBar &&\n closeOnDrag &&\n (placement === \"bottom\" || placement === \"right\") ? (\n <DrawerDragBar />\n ) : null}\n\n <ui.div\n className=\"ui-drawer__inner\"\n __css={{\n display: \"flex\",\n flexDirection: \"column\",\n w: \"100%\",\n ...styles.inner,\n }}\n >\n {cloneChildren}\n </ui.div>\n\n {withDragBar &&\n closeOnDrag &&\n (placement === \"top\" || placement === \"left\") ? (\n <DrawerDragBar />\n ) : null}\n </Slide>\n )\n },\n)\n\nDrawerContent.displayName = \"DrawerContent\"\nDrawerContent.__ui__ = \"DrawerContent\"\n"],"mappings":";;;;;;;;;;;;;AAIA,SAAS,UAAU;AACnB,SAAS,wBAAwB;AACjC,SAAS,aAAa;AACtB,SAAS,gBAAgB;AACzB,SAAS,IAAI,cAAc,kBAAkB,eAAe;AAC5D,SAAS,aAAa,eAAe;AA8K/B,SAuBkC,KAvBlC;AAzJC,IAAM,gBAAgB;AAAA,EAC3B,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,GACA,QACG;AA/CP;AAgDI,QAAI,EAAE,SAAS,UAAU,WAAW,QAAQ,MAAM,QAAQ,IAAI,SAAS;AAEvE,iCAAS;AAET,UAAM,SAAS,UAAU;AACzB,UAAM,YAAY,SAAS,UAAU;AAErC,UAAM,gBAAgB,iBAAiB,QAAQ;AAE/C,UAAM,CAAC,yBAAyB,GAAG,aAAa,IAAI;AAAA,MAClD;AAAA,MACA;AAAA,IACF;AAEA,UAAM,iBAAiB,QAAQ,MAAM;AA9DzC,UAAAA,KAAAC,KAAA;AA+DM,YAAM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ACnC,oBAAiB,eAAU,YAAV,mBAAmB;AAAA,QACpC,cAAW;AAAA,QACX,MAAM,cAAc,iBAAiB,IAAI;AAAA,QACzC,iBAAiB,4BAA4B,eAAe;AAAA,QAC5D,aAAa,4BAA4B,WAAW;AAAA,QACpD,cAAc;AAAA,QACd,kBAAgB;AAAA,QAChB;AAAA,QACA,QAAQ;AAAA,QACR;AAAA,QACA,MAAK;AAAA,QACL,UAAU;AAAA,QACV,WAAW,CAAC,GAAG,SAAS;AACtB,cAAI,kBAAkB,IAAI,EAAG;AAAA,QAC/B;AAAA,QACA,OAAO;AAAA,QACN,GAAG;AAAA,QAEH;AAAA,sEACE,mBAAmB,UAAU,oBAAC,qBAAkB,IAAK;AAAA,UAEvD,eACD,gBACC,cAAc,YAAY,cAAc,WACvC,oBAAC,iBAAc,IACb;AAAA,UAEJ;AAAA,YAAC,GAAG;AAAA,YAAH;AAAA,cACC,WAAU;AAAA,cACV,OAAO;AAAA,gBACL,SAAS;AAAA,gBACT,eAAe;AAAA,gBACf,GAAG;AAAA,gBACH,GAAG,OAAO;AAAA,cACZ;AAAA,cAEC;AAAA;AAAA,UACH;AAAA,UAEC,eACD,gBACC,cAAc,SAAS,cAAc,UACpC,oBAAC,iBAAc,IACb;AAAA;AAAA;AAAA,IACN;AAAA,EAEJ;AACF;AAEA,cAAc,cAAc;AAC5B,cAAc,SAAS;","names":["_a","_b"]}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use client"
|
2
2
|
import {
|
3
3
|
useModal
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-64A25YOZ.mjs";
|
5
5
|
|
6
6
|
// src/modal-footer.tsx
|
7
7
|
import { forwardRef, ui } from "@yamada-ui/core";
|
@@ -33,4 +33,4 @@ ModalFooter.__ui__ = "ModalFooter";
|
|
33
33
|
export {
|
34
34
|
ModalFooter
|
35
35
|
};
|
36
|
-
//# sourceMappingURL=chunk-
|
36
|
+
//# sourceMappingURL=chunk-F6XJWJIF.mjs.map
|
@@ -1,13 +1,13 @@
|
|
1
1
|
"use client"
|
2
2
|
import {
|
3
3
|
DialogCloseButton
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-3RGLB7UM.mjs";
|
5
5
|
import {
|
6
6
|
ModalCloseButton
|
7
|
-
} from "./chunk-
|
7
|
+
} from "./chunk-PXV3LL5A.mjs";
|
8
8
|
import {
|
9
9
|
useModal
|
10
|
-
} from "./chunk-
|
10
|
+
} from "./chunk-64A25YOZ.mjs";
|
11
11
|
|
12
12
|
// src/modal-content.tsx
|
13
13
|
import { motion, motionForwardRef } from "@yamada-ui/motion";
|
@@ -45,11 +45,12 @@ var getModalContentProps = (animation = "scale", duration) => {
|
|
45
45
|
};
|
46
46
|
var ModalContent = motionForwardRef(
|
47
47
|
({ className, children, __css, ...rest }, ref) => {
|
48
|
+
var _a, _b;
|
48
49
|
const {
|
49
50
|
animation,
|
50
|
-
|
51
|
+
bodyRef,
|
51
52
|
duration,
|
52
|
-
|
53
|
+
headerRef,
|
53
54
|
scrollBehavior,
|
54
55
|
styles,
|
55
56
|
withCloseButton,
|
@@ -76,8 +77,8 @@ var ModalContent = motionForwardRef(
|
|
76
77
|
{
|
77
78
|
ref,
|
78
79
|
className: cx("ui-modal", className),
|
79
|
-
"aria-describedby":
|
80
|
-
"aria-labelledby":
|
80
|
+
"aria-describedby": (_a = bodyRef.current) == null ? void 0 : _a.id,
|
81
|
+
"aria-labelledby": (_b = headerRef.current) == null ? void 0 : _b.id,
|
81
82
|
"aria-modal": "true",
|
82
83
|
role: "dialog",
|
83
84
|
tabIndex: -1,
|
@@ -98,4 +99,4 @@ ModalContent.__ui__ = "ModalContent";
|
|
98
99
|
export {
|
99
100
|
ModalContent
|
100
101
|
};
|
101
|
-
//# sourceMappingURL=chunk-
|
102
|
+
//# sourceMappingURL=chunk-FXMVCPK5.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/modal-content.tsx"],"sourcesContent":["import type { CSSUIObject } from \"@yamada-ui/core\"\nimport type { MotionProps, MotionTransitionProps } from \"@yamada-ui/motion\"\nimport type { PropsWithChildren } from \"react\"\nimport type { ModalProps } from \"./modal\"\nimport { motion, motionForwardRef } from \"@yamada-ui/motion\"\nimport { scaleFadeProps, slideFadeProps } from \"@yamada-ui/transitions\"\nimport { cx, findChildren, getValidChildren } from \"@yamada-ui/utils\"\nimport { DialogCloseButton } from \"./dialog-close-button\"\nimport { ModalCloseButton } from \"./modal-close-button\"\nimport { useModal } from \"./modal-context\"\n\nconst getModalContentProps = (\n animation: ModalProps[\"animation\"] = \"scale\",\n duration?: MotionTransitionProps[\"duration\"],\n) => {\n switch (animation) {\n case \"scale\":\n return {\n ...scaleFadeProps,\n custom: { duration, reverse: true, scale: 0.95 },\n }\n case \"top\":\n return {\n ...slideFadeProps,\n custom: { duration, offsetY: -16, reverse: true },\n }\n case \"right\":\n return {\n ...slideFadeProps,\n custom: { duration, offsetX: 16, reverse: true },\n }\n case \"left\":\n return {\n ...slideFadeProps,\n custom: { duration, offsetX: -16, reverse: true },\n }\n case \"bottom\":\n return {\n ...slideFadeProps,\n custom: { duration, offsetY: 16, reverse: true },\n }\n }\n}\n\nexport interface ModalContentProps\n extends Omit<\n MotionProps<\"section\">,\n \"animation\" | \"children\" | \"scrollBehavior\" | \"transition\"\n >,\n PropsWithChildren {}\n\nexport const ModalContent = motionForwardRef<ModalContentProps, \"section\">(\n ({ className, children, __css, ...rest }, ref) => {\n const {\n animation,\n bodyRef,\n duration,\n headerRef,\n scrollBehavior,\n styles,\n withCloseButton,\n onClose,\n } = useModal()\n\n const validChildren = getValidChildren(children)\n\n const [customModalCloseButton, ...cloneChildren] = findChildren(\n validChildren,\n ModalCloseButton,\n DialogCloseButton,\n )\n\n const props =\n animation !== \"none\" ? getModalContentProps(animation, duration) : {}\n\n const css: CSSUIObject = {\n display: \"flex\",\n flexDirection: \"column\",\n maxH: \"100%\",\n outline: 0,\n overflow: scrollBehavior === \"inside\" ? \"hidden\" : \"auto\",\n position: \"relative\",\n ...(__css ? __css : styles.container),\n }\n\n return (\n <motion.section\n ref={ref}\n className={cx(\"ui-modal\", className)}\n aria-describedby={bodyRef.current?.id}\n aria-labelledby={headerRef.current?.id}\n aria-modal=\"true\"\n role=\"dialog\"\n tabIndex={-1}\n __css={css}\n {...props}\n {...rest}\n >\n {customModalCloseButton ??\n (withCloseButton && onClose ? <ModalCloseButton /> : null)}\n\n {cloneChildren}\n </motion.section>\n )\n },\n)\n\nModalContent.displayName = \"ModalContent\"\nModalContent.__ui__ = \"ModalContent\"\n"],"mappings":";;;;;;;;;;;;AAIA,SAAS,QAAQ,wBAAwB;AACzC,SAAS,gBAAgB,sBAAsB;AAC/C,SAAS,IAAI,cAAc,wBAAwB;AAgF7C,SAakC,KAblC;AA3EN,IAAM,uBAAuB,CAC3B,YAAqC,SACrC,aACG;AACH,UAAQ,WAAW;AAAA,IACjB,KAAK;AACH,aAAO;AAAA,QACL,GAAG;AAAA,QACH,QAAQ,EAAE,UAAU,SAAS,MAAM,OAAO,KAAK;AAAA,MACjD;AAAA,IACF,KAAK;AACH,aAAO;AAAA,QACL,GAAG;AAAA,QACH,QAAQ,EAAE,UAAU,SAAS,KAAK,SAAS,KAAK;AAAA,MAClD;AAAA,IACF,KAAK;AACH,aAAO;AAAA,QACL,GAAG;AAAA,QACH,QAAQ,EAAE,UAAU,SAAS,IAAI,SAAS,KAAK;AAAA,MACjD;AAAA,IACF,KAAK;AACH,aAAO;AAAA,QACL,GAAG;AAAA,QACH,QAAQ,EAAE,UAAU,SAAS,KAAK,SAAS,KAAK;AAAA,MAClD;AAAA,IACF,KAAK;AACH,aAAO;AAAA,QACL,GAAG;AAAA,QACH,QAAQ,EAAE,UAAU,SAAS,IAAI,SAAS,KAAK;AAAA,MACjD;AAAA,EACJ;AACF;AASO,IAAM,eAAe;AAAA,EAC1B,CAAC,EAAE,WAAW,UAAU,OAAO,GAAG,KAAK,GAAG,QAAQ;AApDpD;AAqDI,UAAM;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF,IAAI,SAAS;AAEb,UAAM,gBAAgB,iBAAiB,QAAQ;AAE/C,UAAM,CAAC,wBAAwB,GAAG,aAAa,IAAI;AAAA,MACjD;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAEA,UAAM,QACJ,cAAc,SAAS,qBAAqB,WAAW,QAAQ,IAAI,CAAC;AAEtE,UAAM,MAAmB;AAAA,MACvB,SAAS;AAAA,MACT,eAAe;AAAA,MACf,MAAM;AAAA,MACN,SAAS;AAAA,MACT,UAAU,mBAAmB,WAAW,WAAW;AAAA,MACnD,UAAU;AAAA,MACV,GAAI,QAAQ,QAAQ,OAAO;AAAA,IAC7B;AAEA,WACE;AAAA,MAAC,OAAO;AAAA,MAAP;AAAA,QACC;AAAA,QACA,WAAW,GAAG,YAAY,SAAS;AAAA,QACnC,qBAAkB,aAAQ,YAAR,mBAAiB;AAAA,QACnC,oBAAiB,eAAU,YAAV,mBAAmB;AAAA,QACpC,cAAW;AAAA,QACX,MAAK;AAAA,QACL,UAAU;AAAA,QACV,OAAO;AAAA,QACN,GAAG;AAAA,QACH,GAAG;AAAA,QAEH;AAAA,oEACE,mBAAmB,UAAU,oBAAC,oBAAiB,IAAK;AAAA,UAEtD;AAAA;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,aAAa,cAAc;AAC3B,aAAa,SAAS;","names":[]}
|
@@ -1,25 +1,25 @@
|
|
1
1
|
"use client"
|
2
2
|
import {
|
3
3
|
Modal
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-YK2YBJMG.mjs";
|
5
5
|
import {
|
6
6
|
DialogBody
|
7
|
-
} from "./chunk-
|
7
|
+
} from "./chunk-I7XUEPCF.mjs";
|
8
8
|
import {
|
9
9
|
DialogCloseButton
|
10
|
-
} from "./chunk-
|
10
|
+
} from "./chunk-3RGLB7UM.mjs";
|
11
11
|
import {
|
12
12
|
DialogFooter
|
13
|
-
} from "./chunk-
|
13
|
+
} from "./chunk-XOD2SYPV.mjs";
|
14
14
|
import {
|
15
15
|
DialogHeader
|
16
|
-
} from "./chunk-
|
16
|
+
} from "./chunk-6ZTN6KKG.mjs";
|
17
17
|
import {
|
18
18
|
DialogOverlay
|
19
|
-
} from "./chunk-
|
19
|
+
} from "./chunk-V6LGJTK2.mjs";
|
20
20
|
import {
|
21
21
|
DialogProvider
|
22
|
-
} from "./chunk-
|
22
|
+
} from "./chunk-64A25YOZ.mjs";
|
23
23
|
|
24
24
|
// src/dialog.tsx
|
25
25
|
import { Button } from "@yamada-ui/button";
|
@@ -138,4 +138,4 @@ Dialog.__ui__ = "Dialog";
|
|
138
138
|
export {
|
139
139
|
Dialog
|
140
140
|
};
|
141
|
-
//# sourceMappingURL=chunk-
|
141
|
+
//# sourceMappingURL=chunk-GMWH5UP2.mjs.map
|
@@ -1,10 +1,10 @@
|
|
1
1
|
"use client"
|
2
2
|
import {
|
3
3
|
ModalBody
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-OPXWQC3M.mjs";
|
5
5
|
import {
|
6
6
|
useDialog
|
7
|
-
} from "./chunk-
|
7
|
+
} from "./chunk-64A25YOZ.mjs";
|
8
8
|
|
9
9
|
// src/dialog-body.tsx
|
10
10
|
import { forwardRef } from "@yamada-ui/core";
|
@@ -31,4 +31,4 @@ DialogBody.__ui__ = "DialogBody";
|
|
31
31
|
export {
|
32
32
|
DialogBody
|
33
33
|
};
|
34
|
-
//# sourceMappingURL=chunk-
|
34
|
+
//# sourceMappingURL=chunk-I7XUEPCF.mjs.map
|
@@ -1,15 +1,15 @@
|
|
1
1
|
"use client"
|
2
2
|
import {
|
3
3
|
useModal
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-64A25YOZ.mjs";
|
5
5
|
|
6
6
|
// src/modal-body.tsx
|
7
7
|
import { forwardRef, ui } from "@yamada-ui/core";
|
8
|
-
import { cx } from "@yamada-ui/utils";
|
8
|
+
import { cx, mergeRefs } from "@yamada-ui/utils";
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
10
10
|
var ModalBody = forwardRef(
|
11
11
|
({ className, __css, ...rest }, ref) => {
|
12
|
-
const {
|
12
|
+
const { bodyRef, scrollBehavior, styles } = useModal();
|
13
13
|
const css = {
|
14
14
|
alignItems: "flex-start",
|
15
15
|
display: "flex",
|
@@ -20,8 +20,7 @@ var ModalBody = forwardRef(
|
|
20
20
|
return /* @__PURE__ */ jsx(
|
21
21
|
ui.div,
|
22
22
|
{
|
23
|
-
|
24
|
-
ref,
|
23
|
+
ref: mergeRefs(bodyRef, ref),
|
25
24
|
className: cx("ui-modal__body", className),
|
26
25
|
__css: css,
|
27
26
|
...rest
|
@@ -35,4 +34,4 @@ ModalBody.__ui__ = "ModalBody";
|
|
35
34
|
export {
|
36
35
|
ModalBody
|
37
36
|
};
|
38
|
-
//# sourceMappingURL=chunk-
|
37
|
+
//# sourceMappingURL=chunk-OPXWQC3M.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/modal-body.tsx"],"sourcesContent":["import type { CSSUIObject, HTMLUIProps } from \"@yamada-ui/core\"\nimport { forwardRef, ui } from \"@yamada-ui/core\"\nimport { cx, mergeRefs } from \"@yamada-ui/utils\"\nimport { useModal } from \"./modal-context\"\n\nexport interface ModalBodyProps extends HTMLUIProps {}\n\nexport const ModalBody = forwardRef<ModalBodyProps, \"div\">(\n ({ className, __css, ...rest }, ref) => {\n const { bodyRef, scrollBehavior, styles } = useModal()\n\n const css: CSSUIObject = {\n alignItems: \"flex-start\",\n display: \"flex\",\n flexDirection: \"column\",\n overflow: scrollBehavior === \"inside\" ? \"auto\" : undefined,\n ...(__css ? __css : styles.body),\n }\n\n return (\n <ui.div\n ref={mergeRefs(bodyRef, ref)}\n className={cx(\"ui-modal__body\", className)}\n __css={css}\n {...rest}\n />\n )\n },\n)\n\nModalBody.displayName = \"ModalBody\"\nModalBody.__ui__ = \"ModalBody\"\n"],"mappings":";;;;;;AACA,SAAS,YAAY,UAAU;AAC/B,SAAS,IAAI,iBAAiB;AAkBxB;AAbC,IAAM,YAAY;AAAA,EACvB,CAAC,EAAE,WAAW,OAAO,GAAG,KAAK,GAAG,QAAQ;AACtC,UAAM,EAAE,SAAS,gBAAgB,OAAO,IAAI,SAAS;AAErD,UAAM,MAAmB;AAAA,MACvB,YAAY;AAAA,MACZ,SAAS;AAAA,MACT,eAAe;AAAA,MACf,UAAU,mBAAmB,WAAW,SAAS;AAAA,MACjD,GAAI,QAAQ,QAAQ,OAAO;AAAA,IAC7B;AAEA,WACE;AAAA,MAAC,GAAG;AAAA,MAAH;AAAA,QACC,KAAK,UAAU,SAAS,GAAG;AAAA,QAC3B,WAAW,GAAG,kBAAkB,SAAS;AAAA,QACzC,OAAO;AAAA,QACN,GAAG;AAAA;AAAA,IACN;AAAA,EAEJ;AACF;AAEA,UAAU,cAAc;AACxB,UAAU,SAAS;","names":[]}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
"use client"
|
2
2
|
import {
|
3
3
|
ModalCloseButton
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-PXV3LL5A.mjs";
|
5
5
|
import {
|
6
6
|
useDrawer
|
7
|
-
} from "./chunk-
|
7
|
+
} from "./chunk-64A25YOZ.mjs";
|
8
8
|
|
9
9
|
// src/drawer-close-button.tsx
|
10
10
|
import { forwardRef } from "@yamada-ui/core";
|
@@ -31,4 +31,4 @@ DrawerCloseButton.__ui__ = "DrawerCloseButton";
|
|
31
31
|
export {
|
32
32
|
DrawerCloseButton
|
33
33
|
};
|
34
|
-
//# sourceMappingURL=chunk-
|
34
|
+
//# sourceMappingURL=chunk-PXCCIW5O.mjs.map
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use client"
|
2
2
|
import {
|
3
3
|
useModal
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-64A25YOZ.mjs";
|
5
5
|
|
6
6
|
// src/modal-close-button.tsx
|
7
7
|
import { CloseButton } from "@yamada-ui/close-button";
|
@@ -37,4 +37,4 @@ ModalCloseButton.__ui__ = "ModalCloseButton";
|
|
37
37
|
export {
|
38
38
|
ModalCloseButton
|
39
39
|
};
|
40
|
-
//# sourceMappingURL=chunk-
|
40
|
+
//# sourceMappingURL=chunk-PXV3LL5A.mjs.map
|
@@ -1,16 +1,16 @@
|
|
1
1
|
"use client"
|
2
2
|
import {
|
3
3
|
Modal
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-YK2YBJMG.mjs";
|
5
5
|
import {
|
6
6
|
DrawerContent
|
7
|
-
} from "./chunk-
|
7
|
+
} from "./chunk-AZF6QW2S.mjs";
|
8
8
|
import {
|
9
9
|
DrawerOverlay
|
10
|
-
} from "./chunk-
|
10
|
+
} from "./chunk-ZMEZYJLF.mjs";
|
11
11
|
import {
|
12
12
|
DrawerProvider
|
13
|
-
} from "./chunk-
|
13
|
+
} from "./chunk-64A25YOZ.mjs";
|
14
14
|
|
15
15
|
// src/drawer.tsx
|
16
16
|
import { omitThemeProps, useComponentMultiStyle } from "@yamada-ui/core";
|
@@ -118,4 +118,4 @@ Drawer.__ui__ = "Drawer";
|
|
118
118
|
export {
|
119
119
|
Drawer
|
120
120
|
};
|
121
|
-
//# sourceMappingURL=chunk-
|
121
|
+
//# sourceMappingURL=chunk-QIRIQ2KT.mjs.map
|
@@ -1,10 +1,10 @@
|
|
1
1
|
"use client"
|
2
2
|
import {
|
3
3
|
ModalBody
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-OPXWQC3M.mjs";
|
5
5
|
import {
|
6
6
|
useDrawer
|
7
|
-
} from "./chunk-
|
7
|
+
} from "./chunk-64A25YOZ.mjs";
|
8
8
|
|
9
9
|
// src/drawer-body.tsx
|
10
10
|
import { forwardRef } from "@yamada-ui/core";
|
@@ -31,4 +31,4 @@ DrawerBody.__ui__ = "DrawerBody";
|
|
31
31
|
export {
|
32
32
|
DrawerBody
|
33
33
|
};
|
34
|
-
//# sourceMappingURL=chunk-
|
34
|
+
//# sourceMappingURL=chunk-R2TMPSE3.mjs.map
|
@@ -1,10 +1,10 @@
|
|
1
1
|
"use client"
|
2
2
|
import {
|
3
3
|
ModalOverlay
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-XDFGVPCC.mjs";
|
5
5
|
import {
|
6
6
|
useDialog
|
7
|
-
} from "./chunk-
|
7
|
+
} from "./chunk-64A25YOZ.mjs";
|
8
8
|
|
9
9
|
// src/dialog-overlay.tsx
|
10
10
|
import { motionForwardRef } from "@yamada-ui/motion";
|
@@ -31,4 +31,4 @@ DialogOverlay.__ui__ = "DialogOverlay";
|
|
31
31
|
export {
|
32
32
|
DialogOverlay
|
33
33
|
};
|
34
|
-
//# sourceMappingURL=chunk-
|
34
|
+
//# sourceMappingURL=chunk-V6LGJTK2.mjs.map
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use client"
|
2
2
|
import {
|
3
3
|
useModal
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-64A25YOZ.mjs";
|
5
5
|
|
6
6
|
// src/modal-overlay.tsx
|
7
7
|
import { motion, motionForwardRef } from "@yamada-ui/motion";
|
@@ -51,4 +51,4 @@ ModalOverlay.__ui__ = "ModalOverlay";
|
|
51
51
|
export {
|
52
52
|
ModalOverlay
|
53
53
|
};
|
54
|
-
//# sourceMappingURL=chunk-
|
54
|
+
//# sourceMappingURL=chunk-XDFGVPCC.mjs.map
|
@@ -1,10 +1,10 @@
|
|
1
1
|
"use client"
|
2
2
|
import {
|
3
3
|
ModalFooter
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-F6XJWJIF.mjs";
|
5
5
|
import {
|
6
6
|
useDialog
|
7
|
-
} from "./chunk-
|
7
|
+
} from "./chunk-64A25YOZ.mjs";
|
8
8
|
|
9
9
|
// src/dialog-footer.tsx
|
10
10
|
import { forwardRef } from "@yamada-ui/core";
|
@@ -31,4 +31,4 @@ DialogFooter.__ui__ = "DialogFooter";
|
|
31
31
|
export {
|
32
32
|
DialogFooter
|
33
33
|
};
|
34
|
-
//# sourceMappingURL=chunk-
|
34
|
+
//# sourceMappingURL=chunk-XOD2SYPV.mjs.map
|
@@ -1,22 +1,22 @@
|
|
1
1
|
"use client"
|
2
2
|
import {
|
3
3
|
ModalContent
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-FXMVCPK5.mjs";
|
5
5
|
import {
|
6
6
|
DrawerContent
|
7
|
-
} from "./chunk-
|
7
|
+
} from "./chunk-AZF6QW2S.mjs";
|
8
8
|
import {
|
9
9
|
DrawerOverlay
|
10
|
-
} from "./chunk-
|
10
|
+
} from "./chunk-ZMEZYJLF.mjs";
|
11
11
|
import {
|
12
12
|
DialogOverlay
|
13
|
-
} from "./chunk-
|
13
|
+
} from "./chunk-V6LGJTK2.mjs";
|
14
14
|
import {
|
15
15
|
ModalOverlay
|
16
|
-
} from "./chunk-
|
16
|
+
} from "./chunk-XDFGVPCC.mjs";
|
17
17
|
import {
|
18
18
|
ModalProvider
|
19
|
-
} from "./chunk-
|
19
|
+
} from "./chunk-64A25YOZ.mjs";
|
20
20
|
|
21
21
|
// src/modal.tsx
|
22
22
|
import { omitThemeProps, ui, useComponentMultiStyle } from "@yamada-ui/core";
|
@@ -25,7 +25,7 @@ import { AnimatePresence, motionForwardRef } from "@yamada-ui/motion";
|
|
25
25
|
import { Portal } from "@yamada-ui/portal";
|
26
26
|
import { useValue } from "@yamada-ui/use-value";
|
27
27
|
import { findChild, findChildren, getValidChildren } from "@yamada-ui/utils";
|
28
|
-
import { cloneElement, useCallback,
|
28
|
+
import { cloneElement, useCallback, useRef } from "react";
|
29
29
|
import { RemoveScroll } from "react-remove-scroll";
|
30
30
|
import { jsx, jsxs } from "react/jsx-runtime";
|
31
31
|
var Modal = motionForwardRef(
|
@@ -63,9 +63,9 @@ var Modal = motionForwardRef(
|
|
63
63
|
onOverlayClick,
|
64
64
|
...rest
|
65
65
|
} = omitThemeProps(mergedProps);
|
66
|
+
const headerRef = useRef(null);
|
67
|
+
const bodyRef = useRef(null);
|
66
68
|
open != null ? open : open = isOpen;
|
67
|
-
const labelledbyId = useId();
|
68
|
-
const describedbyId = useId();
|
69
69
|
const onKeyDown = useCallback(
|
70
70
|
(ev) => {
|
71
71
|
if (ev.key !== "Escape") return;
|
@@ -103,11 +103,11 @@ var Modal = motionForwardRef(
|
|
103
103
|
{
|
104
104
|
value: {
|
105
105
|
animation,
|
106
|
+
bodyRef,
|
106
107
|
closeOnOverlay,
|
107
|
-
describedbyId,
|
108
108
|
duration,
|
109
|
+
headerRef,
|
109
110
|
isOpen,
|
110
|
-
labelledbyId,
|
111
111
|
open,
|
112
112
|
scrollBehavior,
|
113
113
|
styles,
|
@@ -154,4 +154,4 @@ var Modal = motionForwardRef(
|
|
154
154
|
export {
|
155
155
|
Modal
|
156
156
|
};
|
157
|
-
//# sourceMappingURL=chunk-
|
157
|
+
//# sourceMappingURL=chunk-YK2YBJMG.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/modal.tsx"],"sourcesContent":["import type {\n CSSUIObject,\n CSSUIProps,\n HTMLUIProps,\n ThemeProps,\n Token,\n} from \"@yamada-ui/core\"\nimport type { FocusLockProps } from \"@yamada-ui/focus-lock\"\nimport type { MotionTransitionProps } from \"@yamada-ui/motion\"\nimport type { PortalProps } from \"@yamada-ui/portal\"\nimport type { KeyboardEvent } from \"react\"\nimport type { ModalContentProps } from \"./modal-content\"\nimport { omitThemeProps, ui, useComponentMultiStyle } from \"@yamada-ui/core\"\nimport { FocusLock } from \"@yamada-ui/focus-lock\"\nimport { AnimatePresence, motionForwardRef } from \"@yamada-ui/motion\"\nimport { Portal } from \"@yamada-ui/portal\"\nimport { useValue } from \"@yamada-ui/use-value\"\nimport { findChild, findChildren, getValidChildren } from \"@yamada-ui/utils\"\nimport { cloneElement, useCallback, useRef } from \"react\"\nimport { RemoveScroll } from \"react-remove-scroll\"\nimport { DialogOverlay } from \"./dialog-overlay\"\nimport { DrawerContent } from \"./drawer-content\"\nimport { DrawerOverlay } from \"./drawer-overlay\"\nimport { ModalContent } from \"./modal-content\"\nimport { ModalProvider } from \"./modal-context\"\nimport { ModalOverlay } from \"./modal-overlay\"\n\nexport interface ModalOptions\n extends Pick<\n FocusLockProps,\n | \"autoFocus\"\n | \"finalFocusRef\"\n | \"initialFocusRef\"\n | \"lockFocusAcrossFrames\"\n | \"restoreFocus\"\n > {\n /**\n * Handle zoom or pinch gestures on iOS devices when scroll locking is enabled.\n *\n * @default false.\n */\n allowPinchZoom?: boolean\n /**\n * The animation of the tooltip.\n *\n * @default 'scale'\n */\n animation?: \"bottom\" | \"left\" | \"none\" | \"right\" | \"scale\" | \"top\"\n /**\n * If `true`, scrolling will be disabled on the `body` when the modal opens.\n *\n * @default true\n */\n blockScrollOnMount?: boolean\n /**\n * If `true`, the modal will close when the `Esc` key is pressed.\n *\n * @default true\n */\n closeOnEsc?: boolean\n /**\n * If `true`, the modal will close when the overlay is clicked.\n *\n * @default true\n */\n closeOnOverlay?: boolean\n /**\n * The animation duration.\n */\n duration?: MotionTransitionProps[\"duration\"]\n /**\n * If `true`, the open will be opened.\n *\n * @deprecated Use `open` instead.\n */\n isOpen?: boolean\n /**\n * If `true`, the open will be opened.\n */\n open?: boolean\n /**\n * The CSS `padding` property.\n */\n outside?: CSSUIProps[\"p\"]\n /**\n * The placement of the modal.\n *\n * @default 'center'\n */\n placement?: Token<\n | \"bottom\"\n | \"bottom-left\"\n | \"bottom-right\"\n | \"center\"\n | \"left\"\n | \"right\"\n | \"top\"\n | \"top-left\"\n | \"top-right\"\n >\n /**\n * Where scroll behavior should originate.\n *\n * - `inside`: scroll only occurs within the `ModalBody`.\n * - `outside`: the entire `ModalContent` will scroll within the viewport.\n *\n * @default 'inside'\n */\n scrollBehavior?: \"inside\" | \"outside\"\n /**\n * If `true`, display the modal close button.\n *\n * @default true\n */\n withCloseButton?: boolean\n /**\n * If `true`, display the modal overlay.\n *\n * @default true\n */\n withOverlay?: boolean\n /**\n * Props for modal container element.\n */\n containerProps?: HTMLUIProps\n /**\n * Props to be forwarded to the portal component.\n */\n portalProps?: Omit<PortalProps, \"children\">\n /**\n * Callback invoked to close the modal.\n */\n onClose?: () => void\n /**\n * Callback function to run side effects after the modal has closed.\n */\n onCloseComplete?: () => void\n /**\n * Callback fired when the escape key is pressed and focus is within modal.\n */\n onEsc?(): void\n /**\n * Callback fired when the overlay is clicked.\n */\n onOverlayClick?: () => void\n}\n\nexport interface ModalProps\n extends ModalContentProps,\n ThemeProps<\"Modal\">,\n ModalOptions {}\n\n/**\n * `Modal` is a component that is displayed over the main content to focus the user's attention solely on the information.\n *\n * @see Docs https://yamada-ui.com/components/overlay/modal\n */\nexport const Modal = motionForwardRef<ModalProps, \"section\">(\n ({ size, ...props }, ref) => {\n const [styles, mergedProps] = useComponentMultiStyle(\"Modal\", {\n size,\n ...props,\n })\n let {\n className,\n allowPinchZoom = false,\n animation = \"scale\",\n autoFocus,\n blockScrollOnMount = true,\n children,\n closeOnEsc = true,\n closeOnOverlay = true,\n duration,\n finalFocusRef,\n initialFocusRef,\n isOpen,\n lockFocusAcrossFrames = true,\n open,\n outside = \"fallback(4, 1rem)\",\n placement: _placement = \"center\",\n restoreFocus,\n scrollBehavior = \"inside\",\n withCloseButton = true,\n withOverlay = true,\n containerProps,\n portalProps,\n onClose,\n onCloseComplete,\n onEsc,\n onOverlayClick,\n ...rest\n } = omitThemeProps(mergedProps)\n const headerRef = useRef<HTMLElement>(null)\n const bodyRef = useRef<HTMLElement>(null)\n\n open ??= isOpen\n\n const onKeyDown = useCallback(\n (ev: KeyboardEvent) => {\n if (ev.key !== \"Escape\") return\n\n ev.stopPropagation()\n\n if (closeOnEsc) onClose?.()\n\n onEsc?.()\n },\n [closeOnEsc, onClose, onEsc],\n )\n\n const validChildren = getValidChildren(children)\n\n const [customModalOverlay, ...cloneChildren] = findChildren(\n validChildren,\n ModalOverlay,\n DialogOverlay,\n DrawerOverlay,\n )\n\n let drawerContent = findChild(validChildren, DrawerContent)\n\n if (drawerContent)\n drawerContent = cloneElement(drawerContent, { onKeyDown })\n\n const placement = useValue(_placement)\n\n const css: CSSUIObject = {\n alignItems: placement.includes(\"top\")\n ? \"flex-start\"\n : placement.includes(\"bottom\")\n ? \"flex-end\"\n : \"center\",\n display: \"flex\",\n h: \"100dvh\",\n justifyContent: placement.includes(\"left\")\n ? \"flex-start\"\n : placement.includes(\"right\")\n ? \"flex-end\"\n : \"center\",\n left: 0,\n p: size !== \"full\" ? outside : undefined,\n position: \"fixed\",\n top: 0,\n w: \"100vw\",\n zIndex: \"fallback(jeice, 110)\",\n }\n\n return (\n <ModalProvider\n value={{\n animation,\n bodyRef,\n closeOnOverlay,\n duration,\n headerRef,\n isOpen,\n open,\n scrollBehavior,\n styles,\n withCloseButton,\n onClose,\n onOverlayClick,\n }}\n >\n <AnimatePresence onExitComplete={onCloseComplete}>\n {open ? (\n <Portal {...portalProps}>\n <FocusLock\n autoFocus={autoFocus}\n finalFocusRef={finalFocusRef}\n initialFocusRef={initialFocusRef}\n lockFocusAcrossFrames={lockFocusAcrossFrames}\n restoreFocus={restoreFocus}\n >\n <RemoveScroll\n allowPinchZoom={allowPinchZoom}\n enabled={blockScrollOnMount}\n forwardProps\n >\n <ui.div __css={css} {...containerProps}>\n {customModalOverlay ??\n (withOverlay && size !== \"full\" ? (\n <ModalOverlay />\n ) : null)}\n\n {drawerContent ?? (\n <ModalContent\n ref={ref}\n className={className}\n onKeyDown={onKeyDown}\n {...rest}\n >\n {cloneChildren}\n </ModalContent>\n )}\n </ui.div>\n </RemoveScroll>\n </FocusLock>\n </Portal>\n ) : null}\n </AnimatePresence>\n </ModalProvider>\n )\n },\n)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAYA,SAAS,gBAAgB,IAAI,8BAA8B;AAC3D,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB,wBAAwB;AAClD,SAAS,cAAc;AACvB,SAAS,gBAAgB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
5
5
|
import {
|
6
6
|
useDrawer
|
7
|
-
} from "./chunk-
|
7
|
+
} from "./chunk-64A25YOZ.mjs";
|
8
8
|
|
9
9
|
// src/drawer-header.tsx
|
10
10
|
import { forwardRef } from "@yamada-ui/core";
|
@@ -31,4 +31,4 @@ DrawerHeader.__ui__ = "DrawerHeader";
|
|
31
31
|
export {
|
32
32
|
DrawerHeader
|
33
33
|
};
|
34
|
-
//# sourceMappingURL=chunk-
|
34
|
+
//# sourceMappingURL=chunk-ZG6MHJXG.mjs.map
|