fsk-design-system 1.2.3 → 1.2.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.
@@ -1,19 +1,37 @@
1
- import { jsx as e, jsxs as l, Fragment as a } from "@emotion/react/jsx-runtime";
2
- import { Modal as i } from "antd";
1
+ import { jsx as o, jsxs as p, Fragment as d } from "@emotion/react/jsx-runtime";
2
+ import { Modal as u } from "antd";
3
3
  import "@solar-icons/react";
4
- import { StyledModal as s } from "./Modal.styles.js";
5
- import m from "../../icons/svgs/CloseOutline.svg.js";
6
- import { Button as r } from "../Button/Button.js";
7
- const O = (o) => {
4
+ import { StyledModal as f } from "./Modal.styles.js";
5
+ import k from "../../icons/svgs/CloseOutline.svg.js";
6
+ import { Button as s } from "../Button/Button.js";
7
+ const g = (t) => {
8
8
  const {
9
- rootClassName: t = "",
10
- ...n
11
- } = o;
12
- return /* @__PURE__ */ e(i, { rootClassName: `${s} ${t}`, centered: !0, footer: /* @__PURE__ */ e(c, { onCancel: o.onCancel, onOk: o.onOk }), closeIcon: /* @__PURE__ */ e(m, {}), destroyOnHidden: !0, ...n });
13
- }, c = (o) => /* @__PURE__ */ l(a, { children: [
14
- /* @__PURE__ */ e(r, { type: "extra-primary", size: "s", onClick: o.onCancel, children: "Закрыть" }),
15
- /* @__PURE__ */ e(r, { size: "s", onClick: o.onOk, children: "Ок" })
16
- ] });
9
+ rootClassName: e = "",
10
+ ...r
11
+ } = t;
12
+ return /* @__PURE__ */ o(u, { rootClassName: `${f} ${e}`, centered: !0, footer: /* @__PURE__ */ o(x, { ...t }), closeIcon: /* @__PURE__ */ o(k, {}), destroyOnHidden: !0, ...r });
13
+ }, x = (t) => {
14
+ const {
15
+ cancelButtonProps: e,
16
+ okButtonProps: r,
17
+ cancelText: n,
18
+ okText: c,
19
+ onCancel: l,
20
+ onOk: i
21
+ } = t, {
22
+ size: y,
23
+ type: C,
24
+ ...a
25
+ } = e || {}, {
26
+ size: M,
27
+ type: P,
28
+ ...m
29
+ } = r || {};
30
+ return /* @__PURE__ */ p(d, { children: [
31
+ /* @__PURE__ */ o(s, { type: "extra-primary", size: "s", ...a, onClick: l, children: n ?? "Закрыть" }),
32
+ /* @__PURE__ */ o(s, { size: "s", ...m, onClick: i, children: c ?? "Ок" })
33
+ ] });
34
+ };
17
35
  export {
18
- O as Modal
36
+ g as Modal
19
37
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "fsk-design-system",
3
3
  "description": "FSK UI components library",
4
- "version": "1.2.3",
4
+ "version": "1.2.4",
5
5
  "sideEffects": false,
6
6
  "type": "module",
7
7
  "files": [