@gravity-ui/page-constructor 4.47.0-beta.0 → 4.47.2
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/README.md +2 -2
- package/build/cjs/blocks/CardLayout/CardLayout.css +278 -1
- package/build/cjs/blocks/CardLayout/CardLayout.js +2 -1
- package/build/cjs/blocks/CardLayout/schema.d.ts +134 -62
- package/build/cjs/blocks/CardLayout/schema.js +6 -1
- package/build/cjs/blocks/ContentLayout/schema.d.ts +123 -65
- package/build/cjs/blocks/ContentLayout/schema.js +1 -1
- package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.css +270 -0
- package/build/cjs/blocks/Form/Form.css +4 -2
- package/build/cjs/blocks/Header/schema.d.ts +3 -33
- package/build/cjs/blocks/HeaderSlider/schema.d.ts +1 -11
- package/build/cjs/blocks/Map/Map.css +14 -0
- package/build/cjs/blocks/Map/Map.d.ts +1 -1
- package/build/cjs/blocks/Map/Map.js +9 -2
- package/build/cjs/blocks/Map/schema.d.ts +4 -0
- package/build/cjs/blocks/Media/Media.css +14 -0
- package/build/cjs/blocks/Media/Media.js +8 -2
- package/build/cjs/blocks/Media/schema.d.ts +16 -22
- package/build/cjs/blocks/Media/schema.js +9 -2
- package/build/cjs/blocks/PromoFeaturesBlock/PromoFeaturesBlock.css +270 -0
- package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +1 -11
- package/build/cjs/blocks/Slider/Slider.css +270 -0
- package/build/cjs/blocks/Tabs/schema.d.ts +1 -11
- package/build/cjs/components/BalancedMasonry/BalancedMasonry.js +1 -1
- package/build/cjs/components/Image/schema.d.ts +102 -1
- package/build/cjs/components/Image/schema.js +9 -3
- package/build/cjs/components/Map/GoogleMap.js +2 -2
- package/build/cjs/components/Map/YMap/YandexMap.js +2 -2
- package/build/cjs/components/Media/Iframe/Iframe.css +4 -0
- package/build/cjs/components/Media/Iframe/Iframe.js +4 -64
- package/build/cjs/components/MediaBase/MediaBase.css +6 -0
- package/build/cjs/components/MediaBase/MediaBase.js +2 -2
- package/build/cjs/constructor-items.d.ts +1 -1
- package/build/cjs/editor/data/templates/banner-block.json +1 -2
- package/build/cjs/editor/data/templates/card-layout-block.json +3 -3
- package/build/cjs/editor/data/templates/companies-block.json +3 -9
- package/build/cjs/editor/data/templates/extended-features-block.json +3 -6
- package/build/cjs/editor/data/templates/filter-block.json +3 -3
- package/build/cjs/editor/data/templates/form-block.json +1 -1
- package/build/cjs/editor/data/templates/header-slider-block.json +2 -12
- package/build/cjs/editor/data/templates/icons-block.json +5 -5
- package/build/cjs/editor/data/templates/media-block.json +1 -4
- package/build/cjs/editor/data/templates/promo-features-block.json +5 -5
- package/build/cjs/editor/data/templates/slider-block.json +5 -5
- package/build/cjs/editor/data/templates/tabs-block.json +9 -42
- package/build/cjs/grid/Col/Col.d.ts +1 -1
- package/build/cjs/models/constructor-items/blocks.d.ts +6 -5
- package/build/cjs/models/constructor-items/common.d.ts +12 -5
- package/build/cjs/schema/constants.d.ts +2 -12
- package/build/cjs/schema/validators/common.d.ts +5 -11
- package/build/cjs/schema/validators/common.js +7 -10
- package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +1 -1
- package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +1 -11
- package/build/cjs/sub-blocks/MediaCard/schema.d.ts +1 -11
- package/build/cjs/utils/borderSelector.d.ts +7 -0
- package/build/cjs/utils/borderSelector.js +18 -0
- package/build/esm/blocks/CardLayout/CardLayout.css +278 -1
- package/build/esm/blocks/CardLayout/CardLayout.js +3 -1
- package/build/esm/blocks/CardLayout/schema.d.ts +134 -62
- package/build/esm/blocks/CardLayout/schema.js +8 -3
- package/build/esm/blocks/ContentLayout/schema.d.ts +123 -65
- package/build/esm/blocks/ContentLayout/schema.js +2 -2
- package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.css +270 -0
- package/build/esm/blocks/Form/Form.css +4 -2
- package/build/esm/blocks/Header/schema.d.ts +3 -33
- package/build/esm/blocks/HeaderSlider/schema.d.ts +1 -11
- package/build/esm/blocks/Map/Map.css +14 -0
- package/build/esm/blocks/Map/Map.d.ts +2 -1
- package/build/esm/blocks/Map/Map.js +10 -2
- package/build/esm/blocks/Map/schema.d.ts +4 -0
- package/build/esm/blocks/Media/Media.css +14 -0
- package/build/esm/blocks/Media/Media.d.ts +1 -0
- package/build/esm/blocks/Media/Media.js +10 -3
- package/build/esm/blocks/Media/schema.d.ts +16 -22
- package/build/esm/blocks/Media/schema.js +9 -2
- package/build/esm/blocks/PromoFeaturesBlock/PromoFeaturesBlock.css +270 -0
- package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +1 -11
- package/build/esm/blocks/Slider/Slider.css +270 -0
- package/build/esm/blocks/Tabs/schema.d.ts +1 -11
- package/build/esm/components/BalancedMasonry/BalancedMasonry.js +1 -1
- package/build/esm/components/Image/schema.d.ts +102 -1
- package/build/esm/components/Image/schema.js +8 -2
- package/build/esm/components/Map/GoogleMap.js +2 -2
- package/build/esm/components/Map/YMap/YandexMap.js +2 -2
- package/build/esm/components/Media/Iframe/Iframe.css +4 -0
- package/build/esm/components/Media/Iframe/Iframe.js +4 -64
- package/build/esm/components/MediaBase/MediaBase.css +6 -0
- package/build/esm/components/MediaBase/MediaBase.js +2 -2
- package/build/esm/constructor-items.d.ts +1 -1
- package/build/esm/editor/data/templates/banner-block.json +1 -2
- package/build/esm/editor/data/templates/card-layout-block.json +3 -3
- package/build/esm/editor/data/templates/companies-block.json +3 -9
- package/build/esm/editor/data/templates/extended-features-block.json +3 -6
- package/build/esm/editor/data/templates/filter-block.json +3 -3
- package/build/esm/editor/data/templates/form-block.json +1 -1
- package/build/esm/editor/data/templates/header-slider-block.json +2 -12
- package/build/esm/editor/data/templates/icons-block.json +5 -5
- package/build/esm/editor/data/templates/media-block.json +1 -4
- package/build/esm/editor/data/templates/promo-features-block.json +5 -5
- package/build/esm/editor/data/templates/slider-block.json +5 -5
- package/build/esm/editor/data/templates/tabs-block.json +9 -42
- package/build/esm/grid/Col/Col.d.ts +1 -1
- package/build/esm/models/constructor-items/blocks.d.ts +6 -5
- package/build/esm/models/constructor-items/common.d.ts +12 -5
- package/build/esm/schema/constants.d.ts +2 -12
- package/build/esm/schema/validators/common.d.ts +5 -11
- package/build/esm/schema/validators/common.js +6 -9
- package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +1 -1
- package/build/esm/sub-blocks/LayoutItem/schema.d.ts +1 -11
- package/build/esm/sub-blocks/MediaCard/schema.d.ts +1 -11
- package/build/esm/utils/borderSelector.d.ts +7 -0
- package/build/esm/utils/borderSelector.js +14 -0
- package/package.json +2 -4
- package/server/models/constructor-items/blocks.d.ts +6 -5
- package/server/models/constructor-items/common.d.ts +12 -5
- package/styles/mixins.scss +30 -10
- package/widget/index.js +1 -1
- package/build/cjs/editor/data/templates/preview-block.json +0 -38
- package/build/cjs/editor/data/templates/security-block.json +0 -36
- package/build/cjs/editor/data/templates/simple-block.json +0 -7
- package/build/esm/editor/data/templates/preview-block.json +0 -38
- package/build/esm/editor/data/templates/security-block.json +0 -36
- package/build/esm/editor/data/templates/simple-block.json +0 -7
|
@@ -5,4 +5,4 @@ export interface GridColumnProps extends GridColumnClassParams, Refable<HTMLDivE
|
|
|
5
5
|
style?: CSSProperties;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
}
|
|
8
|
-
export declare const Col: React.ForwardRefExoticComponent<Pick<WithChildren<GridColumnProps>, "style" | "children" | "sizes" | "className" | "hidden" | "role" | "qa" | "reset" | "visible" | "
|
|
8
|
+
export declare const Col: React.ForwardRefExoticComponent<Pick<WithChildren<GridColumnProps>, "style" | "children" | "sizes" | "className" | "hidden" | "role" | "qa" | "reset" | "visible" | "offsets" | "orders" | "alignSelf" | "justifyContent"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -3,7 +3,7 @@ import { ButtonSize } from '@gravity-ui/uikit';
|
|
|
3
3
|
import { GridColumnSize, GridColumnSizesType, IndentValue } from '../../grid/types';
|
|
4
4
|
import { ThemeSupporting } from '../../utils';
|
|
5
5
|
import { AnalyticsEventsBase } from '../common';
|
|
6
|
-
import { AnchorProps, Animatable, BackgroundImageProps, ButtonProps, ContentSize, ContentTextSize, ContentTheme, FileLinkProps, HeaderBreadCrumbsProps, HeaderImageSize, HeaderOffset, HeaderWidth, ImageDeviceProps, ImageProps, Justify, LegendTableMarkerType, LinkProps, MapProps, MediaDirection, MediaProps, TextSize, TextTheme, ThemedImage, ThemedMediaProps, ThemedMediaVideoProps, TitleItemBaseProps, TitleItemProps, YandexFormProps } from './common';
|
|
6
|
+
import { AnchorProps, Animatable, BackgroundImageProps, ButtonProps, CardBorder, ContentSize, ContentTextSize, ContentTheme, FileLinkProps, HeaderBreadCrumbsProps, HeaderImageSize, HeaderOffset, HeaderWidth, ImageDeviceProps, ImageProps, Justify, LegendTableMarkerType, LinkProps, MapProps, MediaDirection, MediaProps, TextSize, TextTheme, ThemedImage, ThemedMediaProps, ThemedMediaVideoProps, TitleItemBaseProps, TitleItemProps, WithBorder, YandexFormProps } from './common';
|
|
7
7
|
import { BannerCardProps, HubspotFormProps, SubBlock, SubBlockModels } from './sub-blocks';
|
|
8
8
|
export declare enum BlockType {
|
|
9
9
|
PromoFeaturesBlock = "promo-features-block",
|
|
@@ -166,7 +166,6 @@ export interface MediaBaseBlockProps extends Animatable, MediaContentProps {
|
|
|
166
166
|
mobileDirection?: MediaDirection;
|
|
167
167
|
largeMedia?: boolean;
|
|
168
168
|
mediaOnly?: boolean;
|
|
169
|
-
disableShadow?: boolean;
|
|
170
169
|
mediaOnlyColSizes?: GridColumnSizesType;
|
|
171
170
|
}
|
|
172
171
|
export interface MediaContentProps extends Omit<ContentBlockProps, 'colSizes' | 'text' | 'title' | 'theme' | 'centered'> {
|
|
@@ -175,10 +174,10 @@ export interface MediaContentProps extends Omit<ContentBlockProps, 'colSizes' |
|
|
|
175
174
|
/** @deprecated Use array of buttons from ContentBlockProps instead**/
|
|
176
175
|
button?: ButtonProps;
|
|
177
176
|
}
|
|
178
|
-
export interface MediaBlockProps extends MediaBaseBlockProps {
|
|
177
|
+
export interface MediaBlockProps extends MediaBaseBlockProps, WithBorder {
|
|
179
178
|
media: ThemeSupporting<MediaProps>;
|
|
180
179
|
}
|
|
181
|
-
export interface MapBlockProps extends MediaBaseBlockProps {
|
|
180
|
+
export interface MapBlockProps extends MediaBaseBlockProps, WithBorder {
|
|
182
181
|
map: MapProps;
|
|
183
182
|
}
|
|
184
183
|
export interface InfoBlockProps {
|
|
@@ -234,7 +233,9 @@ export interface CardLayoutBlockProps extends Childable, Animatable, LoadableChi
|
|
|
234
233
|
titleClassName?: string;
|
|
235
234
|
description?: string;
|
|
236
235
|
colSizes?: GridColumnSizesType;
|
|
237
|
-
background?: BackgroundImageProps
|
|
236
|
+
background?: BackgroundImageProps & {
|
|
237
|
+
border?: CardBorder;
|
|
238
|
+
};
|
|
238
239
|
}
|
|
239
240
|
export type FilterTag = {
|
|
240
241
|
id: string;
|
|
@@ -215,6 +215,7 @@ export interface BackgroundMediaProps extends MediaProps, Animatable, QAProps {
|
|
|
215
215
|
export type Coordinate = number[];
|
|
216
216
|
export interface MapBaseProps {
|
|
217
217
|
zoom?: number;
|
|
218
|
+
className?: string;
|
|
218
219
|
}
|
|
219
220
|
export interface GMapProps extends MapBaseProps {
|
|
220
221
|
address: string;
|
|
@@ -257,14 +258,12 @@ export interface DataLensObjectProps {
|
|
|
257
258
|
id: string;
|
|
258
259
|
theme: 'dark' | 'light';
|
|
259
260
|
}
|
|
260
|
-
export type JustifyValues = 'left' | 'right' | 'center';
|
|
261
261
|
export interface IframeProps {
|
|
262
262
|
src: string;
|
|
263
|
-
width?: number
|
|
264
|
-
height?: number
|
|
263
|
+
width?: number;
|
|
264
|
+
height?: number;
|
|
265
265
|
title?: string;
|
|
266
266
|
name?: string;
|
|
267
|
-
justifyContent?: JustifyValues;
|
|
268
267
|
}
|
|
269
268
|
export type DataLensProps = string | DataLensObjectProps;
|
|
270
269
|
export interface AuthorItem {
|
|
@@ -294,7 +293,8 @@ export interface TitleItemBaseProps {
|
|
|
294
293
|
custom?: string | ReactNode;
|
|
295
294
|
onClick?: () => void;
|
|
296
295
|
}
|
|
297
|
-
export type
|
|
296
|
+
export type MediaBorder = 'shadow' | 'line' | 'none';
|
|
297
|
+
export type CardBorder = MediaBorder;
|
|
298
298
|
export interface CardBaseProps {
|
|
299
299
|
border?: CardBorder;
|
|
300
300
|
}
|
|
@@ -370,4 +370,11 @@ export interface YandexFormProps extends AnalyticsEventsBase {
|
|
|
370
370
|
metrikaGoals?: string | string[];
|
|
371
371
|
pixelEvents?: string | string[] | PixelEvent | PixelEvent[];
|
|
372
372
|
}
|
|
373
|
+
export interface WithBorder {
|
|
374
|
+
border?: MediaBorder;
|
|
375
|
+
/**
|
|
376
|
+
* @deprecated use custom class for media-component
|
|
377
|
+
*/
|
|
378
|
+
disableShadow?: boolean;
|
|
379
|
+
}
|
|
373
380
|
export {};
|
|
@@ -646,9 +646,9 @@ export declare const cardSchemas: {
|
|
|
646
646
|
};
|
|
647
647
|
background: {
|
|
648
648
|
oneOf: (({
|
|
649
|
+
required: string[];
|
|
649
650
|
type: string;
|
|
650
651
|
additionalProperties: boolean;
|
|
651
|
-
required: string[];
|
|
652
652
|
properties: {
|
|
653
653
|
src: {
|
|
654
654
|
type: string;
|
|
@@ -1530,20 +1530,10 @@ export declare const cardSchemas: {
|
|
|
1530
1530
|
type: string;
|
|
1531
1531
|
};
|
|
1532
1532
|
height: {
|
|
1533
|
-
oneOf: ({
|
|
1534
|
-
type: string;
|
|
1535
|
-
enum?: undefined;
|
|
1536
|
-
} | {
|
|
1537
|
-
type: string;
|
|
1538
|
-
enum: string[];
|
|
1539
|
-
})[];
|
|
1540
|
-
};
|
|
1541
|
-
width: {
|
|
1542
1533
|
type: string;
|
|
1543
1534
|
};
|
|
1544
|
-
|
|
1535
|
+
width: {
|
|
1545
1536
|
type: string;
|
|
1546
|
-
enum: string[];
|
|
1547
1537
|
};
|
|
1548
1538
|
};
|
|
1549
1539
|
};
|
|
@@ -1388,20 +1388,10 @@ export declare const MediaProps: {
|
|
|
1388
1388
|
type: string;
|
|
1389
1389
|
};
|
|
1390
1390
|
height: {
|
|
1391
|
-
oneOf: ({
|
|
1392
|
-
type: string;
|
|
1393
|
-
enum?: undefined;
|
|
1394
|
-
} | {
|
|
1395
|
-
type: string;
|
|
1396
|
-
enum: string[];
|
|
1397
|
-
})[];
|
|
1398
|
-
};
|
|
1399
|
-
width: {
|
|
1400
1391
|
type: string;
|
|
1401
1392
|
};
|
|
1402
|
-
|
|
1393
|
+
width: {
|
|
1403
1394
|
type: string;
|
|
1404
|
-
enum: string[];
|
|
1405
1395
|
};
|
|
1406
1396
|
};
|
|
1407
1397
|
};
|
|
@@ -1509,6 +1499,10 @@ export declare const MapProps: {
|
|
|
1509
1499
|
};
|
|
1510
1500
|
};
|
|
1511
1501
|
};
|
|
1502
|
+
export declare const BorderProps: {
|
|
1503
|
+
type: string;
|
|
1504
|
+
enum: string[];
|
|
1505
|
+
};
|
|
1512
1506
|
export declare const CardBase: {
|
|
1513
1507
|
border: {
|
|
1514
1508
|
type: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BlockHeaderProps = exports.CardBase = exports.MapProps = exports.YMapMarker = exports.YMapMarkerLabel = exports.MediaProps = exports.ButtonBlock = exports.TitleProps = exports.BlockBaseProps = exports.AnchorProps = exports.withTheme = exports.MenuProps = exports.ButtonProps = exports.authorItem = exports.FileLinkProps = exports.LinkProps = exports.BackgroundProps = exports.DataLensProps = exports.DataLensObjectProps = exports.JustifyProps = exports.ThemeProps = exports.VideoProps = exports.CustomControlsOptionsProps = exports.PlayButtonProps = exports.LoopProps = exports.ChildrenCardsProps = exports.ChildrenProps = exports.AnimatableProps = exports.sliderSizesObject = exports.containerSizesObject = exports.BaseProps = exports.customControlsButtonPositioning = exports.customControlsType = exports.quoteTypes = exports.contentThemes = exports.sizeNumber = exports.dividerEnum = exports.fileLinkTypes = exports.videoControlsTypes = exports.playIconThemes = exports.playIconTypes = exports.videoTypes = exports.contentTextWidth = exports.contentSizes = exports.sliderSizesArray = exports.containerSizesArray = exports.textSize = exports.mediaDirection = void 0;
|
|
3
|
+
exports.BlockHeaderProps = exports.CardBase = exports.BorderProps = exports.MapProps = exports.YMapMarker = exports.YMapMarkerLabel = exports.MediaProps = exports.ButtonBlock = exports.TitleProps = exports.BlockBaseProps = exports.AnchorProps = exports.withTheme = exports.MenuProps = exports.ButtonProps = exports.authorItem = exports.FileLinkProps = exports.LinkProps = exports.BackgroundProps = exports.DataLensProps = exports.DataLensObjectProps = exports.JustifyProps = exports.ThemeProps = exports.VideoProps = exports.CustomControlsOptionsProps = exports.PlayButtonProps = exports.LoopProps = exports.ChildrenCardsProps = exports.ChildrenProps = exports.AnimatableProps = exports.sliderSizesObject = exports.containerSizesObject = exports.BaseProps = exports.customControlsButtonPositioning = exports.customControlsType = exports.quoteTypes = exports.contentThemes = exports.sizeNumber = exports.dividerEnum = exports.fileLinkTypes = exports.videoControlsTypes = exports.playIconThemes = exports.playIconTypes = exports.videoTypes = exports.contentTextWidth = exports.contentSizes = exports.sliderSizesArray = exports.containerSizesArray = exports.textSize = exports.mediaDirection = void 0;
|
|
4
4
|
const schema_1 = require("../../components/Image/schema");
|
|
5
5
|
const models_1 = require("../../models");
|
|
6
6
|
const event_1 = require("./event");
|
|
@@ -526,15 +526,11 @@ const IframeProps = {
|
|
|
526
526
|
type: 'string',
|
|
527
527
|
},
|
|
528
528
|
height: {
|
|
529
|
-
|
|
529
|
+
type: 'number',
|
|
530
530
|
},
|
|
531
531
|
width: {
|
|
532
532
|
type: 'number',
|
|
533
533
|
},
|
|
534
|
-
justifyContent: {
|
|
535
|
-
type: 'string',
|
|
536
|
-
enum: ['left', 'right', 'center'],
|
|
537
|
-
},
|
|
538
534
|
},
|
|
539
535
|
};
|
|
540
536
|
exports.MediaProps = {
|
|
@@ -623,11 +619,12 @@ exports.MapProps = {
|
|
|
623
619
|
items: exports.YMapMarker,
|
|
624
620
|
},
|
|
625
621
|
};
|
|
622
|
+
exports.BorderProps = {
|
|
623
|
+
type: 'string',
|
|
624
|
+
enum: ['line', 'shadow', 'none'],
|
|
625
|
+
};
|
|
626
626
|
exports.CardBase = {
|
|
627
|
-
border:
|
|
628
|
-
type: 'string',
|
|
629
|
-
enum: ['line', 'shadow', 'none'],
|
|
630
|
-
},
|
|
627
|
+
border: exports.BorderProps,
|
|
631
628
|
};
|
|
632
629
|
exports.BlockHeaderProps = {
|
|
633
630
|
title: {
|
|
@@ -261,20 +261,10 @@ export declare const LayoutItem: {
|
|
|
261
261
|
type: string;
|
|
262
262
|
};
|
|
263
263
|
height: {
|
|
264
|
-
oneOf: ({
|
|
265
|
-
type: string;
|
|
266
|
-
enum?: undefined;
|
|
267
|
-
} | {
|
|
268
|
-
type: string;
|
|
269
|
-
enum: string[];
|
|
270
|
-
})[];
|
|
271
|
-
};
|
|
272
|
-
width: {
|
|
273
264
|
type: string;
|
|
274
265
|
};
|
|
275
|
-
|
|
266
|
+
width: {
|
|
276
267
|
type: string;
|
|
277
|
-
enum: string[];
|
|
278
268
|
};
|
|
279
269
|
};
|
|
280
270
|
};
|
|
@@ -266,20 +266,10 @@ export declare const MediaCardBlock: {
|
|
|
266
266
|
type: string;
|
|
267
267
|
};
|
|
268
268
|
height: {
|
|
269
|
-
oneOf: ({
|
|
270
|
-
type: string;
|
|
271
|
-
enum?: undefined;
|
|
272
|
-
} | {
|
|
273
|
-
type: string;
|
|
274
|
-
enum: string[];
|
|
275
|
-
})[];
|
|
276
|
-
};
|
|
277
|
-
width: {
|
|
278
269
|
type: string;
|
|
279
270
|
};
|
|
280
|
-
|
|
271
|
+
width: {
|
|
281
272
|
type: string;
|
|
282
|
-
enum: string[];
|
|
283
273
|
};
|
|
284
274
|
};
|
|
285
275
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This is a crutch
|
|
3
|
+
// The crutch is created in order to help us to work with sites, which use
|
|
4
|
+
// "disableShadow" flag in their content.
|
|
5
|
+
// We have deprecated the flag.
|
|
6
|
+
// We have to remove it after deleting of "disableShadow" and migration of projects content
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.getMediaBorder = void 0;
|
|
9
|
+
const getMediaBorder = ({ border, disableShadow }) => {
|
|
10
|
+
if (border) {
|
|
11
|
+
return border;
|
|
12
|
+
}
|
|
13
|
+
if (disableShadow) {
|
|
14
|
+
return 'none';
|
|
15
|
+
}
|
|
16
|
+
return 'shadow';
|
|
17
|
+
};
|
|
18
|
+
exports.getMediaBorder = getMediaBorder;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
.pc-card-layout-block__image_border_shadow {
|
|
2
|
+
box-shadow: 0px 4px 24px var(--pc-color-sfx-shadow), 0px 2px 8px var(--pc-color-sfx-shadow);
|
|
3
|
+
}
|
|
4
|
+
|
|
1
5
|
/* use this for style redefinitions to awoid problems with
|
|
2
6
|
unpredictable css rules order in build */
|
|
3
7
|
.pc-card-layout-block__item {
|
|
@@ -16,12 +20,15 @@ unpredictable css rules order in build */
|
|
|
16
20
|
left: 0;
|
|
17
21
|
width: 100%;
|
|
18
22
|
height: 100%;
|
|
19
|
-
border-radius:
|
|
23
|
+
border-radius: 32px;
|
|
20
24
|
}
|
|
21
25
|
.pc-card-layout-block__image img {
|
|
22
26
|
object-fit: cover;
|
|
23
27
|
object-position: left;
|
|
24
28
|
}
|
|
29
|
+
.pc-card-layout-block__image_border_line {
|
|
30
|
+
border: 1px solid var(--g-color-line-generic);
|
|
31
|
+
}
|
|
25
32
|
@media (min-width: 769px) {
|
|
26
33
|
.pc-card-layout-block.pc-AnimateBlock .pc-card-layout-block__item, .pc-AnimateBlock .pc-card-layout-block .pc-card-layout-block__item {
|
|
27
34
|
position: relative;
|
|
@@ -63,4 +70,274 @@ unpredictable css rules order in build */
|
|
|
63
70
|
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(9), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(9) {
|
|
64
71
|
transition-delay: 0.9s;
|
|
65
72
|
}
|
|
73
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(10), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(10) {
|
|
74
|
+
transition-delay: 1s;
|
|
75
|
+
}
|
|
76
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(11), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(11) {
|
|
77
|
+
transition-delay: 1.1s;
|
|
78
|
+
}
|
|
79
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(12), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(12) {
|
|
80
|
+
transition-delay: 1.2s;
|
|
81
|
+
}
|
|
82
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(13), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(13) {
|
|
83
|
+
transition-delay: 1.3s;
|
|
84
|
+
}
|
|
85
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(14), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(14) {
|
|
86
|
+
transition-delay: 1.4s;
|
|
87
|
+
}
|
|
88
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(15), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(15) {
|
|
89
|
+
transition-delay: 1.5s;
|
|
90
|
+
}
|
|
91
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(16), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(16) {
|
|
92
|
+
transition-delay: 1.6s;
|
|
93
|
+
}
|
|
94
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(17), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(17) {
|
|
95
|
+
transition-delay: 1.7s;
|
|
96
|
+
}
|
|
97
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(18), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(18) {
|
|
98
|
+
transition-delay: 1.8s;
|
|
99
|
+
}
|
|
100
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(19), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(19) {
|
|
101
|
+
transition-delay: 1.9s;
|
|
102
|
+
}
|
|
103
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(20), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(20) {
|
|
104
|
+
transition-delay: 2s;
|
|
105
|
+
}
|
|
106
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(21), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(21) {
|
|
107
|
+
transition-delay: 2.1s;
|
|
108
|
+
}
|
|
109
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(22), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(22) {
|
|
110
|
+
transition-delay: 2.2s;
|
|
111
|
+
}
|
|
112
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(23), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(23) {
|
|
113
|
+
transition-delay: 2.3s;
|
|
114
|
+
}
|
|
115
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(24), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(24) {
|
|
116
|
+
transition-delay: 2.4s;
|
|
117
|
+
}
|
|
118
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(25), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(25) {
|
|
119
|
+
transition-delay: 2.5s;
|
|
120
|
+
}
|
|
121
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(26), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(26) {
|
|
122
|
+
transition-delay: 2.6s;
|
|
123
|
+
}
|
|
124
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(27), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(27) {
|
|
125
|
+
transition-delay: 2.7s;
|
|
126
|
+
}
|
|
127
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(28), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(28) {
|
|
128
|
+
transition-delay: 2.8s;
|
|
129
|
+
}
|
|
130
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(29), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(29) {
|
|
131
|
+
transition-delay: 2.9s;
|
|
132
|
+
}
|
|
133
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(30), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(30) {
|
|
134
|
+
transition-delay: 3s;
|
|
135
|
+
}
|
|
136
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(31), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(31) {
|
|
137
|
+
transition-delay: 3.1s;
|
|
138
|
+
}
|
|
139
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(32), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(32) {
|
|
140
|
+
transition-delay: 3.2s;
|
|
141
|
+
}
|
|
142
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(33), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(33) {
|
|
143
|
+
transition-delay: 3.3s;
|
|
144
|
+
}
|
|
145
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(34), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(34) {
|
|
146
|
+
transition-delay: 3.4s;
|
|
147
|
+
}
|
|
148
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(35), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(35) {
|
|
149
|
+
transition-delay: 3.5s;
|
|
150
|
+
}
|
|
151
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(36), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(36) {
|
|
152
|
+
transition-delay: 3.6s;
|
|
153
|
+
}
|
|
154
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(37), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(37) {
|
|
155
|
+
transition-delay: 3.7s;
|
|
156
|
+
}
|
|
157
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(38), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(38) {
|
|
158
|
+
transition-delay: 3.8s;
|
|
159
|
+
}
|
|
160
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(39), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(39) {
|
|
161
|
+
transition-delay: 3.9s;
|
|
162
|
+
}
|
|
163
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(40), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(40) {
|
|
164
|
+
transition-delay: 4s;
|
|
165
|
+
}
|
|
166
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(41), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(41) {
|
|
167
|
+
transition-delay: 4.1s;
|
|
168
|
+
}
|
|
169
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(42), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(42) {
|
|
170
|
+
transition-delay: 4.2s;
|
|
171
|
+
}
|
|
172
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(43), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(43) {
|
|
173
|
+
transition-delay: 4.3s;
|
|
174
|
+
}
|
|
175
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(44), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(44) {
|
|
176
|
+
transition-delay: 4.4s;
|
|
177
|
+
}
|
|
178
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(45), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(45) {
|
|
179
|
+
transition-delay: 4.5s;
|
|
180
|
+
}
|
|
181
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(46), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(46) {
|
|
182
|
+
transition-delay: 4.6s;
|
|
183
|
+
}
|
|
184
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(47), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(47) {
|
|
185
|
+
transition-delay: 4.7s;
|
|
186
|
+
}
|
|
187
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(48), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(48) {
|
|
188
|
+
transition-delay: 4.8s;
|
|
189
|
+
}
|
|
190
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(49), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(49) {
|
|
191
|
+
transition-delay: 4.9s;
|
|
192
|
+
}
|
|
193
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(50), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(50) {
|
|
194
|
+
transition-delay: 5s;
|
|
195
|
+
}
|
|
196
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(51), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(51) {
|
|
197
|
+
transition-delay: 5.1s;
|
|
198
|
+
}
|
|
199
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(52), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(52) {
|
|
200
|
+
transition-delay: 5.2s;
|
|
201
|
+
}
|
|
202
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(53), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(53) {
|
|
203
|
+
transition-delay: 5.3s;
|
|
204
|
+
}
|
|
205
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(54), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(54) {
|
|
206
|
+
transition-delay: 5.4s;
|
|
207
|
+
}
|
|
208
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(55), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(55) {
|
|
209
|
+
transition-delay: 5.5s;
|
|
210
|
+
}
|
|
211
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(56), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(56) {
|
|
212
|
+
transition-delay: 5.6s;
|
|
213
|
+
}
|
|
214
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(57), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(57) {
|
|
215
|
+
transition-delay: 5.7s;
|
|
216
|
+
}
|
|
217
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(58), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(58) {
|
|
218
|
+
transition-delay: 5.8s;
|
|
219
|
+
}
|
|
220
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(59), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(59) {
|
|
221
|
+
transition-delay: 5.9s;
|
|
222
|
+
}
|
|
223
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(60), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(60) {
|
|
224
|
+
transition-delay: 6s;
|
|
225
|
+
}
|
|
226
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(61), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(61) {
|
|
227
|
+
transition-delay: 6.1s;
|
|
228
|
+
}
|
|
229
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(62), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(62) {
|
|
230
|
+
transition-delay: 6.2s;
|
|
231
|
+
}
|
|
232
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(63), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(63) {
|
|
233
|
+
transition-delay: 6.3s;
|
|
234
|
+
}
|
|
235
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(64), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(64) {
|
|
236
|
+
transition-delay: 6.4s;
|
|
237
|
+
}
|
|
238
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(65), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(65) {
|
|
239
|
+
transition-delay: 6.5s;
|
|
240
|
+
}
|
|
241
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(66), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(66) {
|
|
242
|
+
transition-delay: 6.6s;
|
|
243
|
+
}
|
|
244
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(67), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(67) {
|
|
245
|
+
transition-delay: 6.7s;
|
|
246
|
+
}
|
|
247
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(68), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(68) {
|
|
248
|
+
transition-delay: 6.8s;
|
|
249
|
+
}
|
|
250
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(69), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(69) {
|
|
251
|
+
transition-delay: 6.9s;
|
|
252
|
+
}
|
|
253
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(70), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(70) {
|
|
254
|
+
transition-delay: 7s;
|
|
255
|
+
}
|
|
256
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(71), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(71) {
|
|
257
|
+
transition-delay: 7.1s;
|
|
258
|
+
}
|
|
259
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(72), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(72) {
|
|
260
|
+
transition-delay: 7.2s;
|
|
261
|
+
}
|
|
262
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(73), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(73) {
|
|
263
|
+
transition-delay: 7.3s;
|
|
264
|
+
}
|
|
265
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(74), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(74) {
|
|
266
|
+
transition-delay: 7.4s;
|
|
267
|
+
}
|
|
268
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(75), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(75) {
|
|
269
|
+
transition-delay: 7.5s;
|
|
270
|
+
}
|
|
271
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(76), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(76) {
|
|
272
|
+
transition-delay: 7.6s;
|
|
273
|
+
}
|
|
274
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(77), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(77) {
|
|
275
|
+
transition-delay: 7.7s;
|
|
276
|
+
}
|
|
277
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(78), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(78) {
|
|
278
|
+
transition-delay: 7.8s;
|
|
279
|
+
}
|
|
280
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(79), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(79) {
|
|
281
|
+
transition-delay: 7.9s;
|
|
282
|
+
}
|
|
283
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(80), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(80) {
|
|
284
|
+
transition-delay: 8s;
|
|
285
|
+
}
|
|
286
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(81), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(81) {
|
|
287
|
+
transition-delay: 8.1s;
|
|
288
|
+
}
|
|
289
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(82), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(82) {
|
|
290
|
+
transition-delay: 8.2s;
|
|
291
|
+
}
|
|
292
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(83), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(83) {
|
|
293
|
+
transition-delay: 8.3s;
|
|
294
|
+
}
|
|
295
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(84), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(84) {
|
|
296
|
+
transition-delay: 8.4s;
|
|
297
|
+
}
|
|
298
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(85), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(85) {
|
|
299
|
+
transition-delay: 8.5s;
|
|
300
|
+
}
|
|
301
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(86), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(86) {
|
|
302
|
+
transition-delay: 8.6s;
|
|
303
|
+
}
|
|
304
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(87), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(87) {
|
|
305
|
+
transition-delay: 8.7s;
|
|
306
|
+
}
|
|
307
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(88), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(88) {
|
|
308
|
+
transition-delay: 8.8s;
|
|
309
|
+
}
|
|
310
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(89), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(89) {
|
|
311
|
+
transition-delay: 8.9s;
|
|
312
|
+
}
|
|
313
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(90), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(90) {
|
|
314
|
+
transition-delay: 9s;
|
|
315
|
+
}
|
|
316
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(91), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(91) {
|
|
317
|
+
transition-delay: 9.1s;
|
|
318
|
+
}
|
|
319
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(92), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(92) {
|
|
320
|
+
transition-delay: 9.2s;
|
|
321
|
+
}
|
|
322
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(93), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(93) {
|
|
323
|
+
transition-delay: 9.3s;
|
|
324
|
+
}
|
|
325
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(94), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(94) {
|
|
326
|
+
transition-delay: 9.4s;
|
|
327
|
+
}
|
|
328
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(95), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(95) {
|
|
329
|
+
transition-delay: 9.5s;
|
|
330
|
+
}
|
|
331
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(96), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(96) {
|
|
332
|
+
transition-delay: 9.6s;
|
|
333
|
+
}
|
|
334
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(97), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(97) {
|
|
335
|
+
transition-delay: 9.7s;
|
|
336
|
+
}
|
|
337
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(98), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(98) {
|
|
338
|
+
transition-delay: 9.8s;
|
|
339
|
+
}
|
|
340
|
+
.pc-card-layout-block.pc-AnimateBlock.animate .pc-card-layout-block__item:nth-child(99), .pc-AnimateBlock .pc-card-layout-block.animate .pc-card-layout-block__item:nth-child(99) {
|
|
341
|
+
transition-delay: 9.9s;
|
|
342
|
+
}
|
|
66
343
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __rest } from "tslib";
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import isEmpty from 'lodash/isEmpty';
|
|
3
4
|
import { AnimateBlock, BackgroundImage, Title } from '../../components';
|
|
@@ -11,12 +12,13 @@ const DEFAULT_SIZES = {
|
|
|
11
12
|
};
|
|
12
13
|
const b = block('card-layout-block');
|
|
13
14
|
const CardLayout = ({ title, description, animated, colSizes = DEFAULT_SIZES, children, className, titleClassName, background, }) => {
|
|
15
|
+
const _a = background || {}, { border } = _a, backgroundImageProps = __rest(_a, ["border"]);
|
|
14
16
|
return (React.createElement(AnimateBlock, { className: b(null, className), animate: animated },
|
|
15
17
|
(title || description) && (React.createElement(Title, { title: title, subtitle: description, className: titleClassName })),
|
|
16
18
|
React.createElement("div", { className: b('content', {
|
|
17
19
|
'with-background': !isEmpty(background),
|
|
18
20
|
}) },
|
|
19
|
-
React.createElement(BackgroundImage, Object.assign({ className: b('image') },
|
|
21
|
+
React.createElement(BackgroundImage, Object.assign({ className: b('image', { border }) }, backgroundImageProps)),
|
|
20
22
|
React.createElement(Row, null, React.Children.map(children, (child, index) => (React.createElement(Col, { key: index, sizes: colSizes, className: b('item') }, child)))))));
|
|
21
23
|
};
|
|
22
24
|
export default CardLayout;
|