@redneckz/wildless-cms-uni-blocks 0.3.46 → 0.3.49
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 +67 -69
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Accordion/AccordionItem.js +2 -2
- package/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriod.js +5 -3
- package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriodContent.d.ts +15 -3
- package/dist/components/LinkDocs/LinkDocsListItem.js +1 -1
- package/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/dist/components/NavigatorTabs/NavigatorTabItem.d.ts +2 -2
- package/dist/components/NavigatorTabs/NavigatorTabItem.js +1 -1
- package/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/dist/components/NavigatorTabs/NavigatorTabs.js +6 -9
- package/dist/components/NavigatorTabs/NavigatorTabs.js.map +1 -1
- package/dist/components/NavigatorTabs/NavigatorTabsContent.d.ts +2 -12
- package/dist/components/ProductBlock/ProductBlock.js +1 -1
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/dist/components/ProductBlock/renderBenefit.js +1 -1
- package/dist/components/ProductBlock/renderBenefit.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js +2 -3
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/ProductTile/ProductTileContent.d.ts +2 -2
- package/dist/components/StepsBlock/StepsBlock.js +1 -1
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/Tile/Tile.js +4 -5
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/components/Tile/TileContent.d.ts +2 -2
- package/dist/types.d.ts +5 -1
- package/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/dist/ui-kit/List/ListItem.js +2 -2
- package/dist/ui-kit/List/ListItem.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Accordion/AccordionItem.js +2 -2
- package/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/lib/components/BaseTile/getTileHeadingType.d.ts +1 -1
- package/lib/components/GracePeriod/GracePeriod.js +5 -3
- package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/lib/components/GracePeriod/GracePeriodContent.d.ts +15 -3
- package/lib/components/LinkDocs/LinkDocsListItem.js +1 -1
- package/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/lib/components/NavigatorTabs/NavigatorTabItem.d.ts +2 -2
- package/lib/components/NavigatorTabs/NavigatorTabItem.js +1 -1
- package/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/lib/components/NavigatorTabs/NavigatorTabs.js +7 -10
- package/lib/components/NavigatorTabs/NavigatorTabs.js.map +1 -1
- package/lib/components/NavigatorTabs/NavigatorTabsContent.d.ts +2 -12
- package/lib/components/ProductBlock/ProductBlock.js +1 -1
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/lib/components/ProductBlock/renderBenefit.js +1 -1
- package/lib/components/ProductBlock/renderBenefit.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.js +2 -3
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/ProductTile/ProductTileContent.d.ts +2 -2
- package/lib/components/StepsBlock/StepsBlock.js +1 -1
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/Tile/Tile.js +4 -5
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/components/Tile/TileContent.d.ts +2 -2
- package/lib/types.d.ts +5 -1
- package/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/ui-kit/List/List.fixture.d.ts +4 -0
- package/lib/ui-kit/List/ListItem.js +2 -2
- package/lib/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +3 -3
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriod.js +5 -3
- package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriodContent.d.ts +15 -3
- package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.d.ts +2 -2
- package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js +1 -1
- package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/mobile/dist/components/NavigatorTabs/NavigatorTabs.js +6 -9
- package/mobile/dist/components/NavigatorTabs/NavigatorTabs.js.map +1 -1
- package/mobile/dist/components/NavigatorTabs/NavigatorTabsContent.d.ts +2 -12
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js +2 -3
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +2 -2
- package/mobile/dist/components/Tile/Tile.js +4 -5
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/components/Tile/TileContent.d.ts +2 -2
- package/mobile/dist/types.d.ts +5 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/List/ListItem.js +2 -2
- package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriod.js +5 -3
- package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriodContent.d.ts +15 -3
- package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.d.ts +2 -2
- package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js +1 -1
- package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/mobile/lib/components/NavigatorTabs/NavigatorTabs.js +7 -10
- package/mobile/lib/components/NavigatorTabs/NavigatorTabs.js.map +1 -1
- package/mobile/lib/components/NavigatorTabs/NavigatorTabsContent.d.ts +2 -12
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js +2 -3
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +2 -2
- package/mobile/lib/components/Tile/Tile.js +4 -5
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/components/Tile/TileContent.d.ts +2 -2
- package/mobile/lib/types.d.ts +5 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/List/ListItem.js +2 -2
- package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/src/components/ContentPage/ContentPage.page.json +6 -6
- package/mobile/src/components/GracePeriod/GracePeriod.example.json +10 -5
- package/mobile/src/components/GracePeriod/GracePeriod.tsx +12 -6
- package/mobile/src/components/GracePeriod/GracePeriodContent.ts +15 -3
- package/mobile/src/components/NavigatorTabs/NavigatorTabItem.tsx +4 -4
- package/mobile/src/components/NavigatorTabs/NavigatorTabs.example.json +3 -3
- package/mobile/src/components/NavigatorTabs/NavigatorTabs.tsx +11 -14
- package/mobile/src/components/NavigatorTabs/NavigatorTabsContent.ts +2 -12
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +1 -0
- package/mobile/src/components/ProductTile/ProductTile.example.json +1 -0
- package/mobile/src/components/ProductTile/ProductTile.tsx +3 -2
- package/mobile/src/components/ProductTile/ProductTileContent.ts +2 -1
- package/mobile/src/components/Tile/Tile.example.json +1 -0
- package/mobile/src/components/Tile/Tile.tsx +4 -4
- package/mobile/src/components/Tile/TileContent.ts +2 -1
- package/mobile/src/types.ts +5 -1
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/mobile/src/ui-kit/List/ListItem.tsx +2 -2
- package/package.json +1 -1
- package/src/components/Accordion/AccordionItem.tsx +4 -2
- package/src/components/ContentPage/ContentPage.page.json +6 -6
- package/src/components/GracePeriod/GracePeriod.example.json +10 -5
- package/src/components/GracePeriod/GracePeriod.tsx +12 -6
- package/src/components/GracePeriod/GracePeriodContent.ts +15 -3
- package/src/components/LinkDocs/LinkDocsListItem.tsx +1 -1
- package/src/components/NavigatorTabs/NavigatorTabItem.tsx +4 -4
- package/src/components/NavigatorTabs/NavigatorTabs.example.json +3 -3
- package/src/components/NavigatorTabs/NavigatorTabs.fixture.tsx +6 -1
- package/src/components/NavigatorTabs/NavigatorTabs.tsx +11 -14
- package/src/components/NavigatorTabs/NavigatorTabsContent.ts +2 -12
- package/src/components/ProductBlock/ProductBlock.tsx +1 -1
- package/src/components/ProductBlock/renderBackwardButton.tsx +1 -0
- package/src/components/ProductBlock/renderBenefit.tsx +1 -1
- package/src/components/ProductTile/ProductTile.example.json +1 -0
- package/src/components/ProductTile/ProductTile.fixture.tsx +7 -2
- package/src/components/ProductTile/ProductTile.tsx +3 -2
- package/src/components/ProductTile/ProductTileContent.ts +2 -1
- package/src/components/StepsBlock/StepsBlock.tsx +1 -1
- package/src/components/Tile/Tile.example.json +1 -0
- package/src/components/Tile/Tile.fixture.tsx +6 -1
- package/src/components/Tile/Tile.tsx +4 -4
- package/src/components/Tile/TileContent.ts +2 -1
- package/src/types.ts +5 -1
- package/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/src/ui-kit/List/List.fixture.tsx +20 -0
- package/src/ui-kit/List/ListItem.tsx +2 -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}}},"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":"Список"}}},"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},"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},"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":{"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":{"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},"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"},"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"},"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":{"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":{"type":"string","title":"Заголовок"},"description":{"type":"string","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":"Контакты"},"socialMedia":{"type":"array","items":{"$ref":"#/definitions/SocialMedia"},"title":"Социальные сети"},"mobileApps":{"type":"array","items":{"$ref":"#/definitions/SocialMedia"},"title":"Мобильные приложения"},"horizontalNavigationTitle":{"type":"string","title":"Заголовок для меню"},"subMenu":{"type":"array","items":{"$ref":"#/definitions/SubMenuItem"},"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":"Изображение календарного месяца"}}}},"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":"Навигация"},"NavigatorTab":{"type":"object","properties":{"label":{"type":"string","title":"Название"},"href":{"type":"string","title":"Якорь"},"target":{"type":"string","title":"Таргет (target)"}},"title":"Таб"},"NavigatorTabsContent":{"type":"object","properties":{"navigatorTabs":{"type":"array","items":{"$ref":"#/definitions/NavigatorTab"},"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":{"date":{"type":"string","title":"Дата публикации"},"title":{"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","eo2","eo3","eo4"]},"ProductGalleryGreenContent":{"type":"object","properties":{"slides":{"type":"array","items":{"$ref":"#/definitions/ProductSlide"},"title":"Слайды"},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Продуктовая галерея"},"RecommendationCardTypes":{"type":"object","properties":{"recommendations":{"type":"array","items":{"$ref":"#/definitions/RecommendationCardTypes"},"title":"Карточки"},"socialMedia":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Ссылка","minItems":3},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"items":{"type":"array","items":{"type":"string"},"title":"Список"},"version":{"$ref":"#/definitions/BlockVersion"}}},"RecommendationContent":{"type":"object","properties":{"recommendations":{"type":"array","items":{"$ref":"#/definitions/RecommendationCardTypes"},"title":"Карточки"},"socialMedia":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Ссылка","minItems":3},"title":{"type":"string","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}}},"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":"Список"}}},"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},"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},"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},"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":{"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":{"type":"string","title":"Заголовок"},"description":{"type":"string","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":"Контакты"},"socialMedia":{"type":"array","items":{"$ref":"#/definitions/SocialMedia"},"title":"Социальные сети"},"mobileApps":{"type":"array","items":{"$ref":"#/definitions/SocialMedia"},"title":"Мобильные приложения"},"horizontalNavigationTitle":{"type":"string","title":"Заголовок для меню"},"subMenu":{"type":"array","items":{"$ref":"#/definitions/SubMenuItem"},"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":{"recommendations":{"type":"array","items":{"$ref":"#/definitions/RecommendationCardTypes"},"title":"Карточки"},"socialMedia":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Ссылка","minItems":3},"title":{"type":"string","title":"Заголовок"},"description":{"type":"string","title":"Описание"},"image":{"$ref":"#/definitions/Picture"},"items":{"type":"array","items":{"type":"string"},"title":"Список"},"version":{"$ref":"#/definitions/BlockVersion"}}},"RecommendationContent":{"type":"object","properties":{"recommendations":{"type":"array","items":{"$ref":"#/definitions/RecommendationCardTypes"},"title":"Карточки"},"socialMedia":{"type":"array","items":{"$ref":"#/definitions/LinkProps"},"title":"Ссылка","minItems":3},"title":{"type":"string","title":"Заголовок"},"version":{"$ref":"#/definitions/BlockVersion"}},"title":"Рекомендации"}}}
|
package/bundle/bundle.umd.js
CHANGED
|
@@ -203,34 +203,6 @@
|
|
|
203
203
|
return (jsx(Tag, { className: `font-sans m-0 ${HEADING_STYLE_MAP[headingType]} ${className}`, children: title }));
|
|
204
204
|
});
|
|
205
205
|
|
|
206
|
-
const ALIGN_TEXT = {
|
|
207
|
-
left: 'text-left',
|
|
208
|
-
center: 'text-center',
|
|
209
|
-
right: 'text-right',
|
|
210
|
-
};
|
|
211
|
-
const HEADLINE_BLOCK_STYLE_MAPS = {
|
|
212
|
-
transparent: {
|
|
213
|
-
background: 'bg-transparent',
|
|
214
|
-
text: 'text-primary-text',
|
|
215
|
-
description: 'text-primary-text',
|
|
216
|
-
},
|
|
217
|
-
primary: {
|
|
218
|
-
background: 'bg-white',
|
|
219
|
-
text: 'text-primary-text',
|
|
220
|
-
description: 'text-primary-text',
|
|
221
|
-
},
|
|
222
|
-
secondary: {
|
|
223
|
-
background: 'bg-primary-main',
|
|
224
|
-
text: 'text-white',
|
|
225
|
-
description: 'text-white/80',
|
|
226
|
-
},
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
const Headline = JSX(({ bgColorHeadline = 'transparent', align = 'left', className = '', title, description, anchor = null, }) => {
|
|
230
|
-
const STYLE_MAPS = HEADLINE_BLOCK_STYLE_MAPS[bgColorHeadline];
|
|
231
|
-
return (jsxs("section", { className: `p-[50px] ${STYLE_MAPS.background} ${className}`, id: anchor, children: [title && (jsx(Heading, { headingType: "h2", className: `text-primary-text ${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`, title: title })), description && (jsx("p", { className: `font-normal text-base mt-4 ${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`, children: description }))] }));
|
|
232
|
-
});
|
|
233
|
-
|
|
234
206
|
// Generated. Do not touch
|
|
235
207
|
/* eslint-disable max-lines */
|
|
236
208
|
var IconMap;
|
|
@@ -463,6 +435,34 @@
|
|
|
463
435
|
return format ? `image/${String(format)}` : undefined;
|
|
464
436
|
}
|
|
465
437
|
|
|
438
|
+
const ALIGN_TEXT = {
|
|
439
|
+
left: 'text-left',
|
|
440
|
+
center: 'text-center',
|
|
441
|
+
right: 'text-right',
|
|
442
|
+
};
|
|
443
|
+
const HEADLINE_BLOCK_STYLE_MAPS = {
|
|
444
|
+
transparent: {
|
|
445
|
+
background: 'bg-transparent',
|
|
446
|
+
text: 'text-primary-text',
|
|
447
|
+
description: 'text-primary-text',
|
|
448
|
+
},
|
|
449
|
+
primary: {
|
|
450
|
+
background: 'bg-white',
|
|
451
|
+
text: 'text-primary-text',
|
|
452
|
+
description: 'text-primary-text',
|
|
453
|
+
},
|
|
454
|
+
secondary: {
|
|
455
|
+
background: 'bg-primary-main',
|
|
456
|
+
text: 'text-white',
|
|
457
|
+
description: 'text-white/80',
|
|
458
|
+
},
|
|
459
|
+
};
|
|
460
|
+
|
|
461
|
+
const Headline = JSX(({ bgColorHeadline = 'transparent', align = 'left', className = '', title, description, anchor = null, }) => {
|
|
462
|
+
const STYLE_MAPS = HEADLINE_BLOCK_STYLE_MAPS[bgColorHeadline];
|
|
463
|
+
return (jsxs("section", { className: `p-[50px] ${STYLE_MAPS.background} ${className}`, id: anchor, children: [title && (jsx(Heading, { headingType: "h2", className: `text-primary-text ${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`, title: title })), description && (jsx("p", { className: `font-normal text-base mt-4 ${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`, children: description }))] }));
|
|
464
|
+
});
|
|
465
|
+
|
|
466
466
|
const LinkDocsListItemBase = JSX(({ className, iconClassName, textClassName, suffixClassName, doc, icon }) => {
|
|
467
467
|
const { text, fileSize, ...linkProps } = doc;
|
|
468
468
|
return (jsxs("a", { className: className, role: "link", ...linkProps, children: [icon ? (jsx(Img, { className: iconClassName, image: icon, width: "24px", height: "24px", asSVG: true })) : null, text ? (jsxs("span", { className: textClassName, children: [text, jsx("span", { className: suffixClassName, children: linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize) })] })) : null] }));
|
|
@@ -480,7 +480,7 @@
|
|
|
480
480
|
return index !== -1 ? href.substring(index + 1) : '';
|
|
481
481
|
};
|
|
482
482
|
|
|
483
|
-
const LinkDocsListItem = JSX(({ className = '', doc, icon }) => (jsx(LinkDocsListItemBase, { className: `flex h-full box-border ${className}`, iconClassName: "mr-2.5 min-w-6 min-h-6
|
|
483
|
+
const LinkDocsListItem = JSX(({ className = '', doc, icon }) => (jsx(LinkDocsListItemBase, { className: `flex h-full box-border ${className}`, iconClassName: "mr-2.5 min-w-6 min-h-6", textClassName: "self-center font-light", suffixClassName: "text-secondary-text group-hover:text-primary-main", doc: doc, icon: icon })));
|
|
484
484
|
|
|
485
485
|
const LinkDocsList = JSX(({ className, documents, columnsMode = 'double', icon }) => {
|
|
486
486
|
return documents?.length ? (jsx("div", { className: className, role: "list", children: documents.map((doc, i) => (jsx("div", { className: columnsMode === 'double' ? 'basis-[calc(50%-20px)]' : '', role: "listitem", children: jsx(LinkDocsListItem, { className: "group flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main", doc: doc, icon: icon }) }, String(i)))) })) : null;
|
|
@@ -594,7 +594,7 @@
|
|
|
594
594
|
|
|
595
595
|
const ButtonInner = JSX((props) => {
|
|
596
596
|
const { text, aboveText, appendLeft } = props;
|
|
597
|
-
return (jsxs("div", { className: getButtonStyle(props), children: [appendLeft ? appendLeft : null, isWithText(props) ? (jsxs("div", { children: [jsx("div", { className: "text-m-2xs font-light text-left", children: aboveText }), jsx("div", { className: "text-button
|
|
597
|
+
return (jsxs("div", { className: getButtonStyle(props), children: [appendLeft ? appendLeft : null, isWithText(props) ? (jsxs("div", { children: [jsx("div", { className: "text-m-2xs font-light text-left", children: aboveText }), jsx("div", { className: "text-button text-left", children: text })] })) : null] }));
|
|
598
598
|
});
|
|
599
599
|
const getButtonStyle = (props) => {
|
|
600
600
|
const { version, aboveText, rounded } = props;
|
|
@@ -651,8 +651,8 @@
|
|
|
651
651
|
primary: 'rounded-full inline-block mr-3 mt-2',
|
|
652
652
|
secondary: 'rounded-full inline-block mr-3 mt-2',
|
|
653
653
|
gray: 'rounded-full inline-block mr-3 mt-2',
|
|
654
|
-
tile: 'rounded-full inline-block mr-4',
|
|
655
|
-
'tile-white': 'rounded-full inline-block mr-4',
|
|
654
|
+
tile: 'rounded-full inline-block mr-4 mt-3',
|
|
655
|
+
'tile-white': 'rounded-full inline-block mr-4 mt-3',
|
|
656
656
|
};
|
|
657
657
|
const LIST_DOT_STYLE_MAP = {
|
|
658
658
|
primary: 'bg-primary-text',
|
|
@@ -706,7 +706,7 @@
|
|
|
706
706
|
secondary: 'text-white',
|
|
707
707
|
};
|
|
708
708
|
function renderBenefit(benefit, i, version) {
|
|
709
|
-
return (jsxs("div", { className: "flex gap-4 items-center", children: [benefit.icon ? (jsx(Img, { className: `w-[50px] h-[50px] min-w-[50px] min-h-[50px] rounded-full p-[10px] box-border text-
|
|
709
|
+
return (jsxs("div", { className: "flex gap-4 items-center", children: [benefit.icon ? (jsx(Img, { className: `w-[50px] h-[50px] min-w-[50px] min-h-[50px] rounded-full p-[10px] box-border text-primary-text ${benefitIconBgStyleMap[version]}`, image: benefit.icon, width: "24", height: "24", asSVG: true })) : null, jsxs("div", { className: "flex gap-0.5 flex-col h-full max-w-[149px] min-w-[149px]", children: [jsx("div", { className: `text-xl m-0 ${benefitTitleStyleMap[version]}`, children: benefit.label }), benefit.description && (jsx("div", { className: `font-light text-m-md ${benefitDescStyleMap[version]}`, children: benefit.description }))] })] }, String(i)));
|
|
710
710
|
}
|
|
711
711
|
|
|
712
712
|
const ProductBlockInner = JSX(({ className = '', context, title, headingType = 'h2', description, benefits, buttons, image, items, version = 'primary', isDotted = true, textBlockClassName = '', }) => {
|
|
@@ -721,7 +721,7 @@
|
|
|
721
721
|
};
|
|
722
722
|
|
|
723
723
|
function renderBackwardButton(button, version, className) {
|
|
724
|
-
return (jsxs("div", { className: `flex items-center ${className}`, children: [jsx(Button, { version: version, rounded: true, className: "w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3", ariaLabel: button?.text, children: jsx(Img, { className: "w-4 h-4", image: button?.icon || { icon: 'ArrowLeftIcon' }, asSVG: true }) }), button?.text ? jsx("span", { className: "text-m-md font-light", children: button.text }) : null] }));
|
|
724
|
+
return (jsxs("div", { className: `flex items-center ${className}`, children: [jsx(Button, { version: version, rounded: true, className: "w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3", ariaLabel: button?.text, href: button?.href, children: jsx(Img, { className: "w-4 h-4", image: button?.icon || { icon: 'ArrowLeftIcon' }, asSVG: true }) }), button?.text ? jsx("span", { className: "text-m-md font-light", children: button.text }) : null] }));
|
|
725
725
|
}
|
|
726
726
|
|
|
727
727
|
const productBlockStyleMap$1 = {
|
|
@@ -736,7 +736,7 @@
|
|
|
736
736
|
const { context, className = '', breadcrumbs, backwardButton, version = 'primary', anchor = null, ...otherProps } = props;
|
|
737
737
|
const router = context.useRouter();
|
|
738
738
|
const { handlerDecorator } = context;
|
|
739
|
-
return (jsxs("section", { className: `font-sans overflow-hidden pt-[50px] pl-[50px] pb-[50px] pr-[7.5rem] box-border min-h-[420px] ${productBlockStyleMap$1[version]} ${className}`, id: anchor, children: [backwardButton ? renderBackwardButton(backwardButton, version, 'mb-10 -mt-
|
|
739
|
+
return (jsxs("section", { className: `font-sans overflow-hidden pt-[50px] pl-[50px] pb-[50px] pr-[7.5rem] box-border min-h-[420px] ${productBlockStyleMap$1[version]} ${className}`, id: anchor, children: [backwardButton?.text ? renderBackwardButton(backwardButton, version, 'mb-10 -mt-2.5') : null, breadcrumbs?.length ? (jsx("div", { className: "text-xs mb-6", children: joinList(jsx("span", { className: `mx-2 ${breadcrumbsStyleMap[version]}`, children: "/" }))(breadcrumbs.map((breadcrumb, i) => (jsx(Breadcrumb, { ...useLink({ router, handlerDecorator }, { className: breadcrumbsStyleMap[version], ...breadcrumb }) }, String(i))))) })) : null, jsx(ProductBlockInner, { context: context, version: version, ...otherProps })] }));
|
|
740
740
|
});
|
|
741
741
|
|
|
742
742
|
const textBlockStyleMaps = {
|
|
@@ -776,19 +776,6 @@
|
|
|
776
776
|
return colSpanStr ? parseInt(colSpanStr.substring(colSpanPrefix.length), 10) : 12;
|
|
777
777
|
};
|
|
778
778
|
|
|
779
|
-
function getTileHeadingType(className = '') {
|
|
780
|
-
const colSpan = getColSpan(className);
|
|
781
|
-
if (colSpan <= 4) {
|
|
782
|
-
return 'h4';
|
|
783
|
-
}
|
|
784
|
-
else if (colSpan <= 8) {
|
|
785
|
-
return 'h3';
|
|
786
|
-
}
|
|
787
|
-
else {
|
|
788
|
-
return 'h2';
|
|
789
|
-
}
|
|
790
|
-
}
|
|
791
|
-
|
|
792
779
|
function getTileMinHeight(className = '') {
|
|
793
780
|
const colSpan = getColSpan(className);
|
|
794
781
|
if (colSpan <= 6) {
|
|
@@ -820,20 +807,20 @@
|
|
|
820
807
|
secondary: 'bg-primary-main text-white',
|
|
821
808
|
};
|
|
822
809
|
const Tile = JSX((props) => {
|
|
823
|
-
const { context, title, description, items, children, buttons, image, className = '', version = 'primary', role, anchor = null, } = props;
|
|
824
|
-
return (jsx("section", { className: `overflow-hidden font-sans p-9 pr-3 box-border ${className} ${tileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, role: role, id: anchor, children: jsxs(BaseTile, { context: context, title: title && (jsx(Heading, { headingType:
|
|
825
|
-
${version === 'primary' ? 'text-primary-text' : ''}` })), buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null, image: image?.src && jsx(Img, { className: "mt-auto ml-7", image: image }), children: [description && (jsx(Description, { className: "
|
|
810
|
+
const { context, title, headingType = 'h3', description, items, children, buttons, image, className = '', version = 'primary', role, anchor = null, } = props;
|
|
811
|
+
return (jsx("section", { className: `overflow-hidden font-sans p-9 pr-3 box-border ${className} ${tileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, role: role, id: anchor, children: jsxs(BaseTile, { context: context, title: title && (jsx(Heading, { headingType: headingType, as: "h3", title: title, className: `whitespace-pre-wrap max-w-[600px] ${title ? 'mb-3' : ''}
|
|
812
|
+
${version === 'primary' ? 'text-primary-text' : ''}` })), buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null, image: image?.src && jsx(Img, { className: "mt-auto ml-7", image: image }), children: [description && (jsx(Description, { className: "max-w-[600px] text-title-new-sm font-light", description: description })), children, renderList$1(items, version)] }) }));
|
|
826
813
|
});
|
|
827
814
|
function renderList$1(items, version) {
|
|
828
|
-
return items?.length ? (jsx(List, { items: items, itemClassName: "text-title-
|
|
815
|
+
return items?.length ? (jsx(List, { items: items, itemClassName: "text-title-2xs font-light mt-2", version: version === 'primary' ? 'tile' : 'tile-white' })) : null;
|
|
829
816
|
}
|
|
830
817
|
|
|
831
818
|
const productTileStyleMap = {
|
|
832
819
|
primary: 'bg-white text-primary-text',
|
|
833
820
|
secondary: 'bg-primary-main text-white',
|
|
834
821
|
};
|
|
835
|
-
const ProductTile = JSX(({ context, className = '', title, description, benefits, buttons, image, version = 'primary', anchor = null, }) => {
|
|
836
|
-
return (jsx("section", { className: `bg-white overflow-hidden text-primary-text font-sans p-9 box-border ${className} ${productTileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, id: anchor, children: jsxs(BaseTile, { context: context, title: title && (jsx(Heading, { headingType:
|
|
822
|
+
const ProductTile = JSX(({ context, className = '', title, headingType = 'h3', description, benefits, buttons, image, version = 'primary', anchor = null, }) => {
|
|
823
|
+
return (jsx("section", { className: `bg-white overflow-hidden text-primary-text font-sans p-9 box-border ${className} ${productTileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, id: anchor, children: jsxs(BaseTile, { context: context, title: title && (jsx(Heading, { headingType: headingType, as: "h3", title: title, className: `whitespace-pre-wrap max-w-[600px]` })), buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null, image: image?.src && jsx(Img, { className: "mt-auto ml-7", image: image }), children: [description && jsx(Description, { className: "mt-4 max-w-[600px]", description: description }), jsxs("div", { className: "flex mt-5 mb-1", children: [benefits?.length ? (jsx("div", { className: "mr-8", children: benefits.map(renderBenefitLabel) })) : null, benefits?.length ? (jsx("div", { className: "pt-1", children: benefits.map((_, i) => renderBenefitDescription(_, i, version)) })) : null] })] }) }));
|
|
837
824
|
});
|
|
838
825
|
function renderBenefitLabel(benefit, i) {
|
|
839
826
|
return (jsx("div", { className: `text-xl font-medium ${i ? 'mt-2.5' : ''}`, children: benefit.label }, String(i)));
|
|
@@ -974,7 +961,7 @@
|
|
|
974
961
|
});
|
|
975
962
|
return (jsxs("li", { className: "border-0 border-b border-solid border-main-divider last:border-b-0", children: [jsxs("button", { className: `border-none bg-transparent px-0 py-5 flex justify-between text-left w-full font-sans
|
|
976
963
|
${hasContent ? 'group cursor-pointer' : ''}
|
|
977
|
-
`, onClick: handleToggle, children: [jsx("span", { className: `text-xl pr-2.5 font-medium`, children: label }), hasContent ? jsx(Img, { image: icon, width: "24", height: "24", asSVG: true }) : null] }), hasContent ? (jsx(AccordionItemInner, { isExpanded: isActive, blocks: blocks, context: context })) : null] }));
|
|
964
|
+
`, onClick: handleToggle, children: [jsx("span", { className: `text-xl pr-2.5 font-medium`, children: label }), hasContent ? (jsx(Img, { image: icon, className: "text-primary-main", width: "24", height: "24", asSVG: true })) : null] }), hasContent ? (jsx(AccordionItemInner, { isExpanded: isActive, blocks: blocks, context: context })) : null] }));
|
|
978
965
|
});
|
|
979
966
|
|
|
980
967
|
const Accordion = JSX(({ title, description, accordionItems, context, className = '', anchor = null }) => {
|
|
@@ -1088,6 +1075,19 @@
|
|
|
1088
1075
|
};
|
|
1089
1076
|
const renderIcon = (tab, isActive) => (jsx("div", { className: "h-full mt-1", children: jsx(Img, { className: `w-5 h-5 mr-3 ${isActive ? 'invert-full' : ''}`, image: tab?.icon || 'CardIcon', asSVG: !isActive }) }));
|
|
1090
1077
|
|
|
1078
|
+
function getTileHeadingType(className = '') {
|
|
1079
|
+
const colSpan = getColSpan(className);
|
|
1080
|
+
if (colSpan <= 4) {
|
|
1081
|
+
return 'h4';
|
|
1082
|
+
}
|
|
1083
|
+
else if (colSpan <= 8) {
|
|
1084
|
+
return 'h3';
|
|
1085
|
+
}
|
|
1086
|
+
else {
|
|
1087
|
+
return 'h2';
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
1091
|
function useCreditCalculatorData(useAsyncData, directoryName) {
|
|
1092
1092
|
const { data } = useAsyncData(creditCalculatorUrl(directoryName), fetchCreditCalculatorData);
|
|
1093
1093
|
return data || {};
|
|
@@ -1539,13 +1539,15 @@
|
|
|
1539
1539
|
return (jsxs("section", { className: `bg-white p-16 pt-12 ${className}`, id: anchor, children: [jsx(Heading, { headingType: "h2", className: "text-center", title: title }), jsx("div", { className: "font-light text-base-md text-center mt-3", children: description }), calendar ? renderCalendar(calendar) : null] }));
|
|
1540
1540
|
});
|
|
1541
1541
|
const renderCalendar = (calendar) => {
|
|
1542
|
-
const colCount = calendar.reduce((accumulator, currentValue) => accumulator + currentValue.month.length, 0) || 1;
|
|
1542
|
+
const colCount = calendar.reduce((accumulator, currentValue) => currentValue?.month?.length ? accumulator + currentValue.month.length : accumulator, 0) || 1;
|
|
1543
1543
|
const colSize = 100 / colCount;
|
|
1544
|
-
const mappedCalendar = calendar
|
|
1544
|
+
const mappedCalendar = calendar
|
|
1545
|
+
.filter((_) => _?.month?.length)
|
|
1546
|
+
.map((_) => ({
|
|
1545
1547
|
..._,
|
|
1546
1548
|
flexBasis: `${_.month.length * colSize}%`,
|
|
1547
1549
|
}));
|
|
1548
|
-
return (jsxs("div", { className: "w-full flex flex-col justify-center mt-14", children: [jsx("div", { className: "flex w-full mb-3 font-light text-m-title-md
|
|
1550
|
+
return (jsxs("div", { className: "w-full flex flex-col justify-center mt-14", children: [jsx("div", { className: "flex w-full mb-3 font-light text-m-title-md text-center", children: mappedCalendar.map((_) => renderMonthNames(_, colSize)) }), jsx("div", { className: "flex w-full", children: mappedCalendar.map((_, ind) => (jsxs("div", { className: "pr-3 mr-3 border-r border-r-gray/100 last:border-r-0 last:pr-0 last:mr-0", style: { flexBasis: _.flexBasis }, children: [jsx("div", { className: "flex", children: renderMonthImages(_) }), jsxs("div", { className: "font-light text-sm text-primary-text mt-3", children: [jsx("span", { children: _.blackText }), "\u2009", jsx("span", { className: "text-primary-main", children: _.greenText })] })] }, `monthItem-${ind}`))) })] }));
|
|
1549
1551
|
};
|
|
1550
1552
|
const renderMonthNames = (item, colSize) => item.month.map((_) => (jsx("div", { style: { flexBasis: `${colSize}%` }, children: _.name }, `monthName-${_.name}`)));
|
|
1551
1553
|
const renderMonthImages = (item) => item.month.map((_) => _.image?.src ? (jsx("div", { className: "max-h-[207px] border-r-[1px] pr-3 mr-3 border-r-gray/100 last:border-r-0 last:pr-0 last:mr-0", children: jsx(Img, { image: _.image, className: "flex" }) }, `monthImage-${_.image.src}`)) : null);
|
|
@@ -1726,7 +1728,7 @@
|
|
|
1726
1728
|
|
|
1727
1729
|
const TEXT_CLASSES = 'font-sans font-normal text-sm';
|
|
1728
1730
|
const LINK_CLASSES = 'flex-1 flex items-center justify-center cursor-pointer';
|
|
1729
|
-
const NavigatorTabItem = JSX(({ className = '',
|
|
1731
|
+
const NavigatorTabItem = JSX(({ className = '', text, active, children, onClick, href, target = '_self' }) => (jsx("a", { className: getLinkClasses(className, active), target: target, href: href, onClick: onClick, children: jsx("span", { className: getTextClasses(active), children: text || children }) })));
|
|
1730
1732
|
const getLinkClasses = (className, active) => {
|
|
1731
1733
|
const classes = active ? 'bg-primary-main' : 'group bg-white';
|
|
1732
1734
|
return `${classes} ${LINK_CLASSES} ${className}`;
|
|
@@ -1737,19 +1739,15 @@
|
|
|
1737
1739
|
};
|
|
1738
1740
|
|
|
1739
1741
|
const NavigatorTabs = JSX(({ className = '', navigatorTabs, context, anchor = null }) => {
|
|
1740
|
-
const router = context.useRouter();
|
|
1741
1742
|
const href = globalThis.location?.href; // TODO: remove globalThis, use href from router
|
|
1742
|
-
return (jsx("section", { className: `sticky top-0 z-20 box-border flex gap-x-1 h-12 ${className}`, id: anchor, children: navigatorTabs ? navigatorTabs.map(renderTab(
|
|
1743
|
+
return (jsx("section", { className: `sticky top-0 z-20 box-border flex gap-x-1 h-12 ${className}`, id: anchor, children: navigatorTabs ? navigatorTabs.map(renderTab(context, href)) : null }));
|
|
1743
1744
|
});
|
|
1744
|
-
const renderTab = (
|
|
1745
|
+
const renderTab = (context, href) => (tab, i) => {
|
|
1746
|
+
const { useRouter, handlerDecorator } = context;
|
|
1747
|
+
const router = useRouter();
|
|
1745
1748
|
const hash = getHash(href);
|
|
1746
1749
|
const active = hash ? tab.href === hash : i === 0;
|
|
1747
|
-
return (jsx(NavigatorTabItem, { active: active,
|
|
1748
|
-
};
|
|
1749
|
-
const handleRoute = (router, href) => {
|
|
1750
|
-
if (isURL(href))
|
|
1751
|
-
return; // if href if full URL - move to HTML href action, do not touch router
|
|
1752
|
-
router?.replace(href || '');
|
|
1750
|
+
return (jsx(NavigatorTabItem, { active: active, ...useLink({ router, handlerDecorator }, tab) }, tab.href));
|
|
1753
1751
|
};
|
|
1754
1752
|
|
|
1755
1753
|
const useActiveHandler = ({ context, blocks, initialState = false }) => {
|
|
@@ -1937,7 +1935,7 @@
|
|
|
1937
1935
|
return (jsx("div", { className: "flex flex-col items-center text-center relative", children: jsx("div", { className: "h-[100px] w-[100px] min-w-[100px] min-h-[100px] bg-secondary-light rounded-full p-[26px] box-border z-10", children: (step.icon?.icon && jsx(Img, { image: step.icon, width: "48", height: "48" })) || (jsx("span", { className: "font-normal text-title-sm text-secondary-text", children: i + 1 })) }) }, String(i)));
|
|
1938
1936
|
};
|
|
1939
1937
|
const renderStepTitle = (step, i, isMainButton) => {
|
|
1940
|
-
return (jsxs("div", { className: "flex flex-col items-center justify-between text-center relative w-[276px] whitespace-pre-line overflow-hidden", children: [jsxs("div", { children: [step.label && jsx("div", { className: "font-normal text-xl m-0 mt-4", children: step.label }), step.description && (jsx("div", { className: `font-light text-base text-secondary-text ${step.label ? 'mt-2' : 'mt-4'}`, children: step.description }))] }), step?.button?.text && !isMainButton ? (jsx(Button, { className: "box-border mt-
|
|
1938
|
+
return (jsxs("div", { className: "flex flex-col items-center justify-between text-center relative w-[276px] whitespace-pre-line overflow-hidden", children: [jsxs("div", { children: [step.label && jsx("div", { className: "font-normal text-xl m-0 mt-4", children: step.label }), step.description && (jsx("div", { className: `font-light text-base text-secondary-text ${step.label ? 'mt-2' : 'mt-4'}`, children: step.description }))] }), step?.button?.text && !isMainButton ? (jsx(Button, { className: "box-border mt-8 py-3 h-12 w-full max-w-[240px]", version: "primary", href: "#", children: step.button.text })) : null] }, String(i)));
|
|
1941
1939
|
};
|
|
1942
1940
|
|
|
1943
1941
|
const DIVIDER_CLASSES = 'border-main-divider border border-t-0 border-x-0';
|