@elliemae/ds-card-array 2.2.0-next.6 → 2.3.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/DSCardArray.js +39 -9
- package/cjs/DSCardArray.js.map +7 -0
- package/cjs/components/CardBox.js +52 -63
- package/cjs/components/CardBox.js.map +7 -0
- package/cjs/components/CardWrapper.js +52 -63
- package/cjs/components/CardWrapper.js.map +7 -0
- package/cjs/components/blockname.js +35 -7
- package/cjs/components/blockname.js.map +7 -0
- package/cjs/index.js +39 -13
- package/cjs/index.js.map +7 -0
- package/esm/DSCardArray.js +8 -5
- package/esm/DSCardArray.js.map +7 -0
- package/esm/components/CardBox.js +23 -52
- package/esm/components/CardBox.js.map +7 -0
- package/esm/components/CardWrapper.js +23 -52
- package/esm/components/CardWrapper.js.map +7 -0
- package/esm/components/blockname.js +6 -3
- package/esm/components/blockname.js.map +7 -0
- package/esm/index.js +10 -3
- package/esm/index.js.map +7 -0
- package/package.json +2 -2
- package/types/components/CardBox.d.ts +1 -4
- package/types/components/CardWrapper.d.ts +1 -4
- package/types/index.d.ts +1 -1
package/cjs/DSCardArray.js
CHANGED
|
@@ -1,10 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
|
|
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");
|
|
6
35
|
const DSCardArray = {};
|
|
7
|
-
DSCardArray.Wrapper =
|
|
8
|
-
DSCardArray.CardBox =
|
|
9
|
-
|
|
10
|
-
module.exports =
|
|
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
|
+
}
|
|
@@ -1,68 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
|
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);
|
|
39
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
|
|
40
46
|
});
|
|
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
47
|
const props = {
|
|
54
|
-
|
|
55
|
-
|
|
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')
|
|
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")
|
|
62
51
|
};
|
|
63
|
-
|
|
52
|
+
CardBox.propTypes = props;
|
|
53
|
+
const DSCardBoxWithSchema = (0, import_react_desc.describe)(CardBox);
|
|
64
54
|
DSCardBoxWithSchema.propTypes = props;
|
|
65
|
-
const CardBoxComponent =
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
exports.DSCardBoxWithSchema = DSCardBoxWithSchema;
|
|
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
|
+
}
|
|
@@ -1,68 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
|
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);
|
|
39
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
|
|
40
46
|
});
|
|
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
47
|
const props = {
|
|
54
|
-
|
|
55
|
-
|
|
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')
|
|
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")
|
|
62
51
|
};
|
|
63
|
-
|
|
52
|
+
CardWrapper.propTypes = props;
|
|
53
|
+
const DSCardWrapperWithSchema = (0, import_react_desc.describe)(CardWrapper);
|
|
64
54
|
DSCardWrapperWithSchema.propTypes = props;
|
|
65
|
-
const CardWrapperComponent =
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
exports.DSCardWrapperWithSchema = DSCardWrapperWithSchema;
|
|
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
|
+
}
|
|
@@ -1,7 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
+
}
|
package/cjs/index.js
CHANGED
|
@@ -1,13 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
package/cjs/index.js.map
ADDED
|
@@ -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
|
+
}
|
package/esm/DSCardArray.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { CardWrapperComponent } from "./components/CardWrapper";
|
|
3
|
+
import { CardBoxComponent } from "./components/CardBox";
|
|
4
4
|
const DSCardArray = {};
|
|
5
5
|
DSCardArray.Wrapper = CardWrapperComponent;
|
|
6
6
|
DSCardArray.CardBox = CardBoxComponent;
|
|
7
|
-
|
|
8
|
-
export {
|
|
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
|
+
}
|
|
@@ -1,57 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
};
|
|
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
|
|
30
14
|
});
|
|
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
15
|
const props = {
|
|
44
|
-
|
|
45
|
-
|
|
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')
|
|
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")
|
|
52
19
|
};
|
|
20
|
+
CardBox.propTypes = props;
|
|
53
21
|
const DSCardBoxWithSchema = describe(CardBox);
|
|
54
22
|
DSCardBoxWithSchema.propTypes = props;
|
|
55
|
-
const CardBoxComponent =
|
|
56
|
-
|
|
57
|
-
|
|
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
|
+
}
|
|
@@ -1,57 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
};
|
|
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
|
|
30
14
|
});
|
|
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
15
|
const props = {
|
|
44
|
-
|
|
45
|
-
|
|
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')
|
|
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")
|
|
52
19
|
};
|
|
20
|
+
CardWrapper.propTypes = props;
|
|
53
21
|
const DSCardWrapperWithSchema = describe(CardWrapper);
|
|
54
22
|
DSCardWrapperWithSchema.propTypes = props;
|
|
55
|
-
const CardWrapperComponent =
|
|
56
|
-
|
|
57
|
-
|
|
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
|
+
}
|
package/esm/index.js
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
package/esm/index.js.map
ADDED
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-card-array",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0-alpha.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Card Array",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"build": "node ../../scripts/build/build.js"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@elliemae/ds-classnames": "2.
|
|
51
|
+
"@elliemae/ds-classnames": "2.3.0-alpha.1",
|
|
52
52
|
"react-desc": "~4.1.3"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
declare const DSCardBoxWithSchema: {
|
|
4
|
-
(props?:
|
|
5
|
-
[x: string]: any;
|
|
6
|
-
size?: number | undefined;
|
|
7
|
-
} | undefined): JSX.Element;
|
|
4
|
+
(props?: unknown): JSX.Element;
|
|
8
5
|
propTypes: unknown;
|
|
9
6
|
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
10
7
|
};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
declare const DSCardWrapperWithSchema: {
|
|
4
|
-
(props?:
|
|
5
|
-
[x: string]: any;
|
|
6
|
-
columns?: number | undefined;
|
|
7
|
-
} | undefined): JSX.Element;
|
|
4
|
+
(props?: unknown): JSX.Element;
|
|
8
5
|
propTypes: unknown;
|
|
9
6
|
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
10
7
|
};
|
package/types/index.d.ts
CHANGED