@redneckz/wildless-cms-uni-blocks 0.6.40 → 0.6.41

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 (184) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +32 -16
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/ButtonBlock/ButtonBlock.d.ts +6 -0
  5. package/bundle/components/ButtonBlock/ButtonBlockContent.d.ts +8 -0
  6. package/bundle/components/Header/HeaderTop.d.ts +2 -0
  7. package/bundle/components/ProductTile/ProductTileContent.d.ts +2 -0
  8. package/bundle/model/LogoType.d.ts +5 -0
  9. package/bundle/services/sitemap/SitemapProps.d.ts +2 -4
  10. package/bundle/ui-kit/Logo/Logo.d.ts +2 -5
  11. package/bundle/ui-kit/Logo/Logo.mobile.d.ts +2 -0
  12. package/bundle/ui-kit/Logo/renderImage.d.ts +6 -0
  13. package/bundle/ui-kit/Logo/renderTitle.d.ts +3 -0
  14. package/dist/components/Blocks.js +2 -0
  15. package/dist/components/Blocks.js.map +1 -1
  16. package/dist/components/ButtonBlock/ButtonBlock.d.ts +6 -0
  17. package/dist/components/ButtonBlock/ButtonBlock.js +11 -0
  18. package/dist/components/ButtonBlock/ButtonBlock.js.map +1 -0
  19. package/dist/components/ButtonBlock/ButtonBlockContent.d.ts +8 -0
  20. package/dist/components/ButtonBlock/ButtonBlockContent.js +2 -0
  21. package/dist/components/ButtonBlock/ButtonBlockContent.js.map +1 -0
  22. package/dist/components/Calculator/constants.js +1 -1
  23. package/dist/components/Header/Header.mobile.js +2 -2
  24. package/dist/components/Header/Header.mobile.js.map +1 -1
  25. package/dist/components/Header/HeaderTop.d.ts +2 -0
  26. package/dist/components/Header/HeaderTop.js +1 -1
  27. package/dist/components/Header/HeaderTop.js.map +1 -1
  28. package/dist/components/ProductTile/ProductTile.js +8 -2
  29. package/dist/components/ProductTile/ProductTile.js.map +1 -1
  30. package/dist/components/ProductTile/ProductTileContent.d.ts +2 -0
  31. package/dist/model/LogoType.d.ts +5 -0
  32. package/dist/model/LogoType.js +2 -0
  33. package/dist/model/LogoType.js.map +1 -0
  34. package/dist/services/sitemap/SitemapProps.d.ts +2 -4
  35. package/dist/ui-kit/Logo/Logo.d.ts +2 -5
  36. package/dist/ui-kit/Logo/Logo.js +3 -21
  37. package/dist/ui-kit/Logo/Logo.js.map +1 -1
  38. package/dist/ui-kit/Logo/Logo.mobile.d.ts +2 -0
  39. package/dist/ui-kit/Logo/Logo.mobile.js +4 -15
  40. package/dist/ui-kit/Logo/Logo.mobile.js.map +1 -1
  41. package/dist/ui-kit/Logo/renderImage.d.ts +6 -0
  42. package/dist/ui-kit/Logo/renderImage.js +20 -0
  43. package/dist/ui-kit/Logo/renderImage.js.map +1 -0
  44. package/dist/ui-kit/Logo/renderTitle.d.ts +3 -0
  45. package/dist/ui-kit/Logo/renderTitle.js +12 -0
  46. package/dist/ui-kit/Logo/renderTitle.js.map +1 -0
  47. package/lib/common.css +1 -1
  48. package/lib/components/Blocks.js +2 -0
  49. package/lib/components/Blocks.js.map +1 -1
  50. package/lib/components/ButtonBlock/ButtonBlock.d.ts +6 -0
  51. package/lib/components/ButtonBlock/ButtonBlock.fixture.d.ts +6 -0
  52. package/lib/components/ButtonBlock/ButtonBlock.js +9 -0
  53. package/lib/components/ButtonBlock/ButtonBlock.js.map +1 -0
  54. package/lib/components/ButtonBlock/ButtonBlockContent.d.ts +8 -0
  55. package/lib/components/ButtonBlock/ButtonBlockContent.js +2 -0
  56. package/lib/components/ButtonBlock/ButtonBlockContent.js.map +1 -0
  57. package/lib/components/Calculator/constants.js +1 -1
  58. package/lib/components/Header/Header.mobile.js +2 -2
  59. package/lib/components/Header/Header.mobile.js.map +1 -1
  60. package/lib/components/Header/HeaderTop.d.ts +2 -0
  61. package/lib/components/Header/HeaderTop.js +1 -1
  62. package/lib/components/Header/HeaderTop.js.map +1 -1
  63. package/lib/components/ProductTile/ProductTile.fixture.d.ts +1 -0
  64. package/lib/components/ProductTile/ProductTile.js +8 -2
  65. package/lib/components/ProductTile/ProductTile.js.map +1 -1
  66. package/lib/components/ProductTile/ProductTileContent.d.ts +2 -0
  67. package/lib/model/LogoType.d.ts +5 -0
  68. package/lib/model/LogoType.js +2 -0
  69. package/lib/model/LogoType.js.map +1 -0
  70. package/lib/services/sitemap/SitemapProps.d.ts +2 -4
  71. package/lib/ui-kit/Logo/Logo.d.ts +2 -5
  72. package/lib/ui-kit/Logo/Logo.js +4 -22
  73. package/lib/ui-kit/Logo/Logo.js.map +1 -1
  74. package/lib/ui-kit/Logo/Logo.mobile.d.ts +2 -0
  75. package/lib/ui-kit/Logo/Logo.mobile.js +5 -16
  76. package/lib/ui-kit/Logo/Logo.mobile.js.map +1 -1
  77. package/lib/ui-kit/Logo/renderImage.d.ts +5 -0
  78. package/lib/ui-kit/Logo/renderImage.js +17 -0
  79. package/lib/ui-kit/Logo/renderImage.js.map +1 -0
  80. package/lib/ui-kit/Logo/renderTitle.d.ts +2 -0
  81. package/lib/ui-kit/Logo/renderTitle.js +9 -0
  82. package/lib/ui-kit/Logo/renderTitle.js.map +1 -0
  83. package/mobile/bundle/bundle.umd.js +18 -7
  84. package/mobile/bundle/bundle.umd.min.js +1 -1
  85. package/mobile/bundle/components/ButtonBlock/ButtonBlock.d.ts +6 -0
  86. package/mobile/bundle/components/ButtonBlock/ButtonBlockContent.d.ts +8 -0
  87. package/mobile/bundle/components/Header/HeaderTop.d.ts +2 -0
  88. package/mobile/bundle/components/ProductTile/ProductTileContent.d.ts +2 -0
  89. package/mobile/bundle/model/LogoType.d.ts +5 -0
  90. package/mobile/bundle/services/sitemap/SitemapProps.d.ts +2 -4
  91. package/mobile/bundle/ui-kit/Logo/Logo.d.ts +2 -0
  92. package/mobile/bundle/ui-kit/Logo/renderImage.d.ts +6 -0
  93. package/mobile/bundle/ui-kit/Logo/renderTitle.d.ts +3 -0
  94. package/mobile/dist/components/ButtonBlock/ButtonBlock.d.ts +6 -0
  95. package/mobile/dist/components/ButtonBlock/ButtonBlock.js +11 -0
  96. package/mobile/dist/components/ButtonBlock/ButtonBlock.js.map +1 -0
  97. package/mobile/dist/components/ButtonBlock/ButtonBlockContent.d.ts +8 -0
  98. package/mobile/dist/components/ButtonBlock/ButtonBlockContent.js +2 -0
  99. package/mobile/dist/components/ButtonBlock/ButtonBlockContent.js.map +1 -0
  100. package/mobile/dist/components/Calculator/constants.js +1 -1
  101. package/mobile/dist/components/Header/Header.js +2 -2
  102. package/mobile/dist/components/Header/Header.js.map +1 -1
  103. package/mobile/dist/components/Header/HeaderTop.d.ts +2 -0
  104. package/mobile/dist/components/Header/HeaderTop.js +1 -1
  105. package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
  106. package/mobile/dist/components/ProductTile/ProductTile.js +8 -2
  107. package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
  108. package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +2 -0
  109. package/mobile/dist/model/LogoType.d.ts +5 -0
  110. package/mobile/dist/model/LogoType.js +2 -0
  111. package/mobile/dist/model/LogoType.js.map +1 -0
  112. package/mobile/dist/services/sitemap/SitemapProps.d.ts +2 -4
  113. package/mobile/dist/ui-kit/Logo/Logo.d.ts +2 -0
  114. package/mobile/dist/ui-kit/Logo/Logo.js +4 -15
  115. package/mobile/dist/ui-kit/Logo/Logo.js.map +1 -1
  116. package/mobile/dist/ui-kit/Logo/renderImage.d.ts +6 -0
  117. package/mobile/dist/ui-kit/Logo/renderImage.js +20 -0
  118. package/mobile/dist/ui-kit/Logo/renderImage.js.map +1 -0
  119. package/mobile/dist/ui-kit/Logo/renderTitle.d.ts +3 -0
  120. package/mobile/dist/ui-kit/Logo/renderTitle.js +12 -0
  121. package/mobile/dist/ui-kit/Logo/renderTitle.js.map +1 -0
  122. package/mobile/lib/components/ButtonBlock/ButtonBlock.d.ts +6 -0
  123. package/mobile/lib/components/ButtonBlock/ButtonBlock.js +9 -0
  124. package/mobile/lib/components/ButtonBlock/ButtonBlock.js.map +1 -0
  125. package/mobile/lib/components/ButtonBlock/ButtonBlockContent.d.ts +8 -0
  126. package/mobile/lib/components/ButtonBlock/ButtonBlockContent.js +2 -0
  127. package/mobile/lib/components/ButtonBlock/ButtonBlockContent.js.map +1 -0
  128. package/mobile/lib/components/Calculator/constants.js +1 -1
  129. package/mobile/lib/components/Header/Header.js +2 -2
  130. package/mobile/lib/components/Header/Header.js.map +1 -1
  131. package/mobile/lib/components/Header/HeaderTop.d.ts +2 -0
  132. package/mobile/lib/components/Header/HeaderTop.js +1 -1
  133. package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
  134. package/mobile/lib/components/ProductTile/ProductTile.js +8 -2
  135. package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
  136. package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +2 -0
  137. package/mobile/lib/model/LogoType.d.ts +5 -0
  138. package/mobile/lib/model/LogoType.js +2 -0
  139. package/mobile/lib/model/LogoType.js.map +1 -0
  140. package/mobile/lib/services/sitemap/SitemapProps.d.ts +2 -4
  141. package/mobile/lib/ui-kit/Logo/Logo.d.ts +2 -0
  142. package/mobile/lib/ui-kit/Logo/Logo.js +5 -16
  143. package/mobile/lib/ui-kit/Logo/Logo.js.map +1 -1
  144. package/mobile/lib/ui-kit/Logo/renderImage.d.ts +6 -0
  145. package/mobile/lib/ui-kit/Logo/renderImage.js +17 -0
  146. package/mobile/lib/ui-kit/Logo/renderImage.js.map +1 -0
  147. package/mobile/lib/ui-kit/Logo/renderTitle.d.ts +3 -0
  148. package/mobile/lib/ui-kit/Logo/renderTitle.js +9 -0
  149. package/mobile/lib/ui-kit/Logo/renderTitle.js.map +1 -0
  150. package/mobile/src/components/ButtonBlock/ButtonBlock.example.json +10 -0
  151. package/mobile/src/components/ButtonBlock/ButtonBlock.tsx +17 -0
  152. package/mobile/src/components/ButtonBlock/ButtonBlock.ui.json +12 -0
  153. package/mobile/src/components/ButtonBlock/ButtonBlockContent.ts +9 -0
  154. package/mobile/src/components/Calculator/constants.ts +1 -1
  155. package/mobile/src/components/Header/Header.tsx +2 -2
  156. package/mobile/src/components/Header/HeaderTop.tsx +4 -2
  157. package/mobile/src/components/ProductTile/ProductTile.example.json +2 -1
  158. package/mobile/src/components/ProductTile/ProductTile.tsx +34 -18
  159. package/mobile/src/components/ProductTile/ProductTileContent.ts +2 -0
  160. package/mobile/src/model/LogoType.ts +6 -0
  161. package/mobile/src/services/sitemap/SitemapProps.ts +2 -4
  162. package/mobile/src/ui-kit/Logo/Logo.tsx +16 -31
  163. package/mobile/src/ui-kit/Logo/renderImage.tsx +40 -0
  164. package/mobile/src/ui-kit/Logo/renderTitle.tsx +15 -0
  165. package/package.json +1 -1
  166. package/src/components/Blocks.ts +2 -0
  167. package/src/components/ButtonBlock/ButtonBlock.example.json +10 -0
  168. package/src/components/ButtonBlock/ButtonBlock.fixture.tsx +18 -0
  169. package/src/components/ButtonBlock/ButtonBlock.tsx +17 -0
  170. package/src/components/ButtonBlock/ButtonBlock.ui.json +12 -0
  171. package/src/components/ButtonBlock/ButtonBlockContent.ts +9 -0
  172. package/src/components/Calculator/constants.ts +1 -1
  173. package/src/components/Header/Header.mobile.tsx +2 -2
  174. package/src/components/Header/HeaderTop.tsx +4 -2
  175. package/src/components/ProductTile/ProductTile.example.json +2 -1
  176. package/src/components/ProductTile/ProductTile.fixture.tsx +13 -0
  177. package/src/components/ProductTile/ProductTile.tsx +34 -18
  178. package/src/components/ProductTile/ProductTileContent.ts +2 -0
  179. package/src/model/LogoType.ts +6 -0
  180. package/src/services/sitemap/SitemapProps.ts +2 -4
  181. package/src/ui-kit/Logo/Logo.mobile.tsx +16 -31
  182. package/src/ui-kit/Logo/Logo.tsx +6 -43
  183. package/src/ui-kit/Logo/renderImage.tsx +40 -0
  184. package/src/ui-kit/Logo/renderTitle.tsx +15 -0
@@ -30,4 +30,6 @@ export declare type ProductTileContent = HeadlineProps & ButtonContent & {
30
30
  benefits?: TextBenefit[];
31
31
  /** @title Дополнительное описание */
32
32
  additionalDescription?: string;
33
+ /** @title Картинка справа/текст слева */
34
+ isImageOnRightSide?: boolean;
33
35
  };
@@ -0,0 +1,5 @@
1
+ import type { Picture } from './Picture';
2
+ export declare type LogoType = {
3
+ image?: Picture;
4
+ title?: string;
5
+ };
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ //# sourceMappingURL=LogoType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LogoType.js","sourceRoot":"","sources":["../../src/model/LogoType.ts"],"names":[],"mappings":""}
@@ -1,4 +1,5 @@
1
1
  import type { LinkProps } from '../../model/LinkProps';
2
+ import type { LogoType } from '../../model/LogoType';
2
3
  import type { Picture } from '../../model/Picture';
3
4
  /**
4
5
  * @title Ссылка
@@ -19,10 +20,7 @@ export interface DispositionItem extends LinkProps {
19
20
  export interface SitemapDataProps {
20
21
  topItems?: TopMenuItem[];
21
22
  dispositions?: DispositionItem[];
22
- logo?: {
23
- image?: Picture;
24
- title?: string;
25
- };
23
+ logo?: LogoType;
26
24
  defaultLocation?: string;
27
25
  officesLink?: string;
28
26
  }
@@ -1,8 +1,10 @@
1
+ import type { LogoType } from '../../model/LogoType';
1
2
  export interface LogoProps {
2
3
  className: string;
3
4
  href: string;
4
5
  targetBlank: boolean;
5
6
  bgColor?: string;
6
7
  showTitle?: boolean;
8
+ logo?: LogoType;
7
9
  }
8
10
  export declare const Logo: import("@redneckz/uni-jsx").UNIComponent<Partial<LogoProps>, any, any>;
@@ -2,20 +2,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.Logo = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const Img_1 = require("../Img/Img");
6
- const ICON_VERSION_MAP = {
7
- 'bg-white': 'color',
8
- transparent: 'white',
9
- };
10
- const SVG_COLOR = {
11
- 'bg-white': 'text-primary-main',
12
- transparent: 'text-white',
13
- };
14
- const TEXT_COLOR = {
15
- 'bg-white': 'text-black',
16
- transparent: 'text-white',
17
- };
18
- exports.Logo = (0, uni_jsx_1.JSX)(({ className = '', href, children, targetBlank, bgColor = 'bg-white', showTitle = true }) => {
19
- return ((0, jsx_runtime_1.jsxs)("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || 'https://rshb.ru/', target: targetBlank ? '_blank' : '_self', "aria-label": "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A", children: [(0, jsx_runtime_1.jsx)(Img_1.Img, { image: { icon: 'LogoIcon', iconVersion: ICON_VERSION_MAP[bgColor] }, className: `${SVG_COLOR[bgColor]}`, width: "34", height: "34", asSVG: true }), showTitle ? ((0, jsx_runtime_1.jsx)("span", { className: `${TEXT_COLOR[bgColor]} text-s font-medium ml-2.5`, children: children || 'Россельхозбанк' })) : null] }));
5
+ const renderImage_1 = require("./renderImage");
6
+ const renderTitle_1 = require("./renderTitle");
7
+ exports.Logo = (0, uni_jsx_1.JSX)(({ bgColor = 'bg-white', children, className = '', href, logo, showTitle = true, targetBlank, }) => {
8
+ return ((0, jsx_runtime_1.jsxs)("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || 'https://rshb.ru/', target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [(0, renderImage_1.renderImage)(bgColor, logo?.image, { width: '34', height: '34' }), showTitle ? (0, renderTitle_1.renderTitle)(children || logo?.title, bgColor, 'text-s') : null] }));
20
9
  });
21
10
  //# sourceMappingURL=Logo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Logo.js","sourceRoot":"","sources":["../../../src/ui-kit/Logo/Logo.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,oCAAiC;AAUjC,MAAM,gBAAgB,GAAmC;IACvD,UAAU,EAAE,OAAO;IACnB,WAAW,EAAE,OAAO;CACrB,CAAC;AAEF,MAAM,SA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AChB,WAAW,GACZ,EAAE,EAAE;IACH,OAAO,CACL,+BACE,SAAS,EAAE,mDAAmD,SAAS,EAAE,EACzE,IAAI,EAAE,IAAI,IAAI,kBAAkB,EAChC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,gBAC5B,IAAI,EAAE,KAAK,IAAI,gBAAgB,aAE1C,IAAA,yBAAW,EAAC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAChE,SAAS,CAAC,CAAC,CAAC,IAAA,yBAAW,EAAC,QAAQ,IAAI,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,IACzE,CACL,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import type { Picture } from '../../model/Picture';
3
+ export declare const renderImage: (bgColor: string, image?: Picture, size?: {
4
+ width: string;
5
+ height: string;
6
+ }) => JSX.Element;
@@ -0,0 +1,20 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.renderImage = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const Img_1 = require("../Img/Img");
5
+ const ICON_VERSION_MAP = {
6
+ 'bg-white': 'color',
7
+ transparent: 'white',
8
+ };
9
+ const SVG_COLOR = {
10
+ 'bg-white': 'text-primary-main',
11
+ transparent: 'text-white',
12
+ };
13
+ const renderImage = (bgColor, image, size) => {
14
+ return image?.src ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: image, className: SVG_COLOR[bgColor], width: size?.width, height: size?.height, asSVG: true })) : ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: {
15
+ icon: image?.icon || 'LogoIcon',
16
+ iconVersion: ICON_VERSION_MAP[bgColor],
17
+ }, className: SVG_COLOR[bgColor], width: size?.width, height: size?.height, asSVG: true }));
18
+ };
19
+ exports.renderImage = renderImage;
20
+ //# sourceMappingURL=renderImage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderImage.js","sourceRoot":"","sources":["../../../src/ui-kit/Logo/renderImage.tsx"],"names":[],"mappings":";;;AAEA,oCAAiC;AAEjC,MAAM,gBAAgB,GAAmC;IACvD,UAAU,EAAE,OAAO;IACnB,WAAW,EAAE,OAAO;CACrB,CAAC;AAEF,MAAM,SAAS,GAAmC;IAChD,UAAU,EAAE,mBAAmB;IAC/B,WAAW,EAAE,YAAY;CAC1B,CAAC;AAEK,MAAM,WAAW,GAAG,CACzB,OAAe,EACf,KAAe,EACf,IAAwC,EACxC,EAAE;IACF,OAAO,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAClB,uBAAC,SAAG,IACF,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,CAAC,OAAO,CAAC,EAC7B,KAAK,EAAE,IAAI,EAAE,KAAK,EAClB,MAAM,EAAE,IAAI,EAAE,MAAM,EACpB,KAAK,SACL,CACH,CAAC,CAAC,CAAC,CACF,uBAAC,SAAG,IACF,KAAK,EAAE;YACL,IAAI,EAAE,KAAK,EAAE,IAAI,IAAI,UAAU;YAC/B,WAAW,EAAE,gBAAgB,CAAC,OAAO,CAAC;SACvC,EACD,SAAS,EAAE,SAAS,CAAC,OAAO,CAAC,EAC7B,KAAK,EAAE,IAAI,EAAE,KAAK,EAClB,MAAM,EAAE,IAAI,EAAE,MAAM,EACpB,KAAK,SACL,CACH,CAAC;AACJ,CAAC,CAAC;AAzBW,QAAA,WAAW,eAyBtB"}
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import type { VNode } from '../../model/VNode';
3
+ export declare const renderTitle: (title: VNode, bgColor: string, className?: string) => JSX.Element;
@@ -0,0 +1,12 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.renderTitle = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const TEXT_COLOR = {
5
+ 'bg-white': 'text-primary-text',
6
+ transparent: 'text-white',
7
+ };
8
+ const renderTitle = (title, bgColor, className) => {
9
+ return ((0, jsx_runtime_1.jsx)("span", { className: `${TEXT_COLOR[bgColor]} ml-2.5 font-medium ${className || ''}`, children: title || 'Россельхозбанк' }));
10
+ };
11
+ exports.renderTitle = renderTitle;
12
+ //# sourceMappingURL=renderTitle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderTitle.js","sourceRoot":"","sources":["../../../src/ui-kit/Logo/renderTitle.tsx"],"names":[],"mappings":";;;AAGA,MAAM,UAAU,GAAmC;IACjD,UAAU,EAAE,mBAAmB;IAC/B,WAAW,EAAE,YAAY;CAC1B,CAAC;AAEK,MAAM,WAAW,GAAG,CAAC,KAAY,EAAE,OAAe,EAAE,SAAkB,EAAE,EAAE;IAC/E,OAAO,CACL,iCAAM,SAAS,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,uBAAuB,SAAS,IAAI,EAAE,EAAE,YAC5E,KAAK,IAAI,gBAAgB,GACrB,CACR,CAAC;AACJ,CAAC,CAAC;AANW,QAAA,WAAW,eAMtB"}
@@ -0,0 +1,6 @@
1
+ import type { UniBlockProps } from '../../model/JSXBlock';
2
+ import type { ButtonBlockContent } from './ButtonBlockContent';
3
+ interface ButtonBlockProps extends ButtonBlockContent, UniBlockProps {
4
+ }
5
+ export declare const ButtonBlock: import("@redneckz/uni-jsx").UNIComponent<ButtonBlockProps, any, any>;
6
+ export {};
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
+ import { JSX } from '@redneckz/uni-jsx';
3
+ import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
4
+ import { renderButton } from '../../ui-kit/Button/ButtonSection.js';
5
+ export const ButtonBlock = JSX((props) => {
6
+ const { className, button, ...rest } = props;
7
+ return (_jsx(BlockWrapper, { className: className, ...rest, children: button ? renderButton({ button }) : null }));
8
+ });
9
+ //# sourceMappingURL=ButtonBlock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonBlock.js","sourceRoot":"","sources":["../../../src/components/ButtonBlock/ButtonBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAKjE,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAmB,CAAC,KAAK,EAAE,EAAE;IACzD,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAE7C,OAAO,CACL,KAAC,YAAY,IAAC,SAAS,EAAE,SAAS,KAAM,IAAI,YACzC,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,GAC5B,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
2
+ /**
3
+ * @title Блок Кнопка
4
+ */
5
+ export interface ButtonBlockContent {
6
+ /** @title Кнопка */
7
+ button?: ButtonWithIconProps;
8
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ButtonBlockContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonBlockContent.js","sourceRoot":"","sources":["../../../src/components/ButtonBlock/ButtonBlockContent.ts"],"names":[],"mappings":""}
@@ -11,7 +11,7 @@ export const DEFAULT_CREDIT_CALCULATOR_PARAMS = {
11
11
  maxSum: DEFAULT_MAX_SUM,
12
12
  minMonths: DEFAULT_MIN_MONTHS,
13
13
  maxMonths: DEFAULT_MAX_MONTHS,
14
- rateBottomRange: 10,
14
+ rateBottomRange: 12,
15
15
  rateTopRange: 7,
16
16
  isSalaryClient: true,
17
17
  isStateEmployee: true,
@@ -15,12 +15,12 @@ import { HeaderTop } from './HeaderTop.js';
15
15
  export const Header = JSX(({ className = '', bgColor = 'bg-white', ...rest }) => {
16
16
  const router = useRouter();
17
17
  const fallback = rest.options?.page?.fallback;
18
- const { topItems, dispositions, defaultLocation } = useSWRResource(projectSettings.SITEMAP || 'sitemap', fallback);
18
+ const { topItems, dispositions, defaultLocation, logo } = useSWRResource(projectSettings.SITEMAP || 'sitemap', fallback);
19
19
  const activeTopItem = topItems?.find(isTopItemActive(router));
20
20
  const subItems = activeTopItem?.items;
21
21
  const activeSubItem = findActiveSubItem(router)(subItems);
22
22
  const [burgerMenuShow, setBurgerMenuShow] = useState(false);
23
23
  const handleBurgerMenuShow = useCallback(() => setBurgerMenuShow((_) => !_), []);
24
- return (_jsxs("header", { className: `${bgColor} ${className}`, children: [_jsxs("div", { className: "container px-4 py-0 box-border", children: [_jsx(HeaderTop, { onClick: handleBurgerMenuShow, bgColor: bgColor }), _jsx("nav", { className: "flex items-center m-0 p-0 overflow-y-hidden w-full h-12", children: _jsx("div", { className: "flex no-scrollbar horizontal-list h-full items-center", children: subItems?.map((_, i) => (_jsx(HeaderItem, { className: "mr-8 whitespace-nowrap text-s", active: _ === activeSubItem, bgColor: bgColor, ..._ }, String(i)))) }) })] }), burgerMenuShow ? (_jsx(HeaderBurger, { onClick: handleBurgerMenuShow, burgerSubMenu: dispositions, defaultLocation: defaultLocation, children: _jsx(AccordionItemsList, { children: topItems?.map((item, i) => (_jsx(AccordionItem, { label: item.text, children: _jsx(LinkList, { documents: item.items }) }, String(i)))) }) })) : null] }));
24
+ return (_jsxs("header", { className: `${bgColor} ${className}`, children: [_jsxs("div", { className: "container px-4 py-0 box-border", children: [_jsx(HeaderTop, { onClick: handleBurgerMenuShow, bgColor: bgColor, logo: logo }), _jsx("nav", { className: "flex items-center m-0 p-0 overflow-y-hidden w-full h-12", children: _jsx("div", { className: "flex no-scrollbar horizontal-list h-full items-center", children: subItems?.map((_, i) => (_jsx(HeaderItem, { className: "mr-8 whitespace-nowrap text-s", active: _ === activeSubItem, bgColor: bgColor, ..._ }, String(i)))) }) })] }), burgerMenuShow ? (_jsx(HeaderBurger, { onClick: handleBurgerMenuShow, burgerSubMenu: dispositions, defaultLocation: defaultLocation, children: _jsx(AccordionItemsList, { children: topItems?.map((item, i) => (_jsx(AccordionItem, { label: item.text, children: _jsx(LinkList, { documents: item.items }) }, String(i)))) }) })) : null] }));
25
25
  });
26
26
  //# sourceMappingURL=Header.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/components/Header/Header.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAGlD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAEzE,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAIxC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAc,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,GAAG,UAAU,EAAE,GAAG,IAAI,EAAE,EAAE,EAA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,CAAC,IAJA,MAAM,CAAC,CAAC,CAAC,CAKd,CACH,CAAC,GACE,GACF,IACF,EACL,cAAc,CAAC,CAAC,CAAC,CAChB,KAAC,YAAY,IACX,OAAO,EAAE,oBAAoB,EAC7B,aAAa,EAAE,YAAY,EAC3B,eAAe,EAAE,eAAe,YAEhC,KAAC,kBAAkB,cAChB,QAAQ,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAC1B,KAAC,aAAa,IAAiB,KAAK,EAAE,IAAI,CAAC,IAAI,YAC7C,KAAC,QAAQ,IAAC,SAAS,EAAE,IAAI,CAAC,KAAK,GAAI,IADjB,MAAM,CAAC,CAAC,CAAC,CAEb,CACjB,CAAC,GACiB,GACR,CAChB,CAAC,CAAC,CAAC,IAAI,IACD,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,6 +1,8 @@
1
1
  import type { BgColorVersion } from '../../model/BgColorVersion';
2
+ import type { LogoType } from '../../model/LogoType';
2
3
  export interface HeaderTopProps {
3
4
  onClick: () => void;
4
5
  bgColor?: BgColorVersion;
6
+ logo?: LogoType;
5
7
  }
6
8
  export declare const HeaderTop: import("@redneckz/uni-jsx").UNIComponent<HeaderTopProps, any, any>;
@@ -2,5 +2,5 @@ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
3
  import { Img } from '../../ui-kit/Img/Img.js';
4
4
  import { Logo } from '../../ui-kit/Logo/Logo.js';
5
- export const HeaderTop = JSX(({ onClick, bgColor }) => (_jsxs("div", { className: "flex items-center justify-between border-0 border-b border-main-divider h-12", children: [_jsxs("div", { className: "flex items-center", children: [_jsx("button", { className: "pl-0 pr-4 border-0 bg-transparent cursor-pointer", onClick: onClick, "aria-label": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E", children: _jsx(Img, { image: { icon: 'BurgerIcon', iconVersion: bgColor === 'bg-white' ? 'black' : 'white' }, className: "text-primary-text w-6 h-6", width: "24", height: "24", asSVG: true }) }), _jsx(Logo, { className: "mr-8", bgColor: bgColor })] }), _jsx("button", { className: `${bgColor === 'bg-white' ? 'text-primary-main' : 'text-white'} text-s border-0 bg-transparent cursor-pointer`, children: "\u0412\u043E\u0439\u0442\u0438" })] })));
5
+ export const HeaderTop = JSX(({ onClick, bgColor, logo }) => (_jsxs("div", { className: "flex items-center justify-between border-0 border-b border-main-divider h-12", children: [_jsxs("div", { className: "flex items-center", children: [_jsx("button", { className: "pl-0 pr-4 border-0 bg-transparent cursor-pointer", onClick: onClick, "aria-label": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E", children: _jsx(Img, { image: { icon: 'BurgerIcon', iconVersion: bgColor === 'bg-white' ? 'black' : 'white' }, className: "text-primary-text w-6 h-6", width: "24", height: "24", asSVG: true }) }), _jsx(Logo, { className: "mr-8", bgColor: bgColor, logo: logo })] }), _jsx("button", { className: `${bgColor === 'bg-white' ? 'text-primary-main' : 'text-white'} text-s border-0 bg-transparent cursor-pointer`, children: "\u0412\u043E\u0439\u0442\u0438" })] })));
6
6
  //# sourceMappingURL=HeaderTop.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderTop.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderTop.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAM9C,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAiB,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CACrE,eAAK,SAAS,EAAC,8EAA8E,aAC3F,eAAK,SAAS,EAAC,mBAAmB,aAChC,iBACE,SAAS,EAAC,kDAAkD,EAC5D,OAAO,EAAE,OAAO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SAAS,EAAC,MAAM,EAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,GAAI,IACnD,EACN,iBACE,SAAS,EAAE,GACT,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,YACjD,gDAAgD,+CAGzC,IACL,CACP,CAAC,CAAC"}
@@ -6,8 +6,8 @@ import { ButtonSection } from '../../ui-kit/Button/ButtonSection.js';
6
6
  import { Img } from '../../ui-kit/Img/Img.js';
7
7
  import { getTileRightPadding } from '../BaseTile/getTileRightPadding.js';
8
8
  import { Headline } from '../Headline/Headline.js';
9
- export const ProductTile = JSX(({ className = '', title, headlineVersion = 'S', description, additionalDescription, benefits = [], buttons, image, version = 'primary', ...rest }) => (_jsxs(BlockWrapper, { className: `overflow-hidden font-sans p-9 box-border relative justify-between grid min-h-[364px]
10
- ${className} ${VersionStyleMap[version]} ${getTileRightPadding(className)}`, ...rest, children: [_jsx(Headline, { className: `!p-0 !bg-transparent z-10 ${title || description ? 'mb-3.5' : ''}`, as: "h2", title: title, description: description, headlineVersion: headlineVersion, bgColorHeadline: version, align: "left", ...rest }), renderBenefits(benefits, version, image), additionalDescription ? renderAdditionalDescription(additionalDescription, image) : null, buttons?.length ? (_jsx(ButtonSection, { buttons: buttons, className: "flex self-end mt-5 gap-4 z-10 text-l" })) : null, image?.src ? _jsx(Img, { className: "absolute right-0 bottom-0", image: image }) : null] })));
9
+ export const ProductTile = JSX(({ className = '', title, headlineVersion = 'S', description, additionalDescription, benefits = [], buttons, image, isImageOnRightSide = true, version = 'primary', ...rest }) => (_jsxs(BlockWrapper, { className: `overflow-hidden font-sans p-9 box-border relative min-h-[364px]
10
+ ${VersionStyleMap[version]} ${getTileRightPadding(className)} ${className}`, ...rest, children: [_jsxs("div", { className: `flex flex-col ${isImageOnRightSide ? '' : 'items-end'}`, children: [_jsx(Headline, { className: `!p-0 !bg-transparent z-10 ${title || description ? 'mb-3.5' : ''}`, as: "h2", title: title, description: description, headlineVersion: headlineVersion, bgColorHeadline: version, align: "left", ...rest }), renderBenefits(benefits, version, image), additionalDescription ? renderAdditionalDescription(additionalDescription, image) : null, buttons?.length ? (_jsx(ButtonSection, { buttons: buttons, className: "mt-5 gap-4 z-10 text-l" })) : null] }), renderImage(image, isImageOnRightSide)] })));
11
11
  function renderBenefits(benefits, version, image) {
12
12
  // picture width = 242px. Text can overlay picture 20px deep. Outer paddings_x = 36px. 242-36-20 = 186px
13
13
  const BENEFITS_WIDTH = image?.src ? 'max-w-[calc(100%-186px)]' : '100%';
@@ -26,4 +26,10 @@ function renderAdditionalDescription(additionalDescription, image) {
26
26
  const DESCRIPTION_WIDTH = image?.src ? 'max-w-[calc(100%-186px)]' : '100%';
27
27
  return (_jsx("div", { className: `text-m-light mt-2.5 z-10 ${DESCRIPTION_WIDTH}`, children: additionalDescription }));
28
28
  }
29
+ function renderImage(image, isImageOnRightSide) {
30
+ if (!image?.src) {
31
+ return null;
32
+ }
33
+ return (_jsx(Img, { className: `absolute ${isImageOnRightSide ? 'right-0' : 'left-0'} bottom-0`, image: image }));
34
+ }
29
35
  //# sourceMappingURL=ProductTile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProductTile.js","sourceRoot":"","sources":["../../../src/components/ProductTile/ProductTile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,yBAAyB,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAGtF,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAKhD,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAC5B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kB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,WAAW,EAC3E,KAAK,EAAE,KAAK,GACZ,CACH,CAAC;AACJ,CAAC"}
@@ -30,4 +30,6 @@ export declare type ProductTileContent = HeadlineProps & ButtonContent & {
30
30
  benefits?: TextBenefit[];
31
31
  /** @title Дополнительное описание */
32
32
  additionalDescription?: string;
33
+ /** @title Картинка справа/текст слева */
34
+ isImageOnRightSide?: boolean;
33
35
  };
@@ -0,0 +1,5 @@
1
+ import type { Picture } from './Picture';
2
+ export declare type LogoType = {
3
+ image?: Picture;
4
+ title?: string;
5
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=LogoType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LogoType.js","sourceRoot":"","sources":["../../src/model/LogoType.ts"],"names":[],"mappings":""}
@@ -1,4 +1,5 @@
1
1
  import type { LinkProps } from '../../model/LinkProps';
2
+ import type { LogoType } from '../../model/LogoType';
2
3
  import type { Picture } from '../../model/Picture';
3
4
  /**
4
5
  * @title Ссылка
@@ -19,10 +20,7 @@ export interface DispositionItem extends LinkProps {
19
20
  export interface SitemapDataProps {
20
21
  topItems?: TopMenuItem[];
21
22
  dispositions?: DispositionItem[];
22
- logo?: {
23
- image?: Picture;
24
- title?: string;
25
- };
23
+ logo?: LogoType;
26
24
  defaultLocation?: string;
27
25
  officesLink?: string;
28
26
  }
@@ -1,8 +1,10 @@
1
+ import type { LogoType } from '../../model/LogoType';
1
2
  export interface LogoProps {
2
3
  className: string;
3
4
  href: string;
4
5
  targetBlank: boolean;
5
6
  bgColor?: string;
6
7
  showTitle?: boolean;
8
+ logo?: LogoType;
7
9
  }
8
10
  export declare const Logo: import("@redneckz/uni-jsx").UNIComponent<Partial<LogoProps>, any, any>;
@@ -1,19 +1,8 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
1
+ import { jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
- import { Img } from '../Img/Img.js';
4
- const ICON_VERSION_MAP = {
5
- 'bg-white': 'color',
6
- transparent: 'white',
7
- };
8
- const SVG_COLOR = {
9
- 'bg-white': 'text-primary-main',
10
- transparent: 'text-white',
11
- };
12
- const TEXT_COLOR = {
13
- 'bg-white': 'text-black',
14
- transparent: 'text-white',
15
- };
16
- export const Logo = JSX(({ className = '', href, children, targetBlank, bgColor = 'bg-white', showTitle = true }) => {
17
- return (_jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || 'https://rshb.ru/', target: targetBlank ? '_blank' : '_self', "aria-label": "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A", children: [_jsx(Img, { image: { icon: 'LogoIcon', iconVersion: ICON_VERSION_MAP[bgColor] }, className: `${SVG_COLOR[bgColor]}`, width: "34", height: "34", asSVG: true }), showTitle ? (_jsx("span", { className: `${TEXT_COLOR[bgColor]} text-s font-medium ml-2.5`, children: children || 'Россельхозбанк' })) : null] }));
3
+ import { renderImage } from './renderImage.js';
4
+ import { renderTitle } from './renderTitle.js';
5
+ export const Logo = JSX(({ bgColor = 'bg-white', children, className = '', href, logo, showTitle = true, targetBlank, }) => {
6
+ return (_jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || 'https://rshb.ru/', target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [renderImage(bgColor, logo?.image, { width: '34', height: '34' }), showTitle ? renderTitle(children || logo?.title, bgColor, 'text-s') : null] }));
18
7
  });
19
8
  //# sourceMappingURL=Logo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Logo.js","sourceRoot":"","sources":["../../../src/ui-kit/Logo/Logo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,C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CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAW5C,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CACrB,CAAC,EACC,OAAO,GAAG,UAAU,EACpB,QAAQ,EACR,SAAS,GAAG,EAAE,EACd,IAAI,EACJ,IAAI,EACJ,SAAS,GAAG,IAAI,EAChB,WAAW,GACZ,EAAE,EAAE;IACH,OAAO,CACL,aACE,SAAS,EAAE,mDAAmD,SAAS,EAAE,EACzE,IAAI,EAAE,IAAI,IAAI,kBAAkB,EAChC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,gBAC5B,IAAI,EAAE,KAAK,IAAI,gBAAgB,aAE1C,WAAW,CAAC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAChE,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,IAAI,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,IACzE,CACL,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import type { Picture } from '../../model/Picture';
3
+ export declare const renderImage: (bgColor: string, image?: Picture, size?: {
4
+ width: string;
5
+ height: string;
6
+ }) => JSX.Element;
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
+ import { Img } from '../Img/Img.js';
3
+ const ICON_VERSION_MAP = {
4
+ 'bg-white': 'color',
5
+ transparent: 'white',
6
+ };
7
+ const SVG_COLOR = {
8
+ 'bg-white': 'text-primary-main',
9
+ transparent: 'text-white',
10
+ };
11
+ export const renderImage = (bgColor, image, size) => {
12
+ return image?.src ? (_jsx(Img, { image: image, className: SVG_COLOR[bgColor], width: size?.width, height: size?.height, asSVG: true })) : (_jsx(Img, { image: {
13
+ icon: image?.icon || 'LogoIcon',
14
+ iconVersion: ICON_VERSION_MAP[bgColor],
15
+ }, className: SVG_COLOR[bgColor], width: size?.width, height: size?.height, asSVG: true }));
16
+ };
17
+ //# sourceMappingURL=renderImage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderImage.js","sourceRoot":"","sources":["../../../src/ui-kit/Logo/renderImage.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,MAAM,gBAAgB,GAAmC;IACvD,UAAU,EAAE,OAAO;IACnB,WAAW,EAAE,OAAO;CACrB,CAAC;AAEF,MAAM,SAAS,GAAmC;IAChD,UAAU,EAAE,mBAAmB;IAC/B,WAAW,EAAE,YAAY;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,OAAe,EACf,KAAe,EACf,IAAwC,EACxC,EAAE;IACF,OAAO,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAClB,KAAC,GAAG,IACF,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,CAAC,OAAO,CAAC,EAC7B,KAAK,EAAE,IAAI,EAAE,KAAK,EAClB,MAAM,EAAE,IAAI,EAAE,MAAM,EACpB,KAAK,SACL,CACH,CAAC,CAAC,CAAC,CACF,KAAC,GAAG,IACF,KAAK,EAAE;YACL,IAAI,EAAE,KAAK,EAAE,IAAI,IAAI,UAAU;YAC/B,WAAW,EAAE,gBAAgB,CAAC,OAAO,CAAC;SACvC,EACD,SAAS,EAAE,SAAS,CAAC,OAAO,CAAC,EAC7B,KAAK,EAAE,IAAI,EAAE,KAAK,EAClB,MAAM,EAAE,IAAI,EAAE,MAAM,EACpB,KAAK,SACL,CACH,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import type { VNode } from '../../model/VNode';
3
+ export declare const renderTitle: (title: VNode, bgColor: string, className?: string) => JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
+ const TEXT_COLOR = {
3
+ 'bg-white': 'text-primary-text',
4
+ transparent: 'text-white',
5
+ };
6
+ export const renderTitle = (title, bgColor, className) => {
7
+ return (_jsx("span", { className: `${TEXT_COLOR[bgColor]} ml-2.5 font-medium ${className || ''}`, children: title || 'Россельхозбанк' }));
8
+ };
9
+ //# sourceMappingURL=renderTitle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderTitle.js","sourceRoot":"","sources":["../../../src/ui-kit/Logo/renderTitle.tsx"],"names":[],"mappings":";AAGA,MAAM,UAAU,GAAmC;IACjD,UAAU,EAAE,mBAAmB;IAC/B,WAAW,EAAE,YAAY;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAY,EAAE,OAAe,EAAE,SAAkB,EAAE,EAAE;IAC/E,OAAO,CACL,eAAM,SAAS,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,uBAAuB,SAAS,IAAI,EAAE,EAAE,YAC5E,KAAK,IAAI,gBAAgB,GACrB,CACR,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ {
2
+ "content": {
3
+ "button": {
4
+ "href": "/credit-cards",
5
+ "text": "Подробнее",
6
+ "target": "_blank",
7
+ "version": "primary"
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,17 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import type { UniBlockProps } from '../../model/JSXBlock';
3
+ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
+ import { renderButton } from '../../ui-kit/Button/ButtonSection';
5
+ import type { ButtonBlockContent } from './ButtonBlockContent';
6
+
7
+ interface ButtonBlockProps extends ButtonBlockContent, UniBlockProps {}
8
+
9
+ export const ButtonBlock = JSX<ButtonBlockProps>((props) => {
10
+ const { className, button, ...rest } = props;
11
+
12
+ return (
13
+ <BlockWrapper className={className} {...rest}>
14
+ {button ? renderButton({ button }) : null}
15
+ </BlockWrapper>
16
+ );
17
+ });
@@ -0,0 +1,12 @@
1
+ {
2
+ "content": {
3
+ "button": {
4
+ "icon": {
5
+ "ui:field": "icon"
6
+ },
7
+ "iconRight": {
8
+ "ui:field": "icon"
9
+ }
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,9 @@
1
+ import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
2
+
3
+ /**
4
+ * @title Блок Кнопка
5
+ */
6
+ export interface ButtonBlockContent {
7
+ /** @title Кнопка */
8
+ button?: ButtonWithIconProps;
9
+ }
@@ -18,7 +18,7 @@ export const DEFAULT_CREDIT_CALCULATOR_PARAMS: CreditCalculatorSourceBookParams
18
18
  maxSum: DEFAULT_MAX_SUM,
19
19
  minMonths: DEFAULT_MIN_MONTHS,
20
20
  maxMonths: DEFAULT_MAX_MONTHS,
21
- rateBottomRange: 10,
21
+ rateBottomRange: 12,
22
22
  rateTopRange: 7,
23
23
  isSalaryClient: true,
24
24
  isStateEmployee: true,
@@ -22,7 +22,7 @@ export const Header = JSX<HeaderProps>(({ className = '', bgColor = 'bg-white',
22
22
  const router = useRouter();
23
23
 
24
24
  const fallback: Fallback | undefined = rest.options?.page?.fallback;
25
- const { topItems, dispositions, defaultLocation } = useSWRResource<SitemapDataProps>(
25
+ const { topItems, dispositions, defaultLocation, logo } = useSWRResource<SitemapDataProps>(
26
26
  projectSettings.SITEMAP || 'sitemap',
27
27
  fallback,
28
28
  );
@@ -36,7 +36,7 @@ export const Header = JSX<HeaderProps>(({ className = '', bgColor = 'bg-white',
36
36
  return (
37
37
  <header className={`${bgColor} ${className}`}>
38
38
  <div className="container px-4 py-0 box-border">
39
- <HeaderTop onClick={handleBurgerMenuShow} bgColor={bgColor} />
39
+ <HeaderTop onClick={handleBurgerMenuShow} bgColor={bgColor} logo={logo} />
40
40
  <nav className="flex items-center m-0 p-0 overflow-y-hidden w-full h-12">
41
41
  <div className="flex no-scrollbar horizontal-list h-full items-center">
42
42
  {subItems?.map((_, i) => (
@@ -1,13 +1,15 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import type { BgColorVersion } from '../../model/BgColorVersion';
3
+ import type { LogoType } from '../../model/LogoType';
3
4
  import { Img } from '../../ui-kit/Img/Img';
4
5
  import { Logo } from '../../ui-kit/Logo/Logo';
5
6
 
6
7
  export interface HeaderTopProps {
7
8
  onClick: () => void;
8
9
  bgColor?: BgColorVersion;
10
+ logo?: LogoType;
9
11
  }
10
- export const HeaderTop = JSX<HeaderTopProps>(({ onClick, bgColor }) => (
12
+ export const HeaderTop = JSX<HeaderTopProps>(({ onClick, bgColor, logo }) => (
11
13
  <div className="flex items-center justify-between border-0 border-b border-main-divider h-12">
12
14
  <div className="flex items-center">
13
15
  <button
@@ -23,7 +25,7 @@ export const HeaderTop = JSX<HeaderTopProps>(({ onClick, bgColor }) => (
23
25
  asSVG
24
26
  />
25
27
  </button>
26
- <Logo className="mr-8" bgColor={bgColor} />
28
+ <Logo className="mr-8" bgColor={bgColor} logo={logo} />
27
29
  </div>
28
30
  <button
29
31
  className={`${
@@ -29,6 +29,7 @@
29
29
  "text": "Кнопка",
30
30
  "version": "primary"
31
31
  }
32
- ]
32
+ ],
33
+ "isImageOnRightSide": true
33
34
  }
34
35
  }