@altimateai/ui-components 0.0.76 → 0.0.77-beta.2
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 +64 -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 +28 -12
- package/dist/shadcn/index.js +1 -1
- package/dist/storybook/Typography.stories.tsx +120 -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,46 @@ 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
|
|
6916
|
+
"page-heading": "al-text-h2",
|
|
6917
|
+
// Semantic variant for page headings (fixed h2 + semibold)
|
|
6918
|
+
"section-heading": "al-text-h3"
|
|
6919
|
+
// Semantic variant for section headings (fixed h3 + semibold)
|
|
6911
6920
|
},
|
|
6912
6921
|
weight: {
|
|
6913
|
-
light: "al-font-light",
|
|
6914
6922
|
regular: "al-font-regular",
|
|
6915
6923
|
medium: "al-font-medium",
|
|
6916
|
-
semibold: "al-font-semibold"
|
|
6917
|
-
bold: "al-font-bold"
|
|
6924
|
+
semibold: "al-font-semibold"
|
|
6918
6925
|
},
|
|
6919
6926
|
size: {
|
|
6920
|
-
|
|
6921
|
-
|
|
6922
|
-
|
|
6923
|
-
|
|
6924
|
-
|
|
6927
|
+
// Body sizes
|
|
6928
|
+
lg: "al-text-body-lg",
|
|
6929
|
+
regular: "al-text-body-regular",
|
|
6930
|
+
sm: "al-text-body-sm",
|
|
6931
|
+
xs: "al-text-body-xs",
|
|
6932
|
+
xxs: "al-text-body-xxs",
|
|
6933
|
+
// Button sizes
|
|
6934
|
+
"button-xs": "al-text-button-xs",
|
|
6935
|
+
"button-sm": "al-text-button-sm",
|
|
6936
|
+
"button-md": "al-text-button-md",
|
|
6937
|
+
// Placeholder sizes
|
|
6938
|
+
"placeholder-regular": "al-text-placeholder-regular al-italic",
|
|
6939
|
+
"placeholder-large": "al-text-placeholder-large al-italic"
|
|
6925
6940
|
}
|
|
6926
6941
|
}
|
|
6927
6942
|
}), 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" }),
|
|
6943
|
+
h1: ue({ variant: "h1", weight: "semibold" }),
|
|
6944
|
+
h2: ue({ variant: "h2", weight: "semibold" }),
|
|
6945
|
+
h3: ue({ variant: "h3", weight: "semibold" }),
|
|
6946
|
+
h4: ue({ variant: "h4", weight: "semibold" }),
|
|
6947
|
+
h5: ue({ variant: "h5", weight: "semibold" }),
|
|
6948
|
+
h6: ue({ variant: "h6", weight: "semibold" }),
|
|
6949
|
+
body: ue({ variant: "body", weight: "regular", size: "regular" }),
|
|
6935
6950
|
// Non-typography classes
|
|
6936
6951
|
link: "al-text-blue-500 al-underline",
|
|
6937
6952
|
list: "al-list-disc al-ml-4 al-mb-4",
|
|
@@ -6945,17 +6960,39 @@ const ue = Gt("", {
|
|
|
6945
6960
|
h4: "h4",
|
|
6946
6961
|
subheading: "h5",
|
|
6947
6962
|
body: "p",
|
|
6948
|
-
caption: "span"
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
role:
|
|
6956
|
-
|
|
6957
|
-
const
|
|
6958
|
-
|
|
6963
|
+
caption: "span",
|
|
6964
|
+
button: "span",
|
|
6965
|
+
"table-header": "span",
|
|
6966
|
+
placeholder: "span",
|
|
6967
|
+
"page-heading": "h2",
|
|
6968
|
+
"section-heading": "h3"
|
|
6969
|
+
}, md = (e) => {
|
|
6970
|
+
const { variant: t = "body", children: n, className: r, role: o } = e;
|
|
6971
|
+
let s, a;
|
|
6972
|
+
const i = () => e.weight;
|
|
6973
|
+
if (t === "page-heading")
|
|
6974
|
+
s = "semibold", a = void 0;
|
|
6975
|
+
else if (t === "section-heading")
|
|
6976
|
+
s = "medium", a = void 0;
|
|
6977
|
+
else if (t === "h1" || t === "h2" || t === "h3" || t === "h4" || t === "subheading")
|
|
6978
|
+
s = i() ?? "semibold", a = void 0;
|
|
6979
|
+
else if (t === "table-header")
|
|
6980
|
+
s = i() ?? "medium", a = void 0;
|
|
6981
|
+
else if (t === "body") {
|
|
6982
|
+
const u = e;
|
|
6983
|
+
s = u.weight ?? "regular", a = u.size ?? "regular";
|
|
6984
|
+
} else if (t === "caption") {
|
|
6985
|
+
const u = e;
|
|
6986
|
+
s = u.weight ?? "regular", a = u.size;
|
|
6987
|
+
} else if (t === "button") {
|
|
6988
|
+
const u = e;
|
|
6989
|
+
s = "medium", a = u.size ? `button-${u.size}` : "button-sm";
|
|
6990
|
+
} else {
|
|
6991
|
+
const u = e;
|
|
6992
|
+
s = "regular", a = u.size ? `placeholder-${u.size}` : "placeholder-large";
|
|
6993
|
+
}
|
|
6994
|
+
const c = Yu[t];
|
|
6995
|
+
return /* @__PURE__ */ g.jsx(c, { className: M(ue({ variant: t, weight: s, size: a }), r), role: o, children: n });
|
|
6959
6996
|
}, gd = H(function({
|
|
6960
6997
|
children: t,
|
|
6961
6998
|
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
|
{
|