@megafon/ui-shared 9.0.0-alpha.0 → 9.0.0-alpha.10
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/dist/es/components/AccordionBox/AccordionBox.d.ts +3 -1
- package/dist/es/components/BlogBox/BlogBox.d.ts +3 -0
- package/dist/es/components/BlogBox/BlogBox.js +8 -3
- package/dist/es/components/BlogBox/components/BlogBoxTile.d.ts +5 -1
- package/dist/es/components/BlogBox/components/BlogBoxTile.js +3 -2
- package/dist/es/components/Container/Container.css +1 -1
- package/dist/es/components/DarkGradientCards/DarkGradientCards.d.ts +5 -0
- package/dist/es/components/DarkGradientCards/DarkGradientCards.js +9 -4
- package/dist/es/components/DarkGradientCards/components/DarkGradientCard.d.ts +1 -0
- package/dist/es/components/DarkGradientCards/components/DarkGradientCard.js +1 -1
- package/dist/es/components/DownloadLinks/DownloadLink.css +1 -1
- package/dist/es/components/InfoCards/components/InfoCard/InfoCard.css +1 -1
- package/dist/es/components/Instructions/Instructions.css +1 -1
- package/dist/es/components/Instructions/Instructions.d.ts +0 -2
- package/dist/es/components/Instructions/Instructions.js +1 -3
- package/dist/es/components/NotificationBox/NotificationBox.d.ts +1 -1
- package/dist/es/components/NotificationBox/NotificationBox.js +1 -4
- package/dist/es/components/PromoCards/PromoCards.d.ts +3 -0
- package/dist/es/components/PromoCards/PromoCards.js +6 -1
- package/dist/es/components/PromoCards/components/PromoCard/PromoCard.d.ts +2 -0
- package/dist/es/components/PromoCards/components/PromoCard/PromoCard.js +17 -9
- package/dist/es/components/SidePictureCards/SidePictureCards.d.ts +9 -0
- package/dist/es/components/SidePictureCards/SidePictureCards.js +45 -20
- package/dist/es/components/SidePictureCards/components/SidePictureCard.d.ts +2 -0
- package/dist/es/components/SidePictureCards/components/SidePictureCard.js +13 -8
- package/dist/es/components/SidePictureCards/types.d.ts +3 -1
- package/dist/es/components/Stepper/Stepper.js +11 -7
- package/dist/es/components/Stepper/StepperItem.css +1 -1
- package/dist/es/components/Steps/Steps.css +1 -1
- package/dist/es/components/Steps/Steps.d.ts +2 -0
- package/dist/es/components/Steps/Steps.js +5 -1
- package/dist/es/components/Steps/StepsItem.css +1 -1
- package/dist/es/components/StoreBanner/StoreBanner.css +1 -1
- package/dist/es/components/StoreBanner/StoreBanner.d.ts +1 -5
- package/dist/es/components/StoreBanner/StoreBanner.js +1 -5
- package/dist/es/components/Table/Table.css +1 -1
- package/dist/es/components/Table/Table.d.ts +2 -0
- package/dist/es/components/Table/Table.js +34 -22
- package/dist/lib/components/AccordionBox/AccordionBox.d.ts +3 -1
- package/dist/lib/components/BlogBox/BlogBox.d.ts +3 -0
- package/dist/lib/components/BlogBox/BlogBox.js +8 -3
- package/dist/lib/components/BlogBox/components/BlogBoxTile.d.ts +5 -1
- package/dist/lib/components/BlogBox/components/BlogBoxTile.js +3 -2
- package/dist/lib/components/Container/Container.css +1 -1
- package/dist/lib/components/DarkGradientCards/DarkGradientCards.d.ts +5 -0
- package/dist/lib/components/DarkGradientCards/DarkGradientCards.js +9 -4
- package/dist/lib/components/DarkGradientCards/components/DarkGradientCard.d.ts +1 -0
- package/dist/lib/components/DarkGradientCards/components/DarkGradientCard.js +1 -1
- package/dist/lib/components/DownloadLinks/DownloadLink.css +1 -1
- package/dist/lib/components/InfoCards/components/InfoCard/InfoCard.css +1 -1
- package/dist/lib/components/Instructions/Instructions.css +1 -1
- package/dist/lib/components/Instructions/Instructions.d.ts +0 -2
- package/dist/lib/components/Instructions/Instructions.js +1 -3
- package/dist/lib/components/NotificationBox/NotificationBox.d.ts +1 -1
- package/dist/lib/components/NotificationBox/NotificationBox.js +1 -5
- package/dist/lib/components/PromoCards/PromoCards.d.ts +3 -0
- package/dist/lib/components/PromoCards/PromoCards.js +6 -1
- package/dist/lib/components/PromoCards/components/PromoCard/PromoCard.d.ts +2 -0
- package/dist/lib/components/PromoCards/components/PromoCard/PromoCard.js +16 -9
- package/dist/lib/components/SidePictureCards/SidePictureCards.d.ts +9 -0
- package/dist/lib/components/SidePictureCards/SidePictureCards.js +43 -18
- package/dist/lib/components/SidePictureCards/components/SidePictureCard.d.ts +2 -0
- package/dist/lib/components/SidePictureCards/components/SidePictureCard.js +13 -8
- package/dist/lib/components/SidePictureCards/types.d.ts +3 -1
- package/dist/lib/components/Stepper/Stepper.js +11 -7
- package/dist/lib/components/Stepper/StepperItem.css +1 -1
- package/dist/lib/components/Steps/Steps.css +1 -1
- package/dist/lib/components/Steps/Steps.d.ts +2 -0
- package/dist/lib/components/Steps/Steps.js +5 -1
- package/dist/lib/components/Steps/StepsItem.css +1 -1
- package/dist/lib/components/StoreBanner/StoreBanner.css +1 -1
- package/dist/lib/components/StoreBanner/StoreBanner.d.ts +1 -5
- package/dist/lib/components/StoreBanner/StoreBanner.js +1 -5
- package/dist/lib/components/Table/Table.css +1 -1
- package/dist/lib/components/Table/Table.d.ts +2 -0
- package/dist/lib/components/Table/Table.js +34 -22
- package/package.json +5 -5
- package/dist/es/components/StoreBanner/img/black-iphone.png +0 -0
- package/dist/es/components/StoreBanner/img/iphone12.png +0 -0
- package/dist/es/components/StoreBanner/img/white-iphone.png +0 -0
- package/dist/lib/components/StoreBanner/img/black-iphone.png +0 -0
- package/dist/lib/components/StoreBanner/img/iphone12.png +0 -0
- package/dist/lib/components/StoreBanner/img/white-iphone.png +0 -0
|
@@ -20,8 +20,10 @@ export interface IAccordionBox {
|
|
|
20
20
|
rootRef?: React.Ref<HTMLDivElement>;
|
|
21
21
|
/** Заголовок аккордеона */
|
|
22
22
|
title: string;
|
|
23
|
-
/**
|
|
23
|
+
/** Тег заголовка (определяет базовый тег и стили) */
|
|
24
24
|
titleTag?: IHeaderProps['as'];
|
|
25
|
+
/** Тег заголовка для семантической разметки (переопределение тега без изменения стилей) */
|
|
26
|
+
titleTagName?: IHeaderProps['tag'];
|
|
25
27
|
/** Состояние аккордеона, заданное извне */
|
|
26
28
|
isOpened?: boolean;
|
|
27
29
|
/** Включить микроразметку */
|
|
@@ -14,6 +14,7 @@ export interface IBlogBox {
|
|
|
14
14
|
classes?: {
|
|
15
15
|
root?: string;
|
|
16
16
|
item?: string;
|
|
17
|
+
itemTitle?: string;
|
|
17
18
|
button?: string;
|
|
18
19
|
};
|
|
19
20
|
/** Дополнительные data атрибуты к внутренним элементам */
|
|
@@ -23,6 +24,8 @@ export interface IBlogBox {
|
|
|
23
24
|
item?: Record<string, string>;
|
|
24
25
|
button?: Record<string, string>;
|
|
25
26
|
};
|
|
27
|
+
/** Ссылка на корневой элемент */
|
|
28
|
+
rootRef?: React.Ref<HTMLDivElement>;
|
|
26
29
|
}
|
|
27
30
|
declare const BlogBox: React.FC<IBlogBox>;
|
|
28
31
|
export default BlogBox;
|
|
@@ -17,7 +17,8 @@ var BlogBox = function BlogBox(_ref) {
|
|
|
17
17
|
hasAlignLeft = _ref$hasAlignLeft === void 0 ? false : _ref$hasAlignLeft,
|
|
18
18
|
className = _ref.className,
|
|
19
19
|
classes = _ref.classes,
|
|
20
|
-
dataAttrs = _ref.dataAttrs
|
|
20
|
+
dataAttrs = _ref.dataAttrs,
|
|
21
|
+
rootRef = _ref.rootRef;
|
|
21
22
|
var _useResolutions = useResolutions(),
|
|
22
23
|
isDesktop = _useResolutions.isDesktop;
|
|
23
24
|
var visibleItems = items.slice(0, maxItemsCount);
|
|
@@ -36,7 +37,8 @@ var BlogBox = function BlogBox(_ref) {
|
|
|
36
37
|
return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
|
|
37
38
|
className: cn({
|
|
38
39
|
'align-left': isAlignLeft
|
|
39
|
-
}, [className, classes === null || classes === void 0 ? void 0 : classes.root])
|
|
40
|
+
}, [className, classes === null || classes === void 0 ? void 0 : classes.root]),
|
|
41
|
+
ref: rootRef
|
|
40
42
|
}), /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.list), {
|
|
41
43
|
className: cn('list', {
|
|
42
44
|
row: isRow,
|
|
@@ -50,7 +52,10 @@ var BlogBox = function BlogBox(_ref) {
|
|
|
50
52
|
}, [classes === null || classes === void 0 ? void 0 : classes.item]),
|
|
51
53
|
key: "".concat(item.title, "_").concat(i)
|
|
52
54
|
}), /*#__PURE__*/React.createElement(BlogBoxTile, _extends({}, item, {
|
|
53
|
-
view: view
|
|
55
|
+
view: view,
|
|
56
|
+
classes: {
|
|
57
|
+
title: classes === null || classes === void 0 ? void 0 : classes.itemTitle
|
|
58
|
+
}
|
|
54
59
|
})));
|
|
55
60
|
})), (button === null || button === void 0 ? void 0 : button.title) && /*#__PURE__*/React.createElement("div", {
|
|
56
61
|
className: cn('button-wrapper')
|
|
@@ -4,6 +4,10 @@ import './BlogBoxTile.scss';
|
|
|
4
4
|
type TileSettingsType = {
|
|
5
5
|
view: TileViewType;
|
|
6
6
|
};
|
|
7
|
-
export type BlogBoxTileType = TileDataType & TileSettingsType
|
|
7
|
+
export type BlogBoxTileType = TileDataType & TileSettingsType & {
|
|
8
|
+
classes?: {
|
|
9
|
+
title?: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
8
12
|
declare const BlogBoxTile: React.FC<BlogBoxTileType>;
|
|
9
13
|
export default BlogBoxTile;
|
|
@@ -16,7 +16,8 @@ var BlogBoxTile = function BlogBoxTile(_ref) {
|
|
|
16
16
|
srcThumbnail = _ref$image.srcThumbnail,
|
|
17
17
|
_ref$image$alt = _ref$image.alt,
|
|
18
18
|
alt = _ref$image$alt === void 0 ? 'image' : _ref$image$alt,
|
|
19
|
-
view = _ref.view
|
|
19
|
+
view = _ref.view,
|
|
20
|
+
classes = _ref.classes;
|
|
20
21
|
var _useResolutions = useResolutions(),
|
|
21
22
|
isMobile = _useResolutions.isMobile;
|
|
22
23
|
var isViewThumbnail = view === 'thumbnail';
|
|
@@ -54,7 +55,7 @@ var BlogBoxTile = function BlogBoxTile(_ref) {
|
|
|
54
55
|
}, /*#__PURE__*/React.createElement("div", {
|
|
55
56
|
className: cn('date')
|
|
56
57
|
}, date), /*#__PURE__*/React.createElement("div", {
|
|
57
|
-
className: cn('title')
|
|
58
|
+
className: cn('title', [classes === null || classes === void 0 ? void 0 : classes.title])
|
|
58
59
|
}, title)));
|
|
59
60
|
};
|
|
60
61
|
export default BlogBoxTile;
|