@cloud-ru/uikit-product-site-hero 0.5.40 → 0.5.41
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/CHANGELOG.md +11 -0
- package/dist/cjs/components/HeroEvent/HeroEvent.d.ts +33 -0
- package/dist/cjs/components/HeroEvent/HeroEvent.js +34 -0
- package/dist/cjs/components/HeroEvent/constants.d.ts +20 -0
- package/dist/cjs/components/HeroEvent/constants.js +23 -0
- package/dist/cjs/components/HeroEvent/index.d.ts +1 -0
- package/dist/cjs/components/HeroEvent/index.js +17 -0
- package/dist/cjs/components/HeroEvent/styles.module.css +135 -0
- package/dist/cjs/components/HeroEvent/types.d.ts +4 -0
- package/dist/cjs/components/HeroEvent/types.js +2 -0
- package/dist/cjs/components/HeroMain/HeroMain.d.ts +36 -0
- package/dist/cjs/components/HeroMain/HeroMain.js +40 -0
- package/dist/cjs/components/HeroMain/components/PlatformLink/PlatformLink.d.ts +12 -0
- package/dist/cjs/components/HeroMain/components/PlatformLink/PlatformLink.js +11 -0
- package/dist/cjs/components/HeroMain/components/PlatformLink/index.d.ts +1 -0
- package/dist/cjs/components/HeroMain/components/PlatformLink/index.js +17 -0
- package/dist/cjs/components/HeroMain/components/index.d.ts +1 -0
- package/dist/cjs/components/HeroMain/components/index.js +17 -0
- package/dist/cjs/components/HeroMain/index.d.ts +1 -0
- package/dist/cjs/components/HeroMain/index.js +17 -0
- package/dist/cjs/components/HeroMain/styles.module.css +128 -0
- package/dist/cjs/components/HeroMain/utils.d.ts +3 -0
- package/dist/cjs/components/HeroMain/utils.js +16 -0
- package/dist/cjs/components/HeroSlider/HeroSlider.d.ts +13 -0
- package/dist/cjs/components/HeroSlider/HeroSlider.js +36 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlide/HeroSlide.d.ts +5 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlide/HeroSlide.js +19 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlide/constants.d.ts +11 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlide/constants.js +14 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlide/index.d.ts +2 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlide/index.js +17 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlide/styles.module.css +110 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlide/types.d.ts +33 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlide/types.js +2 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlide/util.d.ts +6 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlide/util.js +30 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlideImage/HeroSlideImage.d.ts +11 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlideImage/HeroSlideImage.js +16 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlideImage/index.d.ts +1 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlideImage/index.js +17 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlideImage/styles.module.css +24 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlideImageBg/HeroSlideImageBg.d.ts +11 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlideImageBg/HeroSlideImageBg.js +12 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlideImageBg/index.d.ts +1 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlideImageBg/index.js +17 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlideImageBg/styles.module.css +20 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlideMedia/HeroSlideMedia.d.ts +3 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlideMedia/HeroSlideMedia.js +19 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlideMedia/index.d.ts +2 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlideMedia/index.js +17 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlideMedia/types.d.ts +14 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlideMedia/types.js +2 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlideVideoBg/HTMLComment.d.ts +5 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlideVideoBg/HTMLComment.js +31 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlideVideoBg/HeroSlideVideoBg.d.ts +8 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlideVideoBg/HeroSlideVideoBg.js +15 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlideVideoBg/index.d.ts +1 -0
- package/dist/cjs/components/HeroSlider/components/HeroSlideVideoBg/index.js +17 -0
- package/dist/cjs/components/HeroSlider/components/index.d.ts +5 -0
- package/dist/cjs/components/HeroSlider/components/index.js +21 -0
- package/dist/cjs/components/HeroSlider/index.d.ts +2 -0
- package/dist/cjs/components/HeroSlider/index.js +18 -0
- package/dist/cjs/components/HeroSlider/styles.module.css +24 -0
- package/dist/cjs/components/HeroZero/HeroZero.d.ts +23 -0
- package/dist/cjs/components/HeroZero/HeroZero.js +32 -0
- package/dist/cjs/components/HeroZero/index.d.ts +1 -0
- package/dist/cjs/components/HeroZero/index.js +17 -0
- package/dist/cjs/components/HeroZero/styles.module.css +89 -0
- package/dist/cjs/components/HeroZero/utils.d.ts +3 -0
- package/dist/cjs/components/HeroZero/utils.js +15 -0
- package/dist/cjs/components/index.d.ts +4 -0
- package/dist/cjs/components/index.js +20 -0
- package/dist/cjs/constants.d.ts +11 -0
- package/dist/cjs/constants.js +14 -0
- package/dist/cjs/helperComponents/HeroEventButton/HeroEventButton.d.ts +11 -0
- package/dist/cjs/helperComponents/HeroEventButton/HeroEventButton.js +12 -0
- package/dist/cjs/helperComponents/HeroEventButton/constants.d.ts +9 -0
- package/dist/cjs/helperComponents/HeroEventButton/constants.js +12 -0
- package/dist/cjs/helperComponents/HeroEventButton/index.d.ts +1 -0
- package/dist/cjs/helperComponents/HeroEventButton/index.js +17 -0
- package/dist/cjs/helperComponents/HeroEventButton/types.d.ts +3 -0
- package/dist/cjs/helperComponents/HeroEventButton/types.js +2 -0
- package/dist/cjs/helperComponents/HeroNavbar/HeroNavbar.d.ts +6 -0
- package/dist/cjs/helperComponents/HeroNavbar/HeroNavbar.js +13 -0
- package/dist/cjs/helperComponents/HeroNavbar/index.d.ts +1 -0
- package/dist/cjs/helperComponents/HeroNavbar/index.js +17 -0
- package/dist/cjs/helperComponents/HeroNavbar/styles.module.css +15 -0
- package/dist/cjs/helperComponents/Place/Place.d.ts +7 -0
- package/dist/cjs/helperComponents/Place/Place.js +12 -0
- package/dist/cjs/helperComponents/Place/constants.d.ts +12 -0
- package/dist/cjs/helperComponents/Place/constants.js +35 -0
- package/dist/cjs/helperComponents/Place/index.d.ts +1 -0
- package/dist/cjs/helperComponents/Place/index.js +17 -0
- package/dist/cjs/helperComponents/Place/styles.module.css +3 -0
- package/dist/cjs/helperComponents/index.d.ts +3 -0
- package/dist/cjs/helperComponents/index.js +19 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +17 -0
- package/dist/cjs/types.d.ts +3 -0
- package/dist/cjs/types.js +2 -0
- package/dist/esm/components/HeroEvent/HeroEvent.d.ts +33 -0
- package/dist/esm/components/HeroEvent/HeroEvent.js +28 -0
- package/dist/esm/components/HeroEvent/constants.d.ts +20 -0
- package/dist/esm/components/HeroEvent/constants.js +20 -0
- package/dist/esm/components/HeroEvent/index.d.ts +1 -0
- package/dist/esm/components/HeroEvent/index.js +1 -0
- package/dist/esm/components/HeroEvent/styles.module.css +135 -0
- package/dist/esm/components/HeroEvent/types.d.ts +4 -0
- package/dist/esm/components/HeroEvent/types.js +1 -0
- package/dist/esm/components/HeroMain/HeroMain.d.ts +36 -0
- package/dist/esm/components/HeroMain/HeroMain.js +34 -0
- package/dist/esm/components/HeroMain/components/PlatformLink/PlatformLink.d.ts +12 -0
- package/dist/esm/components/HeroMain/components/PlatformLink/PlatformLink.js +8 -0
- package/dist/esm/components/HeroMain/components/PlatformLink/index.d.ts +1 -0
- package/dist/esm/components/HeroMain/components/PlatformLink/index.js +1 -0
- package/dist/esm/components/HeroMain/components/index.d.ts +1 -0
- package/dist/esm/components/HeroMain/components/index.js +1 -0
- package/dist/esm/components/HeroMain/index.d.ts +1 -0
- package/dist/esm/components/HeroMain/index.js +1 -0
- package/dist/esm/components/HeroMain/styles.module.css +128 -0
- package/dist/esm/components/HeroMain/utils.d.ts +3 -0
- package/dist/esm/components/HeroMain/utils.js +12 -0
- package/dist/esm/components/HeroSlider/HeroSlider.d.ts +13 -0
- package/dist/esm/components/HeroSlider/HeroSlider.js +30 -0
- package/dist/esm/components/HeroSlider/components/HeroSlide/HeroSlide.d.ts +5 -0
- package/dist/esm/components/HeroSlider/components/HeroSlide/HeroSlide.js +13 -0
- package/dist/esm/components/HeroSlider/components/HeroSlide/constants.d.ts +11 -0
- package/dist/esm/components/HeroSlider/components/HeroSlide/constants.js +11 -0
- package/dist/esm/components/HeroSlider/components/HeroSlide/index.d.ts +2 -0
- package/dist/esm/components/HeroSlider/components/HeroSlide/index.js +1 -0
- package/dist/esm/components/HeroSlider/components/HeroSlide/styles.module.css +110 -0
- package/dist/esm/components/HeroSlider/components/HeroSlide/types.d.ts +33 -0
- package/dist/esm/components/HeroSlider/components/HeroSlide/types.js +1 -0
- package/dist/esm/components/HeroSlider/components/HeroSlide/util.d.ts +6 -0
- package/dist/esm/components/HeroSlider/components/HeroSlide/util.js +25 -0
- package/dist/esm/components/HeroSlider/components/HeroSlideImage/HeroSlideImage.d.ts +11 -0
- package/dist/esm/components/HeroSlider/components/HeroSlideImage/HeroSlideImage.js +10 -0
- package/dist/esm/components/HeroSlider/components/HeroSlideImage/index.d.ts +1 -0
- package/dist/esm/components/HeroSlider/components/HeroSlideImage/index.js +1 -0
- package/dist/esm/components/HeroSlider/components/HeroSlideImage/styles.module.css +24 -0
- package/dist/esm/components/HeroSlider/components/HeroSlideImageBg/HeroSlideImageBg.d.ts +11 -0
- package/dist/esm/components/HeroSlider/components/HeroSlideImageBg/HeroSlideImageBg.js +6 -0
- package/dist/esm/components/HeroSlider/components/HeroSlideImageBg/index.d.ts +1 -0
- package/dist/esm/components/HeroSlider/components/HeroSlideImageBg/index.js +1 -0
- package/dist/esm/components/HeroSlider/components/HeroSlideImageBg/styles.module.css +20 -0
- package/dist/esm/components/HeroSlider/components/HeroSlideMedia/HeroSlideMedia.d.ts +3 -0
- package/dist/esm/components/HeroSlider/components/HeroSlideMedia/HeroSlideMedia.js +16 -0
- package/dist/esm/components/HeroSlider/components/HeroSlideMedia/index.d.ts +2 -0
- package/dist/esm/components/HeroSlider/components/HeroSlideMedia/index.js +1 -0
- package/dist/esm/components/HeroSlider/components/HeroSlideMedia/types.d.ts +14 -0
- package/dist/esm/components/HeroSlider/components/HeroSlideMedia/types.js +1 -0
- package/dist/esm/components/HeroSlider/components/HeroSlideVideoBg/HTMLComment.d.ts +5 -0
- package/dist/esm/components/HeroSlider/components/HeroSlideVideoBg/HTMLComment.js +28 -0
- package/dist/esm/components/HeroSlider/components/HeroSlideVideoBg/HeroSlideVideoBg.d.ts +8 -0
- package/dist/esm/components/HeroSlider/components/HeroSlideVideoBg/HeroSlideVideoBg.js +12 -0
- package/dist/esm/components/HeroSlider/components/HeroSlideVideoBg/index.d.ts +1 -0
- package/dist/esm/components/HeroSlider/components/HeroSlideVideoBg/index.js +1 -0
- package/dist/esm/components/HeroSlider/components/index.d.ts +5 -0
- package/dist/esm/components/HeroSlider/components/index.js +5 -0
- package/dist/esm/components/HeroSlider/index.d.ts +2 -0
- package/dist/esm/components/HeroSlider/index.js +2 -0
- package/dist/esm/components/HeroSlider/styles.module.css +24 -0
- package/dist/esm/components/HeroZero/HeroZero.d.ts +23 -0
- package/dist/esm/components/HeroZero/HeroZero.js +26 -0
- package/dist/esm/components/HeroZero/index.d.ts +1 -0
- package/dist/esm/components/HeroZero/index.js +1 -0
- package/dist/esm/components/HeroZero/styles.module.css +89 -0
- package/dist/esm/components/HeroZero/utils.d.ts +3 -0
- package/dist/esm/components/HeroZero/utils.js +11 -0
- package/dist/esm/components/index.d.ts +4 -0
- package/dist/esm/components/index.js +4 -0
- package/dist/esm/constants.d.ts +11 -0
- package/dist/esm/constants.js +11 -0
- package/dist/esm/helperComponents/HeroEventButton/HeroEventButton.d.ts +11 -0
- package/dist/esm/helperComponents/HeroEventButton/HeroEventButton.js +9 -0
- package/dist/esm/helperComponents/HeroEventButton/constants.d.ts +9 -0
- package/dist/esm/helperComponents/HeroEventButton/constants.js +9 -0
- package/dist/esm/helperComponents/HeroEventButton/index.d.ts +1 -0
- package/dist/esm/helperComponents/HeroEventButton/index.js +1 -0
- package/dist/esm/helperComponents/HeroEventButton/types.d.ts +3 -0
- package/dist/esm/helperComponents/HeroEventButton/types.js +1 -0
- package/dist/esm/helperComponents/HeroNavbar/HeroNavbar.d.ts +6 -0
- package/dist/esm/helperComponents/HeroNavbar/HeroNavbar.js +7 -0
- package/dist/esm/helperComponents/HeroNavbar/index.d.ts +1 -0
- package/dist/esm/helperComponents/HeroNavbar/index.js +1 -0
- package/dist/esm/helperComponents/HeroNavbar/styles.module.css +15 -0
- package/dist/esm/helperComponents/Place/Place.d.ts +7 -0
- package/dist/esm/helperComponents/Place/Place.js +6 -0
- package/dist/esm/helperComponents/Place/constants.d.ts +12 -0
- package/dist/esm/helperComponents/Place/constants.js +32 -0
- package/dist/esm/helperComponents/Place/index.d.ts +1 -0
- package/dist/esm/helperComponents/Place/index.js +1 -0
- package/dist/esm/helperComponents/Place/styles.module.css +3 -0
- package/dist/esm/helperComponents/index.d.ts +3 -0
- package/dist/esm/helperComponents/index.js +3 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/types.d.ts +3 -0
- package/dist/esm/types.js +1 -0
- package/package.json +11 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 0.5.41 (2025-11-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **PD-3377:** contributors update to publish all packages ([719fd3e](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/719fd3e1249e247443b125c47ea408d92c8395c3))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## 0.5.40 (2025-11-12)
|
|
7
18
|
|
|
8
19
|
### Only dependencies have been changed
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { WithLayoutType, WithSupportProps } from '@sbercloud/uikit-product-utils';
|
|
2
|
+
import { BreadcrumbsProps } from '@snack-uikit/breadcrumbs';
|
|
3
|
+
import { PromoTagProps } from '@snack-uikit/promo-tag';
|
|
4
|
+
import { HeroButtonProps, PlaceProps } from '../../helperComponents';
|
|
5
|
+
import { HeroColor } from '../../types';
|
|
6
|
+
import { Audience, Format } from './types';
|
|
7
|
+
export type HeroEventProps = WithSupportProps<{
|
|
8
|
+
/** CSS - класснейм */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** Заголовок события */
|
|
11
|
+
title: string;
|
|
12
|
+
/** Начало события события */
|
|
13
|
+
startsAt: string;
|
|
14
|
+
/** Место проведения события */
|
|
15
|
+
place: Omit<PlaceProps, 'title'> & {
|
|
16
|
+
title?: PlaceProps['title'];
|
|
17
|
+
};
|
|
18
|
+
/** Ссылка на изображение */
|
|
19
|
+
image: string;
|
|
20
|
+
/** Цвета фона */
|
|
21
|
+
backgroundColor?: HeroColor;
|
|
22
|
+
/** Категория события */
|
|
23
|
+
category?: PromoTagProps;
|
|
24
|
+
/** Формат проведения события */
|
|
25
|
+
format?: Format;
|
|
26
|
+
/** Аудитория, для которой проводится событие */
|
|
27
|
+
audience?: Audience;
|
|
28
|
+
/** Хлебные крошки для события */
|
|
29
|
+
breadcrumbs: BreadcrumbsProps['items'];
|
|
30
|
+
/** Настройки кнопки */
|
|
31
|
+
button: HeroButtonProps;
|
|
32
|
+
}> & WithLayoutType;
|
|
33
|
+
export declare function HeroEvent({ className, title, breadcrumbs, backgroundColor, category, format, audience, startsAt, place, image, button, layoutType, ...rest }: HeroEventProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.HeroEvent = HeroEvent;
|
|
18
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
20
|
+
const uikit_product_site_layout_1 = require("@sbercloud/uikit-product-site-layout");
|
|
21
|
+
const uikit_product_utils_1 = require("@sbercloud/uikit-product-utils");
|
|
22
|
+
const breadcrumbs_1 = require("@snack-uikit/breadcrumbs");
|
|
23
|
+
const promo_tag_1 = require("@snack-uikit/promo-tag");
|
|
24
|
+
const constants_1 = require("../../constants");
|
|
25
|
+
const helperComponents_1 = require("../../helperComponents");
|
|
26
|
+
const constants_2 = require("./constants");
|
|
27
|
+
const styles_module_scss_1 = __importDefault(require('./styles.module.css'));
|
|
28
|
+
function HeroEvent(_a) {
|
|
29
|
+
var { className, title, breadcrumbs, backgroundColor = constants_1.HERO_COLORS.NeutralBackground, category, format, audience, startsAt, place, image, button, layoutType } = _a, rest = __rest(_a, ["className", "title", "breadcrumbs", "backgroundColor", "category", "format", "audience", "startsAt", "place", "image", "button", "layoutType"]);
|
|
30
|
+
const formatTitle = format ? constants_2.FORMAT_LABELS[format] : undefined;
|
|
31
|
+
const audienceTitle = audience ? constants_2.AUDIENCE_LABELS[audience] : undefined;
|
|
32
|
+
const showTagRow = Boolean(category || formatTitle || audienceTitle);
|
|
33
|
+
return ((0, jsx_runtime_1.jsx)(uikit_product_site_layout_1.Layout.SectionWrapper, { layoutType: layoutType, className: (0, classnames_1.default)(className, styles_module_scss_1.default.sectionWrapper), "data-section-background": backgroundColor, children: (0, jsx_runtime_1.jsx)("section", Object.assign({ className: styles_module_scss_1.default.wrapper, "data-layout-type": layoutType }, (0, uikit_product_utils_1.extractSupportProps)(rest), { children: (0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.heroEvent, "data-layout-type": layoutType, children: [(0, jsx_runtime_1.jsx)(breadcrumbs_1.Breadcrumbs, { size: 'xs', items: breadcrumbs, "data-test-id": 'hero-event__breadcrumbs' }), (0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.content, "data-layout-type": layoutType, children: [(0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.left, "data-layout-type": layoutType, children: [(0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.titleWrapper, "data-layout-type": layoutType, children: [showTagRow && ((0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.tagRow, children: [category && (0, jsx_runtime_1.jsx)(promo_tag_1.PromoTag, Object.assign({}, category, { color: 'decor', size: 'xs' })), formatTitle && (0, jsx_runtime_1.jsx)(promo_tag_1.PromoTag, { appearance: 'violet', text: formatTitle, color: 'decor', size: 'xs' }), audienceTitle && (0, jsx_runtime_1.jsx)(promo_tag_1.PromoTag, { appearance: 'violet', text: audienceTitle, color: 'decor', size: 'xs' })] })), (0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.textWrapper, "data-layout-type": layoutType, children: [(0, jsx_runtime_1.jsx)("h1", { className: styles_module_scss_1.default.title, "data-layout-type": layoutType, children: title }), (0, jsx_runtime_1.jsxs)("p", { className: styles_module_scss_1.default.coords, "data-color": backgroundColor, children: [(0, jsx_runtime_1.jsxs)("time", { className: styles_module_scss_1.default.time, children: [startsAt, place.title && ', '] }), place.title && (0, jsx_runtime_1.jsx)(helperComponents_1.Place, Object.assign({}, place, { title: place.title }))] })] })] }), (0, jsx_runtime_1.jsx)(helperComponents_1.HeroEventButton, Object.assign({}, button, { layoutType: layoutType }))] }), (0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.imageWrapper, "data-layout-type": layoutType, children: (0, jsx_runtime_1.jsx)("img", { className: styles_module_scss_1.default.image, alt: 'hero_img', src: image, "data-layout-type": layoutType }) })] })] }) })) }));
|
|
34
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const FORMATS: {
|
|
2
|
+
readonly Online: "online";
|
|
3
|
+
readonly Offline: "offline";
|
|
4
|
+
readonly Hybrid: "hybrid";
|
|
5
|
+
};
|
|
6
|
+
export declare const FORMAT_LABELS: {
|
|
7
|
+
online: string;
|
|
8
|
+
offline: string;
|
|
9
|
+
hybrid: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const AUDIENCES: {
|
|
12
|
+
readonly It: "it";
|
|
13
|
+
readonly Students: "students";
|
|
14
|
+
readonly Business: "business";
|
|
15
|
+
};
|
|
16
|
+
export declare const AUDIENCE_LABELS: {
|
|
17
|
+
it: string;
|
|
18
|
+
students: string;
|
|
19
|
+
business: string;
|
|
20
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AUDIENCE_LABELS = exports.AUDIENCES = exports.FORMAT_LABELS = exports.FORMATS = void 0;
|
|
4
|
+
exports.FORMATS = {
|
|
5
|
+
Online: 'online',
|
|
6
|
+
Offline: 'offline',
|
|
7
|
+
Hybrid: 'hybrid',
|
|
8
|
+
};
|
|
9
|
+
exports.FORMAT_LABELS = {
|
|
10
|
+
[exports.FORMATS.Online]: 'Онлайн',
|
|
11
|
+
[exports.FORMATS.Offline]: 'Офлайн',
|
|
12
|
+
[exports.FORMATS.Hybrid]: 'Гибрид',
|
|
13
|
+
};
|
|
14
|
+
exports.AUDIENCES = {
|
|
15
|
+
It: 'it',
|
|
16
|
+
Students: 'students',
|
|
17
|
+
Business: 'business',
|
|
18
|
+
};
|
|
19
|
+
exports.AUDIENCE_LABELS = {
|
|
20
|
+
[exports.AUDIENCES.It]: 'Для IT',
|
|
21
|
+
[exports.AUDIENCES.Students]: 'Для студентов',
|
|
22
|
+
[exports.AUDIENCES.Business]: 'Для бизнеса',
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './HeroEvent';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./HeroEvent"), exports);
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
.sectionWrapper[data-section-background=neutral-background1-level]{
|
|
2
|
+
background-color:var(--sys-neutral-background1-level, #fdfdfd);
|
|
3
|
+
}
|
|
4
|
+
.sectionWrapper[data-section-background=neutral-background]{
|
|
5
|
+
background-color:var(--sys-neutral-background, #eeeff3);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.wrapper{
|
|
9
|
+
padding:var(--dimension-5m, 40px) 0;
|
|
10
|
+
}
|
|
11
|
+
.wrapper[data-layout-type=tablet]{
|
|
12
|
+
padding:var(--dimension-4m, 32px) 0;
|
|
13
|
+
}
|
|
14
|
+
.wrapper[data-layout-type=mobile]{
|
|
15
|
+
padding:var(--dimension-3m, 24px) 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.tagRow{
|
|
19
|
+
display:flex;
|
|
20
|
+
gap:var(--dimension-050m, 4px);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.heroEvent{
|
|
24
|
+
display:flex;
|
|
25
|
+
flex-direction:column;
|
|
26
|
+
gap:var(--dimension-4m, 32px);
|
|
27
|
+
overflow:hidden;
|
|
28
|
+
}
|
|
29
|
+
.heroEvent[data-layout-type=tablet], .heroEvent[data-layout-type=mobile]{
|
|
30
|
+
gap:var(--dimension-3m, 24px);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.content{
|
|
34
|
+
display:flex;
|
|
35
|
+
flex-direction:row;
|
|
36
|
+
justify-content:space-between;
|
|
37
|
+
gap:var(--dimension-8m, 64px);
|
|
38
|
+
}
|
|
39
|
+
.content[data-layout-type=tablet]{
|
|
40
|
+
flex-direction:column;
|
|
41
|
+
gap:var(--dimension-4m, 32px);
|
|
42
|
+
}
|
|
43
|
+
.content[data-layout-type=mobile]{
|
|
44
|
+
flex-direction:column;
|
|
45
|
+
gap:var(--dimension-3m, 24px);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.left{
|
|
49
|
+
display:flex;
|
|
50
|
+
flex-direction:column;
|
|
51
|
+
justify-content:space-between;
|
|
52
|
+
gap:var(--dimension-4m, 32px);
|
|
53
|
+
}
|
|
54
|
+
.left[data-layout-type=mobile]{
|
|
55
|
+
gap:var(--dimension-3m, 24px);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.titleWrapper{
|
|
59
|
+
display:flex;
|
|
60
|
+
flex-direction:column;
|
|
61
|
+
gap:var(--dimension-3m, 24px);
|
|
62
|
+
}
|
|
63
|
+
.titleWrapper[data-layout-type=tablet], .titleWrapper[data-layout-type=mobile]{
|
|
64
|
+
gap:var(--dimension-2m, 16px);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.textWrapper{
|
|
68
|
+
display:flex;
|
|
69
|
+
flex-direction:column;
|
|
70
|
+
gap:calc(var(--dimension-1m, 8px) + var(--dimension-050m, 4px));
|
|
71
|
+
}
|
|
72
|
+
.textWrapper[data-layout-type=tablet], .textWrapper[data-layout-type=mobile]{
|
|
73
|
+
gap:var(--dimension-1m, 8px);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.title{
|
|
77
|
+
font-family:var(--sans-headline-l-font-family, SB Sans Display);
|
|
78
|
+
font-weight:var(--sans-headline-l-font-weight, Semibold);
|
|
79
|
+
line-height:var(--sans-headline-l-line-height, 40px);
|
|
80
|
+
font-size:var(--sans-headline-l-font-size, 32px);
|
|
81
|
+
letter-spacing:var(--sans-headline-l-letter-spacing, 0px);
|
|
82
|
+
paragraph-spacing:var(--sans-headline-l-paragraph-spacing, 17.6px);
|
|
83
|
+
color:var(--sys-neutral-text-main, #41424e);
|
|
84
|
+
padding:0;
|
|
85
|
+
margin:0;
|
|
86
|
+
}
|
|
87
|
+
.title[data-layout-type=tablet], .title[data-layout-type=mobile]{
|
|
88
|
+
font-family:var(--sans-headline-m-font-family, SB Sans Display);
|
|
89
|
+
font-weight:var(--sans-headline-m-font-weight, Semibold);
|
|
90
|
+
line-height:var(--sans-headline-m-line-height, 36px);
|
|
91
|
+
font-size:var(--sans-headline-m-font-size, 28px);
|
|
92
|
+
letter-spacing:var(--sans-headline-m-letter-spacing, 0px);
|
|
93
|
+
paragraph-spacing:var(--sans-headline-m-paragraph-spacing, 15.4px);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.time{
|
|
97
|
+
display:block;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.coords{
|
|
101
|
+
font-family:var(--sans-body-l-font-family, SB Sans Text);
|
|
102
|
+
font-weight:var(--sans-body-l-font-weight, Regular);
|
|
103
|
+
line-height:var(--sans-body-l-line-height, 24px);
|
|
104
|
+
font-size:var(--sans-body-l-font-size, 16px);
|
|
105
|
+
letter-spacing:var(--sans-body-l-letter-spacing, 0px);
|
|
106
|
+
paragraph-spacing:var(--sans-body-l-paragraph-spacing, 8.8px);
|
|
107
|
+
color:var(--sys-neutral-text-support, #656774);
|
|
108
|
+
padding:0;
|
|
109
|
+
margin:0;
|
|
110
|
+
}
|
|
111
|
+
.coords[data-color=invert-neutral]{
|
|
112
|
+
color:var(--sys-invert-neutral-text-support, #bec2cf);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.imageWrapper{
|
|
116
|
+
position:relative;
|
|
117
|
+
width:488px;
|
|
118
|
+
flex-shrink:0;
|
|
119
|
+
}
|
|
120
|
+
.imageWrapper[data-layout-type=tablet], .imageWrapper[data-layout-type=mobile]{
|
|
121
|
+
display:flex;
|
|
122
|
+
flex-direction:column;
|
|
123
|
+
align-items:center;
|
|
124
|
+
width:100%;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.image{
|
|
128
|
+
-o-object-fit:contain;
|
|
129
|
+
object-fit:contain;
|
|
130
|
+
width:100%;
|
|
131
|
+
height:100%;
|
|
132
|
+
}
|
|
133
|
+
.image[data-layout-type=tablet], .image[data-layout-type=mobile]{
|
|
134
|
+
max-width:504px;
|
|
135
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ButtonPromoOutlineProps } from '@sbercloud/uikit-product-button-predefined';
|
|
2
|
+
import { SiteVideoProps } from '@sbercloud/uikit-product-site-media';
|
|
3
|
+
import { SiteNavbarProps } from '@sbercloud/uikit-product-site-navbar';
|
|
4
|
+
import { TagSpecialProps } from '@sbercloud/uikit-product-site-tag';
|
|
5
|
+
import { WithLayoutType, WithSupportProps } from '@sbercloud/uikit-product-utils';
|
|
6
|
+
import { BreadcrumbsProps } from '@snack-uikit/breadcrumbs';
|
|
7
|
+
import { ButtonFilledProps } from '@snack-uikit/button';
|
|
8
|
+
import { HeroColor } from '../../types';
|
|
9
|
+
import { PlatformLinkProps } from './components';
|
|
10
|
+
export type HeroMainProps = WithSupportProps<WithLayoutType<{
|
|
11
|
+
/** Заголовок продукта */
|
|
12
|
+
title: string;
|
|
13
|
+
/** Описание продукта */
|
|
14
|
+
description: string;
|
|
15
|
+
/** Ссылка на изображение */
|
|
16
|
+
image?: string;
|
|
17
|
+
/** Видео */
|
|
18
|
+
video?: SiteVideoProps['video'];
|
|
19
|
+
/** Хлебные крошки для продукта */
|
|
20
|
+
breadcrumbs: BreadcrumbsProps['items'];
|
|
21
|
+
/** Тэги */
|
|
22
|
+
tags?: Pick<TagSpecialProps, 'text' | 'appearance' | 'tip'>[];
|
|
23
|
+
/** Платформы */
|
|
24
|
+
platforms?: Array<PlatformLinkProps['platform']>;
|
|
25
|
+
/** Обработка клика по платформе */
|
|
26
|
+
handlePlatformClick?: PlatformLinkProps['handlePlatformClick'];
|
|
27
|
+
/** Цвета фона */
|
|
28
|
+
backgroundColor?: HeroColor;
|
|
29
|
+
/** Массив с настройками кнопок ButtonFilled */
|
|
30
|
+
buttons?: [Omit<ButtonFilledProps, 'size' | 'appearance'>, Omit<ButtonPromoOutlineProps, 'size' | 'appearance'>?];
|
|
31
|
+
/** CSS - класснейм */
|
|
32
|
+
className?: string;
|
|
33
|
+
/** Navbar */
|
|
34
|
+
navbar?: Pick<SiteNavbarProps, 'items' | 'active' | 'onItemClick' | 'topPosition'>;
|
|
35
|
+
}>>;
|
|
36
|
+
export declare function HeroMain({ title, description, image, video, breadcrumbs, tags, platforms, handlePlatformClick, backgroundColor, buttons, navbar, layoutType, className, ...rest }: HeroMainProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.HeroMain = HeroMain;
|
|
18
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
20
|
+
const react_1 = require("react");
|
|
21
|
+
const uikit_product_button_predefined_1 = require("@sbercloud/uikit-product-button-predefined");
|
|
22
|
+
const uikit_product_locale_1 = require("@sbercloud/uikit-product-locale");
|
|
23
|
+
const uikit_product_site_layout_1 = require("@sbercloud/uikit-product-site-layout");
|
|
24
|
+
const uikit_product_site_media_1 = require("@sbercloud/uikit-product-site-media");
|
|
25
|
+
const uikit_product_site_navbar_1 = require("@sbercloud/uikit-product-site-navbar");
|
|
26
|
+
const uikit_product_site_rich_text_1 = require("@sbercloud/uikit-product-site-rich-text");
|
|
27
|
+
const uikit_product_site_tag_1 = require("@sbercloud/uikit-product-site-tag");
|
|
28
|
+
const uikit_product_utils_1 = require("@sbercloud/uikit-product-utils");
|
|
29
|
+
const breadcrumbs_1 = require("@snack-uikit/breadcrumbs");
|
|
30
|
+
const button_1 = require("@snack-uikit/button");
|
|
31
|
+
const typography_1 = require("@snack-uikit/typography");
|
|
32
|
+
const components_1 = require("./components");
|
|
33
|
+
const styles_module_scss_1 = __importDefault(require('./styles.module.css'));
|
|
34
|
+
const utils_1 = require("./utils");
|
|
35
|
+
function HeroMain(_a) {
|
|
36
|
+
var { title, description, image, video, breadcrumbs, tags = [], platforms = [], handlePlatformClick, backgroundColor = 'neutral-background1-level', buttons, navbar, layoutType, className } = _a, rest = __rest(_a, ["title", "description", "image", "video", "breadcrumbs", "tags", "platforms", "handlePlatformClick", "backgroundColor", "buttons", "navbar", "layoutType", "className"]);
|
|
37
|
+
const { t } = (0, uikit_product_locale_1.useLocale)('SiteHero');
|
|
38
|
+
const isAdaptive = ['mobile', 'tablet'].includes(layoutType);
|
|
39
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(uikit_product_site_layout_1.Layout.SectionWrapper, { layoutType: layoutType, className: (0, classnames_1.default)(className, styles_module_scss_1.default.sectionWrapper), "data-section-background": backgroundColor, children: (0, jsx_runtime_1.jsx)("div", Object.assign({ className: styles_module_scss_1.default.contentWrapper }, (0, uikit_product_utils_1.extractSupportProps)(rest), { "data-layout-type": layoutType, children: (0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.content, "data-layout-type": layoutType, children: [(0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.left, "data-layout-type": layoutType, children: [(0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.leftContent, "data-layout-type": layoutType, children: [(0, jsx_runtime_1.jsx)(breadcrumbs_1.Breadcrumbs, { size: 'xs', items: breadcrumbs, "data-test-id": 'hero-main__breadcrumbs' }), tags.length > 0 && ((0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.tagRow, "data-layout-type": layoutType, children: tags.map(({ text, tip, appearance }) => ((0, jsx_runtime_1.jsx)(uikit_product_site_tag_1.TagSpecial, { text: text, tip: tip, appearance: appearance }, text))) })), (0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.textWrapper, children: [(0, jsx_runtime_1.jsx)(typography_1.Typography, Object.assign({ tag: 'h1', family: 'sans' }, (0, utils_1.getTitleTypographyProps)(layoutType), { className: styles_module_scss_1.default.title, children: (0, jsx_runtime_1.jsx)(uikit_product_site_rich_text_1.RichText, { richText: title }) })), (0, jsx_runtime_1.jsx)(typography_1.Typography.SansBodyL, { tag: 'div', className: styles_module_scss_1.default.description, children: (0, jsx_runtime_1.jsx)(uikit_product_site_rich_text_1.RichText, { richText: description }) }), platforms && platforms.length > 0 && handlePlatformClick && ((0, jsx_runtime_1.jsxs)(typography_1.Typography.SansBodyL, { tag: 'p', className: styles_module_scss_1.default.platforms, children: [t('Main.platforms'), ":", ' ', platforms.map((platform, index) => ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.PlatformLink, { platform: platform, handlePlatformClick: handlePlatformClick }), platforms.length - 1 !== index && ', '] }, platform.id || platform.title)))] }))] })] }), buttons && buttons.length > 0 && ((0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.buttons, "data-layout-type": layoutType, children: [(0, jsx_runtime_1.jsx)(button_1.ButtonFilled, Object.assign({}, buttons[0], { "data-layout-type": layoutType, size: 'l', appearance: 'primary', fullWidth: isAdaptive })), buttons.length > 1 && ((0, jsx_runtime_1.jsx)(uikit_product_button_predefined_1.ButtonPromoOutline, Object.assign({}, buttons[1], { "data-layout-type": layoutType, size: 'l', appearance: 'secondary', fullWidth: isAdaptive })))] }))] }), (0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.imageWrapper, "data-layout-type": layoutType, children: (0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.media, "data-layout-type": layoutType, children: [image && (0, jsx_runtime_1.jsx)("img", { alt: 'hero_img', src: image }), !image && video && (0, jsx_runtime_1.jsx)(uikit_product_site_media_1.SiteVideo, { className: styles_module_scss_1.default.video, video: video, layoutType: layoutType })] }) })] }) })) }), navbar && navbar.items.length > 0 && ((0, jsx_runtime_1.jsx)(uikit_product_site_layout_1.Layout.SectionWrapper, { layoutType: layoutType, className: (0, classnames_1.default)(styles_module_scss_1.default.sectionWrapper, styles_module_scss_1.default.navbarWrapper), "data-sticky": true, "data-section-background": backgroundColor, children: (0, jsx_runtime_1.jsx)(uikit_product_site_navbar_1.SiteNavbar, Object.assign({}, navbar, { "data-test-id": 'hero-main__navbar' })) }))] }));
|
|
40
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
|
+
type Platform = {
|
|
3
|
+
id?: string;
|
|
4
|
+
title: string;
|
|
5
|
+
href: string;
|
|
6
|
+
};
|
|
7
|
+
export type PlatformLinkProps = {
|
|
8
|
+
platform: Platform;
|
|
9
|
+
handlePlatformClick(e: MouseEvent<HTMLAnchorElement>, platform: Platform): void;
|
|
10
|
+
};
|
|
11
|
+
export declare function PlatformLink({ platform, handlePlatformClick }: PlatformLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlatformLink = PlatformLink;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const link_1 = require("@snack-uikit/link");
|
|
6
|
+
function PlatformLink({ platform, handlePlatformClick }) {
|
|
7
|
+
const handleClick = (e) => {
|
|
8
|
+
handlePlatformClick(e, platform);
|
|
9
|
+
};
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)(link_1.Link, { text: platform.title, href: platform.href, onClick: handleClick, size: 'l', textMode: 'accent', appearance: 'neutral' }));
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PlatformLink';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./PlatformLink"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PlatformLink';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./PlatformLink"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './HeroMain';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./HeroMain"), exports);
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
.sectionWrapper[data-section-background=neutral-background1-level]{
|
|
2
|
+
background-color:var(--sys-neutral-background1-level, #fdfdfd);
|
|
3
|
+
}
|
|
4
|
+
.sectionWrapper[data-section-background=neutral-background]{
|
|
5
|
+
background-color:var(--sys-neutral-background, #eeeff3);
|
|
6
|
+
}
|
|
7
|
+
.sectionWrapper[data-sticky]{
|
|
8
|
+
position:sticky;
|
|
9
|
+
top:0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.contentWrapper{
|
|
13
|
+
padding:var(--dimension-5m, 40px) 0;
|
|
14
|
+
}
|
|
15
|
+
.contentWrapper[data-layout-type=tablet]{
|
|
16
|
+
padding:var(--dimension-4m, 32px) 0;
|
|
17
|
+
}
|
|
18
|
+
.contentWrapper[data-layout-type=mobile]{
|
|
19
|
+
padding:var(--dimension-3m, 24px) 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.content{
|
|
23
|
+
display:flex;
|
|
24
|
+
align-items:stretch;
|
|
25
|
+
gap:var(--dimension-4m, 32px);
|
|
26
|
+
flex-direction:row;
|
|
27
|
+
}
|
|
28
|
+
.content[data-layout-type=tablet]{
|
|
29
|
+
flex-direction:column;
|
|
30
|
+
}
|
|
31
|
+
.content[data-layout-type=mobile]{
|
|
32
|
+
flex-direction:column;
|
|
33
|
+
gap:var(--dimension-2m, 16px);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.left{
|
|
37
|
+
display:flex;
|
|
38
|
+
flex-direction:column;
|
|
39
|
+
justify-content:space-between;
|
|
40
|
+
flex-grow:1;
|
|
41
|
+
gap:var(--dimension-4m, 32px);
|
|
42
|
+
}
|
|
43
|
+
.left[data-layout-type=mobile]{
|
|
44
|
+
gap:var(--dimension-3m, 24px);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.leftContent{
|
|
48
|
+
display:flex;
|
|
49
|
+
flex-direction:column;
|
|
50
|
+
gap:var(--dimension-4m, 32px);
|
|
51
|
+
}
|
|
52
|
+
.leftContent[data-layout-type=mobile]{
|
|
53
|
+
gap:var(--dimension-3m, 24px);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.tagRow{
|
|
57
|
+
display:flex;
|
|
58
|
+
flex-wrap:wrap;
|
|
59
|
+
gap:var(--dimension-050m, 4px);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.textWrapper{
|
|
63
|
+
display:flex;
|
|
64
|
+
flex-direction:column;
|
|
65
|
+
gap:var(--dimension-2m, 16px);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.title{
|
|
69
|
+
color:var(--sys-neutral-text-main, #41424e);
|
|
70
|
+
word-break:break-word;
|
|
71
|
+
white-space:pre-line;
|
|
72
|
+
max-width:720px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.description{
|
|
76
|
+
color:var(--sys-neutral-text-support, #656774);
|
|
77
|
+
word-break:break-word;
|
|
78
|
+
max-width:560px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.platforms{
|
|
82
|
+
color:var(--sys-neutral-text-main, #41424e);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.imageWrapper{
|
|
86
|
+
display:flex;
|
|
87
|
+
flex-direction:column;
|
|
88
|
+
align-items:flex-end;
|
|
89
|
+
align-self:center;
|
|
90
|
+
}
|
|
91
|
+
.imageWrapper[data-layout-type=tablet], .imageWrapper[data-layout-type=mobile]{
|
|
92
|
+
align-items:center;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.video{
|
|
96
|
+
height:300px;
|
|
97
|
+
width:300px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.media img{
|
|
101
|
+
max-height:300px;
|
|
102
|
+
max-width:300px;
|
|
103
|
+
}
|
|
104
|
+
.media[data-layout-type=mobile] img{
|
|
105
|
+
max-width:248px;
|
|
106
|
+
max-height:248px;
|
|
107
|
+
}
|
|
108
|
+
.media[data-layout-type=mobile] .video{
|
|
109
|
+
width:248px;
|
|
110
|
+
height:248px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.buttons{
|
|
114
|
+
display:flex;
|
|
115
|
+
flex-direction:row;
|
|
116
|
+
gap:var(--dimension-2m, 16px);
|
|
117
|
+
}
|
|
118
|
+
.buttons[data-layout-type=tablet]{
|
|
119
|
+
flex-direction:column;
|
|
120
|
+
}
|
|
121
|
+
.buttons[data-layout-type=mobile]{
|
|
122
|
+
flex-direction:column;
|
|
123
|
+
gap:var(--dimension-1m, 8px);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.navbarWrapper{
|
|
127
|
+
z-index:5;
|
|
128
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getTitleTypographyProps = void 0;
|
|
4
|
+
const getTitleTypographyProps = (layoutType) => {
|
|
5
|
+
switch (layoutType) {
|
|
6
|
+
case 'mobile':
|
|
7
|
+
return { purpose: 'headline', size: 'm' };
|
|
8
|
+
case 'tablet':
|
|
9
|
+
return { purpose: 'headline', size: 'l' };
|
|
10
|
+
case 'desktop':
|
|
11
|
+
case 'desktopSmall':
|
|
12
|
+
default:
|
|
13
|
+
return { purpose: 'display', size: 'm' };
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
exports.getTitleTypographyProps = getTitleTypographyProps;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { WithLayoutType, WithSupportProps } from '@sbercloud/uikit-product-utils';
|
|
2
|
+
import { CarouselProps } from '@snack-uikit/carousel';
|
|
3
|
+
import { HeroSlideProps } from './components';
|
|
4
|
+
export type HeroSliderProps = WithSupportProps<WithLayoutType<{
|
|
5
|
+
id?: string;
|
|
6
|
+
/** Слайды карусели */
|
|
7
|
+
items: HeroSlideProps[];
|
|
8
|
+
/** CSS-класс */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** Использовать пагинацию для переключения страниц @default true */
|
|
11
|
+
pagination?: boolean;
|
|
12
|
+
} & Pick<CarouselProps, 'state' | 'autoSwipe'>>>;
|
|
13
|
+
export declare function HeroSlider({ id, layoutType, items, autoSwipe, pagination, className, ...rest }: HeroSliderProps): import("react/jsx-runtime").JSX.Element;
|