@altimateai/ui-components 0.0.1-beta.3 → 0.0.1-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.
- package/dist/Accordion.js +43 -114
- package/dist/Badge.js +1 -1
- package/dist/CoachForm.js +7125 -7242
- package/dist/DbtDocsRenderer.js +833 -2651
- package/dist/Tooltip.js +115 -0
- package/dist/chatbot/index.d.ts +7 -3
- package/dist/chatbot/index.js +100 -96
- package/dist/chatbotV2/index.d.ts +10 -2
- package/dist/flowchart-elk-definition-170a3958.js +1 -1
- package/dist/index.d.ts +28 -30
- package/dist/index.js +1 -1
- package/dist/index2.js +1 -5
- package/dist/lineage/index.d.ts +9 -3
- package/dist/lineage/index.js +2284 -2710
- package/dist/main.js +49 -184
- package/dist/mindmap-definition-44684416.js +1 -1
- package/dist/redux-toolkit.modern.js +1 -1
- package/dist/shadcn/index.d.ts +3 -4
- package/dist/shadcn/index.js +352 -382
- package/dist/storybook/Accordion.stories.tsx +5 -14
- package/dist/storybook/Alert.stories.tsx +3 -7
- package/dist/storybook/AlertDialog.stories.tsx +7 -12
- package/dist/storybook/Button.stories.tsx +7 -27
- package/dist/storybook/Card.stories.tsx +1 -8
- package/dist/storybook/Checkbox.stories.tsx +7 -16
- package/dist/storybook/Form.stories.tsx +3 -9
- package/dist/storybook/HoverCard.stories.tsx +7 -13
- package/dist/storybook/Label.stories.tsx +1 -1
- package/dist/storybook/Pagination.stories.tsx +1 -4
- package/dist/storybook/Popover.stories.tsx +1 -3
- package/dist/storybook/Progress.stories.tsx +2 -2
- package/dist/storybook/RadioGroup.stories.tsx +4 -7
- package/dist/storybook/ScrollArea.stories.tsx +11 -30
- package/dist/storybook/Select.stories.tsx +1 -1
- package/dist/storybook/Sheet.stories.tsx +1 -7
- package/dist/storybook/Sidebar.stories.tsx +4 -4
- package/dist/storybook/Slider.stories.tsx +2 -4
- package/dist/storybook/Switch.stories.tsx +4 -13
- package/dist/storybook/Textarea.stories.tsx +1 -1
- package/dist/storybook/Toast.stories.tsx +7 -11
- package/dist/storybook/Tooltip.stories.tsx +2 -7
- package/dist/{types-PVxbm0tZ.d.ts → types-FVWfXDNw.d.ts} +10 -5
- package/dist/v4.js +524 -514
- package/package.json +2 -2
- package/dist/Stack.js +0 -132
- /package/dist/{Stack.css → v4.css} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@altimateai/ui-components",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.5",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/AltimateAI/altimate-components.git"
|
|
@@ -52,4 +52,4 @@
|
|
|
52
52
|
"react": "^17.0.0 || ^18.0.0",
|
|
53
53
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
54
54
|
}
|
|
55
|
-
}
|
|
55
|
+
}
|
package/dist/Stack.js
DELETED
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import { j as l } from "./index2.js";
|
|
2
|
-
import { createContext as f, Component as h, createElement as u, isValidElement as m, useState as p, useRef as g, forwardRef as y } from "react";
|
|
3
|
-
import { Tooltip as v } from "reactstrap";
|
|
4
|
-
import './Stack.css';var S = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
5
|
-
function T(n) {
|
|
6
|
-
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
7
|
-
}
|
|
8
|
-
const E = f(null), c = {
|
|
9
|
-
didCatch: !1,
|
|
10
|
-
error: null
|
|
11
|
-
};
|
|
12
|
-
class b extends h {
|
|
13
|
-
constructor(t) {
|
|
14
|
-
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = c;
|
|
15
|
-
}
|
|
16
|
-
static getDerivedStateFromError(t) {
|
|
17
|
-
return {
|
|
18
|
-
didCatch: !0,
|
|
19
|
-
error: t
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
resetErrorBoundary() {
|
|
23
|
-
const {
|
|
24
|
-
error: t
|
|
25
|
-
} = this.state;
|
|
26
|
-
if (t !== null) {
|
|
27
|
-
for (var o, e, r = arguments.length, a = new Array(r), s = 0; s < r; s++)
|
|
28
|
-
a[s] = arguments[s];
|
|
29
|
-
(o = (e = this.props).onReset) === null || o === void 0 || o.call(e, {
|
|
30
|
-
args: a,
|
|
31
|
-
reason: "imperative-api"
|
|
32
|
-
}), this.setState(c);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
componentDidCatch(t, o) {
|
|
36
|
-
var e, r;
|
|
37
|
-
(e = (r = this.props).onError) === null || e === void 0 || e.call(r, t, o);
|
|
38
|
-
}
|
|
39
|
-
componentDidUpdate(t, o) {
|
|
40
|
-
const {
|
|
41
|
-
didCatch: e
|
|
42
|
-
} = this.state, {
|
|
43
|
-
resetKeys: r
|
|
44
|
-
} = this.props;
|
|
45
|
-
if (e && o.error !== null && j(t.resetKeys, r)) {
|
|
46
|
-
var a, s;
|
|
47
|
-
(a = (s = this.props).onReset) === null || a === void 0 || a.call(s, {
|
|
48
|
-
next: r,
|
|
49
|
-
prev: t.resetKeys,
|
|
50
|
-
reason: "keys"
|
|
51
|
-
}), this.setState(c);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
render() {
|
|
55
|
-
const {
|
|
56
|
-
children: t,
|
|
57
|
-
fallbackRender: o,
|
|
58
|
-
FallbackComponent: e,
|
|
59
|
-
fallback: r
|
|
60
|
-
} = this.props, {
|
|
61
|
-
didCatch: a,
|
|
62
|
-
error: s
|
|
63
|
-
} = this.state;
|
|
64
|
-
let i = t;
|
|
65
|
-
if (a) {
|
|
66
|
-
const d = {
|
|
67
|
-
error: s,
|
|
68
|
-
resetErrorBoundary: this.resetErrorBoundary
|
|
69
|
-
};
|
|
70
|
-
if (typeof o == "function")
|
|
71
|
-
i = o(d);
|
|
72
|
-
else if (e)
|
|
73
|
-
i = u(e, d);
|
|
74
|
-
else if (r === null || m(r))
|
|
75
|
-
i = r;
|
|
76
|
-
else
|
|
77
|
-
throw s;
|
|
78
|
-
}
|
|
79
|
-
return u(E.Provider, {
|
|
80
|
-
value: {
|
|
81
|
-
didCatch: a,
|
|
82
|
-
error: s,
|
|
83
|
-
resetErrorBoundary: this.resetErrorBoundary
|
|
84
|
-
}
|
|
85
|
-
}, i);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
function j() {
|
|
89
|
-
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
90
|
-
return n.length !== t.length || n.some((o, e) => !Object.is(o, t[e]));
|
|
91
|
-
}
|
|
92
|
-
const O = (n) => {
|
|
93
|
-
const [t, o] = p(!1), e = () => o(!t), r = g(
|
|
94
|
-
(n.id ?? `tooltip-${Math.random().toString(36).substring(3, 9)}`).replace(/\s/g, "-")
|
|
95
|
-
);
|
|
96
|
-
return /* @__PURE__ */ l.jsxs(b, { fallback: /* @__PURE__ */ l.jsx("span", { id: r.current, children: n.children }), children: [
|
|
97
|
-
/* @__PURE__ */ l.jsx("span", { id: r.current, children: n.children }),
|
|
98
|
-
n.title ? /* @__PURE__ */ l.jsx(
|
|
99
|
-
v,
|
|
100
|
-
{
|
|
101
|
-
isOpen: t,
|
|
102
|
-
target: r.current,
|
|
103
|
-
toggle: e,
|
|
104
|
-
className: n.className,
|
|
105
|
-
placement: "top",
|
|
106
|
-
children: n.title
|
|
107
|
-
}
|
|
108
|
-
) : null
|
|
109
|
-
] });
|
|
110
|
-
}, C = "_stack_73h55_1", k = {
|
|
111
|
-
stack: C
|
|
112
|
-
}, D = y(function({
|
|
113
|
-
children: t,
|
|
114
|
-
direction: o = "row",
|
|
115
|
-
...e
|
|
116
|
-
}, r) {
|
|
117
|
-
return /* @__PURE__ */ l.jsx(
|
|
118
|
-
"div",
|
|
119
|
-
{
|
|
120
|
-
...e,
|
|
121
|
-
className: `${e.className} ${k.stack} stack-${o}`,
|
|
122
|
-
ref: r,
|
|
123
|
-
children: t
|
|
124
|
-
}
|
|
125
|
-
);
|
|
126
|
-
});
|
|
127
|
-
export {
|
|
128
|
-
D as S,
|
|
129
|
-
O as T,
|
|
130
|
-
S as c,
|
|
131
|
-
T as g
|
|
132
|
-
};
|
|
File without changes
|