@versini/ui-bubble 0.0.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Arno Versini
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # @versini/ui-bubble
2
+
3
+ A simple bubble component for React.
@@ -0,0 +1,6 @@
1
+ import "react/jsx-runtime";
2
+ import { Bubble as t } from "../../index.js";
3
+ import "react";
4
+ export {
5
+ t as Bubble
6
+ };
@@ -0,0 +1,57 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { SpacingProps } from '@versini/ui-private/dist/utilities';
3
+
4
+ declare const BUBBLE_CLASSNAME = "av-bubble";
5
+
6
+ type BubbleProps = {
7
+ /**
8
+ * The children to render.
9
+ */
10
+ children: React.ReactNode;
11
+ /**
12
+ * CSS class(es) to add to the main component wrapper.
13
+ */
14
+ className?: string;
15
+ /**
16
+ * Whether or not to show a "copy/paste" icon next to the Bubble.
17
+ */
18
+ copyToClipboard?: boolean | string | ((text: any) => void);
19
+ /**
20
+ * The type of focus for the Copy Button. This will change the color
21
+ * of the focus ring around the Button.
22
+ */
23
+ copyToClipboardFocusMode?: "dark" | "light" | "system" | "alt-system";
24
+ /**
25
+ * The mode of Copy Button. This will change the color of the Button.
26
+ */
27
+ copyToClipboardMode?: "dark" | "light" | "system" | "alt-system";
28
+ /**
29
+ * Object depicting the extra rows for the Bubble.
30
+ * @example
31
+ * ```tsx
32
+ * <Bubble
33
+ * footer={{
34
+ * "Sent": "12:00 PM",
35
+ * "Delivered": "12:01 PM",
36
+ * "Read": "12:02 PM",
37
+ * }}
38
+ * >Hello World</Bubble>
39
+ * ```
40
+ */
41
+ footer?: {
42
+ [key: string]: string | number | undefined | null;
43
+ };
44
+ /**
45
+ * The type of Bubble. This will change the color of the Bubble
46
+ * as well as the chevron location.
47
+ */
48
+ kind?: "left" | "right";
49
+ /**
50
+ * Same as "footer" but accepts raw JSX.
51
+ */
52
+ rawFooter?: React.ReactNode;
53
+ } & SpacingProps;
54
+
55
+ declare const Bubble: ({ children, kind, className, footer, rawFooter, copyToClipboard, copyToClipboardFocusMode, copyToClipboardMode, spacing, }: BubbleProps) => react_jsx_runtime.JSX.Element;
56
+
57
+ export { BUBBLE_CLASSNAME, Bubble };
package/dist/index.js ADDED
@@ -0,0 +1,597 @@
1
+ import { jsx as d, jsxs as v, Fragment as z } from "react/jsx-runtime";
2
+ import i from "clsx";
3
+ import N, { useState as S, useEffect as L } from "react";
4
+ /*!
5
+ @versini/ui-bubble v0.0.0
6
+ © 2024 gizmette.com
7
+ */
8
+ try {
9
+ window.__VERSINI_UI_ANCHOR__ || (window.__VERSINI_UI_ANCHOR__ = {
10
+ version: "0.0.0",
11
+ buildTime: "09/16/2024 06:43 PM EDT",
12
+ homepage: "https://github.com/aversini/ui-components",
13
+ license: "MIT"
14
+ });
15
+ } catch {
16
+ }
17
+ const $ = "av-bubble", T = "av-button", H = (e) => {
18
+ let r = "";
19
+ if (typeof e == "number" || typeof e == "string")
20
+ r = "m-" + e;
21
+ else {
22
+ const t = [];
23
+ (e == null ? void 0 : e.t) !== void 0 && t.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && t.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && t.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && t.push(`ml-${e.l}`), r = t.join(" ");
24
+ }
25
+ return r;
26
+ }, B = "icon", U = "button", j = "link", O = ({
27
+ type: e,
28
+ size: r,
29
+ labelRight: t,
30
+ labelLeft: a,
31
+ align: n
32
+ }) => {
33
+ const o = "text-sm font-medium max-h-8 py-0", s = "text-base font-medium max-h-9 py-1", l = "text-lg font-medium max-h-12 py-2";
34
+ switch (e) {
35
+ case U:
36
+ return i("px-4", {
37
+ [o]: r === "small",
38
+ [s]: r === "medium",
39
+ [l]: r === "large"
40
+ });
41
+ case j:
42
+ return i("px-4 text-center", {
43
+ [o]: r === "small",
44
+ [s]: r === "medium",
45
+ [l]: r === "large"
46
+ });
47
+ case B:
48
+ return i("inline-flex items-center", {
49
+ "justify-center": n === "center",
50
+ "justify-start": n === "left",
51
+ "justify-end": n === "right",
52
+ "h-6 w-6 p-0": r === "small" && !(t || a),
53
+ "h-6 px-4 text-sm font-medium": r === "small" && (t || a),
54
+ "h-8 w-8 p-1": r === "medium" && !(t || a),
55
+ "h-8 px-4 text-base font-medium": r === "medium" && (t || a),
56
+ "h-12 w-12 p-2": r === "large" && !(t || a),
57
+ "h-12 px-4 text-lg font-medium": r === "large" && (t || a)
58
+ });
59
+ }
60
+ }, A = ({
61
+ mode: e,
62
+ noBackground: r,
63
+ noTruncate: t,
64
+ variant: a
65
+ }) => {
66
+ if (r)
67
+ return "not-prose rounded-full";
68
+ if (a === "primary")
69
+ return i("not-prose rounded-full", {
70
+ truncate: !t,
71
+ "bg-action-dark text-copy-light": e === "dark",
72
+ "bg-action-light text-copy-lighter": e === "light",
73
+ "bg-action-dark text-copy-light dark:bg-action-light dark:text-copy-lighter": e === "system",
74
+ "bg-action-light text-copy-lighter dark:bg-action-dark dark:text-copy-light": e === "alt-system"
75
+ });
76
+ if (a === "secondary")
77
+ return i("not-prose rounded-full", {
78
+ truncate: !t,
79
+ "bg-action-dark text-copy-light": e === "light",
80
+ "bg-action-light text-copy-lighter": e === "dark",
81
+ "bg-action-dark text-copy-light dark:bg-action-light dark:text-copy-lighter": e === "alt-system",
82
+ "bg-action-light text-copy-lighter dark:bg-action-dark dark:text-copy-light": e === "system"
83
+ });
84
+ if (a === "danger")
85
+ return i("not-prose rounded-full", {
86
+ truncate: !t,
87
+ "bg-action-danger-dark text-copy-light": e === "dark",
88
+ "bg-action-danger-light text-copy-lighter": e === "light",
89
+ "bg-action-danger-dark text-copy-light dark:bg-action-danger-light dark:text-copy-lighter": e === "system",
90
+ "bg-action-danger-light text-copy-lighter dark:bg-action-danger-dark dark:text-copy-light": e === "alt-system"
91
+ });
92
+ }, P = ({
93
+ mode: e,
94
+ disabled: r,
95
+ variant: t
96
+ }) => {
97
+ if (r)
98
+ return "";
99
+ if (t === "primary")
100
+ return i("hover:text-copy-light-hover", {
101
+ "hover:bg-action-dark-hover": e === "dark",
102
+ "hover:bg-action-light-hover": e === "light",
103
+ "hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "system",
104
+ "hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "alt-system"
105
+ });
106
+ if (t === "secondary")
107
+ return i("hover:text-copy-light-hover", {
108
+ "hover:bg-action-dark-hover": e === "light",
109
+ "hover:bg-action-light-hover": e === "dark",
110
+ "hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "alt-system",
111
+ "hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "system"
112
+ });
113
+ if (t === "danger")
114
+ return i("hover:text-copy-light-hover", {
115
+ "hover:bg-action-danger-dark-hover": e === "dark",
116
+ "hover:bg-action-danger-light-hover": e === "light",
117
+ "hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
118
+ "hover:bg-action-danger-light-hover dark:hover:bg-action-danger-dark-hover": e === "alt-system"
119
+ });
120
+ }, W = ({
121
+ mode: e,
122
+ disabled: r,
123
+ variant: t
124
+ }) => {
125
+ if (r)
126
+ return "";
127
+ if (t === "primary")
128
+ return i("active:text-copy-light-active", {
129
+ "active:bg-action-dark-active": e === "dark",
130
+ "active:bg-action-light-active": e === "light",
131
+ "active:bg-action-dark-active dark:active:bg-action-light-active": e === "system",
132
+ "active:bg-action-light-active dark:active:bg-action-dark-active": e === "alt-system"
133
+ });
134
+ if (t === "secondary")
135
+ return i("active:text-copy-light-active", {
136
+ "active:bg-action-dark-active": e === "light",
137
+ "active:bg-action-light-active": e === "dark",
138
+ "active:bg-action-dark-active dark:active:bg-action-light-active": e === "alt-system",
139
+ "active:bg-action-light-active dark:active:bg-action-dark-active": e === "system"
140
+ });
141
+ if (t === "danger")
142
+ return i("active:text-copy-lighter-active", {
143
+ "active:bg-action-danger-dark-active": e === "dark",
144
+ "active:bg-action-danger-light-active": e === "light",
145
+ "active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
146
+ "active:bg-action-danger-light-active dark:active:bg-action-danger-dark-active": e === "alt-system"
147
+ });
148
+ }, D = ({
149
+ mode: e,
150
+ noBorder: r,
151
+ variant: t
152
+ }) => {
153
+ if (r)
154
+ return "border border-transparent";
155
+ if (t === "primary")
156
+ return i("border", {
157
+ "border-border-dark": e === "dark",
158
+ "border-border-accent": e === "light",
159
+ "border-border-dark dark:border-border-accent": e === "system",
160
+ "border-border-accent dark:border-border-dark": e === "alt-system"
161
+ });
162
+ if (t === "secondary")
163
+ return i("border", {
164
+ "border-border-dark": e === "light",
165
+ "border-border-accent": e === "dark",
166
+ "border-border-dark dark:border-border-accent": e === "alt-system",
167
+ "border-border-accent dark:border-border-dark": e === "system"
168
+ });
169
+ if (t === "danger")
170
+ return i("border", {
171
+ "border-border-danger-dark": e === "dark",
172
+ "border-border-danger-medium": e === "light",
173
+ "border-border-danger-dark dark:border-border-danger-medium": e === "system",
174
+ "border-border-danger-medium dark:border-border-danger-dark": e === "alt-system"
175
+ });
176
+ }, q = ({ focusMode: e }) => i("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
177
+ "focus:outline-focus-dark": e === "dark",
178
+ "focus:outline-focus-light": e === "light",
179
+ "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
180
+ "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
181
+ }), C = ({
182
+ type: e,
183
+ className: r,
184
+ raw: t,
185
+ mode: a,
186
+ focusMode: n,
187
+ disabled: o,
188
+ fullWidth: s,
189
+ size: l,
190
+ noBorder: b,
191
+ labelRight: g,
192
+ labelLeft: p,
193
+ spacing: h,
194
+ noBackground: m,
195
+ variant: c,
196
+ noTruncate: u,
197
+ align: f
198
+ }) => (c || (c = "primary"), t ? i(T, r) : i(
199
+ T,
200
+ r,
201
+ H(h),
202
+ A({ mode: a, variant: c, noBackground: m, noTruncate: u }),
203
+ O({ type: e, size: l, labelRight: g, labelLeft: p, align: f }),
204
+ D({ mode: a, variant: c, noBorder: b }),
205
+ q({ focusMode: n }),
206
+ P({ mode: a, variant: c, disabled: o }),
207
+ W({ mode: a, variant: c, disabled: o }),
208
+ {
209
+ "w-full": s,
210
+ "disabled:cursor-not-allowed disabled:opacity-50": o
211
+ }
212
+ )), F = (e, r, t) => {
213
+ var a;
214
+ !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);
215
+ }, I = N.forwardRef((e, r) => {
216
+ const { onClick: t, noInternalClick: a = !1, ...n } = e;
217
+ return /* @__PURE__ */ d(
218
+ "button",
219
+ {
220
+ ref: r,
221
+ onClick: (o) => {
222
+ F(o, a, t);
223
+ },
224
+ ...n
225
+ }
226
+ );
227
+ });
228
+ I.displayName = "BaseButton";
229
+ const M = N.forwardRef(
230
+ ({
231
+ children: e,
232
+ disabled: r = !1,
233
+ mode: t = "system",
234
+ focusMode: a = "system",
235
+ fullWidth: n = !1,
236
+ className: o,
237
+ type: s = "button",
238
+ raw: l = !1,
239
+ noBorder: b = !1,
240
+ "aria-label": g,
241
+ label: p,
242
+ size: h = "medium",
243
+ labelRight: m,
244
+ labelLeft: c,
245
+ spacing: u,
246
+ noBackground: f = !1,
247
+ align: y = "center",
248
+ ...k
249
+ }, x) => {
250
+ const w = C({
251
+ type: B,
252
+ mode: t,
253
+ focusMode: a,
254
+ fullWidth: n,
255
+ disabled: r,
256
+ raw: l,
257
+ className: o,
258
+ noBorder: b,
259
+ size: h,
260
+ labelRight: m,
261
+ labelLeft: c,
262
+ spacing: u,
263
+ noBackground: f,
264
+ align: y
265
+ }), _ = i({
266
+ "text-copy-accent-dark": t === "light" && !l,
267
+ "text-copy-light": t === "dark" && !l,
268
+ "text-copy-accent-dark dark:text-copy-light": t === "alt-system" && !l,
269
+ "text-copy-light dark:text-copy-accent-dark": t === "system" && !l
270
+ });
271
+ return /* @__PURE__ */ v(
272
+ I,
273
+ {
274
+ ref: x,
275
+ className: w,
276
+ disabled: r,
277
+ type: s,
278
+ "aria-label": g || p,
279
+ ...k,
280
+ children: [
281
+ c && /* @__PURE__ */ d("span", { className: "pr-2", children: c }),
282
+ /* @__PURE__ */ d("div", { className: _, children: e }),
283
+ m && /* @__PURE__ */ d("span", { className: "pl-2", children: m })
284
+ ]
285
+ }
286
+ );
287
+ }
288
+ );
289
+ M.displayName = "ButtonIcon";
290
+ /*!
291
+ @versini/ui-button v1.0.2
292
+ © 2024 gizmette.com
293
+ */
294
+ try {
295
+ window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
296
+ version: "1.0.2",
297
+ buildTime: "09/16/2024 06:43 PM EDT",
298
+ homepage: "https://github.com/aversini/ui-components",
299
+ license: "MIT"
300
+ });
301
+ } catch {
302
+ }
303
+ const G = N.forwardRef(
304
+ ({
305
+ children: e,
306
+ disabled: r = !1,
307
+ mode: t = "system",
308
+ focusMode: a = "system",
309
+ fullWidth: n = !1,
310
+ className: o,
311
+ type: s = "button",
312
+ raw: l = !1,
313
+ noBorder: b = !1,
314
+ "aria-label": g,
315
+ label: p,
316
+ size: h = "medium",
317
+ labelRight: m,
318
+ labelLeft: c,
319
+ spacing: u,
320
+ noBackground: f = !1,
321
+ align: y = "center",
322
+ active: k = !1,
323
+ ...x
324
+ }, w) => {
325
+ const _ = C({
326
+ type: B,
327
+ mode: t,
328
+ focusMode: a,
329
+ fullWidth: n,
330
+ disabled: r,
331
+ raw: l,
332
+ className: o,
333
+ noBorder: b,
334
+ size: h,
335
+ labelRight: m,
336
+ labelLeft: c,
337
+ spacing: u,
338
+ noBackground: f,
339
+ align: y
340
+ }), V = i({
341
+ "text-copy-accent-dark": t === "light" && !l,
342
+ "text-copy-light": t === "dark" && !l,
343
+ "text-copy-accent-dark dark:text-copy-light": t === "alt-system" && !l,
344
+ "text-copy-light dark:text-copy-accent-dark": t === "system" && !l
345
+ }), E = k ? i(
346
+ "relative",
347
+ "focus-within:static",
348
+ "focus-within:after:border-transparent",
349
+ "after:absolute",
350
+ "after:content-['']",
351
+ "after:border-b-2",
352
+ "after:bottom-[-4px]",
353
+ "after:left-0",
354
+ "after:right-0",
355
+ {
356
+ "after:border-table-dark": t === "dark",
357
+ "after:border-table-light": t === "light",
358
+ "after:border-table-dark dark:after:border-table-light": t === "system",
359
+ "after:border-table-light dark:after:border-table-dark": t === "alt-system"
360
+ }
361
+ ) : "";
362
+ return /* @__PURE__ */ d("div", { className: E, children: /* @__PURE__ */ v(
363
+ I,
364
+ {
365
+ ref: w,
366
+ className: _,
367
+ disabled: r,
368
+ type: s,
369
+ "aria-label": g || p,
370
+ ...x,
371
+ children: [
372
+ c && /* @__PURE__ */ d("span", { className: "pr-2", children: c }),
373
+ /* @__PURE__ */ d("div", { className: V, children: e }),
374
+ m && /* @__PURE__ */ d("span", { className: "pl-2", children: m })
375
+ ]
376
+ }
377
+ ) });
378
+ }
379
+ );
380
+ G.displayName = "ButtonSort";
381
+ const J = (e) => {
382
+ let r = "";
383
+ if (typeof e == "number" || typeof e == "string")
384
+ r = "m-" + e;
385
+ else {
386
+ const t = [];
387
+ (e == null ? void 0 : e.t) !== void 0 && t.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && t.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && t.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && t.push(`ml-${e.l}`), r = t.join(" ");
388
+ }
389
+ return r;
390
+ }, R = ({
391
+ children: e,
392
+ fill: r,
393
+ viewBox: t,
394
+ className: a,
395
+ defaultViewBox: n,
396
+ defaultClassName: o,
397
+ spacing: s,
398
+ title: l,
399
+ semantic: b = !1,
400
+ ...g
401
+ }) => {
402
+ const p = J(s), h = i(
403
+ p,
404
+ a || o
405
+ );
406
+ return /* @__PURE__ */ v(z, { children: [
407
+ /* @__PURE__ */ d(
408
+ "svg",
409
+ {
410
+ xmlns: "http://www.w3.org/2000/svg",
411
+ className: h,
412
+ viewBox: t || n,
413
+ fill: r || "currentColor",
414
+ role: "img",
415
+ "aria-hidden": !b,
416
+ focusable: !1,
417
+ ...g,
418
+ children: e
419
+ }
420
+ ),
421
+ l && b && /* @__PURE__ */ d("span", { className: "sr-only", children: l })
422
+ ] });
423
+ };
424
+ /*!
425
+ @versini/ui-private v1.4.9
426
+ © 2024 gizmette.com
427
+ */
428
+ try {
429
+ window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
430
+ version: "1.4.9",
431
+ buildTime: "09/16/2024 06:43 PM EDT",
432
+ homepage: "https://github.com/aversini/ui-components",
433
+ license: "MIT"
434
+ });
435
+ } catch {
436
+ }
437
+ const K = ({
438
+ className: e,
439
+ viewBox: r,
440
+ spacing: t,
441
+ title: a,
442
+ monotone: n,
443
+ ...o
444
+ }) => /* @__PURE__ */ v(
445
+ R,
446
+ {
447
+ defaultViewBox: "0 0 448 512",
448
+ defaultClassName: "size-5",
449
+ viewBox: r,
450
+ className: e,
451
+ spacing: t,
452
+ title: a || "Copied",
453
+ ...o,
454
+ children: [
455
+ /* @__PURE__ */ d(
456
+ "path",
457
+ {
458
+ opacity: "0.4",
459
+ 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"
460
+ }
461
+ ),
462
+ /* @__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" })
463
+ ]
464
+ }
465
+ ), Q = ({
466
+ className: e,
467
+ viewBox: r,
468
+ spacing: t,
469
+ title: a,
470
+ monotone: n,
471
+ ...o
472
+ }) => /* @__PURE__ */ d(
473
+ R,
474
+ {
475
+ defaultViewBox: "0 0 512 512",
476
+ defaultClassName: "size-5",
477
+ viewBox: r,
478
+ className: e,
479
+ spacing: t,
480
+ title: a || "Copy",
481
+ ...o,
482
+ 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" })
483
+ }
484
+ );
485
+ /*!
486
+ @versini/ui-icons v1.12.1
487
+ © 2024 gizmette.com
488
+ */
489
+ try {
490
+ window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
491
+ version: "1.12.1",
492
+ buildTime: "09/16/2024 06:43 PM EDT",
493
+ homepage: "https://github.com/aversini/ui-components",
494
+ license: "MIT"
495
+ });
496
+ } catch {
497
+ }
498
+ const X = (e) => {
499
+ let r = "";
500
+ if (typeof e == "number" || typeof e == "string")
501
+ r = "m-" + e;
502
+ else {
503
+ const t = [];
504
+ (e == null ? void 0 : e.t) !== void 0 && t.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && t.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && t.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && t.push(`ml-${e.l}`), r = t.join(" ");
505
+ }
506
+ return r;
507
+ }, Y = () => "p-4 sm:max-w-md md:max-w-2xl", Z = ({ kind: e }) => i({
508
+ "bg-surface-lighter dark:bg-surface-dark": e === "left",
509
+ "bg-surface-accent": e === "right"
510
+ }), ee = ({ kind: e }) => i(
511
+ "prose prose-dark dark:prose-lighter prose-p:my-3 prose-blockquote:my-3 prose-ol:my-3 prose-ul:my-3 prose-ul:prose-li:marker:text-black",
512
+ {
513
+ "text-copy-lighter": e === "right"
514
+ }
515
+ ), te = ({ kind: e }) => i("rounded-b-xl", {
516
+ "rounded-tr-xl": e === "left",
517
+ "rounded-tl-xl": e === "right"
518
+ }), re = ({
519
+ kind: e,
520
+ className: r,
521
+ spacing: t
522
+ }) => {
523
+ const a = i(
524
+ r,
525
+ $,
526
+ "flex items-start",
527
+ X(t),
528
+ {
529
+ "flex-row-reverse": e === "right"
530
+ }
531
+ ), n = i(
532
+ "flex flex-col empty:hidden",
533
+ Y(),
534
+ ee({ kind: e }),
535
+ Z({ kind: e }),
536
+ te({ kind: e })
537
+ ), o = "pr-2 pt-1 text-end text-xs text-copy-light", s = i("flex flex-col-reverse gap-2 sm:flex-row", {
538
+ "ml-2": e === "left",
539
+ "mr-2": e === "right"
540
+ });
541
+ return {
542
+ wrapper: a,
543
+ main: n,
544
+ footer: o,
545
+ copyButton: s
546
+ };
547
+ }, le = ({
548
+ children: e,
549
+ kind: r = "left",
550
+ className: t,
551
+ footer: a,
552
+ rawFooter: n,
553
+ copyToClipboard: o,
554
+ copyToClipboardFocusMode: s = "system",
555
+ copyToClipboardMode: l = "system",
556
+ spacing: b
557
+ }) => {
558
+ const [g, p] = S(!1), h = re({ kind: r, className: t, spacing: b }), m = !!o && (typeof o == "function" || typeof o == "string" || typeof e == "string"), c = () => {
559
+ p(!0), typeof o == "function" ? o(e) : typeof o == "string" ? navigator.clipboard.writeText(o) : typeof e == "string" && navigator.clipboard.writeText(e);
560
+ };
561
+ return L(() => {
562
+ let u;
563
+ return g && (u = window.setTimeout(() => {
564
+ p(!1);
565
+ }, 3e3)), () => {
566
+ clearTimeout(u);
567
+ };
568
+ }, [g]), /* @__PURE__ */ v("div", { className: h.wrapper, children: [
569
+ /* @__PURE__ */ v("div", { children: [
570
+ /* @__PURE__ */ d("div", { className: h.main, children: e }),
571
+ a && Object.keys(a).map((u) => a[u] ? /* @__PURE__ */ d("div", { className: "prose-p:m-0", children: /* @__PURE__ */ v("p", { className: h.footer, children: [
572
+ u,
573
+ ": ",
574
+ a[u]
575
+ ] }) }, `-${u}`) : null),
576
+ n && n
577
+ ] }),
578
+ m && /* @__PURE__ */ d("div", { className: h.copyButton, children: /* @__PURE__ */ d(
579
+ M,
580
+ {
581
+ noBorder: !0,
582
+ noBackground: !0,
583
+ size: "small",
584
+ mode: l,
585
+ focusMode: s,
586
+ label: g ? "Copied to clipboard" : "Copy to clipboard",
587
+ onClick: c,
588
+ disabled: g,
589
+ children: g ? /* @__PURE__ */ d(K, { className: "size-3" }) : /* @__PURE__ */ d(Q, { className: "size-3" })
590
+ }
591
+ ) })
592
+ ] });
593
+ };
594
+ export {
595
+ $ as BUBBLE_CLASSNAME,
596
+ le as Bubble
597
+ };
package/dist/style.css ADDED
@@ -0,0 +1 @@
1
+ *,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-ms-input-placeholder,textarea::-ms-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::-ms-backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.prose{color:var(--tw-prose-body);max-width:inherit}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;-webkit-padding-start:1.625em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;-webkit-padding-start:1.625em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;-webkit-padding-start:1em;padding-inline-start:1em;border-left-width:6px}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;-webkit-padding-end:.375em;padding-inline-end:.375em;padding-bottom:.1875em;-webkit-padding-start:.375em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875rem;line-height:1.25rem;margin-top:2rem;margin-bottom:2rem;border-radius:.375rem;padding-top:.8571429em;-webkit-padding-end:1.1428571em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;-webkit-padding-start:1.1428571em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;-webkit-padding-end:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;-webkit-padding-start:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em;font-size:1rem}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){-webkit-padding-start:.375em;padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){-webkit-padding-start:.375em;padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;-webkit-padding-start:1.625em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){-webkit-padding-start:0;padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){-webkit-padding-end:0;padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;-webkit-padding-end:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;-webkit-padding-start:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){-webkit-padding-start:0;padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){-webkit-padding-end:0;padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose :where(h1,h2,h3,h4,h5,h6):not(:where([class~=not-prose],[class~=not-prose] *)){font-family:Open Sans,ui-sans-serif,system-ui,sans-serif;font-weight:400}.prose :where(.av-header h1,.av-header h2,.av-header h3,.av-header h4,.av-header h5,.av-header h6):not(:where([class~=not-prose],[class~=not-prose] *)){margin:0}.prose :where(.av-header p):not(:where([class~=not-prose],[class~=not-prose] *)){margin:0}.prose :where(blockquote p):not(:where([class~=not-prose],[class~=not-prose] *)){font-family:Georgia,Cambria,Times New Roman,Times,serif}.prose-dark{--tw-prose-body: #1e293b;--tw-prose-headings: #0f172a;--tw-prose-lead: #334155;--tw-prose-links: #0f172a;--tw-prose-bold: #0f172a;--tw-prose-counters: #475569;--tw-prose-bullets: #94a3b8;--tw-prose-hr: #cbd5e1;--tw-prose-quotes: #0f172a;--tw-prose-quote-borders: #cbd5e1;--tw-prose-captions: #334155;--tw-prose-code: #0f172a;--tw-prose-pre-code: #ffffff;--tw-prose-pre-bg: #0f172a;--tw-prose-kbd: #1e293b}.prose-dark :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){color:#0f172a}@keyframes blink{50%{fill:transparent}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.m-0{margin:0}.m-1{margin:.25rem}.m-10{margin:2.5rem}.m-11{margin:2.75rem}.m-12{margin:3rem}.m-14{margin:3.5rem}.m-16{margin:4rem}.m-2{margin:.5rem}.m-20{margin:5rem}.m-24{margin:6rem}.m-28{margin:7rem}.m-3{margin:.75rem}.m-32{margin:8rem}.m-36{margin:9rem}.m-4{margin:1rem}.m-44{margin:11rem}.m-48{margin:12rem}.m-5{margin:1.25rem}.m-52{margin:13rem}.m-56{margin:14rem}.m-6{margin:1.5rem}.m-60{margin:15rem}.m-64{margin:16rem}.m-7{margin:1.75rem}.m-72{margin:18rem}.m-8{margin:2rem}.m-80{margin:20rem}.m-9{margin:2.25rem}.m-96{margin:24rem}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-11{margin-bottom:2.75rem}.mb-12{margin-bottom:3rem}.mb-14{margin-bottom:3.5rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-20{margin-bottom:5rem}.mb-24{margin-bottom:6rem}.mb-28{margin-bottom:7rem}.mb-3{margin-bottom:.75rem}.mb-32{margin-bottom:8rem}.mb-36{margin-bottom:9rem}.mb-4{margin-bottom:1rem}.mb-44{margin-bottom:11rem}.mb-48{margin-bottom:12rem}.mb-5{margin-bottom:1.25rem}.mb-52{margin-bottom:13rem}.mb-56{margin-bottom:14rem}.mb-6{margin-bottom:1.5rem}.mb-60{margin-bottom:15rem}.mb-64{margin-bottom:16rem}.mb-7{margin-bottom:1.75rem}.mb-72{margin-bottom:18rem}.mb-8{margin-bottom:2rem}.mb-80{margin-bottom:20rem}.mb-9{margin-bottom:2.25rem}.mb-96{margin-bottom:24rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-10{margin-left:2.5rem}.ml-11{margin-left:2.75rem}.ml-12{margin-left:3rem}.ml-14{margin-left:3.5rem}.ml-16{margin-left:4rem}.ml-2{margin-left:.5rem}.ml-20{margin-left:5rem}.ml-24{margin-left:6rem}.ml-28{margin-left:7rem}.ml-3{margin-left:.75rem}.ml-32{margin-left:8rem}.ml-36{margin-left:9rem}.ml-4{margin-left:1rem}.ml-44{margin-left:11rem}.ml-48{margin-left:12rem}.ml-5{margin-left:1.25rem}.ml-52{margin-left:13rem}.ml-56{margin-left:14rem}.ml-6{margin-left:1.5rem}.ml-60{margin-left:15rem}.ml-64{margin-left:16rem}.ml-7{margin-left:1.75rem}.ml-72{margin-left:18rem}.ml-8{margin-left:2rem}.ml-80{margin-left:20rem}.ml-9{margin-left:2.25rem}.ml-96{margin-left:24rem}.mr-0{margin-right:0}.mr-1{margin-right:.25rem}.mr-10{margin-right:2.5rem}.mr-11{margin-right:2.75rem}.mr-12{margin-right:3rem}.mr-14{margin-right:3.5rem}.mr-16{margin-right:4rem}.mr-2{margin-right:.5rem}.mr-20{margin-right:5rem}.mr-24{margin-right:6rem}.mr-28{margin-right:7rem}.mr-3{margin-right:.75rem}.mr-32{margin-right:8rem}.mr-36{margin-right:9rem}.mr-4{margin-right:1rem}.mr-44{margin-right:11rem}.mr-48{margin-right:12rem}.mr-5{margin-right:1.25rem}.mr-52{margin-right:13rem}.mr-56{margin-right:14rem}.mr-6{margin-right:1.5rem}.mr-60{margin-right:15rem}.mr-64{margin-right:16rem}.mr-7{margin-right:1.75rem}.mr-72{margin-right:18rem}.mr-8{margin-right:2rem}.mr-80{margin-right:20rem}.mr-9{margin-right:2.25rem}.mr-96{margin-right:24rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-11{margin-top:2.75rem}.mt-12{margin-top:3rem}.mt-14{margin-top:3.5rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-24{margin-top:6rem}.mt-28{margin-top:7rem}.mt-3{margin-top:.75rem}.mt-32{margin-top:8rem}.mt-36{margin-top:9rem}.mt-4{margin-top:1rem}.mt-44{margin-top:11rem}.mt-48{margin-top:12rem}.mt-5{margin-top:1.25rem}.mt-52{margin-top:13rem}.mt-56{margin-top:14rem}.mt-6{margin-top:1.5rem}.mt-60{margin-top:15rem}.mt-64{margin-top:16rem}.mt-7{margin-top:1.75rem}.mt-72{margin-top:18rem}.mt-8{margin-top:2rem}.mt-80{margin-top:20rem}.mt-9{margin-top:2.25rem}.mt-96{margin-top:24rem}.flex{display:flex}.inline-flex{display:inline-flex}.size-3{width:.75rem;height:.75rem}.size-5{width:1.25rem;height:1.25rem}.h-6{height:1.5rem}.w-6{width:1.5rem}.w-full{width:100%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.rounded-full{border-radius:9999px}.rounded-b-xl{border-bottom-right-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-tl-xl{border-top-left-radius:.75rem}.rounded-tr-xl{border-top-right-radius:.75rem}.border{border-width:1px}.border-transparent{border-color:transparent}.bg-surface-accent{--tw-bg-opacity: 1;background-color:var(--av-surface-accent, rgb(0 113 235 / var(--tw-bg-opacity)))}.bg-surface-dark{--tw-bg-opacity: 1;background-color:var(--av-surface-dark, rgb(51 65 85 / var(--tw-bg-opacity)))}.bg-surface-lighter{--tw-bg-opacity: 1;background-color:var(--av-surface-lighter, rgb(226 232 240 / var(--tw-bg-opacity)))}.p-0{padding:0}.p-4{padding:1rem}.pl-2{padding-left:.5rem}.pr-2{padding-right:.5rem}.pt-1{padding-top:.25rem}.text-start{text-align:start}.text-end{text-align:end}.text-xs{font-size:.75rem;line-height:1rem}.text-copy-light{--tw-text-opacity: 1;color:var(--av-copy-light, rgb(226 232 240 / var(--tw-text-opacity)))}.text-copy-lighter{--tw-text-opacity: 1;color:var(--av-copy-lighter, rgb(255 255 255 / var(--tw-text-opacity)))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}@media (prefers-color-scheme: dark){.dark\:prose-lighter{--tw-prose-body: #ffffff;--tw-prose-headings: #e2e8f0;--tw-prose-lead: #ffffff;--tw-prose-links: #ffffff;--tw-prose-bold: #ffffff;--tw-prose-counters: #e2e8f0;--tw-prose-bullets: #e2e8f0;--tw-prose-hr: #e2e8f0;--tw-prose-quotes: #ffffff;--tw-prose-quote-borders: #ffffff;--tw-prose-captions: #ffffff;--tw-prose-code: #ffffff;--tw-prose-pre-code: #ffffff;--tw-prose-pre-bg: #0f172a;--tw-prose-kbd: #ffffff}.dark\:prose-lighter :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){color:#fff}}.empty\:hidden:empty{display:none}.hover\:bg-action-dark-hover:hover{--tw-bg-opacity: 1;background-color:var(--av-action-dark-hover, rgb(51 65 85 / var(--tw-bg-opacity)))}.hover\:bg-action-light-hover:hover{--tw-bg-opacity: 1;background-color:var(--av-action-light-hover, rgb(71 85 105 / var(--tw-bg-opacity)))}.hover\:text-copy-light-hover:hover{--tw-text-opacity: 1;color:var(--av-copy-light-hover, rgb(226 232 240 / var(--tw-text-opacity)))}.focus\:outline:focus{outline-style:solid}.focus\:outline-2:focus{outline-width:2px}.focus\:outline-offset-2:focus{outline-offset:2px}.focus\:outline-focus-dark:focus{outline-color:var(--av-focus-dark, rgb(21 128 61 / 1))}.focus\:outline-focus-light:focus{outline-color:var(--av-focus-light, rgb(134 239 172 / 1))}.active\:bg-action-dark-active:active{--tw-bg-opacity: 1;background-color:var(--av-action-dark-active, rgb(71 85 105 / var(--tw-bg-opacity)))}.active\:bg-action-light-active:active{--tw-bg-opacity: 1;background-color:var(--av-action-light-active, rgb(51 65 85 / var(--tw-bg-opacity)))}.active\:text-copy-light-active:active{--tw-text-opacity: 1;color:var(--av-copy-light-active, rgb(148 163 184 / var(--tw-text-opacity)))}.prose-p\:m-0 :is(:where(p):not(:where([class~=not-prose],[class~=not-prose] *))){margin:0}.prose-p\:my-3 :is(:where(p):not(:where([class~=not-prose],[class~=not-prose] *))){margin-top:.75rem;margin-bottom:.75rem}.prose-blockquote\:my-3 :is(:where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *))){margin-top:.75rem;margin-bottom:.75rem}.prose-ol\:my-3 :is(:where(ol):not(:where([class~=not-prose],[class~=not-prose] *))){margin-top:.75rem;margin-bottom:.75rem}.prose-ul\:my-3 :is(:where(ul):not(:where([class~=not-prose],[class~=not-prose] *))){margin-top:.75rem;margin-bottom:.75rem}.prose-ul\:prose-li\:marker\:text-black * :is(:where(li):not(:where([class~=not-prose],[class~=not-prose] *))) :is(:where(ul):not(:where([class~=not-prose],[class~=not-prose] *)))::marker{color:#000}.prose-ul\:prose-li\:marker\:text-black :is(:where(li):not(:where([class~=not-prose],[class~=not-prose] *))) :is(:where(ul):not(:where([class~=not-prose],[class~=not-prose] *)))::marker{color:#000}@media (min-width: 640px){.sm\:max-w-md{max-width:28rem}.sm\:flex-row{flex-direction:row}}@media (min-width: 768px){.md\:max-w-2xl{max-width:42rem}}@media (prefers-color-scheme: dark){.dark\:bg-surface-dark{--tw-bg-opacity: 1;background-color:var(--av-surface-dark, rgb(51 65 85 / var(--tw-bg-opacity)))}.dark\:hover\:bg-action-light-hover:hover{--tw-bg-opacity: 1;background-color:var(--av-action-light-hover, rgb(71 85 105 / var(--tw-bg-opacity)))}.dark\:focus\:outline-focus-light:focus{outline-color:var(--av-focus-light, rgb(134 239 172 / 1))}.dark\:active\:bg-action-light-active:active{--tw-bg-opacity: 1;background-color:var(--av-action-light-active, rgb(51 65 85 / var(--tw-bg-opacity)))}}
package/dist/style.js ADDED
File without changes
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@versini/ui-bubble",
3
+ "version": "0.0.0",
4
+ "license": "MIT",
5
+ "author": "Arno Versini",
6
+ "publishConfig": {
7
+ "access": "public"
8
+ },
9
+ "homepage": "https://github.com/aversini/ui-components",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git@github.com:aversini/ui-components.git"
13
+ },
14
+ "type": "module",
15
+ "main": "dist/index.js",
16
+ "types": "dist/index.d.ts",
17
+ "files": [
18
+ "dist"
19
+ ],
20
+ "scripts": {
21
+ "build:check": "tsc",
22
+ "build:js": "vite build",
23
+ "build:types": "tsup",
24
+ "build": "npm-run-all --serial clean build:check build:js build:types",
25
+ "clean": "rimraf dist tmp",
26
+ "dev:js": "vite build --watch --mode development",
27
+ "dev:types": "tsup --watch src",
28
+ "dev": "npm-run-all clean --parallel dev:js dev:types",
29
+ "lint": "biome lint src",
30
+ "start": "static-server dist --port 5173",
31
+ "test:coverage:ui": "vitest --coverage --ui",
32
+ "test:coverage": "vitest run --coverage",
33
+ "test:watch": "vitest",
34
+ "test": "vitest run"
35
+ },
36
+ "peerDependencies": {
37
+ "react": "^18.3.1",
38
+ "react-dom": "^18.3.1"
39
+ },
40
+ "devDependencies": {
41
+ "@versini/ui-styles": "1.9.7"
42
+ },
43
+ "dependencies": {
44
+ "@tailwindcss/typography": "0.5.15",
45
+ "@versini/ui-button": "1.0.2",
46
+ "@versini/ui-icons": "1.12.1",
47
+ "@versini/ui-private": "1.4.9",
48
+ "clsx": "2.1.1",
49
+ "tailwindcss": "3.4.11"
50
+ },
51
+ "sideEffects": [
52
+ "**/*.css"
53
+ ],
54
+ "gitHead": "7eb19b791ba2d13c72d2b19bb0a01626f0ee3b97"
55
+ }