@meduza/ui-kit-2 0.8.3 → 0.8.5
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 +15 -1
- package/dist/Button/Button.types.d.ts +0 -16
- package/dist/Button/ButtonLoader.d.ts +0 -2
- package/dist/Button/index.d.ts +0 -2
- package/dist/Image/Image.types.d.ts +0 -35
- package/dist/SvgSymbol/SvgSymbol.types.d.ts +0 -8
- package/dist/SvgSymbol/icons.d.ts +0 -167
- package/dist/Switcher/Switcher.types.d.ts +0 -12
- package/dist/index.d.ts +0 -45
- package/dist/types.d.ts +0 -20
- package/dist/ui-kit-2.cjs.development.js +0 -2810
- package/dist/ui-kit-2.cjs.development.js.map +0 -1
- package/dist/utils/BlockContext.d.ts +0 -8
- package/dist/utils/makeStyleContext.d.ts +0 -3
- package/dist/utils/postMessage.d.ts +0 -2
- package/package.json +17 -16
- package/src/.DS_Store +0 -0
- package/src/AnnouncementInText/AnnouncementInText.module.css +0 -2
- package/src/AnnouncementInText/AnnouncementInText.stories.module.css +0 -2
- package/src/AnnouncementInText/index.tsx +2 -4
- package/src/BookmarkButton/BookmarkButton.module.css +0 -2
- package/src/BookmarkButton/BookmarkButton.stories.module.css +1 -1
- package/src/Button/Button.module.css +0 -2
- package/src/CardTitle/CardTitle.module.css +4 -2
- package/src/CardTitle/CardTitle.stories.module.css +0 -2
- package/src/CardTitle/index.tsx +1 -1
- package/src/ChapterBlock/ChapterBlock.module.css +0 -2
- package/src/ChapterBlock/ChapterBlock.stories.module.css +0 -2
- package/src/Cover/Cover.module.css +0 -2
- package/src/Cover/Cover.stories.module.css +0 -2
- package/src/Cover/Cover.types.ts +1 -0
- package/src/Cover/index.tsx +4 -1
- package/src/DocumentItemsCount/DocumentItemsCount.module.css +0 -3
- package/src/DocumentItemsCount/DocumentItemsCount.stories.module.css +0 -2
- package/src/DonatesTeaser/DonatesTeaser.module.css +0 -2
- package/src/DonatesTeaser/DonatesTeaser.stories.module.css +0 -2
- package/src/DotsOnImage/DotsOnImage.module.css +0 -2
- package/src/DotsOnImage/DotsOnImage.stories.module.css +0 -2
- package/src/Dropdown/Dropdown.module.css +0 -2
- package/src/Dropdown/Dropdown.stories.module.css +0 -2
- package/src/Dropdown/index.tsx +4 -1
- package/src/EmbedBlock/EmbedBlock.module.css +0 -2
- package/src/EmbedBlock/EmbedBlock.stories.module.css +0 -2
- package/src/EmbedBlock/EmbedBlock.types.ts +1 -0
- package/src/Footnote/Footnote.module.css +0 -2
- package/src/Footnote/Footnote.stories.module.css +0 -2
- package/src/GroupedBlock/GroupedBlock.module.css +0 -2
- package/src/GroupedBlock/GroupedBlock.stories.module.css +0 -2
- package/src/GroupedBlock/GroupedBlock.types.ts +1 -0
- package/src/HalfBlock/HalfBlock.module.css +0 -2
- package/src/HalfBlock/HalfBlock.stories.module.css +0 -2
- package/src/HalfBlock/HalfBlock.types.ts +1 -0
- package/src/Image/Image.module.css +0 -2
- package/src/Image/Image.stories.module.css +0 -2
- package/src/ImportantLead/ImportantLead.module.css +1 -1
- package/src/ImportantLead/ImportantLead.stories.module.css +0 -2
- package/src/ImportantLead/ImportantLead.test.tsx +0 -1
- package/src/ImportantLead/ImportantLead.types.ts +1 -0
- package/src/Lazy/Lazy.module.css +0 -2
- package/src/Lazy/Lazy.stories.module.css +0 -2
- package/src/ListBlock/ListBlock.module.css +0 -2
- package/src/ListBlock/ListBlock.stories.module.css +0 -2
- package/src/MaterialNote/MaterialNote.module.css +0 -2
- package/src/MaterialNote/MaterialNote.stories.module.css +0 -2
- package/src/MaterialTitle/MaterialTitle.module.css +0 -2
- package/src/MaterialTitle/MaterialTitle.stories.module.css +0 -2
- package/src/MediaCaption/MediaCaption.module.css +0 -2
- package/src/MediaCaption/MediaCaption.stories.module.css +0 -2
- package/src/Meta/Meta.module.css +0 -2
- package/src/Meta/Meta.stories.module.css +0 -2
- package/src/Meta/Meta.types.ts +1 -0
- package/src/MetaItem/MetaItem.module.css +0 -2
- package/src/MetaItem/MetaItem.stories.module.css +0 -2
- package/src/MetaItemLive/MetaItemLive.module.css +0 -3
- package/src/MetaItemLive/MetaItemLive.stories.module.css +0 -2
- package/src/Popover/Popover.module.css +0 -2
- package/src/Popover/Popover.stories.module.css +0 -2
- package/src/QuoteBlock/QuoteBlock.module.css +0 -2
- package/src/QuoteBlock/QuoteBlock.stories.module.css +0 -2
- package/src/RawHtmlBlock/RawHtmlBlock.stories.module.css +0 -2
- package/src/RawHtmlBlock/RawHtmlBlock.types.ts +1 -0
- package/src/RelatedBlock/RelatedBlock.module.css +0 -2
- package/src/RelatedBlock/RelatedBlock.stories.module.css +0 -2
- package/src/RelatedBook/RelatedBook.module.css +0 -2
- package/src/RelatedBook/RelatedBook.stories.module.css +0 -2
- package/src/RelatedBook/RelatedBook.types.ts +1 -0
- package/src/RelatedRichBlock/RelatedRichBlock.module.css +0 -2
- package/src/RelatedRichBlock/RelatedRichBlock.stories.module.css +0 -2
- package/src/RelatedRichBlock/RelatedRichBlock.types.ts +1 -0
- package/src/RenderBlocks/RenderBlocks.stories.module.css +0 -2
- package/src/RenderBlocks/RenderBlocks.types.ts +1 -0
- package/src/RenderBlocks/index.tsx +6 -2
- package/src/RichTitle/RichTitle.module.css +0 -2
- package/src/RichTitle/RichTitle.stories.module.css +0 -2
- package/src/SensitiveBlock/SensitiveBlock.module.css +0 -2
- package/src/SensitiveBlock/SensitiveBlock.stories.module.css +0 -2
- package/src/SensitiveBlock/SensitiveBlock.types.ts +1 -0
- package/src/ShopRelatedBlock/ShopRelatedBlock.module.css +0 -2
- package/src/ShopRelatedBlock/ShopRelatedBlock.stories.module.css +0 -2
- package/src/ShopRelatedBlock/ShopRelatedBlock.types.ts +1 -0
- package/src/SimpleBlock/FootnoteLink.css +0 -3
- package/src/SimpleBlock/SimpleBlock.module.css +1 -1
- package/src/SimpleBlock/SimpleBlock.stories.module.css +0 -2
- package/src/SimpleBlock/SimpleBlock.types.ts +1 -0
- package/src/SimpleTitle/SimpleTitle.module.css +0 -2
- package/src/SimpleTitle/SimpleTitle.stories.module.css +0 -2
- package/src/SourceBlock/SourceBlock.module.css +0 -2
- package/src/SourceBlock/SourceBlock.stories.module.css +0 -2
- package/src/Spoiler/Spoiler.module.css +10 -11
- package/src/Spoiler/Spoiler.stories.module.css +0 -2
- package/src/Spoiler/Spoiler.types.ts +1 -0
- package/src/SvgSymbol/SvgSymbol.module.css +2 -4
- package/src/SvgSymbol/SvgSymbol.stories.module.css +0 -70
- package/src/Switcher/Switcher.module.css +0 -2
- package/src/Switcher/Switcher.stories.module.css +0 -2
- package/src/Table/Table.module.css +0 -2
- package/src/Table/Table.stories.module.css +0 -2
- package/src/Tag/Tag.module.css +1 -3
- package/src/Tag/Tag.stories.module.css +0 -2
- package/src/Tag/Tag.types.ts +7 -1
- package/src/Timestamp/Timestamp.module.css +0 -2
- package/src/Timestamp/Timestamp.stories.module.css +0 -2
- package/src/Toolbar/Toolbar.module.css +0 -2
- package/src/Toolbar/Toolbar.stories.module.css +0 -2
- package/src/ToolbarButton/ToolbarButton.module.css +0 -2
- package/src/ToolbarButton/ToolbarButton.stories.module.css +0 -2
- package/src/Tooltip/Tooltip.module.css +0 -2
- package/src/Tooltip/Tooltip.stories.module.css +0 -2
- package/src/VersesBlock/VersesBlock.module.css +0 -2
- package/src/VersesBlock/VersesBlock.stories.module.css +0 -2
- package/src/VersesBlock/VersesBlock.stories.tsx +4 -1
- package/src/VersesBlock/index.tsx +0 -1
- package/src/_storybook/PreviewWrapper/PreviewWrapper.module.css +0 -95
- package/dist/AnnouncementInText/AnnouncementInText.types.d.ts +0 -4
- package/dist/AnnouncementInText/index.d.ts +0 -3
- package/dist/BookmarkButton/BookmarkButton.types.d.ts +0 -6
- package/dist/BookmarkButton/index.d.ts +0 -3
- package/dist/CardTitle/CardTitle.types.d.ts +0 -11
- package/dist/CardTitle/index.d.ts +0 -3
- package/dist/ChapterBlock/ChapterBlock.types.d.ts +0 -8
- package/dist/ChapterBlock/index.d.ts +0 -3
- package/dist/Cover/Cover.types.d.ts +0 -24
- package/dist/Cover/index.d.ts +0 -3
- package/dist/DocumentItemsCount/DocumentItemsCount.types.d.ts +0 -6
- package/dist/DocumentItemsCount/index.d.ts +0 -3
- package/dist/DonatesTeaser/DonatesTeaser.types.d.ts +0 -4
- package/dist/DonatesTeaser/index.d.ts +0 -3
- package/dist/DotsOnImage/DotsOnImage.types.d.ts +0 -46
- package/dist/DotsOnImage/index.d.ts +0 -3
- package/dist/Dropdown/Dropdown.types.d.ts +0 -5
- package/dist/Dropdown/index.d.ts +0 -4
- package/dist/EmbedBlock/EmbedBlock.d.ts +0 -3
- package/dist/EmbedBlock/EmbedBlock.types.d.ts +0 -12
- package/dist/EmbedBlock/EmbedGif.d.ts +0 -3
- package/dist/EmbedBlock/IframeBlock.d.ts +0 -3
- package/dist/EmbedBlock/index.d.ts +0 -3
- package/dist/Footnote/Footnote.types.d.ts +0 -5
- package/dist/Footnote/index.d.ts +0 -3
- package/dist/GroupedBlock/GroupedBlock.types.d.ts +0 -4
- package/dist/GroupedBlock/index.d.ts +0 -3
- package/dist/HalfBlock/HalfBlock.types.d.ts +0 -4
- package/dist/HalfBlock/index.d.ts +0 -3
- package/dist/Image/RenderPicture.d.ts +0 -4
- package/dist/ImportantLead/ImportantLead.types.d.ts +0 -4
- package/dist/ImportantLead/index.d.ts +0 -3
- package/dist/Lazy/Lazy.types.d.ts +0 -4
- package/dist/ListBlock/ListBlock.types.d.ts +0 -9
- package/dist/ListBlock/index.d.ts +0 -3
- package/dist/MaterialNote/MaterialNote.types.d.ts +0 -13
- package/dist/MaterialNote/index.d.ts +0 -3
- package/dist/MaterialTitle/MaterialTitle.types.d.ts +0 -4
- package/dist/MaterialTitle/index.d.ts +0 -5
- package/dist/MediaCaption/MediaCaption.types.d.ts +0 -5
- package/dist/MediaCaption/index.d.ts +0 -3
- package/dist/Meta/Meta.mock.d.ts +0 -12
- package/dist/Meta/Meta.types.d.ts +0 -19
- package/dist/Meta/MetaContainer.d.ts +0 -3
- package/dist/Meta/index.d.ts +0 -3
- package/dist/MetaItem/MetaItem.types.d.ts +0 -7
- package/dist/MetaItem/index.d.ts +0 -3
- package/dist/MetaItemLive/MetaItemLive.types.d.ts +0 -3
- package/dist/MetaItemLive/index.d.ts +0 -3
- package/dist/Popover/Popover.types.d.ts +0 -5
- package/dist/Popover/index.d.ts +0 -3
- package/dist/QuoteBlock/QuoteBlock.types.d.ts +0 -6
- package/dist/QuoteBlock/index.d.ts +0 -3
- package/dist/RawHtmlBlock/RawHtmlBlock.types.d.ts +0 -17
- package/dist/RawHtmlBlock/index.d.ts +0 -3
- package/dist/RelatedBlock/RelatedBlock.types.d.ts +0 -17
- package/dist/RelatedBlock/index.d.ts +0 -3
- package/dist/RelatedBook/RelatedBook.mock.d.ts +0 -65
- package/dist/RelatedBook/RelatedBook.types.d.ts +0 -4
- package/dist/RelatedBook/index.d.ts +0 -3
- package/dist/RelatedRichBlock/RelatedRichBlock.types.d.ts +0 -4
- package/dist/RelatedRichBlock/index.d.ts +0 -3
- package/dist/RenderBlocks/RenderBlocks.types.d.ts +0 -11
- package/dist/RenderBlocks/index.d.ts +0 -3
- package/dist/RichTitle/RichTitle.types.d.ts +0 -12
- package/dist/RichTitle/index.d.ts +0 -3
- package/dist/SensitiveBlock/SensitiveBlock.types.d.ts +0 -15
- package/dist/SensitiveBlock/index.d.ts +0 -3
- package/dist/ShopRelatedBlock/ShopRelatedBlock.types.d.ts +0 -4
- package/dist/ShopRelatedBlock/index.d.ts +0 -3
- package/dist/SimpleBlock/SimpleBlock.types.d.ts +0 -5
- package/dist/SimpleBlock/index.d.ts +0 -3
- package/dist/SimpleTitle/SimpleTitle.types.d.ts +0 -9
- package/dist/SimpleTitle/index.d.ts +0 -3
- package/dist/SourceBlock/SourceBlock.types.d.ts +0 -15
- package/dist/SourceBlock/index.d.ts +0 -3
- package/dist/Spoiler/Spoiler.types.d.ts +0 -4
- package/dist/Spoiler/index.d.ts +0 -3
- package/dist/Table/Table.types.d.ts +0 -25
- package/dist/Table/index.d.ts +0 -3
- package/dist/Tag/Tag.types.d.ts +0 -12
- package/dist/Tag/index.d.ts +0 -3
- package/dist/Timestamp/Timestamp.types.d.ts +0 -5
- package/dist/Timestamp/index.d.ts +0 -4
- package/dist/Toolbar/Toolbar.d.ts +0 -3
- package/dist/Toolbar/Toolbar.types.d.ts +0 -7
- package/dist/Toolbar/ToolbarItem.d.ts +0 -3
- package/dist/Toolbar/index.d.ts +0 -2
- package/dist/ToolbarButton/ToolbarButton.types.d.ts +0 -10
- package/dist/ToolbarButton/index.d.ts +0 -3
- package/dist/Tooltip/Tooltip.d.ts +0 -3
- package/dist/Tooltip/Tooltip.types.d.ts +0 -8
- package/dist/Tooltip/TooltipFooter.d.ts +0 -3
- package/dist/Tooltip/index.d.ts +0 -2
- package/dist/VersesBlock/VersesBlock.types.d.ts +0 -9
- package/dist/VersesBlock/index.d.ts +0 -3
- package/dist/constants.d.ts +0 -41
- package/dist/ui-kit-2.cjs.production.min.js +0 -2
- package/dist/ui-kit-2.cjs.production.min.js.map +0 -1
- package/dist/ui-kit-2.esm.js +0 -2756
- package/dist/ui-kit-2.esm.js.map +0 -1
- package/dist/ui-kit.css +0 -6448
- package/dist/utils/DangerousHtml.d.ts +0 -8
- package/dist/utils/capitalizeFirstLetter.d.ts +0 -1
- package/dist/utils/converCase.d.ts +0 -2
- package/dist/utils/generateGradient.d.ts +0 -2
- package/dist/utils/getElementPositionRelativeToViewport.d.ts +0 -2
- package/dist/utils/pluralize.d.ts +0 -2
- package/dist/utils/viewportSize.d.ts +0 -6
- package/src/vars-games.css +0 -62
- package/src/vars.css +0 -50
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
- `yarn start` - запускает development сборку с hot reload, пишет все в папку dist
|
|
6
6
|
- `cd example && yarn start` - запускает сборку тестового проекта с hot reload,
|
|
7
|
-
в который можно импортировать компоненты из кита
|
|
7
|
+
в который можно импортировать компоненты из кита
|
|
8
8
|
- `yarn storybook` - запускает storybook
|
|
9
9
|
|
|
10
10
|
`yarn generate` - генератор компонентов. Вводим название компонента, получаем все файлы и импорты
|
|
@@ -14,3 +14,17 @@
|
|
|
14
14
|
Необходимо глобально импортировать в проект файл ui-kit.css (туда собираются все модули)
|
|
15
15
|
Любые компоненты просто импортятся из кита
|
|
16
16
|
|
|
17
|
+
## Сборка
|
|
18
|
+
|
|
19
|
+
### Режимы сборки
|
|
20
|
+
|
|
21
|
+
- `yarn build --mode development` - сборка стилей с переменными сайта
|
|
22
|
+
- `yarn build --mode production` - сборка стилей без переменных
|
|
23
|
+
|
|
24
|
+
### Особенности production сборки
|
|
25
|
+
|
|
26
|
+
- Запускается без подключения переменных в silent-режиме
|
|
27
|
+
- CSS-модули собираются в `ui-kit.css`
|
|
28
|
+
- После сборки запускается `build.sh`:
|
|
29
|
+
1. Создает `ui-kit-game.css` с игровыми переменными
|
|
30
|
+
2. Перезаписывает `ui-kit.css` с переменными сайта
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type ButtonThemes = 'sand' | 'gold' | 'light' | 'gray' | 'ghost' | 'dark' | 'black' | 'red';
|
|
3
|
-
export type ButtonStates = 'isLoading' | 'isDefault';
|
|
4
|
-
export type ButtonSizes = 'auto' | 'default';
|
|
5
|
-
export type ButtonStyleContexts = 'isInToolbar' | 'isInSpoiler' | 'isInDropdown';
|
|
6
|
-
export type ButtonAppearance = 'isFancy' | 'isClassic';
|
|
7
|
-
export interface ButtonProps {
|
|
8
|
-
theme?: ButtonThemes;
|
|
9
|
-
appearance?: ButtonAppearance;
|
|
10
|
-
size?: ButtonSizes;
|
|
11
|
-
state?: ButtonStates;
|
|
12
|
-
styleContext?: ButtonStyleContexts;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
onClick?: () => void;
|
|
15
|
-
children: React.ReactNode | JSX.Element[] | JSX.Element;
|
|
16
|
-
}
|
package/dist/Button/index.d.ts
CHANGED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { OptimizedImageItem } from '../types';
|
|
2
|
-
export interface ImageProps {
|
|
3
|
-
alt?: string;
|
|
4
|
-
display?: string;
|
|
5
|
-
optimized?: {
|
|
6
|
-
original?: string;
|
|
7
|
-
w325: OptimizedImageItem;
|
|
8
|
-
w520?: OptimizedImageItem;
|
|
9
|
-
w650?: OptimizedImageItem;
|
|
10
|
-
w980?: OptimizedImageItem;
|
|
11
|
-
w1335?: OptimizedImageItem;
|
|
12
|
-
};
|
|
13
|
-
width?: number;
|
|
14
|
-
height?: number;
|
|
15
|
-
source?: string[];
|
|
16
|
-
lazy?: boolean;
|
|
17
|
-
ratio?: number;
|
|
18
|
-
fullscreen?: boolean;
|
|
19
|
-
styleContext?: string[] | string;
|
|
20
|
-
}
|
|
21
|
-
export interface PictureProps {
|
|
22
|
-
source?: string[];
|
|
23
|
-
optimized?: {
|
|
24
|
-
original?: string;
|
|
25
|
-
w325: OptimizedImageItem;
|
|
26
|
-
w520?: OptimizedImageItem;
|
|
27
|
-
w650?: OptimizedImageItem;
|
|
28
|
-
w980?: OptimizedImageItem;
|
|
29
|
-
w1335?: OptimizedImageItem;
|
|
30
|
-
};
|
|
31
|
-
alt?: string;
|
|
32
|
-
fallbackSource: string;
|
|
33
|
-
display: string;
|
|
34
|
-
onLoad: (boolean: any) => void;
|
|
35
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export type SvgSymbolStyleContexts = 'isInFeature' | 'isInCard' | 'isInTopicBlockItem' | 'isInPageStatic' | 'isInMaterialMeta' | 'isInToolbar' | 'isInEpisodeBlock' | 'isInAudioPlayer' | 'isInAudioPanel' | 'isInPlaylist' | 'PodcastMaterial' | 'isInHeader' | 'isInProfile' | 'isInBookmark';
|
|
2
|
-
export type Icons = 'meduzaLogo' | 'meduzaSymbol' | 'menu' | 'fb' | 'tw' | 'vk' | 'ok' | 'tg' | 'chat' | 'magic' | 'backward' | 'forward' | 'download' | 'play' | 'pause' | 'shareBookmark' | 'speedHalf' | 'speedOne' | 'speedOneHalf' | 'speedTwo' | 'podcastBookmark' | 'reaction' | 'cross' | 'link' | 'search' | 'card' | 'podcast' | 'arrow' | 'brent' | 'user' | 'bookmark' | 'receipt' | 'read' | 'listened';
|
|
3
|
-
export type Sizes = 'small' | 'normal' | 'medium' | 'large' | 'unset';
|
|
4
|
-
export interface SvgSymbolProps {
|
|
5
|
-
styleContext?: SvgSymbolStyleContexts;
|
|
6
|
-
size?: Sizes;
|
|
7
|
-
icon: Icons;
|
|
8
|
-
}
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
export declare const icons: {
|
|
2
|
-
meduzaLogo: {
|
|
3
|
-
width: number;
|
|
4
|
-
height: number;
|
|
5
|
-
content: string;
|
|
6
|
-
};
|
|
7
|
-
menu: {
|
|
8
|
-
width: number;
|
|
9
|
-
height: number;
|
|
10
|
-
content: string;
|
|
11
|
-
};
|
|
12
|
-
fb: {
|
|
13
|
-
width: number;
|
|
14
|
-
height: number;
|
|
15
|
-
content: string;
|
|
16
|
-
};
|
|
17
|
-
tw: {
|
|
18
|
-
width: number;
|
|
19
|
-
height: number;
|
|
20
|
-
content: string;
|
|
21
|
-
};
|
|
22
|
-
vk: {
|
|
23
|
-
width: number;
|
|
24
|
-
height: number;
|
|
25
|
-
content: string;
|
|
26
|
-
};
|
|
27
|
-
ok: {
|
|
28
|
-
width: number;
|
|
29
|
-
height: number;
|
|
30
|
-
content: string;
|
|
31
|
-
};
|
|
32
|
-
tg: {
|
|
33
|
-
width: number;
|
|
34
|
-
height: number;
|
|
35
|
-
content: string;
|
|
36
|
-
};
|
|
37
|
-
meduzaSymbol: {
|
|
38
|
-
width: number;
|
|
39
|
-
height: number;
|
|
40
|
-
content: string;
|
|
41
|
-
};
|
|
42
|
-
backward: {
|
|
43
|
-
width: number;
|
|
44
|
-
height: number;
|
|
45
|
-
content: string;
|
|
46
|
-
};
|
|
47
|
-
forward: {
|
|
48
|
-
width: number;
|
|
49
|
-
height: number;
|
|
50
|
-
content: string;
|
|
51
|
-
};
|
|
52
|
-
download: {
|
|
53
|
-
width: number;
|
|
54
|
-
height: number;
|
|
55
|
-
content: string;
|
|
56
|
-
};
|
|
57
|
-
play: {
|
|
58
|
-
width: number;
|
|
59
|
-
height: number;
|
|
60
|
-
content: string;
|
|
61
|
-
};
|
|
62
|
-
pause: {
|
|
63
|
-
width: number;
|
|
64
|
-
height: number;
|
|
65
|
-
content: string;
|
|
66
|
-
};
|
|
67
|
-
speedHalf: {
|
|
68
|
-
width: number;
|
|
69
|
-
height: number;
|
|
70
|
-
content: string;
|
|
71
|
-
};
|
|
72
|
-
speedOne: {
|
|
73
|
-
width: number;
|
|
74
|
-
height: number;
|
|
75
|
-
content: string;
|
|
76
|
-
};
|
|
77
|
-
speedOneHalf: {
|
|
78
|
-
width: number;
|
|
79
|
-
height: number;
|
|
80
|
-
content: string;
|
|
81
|
-
};
|
|
82
|
-
speedTwo: {
|
|
83
|
-
width: number;
|
|
84
|
-
height: number;
|
|
85
|
-
content: string;
|
|
86
|
-
};
|
|
87
|
-
podcastBookmark: {
|
|
88
|
-
width: number;
|
|
89
|
-
height: number;
|
|
90
|
-
content: string;
|
|
91
|
-
};
|
|
92
|
-
reaction: {
|
|
93
|
-
width: number;
|
|
94
|
-
height: number;
|
|
95
|
-
content: string;
|
|
96
|
-
};
|
|
97
|
-
cross: {
|
|
98
|
-
width: number;
|
|
99
|
-
height: number;
|
|
100
|
-
content: string;
|
|
101
|
-
};
|
|
102
|
-
link: {
|
|
103
|
-
width: number;
|
|
104
|
-
height: number;
|
|
105
|
-
content: string;
|
|
106
|
-
};
|
|
107
|
-
search: {
|
|
108
|
-
width: number;
|
|
109
|
-
height: number;
|
|
110
|
-
content: string;
|
|
111
|
-
};
|
|
112
|
-
card: {
|
|
113
|
-
width: number;
|
|
114
|
-
height: number;
|
|
115
|
-
content: string;
|
|
116
|
-
};
|
|
117
|
-
podcast: {
|
|
118
|
-
width: number;
|
|
119
|
-
height: number;
|
|
120
|
-
content: string;
|
|
121
|
-
};
|
|
122
|
-
arrow: {
|
|
123
|
-
width: number;
|
|
124
|
-
height: number;
|
|
125
|
-
content: string;
|
|
126
|
-
};
|
|
127
|
-
brent: {
|
|
128
|
-
width: number;
|
|
129
|
-
height: number;
|
|
130
|
-
content: string;
|
|
131
|
-
};
|
|
132
|
-
user: {
|
|
133
|
-
width: number;
|
|
134
|
-
height: number;
|
|
135
|
-
content: string;
|
|
136
|
-
};
|
|
137
|
-
bookmark: {
|
|
138
|
-
width: number;
|
|
139
|
-
height: number;
|
|
140
|
-
content: string;
|
|
141
|
-
};
|
|
142
|
-
shareBookmark: {
|
|
143
|
-
width: number;
|
|
144
|
-
height: number;
|
|
145
|
-
content: string;
|
|
146
|
-
};
|
|
147
|
-
receipt: {
|
|
148
|
-
width: number;
|
|
149
|
-
height: number;
|
|
150
|
-
content: string;
|
|
151
|
-
};
|
|
152
|
-
read: {
|
|
153
|
-
width: number;
|
|
154
|
-
height: number;
|
|
155
|
-
content: string;
|
|
156
|
-
};
|
|
157
|
-
listened: {
|
|
158
|
-
width: number;
|
|
159
|
-
height: number;
|
|
160
|
-
content: string;
|
|
161
|
-
};
|
|
162
|
-
magic: {
|
|
163
|
-
width: number;
|
|
164
|
-
height: number;
|
|
165
|
-
content: string;
|
|
166
|
-
};
|
|
167
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type SwitcherStyleContexts = 'isInLive' | 'isInPanel' | 'isInMenu';
|
|
3
|
-
export type SwitcherThemes = 'light' | 'dark';
|
|
4
|
-
export type SwitcherChildrenPositions = 'left' | 'right';
|
|
5
|
-
export interface SwitcherProps {
|
|
6
|
-
enabled: boolean;
|
|
7
|
-
styleContext: SwitcherStyleContexts;
|
|
8
|
-
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
9
|
-
theme?: SwitcherThemes;
|
|
10
|
-
children: JSX.Element[] | JSX.Element;
|
|
11
|
-
childrenPosition?: SwitcherChildrenPositions;
|
|
12
|
-
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export * from './Button';
|
|
2
|
-
export * from './SvgSymbol';
|
|
3
|
-
export * from './Switcher';
|
|
4
|
-
export * from './Image';
|
|
5
|
-
export * from './DotsOnImage';
|
|
6
|
-
export * from './Lazy';
|
|
7
|
-
export * from './Tag';
|
|
8
|
-
export * from './Table';
|
|
9
|
-
export * from './MediaCaption';
|
|
10
|
-
export * from './MaterialNote';
|
|
11
|
-
export * from './BookmarkButton';
|
|
12
|
-
export * from './MaterialTitle';
|
|
13
|
-
export * from './Dropdown';
|
|
14
|
-
export * from './Toolbar';
|
|
15
|
-
export * from './Popover';
|
|
16
|
-
export * from './Meta';
|
|
17
|
-
export * from './Timestamp';
|
|
18
|
-
export * from './EmbedBlock';
|
|
19
|
-
export * from './QuoteBlock';
|
|
20
|
-
export * from './CardTitle';
|
|
21
|
-
export * from './ChapterBlock';
|
|
22
|
-
export * from './Cover';
|
|
23
|
-
export * from './RenderBlocks';
|
|
24
|
-
export * from './GroupedBlock';
|
|
25
|
-
export * from './HalfBlock';
|
|
26
|
-
export * from './RawHtmlBlock';
|
|
27
|
-
export * from './ImportantLead';
|
|
28
|
-
export * from './ListBlock';
|
|
29
|
-
export * from './RelatedBlock';
|
|
30
|
-
export * from './RichTitle';
|
|
31
|
-
export * from './SimpleBlock';
|
|
32
|
-
export * from './SimpleTitle';
|
|
33
|
-
export * from './SourceBlock';
|
|
34
|
-
export * from './Spoiler';
|
|
35
|
-
export * from './MetaItem';
|
|
36
|
-
export * from './MetaItemLive';
|
|
37
|
-
export * from './DocumentItemsCount';
|
|
38
|
-
export * from './ToolbarButton';
|
|
39
|
-
export * from './Footnote';
|
|
40
|
-
export * from './RelatedRichBlock';
|
|
41
|
-
export * from './SensitiveBlock';
|
|
42
|
-
export * from './DonatesTeaser';
|
|
43
|
-
export * from './ShopRelatedBlock';
|
|
44
|
-
export * from './AnnouncementInText';
|
|
45
|
-
export * from './Tooltip';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export interface OptimizedImageItem {
|
|
2
|
-
'1x': string;
|
|
3
|
-
'2x': string;
|
|
4
|
-
'1x_webp': string;
|
|
5
|
-
'2x_webp': string;
|
|
6
|
-
}
|
|
7
|
-
export type CallToActions = 'fb' | 'tw' | 'vk' | 'ok' | 'tg' | 'wp' | 'reaction' | 'pdf' | 'bookmark' | 'cross';
|
|
8
|
-
export type LightboxImage = {
|
|
9
|
-
original: string;
|
|
10
|
-
w325: OptimizedImageItem;
|
|
11
|
-
w520: OptimizedImageItem;
|
|
12
|
-
w650: OptimizedImageItem;
|
|
13
|
-
w980: OptimizedImageItem;
|
|
14
|
-
w1335: OptimizedImageItem;
|
|
15
|
-
};
|
|
16
|
-
export interface LightboxContext {
|
|
17
|
-
show: (image: LightboxImage, alt?: string) => void;
|
|
18
|
-
hide: () => void;
|
|
19
|
-
visible: boolean;
|
|
20
|
-
}
|