@elliemae/ds-label-value 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.
Files changed (52) hide show
  1. package/cjs/DSLabelValue.js +14 -23
  2. package/cjs/components/Group.js +30 -29
  3. package/cjs/components/Label.js +30 -29
  4. package/cjs/components/Value.js +38 -36
  5. package/cjs/components/Wrapper.js +41 -30
  6. package/cjs/components/defaultProps.js +5 -6
  7. package/cjs/components/props.js +5 -6
  8. package/cjs/index.js +10 -19
  9. package/esm/DSLabelValue.js +5 -14
  10. package/esm/components/Group.js +23 -21
  11. package/esm/components/Label.js +23 -21
  12. package/esm/components/Value.js +31 -28
  13. package/esm/components/Wrapper.js +34 -23
  14. package/esm/components/defaultProps.js +5 -6
  15. package/esm/components/props.js +5 -6
  16. package/esm/index.js +0 -9
  17. package/package.json +56 -10
  18. package/types/DSLabelValue.d.ts +168 -0
  19. package/types/components/Group.d.ts +44 -0
  20. package/types/components/Label.d.ts +33 -0
  21. package/types/components/Value.d.ts +45 -0
  22. package/types/components/Wrapper.d.ts +54 -0
  23. package/types/components/defaultProps.d.ts +20 -0
  24. package/types/components/props.d.ts +78 -0
  25. package/types/index.d.ts +1 -0
  26. package/DSLabelValue/package.json +0 -10
  27. package/cjs/DSLabelValue.js.map +0 -1
  28. package/cjs/components/Group.js.map +0 -1
  29. package/cjs/components/Label.js.map +0 -1
  30. package/cjs/components/Value.js.map +0 -1
  31. package/cjs/components/Wrapper.js.map +0 -1
  32. package/cjs/components/defaultProps.js.map +0 -1
  33. package/cjs/components/props.js.map +0 -1
  34. package/cjs/index.js.map +0 -1
  35. package/cjs/prop-types-15287a6f.js +0 -31
  36. package/cjs/prop-types-15287a6f.js.map +0 -1
  37. package/components/Group/package.json +0 -10
  38. package/components/Label/package.json +0 -10
  39. package/components/Value/package.json +0 -10
  40. package/components/Wrapper/package.json +0 -10
  41. package/components/defaultProps/package.json +0 -10
  42. package/components/props/package.json +0 -10
  43. package/esm/DSLabelValue.js.map +0 -1
  44. package/esm/components/Group.js.map +0 -1
  45. package/esm/components/Label.js.map +0 -1
  46. package/esm/components/Value.js.map +0 -1
  47. package/esm/components/Wrapper.js.map +0 -1
  48. package/esm/components/defaultProps.js.map +0 -1
  49. package/esm/components/props.js.map +0 -1
  50. package/esm/index.js.map +0 -1
  51. package/esm/prop-types-2c19033d.js +0 -26
  52. package/esm/prop-types-2c19033d.js.map +0 -1
@@ -0,0 +1,20 @@
1
+ export declare const groupDefault: {
2
+ inline: boolean;
3
+ orientation: any;
4
+ };
5
+ export declare const labelDefault: {
6
+ position: any;
7
+ color: any;
8
+ };
9
+ export declare const valueDefault: {
10
+ position: any;
11
+ size: any;
12
+ color: any;
13
+ semibold: boolean;
14
+ };
15
+ export declare const wrapperDefault: {
16
+ containerProps: {};
17
+ className: string;
18
+ icon: null;
19
+ inverted: boolean;
20
+ };
@@ -0,0 +1,78 @@
1
+ /// <reference path="../../../../../shared/typings/react-desc.d.ts" />
2
+ export declare const groupProps: {
3
+ /**
4
+ * The elements to be wrapped
5
+ */
6
+ children: {
7
+ defaultValue<T = unknown>(arg: T): {
8
+ deprecated: import("react-desc").PropTypesDescValidator;
9
+ };
10
+ isRequired: import("react-desc").PropTypesDescValidator;
11
+ };
12
+ /**
13
+ * If the label value should be inline
14
+ */
15
+ inline: {
16
+ defaultValue<T = unknown>(arg: T): {
17
+ deprecated: import("react-desc").PropTypesDescValidator;
18
+ };
19
+ isRequired: import("react-desc").PropTypesDescValidator;
20
+ };
21
+ /**
22
+ * 'vertical' or 'horizontal'
23
+ */
24
+ orientation: {
25
+ defaultValue<T = unknown>(arg: T): {
26
+ deprecated: import("react-desc").PropTypesDescValidator;
27
+ };
28
+ isRequired: import("react-desc").PropTypesDescValidator;
29
+ };
30
+ };
31
+ export declare const labelProps: {
32
+ children: import("react-desc").PropTypesDescValidator;
33
+ position: {
34
+ deprecated: import("react-desc").PropTypesDescValidator;
35
+ };
36
+ color: {
37
+ deprecated: import("react-desc").PropTypesDescValidator;
38
+ };
39
+ };
40
+ export declare const wrapperProps: {
41
+ containerProps: {
42
+ defaultValue<T = unknown>(arg: T): {
43
+ deprecated: import("react-desc").PropTypesDescValidator;
44
+ };
45
+ isRequired: import("react-desc").PropTypesDescValidator;
46
+ };
47
+ className: {
48
+ defaultValue<T = unknown>(arg: T): {
49
+ deprecated: import("react-desc").PropTypesDescValidator;
50
+ };
51
+ isRequired: import("react-desc").PropTypesDescValidator;
52
+ };
53
+ icon: {
54
+ defaultValue<T = unknown>(arg: T): {
55
+ deprecated: import("react-desc").PropTypesDescValidator;
56
+ };
57
+ isRequired: import("react-desc").PropTypesDescValidator;
58
+ };
59
+ inverted: {
60
+ deprecated: import("react-desc").PropTypesDescValidator;
61
+ };
62
+ children: import("react-desc").PropTypesDescValidator;
63
+ };
64
+ export declare const valueProps: {
65
+ children: import("react-desc").PropTypesDescValidator;
66
+ size: {
67
+ deprecated: import("react-desc").PropTypesDescValidator;
68
+ };
69
+ position: {
70
+ deprecated: import("react-desc").PropTypesDescValidator;
71
+ };
72
+ color: {
73
+ deprecated: import("react-desc").PropTypesDescValidator;
74
+ };
75
+ semibold: {
76
+ deprecated: import("react-desc").PropTypesDescValidator;
77
+ };
78
+ };
@@ -0,0 +1 @@
1
+ export { default, default as DSLabelValue, WrapperWithSchema, GroupWithSchema, LabelWithSchema, ValueWithSchema, } from './DSLabelValue';
@@ -1,10 +0,0 @@
1
- {
2
- "name": "@elliemae/ds-label-value/DSLabelValue",
3
- "sideEffects": [
4
- "*.css",
5
- "*.scss"
6
- ],
7
- "private": true,
8
- "main": "../cjs/DSLabelValue.js",
9
- "module": "../esm/DSLabelValue.js"
10
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"DSLabelValue.js","sources":["../../src/DSLabelValue.tsx"],"sourcesContent":["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"],"names":["DSLabelValue","Object","assign","Wrapper","Group","Label","Value"],"mappings":";;;;;;;;;;;;;;;;;IAKMA,YAAY,GAAGC,MAAM,CAACC,MAAP,CAAcC,6BAAd,EAAuB;AAC1CC,EAAAA,KAAK,EAALA,2BAD0C;AAE1CD,EAAAA,OAAO,EAAPA,6BAF0C;AAG1CE,EAAAA,KAAK,EAALA,2BAH0C;AAI1CC,EAAAA,KAAK,EAALA;AAJ0C,CAAvB;;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Group.js","sources":["../../../src/components/Group.tsx"],"sourcesContent":["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"],"names":["blockName","WrapperGroup","aggregatedClasses","orientation","inline","Group","children","React","propTypes","groupProps","defaultProps","groupDefault","GroupWithSchema","describe"],"mappings":";;;;;;;;;;;;;;;;;AAMA,IAAMA,SAAS,GAAG,iBAAlB;AAEA,IAAMC,YAAY,GAAGC,8BAAiB,CAAC,KAAD,CAAjB,CACnBF,SADmB,EAEnB,SAFmB,EAGnB;AAAA,MAAGG,WAAH,QAAGA,WAAH;AAAA,MAAgBC,MAAhB,QAAgBA,MAAhB;AAAA;AACEA,IAAAA,MAAM,EAANA;AADF,KAEGD,WAFH,EAEiBA,WAFjB;AAAA,CAHmB,CAArB;;IASME,KAAK,GAAG,SAARA,KAAQ;AAAA,MAAGC,QAAH,SAAGA,QAAH;AAAA,MAAaF,MAAb,SAAaA,MAAb;AAAA,MAAqBD,WAArB,SAAqBA,WAArB;AAAA,sBACZI,wCAAC,YAAD;AAAc,IAAA,UAAU,EAAE;AAAEJ,MAAAA,WAAW,EAAXA,WAAF;AAAeC,MAAAA,MAAM,EAANA;AAAf;AAA1B,KAAoDE,QAApD,CADY;AAAA;;AAIdD,KAAK,CAACG,SAAN,GAAkBC,2BAAlB;AACAJ,KAAK,CAACK,YAAN,GAAqBC,oCAArB;IAEMC,eAAe,GAAGC,kBAAQ,CAACR,KAAD;AAChCO,eAAe,CAACJ,SAAhB,GAA4BC,2BAA5B;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Label.js","sources":["../../../src/components/Label.tsx"],"sourcesContent":["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"],"names":["blockName","LabelStyled","aggregatedClasses","labelPosition","labelColor","Label","children","position","color","React","propTypes","labelProps","defaultProps","labelDefault","LabelWithSchema","describe"],"mappings":";;;;;;;;;;;;;;;;;AAMA,IAAMA,SAAS,GAAG,YAAlB;AAEA,IAAMC,WAAW,GAAGC,8BAAiB,CAAC,KAAD,CAAjB,CAClBF,SADkB,EAElB,OAFkB,EAGlB;AAAA;;AAAA,MAAGG,aAAH,QAAGA,aAAH;AAAA,MAAkBC,UAAlB,QAAkBA,UAAlB;AAAA,gEACGD,aADH,EACmBA,aADnB,8CAEGC,UAFH,EAEgBA,UAFhB;AAAA,CAHkB,CAApB;;IASMC,KAAK,GAAG,SAARA,KAAQ;AAAA,MAAGC,QAAH,SAAGA,QAAH;AAAA,MAAuBH,aAAvB,SAAaI,QAAb;AAAA,MAAsCC,KAAtC,SAAsCA,KAAtC;AAAA,sBACZC,wCAAC,WAAD;AAAa,IAAA,UAAU,EAAE;AAAEN,MAAAA,aAAa,EAAbA,aAAF;AAAiBK,MAAAA,KAAK,EAALA;AAAjB;AAAzB,KAAoDF,QAApD,CADY;AAAA;;AAIdD,KAAK,CAACK,SAAN,GAAkBC,2BAAlB;AACAN,KAAK,CAACO,YAAN,GAAqBC,oCAArB;IAEMC,eAAe,GAAGC,kBAAQ,CAACV,KAAD;AAChCS,eAAe,CAACJ,SAAhB,GAA4BC,2BAA5B;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Value.js","sources":["../../../src/components/Value.tsx"],"sourcesContent":["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"],"names":["blockName","ValueStyled","aggregatedClasses","size","valuePosition","valueColor","semibold","Value","children","position","color","React","propTypes","valueProps","defaultProps","valueDefault","ValueWithSchema","describe"],"mappings":";;;;;;;;;;;;;;;;;AAMA,IAAMA,SAAS,GAAG,YAAlB;AAEA,IAAMC,WAAW,GAAGC,8BAAiB,CAAC,KAAD,CAAjB,CAClBF,SADkB,EAElB,OAFkB,EAGlB;AAAA;;AAAA,MAAGG,IAAH,QAAGA,IAAH;AAAA,MAASC,aAAT,QAASA,aAAT;AAAA,MAAwBC,UAAxB,QAAwBA,UAAxB;AAAA,MAAoCC,QAApC,QAAoCA,QAApC;AAAA,gEACGH,IADH,EACUA,IADV,8CAEGC,aAFH,EAEmBA,aAFnB,8CAGGC,UAHH,EAGgBA,UAHhB,0DAIEC,QAJF;AAAA,CAHkB,CAApB;;IAWMC,KAAK,GAAG,SAARA,KAAQ;AAAA,MACZC,QADY,SACZA,QADY;AAAA,MAEFJ,aAFE,SAEZK,QAFY;AAAA,MAGZN,IAHY,SAGZA,IAHY;AAAA,MAILE,UAJK,SAIZK,KAJY;AAAA,6BAKZJ,QALY;AAAA,MAKZA,QALY,+BAKD,KALC;AAAA,sBAOZK,wCAAC,WAAD;AACE,IAAA,UAAU,EAAE;AACVR,MAAAA,IAAI,EAAJA,IADU;AAEVC,MAAAA,aAAa,EAAbA,aAFU;AAGVC,MAAAA,UAAU,EAAVA,UAHU;AAIVC,MAAAA,QAAQ,EAARA;AAJU;AADd,kBAQEK,sDAAOH,QAAP,CARF,CAPY;AAAA;;AAmBdD,KAAK,CAACK,SAAN,GAAkBC,2BAAlB;AACAN,KAAK,CAACO,YAAN,GAAqBC,oCAArB;IAEMC,eAAe,GAAGC,kBAAQ,CAACV,KAAD;AAChCS,eAAe,CAACJ,SAAhB,GAA4BC,2BAA5B;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Wrapper.js","sources":["../../../src/components/Wrapper.tsx"],"sourcesContent":["import React from 'react';\nimport { describe } from 'react-desc';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { wrapperProps } from './props';\nimport { wrapperDefault } from './defaultProps';\n\nconst blockName = 'labelValue';\n\nconst LabelValueWrapper = aggregatedClasses('div')(\n blockName,\n 'label-value-wrapper',\n () => null,\n);\nconst Container = aggregatedClasses('div')(\n blockName,\n 'wrapper',\n ({ inverted }) => ({\n inverted,\n }),\n);\n\nconst Wrapper = ({ containerProps, children, className, icon, inverted }) => (\n <Container classProps={{ inverted }}>\n {icon}\n <LabelValueWrapper className={className} {...containerProps}>\n {children}\n </LabelValueWrapper>\n </Container>\n);\n\nWrapper.propTypes = wrapperProps;\nWrapper.defaultProps = wrapperDefault;\n\nconst WrapperWithSchema = describe(Wrapper);\nWrapperWithSchema.propTypes = wrapperProps;\n\nexport { WrapperWithSchema };\nexport default Wrapper;\n"],"names":["blockName","LabelValueWrapper","aggregatedClasses","Container","inverted","Wrapper","containerProps","children","className","icon","React","propTypes","wrapperProps","defaultProps","wrapperDefault","WrapperWithSchema","describe"],"mappings":";;;;;;;;;;;;;;;;;AAMA,IAAMA,SAAS,GAAG,YAAlB;AAEA,IAAMC,iBAAiB,GAAGC,8BAAiB,CAAC,KAAD,CAAjB,CACxBF,SADwB,EAExB,qBAFwB,EAGxB;AAAA,SAAM,IAAN;AAAA,CAHwB,CAA1B;AAKA,IAAMG,SAAS,GAAGD,8BAAiB,CAAC,KAAD,CAAjB,CAChBF,SADgB,EAEhB,SAFgB,EAGhB;AAAA,MAAGI,QAAH,QAAGA,QAAH;AAAA,SAAmB;AACjBA,IAAAA,QAAQ,EAARA;AADiB,GAAnB;AAAA,CAHgB,CAAlB;;IAQMC,OAAO,GAAG,SAAVA,OAAU;AAAA,MAAGC,cAAH,SAAGA,cAAH;AAAA,MAAmBC,QAAnB,SAAmBA,QAAnB;AAAA,MAA6BC,SAA7B,SAA6BA,SAA7B;AAAA,MAAwCC,IAAxC,SAAwCA,IAAxC;AAAA,MAA8CL,QAA9C,SAA8CA,QAA9C;AAAA,sBACdM,wCAAC,SAAD;AAAW,IAAA,UAAU,EAAE;AAAEN,MAAAA,QAAQ,EAARA;AAAF;AAAvB,KACGK,IADH,eAEEC,wCAAC,iBAAD;AAAmB,IAAA,SAAS,EAAEF;AAA9B,KAA6CF,cAA7C,GACGC,QADH,CAFF,CADc;AAAA;;AAShBF,OAAO,CAACM,SAAR,GAAoBC,6BAApB;AACAP,OAAO,CAACQ,YAAR,GAAuBC,sCAAvB;IAEMC,iBAAiB,GAAGC,kBAAQ,CAACX,OAAD;AAClCU,iBAAiB,CAACJ,SAAlB,GAA8BC,6BAA9B;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"defaultProps.js","sources":["../../../src/components/defaultProps.tsx"],"sourcesContent":["import {\n orientationVariants,\n position,\n sizeVariants,\n fontColor,\n} from '../../../../shared-configs/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"],"names":["groupDefault","inline","orientation","orientationVariants","VERTICAL","labelDefault","position","LEFT","color","fontColor","NEUTRAL500","valueDefault","size","sizeVariants","M","NEUTRAL700","semibold","wrapperDefault","containerProps","className","icon","inverted"],"mappings":";;;;;;IAOaA,YAAY,GAAG;AAC1BC,EAAAA,MAAM,EAAE,KADkB;AAE1BC,EAAAA,WAAW,EAAEC,6BAAmB,CAACC;AAFP;IAKfC,YAAY,GAAG;AAC1BC,EAAAA,QAAQ,EAAEA,kBAAQ,CAACC,IADO;AAE1BC,EAAAA,KAAK,EAAEC,mBAAS,CAACC;AAFS;IAKfC,YAAY,GAAG;AAC1BL,EAAAA,QAAQ,EAAEA,kBAAQ,CAACC,IADO;AAE1BK,EAAAA,IAAI,EAAEC,sBAAY,CAACC,CAFO;AAG1BN,EAAAA,KAAK,EAAEC,mBAAS,CAACM,UAHS;AAI1BC,EAAAA,QAAQ,EAAE;AAJgB;IAOfC,cAAc,GAAG;AAC5BC,EAAAA,cAAc,EAAE,EADY;AAE5BC,EAAAA,SAAS,EAAE,EAFiB;AAG5BC,EAAAA,IAAI,EAAE,IAHsB;AAI5BC,EAAAA,QAAQ,EAAE;AAJkB;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"props.js","sources":["../../../src/components/props.tsx"],"sourcesContent":["import { PropTypes } from 'react-desc';\nimport {\n position,\n fontColor,\n sizeVariants,\n} from '../../../../shared-configs/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"],"names":["groupProps","children","PropTypes","element","description","inline","bool","orientation","string","labelProps","oneOfType","number","isRequired","position","defaultValue","LEFT","color","fontColor","NEUTRAL500","wrapperProps","containerProps","object","className","icon","inverted","valueProps","size","func","sizeVariants","M","NEUTRAL700","semibold"],"mappings":";;;;;;;IAOaA,UAAU,GAAG;AACxB;AACF;AACA;AACEC,EAAAA,QAAQ,EAAEC,mBAAS,CAACC,OAAV,CAAkBC,WAAlB,CAA8B,4BAA9B,CAJc;;AAKxB;AACF;AACA;AACEC,EAAAA,MAAM,EAAEH,mBAAS,CAACI,IAAV,CAAeF,WAAf,CAA2B,qCAA3B,CARgB;;AASxB;AACF;AACA;AACEG,EAAAA,WAAW,EAAEL,mBAAS,CAACM,MAAV,CAAiBJ,WAAjB,CAA6B,4BAA7B;AAZW;IAebK,UAAU,GAAG;AACxBR,EAAAA,QAAQ,EAAEC,mBAAS,CAACQ,SAAV,CAAoB,CAC5BR,mBAAS,CAACC,OADkB,EAE5BD,mBAAS,CAACM,MAFkB,EAG5BN,mBAAS,CAACS,MAHkB,CAApB,EAIPP,WAJO,CAIK,eAJL,EAIsBQ,UALR;AAMxBC,EAAAA,QAAQ,EAAEX,mBAAS,CAACM,MAAV,CACPJ,WADO,CACK,iBADL,EAEPU,YAFO,CAEMD,kBAAQ,CAACE,IAFf,CANc;AASxBC,EAAAA,KAAK,EAAEd,mBAAS,CAACM,MAAV,CACJJ,WADI,CACQ,cADR,EAEJU,YAFI,CAESG,mBAAS,CAACC,UAFnB;AATiB;IAcbC,YAAY,GAAG;AAC1BC,EAAAA,cAAc,EAAElB,mBAAS,CAACmB,MAAV,CAAiBjB,WAAjB,CACd,kDADc,CADU;AAI1BkB,EAAAA,SAAS,EAAEpB,mBAAS,CAACM,MAAV,CAAiBJ,WAAjB,CAA6B,sBAA7B,CAJe;AAK1BmB,EAAAA,IAAI,EAAErB,mBAAS,CAACC,OAAV,CAAkBC,WAAlB,CAA8B,gCAA9B,CALoB;AAM1BoB,EAAAA,QAAQ,EAAEtB,mBAAS,CAACI,IAAV,CACPF,WADO,CACK,mCADL,EAEPU,YAFO,CAEM,KAFN,CANgB;AAS1Bb,EAAAA,QAAQ,EAAEC,mBAAS,CAACC,OAAV,CAAkBC,WAAlB,CAA8B,aAA9B,EAA6CQ;AAT7B;IAYfa,UAAU,GAAG;AACxBxB,EAAAA,QAAQ,EAAEC,mBAAS,CAACQ,SAAV,CAAoB,CAC5BR,mBAAS,CAACC,OADkB,EAE5BD,mBAAS,CAACM,MAFkB,EAG5BN,mBAAS,CAACS,MAHkB,CAApB,EAIPP,WAJO,CAIK,eAJL,EAIsBQ,UALR;AAMxBc,EAAAA,IAAI,EAAExB,mBAAS,CAACyB,IAAV,CAAevB,WAAf,CAA2B,aAA3B,EAA0CU,YAA1C,CAAuDc,sBAAY,CAACC,CAApE,CANkB;AAOxBhB,EAAAA,QAAQ,EAAEX,mBAAS,CAACM,MAAV,CACPJ,WADO,CACK,uBADL,EAEPU,YAFO,CAEMD,kBAAQ,CAACE,IAFf,CAPc;AAUxBC,EAAAA,KAAK,EAAEd,mBAAS,CAACM,MAAV,CACJJ,WADI,CACQ,aADR,EAEJU,YAFI,CAESG,mBAAS,CAACa,UAFnB,CAViB;AAaxBC,EAAAA,QAAQ,EAAE7B,mBAAS,CAACI,IAAV,CAAeF,WAAf,CAA2B,iBAA3B,EAA8CU,YAA9C,CAA2D,KAA3D;AAbc;;;;;;;"}
package/cjs/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,31 +0,0 @@
1
- 'use strict';
2
-
3
- /* eslint-disable max-lines */
4
-
5
- const sizeVariants = {
6
- S: 's',
7
- M: 'm',
8
- L: 'l',
9
- };
10
-
11
- const position = {
12
- LEFT: 'left',
13
- RIGHT: 'right',
14
- CENTER: 'center',
15
- };
16
-
17
- const fontColor = {
18
- NEUTRAL500: 'neutral500',
19
- NEUTRAL700: 'neutral700',
20
- };
21
-
22
- const orientationVariants = {
23
- HORIZONTAL: 'horizontal',
24
- VERTICAL: 'vertical',
25
- };
26
-
27
- exports.fontColor = fontColor;
28
- exports.orientationVariants = orientationVariants;
29
- exports.position = position;
30
- exports.sizeVariants = sizeVariants;
31
- //# sourceMappingURL=prop-types-15287a6f.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"prop-types-15287a6f.js","sources":["../../../../shared-configs/prop-types.js"],"sourcesContent":["/* eslint-disable max-lines */\nexport const dsBasicSizes = ['s', 'm', 'l'];\n\nexport const sizes = ['xsmall', 'small', 'medium', 'large', 'xlarge'];\n\nexport const iconSizes = ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'];\n\nexport const iconColors = [\n ['neutral', '900'],\n ['neutral', '0'],\n ['danger', '900'],\n ['warning', '500'],\n ['success', '900'],\n ['brand-primary', '600'],\n];\n\nexport const CHECKBOX_VARIANT = {\n DEFAULT: 'variant-default',\n FOCUS: 'variant-focus',\n ACTIVE: 'variant-active',\n DISABLED: 'variant-disabled',\n ERROR: 'variant-error',\n};\nexport const checkboxVariants = [\n CHECKBOX_VARIANT.DEFAULT,\n CHECKBOX_VARIANT.FOCUS,\n CHECKBOX_VARIANT.ACTIVE,\n CHECKBOX_VARIANT.DISABLED,\n CHECKBOX_VARIANT.ERROR,\n];\n\nexport const COMBOBOX_VARIANT = {\n DEFAULT: 'variant-default',\n FOCUS: 'variant-focus-input',\n FOCUS_ICON: 'variant-focus-icon',\n ACTIVE: 'variant-active-input',\n ACTIVE_ICON: 'variant-active-icon',\n DISABLED: 'variant-disabled',\n ERROR: 'variant-error',\n};\n\nexport const comboBoxVariants = [\n COMBOBOX_VARIANT.DEFAULT,\n COMBOBOX_VARIANT.FOCUS,\n COMBOBOX_VARIANT.FOCUS_ICON,\n COMBOBOX_VARIANT.ACTIVE,\n COMBOBOX_VARIANT.ACTIVE_ICON,\n COMBOBOX_VARIANT.DISABLED,\n COMBOBOX_VARIANT.ERROR,\n];\n\nexport const sizeVariants = {\n S: 's',\n M: 'm',\n L: 'l',\n};\n\nexport const position = {\n LEFT: 'left',\n RIGHT: 'right',\n CENTER: 'center',\n};\n\nexport const fontColor = {\n NEUTRAL500: 'neutral500',\n NEUTRAL700: 'neutral700',\n};\n\nexport const orientation = ['horizontal', 'vertical'];\n\nexport const orientationVariants = {\n HORIZONTAL: 'horizontal',\n VERTICAL: 'vertical',\n};\n"],"names":[],"mappings":";;AAAA;AAkDA;AACY,MAAC,YAAY,GAAG;AAC5B,EAAE,CAAC,EAAE,GAAG;AACR,EAAE,CAAC,EAAE,GAAG;AACR,EAAE,CAAC,EAAE,GAAG;AACR,EAAE;AACF;AACY,MAAC,QAAQ,GAAG;AACxB,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,MAAM,EAAE,QAAQ;AAClB,EAAE;AACF;AACY,MAAC,SAAS,GAAG;AACzB,EAAE,UAAU,EAAE,YAAY;AAC1B,EAAE,UAAU,EAAE,YAAY;AAC1B,EAAE;AAGF;AACY,MAAC,mBAAmB,GAAG;AACnC,EAAE,UAAU,EAAE,YAAY;AAC1B,EAAE,QAAQ,EAAE,UAAU;AACtB;;;;;;;"}
@@ -1,10 +0,0 @@
1
- {
2
- "name": "@elliemae/ds-label-value/components/Group",
3
- "sideEffects": [
4
- "*.css",
5
- "*.scss"
6
- ],
7
- "private": true,
8
- "main": "../../cjs/components/Group.js",
9
- "module": "../../esm/components/Group.js"
10
- }
@@ -1,10 +0,0 @@
1
- {
2
- "name": "@elliemae/ds-label-value/components/Label",
3
- "sideEffects": [
4
- "*.css",
5
- "*.scss"
6
- ],
7
- "private": true,
8
- "main": "../../cjs/components/Label.js",
9
- "module": "../../esm/components/Label.js"
10
- }
@@ -1,10 +0,0 @@
1
- {
2
- "name": "@elliemae/ds-label-value/components/Value",
3
- "sideEffects": [
4
- "*.css",
5
- "*.scss"
6
- ],
7
- "private": true,
8
- "main": "../../cjs/components/Value.js",
9
- "module": "../../esm/components/Value.js"
10
- }
@@ -1,10 +0,0 @@
1
- {
2
- "name": "@elliemae/ds-label-value/components/Wrapper",
3
- "sideEffects": [
4
- "*.css",
5
- "*.scss"
6
- ],
7
- "private": true,
8
- "main": "../../cjs/components/Wrapper.js",
9
- "module": "../../esm/components/Wrapper.js"
10
- }
@@ -1,10 +0,0 @@
1
- {
2
- "name": "@elliemae/ds-label-value/components/defaultProps",
3
- "sideEffects": [
4
- "*.css",
5
- "*.scss"
6
- ],
7
- "private": true,
8
- "main": "../../cjs/components/defaultProps.js",
9
- "module": "../../esm/components/defaultProps.js"
10
- }
@@ -1,10 +0,0 @@
1
- {
2
- "name": "@elliemae/ds-label-value/components/props",
3
- "sideEffects": [
4
- "*.css",
5
- "*.scss"
6
- ],
7
- "private": true,
8
- "main": "../../cjs/components/props.js",
9
- "module": "../../esm/components/props.js"
10
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"DSLabelValue.js","sources":["../../src/DSLabelValue.tsx"],"sourcesContent":["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"],"names":["DSLabelValue","Object","assign","Wrapper","Group","Label","Value"],"mappings":";;;;;;;;;;;;;;;;;IAKMA,YAAY,GAAGC,MAAM,CAACC,MAAP,CAAcC,OAAd,EAAuB;AAC1CC,EAAAA,KAAK,EAALA,KAD0C;AAE1CD,EAAAA,OAAO,EAAPA,OAF0C;AAG1CE,EAAAA,KAAK,EAALA,KAH0C;AAI1CC,EAAAA,KAAK,EAALA;AAJ0C,CAAvB;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Group.js","sources":["../../../src/components/Group.tsx"],"sourcesContent":["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"],"names":["blockName","WrapperGroup","aggregatedClasses","orientation","inline","Group","children","propTypes","groupProps","defaultProps","groupDefault","GroupWithSchema","describe"],"mappings":";;;;;;;;AAMA,IAAMA,SAAS,GAAG,iBAAlB;AAEA,IAAMC,YAAY,GAAGC,iBAAiB,CAAC,KAAD,CAAjB,CACnBF,SADmB,EAEnB,SAFmB,EAGnB;AAAA,MAAGG,WAAH,QAAGA,WAAH;AAAA,MAAgBC,MAAhB,QAAgBA,MAAhB;AAAA;AACEA,IAAAA,MAAM,EAANA;AADF,KAEGD,WAFH,EAEiBA,WAFjB;AAAA,CAHmB,CAArB;;IASME,KAAK,GAAG,SAARA,KAAQ;AAAA,MAAGC,QAAH,SAAGA,QAAH;AAAA,MAAaF,MAAb,SAAaA,MAAb;AAAA,MAAqBD,WAArB,SAAqBA,WAArB;AAAA,sBACZ,oBAAC,YAAD;AAAc,IAAA,UAAU,EAAE;AAAEA,MAAAA,WAAW,EAAXA,WAAF;AAAeC,MAAAA,MAAM,EAANA;AAAf;AAA1B,KAAoDE,QAApD,CADY;AAAA;;AAIdD,KAAK,CAACE,SAAN,GAAkBC,UAAlB;AACAH,KAAK,CAACI,YAAN,GAAqBC,YAArB;IAEMC,eAAe,GAAGC,QAAQ,CAACP,KAAD;AAChCM,eAAe,CAACJ,SAAhB,GAA4BC,UAA5B;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Label.js","sources":["../../../src/components/Label.tsx"],"sourcesContent":["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"],"names":["blockName","LabelStyled","aggregatedClasses","labelPosition","labelColor","Label","children","position","color","propTypes","labelProps","defaultProps","labelDefault","LabelWithSchema","describe"],"mappings":";;;;;;;;AAMA,IAAMA,SAAS,GAAG,YAAlB;AAEA,IAAMC,WAAW,GAAGC,iBAAiB,CAAC,KAAD,CAAjB,CAClBF,SADkB,EAElB,OAFkB,EAGlB;AAAA;;AAAA,MAAGG,aAAH,QAAGA,aAAH;AAAA,MAAkBC,UAAlB,QAAkBA,UAAlB;AAAA,4CACGD,aADH,EACmBA,aADnB,0BAEGC,UAFH,EAEgBA,UAFhB;AAAA,CAHkB,CAApB;;IASMC,KAAK,GAAG,SAARA,KAAQ;AAAA,MAAGC,QAAH,SAAGA,QAAH;AAAA,MAAuBH,aAAvB,SAAaI,QAAb;AAAA,MAAsCC,KAAtC,SAAsCA,KAAtC;AAAA,sBACZ,oBAAC,WAAD;AAAa,IAAA,UAAU,EAAE;AAAEL,MAAAA,aAAa,EAAbA,aAAF;AAAiBK,MAAAA,KAAK,EAALA;AAAjB;AAAzB,KAAoDF,QAApD,CADY;AAAA;;AAIdD,KAAK,CAACI,SAAN,GAAkBC,UAAlB;AACAL,KAAK,CAACM,YAAN,GAAqBC,YAArB;IAEMC,eAAe,GAAGC,QAAQ,CAACT,KAAD;AAChCQ,eAAe,CAACJ,SAAhB,GAA4BC,UAA5B;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Value.js","sources":["../../../src/components/Value.tsx"],"sourcesContent":["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"],"names":["blockName","ValueStyled","aggregatedClasses","size","valuePosition","valueColor","semibold","Value","children","position","color","propTypes","valueProps","defaultProps","valueDefault","ValueWithSchema","describe"],"mappings":";;;;;;;;AAMA,IAAMA,SAAS,GAAG,YAAlB;AAEA,IAAMC,WAAW,GAAGC,iBAAiB,CAAC,KAAD,CAAjB,CAClBF,SADkB,EAElB,OAFkB,EAGlB;AAAA;;AAAA,MAAGG,IAAH,QAAGA,IAAH;AAAA,MAASC,aAAT,QAASA,aAAT;AAAA,MAAwBC,UAAxB,QAAwBA,UAAxB;AAAA,MAAoCC,QAApC,QAAoCA,QAApC;AAAA,4CACGH,IADH,EACUA,IADV,0BAEGC,aAFH,EAEmBA,aAFnB,0BAGGC,UAHH,EAGgBA,UAHhB,sCAIEC,QAJF;AAAA,CAHkB,CAApB;;IAWMC,KAAK,GAAG,SAARA,KAAQ;AAAA,MACZC,QADY,SACZA,QADY;AAAA,MAEFJ,aAFE,SAEZK,QAFY;AAAA,MAGZN,IAHY,SAGZA,IAHY;AAAA,MAILE,UAJK,SAIZK,KAJY;AAAA,6BAKZJ,QALY;AAAA,MAKZA,QALY,+BAKD,KALC;AAAA,sBAOZ,oBAAC,WAAD;AACE,IAAA,UAAU,EAAE;AACVH,MAAAA,IAAI,EAAJA,IADU;AAEVC,MAAAA,aAAa,EAAbA,aAFU;AAGVC,MAAAA,UAAU,EAAVA,UAHU;AAIVC,MAAAA,QAAQ,EAARA;AAJU;AADd,kBAQE,kCAAOE,QAAP,CARF,CAPY;AAAA;;AAmBdD,KAAK,CAACI,SAAN,GAAkBC,UAAlB;AACAL,KAAK,CAACM,YAAN,GAAqBC,YAArB;IAEMC,eAAe,GAAGC,QAAQ,CAACT,KAAD;AAChCQ,eAAe,CAACJ,SAAhB,GAA4BC,UAA5B;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Wrapper.js","sources":["../../../src/components/Wrapper.tsx"],"sourcesContent":["import React from 'react';\nimport { describe } from 'react-desc';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { wrapperProps } from './props';\nimport { wrapperDefault } from './defaultProps';\n\nconst blockName = 'labelValue';\n\nconst LabelValueWrapper = aggregatedClasses('div')(\n blockName,\n 'label-value-wrapper',\n () => null,\n);\nconst Container = aggregatedClasses('div')(\n blockName,\n 'wrapper',\n ({ inverted }) => ({\n inverted,\n }),\n);\n\nconst Wrapper = ({ containerProps, children, className, icon, inverted }) => (\n <Container classProps={{ inverted }}>\n {icon}\n <LabelValueWrapper className={className} {...containerProps}>\n {children}\n </LabelValueWrapper>\n </Container>\n);\n\nWrapper.propTypes = wrapperProps;\nWrapper.defaultProps = wrapperDefault;\n\nconst WrapperWithSchema = describe(Wrapper);\nWrapperWithSchema.propTypes = wrapperProps;\n\nexport { WrapperWithSchema };\nexport default Wrapper;\n"],"names":["blockName","LabelValueWrapper","aggregatedClasses","Container","inverted","Wrapper","containerProps","children","className","icon","propTypes","wrapperProps","defaultProps","wrapperDefault","WrapperWithSchema","describe"],"mappings":";;;;;;;;AAMA,IAAMA,SAAS,GAAG,YAAlB;AAEA,IAAMC,iBAAiB,GAAGC,iBAAiB,CAAC,KAAD,CAAjB,CACxBF,SADwB,EAExB,qBAFwB,EAGxB;AAAA,SAAM,IAAN;AAAA,CAHwB,CAA1B;AAKA,IAAMG,SAAS,GAAGD,iBAAiB,CAAC,KAAD,CAAjB,CAChBF,SADgB,EAEhB,SAFgB,EAGhB;AAAA,MAAGI,QAAH,QAAGA,QAAH;AAAA,SAAmB;AACjBA,IAAAA,QAAQ,EAARA;AADiB,GAAnB;AAAA,CAHgB,CAAlB;;IAQMC,OAAO,GAAG,SAAVA,OAAU;AAAA,MAAGC,cAAH,SAAGA,cAAH;AAAA,MAAmBC,QAAnB,SAAmBA,QAAnB;AAAA,MAA6BC,SAA7B,SAA6BA,SAA7B;AAAA,MAAwCC,IAAxC,SAAwCA,IAAxC;AAAA,MAA8CL,QAA9C,SAA8CA,QAA9C;AAAA,sBACd,oBAAC,SAAD;AAAW,IAAA,UAAU,EAAE;AAAEA,MAAAA,QAAQ,EAARA;AAAF;AAAvB,KACGK,IADH,eAEE,oBAAC,iBAAD;AAAmB,IAAA,SAAS,EAAED;AAA9B,KAA6CF,cAA7C,GACGC,QADH,CAFF,CADc;AAAA;;AAShBF,OAAO,CAACK,SAAR,GAAoBC,YAApB;AACAN,OAAO,CAACO,YAAR,GAAuBC,cAAvB;IAEMC,iBAAiB,GAAGC,QAAQ,CAACV,OAAD;AAClCS,iBAAiB,CAACJ,SAAlB,GAA8BC,YAA9B;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"defaultProps.js","sources":["../../../src/components/defaultProps.tsx"],"sourcesContent":["import {\n orientationVariants,\n position,\n sizeVariants,\n fontColor,\n} from '../../../../shared-configs/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"],"names":["groupDefault","inline","orientation","orientationVariants","VERTICAL","labelDefault","position","LEFT","color","fontColor","NEUTRAL500","valueDefault","size","sizeVariants","M","NEUTRAL700","semibold","wrapperDefault","containerProps","className","icon","inverted"],"mappings":";;IAOaA,YAAY,GAAG;AAC1BC,EAAAA,MAAM,EAAE,KADkB;AAE1BC,EAAAA,WAAW,EAAEC,mBAAmB,CAACC;AAFP;IAKfC,YAAY,GAAG;AAC1BC,EAAAA,QAAQ,EAAEA,QAAQ,CAACC,IADO;AAE1BC,EAAAA,KAAK,EAAEC,SAAS,CAACC;AAFS;IAKfC,YAAY,GAAG;AAC1BL,EAAAA,QAAQ,EAAEA,QAAQ,CAACC,IADO;AAE1BK,EAAAA,IAAI,EAAEC,YAAY,CAACC,CAFO;AAG1BN,EAAAA,KAAK,EAAEC,SAAS,CAACM,UAHS;AAI1BC,EAAAA,QAAQ,EAAE;AAJgB;IAOfC,cAAc,GAAG;AAC5BC,EAAAA,cAAc,EAAE,EADY;AAE5BC,EAAAA,SAAS,EAAE,EAFiB;AAG5BC,EAAAA,IAAI,EAAE,IAHsB;AAI5BC,EAAAA,QAAQ,EAAE;AAJkB;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"props.js","sources":["../../../src/components/props.tsx"],"sourcesContent":["import { PropTypes } from 'react-desc';\nimport {\n position,\n fontColor,\n sizeVariants,\n} from '../../../../shared-configs/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"],"names":["groupProps","children","PropTypes","element","description","inline","bool","orientation","string","labelProps","oneOfType","number","isRequired","position","defaultValue","LEFT","color","fontColor","NEUTRAL500","wrapperProps","containerProps","object","className","icon","inverted","valueProps","size","func","sizeVariants","M","NEUTRAL700","semibold"],"mappings":";;;IAOaA,UAAU,GAAG;AACxB;AACF;AACA;AACEC,EAAAA,QAAQ,EAAEC,SAAS,CAACC,OAAV,CAAkBC,WAAlB,CAA8B,4BAA9B,CAJc;;AAKxB;AACF;AACA;AACEC,EAAAA,MAAM,EAAEH,SAAS,CAACI,IAAV,CAAeF,WAAf,CAA2B,qCAA3B,CARgB;;AASxB;AACF;AACA;AACEG,EAAAA,WAAW,EAAEL,SAAS,CAACM,MAAV,CAAiBJ,WAAjB,CAA6B,4BAA7B;AAZW;IAebK,UAAU,GAAG;AACxBR,EAAAA,QAAQ,EAAEC,SAAS,CAACQ,SAAV,CAAoB,CAC5BR,SAAS,CAACC,OADkB,EAE5BD,SAAS,CAACM,MAFkB,EAG5BN,SAAS,CAACS,MAHkB,CAApB,EAIPP,WAJO,CAIK,eAJL,EAIsBQ,UALR;AAMxBC,EAAAA,QAAQ,EAAEX,SAAS,CAACM,MAAV,CACPJ,WADO,CACK,iBADL,EAEPU,YAFO,CAEMD,QAAQ,CAACE,IAFf,CANc;AASxBC,EAAAA,KAAK,EAAEd,SAAS,CAACM,MAAV,CACJJ,WADI,CACQ,cADR,EAEJU,YAFI,CAESG,SAAS,CAACC,UAFnB;AATiB;IAcbC,YAAY,GAAG;AAC1BC,EAAAA,cAAc,EAAElB,SAAS,CAACmB,MAAV,CAAiBjB,WAAjB,CACd,kDADc,CADU;AAI1BkB,EAAAA,SAAS,EAAEpB,SAAS,CAACM,MAAV,CAAiBJ,WAAjB,CAA6B,sBAA7B,CAJe;AAK1BmB,EAAAA,IAAI,EAAErB,SAAS,CAACC,OAAV,CAAkBC,WAAlB,CAA8B,gCAA9B,CALoB;AAM1BoB,EAAAA,QAAQ,EAAEtB,SAAS,CAACI,IAAV,CACPF,WADO,CACK,mCADL,EAEPU,YAFO,CAEM,KAFN,CANgB;AAS1Bb,EAAAA,QAAQ,EAAEC,SAAS,CAACC,OAAV,CAAkBC,WAAlB,CAA8B,aAA9B,EAA6CQ;AAT7B;IAYfa,UAAU,GAAG;AACxBxB,EAAAA,QAAQ,EAAEC,SAAS,CAACQ,SAAV,CAAoB,CAC5BR,SAAS,CAACC,OADkB,EAE5BD,SAAS,CAACM,MAFkB,EAG5BN,SAAS,CAACS,MAHkB,CAApB,EAIPP,WAJO,CAIK,eAJL,EAIsBQ,UALR;AAMxBc,EAAAA,IAAI,EAAExB,SAAS,CAACyB,IAAV,CAAevB,WAAf,CAA2B,aAA3B,EAA0CU,YAA1C,CAAuDc,YAAY,CAACC,CAApE,CANkB;AAOxBhB,EAAAA,QAAQ,EAAEX,SAAS,CAACM,MAAV,CACPJ,WADO,CACK,uBADL,EAEPU,YAFO,CAEMD,QAAQ,CAACE,IAFf,CAPc;AAUxBC,EAAAA,KAAK,EAAEd,SAAS,CAACM,MAAV,CACJJ,WADI,CACQ,aADR,EAEJU,YAFI,CAESG,SAAS,CAACa,UAFnB,CAViB;AAaxBC,EAAAA,QAAQ,EAAE7B,SAAS,CAACI,IAAV,CAAeF,WAAf,CAA2B,iBAA3B,EAA8CU,YAA9C,CAA2D,KAA3D;AAbc;;;;"}
package/esm/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -1,26 +0,0 @@
1
- /* eslint-disable max-lines */
2
-
3
- const sizeVariants = {
4
- S: 's',
5
- M: 'm',
6
- L: 'l',
7
- };
8
-
9
- const position = {
10
- LEFT: 'left',
11
- RIGHT: 'right',
12
- CENTER: 'center',
13
- };
14
-
15
- const fontColor = {
16
- NEUTRAL500: 'neutral500',
17
- NEUTRAL700: 'neutral700',
18
- };
19
-
20
- const orientationVariants = {
21
- HORIZONTAL: 'horizontal',
22
- VERTICAL: 'vertical',
23
- };
24
-
25
- export { fontColor as f, orientationVariants as o, position as p, sizeVariants as s };
26
- //# sourceMappingURL=prop-types-2c19033d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"prop-types-2c19033d.js","sources":["../../../../shared-configs/prop-types.js"],"sourcesContent":["/* eslint-disable max-lines */\nexport const dsBasicSizes = ['s', 'm', 'l'];\n\nexport const sizes = ['xsmall', 'small', 'medium', 'large', 'xlarge'];\n\nexport const iconSizes = ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'];\n\nexport const iconColors = [\n ['neutral', '900'],\n ['neutral', '0'],\n ['danger', '900'],\n ['warning', '500'],\n ['success', '900'],\n ['brand-primary', '600'],\n];\n\nexport const CHECKBOX_VARIANT = {\n DEFAULT: 'variant-default',\n FOCUS: 'variant-focus',\n ACTIVE: 'variant-active',\n DISABLED: 'variant-disabled',\n ERROR: 'variant-error',\n};\nexport const checkboxVariants = [\n CHECKBOX_VARIANT.DEFAULT,\n CHECKBOX_VARIANT.FOCUS,\n CHECKBOX_VARIANT.ACTIVE,\n CHECKBOX_VARIANT.DISABLED,\n CHECKBOX_VARIANT.ERROR,\n];\n\nexport const COMBOBOX_VARIANT = {\n DEFAULT: 'variant-default',\n FOCUS: 'variant-focus-input',\n FOCUS_ICON: 'variant-focus-icon',\n ACTIVE: 'variant-active-input',\n ACTIVE_ICON: 'variant-active-icon',\n DISABLED: 'variant-disabled',\n ERROR: 'variant-error',\n};\n\nexport const comboBoxVariants = [\n COMBOBOX_VARIANT.DEFAULT,\n COMBOBOX_VARIANT.FOCUS,\n COMBOBOX_VARIANT.FOCUS_ICON,\n COMBOBOX_VARIANT.ACTIVE,\n COMBOBOX_VARIANT.ACTIVE_ICON,\n COMBOBOX_VARIANT.DISABLED,\n COMBOBOX_VARIANT.ERROR,\n];\n\nexport const sizeVariants = {\n S: 's',\n M: 'm',\n L: 'l',\n};\n\nexport const position = {\n LEFT: 'left',\n RIGHT: 'right',\n CENTER: 'center',\n};\n\nexport const fontColor = {\n NEUTRAL500: 'neutral500',\n NEUTRAL700: 'neutral700',\n};\n\nexport const orientation = ['horizontal', 'vertical'];\n\nexport const orientationVariants = {\n HORIZONTAL: 'horizontal',\n VERTICAL: 'vertical',\n};\n"],"names":[],"mappings":"AAAA;AAkDA;AACY,MAAC,YAAY,GAAG;AAC5B,EAAE,CAAC,EAAE,GAAG;AACR,EAAE,CAAC,EAAE,GAAG;AACR,EAAE,CAAC,EAAE,GAAG;AACR,EAAE;AACF;AACY,MAAC,QAAQ,GAAG;AACxB,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,MAAM,EAAE,QAAQ;AAClB,EAAE;AACF;AACY,MAAC,SAAS,GAAG;AACzB,EAAE,UAAU,EAAE,YAAY;AAC1B,EAAE,UAAU,EAAE,YAAY;AAC1B,EAAE;AAGF;AACY,MAAC,mBAAmB,GAAG;AACnC,EAAE,UAAU,EAAE,YAAY;AAC1B,EAAE,QAAQ,EAAE,UAAU;AACtB;;;;"}