@altimateai/ui-components 0.0.69-beta1 → 0.0.69
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/{Button-Bsgqi8kG.d.ts → Button-42Dj_nRE.d.ts} +12 -5
- package/dist/CoachForm.js +4 -4
- package/dist/IconEye.js +11 -0
- package/dist/Stack.js +362 -364
- package/dist/Switch.js +1 -1
- package/dist/ToggleGroup.js +70 -80
- package/dist/chatbotV2/index.d.ts +2 -2
- package/dist/dayjs.min.js +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/lineage/index.js +795 -801
- package/dist/redux-toolkit.modern.js +12 -2
- package/dist/shadcn/index.d.ts +23 -28
- package/dist/shadcn/index.js +1118 -1110
- package/dist/storybook/Carousel.stories.tsx +1 -1
- package/dist/storybook/Input.stories.tsx +14 -17
- package/dist/{types-CPALoG7v.d.ts → types-C2UJ4TLI.d.ts} +2 -0
- package/package.json +1 -1
|
@@ -6,16 +6,23 @@ declare const buttonVariants: (props?: ({
|
|
|
6
6
|
variant?: "link" | "default" | "destructive" | "outline" | "success" | "secondary" | "ghost" | null | undefined;
|
|
7
7
|
size?: "xs" | "sm" | "lg" | "default" | "icon" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
+
type ButtonSize = "default" | "sm" | "xs" | "lg" | "icon";
|
|
9
10
|
type BaseButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & Omit<VariantProps<typeof buttonVariants>, "size"> & {
|
|
10
11
|
asChild?: boolean;
|
|
11
12
|
};
|
|
12
|
-
type ButtonProps = BaseButtonProps & ({
|
|
13
|
+
type ButtonProps<TSize extends ButtonSize | undefined = undefined> = BaseButtonProps & ([TSize] extends ["icon"] ? {
|
|
13
14
|
size: "icon";
|
|
14
15
|
title: string;
|
|
15
|
-
}
|
|
16
|
-
size?:
|
|
16
|
+
} : [TSize] extends [undefined] ? {
|
|
17
|
+
size?: Exclude<ButtonSize, "icon">;
|
|
18
|
+
title?: string;
|
|
19
|
+
} : {
|
|
20
|
+
size?: TSize;
|
|
17
21
|
title?: string;
|
|
18
22
|
});
|
|
19
|
-
|
|
23
|
+
type GenericButtonComponent = <TSize extends ButtonSize | undefined = undefined>(props: ButtonProps<TSize> & React.RefAttributes<HTMLButtonElement>) => React.ReactElement | null;
|
|
24
|
+
declare const Button: GenericButtonComponent & {
|
|
25
|
+
displayName?: string;
|
|
26
|
+
};
|
|
20
27
|
|
|
21
|
-
export { type ButtonProps as B, Button as a,
|
|
28
|
+
export { type ButtonProps as B, Button as a, type ButtonSize as b, buttonVariants as c };
|
package/dist/CoachForm.js
CHANGED
|
@@ -3,8 +3,8 @@ var k3 = (t, e, n) => e in t ? E3(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var ae = (t, e, n) => k3(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
4
|
import { j as E, E as S3, D as w3, t as A3, c as v3, b as L3, u as I3, R as N3, v as Xd, w as R3, x as D3, g as O3, y as M3 } from "./index2.js";
|
|
5
5
|
import zl, { forwardRef as Hp, useRef as Er, useEffect as xe, lazy as B3, Suspense as P3, useState as _e, createContext as F3, useContext as $3, useReducer as H3, useImperativeHandle as z3, useCallback as ji, useMemo as U3, useId as go } from "react";
|
|
6
|
-
import {
|
|
7
|
-
import { an as Q3, aq as Z3, ar as J3, as as t_, au as e_, av as n_, at as r_, ax as i_, aw as a_, b3 as zu, b4 as Ul, b5 as s_, u as sh, A as nl, F as bo, a as Uu, N as Up, ak as Qa, S as o_, y as l_,
|
|
6
|
+
import { g as Xe, c as cn, B as ee, as as j3, T as si, X as Tt, a4 as kn, a5 as eh, aj as zp, a1 as W3, a7 as q3, a6 as Y3, I as V3, Y as Wi, M as nh, N as rh, ao as ih, aq as ah, ar as G3, ap as X3, a8 as K3, a0 as Pa } from "./Stack.js";
|
|
7
|
+
import { an as Q3, aq as Z3, ar as J3, as as t_, au as e_, av as n_, at as r_, ax as i_, aw as a_, b3 as zu, b4 as Ul, b5 as s_, u as sh, A as nl, F as bo, a as Uu, N as Up, ak as Qa, S as o_, y as l_, f as u_, E as c_, J as h_, b1 as d_, b2 as f_, B as jp, aJ as p_, aW as m_, aX as g_, aY as jl, b6 as Kd, aZ as b_, a_ as y_, Q as x_, T as C_, U as __, V as Wl, a1 as T_, a3 as E_, a2 as k_, a5 as S_, a7 as w_, a8 as A_, a9 as v_, aa as L_, ab as I_, b7 as N_, b8 as R_, aQ as D_, aR as O_, aS as M_, aU as B_, aT as P_, aV as F_, af as $_, ag as H_, ah as z_, ai as U_, O as j_ } from "./ToggleGroup.js";
|
|
8
8
|
import { z as St } from "zod";
|
|
9
9
|
import { c as qr, g as oh, s as ne, l as rl, u as ps, A as In, I as W_, m as Wp, k as q_, t as Y_ } from "./redux-toolkit.modern.js";
|
|
10
10
|
import { createPortal as V_ } from "react-dom";
|
|
@@ -37002,14 +37002,14 @@ const V$ = /* @__PURE__ */ oh(Y$), m3 = ({ artifacts: t }) => {
|
|
|
37002
37002
|
handleSavePrompt: r,
|
|
37003
37003
|
showSavePromptButton: i
|
|
37004
37004
|
}) => {
|
|
37005
|
-
const a = t.role === "assistant", { currentSessionId: s, loadingState: o, urls: l } = We();
|
|
37005
|
+
const a = t.role === "assistant", { currentSessionId: s, loadingState: o, urls: l, classNames: u = {} } = We();
|
|
37006
37006
|
return /* @__PURE__ */ E.jsxs(Tt, { gap: "sm", direction: "column", children: [
|
|
37007
37007
|
/* @__PURE__ */ E.jsx(Tt, { gap: "sm", justify: a ? "start" : "end", children: t.attachments && t.attachments.length > 0 && /* @__PURE__ */ E.jsx("div", { id: `message-${t.id}-attachments`, children: /* @__PURE__ */ E.jsx(yH, { attachments: t.attachments }) }) }),
|
|
37008
37008
|
/* @__PURE__ */ E.jsxs(
|
|
37009
37009
|
"div",
|
|
37010
37010
|
{
|
|
37011
37011
|
id: `message-${t.id}`,
|
|
37012
|
-
className: `al-flex al-items-start al-gap-2 ${a ? "" : "al-justify-end"}`,
|
|
37012
|
+
className: `al-flex al-items-start al-gap-2 ${a ? "" : "al-justify-end"} ${u.messageItem ?? ""}`,
|
|
37013
37013
|
role: "article",
|
|
37014
37014
|
"aria-label": `${a ? "Assistant" : "User"} message`,
|
|
37015
37015
|
children: [
|
package/dist/IconEye.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { c as e } from "./Stack.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license @tabler/icons-react v3.34.1 - MIT
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const c = [["path", { d: "M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0", key: "svg-0" }], ["path", { d: "M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6", key: "svg-1" }]], t = e("outline", "eye", "Eye", c);
|
|
9
|
+
export {
|
|
10
|
+
t as I
|
|
11
|
+
};
|