@coorpacademy/components 11.33.5 → 11.33.7
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/LICENSE +201 -0
- package/es/atom/autocomplete/index.js +2 -2
- package/es/atom/autocomplete/index.js.map +1 -1
- package/es/atom/autocomplete/style.css +4 -4
- package/es/atom/button-link-icon/index.js +1 -1
- package/es/atom/button-link-icon/index.js.map +1 -1
- package/es/atom/button-link-icon/style.css +2 -2
- package/es/atom/button-menu/index.js +1 -1
- package/es/atom/button-menu/index.js.map +1 -1
- package/es/atom/button-menu/style.css +4 -4
- package/es/atom/chip/index.d.ts +1 -0
- package/es/atom/chip/index.d.ts.map +1 -1
- package/es/atom/chip/index.js +23 -11
- package/es/atom/chip/index.js.map +1 -1
- package/es/atom/chip/style.css +11 -27
- package/es/atom/input-checkbox/index.d.ts.map +1 -1
- package/es/atom/input-checkbox/index.js +1 -1
- package/es/atom/input-checkbox/index.js.map +1 -1
- package/es/atom/input-checkbox/style.css +12 -12
- package/es/atom/input-color/index.js +1 -1
- package/es/atom/input-color/index.js.map +1 -1
- package/es/atom/input-color/style.css +3 -3
- package/es/atom/input-html/index.js +1 -1
- package/es/atom/input-html/index.js.map +1 -1
- package/es/atom/input-html/style.css +3 -3
- package/es/atom/input-switch/index.js +1 -1
- package/es/atom/input-switch/index.js.map +1 -1
- package/es/atom/input-switch/style.css +6 -6
- package/es/atom/input-text/index.js +2 -2
- package/es/atom/input-text/index.js.map +1 -1
- package/es/atom/input-text/style.css +4 -4
- package/es/atom/input-textarea/index.js +2 -2
- package/es/atom/input-textarea/index.js.map +1 -1
- package/es/atom/input-textarea/style.css +5 -5
- package/es/atom/label/index.js +1 -1
- package/es/atom/label/index.js.map +1 -1
- package/es/atom/label/style.css +1 -1
- package/es/atom/life/index.js +1 -1
- package/es/atom/life/index.js.map +1 -1
- package/es/atom/life/style.css +1 -1
- package/es/atom/picture-background/index.js +1 -1
- package/es/atom/picture-background/index.js.map +1 -1
- package/es/atom/picture-background/style.css +1 -1
- package/es/atom/range/handle.css +1 -1
- package/es/atom/range/handle.js +1 -1
- package/es/atom/range/handle.js.map +1 -1
- package/es/atom/select/index.js +1 -1
- package/es/atom/select/index.js.map +1 -1
- package/es/atom/select/style.css +13 -13
- package/es/atom/select-icon/index.js +1 -1
- package/es/atom/select-icon/index.js.map +1 -1
- package/es/atom/select-icon/style.css +1 -1
- package/es/atom/status-item/index.js +1 -1
- package/es/atom/status-item/index.js.map +1 -1
- package/es/atom/status-item/style.css +1 -1
- package/es/atom/tag/index.d.ts.map +1 -1
- package/es/atom/tag/index.js +3 -2
- package/es/atom/tag/index.js.map +1 -1
- package/es/atom/tag/style.css +8 -1
- package/es/molecule/brand-create-form/index.js +1 -1
- package/es/molecule/brand-create-form/index.js.map +1 -1
- package/es/molecule/brand-create-form/style.css +4 -4
- package/es/molecule/brand-upload-box/index.js +1 -1
- package/es/molecule/brand-upload-box/index.js.map +1 -1
- package/es/molecule/brand-upload-box/style.css +3 -3
- package/es/molecule/card/customer.css +2 -2
- package/es/molecule/card/customer.d.ts +1 -1
- package/es/molecule/card/customer.js +1 -1
- package/es/molecule/card/customer.js.map +1 -1
- package/es/molecule/card/index.d.ts +1 -1
- package/es/molecule/card/index.js +1 -1
- package/es/molecule/card/index.js.map +1 -1
- package/es/molecule/card/style.css +19 -19
- package/es/molecule/filters/index.js +1 -1
- package/es/molecule/filters/index.js.map +1 -1
- package/es/molecule/filters/style.css +4 -4
- package/es/molecule/hero/index.js +1 -1
- package/es/molecule/hero/index.js.map +1 -1
- package/es/molecule/hero/style.css +10 -10
- package/es/molecule/module-card/index.js +1 -1
- package/es/molecule/module-card/index.js.map +1 -1
- package/es/molecule/module-card/style.css +3 -3
- package/es/molecule/multi-filter-panel/index.d.ts +25 -0
- package/es/molecule/multi-filter-panel/index.d.ts.map +1 -0
- package/es/molecule/multi-filter-panel/index.js +81 -0
- package/es/molecule/multi-filter-panel/index.js.map +1 -0
- package/es/molecule/multi-filter-panel/prop-types.d.ts +31 -0
- package/es/molecule/multi-filter-panel/prop-types.d.ts.map +1 -0
- package/es/molecule/multi-filter-panel/prop-types.js +12 -0
- package/es/molecule/multi-filter-panel/prop-types.js.map +1 -0
- package/es/molecule/multi-filter-panel/style.css +30 -0
- package/es/molecule/select-multiple/index.js +2 -2
- package/es/molecule/select-multiple/index.js.map +1 -1
- package/es/molecule/select-multiple/style.css +5 -5
- package/es/molecule/theme-image/index.js +1 -1
- package/es/molecule/theme-image/index.js.map +1 -1
- package/es/molecule/theme-image/style.css +4 -4
- package/es/molecule/titled-checkbox/index.js +1 -1
- package/es/molecule/titled-checkbox/index.js.map +1 -1
- package/es/molecule/titled-checkbox/style.css +1 -1
- package/es/organism/brand-analytics/analytics-popin.css +1 -1
- package/es/organism/brand-analytics/analytics-popin.js +1 -1
- package/es/organism/brand-analytics/analytics-popin.js.map +1 -1
- package/es/organism/cards-grid/index.js +1 -1
- package/es/organism/cards-grid/index.js.map +1 -1
- package/es/organism/cards-grid/style.css +1 -1
- package/es/organism/filter-chip/index.d.ts +18 -0
- package/es/organism/filter-chip/index.d.ts.map +1 -0
- package/es/organism/filter-chip/index.js +67 -0
- package/es/organism/filter-chip/index.js.map +1 -0
- package/es/organism/filter-chip/prop-types.d.ts +25 -0
- package/es/organism/filter-chip/prop-types.d.ts.map +1 -0
- package/es/organism/filter-chip/prop-types.js +14 -0
- package/es/organism/filter-chip/prop-types.js.map +1 -0
- package/es/organism/filter-chip/style.css +32 -0
- package/es/organism/popin/index.js +1 -1
- package/es/organism/popin/index.js.map +1 -1
- package/es/organism/popin/style.css +1 -1
- package/es/organism/resource-browser/index.js +1 -1
- package/es/organism/resource-browser/index.js.map +1 -1
- package/es/organism/resource-browser/style.css +2 -2
- package/es/template/activity/index.js +1 -1
- package/es/template/activity/index.js.map +1 -1
- package/es/template/activity/style.css +2 -2
- package/es/template/back-office/dashboard-preview/dashboard-popin.css +1 -1
- package/es/template/back-office/dashboard-preview/dashboard-popin.js +1 -1
- package/es/template/back-office/dashboard-preview/dashboard-popin.js.map +1 -1
- package/es/template/external-course/index.js +2 -2
- package/es/template/external-course/index.js.map +1 -1
- package/es/template/external-course/style.css +2 -2
- package/es/variables/colors.d.ts +1 -0
- package/es/variables/colors.d.ts.map +1 -1
- package/es/variables/colors.js +1 -0
- package/es/variables/colors.js.map +1 -1
- package/lib/atom/autocomplete/index.js +2 -2
- package/lib/atom/autocomplete/index.js.map +1 -1
- package/lib/atom/autocomplete/style.css +4 -4
- package/lib/atom/button-link-icon/index.js +1 -1
- package/lib/atom/button-link-icon/index.js.map +1 -1
- package/lib/atom/button-link-icon/style.css +2 -2
- package/lib/atom/button-menu/index.js +1 -1
- package/lib/atom/button-menu/index.js.map +1 -1
- package/lib/atom/button-menu/style.css +4 -4
- package/lib/atom/chip/index.d.ts +1 -0
- package/lib/atom/chip/index.d.ts.map +1 -1
- package/lib/atom/chip/index.js +23 -11
- package/lib/atom/chip/index.js.map +1 -1
- package/lib/atom/chip/style.css +11 -27
- package/lib/atom/input-checkbox/index.d.ts.map +1 -1
- package/lib/atom/input-checkbox/index.js +1 -1
- package/lib/atom/input-checkbox/index.js.map +1 -1
- package/lib/atom/input-checkbox/style.css +12 -12
- package/lib/atom/input-color/index.js +1 -1
- package/lib/atom/input-color/index.js.map +1 -1
- package/lib/atom/input-color/style.css +3 -3
- package/lib/atom/input-html/index.js +1 -1
- package/lib/atom/input-html/index.js.map +1 -1
- package/lib/atom/input-html/style.css +3 -3
- package/lib/atom/input-switch/index.js +1 -1
- package/lib/atom/input-switch/index.js.map +1 -1
- package/lib/atom/input-switch/style.css +6 -6
- package/lib/atom/input-text/index.js +2 -2
- package/lib/atom/input-text/index.js.map +1 -1
- package/lib/atom/input-text/style.css +4 -4
- package/lib/atom/input-textarea/index.js +2 -2
- package/lib/atom/input-textarea/index.js.map +1 -1
- package/lib/atom/input-textarea/style.css +5 -5
- package/lib/atom/label/index.js +1 -1
- package/lib/atom/label/index.js.map +1 -1
- package/lib/atom/label/style.css +1 -1
- package/lib/atom/life/index.js +1 -1
- package/lib/atom/life/index.js.map +1 -1
- package/lib/atom/life/style.css +1 -1
- package/lib/atom/picture-background/index.js +1 -1
- package/lib/atom/picture-background/index.js.map +1 -1
- package/lib/atom/picture-background/style.css +1 -1
- package/lib/atom/range/handle.css +1 -1
- package/lib/atom/range/handle.js +1 -1
- package/lib/atom/range/handle.js.map +1 -1
- package/lib/atom/select/index.js +1 -1
- package/lib/atom/select/index.js.map +1 -1
- package/lib/atom/select/style.css +13 -13
- package/lib/atom/select-icon/index.js +1 -1
- package/lib/atom/select-icon/index.js.map +1 -1
- package/lib/atom/select-icon/style.css +1 -1
- package/lib/atom/status-item/index.js +1 -1
- package/lib/atom/status-item/index.js.map +1 -1
- package/lib/atom/status-item/style.css +1 -1
- package/lib/atom/tag/index.d.ts.map +1 -1
- package/lib/atom/tag/index.js +3 -2
- package/lib/atom/tag/index.js.map +1 -1
- package/lib/atom/tag/style.css +8 -1
- package/lib/molecule/brand-create-form/index.js +1 -1
- package/lib/molecule/brand-create-form/index.js.map +1 -1
- package/lib/molecule/brand-create-form/style.css +4 -4
- package/lib/molecule/brand-upload-box/index.js +1 -1
- package/lib/molecule/brand-upload-box/index.js.map +1 -1
- package/lib/molecule/brand-upload-box/style.css +3 -3
- package/lib/molecule/card/customer.css +2 -2
- package/lib/molecule/card/customer.d.ts +1 -1
- package/lib/molecule/card/customer.js +1 -1
- package/lib/molecule/card/customer.js.map +1 -1
- package/lib/molecule/card/index.d.ts +1 -1
- package/lib/molecule/card/index.js +1 -1
- package/lib/molecule/card/index.js.map +1 -1
- package/lib/molecule/card/style.css +19 -19
- package/lib/molecule/filters/index.js +1 -1
- package/lib/molecule/filters/index.js.map +1 -1
- package/lib/molecule/filters/style.css +4 -4
- package/lib/molecule/hero/index.js +1 -1
- package/lib/molecule/hero/index.js.map +1 -1
- package/lib/molecule/hero/style.css +10 -10
- package/lib/molecule/module-card/index.js +1 -1
- package/lib/molecule/module-card/index.js.map +1 -1
- package/lib/molecule/module-card/style.css +3 -3
- package/lib/molecule/multi-filter-panel/index.d.ts +25 -0
- package/lib/molecule/multi-filter-panel/index.d.ts.map +1 -0
- package/lib/molecule/multi-filter-panel/index.js +85 -0
- package/lib/molecule/multi-filter-panel/index.js.map +1 -0
- package/lib/molecule/multi-filter-panel/prop-types.d.ts +31 -0
- package/lib/molecule/multi-filter-panel/prop-types.d.ts.map +1 -0
- package/lib/molecule/multi-filter-panel/prop-types.js +17 -0
- package/lib/molecule/multi-filter-panel/prop-types.js.map +1 -0
- package/lib/molecule/multi-filter-panel/style.css +30 -0
- package/lib/molecule/select-multiple/index.js +2 -2
- package/lib/molecule/select-multiple/index.js.map +1 -1
- package/lib/molecule/select-multiple/style.css +5 -5
- package/lib/molecule/theme-image/index.js +1 -1
- package/lib/molecule/theme-image/index.js.map +1 -1
- package/lib/molecule/theme-image/style.css +4 -4
- package/lib/molecule/titled-checkbox/index.js +1 -1
- package/lib/molecule/titled-checkbox/index.js.map +1 -1
- package/lib/molecule/titled-checkbox/style.css +1 -1
- package/lib/organism/brand-analytics/analytics-popin.css +1 -1
- package/lib/organism/brand-analytics/analytics-popin.js +1 -1
- package/lib/organism/brand-analytics/analytics-popin.js.map +1 -1
- package/lib/organism/cards-grid/index.js +1 -1
- package/lib/organism/cards-grid/index.js.map +1 -1
- package/lib/organism/cards-grid/style.css +1 -1
- package/lib/organism/filter-chip/index.d.ts +18 -0
- package/lib/organism/filter-chip/index.d.ts.map +1 -0
- package/lib/organism/filter-chip/index.js +72 -0
- package/lib/organism/filter-chip/index.js.map +1 -0
- package/lib/organism/filter-chip/prop-types.d.ts +25 -0
- package/lib/organism/filter-chip/prop-types.d.ts.map +1 -0
- package/lib/organism/filter-chip/prop-types.js +19 -0
- package/lib/organism/filter-chip/prop-types.js.map +1 -0
- package/lib/organism/filter-chip/style.css +32 -0
- package/lib/organism/popin/index.js +1 -1
- package/lib/organism/popin/index.js.map +1 -1
- package/lib/organism/popin/style.css +1 -1
- package/lib/organism/resource-browser/index.js +1 -1
- package/lib/organism/resource-browser/index.js.map +1 -1
- package/lib/organism/resource-browser/style.css +2 -2
- package/lib/template/activity/index.js +1 -1
- package/lib/template/activity/index.js.map +1 -1
- package/lib/template/activity/style.css +2 -2
- package/lib/template/back-office/dashboard-preview/dashboard-popin.css +1 -1
- package/lib/template/back-office/dashboard-preview/dashboard-popin.js +1 -1
- package/lib/template/back-office/dashboard-preview/dashboard-popin.js.map +1 -1
- package/lib/template/external-course/index.js +2 -2
- package/lib/template/external-course/index.js.map +1 -1
- package/lib/template/external-course/style.css +2 -2
- package/lib/variables/colors.d.ts +1 -0
- package/lib/variables/colors.d.ts.map +1 -1
- package/lib/variables/colors.js +1 -0
- package/lib/variables/colors.js.map +1 -1
- package/locales/bs/global.json +4 -4
- package/locales/cs/global.json +4 -4
- package/locales/de/global.json +3 -3
- package/locales/es/global.json +3 -3
- package/locales/et/global.json +4 -4
- package/locales/fi/global.json +7 -7
- package/locales/fr/global.json +4 -4
- package/locales/hr/global.json +4 -4
- package/locales/hu/global.json +4 -4
- package/locales/hy/global.json +4 -4
- package/locales/it/global.json +3 -3
- package/locales/ja/global.json +4 -4
- package/locales/ko/global.json +4 -4
- package/locales/nl/global.json +4 -4
- package/locales/pl/global.json +3 -3
- package/locales/pt/global.json +2 -2
- package/locales/ro/global.json +3 -3
- package/locales/ru/global.json +4 -4
- package/locales/sk/global.json +4 -4
- package/locales/sl/global.json +6 -6
- package/locales/sv/global.json +7 -7
- package/locales/tl/global.json +4 -4
- package/locales/tr/global.json +4 -4
- package/locales/uk/global.json +4 -4
- package/locales/vi/global.json +4 -4
- package/locales/zh/global.json +4 -4
- package/locales/zh_TW/global.json +4 -4
- package/package.json +2 -2
package/es/atom/chip/style.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@value colors: "../../variables/colors.css";
|
|
2
2
|
@value cm_grey_100 from colors;
|
|
3
3
|
@value cm_grey_200 from colors;
|
|
4
|
-
@value
|
|
4
|
+
@value cm_grey_500 from colors;
|
|
5
5
|
@value cm_grey_700 from colors;
|
|
6
6
|
@value cm_positive_100 from colors;
|
|
7
7
|
@value white from colors;
|
|
@@ -15,11 +15,14 @@
|
|
|
15
15
|
align-items: center;
|
|
16
16
|
box-sizing: border-box;
|
|
17
17
|
cursor: pointer;
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: space-between;
|
|
20
|
+
gap: 12px;
|
|
18
21
|
}
|
|
19
22
|
|
|
20
23
|
.unselected {
|
|
21
24
|
background-color: cm_grey_100;
|
|
22
|
-
color:
|
|
25
|
+
color: cm_grey_500;
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
.unselected:hover {
|
|
@@ -27,18 +30,13 @@
|
|
|
27
30
|
color: cm_grey_700;
|
|
28
31
|
}
|
|
29
32
|
|
|
30
|
-
.
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
.textZone {
|
|
35
|
-
flex: 1 1 100%;
|
|
36
|
-
padding-right: 32px;
|
|
37
|
-
width: calc(100% - 32px);
|
|
33
|
+
.left {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
gap: 4px;
|
|
38
37
|
}
|
|
39
38
|
|
|
40
|
-
.text
|
|
41
|
-
.subText {
|
|
39
|
+
.text {
|
|
42
40
|
font-family: 'Gilroy';
|
|
43
41
|
font-style: normal;
|
|
44
42
|
font-weight: 600;
|
|
@@ -51,22 +49,8 @@
|
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
.subText {
|
|
52
|
+
composes: text;
|
|
54
53
|
font-weight: 500;
|
|
55
54
|
font-size: 10px;
|
|
56
55
|
line-height: 12px;
|
|
57
56
|
}
|
|
58
|
-
|
|
59
|
-
.icon{
|
|
60
|
-
position: absolute;
|
|
61
|
-
right: 18px;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.selectedIconWrapper {
|
|
65
|
-
composes: icon;
|
|
66
|
-
color: white;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.unselectedIconWrapper {
|
|
70
|
-
composes: icon;
|
|
71
|
-
color: cm_grey_400;
|
|
72
|
-
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/input-checkbox/index.js"],"names":[],"mappings":";AAeA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/input-checkbox/index.js"],"names":[],"mappings":";AAeA,wDAwDC"}
|
|
@@ -32,7 +32,7 @@ const InputCheckbox = props => {
|
|
|
32
32
|
const handleChange = useCallback(e => onChange(e.target.checked), [onChange]);
|
|
33
33
|
const modifiedClassName = theme === 'coorpmanager' ? style.coorpManagerModified : style.defaultModified;
|
|
34
34
|
const errorClassName = theme === 'coorpmanager' ? style.coorpManagerError : style.defaultError;
|
|
35
|
-
const defaultContainerClassName = theme === 'coorpmanager' ? style.coorpManager : style.
|
|
35
|
+
const defaultContainerClassName = theme === 'coorpmanager' ? style.coorpManager : style.defaultStyle;
|
|
36
36
|
const className = getClassState(defaultContainerClassName, modifiedClassName, errorClassName, modified, error);
|
|
37
37
|
return /*#__PURE__*/React.createElement("label", {
|
|
38
38
|
className: className,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","useCallback","PropTypes","classnames","NovaSolidStatusValidate","CheckIcon","getClassState","style","titleStylesClassNames","inherit","primary","secondary","tertiary","InputCheckbox","props","checked","onChange","_noop","error","disabled","required","titleStyle","modified","theme","title","propsTitle","noLabelMargins","titleStyleClassName","idCheckbox","_uniqueId","handleChange","e","target","modifiedClassName","coorpManagerModified","defaultModified","errorClassName","coorpManagerError","defaultError","defaultContainerClassName","coorpManager","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","useCallback","PropTypes","classnames","NovaSolidStatusValidate","CheckIcon","getClassState","style","titleStylesClassNames","inherit","primary","secondary","tertiary","InputCheckbox","props","checked","onChange","_noop","error","disabled","required","titleStyle","modified","theme","title","propsTitle","noLabelMargins","titleStyleClassName","idCheckbox","_uniqueId","handleChange","e","target","modifiedClassName","coorpManagerModified","defaultModified","errorClassName","coorpManagerError","defaultError","defaultContainerClassName","coorpManager","defaultStyle","className","createElement","htmlFor","type","checkbox","name","id","label","undefined","icon","propTypes","process","env","NODE_ENV","string","isRequired","bool","func","oneOf","_keys"],"sources":["../../../src/atom/input-checkbox/index.js"],"sourcesContent":["import React, {useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {NovaSolidStatusValidate as CheckIcon} from '@coorpacademy/nova-icons';\nimport {keys, noop, uniqueId} from 'lodash/fp';\nimport getClassState from '../../util/get-class-state';\nimport style from './style.css';\n\nconst titleStylesClassNames = {\n inherit: style.inherit,\n primary: style.primary,\n secondary: style.secondary,\n tertiary: style.tertiary\n};\n\nconst InputCheckbox = props => {\n const {\n checked,\n onChange = noop,\n error,\n disabled,\n required,\n titleStyle = 'primary',\n modified = false,\n theme = 'default',\n title: propsTitle,\n noLabelMargins = false\n } = props;\n\n const titleStyleClassName = titleStylesClassNames[titleStyle];\n const idCheckbox = uniqueId('input-checkbox-');\n const title = `${propsTitle}${required ? '*' : ''}`;\n const handleChange = useCallback(e => onChange(e.target.checked), [onChange]);\n\n const modifiedClassName =\n theme === 'coorpmanager' ? style.coorpManagerModified : style.defaultModified;\n const errorClassName = theme === 'coorpmanager' ? style.coorpManagerError : style.defaultError;\n const defaultContainerClassName =\n theme === 'coorpmanager' ? style.coorpManager : style.defaultStyle;\n\n const className = getClassState(\n defaultContainerClassName,\n modifiedClassName,\n errorClassName,\n modified,\n error\n );\n\n return (\n <label className={className} htmlFor={idCheckbox} data-name=\"checkbox-input-label\">\n <input\n type=\"checkbox\"\n className={style.checkbox}\n name={title}\n id={idCheckbox}\n checked={checked}\n onChange={handleChange}\n disabled={disabled}\n data-name=\"checkbox-input\"\n />\n <div\n data-name=\"checkbox-label\"\n className={classnames(style.label, noLabelMargins ? style.noLabelMargins : undefined)}\n >\n <CheckIcon className={style.icon} />\n </div>\n <span className={titleStyleClassName} title={title}>\n {title}\n </span>\n </label>\n );\n};\n\nInputCheckbox.propTypes = {\n title: PropTypes.string.isRequired,\n disabled: PropTypes.bool,\n required: PropTypes.bool,\n checked: PropTypes.bool,\n error: PropTypes.bool,\n onChange: PropTypes.func,\n modified: PropTypes.bool,\n noLabelMargins: PropTypes.bool,\n theme: PropTypes.oneOf(['coorpmanager', 'default']),\n titleStyle: PropTypes.oneOf(keys(titleStylesClassNames))\n};\n\nexport default InputCheckbox;\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAGC,WAAW,QAAO,OAAO;AACxC,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,UAAU,MAAM,YAAY;AACnC,SAAQC,uBAAuB,IAAIC,SAAS,QAAO,0BAA0B;AAE7E,OAAOC,aAAa,MAAM,4BAA4B;AACtD,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,qBAAqB,GAAG;EAC5BC,OAAO,EAAEF,KAAK,CAACE,OAAO;EACtBC,OAAO,EAAEH,KAAK,CAACG,OAAO;EACtBC,SAAS,EAAEJ,KAAK,CAACI,SAAS;EAC1BC,QAAQ,EAAEL,KAAK,CAACK;AAClB,CAAC;AAED,MAAMC,aAAa,GAAGC,KAAK,IAAI;EAC7B,MAAM;IACJC,OAAO;IACPC,QAAQ,GAAAC,KAAO;IACfC,KAAK;IACLC,QAAQ;IACRC,QAAQ;IACRC,UAAU,GAAG,SAAS;IACtBC,QAAQ,GAAG,KAAK;IAChBC,KAAK,GAAG,SAAS;IACjBC,KAAK,EAAEC,UAAU;IACjBC,cAAc,GAAG;EACnB,CAAC,GAAGZ,KAAK;EAET,MAAMa,mBAAmB,GAAGnB,qBAAqB,CAACa,UAAU,CAAC;EAC7D,MAAMO,UAAU,GAAGC,SAAA,CAAS,iBAAiB,CAAC;EAC9C,MAAML,KAAK,GAAG,GAAGC,UAAU,GAAGL,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AE,CAChC,CAAC,eACNnD,KAAA,CAAA2C,aAAA;IAAMD,SAAS,EAAEf,mBAAoB;IAACH,KAAK,EAAEA;EAAM,GAChDA,KACG,CACD,CAAC;AAEZ,CAAC;AAEDX,aAAa,CAACuC,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG;EACxB/B,KAAK,EAAEtB,SAAS,CAACsD,MAAM,CAACC,UAAU;EAClCtC,QAAQ,EAAEjB,SAAS,CAACwD,IAAI;EACxBtC,QAAQ,EAAElB,SAAS,CAACwD,IAAI;EACxB3C,OAAO,EAAEb,SAAS,CAACwD,IAAI;EACvBxC,KAAK,EAAEhB,SAAS,CAACwD,IAAI;EACrB1C,QAAQ,EAAEd,SAAS,CAACyD,IAAI;EACxBrC,QAAQ,EAAEpB,SAAS,CAACwD,IAAI;EACxBhC,cAAc,EAAExB,SAAS,CAACwD,IAAI;EAC9BnC,KAAK,EAAErB,SAAS,CAAC0D,KAAK,CAAC,CAAC,cAAc,EAAE,SAAS,CAAC,CAAC;EACnDvC,UAAU,EAAEnB,SAAS,CAAC0D,KAAK,CAACC,KAAA,CAAKrD,qBAAqB,CAAC;AACzD,CAAC;AAED,eAAeK,aAAa","ignoreList":[]}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
@value cm_green_50 from colors;
|
|
17
17
|
@value cm_primary_blue from colors;
|
|
18
18
|
|
|
19
|
-
.
|
|
19
|
+
.defaultStyle {
|
|
20
20
|
display: flex;
|
|
21
21
|
flex-direction: row-reverse;
|
|
22
22
|
justify-content: flex-end;
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.defaultError {
|
|
39
|
-
composes:
|
|
39
|
+
composes: defaultStyle;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.defaultModified {
|
|
43
|
-
composes:
|
|
43
|
+
composes: defaultStyle;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.
|
|
46
|
+
.defaultStyle input,
|
|
47
47
|
.coorpManager input {
|
|
48
48
|
display: none;
|
|
49
49
|
}
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
color: white;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
.
|
|
58
|
+
.defaultStyle .title {
|
|
59
59
|
font-family: Gilroy;
|
|
60
60
|
font-size: 15px;
|
|
61
61
|
text-transform: none;
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
width: 180px;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
.
|
|
67
|
-
.
|
|
68
|
-
.
|
|
66
|
+
.defaultStyle .tertiary,
|
|
67
|
+
.defaultStyle .primary,
|
|
68
|
+
.defaultStyle .secondary {
|
|
69
69
|
color: dark;
|
|
70
70
|
background-color: unset;
|
|
71
71
|
}
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
background-color: cm_blue_50;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
.
|
|
100
|
+
.defaultStyle .label,
|
|
101
101
|
.coorpManager .label {
|
|
102
102
|
border: solid 1px cm_grey_200;
|
|
103
103
|
background-color: cm_grey_100;
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
position: relative;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
.
|
|
116
|
+
.defaultStyle .label {
|
|
117
117
|
margin-left: 20px;
|
|
118
118
|
}
|
|
119
119
|
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
outline: 2px solid battle;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
.
|
|
147
|
+
.defaultStyle .inherit,
|
|
148
148
|
.coorpManager .inherit {
|
|
149
149
|
color: inherit;
|
|
150
150
|
text-overflow: ellipsis;
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
.coorpManager .noLabelMargins,
|
|
157
|
-
.
|
|
157
|
+
.defaultStyle .noLabelMargins {
|
|
158
158
|
margin-right: 0;
|
|
159
159
|
margin-left: 0;
|
|
160
160
|
}
|
|
@@ -19,7 +19,7 @@ const InputColor = props => {
|
|
|
19
19
|
backgroundColor: value
|
|
20
20
|
};
|
|
21
21
|
const handleChange = useMemo(() => e => onChange(e.target.value), [onChange]);
|
|
22
|
-
const className = getClassState(style.
|
|
22
|
+
const className = getClassState(style.defaultStyle, style.modified, style.error, modified, error);
|
|
23
23
|
return /*#__PURE__*/React.createElement("div", {
|
|
24
24
|
className: className
|
|
25
25
|
}, /*#__PURE__*/React.createElement("label", null, /*#__PURE__*/React.createElement("span", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","useMemo","PropTypes","getClassState","style","InputColor","props","title","name","placeholder","value","defaultValue","onChange","_noop","error","description","modified","inlineStyle","backgroundColor","handleChange","e","target","className","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","useMemo","PropTypes","getClassState","style","InputColor","props","title","name","placeholder","value","defaultValue","onChange","_noop","error","description","modified","inlineStyle","backgroundColor","handleChange","e","target","className","defaultStyle","createElement","type","input","onInput","preview","propTypes","process","env","NODE_ENV","string","isRequired","func","bool"],"sources":["../../../src/atom/input-color/index.js"],"sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {noop} from 'lodash/fp';\nimport getClassState from '../../util/get-class-state';\nimport style from './style.css';\n\nconst InputColor = props => {\n const {\n title,\n name,\n placeholder,\n value,\n defaultValue,\n onChange = noop,\n error,\n description,\n modified = false\n } = props;\n\n const inlineStyle = {\n backgroundColor: value\n };\n const handleChange = useMemo(() => e => onChange(e.target.value), [onChange]);\n const className = getClassState(style.defaultStyle, style.modified, style.error, modified, error);\n\n return (\n <div className={className}>\n <label>\n <span className={style.title}>{`${title} `}</span>\n <input\n type=\"text\"\n name={name}\n className={style.input}\n placeholder={placeholder}\n defaultValue={defaultValue}\n value={value}\n onInput={handleChange}\n onChange={noop}\n />\n <span className={style.preview} style={inlineStyle} />\n </label>\n <div className={style.description}>{description}</div>\n </div>\n );\n};\n\nInputColor.propTypes = {\n title: PropTypes.string.isRequired,\n name: PropTypes.string,\n placeholder: PropTypes.string.isRequired,\n defaultValue: PropTypes.string,\n value: PropTypes.string,\n error: PropTypes.string,\n onChange: PropTypes.func,\n description: PropTypes.string,\n modified: PropTypes.bool\n};\n\nexport default InputColor;\n"],"mappings":";AAAA,OAAOA,KAAK,IAAGC,OAAO,QAAO,OAAO;AACpC,OAAOC,SAAS,MAAM,YAAY;AAElC,OAAOC,aAAa,MAAM,4BAA4B;AACtD,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,UAAU,GAAGC,KAAK,IAAI;EAC1B,MAAM;IACJC,KAAK;IACLC,IAAI;IACJC,WAAW;IACXC,KAAK;IACLC,YAAY;IACZC,QAAQ,GAAAC,KAAO;IACfC,KAAK;IACLC,WAAW;IACXC,QAAQ,GAAG;EACb,CAAC,GAAGV,KAAK;EAET,MAAMW,WAAW,GAAG;IAClBC,eAAe,EAAER;EACnB,CAAC;EACD,MAAMS,YAAY,GAAGlB,OAAO,CAAC,MAAMmB,CAAC,IAAIR,QAAQ,CAACQ,CAAC,CAACC,MAAM,CAACX,KAAK,CAAC,EAAE,CAACE,QAAQ,CAAC,CAAC;EAC7E,MAAMU,SAAS,GAAGnB,aAAa,CAACC,KAAK,CAACmB,YAAY,EAAEnB,KAAK,CAACY,QAAQ,EAAEZ,KAAK,CAACU,KAAK,EAAEE,QAAQ,EAAEF,KAAK,CAAC;EAEjG,oBACEd,KAAA,CAAAwB,aAAA;IAAKF,SAAS,EAAEA;EAAU,gBACxBtB,KAAA,CAAAwB,aAAA,6BACExB,KAAA,CAAAwB,aAAA;IAAMF,SAAS,EAAElB,KAAK,CAACG;EAAM,GAAE,GAAGA,KAAK,GAAU,CAAC,eAClDP,KAAA,CAAAwB,aAAA;IACEC,IAAI,EAAC,MAAM;IACXjB,IAAI,EAAEA,IAAK;IACXc,SAAS,EAAElB,KAAK,CAACsB,KAAM;IACvBjB,WAAW,EAAEA,WAAY;IACzBE,YAAY,EAAEA,YAAa;IAC3BD,KAAK,EAAEA,KAAM;IACbiB,OAAO,EAAER,YAAa;IACtBP,QAAQ,EAAAC;EAAO,CAChB,CAAC,eACFb,KAAA,CAAAwB,aAAA;IAAMF,SAAS,EAAElB,KAAK,CAACwB,OAAQ;IAACxB,KAAK,EAAEa;EAAY,CAAE,CAChD,CAAC,eACRjB,KAAA,CAAAwB,aAAA;IAAKF,SAAS,EAAElB,KAAK,CAACW;EAAY,GAAEA,WAAiB,CAClD,CAAC;AAEV,CAAC;AAEDV,UAAU,CAACwB,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG;EACrBzB,KAAK,EAAEL,SAAS,CAAC+B,MAAM,CAACC,UAAU;EAClC1B,IAAI,EAAEN,SAAS,CAAC+B,MAAM;EACtBxB,WAAW,EAAEP,SAAS,CAAC+B,MAAM,CAACC,UAAU;EACxCvB,YAAY,EAAET,SAAS,CAAC+B,MAAM;EAC9BvB,KAAK,EAAER,SAAS,CAAC+B,MAAM;EACvBnB,KAAK,EAAEZ,SAAS,CAAC+B,MAAM;EACvBrB,QAAQ,EAAEV,SAAS,CAACiC,IAAI;EACxBpB,WAAW,EAAEb,SAAS,CAAC+B,MAAM;EAC7BjB,QAAQ,EAAEd,SAAS,CAACkC;AACtB,CAAC;AAED,eAAe/B,UAAU","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@value colors: "../../variables/colors.css";
|
|
2
2
|
@value grey from colors;
|
|
3
3
|
|
|
4
|
-
.
|
|
4
|
+
.defaultStyle {
|
|
5
5
|
composes: default from '../input-text/style.css';
|
|
6
6
|
}
|
|
7
7
|
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
|
|
12
12
|
.error {
|
|
13
13
|
composes: error from '../input-text/style.css';
|
|
14
|
-
composes:
|
|
14
|
+
composes: defaultStyle;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.modified {
|
|
18
18
|
composes: modified from '../input-text/style.css';
|
|
19
|
-
composes:
|
|
19
|
+
composes: defaultStyle;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.title {
|
|
@@ -31,7 +31,7 @@ const InputHtml = (props, legacyContext) => {
|
|
|
31
31
|
description,
|
|
32
32
|
disabled
|
|
33
33
|
} = props;
|
|
34
|
-
const className = error ? style.error : style.
|
|
34
|
+
const className = error ? style.error : style.defaultStyle;
|
|
35
35
|
const iconContent = !preview ? /*#__PURE__*/React.createElement(PreviewIcon, {
|
|
36
36
|
style: {
|
|
37
37
|
color: mediumColor
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","useCallback","useState","PropTypes","NovaLineBusinessCircleView","PreviewIcon","NovaLineContentEditionPencil2","PencilIcon","Provider","GetSkinFromContext","InputPreview","style","InputHtml","props","legacyContext","value","onChange","_noop","text","setText","preview","setPreview","handleChange","e","_value","target","handlePreview","preventDefault","skin","mediumColor","_getOr","title","placeholder","error","description","disabled","className","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","useCallback","useState","PropTypes","NovaLineBusinessCircleView","PreviewIcon","NovaLineContentEditionPencil2","PencilIcon","Provider","GetSkinFromContext","InputPreview","style","InputHtml","props","legacyContext","value","onChange","_noop","text","setText","preview","setPreview","handleChange","e","_value","target","handlePreview","preventDefault","skin","mediumColor","_getOr","title","placeholder","error","description","disabled","className","defaultStyle","iconContent","createElement","color","height","contentWrapper","input","toggle","onClick","propTypes","process","env","NODE_ENV","string","bool","func","contextTypes","childContextTypes"],"sources":["../../../src/atom/input-html/index.js"],"sourcesContent":["import React, {useCallback, useState} from 'react';\nimport PropTypes from 'prop-types';\nimport {noop, getOr} from 'lodash/fp';\nimport {\n NovaLineBusinessCircleView as PreviewIcon,\n NovaLineContentEditionPencil2 as PencilIcon\n} from '@coorpacademy/nova-icons';\nimport Provider, {GetSkinFromContext} from '../provider';\nimport InputPreview from './input-preview';\nimport style from './style.css';\n\nconst InputHtml = (props, legacyContext) => {\n const {value = '', onChange = noop} = props;\n const [text, setText] = useState(value);\n const [preview, setPreview] = useState(true);\n\n const handleChange = useCallback(\n e => {\n const _value = e.target.value;\n setText(_value);\n onChange(_value);\n },\n [onChange]\n );\n\n const handlePreview = useCallback(\n e => {\n e.preventDefault();\n setPreview(!preview);\n },\n [preview, setPreview]\n );\n\n const skin = GetSkinFromContext(legacyContext);\n const mediumColor = getOr('#999999', 'common.medium', skin);\n\n const {title, placeholder, error, description, disabled} = props;\n\n const className = error ? style.error : style.defaultStyle;\n const iconContent = !preview ? (\n <PreviewIcon style={{color: mediumColor}} height={16} />\n ) : (\n <PencilIcon style={{color: mediumColor}} height={16} />\n );\n\n return (\n <div className={className}>\n <label>\n <span className={style.title}>{`${title} `}</span>\n <div className={style.contentWrapper}>\n <InputPreview\n title={title}\n text={text}\n placeholder={placeholder}\n onChange={handleChange}\n disabled={disabled}\n preview={preview}\n className={style.input}\n />\n </div>\n <span\n data-testid={preview ? 'pencil-icon' : 'preview-icon'}\n className={style.toggle}\n onClick={handlePreview}\n >\n {iconContent}\n </span>\n </label>\n <div className={style.description}>{description}</div>\n </div>\n );\n};\n\nInputHtml.propTypes = {\n title: PropTypes.string,\n placeholder: PropTypes.string,\n disabled: PropTypes.bool,\n value: PropTypes.string,\n error: PropTypes.string,\n onChange: PropTypes.func,\n description: PropTypes.string\n};\n\nInputHtml.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nexport default InputHtml;\n"],"mappings":";;AAAA,OAAOA,KAAK,IAAGC,WAAW,EAAEC,QAAQ,QAAO,OAAO;AAClD,OAAOC,SAAS,MAAM,YAAY;AAElC,SACEC,0BAA0B,IAAIC,WAAW,EACzCC,6BAA6B,IAAIC,UAAU,QACtC,0BAA0B;AACjC,OAAOC,QAAQ,IAAGC,kBAAkB,QAAO,aAAa;AACxD,OAAOC,YAAY,MAAM,iBAAiB;AAC1C,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,SAAS,GAAGA,CAACC,K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,CAAC;AAEDtC,SAAS,CAACyC,YAAY,GAAG;EACvBzB,IAAI,EAAEpB,QAAQ,CAAC8C,iBAAiB,CAAC1B;AACnC,CAAC;AAED,eAAehB,SAAS","ignoreList":[]}
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
@value light from colors;
|
|
5
5
|
@value negative from colors;
|
|
6
6
|
|
|
7
|
-
.
|
|
7
|
+
.defaultStyle {
|
|
8
8
|
display: flex;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.error {
|
|
12
|
-
composes:
|
|
12
|
+
composes: defaultStyle;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.
|
|
15
|
+
.defaultStyle label {
|
|
16
16
|
display: flex;
|
|
17
17
|
align-items: center;
|
|
18
18
|
position: relative;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","useMemo","PropTypes","getClassState","style","InputSwitch","props","title","name","id","value","disabled","onChange","_noop","description","modified","theme","titlePosition","details","requiredSelection","dataName","ariaLabelledBy","ariaLabel","idSwitch","_uniqueId","isDisabled","handleChange","e","target","checked","titleView","createElement","className","descriptionView","getClass","defaultClass","coorpmanager","modifiedClass","coorpmanagerModified","partielUncheck","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","useMemo","PropTypes","getClassState","style","InputSwitch","props","title","name","id","value","disabled","onChange","_noop","description","modified","theme","titlePosition","details","requiredSelection","dataName","ariaLabelledBy","ariaLabel","idSwitch","_uniqueId","isDisabled","handleChange","e","target","checked","titleView","createElement","className","descriptionView","getClass","defaultClass","coorpmanager","modifiedClass","coorpmanagerModified","partielUncheck","defaultStyle","btnSwitchContainer","_extends","type","checkbox","htmlFor","tabIndex","alignedTextContainer","detailsTxt","propTypes","process","env","NODE_ENV","string","bool","func","oneOf"],"sources":["../../../src/atom/input-switch/index.js"],"sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {noop, uniqueId} from 'lodash/fp';\nimport getClassState from '../../util/get-class-state';\nimport style from './style.css';\n\nconst InputSwitch = props => {\n const {\n title,\n name,\n id,\n value,\n disabled,\n onChange = noop,\n description,\n modified = false,\n theme = 'default',\n titlePosition = 'left',\n details = '',\n requiredSelection = false,\n 'data-name': dataName,\n 'aria-labelledby': ariaLabelledBy,\n 'aria-label': ariaLabel\n } = props;\n\n const idSwitch = id || uniqueId('input-switch-');\n const isDisabled = disabled ? 'disabled' : '';\n const handleChange = useMemo(() => e => onChange(e.target.checked), [onChange]);\n\n const titleView = title ? (\n <span id={`title-view-${dataName}`} className={style.title}>\n {`${title} `}{' '}\n </span>\n ) : null;\n\n const descriptionView = description ? (\n <div className={style.description}>{description}</div>\n ) : null;\n\n const getClass = () => {\n switch (theme) {\n case 'coorpmanager':\n return {\n defaultClass: style.coorpmanager,\n modifiedClass: style.coorpmanagerModified\n };\n case 'mooc':\n return {\n defaultClass: style.partielUncheck,\n modifiedClass: style.coorpmanagerModified\n };\n default:\n return {defaultClass: style.defaultStyle, modifiedClass: style.modified};\n }\n };\n const {defaultClass, modifiedClass} = getClass();\n const className = getClassState(defaultClass, modifiedClass, null, modified);\n\n return (\n <div className={className} data-name={`switch-input-${theme}${dataName}`}>\n {titlePosition === 'left' ? titleView : null}\n <div className={requiredSelection ? style.requiredSelection : null}>\n <div className={style.btnSwitchContainer}>\n <input\n {...(ariaLabelledBy ? {'aria-labelledby': ariaLabelledBy} : {})}\n {...(title ? {'aria-labelledby': `title-view-${dataName}`} : {})}\n {...(ariaLabel && !ariaLabelledBy && !title ? {'aria-label': ariaLabel} : {})}\n type=\"checkbox\"\n id={idSwitch}\n name={name}\n onChange={handleChange}\n checked={value}\n disabled={isDisabled}\n className={style.checkbox}\n aria-labelledby={ariaLabelledBy}\n />\n <label\n htmlFor={idSwitch}\n data-name=\"input-switch-label\"\n tabIndex={0}\n aria-label={ariaLabel}\n title={ariaLabel}\n />\n </div>\n </div>\n <div className={!details ? style.alignedTextContainer : null}>\n {titlePosition === 'right' ? titleView : null}\n {details ? <div className={style.detailsTxt}>{details}</div> : null}\n </div>\n {descriptionView}\n </div>\n );\n};\n\nInputSwitch.propTypes = {\n title: PropTypes.string,\n name: PropTypes.string,\n id: PropTypes.string,\n value: PropTypes.bool,\n disabled: PropTypes.bool,\n onChange: PropTypes.func,\n description: PropTypes.string,\n 'aria-labelledby': PropTypes.string,\n 'aria-label': PropTypes.string,\n modified: PropTypes.bool,\n titlePosition: PropTypes.oneOf(['right', 'left']),\n theme: PropTypes.oneOf(['default', 'coorpmanager', 'mooc']),\n details: PropTypes.string,\n 'data-name': PropTypes.string,\n requiredSelection: PropTypes.bool\n};\nexport default InputSwitch;\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAGC,OAAO,QAAO,OAAO;AACpC,OAAOC,SAAS,MAAM,YAAY;AAElC,OAAOC,aAAa,MAAM,4BAA4B;AACtD,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,WAAW,GAAGC,KAAK,IAAI;EAC3B,MAAM;IACJC,KAAK;IACLC,IAAI;IACJC,EAAE;IACFC,KAAK;IACLC,QAAQ;IACRC,QAAQ,GAAAC,KAAO;IACfC,WAAW;IACXC,QAAQ,GAAG,KAAK;IAChBC,KAAK,GAAG,SAAS;IACjBC,aAAa,GAAG,MAAM;IACtBC,OAAO,GAAG,EAAE;IACZC,iBAAiB,GAAG,KAAK;IACzB,WAAW,EAAEC,QAAQ;IACrB,iBAAiB,EAAEC,cAAc;IACjC,YAAY,EAAEC;EAChB,CAAC,GAAGhB,KAAK;EAET,MAAMiB,QAAQ,GAAGd,EAAE,IAAIe,SAAA,CAAS,eAAe,CAAC;EAChD,MAAMC,UAAU,GAAGd,QAAQ,GAAG,UAAU,GAAG,EAAE;EAC7C,MAAMe,YAAY,GAAGzB,OAAO,CAAC,MAAM0B,CAAC,IAAIf,QAAQ,CAACe,CAAC,CAACC,MAAM,CAACC,OAAO,CAAC,EAAE,CAACjB,QAAQ,CAAC,CAAC;EAE/E,MAAMkB,SAAS,GAAGv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IAAI;EACrB3C,QAAQ,EAAET,SAAS,CAACoD,IAAI;EACxB1C,QAAQ,EAAEV,SAAS,CAACqD,IAAI;EACxBzC,WAAW,EAAEZ,SAAS,CAACmD,MAAM;EAC7B,iBAAiB,EAAEnD,SAAS,CAACmD,MAAM;EACnC,YAAY,EAAEnD,SAAS,CAACmD,MAAM;EAC9BtC,QAAQ,EAAEb,SAAS,CAACoD,IAAI;EACxBrC,aAAa,EAAEf,SAAS,CAACsD,KAAK,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;EACjDxC,KAAK,EAAEd,SAAS,CAACsD,KAAK,CAAC,CAAC,SAAS,EAAE,cAAc,EAAE,MAAM,CAAC,CAAC;EAC3DtC,OAAO,EAAEhB,SAAS,CAACmD,MAAM;EACzB,WAAW,EAAEnD,SAAS,CAACmD,MAAM;EAC7BlC,iBAAiB,EAAEjB,SAAS,CAACoD;AAC/B,CAAC;AACD,eAAejD,WAAW","ignoreList":[]}
|
|
@@ -10,16 +10,16 @@
|
|
|
10
10
|
@value cm_primary_blue from colors;
|
|
11
11
|
@value light_blue from colors;
|
|
12
12
|
|
|
13
|
-
.
|
|
13
|
+
.defaultStyle {
|
|
14
14
|
display: flex;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.modified {
|
|
18
|
-
composes:
|
|
18
|
+
composes: defaultStyle;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.coorpmanager {
|
|
22
|
-
composes:
|
|
22
|
+
composes: defaultStyle;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.coorpmanagerModified {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
composes: coorpmanager;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
.
|
|
33
|
+
.defaultStyle label {
|
|
34
34
|
height: 24px;
|
|
35
35
|
position: relative;
|
|
36
36
|
flex-grow: 0;
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
transition: all 0.3s ease;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
.
|
|
45
|
+
.defaultStyle label::after {
|
|
46
46
|
position: absolute;
|
|
47
47
|
left: 2px;
|
|
48
48
|
top: 2px;
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
background: positive;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
.
|
|
85
|
+
.defaultStyle input:checked ~ label::after {
|
|
86
86
|
left: 30px;
|
|
87
87
|
}
|
|
88
88
|
|
|
@@ -12,7 +12,7 @@ const themeStyle = {
|
|
|
12
12
|
setup: style.setup,
|
|
13
13
|
coorpmanager: style.coorpmanager,
|
|
14
14
|
cockpit: style.cockpit,
|
|
15
|
-
default: style.
|
|
15
|
+
default: style.defaultStyle
|
|
16
16
|
};
|
|
17
17
|
const InputText = props => {
|
|
18
18
|
const {
|
|
@@ -36,7 +36,7 @@ const InputText = props => {
|
|
|
36
36
|
const isCMTheme = theme === 'coorpmanager';
|
|
37
37
|
const handleChange = useMemo(() => e => onChange(e.target.value), [onChange]);
|
|
38
38
|
const mainClass = themeStyle[theme];
|
|
39
|
-
const className = getClassState(style.
|
|
39
|
+
const className = getClassState(style.defaultStyle, style.modified, style.error, modified, error);
|
|
40
40
|
const descriptionView = description && theme !== 'coorpmanager' ? /*#__PURE__*/React.createElement("div", {
|
|
41
41
|
className: style.description
|
|
42
42
|
}, description) : null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","useMemo","PropTypes","NovaSolidStatusCheckCircle2","CheckIcon","NovaSolidStatusClose","ErrorIcon","NovaCompositionCoorpacademyInformationIcon","InfoIcon","classnames","getClassState","style","themeStyle","setup","coorpmanager","cockpit","default","InputText","props","autoFocus","placeholder","value","type","hint","defaultValue","onChange","_noop","error","valid","theme","description","disabled","modified","title","propsTitle","dataName","ariaLabel","isCMTheme","handleChange","e","target","mainClass","className","descriptionView","createElement","toolTipView","infoIconWrapper","infoIcon","descriptionLabel","hintView","dangerouslySetInnerHTML","__html","errorIconView","leftIcon","validIconView","_isNil","isNoTitle","_isEmpty","noValue","name","input","autoComplete","onInput","propTypes","process","env","NODE_ENV","bool","string","oneOf","_keys","func"],"sources":["../../../src/atom/input-text/index.js"],"sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {noop, isNil, keys, isEmpty} from 'lodash/fp';\nimport {\n NovaSolidStatusCheckCircle2 as CheckIcon,\n NovaSolidStatusClose as ErrorIcon,\n NovaCompositionCoorpacademyInformationIcon as InfoIcon\n} from '@coorpacademy/nova-icons';\nimport classnames from 'classnames';\nimport getClassState from '../../util/get-class-state';\nimport style from './style.css';\n\nconst themeStyle = {\n setup: style.setup,\n coorpmanager: style.coorpmanager,\n cockpit: style.cockpit,\n default: style.
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","useMemo","PropTypes","NovaSolidStatusCheckCircle2","CheckIcon","NovaSolidStatusClose","ErrorIcon","NovaCompositionCoorpacademyInformationIcon","InfoIcon","classnames","getClassState","style","themeStyle","setup","coorpmanager","cockpit","default","defaultStyle","InputText","props","autoFocus","placeholder","value","type","hint","defaultValue","onChange","_noop","error","valid","theme","description","disabled","modified","title","propsTitle","dataName","ariaLabel","isCMTheme","handleChange","e","target","mainClass","className","descriptionView","createElement","toolTipView","infoIconWrapper","infoIcon","descriptionLabel","hintView","dangerouslySetInnerHTML","__html","errorIconView","leftIcon","validIconView","_isNil","isNoTitle","_isEmpty","noValue","name","input","autoComplete","onInput","propTypes","process","env","NODE_ENV","bool","string","oneOf","_keys","func"],"sources":["../../../src/atom/input-text/index.js"],"sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {noop, isNil, keys, isEmpty} from 'lodash/fp';\nimport {\n NovaSolidStatusCheckCircle2 as CheckIcon,\n NovaSolidStatusClose as ErrorIcon,\n NovaCompositionCoorpacademyInformationIcon as InfoIcon\n} from '@coorpacademy/nova-icons';\nimport classnames from 'classnames';\nimport getClassState from '../../util/get-class-state';\nimport style from './style.css';\n\nconst themeStyle = {\n setup: style.setup,\n coorpmanager: style.coorpmanager,\n cockpit: style.cockpit,\n default: style.defaultStyle\n};\nconst InputText = props => {\n const {\n autoFocus = false,\n placeholder = '',\n value,\n type = 'text',\n hint,\n defaultValue,\n onChange = noop,\n error,\n valid,\n theme = 'default',\n description,\n disabled,\n modified = false,\n title: propsTitle,\n 'data-name': dataName = 'input-text',\n 'aria-label': ariaLabel = 'Input Text'\n } = props;\n\n const isCMTheme = theme === 'coorpmanager';\n const handleChange = useMemo(() => e => onChange(e.target.value), [onChange]);\n const mainClass = themeStyle[theme];\n const className = getClassState(style.defaultStyle, style.modified, style.error, modified, error);\n const descriptionView =\n description && theme !== 'coorpmanager' ? (\n <div className={style.description}>{description}</div>\n ) : null;\n const toolTipView =\n description && theme === 'coorpmanager' ? (\n <div className={style.infoIconWrapper}>\n <InfoIcon className={style.infoIcon} />\n <div className={style.descriptionLabel}>{description}</div>\n </div>\n ) : null;\n const hintView =\n theme === 'coorpmanager' ? (\n <div\n className={style.hint}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: error || hint}}\n />\n ) : null;\n const errorIconView = isCMTheme && error ? <ErrorIcon className={style.leftIcon} /> : null;\n const validIconView = isCMTheme && valid ? <CheckIcon className={style.leftIcon} /> : null;\n\n return (\n <div\n className={classnames(\n mainClass,\n className,\n disabled && style.disabled,\n isNil(propsTitle) && style.isNoTitle\n )}\n >\n <label>\n <span className={classnames(style.title, isEmpty(value) && style.noValue)}>\n {propsTitle}\n {toolTipView}\n </span>\n\n <input\n autoFocus={autoFocus}\n type={type}\n name={propsTitle}\n className={style.input}\n placeholder={placeholder}\n defaultValue={defaultValue}\n autoComplete={'off'}\n value={value}\n onInput={handleChange}\n disabled={disabled}\n onChange={noop}\n data-name={dataName}\n aria-label={ariaLabel}\n />\n {errorIconView}\n {validIconView}\n {hintView}\n </label>\n {descriptionView}\n </div>\n );\n};\n\nInputText.propTypes = {\n autoFocus: PropTypes.bool,\n title: PropTypes.string,\n placeholder: PropTypes.string,\n defaultValue: PropTypes.string,\n theme: PropTypes.oneOf(keys(themeStyle)),\n disabled: PropTypes.bool,\n value: PropTypes.string,\n hint: PropTypes.string,\n error: PropTypes.string,\n onChange: PropTypes.func,\n description: PropTypes.string,\n modified: PropTypes.bool,\n type: PropTypes.string,\n valid: PropTypes.bool,\n 'aria-label': PropTypes.string,\n 'data-name': PropTypes.string\n};\nexport default InputText;\n"],"mappings":";;;;AAAA,OAAOA,KAAK,IAAGC,OAAO,QAAO,OAAO;AACpC,OAAOC,SAAS,MAAM,YAAY;AAElC,SACEC,2BAA2B,IAAIC,SAAS,EACxCC,oBAAoB,IAAIC,SAAS,EACjCC,0CAA0C,IAAIC,QAAQ,QACjD,0BAA0B;AACjC,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,aAAa,MAAM,4BAA4B;AACtD,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,UAAU,GAAG;EACjBC,KAAK,EAAEF,KAAK,CAACE,KAAK;EAClBC,YAAY,EAAEH,KAAK,CAACG,YAAY;EAChCC,OAAO,EAAEJ,KAAK,CAACI,OAAO;EACtBC,OAAO,EAAEL,KAAK,CAACM;AACjB,CAAC;AACD,MAAMC,SAAS,GAAGC,KAAK,IAAI;EACzB,MAAM;IACJC,SAAS,GAAG,KAAK;IACjBC,WAAW,GAAG,EAAE;IAChBC,KAAK;IACLC,IAAI,GAAG,MAAM;IACbC,IAAI;IACJC,YAAY;IACZC,QAAQ,GAAAC,KAAO;IACfC,KAAK;IACLC,KAAK;IACLC,KAAK,GAAG,SAAS;IACjBC,WAAW;IACXC,QAAQ;IACRC,QAAQ,GAAG,KAAK;IAChBC,KAAK,EAAEC,UAAU;IACjB,WAAW,EAAEC,QAAQ,GAAG,YAAY;IACpC,YAAY,EAAEC,SAAS,GAAG;EAC5B,CAAC,GAAGlB,KAAK;EAET,MAAMmB,SAAS,GAAGR,KAAK,KAAK,cAAc;EAC1C,MAAMS,YAAY,GAAGt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K,EAAE5B,SAAS,CAACoE,KAAK,CAACC,KAAA,CAAK3D,UAAU,CAAC,CAAC;EACxCoB,QAAQ,EAAE9B,SAAS,CAACkE,IAAI;EACxB9C,KAAK,EAAEpB,SAAS,CAACmE,MAAM;EACvB7C,IAAI,EAAEtB,SAAS,CAACmE,MAAM;EACtBzC,KAAK,EAAE1B,SAAS,CAACmE,MAAM;EACvB3C,QAAQ,EAAExB,SAAS,CAACsE,IAAI;EACxBzC,WAAW,EAAE7B,SAAS,CAACmE,MAAM;EAC7BpC,QAAQ,EAAE/B,SAAS,CAACkE,IAAI;EACxB7C,IAAI,EAAErB,SAAS,CAACmE,MAAM;EACtBxC,KAAK,EAAE3B,SAAS,CAACkE,IAAI;EACrB,YAAY,EAAElE,SAAS,CAACmE,MAAM;EAC9B,WAAW,EAAEnE,SAAS,CAACmE;AACzB,CAAC;AACD,eAAenD,SAAS","ignoreList":[]}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
@value cm_grey_500 from colors;
|
|
16
16
|
@value cm_grey_700 from colors;
|
|
17
17
|
|
|
18
|
-
.
|
|
18
|
+
.defaultStyle {
|
|
19
19
|
display: flex;
|
|
20
20
|
flex-wrap: nowrap;
|
|
21
21
|
align-items: center;
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.error {
|
|
26
|
-
composes:
|
|
26
|
+
composes: defaultStyle;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.modified {
|
|
30
|
-
composes:
|
|
30
|
+
composes: defaultStyle;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.setup {
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
align-self: flex-start;
|
|
121
121
|
padding-left: 13px;
|
|
122
122
|
}
|
|
123
|
-
.
|
|
123
|
+
.defaultStyle label {
|
|
124
124
|
display: flex;
|
|
125
125
|
align-items: center;
|
|
126
126
|
height: 50px;
|
|
@@ -11,7 +11,7 @@ const themeStyle = {
|
|
|
11
11
|
setup: style.setup,
|
|
12
12
|
coorpmanager: style.coorpmanager,
|
|
13
13
|
cockpit: style.cockpit,
|
|
14
|
-
default: style.
|
|
14
|
+
default: style.defaultStyle
|
|
15
15
|
};
|
|
16
16
|
const InputTextarea = props => {
|
|
17
17
|
const {
|
|
@@ -29,7 +29,7 @@ const InputTextarea = props => {
|
|
|
29
29
|
modified = false
|
|
30
30
|
} = props;
|
|
31
31
|
const mainClass = themeStyle[theme];
|
|
32
|
-
const className = getClassState(style.
|
|
32
|
+
const className = getClassState(style.defaultStyle, style.modified, style.error, modified, error);
|
|
33
33
|
const handleChange = useMemo(() => e => onChange(e.target.value), [onChange]);
|
|
34
34
|
const descriptionView = description && theme !== 'coorpmanager' ? /*#__PURE__*/React.createElement("div", {
|
|
35
35
|
className: style.description
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","useMemo","PropTypes","classnames","NovaSolidStatusCheckCircle2","CheckIcon","NovaSolidStatusClose","ErrorIcon","NovaCompositionCoorpacademyInformationIcon","InfoIcon","getClassState","style","themeStyle","setup","coorpmanager","cockpit","default","InputTextarea","props","title","propsTitle","name","placeholder","value","hint","theme","onChange","_noop","error","valid","description","disabled","modified","mainClass","className","handleChange","e","target","descriptionView","createElement","toolTipView","infoIconWrapper","infoIcon","descriptionLabel","hintView","dangerouslySetInnerHTML","__html","errorIconView","leftIcon","validIconView","_isEmpty","noValue","propTypes","process","env","NODE_ENV","string","oneOf","_keys","bool","func"],"sources":["../../../src/atom/input-textarea/index.js"],"sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {noop, keys, isEmpty} from 'lodash/fp';\nimport classnames from 'classnames';\nimport {\n NovaSolidStatusCheckCircle2 as CheckIcon,\n NovaSolidStatusClose as ErrorIcon,\n NovaCompositionCoorpacademyInformationIcon as InfoIcon\n} from '@coorpacademy/nova-icons';\nimport getClassState from '../../util/get-class-state';\nimport style from './style.css';\n\nconst themeStyle = {\n setup: style.setup,\n coorpmanager: style.coorpmanager,\n cockpit: style.cockpit,\n default: style.
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","useMemo","PropTypes","classnames","NovaSolidStatusCheckCircle2","CheckIcon","NovaSolidStatusClose","ErrorIcon","NovaCompositionCoorpacademyInformationIcon","InfoIcon","getClassState","style","themeStyle","setup","coorpmanager","cockpit","default","defaultStyle","InputTextarea","props","title","propsTitle","name","placeholder","value","hint","theme","onChange","_noop","error","valid","description","disabled","modified","mainClass","className","handleChange","e","target","descriptionView","createElement","toolTipView","infoIconWrapper","infoIcon","descriptionLabel","hintView","dangerouslySetInnerHTML","__html","errorIconView","leftIcon","validIconView","_isEmpty","noValue","propTypes","process","env","NODE_ENV","string","oneOf","_keys","bool","func"],"sources":["../../../src/atom/input-textarea/index.js"],"sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {noop, keys, isEmpty} from 'lodash/fp';\nimport classnames from 'classnames';\nimport {\n NovaSolidStatusCheckCircle2 as CheckIcon,\n NovaSolidStatusClose as ErrorIcon,\n NovaCompositionCoorpacademyInformationIcon as InfoIcon\n} from '@coorpacademy/nova-icons';\nimport getClassState from '../../util/get-class-state';\nimport style from './style.css';\n\nconst themeStyle = {\n setup: style.setup,\n coorpmanager: style.coorpmanager,\n cockpit: style.cockpit,\n default: style.defaultStyle\n};\nconst InputTextarea = props => {\n const {\n title: propsTitle,\n name,\n placeholder,\n value,\n hint,\n theme = 'default',\n onChange = noop,\n error,\n valid,\n description,\n disabled,\n modified = false\n } = props;\n\n const mainClass = themeStyle[theme];\n const className = getClassState(style.defaultStyle, style.modified, style.error, modified, error);\n const handleChange = useMemo(() => e => onChange(e.target.value), [onChange]);\n\n const descriptionView =\n description && theme !== 'coorpmanager' ? (\n <div className={style.description}>{description}</div>\n ) : null;\n const toolTipView =\n description && theme === 'coorpmanager' ? (\n <div className={style.infoIconWrapper}>\n <InfoIcon className={style.infoIcon} />\n <div className={style.descriptionLabel}>{description}</div>\n </div>\n ) : null;\n const hintView =\n theme === 'coorpmanager' ? (\n <div\n className={style.hint}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: error || hint}}\n />\n ) : null;\n const errorIconView = error ? <ErrorIcon className={style.leftIcon} /> : null;\n const validIconView = valid ? <CheckIcon className={style.leftIcon} /> : null;\n\n return (\n <div className={classnames(mainClass, className, disabled && style.disabled)}>\n <label>\n <span className={classnames(style.title, isEmpty(value) && style.noValue)}>\n {propsTitle}\n {toolTipView}\n </span>\n <textarea\n name={name}\n value={value}\n placeholder={placeholder}\n onChange={handleChange}\n disabled={disabled}\n data-testid={name}\n />\n {errorIconView}\n {validIconView}\n {hintView}\n </label>\n {descriptionView}\n </div>\n );\n};\n\nInputTextarea.propTypes = {\n placeholder: PropTypes.string,\n title: PropTypes.string,\n name: PropTypes.string,\n theme: PropTypes.oneOf(keys(themeStyle)),\n disabled: PropTypes.bool,\n value: PropTypes.string,\n hint: PropTypes.string,\n error: PropTypes.string,\n onChange: PropTypes.func,\n description: PropTypes.string,\n modified: PropTypes.bool,\n valid: PropTypes.bool\n};\nexport default InputTextarea;\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAGC,OAAO,QAAO,OAAO;AACpC,OAAOC,SAAS,MAAM,YAAY;AAElC,OAAOC,UAAU,MAAM,YAAY;AACnC,SACEC,2BAA2B,IAAIC,SAAS,EACxCC,oBAAoB,IAAIC,SAAS,EACjCC,0CAA0C,IAAIC,QAAQ,QACjD,0BAA0B;AACjC,OAAOC,aAAa,MAAM,4BAA4B;AACtD,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,UAAU,GAAG;EACjBC,KAAK,EAAEF,KAAK,CAACE,KAAK;EAClBC,YAAY,EAAEH,KAAK,CAACG,YAAY;EAChCC,OAAO,EAAEJ,KAAK,CAACI,OAAO;EACtBC,OAAO,EAAEL,KAAK,CAACM;AACjB,CAAC;AACD,MAAMC,aAAa,GAAGC,KAAK,IAAI;EAC7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,EAAE9B,SAAS,CAAC0D,IAAI;EACxBpC,KAAK,EAAEtB,SAAS,CAACuD,MAAM;EACvBhC,IAAI,EAAEvB,SAAS,CAACuD,MAAM;EACtB5B,KAAK,EAAE3B,SAAS,CAACuD,MAAM;EACvB9B,QAAQ,EAAEzB,SAAS,CAAC2D,IAAI;EACxB9B,WAAW,EAAE7B,SAAS,CAACuD,MAAM;EAC7BxB,QAAQ,EAAE/B,SAAS,CAAC0D,IAAI;EACxB9B,KAAK,EAAE5B,SAAS,CAAC0D;AACnB,CAAC;AACD,eAAe1C,aAAa","ignoreList":[]}
|
|
@@ -13,19 +13,19 @@
|
|
|
13
13
|
@value cm_grey_500 from colors;
|
|
14
14
|
@value cm_grey_700 from colors;
|
|
15
15
|
|
|
16
|
-
.
|
|
16
|
+
.defaultStyle {
|
|
17
17
|
display: flex;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.error {
|
|
21
|
-
composes:
|
|
21
|
+
composes: defaultStyle;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.modified {
|
|
25
|
-
composes:
|
|
25
|
+
composes: defaultStyle;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
.
|
|
28
|
+
.defaultStyle label {
|
|
29
29
|
display: flex;
|
|
30
30
|
align-items: center;
|
|
31
31
|
height: 130px;
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
width: 180px;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
.
|
|
45
|
+
.defaultStyle textarea {
|
|
46
46
|
font-family: "Gilroy";
|
|
47
47
|
text-transform: none;
|
|
48
48
|
padding: 10px 15px;
|
package/es/atom/label/index.js
CHANGED
|
@@ -7,7 +7,7 @@ const Label = ({
|
|
|
7
7
|
innerHtml = false
|
|
8
8
|
}) => {
|
|
9
9
|
return /*#__PURE__*/React.createElement("span", {
|
|
10
|
-
className: classnames(style.
|
|
10
|
+
className: classnames(style.defaultStyle, innerHtml ? style.innerHTML : null)
|
|
11
11
|
}, children);
|
|
12
12
|
};
|
|
13
13
|
Label.propTypes = process.env.NODE_ENV !== "production" ? {
|