@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.
- package/bin/migration-scripts/0.14.68.js +20 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +10 -8
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -9
- package/bundle/components/VerticalLayout/VerticalLayout.d.ts +0 -1
- package/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +7 -6
- package/cosmos-static/icons/ActualBalanceIcon.svg +1 -1
- package/cosmos-static/icons/AppleIcon.svg +1 -1
- package/cosmos-static/icons/ArrowDownIcon.svg +1 -1
- package/cosmos-static/icons/ArrowDownSolidIcon.svg +1 -1
- package/cosmos-static/icons/ArrowLeftIcon.svg +1 -1
- package/cosmos-static/icons/ArrowRightIcon.svg +1 -1
- package/cosmos-static/icons/ArrowTopRightIcon.svg +1 -1
- package/cosmos-static/icons/ArrowUpIcon.svg +1 -1
- package/cosmos-static/icons/ArrowUpSolidIcon.svg +1 -1
- package/cosmos-static/icons/AtmIcon.svg +1 -1
- package/cosmos-static/icons/BankIcon.svg +1 -1
- package/cosmos-static/icons/BelarusianFlag.svg +1 -1
- package/cosmos-static/icons/BriefcaseIcon.svg +1 -1
- package/cosmos-static/icons/BuildingIcon.svg +1 -1
- package/cosmos-static/icons/BurgerIcon.svg +1 -1
- package/cosmos-static/icons/CalendarCircleIcon.svg +1 -1
- package/cosmos-static/icons/CalendarIcon.svg +1 -1
- package/cosmos-static/icons/CalendarTickIcon.svg +1 -1
- package/cosmos-static/icons/CardIcon.svg +1 -1
- package/cosmos-static/icons/CardPosIcon.svg +1 -1
- package/cosmos-static/icons/CardSendIcon.svg +1 -1
- package/cosmos-static/icons/CardTickIcon.svg +1 -1
- package/cosmos-static/icons/ChartIcon.svg +1 -1
- package/cosmos-static/icons/ChartSquareIcon.svg +1 -1
- package/cosmos-static/icons/ChevronLeftIcon.svg +1 -1
- package/cosmos-static/icons/ClientIcon.svg +1 -1
- package/cosmos-static/icons/CloseIcon.svg +1 -1
- package/cosmos-static/icons/CoinIcon.svg +1 -1
- package/cosmos-static/icons/ConvertCardIcon.svg +1 -1
- package/cosmos-static/icons/CourtHouseIcon.svg +1 -1
- package/cosmos-static/icons/DiscountShapeIcon.svg +1 -1
- package/cosmos-static/icons/DocDownloadIcon.svg +1 -1
- package/cosmos-static/icons/DocIcon.svg +1 -1
- package/cosmos-static/icons/DollarIcon.svg +1 -1
- package/cosmos-static/icons/DoneIcon.svg +1 -1
- package/cosmos-static/icons/DoneSimpleIcon.svg +1 -1
- package/cosmos-static/icons/DzenIcon.svg +1 -1
- package/cosmos-static/icons/EmptyWalletChangeIcon.svg +1 -1
- package/cosmos-static/icons/EmptyWalletIcon.svg +1 -1
- package/cosmos-static/icons/EuroIcon.svg +1 -1
- package/cosmos-static/icons/FaxIcon.svg +1 -1
- package/cosmos-static/icons/FullScreenIcon.svg +1 -1
- package/cosmos-static/icons/GeolocationIcon.svg +1 -1
- package/cosmos-static/icons/GlobalIcon.svg +1 -1
- package/cosmos-static/icons/GpsIcon.svg +1 -1
- package/cosmos-static/icons/GridIcon.svg +1 -1
- package/cosmos-static/icons/HeadphonesIcon.svg +1 -1
- package/cosmos-static/icons/HeartIcon.svg +1 -1
- package/cosmos-static/icons/HeartTickIcon.svg +1 -1
- package/cosmos-static/icons/HouseIcon.svg +1 -1
- package/cosmos-static/icons/HuaweiIcon.svg +1 -1
- package/cosmos-static/icons/LogoIcon.svg +1 -1
- package/cosmos-static/icons/LoupeIcon.svg +1 -1
- package/cosmos-static/icons/MagnifierIcon.svg +1 -1
- package/cosmos-static/icons/MailIcon.svg +1 -1
- package/cosmos-static/icons/MapMarkerClusterIcon.svg +1 -1
- package/cosmos-static/icons/MapMarkerSingleIcon.svg +1 -1
- package/cosmos-static/icons/MapOpenedIcon.svg +1 -1
- package/cosmos-static/icons/MinusIcon.svg +1 -1
- package/cosmos-static/icons/MoneyIcon.svg +1 -1
- package/cosmos-static/icons/MoneyInsuranceIcon.svg +1 -1
- package/cosmos-static/icons/MonitorMobileIcon.svg +1 -1
- package/cosmos-static/icons/NewDocIcon.svg +1 -1
- package/cosmos-static/icons/NotificationBingIcon.svg +1 -1
- package/cosmos-static/icons/OkIcon.svg +1 -1
- package/cosmos-static/icons/PackA4Icon.svg +1 -1
- package/cosmos-static/icons/PassSendIcon.svg +1 -1
- package/cosmos-static/icons/PercentIcon.svg +1 -1
- package/cosmos-static/icons/PercentageRoundIcon.svg +1 -1
- package/cosmos-static/icons/PersonalCardIcon.svg +1 -1
- package/cosmos-static/icons/PhoneCallingIcon.svg +1 -1
- package/cosmos-static/icons/PhoneIcon.svg +1 -1
- package/cosmos-static/icons/PlayMarketIcon.svg +1 -1
- package/cosmos-static/icons/PlusCircleIcon.svg +1 -1
- package/cosmos-static/icons/PlusIcon.svg +1 -1
- package/cosmos-static/icons/Profile2UserIcon.svg +1 -1
- package/cosmos-static/icons/ProfileIcon.svg +1 -1
- package/cosmos-static/icons/ResponseFailIcon.svg +1 -1
- package/cosmos-static/icons/ResponseOKIcon.svg +1 -1
- package/cosmos-static/icons/RoundRubleIcon.svg +1 -1
- package/cosmos-static/icons/RutubeIcon.svg +1 -1
- package/cosmos-static/icons/SafeIcon.svg +1 -1
- package/cosmos-static/icons/Security/320/241ardIcon.svg +1 -1
- package/cosmos-static/icons/ShieldTickIcon.svg +1 -1
- package/cosmos-static/icons/SignDocsIcon.svg +1 -1
- package/cosmos-static/icons/SmallClockIcon.svg +1 -1
- package/cosmos-static/icons/SoundIcon.svg +1 -1
- package/cosmos-static/icons/TelegramIcon.svg +1 -1
- package/cosmos-static/icons/UserGeoLocationIcon.svg +1 -1
- package/cosmos-static/icons/UserSquareIcon.svg +1 -1
- package/cosmos-static/icons/UserTickIcon.svg +1 -1
- package/cosmos-static/icons/VKIcon.svg +1 -1
- package/cosmos-static/icons/WalletAddIcon.svg +1 -1
- package/cosmos-static/icons/WalletIcon.svg +1 -1
- package/cosmos-static/icons/WalletWithMoneyIcon.svg +1 -1
- package/cosmos-static/icons/YoutubeIcon.svg +1 -1
- package/cosmos-static/icons/sprites.svg +87 -0
- package/dist/components/HorizontalLayout/HorizontalLayout.js +1 -1
- package/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -9
- package/dist/components/VerticalLayout/VerticalLayout.d.ts +0 -1
- package/dist/components/VerticalLayout/VerticalLayout.js +2 -2
- package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +7 -6
- package/dist/ui-kit/Icon/Icon.js +6 -4
- package/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/HorizontalLayout/HorizontalLayout.js +1 -1
- package/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -9
- package/lib/components/VerticalLayout/VerticalLayout.d.ts +0 -1
- package/lib/components/VerticalLayout/VerticalLayout.fixture.d.ts +1 -0
- package/lib/components/VerticalLayout/VerticalLayout.fixture.mobile.d.ts +1 -0
- package/lib/components/VerticalLayout/VerticalLayout.js +2 -2
- package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +7 -6
- package/lib/ui-kit/Icon/Icon.js +6 -4
- package/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +9 -7
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -9
- package/mobile/bundle/components/VerticalLayout/VerticalLayout.d.ts +0 -1
- package/mobile/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +7 -6
- package/mobile/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -9
- package/mobile/dist/components/VerticalLayout/VerticalLayout.d.ts +0 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js +2 -2
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +7 -6
- package/mobile/dist/ui-kit/Icon/Icon.js +6 -4
- package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -9
- package/mobile/lib/components/VerticalLayout/VerticalLayout.d.ts +0 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js +2 -2
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +7 -6
- package/mobile/lib/ui-kit/Icon/Icon.js +6 -4
- package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/src/components/HorizontalLayout/HorizontalLayoutContent.ts +2 -9
- package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +5 -7
- package/mobile/src/components/VerticalLayout/VerticalLayoutContent.ts +8 -6
- package/mobile/src/ui-kit/Icon/Icon.tsx +31 -30
- package/package.json +1 -1
- package/src/components/HorizontalLayout/HorizontalLayout.fixture.mobile.tsx +1 -1
- package/src/components/HorizontalLayout/HorizontalLayout.tsx +2 -2
- package/src/components/HorizontalLayout/HorizontalLayoutContent.ts +2 -9
- package/src/components/VerticalLayout/VerticalLayout.fixture.mobile.tsx +19 -2
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +22 -4
- package/src/components/VerticalLayout/VerticalLayout.tsx +5 -7
- package/src/components/VerticalLayout/VerticalLayoutContent.ts +8 -6
- 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
|
-
|
|
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;
|
package/src/ui-kit/Icon/Icon.tsx
CHANGED
|
@@ -27,41 +27,42 @@ export const Icon = JSX<IconProps>(
|
|
|
27
27
|
height,
|
|
28
28
|
}) => {
|
|
29
29
|
const router = useRouter();
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
if (iconVersion
|
|
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
|
-
<
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
-
<
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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
|
);
|