@coorpacademy/components 11.38.3-alpha.18 → 11.38.3-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/atom/checkbox-with-title/style.css +1 -0
- package/es/atom/input-search/index.d.ts +0 -1
- package/es/atom/input-search/index.d.ts.map +1 -1
- package/es/atom/input-search/index.js +13 -43
- package/es/atom/input-search/index.js.map +1 -1
- package/es/atom/input-search/style.css +0 -82
- package/es/atom/tag/style.css +6 -3
- package/es/molecule/base-modal/index.d.ts.map +1 -1
- package/es/molecule/base-modal/index.js +3 -3
- package/es/molecule/base-modal/index.js.map +1 -1
- package/es/molecule/base-modal/style.css +1 -4
- package/es/molecule/cm-popin/types.d.ts +0 -1
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/multi-filter-panel/index.d.ts +0 -1
- package/es/molecule/multi-filter-panel/index.d.ts.map +1 -1
- package/es/molecule/multi-filter-panel/prop-types.d.ts +0 -1
- package/es/molecule/multi-filter-panel/prop-types.d.ts.map +1 -1
- package/es/molecule/search-form/index.d.ts +0 -3
- package/es/molecule/search-form/index.d.ts.map +1 -1
- package/es/molecule/search-form/index.js +16 -23
- package/es/molecule/search-form/index.js.map +1 -1
- package/es/molecule/search-form/style.css +6 -21
- package/es/organism/brand-table/index.d.ts +0 -1
- package/es/organism/content-skill-modal/index.d.ts +0 -2
- package/es/organism/content-skill-modal/index.d.ts.map +1 -1
- package/es/organism/content-skill-modal/index.js +5 -5
- package/es/organism/content-skill-modal/index.js.map +1 -1
- package/es/organism/content-skill-modal/types.d.ts +0 -2
- package/es/organism/content-skill-modal/types.d.ts.map +1 -1
- package/es/organism/filter-checkbox-and-search/index.d.ts +0 -1
- package/es/organism/filter-checkbox-and-search/index.d.ts.map +1 -1
- package/es/organism/filter-checkbox-and-search/index.js +3 -3
- package/es/organism/filter-checkbox-and-search/index.js.map +1 -1
- package/es/organism/filter-checkbox-and-search/props-types.d.ts +0 -1
- package/es/organism/filter-checkbox-and-search/props-types.d.ts.map +1 -1
- package/es/organism/list-item/style.css +1 -1
- package/es/organism/list-items/index.d.ts +0 -1
- package/es/organism/mooc-header/index.d.ts +0 -11
- package/es/organism/mooc-header/index.d.ts.map +1 -1
- package/es/organism/mooc-header/index.js +13 -124
- package/es/organism/mooc-header/index.js.map +1 -1
- package/es/organism/mooc-header/style.css +8 -184
- package/es/template/app-player/loading/index.d.ts +0 -1
- package/es/template/app-player/player/index.d.ts +0 -2
- package/es/template/app-player/player/slides/index.d.ts +0 -1
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +0 -1
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +0 -1
- package/es/template/app-review/index.d.ts +0 -1
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +0 -1
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +0 -1
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +0 -6
- package/es/template/back-office/brand-update/style.css +2 -1
- package/es/template/common/dashboard/index.d.ts +0 -2
- package/es/template/common/search-page/index.d.ts +0 -1
- package/es/template/external-course/index.d.ts +0 -1
- package/es/util/check-is-mobile.js +2 -3
- package/es/util/check-is-mobile.js.map +1 -1
- package/lib/atom/checkbox-with-title/style.css +1 -0
- package/lib/atom/input-search/index.d.ts +0 -1
- package/lib/atom/input-search/index.d.ts.map +1 -1
- package/lib/atom/input-search/index.js +13 -43
- package/lib/atom/input-search/index.js.map +1 -1
- package/lib/atom/input-search/style.css +0 -82
- package/lib/atom/tag/style.css +6 -3
- package/lib/molecule/base-modal/index.d.ts.map +1 -1
- package/lib/molecule/base-modal/index.js +3 -3
- package/lib/molecule/base-modal/index.js.map +1 -1
- package/lib/molecule/base-modal/style.css +1 -4
- package/lib/molecule/cm-popin/types.d.ts +0 -1
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/multi-filter-panel/index.d.ts +0 -1
- package/lib/molecule/multi-filter-panel/index.d.ts.map +1 -1
- package/lib/molecule/multi-filter-panel/prop-types.d.ts +0 -1
- package/lib/molecule/multi-filter-panel/prop-types.d.ts.map +1 -1
- package/lib/molecule/search-form/index.d.ts +0 -3
- package/lib/molecule/search-form/index.d.ts.map +1 -1
- package/lib/molecule/search-form/index.js +17 -24
- package/lib/molecule/search-form/index.js.map +1 -1
- package/lib/molecule/search-form/style.css +6 -21
- package/lib/organism/brand-table/index.d.ts +0 -1
- package/lib/organism/content-skill-modal/index.d.ts +0 -2
- package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
- package/lib/organism/content-skill-modal/index.js +5 -5
- package/lib/organism/content-skill-modal/index.js.map +1 -1
- package/lib/organism/content-skill-modal/types.d.ts +0 -2
- package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
- package/lib/organism/filter-checkbox-and-search/index.d.ts +0 -1
- package/lib/organism/filter-checkbox-and-search/index.d.ts.map +1 -1
- package/lib/organism/filter-checkbox-and-search/index.js +3 -3
- package/lib/organism/filter-checkbox-and-search/index.js.map +1 -1
- package/lib/organism/filter-checkbox-and-search/props-types.d.ts +0 -1
- package/lib/organism/filter-checkbox-and-search/props-types.d.ts.map +1 -1
- package/lib/organism/list-item/style.css +1 -1
- package/lib/organism/list-items/index.d.ts +0 -1
- package/lib/organism/mooc-header/index.d.ts +0 -11
- package/lib/organism/mooc-header/index.d.ts.map +1 -1
- package/lib/organism/mooc-header/index.js +13 -124
- package/lib/organism/mooc-header/index.js.map +1 -1
- package/lib/organism/mooc-header/style.css +8 -184
- package/lib/template/app-player/loading/index.d.ts +0 -1
- package/lib/template/app-player/player/index.d.ts +0 -2
- package/lib/template/app-player/player/slides/index.d.ts +0 -1
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +0 -1
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +0 -1
- package/lib/template/app-review/index.d.ts +0 -1
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +0 -1
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +0 -1
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +0 -6
- package/lib/template/back-office/brand-update/style.css +2 -1
- package/lib/template/common/dashboard/index.d.ts +0 -2
- package/lib/template/common/search-page/index.d.ts +0 -1
- package/lib/template/external-course/index.d.ts +0 -1
- package/lib/util/check-is-mobile.js +2 -3
- package/lib/util/check-is-mobile.js.map +1 -1
- package/package.json +2 -2
|
@@ -31,7 +31,6 @@ declare namespace Search {
|
|
|
31
31
|
const onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
32
32
|
const onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
33
33
|
const onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
34
|
-
const onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
35
34
|
const theme: PropTypes.Requireable<string>;
|
|
36
35
|
const dataTestId: PropTypes.Requireable<string>;
|
|
37
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/input-search/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/input-search/index.js"],"names":[],"mappings":";AAYA,iDAkDC"}
|
|
@@ -6,10 +6,6 @@ import classnames from 'classnames';
|
|
|
6
6
|
import { NovaCompositionCoorpacademySearchThin as CMSearchIcon, NovaCompositionCoorpacademySearch as SearchIcon, NovaSolidStatusClose as CloseIcon } from '@coorpacademy/nova-icons';
|
|
7
7
|
import Provider from '../provider';
|
|
8
8
|
import style from './style.css';
|
|
9
|
-
const handleMouseDown = e => {
|
|
10
|
-
e.preventDefault();
|
|
11
|
-
e.stopPropagation();
|
|
12
|
-
};
|
|
13
9
|
const Search = props => {
|
|
14
10
|
const {
|
|
15
11
|
value,
|
|
@@ -18,51 +14,27 @@ const Search = props => {
|
|
|
18
14
|
onClear = _noop,
|
|
19
15
|
onFocus,
|
|
20
16
|
onBlur,
|
|
21
|
-
onKeyDown,
|
|
22
17
|
theme = 'default',
|
|
23
18
|
dataTestId
|
|
24
19
|
} = props;
|
|
25
20
|
const handleChange = useMemo(() => e => onChange(e.target.value), [onChange]);
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
onKeyDown(e);
|
|
29
|
-
}
|
|
30
|
-
}, [onKeyDown]);
|
|
31
|
-
const isCoorpManager = theme === 'coorpmanager';
|
|
32
|
-
const isMooc = theme === 'mooc';
|
|
33
|
-
const isDefault = theme === 'default';
|
|
34
|
-
const wrapperClass = classnames({
|
|
35
|
-
[style.wrapperSearch]: isDefault,
|
|
36
|
-
[style.coorpmanager]: isCoorpManager,
|
|
37
|
-
[style.wrapperMooc]: isMooc
|
|
38
|
-
});
|
|
39
|
-
const wrapperParentClass = classnames({
|
|
40
|
-
[style.wrapperMoocParent]: isMooc
|
|
41
|
-
});
|
|
42
|
-
const searchClass = classnames({
|
|
43
|
-
[style.search]: true,
|
|
44
|
-
[style.moocSearch]: isMooc
|
|
45
|
-
});
|
|
46
|
-
const SearchIconComponent = isCoorpManager ? CMSearchIcon : SearchIcon;
|
|
47
|
-
const showTitle = isCoorpManager;
|
|
48
|
-
const showClearIcon = value && isCoorpManager;
|
|
21
|
+
const cmStyle = classnames(style.coorpmanager);
|
|
22
|
+
const isDefaultTheme = theme === 'default';
|
|
49
23
|
return /*#__PURE__*/React.createElement("div", {
|
|
50
|
-
className:
|
|
51
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
52
|
-
className: wrapperClass
|
|
24
|
+
className: isDefaultTheme ? style.wrapperSearch : cmStyle
|
|
53
25
|
}, /*#__PURE__*/React.createElement("label", {
|
|
54
26
|
htmlFor: "search",
|
|
55
27
|
title: placeholder
|
|
56
|
-
}, /*#__PURE__*/React.createElement(
|
|
57
|
-
className: style.searchIcon
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}),
|
|
28
|
+
}, !isDefaultTheme ? /*#__PURE__*/React.createElement(CMSearchIcon, {
|
|
29
|
+
className: style.searchIcon
|
|
30
|
+
}) : /*#__PURE__*/React.createElement(SearchIcon, {
|
|
31
|
+
className: style.searchIcon
|
|
32
|
+
}), !isDefaultTheme ? /*#__PURE__*/React.createElement("span", {
|
|
61
33
|
className: classnames(style.title, _isEmpty(value) && style.noValue)
|
|
62
34
|
}, placeholder) : null), /*#__PURE__*/React.createElement("input", {
|
|
63
35
|
"data-name": "search-input",
|
|
64
36
|
"data-testid": dataTestId,
|
|
65
|
-
className:
|
|
37
|
+
className: style.search,
|
|
66
38
|
"aria-label": placeholder,
|
|
67
39
|
type: "text",
|
|
68
40
|
name: "search",
|
|
@@ -73,12 +45,11 @@ const Search = props => {
|
|
|
73
45
|
onInput: handleChange,
|
|
74
46
|
onFocus: onFocus,
|
|
75
47
|
onChange: _noop,
|
|
76
|
-
onBlur: onBlur
|
|
77
|
-
|
|
78
|
-
}), showClearIcon ? /*#__PURE__*/React.createElement(CloseIcon, {
|
|
48
|
+
onBlur: onBlur
|
|
49
|
+
}), value && !isDefaultTheme ? /*#__PURE__*/React.createElement(CloseIcon, {
|
|
79
50
|
onClick: onClear,
|
|
80
51
|
className: style.clearIcon
|
|
81
|
-
}) : null)
|
|
52
|
+
}) : null);
|
|
82
53
|
};
|
|
83
54
|
Search.contextTypes = {
|
|
84
55
|
skin: Provider.childContextTypes.skin
|
|
@@ -90,8 +61,7 @@ Search.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
90
61
|
onClear: PropTypes.func,
|
|
91
62
|
onFocus: PropTypes.func,
|
|
92
63
|
onBlur: PropTypes.func,
|
|
93
|
-
|
|
94
|
-
theme: PropTypes.oneOf(['default', 'coorpmanager', 'mooc']),
|
|
64
|
+
theme: PropTypes.oneOf(['default', 'coorpmanager']),
|
|
95
65
|
dataTestId: PropTypes.string
|
|
96
66
|
} : {};
|
|
97
67
|
export default Search;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","useMemo","PropTypes","classnames","NovaCompositionCoorpacademySearchThin","CMSearchIcon","NovaCompositionCoorpacademySearch","SearchIcon","NovaSolidStatusClose","CloseIcon","Provider","style","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","useMemo","PropTypes","classnames","NovaCompositionCoorpacademySearchThin","CMSearchIcon","NovaCompositionCoorpacademySearch","SearchIcon","NovaSolidStatusClose","CloseIcon","Provider","style","Search","props","value","placeholder","onChange","_noop","onClear","onFocus","onBlur","theme","dataTestId","handleChange","e","target","cmStyle","coorpmanager","isDefaultTheme","createElement","className","wrapperSearch","htmlFor","title","searchIcon","_isEmpty","noValue","search","type","name","id","onInput","onClick","clearIcon","contextTypes","skin","childContextTypes","propTypes","process","env","NODE_ENV","string","isRequired","func","oneOf"],"sources":["../../../src/atom/input-search/index.js"],"sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {\n NovaCompositionCoorpacademySearchThin as CMSearchIcon,\n NovaCompositionCoorpacademySearch as SearchIcon,\n NovaSolidStatusClose as CloseIcon\n} from '@coorpacademy/nova-icons';\nimport {noop, isEmpty} from 'lodash/fp';\nimport Provider from '../provider';\nimport style from './style.css';\n\nconst Search = props => {\n const {\n value,\n placeholder,\n onChange = noop,\n onClear = noop,\n onFocus,\n onBlur,\n theme = 'default',\n dataTestId\n } = props;\n const handleChange = useMemo(() => e => onChange(e.target.value), [onChange]);\n const cmStyle = classnames(style.coorpmanager);\n const isDefaultTheme = theme === 'default';\n\n return (\n <div className={isDefaultTheme ? style.wrapperSearch : cmStyle}>\n <label htmlFor=\"search\" title={placeholder}>\n {!isDefaultTheme ? (\n <CMSearchIcon className={style.searchIcon} />\n ) : (\n <SearchIcon className={style.searchIcon} />\n )}\n {!isDefaultTheme ? (\n <span className={classnames(style.title, isEmpty(value) && style.noValue)}>\n {placeholder}\n </span>\n ) : null}\n </label>\n <input\n data-name=\"search-input\"\n data-testid={dataTestId}\n className={style.search}\n aria-label={placeholder}\n type=\"text\"\n name=\"search\"\n id=\"search\"\n placeholder={placeholder}\n title={placeholder}\n value={value}\n onInput={handleChange}\n onFocus={onFocus}\n onChange={noop}\n onBlur={onBlur}\n />\n {value && !isDefaultTheme ? (\n <CloseIcon onClick={onClear} className={style.clearIcon} />\n ) : null}\n </div>\n );\n};\n\nSearch.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nSearch.propTypes = {\n value: PropTypes.string,\n placeholder: PropTypes.string.isRequired,\n onChange: PropTypes.func,\n onClear: PropTypes.func,\n onFocus: PropTypes.func,\n onBlur: PropTypes.func,\n theme: PropTypes.oneOf(['default', 'coorpmanager']),\n dataTestId: PropTypes.string\n};\n\nexport default Search;\n"],"mappings":";;AAAA,OAAOA,KAAK,IAAGC,OAAO,QAAO,OAAO;AACpC,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,UAAU,MAAM,YAAY;AACnC,SACEC,qCAAqC,IAAIC,YAAY,EACrDC,iCAAiC,IAAIC,UAAU,EAC/CC,oBAAoB,IAAIC,SAAS,QAC5B,0BAA0B;AAEjC,OAAOC,QAAQ,MAAM,aAAa;AAClC,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,MAAM,GAAGC,KAAK,IAAI;EACtB,MAAM;IACJC,KAAK;IACLC,WAAW;IACXC,QAAQ,GAAAC,KAAO;IACfC,OAAO,GAAAD,KAAO;IACdE,OAAO;IACPC,MAAM;IACNC,KAAK,GAAG,SAAS;IACjBC;EACF,CAAC,GAAGT,KAAK;EACT,MAAMU,YAAY,GAAGtB,OAAO,CAAC,MAAMuB,CAAC,IAAIR,QAAQ,CAACQ,CAA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,aAAA,CAACpB,SAAS;IAACiC,OAAO,EAAExB,OAAQ;IAACY,SAAS,EAAEnB,KAAK,CAACgC;EAAU,CAAE,CAAC,GACzD,IACD,CAAC;AAEV,CAAC;AAED/B,MAAM,CAACgC,YAAY,GAAG;EACpBC,IAAI,EAAEnC,QAAQ,CAACoC,iBAAiB,CAACD;AACnC,CAAC;AAEDjC,MAAM,CAACmC,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG;EACjBpC,KAAK,EAAEZ,SAAS,CAACiD,MAAM;EACvBpC,WAAW,EAAEb,SAAS,CAACiD,MAAM,CAACC,UAAU;EACxCpC,QAAQ,EAAEd,SAAS,CAACmD,IAAI;EACxBnC,OAAO,EAAEhB,SAAS,CAACmD,IAAI;EACvBlC,OAAO,EAAEjB,SAAS,CAACmD,IAAI;EACvBjC,MAAM,EAAElB,SAAS,CAACmD,IAAI;EACtBhC,KAAK,EAAEnB,SAAS,CAACoD,KAAK,CAAC,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC;EACnDhC,UAAU,EAAEpB,SAAS,CAACiD;AACxB,CAAC;AAED,eAAevC,MAAM","ignoreList":[]}
|
|
@@ -8,13 +8,11 @@
|
|
|
8
8
|
@value white from colors;
|
|
9
9
|
@value dark from colors;
|
|
10
10
|
@value black from colors;
|
|
11
|
-
@value cm_grey_75 from colors;
|
|
12
11
|
@value cm_grey_100 from colors;
|
|
13
12
|
@value cm_grey_150 from colors;
|
|
14
13
|
@value cm_grey_400 from colors;
|
|
15
14
|
@value cm_grey_500 from colors;
|
|
16
15
|
@value cm_grey_700 from colors;
|
|
17
|
-
@value brand from colors;
|
|
18
16
|
|
|
19
17
|
.wrapperSearch {
|
|
20
18
|
display: flex;
|
|
@@ -68,7 +66,6 @@
|
|
|
68
66
|
color: medium;
|
|
69
67
|
}
|
|
70
68
|
|
|
71
|
-
/* Theme: coorpmanager */
|
|
72
69
|
.coorpmanager {
|
|
73
70
|
position: relative;
|
|
74
71
|
}
|
|
@@ -180,65 +177,6 @@
|
|
|
180
177
|
line-height: 16px;
|
|
181
178
|
}
|
|
182
179
|
|
|
183
|
-
/* Theme: mooc */
|
|
184
|
-
.wrapperMooc {
|
|
185
|
-
display: flex;
|
|
186
|
-
flex-flow: nowrap;
|
|
187
|
-
flex-direction: row;
|
|
188
|
-
align-items: center;
|
|
189
|
-
overflow: hidden;
|
|
190
|
-
border-radius: 12px;
|
|
191
|
-
transition: box-shadow 0.3s ease-in-out;
|
|
192
|
-
background: cm_grey_100;
|
|
193
|
-
padding: 2px;
|
|
194
|
-
width: 100%;
|
|
195
|
-
flex: 1;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
.wrapperMoocParent {
|
|
199
|
-
width: 100%;
|
|
200
|
-
flex: 1;
|
|
201
|
-
border-radius: 12px;
|
|
202
|
-
transition: box-shadow 0.3s ease-in-out;
|
|
203
|
-
background: transparent;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
.moocSearch {
|
|
207
|
-
background-color: cm_grey_100;
|
|
208
|
-
border-radius: 12px;
|
|
209
|
-
height: 44px;
|
|
210
|
-
margin: 0;
|
|
211
|
-
font-family: Gilroy;
|
|
212
|
-
font-size: 14px;
|
|
213
|
-
font-weight: 500;
|
|
214
|
-
color: cm_grey_700;
|
|
215
|
-
padding: 0 0 0 45px;
|
|
216
|
-
padding-right: 48px;
|
|
217
|
-
outline: none;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
.moocSearch:focus-within {
|
|
221
|
-
background-color: cm_grey_75;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
.wrapperMoocParent:focus-within .wrapperMooc {
|
|
225
|
-
background: transparent;
|
|
226
|
-
box-shadow: 0 0 0 2px rgba(255,255,255,0), 0 0 0 2px brand;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.wrapperMooc:hover {
|
|
230
|
-
box-shadow: 0 0 0 2px brand;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
.wrapperMooc .clearIcon {
|
|
234
|
-
position: relative;
|
|
235
|
-
right: 26px;
|
|
236
|
-
color: cm_grey_400;
|
|
237
|
-
width: 14px;
|
|
238
|
-
height: 14px;
|
|
239
|
-
cursor: pointer;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
180
|
input:-webkit-autofill,
|
|
243
181
|
input:-webkit-autofill:hover,
|
|
244
182
|
input:-webkit-autofill:focus,
|
|
@@ -256,16 +194,6 @@ input:-webkit-autofill:active{
|
|
|
256
194
|
font-size: 12px;
|
|
257
195
|
color: medium;
|
|
258
196
|
}
|
|
259
|
-
|
|
260
|
-
.wrapperMoocParent {
|
|
261
|
-
max-width: 100%;
|
|
262
|
-
box-sizing: border-box;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
.wrapperMooc {
|
|
266
|
-
max-width: 100%;
|
|
267
|
-
box-sizing: border-box;
|
|
268
|
-
}
|
|
269
197
|
}
|
|
270
198
|
|
|
271
199
|
@media mobile {
|
|
@@ -276,14 +204,4 @@ input:-webkit-autofill:active{
|
|
|
276
204
|
.search::placeholder {
|
|
277
205
|
font-size: 12px;
|
|
278
206
|
}
|
|
279
|
-
|
|
280
|
-
.wrapperMoocParent {
|
|
281
|
-
max-width: 100%;
|
|
282
|
-
box-sizing: border-box;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
.wrapperMooc {
|
|
286
|
-
max-width: 100%;
|
|
287
|
-
box-sizing: border-box;
|
|
288
|
-
}
|
|
289
207
|
}
|
package/es/atom/tag/style.css
CHANGED
|
@@ -26,19 +26,22 @@
|
|
|
26
26
|
.small {
|
|
27
27
|
composes: tag;
|
|
28
28
|
font-size: 10px;
|
|
29
|
-
padding:
|
|
29
|
+
padding: 1px 6px;
|
|
30
|
+
line-height: 12px;
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
.medium {
|
|
33
34
|
composes: tag;
|
|
34
35
|
font-size: 12px;
|
|
35
|
-
padding:
|
|
36
|
+
padding: 1px 6px;
|
|
37
|
+
line-height: 16px;
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
.large {
|
|
39
41
|
composes: tag;
|
|
40
42
|
font-size: 14px;
|
|
41
|
-
padding:
|
|
43
|
+
padding: 2px 6px;
|
|
44
|
+
line-height: 20px;
|
|
42
45
|
}
|
|
43
46
|
|
|
44
47
|
.defaultStyle {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/base-modal/index.js"],"names":[],"mappings":";AAUA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/base-modal/index.js"],"names":[],"mappings":";AAUA,yEA8KC"}
|
|
@@ -137,7 +137,8 @@ const BaseModal = (props, context) => {
|
|
|
137
137
|
className: style.modalWrapper,
|
|
138
138
|
"data-testid": "modal"
|
|
139
139
|
}, /*#__PURE__*/React.createElement("div", {
|
|
140
|
-
className: style.modal
|
|
140
|
+
className: style.modal,
|
|
141
|
+
style: customStyle
|
|
141
142
|
}, /*#__PURE__*/React.createElement("header", {
|
|
142
143
|
className: style.header
|
|
143
144
|
}, headerIcon?.name ? /*#__PURE__*/React.createElement("div", {
|
|
@@ -171,8 +172,7 @@ const BaseModal = (props, context) => {
|
|
|
171
172
|
ref: bodyRef,
|
|
172
173
|
className: isScrollbarVisible ? style.body : style.bodyWithoutScrollbar,
|
|
173
174
|
onScroll: onScroll,
|
|
174
|
-
"data-testid": "modal-body"
|
|
175
|
-
style: customStyle
|
|
175
|
+
"data-testid": "modal-body"
|
|
176
176
|
}, children), /*#__PURE__*/React.createElement(Footer, null)));
|
|
177
177
|
};
|
|
178
178
|
BaseModal.contextTypes = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","useCallback","useEffect","useRef","useState","PropTypes","convert","Provider","Icon","ButtonLink","COLORS","style","BaseModal","props","context","title","description","headerIcon","children","isOpen","footer","onClose","onScroll","detectScrollbar","customStyle","skin","bodyRef","isScrollbarVisible","setIsScrollbarVisible","checkScrollbar","bodyElement","current","scrollHeight","clientHeight","debouncedCheckScrollbar","_debounce","mutationObserver","MutationObserver","observe","childList","subtree","resizeObserver","ResizeObserver","disconnect","cancel","Footer","_isEmpty","cancelButton","confirmButton","text","isError","label","cancelLabel","onCancel","disabled","cancelDisabled","confirmLabel","onConfirm","confirmDisabled","iconName","color","buttonConfirmColor","_get","createElement","className","footerCTAWrapper","button","type","onClick","_extends","backgroundColor","paddingLeft","hoverBackgroundColor","hoverColor","white","icon","position","faIcon","name","size","padding","footerDescription","footerDescriptionError","handleOnClose","e","stopPropagation","modalWrapper","modal","header","iconColor","faSize","wrapperSize","headerContent","headerTitle","headerDescription","headerCloseIcon","ref","body","bodyWithoutScrollbar","contextTypes","childContextTypes","propTypes","process","env","NODE_ENV","string","shape","node","bool","oneOfType","func","boolean","objectOf","number"],"sources":["../../../src/molecule/base-modal/index.js"],"sourcesContent":["import React, {useCallback, useEffect, useRef, useState} from 'react';\nimport PropTypes from 'prop-types';\nimport {isEmpty, get, debounce} from 'lodash/fp';\nimport {convert} from 'css-color-function';\nimport Provider from '../../atom/provider';\nimport Icon from '../../atom/icon';\nimport ButtonLink from '../../atom/button-link';\nimport {COLORS} from '../../variables/colors';\nimport style from './style.css';\n\nconst BaseModal = (props, context) => {\n const {\n title,\n description,\n headerIcon,\n children,\n isOpen,\n footer,\n onClose,\n onScroll,\n detectScrollbar = false,\n customStyle\n } = props;\n const {skin} = context;\n const bodyRef = useRef(null);\n const [isScrollbarVisible, setIsScrollbarVisible] = useState(!detectScrollbar);\n\n const checkScrollbar = () => {\n const bodyElement = bodyRef.current;\n if (bodyElement) {\n setIsScrollbarVisible(bodyElement.scrollHeight > bodyElement.clientHeight);\n }\n };\n\n useEffect(() => {\n if (!detectScrollbar) return;\n const bodyElement = bodyRef.current;\n\n if (!bodyElement) return;\n\n const debouncedCheckScrollbar = debounce(100, () => {\n checkScrollbar();\n });\n\n // Observer of the body content\n const mutationObserver = new MutationObserver(() => {\n debouncedCheckScrollbar();\n });\n\n mutationObserver.observe(bodyElement, {childList: true, subtree: true});\n\n // Observer of the body size\n const resizeObserver = new ResizeObserver(() => {\n debouncedCheckScrollbar();\n });\n\n if (bodyRef.current) {\n resizeObserver.observe(bodyRef.current);\n }\n\n checkScrollbar();\n\n return () => {\n mutationObserver.disconnect();\n resizeObserver.disconnect();\n debouncedCheckScrollbar.cancel();\n };\n }, [children, detectScrollbar]);\n\n const Footer = useCallback(() => {\n if (isEmpty(footer)) return null;\n if (typeof footer === 'function') return footer();\n\n const {cancelButton, confirmButton, text, isError} = footer;\n const {label: cancelLabel, onCancel, disabled: cancelDisabled} = cancelButton || {};\n const {\n label: confirmLabel,\n onConfirm,\n disabled: confirmDisabled,\n iconName,\n color\n } = confirmButton || {};\n const buttonConfirmColor = color || get('common.primary', skin);\n\n return (\n <div className={style.footer}>\n <div className={style.footerCTAWrapper}>\n {onCancel && cancelLabel ? (\n <ButtonLink\n {...{\n className: style.button,\n type: 'secondary',\n onClick: onCancel,\n label: cancelLabel,\n disabled: cancelDisabled,\n 'data-testid': `button-link-${cancelLabel}`\n }}\n />\n ) : null}\n {onConfirm && confirmLabel ? (\n <div>\n <ButtonLink\n {...{\n customStyle: {backgroundColor: buttonConfirmColor, paddingLeft: '16px'},\n hoverBackgroundColor: convert(\n `hsl(from ${buttonConfirmColor} h s calc(l*(1 - 0.08)))`\n ),\n hoverColor: COLORS.white,\n className: style.button,\n type: 'primary',\n onClick: onConfirm,\n label: confirmLabel,\n disabled: confirmDisabled,\n ...(iconName\n ? {\n icon: {\n position: 'left',\n faIcon: {\n name: iconName,\n color: COLORS.white,\n size: 14,\n customStyle: {padding: 0}\n }\n }\n }\n : {}),\n 'data-testid': `button-link-${confirmLabel}`\n }}\n />\n </div>\n ) : null}\n </div>\n {text ? (\n <div\n className={`${style.footerDescription} ${isError ? style.footerDescriptionError : ''}`}\n >\n {text}\n </div>\n ) : null}\n </div>\n );\n }, [footer, skin]);\n\n if (!isOpen || !title || !children) return null;\n\n function handleOnClose(e) {\n e?.stopPropagation();\n onClose();\n }\n\n return (\n <div className={style.modalWrapper} data-testid=\"modal\">\n <div className={style.modal}>\n <header className={style.header}>\n {headerIcon?.name ? (\n <div className={style.headerIcon}>\n <Icon\n iconName={headerIcon.name}\n iconColor={headerIcon.color}\n backgroundColor={headerIcon.backgroundColor}\n size={{faSize: 20, wrapperSize: 48}}\n />\n </div>\n ) : null}\n <div className={style.headerContent}>\n <div className={style.headerTitle}>{title}</div>\n {description ? <div className={style.headerDescription}>{description}</div> : null}\n </div>\n <div className={style.headerCloseIcon} onClick={handleOnClose} data-testid=\"close-icon\">\n <Icon iconName=\"close\" backgroundColor=\"#F4F4F5\" size={{faSize: 14, wrapperSize: 28}} />\n </div>\n </header>\n <div\n ref={bodyRef}\n className={isScrollbarVisible ? style.body : style.bodyWithoutScrollbar}\n onScroll={onScroll}\n data-testid=\"modal-body\"\n style={customStyle}\n >\n {children}\n </div>\n <Footer />\n </div>\n </div>\n );\n};\n\nBaseModal.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nBaseModal.propTypes = {\n title: PropTypes.string,\n headerIcon: PropTypes.shape({\n name: PropTypes.string,\n color: PropTypes.string,\n backgroundColor: PropTypes.string\n }),\n description: PropTypes.string,\n children: PropTypes.node,\n isOpen: PropTypes.bool,\n footer: PropTypes.oneOfType([\n PropTypes.func,\n PropTypes.shape({\n text: PropTypes.string,\n isError: PropTypes.boolean,\n cancelButton: PropTypes.shape({\n label: PropTypes.string,\n onCancel: PropTypes.func,\n disabled: PropTypes.bool\n }),\n confirmButton: PropTypes.shape({\n label: PropTypes.string,\n onConfirm: PropTypes.func,\n iconName: PropTypes.string,\n disabled: PropTypes.bool,\n color: PropTypes.string\n })\n })\n ]),\n onClose: PropTypes.func,\n onScroll: PropTypes.func,\n detectScrollbar: PropTypes.bool,\n customStyle: PropTypes.objectOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number]))\n};\n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,SAAS,CAAC,CAC1BxG,SAAS,CAACyG,IAAI,EACdzG,SAAS,CAACqG,KAAK,CAAC;IACdzD,IAAI,EAAE5C,SAAS,CAACoG,MAAM;IACtBvD,OAAO,EAAE7C,SAAS,CAAC0G,OAAO;IAC1BhE,YAAY,EAAE1C,SAAS,CAACqG,KAAK,CAAC;MAC5BvD,KAAK,EAAE9C,SAAS,CAACoG,MAAM;MACvBpD,QAAQ,EAAEhD,SAAS,CAACyG,IAAI;MACxBxD,QAAQ,EAAEjD,SAAS,CAACuG;IACtB,CAAC,CAAC;IACF5D,aAAa,EAAE3C,SAAS,CAACqG,KAAK,CAAC;MAC7BvD,KAAK,EAAE9C,SAAS,CAACoG,MAAM;MACvBhD,SAAS,EAAEpD,SAAS,CAACyG,IAAI;MACzBnD,QAAQ,EAAEtD,SAAS,CAACoG,MAAM;MAC1BnD,QAAQ,EAAEjD,SAAS,CAACuG,IAAI;MACxBhD,KAAK,EAAEvD,SAAS,CAACoG;IACnB,CAAC;EACH,CAAC,CAAC,CACH,CAAC;EACFpF,OAAO,EAAEhB,SAAS,CAACyG,IAAI;EACvBxF,QAAQ,EAAEjB,SAAS,CAACyG,IAAI;EACxBvF,eAAe,EAAElB,SAAS,CAACuG,IAAI;EAC/BpF,WAAW,EAAEnB,SAAS,CAAC2G,QAAQ,CAAC3G,SAAS,CAACwG,SAAS,CAAC,CAACxG,SAAS,CAACoG,MAAM,EAAEpG,SAAS,CAAC4G,MAAM,CAAC,CAAC;AAC3F,CAAC;AAED,eAAerG,SAAS","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","useCallback","useEffect","useRef","useState","PropTypes","convert","Provider","Icon","ButtonLink","COLORS","style","BaseModal","props","context","title","description","headerIcon","children","isOpen","footer","onClose","onScroll","detectScrollbar","customStyle","skin","bodyRef","isScrollbarVisible","setIsScrollbarVisible","checkScrollbar","bodyElement","current","scrollHeight","clientHeight","debouncedCheckScrollbar","_debounce","mutationObserver","MutationObserver","observe","childList","subtree","resizeObserver","ResizeObserver","disconnect","cancel","Footer","_isEmpty","cancelButton","confirmButton","text","isError","label","cancelLabel","onCancel","disabled","cancelDisabled","confirmLabel","onConfirm","confirmDisabled","iconName","color","buttonConfirmColor","_get","createElement","className","footerCTAWrapper","button","type","onClick","_extends","backgroundColor","paddingLeft","hoverBackgroundColor","hoverColor","white","icon","position","faIcon","name","size","padding","footerDescription","footerDescriptionError","handleOnClose","e","stopPropagation","modalWrapper","modal","header","iconColor","faSize","wrapperSize","headerContent","headerTitle","headerDescription","headerCloseIcon","ref","body","bodyWithoutScrollbar","contextTypes","childContextTypes","propTypes","process","env","NODE_ENV","string","shape","node","bool","oneOfType","func","boolean","objectOf","number"],"sources":["../../../src/molecule/base-modal/index.js"],"sourcesContent":["import React, {useCallback, useEffect, useRef, useState} from 'react';\nimport PropTypes from 'prop-types';\nimport {isEmpty, get, debounce} from 'lodash/fp';\nimport {convert} from 'css-color-function';\nimport Provider from '../../atom/provider';\nimport Icon from '../../atom/icon';\nimport ButtonLink from '../../atom/button-link';\nimport {COLORS} from '../../variables/colors';\nimport style from './style.css';\n\nconst BaseModal = (props, context) => {\n const {\n title,\n description,\n headerIcon,\n children,\n isOpen,\n footer,\n onClose,\n onScroll,\n detectScrollbar = false,\n customStyle\n } = props;\n const {skin} = context;\n const bodyRef = useRef(null);\n const [isScrollbarVisible, setIsScrollbarVisible] = useState(!detectScrollbar);\n\n const checkScrollbar = () => {\n const bodyElement = bodyRef.current;\n if (bodyElement) {\n setIsScrollbarVisible(bodyElement.scrollHeight > bodyElement.clientHeight);\n }\n };\n\n useEffect(() => {\n if (!detectScrollbar) return;\n const bodyElement = bodyRef.current;\n\n if (!bodyElement) return;\n\n const debouncedCheckScrollbar = debounce(100, () => {\n checkScrollbar();\n });\n\n // Observer of the body content\n const mutationObserver = new MutationObserver(() => {\n debouncedCheckScrollbar();\n });\n\n mutationObserver.observe(bodyElement, {childList: true, subtree: true});\n\n // Observer of the body size\n const resizeObserver = new ResizeObserver(() => {\n debouncedCheckScrollbar();\n });\n\n if (bodyRef.current) {\n resizeObserver.observe(bodyRef.current);\n }\n\n checkScrollbar();\n\n return () => {\n mutationObserver.disconnect();\n resizeObserver.disconnect();\n debouncedCheckScrollbar.cancel();\n };\n }, [children, detectScrollbar]);\n\n const Footer = useCallback(() => {\n if (isEmpty(footer)) return null;\n if (typeof footer === 'function') return footer();\n\n const {cancelButton, confirmButton, text, isError} = footer;\n const {label: cancelLabel, onCancel, disabled: cancelDisabled} = cancelButton || {};\n const {\n label: confirmLabel,\n onConfirm,\n disabled: confirmDisabled,\n iconName,\n color\n } = confirmButton || {};\n const buttonConfirmColor = color || get('common.primary', skin);\n\n return (\n <div className={style.footer}>\n <div className={style.footerCTAWrapper}>\n {onCancel && cancelLabel ? (\n <ButtonLink\n {...{\n className: style.button,\n type: 'secondary',\n onClick: onCancel,\n label: cancelLabel,\n disabled: cancelDisabled,\n 'data-testid': `button-link-${cancelLabel}`\n }}\n />\n ) : null}\n {onConfirm && confirmLabel ? (\n <div>\n <ButtonLink\n {...{\n customStyle: {backgroundColor: buttonConfirmColor, paddingLeft: '16px'},\n hoverBackgroundColor: convert(\n `hsl(from ${buttonConfirmColor} h s calc(l*(1 - 0.08)))`\n ),\n hoverColor: COLORS.white,\n className: style.button,\n type: 'primary',\n onClick: onConfirm,\n label: confirmLabel,\n disabled: confirmDisabled,\n ...(iconName\n ? {\n icon: {\n position: 'left',\n faIcon: {\n name: iconName,\n color: COLORS.white,\n size: 14,\n customStyle: {padding: 0}\n }\n }\n }\n : {}),\n 'data-testid': `button-link-${confirmLabel}`\n }}\n />\n </div>\n ) : null}\n </div>\n {text ? (\n <div\n className={`${style.footerDescription} ${isError ? style.footerDescriptionError : ''}`}\n >\n {text}\n </div>\n ) : null}\n </div>\n );\n }, [footer, skin]);\n\n if (!isOpen || !title || !children) return null;\n\n function handleOnClose(e) {\n e?.stopPropagation();\n onClose();\n }\n\n return (\n <div className={style.modalWrapper} data-testid=\"modal\">\n <div className={style.modal} style={customStyle}>\n <header className={style.header}>\n {headerIcon?.name ? (\n <div className={style.headerIcon}>\n <Icon\n iconName={headerIcon.name}\n iconColor={headerIcon.color}\n backgroundColor={headerIcon.backgroundColor}\n size={{faSize: 20, wrapperSize: 48}}\n />\n </div>\n ) : null}\n <div className={style.headerContent}>\n <div className={style.headerTitle}>{title}</div>\n {description ? <div className={style.headerDescription}>{description}</div> : null}\n </div>\n <div className={style.headerCloseIcon} onClick={handleOnClose} data-testid=\"close-icon\">\n <Icon iconName=\"close\" backgroundColor=\"#F4F4F5\" size={{faSize: 14, wrapperSize: 28}} />\n </div>\n </header>\n <div\n ref={bodyRef}\n className={isScrollbarVisible ? style.body : style.bodyWithoutScrollbar}\n onScroll={onScroll}\n data-testid=\"modal-body\"\n >\n {children}\n </div>\n <Footer />\n </div>\n </div>\n );\n};\n\nBaseModal.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nBaseModal.propTypes = {\n title: PropTypes.string,\n headerIcon: PropTypes.shape({\n name: PropTypes.string,\n color: PropTypes.string,\n backgroundColor: PropTypes.string\n }),\n description: PropTypes.string,\n children: PropTypes.node,\n isOpen: PropTypes.bool,\n footer: PropTypes.oneOfType([\n PropTypes.func,\n PropTypes.shape({\n text: PropTypes.string,\n isError: PropTypes.boolean,\n cancelButton: PropTypes.shape({\n label: PropTypes.string,\n onCancel: PropTypes.func,\n disabled: PropTypes.bool\n }),\n confirmButton: PropTypes.shape({\n label: PropTypes.string,\n onConfirm: PropTypes.func,\n iconName: PropTypes.string,\n disabled: PropTypes.bool,\n color: PropTypes.string\n })\n })\n ]),\n onClose: PropTypes.func,\n onScroll: PropTypes.func,\n detectScrollbar: PropTypes.bool,\n customStyle: PropTypes.objectOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number]))\n};\n\nexport default BaseModal;\n"],"mappings":";;;;AAAA,OAAOA,KAAK,IAAGC,WAAW,EAAEC,SAAS,EAAEC,MAAM,EAAEC,QAAQ,QAAO,OAAO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MAAM;IACtBvD,OAAO,EAAE7C,SAAS,CAAC0G,OAAO;IAC1BhE,YAAY,EAAE1C,SAAS,CAACqG,KAAK,CAAC;MAC5BvD,KAAK,EAAE9C,SAAS,CAACoG,MAAM;MACvBpD,QAAQ,EAAEhD,SAAS,CAACyG,IAAI;MACxBxD,QAAQ,EAAEjD,SAAS,CAACuG;IACtB,CAAC,CAAC;IACF5D,aAAa,EAAE3C,SAAS,CAACqG,KAAK,CAAC;MAC7BvD,KAAK,EAAE9C,SAAS,CAACoG,MAAM;MACvBhD,SAAS,EAAEpD,SAAS,CAACyG,IAAI;MACzBnD,QAAQ,EAAEtD,SAAS,CAACoG,MAAM;MAC1BnD,QAAQ,EAAEjD,SAAS,CAACuG,IAAI;MACxBhD,KAAK,EAAEvD,SAAS,CAACoG;IACnB,CAAC;EACH,CAAC,CAAC,CACH,CAAC;EACFpF,OAAO,EAAEhB,SAAS,CAACyG,IAAI;EACvBxF,QAAQ,EAAEjB,SAAS,CAACyG,IAAI;EACxBvF,eAAe,EAAElB,SAAS,CAACuG,IAAI;EAC/BpF,WAAW,EAAEnB,SAAS,CAAC2G,QAAQ,CAAC3G,SAAS,CAACwG,SAAS,CAAC,CAACxG,SAAS,CAACoG,MAAM,EAAEpG,SAAS,CAAC4G,MAAM,CAAC,CAAC;AAC3F,CAAC;AAED,eAAerG,SAAS","ignoreList":[]}
|
|
@@ -24,10 +24,6 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.modal {
|
|
27
|
-
max-width: 71vw;
|
|
28
|
-
max-height: 86vh;
|
|
29
|
-
min-width: 450px;
|
|
30
|
-
min-height: 165px;
|
|
31
27
|
overflow: hidden;
|
|
32
28
|
border-radius: 16px;
|
|
33
29
|
background-color: white;
|
|
@@ -77,6 +73,7 @@
|
|
|
77
73
|
min-height: 100px;
|
|
78
74
|
border-top: 1px solid cm_grey_150;
|
|
79
75
|
border-bottom: 1px solid cm_grey_150;
|
|
76
|
+
flex: 1;
|
|
80
77
|
}
|
|
81
78
|
|
|
82
79
|
.bodyWithoutScrollbar {
|
|
@@ -648,7 +648,6 @@ declare const propTypes: {
|
|
|
648
648
|
onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
649
649
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
650
650
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
651
|
-
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
652
651
|
theme: PropTypes.Requireable<string>;
|
|
653
652
|
dataTestId: PropTypes.Requireable<string>;
|
|
654
653
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/cm-popin/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAKnC,OAAO,IAAI,MAAM,iBAAiB,CAAC;AACnC,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAElD,OAAO,EAAC,SAAS,IAAI,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAE3D,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/cm-popin/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAKnC,OAAO,IAAI,MAAM,iBAAiB,CAAC;AACnC,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAElD,OAAO,EAAC,SAAS,IAAI,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAE3D,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;KAChB,CAAC;IACF,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,oBAAY,YAAY,GAAG;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;IAC1D,IAAI,EAAE,OAAO,GAAG,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;IAC5D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;QACzB,IAAI,EACA,SAAS,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,SAAS,CAAC,GAChD,SAAS,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,SAAS,CAAC,CAAC;KACtD,CAAC;IACF,IAAI,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC;CACpD,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -39,7 +39,6 @@ declare const MultiFilterPanel: {
|
|
|
39
39
|
onClear: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
40
40
|
onFocus: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
41
41
|
onBlur: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
42
|
-
onKeyDown: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
43
42
|
theme: import("prop-types").Requireable<string>;
|
|
44
43
|
dataTestId: import("prop-types").Requireable<string>;
|
|
45
44
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/multi-filter-panel/index.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAEjE,OAAkB,EAAC,qBAAqB,EAAqB,MAAM,cAAc,CAAC;AAqBlF,QAAA,MAAM,gBAAgB;YAAW,qBAAqB,WAAW,gBAAgB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/multi-filter-panel/index.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAEjE,OAAkB,EAAC,qBAAqB,EAAqB,MAAM,cAAc,CAAC;AAqBlF,QAAA,MAAM,gBAAgB;YAAW,qBAAqB,WAAW,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDhF,CAAC;AAQF,eAAe,gBAAgB,CAAC"}
|
|
@@ -37,7 +37,6 @@ declare const propTypes: {
|
|
|
37
37
|
onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
38
38
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
39
39
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
40
|
-
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
41
40
|
theme: PropTypes.Requireable<string>;
|
|
42
41
|
dataTestId: PropTypes.Requireable<string>;
|
|
43
42
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/molecule/multi-filter-panel/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAA4B,EAAC,eAAe,EAAC,MAAM,uCAAuC,CAAC;AAC3F,OAAyC,EACvC,4BAA4B,EAC7B,MAAM,uDAAuD,CAAC;AAE/D,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/molecule/multi-filter-panel/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAA4B,EAAC,eAAe,EAAC,MAAM,uCAAuC,CAAC;AAC3F,OAAyC,EACvC,4BAA4B,EAC7B,MAAM,uDAAuD,CAAC;AAE/D,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAed,CAAC;AAEF,oBAAY,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,eAAe,CAAC;CAC1B,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IACjC,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,EAAE,4BAA4B,CAAC;CACvC,CAAC;AAEF,oBAAY,kBAAkB,GAAG,gBAAgB,GAAG,oBAAoB,CAAC;AAEzE,oBAAY,qBAAqB,GAAG;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,OAAO,EAAE,kBAAkB,EAAE,CAAC;CAC/B,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -8,7 +8,6 @@ declare namespace SearchForm {
|
|
|
8
8
|
onReset: PropTypes.Requireable<(...args: any[]) => any>;
|
|
9
9
|
onSearchFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
10
10
|
onSearchBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
11
|
-
onSearchKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
12
11
|
search: PropTypes.Requireable<PropTypes.InferProps<{
|
|
13
12
|
value: PropTypes.Requireable<string>;
|
|
14
13
|
placeholder: PropTypes.Validator<string>;
|
|
@@ -16,13 +15,11 @@ declare namespace SearchForm {
|
|
|
16
15
|
onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
17
16
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
18
17
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
|
-
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
18
|
theme: PropTypes.Requireable<string>;
|
|
21
19
|
dataTestId: PropTypes.Requireable<string>;
|
|
22
20
|
}>>;
|
|
23
21
|
'search-reset-aria-label': PropTypes.Requireable<string>;
|
|
24
22
|
dataTestId: PropTypes.Requireable<string>;
|
|
25
|
-
theme: PropTypes.Requireable<string>;
|
|
26
23
|
};
|
|
27
24
|
}
|
|
28
25
|
import PropTypes from "prop-types";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/search-form/index.js"],"names":[],"mappings":";AAOA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/search-form/index.js"],"names":[],"mappings":";AAOA,mEA0CC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import _get from "lodash/fp/get";
|
|
1
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
3
|
import React, { useMemo } from 'react';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
4
|
-
import {
|
|
5
|
-
import classnames from 'classnames';
|
|
5
|
+
import { NovaCompositionNavigationMore as ClearIcon } from '@coorpacademy/nova-icons';
|
|
6
6
|
import Search from '../../atom/input-search';
|
|
7
7
|
import style from './style.css';
|
|
8
8
|
const SearchForm = (props, context) => {
|
|
@@ -14,22 +14,17 @@ const SearchForm = (props, context) => {
|
|
|
14
14
|
search,
|
|
15
15
|
onSearchFocus,
|
|
16
16
|
onSearchBlur,
|
|
17
|
-
onSearchKeyDown,
|
|
18
17
|
'search-reset-aria-label': searchResetAriaLabel,
|
|
19
|
-
dataTestId
|
|
20
|
-
theme
|
|
18
|
+
dataTestId
|
|
21
19
|
} = props;
|
|
22
20
|
const handleSubmit = useMemo(() => evt => {
|
|
23
21
|
evt.preventDefault();
|
|
24
22
|
return onSubmit && onSubmit(evt);
|
|
25
23
|
}, [onSubmit]);
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}, [onReset]);
|
|
31
|
-
const isMooc = theme === 'mooc';
|
|
32
|
-
const clearClassName = search.value ? classnames(style.wrapperClear, isMooc && style.wrapperClearMooc) : style.wrapperNoClear;
|
|
24
|
+
const {
|
|
25
|
+
skin
|
|
26
|
+
} = context;
|
|
27
|
+
const dark = _get('common.dark', skin);
|
|
33
28
|
return /*#__PURE__*/React.createElement("form", {
|
|
34
29
|
className: style.form,
|
|
35
30
|
action: action,
|
|
@@ -40,17 +35,17 @@ const SearchForm = (props, context) => {
|
|
|
40
35
|
}, /*#__PURE__*/React.createElement(Search, _extends({}, search, {
|
|
41
36
|
onFocus: onSearchFocus,
|
|
42
37
|
onBlur: onSearchBlur,
|
|
43
|
-
|
|
44
|
-
dataTestId: dataTestId,
|
|
45
|
-
theme: theme
|
|
38
|
+
dataTestId: dataTestId
|
|
46
39
|
})), /*#__PURE__*/React.createElement("div", {
|
|
47
40
|
"data-name": "search-form-reset",
|
|
48
41
|
"aria-label": searchResetAriaLabel,
|
|
49
|
-
|
|
50
|
-
className:
|
|
51
|
-
}, /*#__PURE__*/React.createElement(
|
|
52
|
-
|
|
53
|
-
|
|
42
|
+
onClick: onReset,
|
|
43
|
+
className: search.value ? style.wrapperClear : style.wrapperNoClear
|
|
44
|
+
}, /*#__PURE__*/React.createElement(ClearIcon, {
|
|
45
|
+
style: {
|
|
46
|
+
color: dark
|
|
47
|
+
},
|
|
48
|
+
className: style.clear
|
|
54
49
|
})));
|
|
55
50
|
};
|
|
56
51
|
SearchForm.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -60,11 +55,9 @@ SearchForm.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
60
55
|
onReset: PropTypes.func,
|
|
61
56
|
onSearchFocus: PropTypes.func,
|
|
62
57
|
onSearchBlur: PropTypes.func,
|
|
63
|
-
onSearchKeyDown: PropTypes.func,
|
|
64
58
|
search: PropTypes.shape(Search.propTypes),
|
|
65
59
|
'search-reset-aria-label': PropTypes.string,
|
|
66
|
-
dataTestId: PropTypes.string
|
|
67
|
-
theme: PropTypes.string
|
|
60
|
+
dataTestId: PropTypes.string
|
|
68
61
|
} : {};
|
|
69
62
|
export default SearchForm;
|
|
70
63
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","useMemo","PropTypes","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","useMemo","PropTypes","NovaCompositionNavigationMore","ClearIcon","Search","style","SearchForm","props","context","action","method","onSubmit","onReset","search","onSearchFocus","onSearchBlur","searchResetAriaLabel","dataTestId","handleSubmit","evt","preventDefault","skin","dark","_get","createElement","className","form","placeholder","_extends","onFocus","onBlur","onClick","value","wrapperClear","wrapperNoClear","color","clear","propTypes","process","env","NODE_ENV","string","func","shape"],"sources":["../../../src/molecule/search-form/index.js"],"sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {get} from 'lodash/fp';\nimport {NovaCompositionNavigationMore as ClearIcon} from '@coorpacademy/nova-icons';\nimport Search from '../../atom/input-search';\nimport style from './style.css';\n\nconst SearchForm = (props, context) => {\n const {\n action,\n method,\n onSubmit,\n onReset,\n search,\n onSearchFocus,\n onSearchBlur,\n 'search-reset-aria-label': searchResetAriaLabel,\n dataTestId\n } = props;\n const handleSubmit = useMemo(\n () => evt => {\n evt.preventDefault();\n return onSubmit && onSubmit(evt);\n },\n [onSubmit]\n );\n const {skin} = context;\n const dark = get('common.dark', skin);\n\n return (\n <form\n className={style.form}\n action={action}\n method={method}\n onSubmit={handleSubmit}\n data-name=\"searchForm\"\n aria-label={search.placeholder}\n >\n <Search {...search} onFocus={onSearchFocus} onBlur={onSearchBlur} dataTestId={dataTestId} />\n <div\n data-name=\"search-form-reset\"\n aria-label={searchResetAriaLabel}\n onClick={onReset}\n className={search.value ? style.wrapperClear : style.wrapperNoClear}\n >\n <ClearIcon style={{color: dark}} className={style.clear} />\n </div>\n </form>\n );\n};\n\nSearchForm.propTypes = {\n action: PropTypes.string,\n method: PropTypes.string,\n onSubmit: PropTypes.func,\n onReset: PropTypes.func,\n onSearchFocus: PropTypes.func,\n onSearchBlur: PropTypes.func,\n search: PropTypes.shape(Search.propTypes),\n 'search-reset-aria-label': PropTypes.string,\n dataTestId: PropTypes.string\n};\n\nexport default SearchForm;\n"],"mappings":";;AAAA,OAAOA,KAAK,IAAGC,OAAO,QAAO,OAAO;AACpC,OAAOC,SAAS,MAAM,YAAY;AAElC,SAAQC,6BAA6B,IAAIC,SAAS,QAAO,0BAA0B;AACnF,OAAOC,MAAM,MAAM,yBAAyB;AAC5C,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,UAAU,GAAGA,CAACC,KAAK,EAAEC,OAAO,KAAK;EACrC,MAAM;IACJC,MAAM;IACNC,MAAM;IACNC,QAAQ;IACRC,OAAO;IACPC,MAAM;IACNC,aAAa;IACbC,YAAY;IACZ,yBAAyB,EAAEC,oBAAoB;IAC/CC;EACF,CAAC,GAAGV,KAAK;EACT,MAAMW,YAAY,GAAGlB,OAAO,CAC1B,MAAMmB,GAAG,IAAI;IACXA,GAAG,CAACC,cAAc,CAAC,CAAC;IACpB,OAAOT,QAAQ,IAAIA,QAAQ,CAACQ,GAAG,CAAC;EAClC,CAAC,EACD,CAACR,QAAQ,CACX,CAAC;EACD,MAAM;IAACU;EAAI,CAAC,GAAGb,OAAO;EACtB,MAAMc,IAAI,GAAGC,IAAA,CAAI,aAAa,EAAEF,IAAI,CAAC;EAErC,oBACEtB,KAAA,CAAAyB,aAAA;IACEC,SAAS,EAAEpB,KAAK,CAACqB,IAAK;IACtBjB,MAAM,EAAEA,MAAO;IACfC,MAAM,EAAEA,MAAO;IACfC,QAAQ,EAAEO,YAAa;IACvB,aAAU,YAAY;IACtB,c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