@altimateai/ui-components 0.0.64 → 0.0.66-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.
Files changed (64) hide show
  1. package/dist/CoachForm.js +9784 -9698
  2. package/dist/Stack.js +10 -10
  3. package/dist/ToggleGroup.js +8549 -0
  4. package/dist/_basePickBy.js +25 -25
  5. package/dist/_baseUniq.js +57 -57
  6. package/dist/arc.js +34 -34
  7. package/dist/architectureDiagram-VXUJARFQ.js +1 -1
  8. package/dist/assets/icons/index.js +1 -1
  9. package/dist/blockDiagram-VD42YOAC.js +1 -1
  10. package/dist/c4Diagram-YG6GDRKO.js +1 -1
  11. package/dist/channel.js +3 -3
  12. package/dist/chatbotV2/index.d.ts +30 -13
  13. package/dist/chatbotV2/index.js +47 -45
  14. package/dist/chunk-4BX2VUAB.js +1 -1
  15. package/dist/chunk-55IACEB6.js +2 -2
  16. package/dist/chunk-B4BG7PRW.js +13 -13
  17. package/dist/chunk-DI55MBZ5.js +1 -1
  18. package/dist/chunk-FMBD7UC4.js +1 -1
  19. package/dist/chunk-QN33PNHL.js +6 -6
  20. package/dist/chunk-QZHKN3VN.js +1 -1
  21. package/dist/chunk-TZMSLE5B.js +1 -1
  22. package/dist/classDiagram-2ON5EDUG.js +1 -1
  23. package/dist/classDiagram-v2-WZHVMYZB.js +1 -1
  24. package/dist/cose-bilkent-S5V4N54A.js +1 -1
  25. package/dist/dagre-6UL2VRFP.js +17 -17
  26. package/dist/diagram-PSM6KHXK.js +35 -35
  27. package/dist/diagram-QEK2KX5R.js +10 -10
  28. package/dist/diagram-S2PKOQOG.js +2 -2
  29. package/dist/erDiagram-Q2GNP2WA.js +15 -15
  30. package/dist/flowDiagram-NV44I4VS.js +1 -1
  31. package/dist/ganttDiagram-LVOFAZNH.js +1 -1
  32. package/dist/gitGraphDiagram-NY62KEGX.js +1 -1
  33. package/dist/graph.js +1 -1
  34. package/dist/index.d.ts +4 -3
  35. package/dist/index.js +6 -6
  36. package/dist/index2.js +22 -22
  37. package/dist/infoDiagram-F6ZHWCRC.js +7 -7
  38. package/dist/journeyDiagram-XKPGCS4Q.js +1 -1
  39. package/dist/kanban-definition-3W4ZIXB7.js +19 -19
  40. package/dist/layout.js +20 -20
  41. package/dist/lineage/index.js +608 -615
  42. package/dist/main.js +3 -3
  43. package/dist/mermaid-parser.core.js +1 -1
  44. package/dist/mindmap-definition-VGOIOE7T.js +17 -17
  45. package/dist/pieDiagram-ADFJNKIX.js +4 -4
  46. package/dist/quadrantDiagram-AYHSOK5B.js +1 -1
  47. package/dist/redux-toolkit.modern.js +483 -476
  48. package/dist/requirementDiagram-UZGBJVZJ.js +76 -76
  49. package/dist/sankeyDiagram-TZEHDZUN.js +22 -22
  50. package/dist/sequenceDiagram-WL72ISMW.js +1 -1
  51. package/dist/shadcn/index.d.ts +46 -2
  52. package/dist/shadcn/index.js +3617 -2880
  53. package/dist/stateDiagram-FKZM4ZOC.js +28 -28
  54. package/dist/stateDiagram-v2-4FDKWEC3.js +4 -4
  55. package/dist/storybook/Carousel.stories.tsx +274 -0
  56. package/dist/storybook/TagsInput.stories.tsx +34 -1
  57. package/dist/storybook/Toggle.stories.tsx +106 -0
  58. package/dist/storybook/ToggleGroup.stories.tsx +178 -0
  59. package/dist/timeline-definition-IT6M3QCI.js +12 -12
  60. package/dist/{types-B4_bdpWO.d.ts → types-N2nctlGV.d.ts} +18 -5
  61. package/dist/xychartDiagram-PRI3JC2R.js +11 -11
  62. package/package.json +1 -1
  63. package/dist/TagsInput.js +0 -6956
  64. package/dist/index2.css +0 -1
package/dist/main.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { d as dt, C as Yn } from "./dayjs.min.js";
2
- import { cc as un, cd as Wn, ce as Xn, cf as Kn, cg as Gn, ch as Zn, ci as rt, cj as Qn, ck as Jn } from "./CoachForm.js";
2
+ import { ce as un, cf as Wn, cg as Xn, ch as Kn, ci as Gn, cj as Zn, ck as rt, cl as Qn, cm as Jn } from "./CoachForm.js";
3
3
  import { g as yt, k as ln, A as ve, l as er, I as Ie, u as cn, m as tr } from "./redux-toolkit.modern.js";
4
- import { B as ye, a3 as $e, a4 as He, a5 as nr, a6 as oe, a7 as rr, T as or, $ as ft, X as ir } from "./Stack.js";
4
+ import { B as ye, a4 as $e, a5 as He, a6 as nr, X as oe, a7 as rr, T as or, a0 as ft, Y as ir } from "./Stack.js";
5
5
  import { j as h, A as dn, e as sr, f as ar, a as ur, d as lr, D as cr, E as dr, c as fr, b as pr } from "./index2.js";
6
6
  import * as te from "react";
7
7
  import Z, { createContext as _e, useReducer as fn, useCallback as we, useMemo as fe, useContext as be, useLayoutEffect as gr, useEffect as le, useRef as Se, useId as pn, useInsertionEffect as hr, Children as De, isValidElement as vr, useState as re, lazy as mr } from "react";
8
8
  import Er, { createPortal as bt } from "react-dom";
9
- import { u as yr, F as Mt, a as br, A as gn, N as Lt, B as Cr } from "./TagsInput.js";
9
+ import { u as yr, F as Mt, a as br, A as gn, N as Lt, B as Cr } from "./ToggleGroup.js";
10
10
  import { S as Sr } from "./Switch.js";
11
11
  import './main.css';var Ct = /* @__PURE__ */ ((e) => (e.DBT_DOCS = "dbt-docs", e.DOCUMENTATION_EDITOR = "documentation-editor", e.SAAS = "saas", e))(Ct || {});
12
12
  const _r = () => {
@@ -1,7 +1,7 @@
1
1
  var Ac = Object.defineProperty;
2
2
  var Ec = (n, e, t) => e in n ? Ac(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
3
  var Ze = (n, e, t) => Ec(n, typeof e != "symbol" ? e + "" : e, t);
4
- import { cu as $c, cv as kc, bD as Nl, bY as xc, bH as Sc, bE as ee, bo as Ic, bp as Ea, bO as Cc, bR as wl, bS as Ll, c1 as $a, bP as Nc, br as vt, bs as D, bF as ka, bz as wc } from "./CoachForm.js";
4
+ import { cw as $c, cx as kc, bF as Nl, b_ as xc, bJ as Sc, bG as ee, bq as Ic, br as Ea, bQ as Cc, bT as wl, bU as Ll, c3 as $a, bR as Nc, bt as vt, bu as D, bH as ka, bB as wc } from "./CoachForm.js";
5
5
  import { k as qt, j as Hs, g as nn, S as Lc, w as _c, x as bc, c as _l, v as z, y as bl, l as Oc, z as Pc, A as Mc, B as Dc, C as Fc, a as Ol, d as C, i as Ye, r as le, f as ke, D as Y } from "./_baseUniq.js";
6
6
  import { j as js, m as x, d as Gc, f as Ne, g as Yt, i as zs, h as N, l as Xt, e as Uc } from "./_basePickBy.js";
7
7
  import { c as ne } from "./clone.js";
@@ -1,6 +1,6 @@
1
1
  import { g as le } from "./chunk-55IACEB6.js";
2
2
  import { s as he } from "./chunk-QN33PNHL.js";
3
- import { $ as l, ab as C, a5 as X, as as j, aa as F, bv as de, ao as ge, ap as ue, aN as pe, aO as fe, aP as ye } from "./CoachForm.js";
3
+ import { a1 as l, ad as C, a7 as X, au as j, ac as F, bx as de, aq as ge, ar as ue, aP as pe, aQ as fe, aR as ye } from "./CoachForm.js";
4
4
  const E = [];
5
5
  for (let t = 0; t < 256; ++t)
6
6
  E.push((t + 256).toString(16).slice(1));
@@ -32,7 +32,7 @@ var q = function() {
32
32
  var t = /* @__PURE__ */ l(function(v, s, i, a) {
33
33
  for (i = i || {}, a = v.length; a--; i[v[a]] = s) ;
34
34
  return i;
35
- }, "o"), e = [1, 4], n = [1, 13], c = [1, 12], u = [1, 15], h = [1, 16], p = [1, 20], y = [1, 19], _ = [6, 7, 8], b = [1, 26], m = [1, 24], w = [1, 25], N = [6, 7, 11], J = [1, 6, 13, 15, 16, 19, 22], K = [1, 33], Q = [1, 34], A = [1, 6, 7, 11, 13, 15, 16, 19, 22], G = {
35
+ }, "o"), e = [1, 4], n = [1, 13], c = [1, 12], u = [1, 15], h = [1, 16], p = [1, 20], y = [1, 19], _ = [6, 7, 8], b = [1, 26], m = [1, 24], w = [1, 25], D = [6, 7, 11], Q = [1, 6, 13, 15, 16, 19, 22], J = [1, 33], K = [1, 34], A = [1, 6, 7, 11, 13, 15, 16, 19, 22], G = {
36
36
  trace: /* @__PURE__ */ l(function() {
37
37
  }, "trace"),
38
38
  yy: {},
@@ -87,7 +87,7 @@ var q = function() {
87
87
  break;
88
88
  }
89
89
  }, "anonymous"),
90
- table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: e }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: e }, { 6: n, 7: [1, 10], 9: 9, 12: 11, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, t(_, [2, 3]), { 1: [2, 2] }, t(_, [2, 4]), t(_, [2, 5]), { 1: [2, 6], 6: n, 12: 21, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, { 6: n, 9: 22, 12: 11, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, { 6: b, 7: m, 10: 23, 11: w }, t(N, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: p, 22: y }), t(N, [2, 18]), t(N, [2, 19]), t(N, [2, 20]), t(N, [2, 21]), t(N, [2, 23]), t(N, [2, 24]), t(N, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: b, 7: m, 10: 32, 11: w }, { 1: [2, 7], 6: n, 12: 21, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, t(J, [2, 14], { 7: K, 11: Q }), t(A, [2, 8]), t(A, [2, 9]), t(A, [2, 10]), t(N, [2, 15]), t(N, [2, 16]), t(N, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, t(J, [2, 13], { 7: K, 11: Q }), t(A, [2, 11]), t(A, [2, 12]), { 21: [1, 37] }, t(N, [2, 25]), t(N, [2, 27])],
90
+ table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: e }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: e }, { 6: n, 7: [1, 10], 9: 9, 12: 11, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, t(_, [2, 3]), { 1: [2, 2] }, t(_, [2, 4]), t(_, [2, 5]), { 1: [2, 6], 6: n, 12: 21, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, { 6: n, 9: 22, 12: 11, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, { 6: b, 7: m, 10: 23, 11: w }, t(D, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: p, 22: y }), t(D, [2, 18]), t(D, [2, 19]), t(D, [2, 20]), t(D, [2, 21]), t(D, [2, 23]), t(D, [2, 24]), t(D, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: b, 7: m, 10: 32, 11: w }, { 1: [2, 7], 6: n, 12: 21, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, t(Q, [2, 14], { 7: J, 11: K }), t(A, [2, 8]), t(A, [2, 9]), t(A, [2, 10]), t(D, [2, 15]), t(D, [2, 16]), t(D, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, t(Q, [2, 13], { 7: J, 11: K }), t(A, [2, 11]), t(A, [2, 12]), { 21: [1, 37] }, t(D, [2, 25]), t(D, [2, 27])],
91
91
  defaultActions: { 2: [2, 1], 6: [2, 2] },
92
92
  parseError: /* @__PURE__ */ l(function(s, i) {
93
93
  if (i.recoverable)
@@ -99,20 +99,20 @@ var q = function() {
99
99
  }, "parseError"),
100
100
  parse: /* @__PURE__ */ l(function(s) {
101
101
  var i = this, a = [0], o = [], g = [null], r = [], U = this.table, d = "", M = 0, Z = 0, re = 2, ee = 1, ae = r.slice.call(arguments, 1), f = Object.create(this.lexer), T = { yy: {} };
102
- for (var $ in this.yy)
103
- Object.prototype.hasOwnProperty.call(this.yy, $) && (T.yy[$] = this.yy[$]);
102
+ for (var H in this.yy)
103
+ Object.prototype.hasOwnProperty.call(this.yy, H) && (T.yy[H] = this.yy[H]);
104
104
  f.setInput(s, T.yy), T.yy.lexer = f, T.yy.parser = this, typeof f.yylloc > "u" && (f.yylloc = {});
105
- var H = f.yylloc;
106
- r.push(H);
105
+ var $ = f.yylloc;
106
+ r.push($);
107
107
  var oe = f.options && f.options.ranges;
108
108
  typeof T.yy.parseError == "function" ? this.parseError = T.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
109
- function ce(D) {
110
- a.length = a.length - 2 * D, g.length = g.length - D, r.length = r.length - D;
109
+ function ce(N) {
110
+ a.length = a.length - 2 * N, g.length = g.length - N, r.length = r.length - N;
111
111
  }
112
112
  l(ce, "popStack");
113
113
  function te() {
114
- var D;
115
- return D = o.pop() || f.lex() || ee, typeof D != "number" && (D instanceof Array && (o = D, D = o.pop()), D = i.symbols_[D] || D), D;
114
+ var N;
115
+ return N = o.pop() || f.lex() || ee, typeof N != "number" && (N instanceof Array && (o = N, N = o.pop()), N = i.symbols_[N] || N), N;
116
116
  }
117
117
  l(te, "lex");
118
118
  for (var S, O, k, z, I = {}, V, L, ie, B; ; ) {
@@ -127,7 +127,7 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
127
127
  text: f.match,
128
128
  token: this.terminals_[S] || S,
129
129
  line: f.yylineno,
130
- loc: H,
130
+ loc: $,
131
131
  expected: B
132
132
  });
133
133
  }
@@ -135,7 +135,7 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
135
135
  throw new Error("Parse Error: multiple actions possible at state: " + O + ", token: " + S);
136
136
  switch (k[0]) {
137
137
  case 1:
138
- a.push(S), g.push(f.yytext), r.push(f.yylloc), a.push(k[1]), S = null, Z = f.yyleng, d = f.yytext, M = f.yylineno, H = f.yylloc;
138
+ a.push(S), g.push(f.yytext), r.push(f.yylloc), a.push(k[1]), S = null, Z = f.yyleng, d = f.yytext, M = f.yylineno, $ = f.yylloc;
139
139
  break;
140
140
  case 2:
141
141
  if (L = this.productions_[k[1]][1], I.$ = g[g.length - L], I._$ = {
@@ -432,7 +432,7 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
432
432
  return l(P, "Parser"), P.prototype = G, G.Parser = P, new P();
433
433
  }();
434
434
  q.parser = q;
435
- var Ne = q, x = {
435
+ var De = q, x = {
436
436
  DEFAULT: 0,
437
437
  NO_BORDER: 0,
438
438
  ROUNDED_RECT: 1,
@@ -441,7 +441,7 @@ var Ne = q, x = {
441
441
  CLOUD: 4,
442
442
  BANG: 5,
443
443
  HEXAGON: 6
444
- }, R, De = (R = class {
444
+ }, R, Ne = (R = class {
445
445
  constructor() {
446
446
  this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = x, this.clear(), this.getType = this.getType.bind(this), this.getElementById = this.getElementById.bind(this), this.getParent = this.getParent.bind(this), this.getMindmap = this.getMindmap.bind(this), this.addNode = this.addNode.bind(this), this.decorateNode = this.decorateNode.bind(this);
447
447
  }
@@ -775,10 +775,10 @@ var Ne = q, x = {
775
775
  }
776
776
  `, "getStyles"), Te = ve, Re = {
777
777
  get db() {
778
- return new De();
778
+ return new Ne();
779
779
  },
780
780
  renderer: Le,
781
- parser: Ne,
781
+ parser: De,
782
782
  styles: Te
783
783
  };
784
784
  export {
@@ -1,4 +1,4 @@
1
- import { a$ as S, aT as z, bu as Z, as as q, ae as H, af as J, a1 as K, a2 as Q, a4 as X, a3 as Y, $ as g, ab as F, al as ee, a5 as te, at as ae, ax as re, aE as ne, ac as ie } from "./CoachForm.js";
1
+ import { b1 as S, aV as z, bw as Z, au as q, ag as H, ah as J, a3 as K, a4 as Q, a6 as X, a5 as Y, a1 as g, ad as F, an as ee, a7 as te, av as ae, az as re, aG as ne, ae as ie } from "./CoachForm.js";
2
2
  import { p as se } from "./chunk-4BX2VUAB.js";
3
3
  import { p as le } from "./mermaid-parser.core.js";
4
4
  import "./redux-toolkit.modern.js";
@@ -144,13 +144,13 @@ var L = q.pie, G = {
144
144
  label: r,
145
145
  value: M
146
146
  })), k = p.selectAll(".legend").data(O).enter().append("g").attr("class", "legend").attr("transform", (r, M) => {
147
- const R = n + c, V = R * O.length / 2, U = 12 * n, j = M * R - V;
147
+ const R = n + c, B = R * O.length / 2, U = 12 * n, j = M * R - B;
148
148
  return "translate(" + U + "," + j + ")";
149
149
  });
150
150
  k.append("rect").attr("width", n).attr("height", n).style("fill", (r) => E(r.label)).style("stroke", (r) => E(r.label)), k.append("text").attr("x", n + c).attr("y", n - c).text((r) => s.getShowData() ? `${r.label} [${r.value}]` : r.label);
151
- const B = Math.max(
151
+ const V = Math.max(
152
152
  ...k.selectAll("text").nodes().map((r) => (r == null ? void 0 : r.getBoundingClientRect().width) ?? 0)
153
- ), P = y + t + n + c + B;
153
+ ), P = y + t + n + c + V;
154
154
  m.attr("viewBox", `0 0 ${P} ${u}`), ie(m, u, P, l.useMaxWidth);
155
155
  }, "draw"), $e = { draw: Ce }, Fe = {
156
156
  parser: ye,
@@ -1,4 +1,4 @@
1
- import { $ as o, az as _e, as as D, ab as At, a5 as wt, aa as Ae, af as ie, a1 as ke, a2 as Fe, ae as Pe, a3 as ve, a4 as Ce, al as Le, ac as Ee } from "./CoachForm.js";
1
+ import { a1 as o, aB as _e, au as D, ad as At, a7 as wt, ac as Ae, ah as ie, a3 as ke, a4 as Fe, ag as Pe, a5 as ve, a6 as Ce, an as Le, ae as Ee } from "./CoachForm.js";
2
2
  import { s as zt } from "./redux-toolkit.modern.js";
3
3
  import { l as ee } from "./linear.js";
4
4
  var Vt = function() {