@redneckz/wildless-cms-uni-blocks 0.3.56 → 0.3.57
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 +69 -20
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/BlockContent.d.ts +2 -1
- package/dist/components/Blocks.d.ts +1 -0
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/GroupBlock/BlocksTypeProps.d.ts +36 -0
- package/dist/components/GroupBlock/BlocksTypeProps.js +2 -0
- package/dist/components/GroupBlock/BlocksTypeProps.js.map +1 -0
- package/dist/components/GroupBlock/EmbeddableGroupBlocks.d.ts +4 -0
- package/dist/components/GroupBlock/EmbeddableGroupBlocks.js +9 -0
- package/dist/components/GroupBlock/EmbeddableGroupBlocks.js.map +1 -0
- package/dist/components/GroupBlock/GroupBlock.d.ts +9 -0
- package/dist/components/GroupBlock/GroupBlock.js +19 -0
- package/dist/components/GroupBlock/GroupBlock.js.map +1 -0
- package/dist/components/GroupBlock/GroupBlockContent.d.ts +21 -0
- package/dist/components/GroupBlock/GroupBlockContent.js +2 -0
- package/dist/components/GroupBlock/GroupBlockContent.js.map +1 -0
- package/dist/components/GroupBlock/GroupBlockTabs.d.ts +10 -0
- package/dist/components/GroupBlock/GroupBlockTabs.js +18 -0
- package/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -0
- package/dist/components/GroupBlock/GroupBlocksItem.d.ts +8 -0
- package/dist/components/GroupBlock/GroupBlocksItem.js +20 -0
- package/dist/components/GroupBlock/GroupBlocksItem.js.map +1 -0
- package/dist/components/GroupBlock/filterBlocksByTag.d.ts +2 -0
- package/dist/components/GroupBlock/filterBlocksByTag.js +7 -0
- package/dist/components/GroupBlock/filterBlocksByTag.js.map +1 -0
- package/dist/components/GroupBlock/renderBlocksTypes.d.ts +9 -0
- package/dist/components/GroupBlock/renderBlocksTypes.js +16 -0
- package/dist/components/GroupBlock/renderBlocksTypes.js.map +1 -0
- package/dist/components/OtherProducts/OtherProductsContent.d.ts +4 -2
- package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductGalleryGreen/ProductGalleryGreen.js +9 -11
- package/dist/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -1
- package/dist/utils/style2className.d.ts +1 -1
- package/dist/utils/style2className.js +3 -1
- package/dist/utils/style2className.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/BlockContent.d.ts +2 -1
- package/lib/components/Blocks.d.ts +1 -0
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/GroupBlock/BlocksTypeProps.d.ts +36 -0
- package/lib/components/GroupBlock/BlocksTypeProps.js +2 -0
- package/lib/components/GroupBlock/BlocksTypeProps.js.map +1 -0
- package/lib/components/GroupBlock/EmbeddableGroupBlocks.d.ts +4 -0
- package/lib/components/GroupBlock/EmbeddableGroupBlocks.js +7 -0
- package/lib/components/GroupBlock/EmbeddableGroupBlocks.js.map +1 -0
- package/lib/components/GroupBlock/GroupBlock.d.ts +9 -0
- package/lib/components/GroupBlock/GroupBlock.fixture.d.ts +4 -0
- package/lib/components/GroupBlock/GroupBlock.js +17 -0
- package/lib/components/GroupBlock/GroupBlock.js.map +1 -0
- package/lib/components/GroupBlock/GroupBlockContent.d.ts +21 -0
- package/lib/components/GroupBlock/GroupBlockContent.js +2 -0
- package/lib/components/GroupBlock/GroupBlockContent.js.map +1 -0
- package/lib/components/GroupBlock/GroupBlockTabs.d.ts +10 -0
- package/lib/components/GroupBlock/GroupBlockTabs.js +16 -0
- package/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -0
- package/lib/components/GroupBlock/GroupBlocksItem.d.ts +8 -0
- package/lib/components/GroupBlock/GroupBlocksItem.js +17 -0
- package/lib/components/GroupBlock/GroupBlocksItem.js.map +1 -0
- package/lib/components/GroupBlock/filterBlocksByTag.d.ts +2 -0
- package/lib/components/GroupBlock/filterBlocksByTag.js +4 -0
- package/lib/components/GroupBlock/filterBlocksByTag.js.map +1 -0
- package/lib/components/GroupBlock/renderBlocksTypes.d.ts +9 -0
- package/lib/components/GroupBlock/renderBlocksTypes.js +13 -0
- package/lib/components/GroupBlock/renderBlocksTypes.js.map +1 -0
- package/lib/components/OtherProducts/OtherProductsContent.d.ts +4 -2
- package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductGalleryGreen/ProductGalleryGreen.js +9 -11
- package/lib/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -1
- package/lib/utils/style2className.d.ts +1 -1
- package/lib/utils/style2className.js +3 -1
- package/lib/utils/style2className.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +3 -1
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/BlockContent.d.ts +2 -1
- package/mobile/dist/components/GroupBlock/BlocksTypeProps.d.ts +36 -0
- package/mobile/dist/components/GroupBlock/BlocksTypeProps.js +2 -0
- package/mobile/dist/components/GroupBlock/BlocksTypeProps.js.map +1 -0
- package/mobile/dist/components/GroupBlock/EmbeddableGroupBlocks.d.ts +4 -0
- package/mobile/dist/components/GroupBlock/EmbeddableGroupBlocks.js +9 -0
- package/mobile/dist/components/GroupBlock/EmbeddableGroupBlocks.js.map +1 -0
- package/mobile/dist/components/GroupBlock/GroupBlock.d.ts +9 -0
- package/mobile/dist/components/GroupBlock/GroupBlock.js +19 -0
- package/mobile/dist/components/GroupBlock/GroupBlock.js.map +1 -0
- package/mobile/dist/components/GroupBlock/GroupBlockContent.d.ts +21 -0
- package/mobile/dist/components/GroupBlock/GroupBlockContent.js +2 -0
- package/mobile/dist/components/GroupBlock/GroupBlockContent.js.map +1 -0
- package/mobile/dist/components/GroupBlock/GroupBlockTabs.d.ts +10 -0
- package/mobile/dist/components/GroupBlock/GroupBlockTabs.js +18 -0
- package/mobile/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -0
- package/mobile/dist/components/GroupBlock/GroupBlocksItem.d.ts +8 -0
- package/mobile/dist/components/GroupBlock/GroupBlocksItem.js +20 -0
- package/mobile/dist/components/GroupBlock/GroupBlocksItem.js.map +1 -0
- package/mobile/dist/components/GroupBlock/filterBlocksByTag.d.ts +2 -0
- package/mobile/dist/components/GroupBlock/filterBlocksByTag.js +7 -0
- package/mobile/dist/components/GroupBlock/filterBlocksByTag.js.map +1 -0
- package/mobile/dist/components/GroupBlock/renderBlocksTypes.d.ts +9 -0
- package/mobile/dist/components/GroupBlock/renderBlocksTypes.js +16 -0
- package/mobile/dist/components/GroupBlock/renderBlocksTypes.js.map +1 -0
- package/mobile/dist/components/OtherProducts/OtherProductsContent.d.ts +4 -2
- package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreen.js +9 -11
- package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -1
- package/mobile/dist/utils/style2className.d.ts +1 -1
- package/mobile/dist/utils/style2className.js +3 -1
- package/mobile/dist/utils/style2className.js.map +1 -1
- package/mobile/lib/components/BlockContent.d.ts +2 -1
- package/mobile/lib/components/GroupBlock/BlocksTypeProps.d.ts +36 -0
- package/mobile/lib/components/GroupBlock/BlocksTypeProps.js +2 -0
- package/mobile/lib/components/GroupBlock/BlocksTypeProps.js.map +1 -0
- package/mobile/lib/components/GroupBlock/EmbeddableGroupBlocks.d.ts +4 -0
- package/mobile/lib/components/GroupBlock/EmbeddableGroupBlocks.js +7 -0
- package/mobile/lib/components/GroupBlock/EmbeddableGroupBlocks.js.map +1 -0
- package/mobile/lib/components/GroupBlock/GroupBlock.d.ts +9 -0
- package/mobile/lib/components/GroupBlock/GroupBlock.js +17 -0
- package/mobile/lib/components/GroupBlock/GroupBlock.js.map +1 -0
- package/mobile/lib/components/GroupBlock/GroupBlockContent.d.ts +21 -0
- package/mobile/lib/components/GroupBlock/GroupBlockContent.js +2 -0
- package/mobile/lib/components/GroupBlock/GroupBlockContent.js.map +1 -0
- package/mobile/lib/components/GroupBlock/GroupBlockTabs.d.ts +10 -0
- package/mobile/lib/components/GroupBlock/GroupBlockTabs.js +16 -0
- package/mobile/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -0
- package/mobile/lib/components/GroupBlock/GroupBlocksItem.d.ts +8 -0
- package/mobile/lib/components/GroupBlock/GroupBlocksItem.js +17 -0
- package/mobile/lib/components/GroupBlock/GroupBlocksItem.js.map +1 -0
- package/mobile/lib/components/GroupBlock/filterBlocksByTag.d.ts +2 -0
- package/mobile/lib/components/GroupBlock/filterBlocksByTag.js +4 -0
- package/mobile/lib/components/GroupBlock/filterBlocksByTag.js.map +1 -0
- package/mobile/lib/components/GroupBlock/renderBlocksTypes.d.ts +9 -0
- package/mobile/lib/components/GroupBlock/renderBlocksTypes.js +13 -0
- package/mobile/lib/components/GroupBlock/renderBlocksTypes.js.map +1 -0
- package/mobile/lib/components/OtherProducts/OtherProductsContent.d.ts +4 -2
- package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreen.js +9 -11
- package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -1
- package/mobile/lib/utils/style2className.d.ts +1 -1
- package/mobile/lib/utils/style2className.js +3 -1
- package/mobile/lib/utils/style2className.js.map +1 -1
- package/mobile/src/components/BlockContent.ts +3 -1
- package/mobile/src/components/GroupBlock/BlocksTypeProps.ts +40 -0
- package/mobile/src/components/GroupBlock/EmbeddableGroupBlocks.tsx +7 -0
- package/mobile/src/components/GroupBlock/GroupBlock.example.json +27 -0
- package/mobile/src/components/GroupBlock/GroupBlock.tsx +43 -0
- package/mobile/src/components/GroupBlock/GroupBlockContent.ts +23 -0
- package/mobile/src/components/GroupBlock/GroupBlockTabs.tsx +54 -0
- package/mobile/src/components/GroupBlock/GroupBlocksItem.tsx +30 -0
- package/mobile/src/components/GroupBlock/filterBlocksByTag.ts +5 -0
- package/mobile/src/components/GroupBlock/renderBlocksTypes.tsx +27 -0
- package/mobile/src/components/OtherProducts/OtherProductsContent.ts +4 -2
- package/mobile/src/components/ProductGalleryGreen/ProductGalleryGreen.tsx +8 -14
- package/mobile/src/utils/style2className.ts +3 -2
- package/package.json +1 -1
- package/src/components/BlockContent.ts +3 -1
- package/src/components/Blocks.ts +2 -0
- package/src/components/GroupBlock/BlocksTypeProps.ts +40 -0
- package/src/components/GroupBlock/EmbeddableGroupBlocks.tsx +7 -0
- package/src/components/GroupBlock/GroupBlock.example.json +27 -0
- package/src/components/GroupBlock/GroupBlock.fixture.tsx +51 -0
- package/src/components/GroupBlock/GroupBlock.tsx +43 -0
- package/src/components/GroupBlock/GroupBlockContent.ts +23 -0
- package/src/components/GroupBlock/GroupBlockTabs.tsx +54 -0
- package/src/components/GroupBlock/GroupBlocksItem.tsx +30 -0
- package/src/components/GroupBlock/filterBlocksByTag.ts +5 -0
- package/src/components/GroupBlock/renderBlocksTypes.tsx +27 -0
- package/src/components/OtherProducts/OtherProductsContent.ts +4 -2
- package/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
- package/src/components/ProductGalleryGreen/ProductGalleryGreen.tsx +8 -14
- package/src/utils/style2className.ts +3 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"http://json-schema.org/draft-07/schema#","definitions":{"GalleryItem":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок (моб.)"},"text":{"type":"string","title":"Текст"}},"title":"Элемент списка"},"GalleryCard":{"type":"object","properties":{"button":{"$ref":"#/definitions/ButtonWithIconProps","title":"Кнопка"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture","default":{"format":"webp","size":{"width":140,"height":140}}},"isDotted":{"type":"boolean","title":"Буллиты","default":true},"items":{"type":"array","items":{"$ref":"#/definitions/GalleryItem"},"title":"Список"},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Карточка"},"Picture":{"type":"object","properties":{"src":{"type":"string","title":"Картинка"},"format":{"type":"string","enum":["jpeg","jpg","png","gif","webp","heif","avif"],"title":"Формат"},"size":{"type":"object","properties":{"width":{"type":"number","title":"Ширина"},"height":{"type":"number","title":"Высота"}},"title":"Размер изображения"},"alt":{"type":"string","title":"Альтернативный текст (alt)"},"sources":{"type":"array","items":{"$ref":"#/definitions/ImgSource"},"title":"Другие форматы"},"className":{"type":"string"},"title":{"type":"string","title":"Текст подсказки (title)"},"icon":{"$ref":"#/definitions/IconName","title":"Иконка"}},"title":"Изображение"},"Img":{"type":"object","properties":{"src":{"type":"string","title":"Картинка"},"alt":{"type":"string","title":"Альтернативный текст (alt)"},"title":{"type":"string","title":"Текст подсказки (title)"}}},"ImgSource":{"type":"object","properties":{"src":{"type":"string","title":"Картинка"},"format":{"type":"string","enum":["jpeg","jpg","png","gif","webp","heif","avif"],"title":"Формат"},"size":{"type":"object","properties":{"width":{"type":"number","title":"Ширина"},"height":{"type":"number","title":"Высота"}},"title":"Размер изображения"},"icon":{"$ref":"#/definitions/IconName","title":"Иконка"}}},"IconName":{"type":"string","enum":["","ActualBalanceIcon","AppleIcon","ArrowDownIcon","ArrowLeftIcon","ArrowsRewindRight","ArrowUpIcon","AtmIcon","BankIcon","BurgerIcon","BurgerIconWhite","Calendar2Icon","CalendarCircleIcon","CalendarIcon","CalendarTickIcon","CalendarWhiteIcon","CardIcon","CardPosIcon","CardTickIcon","CardWithGemIcon","ChartSquareIcon","ClockIcon","CloseIcon","ComfortableCompIcon","CreditCardsIcon","DiscountShapeIcon","DocIcon","DocIconMonoColor","DocumentTextIcon","DollarIcon","EarthIcon","EmptyWalletChangeIcon","EmptyWalletIcon","EmptyWalletWhiteIcon","EuroIcon","GeolocationIcon","GlassIcon","GlobalIcon","GpsIcon","GridIcon","GridIconWhite","InterestGrowthIcon","InterestIcon","JCBIcon","LoupeIcon","MasterCardIcon","MinusIcon","MirIcon","MoneyIcon","MoneyInsuranceIcon","MonitorMobileIcon","NewDocIcon","OfficeIcon","OkIcon","PassSendIcon","PercentageRoundIcon","PercentageSquareIcon","PercentageSquareWhiteIcon","PersonalCardIcon","PlayMarketIcon","PlusIcon","Profile2UserIcon","ProfileIcon","RoundRubleIcon","SafeIcon","ShieldTickIcon","SignDocsIcon","SmallClockIcon","TelegramIcon","UnionPayIcon","UserTickIcon","VisaIcon","VKIcon","WalletAdd2Icon","WalletAddIcon","WalletIcon","WalletWithMoneyIcon"],"title":"Иконка","enumNames":["","Деньги","Лого «Apple»","Стрелка 'Вниз'","Стрелка","ArrowsRewindRight","ArrowUpIcon","Банкомат","Банк","Бургер","Бургер (белый)","Календарь 2","Скруглённый календарь","Календарь","Календарь с галочкой","Календарь белый","Кред. карта","Кред. карта под наклоном","Кред. карта с галочкой","Карта с драгоценностями","Деньги внутри кошелька","Часы","Крестик","Кресло","Кредитные карты","Скидка","Документ","Документ (одноцветный)","Документ с текстом","Доллар","Земля","Пустой кошелёк с возвратом","Пустой кошелёк","Пустой кошелёк (белый)","Евро","Геолокация","Зеркало","Глобус","Gps","Сетка","Сетка (белая)","Диаграмма роста","Скидка","JCB","Лупа","MasterCard","Минус","МИР","Деньги","Денежное страхование","Монитор и мобильный","Новый документ","Офис","Лого «Одноклассники»","Бизнес","Проценты (круг.)","Проценты","Проценты белые","Персональная карта","Лого «PlayMarket»","Плюс","Профиль, 2 персоны","Профиль","Рубль (круг.)","Сейф","Безопасность","Подписанные документы","Маленькие часы","Лого «Telegram»","UnionPay","Пользователь","Visa","Лого «VK»","Пополнение карты","Кошелёк с плюсом","Кошелёк","Кошелёк с деньгами"]},"ButtonWithIconProps":{"type":"object","properties":{"rounded":{"type":"boolean","title":"Закругленные углы"},"version":{"$ref":"#/definitions/ButtonVersion"},"aboveText":{"type":"string","title":"Верхний текст"},"icon":{"$ref":"#/definitions/Picture","title":"Иконка"},"text":{"type":"string","title":"Текст","default":"Кнопка"},"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}}},"ButtonProps":{"type":"object","properties":{"version":{"$ref":"#/definitions/ButtonVersion"},"text":{"type":"string","title":"Текст","default":"Кнопка"},"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}}},"LinkProps":{"type":"object","properties":{"text":{"type":"string","title":"Текст"},"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}},"title":"Ссылка","required":["text","href"]},"Target":{"type":"string","enum":["","_self","_blank","_parent","_top"],"title":"Таргет (target)","enumNames":["","self (текущее окно или фрейм)","blank (новое окно)","parent (фрейм-родитель)","top (текущее окно)"]},"ButtonVersion":{"type":"string","enum":["primary","secondary","link"],"title":"Цвет кнопки","default":"primary","enumNames":["Основная","Второстепенная"]},"BlockVersion":{"type":"string","enum":["primary","secondary"],"title":"Цвет блока","enumNames":["Основная","Второстепенная"]},"GalleryContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"orientation":{"$ref":"#/definitions/ListOrientation","title":"Отображать элементы в моб. версии (прокрутка shift+mouseScroll)"},"cards":{"type":"array","items":{"$ref":"#/definitions/GalleryCard"},"title":"Карточки","minItems":3}},"title":"Галерея"},"ListOrientation":{"type":"string","enum":["vertical","horizontal"],"title":"Направление списка","enumNames":["Вертикально","Горизонтально"]},"DescriptionContent":{"type":"object","properties":{"description":{"type":"string","title":"Описание"}}},"HeadingType":{"type":"string","enum":["h1","h2","h3","h4","h5","h6"],"title":"Тип заголовка","enumNames":["h1","h2","h3","h4","h5","h6"]},"HeadingTypeContent":{"type":"object","properties":{"headingType":{"$ref":"#/definitions/HeadingType"}}},"HeadingContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"}}},"HeadlineContent":{"type":"object","properties":{"bgColorHeadline":{"$ref":"#/definitions/BlockVersionWithTransparent"},"title":{"type":"string","title":"Заголовок"},"align":{"$ref":"#/definitions/AlignType"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"}},"title":"Заголовок"},"ImageContent":{"type":"object","properties":{"image":{"$ref":"#/definitions/Picture"}}},"AlignType":{"type":"string","enum":["left","center","right"],"title":"Выравнивание","enumNames":["По левому краю","По центру","По правому краю"]},"BlockVersionWithTransparent":{"type":"string","enum":["transparent","primary","secondary"],"title":"Цвет блока","enumNames":["Прозрачная","Основная","Второстепенная"]},"LinkColumnsMode":{"type":"string","enum":["single","double"],"title":"Отображение списка","enumNames":["Одна колонка","Две колонки"]},"LinkDocsItem":{"type":"object","properties":{"text":{"type":"string","title":"Текст"},"fileSize":{"type":"string","title":"размер файла"},"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}},"title":"Элемент списка"},"LinkDocsContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"subtitle":{"type":"string","title":"Описание"},"align":{"$ref":"#/definitions/AlignType"},"orientation":{"$ref":"#/definitions/ListOrientation","title":"Отображать элементы в моб. версии (прокрутка shift+mouseScroll)"},"columnsMode":{"$ref":"#/definitions/LinkColumnsMode"},"hasBorder":{"type":"boolean","title":"Рамка элементов (моб.)"},"icon":{"$ref":"#/definitions/Picture","title":"Название иконки"},"documents":{"type":"array","items":{"$ref":"#/definitions/LinkDocsItem"},"title":"Список"}},"title":"Список документов"},"MiniGalleryContent":{"$ref":"#/definitions/GalleryContent","title":"Мини-галерея","minItems":4},"TextBenefit":{"type":"object","properties":{"label":{"type":"string","title":"Название"},"description":{"type":"string","title":"Описание"}}},"Benefit":{"type":"object","properties":{"label":{"type":"string","title":"Название"},"description":{"type":"string","title":"Описание"},"icon":{"$ref":"#/definitions/Picture"}},"title":"Преимущество"},"BenefitsBlockContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"benefits":{"type":"array","items":{"$ref":"#/definitions/Benefit"},"title":"Список преимуществ","maxItems":6}},"title":"Блок преимущества"},"TitleWithImageContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"image":{"$ref":"#/definitions/Picture"}}},"PictureTextContent":{"type":"object","properties":{"directionRight":{"type":"boolean","title":"Картинка справа/текст слева","default":false},"title":{"type":"string","title":"Заголовок"},"image":{"$ref":"#/definitions/Picture"},"benefits":{"type":"array","items":{"$ref":"#/definitions/Benefit"},"title":"Список преимуществ"},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Картинка с текстом"},"ListContent":{"type":"object","properties":{"items":{"type":"array","items":{"type":"string"},"title":"Список"}}},"BenefitItemProps":{"type":"object","properties":{"benefit":{"$ref":"#/definitions/Benefit"},"benefitsVersion":{"$ref":"#/definitions/IconVersion"},"version":{"$ref":"#/definitions/BlockVersion"}},"required":["benefit"]},"IconVersion":{"type":"string","enum":["normal","white"]},"ProductBlockInnerContent":{"type":"object","properties":{"label":{"type":"string","title":"Лейбл (моб.)"},"headingType":{"$ref":"#/definitions/HeadingType"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"benefits":{"type":"array","items":{"$ref":"#/definitions/Benefit"},"title":"Преимущества","minItems":2,"maxItems":3},"benefitsVersion":{"$ref":"#/definitions/IconVersion"},"isDotted":{"type":"boolean","title":"Буллиты","default":true},"items":{"type":"array","items":{"type":"string"},"title":"Список"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}}},"ButtonContent":{"type":"object","properties":{"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4}}},"ProductBlockContent":{"type":"object","properties":{"label":{"type":"string","title":"Лейбл (моб.)"},"headingType":{"$ref":"#/definitions/HeadingType"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"backwardButton":{"$ref":"#/definitions/ButtonWithIconProps","title":"Кнопка возврата"},"breadcrumbs":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Хлебные крошки"},"benefits":{"type":"array","items":{"$ref":"#/definitions/Benefit"},"title":"Преимущества","minItems":2,"maxItems":3},"benefitsVersion":{"$ref":"#/definitions/IconVersion"},"isDotted":{"type":"boolean","title":"Буллиты","default":true},"items":{"type":"array","items":{"type":"string"},"title":"Список"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Продуктовый блок"},"ProductTileContent":{"type":"object","properties":{"headingType":{"$ref":"#/definitions/HeadingType"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"benefits":{"type":"array","items":{"$ref":"#/definitions/TextBenefit"},"title":"Преимущества","maxItems":7},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Продуктовая плитка"},"TextBlockVersion":{"type":"string","enum":["primary","secondary","secondary-light"],"title":"Цвет блока","enumNames":["Основная","Второстепенная","Второстепенная прозрачная"]},"TextBlockIconVersion":{"type":"string","enum":["none","small","big"],"title":"Размер иконки","enumNames":["Нет","Маленькая","Большая"]},"TextBlockContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"isDotted":{"type":"boolean","title":"Буллиты"},"items":{"type":"array","items":{"type":"string"},"title":"Список (моб.)"},"iconVersion":{"$ref":"#/definitions/TextBlockIconVersion"},"blockVersion":{"$ref":"#/definitions/TextBlockVersion"}},"title":"Текстовый блок"},"TileContent":{"type":"object","properties":{"headingType":{"$ref":"#/definitions/HeadingType"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"items":{"type":"array","items":{"type":"string"},"title":"Список"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Плитка"},"LinkListContent":{"type":"object","properties":{"documents":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Список"}},"title":"Список документов"},"AccordionItemCommonProps":{"type":"object","properties":{"label":{"type":"string","title":"Название","default":"Список"},"isExpanded":{"type":"boolean","title":"Отображать в раскрытом виде"},"blocks":{"type":"array","items":{"$ref":"#/definitions/BlockDef"},"title":"Блоки"},"bordered":{"type":"boolean","title":"Отображать/скрывать обводку элемента","default":false},"labelIcon":{"$ref":"#/definitions/Picture"}},"title":"Элемент списка"},"BlockDef":{"anyOf":[{"$ref":"#/definitions/EmptyOption"},{"$ref":"#/definitions/HeadlineBlockListDef"},{"$ref":"#/definitions/LinkDocsBlockListDef"},{"$ref":"#/definitions/TextBlockBlockListDef"},{"$ref":"#/definitions/PictureTextBlockListDef"},{"$ref":"#/definitions/ProductBlockBlockListDef"},{"$ref":"#/definitions/TileBlockListDef"},{"$ref":"#/definitions/ProductTileBlockListDef"},{"$ref":"#/definitions/GalleryBlockListDef"},{"$ref":"#/definitions/MiniGalleryBlockListDef"},{"$ref":"#/definitions/LinkListBlockListDef"}],"title":"Содержимое блока"},"EmptyOption":{"type":"null","title":"Выберите блок"},"HeadlineBlockListDef":{"type":"object","properties":{"blockListType":{"type":"string","const":"Headline"},"bgColorHeadline":{"$ref":"#/definitions/BlockVersionWithTransparent"},"title":{"type":"string","title":"Заголовок"},"align":{"$ref":"#/definitions/AlignType"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"}},"required":["blockListType"],"title":"Заголовок","default":{"blockListType":"Headline"}},"LinkDocsBlockListDef":{"type":"object","properties":{"blockListType":{"type":"string","const":"LinkDocs"},"title":{"type":"string","title":"Заголовок"},"subtitle":{"type":"string","title":"Описание"},"align":{"$ref":"#/definitions/AlignType"},"orientation":{"$ref":"#/definitions/ListOrientation","title":"Отображать элементы в моб. версии (прокрутка shift+mouseScroll)"},"columnsMode":{"$ref":"#/definitions/LinkColumnsMode"},"hasBorder":{"type":"boolean","title":"Рамка элементов (моб.)"},"icon":{"$ref":"#/definitions/Picture","title":"Название иконки"},"documents":{"type":"array","items":{"$ref":"#/definitions/LinkDocsItem"},"title":"Список"}},"required":["blockListType"],"title":"Список документов","default":{"blockListType":"LinkDocs"}},"TextBlockBlockListDef":{"type":"object","properties":{"blockListType":{"type":"string","const":"TextBlock"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"isDotted":{"type":"boolean","title":"Буллиты"},"items":{"type":"array","items":{"type":"string"},"title":"Список (моб.)"},"iconVersion":{"$ref":"#/definitions/TextBlockIconVersion"},"blockVersion":{"$ref":"#/definitions/TextBlockVersion"}},"required":["blockListType"],"title":"Текстовый блок","default":{"blockListType":"TextBlock"}},"PictureTextBlockListDef":{"type":"object","properties":{"blockListType":{"type":"string","const":"PictureText"},"directionRight":{"type":"boolean","title":"Картинка справа/текст слева","default":false},"title":{"type":"string","title":"Заголовок"},"image":{"$ref":"#/definitions/Picture"},"benefits":{"type":"array","items":{"$ref":"#/definitions/Benefit"},"title":"Список преимуществ"},"version":{"$ref":"#/definitions/BlockVersion"}},"required":["blockListType"],"title":"Картинка с текстом","default":{"blockListType":"PictureText"}},"ProductBlockBlockListDef":{"type":"object","properties":{"blockListType":{"type":"string","const":"ProductBlock"},"label":{"type":"string","title":"Лейбл (моб.)"},"headingType":{"$ref":"#/definitions/HeadingType"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"backwardButton":{"$ref":"#/definitions/ButtonWithIconProps","title":"Кнопка возврата"},"breadcrumbs":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Хлебные крошки"},"benefits":{"type":"array","items":{"$ref":"#/definitions/Benefit"},"title":"Преимущества","minItems":2,"maxItems":3},"benefitsVersion":{"$ref":"#/definitions/IconVersion"},"isDotted":{"type":"boolean","title":"Буллиты","default":true},"items":{"type":"array","items":{"type":"string"},"title":"Список"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"required":["blockListType"],"title":"Продуктовый блок","default":{"blockListType":"ProductBlock"}},"TileBlockListDef":{"type":"object","properties":{"blockListType":{"type":"string","const":"Tile"},"headingType":{"$ref":"#/definitions/HeadingType"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"items":{"type":"array","items":{"type":"string"},"title":"Список"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"required":["blockListType"],"title":"Плитка","default":{"blockListType":"Tile"}},"ProductTileBlockListDef":{"type":"object","properties":{"blockListType":{"type":"string","const":"ProductTile"},"headingType":{"$ref":"#/definitions/HeadingType"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"benefits":{"type":"array","items":{"$ref":"#/definitions/TextBenefit"},"title":"Преимущества","maxItems":7},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"required":["blockListType"],"title":"Продуктовая плитка","default":{"blockListType":"ProductTile"}},"GalleryBlockListDef":{"type":"object","properties":{"blockListType":{"type":"string","const":"Gallery"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"orientation":{"$ref":"#/definitions/ListOrientation","title":"Отображать элементы в моб. версии (прокрутка shift+mouseScroll)"},"cards":{"type":"array","items":{"$ref":"#/definitions/GalleryCard"},"title":"Карточки","minItems":3}},"required":["blockListType"],"title":"Галлерея","default":{"blockListType":"Gallery"}},"MiniGalleryBlockListDef":{"type":"object","properties":{"blockListType":{"type":"string","const":"MiniGallery"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"orientation":{"$ref":"#/definitions/ListOrientation","title":"Отображать элементы в моб. версии (прокрутка shift+mouseScroll)"},"cards":{"type":"array","items":{"$ref":"#/definitions/GalleryCard"},"title":"Карточки","minItems":3}},"required":["blockListType"],"title":"Мини-галлерея","default":{"blockListType":"MiniGallery"}},"LinkListBlockListDef":{"type":"object","properties":{"blockListType":{"type":"string","const":"LinkList"},"documents":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Список"}},"required":["blockListType"],"title":"Список ссылок","default":{"blockListType":"LinkList"}},"AccordionContent":{"type":"object","properties":{"bordered":{"type":"boolean","title":"Отображать/скрывать обводку у элемента списка","default":false},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"accordionItems":{"type":"array","items":{"$ref":"#/definitions/AccordionItemCommonProps"},"title":"Список"},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Аккордеон"},"BonusContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"bonusItems":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","title":"Бонусы"},"description":{"type":"string","title":"Описание плитки"},"bonusCount":{"type":"number","title":"Количество баллов"},"bonusName":{"type":"string","title":"Наименование"}},"title":"Плитка"},"title":"Список плиток"}},"title":"Блок Бонусы"},"CellData":{"type":"object","properties":{"label":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"}},"title":"Ячейка"},"ColumnHeader":{"type":"object","properties":{"link":{"$ref":"#/definitions/LinkProps"},"title":{"type":"string","title":"Заголовок"},"subtitle":{"type":"string","title":"Подзаголовок"},"image":{"$ref":"#/definitions/Picture"},"icon":{"$ref":"#/definitions/Picture"}},"title":"Шапка колонки"},"Column":{"type":"object","properties":{"header":{"$ref":"#/definitions/ColumnHeader"},"data":{"type":"array","items":{"type":"array","items":{"$ref":"#/definitions/CellData"}},"title":"Данные"}},"title":"Продукт"},"RowHeader":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"}},"title":"Параметр"},"TableColumnData":{"type":"object","properties":{"rowHeader":{"type":"string"},"cell":{"type":"array","items":{"$ref":"#/definitions/CellData"}}},"required":["cell"],"title":"Ячейка"},"TableColumnHeader":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"icon":{"$ref":"#/definitions/Picture"}},"title":"Параметр"},"ComparisonTableContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"columns":{"type":"array","items":{"$ref":"#/definitions/Column"},"title":"Продукты"},"orientation":{"$ref":"#/definitions/ListOrientation","title":"Отображать элементы в моб. версии (прокрутка shift+mouseScroll)"},"rowHeaders":{"type":"array","items":{"$ref":"#/definitions/RowHeader"},"title":"Параметры"},"isColoredFirstColumn":{"type":"boolean","title":"Закрасить первую колонку"},"visibleRowLength":{"type":"number","title":"Отображать заданное количество строк"}},"title":"Сравнительная таблица"},"ExchangeRateTileContent":{"$ref":"#/definitions/HeadingContent","title":"Курсы валют"},"ExchangeCurrencyItem":{"type":"object","properties":{"buyExchangeRate":{"type":"number"},"saleExchangeRate":{"type":"number"},"currency":{"type":"object","properties":{"id":{"type":"number"},"code":{"type":"string"},"currency":{"type":"string"},"name":{"type":"string"}}}}},"ContactType":{"type":"string","enum":["tel","email"],"title":"Тип контакта","enumNames":["Телефон","Почта"]},"ContactInfo":{"type":"object","properties":{"type":{"$ref":"#/definitions/ContactType"},"description":{"type":"string","title":"Описание"},"text":{"type":"string","title":"Текст"}},"title":"Контакт"},"SocialMedia":{"type":"object","properties":{"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}},"required":["href"]},"SubMenuItem":{"type":"object","properties":{"icon":{"$ref":"#/definitions/Picture"},"text":{"type":"string","title":"Текст"},"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}},"title":"Пункт подменю"},"FooterContent":{"type":"object","properties":{"topItems":{"type":"array","items":{"$ref":"#/definitions/TopMenuItem"},"title":"Основное меню"},"dispositions":{"type":"array","items":{"$ref":"#/definitions/DispositionItem"},"title":"Дополнительное меню"},"relatedEnterprises":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Другие предприятия"},"contacts":{"type":"array","items":{"$ref":"#/definitions/ContactInfo"},"title":"Контакты"},"mobileApps":{"type":"array","items":{"$ref":"#/definitions/SocialMedia"},"title":"Мобильные приложения"},"horizontalNavigationTitle":{"type":"string","title":"Заголовок для меню"},"subMenu":{"type":"array","items":{"$ref":"#/definitions/SubMenuItem"},"title":"Подменю"},"socialMedia":{"type":"array","items":{"$ref":"#/definitions/SocialMedia"},"title":"Социальные сети"},"documents":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Обязательные документы"}},"title":"Подвал","required":["topItems"]},"SitemapProps":{"type":"object","properties":{"topItems":{"type":"array","items":{"$ref":"#/definitions/TopMenuItem"},"title":"Основное меню"},"dispositions":{"type":"array","items":{"$ref":"#/definitions/DispositionItem"},"title":"Дополнительное меню"}}},"TopMenuItem":{"type":"object","properties":{"text":{"type":"string","title":"Текст"},"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}},"title":"Ссылка","required":["text","href"]},"DispositionItem":{"type":"object","properties":{"text":{"type":"string","title":"Текст"},"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}},"title":"Ссылка дополнительного меню","required":["text","href"]},"GracePeriodContent":{"type":"object","properties":{"calendar":{"type":"array","items":{"type":"object","properties":{"month":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","title":"Название месяца"},"image":{"$ref":"#/definitions/Picture","title":"Изображение календарного месяца","default":{"format":"webp","size":{"width":210,"height":190}}}}},"title":"Месяц"},"blackText":{"type":"string","title":"Основной текст"},"greenText":{"type":"string","title":"Вспомогательный текст"}}},"title":"Календарь"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"}},"title":"Льготный период"},"HeaderContent":{"type":"object","properties":{"topItems":{"type":"array","items":{"$ref":"#/definitions/TopMenuItem"},"title":"Основное меню"},"dispositions":{"type":"array","items":{"$ref":"#/definitions/DispositionItem"},"title":"Дополнительное меню"},"defaultLocation":{"type":"string","title":"Город по-умолчанию","default":"Москва"}},"title":"Шапка (для мобильных горизонтальная прокрутка shift+mouseScroll)","required":["defaultLocation","topItems"]},"QRCode":{"type":"object","properties":{"src":{"type":"string","title":"QR код"},"href":{"type":"string","title":"Ссылка"}},"title":"QR код"},"MobileAppTileContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"qr":{"$ref":"#/definitions/QRCode"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"href":{"type":"string","title":"Ссылка"}},"title":"Мобильное приложение"},"NavigationContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonProps"},"title":"Список ссылок"}},"title":"Навигация"},"NavigatorTabsContent":{"type":"object","properties":{"navigatorTabs":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Список табов","minItems":3}},"title":"Блок табов"},"ProductSlide":{"type":"object","properties":{"nav":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"}},"required":["title","description"],"title":"Превью содержимого слайда на навигации"},"productBlock":{"$ref":"#/definitions/ProductBlockInnerContent","title":"Содержимое слайда"}},"required":["productBlock"],"title":"Слайд"},"ProductGalleryContent":{"type":"object","properties":{"slides":{"type":"array","items":{"$ref":"#/definitions/ProductSlide"},"title":"Слайды","minItems":2}},"title":"Продуктовая галерея (для мобильных горизонтальная прокрутка shift+mouseScroll)"},"PromoTileContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"date":{"type":"string","title":"Дата публикации"},"description":{"type":"string","title":"Описание"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Акции"},"Step":{"type":"object","properties":{"label":{"type":"string","title":"Название"},"button":{"$ref":"#/definitions/ButtonProps"},"description":{"type":"string","title":"Описание"},"icon":{"$ref":"#/definitions/Picture"}},"title":"Шаг"},"StepsBlockContent":{"type":"object","properties":{"showLines":{"type":"boolean","title":"Линии"},"button":{"$ref":"#/definitions/ButtonProps"},"size":{"$ref":"#/definitions/SizeVersion","title":"Размер шагов (моб.)"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"steps":{"type":"array","items":{"$ref":"#/definitions/Step"},"title":"Шаги","minItems":2,"maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Блок шаги"},"SizeVersion":{"type":"string","enum":["normal","small"],"title":"Размер","enumNames":["Обычный","Уменьшенный"]},"TariffsTableRowData":{"type":"object","properties":{"header":{"$ref":"#/definitions/TariffsTableRowHeader"},"data":{"type":"array","items":{"type":"array","items":{"$ref":"#/definitions/TariffsTableCellData"}}}},"required":["header","data"],"title":"Ряд"},"TariffsTableRowHeader":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"icon":{"$ref":"#/definitions/Picture"}},"title":"Параметр"},"TariffsTableCellData":{"type":"object","properties":{"list":{"$ref":"#/definitions/TariffsTableList"},"label":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4}},"title":"Ячейка"},"TariffsTableList":{"type":"object","properties":{"isDotted":{"type":"boolean","title":"Маркеры"},"items":{"type":"array","items":{"type":"string"},"title":"Список"}},"title":"Список"},"TariffsTableColumn":{"type":"object","properties":{"data":{"type":"array","items":{"type":"array","items":{"$ref":"#/definitions/TariffsTableCellData"}},"title":"Данные"}},"title":"Колонка"},"TariffsTableContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"columns":{"type":"array","items":{"$ref":"#/definitions/TariffsTableColumn"},"title":"Колонки"},"description":{"type":"string","title":"Описание"},"orientation":{"$ref":"#/definitions/ListOrientation","title":"Отображать элементы в моб. версии (прокрутка shift+mouseScroll)"},"rowHeaders":{"type":"array","items":{"$ref":"#/definitions/TariffsTableRowHeader"},"title":"Параметры"}},"title":"Таблица тарифов"},"CalculatorParams":{"type":"object","properties":{"isAnnuity":{"type":"boolean"},"minSum":{"type":"number"},"maxSum":{"type":"number"},"minMonths":{"type":"number"},"maxMonths":{"type":"number"},"rateWithInsurance":{"type":"number"},"rateWithoutInsurance":{"type":"number"}}},"CreditCalculatorData":{"type":"object","properties":{"rows":{"type":"array","items":{"$ref":"#/definitions/CalculatorParams"}}}},"CreditCalculatorTab":{"type":"object","properties":{"directoryName":{"type":"string","title":"Справочник"},"title":{"type":"string","title":"Имя вкладки"},"description":{"type":"string","title":"Описание"},"icon":{"$ref":"#/definitions/Picture"}},"title":"Вкладка"},"Tab":{"type":"object","properties":{"title":{"type":"string","title":"Имя вкладки"},"description":{"type":"string","title":"Описание"},"icon":{"$ref":"#/definitions/Picture"}},"title":"Вкладка"},"CreditCalculatorContent":{"type":"object","properties":{"tabs":{"type":"array","items":{"$ref":"#/definitions/CreditCalculatorTab"},"title":"Вкладки"}},"title":"Кредитный калькулятор"},"BlockItemCommonProps":{"type":"object","properties":{"label":{"type":"string","title":"Название","default":"Список"},"isExpanded":{"type":"boolean","title":"Отображать в раскрытом виде"},"blocks":{"type":"array","items":{"$ref":"#/definitions/BlockDef"},"title":"Блоки"},"columns":{"$ref":"#/definitions/ColumnsCount"}},"title":"Элемент списка"},"ColumnsCount":{"type":"number","enum":[1,2],"title":"Количество колонок","enumNames":["1 колонка","2 колонки"]},"OtherProductsContent":{"type":"object","properties":{"blockItems":{"type":"array","items":{"$ref":"#/definitions/BlockItemCommonProps"},"title":"Список","maxItems":10},"colorPalette":{"$ref":"#/definitions/ColorPalette"},"title":{"type":"string","title":"Заголовок"}},"title":"Другие продукты"},"ColorPalette":{"type":"string","enum":["","pc","bc","eo"],"title":"Цветовая палитра","enumNames":["","Частным клиентам","Бизнес клиентам","Экосистема Своё"]},"ProductGalleryGreenContent":{"type":"object","properties":{"slides":{"type":"array","items":{"$ref":"#/definitions/ProductSlide"},"title":"Слайды"},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Продуктовая галерея"},"RecommendationCardTypes":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"items":{"type":"array","items":{"type":"string"},"title":"Список"},"socialMedia":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Соц сети","minItems":3}}},"RecommendationContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"recommendations":{"type":"array","items":{"$ref":"#/definitions/RecommendationCardTypes"},"title":"Карточки"},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Рекомендации"}}}
|
|
1
|
+
{"$schema":"http://json-schema.org/draft-07/schema#","definitions":{"GalleryItem":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок (моб.)"},"text":{"type":"string","title":"Текст"}},"title":"Элемент списка"},"GalleryCard":{"type":"object","properties":{"button":{"$ref":"#/definitions/ButtonWithIconProps","title":"Кнопка"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture","default":{"format":"webp","size":{"width":140,"height":140}}},"isDotted":{"type":"boolean","title":"Буллиты","default":true},"items":{"type":"array","items":{"$ref":"#/definitions/GalleryItem"},"title":"Список"},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Карточка"},"Picture":{"type":"object","properties":{"src":{"type":"string","title":"Картинка"},"format":{"type":"string","enum":["jpeg","jpg","png","gif","webp","heif","avif"],"title":"Формат"},"size":{"type":"object","properties":{"width":{"type":"number","title":"Ширина"},"height":{"type":"number","title":"Высота"}},"title":"Размер изображения"},"alt":{"type":"string","title":"Альтернативный текст (alt)"},"sources":{"type":"array","items":{"$ref":"#/definitions/ImgSource"},"title":"Другие форматы"},"className":{"type":"string"},"title":{"type":"string","title":"Текст подсказки (title)"},"icon":{"$ref":"#/definitions/IconName","title":"Иконка"}},"title":"Изображение"},"Img":{"type":"object","properties":{"src":{"type":"string","title":"Картинка"},"alt":{"type":"string","title":"Альтернативный текст (alt)"},"title":{"type":"string","title":"Текст подсказки (title)"}}},"ImgSource":{"type":"object","properties":{"src":{"type":"string","title":"Картинка"},"format":{"type":"string","enum":["jpeg","jpg","png","gif","webp","heif","avif"],"title":"Формат"},"size":{"type":"object","properties":{"width":{"type":"number","title":"Ширина"},"height":{"type":"number","title":"Высота"}},"title":"Размер изображения"},"icon":{"$ref":"#/definitions/IconName","title":"Иконка"}}},"IconName":{"type":"string","enum":["","ActualBalanceIcon","AppleIcon","ArrowDownIcon","ArrowLeftIcon","ArrowsRewindRight","ArrowUpIcon","AtmIcon","BankIcon","BurgerIcon","BurgerIconWhite","Calendar2Icon","CalendarCircleIcon","CalendarIcon","CalendarTickIcon","CalendarWhiteIcon","CardIcon","CardPosIcon","CardTickIcon","CardWithGemIcon","ChartSquareIcon","ClockIcon","CloseIcon","ComfortableCompIcon","CreditCardsIcon","DiscountShapeIcon","DocIcon","DocIconMonoColor","DocumentTextIcon","DollarIcon","EarthIcon","EmptyWalletChangeIcon","EmptyWalletIcon","EmptyWalletWhiteIcon","EuroIcon","GeolocationIcon","GlassIcon","GlobalIcon","GpsIcon","GridIcon","GridIconWhite","InterestGrowthIcon","InterestIcon","JCBIcon","LoupeIcon","MasterCardIcon","MinusIcon","MirIcon","MoneyIcon","MoneyInsuranceIcon","MonitorMobileIcon","NewDocIcon","OfficeIcon","OkIcon","PassSendIcon","PercentageRoundIcon","PercentageSquareIcon","PercentageSquareWhiteIcon","PersonalCardIcon","PlayMarketIcon","PlusIcon","Profile2UserIcon","ProfileIcon","RoundRubleIcon","SafeIcon","ShieldTickIcon","SignDocsIcon","SmallClockIcon","TelegramIcon","UnionPayIcon","UserTickIcon","VisaIcon","VKIcon","WalletAdd2Icon","WalletAddIcon","WalletIcon","WalletWithMoneyIcon"],"title":"Иконка","enumNames":["","Деньги","Лого «Apple»","Стрелка 'Вниз'","Стрелка","ArrowsRewindRight","ArrowUpIcon","Банкомат","Банк","Бургер","Бургер (белый)","Календарь 2","Скруглённый календарь","Календарь","Календарь с галочкой","Календарь белый","Кред. карта","Кред. карта под наклоном","Кред. карта с галочкой","Карта с драгоценностями","Деньги внутри кошелька","Часы","Крестик","Кресло","Кредитные карты","Скидка","Документ","Документ (одноцветный)","Документ с текстом","Доллар","Земля","Пустой кошелёк с возвратом","Пустой кошелёк","Пустой кошелёк (белый)","Евро","Геолокация","Зеркало","Глобус","Gps","Сетка","Сетка (белая)","Диаграмма роста","Скидка","JCB","Лупа","MasterCard","Минус","МИР","Деньги","Денежное страхование","Монитор и мобильный","Новый документ","Офис","Лого «Одноклассники»","Бизнес","Проценты (круг.)","Проценты","Проценты белые","Персональная карта","Лого «PlayMarket»","Плюс","Профиль, 2 персоны","Профиль","Рубль (круг.)","Сейф","Безопасность","Подписанные документы","Маленькие часы","Лого «Telegram»","UnionPay","Пользователь","Visa","Лого «VK»","Пополнение карты","Кошелёк с плюсом","Кошелёк","Кошелёк с деньгами"]},"ButtonWithIconProps":{"type":"object","properties":{"rounded":{"type":"boolean","title":"Закругленные углы"},"version":{"$ref":"#/definitions/ButtonVersion"},"aboveText":{"type":"string","title":"Верхний текст"},"icon":{"$ref":"#/definitions/Picture","title":"Иконка"},"text":{"type":"string","title":"Текст","default":"Кнопка"},"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}}},"ButtonProps":{"type":"object","properties":{"version":{"$ref":"#/definitions/ButtonVersion"},"text":{"type":"string","title":"Текст","default":"Кнопка"},"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}}},"LinkProps":{"type":"object","properties":{"text":{"type":"string","title":"Текст"},"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}},"title":"Ссылка","required":["text","href"]},"Target":{"type":"string","enum":["","_self","_blank","_parent","_top"],"title":"Таргет (target)","enumNames":["","self (текущее окно или фрейм)","blank (новое окно)","parent (фрейм-родитель)","top (текущее окно)"]},"ButtonVersion":{"type":"string","enum":["primary","secondary","link"],"title":"Цвет кнопки","default":"primary","enumNames":["Основная","Второстепенная"]},"BlockVersion":{"type":"string","enum":["primary","secondary"],"title":"Цвет блока","enumNames":["Основная","Второстепенная"]},"GalleryContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"orientation":{"$ref":"#/definitions/ListOrientation","title":"Отображать элементы в моб. версии (прокрутка shift+mouseScroll)"},"cards":{"type":"array","items":{"$ref":"#/definitions/GalleryCard"},"title":"Карточки","minItems":3}},"title":"Галерея"},"ListOrientation":{"type":"string","enum":["vertical","horizontal"],"title":"Направление списка","enumNames":["Вертикально","Горизонтально"]},"DescriptionContent":{"type":"object","properties":{"description":{"type":"string","title":"Описание"}}},"HeadingType":{"type":"string","enum":["h1","h2","h3","h4","h5","h6"],"title":"Тип заголовка","enumNames":["h1","h2","h3","h4","h5","h6"]},"HeadingTypeContent":{"type":"object","properties":{"headingType":{"$ref":"#/definitions/HeadingType"}}},"HeadingContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"}}},"HeadlineContent":{"type":"object","properties":{"bgColorHeadline":{"$ref":"#/definitions/BlockVersionWithTransparent"},"title":{"type":"string","title":"Заголовок"},"align":{"$ref":"#/definitions/AlignType"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"}},"title":"Заголовок"},"ImageContent":{"type":"object","properties":{"image":{"$ref":"#/definitions/Picture"}}},"AlignType":{"type":"string","enum":["left","center","right"],"title":"Выравнивание","enumNames":["По левому краю","По центру","По правому краю"]},"BlockVersionWithTransparent":{"type":"string","enum":["transparent","primary","secondary"],"title":"Цвет блока","enumNames":["Прозрачная","Основная","Второстепенная"]},"LinkColumnsMode":{"type":"string","enum":["single","double"],"title":"Отображение списка","enumNames":["Одна колонка","Две колонки"]},"LinkDocsItem":{"type":"object","properties":{"text":{"type":"string","title":"Текст"},"fileSize":{"type":"string","title":"размер файла"},"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}},"title":"Элемент списка"},"LinkDocsContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"subtitle":{"type":"string","title":"Описание"},"align":{"$ref":"#/definitions/AlignType"},"orientation":{"$ref":"#/definitions/ListOrientation","title":"Отображать элементы в моб. версии (прокрутка shift+mouseScroll)"},"columnsMode":{"$ref":"#/definitions/LinkColumnsMode"},"hasBorder":{"type":"boolean","title":"Рамка элементов (моб.)"},"icon":{"$ref":"#/definitions/Picture","title":"Название иконки"},"documents":{"type":"array","items":{"$ref":"#/definitions/LinkDocsItem"},"title":"Список"}},"title":"Список документов"},"MiniGalleryContent":{"$ref":"#/definitions/GalleryContent","title":"Мини-галерея","minItems":4},"TextBenefit":{"type":"object","properties":{"label":{"type":"string","title":"Название"},"description":{"type":"string","title":"Описание"}}},"Benefit":{"type":"object","properties":{"label":{"type":"string","title":"Название"},"description":{"type":"string","title":"Описание"},"icon":{"$ref":"#/definitions/Picture"}},"title":"Преимущество"},"BenefitsBlockContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"benefits":{"type":"array","items":{"$ref":"#/definitions/Benefit"},"title":"Список преимуществ","maxItems":6}},"title":"Блок преимущества"},"TitleWithImageContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"image":{"$ref":"#/definitions/Picture"}}},"PictureTextContent":{"type":"object","properties":{"directionRight":{"type":"boolean","title":"Картинка справа/текст слева","default":false},"title":{"type":"string","title":"Заголовок"},"image":{"$ref":"#/definitions/Picture"},"benefits":{"type":"array","items":{"$ref":"#/definitions/Benefit"},"title":"Список преимуществ"},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Картинка с текстом"},"ListContent":{"type":"object","properties":{"items":{"type":"array","items":{"type":"string"},"title":"Список"}}},"BenefitItemProps":{"type":"object","properties":{"benefit":{"$ref":"#/definitions/Benefit"},"benefitsVersion":{"$ref":"#/definitions/IconVersion"},"version":{"$ref":"#/definitions/BlockVersion"}},"required":["benefit"]},"IconVersion":{"type":"string","enum":["normal","white"]},"ProductBlockInnerContent":{"type":"object","properties":{"label":{"type":"string","title":"Лейбл (моб.)"},"headingType":{"$ref":"#/definitions/HeadingType"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"benefits":{"type":"array","items":{"$ref":"#/definitions/Benefit"},"title":"Преимущества","minItems":2,"maxItems":3},"benefitsVersion":{"$ref":"#/definitions/IconVersion"},"isDotted":{"type":"boolean","title":"Буллиты","default":true},"items":{"type":"array","items":{"type":"string"},"title":"Список"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}}},"ButtonContent":{"type":"object","properties":{"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4}}},"ProductBlockContent":{"type":"object","properties":{"label":{"type":"string","title":"Лейбл (моб.)"},"headingType":{"$ref":"#/definitions/HeadingType"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"backwardButton":{"$ref":"#/definitions/ButtonWithIconProps","title":"Кнопка возврата"},"breadcrumbs":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Хлебные крошки"},"benefits":{"type":"array","items":{"$ref":"#/definitions/Benefit"},"title":"Преимущества","minItems":2,"maxItems":3},"benefitsVersion":{"$ref":"#/definitions/IconVersion"},"isDotted":{"type":"boolean","title":"Буллиты","default":true},"items":{"type":"array","items":{"type":"string"},"title":"Список"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Продуктовый блок"},"ProductTileContent":{"type":"object","properties":{"headingType":{"$ref":"#/definitions/HeadingType"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"benefits":{"type":"array","items":{"$ref":"#/definitions/TextBenefit"},"title":"Преимущества","maxItems":7},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Продуктовая плитка"},"TextBlockVersion":{"type":"string","enum":["primary","secondary","secondary-light"],"title":"Цвет блока","enumNames":["Основная","Второстепенная","Второстепенная прозрачная"]},"TextBlockIconVersion":{"type":"string","enum":["none","small","big"],"title":"Размер иконки","enumNames":["Нет","Маленькая","Большая"]},"TextBlockContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"isDotted":{"type":"boolean","title":"Буллиты"},"items":{"type":"array","items":{"type":"string"},"title":"Список (моб.)"},"iconVersion":{"$ref":"#/definitions/TextBlockIconVersion"},"blockVersion":{"$ref":"#/definitions/TextBlockVersion"}},"title":"Текстовый блок"},"TileContent":{"type":"object","properties":{"headingType":{"$ref":"#/definitions/HeadingType"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"items":{"type":"array","items":{"type":"string"},"title":"Список"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Плитка"},"LinkListContent":{"type":"object","properties":{"documents":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Список"}},"title":"Список документов"},"AccordionItemCommonProps":{"type":"object","properties":{"label":{"type":"string","title":"Название","default":"Список"},"isExpanded":{"type":"boolean","title":"Отображать в раскрытом виде"},"blocks":{"type":"array","items":{"$ref":"#/definitions/BlockDef"},"title":"Блоки"},"bordered":{"type":"boolean","title":"Отображать/скрывать обводку элемента","default":false},"labelIcon":{"$ref":"#/definitions/Picture"}},"title":"Элемент списка"},"BlockDef":{"anyOf":[{"$ref":"#/definitions/EmptyOption"},{"$ref":"#/definitions/HeadlineBlockListDef"},{"$ref":"#/definitions/LinkDocsBlockListDef"},{"$ref":"#/definitions/TextBlockBlockListDef"},{"$ref":"#/definitions/PictureTextBlockListDef"},{"$ref":"#/definitions/ProductBlockBlockListDef"},{"$ref":"#/definitions/TileBlockListDef"},{"$ref":"#/definitions/ProductTileBlockListDef"},{"$ref":"#/definitions/GalleryBlockListDef"},{"$ref":"#/definitions/MiniGalleryBlockListDef"},{"$ref":"#/definitions/LinkListBlockListDef"}],"title":"Содержимое блока"},"EmptyOption":{"type":"null","title":"Выберите блок"},"HeadlineBlockListDef":{"type":"object","properties":{"blockListType":{"type":"string","const":"Headline"},"bgColorHeadline":{"$ref":"#/definitions/BlockVersionWithTransparent"},"title":{"type":"string","title":"Заголовок"},"align":{"$ref":"#/definitions/AlignType"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"}},"required":["blockListType"],"title":"Заголовок","default":{"blockListType":"Headline"}},"LinkDocsBlockListDef":{"type":"object","properties":{"blockListType":{"type":"string","const":"LinkDocs"},"title":{"type":"string","title":"Заголовок"},"subtitle":{"type":"string","title":"Описание"},"align":{"$ref":"#/definitions/AlignType"},"orientation":{"$ref":"#/definitions/ListOrientation","title":"Отображать элементы в моб. версии (прокрутка shift+mouseScroll)"},"columnsMode":{"$ref":"#/definitions/LinkColumnsMode"},"hasBorder":{"type":"boolean","title":"Рамка элементов (моб.)"},"icon":{"$ref":"#/definitions/Picture","title":"Название иконки"},"documents":{"type":"array","items":{"$ref":"#/definitions/LinkDocsItem"},"title":"Список"}},"required":["blockListType"],"title":"Список документов","default":{"blockListType":"LinkDocs"}},"TextBlockBlockListDef":{"type":"object","properties":{"blockListType":{"type":"string","const":"TextBlock"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"isDotted":{"type":"boolean","title":"Буллиты"},"items":{"type":"array","items":{"type":"string"},"title":"Список (моб.)"},"iconVersion":{"$ref":"#/definitions/TextBlockIconVersion"},"blockVersion":{"$ref":"#/definitions/TextBlockVersion"}},"required":["blockListType"],"title":"Текстовый блок","default":{"blockListType":"TextBlock"}},"PictureTextBlockListDef":{"type":"object","properties":{"blockListType":{"type":"string","const":"PictureText"},"directionRight":{"type":"boolean","title":"Картинка справа/текст слева","default":false},"title":{"type":"string","title":"Заголовок"},"image":{"$ref":"#/definitions/Picture"},"benefits":{"type":"array","items":{"$ref":"#/definitions/Benefit"},"title":"Список преимуществ"},"version":{"$ref":"#/definitions/BlockVersion"}},"required":["blockListType"],"title":"Картинка с текстом","default":{"blockListType":"PictureText"}},"ProductBlockBlockListDef":{"type":"object","properties":{"blockListType":{"type":"string","const":"ProductBlock"},"label":{"type":"string","title":"Лейбл (моб.)"},"headingType":{"$ref":"#/definitions/HeadingType"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"backwardButton":{"$ref":"#/definitions/ButtonWithIconProps","title":"Кнопка возврата"},"breadcrumbs":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Хлебные крошки"},"benefits":{"type":"array","items":{"$ref":"#/definitions/Benefit"},"title":"Преимущества","minItems":2,"maxItems":3},"benefitsVersion":{"$ref":"#/definitions/IconVersion"},"isDotted":{"type":"boolean","title":"Буллиты","default":true},"items":{"type":"array","items":{"type":"string"},"title":"Список"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"required":["blockListType"],"title":"Продуктовый блок","default":{"blockListType":"ProductBlock"}},"TileBlockListDef":{"type":"object","properties":{"blockListType":{"type":"string","const":"Tile"},"headingType":{"$ref":"#/definitions/HeadingType"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"items":{"type":"array","items":{"type":"string"},"title":"Список"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"required":["blockListType"],"title":"Плитка","default":{"blockListType":"Tile"}},"ProductTileBlockListDef":{"type":"object","properties":{"blockListType":{"type":"string","const":"ProductTile"},"headingType":{"$ref":"#/definitions/HeadingType"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"benefits":{"type":"array","items":{"$ref":"#/definitions/TextBenefit"},"title":"Преимущества","maxItems":7},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"required":["blockListType"],"title":"Продуктовая плитка","default":{"blockListType":"ProductTile"}},"GalleryBlockListDef":{"type":"object","properties":{"blockListType":{"type":"string","const":"Gallery"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"orientation":{"$ref":"#/definitions/ListOrientation","title":"Отображать элементы в моб. версии (прокрутка shift+mouseScroll)"},"cards":{"type":"array","items":{"$ref":"#/definitions/GalleryCard"},"title":"Карточки","minItems":3}},"required":["blockListType"],"title":"Галлерея","default":{"blockListType":"Gallery"}},"MiniGalleryBlockListDef":{"type":"object","properties":{"blockListType":{"type":"string","const":"MiniGallery"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"orientation":{"$ref":"#/definitions/ListOrientation","title":"Отображать элементы в моб. версии (прокрутка shift+mouseScroll)"},"cards":{"type":"array","items":{"$ref":"#/definitions/GalleryCard"},"title":"Карточки","minItems":3}},"required":["blockListType"],"title":"Мини-галлерея","default":{"blockListType":"MiniGallery"}},"LinkListBlockListDef":{"type":"object","properties":{"blockListType":{"type":"string","const":"LinkList"},"documents":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Список"}},"required":["blockListType"],"title":"Список ссылок","default":{"blockListType":"LinkList"}},"AccordionContent":{"type":"object","properties":{"bordered":{"type":"boolean","title":"Отображать/скрывать обводку у элемента списка","default":false},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"accordionItems":{"type":"array","items":{"$ref":"#/definitions/AccordionItemCommonProps"},"title":"Список"},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Аккордеон"},"BonusContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"bonusItems":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","title":"Бонусы"},"description":{"type":"string","title":"Описание плитки"},"bonusCount":{"type":"number","title":"Количество баллов"},"bonusName":{"type":"string","title":"Наименование"}},"title":"Плитка"},"title":"Список плиток"}},"title":"Блок Бонусы"},"CellData":{"type":"object","properties":{"label":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"}},"title":"Ячейка"},"ColumnHeader":{"type":"object","properties":{"link":{"$ref":"#/definitions/LinkProps"},"title":{"type":"string","title":"Заголовок"},"subtitle":{"type":"string","title":"Подзаголовок"},"image":{"$ref":"#/definitions/Picture"},"icon":{"$ref":"#/definitions/Picture"}},"title":"Шапка колонки"},"Column":{"type":"object","properties":{"header":{"$ref":"#/definitions/ColumnHeader"},"data":{"type":"array","items":{"type":"array","items":{"$ref":"#/definitions/CellData"}},"title":"Данные"}},"title":"Продукт"},"RowHeader":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"}},"title":"Параметр"},"TableColumnData":{"type":"object","properties":{"rowHeader":{"type":"string"},"cell":{"type":"array","items":{"$ref":"#/definitions/CellData"}}},"required":["cell"],"title":"Ячейка"},"TableColumnHeader":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"icon":{"$ref":"#/definitions/Picture"}},"title":"Параметр"},"ComparisonTableContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"columns":{"type":"array","items":{"$ref":"#/definitions/Column"},"title":"Продукты"},"orientation":{"$ref":"#/definitions/ListOrientation","title":"Отображать элементы в моб. версии (прокрутка shift+mouseScroll)"},"rowHeaders":{"type":"array","items":{"$ref":"#/definitions/RowHeader"},"title":"Параметры"},"isColoredFirstColumn":{"type":"boolean","title":"Закрасить первую колонку"},"visibleRowLength":{"type":"number","title":"Отображать заданное количество строк"}},"title":"Сравнительная таблица"},"ExchangeRateTileContent":{"$ref":"#/definitions/HeadingContent","title":"Курсы валют"},"ExchangeCurrencyItem":{"type":"object","properties":{"buyExchangeRate":{"type":"number"},"saleExchangeRate":{"type":"number"},"currency":{"type":"object","properties":{"id":{"type":"number"},"code":{"type":"string"},"currency":{"type":"string"},"name":{"type":"string"}}}}},"ContactType":{"type":"string","enum":["tel","email"],"title":"Тип контакта","enumNames":["Телефон","Почта"]},"ContactInfo":{"type":"object","properties":{"type":{"$ref":"#/definitions/ContactType"},"description":{"type":"string","title":"Описание"},"text":{"type":"string","title":"Текст"}},"title":"Контакт"},"SocialMedia":{"type":"object","properties":{"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}},"required":["href"]},"SubMenuItem":{"type":"object","properties":{"icon":{"$ref":"#/definitions/Picture"},"text":{"type":"string","title":"Текст"},"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}},"title":"Пункт подменю"},"FooterContent":{"type":"object","properties":{"topItems":{"type":"array","items":{"$ref":"#/definitions/TopMenuItem"},"title":"Основное меню"},"dispositions":{"type":"array","items":{"$ref":"#/definitions/DispositionItem"},"title":"Дополнительное меню"},"relatedEnterprises":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Другие предприятия"},"contacts":{"type":"array","items":{"$ref":"#/definitions/ContactInfo"},"title":"Контакты"},"mobileApps":{"type":"array","items":{"$ref":"#/definitions/SocialMedia"},"title":"Мобильные приложения"},"horizontalNavigationTitle":{"type":"string","title":"Заголовок для меню"},"subMenu":{"type":"array","items":{"$ref":"#/definitions/SubMenuItem"},"title":"Подменю"},"socialMedia":{"type":"array","items":{"$ref":"#/definitions/SocialMedia"},"title":"Социальные сети"},"documents":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Обязательные документы"}},"title":"Подвал","required":["topItems"]},"SitemapProps":{"type":"object","properties":{"topItems":{"type":"array","items":{"$ref":"#/definitions/TopMenuItem"},"title":"Основное меню"},"dispositions":{"type":"array","items":{"$ref":"#/definitions/DispositionItem"},"title":"Дополнительное меню"}}},"TopMenuItem":{"type":"object","properties":{"text":{"type":"string","title":"Текст"},"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}},"title":"Ссылка","required":["text","href"]},"DispositionItem":{"type":"object","properties":{"text":{"type":"string","title":"Текст"},"href":{"type":"string","title":"URL (href)"},"target":{"$ref":"#/definitions/Target"}},"title":"Ссылка дополнительного меню","required":["text","href"]},"GracePeriodContent":{"type":"object","properties":{"calendar":{"type":"array","items":{"type":"object","properties":{"month":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","title":"Название месяца"},"image":{"$ref":"#/definitions/Picture","title":"Изображение календарного месяца","default":{"format":"webp","size":{"width":210,"height":190}}}}},"title":"Месяц"},"blackText":{"type":"string","title":"Основной текст"},"greenText":{"type":"string","title":"Вспомогательный текст"}}},"title":"Календарь"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"}},"title":"Льготный период"},"GroupBlockTab":{"type":"object","properties":{"tag":{"type":"string","title":"Tег"},"title":{"type":"string","title":"Название"}},"title":"Таб"},"GroupBlockContent":{"type":"object","properties":{"groupBlocks":{"type":"array","items":{"$ref":"#/definitions/GroupBlockDef"},"title":"Блоки"},"tabs":{"type":"array","items":{"$ref":"#/definitions/GroupBlockTab"},"title":"Табы"},"isShowCounter":{"type":"boolean","title":"Показывать счетчик блоков во вкладках"}},"title":"Блок-группировки"},"GroupBlockDef":{"anyOf":[{"$ref":"#/definitions/EmptyOption"},{"$ref":"#/definitions/ProductBlockDef"},{"$ref":"#/definitions/ProductTileDef"}],"title":"Содержимое блока"},"ProductBlockDef":{"type":"object","properties":{"blockType":{"type":"string","const":"ProductBlock"},"style":{"type":"array","items":{"type":"string"},"title":"Стиль"},"tags":{"type":"array","items":{"type":"string"},"title":"Теги"},"label":{"type":"string","title":"Лейбл (моб.)"},"headingType":{"$ref":"#/definitions/HeadingType"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"backwardButton":{"$ref":"#/definitions/ButtonWithIconProps","title":"Кнопка возврата"},"breadcrumbs":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Хлебные крошки"},"benefits":{"type":"array","items":{"$ref":"#/definitions/Benefit"},"title":"Преимущества","minItems":2,"maxItems":3},"benefitsVersion":{"$ref":"#/definitions/IconVersion"},"isDotted":{"type":"boolean","title":"Буллиты","default":true},"items":{"type":"array","items":{"type":"string"},"title":"Список"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"required":["blockType"],"title":"Продуктовый блок","default":{"blockType":"ProductBlock"}},"GroupBlockCommonProps":{"type":"object","properties":{"style":{"type":"array","items":{"type":"string"},"title":"Стиль"},"tags":{"type":"array","items":{"type":"string"},"title":"Теги"}}},"ProductTileDef":{"type":"object","properties":{"blockType":{"type":"string","const":"ProductTile"},"style":{"type":"array","items":{"type":"string"},"title":"Стиль"},"tags":{"type":"array","items":{"type":"string"},"title":"Теги"},"headingType":{"$ref":"#/definitions/HeadingType"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"benefits":{"type":"array","items":{"$ref":"#/definitions/TextBenefit"},"title":"Преимущества","maxItems":7},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"required":["blockType"],"title":"Продуктовая плитка","default":{"blockType":"ProductTile"}},"HeaderContent":{"type":"object","properties":{"topItems":{"type":"array","items":{"$ref":"#/definitions/TopMenuItem"},"title":"Основное меню"},"dispositions":{"type":"array","items":{"$ref":"#/definitions/DispositionItem"},"title":"Дополнительное меню"},"defaultLocation":{"type":"string","title":"Город по-умолчанию","default":"Москва"}},"title":"Шапка (для мобильных горизонтальная прокрутка shift+mouseScroll)","required":["defaultLocation","topItems"]},"QRCode":{"type":"object","properties":{"src":{"type":"string","title":"QR код"},"href":{"type":"string","title":"Ссылка"}},"title":"QR код"},"MobileAppTileContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"qr":{"$ref":"#/definitions/QRCode"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"href":{"type":"string","title":"Ссылка"}},"title":"Мобильное приложение"},"NavigationContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonProps"},"title":"Список ссылок"}},"title":"Навигация"},"NavigatorTabsContent":{"type":"object","properties":{"navigatorTabs":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Список табов","minItems":3}},"title":"Блок табов"},"ProductSlide":{"type":"object","properties":{"nav":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"}},"required":["title","description"],"title":"Превью содержимого слайда на навигации"},"productBlock":{"$ref":"#/definitions/ProductBlockInnerContent","title":"Содержимое слайда"}},"required":["productBlock"],"title":"Слайд"},"ProductGalleryContent":{"type":"object","properties":{"slides":{"type":"array","items":{"$ref":"#/definitions/ProductSlide"},"title":"Слайды","minItems":2}},"title":"Продуктовая галерея (для мобильных горизонтальная прокрутка shift+mouseScroll)"},"PromoTileContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"date":{"type":"string","title":"Дата публикации"},"description":{"type":"string","title":"Описание"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Акции"},"Step":{"type":"object","properties":{"label":{"type":"string","title":"Название"},"button":{"$ref":"#/definitions/ButtonProps"},"description":{"type":"string","title":"Описание"},"icon":{"$ref":"#/definitions/Picture"}},"title":"Шаг"},"StepsBlockContent":{"type":"object","properties":{"showLines":{"type":"boolean","title":"Линии"},"button":{"$ref":"#/definitions/ButtonProps"},"size":{"$ref":"#/definitions/SizeVersion","title":"Размер шагов (моб.)"},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"steps":{"type":"array","items":{"$ref":"#/definitions/Step"},"title":"Шаги","minItems":2,"maxItems":4},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Блок шаги"},"SizeVersion":{"type":"string","enum":["normal","small"],"title":"Размер","enumNames":["Обычный","Уменьшенный"]},"TariffsTableRowData":{"type":"object","properties":{"header":{"$ref":"#/definitions/TariffsTableRowHeader"},"data":{"type":"array","items":{"type":"array","items":{"$ref":"#/definitions/TariffsTableCellData"}}}},"required":["header","data"],"title":"Ряд"},"TariffsTableRowHeader":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"icon":{"$ref":"#/definitions/Picture"}},"title":"Параметр"},"TariffsTableCellData":{"type":"object","properties":{"list":{"$ref":"#/definitions/TariffsTableList"},"label":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"buttons":{"type":"array","items":{"$ref":"#/definitions/ButtonWithIconProps"},"title":"Кнопки","maxItems":4}},"title":"Ячейка"},"TariffsTableList":{"type":"object","properties":{"isDotted":{"type":"boolean","title":"Маркеры"},"items":{"type":"array","items":{"type":"string"},"title":"Список"}},"title":"Список"},"TariffsTableColumn":{"type":"object","properties":{"data":{"type":"array","items":{"type":"array","items":{"$ref":"#/definitions/TariffsTableCellData"}},"title":"Данные"}},"title":"Колонка"},"TariffsTableContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"columns":{"type":"array","items":{"$ref":"#/definitions/TariffsTableColumn"},"title":"Колонки"},"description":{"type":"string","title":"Описание"},"orientation":{"$ref":"#/definitions/ListOrientation","title":"Отображать элементы в моб. версии (прокрутка shift+mouseScroll)"},"rowHeaders":{"type":"array","items":{"$ref":"#/definitions/TariffsTableRowHeader"},"title":"Параметры"}},"title":"Таблица тарифов"},"CalculatorParams":{"type":"object","properties":{"isAnnuity":{"type":"boolean"},"minSum":{"type":"number"},"maxSum":{"type":"number"},"minMonths":{"type":"number"},"maxMonths":{"type":"number"},"rateWithInsurance":{"type":"number"},"rateWithoutInsurance":{"type":"number"}}},"CreditCalculatorData":{"type":"object","properties":{"rows":{"type":"array","items":{"$ref":"#/definitions/CalculatorParams"}}}},"CreditCalculatorTab":{"type":"object","properties":{"directoryName":{"type":"string","title":"Справочник"},"title":{"type":"string","title":"Имя вкладки"},"description":{"type":"string","title":"Описание"},"icon":{"$ref":"#/definitions/Picture"}},"title":"Вкладка"},"Tab":{"type":"object","properties":{"title":{"type":"string","title":"Имя вкладки"},"description":{"type":"string","title":"Описание"},"icon":{"$ref":"#/definitions/Picture"}},"title":"Вкладка"},"CreditCalculatorContent":{"type":"object","properties":{"tabs":{"type":"array","items":{"$ref":"#/definitions/CreditCalculatorTab"},"title":"Вкладки"}},"title":"Кредитный калькулятор"},"BlockItemCommonProps":{"type":"object","properties":{"label":{"type":"string","title":"Название","default":"Список"},"isExpanded":{"type":"boolean","title":"Отображать в раскрытом виде"},"blocks":{"type":"array","items":{"$ref":"#/definitions/BlockDef"},"title":"Блоки","maxItems":10},"columns":{"$ref":"#/definitions/ColumnsCount"}},"title":"Элемент списка"},"ColumnsCount":{"type":"number","enum":[1,2],"title":"Количество колонок","enumNames":["1 колонка","2 колонки"]},"OtherProductsContent":{"type":"object","properties":{"blockItems":{"type":"array","items":{"$ref":"#/definitions/BlockItemCommonProps"},"title":"Список"},"colorPalette":{"$ref":"#/definitions/ColorPalette"},"title":{"type":"string","title":"Заголовок"}},"title":"Другие продукты"},"ColorPalette":{"type":"string","enum":["","pc","bc","eo"],"title":"Цветовая палитра","enumNames":["","Частным клиентам","Бизнес клиентам","Экосистема Своё"]},"ProductGalleryGreenContent":{"type":"object","properties":{"slides":{"type":"array","items":{"$ref":"#/definitions/ProductSlide"},"title":"Слайды"},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Продуктовая галерея"},"RecommendationCardTypes":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"items":{"type":"array","items":{"type":"string"},"title":"Список"},"socialMedia":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Соц сети","minItems":3}}},"RecommendationContent":{"type":"object","properties":{"title":{"type":"string","title":"Заголовок"},"recommendations":{"type":"array","items":{"$ref":"#/definitions/RecommendationCardTypes"},"title":"Карточки"},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Рекомендации"}}}
|
package/bundle/bundle.umd.js
CHANGED
|
@@ -725,7 +725,7 @@
|
|
|
725
725
|
|
|
726
726
|
const ProductBlockInner = JSX(({ className = '', context, title, headingType = 'h2', description, benefits, benefitsVersion = 'normal', buttons, image, items, version = 'primary', isDotted = true, textBlockClassName = '', }) => {
|
|
727
727
|
const textColor = version === 'secondary' ? 'text-white' : 'text-primary-text';
|
|
728
|
-
return (jsxs("div", { className: `flex grow justify-between items-stretch ${className}`, children: [jsx("div", { className: `flex flex-col ${textBlockClassName}`, children: jsxs(BaseTile, { context: context, title: getTitle(title, headingType), buttons: getButtons(context, buttons), children: [description && (jsx(Description, { className: `mt-4 max-w-[600px] text-md font-light ${textColor}`, description: description })), benefits?.filter((items) => items.label)?.length ? (jsx("div", { className: "flex gap-6 mt-6", children: benefits.map((benefit, i) => renderBenefit({ benefit, version, benefitsVersion }, i)) })) : null, items?.length ? (jsx(List, { className: "mt-5 text-title-2xs font-light", items: items, itemClassName: "mb-[7px]", version: version, isDotted: isDotted })) : null] }) }), image?.src && jsx(Img, { className: "mt-
|
|
728
|
+
return (jsxs("div", { className: `flex grow justify-between items-stretch ${className}`, children: [jsx("div", { className: `flex flex-col ${textBlockClassName}`, children: jsxs(BaseTile, { context: context, title: getTitle(title, headingType), buttons: getButtons(context, buttons), children: [description && (jsx(Description, { className: `mt-4 max-w-[600px] text-md font-light ${textColor}`, description: description })), benefits?.filter((items) => items.label)?.length ? (jsx("div", { className: "flex gap-6 mt-6", children: benefits.map((benefit, i) => renderBenefit({ benefit, version, benefitsVersion }, i)) })) : null, items?.length ? (jsx(List, { className: "mt-5 text-title-2xs font-light", items: items, itemClassName: "mb-[7px]", version: version, isDotted: isDotted })) : null] }) }), image?.src && jsx(Img, { className: "mt-[-50px]", image: image })] }));
|
|
729
729
|
});
|
|
730
730
|
const getTitle = (title, headingType) => {
|
|
731
731
|
return (title && (jsx(Heading, { headingType: headingType, title: title, className: "whitespace-pre-wrap max-w-[600px]" })));
|
|
@@ -933,8 +933,8 @@
|
|
|
933
933
|
LinkList,
|
|
934
934
|
};
|
|
935
935
|
|
|
936
|
-
const renderBlocksList = ({ blocks, context, className, columns }) => blocks?.length ? blocks.map(renderBlock$
|
|
937
|
-
const renderBlock$
|
|
936
|
+
const renderBlocksList = ({ blocks, context, className, columns }) => blocks?.length ? blocks.map(renderBlock$2({ context, className, columns })) : null;
|
|
937
|
+
const renderBlock$2 = ({ context, columns, className }) => (block, i) => {
|
|
938
938
|
const type = block?.blockListType;
|
|
939
939
|
if (!type || !(type in EmbeddableBlocks)) {
|
|
940
940
|
return null;
|
|
@@ -1081,9 +1081,9 @@
|
|
|
1081
1081
|
const TAB_STYLE = 'px-2 h-14 pb-2 pt-3 border border-b-0 border-main-stroke';
|
|
1082
1082
|
const ACTIVE_TAB_STYLE = 'px-2 h-16 pt-4 pb-2 text-white bg-primary-main';
|
|
1083
1083
|
const Tabs = JSX(({ tabs, currentTabIndex, onTabClick }) => {
|
|
1084
|
-
return (jsx("div", { className: "flex items-end border-b border-main-stroke", role: "tablist", children: tabs?.map(renderTab$
|
|
1084
|
+
return (jsx("div", { className: "flex items-end border-b border-main-stroke", role: "tablist", children: tabs?.map(renderTab$2(currentTabIndex, onTabClick)) }));
|
|
1085
1085
|
});
|
|
1086
|
-
const renderTab$
|
|
1086
|
+
const renderTab$2 = (currentTabIndex, onTabClick) => (tab, index) => {
|
|
1087
1087
|
const isActive = currentTabIndex === index;
|
|
1088
1088
|
return (jsxs("div", { className: `flex h-full flex-1 cursor-pointer mr-2 last:mr-0 box-content ${isActive ? ACTIVE_TAB_STYLE : TAB_STYLE}`, role: "tab", onClick: () => onTabClick(index), "aria-selected": String(isActive), children: [tab?.icon ? renderIcon(tab, isActive) : null, jsxs("div", { children: [tab?.title ? jsx("h3", { className: "font-medium m-0 text-base", children: tab?.title }) : null, tab?.description ? (jsx("span", { className: `font-light text-xs ${isActive ? '' : 'text-secondary-text'}`, children: tab?.description })) : null] })] }, String(index)));
|
|
1089
1089
|
};
|
|
@@ -1754,9 +1754,9 @@
|
|
|
1754
1754
|
|
|
1755
1755
|
const NavigatorTabs = JSX(({ className = '', navigatorTabs, context, anchor = null }) => {
|
|
1756
1756
|
const href = globalThis.location?.href; // TODO: remove globalThis, use href from router
|
|
1757
|
-
return (jsx("section", { className: `sticky top-0 z-20 box-border flex gap-x-1 h-14 ${className}`, id: anchor, children: navigatorTabs ? navigatorTabs.map(renderTab(context, href)) : null }));
|
|
1757
|
+
return (jsx("section", { className: `sticky top-0 z-20 box-border flex gap-x-1 h-14 ${className}`, id: anchor, children: navigatorTabs ? navigatorTabs.map(renderTab$1(context, href)) : null }));
|
|
1758
1758
|
});
|
|
1759
|
-
const renderTab = (context, href) => (tab, i) => {
|
|
1759
|
+
const renderTab$1 = (context, href) => (tab, i) => {
|
|
1760
1760
|
const { useRouter, handlerDecorator } = context;
|
|
1761
1761
|
const router = useRouter();
|
|
1762
1762
|
const hash = getHash(href);
|
|
@@ -1850,7 +1850,7 @@
|
|
|
1850
1850
|
primary: 'bg-white text-primary-text',
|
|
1851
1851
|
secondary: 'bg-primary-main text-white',
|
|
1852
1852
|
};
|
|
1853
|
-
const ProductGalleryGreen = JSX(({ className = '', context, slides = [], version = 'primary',
|
|
1853
|
+
const ProductGalleryGreen = JSX(({ className = '', context, slides = [], version = 'primary', anchor = null }) => {
|
|
1854
1854
|
const galleryNav = slides.map((s) => s.nav);
|
|
1855
1855
|
const galleryBlocks = slides.map((s) => s.productBlock);
|
|
1856
1856
|
const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
|
|
@@ -1861,19 +1861,18 @@
|
|
|
1861
1861
|
activeSlideIndex,
|
|
1862
1862
|
onClick: () => setActiveSlideIndex(i),
|
|
1863
1863
|
version,
|
|
1864
|
-
duration,
|
|
1865
1864
|
})) })] }));
|
|
1866
1865
|
});
|
|
1867
1866
|
function renderProductBlock(block, i, context) {
|
|
1868
1867
|
const { version } = block;
|
|
1869
1868
|
const additionalClass = version ? productBlockStyleMap[version].title : '';
|
|
1870
|
-
return (jsx("section", { className: "box-border relative flex grow-0 shrink-0 basis-full", role: "listitem", children: jsx("div", { className: "flex grow", children: jsx(ProductBlockInner, { className: `pl-[50px]
|
|
1869
|
+
return (jsx("section", { className: "box-border relative flex grow-0 shrink-0 basis-full", role: "listitem", children: jsx("div", { className: "flex grow", children: jsx(ProductBlockInner, { className: `pl-[50px] z-[1] ${additionalClass}`, context: context, textBlockClassName: "mb-[154px]", ...block }) }) }, String(i)));
|
|
1871
1870
|
}
|
|
1872
|
-
function renderNavButton({ slide, i, activeSlideIndex, onClick, version
|
|
1871
|
+
function renderNavButton({ slide, i, activeSlideIndex, onClick, version }) {
|
|
1873
1872
|
const isActiveBtn = i === activeSlideIndex;
|
|
1874
1873
|
const btnClassName = isActiveBtn
|
|
1875
|
-
? 'bg-white shadow-dark-blue/42 h-[102px] w-[354px] min-w-[354px]
|
|
1876
|
-
: `min-w-[277px] px-0 pt-4 pb-[23px] hover:py-[26px] hover:py-[26px] ease-in duration-300
|
|
1874
|
+
? 'bg-white shadow-dark-blue/42 h-[102px] w-[354px] min-w-[354px] p-0 border-none'
|
|
1875
|
+
: `min-w-[277px] px-0 pt-4 pb-[23px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10
|
|
1877
1876
|
${productSlideStyleMap[version]}`;
|
|
1878
1877
|
const btnTitleClassName = isActiveBtn
|
|
1879
1878
|
? 'text-primary-text text-title-2xs'
|
|
@@ -1881,11 +1880,10 @@
|
|
|
1881
1880
|
const btnDescClassName = isActiveBtn
|
|
1882
1881
|
? 'text-secondary-text text-m-title-xs mt-2.5'
|
|
1883
1882
|
: `text-m-md mt-1.5 ${productBlockStyleMap[version].text}`;
|
|
1884
|
-
const additionalBorder = version === 'secondary' ? 'border-white/50' : '';
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
${
|
|
1888
|
-
`, children: [jsxs("div", { className: "border-0 px-6", children: [jsx("div", { className: `font-medium ${btnTitleClassName}`, children: slide?.title }), jsx("div", { className: `text-secondary-text ${btnDescClassName}`, children: slide.description })] }), jsx("div", { className: `absolute bottom-0 left-0 w-full h-[3px] bg-primary-main -translate-x-full ${progressBarClassName}`, style: { animationDuration: `${duration}s`, animationFillMode: 'forwards' } })] }, String(i)));
|
|
1883
|
+
const additionalBorder = version === 'secondary' ? 'border-white/50' : 'border-black/50';
|
|
1884
|
+
return (jsx("button", { type: "button", onClick: onClick, "aria-label": slide?.title, className: `box-border font-sans relative overflow-hidden border-[1px] border-white/50 cursor-pointer text-left mx-1 grow basis-0
|
|
1885
|
+
${btnClassName} ${additionalBorder}
|
|
1886
|
+
`, children: jsxs("div", { className: "border-0 px-6", children: [jsx("div", { className: `font-medium ${btnTitleClassName}`, children: slide?.title }), jsx("div", { className: `text-secondary-text ${btnDescClassName}`, children: slide.description })] }) }, String(i)));
|
|
1889
1887
|
}
|
|
1890
1888
|
|
|
1891
1889
|
const promoTileStyleMap = {
|
|
@@ -1990,6 +1988,58 @@
|
|
|
1990
1988
|
data: colData.map((col) => col?.[i] || [{}]),
|
|
1991
1989
|
}));
|
|
1992
1990
|
|
|
1991
|
+
const GroupBlockTabs = JSX((props) => {
|
|
1992
|
+
const { tabs, currentTag, onTabClick, className = '', isShowCounter = true } = props;
|
|
1993
|
+
return (jsx("div", { className: `mb-2 box-border flex gap-x-1 h-12 ${className}`, role: "tablist", children: tabs?.map(renderTab(onTabClick, isShowCounter, currentTag)) }));
|
|
1994
|
+
});
|
|
1995
|
+
const badgeStyle = 'w-[22px] h-[22px] rounded-full text-m-sm';
|
|
1996
|
+
const renderTab = (onTabClick, isShowCounter, currentTag) => (tab, i) => {
|
|
1997
|
+
const isActive = currentTag === tab.tag;
|
|
1998
|
+
const tabBg = isActive ? 'bg-primary-main' : 'group bg-white';
|
|
1999
|
+
const tabText = isActive ? 'text-white' : 'text-secondary-text group-hover:text-primary-main';
|
|
2000
|
+
const counterBlockStyle = `${badgeStyle}
|
|
2001
|
+
${isActive ? 'bg-white/30 text-white' : 'bg-secondary-text/10 text-secondary-text'}`;
|
|
2002
|
+
return (jsx("div", { className: `flex h-full w-full flex-1 cursor-pointer mr-2 last:mr-0 box-content ${tabBg}`, role: "tab", onClick: () => onTabClick(tab.tag), "aria-selected": String(isActive), tag: tab?.tag, children: jsxs("div", { className: "flex flex-1 items-center justify-center", children: [tab?.title ? jsx("h3", { className: `mr-8 ${tabText}`, children: tab?.title }) : null, isShowCounter ? (jsx("div", { className: `flex items-center justify-center ${counterBlockStyle}`, children: jsx("span", { children: tab.count }) })) : null] }) }, String(i)));
|
|
2003
|
+
};
|
|
2004
|
+
|
|
2005
|
+
function style2className(style) {
|
|
2006
|
+
return style ? style.filter(Boolean).join(' ') : '';
|
|
2007
|
+
}
|
|
2008
|
+
|
|
2009
|
+
const EmbeddableGroupBlocks = {
|
|
2010
|
+
ProductBlock,
|
|
2011
|
+
ProductTile,
|
|
2012
|
+
};
|
|
2013
|
+
|
|
2014
|
+
const GroupBlocksItem = JSX(({ groupBlocks, context }) => {
|
|
2015
|
+
return (jsx("div", { className: 'grid grid-cols-12 gap-2 box-border', children: groupBlocks?.length ? groupBlocks.map(renderBlock$1(context)) : null }));
|
|
2016
|
+
});
|
|
2017
|
+
const renderBlock$1 = (context) => (block, i) => {
|
|
2018
|
+
const type = block?.blockType;
|
|
2019
|
+
if (!type || !(type in EmbeddableGroupBlocks)) {
|
|
2020
|
+
return null;
|
|
2021
|
+
}
|
|
2022
|
+
const classNameBlock = style2className(block?.style);
|
|
2023
|
+
const EmbeddedBlock = EmbeddableGroupBlocks[type];
|
|
2024
|
+
return (jsx(EmbeddedBlock, { context: context, ...block, className: classNameBlock }, `block_${i}`));
|
|
2025
|
+
};
|
|
2026
|
+
|
|
2027
|
+
const filterBlocksByTag = (blocks, tag) => {
|
|
2028
|
+
return tag ? blocks.filter((block) => block?.tags?.includes(tag)) : blocks;
|
|
2029
|
+
};
|
|
2030
|
+
|
|
2031
|
+
const GroupBlock = JSX(({ className = '', tabs, context, anchor = null, groupBlocks = [] }) => {
|
|
2032
|
+
const [currentTag, setCurrentTag] = context.useState(tabs?.[0]?.tag);
|
|
2033
|
+
const filteredBlocks = filterBlocksByTag(groupBlocks, currentTag);
|
|
2034
|
+
const tabsNewMap = tabs?.map((tab) => {
|
|
2035
|
+
const count = tab.tag
|
|
2036
|
+
? groupBlocks.filter((block) => block?.tags?.includes(`${tab.tag}`)).length
|
|
2037
|
+
: groupBlocks.length;
|
|
2038
|
+
return { ...tab, count };
|
|
2039
|
+
});
|
|
2040
|
+
return (jsxs("section", { id: anchor, className: `box-border gap-1 h-12 ${className}`, children: [tabsNewMap?.length ? (jsx(GroupBlockTabs, { currentTag: currentTag, onTabClick: setCurrentTag, tabs: tabsNewMap })) : null, groupBlocks.length ? (jsx("div", { className: "list-none", children: jsx(GroupBlocksItem, { context: context, groupBlocks: filteredBlocks }) })) : null] }));
|
|
2041
|
+
});
|
|
2042
|
+
|
|
1993
2043
|
const Blocks = {
|
|
1994
2044
|
Accordion,
|
|
1995
2045
|
BenefitsBlock,
|
|
@@ -2020,6 +2070,7 @@
|
|
|
2020
2070
|
Tile,
|
|
2021
2071
|
Navigation,
|
|
2022
2072
|
Placeholder,
|
|
2073
|
+
GroupBlock,
|
|
2023
2074
|
};
|
|
2024
2075
|
|
|
2025
2076
|
const changeHashOnScroll = (router, blocks) => {
|
|
@@ -2035,8 +2086,6 @@
|
|
|
2035
2086
|
});
|
|
2036
2087
|
};
|
|
2037
2088
|
|
|
2038
|
-
const style2className = (style) => style ? style.join(' ') : '';
|
|
2039
|
-
|
|
2040
2089
|
const LikeButton = JSX(({ className, onClick, ariaLabel }) => (jsx("button", { type: "button", className: `border-0 w-[36px] bg-inherit cursor-pointer ${className || ''}`, onClick: onClick, "aria-label": ariaLabel, children: renderLikeIcon() })));
|
|
2041
2090
|
const renderLikeIcon = () => {
|
|
2042
2091
|
const params = {
|