@altimateai/ui-components 0.0.1-beta.10
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-BKBSxoPA.d.ts +14 -0
- package/dist/CoachForm.css +1 -0
- package/dist/CoachForm.js +40505 -0
- package/dist/DbtDocsRenderer.js +45647 -0
- package/dist/NativeSelect.js +8994 -0
- package/dist/assets/icons/index.d.ts +96 -0
- package/dist/assets/icons/index.js +49 -0
- package/dist/chatbotV2/index.d.ts +80 -0
- package/dist/chatbotV2/index.js +20 -0
- package/dist/flowchart-elk-definition-170a3958.js +46393 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +278 -0
- package/dist/index.js +72 -0
- package/dist/index2.js +682 -0
- package/dist/is_dark.js +8 -0
- package/dist/lineage/index.d.ts +189 -0
- package/dist/lineage/index.js +6680 -0
- package/dist/main.css +1 -0
- package/dist/main.js +4568 -0
- package/dist/mindmap-definition-44684416.js +20514 -0
- package/dist/redux-toolkit.css +1 -0
- package/dist/redux-toolkit.modern.js +12579 -0
- package/dist/shadcn/index.d.ts +521 -0
- package/dist/shadcn/index.js +6054 -0
- package/dist/storybook/Accordion.stories.tsx +52 -0
- package/dist/storybook/Alert.stories.tsx +61 -0
- package/dist/storybook/AlertDialog.stories.tsx +161 -0
- package/dist/storybook/Avatar.stories.tsx +58 -0
- package/dist/storybook/Badge.stories.tsx +36 -0
- package/dist/storybook/Button.stories.tsx +109 -0
- package/dist/storybook/Card.stories.tsx +69 -0
- package/dist/storybook/Checkbox.stories.tsx +65 -0
- package/dist/storybook/Command.stories.tsx +35 -0
- package/dist/storybook/DropdownMenu.stories.tsx +36 -0
- package/dist/storybook/Form.stories.tsx +114 -0
- package/dist/storybook/HoverCard.stories.tsx +99 -0
- package/dist/storybook/Input.stories.tsx +53 -0
- package/dist/storybook/Label.stories.tsx +42 -0
- package/dist/storybook/Menubar.stories.tsx +159 -0
- package/dist/storybook/Pagination.stories.tsx +152 -0
- package/dist/storybook/Popover.stories.tsx +23 -0
- package/dist/storybook/Progress.stories.tsx +89 -0
- package/dist/storybook/RadioGroup.stories.tsx +58 -0
- package/dist/storybook/Resizable.stories.tsx +119 -0
- package/dist/storybook/ScrollArea.stories.tsx +101 -0
- package/dist/storybook/Select.stories.tsx +118 -0
- package/dist/storybook/Sheet.stories.tsx +69 -0
- package/dist/storybook/Sidebar.stories.tsx +97 -0
- package/dist/storybook/Slider.stories.tsx +79 -0
- package/dist/storybook/Switch.stories.tsx +90 -0
- package/dist/storybook/Textarea.stories.tsx +50 -0
- package/dist/storybook/Toast.stories.tsx +107 -0
- package/dist/storybook/Tooltip.stories.tsx +28 -0
- package/dist/storybook/Typography.stories.tsx +178 -0
- package/dist/timeline-definition-8e5a9bc6.js +825 -0
- package/dist/types-6QSONCz1.d.ts +249 -0
- package/package.json +55 -0
- package/readme.md +11 -0
package/dist/is_dark.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { H as s, U as r } from "./CoachForm.js";
|
|
2
|
+
const i = (n) => {
|
|
3
|
+
const { r: t, g: a, b: o } = s.parse(n), e = 0.2126 * r.channel.toLinear(t) + 0.7152 * r.channel.toLinear(a) + 0.0722 * r.channel.toLinear(o);
|
|
4
|
+
return r.lang.round(e);
|
|
5
|
+
}, c = (n) => i(n) >= 0.5, u = (n) => !c(n);
|
|
6
|
+
export {
|
|
7
|
+
u as i
|
|
8
|
+
};
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
|
|
3
|
+
declare const VIEWS_TYPE_COLOR: {
|
|
4
|
+
Original: string;
|
|
5
|
+
Alias: string;
|
|
6
|
+
Transformation: string;
|
|
7
|
+
Unchanged: string;
|
|
8
|
+
"Not sure": string;
|
|
9
|
+
"Non select": string;
|
|
10
|
+
};
|
|
11
|
+
type ViewsTypes = keyof typeof VIEWS_TYPE_COLOR;
|
|
12
|
+
|
|
13
|
+
interface TableMeta {
|
|
14
|
+
[key: string]: string | number | boolean | null | undefined;
|
|
15
|
+
}
|
|
16
|
+
interface Table {
|
|
17
|
+
table: string;
|
|
18
|
+
label: string;
|
|
19
|
+
url?: string;
|
|
20
|
+
nodeType: string;
|
|
21
|
+
materialization?: string;
|
|
22
|
+
downstreamCount: number;
|
|
23
|
+
upstreamCount: number;
|
|
24
|
+
isExternalProject: boolean;
|
|
25
|
+
tests: {
|
|
26
|
+
key: string;
|
|
27
|
+
path: string;
|
|
28
|
+
}[];
|
|
29
|
+
schema?: string;
|
|
30
|
+
meta?: Map<string, TableMeta>;
|
|
31
|
+
}
|
|
32
|
+
interface ColumnMeta {
|
|
33
|
+
[key: string]: string | number | boolean | null | undefined;
|
|
34
|
+
}
|
|
35
|
+
interface Column {
|
|
36
|
+
name: string;
|
|
37
|
+
table: string;
|
|
38
|
+
datatype?: string;
|
|
39
|
+
can_lineage_expand: boolean;
|
|
40
|
+
description: string;
|
|
41
|
+
meta?: Map<string, ColumnMeta>;
|
|
42
|
+
}
|
|
43
|
+
interface Columns {
|
|
44
|
+
id: string;
|
|
45
|
+
purpose: string;
|
|
46
|
+
columns: Column[];
|
|
47
|
+
}
|
|
48
|
+
interface ColumnLineage {
|
|
49
|
+
source: [string, string];
|
|
50
|
+
target: [string, string];
|
|
51
|
+
type: string;
|
|
52
|
+
viewsType?: ViewsTypes;
|
|
53
|
+
viewsCode?: [string, string][];
|
|
54
|
+
}
|
|
55
|
+
interface ExposureMetaData {
|
|
56
|
+
description?: string;
|
|
57
|
+
depends_on: {
|
|
58
|
+
macros: [string];
|
|
59
|
+
nodes: [string];
|
|
60
|
+
sources: [string];
|
|
61
|
+
};
|
|
62
|
+
label?: string;
|
|
63
|
+
maturity?: string;
|
|
64
|
+
name: string;
|
|
65
|
+
owner: {
|
|
66
|
+
email: string;
|
|
67
|
+
name: string;
|
|
68
|
+
};
|
|
69
|
+
tags: [string];
|
|
70
|
+
url?: string;
|
|
71
|
+
type: string;
|
|
72
|
+
config: {
|
|
73
|
+
enabled: boolean;
|
|
74
|
+
};
|
|
75
|
+
path: string;
|
|
76
|
+
unique_id: string;
|
|
77
|
+
sources?: [string];
|
|
78
|
+
metrics?: unknown[];
|
|
79
|
+
meta?: Record<string, unknown>;
|
|
80
|
+
}
|
|
81
|
+
interface ViewsCodeModalArgs {
|
|
82
|
+
table: string;
|
|
83
|
+
column: string;
|
|
84
|
+
viewsType: ViewsTypes;
|
|
85
|
+
viewsCode: Record<string, [string, string][]>;
|
|
86
|
+
nodeType: string;
|
|
87
|
+
}
|
|
88
|
+
interface OpNodeArgs {
|
|
89
|
+
op_type: string;
|
|
90
|
+
op_code: string;
|
|
91
|
+
}
|
|
92
|
+
interface ModalArgs {
|
|
93
|
+
type: "none" | "views_code" | "op_node";
|
|
94
|
+
args?: ViewsCodeModalArgs | OpNodeArgs;
|
|
95
|
+
}
|
|
96
|
+
interface SelectedColumn {
|
|
97
|
+
name: string;
|
|
98
|
+
table: string;
|
|
99
|
+
}
|
|
100
|
+
interface Confidence {
|
|
101
|
+
confidence: string;
|
|
102
|
+
operator_list?: string[];
|
|
103
|
+
}
|
|
104
|
+
type Details = Record<string, {
|
|
105
|
+
columns?: {
|
|
106
|
+
name: string;
|
|
107
|
+
datatype?: string;
|
|
108
|
+
expression?: string;
|
|
109
|
+
}[];
|
|
110
|
+
sql?: string;
|
|
111
|
+
nodeType?: string;
|
|
112
|
+
nodeId?: string;
|
|
113
|
+
name?: string;
|
|
114
|
+
type: string;
|
|
115
|
+
purpose?: string;
|
|
116
|
+
}>;
|
|
117
|
+
type StaticLineageDetails = Record<string, {
|
|
118
|
+
columns?: {
|
|
119
|
+
name: string;
|
|
120
|
+
expression?: string;
|
|
121
|
+
datatype?: string;
|
|
122
|
+
}[];
|
|
123
|
+
name?: string;
|
|
124
|
+
sql?: string;
|
|
125
|
+
type: string;
|
|
126
|
+
nodeId?: string;
|
|
127
|
+
node_id?: string;
|
|
128
|
+
nodeType?: string;
|
|
129
|
+
expression?: string;
|
|
130
|
+
join_type?: string;
|
|
131
|
+
}>;
|
|
132
|
+
interface CollectColumn {
|
|
133
|
+
column: string;
|
|
134
|
+
viewsType?: ViewsTypes;
|
|
135
|
+
}
|
|
136
|
+
interface StaticLineage {
|
|
137
|
+
selectedColumn: {
|
|
138
|
+
table: string;
|
|
139
|
+
name: string;
|
|
140
|
+
};
|
|
141
|
+
collectColumns: Record<string, CollectColumn[]>;
|
|
142
|
+
columnEdges?: [string, string, string][];
|
|
143
|
+
tableEdges: [string, string][];
|
|
144
|
+
details: Details;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
type LineageType = "static" | "dynamic" | "sql";
|
|
148
|
+
interface SqlLineage {
|
|
149
|
+
tableEdges: [string, string][];
|
|
150
|
+
details: StaticLineageDetails;
|
|
151
|
+
errorMessage?: undefined;
|
|
152
|
+
nodePositions?: Record<string, [number, number]>;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
interface LineageProviderProps {
|
|
156
|
+
dynamicLineage?: {
|
|
157
|
+
node?: Table;
|
|
158
|
+
aiEnabled: boolean;
|
|
159
|
+
};
|
|
160
|
+
sqlLineage?: SqlLineage;
|
|
161
|
+
staticLineage?: StaticLineage;
|
|
162
|
+
theme: "dark" | "light";
|
|
163
|
+
lineageType: LineageType;
|
|
164
|
+
allowSyncColumnsWithDB?: boolean;
|
|
165
|
+
externalSidePanel?: boolean;
|
|
166
|
+
}
|
|
167
|
+
interface LineageRef {
|
|
168
|
+
rerender: () => void;
|
|
169
|
+
}
|
|
170
|
+
declare const _default: React$1.ForwardRefExoticComponent<LineageProviderProps & React$1.RefAttributes<LineageRef>>;
|
|
171
|
+
|
|
172
|
+
declare enum CllEvents {
|
|
173
|
+
CANCEL = "cancel",
|
|
174
|
+
END = "end",
|
|
175
|
+
START = "start"
|
|
176
|
+
}
|
|
177
|
+
declare class CLL {
|
|
178
|
+
static isCancelled: boolean;
|
|
179
|
+
static inProgress: boolean;
|
|
180
|
+
static linkCount: number;
|
|
181
|
+
static onCancel(): void;
|
|
182
|
+
static cancel(): void;
|
|
183
|
+
static start(): void;
|
|
184
|
+
static end(): void;
|
|
185
|
+
static addLinks(n: number): void;
|
|
186
|
+
static showCllInProgressMsg(): void;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export { CLL, CllEvents, type CollectColumn, type Column, type ColumnLineage, type ColumnMeta, type Columns, type Confidence, type Details, type ExposureMetaData, _default as Lineage, type LineageRef, type ModalArgs, type OpNodeArgs, type SelectedColumn, type StaticLineage, type StaticLineageDetails, type Table, type TableMeta, type ViewsCodeModalArgs };
|