@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.
Files changed (2) hide show
  1. package/dist/index.js +136 -129
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -1,34 +1,34 @@
1
- import { jsx as d, jsxs as f, Fragment as L } from "react/jsx-runtime";
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 U, useEffect as H } from "react";
3
+ import z, { useState as V, useEffect as O } from "react";
4
4
  /*!
5
- @versini/ui-bubble v3.0.2
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.2",
11
- buildTime: "01/04/2025 01:33 PM EST",
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 O = "av-bubble", C = "av-button", y = "icon", M = "button", I = "link", j = ({
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", s = "max-h-12 py-2 px-4";
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
- [s]: r === "large"
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
- }, P = ({
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
- }, W = ({
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
- }, A = ({
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
- }, G = ({
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
- }), q = ({
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
- }, D = ({
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
- }, F = ({
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
- }), V = ({
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: s,
247
- noBorder: h,
248
- labelRight: m,
246
+ size: c,
247
+ noBorder: m,
248
+ labelRight: h,
249
249
  labelLeft: b,
250
250
  noBackground: u,
251
- variant: n,
252
- noTruncate: c,
253
- align: v,
254
- radius: p
255
- }) => (n || (n = "primary"), t ? i(C, r) : i(
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
- W({
257
+ A({
258
258
  mode: a,
259
- variant: n,
259
+ variant: d,
260
260
  noBackground: u,
261
- noTruncate: c
261
+ noTruncate: n
262
262
  }),
263
- A({ mode: a, noBackground: u, variant: n }),
264
- G({ radius: p }),
265
- j({
263
+ G({ mode: a, noBackground: u, variant: d }),
264
+ q({ radius: v }),
265
+ P({
266
266
  type: e,
267
- size: s,
268
- labelRight: m,
267
+ size: c,
268
+ labelRight: h,
269
269
  labelLeft: b,
270
- align: v
270
+ align: p
271
271
  }),
272
- P({ type: e, size: s, labelRight: m, labelLeft: b }),
273
- F({ mode: a, variant: n, noBorder: h }),
272
+ W({ type: e, size: c, labelRight: h, labelLeft: b }),
273
+ H({ mode: a, variant: d, noBorder: m }),
274
274
  J({ focusMode: l }),
275
- q({ mode: a, variant: n, disabled: o }),
276
- D({ mode: a, variant: n, disabled: o }),
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__ */ d(
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 E = z.forwardRef(
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: s = !1,
309
- noBorder: h = !1,
310
- "aria-label": m,
308
+ raw: c = !1,
309
+ noBorder: m = !1,
310
+ "aria-label": h,
311
311
  label: b,
312
312
  size: u = "medium",
313
- labelRight: n,
314
- labelLeft: c,
315
- noBackground: v = !1,
316
- align: p = "center",
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 _ = V({
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: s,
327
+ raw: c,
328
328
  className: o,
329
- noBorder: h,
329
+ noBorder: m,
330
330
  size: u,
331
- labelRight: n,
332
- labelLeft: c,
333
- noBackground: v,
334
- align: p,
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" && !s,
339
- "text-copy-light": t === "dark" && !s,
340
- "text-copy-accent-dark dark:text-copy-light": t === "alt-system" && !s,
341
- "text-copy-light dark:text-copy-accent-dark": t === "system" && !s
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": m || b,
350
+ "aria-label": h || b,
351
351
  ...w,
352
352
  children: [
353
- c && /* @__PURE__ */ d("span", { className: "pr-2", children: c }),
354
- /* @__PURE__ */ d("div", { className: N, children: e }),
355
- n && /* @__PURE__ */ d("span", { className: "pl-2", children: n })
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
- E.displayName = "ButtonIcon";
361
+ L.displayName = "ButtonIcon";
362
362
  /*!
363
- @versini/ui-button v4.0.2
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.2",
369
- buildTime: "01/04/2025 01:33 PM EST",
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: s = !1,
385
- noBorder: h = !1,
386
- "aria-label": m,
384
+ raw: c = !1,
385
+ noBorder: m = !1,
386
+ "aria-label": h,
387
387
  label: b,
388
388
  size: u = "medium",
389
- labelRight: n,
390
- labelLeft: c,
391
- noBackground: v = !1,
392
- align: p = "center",
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 _ = V({
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: s,
403
+ raw: c,
404
404
  className: o,
405
- noBorder: h,
405
+ noBorder: m,
406
406
  size: u,
407
- labelRight: n,
408
- labelLeft: c,
409
- noBackground: v,
410
- align: p,
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" && !s,
414
- "text-copy-light": t === "dark" && !s,
415
- "text-copy-accent-dark dark:text-copy-light": t === "alt-system" && !s,
416
- "text-copy-light dark:text-copy-accent-dark": t === "system" && !s
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__ */ d("div", { className: R, children: /* @__PURE__ */ f(
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": m || b,
441
+ "aria-label": h || b,
442
442
  ...w,
443
443
  children: [
444
- c && /* @__PURE__ */ d("span", { className: "pr-2", children: c }),
445
- /* @__PURE__ */ d("div", { className: N, children: e }),
446
- n && /* @__PURE__ */ d("span", { className: "pl-2", children: n })
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: s = !1,
462
- ...h
461
+ semantic: c = !1,
462
+ ...m
463
463
  }) => {
464
- const m = i(o, a);
465
- return /* @__PURE__ */ f(L, { children: [
466
- /* @__PURE__ */ d(
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: m,
470
+ className: h,
471
471
  viewBox: t || l,
472
472
  fill: r || "currentColor",
473
473
  role: "img",
474
- "aria-hidden": !s,
474
+ "aria-hidden": !c,
475
475
  focusable: !1,
476
- ...h,
476
+ ...m,
477
477
  children: e
478
478
  }
479
479
  ),
480
- g && s && /* @__PURE__ */ d("span", { className: "sr-only", children: 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 01:33 PM EST",
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__ */ d(
512
+ /* @__PURE__ */ s(
513
513
  "path",
514
514
  {
515
+ className: "fa-secondary",
515
516
  opacity: "0.4",
516
- d: "M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM337 209L209 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 0s9.4 24.6 0 33.9z"
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__ */ d("path", { 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" })
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__ */ d(
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__ */ d("path", { d: "M64 464H288c8.8 0 16-7.2 16-16V384h48v64c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h64v48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16zM224 304H448c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H224c-8.8 0-16 7.2-16 16V288c0 8.8 7.2 16 16 16zm-64-16V64c0-35.3 28.7-64 64-64H448c35.3 0 64 28.7 64 64V288c0 35.3-28.7 64-64 64H224c-35.3 0-64-28.7-64-64z" })
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.1.0
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.1.0",
547
- buildTime: "01/04/2025 01:33 PM EST",
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
- O,
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: s = "system"
606
+ copyToClipboardMode: c = "system"
600
607
  }) => {
601
- const [h, m] = U(!1), b = re({ kind: r, className: t }), u = !!o && (typeof o == "function" || typeof o == "string" || typeof e == "string"), n = () => {
602
- m(!0), typeof o == "function" ? o(e) : typeof o == "string" ? navigator.clipboard.writeText(o) : typeof e == "string" && navigator.clipboard.writeText(e);
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 H(() => {
605
- let c;
606
- return h && (c = window.setTimeout(() => {
607
- m(!1);
611
+ return O(() => {
612
+ let n;
613
+ return m && (n = window.setTimeout(() => {
614
+ h(!1);
608
615
  }, 3e3)), () => {
609
- clearTimeout(c);
616
+ clearTimeout(n);
610
617
  };
611
- }, [h]), /* @__PURE__ */ f("div", { className: b.wrapper, children: [
618
+ }, [m]), /* @__PURE__ */ f("div", { className: b.wrapper, children: [
612
619
  /* @__PURE__ */ f("div", { children: [
613
- /* @__PURE__ */ d("div", { className: b.main, children: e }),
614
- a && Object.keys(a).map((c) => a[c] ? /* @__PURE__ */ d("div", { className: "prose-p:m-0", children: /* @__PURE__ */ f("p", { className: b.footer, children: [
615
- c,
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[c]
618
- ] }) }, `-${c}`) : null),
624
+ a[n]
625
+ ] }) }, `-${n}`) : null),
619
626
  l && l
620
627
  ] }),
621
- u && /* @__PURE__ */ d("div", { className: b.copyButton, children: /* @__PURE__ */ d(
622
- E,
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: s,
634
+ mode: c,
628
635
  focusMode: g,
629
- label: h ? "Copied to clipboard" : "Copy to clipboard",
630
- onClick: n,
631
- disabled: h,
632
- children: h ? /* @__PURE__ */ d(X, { size: "size-3" }) : /* @__PURE__ */ d(Y, { size: "size-3" })
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
- O as BUBBLE_CLASSNAME,
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.2",
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.2",
43
- "@versini/ui-icons": "4.1.0",
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": "bf6b0d285a70c47a5efc225f32756b95cb963a49"
51
+ "gitHead": "88ad6c4972e02710471fede5712f5c94b67a3db9"
52
52
  }