@coorpacademy/components 11.14.19 → 11.14.20
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/molecule/course-section/style.css +4 -6
- package/es/molecule/draggable/style.css +9 -5
- package/es/molecule/draggable-list/index.d.ts +50 -2
- package/es/molecule/draggable-list/index.d.ts.map +1 -1
- package/es/molecule/draggable-list/index.js +7 -4
- package/es/molecule/draggable-list/index.js.map +1 -1
- package/es/organism/list-item/index.d.ts +1 -0
- package/es/organism/list-item/index.d.ts.map +1 -1
- package/es/organism/list-item/index.js +4 -3
- package/es/organism/list-item/index.js.map +1 -1
- package/es/organism/list-item/style.css +6 -4
- package/es/organism/list-items/index.d.ts +3 -32
- package/es/organism/list-items/index.d.ts.map +1 -1
- package/es/organism/list-items/index.js +15 -5
- package/es/organism/list-items/index.js.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +3 -32
- package/es/template/mobile-login/receive-email/index.native.d.ts +1 -1
- package/es/template/mobile-login/receive-email/index.native.d.ts.map +1 -1
- package/es/template/mobile-login/receive-email/index.native.js +6 -1
- package/es/template/mobile-login/receive-email/index.native.js.map +1 -1
- package/lib/molecule/course-section/style.css +4 -6
- package/lib/molecule/draggable/style.css +9 -5
- package/lib/molecule/draggable-list/index.d.ts +50 -2
- package/lib/molecule/draggable-list/index.d.ts.map +1 -1
- package/lib/molecule/draggable-list/index.js +8 -4
- package/lib/molecule/draggable-list/index.js.map +1 -1
- package/lib/organism/list-item/index.d.ts +1 -0
- package/lib/organism/list-item/index.d.ts.map +1 -1
- package/lib/organism/list-item/index.js +4 -3
- package/lib/organism/list-item/index.js.map +1 -1
- package/lib/organism/list-item/style.css +6 -4
- package/lib/organism/list-items/index.d.ts +3 -32
- package/lib/organism/list-items/index.d.ts.map +1 -1
- package/lib/organism/list-items/index.js +16 -5
- package/lib/organism/list-items/index.js.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +3 -32
- package/lib/template/mobile-login/receive-email/index.native.d.ts +1 -1
- package/lib/template/mobile-login/receive-email/index.native.d.ts.map +1 -1
- package/lib/template/mobile-login/receive-email/index.native.js +6 -1
- package/lib/template/mobile-login/receive-email/index.native.js.map +1 -1
- package/package.json +2 -2
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
font-family: Gilroy;
|
|
34
34
|
font-size: 16px;
|
|
35
35
|
font-weight: bold;
|
|
36
|
-
overflow:hidden;
|
|
37
|
-
white-space:nowrap;
|
|
38
|
-
display:inline-block;
|
|
39
|
-
text-overflow:ellipsis;
|
|
36
|
+
overflow: hidden;
|
|
37
|
+
white-space: nowrap;
|
|
38
|
+
display: inline-block;
|
|
39
|
+
text-overflow: ellipsis;
|
|
40
40
|
width: 100%;
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -59,5 +59,3 @@
|
|
|
59
59
|
min-height: 56px;
|
|
60
60
|
min-width: 56px;
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
|
|
@@ -13,15 +13,18 @@
|
|
|
13
13
|
background: transparent;
|
|
14
14
|
margin: 8px 0;
|
|
15
15
|
border-radius: 7px;
|
|
16
|
-
transform:translate(0,0);
|
|
16
|
+
transform: translate(0, 0);
|
|
17
17
|
z-index: 0;
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
|
|
20
|
+
.draggable:hover {
|
|
20
21
|
background: rgba(0, 0, 0, 0.3);
|
|
21
22
|
}
|
|
22
|
-
|
|
23
|
+
|
|
24
|
+
.draggable:active {
|
|
23
25
|
background: transparent;
|
|
24
26
|
}
|
|
27
|
+
|
|
25
28
|
.draggable:before {
|
|
26
29
|
content: '.';
|
|
27
30
|
position: absolute;
|
|
@@ -32,9 +35,10 @@
|
|
|
32
35
|
font-size: 25px;
|
|
33
36
|
color: medium;
|
|
34
37
|
pointer-events: none;
|
|
35
|
-
text-shadow: 0 0 medium,
|
|
36
|
-
|
|
38
|
+
text-shadow: 0 0 medium, 0 5px medium, 0 10px medium, 0 15px medium,
|
|
39
|
+
5px 0 medium, 5px 5px medium, 5px 10px medium, 5px 15px medium;
|
|
37
40
|
}
|
|
41
|
+
|
|
38
42
|
.dragging {
|
|
39
43
|
background: rgba(0, 0, 0, 0.1);
|
|
40
44
|
}
|
|
@@ -6,7 +6,7 @@ declare function DraggableList({ items, onDrop, itemType }: {
|
|
|
6
6
|
}): JSX.Element;
|
|
7
7
|
declare namespace DraggableList {
|
|
8
8
|
namespace propTypes {
|
|
9
|
-
const items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
9
|
+
const items: PropTypes.Requireable<(NonNullable<PropTypes.InferProps<{
|
|
10
10
|
title: PropTypes.Validator<string>;
|
|
11
11
|
onUp: PropTypes.Requireable<(...args: any[]) => any>;
|
|
12
12
|
onDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -43,7 +43,55 @@ declare namespace DraggableList {
|
|
|
43
43
|
}> | null | undefined)[]>;
|
|
44
44
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
45
45
|
}>>;
|
|
46
|
-
}> |
|
|
46
|
+
}> | PropTypes.InferProps<{
|
|
47
|
+
'aria-label': PropTypes.Requireable<PropTypes.InferProps<{
|
|
48
|
+
title: PropTypes.Requireable<string>;
|
|
49
|
+
author: PropTypes.Requireable<string>;
|
|
50
|
+
modules: PropTypes.Requireable<string>;
|
|
51
|
+
position: PropTypes.Requireable<string>;
|
|
52
|
+
}>>;
|
|
53
|
+
image: PropTypes.Requireable<string>;
|
|
54
|
+
badgeList: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
55
|
+
category: PropTypes.Requireable<string>;
|
|
56
|
+
label: PropTypes.Requireable<string>;
|
|
57
|
+
}> | null | undefined)[]>;
|
|
58
|
+
title: PropTypes.Requireable<string>;
|
|
59
|
+
author: PropTypes.Requireable<string>;
|
|
60
|
+
position: PropTypes.Requireable<number>;
|
|
61
|
+
id: PropTypes.Requireable<string>;
|
|
62
|
+
}> | PropTypes.InferProps<{
|
|
63
|
+
bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
64
|
+
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
65
|
+
menuAriaLabel: PropTypes.Requireable<string>;
|
|
66
|
+
buttons: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
67
|
+
'data-name': PropTypes.Requireable<string>;
|
|
68
|
+
label: PropTypes.Requireable<string>;
|
|
69
|
+
type: PropTypes.Requireable<string>;
|
|
70
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
71
|
+
}> | null | undefined)[]>;
|
|
72
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
73
|
+
}>>;
|
|
74
|
+
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
75
|
+
type: PropTypes.Requireable<string>;
|
|
76
|
+
label: PropTypes.Requireable<string>;
|
|
77
|
+
ariaLabel: PropTypes.Requireable<string>;
|
|
78
|
+
dataName: PropTypes.Requireable<string>;
|
|
79
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
80
|
+
position: PropTypes.Requireable<string>;
|
|
81
|
+
type: PropTypes.Requireable<string>;
|
|
82
|
+
}>>;
|
|
83
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
84
|
+
}>>;
|
|
85
|
+
tags: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
86
|
+
label: PropTypes.Requireable<string>;
|
|
87
|
+
type: PropTypes.Requireable<string>;
|
|
88
|
+
}> | null | undefined)[]>;
|
|
89
|
+
title: PropTypes.Validator<string>;
|
|
90
|
+
order: PropTypes.Requireable<number>;
|
|
91
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
92
|
+
contentType: PropTypes.Requireable<string>;
|
|
93
|
+
id: PropTypes.Requireable<string>;
|
|
94
|
+
}> | null | undefined> | null | undefined)[]>;
|
|
47
95
|
const onDrop: PropTypes.Requireable<(...args: any[]) => any>;
|
|
48
96
|
const itemType: PropTypes.Requireable<string>;
|
|
49
97
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/draggable-list/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/draggable-list/index.js"],"names":[],"mappings":";AAaA;;;;gBAmDC"}
|
|
@@ -5,9 +5,11 @@ import PropTypes from 'prop-types';
|
|
|
5
5
|
import Draggable from '../draggable';
|
|
6
6
|
import SetupSection from '../setup-section';
|
|
7
7
|
import CourseSection from '../course-section';
|
|
8
|
+
import ListItem from '../../organism/list-item';
|
|
8
9
|
const ITEMS = {
|
|
9
10
|
'setup-section': SetupSection,
|
|
10
|
-
'course-section': CourseSection
|
|
11
|
+
'course-section': CourseSection,
|
|
12
|
+
'list-item': ListItem
|
|
11
13
|
};
|
|
12
14
|
|
|
13
15
|
const DraggableList = ({
|
|
@@ -33,7 +35,7 @@ const DraggableList = ({
|
|
|
33
35
|
setDragFrom(null);
|
|
34
36
|
}, [onDrop, setDragTo, setDragFrom, dragFrom]);
|
|
35
37
|
const Item = ITEMS[itemType];
|
|
36
|
-
const itemsView = items.map(item => /*#__PURE__*/React.createElement(Draggable, {
|
|
38
|
+
const itemsView = items.map((item, index) => /*#__PURE__*/React.createElement(Draggable, {
|
|
37
39
|
key: item.id,
|
|
38
40
|
id: item.id,
|
|
39
41
|
dragging: dragTo === item.id,
|
|
@@ -42,13 +44,14 @@ const DraggableList = ({
|
|
|
42
44
|
onDragLeave: dragLeaveHandler,
|
|
43
45
|
onDrop: dropHandler
|
|
44
46
|
}, /*#__PURE__*/React.createElement(Item, _extends({}, item, {
|
|
45
|
-
key: item.id
|
|
47
|
+
key: item.id,
|
|
48
|
+
order: index
|
|
46
49
|
}))));
|
|
47
50
|
return /*#__PURE__*/React.createElement("div", null, itemsView);
|
|
48
51
|
};
|
|
49
52
|
|
|
50
53
|
DraggableList.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
51
|
-
items: PropTypes.arrayOf(PropTypes.shape(SetupSection.propTypes)),
|
|
54
|
+
items: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.shape(SetupSection.propTypes), PropTypes.shape(CourseSection.propTypes), PropTypes.shape(ListItem.propTypes)])),
|
|
52
55
|
onDrop: PropTypes.func,
|
|
53
56
|
itemType: PropTypes.string
|
|
54
57
|
} : {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","useState","useCallback","PropTypes","Draggable","SetupSection","CourseSection","ITEMS","DraggableList","items","onDrop","itemType","dragTo","setDragTo","dragFrom","setDragFrom","dragStartHandler","id","dragOverHandler","dragLeaveHandler","dropHandler","Item","itemsView","map","item","propTypes","arrayOf","shape","func","string"],"sources":["../../../src/molecule/draggable-list/index.js"],"sourcesContent":["import React, {useState, useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport Draggable from '../draggable';\nimport SetupSection from '../setup-section';\nimport CourseSection from '../course-section';\n\nconst ITEMS = {'setup-section': SetupSection
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","useState","useCallback","PropTypes","Draggable","SetupSection","CourseSection","ListItem","ITEMS","DraggableList","items","onDrop","itemType","dragTo","setDragTo","dragFrom","setDragFrom","dragStartHandler","id","dragOverHandler","dragLeaveHandler","dropHandler","Item","itemsView","map","item","index","propTypes","arrayOf","oneOfType","shape","func","string"],"sources":["../../../src/molecule/draggable-list/index.js"],"sourcesContent":["import React, {useState, useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport Draggable from '../draggable';\nimport SetupSection from '../setup-section';\nimport CourseSection from '../course-section';\nimport ListItem from '../../organism/list-item';\n\nconst ITEMS = {\n 'setup-section': SetupSection,\n 'course-section': CourseSection,\n 'list-item': ListItem\n};\n\nconst DraggableList = ({items, onDrop, itemType}) => {\n const [dragTo, setDragTo] = useState(null);\n const [dragFrom, setDragFrom] = useState(null);\n\n const dragStartHandler = useCallback(\n id => {\n setDragFrom(id);\n },\n [setDragFrom]\n );\n\n const dragOverHandler = useCallback(\n id => {\n if (dragTo === id) return;\n setDragTo(id);\n },\n [dragTo, setDragTo]\n );\n\n const dragLeaveHandler = useCallback(\n id => {\n setDragTo(null);\n },\n [setDragTo]\n );\n\n const dropHandler = useCallback(\n id => {\n if (onDrop && dragFrom) onDrop(dragFrom, id);\n\n setDragTo(null);\n setDragFrom(null);\n },\n [onDrop, setDragTo, setDragFrom, dragFrom]\n );\n\n const Item = ITEMS[itemType];\n const itemsView = items.map((item, index) => (\n <Draggable\n key={item.id}\n id={item.id}\n dragging={dragTo === item.id}\n onDragStart={dragStartHandler}\n onDragOver={dragOverHandler}\n onDragLeave={dragLeaveHandler}\n onDrop={dropHandler}\n >\n <Item {...item} key={item.id} order={index} />\n </Draggable>\n ));\n return <div>{itemsView}</div>;\n};\n\nDraggableList.propTypes = {\n items: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape(SetupSection.propTypes),\n PropTypes.shape(CourseSection.propTypes),\n PropTypes.shape(ListItem.propTypes)\n ])\n ),\n onDrop: PropTypes.func,\n itemType: PropTypes.string\n};\n\nexport default DraggableList;\n"],"mappings":";;AAAA,OAAOA,KAAP,IAAeC,QAAf,EAAyBC,WAAzB,QAA2C,OAA3C;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,SAAP,MAAsB,cAAtB;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,QAAP,MAAqB,0BAArB;AAEA,MAAMC,KAAK,GAAG;EACZ,iBAAiBH,YADL;EAEZ,kBAAkBC,aAFN;EAGZ,aAAaC;AAHD,CAAd;;AAMA,MAAME,aAAa,GAAG,CAAC;EAACC,KAAD;EAAQC,MAAR;EAAgBC;AAAhB,CAAD,KAA+B;EACnD,MAAM,CAACC,MAAD,EAASC,SAAT,IAAsBb,QAAQ,CAAC,IAAD,CAApC;EACA,MAAM,CAACc,QAAD,EAAWC,WAAX,IAA0Bf,QAAQ,CAAC,I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EAaA,oBAAO,iCAAMH,SAAN,CAAP;AACD,CAnDD;;AAqDAd,aAAa,CAACkB,SAAd,2CAA0B;EACxBjB,KAAK,EAAEP,SAAS,CAACyB,OAAV,CACLzB,SAAS,CAAC0B,SAAV,CAAoB,CAClB1B,SAAS,CAAC2B,KAAV,CAAgBzB,YAAY,CAACsB,SAA7B,CADkB,EAElBxB,SAAS,CAAC2B,KAAV,CAAgBxB,aAAa,CAACqB,SAA9B,CAFkB,EAGlBxB,SAAS,CAAC2B,KAAV,CAAgBvB,QAAQ,CAACoB,SAAzB,CAHkB,CAApB,CADK,CADiB;EAQxBhB,MAAM,EAAER,SAAS,CAAC4B,IARM;EASxBnB,QAAQ,EAAET,SAAS,CAAC6B;AATI,CAA1B;AAYA,eAAevB,aAAf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-item/index.js"],"names":[],"mappings":";AAQA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-item/index.js"],"names":[],"mappings":";AAQA,mDA8CC"}
|
|
@@ -32,10 +32,10 @@ const ListItem = props => {
|
|
|
32
32
|
className: style.wrapper
|
|
33
33
|
}, isPublished && contentType === 'certification' ? /*#__PURE__*/React.createElement("div", {
|
|
34
34
|
className: style.orderWrapper
|
|
35
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
35
|
+
}, order !== null && order !== undefined ? /*#__PURE__*/React.createElement("div", {
|
|
36
36
|
className: style.order,
|
|
37
37
|
"aria-label": ariaLabel
|
|
38
|
-
}, order + 1), /*#__PURE__*/React.createElement("div", {
|
|
38
|
+
}, order + 1) : null, /*#__PURE__*/React.createElement("div", {
|
|
39
39
|
className: style.title,
|
|
40
40
|
title: title
|
|
41
41
|
}, title)) : /*#__PURE__*/React.createElement("div", {
|
|
@@ -78,7 +78,8 @@ ListItem.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
78
78
|
title: PropTypes.string.isRequired,
|
|
79
79
|
order: PropTypes.number,
|
|
80
80
|
'aria-label': PropTypes.string,
|
|
81
|
-
contentType: PropTypes.string
|
|
81
|
+
contentType: PropTypes.string,
|
|
82
|
+
id: PropTypes.string
|
|
82
83
|
} : {};
|
|
83
84
|
export default ListItem;
|
|
84
85
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","PropTypes","Tag","ButtonLink","BulletPointMenuButton","style","ListItem","props","isPublished","bulletPointMenuButton","buttonLink","tags","title","order","ariaLabel","contentType","tagsView","convert","cap","tag","index","type","wrapper","orderWrapper","settings","edit","propTypes","shape","buttonAriaLabel","string","menuAriaLabel","buttons","arrayOf","label","onClick","func","dataName","icon","position","oneOf","isRequired","number"],"sources":["../../../src/organism/list-item/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map} from 'lodash/fp';\nimport Tag from '../../atom/tag';\nimport ButtonLink from '../../atom/button-link';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\nimport style from './style.css';\n\nconst ListItem = props => {\n let isPublished = false;\n const {\n bulletPointMenuButton,\n buttonLink,\n tags,\n title,\n order,\n 'aria-label': ariaLabel,\n contentType\n } = props;\n const tagsView = map.convert({cap: false})((tag, index) => {\n isPublished = tag.type === 'published';\n return (\n <div key={index} className={style.tag}>\n <Tag {...tag} />\n </div>\n );\n })(tags);\n return (\n <div className={style.wrapper}>\n {isPublished && contentType === 'certification' ? (\n <div className={style.orderWrapper}>\n <div className={style.order} aria-label={ariaLabel}>\n
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","PropTypes","Tag","ButtonLink","BulletPointMenuButton","style","ListItem","props","isPublished","bulletPointMenuButton","buttonLink","tags","title","order","ariaLabel","contentType","tagsView","convert","cap","tag","index","type","wrapper","orderWrapper","undefined","settings","edit","propTypes","shape","buttonAriaLabel","string","menuAriaLabel","buttons","arrayOf","label","onClick","func","dataName","icon","position","oneOf","isRequired","number","id"],"sources":["../../../src/organism/list-item/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map} from 'lodash/fp';\nimport Tag from '../../atom/tag';\nimport ButtonLink from '../../atom/button-link';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\nimport style from './style.css';\n\nconst ListItem = props => {\n let isPublished = false;\n const {\n bulletPointMenuButton,\n buttonLink,\n tags,\n title,\n order,\n 'aria-label': ariaLabel,\n contentType\n } = props;\n const tagsView = map.convert({cap: false})((tag, index) => {\n isPublished = tag.type === 'published';\n return (\n <div key={index} className={style.tag}>\n <Tag {...tag} />\n </div>\n );\n })(tags);\n return (\n <div className={style.wrapper}>\n {isPublished && contentType === 'certification' ? (\n <div className={style.orderWrapper}>\n {order !== null && order !== undefined ? (\n <div className={style.order} aria-label={ariaLabel}>\n {order + 1}\n </div>\n ) : null}\n <div className={style.title} title={title}>\n {title}\n </div>\n </div>\n ) : (\n <div className={style.title} title={title}>\n {title}\n </div>\n )}\n <div className={style.settings}>\n {tagsView}\n <div className={style.edit}>\n <ButtonLink {...buttonLink} />\n </div>\n <BulletPointMenuButton {...bulletPointMenuButton} />\n </div>\n </div>\n );\n};\n\nListItem.propTypes = {\n bulletPointMenuButton: PropTypes.shape({\n buttonAriaLabel: PropTypes.string,\n menuAriaLabel: PropTypes.string,\n buttons: PropTypes.arrayOf(\n PropTypes.shape({\n 'data-name': PropTypes.string,\n label: PropTypes.string,\n type: PropTypes.string,\n onClick: PropTypes.func\n })\n ),\n onClick: PropTypes.func\n }),\n buttonLink: PropTypes.shape({\n type: PropTypes.string,\n label: PropTypes.string,\n ariaLabel: PropTypes.string,\n dataName: PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.string,\n type: PropTypes.string\n }),\n onClick: PropTypes.func\n }),\n tags: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n type: PropTypes.oneOf(['published', 'draft', 'archived', 'revised', 'default'])\n })\n ),\n title: PropTypes.string.isRequired,\n order: PropTypes.number,\n 'aria-label': PropTypes.string,\n contentType: PropTypes.string,\n id: PropTypes.string\n};\n\nexport default ListItem;\n"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,GAAP,MAAgB,gBAAhB;AACA,OAAOC,UAAP,MAAuB,wBAAvB;AACA,OAAOC,qBAAP,MAAkC,yCAAlC;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,QAAQ,GAAGC,KAAK,IAAI;EACxB,IAAIC,WAAW,GAAG,KAAlB;EACA,MAAM;IACJC,qBADI;IAEJC,UAFI;IAGJC,IAHI;IAIJC,KAJI;IAKJC,KALI;IAMJ,cAAcC,SANV;IAOJC;EAPI,IAQFR,KARJ;;EASA,MAAMS,QAAQ,GAAG,KAAIC,OAAJ,CAAY;IAACC,GAAG,EAAE;EAAN,CAAZ,EAA0B,CAACC,GAAD,EAAMC,KAAN,KAAgB;IACzDZ,WAAW,GAAGW,GAAG,CAACE,IAAJ,KAAa,WAA3B;IACA,oBACE;MAAK,GAAG,EAAED,KAAV;MAAiB,SAAS,EAAEf,KAAK,CAACc;IAAlC,gBACE,oBAAC,GAAD,EAASA,GAAT,CADF,CADF;EAKD,CAPgB,EAOdR,IAPc,CAAjB;;EAQA,oBACE;IAAK,SAAS,EAAEN,KAAK,CAACiB;EAAtB,GACGd,WAAW,IAAIO,WAAW,KAAK,eAA/B,gBACC;IAAK,SAAS,EAAEV,KAAK,CAACkB;EAAtB,GACGV,KAAK,KAAK,IAAV,IAAkBA,KAAK,KAAKW,SAA5B,gBACC;IAAK,SAAS,EAAEnB,KAAK,CAACQ,KAAtB;IAA6B,cAAYC;EAAzC,GACGD,KAAK,GAAG,CADX,CADD,GAIG,IALN,eAME;IAAK,SAAS,EAAER,KAAK,CAACO,KAAtB;IAA6B,KAAK,EAAEA;EAApC,GACGA,KADH,CANF,CADD,gBAYC;IAAK,S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ACgC,OAAV,CACJhC,SAAS,CAAC2B,KAAV,CAAgB;IACdM,KAAK,EAAEjC,SAAS,CAAC6B,MADH;IAEdT,IAAI,EAAEpB,SAAS,CAACuC,KAAV,CAAgB,CAAC,WAAD,EAAc,OAAd,EAAuB,UAAvB,EAAmC,SAAnC,EAA8C,SAA9C,CAAhB;EAFQ,CAAhB,CADI,CAzBa;EA+BnB5B,KAAK,EAAEX,SAAS,CAAC6B,MAAV,CAAiBW,UA/BL;EAgCnB5B,KAAK,EAAEZ,SAAS,CAACyC,MAhCE;EAiCnB,cAAczC,SAAS,CAAC6B,MAjCL;EAkCnBf,WAAW,EAAEd,SAAS,CAAC6B,MAlCJ;EAmCnBa,EAAE,EAAE1C,SAAS,CAAC6B;AAnCK,CAArB;AAsCA,eAAexB,QAAf"}
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
text-align: left;
|
|
34
34
|
text-overflow: ellipsis;
|
|
35
35
|
white-space: nowrap;
|
|
36
|
-
|
|
36
|
+
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.settings {
|
|
40
40
|
align-items: center;
|
|
41
41
|
display: flex;
|
|
42
|
-
height: 100%;
|
|
42
|
+
height: 100%;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.tag {
|
|
46
|
-
margin: 0 16px 0 0;
|
|
46
|
+
margin: 0 16px 0 0;
|
|
47
47
|
text-overflow: ellipsis;
|
|
48
48
|
white-space: nowrap;
|
|
49
49
|
}
|
|
@@ -64,8 +64,10 @@
|
|
|
64
64
|
color: cm_grey_400;
|
|
65
65
|
margin: 0 16px 0 0;
|
|
66
66
|
}
|
|
67
|
+
|
|
67
68
|
.orderWrapper {
|
|
68
69
|
align-items: center;
|
|
69
70
|
display: flex;
|
|
70
71
|
width: 100%;
|
|
71
|
-
|
|
72
|
+
margin-left: 24px;
|
|
73
|
+
}
|
|
@@ -47,38 +47,6 @@ declare namespace ListItems {
|
|
|
47
47
|
error: PropTypes.Requireable<string>;
|
|
48
48
|
theme: PropTypes.Requireable<string>;
|
|
49
49
|
}>>;
|
|
50
|
-
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
51
|
-
bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
52
|
-
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
53
|
-
menuAriaLabel: PropTypes.Requireable<string>;
|
|
54
|
-
buttons: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
55
|
-
'data-name': PropTypes.Requireable<string>;
|
|
56
|
-
label: PropTypes.Requireable<string>;
|
|
57
|
-
type: PropTypes.Requireable<string>;
|
|
58
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
59
|
-
}> | null | undefined)[]>;
|
|
60
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
61
|
-
}>>;
|
|
62
|
-
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
63
|
-
type: PropTypes.Requireable<string>;
|
|
64
|
-
label: PropTypes.Requireable<string>;
|
|
65
|
-
ariaLabel: PropTypes.Requireable<string>;
|
|
66
|
-
dataName: PropTypes.Requireable<string>;
|
|
67
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
68
|
-
position: PropTypes.Requireable<string>;
|
|
69
|
-
type: PropTypes.Requireable<string>;
|
|
70
|
-
}>>;
|
|
71
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
72
|
-
}>>;
|
|
73
|
-
tags: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
74
|
-
label: PropTypes.Requireable<string>;
|
|
75
|
-
type: PropTypes.Requireable<string>;
|
|
76
|
-
}> | null | undefined)[]>;
|
|
77
|
-
title: PropTypes.Validator<string>;
|
|
78
|
-
order: PropTypes.Requireable<number>;
|
|
79
|
-
'aria-label': PropTypes.Requireable<string>;
|
|
80
|
-
contentType: PropTypes.Requireable<string>;
|
|
81
|
-
}> | null | undefined)[]>;
|
|
82
50
|
content: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
83
51
|
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
84
52
|
bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -111,9 +79,12 @@ declare namespace ListItems {
|
|
|
111
79
|
order: PropTypes.Requireable<number>;
|
|
112
80
|
'aria-label': PropTypes.Requireable<string>;
|
|
113
81
|
contentType: PropTypes.Requireable<string>;
|
|
82
|
+
id: PropTypes.Requireable<string>;
|
|
114
83
|
}> | null | undefined)[]>;
|
|
115
84
|
type: PropTypes.Requireable<string>;
|
|
116
85
|
itemType: PropTypes.Requireable<string>;
|
|
86
|
+
onDrop: PropTypes.Requireable<(...args: any[]) => any>;
|
|
87
|
+
isDraggable: PropTypes.Requireable<boolean>;
|
|
117
88
|
}> | PropTypes.InferProps<{
|
|
118
89
|
type: PropTypes.Requireable<string>;
|
|
119
90
|
columns: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-items/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-items/index.js"],"names":[],"mappings":";AA8CA;;;;;;gBAwBC"}
|
|
@@ -3,6 +3,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import ListItem from '../list-item';
|
|
6
|
+
import DraggableList from '../../molecule/draggable-list';
|
|
6
7
|
import Title from '../../atom/title';
|
|
7
8
|
import ButtonLink from '../../atom/button-link';
|
|
8
9
|
import SelectMultiple from '../../molecule/select-multiple';
|
|
@@ -12,14 +13,22 @@ import style from './style.css';
|
|
|
12
13
|
const buildListItemsView = (content, ariaLabel, selectMultiple) => {
|
|
13
14
|
const {
|
|
14
15
|
items,
|
|
15
|
-
itemType
|
|
16
|
+
itemType,
|
|
17
|
+
onDrop,
|
|
18
|
+
isDraggable = false
|
|
16
19
|
} = content;
|
|
17
|
-
const itemsView = items.
|
|
20
|
+
const itemsView = isDraggable && items.length > 1 ? /*#__PURE__*/React.createElement(DraggableList, {
|
|
21
|
+
items: items.map(item => _extends({}, item, {
|
|
22
|
+
contentType: itemType
|
|
23
|
+
})),
|
|
24
|
+
itemType: "list-item",
|
|
25
|
+
onDrop: onDrop
|
|
26
|
+
}) : items.map((item, index) => /*#__PURE__*/React.createElement("li", {
|
|
18
27
|
key: item.id,
|
|
19
28
|
className: style.item,
|
|
20
29
|
"data-name": `content-${index}`
|
|
21
30
|
}, /*#__PURE__*/React.createElement(ListItem, _extends({}, item, {
|
|
22
|
-
order:
|
|
31
|
+
order: null,
|
|
23
32
|
contentType: itemType
|
|
24
33
|
}))));
|
|
25
34
|
return /*#__PURE__*/React.createElement("ul", {
|
|
@@ -72,11 +81,12 @@ ListItems.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
72
81
|
'aria-label': PropTypes.string,
|
|
73
82
|
buttonLink: PropTypes.shape(ButtonLink.propTypes),
|
|
74
83
|
selectMultiple: PropTypes.shape(SelectMultiple.propTypes),
|
|
75
|
-
items: PropTypes.arrayOf(PropTypes.shape(ListItem.propTypes)),
|
|
76
84
|
content: PropTypes.oneOfType([PropTypes.shape({
|
|
77
85
|
items: PropTypes.arrayOf(PropTypes.shape(ListItem.propTypes)),
|
|
78
86
|
type: PropTypes.oneOf(['list']),
|
|
79
|
-
itemType: PropTypes.string
|
|
87
|
+
itemType: PropTypes.string,
|
|
88
|
+
onDrop: PropTypes.func,
|
|
89
|
+
isDraggable: PropTypes.bool
|
|
80
90
|
}), PropTypes.shape(_extends({}, ExpandibleActionableTable.propTypes, {
|
|
81
91
|
type: PropTypes.oneOf(['expandible-actionable-table'])
|
|
82
92
|
}))]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","PropTypes","ListItem","Title","ButtonLink","SelectMultiple","ExpandibleActionableTable","style","buildListItemsView","content","ariaLabel","selectMultiple","items","itemType","itemsView","map","item","index","id","list","listWithSelectMultiple","buildContentView","type","ListItems","title","buttonLink","contentView","header","actionsWrapper","buttonCreate","propTypes","string","shape","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","PropTypes","ListItem","DraggableList","Title","ButtonLink","SelectMultiple","ExpandibleActionableTable","style","buildListItemsView","content","ariaLabel","selectMultiple","items","itemType","onDrop","isDraggable","itemsView","length","map","item","contentType","index","id","list","listWithSelectMultiple","buildContentView","type","ListItems","title","buttonLink","contentView","header","actionsWrapper","buttonCreate","propTypes","string","shape","oneOfType","arrayOf","oneOf","func","bool"],"sources":["../../../src/organism/list-items/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport ListItem from '../list-item';\nimport DraggableList from '../../molecule/draggable-list';\nimport Title from '../../atom/title';\nimport ButtonLink from '../../atom/button-link';\nimport SelectMultiple from '../../molecule/select-multiple';\nimport ExpandibleActionableTable from '../../molecule/expandible-actionable-table';\nimport style from './style.css';\n\nconst buildListItemsView = (content, ariaLabel, selectMultiple) => {\n const {items, itemType, onDrop, isDraggable = false} = content;\n const itemsView =\n isDraggable && items.length > 1 ? (\n <DraggableList\n items={items.map(item => ({...item, contentType: itemType}))}\n itemType=\"list-item\"\n onDrop={onDrop}\n />\n ) : (\n items.map((item, index) => (\n <li key={item.id} className={style.item} data-name={`content-${index}`}>\n <ListItem {...item} order={null} contentType={itemType} />\n </li>\n ))\n );\n return (\n <ul\n className={!selectMultiple ? style.list : style.listWithSelectMultiple}\n aria-label={ariaLabel}\n data-name={'content-list'}\n >\n {itemsView}\n </ul>\n );\n};\nconst buildContentView = (content, ariaLabel, selectMultiple) => {\n const {type} = content;\n switch (type) {\n case 'list':\n return buildListItemsView(content, ariaLabel, selectMultiple);\n case 'expandible-actionable-table':\n return <ExpandibleActionableTable {...content} />;\n }\n};\n\nconst ListItems = ({title, buttonLink, selectMultiple, content, 'aria-label': ariaLabel}) => {\n const contentView = buildContentView(content, ariaLabel, selectMultiple);\n\n return (\n <div>\n <div className={style.header}>\n <div className={style.title}>\n <Title title={title} type={'form-group'} data-name={'list-title'} />\n </div>\n <div className={style.actionsWrapper}>\n {selectMultiple ? (\n <div className={style.selectMultiple}>\n <SelectMultiple {...selectMultiple} />\n </div>\n ) : null}\n\n <div className={style.buttonCreate}>\n <ButtonLink {...buttonLink} />\n </div>\n </div>\n </div>\n {contentView}\n </div>\n );\n};\n\nListItems.propTypes = {\n 'aria-label': PropTypes.string,\n buttonLink: PropTypes.shape(ButtonLink.propTypes),\n selectMultiple: PropTypes.shape(SelectMultiple.propTypes),\n content: PropTypes.oneOfType([\n PropTypes.shape({\n items: PropTypes.arrayOf(PropTypes.shape(ListItem.propTypes)),\n type: PropTypes.oneOf(['list']),\n itemType: PropTypes.string,\n onDrop: PropTypes.func,\n isDraggable: PropTypes.bool\n }),\n PropTypes.shape({\n ...ExpandibleActionableTable.propTypes,\n type: PropTypes.oneOf(['expandible-actionable-table'])\n })\n ]),\n title: PropTypes.string\n};\n\nexport default ListItems;\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,QAAP,MAAqB,cAArB;AACA,OAAOC,aAAP,MAA0B,+BAA1B;AACA,OAAOC,KAAP,MAAkB,kBAAlB;AACA,OAAOC,UAAP,MAAuB,wBAAvB;AACA,OAAOC,cAAP,MAA2B,gCAA3B;AACA,OAAOC,yBAAP,MAAsC,4CAAtC;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,kBAAkB,GAAG,CAACC,OAAD,EAAUC,SAAV,EAAqBC,cAArB,KAAwC;EACjE,MAAM;IAACC,KAAD;IAAQC,QAAR;IAAkBC,MAAlB;IAA0BC,WAAW,GAAG;EAAxC,IAAiDN,OAAvD;EACA,MAAMO,SAAS,GACbD,WAAW,IAAIH,KAAK,CAACK,MAAN,GAAe,CAA9B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ACmC;AAjBG,CAAtB;AAoBA,eAAeR,SAAf"}
|
|
@@ -795,38 +795,6 @@ declare namespace BrandUpdate {
|
|
|
795
795
|
error: PropTypes.Requireable<string>;
|
|
796
796
|
theme: PropTypes.Requireable<string>;
|
|
797
797
|
}>>;
|
|
798
|
-
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
799
|
-
bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
800
|
-
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
801
|
-
menuAriaLabel: PropTypes.Requireable<string>;
|
|
802
|
-
buttons: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
803
|
-
'data-name': PropTypes.Requireable<string>;
|
|
804
|
-
label: PropTypes.Requireable<string>;
|
|
805
|
-
type: PropTypes.Requireable<string>;
|
|
806
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
807
|
-
}> | null | undefined)[]>;
|
|
808
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
809
|
-
}>>;
|
|
810
|
-
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
811
|
-
type: PropTypes.Requireable<string>;
|
|
812
|
-
label: PropTypes.Requireable<string>;
|
|
813
|
-
ariaLabel: PropTypes.Requireable<string>;
|
|
814
|
-
dataName: PropTypes.Requireable<string>;
|
|
815
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
816
|
-
position: PropTypes.Requireable<string>;
|
|
817
|
-
type: PropTypes.Requireable<string>;
|
|
818
|
-
}>>;
|
|
819
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
820
|
-
}>>;
|
|
821
|
-
tags: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
822
|
-
label: PropTypes.Requireable<string>;
|
|
823
|
-
type: PropTypes.Requireable<string>;
|
|
824
|
-
}> | null | undefined)[]>;
|
|
825
|
-
title: PropTypes.Validator<string>;
|
|
826
|
-
order: PropTypes.Requireable<number>;
|
|
827
|
-
'aria-label': PropTypes.Requireable<string>;
|
|
828
|
-
contentType: PropTypes.Requireable<string>;
|
|
829
|
-
}> | null | undefined)[]>;
|
|
830
798
|
content: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
831
799
|
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
832
800
|
bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -859,9 +827,12 @@ declare namespace BrandUpdate {
|
|
|
859
827
|
order: PropTypes.Requireable<number>;
|
|
860
828
|
'aria-label': PropTypes.Requireable<string>;
|
|
861
829
|
contentType: PropTypes.Requireable<string>;
|
|
830
|
+
id: PropTypes.Requireable<string>;
|
|
862
831
|
}> | null | undefined)[]>;
|
|
863
832
|
type: PropTypes.Requireable<string>;
|
|
864
833
|
itemType: PropTypes.Requireable<string>;
|
|
834
|
+
onDrop: PropTypes.Requireable<(...args: any[]) => any>;
|
|
835
|
+
isDraggable: PropTypes.Requireable<boolean>;
|
|
865
836
|
}> | PropTypes.InferProps<{
|
|
866
837
|
type: PropTypes.Requireable<string>;
|
|
867
838
|
columns: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/template/mobile-login/receive-email/index.native.tsx"],"names":[],"mappings":";AAoIA,oBAAY,KAAK,GAAG;IAClB,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;QACpB,QAAQ,EAAE,MAAM,CAAC;QACjB,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IACF,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/template/mobile-login/receive-email/index.native.tsx"],"names":[],"mappings":";AAoIA,oBAAY,KAAK,GAAG;IAClB,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;QACpB,QAAQ,EAAE,MAAM,CAAC;QACjB,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IACF,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC,CAAC;AAEF,QAAA,MAAM,YAAY,UAAW,KAAK,gBAoFjC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -120,11 +120,16 @@ const ReceiveEmail = props => {
|
|
|
120
120
|
onClose,
|
|
121
121
|
onSend
|
|
122
122
|
} = props;
|
|
123
|
+
const [email, setEmail] = useState('');
|
|
123
124
|
const [isValid, setValid] = useState(false);
|
|
124
125
|
const [isTextInputFocused, setTextInputFocused] = useState(false);
|
|
125
126
|
const isKeyboardVisible = useMobileKeyboardVisibility();
|
|
127
|
+
const handleSend = useCallback(() => {
|
|
128
|
+
onSend(email);
|
|
129
|
+
}, [email, onSend]);
|
|
126
130
|
const handleChangeText = useCallback(value => {
|
|
127
131
|
setValid(emailRegex.test(value));
|
|
132
|
+
setEmail(value);
|
|
128
133
|
}, []);
|
|
129
134
|
const handleTextInputFocus = useCallback(() => {
|
|
130
135
|
setTextInputFocused(true);
|
|
@@ -186,7 +191,7 @@ const ReceiveEmail = props => {
|
|
|
186
191
|
}, /*#__PURE__*/React.createElement(Touchable, {
|
|
187
192
|
disabled: !isValid,
|
|
188
193
|
style: [styles.ctaButton],
|
|
189
|
-
onPress:
|
|
194
|
+
onPress: handleSend,
|
|
190
195
|
testID: "send-button"
|
|
191
196
|
}, /*#__PURE__*/React.createElement(SendIcon, {
|
|
192
197
|
style: styles.sendIcon
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":["React","useCallback","useEffect","useRef","useState","Animated","Easing","KeyboardAvoidingView","Platform","StyleSheet","Text","TextInput","View","NovaCompositionNavigationLeftArrow","ArrowIcon","NovaCompositionCoorpacademyEmail","MailIcon","NovaCompositionCoorpacademySendEmail","SendIcon","Touchable","useMobileKeyboardVisibility","enabledColor","disabledColor","emailRegex","styles","create","container","width","height","flex","justifyContent","alignItems","paddingVertical","paddingHorizontal","contentWrapper","backButton","arrowIcon","fill","mailIconWrapper","backgroundColor","padding","marginVertical","borderRadius","mailIcon","innerMailIcon","marginTop","marginLeft","title","color","fontSize","fontWeight","lineHeight","textAlign","marginBottom","explanation","letterSpacing","subtitle","textInput","borderColor","borderWidth","alignContent","ctaWrapper","overflow","ctaButton","flexDirection","sendIcon","marginRight","ctaText","ReceiveEmail","props","locales","onClose","onSend","isValid","setValid","isTextInputFocused","setTextInputFocused","isKeyboardVisible","handleChangeText","value","test","handleTextInputFocus","handleTextInputBlur","animationRef","Value","current","animatedColor","interpolate","inputRange","outputRange","animation","timing","toValue","duration","easing","out","sin","useNativeDriver","start","OS","cta"],"sources":["../../../../src/template/mobile-login/receive-email/index.native.tsx"],"sourcesContent":["import React, {useCallback, useEffect, useRef, useState} from 'react';\nimport {\n Animated,\n Easing,\n KeyboardAvoidingView,\n Platform,\n StyleSheet,\n Text,\n TextInput,\n View\n} from 'react-native';\nimport {\n NovaCompositionNavigationLeftArrow as ArrowIcon,\n NovaCompositionCoorpacademyEmail as MailIcon,\n NovaCompositionCoorpacademySendEmail as SendIcon\n} from '@coorpacademy/nova-icons';\n\nimport Touchable from '../../../hoc/touchable/index.native';\nimport useMobileKeyboardVisibility from '../../../util/use-mobile-keyboard-visibility';\n\nconst enabledColor = '#0061ff';\nconst disabledColor = '#9999A8';\nconst emailRegex = /^\\w+([-+.']\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$/;\n\nconst styles = StyleSheet.create({\n container: {\n width: '100%',\n height: '100%',\n flex: 1,\n justifyContent: 'space-between',\n alignItems: 'flex-start',\n paddingVertical: 50,\n paddingHorizontal: 24\n },\n contentWrapper: {\n width: '100%'\n },\n backButton: {\n paddingVertical: 20\n },\n arrowIcon: {\n fill: '#515161',\n width: 24,\n height: 15\n },\n mailIconWrapper: {\n backgroundColor: '#f1f6fe',\n width: 64,\n height: 64,\n padding: 23,\n marginVertical: 24,\n borderRadius: 16,\n justifyContent: 'center',\n alignItems: 'center'\n },\n mailIcon: {\n fill: '#0061ff',\n width: 24,\n height: 18\n },\n innerMailIcon: {\n fill: '#515161',\n width: 16,\n height: 12,\n marginTop: -30,\n marginLeft: 16\n },\n title: {\n color: '#1D1D2B',\n fontSize: 24,\n fontWeight: '600',\n lineHeight: 32,\n textAlign: 'left',\n marginBottom: 12\n },\n explanation: {\n color: '#515161',\n fontSize: 17,\n letterSpacing: 0.4,\n fontWeight: '500',\n lineHeight: 22,\n textAlign: 'left',\n marginBottom: 24\n },\n subtitle: {\n color: '#1D1D2B',\n fontSize: 15,\n fontWeight: '600',\n lineHeight: 20,\n textAlign: 'left',\n marginBottom: 8\n },\n textInput: {\n height: 48,\n width: '100%',\n backgroundColor: '#F4F4F5',\n borderColor: enabledColor,\n borderWidth: 2,\n fontSize: 15,\n lineHeight: 16,\n alignContent: 'center',\n color: '#515161',\n borderRadius: 7,\n paddingHorizontal: 40\n },\n ctaWrapper: {\n width: '100%',\n overflow: 'hidden',\n borderRadius: 12,\n marginTop: 30,\n marginBottom: 50\n },\n ctaButton: {\n flexDirection: 'row',\n justifyContent: 'center',\n alignItems: 'center',\n paddingVertical: 16\n },\n sendIcon: {\n fill: '#fff',\n width: 16,\n height: 16,\n marginRight: 8\n },\n ctaText: {\n color: '#fff',\n fontWeight: '700',\n fontSize: 15,\n lineHeight: 24\n }\n});\n\nexport type Props = {\n locales: {\n title: string;\n explanation: string;\n subtitle: string;\n cta: string;\n };\n onClose: () => void;\n onSend: () => void;\n};\n\nconst ReceiveEmail = (props: Props) => {\n const {locales, onClose, onSend} = props;\n\n const [isValid, setValid] = useState<boolean>(false);\n const [isTextInputFocused, setTextInputFocused] = useState<boolean>(false);\n const isKeyboardVisible = useMobileKeyboardVisibility();\n\n const handleChangeText = useCallback(value => {\n setValid(emailRegex.test(value));\n }, []);\n\n const handleTextInputFocus = useCallback(() => {\n setTextInputFocused(true);\n }, []);\n\n const handleTextInputBlur = useCallback(() => {\n setTextInputFocused(false);\n }, []);\n\n const animationRef = useRef<Animated.Value>(new Animated.Value(0)).current;\n const animatedColor = animationRef.interpolate({\n inputRange: [0, 1],\n outputRange: [disabledColor, enabledColor]\n });\n\n useEffect(() => {\n const animation = Animated.timing(animationRef, {\n toValue: isValid ? 1 : 0,\n duration: 250,\n easing: Easing.out(Easing.sin),\n useNativeDriver: false\n });\n\n animation.start();\n }, [animationRef, isValid]);\n\n return (\n <KeyboardAvoidingView\n behavior={Platform.OS === 'ios' ? 'padding' : 'height'}\n style={[styles.container]}\n testID=\"receive-email\"\n >\n <View style={styles.contentWrapper}>\n <Touchable style={styles.backButton} onPress={onClose} testID=\"close-button\">\n <ArrowIcon style={styles.arrowIcon} />\n </Touchable>\n {isKeyboardVisible ? null : (\n <View style={styles.mailIconWrapper}>\n <MailIcon style={styles.mailIcon} />\n </View>\n )}\n <Text style={styles.title}>{locales.title}</Text>\n <Text style={styles.explanation}>{locales.explanation}</Text>\n <Text style={styles.subtitle}>{locales.subtitle}</Text>\n <TextInput\n style={[styles.textInput, {borderWidth: isTextInputFocused ? 2 : 0}]}\n placeholder=\"john.doe@company.com\"\n placeholderTextColor={disabledColor}\n onChangeText={handleChangeText}\n onFocus={handleTextInputFocus}\n onBlur={handleTextInputBlur}\n />\n <MailIcon style={styles.innerMailIcon} />\n </View>\n\n <Animated.View style={[styles.ctaWrapper, {backgroundColor: animatedColor}]}>\n <Touchable\n disabled={!isValid}\n style={[styles.ctaButton]}\n onPress={onSend}\n testID=\"send-button\"\n >\n <SendIcon style={styles.sendIcon} />\n <Text style={styles.ctaText}>{locales.cta}</Text>\n </Touchable>\n </Animated.View>\n </KeyboardAvoidingView>\n );\n};\n\nexport default ReceiveEmail;\n"],"mappings":"AAAA,OAAOA,KAAP,IAAeC,WAAf,EAA4BC,SAA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AAO,CAAChB,WAA1C,CAVF,eAWE,oBAAC,IAAD;IAAM,KAAK,EAAE9B,MAAM,CAACgC;EAApB,GAA+Bc,OAAO,CAACd,QAAvC,CAXF,eAYE,oBAAC,SAAD;IACE,KAAK,EAAE,CAAChC,MAAM,CAACiC,SAAR,EAAmB;MAACE,WAAW,EAAEgB,kBAAkB,GAAG,CAAH,GAAO;IAAvC,CAAnB,CADT;IAEE,WAAW,EAAC,sBAFd;IAGE,oBAAoB,EAAErD,aAHxB;IAIE,YAAY,EAAEwD,gBAJhB;IAKE,OAAO,EAAEG,oBALX;IAME,MAAM,EAAEC;EANV,EAZF,eAoBE,oBAAC,QAAD;IAAU,KAAK,EAAE1D,MAAM,CAACoB;EAAxB,EApBF,CALF,eA4BE,oBAAC,QAAD,CAAU,IAAV;IAAe,KAAK,EAAE,CAACpB,MAAM,CAACqC,UAAR,EAAoB;MAACtB,eAAe,EAAE+C;IAAlB,CAApB;EAAtB,gBACE,oBAAC,SAAD;IACE,QAAQ,EAAE,CAACb,OADb;IAEE,KAAK,EAAE,CAACjD,MAAM,CAACuC,SAAR,CAFT;IAGE,OAAO,EAAES,MAHX;IAIE,MAAM,EAAC;EAJT,gBAME,oBAAC,QAAD;IAAU,KAAK,EAAEhD,MAAM,CAACyC;EAAxB,EANF,eAOE,oBAAC,IAAD;IAAM,KAAK,EAAEzC,MAAM,CAAC2C;EAApB,GAA8BG,OAAO,CAAC8B,GAAtC,CAPF,CADF,CA5BF,CADF;AA0CD,CA9ED;;AAgFA,eAAehC,YAAf"}
|
|
1
|
+
{"version":3,"file":"index.native.js","names":["React","useCallback","useEffect","useRef","useState","Animated","Easing","KeyboardAvoidingView","Platform","StyleSheet","Text","TextInput","View","NovaCompositionNavigationLeftArrow","ArrowIcon","NovaCompositionCoorpacademyEmail","MailIcon","NovaCompositionCoorpacademySendEmail","SendIcon","Touchable","useMobileKeyboardVisibility","enabledColor","disabledColor","emailRegex","styles","create","container","width","height","flex","justifyContent","alignItems","paddingVertical","paddingHorizontal","contentWrapper","backButton","arrowIcon","fill","mailIconWrapper","backgroundColor","padding","marginVertical","borderRadius","mailIcon","innerMailIcon","marginTop","marginLeft","title","color","fontSize","fontWeight","lineHeight","textAlign","marginBottom","explanation","letterSpacing","subtitle","textInput","borderColor","borderWidth","alignContent","ctaWrapper","overflow","ctaButton","flexDirection","sendIcon","marginRight","ctaText","ReceiveEmail","props","locales","onClose","onSend","email","setEmail","isValid","setValid","isTextInputFocused","setTextInputFocused","isKeyboardVisible","handleSend","handleChangeText","value","test","handleTextInputFocus","handleTextInputBlur","animationRef","Value","current","animatedColor","interpolate","inputRange","outputRange","animation","timing","toValue","duration","easing","out","sin","useNativeDriver","start","OS","cta"],"sources":["../../../../src/template/mobile-login/receive-email/index.native.tsx"],"sourcesContent":["import React, {useCallback, useEffect, useRef, useState} from 'react';\nimport {\n Animated,\n Easing,\n KeyboardAvoidingView,\n Platform,\n StyleSheet,\n Text,\n TextInput,\n View\n} from 'react-native';\nimport {\n NovaCompositionNavigationLeftArrow as ArrowIcon,\n NovaCompositionCoorpacademyEmail as MailIcon,\n NovaCompositionCoorpacademySendEmail as SendIcon\n} from '@coorpacademy/nova-icons';\n\nimport Touchable from '../../../hoc/touchable/index.native';\nimport useMobileKeyboardVisibility from '../../../util/use-mobile-keyboard-visibility';\n\nconst enabledColor = '#0061ff';\nconst disabledColor = '#9999A8';\nconst emailRegex = /^\\w+([-+.']\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$/;\n\nconst styles = StyleSheet.create({\n container: {\n width: '100%',\n height: '100%',\n flex: 1,\n justifyContent: 'space-between',\n alignItems: 'flex-start',\n paddingVertical: 50,\n paddingHorizontal: 24\n },\n contentWrapper: {\n width: '100%'\n },\n backButton: {\n paddingVertical: 20\n },\n arrowIcon: {\n fill: '#515161',\n width: 24,\n height: 15\n },\n mailIconWrapper: {\n backgroundColor: '#f1f6fe',\n width: 64,\n height: 64,\n padding: 23,\n marginVertical: 24,\n borderRadius: 16,\n justifyContent: 'center',\n alignItems: 'center'\n },\n mailIcon: {\n fill: '#0061ff',\n width: 24,\n height: 18\n },\n innerMailIcon: {\n fill: '#515161',\n width: 16,\n height: 12,\n marginTop: -30,\n marginLeft: 16\n },\n title: {\n color: '#1D1D2B',\n fontSize: 24,\n fontWeight: '600',\n lineHeight: 32,\n textAlign: 'left',\n marginBottom: 12\n },\n explanation: {\n color: '#515161',\n fontSize: 17,\n letterSpacing: 0.4,\n fontWeight: '500',\n lineHeight: 22,\n textAlign: 'left',\n marginBottom: 24\n },\n subtitle: {\n color: '#1D1D2B',\n fontSize: 15,\n fontWeight: '600',\n lineHeight: 20,\n textAlign: 'left',\n marginBottom: 8\n },\n textInput: {\n height: 48,\n width: '100%',\n backgroundColor: '#F4F4F5',\n borderColor: enabledColor,\n borderWidth: 2,\n fontSize: 15,\n lineHeight: 16,\n alignContent: 'center',\n color: '#515161',\n borderRadius: 7,\n paddingHorizontal: 40\n },\n ctaWrapper: {\n width: '100%',\n overflow: 'hidden',\n borderRadius: 12,\n marginTop: 30,\n marginBottom: 50\n },\n ctaButton: {\n flexDirection: 'row',\n justifyContent: 'center',\n alignItems: 'center',\n paddingVertical: 16\n },\n sendIcon: {\n fill: '#fff',\n width: 16,\n height: 16,\n marginRight: 8\n },\n ctaText: {\n color: '#fff',\n fontWeight: '700',\n fontSize: 15,\n lineHeight: 24\n }\n});\n\nexport type Props = {\n locales: {\n title: string;\n explanation: string;\n subtitle: string;\n cta: string;\n };\n onClose: () => void;\n onSend: (email: string) => void;\n};\n\nconst ReceiveEmail = (props: Props) => {\n const {locales, onClose, onSend} = props;\n\n const [email, setEmail] = useState<string>('');\n const [isValid, setValid] = useState<boolean>(false);\n const [isTextInputFocused, setTextInputFocused] = useState<boolean>(false);\n const isKeyboardVisible = useMobileKeyboardVisibility();\n\n const handleSend = useCallback(() => {\n onSend(email);\n }, [email, onSend]);\n\n const handleChangeText = useCallback(value => {\n setValid(emailRegex.test(value));\n setEmail(value);\n }, []);\n\n const handleTextInputFocus = useCallback(() => {\n setTextInputFocused(true);\n }, []);\n\n const handleTextInputBlur = useCallback(() => {\n setTextInputFocused(false);\n }, []);\n\n const animationRef = useRef<Animated.Value>(new Animated.Value(0)).current;\n const animatedColor = animationRef.interpolate({\n inputRange: [0, 1],\n outputRange: [disabledColor, enabledColor]\n });\n\n useEffect(() => {\n const animation = Animated.timing(animationRef, {\n toValue: isValid ? 1 : 0,\n duration: 250,\n easing: Easing.out(Easing.sin),\n useNativeDriver: false\n });\n\n animation.start();\n }, [animationRef, isValid]);\n\n return (\n <KeyboardAvoidingView\n behavior={Platform.OS === 'ios' ? 'padding' : 'height'}\n style={[styles.container]}\n testID=\"receive-email\"\n >\n <View style={styles.contentWrapper}>\n <Touchable style={styles.backButton} onPress={onClose} testID=\"close-button\">\n <ArrowIcon style={styles.arrowIcon} />\n </Touchable>\n {isKeyboardVisible ? null : (\n <View style={styles.mailIconWrapper}>\n <MailIcon style={styles.mailIcon} />\n </View>\n )}\n <Text style={styles.title}>{locales.title}</Text>\n <Text style={styles.explanation}>{locales.explanation}</Text>\n <Text style={styles.subtitle}>{locales.subtitle}</Text>\n <TextInput\n style={[styles.textInput, {borderWidth: isTextInputFocused ? 2 : 0}]}\n placeholder=\"john.doe@company.com\"\n placeholderTextColor={disabledColor}\n onChangeText={handleChangeText}\n onFocus={handleTextInputFocus}\n onBlur={handleTextInputBlur}\n />\n <MailIcon style={styles.innerMailIcon} />\n </View>\n\n <Animated.View style={[styles.ctaWrapper, {backgroundColor: animatedColor}]}>\n <Touchable\n disabled={!isValid}\n style={[styles.ctaButton]}\n onPress={handleSend}\n testID=\"send-button\"\n >\n <SendIcon style={styles.sendIcon} />\n <Text style={styles.ctaText}>{locales.cta}</Text>\n </Touchable>\n </Animated.View>\n </KeyboardAvoidingView>\n );\n};\n\nexport default ReceiveEmail;\n"],"mappings":"AAAA,OAAOA,KAAP,IAAeC,WAAf,EAA4BC,SAA5B,EAAuCC,MAAvC,EAA+CC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
34
|
font-size: 16px;
|
|
35
35
|
font-weight: bold;
|
|
36
|
-
overflow:hidden;
|
|
37
|
-
white-space:nowrap;
|
|
38
|
-
display:inline-block;
|
|
39
|
-
text-overflow:ellipsis;
|
|
36
|
+
overflow: hidden;
|
|
37
|
+
white-space: nowrap;
|
|
38
|
+
display: inline-block;
|
|
39
|
+
text-overflow: ellipsis;
|
|
40
40
|
width: 100%;
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -59,5 +59,3 @@
|
|
|
59
59
|
min-height: 56px;
|
|
60
60
|
min-width: 56px;
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
|