@meduza/ui-kit-2 0.3.0 → 0.4.0
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/AnnouncementInText/AnnouncementInText.types.d.ts +4 -4
- package/dist/AnnouncementInText/index.d.ts +3 -3
- package/dist/BookmarkButton/BookmarkButton.types.d.ts +6 -6
- package/dist/BookmarkButton/index.d.ts +3 -3
- package/dist/Button/Button.d.ts +3 -3
- package/dist/Button/Button.types.d.ts +16 -16
- package/dist/Button/ButtonLoader.d.ts +2 -2
- package/dist/Button/index.d.ts +2 -2
- package/dist/CardTitle/CardTitle.types.d.ts +10 -10
- package/dist/CardTitle/index.d.ts +3 -3
- package/dist/ChapterBlock/ChapterBlock.types.d.ts +7 -7
- package/dist/ChapterBlock/index.d.ts +3 -3
- package/dist/Cover/Cover.types.d.ts +24 -24
- package/dist/Cover/index.d.ts +3 -3
- package/dist/DocumentItemsCount/DocumentItemsCount.types.d.ts +6 -7
- package/dist/DocumentItemsCount/index.d.ts +3 -3
- package/dist/DonatesTeaser/DonatesTeaser.types.d.ts +4 -4
- package/dist/DonatesTeaser/index.d.ts +3 -3
- package/dist/DotsOnImage/DotsOnImage.types.d.ts +46 -46
- package/dist/DotsOnImage/index.d.ts +3 -3
- package/dist/Dropdown/Dropdown.types.d.ts +5 -6
- package/dist/Dropdown/index.d.ts +4 -4
- package/dist/EmbedBlock/EmbedBlock.d.ts +3 -3
- package/dist/EmbedBlock/EmbedBlock.types.d.ts +12 -11
- package/dist/EmbedBlock/EmbedGif.d.ts +3 -3
- package/dist/EmbedBlock/IframeBlock.d.ts +3 -3
- package/dist/EmbedBlock/index.d.ts +3 -3
- package/dist/Footnote/Footnote.types.d.ts +5 -5
- package/dist/Footnote/index.d.ts +3 -3
- package/dist/GroupedBlock/GroupedBlock.types.d.ts +4 -4
- package/dist/GroupedBlock/index.d.ts +3 -3
- package/dist/HalfBlock/HalfBlock.types.d.ts +4 -4
- package/dist/HalfBlock/index.d.ts +3 -3
- package/dist/Image/Image.types.d.ts +35 -35
- package/dist/Image/RenderPicture.d.ts +4 -4
- package/dist/Image/index.d.ts +3 -3
- package/dist/ImportantLead/ImportantLead.types.d.ts +4 -4
- package/dist/ImportantLead/index.d.ts +3 -3
- package/dist/Lazy/Lazy.types.d.ts +4 -5
- package/dist/Lazy/index.d.ts +3 -3
- package/dist/ListBlock/ListBlock.types.d.ts +9 -10
- package/dist/ListBlock/index.d.ts +3 -3
- package/dist/MaterialNote/MaterialNote.types.d.ts +13 -13
- package/dist/MaterialNote/index.d.ts +3 -3
- package/dist/MaterialTitle/MaterialTitle.types.d.ts +4 -4
- package/dist/MaterialTitle/index.d.ts +5 -5
- package/dist/MediaCaption/MediaCaption.types.d.ts +5 -5
- package/dist/MediaCaption/index.d.ts +3 -3
- package/dist/Meta/Meta.types.d.ts +19 -19
- package/dist/Meta/MetaContainer.d.ts +3 -3
- package/dist/Meta/index.d.ts +3 -3
- package/dist/MetaItem/MetaItem.types.d.ts +7 -7
- package/dist/MetaItem/index.d.ts +3 -3
- package/dist/MetaItemLive/MetaItemLive.types.d.ts +3 -3
- package/dist/MetaItemLive/index.d.ts +3 -3
- package/dist/Popover/Popover.types.d.ts +5 -5
- package/dist/Popover/index.d.ts +3 -3
- package/dist/QuoteBlock/QuoteBlock.types.d.ts +6 -6
- package/dist/QuoteBlock/index.d.ts +3 -3
- package/dist/RawHtmlBlock/RawHtmlBlock.types.d.ts +17 -17
- package/dist/RawHtmlBlock/index.d.ts +3 -3
- package/dist/RelatedBlock/RelatedBlock.types.d.ts +17 -17
- package/dist/RelatedBlock/index.d.ts +3 -3
- package/dist/RelatedRichBlock/RelatedRichBlock.types.d.ts +4 -4
- package/dist/RelatedRichBlock/index.d.ts +3 -3
- package/dist/RenderBlocks/RenderBlocks.types.d.ts +11 -11
- package/dist/RenderBlocks/index.d.ts +3 -3
- package/dist/RichTitle/RichTitle.types.d.ts +12 -13
- package/dist/RichTitle/index.d.ts +3 -3
- package/dist/SensitiveBlock/SensitiveBlock.types.d.ts +15 -15
- package/dist/SensitiveBlock/index.d.ts +3 -3
- package/dist/ShopRelatedBlock/ShopRelatedBlock.types.d.ts +4 -4
- package/dist/ShopRelatedBlock/index.d.ts +3 -3
- package/dist/SimpleBlock/SimpleBlock.types.d.ts +4 -4
- package/dist/SimpleBlock/index.d.ts +3 -3
- package/dist/SimpleTitle/SimpleTitle.types.d.ts +9 -9
- package/dist/SimpleTitle/index.d.ts +3 -3
- package/dist/SourceBlock/SourceBlock.types.d.ts +15 -15
- package/dist/SourceBlock/index.d.ts +3 -3
- package/dist/Spoiler/Spoiler.types.d.ts +4 -4
- package/dist/Spoiler/index.d.ts +3 -3
- package/dist/SvgSymbol/SvgSymbol.types.d.ts +8 -8
- package/dist/SvgSymbol/icons.d.ts +167 -167
- package/dist/SvgSymbol/index.d.ts +3 -3
- package/dist/Switcher/Switcher.types.d.ts +12 -12
- package/dist/Switcher/index.d.ts +3 -3
- package/dist/Table/Table.types.d.ts +25 -25
- package/dist/Table/index.d.ts +3 -3
- package/dist/Tag/Tag.types.d.ts +12 -12
- package/dist/Tag/index.d.ts +3 -3
- package/dist/Timestamp/Timestamp.types.d.ts +5 -5
- package/dist/Timestamp/index.d.ts +4 -4
- package/dist/Toolbar/Toolbar.d.ts +3 -3
- package/dist/Toolbar/Toolbar.types.d.ts +7 -8
- package/dist/Toolbar/ToolbarItem.d.ts +3 -3
- package/dist/Toolbar/index.d.ts +2 -2
- package/dist/ToolbarButton/ToolbarButton.types.d.ts +10 -10
- package/dist/ToolbarButton/index.d.ts +3 -3
- package/dist/Tooltip/Tooltip.d.ts +3 -3
- package/dist/Tooltip/Tooltip.types.d.ts +8 -8
- package/dist/Tooltip/TooltipFooter.d.ts +3 -3
- package/dist/Tooltip/index.d.ts +2 -2
- package/dist/constants.d.ts +41 -41
- package/dist/index.d.ts +45 -45
- package/dist/index.js +2 -2
- package/dist/types.d.ts +20 -20
- package/dist/ui-kit.css +3894 -4102
- package/dist/uikit.cjs.development.js +2706 -0
- package/dist/uikit.cjs.development.js.map +1 -0
- package/dist/uikit.cjs.production.min.js +2 -0
- package/dist/uikit.cjs.production.min.js.map +1 -0
- package/dist/uikit.esm.js +2652 -0
- package/dist/uikit.esm.js.map +1 -0
- package/dist/utils/BlockContext.d.ts +8 -8
- package/dist/utils/DangerousHtml.d.ts +8 -8
- package/dist/utils/capitalizeFirstLetter.d.ts +1 -1
- package/dist/utils/converCase.d.ts +2 -2
- package/dist/utils/generateGradient.d.ts +2 -2
- package/dist/utils/getElementPositionRelativeToViewport.d.ts +2 -2
- package/dist/utils/makeClassName.d.ts +3 -3
- package/dist/utils/makeStyleContext.d.ts +3 -3
- package/dist/utils/pluralize.d.ts +2 -2
- package/dist/utils/postMessage.d.ts +2 -2
- package/dist/utils/viewportSize.d.ts +6 -6
- package/package.json +68 -62
- package/src/BookmarkButton/BookmarkButton.css +4 -3
- package/src/BookmarkButton/BookmarkButton.module.css +4 -3
- package/src/Button/Button.module.css +29 -19
- package/src/Cover/Cover.module.css +20 -13
- package/src/EmbedBlock/EmbedBlock.types.ts +1 -0
- package/src/Toolbar/Toolbar.module.css +13 -12
- package/src/Toolbar/Toolbar.stories.tsx +1 -3
- package/src/ToolbarButton/ToolbarButton.module.css +8 -7
- package/src/ToolbarButton/ToolbarButton.stories.tsx +1 -3
- package/src/ToolbarButton/ToolbarButton.test.tsx +1 -3
- package/src/Tooltip/Tooltip.module.css +13 -6
- package/dist/AnnouncementInText/AnnouncementInText.stories.d.ts +0 -10
- package/dist/BookmarkButton/BookmarkButton.stories.d.ts +0 -10
- package/dist/Button/Button.stories.d.ts +0 -10
- package/dist/CardTitle/CardTitle.stories.d.ts +0 -10
- package/dist/ChapterBlock/ChapterBlock.stories.d.ts +0 -10
- package/dist/Cover/Cover.stories.d.ts +0 -10
- package/dist/DocumentItemsCount/DocumentItemsCount.stories.d.ts +0 -10
- package/dist/DonatesTeaser/DonatesTeaser.stories.d.ts +0 -10
- package/dist/DotsOnImage/DotsOnImage.stories.d.ts +0 -10
- package/dist/Dropdown/Dropdown.stories.d.ts +0 -10
- package/dist/EmbedBlock/EmbedBlock.stories.d.ts +0 -10
- package/dist/Footnote/Footnote.stories.d.ts +0 -10
- package/dist/GroupedBlock/GroupedBlock.stories.d.ts +0 -10
- package/dist/HalfBlock/HalfBlock.stories.d.ts +0 -10
- package/dist/Image/Image.stories.d.ts +0 -10
- package/dist/ImportantLead/ImportantLead.stories.d.ts +0 -10
- package/dist/Lazy/Lazy.stories.d.ts +0 -10
- package/dist/ListBlock/ListBlock.stories.d.ts +0 -11
- package/dist/MaterialNote/MaterialNote.stories.d.ts +0 -11
- package/dist/MaterialTitle/MaterialTitle.stories.d.ts +0 -10
- package/dist/MediaCaption/MediaCaption.stories.d.ts +0 -10
- package/dist/Meta/Meta.stories.d.ts +0 -10
- package/dist/MetaItem/MetaItem.stories.d.ts +0 -10
- package/dist/MetaItemLive/MetaItemLive.stories.d.ts +0 -10
- package/dist/Popover/Popover.stories.d.ts +0 -10
- package/dist/QuoteBlock/QuoteBlock.stories.d.ts +0 -10
- package/dist/RawHtmlBlock/RawHtmlBlock.stories.d.ts +0 -10
- package/dist/RelatedBlock/RelatedBlock.stories.d.ts +0 -10
- package/dist/RelatedRichBlock/RelatedRichBlock.stories.d.ts +0 -10
- package/dist/RenderBlocks/RenderBlocks.stories.d.ts +0 -10
- package/dist/RichTitle/RichTitle.stories.d.ts +0 -10
- package/dist/SensitiveBlock/SensitiveBlock.stories.d.ts +0 -10
- package/dist/ShopRelatedBlock/ShopRelatedBlock.stories.d.ts +0 -10
- package/dist/SimpleBlock/SimpleBlock.stories.d.ts +0 -10
- package/dist/SimpleTitle/SimpleTitle.stories.d.ts +0 -10
- package/dist/SourceBlock/SourceBlock.stories.d.ts +0 -10
- package/dist/Spoiler/Spoiler.stories.d.ts +0 -10
- package/dist/SvgSymbol/SvgSymbol.stories.d.ts +0 -10
- package/dist/Switcher/Switcher.stories.d.ts +0 -10
- package/dist/Table/Table.stories.d.ts +0 -10
- package/dist/Tag/Tag.stories.d.ts +0 -10
- package/dist/Timestamp/Timestamp.stories.d.ts +0 -10
- package/dist/Toolbar/Toolbar.stories.d.ts +0 -10
- package/dist/ToolbarButton/ToolbarButton.stories.d.ts +0 -10
- package/dist/Tooltip/Tooltip.stories.d.ts +0 -10
- package/dist/_storybook/PreviewWrapper/index.d.ts +0 -6
- package/dist/ui-kit-2.cjs.development.js +0 -2906
- package/dist/ui-kit-2.cjs.development.js.map +0 -1
- 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 -2849
- package/dist/ui-kit-2.esm.js.map +0 -1
package/dist/constants.d.ts
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
export declare const MediaQuerySizes: {
|
|
2
|
-
MOBILE: number;
|
|
3
|
-
PORTRAIT_TABLET: number;
|
|
4
|
-
LANDSCAPE_TABLET: number;
|
|
5
|
-
DESKTOP: number;
|
|
6
|
-
WIDE_DESKTOP: number;
|
|
7
|
-
};
|
|
8
|
-
export declare const imageBreakpoints: {
|
|
9
|
-
325: string;
|
|
10
|
-
520: string;
|
|
11
|
-
600: string;
|
|
12
|
-
650: string;
|
|
13
|
-
980: string;
|
|
14
|
-
1335: string;
|
|
15
|
-
};
|
|
16
|
-
export declare const imageConditionalKeys: {
|
|
17
|
-
xs: number[];
|
|
18
|
-
superFull: number[];
|
|
19
|
-
full: number[];
|
|
20
|
-
default: number[];
|
|
21
|
-
narrow: number[];
|
|
22
|
-
};
|
|
23
|
-
export declare const SocialLabels: {
|
|
24
|
-
ru: {
|
|
25
|
-
tg: string;
|
|
26
|
-
fb: string;
|
|
27
|
-
tw: string;
|
|
28
|
-
pdf: string;
|
|
29
|
-
unblock: string;
|
|
30
|
-
bookmark: string;
|
|
31
|
-
reaction: string;
|
|
32
|
-
};
|
|
33
|
-
en: {
|
|
34
|
-
tg: string;
|
|
35
|
-
fb: string;
|
|
36
|
-
tw: string;
|
|
37
|
-
pdf: string;
|
|
38
|
-
unblock: string;
|
|
39
|
-
bookmark: string;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
1
|
+
export declare const MediaQuerySizes: {
|
|
2
|
+
MOBILE: number;
|
|
3
|
+
PORTRAIT_TABLET: number;
|
|
4
|
+
LANDSCAPE_TABLET: number;
|
|
5
|
+
DESKTOP: number;
|
|
6
|
+
WIDE_DESKTOP: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const imageBreakpoints: {
|
|
9
|
+
325: string;
|
|
10
|
+
520: string;
|
|
11
|
+
600: string;
|
|
12
|
+
650: string;
|
|
13
|
+
980: string;
|
|
14
|
+
1335: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const imageConditionalKeys: {
|
|
17
|
+
xs: number[];
|
|
18
|
+
superFull: number[];
|
|
19
|
+
full: number[];
|
|
20
|
+
default: number[];
|
|
21
|
+
narrow: number[];
|
|
22
|
+
};
|
|
23
|
+
export declare const SocialLabels: {
|
|
24
|
+
ru: {
|
|
25
|
+
tg: string;
|
|
26
|
+
fb: string;
|
|
27
|
+
tw: string;
|
|
28
|
+
pdf: string;
|
|
29
|
+
unblock: string;
|
|
30
|
+
bookmark: string;
|
|
31
|
+
reaction: string;
|
|
32
|
+
};
|
|
33
|
+
en: {
|
|
34
|
+
tg: string;
|
|
35
|
+
fb: string;
|
|
36
|
+
tw: string;
|
|
37
|
+
pdf: string;
|
|
38
|
+
unblock: string;
|
|
39
|
+
bookmark: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
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';
|
|
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/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
'use strict'
|
|
3
3
|
|
|
4
4
|
if (process.env.NODE_ENV === 'production') {
|
|
5
|
-
module.exports = require('./
|
|
5
|
+
module.exports = require('./uikit.cjs.production.min.js')
|
|
6
6
|
} else {
|
|
7
|
-
module.exports = require('./
|
|
7
|
+
module.exports = require('./uikit.cjs.development.js')
|
|
8
8
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export interface OptimizedImageItem {
|
|
2
|
-
'1x': string;
|
|
3
|
-
'2x': string;
|
|
4
|
-
'1x_webp': string;
|
|
5
|
-
'2x_webp': string;
|
|
6
|
-
}
|
|
7
|
-
export
|
|
8
|
-
export
|
|
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
|
-
}
|
|
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
|
+
}
|