@gentiq/ui 1.0.0-alpha.5 → 1.0.0-alpha.7
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/{MessageEditor-CTATfUm3.js → MessageEditor-thFldVmz.js} +1 -1
- package/dist/{VoiceInput-CYuGXRYZ.js → VoiceInput-XbeKOMjo.js} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +2 -2
- package/dist/internal.d.ts +1 -1
- package/dist/internal.es.js +2 -2
- package/dist/{shared-BPpDLW8N.js → shared-BtZa4J_w.js} +16 -34
- package/dist/{shared-Yglb7Id_.js → shared-CDBfvRf2.js} +862 -834
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import { useGentiqTranslation as a, MessageEdit as t } from "@gentiq/react";
|
|
4
|
-
import { B as s } from "./shared-
|
|
4
|
+
import { B as s } from "./shared-BtZa4J_w.js";
|
|
5
5
|
function d() {
|
|
6
6
|
const { t: n } = a(["chat"]);
|
|
7
7
|
return /* @__PURE__ */ r(t.Root, { className: "ms-auto flex w-full max-w-[88%] flex-col gap-2 rounded-lg border border-border bg-background p-3 md:max-w-[78%]", children: [
|
|
@@ -3,8 +3,8 @@ import { jsxs as z, jsx as e, Fragment as k } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState as L, useRef as P, useEffect as U } from "react";
|
|
4
4
|
import { XIcon as X, Loader2Icon as V, SquareIcon as J } from "lucide-react";
|
|
5
5
|
import { useGentiqTranslation as q, useComposerVoice as y, Composer as S, useComposer as K } from "@gentiq/react";
|
|
6
|
-
import { P as H, a as O } from "./shared-
|
|
7
|
-
import { c as Q } from "./shared-
|
|
6
|
+
import { P as H, a as O } from "./shared-CDBfvRf2.js";
|
|
7
|
+
import { c as Q } from "./shared-BtZa4J_w.js";
|
|
8
8
|
function ce() {
|
|
9
9
|
const { t: n } = q("chat"), i = y(), c = i.status === "transcribing";
|
|
10
10
|
return /* @__PURE__ */ z("div", { className: "flex min-h-[40px] min-w-0 flex-1 items-center gap-2 md:min-h-[44px]", children: [
|
package/dist/index.d.ts
CHANGED
|
@@ -817,7 +817,7 @@ declare type LoaderProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
817
817
|
size?: number;
|
|
818
818
|
/**
|
|
819
819
|
* Indicator variant. Retained for compatibility with custom renderers;
|
|
820
|
-
* Gentiq's built-in loader renders
|
|
820
|
+
* Gentiq's built-in loader renders a three-dot acrobatic loop.
|
|
821
821
|
*/
|
|
822
822
|
variant?: string;
|
|
823
823
|
};
|
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { A as s, C as t, b as o, c as i, d as n, e as r, f as u, g, D as c, F as p, h, G as S, i as C, j as P, k as l, M as m, l as d, m as T, n as q, o as Q, P as f, Q as A, p as G, R as M, q as R, r as U, s as x, S as B, t as b, u as v, v as w, w as D, T as I, x as y, U as F, y as L, W, z as j, B as k, E, H as z } from "./shared-
|
|
3
|
-
import { T as O, j as V, i as J } from "./shared-
|
|
2
|
+
import { A as s, C as t, b as o, c as i, d as n, e as r, f as u, g, D as c, F as p, h, G as S, i as C, j as P, k as l, M as m, l as d, m as T, n as q, o as Q, P as f, Q as A, p as G, R as M, q as R, r as U, s as x, S as B, t as b, u as v, v as w, w as D, T as I, x as y, U as F, y as L, W, z as j, B as k, E, H as z } from "./shared-CDBfvRf2.js";
|
|
3
|
+
import { T as O, j as V, i as J } from "./shared-BtZa4J_w.js";
|
|
4
4
|
export {
|
|
5
5
|
s as AppSidebar,
|
|
6
6
|
t as Chat,
|
package/dist/internal.d.ts
CHANGED
|
@@ -470,7 +470,7 @@ declare type LoaderProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
470
470
|
size?: number;
|
|
471
471
|
/**
|
|
472
472
|
* Indicator variant. Retained for compatibility with custom renderers;
|
|
473
|
-
* Gentiq's built-in loader renders
|
|
473
|
+
* Gentiq's built-in loader renders a three-dot acrobatic loop.
|
|
474
474
|
*/
|
|
475
475
|
variant?: string;
|
|
476
476
|
};
|
package/dist/internal.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { T as g, i as b, B as h, j as m, c as r } from "./shared-
|
|
3
|
-
import { a1 as H, h as B, C as R, b as j, a as O, D as P, a2 as Q, e as q, _ as A, $ as F, f as G, g as U, d as V, l as W, n as X, o as J, m as K, N as Y, G as Z, L as $, a3 as ee, H as ae, K as te, M as re, I as ie, J as oe, V as se, W as ne, Z as de, X as le, Y as ce, a4 as ue, x as ge, F as be, w as he, a0 as me, y as pe, u as fe } from "./shared-
|
|
2
|
+
import { T as g, i as b, B as h, j as m, c as r } from "./shared-BtZa4J_w.js";
|
|
3
|
+
import { a1 as H, h as B, C as R, b as j, a as O, D as P, a2 as Q, e as q, _ as A, $ as F, f as G, g as U, d as V, l as W, n as X, o as J, m as K, N as Y, G as Z, L as $, a3 as ee, H as ae, K as te, M as re, I as ie, J as oe, V as se, W as ne, Z as de, X as le, Y as ce, a4 as ue, x as ge, F as be, w as he, a0 as me, y as pe, u as fe } from "./shared-BtZa4J_w.js";
|
|
4
4
|
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
5
5
|
import { Monitor as l, Moon as p, Sun as f, CheckIcon as k } from "lucide-react";
|
|
6
6
|
import { useGentiqTranslation as x, useTheme as v } from "@gentiq/react";
|
|
@@ -208,27 +208,9 @@ function N() {
|
|
|
208
208
|
const { t } = L("common");
|
|
209
209
|
return /* @__PURE__ */ a("span", { className: "sr-only", children: t("close") });
|
|
210
210
|
}
|
|
211
|
-
const E = () => /* @__PURE__ */ a(S, { children: [0, 1, 2].map((t) => /* @__PURE__ */ a(
|
|
212
|
-
"span",
|
|
213
|
-
{
|
|
214
|
-
className: "gentiq-loader-dot size-2 rounded-full bg-primary/70",
|
|
215
|
-
style: {
|
|
216
|
-
animation: "gentiq-typing-bounce 1.2s ease-in-out infinite",
|
|
217
|
-
animationDelay: `${t * 0.18}s`
|
|
218
|
-
}
|
|
219
|
-
},
|
|
220
|
-
t
|
|
221
|
-
)) }), h2 = ({ className: t, variant: e, ...o }) => {
|
|
211
|
+
const E = () => /* @__PURE__ */ a(S, { children: [0, 1, 2].map((t) => /* @__PURE__ */ a("span", { className: "gentiq-loader-dot" }, t)) }), h2 = ({ className: t, variant: e, ...o }) => {
|
|
222
212
|
const s = j().Loader;
|
|
223
|
-
return s ? /* @__PURE__ */ a(s, { className: t, variant: e, ...o }) : /* @__PURE__ */ a(
|
|
224
|
-
"div",
|
|
225
|
-
{
|
|
226
|
-
"data-gentiq-loader": "dots",
|
|
227
|
-
className: n("flex items-center gap-1.5 px-1 py-3", t),
|
|
228
|
-
...o,
|
|
229
|
-
children: /* @__PURE__ */ a(E, {})
|
|
230
|
-
}
|
|
231
|
-
);
|
|
213
|
+
return s ? /* @__PURE__ */ a(s, { className: t, variant: e, ...o }) : /* @__PURE__ */ a("div", { "data-gentiq-loader": "dots", className: n("relative w-8 h-8", t), ...o, children: /* @__PURE__ */ a(E, {}) });
|
|
232
214
|
};
|
|
233
215
|
function O({ delayDuration: t = 400, ...e }) {
|
|
234
216
|
return /* @__PURE__ */ a(u.Provider, { "data-slot": "tooltip-provider", delayDuration: t, ...e });
|
|
@@ -391,12 +373,12 @@ function R2(t, e) {
|
|
|
391
373
|
function V2(t) {
|
|
392
374
|
let e = null, o = 1 / 0;
|
|
393
375
|
for (const r of t) {
|
|
394
|
-
const s =
|
|
376
|
+
const s = Q(r.remaining, r.amount);
|
|
395
377
|
s < o && (e = r, o = s);
|
|
396
378
|
}
|
|
397
379
|
return e;
|
|
398
380
|
}
|
|
399
|
-
function
|
|
381
|
+
function Q(t, e) {
|
|
400
382
|
return e <= 0 ? 0 : Math.max(0, Math.min(100, t / e * 100));
|
|
401
383
|
}
|
|
402
384
|
function j2(t, e) {
|
|
@@ -409,17 +391,17 @@ function A2(t) {
|
|
|
409
391
|
function F2(t) {
|
|
410
392
|
return t > 60 ? "border-success/70" : t > 20 ? "border-warning/70" : "border-destructive/70";
|
|
411
393
|
}
|
|
412
|
-
const
|
|
394
|
+
const U = g(
|
|
413
395
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
414
|
-
),
|
|
396
|
+
), $ = k.forwardRef(({ className: t, ...e }, o) => /* @__PURE__ */ a(
|
|
415
397
|
"label",
|
|
416
398
|
{
|
|
417
399
|
ref: o,
|
|
418
|
-
className: n(
|
|
400
|
+
className: n(U(), t),
|
|
419
401
|
...e
|
|
420
402
|
}
|
|
421
403
|
));
|
|
422
|
-
|
|
404
|
+
$.displayName = "Label";
|
|
423
405
|
function B2({ className: t, type: e, ...o }) {
|
|
424
406
|
return /* @__PURE__ */ a(
|
|
425
407
|
"input",
|
|
@@ -443,7 +425,7 @@ function E2(t) {
|
|
|
443
425
|
function O2(t) {
|
|
444
426
|
return /* @__PURE__ */ a(d.Value, { "data-slot": "select-value", ...t });
|
|
445
427
|
}
|
|
446
|
-
function
|
|
428
|
+
function Q2({
|
|
447
429
|
className: t,
|
|
448
430
|
size: e = "default",
|
|
449
431
|
children: o,
|
|
@@ -468,7 +450,7 @@ function $2({
|
|
|
468
450
|
}
|
|
469
451
|
);
|
|
470
452
|
}
|
|
471
|
-
function
|
|
453
|
+
function U2({
|
|
472
454
|
className: t,
|
|
473
455
|
children: e,
|
|
474
456
|
position: o = "popper",
|
|
@@ -503,7 +485,7 @@ function Q2({
|
|
|
503
485
|
}
|
|
504
486
|
) });
|
|
505
487
|
}
|
|
506
|
-
function
|
|
488
|
+
function $2({
|
|
507
489
|
className: t,
|
|
508
490
|
children: e,
|
|
509
491
|
...o
|
|
@@ -595,13 +577,13 @@ export {
|
|
|
595
577
|
c2 as D,
|
|
596
578
|
R as E,
|
|
597
579
|
q2 as F,
|
|
598
|
-
|
|
580
|
+
$ as G,
|
|
599
581
|
E2 as H,
|
|
600
|
-
|
|
582
|
+
Q2 as I,
|
|
601
583
|
O2 as J,
|
|
602
|
-
|
|
584
|
+
U2 as K,
|
|
603
585
|
h2 as L,
|
|
604
|
-
|
|
586
|
+
$2 as M,
|
|
605
587
|
B2 as N,
|
|
606
588
|
S2 as O,
|
|
607
589
|
B as P,
|
|
@@ -646,5 +628,5 @@ export {
|
|
|
646
628
|
R2 as w,
|
|
647
629
|
M2 as x,
|
|
648
630
|
P2 as y,
|
|
649
|
-
|
|
631
|
+
Q as z
|
|
650
632
|
};
|