@pushwoosh/dumb-components 1.0.40 → 1.0.42

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.
@@ -4,15 +4,54 @@ export declare const TitleBox: import("styled-components").StyledComponent<"div"
4
4
  $alignContent?: "end" | "start" | "center" | "space-between" | "space-around" | "space-evenly" | "stretch" | undefined;
5
5
  $alignItems?: "end" | "start" | "center" | "stretch" | "baseline" | undefined;
6
6
  $bgColor?: string | undefined;
7
- $border?: string | undefined;
8
- $borderRadius?: string | number | undefined;
7
+ $border?: string | ({
8
+ top?: string | undefined;
9
+ right?: string | undefined;
10
+ bottom?: string | undefined;
11
+ left?: string | undefined;
12
+ } | {
13
+ horizontal: string;
14
+ top?: string | undefined;
15
+ bottom?: string | undefined;
16
+ } | {
17
+ vertical: string;
18
+ right?: string | undefined;
19
+ left?: string | undefined;
20
+ }) | undefined;
21
+ $borderRadius?: (string | number) | undefined;
9
22
  $boxShadow?: string | undefined;
10
- $gap?: string | number | undefined;
23
+ $gap?: (string | number) | undefined;
11
24
  $gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense" | undefined;
12
25
  $justifyContent?: "end" | "start" | "center" | "space-between" | "space-around" | "space-evenly" | "stretch" | undefined;
13
26
  $justifyItems?: "end" | "start" | "center" | "stretch" | "baseline" | undefined;
14
- $margin?: string | number | undefined;
15
- $padding?: string | number | undefined;
27
+ $margin?: (string | number) | ({
28
+ top?: (string | number) | undefined;
29
+ right?: (string | number) | undefined;
30
+ bottom?: (string | number) | undefined;
31
+ left?: (string | number) | undefined;
32
+ } | {
33
+ horizontal: string | number;
34
+ top?: (string | number) | undefined;
35
+ bottom?: (string | number) | undefined;
36
+ } | {
37
+ vertical: string | number;
38
+ right?: (string | number) | undefined;
39
+ left?: (string | number) | undefined;
40
+ }) | undefined;
41
+ $padding?: (string | number) | ({
42
+ top?: (string | number) | undefined;
43
+ right?: (string | number) | undefined;
44
+ bottom?: (string | number) | undefined;
45
+ left?: (string | number) | undefined;
46
+ } | {
47
+ horizontal: string | number;
48
+ top?: (string | number) | undefined;
49
+ bottom?: (string | number) | undefined;
50
+ } | {
51
+ vertical: string | number;
52
+ right?: (string | number) | undefined;
53
+ left?: (string | number) | undefined;
54
+ }) | undefined;
16
55
  $placeItems?: "end" | "start" | "center" | "stretch" | undefined;
17
56
  } & {
18
57
  $gridAutoFlow: string;
@@ -3,15 +3,54 @@ export declare const ModalBodyGroup: import("styled-components").StyledComponent
3
3
  $alignContent?: "end" | "start" | "center" | "space-between" | "space-around" | "space-evenly" | "stretch" | undefined;
4
4
  $alignItems?: "end" | "start" | "center" | "stretch" | "baseline" | undefined;
5
5
  $bgColor?: string | undefined;
6
- $border?: string | undefined;
7
- $borderRadius?: string | number | undefined;
6
+ $border?: string | ({
7
+ top?: string | undefined;
8
+ right?: string | undefined;
9
+ bottom?: string | undefined;
10
+ left?: string | undefined;
11
+ } | {
12
+ horizontal: string;
13
+ top?: string | undefined;
14
+ bottom?: string | undefined;
15
+ } | {
16
+ vertical: string;
17
+ right?: string | undefined;
18
+ left?: string | undefined;
19
+ }) | undefined;
20
+ $borderRadius?: (string | number) | undefined;
8
21
  $boxShadow?: string | undefined;
9
- $gap?: string | number | undefined;
22
+ $gap?: (string | number) | undefined;
10
23
  $gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense" | undefined;
11
24
  $justifyContent?: "end" | "start" | "center" | "space-between" | "space-around" | "space-evenly" | "stretch" | undefined;
12
25
  $justifyItems?: "end" | "start" | "center" | "stretch" | "baseline" | undefined;
13
- $margin?: string | number | undefined;
14
- $padding?: string | number | undefined;
26
+ $margin?: (string | number) | ({
27
+ top?: (string | number) | undefined;
28
+ right?: (string | number) | undefined;
29
+ bottom?: (string | number) | undefined;
30
+ left?: (string | number) | undefined;
31
+ } | {
32
+ horizontal: string | number;
33
+ top?: (string | number) | undefined;
34
+ bottom?: (string | number) | undefined;
35
+ } | {
36
+ vertical: string | number;
37
+ right?: (string | number) | undefined;
38
+ left?: (string | number) | undefined;
39
+ }) | undefined;
40
+ $padding?: (string | number) | ({
41
+ top?: (string | number) | undefined;
42
+ right?: (string | number) | undefined;
43
+ bottom?: (string | number) | undefined;
44
+ left?: (string | number) | undefined;
45
+ } | {
46
+ horizontal: string | number;
47
+ top?: (string | number) | undefined;
48
+ bottom?: (string | number) | undefined;
49
+ } | {
50
+ vertical: string | number;
51
+ right?: (string | number) | undefined;
52
+ left?: (string | number) | undefined;
53
+ }) | undefined;
15
54
  $placeItems?: "end" | "start" | "center" | "stretch" | undefined;
16
55
  } & {
17
56
  $gridAutoFlow: string;
@@ -1,34 +1,47 @@
1
1
  import React from 'react';
2
- import { Columns } from '@pushwoosh/kit-helpers';
3
- import { Spinner } from '../Spinner';
2
+ import { Vertical } from '@pushwoosh/kit-helpers';
3
+ import { NoPushPreview } from './components/NoPushPreview';
4
+ import { SilentPushPreview } from './components/SilentPushPreview';
4
5
  import { PREVIEW_ICON_URL } from './constants';
5
6
  import { getLocalizedContent } from './helpers';
6
- import { LoadingBox, PushBox, AppIcon, PushContent, PushTitleBox, PushTitleText, PushDate, PushDescription } from './styles';
7
+ import { PushBox, PushIcon, PushTitle, PushDescription } from './styles';
7
8
  export function PushPreview(props) {
8
9
  const {
9
10
  pushPreset,
10
11
  language,
11
- isLoading,
12
- appTitle,
13
- appIcon,
12
+ view = 'compact',
13
+ appTitle = '',
14
+ appIcon = PREVIEW_ICON_URL,
15
+ isLoading = false,
14
16
  width
15
17
  } = props;
16
18
  const title = getLocalizedContent(pushPreset === null || pushPreset === void 0 ? void 0 : pushPreset.title, language) || appTitle;
17
- const subTitle = getLocalizedContent(pushPreset === null || pushPreset === void 0 ? void 0 : pushPreset.subTitle, language);
18
19
  const content = getLocalizedContent(pushPreset === null || pushPreset === void 0 ? void 0 : pushPreset.content, language);
19
- const renderIcon = content ? (pushPreset === null || pushPreset === void 0 ? void 0 : pushPreset.icon) || appIcon || PREVIEW_ICON_URL : PREVIEW_ICON_URL;
20
+ const icon = content ? (pushPreset === null || pushPreset === void 0 ? void 0 : pushPreset.icon) || appIcon : PREVIEW_ICON_URL;
21
+ const isLocked = !pushPreset || !content || view === 'silent';
22
+ if (isLoading) {
23
+ return React.createElement(PushBox, {
24
+ view: view,
25
+ "$loading": true
26
+ });
27
+ }
28
+ if (view === 'silent') {
29
+ return React.createElement(SilentPushPreview, null);
30
+ }
31
+ if (!pushPreset && !isLoading) {
32
+ return React.createElement(NoPushPreview, null);
33
+ }
20
34
  return React.createElement(PushBox, {
21
- "$width": width
22
- }, isLoading && React.createElement(LoadingBox, null, React.createElement(Spinner, {
23
- size: "medium"
24
- })), !isLoading && React.createElement(Columns, {
25
- "$sizes": "30px 1fr",
26
- "$alignItems": "center",
27
- "$gap": 10
28
- }, React.createElement(AppIcon, {
29
- alt: appTitle,
30
- src: renderIcon
31
- }), React.createElement(PushContent, null, React.createElement(PushTitleBox, null, React.createElement(PushTitleText, null, title), React.createElement(PushDate, null, "5m\u00A0ago")), subTitle && React.createElement(PushTitleText, null, subTitle), React.createElement(PushDescription, {
32
- "$isLocked": !content
33
- }, content || 'Please, create or select push content'))));
35
+ view: view,
36
+ "$width": width,
37
+ "$loading": isLoading
38
+ }, React.createElement(PushIcon, {
39
+ alt: title,
40
+ src: icon
41
+ }), React.createElement(Vertical, null, React.createElement(PushTitle, {
42
+ locked: isLocked
43
+ }, title), React.createElement(PushDescription, {
44
+ view: view,
45
+ locked: !content
46
+ }, !content ? 'Message is empty…' : content)));
34
47
  }
@@ -1,14 +1,13 @@
1
1
  import React from 'react';
2
+ import { Color } from '@pushwoosh/kit-constants';
2
3
  import { Vertical } from '@pushwoosh/kit-helpers';
3
- import { Container, IconMock } from './styles';
4
- import { LockedText, LockedTitle } from '../../../common';
4
+ import { CloseIcon } from '@pushwoosh/kit-icons';
5
+ import { PushBox, IconContainer, PushTitle, PushDescription } from '../../styles';
5
6
  export function NoPushPreview() {
6
- return React.createElement(Container, {
7
- "$gap": "10px",
8
- "$padding": "10px",
9
- "$alignItems": "center",
10
- "$justifyContent": "start"
11
- }, React.createElement(IconMock, null), React.createElement(Vertical, null, React.createElement(LockedTitle, null, "Content missed..."), React.createElement(LockedText, {
12
- "$small": true
13
- }, "Might be old data or deleted presets")));
7
+ return React.createElement(PushBox, {
8
+ view: "compact"
9
+ }, React.createElement(IconContainer, null, React.createElement(CloseIcon, {
10
+ size: "small",
11
+ color: Color.CLEAR
12
+ })), React.createElement(Vertical, null, React.createElement(PushTitle, null, "Content missed"), React.createElement(PushDescription, null, "Might be old data or deleted presets")));
14
13
  }
@@ -1,20 +1,19 @@
1
1
  import React from 'react';
2
+ import { Color } from '@pushwoosh/kit-constants';
2
3
  import { Vertical } from '@pushwoosh/kit-helpers';
3
4
  import { NotificationIcon } from '@pushwoosh/kit-icons';
4
- import { Container, IconContainer } from './styles';
5
- import { LockedText, LockedTitle } from '../../../common';
5
+ import { PushBox, IconContainer, PushTitle, PushDescription } from '../../styles';
6
6
  export function SilentPushPreview() {
7
- return React.createElement(Container, {
8
- "$gap": "10px",
9
- "$padding": "10px",
10
- "$alignItems": "center",
11
- "$justifyContent": "start"
7
+ return React.createElement(PushBox, {
8
+ view: "silent"
12
9
  }, React.createElement(IconContainer, null, React.createElement(NotificationIcon, {
13
- size: "medium",
14
- type: "disabled",
10
+ size: "small",
15
11
  view: "lined",
16
- color: "#FFD600"
17
- })), React.createElement(Vertical, null, React.createElement(LockedTitle, null, "Silent push"), React.createElement(LockedText, {
18
- "$small": true
12
+ type: "disabled",
13
+ color: Color.CLEAR
14
+ })), React.createElement(Vertical, null, React.createElement(PushTitle, {
15
+ locked: true
16
+ }, "Silent push notification"), React.createElement(PushDescription, {
17
+ locked: true
19
18
  }, "There is no content to preview")));
20
19
  }
@@ -1 +1 @@
1
- export declare const PREVIEW_ICON_URL = "/img/tmp.icon.png";
1
+ export declare const PREVIEW_ICON_URL = "https://app.pushwoosh.com/img/tmp.icon.png";
@@ -1 +1 @@
1
- export const PREVIEW_ICON_URL = '/img/tmp.icon.png';
1
+ export const PREVIEW_ICON_URL = 'https://app.pushwoosh.com/img/tmp.icon.png';
@@ -1,3 +1 @@
1
1
  export { PushPreview } from './PushPreview';
2
- export { NoPushPreview } from './components/NoPushPreview';
3
- export { SilentPushPreview } from './components/SilentPushPreview';
@@ -1,3 +1 @@
1
- export { PushPreview } from './PushPreview';
2
- export { NoPushPreview } from './components/NoPushPreview';
3
- export { SilentPushPreview } from './components/SilentPushPreview';
1
+ export { PushPreview } from './PushPreview';
@@ -1,28 +1,75 @@
1
+ import type { PushPreviewView } from './types';
1
2
  export declare const PushBox: import("styled-components").StyledComponent<"div", any, {
2
- $width?: string;
3
- }, never>;
4
- export declare const AppIcon: import("styled-components").StyledComponent<"img", any, {}, never>;
5
- export declare const PushContent: import("styled-components").StyledComponent<"div", any, {
6
3
  $alignContent?: "end" | "start" | "center" | "space-between" | "space-around" | "space-evenly" | "stretch" | undefined;
7
4
  $alignItems?: "end" | "start" | "center" | "stretch" | "baseline" | undefined;
8
5
  $bgColor?: string | undefined;
9
- $border?: string | undefined;
10
- $borderRadius?: string | number | undefined;
6
+ $border?: string | ({
7
+ top?: string | undefined;
8
+ right?: string | undefined;
9
+ bottom?: string | undefined;
10
+ left?: string | undefined;
11
+ } | {
12
+ horizontal: string;
13
+ top?: string | undefined;
14
+ bottom?: string | undefined;
15
+ } | {
16
+ vertical: string;
17
+ right?: string | undefined;
18
+ left?: string | undefined;
19
+ }) | undefined;
20
+ $borderRadius?: (string | number) | undefined;
11
21
  $boxShadow?: string | undefined;
12
- $gap?: string | number | undefined;
22
+ $gap?: (string | number) | undefined;
13
23
  $gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense" | undefined;
14
24
  $justifyContent?: "end" | "start" | "center" | "space-between" | "space-around" | "space-evenly" | "stretch" | undefined;
15
25
  $justifyItems?: "end" | "start" | "center" | "stretch" | "baseline" | undefined;
16
- $margin?: string | number | undefined;
17
- $padding?: string | number | undefined;
26
+ $margin?: (string | number) | ({
27
+ top?: (string | number) | undefined;
28
+ right?: (string | number) | undefined;
29
+ bottom?: (string | number) | undefined;
30
+ left?: (string | number) | undefined;
31
+ } | {
32
+ horizontal: string | number;
33
+ top?: (string | number) | undefined;
34
+ bottom?: (string | number) | undefined;
35
+ } | {
36
+ vertical: string | number;
37
+ right?: (string | number) | undefined;
38
+ left?: (string | number) | undefined;
39
+ }) | undefined;
40
+ $padding?: (string | number) | ({
41
+ top?: (string | number) | undefined;
42
+ right?: (string | number) | undefined;
43
+ bottom?: (string | number) | undefined;
44
+ left?: (string | number) | undefined;
45
+ } | {
46
+ horizontal: string | number;
47
+ top?: (string | number) | undefined;
48
+ bottom?: (string | number) | undefined;
49
+ } | {
50
+ vertical: string | number;
51
+ right?: (string | number) | undefined;
52
+ left?: (string | number) | undefined;
53
+ }) | undefined;
18
54
  $placeItems?: "end" | "start" | "center" | "stretch" | undefined;
19
55
  } & {
20
56
  $gridAutoFlow: string;
21
- }, "$gridAutoFlow">;
22
- export declare const PushTitleBox: import("styled-components").StyledComponent<"span", any, {}, never>;
23
- export declare const PushTitleText: import("styled-components").StyledComponent<"span", any, {}, never>;
24
- export declare const PushDate: import("styled-components").StyledComponent<"span", any, {}, never>;
57
+ } & {
58
+ $alignItems: string;
59
+ $justifyContent: string;
60
+ $padding: number;
61
+ $gap: number;
62
+ } & {
63
+ view: PushPreviewView;
64
+ $width?: string | number;
65
+ $loading?: boolean;
66
+ }, "$gridAutoFlow" | "$alignItems" | "$gap" | "$justifyContent" | "$padding">;
67
+ export declare const IconContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
68
+ export declare const PushIcon: import("styled-components").StyledComponent<"img", any, {}, never>;
69
+ export declare const PushTitle: import("styled-components").StyledComponent<"div", any, {
70
+ locked?: boolean;
71
+ }, never>;
25
72
  export declare const PushDescription: import("styled-components").StyledComponent<"div", any, {
26
- $isLocked: boolean;
73
+ view?: PushPreviewView;
74
+ locked?: boolean;
27
75
  }, never>;
28
- export declare const LoadingBox: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,39 +1,42 @@
1
1
  import styled from 'styled-components';
2
- import { Color, FontWeight, FontSize, Shadow, ShapeRadius, Spacing } from '@pushwoosh/kit-constants';
3
- import { Vertical } from '@pushwoosh/kit-helpers';
4
- export const PushBox = styled.div.withConfig({
2
+ import { Color, FontSize, FontWeight, LineHeight, Shadow, ShapeRadius } from '@pushwoosh/kit-constants';
3
+ import { Horizontal, toCssValue } from '@pushwoosh/kit-helpers';
4
+ export const PushBox = styled(Horizontal).attrs({
5
+ $alignItems: 'center',
6
+ $justifyContent: 'start',
7
+ $padding: 12,
8
+ $gap: 12
9
+ }).withConfig({
5
10
  displayName: "PushBox",
6
11
  componentId: "sc-185rvhg-0"
7
- })(["display:grid;width:", ";min-height:50px;padding:10px;background:", ";box-shadow:", ";border-radius:10px;"], ({
12
+ })(["display:grid;width:", ";min-width:240px;max-width:350px;min-height:50px;padding:12px;border-radius:", ";border:", ";box-shadow:", ";background:", ";"], ({
8
13
  $width
9
- }) => $width || '100%', Color.CLEAR, Shadow.LARGE);
10
- export const AppIcon = styled.img.withConfig({
11
- displayName: "AppIcon",
14
+ }) => $width ? toCssValue($width) : '100%', ShapeRadius.SECTION, ({
15
+ $loading
16
+ }) => $loading ? 'none' : `1px solid ${Color.DIVIDER}`, ({
17
+ view
18
+ }) => view === 'extended' ? Shadow.LARGE : 'none', ({
19
+ $loading
20
+ }) => $loading ? Color.SOFT_LIGHT : Color.CLEAR);
21
+ export const IconContainer = styled.div.withConfig({
22
+ displayName: "IconContainer",
12
23
  componentId: "sc-185rvhg-1"
13
- })(["width:30px;height:30px;border-radius:", ";"], ShapeRadius.CONTROL);
14
- export const PushContent = styled(Vertical).withConfig({
15
- displayName: "PushContent",
24
+ })(["display:flex;align-items:center;justify-content:center;width:24px;height:24px;background:", ";border-radius:", ";"], Color.PHANTOM, ShapeRadius.CONTROL);
25
+ export const PushIcon = styled.img.withConfig({
26
+ displayName: "PushIcon",
16
27
  componentId: "sc-185rvhg-2"
17
- })(["max-width:240px;"]);
18
- export const PushTitleBox = styled.span.withConfig({
19
- displayName: "PushTitleBox",
28
+ })(["width:24px;height:24px;background:", ";border-radius:", ";"], Color.PHANTOM, ShapeRadius.CONTROL);
29
+ export const PushTitle = styled.div.withConfig({
30
+ displayName: "PushTitle",
20
31
  componentId: "sc-185rvhg-3"
21
- })(["display:grid;grid-template-columns:1fr min-content;grid-gap:", ";"], Spacing.S3);
22
- export const PushTitleText = styled.span.withConfig({
23
- displayName: "PushTitleText",
24
- componentId: "sc-185rvhg-4"
25
- })(["font-weight:", ";font-size:13px;line-height:140%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;"], FontWeight.MEDIUM);
26
- export const PushDate = styled.span.withConfig({
27
- displayName: "PushDate",
28
- componentId: "sc-185rvhg-5"
29
- })(["color:#555;font-weight:", ";font-size:", ";letter-spacing:0;"], FontWeight.REGULAR, FontSize.SMALL);
32
+ })(["color:", ";font-size:", ";font-weight:", ";line-height:", ";white-space:nowrap;text-overflow:ellipsis;overflow:hidden;"], ({
33
+ locked
34
+ }) => locked ? Color.LOCKED : Color.MAIN, FontSize.SMALL, FontWeight.MEDIUM, LineHeight.SMALL);
30
35
  export const PushDescription = styled.div.withConfig({
31
36
  displayName: "PushDescription",
32
- componentId: "sc-185rvhg-6"
33
- })(["color:", ";font-weight:", ";font-size:13px;line-height:140%;"], ({
34
- $isLocked
35
- }) => $isLocked ? Color.LOCKED : Color.MAIN, FontWeight.REGULAR);
36
- export const LoadingBox = styled.div.withConfig({
37
- displayName: "LoadingBox",
38
- componentId: "sc-185rvhg-7"
39
- })(["display:flex;align-items:center;justify-content:center;flex:1;"]);
37
+ componentId: "sc-185rvhg-4"
38
+ })(["color:", ";font-size:", ";font-weight:", ";line-height:", ";white-space:", ";text-overflow:ellipsis;overflow:hidden;"], ({
39
+ locked
40
+ }) => locked ? Color.LOCKED : Color.MAIN, FontSize.SMALL, FontWeight.REGULAR, LineHeight.SMALL, ({
41
+ view
42
+ }) => view === 'extended' ? 'normal' : 'nowrap');
@@ -1,3 +1,4 @@
1
+ export type PushPreviewView = 'compact' | 'extended' | 'silent';
1
2
  export interface PushBasicData {
2
3
  title?: Record<string, string>;
3
4
  subTitle?: Record<string, string>;
@@ -5,10 +6,11 @@ export interface PushBasicData {
5
6
  icon?: string;
6
7
  }
7
8
  export interface PushPreviewProps<T> {
9
+ view?: PushPreviewView;
8
10
  pushPreset?: T | null;
9
11
  language?: string;
10
- isLoading: boolean;
11
- appTitle: string;
12
+ isLoading?: boolean;
13
+ appTitle?: string;
12
14
  appIcon?: string;
13
- width?: string;
15
+ width?: string | number;
14
16
  }
@@ -1,9 +1,9 @@
1
1
  import React, { useMemo } from 'react';
2
- import { Horizontal } from '@pushwoosh/kit-helpers';
2
+ import { Color } from '@pushwoosh/kit-constants';
3
+ import { formatNumber, Horizontal } from '@pushwoosh/kit-helpers';
4
+ import { Text } from '@pushwoosh/kit-typography';
3
5
  import { Spinner } from '../Spinner';
4
6
  import { Container, RightSlotContainer, StatValue, Title } from './styles';
5
- import { LockedText } from '../common';
6
- import { formatNumberWithSpaces } from './helpers';
7
7
  export function StatisticCard(props) {
8
8
  const {
9
9
  title,
@@ -28,11 +28,12 @@ export function StatisticCard(props) {
28
28
  return React.createElement(Horizontal, {
29
29
  "$alignItems": "end",
30
30
  "$gap": 8
31
- }, React.createElement(StatValue, null, formatNumberWithSpaces(value)), React.createElement(LockedText, {
32
- "$small": true
31
+ }, React.createElement(StatValue, null, formatNumber(value, 'spaced')), React.createElement(Text, {
32
+ "$variant": "footnote",
33
+ "$color": Color.LOCKED
33
34
  }, valueSubtext));
34
35
  }
35
- return React.createElement(StatValue, null, formatNumberWithSpaces(value));
36
+ return React.createElement(StatValue, null, formatNumber(value, 'spaced'));
36
37
  }, [isLoading, value, valueSubtext]);
37
38
  return React.createElement(Container, {
38
39
  "$active": active,
@@ -42,7 +43,8 @@ export function StatisticCard(props) {
42
43
  ...rest
43
44
  }, React.createElement(Title, null, title), rightSlot && React.createElement(RightSlotContainer, {
44
45
  onClick: e => e.stopPropagation()
45
- }, rightSlot), statisticValue, footer && React.createElement(LockedText, {
46
- "$small": true
46
+ }, rightSlot), statisticValue, footer && React.createElement(Text, {
47
+ "$variant": "footnote",
48
+ "$color": Color.LOCKED
47
49
  }, footer));
48
50
  }