Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/blocks/CardLayout/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ The following blocks are currently supported:
- [`Price Detailed` — Pricing](?path=/story/components-cards-pricedetailed--marked-list&viewMode=docs)
- [`BackgroundCard` — Background card](?path=/story/components-cards-backgroundcard--default&viewMode=docs)
- [`LayoutItem` — Component part of `Layout` component, consists with `Media` and `Content`](?path=/story/components-cards-layoutitem--default&viewMode=docs)
- [`NewsCard` — News card](?path=/story/components-cards-newscard--default&viewMode=docs)
1 change: 0 additions & 1 deletion src/blocks/Slider/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,3 @@ The following blocks are currently supported:
- [`BackgroundCard` — Background card](?path=/story/components-cards-backgroundcard--default&viewMode=docs)
- [`LayoutItem` — `Media` + `Content` components in one card-like view](?path=/story/components-cards-layoutitem--default&viewMode=docs)
- [`MediaCard` — Card with an image](?path=/story/блоки-media--default&viewMode=docs)
- [`NewsCard` — News card](?path=/story/components-cards-newscard--default&viewMode=docs)
2 changes: 0 additions & 2 deletions src/constructor-items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import {
Divider,
LayoutItem,
MediaCard,
NewsCard,
PriceDetailed,
Quote,
} from './sub-blocks';
Expand Down Expand Up @@ -58,7 +57,6 @@ export const subBlockMap = {
[SubBlockType.PriceDetailed]: PriceDetailed,
[SubBlockType.MediaCard]: MediaCard,
[SubBlockType.BannerCard]: BannerCard,
[SubBlockType.NewsCard]: NewsCard,
[SubBlockType.LayoutItem]: LayoutItem,
[SubBlockType.BackgroundCard]: BackgroundCard,
[SubBlockType.BasicCard]: BasicCard,
Expand Down
18 changes: 0 additions & 18 deletions src/models/constructor-items/sub-blocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import {
export enum SubBlockType {
Divider = 'divider',
Quote = 'quote',
NewsCard = 'news-card',
/**
* @deprecated Will be removed
*/
Expand Down Expand Up @@ -94,18 +93,6 @@ export interface QuoteProps extends Themable, CardBaseProps {
theme?: TextTheme;
}

export interface NewsCardData {
id: number;
slug: string;
title: string;
date: string;
url: string;
isoDate?: string;
}

export type NewsCardProps = Pick<NewsCardData, 'title' | 'url' | 'date' | 'isoDate'> &
CardBaseProps;

export interface BackgroundCardProps
extends CardBaseProps,
Omit<ContentBlockProps, 'colSizes' | 'centered'> {
Expand Down Expand Up @@ -152,10 +139,6 @@ export type QuoteModel = {
type: SubBlockType.Quote;
} & QuoteProps;

export type NewsCardModel = {
type: SubBlockType.NewsCard;
} & NewsCardProps;

export type LayoutItemModel = {
type: SubBlockType.LayoutItem;
} & LayoutItemProps;
Expand Down Expand Up @@ -187,7 +170,6 @@ export type BasicCardModel = {
export type SubBlockModels =
| DividerModel
| QuoteModel
| NewsCardModel
| PriceDetailedModel
| MediaCardModel
| BackgroundCardModel
Expand Down
3 changes: 0 additions & 3 deletions src/schema/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import {
BasicCard,
Divider,
MediaCardBlock,
NewsCard,
PriceDetailedBlock,
Quote,
} from './validators/sub-blocks';
Expand Down Expand Up @@ -80,7 +79,6 @@ export function generateDefaultSchema(config?: SchemaCustomConfig) {
...BannerCard,
...PriceDetailedBlock,
...BackgroundCard,
...NewsCard,
...Quote,
...BasicCard,
};
Expand Down Expand Up @@ -118,7 +116,6 @@ export function generateDefaultSchema(config?: SchemaCustomConfig) {
'banner-card',
'price-detailed',
'background-card',
'news-card',
'quote',
'basic-card',
'layout-item',
Expand Down
1 change: 0 additions & 1 deletion src/schema/validators/sub-blocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ export * from '../../sub-blocks/PriceDetailed/schema';
export * from '../../sub-blocks/BackgroundCard/schema';
export * from '../../sub-blocks/Content/schema';
export * from '../../sub-blocks/MediaCard/schema';
export * from '../../sub-blocks/NewsCard/schema';
export * from '../../sub-blocks/LayoutItem/schema';
export * from '../../sub-blocks/Quote/schema';
export * from '../../sub-blocks/Divider/schema';
Expand Down
17 changes: 0 additions & 17 deletions src/sub-blocks/NewsCard/NewsCard.scss

This file was deleted.

32 changes: 0 additions & 32 deletions src/sub-blocks/NewsCard/NewsCard.tsx

This file was deleted.

24 changes: 0 additions & 24 deletions src/sub-blocks/NewsCard/schema.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/sub-blocks/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export {default as Divider} from './Divider/Divider';
export {default as Quote} from './Quote/Quote';
export {default as NewsCard} from './NewsCard/NewsCard';
export {default as PriceDetailed} from './PriceDetailed/PriceDetailed';
export {default as MediaCard} from './MediaCard/MediaCard';
export {default as BannerCard} from './BannerCard/BannerCard';
Expand Down