@versini/sassysaint 8.101.1 → 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.
- package/dist/chunks/AboutChangelog.BQFulMZF.js +33 -0
- package/dist/chunks/AboutEntry.BzMV697D.js +85 -0
- package/dist/chunks/{App.RV-mmua0.js → App.4mnNHSFM.js} +3787 -3393
- package/dist/chunks/{Chart.D_A0uZlT.js → Chart.C8ffOgMR.js} +3 -2
- package/dist/chunks/{ChatBubbleAssistant.DFHmwXZw.js → ChatBubbleAssistant.DDXVnlp2.js} +12 -11
- package/dist/chunks/{ChatBubbleUser.G4d3d6Mb.js → ChatBubbleUser.BElP1c3A.js} +6 -6
- package/dist/chunks/{ChatHistoryTable.DZub8IvT.js → ChatHistoryTable.BMHD5YOq.js} +14 -13
- package/dist/chunks/{HistoryEntry.80oOvElL.js → HistoryEntry.DBE0Nfnr.js} +66 -63
- package/dist/chunks/LoginEntry.f8inuN8f.js +118 -0
- package/dist/chunks/LogoEntry.CAqrKoB5.js +1714 -0
- package/dist/chunks/{MemoriesEntry.BiYxLEvt.js → MemoriesEntry.rKhs34L0.js} +13 -12
- package/dist/chunks/{ProfileEntry.CPW8ArvZ.js → ProfileEntry.CmeNfgc9.js} +34 -32
- package/dist/chunks/{SettingsEntry.Cg8S7183.js → SettingsEntry._yVtIzee.js} +45 -43
- package/dist/chunks/{Table.4xIKM_Pq.js → Table.BuvtTLwg.js} +4 -4
- package/dist/chunks/{UsageEntry.ffEEL78E.js → UsageEntry.juxTe3FI.js} +35 -33
- package/dist/chunks/index.BAdB50GZ.js +103 -0
- package/dist/chunks/index.C5nLuEwV.js +99 -0
- package/dist/chunks/{index.CAjI1A8f.js → index.CN_ODDdH.js} +1 -1
- package/dist/chunks/{index.B_ICfOQl.js → index.ClPJ3mDK.js} +2 -2
- package/dist/chunks/{index.Hrh30p0t.js → index.CnfrIQjs.js} +1 -1
- package/dist/chunks/index.DZhdlR8W.js +5549 -0
- package/dist/chunks/{index.CE9kDkU7.js → index.Dqllb59Q.js} +1 -1
- package/dist/chunks/{index.DACnc3cK.js → index.M2YXECa8.js} +4 -4
- package/dist/chunks/index.WWSVXIYV.js +305 -0
- package/dist/chunks/index.cfJfy7Fb.js +292 -0
- package/dist/chunks/{index.pOiqDmOT.js → index.tjiRewKU.js} +3 -3
- package/dist/chunks/{useMarkdown.Wp7doGVP.js → useMarkdown.DzlB8BkB.js} +19 -18
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/dist/chunks/AboutChangelog.C5rvGqn_.js +0 -34
- package/dist/chunks/AboutEntry.DO5Ui-w0.js +0 -83
- package/dist/chunks/index.CaIG7RGp.js +0 -8092
- package/dist/chunks/index.Cu1_r5cX.js +0 -266
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsxs as h, jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { ButtonIcon as E, IconCopied as C, IconCopy as I } from "./
|
|
2
|
+
import { ButtonIcon as E, IconCopied as C, IconCopy as I } from "./LogoEntry.CAqrKoB5.js";
|
|
3
3
|
import { useState as N, useEffect as $ } from "react";
|
|
4
4
|
import t from "clsx";
|
|
5
5
|
/*!
|
|
6
|
-
@versini/ui-bubble v8.0.
|
|
6
|
+
@versini/ui-bubble v8.0.9
|
|
7
7
|
© 2025 gizmette.com
|
|
8
8
|
*/
|
|
9
9
|
try {
|
|
10
10
|
window.__VERSINI_UI_BUBBLE__ || (window.__VERSINI_UI_BUBBLE__ = {
|
|
11
|
-
version: "8.0.
|
|
12
|
-
buildTime: "12/16/2025
|
|
11
|
+
version: "8.0.9",
|
|
12
|
+
buildTime: "12/16/2025 06:22 PM EST",
|
|
13
13
|
homepage: "https://www.npmjs.com/package/@versini/ui-bubble",
|
|
14
14
|
license: "MIT"
|
|
15
15
|
});
|
|
@@ -0,0 +1,305 @@
|
|
|
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.CAqrKoB5.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
|
+
};
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import { jsxs as F, jsx as g, Fragment as V } from "react/jsx-runtime";
|
|
2
|
+
import { useResizeObserver as q, useUniqueId as B, useMergeRefs as W } from "./LogoEntry.CAqrKoB5.js";
|
|
3
|
+
import { LiveRegion as H } from "./index.BAdB50GZ.js";
|
|
4
|
+
import P, { useState as M, useRef as R, useLayoutEffect as O, useEffect as z } from "react";
|
|
5
|
+
import l from "clsx";
|
|
6
|
+
/*!
|
|
7
|
+
@versini/ui-textinput v6.0.0
|
|
8
|
+
© 2025 gizmette.com
|
|
9
|
+
*/
|
|
10
|
+
try {
|
|
11
|
+
window.__VERSINI_UI_TEXTINPUT__ || (window.__VERSINI_UI_TEXTINPUT__ = {
|
|
12
|
+
version: "6.0.0",
|
|
13
|
+
buildTime: "12/16/2025 06:22 PM EST",
|
|
14
|
+
homepage: "https://www.npmjs.com/package/@versini/ui-textinput",
|
|
15
|
+
license: "MIT"
|
|
16
|
+
});
|
|
17
|
+
} catch {
|
|
18
|
+
}
|
|
19
|
+
const X = "av-text-input", G = "av-text-input-wrapper", U = "av-text-input-helper-text", J = ({ mode: e }) => l({
|
|
20
|
+
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
|
21
|
+
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
|
22
|
+
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
|
23
|
+
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
|
24
|
+
}), K = ({ focusMode: e }) => l("focus:outline focus:outline-2 focus:outline-offset-2", {
|
|
25
|
+
"focus:outline-focus-dark": e === "dark",
|
|
26
|
+
"focus:outline-focus-light": e === "light",
|
|
27
|
+
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
28
|
+
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
29
|
+
}), Q = ({ noBorder: e, error: s }) => l("border-2", {
|
|
30
|
+
"border-border-dark": !e && !s,
|
|
31
|
+
"focus:border-border-dark": !e && s,
|
|
32
|
+
"border-border-error-dark": !e && s,
|
|
33
|
+
"border-transparent": e
|
|
34
|
+
}), Y = ({ disabled: e, raw: s, error: t, mode: r }) => {
|
|
35
|
+
if (s)
|
|
36
|
+
return "";
|
|
37
|
+
if (e)
|
|
38
|
+
return l("absolute px-2 cursor-not-allowed opacity-50 font-medium");
|
|
39
|
+
if (!t)
|
|
40
|
+
return l("absolute px-2 cursor-text font-medium", {
|
|
41
|
+
"text-copy-lighter": r === "dark",
|
|
42
|
+
"text-copy-dark": r === "light",
|
|
43
|
+
"text-copy-dark dark:text-copy-lighter": r === "system",
|
|
44
|
+
"text-copy-lighter dark:text-copy-dark": r === "alt-system"
|
|
45
|
+
});
|
|
46
|
+
if (t)
|
|
47
|
+
return l("absolute px-2 cursor-text font-medium", {
|
|
48
|
+
"text-copy-lighter": r === "dark",
|
|
49
|
+
"text-copy-error-dark": r === "light",
|
|
50
|
+
"text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": r === "system",
|
|
51
|
+
"text-copy-lighter dark:text-copy-error-dark": r === "alt-system"
|
|
52
|
+
});
|
|
53
|
+
}, Z = ({ error: e, raw: s, mode: t, disabled: r }) => {
|
|
54
|
+
if (s)
|
|
55
|
+
return "";
|
|
56
|
+
if (r)
|
|
57
|
+
return l(U, "absolute px-2 cursor-not-allowed opacity-50 font-medium");
|
|
58
|
+
if (!e)
|
|
59
|
+
return l(U, "absolute px-2 font-medium", {
|
|
60
|
+
"text-copy-lighter": t === "dark",
|
|
61
|
+
"text-copy-dark": t === "light",
|
|
62
|
+
"text-copy-dark dark:text-copy-lighter": t === "system",
|
|
63
|
+
"text-copy-lighter dark:text-copy-dark": t === "alt-system"
|
|
64
|
+
});
|
|
65
|
+
if (e)
|
|
66
|
+
return l(U, "absolute px-2 font-medium", {
|
|
67
|
+
"text-copy-error-light bg-surface-darker": t === "dark",
|
|
68
|
+
"text-copy-error-dark": t === "light",
|
|
69
|
+
"text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": t === "system",
|
|
70
|
+
"dark:text-copy-error-dark text-copy-error-light bg-surface-darker": t === "alt-system"
|
|
71
|
+
});
|
|
72
|
+
}, ee = ({ className: e, inputClassName: s, raw: t, disabled: r, noBorder: n, error: p, mode: d, focusMode: m, size: b, rightElementClassName: T }) => {
|
|
73
|
+
const _ = t ? e : l("relative flex w-full flex-col justify-center", G, e);
|
|
74
|
+
let c = "";
|
|
75
|
+
switch (b) {
|
|
76
|
+
case "xs":
|
|
77
|
+
c = "h-8";
|
|
78
|
+
break;
|
|
79
|
+
case "sm":
|
|
80
|
+
c = "h-10";
|
|
81
|
+
break;
|
|
82
|
+
case "lg":
|
|
83
|
+
c = "h-14";
|
|
84
|
+
break;
|
|
85
|
+
case "xl":
|
|
86
|
+
c = "h-16";
|
|
87
|
+
break;
|
|
88
|
+
default:
|
|
89
|
+
c = "h-12";
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
const E = t ? l(s) : l(X, c, "rounded-md text-base px-4", J({
|
|
93
|
+
mode: d
|
|
94
|
+
}), K({
|
|
95
|
+
focusMode: m
|
|
96
|
+
}), Q({
|
|
97
|
+
noBorder: n,
|
|
98
|
+
error: p
|
|
99
|
+
}), {
|
|
100
|
+
"disabled:cursor-not-allowed disabled:opacity-50": r
|
|
101
|
+
}, s), I = t ? void 0 : "sr-only", o = Y({
|
|
102
|
+
disabled: r,
|
|
103
|
+
raw: t,
|
|
104
|
+
error: p,
|
|
105
|
+
mode: d
|
|
106
|
+
}), x = Z({
|
|
107
|
+
error: p,
|
|
108
|
+
raw: t,
|
|
109
|
+
mode: d,
|
|
110
|
+
disabled: r
|
|
111
|
+
}), f = t ? void 0 : l("absolute right-3", T);
|
|
112
|
+
return {
|
|
113
|
+
wrapper: _,
|
|
114
|
+
input: E,
|
|
115
|
+
accessibleLabel: I,
|
|
116
|
+
visibleLabel: o,
|
|
117
|
+
helperText: x,
|
|
118
|
+
rightElement: f
|
|
119
|
+
};
|
|
120
|
+
}, $ = /* @__PURE__ */ P.forwardRef(({ id: e, name: s, label: t, error: r = !1, raw: n = !1, className: p, inputClassName: d, mode: m = "system", focusMode: b = "system", disabled: T = !1, noBorder: _ = !1, labelId: c, labelHidden: E = !1, type: I = "text", helperText: o = "", rightElement: x, rightElementClassName: f, size: i = "md", ...N }, w) => {
|
|
121
|
+
const [A, u] = q(), [S, v] = M(0), y = B({
|
|
122
|
+
id: e,
|
|
123
|
+
prefix: `${X}-`
|
|
124
|
+
}), L = `${s} error, ${o}`, C = R(null), a = R(null), h = {
|
|
125
|
+
xs: {
|
|
126
|
+
label: "-25px",
|
|
127
|
+
helperText: "30px"
|
|
128
|
+
},
|
|
129
|
+
sm: {
|
|
130
|
+
label: "-29px",
|
|
131
|
+
helperText: "34px"
|
|
132
|
+
},
|
|
133
|
+
md: {
|
|
134
|
+
label: "-33px",
|
|
135
|
+
helperText: "38px"
|
|
136
|
+
},
|
|
137
|
+
lg: {
|
|
138
|
+
label: "-15px",
|
|
139
|
+
helperText: "22px"
|
|
140
|
+
},
|
|
141
|
+
xl: {
|
|
142
|
+
label: "-19px",
|
|
143
|
+
helperText: "25px"
|
|
144
|
+
}
|
|
145
|
+
}, k = ee({
|
|
146
|
+
className: p,
|
|
147
|
+
inputClassName: d,
|
|
148
|
+
error: r,
|
|
149
|
+
raw: n,
|
|
150
|
+
focusMode: b,
|
|
151
|
+
disabled: T,
|
|
152
|
+
noBorder: _,
|
|
153
|
+
mode: m,
|
|
154
|
+
size: i,
|
|
155
|
+
rightElementClassName: f
|
|
156
|
+
});
|
|
157
|
+
return O(() => {
|
|
158
|
+
u && u.width && v(u.width + 18 + 10);
|
|
159
|
+
}, [
|
|
160
|
+
u
|
|
161
|
+
]), O(() => {
|
|
162
|
+
const { label: D, helperText: j } = h[i];
|
|
163
|
+
C?.current?.style.setProperty("--av-text-input-label", D), a?.current?.style.setProperty("--av-text-input-helper-text", j);
|
|
164
|
+
}, [
|
|
165
|
+
i
|
|
166
|
+
]), /* @__PURE__ */ F("div", {
|
|
167
|
+
className: k.wrapper,
|
|
168
|
+
children: [
|
|
169
|
+
/* @__PURE__ */ g("label", {
|
|
170
|
+
htmlFor: y,
|
|
171
|
+
id: c,
|
|
172
|
+
className: k.accessibleLabel,
|
|
173
|
+
children: t
|
|
174
|
+
}),
|
|
175
|
+
/* @__PURE__ */ g("input", {
|
|
176
|
+
ref: w,
|
|
177
|
+
id: y,
|
|
178
|
+
name: s,
|
|
179
|
+
type: I,
|
|
180
|
+
disabled: T,
|
|
181
|
+
placeholder: n ? void 0 : " ",
|
|
182
|
+
className: k.input,
|
|
183
|
+
...o && {
|
|
184
|
+
"aria-describedby": `${y}-helper`
|
|
185
|
+
},
|
|
186
|
+
...r && {
|
|
187
|
+
"aria-invalid": "true"
|
|
188
|
+
},
|
|
189
|
+
...x && !n && {
|
|
190
|
+
style: {
|
|
191
|
+
paddingRight: S
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
...N
|
|
195
|
+
}),
|
|
196
|
+
!n && !E && /* @__PURE__ */ g("label", {
|
|
197
|
+
ref: C,
|
|
198
|
+
"aria-hidden": !0,
|
|
199
|
+
htmlFor: y,
|
|
200
|
+
className: k.visibleLabel,
|
|
201
|
+
children: t
|
|
202
|
+
}),
|
|
203
|
+
o && /* @__PURE__ */ g("div", {
|
|
204
|
+
ref: a,
|
|
205
|
+
id: `${y}-helper`,
|
|
206
|
+
className: k.helperText,
|
|
207
|
+
children: o
|
|
208
|
+
}),
|
|
209
|
+
x && /* @__PURE__ */ g("div", {
|
|
210
|
+
ref: A,
|
|
211
|
+
className: k.rightElement,
|
|
212
|
+
children: x
|
|
213
|
+
}),
|
|
214
|
+
r && o && /* @__PURE__ */ g(H, {
|
|
215
|
+
politeness: "polite",
|
|
216
|
+
clearAnnouncementDelay: 500,
|
|
217
|
+
children: L
|
|
218
|
+
})
|
|
219
|
+
]
|
|
220
|
+
});
|
|
221
|
+
});
|
|
222
|
+
$.displayName = "TextInput";
|
|
223
|
+
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: m, onTextInputMaskBlur: b, rightElement: T, ..._ }, c) => {
|
|
224
|
+
const [E, I] = M(!0), [o, x] = M({
|
|
225
|
+
message: null,
|
|
226
|
+
politeness: null
|
|
227
|
+
}), f = R(!0), i = R(null), N = R(null), w = W([
|
|
228
|
+
c,
|
|
229
|
+
N
|
|
230
|
+
]), A = E ? "Show" : "Hide", u = () => {
|
|
231
|
+
i.current && clearTimeout(i.current), f.current || (i.current = setTimeout(() => {
|
|
232
|
+
f.current = !0, I(!0), x({
|
|
233
|
+
announcementTimeout: re,
|
|
234
|
+
politeness: "polite",
|
|
235
|
+
message: `${t} hiding characters`
|
|
236
|
+
}), n && n(!0);
|
|
237
|
+
}, se));
|
|
238
|
+
}, S = (a) => {
|
|
239
|
+
a.preventDefault();
|
|
240
|
+
const h = !f.current;
|
|
241
|
+
f.current = h, u(), I(h), x({
|
|
242
|
+
announcementTimeout: te,
|
|
243
|
+
politeness: "assertive",
|
|
244
|
+
message: h ? "Characters hidden" : "Characters showing"
|
|
245
|
+
}), n && n(h);
|
|
246
|
+
}, v = (a) => {
|
|
247
|
+
const { relatedTarget: h } = a;
|
|
248
|
+
N.current?.parentElement?.contains(h) || b && b();
|
|
249
|
+
}, y = (a) => {
|
|
250
|
+
u(), d && d(a), v(a);
|
|
251
|
+
}, L = (a) => {
|
|
252
|
+
u(), m && m(a);
|
|
253
|
+
}, C = (a) => {
|
|
254
|
+
u(), p && p(a);
|
|
255
|
+
};
|
|
256
|
+
return z(() => () => {
|
|
257
|
+
i.current && clearTimeout(i.current);
|
|
258
|
+
}, []), /* @__PURE__ */ F(V, {
|
|
259
|
+
children: [
|
|
260
|
+
/* @__PURE__ */ g($, {
|
|
261
|
+
ref: w,
|
|
262
|
+
name: e,
|
|
263
|
+
label: t,
|
|
264
|
+
labelHidden: r,
|
|
265
|
+
type: E ? "password" : "text",
|
|
266
|
+
disabled: s,
|
|
267
|
+
onBlur: y,
|
|
268
|
+
onFocus: L,
|
|
269
|
+
onChange: C,
|
|
270
|
+
rightElement: /* @__PURE__ */ P.cloneElement(T, {
|
|
271
|
+
ref: c,
|
|
272
|
+
label: A,
|
|
273
|
+
onClick: S,
|
|
274
|
+
onBlur: v,
|
|
275
|
+
disabled: s
|
|
276
|
+
}),
|
|
277
|
+
..._
|
|
278
|
+
}),
|
|
279
|
+
/* @__PURE__ */ g(H, {
|
|
280
|
+
role: "status",
|
|
281
|
+
politeness: o.politeness,
|
|
282
|
+
clearAnnouncementDelay: o.announcementTimeout,
|
|
283
|
+
children: o.message
|
|
284
|
+
})
|
|
285
|
+
]
|
|
286
|
+
});
|
|
287
|
+
});
|
|
288
|
+
ae.displayName = "TextInputMask";
|
|
289
|
+
export {
|
|
290
|
+
$ as TextInput,
|
|
291
|
+
ae as TextInputMask
|
|
292
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs as kn } from "./App.
|
|
2
|
-
import { visit as In } from "./useMarkdown.
|
|
3
|
-
import { toText as Cn } from "./index.
|
|
1
|
+
import { getDefaultExportFromCjs as kn } from "./App.4mnNHSFM.js";
|
|
2
|
+
import { visit as In } from "./useMarkdown.DzlB8BkB.js";
|
|
3
|
+
import { toText as Cn } from "./index.Dqllb59Q.js";
|
|
4
4
|
function xn(e) {
|
|
5
5
|
const t = e.regex, i = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), a = "decltype\\(auto\\)", r = "[a-zA-Z_]\\w*::", d = "(?!struct)(" + a + "|" + t.optional(r) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", c = {
|
|
6
6
|
className: "type",
|