@elliemae/ds-chat-card 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.
- package/dist/cjs/ChatCard.js +75 -0
- package/dist/cjs/ChatCard.js.map +7 -0
- package/dist/cjs/ChatCardDataTestIds.js +38 -0
- package/dist/cjs/ChatCardDataTestIds.js.map +7 -0
- package/dist/cjs/index.js +35 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/react-desc-prop-types.js +43 -0
- package/dist/cjs/react-desc-prop-types.js.map +7 -0
- package/dist/cjs/styled.js +68 -0
- package/dist/cjs/styled.js.map +7 -0
- package/dist/esm/ChatCard.js +49 -0
- package/dist/esm/ChatCard.js.map +7 -0
- package/dist/esm/ChatCardDataTestIds.js +12 -0
- package/dist/esm/ChatCardDataTestIds.js.map +7 -0
- package/dist/esm/index.js +9 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/react-desc-prop-types.js +17 -0
- package/dist/esm/react-desc-prop-types.js.map +7 -0
- package/dist/esm/styled.js +42 -0
- package/dist/esm/styled.js.map +7 -0
- package/package.json +76 -0
|
@@ -0,0 +1,75 @@
|
|
|
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 ChatCard_exports = {};
|
|
26
|
+
__export(ChatCard_exports, {
|
|
27
|
+
ChatCard: () => ChatCard,
|
|
28
|
+
ChatCardWithSchema: () => ChatCardWithSchema
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(ChatCard_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_ds_truncated_tooltip_text = require("@elliemae/ds-truncated-tooltip-text");
|
|
35
|
+
var import_react_desc_prop_types = require("./react-desc-prop-types");
|
|
36
|
+
var import_styled = require("./styled");
|
|
37
|
+
var import_ChatCardDataTestIds = require("./ChatCardDataTestIds");
|
|
38
|
+
const ChatCard = (props) => {
|
|
39
|
+
const propsWithDefault = (0, import_ds_utilities.useMemoMergePropsWithDefault)(props, import_react_desc_prop_types.defaultProps);
|
|
40
|
+
(0, import_ds_utilities.useValidateTypescriptPropTypes)(propsWithDefault, import_react_desc_prop_types.propTypes);
|
|
41
|
+
const { title, content, time, rightAddon } = props;
|
|
42
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styled.Wrapper, {
|
|
43
|
+
cols: ["1fr", "auto"],
|
|
44
|
+
"data-testid": import_ChatCardDataTestIds.ChatCardDataTestIds.CARD_WRAPPER,
|
|
45
|
+
children: [
|
|
46
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styled.MainContent, {
|
|
47
|
+
children: [
|
|
48
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.Title, {
|
|
49
|
+
"data-testid": import_ChatCardDataTestIds.ChatCardDataTestIds.CARD_TITLE,
|
|
50
|
+
children: title
|
|
51
|
+
}),
|
|
52
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.Content, {
|
|
53
|
+
"data-testid": import_ChatCardDataTestIds.ChatCardDataTestIds.CARD_CONTENT,
|
|
54
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_truncated_tooltip_text.SimpleTruncatedTooltipText, {
|
|
55
|
+
value: content
|
|
56
|
+
})
|
|
57
|
+
}),
|
|
58
|
+
time && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.Time, {
|
|
59
|
+
"data-testid": import_ChatCardDataTestIds.ChatCardDataTestIds.CARD_TIME,
|
|
60
|
+
children: time
|
|
61
|
+
})
|
|
62
|
+
]
|
|
63
|
+
}),
|
|
64
|
+
rightAddon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.RightAddon, {
|
|
65
|
+
"data-testid": import_ChatCardDataTestIds.ChatCardDataTestIds.CARD_RIGHT_ADDON,
|
|
66
|
+
children: rightAddon
|
|
67
|
+
})
|
|
68
|
+
]
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
ChatCard.propTypes = import_react_desc_prop_types.propTypes;
|
|
72
|
+
ChatCard.displayName = "ChatCard";
|
|
73
|
+
const ChatCardWithSchema = (0, import_ds_utilities.describe)(ChatCard);
|
|
74
|
+
ChatCardWithSchema.propTypes = import_react_desc_prop_types.propTypes;
|
|
75
|
+
//# sourceMappingURL=ChatCard.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/ChatCard.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import React, { WeakValidationMap } from 'react';\nimport { describe, useValidateTypescriptPropTypes, useMemoMergePropsWithDefault } from '@elliemae/ds-utilities';\n\nimport { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\nimport { propTypes, DSChatCardT, defaultProps } from './react-desc-prop-types';\nimport { Wrapper, MainContent, Title, Content, Time, RightAddon } from './styled';\nimport { ChatCardDataTestIds } from './ChatCardDataTestIds';\n\nconst ChatCard: React.ComponentType<DSChatCardT.Props> = (props) => {\n const propsWithDefault = useMemoMergePropsWithDefault(props, defaultProps);\n useValidateTypescriptPropTypes(propsWithDefault, propTypes);\n\n const { title, content, time, rightAddon } = props;\n return (\n <Wrapper cols={['1fr', 'auto']} data-testid={ChatCardDataTestIds.CARD_WRAPPER}>\n <MainContent>\n <Title data-testid={ChatCardDataTestIds.CARD_TITLE}>{title}</Title>\n <Content data-testid={ChatCardDataTestIds.CARD_CONTENT}>\n <SimpleTruncatedTooltipText value={content} />\n </Content>\n {time && <Time data-testid={ChatCardDataTestIds.CARD_TIME}>{time}</Time>}\n </MainContent>\n {rightAddon && <RightAddon data-testid={ChatCardDataTestIds.CARD_RIGHT_ADDON}>{rightAddon}</RightAddon>}\n </Wrapper>\n );\n};\n\nChatCard.propTypes = propTypes as WeakValidationMap<unknown>;\nChatCard.displayName = 'ChatCard';\nconst ChatCardWithSchema = describe(ChatCard);\nChatCardWithSchema.propTypes = propTypes as WeakValidationMap<unknown>;\n\nexport { ChatCard, ChatCardWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB;AACA,0BAAuF;AAEvF,uCAA2C;AAC3C,mCAAqD;AACrD,oBAAuE;AACvE,iCAAoC;AAEpC,MAAM,WAAmD,CAAC,UAAU;AAClE,QAAM,uBAAmB,kDAA6B,OAAO,yCAAY;AACzE,0DAA+B,kBAAkB,sCAAS;AAE1D,QAAM,EAAE,OAAO,SAAS,MAAM,WAAW,IAAI;AAC7C,SACE,6CAAC;AAAA,IAAQ,MAAM,CAAC,OAAO,MAAM;AAAA,IAAG,eAAa,+CAAoB;AAAA,IAC/D;AAAA,mDAAC;AAAA,QACC;AAAA,sDAAC;AAAA,YAAM,eAAa,+CAAoB;AAAA,YAAa;AAAA,WAAM;AAAA,UAC3D,4CAAC;AAAA,YAAQ,eAAa,+CAAoB;AAAA,YACxC,sDAAC;AAAA,cAA2B,OAAO;AAAA,aAAS;AAAA,WAC9C;AAAA,UACC,QAAQ,4CAAC;AAAA,YAAK,eAAa,+CAAoB;AAAA,YAAY;AAAA,WAAK;AAAA;AAAA,OACnE;AAAA,MACC,cAAc,4CAAC;AAAA,QAAW,eAAa,+CAAoB;AAAA,QAAmB;AAAA,OAAW;AAAA;AAAA,GAC5F;AAEJ;AAEA,SAAS,YAAY;AACrB,SAAS,cAAc;AACvB,MAAM,yBAAqB,8BAAS,QAAQ;AAC5C,mBAAmB,YAAY;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 ChatCardDataTestIds_exports = {};
|
|
26
|
+
__export(ChatCardDataTestIds_exports, {
|
|
27
|
+
ChatCardDataTestIds: () => ChatCardDataTestIds
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(ChatCardDataTestIds_exports);
|
|
30
|
+
var React = __toESM(require("react"));
|
|
31
|
+
const ChatCardDataTestIds = {
|
|
32
|
+
CARD_TITLE: "chat-card-title",
|
|
33
|
+
CARD_WRAPPER: "chat-card-wrapper",
|
|
34
|
+
CARD_TIME: "chat-card-time",
|
|
35
|
+
CARD_RIGHT_ADDON: "chat-right-addon",
|
|
36
|
+
CARD_CONTENT: "chat-card-content"
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=ChatCardDataTestIds.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/ChatCardDataTestIds.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["export const ChatCardDataTestIds = {\n CARD_TITLE: 'chat-card-title',\n CARD_WRAPPER: 'chat-card-wrapper',\n CARD_TIME: 'chat-card-time',\n CARD_RIGHT_ADDON: 'chat-right-addon',\n CARD_CONTENT: 'chat-card-content',\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAhB,MAAM,sBAAsB;AAAA,EACjC,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,WAAW;AAAA,EACX,kBAAkB;AAAA,EAClB,cAAc;AAChB;",
|
|
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
|
+
ChatCard: () => import_ChatCard.ChatCard,
|
|
28
|
+
ChatCardDataTestIds: () => import_ChatCardDataTestIds.ChatCardDataTestIds,
|
|
29
|
+
ChatCardWithSchema: () => import_ChatCard.ChatCardWithSchema
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(src_exports);
|
|
32
|
+
var React = __toESM(require("react"));
|
|
33
|
+
var import_ChatCard = require("./ChatCard");
|
|
34
|
+
var import_ChatCardDataTestIds = require("./ChatCardDataTestIds");
|
|
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 { ChatCard, ChatCardWithSchema } from './ChatCard';\nexport { ChatCardDataTestIds } from './ChatCardDataTestIds';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,sBAA6C;AAC7C,iCAAoC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
propTypes: () => propTypes
|
|
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
|
+
content: "",
|
|
35
|
+
time: ""
|
|
36
|
+
};
|
|
37
|
+
const propTypes = {
|
|
38
|
+
title: import_ds_utilities.PropTypes.string.isRequired.description(`Card's title`),
|
|
39
|
+
content: import_ds_utilities.PropTypes.string.description(`Card's content`),
|
|
40
|
+
time: import_ds_utilities.PropTypes.string.description("Time"),
|
|
41
|
+
rightAddon: import_ds_utilities.PropTypes.element.description("Right addon, badge or icon")
|
|
42
|
+
};
|
|
43
|
+
//# 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 DSChatCardT {\n export interface RequiredProps {\n title: string;\n }\n\n export interface DefaultProps {\n content: string;\n time: string;\n }\n\n export interface OptionalProps {\n rightAddon?: JSX.Element;\n }\n\n export interface Props extends DefaultProps, RequiredProps, OptionalProps {}\n}\n\nexport const defaultProps: DSChatCardT.DefaultProps = {\n content: '',\n time: '',\n};\n\nexport const propTypes = {\n title: PropTypes.string.isRequired.description(`Card's title`),\n content: PropTypes.string.description(`Card's content`),\n time: PropTypes.string.description('Time'),\n rightAddon: PropTypes.element.description('Right addon, badge or icon'),\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,0BAA0B;AAmBnB,MAAM,eAAyC;AAAA,EACpD,SAAS;AAAA,EACT,MAAM;AACR;AAEO,MAAM,YAAY;AAAA,EACvB,OAAO,8BAAU,OAAO,WAAW,YAAY,cAAc;AAAA,EAC7D,SAAS,8BAAU,OAAO,YAAY,gBAAgB;AAAA,EACtD,MAAM,8BAAU,OAAO,YAAY,MAAM;AAAA,EACzC,YAAY,8BAAU,QAAQ,YAAY,4BAA4B;AACxE;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
Content: () => Content,
|
|
28
|
+
MainContent: () => MainContent,
|
|
29
|
+
RightAddon: () => RightAddon,
|
|
30
|
+
Time: () => Time,
|
|
31
|
+
Title: () => Title,
|
|
32
|
+
Wrapper: () => Wrapper
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(styled_exports);
|
|
35
|
+
var React = __toESM(require("react"));
|
|
36
|
+
var import_ds_system = require("@elliemae/ds-system");
|
|
37
|
+
var import_ds_grid = require("@elliemae/ds-grid");
|
|
38
|
+
const Wrapper = (0, import_ds_system.styled)(import_ds_grid.Grid)`
|
|
39
|
+
min-width: 248px;
|
|
40
|
+
border: 1px;
|
|
41
|
+
border-bottom: 1px solid #ccc;
|
|
42
|
+
padding: 12px 12px;
|
|
43
|
+
`;
|
|
44
|
+
const MainContent = import_ds_system.styled.div``;
|
|
45
|
+
const Title = import_ds_system.styled.p`
|
|
46
|
+
font-size: 16px;
|
|
47
|
+
font-weight: 600;
|
|
48
|
+
margin: 0;
|
|
49
|
+
`;
|
|
50
|
+
const Content = import_ds_system.styled.p`
|
|
51
|
+
font-size: 12px;
|
|
52
|
+
font-weight: 400;
|
|
53
|
+
line-height: 1;
|
|
54
|
+
margin: 0;
|
|
55
|
+
`;
|
|
56
|
+
const Time = import_ds_system.styled.p`
|
|
57
|
+
font-size: 12px;
|
|
58
|
+
font-weight: 100;
|
|
59
|
+
margin: 0;
|
|
60
|
+
margin-top: 8px;
|
|
61
|
+
font-weight: ${(props) => props.theme.fontWeights.regular};
|
|
62
|
+
color: ${(props) => props.theme.colors.neutral["500"]};
|
|
63
|
+
`;
|
|
64
|
+
const RightAddon = import_ds_system.styled.div`
|
|
65
|
+
height: fit-content;
|
|
66
|
+
margin-left: 12px;
|
|
67
|
+
`;
|
|
68
|
+
//# 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 Wrapper = styled(Grid)`\n min-width: 248px;\n border: 1px;\n border-bottom: 1px solid #ccc;\n padding: 12px 12px;\n`;\n\nexport const MainContent = styled.div``;\n\nexport const Title = styled.p`\n font-size: 16px;\n font-weight: 600;\n margin: 0;\n`;\n\nexport const Content = styled.p`\n font-size: 12px;\n font-weight: 400;\n line-height: 1;\n margin: 0;\n`;\n\nexport const Time = styled.p`\n font-size: 12px;\n font-weight: 100;\n margin: 0;\n margin-top: 8px;\n font-weight: ${(props) => props.theme.fontWeights.regular};\n color: ${(props) => props.theme.colors.neutral['500']};\n`;\n\nexport const RightAddon = styled.div`\n height: fit-content;\n margin-left: 12px;\n`;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAuB;AACvB,qBAAqB;AAEd,MAAM,cAAU,yBAAO,mBAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAO3B,MAAM,cAAc,wBAAO;AAE3B,MAAM,QAAQ,wBAAO;AAAA;AAAA;AAAA;AAAA;AAMrB,MAAM,UAAU,wBAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAOvB,MAAM,OAAO,wBAAO;AAAA;AAAA;AAAA;AAAA;AAAA,iBAKV,CAAC,UAAU,MAAM,MAAM,YAAY;AAAA,WACzC,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ;AAAA;AAG1C,MAAM,aAAa,wBAAO;AAAA;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { describe, useValidateTypescriptPropTypes, useMemoMergePropsWithDefault } from "@elliemae/ds-utilities";
|
|
4
|
+
import { SimpleTruncatedTooltipText } from "@elliemae/ds-truncated-tooltip-text";
|
|
5
|
+
import { propTypes, defaultProps } from "./react-desc-prop-types";
|
|
6
|
+
import { Wrapper, MainContent, Title, Content, Time, RightAddon } from "./styled";
|
|
7
|
+
import { ChatCardDataTestIds } from "./ChatCardDataTestIds";
|
|
8
|
+
const ChatCard = (props) => {
|
|
9
|
+
const propsWithDefault = useMemoMergePropsWithDefault(props, defaultProps);
|
|
10
|
+
useValidateTypescriptPropTypes(propsWithDefault, propTypes);
|
|
11
|
+
const { title, content, time, rightAddon } = props;
|
|
12
|
+
return /* @__PURE__ */ jsxs(Wrapper, {
|
|
13
|
+
cols: ["1fr", "auto"],
|
|
14
|
+
"data-testid": ChatCardDataTestIds.CARD_WRAPPER,
|
|
15
|
+
children: [
|
|
16
|
+
/* @__PURE__ */ jsxs(MainContent, {
|
|
17
|
+
children: [
|
|
18
|
+
/* @__PURE__ */ jsx(Title, {
|
|
19
|
+
"data-testid": ChatCardDataTestIds.CARD_TITLE,
|
|
20
|
+
children: title
|
|
21
|
+
}),
|
|
22
|
+
/* @__PURE__ */ jsx(Content, {
|
|
23
|
+
"data-testid": ChatCardDataTestIds.CARD_CONTENT,
|
|
24
|
+
children: /* @__PURE__ */ jsx(SimpleTruncatedTooltipText, {
|
|
25
|
+
value: content
|
|
26
|
+
})
|
|
27
|
+
}),
|
|
28
|
+
time && /* @__PURE__ */ jsx(Time, {
|
|
29
|
+
"data-testid": ChatCardDataTestIds.CARD_TIME,
|
|
30
|
+
children: time
|
|
31
|
+
})
|
|
32
|
+
]
|
|
33
|
+
}),
|
|
34
|
+
rightAddon && /* @__PURE__ */ jsx(RightAddon, {
|
|
35
|
+
"data-testid": ChatCardDataTestIds.CARD_RIGHT_ADDON,
|
|
36
|
+
children: rightAddon
|
|
37
|
+
})
|
|
38
|
+
]
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
ChatCard.propTypes = propTypes;
|
|
42
|
+
ChatCard.displayName = "ChatCard";
|
|
43
|
+
const ChatCardWithSchema = describe(ChatCard);
|
|
44
|
+
ChatCardWithSchema.propTypes = propTypes;
|
|
45
|
+
export {
|
|
46
|
+
ChatCard,
|
|
47
|
+
ChatCardWithSchema
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=ChatCard.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/ChatCard.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { WeakValidationMap } from 'react';\nimport { describe, useValidateTypescriptPropTypes, useMemoMergePropsWithDefault } from '@elliemae/ds-utilities';\n\nimport { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\nimport { propTypes, DSChatCardT, defaultProps } from './react-desc-prop-types';\nimport { Wrapper, MainContent, Title, Content, Time, RightAddon } from './styled';\nimport { ChatCardDataTestIds } from './ChatCardDataTestIds';\n\nconst ChatCard: React.ComponentType<DSChatCardT.Props> = (props) => {\n const propsWithDefault = useMemoMergePropsWithDefault(props, defaultProps);\n useValidateTypescriptPropTypes(propsWithDefault, propTypes);\n\n const { title, content, time, rightAddon } = props;\n return (\n <Wrapper cols={['1fr', 'auto']} data-testid={ChatCardDataTestIds.CARD_WRAPPER}>\n <MainContent>\n <Title data-testid={ChatCardDataTestIds.CARD_TITLE}>{title}</Title>\n <Content data-testid={ChatCardDataTestIds.CARD_CONTENT}>\n <SimpleTruncatedTooltipText value={content} />\n </Content>\n {time && <Time data-testid={ChatCardDataTestIds.CARD_TIME}>{time}</Time>}\n </MainContent>\n {rightAddon && <RightAddon data-testid={ChatCardDataTestIds.CARD_RIGHT_ADDON}>{rightAddon}</RightAddon>}\n </Wrapper>\n );\n};\n\nChatCard.propTypes = propTypes as WeakValidationMap<unknown>;\nChatCard.displayName = 'ChatCard';\nconst ChatCardWithSchema = describe(ChatCard);\nChatCardWithSchema.propTypes = propTypes as WeakValidationMap<unknown>;\n\nexport { ChatCard, ChatCardWithSchema };\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB;AACA,SAAS,UAAU,gCAAgC,oCAAoC;AAEvF,SAAS,kCAAkC;AAC3C,SAAS,WAAwB,oBAAoB;AACrD,SAAS,SAAS,aAAa,OAAO,SAAS,MAAM,kBAAkB;AACvE,SAAS,2BAA2B;AAEpC,MAAM,WAAmD,CAAC,UAAU;AAClE,QAAM,mBAAmB,6BAA6B,OAAO,YAAY;AACzE,iCAA+B,kBAAkB,SAAS;AAE1D,QAAM,EAAE,OAAO,SAAS,MAAM,WAAW,IAAI;AAC7C,SACE,qBAAC;AAAA,IAAQ,MAAM,CAAC,OAAO,MAAM;AAAA,IAAG,eAAa,oBAAoB;AAAA,IAC/D;AAAA,2BAAC;AAAA,QACC;AAAA,8BAAC;AAAA,YAAM,eAAa,oBAAoB;AAAA,YAAa;AAAA,WAAM;AAAA,UAC3D,oBAAC;AAAA,YAAQ,eAAa,oBAAoB;AAAA,YACxC,8BAAC;AAAA,cAA2B,OAAO;AAAA,aAAS;AAAA,WAC9C;AAAA,UACC,QAAQ,oBAAC;AAAA,YAAK,eAAa,oBAAoB;AAAA,YAAY;AAAA,WAAK;AAAA;AAAA,OACnE;AAAA,MACC,cAAc,oBAAC;AAAA,QAAW,eAAa,oBAAoB;AAAA,QAAmB;AAAA,OAAW;AAAA;AAAA,GAC5F;AAEJ;AAEA,SAAS,YAAY;AACrB,SAAS,cAAc;AACvB,MAAM,qBAAqB,SAAS,QAAQ;AAC5C,mBAAmB,YAAY;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
const ChatCardDataTestIds = {
|
|
3
|
+
CARD_TITLE: "chat-card-title",
|
|
4
|
+
CARD_WRAPPER: "chat-card-wrapper",
|
|
5
|
+
CARD_TIME: "chat-card-time",
|
|
6
|
+
CARD_RIGHT_ADDON: "chat-right-addon",
|
|
7
|
+
CARD_CONTENT: "chat-card-content"
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
ChatCardDataTestIds
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=ChatCardDataTestIds.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/ChatCardDataTestIds.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const ChatCardDataTestIds = {\n CARD_TITLE: 'chat-card-title',\n CARD_WRAPPER: 'chat-card-wrapper',\n CARD_TIME: 'chat-card-time',\n CARD_RIGHT_ADDON: 'chat-right-addon',\n CARD_CONTENT: 'chat-card-content',\n};\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAhB,MAAM,sBAAsB;AAAA,EACjC,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,WAAW;AAAA,EACX,kBAAkB;AAAA,EAClB,cAAc;AAChB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -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 { ChatCard, ChatCardWithSchema } from './ChatCard';\nexport { ChatCardDataTestIds } from './ChatCardDataTestIds';\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,UAAU,0BAA0B;AAC7C,SAAS,2BAA2B;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { PropTypes } from "@elliemae/ds-utilities";
|
|
3
|
+
const defaultProps = {
|
|
4
|
+
content: "",
|
|
5
|
+
time: ""
|
|
6
|
+
};
|
|
7
|
+
const propTypes = {
|
|
8
|
+
title: PropTypes.string.isRequired.description(`Card's title`),
|
|
9
|
+
content: PropTypes.string.description(`Card's content`),
|
|
10
|
+
time: PropTypes.string.description("Time"),
|
|
11
|
+
rightAddon: PropTypes.element.description("Right addon, badge or icon")
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
defaultProps,
|
|
15
|
+
propTypes
|
|
16
|
+
};
|
|
17
|
+
//# 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 DSChatCardT {\n export interface RequiredProps {\n title: string;\n }\n\n export interface DefaultProps {\n content: string;\n time: string;\n }\n\n export interface OptionalProps {\n rightAddon?: JSX.Element;\n }\n\n export interface Props extends DefaultProps, RequiredProps, OptionalProps {}\n}\n\nexport const defaultProps: DSChatCardT.DefaultProps = {\n content: '',\n time: '',\n};\n\nexport const propTypes = {\n title: PropTypes.string.isRequired.description(`Card's title`),\n content: PropTypes.string.description(`Card's content`),\n time: PropTypes.string.description('Time'),\n rightAddon: PropTypes.element.description('Right addon, badge or icon'),\n};\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,iBAAiB;AAmBnB,MAAM,eAAyC;AAAA,EACpD,SAAS;AAAA,EACT,MAAM;AACR;AAEO,MAAM,YAAY;AAAA,EACvB,OAAO,UAAU,OAAO,WAAW,YAAY,cAAc;AAAA,EAC7D,SAAS,UAAU,OAAO,YAAY,gBAAgB;AAAA,EACtD,MAAM,UAAU,OAAO,YAAY,MAAM;AAAA,EACzC,YAAY,UAAU,QAAQ,YAAY,4BAA4B;AACxE;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { styled } from "@elliemae/ds-system";
|
|
3
|
+
import { Grid } from "@elliemae/ds-grid";
|
|
4
|
+
const Wrapper = styled(Grid)`
|
|
5
|
+
min-width: 248px;
|
|
6
|
+
border: 1px;
|
|
7
|
+
border-bottom: 1px solid #ccc;
|
|
8
|
+
padding: 12px 12px;
|
|
9
|
+
`;
|
|
10
|
+
const MainContent = styled.div``;
|
|
11
|
+
const Title = styled.p`
|
|
12
|
+
font-size: 16px;
|
|
13
|
+
font-weight: 600;
|
|
14
|
+
margin: 0;
|
|
15
|
+
`;
|
|
16
|
+
const Content = styled.p`
|
|
17
|
+
font-size: 12px;
|
|
18
|
+
font-weight: 400;
|
|
19
|
+
line-height: 1;
|
|
20
|
+
margin: 0;
|
|
21
|
+
`;
|
|
22
|
+
const Time = styled.p`
|
|
23
|
+
font-size: 12px;
|
|
24
|
+
font-weight: 100;
|
|
25
|
+
margin: 0;
|
|
26
|
+
margin-top: 8px;
|
|
27
|
+
font-weight: ${(props) => props.theme.fontWeights.regular};
|
|
28
|
+
color: ${(props) => props.theme.colors.neutral["500"]};
|
|
29
|
+
`;
|
|
30
|
+
const RightAddon = styled.div`
|
|
31
|
+
height: fit-content;
|
|
32
|
+
margin-left: 12px;
|
|
33
|
+
`;
|
|
34
|
+
export {
|
|
35
|
+
Content,
|
|
36
|
+
MainContent,
|
|
37
|
+
RightAddon,
|
|
38
|
+
Time,
|
|
39
|
+
Title,
|
|
40
|
+
Wrapper
|
|
41
|
+
};
|
|
42
|
+
//# 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 Wrapper = styled(Grid)`\n min-width: 248px;\n border: 1px;\n border-bottom: 1px solid #ccc;\n padding: 12px 12px;\n`;\n\nexport const MainContent = styled.div``;\n\nexport const Title = styled.p`\n font-size: 16px;\n font-weight: 600;\n margin: 0;\n`;\n\nexport const Content = styled.p`\n font-size: 12px;\n font-weight: 400;\n line-height: 1;\n margin: 0;\n`;\n\nexport const Time = styled.p`\n font-size: 12px;\n font-weight: 100;\n margin: 0;\n margin-top: 8px;\n font-weight: ${(props) => props.theme.fontWeights.regular};\n color: ${(props) => props.theme.colors.neutral['500']};\n`;\n\nexport const RightAddon = styled.div`\n height: fit-content;\n margin-left: 12px;\n`;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,cAAc;AACvB,SAAS,YAAY;AAEd,MAAM,UAAU,OAAO,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAO3B,MAAM,cAAc,OAAO;AAE3B,MAAM,QAAQ,OAAO;AAAA;AAAA;AAAA;AAAA;AAMrB,MAAM,UAAU,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAOvB,MAAM,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,iBAKV,CAAC,UAAU,MAAM,MAAM,YAAY;AAAA,WACzC,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ;AAAA;AAG1C,MAAM,aAAa,OAAO;AAAA;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@elliemae/ds-chat-card",
|
|
3
|
+
"version": "3.6.0-next.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"description": "ICE MT - Dimsum - Chat Card",
|
|
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
|
+
"./ChatCard": {
|
|
26
|
+
"import": "./dist/esm/ChatCard.js",
|
|
27
|
+
"require": "./dist/cjs/ChatCard.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-truncated-tooltip-text": "3.6.0-next.0",
|
|
53
|
+
"@elliemae/ds-utilities": "3.6.0-next.0"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@testing-library/dom": "~8.13.0",
|
|
57
|
+
"@testing-library/jest-dom": "~5.16.4",
|
|
58
|
+
"@testing-library/react": "~12.1.3",
|
|
59
|
+
"@testing-library/user-event": "~13.5.0",
|
|
60
|
+
"styled-components": "~5.3.5"
|
|
61
|
+
},
|
|
62
|
+
"peerDependencies": {
|
|
63
|
+
"lodash": "^4.17.21",
|
|
64
|
+
"react": "^17.0.2",
|
|
65
|
+
"react-dom": "^17.0.2",
|
|
66
|
+
"styled-components": "^5.3.5"
|
|
67
|
+
},
|
|
68
|
+
"scripts": {
|
|
69
|
+
"test": "node ../../scripts/testing/test.mjs",
|
|
70
|
+
"lint": "node ../../scripts/lint.mjs",
|
|
71
|
+
"dts": "node ../../scripts/dts.mjs",
|
|
72
|
+
"dev": "node ../../scripts/build/build.js -w",
|
|
73
|
+
"build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs",
|
|
74
|
+
"checkDeps": "npx -yes ../ds-codemods check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
|
|
75
|
+
}
|
|
76
|
+
}
|