@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
@@ -1,13 +1,15 @@
1
1
  import { type UniBlockContent } from '../../model/JSXBlock';
2
2
  import { type GapVersion } from '../HorizontalLayout/HorizontalLayoutContent';
3
3
 
4
- /**
5
- * @title Вертикальный компоновщик
6
- */
7
- export type VerticalLayoutContent = UniBlockContent & {
4
+ export type LayoutCommitProps = {
8
5
  gap?: GapVersion;
9
- /** @title Внутренний отступ компоновщика */
10
- isPadding?: boolean;
6
+ /** @title контур на дочерних элементах */
7
+ isCardBorder?: boolean;
11
8
  /** @title Отступы вложенных компонентов */
12
9
  isInnerPadding?: boolean;
13
10
  };
11
+
12
+ /**
13
+ * @title Вертикальный компоновщик
14
+ */
15
+ export type VerticalLayoutContent = UniBlockContent & LayoutCommitProps;
@@ -27,41 +27,42 @@ export const Icon = JSX<IconProps>(
27
27
  height,
28
28
  }) => {
29
29
  const router = useRouter();
30
- const href = adjustHref(router)(joinPath(projectSettings.CDN, '/icons', `${name}.svg`));
31
-
32
- if (iconVersion !== 'normal') {
30
+ const iconName = iconVersion === 'normal' ? `${name}.svg` : `sprites.svg#${name}`;
31
+ const href = adjustHref(router)(joinPath(projectSettings.CDN, '/icons/', iconName));
32
+ if (iconVersion === 'normal') {
33
+ // fix svg gradient color
33
34
  return (
34
- <Background className={className}>
35
- <svg
36
- className={style(
37
- getSvgSize(width),
38
- svgUseStyleMap[iconVersion],
39
- iconVersion === 'white' ? 'invert' : '',
40
- imageClassName,
41
- )}
42
- width={width}
43
- height={height}
44
- aria-hidden="true"
45
- >
46
- {title ? <title>{title}</title> : null}
47
- {alt ? <desc>{alt}</desc> : null}
48
- <use href={`${href}#icon`} xlinkHref={`${href}#icon`} />
49
- </svg>
50
- </Background>
35
+ <img
36
+ className={className}
37
+ src={href}
38
+ alt={alt}
39
+ title={title}
40
+ aria-hidden="true"
41
+ width={width}
42
+ height={height}
43
+ style={getInlineStyle(className, height)}
44
+ />
51
45
  );
52
46
  }
53
47
 
54
48
  return (
55
- <img
56
- className={className}
57
- src={href}
58
- alt={alt}
59
- title={title}
60
- aria-hidden="true"
61
- width={width}
62
- height={height}
63
- style={getInlineStyle(className, height)}
64
- />
49
+ <Background className={className}>
50
+ <svg
51
+ className={style(
52
+ getSvgSize(width),
53
+ svgUseStyleMap[iconVersion],
54
+ iconVersion === 'white' ? 'invert' : '',
55
+ imageClassName,
56
+ )}
57
+ width={width}
58
+ height={height}
59
+ aria-hidden="true"
60
+ >
61
+ {title ? <title>{title}</title> : null}
62
+ {alt ? <desc>{alt}</desc> : null}
63
+ <use href={href} xlinkHref={href} />
64
+ </svg>
65
+ </Background>
65
66
  );
66
67
  },
67
68
  );