@elliemae/ds-card-array 2.3.0-next.0 → 3.0.0-alpha.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/DSCardArray.js +40 -0
- package/dist/cjs/DSCardArray.js.map +7 -0
- package/dist/cjs/components/CardBox.js +57 -0
- package/dist/cjs/components/CardBox.js.map +7 -0
- package/dist/cjs/components/CardWrapper.js +57 -0
- package/dist/cjs/components/CardWrapper.js.map +7 -0
- package/dist/cjs/components/blockname.js +35 -0
- package/dist/cjs/components/blockname.js.map +7 -0
- package/dist/cjs/index.js +39 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/esm/DSCardArray.js +11 -0
- package/dist/esm/DSCardArray.js.map +7 -0
- package/dist/esm/components/CardBox.js +28 -0
- package/dist/esm/components/CardBox.js.map +7 -0
- package/dist/esm/components/CardWrapper.js +28 -0
- package/dist/esm/components/CardWrapper.js.map +7 -0
- package/dist/esm/components/blockname.js +6 -0
- package/dist/esm/components/blockname.js.map +7 -0
- package/dist/esm/index.js +10 -0
- package/dist/esm/index.js.map +7 -0
- package/{types → dist/types}/DSCardArray.d.ts +0 -0
- package/{types → dist/types}/components/CardBox.d.ts +0 -0
- package/{types → dist/types}/components/CardWrapper.d.ts +0 -0
- package/{types → dist/types}/components/blockname.d.ts +0 -0
- package/{types → dist/types}/index.d.ts +1 -1
- package/package.json +32 -24
- package/cjs/DSCardArray.js +0 -10
- package/cjs/components/CardBox.js +0 -68
- package/cjs/components/CardWrapper.js +0 -68
- package/cjs/components/blockname.js +0 -7
- package/cjs/index.js +0 -13
- package/esm/DSCardArray.js +0 -8
- package/esm/components/CardBox.js +0 -57
- package/esm/components/CardWrapper.js +0 -57
- package/esm/components/blockname.js +0 -3
- package/esm/index.js +0 -3
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var DSCardArray_exports = {};
|
|
29
|
+
__export(DSCardArray_exports, {
|
|
30
|
+
default: () => DSCardArray_default
|
|
31
|
+
});
|
|
32
|
+
var React = __toESM(require("react"));
|
|
33
|
+
var import_CardWrapper = require("./components/CardWrapper");
|
|
34
|
+
var import_CardBox = require("./components/CardBox");
|
|
35
|
+
const DSCardArray = {};
|
|
36
|
+
DSCardArray.Wrapper = import_CardWrapper.CardWrapperComponent;
|
|
37
|
+
DSCardArray.CardBox = import_CardBox.CardBoxComponent;
|
|
38
|
+
var DSCardArray_default = DSCardArray;
|
|
39
|
+
module.exports = __toCommonJS(DSCardArray_exports);
|
|
40
|
+
//# sourceMappingURL=DSCardArray.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/DSCardArray.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import { CardWrapperComponent } from './components/CardWrapper';\nimport { CardBoxComponent } from './components/CardBox';\n\nconst DSCardArray = {};\n\nDSCardArray.Wrapper = CardWrapperComponent;\nDSCardArray.CardBox = CardBoxComponent;\n\nexport default DSCardArray;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,yBAAqC;AACrC,qBAAiC;AAEjC,MAAM,cAAc;AAEpB,YAAY,UAAU;AACtB,YAAY,UAAU;AAEtB,IAAO,sBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var CardBox_exports = {};
|
|
29
|
+
__export(CardBox_exports, {
|
|
30
|
+
CardBoxComponent: () => CardBoxComponent,
|
|
31
|
+
DSCardBoxWithSchema: () => DSCardBoxWithSchema
|
|
32
|
+
});
|
|
33
|
+
var React = __toESM(require("react"));
|
|
34
|
+
var import_react = __toESM(require("react"));
|
|
35
|
+
var import_react_desc = require("react-desc");
|
|
36
|
+
var import_ds_classnames = require("@elliemae/ds-classnames");
|
|
37
|
+
var import_blockname = require("./blockname");
|
|
38
|
+
const Block = (0, import_ds_classnames.aggregatedClasses)("div")(import_blockname.blockName, "box", ({ size, mdSize, smSize }) => ({
|
|
39
|
+
[`box-lg-${size}`]: size,
|
|
40
|
+
[`box-md-${mdSize}`]: mdSize,
|
|
41
|
+
[`box-sm-${smSize}`]: smSize
|
|
42
|
+
}));
|
|
43
|
+
const CardBox = ({ size = 1, ...rest }) => /* @__PURE__ */ import_react.default.createElement(Block, {
|
|
44
|
+
size,
|
|
45
|
+
...rest
|
|
46
|
+
});
|
|
47
|
+
const props = {
|
|
48
|
+
size: import_react_desc.PropTypes.number.description("size for large card array box"),
|
|
49
|
+
mdSize: import_react_desc.PropTypes.number.description("size for medium card array box"),
|
|
50
|
+
smSize: import_react_desc.PropTypes.number.description("size for small card array box")
|
|
51
|
+
};
|
|
52
|
+
CardBox.propTypes = props;
|
|
53
|
+
const DSCardBoxWithSchema = (0, import_react_desc.describe)(CardBox);
|
|
54
|
+
DSCardBoxWithSchema.propTypes = props;
|
|
55
|
+
const CardBoxComponent = import_react.default.memo(CardBox);
|
|
56
|
+
module.exports = __toCommonJS(CardBox_exports);
|
|
57
|
+
//# sourceMappingURL=CardBox.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/CardBox.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { PropTypes, describe } from 'react-desc';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { blockName } from './blockname';\n\nconst Block = aggregatedClasses('div')(\n blockName,\n 'box',\n ({ size, mdSize, smSize }) => ({\n [`box-lg-${size}`]: size,\n [`box-md-${mdSize}`]: mdSize,\n [`box-sm-${smSize}`]: smSize,\n }),\n);\n\nconst CardBox = ({ size = 1, ...rest }) => <Block size={size} {...rest} />;\n\nconst props = {\n /** size for large card array box */\n size: PropTypes.number.description('size for large card array box'),\n /** size for medium card array box */\n mdSize: PropTypes.number.description('size for medium card array box'),\n /** size for small card array box */\n smSize: PropTypes.number.description('size for small card array box'),\n};\n\nCardBox.propTypes = props;\nconst DSCardBoxWithSchema = describe(CardBox);\nDSCardBoxWithSchema.propTypes = props;\n\nconst CardBoxComponent = React.memo(CardBox);\n\nexport { CardBoxComponent, DSCardBoxWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,wBAAoC;AACpC,2BAAkC;AAClC,uBAA0B;AAE1B,MAAM,QAAQ,4CAAkB,OAC9B,4BACA,OACA,CAAC,EAAE,MAAM,QAAQ,aAAc;AAAA,GAC5B,UAAU,SAAS;AAAA,GACnB,UAAU,WAAW;AAAA,GACrB,UAAU,WAAW;AAAA;AAI1B,MAAM,UAAU,CAAC,EAAE,OAAO,MAAM,WAAW,mDAAC,OAAD;AAAA,EAAO;AAAA,KAAgB;AAAA;AAElE,MAAM,QAAQ;AAAA,EAEZ,MAAM,4BAAU,OAAO,YAAY;AAAA,EAEnC,QAAQ,4BAAU,OAAO,YAAY;AAAA,EAErC,QAAQ,4BAAU,OAAO,YAAY;AAAA;AAGvC,QAAQ,YAAY;AACpB,MAAM,sBAAsB,gCAAS;AACrC,oBAAoB,YAAY;AAEhC,MAAM,mBAAmB,qBAAM,KAAK;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var CardWrapper_exports = {};
|
|
29
|
+
__export(CardWrapper_exports, {
|
|
30
|
+
CardWrapperComponent: () => CardWrapperComponent,
|
|
31
|
+
DSCardWrapperWithSchema: () => DSCardWrapperWithSchema
|
|
32
|
+
});
|
|
33
|
+
var React = __toESM(require("react"));
|
|
34
|
+
var import_react = __toESM(require("react"));
|
|
35
|
+
var import_react_desc = require("react-desc");
|
|
36
|
+
var import_ds_classnames = require("@elliemae/ds-classnames");
|
|
37
|
+
var import_blockname = require("./blockname");
|
|
38
|
+
const Block = (0, import_ds_classnames.aggregatedClasses)("div")(import_blockname.blockName, "wrapper", ({ columns, mdColumns, smColumns }) => ({
|
|
39
|
+
[`cols-lg-${columns}`]: columns,
|
|
40
|
+
[`cols-md-${mdColumns}`]: mdColumns,
|
|
41
|
+
[`cols-sm-${smColumns}`]: smColumns
|
|
42
|
+
}));
|
|
43
|
+
const CardWrapper = ({ columns = 3, ...rest }) => /* @__PURE__ */ import_react.default.createElement(Block, {
|
|
44
|
+
columns,
|
|
45
|
+
...rest
|
|
46
|
+
});
|
|
47
|
+
const props = {
|
|
48
|
+
columns: import_react_desc.PropTypes.number.description("card wrapper large column size"),
|
|
49
|
+
mdColumns: import_react_desc.PropTypes.number.description("card wrapper medium column size"),
|
|
50
|
+
smColumns: import_react_desc.PropTypes.number.description("card wrapper small column size")
|
|
51
|
+
};
|
|
52
|
+
CardWrapper.propTypes = props;
|
|
53
|
+
const DSCardWrapperWithSchema = (0, import_react_desc.describe)(CardWrapper);
|
|
54
|
+
DSCardWrapperWithSchema.propTypes = props;
|
|
55
|
+
const CardWrapperComponent = import_react.default.memo(CardWrapper);
|
|
56
|
+
module.exports = __toCommonJS(CardWrapper_exports);
|
|
57
|
+
//# sourceMappingURL=CardWrapper.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/CardWrapper.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { PropTypes, describe } from 'react-desc';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { blockName } from './blockname';\n\nconst Block = aggregatedClasses('div')(\n blockName,\n 'wrapper',\n ({ columns, mdColumns, smColumns }) => ({\n [`cols-lg-${columns}`]: columns,\n [`cols-md-${mdColumns}`]: mdColumns,\n [`cols-sm-${smColumns}`]: smColumns,\n }),\n);\n\nconst CardWrapper = ({ columns = 3, ...rest }) => (\n <Block columns={columns} {...rest} />\n);\n\nconst props = {\n /** card wrapper large column size */\n columns: PropTypes.number.description('card wrapper large column size'),\n /** card wrapper medium column size */\n mdColumns: PropTypes.number.description('card wrapper medium column size'),\n /** card wrapper small column size */\n smColumns: PropTypes.number.description('card wrapper small column size'),\n};\n\nCardWrapper.propTypes = props;\nconst DSCardWrapperWithSchema = describe(CardWrapper);\nDSCardWrapperWithSchema.propTypes = props;\n\nconst CardWrapperComponent = React.memo(CardWrapper);\nexport { CardWrapperComponent, DSCardWrapperWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,wBAAoC;AACpC,2BAAkC;AAClC,uBAA0B;AAE1B,MAAM,QAAQ,4CAAkB,OAC9B,4BACA,WACA,CAAC,EAAE,SAAS,WAAW,gBAAiB;AAAA,GACrC,WAAW,YAAY;AAAA,GACvB,WAAW,cAAc;AAAA,GACzB,WAAW,cAAc;AAAA;AAI9B,MAAM,cAAc,CAAC,EAAE,UAAU,MAAM,WACrC,mDAAC,OAAD;AAAA,EAAO;AAAA,KAAsB;AAAA;AAG/B,MAAM,QAAQ;AAAA,EAEZ,SAAS,4BAAU,OAAO,YAAY;AAAA,EAEtC,WAAW,4BAAU,OAAO,YAAY;AAAA,EAExC,WAAW,4BAAU,OAAO,YAAY;AAAA;AAG1C,YAAY,YAAY;AACxB,MAAM,0BAA0B,gCAAS;AACzC,wBAAwB,YAAY;AAEpC,MAAM,uBAAuB,qBAAM,KAAK;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var blockname_exports = {};
|
|
29
|
+
__export(blockname_exports, {
|
|
30
|
+
blockName: () => blockName
|
|
31
|
+
});
|
|
32
|
+
var React = __toESM(require("react"));
|
|
33
|
+
const blockName = "card-array";
|
|
34
|
+
module.exports = __toCommonJS(blockname_exports);
|
|
35
|
+
//# sourceMappingURL=blockname.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/blockname.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["export const blockName = 'card-array';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAhB,MAAM,YAAY;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var src_exports = {};
|
|
29
|
+
__export(src_exports, {
|
|
30
|
+
DSCardBoxWithSchema: () => import_CardBox.DSCardBoxWithSchema,
|
|
31
|
+
DSCardWrapperWithSchema: () => import_CardWrapper.DSCardWrapperWithSchema,
|
|
32
|
+
default: () => import_DSCardArray.default
|
|
33
|
+
});
|
|
34
|
+
var React = __toESM(require("react"));
|
|
35
|
+
var import_CardBox = require("./components/CardBox");
|
|
36
|
+
var import_CardWrapper = require("./components/CardWrapper");
|
|
37
|
+
var import_DSCardArray = __toESM(require("./DSCardArray"));
|
|
38
|
+
module.exports = __toCommonJS(src_exports);
|
|
39
|
+
//# 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 { DSCardBoxWithSchema } from './components/CardBox';\nexport { DSCardWrapperWithSchema } from './components/CardWrapper';\nexport { default } from './DSCardArray';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,qBAAoC;AACpC,yBAAwC;AACxC,yBAAwB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { CardWrapperComponent } from "./components/CardWrapper";
|
|
3
|
+
import { CardBoxComponent } from "./components/CardBox";
|
|
4
|
+
const DSCardArray = {};
|
|
5
|
+
DSCardArray.Wrapper = CardWrapperComponent;
|
|
6
|
+
DSCardArray.CardBox = CardBoxComponent;
|
|
7
|
+
var DSCardArray_default = DSCardArray;
|
|
8
|
+
export {
|
|
9
|
+
DSCardArray_default as default
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=DSCardArray.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSCardArray.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { CardWrapperComponent } from './components/CardWrapper';\nimport { CardBoxComponent } from './components/CardBox';\n\nconst DSCardArray = {};\n\nDSCardArray.Wrapper = CardWrapperComponent;\nDSCardArray.CardBox = CardBoxComponent;\n\nexport default DSCardArray;\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;AAEA,MAAM,cAAc;AAEpB,YAAY,UAAU;AACtB,YAAY,UAAU;AAEtB,IAAO,sBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2 from "react";
|
|
3
|
+
import { PropTypes, describe } from "react-desc";
|
|
4
|
+
import { aggregatedClasses } from "@elliemae/ds-classnames";
|
|
5
|
+
import { blockName } from "./blockname";
|
|
6
|
+
const Block = aggregatedClasses("div")(blockName, "box", ({ size, mdSize, smSize }) => ({
|
|
7
|
+
[`box-lg-${size}`]: size,
|
|
8
|
+
[`box-md-${mdSize}`]: mdSize,
|
|
9
|
+
[`box-sm-${smSize}`]: smSize
|
|
10
|
+
}));
|
|
11
|
+
const CardBox = ({ size = 1, ...rest }) => /* @__PURE__ */ React2.createElement(Block, {
|
|
12
|
+
size,
|
|
13
|
+
...rest
|
|
14
|
+
});
|
|
15
|
+
const props = {
|
|
16
|
+
size: PropTypes.number.description("size for large card array box"),
|
|
17
|
+
mdSize: PropTypes.number.description("size for medium card array box"),
|
|
18
|
+
smSize: PropTypes.number.description("size for small card array box")
|
|
19
|
+
};
|
|
20
|
+
CardBox.propTypes = props;
|
|
21
|
+
const DSCardBoxWithSchema = describe(CardBox);
|
|
22
|
+
DSCardBoxWithSchema.propTypes = props;
|
|
23
|
+
const CardBoxComponent = React2.memo(CardBox);
|
|
24
|
+
export {
|
|
25
|
+
CardBoxComponent,
|
|
26
|
+
DSCardBoxWithSchema
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=CardBox.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/CardBox.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from 'react-desc';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { blockName } from './blockname';\n\nconst Block = aggregatedClasses('div')(\n blockName,\n 'box',\n ({ size, mdSize, smSize }) => ({\n [`box-lg-${size}`]: size,\n [`box-md-${mdSize}`]: mdSize,\n [`box-sm-${smSize}`]: smSize,\n }),\n);\n\nconst CardBox = ({ size = 1, ...rest }) => <Block size={size} {...rest} />;\n\nconst props = {\n /** size for large card array box */\n size: PropTypes.number.description('size for large card array box'),\n /** size for medium card array box */\n mdSize: PropTypes.number.description('size for medium card array box'),\n /** size for small card array box */\n smSize: PropTypes.number.description('size for small card array box'),\n};\n\nCardBox.propTypes = props;\nconst DSCardBoxWithSchema = describe(CardBox);\nDSCardBoxWithSchema.propTypes = props;\n\nconst CardBoxComponent = React.memo(CardBox);\n\nexport { CardBoxComponent, DSCardBoxWithSchema };\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;AACA;AACA;AAEA,MAAM,QAAQ,kBAAkB,OAC9B,WACA,OACA,CAAC,EAAE,MAAM,QAAQ,aAAc;AAAA,GAC5B,UAAU,SAAS;AAAA,GACnB,UAAU,WAAW;AAAA,GACrB,UAAU,WAAW;AAAA;AAI1B,MAAM,UAAU,CAAC,EAAE,OAAO,MAAM,WAAW,qCAAC,OAAD;AAAA,EAAO;AAAA,KAAgB;AAAA;AAElE,MAAM,QAAQ;AAAA,EAEZ,MAAM,UAAU,OAAO,YAAY;AAAA,EAEnC,QAAQ,UAAU,OAAO,YAAY;AAAA,EAErC,QAAQ,UAAU,OAAO,YAAY;AAAA;AAGvC,QAAQ,YAAY;AACpB,MAAM,sBAAsB,SAAS;AACrC,oBAAoB,YAAY;AAEhC,MAAM,mBAAmB,OAAM,KAAK;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2 from "react";
|
|
3
|
+
import { PropTypes, describe } from "react-desc";
|
|
4
|
+
import { aggregatedClasses } from "@elliemae/ds-classnames";
|
|
5
|
+
import { blockName } from "./blockname";
|
|
6
|
+
const Block = aggregatedClasses("div")(blockName, "wrapper", ({ columns, mdColumns, smColumns }) => ({
|
|
7
|
+
[`cols-lg-${columns}`]: columns,
|
|
8
|
+
[`cols-md-${mdColumns}`]: mdColumns,
|
|
9
|
+
[`cols-sm-${smColumns}`]: smColumns
|
|
10
|
+
}));
|
|
11
|
+
const CardWrapper = ({ columns = 3, ...rest }) => /* @__PURE__ */ React2.createElement(Block, {
|
|
12
|
+
columns,
|
|
13
|
+
...rest
|
|
14
|
+
});
|
|
15
|
+
const props = {
|
|
16
|
+
columns: PropTypes.number.description("card wrapper large column size"),
|
|
17
|
+
mdColumns: PropTypes.number.description("card wrapper medium column size"),
|
|
18
|
+
smColumns: PropTypes.number.description("card wrapper small column size")
|
|
19
|
+
};
|
|
20
|
+
CardWrapper.propTypes = props;
|
|
21
|
+
const DSCardWrapperWithSchema = describe(CardWrapper);
|
|
22
|
+
DSCardWrapperWithSchema.propTypes = props;
|
|
23
|
+
const CardWrapperComponent = React2.memo(CardWrapper);
|
|
24
|
+
export {
|
|
25
|
+
CardWrapperComponent,
|
|
26
|
+
DSCardWrapperWithSchema
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=CardWrapper.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/CardWrapper.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from 'react-desc';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { blockName } from './blockname';\n\nconst Block = aggregatedClasses('div')(\n blockName,\n 'wrapper',\n ({ columns, mdColumns, smColumns }) => ({\n [`cols-lg-${columns}`]: columns,\n [`cols-md-${mdColumns}`]: mdColumns,\n [`cols-sm-${smColumns}`]: smColumns,\n }),\n);\n\nconst CardWrapper = ({ columns = 3, ...rest }) => (\n <Block columns={columns} {...rest} />\n);\n\nconst props = {\n /** card wrapper large column size */\n columns: PropTypes.number.description('card wrapper large column size'),\n /** card wrapper medium column size */\n mdColumns: PropTypes.number.description('card wrapper medium column size'),\n /** card wrapper small column size */\n smColumns: PropTypes.number.description('card wrapper small column size'),\n};\n\nCardWrapper.propTypes = props;\nconst DSCardWrapperWithSchema = describe(CardWrapper);\nDSCardWrapperWithSchema.propTypes = props;\n\nconst CardWrapperComponent = React.memo(CardWrapper);\nexport { CardWrapperComponent, DSCardWrapperWithSchema };\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;AACA;AACA;AAEA,MAAM,QAAQ,kBAAkB,OAC9B,WACA,WACA,CAAC,EAAE,SAAS,WAAW,gBAAiB;AAAA,GACrC,WAAW,YAAY;AAAA,GACvB,WAAW,cAAc;AAAA,GACzB,WAAW,cAAc;AAAA;AAI9B,MAAM,cAAc,CAAC,EAAE,UAAU,MAAM,WACrC,qCAAC,OAAD;AAAA,EAAO;AAAA,KAAsB;AAAA;AAG/B,MAAM,QAAQ;AAAA,EAEZ,SAAS,UAAU,OAAO,YAAY;AAAA,EAEtC,WAAW,UAAU,OAAO,YAAY;AAAA,EAExC,WAAW,UAAU,OAAO,YAAY;AAAA;AAG1C,YAAY,YAAY;AACxB,MAAM,0BAA0B,SAAS;AACzC,wBAAwB,YAAY;AAEpC,MAAM,uBAAuB,OAAM,KAAK;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/blockname.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const blockName = 'card-array';\n"],
|
|
5
|
+
"mappings": "AAAA;ACAO,MAAM,YAAY;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { DSCardBoxWithSchema } from "./components/CardBox";
|
|
3
|
+
import { DSCardWrapperWithSchema } from "./components/CardWrapper";
|
|
4
|
+
import { default as default2 } from "./DSCardArray";
|
|
5
|
+
export {
|
|
6
|
+
DSCardBoxWithSchema,
|
|
7
|
+
DSCardWrapperWithSchema,
|
|
8
|
+
default2 as default
|
|
9
|
+
};
|
|
10
|
+
//# 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 { DSCardBoxWithSchema } from './components/CardBox';\nexport { DSCardWrapperWithSchema } from './components/CardWrapper';\nexport { default } from './DSCardArray';\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;AACA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,31 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-card-array",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-alpha.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Card Array",
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"module": "./dist/esm/index.js",
|
|
10
|
+
"main": "./dist/cjs/index.js",
|
|
11
|
+
"types": "./dist/types/index.d.ts",
|
|
9
12
|
"exports": {
|
|
10
13
|
".": {
|
|
11
|
-
"import": "./esm/index.js",
|
|
12
|
-
"require": "./cjs/index.js"
|
|
14
|
+
"import": "./dist/esm/index.js",
|
|
15
|
+
"require": "./dist/cjs/index.js"
|
|
13
16
|
},
|
|
14
17
|
"./DSCardArray": {
|
|
15
|
-
"import": "./esm/DSCardArray.js",
|
|
16
|
-
"require": "./cjs/DSCardArray.js"
|
|
18
|
+
"import": "./dist/esm/DSCardArray.js",
|
|
19
|
+
"require": "./dist/cjs/DSCardArray.js"
|
|
17
20
|
},
|
|
18
21
|
"./components/CardWrapper": {
|
|
19
|
-
"import": "./esm/components/CardWrapper.js",
|
|
20
|
-
"require": "./cjs/components/CardWrapper.js"
|
|
22
|
+
"import": "./dist/esm/components/CardWrapper.js",
|
|
23
|
+
"require": "./dist/cjs/components/CardWrapper.js"
|
|
21
24
|
},
|
|
22
25
|
"./components/CardBox": {
|
|
23
|
-
"import": "./esm/components/CardBox.js",
|
|
24
|
-
"require": "./cjs/components/CardBox.js"
|
|
26
|
+
"import": "./dist/esm/components/CardBox.js",
|
|
27
|
+
"require": "./dist/cjs/components/CardBox.js"
|
|
25
28
|
},
|
|
26
29
|
"./components/blockname": {
|
|
27
|
-
"import": "./esm/components/blockname.js",
|
|
28
|
-
"require": "./cjs/components/blockname.js"
|
|
30
|
+
"import": "./dist/esm/components/blockname.js",
|
|
31
|
+
"require": "./dist/cjs/components/blockname.js"
|
|
29
32
|
}
|
|
30
33
|
},
|
|
31
34
|
"sideEffects": [
|
|
@@ -37,18 +40,18 @@
|
|
|
37
40
|
"url": "https://git.elliemae.io/platform-ui/dimsum.git"
|
|
38
41
|
},
|
|
39
42
|
"engines": {
|
|
40
|
-
"
|
|
41
|
-
"node": ">=
|
|
43
|
+
"pnpm": ">=6",
|
|
44
|
+
"node": ">=16"
|
|
42
45
|
},
|
|
43
46
|
"author": "ICE MT",
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
47
|
+
"jestSonar": {
|
|
48
|
+
"sonar56x": true,
|
|
49
|
+
"reportPath": "reports",
|
|
50
|
+
"reportFile": "tests.xml",
|
|
51
|
+
"indent": 4
|
|
49
52
|
},
|
|
50
53
|
"dependencies": {
|
|
51
|
-
"@elliemae/ds-classnames": "
|
|
54
|
+
"@elliemae/ds-classnames": "3.0.0-alpha.0",
|
|
52
55
|
"react-desc": "~4.1.3"
|
|
53
56
|
},
|
|
54
57
|
"peerDependencies": {
|
|
@@ -58,7 +61,12 @@
|
|
|
58
61
|
},
|
|
59
62
|
"publishConfig": {
|
|
60
63
|
"access": "public",
|
|
61
|
-
"
|
|
62
|
-
|
|
64
|
+
"typeSafety": false
|
|
65
|
+
},
|
|
66
|
+
"scripts": {
|
|
67
|
+
"dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
|
|
68
|
+
"test": "node ../../scripts/testing/test.mjs",
|
|
69
|
+
"lint": "node ../../scripts/lint.mjs",
|
|
70
|
+
"build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs"
|
|
63
71
|
}
|
|
64
72
|
}
|
package/cjs/DSCardArray.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var CardWrapper = require('./components/CardWrapper.js');
|
|
4
|
-
var CardBox = require('./components/CardBox.js');
|
|
5
|
-
|
|
6
|
-
const DSCardArray = {};
|
|
7
|
-
DSCardArray.Wrapper = CardWrapper.CardWrapperComponent;
|
|
8
|
-
DSCardArray.CardBox = CardBox.CardBoxComponent;
|
|
9
|
-
|
|
10
|
-
module.exports = DSCardArray;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
require('core-js/modules/esnext.async-iterator.filter.js');
|
|
6
|
-
require('core-js/modules/esnext.iterator.constructor.js');
|
|
7
|
-
require('core-js/modules/esnext.iterator.filter.js');
|
|
8
|
-
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
9
|
-
require('core-js/modules/esnext.iterator.for-each.js');
|
|
10
|
-
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
11
|
-
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
12
|
-
var React = require('react');
|
|
13
|
-
var reactDesc = require('react-desc');
|
|
14
|
-
var dsClassnames = require('@elliemae/ds-classnames');
|
|
15
|
-
var blockname = require('./blockname.js');
|
|
16
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
17
|
-
|
|
18
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
19
|
-
|
|
20
|
-
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
21
|
-
var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
|
|
22
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
23
|
-
|
|
24
|
-
const _excluded = ["size"];
|
|
25
|
-
|
|
26
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
27
|
-
|
|
28
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
29
|
-
const Block = dsClassnames.aggregatedClasses('div')(blockname.blockName, 'box', _ref => {
|
|
30
|
-
let {
|
|
31
|
-
size,
|
|
32
|
-
mdSize,
|
|
33
|
-
smSize
|
|
34
|
-
} = _ref;
|
|
35
|
-
return {
|
|
36
|
-
["box-lg-".concat(size)]: size,
|
|
37
|
-
["box-md-".concat(mdSize)]: mdSize,
|
|
38
|
-
["box-sm-".concat(smSize)]: smSize
|
|
39
|
-
};
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
const CardBox = _ref2 => {
|
|
43
|
-
let {
|
|
44
|
-
size = 1
|
|
45
|
-
} = _ref2,
|
|
46
|
-
rest = _objectWithoutProperties__default["default"](_ref2, _excluded);
|
|
47
|
-
|
|
48
|
-
return /*#__PURE__*/jsxRuntime.jsx(Block, _objectSpread({
|
|
49
|
-
size: size
|
|
50
|
-
}, rest));
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
const props = {
|
|
54
|
-
/** size for large card array box */
|
|
55
|
-
size: reactDesc.PropTypes.number.description('size for large card array box'),
|
|
56
|
-
|
|
57
|
-
/** size for medium card array box */
|
|
58
|
-
mdSize: reactDesc.PropTypes.number.description('size for medium card array box'),
|
|
59
|
-
|
|
60
|
-
/** size for small card array box */
|
|
61
|
-
smSize: reactDesc.PropTypes.number.description('size for small card array box')
|
|
62
|
-
};
|
|
63
|
-
const DSCardBoxWithSchema = reactDesc.describe(CardBox);
|
|
64
|
-
DSCardBoxWithSchema.propTypes = props;
|
|
65
|
-
const CardBoxComponent = /*#__PURE__*/React__default["default"].memo(CardBox);
|
|
66
|
-
|
|
67
|
-
exports.CardBoxComponent = CardBoxComponent;
|
|
68
|
-
exports.DSCardBoxWithSchema = DSCardBoxWithSchema;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
require('core-js/modules/esnext.async-iterator.filter.js');
|
|
6
|
-
require('core-js/modules/esnext.iterator.constructor.js');
|
|
7
|
-
require('core-js/modules/esnext.iterator.filter.js');
|
|
8
|
-
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
9
|
-
require('core-js/modules/esnext.iterator.for-each.js');
|
|
10
|
-
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
11
|
-
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
12
|
-
var React = require('react');
|
|
13
|
-
var reactDesc = require('react-desc');
|
|
14
|
-
var dsClassnames = require('@elliemae/ds-classnames');
|
|
15
|
-
var blockname = require('./blockname.js');
|
|
16
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
17
|
-
|
|
18
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
19
|
-
|
|
20
|
-
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
21
|
-
var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
|
|
22
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
23
|
-
|
|
24
|
-
const _excluded = ["columns"];
|
|
25
|
-
|
|
26
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
27
|
-
|
|
28
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
29
|
-
const Block = dsClassnames.aggregatedClasses('div')(blockname.blockName, 'wrapper', _ref => {
|
|
30
|
-
let {
|
|
31
|
-
columns,
|
|
32
|
-
mdColumns,
|
|
33
|
-
smColumns
|
|
34
|
-
} = _ref;
|
|
35
|
-
return {
|
|
36
|
-
["cols-lg-".concat(columns)]: columns,
|
|
37
|
-
["cols-md-".concat(mdColumns)]: mdColumns,
|
|
38
|
-
["cols-sm-".concat(smColumns)]: smColumns
|
|
39
|
-
};
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
const CardWrapper = _ref2 => {
|
|
43
|
-
let {
|
|
44
|
-
columns = 3
|
|
45
|
-
} = _ref2,
|
|
46
|
-
rest = _objectWithoutProperties__default["default"](_ref2, _excluded);
|
|
47
|
-
|
|
48
|
-
return /*#__PURE__*/jsxRuntime.jsx(Block, _objectSpread({
|
|
49
|
-
columns: columns
|
|
50
|
-
}, rest));
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
const props = {
|
|
54
|
-
/** card wrapper large column size */
|
|
55
|
-
columns: reactDesc.PropTypes.number.description('card wrapper large column size'),
|
|
56
|
-
|
|
57
|
-
/** card wrapper medium column size */
|
|
58
|
-
mdColumns: reactDesc.PropTypes.number.description('card wrapper medium column size'),
|
|
59
|
-
|
|
60
|
-
/** card wrapper small column size */
|
|
61
|
-
smColumns: reactDesc.PropTypes.number.description('card wrapper small column size')
|
|
62
|
-
};
|
|
63
|
-
const DSCardWrapperWithSchema = reactDesc.describe(CardWrapper);
|
|
64
|
-
DSCardWrapperWithSchema.propTypes = props;
|
|
65
|
-
const CardWrapperComponent = /*#__PURE__*/React__default["default"].memo(CardWrapper);
|
|
66
|
-
|
|
67
|
-
exports.CardWrapperComponent = CardWrapperComponent;
|
|
68
|
-
exports.DSCardWrapperWithSchema = DSCardWrapperWithSchema;
|
package/cjs/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var DSCardArray = require('./DSCardArray.js');
|
|
6
|
-
var CardBox = require('./components/CardBox.js');
|
|
7
|
-
var CardWrapper = require('./components/CardWrapper.js');
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
exports["default"] = DSCardArray;
|
|
12
|
-
exports.DSCardBoxWithSchema = CardBox.DSCardBoxWithSchema;
|
|
13
|
-
exports.DSCardWrapperWithSchema = CardWrapper.DSCardWrapperWithSchema;
|
package/esm/DSCardArray.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { CardWrapperComponent } from './components/CardWrapper.js';
|
|
2
|
-
import { CardBoxComponent } from './components/CardBox.js';
|
|
3
|
-
|
|
4
|
-
const DSCardArray = {};
|
|
5
|
-
DSCardArray.Wrapper = CardWrapperComponent;
|
|
6
|
-
DSCardArray.CardBox = CardBoxComponent;
|
|
7
|
-
|
|
8
|
-
export { DSCardArray as default };
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
-
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
|
-
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
-
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
-
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
6
|
-
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
7
|
-
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
8
|
-
import React from 'react';
|
|
9
|
-
import { PropTypes, describe } from 'react-desc';
|
|
10
|
-
import { aggregatedClasses } from '@elliemae/ds-classnames';
|
|
11
|
-
import { blockName } from './blockname.js';
|
|
12
|
-
import { jsx } from 'react/jsx-runtime';
|
|
13
|
-
|
|
14
|
-
const _excluded = ["size"];
|
|
15
|
-
|
|
16
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
17
|
-
|
|
18
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
19
|
-
const Block = aggregatedClasses('div')(blockName, 'box', _ref => {
|
|
20
|
-
let {
|
|
21
|
-
size,
|
|
22
|
-
mdSize,
|
|
23
|
-
smSize
|
|
24
|
-
} = _ref;
|
|
25
|
-
return {
|
|
26
|
-
["box-lg-".concat(size)]: size,
|
|
27
|
-
["box-md-".concat(mdSize)]: mdSize,
|
|
28
|
-
["box-sm-".concat(smSize)]: smSize
|
|
29
|
-
};
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
const CardBox = _ref2 => {
|
|
33
|
-
let {
|
|
34
|
-
size = 1
|
|
35
|
-
} = _ref2,
|
|
36
|
-
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
37
|
-
|
|
38
|
-
return /*#__PURE__*/jsx(Block, _objectSpread({
|
|
39
|
-
size: size
|
|
40
|
-
}, rest));
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
const props = {
|
|
44
|
-
/** size for large card array box */
|
|
45
|
-
size: PropTypes.number.description('size for large card array box'),
|
|
46
|
-
|
|
47
|
-
/** size for medium card array box */
|
|
48
|
-
mdSize: PropTypes.number.description('size for medium card array box'),
|
|
49
|
-
|
|
50
|
-
/** size for small card array box */
|
|
51
|
-
smSize: PropTypes.number.description('size for small card array box')
|
|
52
|
-
};
|
|
53
|
-
const DSCardBoxWithSchema = describe(CardBox);
|
|
54
|
-
DSCardBoxWithSchema.propTypes = props;
|
|
55
|
-
const CardBoxComponent = /*#__PURE__*/React.memo(CardBox);
|
|
56
|
-
|
|
57
|
-
export { CardBoxComponent, DSCardBoxWithSchema };
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
-
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
|
-
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
-
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
-
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
6
|
-
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
7
|
-
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
8
|
-
import React from 'react';
|
|
9
|
-
import { PropTypes, describe } from 'react-desc';
|
|
10
|
-
import { aggregatedClasses } from '@elliemae/ds-classnames';
|
|
11
|
-
import { blockName } from './blockname.js';
|
|
12
|
-
import { jsx } from 'react/jsx-runtime';
|
|
13
|
-
|
|
14
|
-
const _excluded = ["columns"];
|
|
15
|
-
|
|
16
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
17
|
-
|
|
18
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
19
|
-
const Block = aggregatedClasses('div')(blockName, 'wrapper', _ref => {
|
|
20
|
-
let {
|
|
21
|
-
columns,
|
|
22
|
-
mdColumns,
|
|
23
|
-
smColumns
|
|
24
|
-
} = _ref;
|
|
25
|
-
return {
|
|
26
|
-
["cols-lg-".concat(columns)]: columns,
|
|
27
|
-
["cols-md-".concat(mdColumns)]: mdColumns,
|
|
28
|
-
["cols-sm-".concat(smColumns)]: smColumns
|
|
29
|
-
};
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
const CardWrapper = _ref2 => {
|
|
33
|
-
let {
|
|
34
|
-
columns = 3
|
|
35
|
-
} = _ref2,
|
|
36
|
-
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
37
|
-
|
|
38
|
-
return /*#__PURE__*/jsx(Block, _objectSpread({
|
|
39
|
-
columns: columns
|
|
40
|
-
}, rest));
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
const props = {
|
|
44
|
-
/** card wrapper large column size */
|
|
45
|
-
columns: PropTypes.number.description('card wrapper large column size'),
|
|
46
|
-
|
|
47
|
-
/** card wrapper medium column size */
|
|
48
|
-
mdColumns: PropTypes.number.description('card wrapper medium column size'),
|
|
49
|
-
|
|
50
|
-
/** card wrapper small column size */
|
|
51
|
-
smColumns: PropTypes.number.description('card wrapper small column size')
|
|
52
|
-
};
|
|
53
|
-
const DSCardWrapperWithSchema = describe(CardWrapper);
|
|
54
|
-
DSCardWrapperWithSchema.propTypes = props;
|
|
55
|
-
const CardWrapperComponent = /*#__PURE__*/React.memo(CardWrapper);
|
|
56
|
-
|
|
57
|
-
export { CardWrapperComponent, DSCardWrapperWithSchema };
|
package/esm/index.js
DELETED