highsoft-ui 1.0.53 → 1.0.54
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/components/Button/index.js +23 -23
- package/dist/components/Footer/index.js +306 -273
- package/dist/components/GPTInput/index.js +22 -22
- package/dist/components/Header/index.js +60 -60
- package/dist/components/NewTag/index.js +20 -20
- package/dist/components/Notification/index.js +1 -1
- package/dist/components/PrefPanel/index.js +82 -81
- package/dist/highsoft-ui.css +1 -1
- package/dist/{index-DAJ9ybTO.js → index-CM3YgRXK.js} +1 -1
- package/dist/{index-CUjEIxqY.js → index-DvBbx2s8.js} +19 -19
- package/dist/main.js +1 -1
- package/dist/php.js +4 -4
- package/dist/scss/variables.scss +32 -0
- package/package.json +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as n, jsxs as l } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
inputContainer:
|
|
8
|
-
bottomFade:
|
|
9
|
-
inputWrap:
|
|
10
|
-
textarea:
|
|
11
|
-
button:
|
|
12
|
-
primary:
|
|
13
|
-
secondary:
|
|
14
|
-
disclaimer:
|
|
2
|
+
import { useRef as y, useState as g, useLayoutEffect as b } from "react";
|
|
3
|
+
import { c as h } from "../../clsx-OuTLNxxd.js";
|
|
4
|
+
import x from "../icons/Bubble.js";
|
|
5
|
+
import C from "../icons/Plane.js";
|
|
6
|
+
const v = "_inputContainer_h398g_300", S = "_bottomFade_h398g_303", K = "_inputWrap_h398g_306", P = "_textarea_h398g_309", N = "_button_h398g_375", W = "_primary_h398g_410", k = "_secondary_h398g_419", D = "_disclaimer_h398g_425", r = {
|
|
7
|
+
inputContainer: v,
|
|
8
|
+
bottomFade: S,
|
|
9
|
+
inputWrap: K,
|
|
10
|
+
textarea: P,
|
|
11
|
+
button: N,
|
|
12
|
+
primary: W,
|
|
13
|
+
secondary: k,
|
|
14
|
+
disclaimer: D
|
|
15
15
|
};
|
|
16
|
-
function
|
|
16
|
+
function F({
|
|
17
17
|
variant: a = "primary",
|
|
18
18
|
className: s,
|
|
19
19
|
children: e,
|
|
@@ -22,7 +22,7 @@ function D({
|
|
|
22
22
|
return /* @__PURE__ */ n(
|
|
23
23
|
"button",
|
|
24
24
|
{
|
|
25
|
-
className:
|
|
25
|
+
className: h(r.button, r[a], s),
|
|
26
26
|
...o,
|
|
27
27
|
children: /* @__PURE__ */ n("span", { children: e })
|
|
28
28
|
}
|
|
@@ -32,8 +32,8 @@ function I({
|
|
|
32
32
|
autoFocus: a,
|
|
33
33
|
onSubmit: s
|
|
34
34
|
}) {
|
|
35
|
-
const e =
|
|
36
|
-
|
|
35
|
+
const e = y(null), [o, i] = g(""), c = o.trim(), u = !!c;
|
|
36
|
+
b(() => {
|
|
37
37
|
a && e.current?.focus();
|
|
38
38
|
}, [a]);
|
|
39
39
|
const p = () => {
|
|
@@ -51,11 +51,11 @@ function I({
|
|
|
51
51
|
return /* @__PURE__ */ l(
|
|
52
52
|
"form",
|
|
53
53
|
{
|
|
54
|
-
className:
|
|
54
|
+
className: h(r.inputWrap, { [r.active]: u }),
|
|
55
55
|
onKeyDown: d,
|
|
56
56
|
onSubmit: m,
|
|
57
57
|
children: [
|
|
58
|
-
/* @__PURE__ */ n(
|
|
58
|
+
/* @__PURE__ */ n(x, {}),
|
|
59
59
|
/* @__PURE__ */ n(
|
|
60
60
|
"textarea",
|
|
61
61
|
{
|
|
@@ -66,12 +66,12 @@ function I({
|
|
|
66
66
|
}
|
|
67
67
|
),
|
|
68
68
|
/* @__PURE__ */ l(
|
|
69
|
-
|
|
69
|
+
F,
|
|
70
70
|
{
|
|
71
71
|
variant: u ? "primary" : "secondary",
|
|
72
72
|
onClick: f,
|
|
73
73
|
children: [
|
|
74
|
-
/* @__PURE__ */ n(
|
|
74
|
+
/* @__PURE__ */ n(C, {}),
|
|
75
75
|
/* @__PURE__ */ n("span", { className: "sr-only", children: "Send message" })
|
|
76
76
|
]
|
|
77
77
|
}
|
|
@@ -82,5 +82,5 @@ function I({
|
|
|
82
82
|
}
|
|
83
83
|
export {
|
|
84
84
|
I as GPTInput,
|
|
85
|
-
|
|
85
|
+
F as default
|
|
86
86
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o, Fragment as V } from "react/jsx-runtime";
|
|
2
2
|
import { useState as S, useEffect as q } from "react";
|
|
3
3
|
import { a as M, J as z } from "../../utils-CzQFvGG2.js";
|
|
4
|
-
import { _ as
|
|
5
|
-
import { N as J, X as A } from "../../index-
|
|
6
|
-
import { c as
|
|
4
|
+
import { _ as d } from "../../extends-hS2Bh-Yp.js";
|
|
5
|
+
import { N as J, X as A } from "../../index-DvBbx2s8.js";
|
|
6
|
+
import { c as p } from "../../clsx-OuTLNxxd.js";
|
|
7
7
|
import { Button as l } from "../Button/index.js";
|
|
8
8
|
import { Container as I } from "../Container/index.js";
|
|
9
9
|
import { ThemedLogo as L } from "../Logo/index.js";
|
|
10
10
|
import { PrefPanel as T } from "../PrefPanel/index.js";
|
|
11
11
|
var G = function(n) {
|
|
12
|
-
return /* @__PURE__ */ e("svg",
|
|
12
|
+
return /* @__PURE__ */ e("svg", d({
|
|
13
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14
14
|
width: 24,
|
|
15
15
|
height: 24,
|
|
@@ -25,7 +25,7 @@ var G = function(n) {
|
|
|
25
25
|
})
|
|
26
26
|
}));
|
|
27
27
|
}, F = function(n) {
|
|
28
|
-
return /* @__PURE__ */ e("svg",
|
|
28
|
+
return /* @__PURE__ */ e("svg", d({
|
|
29
29
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30
30
|
width: 24,
|
|
31
31
|
height: 24,
|
|
@@ -41,7 +41,7 @@ var G = function(n) {
|
|
|
41
41
|
})
|
|
42
42
|
}));
|
|
43
43
|
}, Q = function(n) {
|
|
44
|
-
return /* @__PURE__ */ e("svg",
|
|
44
|
+
return /* @__PURE__ */ e("svg", d({
|
|
45
45
|
xmlns: "http://www.w3.org/2000/svg",
|
|
46
46
|
width: 24,
|
|
47
47
|
height: 24,
|
|
@@ -57,7 +57,7 @@ var G = function(n) {
|
|
|
57
57
|
})
|
|
58
58
|
}));
|
|
59
59
|
}, R = function(n) {
|
|
60
|
-
return /* @__PURE__ */ e("svg",
|
|
60
|
+
return /* @__PURE__ */ e("svg", d({
|
|
61
61
|
xmlns: "http://www.w3.org/2000/svg",
|
|
62
62
|
width: 24,
|
|
63
63
|
height: 24,
|
|
@@ -73,7 +73,7 @@ var G = function(n) {
|
|
|
73
73
|
})
|
|
74
74
|
}));
|
|
75
75
|
}, X = function(n) {
|
|
76
|
-
return /* @__PURE__ */ e("svg",
|
|
76
|
+
return /* @__PURE__ */ e("svg", d({
|
|
77
77
|
xmlns: "http://www.w3.org/2000/svg",
|
|
78
78
|
width: 24,
|
|
79
79
|
height: 24,
|
|
@@ -89,7 +89,7 @@ var G = function(n) {
|
|
|
89
89
|
})
|
|
90
90
|
}));
|
|
91
91
|
}, $ = function(n) {
|
|
92
|
-
return /* @__PURE__ */ e("svg",
|
|
92
|
+
return /* @__PURE__ */ e("svg", d({
|
|
93
93
|
xmlns: "http://www.w3.org/2000/svg",
|
|
94
94
|
width: 24,
|
|
95
95
|
height: 24,
|
|
@@ -105,7 +105,7 @@ var G = function(n) {
|
|
|
105
105
|
})
|
|
106
106
|
}));
|
|
107
107
|
}, D = function(n) {
|
|
108
|
-
return /* @__PURE__ */ e("svg",
|
|
108
|
+
return /* @__PURE__ */ e("svg", d({
|
|
109
109
|
xmlns: "http://www.w3.org/2000/svg",
|
|
110
110
|
width: 24,
|
|
111
111
|
height: 24,
|
|
@@ -121,7 +121,7 @@ var G = function(n) {
|
|
|
121
121
|
})
|
|
122
122
|
}));
|
|
123
123
|
}, B = function(n) {
|
|
124
|
-
return /* @__PURE__ */ e("svg",
|
|
124
|
+
return /* @__PURE__ */ e("svg", d({
|
|
125
125
|
xmlns: "http://www.w3.org/2000/svg",
|
|
126
126
|
width: 24,
|
|
127
127
|
height: 24,
|
|
@@ -137,7 +137,7 @@ var G = function(n) {
|
|
|
137
137
|
})
|
|
138
138
|
}));
|
|
139
139
|
}, H = function(n) {
|
|
140
|
-
return /* @__PURE__ */ e("svg",
|
|
140
|
+
return /* @__PURE__ */ e("svg", d({
|
|
141
141
|
xmlns: "http://www.w3.org/2000/svg",
|
|
142
142
|
width: 24,
|
|
143
143
|
height: 24,
|
|
@@ -153,7 +153,7 @@ var G = function(n) {
|
|
|
153
153
|
})
|
|
154
154
|
}));
|
|
155
155
|
}, W = function(n) {
|
|
156
|
-
return /* @__PURE__ */ e("svg",
|
|
156
|
+
return /* @__PURE__ */ e("svg", d({
|
|
157
157
|
xmlns: "http://www.w3.org/2000/svg",
|
|
158
158
|
width: 24,
|
|
159
159
|
height: 24,
|
|
@@ -169,7 +169,7 @@ var G = function(n) {
|
|
|
169
169
|
})
|
|
170
170
|
}));
|
|
171
171
|
}, j = function(n) {
|
|
172
|
-
return /* @__PURE__ */ e("svg",
|
|
172
|
+
return /* @__PURE__ */ e("svg", d({
|
|
173
173
|
xmlns: "http://www.w3.org/2000/svg",
|
|
174
174
|
width: 24,
|
|
175
175
|
height: 24,
|
|
@@ -185,7 +185,7 @@ var G = function(n) {
|
|
|
185
185
|
})
|
|
186
186
|
}));
|
|
187
187
|
};
|
|
188
|
-
const E = "
|
|
188
|
+
const E = "_header_1vg4i_300", K = "_outer_1vg4i_311", Y = "_main_1vg4i_320", Z = "_container_1vg4i_324", e1 = "_links_1vg4i_330", t1 = "_buttons_1vg4i_331", n1 = "_menu_1vg4i_339", r1 = "_logo_1vg4i_344", o1 = "_subContainer_1vg4i_356", s1 = "_selected_1vg4i_384", i1 = "_icons_1vg4i_387", c1 = "_subTag_1vg4i_407", a1 = "_selectedIcon_1vg4i_420", l1 = "_selectableIcon_1vg4i_424", h1 = "_icon_1vg4i_387", d1 = "_mobileOverlay_1vg4i_438", u1 = "_show_1vg4i_1", m1 = "_open_1vg4i_450", g1 = "_mobile_1vg4i_438", w1 = "_slideUp_1vg4i_1", p1 = "_sub_1vg4i_356", v1 = "_gpt_1vg4i_514", t = {
|
|
189
189
|
header: E,
|
|
190
190
|
outer: K,
|
|
191
191
|
main: Y,
|
|
@@ -198,18 +198,18 @@ const E = "_header_1mm0v_270", K = "_outer_1mm0v_281", Y = "_main_1mm0v_290", Z
|
|
|
198
198
|
selected: s1,
|
|
199
199
|
icons: i1,
|
|
200
200
|
subTag: c1,
|
|
201
|
-
"subTag-success": "_subTag-
|
|
202
|
-
"subTag-brand": "_subTag-
|
|
201
|
+
"subTag-success": "_subTag-success_1vg4i_412",
|
|
202
|
+
"subTag-brand": "_subTag-brand_1vg4i_416",
|
|
203
203
|
selectedIcon: a1,
|
|
204
204
|
selectableIcon: l1,
|
|
205
205
|
icon: h1,
|
|
206
|
-
mobileOverlay:
|
|
207
|
-
show:
|
|
208
|
-
open:
|
|
209
|
-
mobile:
|
|
210
|
-
slideUp:
|
|
211
|
-
sub:
|
|
212
|
-
gpt:
|
|
206
|
+
mobileOverlay: d1,
|
|
207
|
+
show: u1,
|
|
208
|
+
open: m1,
|
|
209
|
+
mobile: g1,
|
|
210
|
+
slideUp: w1,
|
|
211
|
+
sub: p1,
|
|
212
|
+
gpt: v1
|
|
213
213
|
}, y = [
|
|
214
214
|
{
|
|
215
215
|
title: "Products",
|
|
@@ -248,17 +248,17 @@ function h(r, n) {
|
|
|
248
248
|
function f1({
|
|
249
249
|
items: r,
|
|
250
250
|
link: n = "a",
|
|
251
|
-
host:
|
|
251
|
+
host: g = "https://www.highcharts.com",
|
|
252
252
|
pathname: i = typeof window < "u" ? window.location.pathname : ""
|
|
253
253
|
}) {
|
|
254
|
-
return /* @__PURE__ */ e("div", { className:
|
|
255
|
-
({ title: c, url: f, icon: _, selectedIcon: k, tag: C, tagVariant:
|
|
256
|
-
const
|
|
254
|
+
return /* @__PURE__ */ e("div", { className: p(t.sub, t.outer), children: /* @__PURE__ */ e(I, { className: t.subContainer, as: "ul", children: r.map(
|
|
255
|
+
({ title: c, url: f, icon: _, selectedIcon: k, tag: C, tagVariant: m = "success" }, x) => {
|
|
256
|
+
const v = typeof window < "u" && window.location.origin || "http://example.com", w = new URL(f, v), b = w.origin === v && w.pathname === i;
|
|
257
257
|
return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ o(
|
|
258
258
|
n,
|
|
259
259
|
{
|
|
260
|
-
href: h(f,
|
|
261
|
-
className:
|
|
260
|
+
href: h(f, g),
|
|
261
|
+
className: p({
|
|
262
262
|
[t.selectableIcon]: k,
|
|
263
263
|
[t.selected]: b
|
|
264
264
|
}),
|
|
@@ -272,9 +272,9 @@ function f1({
|
|
|
272
272
|
C && /* @__PURE__ */ e(
|
|
273
273
|
"span",
|
|
274
274
|
{
|
|
275
|
-
className:
|
|
275
|
+
className: p(
|
|
276
276
|
t.subTag,
|
|
277
|
-
t[`subTag-${
|
|
277
|
+
t[`subTag-${m}`]
|
|
278
278
|
),
|
|
279
279
|
children: C
|
|
280
280
|
}
|
|
@@ -289,34 +289,34 @@ function f1({
|
|
|
289
289
|
function B1({
|
|
290
290
|
subItems: r,
|
|
291
291
|
children: n,
|
|
292
|
-
notifications:
|
|
292
|
+
notifications: g = [],
|
|
293
293
|
// TODO: Fetch these from the internets
|
|
294
294
|
link: i = "a",
|
|
295
295
|
host: c = "https://www.highcharts.com",
|
|
296
296
|
pathname: f = typeof window < "u" ? window.location.pathname : ""
|
|
297
297
|
}) {
|
|
298
|
-
const _ = M("(max-width: 374px)"), k = M("(max-width: 849px)"), C = M("(min-width: 850px) and (max-width: 999px)"), [
|
|
298
|
+
const _ = M("(max-width: 374px)"), k = M("(max-width: 849px)"), C = M("(min-width: 850px) and (max-width: 999px)"), [m, x] = S(!1), [v, w] = S([]);
|
|
299
299
|
q(() => {
|
|
300
|
-
if (
|
|
300
|
+
if (g.length) {
|
|
301
301
|
const a = localStorage.getItem("notifications");
|
|
302
302
|
if (a) {
|
|
303
|
-
const
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
(s) => !s.id || !
|
|
303
|
+
const u = JSON.parse(a);
|
|
304
|
+
w(
|
|
305
|
+
g.filter(
|
|
306
|
+
(s) => !s.id || !u.closed.includes(s.id)
|
|
307
307
|
)
|
|
308
308
|
);
|
|
309
309
|
} else
|
|
310
|
-
|
|
310
|
+
w(g);
|
|
311
311
|
}
|
|
312
|
-
}, [
|
|
312
|
+
}, [g]);
|
|
313
313
|
const b = () => {
|
|
314
|
-
x(!
|
|
314
|
+
x(!m);
|
|
315
315
|
}, O = (a) => {
|
|
316
|
-
|
|
317
|
-
const
|
|
318
|
-
if (
|
|
319
|
-
const s = JSON.parse(
|
|
316
|
+
w(v.filter((s) => !s.id || s.id !== a));
|
|
317
|
+
const u = localStorage.getItem("notifications");
|
|
318
|
+
if (u) {
|
|
319
|
+
const s = JSON.parse(u);
|
|
320
320
|
s.closed.includes(a) || (s.closed.push(a), localStorage.setItem("notifications", JSON.stringify(s)));
|
|
321
321
|
} else
|
|
322
322
|
localStorage.setItem(
|
|
@@ -327,20 +327,20 @@ function B1({
|
|
|
327
327
|
);
|
|
328
328
|
};
|
|
329
329
|
return /* @__PURE__ */ e(z, { children: /* @__PURE__ */ o("header", { className: t.header, children: [
|
|
330
|
-
|
|
331
|
-
({ id: a, title:
|
|
330
|
+
v?.map(
|
|
331
|
+
({ id: a, title: u, description: s, variant: N, closable: P }, U) => /* @__PURE__ */ e(
|
|
332
332
|
J,
|
|
333
333
|
{
|
|
334
334
|
description: s,
|
|
335
335
|
variant: N,
|
|
336
336
|
closable: P,
|
|
337
337
|
onClose: () => O(a),
|
|
338
|
-
children:
|
|
338
|
+
children: u
|
|
339
339
|
},
|
|
340
340
|
U
|
|
341
341
|
)
|
|
342
342
|
),
|
|
343
|
-
/* @__PURE__ */ e("div", { className:
|
|
343
|
+
/* @__PURE__ */ e("div", { className: p(t.main, t.outer), children: /* @__PURE__ */ o(I, { as: "nav", className: t.container, children: [
|
|
344
344
|
/* @__PURE__ */ e(
|
|
345
345
|
i,
|
|
346
346
|
{
|
|
@@ -349,13 +349,13 @@ function B1({
|
|
|
349
349
|
children: /* @__PURE__ */ e(L, { showText: !C && !_ })
|
|
350
350
|
}
|
|
351
351
|
),
|
|
352
|
-
/* @__PURE__ */ e("ul", { className: t.links, children: y.map(({ title: a, url:
|
|
352
|
+
/* @__PURE__ */ e("ul", { className: t.links, children: y.map(({ title: a, url: u }, s) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
|
|
353
353
|
l,
|
|
354
354
|
{
|
|
355
355
|
variant: "plain",
|
|
356
356
|
size: 300,
|
|
357
357
|
as: i,
|
|
358
|
-
href: h(
|
|
358
|
+
href: h(u, c),
|
|
359
359
|
children: a
|
|
360
360
|
}
|
|
361
361
|
) }, s)) }),
|
|
@@ -405,12 +405,12 @@ function B1({
|
|
|
405
405
|
/* @__PURE__ */ o(
|
|
406
406
|
l,
|
|
407
407
|
{
|
|
408
|
-
variant:
|
|
408
|
+
variant: m ? "white" : "transparent",
|
|
409
409
|
className: t.menu,
|
|
410
410
|
onClick: b,
|
|
411
411
|
children: [
|
|
412
|
-
|
|
413
|
-
|
|
412
|
+
m ? "Close" : "Menu",
|
|
413
|
+
m ? /* @__PURE__ */ e(A, {}) : /* @__PURE__ */ e(X, {})
|
|
414
414
|
]
|
|
415
415
|
}
|
|
416
416
|
)
|
|
@@ -430,15 +430,15 @@ function B1({
|
|
|
430
430
|
/* @__PURE__ */ e(
|
|
431
431
|
"div",
|
|
432
432
|
{
|
|
433
|
-
className:
|
|
433
|
+
className: p(t.mobileOverlay, { [t.open]: m }),
|
|
434
434
|
onClick: b
|
|
435
435
|
}
|
|
436
436
|
),
|
|
437
437
|
/* @__PURE__ */ o(
|
|
438
438
|
"nav",
|
|
439
439
|
{
|
|
440
|
-
className:
|
|
441
|
-
[t.open]:
|
|
440
|
+
className: p(t.mobile, {
|
|
441
|
+
[t.open]: m
|
|
442
442
|
}),
|
|
443
443
|
children: [
|
|
444
444
|
/* @__PURE__ */ o("div", { className: t.container, children: [
|
|
@@ -504,14 +504,14 @@ function B1({
|
|
|
504
504
|
}
|
|
505
505
|
)
|
|
506
506
|
] }),
|
|
507
|
-
/* @__PURE__ */ e("ul", { className: t.links, children: y.map(({ title: a, url:
|
|
507
|
+
/* @__PURE__ */ e("ul", { className: t.links, children: y.map(({ title: a, url: u, icon: s }, N) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ o(
|
|
508
508
|
l,
|
|
509
509
|
{
|
|
510
510
|
variant: "plain",
|
|
511
511
|
size: 500,
|
|
512
512
|
fullWidth: !0,
|
|
513
513
|
as: i,
|
|
514
|
-
href: h(
|
|
514
|
+
href: h(u, c),
|
|
515
515
|
children: [
|
|
516
516
|
s,
|
|
517
517
|
a
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { _ as a } from "../../extends-hS2Bh-Yp.js";
|
|
4
4
|
import { c as _ } from "../../clsx-OuTLNxxd.js";
|
|
5
|
-
var i = function(
|
|
6
|
-
return /* @__PURE__ */
|
|
5
|
+
var i = function(t) {
|
|
6
|
+
return /* @__PURE__ */ r("svg", a({
|
|
7
7
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8
8
|
width: 24,
|
|
9
9
|
height: 24,
|
|
10
10
|
fill: "none",
|
|
11
11
|
viewBox: "0 0 24 24"
|
|
12
|
-
},
|
|
13
|
-
children: /* @__PURE__ */
|
|
12
|
+
}, t, {
|
|
13
|
+
children: /* @__PURE__ */ r("path", {
|
|
14
14
|
stroke: "currentColor",
|
|
15
15
|
strokeLinecap: "round",
|
|
16
16
|
strokeLinejoin: "round",
|
|
@@ -19,31 +19,31 @@ var i = function(s) {
|
|
|
19
19
|
})
|
|
20
20
|
}));
|
|
21
21
|
};
|
|
22
|
-
const
|
|
23
|
-
tag:
|
|
24
|
-
icon:
|
|
25
|
-
border:
|
|
26
|
-
neutral:
|
|
27
|
-
success:
|
|
28
|
-
attention:
|
|
29
|
-
brand:
|
|
30
|
-
danger:
|
|
22
|
+
const d = "_tag_15x3t_300", l = "_icon_15x3t_317", u = "_border_15x3t_323", x = "_neutral_15x3t_333", g = "_success_15x3t_339", m = "_attention_15x3t_345", h = "_brand_15x3t_351", p = "_danger_15x3t_357", n = {
|
|
23
|
+
tag: d,
|
|
24
|
+
icon: l,
|
|
25
|
+
border: u,
|
|
26
|
+
neutral: x,
|
|
27
|
+
success: g,
|
|
28
|
+
attention: m,
|
|
29
|
+
brand: h,
|
|
30
|
+
danger: p
|
|
31
31
|
};
|
|
32
32
|
function L({
|
|
33
|
-
variant:
|
|
34
|
-
icon:
|
|
33
|
+
variant: s = "success",
|
|
34
|
+
icon: t = !0,
|
|
35
35
|
border: o,
|
|
36
36
|
className: e
|
|
37
37
|
}) {
|
|
38
38
|
return /* @__PURE__ */ c(
|
|
39
39
|
"span",
|
|
40
40
|
{
|
|
41
|
-
className: _(e,
|
|
42
|
-
[
|
|
43
|
-
[
|
|
41
|
+
className: _(e, n.tag, n[s], {
|
|
42
|
+
[n.icon]: t,
|
|
43
|
+
[n.border]: o
|
|
44
44
|
}),
|
|
45
45
|
children: [
|
|
46
|
-
|
|
46
|
+
t && /* @__PURE__ */ r(i, {}),
|
|
47
47
|
"New"
|
|
48
48
|
]
|
|
49
49
|
}
|