@adamosuiteservices/ui 2.10.3 → 2.10.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/dialog.cjs CHANGED
@@ -1,19 +1,20 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./jsx-runtime-BB_1_6y_.cjs"),e=require("./index-BFyr34mw.cjs"),m=require("./icon-Bg5HV6Ls.cjs"),s=require("./index-DoxiiusW.cjs");require("react");function c({...a}){return t.jsxRuntimeExports.jsx(e.Root,{"data-slot":"dialog",...a})}function u({...a}){return t.jsxRuntimeExports.jsx(e.Trigger,{"data-slot":"dialog-trigger",...a})}function d({...a}){return t.jsxRuntimeExports.jsx(e.Portal,{"data-slot":"dialog-portal",...a})}function g({...a}){return t.jsxRuntimeExports.jsx(e.Close,{"data-slot":"dialog-close",...a})}function n({className:a,...o}){return t.jsxRuntimeExports.jsx(e.Overlay,{"data-slot":"dialog-overlay",className:s.cn(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./jsx-runtime-BB_1_6y_.cjs"),e=require("./index-BFyr34mw.cjs"),r=require("./icon-Bg5HV6Ls.cjs"),d=require("./index-DoxiiusW.cjs");require("react");function c({...a}){return t.jsxRuntimeExports.jsx(e.Root,{"data-slot":"dialog",...a})}function x({...a}){return t.jsxRuntimeExports.jsx(e.Trigger,{"data-slot":"dialog-trigger",...a})}function s({...a}){return t.jsxRuntimeExports.jsx(e.Portal,{"data-slot":"dialog-portal",...a})}function u({...a}){return t.jsxRuntimeExports.jsx(e.Close,{"data-slot":"dialog-close",...a})}function n({className:a,...o}){return t.jsxRuntimeExports.jsx(e.Overlay,{"data-slot":"dialog-overlay",className:d.cn(`
2
2
  adm:fixed adm:inset-0 adm:z-50 adm:bg-black/50
3
3
  adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0
4
4
  adm:data-[state=open]:animate-in adm:data-[state=open]:fade-in-0
5
- `,a),...o})}function x({className:a,children:o,showCloseButton:i=!0,theme:l,...r}){return t.jsxRuntimeExports.jsxs(d,{"data-slot":"dialog-portal",children:[t.jsxRuntimeExports.jsx(n,{}),t.jsxRuntimeExports.jsxs(e.Content,{"data-theme":l,"data-slot":"dialog-content",className:s.cn(`
6
- adm:fixed adm:top-[50%] adm:left-[50%] adm:z-50 adm:grid adm:w-full
7
- adm:max-w-[calc(100%-2rem)] adm:translate-x-[-50%]
8
- adm:translate-y-[-50%] adm:gap-4 adm:rounded-lg adm:border
9
- adm:bg-background adm:p-6 adm:shadow-xs adm:duration-200
5
+ `,a),...o})}function g({className:a,children:o,showCloseButton:i=!0,theme:l,...m}){return t.jsxRuntimeExports.jsxs(s,{"data-slot":"dialog-portal",children:[t.jsxRuntimeExports.jsx(n,{}),t.jsxRuntimeExports.jsxs(e.Content,{"data-theme":l,"data-slot":"dialog-content",className:d.cn(`
6
+ adm:fixed adm:top-[50%] adm:left-[50%] adm:z-50 adm:flex
7
+ adm:max-h-[calc(100dvh-32px)] adm:w-full adm:max-w-[calc(100%-2rem)]
8
+ adm:translate-x-[-50%] adm:translate-y-[-50%] adm:flex-col adm:gap-4
9
+ adm:rounded-lg adm:border adm:bg-background adm:p-6 adm:shadow-xs
10
+ adm:duration-200
10
11
  adm:data-[state=closed]:animate-out
11
12
  adm:data-[state=closed]:fade-out-0
12
13
  adm:data-[state=closed]:zoom-out-95
13
14
  adm:data-[state=open]:animate-in adm:data-[state=open]:fade-in-0
14
15
  adm:data-[state=open]:zoom-in-95
15
16
  adm:sm:max-w-lg
16
- `,a),...r,children:[o,i&&t.jsxRuntimeExports.jsxs(e.Close,{"data-slot":"dialog-close",className:`
17
+ `,a),...m,children:[o,i&&t.jsxRuntimeExports.jsxs(e.Close,{"data-slot":"dialog-close",className:`
17
18
  adm:absolute adm:top-4 adm:right-4 adm:flex adm:rounded-xs
18
19
  adm:opacity-70 adm:ring-offset-background adm:transition-opacity
19
20
  adm:hover:opacity-100
@@ -27,7 +28,7 @@
27
28
  adm:[&_[data-slot=icon]:not([class*=text-])]:text-lg
28
29
  adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
29
30
  adm:[&_svg:not([class*=size-])]:size-4
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
+ `,children:[t.jsxRuntimeExports.jsx(r.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:d.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:d.cn(`
31
32
  adm:flex adm:gap-2
32
33
  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("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;
34
+ `,a),...o})}function j({className:a,...o}){return t.jsxRuntimeExports.jsx(e.Title,{"data-slot":"dialog-title",className:d.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:d.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:d.cn("adm:mt-2 adm:mb-6",a),...o})}exports.Dialog=c;exports.DialogBody=R;exports.DialogClose=u;exports.DialogContent=g;exports.DialogDescription=D;exports.DialogFooter=f;exports.DialogHeader=p;exports.DialogOverlay=n;exports.DialogPortal=s;exports.DialogTitle=j;exports.DialogTrigger=x;
package/dist/dialog.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { j as t } from "./jsx-runtime-BzflLqGi.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";
2
+ import { R as l, C as e, a as i, 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
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(i, { "data-slot": "dialog", ...a });
9
+ return /* @__PURE__ */ t.jsx(l, { "data-slot": "dialog", ...a });
10
10
  }
11
11
  function z({
12
12
  ...a
@@ -53,16 +53,17 @@ function _({
53
53
  return /* @__PURE__ */ t.jsxs(p, { "data-slot": "dialog-portal", children: [
54
54
  /* @__PURE__ */ t.jsx(j, {}),
55
55
  /* @__PURE__ */ t.jsxs(
56
- l,
56
+ i,
57
57
  {
58
58
  "data-theme": n,
59
59
  "data-slot": "dialog-content",
60
60
  className: o(
61
61
  `
62
- adm:fixed adm:top-[50%] adm:left-[50%] adm:z-50 adm:grid adm:w-full
63
- adm:max-w-[calc(100%-2rem)] adm:translate-x-[-50%]
64
- adm:translate-y-[-50%] adm:gap-4 adm:rounded-lg adm:border
65
- adm:bg-background adm:p-6 adm:shadow-xs adm:duration-200
62
+ adm:fixed adm:top-[50%] adm:left-[50%] adm:z-50 adm:flex
63
+ adm:max-h-[calc(100dvh-32px)] adm:w-full adm:max-w-[calc(100%-2rem)]
64
+ adm:translate-x-[-50%] adm:translate-y-[-50%] adm:flex-col adm:gap-4
65
+ adm:rounded-lg adm:border adm:bg-background adm:p-6 adm:shadow-xs
66
+ adm:duration-200
66
67
  adm:data-[state=closed]:animate-out
67
68
  adm:data-[state=closed]:fade-out-0
68
69
  adm:data-[state=closed]:zoom-out-95