@elliemae/ds-separator 1.60.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.
@@ -2,79 +2,96 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var _extends = require('@babel/runtime/helpers/extends');
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');
6
10
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
7
- var React = require('react');
11
+ var _jsx = require('@babel/runtime/helpers/jsx');
12
+ require('react');
8
13
  var reactDesc = require('react-desc');
9
14
  var dsClassnames = require('@elliemae/ds-classnames');
15
+ var jsxRuntime = require('react/jsx-runtime');
10
16
 
11
17
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
12
18
 
13
- var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
14
19
  var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
15
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
20
+ var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
16
21
 
17
- var blockName = 'separator';
18
- var MARGIN_SIZE = {
22
+ 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; }
23
+
24
+ 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; }
25
+ const blockName = 'separator';
26
+ const MARGIN_SIZE = {
19
27
  S: 's',
20
28
  M: 'm',
21
29
  L: 'l',
22
30
  none: 'none'
23
31
  };
24
- var POSITION = {
32
+ const POSITION = {
25
33
  INITIAL: 'initial',
26
34
  CENTER: 'center',
27
35
  END: 'end'
28
36
  };
29
- var SeparatorWrapper = dsClassnames.aggregatedClasses('div')('separator-wrapper', null, function (_ref) {
30
- var _ref2;
31
-
32
- var margin = _ref.margin,
33
- orientation = _ref.orientation,
34
- dashed = _ref.dashed,
35
- position = _ref.position;
36
- return _ref2 = {
37
- dashed: dashed
38
- }, _defineProperty__default['default'](_ref2, margin, margin), _defineProperty__default['default'](_ref2, orientation, orientation), _defineProperty__default['default'](_ref2, position, position), _ref2;
37
+ const SeparatorWrapper = dsClassnames.aggregatedClasses('div')('separator-wrapper', null, _ref => {
38
+ let {
39
+ margin,
40
+ orientation,
41
+ dashed,
42
+ position
43
+ } = _ref;
44
+ return {
45
+ dashed,
46
+ [margin]: margin,
47
+ [orientation]: orientation,
48
+ [position]: position
49
+ };
39
50
  });
40
- var Separator = dsClassnames.aggregatedClasses('div')(blockName, null, function (_ref3) {
41
- var _ref4;
42
-
43
- var dashed = _ref3.dashed,
44
- margin = _ref3.margin,
45
- orientation = _ref3.orientation,
46
- type = _ref3.type;
47
- return _ref4 = {
48
- dashed: dashed
49
- }, _defineProperty__default['default'](_ref4, margin, margin), _defineProperty__default['default'](_ref4, orientation, orientation), _defineProperty__default['default'](_ref4, type, type), _ref4;
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
+ };
50
64
  });
51
- var types = ['category-level', 'group-level', 'non-form'];
52
-
53
- var DSSeparator = function DSSeparator(_ref5) {
54
- var containerProps = _ref5.containerProps,
55
- dashed = _ref5.dashed,
56
- margin = _ref5.margin,
57
- orientation = _ref5.orientation,
58
- type = _ref5.type,
59
- position = _ref5.position,
60
- className = _ref5.className,
61
- style = _ref5.style;
62
- return /*#__PURE__*/React__default['default'].createElement(SeparatorWrapper, _extends__default['default']({}, containerProps, {
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), {}, {
63
79
  className: className,
64
80
  classProps: {
65
- margin: margin,
66
- orientation: orientation,
67
- dashed: dashed,
68
- position: position
81
+ margin,
82
+ orientation,
83
+ dashed,
84
+ position
69
85
  },
70
- style: style
71
- }), /*#__PURE__*/React__default['default'].createElement(Separator, {
72
- classProps: {
73
- dashed: dashed,
74
- margin: margin,
75
- orientation: orientation,
76
- type: type
77
- }
86
+ style: style,
87
+ children: /*#__PURE__*/_jsx__default["default"](Separator, {
88
+ classProps: {
89
+ dashed,
90
+ margin,
91
+ orientation,
92
+ type
93
+ }
94
+ })
78
95
  }));
79
96
  };
80
97
 
@@ -86,7 +103,7 @@ DSSeparator.defaultProps = {
86
103
  type: 'category-level',
87
104
  position: POSITION.INITIAL
88
105
  };
89
- var props = {
106
+ const props = {
90
107
  /** class for separator */
91
108
  className: reactDesc.PropTypes.string.description('class for separator'),
92
109
 
@@ -121,11 +138,9 @@ var props = {
121
138
  */
122
139
  position: reactDesc.PropTypes.oneOf(['initial', 'center', 'end']).description("['initial', 'center', 'end']")
123
140
  };
124
- DSSeparator.propTypes = props;
125
- var DSSeparatorWithSchema = reactDesc.describe(DSSeparator);
141
+ const DSSeparatorWithSchema = reactDesc.describe(DSSeparator);
126
142
  DSSeparatorWithSchema.propTypes = props;
127
143
 
128
144
  exports.DSSeparator = DSSeparator;
129
145
  exports.DSSeparatorWithSchema = DSSeparatorWithSchema;
130
- exports['default'] = DSSeparator;
131
- //# sourceMappingURL=DSSeparator.js.map
146
+ exports["default"] = DSSeparator;
package/cjs/index.js CHANGED
@@ -3,15 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var DSSeparator = require('./DSSeparator.js');
6
- require('@babel/runtime/helpers/extends');
7
- require('@babel/runtime/helpers/defineProperty');
8
- require('react');
9
- require('react-desc');
10
- require('@elliemae/ds-classnames');
11
6
 
12
7
 
13
8
 
14
9
  exports.DSSeparator = DSSeparator.DSSeparator;
15
10
  exports.DSSeparatorWithSchema = DSSeparator.DSSeparatorWithSchema;
16
- exports.default = DSSeparator.DSSeparator;
17
- //# sourceMappingURL=index.js.map
11
+ exports["default"] = DSSeparator.DSSeparator;
@@ -1,70 +1,88 @@
1
- import _extends from '@babel/runtime/helpers/esm/extends';
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';
2
6
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
3
- import React from 'react';
7
+ import _jsx from '@babel/runtime/helpers/esm/jsx';
8
+ import 'react';
4
9
  import { PropTypes, describe } from 'react-desc';
5
10
  import { aggregatedClasses } from '@elliemae/ds-classnames';
11
+ import { jsx } from 'react/jsx-runtime';
6
12
 
7
- var blockName = 'separator';
8
- var MARGIN_SIZE = {
13
+ 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; }
14
+
15
+ 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; }
16
+ const blockName = 'separator';
17
+ const MARGIN_SIZE = {
9
18
  S: 's',
10
19
  M: 'm',
11
20
  L: 'l',
12
21
  none: 'none'
13
22
  };
14
- var POSITION = {
23
+ const POSITION = {
15
24
  INITIAL: 'initial',
16
25
  CENTER: 'center',
17
26
  END: 'end'
18
27
  };
19
- var SeparatorWrapper = aggregatedClasses('div')('separator-wrapper', null, function (_ref) {
20
- var _ref2;
21
-
22
- var margin = _ref.margin,
23
- orientation = _ref.orientation,
24
- dashed = _ref.dashed,
25
- position = _ref.position;
26
- return _ref2 = {
27
- dashed: dashed
28
- }, _defineProperty(_ref2, margin, margin), _defineProperty(_ref2, orientation, orientation), _defineProperty(_ref2, position, position), _ref2;
28
+ const SeparatorWrapper = aggregatedClasses('div')('separator-wrapper', null, _ref => {
29
+ let {
30
+ margin,
31
+ orientation,
32
+ dashed,
33
+ position
34
+ } = _ref;
35
+ return {
36
+ dashed,
37
+ [margin]: margin,
38
+ [orientation]: orientation,
39
+ [position]: position
40
+ };
29
41
  });
30
- var Separator = aggregatedClasses('div')(blockName, null, function (_ref3) {
31
- var _ref4;
32
-
33
- var dashed = _ref3.dashed,
34
- margin = _ref3.margin,
35
- orientation = _ref3.orientation,
36
- type = _ref3.type;
37
- return _ref4 = {
38
- dashed: dashed
39
- }, _defineProperty(_ref4, margin, margin), _defineProperty(_ref4, orientation, orientation), _defineProperty(_ref4, type, type), _ref4;
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
+ };
40
55
  });
41
- var types = ['category-level', 'group-level', 'non-form'];
56
+ const types = ['category-level', 'group-level', 'non-form'];
42
57
 
43
- var DSSeparator = function DSSeparator(_ref5) {
44
- var containerProps = _ref5.containerProps,
45
- dashed = _ref5.dashed,
46
- margin = _ref5.margin,
47
- orientation = _ref5.orientation,
48
- type = _ref5.type,
49
- position = _ref5.position,
50
- className = _ref5.className,
51
- style = _ref5.style;
52
- return /*#__PURE__*/React.createElement(SeparatorWrapper, _extends({}, containerProps, {
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), {}, {
53
70
  className: className,
54
71
  classProps: {
55
- margin: margin,
56
- orientation: orientation,
57
- dashed: dashed,
58
- position: position
72
+ margin,
73
+ orientation,
74
+ dashed,
75
+ position
59
76
  },
60
- style: style
61
- }), /*#__PURE__*/React.createElement(Separator, {
62
- classProps: {
63
- dashed: dashed,
64
- margin: margin,
65
- orientation: orientation,
66
- type: type
67
- }
77
+ style: style,
78
+ children: /*#__PURE__*/_jsx(Separator, {
79
+ classProps: {
80
+ dashed,
81
+ margin,
82
+ orientation,
83
+ type
84
+ }
85
+ })
68
86
  }));
69
87
  };
70
88
 
@@ -76,7 +94,7 @@ DSSeparator.defaultProps = {
76
94
  type: 'category-level',
77
95
  position: POSITION.INITIAL
78
96
  };
79
- var props = {
97
+ const props = {
80
98
  /** class for separator */
81
99
  className: PropTypes.string.description('class for separator'),
82
100
 
@@ -111,9 +129,7 @@ var props = {
111
129
  */
112
130
  position: PropTypes.oneOf(['initial', 'center', 'end']).description("['initial', 'center', 'end']")
113
131
  };
114
- DSSeparator.propTypes = props;
115
- var DSSeparatorWithSchema = describe(DSSeparator);
132
+ const DSSeparatorWithSchema = describe(DSSeparator);
116
133
  DSSeparatorWithSchema.propTypes = props;
117
134
 
118
135
  export { DSSeparator, DSSeparatorWithSchema, DSSeparator as default };
119
- //# sourceMappingURL=DSSeparator.js.map
package/esm/index.js CHANGED
@@ -1,7 +1 @@
1
1
  export { DSSeparator, DSSeparatorWithSchema, DSSeparator as default } from './DSSeparator.js';
2
- import '@babel/runtime/helpers/esm/extends';
3
- import '@babel/runtime/helpers/esm/defineProperty';
4
- import 'react';
5
- import 'react-desc';
6
- import '@elliemae/ds-classnames';
7
- //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,14 +1,34 @@
1
1
  {
2
2
  "name": "@elliemae/ds-separator",
3
- "version": "1.60.0",
3
+ "version": "2.0.0-alpha.12",
4
4
  "license": "MIT",
5
- "description": "Ellie Mae - Dim Sum - Separator",
6
- "module": "esm/index.js",
7
- "main": "cjs/index.js",
5
+ "description": "ICE MT - Dimsum - Separator",
6
+ "module": "./esm/index.js",
7
+ "main": "./cjs/index.js",
8
+ "types": "./types/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": "./esm/index.js",
12
+ "require": "./cjs/index.js"
13
+ },
14
+ "./DSSeparator": {
15
+ "import": "./esm/DSSeparator.js",
16
+ "require": "./cjs/DSSeparator.js"
17
+ }
18
+ },
8
19
  "sideEffects": [
9
20
  "*.css",
10
21
  "*.scss"
11
22
  ],
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "https://git.elliemae.io/platform-ui/dimsum.git"
26
+ },
27
+ "engines": {
28
+ "npm": ">=7",
29
+ "node": ">=14"
30
+ },
31
+ "author": "ICE MT",
12
32
  "scripts": {
13
33
  "dev": "cross-env NODE_ENV=development && node ../../scripts/build/build.js -w",
14
34
  "prebuild": "exit 0",
@@ -16,15 +36,16 @@
16
36
  "build": "node ../../scripts/build/build.js"
17
37
  },
18
38
  "dependencies": {
19
- "@elliemae/ds-classnames": "1.60.0",
20
- "react-desc": "^4.1.2"
39
+ "@elliemae/ds-classnames": "2.0.0-alpha.12",
40
+ "react-desc": "~4.1.3"
21
41
  },
22
42
  "peerDependencies": {
23
- "react": "^17.0.1",
24
- "react-dom": "^17.0.1"
43
+ "react": "^17.0.2",
44
+ "react-dom": "^17.0.2"
25
45
  },
26
46
  "publishConfig": {
27
47
  "access": "public",
28
- "directory": "dist"
48
+ "directory": "dist",
49
+ "generateSubmodules": true
29
50
  }
30
51
  }
@@ -0,0 +1,106 @@
1
+ /// <reference path="../../../../shared/typings/react-desc.d.ts" />
2
+ /// <reference types="react" />
3
+ declare const DSSeparator: {
4
+ ({ containerProps, dashed, margin, orientation, type, position, className, style, }: {
5
+ containerProps: any;
6
+ dashed: any;
7
+ margin: any;
8
+ orientation: any;
9
+ type: any;
10
+ position: any;
11
+ className: any;
12
+ style: any;
13
+ }): JSX.Element;
14
+ defaultProps: {
15
+ containerProps: {};
16
+ dashed: boolean;
17
+ margin: string;
18
+ orientation: string;
19
+ type: string;
20
+ position: string;
21
+ };
22
+ propTypes: {
23
+ /** class for separator */
24
+ className: {
25
+ defaultValue<T = unknown>(arg: T): {
26
+ deprecated: import("react-desc").PropTypesDescValidator;
27
+ };
28
+ isRequired: import("react-desc").PropTypesDescValidator;
29
+ };
30
+ /** style object for separator */
31
+ style: {
32
+ defaultValue<T = unknown>(arg: T): {
33
+ deprecated: import("react-desc").PropTypesDescValidator;
34
+ };
35
+ isRequired: import("react-desc").PropTypesDescValidator;
36
+ };
37
+ /** Injected props to wrapper element of component */
38
+ containerProps: {
39
+ defaultValue<T = unknown>(arg: T): {
40
+ deprecated: import("react-desc").PropTypesDescValidator;
41
+ };
42
+ isRequired: import("react-desc").PropTypesDescValidator;
43
+ };
44
+ /**
45
+ * If the separator has to be dashed or solid
46
+ */
47
+ dashed: {
48
+ defaultValue<T = unknown>(arg: T): {
49
+ deprecated: import("react-desc").PropTypesDescValidator;
50
+ };
51
+ isRequired: import("react-desc").PropTypesDescValidator;
52
+ };
53
+ /**
54
+ * Amount of margin to be added to the separator
55
+ */
56
+ margin: {
57
+ defaultValue<T = unknown>(arg: T): {
58
+ deprecated: import("react-desc").PropTypesDescValidator;
59
+ };
60
+ isRequired: import("react-desc").PropTypesDescValidator;
61
+ };
62
+ /**
63
+ * Orientation 'horizontal' or 'vertical'
64
+ */
65
+ orientation: {
66
+ defaultValue<T = unknown>(arg: T): {
67
+ deprecated: import("react-desc").PropTypesDescValidator;
68
+ };
69
+ isRequired: import("react-desc").PropTypesDescValidator;
70
+ };
71
+ /**
72
+ * ['category-level', 'group-level', 'non-form']
73
+ */
74
+ type: {
75
+ defaultValue<T = unknown>(arg: T): {
76
+ deprecated: import("react-desc").PropTypesDescValidator;
77
+ };
78
+ isRequired: import("react-desc").PropTypesDescValidator;
79
+ };
80
+ /**
81
+ * ['initial', 'center', 'end']
82
+ */
83
+ position: {
84
+ defaultValue<T = unknown>(arg: T): {
85
+ deprecated: import("react-desc").PropTypesDescValidator;
86
+ };
87
+ isRequired: import("react-desc").PropTypesDescValidator;
88
+ };
89
+ };
90
+ };
91
+ declare const DSSeparatorWithSchema: {
92
+ (props?: {
93
+ containerProps: any;
94
+ dashed: any;
95
+ margin: any;
96
+ orientation: any;
97
+ type: any;
98
+ position: any;
99
+ className: any;
100
+ style: any;
101
+ } | undefined): JSX.Element;
102
+ propTypes: unknown;
103
+ toTypescript: () => import("react-desc").TypescriptSchema;
104
+ };
105
+ export { DSSeparator, DSSeparatorWithSchema };
106
+ export default DSSeparator;
@@ -0,0 +1,2 @@
1
+ export * from './DSSeparator';
2
+ export { default } from './DSSeparator';
@@ -1,10 +0,0 @@
1
- {
2
- "name": "@elliemae/ds-separator/DSSeparator",
3
- "sideEffects": [
4
- "*.css",
5
- "*.scss"
6
- ],
7
- "private": true,
8
- "main": "../cjs/DSSeparator.js",
9
- "module": "../esm/DSSeparator.js"
10
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"DSSeparator.js","sources":["../../src/DSSeparator.tsx"],"sourcesContent":["import React from 'react';\nimport { PropTypes, describe } from 'react-desc';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\n\nconst blockName = 'separator';\n\nconst MARGIN_SIZE = {\n S: 's',\n M: 'm',\n L: 'l',\n none: 'none',\n};\n\nconst POSITION = {\n INITIAL: 'initial',\n CENTER: 'center',\n END: 'end',\n};\n\nconst SeparatorWrapper = aggregatedClasses('div')(\n 'separator-wrapper',\n null,\n ({ margin, orientation, dashed, position }) => ({\n dashed,\n [margin]: margin,\n [orientation]: orientation,\n [position]: position,\n }),\n);\n\nconst Separator = aggregatedClasses('div')(\n blockName,\n null,\n ({ dashed, margin, orientation, type }) => ({\n dashed,\n [margin]: margin,\n [orientation]: orientation,\n [type]: type,\n }),\n);\n\nconst types = ['category-level', 'group-level', 'non-form'];\n\nconst DSSeparator = ({\n containerProps,\n dashed,\n margin,\n orientation,\n type,\n position,\n className,\n style,\n}) => (\n <SeparatorWrapper\n {...containerProps}\n className={className}\n classProps={{\n margin,\n orientation,\n dashed,\n position,\n }}\n style={style}\n >\n <Separator\n classProps={{\n dashed,\n margin,\n orientation,\n type,\n }}\n />\n </SeparatorWrapper>\n);\n\nDSSeparator.defaultProps = {\n containerProps: {},\n dashed: false,\n margin: MARGIN_SIZE.S,\n orientation: 'horizontal',\n type: 'category-level',\n position: POSITION.INITIAL,\n};\n\nconst props = {\n /** class for separator */\n className: PropTypes.string.description('class for separator'),\n /** style object for separator */\n style: PropTypes.object.description('style object for separator'),\n /** Injected props to wrapper element of component */\n containerProps: PropTypes.object.description(\n 'Injected props to wrapper element of component',\n ),\n /**\n * If the separator has to be dashed or solid\n */\n dashed: PropTypes.bool.description(\n 'If the separator has to be dashed or solid',\n ),\n /**\n * Amount of margin to be added to the separator\n */\n margin: PropTypes.oneOf(['s', 'm', 'l', 'none']).description(\n 'Amount of margin to be added to the separator',\n ),\n /**\n * Orientation 'horizontal' or 'vertical'\n */\n orientation: PropTypes.string.description(\n \"Orientation 'horizontal' or 'vertical'\",\n ),\n /**\n * ['category-level', 'group-level', 'non-form']\n */\n type: PropTypes.oneOf(types).description(\n \"['category-level', 'group-level', 'non-form']\",\n ),\n /**\n * ['initial', 'center', 'end']\n */\n position: PropTypes.oneOf(['initial', 'center', 'end']).description(\n \"['initial', 'center', 'end']\",\n ),\n};\n\nDSSeparator.propTypes = props;\n\nconst DSSeparatorWithSchema = describe(DSSeparator);\n\nDSSeparatorWithSchema.propTypes = props;\n\nexport { DSSeparator, DSSeparatorWithSchema };\nexport default DSSeparator;\n"],"names":["blockName","MARGIN_SIZE","S","M","L","none","POSITION","INITIAL","CENTER","END","SeparatorWrapper","aggregatedClasses","margin","orientation","dashed","position","Separator","type","types","DSSeparator","containerProps","className","style","React","defaultProps","props","PropTypes","string","description","object","bool","oneOf","propTypes","DSSeparatorWithSchema","describe"],"mappings":";;;;;;;;;;;;;;;;AAIA,IAAMA,SAAS,GAAG,WAAlB;AAEA,IAAMC,WAAW,GAAG;AAClBC,EAAAA,CAAC,EAAE,GADe;AAElBC,EAAAA,CAAC,EAAE,GAFe;AAGlBC,EAAAA,CAAC,EAAE,GAHe;AAIlBC,EAAAA,IAAI,EAAE;AAJY,CAApB;AAOA,IAAMC,QAAQ,GAAG;AACfC,EAAAA,OAAO,EAAE,SADM;AAEfC,EAAAA,MAAM,EAAE,QAFO;AAGfC,EAAAA,GAAG,EAAE;AAHU,CAAjB;AAMA,IAAMC,gBAAgB,GAAGC,8BAAiB,CAAC,KAAD,CAAjB,CACvB,mBADuB,EAEvB,IAFuB,EAGvB;AAAA;;AAAA,MAAGC,MAAH,QAAGA,MAAH;AAAA,MAAWC,WAAX,QAAWA,WAAX;AAAA,MAAwBC,MAAxB,QAAwBA,MAAxB;AAAA,MAAgCC,QAAhC,QAAgCA,QAAhC;AAAA;AACED,IAAAA,MAAM,EAANA;AADF,gDAEGF,MAFH,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B,KAAtB,CAAhB,EAA8CH,WAA9C,CACR,8BADQ;AApCE,CAAd;AAyCAT,WAAW,CAACa,SAAZ,GAAwBP,KAAxB;IAEMQ,qBAAqB,GAAGC,kBAAQ,CAACf,WAAD;AAEtCc,qBAAqB,CAACD,SAAtB,GAAkCP,KAAlC;;;;;;"}
package/cjs/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DSSeparator.js","sources":["../../src/DSSeparator.tsx"],"sourcesContent":["import React from 'react';\nimport { PropTypes, describe } from 'react-desc';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\n\nconst blockName = 'separator';\n\nconst MARGIN_SIZE = {\n S: 's',\n M: 'm',\n L: 'l',\n none: 'none',\n};\n\nconst POSITION = {\n INITIAL: 'initial',\n CENTER: 'center',\n END: 'end',\n};\n\nconst SeparatorWrapper = aggregatedClasses('div')(\n 'separator-wrapper',\n null,\n ({ margin, orientation, dashed, position }) => ({\n dashed,\n [margin]: margin,\n [orientation]: orientation,\n [position]: position,\n }),\n);\n\nconst Separator = aggregatedClasses('div')(\n blockName,\n null,\n ({ dashed, margin, orientation, type }) => ({\n dashed,\n [margin]: margin,\n [orientation]: orientation,\n [type]: type,\n }),\n);\n\nconst types = ['category-level', 'group-level', 'non-form'];\n\nconst DSSeparator = ({\n containerProps,\n dashed,\n margin,\n orientation,\n type,\n position,\n className,\n style,\n}) => (\n <SeparatorWrapper\n {...containerProps}\n className={className}\n classProps={{\n margin,\n orientation,\n dashed,\n position,\n }}\n style={style}\n >\n <Separator\n classProps={{\n dashed,\n margin,\n orientation,\n type,\n }}\n />\n </SeparatorWrapper>\n);\n\nDSSeparator.defaultProps = {\n containerProps: {},\n dashed: false,\n margin: MARGIN_SIZE.S,\n orientation: 'horizontal',\n type: 'category-level',\n position: POSITION.INITIAL,\n};\n\nconst props = {\n /** class for separator */\n className: PropTypes.string.description('class for separator'),\n /** style object for separator */\n style: PropTypes.object.description('style object for separator'),\n /** Injected props to wrapper element of component */\n containerProps: PropTypes.object.description(\n 'Injected props to wrapper element of component',\n ),\n /**\n * If the separator has to be dashed or solid\n */\n dashed: PropTypes.bool.description(\n 'If the separator has to be dashed or solid',\n ),\n /**\n * Amount of margin to be added to the separator\n */\n margin: PropTypes.oneOf(['s', 'm', 'l', 'none']).description(\n 'Amount of margin to be added to the separator',\n ),\n /**\n * Orientation 'horizontal' or 'vertical'\n */\n orientation: PropTypes.string.description(\n \"Orientation 'horizontal' or 'vertical'\",\n ),\n /**\n * ['category-level', 'group-level', 'non-form']\n */\n type: PropTypes.oneOf(types).description(\n \"['category-level', 'group-level', 'non-form']\",\n ),\n /**\n * ['initial', 'center', 'end']\n */\n position: PropTypes.oneOf(['initial', 'center', 'end']).description(\n \"['initial', 'center', 'end']\",\n ),\n};\n\nDSSeparator.propTypes = props;\n\nconst DSSeparatorWithSchema = describe(DSSeparator);\n\nDSSeparatorWithSchema.propTypes = props;\n\nexport { DSSeparator, DSSeparatorWithSchema };\nexport default DSSeparator;\n"],"names":["blockName","MARGIN_SIZE","S","M","L","none","POSITION","INITIAL","CENTER","END","SeparatorWrapper","aggregatedClasses","margin","orientation","dashed","position","Separator","type","types","DSSeparator","containerProps","className","style","defaultProps","props","PropTypes","string","description","object","bool","oneOf","propTypes","DSSeparatorWithSchema","describe"],"mappings":";;;;;;AAIA,IAAMA,SAAS,GAAG,WAAlB;AAEA,IAAMC,WAAW,GAAG;AAClBC,EAAAA,CAAC,EAAE,GADe;AAElBC,EAAAA,CAAC,EAAE,GAFe;AAGlBC,EAAAA,CAAC,EAAE,GAHe;AAIlBC,EAAAA,IAAI,EAAE;AAJY,CAApB;AAOA,IAAMC,QAAQ,GAAG;AACfC,EAAAA,OAAO,EAAE,SADM;AAEfC,EAAAA,MAAM,EAAE,QAFO;AAGfC,EAAAA,GAAG,EAAE;AAHU,CAAjB;AAMA,IAA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