@chaibuilder/sdk 1.0.11 → 1.0.12
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/lib.cjs +1 -1
- package/dist/lib.d.ts +65 -0
- package/dist/lib.js +117 -57
- package/dist/ui.cjs +1 -1
- package/dist/ui.d.ts +0 -65
- package/dist/ui.js +208 -267
- package/package.json +1 -1
package/dist/lib.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./utils-qK_SjzzV.cjs"),f=require("./functions-uw7QP2kT.cjs"),T=require("./html-to-json-P6GpbcQX.cjs"),n=require("lodash"),b=require("./Class-_uCzl5v1.cjs"),o=require("./functions-sCuB7nvZ.cjs");require("clsx");require("tailwind-merge");require("himalaya");require("./MODIFIERS-Fx6WAZcw.cjs");require("@mhsdesign/jit-browser-tailwindcss");require("@bobthered/tailwindcss-palette-generator");require("@tailwindcss/forms");require("@tailwindcss/typography");require("@tailwindcss/aspect-ratio");require("@tailwindcss/line-clamp");const g={25:"1/4","33.33":"1/3",50:"1/2","66.67":"2/3",75:"3/4",20:"1/5",40:"2/5",60:"3/5",80:"4/5","16.67":"1/6","83.33":"5/6","8.33":"1/12","41.67":"5/12","58.33":"7/12","91.67":"11/12",100:"full"},y={0:"0",1:"px",2:"0.5",4:"1",6:"1.5",8:"2",10:"2.5",12:"3",14:"3.5",16:"4",20:"5",24:"6",28:"7",32:"8",36:"9",40:"10",44:"11",48:"12",56:"14",64:"16",80:"20",96:"24",112:"28",128:"32",144:"36",160:"40",176:"44",192:"48",208:"52",224:"56",240:"60",256:"64",288:"72",320:"80",384:"96"},k=16,F=4;function w(a){return a.indexOf("rem")!==-1&&(a=`${parseFloat(a.replace("rem",""))*k}px`),a}const q=a=>{const t=a.match(/\[.*\]/);if(t===null)return a;const l=b.constructClassObject(a);if(l===null)return a;const{property:h}=l;let e=n.first(t).replace(/\]/i,"").replace(/\[/i,"");const s=a.replace(/\[.*\]/i,"");e=w(e);let r=a;switch(h){case"top":case"right":case"left":case"bottom":case"inset":case"insetX":case"insetY":case"gap":case"gapX":case"gapY":case"padding":case"paddingX":case"paddingY":case"paddingTop":case"paddingRight":case"paddingBottom":case"paddingLeft":case"margin":case"marginX":case"marginY":case"marginTop":case"marginRight":case"marginBottom":case"marginLeft":case"flexBasis":case"width":case"height":case"maxHeight":case"textIndent":case"spaceX":case"spaceY":if(e.indexOf("px")!==-1){const c=n.map(n.keys(y),i=>`${i}px`);if(n.includes(c,e)){const i=n.parseInt(e.replace("px",""),10);i===1?r=`${s}px`:r=s+i/F}}if(e.indexOf("%")!==-1){const c=n.map(n.keys(g),i=>`${i}%`);if(n.includes(c,e)){const i=parseFloat(e.replace("%",""));r=s+n.get(g,i)}}e.indexOf("vw")!==-1&&parseFloat(e.replace("vw",""))===100&&(r=`${s}screen`),e.indexOf("vh")!==-1&&parseFloat(e.replace("vh",""))===100&&(r=`${s}screen`);break;case"minWidth":e.indexOf("%")!==-1&&parseFloat(e.replace("%",""))===100&&(r=`${s}full`),e==="0px"&&(r="min-w-0");break;case"maxWidth":e==="0px"&&(r="max-w-0");const p={"320px":"xs","384px":"sm","448px":"md","512px":"lg","576px":"xl","672px":"2xl","768px":"3xl","896px":"4xl","1024px":"5xl","1152px":"6xl","1280px":"7xl","100%":"full","65ch":"prose","640px":"screen-sm","1536px":"screen-2xl"};n.includes(n.keys(p),e)&&(r=`max-w-${p[e]}`);break;case"minHeight":e.indexOf("%")!==-1&&parseFloat(e.replace("%",""))===100&&(r=`${s}full`),e==="0px"&&(r="min-h-0"),e==="100vh"&&(r="min-h-screen");break;case"fontSize":const d={"12px":"xs","14px":"sm","16px":"base","18px":"lg","20px":"xl","24px":"2xl","30px":"3xl","36px":"4xl","48px":"5xl","60px":"6xl","72px":"7xl","96px":"8xl","128px":"9xl"};n.includes(n.keys(d),e)&&(r=s+d[e]);break;case"lineHeight":const u={"12px":"3","16px":"4","20px":"5","24px":"6","28px":"7","32px":"8","36px":"9","40px":"10",1:"none","1.25":"tight","1.375":"snug","1.5":"normal","1.625":"relaxed",2:"loose"};n.includes(n.keys(u),e)&&(r=s+u[e]);break;case"zIndex":r=["0","10","20","30","40","50"].indexOf(e)!==-1?`${s}${e}`:a;break;case"opacity":const m=["0","5","10","20","25","30","40","50","60","70","75","80","90","95","100"],x=parseFloat(e)*100;n.includes(m,x.toString())&&(r=`opacity-${x}`);break}return r};function S(){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 L=a=>({...a}),V=a=>({...a});exports.cn=v.cn;exports.generateUUID=f.generateUUID;exports.getBreakpointValue=f.getBreakpointValue;exports.getBlocksFromHTML=T.getBlocksFromHTML;exports.addPrefixToClasses=o.addPrefixToClasses;exports.getBlocksTailwindCSS=o.getBlocksTailwindCSS;exports.getBrandingClasses=o.getBrandingClasses;exports.getStylesForPageData=o.getStylesForPageData;exports.chaiBuilderTheme=S;exports.convertArbitraryToTailwindClass=q;exports.selectable=L;exports.styling=V;
|
package/dist/lib.d.ts
CHANGED
|
@@ -17,6 +17,71 @@ declare type ChaiBlock = {
|
|
|
17
17
|
readonly _type: string;
|
|
18
18
|
} & Record<string, any>;
|
|
19
19
|
|
|
20
|
+
export declare function chaiBuilderTheme(): {
|
|
21
|
+
colors: {
|
|
22
|
+
border: string;
|
|
23
|
+
input: string;
|
|
24
|
+
ring: string;
|
|
25
|
+
background: string;
|
|
26
|
+
foreground: string;
|
|
27
|
+
primary: {
|
|
28
|
+
DEFAULT: string;
|
|
29
|
+
foreground: string;
|
|
30
|
+
};
|
|
31
|
+
secondary: {
|
|
32
|
+
DEFAULT: string;
|
|
33
|
+
foreground: string;
|
|
34
|
+
};
|
|
35
|
+
destructive: {
|
|
36
|
+
DEFAULT: string;
|
|
37
|
+
foreground: string;
|
|
38
|
+
};
|
|
39
|
+
muted: {
|
|
40
|
+
DEFAULT: string;
|
|
41
|
+
foreground: string;
|
|
42
|
+
};
|
|
43
|
+
accent: {
|
|
44
|
+
DEFAULT: string;
|
|
45
|
+
foreground: string;
|
|
46
|
+
};
|
|
47
|
+
popover: {
|
|
48
|
+
DEFAULT: string;
|
|
49
|
+
foreground: string;
|
|
50
|
+
};
|
|
51
|
+
card: {
|
|
52
|
+
DEFAULT: string;
|
|
53
|
+
foreground: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
borderRadius: {
|
|
57
|
+
lg: string;
|
|
58
|
+
md: string;
|
|
59
|
+
sm: string;
|
|
60
|
+
};
|
|
61
|
+
keyframes: {
|
|
62
|
+
"accordion-down": {
|
|
63
|
+
from: {
|
|
64
|
+
height: string;
|
|
65
|
+
};
|
|
66
|
+
to: {
|
|
67
|
+
height: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
"accordion-up": {
|
|
71
|
+
from: {
|
|
72
|
+
height: string;
|
|
73
|
+
};
|
|
74
|
+
to: {
|
|
75
|
+
height: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
animation: {
|
|
80
|
+
"accordion-down": string;
|
|
81
|
+
"accordion-up": string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
|
|
20
85
|
export declare type ChaiPageData = {
|
|
21
86
|
page: {
|
|
22
87
|
blocks: ChaiBlock[];
|
package/dist/lib.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { g as
|
|
3
|
-
import { g as
|
|
4
|
-
import { first as
|
|
5
|
-
import { c as
|
|
6
|
-
import { a as
|
|
1
|
+
import { c as Y } from "./utils-dze1SGvB.js";
|
|
2
|
+
import { g as K, a as q } from "./functions-pcUZhFJM.js";
|
|
3
|
+
import { g as J } from "./html-to-json-pdHQfRkN.js";
|
|
4
|
+
import { first as v, includes as c, keys as t, map as f, parseInt as T, get as b } from "lodash";
|
|
5
|
+
import { c as F } from "./Class-l7qYbuoN.js";
|
|
6
|
+
import { a as Z, b as N, g as ee, c as re } from "./functions-nNTuSTsR.js";
|
|
7
7
|
import "clsx";
|
|
8
8
|
import "tailwind-merge";
|
|
9
9
|
import "himalaya";
|
|
@@ -14,7 +14,7 @@ import "@tailwindcss/forms";
|
|
|
14
14
|
import "@tailwindcss/typography";
|
|
15
15
|
import "@tailwindcss/aspect-ratio";
|
|
16
16
|
import "@tailwindcss/line-clamp";
|
|
17
|
-
const
|
|
17
|
+
const g = {
|
|
18
18
|
25: "1/4",
|
|
19
19
|
"33.33": "1/3",
|
|
20
20
|
50: "1/2",
|
|
@@ -67,23 +67,23 @@ const d = {
|
|
|
67
67
|
288: "72",
|
|
68
68
|
320: "80",
|
|
69
69
|
384: "96"
|
|
70
|
-
}, w = 16,
|
|
71
|
-
function
|
|
72
|
-
return
|
|
70
|
+
}, w = 16, y = 4;
|
|
71
|
+
function L(a) {
|
|
72
|
+
return a.indexOf("rem") !== -1 && (a = `${parseFloat(a.replace("rem", "")) * w}px`), a;
|
|
73
73
|
}
|
|
74
|
-
const
|
|
75
|
-
const
|
|
76
|
-
if (
|
|
77
|
-
return
|
|
78
|
-
const
|
|
79
|
-
if (
|
|
80
|
-
return
|
|
81
|
-
const { property:
|
|
82
|
-
let e =
|
|
83
|
-
const
|
|
84
|
-
e =
|
|
85
|
-
let
|
|
86
|
-
switch (
|
|
74
|
+
const X = (a) => {
|
|
75
|
+
const i = a.match(/\[.*\]/);
|
|
76
|
+
if (i === null)
|
|
77
|
+
return a;
|
|
78
|
+
const p = F(a);
|
|
79
|
+
if (p === null)
|
|
80
|
+
return a;
|
|
81
|
+
const { property: m } = p;
|
|
82
|
+
let e = v(i).replace(/\]/i, "").replace(/\[/i, "");
|
|
83
|
+
const o = a.replace(/\[.*\]/i, "");
|
|
84
|
+
e = L(e);
|
|
85
|
+
let r = a;
|
|
86
|
+
switch (m) {
|
|
87
87
|
case "top":
|
|
88
88
|
case "right":
|
|
89
89
|
case "left":
|
|
@@ -116,27 +116,27 @@ const z = (s) => {
|
|
|
116
116
|
case "spaceX":
|
|
117
117
|
case "spaceY":
|
|
118
118
|
if (e.indexOf("px") !== -1) {
|
|
119
|
-
const
|
|
120
|
-
if (c(
|
|
121
|
-
const
|
|
122
|
-
|
|
119
|
+
const s = f(t(k), (n) => `${n}px`);
|
|
120
|
+
if (c(s, e)) {
|
|
121
|
+
const n = T(e.replace("px", ""), 10);
|
|
122
|
+
n === 1 ? r = `${o}px` : r = o + n / y;
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
if (e.indexOf("%") !== -1) {
|
|
126
|
-
const
|
|
127
|
-
if (c(
|
|
128
|
-
const
|
|
129
|
-
|
|
126
|
+
const s = f(t(g), (n) => `${n}%`);
|
|
127
|
+
if (c(s, e)) {
|
|
128
|
+
const n = parseFloat(e.replace("%", ""));
|
|
129
|
+
r = o + b(g, n);
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
e.indexOf("vw") !== -1 && parseFloat(e.replace("vw", "")) === 100 && (
|
|
132
|
+
e.indexOf("vw") !== -1 && parseFloat(e.replace("vw", "")) === 100 && (r = `${o}screen`), e.indexOf("vh") !== -1 && parseFloat(e.replace("vh", "")) === 100 && (r = `${o}screen`);
|
|
133
133
|
break;
|
|
134
134
|
case "minWidth":
|
|
135
|
-
e.indexOf("%") !== -1 && parseFloat(e.replace("%", "")) === 100 && (
|
|
135
|
+
e.indexOf("%") !== -1 && parseFloat(e.replace("%", "")) === 100 && (r = `${o}full`), e === "0px" && (r = "min-w-0");
|
|
136
136
|
break;
|
|
137
137
|
case "maxWidth":
|
|
138
|
-
e === "0px" && (
|
|
139
|
-
const
|
|
138
|
+
e === "0px" && (r = "max-w-0");
|
|
139
|
+
const l = {
|
|
140
140
|
"320px": "xs",
|
|
141
141
|
"384px": "sm",
|
|
142
142
|
"448px": "md",
|
|
@@ -153,13 +153,13 @@ const z = (s) => {
|
|
|
153
153
|
"640px": "screen-sm",
|
|
154
154
|
"1536px": "screen-2xl"
|
|
155
155
|
};
|
|
156
|
-
c(
|
|
156
|
+
c(t(l), e) && (r = `max-w-${l[e]}`);
|
|
157
157
|
break;
|
|
158
158
|
case "minHeight":
|
|
159
|
-
e.indexOf("%") !== -1 && parseFloat(e.replace("%", "")) === 100 && (
|
|
159
|
+
e.indexOf("%") !== -1 && parseFloat(e.replace("%", "")) === 100 && (r = `${o}full`), e === "0px" && (r = "min-h-0"), e === "100vh" && (r = "min-h-screen");
|
|
160
160
|
break;
|
|
161
161
|
case "fontSize":
|
|
162
|
-
const
|
|
162
|
+
const x = {
|
|
163
163
|
"12px": "xs",
|
|
164
164
|
"14px": "sm",
|
|
165
165
|
"16px": "base",
|
|
@@ -174,10 +174,10 @@ const z = (s) => {
|
|
|
174
174
|
"96px": "8xl",
|
|
175
175
|
"128px": "9xl"
|
|
176
176
|
};
|
|
177
|
-
c(
|
|
177
|
+
c(t(x), e) && (r = o + x[e]);
|
|
178
178
|
break;
|
|
179
179
|
case "lineHeight":
|
|
180
|
-
const
|
|
180
|
+
const d = {
|
|
181
181
|
"12px": "3",
|
|
182
182
|
"16px": "4",
|
|
183
183
|
"20px": "5",
|
|
@@ -193,10 +193,10 @@ const z = (s) => {
|
|
|
193
193
|
"1.625": "relaxed",
|
|
194
194
|
2: "loose"
|
|
195
195
|
};
|
|
196
|
-
c(
|
|
196
|
+
c(t(d), e) && (r = o + d[e]);
|
|
197
197
|
break;
|
|
198
198
|
case "zIndex":
|
|
199
|
-
|
|
199
|
+
r = ["0", "10", "20", "30", "40", "50"].indexOf(e) !== -1 ? `${o}${e}` : a;
|
|
200
200
|
break;
|
|
201
201
|
case "opacity":
|
|
202
202
|
const h = [
|
|
@@ -215,22 +215,82 @@ const z = (s) => {
|
|
|
215
215
|
"90",
|
|
216
216
|
"95",
|
|
217
217
|
"100"
|
|
218
|
-
],
|
|
219
|
-
c(h,
|
|
218
|
+
], u = parseFloat(e) * 100;
|
|
219
|
+
c(h, u.toString()) && (r = `opacity-${u}`);
|
|
220
220
|
break;
|
|
221
221
|
}
|
|
222
|
-
return
|
|
223
|
-
}
|
|
222
|
+
return r;
|
|
223
|
+
};
|
|
224
|
+
function R() {
|
|
225
|
+
return {
|
|
226
|
+
colors: {
|
|
227
|
+
border: "hsl(var(--border))",
|
|
228
|
+
input: "hsl(var(--input))",
|
|
229
|
+
ring: "hsl(var(--ring))",
|
|
230
|
+
background: "hsl(var(--background))",
|
|
231
|
+
foreground: "hsl(var(--foreground))",
|
|
232
|
+
primary: {
|
|
233
|
+
DEFAULT: "hsl(var(--primary))",
|
|
234
|
+
foreground: "hsl(var(--primary-foreground))"
|
|
235
|
+
},
|
|
236
|
+
secondary: {
|
|
237
|
+
DEFAULT: "hsl(var(--secondary))",
|
|
238
|
+
foreground: "hsl(var(--secondary-foreground))"
|
|
239
|
+
},
|
|
240
|
+
destructive: {
|
|
241
|
+
DEFAULT: "hsl(var(--destructive))",
|
|
242
|
+
foreground: "hsl(var(--destructive-foreground))"
|
|
243
|
+
},
|
|
244
|
+
muted: {
|
|
245
|
+
DEFAULT: "hsl(var(--muted))",
|
|
246
|
+
foreground: "hsl(var(--muted-foreground))"
|
|
247
|
+
},
|
|
248
|
+
accent: {
|
|
249
|
+
DEFAULT: "hsl(var(--accent))",
|
|
250
|
+
foreground: "hsl(var(--accent-foreground))"
|
|
251
|
+
},
|
|
252
|
+
popover: {
|
|
253
|
+
DEFAULT: "hsl(var(--popover))",
|
|
254
|
+
foreground: "hsl(var(--popover-foreground))"
|
|
255
|
+
},
|
|
256
|
+
card: {
|
|
257
|
+
DEFAULT: "hsl(var(--card))",
|
|
258
|
+
foreground: "hsl(var(--card-foreground))"
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
borderRadius: {
|
|
262
|
+
lg: "var(--radius)",
|
|
263
|
+
md: "calc(var(--radius) - 2px)",
|
|
264
|
+
sm: "calc(var(--radius) - 4px)"
|
|
265
|
+
},
|
|
266
|
+
keyframes: {
|
|
267
|
+
"accordion-down": {
|
|
268
|
+
from: { height: "0" },
|
|
269
|
+
to: { height: "var(--radix-accordion-content-height)" }
|
|
270
|
+
},
|
|
271
|
+
"accordion-up": {
|
|
272
|
+
from: { height: "var(--radix-accordion-content-height)" },
|
|
273
|
+
to: { height: "0" }
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
animation: {
|
|
277
|
+
"accordion-down": "accordion-down 0.2s ease-out",
|
|
278
|
+
"accordion-up": "accordion-up 0.2s ease-out"
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
const z = (a) => ({ ...a }), H = (a) => ({ ...a });
|
|
224
283
|
export {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
N as
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
284
|
+
Z as addPrefixToClasses,
|
|
285
|
+
R as chaiBuilderTheme,
|
|
286
|
+
Y as cn,
|
|
287
|
+
X as convertArbitraryToTailwindClass,
|
|
288
|
+
K as generateUUID,
|
|
289
|
+
J as getBlocksFromHTML,
|
|
290
|
+
N as getBlocksTailwindCSS,
|
|
291
|
+
ee as getBrandingClasses,
|
|
292
|
+
q as getBreakpointValue,
|
|
293
|
+
re as getStylesForPageData,
|
|
294
|
+
z as selectable,
|
|
295
|
+
H as styling
|
|
236
296
|
};
|
package/dist/ui.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("./toggle-ehNIPmme.cjs"),a=require("./dropdown-menu-sMXR59cB.cjs"),c=require("./skeleton-JHP9zwL2.cjs"),h=require("./accordion-ynvFtV_p.cjs"),m=require("./textarea-1kZEh7ki.cjs"),r=require("./jsx-runtime-JYMCiFoE.cjs"),y=require("class-variance-authority"),s=require("./utils-qK_SjzzV.cjs"),g=require("./alert-dialog-Mv0-wAvS.cjs"),f=require("./dialog-S_QbL1iq.cjs"),p=require("./command-ThdTuUxt.cjs"),K=require("./label-tFm8HZdb.cjs"),j=require("./scroll-area-FiHvy-TZ.cjs"),C=require("./tabs-iWeaaVrg.cjs"),D=require("./popover-fKjgcRUx.cjs"),Q=require("react"),M=require("@radix-ui/react-icons"),W=require("@radix-ui/react-menubar"),x=require("./select-7bjg-rr9.cjs"),X=require("@radix-ui/react-dialog"),Y=require("./separator-3Civ-6hb.cjs"),d=require("./context-menu-IgLbIuth.cjs"),S=require("./link-ece8dZGH.cjs");require("@radix-ui/react-toggle");require("@radix-ui/react-switch");require("@radix-ui/react-hover-card");require("@radix-ui/react-dropdown-menu");require("jotai");require("lodash");require("@radix-ui/react-slot");require("@radix-ui/react-tooltip");require("@radix-ui/react-toast");require("@radix-ui/react-accordion");require("clsx");require("tailwind-merge");require("@radix-ui/react-alert-dialog");require("cmdk");require("@radix-ui/react-label");require("@radix-ui/react-scroll-area");require("@radix-ui/react-tabs");require("@radix-ui/react-popover");require("@radix-ui/react-select");require("@radix-ui/react-separator");require("@radix-ui/react-context-menu");require("react-icons-picker");require("react-dom");require("./ImagesPanel-6us7hiLN.cjs");require("react-quill");require("react-i18next");function v(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,i.get?i:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const l=v(Q),n=v(W),u=v(X),w=y.cva("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}}),Z=({className:e,variant:t,...o})=>r.jsxRuntimeExports.jsx("div",{className:s.cn(w({variant:t}),e),...o}),$=n.Menu,ee=n.Group,te=n.Portal,oe=n.Sub,re=n.RadioGroup,R=l.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(n.Root,{ref:o,className:s.cn("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm",e),...t}));R.displayName=n.Root.displayName;const N=l.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(n.Trigger,{ref:o,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",e),...t}));N.displayName=n.Trigger.displayName;const q=l.forwardRef(({className:e,inset:t,children:o,...i},b)=>r.jsxRuntimeExports.jsxs(n.SubTrigger,{ref:b,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",t&&"pl-8",e),...i,children:[o,r.jsxRuntimeExports.jsx(M.ChevronRightIcon,{className:"ml-auto h-4 w-4"})]}));q.displayName=n.SubTrigger.displayName;const I=l.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(n.SubContent,{ref:o,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",e),...t}));I.displayName=n.SubContent.displayName;const A=l.forwardRef(({className:e,align:t="start",alignOffset:o=-4,sideOffset:i=8,...b},J)=>r.jsxRuntimeExports.jsx(n.Portal,{children:r.jsxRuntimeExports.jsx(n.Content,{ref:J,align:t,alignOffset:o,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",e),...b})}));A.displayName=n.Content.displayName;const E=l.forwardRef(({className:e,inset:t,...o},i)=>r.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",t&&"pl-8",e),...o}));E.displayName=n.Item.displayName;const P=l.forwardRef(({className:e,children:t,checked:o,...i},b)=>r.jsxRuntimeExports.jsxs(n.CheckboxItem,{ref:b,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",e),checked:o,...i,children:[r.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsxRuntimeExports.jsx(n.ItemIndicator,{children:r.jsxRuntimeExports.jsx(M.CheckIcon,{className:"h-4 w-4"})})}),t]}));P.displayName=n.CheckboxItem.displayName;const k=l.forwardRef(({className:e,children:t,...o},i)=>r.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",e),...o,children:[r.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsxRuntimeExports.jsx(n.ItemIndicator,{children:r.jsxRuntimeExports.jsx(M.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));k.displayName=n.RadioItem.displayName;const F=l.forwardRef(({className:e,inset:t,...o},i)=>r.jsxRuntimeExports.jsx(n.Label,{ref:i,className:s.cn("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));F.displayName=n.Label.displayName;const L=l.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(n.Separator,{ref:o,className:s.cn("-mx-1 my-1 h-px bg-muted",e),...t}));L.displayName=n.Separator.displayName;const G=({className:e,...t})=>r.jsxRuntimeExports.jsx("span",{className:s.cn("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});G.displayname="MenubarShortcut";const ne=u.Root,ae=u.Trigger,se=u.Close,H=({className:e,...t})=>r.jsxRuntimeExports.jsx(u.Portal,{className:s.cn(e),...t});H.displayName=u.Portal.displayName;const V=l.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(u.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",e),...t,ref:o}));V.displayName=u.Overlay.displayName;const ie=y.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"}}),z=l.forwardRef(({side:e="right",className:t,children:o,...i},b)=>r.jsxRuntimeExports.jsxs(H,{children:[r.jsxRuntimeExports.jsx(V,{}),r.jsxRuntimeExports.jsxs(u.Content,{ref:b,className:s.cn(ie({side:e}),t),...i,children:[o,r.jsxRuntimeExports.jsxs(u.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:[r.jsxRuntimeExports.jsx(M.Cross2Icon,{className:"h-4 w-4"}),r.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));z.displayName=u.Content.displayName;const O=({className:e,...t})=>r.jsxRuntimeExports.jsx("div",{className:s.cn("flex flex-col space-y-2 text-center sm:text-left",e),...t});O.displayName="SheetHeader";const B=({className:e,...t})=>r.jsxRuntimeExports.jsx("div",{className:s.cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});B.displayName="SheetFooter";const U=l.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(u.Title,{ref:o,className:s.cn("text-lg font-semibold text-foreground",e),...t}));U.displayName=u.Title.displayName;const _=l.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(u.Description,{ref:o,className:s.cn("text-sm text-muted-foreground",e),...t}));_.displayName=u.Description.displayName;function de(){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"}}}exports.Toggle=T.Toggle;exports.toggleVariants=T.toggleVariants;exports.DropdownMenu=a.DropdownMenu;exports.DropdownMenuCheckboxItem=a.DropdownMenuCheckboxItem;exports.DropdownMenuContent=a.DropdownMenuContent;exports.DropdownMenuGroup=a.DropdownMenuGroup;exports.DropdownMenuItem=a.DropdownMenuItem;exports.DropdownMenuLabel=a.DropdownMenuLabel;exports.DropdownMenuPortal=a.DropdownMenuPortal;exports.DropdownMenuRadioGroup=a.DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=a.DropdownMenuRadioItem;exports.DropdownMenuSeparator=a.DropdownMenuSeparator;exports.DropdownMenuShortcut=a.DropdownMenuShortcut;exports.DropdownMenuSub=a.DropdownMenuSub;exports.DropdownMenuSubContent=a.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=a.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=a.DropdownMenuTrigger;exports.HoverCard=a.HoverCard;exports.HoverCardContent=a.HoverCardContent;exports.HoverCardTrigger=a.HoverCardTrigger;exports.Switch=a.Switch;exports.Button=c.Button;exports.Skeleton=c.Skeleton;exports.Toaster=c.Toaster;exports.Tooltip=c.Tooltip;exports.TooltipContent=c.TooltipContent;exports.TooltipPortal=c.TooltipPortal;exports.TooltipProvider=c.TooltipProvider;exports.TooltipTrigger=c.TooltipTrigger;exports.buttonVariants=c.buttonVariants;exports.reducer=c.reducer;exports.toast=c.toast;exports.useToast=c.useToast;exports.Accordion=h.Accordion;exports.AccordionContent=h.AccordionContent;exports.AccordionItem=h.AccordionItem;exports.AccordionTrigger=h.AccordionTrigger;exports.Alert=m.Alert;exports.AlertDescription=m.AlertDescription;exports.AlertTitle=m.AlertTitle;exports.Card=m.Card;exports.CardContent=m.CardContent;exports.CardDescription=m.CardDescription;exports.CardFooter=m.CardFooter;exports.CardHeader=m.CardHeader;exports.CardTitle=m.CardTitle;exports.Textarea=m.Textarea;exports.AlertDialog=g.AlertDialog;exports.AlertDialogAction=g.AlertDialogAction;exports.AlertDialogCancel=g.AlertDialogCancel;exports.AlertDialogContent=g.AlertDialogContent;exports.AlertDialogDescription=g.AlertDialogDescription;exports.AlertDialogFooter=g.AlertDialogFooter;exports.AlertDialogHeader=g.AlertDialogHeader;exports.AlertDialogTitle=g.AlertDialogTitle;exports.AlertDialogTrigger=g.AlertDialogTrigger;exports.Dialog=f.Dialog;exports.DialogContent=f.DialogContent;exports.DialogDescription=f.DialogDescription;exports.DialogFooter=f.DialogFooter;exports.DialogHeader=f.DialogHeader;exports.DialogTitle=f.DialogTitle;exports.DialogTrigger=f.DialogTrigger;exports.Command=p.Command;exports.CommandDialog=p.CommandDialog;exports.CommandEmpty=p.CommandEmpty;exports.CommandGroup=p.CommandGroup;exports.CommandInput=p.CommandInput;exports.CommandItem=p.CommandItem;exports.CommandList=p.CommandList;exports.CommandSeparator=p.CommandSeparator;exports.CommandShortcut=p.CommandShortcut;exports.Input=p.Input;exports.Label=K.Label;exports.ScrollArea=j.ScrollArea;exports.ScrollBar=j.ScrollBar;exports.Tabs=C.Tabs;exports.TabsContent=C.TabsContent;exports.TabsList=C.TabsList;exports.TabsTrigger=C.TabsTrigger;exports.Popover=D.Popover;exports.PopoverContent=D.PopoverContent;exports.PopoverTrigger=D.PopoverTrigger;exports.Select=x.Select;exports.SelectContent=x.SelectContent;exports.SelectGroup=x.SelectGroup;exports.SelectItem=x.SelectItem;exports.SelectLabel=x.SelectLabel;exports.SelectSeparator=x.SelectSeparator;exports.SelectTrigger=x.SelectTrigger;exports.SelectValue=x.SelectValue;exports.Separator=Y.Separator;exports.ContextMenu=d.ContextMenu;exports.ContextMenuCheckboxItem=d.ContextMenuCheckboxItem;exports.ContextMenuContent=d.ContextMenuContent;exports.ContextMenuGroup=d.ContextMenuGroup;exports.ContextMenuItem=d.ContextMenuItem;exports.ContextMenuLabel=d.ContextMenuLabel;exports.ContextMenuPortal=d.ContextMenuPortal;exports.ContextMenuRadioGroup=d.ContextMenuRadioGroup;exports.ContextMenuRadioItem=d.ContextMenuRadioItem;exports.ContextMenuSeparator=d.ContextMenuSeparator;exports.ContextMenuShortcut=d.ContextMenuShortcut;exports.ContextMenuSub=d.ContextMenuSub;exports.ContextMenuSubContent=d.ContextMenuSubContent;exports.ContextMenuSubTrigger=d.ContextMenuSubTrigger;exports.ContextMenuTrigger=d.ContextMenuTrigger;exports.IconPickerField=S.IconPickerField;exports.ImagePickerField=S.ImagePickerField;exports.LinkField=S.LinkField;exports.RTEField=S.RichTextEditorField;exports.Badge=Z;exports.Menubar=R;exports.MenubarCheckboxItem=P;exports.MenubarContent=A;exports.MenubarGroup=ee;exports.MenubarItem=E;exports.MenubarLabel=F;exports.MenubarMenu=$;exports.MenubarPortal=te;exports.MenubarRadioGroup=re;exports.MenubarRadioItem=k;exports.MenubarSeparator=L;exports.MenubarShortcut=G;exports.MenubarSub=oe;exports.MenubarSubContent=I;exports.MenubarSubTrigger=q;exports.MenubarTrigger=N;exports.Sheet=ne;exports.SheetClose=se;exports.SheetContent=z;exports.SheetDescription=_;exports.SheetFooter=B;exports.SheetHeader=O;exports.SheetTitle=U;exports.SheetTrigger=ae;exports.badgeVariants=w;exports.chaiBuilderTheme=de;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("./toggle-ehNIPmme.cjs"),a=require("./dropdown-menu-sMXR59cB.cjs"),c=require("./skeleton-JHP9zwL2.cjs"),C=require("./accordion-ynvFtV_p.cjs"),m=require("./textarea-1kZEh7ki.cjs"),r=require("./jsx-runtime-JYMCiFoE.cjs"),y=require("class-variance-authority"),s=require("./utils-qK_SjzzV.cjs"),x=require("./alert-dialog-Mv0-wAvS.cjs"),f=require("./dialog-S_QbL1iq.cjs"),p=require("./command-ThdTuUxt.cjs"),Q=require("./label-tFm8HZdb.cjs"),w=require("./scroll-area-FiHvy-TZ.cjs"),M=require("./tabs-iWeaaVrg.cjs"),D=require("./popover-fKjgcRUx.cjs"),U=require("react"),S=require("@radix-ui/react-icons"),W=require("@radix-ui/react-menubar"),g=require("./select-7bjg-rr9.cjs"),X=require("@radix-ui/react-dialog"),Y=require("./separator-3Civ-6hb.cjs"),d=require("./context-menu-IgLbIuth.cjs"),h=require("./link-ece8dZGH.cjs");require("@radix-ui/react-toggle");require("@radix-ui/react-switch");require("@radix-ui/react-hover-card");require("@radix-ui/react-dropdown-menu");require("jotai");require("lodash");require("@radix-ui/react-slot");require("@radix-ui/react-tooltip");require("@radix-ui/react-toast");require("@radix-ui/react-accordion");require("clsx");require("tailwind-merge");require("@radix-ui/react-alert-dialog");require("cmdk");require("@radix-ui/react-label");require("@radix-ui/react-scroll-area");require("@radix-ui/react-tabs");require("@radix-ui/react-popover");require("@radix-ui/react-select");require("@radix-ui/react-separator");require("@radix-ui/react-context-menu");require("react-icons-picker");require("react-dom");require("./ImagesPanel-6us7hiLN.cjs");require("react-quill");require("react-i18next");function T(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,i.get?i:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const u=T(U),n=T(W),l=T(X),R=y.cva("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}}),Z=({className:e,variant:t,...o})=>r.jsxRuntimeExports.jsx("div",{className:s.cn(R({variant:t}),e),...o}),$=n.Menu,ee=n.Group,te=n.Portal,oe=n.Sub,re=n.RadioGroup,N=u.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(n.Root,{ref:o,className:s.cn("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm",e),...t}));N.displayName=n.Root.displayName;const v=u.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(n.Trigger,{ref:o,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",e),...t}));v.displayName=n.Trigger.displayName;const q=u.forwardRef(({className:e,inset:t,children:o,...i},b)=>r.jsxRuntimeExports.jsxs(n.SubTrigger,{ref:b,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",t&&"pl-8",e),...i,children:[o,r.jsxRuntimeExports.jsx(S.ChevronRightIcon,{className:"ml-auto h-4 w-4"})]}));q.displayName=n.SubTrigger.displayName;const I=u.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(n.SubContent,{ref:o,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",e),...t}));I.displayName=n.SubContent.displayName;const A=u.forwardRef(({className:e,align:t="start",alignOffset:o=-4,sideOffset:i=8,...b},K)=>r.jsxRuntimeExports.jsx(n.Portal,{children:r.jsxRuntimeExports.jsx(n.Content,{ref:K,align:t,alignOffset:o,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",e),...b})}));A.displayName=n.Content.displayName;const E=u.forwardRef(({className:e,inset:t,...o},i)=>r.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",t&&"pl-8",e),...o}));E.displayName=n.Item.displayName;const P=u.forwardRef(({className:e,children:t,checked:o,...i},b)=>r.jsxRuntimeExports.jsxs(n.CheckboxItem,{ref:b,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",e),checked:o,...i,children:[r.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsxRuntimeExports.jsx(n.ItemIndicator,{children:r.jsxRuntimeExports.jsx(S.CheckIcon,{className:"h-4 w-4"})})}),t]}));P.displayName=n.CheckboxItem.displayName;const k=u.forwardRef(({className:e,children:t,...o},i)=>r.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",e),...o,children:[r.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsxRuntimeExports.jsx(n.ItemIndicator,{children:r.jsxRuntimeExports.jsx(S.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));k.displayName=n.RadioItem.displayName;const F=u.forwardRef(({className:e,inset:t,...o},i)=>r.jsxRuntimeExports.jsx(n.Label,{ref:i,className:s.cn("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));F.displayName=n.Label.displayName;const G=u.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(n.Separator,{ref:o,className:s.cn("-mx-1 my-1 h-px bg-muted",e),...t}));G.displayName=n.Separator.displayName;const L=({className:e,...t})=>r.jsxRuntimeExports.jsx("span",{className:s.cn("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});L.displayname="MenubarShortcut";const ne=l.Root,ae=l.Trigger,se=l.Close,H=({className:e,...t})=>r.jsxRuntimeExports.jsx(l.Portal,{className:s.cn(e),...t});H.displayName=l.Portal.displayName;const V=u.forwardRef(({className:e,...t},o)=>r.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",e),...t,ref:o}));V.displayName=l.Overlay.displayName;const ie=y.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"}}),z=u.forwardRef(({side:e="right",className:t,children:o,...i},b)=>r.jsxRuntimeExports.jsxs(H,{children:[r.jsxRuntimeExports.jsx(V,{}),r.jsxRuntimeExports.jsxs(l.Content,{ref:b,className:s.cn(ie({side:e}),t),...i,children:[o,r.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:[r.jsxRuntimeExports.jsx(S.Cross2Icon,{className:"h-4 w-4"}),r.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));z.displayName=l.Content.displayName;const O=({className:e,...t})=>r.jsxRuntimeExports.jsx("div",{className:s.cn("flex flex-col space-y-2 text-center sm:text-left",e),...t});O.displayName="SheetHeader";const _=({className:e,...t})=>r.jsxRuntimeExports.jsx("div",{className:s.cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});_.displayName="SheetFooter";const B=u.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(l.Title,{ref:o,className:s.cn("text-lg font-semibold text-foreground",e),...t}));B.displayName=l.Title.displayName;const J=u.forwardRef(({className:e,...t},o)=>r.jsxRuntimeExports.jsx(l.Description,{ref:o,className:s.cn("text-sm text-muted-foreground",e),...t}));J.displayName=l.Description.displayName;exports.Toggle=j.Toggle;exports.toggleVariants=j.toggleVariants;exports.DropdownMenu=a.DropdownMenu;exports.DropdownMenuCheckboxItem=a.DropdownMenuCheckboxItem;exports.DropdownMenuContent=a.DropdownMenuContent;exports.DropdownMenuGroup=a.DropdownMenuGroup;exports.DropdownMenuItem=a.DropdownMenuItem;exports.DropdownMenuLabel=a.DropdownMenuLabel;exports.DropdownMenuPortal=a.DropdownMenuPortal;exports.DropdownMenuRadioGroup=a.DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=a.DropdownMenuRadioItem;exports.DropdownMenuSeparator=a.DropdownMenuSeparator;exports.DropdownMenuShortcut=a.DropdownMenuShortcut;exports.DropdownMenuSub=a.DropdownMenuSub;exports.DropdownMenuSubContent=a.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=a.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=a.DropdownMenuTrigger;exports.HoverCard=a.HoverCard;exports.HoverCardContent=a.HoverCardContent;exports.HoverCardTrigger=a.HoverCardTrigger;exports.Switch=a.Switch;exports.Button=c.Button;exports.Skeleton=c.Skeleton;exports.Toaster=c.Toaster;exports.Tooltip=c.Tooltip;exports.TooltipContent=c.TooltipContent;exports.TooltipPortal=c.TooltipPortal;exports.TooltipProvider=c.TooltipProvider;exports.TooltipTrigger=c.TooltipTrigger;exports.buttonVariants=c.buttonVariants;exports.reducer=c.reducer;exports.toast=c.toast;exports.useToast=c.useToast;exports.Accordion=C.Accordion;exports.AccordionContent=C.AccordionContent;exports.AccordionItem=C.AccordionItem;exports.AccordionTrigger=C.AccordionTrigger;exports.Alert=m.Alert;exports.AlertDescription=m.AlertDescription;exports.AlertTitle=m.AlertTitle;exports.Card=m.Card;exports.CardContent=m.CardContent;exports.CardDescription=m.CardDescription;exports.CardFooter=m.CardFooter;exports.CardHeader=m.CardHeader;exports.CardTitle=m.CardTitle;exports.Textarea=m.Textarea;exports.AlertDialog=x.AlertDialog;exports.AlertDialogAction=x.AlertDialogAction;exports.AlertDialogCancel=x.AlertDialogCancel;exports.AlertDialogContent=x.AlertDialogContent;exports.AlertDialogDescription=x.AlertDialogDescription;exports.AlertDialogFooter=x.AlertDialogFooter;exports.AlertDialogHeader=x.AlertDialogHeader;exports.AlertDialogTitle=x.AlertDialogTitle;exports.AlertDialogTrigger=x.AlertDialogTrigger;exports.Dialog=f.Dialog;exports.DialogContent=f.DialogContent;exports.DialogDescription=f.DialogDescription;exports.DialogFooter=f.DialogFooter;exports.DialogHeader=f.DialogHeader;exports.DialogTitle=f.DialogTitle;exports.DialogTrigger=f.DialogTrigger;exports.Command=p.Command;exports.CommandDialog=p.CommandDialog;exports.CommandEmpty=p.CommandEmpty;exports.CommandGroup=p.CommandGroup;exports.CommandInput=p.CommandInput;exports.CommandItem=p.CommandItem;exports.CommandList=p.CommandList;exports.CommandSeparator=p.CommandSeparator;exports.CommandShortcut=p.CommandShortcut;exports.Input=p.Input;exports.Label=Q.Label;exports.ScrollArea=w.ScrollArea;exports.ScrollBar=w.ScrollBar;exports.Tabs=M.Tabs;exports.TabsContent=M.TabsContent;exports.TabsList=M.TabsList;exports.TabsTrigger=M.TabsTrigger;exports.Popover=D.Popover;exports.PopoverContent=D.PopoverContent;exports.PopoverTrigger=D.PopoverTrigger;exports.Select=g.Select;exports.SelectContent=g.SelectContent;exports.SelectGroup=g.SelectGroup;exports.SelectItem=g.SelectItem;exports.SelectLabel=g.SelectLabel;exports.SelectSeparator=g.SelectSeparator;exports.SelectTrigger=g.SelectTrigger;exports.SelectValue=g.SelectValue;exports.Separator=Y.Separator;exports.ContextMenu=d.ContextMenu;exports.ContextMenuCheckboxItem=d.ContextMenuCheckboxItem;exports.ContextMenuContent=d.ContextMenuContent;exports.ContextMenuGroup=d.ContextMenuGroup;exports.ContextMenuItem=d.ContextMenuItem;exports.ContextMenuLabel=d.ContextMenuLabel;exports.ContextMenuPortal=d.ContextMenuPortal;exports.ContextMenuRadioGroup=d.ContextMenuRadioGroup;exports.ContextMenuRadioItem=d.ContextMenuRadioItem;exports.ContextMenuSeparator=d.ContextMenuSeparator;exports.ContextMenuShortcut=d.ContextMenuShortcut;exports.ContextMenuSub=d.ContextMenuSub;exports.ContextMenuSubContent=d.ContextMenuSubContent;exports.ContextMenuSubTrigger=d.ContextMenuSubTrigger;exports.ContextMenuTrigger=d.ContextMenuTrigger;exports.IconPickerField=h.IconPickerField;exports.ImagePickerField=h.ImagePickerField;exports.LinkField=h.LinkField;exports.RTEField=h.RichTextEditorField;exports.Badge=Z;exports.Menubar=N;exports.MenubarCheckboxItem=P;exports.MenubarContent=A;exports.MenubarGroup=ee;exports.MenubarItem=E;exports.MenubarLabel=F;exports.MenubarMenu=$;exports.MenubarPortal=te;exports.MenubarRadioGroup=re;exports.MenubarRadioItem=k;exports.MenubarSeparator=G;exports.MenubarShortcut=L;exports.MenubarSub=oe;exports.MenubarSubContent=I;exports.MenubarSubTrigger=q;exports.MenubarTrigger=v;exports.Sheet=ne;exports.SheetClose=se;exports.SheetContent=z;exports.SheetDescription=J;exports.SheetFooter=_;exports.SheetHeader=O;exports.SheetTitle=B;exports.SheetTrigger=ae;exports.badgeVariants=R;
|
package/dist/ui.d.ts
CHANGED
|
@@ -119,71 +119,6 @@ export declare const CardHeader: React_2.ForwardRefExoticComponent<React_2.HTMLA
|
|
|
119
119
|
|
|
120
120
|
export declare const CardTitle: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLHeadingElement> & React_2.RefAttributes<HTMLParagraphElement>>;
|
|
121
121
|
|
|
122
|
-
export declare function chaiBuilderTheme(): {
|
|
123
|
-
colors: {
|
|
124
|
-
border: string;
|
|
125
|
-
input: string;
|
|
126
|
-
ring: string;
|
|
127
|
-
background: string;
|
|
128
|
-
foreground: string;
|
|
129
|
-
primary: {
|
|
130
|
-
DEFAULT: string;
|
|
131
|
-
foreground: string;
|
|
132
|
-
};
|
|
133
|
-
secondary: {
|
|
134
|
-
DEFAULT: string;
|
|
135
|
-
foreground: string;
|
|
136
|
-
};
|
|
137
|
-
destructive: {
|
|
138
|
-
DEFAULT: string;
|
|
139
|
-
foreground: string;
|
|
140
|
-
};
|
|
141
|
-
muted: {
|
|
142
|
-
DEFAULT: string;
|
|
143
|
-
foreground: string;
|
|
144
|
-
};
|
|
145
|
-
accent: {
|
|
146
|
-
DEFAULT: string;
|
|
147
|
-
foreground: string;
|
|
148
|
-
};
|
|
149
|
-
popover: {
|
|
150
|
-
DEFAULT: string;
|
|
151
|
-
foreground: string;
|
|
152
|
-
};
|
|
153
|
-
card: {
|
|
154
|
-
DEFAULT: string;
|
|
155
|
-
foreground: string;
|
|
156
|
-
};
|
|
157
|
-
};
|
|
158
|
-
borderRadius: {
|
|
159
|
-
lg: string;
|
|
160
|
-
md: string;
|
|
161
|
-
sm: string;
|
|
162
|
-
};
|
|
163
|
-
keyframes: {
|
|
164
|
-
"accordion-down": {
|
|
165
|
-
from: {
|
|
166
|
-
height: string;
|
|
167
|
-
};
|
|
168
|
-
to: {
|
|
169
|
-
height: string;
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
|
-
"accordion-up": {
|
|
173
|
-
from: {
|
|
174
|
-
height: string;
|
|
175
|
-
};
|
|
176
|
-
to: {
|
|
177
|
-
height: string;
|
|
178
|
-
};
|
|
179
|
-
};
|
|
180
|
-
};
|
|
181
|
-
animation: {
|
|
182
|
-
"accordion-down": string;
|
|
183
|
-
"accordion-up": string;
|
|
184
|
-
};
|
|
185
|
-
};
|
|
186
|
-
|
|
187
122
|
export declare const Command: React_2.ForwardRefExoticComponent<Omit<{
|
|
188
123
|
children?: React_2.ReactNode;
|
|
189
124
|
} & React_2.HTMLAttributes<HTMLDivElement> & {
|
package/dist/ui.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { T as we, t as
|
|
2
|
-
import { D as
|
|
3
|
-
import { B as Qe, S as
|
|
4
|
-
import { A as
|
|
5
|
-
import { A as
|
|
6
|
-
import { j as
|
|
7
|
-
import { cva as
|
|
8
|
-
import { c as
|
|
9
|
-
import { A as
|
|
10
|
-
import { D as
|
|
11
|
-
import { C as
|
|
12
|
-
import { L as
|
|
13
|
-
import { S as
|
|
14
|
-
import { T as
|
|
15
|
-
import { P as
|
|
16
|
-
import * as
|
|
1
|
+
import { T as we, t as Me } from "./toggle-ASJRAaGP.js";
|
|
2
|
+
import { D as ve, f as De, d as je, k as Ie, e as Re, h as Ae, l as ke, p as Pe, g as Le, i as Fe, j as Ge, m as He, n as ze, o as Ve, c as Be, H as Ee, b as Oe, a as qe, S as Je } from "./dropdown-menu-S03K_fNs.js";
|
|
3
|
+
import { B as Qe, S as Ue, g as We, T as Xe, c as Ye, e as Ze, d as _e, a as $e, b as et, r as tt, t as at, f as ot } from "./skeleton-CU_FIbg3.js";
|
|
4
|
+
import { A as rt, c as nt, a as it, b as dt } from "./accordion-oPUeqPCZ.js";
|
|
5
|
+
import { A as mt, b as ct, a as pt, C as ut, g as ft, f as gt, d as xt, c as bt, e as ht, T as Ct } from "./textarea-b2QvVhrK.js";
|
|
6
|
+
import { j as a } from "./jsx-runtime-Sp0orL4X.js";
|
|
7
|
+
import { cva as m } from "class-variance-authority";
|
|
8
|
+
import { c as r } from "./utils-dze1SGvB.js";
|
|
9
|
+
import { A as Nt, g as St, h as wt, b as Mt, f as Tt, d as vt, c as Dt, e as jt, a as It } from "./alert-dialog-GNfnpqFB.js";
|
|
10
|
+
import { D as At, b as kt, f as Pt, d as Lt, c as Ft, e as Gt, a as Ht } from "./dialog-jrw9DF1f.js";
|
|
11
|
+
import { C as Vt, a as Bt, d as Et, e as Ot, b as qt, f as Jt, c as Kt, h as Qt, g as Ut, I as Wt } from "./command-VHca6CcN.js";
|
|
12
|
+
import { L as Yt } from "./label-KaP7MRrs.js";
|
|
13
|
+
import { S as _t, a as $t } from "./scroll-area-ewXbxc3n.js";
|
|
14
|
+
import { T as ta, c as aa, a as oa, b as sa } from "./tabs-Gb9v5dVb.js";
|
|
15
|
+
import { P as na, b as ia, a as da } from "./popover-a84pbVhQ.js";
|
|
16
|
+
import * as i from "react";
|
|
17
17
|
import { ChevronRightIcon as f, CheckIcon as g, DotFilledIcon as x, Cross2Icon as b } from "@radix-ui/react-icons";
|
|
18
|
-
import * as
|
|
19
|
-
import { S as
|
|
18
|
+
import * as s from "@radix-ui/react-menubar";
|
|
19
|
+
import { S as ma, d as ca, a as pa, f as ua, e as fa, g as ga, c as xa, b as ba } from "./select-POGdEDHT.js";
|
|
20
20
|
import * as n from "@radix-ui/react-dialog";
|
|
21
|
-
import { S as
|
|
22
|
-
import { C as
|
|
23
|
-
import { I as
|
|
21
|
+
import { S as Ca } from "./separator-SctTn0Qi.js";
|
|
22
|
+
import { C as Na, d as Sa, b as wa, i as Ma, c as Ta, f as va, j as Da, n as ja, e as Ia, g as Ra, h as Aa, k as ka, l as Pa, m as La, a as Fa } from "./context-menu-8dC9uGXj.js";
|
|
23
|
+
import { I as Ha, a as za, L as Va, R as Ba } from "./link-6o6n2Tnd.js";
|
|
24
24
|
import "@radix-ui/react-toggle";
|
|
25
25
|
import "@radix-ui/react-switch";
|
|
26
26
|
import "@radix-ui/react-hover-card";
|
|
@@ -47,7 +47,7 @@ import "react-dom";
|
|
|
47
47
|
import "./ImagesPanel-oaHOD-Ex.js";
|
|
48
48
|
import "react-quill";
|
|
49
49
|
import "react-i18next";
|
|
50
|
-
const h =
|
|
50
|
+
const h = m(
|
|
51
51
|
"inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
52
52
|
{
|
|
53
53
|
variants: {
|
|
@@ -62,145 +62,145 @@ const h = c(
|
|
|
62
62
|
variant: "default"
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
), pe = ({ className: e, variant:
|
|
66
|
-
|
|
65
|
+
), pe = ({ className: e, variant: t, ...o }) => /* @__PURE__ */ a.jsx("div", { className: r(h({ variant: t }), e), ...o }), ue = s.Menu, fe = s.Group, ge = s.Portal, xe = s.Sub, be = s.RadioGroup, C = i.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(
|
|
66
|
+
s.Root,
|
|
67
67
|
{
|
|
68
68
|
ref: o,
|
|
69
|
-
className:
|
|
70
|
-
...
|
|
69
|
+
className: r("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm", e),
|
|
70
|
+
...t
|
|
71
71
|
}
|
|
72
72
|
));
|
|
73
|
-
|
|
74
|
-
const y =
|
|
75
|
-
|
|
73
|
+
C.displayName = s.Root.displayName;
|
|
74
|
+
const y = i.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(
|
|
75
|
+
s.Trigger,
|
|
76
76
|
{
|
|
77
77
|
ref: o,
|
|
78
|
-
className:
|
|
78
|
+
className: r(
|
|
79
79
|
"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",
|
|
80
80
|
e
|
|
81
81
|
),
|
|
82
|
-
...
|
|
82
|
+
...t
|
|
83
83
|
}
|
|
84
84
|
));
|
|
85
|
-
y.displayName =
|
|
86
|
-
const
|
|
87
|
-
|
|
85
|
+
y.displayName = s.Trigger.displayName;
|
|
86
|
+
const N = i.forwardRef(({ className: e, inset: t, children: o, ...d }, l) => /* @__PURE__ */ a.jsxs(
|
|
87
|
+
s.SubTrigger,
|
|
88
88
|
{
|
|
89
89
|
ref: l,
|
|
90
|
-
className:
|
|
90
|
+
className: r(
|
|
91
91
|
"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",
|
|
92
|
-
|
|
92
|
+
t && "pl-8",
|
|
93
93
|
e
|
|
94
94
|
),
|
|
95
|
-
...
|
|
95
|
+
...d,
|
|
96
96
|
children: [
|
|
97
97
|
o,
|
|
98
|
-
/* @__PURE__ */
|
|
98
|
+
/* @__PURE__ */ a.jsx(f, { className: "ml-auto h-4 w-4" })
|
|
99
99
|
]
|
|
100
100
|
}
|
|
101
101
|
));
|
|
102
|
-
|
|
103
|
-
const
|
|
104
|
-
|
|
102
|
+
N.displayName = s.SubTrigger.displayName;
|
|
103
|
+
const S = i.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(
|
|
104
|
+
s.SubContent,
|
|
105
105
|
{
|
|
106
106
|
ref: o,
|
|
107
|
-
className:
|
|
107
|
+
className: r(
|
|
108
108
|
"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",
|
|
109
109
|
e
|
|
110
110
|
),
|
|
111
|
-
...
|
|
111
|
+
...t
|
|
112
112
|
}
|
|
113
113
|
));
|
|
114
|
-
|
|
115
|
-
const
|
|
116
|
-
|
|
114
|
+
S.displayName = s.SubContent.displayName;
|
|
115
|
+
const w = i.forwardRef(({ className: e, align: t = "start", alignOffset: o = -4, sideOffset: d = 8, ...l }, u) => /* @__PURE__ */ a.jsx(s.Portal, { children: /* @__PURE__ */ a.jsx(
|
|
116
|
+
s.Content,
|
|
117
117
|
{
|
|
118
118
|
ref: u,
|
|
119
|
-
align:
|
|
119
|
+
align: t,
|
|
120
120
|
alignOffset: o,
|
|
121
|
-
sideOffset:
|
|
122
|
-
className:
|
|
121
|
+
sideOffset: d,
|
|
122
|
+
className: r(
|
|
123
123
|
"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",
|
|
124
124
|
e
|
|
125
125
|
),
|
|
126
126
|
...l
|
|
127
127
|
}
|
|
128
128
|
) }));
|
|
129
|
-
|
|
130
|
-
const
|
|
131
|
-
|
|
129
|
+
w.displayName = s.Content.displayName;
|
|
130
|
+
const M = i.forwardRef(({ className: e, inset: t, ...o }, d) => /* @__PURE__ */ a.jsx(
|
|
131
|
+
s.Item,
|
|
132
132
|
{
|
|
133
|
-
ref:
|
|
134
|
-
className:
|
|
133
|
+
ref: d,
|
|
134
|
+
className: r(
|
|
135
135
|
"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",
|
|
136
|
-
|
|
136
|
+
t && "pl-8",
|
|
137
137
|
e
|
|
138
138
|
),
|
|
139
139
|
...o
|
|
140
140
|
}
|
|
141
141
|
));
|
|
142
|
-
|
|
143
|
-
const T =
|
|
144
|
-
|
|
142
|
+
M.displayName = s.Item.displayName;
|
|
143
|
+
const T = i.forwardRef(({ className: e, children: t, checked: o, ...d }, l) => /* @__PURE__ */ a.jsxs(
|
|
144
|
+
s.CheckboxItem,
|
|
145
145
|
{
|
|
146
146
|
ref: l,
|
|
147
|
-
className:
|
|
147
|
+
className: r(
|
|
148
148
|
"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",
|
|
149
149
|
e
|
|
150
150
|
),
|
|
151
151
|
checked: o,
|
|
152
|
-
...
|
|
152
|
+
...d,
|
|
153
153
|
children: [
|
|
154
|
-
/* @__PURE__ */
|
|
155
|
-
|
|
154
|
+
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(s.ItemIndicator, { children: /* @__PURE__ */ a.jsx(g, { className: "h-4 w-4" }) }) }),
|
|
155
|
+
t
|
|
156
156
|
]
|
|
157
157
|
}
|
|
158
158
|
));
|
|
159
|
-
T.displayName =
|
|
160
|
-
const
|
|
161
|
-
|
|
159
|
+
T.displayName = s.CheckboxItem.displayName;
|
|
160
|
+
const v = i.forwardRef(({ className: e, children: t, ...o }, d) => /* @__PURE__ */ a.jsxs(
|
|
161
|
+
s.RadioItem,
|
|
162
162
|
{
|
|
163
|
-
ref:
|
|
164
|
-
className:
|
|
163
|
+
ref: d,
|
|
164
|
+
className: r(
|
|
165
165
|
"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",
|
|
166
166
|
e
|
|
167
167
|
),
|
|
168
168
|
...o,
|
|
169
169
|
children: [
|
|
170
|
-
/* @__PURE__ */
|
|
171
|
-
|
|
170
|
+
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(s.ItemIndicator, { children: /* @__PURE__ */ a.jsx(x, { className: "h-4 w-4 fill-current" }) }) }),
|
|
171
|
+
t
|
|
172
172
|
]
|
|
173
173
|
}
|
|
174
174
|
));
|
|
175
|
-
|
|
176
|
-
const D =
|
|
177
|
-
|
|
175
|
+
v.displayName = s.RadioItem.displayName;
|
|
176
|
+
const D = i.forwardRef(({ className: e, inset: t, ...o }, d) => /* @__PURE__ */ a.jsx(
|
|
177
|
+
s.Label,
|
|
178
178
|
{
|
|
179
|
-
ref:
|
|
180
|
-
className:
|
|
179
|
+
ref: d,
|
|
180
|
+
className: r("px-2 py-1.5 text-sm font-semibold", t && "pl-8", e),
|
|
181
181
|
...o
|
|
182
182
|
}
|
|
183
183
|
));
|
|
184
|
-
D.displayName =
|
|
185
|
-
const j =
|
|
186
|
-
j.displayName =
|
|
187
|
-
const I = ({ className: e, ...
|
|
184
|
+
D.displayName = s.Label.displayName;
|
|
185
|
+
const j = i.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(s.Separator, { ref: o, className: r("-mx-1 my-1 h-px bg-muted", e), ...t }));
|
|
186
|
+
j.displayName = s.Separator.displayName;
|
|
187
|
+
const I = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: r("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
|
|
188
188
|
I.displayname = "MenubarShortcut";
|
|
189
|
-
const he = n.Root,
|
|
190
|
-
|
|
191
|
-
const p =
|
|
189
|
+
const he = n.Root, Ce = n.Trigger, ye = n.Close, c = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(n.Portal, { className: r(e), ...t });
|
|
190
|
+
c.displayName = n.Portal.displayName;
|
|
191
|
+
const p = i.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(
|
|
192
192
|
n.Overlay,
|
|
193
193
|
{
|
|
194
|
-
className:
|
|
194
|
+
className: r(
|
|
195
195
|
"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",
|
|
196
196
|
e
|
|
197
197
|
),
|
|
198
|
-
...
|
|
198
|
+
...t,
|
|
199
199
|
ref: o
|
|
200
200
|
}
|
|
201
201
|
));
|
|
202
202
|
p.displayName = n.Overlay.displayName;
|
|
203
|
-
const R =
|
|
203
|
+
const R = m(
|
|
204
204
|
"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",
|
|
205
205
|
{
|
|
206
206
|
variants: {
|
|
@@ -215,222 +215,163 @@ const R = c(
|
|
|
215
215
|
side: "right"
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
), A =
|
|
219
|
-
({ side: e = "right", className:
|
|
220
|
-
/* @__PURE__ */
|
|
221
|
-
/* @__PURE__ */
|
|
218
|
+
), A = i.forwardRef(
|
|
219
|
+
({ side: e = "right", className: t, children: o, ...d }, l) => /* @__PURE__ */ a.jsxs(c, { children: [
|
|
220
|
+
/* @__PURE__ */ a.jsx(p, {}),
|
|
221
|
+
/* @__PURE__ */ a.jsxs(n.Content, { ref: l, className: r(R({ side: e }), t), ...d, children: [
|
|
222
222
|
o,
|
|
223
|
-
/* @__PURE__ */
|
|
224
|
-
/* @__PURE__ */
|
|
225
|
-
/* @__PURE__ */
|
|
223
|
+
/* @__PURE__ */ a.jsxs(n.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: [
|
|
224
|
+
/* @__PURE__ */ a.jsx(b, { className: "h-4 w-4" }),
|
|
225
|
+
/* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "Close" })
|
|
226
226
|
] })
|
|
227
227
|
] })
|
|
228
228
|
] })
|
|
229
229
|
);
|
|
230
230
|
A.displayName = n.Content.displayName;
|
|
231
|
-
const k = ({ className: e, ...
|
|
231
|
+
const k = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: r("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
|
|
232
232
|
k.displayName = "SheetHeader";
|
|
233
|
-
const
|
|
234
|
-
|
|
235
|
-
const
|
|
236
|
-
|
|
237
|
-
const F =
|
|
233
|
+
const P = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
|
|
234
|
+
P.displayName = "SheetFooter";
|
|
235
|
+
const L = i.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(n.Title, { ref: o, className: r("text-lg font-semibold text-foreground", e), ...t }));
|
|
236
|
+
L.displayName = n.Title.displayName;
|
|
237
|
+
const F = i.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(n.Description, { ref: o, className: r("text-sm text-muted-foreground", e), ...t }));
|
|
238
238
|
F.displayName = n.Description.displayName;
|
|
239
|
-
function Ce() {
|
|
240
|
-
return {
|
|
241
|
-
colors: {
|
|
242
|
-
border: "hsl(var(--border))",
|
|
243
|
-
input: "hsl(var(--input))",
|
|
244
|
-
ring: "hsl(var(--ring))",
|
|
245
|
-
background: "hsl(var(--background))",
|
|
246
|
-
foreground: "hsl(var(--foreground))",
|
|
247
|
-
primary: {
|
|
248
|
-
DEFAULT: "hsl(var(--primary))",
|
|
249
|
-
foreground: "hsl(var(--primary-foreground))"
|
|
250
|
-
},
|
|
251
|
-
secondary: {
|
|
252
|
-
DEFAULT: "hsl(var(--secondary))",
|
|
253
|
-
foreground: "hsl(var(--secondary-foreground))"
|
|
254
|
-
},
|
|
255
|
-
destructive: {
|
|
256
|
-
DEFAULT: "hsl(var(--destructive))",
|
|
257
|
-
foreground: "hsl(var(--destructive-foreground))"
|
|
258
|
-
},
|
|
259
|
-
muted: {
|
|
260
|
-
DEFAULT: "hsl(var(--muted))",
|
|
261
|
-
foreground: "hsl(var(--muted-foreground))"
|
|
262
|
-
},
|
|
263
|
-
accent: {
|
|
264
|
-
DEFAULT: "hsl(var(--accent))",
|
|
265
|
-
foreground: "hsl(var(--accent-foreground))"
|
|
266
|
-
},
|
|
267
|
-
popover: {
|
|
268
|
-
DEFAULT: "hsl(var(--popover))",
|
|
269
|
-
foreground: "hsl(var(--popover-foreground))"
|
|
270
|
-
},
|
|
271
|
-
card: {
|
|
272
|
-
DEFAULT: "hsl(var(--card))",
|
|
273
|
-
foreground: "hsl(var(--card-foreground))"
|
|
274
|
-
}
|
|
275
|
-
},
|
|
276
|
-
borderRadius: {
|
|
277
|
-
lg: "var(--radius)",
|
|
278
|
-
md: "calc(var(--radius) - 2px)",
|
|
279
|
-
sm: "calc(var(--radius) - 4px)"
|
|
280
|
-
},
|
|
281
|
-
keyframes: {
|
|
282
|
-
"accordion-down": {
|
|
283
|
-
from: { height: "0" },
|
|
284
|
-
to: { height: "var(--radix-accordion-content-height)" }
|
|
285
|
-
},
|
|
286
|
-
"accordion-up": {
|
|
287
|
-
from: { height: "var(--radix-accordion-content-height)" },
|
|
288
|
-
to: { height: "0" }
|
|
289
|
-
}
|
|
290
|
-
},
|
|
291
|
-
animation: {
|
|
292
|
-
"accordion-down": "accordion-down 0.2s ease-out",
|
|
293
|
-
"accordion-up": "accordion-up 0.2s ease-out"
|
|
294
|
-
}
|
|
295
|
-
};
|
|
296
|
-
}
|
|
297
239
|
export {
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
240
|
+
rt as Accordion,
|
|
241
|
+
nt as AccordionContent,
|
|
242
|
+
it as AccordionItem,
|
|
243
|
+
dt as AccordionTrigger,
|
|
244
|
+
mt as Alert,
|
|
245
|
+
ct as AlertDescription,
|
|
246
|
+
Nt as AlertDialog,
|
|
247
|
+
St as AlertDialogAction,
|
|
248
|
+
wt as AlertDialogCancel,
|
|
249
|
+
Mt as AlertDialogContent,
|
|
250
|
+
Tt as AlertDialogDescription,
|
|
251
|
+
vt as AlertDialogFooter,
|
|
252
|
+
Dt as AlertDialogHeader,
|
|
253
|
+
jt as AlertDialogTitle,
|
|
254
|
+
It as AlertDialogTrigger,
|
|
255
|
+
pt as AlertTitle,
|
|
314
256
|
pe as Badge,
|
|
315
257
|
Qe as Button,
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
258
|
+
ut as Card,
|
|
259
|
+
ft as CardContent,
|
|
260
|
+
gt as CardDescription,
|
|
261
|
+
xt as CardFooter,
|
|
262
|
+
bt as CardHeader,
|
|
263
|
+
ht as CardTitle,
|
|
264
|
+
Vt as Command,
|
|
265
|
+
Bt as CommandDialog,
|
|
266
|
+
Et as CommandEmpty,
|
|
267
|
+
Ot as CommandGroup,
|
|
268
|
+
qt as CommandInput,
|
|
269
|
+
Jt as CommandItem,
|
|
270
|
+
Kt as CommandList,
|
|
271
|
+
Qt as CommandSeparator,
|
|
272
|
+
Ut as CommandShortcut,
|
|
273
|
+
Na as ContextMenu,
|
|
274
|
+
Sa as ContextMenuCheckboxItem,
|
|
275
|
+
wa as ContextMenuContent,
|
|
276
|
+
Ma as ContextMenuGroup,
|
|
277
|
+
Ta as ContextMenuItem,
|
|
278
|
+
va as ContextMenuLabel,
|
|
279
|
+
Da as ContextMenuPortal,
|
|
280
|
+
ja as ContextMenuRadioGroup,
|
|
281
|
+
Ia as ContextMenuRadioItem,
|
|
282
|
+
Ra as ContextMenuSeparator,
|
|
283
|
+
Aa as ContextMenuShortcut,
|
|
284
|
+
ka as ContextMenuSub,
|
|
285
|
+
Pa as ContextMenuSubContent,
|
|
286
|
+
La as ContextMenuSubTrigger,
|
|
287
|
+
Fa as ContextMenuTrigger,
|
|
288
|
+
At as Dialog,
|
|
289
|
+
kt as DialogContent,
|
|
290
|
+
Pt as DialogDescription,
|
|
291
|
+
Lt as DialogFooter,
|
|
292
|
+
Ft as DialogHeader,
|
|
293
|
+
Gt as DialogTitle,
|
|
294
|
+
Ht as DialogTrigger,
|
|
295
|
+
ve as DropdownMenu,
|
|
296
|
+
De as DropdownMenuCheckboxItem,
|
|
297
|
+
je as DropdownMenuContent,
|
|
298
|
+
Ie as DropdownMenuGroup,
|
|
299
|
+
Re as DropdownMenuItem,
|
|
300
|
+
Ae as DropdownMenuLabel,
|
|
301
|
+
ke as DropdownMenuPortal,
|
|
360
302
|
Pe as DropdownMenuRadioGroup,
|
|
361
|
-
|
|
362
|
-
|
|
303
|
+
Le as DropdownMenuRadioItem,
|
|
304
|
+
Fe as DropdownMenuSeparator,
|
|
363
305
|
Ge as DropdownMenuShortcut,
|
|
364
306
|
He as DropdownMenuSub,
|
|
365
307
|
ze as DropdownMenuSubContent,
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
308
|
+
Ve as DropdownMenuSubTrigger,
|
|
309
|
+
Be as DropdownMenuTrigger,
|
|
310
|
+
Ee as HoverCard,
|
|
369
311
|
Oe as HoverCardContent,
|
|
370
312
|
qe as HoverCardTrigger,
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
313
|
+
Ha as IconPickerField,
|
|
314
|
+
za as ImagePickerField,
|
|
315
|
+
Wt as Input,
|
|
316
|
+
Yt as Label,
|
|
317
|
+
Va as LinkField,
|
|
318
|
+
C as Menubar,
|
|
377
319
|
T as MenubarCheckboxItem,
|
|
378
|
-
|
|
320
|
+
w as MenubarContent,
|
|
379
321
|
fe as MenubarGroup,
|
|
380
|
-
|
|
322
|
+
M as MenubarItem,
|
|
381
323
|
D as MenubarLabel,
|
|
382
324
|
ue as MenubarMenu,
|
|
383
325
|
ge as MenubarPortal,
|
|
384
326
|
be as MenubarRadioGroup,
|
|
385
|
-
|
|
327
|
+
v as MenubarRadioItem,
|
|
386
328
|
j as MenubarSeparator,
|
|
387
329
|
I as MenubarShortcut,
|
|
388
330
|
xe as MenubarSub,
|
|
389
|
-
|
|
390
|
-
|
|
331
|
+
S as MenubarSubContent,
|
|
332
|
+
N as MenubarSubTrigger,
|
|
391
333
|
y as MenubarTrigger,
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
334
|
+
na as Popover,
|
|
335
|
+
ia as PopoverContent,
|
|
336
|
+
da as PopoverTrigger,
|
|
337
|
+
Ba as RTEField,
|
|
338
|
+
_t as ScrollArea,
|
|
339
|
+
$t as ScrollBar,
|
|
340
|
+
ma as Select,
|
|
341
|
+
ca as SelectContent,
|
|
342
|
+
pa as SelectGroup,
|
|
343
|
+
ua as SelectItem,
|
|
344
|
+
fa as SelectLabel,
|
|
345
|
+
ga as SelectSeparator,
|
|
346
|
+
xa as SelectTrigger,
|
|
347
|
+
ba as SelectValue,
|
|
348
|
+
Ca as Separator,
|
|
407
349
|
he as Sheet,
|
|
408
350
|
ye as SheetClose,
|
|
409
351
|
A as SheetContent,
|
|
410
352
|
F as SheetDescription,
|
|
411
|
-
|
|
353
|
+
P as SheetFooter,
|
|
412
354
|
k as SheetHeader,
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
355
|
+
L as SheetTitle,
|
|
356
|
+
Ce as SheetTrigger,
|
|
357
|
+
Ue as Skeleton,
|
|
416
358
|
Je as Switch,
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
359
|
+
ta as Tabs,
|
|
360
|
+
aa as TabsContent,
|
|
361
|
+
oa as TabsList,
|
|
362
|
+
sa as TabsTrigger,
|
|
363
|
+
Ct as Textarea,
|
|
364
|
+
We as Toaster,
|
|
423
365
|
we as Toggle,
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
366
|
+
Xe as Tooltip,
|
|
367
|
+
Ye as TooltipContent,
|
|
368
|
+
Ze as TooltipPortal,
|
|
369
|
+
_e as TooltipProvider,
|
|
370
|
+
$e as TooltipTrigger,
|
|
429
371
|
h as badgeVariants,
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
ra as useToast
|
|
372
|
+
et as buttonVariants,
|
|
373
|
+
tt as reducer,
|
|
374
|
+
at as toast,
|
|
375
|
+
Me as toggleVariants,
|
|
376
|
+
ot as useToast
|
|
436
377
|
};
|