@redneckz/wildless-cms-uni-blocks 0.14.11 → 0.14.12

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 (108) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +11 -11
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -0
  5. package/bundle/ui-kit/BaseFiltration/BaseFiltrationContent.d.ts +3 -5
  6. package/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -4
  7. package/dist/components/Carousel/renderCardHighlight.js +1 -1
  8. package/dist/components/Carousel/renderCardHighlight.js.map +1 -1
  9. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +2 -2
  10. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  11. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -0
  12. package/dist/components/InvestmentInfo/InvestmentInfo.js +1 -1
  13. package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  14. package/dist/ui-kit/BaseFiltration/BaseFiltrationContent.d.ts +3 -5
  15. package/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -4
  16. package/dist/ui-kit/Button/ArrowButton.js +3 -2
  17. package/dist/ui-kit/Button/ArrowButton.js.map +1 -1
  18. package/dist/ui-kit/CookiePopup/CookiePopup.js +1 -1
  19. package/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  20. package/dist/ui-kit/InputRange/renderRangeWithTicks.js +2 -1
  21. package/dist/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -1
  22. package/dist/ui-kit/Select/SelectPopup.js +1 -1
  23. package/dist/ui-kit/Select/SelectPopup.js.map +1 -1
  24. package/dist/ui-kit/YandexMap/renderSearchField.js +1 -1
  25. package/dist/ui-kit/YandexMap/renderSearchField.js.map +1 -1
  26. package/lib/common.css +1 -1
  27. package/lib/components/Carousel/renderCardHighlight.js +1 -1
  28. package/lib/components/Carousel/renderCardHighlight.js.map +1 -1
  29. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +2 -2
  30. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  31. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -0
  32. package/lib/components/InvestmentInfo/InvestmentInfo.js +1 -1
  33. package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  34. package/lib/ui-kit/BaseFiltration/BaseFiltrationContent.d.ts +3 -5
  35. package/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -4
  36. package/lib/ui-kit/Button/ArrowButton.js +3 -2
  37. package/lib/ui-kit/Button/ArrowButton.js.map +1 -1
  38. package/lib/ui-kit/CookiePopup/CookiePopup.js +1 -1
  39. package/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  40. package/lib/ui-kit/InputRange/renderRangeWithTicks.js +2 -1
  41. package/lib/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -1
  42. package/lib/ui-kit/Select/SelectPopup.js +1 -1
  43. package/lib/ui-kit/Select/SelectPopup.js.map +1 -1
  44. package/lib/ui-kit/YandexMap/renderSearchField.js +1 -1
  45. package/lib/ui-kit/YandexMap/renderSearchField.js.map +1 -1
  46. package/mobile/bundle/bundle.umd.js +8 -8
  47. package/mobile/bundle/bundle.umd.min.js +1 -1
  48. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -0
  49. package/mobile/bundle/ui-kit/BaseFiltration/BaseFiltrationContent.d.ts +3 -5
  50. package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -4
  51. package/mobile/dist/components/Carousel/renderCardHighlight.js +1 -1
  52. package/mobile/dist/components/Carousel/renderCardHighlight.js.map +1 -1
  53. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -0
  54. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +1 -1
  55. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  56. package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationContent.d.ts +3 -5
  57. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -4
  58. package/mobile/dist/ui-kit/Button/ArrowButton.js +3 -2
  59. package/mobile/dist/ui-kit/Button/ArrowButton.js.map +1 -1
  60. package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js +1 -1
  61. package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  62. package/mobile/dist/ui-kit/InputRange/renderRangeWithTicks.js +2 -1
  63. package/mobile/dist/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -1
  64. package/mobile/dist/ui-kit/Select/SelectPopup.js +1 -1
  65. package/mobile/dist/ui-kit/Select/SelectPopup.js.map +1 -1
  66. package/mobile/dist/ui-kit/YandexMap/renderSearchField.js +1 -1
  67. package/mobile/dist/ui-kit/YandexMap/renderSearchField.js.map +1 -1
  68. package/mobile/lib/common.css +1 -1
  69. package/mobile/lib/components/Carousel/renderCardHighlight.js +1 -1
  70. package/mobile/lib/components/Carousel/renderCardHighlight.js.map +1 -1
  71. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -0
  72. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +1 -1
  73. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  74. package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationContent.d.ts +3 -5
  75. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -4
  76. package/mobile/lib/ui-kit/Button/ArrowButton.js +3 -2
  77. package/mobile/lib/ui-kit/Button/ArrowButton.js.map +1 -1
  78. package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js +1 -1
  79. package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  80. package/mobile/lib/ui-kit/InputRange/renderRangeWithTicks.js +2 -1
  81. package/mobile/lib/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -1
  82. package/mobile/lib/ui-kit/Select/SelectPopup.js +1 -1
  83. package/mobile/lib/ui-kit/Select/SelectPopup.js.map +1 -1
  84. package/mobile/lib/ui-kit/YandexMap/renderSearchField.js +1 -1
  85. package/mobile/lib/ui-kit/YandexMap/renderSearchField.js.map +1 -1
  86. package/mobile/src/components/Carousel/renderCardHighlight.tsx +1 -1
  87. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -0
  88. package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +1 -1
  89. package/mobile/src/ui-kit/BaseFiltration/BaseFiltrationContent.ts +3 -5
  90. package/mobile/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +3 -4
  91. package/mobile/src/ui-kit/Button/ArrowButton.tsx +6 -3
  92. package/mobile/src/ui-kit/CookiePopup/CookiePopup.tsx +1 -1
  93. package/mobile/src/ui-kit/InputRange/renderRangeWithTicks.tsx +5 -3
  94. package/mobile/src/ui-kit/Select/SelectPopup.tsx +2 -2
  95. package/mobile/src/ui-kit/YandexMap/renderSearchField.tsx +1 -1
  96. package/package.json +1 -1
  97. package/src/components/Carousel/renderCardHighlight.tsx +1 -1
  98. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +2 -0
  99. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -0
  100. package/src/components/InvestmentInfo/InvestmentInfo.tsx +1 -1
  101. package/src/ui-kit/BaseFiltration/BaseFiltrationContent.ts +3 -5
  102. package/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +3 -4
  103. package/src/ui-kit/Button/ArrowButton.tsx +6 -3
  104. package/src/ui-kit/CookiePopup/CookiePopup.tsx +1 -1
  105. package/src/ui-kit/InputRange/renderRangeWithTicks.tsx +5 -3
  106. package/src/ui-kit/Select/SelectPopup.tsx +2 -2
  107. package/src/ui-kit/YandexMap/renderSearchField.tsx +1 -1
  108. package/tailwind.config.cjs +1 -0
@@ -1,10 +1,11 @@
1
1
  import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
+ import { style } from '../../utils/style.js';
3
4
  import { Img } from '../Img/Img.js';
4
5
  import { Button } from './Button.js';
5
- export const ArrowButton = JSX(({ className, disabled, ...rest }) => (_jsx(Button, { rounded: true, className: `group/btn shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${disabled
6
+ export const ArrowButton = JSX(({ className, disabled, ...rest }) => (_jsx(Button, { rounded: true, className: style('group/btn w-12 h-12 min-h-12 max-h-12 flex items-center justify-center shadow-main-black', disabled
6
7
  ? 'bg-secondary-light text-secondary-text'
7
- : 'bg-white text-primary-text hover:text-primary-main'} ${className || ''}`, disabled: disabled, ...rest, children: _jsx(Img, { className: "w-4 h-4 min-w-4 min-h-4 rounded-full box-border", image: { icon: 'ArrowLeftIcon', iconVersion: 'black' }, imageClassName: "group-hover/btn:text-primary-main", width: "16", height: "16" }) })));
8
+ : 'bg-white text-primary-text hover:text-primary-main', className || ''), disabled: disabled, ...rest, children: _jsx(Img, { className: "w-4 h-4 min-w-4 min-h-4 rounded-full box-border", image: { icon: 'ArrowLeftIcon', iconVersion: 'black' }, imageClassName: "group-hover/btn:text-primary-main", width: "16", height: "16" }) })));
8
9
  export const ScrollLeftButton = JSX((props) => (_jsx(ArrowButton, { ...props, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left" })));
9
10
  export const ScrollRightButton = JSX((props) => (_jsx(ArrowButton, { ...props, className: `${props.className || ''} rotate-180`, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right" })));
10
11
  //# sourceMappingURL=ArrowButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ArrowButton.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/ArrowButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAc,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAChF,KAAC,MAAM,IACL,OAAO,QACP,SAAS,EAAE,+GACT,QAAQ;QACN,CAAC,CAAC,wCAAwC;QAC1C,CAAC,CAAC,oDACN,IAAI,SAAS,IAAI,EAAE,EAAE,EACrB,QAAQ,EAAE,QAAQ,KACd,IAAI,YAER,KAAC,GAAG,IACF,SAAS,EAAC,iDAAiD,EAC3D,KAAK,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,OAAO,EAAE,EACtD,cAAc,EAAC,mCAAmC,EAClD,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,GACX,GACK,CACV,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAc,CAAC,KAAK,EAAE,EAAE,CAAC,CAC1D,KAAC,WAAW,OAAK,KAAK,EAAE,SAAS,EAAC,6FAAkB,wBAAoB,aAAa,GAAG,CACzF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAc,CAAC,KAAK,EAAE,EAAE,CAAC,CAC3D,KAAC,WAAW,OACN,KAAK,EACT,SAAS,EAAE,GAAG,KAAK,CAAC,SAAS,IAAI,EAAE,aAAa,EAChD,SAAS,EAAC,mGAAmB,wBACV,cAAc,GACjC,CACH,CAAC,CAAC"}
1
+ {"version":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 +20,7 @@ export const CookiePopup = JSX(({ termLink, personalDataPolicyLink }) => {
20
20
  globalThis.localStorage?.setItem(COOKIE_DIALOG_ID, 'true');
21
21
  close();
22
22
  }, []);
23
- return opened ? (_jsx("div", { className: "container fixed left-0 right-0 bottom-0 z-50", children: _jsxs("div", { className: "bg-white m-xl p-xl rounded-md flex sm:items-center shadow-[0_4px_25px_rgba(0,0,0,0.07)]", children: [_jsx("div", { className: "sm:flex-1", children: _jsxs(Paragraph, { size: "text-s", font: "font-light", color: "text-primary-text", children: ["\u0410\u041E \u00AB\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u00BB \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442", _jsx(LinkWrapper, { isRemote: true, className: linkWrapperStyle(termLink?.href), ...termLink, children: "cookie" }), "(\u0444\u0430\u0439\u043B\u044B \u0441 \u0434\u0430\u043D\u043D\u044B\u043C\u0438 \u043E \u043F\u0440\u043E\u0448\u043B\u044B\u0445 \u043F\u043E\u0441\u0435\u0449\u0435\u043D\u0438\u044F\u0445 \u0441\u0430\u0439\u0442\u0430) \u0434\u043B\u044F \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043E\u0432 \u0438 \u0443\u0434\u043E\u0431\u0441\u0442\u0432\u0430 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435\u0439. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0437\u0430\u043F\u0440\u0435\u0442\u0438\u0442\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435 cookie \u0432 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430\u0445 \u0441\u0432\u043E\u0435\u0433\u043E \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.", _jsx(LinkWrapper, { isRemote: true, className: linkWrapperStyle(personalDataPolicyLink?.href), ...personalDataPolicyLink, children: "\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0430 \u0412\u0430\u0448\u0438\u0445 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" }), "\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F\u043C\u0438 \u0424\u0435\u0434\u0435\u0440\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0437\u0430\u043A\u043E\u043D\u0430 \u043E\u0442 27.07.2006 \u2116 152-\u04243 \u00AB\u041E \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445\u00BB."] }) }), _jsx("div", { className: "ml-s sm:ml-0 w-24 flex justify-end", children: _jsx(CloseButton, { className: "bg-main-gray rounded-md", onClose: handleClose }) })] }) })) : null;
23
+ return opened ? (_jsx("div", { className: "container fixed left-0 right-0 bottom-0 z-50", children: _jsxs("div", { className: "bg-white m-xl p-xl rounded-md flex sm:items-center shadow-main-black", children: [_jsx("div", { className: "sm:flex-1", children: _jsxs(Paragraph, { size: "text-s", font: "font-light", color: "text-primary-text", children: ["\u0410\u041E \u00AB\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u00BB \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442", _jsx(LinkWrapper, { isRemote: true, className: linkWrapperStyle(termLink?.href), ...termLink, children: "cookie" }), "(\u0444\u0430\u0439\u043B\u044B \u0441 \u0434\u0430\u043D\u043D\u044B\u043C\u0438 \u043E \u043F\u0440\u043E\u0448\u043B\u044B\u0445 \u043F\u043E\u0441\u0435\u0449\u0435\u043D\u0438\u044F\u0445 \u0441\u0430\u0439\u0442\u0430) \u0434\u043B\u044F \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043E\u0432 \u0438 \u0443\u0434\u043E\u0431\u0441\u0442\u0432\u0430 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435\u0439. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0437\u0430\u043F\u0440\u0435\u0442\u0438\u0442\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435 cookie \u0432 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430\u0445 \u0441\u0432\u043E\u0435\u0433\u043E \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.", _jsx(LinkWrapper, { isRemote: true, className: linkWrapperStyle(personalDataPolicyLink?.href), ...personalDataPolicyLink, children: "\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0430 \u0412\u0430\u0448\u0438\u0445 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" }), "\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F\u043C\u0438 \u0424\u0435\u0434\u0435\u0440\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0437\u0430\u043A\u043E\u043D\u0430 \u043E\u0442 27.07.2006 \u2116 152-\u04243 \u00AB\u041E \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445\u00BB."] }) }), _jsx("div", { className: "ml-s sm:ml-0 w-24 flex justify-end", children: _jsx(CloseButton, { className: "bg-main-gray rounded-md", onClose: handleClose }) })] }) })) : null;
24
24
  });
25
25
  const linkWrapperStyle = (href) => style('inline mx-2xs', href ? 'text-green-dark' : '');
26
26
  //# sourceMappingURL=CookiePopup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CookiePopup.js","sourceRoot":"","sources":["../../../src/ui-kit/CookiePopup/CookiePopup.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAEpF,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAOnD,MAAM,gBAAgB,GAAG,QAAQ,CAAC;AAClC,MAAM,oBAAoB,GAAG,CAAC,GAAG,IAAI,CAAC;AAEtC,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAmB,CAAC,EAAE,QAAQ,EAAE,sBAAsB,EAAE,EAAE,EAAE;IACxF,MAAM,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,EAAE,CAAC;IAE/D,kBAAkB,CAChB,GAAG,EAAE;QACH,IAAI,CAAC,UAAU,CAAC,YAAY,EAAE,OAAO,CAAC,gBAAgB,CAAC,EAAE;YACvD,IAAI,EAAE,CAAC;SACR;IACH,CAAC,EACD,EAAE,EACF,oBAAoB,CACrB,CAAC;IAEF,MAAM,WAAW,GAA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uBAEjE,+0BAGd,KAAC,WAAW,IACV,QAAQ,QACR,SAAS,EAAE,gBAAgB,CAAC,sBAAsB,EAAE,IAAI,CAAC,KACrD,sBAAsB,oNAGd,2gBAGJ,GACR,EACN,cAAK,SAAS,EAAC,oCAAoC,YACjD,KAAC,WAAW,IAAC,SAAS,EAAC,yBAAyB,EAAC,OAAO,EAAE,WAAW,GAAI,GACrE,IACF,GACF,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC,CAAC;AAEH,MAAM,gBAAgB,GAAG,CAAC,IAAa,EAAE,EAAE,CAAC,KAAK,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
+ import { style } from '../../utils/style.js';
2
3
  import { parseDecimal } from './parseDecimal.js';
3
4
  export function renderRangeWithTicks({ list = [], min, max, step, value = list[0] || min, disabled, onChange, }) {
4
5
  const rangeValue = list.length ? list.indexOf(value) : value;
@@ -6,7 +7,7 @@ export function renderRangeWithTicks({ list = [], min, max, step, value = list[0
6
7
  const inputStyle = {
7
8
  backgroundSize: `${((rangeValueShift * 100) / (max - min)).toFixed(2)}% 100%`,
8
9
  };
9
- return (_jsxs("div", { children: [list.length ? (_jsx("div", { className: "absolute w-full flex justify-between -bottom-[3px] px-m", children: list.map((_, i) => (_jsx("div", { className: `w-2 h-2 rounded-full ${rangeValue <= i || disabled ? 'bg-gray' : 'bg-primary-main'}` }, String(i)))) })) : null, _jsx("div", { className: "absolute inset-x-0 -bottom-1 px-m leading-[18px]", children: _jsx("input", { className: "box-border w-full m-0 cursor-pointer slider relative z-10", style: inputStyle, type: "range", min: min, max: max, step: step, value: rangeValue, disabled: disabled, onInput: ((e) => {
10
+ return (_jsxs("div", { children: [list.length ? (_jsx("div", { className: "absolute w-full flex justify-between -bottom-[3px] px-m", children: list.map((_, i) => (_jsx("div", { className: style('w-2 h-2 rounded-full', rangeValue <= i || disabled ? 'bg-gray' : 'bg-primary-main') }, String(i)))) })) : null, _jsx("div", { className: "absolute inset-x-0 -bottom-1 px-m leading-[18px]", children: _jsx("input", { className: "box-border w-full m-0 cursor-pointer slider relative z-10", style: inputStyle, type: "range", min: min, max: max, step: step, value: rangeValue, disabled: disabled, onInput: ((e) => {
10
11
  const rawValue = parseDecimal(e.target?.value);
11
12
  const newValue = list.length ? list[rawValue] : rawValue;
12
13
  onChange && onChange(newValue || 0);
@@ -1 +1 @@
1
- {"version":3,"file":"renderRangeWithTicks.js","sourceRoot":"","sources":["../../../src/ui-kit/InputRange/renderRangeWithTicks.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAY9C,MAAM,UAAU,oBAAoB,CAAC,EACnC,IAAI,GAAG,EAAE,EACT,GAAG,EACH,GAAG,EACH,IAAI,EACJ,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,EACtB,QAAQ,EACR,QAAQ,GACY;IACpB,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAC7D,MAAM,eAAe,GAAG,UAAU,GAAG,GAAG,CAAC,CAAC,CAAC,UAAU,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAChE,MAAM,UAAU,GAAG;QACjB,cAAc,EAAE,GAAG,CAAC,CAAC,eAAe,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ;KAC9E,CAAC;IAEF,OAAO,CACL,0BACG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CACb,cAAK,SAAS,EAAC,yDAAyD,YACrE,IAAI,CAAC,GAAG,CAAC,CAAC,C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C,CAAC,CAAC,QAAQ,CAAC;wBACzD,QAAQ,IAAI,QAAQ,CAAC,QAAQ,IAAI,CAAC,CAAC,CAAC;oBACtC,CAAC,CAAQ,GAEX,GACE,IACF,CACP,CAAC;AACJ,CAAC"}
@@ -4,5 +4,5 @@ import { style } from '../../utils/style.js';
4
4
  import { Icon } from '../Icon/Icon.js';
5
5
  import { filterOptions } from './filterOptions.js';
6
6
  import { formatOption } from './formatOption.js';
7
- export const SelectPopup = JSX(({ popupRef, options, value, query, onChange }) => options?.length ? (_jsx("div", { className: "bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]", role: "listbox", ref: popupRef, children: filterOptions(options, query).map((option) => (_jsxs("div", { className: "flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative", role: "option", "aria-selected": option.key === value?.key, onClick: () => onChange && onChange(option), children: [_jsx("span", { className: "min-h-6", children: formatOption(option) }), _jsx(Icon, { name: "DoneSimpleIcon", width: "16", height: "16", className: style('absolute right-4 pt-3xs', option.key === value?.key ? '' : 'hidden') })] }, option.key))) })) : null);
7
+ export const SelectPopup = JSX(({ popupRef, options, value, query, onChange }) => options?.length ? (_jsx("div", { className: "bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md s1hadow-black", role: "listbox", ref: popupRef, children: filterOptions(options, query).map((option) => (_jsxs("div", { className: "flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative", role: "option", "aria-selected": option.key === value?.key, onClick: () => onChange && onChange(option), children: [_jsx("span", { className: "min-h-6", children: formatOption(option) }), _jsx(Icon, { name: "DoneSimpleIcon", width: "16", height: "16", className: style('absolute right-4 pt-3xs', option.key === value?.key ? '' : 'hidden') })] }, option.key))) })) : null);
8
8
  //# sourceMappingURL=SelectPopup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectPopup.js","sourceRoot":"","sources":["../../../src/ui-kit/Select/SelectPopup.tsx"],"names":[],"mappings":";AA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styles = {
5
5
  border: 'border border-transparent rounded-md',
6
6
  position: 'relative flex items-center',
7
7
  font: 'text-center font-sans',
8
- shadow: 'shadow-[0_4px_25px_rgba(0,0,0,0.07)]',
8
+ shadow: 'shadow-main-black',
9
9
  };
10
10
  export const renderSearchField = (points, yandexMaps, updatePointsToRender) => {
11
11
  const onChange = (e) => {
@@ -1 +1 @@
1
- {"version":3,"file":"renderSearchField.js","sourceRoot":"","sources":["../../../src/ui-kit/YandexMap/renderSearchField.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGpC,MAAM,MAAM,GAAG;IACb,MAAM,EAAE,sCAAsC;IAC9C,QAAQ,EAAE,4BAA4B;IACtC,IAAI,EAAE,uBAAuB;IAC7B,MAAM,EAAE,sCAAsC;CAC/C,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC/B,MAAoB,EACpB,UAAqB,EACrB,oBAAwD,EACxD,EAAE;IACF,MAAM,QAAQ,GAAG,CAAC,CAAsC,EAAE,EAAE;QAC1D,MAAM,KAAK,GAAW,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC3E,IAAI,KAAK,EAAE;YACT,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAa,EAAE,EAAE;gBACnD,MAAM,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;gBAC3C,IAAI,aAAa,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE;oBACrC,OAAO,CAAC,CAAC;iBACV;gBAED,OAAO,IAAI,CAAC;YACd,CAAC,CAAC,CAAC;YACH,oBAAoB,CAAC,YAAY,CAAC,CAAC;SACpC;aAAM;YACL,o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AW,EAAE,CAAC;gBAC3C,IAAI,aAAa,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE;oBACrC,OAAO,CAAC,CAAC;iBACV;gBAED,OAAO,IAAI,CAAC;YACd,CAAC,CAAC,CAAC;YACH,oBAAoB,CAAC,YAAY,CAAC,CAAC;SACpC;aAAM;YACL,oBAAoB,CAAC,IAAI,CAAC,CAAC;SAC5B;IACH,CAAC,CAAC;IAEF,OAAO,CACL,eAAK,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,kCAAkC,CAAC,aAC9E,KAAC,IAAI,IACH,IAAI,EAAC,WAAW,EAChB,WAAW,EAAC,OAAO,EACnB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,SAAS,EAAC,iBAAiB,GAC3B,EACF,gBACE,IAAI,EAAC,MAAM,EACX,WAAW,EAAC,6HAAyB,EACrC,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAC,0CAA0C,GACpD,IACE,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -10,7 +10,7 @@ interface CardHighlightProps {
10
10
  export const renderCardHighlight = ({ className, text = 'ХИТ' }: CardHighlightProps = {}) => (
11
11
  <div
12
12
  className={style(
13
- 'w-14 h-14 bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]',
13
+ 'w-14 h-14 bg-white flex flex-col items-center justify-center rounded-md shadow-main-black',
14
14
  className,
15
15
  )}
16
16
  >
@@ -16,4 +16,6 @@ export type CarouselRecommendationCardContent = UniBlockContent &
16
16
  AlignProps & {
17
17
  /** @title Соц сети */
18
18
  socialMedia?: ButtonContent[];
19
+ /** @title Изображение всегда справа */
20
+ isImageAlwaysOnRight?: boolean;
19
21
  };
@@ -44,7 +44,7 @@ export const InvestmentInfo = JSX<InvestmentInfoProps>((props) => {
44
44
  }
45
45
 
46
46
  return (
47
- <BlockWrapper className={className} {...rest}>
47
+ <BlockWrapper className={className} defaultPadding="p-4xl" {...rest}>
48
48
  <div className="container text-m font-light space-y-4xl">
49
49
  {columns?.length ? (
50
50
  <div>
@@ -1,5 +1,5 @@
1
1
  import type { ButtonVersion } from '../../model/ButtonVersion';
2
- import type { DescriptionProps, TitleProps } from '../../model/HeadlineType';
2
+ import type { DescriptionProps, LabelProps, TitleProps } from '../../model/HeadlineType';
3
3
 
4
4
  /**
5
5
  * @title Заголовок
@@ -99,9 +99,7 @@ export type ResetButton = {
99
99
  */
100
100
  export type NotFound = TitleProps & DescriptionProps;
101
101
 
102
- export interface BaseFiltrationInnerContent {
103
- /** @title Название сворачивающейся кнопки */
104
- label?: string;
102
+ export type BaseFiltrationInnerContent = LabelProps & {
105
103
  /**
106
104
  * @title Количество отображаемых предметов
107
105
  * @minimum 1
@@ -109,4 +107,4 @@ export interface BaseFiltrationInnerContent {
109
107
  topItemsCount?: number;
110
108
  resetButton?: ResetButton;
111
109
  notFound?: NotFound;
112
- }
110
+ };
@@ -1,6 +1,6 @@
1
1
  import type { Align } from '../../model/Align';
2
2
  import type { BulletsProps } from '../../model/Bullets';
3
- import type { HeadlineProps } from '../../model/HeadlineType';
3
+ import type { HeadlineProps, LabelProps } from '../../model/HeadlineType';
4
4
  import type { BenefitsListContent } from '../BenefitsList/BenefitsListContent';
5
5
  import type { ButtonsSectionContent } from '../Button/ButtonsSectionContent';
6
6
  import type { ImageContent } from '../Img/ImgProps';
@@ -27,9 +27,8 @@ export type BaseProductTileContent = HeadlineProps &
27
27
  BulletsProps &
28
28
  TagsContent &
29
29
  ButtonsSectionContent &
30
- ImageContent & {
31
- /** @title Лейбл (моб.) */
32
- label?: string;
30
+ ImageContent &
31
+ LabelProps & {
33
32
  imageOptions?: TileImageOptions;
34
33
  /** @title Заголовок во всю ширину */
35
34
  isFullWidthTitle?: boolean;
@@ -1,4 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import { style } from '../../utils/style';
2
3
  import { Img } from '../Img/Img';
3
4
  import { Button } from './Button';
4
5
  import type { ButtonProps } from './ButtonProps';
@@ -6,11 +7,13 @@ import type { ButtonProps } from './ButtonProps';
6
7
  export const ArrowButton = JSX<ButtonProps>(({ className, disabled, ...rest }) => (
7
8
  <Button
8
9
  rounded
9
- className={`group/btn shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${
10
+ className={style(
11
+ 'group/btn w-12 h-12 min-h-12 max-h-12 flex items-center justify-center shadow-main-black',
10
12
  disabled
11
13
  ? 'bg-secondary-light text-secondary-text'
12
- : 'bg-white text-primary-text hover:text-primary-main'
13
- } ${className || ''}`}
14
+ : 'bg-white text-primary-text hover:text-primary-main',
15
+ className || '',
16
+ )}
14
17
  disabled={disabled}
15
18
  {...rest}
16
19
  >
@@ -36,7 +36,7 @@ export const CookiePopup = JSX<CookiePopupProps>(({ termLink, personalDataPolicy
36
36
 
37
37
  return opened ? (
38
38
  <div className="container fixed left-0 right-0 bottom-0 z-50">
39
- <div className="bg-white m-xl p-xl rounded-md flex sm:items-center shadow-[0_4px_25px_rgba(0,0,0,0.07)]">
39
+ <div className="bg-white m-xl p-xl rounded-md flex sm:items-center shadow-main-black">
40
40
  <div className="sm:flex-1">
41
41
  <Paragraph size="text-s" font="font-light" color="text-primary-text">
42
42
  АО «Россельхозбанк» использует
@@ -1,3 +1,4 @@
1
+ import { style } from '../../utils/style';
1
2
  import { parseDecimal } from './parseDecimal';
2
3
 
3
4
  interface RangeWithTicksProps {
@@ -32,9 +33,10 @@ export function renderRangeWithTicks({
32
33
  {list.map((_, i) => (
33
34
  <div
34
35
  key={String(i)}
35
- className={`w-2 h-2 rounded-full ${
36
- rangeValue <= i || disabled ? 'bg-gray' : 'bg-primary-main'
37
- }`}
36
+ className={style(
37
+ 'w-2 h-2 rounded-full',
38
+ rangeValue <= i || disabled ? 'bg-gray' : 'bg-primary-main',
39
+ )}
38
40
  />
39
41
  ))}
40
42
  </div>
@@ -1,9 +1,9 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { style } from '../../utils/style';
3
3
  import { Icon } from '../Icon/Icon';
4
- import type { Option } from './Option';
5
4
  import { filterOptions } from './filterOptions';
6
5
  import { formatOption } from './formatOption';
6
+ import type { Option } from './Option';
7
7
 
8
8
  export interface SelectPopupProps {
9
9
  popupRef?: { current: HTMLDivElement | null };
@@ -16,7 +16,7 @@ export interface SelectPopupProps {
16
16
  export const SelectPopup = JSX<SelectPopupProps>(({ popupRef, options, value, query, onChange }) =>
17
17
  options?.length ? (
18
18
  <div
19
- className="bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]"
19
+ className="bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md s1hadow-black"
20
20
  role="listbox"
21
21
  ref={popupRef}
22
22
  >
@@ -7,7 +7,7 @@ const styles = {
7
7
  border: 'border border-transparent rounded-md',
8
8
  position: 'relative flex items-center',
9
9
  font: 'text-center font-sans',
10
- shadow: 'shadow-[0_4px_25px_rgba(0,0,0,0.07)]',
10
+ shadow: 'shadow-main-black',
11
11
  };
12
12
 
13
13
  export const renderSearchField = (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.14.11",
3
+ "version": "0.14.12",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -10,7 +10,7 @@ interface CardHighlightProps {
10
10
  export const renderCardHighlight = ({ className, text = 'ХИТ' }: CardHighlightProps = {}) => (
11
11
  <div
12
12
  className={style(
13
- 'w-14 h-14 bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]',
13
+ 'w-14 h-14 bg-white flex flex-col items-center justify-center rounded-md shadow-main-black',
14
14
  className,
15
15
  )}
16
16
  >
@@ -26,6 +26,7 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
26
26
  target,
27
27
  title,
28
28
  align = 'text-left',
29
+ isImageAlwaysOnRight,
29
30
  ...rest
30
31
  }) => {
31
32
  return (
@@ -54,6 +55,7 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
54
55
  buttons={
55
56
  socialMedia.length ? <SocialMedia media={socialMedia} showButtonText={true} /> : null
56
57
  }
58
+ isImageAlwaysOnRight={isImageAlwaysOnRight}
57
59
  >
58
60
  {items.length ? <List items={items} listItemSize={listItemSize} /> : null}
59
61
  </BaseTile>
@@ -16,4 +16,6 @@ export type CarouselRecommendationCardContent = UniBlockContent &
16
16
  AlignProps & {
17
17
  /** @title Соц сети */
18
18
  socialMedia?: ButtonContent[];
19
+ /** @title Изображение всегда справа */
20
+ isImageAlwaysOnRight?: boolean;
19
21
  };
@@ -44,7 +44,7 @@ export const InvestmentInfo = JSX<InvestmentInfoProps>((props) => {
44
44
  }
45
45
 
46
46
  return (
47
- <BlockWrapper className={className} {...rest}>
47
+ <BlockWrapper className={className} defaultPadding="p-4xl" {...rest}>
48
48
  <div className="container text-m font-light space-y-4xl">
49
49
  {columns?.length ? (
50
50
  <div>
@@ -1,5 +1,5 @@
1
1
  import type { ButtonVersion } from '../../model/ButtonVersion';
2
- import type { DescriptionProps, TitleProps } from '../../model/HeadlineType';
2
+ import type { DescriptionProps, LabelProps, TitleProps } from '../../model/HeadlineType';
3
3
 
4
4
  /**
5
5
  * @title Заголовок
@@ -99,9 +99,7 @@ export type ResetButton = {
99
99
  */
100
100
  export type NotFound = TitleProps & DescriptionProps;
101
101
 
102
- export interface BaseFiltrationInnerContent {
103
- /** @title Название сворачивающейся кнопки */
104
- label?: string;
102
+ export type BaseFiltrationInnerContent = LabelProps & {
105
103
  /**
106
104
  * @title Количество отображаемых предметов
107
105
  * @minimum 1
@@ -109,4 +107,4 @@ export interface BaseFiltrationInnerContent {
109
107
  topItemsCount?: number;
110
108
  resetButton?: ResetButton;
111
109
  notFound?: NotFound;
112
- }
110
+ };
@@ -1,6 +1,6 @@
1
1
  import type { Align } from '../../model/Align';
2
2
  import type { BulletsProps } from '../../model/Bullets';
3
- import type { HeadlineProps } from '../../model/HeadlineType';
3
+ import type { HeadlineProps, LabelProps } from '../../model/HeadlineType';
4
4
  import type { BenefitsListContent } from '../BenefitsList/BenefitsListContent';
5
5
  import type { ButtonsSectionContent } from '../Button/ButtonsSectionContent';
6
6
  import type { ImageContent } from '../Img/ImgProps';
@@ -27,9 +27,8 @@ export type BaseProductTileContent = HeadlineProps &
27
27
  BulletsProps &
28
28
  TagsContent &
29
29
  ButtonsSectionContent &
30
- ImageContent & {
31
- /** @title Лейбл (моб.) */
32
- label?: string;
30
+ ImageContent &
31
+ LabelProps & {
33
32
  imageOptions?: TileImageOptions;
34
33
  /** @title Заголовок во всю ширину */
35
34
  isFullWidthTitle?: boolean;
@@ -1,4 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import { style } from '../../utils/style';
2
3
  import { Img } from '../Img/Img';
3
4
  import { Button } from './Button';
4
5
  import type { ButtonProps } from './ButtonProps';
@@ -6,11 +7,13 @@ import type { ButtonProps } from './ButtonProps';
6
7
  export const ArrowButton = JSX<ButtonProps>(({ className, disabled, ...rest }) => (
7
8
  <Button
8
9
  rounded
9
- className={`group/btn shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${
10
+ className={style(
11
+ 'group/btn w-12 h-12 min-h-12 max-h-12 flex items-center justify-center shadow-main-black',
10
12
  disabled
11
13
  ? 'bg-secondary-light text-secondary-text'
12
- : 'bg-white text-primary-text hover:text-primary-main'
13
- } ${className || ''}`}
14
+ : 'bg-white text-primary-text hover:text-primary-main',
15
+ className || '',
16
+ )}
14
17
  disabled={disabled}
15
18
  {...rest}
16
19
  >
@@ -36,7 +36,7 @@ export const CookiePopup = JSX<CookiePopupProps>(({ termLink, personalDataPolicy
36
36
 
37
37
  return opened ? (
38
38
  <div className="container fixed left-0 right-0 bottom-0 z-50">
39
- <div className="bg-white m-xl p-xl rounded-md flex sm:items-center shadow-[0_4px_25px_rgba(0,0,0,0.07)]">
39
+ <div className="bg-white m-xl p-xl rounded-md flex sm:items-center shadow-main-black">
40
40
  <div className="sm:flex-1">
41
41
  <Paragraph size="text-s" font="font-light" color="text-primary-text">
42
42
  АО «Россельхозбанк» использует
@@ -1,3 +1,4 @@
1
+ import { style } from '../../utils/style';
1
2
  import { parseDecimal } from './parseDecimal';
2
3
 
3
4
  interface RangeWithTicksProps {
@@ -32,9 +33,10 @@ export function renderRangeWithTicks({
32
33
  {list.map((_, i) => (
33
34
  <div
34
35
  key={String(i)}
35
- className={`w-2 h-2 rounded-full ${
36
- rangeValue <= i || disabled ? 'bg-gray' : 'bg-primary-main'
37
- }`}
36
+ className={style(
37
+ 'w-2 h-2 rounded-full',
38
+ rangeValue <= i || disabled ? 'bg-gray' : 'bg-primary-main',
39
+ )}
38
40
  />
39
41
  ))}
40
42
  </div>
@@ -1,9 +1,9 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { style } from '../../utils/style';
3
3
  import { Icon } from '../Icon/Icon';
4
- import type { Option } from './Option';
5
4
  import { filterOptions } from './filterOptions';
6
5
  import { formatOption } from './formatOption';
6
+ import type { Option } from './Option';
7
7
 
8
8
  export interface SelectPopupProps {
9
9
  popupRef?: { current: HTMLDivElement | null };
@@ -16,7 +16,7 @@ export interface SelectPopupProps {
16
16
  export const SelectPopup = JSX<SelectPopupProps>(({ popupRef, options, value, query, onChange }) =>
17
17
  options?.length ? (
18
18
  <div
19
- className="bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]"
19
+ className="bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md s1hadow-black"
20
20
  role="listbox"
21
21
  ref={popupRef}
22
22
  >
@@ -7,7 +7,7 @@ const styles = {
7
7
  border: 'border border-transparent rounded-md',
8
8
  position: 'relative flex items-center',
9
9
  font: 'text-center font-sans',
10
- shadow: 'shadow-[0_4px_25px_rgba(0,0,0,0.07)]',
10
+ shadow: 'shadow-main-black',
11
11
  };
12
12
 
13
13
  export const renderSearchField = (
@@ -254,6 +254,7 @@ module.exports = {
254
254
  },
255
255
  },
256
256
  boxShadow: {
257
+ 'main-black': '0 4px 25px rgba(0, 0, 0, 0.07)',
257
258
  'dark-blue': '0 18px 36px -4px rgba(24, 39, 75, 0.42);',
258
259
  'blue-gray': '0 14px 36px -4px rgba(21, 40, 90, 0.24);',
259
260
  },