@post-pioneer/ui-kit 0.1.28 → 0.1.29
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/index.css +1 -1
- package/dist/ui-kit-postpioneer.es.js +182 -182
- package/dist/ui-kit-postpioneer.umd.js +2 -2
- package/package.json +2 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
const H =
|
|
4
|
-
({ width: n = "12", height: e = "14", color:
|
|
1
|
+
import { jsx as a, jsxs as d, Fragment as Z } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as i } from "react";
|
|
3
|
+
const H = i(
|
|
4
|
+
({ width: n = "12", height: e = "14", color: o = "currentColor", ...t }, r) => /* @__PURE__ */ a(
|
|
5
5
|
"svg",
|
|
6
6
|
{
|
|
7
|
-
ref:
|
|
7
|
+
ref: r,
|
|
8
8
|
width: n,
|
|
9
9
|
height: e,
|
|
10
10
|
viewBox: "0 0 16 16",
|
|
11
11
|
fill: "none",
|
|
12
|
-
color:
|
|
12
|
+
color: o,
|
|
13
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
-
...
|
|
14
|
+
...t,
|
|
15
15
|
children: /* @__PURE__ */ a(
|
|
16
16
|
"path",
|
|
17
17
|
{
|
|
@@ -25,18 +25,18 @@ const H = c(
|
|
|
25
25
|
)
|
|
26
26
|
);
|
|
27
27
|
H.displayName = "AlertsBellIcon";
|
|
28
|
-
const R =
|
|
29
|
-
({ width: n = "6", height: e = "10", color:
|
|
28
|
+
const R = i(
|
|
29
|
+
({ width: n = "6", height: e = "10", color: o = "currentColor", ...t }, r) => /* @__PURE__ */ a(
|
|
30
30
|
"svg",
|
|
31
31
|
{
|
|
32
|
-
ref:
|
|
32
|
+
ref: r,
|
|
33
33
|
width: n,
|
|
34
34
|
height: e,
|
|
35
35
|
viewBox: "0 0 6 10",
|
|
36
36
|
fill: "none",
|
|
37
|
-
color:
|
|
37
|
+
color: o,
|
|
38
38
|
xmlns: "http://www.w3.org/2000/svg",
|
|
39
|
-
...
|
|
39
|
+
...t,
|
|
40
40
|
children: /* @__PURE__ */ a(
|
|
41
41
|
"path",
|
|
42
42
|
{
|
|
@@ -48,18 +48,18 @@ const R = c(
|
|
|
48
48
|
)
|
|
49
49
|
);
|
|
50
50
|
R.displayName = "ArrowChevronLeftIcon";
|
|
51
|
-
const G =
|
|
52
|
-
({ width: n = "6", height: e = "10", color:
|
|
51
|
+
const G = i(
|
|
52
|
+
({ width: n = "6", height: e = "10", color: o = "currentColor", ...t }, r) => /* @__PURE__ */ a(
|
|
53
53
|
"svg",
|
|
54
54
|
{
|
|
55
|
-
ref:
|
|
55
|
+
ref: r,
|
|
56
56
|
width: n,
|
|
57
57
|
height: e,
|
|
58
58
|
viewBox: "0 0 6 10",
|
|
59
59
|
fill: "none",
|
|
60
|
-
color:
|
|
60
|
+
color: o,
|
|
61
61
|
xmlns: "http://www.w3.org/2000/svg",
|
|
62
|
-
...
|
|
62
|
+
...t,
|
|
63
63
|
children: /* @__PURE__ */ a(
|
|
64
64
|
"path",
|
|
65
65
|
{
|
|
@@ -71,18 +71,18 @@ const G = c(
|
|
|
71
71
|
)
|
|
72
72
|
);
|
|
73
73
|
G.displayName = "ArrowChevronRightIcon";
|
|
74
|
-
const I =
|
|
75
|
-
({ width: n = "16", height: e = "16", color:
|
|
74
|
+
const I = i(
|
|
75
|
+
({ width: n = "16", height: e = "16", color: o = "currentColor", ...t }, r) => /* @__PURE__ */ a(
|
|
76
76
|
"svg",
|
|
77
77
|
{
|
|
78
|
-
ref:
|
|
78
|
+
ref: r,
|
|
79
79
|
width: n,
|
|
80
80
|
height: e,
|
|
81
81
|
viewBox: "0 0 16 16",
|
|
82
82
|
fill: "none",
|
|
83
|
-
color:
|
|
83
|
+
color: o,
|
|
84
84
|
xmlns: "http://www.w3.org/2000/svg",
|
|
85
|
-
...
|
|
85
|
+
...t,
|
|
86
86
|
children: /* @__PURE__ */ a(
|
|
87
87
|
"path",
|
|
88
88
|
{
|
|
@@ -96,18 +96,18 @@ const I = c(
|
|
|
96
96
|
)
|
|
97
97
|
);
|
|
98
98
|
I.displayName = "ImagePhotoIcon";
|
|
99
|
-
const $ =
|
|
100
|
-
({ width: n = "12", height: e = "14", color:
|
|
99
|
+
const $ = i(
|
|
100
|
+
({ width: n = "12", height: e = "14", color: o = "currentColor", ...t }, r) => /* @__PURE__ */ a(
|
|
101
101
|
"svg",
|
|
102
102
|
{
|
|
103
|
-
ref:
|
|
103
|
+
ref: r,
|
|
104
104
|
width: n,
|
|
105
105
|
height: e,
|
|
106
106
|
viewBox: "0 0 16 16",
|
|
107
107
|
fill: "none",
|
|
108
|
-
color:
|
|
108
|
+
color: o,
|
|
109
109
|
xmlns: "http://www.w3.org/2000/svg",
|
|
110
|
-
...
|
|
110
|
+
...t,
|
|
111
111
|
children: /* @__PURE__ */ a(
|
|
112
112
|
"path",
|
|
113
113
|
{
|
|
@@ -121,19 +121,19 @@ const $ = c(
|
|
|
121
121
|
)
|
|
122
122
|
);
|
|
123
123
|
$.displayName = "ImagePhotoOutline";
|
|
124
|
-
const S =
|
|
125
|
-
({ width: n = "16", height: e = "16", color:
|
|
124
|
+
const S = i(
|
|
125
|
+
({ width: n = "16", height: e = "16", color: o = "currentColor", ...t }, r) => /* @__PURE__ */ a(
|
|
126
126
|
"svg",
|
|
127
127
|
{
|
|
128
|
-
ref:
|
|
128
|
+
ref: r,
|
|
129
129
|
width: n,
|
|
130
130
|
height: e,
|
|
131
131
|
viewBox: "0 0 16 16",
|
|
132
132
|
fill: "none",
|
|
133
|
-
color:
|
|
133
|
+
color: o,
|
|
134
134
|
xmlns: "http://www.w3.org/2000/svg",
|
|
135
|
-
...
|
|
136
|
-
children: /* @__PURE__ */
|
|
135
|
+
...t,
|
|
136
|
+
children: /* @__PURE__ */ d("g", { opacity: "0.9", children: [
|
|
137
137
|
/* @__PURE__ */ a(
|
|
138
138
|
"path",
|
|
139
139
|
{
|
|
@@ -155,18 +155,18 @@ const S = c(
|
|
|
155
155
|
)
|
|
156
156
|
);
|
|
157
157
|
S.displayName = "MathSymbolsAddSquareV2Icon";
|
|
158
|
-
const z =
|
|
159
|
-
({ size: n = 16, color: e = "currentColor", ...
|
|
158
|
+
const z = i(
|
|
159
|
+
({ size: n = 16, color: e = "currentColor", ...o }, t) => /* @__PURE__ */ a(
|
|
160
160
|
"svg",
|
|
161
161
|
{
|
|
162
|
-
ref:
|
|
162
|
+
ref: t,
|
|
163
163
|
width: n,
|
|
164
164
|
height: n,
|
|
165
165
|
viewBox: "0 0 16 16",
|
|
166
166
|
color: e,
|
|
167
167
|
fill: "none",
|
|
168
168
|
xmlns: "http://www.w3.org/2000/svg",
|
|
169
|
-
...
|
|
169
|
+
...o,
|
|
170
170
|
children: /* @__PURE__ */ a(
|
|
171
171
|
"path",
|
|
172
172
|
{
|
|
@@ -180,23 +180,23 @@ const z = c(
|
|
|
180
180
|
)
|
|
181
181
|
);
|
|
182
182
|
z.displayName = "SwapIcon";
|
|
183
|
-
const A =
|
|
184
|
-
({ width: n = "16", height: e = "16", color:
|
|
183
|
+
const A = i(
|
|
184
|
+
({ width: n = "16", height: e = "16", color: o = "currentColor", ...t }, r) => /* @__PURE__ */ a(
|
|
185
185
|
"svg",
|
|
186
186
|
{
|
|
187
|
-
ref:
|
|
187
|
+
ref: r,
|
|
188
188
|
width: n,
|
|
189
189
|
height: e,
|
|
190
190
|
viewBox: "0 0 16 16",
|
|
191
191
|
fill: "none",
|
|
192
192
|
xmlns: "http://www.w3.org/2000/svg",
|
|
193
|
-
...
|
|
193
|
+
...t,
|
|
194
194
|
children: /* @__PURE__ */ a("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.5008 1.33398C4.8359 1.33398 5.10754 1.60533 5.10754 1.94005V2.37294H10.764V1.94005C10.764 1.60533 11.0357 1.33398 11.3708 1.33398C11.7059 1.33398 11.9775 1.60533 11.9775 1.94005V2.4444C13.1464 2.72526 14 3.79983 14 5.05691L14 11.9833C14 13.4495 12.8389 14.6673 11.3708 14.6673H4.62921C3.16114 14.6673 2 13.4495 2 11.9833V5.05691C2 3.84634 2.79165 2.80503 3.89406 2.4788V1.94005C3.89406 1.60533 4.16571 1.33398 4.5008 1.33398ZM4.62921 3.58506C3.86332 3.58506 3.21348 4.22783 3.21348 5.05691V5.32035C3.23562 5.3179 3.25811 5.31665 3.2809 5.31665H12.7191C12.7419 5.31665 12.7644 5.3179 12.7865 5.32035V5.05691C12.7865 4.22783 12.1367 3.58506 11.3708 3.58506H4.62921ZM12.7865 6.52507C12.7644 6.52751 12.7419 6.52877 12.7191 6.52877H3.2809C3.25811 6.52877 3.23562 6.52751 3.21348 6.52507V11.9833C3.21348 12.8124 3.86332 13.4552 4.62921 13.4552H11.3708C12.1367 13.4552 12.7865 12.8124 12.7865 11.9833L12.7865 6.52507ZM8.33708 8.03515C8.67217 8.03515 8.94382 8.30649 8.94382 8.64121V8.69329C8.94382 9.02801 8.67217 9.29935 8.33708 9.29935C8.00198 9.29935 7.73034 9.02801 7.73034 8.69329V8.64121C7.73034 8.30649 8.00198 8.03515 8.33708 8.03515ZM11.0337 8.03515C11.3688 8.03515 11.6404 8.30649 11.6404 8.64121V8.69329C11.6404 9.02801 11.3688 9.29935 11.0337 9.29935C10.6986 9.29935 10.427 9.02801 10.427 8.69329V8.64121C10.427 8.30649 10.6986 8.03515 11.0337 8.03515ZM5.30337 10.8578C5.63847 10.8578 5.91011 11.1291 5.91011 11.4638V11.5159C5.91011 11.8506 5.63847 12.122 5.30337 12.122C4.96828 12.122 4.69663 11.8506 4.69663 11.5159V11.4638C4.69663 11.1291 4.96828 10.8578 5.30337 10.8578ZM8.33708 10.8578C8.67217 10.8578 8.94382 11.1291 8.94382 11.4638V11.5159C8.94382 11.8506 8.67217 12.122 8.33708 12.122C8.00198 12.122 7.73034 11.8506 7.73034 11.5159V11.4638C7.73034 11.1291 8.00198 10.8578 8.33708 10.8578Z" })
|
|
195
195
|
}
|
|
196
196
|
)
|
|
197
197
|
);
|
|
198
198
|
A.displayName = "TimeCalendarV2Icon";
|
|
199
|
-
const W = "_focus_pvl5h_549", P = "_swap_pvl5h_631", O = "_swap__content_pvl5h_687", D = "_avatar_pvl5h_779", F = "_avatar__content_pvl5h_832", U = "_avatar__image_pvl5h_840", q = "_avatar__initials_pvl5h_846", T = "_avatar__placeholder_pvl5h_875", E = "_avatar__status_pvl5h_906", J = "_avatarWithBorder_pvl5h_938", K = "_avatarWithBorder__svg_pvl5h_945", Q = "_avatarWithBorder__content_pvl5h_981",
|
|
199
|
+
const W = "_focus_pvl5h_549", P = "_swap_pvl5h_631", O = "_swap__content_pvl5h_687", D = "_avatar_pvl5h_779", F = "_avatar__content_pvl5h_832", U = "_avatar__image_pvl5h_840", q = "_avatar__initials_pvl5h_846", T = "_avatar__placeholder_pvl5h_875", E = "_avatar__status_pvl5h_906", J = "_avatarWithBorder_pvl5h_938", K = "_avatarWithBorder__svg_pvl5h_945", Q = "_avatarWithBorder__content_pvl5h_981", C = {
|
|
200
200
|
focus: W,
|
|
201
201
|
"focus--default": "_focus--default_pvl5h_566",
|
|
202
202
|
"focus--danger": "_focus--danger_pvl5h_570",
|
|
@@ -240,20 +240,20 @@ const W = "_focus_pvl5h_549", P = "_swap_pvl5h_631", O = "_swap__content_pvl5h_6
|
|
|
240
240
|
}, X = ({
|
|
241
241
|
src: n,
|
|
242
242
|
name: e,
|
|
243
|
-
size:
|
|
244
|
-
status:
|
|
245
|
-
bordered:
|
|
246
|
-
backgroundColor:
|
|
247
|
-
className:
|
|
248
|
-
onError:
|
|
243
|
+
size: o = "m",
|
|
244
|
+
status: t = null,
|
|
245
|
+
bordered: r = !1,
|
|
246
|
+
backgroundColor: c,
|
|
247
|
+
className: p = "",
|
|
248
|
+
onError: v
|
|
249
249
|
}) => {
|
|
250
|
-
const
|
|
251
|
-
const
|
|
252
|
-
return
|
|
250
|
+
const h = (l) => {
|
|
251
|
+
const _ = l.trim().split(" ");
|
|
252
|
+
return _.length === 1 ? _[0].charAt(0).toUpperCase() : `${_[0].charAt(0)}${_[_.length - 1].charAt(0)}`.toUpperCase();
|
|
253
253
|
}, g = () => {
|
|
254
|
-
if (
|
|
254
|
+
if (c) return c;
|
|
255
255
|
if (e) {
|
|
256
|
-
const
|
|
256
|
+
const l = [
|
|
257
257
|
"var(--color-blue-gray-600)",
|
|
258
258
|
"var(--color-indigo-600)",
|
|
259
259
|
"var(--color-success-600)",
|
|
@@ -270,43 +270,43 @@ const W = "_focus_pvl5h_549", P = "_swap_pvl5h_631", O = "_swap__content_pvl5h_6
|
|
|
270
270
|
"var(--color-yellow-600)",
|
|
271
271
|
"var(--color-rose-600)",
|
|
272
272
|
"var(--color-pink-600)"
|
|
273
|
-
],
|
|
274
|
-
return _
|
|
273
|
+
], _ = e.split("").reduce((x, b) => x + b.charCodeAt(0), 0);
|
|
274
|
+
return l[_ % l.length];
|
|
275
275
|
}
|
|
276
276
|
return "var(--color-blue-gray-300)";
|
|
277
|
-
},
|
|
277
|
+
}, u = {
|
|
278
278
|
online: "var(--color-success-500)",
|
|
279
279
|
offline: "var(--color-blue-gray-400)",
|
|
280
280
|
away: "var(--color-warning-500)",
|
|
281
281
|
busy: "var(--color-danger-500)"
|
|
282
282
|
}, f = [
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
].filter(Boolean).join(" "),
|
|
283
|
+
C.avatar,
|
|
284
|
+
C[`avatar--${o}`],
|
|
285
|
+
r ? C["avatar--bordered"] : "",
|
|
286
|
+
p
|
|
287
|
+
].filter(Boolean).join(" "), y = () => {
|
|
288
288
|
if (n)
|
|
289
289
|
return /* @__PURE__ */ a(
|
|
290
290
|
"img",
|
|
291
291
|
{
|
|
292
292
|
src: n,
|
|
293
293
|
alt: e ? `${e} avatar` : "Avatar",
|
|
294
|
-
className:
|
|
295
|
-
onError:
|
|
294
|
+
className: C.avatar__image,
|
|
295
|
+
onError: v
|
|
296
296
|
}
|
|
297
297
|
);
|
|
298
298
|
if (e) {
|
|
299
|
-
const
|
|
299
|
+
const l = h(e);
|
|
300
300
|
return /* @__PURE__ */ a(
|
|
301
301
|
"div",
|
|
302
302
|
{
|
|
303
|
-
className:
|
|
303
|
+
className: C.avatar__initials,
|
|
304
304
|
style: { backgroundColor: g() },
|
|
305
|
-
children:
|
|
305
|
+
children: l
|
|
306
306
|
}
|
|
307
307
|
);
|
|
308
308
|
}
|
|
309
|
-
return /* @__PURE__ */ a("div", { className:
|
|
309
|
+
return /* @__PURE__ */ a("div", { className: C.avatar__placeholder, children: /* @__PURE__ */ d(
|
|
310
310
|
"svg",
|
|
311
311
|
{
|
|
312
312
|
width: "24",
|
|
@@ -322,13 +322,13 @@ const W = "_focus_pvl5h_549", P = "_swap_pvl5h_631", O = "_swap__content_pvl5h_6
|
|
|
322
322
|
}
|
|
323
323
|
) });
|
|
324
324
|
};
|
|
325
|
-
return /* @__PURE__ */
|
|
326
|
-
/* @__PURE__ */ a("div", { className:
|
|
327
|
-
|
|
325
|
+
return /* @__PURE__ */ d("div", { className: f, children: [
|
|
326
|
+
/* @__PURE__ */ a("div", { className: C.avatar__content, children: y() }),
|
|
327
|
+
t && /* @__PURE__ */ a(
|
|
328
328
|
"div",
|
|
329
329
|
{
|
|
330
|
-
className:
|
|
331
|
-
style: { backgroundColor:
|
|
330
|
+
className: C.avatar__status,
|
|
331
|
+
style: { backgroundColor: u[t] }
|
|
332
332
|
}
|
|
333
333
|
)
|
|
334
334
|
] });
|
|
@@ -340,24 +340,24 @@ const W = "_focus_pvl5h_549", P = "_swap_pvl5h_631", O = "_swap__content_pvl5h_6
|
|
|
340
340
|
}, S1 = ({
|
|
341
341
|
items: n,
|
|
342
342
|
max: e = 5,
|
|
343
|
-
size:
|
|
344
|
-
overlap:
|
|
345
|
-
className:
|
|
343
|
+
size: o = "m",
|
|
344
|
+
overlap: t = !0,
|
|
345
|
+
className: r = ""
|
|
346
346
|
}) => {
|
|
347
|
-
const
|
|
348
|
-
return /* @__PURE__ */
|
|
347
|
+
const c = n.slice(0, e), p = n.length - c.length;
|
|
348
|
+
return /* @__PURE__ */ d(
|
|
349
349
|
"div",
|
|
350
350
|
{
|
|
351
351
|
className: [
|
|
352
352
|
m.avatarGroup,
|
|
353
|
-
|
|
354
|
-
|
|
353
|
+
t ? m["avatarGroup--overlap"] : "",
|
|
354
|
+
r
|
|
355
355
|
].filter(Boolean).join(" "),
|
|
356
356
|
children: [
|
|
357
|
-
|
|
358
|
-
|
|
357
|
+
c.map((v, h) => /* @__PURE__ */ a("div", { className: m.avatarGroup__item, children: /* @__PURE__ */ a(X, { ...v, size: o }) }, h)),
|
|
358
|
+
p > 0 && /* @__PURE__ */ d("div", { className: `${m.avatarGroup__item} ${m.avatarGroup__more}`, children: [
|
|
359
359
|
"+",
|
|
360
|
-
|
|
360
|
+
p
|
|
361
361
|
] })
|
|
362
362
|
]
|
|
363
363
|
}
|
|
@@ -365,9 +365,9 @@ const W = "_focus_pvl5h_549", P = "_swap_pvl5h_631", O = "_swap__content_pvl5h_6
|
|
|
365
365
|
}, z1 = ({
|
|
366
366
|
size: n = 80,
|
|
367
367
|
borderColor: e = "#D6DDFF",
|
|
368
|
-
borderWidth:
|
|
369
|
-
borderStyle:
|
|
370
|
-
children:
|
|
368
|
+
borderWidth: o = 2,
|
|
369
|
+
borderStyle: t = "dashed",
|
|
370
|
+
children: r
|
|
371
371
|
}) => /* @__PURE__ */ a(
|
|
372
372
|
"div",
|
|
373
373
|
{
|
|
@@ -375,8 +375,8 @@ const W = "_focus_pvl5h_549", P = "_swap_pvl5h_631", O = "_swap__content_pvl5h_6
|
|
|
375
375
|
width: n,
|
|
376
376
|
height: n,
|
|
377
377
|
borderRadius: "50%",
|
|
378
|
-
border: `${
|
|
379
|
-
padding:
|
|
378
|
+
border: `${o}px ${t} ${e}`,
|
|
379
|
+
padding: o,
|
|
380
380
|
boxSizing: "border-box",
|
|
381
381
|
display: "flex",
|
|
382
382
|
alignItems: "center",
|
|
@@ -392,11 +392,11 @@ const W = "_focus_pvl5h_549", P = "_swap_pvl5h_631", O = "_swap__content_pvl5h_6
|
|
|
392
392
|
borderRadius: "50%",
|
|
393
393
|
overflow: "hidden"
|
|
394
394
|
},
|
|
395
|
-
children:
|
|
395
|
+
children: r
|
|
396
396
|
}
|
|
397
397
|
)
|
|
398
398
|
}
|
|
399
|
-
), e1 = "_focus_1ckja_549",
|
|
399
|
+
), e1 = "_focus_1ckja_549", t1 = "_swap_1ckja_631", o1 = "_swap__content_1ckja_687", r1 = "_spinner_1ckja_779", s1 = "_spinner__label_1ckja_841", w = {
|
|
400
400
|
focus: e1,
|
|
401
401
|
"focus--default": "_focus--default_1ckja_566",
|
|
402
402
|
"focus--danger": "_focus--danger_1ckja_570",
|
|
@@ -407,7 +407,7 @@ const W = "_focus_pvl5h_549", P = "_swap_pvl5h_631", O = "_swap__content_pvl5h_6
|
|
|
407
407
|
"focus--input": "_focus--input_1ckja_606",
|
|
408
408
|
"focus--button": "_focus--button_1ckja_611",
|
|
409
409
|
"focus--card": "_focus--card_1ckja_616",
|
|
410
|
-
swap:
|
|
410
|
+
swap: t1,
|
|
411
411
|
"swap--text": "_swap--text_1ckja_640",
|
|
412
412
|
"swap--icon": "_swap--icon_1ckja_651",
|
|
413
413
|
"swap--icon-xs": "_swap--icon-xs_1ckja_661",
|
|
@@ -415,7 +415,7 @@ const W = "_focus_pvl5h_549", P = "_swap_pvl5h_631", O = "_swap__content_pvl5h_6
|
|
|
415
415
|
"swap--icon-m": "_swap--icon-m_1ckja_671",
|
|
416
416
|
"swap--icon-l": "_swap--icon-l_1ckja_676",
|
|
417
417
|
"swap--icon-xl": "_swap--icon-xl_1ckja_681",
|
|
418
|
-
swap__content:
|
|
418
|
+
swap__content: o1,
|
|
419
419
|
"swap--group-horizontal": "_swap--group-horizontal_1ckja_696",
|
|
420
420
|
"swap--group-vertical": "_swap--group-vertical_1ckja_703",
|
|
421
421
|
"swap--with-background": "_swap--with-background_1ckja_711",
|
|
@@ -426,7 +426,7 @@ const W = "_focus_pvl5h_549", P = "_swap_pvl5h_631", O = "_swap__content_pvl5h_6
|
|
|
426
426
|
"spinner-container--label-bottom": "_spinner-container--label-bottom_1ckja_788",
|
|
427
427
|
"spinner-container--label-left": "_spinner-container--label-left_1ckja_792",
|
|
428
428
|
"spinner-container--label-right": "_spinner-container--label-right_1ckja_796",
|
|
429
|
-
spinner:
|
|
429
|
+
spinner: r1,
|
|
430
430
|
"spinner-rotate": "_spinner-rotate_1ckja_1",
|
|
431
431
|
"spinner--primary": "_spinner--primary_1ckja_807",
|
|
432
432
|
"spinner--inverse": "_spinner--inverse_1ckja_810",
|
|
@@ -437,26 +437,26 @@ const W = "_focus_pvl5h_549", P = "_swap_pvl5h_631", O = "_swap__content_pvl5h_6
|
|
|
437
437
|
"spinner--m": "_spinner--m_1ckja_824",
|
|
438
438
|
"spinner--l": "_spinner--l_1ckja_832",
|
|
439
439
|
"spinner--xl": "_spinner--xl_1ckja_836",
|
|
440
|
-
spinner__label:
|
|
440
|
+
spinner__label: s1,
|
|
441
441
|
"spinner-svg": "_spinner-svg_1ckja_856"
|
|
442
|
-
},
|
|
442
|
+
}, c1 = ({
|
|
443
443
|
size: n = "m",
|
|
444
444
|
color: e,
|
|
445
|
-
className:
|
|
446
|
-
label:
|
|
447
|
-
labelPosition:
|
|
445
|
+
className: o = "",
|
|
446
|
+
label: t,
|
|
447
|
+
labelPosition: r = "bottom"
|
|
448
448
|
}) => {
|
|
449
|
-
const
|
|
449
|
+
const c = !!t, p = [
|
|
450
450
|
w["spinner-container"],
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
].filter(Boolean).join(" "),
|
|
451
|
+
c && w[`spinner-container--label-${r}`],
|
|
452
|
+
o
|
|
453
|
+
].filter(Boolean).join(" "), v = [
|
|
454
454
|
w.spinner,
|
|
455
455
|
w[`spinner--${n}`],
|
|
456
456
|
w[`spinner--${e}`]
|
|
457
457
|
].filter(Boolean).join(" ");
|
|
458
|
-
return /* @__PURE__ */
|
|
459
|
-
/* @__PURE__ */ a("div", { className:
|
|
458
|
+
return /* @__PURE__ */ d("div", { className: p, children: [
|
|
459
|
+
/* @__PURE__ */ a("div", { className: v, children: (() => {
|
|
460
460
|
switch (n) {
|
|
461
461
|
case "xs":
|
|
462
462
|
return /* @__PURE__ */ a("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ a("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.0271 9.32414C11.5487 8.54345 11.8786 7.65462 11.9948 6.7298C12.0466 6.31739 11.7048 5.97912 11.2891 5.97912C10.8735 5.97912 10.5431 6.3186 10.4746 6.72857C10.1176 8.86575 8.25944 10.4946 6.02088 10.4946C3.52695 10.4946 1.50522 8.47291 1.50522 5.97898C1.50522 3.74035 3.13422 1.88219 5.27149 1.52522C5.68143 1.45675 6.02088 1.1264 6.02088 0.710787C6.02088 0.29517 5.68266 -0.0466028 5.27028 0.00521079C4.34544 0.121414 3.45658 0.451289 2.67586 0.972945C1.68573 1.63453 0.914021 2.57486 0.458315 3.67503C0.00260876 4.7752 -0.116625 5.9858 0.115692 7.15374C0.348009 8.32167 0.921443 9.39449 1.76348 10.2365C2.60551 11.0786 3.67833 11.652 4.84627 11.8843C6.0142 12.1166 7.2248 11.9974 8.32497 11.5417C9.42515 11.086 10.3655 10.3143 11.0271 9.32414Z", fill: "currentColor" }) });
|
|
@@ -474,48 +474,48 @@ const W = "_focus_pvl5h_549", P = "_swap_pvl5h_631", O = "_swap__content_pvl5h_6
|
|
|
474
474
|
return null;
|
|
475
475
|
}
|
|
476
476
|
})() }),
|
|
477
|
-
|
|
477
|
+
t && /* @__PURE__ */ a("span", { className: w.spinner__label, "aria-hidden": "true", children: t })
|
|
478
478
|
] });
|
|
479
|
-
},
|
|
480
|
-
focus:
|
|
481
|
-
"focus--default": "_focus--
|
|
482
|
-
"focus--danger": "_focus--
|
|
483
|
-
"focus--visible": "_focus--
|
|
484
|
-
"focus-danger": "_focus-
|
|
485
|
-
"focus-within--default": "_focus-within--
|
|
486
|
-
"focus-within--danger": "_focus-within--
|
|
487
|
-
"focus--input": "_focus--
|
|
488
|
-
"focus--button": "_focus--
|
|
489
|
-
"focus--card": "_focus--
|
|
490
|
-
swap:
|
|
491
|
-
"swap--text": "_swap--
|
|
492
|
-
"swap--icon": "_swap--
|
|
493
|
-
"swap--icon-xs": "_swap--icon-
|
|
494
|
-
"swap--icon-s": "_swap--icon-
|
|
495
|
-
"swap--icon-m": "_swap--icon-
|
|
496
|
-
"swap--icon-l": "_swap--icon-
|
|
497
|
-
"swap--icon-xl": "_swap--icon-
|
|
498
|
-
swap__content:
|
|
499
|
-
"swap--group-horizontal": "_swap--group-
|
|
500
|
-
"swap--group-vertical": "_swap--group-
|
|
501
|
-
"swap--with-background": "_swap--with-
|
|
502
|
-
"swap--with-border": "_swap--with-
|
|
503
|
-
"swap--interactive": "_swap--
|
|
504
|
-
button:
|
|
505
|
-
sizeL:
|
|
506
|
-
sizeM:
|
|
507
|
-
sizeS:
|
|
508
|
-
iconOnly:
|
|
509
|
-
primary:
|
|
479
|
+
}, l1 = "_focus_1tyc7_549", _1 = "_swap_1tyc7_631", i1 = "_swap__content_1tyc7_687", p1 = "_button_1tyc7_779", C1 = "_sizeL_1tyc7_804", d1 = "_sizeM_1tyc7_808", v1 = "_sizeS_1tyc7_812", u1 = "_iconOnly_1tyc7_816", h1 = "_primary_1tyc7_828", w1 = "_disabled_1tyc7_833", g1 = "_count_1tyc7_847", f1 = "_secondary_1tyc7_851", m1 = "_ghost_1tyc7_874", y1 = "_link_1tyc7_897", x1 = "_dangerPrimary_1tyc7_926", b1 = "_dangerSecondary_1tyc7_952", L1 = "_dangerGhost_1tyc7_978", k1 = "_dangerLink_1tyc7_1004", j1 = "_open_1tyc7_1031", V1 = "_content_1tyc7_1043", M1 = "_loader_1tyc7_1048", B1 = "_text_1tyc7_1054", N1 = "_icon_1tyc7_816", Z1 = "_chevron_1tyc7_1081", H1 = "_loading_1tyc7_1109", s = {
|
|
480
|
+
focus: l1,
|
|
481
|
+
"focus--default": "_focus--default_1tyc7_566",
|
|
482
|
+
"focus--danger": "_focus--danger_1tyc7_570",
|
|
483
|
+
"focus--visible": "_focus--visible_1tyc7_576",
|
|
484
|
+
"focus-danger": "_focus-danger_1tyc7_591",
|
|
485
|
+
"focus-within--default": "_focus-within--default_1tyc7_597",
|
|
486
|
+
"focus-within--danger": "_focus-within--danger_1tyc7_601",
|
|
487
|
+
"focus--input": "_focus--input_1tyc7_606",
|
|
488
|
+
"focus--button": "_focus--button_1tyc7_611",
|
|
489
|
+
"focus--card": "_focus--card_1tyc7_616",
|
|
490
|
+
swap: _1,
|
|
491
|
+
"swap--text": "_swap--text_1tyc7_640",
|
|
492
|
+
"swap--icon": "_swap--icon_1tyc7_651",
|
|
493
|
+
"swap--icon-xs": "_swap--icon-xs_1tyc7_661",
|
|
494
|
+
"swap--icon-s": "_swap--icon-s_1tyc7_666",
|
|
495
|
+
"swap--icon-m": "_swap--icon-m_1tyc7_671",
|
|
496
|
+
"swap--icon-l": "_swap--icon-l_1tyc7_676",
|
|
497
|
+
"swap--icon-xl": "_swap--icon-xl_1tyc7_681",
|
|
498
|
+
swap__content: i1,
|
|
499
|
+
"swap--group-horizontal": "_swap--group-horizontal_1tyc7_696",
|
|
500
|
+
"swap--group-vertical": "_swap--group-vertical_1tyc7_703",
|
|
501
|
+
"swap--with-background": "_swap--with-background_1tyc7_711",
|
|
502
|
+
"swap--with-border": "_swap--with-border_1tyc7_717",
|
|
503
|
+
"swap--interactive": "_swap--interactive_1tyc7_725",
|
|
504
|
+
button: p1,
|
|
505
|
+
sizeL: C1,
|
|
506
|
+
sizeM: d1,
|
|
507
|
+
sizeS: v1,
|
|
508
|
+
iconOnly: u1,
|
|
509
|
+
primary: h1,
|
|
510
510
|
disabled: w1,
|
|
511
511
|
count: g1,
|
|
512
512
|
secondary: f1,
|
|
513
513
|
ghost: m1,
|
|
514
|
-
link:
|
|
515
|
-
dangerPrimary:
|
|
516
|
-
dangerSecondary:
|
|
517
|
-
dangerGhost:
|
|
518
|
-
dangerLink:
|
|
514
|
+
link: y1,
|
|
515
|
+
dangerPrimary: x1,
|
|
516
|
+
dangerSecondary: b1,
|
|
517
|
+
dangerGhost: L1,
|
|
518
|
+
dangerLink: k1,
|
|
519
519
|
open: j1,
|
|
520
520
|
content: V1,
|
|
521
521
|
loader: M1,
|
|
@@ -534,66 +534,66 @@ const W = "_focus_pvl5h_549", P = "_swap_pvl5h_631", O = "_swap__content_pvl5h_6
|
|
|
534
534
|
default:
|
|
535
535
|
return "s";
|
|
536
536
|
}
|
|
537
|
-
}, G1 =
|
|
537
|
+
}, G1 = i(
|
|
538
538
|
(n, e) => {
|
|
539
539
|
const {
|
|
540
|
-
size:
|
|
541
|
-
variant:
|
|
542
|
-
disabled:
|
|
543
|
-
loading:
|
|
544
|
-
active:
|
|
545
|
-
open:
|
|
546
|
-
className:
|
|
540
|
+
size: o = "m",
|
|
541
|
+
variant: t = "primary",
|
|
542
|
+
disabled: r = !1,
|
|
543
|
+
loading: c = !1,
|
|
544
|
+
active: p = !1,
|
|
545
|
+
open: v = !1,
|
|
546
|
+
className: h = "",
|
|
547
547
|
children: g,
|
|
548
|
-
icon:
|
|
548
|
+
icon: u,
|
|
549
549
|
iconPosition: f = "left",
|
|
550
|
-
tooltip:
|
|
551
|
-
count:
|
|
552
|
-
withChevron:
|
|
553
|
-
href:
|
|
554
|
-
...
|
|
555
|
-
} = n,
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
t
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
].filter(Boolean).join(" "), j = () => /* @__PURE__ */
|
|
566
|
-
/* @__PURE__ */
|
|
567
|
-
|
|
568
|
-
g && /* @__PURE__ */ a("span", { className:
|
|
569
|
-
|
|
570
|
-
M && /* @__PURE__ */ a("span", { className:
|
|
571
|
-
|
|
550
|
+
tooltip: y,
|
|
551
|
+
count: l,
|
|
552
|
+
withChevron: _ = !1,
|
|
553
|
+
href: x,
|
|
554
|
+
...b
|
|
555
|
+
} = n, L = f === "only" || !g && u, M = _ && !L, k = [
|
|
556
|
+
s.button,
|
|
557
|
+
s[`size${o.toUpperCase()}`],
|
|
558
|
+
s[t],
|
|
559
|
+
r && s.disabled,
|
|
560
|
+
c && s.loading,
|
|
561
|
+
p && s.active,
|
|
562
|
+
v && s.open,
|
|
563
|
+
L && s.iconOnly,
|
|
564
|
+
h
|
|
565
|
+
].filter(Boolean).join(" "), j = () => /* @__PURE__ */ d(Z, { children: [
|
|
566
|
+
/* @__PURE__ */ d("span", { className: s.content, children: [
|
|
567
|
+
u && f !== "right" && /* @__PURE__ */ a("span", { className: s.icon, children: u }),
|
|
568
|
+
g && /* @__PURE__ */ a("span", { className: s.text, children: g }),
|
|
569
|
+
u && f === "right" && /* @__PURE__ */ a("span", { className: s.icon, children: u }),
|
|
570
|
+
M && /* @__PURE__ */ a("span", { className: s.chevron }),
|
|
571
|
+
l !== void 0 && /* @__PURE__ */ a("span", { className: s.count, children: l > 99 ? "+99" : l })
|
|
572
572
|
] }),
|
|
573
|
-
|
|
573
|
+
c && /* @__PURE__ */ a("span", { className: s.loader, children: /* @__PURE__ */ a(c1, { size: R1(o) }) })
|
|
574
574
|
] });
|
|
575
|
-
if (
|
|
576
|
-
const V =
|
|
577
|
-
return
|
|
575
|
+
if (x) {
|
|
576
|
+
const V = b;
|
|
577
|
+
return r || c ? /* @__PURE__ */ a("span", { className: k, ...V, children: j() }) : /* @__PURE__ */ a(
|
|
578
578
|
"a",
|
|
579
579
|
{
|
|
580
580
|
ref: e,
|
|
581
|
-
href:
|
|
582
|
-
className:
|
|
581
|
+
href: x,
|
|
582
|
+
className: k,
|
|
583
583
|
...V,
|
|
584
584
|
children: j()
|
|
585
585
|
}
|
|
586
586
|
);
|
|
587
587
|
}
|
|
588
|
-
const { type: B = "button", ...N } =
|
|
588
|
+
const { type: B = "button", ...N } = b;
|
|
589
589
|
return /* @__PURE__ */ a(
|
|
590
590
|
"button",
|
|
591
591
|
{
|
|
592
592
|
ref: e,
|
|
593
593
|
type: B,
|
|
594
|
-
className:
|
|
595
|
-
disabled:
|
|
596
|
-
"aria-label":
|
|
594
|
+
className: k,
|
|
595
|
+
disabled: r || c,
|
|
596
|
+
"aria-label": L && y ? y : void 0,
|
|
597
597
|
...N,
|
|
598
598
|
children: j()
|
|
599
599
|
}
|
|
@@ -612,7 +612,7 @@ export {
|
|
|
612
612
|
I as ImagePhotoIcon,
|
|
613
613
|
$ as ImagePhotoOutline,
|
|
614
614
|
S as MathSymbolsAddSquareV2Icon,
|
|
615
|
-
|
|
615
|
+
c1 as Spinner,
|
|
616
616
|
z as SwapIcon,
|
|
617
617
|
A as TimeCalendarV2Icon
|
|
618
618
|
};
|