@elliemae/ds-card-array 3.0.0-next.2 → 3.0.0-next.6
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 +87 -0
- package/dist/cjs/components/CardBox.js.map +7 -0
- package/dist/cjs/components/CardWrapper.js +87 -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 +60 -0
- package/dist/esm/components/CardBox.js.map +7 -0
- package/dist/esm/components/CardWrapper.js +60 -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/package.json +34 -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
- package/types/DSCardArray.d.ts +0 -2
- package/types/components/CardBox.d.ts +0 -15
- package/types/components/CardWrapper.d.ts +0 -15
- package/types/components/blockname.d.ts +0 -1
- package/types/index.d.ts +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,87 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
9
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
+
var __spreadValues = (a, b) => {
|
|
11
|
+
for (var prop in b || (b = {}))
|
|
12
|
+
if (__hasOwnProp.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
if (__getOwnPropSymbols)
|
|
15
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
16
|
+
if (__propIsEnum.call(b, prop))
|
|
17
|
+
__defNormalProp(a, prop, b[prop]);
|
|
18
|
+
}
|
|
19
|
+
return a;
|
|
20
|
+
};
|
|
21
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
22
|
+
var __objRest = (source, exclude) => {
|
|
23
|
+
var target = {};
|
|
24
|
+
for (var prop in source)
|
|
25
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
26
|
+
target[prop] = source[prop];
|
|
27
|
+
if (source != null && __getOwnPropSymbols)
|
|
28
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
29
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
30
|
+
target[prop] = source[prop];
|
|
31
|
+
}
|
|
32
|
+
return target;
|
|
33
|
+
};
|
|
34
|
+
var __export = (target, all) => {
|
|
35
|
+
for (var name in all)
|
|
36
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
37
|
+
};
|
|
38
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
39
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
40
|
+
for (let key of __getOwnPropNames(module2))
|
|
41
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
42
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
43
|
+
}
|
|
44
|
+
return target;
|
|
45
|
+
};
|
|
46
|
+
var __toESM = (module2, isNodeMode) => {
|
|
47
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
48
|
+
};
|
|
49
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
50
|
+
return (module2, temp) => {
|
|
51
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
52
|
+
};
|
|
53
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
54
|
+
var CardBox_exports = {};
|
|
55
|
+
__export(CardBox_exports, {
|
|
56
|
+
CardBoxComponent: () => CardBoxComponent,
|
|
57
|
+
DSCardBoxWithSchema: () => DSCardBoxWithSchema
|
|
58
|
+
});
|
|
59
|
+
var React = __toESM(require("react"));
|
|
60
|
+
var import_react = __toESM(require("react"));
|
|
61
|
+
var import_react_desc = require("react-desc");
|
|
62
|
+
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
63
|
+
var import_ds_classnames = require("@elliemae/ds-classnames");
|
|
64
|
+
var import_blockname = require("./blockname");
|
|
65
|
+
const Block = (0, import_ds_classnames.aggregatedClasses)("div")(import_blockname.blockName, "box", ({ size, mdSize, smSize }) => ({
|
|
66
|
+
[`box-lg-${size}`]: size,
|
|
67
|
+
[`box-md-${mdSize}`]: mdSize,
|
|
68
|
+
[`box-sm-${smSize}`]: smSize
|
|
69
|
+
}));
|
|
70
|
+
const CardBox = (_a) => {
|
|
71
|
+
var _b = _a, { size = 1 } = _b, rest = __objRest(_b, ["size"]);
|
|
72
|
+
(0, import_ds_props_helpers.useDeprecateComponent)({ componentName: "ds-card-array", version: "3.x" });
|
|
73
|
+
return /* @__PURE__ */ import_react.default.createElement(Block, __spreadValues({
|
|
74
|
+
size
|
|
75
|
+
}, rest));
|
|
76
|
+
};
|
|
77
|
+
const props = {
|
|
78
|
+
size: import_react_desc.PropTypes.number.description("size for large card array box"),
|
|
79
|
+
mdSize: import_react_desc.PropTypes.number.description("size for medium card array box"),
|
|
80
|
+
smSize: import_react_desc.PropTypes.number.description("size for small card array box")
|
|
81
|
+
};
|
|
82
|
+
CardBox.propTypes = props;
|
|
83
|
+
const DSCardBoxWithSchema = (0, import_react_desc.describe)(CardBox);
|
|
84
|
+
DSCardBoxWithSchema.propTypes = props;
|
|
85
|
+
const CardBoxComponent = import_react.default.memo(CardBox);
|
|
86
|
+
module.exports = __toCommonJS(CardBox_exports);
|
|
87
|
+
//# 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 { useDeprecateComponent } from '@elliemae/ds-props-helpers';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { blockName } from './blockname';\n\nconst Block = aggregatedClasses('div')(blockName, 'box', ({ size, mdSize, smSize }) => ({\n [`box-lg-${size}`]: size,\n [`box-md-${mdSize}`]: mdSize,\n [`box-sm-${smSize}`]: smSize,\n}));\n\nconst CardBox = ({ size = 1, ...rest }) => {\n useDeprecateComponent({ componentName: 'ds-card-array', version: '3.x' });\n\n return <Block size={size} {...rest} />;\n};\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,8BAAsC;AACtC,2BAAkC;AAClC,uBAA0B;AAE1B,MAAM,QAAQ,4CAAkB,OAAO,4BAAW,OAAO,CAAC,EAAE,MAAM,QAAQ,aAAc;AAAA,GACrF,UAAU,SAAS;AAAA,GACnB,UAAU,WAAW;AAAA,GACrB,UAAU,WAAW;AAAA;AAGxB,MAAM,UAAU,CAAC,OAA0B;AAA1B,eAAE,SAAO,MAAT,IAAe,iBAAf,IAAe,CAAb;AACjB,qDAAsB,EAAE,eAAe,iBAAiB,SAAS;AAEjE,SAAO,mDAAC,OAAD;AAAA,IAAO;AAAA,KAAgB;AAAA;AAGhC,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,87 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
9
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
+
var __spreadValues = (a, b) => {
|
|
11
|
+
for (var prop in b || (b = {}))
|
|
12
|
+
if (__hasOwnProp.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
if (__getOwnPropSymbols)
|
|
15
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
16
|
+
if (__propIsEnum.call(b, prop))
|
|
17
|
+
__defNormalProp(a, prop, b[prop]);
|
|
18
|
+
}
|
|
19
|
+
return a;
|
|
20
|
+
};
|
|
21
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
22
|
+
var __objRest = (source, exclude) => {
|
|
23
|
+
var target = {};
|
|
24
|
+
for (var prop in source)
|
|
25
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
26
|
+
target[prop] = source[prop];
|
|
27
|
+
if (source != null && __getOwnPropSymbols)
|
|
28
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
29
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
30
|
+
target[prop] = source[prop];
|
|
31
|
+
}
|
|
32
|
+
return target;
|
|
33
|
+
};
|
|
34
|
+
var __export = (target, all) => {
|
|
35
|
+
for (var name in all)
|
|
36
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
37
|
+
};
|
|
38
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
39
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
40
|
+
for (let key of __getOwnPropNames(module2))
|
|
41
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
42
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
43
|
+
}
|
|
44
|
+
return target;
|
|
45
|
+
};
|
|
46
|
+
var __toESM = (module2, isNodeMode) => {
|
|
47
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
48
|
+
};
|
|
49
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
50
|
+
return (module2, temp) => {
|
|
51
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
52
|
+
};
|
|
53
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
54
|
+
var CardWrapper_exports = {};
|
|
55
|
+
__export(CardWrapper_exports, {
|
|
56
|
+
CardWrapperComponent: () => CardWrapperComponent,
|
|
57
|
+
DSCardWrapperWithSchema: () => DSCardWrapperWithSchema
|
|
58
|
+
});
|
|
59
|
+
var React = __toESM(require("react"));
|
|
60
|
+
var import_react = __toESM(require("react"));
|
|
61
|
+
var import_react_desc = require("react-desc");
|
|
62
|
+
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
63
|
+
var import_ds_classnames = require("@elliemae/ds-classnames");
|
|
64
|
+
var import_blockname = require("./blockname");
|
|
65
|
+
const Block = (0, import_ds_classnames.aggregatedClasses)("div")(import_blockname.blockName, "wrapper", ({ columns, mdColumns, smColumns }) => ({
|
|
66
|
+
[`cols-lg-${columns}`]: columns,
|
|
67
|
+
[`cols-md-${mdColumns}`]: mdColumns,
|
|
68
|
+
[`cols-sm-${smColumns}`]: smColumns
|
|
69
|
+
}));
|
|
70
|
+
const CardWrapper = (_a) => {
|
|
71
|
+
var _b = _a, { columns = 3 } = _b, rest = __objRest(_b, ["columns"]);
|
|
72
|
+
(0, import_ds_props_helpers.useDeprecateComponent)({ componentName: "ds-card-array", version: "3.x" });
|
|
73
|
+
return /* @__PURE__ */ import_react.default.createElement(Block, __spreadValues({
|
|
74
|
+
columns
|
|
75
|
+
}, rest));
|
|
76
|
+
};
|
|
77
|
+
const props = {
|
|
78
|
+
columns: import_react_desc.PropTypes.number.description("card wrapper large column size"),
|
|
79
|
+
mdColumns: import_react_desc.PropTypes.number.description("card wrapper medium column size"),
|
|
80
|
+
smColumns: import_react_desc.PropTypes.number.description("card wrapper small column size")
|
|
81
|
+
};
|
|
82
|
+
CardWrapper.propTypes = props;
|
|
83
|
+
const DSCardWrapperWithSchema = (0, import_react_desc.describe)(CardWrapper);
|
|
84
|
+
DSCardWrapperWithSchema.propTypes = props;
|
|
85
|
+
const CardWrapperComponent = import_react.default.memo(CardWrapper);
|
|
86
|
+
module.exports = __toCommonJS(CardWrapper_exports);
|
|
87
|
+
//# 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 { useDeprecateComponent } from '@elliemae/ds-props-helpers';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { blockName } from './blockname';\n\nconst Block = aggregatedClasses('div')(blockName, 'wrapper', ({ columns, mdColumns, smColumns }) => ({\n [`cols-lg-${columns}`]: columns,\n [`cols-md-${mdColumns}`]: mdColumns,\n [`cols-sm-${smColumns}`]: smColumns,\n}));\n\nconst CardWrapper = ({ columns = 3, ...rest }) => {\n useDeprecateComponent({ componentName: 'ds-card-array', version: '3.x' });\n return <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,8BAAsC;AACtC,2BAAkC;AAClC,uBAA0B;AAE1B,MAAM,QAAQ,4CAAkB,OAAO,4BAAW,WAAW,CAAC,EAAE,SAAS,WAAW,gBAAiB;AAAA,GAClG,WAAW,YAAY;AAAA,GACvB,WAAW,cAAc;AAAA,GACzB,WAAW,cAAc;AAAA;AAG5B,MAAM,cAAc,CAAC,OAA6B;AAA7B,eAAE,YAAU,MAAZ,IAAkB,iBAAlB,IAAkB,CAAhB;AACrB,qDAAsB,EAAE,eAAe,iBAAiB,SAAS;AACjE,SAAO,mDAAC,OAAD;AAAA,IAAO;AAAA,KAAsB;AAAA;AAGtC,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,60 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
var __objRest = (source, exclude) => {
|
|
18
|
+
var target = {};
|
|
19
|
+
for (var prop in source)
|
|
20
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
21
|
+
target[prop] = source[prop];
|
|
22
|
+
if (source != null && __getOwnPropSymbols)
|
|
23
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
24
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
25
|
+
target[prop] = source[prop];
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
};
|
|
29
|
+
import * as React from "react";
|
|
30
|
+
import React2 from "react";
|
|
31
|
+
import { PropTypes, describe } from "react-desc";
|
|
32
|
+
import { useDeprecateComponent } from "@elliemae/ds-props-helpers";
|
|
33
|
+
import { aggregatedClasses } from "@elliemae/ds-classnames";
|
|
34
|
+
import { blockName } from "./blockname";
|
|
35
|
+
const Block = aggregatedClasses("div")(blockName, "box", ({ size, mdSize, smSize }) => ({
|
|
36
|
+
[`box-lg-${size}`]: size,
|
|
37
|
+
[`box-md-${mdSize}`]: mdSize,
|
|
38
|
+
[`box-sm-${smSize}`]: smSize
|
|
39
|
+
}));
|
|
40
|
+
const CardBox = (_a) => {
|
|
41
|
+
var _b = _a, { size = 1 } = _b, rest = __objRest(_b, ["size"]);
|
|
42
|
+
useDeprecateComponent({ componentName: "ds-card-array", version: "3.x" });
|
|
43
|
+
return /* @__PURE__ */ React2.createElement(Block, __spreadValues({
|
|
44
|
+
size
|
|
45
|
+
}, rest));
|
|
46
|
+
};
|
|
47
|
+
const props = {
|
|
48
|
+
size: PropTypes.number.description("size for large card array box"),
|
|
49
|
+
mdSize: PropTypes.number.description("size for medium card array box"),
|
|
50
|
+
smSize: PropTypes.number.description("size for small card array box")
|
|
51
|
+
};
|
|
52
|
+
CardBox.propTypes = props;
|
|
53
|
+
const DSCardBoxWithSchema = describe(CardBox);
|
|
54
|
+
DSCardBoxWithSchema.propTypes = props;
|
|
55
|
+
const CardBoxComponent = React2.memo(CardBox);
|
|
56
|
+
export {
|
|
57
|
+
CardBoxComponent,
|
|
58
|
+
DSCardBoxWithSchema
|
|
59
|
+
};
|
|
60
|
+
//# 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 { useDeprecateComponent } from '@elliemae/ds-props-helpers';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { blockName } from './blockname';\n\nconst Block = aggregatedClasses('div')(blockName, 'box', ({ size, mdSize, smSize }) => ({\n [`box-lg-${size}`]: size,\n [`box-md-${mdSize}`]: mdSize,\n [`box-sm-${smSize}`]: smSize,\n}));\n\nconst CardBox = ({ size = 1, ...rest }) => {\n useDeprecateComponent({ componentName: 'ds-card-array', version: '3.x' });\n\n return <Block size={size} {...rest} />;\n};\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;AACA;AAEA,MAAM,QAAQ,kBAAkB,OAAO,WAAW,OAAO,CAAC,EAAE,MAAM,QAAQ,aAAc;AAAA,GACrF,UAAU,SAAS;AAAA,GACnB,UAAU,WAAW;AAAA,GACrB,UAAU,WAAW;AAAA;AAGxB,MAAM,UAAU,CAAC,OAA0B;AAA1B,eAAE,SAAO,MAAT,IAAe,iBAAf,IAAe,CAAb;AACjB,wBAAsB,EAAE,eAAe,iBAAiB,SAAS;AAEjE,SAAO,qCAAC,OAAD;AAAA,IAAO;AAAA,KAAgB;AAAA;AAGhC,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,60 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
var __objRest = (source, exclude) => {
|
|
18
|
+
var target = {};
|
|
19
|
+
for (var prop in source)
|
|
20
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
21
|
+
target[prop] = source[prop];
|
|
22
|
+
if (source != null && __getOwnPropSymbols)
|
|
23
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
24
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
25
|
+
target[prop] = source[prop];
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
};
|
|
29
|
+
import * as React from "react";
|
|
30
|
+
import React2 from "react";
|
|
31
|
+
import { PropTypes, describe } from "react-desc";
|
|
32
|
+
import { useDeprecateComponent } from "@elliemae/ds-props-helpers";
|
|
33
|
+
import { aggregatedClasses } from "@elliemae/ds-classnames";
|
|
34
|
+
import { blockName } from "./blockname";
|
|
35
|
+
const Block = aggregatedClasses("div")(blockName, "wrapper", ({ columns, mdColumns, smColumns }) => ({
|
|
36
|
+
[`cols-lg-${columns}`]: columns,
|
|
37
|
+
[`cols-md-${mdColumns}`]: mdColumns,
|
|
38
|
+
[`cols-sm-${smColumns}`]: smColumns
|
|
39
|
+
}));
|
|
40
|
+
const CardWrapper = (_a) => {
|
|
41
|
+
var _b = _a, { columns = 3 } = _b, rest = __objRest(_b, ["columns"]);
|
|
42
|
+
useDeprecateComponent({ componentName: "ds-card-array", version: "3.x" });
|
|
43
|
+
return /* @__PURE__ */ React2.createElement(Block, __spreadValues({
|
|
44
|
+
columns
|
|
45
|
+
}, rest));
|
|
46
|
+
};
|
|
47
|
+
const props = {
|
|
48
|
+
columns: PropTypes.number.description("card wrapper large column size"),
|
|
49
|
+
mdColumns: PropTypes.number.description("card wrapper medium column size"),
|
|
50
|
+
smColumns: PropTypes.number.description("card wrapper small column size")
|
|
51
|
+
};
|
|
52
|
+
CardWrapper.propTypes = props;
|
|
53
|
+
const DSCardWrapperWithSchema = describe(CardWrapper);
|
|
54
|
+
DSCardWrapperWithSchema.propTypes = props;
|
|
55
|
+
const CardWrapperComponent = React2.memo(CardWrapper);
|
|
56
|
+
export {
|
|
57
|
+
CardWrapperComponent,
|
|
58
|
+
DSCardWrapperWithSchema
|
|
59
|
+
};
|
|
60
|
+
//# 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 { useDeprecateComponent } from '@elliemae/ds-props-helpers';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { blockName } from './blockname';\n\nconst Block = aggregatedClasses('div')(blockName, 'wrapper', ({ columns, mdColumns, smColumns }) => ({\n [`cols-lg-${columns}`]: columns,\n [`cols-md-${mdColumns}`]: mdColumns,\n [`cols-sm-${smColumns}`]: smColumns,\n}));\n\nconst CardWrapper = ({ columns = 3, ...rest }) => {\n useDeprecateComponent({ componentName: 'ds-card-array', version: '3.x' });\n return <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;AACA;AAEA,MAAM,QAAQ,kBAAkB,OAAO,WAAW,WAAW,CAAC,EAAE,SAAS,WAAW,gBAAiB;AAAA,GAClG,WAAW,YAAY;AAAA,GACvB,WAAW,cAAc;AAAA,GACzB,WAAW,cAAc;AAAA;AAG5B,MAAM,cAAc,CAAC,OAA6B;AAA7B,eAAE,YAAU,MAAZ,IAAkB,iBAAlB,IAAkB,CAAhB;AACrB,wBAAsB,EAAE,eAAe,iBAAiB,SAAS;AACjE,SAAO,qCAAC,OAAD;AAAA,IAAO;AAAA,KAAsB;AAAA;AAGtC,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
|
+
}
|
package/package.json
CHANGED
|
@@ -1,31 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-card-array",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.6",
|
|
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,19 @@
|
|
|
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": "3.0.0-next.
|
|
54
|
+
"@elliemae/ds-classnames": "3.0.0-next.6",
|
|
55
|
+
"@elliemae/ds-props-helpers": "3.0.0-next.6",
|
|
52
56
|
"react-desc": "~4.1.3"
|
|
53
57
|
},
|
|
54
58
|
"peerDependencies": {
|
|
@@ -58,7 +62,13 @@
|
|
|
58
62
|
},
|
|
59
63
|
"publishConfig": {
|
|
60
64
|
"access": "public",
|
|
61
|
-
"
|
|
62
|
-
|
|
65
|
+
"typeSafety": false
|
|
66
|
+
},
|
|
67
|
+
"scripts": {
|
|
68
|
+
"dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
|
|
69
|
+
"test": "node ../../scripts/testing/test.mjs",
|
|
70
|
+
"lint": "node ../../scripts/lint.mjs",
|
|
71
|
+
"dts": "node ../../scripts/dts.mjs",
|
|
72
|
+
"build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs"
|
|
63
73
|
}
|
|
64
74
|
}
|
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
package/types/DSCardArray.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
declare const DSCardBoxWithSchema: {
|
|
4
|
-
(props?: {
|
|
5
|
-
[x: string]: any;
|
|
6
|
-
size?: number | undefined;
|
|
7
|
-
} | undefined): JSX.Element;
|
|
8
|
-
propTypes: unknown;
|
|
9
|
-
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
10
|
-
};
|
|
11
|
-
declare const CardBoxComponent: React.NamedExoticComponent<{
|
|
12
|
-
[x: string]: any;
|
|
13
|
-
size?: number | undefined;
|
|
14
|
-
}>;
|
|
15
|
-
export { CardBoxComponent, DSCardBoxWithSchema };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
declare const DSCardWrapperWithSchema: {
|
|
4
|
-
(props?: {
|
|
5
|
-
[x: string]: any;
|
|
6
|
-
columns?: number | undefined;
|
|
7
|
-
} | undefined): JSX.Element;
|
|
8
|
-
propTypes: unknown;
|
|
9
|
-
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
10
|
-
};
|
|
11
|
-
declare const CardWrapperComponent: React.NamedExoticComponent<{
|
|
12
|
-
[x: string]: any;
|
|
13
|
-
columns?: number | undefined;
|
|
14
|
-
}>;
|
|
15
|
-
export { CardWrapperComponent, DSCardWrapperWithSchema };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const blockName = "card-array";
|
package/types/index.d.ts
DELETED