impact-nova 1.7.24 → 1.7.26

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 (25) hide show
  1. package/dist/components/ui/ag-grid-react/cell-renderers/editors/input-cell-editor.js +45 -36
  2. package/dist/components/ui/ag-grid-react/cell-renderers/editors/split-cell-editor.d.ts +0 -1
  3. package/dist/components/ui/ag-grid-react/cell-renderers/editors/split-cell-editor.js +92 -75
  4. package/dist/components/ui/ag-grid-react/cell-renderers/split-cell-renderer.js +52 -41
  5. package/dist/components/ui/ag-grid-react/hooks/useStopEditingOnClickOutside.d.ts +5 -0
  6. package/dist/components/ui/alert.d.ts +1 -1
  7. package/dist/components/ui/data-table/data-table-column-list.js +119 -108
  8. package/dist/components/ui/nested-list/components/NestedListContent.d.ts +1 -0
  9. package/dist/components/ui/nested-list/components/NestedListContent.js +134 -63
  10. package/dist/components/ui/nested-list/components/SortableItem.js +65 -82
  11. package/dist/components/ui/nested-list/hooks/useNestedListDragDrop.js +176 -153
  12. package/dist/components/ui/nested-list/nested-list.js +190 -203
  13. package/dist/components/ui/select/components/Submenu.js +7 -5
  14. package/dist/components/ui/select/select.js +390 -369
  15. package/dist/i18n/defaultMessages.d.ts +3 -0
  16. package/dist/i18n/defaultMessages.js +14 -11
  17. package/dist/i18n/locales/de.js +4 -1
  18. package/dist/i18n/locales/es.js +4 -1
  19. package/dist/i18n/locales/hi.js +4 -1
  20. package/dist/i18n/locales/kn.js +4 -1
  21. package/dist/icons/assets/DraftNote.svg.js +5 -0
  22. package/dist/icons/index.d.ts +1 -0
  23. package/dist/icons/index.js +253 -251
  24. package/dist/impact-nova.css +1 -1
  25. package/package.json +1 -1
@@ -1,30 +1,30 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import E, { forwardRef as D, useRef as j, useImperativeHandle as I, useEffect as k, useCallback as s } from "react";
3
- const h = D((o, g) => {
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import j, { forwardRef as A, useRef as D, useImperativeHandle as I, useEffect as k, useCallback as f } from "react";
3
+ const g = A((o, h) => {
4
4
  const {
5
- value: r,
5
+ value: e,
6
6
  placeholder: v,
7
7
  min: b,
8
8
  max: y,
9
9
  step: w,
10
10
  maxLength: c,
11
- onValueChange: f,
11
+ onValueChange: i,
12
12
  colDef: x,
13
13
  className: N
14
- } = o, d = x?.cellDataType === "number" ? "number" : "text", a = d === "number", t = j(null), p = r && typeof r == "object" && "value" in r, m = p ? r.cellMetadata : void 0;
15
- I(g, () => ({
14
+ } = o, d = x?.cellDataType === "number" ? "number" : "text", a = d === "number", l = D(null), p = e && typeof e == "object" && "value" in e, m = p ? e.cellMetadata : void 0;
15
+ I(h, () => ({
16
16
  getValue() {
17
- const e = t.current?.value;
17
+ const t = l.current?.value;
18
18
  let n;
19
19
  if (a)
20
- if (!e || e === "" || e === "-")
20
+ if (!t || t === "" || t === "-")
21
21
  n = null;
22
22
  else {
23
- const u = Number(e);
23
+ const u = Number(t);
24
24
  n = isNaN(u) ? null : u;
25
25
  }
26
26
  else
27
- n = e === "" ? null : e;
27
+ n = t === "" ? null : t;
28
28
  return p ? {
29
29
  value: n,
30
30
  ...m !== void 0 && { cellMetadata: m }
@@ -37,11 +37,11 @@ const h = D((o, g) => {
37
37
  return !1;
38
38
  }
39
39
  }), []), k(() => {
40
- if (t.current) {
41
- const l = r && typeof r == "object" && "value" in r ? r.value : r;
42
- if (t.current.value = l != null ? String(l) : "", a) {
43
- const e = t.current, n = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value");
44
- Object.defineProperty(e, "value", {
40
+ if (l.current) {
41
+ const r = e && typeof e == "object" && "value" in e ? e.value : e;
42
+ if (l.current.value = r != null ? String(r) : "", a) {
43
+ const t = l.current, n = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value");
44
+ Object.defineProperty(t, "value", {
45
45
  get() {
46
46
  const u = this.valueAsNumber;
47
47
  return isNaN(u) ? n.get.call(this) : u;
@@ -52,37 +52,46 @@ const h = D((o, g) => {
52
52
  configurable: !0
53
53
  });
54
54
  }
55
- o.suppressAutoFocus || (t.current.focus(), t.current.select());
55
+ o.suppressAutoFocus || (l.current.focus(), l.current.select());
56
56
  }
57
57
  return () => {
58
58
  };
59
59
  }, []);
60
- const C = s((l) => {
61
- const e = t.current?.value;
62
- if (!(c && e && e.length > c)) {
63
- if (a && t.current) {
64
- const n = t.current.valueAsNumber;
65
- isNaN(n) || t.current.setAttribute("data-value", String(n));
60
+ const V = f((r) => {
61
+ const t = l.current?.value;
62
+ if (!(c && t && t.length > c)) {
63
+ if (a && l.current) {
64
+ const n = l.current.valueAsNumber;
65
+ isNaN(n) || l.current.setAttribute("data-value", String(n));
66
66
  }
67
- f?.(e);
67
+ i?.(t);
68
68
  }
69
- }, [c, f, a]), V = s((l) => {
70
- l.key === "Enter" || l.key === "Escape" || l.key === "Tab" || ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"].includes(l.key) && l.stopPropagation();
71
- }, []), A = s(() => {
69
+ }, [c, i, a]), C = f((r) => {
70
+ if (r.key === "Escape") {
71
+ if (r.stopPropagation(), l.current) {
72
+ const n = e && typeof e == "object" && "value" in e ? e.value : e;
73
+ l.current.value = n != null ? String(n) : "";
74
+ }
75
+ const t = e && typeof e == "object" && "value" in e ? e.value : e;
76
+ i?.(t != null ? String(t) : void 0), o.stopEditing?.();
77
+ return;
78
+ }
79
+ r.key === "Enter" || r.key === "Tab" || ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"].includes(r.key) && r.stopPropagation();
80
+ }, [e, i, o]), E = f(() => {
72
81
  o.stopEditing?.();
73
82
  }, [o, a]);
74
- return /* @__PURE__ */ i("div", { className: `w-full h-full flex items-center ag-cell-inner-padding in-ag-editable-cell-highlight ${N}`, children: /* @__PURE__ */ i(
83
+ return /* @__PURE__ */ s("div", { className: `w-full h-full flex items-center ag-cell-inner-padding in-ag-editable-cell-highlight ${N}`, children: /* @__PURE__ */ s(
75
84
  "div",
76
85
  {
77
86
  className: `flex w-full items-center rounded-[8px] bg-canvas-elevated px-1.5 h-7 ${a ? "justify-end text-right" : ""}`,
78
- children: /* @__PURE__ */ i(
87
+ children: /* @__PURE__ */ s(
79
88
  "input",
80
89
  {
81
- ref: t,
90
+ ref: l,
82
91
  type: d,
83
- onChange: C,
84
- onKeyDown: V,
85
- onBlur: A,
92
+ onChange: V,
93
+ onKeyDown: C,
94
+ onBlur: E,
86
95
  placeholder: v,
87
96
  className: `flex h-full w-full bg-transparent p-0 text-sm font-medium text-content outline-none placeholder:font-medium placeholder:text-content-empty ${a ? "text-right" : ""}`,
88
97
  min: b,
@@ -93,8 +102,8 @@ const h = D((o, g) => {
93
102
  }
94
103
  ) });
95
104
  });
96
- h.displayName = "InputCellEditor";
97
- const O = E.memo(h, () => !0);
105
+ g.displayName = "InputCellEditor";
106
+ const M = j.memo(g, () => !0);
98
107
  export {
99
- O as InputCellEditor
108
+ M as InputCellEditor
100
109
  };
@@ -41,7 +41,6 @@ export interface SplitCellEditorProps extends Omit<ICellEditorParams, 'context'>
41
41
  frameworkComponents?: Record<string, React.ComponentType<SubCellComponentProps>>;
42
42
  onCellUpdate?: (payload: CellUpdatePayload) => void;
43
43
  };
44
- /** Column-level value formatter (lowest priority: cell > row > split > column) */
45
44
  valueFormatter?: ValueFormatter;
46
45
  }
47
46
  export declare const SplitCellEditor: React.ForwardRefExoticComponent<SplitCellEditorProps & React.RefAttributes<unknown>>;
@@ -1,87 +1,104 @@
1
- import { jsx as f } from "react/jsx-runtime";
2
- import { forwardRef as P, useMemo as R, useState as k, useCallback as $ } from "react";
3
- import { resolveValueFormatter as j, applyValueFormatter as A, resolveCellEditable as O } from "../cell-renderer-utils.js";
4
- const G = P((x) => {
5
- const { splits: i, commonParams: m, data: s, node: a, api: p, column: v, context: d, value: t, colDef: o, valueFormatter: F } = x, K = R(() => i?.map((l) => {
6
- const e = l?.field?.split(".")?.pop() ?? "", n = t?.[e]?.value;
7
- return { valueKey: e, field: l.field, newValue: n };
8
- }) ?? [], [i, t]), [u, E] = k(K), U = $((l) => {
9
- const e = u.find((c) => c.field === l);
10
- if (!e)
1
+ import { jsx as K } from "react/jsx-runtime";
2
+ import { forwardRef as G, useMemo as C, useEffect as B, useState as H, useCallback as q } from "react";
3
+ import { resolveCellEditable as h, resolveValueFormatter as z, applyValueFormatter as J } from "../cell-renderer-utils.js";
4
+ const Q = G((L) => {
5
+ const { splits: l, commonParams: F, data: s, node: r, api: b, column: W, context: v, value: o, colDef: n, valueFormatter: N } = L, w = C(() => document.__splitCellLastClickY == null, []), j = C(() => document.__splitCellLastWasEditable !== !1, []), D = C(() => {
6
+ try {
7
+ const t = L.eGridCell;
8
+ if (!t || !l?.length) return 0;
9
+ if (w) {
10
+ const c = document.__splitCellLastActiveIndex;
11
+ if (c != null && c >= 0 && c < l.length) {
12
+ const m = s, k = typeof n?.editable == "boolean" ? n.editable : void 0, g = l[c], I = g?.field?.split(".")?.pop(), T = I ? o?.[I] : void 0, $ = h(k, g?.editable, m, T);
13
+ return document.__splitCellLastWasEditable = $, c;
14
+ }
15
+ const S = s, U = typeof n?.editable == "boolean" ? n.editable : void 0;
16
+ for (let m = 0; m < l.length; m++) {
17
+ const k = l[m], g = k?.field?.split(".")?.pop(), I = g ? o?.[g] : void 0;
18
+ if (h(U, k?.editable, S, I))
19
+ return document.__splitCellLastWasEditable = !0, m;
20
+ }
21
+ return 0;
22
+ }
23
+ const e = document.__splitCellLastClickY, a = t.getBoundingClientRect(), i = e - a.top, d = a.height / l.length, u = Math.floor(i / d), p = Math.max(0, Math.min(u, l.length - 1));
24
+ document.__splitCellLastClickY = void 0, document.__splitCellLastActiveIndex = p;
25
+ const E = s, R = typeof n?.editable == "boolean" ? n.editable : void 0, f = l[p], V = f?.field?.split(".")?.pop(), _ = V ? o?.[V] : void 0, x = h(R, f?.editable, E, _);
26
+ return document.__splitCellLastWasEditable = x, p;
27
+ } catch {
28
+ return 0;
29
+ }
30
+ }, [l, L, w, s, n, o]), A = C(() => {
31
+ if (!l?.length) return !1;
32
+ const t = l[D];
33
+ if (!t) return !1;
34
+ const e = s, a = typeof n?.editable == "boolean" ? n.editable : void 0, i = t.field?.split(".")?.pop(), d = i ? o?.[i] : void 0;
35
+ return !h(a, t.editable, e, d);
36
+ }, [l, D, s, n, o]);
37
+ B(() => {
38
+ (A || w && !j) && setTimeout(() => {
39
+ b?.stopEditing();
40
+ }, 0);
41
+ }, [A, w, j, b]);
42
+ const O = C(() => l?.map((t) => {
43
+ const e = t?.field?.split(".")?.pop() ?? "", a = o?.[e]?.value;
44
+ return { valueKey: e, field: t.field, newValue: a };
45
+ }) ?? [], [l, o]), [y, Y] = H(O), M = q((t) => {
46
+ const e = y.find((u) => u.field === t);
47
+ if (!e) return;
48
+ const a = o?.[e.valueKey]?.value;
49
+ if (String(e.newValue ?? "") === String(a ?? ""))
11
50
  return;
12
- const n = {
13
- api: p,
14
- colDef: o,
15
- column: v,
16
- context: d,
51
+ document.__splitCellLastWasEditable = !0;
52
+ const i = {
53
+ api: b,
54
+ colDef: n,
55
+ column: W,
56
+ context: v,
17
57
  data: s,
18
- field: o.field,
19
- node: a,
20
- rowIndex: a?.rowIndex ?? null,
21
- rowPinned: a?.rowPinned ?? void 0,
58
+ field: n.field,
59
+ node: r,
60
+ rowIndex: r?.rowIndex ?? null,
61
+ rowPinned: r?.rowPinned ?? void 0,
22
62
  source: "edit",
23
63
  type: "cellValueChanged",
24
64
  currentCellUpdate: e,
25
65
  newValue: { [e.valueKey]: { value: e.newValue } },
26
- oldValue: { [e.valueKey]: { value: t?.[e.valueKey]?.value } },
66
+ oldValue: { [e.valueKey]: { value: o?.[e.valueKey]?.value } },
27
67
  value: { [e.valueKey]: { value: e.newValue } }
28
- }, r = t?.[e.valueKey] ?? {};
29
- a.setDataValue(o.field, { ...t, [e.valueKey]: { ...r, value: e.newValue } }), d?.onCellUpdate?.(n);
30
- }, [u, p, o, v, d, s, a, t]), S = (l) => {
31
- if (typeof l == "string") {
32
- const e = p?.getGridOption("components");
33
- return d?.frameworkComponents?.[l] || e?.[l];
68
+ }, d = o?.[e.valueKey] ?? {};
69
+ r.setDataValue(n.field, { ...o, [e.valueKey]: { ...d, value: e.newValue } }), v?.onCellUpdate?.(i);
70
+ }, [y, b, n, W, v, s, r, o]), P = (t) => {
71
+ if (typeof t == "string") {
72
+ const e = b?.getGridOption("components");
73
+ return v?.frameworkComponents?.[t] || e?.[t];
34
74
  }
35
- return l;
75
+ return t;
36
76
  };
37
- return /* @__PURE__ */ f(
38
- "div",
39
- {
40
- style: { display: "grid", gridTemplateRows: `repeat(${i?.length}, 1fr)`, height: "100%", width: "100%" },
41
- children: i?.map((l, e) => {
42
- const n = l?.field?.split(".")?.pop(), r = t?.[n], c = r?.value, w = s, C = j(r, w, l?.valueFormatter, F ?? null), I = C ? A(C, c) : c?.toString(), N = typeof o?.editable == "boolean" ? o.editable : void 0, V = O(N, l.editable, w, r), g = V ? m.cellEditor : m.cellRenderer ? m.cellRenderer : void 0, h = g ? S(g) : void 0;
43
- return /* @__PURE__ */ f(
44
- "div",
45
- {
46
- className: "flex items-center max-h-full overflow-hidden",
47
- children: h ? /* @__PURE__ */ f(
48
- h,
49
- {
50
- context: d,
51
- data: s,
52
- value: r,
53
- onValueChange: (y) => {
54
- const b = u.find((D) => D.field === l.field);
55
- b ? b.newValue = y : E([...u, {
56
- valueKey: n,
57
- field: l.field,
58
- newValue: y
59
- }]);
60
- },
61
- valueFormatted: I,
62
- colDef: { ...l, editable: V },
63
- stopEditing: () => {
64
- U(l.field);
65
- },
66
- node: a,
67
- suppressAutoFocus: e !== 0,
68
- className: e !== i.length - 1 ? "border-b border-stroke-hairline" : ""
69
- }
70
- ) : /* @__PURE__ */ f(
71
- "div",
72
- {
73
- className: "w-full h-full flex items-center ag-cell-inner-padding overflow-hidden text-ellipsis whitespace-nowrap",
74
- children: "No cell found"
75
- }
76
- )
77
- },
78
- `${l.field}-${e}`
79
- );
80
- })
81
- }
82
- );
77
+ return /* @__PURE__ */ K("div", { style: { display: "grid", gridTemplateRows: `repeat(${l?.length}, 1fr)`, height: "100%", width: "100%" }, children: l?.map((t, e) => {
78
+ const a = t?.field?.split(".")?.pop(), i = o?.[a], d = i?.value, u = s, p = z(i, u, t?.valueFormatter, N ?? null), E = p ? J(p, d) : d?.toString(), R = typeof n?.editable == "boolean" ? n.editable : void 0, f = h(R, t.editable, u, i), V = e === D && f, _ = f ? F?.cellEditor ?? F?.cellRenderer : F?.cellRenderer ?? void 0, x = _ ? P(_) : void 0;
79
+ return /* @__PURE__ */ K("div", { className: "flex items-center max-h-full overflow-hidden", children: x ? /* @__PURE__ */ K(
80
+ x,
81
+ {
82
+ context: v,
83
+ data: s,
84
+ value: i,
85
+ onValueChange: (c) => {
86
+ const S = y.find((U) => U.field === t.field);
87
+ S ? S.newValue = c : Y([...y, { valueKey: a, field: t.field, newValue: c }]);
88
+ },
89
+ valueFormatted: E,
90
+ colDef: { ...t, editable: f },
91
+ stopEditing: () => {
92
+ M(t.field);
93
+ },
94
+ node: r,
95
+ suppressAutoFocus: !V,
96
+ className: e !== l.length - 1 ? "border-b border-stroke-hairline" : ""
97
+ }
98
+ ) : /* @__PURE__ */ K("div", { className: "w-full h-full flex items-center ag-cell-inner-padding overflow-hidden text-ellipsis whitespace-nowrap", children: String(E ?? d ?? "") }) }, `${t.field}-${e}`);
99
+ }) });
83
100
  });
84
- G.displayName = "SplitCellEditor";
101
+ Q.displayName = "SplitCellEditor";
85
102
  export {
86
- G as SplitCellEditor
103
+ Q as SplitCellEditor
87
104
  };
@@ -1,50 +1,61 @@
1
- import { jsx as o } from "react/jsx-runtime";
1
+ import { jsx as a } from "react/jsx-runtime";
2
2
  import "react";
3
- import { resolveCellEditable as V, resolveValueFormatter as x, applyValueFormatter as N } from "./cell-renderer-utils.js";
4
- const E = (v) => {
5
- const { splits: l, commonParams: n, data: i, node: h, api: c, column: b, context: s, value: g, colDef: d, valueFormatter: y } = v;
3
+ import { resolveCellEditable as R, resolveValueFormatter as V, applyValueFormatter as N } from "./cell-renderer-utils.js";
4
+ const D = (h) => {
5
+ const { splits: l, commonParams: i, data: c, node: v, api: s, column: g, context: d, value: b, colDef: m, valueFormatter: y } = h;
6
6
  if (!l || !Array.isArray(l)) return null;
7
- const w = (t) => {
8
- const e = t;
9
- if (typeof e == "string") {
10
- const a = c?.getGridOption("components");
11
- return s?.frameworkComponents?.[e] || a?.[e];
7
+ const C = (e) => {
8
+ const t = e;
9
+ if (typeof t == "string") {
10
+ const n = s?.getGridOption("components");
11
+ return d?.frameworkComponents?.[t] || n?.[t];
12
12
  }
13
- return e;
13
+ return t;
14
14
  };
15
- return /* @__PURE__ */ o("div", { style: { display: "grid", gridTemplateRows: `repeat(${l?.length}, 1fr)`, height: "100%", width: "100%" }, children: l?.map((t, e) => {
16
- const a = t?.field?.split(".")?.pop(), r = g?.[a], m = r?.value?.toString(), p = i, C = typeof d?.editable == "boolean" ? d.editable : void 0, F = V(C, t.editable, p, r), u = x(r, p, t?.valueFormatter, y ?? null), R = u ? N(u, m) : m, f = n?.cellRenderer && typeof n?.cellRenderer == "string" ? w(n?.cellRenderer) : void 0;
17
- return /* @__PURE__ */ o(
18
- "div",
19
- {
20
- className: "flex items-center overflow-hidden",
21
- "data-split-index": e,
22
- children: f ? /* @__PURE__ */ o(
23
- f,
24
- {
25
- node: h,
26
- api: c,
27
- column: b,
28
- context: s,
29
- data: i,
30
- value: r,
31
- colDef: { ...t, editable: F },
32
- valueFormatted: R,
33
- className: e !== l.length - 1 ? "border-b border-stroke-hairline" : ""
34
- }
35
- ) : /* @__PURE__ */ o(
15
+ return /* @__PURE__ */ a(
16
+ "div",
17
+ {
18
+ style: { display: "grid", gridTemplateRows: `repeat(${l?.length}, 1fr)`, height: "100%", width: "100%" },
19
+ onMouseDown: (e) => {
20
+ document.__splitCellLastClickY = e.clientY;
21
+ const t = e.currentTarget.getBoundingClientRect(), n = e.clientY - t.top, o = t.height / (l?.length || 1), r = Math.floor(n / o);
22
+ document.__splitCellLastActiveIndex = Math.max(0, Math.min(r, (l?.length || 1) - 1));
23
+ },
24
+ children: l?.map((e, t) => {
25
+ const n = e?.field?.split(".")?.pop(), o = b?.[n], r = o?.value?.toString(), p = c, w = typeof m?.editable == "boolean" ? m.editable : void 0, x = R(w, e.editable, p, o), u = V(o, p, e?.valueFormatter, y ?? null), F = u ? N(u, r) : r, f = i?.cellRenderer && typeof i?.cellRenderer == "string" ? C(i?.cellRenderer) : void 0;
26
+ return /* @__PURE__ */ a(
36
27
  "div",
37
28
  {
38
- className: "w-full h-full flex items-center ag-cell-inner-padding overflow-hidden text-ellipsis whitespace-nowrap",
39
- children: "No cell found"
40
- }
41
- )
42
- },
43
- `${t.field}-${e}`
44
- );
45
- }) });
29
+ className: "flex items-center overflow-hidden",
30
+ "data-split-index": t,
31
+ children: f ? /* @__PURE__ */ a(
32
+ f,
33
+ {
34
+ node: v,
35
+ api: s,
36
+ column: g,
37
+ context: d,
38
+ data: c,
39
+ value: o,
40
+ colDef: { ...e, editable: x },
41
+ valueFormatted: F,
42
+ className: t !== l.length - 1 ? "border-b border-stroke-hairline" : ""
43
+ }
44
+ ) : /* @__PURE__ */ a(
45
+ "div",
46
+ {
47
+ className: "w-full h-full flex items-center ag-cell-inner-padding overflow-hidden text-ellipsis whitespace-nowrap",
48
+ children: "No cell found"
49
+ }
50
+ )
51
+ },
52
+ `${e.field}-${t}`
53
+ );
54
+ })
55
+ }
56
+ );
46
57
  };
47
- E.displayName = "SplitCellRenderer";
58
+ D.displayName = "SplitCellRenderer";
48
59
  export {
49
- E as SplitCellRenderer
60
+ D as SplitCellRenderer
50
61
  };
@@ -0,0 +1,5 @@
1
+ import { GridApi } from 'ag-grid-community';
2
+ /**
3
+ * Stops AG Grid cell editing when user clicks outside the grid container.
4
+ */
5
+ export declare function useStopEditingOnClickOutside(gridApiRef: React.MutableRefObject<GridApi | null>, containerRef: React.MutableRefObject<HTMLElement | null>): void;
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from "react";
3
3
  declare const alertVariants: (props?: {
4
- variant?: "default" | "info" | "warning" | "error" | "success";
4
+ variant?: "default" | "error" | "info" | "warning" | "success";
5
5
  emphasis?: "flat" | "elevated";
6
6
  } & import('class-variance-authority/types').ClassProp) => string;
7
7
  export interface AlertProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {