@altimateai/ui-components 0.0.6 → 0.0.8-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.
@@ -2002,15 +2002,45 @@ const Ci = Bt(
2002
2002
  secondary: "al-border-transparent al-bg-secondary al-text-secondary-foreground hover:al-bg-secondary/80",
2003
2003
  destructive: "al-border-transparent al-bg-destructive al-text-destructive-foreground hover:al-bg-destructive/80",
2004
2004
  outline: "al-text-foreground"
2005
+ },
2006
+ interactive: {
2007
+ true: "al-cursor-pointer focus:al-ring-2 focus:al-ring-ring focus:al-ring-offset-2",
2008
+ false: "al-cursor-default"
2005
2009
  }
2006
2010
  },
2007
2011
  defaultVariants: {
2008
- variant: "default"
2012
+ variant: "default",
2013
+ interactive: !1
2009
2014
  }
2010
2015
  }
2011
2016
  );
2012
- function ud({ className: e, variant: o, ...t }) {
2013
- return /* @__PURE__ */ r.jsx("div", { className: I(Ci({ variant: o }), e), ...t });
2017
+ function ud({
2018
+ className: e,
2019
+ variant: o,
2020
+ interactive: t = !0,
2021
+ onAction: n,
2022
+ children: a,
2023
+ role: l = "status",
2024
+ tabIndex: i,
2025
+ onKeyDown: c,
2026
+ ...d
2027
+ }) {
2028
+ const u = (f) => {
2029
+ t && n && (f.key === "Enter" || f.key === " ") && (f.preventDefault(), n()), c == null || c(f);
2030
+ };
2031
+ return /* @__PURE__ */ r.jsx(
2032
+ "div",
2033
+ {
2034
+ className: I(Ci({ variant: o, interactive: t }), e),
2035
+ role: t ? "button" : l,
2036
+ tabIndex: t ? 0 : i,
2037
+ onKeyDown: u,
2038
+ onClick: t ? n : void 0,
2039
+ "aria-disabled": t && !n,
2040
+ ...d,
2041
+ children: a
2042
+ }
2043
+ );
2014
2044
  }
2015
2045
  var lo = "Collapsible", [_i, ua] = ue(lo), [Ni, io] = _i(lo), pa = s.forwardRef(
2016
2046
  (e, o) => {
package/dist/index.css CHANGED
@@ -1 +1 @@
1
- div[data-radix-popper-content-wrapper]{z-index:100!important}
1
+ div[data-radix-popper-content-wrapper]{z-index:1000!important}
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { j as e, i as r, h as s, C as t, D as n, L as i, T as m, m as d, l as p, k as C } from "./main.js";
2
- import { Alert as l, Card as v, CardBody as T, CardFooter as u, CardImg as f, CardSubtitle as F, CardText as M, CardTitle as P, Col as k, Container as B, Fade as L, Form as g, FormFeedback as y, FormGroup as G, Input as I, InputGroup as S, Label as h, List as A, ListGroup as b, ListGroupItem as x, Modal as j, ModalBody as D, Nav as O, NavItem as w, NavLink as H, Offcanvas as N, OffcanvasBody as z, OffcanvasHeader as R, Popover as V, PopoverBody as W, PopoverHeader as X, Row as Y, Spinner as _ } from "reactstrap";
3
- import { A as q, C as E, I as J, S as K, T as Q } from "./redux-toolkit.modern.js";
4
- import { _ as Z, a4 as aa, X as oa, O as ea, a3 as ra, a2 as sa, Y as ta, W as na, a7 as ia, a8 as ma, a6 as da, a5 as pa, $ as Ca, a0 as ca, a1 as la, V as va } from "./CoachForm.js";
2
+ import { Alert as l, Card as v, CardBody as T, CardFooter as u, CardImg as f, CardSubtitle as F, CardText as M, CardTitle as P, Col as k, Container as B, Fade as L, Form as g, FormFeedback as y, FormGroup as G, Input as I, InputGroup as S, Label as h, List as A, ListGroup as b, ListGroupItem as x, Modal as j, ModalBody as D, Nav as O, NavItem as w, NavLink as H, Offcanvas as N, OffcanvasBody as z, OffcanvasHeader as R, Popover as V, PopoverBody as W, PopoverHeader as X, Row as Y, Spinner as Z } from "reactstrap";
3
+ import { A as $, C as q, I as E, S as J, T as K } from "./redux-toolkit.modern.js";
4
+ import { Z as U, a3 as aa, X as oa, O as ea, a2 as ra, a1 as sa, Y as ta, W as na, a6 as ia, a7 as ma, a5 as da, a4 as pa, _ as Ca, $ as ca, a0 as la, V as va } from "./CoachForm.js";
5
5
  export {
6
6
  l as Alert,
7
- q as ApiHelper,
8
- Z as Badge,
7
+ $ as ApiHelper,
8
+ U as Badge,
9
9
  v as Card,
10
10
  T as CardBody,
11
11
  u as CardFooter,
@@ -15,7 +15,7 @@ export {
15
15
  P as CardTitle,
16
16
  aa as CoachForm,
17
17
  e as CoachFormButton,
18
- E as CodeBlock,
18
+ q as CodeBlock,
19
19
  k as Col,
20
20
  B as Container,
21
21
  oa as ContentCategory,
@@ -27,7 +27,7 @@ export {
27
27
  g as Form,
28
28
  y as FormFeedback,
29
29
  G as FormGroup,
30
- J as IconButton,
30
+ E as IconButton,
31
31
  I as Input,
32
32
  S as InputGroup,
33
33
  h as Label,
@@ -55,8 +55,8 @@ export {
55
55
  ma as ProjectGovernorCheckSchema,
56
56
  da as ProjectGovernorCheckTypes,
57
57
  Y as Row,
58
- _ as Spinner,
59
- K as Stack,
58
+ Z as Spinner,
59
+ J as Stack,
60
60
  pa as TaskLabels,
61
61
  Ca as TeamMateActionType,
62
62
  ca as TeamMateAvailability,
@@ -64,7 +64,7 @@ export {
64
64
  d as TeamMates,
65
65
  la as TeamMatesConfig,
66
66
  p as TeammateActions,
67
- Q as Tooltip,
67
+ K as Tooltip,
68
68
  va as learningSchema,
69
69
  C as useTeamMateContext
70
70
  };
@@ -1,4 +1,5 @@
1
1
  import * as React$1 from 'react';
2
+ import { ReactNode } from 'react';
2
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
4
 
4
5
  declare const VIEWS_TYPE_COLOR: {
@@ -34,6 +35,11 @@ interface Table {
34
35
  interface ColumnMeta {
35
36
  [key: string]: string | number | boolean | null | undefined;
36
37
  }
38
+ interface Tag {
39
+ name: string;
40
+ rk?: string;
41
+ description: string;
42
+ }
37
43
  interface Column {
38
44
  name: string;
39
45
  table: string;
@@ -42,6 +48,7 @@ interface Column {
42
48
  is_transformation?: boolean;
43
49
  description: string;
44
50
  meta?: Map<string, ColumnMeta>;
51
+ tags?: Tag[];
45
52
  }
46
53
  interface Columns {
47
54
  id: string;
@@ -81,6 +88,14 @@ interface ExposureMetaData {
81
88
  metrics?: unknown[];
82
89
  meta?: Record<string, unknown>;
83
90
  }
91
+ interface SnowflakeStageMetadata {
92
+ rk: string;
93
+ name: string;
94
+ stage_url: string;
95
+ stage_region: string;
96
+ stage_type: string;
97
+ stage_owner: string;
98
+ }
84
99
  interface ViewsCodeModalArgs {
85
100
  table: string;
86
101
  column: string;
@@ -171,6 +186,10 @@ interface LineageProviderProps {
171
186
  lineageType: LineageType;
172
187
  allowSyncColumnsWithDB?: boolean;
173
188
  externalSidePanel?: boolean;
189
+ renderTags?: (entity: {
190
+ column: Column;
191
+ table_rk: string;
192
+ }) => ReactNode;
174
193
  }
175
194
  interface LineageRef {
176
195
  rerender: () => void;
@@ -202,4 +221,4 @@ declare const ViewsTypeBadge: ({ viewsType }: {
202
221
  viewsType: string;
203
222
  }) => react_jsx_runtime.JSX.Element;
204
223
 
205
- export { CLL, CllEvents, type CollectColumn, type Column, type ColumnLineage, type ColumnMeta, type Columns, type Confidence, type Details, type ExportFinalLineageArgs, type ExposureMetaData, _default as Lineage, type LineageRef, type ModalArgs, NodeIcon, type OpNodeArgs, type SelectedColumn, type StaticLineage, type StaticLineageDetails, type Table, type TableMeta, type ViewsCodeModalArgs, ViewsTypeBadge };
224
+ export { CLL, CllEvents, type CollectColumn, type Column, type ColumnLineage, type ColumnMeta, type Columns, type Confidence, type Details, type ExportFinalLineageArgs, type ExposureMetaData, _default as Lineage, type LineageRef, type ModalArgs, NodeIcon, type OpNodeArgs, type SelectedColumn, type SnowflakeStageMetadata, type StaticLineage, type StaticLineageDetails, type Table, type TableMeta, type Tag, type ViewsCodeModalArgs, ViewsTypeBadge };