@chaibuilder/sdk 2.2.16 → 2.2.18
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/apply-binding-Z9D6RXG4.js +267 -0
- package/dist/apply-binding-k6PclyA3.cjs +1 -0
- package/dist/{code-editor-Dkq7gsQH.cjs → code-editor-DydX0A0c.cjs} +1 -1
- package/dist/{code-editor-QVi542cK.js → code-editor-r_v4m0s7.js} +1 -1
- package/dist/core.cjs +6 -6
- package/dist/core.js +1949 -2021
- package/dist/render.cjs +2 -2
- package/dist/render.js +75 -63
- package/dist/{sooner-AJ7QkeLS.cjs → sooner-CPeN3CGR.cjs} +1 -1
- package/dist/{sooner-DGhT8-JI.js → sooner-H65duPYc.js} +89 -89
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +2 -2
- package/package.json +1 -1
- package/dist/new-blocks-render-helpers-DfAVXxr2.js +0 -126
- package/dist/new-blocks-render-helpers-DvF4dnjH.cjs +0 -1
|
@@ -2,11 +2,11 @@ import { jsx as o, jsxs as p } from "react/jsx-runtime";
|
|
|
2
2
|
import * as i from "@radix-ui/react-dropdown-menu";
|
|
3
3
|
import { ChevronRight as I, Check as M, Circle as H, X as R, Search as j, ChevronDown as F } from "lucide-react";
|
|
4
4
|
import * as r from "react";
|
|
5
|
+
import { cva as N } from "class-variance-authority";
|
|
5
6
|
import { Command as m } from "cmdk";
|
|
6
7
|
import * as d from "@radix-ui/react-dialog";
|
|
7
8
|
import * as b from "@radix-ui/react-popover";
|
|
8
9
|
import * as x from "@radix-ui/react-tooltip";
|
|
9
|
-
import { cva as N } from "class-variance-authority";
|
|
10
10
|
import * as u from "@radix-ui/react-accordion";
|
|
11
11
|
import * as h from "@radix-ui/react-hover-card";
|
|
12
12
|
import * as C from "@radix-ui/react-label";
|
|
@@ -173,7 +173,45 @@ function Na({
|
|
|
173
173
|
}
|
|
174
174
|
);
|
|
175
175
|
}
|
|
176
|
-
const Z =
|
|
176
|
+
const Z = N(
|
|
177
|
+
"relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",
|
|
178
|
+
{
|
|
179
|
+
variants: {
|
|
180
|
+
variant: {
|
|
181
|
+
default: "bg-background text-foreground",
|
|
182
|
+
destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
defaultVariants: {
|
|
186
|
+
variant: "default"
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
), ee = r.forwardRef(({ className: a, variant: e, ...t }, n) => /* @__PURE__ */ o("div", { ref: n, role: "alert", className: s(Z({ variant: e }), a), ...t }));
|
|
190
|
+
ee.displayName = "Alert";
|
|
191
|
+
const ae = r.forwardRef(
|
|
192
|
+
({ className: a, ...e }, t) => /* @__PURE__ */ o("h5", { ref: t, className: s("mb-1 font-medium leading-none tracking-tight", a), ...e })
|
|
193
|
+
);
|
|
194
|
+
ae.displayName = "AlertTitle";
|
|
195
|
+
const te = r.forwardRef(
|
|
196
|
+
({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("text-sm [&_p]:leading-relaxed", a), ...e })
|
|
197
|
+
);
|
|
198
|
+
te.displayName = "AlertDescription";
|
|
199
|
+
const oe = r.forwardRef(
|
|
200
|
+
({ className: a, type: e, ...t }, n) => /* @__PURE__ */ o(
|
|
201
|
+
"input",
|
|
202
|
+
{
|
|
203
|
+
type: e,
|
|
204
|
+
className: s(
|
|
205
|
+
"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
206
|
+
a
|
|
207
|
+
),
|
|
208
|
+
ref: n,
|
|
209
|
+
...t
|
|
210
|
+
}
|
|
211
|
+
)
|
|
212
|
+
);
|
|
213
|
+
oe.displayName = "Input";
|
|
214
|
+
const se = d.Root, ha = d.Trigger, re = d.Portal, va = d.Close, D = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
177
215
|
d.Overlay,
|
|
178
216
|
{
|
|
179
217
|
ref: t,
|
|
@@ -185,7 +223,7 @@ const Z = d.Root, ha = d.Trigger, ee = d.Portal, va = d.Close, D = r.forwardRef(
|
|
|
185
223
|
}
|
|
186
224
|
));
|
|
187
225
|
D.displayName = d.Overlay.displayName;
|
|
188
|
-
const T = r.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__ */ p(
|
|
226
|
+
const T = r.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__ */ p(re, { children: [
|
|
189
227
|
/* @__PURE__ */ o(D, {}),
|
|
190
228
|
/* @__PURE__ */ p(
|
|
191
229
|
d.Content,
|
|
@@ -207,11 +245,11 @@ const T = r.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__
|
|
|
207
245
|
)
|
|
208
246
|
] }));
|
|
209
247
|
T.displayName = d.Content.displayName;
|
|
210
|
-
const
|
|
211
|
-
|
|
212
|
-
const
|
|
213
|
-
|
|
214
|
-
const
|
|
248
|
+
const ne = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("flex flex-col space-y-1.5 text-center sm:text-left", a), ...e });
|
|
249
|
+
ne.displayName = "DialogHeader";
|
|
250
|
+
const de = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", a), ...e });
|
|
251
|
+
de.displayName = "DialogFooter";
|
|
252
|
+
const ie = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
215
253
|
d.Title,
|
|
216
254
|
{
|
|
217
255
|
ref: t,
|
|
@@ -219,9 +257,9 @@ const oe = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
|
219
257
|
...e
|
|
220
258
|
}
|
|
221
259
|
));
|
|
222
|
-
|
|
223
|
-
const
|
|
224
|
-
|
|
260
|
+
ie.displayName = d.Title.displayName;
|
|
261
|
+
const le = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(d.Description, { ref: t, className: s("text-sm text-muted-foreground", a), ...e }));
|
|
262
|
+
le.displayName = d.Description.displayName;
|
|
225
263
|
const S = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
226
264
|
m,
|
|
227
265
|
{
|
|
@@ -234,7 +272,7 @@ const S = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
|
234
272
|
}
|
|
235
273
|
));
|
|
236
274
|
S.displayName = m.displayName;
|
|
237
|
-
const wa = ({ children: a, ...e }) => /* @__PURE__ */ o(
|
|
275
|
+
const wa = ({ children: a, ...e }) => /* @__PURE__ */ o(se, { ...e, children: /* @__PURE__ */ o(T, { className: "overflow-hidden p-0", children: /* @__PURE__ */ o(S, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: a }) }) }), me = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ p("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
238
276
|
/* @__PURE__ */ o(j, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
239
277
|
/* @__PURE__ */ o(
|
|
240
278
|
m.Input,
|
|
@@ -248,8 +286,8 @@ const wa = ({ children: a, ...e }) => /* @__PURE__ */ o(Z, { ...e, children: /*
|
|
|
248
286
|
}
|
|
249
287
|
)
|
|
250
288
|
] }));
|
|
251
|
-
|
|
252
|
-
const
|
|
289
|
+
me.displayName = m.Input.displayName;
|
|
290
|
+
const ce = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
253
291
|
m.List,
|
|
254
292
|
{
|
|
255
293
|
ref: t,
|
|
@@ -257,8 +295,8 @@ const ne = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
|
257
295
|
...e
|
|
258
296
|
}
|
|
259
297
|
));
|
|
260
|
-
|
|
261
|
-
const
|
|
298
|
+
ce.displayName = m.List.displayName;
|
|
299
|
+
const pe = r.forwardRef((a, e) => /* @__PURE__ */ o(
|
|
262
300
|
m.Empty,
|
|
263
301
|
{
|
|
264
302
|
ref: e,
|
|
@@ -266,8 +304,8 @@ const de = r.forwardRef((a, e) => /* @__PURE__ */ o(
|
|
|
266
304
|
...a
|
|
267
305
|
}
|
|
268
306
|
));
|
|
269
|
-
|
|
270
|
-
const
|
|
307
|
+
pe.displayName = m.Empty.displayName;
|
|
308
|
+
const fe = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
271
309
|
m.Group,
|
|
272
310
|
{
|
|
273
311
|
ref: t,
|
|
@@ -278,8 +316,8 @@ const ie = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
|
278
316
|
...e
|
|
279
317
|
}
|
|
280
318
|
));
|
|
281
|
-
|
|
282
|
-
const
|
|
319
|
+
fe.displayName = m.Group.displayName;
|
|
320
|
+
const ue = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
283
321
|
m.Separator,
|
|
284
322
|
{
|
|
285
323
|
ref: t,
|
|
@@ -287,8 +325,8 @@ const le = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
|
287
325
|
...e
|
|
288
326
|
}
|
|
289
327
|
));
|
|
290
|
-
|
|
291
|
-
const
|
|
328
|
+
ue.displayName = m.Separator.displayName;
|
|
329
|
+
const ge = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
292
330
|
m.Item,
|
|
293
331
|
{
|
|
294
332
|
ref: t,
|
|
@@ -299,8 +337,8 @@ const me = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
|
299
337
|
...e
|
|
300
338
|
}
|
|
301
339
|
));
|
|
302
|
-
|
|
303
|
-
const
|
|
340
|
+
ge.displayName = m.Item.displayName;
|
|
341
|
+
const be = ({
|
|
304
342
|
className: a,
|
|
305
343
|
...e
|
|
306
344
|
}) => /* @__PURE__ */ o(
|
|
@@ -313,8 +351,8 @@ const ce = ({
|
|
|
313
351
|
...e
|
|
314
352
|
}
|
|
315
353
|
);
|
|
316
|
-
|
|
317
|
-
const Ra = b.Root, Ca = b.Trigger, ka = b.Anchor,
|
|
354
|
+
be.displayName = "CommandShortcut";
|
|
355
|
+
const Ra = b.Root, Ca = b.Trigger, ka = b.Anchor, xe = r.forwardRef(({ className: a, align: e = "center", sideOffset: t = 4, ...n }, c) => /* @__PURE__ */ o(b.Portal, { children: /* @__PURE__ */ o(
|
|
318
356
|
b.Content,
|
|
319
357
|
{
|
|
320
358
|
ref: c,
|
|
@@ -327,8 +365,8 @@ const Ra = b.Root, Ca = b.Trigger, ka = b.Anchor, pe = r.forwardRef(({ className
|
|
|
327
365
|
...n
|
|
328
366
|
}
|
|
329
367
|
) }));
|
|
330
|
-
|
|
331
|
-
const Da = x.Provider, Ta = x.Root, Sa = x.Trigger,
|
|
368
|
+
xe.displayName = b.Content.displayName;
|
|
369
|
+
const Da = x.Provider, Ta = x.Root, Sa = x.Trigger, ye = r.forwardRef(({ className: a, sideOffset: e = 4, ...t }, n) => /* @__PURE__ */ o(x.Portal, { children: /* @__PURE__ */ o(
|
|
332
370
|
x.Content,
|
|
333
371
|
{
|
|
334
372
|
ref: n,
|
|
@@ -340,8 +378,8 @@ const Da = x.Provider, Ta = x.Root, Sa = x.Trigger, fe = r.forwardRef(({ classNa
|
|
|
340
378
|
...t
|
|
341
379
|
}
|
|
342
380
|
) }));
|
|
343
|
-
|
|
344
|
-
const
|
|
381
|
+
ye.displayName = x.Content.displayName;
|
|
382
|
+
const Ne = N(
|
|
345
383
|
"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",
|
|
346
384
|
{
|
|
347
385
|
variants: {
|
|
@@ -358,46 +396,8 @@ const ue = N(
|
|
|
358
396
|
}
|
|
359
397
|
);
|
|
360
398
|
function Aa({ className: a, variant: e, ...t }) {
|
|
361
|
-
return /* @__PURE__ */ o("div", { className: s(
|
|
399
|
+
return /* @__PURE__ */ o("div", { className: s(Ne({ variant: e }), a), ...t });
|
|
362
400
|
}
|
|
363
|
-
const ge = N(
|
|
364
|
-
"relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",
|
|
365
|
-
{
|
|
366
|
-
variants: {
|
|
367
|
-
variant: {
|
|
368
|
-
default: "bg-background text-foreground",
|
|
369
|
-
destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
|
|
370
|
-
}
|
|
371
|
-
},
|
|
372
|
-
defaultVariants: {
|
|
373
|
-
variant: "default"
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
), be = r.forwardRef(({ className: a, variant: e, ...t }, n) => /* @__PURE__ */ o("div", { ref: n, role: "alert", className: s(ge({ variant: e }), a), ...t }));
|
|
377
|
-
be.displayName = "Alert";
|
|
378
|
-
const xe = r.forwardRef(
|
|
379
|
-
({ className: a, ...e }, t) => /* @__PURE__ */ o("h5", { ref: t, className: s("mb-1 font-medium leading-none tracking-tight", a), ...e })
|
|
380
|
-
);
|
|
381
|
-
xe.displayName = "AlertTitle";
|
|
382
|
-
const ye = r.forwardRef(
|
|
383
|
-
({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("text-sm [&_p]:leading-relaxed", a), ...e })
|
|
384
|
-
);
|
|
385
|
-
ye.displayName = "AlertDescription";
|
|
386
|
-
const Ne = r.forwardRef(
|
|
387
|
-
({ className: a, type: e, ...t }, n) => /* @__PURE__ */ o(
|
|
388
|
-
"input",
|
|
389
|
-
{
|
|
390
|
-
type: e,
|
|
391
|
-
className: s(
|
|
392
|
-
"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
393
|
-
a
|
|
394
|
-
),
|
|
395
|
-
ref: n,
|
|
396
|
-
...t
|
|
397
|
-
}
|
|
398
|
-
)
|
|
399
|
-
);
|
|
400
|
-
Ne.displayName = "Input";
|
|
401
401
|
const za = u.Root, he = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
402
402
|
u.Item,
|
|
403
403
|
{
|
|
@@ -737,22 +737,22 @@ export {
|
|
|
737
737
|
Te as F,
|
|
738
738
|
S as G,
|
|
739
739
|
wa as H,
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
740
|
+
me as I,
|
|
741
|
+
ce as J,
|
|
742
|
+
pe as K,
|
|
743
|
+
fe as L,
|
|
744
|
+
ge as M,
|
|
745
|
+
be as N,
|
|
746
|
+
ue as O,
|
|
747
|
+
se as P,
|
|
748
748
|
va as Q,
|
|
749
749
|
T as R,
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
750
|
+
le as S,
|
|
751
|
+
de as T,
|
|
752
|
+
ne as U,
|
|
753
753
|
D as V,
|
|
754
|
-
|
|
755
|
-
|
|
754
|
+
re as W,
|
|
755
|
+
ie as X,
|
|
756
756
|
ha as Y,
|
|
757
757
|
fa as Z,
|
|
758
758
|
K as _,
|
|
@@ -774,7 +774,7 @@ export {
|
|
|
774
774
|
He as aE,
|
|
775
775
|
Ce as aF,
|
|
776
776
|
Ta as aG,
|
|
777
|
-
|
|
777
|
+
ye as aH,
|
|
778
778
|
Da as aI,
|
|
779
779
|
Sa as aJ,
|
|
780
780
|
q as aa,
|
|
@@ -782,11 +782,11 @@ export {
|
|
|
782
782
|
_a as ac,
|
|
783
783
|
Re as ad,
|
|
784
784
|
Pa as ae,
|
|
785
|
-
|
|
785
|
+
oe as af,
|
|
786
786
|
Pe as ag,
|
|
787
787
|
Ra as ah,
|
|
788
788
|
ka as ai,
|
|
789
|
-
|
|
789
|
+
xe as aj,
|
|
790
790
|
Ca as ak,
|
|
791
791
|
Ie as al,
|
|
792
792
|
A as am,
|
|
@@ -806,9 +806,9 @@ export {
|
|
|
806
806
|
ve as b,
|
|
807
807
|
s as c,
|
|
808
808
|
we as d,
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
809
|
+
ee as e,
|
|
810
|
+
te as f,
|
|
811
|
+
ae as g,
|
|
812
812
|
Ma as h,
|
|
813
813
|
Ee as i,
|
|
814
814
|
qe as j,
|
|
@@ -824,7 +824,7 @@ export {
|
|
|
824
824
|
Xe as t,
|
|
825
825
|
Ke as u,
|
|
826
826
|
Aa as v,
|
|
827
|
-
|
|
827
|
+
Ne as w,
|
|
828
828
|
w as x,
|
|
829
829
|
Ae as y,
|
|
830
830
|
Se as z
|
package/dist/ui.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./sooner-AJ7QkeLS.cjs"),o=require("react/jsx-runtime"),k=require("@radix-ui/react-context-menu"),c=require("lucide-react"),L=require("react"),G=require("@radix-ui/react-select"),B=require("@radix-ui/react-slider"),H=require("@radix-ui/react-toggle"),_=require("class-variance-authority");function m(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(r,a,l.get?l:{enumerable:!0,get:()=>t[a]})}}return r.default=t,Object.freeze(r)}const n=m(k),s=m(L),i=m(G),u=m(B),f=m(H),z=n.Root,O=n.Trigger,V=n.Group,F=n.Portal,q=n.Sub,U=n.RadioGroup,x=s.forwardRef(({className:t,inset:r,children:a,...l},d)=>o.jsxs(n.SubTrigger,{ref:d,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",r&&"pl-8",t),...l,children:[a,o.jsx(c.ChevronRight,{className:"ml-auto h-4 w-4"})]}));x.displayName=n.SubTrigger.displayName;const b=s.forwardRef(({className:t,...r},a)=>o.jsx(n.SubContent,{ref:a,className:e.cn("z-50 min-w-[8rem] origin-[--radix-context-menu-content-transform-origin] 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),...r}));b.displayName=n.SubContent.displayName;const C=s.forwardRef(({className:t,...r},a)=>o.jsx(n.Portal,{children:o.jsx(n.Content,{ref:a,className:e.cn("z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] origin-[--radix-context-menu-content-transform-origin] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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),...r})}));C.displayName=n.Content.displayName;const h=s.forwardRef(({className:t,inset:r,...a},l)=>o.jsx(n.Item,{ref:l,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",r&&"pl-8",t),...a}));h.displayName=n.Item.displayName;const S=s.forwardRef(({className:t,children:r,checked:a,...l},d)=>o.jsxs(n.CheckboxItem,{ref:d,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:a,...l,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(n.ItemIndicator,{children:o.jsx(c.Check,{className:"h-4 w-4"})})}),r]}));S.displayName=n.CheckboxItem.displayName;const w=s.forwardRef(({className:t,children:r,...a},l)=>o.jsxs(n.RadioItem,{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),...a,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(n.ItemIndicator,{children:o.jsx(c.Circle,{className:"h-4 w-4 fill-current"})})}),r]}));w.displayName=n.RadioItem.displayName;const D=s.forwardRef(({className:t,inset:r,...a},l)=>o.jsx(n.Label,{ref:l,className:e.cn("px-2 py-1.5 text-sm font-semibold text-foreground",r&&"pl-8",t),...a}));D.displayName=n.Label.displayName;const v=s.forwardRef(({className:t,...r},a)=>o.jsx(n.Separator,{ref:a,className:e.cn("-mx-1 my-1 h-px bg-border",t),...r}));v.displayName=n.Separator.displayName;const y=({className:t,...r})=>o.jsx("span",{className:e.cn("ml-auto text-xs tracking-widest text-muted-foreground",t),...r});y.displayName="ContextMenuShortcut";const E=i.Root,J=i.Group,K=i.Value,T=s.forwardRef(({className:t,children:r,...a},l)=>o.jsxs(i.Trigger,{ref:l,className:e.cn("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[placeholder]:text-muted-foreground [&>span]:line-clamp-1",t),...a,children:[r,o.jsx(i.Icon,{asChild:!0,children:o.jsx(c.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));T.displayName=i.Trigger.displayName;const p=s.forwardRef(({className:t,...r},a)=>o.jsx(i.ScrollUpButton,{ref:a,className:e.cn("flex cursor-default items-center justify-center py-1",t),...r,children:o.jsx(c.ChevronUp,{className:"h-4 w-4"})}));p.displayName=i.ScrollUpButton.displayName;const g=s.forwardRef(({className:t,...r},a)=>o.jsx(i.ScrollDownButton,{ref:a,className:e.cn("flex cursor-default items-center justify-center py-1",t),...r,children:o.jsx(c.ChevronDown,{className:"h-4 w-4"})}));g.displayName=i.ScrollDownButton.displayName;const N=s.forwardRef(({className:t,children:r,position:a="popper",...l},d)=>o.jsx(i.Portal,{children:o.jsxs(i.Content,{ref:d,className:e.cn("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] origin-[--radix-select-content-transform-origin] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:a,...l,children:[o.jsx(p,{}),o.jsx(i.Viewport,{className:e.cn("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),o.jsx(g,{})]})}));N.displayName=i.Content.displayName;const M=s.forwardRef(({className:t,...r},a)=>o.jsx(i.Label,{ref:a,className:e.cn("px-2 py-1.5 text-sm font-semibold",t),...r}));M.displayName=i.Label.displayName;const j=s.forwardRef(({className:t,children:r,...a},l)=>o.jsxs(i.Item,{ref:l,className:e.cn("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...a,children:[o.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(i.ItemIndicator,{children:o.jsx(c.Check,{className:"h-4 w-4"})})}),o.jsx(i.ItemText,{children:r})]}));j.displayName=i.Item.displayName;const A=s.forwardRef(({className:t,...r},a)=>o.jsx(i.Separator,{ref:a,className:e.cn("-mx-1 my-1 h-px bg-muted",t),...r}));A.displayName=i.Separator.displayName;const I=s.forwardRef(({className:t,...r},a)=>o.jsxs(u.Root,{ref:a,className:e.cn("relative flex w-full touch-none select-none items-center",t),...r,children:[o.jsx(u.Track,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20",children:o.jsx(u.Range,{className:"absolute h-full bg-primary"})}),o.jsx(u.Thumb,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})]}));I.displayName=u.Root.displayName;const R=_.cva("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),P=s.forwardRef(({className:t,variant:r,size:a,...l},d)=>o.jsx(f.Root,{ref:d,className:e.cn(R({variant:r,size:a,className:t})),...l}));P.displayName=f.Root.displayName;exports.Accordion=e.Accordion;exports.AccordionContent=e.AccordionContent;exports.AccordionItem=e.AccordionItem;exports.AccordionTrigger=e.AccordionTrigger;exports.Alert=e.Alert;exports.AlertDescription=e.AlertDescription;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.AlertDialogOverlay=e.AlertDialogOverlay;exports.AlertDialogPortal=e.AlertDialogPortal;exports.AlertDialogTitle=e.AlertDialogTitle;exports.AlertDialogTrigger=e.AlertDialogTrigger;exports.AlertTitle=e.AlertTitle;exports.Avatar=e.Avatar;exports.AvatarFallback=e.AvatarFallback;exports.AvatarImage=e.AvatarImage;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.Dialog=e.Dialog;exports.DialogClose=e.DialogClose;exports.DialogContent=e.DialogContent;exports.DialogDescription=e.DialogDescription;exports.DialogFooter=e.DialogFooter;exports.DialogHeader=e.DialogHeader;exports.DialogOverlay=e.DialogOverlay;exports.DialogPortal=e.DialogPortal;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.PopoverAnchor=e.PopoverAnchor;exports.PopoverContent=e.PopoverContent;exports.PopoverTrigger=e.PopoverTrigger;exports.ScrollArea=e.ScrollArea;exports.ScrollBar=e.ScrollBar;exports.Separator=e.Separator;exports.Sheet=e.Sheet;exports.SheetClose=e.SheetClose;exports.SheetContent=e.SheetContent;exports.SheetDescription=e.SheetDescription;exports.SheetFooter=e.SheetFooter;exports.SheetHeader=e.SheetHeader;exports.SheetOverlay=e.SheetOverlay;exports.SheetPortal=e.SheetPortal;exports.SheetTitle=e.SheetTitle;exports.SheetTrigger=e.SheetTrigger;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.TooltipProvider=e.TooltipProvider;exports.TooltipTrigger=e.TooltipTrigger;exports.badgeVariants=e.badgeVariants;exports.buttonVariants=e.buttonVariants;exports.ContextMenu=z;exports.ContextMenuCheckboxItem=S;exports.ContextMenuContent=C;exports.ContextMenuGroup=V;exports.ContextMenuItem=h;exports.ContextMenuLabel=D;exports.ContextMenuPortal=F;exports.ContextMenuRadioGroup=U;exports.ContextMenuRadioItem=w;exports.ContextMenuSeparator=v;exports.ContextMenuShortcut=y;exports.ContextMenuSub=q;exports.ContextMenuSubContent=b;exports.ContextMenuSubTrigger=x;exports.ContextMenuTrigger=O;exports.Select=E;exports.SelectContent=N;exports.SelectGroup=J;exports.SelectItem=j;exports.SelectLabel=M;exports.SelectScrollDownButton=g;exports.SelectScrollUpButton=p;exports.SelectSeparator=A;exports.SelectTrigger=T;exports.SelectValue=K;exports.Slider=I;exports.Toggle=P;exports.toggleVariants=R;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./sooner-CPeN3CGR.cjs"),o=require("react/jsx-runtime"),k=require("@radix-ui/react-context-menu"),c=require("lucide-react"),L=require("react"),G=require("@radix-ui/react-select"),B=require("@radix-ui/react-slider"),H=require("@radix-ui/react-toggle"),_=require("class-variance-authority");function m(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(r,a,l.get?l:{enumerable:!0,get:()=>t[a]})}}return r.default=t,Object.freeze(r)}const n=m(k),s=m(L),i=m(G),u=m(B),f=m(H),z=n.Root,O=n.Trigger,V=n.Group,F=n.Portal,q=n.Sub,U=n.RadioGroup,x=s.forwardRef(({className:t,inset:r,children:a,...l},d)=>o.jsxs(n.SubTrigger,{ref:d,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",r&&"pl-8",t),...l,children:[a,o.jsx(c.ChevronRight,{className:"ml-auto h-4 w-4"})]}));x.displayName=n.SubTrigger.displayName;const b=s.forwardRef(({className:t,...r},a)=>o.jsx(n.SubContent,{ref:a,className:e.cn("z-50 min-w-[8rem] origin-[--radix-context-menu-content-transform-origin] 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),...r}));b.displayName=n.SubContent.displayName;const C=s.forwardRef(({className:t,...r},a)=>o.jsx(n.Portal,{children:o.jsx(n.Content,{ref:a,className:e.cn("z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] origin-[--radix-context-menu-content-transform-origin] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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),...r})}));C.displayName=n.Content.displayName;const h=s.forwardRef(({className:t,inset:r,...a},l)=>o.jsx(n.Item,{ref:l,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",r&&"pl-8",t),...a}));h.displayName=n.Item.displayName;const S=s.forwardRef(({className:t,children:r,checked:a,...l},d)=>o.jsxs(n.CheckboxItem,{ref:d,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:a,...l,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(n.ItemIndicator,{children:o.jsx(c.Check,{className:"h-4 w-4"})})}),r]}));S.displayName=n.CheckboxItem.displayName;const w=s.forwardRef(({className:t,children:r,...a},l)=>o.jsxs(n.RadioItem,{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),...a,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(n.ItemIndicator,{children:o.jsx(c.Circle,{className:"h-4 w-4 fill-current"})})}),r]}));w.displayName=n.RadioItem.displayName;const D=s.forwardRef(({className:t,inset:r,...a},l)=>o.jsx(n.Label,{ref:l,className:e.cn("px-2 py-1.5 text-sm font-semibold text-foreground",r&&"pl-8",t),...a}));D.displayName=n.Label.displayName;const v=s.forwardRef(({className:t,...r},a)=>o.jsx(n.Separator,{ref:a,className:e.cn("-mx-1 my-1 h-px bg-border",t),...r}));v.displayName=n.Separator.displayName;const y=({className:t,...r})=>o.jsx("span",{className:e.cn("ml-auto text-xs tracking-widest text-muted-foreground",t),...r});y.displayName="ContextMenuShortcut";const E=i.Root,J=i.Group,K=i.Value,T=s.forwardRef(({className:t,children:r,...a},l)=>o.jsxs(i.Trigger,{ref:l,className:e.cn("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[placeholder]:text-muted-foreground [&>span]:line-clamp-1",t),...a,children:[r,o.jsx(i.Icon,{asChild:!0,children:o.jsx(c.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));T.displayName=i.Trigger.displayName;const p=s.forwardRef(({className:t,...r},a)=>o.jsx(i.ScrollUpButton,{ref:a,className:e.cn("flex cursor-default items-center justify-center py-1",t),...r,children:o.jsx(c.ChevronUp,{className:"h-4 w-4"})}));p.displayName=i.ScrollUpButton.displayName;const g=s.forwardRef(({className:t,...r},a)=>o.jsx(i.ScrollDownButton,{ref:a,className:e.cn("flex cursor-default items-center justify-center py-1",t),...r,children:o.jsx(c.ChevronDown,{className:"h-4 w-4"})}));g.displayName=i.ScrollDownButton.displayName;const N=s.forwardRef(({className:t,children:r,position:a="popper",...l},d)=>o.jsx(i.Portal,{children:o.jsxs(i.Content,{ref:d,className:e.cn("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] origin-[--radix-select-content-transform-origin] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:a,...l,children:[o.jsx(p,{}),o.jsx(i.Viewport,{className:e.cn("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),o.jsx(g,{})]})}));N.displayName=i.Content.displayName;const M=s.forwardRef(({className:t,...r},a)=>o.jsx(i.Label,{ref:a,className:e.cn("px-2 py-1.5 text-sm font-semibold",t),...r}));M.displayName=i.Label.displayName;const j=s.forwardRef(({className:t,children:r,...a},l)=>o.jsxs(i.Item,{ref:l,className:e.cn("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...a,children:[o.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(i.ItemIndicator,{children:o.jsx(c.Check,{className:"h-4 w-4"})})}),o.jsx(i.ItemText,{children:r})]}));j.displayName=i.Item.displayName;const A=s.forwardRef(({className:t,...r},a)=>o.jsx(i.Separator,{ref:a,className:e.cn("-mx-1 my-1 h-px bg-muted",t),...r}));A.displayName=i.Separator.displayName;const I=s.forwardRef(({className:t,...r},a)=>o.jsxs(u.Root,{ref:a,className:e.cn("relative flex w-full touch-none select-none items-center",t),...r,children:[o.jsx(u.Track,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20",children:o.jsx(u.Range,{className:"absolute h-full bg-primary"})}),o.jsx(u.Thumb,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})]}));I.displayName=u.Root.displayName;const R=_.cva("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),P=s.forwardRef(({className:t,variant:r,size:a,...l},d)=>o.jsx(f.Root,{ref:d,className:e.cn(R({variant:r,size:a,className:t})),...l}));P.displayName=f.Root.displayName;exports.Accordion=e.Accordion;exports.AccordionContent=e.AccordionContent;exports.AccordionItem=e.AccordionItem;exports.AccordionTrigger=e.AccordionTrigger;exports.Alert=e.Alert;exports.AlertDescription=e.AlertDescription;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.AlertDialogOverlay=e.AlertDialogOverlay;exports.AlertDialogPortal=e.AlertDialogPortal;exports.AlertDialogTitle=e.AlertDialogTitle;exports.AlertDialogTrigger=e.AlertDialogTrigger;exports.AlertTitle=e.AlertTitle;exports.Avatar=e.Avatar;exports.AvatarFallback=e.AvatarFallback;exports.AvatarImage=e.AvatarImage;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.Dialog=e.Dialog;exports.DialogClose=e.DialogClose;exports.DialogContent=e.DialogContent;exports.DialogDescription=e.DialogDescription;exports.DialogFooter=e.DialogFooter;exports.DialogHeader=e.DialogHeader;exports.DialogOverlay=e.DialogOverlay;exports.DialogPortal=e.DialogPortal;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.PopoverAnchor=e.PopoverAnchor;exports.PopoverContent=e.PopoverContent;exports.PopoverTrigger=e.PopoverTrigger;exports.ScrollArea=e.ScrollArea;exports.ScrollBar=e.ScrollBar;exports.Separator=e.Separator;exports.Sheet=e.Sheet;exports.SheetClose=e.SheetClose;exports.SheetContent=e.SheetContent;exports.SheetDescription=e.SheetDescription;exports.SheetFooter=e.SheetFooter;exports.SheetHeader=e.SheetHeader;exports.SheetOverlay=e.SheetOverlay;exports.SheetPortal=e.SheetPortal;exports.SheetTitle=e.SheetTitle;exports.SheetTrigger=e.SheetTrigger;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.TooltipProvider=e.TooltipProvider;exports.TooltipTrigger=e.TooltipTrigger;exports.badgeVariants=e.badgeVariants;exports.buttonVariants=e.buttonVariants;exports.ContextMenu=z;exports.ContextMenuCheckboxItem=S;exports.ContextMenuContent=C;exports.ContextMenuGroup=V;exports.ContextMenuItem=h;exports.ContextMenuLabel=D;exports.ContextMenuPortal=F;exports.ContextMenuRadioGroup=U;exports.ContextMenuRadioItem=w;exports.ContextMenuSeparator=v;exports.ContextMenuShortcut=y;exports.ContextMenuSub=q;exports.ContextMenuSubContent=b;exports.ContextMenuSubTrigger=x;exports.ContextMenuTrigger=O;exports.Select=E;exports.SelectContent=N;exports.SelectGroup=J;exports.SelectItem=j;exports.SelectLabel=M;exports.SelectScrollDownButton=g;exports.SelectScrollUpButton=p;exports.SelectSeparator=A;exports.SelectTrigger=T;exports.SelectValue=K;exports.Slider=I;exports.Toggle=P;exports.toggleVariants=R;
|
package/dist/ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as n } from "./sooner-
|
|
2
|
-
import { A as $, d as ee, a as ae, b as te, e as oe, f as re, h as se, i as ne, j as ie, k as le, l as de, m as ce, n as me, o as pe, p as ue, q as fe, r as ge, g as he, s as be, u as xe, t as we, v as ye, B as ve, C as Ce, y as Ne, z as Se, D as De, E as Te, F as Re, G as Me, H as Ie, K as Ae, L as Pe, I as ke, M as ze, J as je, O as Be, N as Ge, P as Le, Q as He, R as Ve, S as Fe, T as Ue, U as Oe, V as _e, W as Ee, X as qe, Y as Je, Z as Ke, _ as Qe, $ as We, a0 as Xe, a1 as Ye, a2 as Ze, a3 as $e, a4 as ea, a5 as aa, a6 as ta, a7 as oa, a8 as ra, a9 as sa, aa as na, ab as ia, ac as la, ad as da, ae as ca, af as ma, ag as pa, ah as ua, ai as fa, aj as ga, ak as ha, al as ba, am as xa, an as wa, ao as ya, ap as va, aq as Ca, ar as Na, as as Sa, at as Da, au as Ta, av as Ra, aw as Ma, ax as Ia, ay as Aa, aA as Pa, aB as ka, aC as za, aD as ja, aE as Ba, aF as Ga, az as La, aG as Ha, aH as Va, aI as Fa, aJ as Ua, w as Oa, x as _a } from "./sooner-
|
|
1
|
+
import { c as n } from "./sooner-H65duPYc.js";
|
|
2
|
+
import { A as $, d as ee, a as ae, b as te, e as oe, f as re, h as se, i as ne, j as ie, k as le, l as de, m as ce, n as me, o as pe, p as ue, q as fe, r as ge, g as he, s as be, u as xe, t as we, v as ye, B as ve, C as Ce, y as Ne, z as Se, D as De, E as Te, F as Re, G as Me, H as Ie, K as Ae, L as Pe, I as ke, M as ze, J as je, O as Be, N as Ge, P as Le, Q as He, R as Ve, S as Fe, T as Ue, U as Oe, V as _e, W as Ee, X as qe, Y as Je, Z as Ke, _ as Qe, $ as We, a0 as Xe, a1 as Ye, a2 as Ze, a3 as $e, a4 as ea, a5 as aa, a6 as ta, a7 as oa, a8 as ra, a9 as sa, aa as na, ab as ia, ac as la, ad as da, ae as ca, af as ma, ag as pa, ah as ua, ai as fa, aj as ga, ak as ha, al as ba, am as xa, an as wa, ao as ya, ap as va, aq as Ca, ar as Na, as as Sa, at as Da, au as Ta, av as Ra, aw as Ma, ax as Ia, ay as Aa, aA as Pa, aB as ka, aC as za, aD as ja, aE as Ba, aF as Ga, az as La, aG as Ha, aH as Va, aI as Fa, aJ as Ua, w as Oa, x as _a } from "./sooner-H65duPYc.js";
|
|
3
3
|
import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
|
4
4
|
import * as r from "@radix-ui/react-context-menu";
|
|
5
5
|
import { ChevronRight as b, Check as p, Circle as x, ChevronDown as u, ChevronUp as w } from "lucide-react";
|
package/package.json
CHANGED
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { getRegisteredChaiBlock as O } from "@chaibuilder/runtime";
|
|
2
|
-
import { memoize as $, get as c, cloneDeep as m, forEach as u, keys as C, isString as _, startsWith as f, isArray as h, isEmpty as d, includes as R } from "lodash-es";
|
|
3
|
-
import { twMerge as x } from "tailwind-merge";
|
|
4
|
-
const E = "#styles:", j = "__ADD_BLOCK_INTERNAL_ROOT", B = (s) => {
|
|
5
|
-
if (s = s.replace(E, ""), !s) return { baseClasses: "", classes: "" };
|
|
6
|
-
const t = s.split(/,(?![^\[]*\])/);
|
|
7
|
-
if (t.length === 1)
|
|
8
|
-
return { baseClasses: "", classes: t[0].trim() };
|
|
9
|
-
const [a, ...e] = t;
|
|
10
|
-
return {
|
|
11
|
-
baseClasses: a.trim(),
|
|
12
|
-
classes: e.join(",").trim().replace(/ +(?= )/g, "")
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
import.meta.vitest && describe("getSplitChaiClasses", () => {
|
|
16
|
-
it("should return the base classes and the classes", () => {
|
|
17
|
-
const s = {
|
|
18
|
-
",styles-2": { baseClasses: "", classes: "styles-2" },
|
|
19
|
-
"styles-1,styles-2": { baseClasses: "styles-1", classes: "styles-2" },
|
|
20
|
-
",bg-[linear-gradient(-10deg,black,transparent_100%)]": {
|
|
21
|
-
baseClasses: "",
|
|
22
|
-
classes: "bg-[linear-gradient(-10deg,black,transparent_100%)]"
|
|
23
|
-
},
|
|
24
|
-
"styles-1,bg-[linear-gradient(-10deg,black,transparent_100%)]": {
|
|
25
|
-
baseClasses: "styles-1",
|
|
26
|
-
classes: "bg-[linear-gradient(-10deg,black,transparent_100%)]"
|
|
27
|
-
},
|
|
28
|
-
someclass: {
|
|
29
|
-
baseClasses: "",
|
|
30
|
-
classes: "someclass"
|
|
31
|
-
},
|
|
32
|
-
",bg-red-500 text-center font-bold": {
|
|
33
|
-
baseClasses: "",
|
|
34
|
-
classes: "bg-red-500 text-center font-bold"
|
|
35
|
-
},
|
|
36
|
-
"bg-[linear-gradient(-10deg,black,transparent_100%)], bg-[linear-gradient(-10deg,black,transparent_100%)]": {
|
|
37
|
-
baseClasses: "bg-[linear-gradient(-10deg,black,transparent_100%)]",
|
|
38
|
-
classes: "bg-[linear-gradient(-10deg,black,transparent_100%)]"
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
for (let t in s) {
|
|
42
|
-
const a = B(`${E}${t}`);
|
|
43
|
-
expect(a).toEqual(s[t]);
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
function D(s, t, a) {
|
|
48
|
-
const e = c(a, "i18nProps", []);
|
|
49
|
-
if (d(t) || d(e)) return s;
|
|
50
|
-
const r = m(s);
|
|
51
|
-
return u(C(r), (n) => {
|
|
52
|
-
R(e, n) && !d(t) && (r[n] = c(r, `${n}-${t}`, r[n]));
|
|
53
|
-
}), r;
|
|
54
|
-
}
|
|
55
|
-
const N = (s, t, { index: a, key: e }) => {
|
|
56
|
-
const r = m(s);
|
|
57
|
-
return u(C(r), (n) => {
|
|
58
|
-
if (_(r[n]) && !f(n, "_")) {
|
|
59
|
-
let i = r[n];
|
|
60
|
-
n === "repeaterItems" && (r.repeaterItemsBinding = i);
|
|
61
|
-
const o = /\{\{(.*?)\}\}/g, g = i.match(o);
|
|
62
|
-
g && g.forEach((l) => {
|
|
63
|
-
let p = l.slice(2, -2);
|
|
64
|
-
a !== -1 && e !== "" && f(p, "$index.") && (p = `${e.replace(/\{\{(.*)\}\}/g, "$1")}.${p.replace("$index", `${a}`)}`);
|
|
65
|
-
const b = c(t, p, l);
|
|
66
|
-
i = h(b) ? b : i.replace(l, b);
|
|
67
|
-
}), r[n] = i;
|
|
68
|
-
}
|
|
69
|
-
}), r;
|
|
70
|
-
}, T = $((s) => {
|
|
71
|
-
const { baseClasses: t, classes: a } = B(s);
|
|
72
|
-
return x(t, a);
|
|
73
|
-
});
|
|
74
|
-
function v(s, t) {
|
|
75
|
-
return c(s, `${t}_attrs`, {});
|
|
76
|
-
}
|
|
77
|
-
function P(s, t = !0) {
|
|
78
|
-
const a = {};
|
|
79
|
-
return Object.keys(s).forEach((e) => {
|
|
80
|
-
if (_(s[e]) && s[e].startsWith(E)) {
|
|
81
|
-
const r = T(s[e]), n = v(s, e);
|
|
82
|
-
a[e] = {
|
|
83
|
-
...!d(r) && { className: r },
|
|
84
|
-
...n,
|
|
85
|
-
...t ? {
|
|
86
|
-
"data-style-prop": e,
|
|
87
|
-
"data-block-parent": s._id,
|
|
88
|
-
"data-style-id": `${e}-${s._id}`
|
|
89
|
-
} : {}
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
}), a;
|
|
93
|
-
}
|
|
94
|
-
const L = $((s) => {
|
|
95
|
-
const t = O(s), a = c(t, "schema.properties", {});
|
|
96
|
-
return Object.fromEntries(Object.entries(a).filter(([, e]) => c(e, "runtime", !1)));
|
|
97
|
-
}), M = (s, t) => {
|
|
98
|
-
if (!h(s)) return s;
|
|
99
|
-
let a = s, e;
|
|
100
|
-
return typeof t.limit == "number" && t.limit > 0 && (e = t.limit), e !== void 0 && (a = a.slice(0, e)), a;
|
|
101
|
-
}, S = (s, t) => {
|
|
102
|
-
const a = m(s);
|
|
103
|
-
return u(C(a), (e) => {
|
|
104
|
-
if (_(a[e]) && !f(e, "_")) {
|
|
105
|
-
let r = a[e];
|
|
106
|
-
e === "repeaterItems" && (a.repeaterItemsBinding = r);
|
|
107
|
-
const n = /\{\{(.*?)\}\}/g, i = r.match(n);
|
|
108
|
-
i && i.forEach((o) => {
|
|
109
|
-
let g = o.slice(2, -2);
|
|
110
|
-
const l = c(t, g, o);
|
|
111
|
-
r = h(l) ? l : r.replace(o, l);
|
|
112
|
-
}), a[e] = r;
|
|
113
|
-
}
|
|
114
|
-
}), a;
|
|
115
|
-
};
|
|
116
|
-
export {
|
|
117
|
-
j as R,
|
|
118
|
-
E as S,
|
|
119
|
-
N as a,
|
|
120
|
-
D as b,
|
|
121
|
-
L as c,
|
|
122
|
-
M as d,
|
|
123
|
-
S as e,
|
|
124
|
-
B as f,
|
|
125
|
-
P as g
|
|
126
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const f=require("@chaibuilder/runtime"),e=require("lodash-es"),m=require("tailwind-merge"),u="#styles:",C="__ADD_BLOCK_INTERNAL_ROOT",b=s=>{if(s=s.replace(u,""),!s)return{baseClasses:"",classes:""};const i=s.split(/,(?![^\[]*\])/);if(i.length===1)return{baseClasses:"",classes:i[0].trim()};const[a,...t]=i;return{baseClasses:a.trim(),classes:t.join(",").trim().replace(/ +(?= )/g,"")}};function E(s,i,a){const t=e.get(a,"i18nProps",[]);if(e.isEmpty(i)||e.isEmpty(t))return s;const n=e.cloneDeep(s);return e.forEach(e.keys(n),r=>{e.includes(t,r)&&!e.isEmpty(i)&&(n[r]=e.get(n,`${r}-${i}`,n[r]))}),n}const h=(s,i,{index:a,key:t})=>{const n=e.cloneDeep(s);return e.forEach(e.keys(n),r=>{if(e.isString(n[r])&&!e.startsWith(r,"_")){let l=n[r];r==="repeaterItems"&&(n.repeaterItemsBinding=l);const g=/\{\{(.*?)\}\}/g,o=l.match(g);o&&o.forEach(c=>{let p=c.slice(2,-2);a!==-1&&t!==""&&e.startsWith(p,"$index.")&&(p=`${t.replace(/\{\{(.*)\}\}/g,"$1")}.${p.replace("$index",`${a}`)}`);const d=e.get(i,p,c);l=e.isArray(d)?d:l.replace(c,d)}),n[r]=l}}),n},_=e.memoize(s=>{const{baseClasses:i,classes:a}=b(s);return m.twMerge(i,a)});function y(s,i){return e.get(s,`${i}_attrs`,{})}function B(s,i=!0){const a={};return Object.keys(s).forEach(t=>{if(e.isString(s[t])&&s[t].startsWith(u)){const n=_(s[t]),r=y(s,t);a[t]={...!e.isEmpty(n)&&{className:n},...r,...i?{"data-style-prop":t,"data-block-parent":s._id,"data-style-id":`${t}-${s._id}`}:{}}}}),a}const $=e.memoize(s=>{const i=f.getRegisteredChaiBlock(s),a=e.get(i,"schema.properties",{});return Object.fromEntries(Object.entries(a).filter(([,t])=>e.get(t,"runtime",!1)))}),T=(s,i)=>{if(!e.isArray(s))return s;let a=s,t;return typeof i.limit=="number"&&i.limit>0&&(t=i.limit),t!==void 0&&(a=a.slice(0,t)),a},O=(s,i)=>{const a=e.cloneDeep(s);return e.forEach(e.keys(a),t=>{if(e.isString(a[t])&&!e.startsWith(t,"_")){let n=a[t];t==="repeaterItems"&&(a.repeaterItemsBinding=n);const r=/\{\{(.*?)\}\}/g,l=n.match(r);l&&l.forEach(g=>{let o=g.slice(2,-2);const c=e.get(i,o,g);n=e.isArray(c)?c:n.replace(g,c)}),a[t]=n}}),a};exports.ROOT_TEMP_KEY=C;exports.STYLES_KEY=u;exports.applyBinding=h;exports.applyChaiDataBinding=O;exports.applyLanguage=E;exports.applyLimit=T;exports.getBlockRuntimeProps=$;exports.getBlockTagAttributes=B;exports.getSplitChaiClasses=b;
|