@pushwoosh/dumb-components 1.0.41 → 1.0.43
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/EmailTemplatePreview/components/NoEmailTemplatePreview/NoEmailTemplatePreview.js +10 -6
- package/FieldBox/FieldBox.js +5 -5
- package/PushPreview/PushPreview.js +36 -23
- package/PushPreview/components/NoPushPreview/NoPushPreview.js +9 -10
- package/PushPreview/components/SilentPushPreview/SilentPushPreview.js +11 -12
- package/PushPreview/constants.d.ts +1 -1
- package/PushPreview/constants.js +1 -1
- package/PushPreview/index.d.ts +0 -2
- package/PushPreview/index.js +1 -3
- package/PushPreview/styles.d.ts +18 -10
- package/PushPreview/styles.js +33 -30
- package/PushPreview/types.d.ts +7 -4
- package/StatisticCard/StatisticCard.js +8 -5
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/PushPreview/components/NoPushPreview/styles.d.ts +0 -57
- package/PushPreview/components/NoPushPreview/styles.js +0 -11
- package/PushPreview/components/SilentPushPreview/styles.d.ts +0 -57
- package/PushPreview/components/SilentPushPreview/styles.js +0 -11
- package/common.d.ts +0 -8
- package/common.js +0 -17
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Color } from '@pushwoosh/kit-constants';
|
|
3
3
|
import { Vertical } from '@pushwoosh/kit-helpers';
|
|
4
|
+
import { Text } from '@pushwoosh/kit-typography';
|
|
4
5
|
import Email from './assets/email.svg?url';
|
|
5
6
|
import { Container, PreviewMock } from './styles';
|
|
6
|
-
import { LockedText, LockedTitle } from '../../../common';
|
|
7
7
|
export function NoEmailTemplatePreview() {
|
|
8
8
|
return React.createElement(Container, {
|
|
9
|
-
"$
|
|
10
|
-
"$
|
|
9
|
+
"$padding": "12px 12px 24px",
|
|
10
|
+
"$gap": 12
|
|
11
11
|
}, React.createElement(PreviewMock, {
|
|
12
12
|
"$alignItems": "center",
|
|
13
13
|
"$justifyContent": "center"
|
|
14
14
|
}, React.createElement("img", {
|
|
15
15
|
src: Email,
|
|
16
16
|
alt: "Email envelop icon"
|
|
17
|
-
})), React.createElement(Vertical, null, React.createElement(
|
|
18
|
-
"$
|
|
17
|
+
})), React.createElement(Vertical, null, React.createElement(Text, {
|
|
18
|
+
"$variant": "footnote",
|
|
19
|
+
"$color": Color.LOCKED
|
|
20
|
+
}, "Content missed..."), React.createElement(Text, {
|
|
21
|
+
"$variant": "footnote",
|
|
22
|
+
"$color": Color.LOCKED
|
|
19
23
|
}, "Might be old data or deleted presets")));
|
|
20
24
|
}
|
package/FieldBox/FieldBox.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Color,
|
|
2
|
+
import { Color, Tag } from '@pushwoosh/kit-constants';
|
|
3
3
|
import { Horizontal, Vertical } from '@pushwoosh/kit-helpers';
|
|
4
4
|
import { OpenIcon, InfoRoundIcon } from '@pushwoosh/kit-icons';
|
|
5
5
|
import { Text } from '@pushwoosh/kit-typography';
|
|
@@ -19,8 +19,8 @@ export function FieldBox(props) {
|
|
|
19
19
|
children
|
|
20
20
|
} = props;
|
|
21
21
|
return React.createElement(Vertical, {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
ref: boxRef,
|
|
23
|
+
"$gap": 4
|
|
24
24
|
}, title && React.createElement(Horizontal, {
|
|
25
25
|
"$alignItems": "center",
|
|
26
26
|
"$justifyContent": "space-between"
|
|
@@ -45,9 +45,9 @@ export function FieldBox(props) {
|
|
|
45
45
|
size: "small",
|
|
46
46
|
view: "lined"
|
|
47
47
|
}))), actions && React.createElement(Horizontal, {
|
|
48
|
+
ref: actionsRef,
|
|
48
49
|
"$alignItems": "center",
|
|
49
|
-
"$gap":
|
|
50
|
-
ref: actionsRef
|
|
50
|
+
"$gap": 4
|
|
51
51
|
}, actions)), children, description && !error && React.createElement(Text, {
|
|
52
52
|
"$variant": "footnote",
|
|
53
53
|
"$color": Color.LOCKED
|
|
@@ -1,34 +1,47 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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 {
|
|
7
|
+
import { PushBox, PushIcon, PushTitle, PushDescription } from './styles';
|
|
7
8
|
export function PushPreview(props) {
|
|
8
9
|
const {
|
|
9
10
|
pushPreset,
|
|
10
11
|
language,
|
|
11
|
-
|
|
12
|
-
appTitle,
|
|
13
|
-
appIcon,
|
|
12
|
+
view = 'compact',
|
|
13
|
+
appTitle = '',
|
|
14
|
+
appIcon = PREVIEW_ICON_URL,
|
|
15
|
+
isLoading = false,
|
|
14
16
|
width
|
|
15
17
|
} = props;
|
|
16
|
-
const title = getLocalizedContent(pushPreset === null || pushPreset === void 0 ? void 0 : pushPreset.title, language) || appTitle;
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
18
|
+
const title = getLocalizedContent((pushPreset === null || pushPreset === void 0 ? void 0 : pushPreset.title) || (pushPreset === null || pushPreset === void 0 ? void 0 : pushPreset.localizedTitle), language) || appTitle;
|
|
19
|
+
const content = getLocalizedContent((pushPreset === null || pushPreset === void 0 ? void 0 : pushPreset.content) || (pushPreset === null || pushPreset === void 0 ? void 0 : pushPreset.localizedContent), language);
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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 {
|
|
4
|
-
import {
|
|
4
|
+
import { CloseIcon } from '@pushwoosh/kit-icons';
|
|
5
|
+
import { PushBox, IconContainer, PushTitle, PushDescription } from '../../styles';
|
|
5
6
|
export function NoPushPreview() {
|
|
6
|
-
return React.createElement(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
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 {
|
|
5
|
-
import { LockedText, LockedTitle } from '../../../common';
|
|
5
|
+
import { PushBox, IconContainer, PushTitle, PushDescription } from '../../styles';
|
|
6
6
|
export function SilentPushPreview() {
|
|
7
|
-
return React.createElement(
|
|
8
|
-
|
|
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: "
|
|
14
|
-
type: "disabled",
|
|
10
|
+
size: "small",
|
|
15
11
|
view: "lined",
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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";
|
package/PushPreview/constants.js
CHANGED
|
@@ -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';
|
package/PushPreview/index.d.ts
CHANGED
package/PushPreview/index.js
CHANGED
package/PushPreview/styles.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
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;
|
|
@@ -57,11 +54,22 @@ export declare const PushContent: import("styled-components").StyledComponent<"d
|
|
|
57
54
|
$placeItems?: "end" | "start" | "center" | "stretch" | undefined;
|
|
58
55
|
} & {
|
|
59
56
|
$gridAutoFlow: string;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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>;
|
|
64
72
|
export declare const PushDescription: import("styled-components").StyledComponent<"div", any, {
|
|
65
|
-
|
|
73
|
+
view?: PushPreviewView;
|
|
74
|
+
locked?: boolean;
|
|
66
75
|
}, never>;
|
|
67
|
-
export declare const LoadingBox: import("styled-components").StyledComponent<"div", any, {}, never>;
|
package/PushPreview/styles.js
CHANGED
|
@@ -1,39 +1,42 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { Color, FontWeight,
|
|
3
|
-
import {
|
|
4
|
-
export const PushBox = styled.
|
|
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:
|
|
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
|
|
10
|
-
|
|
11
|
-
|
|
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:
|
|
14
|
-
export const
|
|
15
|
-
displayName: "
|
|
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
|
-
})(["
|
|
18
|
-
export const
|
|
19
|
-
displayName: "
|
|
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
|
-
})(["
|
|
22
|
-
|
|
23
|
-
|
|
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-
|
|
33
|
-
})(["color:", ";font-
|
|
34
|
-
|
|
35
|
-
}) =>
|
|
36
|
-
|
|
37
|
-
|
|
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');
|
package/PushPreview/types.d.ts
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
export type PushPreviewView = 'compact' | 'extended' | 'silent';
|
|
1
2
|
export interface PushBasicData {
|
|
2
3
|
title?: Record<string, string>;
|
|
3
|
-
subTitle?: Record<string, string>;
|
|
4
4
|
content?: Record<string, string>;
|
|
5
|
+
localizedTitle?: Record<string, string>;
|
|
6
|
+
localizedContent?: Record<string, string>;
|
|
5
7
|
icon?: string;
|
|
6
8
|
}
|
|
7
9
|
export interface PushPreviewProps<T> {
|
|
10
|
+
view?: PushPreviewView;
|
|
8
11
|
pushPreset?: T | null;
|
|
9
12
|
language?: string;
|
|
10
|
-
isLoading
|
|
11
|
-
appTitle
|
|
13
|
+
isLoading?: boolean;
|
|
14
|
+
appTitle?: string;
|
|
12
15
|
appIcon?: string;
|
|
13
|
-
width?: string;
|
|
16
|
+
width?: string | number;
|
|
14
17
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
|
+
import { Color } from '@pushwoosh/kit-constants';
|
|
2
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
7
|
export function StatisticCard(props) {
|
|
7
8
|
const {
|
|
8
9
|
title,
|
|
@@ -27,8 +28,9 @@ export function StatisticCard(props) {
|
|
|
27
28
|
return React.createElement(Horizontal, {
|
|
28
29
|
"$alignItems": "end",
|
|
29
30
|
"$gap": 8
|
|
30
|
-
}, React.createElement(StatValue, null, formatNumber(value, 'spaced')), React.createElement(
|
|
31
|
-
"$
|
|
31
|
+
}, React.createElement(StatValue, null, formatNumber(value, 'spaced')), React.createElement(Text, {
|
|
32
|
+
"$variant": "footnote",
|
|
33
|
+
"$color": Color.LOCKED
|
|
32
34
|
}, valueSubtext));
|
|
33
35
|
}
|
|
34
36
|
return React.createElement(StatValue, null, formatNumber(value, 'spaced'));
|
|
@@ -41,7 +43,8 @@ export function StatisticCard(props) {
|
|
|
41
43
|
...rest
|
|
42
44
|
}, React.createElement(Title, null, title), rightSlot && React.createElement(RightSlotContainer, {
|
|
43
45
|
onClick: e => e.stopPropagation()
|
|
44
|
-
}, rightSlot), statisticValue, footer && React.createElement(
|
|
45
|
-
"$
|
|
46
|
+
}, rightSlot), statisticValue, footer && React.createElement(Text, {
|
|
47
|
+
"$variant": "footnote",
|
|
48
|
+
"$color": Color.LOCKED
|
|
46
49
|
}, footer));
|
|
47
50
|
}
|
package/index.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export { Tab, TabBar, TabPanel, Tabs, type TabCode } from './Tabs';
|
|
|
24
24
|
export { Link } from './Link';
|
|
25
25
|
export { StatisticCard } from './StatisticCard';
|
|
26
26
|
export { EmailTemplatePreview, NoEmailTemplatePreview } from './EmailTemplatePreview';
|
|
27
|
-
export { PushPreview
|
|
27
|
+
export { PushPreview } from './PushPreview';
|
|
28
28
|
export { Toast, ToastProvider, useToast } from './Toast';
|
|
29
29
|
export { DataTable, DataTableList, DataTableGetContext, DataTablePagination, DataTableSearchInput, DataTableSortableCell, Loading, TableList, TablePagination, useDataTableContext, useDataTableGetParams, Table, Td, Tr, Th, ElementHover, ItemDetailLink, ItemName, LockedText, Description, type DataTableParams, type DataTableData, type DataTableContextType, } from './Table';
|
|
30
30
|
export { AutosizeInput, PageHeader, PageHeaderEditable } from './PageHeader';
|
package/index.js
CHANGED
|
@@ -24,7 +24,7 @@ export { Tab, TabBar, TabPanel, Tabs } from './Tabs';
|
|
|
24
24
|
export { Link } from './Link';
|
|
25
25
|
export { StatisticCard } from './StatisticCard';
|
|
26
26
|
export { EmailTemplatePreview, NoEmailTemplatePreview } from './EmailTemplatePreview';
|
|
27
|
-
export { PushPreview
|
|
27
|
+
export { PushPreview } from './PushPreview';
|
|
28
28
|
export { Toast, ToastProvider, useToast } from './Toast';
|
|
29
29
|
export { DataTable, DataTableList, DataTableGetContext, DataTablePagination, DataTableSearchInput, DataTableSortableCell, Loading, TableList, TablePagination, useDataTableContext, useDataTableGetParams, Table, Td, Tr, Th, ElementHover, ItemDetailLink, ItemName, LockedText, Description } from './Table';
|
|
30
30
|
export { AutosizeInput, PageHeader, PageHeaderEditable } from './PageHeader';
|
package/package.json
CHANGED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
export declare const IconMock: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
-
export declare const Container: import("styled-components").StyledComponent<"div", any, {
|
|
3
|
-
$alignContent?: "end" | "start" | "center" | "space-between" | "space-around" | "space-evenly" | "stretch" | undefined;
|
|
4
|
-
$alignItems?: "end" | "start" | "center" | "stretch" | "baseline" | undefined;
|
|
5
|
-
$bgColor?: string | 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;
|
|
21
|
-
$boxShadow?: string | undefined;
|
|
22
|
-
$gap?: (string | number) | undefined;
|
|
23
|
-
$gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense" | undefined;
|
|
24
|
-
$justifyContent?: "end" | "start" | "center" | "space-between" | "space-around" | "space-evenly" | "stretch" | undefined;
|
|
25
|
-
$justifyItems?: "end" | "start" | "center" | "stretch" | "baseline" | 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;
|
|
54
|
-
$placeItems?: "end" | "start" | "center" | "stretch" | undefined;
|
|
55
|
-
} & {
|
|
56
|
-
$gridAutoFlow: string;
|
|
57
|
-
}, "$gridAutoFlow">;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import { Color, ShapeRadius } from '@pushwoosh/kit-constants';
|
|
3
|
-
import { Horizontal } from '@pushwoosh/kit-helpers';
|
|
4
|
-
export const IconMock = styled.div.withConfig({
|
|
5
|
-
displayName: "IconMock",
|
|
6
|
-
componentId: "sc-mvf0fq-0"
|
|
7
|
-
})(["width:36px;height:36px;border-radius:", ";border:1px dashed ", ";background:", ";"], ShapeRadius.CONTROL, Color.SOFT_LIGHT_HOVER, Color.BRIGHT_LIGHT);
|
|
8
|
-
export const Container = styled(Horizontal).withConfig({
|
|
9
|
-
displayName: "Container",
|
|
10
|
-
componentId: "sc-mvf0fq-1"
|
|
11
|
-
})(["background:", ";border-radius:", ";border:1px dashed ", ";max-width:350px;"], Color.CLEAR, ShapeRadius.SECTION, Color.SOFT_LIGHT_HOVER);
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
export declare const IconContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
-
export declare const Container: import("styled-components").StyledComponent<"div", any, {
|
|
3
|
-
$alignContent?: "end" | "start" | "center" | "space-between" | "space-around" | "space-evenly" | "stretch" | undefined;
|
|
4
|
-
$alignItems?: "end" | "start" | "center" | "stretch" | "baseline" | undefined;
|
|
5
|
-
$bgColor?: string | 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;
|
|
21
|
-
$boxShadow?: string | undefined;
|
|
22
|
-
$gap?: (string | number) | undefined;
|
|
23
|
-
$gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense" | undefined;
|
|
24
|
-
$justifyContent?: "end" | "start" | "center" | "space-between" | "space-around" | "space-evenly" | "stretch" | undefined;
|
|
25
|
-
$justifyItems?: "end" | "start" | "center" | "stretch" | "baseline" | 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;
|
|
54
|
-
$placeItems?: "end" | "start" | "center" | "stretch" | undefined;
|
|
55
|
-
} & {
|
|
56
|
-
$gridAutoFlow: string;
|
|
57
|
-
}, "$gridAutoFlow">;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import { Color, ShapeRadius } from '@pushwoosh/kit-constants';
|
|
3
|
-
import { Horizontal } from '@pushwoosh/kit-helpers';
|
|
4
|
-
export const IconContainer = styled.div.withConfig({
|
|
5
|
-
displayName: "IconContainer",
|
|
6
|
-
componentId: "sc-fgx4rs-0"
|
|
7
|
-
})(["width:36px;height:36px;padding:6px;border-radius:", ";opacity:0.5;background:", ";"], ShapeRadius.CONTROL, Color.MAIN);
|
|
8
|
-
export const Container = styled(Horizontal).withConfig({
|
|
9
|
-
displayName: "Container",
|
|
10
|
-
componentId: "sc-fgx4rs-1"
|
|
11
|
-
})(["background:", ";border-radius:", ";border:1px dashed ", ";max-width:350px;"], Color.CLEAR, ShapeRadius.SECTION, Color.SOFT_LIGHT_HOVER);
|
package/common.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { H5 } from '@pushwoosh/kit-typography';
|
|
2
|
-
export declare const LockedTitle: import("styled-components").StyledComponent<typeof H5, any, {
|
|
3
|
-
$uppercase?: boolean;
|
|
4
|
-
}, never>;
|
|
5
|
-
export declare const LockedText: import("styled-components").StyledComponent<"div", any, {
|
|
6
|
-
$uppercase?: boolean;
|
|
7
|
-
$small?: boolean;
|
|
8
|
-
}, never>;
|
package/common.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import { Color, FontSize } from '@pushwoosh/kit-constants';
|
|
3
|
-
import { H5 } from '@pushwoosh/kit-typography';
|
|
4
|
-
export const LockedTitle = styled(H5).withConfig({
|
|
5
|
-
displayName: "LockedTitle",
|
|
6
|
-
componentId: "sc-88o871-0"
|
|
7
|
-
})(["text-transform:", ";color:", ";text-overflow:ellipsis;"], ({
|
|
8
|
-
$uppercase
|
|
9
|
-
}) => $uppercase ? 'uppercase' : 'initial', Color.LOCKED);
|
|
10
|
-
export const LockedText = styled.div.withConfig({
|
|
11
|
-
displayName: "LockedText",
|
|
12
|
-
componentId: "sc-88o871-1"
|
|
13
|
-
})(["text-transform:", ";font-size:", ";color:", ";"], ({
|
|
14
|
-
$uppercase
|
|
15
|
-
}) => $uppercase ? 'uppercase' : 'initial', ({
|
|
16
|
-
$small
|
|
17
|
-
}) => $small ? FontSize.SMALL : 'initial', Color.LOCKED);
|