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