@arthurzakharov/ui-kit 1.9.2 → 1.9.3
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/assets/block-Citbx8fr.css +1 -0
- package/dist/assets/text-blocks-D6hkchVT.css +1 -0
- package/dist/components/payment/components/block/block.component.js +8 -8
- package/dist/components/payment/components/text-blocks/text-blocks.component.js +8 -8
- package/package.json +1 -1
- package/dist/assets/block-Cfs3t-yJ.css +0 -1
- package/dist/assets/text-blocks-BFlmgDQ2.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._Block_2daiv_1{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;justify-content:flex-start;gap:var(--rm-ui-padding-md)}._BlockTitle_2daiv_10{font-weight:var(--rm-ui-font-weight-medium);color:var(--rm-ui-color-text-primary);font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._TextBlocks_r8ygn_1{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;justify-content:flex-start;gap:var(--rm-ui-payment-text-blocks-gap)}._TextBlocksContent_r8ygn_10{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;justify-content:flex-start;gap:var(--rm-ui-padding-xs)}._TextBlocksTitle_r8ygn_19{font-weight:var(--rm-ui-font-weight-bold);font-size:var(--rm-ui-font-size-hl3);line-height:var(--rm-ui-line-height-hl3);color:var(--rm-ui-color-text-primary)}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import '../../../../assets/block-
|
|
3
|
-
Block:
|
|
4
|
-
BlockTitle:
|
|
5
|
-
},
|
|
6
|
-
/* @__PURE__ */
|
|
7
|
-
|
|
1
|
+
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import '../../../../assets/block-Citbx8fr.css';const e = "_Block_2daiv_1", i = "_BlockTitle_2daiv_10", l = {
|
|
3
|
+
Block: e,
|
|
4
|
+
BlockTitle: i
|
|
5
|
+
}, n = ({ children: c, title: o }) => /* @__PURE__ */ s("div", { className: l.Block, children: [
|
|
6
|
+
/* @__PURE__ */ t("h6", { className: l.BlockTitle, dangerouslySetInnerHTML: { __html: o } }),
|
|
7
|
+
c
|
|
8
8
|
] });
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
n as Block
|
|
11
11
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as n, jsxs as a } from "react/jsx-runtime";
|
|
2
2
|
import { Text as p } from "../../../text/text.component.js";
|
|
3
|
-
import '../../../../assets/text-blocks-
|
|
3
|
+
import '../../../../assets/text-blocks-D6hkchVT.css';const B = "_TextBlocks_r8ygn_1", d = "_TextBlocksContent_r8ygn_10", k = "_TextBlocksTitle_r8ygn_19", c = {
|
|
4
4
|
TextBlocks: B,
|
|
5
5
|
TextBlocksContent: d,
|
|
6
6
|
TextBlocksTitle: k
|
|
7
7
|
}, f = (x) => {
|
|
8
|
-
const { blocks:
|
|
8
|
+
const { blocks: r = [] } = x, T = (t) => {
|
|
9
9
|
let e = t.title, s = t.text;
|
|
10
10
|
return t.placeholders && Object.keys(t.placeholders).forEach((l) => {
|
|
11
11
|
if (!t.placeholders?.[l]) return;
|
|
12
|
-
const
|
|
13
|
-
|
|
12
|
+
const o = l.split("-")[1], i = t.placeholders[l]();
|
|
13
|
+
o === "title" && (e = e.replace(new RegExp(l, "g"), i)), o === "text" && (s = s.replace(new RegExp(l, "g"), i));
|
|
14
14
|
}), {
|
|
15
15
|
title: e,
|
|
16
16
|
text: s
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
/* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ n("div", { className: c.TextBlocks, children: r.map(T).map(({ title: t, text: e }, s) => /* @__PURE__ */ a("div", { className: c.TextBlocksContent, children: [
|
|
20
|
+
/* @__PURE__ */ n("h6", { className: c.TextBlocksTitle, children: t }),
|
|
21
|
+
/* @__PURE__ */ n(p, { children: e })
|
|
22
22
|
] }, s)) });
|
|
23
23
|
};
|
|
24
24
|
export {
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._Block_e0cdw_1{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;justify-content:flex-start;gap:var(--rm-ui-padding-md)}._BlockTitle_e0cdw_10{font-weight:var(--rm-ui-font-weight-bold);color:var(--rm-ui-color-text-primary);font-size:var(--rm-ui-font-size-hl4);line-height:var(--rm-ui-line-height-hl4)}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._TextBlocks_16ga5_1{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;justify-content:flex-start;gap:var(--rm-ui-payment-text-blocks-gap)}._TextBlocksContent_16ga5_10{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;justify-content:flex-start;gap:var(--rm-ui-padding-xs)}._TextBlocksTitle_16ga5_19{font-weight:var(--rm-ui-font-weight-bold);font-size:var(--rm-ui-font-size-hl4);line-height:var(--rm-ui-line-height-hl4);color:var(--rm-ui-color-text-primary)}
|