beyond-system 1.2.3 → 1.2.4
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.
|
@@ -5,11 +5,11 @@ type DialogOverlayProps = React.ComponentProps<typeof motion.div>;
|
|
|
5
5
|
type DialogContentProps = React.ComponentProps<typeof motion.div>;
|
|
6
6
|
type DialogPortalProps = React.ComponentProps<typeof RadixDialog.Portal>;
|
|
7
7
|
declare const Dialog: {
|
|
8
|
-
Root: (props: React.ComponentProps<typeof RadixDialog.Root>) => JSX.Element;
|
|
8
|
+
Root: ({ children, ...props }: React.ComponentProps<typeof RadixDialog.Root>) => JSX.Element;
|
|
9
9
|
Portal: (props: DialogPortalProps) => JSX.Element;
|
|
10
10
|
Trigger: React.ForwardRefExoticComponent<RadixDialog.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
11
11
|
Overlay: ({ children, className, ...props }: DialogOverlayProps) => JSX.Element;
|
|
12
|
-
Content: ({ children, ...props }: DialogContentProps) => JSX.Element;
|
|
12
|
+
Content: ({ children, className, ...props }: DialogContentProps) => JSX.Element;
|
|
13
13
|
};
|
|
14
14
|
export default Dialog;
|
|
15
15
|
//# sourceMappingURL=Dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/react/Dialog/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAmB,MAAM,EAAE,MAAM,eAAe,CAAA;AAEvD,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/react/Dialog/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAmB,MAAM,EAAE,MAAM,eAAe,CAAA;AAEvD,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAA;AAmBrD,KAAK,kBAAkB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG,CAAC,CAAA;AA+BjE,KAAK,kBAAkB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG,CAAC,CAAA;AA4BjE,KAAK,iBAAiB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,MAAM,CAAC,CAAA;AAKxE,QAAA,MAAM,MAAM;mCAxET,MAAM,cAAc,CAAC,OAAO,YAAY,IAAI,CAAC;oBAoEnB,iBAAiB;;iDAvD3C,kBAAkB;iDA+BlB,kBAAkB;CAkCpB,CAAA;AAED,eAAe,MAAM,CAAA"}
|
|
@@ -7,21 +7,22 @@ var RadixDialog = tslib_1.__importStar(require("@radix-ui/react-dialog"));
|
|
|
7
7
|
var tailwind_merge_1 = require("tailwind-merge");
|
|
8
8
|
var DialogContext = react_1.default.createContext({});
|
|
9
9
|
var useDialogContext = function () { return react_1.default.useContext(DialogContext); };
|
|
10
|
-
var DialogRoot = function (
|
|
10
|
+
var DialogRoot = function (_a) {
|
|
11
|
+
var children = _a.children, props = tslib_1.__rest(_a, ["children"]);
|
|
11
12
|
return (react_1.default.createElement(DialogContext.Provider, { value: props },
|
|
12
|
-
react_1.default.createElement(RadixDialog.Root, tslib_1.__assign({}, props))));
|
|
13
|
+
react_1.default.createElement(RadixDialog.Root, tslib_1.__assign({}, props), children)));
|
|
13
14
|
};
|
|
14
15
|
var DialogOverlay = function (_a) {
|
|
15
16
|
var children = _a.children, className = _a.className, props = tslib_1.__rest(_a, ["children", "className"]);
|
|
16
17
|
var open = useDialogContext().open;
|
|
17
|
-
return (react_1.default.createElement(framer_motion_1.AnimatePresence, null, open ? (react_1.default.createElement(RadixDialog.Overlay, { forceMount: true },
|
|
18
|
+
return (react_1.default.createElement(framer_motion_1.AnimatePresence, null, open ? (react_1.default.createElement(RadixDialog.Overlay, { forceMount: true, asChild: true },
|
|
18
19
|
react_1.default.createElement(framer_motion_1.motion.div, tslib_1.__assign({ className: (0, tailwind_merge_1.twMerge)('fixed inset-0 flex items-center justify-center p-5 w-full h-full bg-black bg-opacity-50 backdrop-blur-sm', className), initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, transition: { duration: 0.2, ease: 'easeInOut' } }, props), children))) : null));
|
|
19
20
|
};
|
|
20
21
|
var DialogContent = function (_a) {
|
|
21
|
-
var children = _a.children, props = tslib_1.__rest(_a, ["children"]);
|
|
22
|
+
var children = _a.children, className = _a.className, props = tslib_1.__rest(_a, ["children", "className"]);
|
|
22
23
|
var open = useDialogContext().open;
|
|
23
|
-
return (react_1.default.createElement(RadixDialog.Content, { forceMount: true,
|
|
24
|
-
react_1.default.createElement(framer_motion_1.
|
|
24
|
+
return (react_1.default.createElement(framer_motion_1.AnimatePresence, null, open ? (react_1.default.createElement(RadixDialog.Content, { forceMount: true, asChild: true },
|
|
25
|
+
react_1.default.createElement(framer_motion_1.motion.div, tslib_1.__assign({ initial: { opacity: 0, y: 20 }, animate: { opacity: 1, y: 0 }, exit: { opacity: 0, y: 20 }, transition: { duration: 0.2, ease: 'easeInOut' }, className: (0, tailwind_merge_1.twMerge)('outline-none', className) }, props), children))) : null));
|
|
25
26
|
};
|
|
26
27
|
var DialogPortal = function (props) {
|
|
27
28
|
return react_1.default.createElement(RadixDialog.Portal, tslib_1.__assign({ forceMount: true }, props));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../../../src/components/react/Dialog/Dialog.tsx"],"names":[],"mappings":";;;AAAA,wDAAyB;AACzB,+CAAuD;AAEvD,0EAAqD;AACrD,iDAAwC;AAExC,IAAM,aAAa,GAAG,eAAK,CAAC,aAAa,CAEvC,EAAE,CAAC,CAAA;AACL,IAAM,gBAAgB,GAAG,cAAM,OAAA,eAAK,CAAC,UAAU,CAAC,aAAa,CAAC,EAA/B,CAA+B,CAAA;AAE9D,IA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
|
|
642
642
|
|
|
643
|
+
.h-\[20vh\] {
|
|
644
|
+
height: 20vh;
|
|
645
|
+
}
|
|
646
|
+
|
|
643
647
|
.h-\[2px\] {
|
|
644
648
|
height: 2px;
|
|
645
649
|
}
|
|
@@ -653,10 +657,6 @@ video {
|
|
|
653
657
|
height: 100%;
|
|
654
658
|
}
|
|
655
659
|
|
|
656
|
-
.h-screen {
|
|
657
|
-
height: 100vh;
|
|
658
|
-
}
|
|
659
|
-
|
|
660
660
|
.max-h-48 {
|
|
661
661
|
max-height: 12rem;
|
|
662
662
|
}
|