@versini/sassysaint 5.1.2 → 5.1.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.
@@ -1,9 +1,9 @@
1
1
  import { jsx as i, jsxs as E, Fragment as D } from "react/jsx-runtime";
2
2
  import y from "clsx";
3
3
  import * as c from "react";
4
- import { useRef as A, useReducer as M, useEffect as _, useId as x } from "react";
5
- import { useMergeRefs as F, FloatingPortal as O, FloatingOverlay as P, FloatingFocusManager as S, useFloating as k, useClick as L, useDismiss as B, useRole as V, useInteractions as $ } from "@floating-ui/react";
6
- const R = "SET_ANNOUNCEMENT", w = "CLEAR_ANNOUNCEMENT", j = {
4
+ import { useRef as A, useReducer as M, useEffect as _, useId as R } from "react";
5
+ import { useMergeRefs as x, FloatingPortal as F, FloatingOverlay as O, FloatingFocusManager as P, useFloating as S, useClick as k, useDismiss as L, useRole as V, useInteractions as $ } from "@floating-ui/react";
6
+ const I = "SET_ANNOUNCEMENT", w = "CLEAR_ANNOUNCEMENT", B = {
7
7
  alert: null,
8
8
  alertdialog: null,
9
9
  log: "polite",
@@ -11,9 +11,9 @@ const R = "SET_ANNOUNCEMENT", w = "CLEAR_ANNOUNCEMENT", j = {
11
11
  progressbar: null,
12
12
  status: "polite",
13
13
  timer: "assertive"
14
- }, U = (e, n) => {
14
+ }, j = (e, n) => {
15
15
  switch (n == null ? void 0 : n.type) {
16
- case R:
16
+ case I:
17
17
  return {
18
18
  ...e,
19
19
  announcement: n.payload
@@ -26,7 +26,7 @@ const R = "SET_ANNOUNCEMENT", w = "CLEAR_ANNOUNCEMENT", j = {
26
26
  default:
27
27
  return e;
28
28
  }
29
- }, q = ({
29
+ }, U = ({
30
30
  onAnnouncementClear: e,
31
31
  dispatch: n
32
32
  }) => {
@@ -41,16 +41,16 @@ const R = "SET_ANNOUNCEMENT", w = "CLEAR_ANNOUNCEMENT", j = {
41
41
  dispatch: l
42
42
  }) => {
43
43
  (t == null ? void 0 : t.current) !== null && clearTimeout(t.current), e !== null && l({
44
- type: R,
44
+ type: I,
45
45
  payload: e
46
46
  }), n && (t.current = setTimeout(
47
- () => q({
47
+ () => U({
48
48
  onAnnouncementClear: o,
49
49
  dispatch: l
50
50
  }),
51
51
  n
52
52
  ));
53
- }, H = ({
53
+ }, q = ({
54
54
  children: e,
55
55
  announcementTimeoutRef: n,
56
56
  announcementDelay: t,
@@ -73,7 +73,7 @@ const R = "SET_ANNOUNCEMENT", w = "CLEAR_ANNOUNCEMENT", j = {
73
73
  dispatch: a
74
74
  });
75
75
  };
76
- function K({
76
+ function G({
77
77
  children: e,
78
78
  className: n,
79
79
  politeness: t,
@@ -82,21 +82,21 @@ function K({
82
82
  clearAnnouncementDelay: r,
83
83
  onAnnouncementClear: a,
84
84
  visible: s,
85
- ...p
85
+ ...f
86
86
  }) {
87
- const u = A(), d = A(), [m, f] = M(U, {
87
+ const u = A(), d = A(), [m, p] = M(j, {
88
88
  announcement: null
89
89
  });
90
90
  let h = t;
91
- typeof h > "u" && (h = o ? j[o] : "assertive"), _(() => {
92
- H({
91
+ typeof h > "u" && (h = o ? B[o] : "assertive"), _(() => {
92
+ q({
93
93
  announcementTimeoutRef: u,
94
94
  announcementDelay: l,
95
95
  children: e,
96
96
  clearAnnouncementDelay: r,
97
97
  clearAnnouncementTimeoutRef: d,
98
98
  onAnnouncementClear: a,
99
- dispatch: f
99
+ dispatch: p
100
100
  });
101
101
  }, [
102
102
  e,
@@ -113,26 +113,26 @@ function K({
113
113
  "aria-live": h,
114
114
  ...o && { role: o },
115
115
  className: v,
116
- ...p,
116
+ ...f,
117
117
  children: m.announcement
118
118
  }
119
119
  );
120
120
  }
121
- const I = c.createContext(null);
122
- function z({
121
+ const T = c.createContext(null);
122
+ function H({
123
123
  initialOpen: e = !1,
124
124
  open: n,
125
125
  onOpenChange: t
126
126
  } = {}) {
127
- const [o, l] = c.useState(e), [r, a] = c.useState(), [s, p] = c.useState(), u = n ?? o, d = t ?? l, m = k({
127
+ const [o, l] = c.useState(e), [r, a] = c.useState(), [s, f] = c.useState(), u = n ?? o, d = t ?? l, m = S({
128
128
  open: u,
129
129
  onOpenChange: d
130
- }), f = m.context, h = L(f, {
130
+ }), p = m.context, h = k(p, {
131
131
  enabled: n == null
132
- }), v = B(f, {
132
+ }), v = L(p, {
133
133
  outsidePress: !1,
134
134
  outsidePressEvent: "mousedown"
135
- }), N = V(f), b = $([h, v, N]);
135
+ }), N = V(p), b = $([h, v, N]);
136
136
  return c.useMemo(
137
137
  () => ({
138
138
  open: u,
@@ -142,36 +142,33 @@ function z({
142
142
  labelId: r,
143
143
  descriptionId: s,
144
144
  setLabelId: a,
145
- setDescriptionId: p
145
+ setDescriptionId: f
146
146
  }),
147
147
  [u, d, b, m, r, s]
148
148
  );
149
149
  }
150
150
  const g = () => {
151
- const e = c.useContext(I);
151
+ const e = c.useContext(T);
152
152
  if (e == null)
153
153
  throw new Error("Modal components must be wrapped in <Modal />");
154
154
  return e;
155
155
  };
156
- function T(e) {
157
- return x();
158
- }
159
- function Q({
156
+ function J({
160
157
  children: e,
161
158
  ...n
162
159
  }) {
163
- const t = z(n);
164
- return /* @__PURE__ */ i(I.Provider, { value: t, children: e });
160
+ const t = H(n);
161
+ return /* @__PURE__ */ i(T.Provider, { value: t, children: e });
165
162
  }
166
- const W = c.forwardRef(function(e, n) {
167
- const { context: t, ...o } = g(), l = F([o.refs.setFloating, n]);
163
+ const K = c.forwardRef(function(e, n) {
164
+ const { context: t, ...o } = g(), l = x([o.refs.setFloating, n]);
168
165
  if (!t.open)
169
166
  return null;
170
167
  const { overlayBackground: r, ...a } = e, s = y("grid place-items-center", {
171
168
  [`${r}`]: r,
172
169
  "bg-black sm:bg-black/[.8]": !r
173
170
  });
174
- return /* @__PURE__ */ i(O, { children: /* @__PURE__ */ i(P, { className: s, lockScroll: !0, children: /* @__PURE__ */ i(S, { context: t, children: /* @__PURE__ */ i(
171
+ return /* @__PURE__ */ i(F, { children: /* @__PURE__ */ i(O, { className: s, lockScroll: !0, children: /* @__PURE__ */ i(P, { context: t, children: /* @__PURE__ */ i(
175
172
  "div",
176
173
  {
177
174
  ref: l,
@@ -181,20 +178,20 @@ const W = c.forwardRef(function(e, n) {
181
178
  children: a.children
182
179
  }
183
180
  ) }) }) });
184
- }), ee = c.forwardRef(function({ children: e, ...n }, t) {
185
- const { setLabelId: o } = g(), l = T();
181
+ }), Q = c.forwardRef(function({ children: e, ...n }, t) {
182
+ const { setLabelId: o } = g(), l = R();
186
183
  return c.useLayoutEffect(() => (o(l), () => o(void 0)), [l, o]), /* @__PURE__ */ i("h1", { ...n, ref: t, id: l, children: e });
187
- }), ne = c.forwardRef(function({ children: e, ...n }, t) {
188
- const { setDescriptionId: o } = g(), l = T();
184
+ }), ee = c.forwardRef(function({ children: e, ...n }, t) {
185
+ const { setDescriptionId: o } = g(), l = R();
189
186
  return c.useLayoutEffect(() => (o(l), () => o(void 0)), [l, o]), /* @__PURE__ */ i("div", { ...n, ref: t, id: l, children: e });
190
- }), te = c.forwardRef(function(e, n) {
187
+ }), ne = c.forwardRef(function(e, n) {
191
188
  const { setOpen: t } = g(), { trigger: o, className: l, ...r } = e, a = c.useCallback(() => t(!1), [t]);
192
189
  return /* @__PURE__ */ i("div", { className: l, children: c.cloneElement(o, {
193
190
  ref: n,
194
191
  onClick: a,
195
192
  ...r
196
193
  }) });
197
- }), G = (e) => {
194
+ }), z = (e) => {
198
195
  let n = "";
199
196
  if (typeof e == "number" || typeof e == "string")
200
197
  n = "m-" + e;
@@ -203,7 +200,7 @@ const W = c.forwardRef(function(e, n) {
203
200
  (e == null ? void 0 : e.t) !== void 0 && t.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && t.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && t.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && t.push(`ml-${e.l}`), n = t.join(" ");
204
201
  }
205
202
  return n;
206
- }, oe = ({
203
+ }, te = ({
207
204
  children: e,
208
205
  fill: n,
209
206
  viewBox: t,
@@ -212,10 +209,10 @@ const W = c.forwardRef(function(e, n) {
212
209
  defaultClassName: r,
213
210
  spacing: a,
214
211
  title: s,
215
- semantic: p = !1,
212
+ semantic: f = !1,
216
213
  ...u
217
214
  }) => {
218
- const d = G(a), m = y(
215
+ const d = z(a), m = y(
219
216
  d,
220
217
  o || r
221
218
  );
@@ -228,34 +225,34 @@ const W = c.forwardRef(function(e, n) {
228
225
  viewBox: t || l,
229
226
  fill: n || "currentColor",
230
227
  role: "img",
231
- "aria-hidden": !p,
228
+ "aria-hidden": !f,
232
229
  focusable: !1,
233
230
  ...u,
234
231
  children: e
235
232
  }
236
233
  ),
237
- s && p && /* @__PURE__ */ i("span", { className: "sr-only", children: s })
234
+ s && f && /* @__PURE__ */ i("span", { className: "sr-only", children: s })
238
235
  ] });
239
236
  };
240
237
  /*!
241
- @versini/ui-private v1.4.13
238
+ @versini/ui-private v1.4.17
242
239
  © 2024 gizmette.com
243
240
  */
244
241
  try {
245
242
  window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
246
- version: "1.4.13",
247
- buildTime: "09/24/2024 07:45 PM EDT",
243
+ version: "1.4.17",
244
+ buildTime: "09/28/2024 06:29 PM EDT",
248
245
  homepage: "https://github.com/aversini/ui-components",
249
246
  license: "MIT"
250
247
  });
251
248
  } catch {
252
249
  }
253
250
  export {
254
- K as LiveRegion,
255
- Q as Modal,
256
- te as ModalClose,
257
- W as ModalContent,
258
- ne as ModalDescription,
259
- ee as ModalHeading,
260
- oe as SvgIcon
251
+ G as LiveRegion,
252
+ J as Modal,
253
+ ne as ModalClose,
254
+ K as ModalContent,
255
+ ee as ModalDescription,
256
+ Q as ModalHeading,
257
+ te as SvgIcon
261
258
  };
@@ -1,5 +1,5 @@
1
1
  import T, { useSyncExternalStore as Ce, useCallback as D, useEffect as R, useContext as O, useRef as f, useState as $, useLayoutEffect as U, useMemo as ie, useId as Ie, useReducer as Se } from "react";
2
- import { MODEL_GPT4 as Ee } from "./index.B5Wp8y85.js";
2
+ import { MODEL_GPT4 as Ee } from "./index.QOymzv8v.js";
3
3
  import l from "clsx";
4
4
  import { jsx as c, jsxs as w, Fragment as Ae } from "react/jsx-runtime";
5
5
  const _ = {
@@ -244,13 +244,13 @@ function Ht({
244
244
  }, [e, r]), [t ? JSON.parse(t) : null, a, o, n];
245
245
  }
246
246
  /*!
247
- @versini/ui-table v1.0.4
247
+ @versini/ui-table v1.0.10
248
248
  © 2024 gizmette.com
249
249
  */
250
250
  try {
251
251
  window.__VERSINI_UI_TABLE__ || (window.__VERSINI_UI_TABLE__ = {
252
- version: "1.0.4",
253
- buildTime: "09/24/2024 07:45 PM EDT",
252
+ version: "1.0.10",
253
+ buildTime: "09/28/2024 06:29 PM EDT",
254
254
  homepage: "https://github.com/aversini/ui-components",
255
255
  license: "MIT"
256
256
  });
@@ -565,13 +565,13 @@ const Be = (e) => {
565
565
  });
566
566
  de.displayName = "BaseButton";
567
567
  /*!
568
- @versini/ui-button v1.1.4
568
+ @versini/ui-button v1.1.10
569
569
  © 2024 gizmette.com
570
570
  */
571
571
  try {
572
572
  window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
573
- version: "1.1.4",
574
- buildTime: "09/24/2024 07:45 PM EDT",
573
+ version: "1.1.10",
574
+ buildTime: "09/28/2024 06:29 PM EDT",
575
575
  homepage: "https://github.com/aversini/ui-components",
576
576
  license: "MIT"
577
577
  });
@@ -699,13 +699,13 @@ const Xe = (e) => {
699
699
  ] });
700
700
  };
701
701
  /*!
702
- @versini/ui-private v1.4.13
702
+ @versini/ui-private v1.4.17
703
703
  © 2024 gizmette.com
704
704
  */
705
705
  try {
706
706
  window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
707
- version: "1.4.13",
708
- buildTime: "09/24/2024 07:45 PM EDT",
707
+ version: "1.4.17",
708
+ buildTime: "09/28/2024 06:29 PM EDT",
709
709
  homepage: "https://github.com/aversini/ui-components",
710
710
  license: "MIT"
711
711
  });
@@ -797,13 +797,13 @@ const Ke = ({
797
797
  }
798
798
  );
799
799
  /*!
800
- @versini/ui-icons v1.12.5
800
+ @versini/ui-icons v1.13.1
801
801
  © 2024 gizmette.com
802
802
  */
803
803
  try {
804
804
  window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
805
- version: "1.12.5",
806
- buildTime: "09/24/2024 07:45 PM EDT",
805
+ version: "1.13.1",
806
+ buildTime: "09/28/2024 06:29 PM EDT",
807
807
  homepage: "https://github.com/aversini/ui-components",
808
808
  license: "MIT"
809
809
  });
@@ -947,13 +947,13 @@ const I = T.createContext({
947
947
  }
948
948
  );
949
949
  /*!
950
- @versini/ui-textarea v1.0.3
950
+ @versini/ui-textarea v1.0.7
951
951
  © 2024 gizmette.com
952
952
  */
953
953
  try {
954
954
  window.__VERSINI_UI_TEXTAREA__ || (window.__VERSINI_UI_TEXTAREA__ = {
955
- version: "1.0.3",
956
- buildTime: "09/24/2024 07:45 PM EDT",
955
+ version: "1.0.7",
956
+ buildTime: "09/27/2024 11:55 AM EDT",
957
957
  homepage: "https://github.com/aversini/ui-components",
958
958
  license: "MIT"
959
959
  });
@@ -1151,13 +1151,13 @@ const pt = (e) => {
1151
1151
  return r;
1152
1152
  };
1153
1153
  /*!
1154
- @versini/ui-private v1.4.13
1154
+ @versini/ui-private v1.4.17
1155
1155
  © 2024 gizmette.com
1156
1156
  */
1157
1157
  try {
1158
1158
  window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
1159
- version: "1.4.13",
1160
- buildTime: "09/24/2024 07:45 PM EDT",
1159
+ version: "1.4.17",
1160
+ buildTime: "09/27/2024 11:55 AM EDT",
1161
1161
  homepage: "https://github.com/aversini/ui-components",
1162
1162
  license: "MIT"
1163
1163
  });