@pushwoosh/dumb-components 1.0.41 → 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.
@@ -1,20 +1,24 @@
1
1
  import React from 'react';
2
- import { Spacing } from '@pushwoosh/kit-constants';
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
- "$gap": Spacing.S4,
10
- "$padding": `${Spacing.S4} ${Spacing.S4} ${Spacing.S7}`
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(LockedTitle, null, "Content missed..."), React.createElement(LockedText, {
18
- "$small": true
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
  }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Color, Spacing, Tag } from '@pushwoosh/kit-constants';
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
- "$gap": Spacing.S1,
23
- ref: boxRef
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": Spacing.S1,
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 { 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,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
- }, "$gridAutoFlow">;
61
- export declare const PushTitleBox: import("styled-components").StyledComponent<"span", any, {}, never>;
62
- export declare const PushTitleText: import("styled-components").StyledComponent<"span", any, {}, never>;
63
- 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>;
64
72
  export declare const PushDescription: import("styled-components").StyledComponent<"div", any, {
65
- $isLocked: boolean;
73
+ view?: PushPreviewView;
74
+ locked?: boolean;
66
75
  }, never>;
67
- 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,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(LockedText, {
31
- "$small": true
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(LockedText, {
45
- "$small": true
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, NoPushPreview, SilentPushPreview } from './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, NoPushPreview, SilentPushPreview } from './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,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/dumb-components",
3
- "version": "1.0.41",
3
+ "version": "1.0.42",
4
4
  "description": "React components to build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -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);