@elliemae/ds-label-value 2.2.0-alpha.3 → 3.0.0-next.0
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/DSLabelValue.js +20 -48
- package/cjs/components/Group.js +45 -51
- package/cjs/components/Label.js +45 -51
- package/cjs/components/Value.js +51 -62
- package/cjs/components/Wrapper.js +60 -54
- package/cjs/components/defaultProps.js +18 -45
- package/cjs/components/props.js +39 -63
- package/cjs/index.js +18 -40
- package/esm/DSLabelValue.js +11 -14
- package/esm/components/Group.js +35 -21
- package/esm/components/Label.js +35 -21
- package/esm/components/Value.js +39 -30
- package/esm/components/Wrapper.js +49 -24
- package/esm/components/defaultProps.js +5 -15
- package/esm/components/props.js +31 -37
- package/esm/index.js +5 -18
- package/package.json +3 -3
- package/cjs/DSLabelValue.js.map +0 -7
- package/cjs/components/Group.js.map +0 -7
- package/cjs/components/Label.js.map +0 -7
- package/cjs/components/Value.js.map +0 -7
- package/cjs/components/Wrapper.js.map +0 -7
- package/cjs/components/defaultProps.js.map +0 -7
- package/cjs/components/props.js.map +0 -7
- package/cjs/index.js.map +0 -7
- package/esm/DSLabelValue.js.map +0 -7
- package/esm/components/Group.js.map +0 -7
- package/esm/components/Label.js.map +0 -7
- package/esm/components/Value.js.map +0 -7
- package/esm/components/Wrapper.js.map +0 -7
- package/esm/components/defaultProps.js.map +0 -7
- package/esm/components/props.js.map +0 -7
- package/esm/index.js.map +0 -7
package/cjs/DSLabelValue.js
CHANGED
|
@@ -1,49 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
-
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return target;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (module2, isNodeMode) => {
|
|
21
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
-
};
|
|
23
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
-
return (module2, temp) => {
|
|
25
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
-
};
|
|
27
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
-
var DSLabelValue_exports = {};
|
|
29
|
-
__export(DSLabelValue_exports, {
|
|
30
|
-
GroupWithSchema: () => import_Group.GroupWithSchema,
|
|
31
|
-
LabelWithSchema: () => import_Label.LabelWithSchema,
|
|
32
|
-
ValueWithSchema: () => import_Value.ValueWithSchema,
|
|
33
|
-
WrapperWithSchema: () => import_Wrapper.WrapperWithSchema,
|
|
34
|
-
default: () => DSLabelValue_default
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var Wrapper = require('./components/Wrapper.js');
|
|
6
|
+
var Group = require('./components/Group.js');
|
|
7
|
+
var Label = require('./components/Label.js');
|
|
8
|
+
var Value = require('./components/Value.js');
|
|
9
|
+
|
|
10
|
+
const DSLabelValue = Object.assign(Wrapper["default"], {
|
|
11
|
+
Group: Group["default"],
|
|
12
|
+
Wrapper: Wrapper["default"],
|
|
13
|
+
Label: Label["default"],
|
|
14
|
+
Value: Value["default"]
|
|
35
15
|
});
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
Group: import_Group.default,
|
|
43
|
-
Wrapper: import_Wrapper.default,
|
|
44
|
-
Label: import_Label.default,
|
|
45
|
-
Value: import_Value.default
|
|
46
|
-
});
|
|
47
|
-
var DSLabelValue_default = DSLabelValue;
|
|
48
|
-
module.exports = __toCommonJS(DSLabelValue_exports);
|
|
49
|
-
//# sourceMappingURL=DSLabelValue.js.map
|
|
16
|
+
|
|
17
|
+
exports.WrapperWithSchema = Wrapper.WrapperWithSchema;
|
|
18
|
+
exports.GroupWithSchema = Group.GroupWithSchema;
|
|
19
|
+
exports.LabelWithSchema = Label.LabelWithSchema;
|
|
20
|
+
exports.ValueWithSchema = Value.ValueWithSchema;
|
|
21
|
+
exports["default"] = DSLabelValue;
|
package/cjs/components/Group.js
CHANGED
|
@@ -1,53 +1,47 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
6
|
+
require('react');
|
|
7
|
+
var reactDesc = require('react-desc');
|
|
8
|
+
var dsClassnames = require('@elliemae/ds-classnames');
|
|
9
|
+
var props = require('./props.js');
|
|
10
|
+
var defaultProps = require('./defaultProps.js');
|
|
11
|
+
|
|
12
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
|
+
|
|
14
|
+
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
15
|
+
|
|
16
|
+
const blockName = 'labelValueGroup';
|
|
17
|
+
const WrapperGroup = dsClassnames.aggregatedClasses('div')(blockName, 'wrapper', _ref => {
|
|
18
|
+
let {
|
|
19
|
+
orientation,
|
|
20
|
+
inline
|
|
21
|
+
} = _ref;
|
|
22
|
+
return {
|
|
23
|
+
inline,
|
|
24
|
+
[orientation]: orientation
|
|
26
25
|
};
|
|
27
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
-
var Group_exports = {};
|
|
29
|
-
__export(Group_exports, {
|
|
30
|
-
GroupWithSchema: () => GroupWithSchema,
|
|
31
|
-
default: () => Group_default
|
|
32
26
|
});
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
Group.defaultProps =
|
|
49
|
-
const GroupWithSchema =
|
|
50
|
-
GroupWithSchema.propTypes =
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
+
};
|
|
41
|
+
|
|
42
|
+
Group.defaultProps = defaultProps.groupDefault;
|
|
43
|
+
const GroupWithSchema = reactDesc.describe(Group);
|
|
44
|
+
GroupWithSchema.propTypes = props.groupProps;
|
|
45
|
+
|
|
46
|
+
exports.GroupWithSchema = GroupWithSchema;
|
|
47
|
+
exports["default"] = Group;
|
package/cjs/components/Label.js
CHANGED
|
@@ -1,53 +1,47 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
6
|
+
require('react');
|
|
7
|
+
var reactDesc = require('react-desc');
|
|
8
|
+
var dsClassnames = require('@elliemae/ds-classnames');
|
|
9
|
+
var props = require('./props.js');
|
|
10
|
+
var defaultProps = require('./defaultProps.js');
|
|
11
|
+
|
|
12
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
|
+
|
|
14
|
+
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
15
|
+
|
|
16
|
+
const blockName = 'labelValue';
|
|
17
|
+
const LabelStyled = dsClassnames.aggregatedClasses('div')(blockName, 'label', _ref => {
|
|
18
|
+
let {
|
|
19
|
+
labelPosition,
|
|
20
|
+
labelColor
|
|
21
|
+
} = _ref;
|
|
22
|
+
return {
|
|
23
|
+
[labelPosition]: labelPosition,
|
|
24
|
+
[labelColor]: labelColor
|
|
26
25
|
};
|
|
27
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
-
var Label_exports = {};
|
|
29
|
-
__export(Label_exports, {
|
|
30
|
-
LabelWithSchema: () => LabelWithSchema,
|
|
31
|
-
default: () => Label_default
|
|
32
26
|
});
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
Label.defaultProps =
|
|
49
|
-
const LabelWithSchema =
|
|
50
|
-
LabelWithSchema.propTypes =
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
27
|
+
|
|
28
|
+
const Label = _ref2 => {
|
|
29
|
+
let {
|
|
30
|
+
children,
|
|
31
|
+
position: labelPosition,
|
|
32
|
+
color
|
|
33
|
+
} = _ref2;
|
|
34
|
+
return /*#__PURE__*/_jsx__default["default"](LabelStyled, {
|
|
35
|
+
classProps: {
|
|
36
|
+
labelPosition,
|
|
37
|
+
color
|
|
38
|
+
}
|
|
39
|
+
}, void 0, children);
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
Label.defaultProps = defaultProps.labelDefault;
|
|
43
|
+
const LabelWithSchema = reactDesc.describe(Label);
|
|
44
|
+
LabelWithSchema.propTypes = props.labelProps;
|
|
45
|
+
|
|
46
|
+
exports.LabelWithSchema = LabelWithSchema;
|
|
47
|
+
exports["default"] = Label;
|
package/cjs/components/Value.js
CHANGED
|
@@ -1,66 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (module2, isNodeMode) => {
|
|
21
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
-
};
|
|
23
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
-
return (module2, temp) => {
|
|
25
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
-
};
|
|
27
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
-
var Value_exports = {};
|
|
29
|
-
__export(Value_exports, {
|
|
30
|
-
ValueWithSchema: () => ValueWithSchema,
|
|
31
|
-
default: () => Value_default
|
|
32
|
-
});
|
|
33
|
-
var React = __toESM(require("react"));
|
|
34
|
-
var import_react = __toESM(require("react"));
|
|
35
|
-
var import_react_desc = __toESM(require("react-desc"));
|
|
36
|
-
var import_ds_classnames = __toESM(require("@elliemae/ds-classnames"));
|
|
37
|
-
var import_props = __toESM(require("./props"));
|
|
38
|
-
var import_defaultProps = __toESM(require("./defaultProps"));
|
|
39
|
-
const blockName = "labelValue";
|
|
40
|
-
const ValueStyled = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "value", ({ size, valuePosition, valueColor, semibold }) => ({
|
|
41
|
-
[size]: size,
|
|
42
|
-
[valuePosition]: valuePosition,
|
|
43
|
-
[valueColor]: valueColor,
|
|
44
|
-
semibold
|
|
45
|
-
}));
|
|
46
|
-
const Value = ({
|
|
47
|
-
children,
|
|
48
|
-
position: valuePosition,
|
|
49
|
-
size,
|
|
50
|
-
color: valueColor,
|
|
51
|
-
semibold = false
|
|
52
|
-
}) => /* @__PURE__ */ import_react.default.createElement(ValueStyled, {
|
|
53
|
-
classProps: {
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
6
|
+
require('react');
|
|
7
|
+
var reactDesc = require('react-desc');
|
|
8
|
+
var dsClassnames = require('@elliemae/ds-classnames');
|
|
9
|
+
var props = require('./props.js');
|
|
10
|
+
var defaultProps = require('./defaultProps.js');
|
|
11
|
+
|
|
12
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
|
+
|
|
14
|
+
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
15
|
+
|
|
16
|
+
const blockName = 'labelValue';
|
|
17
|
+
const ValueStyled = dsClassnames.aggregatedClasses('div')(blockName, 'value', _ref => {
|
|
18
|
+
let {
|
|
54
19
|
size,
|
|
55
20
|
valuePosition,
|
|
56
21
|
valueColor,
|
|
57
22
|
semibold
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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
|
+
};
|
|
49
|
+
|
|
50
|
+
Value.defaultProps = defaultProps.valueDefault;
|
|
51
|
+
const ValueWithSchema = reactDesc.describe(Value);
|
|
52
|
+
ValueWithSchema.propTypes = props.valueProps;
|
|
53
|
+
|
|
54
|
+
exports.ValueWithSchema = ValueWithSchema;
|
|
55
|
+
exports["default"] = Value;
|
|
@@ -1,56 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
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');
|
|
10
|
+
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
11
|
+
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
12
|
+
require('react');
|
|
13
|
+
var reactDesc = require('react-desc');
|
|
14
|
+
var dsClassnames = require('@elliemae/ds-classnames');
|
|
15
|
+
var props = require('./props.js');
|
|
16
|
+
var defaultProps = require('./defaultProps.js');
|
|
17
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
18
|
+
|
|
19
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
20
|
+
|
|
21
|
+
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
22
|
+
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
23
|
+
|
|
24
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
25
|
+
|
|
26
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
27
|
+
const blockName = 'labelValue';
|
|
28
|
+
const LabelValueWrapper = dsClassnames.aggregatedClasses('div')(blockName, 'label-value-wrapper', () => null);
|
|
29
|
+
const Container = dsClassnames.aggregatedClasses('div')(blockName, 'wrapper', _ref => {
|
|
30
|
+
let {
|
|
31
|
+
inverted
|
|
32
|
+
} = _ref;
|
|
33
|
+
return {
|
|
34
|
+
inverted
|
|
26
35
|
};
|
|
27
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
-
var Wrapper_exports = {};
|
|
29
|
-
__export(Wrapper_exports, {
|
|
30
|
-
WrapperWithSchema: () => WrapperWithSchema,
|
|
31
|
-
default: () => Wrapper_default
|
|
32
36
|
});
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}, icon,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
+
};
|
|
56
|
+
|
|
57
|
+
Wrapper.defaultProps = defaultProps.wrapperDefault;
|
|
58
|
+
const WrapperWithSchema = reactDesc.describe(Wrapper);
|
|
59
|
+
WrapperWithSchema.propTypes = props.wrapperProps;
|
|
60
|
+
|
|
61
|
+
exports.WrapperWithSchema = WrapperWithSchema;
|
|
62
|
+
exports["default"] = Wrapper;
|
|
@@ -1,58 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
-
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(module2))
|
|
15
|
-
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
-
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return target;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (module2, isNodeMode) => {
|
|
21
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
-
};
|
|
23
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
-
return (module2, temp) => {
|
|
25
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
-
};
|
|
27
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
-
var defaultProps_exports = {};
|
|
29
|
-
__export(defaultProps_exports, {
|
|
30
|
-
groupDefault: () => groupDefault,
|
|
31
|
-
labelDefault: () => labelDefault,
|
|
32
|
-
valueDefault: () => valueDefault,
|
|
33
|
-
wrapperDefault: () => wrapperDefault
|
|
34
|
-
});
|
|
35
|
-
var React = __toESM(require("react"));
|
|
36
|
-
var import_prop_types = __toESM(require("@elliemae/ds-shared/prop-types"));
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var propTypes = require('@elliemae/ds-shared/prop-types');
|
|
6
|
+
|
|
37
7
|
const groupDefault = {
|
|
38
8
|
inline: false,
|
|
39
|
-
orientation:
|
|
9
|
+
orientation: propTypes.orientationVariants.VERTICAL
|
|
40
10
|
};
|
|
41
11
|
const labelDefault = {
|
|
42
|
-
position:
|
|
43
|
-
color:
|
|
12
|
+
position: propTypes.position.LEFT,
|
|
13
|
+
color: propTypes.fontColor.NEUTRAL500
|
|
44
14
|
};
|
|
45
15
|
const valueDefault = {
|
|
46
|
-
position:
|
|
47
|
-
size:
|
|
48
|
-
color:
|
|
16
|
+
position: propTypes.position.LEFT,
|
|
17
|
+
size: propTypes.sizeVariants.M,
|
|
18
|
+
color: propTypes.fontColor.NEUTRAL700,
|
|
49
19
|
semibold: false
|
|
50
20
|
};
|
|
51
21
|
const wrapperDefault = {
|
|
52
22
|
containerProps: {},
|
|
53
|
-
className:
|
|
23
|
+
className: '',
|
|
54
24
|
icon: null,
|
|
55
25
|
inverted: false
|
|
56
26
|
};
|
|
57
|
-
|
|
58
|
-
|
|
27
|
+
|
|
28
|
+
exports.groupDefault = groupDefault;
|
|
29
|
+
exports.labelDefault = labelDefault;
|
|
30
|
+
exports.valueDefault = valueDefault;
|
|
31
|
+
exports.wrapperDefault = wrapperDefault;
|