@coorpacademy/components 11.16.5-alpha.5 → 11.17.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/es/atom/image-upload/style.css +2 -0
- package/es/atom/radio-with-title/index.d.ts +1 -0
- package/es/atom/radio-with-title/index.d.ts.map +1 -1
- package/es/atom/radio-with-title/index.js +7 -1
- package/es/atom/radio-with-title/index.js.map +1 -1
- package/es/atom/radio-with-title/types.d.ts +1 -0
- package/es/atom/radio-with-title/types.d.ts.map +1 -1
- package/es/atom/title/index.d.ts +1 -0
- package/es/atom/title/index.d.ts.map +1 -1
- package/es/atom/title/index.js +24 -6
- package/es/atom/title/index.js.map +1 -1
- package/es/atom/title/style.css +31 -4
- package/es/molecule/brand-form-group/index.d.ts +567 -1
- package/es/molecule/brand-form-group/index.d.ts.map +1 -1
- package/es/molecule/brand-form-group/index.js +9 -8
- package/es/molecule/brand-form-group/index.js.map +1 -1
- package/es/molecule/brand-form-group/style.css +4 -0
- package/es/molecule/select-multiple/index.js +1 -1
- package/es/molecule/select-multiple/index.js.map +1 -1
- package/es/molecule/title-and-checkbox-wrapper/index.d.ts +1 -0
- package/es/molecule/title-radio-wrapper/index.d.ts +18 -17
- package/es/molecule/title-radio-wrapper/index.d.ts.map +1 -1
- package/es/molecule/title-radio-wrapper/style.css +1 -1
- package/es/molecule/title-radio-wrapper/types.d.ts +18 -17
- package/es/molecule/title-radio-wrapper/types.d.ts.map +1 -1
- package/es/organism/brand-form/index.d.ts +567 -1
- package/es/organism/brand-form/index.d.ts.map +1 -1
- package/es/organism/brand-form/index.js +4 -3
- package/es/organism/brand-form/index.js.map +1 -1
- package/es/organism/brand-form/style.css +5 -0
- package/es/organism/rewards-form/index.d.ts +1 -0
- package/es/organism/select-opponents/index.d.ts +70 -0
- package/es/organism/select-opponents/index.d.ts.map +1 -0
- package/es/organism/select-opponents/index.js +27 -0
- package/es/organism/select-opponents/index.js.map +1 -0
- package/es/organism/{select-population → select-opponents}/style.css +1 -0
- package/es/organism/select-opponents/types.d.ts +70 -0
- package/es/organism/select-opponents/types.d.ts.map +1 -0
- package/es/organism/select-opponents/types.js +7 -0
- package/es/organism/select-opponents/types.js.map +1 -0
- package/es/organism/title-and-input/index.d.ts +117 -0
- package/es/organism/title-and-input/index.d.ts.map +1 -0
- package/es/organism/title-and-input/index.js +43 -0
- package/es/organism/title-and-input/index.js.map +1 -0
- package/es/organism/title-and-input/style.css +9 -0
- package/es/organism/title-and-input/types.d.ts +127 -0
- package/es/organism/title-and-input/types.d.ts.map +1 -0
- package/es/organism/title-and-input/types.js +12 -0
- package/es/organism/title-and-input/types.js.map +1 -0
- package/es/organism/wizard-contents/index.d.ts +568 -1
- package/es/template/back-office/brand-update/index.d.ts +567 -1
- package/lib/atom/image-upload/style.css +2 -0
- package/lib/atom/radio-with-title/index.d.ts +1 -0
- package/lib/atom/radio-with-title/index.d.ts.map +1 -1
- package/lib/atom/radio-with-title/index.js +6 -1
- package/lib/atom/radio-with-title/index.js.map +1 -1
- package/lib/atom/radio-with-title/types.d.ts +1 -0
- package/lib/atom/radio-with-title/types.d.ts.map +1 -1
- package/lib/atom/title/index.d.ts +1 -0
- package/lib/atom/title/index.d.ts.map +1 -1
- package/lib/atom/title/index.js +24 -6
- package/lib/atom/title/index.js.map +1 -1
- package/lib/atom/title/style.css +31 -4
- package/lib/molecule/brand-form-group/index.d.ts +567 -1
- package/lib/molecule/brand-form-group/index.d.ts.map +1 -1
- package/lib/molecule/brand-form-group/index.js +10 -9
- package/lib/molecule/brand-form-group/index.js.map +1 -1
- package/lib/molecule/brand-form-group/style.css +4 -0
- package/lib/molecule/select-multiple/index.js +1 -1
- package/lib/molecule/select-multiple/index.js.map +1 -1
- package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +1 -0
- package/lib/molecule/title-radio-wrapper/index.d.ts +18 -17
- package/lib/molecule/title-radio-wrapper/index.d.ts.map +1 -1
- package/lib/molecule/title-radio-wrapper/style.css +1 -1
- package/lib/molecule/title-radio-wrapper/types.d.ts +18 -17
- package/lib/molecule/title-radio-wrapper/types.d.ts.map +1 -1
- package/lib/organism/brand-form/index.d.ts +567 -1
- package/lib/organism/brand-form/index.d.ts.map +1 -1
- package/lib/organism/brand-form/index.js +4 -3
- package/lib/organism/brand-form/index.js.map +1 -1
- package/lib/organism/brand-form/style.css +5 -0
- package/lib/organism/rewards-form/index.d.ts +1 -0
- package/lib/organism/select-opponents/index.d.ts +70 -0
- package/lib/organism/select-opponents/index.d.ts.map +1 -0
- package/lib/organism/{select-population → select-opponents}/index.js +15 -5
- package/lib/organism/select-opponents/index.js.map +1 -0
- package/lib/organism/{select-population → select-opponents}/style.css +1 -0
- package/lib/organism/select-opponents/types.d.ts +70 -0
- package/lib/organism/select-opponents/types.d.ts.map +1 -0
- package/lib/organism/select-opponents/types.js +18 -0
- package/lib/organism/select-opponents/types.js.map +1 -0
- package/lib/organism/title-and-input/index.d.ts +117 -0
- package/lib/organism/title-and-input/index.d.ts.map +1 -0
- package/lib/organism/title-and-input/index.js +57 -0
- package/lib/organism/title-and-input/index.js.map +1 -0
- package/lib/organism/title-and-input/style.css +9 -0
- package/lib/organism/title-and-input/types.d.ts +127 -0
- package/lib/organism/title-and-input/types.d.ts.map +1 -0
- package/lib/organism/title-and-input/types.js +25 -0
- package/lib/organism/title-and-input/types.js.map +1 -0
- package/lib/organism/wizard-contents/index.d.ts +568 -1
- package/lib/template/back-office/brand-update/index.d.ts +567 -1
- package/package.json +2 -2
- package/es/organism/select-population/index.d.ts +0 -5
- package/es/organism/select-population/index.d.ts.map +0 -1
- package/es/organism/select-population/index.js +0 -20
- package/es/organism/select-population/index.js.map +0 -1
- package/es/organism/select-population/types.d.ts +0 -5
- package/es/organism/select-population/types.d.ts.map +0 -1
- package/es/organism/select-population/types.js +0 -2
- package/es/organism/select-population/types.js.map +0 -1
- package/lib/organism/select-population/index.d.ts +0 -5
- package/lib/organism/select-population/index.d.ts.map +0 -1
- package/lib/organism/select-population/index.js.map +0 -1
- package/lib/organism/select-population/types.d.ts +0 -5
- package/lib/organism/select-population/types.d.ts.map +0 -1
- package/lib/organism/select-population/types.js +0 -2
- package/lib/organism/select-population/types.js.map +0 -1
|
@@ -5,6 +5,7 @@ export declare const propTypes: {
|
|
|
5
5
|
subtitle: PropTypes.Requireable<string>;
|
|
6
6
|
type: PropTypes.Requireable<string>;
|
|
7
7
|
'data-name': PropTypes.Requireable<string>;
|
|
8
|
+
titleSize: PropTypes.Requireable<string>;
|
|
8
9
|
subtitleSize: PropTypes.Requireable<string>;
|
|
9
10
|
}>>>;
|
|
10
11
|
name: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/atom/radio-with-title/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/atom/radio-with-title/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;CAOrB,CAAC;AAEF,oBAAY,mBAAmB,GAAG;IAChC,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/title/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/title/index.js"],"names":[],"mappings":";AAsCA,gDAsBC"}
|
package/lib/atom/title/index.js
CHANGED
|
@@ -11,17 +11,27 @@ var _style = _interopRequireDefault(require("./style.css"));
|
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
|
14
|
-
const
|
|
14
|
+
const getTitleStyle = (type, size) => {
|
|
15
15
|
switch (type) {
|
|
16
16
|
case 'page':
|
|
17
17
|
return _style.default.titlePage;
|
|
18
18
|
|
|
19
19
|
case 'form-group':
|
|
20
|
-
|
|
20
|
+
switch (size) {
|
|
21
|
+
case 'standard':
|
|
22
|
+
return _style.default.titleFormGroup;
|
|
23
|
+
|
|
24
|
+
case 'medium':
|
|
25
|
+
return _style.default.mediumTitleFormGroup;
|
|
26
|
+
|
|
27
|
+
case 'small':
|
|
28
|
+
return _style.default.smallTitleFormGroup;
|
|
29
|
+
}
|
|
30
|
+
|
|
21
31
|
}
|
|
22
32
|
};
|
|
23
33
|
|
|
24
|
-
const
|
|
34
|
+
const getSubtitleStyle = (type, size) => {
|
|
25
35
|
switch (type) {
|
|
26
36
|
case 'page':
|
|
27
37
|
return _style.default.subtitlePage;
|
|
@@ -33,6 +43,12 @@ const getSubtitleStype = (type, size) => {
|
|
|
33
43
|
|
|
34
44
|
case 'small':
|
|
35
45
|
return _style.default.smallSubtitleFormGroup;
|
|
46
|
+
|
|
47
|
+
case 'small-without-margin':
|
|
48
|
+
return _style.default.smallSubtitleFormGroupWithoutMargin;
|
|
49
|
+
|
|
50
|
+
case 'extra-small':
|
|
51
|
+
return _style.default.extraSmallSubtitleFormGroup;
|
|
36
52
|
}
|
|
37
53
|
|
|
38
54
|
}
|
|
@@ -44,10 +60,11 @@ const Title = props => {
|
|
|
44
60
|
subtitle,
|
|
45
61
|
type,
|
|
46
62
|
'data-name': dataName,
|
|
63
|
+
titleSize = 'standard',
|
|
47
64
|
subtitleSize = 'standard'
|
|
48
65
|
} = props;
|
|
49
|
-
const titleStyle =
|
|
50
|
-
const subtitleStyle =
|
|
66
|
+
const titleStyle = getTitleStyle(type, titleSize);
|
|
67
|
+
const subtitleStyle = getSubtitleStyle(type, subtitleSize);
|
|
51
68
|
const subtitleSection = subtitle ? /*#__PURE__*/_react.default.createElement("div", {
|
|
52
69
|
className: subtitleStyle
|
|
53
70
|
}, subtitle) : null;
|
|
@@ -62,7 +79,8 @@ Title.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
62
79
|
subtitle: _propTypes.default.string,
|
|
63
80
|
type: _propTypes.default.oneOf(['page', 'form-group']),
|
|
64
81
|
'data-name': _propTypes.default.string,
|
|
65
|
-
|
|
82
|
+
titleSize: _propTypes.default.oneOf(['standard', 'medium', 'small']),
|
|
83
|
+
subtitleSize: _propTypes.default.oneOf(['standard', 'small', 'small-without-margin', 'extra-small'])
|
|
66
84
|
} : {};
|
|
67
85
|
var _default = Title;
|
|
68
86
|
exports.default = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["
|
|
1
|
+
{"version":3,"file":"index.js","names":["getTitleStyle","type","size","style","titlePage","titleFormGroup","mediumTitleFormGroup","smallTitleFormGroup","getSubtitleStyle","subtitlePage","subtitleFormGroup","smallSubtitleFormGroup","smallSubtitleFormGroupWithoutMargin","extraSmallSubtitleFormGroup","Title","props","title","subtitle","dataName","titleSize","subtitleSize","titleStyle","subtitleStyle","subtitleSection","propTypes","PropTypes","string","oneOf"],"sources":["../../../src/atom/title/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport style from './style.css';\n\nconst getTitleStyle = (type, size) => {\n switch (type) {\n case 'page':\n return style.titlePage;\n case 'form-group':\n switch (size) {\n case 'standard':\n return style.titleFormGroup;\n case 'medium':\n return style.mediumTitleFormGroup;\n case 'small':\n return style.smallTitleFormGroup;\n }\n }\n};\n\nconst getSubtitleStyle = (type, size) => {\n switch (type) {\n case 'page':\n return style.subtitlePage;\n case 'form-group':\n switch (size) {\n case 'standard':\n return style.subtitleFormGroup;\n case 'small':\n return style.smallSubtitleFormGroup;\n case 'small-without-margin':\n return style.smallSubtitleFormGroupWithoutMargin;\n case 'extra-small':\n return style.extraSmallSubtitleFormGroup;\n }\n }\n};\n\nconst Title = props => {\n const {\n title,\n subtitle,\n type,\n 'data-name': dataName,\n titleSize = 'standard',\n subtitleSize = 'standard'\n } = props;\n const titleStyle = getTitleStyle(type, titleSize);\n const subtitleStyle = getSubtitleStyle(type, subtitleSize);\n\n const subtitleSection = subtitle ? <div className={subtitleStyle}>{subtitle}</div> : null;\n\n return (\n <div>\n <div className={titleStyle} data-name={dataName}>\n {title}\n </div>\n {subtitleSection}\n </div>\n );\n};\n\nTitle.propTypes = {\n title: PropTypes.string,\n subtitle: PropTypes.string,\n type: PropTypes.oneOf(['page', 'form-group']),\n 'data-name': PropTypes.string,\n titleSize: PropTypes.oneOf(['standard', 'medium', 'small']),\n subtitleSize: PropTypes.oneOf(['standard', 'small', 'small-without-margin', 'extra-small'])\n};\nexport default Title;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;;;AAEA,MAAMA,aAAa,GAAG,CAACC,IAAD,EAAOC,IAAP,KAAgB;EACpC,QAAQD,IAAR;IACE,KAAK,MAAL;MACE,OAAOE,cAAA,CAAMC,SAAb;;IACF,KAAK,YAAL;MACE,QAAQF,IAAR;QACE,KAAK,UAAL;UACE,OAAOC,cAAA,CAAME,cAAb;;QACF,KAAK,QAAL;UACE,OAAOF,cAAA,CAAMG,oBAAb;;QACF,KAAK,OAAL;UACE,OAAOH,cAAA,CAAMI,mBAAb;MANJ;;EAJJ;AAaD,CAdD;;AAgBA,MAAMC,gBAAgB,GAAG,CAACP,IAAD,EAAOC,IAAP,KAAgB;EACvC,QAAQD,IAAR;IACE,KAAK,MAAL;MACE,OAAOE,cAAA,CAAMM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,EAA8C,aAA9C,CAAhB;AANE,CAAlB;eAQeb,K"}
|
package/lib/atom/title/style.css
CHANGED
|
@@ -20,14 +20,28 @@
|
|
|
20
20
|
font-size: 18px;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
.mediumTitleFormGroup {
|
|
24
|
+
composes: title;
|
|
25
|
+
font-size: 16px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.smallTitleFormGroup {
|
|
29
|
+
composes: title;
|
|
30
|
+
font-size: 14px;
|
|
31
|
+
}
|
|
32
|
+
|
|
23
33
|
.subtitle {
|
|
24
|
-
margin: 8px 0 0;
|
|
25
34
|
font-family: Gilroy;
|
|
26
35
|
font-style: normal;
|
|
27
36
|
}
|
|
28
37
|
|
|
38
|
+
.subtitleWithMargin {
|
|
39
|
+
composes: subtitle;
|
|
40
|
+
margin: 8px 0 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
29
43
|
.subtitlePage {
|
|
30
|
-
composes:
|
|
44
|
+
composes: subtitleWithMargin;
|
|
31
45
|
font-weight: normal;
|
|
32
46
|
font-size: 18px;
|
|
33
47
|
line-height: 24px;
|
|
@@ -35,15 +49,28 @@
|
|
|
35
49
|
}
|
|
36
50
|
|
|
37
51
|
.subtitleFormGroup {
|
|
38
|
-
composes:
|
|
52
|
+
composes: subtitleWithMargin;
|
|
39
53
|
font-size: 14px;
|
|
40
54
|
font-weight: 400;
|
|
41
55
|
line-height: 20px;
|
|
42
56
|
color: cm_grey_400;
|
|
43
57
|
}
|
|
44
58
|
|
|
45
|
-
|
|
46
59
|
.smallSubtitleFormGroup{
|
|
47
60
|
composes: subtitleFormGroup;
|
|
48
61
|
max-width: 450px
|
|
49
62
|
}
|
|
63
|
+
|
|
64
|
+
.smallSubtitleFormGroupWithoutMargin{
|
|
65
|
+
composes: smallSubtitleFormGroup;
|
|
66
|
+
margin: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.extraSmallSubtitleFormGroup{
|
|
70
|
+
composes: subtitle;
|
|
71
|
+
font-size: 12px;
|
|
72
|
+
color: cm_grey_400;
|
|
73
|
+
line-height: 16px;
|
|
74
|
+
font-weight: normal;
|
|
75
|
+
}
|
|
76
|
+
|