@elliemae/ds-separator 2.0.0-next.7 → 2.0.0-rc.2
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/DSSeparator.js +58 -44
- package/esm/DSSeparator.js +58 -44
- package/package.json +3 -3
package/cjs/DSSeparator.js
CHANGED
|
@@ -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 _jsx = require('@babel/runtime/helpers/jsx');
|
|
7
12
|
require('react');
|
|
@@ -29,57 +34,66 @@ const POSITION = {
|
|
|
29
34
|
CENTER: 'center',
|
|
30
35
|
END: 'end'
|
|
31
36
|
};
|
|
32
|
-
const SeparatorWrapper = dsClassnames.aggregatedClasses('div')('separator-wrapper', null,
|
|
33
|
-
|
|
34
|
-
orientation,
|
|
35
|
-
dashed,
|
|
36
|
-
position
|
|
37
|
-
}) => ({
|
|
38
|
-
dashed,
|
|
39
|
-
[margin]: margin,
|
|
40
|
-
[orientation]: orientation,
|
|
41
|
-
[position]: position
|
|
42
|
-
}));
|
|
43
|
-
const Separator = dsClassnames.aggregatedClasses('div')(blockName, null, ({
|
|
44
|
-
dashed,
|
|
45
|
-
margin,
|
|
46
|
-
orientation,
|
|
47
|
-
type
|
|
48
|
-
}) => ({
|
|
49
|
-
dashed,
|
|
50
|
-
[margin]: margin,
|
|
51
|
-
[orientation]: orientation,
|
|
52
|
-
[type]: type
|
|
53
|
-
}));
|
|
54
|
-
const types = ['category-level', 'group-level', 'non-form'];
|
|
55
|
-
|
|
56
|
-
const DSSeparator = ({
|
|
57
|
-
containerProps,
|
|
58
|
-
dashed,
|
|
59
|
-
margin,
|
|
60
|
-
orientation,
|
|
61
|
-
type,
|
|
62
|
-
position,
|
|
63
|
-
className,
|
|
64
|
-
style
|
|
65
|
-
}) => /*#__PURE__*/jsxRuntime.jsx(SeparatorWrapper, _objectSpread(_objectSpread({}, containerProps), {}, {
|
|
66
|
-
className: className,
|
|
67
|
-
classProps: {
|
|
37
|
+
const SeparatorWrapper = dsClassnames.aggregatedClasses('div')('separator-wrapper', null, _ref => {
|
|
38
|
+
let {
|
|
68
39
|
margin,
|
|
69
40
|
orientation,
|
|
70
41
|
dashed,
|
|
71
42
|
position
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
43
|
+
} = _ref;
|
|
44
|
+
return {
|
|
45
|
+
dashed,
|
|
46
|
+
[margin]: margin,
|
|
47
|
+
[orientation]: orientation,
|
|
48
|
+
[position]: position
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
const Separator = dsClassnames.aggregatedClasses('div')(blockName, null, _ref2 => {
|
|
52
|
+
let {
|
|
53
|
+
dashed,
|
|
54
|
+
margin,
|
|
55
|
+
orientation,
|
|
56
|
+
type
|
|
57
|
+
} = _ref2;
|
|
58
|
+
return {
|
|
59
|
+
dashed,
|
|
60
|
+
[margin]: margin,
|
|
61
|
+
[orientation]: orientation,
|
|
62
|
+
[type]: type
|
|
63
|
+
};
|
|
64
|
+
});
|
|
65
|
+
const types = ['category-level', 'group-level', 'non-form'];
|
|
66
|
+
|
|
67
|
+
const DSSeparator = _ref3 => {
|
|
68
|
+
let {
|
|
69
|
+
containerProps,
|
|
70
|
+
dashed,
|
|
71
|
+
margin,
|
|
72
|
+
orientation,
|
|
73
|
+
type,
|
|
74
|
+
position,
|
|
75
|
+
className,
|
|
76
|
+
style
|
|
77
|
+
} = _ref3;
|
|
78
|
+
return /*#__PURE__*/jsxRuntime.jsx(SeparatorWrapper, _objectSpread(_objectSpread({}, containerProps), {}, {
|
|
79
|
+
className: className,
|
|
75
80
|
classProps: {
|
|
76
|
-
dashed,
|
|
77
81
|
margin,
|
|
78
82
|
orientation,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
+
dashed,
|
|
84
|
+
position
|
|
85
|
+
},
|
|
86
|
+
style: style,
|
|
87
|
+
children: /*#__PURE__*/_jsx__default["default"](Separator, {
|
|
88
|
+
classProps: {
|
|
89
|
+
dashed,
|
|
90
|
+
margin,
|
|
91
|
+
orientation,
|
|
92
|
+
type
|
|
93
|
+
}
|
|
94
|
+
})
|
|
95
|
+
}));
|
|
96
|
+
};
|
|
83
97
|
|
|
84
98
|
DSSeparator.defaultProps = {
|
|
85
99
|
containerProps: {},
|
package/esm/DSSeparator.js
CHANGED
|
@@ -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 _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
3
8
|
import 'react';
|
|
@@ -20,57 +25,66 @@ const POSITION = {
|
|
|
20
25
|
CENTER: 'center',
|
|
21
26
|
END: 'end'
|
|
22
27
|
};
|
|
23
|
-
const SeparatorWrapper = aggregatedClasses('div')('separator-wrapper', null,
|
|
24
|
-
|
|
25
|
-
orientation,
|
|
26
|
-
dashed,
|
|
27
|
-
position
|
|
28
|
-
}) => ({
|
|
29
|
-
dashed,
|
|
30
|
-
[margin]: margin,
|
|
31
|
-
[orientation]: orientation,
|
|
32
|
-
[position]: position
|
|
33
|
-
}));
|
|
34
|
-
const Separator = aggregatedClasses('div')(blockName, null, ({
|
|
35
|
-
dashed,
|
|
36
|
-
margin,
|
|
37
|
-
orientation,
|
|
38
|
-
type
|
|
39
|
-
}) => ({
|
|
40
|
-
dashed,
|
|
41
|
-
[margin]: margin,
|
|
42
|
-
[orientation]: orientation,
|
|
43
|
-
[type]: type
|
|
44
|
-
}));
|
|
45
|
-
const types = ['category-level', 'group-level', 'non-form'];
|
|
46
|
-
|
|
47
|
-
const DSSeparator = ({
|
|
48
|
-
containerProps,
|
|
49
|
-
dashed,
|
|
50
|
-
margin,
|
|
51
|
-
orientation,
|
|
52
|
-
type,
|
|
53
|
-
position,
|
|
54
|
-
className,
|
|
55
|
-
style
|
|
56
|
-
}) => /*#__PURE__*/jsx(SeparatorWrapper, _objectSpread(_objectSpread({}, containerProps), {}, {
|
|
57
|
-
className: className,
|
|
58
|
-
classProps: {
|
|
28
|
+
const SeparatorWrapper = aggregatedClasses('div')('separator-wrapper', null, _ref => {
|
|
29
|
+
let {
|
|
59
30
|
margin,
|
|
60
31
|
orientation,
|
|
61
32
|
dashed,
|
|
62
33
|
position
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
34
|
+
} = _ref;
|
|
35
|
+
return {
|
|
36
|
+
dashed,
|
|
37
|
+
[margin]: margin,
|
|
38
|
+
[orientation]: orientation,
|
|
39
|
+
[position]: position
|
|
40
|
+
};
|
|
41
|
+
});
|
|
42
|
+
const Separator = aggregatedClasses('div')(blockName, null, _ref2 => {
|
|
43
|
+
let {
|
|
44
|
+
dashed,
|
|
45
|
+
margin,
|
|
46
|
+
orientation,
|
|
47
|
+
type
|
|
48
|
+
} = _ref2;
|
|
49
|
+
return {
|
|
50
|
+
dashed,
|
|
51
|
+
[margin]: margin,
|
|
52
|
+
[orientation]: orientation,
|
|
53
|
+
[type]: type
|
|
54
|
+
};
|
|
55
|
+
});
|
|
56
|
+
const types = ['category-level', 'group-level', 'non-form'];
|
|
57
|
+
|
|
58
|
+
const DSSeparator = _ref3 => {
|
|
59
|
+
let {
|
|
60
|
+
containerProps,
|
|
61
|
+
dashed,
|
|
62
|
+
margin,
|
|
63
|
+
orientation,
|
|
64
|
+
type,
|
|
65
|
+
position,
|
|
66
|
+
className,
|
|
67
|
+
style
|
|
68
|
+
} = _ref3;
|
|
69
|
+
return /*#__PURE__*/jsx(SeparatorWrapper, _objectSpread(_objectSpread({}, containerProps), {}, {
|
|
70
|
+
className: className,
|
|
66
71
|
classProps: {
|
|
67
|
-
dashed,
|
|
68
72
|
margin,
|
|
69
73
|
orientation,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
+
dashed,
|
|
75
|
+
position
|
|
76
|
+
},
|
|
77
|
+
style: style,
|
|
78
|
+
children: /*#__PURE__*/_jsx(Separator, {
|
|
79
|
+
classProps: {
|
|
80
|
+
dashed,
|
|
81
|
+
margin,
|
|
82
|
+
orientation,
|
|
83
|
+
type
|
|
84
|
+
}
|
|
85
|
+
})
|
|
86
|
+
}));
|
|
87
|
+
};
|
|
74
88
|
|
|
75
89
|
DSSeparator.defaultProps = {
|
|
76
90
|
containerProps: {},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-separator",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-rc.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Separator",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"build": "node ../../scripts/build/build.js"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@elliemae/ds-classnames": "2.0.0-
|
|
40
|
-
"react-desc": "
|
|
39
|
+
"@elliemae/ds-classnames": "2.0.0-rc.2",
|
|
40
|
+
"react-desc": "~4.1.3"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"react": "^17.0.2",
|