@pushwoosh/dumb-components 1.0.29 → 1.0.31

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/Button/styles.js CHANGED
@@ -60,7 +60,7 @@ const primaryGhostColors = createColors(colors.primary.ghost);
60
60
  export const ButtonBoxPrimaryGhostCompact = styled(ButtonBox).withConfig({
61
61
  displayName: "ButtonBoxPrimaryGhostCompact",
62
62
  componentId: "sc-qltvdl-10"
63
- })(["height:16px;padding:0;font-size:", ";font-weight:", ";text-transform:uppercase;& ", "{padding:0;}", ";--primary-ghost-hover-bg-color:transparent;"], FontSize.SMALL, FontWeight.BOLD, /* sc-selector */ButtonContent, /* sc-custom "display: none;" */primaryGhostColors);
63
+ })(["height:", ";padding:0;font-size:", ";line-height:", ";font-weight:", ";text-transform:uppercase;& ", "{padding:4px 0;}", ";--primary-ghost-hover-bg-color:transparent;"], UnitSize.COMPACT_HEIGHT, FontSize.SMALL, LineHeight.SMALL, FontWeight.BOLD, /* sc-selector */ButtonContent, /* sc-custom "display: none;" */primaryGhostColors);
64
64
  export const ButtonBoxPrimaryGhostField = styled(ButtonBox).withConfig({
65
65
  displayName: "ButtonBoxPrimaryGhostField",
66
66
  componentId: "sc-qltvdl-11"
@@ -70,7 +70,7 @@ const secondaryGhostColors = createColors(colors.secondary.ghost);
70
70
  export const ButtonBoxSecondaryGhostCompact = styled(ButtonBox).withConfig({
71
71
  displayName: "ButtonBoxSecondaryGhostCompact",
72
72
  componentId: "sc-qltvdl-12"
73
- })(["height:16px;padding:0;font-size:", ";font-weight:", ";text-transform:uppercase;& ", "{padding:0;}", ";--secondary-ghost-base-color:", ";--secondary-ghost-hover-bg-color:transparent;"], FontSize.SMALL, FontWeight.BOLD, /* sc-selector */ButtonContent, /* sc-custom "display: none;" */secondaryGhostColors, Color.SOFT);
73
+ })(["height:", ";padding:0;font-size:", ";line-height:", ";font-weight:", ";text-transform:uppercase;& ", "{padding:4px 0;}", ";--secondary-ghost-base-color:", ";--secondary-ghost-hover-bg-color:transparent;"], UnitSize.COMPACT_HEIGHT, FontSize.SMALL, LineHeight.SMALL, FontWeight.BOLD, /* sc-selector */ButtonContent, /* sc-custom "display: none;" */secondaryGhostColors, Color.SOFT);
74
74
  export const ButtonBoxSecondaryGhostField = styled(ButtonBox).withConfig({
75
75
  displayName: "ButtonBoxSecondaryGhostField",
76
76
  componentId: "sc-qltvdl-13"
@@ -0,0 +1,2 @@
1
+ import { type ReactElement } from 'react';
2
+ export declare function NoPushPreview(): ReactElement;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { Vertical } from '@pushwoosh/kit-helpers';
3
+ import { Container, IconMock } from './styles';
4
+ import { LockedText, LockedTitle } from '../../../common';
5
+ 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")));
14
+ }
@@ -0,0 +1 @@
1
+ export { NoPushPreview } from './NoPushPreview';
@@ -0,0 +1 @@
1
+ export { NoPushPreview } from './NoPushPreview';
@@ -0,0 +1,14 @@
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
+ $gap?: string | number | undefined;
6
+ $gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense" | undefined;
7
+ $justifyContent?: "end" | "start" | "center" | "space-between" | "space-around" | "space-evenly" | "stretch" | undefined;
8
+ $justifyItems?: "end" | "start" | "center" | "stretch" | "baseline" | undefined;
9
+ $margin?: string | number | undefined;
10
+ $padding?: string | number | undefined;
11
+ $placeItems?: "end" | "start" | "center" | "stretch" | undefined;
12
+ } & {
13
+ $gridAutoFlow: string;
14
+ }, "$gridAutoFlow">;
@@ -0,0 +1,11 @@
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);
@@ -0,0 +1,2 @@
1
+ import { type ReactElement } from 'react';
2
+ export declare function SilentPushPreview(): ReactElement;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { Vertical } from '@pushwoosh/kit-helpers';
3
+ import { NotificationIcon } from '@pushwoosh/kit-icons';
4
+ import { Container, IconContainer } from './styles';
5
+ import { LockedText, LockedTitle } from '../../../common';
6
+ export function SilentPushPreview() {
7
+ return React.createElement(Container, {
8
+ "$gap": "10px",
9
+ "$padding": "10px",
10
+ "$alignItems": "center",
11
+ "$justifyContent": "start"
12
+ }, React.createElement(IconContainer, null, React.createElement(NotificationIcon, {
13
+ size: "medium",
14
+ type: "disabled",
15
+ view: "lined",
16
+ color: "#FFD600"
17
+ })), React.createElement(Vertical, null, React.createElement(LockedTitle, null, "Silent push"), React.createElement(LockedText, {
18
+ "$small": true
19
+ }, "There is no content to preview")));
20
+ }
@@ -0,0 +1 @@
1
+ export { SilentPushPreview } from './SilentPushPreview';
@@ -0,0 +1 @@
1
+ export { SilentPushPreview } from './SilentPushPreview';
@@ -0,0 +1,14 @@
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
+ $gap?: string | number | undefined;
6
+ $gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense" | undefined;
7
+ $justifyContent?: "end" | "start" | "center" | "space-between" | "space-around" | "space-evenly" | "stretch" | undefined;
8
+ $justifyItems?: "end" | "start" | "center" | "stretch" | "baseline" | undefined;
9
+ $margin?: string | number | undefined;
10
+ $padding?: string | number | undefined;
11
+ $placeItems?: "end" | "start" | "center" | "stretch" | undefined;
12
+ } & {
13
+ $gridAutoFlow: string;
14
+ }, "$gridAutoFlow">;
@@ -0,0 +1,11 @@
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);
@@ -1 +1,3 @@
1
- export * from './PushPreview';
1
+ export { PushPreview } from './PushPreview';
2
+ export { NoPushPreview } from './components/NoPushPreview';
3
+ export { SilentPushPreview } from './components/SilentPushPreview';
@@ -1 +1,3 @@
1
- export * from './PushPreview';
1
+ export { PushPreview } from './PushPreview';
2
+ export { NoPushPreview } from './components/NoPushPreview';
3
+ export { SilentPushPreview } from './components/SilentPushPreview';
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 } from './PushPreview';
27
+ export { PushPreview, NoPushPreview, SilentPushPreview } 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 } from './PushPreview';
27
+ export { PushPreview, NoPushPreview, SilentPushPreview } 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.29",
3
+ "version": "1.0.31",
4
4
  "description": "React components to build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "devDependencies": {
23
23
  "@pushwoosh/frontend-builder-engine": "^1.0.16",
24
- "@pushwoosh/kit-constants": "^1.6.7",
24
+ "@pushwoosh/kit-constants": "^1.6.8",
25
25
  "@svgr/webpack": "^8.1.0",
26
26
  "@types/lodash": "^4.17.13",
27
27
  "@types/react": "^18.2.69",