@altimateai/ui-components 0.0.77-beta.4 → 0.0.77-beta.5

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.
Files changed (64) hide show
  1. package/dist/Accordion.js +402 -0
  2. package/dist/CoachForm.css +1 -1
  3. package/dist/CoachForm.js +21630 -18090
  4. package/dist/Stack.js +2825 -2276
  5. package/dist/Switch.js +128 -87
  6. package/dist/ToggleGroup.js +5956 -4781
  7. package/dist/_basePickBy.js +25 -25
  8. package/dist/_baseUniq.js +122 -122
  9. package/dist/arc.js +36 -36
  10. package/dist/architectureDiagram-VXUJARFQ.js +1 -1
  11. package/dist/assets/icons/index.js +1 -1
  12. package/dist/blockDiagram-VD42YOAC.js +1 -1
  13. package/dist/c4Diagram-YG6GDRKO.js +22 -22
  14. package/dist/channel.js +2 -2
  15. package/dist/chatbotV2/index.d.ts +61 -10
  16. package/dist/chatbotV2/index.js +442 -56
  17. package/dist/chunk-4BX2VUAB.js +1 -1
  18. package/dist/chunk-55IACEB6.js +2 -2
  19. package/dist/chunk-B4BG7PRW.js +1 -1
  20. package/dist/chunk-DI55MBZ5.js +1 -1
  21. package/dist/chunk-FMBD7UC4.js +1 -1
  22. package/dist/chunk-QN33PNHL.js +5 -5
  23. package/dist/chunk-QZHKN3VN.js +1 -1
  24. package/dist/chunk-TZMSLE5B.js +1 -1
  25. package/dist/classDiagram-2ON5EDUG.js +1 -1
  26. package/dist/classDiagram-v2-WZHVMYZB.js +1 -1
  27. package/dist/cose-bilkent-S5V4N54A.js +1 -1
  28. package/dist/dagre-6UL2VRFP.js +58 -58
  29. package/dist/dayjs.min.js +1 -1
  30. package/dist/diagram-PSM6KHXK.js +48 -48
  31. package/dist/diagram-QEK2KX5R.js +26 -26
  32. package/dist/diagram-S2PKOQOG.js +9 -9
  33. package/dist/erDiagram-Q2GNP2WA.js +12 -12
  34. package/dist/flowDiagram-NV44I4VS.js +6 -6
  35. package/dist/ganttDiagram-LVOFAZNH.js +322 -322
  36. package/dist/gitGraphDiagram-NY62KEGX.js +13 -13
  37. package/dist/graph.js +5 -5
  38. package/dist/index.css +1 -1
  39. package/dist/index.d.ts +9 -1
  40. package/dist/index.js +24 -23
  41. package/dist/index2.css +1 -0
  42. package/dist/index2.js +22 -22
  43. package/dist/infoDiagram-F6ZHWCRC.js +14 -14
  44. package/dist/journeyDiagram-XKPGCS4Q.js +1 -1
  45. package/dist/kanban-definition-3W4ZIXB7.js +54 -54
  46. package/dist/layout.js +52 -52
  47. package/dist/lineage/index.js +381 -381
  48. package/dist/main.js +6 -6
  49. package/dist/mermaid-parser.core.js +1 -1
  50. package/dist/mindmap-definition-VGOIOE7T.js +16 -16
  51. package/dist/pieDiagram-ADFJNKIX.js +25 -25
  52. package/dist/quadrantDiagram-AYHSOK5B.js +1 -1
  53. package/dist/redux-toolkit.modern.js +7 -7
  54. package/dist/requirementDiagram-UZGBJVZJ.js +1 -1
  55. package/dist/sankeyDiagram-TZEHDZUN.js +16 -16
  56. package/dist/sequenceDiagram-WL72ISMW.js +28 -28
  57. package/dist/shadcn/index.d.ts +24 -40
  58. package/dist/shadcn/index.js +6232 -4805
  59. package/dist/stateDiagram-FKZM4ZOC.js +34 -34
  60. package/dist/stateDiagram-v2-4FDKWEC3.js +6 -6
  61. package/dist/storybook/Typography.stories.tsx +93 -120
  62. package/dist/timeline-definition-IT6M3QCI.js +54 -54
  63. package/dist/xychartDiagram-PRI3JC2R.js +32 -32
  64. package/package.json +1 -1
@@ -1,15 +1,15 @@
1
- import { s as R, S as N, a as W } from "./chunk-DI55MBZ5.js";
2
- import { a1 as f, a7 as t, ad as S, ae as P, a9 as z, aJ as U, aK as _, aE as C, am as F } from "./CoachForm.js";
1
+ import { s as G, S as N, a as W } from "./chunk-DI55MBZ5.js";
2
+ import { _ as f, d as t, l as S, j as P, e as z, Q as _, R as U, M as C, u as F } from "./CoachForm.js";
3
3
  import { s as H } from "./redux-toolkit.modern.js";
4
- import { G as J } from "./graph.js";
5
- import { l as O } from "./layout.js";
4
+ import { G as O } from "./graph.js";
5
+ import { l as J } from "./layout.js";
6
6
  var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit).attr("cy", t().state.padding + t().state.sizeUnit), "drawStartState"), D = /* @__PURE__ */ f((e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", t().state.textHeight).attr("class", "divider").attr("x2", t().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), Y = /* @__PURE__ */ f((e, i) => {
7
7
  const d = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 2 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.id), c = d.node().getBBox();
8
8
  return e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", c.width + 2 * t().state.padding).attr("height", c.height + 2 * t().state.padding).attr("rx", t().state.radius), d;
9
9
  }, "drawSimpleState"), I = /* @__PURE__ */ f((e, i) => {
10
10
  const d = /* @__PURE__ */ f(function(g, B, m) {
11
- const v = g.append("tspan").attr("x", 2 * t().state.padding).text(B);
12
- m || v.attr("dy", t().state.textHeight);
11
+ const E = g.append("tspan").attr("x", 2 * t().state.padding).text(B);
12
+ m || E.attr("dy", t().state.textHeight);
13
13
  }, "addTspan"), n = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 1.3 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.descriptions[0]).node().getBBox(), l = n.height, x = e.append("text").attr("x", t().state.padding).attr(
14
14
  "y",
15
15
  l + t().state.padding * 0.4 + t().state.dividerMargin + t().state.textHeight
@@ -38,20 +38,20 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
38
38
  "y",
39
39
  t().state.titleShift - t().state.textHeight - t().state.padding
40
40
  ).attr("width", o).attr("height", B.height + 3 + 2 * t().state.textHeight).attr("rx", t().state.radius), e;
41
- }, "addTitleAndBox"), q = /* @__PURE__ */ f((e) => (e.append("circle").attr("class", "end-state-outer").attr("r", t().state.sizeUnit + t().state.miniPadding).attr(
41
+ }, "addTitleAndBox"), j = /* @__PURE__ */ f((e) => (e.append("circle").attr("class", "end-state-outer").attr("r", t().state.sizeUnit + t().state.miniPadding).attr(
42
42
  "cx",
43
43
  t().state.padding + t().state.sizeUnit + t().state.miniPadding
44
44
  ).attr(
45
45
  "cy",
46
46
  t().state.padding + t().state.sizeUnit + t().state.miniPadding
47
- ), e.append("circle").attr("class", "end-state-inner").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit + 2).attr("cy", t().state.padding + t().state.sizeUnit + 2)), "drawEndState"), K = /* @__PURE__ */ f((e, i) => {
47
+ ), e.append("circle").attr("class", "end-state-inner").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit + 2).attr("cy", t().state.padding + t().state.sizeUnit + 2)), "drawEndState"), q = /* @__PURE__ */ f((e, i) => {
48
48
  let d = t().state.forkWidth, c = t().state.forkHeight;
49
49
  if (i.parentId) {
50
50
  let n = d;
51
51
  d = c, c = n;
52
52
  }
53
53
  return e.append("rect").style("stroke", "black").style("fill", "black").attr("width", d).attr("height", c).attr("x", t().state.padding).attr("y", t().state.padding);
54
- }, "drawForkJoinState"), Z = /* @__PURE__ */ f((e, i, d, c) => {
54
+ }, "drawForkJoinState"), Q = /* @__PURE__ */ f((e, i, d, c) => {
55
55
  let n = 0;
56
56
  const l = c.append("text");
57
57
  l.style("text-anchor", "start"), l.attr("class", "noteText");
@@ -71,9 +71,9 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
71
71
  }
72
72
  }
73
73
  return { textWidth: l.node().getBBox().width, textHeight: n };
74
- }, "_drawLongText"), j = /* @__PURE__ */ f((e, i) => {
74
+ }, "_drawLongText"), Z = /* @__PURE__ */ f((e, i) => {
75
75
  i.attr("class", "state-note");
76
- const d = i.append("rect").attr("x", 0).attr("y", t().state.padding), c = i.append("g"), { textWidth: n, textHeight: l } = Z(e, 0, 0, c);
76
+ const d = i.append("rect").attr("x", 0).attr("y", t().state.padding), c = i.append("g"), { textWidth: n, textHeight: l } = Q(e, 0, 0, c);
77
77
  return d.attr("height", l + 2 * t().state.noteMargin), d.attr("width", n + t().state.noteMargin * 2), d;
78
78
  }, "drawNote"), L = /* @__PURE__ */ f(function(e, i) {
79
79
  const d = i.id, c = {
@@ -82,10 +82,10 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
82
82
  width: 0,
83
83
  height: 0
84
84
  }, n = e.append("g").attr("id", d).attr("class", "stateGroup");
85
- i.type === "start" && X(n), i.type === "end" && q(n), (i.type === "fork" || i.type === "join") && K(n, i), i.type === "note" && j(i.note.text, n), i.type === "divider" && D(n), i.type === "default" && i.descriptions.length === 0 && Y(n, i), i.type === "default" && i.descriptions.length > 0 && I(n, i);
85
+ i.type === "start" && X(n), i.type === "end" && j(n), (i.type === "fork" || i.type === "join") && q(n, i), i.type === "note" && Z(i.note.text, n), i.type === "divider" && D(n), i.type === "default" && i.descriptions.length === 0 && Y(n, i), i.type === "default" && i.descriptions.length > 0 && I(n, i);
86
86
  const l = n.node().getBBox();
87
87
  return c.width = l.width + 2 * t().state.padding, c.height = l.height + 2 * t().state.padding, c;
88
- }, "drawState"), A = 0, Q = /* @__PURE__ */ f(function(e, i, d) {
88
+ }, "drawState"), R = 0, K = /* @__PURE__ */ f(function(e, i, d) {
89
89
  const c = /* @__PURE__ */ f(function(s) {
90
90
  switch (s) {
91
91
  case N.relationType.AGGREGATION:
@@ -99,11 +99,11 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
99
99
  }
100
100
  }, "getRelationType");
101
101
  i.points = i.points.filter((s) => !Number.isNaN(s.y));
102
- const n = i.points, l = U().x(function(s) {
102
+ const n = i.points, l = _().x(function(s) {
103
103
  return s.x;
104
104
  }).y(function(s) {
105
105
  return s.y;
106
- }).curve(_), x = e.append("path").attr("d", l(n)).attr("id", "edge" + A).attr("class", "transition");
106
+ }).curve(U), x = e.append("path").attr("d", l(n)).attr("id", "edge" + R).attr("class", "transition");
107
107
  let a = "";
108
108
  if (t().state.arrowMarkerAbsolute && (a = C(!0)), x.attr(
109
109
  "marker-end",
@@ -112,10 +112,10 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
112
112
  const s = e.append("g").attr("class", "stateLabel"), { x: w, y: p } = F.calcLabelPosition(i.points), o = z.getRows(d.title);
113
113
  let g = 0;
114
114
  const B = [];
115
- let m = 0, v = 0;
115
+ let m = 0, E = 0;
116
116
  for (let u = 0; u <= o.length; u++) {
117
117
  const h = s.append("text").attr("text-anchor", "middle").text(o[u]).attr("x", w).attr("y", p + g), y = h.node().getBBox();
118
- m = Math.max(m, y.width), v = Math.min(v, y.x), S.info(y.x, w, p + g), g === 0 && (g = h.node().getBBox().height, S.info("Title height", g, p)), B.push(h);
118
+ m = Math.max(m, y.width), E = Math.min(E, y.x), S.info(y.x, w, p + g), g === 0 && (g = h.node().getBBox().height, S.info("Title height", g, p)), B.push(h);
119
119
  }
120
120
  let k = g * o.length;
121
121
  if (o.length > 1) {
@@ -125,7 +125,7 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
125
125
  const r = s.node().getBBox();
126
126
  s.insert("rect", ":first-child").attr("class", "box").attr("x", w - m / 2 - t().state.padding / 2).attr("y", p - k / 2 - t().state.padding / 2 - 3.5).attr("width", m + t().state.padding).attr("height", k + t().state.padding), S.info(r);
127
127
  }
128
- A++;
128
+ R++;
129
129
  }, "drawEdge"), b, T = {}, V = /* @__PURE__ */ f(function() {
130
130
  }, "setConf"), tt = /* @__PURE__ */ f(function(e) {
131
131
  e.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
@@ -139,14 +139,14 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
139
139
  const s = x.select(`[id='${i}']`);
140
140
  tt(s);
141
141
  const w = c.db.getRootDoc();
142
- G(w, s, void 0, !1, x, a, c);
142
+ A(w, s, void 0, !1, x, a, c);
143
143
  const p = b.padding, o = s.node().getBBox(), g = o.width + p * 2, B = o.height + p * 2, m = g * 1.75;
144
144
  P(s, B, m, b.useMaxWidth), s.attr(
145
145
  "viewBox",
146
146
  `${o.x - b.padding} ${o.y - b.padding} ` + g + " " + B
147
147
  );
148
- }, "draw"), at = /* @__PURE__ */ f((e) => e ? e.length * b.fontSizeFactor : 1, "getLabelWidth"), G = /* @__PURE__ */ f((e, i, d, c, n, l, x) => {
149
- const a = new J({
148
+ }, "draw"), at = /* @__PURE__ */ f((e) => e ? e.length * b.fontSizeFactor : 1, "getLabelWidth"), A = /* @__PURE__ */ f((e, i, d, c, n, l, x) => {
149
+ const a = new O({
150
150
  compound: !0,
151
151
  multigraph: !0
152
152
  });
@@ -189,11 +189,11 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
189
189
  let h;
190
190
  if (u.doc) {
191
191
  let y = i.append("g").attr("id", u.id).attr("class", "stateGroup");
192
- h = G(u.doc, y, u.id, !c, n, l, x);
192
+ h = A(u.doc, y, u.id, !c, n, l, x);
193
193
  {
194
194
  y = $(y, u, c);
195
- let E = y.node().getBBox();
196
- h.width = E.width, h.height = E.height + b.padding / 2, T[u.id] = { y: b.compositTitleSize };
195
+ let v = y.node().getBBox();
196
+ h.width = v.width, h.height = v.height + b.padding / 2, T[u.id] = { y: b.compositTitleSize };
197
197
  }
198
198
  } else
199
199
  h = L(i, u, a);
@@ -203,8 +203,8 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
203
203
  id: u.id + "-note",
204
204
  note: u.note,
205
205
  type: "note"
206
- }, E = L(i, y, a);
207
- u.note.position === "left of" ? (a.setNode(h.id + "-note", E), a.setNode(h.id, h)) : (a.setNode(h.id, h), a.setNode(h.id + "-note", E)), a.setParent(h.id, h.id + "-group"), a.setParent(h.id + "-note", h.id + "-group");
206
+ }, v = L(i, y, a);
207
+ u.note.position === "left of" ? (a.setNode(h.id + "-note", v), a.setNode(h.id, h)) : (a.setNode(h.id, h), a.setNode(h.id + "-note", v)), a.setParent(h.id, h.id + "-group"), a.setParent(h.id + "-note", h.id + "-group");
208
208
  } else
209
209
  a.setNode(h.id, h);
210
210
  }
@@ -222,7 +222,7 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
222
222
  },
223
223
  "id" + B
224
224
  );
225
- }), O(a), S.debug("Graph after layout", a.nodes());
225
+ }), J(a), S.debug("Graph after layout", a.nodes());
226
226
  const m = i.node();
227
227
  a.nodes().forEach(function(r) {
228
228
  r !== void 0 && a.node(r) !== void 0 ? (S.warn("Node " + r + ": " + JSON.stringify(a.node(r))), n.select("#" + m.id + " #" + r).attr(
@@ -230,26 +230,26 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
230
230
  "translate(" + (a.node(r).x - a.node(r).width / 2) + "," + (a.node(r).y + (T[r] ? T[r].y : 0) - a.node(r).height / 2) + " )"
231
231
  ), n.select("#" + m.id + " #" + r).attr("data-x-shift", a.node(r).x - a.node(r).width / 2), l.querySelectorAll("#" + m.id + " #" + r + " .divider").forEach((h) => {
232
232
  const y = h.parentElement;
233
- let E = 0, M = 0;
234
- y && (y.parentElement && (E = y.parentElement.getBBox().width), M = parseInt(y.getAttribute("data-x-shift"), 10), Number.isNaN(M) && (M = 0)), h.setAttribute("x1", 0 - M + 8), h.setAttribute("x2", E - M - 8);
233
+ let v = 0, M = 0;
234
+ y && (y.parentElement && (v = y.parentElement.getBBox().width), M = parseInt(y.getAttribute("data-x-shift"), 10), Number.isNaN(M) && (M = 0)), h.setAttribute("x1", 0 - M + 8), h.setAttribute("x2", v - M - 8);
235
235
  })) : S.debug("No Node " + r + ": " + JSON.stringify(a.node(r)));
236
236
  });
237
- let v = m.getBBox();
237
+ let E = m.getBBox();
238
238
  a.edges().forEach(function(r) {
239
- r !== void 0 && a.edge(r) !== void 0 && (S.debug("Edge " + r.v + " -> " + r.w + ": " + JSON.stringify(a.edge(r))), Q(i, a.edge(r), a.edge(r).relation));
240
- }), v = m.getBBox();
239
+ r !== void 0 && a.edge(r) !== void 0 && (S.debug("Edge " + r.v + " -> " + r.w + ": " + JSON.stringify(a.edge(r))), K(i, a.edge(r), a.edge(r).relation));
240
+ }), E = m.getBBox();
241
241
  const k = {
242
242
  id: d || "root",
243
243
  label: d || "root",
244
244
  width: 0,
245
245
  height: 0
246
246
  };
247
- return k.width = v.width + 2 * b.padding, k.height = v.height + 2 * b.padding, S.debug("Doc rendered", k, a), k;
247
+ return k.width = E.width + 2 * b.padding, k.height = E.height + 2 * b.padding, S.debug("Doc rendered", k, a), k;
248
248
  }, "renderDoc"), it = {
249
249
  setConf: V,
250
250
  draw: et
251
251
  }, ct = {
252
- parser: R,
252
+ parser: G,
253
253
  get db() {
254
254
  return new N(1);
255
255
  },
@@ -1,10 +1,10 @@
1
- import { s as a, S as t, b as r, a as s } from "./chunk-DI55MBZ5.js";
2
- import { a1 as i } from "./CoachForm.js";
1
+ import { s as t, S as a, b as r, a as s } from "./chunk-DI55MBZ5.js";
2
+ import { _ as i } from "./CoachForm.js";
3
3
  import "./redux-toolkit.modern.js";
4
- var l = {
5
- parser: a,
4
+ var _ = {
5
+ parser: t,
6
6
  get db() {
7
- return new t(2);
7
+ return new a(2);
8
8
  },
9
9
  renderer: r,
10
10
  styles: s,
@@ -13,5 +13,5 @@ var l = {
13
13
  }, "init")
14
14
  };
15
15
  export {
16
- l as diagram
16
+ _ as diagram
17
17
  };
@@ -15,13 +15,22 @@ type Story = StoryObj<typeof meta>;
15
15
  export const Typography: Story = {
16
16
  args: {
17
17
  variant: "h1",
18
- weight: "semibold",
18
+ weight: "regular",
19
+ size: "md",
19
20
  children: "Heading 1",
20
21
  },
21
22
  render: () => (
22
23
  <div className="space-y-8">
23
- {/* Heading 1 Variations - Only Medium & Semibold */}
24
+ {/* Heading 1 Variations */}
24
25
  <div className="al-border al-flex al-justify-between al-p-4 al-my-2">
26
+ <Component variant="h1" weight="light">
27
+ Heading 1
28
+ <br /> Light
29
+ </Component>
30
+ <Component variant="h1" weight="regular">
31
+ Heading 1
32
+ <br /> Regular
33
+ </Component>
25
34
  <Component variant="h1" weight="medium">
26
35
  Heading 1 <br />
27
36
  Medium
@@ -30,13 +39,25 @@ export const Typography: Story = {
30
39
  Heading 1 <br />
31
40
  Semibold
32
41
  </Component>
42
+ <Component variant="h1" weight="bold">
43
+ Heading 1 <br />
44
+ Bold
45
+ </Component>
33
46
  <Component variant="caption" className="text-gray-500">
34
- 30px / Line height: 38px
47
+ 32px / Line height: 32px
35
48
  </Component>
36
49
  </div>
37
50
 
38
- {/* Heading 2 Variations - Only Medium & Semibold */}
51
+ {/* Heading 2 Variations */}
39
52
  <div className="al-border al-flex al-justify-between al-p-4 al-my-2">
53
+ <Component variant="h2" weight="light">
54
+ Heading 2 <br />
55
+ Light
56
+ </Component>
57
+ <Component variant="h2" weight="regular">
58
+ Heading 2 <br />
59
+ Regular
60
+ </Component>
40
61
  <Component variant="h2" weight="medium">
41
62
  Heading 2 <br />
42
63
  Medium
@@ -45,13 +66,25 @@ export const Typography: Story = {
45
66
  Heading 2 <br />
46
67
  Semibold
47
68
  </Component>
69
+ <Component variant="h2" weight="bold">
70
+ Heading 2 <br />
71
+ Bold
72
+ </Component>
48
73
  <Component variant="caption" className="text-gray-500">
49
74
  24px / Line height: 32px
50
75
  </Component>
51
76
  </div>
52
77
 
53
- {/* Heading 3 Variations - Only Medium & Semibold */}
78
+ {/* Heading 3 Variations */}
54
79
  <div className="al-border al-flex al-justify-between al-p-4 al-my-2">
80
+ <Component variant="h3" weight="light">
81
+ Heading 3 <br />
82
+ Light
83
+ </Component>
84
+ <Component variant="h3" weight="regular">
85
+ Heading 3 <br />
86
+ Regular
87
+ </Component>
55
88
  <Component variant="h3" weight="medium">
56
89
  Heading 3 <br />
57
90
  Medium
@@ -60,13 +93,25 @@ export const Typography: Story = {
60
93
  Heading 3 <br />
61
94
  Semibold
62
95
  </Component>
96
+ <Component variant="h3" weight="bold">
97
+ Heading 3 <br />
98
+ Bold
99
+ </Component>
63
100
  <Component variant="caption" className="text-gray-500">
64
- 20px / Line height: 24px
101
+ 18px / Line height: 26px
65
102
  </Component>
66
103
  </div>
67
104
 
68
- {/* Heading 4 Variations - Only Medium & Semibold */}
105
+ {/* Heading 4 Variations */}
69
106
  <div className="al-border al-flex al-justify-between al-p-4 al-my-2">
107
+ <Component variant="h4" weight="light">
108
+ Heading 4 <br />
109
+ Light
110
+ </Component>
111
+ <Component variant="h4" weight="regular">
112
+ Heading 4 <br />
113
+ Regular
114
+ </Component>
70
115
  <Component variant="h4" weight="medium">
71
116
  Heading 4 <br />
72
117
  Medium
@@ -75,13 +120,25 @@ export const Typography: Story = {
75
120
  Heading 4 <br />
76
121
  Semibold
77
122
  </Component>
123
+ <Component variant="h4" weight="bold">
124
+ Heading 4 <br />
125
+ Bold
126
+ </Component>
78
127
  <Component variant="caption" className="text-gray-500">
79
128
  16px / Line height: 24px
80
129
  </Component>
81
130
  </div>
82
131
 
83
- {/* Subheading Variations - Only Medium & Semibold */}
132
+ {/* Subheading Variations */}
84
133
  <div className="al-border al-flex al-justify-between al-p-4 al-my-2">
134
+ <Component variant="subheading" weight="light">
135
+ Sub heading <br />
136
+ Light
137
+ </Component>
138
+ <Component variant="subheading" weight="regular">
139
+ Sub heading <br />
140
+ Regular
141
+ </Component>
85
142
  <Component variant="subheading" weight="medium">
86
143
  Sub heading <br />
87
144
  Medium
@@ -90,140 +147,56 @@ export const Typography: Story = {
90
147
  Sub heading <br />
91
148
  Semibold
92
149
  </Component>
93
- <Component variant="caption" className="text-gray-500">
94
- 14px / Line height: 20px
95
- </Component>
96
- </div>
97
-
98
- {/* Body Text - Regular Weight */}
99
- <div className="al-border al-flex al-justify-between al-p-4 al-my-2">
100
- <Component variant="body" weight="regular" size="lg">
101
- Body Large <br /> Regular
102
- </Component>
103
- <Component variant="body" weight="regular" size="regular">
104
- Body Regular <br /> Regular
105
- </Component>
106
- <Component variant="body" weight="regular" size="sm">
107
- Body Small <br /> Regular
108
- </Component>
109
- <Component variant="body" weight="regular" size="xs">
110
- Body X-Small <br /> Regular
111
- </Component>
112
- <Component weight="regular" size="xxs">
113
- Body XX-Small <br /> Regular
114
- </Component>
115
- <Component variant="caption" className="text-gray-500">
116
- 18px/24px, 16px/24px, 14px/20px, 12px/18px, 10px/14px
117
- </Component>
118
- </div>
119
-
120
- {/* Body Text - Medium Weight */}
121
- <div className="al-border al-flex al-justify-between al-p-4 al-my-2">
122
- <Component variant="body" weight="medium" size="lg">
123
- Body Large <br /> Medium
124
- </Component>
125
- <Component variant="body" weight="medium" size="regular">
126
- Body Regular <br /> Medium
127
- </Component>
128
- <Component variant="body" weight="medium" size="sm">
129
- Body Small <br /> Medium
130
- </Component>
131
- <Component variant="body" weight="medium" size="xs">
132
- Body X-Small <br /> Medium
133
- </Component>
134
- <Component variant="body" weight="medium" size="xxs">
135
- Body XX-Small <br /> Medium
136
- </Component>
137
- <Component variant="caption" className="text-gray-500">
138
- For emphasis, key values, important inline text
139
- </Component>
140
- </div>
141
-
142
- {/* Caption - Base Size Only (8px/16px) */}
143
- <div className="al-border al-flex al-justify-between al-p-4 al-my-2">
144
- <Component variant="caption">
145
- Caption <br /> Base Size
146
- </Component>
147
- <Component variant="caption" className="text-gray-500">
148
- 8px/16px - For extremely tiny metadata only
149
- </Component>
150
- <Component variant="caption" className="text-gray-500">
151
- Note: For all other sizes, use variant=&quot;body&quot;
152
- </Component>
153
- </div>
154
-
155
- {/* Semantic Variants Section Header */}
156
- <div className="al-border-t-2 al-pt-8 al-mt-8">
157
- <Component variant="h2" weight="semibold" className="al-mb-4">
158
- Semantic Variants
159
- </Component>
160
- <Component variant="caption" className="text-gray-500 al-mb-4 al-block">
161
- Pre-configured variants for consistent page structure. No weight/size props allowed.
150
+ <Component variant="subheading" weight="bold">
151
+ Sub heading <br />
152
+ Bold
162
153
  </Component>
163
- </div>
164
-
165
- {/* Page Heading - Fixed H2 Semibold */}
166
- <div className="al-border al-flex al-justify-between al-p-4 al-my-2">
167
- <Component variant="page-heading">Page Heading</Component>
168
154
  <Component variant="caption" className="text-gray-500">
169
- H2 + Semibold (fixed) - Use for main page titles
155
+ 14px / Line height: 20px
170
156
  </Component>
171
157
  </div>
172
158
 
173
- {/* Section Heading - Fixed H3 Medium */}
159
+ {/* Body/Paragraph Example */}
174
160
  <div className="al-border al-flex al-justify-between al-p-4 al-my-2">
175
- <Component variant="section-heading">Section Heading</Component>
176
- <Component variant="caption" className="text-gray-500">
177
- H3 + Medium (fixed) - Use for section titles within a page
161
+ <Component variant="body" size="xs">
162
+ Body XS <br /> Regular
178
163
  </Component>
179
- </div>
180
-
181
- {/* Utilities Section Header */}
182
- <div className="al-border-t-2 al-pt-8 al-mt-8">
183
- <Component variant="h2" weight="semibold" className="al-mb-4">
184
- Utility Variants
164
+ <Component variant="body" size="sm">
165
+ Body SM <br /> Regular
185
166
  </Component>
186
- </div>
187
-
188
- {/* Button Text Utility - 3 sizes, fixed Medium weight */}
189
- <div className="al-border al-flex al-justify-between al-p-4 al-my-2">
190
- <Component variant="button" size="xs">
191
- Button XS <br /> (12px/16px)
167
+ <Component variant="body" size="md">
168
+ Body MD <br /> Regular
192
169
  </Component>
193
- <Component variant="button" size="sm">
194
- Button SM <br /> (14px/20px)
170
+ <Component variant="body" size="lg">
171
+ Body LG <br /> Regular
195
172
  </Component>
196
- <Component variant="button" size="md">
197
- Button MD <br /> (16px/24px)
173
+ <Component variant="body" size="xl">
174
+ Body XL <br /> Regular
198
175
  </Component>
199
176
  <Component variant="caption" className="text-gray-500">
200
- Button text utility - Fixed Medium weight (500)
177
+ 14px, 10px, 8px | Line height: 18px, 16px, 14px
201
178
  </Component>
202
179
  </div>
203
180
 
204
- {/* Table Header Utility - Fixed size, 2 weights */}
181
+ {/* Caption Example */}
205
182
  <div className="al-border al-flex al-justify-between al-p-4 al-my-2">
206
- <Component variant="table-header" weight="medium">
207
- Table Header <br /> Medium
183
+ <Component variant="caption" size="xs">
184
+ Caption XS <br /> Regular
208
185
  </Component>
209
- <Component variant="table-header" weight="semibold">
210
- Table Header <br /> Semibold
186
+ <Component variant="caption" size="sm">
187
+ Caption SM <br /> Regular
211
188
  </Component>
212
- <Component variant="caption" className="text-gray-500">
213
- 12px/18px - For table column headers
189
+ <Component variant="caption" weight="medium" size="sm">
190
+ Caption SM <br /> Medium
214
191
  </Component>
215
- </div>
216
-
217
- {/* Placeholder Utility - 2 sizes, fixed Regular weight, auto-italic */}
218
- <div className="al-border al-flex al-justify-between al-p-4 al-my-2">
219
- <Component variant="placeholder" size="regular">
220
- Placeholder Regular <br /> (14px/20px)
192
+ <Component variant="caption" weight="medium" size="md">
193
+ Caption MD <br /> Medium
221
194
  </Component>
222
- <Component variant="placeholder" size="large">
223
- Placeholder Large <br /> (16px/24px)
195
+ <Component variant="caption" weight="medium" size="lg">
196
+ Caption LG <br /> Medium
224
197
  </Component>
225
198
  <Component variant="caption" className="text-gray-500">
226
- Italic placeholder text - Fixed Regular weight (400)
199
+ 14px, 10px | Line height: 18px, 16px
227
200
  </Component>
228
201
  </div>
229
202
  </div>