@redneckz/wildless-cms-uni-blocks 0.3.2 → 0.3.5
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 +9 -9
- package/bundle/bundle.umd.min.js +1 -1
- package/cosmos-static/icons/ActualBalanceIcon.svg +1 -0
- package/cosmos-static/icons/AppleIcon.svg +1 -0
- package/cosmos-static/icons/AtmIcon.svg +1 -0
- package/cosmos-static/icons/BankIcon.svg +1 -0
- package/cosmos-static/icons/BurgerIcon.svg +1 -0
- package/cosmos-static/icons/BurgerIconWhite.svg +1 -0
- package/cosmos-static/icons/Calendar2Icon.svg +1 -0
- package/cosmos-static/icons/CalendarCircleIcon.svg +1 -0
- package/cosmos-static/icons/CalendarIcon.svg +1 -0
- package/cosmos-static/icons/CalendarTickIcon.svg +1 -0
- package/cosmos-static/icons/CalendarWhiteIcon.svg +1 -0
- package/cosmos-static/icons/CardIcon.svg +1 -0
- package/cosmos-static/icons/CardPosIcon.svg +1 -0
- package/cosmos-static/icons/CardTickIcon.svg +1 -0
- package/cosmos-static/icons/CardWithGemIcon.svg +1 -0
- package/cosmos-static/icons/ChartSquareIcon.svg +1 -0
- package/cosmos-static/icons/ClockIcon.svg +1 -0
- package/cosmos-static/icons/CloseIcon.svg +1 -0
- package/cosmos-static/icons/ComfortableCompIcon.svg +1 -0
- package/cosmos-static/icons/CreditCardsIcon.svg +1 -0
- package/cosmos-static/icons/DiscountShapeIcon.svg +1 -0
- package/cosmos-static/icons/DocIcon.svg +1 -0
- package/cosmos-static/icons/DocIconMonoColor.svg +1 -0
- package/cosmos-static/icons/DocumentTextIcon.svg +1 -0
- package/cosmos-static/icons/DollarIcon.svg +1 -0
- package/cosmos-static/icons/EarthIcon.svg +1 -0
- package/cosmos-static/icons/EmptyWalletChangeIcon.svg +1 -0
- package/cosmos-static/icons/EmptyWalletIcon.svg +1 -0
- package/cosmos-static/icons/EmptyWalletWhiteIcon.svg +1 -0
- package/cosmos-static/icons/EuroIcon.svg +1 -0
- package/cosmos-static/icons/GeolocationIcon.svg +1 -0
- package/cosmos-static/icons/GlassIcon.svg +1 -0
- package/cosmos-static/icons/GlobalIcon.svg +1 -0
- package/cosmos-static/icons/GridIcon.svg +1 -0
- package/cosmos-static/icons/GridIconWhite.svg +1 -0
- package/cosmos-static/icons/InterestGrowthIcon.svg +1 -0
- package/cosmos-static/icons/InterestIcon.svg +1 -0
- package/cosmos-static/icons/JCBIcon.svg +1 -0
- package/cosmos-static/icons/LoupeIcon.svg +1 -0
- package/cosmos-static/icons/MasterCardIcon.svg +1 -0
- package/cosmos-static/icons/MinusIcon.svg +1 -0
- package/cosmos-static/icons/MirIcon.svg +1 -0
- package/cosmos-static/icons/MoneyIcon.svg +1 -0
- package/cosmos-static/icons/MoneyInsuranceIcon.svg +1 -0
- package/cosmos-static/icons/MonitorMobileIcon.svg +1 -0
- package/cosmos-static/icons/NewDocIcon.svg +1 -0
- package/cosmos-static/icons/OfficeIcon.svg +1 -0
- package/cosmos-static/icons/OkIcon.svg +1 -0
- package/cosmos-static/icons/PassSendIcon.svg +1 -0
- package/cosmos-static/icons/PercentageRoundIcon.svg +1 -0
- package/cosmos-static/icons/PercentageSquareIcon.svg +1 -0
- package/cosmos-static/icons/PercentageSquareWhiteIcon.svg +1 -0
- package/cosmos-static/icons/PersonalCardIcon.svg +1 -0
- package/cosmos-static/icons/PlayMarketIcon.svg +1 -0
- package/cosmos-static/icons/PlusIcon.svg +1 -0
- package/cosmos-static/icons/Profile2UserIcon.svg +1 -0
- package/cosmos-static/icons/ProfileIcon.svg +1 -0
- package/cosmos-static/icons/RoundRubleIcon.svg +1 -0
- package/cosmos-static/icons/SafeIcon.svg +1 -0
- package/cosmos-static/icons/ShieldTickIcon.svg +1 -0
- package/cosmos-static/icons/SignDocsIcon.svg +1 -0
- package/cosmos-static/icons/SmallClockIcon.svg +1 -0
- package/cosmos-static/icons/TelegramIcon.svg +1 -0
- package/cosmos-static/icons/UnionPayIcon.svg +1 -0
- package/cosmos-static/icons/UserTickIcon.svg +1 -0
- package/cosmos-static/icons/VKIcon.svg +1 -0
- package/cosmos-static/icons/VisaIcon.svg +1 -0
- package/cosmos-static/icons/WalletAdd2Icon.svg +1 -0
- package/cosmos-static/icons/WalletAddIcon.svg +1 -0
- package/cosmos-static/icons/WalletIcon.svg +1 -0
- package/cosmos-static/icons/WalletWithMoneyIcon.svg +1 -0
- package/dist/components/Accordion/utils/isActiveHandler.js +1 -1
- package/dist/components/Accordion/utils/isActiveHandler.js.map +1 -1
- package/dist/components/Blocks.mobile.d.ts +3 -1
- package/dist/components/Blocks.mobile.js +5 -1
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.js +2 -2
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/ContentPage/isBlockInRegistry.d.ts +1 -2
- package/dist/components/ContentPage/isBlockInRegistry.js +2 -2
- package/dist/components/ContentPage/isBlockInRegistry.js.map +1 -1
- package/dist/components/ContentPage/normalizeBlock.d.ts +1 -1
- package/dist/components/ContentPage/normalizePage.js +1 -1
- package/dist/components/ContentPage/normalizePage.js.map +1 -1
- package/dist/components/ContentPage/normalizePage.mobile.js +1 -1
- package/dist/components/ContentPage/normalizePage.mobile.js.map +1 -1
- package/dist/components/Gallery/GalleryCardInner.js +1 -1
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/dist/components/Headline/HeadlineContent.d.ts +1 -1
- package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
- package/dist/components/Placeholder/Placeholder.js +8 -3
- package/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/dist/components/Placeholder/PlaceholderContent.d.ts +2 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/dist/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/dist/components/PromoTile/PromoTileContent.d.ts +1 -1
- package/dist/components/Tile/TileContent.d.ts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/ui-kit/Description/Description.d.ts +4 -1
- package/dist/ui-kit/Description/Description.js.map +1 -1
- package/{lib/ui-kit/Description/DescriptionProps.d.ts → dist/ui-kit/Description/DescriptionContent.d.ts} +0 -3
- package/dist/ui-kit/Description/{DescriptionProps.js → DescriptionContent.js} +1 -1
- package/dist/ui-kit/Description/DescriptionContent.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Accordion/utils/isActiveHandler.js +1 -1
- package/lib/components/Accordion/utils/isActiveHandler.js.map +1 -1
- package/lib/components/Blocks.mobile.d.ts +3 -1
- package/lib/components/Blocks.mobile.js +5 -1
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.js +2 -2
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/ContentPage/isBlockInRegistry.d.ts +1 -2
- package/lib/components/ContentPage/isBlockInRegistry.js +2 -2
- package/lib/components/ContentPage/isBlockInRegistry.js.map +1 -1
- package/lib/components/ContentPage/normalizeBlock.d.ts +1 -1
- package/lib/components/ContentPage/normalizePage.js +1 -1
- package/lib/components/ContentPage/normalizePage.js.map +1 -1
- package/lib/components/ContentPage/normalizePage.mobile.js +1 -1
- package/lib/components/ContentPage/normalizePage.mobile.js.map +1 -1
- package/lib/components/Gallery/GalleryCardInner.js +1 -1
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/lib/components/Headline/HeadlineContent.d.ts +1 -1
- package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
- package/lib/components/Placeholder/Placeholder.fixture.mobile.d.ts +2 -0
- package/lib/components/Placeholder/Placeholder.js +9 -4
- package/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/lib/components/Placeholder/PlaceholderContent.d.ts +2 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/lib/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/lib/components/PromoTile/PromoTileContent.d.ts +1 -1
- package/lib/components/Tile/TileContent.d.ts +1 -1
- package/lib/types.d.ts +1 -1
- package/lib/ui-kit/Description/Description.d.ts +4 -1
- package/lib/ui-kit/Description/Description.js.map +1 -1
- package/{mobile/dist/ui-kit/Description/DescriptionProps.d.ts → lib/ui-kit/Description/DescriptionContent.d.ts} +0 -3
- package/lib/ui-kit/Description/DescriptionContent.js +2 -0
- package/lib/ui-kit/Description/DescriptionContent.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +204 -202
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Accordion/utils/isActiveHandler.js +1 -1
- package/mobile/dist/components/Accordion/utils/isActiveHandler.js.map +1 -1
- package/mobile/dist/components/Blocks.d.ts +3 -1
- package/mobile/dist/components/Blocks.js +5 -1
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js +2 -2
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/ContentPage/isBlockInRegistry.d.ts +1 -2
- package/mobile/dist/components/ContentPage/isBlockInRegistry.js +2 -2
- package/mobile/dist/components/ContentPage/isBlockInRegistry.js.map +1 -1
- package/mobile/dist/components/ContentPage/normalizePage.js +1 -1
- package/mobile/dist/components/ContentPage/normalizePage.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/dist/components/Headline/HeadlineContent.d.ts +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
- package/mobile/dist/components/Placeholder/Placeholder.d.ts +1 -1
- package/mobile/dist/components/Placeholder/Placeholder.js +8 -3
- package/mobile/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/dist/components/Placeholder/PlaceholderContent.d.ts +2 -1
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/mobile/dist/components/PromoTile/PromoTileContent.d.ts +1 -1
- package/mobile/dist/components/Tile/TileContent.d.ts +1 -1
- package/mobile/dist/types.d.ts +1 -1
- package/mobile/dist/ui-kit/Description/Description.d.ts +4 -1
- package/mobile/dist/ui-kit/Description/Description.js.map +1 -1
- package/mobile/{lib/ui-kit/Description/DescriptionProps.d.ts → dist/ui-kit/Description/DescriptionContent.d.ts} +0 -3
- package/mobile/dist/ui-kit/Description/{DescriptionProps.js → DescriptionContent.js} +1 -1
- package/mobile/dist/ui-kit/Description/DescriptionContent.js.map +1 -0
- package/mobile/lib/components/Accordion/utils/isActiveHandler.js +1 -1
- package/mobile/lib/components/Accordion/utils/isActiveHandler.js.map +1 -1
- package/mobile/lib/components/Blocks.d.ts +3 -1
- package/mobile/lib/components/Blocks.js +5 -1
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js +2 -2
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/ContentPage/isBlockInRegistry.d.ts +1 -2
- package/mobile/lib/components/ContentPage/isBlockInRegistry.js +2 -2
- package/mobile/lib/components/ContentPage/isBlockInRegistry.js.map +1 -1
- package/mobile/lib/components/ContentPage/normalizePage.js +1 -1
- package/mobile/lib/components/ContentPage/normalizePage.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/lib/components/Headline/HeadlineContent.d.ts +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
- package/mobile/lib/components/Placeholder/Placeholder.d.ts +1 -1
- package/mobile/lib/components/Placeholder/Placeholder.js +9 -4
- package/mobile/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/lib/components/Placeholder/PlaceholderContent.d.ts +2 -1
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/mobile/lib/components/PromoTile/PromoTileContent.d.ts +1 -1
- package/mobile/lib/components/Tile/TileContent.d.ts +1 -1
- package/mobile/lib/types.d.ts +1 -1
- package/mobile/lib/ui-kit/Description/Description.d.ts +4 -1
- package/mobile/lib/ui-kit/Description/Description.js.map +1 -1
- package/{dist/ui-kit/Description/DescriptionProps.d.ts → mobile/lib/ui-kit/Description/DescriptionContent.d.ts} +0 -3
- package/mobile/lib/ui-kit/Description/DescriptionContent.js +2 -0
- package/mobile/lib/ui-kit/Description/DescriptionContent.js.map +1 -0
- package/mobile/src/components/Accordion/utils/isActiveHandler.ts +1 -2
- package/mobile/src/components/Blocks.ts +5 -1
- package/mobile/src/components/ContentPage/ContentPage.page.json +37 -43
- package/mobile/src/components/ContentPage/ContentPage.tsx +2 -2
- package/mobile/src/components/ContentPage/isBlockInRegistry.ts +2 -4
- package/mobile/src/components/ContentPage/normalizePage.ts +4 -1
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +1 -1
- package/mobile/src/components/Headline/HeadlineContent.ts +1 -1
- package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +1 -1
- package/mobile/src/components/Placeholder/Placeholder.tsx +36 -14
- package/mobile/src/components/Placeholder/PlaceholderContent.ts +2 -1
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +1 -1
- package/mobile/src/components/ProductTile/ProductTileContent.ts +1 -1
- package/mobile/src/components/PromoTile/PromoTileContent.ts +1 -1
- package/mobile/src/components/Tile/TileContent.ts +1 -1
- package/mobile/src/types.ts +1 -1
- package/mobile/src/ui-kit/Description/Description.tsx +5 -1
- package/mobile/src/ui-kit/Description/{DescriptionProps.ts → DescriptionContent.ts} +0 -4
- package/package.json +4 -5
- package/src/components/Accordion/utils/isActiveHandler.ts +1 -2
- package/src/components/Blocks.mobile.ts +5 -1
- package/src/components/ContentPage/ContentPage.page.json +37 -43
- package/src/components/ContentPage/ContentPage.tsx +2 -2
- package/src/components/ContentPage/isBlockInRegistry.ts +2 -4
- package/src/components/ContentPage/normalizePage.mobile.ts +4 -1
- package/src/components/ContentPage/normalizePage.ts +1 -1
- package/src/components/Gallery/GalleryCardInner.tsx +1 -1
- package/src/components/Headline/HeadlineContent.ts +1 -1
- package/src/components/MobileAppTile/MobileAppTileContent.ts +1 -1
- package/src/components/Placeholder/Placeholder.fixture.mobile.tsx +9 -0
- package/src/components/Placeholder/Placeholder.tsx +35 -8
- package/src/components/Placeholder/PlaceholderContent.ts +2 -1
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +6 -0
- package/src/components/ProductBlock/ProductBlockContent.ts +1 -1
- package/src/components/ProductGallery/ProductGallery.fixture.mobile.tsx +8 -0
- package/src/components/ProductTile/ProductTileContent.ts +1 -1
- package/src/components/PromoTile/PromoTileContent.ts +1 -1
- package/src/components/Tile/TileContent.ts +1 -1
- package/src/types.ts +1 -1
- package/src/ui-kit/Description/Description.tsx +5 -1
- package/src/ui-kit/Description/{DescriptionProps.ts → DescriptionContent.ts} +0 -4
- package/dist/components/Placeholder/Placeholder.mobile.d.ts +0 -6
- package/dist/components/Placeholder/Placeholder.mobile.js +0 -15
- package/dist/components/Placeholder/Placeholder.mobile.js.map +0 -1
- package/dist/ui-kit/Description/DescriptionProps.js.map +0 -1
- package/lib/components/Placeholder/Placeholder.mobile.d.ts +0 -6
- package/lib/components/Placeholder/Placeholder.mobile.js +0 -13
- package/lib/components/Placeholder/Placeholder.mobile.js.map +0 -1
- package/lib/ui-kit/Description/DescriptionProps.js +0 -2
- package/lib/ui-kit/Description/DescriptionProps.js.map +0 -1
- package/mobile/dist/ui-kit/Description/DescriptionProps.js.map +0 -1
- package/mobile/lib/ui-kit/Description/DescriptionProps.js +0 -2
- package/mobile/lib/ui-kit/Description/DescriptionProps.js.map +0 -1
- package/src/components/Placeholder/Placeholder.mobile.tsx +0 -35
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isActiveHandler.js","sourceRoot":"","sources":["../../../../src/components/Accordion/utils/isActiveHandler.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;IACrD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,UAAU,GAAG,MAAM,EAAE,MAAM,CAAC;IAClC,MAAM,IAAI,GAAa,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC;IAE3D,MAAM,eAAe,GAAG,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"isActiveHandler.js","sourceRoot":"","sources":["../../../../src/components/Accordion/utils/isActiveHandler.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;IACrD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,UAAU,GAAG,MAAM,EAAE,MAAM,CAAC;IAClC,MAAM,IAAI,GAAa,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC;IAE3D,MAAM,eAAe,GAAG,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,aAAa,CAAC,WAAW,CAAC;IAEzE,MAAM,YAAY,GAAG,CAAC,CAAa,EAAE,EAAE;QACrC,IAAI,CAAC,UAAU,EAAE;YACf,OAAO;SACR;QAED,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC;QACvB,MAAM,YAAY,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;QACxC,YAAY,CAAC,KAAK,CAAC,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,SAAS;YACzD,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,GAAG,YAAY,CAAC,YAAY,IAAI,CAAC;IACvC,CAAC,CAAC;IAEF,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;AACtD,CAAC,CAAC"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
export declare const Blocks: {
|
|
2
|
+
Accordion: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Accordion/Accordion").AccordionProps, any>, context?: any) => any;
|
|
2
3
|
ExchangeRateTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ExchangeRateTile/ExchangeRateTile").ExchangeRateTileProps, any>, context?: any) => any;
|
|
3
4
|
Footer: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Footer/Footer").FooterProps, any>, context?: any) => any;
|
|
4
5
|
Header: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Header/Header").HeaderProps, any>, context?: any) => any;
|
|
5
6
|
Headline: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Headline/Headline").HeadlineProps, any>, context?: any) => any;
|
|
6
7
|
LinkDocs: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./LinkDocs/LinkDocs").LinkDocsProps, any>, context?: any) => any;
|
|
8
|
+
MobileAppTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./MobileAppTile/MobileAppTile").MobileAppTileProps, any>, context?: any) => any;
|
|
7
9
|
Placeholder: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Placeholder/Placeholder").PlaceholderProps, any>, context?: any) => any;
|
|
8
10
|
ProductBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ProductBlock/ProductBlock").ProductBlockProps, any>, context?: any) => any;
|
|
9
11
|
ProductGallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ProductGallery/ProductGallery").ProductGalleryProps, any>, context?: any) => any;
|
|
10
|
-
TextBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./TextBlock/TextBlock").TextBlockProps, any>, context?: any) => any;
|
|
11
12
|
StepsBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./StepsBlock/StepsBlock").StepsBlockProps, any>, context?: any) => any;
|
|
13
|
+
TextBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./TextBlock/TextBlock").TextBlockProps, any>, context?: any) => any;
|
|
12
14
|
};
|
|
@@ -1,23 +1,27 @@
|
|
|
1
|
+
import { Accordion } from './Accordion/Accordion.js';
|
|
1
2
|
import { ExchangeRateTile } from './ExchangeRateTile/ExchangeRateTile.js';
|
|
2
3
|
import { Footer } from './Footer/Footer.js';
|
|
3
4
|
import { Header } from './Header/Header.js';
|
|
4
5
|
import { Headline } from './Headline/Headline.js';
|
|
5
6
|
import { LinkDocs } from './LinkDocs/LinkDocs.js';
|
|
7
|
+
import { MobileAppTile } from './MobileAppTile/MobileAppTile.js';
|
|
6
8
|
import { Placeholder } from './Placeholder/Placeholder.js';
|
|
7
9
|
import { ProductBlock } from './ProductBlock/ProductBlock.js';
|
|
8
10
|
import { ProductGallery } from './ProductGallery/ProductGallery.js';
|
|
9
11
|
import { StepsBlock } from './StepsBlock/StepsBlock.js';
|
|
10
12
|
import { TextBlock } from './TextBlock/TextBlock.js';
|
|
11
13
|
export const Blocks = {
|
|
14
|
+
Accordion,
|
|
12
15
|
ExchangeRateTile,
|
|
13
16
|
Footer,
|
|
14
17
|
Header,
|
|
15
18
|
Headline,
|
|
16
19
|
LinkDocs,
|
|
20
|
+
MobileAppTile,
|
|
17
21
|
Placeholder,
|
|
18
22
|
ProductBlock,
|
|
19
23
|
ProductGallery,
|
|
20
|
-
TextBlock,
|
|
21
24
|
StepsBlock,
|
|
25
|
+
TextBlock,
|
|
22
26
|
};
|
|
23
27
|
//# sourceMappingURL=Blocks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../../src/components/Blocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE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SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,SAAS;IACT,gBAAgB;IAChB,MAAM;IACN,MAAM;IACN,QAAQ;IACR,QAAQ;IACR,aAAa;IACb,WAAW;IACX,YAAY;IACZ,cAAc;IACd,UAAU;IACV,SAAS;CACV,CAAC"}
|
|
@@ -9,10 +9,10 @@ export const ContentPage = JSX(({ className, context, blocksRegistry, data: { st
|
|
|
9
9
|
});
|
|
10
10
|
function renderBlock({ block, blockDecorator, blocksRegistry, context }, i) {
|
|
11
11
|
const { type } = block;
|
|
12
|
-
if (!(type in blocksRegistry)) {
|
|
12
|
+
if (!(type && type in blocksRegistry)) {
|
|
13
13
|
console.warn(`No block with "${type}" is registered`);
|
|
14
14
|
}
|
|
15
|
-
const BlockComponent = blocksRegistry[type] || Placeholder;
|
|
15
|
+
const BlockComponent = blocksRegistry[type || 'Placeholder'] || Placeholder;
|
|
16
16
|
return blockDecorator({
|
|
17
17
|
blockClassName: style2className(block.style),
|
|
18
18
|
block,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentPage.js","sourceRoot":"","sources":["../../../src/components/ContentPage/ContentPage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAqB,MAAM,mBAAmB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAkCzD,MAAM,qBAAqB,GAAmB,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,CAClF,MAAM,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC,CAAC;AAEpC,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAC5B,CAAC,EACC,SAAS,EACT,OAAO,EACP,cAAc,EACd,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,GAAG,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CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACtC,CAAC"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function isBlockInRegistry<T>(block: BlockDef, registry: Record<string, T>): boolean;
|
|
1
|
+
export declare function isBlockInRegistry<T>(blockType: string | undefined, registry: Record<string, T>): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isBlockInRegistry.js","sourceRoot":"","sources":["../../../src/components/ContentPage/isBlockInRegistry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"isBlockInRegistry.js","sourceRoot":"","sources":["../../../src/components/ContentPage/isBlockInRegistry.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,iBAAiB,CAAI,SAA6B,EAAE,QAA2B;IAC7F,OAAO,CAAC,SAAS,IAAI,EAAE,CAAC,IAAI,QAAQ,CAAC;AACvC,CAAC"}
|
|
@@ -21,7 +21,7 @@ export function normalizePage(contentPage) {
|
|
|
21
21
|
}
|
|
22
22
|
function getMobileBlocks(blocks) {
|
|
23
23
|
return blocks
|
|
24
|
-
?.filter((block) => isBlockInRegistry(block, Blocks) && !block.mobile?.hidden)
|
|
24
|
+
?.filter((block) => isBlockInRegistry(block?.type || block?.mobile?.type, Blocks) && !block.mobile?.hidden)
|
|
25
25
|
.map(normalizeBlock);
|
|
26
26
|
}
|
|
27
27
|
//# sourceMappingURL=normalizePage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizePage.js","sourceRoot":"","sources":["../../../src/components/ContentPage/normalizePage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,UAAU,aAAa,CAC3B,WAA8C;IAE9C,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,SAAS,CAAC;KAClB;IAED,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,WAAW,CAAC;IAEtC,OAAO;QACL,GAAG,WAAW;QACd,MAAM,EAAE,eAAe,CAAC,MAAM,CAAC;QAC/B,KAAK,EACH,KAAK;YACL,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CACvB,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;gBACb,GAAG,GAAG;gBACN,CAAC,GAAG,CAAC,EAAE;oBACL,GAAG,KAAK,CAAC,GAAG,CAAC;oBACb,MAAM,EAAE,eAAe,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC;iBAC3C;aACF,CAAC,EACF,EAAE,CACH;KACJ,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,MAAmB;IAC1C,OAAO,MAAM;QACX,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"normalizePage.js","sourceRoot":"","sources":["../../../src/components/ContentPage/normalizePage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,UAAU,aAAa,CAC3B,WAA8C;IAE9C,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,SAAS,CAAC;KAClB;IAED,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,WAAW,CAAC;IAEtC,OAAO;QACL,GAAG,WAAW;QACd,MAAM,EAAE,eAAe,CAAC,MAAM,CAAC;QAC/B,KAAK,EACH,KAAK;YACL,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CACvB,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;gBACb,GAAG,GAAG;gBACN,CAAC,GAAG,CAAC,EAAE;oBACL,GAAG,KAAK,CAAC,GAAG,CAAC;oBACb,MAAM,EAAE,eAAe,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC;iBAC3C;aACF,CAAC,EACF,EAAE,CACH;KACJ,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,MAAmB;IAC1C,OAAO,MAAM;QACX,EAAE,MAAM,CACN,CAAC,KAAK,EAAE,EAAE,CACR,iBAAiB,CAAC,KAAK,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CACzF;SACA,GAAG,CAAC,cAAc,CAAC,CAAC;AACzB,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { Button } from '../../ui-kit/Button/Button.js';
|
|
|
5
5
|
import { Img } from '../../ui-kit/Img/Img.js';
|
|
6
6
|
export const GalleryCardInner = JSX(({ title, description, image, items, button, version }) => {
|
|
7
7
|
return (_jsxs("div", { children: [_jsxs("div", { children: [image?.src ? (_jsx("div", { className: "flex justify-center", children: _jsx(Img, { className: "mb-6", image: image }) })) : null, title && renderCardTitle(title, description, items), description ? _jsx("div", { className: `font-normal text-sm mt-2`, children: description }) : null, items?.length ? (_jsx("section", { className: `max-w-[308px] mt-2`, role: "list", children: items
|
|
8
|
-
.filter((item) => item
|
|
8
|
+
.filter((item) => item?.text)
|
|
9
9
|
.map((item, i) => renderItem(item.text, i, version)) })) : null] }), button?.text && _jsx(Button, { className: "mt-6", ...button })] }));
|
|
10
10
|
});
|
|
11
11
|
function renderCardTitle(title, description, items) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GalleryCardInner.js","sourceRoot":"","sources":["../../../src/components/Gallery/GalleryCardInner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,MAAM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MAAM,CAAC,CAAC,CAAC,CAEb,CACb,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BgColorVersion } from '../../model/BgColorVersion';
|
|
2
|
-
import type { DescriptionContent } from '../../ui-kit/Description/
|
|
2
|
+
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
|
|
3
3
|
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
4
4
|
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
5
5
|
import type { AlignType } from '../BaseTile/BaseTileProps';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
|
|
2
|
-
import type { DescriptionContent } from '../../ui-kit/Description/
|
|
2
|
+
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
|
|
3
3
|
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
4
4
|
/**
|
|
5
5
|
* @title QR код
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { PlaceholderContent } from '../../components/Placeholder/PlaceholderContent';
|
|
1
2
|
import type { UniBlockProps } from '../../types';
|
|
2
|
-
import type { PlaceholderContent } from './PlaceholderContent';
|
|
3
3
|
export interface PlaceholderProps extends PlaceholderContent, UniBlockProps {
|
|
4
4
|
className?: string;
|
|
5
5
|
}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import {
|
|
3
|
+
import { Description } from '../../ui-kit/Description/Description.js';
|
|
4
|
+
import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
5
|
+
import { BaseTile } from '../BaseTile/BaseTile.js';
|
|
6
|
+
import { getTileHeadingType } from '../BaseTile/getTileHeadingType.js';
|
|
7
|
+
import { getTileMinHeight } from '../BaseTile/getTileMinHeight.js';
|
|
8
|
+
import { getTileRightPadding } from '../BaseTile/getTileRightPadding.js';
|
|
4
9
|
const GOLDEN_RATIO = 1.618;
|
|
5
|
-
export const Placeholder = JSX(({ className
|
|
6
|
-
return (_jsx(
|
|
10
|
+
export const Placeholder = JSX(({ className, context, title, description = 'Блок в разработке...' }) => {
|
|
11
|
+
return (_jsx("section", { className: `bg-white text-primary-text font-sans p-9 box-border ${className} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, children: _jsxs(BaseTile, { context: context, title: title ? (_jsx(Heading, { headingType: getTileHeadingType(className), title: title, className: `whitespace-pre-wrap max-w-[600px]` })) : null, children: [description ? (_jsx(Description, { className: "mt-4 max-w-[600px]", description: description })) : null, _jsx("figure", { className: "m-0 min-w-[600px]", children: renderShimmer() })] }) }));
|
|
7
12
|
});
|
|
8
13
|
const renderShimmer = (size = 3) => goldenSequence(100, size)
|
|
9
14
|
.map((_) => Math.floor(_))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Placeholder.js","sourceRoot":"","sources":["../../../src/components/Placeholder/Placeholder.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"Placeholder.js","sourceRoot":"","sources":["../../../src/components/Placeholder/Placeholder.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAA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C;AAEF,MAAM,cAAc,GAAG,CAAC,KAAa,EAAE,IAAY,EAAY,EAAE,CAC/D,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,KAAK,GAAG,YAAY,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
|
|
1
2
|
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
2
3
|
/**
|
|
3
4
|
* @hidden
|
|
4
5
|
*/
|
|
5
|
-
export declare type PlaceholderContent = HeadingContent;
|
|
6
|
+
export declare type PlaceholderContent = HeadingContent & DescriptionContent;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
2
|
import type { LinkProps } from '../../model/LinkProps';
|
|
3
3
|
import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
|
|
4
|
-
import type { DescriptionContent } from '../../ui-kit/Description/
|
|
4
|
+
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
|
|
5
5
|
import type { HeadingContent, HeadingTypeContent } from '../../ui-kit/Heading/HeadingContent';
|
|
6
6
|
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
7
7
|
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
2
|
import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
|
|
3
|
-
import type { DescriptionContent } from '../../ui-kit/Description/
|
|
3
|
+
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
|
|
4
4
|
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
5
5
|
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
6
6
|
import type { TextBenefit } from '../BenefitsBlock/BenefitsBlockContent';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
2
|
import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
|
|
3
|
-
import type { DescriptionContent } from '../../ui-kit/Description/
|
|
3
|
+
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
|
|
4
4
|
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
5
5
|
/**
|
|
6
6
|
* @title Акции
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
2
|
import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
|
|
3
|
-
import type { DescriptionContent } from '../../ui-kit/Description/
|
|
3
|
+
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
|
|
4
4
|
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
5
5
|
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
6
6
|
import type { ListContent } from '../../ui-kit/List/ListContent';
|
package/mobile/lib/types.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { ContentPageContext } from './components/ContentPage/ContentPageCon
|
|
|
3
3
|
import type { BlockVersion } from './model/BlockVersion';
|
|
4
4
|
export declare type ColorPalette = 'pc' | 'bc' | 'eo' | 'eo2' | 'eo3' | 'eo4';
|
|
5
5
|
export interface BaseBlockDef {
|
|
6
|
-
type
|
|
6
|
+
type?: string;
|
|
7
7
|
style?: string[];
|
|
8
8
|
content?: BlockContent;
|
|
9
9
|
version?: BlockVersion;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DescriptionContent } from './DescriptionContent';
|
|
2
|
+
export interface DescriptionProps extends DescriptionContent {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
2
5
|
export declare const Description: (props: import("@redneckz/uni-jsx").PropsWithChildren<DescriptionProps, any>, context?: any) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Description.js","sourceRoot":"","sources":["../../../src/ui-kit/Description/Description.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"Description.js","sourceRoot":"","sources":["../../../src/ui-kit/Description/Description.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAOxC,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAmB,CAAC,KAAK,EAAE,EAAE;IACzD,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAEzC,OAAO,cAAK,SAAS,EAAE,yBAAyB,SAAS,IAAI,EAAE,EAAE,YAAG,WAAW,GAAO,CAAC;AACzF,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DescriptionContent.js","sourceRoot":"","sources":["../../../src/ui-kit/Description/DescriptionContent.ts"],"names":[],"mappings":""}
|
|
@@ -5,8 +5,7 @@ export const isActiveHandler = ({ context, blocks }) => {
|
|
|
5
5
|
const hasContent = blocks?.length;
|
|
6
6
|
const icon: IconName = isActive ? 'MinusIcon' : 'PlusIcon';
|
|
7
7
|
|
|
8
|
-
const getContentBlock = ({
|
|
9
|
-
target.tagName === 'BUTTON' ? target.nextSibling : target.parentNode.nextSibling;
|
|
8
|
+
const getContentBlock = ({ currentTarget }) => currentTarget.nextSibling;
|
|
10
9
|
|
|
11
10
|
const handleToggle = (e: MouseEvent) => {
|
|
12
11
|
if (!hasContent) {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { Accordion } from './Accordion/Accordion';
|
|
1
2
|
import { ExchangeRateTile } from './ExchangeRateTile/ExchangeRateTile';
|
|
2
3
|
import { Footer } from './Footer/Footer';
|
|
3
4
|
import { Header } from './Header/Header';
|
|
4
5
|
import { Headline } from './Headline/Headline';
|
|
5
6
|
import { LinkDocs } from './LinkDocs/LinkDocs';
|
|
7
|
+
import { MobileAppTile } from './MobileAppTile/MobileAppTile';
|
|
6
8
|
import { Placeholder } from './Placeholder/Placeholder';
|
|
7
9
|
import { ProductBlock } from './ProductBlock/ProductBlock';
|
|
8
10
|
import { ProductGallery } from './ProductGallery/ProductGallery';
|
|
@@ -10,14 +12,16 @@ import { StepsBlock } from './StepsBlock/StepsBlock';
|
|
|
10
12
|
import { TextBlock } from './TextBlock/TextBlock';
|
|
11
13
|
|
|
12
14
|
export const Blocks = {
|
|
15
|
+
Accordion,
|
|
13
16
|
ExchangeRateTile,
|
|
14
17
|
Footer,
|
|
15
18
|
Header,
|
|
16
19
|
Headline,
|
|
17
20
|
LinkDocs,
|
|
21
|
+
MobileAppTile,
|
|
18
22
|
Placeholder,
|
|
19
23
|
ProductBlock,
|
|
20
24
|
ProductGallery,
|
|
21
|
-
TextBlock,
|
|
22
25
|
StepsBlock,
|
|
26
|
+
TextBlock,
|
|
23
27
|
};
|
|
@@ -83,7 +83,13 @@
|
|
|
83
83
|
"size": {
|
|
84
84
|
"width": 280,
|
|
85
85
|
"height": 280
|
|
86
|
-
}
|
|
86
|
+
},
|
|
87
|
+
"sources": [
|
|
88
|
+
{
|
|
89
|
+
"src": "money-1.png 1x, money-1-2x.png 2x",
|
|
90
|
+
"format": "png"
|
|
91
|
+
}
|
|
92
|
+
]
|
|
87
93
|
}
|
|
88
94
|
}
|
|
89
95
|
},
|
|
@@ -1312,22 +1318,18 @@
|
|
|
1312
1318
|
"label": "Accordion label 1",
|
|
1313
1319
|
"blocks": [
|
|
1314
1320
|
{
|
|
1315
|
-
"
|
|
1316
|
-
"
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
"iconVersion": "small"
|
|
1321
|
-
}
|
|
1321
|
+
"accordionBlockType": "TextBlock",
|
|
1322
|
+
"title": "Title",
|
|
1323
|
+
"description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
|
|
1324
|
+
"blockVersion": "secondary-light",
|
|
1325
|
+
"iconVersion": "small"
|
|
1322
1326
|
},
|
|
1323
1327
|
{
|
|
1324
|
-
"
|
|
1325
|
-
"
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
"iconVersion": "small"
|
|
1330
|
-
}
|
|
1328
|
+
"accordionBlockType": "TextBlock",
|
|
1329
|
+
"title": "Title",
|
|
1330
|
+
"description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
|
|
1331
|
+
"blockVersion": "secondary-light",
|
|
1332
|
+
"iconVersion": "small"
|
|
1331
1333
|
}
|
|
1332
1334
|
]
|
|
1333
1335
|
},
|
|
@@ -1335,22 +1337,18 @@
|
|
|
1335
1337
|
"label": "Accordion label 2",
|
|
1336
1338
|
"blocks": [
|
|
1337
1339
|
{
|
|
1338
|
-
"
|
|
1339
|
-
"
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
"iconVersion": "small"
|
|
1344
|
-
}
|
|
1340
|
+
"accordionBlockType": "TextBlock",
|
|
1341
|
+
"title": "Title",
|
|
1342
|
+
"description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
|
|
1343
|
+
"blockVersion": "secondary-light",
|
|
1344
|
+
"iconVersion": "small"
|
|
1345
1345
|
},
|
|
1346
1346
|
{
|
|
1347
|
-
"
|
|
1348
|
-
"
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
"iconVersion": "small"
|
|
1353
|
-
}
|
|
1347
|
+
"accordionBlockType": "TextBlock",
|
|
1348
|
+
"title": "Title",
|
|
1349
|
+
"description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
|
|
1350
|
+
"blockVersion": "secondary-light",
|
|
1351
|
+
"iconVersion": "small"
|
|
1354
1352
|
}
|
|
1355
1353
|
]
|
|
1356
1354
|
},
|
|
@@ -1358,22 +1356,18 @@
|
|
|
1358
1356
|
"label": "Accordion label 3",
|
|
1359
1357
|
"blocks": [
|
|
1360
1358
|
{
|
|
1361
|
-
"
|
|
1362
|
-
"
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
"iconVersion": "small"
|
|
1367
|
-
}
|
|
1359
|
+
"accordionBlockType": "TextBlock",
|
|
1360
|
+
"title": "Title",
|
|
1361
|
+
"description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
|
|
1362
|
+
"blockVersion": "secondary-light",
|
|
1363
|
+
"iconVersion": "small"
|
|
1368
1364
|
},
|
|
1369
1365
|
{
|
|
1370
|
-
"
|
|
1371
|
-
"
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
"iconVersion": "small"
|
|
1376
|
-
}
|
|
1366
|
+
"accordionBlockType": "TextBlock",
|
|
1367
|
+
"title": "Title",
|
|
1368
|
+
"description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
|
|
1369
|
+
"blockVersion": "secondary-light",
|
|
1370
|
+
"iconVersion": "small"
|
|
1377
1371
|
}
|
|
1378
1372
|
]
|
|
1379
1373
|
}
|
|
@@ -88,11 +88,11 @@ function renderBlock(
|
|
|
88
88
|
i: number,
|
|
89
89
|
) {
|
|
90
90
|
const { type } = block;
|
|
91
|
-
if (!(type in blocksRegistry)) {
|
|
91
|
+
if (!(type && type in blocksRegistry)) {
|
|
92
92
|
console.warn(`No block with "${type}" is registered`);
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
const BlockComponent = blocksRegistry[type] || Placeholder;
|
|
95
|
+
const BlockComponent = blocksRegistry[type || 'Placeholder'] || Placeholder;
|
|
96
96
|
return blockDecorator(
|
|
97
97
|
{
|
|
98
98
|
blockClassName: style2className(block.style),
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export function isBlockInRegistry<T>(block: BlockDef, registry: Record<string, T>) {
|
|
4
|
-
return block.type in registry;
|
|
1
|
+
export function isBlockInRegistry<T>(blockType: string | undefined, registry: Record<string, T>) {
|
|
2
|
+
return (blockType || '') in registry;
|
|
5
3
|
}
|
|
@@ -32,6 +32,9 @@ export function normalizePage(
|
|
|
32
32
|
|
|
33
33
|
function getMobileBlocks(blocks?: BlockDef[]) {
|
|
34
34
|
return blocks
|
|
35
|
-
?.filter(
|
|
35
|
+
?.filter(
|
|
36
|
+
(block) =>
|
|
37
|
+
isBlockInRegistry(block?.type || block?.mobile?.type, Blocks) && !block.mobile?.hidden,
|
|
38
|
+
)
|
|
36
39
|
.map(normalizeBlock);
|
|
37
40
|
}
|
|
@@ -20,7 +20,7 @@ export const GalleryCardInner = JSX<GalleryCard>(
|
|
|
20
20
|
{items?.length ? (
|
|
21
21
|
<section className={`max-w-[308px] mt-2`} role="list">
|
|
22
22
|
{items
|
|
23
|
-
.filter((item) => item
|
|
23
|
+
.filter((item) => item?.text)
|
|
24
24
|
.map((item, i) => renderItem(item.text as string, i, version))}
|
|
25
25
|
</section>
|
|
26
26
|
) : null}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BgColorVersion } from '../../model/BgColorVersion';
|
|
2
|
-
import type { DescriptionContent } from '../../ui-kit/Description/
|
|
2
|
+
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
|
|
3
3
|
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
4
4
|
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
5
5
|
import type { AlignType } from '../BaseTile/BaseTileProps';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
|
|
2
|
-
import type { DescriptionContent } from '../../ui-kit/Description/
|
|
2
|
+
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
|
|
3
3
|
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { PlaceholderContent } from '../../components/Placeholder/PlaceholderContent';
|
|
2
3
|
import type { UniBlockProps } from '../../types';
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
4
|
+
import { Description } from '../../ui-kit/Description/Description';
|
|
5
|
+
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
6
|
+
import { BaseTile } from '../BaseTile/BaseTile';
|
|
7
|
+
import { getTileHeadingType } from '../BaseTile/getTileHeadingType';
|
|
8
|
+
import { getTileMinHeight } from '../BaseTile/getTileMinHeight';
|
|
9
|
+
import { getTileRightPadding } from '../BaseTile/getTileRightPadding';
|
|
5
10
|
|
|
6
11
|
export interface PlaceholderProps extends PlaceholderContent, UniBlockProps {
|
|
7
12
|
className?: string;
|
|
@@ -9,18 +14,35 @@ export interface PlaceholderProps extends PlaceholderContent, UniBlockProps {
|
|
|
9
14
|
|
|
10
15
|
const GOLDEN_RATIO = 1.618;
|
|
11
16
|
|
|
12
|
-
export const Placeholder = JSX<PlaceholderProps>(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
export const Placeholder = JSX<PlaceholderProps>(
|
|
18
|
+
({ className, context, title, description = 'Блок в разработке...' }) => {
|
|
19
|
+
return (
|
|
20
|
+
<section
|
|
21
|
+
className={`bg-white text-primary-text font-sans p-9 box-border ${className} ${getTileRightPadding(
|
|
22
|
+
className,
|
|
23
|
+
)} ${getTileMinHeight(className)} `}
|
|
24
|
+
>
|
|
25
|
+
<BaseTile
|
|
26
|
+
context={context}
|
|
27
|
+
title={
|
|
28
|
+
title ? (
|
|
29
|
+
<Heading
|
|
30
|
+
headingType={getTileHeadingType(className)}
|
|
31
|
+
title={title}
|
|
32
|
+
className={`whitespace-pre-wrap max-w-[600px]`}
|
|
33
|
+
/>
|
|
34
|
+
) : null
|
|
35
|
+
}
|
|
36
|
+
>
|
|
37
|
+
{description ? (
|
|
38
|
+
<Description className="mt-4 max-w-[600px]" description={description} />
|
|
39
|
+
) : null}
|
|
40
|
+
<figure className="m-0 min-w-[600px]">{renderShimmer()}</figure>
|
|
41
|
+
</BaseTile>
|
|
42
|
+
</section>
|
|
43
|
+
);
|
|
44
|
+
},
|
|
45
|
+
);
|
|
24
46
|
|
|
25
47
|
const renderShimmer = (size = 3) =>
|
|
26
48
|
goldenSequence(100, size)
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
|
|
1
2
|
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* @hidden
|
|
5
6
|
*/
|
|
6
|
-
export type PlaceholderContent = HeadingContent;
|
|
7
|
+
export type PlaceholderContent = HeadingContent & DescriptionContent;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
2
|
import type { LinkProps } from '../../model/LinkProps';
|
|
3
3
|
import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
|
|
4
|
-
import type { DescriptionContent } from '../../ui-kit/Description/
|
|
4
|
+
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
|
|
5
5
|
import type { HeadingContent, HeadingTypeContent } from '../../ui-kit/Heading/HeadingContent';
|
|
6
6
|
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
7
7
|
import type { ListContent } from '../../ui-kit/List/ListContent';
|