@altimateai/ui-components 0.0.23 → 0.0.24-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/{Button-Cj79i7Go.d.ts → Button-C4jhPGlR.d.ts} +2 -2
- package/dist/CoachForm.js +12573 -12414
- package/dist/Form.js +3658 -0
- package/dist/Stack.js +2911 -1993
- package/dist/Switch.js +128 -0
- package/dist/Table.js +22 -0
- package/dist/chatbotV2/index.d.ts +2 -2
- package/dist/index.d.ts +22 -25
- package/dist/index.js +32 -64
- package/dist/lineage/index.js +2335 -2354
- package/dist/main.css +1 -1
- package/dist/main.js +840 -842
- package/dist/redux-toolkit.modern.js +910 -1014
- package/dist/shadcn/index.d.ts +18 -14
- package/dist/shadcn/index.js +2724 -3420
- package/dist/storybook/Badge.stories.tsx +7 -0
- package/dist/storybook/Card.stories.tsx +2 -2
- package/dist/storybook/Label.stories.tsx +2 -2
- package/dist/storybook/Typography.stories.tsx +14 -14
- package/dist/{types-MLsaGOQh.d.ts → types-CPlzEfL7.d.ts} +31 -3
- package/package.json +2 -2
- package/dist/Label.js +0 -48
- package/dist/NativeSelect.js +0 -3918
package/dist/Switch.js
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { j as o } from "./index2.js";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import { a as _, u as H, b as I, P as g, d as M, e as B, f as q, c as S } from "./Stack.js";
|
|
4
|
+
var v = "Switch", [z, X] = _(v), [A, O] = z(v), x = s.forwardRef(
|
|
5
|
+
(e, a) => {
|
|
6
|
+
const {
|
|
7
|
+
__scopeSwitch: t,
|
|
8
|
+
name: r,
|
|
9
|
+
checked: n,
|
|
10
|
+
defaultChecked: u,
|
|
11
|
+
required: i,
|
|
12
|
+
disabled: c,
|
|
13
|
+
value: l = "on",
|
|
14
|
+
onCheckedChange: b,
|
|
15
|
+
form: m,
|
|
16
|
+
...p
|
|
17
|
+
} = e, [d, j] = s.useState(null), E = H(a, (f) => j(f)), k = s.useRef(!1), w = d ? m || !!d.closest("form") : !0, [h = !1, N] = I({
|
|
18
|
+
prop: n,
|
|
19
|
+
defaultProp: u,
|
|
20
|
+
onChange: b
|
|
21
|
+
});
|
|
22
|
+
return /* @__PURE__ */ o.jsxs(A, { scope: t, checked: h, disabled: c, children: [
|
|
23
|
+
/* @__PURE__ */ o.jsx(
|
|
24
|
+
g.button,
|
|
25
|
+
{
|
|
26
|
+
type: "button",
|
|
27
|
+
role: "switch",
|
|
28
|
+
"aria-checked": h,
|
|
29
|
+
"aria-required": i,
|
|
30
|
+
"data-state": P(h),
|
|
31
|
+
"data-disabled": c ? "" : void 0,
|
|
32
|
+
disabled: c,
|
|
33
|
+
value: l,
|
|
34
|
+
...p,
|
|
35
|
+
ref: E,
|
|
36
|
+
onClick: M(e.onClick, (f) => {
|
|
37
|
+
N((T) => !T), w && (k.current = f.isPropagationStopped(), k.current || f.stopPropagation());
|
|
38
|
+
})
|
|
39
|
+
}
|
|
40
|
+
),
|
|
41
|
+
w && /* @__PURE__ */ o.jsx(
|
|
42
|
+
D,
|
|
43
|
+
{
|
|
44
|
+
control: d,
|
|
45
|
+
bubbles: !k.current,
|
|
46
|
+
name: r,
|
|
47
|
+
value: l,
|
|
48
|
+
checked: h,
|
|
49
|
+
required: i,
|
|
50
|
+
disabled: c,
|
|
51
|
+
form: m,
|
|
52
|
+
style: { transform: "translateX(-100%)" }
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
] });
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
x.displayName = v;
|
|
59
|
+
var C = "SwitchThumb", y = s.forwardRef(
|
|
60
|
+
(e, a) => {
|
|
61
|
+
const { __scopeSwitch: t, ...r } = e, n = O(C, t);
|
|
62
|
+
return /* @__PURE__ */ o.jsx(
|
|
63
|
+
g.span,
|
|
64
|
+
{
|
|
65
|
+
"data-state": P(n.checked),
|
|
66
|
+
"data-disabled": n.disabled ? "" : void 0,
|
|
67
|
+
...r,
|
|
68
|
+
ref: a
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
y.displayName = C;
|
|
74
|
+
var D = (e) => {
|
|
75
|
+
const { control: a, checked: t, bubbles: r = !0, ...n } = e, u = s.useRef(null), i = B(t), c = q(a);
|
|
76
|
+
return s.useEffect(() => {
|
|
77
|
+
const l = u.current, b = window.HTMLInputElement.prototype, p = Object.getOwnPropertyDescriptor(b, "checked").set;
|
|
78
|
+
if (i !== t && p) {
|
|
79
|
+
const d = new Event("click", { bubbles: r });
|
|
80
|
+
p.call(l, t), l.dispatchEvent(d);
|
|
81
|
+
}
|
|
82
|
+
}, [i, t, r]), /* @__PURE__ */ o.jsx(
|
|
83
|
+
"input",
|
|
84
|
+
{
|
|
85
|
+
type: "checkbox",
|
|
86
|
+
"aria-hidden": !0,
|
|
87
|
+
defaultChecked: t,
|
|
88
|
+
...n,
|
|
89
|
+
tabIndex: -1,
|
|
90
|
+
ref: u,
|
|
91
|
+
style: {
|
|
92
|
+
...e.style,
|
|
93
|
+
...c,
|
|
94
|
+
position: "absolute",
|
|
95
|
+
pointerEvents: "none",
|
|
96
|
+
opacity: 0,
|
|
97
|
+
margin: 0
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
};
|
|
102
|
+
function P(e) {
|
|
103
|
+
return e ? "checked" : "unchecked";
|
|
104
|
+
}
|
|
105
|
+
var R = x, F = y;
|
|
106
|
+
const L = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
|
|
107
|
+
R,
|
|
108
|
+
{
|
|
109
|
+
className: S(
|
|
110
|
+
"al-peer al-inline-flex al-h-6 al-w-11 al-shrink-0 al-cursor-pointer al-items-center al-rounded-full al-border-2 al-border-transparent al-transition-colors focus-visible:al-outline-none focus-visible:al-ring-2 focus-visible:al-ring-ring focus-visible:al-ring-offset-2 focus-visible:al-ring-offset-background disabled:al-cursor-not-allowed disabled:al-opacity-50 data-[state=checked]:al-bg-primary data-[state=unchecked]:al-bg-input",
|
|
111
|
+
e
|
|
112
|
+
),
|
|
113
|
+
...a,
|
|
114
|
+
ref: t,
|
|
115
|
+
children: /* @__PURE__ */ o.jsx(
|
|
116
|
+
F,
|
|
117
|
+
{
|
|
118
|
+
className: S(
|
|
119
|
+
"al-pointer-events-none al-block al-h-5 al-w-5 al-rounded-full al-bg-background al-shadow-lg al-ring-0 al-transition-transform data-[state=checked]:al-translate-x-5 data-[state=unchecked]:al-translate-x-0"
|
|
120
|
+
)
|
|
121
|
+
}
|
|
122
|
+
)
|
|
123
|
+
}
|
|
124
|
+
));
|
|
125
|
+
L.displayName = R.displayName;
|
|
126
|
+
export {
|
|
127
|
+
L as S
|
|
128
|
+
};
|
package/dist/Table.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { j as t } from "./index2.js";
|
|
2
|
+
import { forwardRef as o } from "react";
|
|
3
|
+
import { c as e } from "./Stack.js";
|
|
4
|
+
const i = o(
|
|
5
|
+
({ className: a, isOpen: l = !1, children: s, ...r }, m) => l ? /* @__PURE__ */ t.jsx("div", { ref: m, className: e("al-transition-all", a), ...r, children: s }) : null
|
|
6
|
+
);
|
|
7
|
+
i.displayName = "Collapse";
|
|
8
|
+
const n = o(
|
|
9
|
+
({ className: a, ...l }, s) => /* @__PURE__ */ t.jsx(
|
|
10
|
+
"table",
|
|
11
|
+
{
|
|
12
|
+
ref: s,
|
|
13
|
+
className: e("al-w-full al-caption-bottom al-text-sm", a),
|
|
14
|
+
...l
|
|
15
|
+
}
|
|
16
|
+
)
|
|
17
|
+
);
|
|
18
|
+
n.displayName = "Table";
|
|
19
|
+
export {
|
|
20
|
+
i as C,
|
|
21
|
+
n as T
|
|
22
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default, { FC } from 'react';
|
|
2
|
-
import { j as ChatbotProps, k as ChatbotProviderProps, m as ChatState, A as Artifact, n as ContextOption, I as InteractionRequest, o as ChatMessage, p as AgentAction, q as ChatResponse, i as Citation } from '../types-
|
|
3
|
-
export {
|
|
2
|
+
import { j as ChatbotProps, k as ChatbotProviderProps, m as ChatState, A as Artifact, n as ContextOption, I as InteractionRequest, o as ChatMessage, p as AgentAction, q as ChatResponse, i as Citation } from '../types-CPlzEfL7.js';
|
|
3
|
+
export { E as AgentStreamResponse, s as AssistantMeta, t as ChatSession, v as ChatbotUrls, F as Feedback, u as FileUploadProps, D as FinalResponseData, x as InteractionChoice, w as InteractionType, r as LoadingState, B as ProgressUpdate, y as TodoItem, z as ToolUsageData } from '../types-CPlzEfL7.js';
|
|
4
4
|
import { UnknownAction } from '@reduxjs/toolkit';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import 'zod';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { BadgeProps } from 'reactstrap';
|
|
2
|
-
export { Alert, Card, CardBody, CardFooter, CardImg, CardSubtitle, CardText, CardTitle, Col, Container, Fade, Form, FormFeedback, FormGroup, Input, InputGroup, Label, List, ListGroup, ListGroupItem, Modal, ModalBody, Nav, NavItem, NavLink, Offcanvas, OffcanvasBody, OffcanvasHeader, Popover, PopoverBody, PopoverHeader, Row, Spinner } from 'reactstrap';
|
|
3
1
|
import * as React$1 from 'react';
|
|
4
|
-
import { ButtonHTMLAttributes, ReactNode,
|
|
5
|
-
import { B as ButtonProps } from './Button-
|
|
2
|
+
import { HTMLAttributes, ButtonHTMLAttributes, ReactNode, FC, MouseEvent } from 'react';
|
|
3
|
+
import { B as ButtonProps } from './Button-C4jhPGlR.js';
|
|
6
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
|
-
import { T as TaskLabels, a as TeamMateContextProps, b as TeamMateState, c as TeamMateConfig, d as TeamMateActionType, e as TeamMateAvailability } from './types-
|
|
8
|
-
export { i as Citation, f as CoachAiConfirmationResponse, C as CoachAiResponse, g as ContentCategory, L as Learning, P as PersonalizationScope, h as TeamMateComponentProps, l as learningSchema } from './types-
|
|
5
|
+
import { T as TaskLabels, a as TeamMateContextProps, b as TeamMateState, c as TeamMateConfig, d as TeamMateActionType, e as TeamMateAvailability } from './types-CPlzEfL7.js';
|
|
6
|
+
export { i as Citation, f as CoachAiConfirmationResponse, C as CoachAiResponse, g as ContentCategory, L as Learning, P as PersonalizationScope, h as TeamMateComponentProps, l as learningSchema } from './types-CPlzEfL7.js';
|
|
9
7
|
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
10
8
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
11
9
|
import * as immer from 'immer';
|
|
@@ -13,25 +11,29 @@ import { z } from 'zod';
|
|
|
13
11
|
import 'class-variance-authority/types';
|
|
14
12
|
import 'class-variance-authority';
|
|
15
13
|
|
|
16
|
-
interface
|
|
17
|
-
|
|
14
|
+
interface CollapseProps extends HTMLAttributes<HTMLDivElement> {
|
|
15
|
+
isOpen?: boolean;
|
|
18
16
|
}
|
|
19
|
-
declare const
|
|
17
|
+
declare const Collapse: React$1.ForwardRefExoticComponent<CollapseProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
20
18
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
className?: string;
|
|
19
|
+
declare const Table: React$1.ForwardRefExoticComponent<HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>>;
|
|
20
|
+
|
|
21
|
+
interface SpinnerProps extends HTMLAttributes<HTMLDivElement> {
|
|
22
|
+
size?: "sm" | "md" | "lg";
|
|
26
23
|
}
|
|
27
|
-
declare const
|
|
24
|
+
declare const Spinner: React$1.ForwardRefExoticComponent<SpinnerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
28
25
|
|
|
29
|
-
interface Props$7 extends
|
|
26
|
+
interface Props$7 extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
27
|
+
variant?: ButtonProps["variant"];
|
|
28
|
+
}
|
|
29
|
+
declare const IconButton: (props: Props$7) => JSX.Element;
|
|
30
|
+
|
|
31
|
+
interface Props$6 extends ButtonProps {
|
|
30
32
|
loading: boolean;
|
|
31
33
|
}
|
|
32
|
-
declare const LoadingButton: ({ loading, ...rest }: Props$
|
|
34
|
+
declare const LoadingButton: ({ loading, ...rest }: Props$6) => JSX.Element;
|
|
33
35
|
|
|
34
|
-
interface Props$
|
|
36
|
+
interface Props$5 {
|
|
35
37
|
code: string;
|
|
36
38
|
language: "sql" | "yaml" | "markdown" | "json" | "javascript";
|
|
37
39
|
fileName?: string;
|
|
@@ -41,7 +43,7 @@ interface Props$6 {
|
|
|
41
43
|
className?: string;
|
|
42
44
|
titleActions?: ReactNode;
|
|
43
45
|
}
|
|
44
|
-
declare const CodeBlockComponent: ({ code, language, fileName, editorTheme, theme, showLineNumbers, className, titleActions, }: Props$
|
|
46
|
+
declare const CodeBlockComponent: ({ code, language, fileName, editorTheme, theme, showLineNumbers, className, titleActions, }: Props$5) => JSX.Element;
|
|
45
47
|
|
|
46
48
|
type SpacingSize = "none" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl";
|
|
47
49
|
interface StackProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -55,11 +57,6 @@ interface StackProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
55
57
|
}
|
|
56
58
|
declare const Stack: React$1.ForwardRefExoticComponent<StackProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
57
59
|
|
|
58
|
-
interface Props$5 extends BadgeProps {
|
|
59
|
-
tooltip: Parameters<typeof Tooltip>[0]["title"];
|
|
60
|
-
}
|
|
61
|
-
declare const Badge: ({ tooltip, ...props }: Props$5) => react_jsx_runtime.JSX.Element;
|
|
62
|
-
|
|
63
60
|
interface MermaidDiagramProps {
|
|
64
61
|
content: string;
|
|
65
62
|
id: string;
|
|
@@ -275,4 +272,4 @@ interface ProjectGovernorCheck extends z.infer<typeof ProjectGovernorCheckSchema
|
|
|
275
272
|
id: string;
|
|
276
273
|
}
|
|
277
274
|
|
|
278
|
-
export { ApiHelper,
|
|
275
|
+
export { ApiHelper, CoachForm, CoachFormButton, CodeBlockComponent as CodeBlock, Collapse, type Conversation, type ConversationGroup, ConversationGroupProvider, ConversationInputForm, ConversationSources, DbtDocs, type DbtDocsShareDetails, IconButton, LearningsPage as Learnings, LoadingButton, Markdown, MermaidDiagram, Popconfirm, ProjectGovernorAllowedFiles, type ProjectGovernorCheck, type ProjectGovernorCheckConfirmationResponse, type ProjectGovernorCheckFormValues, ProjectGovernorCheckSchema, ProjectGovernorCheckTypes, type ProjectGovernorCheckValidateResponse, Spinner, Stack, Table, TaskLabels, TeamMateActionType, TeamMateAvailability, TeamMateConfig, TeamMateContextProps, TeamMateProvider, TeamMateState, TeamMates, TeamMatesConfig, TeammateActions, useTeamMateContext };
|
package/dist/index.js
CHANGED
|
@@ -1,71 +1,39 @@
|
|
|
1
|
-
import { j as e, i as
|
|
2
|
-
import {
|
|
3
|
-
import { A as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { j as e, i as s, h as r, C as t, D as n, L as i, T as m, m as c, l as C, k as p } from "./main.js";
|
|
2
|
+
import { C as T, T as v } from "./Table.js";
|
|
3
|
+
import { a4 as P, Y as d, P as f, a3 as h, a2 as k, Z as u, X as g, a7 as x, a8 as A, a6 as S, a1 as b, a5 as j, _ as y, $ as B, a0 as D, W as F } from "./CoachForm.js";
|
|
4
|
+
import { A as L, C as I, I as w } from "./redux-toolkit.modern.js";
|
|
5
|
+
import { Z as z } from "./Stack.js";
|
|
6
6
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
U as Badge,
|
|
10
|
-
v as Card,
|
|
11
|
-
T as CardBody,
|
|
12
|
-
u as CardFooter,
|
|
13
|
-
f as CardImg,
|
|
14
|
-
P as CardSubtitle,
|
|
15
|
-
F as CardText,
|
|
16
|
-
M as CardTitle,
|
|
17
|
-
V as CoachForm,
|
|
7
|
+
L as ApiHelper,
|
|
8
|
+
P as CoachForm,
|
|
18
9
|
e as CoachFormButton,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
r as
|
|
24
|
-
s as ConversationInputForm,
|
|
10
|
+
I as CodeBlock,
|
|
11
|
+
T as Collapse,
|
|
12
|
+
d as ContentCategory,
|
|
13
|
+
s as ConversationGroupProvider,
|
|
14
|
+
r as ConversationInputForm,
|
|
25
15
|
t as ConversationSources,
|
|
26
16
|
n as DbtDocs,
|
|
27
|
-
|
|
28
|
-
g as Form,
|
|
29
|
-
y as FormFeedback,
|
|
30
|
-
G as FormGroup,
|
|
31
|
-
J as IconButton,
|
|
32
|
-
I as Input,
|
|
33
|
-
S as InputGroup,
|
|
34
|
-
h as Label,
|
|
17
|
+
w as IconButton,
|
|
35
18
|
i as Learnings,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
sa as PersonalizationScope,
|
|
51
|
-
ta as Popconfirm,
|
|
52
|
-
W as Popover,
|
|
53
|
-
X as PopoverBody,
|
|
54
|
-
Y as PopoverHeader,
|
|
55
|
-
na as ProjectGovernorAllowedFiles,
|
|
56
|
-
ia as ProjectGovernorCheckSchema,
|
|
57
|
-
ma as ProjectGovernorCheckTypes,
|
|
58
|
-
Z as Row,
|
|
59
|
-
_ as Spinner,
|
|
60
|
-
Ta as Stack,
|
|
61
|
-
da as TaskLabels,
|
|
62
|
-
pa as TeamMateActionType,
|
|
63
|
-
Ca as TeamMateAvailability,
|
|
19
|
+
f as LoadingButton,
|
|
20
|
+
h as Markdown,
|
|
21
|
+
k as MermaidDiagram,
|
|
22
|
+
u as PersonalizationScope,
|
|
23
|
+
g as Popconfirm,
|
|
24
|
+
x as ProjectGovernorAllowedFiles,
|
|
25
|
+
A as ProjectGovernorCheckSchema,
|
|
26
|
+
S as ProjectGovernorCheckTypes,
|
|
27
|
+
b as Spinner,
|
|
28
|
+
z as Stack,
|
|
29
|
+
v as Table,
|
|
30
|
+
j as TaskLabels,
|
|
31
|
+
y as TeamMateActionType,
|
|
32
|
+
B as TeamMateAvailability,
|
|
64
33
|
m as TeamMateProvider,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
C as useTeamMateContext
|
|
34
|
+
c as TeamMates,
|
|
35
|
+
D as TeamMatesConfig,
|
|
36
|
+
C as TeammateActions,
|
|
37
|
+
F as learningSchema,
|
|
38
|
+
p as useTeamMateContext
|
|
71
39
|
};
|