@versini/ui-bubble 2.0.1 → 2.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 +30 -30
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -2,13 +2,13 @@ import { jsx as c, jsxs as v, Fragment as z } from "react/jsx-runtime";
|
|
|
2
2
|
import i from "clsx";
|
|
3
3
|
import N, { useState as R, useEffect as L } from "react";
|
|
4
4
|
/*!
|
|
5
|
-
@versini/ui-bubble v2.0.
|
|
5
|
+
@versini/ui-bubble v2.0.3
|
|
6
6
|
© 2024 gizmette.com
|
|
7
7
|
*/
|
|
8
8
|
try {
|
|
9
9
|
window.__VERSINI_UI_BUBBLE__ || (window.__VERSINI_UI_BUBBLE__ = {
|
|
10
|
-
version: "2.0.
|
|
11
|
-
buildTime: "12/30/2024
|
|
10
|
+
version: "2.0.3",
|
|
11
|
+
buildTime: "12/30/2024 02:26 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", C = "av-button", _ = "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", C = "av-button", _ = "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", C = "av-button", _ = "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", C = "av-button", _ = "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", C = "av-button", _ = "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", C = "av-button", _ = "icon", H = "button", O = "link", j
|
|
|
236
236
|
radius: f
|
|
237
237
|
}) => (n || (n = "primary"), t ? i(C, r) : i(
|
|
238
238
|
C,
|
|
239
|
-
|
|
239
|
+
W({
|
|
240
240
|
mode: o,
|
|
241
241
|
variant: n,
|
|
242
242
|
noBackground: u,
|
|
@@ -244,16 +244,16 @@ const U = "av-bubble", C = "av-button", _ = "icon", H = "button", O = "link", j
|
|
|
244
244
|
radius: f
|
|
245
245
|
}),
|
|
246
246
|
j({ type: e, size: l, labelRight: m, labelLeft: b, align: p }),
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
247
|
+
G({ mode: o, variant: n, noBorder: h }),
|
|
248
|
+
q({ focusMode: a }),
|
|
249
|
+
P({ mode: o, variant: n, disabled: d }),
|
|
250
|
+
A({ mode: o, variant: n, disabled: d }),
|
|
251
251
|
{
|
|
252
252
|
"w-full": g,
|
|
253
253
|
"disabled:cursor-not-allowed disabled:opacity-50": d
|
|
254
254
|
},
|
|
255
255
|
r
|
|
256
|
-
)),
|
|
256
|
+
)), D = (e, r, t) => {
|
|
257
257
|
var o;
|
|
258
258
|
!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);
|
|
259
259
|
}, I = N.forwardRef((e, r) => {
|
|
@@ -263,7 +263,7 @@ const U = "av-bubble", C = "av-button", _ = "icon", H = "button", O = "link", j
|
|
|
263
263
|
{
|
|
264
264
|
ref: r,
|
|
265
265
|
onClick: (d) => {
|
|
266
|
-
|
|
266
|
+
D(d, o, t);
|
|
267
267
|
},
|
|
268
268
|
...a
|
|
269
269
|
}
|
|
@@ -332,19 +332,19 @@ const M = N.forwardRef(
|
|
|
332
332
|
);
|
|
333
333
|
M.displayName = "ButtonIcon";
|
|
334
334
|
/*!
|
|
335
|
-
@versini/ui-button v2.1
|
|
335
|
+
@versini/ui-button v2.2.1
|
|
336
336
|
© 2024 gizmette.com
|
|
337
337
|
*/
|
|
338
338
|
try {
|
|
339
339
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
340
|
-
version: "2.1
|
|
341
|
-
buildTime: "12/30/2024
|
|
340
|
+
version: "2.2.1",
|
|
341
|
+
buildTime: "12/30/2024 02:25 PM EST",
|
|
342
342
|
homepage: "https://github.com/aversini/ui-components",
|
|
343
343
|
license: "MIT"
|
|
344
344
|
});
|
|
345
345
|
} catch {
|
|
346
346
|
}
|
|
347
|
-
const
|
|
347
|
+
const F = N.forwardRef(
|
|
348
348
|
({
|
|
349
349
|
children: e,
|
|
350
350
|
disabled: r = !1,
|
|
@@ -421,7 +421,7 @@ const J = N.forwardRef(
|
|
|
421
421
|
) });
|
|
422
422
|
}
|
|
423
423
|
);
|
|
424
|
-
|
|
424
|
+
F.displayName = "ButtonSort";
|
|
425
425
|
const V = ({
|
|
426
426
|
children: e,
|
|
427
427
|
fill: r,
|
|
@@ -433,7 +433,7 @@ const V = ({
|
|
|
433
433
|
semantic: l = !1,
|
|
434
434
|
...h
|
|
435
435
|
}) => {
|
|
436
|
-
const m = i(o
|
|
436
|
+
const m = i(d, o);
|
|
437
437
|
return /* @__PURE__ */ v(z, { children: [
|
|
438
438
|
/* @__PURE__ */ c(
|
|
439
439
|
"svg",
|
|
@@ -453,19 +453,19 @@ const V = ({
|
|
|
453
453
|
] });
|
|
454
454
|
};
|
|
455
455
|
/*!
|
|
456
|
-
@versini/ui-svgicon v2.0.
|
|
456
|
+
@versini/ui-svgicon v2.0.3
|
|
457
457
|
© 2024 gizmette.com
|
|
458
458
|
*/
|
|
459
459
|
try {
|
|
460
460
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
461
|
-
version: "2.0.
|
|
462
|
-
buildTime: "12/30/2024
|
|
461
|
+
version: "2.0.3",
|
|
462
|
+
buildTime: "12/30/2024 02:25 PM EST",
|
|
463
463
|
homepage: "https://github.com/aversini/ui-components",
|
|
464
464
|
license: "MIT"
|
|
465
465
|
});
|
|
466
466
|
} catch {
|
|
467
467
|
}
|
|
468
|
-
const
|
|
468
|
+
const J = ({
|
|
469
469
|
className: e,
|
|
470
470
|
viewBox: r,
|
|
471
471
|
title: t,
|
|
@@ -491,7 +491,7 @@ const K = ({
|
|
|
491
491
|
/* @__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" })
|
|
492
492
|
]
|
|
493
493
|
}
|
|
494
|
-
),
|
|
494
|
+
), K = ({
|
|
495
495
|
className: e,
|
|
496
496
|
viewBox: r,
|
|
497
497
|
title: t,
|
|
@@ -510,13 +510,13 @@ const K = ({
|
|
|
510
510
|
}
|
|
511
511
|
);
|
|
512
512
|
/*!
|
|
513
|
-
@versini/ui-icons v2.0.
|
|
513
|
+
@versini/ui-icons v2.0.3
|
|
514
514
|
© 2024 gizmette.com
|
|
515
515
|
*/
|
|
516
516
|
try {
|
|
517
517
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
518
|
-
version: "2.0.
|
|
519
|
-
buildTime: "12/30/2024
|
|
518
|
+
version: "2.0.3",
|
|
519
|
+
buildTime: "12/30/2024 02:25 PM EST",
|
|
520
520
|
homepage: "https://github.com/aversini/ui-components",
|
|
521
521
|
license: "MIT"
|
|
522
522
|
});
|
|
@@ -601,7 +601,7 @@ const Q = () => "p-4 sm:max-w-md md:max-w-2xl", X = ({ kind: e }) => i({
|
|
|
601
601
|
label: h ? "Copied to clipboard" : "Copy to clipboard",
|
|
602
602
|
onClick: n,
|
|
603
603
|
disabled: h,
|
|
604
|
-
children: h ? /* @__PURE__ */ c(
|
|
604
|
+
children: h ? /* @__PURE__ */ c(J, { className: "size-3" }) : /* @__PURE__ */ c(K, { className: "size-3" })
|
|
605
605
|
}
|
|
606
606
|
) })
|
|
607
607
|
] });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-bubble",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@tailwindcss/typography": "0.5.15",
|
|
42
|
-
"@versini/ui-button": "2.1
|
|
43
|
-
"@versini/ui-icons": "2.0.
|
|
44
|
-
"@versini/ui-types": "2.
|
|
42
|
+
"@versini/ui-button": "2.2.1",
|
|
43
|
+
"@versini/ui-icons": "2.0.3",
|
|
44
|
+
"@versini/ui-types": "2.2.0",
|
|
45
45
|
"clsx": "2.1.1",
|
|
46
46
|
"tailwindcss": "3.4.17"
|
|
47
47
|
},
|
|
48
48
|
"sideEffects": [
|
|
49
49
|
"**/*.css"
|
|
50
50
|
],
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "2a29d0fa51876f41fb9acab344a9c8e87fc6a0a2"
|
|
52
52
|
}
|