@pushwoosh/dumb-components 1.1.118 → 1.1.119

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.
@@ -0,0 +1,2 @@
1
+ import { type ReactElement } from 'react';
2
+ export declare function CrashScreen(): ReactElement;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { Color } from '@pushwoosh/kit-constants';
3
+ import { WarningRoundIcon } from '@pushwoosh/kit-icons';
4
+ import { RootBox, IconBox, TitleBox, DescriptionBox } from './styles';
5
+ export function CrashScreen() {
6
+ return React.createElement(RootBox, null, React.createElement(IconBox, null, React.createElement(WarningRoundIcon, {
7
+ size: "medium",
8
+ view: "filled",
9
+ color: Color.WARNING
10
+ })), React.createElement(TitleBox, null, "Something went wrong"), React.createElement(DescriptionBox, null, "Please refresh the page or try again later."));
11
+ }
@@ -0,0 +1 @@
1
+ export { CrashScreen } from './CrashScreen';
@@ -0,0 +1 @@
1
+ export { CrashScreen } from './CrashScreen';
@@ -0,0 +1,5 @@
1
+ import { H1 } from '@pushwoosh/kit-typography';
2
+ export declare const RootBox: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const IconBox: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const TitleBox: import("styled-components").StyledComponent<typeof H1, any, {}, never>;
5
+ export declare const DescriptionBox: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,19 @@
1
+ import styled from 'styled-components';
2
+ import { Color, FontWeight } from '@pushwoosh/kit-constants';
3
+ import { H1 } from '@pushwoosh/kit-typography';
4
+ export const RootBox = styled.div.withConfig({
5
+ displayName: "RootBox",
6
+ componentId: "sc-b6tbd2-0"
7
+ })(["display:flex;flex-direction:column;align-items:center;justify-content:center;max-width:520px;padding:56px 48px;margin:0 auto;"]);
8
+ export const IconBox = styled.div.withConfig({
9
+ displayName: "IconBox",
10
+ componentId: "sc-b6tbd2-1"
11
+ })(["margin-bottom:12px;"]);
12
+ export const TitleBox = styled(H1).withConfig({
13
+ displayName: "TitleBox",
14
+ componentId: "sc-b6tbd2-2"
15
+ })(["color:", ";font-weight:", ";margin-bottom:8px;"], Color.LOCKED, FontWeight.MEDIUM);
16
+ export const DescriptionBox = styled.div.withConfig({
17
+ displayName: "DescriptionBox",
18
+ componentId: "sc-b6tbd2-3"
19
+ })(["color:", ";text-align:center;"], Color.LOCKED);
package/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export { Banner, type BannerType } from './Banner';
4
4
  export { Button, GhostButton } from './Button';
5
5
  export { CardMetric } from './CardMetric';
6
6
  export { Checkbox } from './Checkbox';
7
+ export { CrashScreen } from './CrashScreen';
7
8
  export { Drawer, DrawerHeader, DrawerTitle, DrawerBody, DrawerDocs, useDocs, } from './Drawer';
8
9
  export { CalendarSuperForm, CalendarDropdown, addPeriod, compareStructs, dateToStruct, dateToStructTz, getTimezoneOffset, getPeriodEnd, getPeriodStart, structToDate, structToDateTz, stringifyValue, pickDateStruct, type CalendarDropdownProps, type CalendarDropdownRangeDateProps, type CalendarSuperFormProps, type DateStruct, type RangeValue, } from './Calendar';
9
10
  export { DatePicker, DatePickerField, DateTimePicker, DateTimePickerField, } from './DateTimePicker';
package/index.js CHANGED
@@ -4,6 +4,7 @@ export { Banner } from './Banner';
4
4
  export { Button, GhostButton } from './Button';
5
5
  export { CardMetric } from './CardMetric';
6
6
  export { Checkbox } from './Checkbox';
7
+ export { CrashScreen } from './CrashScreen';
7
8
  export { Drawer, DrawerHeader, DrawerTitle, DrawerBody, DrawerDocs, useDocs } from './Drawer';
8
9
  export { CalendarSuperForm, CalendarDropdown, addPeriod, compareStructs, dateToStruct, dateToStructTz, getTimezoneOffset, getPeriodEnd, getPeriodStart, structToDate, structToDateTz, stringifyValue, pickDateStruct } from './Calendar';
9
10
  export { DatePicker, DatePickerField, DateTimePicker, DateTimePickerField } from './DateTimePicker';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/dumb-components",
3
- "version": "1.1.118",
3
+ "version": "1.1.119",
4
4
  "description": "React components to build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",