@elliemae/ds-chat-message-delimeter 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,62 @@
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 MessageDelimiter_exports = {};
26
+ __export(MessageDelimiter_exports, {
27
+ MessageDelimiter: () => MessageDelimiter,
28
+ MessageDelimiterWithSchema: () => MessageDelimiterWithSchema
29
+ });
30
+ module.exports = __toCommonJS(MessageDelimiter_exports);
31
+ var React = __toESM(require("react"));
32
+ var import_jsx_runtime = require("react/jsx-runtime");
33
+ var import_ds_utilities = require("@elliemae/ds-utilities");
34
+ var import_styled = require("./styled");
35
+ var import_react_desc_prop_types = require("./react-desc-prop-types");
36
+ const MessageDelimiter = (props) => {
37
+ const propsWithDefault = (0, import_ds_utilities.useMemoMergePropsWithDefault)(props, import_react_desc_prop_types.defaultProps);
38
+ (0, import_ds_utilities.useValidateTypescriptPropTypes)(propsWithDefault, import_react_desc_prop_types.messageDelimiterProps);
39
+ const globalAttrs = (0, import_ds_utilities.useGetGlobalAttributes)(propsWithDefault);
40
+ const { title, size, verticalMargin } = propsWithDefault;
41
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
42
+ ...globalAttrs,
43
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styled.Wrapper, {
44
+ cols: ["1fr", "auto", "1fr"],
45
+ children: [
46
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.Line, {}),
47
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.Text, {
48
+ size,
49
+ verticalMargin,
50
+ "data-testid": "chat-message-delimiter-title",
51
+ children: title
52
+ }),
53
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.Line, {})
54
+ ]
55
+ })
56
+ });
57
+ };
58
+ MessageDelimiter.propTypes = import_react_desc_prop_types.messageDelimiterProps;
59
+ MessageDelimiter.displayName = "MessageDelimiter";
60
+ const MessageDelimiterWithSchema = (0, import_ds_utilities.describe)(MessageDelimiter);
61
+ MessageDelimiterWithSchema.propTypes = import_react_desc_prop_types.messageDelimiterProps;
62
+ //# sourceMappingURL=MessageDelimiter.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/MessageDelimiter.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import React, { WeakValidationMap } from 'react';\nimport {\n describe,\n useGetGlobalAttributes,\n useValidateTypescriptPropTypes,\n useMemoMergePropsWithDefault,\n} from '@elliemae/ds-utilities';\nimport { Wrapper, Line, Text } from './styled';\nimport { defaultProps, messageDelimiterProps, DSChatMessageDelimeterT } from './react-desc-prop-types';\n\nconst MessageDelimiter: React.ComponentType<DSChatMessageDelimeterT.Props> = (props) => {\n const propsWithDefault = useMemoMergePropsWithDefault<DSChatMessageDelimeterT.Props>(props, defaultProps);\n useValidateTypescriptPropTypes(propsWithDefault, messageDelimiterProps);\n const globalAttrs = useGetGlobalAttributes(propsWithDefault);\n const { title, size, verticalMargin } = propsWithDefault;\n return (\n <div {...globalAttrs}>\n <Wrapper cols={['1fr', 'auto', '1fr']}>\n <Line />\n <Text size={size} verticalMargin={verticalMargin} data-testid=\"chat-message-delimiter-title\">\n {title}\n </Text>\n <Line />\n </Wrapper>\n </div>\n );\n};\n\nMessageDelimiter.propTypes = messageDelimiterProps as WeakValidationMap<unknown>;\nMessageDelimiter.displayName = 'MessageDelimiter';\nconst MessageDelimiterWithSchema = describe(MessageDelimiter);\nMessageDelimiterWithSchema.propTypes = messageDelimiterProps as WeakValidationMap<unknown>;\n\nexport { MessageDelimiter, MessageDelimiterWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB;AACA,0BAKO;AACP,oBAAoC;AACpC,mCAA6E;AAE7E,MAAM,mBAAuE,CAAC,UAAU;AACtF,QAAM,uBAAmB,kDAA4D,OAAO,yCAAY;AACxG,0DAA+B,kBAAkB,kDAAqB;AACtE,QAAM,kBAAc,4CAAuB,gBAAgB;AAC3D,QAAM,EAAE,OAAO,MAAM,eAAe,IAAI;AACxC,SACE,4CAAC;AAAA,IAAK,GAAG;AAAA,IACP,uDAAC;AAAA,MAAQ,MAAM,CAAC,OAAO,QAAQ,KAAK;AAAA,MAClC;AAAA,oDAAC,sBAAK;AAAA,QACN,4CAAC;AAAA,UAAK;AAAA,UAAY;AAAA,UAAgC,eAAY;AAAA,UAC3D;AAAA,SACH;AAAA,QACA,4CAAC,sBAAK;AAAA;AAAA,KACR;AAAA,GACF;AAEJ;AAEA,iBAAiB,YAAY;AAC7B,iBAAiB,cAAc;AAC/B,MAAM,iCAA6B,8BAAS,gBAAgB;AAC5D,2BAA2B,YAAY;",
6
+ "names": []
7
+ }
@@ -0,0 +1,35 @@
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
+ DSChatMessageDelimeterT: () => import_react_desc_prop_types.DSChatMessageDelimeterT,
28
+ MessageDelimiter: () => import_MessageDelimiter.MessageDelimiter,
29
+ MessageDelimiterWithSchema: () => import_MessageDelimiter.MessageDelimiterWithSchema
30
+ });
31
+ module.exports = __toCommonJS(src_exports);
32
+ var React = __toESM(require("react"));
33
+ var import_MessageDelimiter = require("./MessageDelimiter");
34
+ var import_react_desc_prop_types = require("./react-desc-prop-types");
35
+ //# 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 { MessageDelimiter, MessageDelimiterWithSchema } from './MessageDelimiter';\nexport { DSChatMessageDelimeterT } from './react-desc-prop-types';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAA6D;AAC7D,mCAAwC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,45 @@
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
+ messageDelimiterProps: () => messageDelimiterProps
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
+ size: "s",
35
+ verticalMargin: "0px"
36
+ };
37
+ const messageDelimiterProps = {
38
+ ...import_ds_utilities.globalAttributesPropTypes,
39
+ title: import_ds_utilities.PropTypes.string.isRequired.description("Text to display in the delimiter"),
40
+ size: import_ds_utilities.PropTypes.oneOf(["s", "l"]).description("size of the delimiter").defaultValue("s"),
41
+ verticalMargin: import_ds_utilities.PropTypes.oneOfType([import_ds_utilities.PropTypes.string, import_ds_utilities.PropTypes.number]).description(
42
+ "Configurable css vertical margin property for flexibilty"
43
+ )
44
+ };
45
+ //# 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, globalAttributesPropTypes } from '@elliemae/ds-utilities';\n\nexport declare namespace DSChatMessageDelimeterT {\n export interface RequiredProps {\n title: string;\n }\n\n export interface DefaultProps {\n size: 's' | 'l';\n verticalMargin: number | string;\n }\n\n export interface Props extends DefaultProps, RequiredProps {}\n}\n\nexport const defaultProps: DSChatMessageDelimeterT.DefaultProps = {\n size: 's',\n verticalMargin: '0px',\n};\n\nexport const messageDelimiterProps = {\n ...globalAttributesPropTypes,\n title: PropTypes.string.isRequired.description('Text to display in the delimiter'),\n size: PropTypes.oneOf(['s', 'l']).description('size of the delimiter').defaultValue('s'),\n verticalMargin: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).description(\n 'Configurable css vertical margin property for flexibilty',\n ),\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,0BAAqD;AAe9C,MAAM,eAAqD;AAAA,EAChE,MAAM;AAAA,EACN,gBAAgB;AAClB;AAEO,MAAM,wBAAwB;AAAA,EACnC,GAAG;AAAA,EACH,OAAO,8BAAU,OAAO,WAAW,YAAY,kCAAkC;AAAA,EACjF,MAAM,8BAAU,MAAM,CAAC,KAAK,GAAG,CAAC,EAAE,YAAY,uBAAuB,EAAE,aAAa,GAAG;AAAA,EACvF,gBAAgB,8BAAU,UAAU,CAAC,8BAAU,QAAQ,8BAAU,MAAM,CAAC,EAAE;AAAA,IACxE;AAAA,EACF;AACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,50 @@
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
+ Line: () => Line,
28
+ Text: () => Text,
29
+ Wrapper: () => Wrapper
30
+ });
31
+ module.exports = __toCommonJS(styled_exports);
32
+ var React = __toESM(require("react"));
33
+ var import_ds_grid = require("@elliemae/ds-grid");
34
+ var import_ds_system = require("@elliemae/ds-system");
35
+ const Wrapper = (0, import_ds_system.styled)(import_ds_grid.Grid)`
36
+ align-items: center;
37
+ justify-content: center;
38
+ width: 100%;
39
+ min-height: 8px;
40
+ `;
41
+ const Line = import_ds_system.styled.span`
42
+ border-top: 1px solid ${(props) => props.theme.colors.neutral["400"]};
43
+ `;
44
+ const Text = import_ds_system.styled.p`
45
+ color: ${(props) => props.theme.colors.neutral["600"]};
46
+ font-size: ${(props) => props.size === "s" ? "12px" : "14px"};
47
+ font-weight: ${(props) => props.theme.fontWeights.semibold};
48
+ ${({ verticalMargin }) => verticalMargin !== void 0 && `margin: ${verticalMargin}px 8px`};
49
+ `;
50
+ //# 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 { Grid } from '@elliemae/ds-grid';\nimport { styled } from '@elliemae/ds-system';\nimport { DSChatMessageDelimeterT } from './react-desc-prop-types';\n\nexport const Wrapper = styled(Grid)`\n align-items: center;\n justify-content: center;\n width: 100%;\n min-height: 8px;\n`;\n\nexport const Line = styled.span`\n border-top: 1px solid ${(props) => props.theme.colors.neutral['400']};\n`;\n\nexport const Text = styled.p<DSChatMessageDelimeterT.DefaultProps>`\n color: ${(props) => props.theme.colors.neutral['600']};\n font-size: ${(props) => (props.size === 's' ? '12px' : '14px')};\n font-weight: ${(props) => props.theme.fontWeights.semibold};\n ${({ verticalMargin }) => verticalMargin !== undefined && `margin: ${verticalMargin}px 8px`};\n`;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,qBAAqB;AACrB,uBAAuB;AAGhB,MAAM,cAAU,yBAAO,mBAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAO3B,MAAM,OAAO,wBAAO;AAAA,0BACD,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ;AAAA;AAGzD,MAAM,OAAO,wBAAO;AAAA,WAChB,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ;AAAA,eAClC,CAAC,UAAW,MAAM,SAAS,MAAM,SAAS;AAAA,iBACxC,CAAC,UAAU,MAAM,MAAM,YAAY;AAAA,IAChD,CAAC,EAAE,eAAe,MAAM,mBAAmB,UAAa,WAAW;AAAA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,41 @@
1
+ import * as React from "react";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import {
4
+ describe,
5
+ useGetGlobalAttributes,
6
+ useValidateTypescriptPropTypes,
7
+ useMemoMergePropsWithDefault
8
+ } from "@elliemae/ds-utilities";
9
+ import { Wrapper, Line, Text } from "./styled";
10
+ import { defaultProps, messageDelimiterProps } from "./react-desc-prop-types";
11
+ const MessageDelimiter = (props) => {
12
+ const propsWithDefault = useMemoMergePropsWithDefault(props, defaultProps);
13
+ useValidateTypescriptPropTypes(propsWithDefault, messageDelimiterProps);
14
+ const globalAttrs = useGetGlobalAttributes(propsWithDefault);
15
+ const { title, size, verticalMargin } = propsWithDefault;
16
+ return /* @__PURE__ */ jsx("div", {
17
+ ...globalAttrs,
18
+ children: /* @__PURE__ */ jsxs(Wrapper, {
19
+ cols: ["1fr", "auto", "1fr"],
20
+ children: [
21
+ /* @__PURE__ */ jsx(Line, {}),
22
+ /* @__PURE__ */ jsx(Text, {
23
+ size,
24
+ verticalMargin,
25
+ "data-testid": "chat-message-delimiter-title",
26
+ children: title
27
+ }),
28
+ /* @__PURE__ */ jsx(Line, {})
29
+ ]
30
+ })
31
+ });
32
+ };
33
+ MessageDelimiter.propTypes = messageDelimiterProps;
34
+ MessageDelimiter.displayName = "MessageDelimiter";
35
+ const MessageDelimiterWithSchema = describe(MessageDelimiter);
36
+ MessageDelimiterWithSchema.propTypes = messageDelimiterProps;
37
+ export {
38
+ MessageDelimiter,
39
+ MessageDelimiterWithSchema
40
+ };
41
+ //# sourceMappingURL=MessageDelimiter.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/MessageDelimiter.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { WeakValidationMap } from 'react';\nimport {\n describe,\n useGetGlobalAttributes,\n useValidateTypescriptPropTypes,\n useMemoMergePropsWithDefault,\n} from '@elliemae/ds-utilities';\nimport { Wrapper, Line, Text } from './styled';\nimport { defaultProps, messageDelimiterProps, DSChatMessageDelimeterT } from './react-desc-prop-types';\n\nconst MessageDelimiter: React.ComponentType<DSChatMessageDelimeterT.Props> = (props) => {\n const propsWithDefault = useMemoMergePropsWithDefault<DSChatMessageDelimeterT.Props>(props, defaultProps);\n useValidateTypescriptPropTypes(propsWithDefault, messageDelimiterProps);\n const globalAttrs = useGetGlobalAttributes(propsWithDefault);\n const { title, size, verticalMargin } = propsWithDefault;\n return (\n <div {...globalAttrs}>\n <Wrapper cols={['1fr', 'auto', '1fr']}>\n <Line />\n <Text size={size} verticalMargin={verticalMargin} data-testid=\"chat-message-delimiter-title\">\n {title}\n </Text>\n <Line />\n </Wrapper>\n </div>\n );\n};\n\nMessageDelimiter.propTypes = messageDelimiterProps as WeakValidationMap<unknown>;\nMessageDelimiter.displayName = 'MessageDelimiter';\nconst MessageDelimiterWithSchema = describe(MessageDelimiter);\nMessageDelimiterWithSchema.propTypes = messageDelimiterProps as WeakValidationMap<unknown>;\n\nexport { MessageDelimiter, MessageDelimiterWithSchema };\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB;AACA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,SAAS,MAAM,YAAY;AACpC,SAAS,cAAc,6BAAsD;AAE7E,MAAM,mBAAuE,CAAC,UAAU;AACtF,QAAM,mBAAmB,6BAA4D,OAAO,YAAY;AACxG,iCAA+B,kBAAkB,qBAAqB;AACtE,QAAM,cAAc,uBAAuB,gBAAgB;AAC3D,QAAM,EAAE,OAAO,MAAM,eAAe,IAAI;AACxC,SACE,oBAAC;AAAA,IAAK,GAAG;AAAA,IACP,+BAAC;AAAA,MAAQ,MAAM,CAAC,OAAO,QAAQ,KAAK;AAAA,MAClC;AAAA,4BAAC,QAAK;AAAA,QACN,oBAAC;AAAA,UAAK;AAAA,UAAY;AAAA,UAAgC,eAAY;AAAA,UAC3D;AAAA,SACH;AAAA,QACA,oBAAC,QAAK;AAAA;AAAA,KACR;AAAA,GACF;AAEJ;AAEA,iBAAiB,YAAY;AAC7B,iBAAiB,cAAc;AAC/B,MAAM,6BAA6B,SAAS,gBAAgB;AAC5D,2BAA2B,YAAY;",
6
+ "names": []
7
+ }
@@ -0,0 +1,9 @@
1
+ import * as React from "react";
2
+ import { MessageDelimiter, MessageDelimiterWithSchema } from "./MessageDelimiter";
3
+ import { DSChatMessageDelimeterT } from "./react-desc-prop-types";
4
+ export {
5
+ DSChatMessageDelimeterT,
6
+ MessageDelimiter,
7
+ MessageDelimiterWithSchema
8
+ };
9
+ //# 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 { MessageDelimiter, MessageDelimiterWithSchema } from './MessageDelimiter';\nexport { DSChatMessageDelimeterT } from './react-desc-prop-types';\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,kBAAkB,kCAAkC;AAC7D,SAAS,+BAA+B;",
6
+ "names": []
7
+ }
@@ -0,0 +1,19 @@
1
+ import * as React from "react";
2
+ import { PropTypes, globalAttributesPropTypes } from "@elliemae/ds-utilities";
3
+ const defaultProps = {
4
+ size: "s",
5
+ verticalMargin: "0px"
6
+ };
7
+ const messageDelimiterProps = {
8
+ ...globalAttributesPropTypes,
9
+ title: PropTypes.string.isRequired.description("Text to display in the delimiter"),
10
+ size: PropTypes.oneOf(["s", "l"]).description("size of the delimiter").defaultValue("s"),
11
+ verticalMargin: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).description(
12
+ "Configurable css vertical margin property for flexibilty"
13
+ )
14
+ };
15
+ export {
16
+ defaultProps,
17
+ messageDelimiterProps
18
+ };
19
+ //# 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, globalAttributesPropTypes } from '@elliemae/ds-utilities';\n\nexport declare namespace DSChatMessageDelimeterT {\n export interface RequiredProps {\n title: string;\n }\n\n export interface DefaultProps {\n size: 's' | 'l';\n verticalMargin: number | string;\n }\n\n export interface Props extends DefaultProps, RequiredProps {}\n}\n\nexport const defaultProps: DSChatMessageDelimeterT.DefaultProps = {\n size: 's',\n verticalMargin: '0px',\n};\n\nexport const messageDelimiterProps = {\n ...globalAttributesPropTypes,\n title: PropTypes.string.isRequired.description('Text to display in the delimiter'),\n size: PropTypes.oneOf(['s', 'l']).description('size of the delimiter').defaultValue('s'),\n verticalMargin: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).description(\n 'Configurable css vertical margin property for flexibilty',\n ),\n};\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,WAAW,iCAAiC;AAe9C,MAAM,eAAqD;AAAA,EAChE,MAAM;AAAA,EACN,gBAAgB;AAClB;AAEO,MAAM,wBAAwB;AAAA,EACnC,GAAG;AAAA,EACH,OAAO,UAAU,OAAO,WAAW,YAAY,kCAAkC;AAAA,EACjF,MAAM,UAAU,MAAM,CAAC,KAAK,GAAG,CAAC,EAAE,YAAY,uBAAuB,EAAE,aAAa,GAAG;AAAA,EACvF,gBAAgB,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,MAAM,CAAC,EAAE;AAAA,IACxE;AAAA,EACF;AACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,24 @@
1
+ import * as React from "react";
2
+ import { Grid } from "@elliemae/ds-grid";
3
+ import { styled } from "@elliemae/ds-system";
4
+ const Wrapper = styled(Grid)`
5
+ align-items: center;
6
+ justify-content: center;
7
+ width: 100%;
8
+ min-height: 8px;
9
+ `;
10
+ const Line = styled.span`
11
+ border-top: 1px solid ${(props) => props.theme.colors.neutral["400"]};
12
+ `;
13
+ const Text = styled.p`
14
+ color: ${(props) => props.theme.colors.neutral["600"]};
15
+ font-size: ${(props) => props.size === "s" ? "12px" : "14px"};
16
+ font-weight: ${(props) => props.theme.fontWeights.semibold};
17
+ ${({ verticalMargin }) => verticalMargin !== void 0 && `margin: ${verticalMargin}px 8px`};
18
+ `;
19
+ export {
20
+ Line,
21
+ Text,
22
+ Wrapper
23
+ };
24
+ //# 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 { Grid } from '@elliemae/ds-grid';\nimport { styled } from '@elliemae/ds-system';\nimport { DSChatMessageDelimeterT } from './react-desc-prop-types';\n\nexport const Wrapper = styled(Grid)`\n align-items: center;\n justify-content: center;\n width: 100%;\n min-height: 8px;\n`;\n\nexport const Line = styled.span`\n border-top: 1px solid ${(props) => props.theme.colors.neutral['400']};\n`;\n\nexport const Text = styled.p<DSChatMessageDelimeterT.DefaultProps>`\n color: ${(props) => props.theme.colors.neutral['600']};\n font-size: ${(props) => (props.size === 's' ? '12px' : '14px')};\n font-weight: ${(props) => props.theme.fontWeights.semibold};\n ${({ verticalMargin }) => verticalMargin !== undefined && `margin: ${verticalMargin}px 8px`};\n`;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,YAAY;AACrB,SAAS,cAAc;AAGhB,MAAM,UAAU,OAAO,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAO3B,MAAM,OAAO,OAAO;AAAA,0BACD,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ;AAAA;AAGzD,MAAM,OAAO,OAAO;AAAA,WAChB,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ;AAAA,eAClC,CAAC,UAAW,MAAM,SAAS,MAAM,SAAS;AAAA,iBACxC,CAAC,UAAU,MAAM,MAAM,YAAY;AAAA,IAChD,CAAC,EAAE,eAAe,MAAM,mBAAmB,UAAa,WAAW;AAAA;",
6
+ "names": []
7
+ }
package/package.json ADDED
@@ -0,0 +1,75 @@
1
+ {
2
+ "name": "@elliemae/ds-chat-message-delimeter",
3
+ "version": "3.6.0-next.0",
4
+ "license": "MIT",
5
+ "description": "ICE MT - Dimsum - Chat Message Delimeter",
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
+ "./MessageDelimeter": {
26
+ "import": "./dist/esm/MessageDelimeter.js",
27
+ "require": "./dist/cjs/MessageDelimeter.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-system": "3.6.0-next.0",
52
+ "@elliemae/ds-utilities": "3.6.0-next.0"
53
+ },
54
+ "devDependencies": {
55
+ "@testing-library/dom": "~8.13.0",
56
+ "@testing-library/jest-dom": "~5.16.4",
57
+ "@testing-library/react": "~12.1.3",
58
+ "@testing-library/user-event": "~13.5.0",
59
+ "styled-components": "~5.3.5"
60
+ },
61
+ "peerDependencies": {
62
+ "lodash": "^4.17.21",
63
+ "react": "^17.0.2",
64
+ "react-dom": "^17.0.2",
65
+ "styled-components": "^5.3.5"
66
+ },
67
+ "scripts": {
68
+ "test": "node ../../scripts/testing/test.mjs",
69
+ "lint": "node ../../scripts/lint.mjs",
70
+ "dts": "node ../../scripts/dts.mjs",
71
+ "dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
72
+ "build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs",
73
+ "checkDeps": "npx -yes ../ds-codemods check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
74
+ }
75
+ }