@elliemae/ds-label-value 2.2.0-next.4 → 2.3.0-alpha.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.
Files changed (37) hide show
  1. package/cjs/DSLabelValue.js +48 -20
  2. package/cjs/DSLabelValue.js.map +7 -0
  3. package/cjs/components/Group.js +51 -45
  4. package/cjs/components/Group.js.map +7 -0
  5. package/cjs/components/Label.js +51 -45
  6. package/cjs/components/Label.js.map +7 -0
  7. package/cjs/components/Value.js +62 -51
  8. package/cjs/components/Value.js.map +7 -0
  9. package/cjs/components/Wrapper.js +54 -60
  10. package/cjs/components/Wrapper.js.map +7 -0
  11. package/cjs/components/defaultProps.js +45 -18
  12. package/cjs/components/defaultProps.js.map +7 -0
  13. package/cjs/components/props.js +63 -39
  14. package/cjs/components/props.js.map +7 -0
  15. package/cjs/index.js +40 -18
  16. package/cjs/index.js.map +7 -0
  17. package/esm/DSLabelValue.js +14 -11
  18. package/esm/DSLabelValue.js.map +7 -0
  19. package/esm/components/Group.js +21 -35
  20. package/esm/components/Group.js.map +7 -0
  21. package/esm/components/Label.js +21 -35
  22. package/esm/components/Label.js.map +7 -0
  23. package/esm/components/Value.js +30 -39
  24. package/esm/components/Value.js.map +7 -0
  25. package/esm/components/Wrapper.js +24 -49
  26. package/esm/components/Wrapper.js.map +7 -0
  27. package/esm/components/defaultProps.js +15 -5
  28. package/esm/components/defaultProps.js.map +7 -0
  29. package/esm/components/props.js +37 -31
  30. package/esm/components/props.js.map +7 -0
  31. package/esm/index.js +18 -5
  32. package/esm/index.js.map +7 -0
  33. package/package.json +3 -3
  34. package/types/components/Group.d.ts +1 -5
  35. package/types/components/Label.d.ts +1 -5
  36. package/types/components/Value.d.ts +1 -7
  37. package/types/components/Wrapper.d.ts +1 -7
@@ -1,31 +1,58 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var propTypes = require('@elliemae/ds-shared/prop-types');
6
-
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
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 = require("@elliemae/ds-shared/prop-types");
7
37
  const groupDefault = {
8
38
  inline: false,
9
- orientation: propTypes.orientationVariants.VERTICAL
39
+ orientation: import_prop_types.orientationVariants.VERTICAL
10
40
  };
11
41
  const labelDefault = {
12
- position: propTypes.position.LEFT,
13
- color: propTypes.fontColor.NEUTRAL500
42
+ position: import_prop_types.position.LEFT,
43
+ color: import_prop_types.fontColor.NEUTRAL500
14
44
  };
15
45
  const valueDefault = {
16
- position: propTypes.position.LEFT,
17
- size: propTypes.sizeVariants.M,
18
- color: propTypes.fontColor.NEUTRAL700,
46
+ position: import_prop_types.position.LEFT,
47
+ size: import_prop_types.sizeVariants.M,
48
+ color: import_prop_types.fontColor.NEUTRAL700,
19
49
  semibold: false
20
50
  };
21
51
  const wrapperDefault = {
22
52
  containerProps: {},
23
- className: '',
53
+ className: "",
24
54
  icon: null,
25
55
  inverted: false
26
56
  };
27
-
28
- exports.groupDefault = groupDefault;
29
- exports.labelDefault = labelDefault;
30
- exports.valueDefault = valueDefault;
31
- exports.wrapperDefault = wrapperDefault;
57
+ module.exports = __toCommonJS(defaultProps_exports);
58
+ //# sourceMappingURL=defaultProps.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/defaultProps.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import {\n orientationVariants,\n position,\n sizeVariants,\n fontColor,\n} from '@elliemae/ds-shared/prop-types';\n\nexport const groupDefault = {\n inline: false,\n orientation: orientationVariants.VERTICAL,\n};\n\nexport const labelDefault = {\n position: position.LEFT,\n color: fontColor.NEUTRAL500,\n};\n\nexport const valueDefault = {\n position: position.LEFT,\n size: sizeVariants.M,\n color: fontColor.NEUTRAL700,\n semibold: false,\n};\n\nexport const wrapperDefault = {\n containerProps: {},\n className: '',\n icon: null,\n inverted: false,\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAKO;AAEA,MAAM,eAAe;AAAA,EAC1B,QAAQ;AAAA,EACR,aAAa,sCAAoB;AAAA;AAG5B,MAAM,eAAe;AAAA,EAC1B,UAAU,2BAAS;AAAA,EACnB,OAAO,4BAAU;AAAA;AAGZ,MAAM,eAAe;AAAA,EAC1B,UAAU,2BAAS;AAAA,EACnB,MAAM,+BAAa;AAAA,EACnB,OAAO,4BAAU;AAAA,EACjB,UAAU;AAAA;AAGL,MAAM,iBAAiB;AAAA,EAC5B,gBAAgB;AAAA,EAChB,WAAW;AAAA,EACX,MAAM;AAAA,EACN,UAAU;AAAA;",
6
+ "names": []
7
+ }
@@ -1,47 +1,71 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var reactDesc = require('react-desc');
6
- var propTypes = require('@elliemae/ds-shared/prop-types');
7
-
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
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 props_exports = {};
29
+ __export(props_exports, {
30
+ groupProps: () => groupProps,
31
+ labelProps: () => labelProps,
32
+ valueProps: () => valueProps,
33
+ wrapperProps: () => wrapperProps
34
+ });
35
+ var React = __toESM(require("react"));
36
+ var import_react_desc = require("react-desc");
37
+ var import_prop_types = require("@elliemae/ds-shared/prop-types");
8
38
  const groupProps = {
9
- /**
10
- * The elements to be wrapped
11
- */
12
- children: reactDesc.PropTypes.element.description('The elements to be wrapped'),
13
-
14
- /**
15
- * If the label value should be inline
16
- */
17
- inline: reactDesc.PropTypes.bool.description('If the label value should be inline'),
18
-
19
- /**
20
- * 'vertical' or 'horizontal'
21
- */
22
- orientation: reactDesc.PropTypes.string.description("'vertical' or 'horizontal'")
39
+ children: import_react_desc.PropTypes.element.description("The elements to be wrapped"),
40
+ inline: import_react_desc.PropTypes.bool.description("If the label value should be inline"),
41
+ orientation: import_react_desc.PropTypes.string.description("'vertical' or 'horizontal'")
23
42
  };
24
43
  const labelProps = {
25
- children: reactDesc.PropTypes.oneOfType([reactDesc.PropTypes.element, reactDesc.PropTypes.string, reactDesc.PropTypes.number]).description('Label element').isRequired,
26
- position: reactDesc.PropTypes.string.description('labels position').defaultValue(propTypes.position.LEFT),
27
- color: reactDesc.PropTypes.string.description('labels color').defaultValue(propTypes.fontColor.NEUTRAL500)
44
+ children: import_react_desc.PropTypes.oneOfType([
45
+ import_react_desc.PropTypes.element,
46
+ import_react_desc.PropTypes.string,
47
+ import_react_desc.PropTypes.number
48
+ ]).description("Label element").isRequired,
49
+ position: import_react_desc.PropTypes.string.description("labels position").defaultValue(import_prop_types.position.LEFT),
50
+ color: import_react_desc.PropTypes.string.description("labels color").defaultValue(import_prop_types.fontColor.NEUTRAL500)
28
51
  };
29
52
  const wrapperProps = {
30
- containerProps: reactDesc.PropTypes.object.description('Set of Properties attached to the main container'),
31
- className: reactDesc.PropTypes.string.description('html class attribute'),
32
- icon: reactDesc.PropTypes.element.description('Icon to be attached near value'),
33
- inverted: reactDesc.PropTypes.bool.description('Changes the position of the label').defaultValue(false),
34
- children: reactDesc.PropTypes.element.description('label value').isRequired
53
+ containerProps: import_react_desc.PropTypes.object.description("Set of Properties attached to the main container"),
54
+ className: import_react_desc.PropTypes.string.description("html class attribute"),
55
+ icon: import_react_desc.PropTypes.element.description("Icon to be attached near value"),
56
+ inverted: import_react_desc.PropTypes.bool.description("Changes the position of the label").defaultValue(false),
57
+ children: import_react_desc.PropTypes.element.description("label value").isRequired
35
58
  };
36
59
  const valueProps = {
37
- children: reactDesc.PropTypes.oneOfType([reactDesc.PropTypes.element, reactDesc.PropTypes.string, reactDesc.PropTypes.number]).description('value element').isRequired,
38
- size: reactDesc.PropTypes.func.description('values size').defaultValue(propTypes.sizeVariants.M),
39
- position: reactDesc.PropTypes.string.description('position of the value').defaultValue(propTypes.position.LEFT),
40
- color: reactDesc.PropTypes.string.description('value color').defaultValue(propTypes.fontColor.NEUTRAL700),
41
- semibold: reactDesc.PropTypes.bool.description('semibold or not').defaultValue(false)
60
+ children: import_react_desc.PropTypes.oneOfType([
61
+ import_react_desc.PropTypes.element,
62
+ import_react_desc.PropTypes.string,
63
+ import_react_desc.PropTypes.number
64
+ ]).description("value element").isRequired,
65
+ size: import_react_desc.PropTypes.func.description("values size").defaultValue(import_prop_types.sizeVariants.M),
66
+ position: import_react_desc.PropTypes.string.description("position of the value").defaultValue(import_prop_types.position.LEFT),
67
+ color: import_react_desc.PropTypes.string.description("value color").defaultValue(import_prop_types.fontColor.NEUTRAL700),
68
+ semibold: import_react_desc.PropTypes.bool.description("semibold or not").defaultValue(false)
42
69
  };
43
-
44
- exports.groupProps = groupProps;
45
- exports.labelProps = labelProps;
46
- exports.valueProps = valueProps;
47
- exports.wrapperProps = wrapperProps;
70
+ module.exports = __toCommonJS(props_exports);
71
+ //# sourceMappingURL=props.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/props.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import { PropTypes } from 'react-desc';\nimport {\n position,\n fontColor,\n sizeVariants,\n} from '@elliemae/ds-shared/prop-types';\n\nexport const groupProps = {\n /**\n * The elements to be wrapped\n */\n children: PropTypes.element.description('The elements to be wrapped'),\n /**\n * If the label value should be inline\n */\n inline: PropTypes.bool.description('If the label value should be inline'),\n /**\n * 'vertical' or 'horizontal'\n */\n orientation: PropTypes.string.description(\"'vertical' or 'horizontal'\"),\n};\n\nexport const labelProps = {\n children: PropTypes.oneOfType([\n PropTypes.element,\n PropTypes.string,\n PropTypes.number,\n ]).description('Label element').isRequired,\n position: PropTypes.string\n .description('labels position')\n .defaultValue(position.LEFT),\n color: PropTypes.string\n .description('labels color')\n .defaultValue(fontColor.NEUTRAL500),\n};\n\nexport const wrapperProps = {\n containerProps: PropTypes.object.description(\n 'Set of Properties attached to the main container',\n ),\n className: PropTypes.string.description('html class attribute'),\n icon: PropTypes.element.description('Icon to be attached near value'),\n inverted: PropTypes.bool\n .description('Changes the position of the label')\n .defaultValue(false),\n children: PropTypes.element.description('label value').isRequired,\n};\n\nexport const valueProps = {\n children: PropTypes.oneOfType([\n PropTypes.element,\n PropTypes.string,\n PropTypes.number,\n ]).description('value element').isRequired,\n size: PropTypes.func.description('values size').defaultValue(sizeVariants.M),\n position: PropTypes.string\n .description('position of the value')\n .defaultValue(position.LEFT),\n color: PropTypes.string\n .description('value color')\n .defaultValue(fontColor.NEUTRAL700),\n semibold: PropTypes.bool.description('semibold or not').defaultValue(false),\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAA0B;AAC1B,wBAIO;AAEA,MAAM,aAAa;AAAA,EAIxB,UAAU,4BAAU,QAAQ,YAAY;AAAA,EAIxC,QAAQ,4BAAU,KAAK,YAAY;AAAA,EAInC,aAAa,4BAAU,OAAO,YAAY;AAAA;AAGrC,MAAM,aAAa;AAAA,EACxB,UAAU,4BAAU,UAAU;AAAA,IAC5B,4BAAU;AAAA,IACV,4BAAU;AAAA,IACV,4BAAU;AAAA,KACT,YAAY,iBAAiB;AAAA,EAChC,UAAU,4BAAU,OACjB,YAAY,mBACZ,aAAa,2BAAS;AAAA,EACzB,OAAO,4BAAU,OACd,YAAY,gBACZ,aAAa,4BAAU;AAAA;AAGrB,MAAM,eAAe;AAAA,EAC1B,gBAAgB,4BAAU,OAAO,YAC/B;AAAA,EAEF,WAAW,4BAAU,OAAO,YAAY;AAAA,EACxC,MAAM,4BAAU,QAAQ,YAAY;AAAA,EACpC,UAAU,4BAAU,KACjB,YAAY,qCACZ,aAAa;AAAA,EAChB,UAAU,4BAAU,QAAQ,YAAY,eAAe;AAAA;AAGlD,MAAM,aAAa;AAAA,EACxB,UAAU,4BAAU,UAAU;AAAA,IAC5B,4BAAU;AAAA,IACV,4BAAU;AAAA,IACV,4BAAU;AAAA,KACT,YAAY,iBAAiB;AAAA,EAChC,MAAM,4BAAU,KAAK,YAAY,eAAe,aAAa,+BAAa;AAAA,EAC1E,UAAU,4BAAU,OACjB,YAAY,yBACZ,aAAa,2BAAS;AAAA,EACzB,OAAO,4BAAU,OACd,YAAY,eACZ,aAAa,4BAAU;AAAA,EAC1B,UAAU,4BAAU,KAAK,YAAY,mBAAmB,aAAa;AAAA;",
6
+ "names": []
7
+ }
package/cjs/index.js CHANGED
@@ -1,18 +1,40 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var DSLabelValue = require('./DSLabelValue.js');
6
- var Wrapper = require('./components/Wrapper.js');
7
- var Group = require('./components/Group.js');
8
- var Label = require('./components/Label.js');
9
- var Value = require('./components/Value.js');
10
-
11
-
12
-
13
- exports.DSLabelValue = DSLabelValue["default"];
14
- exports["default"] = DSLabelValue["default"];
15
- exports.WrapperWithSchema = Wrapper.WrapperWithSchema;
16
- exports.GroupWithSchema = Group.GroupWithSchema;
17
- exports.LabelWithSchema = Label.LabelWithSchema;
18
- exports.ValueWithSchema = Value.ValueWithSchema;
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
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 src_exports = {};
29
+ __export(src_exports, {
30
+ DSLabelValue: () => import_DSLabelValue.default,
31
+ GroupWithSchema: () => import_DSLabelValue.GroupWithSchema,
32
+ LabelWithSchema: () => import_DSLabelValue.LabelWithSchema,
33
+ ValueWithSchema: () => import_DSLabelValue.ValueWithSchema,
34
+ WrapperWithSchema: () => import_DSLabelValue.WrapperWithSchema,
35
+ default: () => import_DSLabelValue.default
36
+ });
37
+ var React = __toESM(require("react"));
38
+ var import_DSLabelValue = __toESM(require("./DSLabelValue"));
39
+ module.exports = __toCommonJS(src_exports);
40
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["export {\n default,\n default as DSLabelValue,\n WrapperWithSchema,\n GroupWithSchema,\n LabelWithSchema,\n ValueWithSchema,\n} from './DSLabelValue';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,0BAOO;",
6
+ "names": []
7
+ }
@@ -1,17 +1,20 @@
1
- import Wrapper from './components/Wrapper.js';
2
- export { WrapperWithSchema } from './components/Wrapper.js';
3
- import Group from './components/Group.js';
4
- export { GroupWithSchema } from './components/Group.js';
5
- import Label from './components/Label.js';
6
- export { LabelWithSchema } from './components/Label.js';
7
- import Value from './components/Value.js';
8
- export { ValueWithSchema } from './components/Value.js';
9
-
1
+ import * as React from "react";
2
+ import Wrapper, { WrapperWithSchema } from "./components/Wrapper";
3
+ import Group, { GroupWithSchema } from "./components/Group";
4
+ import Label, { LabelWithSchema } from "./components/Label";
5
+ import Value, { ValueWithSchema } from "./components/Value";
10
6
  const DSLabelValue = Object.assign(Wrapper, {
11
7
  Group,
12
8
  Wrapper,
13
9
  Label,
14
10
  Value
15
11
  });
16
-
17
- export { DSLabelValue as default };
12
+ var DSLabelValue_default = DSLabelValue;
13
+ export {
14
+ GroupWithSchema,
15
+ LabelWithSchema,
16
+ ValueWithSchema,
17
+ WrapperWithSchema,
18
+ DSLabelValue_default as default
19
+ };
20
+ //# sourceMappingURL=DSLabelValue.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSLabelValue.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import Wrapper, { WrapperWithSchema } from './components/Wrapper';\nimport Group, { GroupWithSchema } from './components/Group';\nimport Label, { LabelWithSchema } from './components/Label';\nimport Value, { ValueWithSchema } from './components/Value';\n\nconst DSLabelValue = Object.assign(Wrapper, {\n Group,\n Wrapper,\n Label,\n Value,\n});\n\nexport { WrapperWithSchema, GroupWithSchema, LabelWithSchema, ValueWithSchema };\nexport default DSLabelValue;\n"],
5
+ "mappings": "AAAA;ACAA;AACA;AACA;AACA;AAEA,MAAM,eAAe,OAAO,OAAO,SAAS;AAAA,EAC1C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAIF,IAAO,uBAAQ;",
6
+ "names": []
7
+ }
@@ -1,38 +1,24 @@
1
- import _jsx from '@babel/runtime/helpers/esm/jsx';
2
- import 'react';
3
- import { describe } from 'react-desc';
4
- import { aggregatedClasses } from '@elliemae/ds-classnames';
5
- import { groupProps } from './props.js';
6
- import { groupDefault } from './defaultProps.js';
7
-
8
- const blockName = 'labelValueGroup';
9
- const WrapperGroup = aggregatedClasses('div')(blockName, 'wrapper', _ref => {
10
- let {
11
- orientation,
12
- inline
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
- };
33
-
1
+ import * as React from "react";
2
+ import React2 from "react";
3
+ import { describe } from "react-desc";
4
+ import { aggregatedClasses } from "@elliemae/ds-classnames";
5
+ import { groupProps } from "./props";
6
+ import { groupDefault } from "./defaultProps";
7
+ const blockName = "labelValueGroup";
8
+ const WrapperGroup = aggregatedClasses("div")(blockName, "wrapper", ({ orientation, inline }) => ({
9
+ inline,
10
+ [orientation]: orientation
11
+ }));
12
+ const Group = ({ children, inline, orientation }) => /* @__PURE__ */ React2.createElement(WrapperGroup, {
13
+ classProps: { orientation, inline }
14
+ }, children);
15
+ Group.propTypes = groupProps;
34
16
  Group.defaultProps = groupDefault;
35
17
  const GroupWithSchema = describe(Group);
36
18
  GroupWithSchema.propTypes = groupProps;
37
-
38
- export { GroupWithSchema, Group as default };
19
+ var Group_default = Group;
20
+ export {
21
+ GroupWithSchema,
22
+ Group_default as default
23
+ };
24
+ //# sourceMappingURL=Group.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/Group.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from 'react-desc';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { groupProps } from './props';\nimport { groupDefault } from './defaultProps';\n\nconst blockName = 'labelValueGroup';\n\nconst WrapperGroup = aggregatedClasses('div')(\n blockName,\n 'wrapper',\n ({ orientation, inline }) => ({\n inline,\n [orientation]: orientation,\n }),\n);\n\nconst Group = ({ children, inline, orientation }) => (\n <WrapperGroup classProps={{ orientation, inline }}>{children}</WrapperGroup>\n);\n\nGroup.propTypes = groupProps;\nGroup.defaultProps = groupDefault;\n\nconst GroupWithSchema = describe(Group);\nGroupWithSchema.propTypes = groupProps;\n\nexport { GroupWithSchema };\nexport default Group;\n"],
5
+ "mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AAEA,MAAM,YAAY;AAElB,MAAM,eAAe,kBAAkB,OACrC,WACA,WACA,CAAC,EAAE,aAAa,aAAc;AAAA,EAC5B;AAAA,GACC,cAAc;AAAA;AAInB,MAAM,QAAQ,CAAC,EAAE,UAAU,QAAQ,kBACjC,qCAAC,cAAD;AAAA,EAAc,YAAY,EAAE,aAAa;AAAA,GAAW;AAGtD,MAAM,YAAY;AAClB,MAAM,eAAe;AAErB,MAAM,kBAAkB,SAAS;AACjC,gBAAgB,YAAY;AAG5B,IAAO,gBAAQ;",
6
+ "names": []
7
+ }
@@ -1,38 +1,24 @@
1
- import _jsx from '@babel/runtime/helpers/esm/jsx';
2
- import 'react';
3
- import { describe } from 'react-desc';
4
- import { aggregatedClasses } from '@elliemae/ds-classnames';
5
- import { labelProps } from './props.js';
6
- import { labelDefault } from './defaultProps.js';
7
-
8
- const blockName = 'labelValue';
9
- const LabelStyled = aggregatedClasses('div')(blockName, 'label', _ref => {
10
- let {
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
- color
25
- } = _ref2;
26
- return /*#__PURE__*/_jsx(LabelStyled, {
27
- classProps: {
28
- labelPosition,
29
- color
30
- }
31
- }, void 0, children);
32
- };
33
-
1
+ import * as React from "react";
2
+ import React2 from "react";
3
+ import { describe } from "react-desc";
4
+ import { aggregatedClasses } from "@elliemae/ds-classnames";
5
+ import { labelProps } from "./props";
6
+ import { labelDefault } from "./defaultProps";
7
+ const blockName = "labelValue";
8
+ const LabelStyled = aggregatedClasses("div")(blockName, "label", ({ labelPosition, labelColor }) => ({
9
+ [labelPosition]: labelPosition,
10
+ [labelColor]: labelColor
11
+ }));
12
+ const Label = ({ children, position: labelPosition, color }) => /* @__PURE__ */ React2.createElement(LabelStyled, {
13
+ classProps: { labelPosition, color }
14
+ }, children);
15
+ Label.propTypes = labelProps;
34
16
  Label.defaultProps = labelDefault;
35
17
  const LabelWithSchema = describe(Label);
36
18
  LabelWithSchema.propTypes = labelProps;
37
-
38
- export { LabelWithSchema, Label as default };
19
+ var Label_default = Label;
20
+ export {
21
+ LabelWithSchema,
22
+ Label_default as default
23
+ };
24
+ //# sourceMappingURL=Label.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/Label.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from 'react-desc';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { labelProps } from './props';\nimport { labelDefault } from './defaultProps';\n\nconst blockName = 'labelValue';\n\nconst LabelStyled = aggregatedClasses('div')(\n blockName,\n 'label',\n ({ labelPosition, labelColor }) => ({\n [labelPosition]: labelPosition,\n [labelColor]: labelColor,\n }),\n);\n\nconst Label = ({ children, position: labelPosition, color }) => (\n <LabelStyled classProps={{ labelPosition, color }}>{children}</LabelStyled>\n);\n\nLabel.propTypes = labelProps;\nLabel.defaultProps = labelDefault;\n\nconst LabelWithSchema = describe(Label);\nLabelWithSchema.propTypes = labelProps;\n\nexport { LabelWithSchema };\nexport default Label;\n"],
5
+ "mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AAEA,MAAM,YAAY;AAElB,MAAM,cAAc,kBAAkB,OACpC,WACA,SACA,CAAC,EAAE,eAAe,iBAAkB;AAAA,GACjC,gBAAgB;AAAA,GAChB,aAAa;AAAA;AAIlB,MAAM,QAAQ,CAAC,EAAE,UAAU,UAAU,eAAe,YAClD,qCAAC,aAAD;AAAA,EAAa,YAAY,EAAE,eAAe;AAAA,GAAU;AAGtD,MAAM,YAAY;AAClB,MAAM,eAAe;AAErB,MAAM,kBAAkB,SAAS;AACjC,gBAAgB,YAAY;AAG5B,IAAO,gBAAQ;",
6
+ "names": []
7
+ }
@@ -1,46 +1,37 @@
1
- import _jsx from '@babel/runtime/helpers/esm/jsx';
2
- import 'react';
3
- import { describe } from 'react-desc';
4
- import { aggregatedClasses } from '@elliemae/ds-classnames';
5
- import { valueProps } from './props.js';
6
- import { valueDefault } from './defaultProps.js';
7
-
8
- const blockName = 'labelValue';
9
- const ValueStyled = aggregatedClasses('div')(blockName, 'value', _ref => {
10
- let {
1
+ import * as React from "react";
2
+ import React2 from "react";
3
+ import { describe } from "react-desc";
4
+ import { aggregatedClasses } from "@elliemae/ds-classnames";
5
+ import { valueProps } from "./props";
6
+ import { valueDefault } from "./defaultProps";
7
+ const blockName = "labelValue";
8
+ const ValueStyled = aggregatedClasses("div")(blockName, "value", ({ size, valuePosition, valueColor, semibold }) => ({
9
+ [size]: size,
10
+ [valuePosition]: valuePosition,
11
+ [valueColor]: valueColor,
12
+ semibold
13
+ }));
14
+ const Value = ({
15
+ children,
16
+ position: valuePosition,
17
+ size,
18
+ color: valueColor,
19
+ semibold = false
20
+ }) => /* @__PURE__ */ React2.createElement(ValueStyled, {
21
+ classProps: {
11
22
  size,
12
23
  valuePosition,
13
24
  valueColor,
14
25
  semibold
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
- };
41
-
26
+ }
27
+ }, /* @__PURE__ */ React2.createElement("span", null, children));
28
+ Value.propTypes = valueProps;
42
29
  Value.defaultProps = valueDefault;
43
30
  const ValueWithSchema = describe(Value);
44
31
  ValueWithSchema.propTypes = valueProps;
45
-
46
- export { ValueWithSchema, Value as default };
32
+ var Value_default = Value;
33
+ export {
34
+ ValueWithSchema,
35
+ Value_default as default
36
+ };
37
+ //# sourceMappingURL=Value.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/Value.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from 'react-desc';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { valueProps } from './props';\nimport { valueDefault } from './defaultProps';\n\nconst blockName = 'labelValue';\n\nconst ValueStyled = aggregatedClasses('div')(\n blockName,\n 'value',\n ({ size, valuePosition, valueColor, semibold }) => ({\n [size]: size,\n [valuePosition]: valuePosition,\n [valueColor]: valueColor,\n semibold,\n }),\n);\n\nconst Value = ({\n children,\n position: valuePosition,\n size,\n color: valueColor,\n semibold = false,\n}) => (\n <ValueStyled\n classProps={{\n size,\n valuePosition,\n valueColor,\n semibold,\n }}\n >\n <span>{children}</span>\n </ValueStyled>\n);\n\nValue.propTypes = valueProps;\nValue.defaultProps = valueDefault;\n\nconst ValueWithSchema = describe(Value);\nValueWithSchema.propTypes = valueProps;\n\nexport { ValueWithSchema };\nexport default Value;\n"],
5
+ "mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AAEA,MAAM,YAAY;AAElB,MAAM,cAAc,kBAAkB,OACpC,WACA,SACA,CAAC,EAAE,MAAM,eAAe,YAAY,eAAgB;AAAA,GACjD,OAAO;AAAA,GACP,gBAAgB;AAAA,GAChB,aAAa;AAAA,EACd;AAAA;AAIJ,MAAM,QAAQ,CAAC;AAAA,EACb;AAAA,EACA,UAAU;AAAA,EACV;AAAA,EACA,OAAO;AAAA,EACP,WAAW;AAAA,MAEX,qCAAC,aAAD;AAAA,EACE,YAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAAA,GAGF,qCAAC,QAAD,MAAO;AAIX,MAAM,YAAY;AAClB,MAAM,eAAe;AAErB,MAAM,kBAAkB,SAAS;AACjC,gBAAgB,YAAY;AAG5B,IAAO,gBAAQ;",
6
+ "names": []
7
+ }
@@ -1,52 +1,27 @@
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';
6
- import _jsx from '@babel/runtime/helpers/esm/jsx';
7
- import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
8
- import 'react';
9
- import { describe } from 'react-desc';
10
- import { aggregatedClasses } from '@elliemae/ds-classnames';
11
- import { wrapperProps } from './props.js';
12
- import { wrapperDefault } from './defaultProps.js';
13
- import { jsx } from 'react/jsx-runtime';
14
-
15
- 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; }
16
-
17
- 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(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; }
18
- const blockName = 'labelValue';
19
- const LabelValueWrapper = aggregatedClasses('div')(blockName, 'label-value-wrapper', () => null);
20
- const Container = aggregatedClasses('div')(blockName, 'wrapper', _ref => {
21
- let {
22
- inverted
23
- } = _ref;
24
- return {
25
- inverted
26
- };
27
- });
28
-
29
- const Wrapper = _ref2 => {
30
- let {
31
- containerProps,
32
- children,
33
- className,
34
- icon,
35
- inverted
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
- };
47
-
1
+ import * as React from "react";
2
+ import React2 from "react";
3
+ import { describe } from "react-desc";
4
+ import { aggregatedClasses } from "@elliemae/ds-classnames";
5
+ import { wrapperProps } from "./props";
6
+ import { wrapperDefault } from "./defaultProps";
7
+ const blockName = "labelValue";
8
+ const LabelValueWrapper = aggregatedClasses("div")(blockName, "label-value-wrapper", () => null);
9
+ const Container = aggregatedClasses("div")(blockName, "wrapper", ({ inverted }) => ({
10
+ inverted
11
+ }));
12
+ const Wrapper = ({ containerProps, children, className, icon, inverted }) => /* @__PURE__ */ React2.createElement(Container, {
13
+ classProps: { inverted }
14
+ }, icon, /* @__PURE__ */ React2.createElement(LabelValueWrapper, {
15
+ className,
16
+ ...containerProps
17
+ }, children));
18
+ Wrapper.propTypes = wrapperProps;
48
19
  Wrapper.defaultProps = wrapperDefault;
49
20
  const WrapperWithSchema = describe(Wrapper);
50
21
  WrapperWithSchema.propTypes = wrapperProps;
51
-
52
- export { WrapperWithSchema, Wrapper as default };
22
+ var Wrapper_default = Wrapper;
23
+ export {
24
+ WrapperWithSchema,
25
+ Wrapper_default as default
26
+ };
27
+ //# sourceMappingURL=Wrapper.js.map