@versini/sassysaint 8.107.3 → 8.107.4
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/chunks/{AboutChangelog.BmMVyf-Q.js → AboutChangelog.DeRcKN5H.js} +2 -2
- package/dist/chunks/{AboutEntry.wD5hG0ON.js → AboutEntry.6mTHwkfb.js} +7 -7
- package/dist/chunks/{App.FyINLNSp.js → App.DTjbiLAP.js} +1746 -1908
- package/dist/chunks/{Bubble.Ci-pu6NI.js → Bubble.ltolxxta.js} +47 -74
- package/dist/chunks/{Chart.DYVf2gst.js → Chart.BzOmOhOW.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.CD6bVvcQ.js → ChatBubbleAssistant.lGE_8ao1.js} +199 -208
- package/dist/chunks/{ChatBubbleUser.Cre3cX04.js → ChatBubbleUser.DC661ePq.js} +27 -36
- package/dist/chunks/{ChatHistoryTable.D_kOkWN9.js → ChatHistoryTable.BkRFWpsA.js} +108 -121
- package/dist/chunks/{Table.Dzy9ts3i.js → DeleteButtonIcon.P0LgJDjE.js} +125 -104
- package/dist/chunks/{HistoryEntry.BFNME4Z8.js → HistoryEntry.uUjsDuT0.js} +6 -6
- package/dist/chunks/{LoginEntry.SW7wyEpU.js → LoginEntry.BGZdTDwf.js} +4 -4
- package/dist/chunks/{LogoEntry.BAKpdJEy.js → LogoEntry.Bpddd0yA.js} +304 -385
- package/dist/chunks/{MemoriesEntry.Ztyx_8Wm.js → MemoriesEntry.BYQm9cuU.js} +164 -169
- package/dist/chunks/{ProfileEntry.CjzAusYw.js → ProfileEntry.BqcZXSeT.js} +4 -4
- package/dist/chunks/{SettingsEntry.D4IKmfYP.js → SettingsEntry.BdC5Vyof.js} +5 -5
- package/dist/chunks/{UsageEntry.D7sTPflE.js → UsageEntry._O8Q6TwS.js} +5 -5
- package/dist/chunks/index.Bi0z4EE1.js +90 -0
- package/dist/chunks/{index.BI1_ccPN.js → index.BlviGqw0.js} +3 -3
- package/dist/chunks/{index.BfTDtoYy.js → index.BxbWxVtd.js} +1 -1
- package/dist/chunks/index.C70LcKzU.js +279 -0
- package/dist/chunks/{index.BT3Do9Po.js → index.CYcieK1H.js} +34 -43
- package/dist/chunks/{index.QiLu2wkI.js → index.CaofbEIP.js} +2 -2
- package/dist/chunks/{index.DBovegdE.js → index.D2nN0rC6.js} +1 -1
- package/dist/chunks/{index.uILjvEfo.js → index.DG-VhqKw.js} +1 -1
- package/dist/chunks/{index.16gcBvke.js → index.DuxTgnco.js} +60 -69
- package/dist/chunks/{index.DJlv39cv.js → index.s8Izh8-Q.js} +2 -2
- package/dist/chunks/{useMarkdown.BberHabr.js → useMarkdown.DjEZz9lH.js} +315 -324
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +5 -5
- package/dist/chunks/index.BjnVQ4X3.js +0 -99
- package/dist/chunks/index.uVDYkuxz.js +0 -297
|
@@ -1,28 +1,19 @@
|
|
|
1
|
-
import { jsxs as F, jsx as g, Fragment as
|
|
2
|
-
import { useResizeObserver as
|
|
3
|
-
import { LiveRegion as H } from "./index.
|
|
4
|
-
import
|
|
1
|
+
import { jsxs as F, jsx as g, Fragment as q } from "react/jsx-runtime";
|
|
2
|
+
import { useResizeObserver as B, useUniqueId as W, useMergeRefs as z } from "./LogoEntry.Bpddd0yA.js";
|
|
3
|
+
import { LiveRegion as H } from "./index.Bi0z4EE1.js";
|
|
4
|
+
import P, { useState as w, useRef as N, useLayoutEffect as O, useEffect as G } from "react";
|
|
5
5
|
import l from "clsx";
|
|
6
|
-
|
|
7
|
-
window.__VERSINI_UI_TEXTINPUT__ || (window.__VERSINI_UI_TEXTINPUT__ = {
|
|
8
|
-
version: "6.0.1",
|
|
9
|
-
buildTime: "12/24/2025 09:20 AM EST",
|
|
10
|
-
homepage: "https://www.npmjs.com/package/@versini/ui-textinput",
|
|
11
|
-
license: "MIT"
|
|
12
|
-
});
|
|
13
|
-
} catch {
|
|
14
|
-
}
|
|
15
|
-
const X = "av-text-input", G = "av-text-input-wrapper", U = "av-text-input-helper-text", J = ({ mode: e }) => l({
|
|
6
|
+
const $ = "av-text-input", J = "av-text-input-wrapper", M = "av-text-input-helper-text", K = ({ mode: e }) => l({
|
|
16
7
|
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
|
17
8
|
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
|
18
9
|
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
|
19
10
|
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
|
20
|
-
}),
|
|
11
|
+
}), Q = ({ focusMode: e }) => l("focus:outline-2 focus:outline-offset-2", {
|
|
21
12
|
"focus:outline-focus-dark": e === "dark",
|
|
22
13
|
"focus:outline-focus-light": e === "light",
|
|
23
14
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
24
15
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
25
|
-
}),
|
|
16
|
+
}), V = ({ noBorder: e, error: s }) => l("border-2", {
|
|
26
17
|
"border-border-dark": !e && !s,
|
|
27
18
|
"focus:border-border-dark": !e && s,
|
|
28
19
|
"border-border-error-dark": !e && s,
|
|
@@ -50,25 +41,25 @@ const X = "av-text-input", G = "av-text-input-wrapper", U = "av-text-input-helpe
|
|
|
50
41
|
if (s)
|
|
51
42
|
return "";
|
|
52
43
|
if (r)
|
|
53
|
-
return l(
|
|
44
|
+
return l(M, "absolute px-2 cursor-not-allowed opacity-50 font-medium");
|
|
54
45
|
if (!e)
|
|
55
|
-
return l(
|
|
46
|
+
return l(M, "absolute px-2 font-medium", {
|
|
56
47
|
"text-copy-lighter": t === "dark",
|
|
57
48
|
"text-copy-dark": t === "light",
|
|
58
49
|
"text-copy-dark dark:text-copy-lighter": t === "system",
|
|
59
50
|
"text-copy-lighter dark:text-copy-dark": t === "alt-system"
|
|
60
51
|
});
|
|
61
52
|
if (e)
|
|
62
|
-
return l(
|
|
53
|
+
return l(M, "absolute px-2 font-medium", {
|
|
63
54
|
"text-copy-error-light bg-surface-darker": t === "dark",
|
|
64
55
|
"text-copy-error-dark": t === "light",
|
|
65
56
|
"text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": t === "system",
|
|
66
57
|
"dark:text-copy-error-dark text-copy-error-light bg-surface-darker": t === "alt-system"
|
|
67
58
|
});
|
|
68
|
-
}, ee = ({ className: e, inputClassName: s, raw: t, disabled: r, noBorder: n, error: p, mode: d, focusMode:
|
|
69
|
-
const
|
|
59
|
+
}, ee = ({ className: e, inputClassName: s, raw: t, disabled: r, noBorder: n, error: p, mode: d, focusMode: b, size: m, rightElementClassName: T }) => {
|
|
60
|
+
const I = t ? e : l("relative flex w-full flex-col justify-center", J, e);
|
|
70
61
|
let c = "";
|
|
71
|
-
switch (
|
|
62
|
+
switch (m) {
|
|
72
63
|
case "xs":
|
|
73
64
|
c = "h-8";
|
|
74
65
|
break;
|
|
@@ -85,16 +76,16 @@ const X = "av-text-input", G = "av-text-input-wrapper", U = "av-text-input-helpe
|
|
|
85
76
|
c = "h-12";
|
|
86
77
|
break;
|
|
87
78
|
}
|
|
88
|
-
const E = t ? l(s) : l(
|
|
79
|
+
const E = t ? l(s) : l($, c, "rounded-md text-base px-4", K({
|
|
89
80
|
mode: d
|
|
90
|
-
}), K({
|
|
91
|
-
focusMode: m
|
|
92
81
|
}), Q({
|
|
82
|
+
focusMode: b
|
|
83
|
+
}), V({
|
|
93
84
|
noBorder: n,
|
|
94
85
|
error: p
|
|
95
86
|
}), {
|
|
96
87
|
"disabled:cursor-not-allowed disabled:opacity-50": r
|
|
97
|
-
}, s),
|
|
88
|
+
}, s), R = t ? void 0 : "sr-only", o = Y({
|
|
98
89
|
disabled: r,
|
|
99
90
|
raw: t,
|
|
100
91
|
error: p,
|
|
@@ -106,18 +97,18 @@ const X = "av-text-input", G = "av-text-input-wrapper", U = "av-text-input-helpe
|
|
|
106
97
|
disabled: r
|
|
107
98
|
}), f = t ? void 0 : l("absolute right-3", T);
|
|
108
99
|
return {
|
|
109
|
-
wrapper:
|
|
100
|
+
wrapper: I,
|
|
110
101
|
input: E,
|
|
111
|
-
accessibleLabel:
|
|
102
|
+
accessibleLabel: R,
|
|
112
103
|
visibleLabel: o,
|
|
113
104
|
helperText: x,
|
|
114
105
|
rightElement: f
|
|
115
106
|
};
|
|
116
|
-
},
|
|
117
|
-
const [
|
|
107
|
+
}, D = /* @__PURE__ */ P.forwardRef(({ id: e, name: s, label: t, error: r = !1, raw: n = !1, className: p, inputClassName: d, mode: b = "system", focusMode: m = "system", disabled: T = !1, noBorder: I = !1, labelId: c, labelHidden: E = !1, type: R = "text", helperText: o = "", rightElement: x, rightElementClassName: f, size: i = "md", ...v }, A) => {
|
|
108
|
+
const [L, u] = B(), [S, _] = w(0), y = W({
|
|
118
109
|
id: e,
|
|
119
|
-
prefix: `${
|
|
120
|
-
}),
|
|
110
|
+
prefix: `${$}-`
|
|
111
|
+
}), U = `${s} error, ${o}`, C = N(null), a = N(null), h = {
|
|
121
112
|
xs: {
|
|
122
113
|
label: "-25px",
|
|
123
114
|
helperText: "30px"
|
|
@@ -143,20 +134,20 @@ const X = "av-text-input", G = "av-text-input-wrapper", U = "av-text-input-helpe
|
|
|
143
134
|
inputClassName: d,
|
|
144
135
|
error: r,
|
|
145
136
|
raw: n,
|
|
146
|
-
focusMode:
|
|
137
|
+
focusMode: m,
|
|
147
138
|
disabled: T,
|
|
148
|
-
noBorder:
|
|
149
|
-
mode:
|
|
139
|
+
noBorder: I,
|
|
140
|
+
mode: b,
|
|
150
141
|
size: i,
|
|
151
142
|
rightElementClassName: f
|
|
152
143
|
});
|
|
153
144
|
return O(() => {
|
|
154
|
-
u && u.width &&
|
|
145
|
+
u && u.width && _(u.width + 18 + 10);
|
|
155
146
|
}, [
|
|
156
147
|
u
|
|
157
148
|
]), O(() => {
|
|
158
|
-
const { label:
|
|
159
|
-
|
|
149
|
+
const { label: X, helperText: j } = h[i];
|
|
150
|
+
C?.current?.style.setProperty("--av-text-input-label", X), a?.current?.style.setProperty("--av-text-input-helper-text", j);
|
|
160
151
|
}, [
|
|
161
152
|
i
|
|
162
153
|
]), /* @__PURE__ */ F("div", {
|
|
@@ -169,10 +160,10 @@ const X = "av-text-input", G = "av-text-input-wrapper", U = "av-text-input-helpe
|
|
|
169
160
|
children: t
|
|
170
161
|
}),
|
|
171
162
|
/* @__PURE__ */ g("input", {
|
|
172
|
-
ref:
|
|
163
|
+
ref: A,
|
|
173
164
|
id: y,
|
|
174
165
|
name: s,
|
|
175
|
-
type:
|
|
166
|
+
type: R,
|
|
176
167
|
disabled: T,
|
|
177
168
|
placeholder: n ? void 0 : " ",
|
|
178
169
|
className: k.input,
|
|
@@ -187,10 +178,10 @@ const X = "av-text-input", G = "av-text-input-wrapper", U = "av-text-input-helpe
|
|
|
187
178
|
paddingRight: S
|
|
188
179
|
}
|
|
189
180
|
},
|
|
190
|
-
...
|
|
181
|
+
...v
|
|
191
182
|
}),
|
|
192
183
|
!n && !E && /* @__PURE__ */ g("label", {
|
|
193
|
-
ref:
|
|
184
|
+
ref: C,
|
|
194
185
|
"aria-hidden": !0,
|
|
195
186
|
htmlFor: y,
|
|
196
187
|
className: k.visibleLabel,
|
|
@@ -203,29 +194,29 @@ const X = "av-text-input", G = "av-text-input-wrapper", U = "av-text-input-helpe
|
|
|
203
194
|
children: o
|
|
204
195
|
}),
|
|
205
196
|
x && /* @__PURE__ */ g("div", {
|
|
206
|
-
ref:
|
|
197
|
+
ref: L,
|
|
207
198
|
className: k.rightElement,
|
|
208
199
|
children: x
|
|
209
200
|
}),
|
|
210
201
|
r && o && /* @__PURE__ */ g(H, {
|
|
211
202
|
politeness: "polite",
|
|
212
203
|
clearAnnouncementDelay: 500,
|
|
213
|
-
children:
|
|
204
|
+
children: U
|
|
214
205
|
})
|
|
215
206
|
]
|
|
216
207
|
});
|
|
217
208
|
});
|
|
218
|
-
|
|
219
|
-
const te = 500, re = 5e3, se = 2e4, ae = /* @__PURE__ */
|
|
220
|
-
const [E,
|
|
209
|
+
D.displayName = "TextInput";
|
|
210
|
+
const te = 500, re = 5e3, se = 2e4, ae = /* @__PURE__ */ P.forwardRef(({ name: e, disabled: s, label: t, labelHidden: r, onMaskChange: n, onChange: p, onBlur: d, onFocus: b, onTextInputMaskBlur: m, rightElement: T, ...I }, c) => {
|
|
211
|
+
const [E, R] = w(!0), [o, x] = w({
|
|
221
212
|
message: null,
|
|
222
213
|
politeness: null
|
|
223
|
-
}), f =
|
|
214
|
+
}), f = N(!0), i = N(null), v = N(null), A = z([
|
|
224
215
|
c,
|
|
225
|
-
|
|
226
|
-
]),
|
|
216
|
+
v
|
|
217
|
+
]), L = E ? "Show" : "Hide", u = () => {
|
|
227
218
|
i.current && clearTimeout(i.current), f.current || (i.current = setTimeout(() => {
|
|
228
|
-
f.current = !0,
|
|
219
|
+
f.current = !0, R(!0), x({
|
|
229
220
|
announcementTimeout: re,
|
|
230
221
|
politeness: "polite",
|
|
231
222
|
message: `${t} hiding characters`
|
|
@@ -234,43 +225,43 @@ const te = 500, re = 5e3, se = 2e4, ae = /* @__PURE__ */ M.forwardRef(({ name: e
|
|
|
234
225
|
}, S = (a) => {
|
|
235
226
|
a.preventDefault();
|
|
236
227
|
const h = !f.current;
|
|
237
|
-
f.current = h, u(),
|
|
228
|
+
f.current = h, u(), R(h), x({
|
|
238
229
|
announcementTimeout: te,
|
|
239
230
|
politeness: "assertive",
|
|
240
231
|
message: h ? "Characters hidden" : "Characters showing"
|
|
241
232
|
}), n && n(h);
|
|
242
|
-
},
|
|
233
|
+
}, _ = (a) => {
|
|
243
234
|
const { relatedTarget: h } = a;
|
|
244
|
-
|
|
235
|
+
v.current?.parentElement?.contains(h) || m && m();
|
|
245
236
|
}, y = (a) => {
|
|
246
|
-
u(), d && d(a),
|
|
247
|
-
},
|
|
248
|
-
u(),
|
|
249
|
-
},
|
|
237
|
+
u(), d && d(a), _(a);
|
|
238
|
+
}, U = (a) => {
|
|
239
|
+
u(), b && b(a);
|
|
240
|
+
}, C = (a) => {
|
|
250
241
|
u(), p && p(a);
|
|
251
242
|
};
|
|
252
|
-
return
|
|
243
|
+
return G(() => () => {
|
|
253
244
|
i.current && clearTimeout(i.current);
|
|
254
|
-
}, []), /* @__PURE__ */ F(
|
|
245
|
+
}, []), /* @__PURE__ */ F(q, {
|
|
255
246
|
children: [
|
|
256
|
-
/* @__PURE__ */ g(
|
|
257
|
-
ref:
|
|
247
|
+
/* @__PURE__ */ g(D, {
|
|
248
|
+
ref: A,
|
|
258
249
|
name: e,
|
|
259
250
|
label: t,
|
|
260
251
|
labelHidden: r,
|
|
261
252
|
type: E ? "password" : "text",
|
|
262
253
|
disabled: s,
|
|
263
254
|
onBlur: y,
|
|
264
|
-
onFocus:
|
|
265
|
-
onChange:
|
|
266
|
-
rightElement: /* @__PURE__ */
|
|
255
|
+
onFocus: U,
|
|
256
|
+
onChange: C,
|
|
257
|
+
rightElement: /* @__PURE__ */ P.cloneElement(T, {
|
|
267
258
|
ref: c,
|
|
268
|
-
label:
|
|
259
|
+
label: L,
|
|
269
260
|
onClick: S,
|
|
270
|
-
onBlur:
|
|
261
|
+
onBlur: _,
|
|
271
262
|
disabled: s
|
|
272
263
|
}),
|
|
273
|
-
...
|
|
264
|
+
...I
|
|
274
265
|
}),
|
|
275
266
|
/* @__PURE__ */ g(H, {
|
|
276
267
|
role: "status",
|
|
@@ -283,6 +274,6 @@ const te = 500, re = 5e3, se = 2e4, ae = /* @__PURE__ */ M.forwardRef(({ name: e
|
|
|
283
274
|
});
|
|
284
275
|
ae.displayName = "TextInputMask";
|
|
285
276
|
export {
|
|
286
|
-
|
|
277
|
+
D as TextInput,
|
|
287
278
|
ae as TextInputMask
|
|
288
279
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { find as Aa, parse as Ft, parse$1 as Ht, normalize as Pt, html as Ta, svg as Ba, visitParents as Na, SKIP as Da } from "./useMarkdown.
|
|
2
|
-
import { toText as Ca } from "./index.
|
|
1
|
+
import { find as Aa, parse as Ft, parse$1 as Ht, normalize as Pt, html as Ta, svg as Ba, visitParents as Na, SKIP as Da } from "./useMarkdown.DjEZz9lH.js";
|
|
2
|
+
import { toText as Ca } from "./index.D2nN0rC6.js";
|
|
3
3
|
const Gt = /[#.]/g;
|
|
4
4
|
function qa(r, e) {
|
|
5
5
|
const t = r || "", a = {};
|