@versini/sassysaint 4.3.3 → 4.3.5
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/{App.Dkjj-6lf.js → App.BDhgKayb.js} +3 -3
- package/dist/chunks/{LazyHeader.B0DWuoW8.js → LazyHeader.Dzj0SxfZ.js} +238 -239
- package/dist/chunks/{LazyMarkdownWithExtra.B6ArTFcZ.js → LazyMarkdownWithExtra.D0TcUIim.js} +1 -1
- package/dist/chunks/{LazyMessageAssistant.6l2ElKdb.js → LazyMessageAssistant.BVbfNukB.js} +4 -4
- package/dist/chunks/{index.Bzt9pToY.AYXUeiUe.js → index.BA5202H5.n-3JBGIa.js} +2 -2
- package/dist/chunks/{index.Bd1O6OvY.js → index.DXHNooT6.js} +10 -10
- package/dist/chunks/{useLocalStorage.BJF_XPk2.js → useLocalStorage.Bp1o7FYF.js} +98 -98
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _i } from "react/jsx-runtime";
|
|
2
|
-
import { convert as Si, getDefaultExportFromCjs as Ni, visit as ki, find as Ti, parse as z0, parse$1 as P0, normalize as F0, svg as Mi, html as Ai, visitParents as Oi, SKIP as Ri, longestStreak as Ci, factorySpace as Xt, markdownLineEnding as xt, Markdown as Ii, remarkGfm as Di } from "./LazyMessageAssistant.
|
|
2
|
+
import { convert as Si, getDefaultExportFromCjs as Ni, visit as ki, find as Ti, parse as z0, parse$1 as P0, normalize as F0, svg as Mi, html as Ai, visitParents as Oi, SKIP as Ri, longestStreak as Ci, factorySpace as Xt, markdownLineEnding as xt, Markdown as Ii, remarkGfm as Di } from "./LazyMessageAssistant.BVbfNukB.js";
|
|
3
3
|
const U0 = (
|
|
4
4
|
// Note: overloads like this are needed to support optional generics.
|
|
5
5
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as He, jsx as re, Fragment as or } from "react/jsx-runtime";
|
|
2
|
-
import { c$1 as ot, S as at, LOCAL_STORAGE_PREFIX as wi, LOCAL_STORAGE_CHAT_DETAILS as Si, durationFormatter as Ci } from "./index.
|
|
3
|
-
import { AppContext as Ei, E as Ai } from "./useLocalStorage.
|
|
2
|
+
import { c$1 as ot, S as at, LOCAL_STORAGE_PREFIX as wi, LOCAL_STORAGE_CHAT_DETAILS as Si, durationFormatter as Ci } from "./index.DXHNooT6.js";
|
|
3
|
+
import { AppContext as Ei, E as Ai } from "./useLocalStorage.Bp1o7FYF.js";
|
|
4
4
|
import { lazy as Ii, useContext as Ti, Suspense as Pi } from "react";
|
|
5
|
-
import { T as ut } from "./App.
|
|
5
|
+
import { T as ut } from "./App.BDhgKayb.js";
|
|
6
6
|
import cn from "clsx";
|
|
7
7
|
const Li = ({
|
|
8
8
|
spinnerRef: e,
|
|
@@ -8618,7 +8618,7 @@ function sf(e) {
|
|
|
8618
8618
|
i.push(af(n)), o.push(Tc()), l.push(Pc(n));
|
|
8619
8619
|
}
|
|
8620
8620
|
const cf = Ii(
|
|
8621
|
-
() => import("./LazyMarkdownWithExtra.
|
|
8621
|
+
() => import("./LazyMarkdownWithExtra.D0TcUIim.js")
|
|
8622
8622
|
), In = {
|
|
8623
8623
|
MODEL: "Model",
|
|
8624
8624
|
PLUGIN: "Plugin",
|
|
@@ -3,7 +3,7 @@ import y from "clsx";
|
|
|
3
3
|
import * as c from "react";
|
|
4
4
|
import { useRef as C, useReducer as M, useEffect as _, useId as x } from "react";
|
|
5
5
|
import { useMergeRefs as S, FloatingPortal as F, FloatingOverlay as O, FloatingFocusManager as P, useFloating as k, useClick as L, useDismiss as V, useRole as B, useInteractions as U } from "@floating-ui/react";
|
|
6
|
-
import { S as j } from "./index.
|
|
6
|
+
import { S as j } from "./index.DXHNooT6.js";
|
|
7
7
|
const b = "SET_ANNOUNCEMENT", w = "CLEAR_ANNOUNCEMENT", q = {
|
|
8
8
|
alert: null,
|
|
9
9
|
alertdialog: null,
|
|
@@ -236,7 +236,7 @@ const ee = c.forwardRef(function(e, n) {
|
|
|
236
236
|
try {
|
|
237
237
|
window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
|
|
238
238
|
version: "1.4.8",
|
|
239
|
-
buildTime: "09/
|
|
239
|
+
buildTime: "09/09/2024 06:39 PM EDT",
|
|
240
240
|
homepage: "https://github.com/aversini/ui-components",
|
|
241
241
|
license: "MIT"
|
|
242
242
|
});
|
|
@@ -2436,13 +2436,13 @@ const Xa = ({
|
|
|
2436
2436
|
return /* @__PURE__ */ c("main", { className: n, children: e });
|
|
2437
2437
|
};
|
|
2438
2438
|
/*!
|
|
2439
|
-
@versini/ui-components v5.21.
|
|
2439
|
+
@versini/ui-components v5.21.4
|
|
2440
2440
|
© 2024 gizmette.com
|
|
2441
2441
|
*/
|
|
2442
2442
|
try {
|
|
2443
2443
|
window.__VERSINI_UI_GLOBAL__ || (window.__VERSINI_UI_GLOBAL__ = {
|
|
2444
|
-
version: "5.21.
|
|
2445
|
-
buildTime: "09/
|
|
2444
|
+
version: "5.21.4",
|
|
2445
|
+
buildTime: "09/09/2024 06:39 PM EDT",
|
|
2446
2446
|
homepage: "https://github.com/aversini/ui-components",
|
|
2447
2447
|
license: "MIT"
|
|
2448
2448
|
});
|
|
@@ -2616,7 +2616,7 @@ function qt({
|
|
|
2616
2616
|
try {
|
|
2617
2617
|
window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
|
|
2618
2618
|
version: "1.4.8",
|
|
2619
|
-
buildTime: "09/
|
|
2619
|
+
buildTime: "09/09/2024 06:06 PM EDT",
|
|
2620
2620
|
homepage: "https://github.com/aversini/ui-components",
|
|
2621
2621
|
license: "MIT"
|
|
2622
2622
|
});
|
|
@@ -2924,13 +2924,13 @@ const En = 500, wn = 5e3, Tn = 2e4, Xt = V.forwardRef(
|
|
|
2924
2924
|
);
|
|
2925
2925
|
Xt.displayName = "TextInputMask";
|
|
2926
2926
|
/*!
|
|
2927
|
-
@versini/ui-form v1.3.
|
|
2927
|
+
@versini/ui-form v1.3.10
|
|
2928
2928
|
© 2024 gizmette.com
|
|
2929
2929
|
*/
|
|
2930
2930
|
try {
|
|
2931
2931
|
window.__VERSINI_UI_FORM__ || (window.__VERSINI_UI_FORM__ = {
|
|
2932
|
-
version: "1.3.
|
|
2933
|
-
buildTime: "09/
|
|
2932
|
+
version: "1.3.10",
|
|
2933
|
+
buildTime: "09/09/2024 06:06 PM EDT",
|
|
2934
2934
|
homepage: "https://github.com/aversini/ui-components",
|
|
2935
2935
|
license: "MIT"
|
|
2936
2936
|
});
|
|
@@ -3337,7 +3337,7 @@ const xn = "ASK! ME! ANYTHING!", er = "Sassy Saint", Cn = "gizmette.com", On = "
|
|
|
3337
3337
|
row1: /* @__PURE__ */ I("div", { children: [
|
|
3338
3338
|
er,
|
|
3339
3339
|
" v",
|
|
3340
|
-
"4.3.
|
|
3340
|
+
"4.3.5",
|
|
3341
3341
|
" - ",
|
|
3342
3342
|
$n,
|
|
3343
3343
|
Qe && e && e.models.length > 0 && e.models[0] === "development" ? " - Development Mode" : ""
|
|
@@ -3349,7 +3349,7 @@ const xn = "ASK! ME! ANYTHING!", er = "Sassy Saint", Cn = "gizmette.com", On = "
|
|
|
3349
3349
|
Cn
|
|
3350
3350
|
] })
|
|
3351
3351
|
}
|
|
3352
|
-
), Mn = wt(() => import("./LazyHeader.
|
|
3352
|
+
), Mn = wt(() => import("./LazyHeader.Dzj0SxfZ.js")), Un = () => {
|
|
3353
3353
|
const { isAuthenticated: e } = qe();
|
|
3354
3354
|
return /* @__PURE__ */ I(le, { children: [
|
|
3355
3355
|
e && /* @__PURE__ */ c(Tt, { fallback: /* @__PURE__ */ c("div", {}), children: /* @__PURE__ */ c(Mn, {}) }),
|
|
@@ -3456,7 +3456,7 @@ const xn = "ASK! ME! ANYTHING!", er = "Sassy Saint", Cn = "gizmette.com", On = "
|
|
|
3456
3456
|
] }),
|
|
3457
3457
|
/* @__PURE__ */ c(Ln, {})
|
|
3458
3458
|
] });
|
|
3459
|
-
}, Kn = new URL(document.location.href).searchParams, Bn = !!Kn.get("debug") || !1, Wn = wt(() => import("./App.
|
|
3459
|
+
}, Kn = new URL(document.location.href).searchParams, Bn = !!Kn.get("debug") || !1, Wn = wt(() => import("./App.BDhgKayb.js").then((e) => e.App)), Gn = ({ isComponent: e }) => {
|
|
3460
3460
|
const { isAuthenticated: t } = qe();
|
|
3461
3461
|
return t ? /* @__PURE__ */ c(Tt, { fallback: /* @__PURE__ */ c("div", {}), children: /* @__PURE__ */ c(Wn, { isComponent: e }) }) : /* @__PURE__ */ c(Hn, {});
|
|
3462
3462
|
}, Vn = ({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as x, Fragment as ke, jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import i from "clsx";
|
|
3
|
-
import H, { useContext as A, useRef as
|
|
4
|
-
import { A as xe, i as we, f as
|
|
5
|
-
const
|
|
3
|
+
import H, { useContext as A, useRef as N, useState as z, useLayoutEffect as L, useEffect as ae, useSyncExternalStore as _e, useCallback as j } from "react";
|
|
4
|
+
import { A as xe, i as we, f as Ne, S as Te, f$1 as ve, V as Se, j as Ce, F as Ie, r as Ee, o as He, n as se, l as Ae, a as J, MODEL_GPT4 as Oe } from "./index.DXHNooT6.js";
|
|
5
|
+
const Be = (e) => {
|
|
6
6
|
let r = "";
|
|
7
7
|
if (typeof e == "number" || typeof e == "string")
|
|
8
8
|
r = "m-" + e;
|
|
@@ -23,16 +23,16 @@ const $e = (e) => {
|
|
|
23
23
|
semantic: n = !1,
|
|
24
24
|
...m
|
|
25
25
|
}) => {
|
|
26
|
-
const
|
|
27
|
-
|
|
26
|
+
const u = Be(d), y = i(
|
|
27
|
+
u,
|
|
28
28
|
a || o
|
|
29
29
|
);
|
|
30
|
-
return /* @__PURE__ */
|
|
30
|
+
return /* @__PURE__ */ x(ke, { children: [
|
|
31
31
|
/* @__PURE__ */ c(
|
|
32
32
|
"svg",
|
|
33
33
|
{
|
|
34
34
|
xmlns: "http://www.w3.org/2000/svg",
|
|
35
|
-
className:
|
|
35
|
+
className: y,
|
|
36
36
|
viewBox: t || s,
|
|
37
37
|
fill: r || "currentColor",
|
|
38
38
|
role: "img",
|
|
@@ -52,7 +52,7 @@ const $e = (e) => {
|
|
|
52
52
|
try {
|
|
53
53
|
window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
|
|
54
54
|
version: "1.4.8",
|
|
55
|
-
buildTime: "09/
|
|
55
|
+
buildTime: "09/09/2024 06:39 PM EDT",
|
|
56
56
|
homepage: "https://github.com/aversini/ui-components",
|
|
57
57
|
license: "MIT"
|
|
58
58
|
});
|
|
@@ -65,20 +65,20 @@ try {
|
|
|
65
65
|
try {
|
|
66
66
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
67
67
|
version: "1.12.0",
|
|
68
|
-
buildTime: "09/
|
|
68
|
+
buildTime: "09/09/2024 06:39 PM EDT",
|
|
69
69
|
homepage: "https://github.com/aversini/ui-components",
|
|
70
70
|
license: "MIT"
|
|
71
71
|
});
|
|
72
72
|
} catch {
|
|
73
73
|
}
|
|
74
|
-
const
|
|
74
|
+
const Me = ({
|
|
75
75
|
className: e,
|
|
76
76
|
viewBox: r,
|
|
77
77
|
spacing: t,
|
|
78
78
|
title: a,
|
|
79
79
|
monotone: s,
|
|
80
80
|
...o
|
|
81
|
-
}) => /* @__PURE__ */
|
|
81
|
+
}) => /* @__PURE__ */ x(
|
|
82
82
|
Q,
|
|
83
83
|
{
|
|
84
84
|
defaultViewBox: "0 0 576 512",
|
|
@@ -99,14 +99,14 @@ const Be = ({
|
|
|
99
99
|
/* @__PURE__ */ c("path", { d: "M137.4 470.6c12.5 12.5 32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 370.7V64c0-17.7-14.3-32-32-32s-32 14.3-32 32V370.7L86.6 329.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96z" })
|
|
100
100
|
]
|
|
101
101
|
}
|
|
102
|
-
),
|
|
102
|
+
), $e = ({
|
|
103
103
|
className: e,
|
|
104
104
|
viewBox: r,
|
|
105
105
|
spacing: t,
|
|
106
106
|
title: a,
|
|
107
107
|
monotone: s,
|
|
108
108
|
...o
|
|
109
|
-
}) => /* @__PURE__ */
|
|
109
|
+
}) => /* @__PURE__ */ x(
|
|
110
110
|
Q,
|
|
111
111
|
{
|
|
112
112
|
defaultViewBox: "0 0 576 512",
|
|
@@ -134,7 +134,7 @@ const Be = ({
|
|
|
134
134
|
title: a,
|
|
135
135
|
monotone: s,
|
|
136
136
|
...o
|
|
137
|
-
}) => /* @__PURE__ */
|
|
137
|
+
}) => /* @__PURE__ */ x(
|
|
138
138
|
Q,
|
|
139
139
|
{
|
|
140
140
|
defaultViewBox: "0 0 576 512",
|
|
@@ -167,18 +167,18 @@ const Be = ({
|
|
|
167
167
|
raw: l = !1,
|
|
168
168
|
noBorder: n = !1,
|
|
169
169
|
"aria-label": m,
|
|
170
|
-
label:
|
|
171
|
-
size:
|
|
172
|
-
labelRight:
|
|
170
|
+
label: u,
|
|
171
|
+
size: y = "medium",
|
|
172
|
+
labelRight: p,
|
|
173
173
|
labelLeft: _,
|
|
174
|
-
spacing:
|
|
174
|
+
spacing: g,
|
|
175
175
|
noBackground: S = !1,
|
|
176
176
|
align: C = "center",
|
|
177
177
|
active: O = !1,
|
|
178
|
-
|
|
179
|
-
},
|
|
178
|
+
...B
|
|
179
|
+
}, M) => {
|
|
180
180
|
const U = xe({
|
|
181
|
-
type:
|
|
181
|
+
type: Ne,
|
|
182
182
|
mode: t,
|
|
183
183
|
focusMode: a,
|
|
184
184
|
fullWidth: s,
|
|
@@ -186,10 +186,10 @@ const Be = ({
|
|
|
186
186
|
raw: l,
|
|
187
187
|
className: o,
|
|
188
188
|
noBorder: n,
|
|
189
|
-
size:
|
|
190
|
-
labelRight:
|
|
189
|
+
size: y,
|
|
190
|
+
labelRight: p,
|
|
191
191
|
labelLeft: _,
|
|
192
|
-
spacing:
|
|
192
|
+
spacing: g,
|
|
193
193
|
noBackground: S,
|
|
194
194
|
align: C
|
|
195
195
|
}), G = i({
|
|
@@ -214,19 +214,19 @@ const Be = ({
|
|
|
214
214
|
"after:border-table-light dark:after:border-table-dark": t === "alt-system"
|
|
215
215
|
}
|
|
216
216
|
) : "";
|
|
217
|
-
return /* @__PURE__ */ c("div", { className: D, children: /* @__PURE__ */
|
|
217
|
+
return /* @__PURE__ */ c("div", { className: D, children: /* @__PURE__ */ x(
|
|
218
218
|
we,
|
|
219
219
|
{
|
|
220
|
-
ref:
|
|
220
|
+
ref: M,
|
|
221
221
|
className: U,
|
|
222
222
|
disabled: r,
|
|
223
223
|
type: d,
|
|
224
|
-
"aria-label": m ||
|
|
225
|
-
|
|
224
|
+
"aria-label": m || u,
|
|
225
|
+
...B,
|
|
226
226
|
children: [
|
|
227
227
|
_ && /* @__PURE__ */ c("span", { className: "pr-2", children: _ }),
|
|
228
228
|
/* @__PURE__ */ c("div", { className: G, children: e }),
|
|
229
|
-
|
|
229
|
+
p && /* @__PURE__ */ c("span", { className: "pl-2", children: p })
|
|
230
230
|
]
|
|
231
231
|
}
|
|
232
232
|
) });
|
|
@@ -239,7 +239,7 @@ const v = H.createContext({
|
|
|
239
239
|
stickyHeader: !1,
|
|
240
240
|
stickyFooter: !1,
|
|
241
241
|
compact: !1
|
|
242
|
-
}), R = "thead", Y = "tfoot",
|
|
242
|
+
}), R = "thead", Y = "tfoot", T = "tbody", V = {
|
|
243
243
|
ASC: "asc",
|
|
244
244
|
DESC: "desc"
|
|
245
245
|
}, Ve = ({
|
|
@@ -252,7 +252,7 @@ const v = H.createContext({
|
|
|
252
252
|
}) => ({
|
|
253
253
|
wrapper: i(
|
|
254
254
|
"not-prose relative w-full rounded-lg shadow-md",
|
|
255
|
-
|
|
255
|
+
Te(o),
|
|
256
256
|
{
|
|
257
257
|
"overflow-x-auto": !a && !s,
|
|
258
258
|
"overflow-y-scroll": a || s,
|
|
@@ -306,13 +306,13 @@ const v = H.createContext({
|
|
|
306
306
|
"bg-table-head-light dark:bg-table-head-dark": e === "alt-system"
|
|
307
307
|
}) : i("border-b last:border-0", r, {
|
|
308
308
|
"border-table-dark": e === "dark",
|
|
309
|
-
"odd:bg-table-dark-odd even:bg-table-dark-even": t ===
|
|
309
|
+
"odd:bg-table-dark-odd even:bg-table-dark-even": t === T && e === "dark",
|
|
310
310
|
"border-table-light": e === "light",
|
|
311
|
-
"odd:bg-table-light-odd even:bg-table-light-even": t ===
|
|
311
|
+
"odd:bg-table-light-odd even:bg-table-light-even": t === T && e === "light",
|
|
312
312
|
"border-table-dark dark:border-table-light": e === "system",
|
|
313
|
-
"odd:bg-table-dark-odd even:bg-table-dark-even dark:odd:bg-table-light-odd dark:even:bg-table-light-even": t ===
|
|
313
|
+
"odd:bg-table-dark-odd even:bg-table-dark-even dark:odd:bg-table-light-odd dark:even:bg-table-light-even": t === T && e === "system",
|
|
314
314
|
"border-table-light dark:border-table-dark": e === "alt-system",
|
|
315
|
-
"odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": t ===
|
|
315
|
+
"odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": t === T && e === "alt-system"
|
|
316
316
|
}), Ge = ({
|
|
317
317
|
cellWrapper: e,
|
|
318
318
|
className: r,
|
|
@@ -324,7 +324,7 @@ const v = H.createContext({
|
|
|
324
324
|
"text-copy-light dark:text-copy-dark": a === "system",
|
|
325
325
|
"text-copy-dark dark:text-copy-light": a === "alt-system",
|
|
326
326
|
"px-4 py-3": !t && (e === R || e === Y),
|
|
327
|
-
"p-4": !t && e ===
|
|
327
|
+
"p-4": !t && e === T,
|
|
328
328
|
"px-4 py-1": t
|
|
329
329
|
}), lt = ({
|
|
330
330
|
children: e,
|
|
@@ -337,16 +337,16 @@ const v = H.createContext({
|
|
|
337
337
|
maxHeight: l,
|
|
338
338
|
stickyHeader: n,
|
|
339
339
|
stickyFooter: m,
|
|
340
|
-
spacing:
|
|
341
|
-
...
|
|
340
|
+
spacing: u,
|
|
341
|
+
...y
|
|
342
342
|
}) => {
|
|
343
|
-
const
|
|
343
|
+
const p = Ve({
|
|
344
344
|
mode: r,
|
|
345
345
|
className: o,
|
|
346
346
|
wrapperClassName: d,
|
|
347
347
|
stickyHeader: n,
|
|
348
348
|
stickyFooter: m,
|
|
349
|
-
spacing:
|
|
349
|
+
spacing: u
|
|
350
350
|
});
|
|
351
351
|
return /* @__PURE__ */ c(
|
|
352
352
|
v.Provider,
|
|
@@ -355,12 +355,12 @@ const v = H.createContext({
|
|
|
355
355
|
children: /* @__PURE__ */ c(
|
|
356
356
|
"div",
|
|
357
357
|
{
|
|
358
|
-
className:
|
|
358
|
+
className: p.wrapper,
|
|
359
359
|
...l && {
|
|
360
360
|
style: { maxHeight: l }
|
|
361
361
|
},
|
|
362
|
-
children: /* @__PURE__ */
|
|
363
|
-
t && /* @__PURE__ */ c("caption", { className:
|
|
362
|
+
children: /* @__PURE__ */ x("table", { className: p.table, summary: s, ...y, children: [
|
|
363
|
+
t && /* @__PURE__ */ c("caption", { className: p.caption, children: t }),
|
|
364
364
|
e
|
|
365
365
|
] })
|
|
366
366
|
}
|
|
@@ -395,7 +395,7 @@ const v = H.createContext({
|
|
|
395
395
|
return /* @__PURE__ */ c("tfoot", { className: s, ...t, children: e });
|
|
396
396
|
}, it = ({ children: e, ...r }) => {
|
|
397
397
|
const t = A(v);
|
|
398
|
-
return t.cellWrapper =
|
|
398
|
+
return t.cellWrapper = T, /* @__PURE__ */ c("tbody", { ...r, children: e });
|
|
399
399
|
}, nt = ({
|
|
400
400
|
children: e,
|
|
401
401
|
className: r,
|
|
@@ -431,7 +431,7 @@ const v = H.createContext({
|
|
|
431
431
|
sortDirection: l,
|
|
432
432
|
sortedCell: n,
|
|
433
433
|
cellId: m,
|
|
434
|
-
...
|
|
434
|
+
...u
|
|
435
435
|
}) => /* @__PURE__ */ c(
|
|
436
436
|
De,
|
|
437
437
|
{
|
|
@@ -439,7 +439,7 @@ const v = H.createContext({
|
|
|
439
439
|
className: t,
|
|
440
440
|
role: "columnheader",
|
|
441
441
|
"aria-sort": l === V.ASC && n === m ? "ascending" : l === V.DESC && n === m ? "descending" : "other",
|
|
442
|
-
...
|
|
442
|
+
...u,
|
|
443
443
|
children: /* @__PURE__ */ c(
|
|
444
444
|
oe,
|
|
445
445
|
{
|
|
@@ -452,7 +452,7 @@ const v = H.createContext({
|
|
|
452
452
|
mode: o,
|
|
453
453
|
fullWidth: !0,
|
|
454
454
|
labelRight: r,
|
|
455
|
-
children: l === V.ASC && n === m ? /* @__PURE__ */ c(Le, { className: "size-4", monotone: !0 }) : l === V.DESC && n === m ? /* @__PURE__ */ c(
|
|
455
|
+
children: l === V.ASC && n === m ? /* @__PURE__ */ c(Le, { className: "size-4", monotone: !0 }) : l === V.DESC && n === m ? /* @__PURE__ */ c($e, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ c(Me, { className: "size-4", monotone: !0 })
|
|
456
456
|
}
|
|
457
457
|
)
|
|
458
458
|
}
|
|
@@ -465,16 +465,16 @@ function Fe({
|
|
|
465
465
|
},
|
|
466
466
|
initialControlledDelay: s = 0
|
|
467
467
|
}) {
|
|
468
|
-
const o
|
|
468
|
+
const [o, d] = z(!1), [l, n] = z(
|
|
469
469
|
r !== void 0 ? r : t
|
|
470
|
-
),
|
|
471
|
-
|
|
470
|
+
), m = (u) => {
|
|
471
|
+
n(u), a == null || a(u);
|
|
472
472
|
};
|
|
473
473
|
return ae(() => {
|
|
474
|
-
(async () => e !== void 0 &&
|
|
474
|
+
(async () => e !== void 0 && !o && s > 0 && (await new Promise(
|
|
475
475
|
(u) => setTimeout(u, s)
|
|
476
|
-
),
|
|
477
|
-
}, [e, s]), e !== void 0 ? [
|
|
476
|
+
), d(!0)))();
|
|
477
|
+
}, [e, s, o]), e !== void 0 ? !o && s > 0 ? ["", a, !0] : [e, a, !0] : [l, m, !1];
|
|
478
478
|
}
|
|
479
479
|
const Pe = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", We = ({
|
|
480
480
|
mode: e
|
|
@@ -565,7 +565,7 @@ const Pe = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
565
565
|
Ee,
|
|
566
566
|
e,
|
|
567
567
|
He(l)
|
|
568
|
-
),
|
|
568
|
+
), u = t ? i(r) : i(
|
|
569
569
|
se,
|
|
570
570
|
r,
|
|
571
571
|
Pe(),
|
|
@@ -578,7 +578,7 @@ const Pe = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
578
578
|
{
|
|
579
579
|
"disabled:cursor-not-allowed disabled:opacity-50": s
|
|
580
580
|
}
|
|
581
|
-
),
|
|
581
|
+
), y = t ? void 0 : "sr-only", p = Je({
|
|
582
582
|
disabled: s,
|
|
583
583
|
raw: t,
|
|
584
584
|
error: d,
|
|
@@ -588,14 +588,14 @@ const Pe = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
588
588
|
raw: t,
|
|
589
589
|
mode: n,
|
|
590
590
|
disabled: s
|
|
591
|
-
}),
|
|
591
|
+
}), g = t ? void 0 : i(Ae, "absolute");
|
|
592
592
|
return {
|
|
593
593
|
wrapper: m,
|
|
594
|
-
textArea:
|
|
595
|
-
accessibleLabel:
|
|
596
|
-
visibleLabel:
|
|
594
|
+
textArea: u,
|
|
595
|
+
accessibleLabel: y,
|
|
596
|
+
visibleLabel: p,
|
|
597
597
|
helperText: _,
|
|
598
|
-
rightElement:
|
|
598
|
+
rightElement: g
|
|
599
599
|
};
|
|
600
600
|
}, Ke = ({
|
|
601
601
|
scrollHeight: e,
|
|
@@ -625,63 +625,63 @@ const Pe = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
625
625
|
mode: l = "system",
|
|
626
626
|
focusMode: n = "system",
|
|
627
627
|
value: m,
|
|
628
|
-
defaultValue:
|
|
629
|
-
disabled:
|
|
630
|
-
noBorder:
|
|
628
|
+
defaultValue: u,
|
|
629
|
+
disabled: y = !1,
|
|
630
|
+
noBorder: p = !1,
|
|
631
631
|
labelId: _,
|
|
632
|
-
helperText:
|
|
632
|
+
helperText: g = "",
|
|
633
633
|
helperTextOnFocus: S = !1,
|
|
634
634
|
rightElement: C,
|
|
635
635
|
onChange: O,
|
|
636
|
-
onFocus:
|
|
637
|
-
onBlur:
|
|
636
|
+
onFocus: B,
|
|
637
|
+
onBlur: M,
|
|
638
638
|
spacing: U,
|
|
639
639
|
...G
|
|
640
640
|
}, D) => {
|
|
641
|
-
const b =
|
|
642
|
-
!!(!S &&
|
|
643
|
-
), he = `${r} error, ${
|
|
641
|
+
const b = N(null), de = ve([D, b]), [ie, $] = Se(), F = N(80), K = N(-25), I = N(null), X = N(30), P = N(null), E = Ce({ id: e, prefix: `${se}-` }), [ne, me] = z(0), [ue, Z] = z(
|
|
642
|
+
!!(!S && g)
|
|
643
|
+
), he = `${r} error, ${g}`, w = Ye({
|
|
644
644
|
className: o,
|
|
645
645
|
textAreaClassName: d,
|
|
646
646
|
error: a,
|
|
647
647
|
raw: s,
|
|
648
648
|
focusMode: n,
|
|
649
|
-
disabled:
|
|
650
|
-
noBorder:
|
|
649
|
+
disabled: y,
|
|
650
|
+
noBorder: p,
|
|
651
651
|
spacing: U,
|
|
652
652
|
mode: l
|
|
653
653
|
}), [f, pe] = Fe({
|
|
654
654
|
value: m,
|
|
655
|
-
initialControlledDelay:
|
|
656
|
-
defaultValue:
|
|
657
|
-
onChange: (
|
|
655
|
+
initialControlledDelay: 20,
|
|
656
|
+
defaultValue: u,
|
|
657
|
+
onChange: (h) => {
|
|
658
658
|
O && O({
|
|
659
659
|
target: {
|
|
660
|
-
value:
|
|
660
|
+
value: h
|
|
661
661
|
}
|
|
662
662
|
});
|
|
663
663
|
}
|
|
664
|
-
}), ge = (
|
|
665
|
-
pe(
|
|
666
|
-
}, ye = (
|
|
667
|
-
S &&
|
|
668
|
-
}, be = (
|
|
669
|
-
S &&
|
|
664
|
+
}), ge = (h) => {
|
|
665
|
+
pe(h.target.value);
|
|
666
|
+
}, ye = (h) => {
|
|
667
|
+
S && g && Z(!0), B && B(h);
|
|
668
|
+
}, be = (h) => {
|
|
669
|
+
S && g && !f && Z(!1), M && M(h);
|
|
670
670
|
};
|
|
671
671
|
return L(() => {
|
|
672
|
-
|
|
673
|
-
}, [
|
|
672
|
+
$ && $.width && me($.width + 18 + 10);
|
|
673
|
+
}, [$]), L(() => {
|
|
674
674
|
s || b && b.current && f !== void 0 && (b.current.style.height = "inherit", b.current.style.height = b.current.scrollHeight + "px");
|
|
675
675
|
}, [f, s]), L(() => {
|
|
676
676
|
s || setTimeout(() => {
|
|
677
|
-
var
|
|
678
|
-
(
|
|
677
|
+
var h;
|
|
678
|
+
(h = I == null ? void 0 : I.current) == null || h.style.setProperty(
|
|
679
679
|
"--av-text-area-wrapper-transition",
|
|
680
680
|
f ? "none" : "all 0.2s ease-out"
|
|
681
681
|
);
|
|
682
682
|
}, 0);
|
|
683
683
|
}, [f, s]), L(() => {
|
|
684
|
-
var
|
|
684
|
+
var h, ee;
|
|
685
685
|
if (!s && b && b.current && f !== void 0) {
|
|
686
686
|
const { labelOffset: W, helperTextOffset: q, scrollHeight: fe } = Ke({
|
|
687
687
|
scrollHeight: b.current.scrollHeight,
|
|
@@ -689,7 +689,7 @@ const Pe = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
689
689
|
currentLabelOffset: K.current,
|
|
690
690
|
currentHelperTextOffset: X.current
|
|
691
691
|
});
|
|
692
|
-
W && (K.current = W, (
|
|
692
|
+
W && (K.current = W, (h = I == null ? void 0 : I.current) == null || h.style.setProperty(
|
|
693
693
|
"--av-text-area-label",
|
|
694
694
|
`${W}px`
|
|
695
695
|
)), q && (X.current = q, (ee = P == null ? void 0 : P.current) == null || ee.style.setProperty(
|
|
@@ -697,13 +697,13 @@ const Pe = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
697
697
|
`${q}px`
|
|
698
698
|
)), F.current = fe || F.current;
|
|
699
699
|
}
|
|
700
|
-
}, [f, s]), /* @__PURE__ */
|
|
700
|
+
}, [f, s]), /* @__PURE__ */ x("div", { className: w.wrapper, children: [
|
|
701
701
|
/* @__PURE__ */ c(
|
|
702
702
|
"label",
|
|
703
703
|
{
|
|
704
704
|
htmlFor: E,
|
|
705
705
|
id: _,
|
|
706
|
-
className:
|
|
706
|
+
className: w.accessibleLabel,
|
|
707
707
|
children: t
|
|
708
708
|
}
|
|
709
709
|
),
|
|
@@ -713,11 +713,11 @@ const Pe = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
713
713
|
ref: de,
|
|
714
714
|
id: E,
|
|
715
715
|
name: r,
|
|
716
|
-
disabled:
|
|
716
|
+
disabled: y,
|
|
717
717
|
placeholder: s ? void 0 : " ",
|
|
718
|
-
className:
|
|
718
|
+
className: w.textArea,
|
|
719
719
|
rows: 1,
|
|
720
|
-
...
|
|
720
|
+
...g && { "aria-describedby": `${E}-helper` },
|
|
721
721
|
...a && { "aria-invalid": "true" },
|
|
722
722
|
...C && !s && { style: { paddingRight: ne } },
|
|
723
723
|
value: f,
|
|
@@ -733,7 +733,7 @@ const Pe = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
733
733
|
ref: I,
|
|
734
734
|
"aria-hidden": !0,
|
|
735
735
|
htmlFor: E,
|
|
736
|
-
className:
|
|
736
|
+
className: w.visibleLabel,
|
|
737
737
|
children: t
|
|
738
738
|
}
|
|
739
739
|
),
|
|
@@ -742,19 +742,19 @@ const Pe = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
742
742
|
{
|
|
743
743
|
ref: P,
|
|
744
744
|
id: `${E}-helper`,
|
|
745
|
-
className:
|
|
746
|
-
children:
|
|
745
|
+
className: w.helperText,
|
|
746
|
+
children: g
|
|
747
747
|
}
|
|
748
748
|
),
|
|
749
749
|
C && /* @__PURE__ */ c(
|
|
750
750
|
"div",
|
|
751
751
|
{
|
|
752
752
|
ref: ie,
|
|
753
|
-
className:
|
|
753
|
+
className: w.rightElement,
|
|
754
754
|
children: C
|
|
755
755
|
}
|
|
756
756
|
),
|
|
757
|
-
a &&
|
|
757
|
+
a && g && /* @__PURE__ */ c(Ie, { politeness: "polite", clearAnnouncementDelay: 500, children: he })
|
|
758
758
|
] });
|
|
759
759
|
}
|
|
760
760
|
);
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { SassySaint as r } from "./chunks/index.
|
|
1
|
+
import { SassySaint as r } from "./chunks/index.DXHNooT6.js";
|
|
2
2
|
/*!
|
|
3
|
-
@sassysaint/client v4.3.
|
|
3
|
+
@sassysaint/client v4.3.5
|
|
4
4
|
© 2024 gizmette.com
|
|
5
5
|
*/
|
|
6
6
|
try {
|
|
7
7
|
window.__VERSINI_SASSY_GLOBAL__ || (window.__VERSINI_SASSY_GLOBAL__ = {
|
|
8
|
-
version: "4.3.
|
|
9
|
-
buildTime: "09/
|
|
8
|
+
version: "4.3.5",
|
|
9
|
+
buildTime: "09/10/2024 09:59 AM EDT",
|
|
10
10
|
license: "MIT"
|
|
11
11
|
});
|
|
12
12
|
} catch {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/sassysaint",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"react-dom": "18.3.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@sassysaint/client": "4.3.
|
|
33
|
+
"@sassysaint/client": "4.3.5",
|
|
34
34
|
"@versini/ui-styles": "1.9.5"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"sideEffects": [
|
|
42
42
|
"**/*.css"
|
|
43
43
|
],
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "8a64c73fcaf07b9bbbe47d8ae5442c48fc589030"
|
|
45
45
|
}
|