@alphakits/ui 2.4.3 → 2.4.5

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 (41) hide show
  1. package/dist/calendar/component.js +32 -31
  2. package/dist/calendar/components/months-table/component.js +22 -23
  3. package/dist/calendar/components/months-table/index.css +1 -1
  4. package/dist/calendar/components/months-table/index.module.css.js +4 -6
  5. package/dist/calendar/components/select-button/index.css +1 -1
  6. package/dist/calendar/index.css +1 -1
  7. package/dist/calendar-input/component.js +124 -121
  8. package/dist/checkbox-lists/mock.data.d.ts +81 -0
  9. package/dist/checkbox-lists/mock.data.js +207 -0
  10. package/dist/collapsable-row/fixtures.data.d.ts +99 -0
  11. package/dist/collapsable-row/fixtures.data.js +196 -0
  12. package/dist/confirm-popup/component.d.ts +21 -0
  13. package/dist/confirm-popup/component.js +138 -0
  14. package/dist/confirm-popup/index.css +1 -0
  15. package/dist/confirm-popup/index.d.ts +1 -0
  16. package/dist/confirm-popup/index.js +6 -0
  17. package/dist/confirm-popup/index.module.css.js +23 -0
  18. package/dist/form/component.js +16 -16
  19. package/dist/form/templates/filters-form/index.js +17 -17
  20. package/dist/form/templates/rest-form/form.d.ts +1 -1
  21. package/dist/form/templates/rest-form/form.js +72 -67
  22. package/dist/form/templates/rest-form/index.d.ts +1 -0
  23. package/dist/index.d.ts +1 -0
  24. package/dist/index.js +298 -293
  25. package/dist/modal/components/modals/modal.js +50 -40
  26. package/dist/modal/hooks/use-modal.js +11 -11
  27. package/dist/modal/types.d.ts +2 -1
  28. package/dist/popover/component.js +72 -55
  29. package/dist/radio-groups/mock.data.d.ts +9 -0
  30. package/dist/radio-groups/mock.data.js +82 -0
  31. package/dist/select/components/base-select/component.js +73 -73
  32. package/dist/select/utils.js +23 -23
  33. package/dist/theme-provider/default-themes.d.ts +4 -0
  34. package/dist/theme-provider/default-themes.js +4 -0
  35. package/dist/toast-plate/component.js +47 -46
  36. package/dist/toast-plate/index.css +1 -1
  37. package/dist/toast-plate/index.module.css.js +26 -24
  38. package/dist/utils/index.js +26 -25
  39. package/dist/utils/show-toast/index.d.ts +1 -0
  40. package/dist/utils/show-toast/index.js +17 -9
  41. package/package.json +9 -27
@@ -0,0 +1,138 @@
1
+ import { jsx as i, jsxs as p } from "react/jsx-runtime";
2
+ import { useCallback as b, useEffect as x } from "react";
3
+ import { createPortal as N } from "react-dom";
4
+ import { createRoot as P } from "react-dom/client";
5
+ import { Button as v } from "../button/component.js";
6
+ import { Typography as y } from "../typography/component.js";
7
+ import n from "./index.module.css.js";
8
+ const g = ({
9
+ title: e,
10
+ description: t,
11
+ confirmText: r,
12
+ cancelText: l,
13
+ confirmView: d = "primary",
14
+ mode: m = "confirm",
15
+ onConfirm: c,
16
+ onCancel: o
17
+ }) => {
18
+ const s = m === "alert", C = b(
19
+ (a) => {
20
+ a.target === a.currentTarget && o();
21
+ },
22
+ [o]
23
+ );
24
+ return x(() => {
25
+ const a = (w) => {
26
+ w.key === "Escape" && o(), w.key === "Enter" && (s ? o : c)();
27
+ };
28
+ return window.addEventListener("keydown", a), () => window.removeEventListener("keydown", a);
29
+ }, [o, c, s]), N(
30
+ /* @__PURE__ */ i(
31
+ "div",
32
+ {
33
+ className: n.backdrop,
34
+ onClick: C,
35
+ role: "dialog",
36
+ "aria-modal": "true",
37
+ children: /* @__PURE__ */ p("div", { className: n.card, children: [
38
+ /* @__PURE__ */ p("div", { className: n.content, children: [
39
+ /* @__PURE__ */ i(
40
+ y.Title,
41
+ {
42
+ tag: "h3",
43
+ view: "xsmall",
44
+ color: "primary",
45
+ className: n.title,
46
+ children: e
47
+ }
48
+ ),
49
+ t && /* @__PURE__ */ i(
50
+ y.Text,
51
+ {
52
+ tag: "p",
53
+ color: "secondary",
54
+ view: "primary-medium",
55
+ className: n.description,
56
+ children: t
57
+ }
58
+ )
59
+ ] }),
60
+ /* @__PURE__ */ p("div", { className: n.actions, children: [
61
+ !s && /* @__PURE__ */ i(v, { size: "s", view: "outlined", block: !0, onClick: o, children: l }),
62
+ /* @__PURE__ */ i(
63
+ v,
64
+ {
65
+ size: "s",
66
+ className: n[d],
67
+ view: "primary",
68
+ block: !0,
69
+ onClick: s ? o : c,
70
+ children: s ? l : r
71
+ }
72
+ )
73
+ ] })
74
+ ] })
75
+ }
76
+ ),
77
+ document.body
78
+ );
79
+ };
80
+ let u = null, f = null;
81
+ const h = () => {
82
+ u && (u.unmount(), u = null), f && (f.remove(), f = null);
83
+ }, k = (e, t) => {
84
+ h();
85
+ const r = document.createElement("div");
86
+ r.setAttribute("data-confirm-popup", ""), document.body.appendChild(r);
87
+ const l = P(r);
88
+ u = l, f = r;
89
+ let d = !1;
90
+ const m = (c) => () => {
91
+ d || (d = !0, h(), c(), t());
92
+ };
93
+ l.render(
94
+ /* @__PURE__ */ i(
95
+ g,
96
+ {
97
+ ...e,
98
+ onConfirm: m(e.onConfirm),
99
+ onCancel: m(e.onCancel)
100
+ }
101
+ )
102
+ );
103
+ }, R = (e) => typeof window > "u" ? Promise.resolve(!1) : new Promise((t) => {
104
+ let r = !1;
105
+ k(
106
+ {
107
+ ...e,
108
+ mode: "confirm",
109
+ onConfirm: () => {
110
+ r = !0;
111
+ },
112
+ onCancel: () => {
113
+ r = !1;
114
+ }
115
+ },
116
+ () => t(r)
117
+ );
118
+ }), K = (e) => typeof window > "u" ? Promise.resolve() : new Promise((t) => {
119
+ k(
120
+ {
121
+ title: e.title,
122
+ description: e.description,
123
+ confirmText: "",
124
+ cancelText: e.buttonText ?? "Понятно",
125
+ mode: "alert",
126
+ onConfirm: () => {
127
+ },
128
+ onCancel: () => {
129
+ }
130
+ },
131
+ () => t()
132
+ );
133
+ });
134
+ export {
135
+ g as ConfirmPopup,
136
+ K as showAlert,
137
+ R as showConfirm
138
+ };
@@ -0,0 +1 @@
1
+ .backdrop_bTWm{position:fixed;inset:0;z-index:99999990;background:#00000073;display:flex;align-items:center;justify-content:center;padding:16px;animation:backdrop-in_2Gfp .15s ease-out}.card_QdKQ{background:var(--color-bg-primary);border-radius:16px;box-shadow:0 16px 48px #00000047;width:100%;max-width:380px;padding:24px;display:flex;flex-direction:column;gap:20px;animation:card-in_kaZX .18s ease-out}.content_qypP{display:flex;flex-direction:column;gap:6px}.title_Ax6t,.description_pjZB{margin:0}.actions_MbU4{display:flex;gap:8px}.actions_MbU4>*{flex:1 1 0;min-width:0}.negative_htRp{background:var(--color-bg-negative);border:1px solid var(--color-border-secondary)}@keyframes backdrop-in_2Gfp{0%{opacity:0}to{opacity:1}}@keyframes card-in_kaZX{0%{opacity:0;transform:translateY(-8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@@ -0,0 +1 @@
1
+ export * from './component';
@@ -0,0 +1,6 @@
1
+ import { ConfirmPopup as f, showAlert as m, showConfirm as p } from "./component.js";
2
+ export {
3
+ f as ConfirmPopup,
4
+ m as showAlert,
5
+ p as showConfirm
6
+ };
@@ -0,0 +1,23 @@
1
+ import * as __css from './index.css';
2
+ export const __cssModule = __css;
3
+ const t = "backdrop_bTWm", c = "card_QdKQ", n = "content_qypP", o = "title_Ax6t", a = "description_pjZB", i = "actions_MbU4", e = "negative_htRp", s = {
4
+ backdrop: t,
5
+ "backdrop-in": "backdrop-in_2Gfp",
6
+ card: c,
7
+ "card-in": "card-in_kaZX",
8
+ content: n,
9
+ title: o,
10
+ description: a,
11
+ actions: i,
12
+ negative: e
13
+ };
14
+ export {
15
+ i as actions,
16
+ t as backdrop,
17
+ c as card,
18
+ n as content,
19
+ s as default,
20
+ a as description,
21
+ e as negative,
22
+ o as title
23
+ };
@@ -7,7 +7,7 @@ import { ModalContext as x } from "../modal/context.js";
7
7
  import { showError as T, showSuccess as F } from "../utils/show-toast/index.js";
8
8
  import { RestForm as w } from "./templates/rest-form/index.js";
9
9
  const E = { baz: "", bar: "" }, M = { buz: "", bur: "" }, V = (l) => {
10
- const [i, c] = a.useState(!0), [f, u] = a.useState(!1), [p, m] = a.useState(!1);
10
+ const [i, c] = a.useState(!0), [f, m] = a.useState(!1), [p, u] = a.useState(!1);
11
11
  return a.useEffect(() => {
12
12
  setTimeout(() => c(!1), 500);
13
13
  }, []), /* @__PURE__ */ e(
@@ -17,30 +17,30 @@ const E = { baz: "", bar: "" }, M = { buz: "", bur: "" }, V = (l) => {
17
17
  initialValues: M,
18
18
  customValidationFields: ["bur"],
19
19
  save: () => new Promise((b) => {
20
- u(!0), setTimeout(() => {
21
- b(), u(!1), F("", "Saved");
20
+ m(!0), setTimeout(() => {
21
+ b(), m(!1), F("", "Saved");
22
22
  }, 3e3);
23
23
  }),
24
24
  remove: () => new Promise((b) => {
25
- m(!0), setTimeout(() => {
26
- b(), m(!1), T("Some error from server", "Error");
25
+ u(!0), setTimeout(() => {
26
+ b(), u(!1), T("Some error from server", "Error");
27
27
  }, 3e3);
28
28
  }),
29
29
  title: "custom title other",
30
30
  loading: i,
31
- submitButtonText: "submit",
31
+ submitButtonText: "common:submit",
32
32
  updating: f,
33
33
  removing: p,
34
34
  close: l?.close,
35
35
  t: (b) => b,
36
- children: ({ values: b, touched: d, errors: r, handleChange: o }) => /* @__PURE__ */ C(S, { columns: 1, gr: 16, gc: 0, children: [
36
+ children: ({ values: b, touched: g, errors: r, handleChange: o }) => /* @__PURE__ */ C(S, { columns: 1, gr: 16, gc: 0, children: [
37
37
  /* @__PURE__ */ e(
38
38
  t,
39
39
  {
40
40
  label: "buz",
41
41
  value: b.buz,
42
42
  onChange: o("buz"),
43
- error: d.buz && r.buz
43
+ error: g.buz && r.buz
44
44
  }
45
45
  ),
46
46
  /* @__PURE__ */ e(
@@ -49,14 +49,14 @@ const E = { baz: "", bar: "" }, M = { buz: "", bur: "" }, V = (l) => {
49
49
  label: "bur",
50
50
  value: b.bur,
51
51
  onChange: o("bur"),
52
- error: d.bur && r.bur
52
+ error: g.bur && r.bur
53
53
  }
54
54
  )
55
55
  ] })
56
56
  }
57
57
  );
58
58
  }, O = (l) => {
59
- const [i, c] = a.useState(!0), [f, u] = a.useState(!1), [p, m] = a.useState(!1), { openModal: g } = a.useContext(x), v = g(V);
59
+ const [i, c] = a.useState(!0), [f, m] = a.useState(!1), [p, u] = a.useState(!1), { openModal: v } = a.useContext(x), d = v(V);
60
60
  return a.useEffect(() => {
61
61
  setTimeout(() => c(!1), 500);
62
62
  }, []), /* @__PURE__ */ e(
@@ -66,13 +66,13 @@ const E = { baz: "", bar: "" }, M = { buz: "", bur: "" }, V = (l) => {
66
66
  initialValues: E,
67
67
  customValidationFields: ["bar"],
68
68
  save: () => new Promise((r) => {
69
- u(!0), setTimeout(() => {
70
- r(), u(!1), F("", "Saved");
69
+ m(!0), setTimeout(() => {
70
+ r(), m(!1), F("", "Saved");
71
71
  }, 3e3);
72
72
  }),
73
73
  remove: () => new Promise((r) => {
74
- m(!0), setTimeout(() => {
75
- r(), m(!1), T("Some error from server", "Error");
74
+ u(!0), setTimeout(() => {
75
+ r(), u(!1), T("Some error from server", "Error");
76
76
  }, 3e3);
77
77
  }),
78
78
  title: "Настройки",
@@ -81,7 +81,7 @@ const E = { baz: "", bar: "" }, M = { buz: "", bur: "" }, V = (l) => {
81
81
  },
82
82
  softError: "Some error",
83
83
  loading: i,
84
- submitButtonText: "csdcds",
84
+ submitButtonText: "common:save",
85
85
  updating: f,
86
86
  removing: p,
87
87
  close: l?.close,
@@ -168,7 +168,7 @@ const E = { baz: "", bar: "" }, M = { buz: "", bur: "" }, V = (l) => {
168
168
  error: o.bar && n.bar
169
169
  }
170
170
  ),
171
- /* @__PURE__ */ e(z, { onClick: v, children: "openCrudModalOther" })
171
+ /* @__PURE__ */ e(z, { onClick: d, children: "openCrudModalOther" })
172
172
  ] })
173
173
  }
174
174
  );
@@ -1,4 +1,4 @@
1
- import { jsx as e, jsxs as c } from "react/jsx-runtime";
1
+ import { jsx as t, jsxs as a } from "react/jsx-runtime";
2
2
  import { Formik as d } from "formik";
3
3
  import u from "react";
4
4
  import { Button as i } from "../../../button/component.js";
@@ -8,42 +8,42 @@ const C = ({
8
8
  initialValues: n,
9
9
  defaultValues: m,
10
10
  children: s,
11
- submitCallback: l,
12
- close: o,
13
- t: r
11
+ submitCallback: c,
12
+ close: r,
13
+ t: e
14
14
  }) => {
15
- const a = p(n, m);
16
- return /* @__PURE__ */ e(d, { initialValues: a, onSubmit: (t) => {
17
- l(t), o();
18
- }, children: (t) => (process.env.REACT_APP_STAGE, /* @__PURE__ */ e(
15
+ const l = p(n, m);
16
+ return /* @__PURE__ */ t(d, { initialValues: l, onSubmit: (o) => {
17
+ c(o), r();
18
+ }, children: (o) => (process.env.REACT_APP_STAGE, /* @__PURE__ */ t(
19
19
  f,
20
20
  {
21
- title: r("filters"),
22
- bottomAddons: /* @__PURE__ */ c(u.Fragment, { children: [
23
- /* @__PURE__ */ e(
21
+ title: e("common:filters"),
22
+ bottomAddons: /* @__PURE__ */ a(u.Fragment, { children: [
23
+ /* @__PURE__ */ t(
24
24
  i,
25
25
  {
26
26
  view: "primary",
27
27
  size: "s",
28
28
  block: !0,
29
29
  dataTestId: "buttonSave",
30
- onClick: () => t.submitForm(),
31
- children: r("save")
30
+ onClick: () => o.submitForm(),
31
+ children: e("common:save")
32
32
  }
33
33
  ),
34
- /* @__PURE__ */ e(
34
+ /* @__PURE__ */ t(
35
35
  i,
36
36
  {
37
37
  block: !0,
38
38
  view: "secondary",
39
39
  size: "s",
40
40
  dataTestId: "buttonCancel",
41
- onClick: o,
42
- children: r("cancel")
41
+ onClick: r,
42
+ children: e("common:cancel")
43
43
  }
44
44
  )
45
45
  ] }),
46
- children: s(t)
46
+ children: s(o)
47
47
  }
48
48
  )) });
49
49
  };
@@ -1,5 +1,5 @@
1
1
  import { FormikProps, FormikValues } from 'formik';
2
2
  import { Props } from '.';
3
3
  type FormProps<T extends FormikValues> = Props<T> & FormikProps<T>;
4
- export declare function Form<T extends FormikValues>({ recordId, title, subtitle, headerBottomAddons, initialValues, submitButtonText, customFooter, loading, updating, removing, customValidationFields, validate, save, remove, close, back, t, children, headerAddon, error, softError, ...formProps }: FormProps<T>): import("react/jsx-runtime").JSX.Element;
4
+ export declare function Form<T extends FormikValues>({ recordId, title, subtitle, headerBottomAddons, initialValues, submitButtonText, customFooter, loading, updating, removing, customValidationFields, validate, save, remove, close, back, t, children, headerAddon, error, softError, modalId, ...formProps }: FormProps<T>): import("react/jsx-runtime").JSX.Element;
5
5
  export {};
@@ -1,115 +1,120 @@
1
- import { jsxs as p, jsx as o } from "react/jsx-runtime";
2
- import V from "@alphakits/icons/dist/TrashM";
3
- import D, { useContext as H, useRef as q, useCallback as x, useEffect as G } from "react";
4
- import { Button as F } from "../../../button/component.js";
1
+ import { jsxs as f, jsx as n } from "react/jsx-runtime";
2
+ import A from "@alphakits/icons/dist/TrashM";
3
+ import D, { useContext as H, useCallback as C, useEffect as q } from "react";
4
+ import { Button as k } from "../../../button/component.js";
5
+ import { showConfirm as G } from "../../../confirm-popup/component.js";
5
6
  import { Flex as J } from "../../../flex/component.js";
6
7
  import { FlexColumns as K } from "../../../flex-columns/component.js";
7
8
  import { IconButton as L } from "../../../icon-button/component.js";
8
9
  import { ModalContext as N } from "../../../modal/context.js";
9
10
  import { Sidepanel as O } from "../../../sidepanel/component.js";
10
- import { ToastPlate as I } from "../../../toast-plate/component.js";
11
- function ie({
12
- recordId: R,
13
- title: M,
14
- subtitle: T,
15
- headerBottomAddons: b,
16
- initialValues: w,
17
- submitButtonText: y,
18
- customFooter: B,
19
- loading: n,
11
+ import { ToastPlate as x } from "../../../toast-plate/component.js";
12
+ function ce({
13
+ recordId: w,
14
+ title: T,
15
+ subtitle: F,
16
+ headerBottomAddons: u,
17
+ initialValues: y,
18
+ submitButtonText: I,
19
+ customFooter: M,
20
+ loading: r,
20
21
  updating: i,
21
- removing: s,
22
+ removing: m,
22
23
  customValidationFields: Q,
23
24
  validate: U,
24
25
  save: W,
25
- remove: a,
26
- close: S,
27
- back: z,
28
- t: r,
29
- children: P,
26
+ remove: c,
27
+ close: R,
28
+ back: B,
29
+ t: e,
30
+ children: S,
30
31
  headerAddon: h,
31
32
  error: X,
32
- softError: d,
33
- ...g
33
+ softError: s,
34
+ modalId: g,
35
+ ...z
34
36
  }) {
35
- const { setModalDirty: e, currentModalId: l } = H(N), c = q("");
36
- !c.current && l && (c.current = l);
37
- const t = c.current || l, { submitCount: m, handleSubmit: C, isValid: f, ...u } = g, v = !!R && !!a, k = x(
37
+ const { setModalDirty: o, currentModalId: P } = H(N), t = g || P, { submitCount: a, handleSubmit: p, isValid: l, ...d } = z, b = !!w && !!c, v = C(
38
38
  () => {
39
- e(t, !1), C();
39
+ o(t, !1), p();
40
40
  },
41
41
  // eslint-disable-next-line react-hooks/exhaustive-deps
42
- [t, e, C]
43
- ), j = x(() => {
44
- e(t, !1), confirm(r("common:deleteConfirm")) && a?.();
45
- }, [t, r, e, a]);
46
- G(() => {
47
- n || e(t, u.dirty);
48
- }, [u.dirty, n, t, e]);
49
- const A = v || h ? /* @__PURE__ */ p(D.Fragment, { children: [
42
+ [t, o, p]
43
+ ), V = C(async () => {
44
+ o(t, !1), await G({
45
+ title: e("common:deleteConfirm"),
46
+ confirmText: e("common:remove"),
47
+ cancelText: e("common:cancel"),
48
+ confirmView: "negative"
49
+ }) && c?.();
50
+ }, [t, e, o, c]);
51
+ q(() => {
52
+ r || o(t, d.dirty);
53
+ }, [d.dirty, r, t, o]);
54
+ const j = b || h ? /* @__PURE__ */ f(D.Fragment, { children: [
50
55
  h,
51
- v && /* @__PURE__ */ o(
56
+ b && /* @__PURE__ */ n(
52
57
  L,
53
58
  {
54
59
  dataTestId: "removeTariffBtn",
55
60
  size: "m",
56
61
  disabled: i,
57
- loading: s,
58
- onClick: j,
59
- icon: V
62
+ loading: m,
63
+ onClick: V,
64
+ icon: A
60
65
  }
61
66
  )
62
67
  ] }) : null;
63
- return /* @__PURE__ */ o(
68
+ return /* @__PURE__ */ n(
64
69
  O,
65
70
  {
66
- headerRightAddons: A,
67
- title: M,
68
- subtitle: T,
69
- loading: i || s || n,
70
- headerBottomAddons: (b || !!d || !f && !!m) && /* @__PURE__ */ p(K, { columns: 1, gr: 8, children: [
71
- b,
72
- !!d && /* @__PURE__ */ o(I, { view: "negative", children: d }),
73
- !f && !!m && /* @__PURE__ */ o(I, { view: "negative", children: "Please correct errors before submitting form." })
71
+ headerRightAddons: j,
72
+ title: T,
73
+ subtitle: F,
74
+ loading: i || m || r,
75
+ headerBottomAddons: (u || !!s || !l && !!a) && /* @__PURE__ */ f(K, { columns: 1, gr: 8, children: [
76
+ u,
77
+ !!s && /* @__PURE__ */ n(x, { view: "negative", children: s }),
78
+ !l && !!a && /* @__PURE__ */ n(x, { view: "negative", children: "Please correct errors before submitting form." })
74
79
  ] }),
75
- back: z,
76
- t: r,
77
- bottomAddons: B || /* @__PURE__ */ p(J, { gap: "md", children: [
78
- /* @__PURE__ */ o(
79
- F,
80
+ back: B,
81
+ t: e,
82
+ bottomAddons: M || /* @__PURE__ */ f(J, { gap: "md", children: [
83
+ /* @__PURE__ */ n(
84
+ k,
80
85
  {
81
86
  view: "primary",
82
87
  size: "s",
83
88
  block: !0,
84
- loading: n,
85
- disabled: i || s,
89
+ loading: r,
90
+ disabled: i || m,
86
91
  dataTestId: "buttonSave",
87
- onClick: () => k(),
88
- children: r(y || "save")
92
+ onClick: () => v(),
93
+ children: e(I || "common:save")
89
94
  }
90
95
  ),
91
- /* @__PURE__ */ o(
92
- F,
96
+ /* @__PURE__ */ n(
97
+ k,
93
98
  {
94
99
  block: !0,
95
100
  view: "secondary",
96
101
  size: "s",
97
102
  dataTestId: "buttonCancel",
98
- onClick: S,
99
- children: r("cancel")
103
+ onClick: R,
104
+ children: e("common:cancel")
100
105
  }
101
106
  )
102
107
  ] }),
103
- children: P({
104
- submitCount: m,
105
- isValid: f,
106
- handleSubmit: k,
107
- initialValues: w,
108
- ...u
108
+ children: S({
109
+ submitCount: a,
110
+ isValid: l,
111
+ handleSubmit: v,
112
+ initialValues: y,
113
+ ...d
109
114
  })
110
115
  }
111
116
  );
112
117
  }
113
118
  export {
114
- ie as Form
119
+ ce as Form
115
120
  };
@@ -22,6 +22,7 @@ export type Props<T extends FormikValues> = {
22
22
  submitButtonText?: string;
23
23
  children: (props: FormikProps<FormikValues & T>) => React.ReactNode;
24
24
  close: () => void;
25
+ modalId?: string;
25
26
  t: TFunction;
26
27
  headerAddon?: React.ReactNode;
27
28
  };
package/dist/index.d.ts CHANGED
@@ -17,6 +17,7 @@ export * from './checkbox-group';
17
17
  export * from './checkbox-lists';
18
18
  export * from './collapsable-row';
19
19
  export * from './collapse';
20
+ export * from './confirm-popup';
20
21
  export * from './copy-button';
21
22
  export * from './date';
22
23
  export * from './date-switcher';