@chaibuilder/sdk 2.0.0-beta.6 → 2.0.0-beta.60
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/README.md +0 -4
- package/dist/ChaiThemeFn-Cort9tch.js +201 -0
- package/dist/ChaiThemeFn-DQu-2Eh9.cjs +13 -0
- package/dist/CodeEditor-BLTQpTTM.js +67 -0
- package/dist/CodeEditor-CJhjQonw.cjs +1 -0
- package/dist/STRINGS-DtEft2kY.js +5 -0
- package/dist/STRINGS-n7COZtKr.cjs +1 -0
- package/dist/Topbar-CEyGOl06.js +16 -0
- package/dist/Topbar-pFV2NO8v.cjs +1 -0
- package/dist/{context-menu-0lRey9QY.cjs → context-menu-C_ITMOD1.cjs} +1 -1
- package/dist/{context-menu-I8woggB3.js → context-menu-FCyNTUkl.js} +66 -66
- package/dist/core.cjs +61 -1
- package/dist/core.d.ts +116 -54
- package/dist/core.js +8848 -123
- package/dist/{iconBase-Ief2hJUZ.js → iconBase-DHfFLkem.js} +6 -12
- package/dist/{jsx-runtime-Sp0orL4X.js → jsx-runtime-Drh4NO5G.js} +234 -232
- package/dist/jsx-runtime-qcKc-DpB.cjs +30 -0
- package/dist/mockServiceWorker.js +39 -24
- package/dist/plugin-2xcljWGM.cjs +1 -0
- package/dist/plugin-kUMxtQR5.js +24 -0
- package/dist/render.cjs +2 -2
- package/dist/render.d.ts +35 -16
- package/dist/render.js +146 -136
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.d.ts +0 -1
- package/dist/runtime.js +0 -20
- package/dist/{style.css → sdk.css} +1 -1
- package/dist/tailwind.cjs +1 -1
- package/dist/tailwind.d.ts +31 -26
- package/dist/tailwind.js +8 -10
- package/dist/ui.cjs +1 -1
- package/dist/ui.d.ts +6 -51
- package/dist/ui.js +199 -356
- package/dist/web-blocks.cjs +29 -2
- package/dist/web-blocks.js +1740 -822
- package/package.json +122 -121
- package/dist/CodeEditor-D-BYzobl.js +0 -127
- package/dist/CodeEditor-la8rXIF0.cjs +0 -1
- package/dist/STRINGS-Xxstm-7I.js +0 -7
- package/dist/STRINGS-Yl7cSWDc.cjs +0 -1
- package/dist/Topbar-501zWjpi.cjs +0 -1
- package/dist/Topbar-Npy8Q-99.js +0 -161
- package/dist/controls-lEwMTdPQ.js +0 -234
- package/dist/controls-p9IwFnPx.cjs +0 -1
- package/dist/index-kcfrsdbY.cjs +0 -61
- package/dist/index-pDSQeyx5.js +0 -8544
- package/dist/jsx-runtime-JYMCiFoE.cjs +0 -27
- package/dist/plugin-UiUFs2fK.js +0 -44
- package/dist/plugin-f6SDZ_Or.js +0 -108
- package/dist/plugin-jum1MjXp.cjs +0 -1
- package/dist/plugin-xOpS-UNV.cjs +0 -1
- /package/dist/{iconBase-aZzpqff_.cjs → iconBase-Cn2BsTrq.cjs} +0 -0
|
@@ -4,8 +4,7 @@ import { twMerge as O } from "tailwind-merge";
|
|
|
4
4
|
import a from "react";
|
|
5
5
|
function D(e = 6, t = "abcdefghijklmnopqrstuvwxyzABCD") {
|
|
6
6
|
let r = "";
|
|
7
|
-
for (let n = e; n > 0; --n)
|
|
8
|
-
r += t[Math.floor(Math.random() * t.length)];
|
|
7
|
+
for (let n = e; n > 0; --n) r += t[Math.floor(Math.random() * t.length)];
|
|
9
8
|
return r;
|
|
10
9
|
}
|
|
11
10
|
const N = (e) => e >= 1536 ? "2XL" : e >= 1280 ? "XL" : e >= 1024 ? "LG" : e >= 768 ? "MD" : e >= 640 ? "SM" : "XS", z = (...e) => O(v(e));
|
|
@@ -17,8 +16,7 @@ var p = {
|
|
|
17
16
|
attr: void 0
|
|
18
17
|
}, s = a.createContext && /* @__PURE__ */ a.createContext(p), y = ["attr", "size", "title"];
|
|
19
18
|
function d(e, t) {
|
|
20
|
-
if (e == null)
|
|
21
|
-
return {};
|
|
19
|
+
if (e == null) return {};
|
|
22
20
|
var r = j(e, t), n, i;
|
|
23
21
|
if (Object.getOwnPropertySymbols) {
|
|
24
22
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -28,13 +26,11 @@ function d(e, t) {
|
|
|
28
26
|
return r;
|
|
29
27
|
}
|
|
30
28
|
function j(e, t) {
|
|
31
|
-
if (e == null)
|
|
32
|
-
return {};
|
|
29
|
+
if (e == null) return {};
|
|
33
30
|
var r = {};
|
|
34
31
|
for (var n in e)
|
|
35
32
|
if (Object.prototype.hasOwnProperty.call(e, n)) {
|
|
36
|
-
if (t.indexOf(n) >= 0)
|
|
37
|
-
continue;
|
|
33
|
+
if (t.indexOf(n) >= 0) continue;
|
|
38
34
|
r[n] = e[n];
|
|
39
35
|
}
|
|
40
36
|
return r;
|
|
@@ -78,13 +74,11 @@ function h(e) {
|
|
|
78
74
|
return typeof t == "symbol" ? t : t + "";
|
|
79
75
|
}
|
|
80
76
|
function w(e, t) {
|
|
81
|
-
if (typeof e != "object" || !e)
|
|
82
|
-
return e;
|
|
77
|
+
if (typeof e != "object" || !e) return e;
|
|
83
78
|
var r = e[Symbol.toPrimitive];
|
|
84
79
|
if (r !== void 0) {
|
|
85
80
|
var n = r.call(e, t || "default");
|
|
86
|
-
if (typeof n != "object")
|
|
87
|
-
return n;
|
|
81
|
+
if (typeof n != "object") return n;
|
|
88
82
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
89
83
|
}
|
|
90
84
|
return (t === "string" ? String : Number)(e);
|