@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.
@@ -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 e, jsx as s } from "react/jsx-runtime";
2
- import '../../../../assets/block-Cfs3t-yJ.css';const t = "_Block_e0cdw_1", k = "_BlockTitle_e0cdw_10", c = {
3
- Block: t,
4
- BlockTitle: k
5
- }, B = ({ children: l, title: o }) => /* @__PURE__ */ e("div", { className: c.Block, children: [
6
- /* @__PURE__ */ s("h6", { className: c.BlockTitle, dangerouslySetInnerHTML: { __html: o } }),
7
- l
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
- B as Block
10
+ n as Block
11
11
  };
@@ -1,24 +1,24 @@
1
- import { jsx as c, jsxs as r } from "react/jsx-runtime";
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-BFlmgDQ2.css';const B = "_TextBlocks_16ga5_1", d = "_TextBlocksContent_16ga5_10", k = "_TextBlocksTitle_16ga5_19", o = {
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: a = [] } = x, T = (t) => {
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 n = l.split("-")[1], i = t.placeholders[l]();
13
- n === "title" && (e = e.replace(new RegExp(l, "g"), i)), n === "text" && (s = s.replace(new RegExp(l, "g"), i));
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__ */ c("div", { className: o.TextBlocks, children: a.map(T).map(({ title: t, text: e }, s) => /* @__PURE__ */ r("div", { className: o.TextBlocksContent, children: [
20
- /* @__PURE__ */ c("h6", { className: o.TextBlocksTitle, children: t }),
21
- /* @__PURE__ */ c(p, { children: e })
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,7 +1,7 @@
1
1
  {
2
2
  "name": "@arthurzakharov/ui-kit",
3
3
  "private": false,
4
- "version": "1.9.2",
4
+ "version": "1.9.3",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -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)}