@versini/sassysaint 8.101.0 → 8.101.2

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 (35) hide show
  1. package/dist/chunks/AboutChangelog.BQFulMZF.js +33 -0
  2. package/dist/chunks/AboutEntry.BzMV697D.js +85 -0
  3. package/dist/chunks/{App.FDXS1dWr.js → App.4mnNHSFM.js} +3869 -3352
  4. package/dist/chunks/{Chart.D8hc7jQz.js → Chart.C8ffOgMR.js} +3 -2
  5. package/dist/chunks/{ChatBubbleAssistant.DgzNZWXj.js → ChatBubbleAssistant.DDXVnlp2.js} +12 -11
  6. package/dist/chunks/{ChatBubbleUser.CgAXoPL3.js → ChatBubbleUser.BElP1c3A.js} +6 -6
  7. package/dist/chunks/{ChatHistoryTable.DleRijpp.js → ChatHistoryTable.BMHD5YOq.js} +14 -13
  8. package/dist/chunks/{HistoryEntry.QXTx_1NF.js → HistoryEntry.DBE0Nfnr.js} +66 -63
  9. package/dist/chunks/LoginEntry.f8inuN8f.js +118 -0
  10. package/dist/chunks/LogoEntry.CAqrKoB5.js +1714 -0
  11. package/dist/chunks/{MemoriesEntry.CY-llB2n.js → MemoriesEntry.rKhs34L0.js} +13 -12
  12. package/dist/chunks/{ProfileEntry.D1t4NNjj.js → ProfileEntry.CmeNfgc9.js} +34 -32
  13. package/dist/chunks/{SettingsEntry.DPFXL5XW.js → SettingsEntry._yVtIzee.js} +45 -43
  14. package/dist/chunks/{Table.Ut5gRB0r.js → Table.BuvtTLwg.js} +4 -4
  15. package/dist/chunks/{UsageEntry.CJN9T5eq.js → UsageEntry.juxTe3FI.js} +35 -33
  16. package/dist/chunks/index.BAdB50GZ.js +103 -0
  17. package/dist/chunks/index.C5nLuEwV.js +99 -0
  18. package/dist/chunks/{index.CC5igXkB.js → index.CN_ODDdH.js} +1 -1
  19. package/dist/chunks/{index.Bm6nq0Gp.js → index.ClPJ3mDK.js} +2 -2
  20. package/dist/chunks/{index.BsZ9ZCrk.js → index.CnfrIQjs.js} +1 -1
  21. package/dist/chunks/index.DZhdlR8W.js +5549 -0
  22. package/dist/chunks/{index.gjQkJBf-.js → index.Dqllb59Q.js} +1 -1
  23. package/dist/chunks/{index.C7XLM9KR.js → index.M2YXECa8.js} +4 -4
  24. package/dist/chunks/index.WWSVXIYV.js +305 -0
  25. package/dist/chunks/index.cfJfy7Fb.js +292 -0
  26. package/dist/chunks/{index.CEY_eB-I.js → index.tjiRewKU.js} +3 -3
  27. package/dist/chunks/{useMarkdown.BopS_qSS.js → useMarkdown.DzlB8BkB.js} +19 -18
  28. package/dist/components/SassySaint/SassySaint.js +1 -1
  29. package/dist/index.js +4 -4
  30. package/dist/style.css +1 -1
  31. package/package.json +3 -3
  32. package/dist/chunks/AboutChangelog.CVySsRJL.js +0 -34
  33. package/dist/chunks/AboutEntry.C1p3cZGX.js +0 -83
  34. package/dist/chunks/index.DNyB0dBi.js +0 -266
  35. package/dist/chunks/index.Dvzk0ceM.js +0 -8173
@@ -1,266 +0,0 @@
1
- import { jsxs as oe, jsx as h } from "react/jsx-runtime";
2
- import { useMergeRefs as ce, useResizeObserver as W, useUniqueId as ne, useUncontrolled as le, LiveRegion as ie } from "./index.Dvzk0ceM.js";
3
- import ue, { useRef as k, useState as I, useLayoutEffect as R } from "react";
4
- import o from "clsx";
5
- /*!
6
- @versini/ui-textarea v5.1.7
7
- © 2025 gizmette.com
8
- */
9
- try {
10
- window.__VERSINI_UI_TEXTAREA__ || (window.__VERSINI_UI_TEXTAREA__ = {
11
- version: "5.1.7",
12
- buildTime: "12/15/2025 06:40 PM EST",
13
- homepage: "https://www.npmjs.com/package/@versini/ui-textarea",
14
- license: "MIT"
15
- });
16
- } catch {
17
- }
18
- const B = "av-text-area", de = "av-text-area-wrapper", H = "av-text-area-helper-text", fe = "av-text-area__control--right", pe = "av-text-area__control--left", xe = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", ye = ({ mode: e }) => o({
19
- "bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
20
- "bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
21
- "bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
22
- "bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
23
- }), he = ({ focusMode: e }) => o("focus:outline focus:outline-2 focus:outline-offset-2", {
24
- "focus:outline-focus-dark": e === "dark",
25
- "focus:outline-focus-light": e === "light",
26
- "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
27
- "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
28
- }), ge = ({ noBorder: e, error: a }) => o("border-2", {
29
- "border-border-dark": !e && !a,
30
- "focus:border-border-dark": !e && a,
31
- "border-border-error-dark": !e && a,
32
- "border-transparent": e
33
- }), Ae = ({ disabled: e, raw: a, error: t, mode: s, leftElement: r, rightElement: c }) => {
34
- if (a)
35
- return "";
36
- if (e)
37
- return o("transform translate-y-0 scale-100 absolute px-2 cursor-not-allowed opacity-50 font-medium", {
38
- "translate-x-[10px]": c === !0 && !r || !c && !r
39
- });
40
- if (!t)
41
- return o("absolute px-2 cursor-text font-medium transform translate-y-0 scale-100", {
42
- "translate-x-[10px]": c === !0 && !r || !c && !r,
43
- "text-copy-medium": s === "dark",
44
- "text-copy-dark": s === "light",
45
- "text-copy-dark dark:text-copy-medium": s === "system",
46
- "text-copy-medium dark:text-copy-dark": s === "alt-system"
47
- });
48
- if (t)
49
- return o("absolute px-2 cursor-text font-medium transform translate-y-0 scale-100", {
50
- "translate-x-[10px]": c === !0 && !r || !c && !r,
51
- "text-copy-medium": s === "dark",
52
- "text-copy-error-dark": s === "light",
53
- "text-copy-error-dark dark:text-copy-error-light": s === "system",
54
- "text-copy-medium dark:text-copy-error-dark": s === "alt-system"
55
- });
56
- }, Te = ({ error: e, raw: a, mode: t, disabled: s }) => {
57
- if (a)
58
- return "";
59
- if (s)
60
- return o(H, "absolute px-2 cursor-not-allowed opacity-50 font-medium");
61
- if (!e)
62
- return o(H, "absolute px-2 font-medium", {
63
- "text-copy-medium": t === "dark",
64
- "text-copy-dark": t === "light",
65
- "text-copy-dark dark:text-copy-medium": t === "system",
66
- "text-copy-medium dark:text-copy-dark": t === "alt-system"
67
- });
68
- if (e)
69
- return o(H, "absolute px-2 font-medium", {
70
- "text-copy-error-light": t === "dark",
71
- "text-copy-error-dark": t === "light",
72
- "text-copy-error-dark dark:text-copy-error-light": t === "system",
73
- "dark:text-copy-error-dark text-copy-error-light": t === "alt-system"
74
- });
75
- }, ke = ({ className: e, textAreaClassName: a, raw: t, focusMode: s, disabled: r, noBorder: c, error: u, mode: d, leftElement: x, rightElement: g }) => {
76
- const N = t ? e : o("relative flex w-full flex-col justify-center", de, e), m = t ? o(a) : o(B, a, xe(), ye({
77
- mode: d
78
- }), he({
79
- focusMode: s
80
- }), ge({
81
- noBorder: c,
82
- error: u
83
- }), {
84
- "disabled:cursor-not-allowed disabled:opacity-50": r
85
- }), S = t ? void 0 : "sr-only", C = Ae({
86
- disabled: r,
87
- raw: t,
88
- error: u,
89
- mode: d,
90
- rightElement: g,
91
- leftElement: x
92
- }), l = Te({
93
- error: u,
94
- raw: t,
95
- mode: d,
96
- disabled: r
97
- }), b = t ? void 0 : o(fe, "absolute"), f = t ? void 0 : o(pe, "absolute");
98
- return {
99
- wrapper: N,
100
- textArea: m,
101
- accessibleLabel: S,
102
- visibleLabel: C,
103
- helperText: l,
104
- rightElement: b,
105
- leftElement: f
106
- };
107
- }, be = ({ scrollHeight: e, currentHeight: a, currentLabelOffset: t = 0, currentHelperTextOffset: s = 0 }) => {
108
- let u, d;
109
- if (e > 0 && e !== a) {
110
- const x = e - a, g = Math.abs(x / 24);
111
- u = t + -1 * Math.sign(x) * (12 * g), d = s + Math.sign(x) * (12 * g);
112
- }
113
- return {
114
- labelOffset: u,
115
- helperTextOffset: d,
116
- scrollHeight: e
117
- };
118
- }, _e = /* @__PURE__ */ ue.forwardRef(({ id: e, name: a, label: t, error: s = !1, raw: r = !1, className: c, textAreaClassName: u, mode: d = "system", focusMode: x = "system", value: g, defaultValue: N, disabled: m = !1, noBorder: S = !1, labelId: C, helperText: l = "", helperTextOnFocus: b = !1, rightElement: f, leftElement: A, onChange: P, onFocus: w, onBlur: F, ...Y }, z) => {
119
- const i = k(null), D = ce([
120
- z,
121
- i
122
- ]), [V, L] = W(), [q, T] = W(), O = k(80), M = k(-25), v = k(null), $ = k(30), X = k(null), _ = ne({
123
- id: e,
124
- prefix: `${B}-`
125
- }), [j, J] = I(0), [U, K] = I(0), [Q, G] = I(!!(!b && l)), Z = `${a} error, ${l}`, y = ke({
126
- className: c,
127
- textAreaClassName: u,
128
- error: s,
129
- raw: r,
130
- focusMode: x,
131
- disabled: m,
132
- noBorder: S,
133
- mode: d,
134
- rightElement: !!f,
135
- leftElement: !!A
136
- }), [p, ee] = le({
137
- value: g,
138
- initialControlledDelay: 20,
139
- defaultValue: N,
140
- onChange: (n) => {
141
- P && P({
142
- target: {
143
- value: n
144
- }
145
- });
146
- }
147
- }), te = (n) => {
148
- ee(n.target.value);
149
- }, re = (n) => {
150
- b && l && G(!0), w && w(n);
151
- }, se = (n) => {
152
- b && l && !p && G(!1), F && F(n);
153
- };
154
- return R(() => {
155
- L && L.width && J(L.width + 18 + 10);
156
- }, [
157
- L
158
- ]), R(() => {
159
- T && T.width && K(T.width + 18 + 10);
160
- }, [
161
- T
162
- ]), R(() => {
163
- r || i && i.current && p !== void 0 && (i.current.style.height = "inherit", i.current.style.height = i.current.scrollHeight + "px");
164
- }, [
165
- p,
166
- r
167
- ]), R(() => {
168
- r || setTimeout(() => {
169
- v?.current?.style.setProperty("--av-text-area-wrapper-transition", p ? "none" : "all 0.2s ease-out");
170
- }, 0);
171
- }, [
172
- p,
173
- r
174
- ]), R(() => {
175
- if (!r && i && i.current && p !== void 0) {
176
- const { labelOffset: n, helperTextOffset: E, scrollHeight: ae } = be({
177
- scrollHeight: i.current.scrollHeight,
178
- currentHeight: O.current,
179
- currentLabelOffset: M.current,
180
- currentHelperTextOffset: $.current
181
- });
182
- n && (M.current = n, v?.current?.style.setProperty("--av-text-area-label", `${n}px`)), E && ($.current = E, X?.current?.style.setProperty("--av-text-area-helper-text", `${E}px`)), O.current = ae || O.current;
183
- }
184
- }, [
185
- p,
186
- r
187
- ]), T.width > 0 && v?.current?.style.setProperty("--tw-translate-x", `${12 + T.width + 5}px`), /* @__PURE__ */ oe("div", {
188
- className: y.wrapper,
189
- children: [
190
- /* @__PURE__ */ h("label", {
191
- htmlFor: _,
192
- id: C,
193
- className: y.accessibleLabel,
194
- children: t
195
- }),
196
- A && /* @__PURE__ */ h("div", {
197
- ref: q,
198
- className: y.leftElement,
199
- children: A
200
- }),
201
- /* @__PURE__ */ h("textarea", {
202
- ref: D,
203
- id: _,
204
- name: a,
205
- disabled: m,
206
- placeholder: r ? void 0 : " ",
207
- className: y.textArea,
208
- rows: 1,
209
- ...l && {
210
- "aria-describedby": `${_}-helper`
211
- },
212
- ...s && {
213
- "aria-invalid": "true"
214
- },
215
- ...f && !A && !r && {
216
- style: {
217
- paddingRight: j
218
- }
219
- },
220
- ...A && !f && !r && {
221
- style: {
222
- paddingLeft: U
223
- }
224
- },
225
- ...f && A && !r && {
226
- style: {
227
- paddingRight: j,
228
- paddingLeft: U
229
- }
230
- },
231
- value: p,
232
- onChange: te,
233
- onFocus: re,
234
- onBlur: se,
235
- ...Y
236
- }),
237
- !r && /* @__PURE__ */ h("label", {
238
- ref: v,
239
- "aria-hidden": !0,
240
- htmlFor: _,
241
- className: `${y.visibleLabel}`,
242
- children: t
243
- }),
244
- Q && /* @__PURE__ */ h("div", {
245
- ref: X,
246
- id: `${_}-helper`,
247
- className: y.helperText,
248
- children: l
249
- }),
250
- f && /* @__PURE__ */ h("div", {
251
- ref: V,
252
- className: y.rightElement,
253
- children: f
254
- }),
255
- s && l && /* @__PURE__ */ h(ie, {
256
- politeness: "polite",
257
- clearAnnouncementDelay: 500,
258
- children: Z
259
- })
260
- ]
261
- });
262
- });
263
- _e.displayName = "TextArea";
264
- export {
265
- _e as TextArea
266
- };