@kopexa/dialog 10.0.9 → 11.0.0

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.
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
 
3
3
  // src/dialog.tsx
4
+ import { Dialog as DialogPrimitive } from "@base-ui-components/react/dialog";
4
5
  import { CloseIcon } from "@kopexa/icons";
5
6
  import { createContext } from "@kopexa/react-utils";
6
7
  import { cn } from "@kopexa/shared-utils";
7
8
  import { dialog } from "@kopexa/theme";
8
9
  import { useControllableState } from "@kopexa/use-controllable-state";
9
- import * as DialogPrimitive from "@radix-ui/react-dialog";
10
10
  import { jsx, jsxs } from "react/jsx-runtime";
11
11
  var [DialogProvider, useDialogContext] = createContext();
12
12
  var DialogRoot = (props) => {
@@ -29,7 +29,7 @@ var DialogRoot = (props) => {
29
29
  {
30
30
  "data-slot": "dialog",
31
31
  open,
32
- onOpenChange: setOpen,
32
+ onOpenChange: (open2) => setOpen(open2),
33
33
  ...restProps
34
34
  }
35
35
  ) });
@@ -46,12 +46,10 @@ function DialogClose({ ...props }) {
46
46
  function DialogOverlay({ className, ...props }) {
47
47
  const { styles } = useDialogContext();
48
48
  return /* @__PURE__ */ jsx(
49
- DialogPrimitive.Overlay,
49
+ DialogPrimitive.Backdrop,
50
50
  {
51
51
  "data-slot": "dialog-overlay",
52
- className: styles.overlay({
53
- className
54
- }),
52
+ className: cn(styles.overlay(), className),
55
53
  ...props
56
54
  }
57
55
  );
@@ -66,7 +64,7 @@ function DialogContent({
66
64
  return /* @__PURE__ */ jsxs(DialogPortal, { "data-slot": "dialog-portal", children: [
67
65
  /* @__PURE__ */ jsx(DialogOverlay, {}),
68
66
  /* @__PURE__ */ jsxs(
69
- DialogPrimitive.Content,
67
+ DialogPrimitive.Popup,
70
68
  {
71
69
  "data-slot": "dialog-content",
72
70
  className: cn(styles.content(), className),
@@ -128,7 +126,7 @@ function DialogTitle({ className, ...props }) {
128
126
  DialogPrimitive.Title,
129
127
  {
130
128
  "data-slot": "dialog-title",
131
- className: styles.title({ className }),
129
+ className: cn(styles.title(), className),
132
130
  ...props
133
131
  }
134
132
  );
@@ -142,7 +140,7 @@ function DialogDescription({
142
140
  DialogPrimitive.Description,
143
141
  {
144
142
  "data-slot": "dialog-description",
145
- className: styles.description({ className }),
143
+ className: cn(styles.description(), className),
146
144
  ...props
147
145
  }
148
146
  );
@@ -156,7 +154,7 @@ function DialogCloseTrigger({
156
154
  DialogPrimitive.Close,
157
155
  {
158
156
  "data-slot": "dialog-close-trigger",
159
- className: styles.closeTrigger({ className }),
157
+ className: cn(styles.closeTrigger(), className),
160
158
  ...props
161
159
  }
162
160
  );
package/dist/dialog.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { Dialog } from '@base-ui-components/react/dialog';
2
3
  import { dialog, DialogVariantProps } from '@kopexa/theme';
3
- import * as DialogPrimitive from '@radix-ui/react-dialog';
4
4
  import { ComponentProps } from 'react';
5
5
 
6
6
  type DialogContextValue = {
@@ -12,17 +12,19 @@ type DialogContextValue = {
12
12
  };
13
13
  declare const useDialogContext: () => DialogContextValue;
14
14
 
15
- type DialogRootProps = ComponentProps<typeof DialogPrimitive.Root> & DialogVariantProps;
15
+ type DialogRootProps = Omit<ComponentProps<typeof Dialog.Root>, "onOpenChange"> & DialogVariantProps & {
16
+ onOpenChange?: (open: boolean) => void;
17
+ };
16
18
  declare const DialogRoot: (props: DialogRootProps) => react_jsx_runtime.JSX.Element;
17
- type DialogTriggerProps = ComponentProps<typeof DialogPrimitive.Trigger>;
19
+ type DialogTriggerProps = ComponentProps<typeof Dialog.Trigger>;
18
20
  declare function DialogTrigger({ ...props }: DialogTriggerProps): react_jsx_runtime.JSX.Element;
19
- type DialogPortalProps = ComponentProps<typeof DialogPrimitive.Portal>;
21
+ type DialogPortalProps = ComponentProps<typeof Dialog.Portal>;
20
22
  declare function DialogPortal({ ...props }: DialogPortalProps): react_jsx_runtime.JSX.Element;
21
- type DialogCloseProps = ComponentProps<typeof DialogPrimitive.Close>;
23
+ type DialogCloseProps = ComponentProps<typeof Dialog.Close>;
22
24
  declare function DialogClose({ ...props }: DialogCloseProps): react_jsx_runtime.JSX.Element;
23
- type DialogOverlayProps = ComponentProps<typeof DialogPrimitive.Overlay>;
25
+ type DialogOverlayProps = ComponentProps<typeof Dialog.Backdrop>;
24
26
  declare function DialogOverlay({ className, ...props }: DialogOverlayProps): react_jsx_runtime.JSX.Element;
25
- type DialogContentProps = ComponentProps<typeof DialogPrimitive.Content> & {
27
+ type DialogContentProps = ComponentProps<typeof Dialog.Popup> & {
26
28
  showCloseButton?: boolean;
27
29
  };
28
30
  declare function DialogContent({ className, children, showCloseButton, ...props }: DialogContentProps): react_jsx_runtime.JSX.Element;
@@ -32,11 +34,11 @@ type DialogFooterProps = ComponentProps<"div">;
32
34
  declare function DialogFooter({ className, ...props }: DialogFooterProps): react_jsx_runtime.JSX.Element;
33
35
  type DialogBodyProps = ComponentProps<"div">;
34
36
  declare function DialogBody({ className, ...props }: DialogBodyProps): react_jsx_runtime.JSX.Element;
35
- type DialogTitleProps = ComponentProps<typeof DialogPrimitive.Title>;
37
+ type DialogTitleProps = ComponentProps<typeof Dialog.Title>;
36
38
  declare function DialogTitle({ className, ...props }: DialogTitleProps): react_jsx_runtime.JSX.Element;
37
- type DialogDescriptionProps = ComponentProps<typeof DialogPrimitive.Description>;
39
+ type DialogDescriptionProps = ComponentProps<typeof Dialog.Description>;
38
40
  declare function DialogDescription({ className, ...props }: DialogDescriptionProps): react_jsx_runtime.JSX.Element;
39
- type DialogCloseTriggerProps = ComponentProps<typeof DialogPrimitive.Close>;
41
+ type DialogCloseTriggerProps = ComponentProps<typeof Dialog.Close>;
40
42
  declare function DialogCloseTrigger({ className, ...props }: DialogCloseTriggerProps): react_jsx_runtime.JSX.Element;
41
43
 
42
44
  export { DialogBody, type DialogBodyProps, DialogClose, type DialogCloseProps, DialogCloseTrigger, type DialogCloseTriggerProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogOverlay, type DialogOverlayProps, DialogPortal, type DialogPortalProps, DialogRoot, type DialogRootProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, useDialogContext };
package/dist/dialog.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { Dialog } from '@base-ui-components/react/dialog';
2
3
  import { dialog, DialogVariantProps } from '@kopexa/theme';
3
- import * as DialogPrimitive from '@radix-ui/react-dialog';
4
4
  import { ComponentProps } from 'react';
5
5
 
6
6
  type DialogContextValue = {
@@ -12,17 +12,19 @@ type DialogContextValue = {
12
12
  };
13
13
  declare const useDialogContext: () => DialogContextValue;
14
14
 
15
- type DialogRootProps = ComponentProps<typeof DialogPrimitive.Root> & DialogVariantProps;
15
+ type DialogRootProps = Omit<ComponentProps<typeof Dialog.Root>, "onOpenChange"> & DialogVariantProps & {
16
+ onOpenChange?: (open: boolean) => void;
17
+ };
16
18
  declare const DialogRoot: (props: DialogRootProps) => react_jsx_runtime.JSX.Element;
17
- type DialogTriggerProps = ComponentProps<typeof DialogPrimitive.Trigger>;
19
+ type DialogTriggerProps = ComponentProps<typeof Dialog.Trigger>;
18
20
  declare function DialogTrigger({ ...props }: DialogTriggerProps): react_jsx_runtime.JSX.Element;
19
- type DialogPortalProps = ComponentProps<typeof DialogPrimitive.Portal>;
21
+ type DialogPortalProps = ComponentProps<typeof Dialog.Portal>;
20
22
  declare function DialogPortal({ ...props }: DialogPortalProps): react_jsx_runtime.JSX.Element;
21
- type DialogCloseProps = ComponentProps<typeof DialogPrimitive.Close>;
23
+ type DialogCloseProps = ComponentProps<typeof Dialog.Close>;
22
24
  declare function DialogClose({ ...props }: DialogCloseProps): react_jsx_runtime.JSX.Element;
23
- type DialogOverlayProps = ComponentProps<typeof DialogPrimitive.Overlay>;
25
+ type DialogOverlayProps = ComponentProps<typeof Dialog.Backdrop>;
24
26
  declare function DialogOverlay({ className, ...props }: DialogOverlayProps): react_jsx_runtime.JSX.Element;
25
- type DialogContentProps = ComponentProps<typeof DialogPrimitive.Content> & {
27
+ type DialogContentProps = ComponentProps<typeof Dialog.Popup> & {
26
28
  showCloseButton?: boolean;
27
29
  };
28
30
  declare function DialogContent({ className, children, showCloseButton, ...props }: DialogContentProps): react_jsx_runtime.JSX.Element;
@@ -32,11 +34,11 @@ type DialogFooterProps = ComponentProps<"div">;
32
34
  declare function DialogFooter({ className, ...props }: DialogFooterProps): react_jsx_runtime.JSX.Element;
33
35
  type DialogBodyProps = ComponentProps<"div">;
34
36
  declare function DialogBody({ className, ...props }: DialogBodyProps): react_jsx_runtime.JSX.Element;
35
- type DialogTitleProps = ComponentProps<typeof DialogPrimitive.Title>;
37
+ type DialogTitleProps = ComponentProps<typeof Dialog.Title>;
36
38
  declare function DialogTitle({ className, ...props }: DialogTitleProps): react_jsx_runtime.JSX.Element;
37
- type DialogDescriptionProps = ComponentProps<typeof DialogPrimitive.Description>;
39
+ type DialogDescriptionProps = ComponentProps<typeof Dialog.Description>;
38
40
  declare function DialogDescription({ className, ...props }: DialogDescriptionProps): react_jsx_runtime.JSX.Element;
39
- type DialogCloseTriggerProps = ComponentProps<typeof DialogPrimitive.Close>;
41
+ type DialogCloseTriggerProps = ComponentProps<typeof Dialog.Close>;
40
42
  declare function DialogCloseTrigger({ className, ...props }: DialogCloseTriggerProps): react_jsx_runtime.JSX.Element;
41
43
 
42
44
  export { DialogBody, type DialogBodyProps, DialogClose, type DialogCloseProps, DialogCloseTrigger, type DialogCloseTriggerProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogOverlay, type DialogOverlayProps, DialogPortal, type DialogPortalProps, DialogRoot, type DialogRootProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, useDialogContext };
package/dist/dialog.js CHANGED
@@ -1,10 +1,8 @@
1
1
  "use client";
2
2
  "use strict";
3
- var __create = Object.create;
4
3
  var __defProp = Object.defineProperty;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf;
8
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
7
  var __export = (target, all) => {
10
8
  for (var name in all)
@@ -18,14 +16,6 @@ var __copyProps = (to, from, except, desc) => {
18
16
  }
19
17
  return to;
20
18
  };
21
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
- // If the importer is in node compatibility mode or this is not an ESM
23
- // file that has been converted to a CommonJS file using a Babel-
24
- // compatible transform (i.e. "__esModule" has not been set), then set
25
- // "default" to the CommonJS "module.exports" for node compatibility.
26
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
- mod
28
- ));
29
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
20
 
31
21
  // src/dialog.tsx
@@ -46,12 +36,12 @@ __export(dialog_exports, {
46
36
  useDialogContext: () => useDialogContext
47
37
  });
48
38
  module.exports = __toCommonJS(dialog_exports);
39
+ var import_dialog = require("@base-ui-components/react/dialog");
49
40
  var import_icons = require("@kopexa/icons");
50
41
  var import_react_utils = require("@kopexa/react-utils");
51
42
  var import_shared_utils = require("@kopexa/shared-utils");
52
43
  var import_theme = require("@kopexa/theme");
53
44
  var import_use_controllable_state = require("@kopexa/use-controllable-state");
54
- var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
55
45
  var import_jsx_runtime = require("react/jsx-runtime");
56
46
  var [DialogProvider, useDialogContext] = (0, import_react_utils.createContext)();
57
47
  var DialogRoot = (props) => {
@@ -70,33 +60,31 @@ var DialogRoot = (props) => {
70
60
  });
71
61
  const styles = (0, import_theme.dialog)({ size, radius, placement });
72
62
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogProvider, { value: { styles, open, placement, size, radius }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
73
- DialogPrimitive.Root,
63
+ import_dialog.Dialog.Root,
74
64
  {
75
65
  "data-slot": "dialog",
76
66
  open,
77
- onOpenChange: setOpen,
67
+ onOpenChange: (open2) => setOpen(open2),
78
68
  ...restProps
79
69
  }
80
70
  ) });
81
71
  };
82
72
  function DialogTrigger({ ...props }) {
83
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogPrimitive.Trigger, { "data-slot": "dialog-trigger", ...props });
73
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.Dialog.Trigger, { "data-slot": "dialog-trigger", ...props });
84
74
  }
85
75
  function DialogPortal({ ...props }) {
86
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogPrimitive.Portal, { "data-slot": "dialog-portal", ...props });
76
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.Dialog.Portal, { "data-slot": "dialog-portal", ...props });
87
77
  }
88
78
  function DialogClose({ ...props }) {
89
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogPrimitive.Close, { "data-slot": "dialog-close", ...props });
79
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.Dialog.Close, { "data-slot": "dialog-close", ...props });
90
80
  }
91
81
  function DialogOverlay({ className, ...props }) {
92
82
  const { styles } = useDialogContext();
93
83
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
94
- DialogPrimitive.Overlay,
84
+ import_dialog.Dialog.Backdrop,
95
85
  {
96
86
  "data-slot": "dialog-overlay",
97
- className: styles.overlay({
98
- className
99
- }),
87
+ className: (0, import_shared_utils.cn)(styles.overlay(), className),
100
88
  ...props
101
89
  }
102
90
  );
@@ -111,7 +99,7 @@ function DialogContent({
111
99
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DialogPortal, { "data-slot": "dialog-portal", children: [
112
100
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogOverlay, {}),
113
101
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
114
- DialogPrimitive.Content,
102
+ import_dialog.Dialog.Popup,
115
103
  {
116
104
  "data-slot": "dialog-content",
117
105
  className: (0, import_shared_utils.cn)(styles.content(), className),
@@ -119,7 +107,7 @@ function DialogContent({
119
107
  children: [
120
108
  children,
121
109
  showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
122
- DialogPrimitive.Close,
110
+ import_dialog.Dialog.Close,
123
111
  {
124
112
  "data-slot": "dialog-close",
125
113
  className: styles.close(),
@@ -170,10 +158,10 @@ function DialogBody({ className, ...props }) {
170
158
  function DialogTitle({ className, ...props }) {
171
159
  const { styles } = useDialogContext();
172
160
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
173
- DialogPrimitive.Title,
161
+ import_dialog.Dialog.Title,
174
162
  {
175
163
  "data-slot": "dialog-title",
176
- className: styles.title({ className }),
164
+ className: (0, import_shared_utils.cn)(styles.title(), className),
177
165
  ...props
178
166
  }
179
167
  );
@@ -184,10 +172,10 @@ function DialogDescription({
184
172
  }) {
185
173
  const { styles } = useDialogContext();
186
174
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
187
- DialogPrimitive.Description,
175
+ import_dialog.Dialog.Description,
188
176
  {
189
177
  "data-slot": "dialog-description",
190
- className: styles.description({ className }),
178
+ className: (0, import_shared_utils.cn)(styles.description(), className),
191
179
  ...props
192
180
  }
193
181
  );
@@ -198,10 +186,10 @@ function DialogCloseTrigger({
198
186
  }) {
199
187
  const { styles } = useDialogContext();
200
188
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
201
- DialogPrimitive.Close,
189
+ import_dialog.Dialog.Close,
202
190
  {
203
191
  "data-slot": "dialog-close-trigger",
204
- className: styles.closeTrigger({ className }),
192
+ className: (0, import_shared_utils.cn)(styles.closeTrigger(), className),
205
193
  ...props
206
194
  }
207
195
  );
package/dist/dialog.mjs CHANGED
@@ -13,8 +13,7 @@ import {
13
13
  DialogTitle,
14
14
  DialogTrigger,
15
15
  useDialogContext
16
- } from "./chunk-5S6NCDGO.mjs";
17
- import "./chunk-C7GZJJIK.mjs";
16
+ } from "./chunk-A2AV2YZH.mjs";
18
17
  export {
19
18
  DialogBody,
20
19
  DialogClose,
package/dist/index.d.mts CHANGED
@@ -1,6 +1,22 @@
1
- export { DialogBody, DialogBodyProps, DialogClose, DialogCloseProps, DialogCloseTrigger, DialogCloseTriggerProps, DialogContent, DialogContentProps, DialogDescription, DialogDescriptionProps, DialogFooter, DialogFooterProps, DialogHeader, DialogHeaderProps, DialogOverlay, DialogOverlayProps, DialogPortal, DialogPortalProps, DialogRoot, DialogRootProps, DialogTitle, DialogTitleProps, DialogTrigger, DialogTriggerProps, useDialogContext } from './dialog.mjs';
2
- export { n as Dialog } from './namespace.mjs';
3
- import 'react/jsx-runtime';
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { DialogRootProps, DialogBody, DialogCloseTrigger, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from './dialog.mjs';
3
+ export { DialogBodyProps, DialogClose, DialogCloseProps, DialogCloseTriggerProps, DialogContentProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogOverlayProps, DialogPortalProps, DialogRoot, DialogTitleProps, DialogTriggerProps, useDialogContext } from './dialog.mjs';
4
+ import '@base-ui-components/react/dialog';
4
5
  import '@kopexa/theme';
5
- import '@radix-ui/react-dialog';
6
6
  import 'react';
7
+
8
+ declare const Dialog: ((props: DialogRootProps) => react_jsx_runtime.JSX.Element) & {
9
+ Root: (props: DialogRootProps) => react_jsx_runtime.JSX.Element;
10
+ Body: typeof DialogBody;
11
+ CloseTrigger: typeof DialogCloseTrigger;
12
+ Content: typeof DialogContent;
13
+ Description: typeof DialogDescription;
14
+ Footer: typeof DialogFooter;
15
+ Header: typeof DialogHeader;
16
+ Overlay: typeof DialogOverlay;
17
+ Portal: typeof DialogPortal;
18
+ Title: typeof DialogTitle;
19
+ Trigger: typeof DialogTrigger;
20
+ };
21
+
22
+ export { Dialog, DialogBody, DialogCloseTrigger, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogRootProps, DialogTitle, DialogTrigger };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,22 @@
1
- export { DialogBody, DialogBodyProps, DialogClose, DialogCloseProps, DialogCloseTrigger, DialogCloseTriggerProps, DialogContent, DialogContentProps, DialogDescription, DialogDescriptionProps, DialogFooter, DialogFooterProps, DialogHeader, DialogHeaderProps, DialogOverlay, DialogOverlayProps, DialogPortal, DialogPortalProps, DialogRoot, DialogRootProps, DialogTitle, DialogTitleProps, DialogTrigger, DialogTriggerProps, useDialogContext } from './dialog.js';
2
- export { n as Dialog } from './namespace.js';
3
- import 'react/jsx-runtime';
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { DialogRootProps, DialogBody, DialogCloseTrigger, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from './dialog.js';
3
+ export { DialogBodyProps, DialogClose, DialogCloseProps, DialogCloseTriggerProps, DialogContentProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogOverlayProps, DialogPortalProps, DialogRoot, DialogTitleProps, DialogTriggerProps, useDialogContext } from './dialog.js';
4
+ import '@base-ui-components/react/dialog';
4
5
  import '@kopexa/theme';
5
- import '@radix-ui/react-dialog';
6
6
  import 'react';
7
+
8
+ declare const Dialog: ((props: DialogRootProps) => react_jsx_runtime.JSX.Element) & {
9
+ Root: (props: DialogRootProps) => react_jsx_runtime.JSX.Element;
10
+ Body: typeof DialogBody;
11
+ CloseTrigger: typeof DialogCloseTrigger;
12
+ Content: typeof DialogContent;
13
+ Description: typeof DialogDescription;
14
+ Footer: typeof DialogFooter;
15
+ Header: typeof DialogHeader;
16
+ Overlay: typeof DialogOverlay;
17
+ Portal: typeof DialogPortal;
18
+ Title: typeof DialogTitle;
19
+ Trigger: typeof DialogTrigger;
20
+ };
21
+
22
+ export { Dialog, DialogBody, DialogCloseTrigger, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogRootProps, DialogTitle, DialogTrigger };
package/dist/index.js CHANGED
@@ -1,10 +1,8 @@
1
1
  "use client";
2
2
  "use strict";
3
- var __create = Object.create;
4
3
  var __defProp = Object.defineProperty;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf;
8
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
7
  var __export = (target, all) => {
10
8
  for (var name in all)
@@ -18,20 +16,12 @@ var __copyProps = (to, from, except, desc) => {
18
16
  }
19
17
  return to;
20
18
  };
21
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
- // If the importer is in node compatibility mode or this is not an ESM
23
- // file that has been converted to a CommonJS file using a Babel-
24
- // compatible transform (i.e. "__esModule" has not been set), then set
25
- // "default" to the CommonJS "module.exports" for node compatibility.
26
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
- mod
28
- ));
29
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
20
 
31
21
  // src/index.ts
32
22
  var index_exports = {};
33
23
  __export(index_exports, {
34
- Dialog: () => namespace_exports,
24
+ Dialog: () => Dialog,
35
25
  DialogBody: () => DialogBody,
36
26
  DialogClose: () => DialogClose,
37
27
  DialogCloseTrigger: () => DialogCloseTrigger,
@@ -49,12 +39,12 @@ __export(index_exports, {
49
39
  module.exports = __toCommonJS(index_exports);
50
40
 
51
41
  // src/dialog.tsx
42
+ var import_dialog = require("@base-ui-components/react/dialog");
52
43
  var import_icons = require("@kopexa/icons");
53
44
  var import_react_utils = require("@kopexa/react-utils");
54
45
  var import_shared_utils = require("@kopexa/shared-utils");
55
46
  var import_theme = require("@kopexa/theme");
56
47
  var import_use_controllable_state = require("@kopexa/use-controllable-state");
57
- var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
58
48
  var import_jsx_runtime = require("react/jsx-runtime");
59
49
  var [DialogProvider, useDialogContext] = (0, import_react_utils.createContext)();
60
50
  var DialogRoot = (props) => {
@@ -73,33 +63,31 @@ var DialogRoot = (props) => {
73
63
  });
74
64
  const styles = (0, import_theme.dialog)({ size, radius, placement });
75
65
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogProvider, { value: { styles, open, placement, size, radius }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
76
- DialogPrimitive.Root,
66
+ import_dialog.Dialog.Root,
77
67
  {
78
68
  "data-slot": "dialog",
79
69
  open,
80
- onOpenChange: setOpen,
70
+ onOpenChange: (open2) => setOpen(open2),
81
71
  ...restProps
82
72
  }
83
73
  ) });
84
74
  };
85
75
  function DialogTrigger({ ...props }) {
86
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogPrimitive.Trigger, { "data-slot": "dialog-trigger", ...props });
76
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.Dialog.Trigger, { "data-slot": "dialog-trigger", ...props });
87
77
  }
88
78
  function DialogPortal({ ...props }) {
89
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogPrimitive.Portal, { "data-slot": "dialog-portal", ...props });
79
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.Dialog.Portal, { "data-slot": "dialog-portal", ...props });
90
80
  }
91
81
  function DialogClose({ ...props }) {
92
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogPrimitive.Close, { "data-slot": "dialog-close", ...props });
82
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.Dialog.Close, { "data-slot": "dialog-close", ...props });
93
83
  }
94
84
  function DialogOverlay({ className, ...props }) {
95
85
  const { styles } = useDialogContext();
96
86
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
97
- DialogPrimitive.Overlay,
87
+ import_dialog.Dialog.Backdrop,
98
88
  {
99
89
  "data-slot": "dialog-overlay",
100
- className: styles.overlay({
101
- className
102
- }),
90
+ className: (0, import_shared_utils.cn)(styles.overlay(), className),
103
91
  ...props
104
92
  }
105
93
  );
@@ -114,7 +102,7 @@ function DialogContent({
114
102
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DialogPortal, { "data-slot": "dialog-portal", children: [
115
103
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogOverlay, {}),
116
104
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
117
- DialogPrimitive.Content,
105
+ import_dialog.Dialog.Popup,
118
106
  {
119
107
  "data-slot": "dialog-content",
120
108
  className: (0, import_shared_utils.cn)(styles.content(), className),
@@ -122,7 +110,7 @@ function DialogContent({
122
110
  children: [
123
111
  children,
124
112
  showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
125
- DialogPrimitive.Close,
113
+ import_dialog.Dialog.Close,
126
114
  {
127
115
  "data-slot": "dialog-close",
128
116
  className: styles.close(),
@@ -173,10 +161,10 @@ function DialogBody({ className, ...props }) {
173
161
  function DialogTitle({ className, ...props }) {
174
162
  const { styles } = useDialogContext();
175
163
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
176
- DialogPrimitive.Title,
164
+ import_dialog.Dialog.Title,
177
165
  {
178
166
  "data-slot": "dialog-title",
179
- className: styles.title({ className }),
167
+ className: (0, import_shared_utils.cn)(styles.title(), className),
180
168
  ...props
181
169
  }
182
170
  );
@@ -187,10 +175,10 @@ function DialogDescription({
187
175
  }) {
188
176
  const { styles } = useDialogContext();
189
177
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
190
- DialogPrimitive.Description,
178
+ import_dialog.Dialog.Description,
191
179
  {
192
180
  "data-slot": "dialog-description",
193
- className: styles.description({ className }),
181
+ className: (0, import_shared_utils.cn)(styles.description(), className),
194
182
  ...props
195
183
  }
196
184
  );
@@ -201,30 +189,28 @@ function DialogCloseTrigger({
201
189
  }) {
202
190
  const { styles } = useDialogContext();
203
191
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
204
- DialogPrimitive.Close,
192
+ import_dialog.Dialog.Close,
205
193
  {
206
194
  "data-slot": "dialog-close-trigger",
207
- className: styles.closeTrigger({ className }),
195
+ className: (0, import_shared_utils.cn)(styles.closeTrigger(), className),
208
196
  ...props
209
197
  }
210
198
  );
211
199
  }
212
200
 
213
- // src/namespace.ts
214
- var namespace_exports = {};
215
- __export(namespace_exports, {
216
- Body: () => DialogBody,
217
- Close: () => DialogClose,
218
- CloseTrigger: () => DialogCloseTrigger,
219
- Content: () => DialogContent,
220
- Description: () => DialogDescription,
221
- Footer: () => DialogFooter,
222
- Header: () => DialogHeader,
223
- Overlay: () => DialogOverlay,
224
- Portal: () => DialogPortal,
225
- Root: () => DialogRoot,
226
- Title: () => DialogTitle,
227
- Trigger: () => DialogTrigger
201
+ // src/index.ts
202
+ var Dialog = Object.assign(DialogRoot, {
203
+ Root: DialogRoot,
204
+ Body: DialogBody,
205
+ CloseTrigger: DialogCloseTrigger,
206
+ Content: DialogContent,
207
+ Description: DialogDescription,
208
+ Footer: DialogFooter,
209
+ Header: DialogHeader,
210
+ Overlay: DialogOverlay,
211
+ Portal: DialogPortal,
212
+ Title: DialogTitle,
213
+ Trigger: DialogTrigger
228
214
  });
229
215
  // Annotate the CommonJS export names for ESM import in node:
230
216
  0 && (module.exports = {
package/dist/index.mjs CHANGED
@@ -1,7 +1,4 @@
1
1
  "use client";
2
- import {
3
- namespace_exports
4
- } from "./chunk-SUPSWH6D.mjs";
5
2
  import {
6
3
  DialogBody,
7
4
  DialogClose,
@@ -16,10 +13,24 @@ import {
16
13
  DialogTitle,
17
14
  DialogTrigger,
18
15
  useDialogContext
19
- } from "./chunk-5S6NCDGO.mjs";
20
- import "./chunk-C7GZJJIK.mjs";
16
+ } from "./chunk-A2AV2YZH.mjs";
17
+
18
+ // src/index.ts
19
+ var Dialog = Object.assign(DialogRoot, {
20
+ Root: DialogRoot,
21
+ Body: DialogBody,
22
+ CloseTrigger: DialogCloseTrigger,
23
+ Content: DialogContent,
24
+ Description: DialogDescription,
25
+ Footer: DialogFooter,
26
+ Header: DialogHeader,
27
+ Overlay: DialogOverlay,
28
+ Portal: DialogPortal,
29
+ Title: DialogTitle,
30
+ Trigger: DialogTrigger
31
+ });
21
32
  export {
22
- namespace_exports as Dialog,
33
+ Dialog,
23
34
  DialogBody,
24
35
  DialogClose,
25
36
  DialogCloseTrigger,
@@ -1,11 +1,5 @@
1
- import { DialogBody, DialogBodyProps, DialogClose, DialogCloseProps, DialogCloseTrigger, DialogCloseTriggerProps, DialogContent, DialogContentProps, DialogDescription, DialogDescriptionProps, DialogFooter, DialogFooterProps, DialogHeader, DialogHeaderProps, DialogOverlay, DialogOverlayProps, DialogPortal, DialogPortalProps, DialogRoot, DialogRootProps, DialogTitle, DialogTitleProps, DialogTrigger, DialogTriggerProps } from './dialog.mjs';
1
+ export { DialogBody as Body, DialogBodyProps as BodyProps, DialogClose as Close, DialogCloseProps as CloseProps, DialogCloseTrigger as CloseTrigger, DialogCloseTriggerProps as CloseTriggerProps, DialogContent as Content, DialogContentProps as ContentProps, DialogDescription as Description, DialogDescriptionProps as DescriptionProps, DialogFooter as Footer, DialogFooterProps as FooterProps, DialogHeader as Header, DialogHeaderProps as HeaderProps, DialogOverlay as Overlay, DialogOverlayProps as OverlayProps, DialogPortal as Portal, DialogPortalProps as PortalProps, DialogRoot as Root, DialogRootProps as RootProps, DialogTitle as Title, DialogTitleProps as TitleProps, DialogTrigger as Trigger, DialogTriggerProps as TriggerProps } from './dialog.mjs';
2
2
  import 'react/jsx-runtime';
3
+ import '@base-ui-components/react/dialog';
3
4
  import '@kopexa/theme';
4
- import '@radix-ui/react-dialog';
5
5
  import 'react';
6
-
7
- declare namespace namespace {
8
- export { DialogBody as Body, DialogBodyProps as BodyProps, DialogClose as Close, DialogCloseProps as CloseProps, DialogCloseTrigger as CloseTrigger, DialogCloseTriggerProps as CloseTriggerProps, DialogContent as Content, DialogContentProps as ContentProps, DialogDescription as Description, DialogDescriptionProps as DescriptionProps, DialogFooter as Footer, DialogFooterProps as FooterProps, DialogHeader as Header, DialogHeaderProps as HeaderProps, DialogOverlay as Overlay, DialogOverlayProps as OverlayProps, DialogPortal as Portal, DialogPortalProps as PortalProps, DialogRoot as Root, DialogRootProps as RootProps, DialogTitle as Title, DialogTitleProps as TitleProps, DialogTrigger as Trigger, DialogTriggerProps as TriggerProps };
9
- }
10
-
11
- export { DialogBody as Body, DialogBodyProps as BodyProps, DialogClose as Close, DialogCloseProps as CloseProps, DialogCloseTrigger as CloseTrigger, DialogCloseTriggerProps as CloseTriggerProps, DialogContent as Content, DialogContentProps as ContentProps, DialogDescription as Description, DialogDescriptionProps as DescriptionProps, DialogFooter as Footer, DialogFooterProps as FooterProps, DialogHeader as Header, DialogHeaderProps as HeaderProps, DialogOverlay as Overlay, DialogOverlayProps as OverlayProps, DialogPortal as Portal, DialogPortalProps as PortalProps, DialogRoot as Root, DialogRootProps as RootProps, DialogTitle as Title, DialogTitleProps as TitleProps, DialogTrigger as Trigger, DialogTriggerProps as TriggerProps, namespace as n };
@@ -1,11 +1,5 @@
1
- import { DialogBody, DialogBodyProps, DialogClose, DialogCloseProps, DialogCloseTrigger, DialogCloseTriggerProps, DialogContent, DialogContentProps, DialogDescription, DialogDescriptionProps, DialogFooter, DialogFooterProps, DialogHeader, DialogHeaderProps, DialogOverlay, DialogOverlayProps, DialogPortal, DialogPortalProps, DialogRoot, DialogRootProps, DialogTitle, DialogTitleProps, DialogTrigger, DialogTriggerProps } from './dialog.js';
1
+ export { DialogBody as Body, DialogBodyProps as BodyProps, DialogClose as Close, DialogCloseProps as CloseProps, DialogCloseTrigger as CloseTrigger, DialogCloseTriggerProps as CloseTriggerProps, DialogContent as Content, DialogContentProps as ContentProps, DialogDescription as Description, DialogDescriptionProps as DescriptionProps, DialogFooter as Footer, DialogFooterProps as FooterProps, DialogHeader as Header, DialogHeaderProps as HeaderProps, DialogOverlay as Overlay, DialogOverlayProps as OverlayProps, DialogPortal as Portal, DialogPortalProps as PortalProps, DialogRoot as Root, DialogRootProps as RootProps, DialogTitle as Title, DialogTitleProps as TitleProps, DialogTrigger as Trigger, DialogTriggerProps as TriggerProps } from './dialog.js';
2
2
  import 'react/jsx-runtime';
3
+ import '@base-ui-components/react/dialog';
3
4
  import '@kopexa/theme';
4
- import '@radix-ui/react-dialog';
5
5
  import 'react';
6
-
7
- declare namespace namespace {
8
- export { DialogBody as Body, DialogBodyProps as BodyProps, DialogClose as Close, DialogCloseProps as CloseProps, DialogCloseTrigger as CloseTrigger, DialogCloseTriggerProps as CloseTriggerProps, DialogContent as Content, DialogContentProps as ContentProps, DialogDescription as Description, DialogDescriptionProps as DescriptionProps, DialogFooter as Footer, DialogFooterProps as FooterProps, DialogHeader as Header, DialogHeaderProps as HeaderProps, DialogOverlay as Overlay, DialogOverlayProps as OverlayProps, DialogPortal as Portal, DialogPortalProps as PortalProps, DialogRoot as Root, DialogRootProps as RootProps, DialogTitle as Title, DialogTitleProps as TitleProps, DialogTrigger as Trigger, DialogTriggerProps as TriggerProps };
9
- }
10
-
11
- export { DialogBody as Body, DialogBodyProps as BodyProps, DialogClose as Close, DialogCloseProps as CloseProps, DialogCloseTrigger as CloseTrigger, DialogCloseTriggerProps as CloseTriggerProps, DialogContent as Content, DialogContentProps as ContentProps, DialogDescription as Description, DialogDescriptionProps as DescriptionProps, DialogFooter as Footer, DialogFooterProps as FooterProps, DialogHeader as Header, DialogHeaderProps as HeaderProps, DialogOverlay as Overlay, DialogOverlayProps as OverlayProps, DialogPortal as Portal, DialogPortalProps as PortalProps, DialogRoot as Root, DialogRootProps as RootProps, DialogTitle as Title, DialogTitleProps as TitleProps, DialogTrigger as Trigger, DialogTriggerProps as TriggerProps, namespace as n };
package/dist/namespace.js CHANGED
@@ -1,10 +1,8 @@
1
1
  "use client";
2
2
  "use strict";
3
- var __create = Object.create;
4
3
  var __defProp = Object.defineProperty;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf;
8
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
7
  var __export = (target, all) => {
10
8
  for (var name in all)
@@ -18,14 +16,6 @@ var __copyProps = (to, from, except, desc) => {
18
16
  }
19
17
  return to;
20
18
  };
21
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
- // If the importer is in node compatibility mode or this is not an ESM
23
- // file that has been converted to a CommonJS file using a Babel-
24
- // compatible transform (i.e. "__esModule" has not been set), then set
25
- // "default" to the CommonJS "module.exports" for node compatibility.
26
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
- mod
28
- ));
29
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
20
 
31
21
  // src/namespace.ts
@@ -47,12 +37,12 @@ __export(namespace_exports, {
47
37
  module.exports = __toCommonJS(namespace_exports);
48
38
 
49
39
  // src/dialog.tsx
40
+ var import_dialog = require("@base-ui-components/react/dialog");
50
41
  var import_icons = require("@kopexa/icons");
51
42
  var import_react_utils = require("@kopexa/react-utils");
52
43
  var import_shared_utils = require("@kopexa/shared-utils");
53
44
  var import_theme = require("@kopexa/theme");
54
45
  var import_use_controllable_state = require("@kopexa/use-controllable-state");
55
- var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
56
46
  var import_jsx_runtime = require("react/jsx-runtime");
57
47
  var [DialogProvider, useDialogContext] = (0, import_react_utils.createContext)();
58
48
  var DialogRoot = (props) => {
@@ -71,33 +61,31 @@ var DialogRoot = (props) => {
71
61
  });
72
62
  const styles = (0, import_theme.dialog)({ size, radius, placement });
73
63
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogProvider, { value: { styles, open, placement, size, radius }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
74
- DialogPrimitive.Root,
64
+ import_dialog.Dialog.Root,
75
65
  {
76
66
  "data-slot": "dialog",
77
67
  open,
78
- onOpenChange: setOpen,
68
+ onOpenChange: (open2) => setOpen(open2),
79
69
  ...restProps
80
70
  }
81
71
  ) });
82
72
  };
83
73
  function DialogTrigger({ ...props }) {
84
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogPrimitive.Trigger, { "data-slot": "dialog-trigger", ...props });
74
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.Dialog.Trigger, { "data-slot": "dialog-trigger", ...props });
85
75
  }
86
76
  function DialogPortal({ ...props }) {
87
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogPrimitive.Portal, { "data-slot": "dialog-portal", ...props });
77
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.Dialog.Portal, { "data-slot": "dialog-portal", ...props });
88
78
  }
89
79
  function DialogClose({ ...props }) {
90
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogPrimitive.Close, { "data-slot": "dialog-close", ...props });
80
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.Dialog.Close, { "data-slot": "dialog-close", ...props });
91
81
  }
92
82
  function DialogOverlay({ className, ...props }) {
93
83
  const { styles } = useDialogContext();
94
84
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
95
- DialogPrimitive.Overlay,
85
+ import_dialog.Dialog.Backdrop,
96
86
  {
97
87
  "data-slot": "dialog-overlay",
98
- className: styles.overlay({
99
- className
100
- }),
88
+ className: (0, import_shared_utils.cn)(styles.overlay(), className),
101
89
  ...props
102
90
  }
103
91
  );
@@ -112,7 +100,7 @@ function DialogContent({
112
100
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DialogPortal, { "data-slot": "dialog-portal", children: [
113
101
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogOverlay, {}),
114
102
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
115
- DialogPrimitive.Content,
103
+ import_dialog.Dialog.Popup,
116
104
  {
117
105
  "data-slot": "dialog-content",
118
106
  className: (0, import_shared_utils.cn)(styles.content(), className),
@@ -120,7 +108,7 @@ function DialogContent({
120
108
  children: [
121
109
  children,
122
110
  showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
123
- DialogPrimitive.Close,
111
+ import_dialog.Dialog.Close,
124
112
  {
125
113
  "data-slot": "dialog-close",
126
114
  className: styles.close(),
@@ -171,10 +159,10 @@ function DialogBody({ className, ...props }) {
171
159
  function DialogTitle({ className, ...props }) {
172
160
  const { styles } = useDialogContext();
173
161
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
174
- DialogPrimitive.Title,
162
+ import_dialog.Dialog.Title,
175
163
  {
176
164
  "data-slot": "dialog-title",
177
- className: styles.title({ className }),
165
+ className: (0, import_shared_utils.cn)(styles.title(), className),
178
166
  ...props
179
167
  }
180
168
  );
@@ -185,10 +173,10 @@ function DialogDescription({
185
173
  }) {
186
174
  const { styles } = useDialogContext();
187
175
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
188
- DialogPrimitive.Description,
176
+ import_dialog.Dialog.Description,
189
177
  {
190
178
  "data-slot": "dialog-description",
191
- className: styles.description({ className }),
179
+ className: (0, import_shared_utils.cn)(styles.description(), className),
192
180
  ...props
193
181
  }
194
182
  );
@@ -199,10 +187,10 @@ function DialogCloseTrigger({
199
187
  }) {
200
188
  const { styles } = useDialogContext();
201
189
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
202
- DialogPrimitive.Close,
190
+ import_dialog.Dialog.Close,
203
191
  {
204
192
  "data-slot": "dialog-close-trigger",
205
- className: styles.closeTrigger({ className }),
193
+ className: (0, import_shared_utils.cn)(styles.closeTrigger(), className),
206
194
  ...props
207
195
  }
208
196
  );
@@ -1,5 +1,4 @@
1
1
  "use client";
2
- import "./chunk-SUPSWH6D.mjs";
3
2
  import {
4
3
  DialogBody,
5
4
  DialogClose,
@@ -13,8 +12,7 @@ import {
13
12
  DialogRoot,
14
13
  DialogTitle,
15
14
  DialogTrigger
16
- } from "./chunk-5S6NCDGO.mjs";
17
- import "./chunk-C7GZJJIK.mjs";
15
+ } from "./chunk-A2AV2YZH.mjs";
18
16
  export {
19
17
  DialogBody as Body,
20
18
  DialogClose as Close,
@@ -1,5 +1,4 @@
1
1
  "use client";
2
- import "./chunk-C7GZJJIK.mjs";
3
2
 
4
3
  // src/transition.ts
5
4
  import { TRANSITION_EASINGS } from "@kopexa/motion-utils";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kopexa/dialog",
3
- "version": "10.0.9",
3
+ "version": "11.0.0",
4
4
  "description": "A window overlaid on either the primary window or another dialog window, rendering the content underneath inert.",
5
5
  "keywords": [
6
6
  "dialog"
@@ -27,15 +27,16 @@
27
27
  "peerDependencies": {
28
28
  "react": ">=19.0.0-rc.0",
29
29
  "react-dom": ">=19.0.0-rc.0",
30
- "@kopexa/theme": "1.7.6"
30
+ "@kopexa/theme": "2.0.0"
31
31
  },
32
32
  "dependencies": {
33
+ "@base-ui-components/react": "1.0.0-beta.3",
33
34
  "@radix-ui/react-dialog": "^1.1.15",
34
- "@kopexa/icons": "10.0.9",
35
- "@kopexa/react-utils": "2.0.8",
36
- "@kopexa/shared-utils": "1.1.7",
37
- "@kopexa/motion-utils": "10.0.6",
38
- "@kopexa/use-controllable-state": "1.1.3"
35
+ "@kopexa/icons": "11.0.0",
36
+ "@kopexa/motion-utils": "11.0.0",
37
+ "@kopexa/react-utils": "3.0.0",
38
+ "@kopexa/shared-utils": "2.0.0",
39
+ "@kopexa/use-controllable-state": "2.0.0"
39
40
  },
40
41
  "clean-package": "../../../clean-package.config.json",
41
42
  "module": "dist/index.mjs",
@@ -1,10 +0,0 @@
1
- "use client";
2
- var __defProp = Object.defineProperty;
3
- var __export = (target, all) => {
4
- for (var name in all)
5
- __defProp(target, name, { get: all[name], enumerable: true });
6
- };
7
-
8
- export {
9
- __export
10
- };
@@ -1,39 +0,0 @@
1
- "use client";
2
- import {
3
- DialogBody,
4
- DialogClose,
5
- DialogCloseTrigger,
6
- DialogContent,
7
- DialogDescription,
8
- DialogFooter,
9
- DialogHeader,
10
- DialogOverlay,
11
- DialogPortal,
12
- DialogRoot,
13
- DialogTitle,
14
- DialogTrigger
15
- } from "./chunk-5S6NCDGO.mjs";
16
- import {
17
- __export
18
- } from "./chunk-C7GZJJIK.mjs";
19
-
20
- // src/namespace.ts
21
- var namespace_exports = {};
22
- __export(namespace_exports, {
23
- Body: () => DialogBody,
24
- Close: () => DialogClose,
25
- CloseTrigger: () => DialogCloseTrigger,
26
- Content: () => DialogContent,
27
- Description: () => DialogDescription,
28
- Footer: () => DialogFooter,
29
- Header: () => DialogHeader,
30
- Overlay: () => DialogOverlay,
31
- Portal: () => DialogPortal,
32
- Root: () => DialogRoot,
33
- Title: () => DialogTitle,
34
- Trigger: () => DialogTrigger
35
- });
36
-
37
- export {
38
- namespace_exports
39
- };