@acmekit/ui 4.1.33 → 4.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/modal/index.d.ts +2 -0
- package/dist/cjs/components/modal/index.d.ts.map +1 -0
- package/dist/cjs/components/modal/index.js +5 -0
- package/dist/cjs/components/modal/index.js.map +1 -0
- package/dist/cjs/components/modal/modal.d.ts +55 -0
- package/dist/cjs/components/modal/modal.d.ts.map +1 -0
- package/dist/cjs/components/modal/modal.js +114 -0
- package/dist/cjs/components/modal/modal.js.map +1 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +3 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/modal/index.d.ts +2 -0
- package/dist/esm/components/modal/index.d.ts.map +1 -0
- package/dist/esm/components/modal/index.js +2 -0
- package/dist/esm/components/modal/index.js.map +1 -0
- package/dist/esm/components/modal/modal.d.ts +55 -0
- package/dist/esm/components/modal/modal.d.ts.map +1 -0
- package/dist/esm/components/modal/modal.js +110 -0
- package/dist/esm/components/modal/modal.js.map +1 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/modal/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/modal/index.ts"],"names":[],"mappings":";;;AAAA,kDAAuB","sourcesContent":["export * from \"./modal\"\n"]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Dialog as RadixDialog } from "radix-ui";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
/**
|
|
4
|
+
* @prop defaultOpen - Whether the modal is opened by default.
|
|
5
|
+
* @prop open - Whether the modal is opened.
|
|
6
|
+
* @prop onOpenChange - A function to handle when the modal is opened or closed.
|
|
7
|
+
*/
|
|
8
|
+
interface ModalRootProps extends React.ComponentPropsWithoutRef<typeof RadixDialog.Root> {
|
|
9
|
+
}
|
|
10
|
+
interface ModalTriggerProps extends React.ComponentPropsWithoutRef<typeof RadixDialog.Trigger> {
|
|
11
|
+
}
|
|
12
|
+
interface ModalPortalProps extends RadixDialog.DialogPortalProps {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* The `Modal.Content` component uses this component to wrap the modal content.
|
|
16
|
+
* It accepts props from the [Radix UI Dialog Portal](https://www.radix-ui.com/primitives/docs/components/dialog#portal) component.
|
|
17
|
+
*/
|
|
18
|
+
declare const ModalPortal: {
|
|
19
|
+
(props: ModalPortalProps): React.JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* This component is used to create the overlay for the modal.
|
|
24
|
+
* It accepts props from the [Radix UI Dialog Overlay](https://www.radix-ui.com/primitives/docs/components/dialog#overlay) component.
|
|
25
|
+
*/
|
|
26
|
+
declare const ModalOverlay: React.ForwardRefExoticComponent<Omit<RadixDialog.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
interface ModalContentProps extends React.ComponentPropsWithoutRef<typeof RadixDialog.Content> {
|
|
28
|
+
/**
|
|
29
|
+
* Props for the overlay component.
|
|
30
|
+
* It accepts props from the [Radix UI Dialog Overlay](https://www.radix-ui.com/primitives/docs/components/dialog#overlay) component.
|
|
31
|
+
*/
|
|
32
|
+
overlayProps?: React.ComponentPropsWithoutRef<typeof ModalOverlay>;
|
|
33
|
+
/**
|
|
34
|
+
* Props for the portal component that wraps the modal content.
|
|
35
|
+
* It accepts props from the [Radix UI Dialog Portal](https://www.radix-ui.com/primitives/docs/components/dialog#portal) component.
|
|
36
|
+
*/
|
|
37
|
+
portalProps?: React.ComponentPropsWithoutRef<typeof ModalPortal>;
|
|
38
|
+
}
|
|
39
|
+
interface ModalTitleProps extends React.ComponentPropsWithoutRef<typeof RadixDialog.Title> {
|
|
40
|
+
}
|
|
41
|
+
declare const Modal: {
|
|
42
|
+
(props: ModalRootProps): React.JSX.Element;
|
|
43
|
+
displayName: string;
|
|
44
|
+
} & {
|
|
45
|
+
Trigger: React.ForwardRefExoticComponent<ModalTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
46
|
+
Title: React.ForwardRefExoticComponent<ModalTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
47
|
+
Description: React.ForwardRefExoticComponent<RadixDialog.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
48
|
+
Content: React.ForwardRefExoticComponent<ModalContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
49
|
+
Header: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
50
|
+
Body: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
51
|
+
Close: React.ForwardRefExoticComponent<RadixDialog.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
52
|
+
Footer: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
53
|
+
};
|
|
54
|
+
export { Modal };
|
|
55
|
+
//# sourceMappingURL=modal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../../src/components/modal/modal.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,UAAU,CAAA;AAChD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B;;;;GAIG;AACH,UAAU,cACR,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC;CAAG;AAUpE,UAAU,iBACR,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,WAAW,CAAC,OAAO,CAAC;CAAG;AAqBvE,UAAU,gBAAiB,SAAQ,WAAW,CAAC,iBAAiB;CAAG;AAEnE;;;GAGG;AACH,QAAA,MAAM,WAAW;YAAW,gBAAgB;;CAE3C,CAAA;AAGD;;;GAGG;AACH,QAAA,MAAM,YAAY,0JAehB,CAAA;AAGF,UAAU,iBACR,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,WAAW,CAAC,OAAO,CAAC;IAClE;;;OAGG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,OAAO,YAAY,CAAC,CAAA;IAClE;;;OAGG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,OAAO,WAAW,CAAC,CAAA;CACjE;AAmGD,UAAU,eACR,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,WAAW,CAAC,KAAK,CAAC;CAAG;AAoBrE,QAAA,MAAM,KAAK;YAhMe,cAAc;;;;;;;;;;;CAyMtC,CAAA;AAEF,OAAO,EAAE,KAAK,EAAE,CAAA"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Modal = void 0;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
6
|
+
const icons_1 = require("@acmekit/icons");
|
|
7
|
+
const radix_ui_1 = require("radix-ui");
|
|
8
|
+
const React = tslib_1.__importStar(require("react"));
|
|
9
|
+
const icon_button_1 = require("../icon-button");
|
|
10
|
+
const kbd_1 = require("../kbd");
|
|
11
|
+
const clx_1 = require("../../utils/clx");
|
|
12
|
+
/**
|
|
13
|
+
* This component is based on the [Radix UI Dialog](https://www.radix-ui.com/primitives/docs/components/dialog) primitives.
|
|
14
|
+
*/
|
|
15
|
+
const ModalRoot = (props) => {
|
|
16
|
+
return React.createElement(radix_ui_1.Dialog.Root, { ...props });
|
|
17
|
+
};
|
|
18
|
+
ModalRoot.displayName = "Modal";
|
|
19
|
+
/**
|
|
20
|
+
* This component is used to create the trigger button that opens the modal.
|
|
21
|
+
* It accepts props from the [Radix UI Dialog Trigger](https://www.radix-ui.com/primitives/docs/components/dialog#trigger) component.
|
|
22
|
+
*/
|
|
23
|
+
const ModalTrigger = React.forwardRef((props, ref) => {
|
|
24
|
+
return React.createElement(radix_ui_1.Dialog.Trigger, { ref: ref, ...props });
|
|
25
|
+
});
|
|
26
|
+
ModalTrigger.displayName = "Modal.Trigger";
|
|
27
|
+
/**
|
|
28
|
+
* This component is used to create the close button for the modal.
|
|
29
|
+
* It accepts props from the [Radix UI Dialog Close](https://www.radix-ui.com/primitives/docs/components/dialog#close) component.
|
|
30
|
+
*/
|
|
31
|
+
const ModalClose = radix_ui_1.Dialog.Close;
|
|
32
|
+
ModalClose.displayName = "Modal.Close";
|
|
33
|
+
/**
|
|
34
|
+
* The `Modal.Content` component uses this component to wrap the modal content.
|
|
35
|
+
* It accepts props from the [Radix UI Dialog Portal](https://www.radix-ui.com/primitives/docs/components/dialog#portal) component.
|
|
36
|
+
*/
|
|
37
|
+
const ModalPortal = (props) => {
|
|
38
|
+
return React.createElement(radix_ui_1.Dialog.DialogPortal, { ...props });
|
|
39
|
+
};
|
|
40
|
+
ModalPortal.displayName = "Modal.Portal";
|
|
41
|
+
/**
|
|
42
|
+
* This component is used to create the overlay for the modal.
|
|
43
|
+
* It accepts props from the [Radix UI Dialog Overlay](https://www.radix-ui.com/primitives/docs/components/dialog#overlay) component.
|
|
44
|
+
*/
|
|
45
|
+
const ModalOverlay = React.forwardRef(({ className, ...props }, ref) => {
|
|
46
|
+
return (React.createElement(radix_ui_1.Dialog.Overlay, { ref: ref, className: (0, clx_1.clx)("bg-ui-bg-overlay fixed inset-0", "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className), ...props }));
|
|
47
|
+
});
|
|
48
|
+
ModalOverlay.displayName = "Modal.Overlay";
|
|
49
|
+
/**
|
|
50
|
+
* This component wraps the content of the modal.
|
|
51
|
+
* It accepts props from the [Radix UI Dialog Content](https://www.radix-ui.com/primitives/docs/components/dialog#content) component.
|
|
52
|
+
*/
|
|
53
|
+
const ModalContent = React.forwardRef(({ className, overlayProps, portalProps, ...props }, ref) => {
|
|
54
|
+
return (React.createElement(ModalPortal, { ...portalProps },
|
|
55
|
+
React.createElement(ModalOverlay, { ...overlayProps }),
|
|
56
|
+
React.createElement(radix_ui_1.Dialog.Content, { ref: ref, className: (0, clx_1.clx)("bg-ui-bg-base shadow-elevation-flyout fixed left-[50%] top-[50%] flex max-h-[85vh] w-full max-w-lg translate-x-[-50%] translate-y-[-50%] flex-col overflow-hidden rounded-lg border outline-none", "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] duration-200", className), ...props })));
|
|
57
|
+
});
|
|
58
|
+
ModalContent.displayName = "Modal.Content";
|
|
59
|
+
/**
|
|
60
|
+
* This component is used to wrap the header content of the modal.
|
|
61
|
+
* This component is based on the `div` element and supports all of its props
|
|
62
|
+
*/
|
|
63
|
+
const ModalHeader = React.forwardRef(({ children, className, ...props }, ref) => {
|
|
64
|
+
return (React.createElement("div", { ref: ref, className: (0, clx_1.clx)("border-ui-border-base flex items-center justify-between gap-x-4 border-b px-4 py-2", className), ...props },
|
|
65
|
+
React.createElement("div", { className: "flex items-center gap-x-2" },
|
|
66
|
+
React.createElement(radix_ui_1.Dialog.Close, { asChild: true },
|
|
67
|
+
React.createElement(icon_button_1.IconButton, { size: "small", type: "button", variant: "transparent" },
|
|
68
|
+
React.createElement(icons_1.XMark, null))),
|
|
69
|
+
React.createElement(kbd_1.Kbd, null, "esc")),
|
|
70
|
+
children));
|
|
71
|
+
});
|
|
72
|
+
ModalHeader.displayName = "Modal.Header";
|
|
73
|
+
/**
|
|
74
|
+
* This component is used to wrap the body content of the modal.
|
|
75
|
+
* This component is based on the `div` element and supports all of its props
|
|
76
|
+
*/
|
|
77
|
+
const ModalBody = React.forwardRef(({ className, ...props }, ref) => {
|
|
78
|
+
return (React.createElement("div", { ref: ref, className: (0, clx_1.clx)("flex-1 overflow-y-auto px-6 py-4", className), ...props }));
|
|
79
|
+
});
|
|
80
|
+
ModalBody.displayName = "Modal.Body";
|
|
81
|
+
/**
|
|
82
|
+
* This component is used to wrap the footer content of the modal.
|
|
83
|
+
* This component is based on the `div` element and supports all of its props
|
|
84
|
+
*/
|
|
85
|
+
const ModalFooter = React.forwardRef(({ children, className, ...props }, ref) => {
|
|
86
|
+
return (React.createElement("div", { ref: ref, className: (0, clx_1.clx)("border-ui-border-base flex items-center justify-end gap-x-2 border-t p-4", className), ...props }, children));
|
|
87
|
+
});
|
|
88
|
+
ModalFooter.displayName = "Modal.Footer";
|
|
89
|
+
/**
|
|
90
|
+
* This component adds an accessible title to the modal.
|
|
91
|
+
* It accepts props from the [Radix UI Dialog Title](https://www.radix-ui.com/primitives/docs/components/dialog#title) component.
|
|
92
|
+
*/
|
|
93
|
+
const ModalTitle = React.forwardRef(({ className, ...props }, ref) => {
|
|
94
|
+
return React.createElement(radix_ui_1.Dialog.Title, { ref: ref, ...props });
|
|
95
|
+
});
|
|
96
|
+
ModalTitle.displayName = "Modal.Title";
|
|
97
|
+
/**
|
|
98
|
+
* This component adds accessible description to the modal.
|
|
99
|
+
* It accepts props from the [Radix UI Dialog Description](https://www.radix-ui.com/primitives/docs/components/dialog#description) component.
|
|
100
|
+
*/
|
|
101
|
+
const ModalDescription = radix_ui_1.Dialog.Description;
|
|
102
|
+
ModalDescription.displayName = "Modal.Description";
|
|
103
|
+
const Modal = Object.assign(ModalRoot, {
|
|
104
|
+
Trigger: ModalTrigger,
|
|
105
|
+
Title: ModalTitle,
|
|
106
|
+
Description: ModalDescription,
|
|
107
|
+
Content: ModalContent,
|
|
108
|
+
Header: ModalHeader,
|
|
109
|
+
Body: ModalBody,
|
|
110
|
+
Close: ModalClose,
|
|
111
|
+
Footer: ModalFooter,
|
|
112
|
+
});
|
|
113
|
+
exports.Modal = Modal;
|
|
114
|
+
//# sourceMappingURL=modal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.js","sourceRoot":"","sources":["../../../../src/components/modal/modal.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAA;;;;AAEZ,0CAAsC;AACtC,uCAAgD;AAChD,qDAA8B;AAE9B,0DAAqD;AACrD,0CAAsC;AACtC,qCAAiC;AAUjC;;GAEG;AACH,MAAM,SAAS,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC1C,OAAO,oBAAC,iBAAW,CAAC,IAAI,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA;AACD,SAAS,CAAC,WAAW,GAAG,OAAO,CAAA;AAK/B;;;GAGG;AACH,MAAM,YAAY,GAAG,KAAK,CAAC,UAAU,CAGnC,CAAC,KAAwB,EAAE,GAAG,EAAE,EAAE;IAClC,OAAO,oBAAC,iBAAW,CAAC,OAAO,IAAC,GAAG,EAAE,GAAG,KAAM,KAAK,GAAI,CAAA;AACrD,CAAC,CAAC,CAAA;AACF,YAAY,CAAC,WAAW,GAAG,eAAe,CAAA;AAE1C;;;GAGG;AACH,MAAM,UAAU,GAAG,iBAAW,CAAC,KAAK,CAAA;AACpC,UAAU,CAAC,WAAW,GAAG,aAAa,CAAA;AAItC;;;GAGG;AACH,MAAM,WAAW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AC,CACF,CAAA;AACD,UAAU,CAAC,WAAW,GAAG,aAAa,CAAA;AAEtC;;;GAGG;AACH,MAAM,gBAAgB,GAAG,iBAAW,CAAC,WAAW,CAAA;AAChD,gBAAgB,CAAC,WAAW,GAAG,mBAAmB,CAAA;AAElD,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE;IACrC,OAAO,EAAE,YAAY;IACrB,KAAK,EAAE,UAAU;IACjB,WAAW,EAAE,gBAAgB;IAC7B,OAAO,EAAE,YAAY;IACrB,MAAM,EAAE,WAAW;IACnB,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,UAAU;IACjB,MAAM,EAAE,WAAW;CACpB,CAAC,CAAA;AAEO,sBAAK","sourcesContent":["\"use client\"\n\nimport { XMark } from \"@acmekit/icons\"\nimport { Dialog as RadixDialog } from \"radix-ui\"\nimport * as React from \"react\"\n\nimport { IconButton } from \"@/components/icon-button\"\nimport { Kbd } from \"@/components/kbd\"\nimport { clx } from \"@/utils/clx\"\n\n/**\n * @prop defaultOpen - Whether the modal is opened by default.\n * @prop open - Whether the modal is opened.\n * @prop onOpenChange - A function to handle when the modal is opened or closed.\n */\ninterface ModalRootProps\n extends React.ComponentPropsWithoutRef<typeof RadixDialog.Root> {}\n\n/**\n * This component is based on the [Radix UI Dialog](https://www.radix-ui.com/primitives/docs/components/dialog) primitives.\n */\nconst ModalRoot = (props: ModalRootProps) => {\n return <RadixDialog.Root {...props} />\n}\nModalRoot.displayName = \"Modal\"\n\ninterface ModalTriggerProps\n extends React.ComponentPropsWithoutRef<typeof RadixDialog.Trigger> {}\n\n/**\n * This component is used to create the trigger button that opens the modal.\n * It accepts props from the [Radix UI Dialog Trigger](https://www.radix-ui.com/primitives/docs/components/dialog#trigger) component.\n */\nconst ModalTrigger = React.forwardRef<\n React.ElementRef<typeof RadixDialog.Trigger>,\n ModalTriggerProps\n>((props: ModalTriggerProps, ref) => {\n return <RadixDialog.Trigger ref={ref} {...props} />\n})\nModalTrigger.displayName = \"Modal.Trigger\"\n\n/**\n * This component is used to create the close button for the modal.\n * It accepts props from the [Radix UI Dialog Close](https://www.radix-ui.com/primitives/docs/components/dialog#close) component.\n */\nconst ModalClose = RadixDialog.Close\nModalClose.displayName = \"Modal.Close\"\n\ninterface ModalPortalProps extends RadixDialog.DialogPortalProps {}\n\n/**\n * The `Modal.Content` component uses this component to wrap the modal content.\n * It accepts props from the [Radix UI Dialog Portal](https://www.radix-ui.com/primitives/docs/components/dialog#portal) component.\n */\nconst ModalPortal = (props: ModalPortalProps) => {\n return <RadixDialog.DialogPortal {...props} />\n}\nModalPortal.displayName = \"Modal.Portal\"\n\n/**\n * This component is used to create the overlay for the modal.\n * It accepts props from the [Radix UI Dialog Overlay](https://www.radix-ui.com/primitives/docs/components/dialog#overlay) component.\n */\nconst ModalOverlay = React.forwardRef<\n React.ElementRef<typeof RadixDialog.Overlay>,\n React.ComponentPropsWithoutRef<typeof RadixDialog.Overlay>\n>(({ className, ...props }, ref) => {\n return (\n <RadixDialog.Overlay\n ref={ref}\n className={clx(\n \"bg-ui-bg-overlay fixed inset-0\",\n \"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n className\n )}\n {...props}\n />\n )\n})\nModalOverlay.displayName = \"Modal.Overlay\"\n\ninterface ModalContentProps\n extends React.ComponentPropsWithoutRef<typeof RadixDialog.Content> {\n /**\n * Props for the overlay component.\n * It accepts props from the [Radix UI Dialog Overlay](https://www.radix-ui.com/primitives/docs/components/dialog#overlay) component.\n */\n overlayProps?: React.ComponentPropsWithoutRef<typeof ModalOverlay>\n /**\n * Props for the portal component that wraps the modal content.\n * It accepts props from the [Radix UI Dialog Portal](https://www.radix-ui.com/primitives/docs/components/dialog#portal) component.\n */\n portalProps?: React.ComponentPropsWithoutRef<typeof ModalPortal>\n}\n\n/**\n * This component wraps the content of the modal.\n * It accepts props from the [Radix UI Dialog Content](https://www.radix-ui.com/primitives/docs/components/dialog#content) component.\n */\nconst ModalContent = React.forwardRef<\n React.ElementRef<typeof RadixDialog.Content>,\n ModalContentProps\n>(({ className, overlayProps, portalProps, ...props }, ref) => {\n return (\n <ModalPortal {...portalProps}>\n <ModalOverlay {...overlayProps} />\n <RadixDialog.Content\n ref={ref}\n className={clx(\n \"bg-ui-bg-base shadow-elevation-flyout fixed left-[50%] top-[50%] flex max-h-[85vh] w-full max-w-lg translate-x-[-50%] translate-y-[-50%] flex-col overflow-hidden rounded-lg border outline-none\",\n \"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] duration-200\",\n className\n )}\n {...props}\n />\n </ModalPortal>\n )\n})\nModalContent.displayName = \"Modal.Content\"\n\n/**\n * This component is used to wrap the header content of the modal.\n * This component is based on the `div` element and supports all of its props\n */\nconst ModalHeader = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<\"div\">\n>(({ children, className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={clx(\n \"border-ui-border-base flex items-center justify-between gap-x-4 border-b px-4 py-2\",\n className\n )}\n {...props}\n >\n <div className=\"flex items-center gap-x-2\">\n <RadixDialog.Close asChild>\n <IconButton size=\"small\" type=\"button\" variant=\"transparent\">\n <XMark />\n </IconButton>\n </RadixDialog.Close>\n <Kbd>esc</Kbd>\n </div>\n {children}\n </div>\n )\n})\nModalHeader.displayName = \"Modal.Header\"\n\n/**\n * This component is used to wrap the body content of the modal.\n * This component is based on the `div` element and supports all of its props\n */\nconst ModalBody = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<\"div\">\n>(({ className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={clx(\"flex-1 overflow-y-auto px-6 py-4\", className)}\n {...props}\n />\n )\n})\nModalBody.displayName = \"Modal.Body\"\n\n/**\n * This component is used to wrap the footer content of the modal.\n * This component is based on the `div` element and supports all of its props\n */\nconst ModalFooter = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<\"div\">\n>(({ children, className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={clx(\n \"border-ui-border-base flex items-center justify-end gap-x-2 border-t p-4\",\n className\n )}\n {...props}\n >\n {children}\n </div>\n )\n})\nModalFooter.displayName = \"Modal.Footer\"\n\ninterface ModalTitleProps\n extends React.ComponentPropsWithoutRef<typeof RadixDialog.Title> {}\n\n/**\n * This component adds an accessible title to the modal.\n * It accepts props from the [Radix UI Dialog Title](https://www.radix-ui.com/primitives/docs/components/dialog#title) component.\n */\nconst ModalTitle = React.forwardRef<HTMLHeadingElement, ModalTitleProps>(\n ({ className, ...props }: ModalTitleProps, ref) => {\n return <RadixDialog.Title ref={ref} {...props} />\n }\n)\nModalTitle.displayName = \"Modal.Title\"\n\n/**\n * This component adds accessible description to the modal.\n * It accepts props from the [Radix UI Dialog Description](https://www.radix-ui.com/primitives/docs/components/dialog#description) component.\n */\nconst ModalDescription = RadixDialog.Description\nModalDescription.displayName = \"Modal.Description\"\n\nconst Modal = Object.assign(ModalRoot, {\n Trigger: ModalTrigger,\n Title: ModalTitle,\n Description: ModalDescription,\n Content: ModalContent,\n Header: ModalHeader,\n Body: ModalBody,\n Close: ModalClose,\n Footer: ModalFooter,\n})\n\nexport { Modal }\n"]}
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export { InlineTip } from "./components/inline-tip";
|
|
|
26
26
|
export { Input } from "./components/input";
|
|
27
27
|
export { Kbd } from "./components/kbd";
|
|
28
28
|
export { Label } from "./components/label";
|
|
29
|
+
export { Modal } from "./components/modal";
|
|
29
30
|
export { Popover } from "./components/popover";
|
|
30
31
|
export { ProgressAccordion } from "./components/progress-accordion";
|
|
31
32
|
export { ProgressTabs } from "./components/progress-t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AE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAC9C,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAE/D,cAAc,qBAAqB,CAAA;AAGnC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAGzD,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAGrC,cAAc,SAAS,CAAA"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toast = exports.clx = exports.useToggleState = exports.usePrompt = exports.TooltipProvider = exports.Tooltip = exports.Toaster = exports.Toast = exports.Textarea = exports.Text = exports.Tabs = exports.Table = exports.Switch = exports.StatusBadge = exports.Skeleton = exports.Select = exports.RadioGroup = exports.Prompt = exports.ProgressTabs = exports.ProgressAccordion = exports.Popover = exports.Label = exports.Kbd = exports.Input = exports.InlineTip = exports.IconButton = exports.IconBadge = exports.I18nProvider = exports.Hint = exports.Heading = exports.Form = exports.FocusModal = exports.DropdownMenu = exports.Drawer = exports.Divider = exports.DatePicker = exports.CurrencyInput = exports.Copy = exports.Container = exports.CommandBar = exports.Command = exports.CodeBlock = exports.Code = exports.Checkbox = exports.Calendar = exports.Button = exports.Badge = exports.Avatar = exports.Alert = void 0;
|
|
3
|
+
exports.toast = exports.clx = exports.useToggleState = exports.usePrompt = exports.TooltipProvider = exports.Tooltip = exports.Toaster = exports.Toast = exports.Textarea = exports.Text = exports.Tabs = exports.Table = exports.Switch = exports.StatusBadge = exports.Skeleton = exports.Select = exports.RadioGroup = exports.Prompt = exports.ProgressTabs = exports.ProgressAccordion = exports.Popover = exports.Modal = exports.Label = exports.Kbd = exports.Input = exports.InlineTip = exports.IconButton = exports.IconBadge = exports.I18nProvider = exports.Hint = exports.Heading = exports.Form = exports.FocusModal = exports.DropdownMenu = exports.Drawer = exports.Divider = exports.DatePicker = exports.CurrencyInput = exports.Copy = exports.Container = exports.CommandBar = exports.Command = exports.CodeBlock = exports.Code = exports.Checkbox = exports.Calendar = exports.Button = exports.Badge = exports.Avatar = exports.Alert = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
// Components
|
|
6
6
|
var alert_1 = require("./components/alert");
|
|
@@ -59,6 +59,8 @@ var kbd_1 = require("./components/kbd");
|
|
|
59
59
|
Object.defineProperty(exports, "Kbd", { enumerable: true, get: function () { return kbd_1.Kbd; } });
|
|
60
60
|
var label_1 = require("./components/label");
|
|
61
61
|
Object.defineProperty(exports, "Label", { enumerable: true, get: function () { return label_1.Label; } });
|
|
62
|
+
var modal_1 = require("./components/modal");
|
|
63
|
+
Object.defineProperty(exports, "Modal", { enumerable: true, get: function () { return modal_1.Modal; } });
|
|
62
64
|
var popover_1 = require("./components/popover");
|
|
63
65
|
Object.defineProperty(exports, "Popover", { enumerable: true, get: function () { return popover_1.Popover; } });
|
|
64
66
|
var progress_accordion_1 = require("./components/progress-accordion");
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,aAAa;AACb,4CAA0C;AAAjC,8FAAA,KAAK,OAAA;AACd,8CAA4C;AAAnC,gGAAA,MAAM,OAAA;AACf,4CAA0C;AAAjC,8FAAA,KAAK,OAAA;AACd,8CAA4C;AAAnC,gGAAA,MAAM,OAAA;AACf,kDAAgD;AAAvC,oGAAA,QAAQ,OAAA;AACjB,kDAA2E;AAAlE,oGAAA,QAAQ,OAAA;AACjB,0CAAwC;AAA/B,4FAAA,IAAI,OAAA;AACb,sDAAmD;AAA1C,uGAAA,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,0CAAwC;AAA/B,4FAAA,IAAI,OAAA;AACb,0CAAwC;AAA/B,4FAAA,IAAI,OAAA;AACb,kDAAgD;AAAvC,oGAAA,QAAQ,OAAA;AACjB,4CAA0C;AAAjC,8FAAA,KAAK,OAAA;AACd,gDAA8C;AAArC,kGAAA,OAAO,OAAA;AAChB,gDAA+D;AAAtD,kGAAA,OAAO,OAAA;AAAE,0GAAA,eAAe,OAAA;AACjC,SAAS;AACT,8DAAmC;AAEnC,QAAQ;AACR,iDAA8C;AAArC,uGAAA,SAAS,OAAA;AAClB,6DAAyD;AAAhD,kHAAA,cAAc,OAAA;AAEvB,QAAQ;AACR,mCAAiC;AAAxB,0FAAA,GAAG,OAAA;AACZ,uCAAqC;AAA5B,8FAAA,KAAK,OAAA;AAEd,QAAQ;AACR,kDAAuB","sourcesContent":["// Components\nexport { Alert } from \"./components/alert\"\nexport { Avatar } from \"./components/avatar\"\nexport { Badge } from \"./components/badge\"\nexport { Button } from \"./components/button\"\nexport { Calendar } from \"./components/calendar\"\nexport { Checkbox, type CheckboxCheckedState } from \"./components/checkbox\"\nexport { Code } from \"./components/code\"\nexport { CodeBlock } from \"./components/code-block\"\nexport { Command } from \"./components/command\"\nexport { CommandBar } from \"./components/command-bar\"\nexport { Container } from \"./components/container\"\nexport { Copy } from \"./components/copy\"\nexport { CurrencyInput } from \"./components/currency-input\"\nexport { DatePicker } from \"./components/date-picker\"\nexport { Divider } from \"./components/divider\"\nexport { Drawer } from \"./components/drawer\"\nexport { DropdownMenu } from \"./components/dropdown-menu\"\nexport { FocusModal } from \"./components/focus-modal\"\nexport { Form } from \"./components/form\"\nexport { Heading } from \"./components/heading\"\nexport { Hint } from \"./components/hint\"\nexport { I18nProvider } from \"./components/i18n-provider\"\nexport { IconBadge } from \"./components/icon-badge\"\nexport { IconButton } from \"./components/icon-button\"\nexport { InlineTip } from \"./components/inline-tip\"\nexport { Input } from \"./components/input\"\nexport { Kbd } from \"./components/kbd\"\nexport { Label } from \"./components/label\"\nexport { Popover } from \"./components/popover\"\nexport { ProgressAccordion } from \"./components/progress-accordion\"\nexport { ProgressTabs } from \"./components/progress-tabs\"\nexport { Prompt } from \"./components/prompt\"\nexport { RadioGroup } from \"./components/radio-group\"\nexport { Select } from \"./components/select\"\nexport { Skeleton } from \"./components/skeleton\"\nexport { StatusBadge } from \"./components/status-badge\"\nexport { Switch } from \"./components/switch\"\nexport { Table } from \"./components/table\"\nexport { Tabs } from \"./components/tabs\"\nexport { Text } from \"./components/text\"\nexport { Textarea } from \"./components/textarea\"\nexport { Toast } from \"./components/toast\"\nexport { Toaster } from \"./components/toaster\"\nexport { Tooltip, TooltipProvider } from \"./components/tooltip\"\n// Blocks\nexport * from \"./blocks/data-table\"\n\n// Hooks\nexport { usePrompt } from \"./hooks/use-prompt\"\nexport { useToggleState } from \"./hooks/use-toggle-state\"\n\n// Utils\nexport { clx } from \"./utils/clx\"\nexport { toast } from \"./utils/toast\"\n\n// Types\nexport * from \"./types\"\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,aAAa;AACb,4CAA0C;AAAjC,8FAAA,KAAK,OAAA;AACd,8CAA4C;AAAnC,gGAAA,MAAM,OAAA;AACf,4CAA0C;AAAjC,8FAAA,KAAK,OAAA;AACd,8CAA4C;AAAnC,gGAAA,MAAM,OAAA;AACf,kDAAgD;AAAvC,oGAAA,QAAQ,OAAA;AACjB,kDAA2E;AAAlE,oGAAA,QAAQ,OAAA;AACjB,0CAAwC;AAA/B,4FAAA,IAAI,OAAA;AACb,sDAAmD;AAA1C,uGAAA,SAAS,OAAA;AAClB,gDAA8C;AAArC,kGAAA,OAAO,OAAA;AAChB,wDAAqD;AAA5C,yGAAA,UAAU,OAAA;AACnB,oDAAkD;AAAzC,sGAAA,SAAS,OAAA;AAClB,0CAAwC;AAA/B,4FAAA,IAAI,OAAA;AACb,8DAA2D;AAAlD,+GAAA,aAAa,OAAA;AACtB,wDAAq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AO,OAAA;AAChB,gDAA+D;AAAtD,kGAAA,OAAO,OAAA;AAAE,0GAAA,eAAe,OAAA;AACjC,SAAS;AACT,8DAAmC;AAEnC,QAAQ;AACR,iDAA8C;AAArC,uGAAA,SAAS,OAAA;AAClB,6DAAyD;AAAhD,kHAAA,cAAc,OAAA;AAEvB,QAAQ;AACR,mCAAiC;AAAxB,0FAAA,GAAG,OAAA;AACZ,uCAAqC;AAA5B,8FAAA,KAAK,OAAA;AAEd,QAAQ;AACR,kDAAuB","sourcesContent":["// Components\nexport { Alert } from \"./components/alert\"\nexport { Avatar } from \"./components/avatar\"\nexport { Badge } from \"./components/badge\"\nexport { Button } from \"./components/button\"\nexport { Calendar } from \"./components/calendar\"\nexport { Checkbox, type CheckboxCheckedState } from \"./components/checkbox\"\nexport { Code } from \"./components/code\"\nexport { CodeBlock } from \"./components/code-block\"\nexport { Command } from \"./components/command\"\nexport { CommandBar } from \"./components/command-bar\"\nexport { Container } from \"./components/container\"\nexport { Copy } from \"./components/copy\"\nexport { CurrencyInput } from \"./components/currency-input\"\nexport { DatePicker } from \"./components/date-picker\"\nexport { Divider } from \"./components/divider\"\nexport { Drawer } from \"./components/drawer\"\nexport { DropdownMenu } from \"./components/dropdown-menu\"\nexport { FocusModal } from \"./components/focus-modal\"\nexport { Form } from \"./components/form\"\nexport { Heading } from \"./components/heading\"\nexport { Hint } from \"./components/hint\"\nexport { I18nProvider } from \"./components/i18n-provider\"\nexport { IconBadge } from \"./components/icon-badge\"\nexport { IconButton } from \"./components/icon-button\"\nexport { InlineTip } from \"./components/inline-tip\"\nexport { Input } from \"./components/input\"\nexport { Kbd } from \"./components/kbd\"\nexport { Label } from \"./components/label\"\nexport { Modal } from \"./components/modal\"\nexport { Popover } from \"./components/popover\"\nexport { ProgressAccordion } from \"./components/progress-accordion\"\nexport { ProgressTabs } from \"./components/progress-tabs\"\nexport { Prompt } from \"./components/prompt\"\nexport { RadioGroup } from \"./components/radio-group\"\nexport { Select } from \"./components/select\"\nexport { Skeleton } from \"./components/skeleton\"\nexport { StatusBadge } from \"./components/status-badge\"\nexport { Switch } from \"./components/switch\"\nexport { Table } from \"./components/table\"\nexport { Tabs } from \"./components/tabs\"\nexport { Text } from \"./components/text\"\nexport { Textarea } from \"./components/textarea\"\nexport { Toast } from \"./components/toast\"\nexport { Toaster } from \"./components/toaster\"\nexport { Tooltip, TooltipProvider } from \"./components/tooltip\"\n// Blocks\nexport * from \"./blocks/data-table\"\n\n// Hooks\nexport { usePrompt } from \"./hooks/use-prompt\"\nexport { useToggleState } from \"./hooks/use-toggle-state\"\n\n// Utils\nexport { clx } from \"./utils/clx\"\nexport { toast } from \"./utils/toast\"\n\n// Types\nexport * from \"./types\"\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/modal/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/modal/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA","sourcesContent":["export * from \"./modal\"\n"]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Dialog as RadixDialog } from "radix-ui";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
/**
|
|
4
|
+
* @prop defaultOpen - Whether the modal is opened by default.
|
|
5
|
+
* @prop open - Whether the modal is opened.
|
|
6
|
+
* @prop onOpenChange - A function to handle when the modal is opened or closed.
|
|
7
|
+
*/
|
|
8
|
+
interface ModalRootProps extends React.ComponentPropsWithoutRef<typeof RadixDialog.Root> {
|
|
9
|
+
}
|
|
10
|
+
interface ModalTriggerProps extends React.ComponentPropsWithoutRef<typeof RadixDialog.Trigger> {
|
|
11
|
+
}
|
|
12
|
+
interface ModalPortalProps extends RadixDialog.DialogPortalProps {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* The `Modal.Content` component uses this component to wrap the modal content.
|
|
16
|
+
* It accepts props from the [Radix UI Dialog Portal](https://www.radix-ui.com/primitives/docs/components/dialog#portal) component.
|
|
17
|
+
*/
|
|
18
|
+
declare const ModalPortal: {
|
|
19
|
+
(props: ModalPortalProps): React.JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* This component is used to create the overlay for the modal.
|
|
24
|
+
* It accepts props from the [Radix UI Dialog Overlay](https://www.radix-ui.com/primitives/docs/components/dialog#overlay) component.
|
|
25
|
+
*/
|
|
26
|
+
declare const ModalOverlay: React.ForwardRefExoticComponent<Omit<RadixDialog.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
interface ModalContentProps extends React.ComponentPropsWithoutRef<typeof RadixDialog.Content> {
|
|
28
|
+
/**
|
|
29
|
+
* Props for the overlay component.
|
|
30
|
+
* It accepts props from the [Radix UI Dialog Overlay](https://www.radix-ui.com/primitives/docs/components/dialog#overlay) component.
|
|
31
|
+
*/
|
|
32
|
+
overlayProps?: React.ComponentPropsWithoutRef<typeof ModalOverlay>;
|
|
33
|
+
/**
|
|
34
|
+
* Props for the portal component that wraps the modal content.
|
|
35
|
+
* It accepts props from the [Radix UI Dialog Portal](https://www.radix-ui.com/primitives/docs/components/dialog#portal) component.
|
|
36
|
+
*/
|
|
37
|
+
portalProps?: React.ComponentPropsWithoutRef<typeof ModalPortal>;
|
|
38
|
+
}
|
|
39
|
+
interface ModalTitleProps extends React.ComponentPropsWithoutRef<typeof RadixDialog.Title> {
|
|
40
|
+
}
|
|
41
|
+
declare const Modal: {
|
|
42
|
+
(props: ModalRootProps): React.JSX.Element;
|
|
43
|
+
displayName: string;
|
|
44
|
+
} & {
|
|
45
|
+
Trigger: React.ForwardRefExoticComponent<ModalTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
46
|
+
Title: React.ForwardRefExoticComponent<ModalTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
47
|
+
Description: React.ForwardRefExoticComponent<RadixDialog.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
48
|
+
Content: React.ForwardRefExoticComponent<ModalContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
49
|
+
Header: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
50
|
+
Body: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
51
|
+
Close: React.ForwardRefExoticComponent<RadixDialog.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
52
|
+
Footer: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
53
|
+
};
|
|
54
|
+
export { Modal };
|
|
55
|
+
//# sourceMappingURL=modal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../../src/components/modal/modal.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,UAAU,CAAA;AAChD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B;;;;GAIG;AACH,UAAU,cACR,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC;CAAG;AAUpE,UAAU,iBACR,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,WAAW,CAAC,OAAO,CAAC;CAAG;AAqBvE,UAAU,gBAAiB,SAAQ,WAAW,CAAC,iBAAiB;CAAG;AAEnE;;;GAGG;AACH,QAAA,MAAM,WAAW;YAAW,gBAAgB;;CAE3C,CAAA;AAGD;;;GAGG;AACH,QAAA,MAAM,YAAY,0JAehB,CAAA;AAGF,UAAU,iBACR,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,WAAW,CAAC,OAAO,CAAC;IAClE;;;OAGG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,OAAO,YAAY,CAAC,CAAA;IAClE;;;OAGG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,OAAO,WAAW,CAAC,CAAA;CACjE;AAmGD,UAAU,eACR,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,WAAW,CAAC,KAAK,CAAC;CAAG;AAoBrE,QAAA,MAAM,KAAK;YAhMe,cAAc;;;;;;;;;;;CAyMtC,CAAA;AAEF,OAAO,EAAE,KAAK,EAAE,CAAA"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { XMark } from "@acmekit/icons";
|
|
3
|
+
import { Dialog as RadixDialog } from "radix-ui";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import { IconButton } from "../icon-button";
|
|
6
|
+
import { Kbd } from "../kbd";
|
|
7
|
+
import { clx } from "../../utils/clx";
|
|
8
|
+
/**
|
|
9
|
+
* This component is based on the [Radix UI Dialog](https://www.radix-ui.com/primitives/docs/components/dialog) primitives.
|
|
10
|
+
*/
|
|
11
|
+
const ModalRoot = (props) => {
|
|
12
|
+
return React.createElement(RadixDialog.Root, { ...props });
|
|
13
|
+
};
|
|
14
|
+
ModalRoot.displayName = "Modal";
|
|
15
|
+
/**
|
|
16
|
+
* This component is used to create the trigger button that opens the modal.
|
|
17
|
+
* It accepts props from the [Radix UI Dialog Trigger](https://www.radix-ui.com/primitives/docs/components/dialog#trigger) component.
|
|
18
|
+
*/
|
|
19
|
+
const ModalTrigger = React.forwardRef((props, ref) => {
|
|
20
|
+
return React.createElement(RadixDialog.Trigger, { ref: ref, ...props });
|
|
21
|
+
});
|
|
22
|
+
ModalTrigger.displayName = "Modal.Trigger";
|
|
23
|
+
/**
|
|
24
|
+
* This component is used to create the close button for the modal.
|
|
25
|
+
* It accepts props from the [Radix UI Dialog Close](https://www.radix-ui.com/primitives/docs/components/dialog#close) component.
|
|
26
|
+
*/
|
|
27
|
+
const ModalClose = RadixDialog.Close;
|
|
28
|
+
ModalClose.displayName = "Modal.Close";
|
|
29
|
+
/**
|
|
30
|
+
* The `Modal.Content` component uses this component to wrap the modal content.
|
|
31
|
+
* It accepts props from the [Radix UI Dialog Portal](https://www.radix-ui.com/primitives/docs/components/dialog#portal) component.
|
|
32
|
+
*/
|
|
33
|
+
const ModalPortal = (props) => {
|
|
34
|
+
return React.createElement(RadixDialog.DialogPortal, { ...props });
|
|
35
|
+
};
|
|
36
|
+
ModalPortal.displayName = "Modal.Portal";
|
|
37
|
+
/**
|
|
38
|
+
* This component is used to create the overlay for the modal.
|
|
39
|
+
* It accepts props from the [Radix UI Dialog Overlay](https://www.radix-ui.com/primitives/docs/components/dialog#overlay) component.
|
|
40
|
+
*/
|
|
41
|
+
const ModalOverlay = React.forwardRef(({ className, ...props }, ref) => {
|
|
42
|
+
return (React.createElement(RadixDialog.Overlay, { ref: ref, className: clx("bg-ui-bg-overlay fixed inset-0", "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className), ...props }));
|
|
43
|
+
});
|
|
44
|
+
ModalOverlay.displayName = "Modal.Overlay";
|
|
45
|
+
/**
|
|
46
|
+
* This component wraps the content of the modal.
|
|
47
|
+
* It accepts props from the [Radix UI Dialog Content](https://www.radix-ui.com/primitives/docs/components/dialog#content) component.
|
|
48
|
+
*/
|
|
49
|
+
const ModalContent = React.forwardRef(({ className, overlayProps, portalProps, ...props }, ref) => {
|
|
50
|
+
return (React.createElement(ModalPortal, { ...portalProps },
|
|
51
|
+
React.createElement(ModalOverlay, { ...overlayProps }),
|
|
52
|
+
React.createElement(RadixDialog.Content, { ref: ref, className: clx("bg-ui-bg-base shadow-elevation-flyout fixed left-[50%] top-[50%] flex max-h-[85vh] w-full max-w-lg translate-x-[-50%] translate-y-[-50%] flex-col overflow-hidden rounded-lg border outline-none", "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] duration-200", className), ...props })));
|
|
53
|
+
});
|
|
54
|
+
ModalContent.displayName = "Modal.Content";
|
|
55
|
+
/**
|
|
56
|
+
* This component is used to wrap the header content of the modal.
|
|
57
|
+
* This component is based on the `div` element and supports all of its props
|
|
58
|
+
*/
|
|
59
|
+
const ModalHeader = React.forwardRef(({ children, className, ...props }, ref) => {
|
|
60
|
+
return (React.createElement("div", { ref: ref, className: clx("border-ui-border-base flex items-center justify-between gap-x-4 border-b px-4 py-2", className), ...props },
|
|
61
|
+
React.createElement("div", { className: "flex items-center gap-x-2" },
|
|
62
|
+
React.createElement(RadixDialog.Close, { asChild: true },
|
|
63
|
+
React.createElement(IconButton, { size: "small", type: "button", variant: "transparent" },
|
|
64
|
+
React.createElement(XMark, null))),
|
|
65
|
+
React.createElement(Kbd, null, "esc")),
|
|
66
|
+
children));
|
|
67
|
+
});
|
|
68
|
+
ModalHeader.displayName = "Modal.Header";
|
|
69
|
+
/**
|
|
70
|
+
* This component is used to wrap the body content of the modal.
|
|
71
|
+
* This component is based on the `div` element and supports all of its props
|
|
72
|
+
*/
|
|
73
|
+
const ModalBody = React.forwardRef(({ className, ...props }, ref) => {
|
|
74
|
+
return (React.createElement("div", { ref: ref, className: clx("flex-1 overflow-y-auto px-6 py-4", className), ...props }));
|
|
75
|
+
});
|
|
76
|
+
ModalBody.displayName = "Modal.Body";
|
|
77
|
+
/**
|
|
78
|
+
* This component is used to wrap the footer content of the modal.
|
|
79
|
+
* This component is based on the `div` element and supports all of its props
|
|
80
|
+
*/
|
|
81
|
+
const ModalFooter = React.forwardRef(({ children, className, ...props }, ref) => {
|
|
82
|
+
return (React.createElement("div", { ref: ref, className: clx("border-ui-border-base flex items-center justify-end gap-x-2 border-t p-4", className), ...props }, children));
|
|
83
|
+
});
|
|
84
|
+
ModalFooter.displayName = "Modal.Footer";
|
|
85
|
+
/**
|
|
86
|
+
* This component adds an accessible title to the modal.
|
|
87
|
+
* It accepts props from the [Radix UI Dialog Title](https://www.radix-ui.com/primitives/docs/components/dialog#title) component.
|
|
88
|
+
*/
|
|
89
|
+
const ModalTitle = React.forwardRef(({ className, ...props }, ref) => {
|
|
90
|
+
return React.createElement(RadixDialog.Title, { ref: ref, ...props });
|
|
91
|
+
});
|
|
92
|
+
ModalTitle.displayName = "Modal.Title";
|
|
93
|
+
/**
|
|
94
|
+
* This component adds accessible description to the modal.
|
|
95
|
+
* It accepts props from the [Radix UI Dialog Description](https://www.radix-ui.com/primitives/docs/components/dialog#description) component.
|
|
96
|
+
*/
|
|
97
|
+
const ModalDescription = RadixDialog.Description;
|
|
98
|
+
ModalDescription.displayName = "Modal.Description";
|
|
99
|
+
const Modal = Object.assign(ModalRoot, {
|
|
100
|
+
Trigger: ModalTrigger,
|
|
101
|
+
Title: ModalTitle,
|
|
102
|
+
Description: ModalDescription,
|
|
103
|
+
Content: ModalContent,
|
|
104
|
+
Header: ModalHeader,
|
|
105
|
+
Body: ModalBody,
|
|
106
|
+
Close: ModalClose,
|
|
107
|
+
Footer: ModalFooter,
|
|
108
|
+
});
|
|
109
|
+
export { Modal };
|
|
110
|
+
//# sourceMappingURL=modal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.js","sourceRoot":"","sources":["../../../../src/components/modal/modal.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AACtC,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,M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client\"\n\nimport { XMark } from \"@acmekit/icons\"\nimport { Dialog as RadixDialog } from \"radix-ui\"\nimport * as React from \"react\"\n\nimport { IconButton } from \"@/components/icon-button\"\nimport { Kbd } from \"@/components/kbd\"\nimport { clx } from \"@/utils/clx\"\n\n/**\n * @prop defaultOpen - Whether the modal is opened by default.\n * @prop open - Whether the modal is opened.\n * @prop onOpenChange - A function to handle when the modal is opened or closed.\n */\ninterface ModalRootProps\n extends React.ComponentPropsWithoutRef<typeof RadixDialog.Root> {}\n\n/**\n * This component is based on the [Radix UI Dialog](https://www.radix-ui.com/primitives/docs/components/dialog) primitives.\n */\nconst ModalRoot = (props: ModalRootProps) => {\n return <RadixDialog.Root {...props} />\n}\nModalRoot.displayName = \"Modal\"\n\ninterface ModalTriggerProps\n extends React.ComponentPropsWithoutRef<typeof RadixDialog.Trigger> {}\n\n/**\n * This component is used to create the trigger button that opens the modal.\n * It accepts props from the [Radix UI Dialog Trigger](https://www.radix-ui.com/primitives/docs/components/dialog#trigger) component.\n */\nconst ModalTrigger = React.forwardRef<\n React.ElementRef<typeof RadixDialog.Trigger>,\n ModalTriggerProps\n>((props: ModalTriggerProps, ref) => {\n return <RadixDialog.Trigger ref={ref} {...props} />\n})\nModalTrigger.displayName = \"Modal.Trigger\"\n\n/**\n * This component is used to create the close button for the modal.\n * It accepts props from the [Radix UI Dialog Close](https://www.radix-ui.com/primitives/docs/components/dialog#close) component.\n */\nconst ModalClose = RadixDialog.Close\nModalClose.displayName = \"Modal.Close\"\n\ninterface ModalPortalProps extends RadixDialog.DialogPortalProps {}\n\n/**\n * The `Modal.Content` component uses this component to wrap the modal content.\n * It accepts props from the [Radix UI Dialog Portal](https://www.radix-ui.com/primitives/docs/components/dialog#portal) component.\n */\nconst ModalPortal = (props: ModalPortalProps) => {\n return <RadixDialog.DialogPortal {...props} />\n}\nModalPortal.displayName = \"Modal.Portal\"\n\n/**\n * This component is used to create the overlay for the modal.\n * It accepts props from the [Radix UI Dialog Overlay](https://www.radix-ui.com/primitives/docs/components/dialog#overlay) component.\n */\nconst ModalOverlay = React.forwardRef<\n React.ElementRef<typeof RadixDialog.Overlay>,\n React.ComponentPropsWithoutRef<typeof RadixDialog.Overlay>\n>(({ className, ...props }, ref) => {\n return (\n <RadixDialog.Overlay\n ref={ref}\n className={clx(\n \"bg-ui-bg-overlay fixed inset-0\",\n \"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n className\n )}\n {...props}\n />\n )\n})\nModalOverlay.displayName = \"Modal.Overlay\"\n\ninterface ModalContentProps\n extends React.ComponentPropsWithoutRef<typeof RadixDialog.Content> {\n /**\n * Props for the overlay component.\n * It accepts props from the [Radix UI Dialog Overlay](https://www.radix-ui.com/primitives/docs/components/dialog#overlay) component.\n */\n overlayProps?: React.ComponentPropsWithoutRef<typeof ModalOverlay>\n /**\n * Props for the portal component that wraps the modal content.\n * It accepts props from the [Radix UI Dialog Portal](https://www.radix-ui.com/primitives/docs/components/dialog#portal) component.\n */\n portalProps?: React.ComponentPropsWithoutRef<typeof ModalPortal>\n}\n\n/**\n * This component wraps the content of the modal.\n * It accepts props from the [Radix UI Dialog Content](https://www.radix-ui.com/primitives/docs/components/dialog#content) component.\n */\nconst ModalContent = React.forwardRef<\n React.ElementRef<typeof RadixDialog.Content>,\n ModalContentProps\n>(({ className, overlayProps, portalProps, ...props }, ref) => {\n return (\n <ModalPortal {...portalProps}>\n <ModalOverlay {...overlayProps} />\n <RadixDialog.Content\n ref={ref}\n className={clx(\n \"bg-ui-bg-base shadow-elevation-flyout fixed left-[50%] top-[50%] flex max-h-[85vh] w-full max-w-lg translate-x-[-50%] translate-y-[-50%] flex-col overflow-hidden rounded-lg border outline-none\",\n \"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] duration-200\",\n className\n )}\n {...props}\n />\n </ModalPortal>\n )\n})\nModalContent.displayName = \"Modal.Content\"\n\n/**\n * This component is used to wrap the header content of the modal.\n * This component is based on the `div` element and supports all of its props\n */\nconst ModalHeader = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<\"div\">\n>(({ children, className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={clx(\n \"border-ui-border-base flex items-center justify-between gap-x-4 border-b px-4 py-2\",\n className\n )}\n {...props}\n >\n <div className=\"flex items-center gap-x-2\">\n <RadixDialog.Close asChild>\n <IconButton size=\"small\" type=\"button\" variant=\"transparent\">\n <XMark />\n </IconButton>\n </RadixDialog.Close>\n <Kbd>esc</Kbd>\n </div>\n {children}\n </div>\n )\n})\nModalHeader.displayName = \"Modal.Header\"\n\n/**\n * This component is used to wrap the body content of the modal.\n * This component is based on the `div` element and supports all of its props\n */\nconst ModalBody = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<\"div\">\n>(({ className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={clx(\"flex-1 overflow-y-auto px-6 py-4\", className)}\n {...props}\n />\n )\n})\nModalBody.displayName = \"Modal.Body\"\n\n/**\n * This component is used to wrap the footer content of the modal.\n * This component is based on the `div` element and supports all of its props\n */\nconst ModalFooter = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<\"div\">\n>(({ children, className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={clx(\n \"border-ui-border-base flex items-center justify-end gap-x-2 border-t p-4\",\n className\n )}\n {...props}\n >\n {children}\n </div>\n )\n})\nModalFooter.displayName = \"Modal.Footer\"\n\ninterface ModalTitleProps\n extends React.ComponentPropsWithoutRef<typeof RadixDialog.Title> {}\n\n/**\n * This component adds an accessible title to the modal.\n * It accepts props from the [Radix UI Dialog Title](https://www.radix-ui.com/primitives/docs/components/dialog#title) component.\n */\nconst ModalTitle = React.forwardRef<HTMLHeadingElement, ModalTitleProps>(\n ({ className, ...props }: ModalTitleProps, ref) => {\n return <RadixDialog.Title ref={ref} {...props} />\n }\n)\nModalTitle.displayName = \"Modal.Title\"\n\n/**\n * This component adds accessible description to the modal.\n * It accepts props from the [Radix UI Dialog Description](https://www.radix-ui.com/primitives/docs/components/dialog#description) component.\n */\nconst ModalDescription = RadixDialog.Description\nModalDescription.displayName = \"Modal.Description\"\n\nconst Modal = Object.assign(ModalRoot, {\n Trigger: ModalTrigger,\n Title: ModalTitle,\n Description: ModalDescription,\n Content: ModalContent,\n Header: ModalHeader,\n Body: ModalBody,\n Close: ModalClose,\n Footer: ModalFooter,\n})\n\nexport { Modal }\n"]}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export { InlineTip } from "./components/inline-tip";
|
|
|
26
26
|
export { Input } from "./components/input";
|
|
27
27
|
export { Kbd } from "./components/kbd";
|
|
28
28
|
export { Label } from "./components/label";
|
|
29
|
+
export { Modal } from "./components/modal";
|
|
29
30
|
export { Popover } from "./components/popover";
|
|
30
31
|
export { ProgressAccordion } from "./components/progress-accordion";
|
|
31
32
|
export { ProgressTabs } from "./components/progress-tabs";
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAChD,OAAO,EAAE,QAAQ,EAAE,KAAK,oBAAoB,EAAE,MAAM,uBAAuB,CAAA;AAC3E,OAAO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line-tip";
|
|
|
27
27
|
export { Input } from "./components/input";
|
|
28
28
|
export { Kbd } from "./components/kbd";
|
|
29
29
|
export { Label } from "./components/label";
|
|
30
|
+
export { Modal } from "./components/modal";
|
|
30
31
|
export { Popover } from "./components/popover";
|
|
31
32
|
export { ProgressAccordion } from "./components/progress-accordion";
|
|
32
33
|
export { ProgressTabs } from "./components/progress-tabs";
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAChD,OAAO,EAAE,QAAQ,EAA6B,MAAM,uBAAuB,CAAA;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,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;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAC9C,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC/D,SAAS;AACT,cAAc,qBAAqB,CAAA;AAEnC,QAAQ;AACR,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAEzD,QAAQ;AACR,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAErC,QAAQ;AACR,cAAc,SAAS,CAAA","sourcesContent":["// Components\nexport { Alert } from \"./components/alert\"\nexport { Avatar } from \"./components/avatar\"\nexport { Badge } from \"./components/badge\"\nexport { Button } from \"./components/button\"\nexport { Calendar } from \"./components/calendar\"\nexport { Checkbox, type CheckboxCheckedState } from \"./components/checkbox\"\nexport { Code } from \"./components/code\"\nexport { CodeBlock } from \"./components/code-block\"\nexport { Command } from \"./components/command\"\nexport { CommandBar } from \"./components/command-bar\"\nexport { Container } from \"./components/container\"\nexport { Copy } from \"./components/copy\"\nexport { CurrencyInput } from \"./components/currency-input\"\nexport { DatePicker } from \"./components/date-picker\"\nexport { Divider } from \"./components/divider\"\nexport { Drawer } from \"./components/drawer\"\nexport { DropdownMenu } from \"./components/dropdown-menu\"\nexport { FocusModal } from \"./components/focus-modal\"\nexport { Form } from \"./components/form\"\nexport { Heading } from \"./components/heading\"\nexport { Hint } from \"./components/hint\"\nexport { I18nProvider } from \"./components/i18n-provider\"\nexport { IconBadge } from \"./components/icon-badge\"\nexport { IconButton } from \"./components/icon-button\"\nexport { InlineTip } from \"./components/inline-tip\"\nexport { Input } from \"./components/input\"\nexport { Kbd } from \"./components/kbd\"\nexport { Label } from \"./components/label\"\nexport { Popover } from \"./components/popover\"\nexport { ProgressAccordion } from \"./components/progress-accordion\"\nexport { ProgressTabs } from \"./components/progress-tabs\"\nexport { Prompt } from \"./components/prompt\"\nexport { RadioGroup } from \"./components/radio-group\"\nexport { Select } from \"./components/select\"\nexport { Skeleton } from \"./components/skeleton\"\nexport { StatusBadge } from \"./components/status-badge\"\nexport { Switch } from \"./components/switch\"\nexport { Table } from \"./components/table\"\nexport { Tabs } from \"./components/tabs\"\nexport { Text } from \"./components/text\"\nexport { Textarea } from \"./components/textarea\"\nexport { Toast } from \"./components/toast\"\nexport { Toaster } from \"./components/toaster\"\nexport { Tooltip, TooltipProvider } from \"./components/tooltip\"\n// Blocks\nexport * from \"./blocks/data-table\"\n\n// Hooks\nexport { usePrompt } from \"./hooks/use-prompt\"\nexport { useToggleState } from \"./hooks/use-toggle-state\"\n\n// Utils\nexport { clx } from \"./utils/clx\"\nexport { toast } from \"./utils/toast\"\n\n// Types\nexport * from \"./types\"\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAChD,OAAO,EAAE,QAAQ,EAA6B,MAAM,uBAAuB,CAAA;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAClD,OAAO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E,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAC9C,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC/D,SAAS;AACT,cAAc,qBAAqB,CAAA;AAEnC,QAAQ;AACR,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAEzD,QAAQ;AACR,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAErC,QAAQ;AACR,cAAc,SAAS,CAAA","sourcesContent":["// Components\nexport { Alert } from \"./components/alert\"\nexport { Avatar } from \"./components/avatar\"\nexport { Badge } from \"./components/badge\"\nexport { Button } from \"./components/button\"\nexport { Calendar } from \"./components/calendar\"\nexport { Checkbox, type CheckboxCheckedState } from \"./components/checkbox\"\nexport { Code } from \"./components/code\"\nexport { CodeBlock } from \"./components/code-block\"\nexport { Command } from \"./components/command\"\nexport { CommandBar } from \"./components/command-bar\"\nexport { Container } from \"./components/container\"\nexport { Copy } from \"./components/copy\"\nexport { CurrencyInput } from \"./components/currency-input\"\nexport { DatePicker } from \"./components/date-picker\"\nexport { Divider } from \"./components/divider\"\nexport { Drawer } from \"./components/drawer\"\nexport { DropdownMenu } from \"./components/dropdown-menu\"\nexport { FocusModal } from \"./components/focus-modal\"\nexport { Form } from \"./components/form\"\nexport { Heading } from \"./components/heading\"\nexport { Hint } from \"./components/hint\"\nexport { I18nProvider } from \"./components/i18n-provider\"\nexport { IconBadge } from \"./components/icon-badge\"\nexport { IconButton } from \"./components/icon-button\"\nexport { InlineTip } from \"./components/inline-tip\"\nexport { Input } from \"./components/input\"\nexport { Kbd } from \"./components/kbd\"\nexport { Label } from \"./components/label\"\nexport { Modal } from \"./components/modal\"\nexport { Popover } from \"./components/popover\"\nexport { ProgressAccordion } from \"./components/progress-accordion\"\nexport { ProgressTabs } from \"./components/progress-tabs\"\nexport { Prompt } from \"./components/prompt\"\nexport { RadioGroup } from \"./components/radio-group\"\nexport { Select } from \"./components/select\"\nexport { Skeleton } from \"./components/skeleton\"\nexport { StatusBadge } from \"./components/status-badge\"\nexport { Switch } from \"./components/switch\"\nexport { Table } from \"./components/table\"\nexport { Tabs } from \"./components/tabs\"\nexport { Text } from \"./components/text\"\nexport { Textarea } from \"./components/textarea\"\nexport { Toast } from \"./components/toast\"\nexport { Toaster } from \"./components/toaster\"\nexport { Tooltip, TooltipProvider } from \"./components/tooltip\"\n// Blocks\nexport * from \"./blocks/data-table\"\n\n// Hooks\nexport { usePrompt } from \"./hooks/use-prompt\"\nexport { useToggleState } from \"./hooks/use-toggle-state\"\n\n// Utils\nexport { clx } from \"./utils/clx\"\nexport { toast } from \"./utils/toast\"\n\n// Types\nexport * from \"./types\"\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acmekit/ui",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.35",
|
|
4
4
|
"author": "Kasper Kristensen <kasper@acmekit.com>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
"typecheck": "yarn run -T tsc --noEmit"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@acmekit/ui-preset": "2.13.
|
|
45
|
+
"@acmekit/ui-preset": "2.13.39",
|
|
46
46
|
"react": "^18.3.1",
|
|
47
47
|
"react-dom": "^18.3.1"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@acmekit/icons": "2.13.
|
|
50
|
+
"@acmekit/icons": "2.13.39",
|
|
51
51
|
"@dnd-kit/core": "^6.1.0",
|
|
52
52
|
"@dnd-kit/sortable": "^8.0.0",
|
|
53
53
|
"@dnd-kit/utilities": "^3.2.2",
|