@versini/sassysaint 8.107.2 → 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.
Files changed (33) hide show
  1. package/dist/chunks/{AboutChangelog.-F_kMw74.js → AboutChangelog.DeRcKN5H.js} +2 -2
  2. package/dist/chunks/{AboutEntry.DR75PxCw.js → AboutEntry.6mTHwkfb.js} +7 -7
  3. package/dist/chunks/{App.3M79T1qj.js → App.DTjbiLAP.js} +1753 -2012
  4. package/dist/chunks/{Bubble.CA6Nm1l0.js → Bubble.ltolxxta.js} +47 -86
  5. package/dist/chunks/{Chart.DwZeH0GA.js → Chart.BzOmOhOW.js} +2 -2
  6. package/dist/chunks/{ChatBubbleAssistant.Bm-gE-ev.js → ChatBubbleAssistant.lGE_8ao1.js} +200 -213
  7. package/dist/chunks/{ChatBubbleUser.lLvteBf3.js → ChatBubbleUser.DC661ePq.js} +28 -41
  8. package/dist/chunks/{ChatHistoryTable.yS0g-92Q.js → ChatHistoryTable.BkRFWpsA.js} +108 -125
  9. package/dist/chunks/{Table.AnN2X7VF.js → DeleteButtonIcon.P0LgJDjE.js} +125 -116
  10. package/dist/chunks/{HistoryEntry.DfNmYlfN.js → HistoryEntry.uUjsDuT0.js} +6 -6
  11. package/dist/chunks/{LoginEntry.BccxHPtX.js → LoginEntry.BGZdTDwf.js} +4 -4
  12. package/dist/chunks/{LogoEntry.CFw0uv25.js → LogoEntry.Bpddd0yA.js} +301 -430
  13. package/dist/chunks/{MemoriesEntry.Cdao1cmo.js → MemoriesEntry.BYQm9cuU.js} +164 -169
  14. package/dist/chunks/{ProfileEntry.b8NaUHNW.js → ProfileEntry.BqcZXSeT.js} +4 -4
  15. package/dist/chunks/{SettingsEntry.CjuYtYSp.js → SettingsEntry.BdC5Vyof.js} +5 -5
  16. package/dist/chunks/{UsageEntry.cp-aSBF9.js → UsageEntry._O8Q6TwS.js} +5 -5
  17. package/dist/chunks/index.Bi0z4EE1.js +90 -0
  18. package/dist/chunks/{index.CgpXJ39e.js → index.BlviGqw0.js} +4 -4
  19. package/dist/chunks/{index.BSdZTOf6.js → index.BxbWxVtd.js} +1 -1
  20. package/dist/chunks/index.C70LcKzU.js +279 -0
  21. package/dist/chunks/{index.CLVeqfU3.js → index.CYcieK1H.js} +34 -47
  22. package/dist/chunks/{index.Dbw9MfpE.js → index.CaofbEIP.js} +3 -19
  23. package/dist/chunks/{index.B6FhZIr6.js → index.D2nN0rC6.js} +1 -1
  24. package/dist/chunks/{index.DhQEm5fx.js → index.DG-VhqKw.js} +1 -1
  25. package/dist/chunks/{index.DYkMD3_1.js → index.DuxTgnco.js} +56 -69
  26. package/dist/chunks/{index.DHLA2Fes.js → index.s8Izh8-Q.js} +2 -2
  27. package/dist/chunks/{useMarkdown.CoVPoXwW.js → useMarkdown.DjEZz9lH.js} +316 -329
  28. package/dist/components/SassySaint/SassySaint.js +1 -1
  29. package/dist/index.js +3 -7
  30. package/dist/style.css +1 -14
  31. package/package.json +5 -5
  32. package/dist/chunks/index.BAdB50GZ.js +0 -103
  33. package/dist/chunks/index.CyKPGk1D.js +0 -305
@@ -1,305 +0,0 @@
1
- import { jsxs as oe, jsx as T } from "react/jsx-runtime";
2
- import { useMergeRefs as ne, useResizeObserver as G, useUniqueId as ce } from "./LogoEntry.CFw0uv25.js";
3
- import ie, { useState as E, useEffect as le, useRef as A, useLayoutEffect as R } from "react";
4
- import { LiveRegion as ue } from "./index.BAdB50GZ.js";
5
- import n from "clsx";
6
- /*!
7
- @versini/ui-hooks v6.0.0
8
- © 2025 gizmette.com
9
- */
10
- try {
11
- window.__VERSINI_UI_HOOKS__ || (window.__VERSINI_UI_HOOKS__ = {
12
- version: "6.0.0",
13
- buildTime: "12/16/2025 06:21 PM EST",
14
- homepage: "https://www.npmjs.com/package/@versini/ui-hooks",
15
- license: "MIT"
16
- });
17
- } catch {
18
- }
19
- function de({ value: e, defaultValue: a, finalValue: r, onChange: s = () => {
20
- }, initialControlledDelay: t = 0 }) {
21
- const [o, i] = E(!1), [l, u] = E(a !== void 0 ? a : r), p = (x) => {
22
- u(x), s?.(x);
23
- };
24
- return le(() => {
25
- (async () => e !== void 0 && !o && t > 0 && (await new Promise((x) => setTimeout(x, t)), i(!0)))();
26
- }, [
27
- e,
28
- t,
29
- o
30
- ]), e !== void 0 ? !o && t > 0 ? [
31
- "",
32
- s,
33
- !0
34
- ] : [
35
- e,
36
- s,
37
- !0
38
- ] : [
39
- l,
40
- p,
41
- !1
42
- ];
43
- }
44
- /*!
45
- @versini/ui-textarea v6.0.0
46
- © 2025 gizmette.com
47
- */
48
- try {
49
- window.__VERSINI_UI_TEXTAREA__ || (window.__VERSINI_UI_TEXTAREA__ = {
50
- version: "6.0.0",
51
- buildTime: "12/16/2025 06:23 PM EST",
52
- homepage: "https://www.npmjs.com/package/@versini/ui-textarea",
53
- license: "MIT"
54
- });
55
- } catch {
56
- }
57
- const W = "av-text-area", fe = "av-text-area-wrapper", H = "av-text-area-helper-text", pe = "av-text-area__control--right", xe = "av-text-area__control--left", ye = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", he = ({ mode: e }) => n({
58
- "bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
59
- "bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
60
- "bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
61
- "bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
62
- }), ge = ({ focusMode: e }) => n("focus:outline focus:outline-2 focus:outline-offset-2", {
63
- "focus:outline-focus-dark": e === "dark",
64
- "focus:outline-focus-light": e === "light",
65
- "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
66
- "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
67
- }), Te = ({ noBorder: e, error: a }) => n("border-2", {
68
- "border-border-dark": !e && !a,
69
- "focus:border-border-dark": !e && a,
70
- "border-border-error-dark": !e && a,
71
- "border-transparent": e
72
- }), _e = ({ disabled: e, raw: a, error: r, mode: s, leftElement: t, rightElement: o }) => {
73
- if (a)
74
- return "";
75
- if (e)
76
- return n("transform translate-y-0 scale-100 absolute px-2 cursor-not-allowed opacity-50 font-medium", {
77
- "translate-x-[10px]": o === !0 && !t || !o && !t
78
- });
79
- if (!r)
80
- return n("absolute px-2 cursor-text font-medium transform translate-y-0 scale-100", {
81
- "translate-x-[10px]": o === !0 && !t || !o && !t,
82
- "text-copy-medium": s === "dark",
83
- "text-copy-dark": s === "light",
84
- "text-copy-dark dark:text-copy-medium": s === "system",
85
- "text-copy-medium dark:text-copy-dark": s === "alt-system"
86
- });
87
- if (r)
88
- return n("absolute px-2 cursor-text font-medium transform translate-y-0 scale-100", {
89
- "translate-x-[10px]": o === !0 && !t || !o && !t,
90
- "text-copy-medium": s === "dark",
91
- "text-copy-error-dark": s === "light",
92
- "text-copy-error-dark dark:text-copy-error-light": s === "system",
93
- "text-copy-medium dark:text-copy-error-dark": s === "alt-system"
94
- });
95
- }, ke = ({ error: e, raw: a, mode: r, disabled: s }) => {
96
- if (a)
97
- return "";
98
- if (s)
99
- return n(H, "absolute px-2 cursor-not-allowed opacity-50 font-medium");
100
- if (!e)
101
- return n(H, "absolute px-2 font-medium", {
102
- "text-copy-medium": r === "dark",
103
- "text-copy-dark": r === "light",
104
- "text-copy-dark dark:text-copy-medium": r === "system",
105
- "text-copy-medium dark:text-copy-dark": r === "alt-system"
106
- });
107
- if (e)
108
- return n(H, "absolute px-2 font-medium", {
109
- "text-copy-error-light": r === "dark",
110
- "text-copy-error-dark": r === "light",
111
- "text-copy-error-dark dark:text-copy-error-light": r === "system",
112
- "dark:text-copy-error-dark text-copy-error-light": r === "alt-system"
113
- });
114
- }, Ae = ({ className: e, textAreaClassName: a, raw: r, focusMode: s, disabled: t, noBorder: o, error: i, mode: l, leftElement: u, rightElement: p }) => {
115
- const x = r ? e : n("relative flex w-full flex-col justify-center", fe, e), I = r ? n(a) : n(W, a, ye(), he({
116
- mode: l
117
- }), ge({
118
- focusMode: s
119
- }), Te({
120
- noBorder: o,
121
- error: i
122
- }), {
123
- "disabled:cursor-not-allowed disabled:opacity-50": t
124
- }), O = r ? void 0 : "sr-only", v = _e({
125
- disabled: t,
126
- raw: r,
127
- error: i,
128
- mode: l,
129
- rightElement: p,
130
- leftElement: u
131
- }), d = ke({
132
- error: i,
133
- raw: r,
134
- mode: l,
135
- disabled: t
136
- }), m = r ? void 0 : n(pe, "absolute"), y = r ? void 0 : n(xe, "absolute");
137
- return {
138
- wrapper: x,
139
- textArea: I,
140
- accessibleLabel: O,
141
- visibleLabel: v,
142
- helperText: d,
143
- rightElement: m,
144
- leftElement: y
145
- };
146
- }, me = ({ scrollHeight: e, currentHeight: a, currentLabelOffset: r = 0, currentHelperTextOffset: s = 0 }) => {
147
- let i, l;
148
- if (e > 0 && e !== a) {
149
- const u = e - a, p = Math.abs(u / 24);
150
- i = r + -1 * Math.sign(u) * (12 * p), l = s + Math.sign(u) * (12 * p);
151
- }
152
- return {
153
- labelOffset: i,
154
- helperTextOffset: l,
155
- scrollHeight: e
156
- };
157
- }, be = /* @__PURE__ */ ie.forwardRef(({ id: e, name: a, label: r, error: s = !1, raw: t = !1, className: o, textAreaClassName: i, mode: l = "system", focusMode: u = "system", value: p, defaultValue: x, disabled: I = !1, noBorder: O = !1, labelId: v, helperText: d = "", helperTextOnFocus: m = !1, rightElement: y, leftElement: _, onChange: C, onFocus: P, onBlur: M, ...B }, D) => {
158
- const f = A(null), Y = ne([
159
- D,
160
- f
161
- ]), [z, S] = G(), [K, k] = G(), w = A(80), F = A(-25), L = A(null), U = A(30), $ = A(null), b = ce({
162
- id: e,
163
- prefix: `${W}-`
164
- }), [X, q] = E(0), [j, J] = E(0), [Q, V] = E(!!(!m && d)), Z = `${a} error, ${d}`, g = Ae({
165
- className: o,
166
- textAreaClassName: i,
167
- error: s,
168
- raw: t,
169
- focusMode: u,
170
- disabled: I,
171
- noBorder: O,
172
- mode: l,
173
- rightElement: !!y,
174
- leftElement: !!_
175
- }), [h, ee] = de({
176
- value: p,
177
- initialControlledDelay: 20,
178
- defaultValue: x,
179
- onChange: (c) => {
180
- C && C({
181
- target: {
182
- value: c
183
- }
184
- });
185
- }
186
- }), te = (c) => {
187
- ee(c.target.value);
188
- }, re = (c) => {
189
- m && d && V(!0), P && P(c);
190
- }, se = (c) => {
191
- m && d && !h && V(!1), M && M(c);
192
- };
193
- return R(() => {
194
- S && S.width && q(S.width + 18 + 10);
195
- }, [
196
- S
197
- ]), R(() => {
198
- k && k.width && J(k.width + 18 + 10);
199
- }, [
200
- k
201
- ]), R(() => {
202
- t || f && f.current && h !== void 0 && (f.current.style.height = "inherit", f.current.style.height = f.current.scrollHeight + "px");
203
- }, [
204
- h,
205
- t
206
- ]), R(() => {
207
- t || setTimeout(() => {
208
- L?.current?.style.setProperty("--av-text-area-wrapper-transition", h ? "none" : "all 0.2s ease-out");
209
- }, 0);
210
- }, [
211
- h,
212
- t
213
- ]), R(() => {
214
- if (!t && f && f.current && h !== void 0) {
215
- const { labelOffset: c, helperTextOffset: N, scrollHeight: ae } = me({
216
- scrollHeight: f.current.scrollHeight,
217
- currentHeight: w.current,
218
- currentLabelOffset: F.current,
219
- currentHelperTextOffset: U.current
220
- });
221
- c && (F.current = c, L?.current?.style.setProperty("--av-text-area-label", `${c}px`)), N && (U.current = N, $?.current?.style.setProperty("--av-text-area-helper-text", `${N}px`)), w.current = ae || w.current;
222
- }
223
- }, [
224
- h,
225
- t
226
- ]), k.width > 0 && L?.current?.style.setProperty("--tw-translate-x", `${12 + k.width + 5}px`), /* @__PURE__ */ oe("div", {
227
- className: g.wrapper,
228
- children: [
229
- /* @__PURE__ */ T("label", {
230
- htmlFor: b,
231
- id: v,
232
- className: g.accessibleLabel,
233
- children: r
234
- }),
235
- _ && /* @__PURE__ */ T("div", {
236
- ref: K,
237
- className: g.leftElement,
238
- children: _
239
- }),
240
- /* @__PURE__ */ T("textarea", {
241
- ref: Y,
242
- id: b,
243
- name: a,
244
- disabled: I,
245
- placeholder: t ? void 0 : " ",
246
- className: g.textArea,
247
- rows: 1,
248
- ...d && {
249
- "aria-describedby": `${b}-helper`
250
- },
251
- ...s && {
252
- "aria-invalid": "true"
253
- },
254
- ...y && !_ && !t && {
255
- style: {
256
- paddingRight: X
257
- }
258
- },
259
- ..._ && !y && !t && {
260
- style: {
261
- paddingLeft: j
262
- }
263
- },
264
- ...y && _ && !t && {
265
- style: {
266
- paddingRight: X,
267
- paddingLeft: j
268
- }
269
- },
270
- value: h,
271
- onChange: te,
272
- onFocus: re,
273
- onBlur: se,
274
- ...B
275
- }),
276
- !t && /* @__PURE__ */ T("label", {
277
- ref: L,
278
- "aria-hidden": !0,
279
- htmlFor: b,
280
- className: `${g.visibleLabel}`,
281
- children: r
282
- }),
283
- Q && /* @__PURE__ */ T("div", {
284
- ref: $,
285
- id: `${b}-helper`,
286
- className: g.helperText,
287
- children: d
288
- }),
289
- y && /* @__PURE__ */ T("div", {
290
- ref: z,
291
- className: g.rightElement,
292
- children: y
293
- }),
294
- s && d && /* @__PURE__ */ T(ue, {
295
- politeness: "polite",
296
- clearAnnouncementDelay: 500,
297
- children: Z
298
- })
299
- ]
300
- });
301
- });
302
- be.displayName = "TextArea";
303
- export {
304
- be as TextArea
305
- };