@elliemae/ds-card-array 2.0.0-alpha.3 → 2.0.0-alpha.7
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.
|
@@ -20,7 +20,7 @@ const _excluded = ["size"];
|
|
|
20
20
|
|
|
21
21
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
22
22
|
|
|
23
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default[
|
|
23
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
24
24
|
const Block = dsClassnames.aggregatedClasses('div')(blockname.blockName, 'box', ({
|
|
25
25
|
size,
|
|
26
26
|
mdSize,
|
|
@@ -35,7 +35,7 @@ const CardBox = _ref => {
|
|
|
35
35
|
let {
|
|
36
36
|
size = 1
|
|
37
37
|
} = _ref,
|
|
38
|
-
rest = _objectWithoutProperties__default[
|
|
38
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
39
39
|
|
|
40
40
|
return /*#__PURE__*/jsxRuntime.jsx(Block, _objectSpread({
|
|
41
41
|
size: size
|
|
@@ -54,7 +54,7 @@ const props = {
|
|
|
54
54
|
};
|
|
55
55
|
const DSCardBoxWithSchema = reactDesc.describe(CardBox);
|
|
56
56
|
DSCardBoxWithSchema.propTypes = props;
|
|
57
|
-
const CardBoxComponent = /*#__PURE__*/React__default[
|
|
57
|
+
const CardBoxComponent = /*#__PURE__*/React__default["default"].memo(CardBox);
|
|
58
58
|
|
|
59
59
|
exports.CardBoxComponent = CardBoxComponent;
|
|
60
60
|
exports.DSCardBoxWithSchema = DSCardBoxWithSchema;
|
|
@@ -20,7 +20,7 @@ const _excluded = ["columns"];
|
|
|
20
20
|
|
|
21
21
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
22
22
|
|
|
23
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default[
|
|
23
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
24
24
|
const Block = dsClassnames.aggregatedClasses('div')(blockname.blockName, 'wrapper', ({
|
|
25
25
|
columns,
|
|
26
26
|
mdColumns,
|
|
@@ -35,7 +35,7 @@ const CardWrapper = _ref => {
|
|
|
35
35
|
let {
|
|
36
36
|
columns = 3
|
|
37
37
|
} = _ref,
|
|
38
|
-
rest = _objectWithoutProperties__default[
|
|
38
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
39
39
|
|
|
40
40
|
return /*#__PURE__*/jsxRuntime.jsx(Block, _objectSpread({
|
|
41
41
|
columns: columns
|
|
@@ -54,7 +54,7 @@ const props = {
|
|
|
54
54
|
};
|
|
55
55
|
const DSCardWrapperWithSchema = reactDesc.describe(CardWrapper);
|
|
56
56
|
DSCardWrapperWithSchema.propTypes = props;
|
|
57
|
-
const CardWrapperComponent = /*#__PURE__*/React__default[
|
|
57
|
+
const CardWrapperComponent = /*#__PURE__*/React__default["default"].memo(CardWrapper);
|
|
58
58
|
|
|
59
59
|
exports.CardWrapperComponent = CardWrapperComponent;
|
|
60
60
|
exports.DSCardWrapperWithSchema = DSCardWrapperWithSchema;
|
package/cjs/index.js
CHANGED
|
@@ -8,6 +8,6 @@ var CardWrapper = require('./components/CardWrapper.js');
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports
|
|
11
|
+
exports["default"] = DSCardArray;
|
|
12
12
|
exports.DSCardBoxWithSchema = CardBox.DSCardBoxWithSchema;
|
|
13
13
|
exports.DSCardWrapperWithSchema = CardWrapper.DSCardWrapperWithSchema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-card-array",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Card Array",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"build": "node ../../scripts/build/build.js"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@elliemae/ds-basic": "2.0.0-alpha.
|
|
52
|
-
"@elliemae/ds-classnames": "2.0.0-alpha.
|
|
51
|
+
"@elliemae/ds-basic": "2.0.0-alpha.7",
|
|
52
|
+
"@elliemae/ds-classnames": "2.0.0-alpha.7"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"styled-components": "~5.3.1"
|