@redneckz/wildless-cms-uni-blocks 0.14.321 → 0.14.322
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/migration-scripts/0.14.317.js +13 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +9 -5
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/data/FooterData.d.ts +6 -3
- package/bundle/icons/IconName.d.ts +4 -2
- package/cosmos-static/icons/RustoreIcon.svg +1 -0
- package/cosmos-static/icons/sprites.svg +1 -0
- package/dist/components/Footer/Footer.js +2 -2
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +4 -2
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/SocialMedia.js +1 -1
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/Footer/TextInformation.js +1 -1
- package/dist/components/Footer/TextInformation.js.map +1 -1
- package/dist/components/Footer/iconsMap.js +4 -0
- package/dist/components/Footer/iconsMap.js.map +1 -1
- package/dist/data/FooterData.d.ts +6 -3
- package/dist/icons/IconName.d.ts +4 -2
- package/dist/icons/IconName.js +2 -0
- package/dist/icons/IconName.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Footer/Footer.fixture.d.ts +1 -0
- package/lib/components/Footer/Footer.fixture.mobile.d.ts +1 -0
- package/lib/components/Footer/Footer.js +2 -2
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +4 -2
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/SocialMedia.js +1 -1
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/Footer/TextInformation.js +1 -1
- package/lib/components/Footer/TextInformation.js.map +1 -1
- package/lib/components/Footer/iconsMap.js +4 -0
- package/lib/components/Footer/iconsMap.js.map +1 -1
- package/lib/data/FooterData.d.ts +6 -3
- package/lib/icons/IconName.d.ts +4 -2
- package/lib/icons/IconName.js +2 -0
- package/lib/icons/IconName.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +10 -5
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/data/FooterData.d.ts +6 -3
- package/mobile/bundle/icons/IconName.d.ts +4 -2
- package/mobile/dist/components/Footer/Footer.js +4 -2
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/SocialMedia.js +1 -1
- package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/dist/components/Footer/TextInformation.js +1 -1
- package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
- package/mobile/dist/components/Footer/iconsMap.js +4 -0
- package/mobile/dist/components/Footer/iconsMap.js.map +1 -1
- package/mobile/dist/data/FooterData.d.ts +6 -3
- package/mobile/dist/icons/IconName.d.ts +4 -2
- package/mobile/dist/icons/IconName.js +2 -0
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/Footer/Footer.js +4 -2
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/SocialMedia.js +1 -1
- package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/lib/components/Footer/TextInformation.js +1 -1
- package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
- package/mobile/lib/components/Footer/iconsMap.js +4 -0
- package/mobile/lib/components/Footer/iconsMap.js.map +1 -1
- package/mobile/lib/data/FooterData.d.ts +6 -3
- package/mobile/lib/icons/IconName.d.ts +4 -2
- package/mobile/lib/icons/IconName.js +2 -0
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/src/components/Footer/Footer.tsx +26 -32
- package/mobile/src/components/Footer/SocialMedia.tsx +1 -1
- package/mobile/src/components/Footer/TextInformation.tsx +9 -7
- package/mobile/src/components/Footer/iconsMap.ts +4 -0
- package/mobile/src/data/FooterData.ts +6 -3
- package/mobile/src/icons/IconName.ts +4 -4
- package/mobile/src/icons/RustoreIcon.svg +4 -0
- package/package.json +1 -1
- package/src/components/Footer/Footer.fixture.mobile.tsx +10 -0
- package/src/components/Footer/Footer.fixture.tsx +15 -6
- package/src/components/Footer/Footer.mobile.tsx +26 -32
- package/src/components/Footer/Footer.tsx +10 -10
- package/src/components/Footer/SocialMedia.tsx +1 -1
- package/src/components/Footer/TextInformation.tsx +9 -7
- package/src/components/Footer/iconsMap.ts +4 -0
- package/src/data/FooterData.ts +6 -3
- package/src/icons/IconName.ts +4 -1
- package/src/icons/RustoreIcon.svg +4 -0
|
@@ -24,8 +24,7 @@ export const Footer = UniBlock<FooterProps>(({ className, footer, ...rest }) =>
|
|
|
24
24
|
documents,
|
|
25
25
|
relatedEnterprises,
|
|
26
26
|
contacts,
|
|
27
|
-
|
|
28
|
-
mobileApps,
|
|
27
|
+
mediaLinks = [],
|
|
29
28
|
feedbackButton,
|
|
30
29
|
isOldVersionButton,
|
|
31
30
|
license,
|
|
@@ -40,8 +39,8 @@ export const Footer = UniBlock<FooterProps>(({ className, footer, ...rest }) =>
|
|
|
40
39
|
const linkStyle = '!text-left text-s font-light';
|
|
41
40
|
|
|
42
41
|
return (
|
|
43
|
-
<BlockWrapper tag="footer" className={className} {...rest}>
|
|
44
|
-
<div className="flex items-stretch gap-3xl
|
|
42
|
+
<BlockWrapper tag="footer" className={style('space-y-xl', className)} {...rest}>
|
|
43
|
+
<div className="flex items-stretch gap-3xl">
|
|
45
44
|
<Logo className={LEFT_COL_WIDTH} logo={logoProps} data={dataFooter} />
|
|
46
45
|
<SearchBar className="grow" {...sitemap} />
|
|
47
46
|
</div>
|
|
@@ -49,12 +48,13 @@ export const Footer = UniBlock<FooterProps>(({ className, footer, ...rest }) =>
|
|
|
49
48
|
<div className={style(LEFT_COL_WIDTH, 'flex flex-col shrink-0 overflow-hidden space-y-xl')}>
|
|
50
49
|
<Contacts items={contacts} />
|
|
51
50
|
{feedbackButton ? (
|
|
52
|
-
<LinkButton className="w-full
|
|
51
|
+
<LinkButton className="w-full" version="primary" {...feedbackButton} />
|
|
53
52
|
) : null}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
{mediaLinks.map((_, i) => (
|
|
54
|
+
<SocialMedia key={String(i)} media={_?.links ?? []} showButtonText={false}>
|
|
55
|
+
{_?.title}
|
|
56
|
+
</SocialMedia>
|
|
57
|
+
))}
|
|
58
58
|
{isOldVersionButton ? (
|
|
59
59
|
<LinkButton
|
|
60
60
|
version="link"
|
|
@@ -73,7 +73,7 @@ export const Footer = UniBlock<FooterProps>(({ className, footer, ...rest }) =>
|
|
|
73
73
|
</div>
|
|
74
74
|
<Sitemap className="flex-grow flex-wrap" {...sitemap} />
|
|
75
75
|
</div>
|
|
76
|
-
<HorizontalNavigation
|
|
76
|
+
<HorizontalNavigation links={relatedEnterprises} />
|
|
77
77
|
<TextInformation links={documents} license={license} />
|
|
78
78
|
</BlockWrapper>
|
|
79
79
|
);
|
|
@@ -48,7 +48,7 @@ export const SocialMedia = JSX<SocialMediaProps>(
|
|
|
48
48
|
);
|
|
49
49
|
|
|
50
50
|
return (
|
|
51
|
-
<div className={style('flex flex-col gap-xs', className)}>
|
|
51
|
+
<div className={style('flex flex-col gap-m xl:gap-xs', className)}>
|
|
52
52
|
<div className="flex gap-xs">
|
|
53
53
|
{renderButtonsSection(buttons, {
|
|
54
54
|
className: style(stretched || hasText ? 'basis-full' : ''),
|
|
@@ -5,14 +5,16 @@ import { type FooterLink } from './FooterLink';
|
|
|
5
5
|
import { TextInformationLink } from './TextInformationLink';
|
|
6
6
|
|
|
7
7
|
export const TextInformation = JSX<FooterLink>(({ className = '', links, license }) => (
|
|
8
|
-
<div className={style('@container', className)}>
|
|
9
|
-
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
<div className={style('@container space-y-lg', className)}>
|
|
9
|
+
{license ? (
|
|
10
|
+
<div>
|
|
11
|
+
<Text size="text-xs" font="font-light" color="text-secondary-text">
|
|
12
|
+
{`\u00a9\u00A02000-${new Date().getFullYear()}\u00A0${license}`}
|
|
13
|
+
</Text>
|
|
14
|
+
</div>
|
|
15
|
+
) : null}
|
|
14
16
|
{links?.length ? (
|
|
15
|
-
<div className="flex flex-col @5xl:flex-row justify-start items-start gap-x-lg gap-y-xs
|
|
17
|
+
<div className="flex flex-col @5xl:flex-row justify-start items-start gap-x-lg gap-y-xs">
|
|
16
18
|
{links.map((_, i) => (
|
|
17
19
|
<TextInformationLink key={String(i)} index={i} {..._} />
|
|
18
20
|
))}
|
package/src/data/FooterData.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type DescriptionProps, type TextProps } from '../model/HeadlineType';
|
|
1
|
+
import { type DescriptionProps, type TextProps, type TitleProps } from '../model/HeadlineType';
|
|
2
2
|
import { type LinkProps } from '../model/LinkProps';
|
|
3
3
|
import { type LinkButtonContent } from '../ui-kit/LinkButton/LinkButtonContent';
|
|
4
4
|
|
|
@@ -28,14 +28,17 @@ export type ContactGroup = {
|
|
|
28
28
|
items?: ContactInfo[];
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
+
type MediaLinkItems = TitleProps & {
|
|
32
|
+
links: LinkButtonContent[];
|
|
33
|
+
};
|
|
34
|
+
|
|
31
35
|
export interface FooterData {
|
|
32
36
|
documents?: LinkProps[];
|
|
33
37
|
relatedEnterprises?: LinkProps[];
|
|
34
38
|
contacts?: ContactGroup[];
|
|
35
|
-
socialMedia?: LinkButtonContent[];
|
|
36
|
-
mobileApps?: LinkButtonContent[];
|
|
37
39
|
feedbackButton?: LinkButtonContent;
|
|
38
40
|
otherLinks?: LinkProps[];
|
|
41
|
+
mediaLinks?: MediaLinkItems[];
|
|
39
42
|
isOldVersionButton?: boolean;
|
|
40
43
|
license?: string;
|
|
41
44
|
horizontalNavigationTitle?: string; // TODO: для мобильной версии
|
package/src/icons/IconName.ts
CHANGED
|
@@ -117,6 +117,7 @@ export enum IconMap {
|
|
|
117
117
|
ResponseFailIcon = 'ResponseFailIcon',
|
|
118
118
|
ResponseOKIcon = 'ResponseOKIcon',
|
|
119
119
|
RoundRubleIcon = 'RoundRubleIcon',
|
|
120
|
+
RustoreIcon = 'RustoreIcon',
|
|
120
121
|
RutubeIcon = 'RutubeIcon',
|
|
121
122
|
SafeIcon = 'SafeIcon',
|
|
122
123
|
SecurityСardIcon = 'SecurityСardIcon',
|
|
@@ -223,6 +224,7 @@ export enum IconTitleMap {
|
|
|
223
224
|
ResponseFailIcon = 'Ошибка',
|
|
224
225
|
ResponseOKIcon = 'Ок',
|
|
225
226
|
RoundRubleIcon = 'Рубль (круг.)',
|
|
227
|
+
RustoreIcon = 'Лого «Rustore»',
|
|
226
228
|
RutubeIcon = 'Лого «Rutube»',
|
|
227
229
|
SafeIcon = 'Сейф',
|
|
228
230
|
SecurityСardIcon = 'Безопасность',
|
|
@@ -246,7 +248,7 @@ export enum IconTitleMap {
|
|
|
246
248
|
* @title Иконка
|
|
247
249
|
* @enumNames [
|
|
248
250
|
* "",
|
|
249
|
-
* 'Достижение', 'Деньги', 'Лого «Apple»', 'Стрелка \'Вниз\'', 'Стрелка сплошная \'Вниз\'', 'Стрелка \'Влево\'', 'Стрелка \'Вправо\'', 'Стрелка \'Вверх-право\'', 'Стрелка \'Вверх\'', 'Стрелка сплошная \'Вверх\'', 'Банкомат', 'Банк', 'Белорусский флаг', 'Портфель', 'Здание с деревом', 'Бургер', 'Скруглённый календарь', 'Календарь', 'Календарь с галочкой', 'Кред. карта', 'Кред. карта под наклоном', 'Карта', 'Кред. карта с галочкой', 'Инвестиции', 'Диаграмма (в круге)', 'Деньги внутри кошелька', 'Стрелка \'Влево\'', 'Китайский юань', 'Клиент', 'Крестик', 'Монеты', 'Конвертирование', 'Копирование', 'Здание суда', 'Кубок', 'Разработка', 'Скидка', 'Скачать документ', 'Документ', 'Доллар', 'Зелёная \'галочка\' в круге', 'Зелёная \'галочка\'', 'Лого «Дзен»', 'Пустой кошелёк с возвратом', 'Пустой кошелёк', 'Евро', 'Факс', 'FullScreenIcon', 'Геолокация', 'Глобус', 'Gps', 'Сетка (белая)', 'HeadphonesIcon', 'Сердце', 'Сердцебеение', 'Ипотека', 'Лого «Huawei»', 'Замок', 'Logo', 'Лупа', 'MagnifierIcon', 'E-mail', 'Маркер карты', 'Маркер карты РСХБ', 'Иконка Развёрнутая карта', 'Минус', 'Деньги', 'Денежное страхование', 'Монитор и мобильный', 'Новый документ', 'Колокольчик нотификаций', 'Лого «Одноклассники»', 'Пачка бумаги А4', 'Бизнес', 'Проценты (круг.)', 'PercentIcon', 'Персональная карта', 'Звонящий телефон', 'Телефон', 'Лого «PlayMarket»', 'Плюс в круге', 'Плюс', 'Профиль, 2 персоны', 'Профиль', 'Ошибка', 'Ок', 'Рубль (круг.)', 'Лого «Rutube»', 'Сейф', 'Безопасность', 'Безопасность', 'Подписанные документы', 'Маленькие часы', 'Кольцо', 'Лого «Telegram»', 'Самолётик', 'Пользователь в рамке', 'Пользователь', 'Лого «VK»', 'Кошелёк с плюсом', 'Кошелёк', 'Кошелёк с деньгами', 'Лого «Youtube»'
|
|
251
|
+
* 'Достижение', 'Деньги', 'Лого «Apple»', 'Стрелка \'Вниз\'', 'Стрелка сплошная \'Вниз\'', 'Стрелка \'Влево\'', 'Стрелка \'Вправо\'', 'Стрелка \'Вверх-право\'', 'Стрелка \'Вверх\'', 'Стрелка сплошная \'Вверх\'', 'Банкомат', 'Банк', 'Белорусский флаг', 'Портфель', 'Здание с деревом', 'Бургер', 'Скруглённый календарь', 'Календарь', 'Календарь с галочкой', 'Кред. карта', 'Кред. карта под наклоном', 'Карта', 'Кред. карта с галочкой', 'Инвестиции', 'Диаграмма (в круге)', 'Деньги внутри кошелька', 'Стрелка \'Влево\'', 'Китайский юань', 'Клиент', 'Крестик', 'Монеты', 'Конвертирование', 'Копирование', 'Здание суда', 'Кубок', 'Разработка', 'Скидка', 'Скачать документ', 'Документ', 'Доллар', 'Зелёная \'галочка\' в круге', 'Зелёная \'галочка\'', 'Лого «Дзен»', 'Пустой кошелёк с возвратом', 'Пустой кошелёк', 'Евро', 'Факс', 'FullScreenIcon', 'Геолокация', 'Глобус', 'Gps', 'Сетка (белая)', 'HeadphonesIcon', 'Сердце', 'Сердцебеение', 'Ипотека', 'Лого «Huawei»', 'Замок', 'Logo', 'Лупа', 'MagnifierIcon', 'E-mail', 'Маркер карты', 'Маркер карты РСХБ', 'Иконка Развёрнутая карта', 'Минус', 'Деньги', 'Денежное страхование', 'Монитор и мобильный', 'Новый документ', 'Колокольчик нотификаций', 'Лого «Одноклассники»', 'Пачка бумаги А4', 'Бизнес', 'Проценты (круг.)', 'PercentIcon', 'Персональная карта', 'Звонящий телефон', 'Телефон', 'Лого «PlayMarket»', 'Плюс в круге', 'Плюс', 'Профиль, 2 персоны', 'Профиль', 'Ошибка', 'Ок', 'Рубль (круг.)', 'Лого «Rustore»', 'Лого «Rutube»', 'Сейф', 'Безопасность', 'Безопасность', 'Подписанные документы', 'Маленькие часы', 'Кольцо', 'Лого «Telegram»', 'Самолётик', 'Пользователь в рамке', 'Пользователь', 'Лого «VK»', 'Кошелёк с плюсом', 'Кошелёк', 'Кошелёк с деньгами', 'Лого «Youtube»'
|
|
250
252
|
* ]
|
|
251
253
|
*/
|
|
252
254
|
export type IconName =
|
|
@@ -338,6 +340,7 @@ export type IconName =
|
|
|
338
340
|
| 'ResponseFailIcon'
|
|
339
341
|
| 'ResponseOKIcon'
|
|
340
342
|
| 'RoundRubleIcon'
|
|
343
|
+
| 'RustoreIcon'
|
|
341
344
|
| 'RutubeIcon'
|
|
342
345
|
| 'SafeIcon'
|
|
343
346
|
| 'SecurityСardIcon'
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg title="Лого «Rustore»" isInverse="true" viewBox="0 0 22 21" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M1.49708 19.5238C2.99422 21 5.40383 21 10.2231 21H11.0749C15.8942 21 18.3038 21 19.8009 19.5238C21.298 18.0477 21.298 15.6718 21.298 10.92V10.08C21.298 5.32819 21.298 2.95232 19.8009 1.47613C18.3038 0 15.8942 0 11.0749 0H10.2231C5.40383 0 2.99422 0 1.49708 1.47613C5.67572e-07 2.95232 0 5.32819 0 10.08V10.92C0 15.6718 5.67572e-07 18.0477 1.49708 19.5238Z" fill="currentColor"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M16.4426 13.958L15.0035 13.6035C14.8302 13.5544 14.7079 13.4007 14.7017 13.2221L14.5221 7.99963C14.4702 7.30843 13.9498 6.75864 13.406 6.59676C13.3755 6.58766 13.3428 6.59992 13.3247 6.6258C13.3064 6.65217 13.3135 6.68859 13.3391 6.70811C13.4734 6.81066 13.843 7.14513 13.843 7.72206L13.8419 14.5502C13.8419 15.2095 13.2101 15.6931 12.5583 15.5326L11.097 15.1726C10.935 15.1168 10.8224 14.968 10.8165 14.7963L10.637 9.57354C10.585 8.88235 10.0646 8.33261 9.52084 8.17067C9.49031 8.16163 9.45769 8.17383 9.4396 8.19972C9.42127 8.22608 9.42835 8.26251 9.45394 8.28208C9.58827 8.38457 9.95785 8.71904 9.95785 9.29597L9.95678 14.9876L9.95761 14.9877V16.1248C9.95761 16.7841 9.32569 17.2677 8.67395 17.1071L4.54646 16.0905C3.97263 15.9492 3.57031 15.4431 3.57031 14.8626V8.02373C3.57031 7.36444 4.20217 6.88088 4.85391 7.04139L7.45468 7.682V6.44917C7.45468 5.78987 8.08655 5.30626 8.73829 5.46683L11.3389 6.10738V4.87454C11.3389 4.21524 11.9707 3.73163 12.6225 3.8922L16.75 4.90882C17.3239 5.05017 17.7262 5.55628 17.7262 6.13678V12.9756C17.7262 13.6349 17.0943 14.1185 16.4426 13.958Z" fill="white"/>
|
|
4
|
+
</svg>
|