@versini/ui-bubble 2.0.11 → 2.0.12
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 +31 -31
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -2,13 +2,13 @@ import { jsx as c, jsxs as v, Fragment as S } from "react/jsx-runtime";
|
|
|
2
2
|
import i from "clsx";
|
|
3
3
|
import _, { useState as R, useEffect as L } from "react";
|
|
4
4
|
/*!
|
|
5
|
-
@versini/ui-bubble v2.0.
|
|
6
|
-
©
|
|
5
|
+
@versini/ui-bubble v2.0.12
|
|
6
|
+
© 2025 gizmette.com
|
|
7
7
|
*/
|
|
8
8
|
try {
|
|
9
9
|
window.__VERSINI_UI_BUBBLE__ || (window.__VERSINI_UI_BUBBLE__ = {
|
|
10
|
-
version: "2.0.
|
|
11
|
-
buildTime: "
|
|
10
|
+
version: "2.0.12",
|
|
11
|
+
buildTime: "01/01/2025 07:31 PM EST",
|
|
12
12
|
homepage: "https://github.com/aversini/ui-components",
|
|
13
13
|
license: "MIT"
|
|
14
14
|
});
|
|
@@ -48,7 +48,7 @@ const U = "av-bubble", z = "av-button", N = "icon", H = "button", O = "link", j
|
|
|
48
48
|
"h-12 px-4 text-lg font-medium": r === "large" && (t || o)
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
},
|
|
51
|
+
}, W = ({
|
|
52
52
|
mode: e,
|
|
53
53
|
noBackground: r,
|
|
54
54
|
noTruncate: t,
|
|
@@ -105,7 +105,7 @@ const U = "av-bubble", z = "av-button", N = "icon", H = "button", O = "link", j
|
|
|
105
105
|
"bg-action-selected-dark text-copy-light dark:bg-action-selected-light dark:text-copy-lighter": e === "system",
|
|
106
106
|
"bg-action-selected-light text-copy-lighter dark:bg-action-selected-dark dark:text-copy-light": e === "alt-system"
|
|
107
107
|
});
|
|
108
|
-
},
|
|
108
|
+
}, P = ({
|
|
109
109
|
mode: e,
|
|
110
110
|
disabled: r,
|
|
111
111
|
variant: t
|
|
@@ -140,7 +140,7 @@ const U = "av-bubble", z = "av-button", N = "icon", H = "button", O = "link", j
|
|
|
140
140
|
"hover:bg-action-selected-dark-hover dark:hover:bg-action-selected-light-hover": e === "system",
|
|
141
141
|
"hover:bg-action-selected-light-hover dark:hover:bg-action-selected-dark-hover": e === "alt-system"
|
|
142
142
|
});
|
|
143
|
-
},
|
|
143
|
+
}, A = ({
|
|
144
144
|
mode: e,
|
|
145
145
|
disabled: r,
|
|
146
146
|
variant: t
|
|
@@ -175,7 +175,7 @@ const U = "av-bubble", z = "av-button", N = "icon", H = "button", O = "link", j
|
|
|
175
175
|
"active:bg-action-selected-dark-active dark:active:bg-action-selected-light-active": e === "system",
|
|
176
176
|
"active:bg-action-selected-light-active dark:active:bg-action-selected-dark-active": e === "alt-system"
|
|
177
177
|
});
|
|
178
|
-
},
|
|
178
|
+
}, G = ({
|
|
179
179
|
mode: e,
|
|
180
180
|
noBorder: r,
|
|
181
181
|
variant: t
|
|
@@ -210,7 +210,7 @@ const U = "av-bubble", z = "av-button", N = "icon", H = "button", O = "link", j
|
|
|
210
210
|
"border-border-selected-dark dark:border-border-selected-medium": e === "system",
|
|
211
211
|
"border-border-selected-medium dark:border-border-selected-dark": e === "alt-system"
|
|
212
212
|
});
|
|
213
|
-
},
|
|
213
|
+
}, q = ({
|
|
214
214
|
focusMode: e
|
|
215
215
|
}) => i("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
216
216
|
"focus:outline-focus-dark": e === "dark",
|
|
@@ -236,7 +236,7 @@ const U = "av-bubble", z = "av-button", N = "icon", H = "button", O = "link", j
|
|
|
236
236
|
radius: f
|
|
237
237
|
}) => (n || (n = "primary"), t ? i(z, r) : i(
|
|
238
238
|
z,
|
|
239
|
-
|
|
239
|
+
W({
|
|
240
240
|
mode: o,
|
|
241
241
|
variant: n,
|
|
242
242
|
noBackground: u,
|
|
@@ -250,16 +250,16 @@ const U = "av-bubble", z = "av-button", N = "icon", H = "button", O = "link", j
|
|
|
250
250
|
labelLeft: b,
|
|
251
251
|
align: p
|
|
252
252
|
}),
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
253
|
+
G({ mode: o, variant: n, noBorder: h }),
|
|
254
|
+
q({ focusMode: a }),
|
|
255
|
+
P({ mode: o, variant: n, disabled: d }),
|
|
256
|
+
A({ mode: o, variant: n, disabled: d }),
|
|
257
257
|
{
|
|
258
258
|
"w-full": g,
|
|
259
259
|
"disabled:cursor-not-allowed disabled:opacity-50": d
|
|
260
260
|
},
|
|
261
261
|
r
|
|
262
|
-
)),
|
|
262
|
+
)), D = (e, r, t) => {
|
|
263
263
|
var o;
|
|
264
264
|
!r && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((o = e == null ? void 0 : e.currentTarget) == null ? void 0 : o.focus) == "function" && e.currentTarget.focus(), typeof t == "function" && t(e);
|
|
265
265
|
}, I = _.forwardRef((e, r) => {
|
|
@@ -269,7 +269,7 @@ const U = "av-bubble", z = "av-button", N = "icon", H = "button", O = "link", j
|
|
|
269
269
|
{
|
|
270
270
|
ref: r,
|
|
271
271
|
onClick: (d) => {
|
|
272
|
-
|
|
272
|
+
D(d, o, t);
|
|
273
273
|
},
|
|
274
274
|
...a
|
|
275
275
|
}
|
|
@@ -338,19 +338,19 @@ const C = _.forwardRef(
|
|
|
338
338
|
);
|
|
339
339
|
C.displayName = "ButtonIcon";
|
|
340
340
|
/*!
|
|
341
|
-
@versini/ui-button v3.2.
|
|
342
|
-
©
|
|
341
|
+
@versini/ui-button v3.2.1
|
|
342
|
+
© 2025 gizmette.com
|
|
343
343
|
*/
|
|
344
344
|
try {
|
|
345
345
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
346
|
-
version: "3.2.
|
|
347
|
-
buildTime: "
|
|
346
|
+
version: "3.2.1",
|
|
347
|
+
buildTime: "01/01/2025 07:31 PM EST",
|
|
348
348
|
homepage: "https://github.com/aversini/ui-components",
|
|
349
349
|
license: "MIT"
|
|
350
350
|
});
|
|
351
351
|
} catch {
|
|
352
352
|
}
|
|
353
|
-
const
|
|
353
|
+
const F = _.forwardRef(
|
|
354
354
|
({
|
|
355
355
|
children: e,
|
|
356
356
|
disabled: r = !1,
|
|
@@ -427,7 +427,7 @@ const J = _.forwardRef(
|
|
|
427
427
|
) });
|
|
428
428
|
}
|
|
429
429
|
);
|
|
430
|
-
|
|
430
|
+
F.displayName = "ButtonSort";
|
|
431
431
|
const M = ({
|
|
432
432
|
children: e,
|
|
433
433
|
fill: r,
|
|
@@ -460,18 +460,18 @@ const M = ({
|
|
|
460
460
|
};
|
|
461
461
|
/*!
|
|
462
462
|
@versini/ui-svgicon v3.0.2
|
|
463
|
-
©
|
|
463
|
+
© 2025 gizmette.com
|
|
464
464
|
*/
|
|
465
465
|
try {
|
|
466
466
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
467
467
|
version: "3.0.2",
|
|
468
|
-
buildTime: "
|
|
468
|
+
buildTime: "01/01/2025 07:31 PM EST",
|
|
469
469
|
homepage: "https://github.com/aversini/ui-components",
|
|
470
470
|
license: "MIT"
|
|
471
471
|
});
|
|
472
472
|
} catch {
|
|
473
473
|
}
|
|
474
|
-
const
|
|
474
|
+
const J = ({
|
|
475
475
|
className: e,
|
|
476
476
|
viewBox: r,
|
|
477
477
|
title: t,
|
|
@@ -497,7 +497,7 @@ const K = ({
|
|
|
497
497
|
/* @__PURE__ */ c("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" })
|
|
498
498
|
]
|
|
499
499
|
}
|
|
500
|
-
),
|
|
500
|
+
), K = ({
|
|
501
501
|
className: e,
|
|
502
502
|
viewBox: r,
|
|
503
503
|
title: t,
|
|
@@ -516,13 +516,13 @@ const K = ({
|
|
|
516
516
|
}
|
|
517
517
|
);
|
|
518
518
|
/*!
|
|
519
|
-
@versini/ui-icons v3.0
|
|
520
|
-
©
|
|
519
|
+
@versini/ui-icons v3.1.0
|
|
520
|
+
© 2025 gizmette.com
|
|
521
521
|
*/
|
|
522
522
|
try {
|
|
523
523
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
524
|
-
version: "3.0
|
|
525
|
-
buildTime: "
|
|
524
|
+
version: "3.1.0",
|
|
525
|
+
buildTime: "01/01/2025 07:31 PM EST",
|
|
526
526
|
homepage: "https://github.com/aversini/ui-components",
|
|
527
527
|
license: "MIT"
|
|
528
528
|
});
|
|
@@ -607,7 +607,7 @@ const Q = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", X = ({ kind: e }) => i(
|
|
|
607
607
|
label: h ? "Copied to clipboard" : "Copy to clipboard",
|
|
608
608
|
onClick: n,
|
|
609
609
|
disabled: h,
|
|
610
|
-
children: h ? /* @__PURE__ */ c(
|
|
610
|
+
children: h ? /* @__PURE__ */ c(J, { size: "size-3" }) : /* @__PURE__ */ c(K, { size: "size-3" })
|
|
611
611
|
}
|
|
612
612
|
) })
|
|
613
613
|
] });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-bubble",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.12",
|
|
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": "3.2.
|
|
43
|
-
"@versini/ui-icons": "3.0
|
|
42
|
+
"@versini/ui-button": "3.2.1",
|
|
43
|
+
"@versini/ui-icons": "3.1.0",
|
|
44
44
|
"@versini/ui-types": "3.0.2",
|
|
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": "d052f6a22a228e03504ab6eef71c817bd53dd656"
|
|
52
52
|
}
|