@redneckz/wildless-cms-uni-blocks 0.14.73 → 0.14.75

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 (157) hide show
  1. package/bin/migration-scripts/0.14.68.js +20 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +10 -8
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -9
  6. package/bundle/components/VerticalLayout/VerticalLayout.d.ts +0 -1
  7. package/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +7 -6
  8. package/cosmos-static/icons/ActualBalanceIcon.svg +1 -1
  9. package/cosmos-static/icons/AppleIcon.svg +1 -1
  10. package/cosmos-static/icons/ArrowDownIcon.svg +1 -1
  11. package/cosmos-static/icons/ArrowDownSolidIcon.svg +1 -1
  12. package/cosmos-static/icons/ArrowLeftIcon.svg +1 -1
  13. package/cosmos-static/icons/ArrowRightIcon.svg +1 -1
  14. package/cosmos-static/icons/ArrowTopRightIcon.svg +1 -1
  15. package/cosmos-static/icons/ArrowUpIcon.svg +1 -1
  16. package/cosmos-static/icons/ArrowUpSolidIcon.svg +1 -1
  17. package/cosmos-static/icons/AtmIcon.svg +1 -1
  18. package/cosmos-static/icons/BankIcon.svg +1 -1
  19. package/cosmos-static/icons/BelarusianFlag.svg +1 -1
  20. package/cosmos-static/icons/BriefcaseIcon.svg +1 -1
  21. package/cosmos-static/icons/BuildingIcon.svg +1 -1
  22. package/cosmos-static/icons/BurgerIcon.svg +1 -1
  23. package/cosmos-static/icons/CalendarCircleIcon.svg +1 -1
  24. package/cosmos-static/icons/CalendarIcon.svg +1 -1
  25. package/cosmos-static/icons/CalendarTickIcon.svg +1 -1
  26. package/cosmos-static/icons/CardIcon.svg +1 -1
  27. package/cosmos-static/icons/CardPosIcon.svg +1 -1
  28. package/cosmos-static/icons/CardSendIcon.svg +1 -1
  29. package/cosmos-static/icons/CardTickIcon.svg +1 -1
  30. package/cosmos-static/icons/ChartIcon.svg +1 -1
  31. package/cosmos-static/icons/ChartSquareIcon.svg +1 -1
  32. package/cosmos-static/icons/ChevronLeftIcon.svg +1 -1
  33. package/cosmos-static/icons/ClientIcon.svg +1 -1
  34. package/cosmos-static/icons/CloseIcon.svg +1 -1
  35. package/cosmos-static/icons/CoinIcon.svg +1 -1
  36. package/cosmos-static/icons/ConvertCardIcon.svg +1 -1
  37. package/cosmos-static/icons/CourtHouseIcon.svg +1 -1
  38. package/cosmos-static/icons/DiscountShapeIcon.svg +1 -1
  39. package/cosmos-static/icons/DocDownloadIcon.svg +1 -1
  40. package/cosmos-static/icons/DocIcon.svg +1 -1
  41. package/cosmos-static/icons/DollarIcon.svg +1 -1
  42. package/cosmos-static/icons/DoneIcon.svg +1 -1
  43. package/cosmos-static/icons/DoneSimpleIcon.svg +1 -1
  44. package/cosmos-static/icons/DzenIcon.svg +1 -1
  45. package/cosmos-static/icons/EmptyWalletChangeIcon.svg +1 -1
  46. package/cosmos-static/icons/EmptyWalletIcon.svg +1 -1
  47. package/cosmos-static/icons/EuroIcon.svg +1 -1
  48. package/cosmos-static/icons/FaxIcon.svg +1 -1
  49. package/cosmos-static/icons/FullScreenIcon.svg +1 -1
  50. package/cosmos-static/icons/GeolocationIcon.svg +1 -1
  51. package/cosmos-static/icons/GlobalIcon.svg +1 -1
  52. package/cosmos-static/icons/GpsIcon.svg +1 -1
  53. package/cosmos-static/icons/GridIcon.svg +1 -1
  54. package/cosmos-static/icons/HeadphonesIcon.svg +1 -1
  55. package/cosmos-static/icons/HeartIcon.svg +1 -1
  56. package/cosmos-static/icons/HeartTickIcon.svg +1 -1
  57. package/cosmos-static/icons/HouseIcon.svg +1 -1
  58. package/cosmos-static/icons/HuaweiIcon.svg +1 -1
  59. package/cosmos-static/icons/LogoIcon.svg +1 -1
  60. package/cosmos-static/icons/LoupeIcon.svg +1 -1
  61. package/cosmos-static/icons/MagnifierIcon.svg +1 -1
  62. package/cosmos-static/icons/MailIcon.svg +1 -1
  63. package/cosmos-static/icons/MapMarkerClusterIcon.svg +1 -1
  64. package/cosmos-static/icons/MapMarkerSingleIcon.svg +1 -1
  65. package/cosmos-static/icons/MapOpenedIcon.svg +1 -1
  66. package/cosmos-static/icons/MinusIcon.svg +1 -1
  67. package/cosmos-static/icons/MoneyIcon.svg +1 -1
  68. package/cosmos-static/icons/MoneyInsuranceIcon.svg +1 -1
  69. package/cosmos-static/icons/MonitorMobileIcon.svg +1 -1
  70. package/cosmos-static/icons/NewDocIcon.svg +1 -1
  71. package/cosmos-static/icons/NotificationBingIcon.svg +1 -1
  72. package/cosmos-static/icons/OkIcon.svg +1 -1
  73. package/cosmos-static/icons/PackA4Icon.svg +1 -1
  74. package/cosmos-static/icons/PassSendIcon.svg +1 -1
  75. package/cosmos-static/icons/PercentIcon.svg +1 -1
  76. package/cosmos-static/icons/PercentageRoundIcon.svg +1 -1
  77. package/cosmos-static/icons/PersonalCardIcon.svg +1 -1
  78. package/cosmos-static/icons/PhoneCallingIcon.svg +1 -1
  79. package/cosmos-static/icons/PhoneIcon.svg +1 -1
  80. package/cosmos-static/icons/PlayMarketIcon.svg +1 -1
  81. package/cosmos-static/icons/PlusCircleIcon.svg +1 -1
  82. package/cosmos-static/icons/PlusIcon.svg +1 -1
  83. package/cosmos-static/icons/Profile2UserIcon.svg +1 -1
  84. package/cosmos-static/icons/ProfileIcon.svg +1 -1
  85. package/cosmos-static/icons/ResponseFailIcon.svg +1 -1
  86. package/cosmos-static/icons/ResponseOKIcon.svg +1 -1
  87. package/cosmos-static/icons/RoundRubleIcon.svg +1 -1
  88. package/cosmos-static/icons/RutubeIcon.svg +1 -1
  89. package/cosmos-static/icons/SafeIcon.svg +1 -1
  90. package/cosmos-static/icons/Security/320/241ardIcon.svg +1 -1
  91. package/cosmos-static/icons/ShieldTickIcon.svg +1 -1
  92. package/cosmos-static/icons/SignDocsIcon.svg +1 -1
  93. package/cosmos-static/icons/SmallClockIcon.svg +1 -1
  94. package/cosmos-static/icons/SoundIcon.svg +1 -1
  95. package/cosmos-static/icons/TelegramIcon.svg +1 -1
  96. package/cosmos-static/icons/UserGeoLocationIcon.svg +1 -1
  97. package/cosmos-static/icons/UserSquareIcon.svg +1 -1
  98. package/cosmos-static/icons/UserTickIcon.svg +1 -1
  99. package/cosmos-static/icons/VKIcon.svg +1 -1
  100. package/cosmos-static/icons/WalletAddIcon.svg +1 -1
  101. package/cosmos-static/icons/WalletIcon.svg +1 -1
  102. package/cosmos-static/icons/WalletWithMoneyIcon.svg +1 -1
  103. package/cosmos-static/icons/YoutubeIcon.svg +1 -1
  104. package/cosmos-static/icons/sprites.svg +87 -0
  105. package/dist/components/HorizontalLayout/HorizontalLayout.js +1 -1
  106. package/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  107. package/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -9
  108. package/dist/components/VerticalLayout/VerticalLayout.d.ts +0 -1
  109. package/dist/components/VerticalLayout/VerticalLayout.js +2 -2
  110. package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  111. package/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +7 -6
  112. package/dist/ui-kit/Icon/Icon.js +6 -4
  113. package/dist/ui-kit/Icon/Icon.js.map +1 -1
  114. package/lib/common.css +1 -1
  115. package/lib/components/HorizontalLayout/HorizontalLayout.js +1 -1
  116. package/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  117. package/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -9
  118. package/lib/components/VerticalLayout/VerticalLayout.d.ts +0 -1
  119. package/lib/components/VerticalLayout/VerticalLayout.fixture.d.ts +1 -0
  120. package/lib/components/VerticalLayout/VerticalLayout.fixture.mobile.d.ts +1 -0
  121. package/lib/components/VerticalLayout/VerticalLayout.js +2 -2
  122. package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  123. package/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +7 -6
  124. package/lib/ui-kit/Icon/Icon.js +6 -4
  125. package/lib/ui-kit/Icon/Icon.js.map +1 -1
  126. package/mobile/bundle/bundle.umd.js +9 -7
  127. package/mobile/bundle/bundle.umd.min.js +1 -1
  128. package/mobile/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -9
  129. package/mobile/bundle/components/VerticalLayout/VerticalLayout.d.ts +0 -1
  130. package/mobile/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +7 -6
  131. package/mobile/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -9
  132. package/mobile/dist/components/VerticalLayout/VerticalLayout.d.ts +0 -1
  133. package/mobile/dist/components/VerticalLayout/VerticalLayout.js +2 -2
  134. package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  135. package/mobile/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +7 -6
  136. package/mobile/dist/ui-kit/Icon/Icon.js +6 -4
  137. package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
  138. package/mobile/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -9
  139. package/mobile/lib/components/VerticalLayout/VerticalLayout.d.ts +0 -1
  140. package/mobile/lib/components/VerticalLayout/VerticalLayout.js +2 -2
  141. package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  142. package/mobile/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +7 -6
  143. package/mobile/lib/ui-kit/Icon/Icon.js +6 -4
  144. package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
  145. package/mobile/src/components/HorizontalLayout/HorizontalLayoutContent.ts +2 -9
  146. package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +5 -7
  147. package/mobile/src/components/VerticalLayout/VerticalLayoutContent.ts +8 -6
  148. package/mobile/src/ui-kit/Icon/Icon.tsx +31 -30
  149. package/package.json +1 -1
  150. package/src/components/HorizontalLayout/HorizontalLayout.fixture.mobile.tsx +1 -1
  151. package/src/components/HorizontalLayout/HorizontalLayout.tsx +2 -2
  152. package/src/components/HorizontalLayout/HorizontalLayoutContent.ts +2 -9
  153. package/src/components/VerticalLayout/VerticalLayout.fixture.mobile.tsx +19 -2
  154. package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +22 -4
  155. package/src/components/VerticalLayout/VerticalLayout.tsx +5 -7
  156. package/src/components/VerticalLayout/VerticalLayoutContent.ts +8 -6
  157. package/src/ui-kit/Icon/Icon.tsx +31 -30
@@ -459,11 +459,13 @@
459
459
  };
460
460
  const Icon = JSX(({ className = '', imageClassName = '', name = '', alt = `Иконка ${name}`, title = alt, iconVersion = 'color', width, height, }) => {
461
461
  const router = useRouter();
462
- const href = adjustHref(router)(joinPath(projectSettings.CDN, '/icons', `${name}.svg`));
463
- if (iconVersion !== 'normal') {
464
- return (jsx(Background, { className: className, children: jsxs("svg", { className: style(getSvgSize(width), svgUseStyleMap[iconVersion], iconVersion === 'white' ? 'invert' : '', imageClassName), width: width, height: height, "aria-hidden": "true", children: [title ? jsx("title", { children: title }) : null, alt ? jsx("desc", { children: alt }) : null, jsx("use", { href: `${href}#icon`, xlinkHref: `${href}#icon` })] }) }));
462
+ const iconName = iconVersion === 'normal' ? `${name}.svg` : `sprites.svg#${name}`;
463
+ const href = adjustHref(router)(joinPath(projectSettings.CDN, '/icons/', iconName));
464
+ if (iconVersion === 'normal') {
465
+ // fix svg gradient color
466
+ return (jsx("img", { className: className, src: href, alt: alt, title: title, "aria-hidden": "true", width: width, height: height, style: getInlineStyle(className, height) }));
465
467
  }
466
- return (jsx("img", { className: className, src: href, alt: alt, title: title, "aria-hidden": "true", width: width, height: height, style: getInlineStyle(className, height) }));
468
+ return (jsx(Background, { className: className, children: jsxs("svg", { className: style(getSvgSize(width), svgUseStyleMap[iconVersion], iconVersion === 'white' ? 'invert' : '', imageClassName), width: width, height: height, "aria-hidden": "true", children: [title ? jsx("title", { children: title }) : null, alt ? jsx("desc", { children: alt }) : null, jsx("use", { href: href, xlinkHref: href })] }) }));
467
469
  });
468
470
  const getInlineStyle = (className, height) => {
469
471
  if (className?.includes('h-')) {
@@ -4292,7 +4294,7 @@
4292
4294
  '': '',
4293
4295
  };
4294
4296
 
4295
- const HorizontalLayout = JSX(({ className = '', gap = 'XS', isPadding = false, version = 'transparent', isTheme = false, isCardBorder, ...rest }) => (jsx(BlockWrapper, { className: style('relative', 'grid grid-cols-12', gapStyles[gap], className), defaultPadding: isPadding ? 'p-6xl' : '', version: version, isTheme: isTheme, ...rest, children: renderChildren({
4297
+ const HorizontalLayout = JSX(({ className = '', padding = 'p-0', gap = 'XS', version = 'transparent', isTheme = false, isCardBorder, ...rest }) => (jsx(BlockWrapper, { className: style('relative', 'grid grid-cols-12', gapStyles[gap], className), padding: padding, version: version, isTheme: isTheme, ...rest, children: renderChildren({
4296
4298
  ...rest,
4297
4299
  extraProps: {
4298
4300
  className: getBorderStyle(isCardBorder),
@@ -5519,10 +5521,10 @@
5519
5521
  return (jsx("ul", { className: style('text-secondary-text group-data-secondary:text-white/80', listStyle), children: items.map((_, i) => (jsx("li", { children: jsx(Text, { size: "text-s", font: "font-light", children: _ }) }, `listItem-${i}`))) }));
5520
5522
  };
5521
5523
 
5522
- const VerticalLayout = JSX(({ className = '', gap = '', isPadding = false, isInnerPadding = true, version = 'transparent', isTheme = false, isInnerBorder = false, ...rest }) => (jsx(BlockWrapper, { className: style('relative flex flex-col', gapStyles[gap], className), defaultPadding: isPadding ? 'p-6xl' : '', version: version, isTheme: isTheme, ...rest, children: renderChildren({
5524
+ const VerticalLayout = JSX(({ className = '', padding = 'p-0', gap = '', isInnerPadding = true, version = 'transparent', isTheme = false, isCardBorder = false, ...rest }) => (jsx(BlockWrapper, { className: style('relative flex flex-col', gapStyles[gap], className), padding: padding, version: version, isTheme: isTheme, ...rest, children: renderChildren({
5523
5525
  ...rest,
5524
5526
  extraProps: {
5525
- className: style('w-full', getBorderStyle(isInnerBorder)),
5527
+ className: style('w-full', getBorderStyle(isCardBorder)),
5526
5528
  padding: isInnerPadding ? '' : 'p-0',
5527
5529
  },
5528
5530
  }) })));
@@ -5827,7 +5829,7 @@
5827
5829
  return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
5828
5830
  }
5829
5831
 
5830
- const packageVersion = "0.14.72";
5832
+ const packageVersion = "0.14.74";
5831
5833
 
5832
5834
  exports.Blocks = Blocks;
5833
5835
  exports.ContentPage = ContentPage;