@coorpacademy/components 11.38.2 → 11.38.3-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/atom/input-search/index.d.ts +2 -0
- package/es/atom/input-search/index.d.ts.map +1 -1
- package/es/atom/input-search/index.js +46 -13
- package/es/atom/input-search/index.js.map +1 -1
- package/es/atom/input-search/style.css +97 -0
- package/es/molecule/cm-popin/types.d.ts +2 -0
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/multi-filter-panel/index.d.ts +2 -0
- package/es/molecule/multi-filter-panel/index.d.ts.map +1 -1
- package/es/molecule/multi-filter-panel/prop-types.d.ts +2 -0
- package/es/molecule/multi-filter-panel/prop-types.d.ts.map +1 -1
- package/es/molecule/search-form/index.d.ts +5 -0
- package/es/molecule/search-form/index.d.ts.map +1 -1
- package/es/molecule/search-form/index.js +26 -16
- package/es/molecule/search-form/index.js.map +1 -1
- package/es/molecule/search-form/style.css +21 -6
- package/es/organism/brand-table/index.d.ts +2 -0
- package/es/organism/content-skill-modal/index.d.ts +4 -0
- package/es/organism/content-skill-modal/index.d.ts.map +1 -1
- package/es/organism/content-skill-modal/types.d.ts +4 -0
- package/es/organism/content-skill-modal/types.d.ts.map +1 -1
- package/es/organism/filter-checkbox-and-search/index.d.ts +2 -0
- package/es/organism/filter-checkbox-and-search/index.d.ts.map +1 -1
- package/es/organism/filter-checkbox-and-search/props-types.d.ts +2 -0
- package/es/organism/filter-checkbox-and-search/props-types.d.ts.map +1 -1
- package/es/organism/list-items/index.d.ts +2 -0
- package/es/organism/mooc-header/index.d.ts +14 -0
- package/es/organism/mooc-header/index.d.ts.map +1 -1
- package/es/organism/mooc-header/index.js +132 -13
- package/es/organism/mooc-header/index.js.map +1 -1
- package/es/organism/mooc-header/style.css +182 -8
- package/es/template/app-player/loading/index.d.ts +2 -0
- package/es/template/app-player/player/index.d.ts +4 -0
- package/es/template/app-player/player/slides/index.d.ts +2 -0
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +2 -0
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +2 -0
- package/es/template/app-review/index.d.ts +2 -0
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +2 -0
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +2 -0
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +12 -0
- package/es/template/common/dashboard/index.d.ts +4 -0
- package/es/template/common/search-page/index.d.ts +2 -0
- package/es/template/external-course/index.d.ts +2 -0
- package/es/util/check-is-mobile.d.ts +1 -1
- package/es/util/check-is-mobile.d.ts.map +1 -1
- package/es/util/check-is-mobile.js +4 -2
- package/es/util/check-is-mobile.js.map +1 -1
- package/lib/atom/input-search/index.d.ts +2 -0
- package/lib/atom/input-search/index.d.ts.map +1 -1
- package/lib/atom/input-search/index.js +46 -13
- package/lib/atom/input-search/index.js.map +1 -1
- package/lib/atom/input-search/style.css +97 -0
- package/lib/molecule/cm-popin/types.d.ts +2 -0
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/multi-filter-panel/index.d.ts +2 -0
- package/lib/molecule/multi-filter-panel/index.d.ts.map +1 -1
- package/lib/molecule/multi-filter-panel/prop-types.d.ts +2 -0
- package/lib/molecule/multi-filter-panel/prop-types.d.ts.map +1 -1
- package/lib/molecule/search-form/index.d.ts +5 -0
- package/lib/molecule/search-form/index.d.ts.map +1 -1
- package/lib/molecule/search-form/index.js +27 -17
- package/lib/molecule/search-form/index.js.map +1 -1
- package/lib/molecule/search-form/style.css +21 -6
- package/lib/organism/brand-table/index.d.ts +2 -0
- package/lib/organism/content-skill-modal/index.d.ts +4 -0
- package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
- package/lib/organism/content-skill-modal/types.d.ts +4 -0
- package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
- package/lib/organism/filter-checkbox-and-search/index.d.ts +2 -0
- package/lib/organism/filter-checkbox-and-search/index.d.ts.map +1 -1
- package/lib/organism/filter-checkbox-and-search/props-types.d.ts +2 -0
- package/lib/organism/filter-checkbox-and-search/props-types.d.ts.map +1 -1
- package/lib/organism/list-items/index.d.ts +2 -0
- package/lib/organism/mooc-header/index.d.ts +14 -0
- package/lib/organism/mooc-header/index.d.ts.map +1 -1
- package/lib/organism/mooc-header/index.js +132 -13
- package/lib/organism/mooc-header/index.js.map +1 -1
- package/lib/organism/mooc-header/style.css +182 -8
- package/lib/template/app-player/loading/index.d.ts +2 -0
- package/lib/template/app-player/player/index.d.ts +4 -0
- package/lib/template/app-player/player/slides/index.d.ts +2 -0
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +2 -0
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +2 -0
- package/lib/template/app-review/index.d.ts +2 -0
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +2 -0
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +2 -0
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +12 -0
- package/lib/template/common/dashboard/index.d.ts +4 -0
- package/lib/template/common/search-page/index.d.ts +2 -0
- package/lib/template/external-course/index.d.ts +2 -0
- package/lib/util/check-is-mobile.d.ts +1 -1
- package/lib/util/check-is-mobile.d.ts.map +1 -1
- package/lib/util/check-is-mobile.js +4 -2
- package/lib/util/check-is-mobile.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_classnames","_novaIcons","_provider","_style","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","Search","props","value","placeholder","onChange","_noop2","onClear","onFocus","onBlur","theme","dataTestId","handleChange","useMemo","target","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_classnames","_novaIcons","_provider","_style","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","handleMouseDown","preventDefault","stopPropagation","Search","props","value","placeholder","onChange","_noop2","onClear","onFocus","onBlur","onKeyDown","inputRef","theme","dataTestId","handleChange","useMemo","target","handleKeyDown","isCoorpManager","isMooc","isDefault","wrapperClass","classnames","style","wrapperSearch","coorpmanager","wrapperMooc","wrapperParentClass","wrapperMoocParent","searchClass","search","moocSearch","SearchIconComponent","CMSearchIcon","SearchIcon","showTitle","showClearIcon","createElement","className","htmlFor","title","searchIcon","onMouseDown","_isEmpty2","noValue","ref","type","name","id","onInput","NovaSolidStatusClose","onClick","clearIcon","contextTypes","skin","Provider","childContextTypes","propTypes","process","env","NODE_ENV","PropTypes","string","isRequired","func","oneOf","_default","exports"],"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 handleMouseDown = e => {\n e.preventDefault();\n e.stopPropagation();\n};\n\nconst Search = props => {\n const {\n value,\n placeholder,\n onChange = noop,\n onClear = noop,\n onFocus,\n onBlur,\n onKeyDown,\n inputRef,\n theme = 'default',\n dataTestId\n } = props;\n const handleChange = useMemo(() => e => onChange(e.target.value), [onChange]);\n\n const handleKeyDown = useMemo(\n () => e => {\n if (onKeyDown) {\n onKeyDown(e);\n }\n },\n [onKeyDown]\n );\n\n const isCoorpManager = theme === 'coorpmanager';\n const isMooc = theme === 'mooc';\n const isDefault = theme === 'default';\n\n const wrapperClass = classnames({\n [style.wrapperSearch]: isDefault,\n [style.coorpmanager]: isCoorpManager,\n [style.wrapperMooc]: isMooc\n });\n\n const wrapperParentClass = classnames({\n [style.wrapperMoocParent]: isMooc\n });\n\n const searchClass = classnames({\n [style.search]: true,\n [style.moocSearch]: isMooc\n });\n\n const SearchIconComponent = isCoorpManager ? CMSearchIcon : SearchIcon;\n const showTitle = isCoorpManager;\n const showClearIcon = value && isCoorpManager;\n\n return (\n <div className={wrapperParentClass}>\n <div className={wrapperClass}>\n <label htmlFor=\"search\" title={placeholder}>\n <SearchIconComponent\n className={style.searchIcon}\n data-name=\"search-icon\"\n onMouseDown={handleMouseDown}\n />\n {showTitle ? (\n <span className={classnames(style.title, isEmpty(value) && style.noValue)}>\n {placeholder}\n </span>\n ) : null}\n </label>\n <input\n ref={inputRef}\n data-name=\"search-input\"\n data-testid={dataTestId}\n className={searchClass}\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 onKeyDown={handleKeyDown}\n />\n {showClearIcon ? <CloseIcon onClick={onClear} className={style.clearIcon} /> : null}\n </div>\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 onKeyDown: PropTypes.func,\n inputRef: PropTypes.func,\n theme: PropTypes.oneOf(['default', 'coorpmanager', 'mooc']),\n dataTestId: PropTypes.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A,GAAAC,OAAA,CAAAnF,OAAA,GAEaiB,MAAM","ignoreList":[]}
|
|
@@ -8,11 +8,13 @@
|
|
|
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;
|
|
11
12
|
@value cm_grey_100 from colors;
|
|
12
13
|
@value cm_grey_150 from colors;
|
|
13
14
|
@value cm_grey_400 from colors;
|
|
14
15
|
@value cm_grey_500 from colors;
|
|
15
16
|
@value cm_grey_700 from colors;
|
|
17
|
+
@value brand from colors;
|
|
16
18
|
|
|
17
19
|
.wrapperSearch {
|
|
18
20
|
display: flex;
|
|
@@ -66,6 +68,7 @@
|
|
|
66
68
|
color: medium;
|
|
67
69
|
}
|
|
68
70
|
|
|
71
|
+
/* Theme: coorpmanager */
|
|
69
72
|
.coorpmanager {
|
|
70
73
|
position: relative;
|
|
71
74
|
}
|
|
@@ -177,6 +180,65 @@
|
|
|
177
180
|
line-height: 16px;
|
|
178
181
|
}
|
|
179
182
|
|
|
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
|
+
|
|
180
242
|
input:-webkit-autofill,
|
|
181
243
|
input:-webkit-autofill:hover,
|
|
182
244
|
input:-webkit-autofill:focus,
|
|
@@ -184,6 +246,21 @@ input:-webkit-autofill:active{
|
|
|
184
246
|
-webkit-background-clip: text;
|
|
185
247
|
}
|
|
186
248
|
|
|
249
|
+
/* Correction spécifique pour le thème mooc */
|
|
250
|
+
.moocSearch:-webkit-autofill,
|
|
251
|
+
.moocSearch:-webkit-autofill:hover,
|
|
252
|
+
.moocSearch:-webkit-autofill:focus,
|
|
253
|
+
.moocSearch:-webkit-autofill:active {
|
|
254
|
+
-webkit-box-shadow: 0 0 0 1000px cm_grey_100 inset !important;
|
|
255
|
+
-webkit-text-fill-color: cm_grey_700 !important;
|
|
256
|
+
background-color: cm_grey_100 !important;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.wrapperMoocParent:focus-within .moocSearch:-webkit-autofill {
|
|
260
|
+
-webkit-box-shadow: 0 0 0 1000px cm_grey_75 inset !important;
|
|
261
|
+
background-color: cm_grey_75 !important;
|
|
262
|
+
}
|
|
263
|
+
|
|
187
264
|
@media tablet {
|
|
188
265
|
.search,
|
|
189
266
|
input {
|
|
@@ -194,6 +271,16 @@ input:-webkit-autofill:active{
|
|
|
194
271
|
font-size: 12px;
|
|
195
272
|
color: medium;
|
|
196
273
|
}
|
|
274
|
+
|
|
275
|
+
.wrapperMoocParent {
|
|
276
|
+
max-width: 100%;
|
|
277
|
+
box-sizing: border-box;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.wrapperMooc {
|
|
281
|
+
max-width: 100%;
|
|
282
|
+
box-sizing: border-box;
|
|
283
|
+
}
|
|
197
284
|
}
|
|
198
285
|
|
|
199
286
|
@media mobile {
|
|
@@ -204,4 +291,14 @@ input:-webkit-autofill:active{
|
|
|
204
291
|
.search::placeholder {
|
|
205
292
|
font-size: 12px;
|
|
206
293
|
}
|
|
294
|
+
|
|
295
|
+
.wrapperMoocParent {
|
|
296
|
+
max-width: 100%;
|
|
297
|
+
box-sizing: border-box;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.wrapperMooc {
|
|
301
|
+
max-width: 100%;
|
|
302
|
+
box-sizing: border-box;
|
|
303
|
+
}
|
|
207
304
|
}
|
|
@@ -648,6 +648,8 @@ 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
|
+
inputRef: PropTypes.Requireable<(...args: any[]) => any>;
|
|
651
653
|
theme: PropTypes.Requireable<string>;
|
|
652
654
|
dataTestId: PropTypes.Requireable<string>;
|
|
653
655
|
}>>;
|
|
@@ -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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C,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,6 +39,8 @@ 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
|
+
inputRef: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
42
44
|
theme: import("prop-types").Requireable<string>;
|
|
43
45
|
dataTestId: import("prop-types").Requireable<string>;
|
|
44
46
|
}>>;
|
|
@@ -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,6 +37,8 @@ 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
|
+
inputRef: PropTypes.Requireable<(...args: any[]) => any>;
|
|
40
42
|
theme: PropTypes.Requireable<string>;
|
|
41
43
|
dataTestId: PropTypes.Requireable<string>;
|
|
42
44
|
}>>;
|
|
@@ -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,6 +8,8 @@ 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
|
+
inputRef: PropTypes.Requireable<(...args: any[]) => any>;
|
|
11
13
|
search: PropTypes.Requireable<PropTypes.InferProps<{
|
|
12
14
|
value: PropTypes.Requireable<string>;
|
|
13
15
|
placeholder: PropTypes.Validator<string>;
|
|
@@ -15,11 +17,14 @@ declare namespace SearchForm {
|
|
|
15
17
|
onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
16
18
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
17
19
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
|
+
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
21
|
+
inputRef: PropTypes.Requireable<(...args: any[]) => any>;
|
|
18
22
|
theme: PropTypes.Requireable<string>;
|
|
19
23
|
dataTestId: PropTypes.Requireable<string>;
|
|
20
24
|
}>>;
|
|
21
25
|
'search-reset-aria-label': PropTypes.Requireable<string>;
|
|
22
26
|
dataTestId: PropTypes.Requireable<string>;
|
|
27
|
+
theme: PropTypes.Requireable<string>;
|
|
23
28
|
};
|
|
24
29
|
}
|
|
25
30
|
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,mEAkEC"}
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
var _get2 = _interopRequireDefault(require("lodash/fp/get"));
|
|
6
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
7
6
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
8
|
-
var
|
|
7
|
+
var _reactFontawesome = require("@fortawesome/react-fontawesome");
|
|
8
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
9
9
|
var _inputSearch = _interopRequireDefault(require("../../atom/input-search"));
|
|
10
10
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
12
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
14
|
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); }
|
|
15
15
|
const SearchForm = (props, context) => {
|
|
16
16
|
const {
|
|
@@ -21,17 +21,23 @@ const SearchForm = (props, context) => {
|
|
|
21
21
|
search,
|
|
22
22
|
onSearchFocus,
|
|
23
23
|
onSearchBlur,
|
|
24
|
+
onSearchKeyDown,
|
|
25
|
+
inputRef,
|
|
24
26
|
'search-reset-aria-label': searchResetAriaLabel,
|
|
25
|
-
dataTestId
|
|
27
|
+
dataTestId,
|
|
28
|
+
theme
|
|
26
29
|
} = props;
|
|
27
30
|
const handleSubmit = (0, _react.useMemo)(() => evt => {
|
|
28
31
|
evt.preventDefault();
|
|
29
32
|
return onSubmit && onSubmit(evt);
|
|
30
33
|
}, [onSubmit]);
|
|
31
|
-
const {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
const handleReset = (0, _react.useMemo)(() => evt => {
|
|
35
|
+
evt.preventDefault();
|
|
36
|
+
evt.stopPropagation();
|
|
37
|
+
return onReset && onReset(evt);
|
|
38
|
+
}, [onReset]);
|
|
39
|
+
const isMooc = theme === 'mooc';
|
|
40
|
+
const clearClassName = search.value ? (0, _classnames.default)(_style.default.wrapperClear, isMooc && _style.default.wrapperClearMooc) : _style.default.wrapperNoClear;
|
|
35
41
|
return /*#__PURE__*/_react.default.createElement("form", {
|
|
36
42
|
className: _style.default.form,
|
|
37
43
|
action: action,
|
|
@@ -42,17 +48,18 @@ const SearchForm = (props, context) => {
|
|
|
42
48
|
}, /*#__PURE__*/_react.default.createElement(_inputSearch.default, _extends({}, search, {
|
|
43
49
|
onFocus: onSearchFocus,
|
|
44
50
|
onBlur: onSearchBlur,
|
|
45
|
-
|
|
51
|
+
onKeyDown: onSearchKeyDown,
|
|
52
|
+
inputRef: inputRef,
|
|
53
|
+
dataTestId: dataTestId,
|
|
54
|
+
theme: theme
|
|
46
55
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
47
56
|
"data-name": "search-form-reset",
|
|
48
57
|
"aria-label": searchResetAriaLabel,
|
|
49
|
-
|
|
50
|
-
className:
|
|
51
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
},
|
|
55
|
-
className: _style.default.clear
|
|
58
|
+
onMouseDown: handleReset,
|
|
59
|
+
className: clearClassName
|
|
60
|
+
}, /*#__PURE__*/_react.default.createElement(_reactFontawesome.FontAwesomeIcon, {
|
|
61
|
+
icon: "xmark",
|
|
62
|
+
className: _style.default.clearIcon
|
|
56
63
|
})));
|
|
57
64
|
};
|
|
58
65
|
SearchForm.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -62,9 +69,12 @@ SearchForm.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
62
69
|
onReset: _propTypes.default.func,
|
|
63
70
|
onSearchFocus: _propTypes.default.func,
|
|
64
71
|
onSearchBlur: _propTypes.default.func,
|
|
72
|
+
onSearchKeyDown: _propTypes.default.func,
|
|
73
|
+
inputRef: _propTypes.default.func,
|
|
65
74
|
search: _propTypes.default.shape(_inputSearch.default.propTypes),
|
|
66
75
|
'search-reset-aria-label': _propTypes.default.string,
|
|
67
|
-
dataTestId: _propTypes.default.string
|
|
76
|
+
dataTestId: _propTypes.default.string,
|
|
77
|
+
theme: _propTypes.default.string
|
|
68
78
|
} : {};
|
|
69
79
|
var _default = exports.default = SearchForm;
|
|
70
80
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_reactFontawesome","_classnames","_inputSearch","_style","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","SearchForm","props","context","action","method","onSubmit","onReset","search","onSearchFocus","onSearchBlur","onSearchKeyDown","inputRef","searchResetAriaLabel","dataTestId","theme","handleSubmit","useMemo","evt","preventDefault","handleReset","stopPropagation","isMooc","clearClassName","value","classnames","style","wrapperClear","wrapperClearMooc","wrapperNoClear","createElement","className","form","placeholder","onFocus","onBlur","onKeyDown","onMouseDown","FontAwesomeIcon","icon","clearIcon","propTypes","process","env","NODE_ENV","PropTypes","string","func","shape","Search","_default","exports"],"sources":["../../../src/molecule/search-form/index.js"],"sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport classnames from 'classnames';\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 onSearchKeyDown,\n inputRef,\n 'search-reset-aria-label': searchResetAriaLabel,\n dataTestId,\n theme\n } = props;\n const handleSubmit = useMemo(\n () => evt => {\n evt.preventDefault();\n return onSubmit && onSubmit(evt);\n },\n [onSubmit]\n );\n\n const handleReset = useMemo(\n () => evt => {\n evt.preventDefault();\n evt.stopPropagation();\n return onReset && onReset(evt);\n },\n [onReset]\n );\n\n const isMooc = theme === 'mooc';\n\n const clearClassName = search.value\n ? classnames(style.wrapperClear, isMooc && style.wrapperClearMooc)\n : style.wrapperNoClear;\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\n {...search}\n onFocus={onSearchFocus}\n onBlur={onSearchBlur}\n onKeyDown={onSearchKeyDown}\n inputRef={inputRef}\n dataTestId={dataTestId}\n theme={theme}\n />\n <div\n data-name=\"search-form-reset\"\n aria-label={searchResetAriaLabel}\n onMouseDown={handleReset}\n className={clearClassName}\n >\n <FontAwesomeIcon icon=\"xmark\" className={style.clearIcon} />\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 onSearchKeyDown: PropTypes.func,\n inputRef: PropTypes.func,\n search: PropTypes.shape(Search.propTypes),\n 'search-reset-aria-label': PropTypes.string,\n dataTestId: PropTypes.string,\n theme: PropTypes.string\n};\n\nexport default SearchForm;\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,YAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,MAAA,GAAAJ,sBAAA,CAAAF,OAAA;AAAgC,SAAAE,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAR,wBAAAQ,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAE,OAAA,EAAAF,CAAA,QAAAM,CAAA,GAAAH,wBAAA,C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C,eACFjD,MAAA,CAAAW,OAAA,CAAAqD,aAAA;IACE,aAAU,mBAAmB;IAC7B,cAAYjB,oBAAqB;IACjCwB,WAAW,EAAEjB,WAAY;IACzBW,SAAS,EAAER;EAAe,gBAE1BzD,MAAA,CAAAW,OAAA,CAAAqD,aAAA,CAAC3D,iBAAA,CAAAmE,eAAe;IAACC,IAAI,EAAC,OAAO;IAACR,SAAS,EAAEL,cAAK,CAACc;EAAU,CAAE,CACxD,CACD,CAAC;AAEX,CAAC;AAEDvC,UAAU,CAACwC,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG;EACrBxC,MAAM,EAAEyC,kBAAS,CAACC,MAAM;EACxBzC,MAAM,EAAEwC,kBAAS,CAACC,MAAM;EACxBxC,QAAQ,EAAEuC,kBAAS,CAACE,IAAI;EACxBxC,OAAO,EAAEsC,kBAAS,CAACE,IAAI;EACvBtC,aAAa,EAAEoC,kBAAS,CAACE,IAAI;EAC7BrC,YAAY,EAAEmC,kBAAS,CAACE,IAAI;EAC5BpC,eAAe,EAAEkC,kBAAS,CAACE,IAAI;EAC/BnC,QAAQ,EAAEiC,kBAAS,CAACE,IAAI;EACxBvC,MAAM,EAAEqC,kBAAS,CAACG,KAAK,CAACC,oBAAM,CAACR,SAAS,CAAC;EACzC,yBAAyB,EAAEI,kBAAS,CAACC,MAAM;EAC3ChC,UAAU,EAAE+B,kBAAS,CAACC,MAAM;EAC5B/B,KAAK,EAAE8B,kBAAS,CAACC;AACnB,CAAC;AAAC,IAAAI,QAAA,GAAAC,OAAA,CAAA1E,OAAA,GAEawB,UAAU","ignoreList":[]}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@value colors: "../../variables/colors.css";
|
|
2
|
+
@value cm_grey_500 from colors;
|
|
3
|
+
|
|
1
4
|
.form {
|
|
2
5
|
display: flex;
|
|
3
6
|
justify-content: flex-start;
|
|
@@ -8,6 +11,7 @@
|
|
|
8
11
|
margin: 0;
|
|
9
12
|
width: 100%;
|
|
10
13
|
height: 100%;
|
|
14
|
+
position: relative;
|
|
11
15
|
}
|
|
12
16
|
|
|
13
17
|
.wrapperClear {
|
|
@@ -23,11 +27,22 @@
|
|
|
23
27
|
display: none;
|
|
24
28
|
}
|
|
25
29
|
|
|
26
|
-
.
|
|
27
|
-
|
|
28
|
-
width:
|
|
29
|
-
height:
|
|
30
|
+
.clearIcon {
|
|
31
|
+
color: cm_grey_500;
|
|
32
|
+
width: 12px;
|
|
33
|
+
height: 14px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.wrapperClearMooc {
|
|
30
37
|
position: absolute;
|
|
31
|
-
|
|
32
|
-
|
|
38
|
+
right: 16px;
|
|
39
|
+
width: 14px;
|
|
40
|
+
height: 14px;
|
|
41
|
+
top: 50%;
|
|
42
|
+
transform: translateY(-50%);
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
z-index: 2002;
|
|
33
48
|
}
|
|
@@ -9,6 +9,8 @@ declare namespace BrandTable {
|
|
|
9
9
|
onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
10
10
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
11
11
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
12
|
+
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
13
|
+
inputRef: PropTypes.Requireable<(...args: any[]) => any>;
|
|
12
14
|
theme: PropTypes.Requireable<string>;
|
|
13
15
|
dataTestId: PropTypes.Requireable<string>;
|
|
14
16
|
}>>;
|
|
@@ -493,6 +493,8 @@ declare const ContentSkillModal: {
|
|
|
493
493
|
onClear: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
494
494
|
onFocus: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
495
495
|
onBlur: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
496
|
+
onKeyDown: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
497
|
+
inputRef: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
496
498
|
theme: import("prop-types").Requireable<string>;
|
|
497
499
|
dataTestId: import("prop-types").Requireable<string>;
|
|
498
500
|
}>>;
|
|
@@ -670,6 +672,8 @@ declare const ContentSkillModal: {
|
|
|
670
672
|
onClear: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
671
673
|
onFocus: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
672
674
|
onBlur: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
675
|
+
onKeyDown: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
676
|
+
inputRef: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
673
677
|
theme: import("prop-types").Requireable<string>;
|
|
674
678
|
dataTestId: import("prop-types").Requireable<string>;
|
|
675
679
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/content-skill-modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAOlD,OAAkB,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAE1D,QAAA,MAAM,iBAAiB;YAAW,sBAAsB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/content-skill-modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAOlD,OAAkB,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAE1D,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4DvD,CAAC;AAQF,eAAe,iBAAiB,CAAC"}
|
|
@@ -490,6 +490,8 @@ declare const ContentSkillModalPropTypes: {
|
|
|
490
490
|
onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
491
491
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
492
492
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
493
|
+
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
494
|
+
inputRef: PropTypes.Requireable<(...args: any[]) => any>;
|
|
493
495
|
theme: PropTypes.Requireable<string>;
|
|
494
496
|
dataTestId: PropTypes.Requireable<string>;
|
|
495
497
|
}>>;
|
|
@@ -667,6 +669,8 @@ declare const ContentSkillModalPropTypes: {
|
|
|
667
669
|
onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
668
670
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
669
671
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
672
|
+
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
673
|
+
inputRef: PropTypes.Requireable<(...args: any[]) => any>;
|
|
670
674
|
theme: PropTypes.Requireable<string>;
|
|
671
675
|
dataTestId: PropTypes.Requireable<string>;
|
|
672
676
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/content-skill-modal/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,SAAS,MAAM,eAAe,CAAC;AACtC,OAAkC,EAChC,qBAAqB,EACtB,MAAM,8CAA8C,CAAC;AAStD,QAAA,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/content-skill-modal/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,SAAS,MAAM,eAAe,CAAC;AACtC,OAAkC,EAChC,qBAAqB,EACtB,MAAM,8CAA8C,CAAC;AAStD,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI/B,CAAC;AAEF,eAAe,0BAA0B,CAAC;AAE1C,aAAK,UAAU,GAAG;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACnC,WAAW,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;IACpD,OAAO,EAAE,qBAAqB,CAAC;IAC/B,KAAK,EAAE,UAAU,CAAC;CACnB,CAAC"}
|
|
@@ -21,6 +21,8 @@ declare const FilterCheckboxAndSearch: {
|
|
|
21
21
|
onClear: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
22
22
|
onFocus: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
23
23
|
onBlur: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
24
|
+
onKeyDown: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
25
|
+
inputRef: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
24
26
|
theme: import("prop-types").Requireable<string>;
|
|
25
27
|
dataTestId: import("prop-types").Requireable<string>;
|
|
26
28
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-checkbox-and-search/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAKjE,OAAkB,EAAC,4BAA4B,EAAC,MAAM,eAAe,CAAC;AAiBtE,QAAA,MAAM,uBAAuB;YACpB,4BAA4B,WAC1B,gBAAgB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-checkbox-and-search/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAKjE,OAAkB,EAAC,4BAA4B,EAAC,MAAM,eAAe,CAAC;AAiBtE,QAAA,MAAM,uBAAuB;YACpB,4BAA4B,WAC1B,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiG1B,CAAC;AAQF,eAAe,uBAAuB,CAAC"}
|
|
@@ -17,6 +17,8 @@ declare const propTypes: {
|
|
|
17
17
|
onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
18
18
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
19
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
|
+
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
21
|
+
inputRef: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
22
|
theme: PropTypes.Requireable<string>;
|
|
21
23
|
dataTestId: PropTypes.Requireable<string>;
|
|
22
24
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props-types.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-checkbox-and-search/props-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"props-types.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-checkbox-and-search/props-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;CAcd,CAAC;AAEF,oBAAY,8BAA8B,GAAG;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,aAAK,UAAU,GAAG;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,GAAG,cAAc,CAAC;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,oBAAY,4BAA4B,GAAG;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,UAAU,CAAC;IAC1B,OAAO,EAAE,8BAA8B,EAAE,CAAC;CAC3C,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -499,6 +499,8 @@ declare namespace ListItems {
|
|
|
499
499
|
onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
500
500
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
501
501
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
502
|
+
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
503
|
+
inputRef: PropTypes.Requireable<(...args: any[]) => any>;
|
|
502
504
|
theme: PropTypes.Requireable<string>;
|
|
503
505
|
dataTestId: PropTypes.Requireable<string>;
|
|
504
506
|
}>>;
|
|
@@ -17,6 +17,8 @@ declare class MoocHeader extends React.Component<any, any, any> {
|
|
|
17
17
|
onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
18
18
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
19
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
|
+
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
21
|
+
inputRef: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
22
|
theme: PropTypes.Requireable<string>;
|
|
21
23
|
dataTestId: PropTypes.Requireable<string>;
|
|
22
24
|
}>>;
|
|
@@ -146,11 +148,14 @@ declare class MoocHeader extends React.Component<any, any, any> {
|
|
|
146
148
|
}>>;
|
|
147
149
|
};
|
|
148
150
|
constructor(props: any);
|
|
151
|
+
isMobile: boolean;
|
|
149
152
|
state: {
|
|
150
153
|
isSettingsOpen: boolean;
|
|
151
154
|
isMenuOpen: boolean;
|
|
152
155
|
isFocus: boolean;
|
|
153
156
|
isToolTipOpen: boolean;
|
|
157
|
+
isClosing: boolean;
|
|
158
|
+
isClosingStep2: boolean;
|
|
154
159
|
};
|
|
155
160
|
handleSettingsToggle(): void;
|
|
156
161
|
handleMenuToggle(): void;
|
|
@@ -166,7 +171,16 @@ declare class MoocHeader extends React.Component<any, any, any> {
|
|
|
166
171
|
handleOnMouseOver(): void;
|
|
167
172
|
handleOnMouseLeave(): void;
|
|
168
173
|
handleKeyPress(event: any): void;
|
|
174
|
+
handleSearchKeyDown(event: any): void;
|
|
175
|
+
searchBarRef: any;
|
|
176
|
+
searchInputRef: any;
|
|
177
|
+
setSearchBarRef(ref: any): void;
|
|
178
|
+
setSearchInputRef(ref: any): void;
|
|
179
|
+
handleClickOutside(event: any): void;
|
|
180
|
+
handleTransitionEnd(event: any): void;
|
|
181
|
+
componentDidMount(): void;
|
|
169
182
|
componentDidUpdate(prevProps: any, prevState: any, prevContext: any): void;
|
|
183
|
+
componentWillUnmount(): void;
|
|
170
184
|
menuSettings: any;
|
|
171
185
|
createMenuButtons: (items: any, primaryColor: any) => any;
|
|
172
186
|
render(): JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/mooc-header/index.js"],"names":[],"mappings":";AAuBA;IACE
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/mooc-header/index.js"],"names":[],"mappings":";AAuBA;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAsGE;IAEF;;;;;;;;;;;;;;;;;;;;;;;MAGE;IAEF,wBAiCC;IA/BC,kBAAuD;IACvD;;;;;;;MAOC;IA8FH,6BAIC;IAED,yBAGC;IAxBD,qCAQC;IAED,wBAGC;IAjBD,+BAEC;IA4BD,2BAiBC;IAED,0BAKC;IAED,sBAIC;IAED,qBAiBC;IAaD,yBAQC;IAED,0BAQC;IAED,0BAIC;IAED,2BAIC;IAED,iCAUC;IAED,sCAKC;IAvMC,kBAAwB;IACxB,oBAA0B;IA0B5B,gCAEC;IAED,kCAEC;IAED,qCAqBC;IAmFD,sCASC;IA5ID,0BAEC;IAED,2EASC;IAED,6BAEC;IAkCC,kBAAsB;IA8IxB,0DAaE;IAEF,6BA6iBC;CACF"}
|