@altimateai/ui-components 0.0.69-beta.2 → 0.0.69-beta1

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.
@@ -6,23 +6,16 @@ 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";
10
9
  type BaseButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & Omit<VariantProps<typeof buttonVariants>, "size"> & {
11
10
  asChild?: boolean;
12
11
  };
13
- type ButtonProps<TSize extends ButtonSize | undefined = undefined> = BaseButtonProps & ([TSize] extends ["icon"] ? {
12
+ type ButtonProps = BaseButtonProps & ({
14
13
  size: "icon";
15
14
  title: string;
16
- } : [TSize] extends [undefined] ? {
17
- size?: Exclude<ButtonSize, "icon">;
18
- title?: string;
19
- } : {
20
- size?: TSize;
15
+ } | {
16
+ size?: "default" | "sm" | "xs" | "lg";
21
17
  title?: string;
22
18
  });
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
- };
19
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
27
20
 
28
- export { type ButtonProps as B, Button as a, type ButtonSize as b, buttonVariants as c };
21
+ export { type ButtonProps as B, Button as a, buttonVariants as b };
package/dist/CoachForm.js CHANGED
@@ -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, classNames: u = {} } = We();
37005
+ const a = t.role === "assistant", { currentSessionId: s, loadingState: o, urls: l } = 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"} ${u.messageItem}`,
37012
+ className: `al-flex al-items-start al-gap-2 ${a ? "" : "al-justify-end"}`,
37013
37013
  role: "article",
37014
37014
  "aria-label": `${a ? "Assistant" : "User"} message`,
37015
37015
  children: [