@adamosuiteservices/ui 2.10.2 → 2.10.3

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.
@@ -14,5 +14,5 @@ declare function DialogHeader({ className, ...props }: React.ComponentProps<"div
14
14
  declare function DialogFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
15
15
  declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
16
16
  declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
17
- declare function DialogBody({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
17
+ declare function DialogBody({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
18
18
  export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogBody, DialogTrigger, };
package/dist/dialog.cjs CHANGED
@@ -30,4 +30,4 @@
30
30
  `,children:[t.jsxRuntimeExports.jsx(m.Icon,{symbol:"close"}),t.jsxRuntimeExports.jsx("span",{className:"adm:sr-only",children:"Close"})]})]})]})}function p({className:a,...o}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-header",className:s.cn("adm:flex adm:flex-col adm:gap-2",a),...o})}function f({className:a,...o}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-footer",className:s.cn(`
31
31
  adm:flex adm:gap-2
32
32
  adm:sm:flex-row adm:sm:justify-start
33
- `,a),...o})}function j({className:a,...o}){return t.jsxRuntimeExports.jsx(e.Title,{"data-slot":"dialog-title",className:s.cn("adm:leading-none adm:font-semibold adm:text-neutral-700",a),...o})}function D({className:a,...o}){return t.jsxRuntimeExports.jsx(e.Description,{"data-slot":"dialog-description",className:s.cn("adm:text-sm adm:text-muted-foreground",a),...o})}function R({className:a,...o}){return t.jsxRuntimeExports.jsx(e.Description,{"data-slot":"dialog-description",className:s.cn("adm:mt-2 adm:mb-6",a),...o})}exports.Dialog=c;exports.DialogBody=R;exports.DialogClose=g;exports.DialogContent=x;exports.DialogDescription=D;exports.DialogFooter=f;exports.DialogHeader=p;exports.DialogOverlay=n;exports.DialogPortal=d;exports.DialogTitle=j;exports.DialogTrigger=u;
33
+ `,a),...o})}function j({className:a,...o}){return t.jsxRuntimeExports.jsx(e.Title,{"data-slot":"dialog-title",className:s.cn("adm:leading-none adm:font-semibold adm:text-neutral-700",a),...o})}function D({className:a,...o}){return t.jsxRuntimeExports.jsx(e.Description,{"data-slot":"dialog-description",className:s.cn("adm:text-sm adm:text-muted-foreground",a),...o})}function R({className:a,...o}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-body",className:s.cn("adm:mt-2 adm:mb-6",a),...o})}exports.Dialog=c;exports.DialogBody=R;exports.DialogClose=g;exports.DialogContent=x;exports.DialogDescription=D;exports.DialogFooter=f;exports.DialogHeader=p;exports.DialogOverlay=n;exports.DialogPortal=d;exports.DialogTitle=j;exports.DialogTrigger=u;
package/dist/dialog.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { j as t } from "./jsx-runtime-BzflLqGi.js";
2
- import { R as l, C as e, a as r, D as s, O as c, P as g, b as u, T as f } from "./index-DniCthJA.js";
2
+ import { R as i, C as e, a as l, D as r, O as c, P as g, b as u, T as f } from "./index-DniCthJA.js";
3
3
  import { I as x } from "./icon-DG_i4bz2.js";
4
- import { c as d } from "./index-CRiPKpXj.js";
4
+ import { c as o } from "./index-CRiPKpXj.js";
5
5
  import "react";
6
6
  function N({
7
7
  ...a
8
8
  }) {
9
- return /* @__PURE__ */ t.jsx(l, { "data-slot": "dialog", ...a });
9
+ return /* @__PURE__ */ t.jsx(i, { "data-slot": "dialog", ...a });
10
10
  }
11
11
  function z({
12
12
  ...a
@@ -25,13 +25,13 @@ function C({
25
25
  }
26
26
  function j({
27
27
  className: a,
28
- ...o
28
+ ...d
29
29
  }) {
30
30
  return /* @__PURE__ */ t.jsx(
31
31
  c,
32
32
  {
33
33
  "data-slot": "dialog-overlay",
34
- className: d(
34
+ className: o(
35
35
  `
36
36
  adm:fixed adm:inset-0 adm:z-50 adm:bg-black/50
37
37
  adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0
@@ -39,25 +39,25 @@ function j({
39
39
  `,
40
40
  a
41
41
  ),
42
- ...o
42
+ ...d
43
43
  }
44
44
  );
45
45
  }
46
46
  function _({
47
47
  className: a,
48
- children: o,
49
- showCloseButton: n = !0,
50
- theme: m,
51
- ...i
48
+ children: d,
49
+ showCloseButton: s = !0,
50
+ theme: n,
51
+ ...m
52
52
  }) {
53
53
  return /* @__PURE__ */ t.jsxs(p, { "data-slot": "dialog-portal", children: [
54
54
  /* @__PURE__ */ t.jsx(j, {}),
55
55
  /* @__PURE__ */ t.jsxs(
56
- r,
56
+ l,
57
57
  {
58
- "data-theme": m,
58
+ "data-theme": n,
59
59
  "data-slot": "dialog-content",
60
- className: d(
60
+ className: o(
61
61
  `
62
62
  adm:fixed adm:top-[50%] adm:left-[50%] adm:z-50 adm:grid adm:w-full
63
63
  adm:max-w-[calc(100%-2rem)] adm:translate-x-[-50%]
@@ -72,10 +72,10 @@ function _({
72
72
  `,
73
73
  a
74
74
  ),
75
- ...i,
75
+ ...m,
76
76
  children: [
77
- o,
78
- n && /* @__PURE__ */ t.jsxs(
77
+ d,
78
+ s && /* @__PURE__ */ t.jsxs(
79
79
  e,
80
80
  {
81
81
  "data-slot": "dialog-close",
@@ -105,68 +105,68 @@ function _({
105
105
  )
106
106
  ] });
107
107
  }
108
- function k({ className: a, ...o }) {
108
+ function k({ className: a, ...d }) {
109
109
  return /* @__PURE__ */ t.jsx(
110
110
  "div",
111
111
  {
112
112
  "data-slot": "dialog-header",
113
- className: d("adm:flex adm:flex-col adm:gap-2", a),
114
- ...o
113
+ className: o("adm:flex adm:flex-col adm:gap-2", a),
114
+ ...d
115
115
  }
116
116
  );
117
117
  }
118
- function w({ className: a, ...o }) {
118
+ function w({ className: a, ...d }) {
119
119
  return /* @__PURE__ */ t.jsx(
120
120
  "div",
121
121
  {
122
122
  "data-slot": "dialog-footer",
123
- className: d(
123
+ className: o(
124
124
  `
125
125
  adm:flex adm:gap-2
126
126
  adm:sm:flex-row adm:sm:justify-start
127
127
  `,
128
128
  a
129
129
  ),
130
- ...o
130
+ ...d
131
131
  }
132
132
  );
133
133
  }
134
134
  function T({
135
135
  className: a,
136
- ...o
136
+ ...d
137
137
  }) {
138
138
  return /* @__PURE__ */ t.jsx(
139
139
  u,
140
140
  {
141
141
  "data-slot": "dialog-title",
142
- className: d("adm:leading-none adm:font-semibold adm:text-neutral-700", a),
143
- ...o
142
+ className: o("adm:leading-none adm:font-semibold adm:text-neutral-700", a),
143
+ ...d
144
144
  }
145
145
  );
146
146
  }
147
147
  function O({
148
148
  className: a,
149
- ...o
149
+ ...d
150
150
  }) {
151
151
  return /* @__PURE__ */ t.jsx(
152
- s,
152
+ r,
153
153
  {
154
154
  "data-slot": "dialog-description",
155
- className: d("adm:text-sm adm:text-muted-foreground", a),
156
- ...o
155
+ className: o("adm:text-sm adm:text-muted-foreground", a),
156
+ ...d
157
157
  }
158
158
  );
159
159
  }
160
160
  function P({
161
161
  className: a,
162
- ...o
162
+ ...d
163
163
  }) {
164
164
  return /* @__PURE__ */ t.jsx(
165
- s,
165
+ "div",
166
166
  {
167
- "data-slot": "dialog-description",
168
- className: d("adm:mt-2 adm:mb-6", a),
169
- ...o
167
+ "data-slot": "dialog-body",
168
+ className: o("adm:mt-2 adm:mb-6", a),
169
+ ...d
170
170
  }
171
171
  );
172
172
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adamosuiteservices/ui",
3
- "version": "2.10.2",
3
+ "version": "2.10.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",