@kopexa/alert-dialog 3.0.7 → 4.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,32 +1,32 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { AlertDialog } from '@base-ui-components/react/alert-dialog';
2
3
  import { ButtonVariantProps } from '@kopexa/theme';
3
- import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
4
4
  import { ComponentProps } from 'react';
5
5
 
6
- type AlertDialogRootProps = ComponentProps<typeof AlertDialogPrimitive.Root>;
6
+ type AlertDialogRootProps = ComponentProps<typeof AlertDialog.Root>;
7
7
  declare function AlertDialogRoot(props: AlertDialogRootProps): react_jsx_runtime.JSX.Element;
8
- type AlertDialogTriggerProps = ComponentProps<typeof AlertDialogPrimitive.Trigger>;
8
+ type AlertDialogTriggerProps = ComponentProps<typeof AlertDialog.Trigger>;
9
9
  declare function AlertDialogTrigger(props: AlertDialogTriggerProps): react_jsx_runtime.JSX.Element;
10
- type AlertDialogPortalProps = ComponentProps<typeof AlertDialogPrimitive.Portal>;
10
+ type AlertDialogPortalProps = ComponentProps<typeof AlertDialog.Portal>;
11
11
  declare function AlertDialogPortal({ ...props }: AlertDialogPortalProps): react_jsx_runtime.JSX.Element;
12
- type AlertDialogOverlayProps = ComponentProps<typeof AlertDialogPrimitive.Overlay>;
12
+ type AlertDialogOverlayProps = ComponentProps<typeof AlertDialog.Backdrop>;
13
13
  declare function AlertDialogOverlay({ className, ...props }: AlertDialogOverlayProps): react_jsx_runtime.JSX.Element;
14
- type AlertDialogContentProps = ComponentProps<typeof AlertDialogPrimitive.Content>;
14
+ type AlertDialogContentProps = ComponentProps<typeof AlertDialog.Popup>;
15
15
  declare function AlertDialogContent({ className, ...props }: AlertDialogContentProps): react_jsx_runtime.JSX.Element;
16
16
  type AlertDialogHeaderProps = ComponentProps<"div">;
17
17
  declare function AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): react_jsx_runtime.JSX.Element;
18
18
  type AlertDialogFooterProps = ComponentProps<"div">;
19
19
  declare function AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): react_jsx_runtime.JSX.Element;
20
- type AlertDialogTitleProps = ComponentProps<typeof AlertDialogPrimitive.Title>;
20
+ type AlertDialogTitleProps = ComponentProps<typeof AlertDialog.Title>;
21
21
  declare function AlertDialogTitle({ className, ...props }: AlertDialogTitleProps): react_jsx_runtime.JSX.Element;
22
- type AlertDialogDescriptionProps = ComponentProps<typeof AlertDialogPrimitive.Description>;
22
+ type AlertDialogDescriptionProps = ComponentProps<typeof AlertDialog.Description>;
23
23
  declare function AlertDialogDescription({ className, ...props }: AlertDialogDescriptionProps): react_jsx_runtime.JSX.Element;
24
- type AlertDialogActionProps = ComponentProps<typeof AlertDialogPrimitive.Action> & {
24
+ type AlertDialogActionProps = ComponentProps<typeof AlertDialog.Close> & {
25
25
  color?: ButtonVariantProps["color"];
26
26
  variant?: ButtonVariantProps["variant"];
27
27
  };
28
28
  declare function AlertDialogAction({ className, color, variant, ...props }: AlertDialogActionProps): react_jsx_runtime.JSX.Element;
29
- type AlertDialogCancelProps = ComponentProps<typeof AlertDialogPrimitive.Cancel>;
29
+ type AlertDialogCancelProps = ComponentProps<typeof AlertDialog.Close>;
30
30
  declare function AlertDialogCancel({ className, ...props }: AlertDialogCancelProps): react_jsx_runtime.JSX.Element;
31
31
 
32
32
  export { AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogOverlay, type AlertDialogOverlayProps, AlertDialogPortal, type AlertDialogPortalProps, AlertDialogRoot, type AlertDialogRootProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerProps };
@@ -1,32 +1,32 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { AlertDialog } from '@base-ui-components/react/alert-dialog';
2
3
  import { ButtonVariantProps } from '@kopexa/theme';
3
- import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
4
4
  import { ComponentProps } from 'react';
5
5
 
6
- type AlertDialogRootProps = ComponentProps<typeof AlertDialogPrimitive.Root>;
6
+ type AlertDialogRootProps = ComponentProps<typeof AlertDialog.Root>;
7
7
  declare function AlertDialogRoot(props: AlertDialogRootProps): react_jsx_runtime.JSX.Element;
8
- type AlertDialogTriggerProps = ComponentProps<typeof AlertDialogPrimitive.Trigger>;
8
+ type AlertDialogTriggerProps = ComponentProps<typeof AlertDialog.Trigger>;
9
9
  declare function AlertDialogTrigger(props: AlertDialogTriggerProps): react_jsx_runtime.JSX.Element;
10
- type AlertDialogPortalProps = ComponentProps<typeof AlertDialogPrimitive.Portal>;
10
+ type AlertDialogPortalProps = ComponentProps<typeof AlertDialog.Portal>;
11
11
  declare function AlertDialogPortal({ ...props }: AlertDialogPortalProps): react_jsx_runtime.JSX.Element;
12
- type AlertDialogOverlayProps = ComponentProps<typeof AlertDialogPrimitive.Overlay>;
12
+ type AlertDialogOverlayProps = ComponentProps<typeof AlertDialog.Backdrop>;
13
13
  declare function AlertDialogOverlay({ className, ...props }: AlertDialogOverlayProps): react_jsx_runtime.JSX.Element;
14
- type AlertDialogContentProps = ComponentProps<typeof AlertDialogPrimitive.Content>;
14
+ type AlertDialogContentProps = ComponentProps<typeof AlertDialog.Popup>;
15
15
  declare function AlertDialogContent({ className, ...props }: AlertDialogContentProps): react_jsx_runtime.JSX.Element;
16
16
  type AlertDialogHeaderProps = ComponentProps<"div">;
17
17
  declare function AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): react_jsx_runtime.JSX.Element;
18
18
  type AlertDialogFooterProps = ComponentProps<"div">;
19
19
  declare function AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): react_jsx_runtime.JSX.Element;
20
- type AlertDialogTitleProps = ComponentProps<typeof AlertDialogPrimitive.Title>;
20
+ type AlertDialogTitleProps = ComponentProps<typeof AlertDialog.Title>;
21
21
  declare function AlertDialogTitle({ className, ...props }: AlertDialogTitleProps): react_jsx_runtime.JSX.Element;
22
- type AlertDialogDescriptionProps = ComponentProps<typeof AlertDialogPrimitive.Description>;
22
+ type AlertDialogDescriptionProps = ComponentProps<typeof AlertDialog.Description>;
23
23
  declare function AlertDialogDescription({ className, ...props }: AlertDialogDescriptionProps): react_jsx_runtime.JSX.Element;
24
- type AlertDialogActionProps = ComponentProps<typeof AlertDialogPrimitive.Action> & {
24
+ type AlertDialogActionProps = ComponentProps<typeof AlertDialog.Close> & {
25
25
  color?: ButtonVariantProps["color"];
26
26
  variant?: ButtonVariantProps["variant"];
27
27
  };
28
28
  declare function AlertDialogAction({ className, color, variant, ...props }: AlertDialogActionProps): react_jsx_runtime.JSX.Element;
29
- type AlertDialogCancelProps = ComponentProps<typeof AlertDialogPrimitive.Cancel>;
29
+ type AlertDialogCancelProps = ComponentProps<typeof AlertDialog.Close>;
30
30
  declare function AlertDialogCancel({ className, ...props }: AlertDialogCancelProps): react_jsx_runtime.JSX.Element;
31
31
 
32
32
  export { AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogOverlay, type AlertDialogOverlayProps, AlertDialogPortal, type AlertDialogPortalProps, AlertDialogRoot, type AlertDialogRootProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerProps };
@@ -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/alert-dialog.tsx
@@ -44,20 +34,21 @@ __export(alert_dialog_exports, {
44
34
  AlertDialogTrigger: () => AlertDialogTrigger
45
35
  });
46
36
  module.exports = __toCommonJS(alert_dialog_exports);
37
+ var import_alert_dialog = require("@base-ui-components/react/alert-dialog");
47
38
  var import_react_utils = require("@kopexa/react-utils");
39
+ var import_shared_utils = require("@kopexa/shared-utils");
48
40
  var import_theme = require("@kopexa/theme");
49
- var AlertDialogPrimitive = __toESM(require("@radix-ui/react-alert-dialog"));
50
41
  var import_jsx_runtime = require("react/jsx-runtime");
51
42
  var [Provider, useAlertDialogContext] = (0, import_react_utils.createContext)();
52
43
  function AlertDialogRoot(props) {
53
44
  const styles = (0, import_theme.alertDialog)();
54
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Provider, { value: { styles }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogPrimitive.Root, { "data-slot": "alert-dialog", ...props }) });
45
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Provider, { value: { styles }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_alert_dialog.AlertDialog.Root, { "data-slot": "alert-dialog", ...props }) });
55
46
  }
56
47
  function AlertDialogTrigger(props) {
57
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogPrimitive.Trigger, { "data-slot": "alert-dialog-trigger", ...props });
48
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_alert_dialog.AlertDialog.Trigger, { "data-slot": "alert-dialog-trigger", ...props });
58
49
  }
59
50
  function AlertDialogPortal({ ...props }) {
60
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogPrimitive.Portal, { "data-slot": "alert-dialog-portal", ...props });
51
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_alert_dialog.AlertDialog.Portal, { "data-slot": "alert-dialog-portal", ...props });
61
52
  }
62
53
  function AlertDialogOverlay({
63
54
  className,
@@ -65,10 +56,10 @@ function AlertDialogOverlay({
65
56
  }) {
66
57
  const { styles } = useAlertDialogContext();
67
58
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
68
- AlertDialogPrimitive.Overlay,
59
+ import_alert_dialog.AlertDialog.Backdrop,
69
60
  {
70
61
  "data-slot": "alert-dialog-overlay",
71
- className: styles.overlay(className),
62
+ className: (0, import_shared_utils.cn)(styles.overlay(), className),
72
63
  ...props
73
64
  }
74
65
  );
@@ -81,10 +72,10 @@ function AlertDialogContent({
81
72
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDialogPortal, { children: [
82
73
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogOverlay, {}),
83
74
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
84
- AlertDialogPrimitive.Content,
75
+ import_alert_dialog.AlertDialog.Popup,
85
76
  {
86
77
  "data-slot": "alert-dialog-content",
87
- className: styles.content(className),
78
+ className: (0, import_shared_utils.cn)(styles.content(), className),
88
79
  ...props
89
80
  }
90
81
  )
@@ -124,10 +115,10 @@ function AlertDialogTitle({
124
115
  }) {
125
116
  const { styles } = useAlertDialogContext();
126
117
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
127
- AlertDialogPrimitive.Title,
118
+ import_alert_dialog.AlertDialog.Title,
128
119
  {
129
120
  "data-slot": "alert-dialog-title",
130
- className: styles.title(className),
121
+ className: (0, import_shared_utils.cn)(styles.title(), className),
131
122
  ...props
132
123
  }
133
124
  );
@@ -138,10 +129,10 @@ function AlertDialogDescription({
138
129
  }) {
139
130
  const { styles } = useAlertDialogContext();
140
131
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
141
- AlertDialogPrimitive.Description,
132
+ import_alert_dialog.AlertDialog.Description,
142
133
  {
143
134
  "data-slot": "alert-dialog-description",
144
- className: styles.description(className),
135
+ className: (0, import_shared_utils.cn)(styles.description(), className),
145
136
  ...props
146
137
  }
147
138
  );
@@ -153,9 +144,9 @@ function AlertDialogAction({
153
144
  ...props
154
145
  }) {
155
146
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
156
- AlertDialogPrimitive.Action,
147
+ import_alert_dialog.AlertDialog.Close,
157
148
  {
158
- className: (0, import_theme.button)({ className, color, variant }),
149
+ className: (0, import_shared_utils.cn)((0, import_theme.button)({ color, variant }), className),
159
150
  ...props
160
151
  }
161
152
  );
@@ -165,9 +156,9 @@ function AlertDialogCancel({
165
156
  ...props
166
157
  }) {
167
158
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
168
- AlertDialogPrimitive.Cancel,
159
+ import_alert_dialog.AlertDialog.Close,
169
160
  {
170
- className: (0, import_theme.button)({ variant: "ghost", className }),
161
+ className: (0, import_shared_utils.cn)((0, import_theme.button)({ variant: "ghost" }), className),
171
162
  ...props
172
163
  }
173
164
  );
@@ -11,7 +11,7 @@ import {
11
11
  AlertDialogRoot,
12
12
  AlertDialogTitle,
13
13
  AlertDialogTrigger
14
- } from "./chunk-UYXIWF7G.mjs";
14
+ } from "./chunk-5OQQOE47.mjs";
15
15
  import "./chunk-C7GZJJIK.mjs";
16
16
  export {
17
17
  AlertDialogAction,
@@ -1,9 +1,10 @@
1
1
  "use client";
2
2
 
3
3
  // src/alert-dialog.tsx
4
+ import { AlertDialog as AlertDialogPrimitive } from "@base-ui-components/react/alert-dialog";
4
5
  import { createContext } from "@kopexa/react-utils";
6
+ import { cn } from "@kopexa/shared-utils";
5
7
  import { alertDialog, button } from "@kopexa/theme";
6
- import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
7
8
  import { jsx, jsxs } from "react/jsx-runtime";
8
9
  var [Provider, useAlertDialogContext] = createContext();
9
10
  function AlertDialogRoot(props) {
@@ -22,10 +23,10 @@ function AlertDialogOverlay({
22
23
  }) {
23
24
  const { styles } = useAlertDialogContext();
24
25
  return /* @__PURE__ */ jsx(
25
- AlertDialogPrimitive.Overlay,
26
+ AlertDialogPrimitive.Backdrop,
26
27
  {
27
28
  "data-slot": "alert-dialog-overlay",
28
- className: styles.overlay(className),
29
+ className: cn(styles.overlay(), className),
29
30
  ...props
30
31
  }
31
32
  );
@@ -38,10 +39,10 @@ function AlertDialogContent({
38
39
  return /* @__PURE__ */ jsxs(AlertDialogPortal, { children: [
39
40
  /* @__PURE__ */ jsx(AlertDialogOverlay, {}),
40
41
  /* @__PURE__ */ jsx(
41
- AlertDialogPrimitive.Content,
42
+ AlertDialogPrimitive.Popup,
42
43
  {
43
44
  "data-slot": "alert-dialog-content",
44
- className: styles.content(className),
45
+ className: cn(styles.content(), className),
45
46
  ...props
46
47
  }
47
48
  )
@@ -84,7 +85,7 @@ function AlertDialogTitle({
84
85
  AlertDialogPrimitive.Title,
85
86
  {
86
87
  "data-slot": "alert-dialog-title",
87
- className: styles.title(className),
88
+ className: cn(styles.title(), className),
88
89
  ...props
89
90
  }
90
91
  );
@@ -98,7 +99,7 @@ function AlertDialogDescription({
98
99
  AlertDialogPrimitive.Description,
99
100
  {
100
101
  "data-slot": "alert-dialog-description",
101
- className: styles.description(className),
102
+ className: cn(styles.description(), className),
102
103
  ...props
103
104
  }
104
105
  );
@@ -110,9 +111,9 @@ function AlertDialogAction({
110
111
  ...props
111
112
  }) {
112
113
  return /* @__PURE__ */ jsx(
113
- AlertDialogPrimitive.Action,
114
+ AlertDialogPrimitive.Close,
114
115
  {
115
- className: button({ className, color, variant }),
116
+ className: cn(button({ color, variant }), className),
116
117
  ...props
117
118
  }
118
119
  );
@@ -122,9 +123,9 @@ function AlertDialogCancel({
122
123
  ...props
123
124
  }) {
124
125
  return /* @__PURE__ */ jsx(
125
- AlertDialogPrimitive.Cancel,
126
+ AlertDialogPrimitive.Close,
126
127
  {
127
- className: button({ variant: "ghost", className }),
128
+ className: cn(button({ variant: "ghost" }), className),
128
129
  ...props
129
130
  }
130
131
  );
@@ -11,7 +11,7 @@ import {
11
11
  AlertDialogRoot,
12
12
  AlertDialogTitle,
13
13
  AlertDialogTrigger
14
- } from "./chunk-UYXIWF7G.mjs";
14
+ } from "./chunk-5OQQOE47.mjs";
15
15
  import {
16
16
  __export
17
17
  } from "./chunk-C7GZJJIK.mjs";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-KY5A23F3.mjs";
5
5
  import {
6
6
  ConfirmDialog
7
- } from "./chunk-DHD36JZS.mjs";
7
+ } from "./chunk-SKOKGOQJ.mjs";
8
8
 
9
9
  // src/confirm.tsx
10
10
  import { useCallback, useMemo, useState } from "react";
@@ -8,7 +8,7 @@ import {
8
8
  AlertDialogHeader,
9
9
  AlertDialogRoot,
10
10
  AlertDialogTitle
11
- } from "./chunk-UYXIWF7G.mjs";
11
+ } from "./chunk-5OQQOE47.mjs";
12
12
 
13
13
  // src/confirm.dialog.tsx
14
14
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -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/confirm.dialog.tsx
@@ -36,17 +26,18 @@ __export(confirm_dialog_exports, {
36
26
  module.exports = __toCommonJS(confirm_dialog_exports);
37
27
 
38
28
  // src/alert-dialog.tsx
29
+ var import_alert_dialog = require("@base-ui-components/react/alert-dialog");
39
30
  var import_react_utils = require("@kopexa/react-utils");
31
+ var import_shared_utils = require("@kopexa/shared-utils");
40
32
  var import_theme = require("@kopexa/theme");
41
- var AlertDialogPrimitive = __toESM(require("@radix-ui/react-alert-dialog"));
42
33
  var import_jsx_runtime = require("react/jsx-runtime");
43
34
  var [Provider, useAlertDialogContext] = (0, import_react_utils.createContext)();
44
35
  function AlertDialogRoot(props) {
45
36
  const styles = (0, import_theme.alertDialog)();
46
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Provider, { value: { styles }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogPrimitive.Root, { "data-slot": "alert-dialog", ...props }) });
37
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Provider, { value: { styles }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_alert_dialog.AlertDialog.Root, { "data-slot": "alert-dialog", ...props }) });
47
38
  }
48
39
  function AlertDialogPortal({ ...props }) {
49
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogPrimitive.Portal, { "data-slot": "alert-dialog-portal", ...props });
40
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_alert_dialog.AlertDialog.Portal, { "data-slot": "alert-dialog-portal", ...props });
50
41
  }
51
42
  function AlertDialogOverlay({
52
43
  className,
@@ -54,10 +45,10 @@ function AlertDialogOverlay({
54
45
  }) {
55
46
  const { styles } = useAlertDialogContext();
56
47
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
57
- AlertDialogPrimitive.Overlay,
48
+ import_alert_dialog.AlertDialog.Backdrop,
58
49
  {
59
50
  "data-slot": "alert-dialog-overlay",
60
- className: styles.overlay(className),
51
+ className: (0, import_shared_utils.cn)(styles.overlay(), className),
61
52
  ...props
62
53
  }
63
54
  );
@@ -70,10 +61,10 @@ function AlertDialogContent({
70
61
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDialogPortal, { children: [
71
62
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogOverlay, {}),
72
63
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
73
- AlertDialogPrimitive.Content,
64
+ import_alert_dialog.AlertDialog.Popup,
74
65
  {
75
66
  "data-slot": "alert-dialog-content",
76
- className: styles.content(className),
67
+ className: (0, import_shared_utils.cn)(styles.content(), className),
77
68
  ...props
78
69
  }
79
70
  )
@@ -113,10 +104,10 @@ function AlertDialogTitle({
113
104
  }) {
114
105
  const { styles } = useAlertDialogContext();
115
106
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
116
- AlertDialogPrimitive.Title,
107
+ import_alert_dialog.AlertDialog.Title,
117
108
  {
118
109
  "data-slot": "alert-dialog-title",
119
- className: styles.title(className),
110
+ className: (0, import_shared_utils.cn)(styles.title(), className),
120
111
  ...props
121
112
  }
122
113
  );
@@ -127,10 +118,10 @@ function AlertDialogDescription({
127
118
  }) {
128
119
  const { styles } = useAlertDialogContext();
129
120
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
130
- AlertDialogPrimitive.Description,
121
+ import_alert_dialog.AlertDialog.Description,
131
122
  {
132
123
  "data-slot": "alert-dialog-description",
133
- className: styles.description(className),
124
+ className: (0, import_shared_utils.cn)(styles.description(), className),
134
125
  ...props
135
126
  }
136
127
  );
@@ -142,9 +133,9 @@ function AlertDialogAction({
142
133
  ...props
143
134
  }) {
144
135
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
145
- AlertDialogPrimitive.Action,
136
+ import_alert_dialog.AlertDialog.Close,
146
137
  {
147
- className: (0, import_theme.button)({ className, color, variant }),
138
+ className: (0, import_shared_utils.cn)((0, import_theme.button)({ color, variant }), className),
148
139
  ...props
149
140
  }
150
141
  );
@@ -154,9 +145,9 @@ function AlertDialogCancel({
154
145
  ...props
155
146
  }) {
156
147
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
157
- AlertDialogPrimitive.Cancel,
148
+ import_alert_dialog.AlertDialog.Close,
158
149
  {
159
- className: (0, import_theme.button)({ variant: "ghost", className }),
150
+ className: (0, import_shared_utils.cn)((0, import_theme.button)({ variant: "ghost" }), className),
160
151
  ...props
161
152
  }
162
153
  );
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  ConfirmDialog
4
- } from "./chunk-DHD36JZS.mjs";
5
- import "./chunk-A3S3FSQD.mjs";
6
- import "./chunk-UYXIWF7G.mjs";
4
+ } from "./chunk-SKOKGOQJ.mjs";
5
+ import "./chunk-FWY5LXLV.mjs";
6
+ import "./chunk-5OQQOE47.mjs";
7
7
  import "./chunk-C7GZJJIK.mjs";
8
8
  export {
9
9
  ConfirmDialog
package/dist/confirm.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/confirm.tsx
@@ -41,17 +31,18 @@ var import_react_utils = require("@kopexa/react-utils");
41
31
  var [ConfirmInternalProvider, useConfirm] = (0, import_react_utils.createContext)();
42
32
 
43
33
  // src/alert-dialog.tsx
34
+ var import_alert_dialog = require("@base-ui-components/react/alert-dialog");
44
35
  var import_react_utils2 = require("@kopexa/react-utils");
36
+ var import_shared_utils = require("@kopexa/shared-utils");
45
37
  var import_theme = require("@kopexa/theme");
46
- var AlertDialogPrimitive = __toESM(require("@radix-ui/react-alert-dialog"));
47
38
  var import_jsx_runtime = require("react/jsx-runtime");
48
39
  var [Provider, useAlertDialogContext] = (0, import_react_utils2.createContext)();
49
40
  function AlertDialogRoot(props) {
50
41
  const styles = (0, import_theme.alertDialog)();
51
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Provider, { value: { styles }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogPrimitive.Root, { "data-slot": "alert-dialog", ...props }) });
42
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Provider, { value: { styles }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_alert_dialog.AlertDialog.Root, { "data-slot": "alert-dialog", ...props }) });
52
43
  }
53
44
  function AlertDialogPortal({ ...props }) {
54
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogPrimitive.Portal, { "data-slot": "alert-dialog-portal", ...props });
45
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_alert_dialog.AlertDialog.Portal, { "data-slot": "alert-dialog-portal", ...props });
55
46
  }
56
47
  function AlertDialogOverlay({
57
48
  className,
@@ -59,10 +50,10 @@ function AlertDialogOverlay({
59
50
  }) {
60
51
  const { styles } = useAlertDialogContext();
61
52
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
62
- AlertDialogPrimitive.Overlay,
53
+ import_alert_dialog.AlertDialog.Backdrop,
63
54
  {
64
55
  "data-slot": "alert-dialog-overlay",
65
- className: styles.overlay(className),
56
+ className: (0, import_shared_utils.cn)(styles.overlay(), className),
66
57
  ...props
67
58
  }
68
59
  );
@@ -75,10 +66,10 @@ function AlertDialogContent({
75
66
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDialogPortal, { children: [
76
67
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogOverlay, {}),
77
68
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
78
- AlertDialogPrimitive.Content,
69
+ import_alert_dialog.AlertDialog.Popup,
79
70
  {
80
71
  "data-slot": "alert-dialog-content",
81
- className: styles.content(className),
72
+ className: (0, import_shared_utils.cn)(styles.content(), className),
82
73
  ...props
83
74
  }
84
75
  )
@@ -118,10 +109,10 @@ function AlertDialogTitle({
118
109
  }) {
119
110
  const { styles } = useAlertDialogContext();
120
111
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
121
- AlertDialogPrimitive.Title,
112
+ import_alert_dialog.AlertDialog.Title,
122
113
  {
123
114
  "data-slot": "alert-dialog-title",
124
- className: styles.title(className),
115
+ className: (0, import_shared_utils.cn)(styles.title(), className),
125
116
  ...props
126
117
  }
127
118
  );
@@ -132,10 +123,10 @@ function AlertDialogDescription({
132
123
  }) {
133
124
  const { styles } = useAlertDialogContext();
134
125
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
135
- AlertDialogPrimitive.Description,
126
+ import_alert_dialog.AlertDialog.Description,
136
127
  {
137
128
  "data-slot": "alert-dialog-description",
138
- className: styles.description(className),
129
+ className: (0, import_shared_utils.cn)(styles.description(), className),
139
130
  ...props
140
131
  }
141
132
  );
@@ -147,9 +138,9 @@ function AlertDialogAction({
147
138
  ...props
148
139
  }) {
149
140
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
150
- AlertDialogPrimitive.Action,
141
+ import_alert_dialog.AlertDialog.Close,
151
142
  {
152
- className: (0, import_theme.button)({ className, color, variant }),
143
+ className: (0, import_shared_utils.cn)((0, import_theme.button)({ color, variant }), className),
153
144
  ...props
154
145
  }
155
146
  );
@@ -159,9 +150,9 @@ function AlertDialogCancel({
159
150
  ...props
160
151
  }) {
161
152
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
162
- AlertDialogPrimitive.Cancel,
153
+ import_alert_dialog.AlertDialog.Close,
163
154
  {
164
- className: (0, import_theme.button)({ variant: "ghost", className }),
155
+ className: (0, import_shared_utils.cn)((0, import_theme.button)({ variant: "ghost" }), className),
165
156
  ...props
166
157
  }
167
158
  );
package/dist/confirm.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import {
3
3
  ConfirmDialogProvider
4
- } from "./chunk-B5QQF5LK.mjs";
4
+ } from "./chunk-JYKU7M7Y.mjs";
5
5
  import "./chunk-KY5A23F3.mjs";
6
- import "./chunk-DHD36JZS.mjs";
7
- import "./chunk-A3S3FSQD.mjs";
8
- import "./chunk-UYXIWF7G.mjs";
6
+ import "./chunk-SKOKGOQJ.mjs";
7
+ import "./chunk-FWY5LXLV.mjs";
8
+ import "./chunk-5OQQOE47.mjs";
9
9
  import "./chunk-C7GZJJIK.mjs";
10
10
  export {
11
11
  ConfirmDialogProvider
package/dist/index.d.mts CHANGED
@@ -5,5 +5,5 @@ import 'react/jsx-runtime';
5
5
  import 'react';
6
6
  import './confirm.types.mjs';
7
7
  import './alert-dialog.mjs';
8
+ import '@base-ui-components/react/alert-dialog';
8
9
  import '@kopexa/theme';
9
- import '@radix-ui/react-alert-dialog';
package/dist/index.d.ts CHANGED
@@ -5,5 +5,5 @@ import 'react/jsx-runtime';
5
5
  import 'react';
6
6
  import './confirm.types.js';
7
7
  import './alert-dialog.js';
8
+ import '@base-ui-components/react/alert-dialog';
8
9
  import '@kopexa/theme';
9
- import '@radix-ui/react-alert-dialog';
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,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/index.ts
@@ -61,20 +51,21 @@ __export(namespace_exports, {
61
51
  });
62
52
 
63
53
  // src/alert-dialog.tsx
54
+ var import_alert_dialog = require("@base-ui-components/react/alert-dialog");
64
55
  var import_react_utils2 = require("@kopexa/react-utils");
56
+ var import_shared_utils = require("@kopexa/shared-utils");
65
57
  var import_theme = require("@kopexa/theme");
66
- var AlertDialogPrimitive = __toESM(require("@radix-ui/react-alert-dialog"));
67
58
  var import_jsx_runtime = require("react/jsx-runtime");
68
59
  var [Provider, useAlertDialogContext] = (0, import_react_utils2.createContext)();
69
60
  function AlertDialogRoot(props) {
70
61
  const styles = (0, import_theme.alertDialog)();
71
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Provider, { value: { styles }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogPrimitive.Root, { "data-slot": "alert-dialog", ...props }) });
62
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Provider, { value: { styles }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_alert_dialog.AlertDialog.Root, { "data-slot": "alert-dialog", ...props }) });
72
63
  }
73
64
  function AlertDialogTrigger(props) {
74
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogPrimitive.Trigger, { "data-slot": "alert-dialog-trigger", ...props });
65
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_alert_dialog.AlertDialog.Trigger, { "data-slot": "alert-dialog-trigger", ...props });
75
66
  }
76
67
  function AlertDialogPortal({ ...props }) {
77
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogPrimitive.Portal, { "data-slot": "alert-dialog-portal", ...props });
68
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_alert_dialog.AlertDialog.Portal, { "data-slot": "alert-dialog-portal", ...props });
78
69
  }
79
70
  function AlertDialogOverlay({
80
71
  className,
@@ -82,10 +73,10 @@ function AlertDialogOverlay({
82
73
  }) {
83
74
  const { styles } = useAlertDialogContext();
84
75
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
85
- AlertDialogPrimitive.Overlay,
76
+ import_alert_dialog.AlertDialog.Backdrop,
86
77
  {
87
78
  "data-slot": "alert-dialog-overlay",
88
- className: styles.overlay(className),
79
+ className: (0, import_shared_utils.cn)(styles.overlay(), className),
89
80
  ...props
90
81
  }
91
82
  );
@@ -98,10 +89,10 @@ function AlertDialogContent({
98
89
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDialogPortal, { children: [
99
90
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogOverlay, {}),
100
91
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
101
- AlertDialogPrimitive.Content,
92
+ import_alert_dialog.AlertDialog.Popup,
102
93
  {
103
94
  "data-slot": "alert-dialog-content",
104
- className: styles.content(className),
95
+ className: (0, import_shared_utils.cn)(styles.content(), className),
105
96
  ...props
106
97
  }
107
98
  )
@@ -141,10 +132,10 @@ function AlertDialogTitle({
141
132
  }) {
142
133
  const { styles } = useAlertDialogContext();
143
134
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
144
- AlertDialogPrimitive.Title,
135
+ import_alert_dialog.AlertDialog.Title,
145
136
  {
146
137
  "data-slot": "alert-dialog-title",
147
- className: styles.title(className),
138
+ className: (0, import_shared_utils.cn)(styles.title(), className),
148
139
  ...props
149
140
  }
150
141
  );
@@ -155,10 +146,10 @@ function AlertDialogDescription({
155
146
  }) {
156
147
  const { styles } = useAlertDialogContext();
157
148
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
158
- AlertDialogPrimitive.Description,
149
+ import_alert_dialog.AlertDialog.Description,
159
150
  {
160
151
  "data-slot": "alert-dialog-description",
161
- className: styles.description(className),
152
+ className: (0, import_shared_utils.cn)(styles.description(), className),
162
153
  ...props
163
154
  }
164
155
  );
@@ -170,9 +161,9 @@ function AlertDialogAction({
170
161
  ...props
171
162
  }) {
172
163
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
173
- AlertDialogPrimitive.Action,
164
+ import_alert_dialog.AlertDialog.Close,
174
165
  {
175
- className: (0, import_theme.button)({ className, color, variant }),
166
+ className: (0, import_shared_utils.cn)((0, import_theme.button)({ color, variant }), className),
176
167
  ...props
177
168
  }
178
169
  );
@@ -182,9 +173,9 @@ function AlertDialogCancel({
182
173
  ...props
183
174
  }) {
184
175
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
185
- AlertDialogPrimitive.Cancel,
176
+ import_alert_dialog.AlertDialog.Close,
186
177
  {
187
- className: (0, import_theme.button)({ variant: "ghost", className }),
178
+ className: (0, import_shared_utils.cn)((0, import_theme.button)({ variant: "ghost" }), className),
188
179
  ...props
189
180
  }
190
181
  );
package/dist/index.mjs CHANGED
@@ -1,15 +1,15 @@
1
1
  "use client";
2
2
  import {
3
3
  ConfirmDialogProvider
4
- } from "./chunk-B5QQF5LK.mjs";
4
+ } from "./chunk-JYKU7M7Y.mjs";
5
5
  import {
6
6
  useConfirm
7
7
  } from "./chunk-KY5A23F3.mjs";
8
- import "./chunk-DHD36JZS.mjs";
8
+ import "./chunk-SKOKGOQJ.mjs";
9
9
  import {
10
10
  namespace_exports
11
- } from "./chunk-A3S3FSQD.mjs";
12
- import "./chunk-UYXIWF7G.mjs";
11
+ } from "./chunk-FWY5LXLV.mjs";
12
+ import "./chunk-5OQQOE47.mjs";
13
13
  import "./chunk-C7GZJJIK.mjs";
14
14
  export {
15
15
  namespace_exports as AlertDialog,
@@ -1,5 +1,5 @@
1
1
  export { AlertDialogAction as Action, AlertDialogActionProps as ActionProps, AlertDialogCancel as Cancel, AlertDialogCancelProps as CancelProps, AlertDialogContent as Content, AlertDialogContentProps as ContentProps, AlertDialogDescription as Description, AlertDialogDescriptionProps as DescriptionProps, AlertDialogFooter as Footer, AlertDialogFooterProps as FooterProps, AlertDialogHeader as Header, AlertDialogHeaderProps as HeaderProps, AlertDialogOverlay as Overlay, AlertDialogOverlayProps as OverlayProps, AlertDialogPortal as Portal, AlertDialogPortalProps as PortalProps, AlertDialogRoot as Root, AlertDialogRootProps as RootProps, AlertDialogTitle as Title, AlertDialogTitleProps as TitleProps, AlertDialogTrigger as Trigger, AlertDialogTriggerProps as TriggerProps } from './alert-dialog.mjs';
2
2
  import 'react/jsx-runtime';
3
+ import '@base-ui-components/react/alert-dialog';
3
4
  import '@kopexa/theme';
4
- import '@radix-ui/react-alert-dialog';
5
5
  import 'react';
@@ -1,5 +1,5 @@
1
1
  export { AlertDialogAction as Action, AlertDialogActionProps as ActionProps, AlertDialogCancel as Cancel, AlertDialogCancelProps as CancelProps, AlertDialogContent as Content, AlertDialogContentProps as ContentProps, AlertDialogDescription as Description, AlertDialogDescriptionProps as DescriptionProps, AlertDialogFooter as Footer, AlertDialogFooterProps as FooterProps, AlertDialogHeader as Header, AlertDialogHeaderProps as HeaderProps, AlertDialogOverlay as Overlay, AlertDialogOverlayProps as OverlayProps, AlertDialogPortal as Portal, AlertDialogPortalProps as PortalProps, AlertDialogRoot as Root, AlertDialogRootProps as RootProps, AlertDialogTitle as Title, AlertDialogTitleProps as TitleProps, AlertDialogTrigger as Trigger, AlertDialogTriggerProps as TriggerProps } from './alert-dialog.js';
2
2
  import 'react/jsx-runtime';
3
+ import '@base-ui-components/react/alert-dialog';
3
4
  import '@kopexa/theme';
4
- import '@radix-ui/react-alert-dialog';
5
5
  import 'react';
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
@@ -46,20 +36,21 @@ __export(namespace_exports, {
46
36
  module.exports = __toCommonJS(namespace_exports);
47
37
 
48
38
  // src/alert-dialog.tsx
39
+ var import_alert_dialog = require("@base-ui-components/react/alert-dialog");
49
40
  var import_react_utils = require("@kopexa/react-utils");
41
+ var import_shared_utils = require("@kopexa/shared-utils");
50
42
  var import_theme = require("@kopexa/theme");
51
- var AlertDialogPrimitive = __toESM(require("@radix-ui/react-alert-dialog"));
52
43
  var import_jsx_runtime = require("react/jsx-runtime");
53
44
  var [Provider, useAlertDialogContext] = (0, import_react_utils.createContext)();
54
45
  function AlertDialogRoot(props) {
55
46
  const styles = (0, import_theme.alertDialog)();
56
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Provider, { value: { styles }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogPrimitive.Root, { "data-slot": "alert-dialog", ...props }) });
47
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Provider, { value: { styles }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_alert_dialog.AlertDialog.Root, { "data-slot": "alert-dialog", ...props }) });
57
48
  }
58
49
  function AlertDialogTrigger(props) {
59
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogPrimitive.Trigger, { "data-slot": "alert-dialog-trigger", ...props });
50
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_alert_dialog.AlertDialog.Trigger, { "data-slot": "alert-dialog-trigger", ...props });
60
51
  }
61
52
  function AlertDialogPortal({ ...props }) {
62
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogPrimitive.Portal, { "data-slot": "alert-dialog-portal", ...props });
53
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_alert_dialog.AlertDialog.Portal, { "data-slot": "alert-dialog-portal", ...props });
63
54
  }
64
55
  function AlertDialogOverlay({
65
56
  className,
@@ -67,10 +58,10 @@ function AlertDialogOverlay({
67
58
  }) {
68
59
  const { styles } = useAlertDialogContext();
69
60
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
70
- AlertDialogPrimitive.Overlay,
61
+ import_alert_dialog.AlertDialog.Backdrop,
71
62
  {
72
63
  "data-slot": "alert-dialog-overlay",
73
- className: styles.overlay(className),
64
+ className: (0, import_shared_utils.cn)(styles.overlay(), className),
74
65
  ...props
75
66
  }
76
67
  );
@@ -83,10 +74,10 @@ function AlertDialogContent({
83
74
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDialogPortal, { children: [
84
75
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogOverlay, {}),
85
76
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
86
- AlertDialogPrimitive.Content,
77
+ import_alert_dialog.AlertDialog.Popup,
87
78
  {
88
79
  "data-slot": "alert-dialog-content",
89
- className: styles.content(className),
80
+ className: (0, import_shared_utils.cn)(styles.content(), className),
90
81
  ...props
91
82
  }
92
83
  )
@@ -126,10 +117,10 @@ function AlertDialogTitle({
126
117
  }) {
127
118
  const { styles } = useAlertDialogContext();
128
119
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
129
- AlertDialogPrimitive.Title,
120
+ import_alert_dialog.AlertDialog.Title,
130
121
  {
131
122
  "data-slot": "alert-dialog-title",
132
- className: styles.title(className),
123
+ className: (0, import_shared_utils.cn)(styles.title(), className),
133
124
  ...props
134
125
  }
135
126
  );
@@ -140,10 +131,10 @@ function AlertDialogDescription({
140
131
  }) {
141
132
  const { styles } = useAlertDialogContext();
142
133
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
143
- AlertDialogPrimitive.Description,
134
+ import_alert_dialog.AlertDialog.Description,
144
135
  {
145
136
  "data-slot": "alert-dialog-description",
146
- className: styles.description(className),
137
+ className: (0, import_shared_utils.cn)(styles.description(), className),
147
138
  ...props
148
139
  }
149
140
  );
@@ -155,9 +146,9 @@ function AlertDialogAction({
155
146
  ...props
156
147
  }) {
157
148
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
158
- AlertDialogPrimitive.Action,
149
+ import_alert_dialog.AlertDialog.Close,
159
150
  {
160
- className: (0, import_theme.button)({ className, color, variant }),
151
+ className: (0, import_shared_utils.cn)((0, import_theme.button)({ color, variant }), className),
161
152
  ...props
162
153
  }
163
154
  );
@@ -167,9 +158,9 @@ function AlertDialogCancel({
167
158
  ...props
168
159
  }) {
169
160
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
170
- AlertDialogPrimitive.Cancel,
161
+ import_alert_dialog.AlertDialog.Close,
171
162
  {
172
- className: (0, import_theme.button)({ variant: "ghost", className }),
163
+ className: (0, import_shared_utils.cn)((0, import_theme.button)({ variant: "ghost" }), className),
173
164
  ...props
174
165
  }
175
166
  );
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import "./chunk-A3S3FSQD.mjs";
2
+ import "./chunk-FWY5LXLV.mjs";
3
3
  import {
4
4
  AlertDialogAction,
5
5
  AlertDialogCancel,
@@ -12,7 +12,7 @@ import {
12
12
  AlertDialogRoot,
13
13
  AlertDialogTitle,
14
14
  AlertDialogTrigger
15
- } from "./chunk-UYXIWF7G.mjs";
15
+ } from "./chunk-5OQQOE47.mjs";
16
16
  import "./chunk-C7GZJJIK.mjs";
17
17
  export {
18
18
  AlertDialogAction as Action,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kopexa/alert-dialog",
3
- "version": "3.0.7",
3
+ "version": "4.0.0",
4
4
  "description": "A modal dialog that interrupts the user with important content and expects a response.",
5
5
  "keywords": [
6
6
  "alert-dialog"
@@ -28,12 +28,12 @@
28
28
  "motion": ">=12.23.6",
29
29
  "react": ">=19.0.0-rc.0",
30
30
  "react-dom": ">=19.0.0-rc.0",
31
- "@kopexa/theme": "1.7.7"
31
+ "@kopexa/theme": "2.0.0"
32
32
  },
33
33
  "dependencies": {
34
- "@radix-ui/react-alert-dialog": "^1.1.15",
35
- "@kopexa/react-utils": "2.0.8",
36
- "@kopexa/shared-utils": "1.1.7"
34
+ "@base-ui-components/react": "1.0.0-beta.3",
35
+ "@kopexa/react-utils": "3.0.0",
36
+ "@kopexa/shared-utils": "2.0.0"
37
37
  },
38
38
  "clean-package": "../../../clean-package.config.json",
39
39
  "module": "dist/index.mjs",