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.
- package/dist/components/Alert/Alert.js +3 -3
- package/dist/components/Cascader/Cascader.form.js +10 -12
- package/dist/components/DatePicker/DatePicker.form.js +11 -13
- package/dist/components/DatePicker/RangePicker.form.js +9 -11
- package/dist/components/Drawer/Drawer.js +7 -7
- package/dist/components/Form/index.d.ts +1 -0
- package/dist/components/Form/isFormItemRequired.d.ts +2 -0
- package/dist/components/Form/isFormItemRequired.js +7 -0
- package/dist/components/Form/isFormItemRequired.test.d.ts +1 -0
- package/dist/components/Input/Input.OTP/Input.OTP.form.js +11 -13
- package/dist/components/Input/Input.Password/Input.Password.form.js +9 -11
- package/dist/components/Input/Input.form.js +11 -13
- package/dist/components/InputNumber/InputNumber.form.js +9 -11
- package/dist/components/Layout/Header/Support/Support.js +5 -5
- package/dist/components/Modal/Modal.js +6 -6
- package/dist/components/PhoneInput/PhoneInput.form.js +11 -13
- package/dist/components/Radio/Radio.form.js +22 -25
- package/dist/components/Search/Search.form.js +11 -13
- package/dist/components/Select/Select.form.js +10 -12
- package/dist/components/TextArea/TextArea.form.js +8 -7
- package/dist/components/Tour/Tour.js +22 -22
- package/dist/components/index.js +104 -102
- package/dist/icons/custom/Close.d.ts +2 -0
- package/dist/icons/custom/Close.js +13 -0
- package/dist/icons/custom/List2.d.ts +2 -0
- package/dist/icons/custom/List2.js +10 -0
- package/dist/icons/custom/Microphone4.d.ts +2 -0
- package/dist/icons/custom/Microphone4.js +17 -0
- package/dist/icons/custom/Microphone4Mute.d.ts +2 -0
- package/dist/icons/custom/Microphone4Mute.js +23 -0
- package/dist/icons/custom/Plus.d.ts +2 -0
- package/dist/icons/custom/Plus.js +10 -0
- package/dist/icons/custom/SplitIntoSections.d.ts +2 -0
- package/dist/icons/custom/SplitIntoSections.js +14 -0
- package/dist/icons/custom/TechnicalSupport.d.ts +2 -0
- package/dist/icons/custom/TechnicalSupport.js +10 -0
- package/dist/icons/custom/Tools.d.ts +2 -0
- package/dist/icons/custom/Tools.js +11 -0
- package/dist/icons/custom/Walk.d.ts +2 -0
- package/dist/icons/custom/Walk.js +11 -0
- package/dist/icons/custom/deprecated.d.ts +11 -0
- package/dist/icons/custom/deprecated.js +15 -0
- package/dist/icons/custom/index.d.ts +10 -0
- package/dist/icons/custom/lib.d.ts +16 -0
- package/dist/icons/custom/lib.js +7 -0
- package/dist/icons/index.d.ts +1 -1
- package/dist/icons/index.js +23 -25
- package/dist/index.js +115 -113
- package/package.json +1 -1
- package/dist/icons/svgs/CloseOutline.svg.js +0 -5
- package/dist/icons/svgs/List 2.0.svg.js +0 -5
- package/dist/icons/svgs/Microphone 4 mute-1.svg.js +0 -5
- package/dist/icons/svgs/Microphone 4 mute.svg.js +0 -5
- package/dist/icons/svgs/Microphone 4-1.svg.js +0 -5
- package/dist/icons/svgs/Microphone 4.svg.js +0 -5
- package/dist/icons/svgs/Plus.svg.js +0 -5
- package/dist/icons/svgs/SplitIntoSections.svg.js +0 -5
- package/dist/icons/svgs/TechnicalSupport.svg.js +0 -5
- package/dist/icons/svgs/Tools-1.svg.js +0 -5
- package/dist/icons/svgs/Tools.svg.js +0 -5
- package/dist/icons/svgs/Walk-1.svg.js +0 -5
- package/dist/icons/svgs/Walk.svg.js +0 -5
- 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/
|
|
5
|
-
const
|
|
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
|
-
|
|
7
|
+
s as Alert
|
|
8
8
|
};
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Form as
|
|
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
|
-
|
|
5
|
+
import { isFormItemRequired as u } from "../Form/isFormItemRequired.js";
|
|
6
|
+
const d = c.forwardRef((r, s) => {
|
|
6
7
|
const {
|
|
7
|
-
status:
|
|
8
|
-
errors:
|
|
8
|
+
status: o,
|
|
9
|
+
errors: a,
|
|
9
10
|
warnings: i
|
|
10
|
-
} =
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
-
}),
|
|
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
|
-
|
|
15
|
+
g as FormCascader
|
|
18
16
|
};
|
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
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
|
|
6
|
-
|
|
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:
|
|
11
|
-
} =
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
}),
|
|
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
|
-
|
|
21
|
-
|
|
18
|
+
w as FormDatePicker,
|
|
19
|
+
P as FormDatePickerMain
|
|
22
20
|
};
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import { jsx as
|
|
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
|
-
|
|
5
|
+
import { isFormItemRequired as g } from "../Form/isFormItemRequired.js";
|
|
6
|
+
const R = f.forwardRef((r, i) => {
|
|
6
7
|
const {
|
|
7
|
-
status:
|
|
8
|
+
status: e,
|
|
8
9
|
errors: a,
|
|
9
|
-
warnings:
|
|
10
|
-
} = m.Item.useStatus(),
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
-
}),
|
|
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
|
-
|
|
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
|
|
4
|
+
import { useId as w } from "react";
|
|
5
5
|
import "@solar-icons/react";
|
|
6
|
-
import { useMediaQuery as
|
|
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/
|
|
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:
|
|
15
|
+
placement: c = "right",
|
|
16
16
|
onClose: r,
|
|
17
17
|
open: e = !1,
|
|
18
|
-
...
|
|
19
|
-
} = i, s =
|
|
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", ...
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Form as
|
|
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
|
-
|
|
5
|
+
import { isFormItemRequired as c } from "../../Form/isFormItemRequired.js";
|
|
6
|
+
const I = f.forwardRef((r, i) => {
|
|
6
7
|
const {
|
|
7
|
-
status:
|
|
8
|
-
errors:
|
|
9
|
-
warnings:
|
|
10
|
-
} =
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
-
}),
|
|
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
|
-
|
|
15
|
+
g as FormInputOTP
|
|
18
16
|
};
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Form as
|
|
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
|
-
|
|
5
|
+
import { isFormItemRequired as d } from "../../Form/isFormItemRequired.js";
|
|
6
|
+
const I = a((r, s) => {
|
|
6
7
|
const {
|
|
7
|
-
status:
|
|
8
|
+
status: o,
|
|
8
9
|
errors: i,
|
|
9
10
|
warnings: u
|
|
10
|
-
} =
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
-
}),
|
|
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
|
-
|
|
15
|
+
j as FormInputPassword
|
|
18
16
|
};
|
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Form as
|
|
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
|
|
7
|
-
|
|
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:
|
|
10
|
+
status: o,
|
|
10
11
|
errors: i,
|
|
11
12
|
warnings: u
|
|
12
|
-
} =
|
|
13
|
-
return /* @__PURE__ */
|
|
14
|
-
}),
|
|
15
|
-
|
|
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
|
-
|
|
20
|
+
O as FormInput
|
|
23
21
|
};
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import { jsx as
|
|
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
|
|
5
|
-
|
|
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:
|
|
8
|
+
status: t,
|
|
8
9
|
errors: i,
|
|
9
10
|
warnings: s
|
|
10
|
-
} =
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
-
}),
|
|
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
|
-
|
|
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/
|
|
4
|
+
import { TechnicalSupport as o } from "../../../../icons/custom/TechnicalSupport.js";
|
|
5
5
|
import { Popover as N } from "../../../Popover/Popover.js";
|
|
6
|
-
import { Button as
|
|
7
|
-
const
|
|
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(
|
|
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
|
-
|
|
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
|
|
6
|
-
import {
|
|
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:
|
|
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:
|
|
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(
|
|
27
|
-
/* @__PURE__ */ o(
|
|
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
|
|
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
|
|
5
|
-
|
|
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:
|
|
8
|
-
errors:
|
|
9
|
-
warnings:
|
|
10
|
-
} =
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
-
}),
|
|
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
|
-
|
|
15
|
+
S as FormPhoneInput
|
|
18
16
|
};
|
|
@@ -1,36 +1,33 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Form as
|
|
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
|
-
|
|
5
|
+
import { isFormItemRequired as l } from "../Form/isFormItemRequired.js";
|
|
6
|
+
const R = d.forwardRef((r, n) => {
|
|
6
7
|
const {
|
|
7
|
-
children:
|
|
8
|
+
children: s
|
|
8
9
|
} = r, {
|
|
9
|
-
status:
|
|
10
|
-
errors:
|
|
11
|
-
warnings:
|
|
12
|
-
} =
|
|
13
|
-
return /* @__PURE__ */
|
|
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:
|
|
17
|
+
children: s
|
|
20
18
|
} = r, {
|
|
21
|
-
status:
|
|
22
|
-
errors:
|
|
23
|
-
warnings:
|
|
24
|
-
} =
|
|
25
|
-
return /* @__PURE__ */
|
|
26
|
-
}),
|
|
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:
|
|
26
|
+
children: n
|
|
30
27
|
} = r;
|
|
31
|
-
return /* @__PURE__ */
|
|
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
|
-
|
|
30
|
+
I.Group = S;
|
|
34
31
|
export {
|
|
35
|
-
|
|
32
|
+
I as FormRadio
|
|
36
33
|
};
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import { jsx as
|
|
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
|
|
5
|
-
|
|
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:
|
|
8
|
-
errors:
|
|
9
|
-
warnings:
|
|
10
|
-
} =
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
-
}),
|
|
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
|
-
|
|
15
|
+
g as FormSearch
|
|
18
16
|
};
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import { jsx as
|
|
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
|
|
5
|
-
|
|
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:
|
|
8
|
-
errors:
|
|
8
|
+
status: t,
|
|
9
|
+
errors: s,
|
|
9
10
|
warnings: c
|
|
10
|
-
} =
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
-
}),
|
|
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
|
-
|
|
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
|
|
5
|
-
|
|
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:
|
|
10
|
-
} =
|
|
11
|
-
return /* @__PURE__ */ o(u, { ref:
|
|
12
|
-
}),
|
|
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
|
-
|
|
15
|
+
S as FormTextArea
|
|
15
16
|
};
|