fsk-design-system 1.13.2 → 1.14.0

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 (63) hide show
  1. package/dist/components/Alert/Alert.js +3 -3
  2. package/dist/components/Cascader/Cascader.form.js +10 -12
  3. package/dist/components/DatePicker/DatePicker.form.js +11 -13
  4. package/dist/components/DatePicker/RangePicker.form.js +9 -11
  5. package/dist/components/Drawer/Drawer.js +7 -7
  6. package/dist/components/Form/index.d.ts +1 -0
  7. package/dist/components/Form/isFormItemRequired.d.ts +2 -0
  8. package/dist/components/Form/isFormItemRequired.js +7 -0
  9. package/dist/components/Form/isFormItemRequired.test.d.ts +1 -0
  10. package/dist/components/Input/Input.OTP/Input.OTP.form.js +11 -13
  11. package/dist/components/Input/Input.Password/Input.Password.form.js +9 -11
  12. package/dist/components/Input/Input.form.js +11 -13
  13. package/dist/components/InputNumber/InputNumber.form.js +9 -11
  14. package/dist/components/Layout/Header/Support/Support.js +5 -5
  15. package/dist/components/Modal/Modal.js +6 -6
  16. package/dist/components/PhoneInput/PhoneInput.form.js +11 -13
  17. package/dist/components/Radio/Radio.form.js +22 -25
  18. package/dist/components/Search/Search.form.js +11 -13
  19. package/dist/components/Select/Select.form.js +10 -12
  20. package/dist/components/TextArea/TextArea.form.js +8 -7
  21. package/dist/components/Tour/Tour.js +22 -22
  22. package/dist/components/index.js +104 -102
  23. package/dist/icons/custom/Close.d.ts +2 -0
  24. package/dist/icons/custom/Close.js +13 -0
  25. package/dist/icons/custom/List2.d.ts +2 -0
  26. package/dist/icons/custom/List2.js +10 -0
  27. package/dist/icons/custom/Microphone4.d.ts +2 -0
  28. package/dist/icons/custom/Microphone4.js +17 -0
  29. package/dist/icons/custom/Microphone4Mute.d.ts +2 -0
  30. package/dist/icons/custom/Microphone4Mute.js +23 -0
  31. package/dist/icons/custom/Plus.d.ts +2 -0
  32. package/dist/icons/custom/Plus.js +10 -0
  33. package/dist/icons/custom/SplitIntoSections.d.ts +2 -0
  34. package/dist/icons/custom/SplitIntoSections.js +14 -0
  35. package/dist/icons/custom/TechnicalSupport.d.ts +2 -0
  36. package/dist/icons/custom/TechnicalSupport.js +10 -0
  37. package/dist/icons/custom/Tools.d.ts +2 -0
  38. package/dist/icons/custom/Tools.js +11 -0
  39. package/dist/icons/custom/Walk.d.ts +2 -0
  40. package/dist/icons/custom/Walk.js +11 -0
  41. package/dist/icons/custom/deprecated.d.ts +11 -0
  42. package/dist/icons/custom/deprecated.js +15 -0
  43. package/dist/icons/custom/index.d.ts +10 -0
  44. package/dist/icons/custom/lib.d.ts +16 -0
  45. package/dist/icons/custom/lib.js +7 -0
  46. package/dist/icons/index.d.ts +1 -1
  47. package/dist/icons/index.js +23 -25
  48. package/dist/index.js +115 -113
  49. package/package.json +1 -1
  50. package/dist/icons/svgs/CloseOutline.svg.js +0 -5
  51. package/dist/icons/svgs/List 2.0.svg.js +0 -5
  52. package/dist/icons/svgs/Microphone 4 mute-1.svg.js +0 -5
  53. package/dist/icons/svgs/Microphone 4 mute.svg.js +0 -5
  54. package/dist/icons/svgs/Microphone 4-1.svg.js +0 -5
  55. package/dist/icons/svgs/Microphone 4.svg.js +0 -5
  56. package/dist/icons/svgs/Plus.svg.js +0 -5
  57. package/dist/icons/svgs/SplitIntoSections.svg.js +0 -5
  58. package/dist/icons/svgs/TechnicalSupport.svg.js +0 -5
  59. package/dist/icons/svgs/Tools-1.svg.js +0 -5
  60. package/dist/icons/svgs/Tools.svg.js +0 -5
  61. package/dist/icons/svgs/Walk-1.svg.js +0 -5
  62. package/dist/icons/svgs/Walk.svg.js +0 -5
  63. package/dist/icons/svgs/index.d.ts +0 -13
@@ -1,8 +1,8 @@
1
1
  import { jsx as o } from "@emotion/react/jsx-runtime";
2
2
  import "@solar-icons/react";
3
3
  import { StyledAlert as t } from "./Alert.styles.js";
4
- import e from "../../icons/svgs/CloseOutline.svg.js";
5
- const n = (r) => /* @__PURE__ */ o(t, { closeIcon: /* @__PURE__ */ o(e, {}), ...r });
4
+ import { Close as e } from "../../icons/custom/Close.js";
5
+ const s = (r) => /* @__PURE__ */ o(t, { closeIcon: /* @__PURE__ */ o(e, {}), ...r });
6
6
  export {
7
- n as Alert
7
+ s as Alert
8
8
  };
@@ -1,18 +1,16 @@
1
- import { jsx as e } from "@emotion/react/jsx-runtime";
2
- import { Form as a } from "antd";
1
+ import { jsx as t } from "@emotion/react/jsx-runtime";
2
+ import { Form as n } from "antd";
3
3
  import c from "react";
4
4
  import { Cascader as f } from "./Cascader.js";
5
- const u = c.forwardRef((r, o) => {
5
+ import { isFormItemRequired as u } from "../Form/isFormItemRequired.js";
6
+ const d = c.forwardRef((r, s) => {
6
7
  const {
7
- status: t,
8
- errors: s,
8
+ status: o,
9
+ errors: a,
9
10
  warnings: i
10
- } = a.Item.useStatus(), n = s.join("; "), m = i.join("; ");
11
- return /* @__PURE__ */ e(f, { ref: o, error: n || m, formControlStatus: n || t === "error" || m || t === "warning" ? t : void 0, ...r });
12
- }), S = (r) => {
13
- var o;
14
- return /* @__PURE__ */ e(a.Item, { noStyle: !0, ...r.formItem, children: /* @__PURE__ */ e(u, { ...r.cascader, isRequired: (o = r.formItem) == null ? void 0 : o.required }) });
15
- };
11
+ } = n.Item.useStatus(), e = a.join("; "), m = i.join("; ");
12
+ return /* @__PURE__ */ t(f, { ref: s, error: e || m, formControlStatus: e || o === "error" || m || o === "warning" ? o : void 0, ...r });
13
+ }), g = (r) => /* @__PURE__ */ t(n.Item, { noStyle: !0, ...r.formItem, children: /* @__PURE__ */ t(d, { ...r.cascader, isRequired: u(r.formItem) }) });
16
14
  export {
17
- S as FormCascader
15
+ g as FormCascader
18
16
  };
@@ -1,22 +1,20 @@
1
- import { jsx as e } from "@emotion/react/jsx-runtime";
2
- import s from "react";
1
+ import { jsx as t } from "@emotion/react/jsx-runtime";
2
+ import c from "react";
3
3
  import { DatePicker as f } from "./DatePicker.js";
4
4
  import { FormRangePicker as u } from "./RangePicker.form.js";
5
- import { Form as m } from "../Form/Form.js";
6
- const d = s.forwardRef((r, t) => {
5
+ import { Form as n } from "../Form/Form.js";
6
+ import { isFormItemRequired as d } from "../Form/isFormItemRequired.js";
7
+ const k = c.forwardRef((r, i) => {
7
8
  const {
8
9
  status: o,
9
10
  errors: a,
10
- warnings: c
11
- } = m.Item.useStatus(), n = a.join("; "), i = c.join("; ");
12
- return /* @__PURE__ */ e(f, { ref: t, error: n || i, formControlStatus: n || o === "error" || i || o === "warning" ? o : void 0, ...r });
13
- }), k = (r) => {
14
- var t;
15
- return /* @__PURE__ */ e(m.Item, { noStyle: !0, ...r.formItem, children: /* @__PURE__ */ e(d, { ...r.datePicker, isRequired: (t = r.formItem) == null ? void 0 : t.required }) });
16
- }, D = Object.assign(k, {
11
+ warnings: s
12
+ } = n.Item.useStatus(), e = a.join("; "), m = s.join("; ");
13
+ return /* @__PURE__ */ t(f, { ref: i, error: e || m, formControlStatus: e || o === "error" || m || o === "warning" ? o : void 0, ...r });
14
+ }), P = (r) => /* @__PURE__ */ t(n.Item, { noStyle: !0, ...r.formItem, children: /* @__PURE__ */ t(k, { ...r.datePicker, isRequired: d(r.formItem) }) }), w = Object.assign(P, {
17
15
  RangePicker: u
18
16
  });
19
17
  export {
20
- D as FormDatePicker,
21
- k as FormDatePickerMain
18
+ w as FormDatePicker,
19
+ P as FormDatePickerMain
22
20
  };
@@ -1,18 +1,16 @@
1
- import { jsx as t } from "@emotion/react/jsx-runtime";
1
+ import { jsx as o } from "@emotion/react/jsx-runtime";
2
2
  import f from "react";
3
3
  import { DatePicker as u } from "./DatePicker.js";
4
4
  import { Form as m } from "../Form/Form.js";
5
- const g = f.forwardRef((r, e) => {
5
+ import { isFormItemRequired as g } from "../Form/isFormItemRequired.js";
6
+ const R = f.forwardRef((r, i) => {
6
7
  const {
7
- status: o,
8
+ status: e,
8
9
  errors: a,
9
- warnings: c
10
- } = m.Item.useStatus(), n = a.join("; "), i = c.join("; "), s = n || o === "error" || i || o === "warning" ? o : void 0;
11
- return /* @__PURE__ */ t(u.RangePicker, { ref: e, error: n || i, formControlStatus: s, ...r });
12
- }), l = (r) => {
13
- var e;
14
- return /* @__PURE__ */ t(m.Item, { noStyle: !0, ...r.formItem, children: /* @__PURE__ */ t(g, { ...r.rangePicker, isRequired: (e = r.formItem) == null ? void 0 : e.required }) });
15
- };
10
+ warnings: s
11
+ } = m.Item.useStatus(), t = a.join("; "), n = s.join("; "), c = t || e === "error" || n || e === "warning" ? e : void 0;
12
+ return /* @__PURE__ */ o(u.RangePicker, { ref: i, error: t || n, formControlStatus: c, ...r });
13
+ }), w = (r) => /* @__PURE__ */ o(m.Item, { noStyle: !0, ...r.formItem, children: /* @__PURE__ */ o(R, { ...r.rangePicker, isRequired: g(r.formItem) }) });
16
14
  export {
17
- l as FormRangePicker
15
+ w as FormRangePicker
18
16
  };
@@ -1,22 +1,22 @@
1
1
  import { jsx as m } from "@emotion/react/jsx-runtime";
2
2
  import { Drawer as d } from "antd";
3
3
  import f from "../../_virtual/index.js";
4
- import { useId as u } from "react";
4
+ import { useId as w } from "react";
5
5
  import "@solar-icons/react";
6
- import { useMediaQuery as w } from "../../utils/useMediaQuery.js";
6
+ import { useMediaQuery as u } from "../../utils/useMediaQuery.js";
7
7
  import { StyledDrawer as h } from "./Drawer.styles.js";
8
8
  import { useDrawerSwipeGesture as b } from "./useDrawerSwipeGesture.js";
9
- import D from "../../icons/svgs/CloseOutline.svg.js";
9
+ import { Close as D } from "../../icons/custom/Close.js";
10
10
  const $ = (i) => {
11
11
  const {
12
12
  classNames: l,
13
13
  rootClassName: p = "",
14
14
  breakpoint: o = 1079,
15
- placement: n = "right",
15
+ placement: c = "right",
16
16
  onClose: r,
17
17
  open: e = !1,
18
- ...c
19
- } = i, s = u(), t = o === null ? !1 : w(`(max-width: ${o}px)`), a = t ? "bottom" : n;
18
+ ...n
19
+ } = i, s = w(), t = o === null ? !1 : u(`(max-width: ${o}px)`), a = t ? "bottom" : c;
20
20
  return b({
21
21
  placement: a,
22
22
  open: e,
@@ -26,7 +26,7 @@ const $ = (i) => {
26
26
  "is-mobile": t
27
27
  }), classNames: l, closable: {
28
28
  closeIcon: /* @__PURE__ */ m(D, {})
29
- }, placement: a, onClose: r, open: e, "data-drawer-id": s, width: "auto", height: "auto", ...c });
29
+ }, placement: a, onClose: r, open: e, "data-drawer-id": s, width: "auto", height: "auto", ...n });
30
30
  };
31
31
  export {
32
32
  $ as Drawer
@@ -1,2 +1,3 @@
1
1
  export { Form } from './Form';
2
+ export { isFormItemRequired } from './isFormItemRequired';
2
3
  export type { FormProps, FormItemProps } from './Form.types';
@@ -0,0 +1,2 @@
1
+ import { FormItemProps } from 'antd';
2
+ export declare function isFormItemRequired(formItem?: FormItemProps): boolean;
@@ -0,0 +1,7 @@
1
+ function i(e) {
2
+ var r;
3
+ return e ? e.required ? !0 : !!((r = e.rules) != null && r.some((u) => typeof u == "object" && u.required)) : !1;
4
+ }
5
+ export {
6
+ i as isFormItemRequired
7
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,18 +1,16 @@
1
- import { jsx as n } from "@emotion/react/jsx-runtime";
2
- import { Form as i } from "antd";
1
+ import { jsx as o } from "@emotion/react/jsx-runtime";
2
+ import { Form as m } from "antd";
3
3
  import f from "react";
4
4
  import { InputOTP as a } from "./Input.OTP.js";
5
- const c = f.forwardRef((r, t) => {
5
+ import { isFormItemRequired as c } from "../../Form/isFormItemRequired.js";
6
+ const I = f.forwardRef((r, i) => {
6
7
  const {
7
- status: o,
8
- errors: u,
9
- warnings: s
10
- } = i.Item.useStatus(), e = u.join("; "), m = s.join("; ");
11
- return /* @__PURE__ */ n(a, { ref: t, error: e || m, formControlStatus: e || o === "error" || m || o === "warning" ? o : void 0, ...r });
12
- }), S = (r) => {
13
- var t;
14
- return /* @__PURE__ */ n(i.Item, { noStyle: !0, ...r.formItem, children: /* @__PURE__ */ n(c, { ...r.input, isRequired: (t = r.formItem) == null ? void 0 : t.required }) });
15
- };
8
+ status: t,
9
+ errors: s,
10
+ warnings: u
11
+ } = m.Item.useStatus(), n = s.join("; "), e = u.join("; ");
12
+ return /* @__PURE__ */ o(a, { ref: i, error: n || e, formControlStatus: n || t === "error" || e || t === "warning" ? t : void 0, ...r });
13
+ }), g = (r) => /* @__PURE__ */ o(m.Item, { noStyle: !0, ...r.formItem, children: /* @__PURE__ */ o(I, { ...r.input, isRequired: c(r.formItem) }) });
16
14
  export {
17
- S as FormInputOTP
15
+ g as FormInputOTP
18
16
  };
@@ -1,18 +1,16 @@
1
- import { jsx as n } from "@emotion/react/jsx-runtime";
2
- import { Form as m } from "antd";
1
+ import { jsx as t } from "@emotion/react/jsx-runtime";
2
+ import { Form as e } from "antd";
3
3
  import { forwardRef as a } from "react";
4
4
  import { InputPassword as f } from "./Input.Password.js";
5
- const d = a((r, o) => {
5
+ import { isFormItemRequired as d } from "../../Form/isFormItemRequired.js";
6
+ const I = a((r, s) => {
6
7
  const {
7
- status: t,
8
+ status: o,
8
9
  errors: i,
9
10
  warnings: u
10
- } = m.Item.useStatus(), e = i.join("; "), s = u.join("; ");
11
- return /* @__PURE__ */ n(f, { ref: o, error: e || s, formControlStatus: e || t === "error" || s || t === "warning" ? t : void 0, ...r });
12
- }), S = (r) => {
13
- var o;
14
- return /* @__PURE__ */ n(m.Item, { noStyle: !0, ...r.formItem, children: /* @__PURE__ */ n(d, { ...r.input, isRequired: (o = r.formItem) == null ? void 0 : o.required }) });
15
- };
11
+ } = e.Item.useStatus(), n = i.join("; "), m = u.join("; ");
12
+ return /* @__PURE__ */ t(f, { ref: s, error: n || m, formControlStatus: n || o === "error" || m || o === "warning" ? o : void 0, ...r });
13
+ }), j = (r) => /* @__PURE__ */ t(e.Item, { noStyle: !0, ...r.formItem, children: /* @__PURE__ */ t(I, { ...r.input, isRequired: d(r.formItem) }) });
16
14
  export {
17
- S as FormInputPassword
15
+ j as FormInputPassword
18
16
  };
@@ -1,23 +1,21 @@
1
- import { jsx as n } from "@emotion/react/jsx-runtime";
2
- import { Form as s } from "antd";
1
+ import { jsx as t } from "@emotion/react/jsx-runtime";
2
+ import { Form as e } from "antd";
3
3
  import a from "react";
4
4
  import { Input as f } from "./Input.js";
5
5
  import { FormInputOTP as p } from "./Input.OTP/Input.OTP.form.js";
6
- import { FormInputPassword as c } from "./Input.Password/Input.Password.form.js";
7
- const I = a.forwardRef((r, o) => {
6
+ import { FormInputPassword as I } from "./Input.Password/Input.Password.form.js";
7
+ import { isFormItemRequired as c } from "../Form/isFormItemRequired.js";
8
+ const d = a.forwardRef((r, s) => {
8
9
  const {
9
- status: t,
10
+ status: o,
10
11
  errors: i,
11
12
  warnings: u
12
- } = s.Item.useStatus(), m = i.join("; "), e = u.join("; ");
13
- return /* @__PURE__ */ n(f, { ref: o, error: m || e, formControlStatus: m || t === "error" || e || t === "warning" ? t : void 0, ...r });
14
- }), d = (r) => {
15
- var o;
16
- return /* @__PURE__ */ n(s.Item, { noStyle: !0, ...r.formItem, children: /* @__PURE__ */ n(I, { ...r.input, isRequired: (o = r.formItem) == null ? void 0 : o.required }) });
17
- }, C = Object.assign(d, {
18
- Password: c,
13
+ } = e.Item.useStatus(), n = i.join("; "), m = u.join("; ");
14
+ return /* @__PURE__ */ t(f, { ref: s, error: n || m, formControlStatus: n || o === "error" || m || o === "warning" ? o : void 0, ...r });
15
+ }), w = (r) => /* @__PURE__ */ t(e.Item, { noStyle: !0, ...r.formItem, children: /* @__PURE__ */ t(d, { ...r.input, isRequired: c(r.formItem) }) }), O = Object.assign(w, {
16
+ Password: I,
19
17
  OTP: p
20
18
  });
21
19
  export {
22
- C as FormInput
20
+ O as FormInput
23
21
  };
@@ -1,18 +1,16 @@
1
- import { jsx as e } from "@emotion/react/jsx-runtime";
1
+ import { jsx as o } from "@emotion/react/jsx-runtime";
2
2
  import f from "react";
3
3
  import { InputNumber as a } from "./InputNumber.js";
4
- import { Form as u } from "../Form/Form.js";
5
- const c = f.forwardRef((r, t) => {
4
+ import { Form as n } from "../Form/Form.js";
5
+ import { isFormItemRequired as c } from "../Form/isFormItemRequired.js";
6
+ const I = f.forwardRef((r, u) => {
6
7
  const {
7
- status: o,
8
+ status: t,
8
9
  errors: i,
9
10
  warnings: s
10
- } = u.Item.useStatus(), n = i.join("; "), m = s.join("; ");
11
- return /* @__PURE__ */ e(a, { ref: t, error: n || m, formControlStatus: n || o === "error" || m || o === "warning" ? o : void 0, ...r });
12
- }), S = (r) => {
13
- var t;
14
- return /* @__PURE__ */ e(u.Item, { noStyle: !0, ...r.formItem, children: /* @__PURE__ */ e(c, { ...r.input, isRequired: (t = r.formItem) == null ? void 0 : t.required }) });
15
- };
11
+ } = n.Item.useStatus(), e = i.join("; "), m = s.join("; ");
12
+ return /* @__PURE__ */ o(a, { ref: u, error: e || m, formControlStatus: e || t === "error" || m || t === "warning" ? t : void 0, ...r });
13
+ }), b = (r) => /* @__PURE__ */ o(n.Item, { noStyle: !0, ...r.formItem, children: /* @__PURE__ */ o(I, { ...r.input, isRequired: c(r.formItem) }) });
16
14
  export {
17
- S as FormInputNumber
15
+ b as FormInputNumber
18
16
  };
@@ -1,10 +1,10 @@
1
1
  import { jsx as e, jsxs as t, Fragment as h } from "@emotion/react/jsx-runtime";
2
2
  import "@solar-icons/react";
3
3
  import { StyledCollapse as d, Wrapper as u, Title as f, Item as c } from "./Support.styles.js";
4
- import o from "../../../../icons/svgs/TechnicalSupport.svg.js";
4
+ import { TechnicalSupport as o } from "../../../../icons/custom/TechnicalSupport.js";
5
5
  import { Popover as N } from "../../../Popover/Popover.js";
6
- import { Button as g } from "../../../Button/Button.js";
7
- const j = (n) => {
6
+ import { Button as b } from "../../../Button/Button.js";
7
+ const k = (n) => {
8
8
  const {
9
9
  isMobile: l,
10
10
  support: r
@@ -16,7 +16,7 @@ const j = (n) => {
16
16
  /* @__PURE__ */ e("span", { children: "Тех. поддержка" })
17
17
  ] }),
18
18
  children: /* @__PURE__ */ e(p, { ...r })
19
- }] }) : /* @__PURE__ */ e(u, { className: r.className, children: /* @__PURE__ */ e(N, { placement: "bottomRight", content: /* @__PURE__ */ e(p, { ...r }), children: /* @__PURE__ */ e(g, { className: "support-button", type: "link-secondary", size: "xs", icon: /* @__PURE__ */ e(o, {}), children: "Тех. поддержка" }) }) });
19
+ }] }) : /* @__PURE__ */ e(u, { className: r.className, children: /* @__PURE__ */ e(N, { placement: "bottomRight", content: /* @__PURE__ */ e(p, { ...r }), children: /* @__PURE__ */ e(b, { className: "support-button", type: "link-secondary", size: "xs", icon: /* @__PURE__ */ e(o, {}), children: "Тех. поддержка" }) }) });
20
20
  }, p = (n) => {
21
21
  const {
22
22
  className: l,
@@ -39,5 +39,5 @@ const j = (n) => {
39
39
  ] });
40
40
  };
41
41
  export {
42
- j as Support
42
+ k as Support
43
43
  };
@@ -2,13 +2,13 @@ import { jsx as o, jsxs as i, Fragment as m } from "@emotion/react/jsx-runtime";
2
2
  import { Modal as p } from "antd";
3
3
  import "@solar-icons/react";
4
4
  import { StyledModal as d } from "./Modal.styles.js";
5
- import u from "../../icons/svgs/CloseOutline.svg.js";
6
- import { Button as a } from "../Button/Button.js";
5
+ import { Button as l } from "../Button/Button.js";
6
+ import { Close as u } from "../../icons/custom/Close.js";
7
7
  const M = (t) => {
8
8
  const {
9
9
  rootClassName: e = "",
10
10
  cancelButtonProps: c,
11
- okButtonProps: l,
11
+ okButtonProps: a,
12
12
  footer: r,
13
13
  ...n
14
14
  } = t, s = r !== void 0 ? r : /* @__PURE__ */ o(f, { ...t });
@@ -17,14 +17,14 @@ const M = (t) => {
17
17
  const {
18
18
  cancelButtonProps: e,
19
19
  okButtonProps: c,
20
- cancelText: l,
20
+ cancelText: a,
21
21
  okText: r,
22
22
  onCancel: n,
23
23
  onOk: s
24
24
  } = t;
25
25
  return /* @__PURE__ */ i(m, { children: [
26
- /* @__PURE__ */ o(a, { type: "extra-primary", size: "s", ...e, onClick: n, children: l ?? "Закрыть" }),
27
- /* @__PURE__ */ o(a, { type: "main-primary", size: "s", ...c, onClick: s, children: r ?? "Ок" })
26
+ /* @__PURE__ */ o(l, { type: "extra-primary", size: "s", ...e, onClick: n, children: a ?? "Закрыть" }),
27
+ /* @__PURE__ */ o(l, { type: "main-primary", size: "s", ...c, onClick: s, children: r ?? "Ок" })
28
28
  ] });
29
29
  };
30
30
  export {
@@ -1,18 +1,16 @@
1
- import { jsx as n } from "@emotion/react/jsx-runtime";
1
+ import { jsx as t } from "@emotion/react/jsx-runtime";
2
2
  import f from "react";
3
3
  import { PhoneInput as a } from "./PhoneInput.js";
4
- import { Form as i } from "../Form/Form.js";
5
- const c = f.forwardRef((r, o) => {
4
+ import { Form as m } from "../Form/Form.js";
5
+ import { isFormItemRequired as c } from "../Form/isFormItemRequired.js";
6
+ const I = f.forwardRef((r, i) => {
6
7
  const {
7
- status: t,
8
- errors: u,
9
- warnings: s
10
- } = i.Item.useStatus(), e = u.join("; "), m = s.join("; ");
11
- return /* @__PURE__ */ n(a, { ref: o, error: e || m, formControlStatus: e || t === "error" || m || t === "warning" ? t : void 0, ...r });
12
- }), w = (r) => {
13
- var o;
14
- return /* @__PURE__ */ n(i.Item, { noStyle: !0, ...r.formItem, children: /* @__PURE__ */ n(c, { ...r.input, isRequired: (o = r.formItem) == null ? void 0 : o.required }) });
15
- };
8
+ status: o,
9
+ errors: s,
10
+ warnings: u
11
+ } = m.Item.useStatus(), n = s.join("; "), e = u.join("; ");
12
+ return /* @__PURE__ */ t(a, { ref: i, error: n || e, formControlStatus: n || o === "error" || e || o === "warning" ? o : void 0, ...r });
13
+ }), S = (r) => /* @__PURE__ */ t(m.Item, { noStyle: !0, ...r.formItem, children: /* @__PURE__ */ t(I, { ...r.input, isRequired: c(r.formItem) }) });
16
14
  export {
17
- w as FormPhoneInput
15
+ S as FormPhoneInput
18
16
  };
@@ -1,36 +1,33 @@
1
- import { jsx as e } from "@emotion/react/jsx-runtime";
2
- import { Form as s } from "antd";
1
+ import { jsx as t } from "@emotion/react/jsx-runtime";
2
+ import { Form as m } from "antd";
3
3
  import d from "react";
4
4
  import { Radio as f } from "./Radio.js";
5
- const l = d.forwardRef((r, o) => {
5
+ import { isFormItemRequired as l } from "../Form/isFormItemRequired.js";
6
+ const R = d.forwardRef((r, n) => {
6
7
  const {
7
- children: n
8
+ children: s
8
9
  } = r, {
9
- status: t,
10
- errors: u,
11
- warnings: a
12
- } = s.Item.useStatus(), i = u.join("; "), m = a.join("; ");
13
- return /* @__PURE__ */ e(f, { ref: o, error: i || m, formControlStatus: i || t === "error" || m || t === "warning" ? t : void 0, ...r, children: n });
14
- }), R = (r) => {
15
- var o;
16
- return /* @__PURE__ */ e(s.Item, { noStyle: !0, ...r.formItem, children: /* @__PURE__ */ e(l, { ...r.radio, isRequired: (o = r.formItem) == null ? void 0 : o.required }) });
17
- }, w = d.forwardRef((r, o) => {
10
+ status: o,
11
+ errors: a,
12
+ warnings: u
13
+ } = m.Item.useStatus(), e = a.join("; "), i = u.join("; ");
14
+ return /* @__PURE__ */ t(f, { ref: n, error: e || i, formControlStatus: e || o === "error" || i || o === "warning" ? o : void 0, ...r, children: s });
15
+ }), I = (r) => /* @__PURE__ */ t(m.Item, { noStyle: !0, ...r.formItem, children: /* @__PURE__ */ t(R, { ...r.radio, isRequired: l(r.formItem) }) }), w = d.forwardRef((r, n) => {
18
16
  const {
19
- children: n
17
+ children: s
20
18
  } = r, {
21
- status: t,
22
- errors: u,
23
- warnings: a
24
- } = s.Item.useStatus(), i = u.join("; "), m = a.join("; "), c = i || t === "error" || m || t === "warning" ? t : void 0;
25
- return /* @__PURE__ */ e(f.Group, { ref: o, error: i || m, formControlStatus: c, ...r, children: n });
26
- }), I = (r) => {
27
- var n;
19
+ status: o,
20
+ errors: a,
21
+ warnings: u
22
+ } = m.Item.useStatus(), e = a.join("; "), i = u.join("; "), c = e || o === "error" || i || o === "warning" ? o : void 0;
23
+ return /* @__PURE__ */ t(f.Group, { ref: n, error: e || i, formControlStatus: c, ...r, children: s });
24
+ }), S = (r) => {
28
25
  const {
29
- children: o
26
+ children: n
30
27
  } = r;
31
- return /* @__PURE__ */ e(s.Item, { noStyle: !0, ...r.formItem, children: /* @__PURE__ */ e(w, { ...r.radioGroup, isRequired: (n = r.formItem) == null ? void 0 : n.required, children: o }) });
28
+ return /* @__PURE__ */ t(m.Item, { noStyle: !0, ...r.formItem, children: /* @__PURE__ */ t(w, { ...r.radioGroup, isRequired: l(r.formItem), children: n }) });
32
29
  };
33
- R.Group = I;
30
+ I.Group = S;
34
31
  export {
35
- R as FormRadio
32
+ I as FormRadio
36
33
  };
@@ -1,18 +1,16 @@
1
- import { jsx as e } from "@emotion/react/jsx-runtime";
1
+ import { jsx as t } from "@emotion/react/jsx-runtime";
2
2
  import c from "react";
3
3
  import { Search as f } from "./Search.js";
4
- import { Form as s } from "../Form/Form.js";
5
- const u = c.forwardRef((r, o) => {
4
+ import { Form as n } from "../Form/Form.js";
5
+ import { isFormItemRequired as u } from "../Form/isFormItemRequired.js";
6
+ const S = c.forwardRef((r, i) => {
6
7
  const {
7
- status: t,
8
- errors: a,
9
- warnings: i
10
- } = s.Item.useStatus(), n = a.join("; "), m = i.join("; ");
11
- return /* @__PURE__ */ e(f, { ref: o, error: n || m, formControlStatus: n || t === "error" || m || t === "warning" ? t : void 0, ...r });
12
- }), I = (r) => {
13
- var o;
14
- return /* @__PURE__ */ e(s.Item, { noStyle: !0, ...r.formItem, children: /* @__PURE__ */ e(u, { ...r.search, isRequired: (o = r.formItem) == null ? void 0 : o.required }) });
15
- };
8
+ status: o,
9
+ errors: s,
10
+ warnings: a
11
+ } = n.Item.useStatus(), e = s.join("; "), m = a.join("; ");
12
+ return /* @__PURE__ */ t(f, { ref: i, error: e || m, formControlStatus: e || o === "error" || m || o === "warning" ? o : void 0, ...r });
13
+ }), g = (r) => /* @__PURE__ */ t(n.Item, { noStyle: !0, ...r.formItem, children: /* @__PURE__ */ t(S, { ...r.search, isRequired: u(r.formItem) }) });
16
14
  export {
17
- I as FormSearch
15
+ g as FormSearch
18
16
  };
@@ -1,18 +1,16 @@
1
- import { jsx as e } from "@emotion/react/jsx-runtime";
1
+ import { jsx as o } from "@emotion/react/jsx-runtime";
2
2
  import f from "react";
3
3
  import { Select as u } from "./Select.js";
4
- import { Form as s } from "../Form/Form.js";
5
- const a = f.forwardRef((r, t) => {
4
+ import { Form as n } from "../Form/Form.js";
5
+ import { isFormItemRequired as a } from "../Form/isFormItemRequired.js";
6
+ const l = f.forwardRef((r, i) => {
6
7
  const {
7
- status: o,
8
- errors: i,
8
+ status: t,
9
+ errors: s,
9
10
  warnings: c
10
- } = s.Item.useStatus(), n = i.join("; "), m = c.join("; ");
11
- return /* @__PURE__ */ e(u, { ref: t, error: n || m, formControlStatus: n || o === "error" || m || o === "warning" ? o : void 0, ...r });
12
- }), g = (r) => {
13
- var t;
14
- return /* @__PURE__ */ e(s.Item, { noStyle: !0, ...r.formItem, children: /* @__PURE__ */ e(a, { ...r.select, isRequired: (t = r.formItem) == null ? void 0 : t.required }) });
15
- };
11
+ } = n.Item.useStatus(), e = s.join("; "), m = c.join("; ");
12
+ return /* @__PURE__ */ o(u, { ref: i, error: e || m, formControlStatus: e || t === "error" || m || t === "warning" ? t : void 0, ...r });
13
+ }), j = (r) => /* @__PURE__ */ o(n.Item, { noStyle: !0, ...r.formItem, children: /* @__PURE__ */ o(l, { ...r.select, isRequired: a(r.formItem) }) });
16
14
  export {
17
- g as FormSelect
15
+ j as FormSelect
18
16
  };
@@ -1,15 +1,16 @@
1
1
  import { jsx as o } from "@emotion/react/jsx-runtime";
2
2
  import f from "react";
3
3
  import { TextArea as u } from "./TextArea.js";
4
- import { Form as m } from "../Form/Form.js";
5
- const c = f.forwardRef((r, a) => {
4
+ import { Form as n } from "../Form/Form.js";
5
+ import { isFormItemRequired as c } from "../Form/isFormItemRequired.js";
6
+ const d = f.forwardRef((r, i) => {
6
7
  const {
7
8
  status: t,
8
9
  errors: s,
9
- warnings: i
10
- } = m.Item.useStatus(), e = s.join("; "), n = i.join("; ");
11
- return /* @__PURE__ */ o(u, { ref: a, error: e || n, formControlStatus: e || t === "error" || n || t === "warning" ? t : void 0, ...r });
12
- }), A = (r) => /* @__PURE__ */ o(m.Item, { noStyle: !0, ...r.formItem, children: /* @__PURE__ */ o(c, { ...r.textArea }) });
10
+ warnings: a
11
+ } = n.Item.useStatus(), e = s.join("; "), m = a.join("; ");
12
+ return /* @__PURE__ */ o(u, { ref: i, error: e || m, formControlStatus: e || t === "error" || m || t === "warning" ? t : void 0, ...r });
13
+ }), S = (r) => /* @__PURE__ */ o(n.Item, { noStyle: !0, ...r.formItem, children: /* @__PURE__ */ o(d, { ...r.textArea, isRequired: c(r.formItem) }) });
13
14
  export {
14
- A as FormTextArea
15
+ S as FormTextArea
15
16
  };