@chaibuilder/sdk 1.2.90 → 1.2.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CodeEditor-awVVPqel.cjs +1 -0
- package/dist/{CodeEditor-t2oVfSyK.js → CodeEditor-orTEdw7a.js} +31 -28
- package/dist/Topbar--KOfsR94.cjs +1 -0
- package/dist/{Topbar-x0tjZaWC.js → Topbar-OPlOc1Ha.js} +22 -19
- package/dist/{UnsplashImages-965l8pGL.js → UnsplashImages-WaGyNL1z.js} +36 -33
- package/dist/UnsplashImages-g-8MvB9W.cjs +1 -0
- package/dist/{UploadImages-glp4ZyQm.js → UploadImages-GiKofaXX.js} +37 -61
- package/dist/UploadImages-Ic_iZgWY.cjs +1 -0
- package/dist/_commonjsHelpers-f3sTPFkQ.js +8 -0
- package/dist/_commonjsHelpers-f52AuuUj.cjs +1 -0
- package/dist/button-9Duvj2dH.js +42 -0
- package/dist/button-oQgWN0j0.cjs +1 -0
- package/dist/context-menu-8MWP_Ikf.cjs +1 -0
- package/dist/context-menu-yLeOsx9j.js +943 -0
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +34 -11
- package/dist/core.js +81 -76
- package/dist/iconBase-BnEC5_qG.js +1583 -0
- package/dist/iconBase-_bgMuxa5.cjs +1 -0
- package/dist/index-Hj8wMhx_.cjs +223 -0
- package/dist/{index-qptv-vi2.js → index-yJ1H6b2C.js} +9771 -10776
- package/dist/plugin-02QsHeBE.cjs +1 -0
- package/dist/{plugin-P0tpo_XZ.cjs → plugin-BXpjdQxx.cjs} +1 -1
- package/dist/{plugin-f5uJtdXY.js → plugin-DdKuAR7p.js} +1 -1
- package/dist/plugin-VDzc8jUO.js +52 -0
- package/dist/render.cjs +2 -2
- package/dist/render.js +7 -6
- package/dist/tailwind.cjs +1 -1
- package/dist/tailwind.js +7 -6
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +242 -301
- package/dist/web-blocks.cjs +1 -1
- package/dist/web-blocks.js +344 -289
- package/package.json +2 -2
- package/dist/CodeEditor-gqhS0hpB.cjs +0 -1
- package/dist/Topbar-s9YVXp9Z.cjs +0 -1
- package/dist/UnsplashImages-DRQaQoM-.cjs +0 -1
- package/dist/UploadImages-CumBJ3oE.cjs +0 -1
- package/dist/context-menu--DZnHfxj.cjs +0 -1
- package/dist/context-menu-DeUUflYX.js +0 -910
- package/dist/iconBase-vJD0OXxU.cjs +0 -1
- package/dist/iconBase-zweRWSz0.js +0 -323
- package/dist/index-BuZrwlQG.cjs +0 -223
- package/dist/plugin-_F-KZp1i.cjs +0 -1
- package/dist/plugin-sJ3Hzvpv.js +0 -57
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("lodash-es"),b=require("clsx"),h=require("tailwind-merge"),u=require("react");function v(e=6,t="abcdefghijklmnopqrstuvwxyzABCD"){let i="";for(let r=e;r>0;--r)i+=t[Math.floor(Math.random()*t.length)];return i}const O=e=>e>=1536?"2XL":e>=1280?"XL":e>=1024?"LG":e>=768?"MD":e>=640?"SM":"XS",w=(...e)=>h.twMerge(b.clsx(e)),j="#styles:",q=e=>({type:"singular",default:e.default||"",binding:n.get(e,"binding",!0),dataType:"string",schema:{type:"string",...n.omit(e,["i18n","required"])},uiSchema:{"ui:widget":"code"}}),P=e=>({type:"singular",default:e.default||"",binding:n.get(e,"binding",!0),dataType:"string",required:e.required||!1,ai:e.ai||void 0,schema:{type:"string",...n.omit(e,["ai","required"])},uiSchema:{"ui:placeholder":e.placeholder||"Enter here"}}),S=e=>({type:"singular",default:e.default||"",binding:n.get(e,"binding",!0),dataType:"string",required:e.required||!1,ai:e.ai||void 0,schema:{type:"string",...n.omit(e,["i18n","required","rows"])},uiSchema:{"ui:widget":"textarea","ui:placeholder":e.placeholder||"Enter here","ui:options":{rows:e.rows||4}}}),T=e=>({type:"singular",i18n:e.i18n||!1,default:e.default||!1,dataType:"boolean",binding:n.get(e,"binding",!0),ai:e.ai||void 0,schema:{type:"boolean",...n.omit(e,["i18n","required"])},uiSchema:{"ui:title":e.title||"Select Item","ui:description":""}}),x=e=>({type:"singular",default:e.default||"",binding:n.get(e,"binding",!0),dataType:"number",required:e.required||!1,ai:e.ai||void 0,schema:{type:"number",...n.omit(e,["i18n","required"])},uiSchema:{}}),E=e=>({type:"singular",default:e.default||"",binding:n.get(e,"binding",!0),required:e.required||!1,dataType:"string",ai:e.ai||void 0,schema:{type:"string",...n.omit(e,["i18n","required","options","binding"]),oneOf:e.options.map(t=>({const:t.value,title:t.title}))},uiSchema:{"ui:widget":"select"}}),I=e=>({type:"singular",i18n:e.i18n||!1,default:e.default||"",binding:n.get(e,"binding",!0),dataType:"string",ai:e.ai||void 0,schema:{type:"string",...n.omit(e,["i18n","required"])},uiSchema:{"ui:widget":"color"}}),D=e=>({type:"singular",default:e.default||"",binding:n.get(e,"binding",!0),dataType:"string",ai:e.ai||void 0,schema:{type:"string",...n.omit(e,["i18n","required"])},uiSchema:{"ui:widget":"richtext"}}),C=e=>({type:"model",title:e.title,dataType:"object",default:e.default||{},binding:n.get(e,"binding",!0),properties:e.properties}),N=e=>({type:"list",itemProperties:e.itemProperties,binding:n.get(e,"binding",!0),title:e.title,ai:e.ai||void 0,dataType:"array",default:e.default||[],itemTitle:e.getItemLabel?e.getItemLabel({}):()=>""}),_=e=>({type:"styles",binding:!1,default:`${j},${e.default||""}`,presets:e.presets||{}}),z=e=>({default:e.default||"",binding:n.get(e,"binding",!0),type:"singular",dataType:"string",ai:e.ai||void 0,schema:{type:"string",title:"Icon",default:e.default||""},uiSchema:{"ui:widget":"icon"}}),L=e=>({default:e.default,type:"singular",binding:n.get(e,"binding",!0),dataType:"object",ai:e.ai||void 0,schema:{type:"object",...e||{},properties:{type:{type:"string"},href:{type:"string"},target:{type:"string"}}},uiSchema:{"ui:field":"link"}}),M=e=>({type:"singular",default:e.default||"",binding:n.get(e,"binding",!0),dataType:"string",ai:e.ai||void 0,schema:{type:"string",...n.omit(e,["i18n","required"])},uiSchema:{"ui:widget":"image"}});var f={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},c=u.createContext&&u.createContext(f),B=["attr","size","title"];function U(e,t){if(e==null)return{};var i=G(e,t),r,a;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)r=l[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function G(e,t){if(e==null)return{};var i={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;i[r]=e[r]}return i}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},d.apply(this,arguments)}function p(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),i.push.apply(i,r)}return i}function s(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?p(Object(i),!0).forEach(function(r){W(e,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):p(Object(i)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))})}return e}function W(e,t,i){return t=X(t),t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function X(e){var t=V(e,"string");return typeof t=="symbol"?t:t+""}function V(e,t){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var r=i.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function m(e){return e&&e.map((t,i)=>u.createElement(t.tag,s({key:i},t.attr),m(t.child)))}function $(e){return t=>u.createElement(A,d({attr:s({},e.attr)},t),m(e.child))}function A(e){var t=i=>{var{attr:r,size:a,title:l}=e,y=U(e,B),g=a||i.size||"1em",o;return i.className&&(o=i.className),e.className&&(o=(o?o+" ":"")+e.className),u.createElement("svg",d({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},i.attr,r,y,{className:o,style:s(s({color:e.color||i.color},i.style),e.style),height:g,width:g,xmlns:"http://www.w3.org/2000/svg"}),l&&u.createElement("title",null,l),e.children)};return c!==void 0?u.createElement(c.Consumer,null,i=>t(i)):t(f)}exports.GenIcon=$;exports.S=N;exports.T=z;exports.b=D;exports.c=T;exports.cn=w;exports.f=E;exports.g=P;exports.generateUUID=v;exports.getBreakpointValue=O;exports.h=C;exports.o=_;exports.q=L;exports.r=S;exports.s=I;exports.u=q;exports.v=M;exports.y=x;
|
|
@@ -1,323 +0,0 @@
|
|
|
1
|
-
import { get as n, omit as a } from "lodash-es";
|
|
2
|
-
import { clsx as h } from "clsx";
|
|
3
|
-
import { twMerge as v } from "tailwind-merge";
|
|
4
|
-
import l from "react";
|
|
5
|
-
function D(e = 6, t = "abcdefghijklmnopqrstuvwxyzABCD") {
|
|
6
|
-
let i = "";
|
|
7
|
-
for (let r = e; r > 0; --r)
|
|
8
|
-
i += t[Math.floor(Math.random() * t.length)];
|
|
9
|
-
return i;
|
|
10
|
-
}
|
|
11
|
-
const N = (e) => e >= 1536 ? "2XL" : e >= 1280 ? "XL" : e >= 1024 ? "LG" : e >= 768 ? "MD" : e >= 640 ? "SM" : "XS", z = (...e) => v(h(e)), O = "#styles:", L = (e) => ({
|
|
12
|
-
type: "singular",
|
|
13
|
-
default: e.default || "",
|
|
14
|
-
binding: n(e, "binding", !0),
|
|
15
|
-
dataType: "string",
|
|
16
|
-
schema: {
|
|
17
|
-
type: "string",
|
|
18
|
-
...a(e, ["i18n", "required"])
|
|
19
|
-
},
|
|
20
|
-
uiSchema: {
|
|
21
|
-
"ui:widget": "code"
|
|
22
|
-
}
|
|
23
|
-
}), M = (e) => ({
|
|
24
|
-
type: "singular",
|
|
25
|
-
default: e.default || "",
|
|
26
|
-
binding: n(e, "binding", !0),
|
|
27
|
-
dataType: "string",
|
|
28
|
-
required: e.required || !1,
|
|
29
|
-
ai: e.ai || void 0,
|
|
30
|
-
schema: {
|
|
31
|
-
type: "string",
|
|
32
|
-
...a(e, ["ai", "required"])
|
|
33
|
-
},
|
|
34
|
-
uiSchema: {
|
|
35
|
-
"ui:placeholder": e.placeholder || "Enter here"
|
|
36
|
-
}
|
|
37
|
-
}), B = (e) => ({
|
|
38
|
-
type: "singular",
|
|
39
|
-
default: e.default || "",
|
|
40
|
-
binding: n(e, "binding", !0),
|
|
41
|
-
dataType: "string",
|
|
42
|
-
required: e.required || !1,
|
|
43
|
-
ai: e.ai || void 0,
|
|
44
|
-
schema: {
|
|
45
|
-
type: "string",
|
|
46
|
-
...a(e, ["i18n", "required", "rows"])
|
|
47
|
-
},
|
|
48
|
-
uiSchema: {
|
|
49
|
-
"ui:widget": "textarea",
|
|
50
|
-
"ui:placeholder": e.placeholder || "Enter here",
|
|
51
|
-
"ui:options": {
|
|
52
|
-
rows: e.rows || 4
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}), G = (e) => ({
|
|
56
|
-
type: "singular",
|
|
57
|
-
i18n: e.i18n || !1,
|
|
58
|
-
default: e.default || !1,
|
|
59
|
-
dataType: "boolean",
|
|
60
|
-
binding: n(e, "binding", !0),
|
|
61
|
-
ai: e.ai || void 0,
|
|
62
|
-
schema: {
|
|
63
|
-
type: "boolean",
|
|
64
|
-
...a(e, ["i18n", "required"])
|
|
65
|
-
},
|
|
66
|
-
uiSchema: {
|
|
67
|
-
"ui:title": e.title || "Select Item",
|
|
68
|
-
"ui:description": ""
|
|
69
|
-
}
|
|
70
|
-
}), W = (e) => ({
|
|
71
|
-
type: "singular",
|
|
72
|
-
default: e.default || "",
|
|
73
|
-
binding: n(e, "binding", !0),
|
|
74
|
-
dataType: "number",
|
|
75
|
-
required: e.required || !1,
|
|
76
|
-
ai: e.ai || void 0,
|
|
77
|
-
schema: {
|
|
78
|
-
type: "number",
|
|
79
|
-
...a(e, ["i18n", "required"])
|
|
80
|
-
},
|
|
81
|
-
uiSchema: {}
|
|
82
|
-
}), X = (e) => ({
|
|
83
|
-
type: "singular",
|
|
84
|
-
default: e.default || "",
|
|
85
|
-
binding: n(e, "binding", !0),
|
|
86
|
-
required: e.required || !1,
|
|
87
|
-
dataType: "string",
|
|
88
|
-
ai: e.ai || void 0,
|
|
89
|
-
schema: {
|
|
90
|
-
type: "string",
|
|
91
|
-
...a(e, ["i18n", "required", "options", "binding"]),
|
|
92
|
-
oneOf: e.options.map((t) => ({ const: t.value, title: t.title }))
|
|
93
|
-
},
|
|
94
|
-
uiSchema: {
|
|
95
|
-
"ui:widget": "select"
|
|
96
|
-
}
|
|
97
|
-
}), U = (e) => ({
|
|
98
|
-
type: "singular",
|
|
99
|
-
i18n: e.i18n || !1,
|
|
100
|
-
default: e.default || "",
|
|
101
|
-
binding: n(e, "binding", !0),
|
|
102
|
-
dataType: "string",
|
|
103
|
-
ai: e.ai || void 0,
|
|
104
|
-
schema: {
|
|
105
|
-
type: "string",
|
|
106
|
-
...a(e, ["i18n", "required"])
|
|
107
|
-
},
|
|
108
|
-
uiSchema: {
|
|
109
|
-
"ui:widget": "color"
|
|
110
|
-
}
|
|
111
|
-
}), $ = (e) => ({
|
|
112
|
-
type: "singular",
|
|
113
|
-
default: e.default || "",
|
|
114
|
-
binding: n(e, "binding", !0),
|
|
115
|
-
dataType: "string",
|
|
116
|
-
ai: e.ai || void 0,
|
|
117
|
-
schema: {
|
|
118
|
-
type: "string",
|
|
119
|
-
...a(e, ["i18n", "required"])
|
|
120
|
-
},
|
|
121
|
-
uiSchema: {
|
|
122
|
-
"ui:widget": "richtext"
|
|
123
|
-
}
|
|
124
|
-
}), A = (e) => ({
|
|
125
|
-
type: "model",
|
|
126
|
-
title: e.title,
|
|
127
|
-
dataType: "object",
|
|
128
|
-
default: e.default || {},
|
|
129
|
-
binding: n(e, "binding", !0),
|
|
130
|
-
properties: e.properties
|
|
131
|
-
}), K = (e) => ({
|
|
132
|
-
type: "list",
|
|
133
|
-
itemProperties: e.itemProperties,
|
|
134
|
-
binding: n(e, "binding", !0),
|
|
135
|
-
title: e.title,
|
|
136
|
-
ai: e.ai || void 0,
|
|
137
|
-
dataType: "array",
|
|
138
|
-
default: e.default || [],
|
|
139
|
-
itemTitle: e.getItemLabel ? e.getItemLabel({}) : () => ""
|
|
140
|
-
}), R = (e) => ({
|
|
141
|
-
type: "styles",
|
|
142
|
-
binding: !1,
|
|
143
|
-
default: `${O},${e.default || ""}`,
|
|
144
|
-
presets: e.presets || {}
|
|
145
|
-
}), V = (e) => ({
|
|
146
|
-
default: e.default || "",
|
|
147
|
-
binding: n(e, "binding", !0),
|
|
148
|
-
type: "singular",
|
|
149
|
-
dataType: "string",
|
|
150
|
-
ai: e.ai || void 0,
|
|
151
|
-
schema: {
|
|
152
|
-
type: "string",
|
|
153
|
-
title: "Icon",
|
|
154
|
-
default: e.default || ""
|
|
155
|
-
},
|
|
156
|
-
uiSchema: {
|
|
157
|
-
"ui:widget": "icon"
|
|
158
|
-
}
|
|
159
|
-
}), F = (e) => ({
|
|
160
|
-
default: e.default,
|
|
161
|
-
type: "singular",
|
|
162
|
-
binding: n(e, "binding", !0),
|
|
163
|
-
dataType: "object",
|
|
164
|
-
ai: e.ai || void 0,
|
|
165
|
-
schema: {
|
|
166
|
-
type: "object",
|
|
167
|
-
...e || {},
|
|
168
|
-
properties: {
|
|
169
|
-
type: { type: "string" },
|
|
170
|
-
href: { type: "string" },
|
|
171
|
-
target: { type: "string" }
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
uiSchema: {
|
|
175
|
-
"ui:field": "link"
|
|
176
|
-
}
|
|
177
|
-
}), H = (e) => ({
|
|
178
|
-
type: "singular",
|
|
179
|
-
default: e.default || "",
|
|
180
|
-
binding: n(e, "binding", !0),
|
|
181
|
-
dataType: "string",
|
|
182
|
-
ai: e.ai || void 0,
|
|
183
|
-
schema: {
|
|
184
|
-
type: "string",
|
|
185
|
-
...a(e, ["i18n", "required"])
|
|
186
|
-
},
|
|
187
|
-
uiSchema: {
|
|
188
|
-
"ui:widget": "image"
|
|
189
|
-
}
|
|
190
|
-
});
|
|
191
|
-
var m = {
|
|
192
|
-
color: void 0,
|
|
193
|
-
size: void 0,
|
|
194
|
-
className: void 0,
|
|
195
|
-
style: void 0,
|
|
196
|
-
attr: void 0
|
|
197
|
-
}, p = l.createContext && /* @__PURE__ */ l.createContext(m), w = ["attr", "size", "title"];
|
|
198
|
-
function j(e, t) {
|
|
199
|
-
if (e == null)
|
|
200
|
-
return {};
|
|
201
|
-
var i = P(e, t), r, u;
|
|
202
|
-
if (Object.getOwnPropertySymbols) {
|
|
203
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
204
|
-
for (u = 0; u < o.length; u++)
|
|
205
|
-
r = o[u], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (i[r] = e[r]);
|
|
206
|
-
}
|
|
207
|
-
return i;
|
|
208
|
-
}
|
|
209
|
-
function P(e, t) {
|
|
210
|
-
if (e == null)
|
|
211
|
-
return {};
|
|
212
|
-
var i = {};
|
|
213
|
-
for (var r in e)
|
|
214
|
-
if (Object.prototype.hasOwnProperty.call(e, r)) {
|
|
215
|
-
if (t.indexOf(r) >= 0)
|
|
216
|
-
continue;
|
|
217
|
-
i[r] = e[r];
|
|
218
|
-
}
|
|
219
|
-
return i;
|
|
220
|
-
}
|
|
221
|
-
function s() {
|
|
222
|
-
return s = Object.assign ? Object.assign.bind() : function(e) {
|
|
223
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
224
|
-
var i = arguments[t];
|
|
225
|
-
for (var r in i)
|
|
226
|
-
Object.prototype.hasOwnProperty.call(i, r) && (e[r] = i[r]);
|
|
227
|
-
}
|
|
228
|
-
return e;
|
|
229
|
-
}, s.apply(this, arguments);
|
|
230
|
-
}
|
|
231
|
-
function f(e, t) {
|
|
232
|
-
var i = Object.keys(e);
|
|
233
|
-
if (Object.getOwnPropertySymbols) {
|
|
234
|
-
var r = Object.getOwnPropertySymbols(e);
|
|
235
|
-
t && (r = r.filter(function(u) {
|
|
236
|
-
return Object.getOwnPropertyDescriptor(e, u).enumerable;
|
|
237
|
-
})), i.push.apply(i, r);
|
|
238
|
-
}
|
|
239
|
-
return i;
|
|
240
|
-
}
|
|
241
|
-
function c(e) {
|
|
242
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
243
|
-
var i = arguments[t] != null ? arguments[t] : {};
|
|
244
|
-
t % 2 ? f(Object(i), !0).forEach(function(r) {
|
|
245
|
-
S(e, r, i[r]);
|
|
246
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : f(Object(i)).forEach(function(r) {
|
|
247
|
-
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(i, r));
|
|
248
|
-
});
|
|
249
|
-
}
|
|
250
|
-
return e;
|
|
251
|
-
}
|
|
252
|
-
function S(e, t, i) {
|
|
253
|
-
return t = q(t), t in e ? Object.defineProperty(e, t, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = i, e;
|
|
254
|
-
}
|
|
255
|
-
function q(e) {
|
|
256
|
-
var t = T(e, "string");
|
|
257
|
-
return typeof t == "symbol" ? t : t + "";
|
|
258
|
-
}
|
|
259
|
-
function T(e, t) {
|
|
260
|
-
if (typeof e != "object" || !e)
|
|
261
|
-
return e;
|
|
262
|
-
var i = e[Symbol.toPrimitive];
|
|
263
|
-
if (i !== void 0) {
|
|
264
|
-
var r = i.call(e, t || "default");
|
|
265
|
-
if (typeof r != "object")
|
|
266
|
-
return r;
|
|
267
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
268
|
-
}
|
|
269
|
-
return (t === "string" ? String : Number)(e);
|
|
270
|
-
}
|
|
271
|
-
function y(e) {
|
|
272
|
-
return e && e.map((t, i) => /* @__PURE__ */ l.createElement(t.tag, c({
|
|
273
|
-
key: i
|
|
274
|
-
}, t.attr), y(t.child)));
|
|
275
|
-
}
|
|
276
|
-
function J(e) {
|
|
277
|
-
return (t) => /* @__PURE__ */ l.createElement(x, s({
|
|
278
|
-
attr: c({}, e.attr)
|
|
279
|
-
}, t), y(e.child));
|
|
280
|
-
}
|
|
281
|
-
function x(e) {
|
|
282
|
-
var t = (i) => {
|
|
283
|
-
var {
|
|
284
|
-
attr: r,
|
|
285
|
-
size: u,
|
|
286
|
-
title: o
|
|
287
|
-
} = e, b = j(e, w), g = u || i.size || "1em", d;
|
|
288
|
-
return i.className && (d = i.className), e.className && (d = (d ? d + " " : "") + e.className), /* @__PURE__ */ l.createElement("svg", s({
|
|
289
|
-
stroke: "currentColor",
|
|
290
|
-
fill: "currentColor",
|
|
291
|
-
strokeWidth: "0"
|
|
292
|
-
}, i.attr, r, b, {
|
|
293
|
-
className: d,
|
|
294
|
-
style: c(c({
|
|
295
|
-
color: e.color || i.color
|
|
296
|
-
}, i.style), e.style),
|
|
297
|
-
height: g,
|
|
298
|
-
width: g,
|
|
299
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
300
|
-
}), o && /* @__PURE__ */ l.createElement("title", null, o), e.children);
|
|
301
|
-
};
|
|
302
|
-
return p !== void 0 ? /* @__PURE__ */ l.createElement(p.Consumer, null, (i) => t(i)) : t(m);
|
|
303
|
-
}
|
|
304
|
-
export {
|
|
305
|
-
J as G,
|
|
306
|
-
K as S,
|
|
307
|
-
V as T,
|
|
308
|
-
N as a,
|
|
309
|
-
M as b,
|
|
310
|
-
z as c,
|
|
311
|
-
$ as d,
|
|
312
|
-
G as e,
|
|
313
|
-
X as f,
|
|
314
|
-
D as g,
|
|
315
|
-
A as h,
|
|
316
|
-
R as o,
|
|
317
|
-
F as q,
|
|
318
|
-
B as r,
|
|
319
|
-
U as s,
|
|
320
|
-
L as u,
|
|
321
|
-
H as v,
|
|
322
|
-
W as y
|
|
323
|
-
};
|