@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.
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +180 -163
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/BaseTile/BaseTile.js +4 -19
- package/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTableContent.d.ts +2 -3
- package/dist/components/Footer/Sitemap.js +1 -1
- package/dist/components/Footer/Sitemap.js.map +1 -1
- package/dist/components/Headline/Headline.js +9 -3
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.js +1 -1
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +3 -3
- package/dist/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +12 -4
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +13 -2
- package/dist/components/ProductBlock/ProductBlockInner.js +16 -4
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductTile/ProductTileContent.d.ts +2 -2
- package/dist/components/TextBlock/TextBlockContent.d.ts +1 -0
- package/dist/components/Tile/TileContent.d.ts +1 -1
- package/dist/model/ButtonVersion.d.ts +1 -0
- package/dist/model/LinkProps.d.ts +2 -1
- package/dist/model/SitemapProps.d.ts +2 -2
- package/dist/ui-kit/Button/ButtonProps.d.ts +6 -1
- package/dist/ui-kit/Icon/Icon.js +1 -1
- package/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/dist/ui-kit/Icon/IconProps.d.ts +49 -41
- package/dist/ui-kit/Icon/IconProps.js +45 -41
- package/dist/ui-kit/Icon/IconProps.js.map +1 -1
- package/dist/ui-kit/Img.js +9 -3
- package/dist/ui-kit/Img.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/BaseTile/BaseTile.js +4 -19
- package/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTableContent.d.ts +2 -3
- package/lib/components/Footer/Sitemap.js +1 -1
- package/lib/components/Footer/Sitemap.js.map +1 -1
- package/lib/components/Headline/Headline.js +10 -4
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.js +1 -1
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +3 -3
- package/lib/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +1 -0
- package/lib/components/ProductBlock/ProductBlock.js +12 -4
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +13 -2
- package/lib/components/ProductBlock/ProductBlockInner.js +16 -4
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductTile/ProductTileContent.d.ts +2 -2
- package/lib/components/TextBlock/TextBlockContent.d.ts +1 -0
- package/lib/components/Tile/TileContent.d.ts +1 -1
- package/lib/model/ButtonVersion.d.ts +1 -0
- package/lib/model/LinkProps.d.ts +2 -1
- package/lib/model/SitemapProps.d.ts +2 -2
- package/lib/ui-kit/Button/ButtonProps.d.ts +6 -1
- package/lib/ui-kit/Icon/Icon.js +1 -1
- package/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/lib/ui-kit/Icon/IconProps.d.ts +49 -41
- package/lib/ui-kit/Icon/IconProps.js +45 -41
- package/lib/ui-kit/Icon/IconProps.js.map +1 -1
- package/lib/ui-kit/Img.js +9 -3
- package/lib/ui-kit/Img.js.map +1 -1
- package/package.json +3 -2
- package/src/components/Accordion/Accordion.example.json +4 -4
- package/src/components/BaseTile/BaseTile.tsx +11 -26
- package/src/components/ComparisonTable/ComparisonTable.example.json +1 -1
- package/src/components/ComparisonTable/ComparisonTableContent.ts +2 -3
- package/src/components/Footer/Sitemap.tsx +1 -1
- package/src/components/Headline/Headline.tsx +25 -8
- package/src/components/LinkDocs/LinkDocs.tsx +1 -1
- package/src/components/LinkDocs/LinkDocsContent.ts +3 -3
- package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +2 -0
- package/src/components/PictureText/PictureText.example.json +1 -1
- package/src/components/ProductBlock/ProductBlock.example.json +1 -1
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +58 -1
- package/src/components/ProductBlock/ProductBlock.tsx +19 -8
- package/src/components/ProductBlock/ProductBlockContent.ts +14 -2
- package/src/components/ProductBlock/ProductBlockInner.tsx +38 -6
- package/src/components/ProductTile/ProductTile.example.json +1 -1
- package/src/components/ProductTile/ProductTileContent.ts +2 -2
- package/src/components/TextBlock/TextBlockContent.ts +1 -0
- package/src/components/Tile/Tile.example.json +1 -1
- package/src/components/Tile/TileContent.ts +1 -1
- package/src/icons/AppleIcon.svg +1 -1
- package/src/icons/CalendarWhiteIcon.svg +17 -0
- package/src/icons/EmptyWalletWhiteIcon.svg +16 -0
- package/src/icons/GridIcon.svg +2 -2
- package/src/icons/PercentageSquareWhiteIcon.svg +16 -0
- package/src/icons/PlayMarketIcon.svg +1 -1
- package/src/model/ButtonVersion.ts +1 -0
- package/src/model/LinkProps.ts +2 -1
- package/src/model/SitemapProps.ts +2 -2
- package/src/ui-kit/Button/ButtonProps.ts +6 -1
- package/src/ui-kit/Icon/Icon.tsx +1 -1
- package/src/ui-kit/Icon/IconProps.ts +8 -0
- 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 персоны",
|
package/src/ui-kit/Img.tsx
CHANGED
|
@@ -6,16 +6,29 @@ export interface TextWithImageProps {
|
|
|
6
6
|
image: Picture;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
export const Img = JSX<TextWithImageProps>(({ className, image }) =>
|
|
10
|
-
|
|
11
|
-
{
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<
|
|
17
|
-
|
|
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;
|