@plyaz/ui 0.10.0 → 0.10.2

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 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),d=require("@radix-ui/react-dialog"),c=require("lucide-react"),i=require("../utils-IjLH3w2e.cjs");function g(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,s.get?s:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const o=g(d);function u({...t}){return a.jsx(o.Root,{"data-slot":"dialog",...t})}function f({...t}){return a.jsx(o.Trigger,{"data-slot":"dialog-trigger",...t})}function r({...t}){return a.jsx(o.Portal,{"data-slot":"dialog-portal",...t})}function p({...t}){return a.jsx(o.Close,{"data-slot":"dialog-close",...t})}function l({className:t,...e}){return a.jsx(o.Overlay,{"data-slot":"dialog-overlay",className:i.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...e})}function x({className:t,children:e,showCloseButton:n=!0,...s}){return a.jsxs(r,{"data-slot":"dialog-portal",children:[a.jsx(l,{}),a.jsxs(o.Content,{"data-slot":"dialog-content",className:i.cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-md border border-subtle p-6 shadow-lg duration-200 sm:max-w-lg",t),...s,children:[e,n&&a.jsxs(o.Close,{"data-slot":"dialog-close",className:"ring-offset-background cursor-pointer text-secondary focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-primary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[a.jsx(c.XIcon,{}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function m({className:t,...e}){return a.jsx("div",{"data-slot":"dialog-header",className:i.cn("flex flex-col gap-2 text-center sm:text-left",t),...e})}function D({className:t,...e}){return a.jsx("div",{"data-slot":"dialog-footer",className:i.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...e})}function j({className:t,...e}){return a.jsx(o.Title,{"data-slot":"dialog-title",className:i.cn("text-primary-foreground text-lg font-semibold",t),...e})}function b({className:t,...e}){return a.jsx(o.Description,{"data-slot":"dialog-description",className:i.cn("text-secondary-foreground text-sm",t),...e})}exports.Dialog=u;exports.DialogClose=p;exports.DialogContent=x;exports.DialogDescription=b;exports.DialogFooter=D;exports.DialogHeader=m;exports.DialogOverlay=l;exports.DialogPortal=r;exports.DialogTitle=j;exports.DialogTrigger=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),d=require("@radix-ui/react-dialog"),c=require("lucide-react"),i=require("../utils-IjLH3w2e.cjs");function g(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,s.get?s:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const o=g(d);function u({...t}){return a.jsx(o.Root,{"data-slot":"dialog",...t})}function f({...t}){return a.jsx(o.Trigger,{"data-slot":"dialog-trigger",...t})}function r({...t}){return a.jsx(o.Portal,{"data-slot":"dialog-portal",...t})}function p({...t}){return a.jsx(o.Close,{"data-slot":"dialog-close",...t})}function l({className:t,...e}){return a.jsx(o.Overlay,{"data-slot":"dialog-overlay",className:i.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 backdrop-blur-xs",t),...e})}function x({className:t,children:e,showCloseButton:n=!0,...s}){return a.jsxs(r,{"data-slot":"dialog-portal",children:[a.jsx(l,{}),a.jsxs(o.Content,{"data-slot":"dialog-content",className:i.cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-md border border-subtle p-6 shadow-lg duration-200 sm:max-w-lg",t),...s,children:[e,n&&a.jsxs(o.Close,{"data-slot":"dialog-close",className:"ring-offset-background cursor-pointer text-secondary focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-primary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[a.jsx(c.XIcon,{}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function m({className:t,...e}){return a.jsx("div",{"data-slot":"dialog-header",className:i.cn("flex flex-col gap-2 text-center sm:text-left",t),...e})}function D({className:t,...e}){return a.jsx("div",{"data-slot":"dialog-footer",className:i.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...e})}function b({className:t,...e}){return a.jsx(o.Title,{"data-slot":"dialog-title",className:i.cn("text-primary-foreground text-lg font-semibold",t),...e})}function j({className:t,...e}){return a.jsx(o.Description,{"data-slot":"dialog-description",className:i.cn("text-secondary-foreground text-sm",t),...e})}exports.Dialog=u;exports.DialogClose=p;exports.DialogContent=x;exports.DialogDescription=j;exports.DialogFooter=D;exports.DialogHeader=m;exports.DialogOverlay=l;exports.DialogPortal=r;exports.DialogTitle=b;exports.DialogTrigger=f;
@@ -23,14 +23,14 @@ function c({
23
23
  {
24
24
  "data-slot": "dialog-overlay",
25
25
  className: n(
26
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
26
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 backdrop-blur-xs",
27
27
  t
28
28
  ),
29
29
  ...o
30
30
  }
31
31
  );
32
32
  }
33
- function v({
33
+ function b({
34
34
  className: t,
35
35
  children: o,
36
36
  showCloseButton: s = !0,
@@ -65,7 +65,7 @@ function v({
65
65
  )
66
66
  ] });
67
67
  }
68
- function y({ className: t, ...o }) {
68
+ function v({ className: t, ...o }) {
69
69
  return /* @__PURE__ */ a(
70
70
  "div",
71
71
  {
@@ -75,7 +75,7 @@ function y({ className: t, ...o }) {
75
75
  }
76
76
  );
77
77
  }
78
- function D({ className: t, ...o }) {
78
+ function y({ className: t, ...o }) {
79
79
  return /* @__PURE__ */ a(
80
80
  "div",
81
81
  {
@@ -85,7 +85,7 @@ function D({ className: t, ...o }) {
85
85
  }
86
86
  );
87
87
  }
88
- function b({ className: t, ...o }) {
88
+ function D({ className: t, ...o }) {
89
89
  return /* @__PURE__ */ a(
90
90
  e.Title,
91
91
  {
@@ -111,12 +111,12 @@ function h({
111
111
  export {
112
112
  m as Dialog,
113
113
  x as DialogClose,
114
- v as DialogContent,
114
+ b as DialogContent,
115
115
  h as DialogDescription,
116
- D as DialogFooter,
117
- y as DialogHeader,
116
+ y as DialogFooter,
117
+ v as DialogHeader,
118
118
  c as DialogOverlay,
119
119
  d as DialogPortal,
120
- b as DialogTitle,
120
+ D as DialogTitle,
121
121
  p as DialogTrigger
122
122
  };