@elliemae/ds-label-value 2.0.0-next.0 → 2.0.0-next.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/Group.js +22 -16
- package/cjs/components/Label.js +22 -16
- package/cjs/components/Value.js +28 -22
- package/cjs/components/Wrapper.js +31 -20
- package/esm/components/Group.js +22 -16
- package/esm/components/Label.js +22 -16
- package/esm/components/Value.js +28 -22
- package/esm/components/Wrapper.js +30 -19
- package/package.json +3 -3
- package/cjs/package.json +0 -7
- package/esm/package.json +0 -7
package/cjs/components/Group.js
CHANGED
|
@@ -14,24 +14,30 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
14
14
|
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
15
15
|
|
|
16
16
|
const blockName = 'labelValueGroup';
|
|
17
|
-
const WrapperGroup = dsClassnames.aggregatedClasses('div')(blockName, 'wrapper',
|
|
18
|
-
|
|
19
|
-
inline
|
|
20
|
-
}) => ({
|
|
21
|
-
inline,
|
|
22
|
-
[orientation]: orientation
|
|
23
|
-
}));
|
|
24
|
-
|
|
25
|
-
const Group = ({
|
|
26
|
-
children,
|
|
27
|
-
inline,
|
|
28
|
-
orientation
|
|
29
|
-
}) => /*#__PURE__*/_jsx__default["default"](WrapperGroup, {
|
|
30
|
-
classProps: {
|
|
17
|
+
const WrapperGroup = dsClassnames.aggregatedClasses('div')(blockName, 'wrapper', _ref => {
|
|
18
|
+
let {
|
|
31
19
|
orientation,
|
|
32
20
|
inline
|
|
33
|
-
}
|
|
34
|
-
|
|
21
|
+
} = _ref;
|
|
22
|
+
return {
|
|
23
|
+
inline,
|
|
24
|
+
[orientation]: orientation
|
|
25
|
+
};
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
const Group = _ref2 => {
|
|
29
|
+
let {
|
|
30
|
+
children,
|
|
31
|
+
inline,
|
|
32
|
+
orientation
|
|
33
|
+
} = _ref2;
|
|
34
|
+
return /*#__PURE__*/_jsx__default["default"](WrapperGroup, {
|
|
35
|
+
classProps: {
|
|
36
|
+
orientation,
|
|
37
|
+
inline
|
|
38
|
+
}
|
|
39
|
+
}, void 0, children);
|
|
40
|
+
};
|
|
35
41
|
|
|
36
42
|
Group.defaultProps = defaultProps.groupDefault;
|
|
37
43
|
const GroupWithSchema = reactDesc.describe(Group);
|
package/cjs/components/Label.js
CHANGED
|
@@ -14,24 +14,30 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
14
14
|
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
15
15
|
|
|
16
16
|
const blockName = 'labelValue';
|
|
17
|
-
const LabelStyled = dsClassnames.aggregatedClasses('div')(blockName, 'label',
|
|
18
|
-
|
|
19
|
-
labelColor
|
|
20
|
-
}) => ({
|
|
21
|
-
[labelPosition]: labelPosition,
|
|
22
|
-
[labelColor]: labelColor
|
|
23
|
-
}));
|
|
24
|
-
|
|
25
|
-
const Label = ({
|
|
26
|
-
children,
|
|
27
|
-
position: labelPosition,
|
|
28
|
-
color
|
|
29
|
-
}) => /*#__PURE__*/_jsx__default["default"](LabelStyled, {
|
|
30
|
-
classProps: {
|
|
17
|
+
const LabelStyled = dsClassnames.aggregatedClasses('div')(blockName, 'label', _ref => {
|
|
18
|
+
let {
|
|
31
19
|
labelPosition,
|
|
20
|
+
labelColor
|
|
21
|
+
} = _ref;
|
|
22
|
+
return {
|
|
23
|
+
[labelPosition]: labelPosition,
|
|
24
|
+
[labelColor]: labelColor
|
|
25
|
+
};
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
const Label = _ref2 => {
|
|
29
|
+
let {
|
|
30
|
+
children,
|
|
31
|
+
position: labelPosition,
|
|
32
32
|
color
|
|
33
|
-
}
|
|
34
|
-
|
|
33
|
+
} = _ref2;
|
|
34
|
+
return /*#__PURE__*/_jsx__default["default"](LabelStyled, {
|
|
35
|
+
classProps: {
|
|
36
|
+
labelPosition,
|
|
37
|
+
color
|
|
38
|
+
}
|
|
39
|
+
}, void 0, children);
|
|
40
|
+
};
|
|
35
41
|
|
|
36
42
|
Label.defaultProps = defaultProps.labelDefault;
|
|
37
43
|
const LabelWithSchema = reactDesc.describe(Label);
|
package/cjs/components/Value.js
CHANGED
|
@@ -14,32 +14,38 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
14
14
|
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
15
15
|
|
|
16
16
|
const blockName = 'labelValue';
|
|
17
|
-
const ValueStyled = dsClassnames.aggregatedClasses('div')(blockName, 'value',
|
|
18
|
-
|
|
19
|
-
valuePosition,
|
|
20
|
-
valueColor,
|
|
21
|
-
semibold
|
|
22
|
-
}) => ({
|
|
23
|
-
[size]: size,
|
|
24
|
-
[valuePosition]: valuePosition,
|
|
25
|
-
[valueColor]: valueColor,
|
|
26
|
-
semibold
|
|
27
|
-
}));
|
|
28
|
-
|
|
29
|
-
const Value = ({
|
|
30
|
-
children,
|
|
31
|
-
position: valuePosition,
|
|
32
|
-
size,
|
|
33
|
-
color: valueColor,
|
|
34
|
-
semibold = false
|
|
35
|
-
}) => /*#__PURE__*/_jsx__default["default"](ValueStyled, {
|
|
36
|
-
classProps: {
|
|
17
|
+
const ValueStyled = dsClassnames.aggregatedClasses('div')(blockName, 'value', _ref => {
|
|
18
|
+
let {
|
|
37
19
|
size,
|
|
38
20
|
valuePosition,
|
|
39
21
|
valueColor,
|
|
40
22
|
semibold
|
|
41
|
-
}
|
|
42
|
-
|
|
23
|
+
} = _ref;
|
|
24
|
+
return {
|
|
25
|
+
[size]: size,
|
|
26
|
+
[valuePosition]: valuePosition,
|
|
27
|
+
[valueColor]: valueColor,
|
|
28
|
+
semibold
|
|
29
|
+
};
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
const Value = _ref2 => {
|
|
33
|
+
let {
|
|
34
|
+
children,
|
|
35
|
+
position: valuePosition,
|
|
36
|
+
size,
|
|
37
|
+
color: valueColor,
|
|
38
|
+
semibold = false
|
|
39
|
+
} = _ref2;
|
|
40
|
+
return /*#__PURE__*/_jsx__default["default"](ValueStyled, {
|
|
41
|
+
classProps: {
|
|
42
|
+
size,
|
|
43
|
+
valuePosition,
|
|
44
|
+
valueColor,
|
|
45
|
+
semibold
|
|
46
|
+
}
|
|
47
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"]("span", {}, void 0, children));
|
|
48
|
+
};
|
|
43
49
|
|
|
44
50
|
Value.defaultProps = defaultProps.valueDefault;
|
|
45
51
|
const ValueWithSchema = reactDesc.describe(Value);
|
|
@@ -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 _jsx = require('@babel/runtime/helpers/jsx');
|
|
6
11
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
12
|
require('react');
|
|
@@ -21,27 +26,33 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
21
26
|
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; }
|
|
22
27
|
const blockName = 'labelValue';
|
|
23
28
|
const LabelValueWrapper = dsClassnames.aggregatedClasses('div')(blockName, 'label-value-wrapper', () => null);
|
|
24
|
-
const Container = dsClassnames.aggregatedClasses('div')(blockName, 'wrapper',
|
|
25
|
-
|
|
26
|
-
}) => ({
|
|
27
|
-
inverted
|
|
28
|
-
}));
|
|
29
|
-
|
|
30
|
-
const Wrapper = ({
|
|
31
|
-
containerProps,
|
|
32
|
-
children,
|
|
33
|
-
className,
|
|
34
|
-
icon,
|
|
35
|
-
inverted
|
|
36
|
-
}) => /*#__PURE__*/_jsx__default["default"](Container, {
|
|
37
|
-
classProps: {
|
|
29
|
+
const Container = dsClassnames.aggregatedClasses('div')(blockName, 'wrapper', _ref => {
|
|
30
|
+
let {
|
|
38
31
|
inverted
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
32
|
+
} = _ref;
|
|
33
|
+
return {
|
|
34
|
+
inverted
|
|
35
|
+
};
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
const Wrapper = _ref2 => {
|
|
39
|
+
let {
|
|
40
|
+
containerProps,
|
|
41
|
+
children,
|
|
42
|
+
className,
|
|
43
|
+
icon,
|
|
44
|
+
inverted
|
|
45
|
+
} = _ref2;
|
|
46
|
+
return /*#__PURE__*/_jsx__default["default"](Container, {
|
|
47
|
+
classProps: {
|
|
48
|
+
inverted
|
|
49
|
+
}
|
|
50
|
+
}, void 0, icon, /*#__PURE__*/jsxRuntime.jsx(LabelValueWrapper, _objectSpread(_objectSpread({
|
|
51
|
+
className: className
|
|
52
|
+
}, containerProps), {}, {
|
|
53
|
+
children: children
|
|
54
|
+
})));
|
|
55
|
+
};
|
|
45
56
|
|
|
46
57
|
Wrapper.defaultProps = defaultProps.wrapperDefault;
|
|
47
58
|
const WrapperWithSchema = reactDesc.describe(Wrapper);
|
package/esm/components/Group.js
CHANGED
|
@@ -6,24 +6,30 @@ import { groupProps } from './props.js';
|
|
|
6
6
|
import { groupDefault } from './defaultProps.js';
|
|
7
7
|
|
|
8
8
|
const blockName = 'labelValueGroup';
|
|
9
|
-
const WrapperGroup = aggregatedClasses('div')(blockName, 'wrapper',
|
|
10
|
-
|
|
11
|
-
inline
|
|
12
|
-
}) => ({
|
|
13
|
-
inline,
|
|
14
|
-
[orientation]: orientation
|
|
15
|
-
}));
|
|
16
|
-
|
|
17
|
-
const Group = ({
|
|
18
|
-
children,
|
|
19
|
-
inline,
|
|
20
|
-
orientation
|
|
21
|
-
}) => /*#__PURE__*/_jsx(WrapperGroup, {
|
|
22
|
-
classProps: {
|
|
9
|
+
const WrapperGroup = aggregatedClasses('div')(blockName, 'wrapper', _ref => {
|
|
10
|
+
let {
|
|
23
11
|
orientation,
|
|
24
12
|
inline
|
|
25
|
-
}
|
|
26
|
-
|
|
13
|
+
} = _ref;
|
|
14
|
+
return {
|
|
15
|
+
inline,
|
|
16
|
+
[orientation]: orientation
|
|
17
|
+
};
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
const Group = _ref2 => {
|
|
21
|
+
let {
|
|
22
|
+
children,
|
|
23
|
+
inline,
|
|
24
|
+
orientation
|
|
25
|
+
} = _ref2;
|
|
26
|
+
return /*#__PURE__*/_jsx(WrapperGroup, {
|
|
27
|
+
classProps: {
|
|
28
|
+
orientation,
|
|
29
|
+
inline
|
|
30
|
+
}
|
|
31
|
+
}, void 0, children);
|
|
32
|
+
};
|
|
27
33
|
|
|
28
34
|
Group.defaultProps = groupDefault;
|
|
29
35
|
const GroupWithSchema = describe(Group);
|
package/esm/components/Label.js
CHANGED
|
@@ -6,24 +6,30 @@ import { labelProps } from './props.js';
|
|
|
6
6
|
import { labelDefault } from './defaultProps.js';
|
|
7
7
|
|
|
8
8
|
const blockName = 'labelValue';
|
|
9
|
-
const LabelStyled = aggregatedClasses('div')(blockName, 'label',
|
|
10
|
-
|
|
11
|
-
labelColor
|
|
12
|
-
}) => ({
|
|
13
|
-
[labelPosition]: labelPosition,
|
|
14
|
-
[labelColor]: labelColor
|
|
15
|
-
}));
|
|
16
|
-
|
|
17
|
-
const Label = ({
|
|
18
|
-
children,
|
|
19
|
-
position: labelPosition,
|
|
20
|
-
color
|
|
21
|
-
}) => /*#__PURE__*/_jsx(LabelStyled, {
|
|
22
|
-
classProps: {
|
|
9
|
+
const LabelStyled = aggregatedClasses('div')(blockName, 'label', _ref => {
|
|
10
|
+
let {
|
|
23
11
|
labelPosition,
|
|
12
|
+
labelColor
|
|
13
|
+
} = _ref;
|
|
14
|
+
return {
|
|
15
|
+
[labelPosition]: labelPosition,
|
|
16
|
+
[labelColor]: labelColor
|
|
17
|
+
};
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
const Label = _ref2 => {
|
|
21
|
+
let {
|
|
22
|
+
children,
|
|
23
|
+
position: labelPosition,
|
|
24
24
|
color
|
|
25
|
-
}
|
|
26
|
-
|
|
25
|
+
} = _ref2;
|
|
26
|
+
return /*#__PURE__*/_jsx(LabelStyled, {
|
|
27
|
+
classProps: {
|
|
28
|
+
labelPosition,
|
|
29
|
+
color
|
|
30
|
+
}
|
|
31
|
+
}, void 0, children);
|
|
32
|
+
};
|
|
27
33
|
|
|
28
34
|
Label.defaultProps = labelDefault;
|
|
29
35
|
const LabelWithSchema = describe(Label);
|
package/esm/components/Value.js
CHANGED
|
@@ -6,32 +6,38 @@ import { valueProps } from './props.js';
|
|
|
6
6
|
import { valueDefault } from './defaultProps.js';
|
|
7
7
|
|
|
8
8
|
const blockName = 'labelValue';
|
|
9
|
-
const ValueStyled = aggregatedClasses('div')(blockName, 'value',
|
|
10
|
-
|
|
11
|
-
valuePosition,
|
|
12
|
-
valueColor,
|
|
13
|
-
semibold
|
|
14
|
-
}) => ({
|
|
15
|
-
[size]: size,
|
|
16
|
-
[valuePosition]: valuePosition,
|
|
17
|
-
[valueColor]: valueColor,
|
|
18
|
-
semibold
|
|
19
|
-
}));
|
|
20
|
-
|
|
21
|
-
const Value = ({
|
|
22
|
-
children,
|
|
23
|
-
position: valuePosition,
|
|
24
|
-
size,
|
|
25
|
-
color: valueColor,
|
|
26
|
-
semibold = false
|
|
27
|
-
}) => /*#__PURE__*/_jsx(ValueStyled, {
|
|
28
|
-
classProps: {
|
|
9
|
+
const ValueStyled = aggregatedClasses('div')(blockName, 'value', _ref => {
|
|
10
|
+
let {
|
|
29
11
|
size,
|
|
30
12
|
valuePosition,
|
|
31
13
|
valueColor,
|
|
32
14
|
semibold
|
|
33
|
-
}
|
|
34
|
-
|
|
15
|
+
} = _ref;
|
|
16
|
+
return {
|
|
17
|
+
[size]: size,
|
|
18
|
+
[valuePosition]: valuePosition,
|
|
19
|
+
[valueColor]: valueColor,
|
|
20
|
+
semibold
|
|
21
|
+
};
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
const Value = _ref2 => {
|
|
25
|
+
let {
|
|
26
|
+
children,
|
|
27
|
+
position: valuePosition,
|
|
28
|
+
size,
|
|
29
|
+
color: valueColor,
|
|
30
|
+
semibold = false
|
|
31
|
+
} = _ref2;
|
|
32
|
+
return /*#__PURE__*/_jsx(ValueStyled, {
|
|
33
|
+
classProps: {
|
|
34
|
+
size,
|
|
35
|
+
valuePosition,
|
|
36
|
+
valueColor,
|
|
37
|
+
semibold
|
|
38
|
+
}
|
|
39
|
+
}, void 0, /*#__PURE__*/_jsx("span", {}, void 0, children));
|
|
40
|
+
};
|
|
35
41
|
|
|
36
42
|
Value.defaultProps = valueDefault;
|
|
37
43
|
const ValueWithSchema = describe(Value);
|
|
@@ -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 _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
7
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
3
8
|
import 'react';
|
|
@@ -12,27 +17,33 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
12
17
|
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; }
|
|
13
18
|
const blockName = 'labelValue';
|
|
14
19
|
const LabelValueWrapper = aggregatedClasses('div')(blockName, 'label-value-wrapper', () => null);
|
|
15
|
-
const Container = aggregatedClasses('div')(blockName, 'wrapper',
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
const Container = aggregatedClasses('div')(blockName, 'wrapper', _ref => {
|
|
21
|
+
let {
|
|
22
|
+
inverted
|
|
23
|
+
} = _ref;
|
|
24
|
+
return {
|
|
25
|
+
inverted
|
|
26
|
+
};
|
|
27
|
+
});
|
|
20
28
|
|
|
21
|
-
const Wrapper =
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}) => /*#__PURE__*/_jsx(Container, {
|
|
28
|
-
classProps: {
|
|
29
|
+
const Wrapper = _ref2 => {
|
|
30
|
+
let {
|
|
31
|
+
containerProps,
|
|
32
|
+
children,
|
|
33
|
+
className,
|
|
34
|
+
icon,
|
|
29
35
|
inverted
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
+
} = _ref2;
|
|
37
|
+
return /*#__PURE__*/_jsx(Container, {
|
|
38
|
+
classProps: {
|
|
39
|
+
inverted
|
|
40
|
+
}
|
|
41
|
+
}, void 0, icon, /*#__PURE__*/jsx(LabelValueWrapper, _objectSpread(_objectSpread({
|
|
42
|
+
className: className
|
|
43
|
+
}, containerProps), {}, {
|
|
44
|
+
children: children
|
|
45
|
+
})));
|
|
46
|
+
};
|
|
36
47
|
|
|
37
48
|
Wrapper.defaultProps = wrapperDefault;
|
|
38
49
|
const WrapperWithSchema = describe(Wrapper);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-label-value",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.12",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Label value",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"build": "node ../../scripts/build/build.js"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@elliemae/ds-classnames": "2.0.0-next.
|
|
64
|
-
"react-desc": "
|
|
63
|
+
"@elliemae/ds-classnames": "2.0.0-next.12",
|
|
64
|
+
"react-desc": "~4.1.3"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"lodash": "^4.17.21",
|
package/cjs/package.json
DELETED