@elliemae/ds-card-array 2.0.0-alpha.0 → 2.0.0-alpha.12
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/components/CardBox.js +23 -15
- package/cjs/components/CardWrapper.js +23 -15
- package/cjs/index.js +1 -1
- package/esm/components/CardBox.js +21 -13
- package/esm/components/CardWrapper.js +21 -13
- package/package.json +4 -8
- package/types/components/CardBox.d.ts +10 -12
- package/types/components/CardWrapper.d.ts +10 -12
- package/cjs/package.json +0 -7
- package/esm/package.json +0 -7
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
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');
|
|
5
10
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
11
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
7
12
|
var React = require('react');
|
|
@@ -20,22 +25,25 @@ const _excluded = ["size"];
|
|
|
20
25
|
|
|
21
26
|
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
27
|
|
|
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[
|
|
24
|
-
const Block = dsClassnames.aggregatedClasses('div')(blockname.blockName, 'box',
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
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; }
|
|
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 => {
|
|
35
43
|
let {
|
|
36
44
|
size = 1
|
|
37
|
-
} =
|
|
38
|
-
rest = _objectWithoutProperties__default[
|
|
45
|
+
} = _ref2,
|
|
46
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded);
|
|
39
47
|
|
|
40
48
|
return /*#__PURE__*/jsxRuntime.jsx(Block, _objectSpread({
|
|
41
49
|
size: size
|
|
@@ -54,7 +62,7 @@ const props = {
|
|
|
54
62
|
};
|
|
55
63
|
const DSCardBoxWithSchema = reactDesc.describe(CardBox);
|
|
56
64
|
DSCardBoxWithSchema.propTypes = props;
|
|
57
|
-
const CardBoxComponent = /*#__PURE__*/React__default[
|
|
65
|
+
const CardBoxComponent = /*#__PURE__*/React__default["default"].memo(CardBox);
|
|
58
66
|
|
|
59
67
|
exports.CardBoxComponent = CardBoxComponent;
|
|
60
68
|
exports.DSCardBoxWithSchema = DSCardBoxWithSchema;
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
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');
|
|
5
10
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
11
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
7
12
|
var React = require('react');
|
|
@@ -20,22 +25,25 @@ const _excluded = ["columns"];
|
|
|
20
25
|
|
|
21
26
|
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
27
|
|
|
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[
|
|
24
|
-
const Block = dsClassnames.aggregatedClasses('div')(blockname.blockName, 'wrapper',
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
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; }
|
|
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 => {
|
|
35
43
|
let {
|
|
36
44
|
columns = 3
|
|
37
|
-
} =
|
|
38
|
-
rest = _objectWithoutProperties__default[
|
|
45
|
+
} = _ref2,
|
|
46
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded);
|
|
39
47
|
|
|
40
48
|
return /*#__PURE__*/jsxRuntime.jsx(Block, _objectSpread({
|
|
41
49
|
columns: columns
|
|
@@ -54,7 +62,7 @@ const props = {
|
|
|
54
62
|
};
|
|
55
63
|
const DSCardWrapperWithSchema = reactDesc.describe(CardWrapper);
|
|
56
64
|
DSCardWrapperWithSchema.propTypes = props;
|
|
57
|
-
const CardWrapperComponent = /*#__PURE__*/React__default[
|
|
65
|
+
const CardWrapperComponent = /*#__PURE__*/React__default["default"].memo(CardWrapper);
|
|
58
66
|
|
|
59
67
|
exports.CardWrapperComponent = CardWrapperComponent;
|
|
60
68
|
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;
|
|
@@ -1,3 +1,8 @@
|
|
|
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';
|
|
1
6
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
7
|
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
3
8
|
import React from 'react';
|
|
@@ -11,21 +16,24 @@ const _excluded = ["size"];
|
|
|
11
16
|
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; }
|
|
12
17
|
|
|
13
18
|
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(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; }
|
|
14
|
-
const Block = aggregatedClasses('div')(blockName, 'box',
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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 => {
|
|
25
33
|
let {
|
|
26
34
|
size = 1
|
|
27
|
-
} =
|
|
28
|
-
rest = _objectWithoutProperties(
|
|
35
|
+
} = _ref2,
|
|
36
|
+
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
29
37
|
|
|
30
38
|
return /*#__PURE__*/jsx(Block, _objectSpread({
|
|
31
39
|
size: size
|
|
@@ -1,3 +1,8 @@
|
|
|
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';
|
|
1
6
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
7
|
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
3
8
|
import React from 'react';
|
|
@@ -11,21 +16,24 @@ const _excluded = ["columns"];
|
|
|
11
16
|
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; }
|
|
12
17
|
|
|
13
18
|
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(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; }
|
|
14
|
-
const Block = aggregatedClasses('div')(blockName, 'wrapper',
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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 => {
|
|
25
33
|
let {
|
|
26
34
|
columns = 3
|
|
27
|
-
} =
|
|
28
|
-
rest = _objectWithoutProperties(
|
|
35
|
+
} = _ref2,
|
|
36
|
+
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
29
37
|
|
|
30
38
|
return /*#__PURE__*/jsx(Block, _objectSpread({
|
|
31
39
|
columns: columns
|
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.12",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Card Array",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -48,17 +48,13 @@
|
|
|
48
48
|
"build": "node ../../scripts/build/build.js"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@elliemae/ds-
|
|
52
|
-
"
|
|
53
|
-
},
|
|
54
|
-
"devDependencies": {
|
|
55
|
-
"styled-components": "~5.3.1"
|
|
51
|
+
"@elliemae/ds-classnames": "2.0.0-alpha.12",
|
|
52
|
+
"react-desc": "~4.1.3"
|
|
56
53
|
},
|
|
57
54
|
"peerDependencies": {
|
|
58
55
|
"lodash": "^4.17.21",
|
|
59
56
|
"react": "~17.0.2",
|
|
60
|
-
"react-dom": "^17.0.2"
|
|
61
|
-
"styled-components": "^5.3.1"
|
|
57
|
+
"react-dom": "^17.0.2"
|
|
62
58
|
},
|
|
63
59
|
"publishConfig": {
|
|
64
60
|
"access": "public",
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
import React from 'react';
|
|
2
|
-
declare const DSCardBoxWithSchema:
|
|
3
|
-
|
|
4
|
-
({ size, ...rest }: {
|
|
3
|
+
declare const DSCardBoxWithSchema: {
|
|
4
|
+
(props?: {
|
|
5
5
|
[x: string]: any;
|
|
6
6
|
size?: number | undefined;
|
|
7
|
-
}): JSX.Element;
|
|
8
|
-
propTypes:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
smSize: any;
|
|
15
|
-
};
|
|
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;
|
|
16
14
|
}>;
|
|
17
15
|
export { CardBoxComponent, DSCardBoxWithSchema };
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
import React from 'react';
|
|
2
|
-
declare const DSCardWrapperWithSchema:
|
|
3
|
-
|
|
4
|
-
({ columns, ...rest }: {
|
|
3
|
+
declare const DSCardWrapperWithSchema: {
|
|
4
|
+
(props?: {
|
|
5
5
|
[x: string]: any;
|
|
6
6
|
columns?: number | undefined;
|
|
7
|
-
}): JSX.Element;
|
|
8
|
-
propTypes:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
smColumns: any;
|
|
15
|
-
};
|
|
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;
|
|
16
14
|
}>;
|
|
17
15
|
export { CardWrapperComponent, DSCardWrapperWithSchema };
|
package/cjs/package.json
DELETED