@altimateai/ui-components 0.0.74 → 0.0.75-beta.1

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/CoachForm.js CHANGED
@@ -37106,7 +37106,7 @@ const Y$ = /* @__PURE__ */ lh(q$), g3 = ({ artifacts: t }) => {
37106
37106
  t.role === "assistant" && t.todos && t.todos.length > 0 && /* @__PURE__ */ k.jsx("div", { id: `message-${t.id}-todos`, children: /* @__PURE__ */ k.jsx(p3, { todos: t.todos }) }),
37107
37107
  t.role === "assistant" && t.confidence_str && /* @__PURE__ */ k.jsx(nl, { className: "al-my-3", variant: "warning", children: /* @__PURE__ */ k.jsxs(Tt, { gap: "xl", align: "center", children: [
37108
37108
  /* @__PURE__ */ k.jsx(G_, { className: "al-min-h-6 al-min-w-6" }),
37109
- /* @__PURE__ */ k.jsx(Pa, { variant: "body", className: "al-flex-1", children: t.confidence_str })
37109
+ /* @__PURE__ */ k.jsx(Pa, { className: "al-flex-1", children: t.confidence_str })
37110
37110
  ] }) }),
37111
37111
  /* @__PURE__ */ k.jsx("div", { id: `message-${t.id}-content`, children: /* @__PURE__ */ k.jsx(tl, { content: t.content || "", id: t.id }) }),
37112
37112
  t.artifacts && /* @__PURE__ */ k.jsx("div", { id: `message-${t.id}-artifacts`, children: /* @__PURE__ */ k.jsx(g3, { artifacts: t.artifacts }) }),
package/dist/Stack.js CHANGED
@@ -6907,31 +6907,42 @@ const ue = Gt("", {
6907
6907
  h6: "al-text-caption",
6908
6908
  subheading: "al-text-subheading",
6909
6909
  body: "al-text-body",
6910
- caption: "al-text-caption"
6910
+ caption: "al-text-caption",
6911
+ button: "",
6912
+ // Button uses size for styling
6913
+ "table-header": "al-text-table-header",
6914
+ placeholder: ""
6915
+ // Placeholder uses size for styling
6911
6916
  },
6912
6917
  weight: {
6913
- light: "al-font-light",
6914
6918
  regular: "al-font-regular",
6915
6919
  medium: "al-font-medium",
6916
- semibold: "al-font-semibold",
6917
- bold: "al-font-bold"
6920
+ semibold: "al-font-semibold"
6918
6921
  },
6919
6922
  size: {
6920
- xs: "al-text-xs",
6921
- sm: "al-text-sm",
6922
- md: "al-text-md",
6923
- lg: "al-text-lg",
6924
- xl: "al-text-xl"
6923
+ // Body sizes
6924
+ lg: "al-text-body-lg",
6925
+ regular: "al-text-body-regular",
6926
+ sm: "al-text-body-sm",
6927
+ xs: "al-text-body-xs",
6928
+ xxs: "al-text-body-xxs",
6929
+ // Button sizes
6930
+ "button-xs": "al-text-button-xs",
6931
+ "button-sm": "al-text-button-sm",
6932
+ "button-md": "al-text-button-md",
6933
+ // Placeholder sizes
6934
+ "placeholder-regular": "al-text-placeholder-regular al-italic",
6935
+ "placeholder-large": "al-text-placeholder-large al-italic"
6925
6936
  }
6926
6937
  }
6927
6938
  }), pd = () => ({
6928
- h1: ue({ variant: "h1", weight: "semibold", size: "xl" }),
6929
- h2: ue({ variant: "h2", weight: "semibold", size: "lg" }),
6930
- h3: ue({ variant: "h3", weight: "semibold", size: "md" }),
6931
- h4: ue({ variant: "h4", weight: "semibold", size: "md" }),
6932
- h5: ue({ variant: "h5", weight: "semibold", size: "sm" }),
6933
- h6: ue({ variant: "h6", weight: "semibold", size: "sm" }),
6934
- body: ue({ variant: "body" }),
6939
+ h1: ue({ variant: "h1", weight: "semibold" }),
6940
+ h2: ue({ variant: "h2", weight: "semibold" }),
6941
+ h3: ue({ variant: "h3", weight: "semibold" }),
6942
+ h4: ue({ variant: "h4", weight: "semibold" }),
6943
+ h5: ue({ variant: "h5", weight: "semibold" }),
6944
+ h6: ue({ variant: "h6", weight: "semibold" }),
6945
+ body: ue({ variant: "body", weight: "regular", size: "regular" }),
6935
6946
  // Non-typography classes
6936
6947
  link: "al-text-blue-500 al-underline",
6937
6948
  list: "al-list-disc al-ml-4 al-mb-4",
@@ -6945,17 +6956,32 @@ const ue = Gt("", {
6945
6956
  h4: "h4",
6946
6957
  subheading: "h5",
6947
6958
  body: "p",
6948
- caption: "span"
6949
- }, md = ({
6950
- variant: e = "body",
6951
- children: t,
6952
- className: n,
6953
- weight: r,
6954
- size: o,
6955
- role: s
6956
- }) => {
6957
- const a = Yu[e];
6958
- return /* @__PURE__ */ g.jsx(a, { className: M(ue({ variant: e, weight: r, size: o }), n), role: s, children: t });
6959
+ caption: "span",
6960
+ button: "span",
6961
+ "table-header": "span",
6962
+ placeholder: "span"
6963
+ }, md = (e) => {
6964
+ const { variant: t = "body", children: n, className: r, role: o } = e;
6965
+ let s, a;
6966
+ if (t === "h1" || t === "h2" || t === "h3" || t === "h4" || t === "subheading")
6967
+ s = e.weight ?? "semibold", a = void 0;
6968
+ else if (t === "table-header")
6969
+ s = e.weight ?? "medium", a = void 0;
6970
+ else if (t === "body") {
6971
+ const c = e;
6972
+ s = c.weight ?? "regular", a = c.size ?? "regular";
6973
+ } else if (t === "caption") {
6974
+ const c = e;
6975
+ s = c.weight ?? "regular", a = c.size;
6976
+ } else if (t === "button") {
6977
+ const c = e;
6978
+ s = "medium", a = c.size ? `button-${c.size}` : "button-sm";
6979
+ } else {
6980
+ const c = e;
6981
+ s = "regular", a = c.size ? `placeholder-${c.size}` : "placeholder-large";
6982
+ }
6983
+ const i = Yu[t];
6984
+ return /* @__PURE__ */ g.jsx(i, { className: M(ue({ variant: t, weight: s, size: a }), r), role: o, children: n });
6959
6985
  }, gd = H(function({
6960
6986
  children: t,
6961
6987
  wrap: n = !1,
@@ -3873,10 +3873,10 @@ const kp = ({
3873
3873
  filter: C ? (O, he) => O.toLowerCase().includes(he.toLowerCase()) ? 1 : 0 : void 0,
3874
3874
  children: [
3875
3875
  d && p && /* @__PURE__ */ u.jsxs("div", { className: "al-flex al-justify-between al-items-center al-p-2 al-border-b", children: [
3876
- /* @__PURE__ */ u.jsx(ho, { variant: "body", children: o ?? r }),
3876
+ /* @__PURE__ */ u.jsx(ho, { children: o ?? r }),
3877
3877
  /* @__PURE__ */ u.jsx(xt, { onClick: $, size: "sm", children: "Apply" })
3878
3878
  ] }),
3879
- Q && /* @__PURE__ */ u.jsx("div", { className: "al-flex al-items-center al-justify-center al-p-2 al-text-red-600 al-bg-red-50 al-border-b", children: /* @__PURE__ */ u.jsx(ho, { variant: "body", className: "al-text-center al-text-sm", children: "At least one item must be selected." }) }),
3879
+ Q && /* @__PURE__ */ u.jsx("div", { className: "al-flex al-items-center al-justify-center al-p-2 al-text-red-600 al-bg-red-50 al-border-b", children: /* @__PURE__ */ u.jsx(ho, { className: "al-text-center al-text-sm", children: "At least one item must be selected." }) }),
3880
3880
  /* @__PURE__ */ u.jsx(
3881
3881
  ys,
3882
3882
  {