@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
package/bundle/bundle.umd.js
CHANGED
|
@@ -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
|
|
463
|
-
|
|
464
|
-
|
|
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("
|
|
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 = '',
|
|
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 = '',
|
|
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(
|
|
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.
|
|
5832
|
+
const packageVersion = "0.14.74";
|
|
5831
5833
|
|
|
5832
5834
|
exports.Blocks = Blocks;
|
|
5833
5835
|
exports.ContentPage = ContentPage;
|