@altimateai/ui-components 0.0.1-beta.2 → 0.0.1-beta.4

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 (60) hide show
  1. package/dist/Accordion.js +43 -114
  2. package/dist/Badge.js +1 -1
  3. package/dist/CoachForm.js +6285 -6583
  4. package/dist/DbtDocsRenderer.js +833 -2651
  5. package/dist/Tooltip.js +115 -0
  6. package/dist/assets/icons/index.js +44 -39
  7. package/dist/chatbot/index.js +100 -96
  8. package/dist/chatbotV2/index.js +16 -3
  9. package/dist/flowchart-elk-definition-170a3958.js +2 -2
  10. package/dist/index.js +16 -16
  11. package/dist/index2.js +194 -193
  12. package/dist/is_dark.js +1 -1
  13. package/dist/lineage/index.js +2284 -2710
  14. package/dist/main.js +50 -185
  15. package/dist/mindmap-definition-44684416.js +2 -2
  16. package/dist/redux-toolkit.modern.js +1 -1
  17. package/dist/shadcn/index.js +352 -382
  18. package/dist/timeline-definition-8e5a9bc6.js +1 -1
  19. package/dist/v4.js +524 -514
  20. package/package.json +54 -54
  21. package/readme.md +11 -0
  22. package/dist/Stack.js +0 -132
  23. package/dist/assets/icons/index.d.ts +0 -86
  24. package/dist/chatbot/index.d.ts +0 -39
  25. package/dist/chatbotV2/index.d.ts +0 -111
  26. package/dist/index.d.ts +0 -217
  27. package/dist/lineage/index.d.ts +0 -183
  28. package/dist/shadcn/index.d.ts +0 -517
  29. package/dist/storybook/Accordion.stories.tsx +0 -61
  30. package/dist/storybook/Alert.stories.tsx +0 -65
  31. package/dist/storybook/AlertDialog.stories.tsx +0 -166
  32. package/dist/storybook/Avatar.stories.tsx +0 -58
  33. package/dist/storybook/Badge.stories.tsx +0 -36
  34. package/dist/storybook/Button.stories.tsx +0 -129
  35. package/dist/storybook/Card.stories.tsx +0 -76
  36. package/dist/storybook/Checkbox.stories.tsx +0 -74
  37. package/dist/storybook/Command.stories.tsx +0 -35
  38. package/dist/storybook/DropdownMenu.stories.tsx +0 -36
  39. package/dist/storybook/Form.stories.tsx +0 -120
  40. package/dist/storybook/HoverCard.stories.tsx +0 -105
  41. package/dist/storybook/Input.stories.tsx +0 -53
  42. package/dist/storybook/Label.stories.tsx +0 -42
  43. package/dist/storybook/Menubar.stories.tsx +0 -159
  44. package/dist/storybook/Pagination.stories.tsx +0 -155
  45. package/dist/storybook/Popover.stories.tsx +0 -25
  46. package/dist/storybook/Progress.stories.tsx +0 -89
  47. package/dist/storybook/RadioGroup.stories.tsx +0 -61
  48. package/dist/storybook/Resizable.stories.tsx +0 -119
  49. package/dist/storybook/ScrollArea.stories.tsx +0 -120
  50. package/dist/storybook/Select.stories.tsx +0 -95
  51. package/dist/storybook/Sheet.stories.tsx +0 -75
  52. package/dist/storybook/Sidebar.stories.tsx +0 -97
  53. package/dist/storybook/Slider.stories.tsx +0 -81
  54. package/dist/storybook/Switch.stories.tsx +0 -99
  55. package/dist/storybook/Textarea.stories.tsx +0 -50
  56. package/dist/storybook/Toast.stories.tsx +0 -111
  57. package/dist/storybook/Tooltip.stories.tsx +0 -33
  58. package/dist/storybook/Typography.stories.tsx +0 -178
  59. package/dist/types-PVxbm0tZ.d.ts +0 -99
  60. /package/dist/{Stack.css → v4.css} +0 -0
package/dist/index.d.ts DELETED
@@ -1,217 +0,0 @@
1
- import { ButtonHTMLAttributes, ReactNode } from 'react';
2
- import { ButtonProps, BadgeProps } from 'reactstrap';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import { T as TaskLabels, a as TeamMateContextProps, b as TeamMateState, c as TeamMateConfig, d as TeamMateActionType, e as TeamMateAvailability } from './types-PVxbm0tZ.js';
5
- export { f as CoachAiConfirmationResponse, C as CoachAiResponse, g as ContentCategory, L as Learning, P as PersonalizationScope, l as learningSchema } from './types-PVxbm0tZ.js';
6
- import * as _reduxjs_toolkit from '@reduxjs/toolkit';
7
- import { PayloadAction } from '@reduxjs/toolkit';
8
- import * as immer from 'immer';
9
- import { z } from 'zod';
10
-
11
- interface Props$a extends ButtonHTMLAttributes<HTMLButtonElement> {
12
- color?: string;
13
- }
14
- declare const IconButton: (props: Props$a) => JSX.Element;
15
-
16
- interface Props$9 {
17
- children: ReactNode;
18
- title?: string | ReactNode;
19
- id?: string;
20
- className?: string;
21
- }
22
- declare const Tooltip: (props: Props$9) => JSX.Element;
23
-
24
- interface Props$8 extends ButtonProps {
25
- loading: boolean;
26
- }
27
- declare const LoadingButton: ({ loading, ...rest }: Props$8) => JSX.Element;
28
-
29
- interface Props$7 {
30
- code: string;
31
- language: "sql" | "yaml" | "markdown" | "json" | "javascript";
32
- fileName?: string;
33
- showLineNumbers?: boolean;
34
- editorTheme?: "vs" | "vsc-dark-plus" | "solarizedLight" | "tomorrow";
35
- theme: "light" | "dark";
36
- className?: string;
37
- titleActions?: ReactNode;
38
- }
39
- declare const CodeBlockComponent: ({ code, language, fileName, editorTheme, theme, showLineNumbers, className, titleActions, }: Props$7) => JSX.Element;
40
-
41
- interface Props$6 extends BadgeProps {
42
- tooltip: Parameters<typeof Tooltip>[0]["title"];
43
- }
44
- declare const Badge: ({ tooltip, ...props }: Props$6) => react_jsx_runtime.JSX.Element;
45
-
46
- declare const ApiHelper: {
47
- get: <T>(_url: string, _data?: Record<string, unknown>, _request?: RequestInit) => Promise<T>;
48
- post: <T>(_url: string, _data: Record<string, unknown>, _request?: RequestInit) => Promise<T>;
49
- };
50
-
51
- interface User {
52
- display_name: string;
53
- first_name: string;
54
- last_name: string;
55
- id: number;
56
- }
57
-
58
- interface DbtDocsShareDetails {
59
- catalog_presigned_url?: string;
60
- manifest_presigned_url?: string;
61
- share_id: number;
62
- }
63
-
64
- interface Conversation {
65
- timestamp: string;
66
- user_id: number;
67
- message: string;
68
- conversation_id: number;
69
- }
70
- interface ConversationGroup {
71
- owner: number;
72
- conversation_group_id: number;
73
- conversations: Conversation[];
74
- status: "Pending" | "Expired";
75
- meta: {
76
- field?: "description";
77
- column?: string;
78
- filePath: string;
79
- highlight: string;
80
- uniqueId?: string;
81
- resource_type?: string;
82
- range: {
83
- end: {
84
- line: number;
85
- character: number;
86
- };
87
- start: {
88
- line: number;
89
- character: number;
90
- };
91
- };
92
- };
93
- }
94
- declare enum ConversationSources {
95
- DBT_DOCS = "dbt-docs",
96
- DOCUMENTATION_EDITOR = "documentation-editor",
97
- SAAS = "saas"
98
- }
99
-
100
- interface Props$5 {
101
- shareId: number;
102
- userId?: number;
103
- conversationGroupId?: number;
104
- source: ConversationSources;
105
- }
106
- declare const DbtDocs: ({ shareId, userId, conversationGroupId, source }: Props$5) => react_jsx_runtime.JSX.Element;
107
-
108
- interface Props$4 {
109
- comment: string;
110
- setComment: (comment: string) => void;
111
- loading: boolean;
112
- users: User[];
113
- currentUser: User | null;
114
- placeholder?: string;
115
- onEnterKeypress?: () => void;
116
- }
117
- declare const ConversationInputForm: ({ comment, setComment, loading, users, currentUser, placeholder, onEnterKeypress, }: Props$4) => react_jsx_runtime.JSX.Element;
118
-
119
- interface Props$3 {
120
- currentUser?: User;
121
- conversationGroup?: ConversationGroup;
122
- shareId?: DbtDocsShareDetails["share_id"];
123
- isSelected: boolean;
124
- users: Record<User["id"], User>;
125
- onSelect: () => void;
126
- onResolve: () => void;
127
- onReplyAdd: () => void;
128
- source: ConversationSources;
129
- }
130
- declare const ConversationGroupProvider: ({ currentUser, conversationGroup, shareId, onSelect, isSelected, users, onResolve, onReplyAdd, source, }: Props$3) => JSX.Element | null;
131
-
132
- declare const TeamMateProvider: ({ children, }: {
133
- children: ReactNode;
134
- }) => JSX.Element;
135
-
136
- interface CoachFormProps {
137
- taskLabel: keyof typeof TaskLabels;
138
- context?: Record<string, unknown>;
139
- extra?: Record<string, unknown>;
140
- onClose: (data?: unknown) => void;
141
- }
142
- declare const CoachForm: (props: CoachFormProps) => react_jsx_runtime.JSX.Element;
143
-
144
- interface Props$2 {
145
- }
146
- declare const CoachFormButton: ({}: Props$2) => react_jsx_runtime.JSX.Element;
147
-
148
- declare const useTeamMateContext: () => TeamMateContextProps;
149
-
150
- declare const TeammateActions: _reduxjs_toolkit.CaseReducerActions<{
151
- setShowCoachingForm: (state: immer.WritableDraft<TeamMateState>, action: PayloadAction<TeamMateState["showCoachingForm"]>) => void;
152
- }, "teamMate">;
153
-
154
- interface Props$1 {
155
- filters?: {
156
- taskLabel?: keyof typeof TaskLabels;
157
- };
158
- learning?: string | null;
159
- }
160
- declare const LearningsPage: ({ filters, learning }: Props$1) => react_jsx_runtime.JSX.Element;
161
-
162
- declare const TeamMatesConfig: TeamMateConfig[];
163
-
164
- interface Props {
165
- onSelect: (selected: (typeof TeamMatesConfig)[0], action: TeamMateActionType) => Promise<boolean | undefined>;
166
- client: keyof typeof TeamMateAvailability;
167
- }
168
- declare const TeamMates: ({ onSelect, client }: Props) => react_jsx_runtime.JSX.Element;
169
-
170
- declare enum ProjectGovernorCheckTypes {
171
- DOCUMENTATION = "documentation",
172
- TESTS = "tests",
173
- MODEL = "model",
174
- FILE_STRUCTURE = "file_structure"
175
- }
176
- declare enum ProjectGovernorAllowedFiles {
177
- Manifest = "Manifest",
178
- Catalog = "Catalog"
179
- }
180
- interface ProjectGovernorCheckFormValues {
181
- description: string;
182
- type: ProjectGovernorCheckTypes;
183
- }
184
- interface ProjectGovernorCheckValidateResponse {
185
- name: string;
186
- description: string;
187
- }
188
- interface ProjectGovernorCheckConfirmationResponse {
189
- ok: boolean;
190
- }
191
- declare const ProjectGovernorCheckSchema: z.ZodObject<{
192
- name: z.ZodString;
193
- alias: z.ZodString;
194
- type: z.ZodEnum<[string, ...string[]]>;
195
- description: z.ZodString;
196
- files_required: z.ZodArray<z.ZodEnum<[string, ...string[]]>, "many">;
197
- config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
198
- }, "strip", z.ZodTypeAny, {
199
- type: string;
200
- name: string;
201
- description: string;
202
- alias: string;
203
- files_required: string[];
204
- config: Record<string, unknown>;
205
- }, {
206
- type: string;
207
- name: string;
208
- description: string;
209
- alias: string;
210
- files_required: string[];
211
- config: Record<string, unknown>;
212
- }>;
213
- interface ProjectGovernorCheck extends z.infer<typeof ProjectGovernorCheckSchema> {
214
- id: string;
215
- }
216
-
217
- export { ApiHelper, Badge, CoachForm, CoachFormButton, CodeBlockComponent as CodeBlock, type Conversation, type ConversationGroup, ConversationGroupProvider, ConversationInputForm, ConversationSources, DbtDocs, type DbtDocsShareDetails, IconButton, LearningsPage as Learnings, LoadingButton, ProjectGovernorAllowedFiles, type ProjectGovernorCheck, type ProjectGovernorCheckConfirmationResponse, type ProjectGovernorCheckFormValues, ProjectGovernorCheckSchema, ProjectGovernorCheckTypes, type ProjectGovernorCheckValidateResponse, TaskLabels, TeamMateActionType, TeamMateAvailability, TeamMateConfig, TeamMateContextProps, TeamMateProvider, TeamMateState, TeamMates, TeamMatesConfig, TeammateActions, Tooltip, useTeamMateContext };
@@ -1,183 +0,0 @@
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 Table {
14
- table: string;
15
- label: string;
16
- url?: string;
17
- nodeType: string;
18
- materialization?: string;
19
- downstreamCount: number;
20
- upstreamCount: number;
21
- isExternalProject: boolean;
22
- tests: {
23
- key: string;
24
- path: string;
25
- }[];
26
- schema?: string;
27
- meta?: Map<any, any>;
28
- }
29
- interface Column {
30
- name: string;
31
- table: string;
32
- datatype?: string;
33
- can_lineage_expand: boolean;
34
- description: string;
35
- meta?: Map<any, any>;
36
- }
37
- interface Columns {
38
- id: string;
39
- purpose: string;
40
- columns: Column[];
41
- }
42
- interface ColumnLineage {
43
- source: [string, string];
44
- target: [string, string];
45
- type: string;
46
- viewsType?: ViewsTypes;
47
- viewsCode?: [string, string][];
48
- }
49
- interface ExposureMetaData {
50
- description?: string;
51
- depends_on: {
52
- macros: [string];
53
- nodes: [string];
54
- sources: [string];
55
- };
56
- label?: string;
57
- maturity?: string;
58
- name: string;
59
- owner: {
60
- email: string;
61
- name: string;
62
- };
63
- tags: [string];
64
- url?: string;
65
- type: string;
66
- config: {
67
- enabled: boolean;
68
- };
69
- path: string;
70
- unique_id: string;
71
- sources?: [string];
72
- metrics?: unknown[];
73
- meta?: Record<string, unknown>;
74
- }
75
- interface ViewsCodeModalArgs {
76
- table: string;
77
- column: string;
78
- viewsType: ViewsTypes;
79
- viewsCode: Record<string, [string, string][]>;
80
- nodeType: string;
81
- }
82
- interface OpNodeArgs {
83
- op_type: string;
84
- op_code: string;
85
- }
86
- interface ModalArgs {
87
- type: "none" | "views_code" | "op_node";
88
- args?: ViewsCodeModalArgs | OpNodeArgs;
89
- }
90
- interface SelectedColumn {
91
- name: string;
92
- table: string;
93
- }
94
- interface Confidence {
95
- confidence: string;
96
- operator_list?: string[];
97
- }
98
- type Details = Record<string, {
99
- columns?: {
100
- name: string;
101
- datatype?: string;
102
- expression?: string;
103
- }[];
104
- sql?: string;
105
- nodeType?: string;
106
- nodeId?: string;
107
- name?: string;
108
- type: string;
109
- purpose?: string;
110
- }>;
111
- type StaticLineageDetails = Record<string, {
112
- columns?: {
113
- name: string;
114
- expression?: string;
115
- datatype?: string;
116
- }[];
117
- name?: string;
118
- sql?: string;
119
- type: string;
120
- nodeId?: string;
121
- node_id?: string;
122
- nodeType?: string;
123
- expression?: string;
124
- join_type?: string;
125
- }>;
126
- interface CollectColumn {
127
- column: string;
128
- viewsType?: ViewsTypes;
129
- }
130
- interface StaticLineage {
131
- selectedColumn: {
132
- table: string;
133
- name: string;
134
- };
135
- collectColumns: Record<string, CollectColumn[]>;
136
- columnEdges?: [string, string, string][];
137
- tableEdges: [string, string][];
138
- details: Details;
139
- }
140
-
141
- type LineageType = "static" | "dynamic" | "sql";
142
- interface SqlLineage {
143
- tableEdges: [string, string][];
144
- details: StaticLineageDetails;
145
- errorMessage?: undefined;
146
- nodePositions?: Record<string, [number, number]>;
147
- }
148
-
149
- interface LineageProviderProps {
150
- dynamicLineage?: {
151
- node?: Table;
152
- aiEnabled: boolean;
153
- };
154
- sqlLineage?: SqlLineage;
155
- staticLineage?: StaticLineage;
156
- theme: "dark" | "light";
157
- lineageType: LineageType;
158
- allowSyncColumnsWithDB?: boolean;
159
- externalSidePanel?: boolean;
160
- }
161
- interface LineageRef {
162
- rerender: () => void;
163
- }
164
- declare const _default: React$1.ForwardRefExoticComponent<LineageProviderProps & React$1.RefAttributes<LineageRef>>;
165
-
166
- declare enum CllEvents {
167
- CANCEL = "cancel",
168
- END = "end",
169
- START = "start"
170
- }
171
- declare class CLL {
172
- static isCancelled: boolean;
173
- static inProgress: boolean;
174
- static linkCount: number;
175
- static onCancel(): void;
176
- static cancel(): void;
177
- static start(): void;
178
- static end(): void;
179
- static addLinks(n: number): void;
180
- static showCllInProgressMsg(): void;
181
- }
182
-
183
- export { CLL, CllEvents, type CollectColumn, type Column, type ColumnLineage, 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 ViewsCodeModalArgs };