@altimateai/ui-components 0.0.76 → 0.0.77-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 +1 -1
- package/dist/Stack.js +53 -27
- package/dist/ToggleGroup.js +2 -2
- package/dist/lineage/index.js +367 -367
- package/dist/main.js +1 -1
- package/dist/shadcn/index.d.ts +24 -12
- package/dist/shadcn/index.js +1 -1
- package/dist/storybook/Typography.stories.tsx +94 -93
- package/package.json +1 -1
package/dist/CoachForm.js
CHANGED
|
@@ -43731,7 +43731,7 @@ const dG = /* @__PURE__ */ mu(hG), H3 = ({ artifacts: e }) => {
|
|
|
43731
43731
|
e.role === "assistant" && e.todos && e.todos.length > 0 && /* @__PURE__ */ k.jsx("div", { id: `message-${e.id}-todos`, children: /* @__PURE__ */ k.jsx(j3, { todos: e.todos }) }),
|
|
43732
43732
|
e.role === "assistant" && e.confidence_str && /* @__PURE__ */ k.jsx(pu, { className: "al-my-3", variant: "warning", children: /* @__PURE__ */ k.jsxs(Ae, { gap: "xl", align: "center", children: [
|
|
43733
43733
|
/* @__PURE__ */ k.jsx(_v, { className: "al-min-h-6 al-min-w-6" }),
|
|
43734
|
-
/* @__PURE__ */ k.jsx(Ls, {
|
|
43734
|
+
/* @__PURE__ */ k.jsx(Ls, { className: "al-flex-1", children: e.confidence_str })
|
|
43735
43735
|
] }) }),
|
|
43736
43736
|
/* @__PURE__ */ k.jsx("div", { id: `message-${e.id}-content`, children: /* @__PURE__ */ k.jsx(lu, { content: e.content || "", id: e.id }) }),
|
|
43737
43737
|
e.artifacts && /* @__PURE__ */ k.jsx("div", { id: `message-${e.id}-artifacts`, children: /* @__PURE__ */ k.jsx(H3, { artifacts: e.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
|
-
|
|
6921
|
-
|
|
6922
|
-
|
|
6923
|
-
|
|
6924
|
-
|
|
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"
|
|
6929
|
-
h2: ue({ variant: "h2", weight: "semibold"
|
|
6930
|
-
h3: ue({ variant: "h3", weight: "semibold"
|
|
6931
|
-
h4: ue({ variant: "h4", weight: "semibold"
|
|
6932
|
-
h5: ue({ variant: "h5", weight: "semibold"
|
|
6933
|
-
h6: ue({ variant: "h6", weight: "semibold"
|
|
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
|
-
|
|
6950
|
-
|
|
6951
|
-
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
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,
|
package/dist/ToggleGroup.js
CHANGED
|
@@ -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, {
|
|
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, {
|
|
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
|
{
|