@elliemae/ds-card-v1 3.21.0-next.1
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/DSCard.js +67 -0
- package/dist/cjs/DSCard.js.map +7 -0
- package/dist/cjs/DSCardBody.js +50 -0
- package/dist/cjs/DSCardBody.js.map +7 -0
- package/dist/cjs/DSCardHeader.js +59 -0
- package/dist/cjs/DSCardHeader.js.map +7 -0
- package/dist/cjs/exported-related/DSCardDataTestId.js +41 -0
- package/dist/cjs/exported-related/DSCardDataTestId.js.map +7 -0
- package/dist/cjs/exported-related/index.js +30 -0
- package/dist/cjs/exported-related/index.js.map +7 -0
- package/dist/cjs/index.js +40 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/package.json +7 -0
- package/dist/esm/DSCard.js +37 -0
- package/dist/esm/DSCard.js.map +7 -0
- package/dist/esm/DSCardBody.js +20 -0
- package/dist/esm/DSCardBody.js.map +7 -0
- package/dist/esm/DSCardHeader.js +29 -0
- package/dist/esm/DSCardHeader.js.map +7 -0
- package/dist/esm/exported-related/DSCardDataTestId.js +11 -0
- package/dist/esm/exported-related/DSCardDataTestId.js.map +7 -0
- package/dist/esm/exported-related/index.js +3 -0
- package/dist/esm/exported-related/index.js.map +7 -0
- package/dist/esm/index.js +9 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/package.json +7 -0
- package/dist/types/DSCard.d.ts +29 -0
- package/dist/types/DSCardBody.d.ts +15 -0
- package/dist/types/DSCardHeader.d.ts +19 -0
- package/dist/types/exported-related/DSCardDataTestId.d.ts +6 -0
- package/dist/types/exported-related/index.d.ts +1 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/tests/DSCard.axe.test.d.ts +1 -0
- package/dist/types/tests/DSCard.test.d.ts +1 -0
- package/package.json +96 -0
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var DSCard_exports = {};
|
|
30
|
+
__export(DSCard_exports, {
|
|
31
|
+
DSCard: () => DSCard,
|
|
32
|
+
DSCardWithSchema: () => DSCardWithSchema,
|
|
33
|
+
default: () => DSCard_default
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(DSCard_exports);
|
|
36
|
+
var React = __toESM(require("react"));
|
|
37
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
38
|
+
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
39
|
+
var import_ds_classnames = require("@elliemae/ds-classnames");
|
|
40
|
+
var import_DSCardBody = __toESM(require("./DSCardBody.js"));
|
|
41
|
+
var import_DSCardHeader = __toESM(require("./DSCardHeader.js"));
|
|
42
|
+
const DSCard = ({ innerRef = void 0, children = null, containerProps = {}, ...otherProps }) => {
|
|
43
|
+
const { cssClassName } = (0, import_ds_classnames.convertPropToCssClassName)("card");
|
|
44
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { "data-testid": "em-ds-card", ...containerProps, ref: innerRef, className: cssClassName, ...otherProps, children });
|
|
45
|
+
};
|
|
46
|
+
const cardProps = {
|
|
47
|
+
/** inject props to component wrapper */
|
|
48
|
+
containerProps: import_ds_props_helpers.PropTypes.object.description("inject props to component wrapper"),
|
|
49
|
+
/**
|
|
50
|
+
* Get reference for the button
|
|
51
|
+
*/
|
|
52
|
+
innerRef: import_ds_props_helpers.PropTypes.string.description("Get reference for the button"),
|
|
53
|
+
/**
|
|
54
|
+
* DSCardBody and DSCardHeader
|
|
55
|
+
*/
|
|
56
|
+
children: import_ds_props_helpers.PropTypes.arrayOf(
|
|
57
|
+
import_ds_props_helpers.PropTypes.shape({
|
|
58
|
+
type: import_ds_props_helpers.PropTypes.oneOf([import_DSCardHeader.default, import_DSCardBody.default])
|
|
59
|
+
})
|
|
60
|
+
).description("DSCardBody and DSCardHeader")
|
|
61
|
+
};
|
|
62
|
+
DSCard.propTypes = cardProps;
|
|
63
|
+
DSCard.displayName = "DSCard";
|
|
64
|
+
const DSCardWithSchema = (0, import_ds_props_helpers.describe)(DSCard);
|
|
65
|
+
DSCardWithSchema.propTypes = cardProps;
|
|
66
|
+
var DSCard_default = DSCard;
|
|
67
|
+
//# sourceMappingURL=DSCard.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/DSCard.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-props-helpers';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\nimport DSCardBody from './DSCardBody.js';\nimport DSCardHeader from './DSCardHeader.js';\n\nconst DSCard = ({ innerRef = undefined, children = null, containerProps = {}, ...otherProps }) => {\n const { cssClassName } = convertPropToCssClassName('card');\n\n return (\n <div data-testid=\"em-ds-card\" {...containerProps} ref={innerRef} className={cssClassName} {...otherProps}>\n {children}\n </div>\n );\n};\n\nconst cardProps = {\n /** inject props to component wrapper */\n containerProps: PropTypes.object.description('inject props to component wrapper'),\n /**\n * Get reference for the button\n */\n innerRef: PropTypes.string.description('Get reference for the button'),\n /**\n * DSCardBody and DSCardHeader\n */\n children: PropTypes.arrayOf(\n PropTypes.shape({\n type: PropTypes.oneOf([DSCardHeader, DSCardBody]),\n }),\n ).description('DSCardBody and DSCardHeader'),\n};\n\nDSCard.propTypes = cardProps;\nDSCard.displayName = 'DSCard';\nconst DSCardWithSchema = describe(DSCard);\nDSCardWithSchema.propTypes = cardProps;\n\nexport { DSCard, DSCardWithSchema };\nexport default DSCard;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADUnB;AATJ,8BAAoC;AACpC,2BAA0C;AAC1C,wBAAuB;AACvB,0BAAyB;AAEzB,MAAM,SAAS,CAAC,EAAE,WAAW,QAAW,WAAW,MAAM,iBAAiB,CAAC,GAAG,GAAG,WAAW,MAAM;AAChG,QAAM,EAAE,aAAa,QAAI,gDAA0B,MAAM;AAEzD,SACE,4CAAC,SAAI,eAAY,cAAc,GAAG,gBAAgB,KAAK,UAAU,WAAW,cAAe,GAAG,YAC3F,UACH;AAEJ;AAEA,MAAM,YAAY;AAAA;AAAA,EAEhB,gBAAgB,kCAAU,OAAO,YAAY,mCAAmC;AAAA;AAAA;AAAA;AAAA,EAIhF,UAAU,kCAAU,OAAO,YAAY,8BAA8B;AAAA;AAAA;AAAA;AAAA,EAIrE,UAAU,kCAAU;AAAA,IAClB,kCAAU,MAAM;AAAA,MACd,MAAM,kCAAU,MAAM,CAAC,oBAAAA,SAAc,kBAAAC,OAAU,CAAC;AAAA,IAClD,CAAC;AAAA,EACH,EAAE,YAAY,6BAA6B;AAC7C;AAEA,OAAO,YAAY;AACnB,OAAO,cAAc;AACrB,MAAM,uBAAmB,kCAAS,MAAM;AACxC,iBAAiB,YAAY;AAG7B,IAAO,iBAAQ;",
|
|
6
|
+
"names": ["DSCardHeader", "DSCardBody"]
|
|
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
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var DSCardBody_exports = {};
|
|
30
|
+
__export(DSCardBody_exports, {
|
|
31
|
+
DSCardBody: () => DSCardBody,
|
|
32
|
+
DSCardBodyWithSchema: () => DSCardBodyWithSchema,
|
|
33
|
+
default: () => DSCardBody_default
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(DSCardBody_exports);
|
|
36
|
+
var React = __toESM(require("react"));
|
|
37
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
38
|
+
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
39
|
+
var import_exported_related = require("./exported-related/index.js");
|
|
40
|
+
const DSCardBody = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "em-ds-card-body", "data-testid": import_exported_related.DSCardDataTestId.CARD_BODY, children });
|
|
41
|
+
const bodyProps = {
|
|
42
|
+
/** children */
|
|
43
|
+
children: import_ds_props_helpers.PropTypes.element.description("children")
|
|
44
|
+
};
|
|
45
|
+
DSCardBody.propTypes = bodyProps;
|
|
46
|
+
DSCardBody.displayName = "DSCardBody";
|
|
47
|
+
const DSCardBodyWithSchema = (0, import_ds_props_helpers.describe)(DSCardBody);
|
|
48
|
+
DSCardBodyWithSchema.propTypes = bodyProps;
|
|
49
|
+
var DSCardBody_default = DSCardBody;
|
|
50
|
+
//# sourceMappingURL=DSCardBody.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/DSCardBody.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-props-helpers';\nimport { DSCardDataTestId } from './exported-related/index.js';\n\nconst DSCardBody = ({ children }) => (\n <div className=\"em-ds-card-body\" data-testid={DSCardDataTestId.CARD_BODY}>\n {children}\n </div>\n);\n\nconst bodyProps = {\n /** children */\n children: PropTypes.element.description('children'),\n};\n\nDSCardBody.propTypes = bodyProps;\nDSCardBody.displayName = 'DSCardBody';\nconst DSCardBodyWithSchema = describe(DSCardBody);\nDSCardBodyWithSchema.propTypes = bodyProps;\n\nexport { DSCardBody, DSCardBodyWithSchema };\nexport default DSCardBody;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADKrB;AAJF,8BAAoC;AACpC,8BAAiC;AAEjC,MAAM,aAAa,CAAC,EAAE,SAAS,MAC7B,4CAAC,SAAI,WAAU,mBAAkB,eAAa,yCAAiB,WAC5D,UACH;AAGF,MAAM,YAAY;AAAA;AAAA,EAEhB,UAAU,kCAAU,QAAQ,YAAY,UAAU;AACpD;AAEA,WAAW,YAAY;AACvB,WAAW,cAAc;AACzB,MAAM,2BAAuB,kCAAS,UAAU;AAChD,qBAAqB,YAAY;AAGjC,IAAO,qBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var DSCardHeader_exports = {};
|
|
30
|
+
__export(DSCardHeader_exports, {
|
|
31
|
+
DSCardHeader: () => DSCardHeader,
|
|
32
|
+
DSCardHeaderWithSchema: () => DSCardHeaderWithSchema,
|
|
33
|
+
default: () => DSCardHeader_default
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(DSCardHeader_exports);
|
|
36
|
+
var React = __toESM(require("react"));
|
|
37
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
38
|
+
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
39
|
+
var import_ds_classnames = require("@elliemae/ds-classnames");
|
|
40
|
+
var import_exported_related = require("./exported-related/index.js");
|
|
41
|
+
const DSCardHeader = ({ title, action }) => {
|
|
42
|
+
const { cssClassName, classNameElement } = (0, import_ds_classnames.convertPropToCssClassName)("card-header");
|
|
43
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: cssClassName, "data-testid": import_exported_related.DSCardDataTestId.CARD_HEADER, children: [
|
|
44
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: classNameElement("heading"), children: title }),
|
|
45
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: classNameElement("pull-right"), "data-testid": "ds-card_header-action", children: action })
|
|
46
|
+
] });
|
|
47
|
+
};
|
|
48
|
+
const cardHeader = {
|
|
49
|
+
/** card header title */
|
|
50
|
+
title: import_ds_props_helpers.PropTypes.string.description("card header title"),
|
|
51
|
+
/** action */
|
|
52
|
+
action: import_ds_props_helpers.PropTypes.node.description("action")
|
|
53
|
+
};
|
|
54
|
+
DSCardHeader.propTypes = cardHeader;
|
|
55
|
+
DSCardHeader.displayName = "DSCardHeader";
|
|
56
|
+
const DSCardHeaderWithSchema = (0, import_ds_props_helpers.describe)(DSCardHeader);
|
|
57
|
+
DSCardHeaderWithSchema.propTypes = cardHeader;
|
|
58
|
+
var DSCardHeader_default = DSCardHeader;
|
|
59
|
+
//# sourceMappingURL=DSCardHeader.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/DSCardHeader.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-props-helpers';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\nimport { DSCardDataTestId } from './exported-related/index.js';\n\nconst DSCardHeader = ({ title, action }) => {\n const { cssClassName, classNameElement } = convertPropToCssClassName('card-header');\n return (\n <div className={cssClassName} data-testid={DSCardDataTestId.CARD_HEADER}>\n <span className={classNameElement('heading')}>{title}</span>\n <div className={classNameElement('pull-right')} data-testid=\"ds-card_header-action\">\n {action}\n </div>\n </div>\n );\n};\n\nconst cardHeader = {\n /** card header title */\n title: PropTypes.string.description('card header title'),\n /** action */\n action: PropTypes.node.description('action'),\n};\n\nDSCardHeader.propTypes = cardHeader;\nDSCardHeader.displayName = 'DSCardHeader';\nconst DSCardHeaderWithSchema = describe(DSCardHeader);\nDSCardHeaderWithSchema.propTypes = cardHeader;\n\nexport { DSCardHeader, DSCardHeaderWithSchema };\nexport default DSCardHeader;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADQnB;AAPJ,8BAAoC;AACpC,2BAA0C;AAC1C,8BAAiC;AAEjC,MAAM,eAAe,CAAC,EAAE,OAAO,OAAO,MAAM;AAC1C,QAAM,EAAE,cAAc,iBAAiB,QAAI,gDAA0B,aAAa;AAClF,SACE,6CAAC,SAAI,WAAW,cAAc,eAAa,yCAAiB,aAC1D;AAAA,gDAAC,UAAK,WAAW,iBAAiB,SAAS,GAAI,iBAAM;AAAA,IACrD,4CAAC,SAAI,WAAW,iBAAiB,YAAY,GAAG,eAAY,yBACzD,kBACH;AAAA,KACF;AAEJ;AAEA,MAAM,aAAa;AAAA;AAAA,EAEjB,OAAO,kCAAU,OAAO,YAAY,mBAAmB;AAAA;AAAA,EAEvD,QAAQ,kCAAU,KAAK,YAAY,QAAQ;AAC7C;AAEA,aAAa,YAAY;AACzB,aAAa,cAAc;AAC3B,MAAM,6BAAyB,kCAAS,YAAY;AACpD,uBAAuB,YAAY;AAGnC,IAAO,uBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var DSCardDataTestId_exports = {};
|
|
30
|
+
__export(DSCardDataTestId_exports, {
|
|
31
|
+
DSCardDataTestId: () => DSCardDataTestId
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(DSCardDataTestId_exports);
|
|
34
|
+
var React = __toESM(require("react"));
|
|
35
|
+
const DSCardDataTestId = {
|
|
36
|
+
CARD_CONTAINER: "ds-card-container",
|
|
37
|
+
CARD_HEADER: "ds-card-header",
|
|
38
|
+
CARD_BODY: "ds-card-body",
|
|
39
|
+
CARD_DETAIL: "ds-card-detail-container"
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=DSCardDataTestId.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/exported-related/DSCardDataTestId.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["export const DSCardDataTestId = {\n CARD_CONTAINER: 'ds-card-container',\n CARD_HEADER: 'ds-card-header',\n CARD_BODY: 'ds-card-body',\n CARD_DETAIL: 'ds-card-detail-container',\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAhB,MAAM,mBAAmB;AAAA,EAC9B,gBAAgB;AAAA,EAChB,aAAa;AAAA,EACb,WAAW;AAAA,EACX,aAAa;AACf;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
12
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
}
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
17
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
18
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
19
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
20
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
21
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
22
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
23
|
+
mod
|
|
24
|
+
));
|
|
25
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
26
|
+
var exported_related_exports = {};
|
|
27
|
+
module.exports = __toCommonJS(exported_related_exports);
|
|
28
|
+
var React = __toESM(require("react"));
|
|
29
|
+
__reExport(exported_related_exports, require("./DSCardDataTestId.js"), module.exports);
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/exported-related/index.ts", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["export * from './DSCardDataTestId.js';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;ACAA,YAAuB;ADAvB,qCAAc,kCAAd;",
|
|
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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
var src_exports = {};
|
|
31
|
+
__export(src_exports, {
|
|
32
|
+
default: () => import_DSCard.default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(src_exports);
|
|
35
|
+
var React = __toESM(require("react"));
|
|
36
|
+
__reExport(src_exports, require("./DSCard.js"), module.exports);
|
|
37
|
+
__reExport(src_exports, require("./DSCardHeader.js"), module.exports);
|
|
38
|
+
__reExport(src_exports, require("./DSCardBody.js"), module.exports);
|
|
39
|
+
var import_DSCard = __toESM(require("./DSCard.js"));
|
|
40
|
+
//# 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 * from './DSCard.js';\nexport * from './DSCardHeader.js';\nexport * from './DSCardBody.js';\n\nexport { default } from './DSCard.js';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAAc,wBAAd;AACA,wBAAc,8BADd;AAEA,wBAAc,4BAFd;AAIA,oBAAwB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { PropTypes, describe } from "@elliemae/ds-props-helpers";
|
|
4
|
+
import { convertPropToCssClassName } from "@elliemae/ds-classnames";
|
|
5
|
+
import DSCardBody from "./DSCardBody.js";
|
|
6
|
+
import DSCardHeader from "./DSCardHeader.js";
|
|
7
|
+
const DSCard = ({ innerRef = void 0, children = null, containerProps = {}, ...otherProps }) => {
|
|
8
|
+
const { cssClassName } = convertPropToCssClassName("card");
|
|
9
|
+
return /* @__PURE__ */ jsx("div", { "data-testid": "em-ds-card", ...containerProps, ref: innerRef, className: cssClassName, ...otherProps, children });
|
|
10
|
+
};
|
|
11
|
+
const cardProps = {
|
|
12
|
+
/** inject props to component wrapper */
|
|
13
|
+
containerProps: PropTypes.object.description("inject props to component wrapper"),
|
|
14
|
+
/**
|
|
15
|
+
* Get reference for the button
|
|
16
|
+
*/
|
|
17
|
+
innerRef: PropTypes.string.description("Get reference for the button"),
|
|
18
|
+
/**
|
|
19
|
+
* DSCardBody and DSCardHeader
|
|
20
|
+
*/
|
|
21
|
+
children: PropTypes.arrayOf(
|
|
22
|
+
PropTypes.shape({
|
|
23
|
+
type: PropTypes.oneOf([DSCardHeader, DSCardBody])
|
|
24
|
+
})
|
|
25
|
+
).description("DSCardBody and DSCardHeader")
|
|
26
|
+
};
|
|
27
|
+
DSCard.propTypes = cardProps;
|
|
28
|
+
DSCard.displayName = "DSCard";
|
|
29
|
+
const DSCardWithSchema = describe(DSCard);
|
|
30
|
+
DSCardWithSchema.propTypes = cardProps;
|
|
31
|
+
var DSCard_default = DSCard;
|
|
32
|
+
export {
|
|
33
|
+
DSCard,
|
|
34
|
+
DSCardWithSchema,
|
|
35
|
+
DSCard_default as default
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=DSCard.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSCard.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-props-helpers';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\nimport DSCardBody from './DSCardBody.js';\nimport DSCardHeader from './DSCardHeader.js';\n\nconst DSCard = ({ innerRef = undefined, children = null, containerProps = {}, ...otherProps }) => {\n const { cssClassName } = convertPropToCssClassName('card');\n\n return (\n <div data-testid=\"em-ds-card\" {...containerProps} ref={innerRef} className={cssClassName} {...otherProps}>\n {children}\n </div>\n );\n};\n\nconst cardProps = {\n /** inject props to component wrapper */\n containerProps: PropTypes.object.description('inject props to component wrapper'),\n /**\n * Get reference for the button\n */\n innerRef: PropTypes.string.description('Get reference for the button'),\n /**\n * DSCardBody and DSCardHeader\n */\n children: PropTypes.arrayOf(\n PropTypes.shape({\n type: PropTypes.oneOf([DSCardHeader, DSCardBody]),\n }),\n ).description('DSCardBody and DSCardHeader'),\n};\n\nDSCard.propTypes = cardProps;\nDSCard.displayName = 'DSCard';\nconst DSCardWithSchema = describe(DSCard);\nDSCardWithSchema.propTypes = cardProps;\n\nexport { DSCard, DSCardWithSchema };\nexport default DSCard;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACUnB;AATJ,SAAS,WAAW,gBAAgB;AACpC,SAAS,iCAAiC;AAC1C,OAAO,gBAAgB;AACvB,OAAO,kBAAkB;AAEzB,MAAM,SAAS,CAAC,EAAE,WAAW,QAAW,WAAW,MAAM,iBAAiB,CAAC,GAAG,GAAG,WAAW,MAAM;AAChG,QAAM,EAAE,aAAa,IAAI,0BAA0B,MAAM;AAEzD,SACE,oBAAC,SAAI,eAAY,cAAc,GAAG,gBAAgB,KAAK,UAAU,WAAW,cAAe,GAAG,YAC3F,UACH;AAEJ;AAEA,MAAM,YAAY;AAAA;AAAA,EAEhB,gBAAgB,UAAU,OAAO,YAAY,mCAAmC;AAAA;AAAA;AAAA;AAAA,EAIhF,UAAU,UAAU,OAAO,YAAY,8BAA8B;AAAA;AAAA;AAAA;AAAA,EAIrE,UAAU,UAAU;AAAA,IAClB,UAAU,MAAM;AAAA,MACd,MAAM,UAAU,MAAM,CAAC,cAAc,UAAU,CAAC;AAAA,IAClD,CAAC;AAAA,EACH,EAAE,YAAY,6BAA6B;AAC7C;AAEA,OAAO,YAAY;AACnB,OAAO,cAAc;AACrB,MAAM,mBAAmB,SAAS,MAAM;AACxC,iBAAiB,YAAY;AAG7B,IAAO,iBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { PropTypes, describe } from "@elliemae/ds-props-helpers";
|
|
4
|
+
import { DSCardDataTestId } from "./exported-related/index.js";
|
|
5
|
+
const DSCardBody = ({ children }) => /* @__PURE__ */ jsx("div", { className: "em-ds-card-body", "data-testid": DSCardDataTestId.CARD_BODY, children });
|
|
6
|
+
const bodyProps = {
|
|
7
|
+
/** children */
|
|
8
|
+
children: PropTypes.element.description("children")
|
|
9
|
+
};
|
|
10
|
+
DSCardBody.propTypes = bodyProps;
|
|
11
|
+
DSCardBody.displayName = "DSCardBody";
|
|
12
|
+
const DSCardBodyWithSchema = describe(DSCardBody);
|
|
13
|
+
DSCardBodyWithSchema.propTypes = bodyProps;
|
|
14
|
+
var DSCardBody_default = DSCardBody;
|
|
15
|
+
export {
|
|
16
|
+
DSCardBody,
|
|
17
|
+
DSCardBodyWithSchema,
|
|
18
|
+
DSCardBody_default as default
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=DSCardBody.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSCardBody.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-props-helpers';\nimport { DSCardDataTestId } from './exported-related/index.js';\n\nconst DSCardBody = ({ children }) => (\n <div className=\"em-ds-card-body\" data-testid={DSCardDataTestId.CARD_BODY}>\n {children}\n </div>\n);\n\nconst bodyProps = {\n /** children */\n children: PropTypes.element.description('children'),\n};\n\nDSCardBody.propTypes = bodyProps;\nDSCardBody.displayName = 'DSCardBody';\nconst DSCardBodyWithSchema = describe(DSCardBody);\nDSCardBodyWithSchema.propTypes = bodyProps;\n\nexport { DSCardBody, DSCardBodyWithSchema };\nexport default DSCardBody;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACKrB;AAJF,SAAS,WAAW,gBAAgB;AACpC,SAAS,wBAAwB;AAEjC,MAAM,aAAa,CAAC,EAAE,SAAS,MAC7B,oBAAC,SAAI,WAAU,mBAAkB,eAAa,iBAAiB,WAC5D,UACH;AAGF,MAAM,YAAY;AAAA;AAAA,EAEhB,UAAU,UAAU,QAAQ,YAAY,UAAU;AACpD;AAEA,WAAW,YAAY;AACvB,WAAW,cAAc;AACzB,MAAM,uBAAuB,SAAS,UAAU;AAChD,qBAAqB,YAAY;AAGjC,IAAO,qBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { PropTypes, describe } from "@elliemae/ds-props-helpers";
|
|
4
|
+
import { convertPropToCssClassName } from "@elliemae/ds-classnames";
|
|
5
|
+
import { DSCardDataTestId } from "./exported-related/index.js";
|
|
6
|
+
const DSCardHeader = ({ title, action }) => {
|
|
7
|
+
const { cssClassName, classNameElement } = convertPropToCssClassName("card-header");
|
|
8
|
+
return /* @__PURE__ */ jsxs("div", { className: cssClassName, "data-testid": DSCardDataTestId.CARD_HEADER, children: [
|
|
9
|
+
/* @__PURE__ */ jsx("span", { className: classNameElement("heading"), children: title }),
|
|
10
|
+
/* @__PURE__ */ jsx("div", { className: classNameElement("pull-right"), "data-testid": "ds-card_header-action", children: action })
|
|
11
|
+
] });
|
|
12
|
+
};
|
|
13
|
+
const cardHeader = {
|
|
14
|
+
/** card header title */
|
|
15
|
+
title: PropTypes.string.description("card header title"),
|
|
16
|
+
/** action */
|
|
17
|
+
action: PropTypes.node.description("action")
|
|
18
|
+
};
|
|
19
|
+
DSCardHeader.propTypes = cardHeader;
|
|
20
|
+
DSCardHeader.displayName = "DSCardHeader";
|
|
21
|
+
const DSCardHeaderWithSchema = describe(DSCardHeader);
|
|
22
|
+
DSCardHeaderWithSchema.propTypes = cardHeader;
|
|
23
|
+
var DSCardHeader_default = DSCardHeader;
|
|
24
|
+
export {
|
|
25
|
+
DSCardHeader,
|
|
26
|
+
DSCardHeaderWithSchema,
|
|
27
|
+
DSCardHeader_default as default
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=DSCardHeader.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSCardHeader.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-props-helpers';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\nimport { DSCardDataTestId } from './exported-related/index.js';\n\nconst DSCardHeader = ({ title, action }) => {\n const { cssClassName, classNameElement } = convertPropToCssClassName('card-header');\n return (\n <div className={cssClassName} data-testid={DSCardDataTestId.CARD_HEADER}>\n <span className={classNameElement('heading')}>{title}</span>\n <div className={classNameElement('pull-right')} data-testid=\"ds-card_header-action\">\n {action}\n </div>\n </div>\n );\n};\n\nconst cardHeader = {\n /** card header title */\n title: PropTypes.string.description('card header title'),\n /** action */\n action: PropTypes.node.description('action'),\n};\n\nDSCardHeader.propTypes = cardHeader;\nDSCardHeader.displayName = 'DSCardHeader';\nconst DSCardHeaderWithSchema = describe(DSCardHeader);\nDSCardHeaderWithSchema.propTypes = cardHeader;\n\nexport { DSCardHeader, DSCardHeaderWithSchema };\nexport default DSCardHeader;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACQnB,SACE,KADF;AAPJ,SAAS,WAAW,gBAAgB;AACpC,SAAS,iCAAiC;AAC1C,SAAS,wBAAwB;AAEjC,MAAM,eAAe,CAAC,EAAE,OAAO,OAAO,MAAM;AAC1C,QAAM,EAAE,cAAc,iBAAiB,IAAI,0BAA0B,aAAa;AAClF,SACE,qBAAC,SAAI,WAAW,cAAc,eAAa,iBAAiB,aAC1D;AAAA,wBAAC,UAAK,WAAW,iBAAiB,SAAS,GAAI,iBAAM;AAAA,IACrD,oBAAC,SAAI,WAAW,iBAAiB,YAAY,GAAG,eAAY,yBACzD,kBACH;AAAA,KACF;AAEJ;AAEA,MAAM,aAAa;AAAA;AAAA,EAEjB,OAAO,UAAU,OAAO,YAAY,mBAAmB;AAAA;AAAA,EAEvD,QAAQ,UAAU,KAAK,YAAY,QAAQ;AAC7C;AAEA,aAAa,YAAY;AACzB,aAAa,cAAc;AAC3B,MAAM,yBAAyB,SAAS,YAAY;AACpD,uBAAuB,YAAY;AAGnC,IAAO,uBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
const DSCardDataTestId = {
|
|
3
|
+
CARD_CONTAINER: "ds-card-container",
|
|
4
|
+
CARD_HEADER: "ds-card-header",
|
|
5
|
+
CARD_BODY: "ds-card-body",
|
|
6
|
+
CARD_DETAIL: "ds-card-detail-container"
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
DSCardDataTestId
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=DSCardDataTestId.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/exported-related/DSCardDataTestId.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const DSCardDataTestId = {\n CARD_CONTAINER: 'ds-card-container',\n CARD_HEADER: 'ds-card-header',\n CARD_BODY: 'ds-card-body',\n CARD_DETAIL: 'ds-card-detail-container',\n};\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAhB,MAAM,mBAAmB;AAAA,EAC9B,gBAAgB;AAAA,EAChB,aAAa;AAAA,EACb,WAAW;AAAA,EACX,aAAa;AACf;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/exported-related/index.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from './DSCardDataTestId.js';\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,cAAc;",
|
|
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 * from './DSCard.js';\nexport * from './DSCardHeader.js';\nexport * from './DSCardBody.js';\n\nexport { default } from './DSCard.js';\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,cAAc;AACd,cAAc;AACd,cAAc;AAEd,SAAS,WAAAA,gBAAe;",
|
|
6
|
+
"names": ["default"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const DSCard: {
|
|
2
|
+
({ innerRef, children, containerProps, ...otherProps }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
innerRef?: undefined;
|
|
5
|
+
children?: null | undefined;
|
|
6
|
+
containerProps?: {} | undefined;
|
|
7
|
+
}): import("react/jsx-runtime.js").JSX.Element;
|
|
8
|
+
propTypes: {
|
|
9
|
+
/** inject props to component wrapper */
|
|
10
|
+
containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
11
|
+
/**
|
|
12
|
+
* Get reference for the button
|
|
13
|
+
*/
|
|
14
|
+
innerRef: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
15
|
+
/**
|
|
16
|
+
* DSCardBody and DSCardHeader
|
|
17
|
+
*/
|
|
18
|
+
children: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
19
|
+
};
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
declare const DSCardWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<{
|
|
23
|
+
[x: string]: any;
|
|
24
|
+
innerRef?: undefined;
|
|
25
|
+
children?: null | undefined;
|
|
26
|
+
containerProps?: {} | undefined;
|
|
27
|
+
}>;
|
|
28
|
+
export { DSCard, DSCardWithSchema };
|
|
29
|
+
export default DSCard;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const DSCardBody: {
|
|
2
|
+
({ children }: {
|
|
3
|
+
children: any;
|
|
4
|
+
}): import("react/jsx-runtime.js").JSX.Element;
|
|
5
|
+
propTypes: {
|
|
6
|
+
/** children */
|
|
7
|
+
children: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
8
|
+
};
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
declare const DSCardBodyWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<{
|
|
12
|
+
children: any;
|
|
13
|
+
}>;
|
|
14
|
+
export { DSCardBody, DSCardBodyWithSchema };
|
|
15
|
+
export default DSCardBody;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const DSCardHeader: {
|
|
2
|
+
({ title, action }: {
|
|
3
|
+
title: any;
|
|
4
|
+
action: any;
|
|
5
|
+
}): import("react/jsx-runtime.js").JSX.Element;
|
|
6
|
+
propTypes: {
|
|
7
|
+
/** card header title */
|
|
8
|
+
title: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
9
|
+
/** action */
|
|
10
|
+
action: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
11
|
+
};
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
declare const DSCardHeaderWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<{
|
|
15
|
+
title: any;
|
|
16
|
+
action: any;
|
|
17
|
+
}>;
|
|
18
|
+
export { DSCardHeader, DSCardHeaderWithSchema };
|
|
19
|
+
export default DSCardHeader;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DSCardDataTestId.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@elliemae/ds-card-v1",
|
|
3
|
+
"version": "3.21.0-next.1",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"description": "ICE MT - Dimsum - 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
|
+
"./DSCardHeader": {
|
|
18
|
+
"import": "./dist/esm/DSCardHeader.js",
|
|
19
|
+
"require": "./dist/cjs/DSCardHeader.js"
|
|
20
|
+
},
|
|
21
|
+
"./DSCardBody": {
|
|
22
|
+
"import": "./dist/esm/DSCardBody.js",
|
|
23
|
+
"require": "./dist/cjs/DSCardBody.js"
|
|
24
|
+
},
|
|
25
|
+
"./DSCard": {
|
|
26
|
+
"import": "./dist/esm/DSCard.js",
|
|
27
|
+
"require": "./dist/cjs/DSCard.js"
|
|
28
|
+
},
|
|
29
|
+
"./detail/styled": {
|
|
30
|
+
"import": "./dist/esm/detail/styled.js",
|
|
31
|
+
"require": "./dist/cjs/detail/styled.js"
|
|
32
|
+
},
|
|
33
|
+
"./detail/DetailCard": {
|
|
34
|
+
"import": "./dist/esm/detail/DetailCard.js",
|
|
35
|
+
"require": "./dist/cjs/detail/DetailCard.js"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"sideEffects": [
|
|
39
|
+
"*.css",
|
|
40
|
+
"*.scss"
|
|
41
|
+
],
|
|
42
|
+
"repository": {
|
|
43
|
+
"type": "git",
|
|
44
|
+
"url": "https://git.elliemae.io/platform-ui/dimsum.git"
|
|
45
|
+
},
|
|
46
|
+
"engines": {
|
|
47
|
+
"pnpm": ">=6",
|
|
48
|
+
"node": ">=16"
|
|
49
|
+
},
|
|
50
|
+
"author": "ICE MT",
|
|
51
|
+
"jestSonar": {
|
|
52
|
+
"sonar56x": true,
|
|
53
|
+
"reportPath": "reports",
|
|
54
|
+
"reportFile": "tests.xml",
|
|
55
|
+
"indent": 4
|
|
56
|
+
},
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"@elliemae/ds-button": "3.21.0-next.1",
|
|
59
|
+
"@elliemae/ds-classnames": "3.21.0-next.1",
|
|
60
|
+
"@elliemae/ds-form": "3.21.0-next.1",
|
|
61
|
+
"@elliemae/ds-grid": "3.21.0-next.1",
|
|
62
|
+
"@elliemae/ds-header": "3.21.0-next.1",
|
|
63
|
+
"@elliemae/ds-icons": "3.21.0-next.1",
|
|
64
|
+
"@elliemae/ds-props-helpers": "3.21.0-next.1",
|
|
65
|
+
"@elliemae/ds-separator": "3.21.0-next.1",
|
|
66
|
+
"@elliemae/ds-system": "3.21.0-next.1",
|
|
67
|
+
"@elliemae/ds-truncated-tooltip-text": "3.21.0-next.1"
|
|
68
|
+
},
|
|
69
|
+
"devDependencies": {
|
|
70
|
+
"@testing-library/jest-dom": "~5.16.5",
|
|
71
|
+
"@testing-library/react": "~12.1.3",
|
|
72
|
+
"styled-components": "~5.3.9",
|
|
73
|
+
"jest-axe": "^7.0.1"
|
|
74
|
+
},
|
|
75
|
+
"peerDependencies": {
|
|
76
|
+
"lodash": "^4.17.21",
|
|
77
|
+
"react": "^17.0.2",
|
|
78
|
+
"react-dom": "^17.0.2",
|
|
79
|
+
"styled-components": "~5.3.9"
|
|
80
|
+
},
|
|
81
|
+
"publishConfig": {
|
|
82
|
+
"access": "public",
|
|
83
|
+
"typeSafety": false
|
|
84
|
+
},
|
|
85
|
+
"scripts": {
|
|
86
|
+
"dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
|
|
87
|
+
"test": "node ../../scripts/testing/test.mjs",
|
|
88
|
+
"lint": "node ../../scripts/lint.mjs",
|
|
89
|
+
"eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../.eslintrc.js' src/",
|
|
90
|
+
"dts": "node ../../scripts/dts.mjs",
|
|
91
|
+
"build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs",
|
|
92
|
+
"dev:build": "pnpm --filter {.}... build",
|
|
93
|
+
"dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
|
|
94
|
+
"checkDeps": "npm exec ../ds-codemods -- check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
|
|
95
|
+
}
|
|
96
|
+
}
|