@versini/ui-bubble 3.0.2 → 3.0.3
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.js +136 -129
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as s, jsxs as f, Fragment as U } from "react/jsx-runtime";
|
|
2
2
|
import i from "clsx";
|
|
3
|
-
import z, { useState as
|
|
3
|
+
import z, { useState as V, useEffect as O } from "react";
|
|
4
4
|
/*!
|
|
5
|
-
@versini/ui-bubble v3.0.
|
|
5
|
+
@versini/ui-bubble v3.0.3
|
|
6
6
|
© 2025 gizmette.com
|
|
7
7
|
*/
|
|
8
8
|
try {
|
|
9
9
|
window.__VERSINI_UI_BUBBLE__ || (window.__VERSINI_UI_BUBBLE__ = {
|
|
10
|
-
version: "3.0.
|
|
11
|
-
buildTime: "01/04/2025
|
|
10
|
+
version: "3.0.3",
|
|
11
|
+
buildTime: "01/04/2025 04:09 PM EST",
|
|
12
12
|
homepage: "https://github.com/aversini/ui-components",
|
|
13
13
|
license: "MIT"
|
|
14
14
|
});
|
|
15
15
|
} catch {
|
|
16
16
|
}
|
|
17
|
-
const
|
|
17
|
+
const j = "av-bubble", C = "av-button", y = "icon", M = "button", I = "link", P = ({
|
|
18
18
|
type: e,
|
|
19
19
|
size: r,
|
|
20
20
|
labelRight: t,
|
|
21
21
|
labelLeft: a,
|
|
22
22
|
align: l
|
|
23
23
|
}) => {
|
|
24
|
-
const o = "max-h-8 py-0 px-2", g = "max-h-9 py-1 px-3",
|
|
24
|
+
const o = "max-h-8 py-0 px-2", g = "max-h-9 py-1 px-3", c = "max-h-12 py-2 px-4";
|
|
25
25
|
switch (e) {
|
|
26
26
|
case M:
|
|
27
27
|
case I:
|
|
28
28
|
return i({
|
|
29
29
|
[o]: r === "small",
|
|
30
30
|
[g]: r === "medium",
|
|
31
|
-
[
|
|
31
|
+
[c]: r === "large"
|
|
32
32
|
});
|
|
33
33
|
case y:
|
|
34
34
|
return i("inline-flex items-center", {
|
|
@@ -43,7 +43,7 @@ const O = "av-bubble", C = "av-button", y = "icon", M = "button", I = "link", j
|
|
|
43
43
|
"h-12 px-4": r === "large" && (t || a)
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
-
},
|
|
46
|
+
}, W = ({
|
|
47
47
|
type: e,
|
|
48
48
|
size: r,
|
|
49
49
|
labelRight: t,
|
|
@@ -66,7 +66,7 @@ const O = "av-bubble", C = "av-button", y = "icon", M = "button", I = "link", j
|
|
|
66
66
|
[g]: r === "large" && (t || a)
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
},
|
|
69
|
+
}, A = ({
|
|
70
70
|
mode: e,
|
|
71
71
|
noBackground: r,
|
|
72
72
|
noTruncate: t,
|
|
@@ -102,7 +102,7 @@ const O = "av-bubble", C = "av-button", y = "icon", M = "button", I = "link", j
|
|
|
102
102
|
return i("not-prose text-copy-lighter", {
|
|
103
103
|
truncate: !t
|
|
104
104
|
});
|
|
105
|
-
},
|
|
105
|
+
}, G = ({
|
|
106
106
|
mode: e,
|
|
107
107
|
noBackground: r,
|
|
108
108
|
variant: t
|
|
@@ -132,13 +132,13 @@ const O = "av-bubble", C = "av-button", y = "icon", M = "button", I = "link", j
|
|
|
132
132
|
if (t === "selected")
|
|
133
133
|
return "bg-action-selected-dark";
|
|
134
134
|
}
|
|
135
|
-
},
|
|
135
|
+
}, q = ({
|
|
136
136
|
radius: e
|
|
137
137
|
}) => i({
|
|
138
138
|
"rounded-full": e === "large",
|
|
139
139
|
"rounded-md": e === "medium",
|
|
140
140
|
"rounded-sm": e === "small"
|
|
141
|
-
}),
|
|
141
|
+
}), D = ({
|
|
142
142
|
mode: e,
|
|
143
143
|
disabled: r,
|
|
144
144
|
variant: t
|
|
@@ -168,7 +168,7 @@ const O = "av-bubble", C = "av-button", y = "icon", M = "button", I = "link", j
|
|
|
168
168
|
});
|
|
169
169
|
if (t === "selected")
|
|
170
170
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
|
171
|
-
},
|
|
171
|
+
}, F = ({
|
|
172
172
|
mode: e,
|
|
173
173
|
disabled: r,
|
|
174
174
|
variant: t
|
|
@@ -198,7 +198,7 @@ const O = "av-bubble", C = "av-button", y = "icon", M = "button", I = "link", j
|
|
|
198
198
|
});
|
|
199
199
|
if (t === "selected")
|
|
200
200
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
201
|
-
},
|
|
201
|
+
}, H = ({
|
|
202
202
|
mode: e,
|
|
203
203
|
noBorder: r,
|
|
204
204
|
variant: t
|
|
@@ -235,7 +235,7 @@ const O = "av-bubble", C = "av-button", y = "icon", M = "button", I = "link", j
|
|
|
235
235
|
"focus:outline-focus-light": e === "light",
|
|
236
236
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
237
237
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
238
|
-
}),
|
|
238
|
+
}), E = ({
|
|
239
239
|
type: e,
|
|
240
240
|
className: r,
|
|
241
241
|
raw: t,
|
|
@@ -243,37 +243,37 @@ const O = "av-bubble", C = "av-button", y = "icon", M = "button", I = "link", j
|
|
|
243
243
|
focusMode: l,
|
|
244
244
|
disabled: o,
|
|
245
245
|
fullWidth: g,
|
|
246
|
-
size:
|
|
247
|
-
noBorder:
|
|
248
|
-
labelRight:
|
|
246
|
+
size: c,
|
|
247
|
+
noBorder: m,
|
|
248
|
+
labelRight: h,
|
|
249
249
|
labelLeft: b,
|
|
250
250
|
noBackground: u,
|
|
251
|
-
variant:
|
|
252
|
-
noTruncate:
|
|
253
|
-
align:
|
|
254
|
-
radius:
|
|
255
|
-
}) => (
|
|
251
|
+
variant: d,
|
|
252
|
+
noTruncate: n,
|
|
253
|
+
align: p,
|
|
254
|
+
radius: v
|
|
255
|
+
}) => (d || (d = "primary"), t ? i(C, r) : i(
|
|
256
256
|
C,
|
|
257
|
-
|
|
257
|
+
A({
|
|
258
258
|
mode: a,
|
|
259
|
-
variant:
|
|
259
|
+
variant: d,
|
|
260
260
|
noBackground: u,
|
|
261
|
-
noTruncate:
|
|
261
|
+
noTruncate: n
|
|
262
262
|
}),
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
263
|
+
G({ mode: a, noBackground: u, variant: d }),
|
|
264
|
+
q({ radius: v }),
|
|
265
|
+
P({
|
|
266
266
|
type: e,
|
|
267
|
-
size:
|
|
268
|
-
labelRight:
|
|
267
|
+
size: c,
|
|
268
|
+
labelRight: h,
|
|
269
269
|
labelLeft: b,
|
|
270
|
-
align:
|
|
270
|
+
align: p
|
|
271
271
|
}),
|
|
272
|
-
|
|
273
|
-
|
|
272
|
+
W({ type: e, size: c, labelRight: h, labelLeft: b }),
|
|
273
|
+
H({ mode: a, variant: d, noBorder: m }),
|
|
274
274
|
J({ focusMode: l }),
|
|
275
|
-
|
|
276
|
-
|
|
275
|
+
D({ mode: a, variant: d, disabled: o }),
|
|
276
|
+
F({ mode: a, variant: d, disabled: o }),
|
|
277
277
|
{
|
|
278
278
|
"w-full": g,
|
|
279
279
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
@@ -284,7 +284,7 @@ const O = "av-bubble", C = "av-button", y = "icon", M = "button", I = "link", j
|
|
|
284
284
|
!r && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof t == "function" && t(e);
|
|
285
285
|
}, T = z.forwardRef((e, r) => {
|
|
286
286
|
const { onClick: t, noInternalClick: a = !1, ...l } = e;
|
|
287
|
-
return /* @__PURE__ */
|
|
287
|
+
return /* @__PURE__ */ s(
|
|
288
288
|
"button",
|
|
289
289
|
{
|
|
290
290
|
ref: r,
|
|
@@ -296,7 +296,7 @@ const O = "av-bubble", C = "av-button", y = "icon", M = "button", I = "link", j
|
|
|
296
296
|
);
|
|
297
297
|
});
|
|
298
298
|
T.displayName = "BaseButton";
|
|
299
|
-
const
|
|
299
|
+
const L = z.forwardRef(
|
|
300
300
|
({
|
|
301
301
|
children: e,
|
|
302
302
|
disabled: r = !1,
|
|
@@ -305,40 +305,40 @@ const E = z.forwardRef(
|
|
|
305
305
|
fullWidth: l = !1,
|
|
306
306
|
className: o,
|
|
307
307
|
type: g = "button",
|
|
308
|
-
raw:
|
|
309
|
-
noBorder:
|
|
310
|
-
"aria-label":
|
|
308
|
+
raw: c = !1,
|
|
309
|
+
noBorder: m = !1,
|
|
310
|
+
"aria-label": h,
|
|
311
311
|
label: b,
|
|
312
312
|
size: u = "medium",
|
|
313
|
-
labelRight:
|
|
314
|
-
labelLeft:
|
|
315
|
-
noBackground:
|
|
316
|
-
align:
|
|
313
|
+
labelRight: d,
|
|
314
|
+
labelLeft: n,
|
|
315
|
+
noBackground: p = !1,
|
|
316
|
+
align: v = "center",
|
|
317
317
|
radius: k = "large",
|
|
318
318
|
variant: x = "primary",
|
|
319
319
|
...w
|
|
320
320
|
}, B) => {
|
|
321
|
-
const _ =
|
|
321
|
+
const _ = E({
|
|
322
322
|
type: y,
|
|
323
323
|
mode: t,
|
|
324
324
|
focusMode: a,
|
|
325
325
|
fullWidth: l,
|
|
326
326
|
disabled: r,
|
|
327
|
-
raw:
|
|
327
|
+
raw: c,
|
|
328
328
|
className: o,
|
|
329
|
-
noBorder:
|
|
329
|
+
noBorder: m,
|
|
330
330
|
size: u,
|
|
331
|
-
labelRight:
|
|
332
|
-
labelLeft:
|
|
333
|
-
noBackground:
|
|
334
|
-
align:
|
|
331
|
+
labelRight: d,
|
|
332
|
+
labelLeft: n,
|
|
333
|
+
noBackground: p,
|
|
334
|
+
align: v,
|
|
335
335
|
radius: k,
|
|
336
336
|
variant: x
|
|
337
337
|
}), N = i({
|
|
338
|
-
"text-copy-accent-dark": t === "light" && !
|
|
339
|
-
"text-copy-light": t === "dark" && !
|
|
340
|
-
"text-copy-accent-dark dark:text-copy-light": t === "alt-system" && !
|
|
341
|
-
"text-copy-light dark:text-copy-accent-dark": t === "system" && !
|
|
338
|
+
"text-copy-accent-dark": t === "light" && !c,
|
|
339
|
+
"text-copy-light": t === "dark" && !c,
|
|
340
|
+
"text-copy-accent-dark dark:text-copy-light": t === "alt-system" && !c,
|
|
341
|
+
"text-copy-light dark:text-copy-accent-dark": t === "system" && !c
|
|
342
342
|
});
|
|
343
343
|
return /* @__PURE__ */ f(
|
|
344
344
|
T,
|
|
@@ -347,26 +347,26 @@ const E = z.forwardRef(
|
|
|
347
347
|
className: _,
|
|
348
348
|
disabled: r,
|
|
349
349
|
type: g,
|
|
350
|
-
"aria-label":
|
|
350
|
+
"aria-label": h || b,
|
|
351
351
|
...w,
|
|
352
352
|
children: [
|
|
353
|
-
|
|
354
|
-
/* @__PURE__ */
|
|
355
|
-
|
|
353
|
+
n && /* @__PURE__ */ s("span", { className: "pr-2", children: n }),
|
|
354
|
+
/* @__PURE__ */ s("div", { className: N, children: e }),
|
|
355
|
+
d && /* @__PURE__ */ s("span", { className: "pl-2", children: d })
|
|
356
356
|
]
|
|
357
357
|
}
|
|
358
358
|
);
|
|
359
359
|
}
|
|
360
360
|
);
|
|
361
|
-
|
|
361
|
+
L.displayName = "ButtonIcon";
|
|
362
362
|
/*!
|
|
363
|
-
@versini/ui-button v4.0.
|
|
363
|
+
@versini/ui-button v4.0.3
|
|
364
364
|
© 2025 gizmette.com
|
|
365
365
|
*/
|
|
366
366
|
try {
|
|
367
367
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
368
|
-
version: "4.0.
|
|
369
|
-
buildTime: "01/04/2025
|
|
368
|
+
version: "4.0.3",
|
|
369
|
+
buildTime: "01/04/2025 04:09 PM EST",
|
|
370
370
|
homepage: "https://github.com/aversini/ui-components",
|
|
371
371
|
license: "MIT"
|
|
372
372
|
});
|
|
@@ -381,39 +381,39 @@ const Q = z.forwardRef(
|
|
|
381
381
|
fullWidth: l = !1,
|
|
382
382
|
className: o,
|
|
383
383
|
type: g = "button",
|
|
384
|
-
raw:
|
|
385
|
-
noBorder:
|
|
386
|
-
"aria-label":
|
|
384
|
+
raw: c = !1,
|
|
385
|
+
noBorder: m = !1,
|
|
386
|
+
"aria-label": h,
|
|
387
387
|
label: b,
|
|
388
388
|
size: u = "medium",
|
|
389
|
-
labelRight:
|
|
390
|
-
labelLeft:
|
|
391
|
-
noBackground:
|
|
392
|
-
align:
|
|
389
|
+
labelRight: d,
|
|
390
|
+
labelLeft: n,
|
|
391
|
+
noBackground: p = !1,
|
|
392
|
+
align: v = "center",
|
|
393
393
|
active: k = !1,
|
|
394
394
|
radius: x = "large",
|
|
395
395
|
...w
|
|
396
396
|
}, B) => {
|
|
397
|
-
const _ =
|
|
397
|
+
const _ = E({
|
|
398
398
|
type: y,
|
|
399
399
|
mode: t,
|
|
400
400
|
focusMode: a,
|
|
401
401
|
fullWidth: l,
|
|
402
402
|
disabled: r,
|
|
403
|
-
raw:
|
|
403
|
+
raw: c,
|
|
404
404
|
className: o,
|
|
405
|
-
noBorder:
|
|
405
|
+
noBorder: m,
|
|
406
406
|
size: u,
|
|
407
|
-
labelRight:
|
|
408
|
-
labelLeft:
|
|
409
|
-
noBackground:
|
|
410
|
-
align:
|
|
407
|
+
labelRight: d,
|
|
408
|
+
labelLeft: n,
|
|
409
|
+
noBackground: p,
|
|
410
|
+
align: v,
|
|
411
411
|
radius: x
|
|
412
412
|
}), N = i({
|
|
413
|
-
"text-copy-accent-dark": t === "light" && !
|
|
414
|
-
"text-copy-light": t === "dark" && !
|
|
415
|
-
"text-copy-accent-dark dark:text-copy-light": t === "alt-system" && !
|
|
416
|
-
"text-copy-light dark:text-copy-accent-dark": t === "system" && !
|
|
413
|
+
"text-copy-accent-dark": t === "light" && !c,
|
|
414
|
+
"text-copy-light": t === "dark" && !c,
|
|
415
|
+
"text-copy-accent-dark dark:text-copy-light": t === "alt-system" && !c,
|
|
416
|
+
"text-copy-light dark:text-copy-accent-dark": t === "system" && !c
|
|
417
417
|
}), R = k ? i(
|
|
418
418
|
"relative",
|
|
419
419
|
"focus-within:static",
|
|
@@ -431,19 +431,19 @@ const Q = z.forwardRef(
|
|
|
431
431
|
"after:border-table-light dark:after:border-table-dark": t === "alt-system"
|
|
432
432
|
}
|
|
433
433
|
) : "";
|
|
434
|
-
return /* @__PURE__ */
|
|
434
|
+
return /* @__PURE__ */ s("div", { className: R, children: /* @__PURE__ */ f(
|
|
435
435
|
T,
|
|
436
436
|
{
|
|
437
437
|
ref: B,
|
|
438
438
|
className: _,
|
|
439
439
|
disabled: r,
|
|
440
440
|
type: g,
|
|
441
|
-
"aria-label":
|
|
441
|
+
"aria-label": h || b,
|
|
442
442
|
...w,
|
|
443
443
|
children: [
|
|
444
|
-
|
|
445
|
-
/* @__PURE__ */
|
|
446
|
-
|
|
444
|
+
n && /* @__PURE__ */ s("span", { className: "pr-2", children: n }),
|
|
445
|
+
/* @__PURE__ */ s("div", { className: N, children: e }),
|
|
446
|
+
d && /* @__PURE__ */ s("span", { className: "pl-2", children: d })
|
|
447
447
|
]
|
|
448
448
|
}
|
|
449
449
|
) });
|
|
@@ -458,26 +458,26 @@ const S = ({
|
|
|
458
458
|
defaultViewBox: l,
|
|
459
459
|
size: o,
|
|
460
460
|
title: g,
|
|
461
|
-
semantic:
|
|
462
|
-
...
|
|
461
|
+
semantic: c = !1,
|
|
462
|
+
...m
|
|
463
463
|
}) => {
|
|
464
|
-
const
|
|
465
|
-
return /* @__PURE__ */ f(
|
|
466
|
-
/* @__PURE__ */
|
|
464
|
+
const h = i(o, a);
|
|
465
|
+
return /* @__PURE__ */ f(U, { children: [
|
|
466
|
+
/* @__PURE__ */ s(
|
|
467
467
|
"svg",
|
|
468
468
|
{
|
|
469
469
|
xmlns: "http://www.w3.org/2000/svg",
|
|
470
|
-
className:
|
|
470
|
+
className: h,
|
|
471
471
|
viewBox: t || l,
|
|
472
472
|
fill: r || "currentColor",
|
|
473
473
|
role: "img",
|
|
474
|
-
"aria-hidden": !
|
|
474
|
+
"aria-hidden": !c,
|
|
475
475
|
focusable: !1,
|
|
476
|
-
...
|
|
476
|
+
...m,
|
|
477
477
|
children: e
|
|
478
478
|
}
|
|
479
479
|
),
|
|
480
|
-
g &&
|
|
480
|
+
g && c && /* @__PURE__ */ s("span", { className: "sr-only", children: g })
|
|
481
481
|
] });
|
|
482
482
|
};
|
|
483
483
|
/*!
|
|
@@ -487,7 +487,7 @@ const S = ({
|
|
|
487
487
|
try {
|
|
488
488
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
489
489
|
version: "4.0.0",
|
|
490
|
-
buildTime: "01/04/2025
|
|
490
|
+
buildTime: "01/04/2025 04:09 PM EST",
|
|
491
491
|
homepage: "https://github.com/aversini/ui-components",
|
|
492
492
|
license: "MIT"
|
|
493
493
|
});
|
|
@@ -509,14 +509,21 @@ const X = ({
|
|
|
509
509
|
title: t || "Copied",
|
|
510
510
|
...l,
|
|
511
511
|
children: [
|
|
512
|
-
/* @__PURE__ */
|
|
512
|
+
/* @__PURE__ */ s(
|
|
513
513
|
"path",
|
|
514
514
|
{
|
|
515
|
+
className: "fa-secondary",
|
|
515
516
|
opacity: "0.4",
|
|
516
|
-
d: "
|
|
517
|
+
d: "M0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32C28.7 32 0 60.7 0 96zM104 256c0-6.1 2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l47 47c37-37 74-74 111-111c4.7-4.7 10.8-7 17-7s12.3 2.3 17 7c2.3 2.3 4.1 5 5.3 7.9c.6 1.5 1 2.9 1.3 4.4c.2 1.1 .3 2.2 .3 2.2c.1 1.2 .1 1.2 .1 2.5c-.1 1.5-.1 1.9-.1 2.3c-.1 .7-.2 1.5-.3 2.2c-.3 1.5-.7 3-1.3 4.4c-1.2 2.9-2.9 5.6-5.3 7.9c-42.7 42.7-85.3 85.3-128 128c-4.7 4.7-10.8 7-17 7s-12.3-2.3-17-7c-21.3-21.3-42.7-42.7-64-64c-4.7-4.7-7-10.8-7-17z"
|
|
517
518
|
}
|
|
518
519
|
),
|
|
519
|
-
/* @__PURE__ */
|
|
520
|
+
/* @__PURE__ */ s(
|
|
521
|
+
"path",
|
|
522
|
+
{
|
|
523
|
+
className: "fa-primary",
|
|
524
|
+
d: "M337 175c9.4 9.4 9.4 24.6 0 33.9L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0z"
|
|
525
|
+
}
|
|
526
|
+
)
|
|
520
527
|
]
|
|
521
528
|
}
|
|
522
529
|
), Y = ({
|
|
@@ -525,7 +532,7 @@ const X = ({
|
|
|
525
532
|
title: t,
|
|
526
533
|
monotone: a,
|
|
527
534
|
...l
|
|
528
|
-
}) => /* @__PURE__ */
|
|
535
|
+
}) => /* @__PURE__ */ s(
|
|
529
536
|
S,
|
|
530
537
|
{
|
|
531
538
|
defaultViewBox: "0 0 512 512",
|
|
@@ -534,17 +541,17 @@ const X = ({
|
|
|
534
541
|
className: e,
|
|
535
542
|
title: t || "Copy",
|
|
536
543
|
...l,
|
|
537
|
-
children: /* @__PURE__ */
|
|
544
|
+
children: /* @__PURE__ */ s("path", { d: "M64 464l224 0c8.8 0 16-7.2 16-16l0-64 48 0 0 64c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64l64 0 0 48-64 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16zM224 304l224 0c8.8 0 16-7.2 16-16l0-224c0-8.8-7.2-16-16-16L224 48c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16zm-64-16l0-224c0-35.3 28.7-64 64-64L448 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64l-224 0c-35.3 0-64-28.7-64-64z" })
|
|
538
545
|
}
|
|
539
546
|
);
|
|
540
547
|
/*!
|
|
541
|
-
@versini/ui-icons v4.
|
|
548
|
+
@versini/ui-icons v4.2.0
|
|
542
549
|
© 2025 gizmette.com
|
|
543
550
|
*/
|
|
544
551
|
try {
|
|
545
552
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
546
|
-
version: "4.
|
|
547
|
-
buildTime: "01/04/2025
|
|
553
|
+
version: "4.2.0",
|
|
554
|
+
buildTime: "01/04/2025 04:09 PM EST",
|
|
548
555
|
homepage: "https://github.com/aversini/ui-components",
|
|
549
556
|
license: "MIT"
|
|
550
557
|
});
|
|
@@ -566,7 +573,7 @@ const Z = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", $ = ({ kind: e }) => i(
|
|
|
566
573
|
className: r
|
|
567
574
|
}) => {
|
|
568
575
|
const t = i(
|
|
569
|
-
|
|
576
|
+
j,
|
|
570
577
|
"flex items-start",
|
|
571
578
|
{
|
|
572
579
|
"flex-row-reverse": e === "right"
|
|
@@ -596,45 +603,45 @@ const Z = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", $ = ({ kind: e }) => i(
|
|
|
596
603
|
rawFooter: l,
|
|
597
604
|
copyToClipboard: o,
|
|
598
605
|
copyToClipboardFocusMode: g = "system",
|
|
599
|
-
copyToClipboardMode:
|
|
606
|
+
copyToClipboardMode: c = "system"
|
|
600
607
|
}) => {
|
|
601
|
-
const [
|
|
602
|
-
|
|
608
|
+
const [m, h] = V(!1), b = re({ kind: r, className: t }), u = !!o && (typeof o == "function" || typeof o == "string" || typeof e == "string"), d = () => {
|
|
609
|
+
h(!0), typeof o == "function" ? o(e) : typeof o == "string" ? navigator.clipboard.writeText(o) : typeof e == "string" && navigator.clipboard.writeText(e);
|
|
603
610
|
};
|
|
604
|
-
return
|
|
605
|
-
let
|
|
606
|
-
return
|
|
607
|
-
|
|
611
|
+
return O(() => {
|
|
612
|
+
let n;
|
|
613
|
+
return m && (n = window.setTimeout(() => {
|
|
614
|
+
h(!1);
|
|
608
615
|
}, 3e3)), () => {
|
|
609
|
-
clearTimeout(
|
|
616
|
+
clearTimeout(n);
|
|
610
617
|
};
|
|
611
|
-
}, [
|
|
618
|
+
}, [m]), /* @__PURE__ */ f("div", { className: b.wrapper, children: [
|
|
612
619
|
/* @__PURE__ */ f("div", { children: [
|
|
613
|
-
/* @__PURE__ */
|
|
614
|
-
a && Object.keys(a).map((
|
|
615
|
-
|
|
620
|
+
/* @__PURE__ */ s("div", { className: b.main, children: e }),
|
|
621
|
+
a && Object.keys(a).map((n) => a[n] ? /* @__PURE__ */ s("div", { className: "prose-p:m-0", children: /* @__PURE__ */ f("p", { className: b.footer, children: [
|
|
622
|
+
n,
|
|
616
623
|
": ",
|
|
617
|
-
a[
|
|
618
|
-
] }) }, `-${
|
|
624
|
+
a[n]
|
|
625
|
+
] }) }, `-${n}`) : null),
|
|
619
626
|
l && l
|
|
620
627
|
] }),
|
|
621
|
-
u && /* @__PURE__ */
|
|
622
|
-
|
|
628
|
+
u && /* @__PURE__ */ s("div", { className: b.copyButton, children: /* @__PURE__ */ s(
|
|
629
|
+
L,
|
|
623
630
|
{
|
|
624
631
|
noBorder: !0,
|
|
625
632
|
noBackground: !0,
|
|
626
633
|
size: "small",
|
|
627
|
-
mode:
|
|
634
|
+
mode: c,
|
|
628
635
|
focusMode: g,
|
|
629
|
-
label:
|
|
630
|
-
onClick:
|
|
631
|
-
disabled:
|
|
632
|
-
children:
|
|
636
|
+
label: m ? "Copied to clipboard" : "Copy to clipboard",
|
|
637
|
+
onClick: d,
|
|
638
|
+
disabled: m,
|
|
639
|
+
children: m ? /* @__PURE__ */ s(X, { size: "size-3" }) : /* @__PURE__ */ s(Y, { size: "size-3" })
|
|
633
640
|
}
|
|
634
641
|
) })
|
|
635
642
|
] });
|
|
636
643
|
};
|
|
637
644
|
export {
|
|
638
|
-
|
|
645
|
+
j as BUBBLE_CLASSNAME,
|
|
639
646
|
le as Bubble
|
|
640
647
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-bubble",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@tailwindcss/typography": "0.5.15",
|
|
42
|
-
"@versini/ui-button": "4.0.
|
|
43
|
-
"@versini/ui-icons": "4.
|
|
42
|
+
"@versini/ui-button": "4.0.3",
|
|
43
|
+
"@versini/ui-icons": "4.2.0",
|
|
44
44
|
"@versini/ui-types": "4.0.0",
|
|
45
45
|
"clsx": "2.1.1",
|
|
46
46
|
"tailwindcss": "3.4.17"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"sideEffects": [
|
|
49
49
|
"**/*.css"
|
|
50
50
|
],
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "88ad6c4972e02710471fede5712f5c94b67a3db9"
|
|
52
52
|
}
|