@chaibuilder/sdk 1.2.91 → 1.2.92
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/CodeEditor-awVVPqel.cjs +1 -0
- package/dist/{CodeEditor-_Pim7pDO.js → CodeEditor-orTEdw7a.js} +30 -28
- package/dist/Topbar--KOfsR94.cjs +1 -0
- package/dist/{Topbar-4ejjKoRn.js → Topbar-OPlOc1Ha.js} +21 -19
- package/dist/{UnsplashImages-fpbR9Jbs.js → UnsplashImages-WaGyNL1z.js} +35 -33
- package/dist/UnsplashImages-g-8MvB9W.cjs +1 -0
- package/dist/{UploadImages-9hzL5Hu1.js → UploadImages-GiKofaXX.js} +37 -62
- package/dist/UploadImages-Ic_iZgWY.cjs +1 -0
- package/dist/_commonjsHelpers-f3sTPFkQ.js +8 -0
- package/dist/_commonjsHelpers-f52AuuUj.cjs +1 -0
- package/dist/button-9Duvj2dH.js +42 -0
- package/dist/button-oQgWN0j0.cjs +1 -0
- package/dist/context-menu-8MWP_Ikf.cjs +1 -0
- package/dist/{context-menu-9cWJcKdh.js → context-menu-yLeOsx9j.js} +427 -463
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +34 -11
- package/dist/core.js +79 -75
- package/dist/iconBase-BnEC5_qG.js +1583 -0
- package/dist/iconBase-_bgMuxa5.cjs +1 -0
- package/dist/index-Hj8wMhx_.cjs +223 -0
- package/dist/{index-ry3B_D93.js → index-yJ1H6b2C.js} +9626 -10795
- package/dist/plugin-02QsHeBE.cjs +1 -0
- package/dist/{plugin-P0tpo_XZ.cjs → plugin-BXpjdQxx.cjs} +1 -1
- package/dist/{plugin-f5uJtdXY.js → plugin-DdKuAR7p.js} +1 -1
- package/dist/plugin-VDzc8jUO.js +52 -0
- package/dist/render.cjs +2 -2
- package/dist/render.js +7 -6
- package/dist/tailwind.cjs +1 -1
- package/dist/tailwind.js +7 -6
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +113 -112
- package/dist/web-blocks.cjs +1 -1
- package/dist/web-blocks.js +344 -289
- package/package.json +2 -2
- package/dist/CodeEditor-Imjgt7mh.cjs +0 -1
- package/dist/Topbar-irIirqy7.cjs +0 -1
- package/dist/UnsplashImages-NfwOtGHo.cjs +0 -1
- package/dist/UploadImages-OVHnYeiL.cjs +0 -1
- package/dist/context-menu-sQn7ryJ6.cjs +0 -1
- package/dist/iconBase-vJD0OXxU.cjs +0 -1
- package/dist/iconBase-zweRWSz0.js +0 -323
- package/dist/index-VBJLJ6fO.cjs +0 -223
- package/dist/plugin-_F-KZp1i.cjs +0 -1
- package/dist/plugin-sJ3Hzvpv.js +0 -57
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const f=require("./_commonjsHelpers-f52AuuUj.cjs");var o={},a={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return i}});function u(t,e){return{handler:t,config:e}}u.withOptions=function(t,e=()=>({})){const r=function(l){return{__options:l,handler:t(l),config:e(l)}};return r.__isOptionsFunction=!0,r.__pluginFunction=t,r.__configFunction=e,r};const i=u})(a);(function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return t}});const u=i(a);function i(e){return e&&e.__esModule?e:{default:e}}const t=u.default})(o);let c=o;var _=(c.__esModule?c:{default:c}).default;const d=f.getDefaultExportFromCjs(_);exports.plugin=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("lodash-es"),u=require("tailwindcss-palette-generator"),b=require("./plugin-
|
|
1
|
+
"use strict";const r=require("lodash-es"),u=require("tailwindcss-palette-generator"),b=require("./plugin-02QsHeBE.cjs"),f=o=>{const t=r.get(o,"primaryColor","#000"),c=r.get(o,"secondaryColor","#ccc"),i=r.get(o,"headingFont","Inter"),l=r.get(o,"bodyFont","Inter"),n=r.get(o,"roundedCorners","0"),a=r.get(o,"bodyBgLightColor","#fff"),d=r.get(o,"bodyBgDarkColor","#000"),g=r.get(o,"bodyTextLightColor","#000"),e=r.get(o,"bodyTextDarkColor","#fff"),s=u([{color:t,name:"primary"},{color:c,name:"secondary"}]),y={"bg-light":a,"bg-dark":d,"text-dark":e,"text-light":g};return{container:{center:!0,padding:"1rem",screens:{"2xl":"1400px"}},fontFamily:{heading:[i],body:[l]},borderRadius:{DEFAULT:`${n||"0px"}px`},colors:{...s,...y}}},C=b.plugin(function({addBase:o,theme:t}){o({"h1,h2,h3,h4,h5,h6":{fontFamily:t("fontFamily.heading")},body:{fontFamily:t("fontFamily.body"),color:t("colors.text-light"),backgroundColor:t("colors.bg-light")},".dark body":{color:t("colors.text-dark"),backgroundColor:t("colors.bg-dark")}})});exports.chaiBuilderPlugin=C;exports.getChaiBuilderTheme=f;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { get as r } from "lodash-es";
|
|
2
2
|
import e from "tailwindcss-palette-generator";
|
|
3
|
-
import { p as f } from "./plugin-
|
|
3
|
+
import { p as f } from "./plugin-VDzc8jUO.js";
|
|
4
4
|
const C = (o) => {
|
|
5
5
|
const n = r(o, "primaryColor", "#000"), a = r(o, "secondaryColor", "#ccc"), c = r(o, "headingFont", "Inter"), d = r(o, "bodyFont", "Inter"), t = r(o, "roundedCorners", "0"), l = r(o, "bodyBgLightColor", "#fff"), i = r(o, "bodyBgDarkColor", "#000"), s = r(o, "bodyTextLightColor", "#000"), g = r(o, "bodyTextDarkColor", "#fff"), y = e([
|
|
6
6
|
{ color: n, name: "primary" },
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { g as f } from "./_commonjsHelpers-f3sTPFkQ.js";
|
|
2
|
+
var a = {}, c = {};
|
|
3
|
+
(function(n) {
|
|
4
|
+
Object.defineProperty(n, "__esModule", {
|
|
5
|
+
value: !0
|
|
6
|
+
}), Object.defineProperty(n, "default", {
|
|
7
|
+
enumerable: !0,
|
|
8
|
+
get: function() {
|
|
9
|
+
return i;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
function u(t, e) {
|
|
13
|
+
return {
|
|
14
|
+
handler: t,
|
|
15
|
+
config: e
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
u.withOptions = function(t, e = () => ({})) {
|
|
19
|
+
const r = function(l) {
|
|
20
|
+
return {
|
|
21
|
+
__options: l,
|
|
22
|
+
handler: t(l),
|
|
23
|
+
config: e(l)
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
return r.__isOptionsFunction = !0, r.__pluginFunction = t, r.__configFunction = e, r;
|
|
27
|
+
};
|
|
28
|
+
const i = u;
|
|
29
|
+
})(c);
|
|
30
|
+
(function(n) {
|
|
31
|
+
Object.defineProperty(n, "__esModule", {
|
|
32
|
+
value: !0
|
|
33
|
+
}), Object.defineProperty(n, "default", {
|
|
34
|
+
enumerable: !0,
|
|
35
|
+
get: function() {
|
|
36
|
+
return t;
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
const u = /* @__PURE__ */ i(c);
|
|
40
|
+
function i(e) {
|
|
41
|
+
return e && e.__esModule ? e : {
|
|
42
|
+
default: e
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
const t = u.default;
|
|
46
|
+
})(a);
|
|
47
|
+
let o = a;
|
|
48
|
+
var _ = (o.__esModule ? o : { default: o }).default;
|
|
49
|
+
const s = /* @__PURE__ */ f(_);
|
|
50
|
+
export {
|
|
51
|
+
s as p
|
|
52
|
+
};
|
package/dist/render.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("lodash-es"),a=require("./STRINGS-Yl7cSWDc.cjs"),p=require("./jsx-runtime-JYMCiFoE.cjs"),h=require("react"),w=require("tailwind-merge"),x=require("@chaibuilder/runtime"),B=require("@mhsdesign/jit-browser-tailwindcss"),q=require("@tailwindcss/forms"),C=require("@tailwindcss/typography"),Y=require("@tailwindcss/aspect-ratio"),E=require("./plugin-BXpjdQxx.cjs");require("tailwindcss-palette-generator");require("./plugin-02QsHeBE.cjs");require("./_commonjsHelpers-f52AuuUj.cjs");const _=(e,r="")=>{const s=e.replace(a.STYLES_KEY,"").split(",").map(i=>i.split(" ").map(l=>{if(l==="")return"";if(l.includes(":")){const o=l.split(":");return o[o.length-1]=r+n.last(o),o.join(":")}return`${r}${l}`}).join(" "));return n.flattenDeep(s).join(" ")},O=e=>{if(!e)return[];try{return JSON.parse(R(e)).filter(t=>!t._type.startsWith("@chai"))}catch{return[{_type:"Paragraph",_id:"error",content:"Invalid JSON. Please check the JSON string."}]}};function R(e){const r=/(asset:\/\/|https:\/\/asset\.localhost\/)(?:localhost\/)?[^"']+/g;return e.replace(r,t=>{const s=decodeURIComponent(t),i=s.indexOf("public");return i!==-1?s.substring(i+6):s})}const K=e=>{const r={};return Object.keys(e).forEach(t=>{n.isString(e[t])&&e[t].startsWith(a.SLOT_KEY)&&(r[t]=e[t].replace(a.SLOT_KEY,"").split(","))}),r},A=n.memoize((e,r)=>{const t=e.replace(a.STYLES_KEY,"").split(","),s=w.twMerge(t[0],t[1]);return r===""?s.replace(a.STYLES_KEY,"").trim():_(s,r).replace(a.STYLES_KEY,"").trim()});function L(e,r){const t=n.get(e,`${r}_attrs`,{});n.has(t,"data-ai-key")&&delete t["data-ai-key"];const s=n.keys(t).join(" ");return n.includes(s,"x-show")&&!n.includes(s,"x-transition")&&(t["x-transition"]=""),t}function N(e,r){const t={};return Object.keys(e).forEach(s=>{if(n.isString(e[s])&&e[s].startsWith(a.STYLES_KEY)){const i=A(e[s],r);t[s]={className:i,...L(e,s)}}}),t}function P(e,r){const t=n.get(e,"_bindings",{});return n.isEmpty(t)?{...e}:(n.each(t,(s,i)=>{n.isString(s)&&n.get(r,s,null)&&(e[i]=n.get(r,s,null))}),e)}function m({blocks:e,parent:r,classPrefix:t="",externalData:s={},blockModifierCallback:i}){const u=e,y=o=>N(o,t),l=r?n.filter(e,{_parent:r}):n.filter(e,o=>n.isEmpty(o._parent));return p.jsxRuntimeExports.jsx(p.jsxRuntimeExports.Fragment,{children:h.Children.toArray(l.map((o,j)=>{const d=K(o),g={};n.isEmpty(d)||Object.keys(d).forEach(c=>{g[c]=h.Children.toArray(d[c].map(S=>p.jsxRuntimeExports.jsx(m,{externalData:s,classPrefix:t,blocks:u,parent:S})))});const T=n.filter(u,{_parent:o._id});g.children=T.length>0?p.jsxRuntimeExports.jsx(m,{externalData:s,classPrefix:t,parent:o._id,blocks:u}):null;const f=x.getBlockComponent(o._type);if(f!==null){let c=o;const S=f.component;return c={...f.defaults,...o},i&&(c=i(c)),h.createElement(S,n.omit({blockProps:{},inBuilder:!1,...c,index:j,...P(o,s),...y(c),...g},["_parent"]))}return p.jsxRuntimeExports.jsxs("noscript",{children:[o._type," not found"]})}))})}async function $(e,r,t=[],s="",i=!1){return await B.createTailwindcss({tailwindConfig:{darkMode:"class",safelist:t,theme:E.getChaiBuilderTheme(e),plugins:[q,C,Y,E.chaiBuilderPlugin],corePlugins:{preflight:i},...s?{prefix:`${s}`}:{}}}).generateStylesFromContent(` ${i?"@tailwind base;":""}
|
|
2
2
|
@tailwind components;
|
|
3
|
-
@tailwind utilities;`,
|
|
3
|
+
@tailwind utilities;`,r)}const v=(e,r)=>e.map(t=>{const s={};return Object.keys(t).forEach(i=>{n.startsWith(t[i],a.STYLES_KEY)&&(s[i]=_(t[i],r))}),s}),I=(e,r,t="",s=!1)=>$(r,[n.replace(JSON.stringify(v(e,t)),/#styles:/g,"")],[],t,s),J=async(e,r={},t="",s=!0)=>await I(e,r,t,s);exports.RenderChaiBlocks=m;exports.convertToBlocks=O;exports.getStylesForBlocks=J;
|
package/dist/render.js
CHANGED
|
@@ -8,9 +8,10 @@ import { createTailwindcss as v } from "@mhsdesign/jit-browser-tailwindcss";
|
|
|
8
8
|
import F from "@tailwindcss/forms";
|
|
9
9
|
import L from "@tailwindcss/typography";
|
|
10
10
|
import U from "@tailwindcss/aspect-ratio";
|
|
11
|
-
import { g as z, c as M } from "./plugin-
|
|
11
|
+
import { g as z, c as M } from "./plugin-DdKuAR7p.js";
|
|
12
12
|
import "tailwindcss-palette-generator";
|
|
13
|
-
import "./plugin-
|
|
13
|
+
import "./plugin-VDzc8jUO.js";
|
|
14
|
+
import "./_commonjsHelpers-f3sTPFkQ.js";
|
|
14
15
|
const E = (s, r = "") => {
|
|
15
16
|
const e = s.replace(c, "").split(",").map((n) => n.split(" ").map((a) => {
|
|
16
17
|
if (a === "")
|
|
@@ -22,7 +23,7 @@ const E = (s, r = "") => {
|
|
|
22
23
|
return `${r}${a}`;
|
|
23
24
|
}).join(" "));
|
|
24
25
|
return A(e).join(" ");
|
|
25
|
-
},
|
|
26
|
+
}, mt = (s) => {
|
|
26
27
|
if (!s)
|
|
27
28
|
return [];
|
|
28
29
|
try {
|
|
@@ -160,9 +161,9 @@ const D = (s, r) => s.map((t) => {
|
|
|
160
161
|
[],
|
|
161
162
|
t,
|
|
162
163
|
e
|
|
163
|
-
),
|
|
164
|
+
), dt = async (s, r = {}, t = "", e = !0) => await b(s, r, t, e);
|
|
164
165
|
export {
|
|
165
166
|
B as RenderChaiBlocks,
|
|
166
|
-
|
|
167
|
-
|
|
167
|
+
mt as convertToBlocks,
|
|
168
|
+
dt as getStylesForBlocks
|
|
168
169
|
};
|
package/dist/tailwind.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@tailwindcss/typography"),a=require("@tailwindcss/forms"),i=require("@tailwindcss/aspect-ratio"),n=require("tailwindcss-animate"),r=require("./plugin-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@tailwindcss/typography"),a=require("@tailwindcss/forms"),i=require("@tailwindcss/aspect-ratio"),n=require("tailwindcss-animate"),r=require("./plugin-BXpjdQxx.cjs");require("lodash-es");require("tailwindcss-palette-generator");require("./plugin-02QsHeBE.cjs");require("./_commonjsHelpers-f52AuuUj.cjs");function d(){return{colors:{border:"hsl(var(--border))",input:"hsl(var(--input))",ring:"hsl(var(--ring))",background:"hsl(var(--background))",foreground:"hsl(var(--foreground))",primary:{DEFAULT:"hsl(var(--primary))",foreground:"hsl(var(--primary-foreground))"},secondary:{DEFAULT:"hsl(var(--secondary))",foreground:"hsl(var(--secondary-foreground))"},destructive:{DEFAULT:"hsl(var(--destructive))",foreground:"hsl(var(--destructive-foreground))"},muted:{DEFAULT:"hsl(var(--muted))",foreground:"hsl(var(--muted-foreground))"},accent:{DEFAULT:"hsl(var(--accent))",foreground:"hsl(var(--accent-foreground))"},popover:{DEFAULT:"hsl(var(--popover))",foreground:"hsl(var(--popover-foreground))"},card:{DEFAULT:"hsl(var(--card))",foreground:"hsl(var(--card-foreground))"}},borderRadius:{lg:"var(--radius)",md:"calc(var(--radius) - 2px)",sm:"calc(var(--radius) - 4px)"},keyframes:{"accordion-down":{from:{height:"0"},to:{height:"var(--radix-accordion-content-height)"}},"accordion-up":{from:{height:"var(--radix-accordion-content-height)"},to:{height:"0"}}},animation:{"accordion-down":"accordion-down 0.2s ease-out","accordion-up":"accordion-up 0.2s ease-out"}}}const u=e=>({darkMode:"class",content:[...e,"node_modules/@chaibuilder/sdk/dist/*.{js,cjs}","node_modules/@chaibuilder/runtime/dist/*.{js,cjs}"],theme:{container:{center:!0,padding:"2rem",screens:{"2xl":"1400px"}},extend:d()},plugins:[n,o,a,i]});exports.chaiBuilderPlugin=r.chaiBuilderPlugin;exports.getChaiBuilderTheme=r.getChaiBuilderTheme;exports.getChaiBuilderTailwindConfig=u;
|
package/dist/tailwind.js
CHANGED
|
@@ -2,10 +2,11 @@ import o from "@tailwindcss/typography";
|
|
|
2
2
|
import e from "@tailwindcss/forms";
|
|
3
3
|
import a from "@tailwindcss/aspect-ratio";
|
|
4
4
|
import d from "tailwindcss-animate";
|
|
5
|
-
import { c as
|
|
5
|
+
import { c as f, g as T } from "./plugin-DdKuAR7p.js";
|
|
6
6
|
import "lodash-es";
|
|
7
7
|
import "tailwindcss-palette-generator";
|
|
8
|
-
import "./plugin-
|
|
8
|
+
import "./plugin-VDzc8jUO.js";
|
|
9
|
+
import "./_commonjsHelpers-f3sTPFkQ.js";
|
|
9
10
|
function n() {
|
|
10
11
|
return {
|
|
11
12
|
colors: {
|
|
@@ -64,7 +65,7 @@ function n() {
|
|
|
64
65
|
}
|
|
65
66
|
};
|
|
66
67
|
}
|
|
67
|
-
const
|
|
68
|
+
const m = (r) => ({
|
|
68
69
|
darkMode: "class",
|
|
69
70
|
content: [
|
|
70
71
|
...r,
|
|
@@ -84,7 +85,7 @@ const g = (r) => ({
|
|
|
84
85
|
plugins: [d, o, e, a]
|
|
85
86
|
});
|
|
86
87
|
export {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
f as chaiBuilderPlugin,
|
|
89
|
+
m as getChaiBuilderTailwindConfig,
|
|
90
|
+
T as getChaiBuilderTheme
|
|
90
91
|
};
|
package/dist/ui.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-JYMCiFoE.cjs"),H=require("react"),V=require("@radix-ui/react-toggle"),m=require("class-variance-authority"),e=require("./context-menu-sQn7ryJ6.cjs"),u=require("@radix-ui/react-icons"),z=require("@radix-ui/react-menubar"),F=require("@radix-ui/react-dialog");require("@radix-ui/react-switch");require("@radix-ui/react-accordion");require("@radix-ui/react-alert-dialog");require("@radix-ui/react-slot");require("@radix-ui/react-label");require("@radix-ui/react-scroll-area");require("@radix-ui/react-tabs");require("@radix-ui/react-tooltip");require("@radix-ui/react-popover");require("@radix-ui/react-hover-card");require("@radix-ui/react-select");require("@radix-ui/react-dropdown-menu");require("@radix-ui/react-separator");require("@radix-ui/react-toast");require("cmdk");require("@radix-ui/react-context-menu");require("clsx");require("tailwind-merge");function c(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(o,r,s.get?s:{enumerable:!0,get:()=>t[r]})}}return o.default=t,Object.freeze(o)}const i=c(H),p=c(V),n=c(z),d=c(F),x=m.cva("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-3",sm:"h-9 px-2.5",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"default"}}),g=i.forwardRef(({className:t,variant:o,size:r,...s},l)=>a.jsxRuntimeExports.jsx(p.Root,{ref:l,className:e.cn(x({variant:o,size:r,className:t})),...s}));g.displayName=p.Root.displayName;const _=m.cva("relative w-full rounded-lg border px-4 py-3 text-sm [&:has(svg)]:pl-11 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),b=i.forwardRef(({className:t,variant:o,...r},s)=>a.jsxRuntimeExports.jsx("div",{ref:s,role:"alert",className:e.cn(_({variant:o}),t),...r}));b.displayName="Alert";const f=i.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx("h5",{ref:r,className:e.cn("mb-1 font-medium leading-none tracking-tight",t),...o}));f.displayName="AlertTitle";const C=i.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx("div",{ref:r,className:e.cn("text-sm [&_p]:leading-relaxed",t),...o}));C.displayName="AlertDescription";const O=n.Menu,B=n.Group,J=n.Portal,K=n.Sub,Q=n.RadioGroup,M=i.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx(n.Root,{ref:r,className:e.cn("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm",t),...o}));M.displayName=n.Root.displayName;const h=i.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx(n.Trigger,{ref:r,className:e.cn("flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t),...o}));h.displayName=n.Trigger.displayName;const S=i.forwardRef(({className:t,inset:o,children:r,...s},l)=>a.jsxRuntimeExports.jsxs(n.SubTrigger,{ref:l,className:e.cn("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",o&&"pl-8",t),...s,children:[r,a.jsxRuntimeExports.jsx(u.ChevronRightIcon,{className:"ml-auto h-4 w-4"})]}));S.displayName=n.SubTrigger.displayName;const j=i.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx(n.SubContent,{ref:r,className:e.cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...o}));j.displayName=n.SubContent.displayName;const D=i.forwardRef(({className:t,align:o="start",alignOffset:r=-4,sideOffset:s=8,...l},L)=>a.jsxRuntimeExports.jsx(n.Portal,{children:a.jsxRuntimeExports.jsx(n.Content,{ref:L,align:o,alignOffset:r,sideOffset:s,className:e.cn("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...l})}));D.displayName=n.Content.displayName;const v=i.forwardRef(({className:t,inset:o,...r},s)=>a.jsxRuntimeExports.jsx(n.Item,{ref:s,className:e.cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o&&"pl-8",t),...r}));v.displayName=n.Item.displayName;const T=i.forwardRef(({className:t,children:o,checked:r,...s},l)=>a.jsxRuntimeExports.jsxs(n.CheckboxItem,{ref:l,className:e.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:r,...s,children:[a.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsxRuntimeExports.jsx(n.ItemIndicator,{children:a.jsxRuntimeExports.jsx(u.CheckIcon,{className:"h-4 w-4"})})}),o]}));T.displayName=n.CheckboxItem.displayName;const R=i.forwardRef(({className:t,children:o,...r},s)=>a.jsxRuntimeExports.jsxs(n.RadioItem,{ref:s,className:e.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...r,children:[a.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsxRuntimeExports.jsx(n.ItemIndicator,{children:a.jsxRuntimeExports.jsx(u.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),o]}));R.displayName=n.RadioItem.displayName;const y=i.forwardRef(({className:t,inset:o,...r},s)=>a.jsxRuntimeExports.jsx(n.Label,{ref:s,className:e.cn("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",t),...r}));y.displayName=n.Label.displayName;const w=i.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx(n.Separator,{ref:r,className:e.cn("-mx-1 my-1 h-px bg-muted",t),...o}));w.displayName=n.Separator.displayName;const N=({className:t,...o})=>a.jsxRuntimeExports.jsx("span",{className:e.cn("ml-auto text-xs tracking-widest text-muted-foreground",t),...o});N.displayname="MenubarShortcut";const U=d.Root,W=d.Trigger,X=d.Close,I=({className:t,...o})=>a.jsxRuntimeExports.jsx(d.Portal,{className:e.cn(t),...o});I.displayName=d.Portal.displayName;const A=i.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx(d.Overlay,{className:e.cn("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...o,ref:r}));A.displayName=d.Overlay.displayName;const Y=m.cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),E=i.forwardRef(({side:t="right",className:o,children:r,...s},l)=>a.jsxRuntimeExports.jsxs(I,{children:[a.jsxRuntimeExports.jsx(A,{}),a.jsxRuntimeExports.jsxs(d.Content,{ref:l,className:e.cn(Y({side:t}),o),...s,children:[r,a.jsxRuntimeExports.jsxs(d.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[a.jsxRuntimeExports.jsx(u.Cross2Icon,{className:"h-4 w-4"}),a.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));E.displayName=d.Content.displayName;const P=({className:t,...o})=>a.jsxRuntimeExports.jsx("div",{className:e.cn("flex flex-col space-y-2 text-center sm:text-left",t),...o});P.displayName="SheetHeader";const q=({className:t,...o})=>a.jsxRuntimeExports.jsx("div",{className:e.cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...o});q.displayName="SheetFooter";const k=i.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx(d.Title,{ref:r,className:e.cn("text-lg font-semibold text-foreground",t),...o}));k.displayName=d.Title.displayName;const G=i.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx(d.Description,{ref:r,className:e.cn("text-sm text-muted-foreground",t),...o}));G.displayName=d.Description.displayName;exports.Accordion=e.Accordion;exports.AccordionContent=e.AccordionContent;exports.AccordionItem=e.AccordionItem;exports.AccordionTrigger=e.AccordionTrigger;exports.AlertDialog=e.AlertDialog;exports.AlertDialogAction=e.AlertDialogAction;exports.AlertDialogCancel=e.AlertDialogCancel;exports.AlertDialogContent=e.AlertDialogContent;exports.AlertDialogDescription=e.AlertDialogDescription;exports.AlertDialogFooter=e.AlertDialogFooter;exports.AlertDialogHeader=e.AlertDialogHeader;exports.AlertDialogTitle=e.AlertDialogTitle;exports.AlertDialogTrigger=e.AlertDialogTrigger;exports.Badge=e.Badge;exports.Button=e.Button;exports.Card=e.Card;exports.CardContent=e.CardContent;exports.CardDescription=e.CardDescription;exports.CardFooter=e.CardFooter;exports.CardHeader=e.CardHeader;exports.CardTitle=e.CardTitle;exports.Command=e.Command;exports.CommandDialog=e.CommandDialog;exports.CommandEmpty=e.CommandEmpty;exports.CommandGroup=e.CommandGroup;exports.CommandInput=e.CommandInput;exports.CommandItem=e.CommandItem;exports.CommandList=e.CommandList;exports.CommandSeparator=e.CommandSeparator;exports.CommandShortcut=e.CommandShortcut;exports.ContextMenu=e.ContextMenu;exports.ContextMenuCheckboxItem=e.ContextMenuCheckboxItem;exports.ContextMenuContent=e.ContextMenuContent;exports.ContextMenuGroup=e.ContextMenuGroup;exports.ContextMenuItem=e.ContextMenuItem;exports.ContextMenuLabel=e.ContextMenuLabel;exports.ContextMenuPortal=e.ContextMenuPortal;exports.ContextMenuRadioGroup=e.ContextMenuRadioGroup;exports.ContextMenuRadioItem=e.ContextMenuRadioItem;exports.ContextMenuSeparator=e.ContextMenuSeparator;exports.ContextMenuShortcut=e.ContextMenuShortcut;exports.ContextMenuSub=e.ContextMenuSub;exports.ContextMenuSubContent=e.ContextMenuSubContent;exports.ContextMenuSubTrigger=e.ContextMenuSubTrigger;exports.ContextMenuTrigger=e.ContextMenuTrigger;exports.Dialog=e.Dialog;exports.DialogContent=e.DialogContent;exports.DialogDescription=e.DialogDescription;exports.DialogFooter=e.DialogFooter;exports.DialogHeader=e.DialogHeader;exports.DialogTitle=e.DialogTitle;exports.DialogTrigger=e.DialogTrigger;exports.DropdownMenu=e.DropdownMenu;exports.DropdownMenuCheckboxItem=e.DropdownMenuCheckboxItem;exports.DropdownMenuContent=e.DropdownMenuContent;exports.DropdownMenuGroup=e.DropdownMenuGroup;exports.DropdownMenuItem=e.DropdownMenuItem;exports.DropdownMenuLabel=e.DropdownMenuLabel;exports.DropdownMenuPortal=e.DropdownMenuPortal;exports.DropdownMenuRadioGroup=e.DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=e.DropdownMenuRadioItem;exports.DropdownMenuSeparator=e.DropdownMenuSeparator;exports.DropdownMenuShortcut=e.DropdownMenuShortcut;exports.DropdownMenuSub=e.DropdownMenuSub;exports.DropdownMenuSubContent=e.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=e.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=e.DropdownMenuTrigger;exports.HoverCard=e.HoverCard;exports.HoverCardContent=e.HoverCardContent;exports.HoverCardTrigger=e.HoverCardTrigger;exports.Input=e.Input;exports.Label=e.Label;exports.Popover=e.Popover;exports.PopoverContent=e.PopoverContent;exports.PopoverTrigger=e.PopoverTrigger;exports.ScrollArea=e.ScrollArea;exports.ScrollBar=e.ScrollBar;exports.Select=e.Select;exports.SelectContent=e.SelectContent;exports.SelectGroup=e.SelectGroup;exports.SelectItem=e.SelectItem;exports.SelectLabel=e.SelectLabel;exports.SelectSeparator=e.SelectSeparator;exports.SelectTrigger=e.SelectTrigger;exports.SelectValue=e.SelectValue;exports.Separator=e.Separator;exports.Skeleton=e.Skeleton;exports.Switch=e.Switch;exports.Tabs=e.Tabs;exports.TabsContent=e.TabsContent;exports.TabsList=e.TabsList;exports.TabsTrigger=e.TabsTrigger;exports.Textarea=e.Textarea;exports.Toaster=e.Toaster;exports.Tooltip=e.Tooltip;exports.TooltipContent=e.TooltipContent;exports.TooltipPortal=e.TooltipPortal;exports.TooltipProvider=e.TooltipProvider;exports.TooltipTrigger=e.TooltipTrigger;exports.badgeVariants=e.badgeVariants;exports.buttonVariants=e.buttonVariants;exports.reducer=e.reducer;exports.toast=e.toast;exports.useToast=e.useToast;exports.Alert=b;exports.AlertDescription=C;exports.AlertTitle=f;exports.Menubar=M;exports.MenubarCheckboxItem=T;exports.MenubarContent=D;exports.MenubarGroup=B;exports.MenubarItem=v;exports.MenubarLabel=y;exports.MenubarMenu=O;exports.MenubarPortal=J;exports.MenubarRadioGroup=Q;exports.MenubarRadioItem=R;exports.MenubarSeparator=w;exports.MenubarShortcut=N;exports.MenubarSub=K;exports.MenubarSubContent=j;exports.MenubarSubTrigger=S;exports.MenubarTrigger=h;exports.Sheet=U;exports.SheetClose=X;exports.SheetContent=E;exports.SheetDescription=G;exports.SheetFooter=q;exports.SheetHeader=P;exports.SheetTitle=k;exports.SheetTrigger=W;exports.Toggle=g;exports.toggleVariants=x;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-JYMCiFoE.cjs"),V=require("react"),z=require("@radix-ui/react-toggle"),p=require("class-variance-authority"),s=require("./button-oQgWN0j0.cjs"),e=require("./context-menu-8MWP_Ikf.cjs"),c=require("@radix-ui/react-icons"),F=require("@radix-ui/react-menubar"),_=require("@radix-ui/react-dialog");require("@radix-ui/react-slot");require("clsx");require("tailwind-merge");require("@radix-ui/react-switch");require("@radix-ui/react-accordion");require("@radix-ui/react-alert-dialog");require("@radix-ui/react-label");require("@radix-ui/react-scroll-area");require("@radix-ui/react-tabs");require("@radix-ui/react-tooltip");require("@radix-ui/react-popover");require("@radix-ui/react-hover-card");require("@radix-ui/react-select");require("@radix-ui/react-dropdown-menu");require("@radix-ui/react-separator");require("@radix-ui/react-toast");require("cmdk");require("@radix-ui/react-context-menu");function m(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(o,r,i.get?i:{enumerable:!0,get:()=>t[r]})}}return o.default=t,Object.freeze(o)}const d=m(V),x=m(z),n=m(F),l=m(_),g=p.cva("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-3",sm:"h-9 px-2.5",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"default"}}),b=d.forwardRef(({className:t,variant:o,size:r,...i},u)=>a.jsxRuntimeExports.jsx(x.Root,{ref:u,className:s.cn(g({variant:o,size:r,className:t})),...i}));b.displayName=x.Root.displayName;const O=p.cva("relative w-full rounded-lg border px-4 py-3 text-sm [&:has(svg)]:pl-11 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),f=d.forwardRef(({className:t,variant:o,...r},i)=>a.jsxRuntimeExports.jsx("div",{ref:i,role:"alert",className:s.cn(O({variant:o}),t),...r}));f.displayName="Alert";const C=d.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx("h5",{ref:r,className:s.cn("mb-1 font-medium leading-none tracking-tight",t),...o}));C.displayName="AlertTitle";const M=d.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx("div",{ref:r,className:s.cn("text-sm [&_p]:leading-relaxed",t),...o}));M.displayName="AlertDescription";const B=n.Menu,J=n.Group,K=n.Portal,Q=n.Sub,U=n.RadioGroup,h=d.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx(n.Root,{ref:r,className:s.cn("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm",t),...o}));h.displayName=n.Root.displayName;const S=d.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx(n.Trigger,{ref:r,className:s.cn("flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t),...o}));S.displayName=n.Trigger.displayName;const j=d.forwardRef(({className:t,inset:o,children:r,...i},u)=>a.jsxRuntimeExports.jsxs(n.SubTrigger,{ref:u,className:s.cn("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",o&&"pl-8",t),...i,children:[r,a.jsxRuntimeExports.jsx(c.ChevronRightIcon,{className:"ml-auto h-4 w-4"})]}));j.displayName=n.SubTrigger.displayName;const D=d.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx(n.SubContent,{ref:r,className:s.cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...o}));D.displayName=n.SubContent.displayName;const v=d.forwardRef(({className:t,align:o="start",alignOffset:r=-4,sideOffset:i=8,...u},H)=>a.jsxRuntimeExports.jsx(n.Portal,{children:a.jsxRuntimeExports.jsx(n.Content,{ref:H,align:o,alignOffset:r,sideOffset:i,className:s.cn("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...u})}));v.displayName=n.Content.displayName;const T=d.forwardRef(({className:t,inset:o,...r},i)=>a.jsxRuntimeExports.jsx(n.Item,{ref:i,className:s.cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o&&"pl-8",t),...r}));T.displayName=n.Item.displayName;const R=d.forwardRef(({className:t,children:o,checked:r,...i},u)=>a.jsxRuntimeExports.jsxs(n.CheckboxItem,{ref:u,className:s.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:r,...i,children:[a.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsxRuntimeExports.jsx(n.ItemIndicator,{children:a.jsxRuntimeExports.jsx(c.CheckIcon,{className:"h-4 w-4"})})}),o]}));R.displayName=n.CheckboxItem.displayName;const y=d.forwardRef(({className:t,children:o,...r},i)=>a.jsxRuntimeExports.jsxs(n.RadioItem,{ref:i,className:s.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...r,children:[a.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsxRuntimeExports.jsx(n.ItemIndicator,{children:a.jsxRuntimeExports.jsx(c.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),o]}));y.displayName=n.RadioItem.displayName;const w=d.forwardRef(({className:t,inset:o,...r},i)=>a.jsxRuntimeExports.jsx(n.Label,{ref:i,className:s.cn("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",t),...r}));w.displayName=n.Label.displayName;const N=d.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx(n.Separator,{ref:r,className:s.cn("-mx-1 my-1 h-px bg-muted",t),...o}));N.displayName=n.Separator.displayName;const I=({className:t,...o})=>a.jsxRuntimeExports.jsx("span",{className:s.cn("ml-auto text-xs tracking-widest text-muted-foreground",t),...o});I.displayname="MenubarShortcut";const W=l.Root,X=l.Trigger,Y=l.Close,A=({className:t,...o})=>a.jsxRuntimeExports.jsx(l.Portal,{className:s.cn(t),...o});A.displayName=l.Portal.displayName;const E=d.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx(l.Overlay,{className:s.cn("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...o,ref:r}));E.displayName=l.Overlay.displayName;const Z=p.cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),P=d.forwardRef(({side:t="right",className:o,children:r,...i},u)=>a.jsxRuntimeExports.jsxs(A,{children:[a.jsxRuntimeExports.jsx(E,{}),a.jsxRuntimeExports.jsxs(l.Content,{ref:u,className:s.cn(Z({side:t}),o),...i,children:[r,a.jsxRuntimeExports.jsxs(l.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[a.jsxRuntimeExports.jsx(c.Cross2Icon,{className:"h-4 w-4"}),a.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));P.displayName=l.Content.displayName;const q=({className:t,...o})=>a.jsxRuntimeExports.jsx("div",{className:s.cn("flex flex-col space-y-2 text-center sm:text-left",t),...o});q.displayName="SheetHeader";const k=({className:t,...o})=>a.jsxRuntimeExports.jsx("div",{className:s.cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...o});k.displayName="SheetFooter";const G=d.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx(l.Title,{ref:r,className:s.cn("text-lg font-semibold text-foreground",t),...o}));G.displayName=l.Title.displayName;const L=d.forwardRef(({className:t,...o},r)=>a.jsxRuntimeExports.jsx(l.Description,{ref:r,className:s.cn("text-sm text-muted-foreground",t),...o}));L.displayName=l.Description.displayName;exports.Button=s.Button;exports.buttonVariants=s.buttonVariants;exports.Accordion=e.Accordion;exports.AccordionContent=e.AccordionContent;exports.AccordionItem=e.AccordionItem;exports.AccordionTrigger=e.AccordionTrigger;exports.AlertDialog=e.AlertDialog;exports.AlertDialogAction=e.AlertDialogAction;exports.AlertDialogCancel=e.AlertDialogCancel;exports.AlertDialogContent=e.AlertDialogContent;exports.AlertDialogDescription=e.AlertDialogDescription;exports.AlertDialogFooter=e.AlertDialogFooter;exports.AlertDialogHeader=e.AlertDialogHeader;exports.AlertDialogTitle=e.AlertDialogTitle;exports.AlertDialogTrigger=e.AlertDialogTrigger;exports.Badge=e.Badge;exports.Card=e.Card;exports.CardContent=e.CardContent;exports.CardDescription=e.CardDescription;exports.CardFooter=e.CardFooter;exports.CardHeader=e.CardHeader;exports.CardTitle=e.CardTitle;exports.Command=e.Command;exports.CommandDialog=e.CommandDialog;exports.CommandEmpty=e.CommandEmpty;exports.CommandGroup=e.CommandGroup;exports.CommandInput=e.CommandInput;exports.CommandItem=e.CommandItem;exports.CommandList=e.CommandList;exports.CommandSeparator=e.CommandSeparator;exports.CommandShortcut=e.CommandShortcut;exports.ContextMenu=e.ContextMenu;exports.ContextMenuCheckboxItem=e.ContextMenuCheckboxItem;exports.ContextMenuContent=e.ContextMenuContent;exports.ContextMenuGroup=e.ContextMenuGroup;exports.ContextMenuItem=e.ContextMenuItem;exports.ContextMenuLabel=e.ContextMenuLabel;exports.ContextMenuPortal=e.ContextMenuPortal;exports.ContextMenuRadioGroup=e.ContextMenuRadioGroup;exports.ContextMenuRadioItem=e.ContextMenuRadioItem;exports.ContextMenuSeparator=e.ContextMenuSeparator;exports.ContextMenuShortcut=e.ContextMenuShortcut;exports.ContextMenuSub=e.ContextMenuSub;exports.ContextMenuSubContent=e.ContextMenuSubContent;exports.ContextMenuSubTrigger=e.ContextMenuSubTrigger;exports.ContextMenuTrigger=e.ContextMenuTrigger;exports.Dialog=e.Dialog;exports.DialogContent=e.DialogContent;exports.DialogDescription=e.DialogDescription;exports.DialogFooter=e.DialogFooter;exports.DialogHeader=e.DialogHeader;exports.DialogTitle=e.DialogTitle;exports.DialogTrigger=e.DialogTrigger;exports.DropdownMenu=e.DropdownMenu;exports.DropdownMenuCheckboxItem=e.DropdownMenuCheckboxItem;exports.DropdownMenuContent=e.DropdownMenuContent;exports.DropdownMenuGroup=e.DropdownMenuGroup;exports.DropdownMenuItem=e.DropdownMenuItem;exports.DropdownMenuLabel=e.DropdownMenuLabel;exports.DropdownMenuPortal=e.DropdownMenuPortal;exports.DropdownMenuRadioGroup=e.DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=e.DropdownMenuRadioItem;exports.DropdownMenuSeparator=e.DropdownMenuSeparator;exports.DropdownMenuShortcut=e.DropdownMenuShortcut;exports.DropdownMenuSub=e.DropdownMenuSub;exports.DropdownMenuSubContent=e.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=e.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=e.DropdownMenuTrigger;exports.HoverCard=e.HoverCard;exports.HoverCardContent=e.HoverCardContent;exports.HoverCardTrigger=e.HoverCardTrigger;exports.Input=e.Input;exports.Label=e.Label;exports.Popover=e.Popover;exports.PopoverContent=e.PopoverContent;exports.PopoverTrigger=e.PopoverTrigger;exports.ScrollArea=e.ScrollArea;exports.ScrollBar=e.ScrollBar;exports.Select=e.Select;exports.SelectContent=e.SelectContent;exports.SelectGroup=e.SelectGroup;exports.SelectItem=e.SelectItem;exports.SelectLabel=e.SelectLabel;exports.SelectSeparator=e.SelectSeparator;exports.SelectTrigger=e.SelectTrigger;exports.SelectValue=e.SelectValue;exports.Separator=e.Separator;exports.Skeleton=e.Skeleton;exports.Switch=e.Switch;exports.Tabs=e.Tabs;exports.TabsContent=e.TabsContent;exports.TabsList=e.TabsList;exports.TabsTrigger=e.TabsTrigger;exports.Textarea=e.Textarea;exports.Toaster=e.Toaster;exports.Tooltip=e.Tooltip;exports.TooltipContent=e.TooltipContent;exports.TooltipPortal=e.TooltipPortal;exports.TooltipProvider=e.TooltipProvider;exports.TooltipTrigger=e.TooltipTrigger;exports.badgeVariants=e.badgeVariants;exports.reducer=e.reducer;exports.toast=e.toast;exports.useToast=e.useToast;exports.Alert=f;exports.AlertDescription=M;exports.AlertTitle=C;exports.Menubar=h;exports.MenubarCheckboxItem=R;exports.MenubarContent=v;exports.MenubarGroup=J;exports.MenubarItem=T;exports.MenubarLabel=w;exports.MenubarMenu=B;exports.MenubarPortal=K;exports.MenubarRadioGroup=U;exports.MenubarRadioItem=y;exports.MenubarSeparator=N;exports.MenubarShortcut=I;exports.MenubarSub=Q;exports.MenubarSubContent=D;exports.MenubarSubTrigger=j;exports.MenubarTrigger=S;exports.Sheet=W;exports.SheetClose=Y;exports.SheetContent=P;exports.SheetDescription=L;exports.SheetFooter=k;exports.SheetHeader=q;exports.SheetTitle=G;exports.SheetTrigger=X;exports.Toggle=b;exports.toggleVariants=g;
|
package/dist/ui.js
CHANGED
|
@@ -2,15 +2,18 @@ import { j as o } from "./jsx-runtime-Sp0orL4X.js";
|
|
|
2
2
|
import * as n from "react";
|
|
3
3
|
import * as m from "@radix-ui/react-toggle";
|
|
4
4
|
import { cva as c } from "class-variance-authority";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { c as r } from "./button-9Duvj2dH.js";
|
|
6
|
+
import { B as ye, b as Ne } from "./button-9Duvj2dH.js";
|
|
7
|
+
import { G as we, J as Se, H as Me, I as je, _ as De, a6 as Te, a5 as Re, $ as Ie, a3 as Ae, a4 as ke, a0 as Pe, a1 as ze, a2 as Ge, ac as Le, f as He, i as Ve, h as Fe, k as Be, g as Ee, al as Oe, t as qe, ay as Je, w as Ke, x as _e, u as Qe, y as Ue, v as We, aA as Xe, az as Ye, C as Ze, aB as $e, b as ea, aG as aa, c as ta, aD as oa, aH as sa, aL as ra, aC as na, aE as ia, aF as da, aI as la, aJ as ca, aK as ma, a as pa, D as ua, m as fa, p as ga, q as xa, n as ba, o as ha, l as Ca, O as ya, a7 as Na, R as va, X as wa, Y as Sa, V as Ma, ar as ja, av as Da, aq as Ta, W as Ra, Z as Ia, as as Aa, at as ka, au as Pa, Q as za, a8 as Ga, aa as La, a9 as Ha, M as Va, L as Fa, P as Ba, s as Ea, r as Oa, U as qa, am as Ja, ad as Ka, ag as _a, an as Qa, ah as Ua, ao as Wa, ap as Xa, ae as Ya, af as Za, ab as $a, S as et, F as at, z as tt, E as ot, A as st, B as rt, j as nt, aj as it, T as dt, e as lt, N as ct, ai as mt, d as pt, ak as ut, aw as ft, ax as gt, K as xt } from "./context-menu-yLeOsx9j.js";
|
|
7
8
|
import { ChevronRightIcon as g, CheckIcon as x, DotFilledIcon as b, Cross2Icon as h } from "@radix-ui/react-icons";
|
|
8
9
|
import * as s from "@radix-ui/react-menubar";
|
|
9
10
|
import * as d from "@radix-ui/react-dialog";
|
|
11
|
+
import "@radix-ui/react-slot";
|
|
12
|
+
import "clsx";
|
|
13
|
+
import "tailwind-merge";
|
|
10
14
|
import "@radix-ui/react-switch";
|
|
11
15
|
import "@radix-ui/react-accordion";
|
|
12
16
|
import "@radix-ui/react-alert-dialog";
|
|
13
|
-
import "@radix-ui/react-slot";
|
|
14
17
|
import "@radix-ui/react-label";
|
|
15
18
|
import "@radix-ui/react-scroll-area";
|
|
16
19
|
import "@radix-ui/react-tabs";
|
|
@@ -23,8 +26,6 @@ import "@radix-ui/react-separator";
|
|
|
23
26
|
import "@radix-ui/react-toast";
|
|
24
27
|
import "cmdk";
|
|
25
28
|
import "@radix-ui/react-context-menu";
|
|
26
|
-
import "clsx";
|
|
27
|
-
import "tailwind-merge";
|
|
28
29
|
const C = c(
|
|
29
30
|
"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
|
|
30
31
|
{
|
|
@@ -241,84 +242,84 @@ const F = ({ className: e, ...a }) => /* @__PURE__ */ o.jsx("div", { className:
|
|
|
241
242
|
F.displayName = "SheetFooter";
|
|
242
243
|
const B = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(d.Title, { ref: t, className: r("text-lg font-semibold text-foreground", e), ...a }));
|
|
243
244
|
B.displayName = d.Title.displayName;
|
|
244
|
-
const
|
|
245
|
-
|
|
245
|
+
const E = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(d.Description, { ref: t, className: r("text-sm text-muted-foreground", e), ...a }));
|
|
246
|
+
E.displayName = d.Description.displayName;
|
|
246
247
|
export {
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
248
|
+
we as Accordion,
|
|
249
|
+
Se as AccordionContent,
|
|
250
|
+
Me as AccordionItem,
|
|
251
|
+
je as AccordionTrigger,
|
|
251
252
|
v as Alert,
|
|
252
253
|
S as AlertDescription,
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
254
|
+
De as AlertDialog,
|
|
255
|
+
Te as AlertDialogAction,
|
|
256
|
+
Re as AlertDialogCancel,
|
|
257
|
+
Ie as AlertDialogContent,
|
|
258
|
+
Ae as AlertDialogDescription,
|
|
259
|
+
ke as AlertDialogFooter,
|
|
260
|
+
Pe as AlertDialogHeader,
|
|
261
|
+
ze as AlertDialogTitle,
|
|
262
|
+
Ge as AlertDialogTrigger,
|
|
262
263
|
w as AlertTitle,
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
264
|
+
Le as Badge,
|
|
265
|
+
ye as Button,
|
|
266
|
+
He as Card,
|
|
267
|
+
Ve as CardContent,
|
|
268
|
+
Fe as CardDescription,
|
|
269
|
+
Be as CardFooter,
|
|
270
|
+
Ee as CardHeader,
|
|
271
|
+
Oe as CardTitle,
|
|
272
|
+
qe as Command,
|
|
273
|
+
Je as CommandDialog,
|
|
274
|
+
Ke as CommandEmpty,
|
|
275
|
+
_e as CommandGroup,
|
|
276
|
+
Qe as CommandInput,
|
|
277
|
+
Ue as CommandItem,
|
|
278
|
+
We as CommandList,
|
|
279
|
+
Xe as CommandSeparator,
|
|
280
|
+
Ye as CommandShortcut,
|
|
281
|
+
Ze as ContextMenu,
|
|
282
|
+
$e as ContextMenuCheckboxItem,
|
|
283
|
+
ea as ContextMenuContent,
|
|
284
|
+
aa as ContextMenuGroup,
|
|
285
|
+
ta as ContextMenuItem,
|
|
286
|
+
oa as ContextMenuLabel,
|
|
287
|
+
sa as ContextMenuPortal,
|
|
288
|
+
ra as ContextMenuRadioGroup,
|
|
289
|
+
na as ContextMenuRadioItem,
|
|
290
|
+
ia as ContextMenuSeparator,
|
|
291
|
+
da as ContextMenuShortcut,
|
|
292
|
+
la as ContextMenuSub,
|
|
293
|
+
ca as ContextMenuSubContent,
|
|
294
|
+
ma as ContextMenuSubTrigger,
|
|
295
|
+
pa as ContextMenuTrigger,
|
|
296
|
+
ua as Dialog,
|
|
297
|
+
fa as DialogContent,
|
|
298
|
+
ga as DialogDescription,
|
|
299
|
+
xa as DialogFooter,
|
|
300
|
+
ba as DialogHeader,
|
|
301
|
+
ha as DialogTitle,
|
|
302
|
+
Ca as DialogTrigger,
|
|
303
|
+
ya as DropdownMenu,
|
|
304
|
+
Na as DropdownMenuCheckboxItem,
|
|
305
|
+
va as DropdownMenuContent,
|
|
306
|
+
wa as DropdownMenuGroup,
|
|
307
|
+
Sa as DropdownMenuItem,
|
|
308
|
+
Ma as DropdownMenuLabel,
|
|
309
|
+
ja as DropdownMenuPortal,
|
|
310
|
+
Da as DropdownMenuRadioGroup,
|
|
311
|
+
Ta as DropdownMenuRadioItem,
|
|
312
|
+
Ra as DropdownMenuSeparator,
|
|
313
|
+
Ia as DropdownMenuShortcut,
|
|
314
|
+
Aa as DropdownMenuSub,
|
|
315
|
+
ka as DropdownMenuSubContent,
|
|
316
|
+
Pa as DropdownMenuSubTrigger,
|
|
317
|
+
za as DropdownMenuTrigger,
|
|
318
|
+
Ga as HoverCard,
|
|
319
|
+
La as HoverCardContent,
|
|
320
|
+
Ha as HoverCardTrigger,
|
|
321
|
+
Va as Input,
|
|
322
|
+
Fa as Label,
|
|
322
323
|
M as Menubar,
|
|
323
324
|
A as MenubarCheckboxItem,
|
|
324
325
|
R as MenubarContent,
|
|
@@ -335,46 +336,46 @@ export {
|
|
|
335
336
|
T as MenubarSubContent,
|
|
336
337
|
D as MenubarSubTrigger,
|
|
337
338
|
j as MenubarTrigger,
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
339
|
+
Ba as Popover,
|
|
340
|
+
Ea as PopoverContent,
|
|
341
|
+
Oa as PopoverTrigger,
|
|
342
|
+
qa as ScrollArea,
|
|
343
|
+
Ja as ScrollBar,
|
|
344
|
+
Ka as Select,
|
|
345
|
+
_a as SelectContent,
|
|
346
|
+
Qa as SelectGroup,
|
|
347
|
+
Ua as SelectItem,
|
|
348
|
+
Wa as SelectLabel,
|
|
349
|
+
Xa as SelectSeparator,
|
|
350
|
+
Ya as SelectTrigger,
|
|
351
|
+
Za as SelectValue,
|
|
352
|
+
$a as Separator,
|
|
352
353
|
ge as Sheet,
|
|
353
354
|
be as SheetClose,
|
|
354
355
|
H as SheetContent,
|
|
355
|
-
|
|
356
|
+
E as SheetDescription,
|
|
356
357
|
F as SheetFooter,
|
|
357
358
|
V as SheetHeader,
|
|
358
359
|
B as SheetTitle,
|
|
359
360
|
xe as SheetTrigger,
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
361
|
+
et as Skeleton,
|
|
362
|
+
at as Switch,
|
|
363
|
+
tt as Tabs,
|
|
364
|
+
ot as TabsContent,
|
|
365
|
+
st as TabsList,
|
|
366
|
+
rt as TabsTrigger,
|
|
367
|
+
nt as Textarea,
|
|
368
|
+
it as Toaster,
|
|
368
369
|
y as Toggle,
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
370
|
+
dt as Tooltip,
|
|
371
|
+
lt as TooltipContent,
|
|
372
|
+
ct as TooltipPortal,
|
|
373
|
+
mt as TooltipProvider,
|
|
374
|
+
pt as TooltipTrigger,
|
|
375
|
+
ut as badgeVariants,
|
|
376
|
+
Ne as buttonVariants,
|
|
377
|
+
ft as reducer,
|
|
378
|
+
gt as toast,
|
|
378
379
|
C as toggleVariants,
|
|
379
|
-
|
|
380
|
+
xt as useToast
|
|
380
381
|
};
|