@elliemae/ds-chat-empty-state 3.6.0-next.0

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,82 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+ var ChatEmptyState_exports = {};
26
+ __export(ChatEmptyState_exports, {
27
+ ChatEmptyState: () => ChatEmptyState,
28
+ ChatEmptyStateWithSchema: () => ChatEmptyStateWithSchema
29
+ });
30
+ module.exports = __toCommonJS(ChatEmptyState_exports);
31
+ var React = __toESM(require("react"));
32
+ var import_jsx_runtime = require("react/jsx-runtime");
33
+ var import_react = require("react");
34
+ var import_ds_utilities = require("@elliemae/ds-utilities");
35
+ var import_ds_grid = require("@elliemae/ds-grid");
36
+ var import_ds_icons = require("@elliemae/ds-icons");
37
+ var import_react_desc_prop_types = require("./react-desc-prop-types");
38
+ var import_styled = require("./styled");
39
+ const ChatEmptyState = (props) => {
40
+ const propsWithDefault = (0, import_ds_utilities.useMemoMergePropsWithDefault)(props, import_react_desc_prop_types.defaultProps);
41
+ (0, import_ds_utilities.useValidateTypescriptPropTypes)(propsWithDefault, import_react_desc_prop_types.emptyStateProps);
42
+ const { label, action } = propsWithDefault;
43
+ const MainContent = (0, import_react.useMemo)(
44
+ () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ds_grid.Grid, {
45
+ alignItems: "center",
46
+ justifyContent: "center",
47
+ children: [
48
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_grid.Grid, {
49
+ alignItems: "center",
50
+ justifyContent: "center",
51
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.Communications, {
52
+ size: "xxl",
53
+ color: ["neutral", "400"]
54
+ })
55
+ }),
56
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_grid.Grid, {
57
+ alignItems: "center",
58
+ justifyContent: "center",
59
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.MessageWrapper, {
60
+ children: label
61
+ })
62
+ }),
63
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_grid.Grid, {
64
+ alignItems: "center",
65
+ justifyContent: "center",
66
+ children: action
67
+ })
68
+ ]
69
+ }),
70
+ [label, action]
71
+ );
72
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.ChatEmptyStateWrapper, {
73
+ alignItems: "center",
74
+ justifyContent: "center",
75
+ children: MainContent
76
+ });
77
+ };
78
+ ChatEmptyState.propTypes = import_react_desc_prop_types.emptyStateProps;
79
+ ChatEmptyState.displayName = "ChatEmptyState";
80
+ const ChatEmptyStateWithSchema = (0, import_ds_utilities.describe)(ChatEmptyState);
81
+ ChatEmptyStateWithSchema.propTypes = import_react_desc_prop_types.emptyStateProps;
82
+ //# sourceMappingURL=ChatEmptyState.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/ChatEmptyState.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import React, { useMemo, WeakValidationMap } from 'react';\nimport { describe, useValidateTypescriptPropTypes, useMemoMergePropsWithDefault } from '@elliemae/ds-utilities';\nimport { Grid } from '@elliemae/ds-grid';\nimport { Communications } from '@elliemae/ds-icons';\nimport { DSChatEmptyStateT, emptyStateProps, defaultProps } from './react-desc-prop-types';\nimport { ChatEmptyStateWrapper, MessageWrapper } from './styled';\n\nconst ChatEmptyState: React.ComponentType<DSChatEmptyStateT.Props> = (props) => {\n const propsWithDefault = useMemoMergePropsWithDefault<DSChatEmptyStateT.Props>(props, defaultProps);\n useValidateTypescriptPropTypes(propsWithDefault, emptyStateProps);\n\n const { label, action } = propsWithDefault;\n const MainContent = useMemo(\n () => (\n <Grid alignItems=\"center\" justifyContent=\"center\">\n <Grid alignItems=\"center\" justifyContent=\"center\">\n <Communications size=\"xxl\" color={['neutral', '400']} />\n </Grid>\n <Grid alignItems=\"center\" justifyContent=\"center\">\n <MessageWrapper>{label}</MessageWrapper>\n </Grid>\n <Grid alignItems=\"center\" justifyContent=\"center\">\n {action}\n </Grid>\n </Grid>\n ),\n [label, action],\n );\n return (\n <ChatEmptyStateWrapper alignItems=\"center\" justifyContent=\"center\">\n {MainContent}\n </ChatEmptyStateWrapper>\n );\n};\n\nChatEmptyState.propTypes = emptyStateProps as WeakValidationMap<unknown>;\nChatEmptyState.displayName = 'ChatEmptyState';\nconst ChatEmptyStateWithSchema = describe(ChatEmptyState);\nChatEmptyStateWithSchema.propTypes = emptyStateProps as WeakValidationMap<unknown>;\n\nexport { ChatEmptyState, ChatEmptyStateWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB;AAAA,mBAAkD;AAClD,0BAAuF;AACvF,qBAAqB;AACrB,sBAA+B;AAC/B,mCAAiE;AACjE,oBAAsD;AAEtD,MAAM,iBAA+D,CAAC,UAAU;AAC9E,QAAM,uBAAmB,kDAAsD,OAAO,yCAAY;AAClG,0DAA+B,kBAAkB,4CAAe;AAEhE,QAAM,EAAE,OAAO,OAAO,IAAI;AAC1B,QAAM,kBAAc;AAAA,IAClB,MACE,6CAAC;AAAA,MAAK,YAAW;AAAA,MAAS,gBAAe;AAAA,MACvC;AAAA,oDAAC;AAAA,UAAK,YAAW;AAAA,UAAS,gBAAe;AAAA,UACvC,sDAAC;AAAA,YAAe,MAAK;AAAA,YAAM,OAAO,CAAC,WAAW,KAAK;AAAA,WAAG;AAAA,SACxD;AAAA,QACA,4CAAC;AAAA,UAAK,YAAW;AAAA,UAAS,gBAAe;AAAA,UACvC,sDAAC;AAAA,YAAgB;AAAA,WAAM;AAAA,SACzB;AAAA,QACA,4CAAC;AAAA,UAAK,YAAW;AAAA,UAAS,gBAAe;AAAA,UACtC;AAAA,SACH;AAAA;AAAA,KACF;AAAA,IAEF,CAAC,OAAO,MAAM;AAAA,EAChB;AACA,SACE,4CAAC;AAAA,IAAsB,YAAW;AAAA,IAAS,gBAAe;AAAA,IACvD;AAAA,GACH;AAEJ;AAEA,eAAe,YAAY;AAC3B,eAAe,cAAc;AAC7B,MAAM,+BAA2B,8BAAS,cAAc;AACxD,yBAAyB,YAAY;",
6
+ "names": []
7
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+ var src_exports = {};
26
+ __export(src_exports, {
27
+ ChatEmptyState: () => import_ChatEmptyState.ChatEmptyState,
28
+ ChatEmptyStateWithSchema: () => import_ChatEmptyState.ChatEmptyStateWithSchema
29
+ });
30
+ module.exports = __toCommonJS(src_exports);
31
+ var React = __toESM(require("react"));
32
+ var import_ChatEmptyState = require("./ChatEmptyState");
33
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["export { ChatEmptyState, ChatEmptyStateWithSchema } from './ChatEmptyState';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,4BAAyD;",
6
+ "names": []
7
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+ var react_desc_prop_types_exports = {};
26
+ __export(react_desc_prop_types_exports, {
27
+ defaultProps: () => defaultProps,
28
+ emptyStateProps: () => emptyStateProps
29
+ });
30
+ module.exports = __toCommonJS(react_desc_prop_types_exports);
31
+ var React = __toESM(require("react"));
32
+ var import_ds_utilities = require("@elliemae/ds-utilities");
33
+ const defaultProps = {
34
+ label: "No Messages Yet"
35
+ };
36
+ const emptyStateProps = {
37
+ label: import_ds_utilities.PropTypes.string.description("No Message to show text helper").defaultValue(defaultProps.label),
38
+ action: import_ds_utilities.PropTypes.node.description("action element")
39
+ };
40
+ //# sourceMappingURL=react-desc-prop-types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/react-desc-prop-types.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import { PropTypes } from '@elliemae/ds-utilities';\n\nexport declare namespace DSChatEmptyStateT {\n export interface DefaultProps {\n label: string;\n }\n\n export interface OptionalProps {\n action: JSX.Element;\n }\n\n export interface Props extends DefaultProps, OptionalProps {}\n}\n\nexport const defaultProps: DSChatEmptyStateT.DefaultProps = {\n label: 'No Messages Yet',\n};\n\nexport const emptyStateProps = {\n label: PropTypes.string.description('No Message to show text helper').defaultValue(defaultProps.label),\n action: PropTypes.node.description('action element'),\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,0BAA0B;AAcnB,MAAM,eAA+C;AAAA,EAC1D,OAAO;AACT;AAEO,MAAM,kBAAkB;AAAA,EAC7B,OAAO,8BAAU,OAAO,YAAY,gCAAgC,EAAE,aAAa,aAAa,KAAK;AAAA,EACrG,QAAQ,8BAAU,KAAK,YAAY,gBAAgB;AACrD;",
6
+ "names": []
7
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+ var styled_exports = {};
26
+ __export(styled_exports, {
27
+ CONTAINER_WIDTH: () => CONTAINER_WIDTH,
28
+ ChatEmptyStateWrapper: () => ChatEmptyStateWrapper,
29
+ MessageWrapper: () => MessageWrapper
30
+ });
31
+ module.exports = __toCommonJS(styled_exports);
32
+ var React = __toESM(require("react"));
33
+ var import_ds_system = require("@elliemae/ds-system");
34
+ var import_ds_grid = require("@elliemae/ds-grid");
35
+ const CONTAINER_WIDTH = 300;
36
+ const ChatEmptyStateWrapper = (0, import_ds_system.styled)(import_ds_grid.Grid)`
37
+ height: 100%;
38
+ overflow: hidden;
39
+ `;
40
+ const MessageWrapper = import_ds_system.styled.p`
41
+ font-size: 18px;
42
+ margin-bottom: 0px;
43
+ `;
44
+ //# sourceMappingURL=styled.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/styled.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import { styled } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\n\nexport const CONTAINER_WIDTH = 300;\n\nexport const ChatEmptyStateWrapper = styled(Grid)`\n height: 100%;\n overflow: hidden;\n`;\n\nexport const MessageWrapper = styled.p`\n font-size: 18px;\n margin-bottom: 0px;\n`;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAuB;AACvB,qBAAqB;AAEd,MAAM,kBAAkB;AAExB,MAAM,4BAAwB,yBAAO,mBAAI;AAAA;AAAA;AAAA;AAKzC,MAAM,iBAAiB,wBAAO;AAAA;AAAA;AAAA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,56 @@
1
+ import * as React from "react";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { useMemo } from "react";
4
+ import { describe, useValidateTypescriptPropTypes, useMemoMergePropsWithDefault } from "@elliemae/ds-utilities";
5
+ import { Grid } from "@elliemae/ds-grid";
6
+ import { Communications } from "@elliemae/ds-icons";
7
+ import { emptyStateProps, defaultProps } from "./react-desc-prop-types";
8
+ import { ChatEmptyStateWrapper, MessageWrapper } from "./styled";
9
+ const ChatEmptyState = (props) => {
10
+ const propsWithDefault = useMemoMergePropsWithDefault(props, defaultProps);
11
+ useValidateTypescriptPropTypes(propsWithDefault, emptyStateProps);
12
+ const { label, action } = propsWithDefault;
13
+ const MainContent = useMemo(
14
+ () => /* @__PURE__ */ jsxs(Grid, {
15
+ alignItems: "center",
16
+ justifyContent: "center",
17
+ children: [
18
+ /* @__PURE__ */ jsx(Grid, {
19
+ alignItems: "center",
20
+ justifyContent: "center",
21
+ children: /* @__PURE__ */ jsx(Communications, {
22
+ size: "xxl",
23
+ color: ["neutral", "400"]
24
+ })
25
+ }),
26
+ /* @__PURE__ */ jsx(Grid, {
27
+ alignItems: "center",
28
+ justifyContent: "center",
29
+ children: /* @__PURE__ */ jsx(MessageWrapper, {
30
+ children: label
31
+ })
32
+ }),
33
+ /* @__PURE__ */ jsx(Grid, {
34
+ alignItems: "center",
35
+ justifyContent: "center",
36
+ children: action
37
+ })
38
+ ]
39
+ }),
40
+ [label, action]
41
+ );
42
+ return /* @__PURE__ */ jsx(ChatEmptyStateWrapper, {
43
+ alignItems: "center",
44
+ justifyContent: "center",
45
+ children: MainContent
46
+ });
47
+ };
48
+ ChatEmptyState.propTypes = emptyStateProps;
49
+ ChatEmptyState.displayName = "ChatEmptyState";
50
+ const ChatEmptyStateWithSchema = describe(ChatEmptyState);
51
+ ChatEmptyStateWithSchema.propTypes = emptyStateProps;
52
+ export {
53
+ ChatEmptyState,
54
+ ChatEmptyStateWithSchema
55
+ };
56
+ //# sourceMappingURL=ChatEmptyState.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/ChatEmptyState.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useMemo, WeakValidationMap } from 'react';\nimport { describe, useValidateTypescriptPropTypes, useMemoMergePropsWithDefault } from '@elliemae/ds-utilities';\nimport { Grid } from '@elliemae/ds-grid';\nimport { Communications } from '@elliemae/ds-icons';\nimport { DSChatEmptyStateT, emptyStateProps, defaultProps } from './react-desc-prop-types';\nimport { ChatEmptyStateWrapper, MessageWrapper } from './styled';\n\nconst ChatEmptyState: React.ComponentType<DSChatEmptyStateT.Props> = (props) => {\n const propsWithDefault = useMemoMergePropsWithDefault<DSChatEmptyStateT.Props>(props, defaultProps);\n useValidateTypescriptPropTypes(propsWithDefault, emptyStateProps);\n\n const { label, action } = propsWithDefault;\n const MainContent = useMemo(\n () => (\n <Grid alignItems=\"center\" justifyContent=\"center\">\n <Grid alignItems=\"center\" justifyContent=\"center\">\n <Communications size=\"xxl\" color={['neutral', '400']} />\n </Grid>\n <Grid alignItems=\"center\" justifyContent=\"center\">\n <MessageWrapper>{label}</MessageWrapper>\n </Grid>\n <Grid alignItems=\"center\" justifyContent=\"center\">\n {action}\n </Grid>\n </Grid>\n ),\n [label, action],\n );\n return (\n <ChatEmptyStateWrapper alignItems=\"center\" justifyContent=\"center\">\n {MainContent}\n </ChatEmptyStateWrapper>\n );\n};\n\nChatEmptyState.propTypes = emptyStateProps as WeakValidationMap<unknown>;\nChatEmptyState.displayName = 'ChatEmptyState';\nconst ChatEmptyStateWithSchema = describe(ChatEmptyState);\nChatEmptyStateWithSchema.propTypes = emptyStateProps as WeakValidationMap<unknown>;\n\nexport { ChatEmptyState, ChatEmptyStateWithSchema };\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB;AAAA,SAAgB,eAAkC;AAClD,SAAS,UAAU,gCAAgC,oCAAoC;AACvF,SAAS,YAAY;AACrB,SAAS,sBAAsB;AAC/B,SAA4B,iBAAiB,oBAAoB;AACjE,SAAS,uBAAuB,sBAAsB;AAEtD,MAAM,iBAA+D,CAAC,UAAU;AAC9E,QAAM,mBAAmB,6BAAsD,OAAO,YAAY;AAClG,iCAA+B,kBAAkB,eAAe;AAEhE,QAAM,EAAE,OAAO,OAAO,IAAI;AAC1B,QAAM,cAAc;AAAA,IAClB,MACE,qBAAC;AAAA,MAAK,YAAW;AAAA,MAAS,gBAAe;AAAA,MACvC;AAAA,4BAAC;AAAA,UAAK,YAAW;AAAA,UAAS,gBAAe;AAAA,UACvC,8BAAC;AAAA,YAAe,MAAK;AAAA,YAAM,OAAO,CAAC,WAAW,KAAK;AAAA,WAAG;AAAA,SACxD;AAAA,QACA,oBAAC;AAAA,UAAK,YAAW;AAAA,UAAS,gBAAe;AAAA,UACvC,8BAAC;AAAA,YAAgB;AAAA,WAAM;AAAA,SACzB;AAAA,QACA,oBAAC;AAAA,UAAK,YAAW;AAAA,UAAS,gBAAe;AAAA,UACtC;AAAA,SACH;AAAA;AAAA,KACF;AAAA,IAEF,CAAC,OAAO,MAAM;AAAA,EAChB;AACA,SACE,oBAAC;AAAA,IAAsB,YAAW;AAAA,IAAS,gBAAe;AAAA,IACvD;AAAA,GACH;AAEJ;AAEA,eAAe,YAAY;AAC3B,eAAe,cAAc;AAC7B,MAAM,2BAA2B,SAAS,cAAc;AACxD,yBAAyB,YAAY;",
6
+ "names": []
7
+ }
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import { ChatEmptyState, ChatEmptyStateWithSchema } from "./ChatEmptyState";
3
+ export {
4
+ ChatEmptyState,
5
+ ChatEmptyStateWithSchema
6
+ };
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { ChatEmptyState, ChatEmptyStateWithSchema } from './ChatEmptyState';\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,gBAAgB,gCAAgC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,14 @@
1
+ import * as React from "react";
2
+ import { PropTypes } from "@elliemae/ds-utilities";
3
+ const defaultProps = {
4
+ label: "No Messages Yet"
5
+ };
6
+ const emptyStateProps = {
7
+ label: PropTypes.string.description("No Message to show text helper").defaultValue(defaultProps.label),
8
+ action: PropTypes.node.description("action element")
9
+ };
10
+ export {
11
+ defaultProps,
12
+ emptyStateProps
13
+ };
14
+ //# sourceMappingURL=react-desc-prop-types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/react-desc-prop-types.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes } from '@elliemae/ds-utilities';\n\nexport declare namespace DSChatEmptyStateT {\n export interface DefaultProps {\n label: string;\n }\n\n export interface OptionalProps {\n action: JSX.Element;\n }\n\n export interface Props extends DefaultProps, OptionalProps {}\n}\n\nexport const defaultProps: DSChatEmptyStateT.DefaultProps = {\n label: 'No Messages Yet',\n};\n\nexport const emptyStateProps = {\n label: PropTypes.string.description('No Message to show text helper').defaultValue(defaultProps.label),\n action: PropTypes.node.description('action element'),\n};\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,iBAAiB;AAcnB,MAAM,eAA+C;AAAA,EAC1D,OAAO;AACT;AAEO,MAAM,kBAAkB;AAAA,EAC7B,OAAO,UAAU,OAAO,YAAY,gCAAgC,EAAE,aAAa,aAAa,KAAK;AAAA,EACrG,QAAQ,UAAU,KAAK,YAAY,gBAAgB;AACrD;",
6
+ "names": []
7
+ }
@@ -0,0 +1,18 @@
1
+ import * as React from "react";
2
+ import { styled } from "@elliemae/ds-system";
3
+ import { Grid } from "@elliemae/ds-grid";
4
+ const CONTAINER_WIDTH = 300;
5
+ const ChatEmptyStateWrapper = styled(Grid)`
6
+ height: 100%;
7
+ overflow: hidden;
8
+ `;
9
+ const MessageWrapper = styled.p`
10
+ font-size: 18px;
11
+ margin-bottom: 0px;
12
+ `;
13
+ export {
14
+ CONTAINER_WIDTH,
15
+ ChatEmptyStateWrapper,
16
+ MessageWrapper
17
+ };
18
+ //# sourceMappingURL=styled.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/styled.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { styled } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\n\nexport const CONTAINER_WIDTH = 300;\n\nexport const ChatEmptyStateWrapper = styled(Grid)`\n height: 100%;\n overflow: hidden;\n`;\n\nexport const MessageWrapper = styled.p`\n font-size: 18px;\n margin-bottom: 0px;\n`;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,cAAc;AACvB,SAAS,YAAY;AAEd,MAAM,kBAAkB;AAExB,MAAM,wBAAwB,OAAO,IAAI;AAAA;AAAA;AAAA;AAKzC,MAAM,iBAAiB,OAAO;AAAA;AAAA;AAAA;",
6
+ "names": []
7
+ }
package/package.json ADDED
@@ -0,0 +1,77 @@
1
+ {
2
+ "name": "@elliemae/ds-chat-empty-state",
3
+ "version": "3.6.0-next.0",
4
+ "license": "MIT",
5
+ "description": "ICE MT - Dimsum - Chat Empty State",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "module": "./dist/esm/index.js",
10
+ "main": "./dist/cjs/index.js",
11
+ "types": "./dist/types/index.d.ts",
12
+ "exports": {
13
+ ".": {
14
+ "import": "./dist/esm/index.js",
15
+ "require": "./dist/cjs/index.js"
16
+ },
17
+ "./styled": {
18
+ "import": "./dist/esm/styled.js",
19
+ "require": "./dist/cjs/styled.js"
20
+ },
21
+ "./props": {
22
+ "import": "./dist/esm/props.js",
23
+ "require": "./dist/cjs/props.js"
24
+ },
25
+ "./ChatEmptyState": {
26
+ "import": "./dist/esm/ChatEmptyState.js",
27
+ "require": "./dist/cjs/ChatEmptyState.js"
28
+ }
29
+ },
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "https://git.elliemae.io/platform-ui/dimsum.git"
33
+ },
34
+ "engines": {
35
+ "pnpm": ">=6",
36
+ "node": ">=16"
37
+ },
38
+ "author": "ICE MT",
39
+ "jestSonar": {
40
+ "sonar56x": true,
41
+ "reportPath": "reports",
42
+ "reportFile": "tests.xml",
43
+ "indent": 4
44
+ },
45
+ "publishConfig": {
46
+ "access": "public",
47
+ "typeSafety": true
48
+ },
49
+ "dependencies": {
50
+ "@elliemae/ds-grid": "3.6.0-next.0",
51
+ "@elliemae/ds-icons": "3.6.0-next.0",
52
+ "@elliemae/ds-system": "3.6.0-next.0",
53
+ "@elliemae/ds-truncated-tooltip-text": "3.6.0-next.0",
54
+ "@elliemae/ds-utilities": "3.6.0-next.0"
55
+ },
56
+ "devDependencies": {
57
+ "@testing-library/dom": "~8.13.0",
58
+ "@testing-library/jest-dom": "~5.16.4",
59
+ "@testing-library/react": "~12.1.3",
60
+ "@testing-library/user-event": "~13.5.0",
61
+ "styled-components": "~5.3.5"
62
+ },
63
+ "peerDependencies": {
64
+ "lodash": "^4.17.21",
65
+ "react": "^17.0.2",
66
+ "react-dom": "^17.0.2",
67
+ "styled-components": "^5.3.5"
68
+ },
69
+ "scripts": {
70
+ "test": "node ../../scripts/testing/test.mjs",
71
+ "lint": "node ../../scripts/lint.mjs",
72
+ "dts": "node ../../scripts/dts.mjs",
73
+ "dev": "node ../../scripts/build/build.js -w",
74
+ "build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs",
75
+ "checkDeps": "npx -yes ../ds-codemods check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
76
+ }
77
+ }