@redneckz/wildless-cms-uni-blocks 0.2.96 → 0.2.99

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 (99) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +180 -163
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/dist/components/BaseTile/BaseTile.js +4 -19
  5. package/dist/components/BaseTile/BaseTile.js.map +1 -1
  6. package/dist/components/ComparisonTable/ComparisonTableContent.d.ts +2 -3
  7. package/dist/components/Footer/Sitemap.js +1 -1
  8. package/dist/components/Footer/Sitemap.js.map +1 -1
  9. package/dist/components/Headline/Headline.js +9 -3
  10. package/dist/components/Headline/Headline.js.map +1 -1
  11. package/dist/components/LinkDocs/LinkDocs.js +1 -1
  12. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  13. package/dist/components/LinkDocs/LinkDocsContent.d.ts +3 -3
  14. package/dist/components/ProductBlock/ProductBlock.d.ts +1 -1
  15. package/dist/components/ProductBlock/ProductBlock.js +12 -4
  16. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  17. package/dist/components/ProductBlock/ProductBlockContent.d.ts +13 -2
  18. package/dist/components/ProductBlock/ProductBlockInner.js +16 -4
  19. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  20. package/dist/components/ProductTile/ProductTileContent.d.ts +2 -2
  21. package/dist/components/TextBlock/TextBlockContent.d.ts +1 -0
  22. package/dist/components/Tile/TileContent.d.ts +1 -1
  23. package/dist/model/ButtonVersion.d.ts +1 -0
  24. package/dist/model/LinkProps.d.ts +2 -1
  25. package/dist/model/SitemapProps.d.ts +2 -2
  26. package/dist/ui-kit/Button/ButtonProps.d.ts +6 -1
  27. package/dist/ui-kit/Icon/Icon.js +1 -1
  28. package/dist/ui-kit/Icon/Icon.js.map +1 -1
  29. package/dist/ui-kit/Icon/IconProps.d.ts +49 -41
  30. package/dist/ui-kit/Icon/IconProps.js +45 -41
  31. package/dist/ui-kit/Icon/IconProps.js.map +1 -1
  32. package/dist/ui-kit/Img.js +9 -3
  33. package/dist/ui-kit/Img.js.map +1 -1
  34. package/lib/common.css +1 -1
  35. package/lib/components/BaseTile/BaseTile.js +4 -19
  36. package/lib/components/BaseTile/BaseTile.js.map +1 -1
  37. package/lib/components/ComparisonTable/ComparisonTableContent.d.ts +2 -3
  38. package/lib/components/Footer/Sitemap.js +1 -1
  39. package/lib/components/Footer/Sitemap.js.map +1 -1
  40. package/lib/components/Headline/Headline.js +10 -4
  41. package/lib/components/Headline/Headline.js.map +1 -1
  42. package/lib/components/LinkDocs/LinkDocs.js +1 -1
  43. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  44. package/lib/components/LinkDocs/LinkDocsContent.d.ts +3 -3
  45. package/lib/components/ProductBlock/ProductBlock.d.ts +1 -1
  46. package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +1 -0
  47. package/lib/components/ProductBlock/ProductBlock.js +12 -4
  48. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  49. package/lib/components/ProductBlock/ProductBlockContent.d.ts +13 -2
  50. package/lib/components/ProductBlock/ProductBlockInner.js +16 -4
  51. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  52. package/lib/components/ProductTile/ProductTileContent.d.ts +2 -2
  53. package/lib/components/TextBlock/TextBlockContent.d.ts +1 -0
  54. package/lib/components/Tile/TileContent.d.ts +1 -1
  55. package/lib/model/ButtonVersion.d.ts +1 -0
  56. package/lib/model/LinkProps.d.ts +2 -1
  57. package/lib/model/SitemapProps.d.ts +2 -2
  58. package/lib/ui-kit/Button/ButtonProps.d.ts +6 -1
  59. package/lib/ui-kit/Icon/Icon.js +1 -1
  60. package/lib/ui-kit/Icon/Icon.js.map +1 -1
  61. package/lib/ui-kit/Icon/IconProps.d.ts +49 -41
  62. package/lib/ui-kit/Icon/IconProps.js +45 -41
  63. package/lib/ui-kit/Icon/IconProps.js.map +1 -1
  64. package/lib/ui-kit/Img.js +9 -3
  65. package/lib/ui-kit/Img.js.map +1 -1
  66. package/package.json +3 -2
  67. package/src/components/Accordion/Accordion.example.json +4 -4
  68. package/src/components/BaseTile/BaseTile.tsx +11 -26
  69. package/src/components/ComparisonTable/ComparisonTable.example.json +1 -1
  70. package/src/components/ComparisonTable/ComparisonTableContent.ts +2 -3
  71. package/src/components/Footer/Sitemap.tsx +1 -1
  72. package/src/components/Headline/Headline.tsx +25 -8
  73. package/src/components/LinkDocs/LinkDocs.tsx +1 -1
  74. package/src/components/LinkDocs/LinkDocsContent.ts +3 -3
  75. package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +2 -0
  76. package/src/components/PictureText/PictureText.example.json +1 -1
  77. package/src/components/ProductBlock/ProductBlock.example.json +1 -1
  78. package/src/components/ProductBlock/ProductBlock.fixture.tsx +58 -1
  79. package/src/components/ProductBlock/ProductBlock.tsx +19 -8
  80. package/src/components/ProductBlock/ProductBlockContent.ts +14 -2
  81. package/src/components/ProductBlock/ProductBlockInner.tsx +38 -6
  82. package/src/components/ProductTile/ProductTile.example.json +1 -1
  83. package/src/components/ProductTile/ProductTileContent.ts +2 -2
  84. package/src/components/TextBlock/TextBlockContent.ts +1 -0
  85. package/src/components/Tile/Tile.example.json +1 -1
  86. package/src/components/Tile/TileContent.ts +1 -1
  87. package/src/icons/AppleIcon.svg +1 -1
  88. package/src/icons/CalendarWhiteIcon.svg +17 -0
  89. package/src/icons/EmptyWalletWhiteIcon.svg +16 -0
  90. package/src/icons/GridIcon.svg +2 -2
  91. package/src/icons/PercentageSquareWhiteIcon.svg +16 -0
  92. package/src/icons/PlayMarketIcon.svg +1 -1
  93. package/src/model/ButtonVersion.ts +1 -0
  94. package/src/model/LinkProps.ts +2 -1
  95. package/src/model/SitemapProps.ts +2 -2
  96. package/src/ui-kit/Button/ButtonProps.ts +6 -1
  97. package/src/ui-kit/Icon/Icon.tsx +1 -1
  98. package/src/ui-kit/Icon/IconProps.ts +8 -0
  99. package/src/ui-kit/Img.tsx +23 -10
@@ -2,10 +2,12 @@
2
2
  * Icons sorted by name
3
3
  */
4
4
  export enum IconMap {
5
+ '',
5
6
  'ActualBalanceIcon',
6
7
  'AppleIcon',
7
8
  'CalendarCircleIcon',
8
9
  'CalendarIcon',
10
+ 'CalendarWhiteIcon',
9
11
  'CardIcon',
10
12
  'CardPosIcon',
11
13
  'CardTickIcon',
@@ -17,6 +19,7 @@ export enum IconMap {
17
19
  'DollarIcon',
18
20
  'EmptyWalletChangeIcon',
19
21
  'EmptyWalletIcon',
22
+ 'EmptyWalletWhiteIcon',
20
23
  'EuroIcon',
21
24
  'GlassIcon',
22
25
  'GridIcon',
@@ -31,6 +34,7 @@ export enum IconMap {
31
34
  'OkIcon',
32
35
  'PassSendIcon',
33
36
  'PercentageSquareIcon',
37
+ 'PercentageSquareWhiteIcon',
34
38
  'PlayMarketIcon',
35
39
  'PlusIcon',
36
40
  'Profile2UserIcon',
@@ -48,10 +52,12 @@ export enum IconMap {
48
52
  /**
49
53
  * @title Иконка
50
54
  * @enumNames [
55
+ * "",
51
56
  * "Деньги",
52
57
  * "Лого «Apple»",
53
58
  * "Скруглённый календарь",
54
59
  * "Календарь",
60
+ * "Календарь белый",
55
61
  * "Кред. карта",
56
62
  * "Кред. карта под наклоном",
57
63
  * "Кред. карта с галочкой",
@@ -63,6 +69,7 @@ export enum IconMap {
63
69
  * "Доллар",
64
70
  * "Пустой кошелёк с возвратом",
65
71
  * "Пустой кошелёк",
72
+ * "Пустой кошелёк белый",
66
73
  * "Евро",
67
74
  * "Зеркало",
68
75
  * "Сетка",
@@ -77,6 +84,7 @@ export enum IconMap {
77
84
  * "Лого «Одноклассники»",
78
85
  * "Бизнес",
79
86
  * "Проценты",
87
+ * "Проценты белые",
80
88
  * "Лого «PlayMarket»",
81
89
  * "Плюс",
82
90
  * "Профиль, 2 персоны",
@@ -6,16 +6,29 @@ export interface TextWithImageProps {
6
6
  image: Picture;
7
7
  }
8
8
 
9
- export const Img = JSX<TextWithImageProps>(({ className, image }) => (
10
- <picture className={`${className || ''}`}>
11
- {image.sources?.length
12
- ? image.sources.map(({ src, format }, index) => (
13
- <source key={`${index}_${src}`} srcSet={src} type={formatToMimeType(format)} />
14
- ))
15
- : null}
16
- <img src={image.src} alt={image.alt || image.title} title={image.title} {...image?.size} />
17
- </picture>
18
- ));
9
+ export const Img = JSX<TextWithImageProps>(({ className, image: { size, ...image } }) => {
10
+ const style = {
11
+ width: size?.width ? `${size?.width}px` : '100%',
12
+ height: size?.height ? `${size?.height}px` : '100%',
13
+ };
14
+
15
+ return (
16
+ <picture className={`flex-none ${className || ''}`}>
17
+ {image.sources?.length
18
+ ? image.sources.map(({ src, format }, index) => (
19
+ <source key={`${index}_${src}`} srcSet={src} type={formatToMimeType(format)} />
20
+ ))
21
+ : null}
22
+ <img
23
+ src={image.src}
24
+ alt={image.alt || image.title}
25
+ title={image.title}
26
+ style={style}
27
+ {...size}
28
+ />
29
+ </picture>
30
+ );
31
+ });
19
32
 
20
33
  export function formatToMimeType(format: ImgSource['format']): string | undefined {
21
34
  return format ? `image/${String(format)}` : undefined;