@zohodesk/dot 1.3.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cli/PropLessFiles.html +1 -1
- package/.cli/PropValidationExcludeFilesArray.js +1 -1
- package/.cli/propValidation_report.html +1 -1
- package/README.md +21 -12
- package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +163 -553
- package/assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css +3 -12
- package/assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css +3 -12
- package/assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css +3 -12
- package/assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css +3 -12
- package/assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css +3 -12
- package/assets/Appearance/light/mode/Dot_LightMode.module.css +163 -553
- package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +3 -12
- package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +3 -12
- package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +3 -12
- package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +3 -12
- package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +3 -12
- package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +163 -553
- package/assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css +3 -12
- package/assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css +3 -12
- package/assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css +3 -12
- package/assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css +3 -12
- package/assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css +3 -12
- package/coverage/ExternalLink/ExternalLink.js.html +1 -1
- package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
- package/coverage/ExternalLink/index.html +1 -1
- package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
- package/coverage/ExternalLink/props/index.html +1 -1
- package/coverage/ExternalLink/props/propTypes.js.html +1 -1
- package/coverage/IconButton/IconButton.js.html +466 -0
- package/coverage/IconButton/IconButton.module.css.html +151 -0
- package/coverage/IconButton/index.html +131 -0
- package/coverage/IconButton/props/defaultProps.js.html +136 -0
- package/coverage/IconButton/props/index.html +131 -0
- package/coverage/IconButton/props/propTypes.js.html +187 -0
- package/coverage/Image/Image.js.html +1 -1
- package/coverage/Image/Image.module.css.html +1 -1
- package/coverage/Image/index.html +1 -1
- package/coverage/Image/props/defaultProps.js.html +1 -1
- package/coverage/Image/props/index.html +1 -1
- package/coverage/Image/props/propTypes.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
- package/coverage/avatar/AvatarWithTeam/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
- package/coverage/coverage-final.json +4 -0
- package/coverage/coverage-summary.json +5 -1
- package/coverage/index.html +40 -10
- package/es/IconButton/__tests__/IconButton.spec.js +148 -0
- package/es/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
- package/es/form/fields/FieldContainer/props/propTypes.js +1 -1
- package/es/v1/ActionButton/ActionButton.js +2 -2
- package/es/v1/AlphabeticList/AlphabeticList.js +6 -2
- package/es/v1/Attachment/Attachment.js +78 -75
- package/es/v1/AttachmentViewer/AttachmentImage.js +44 -63
- package/es/v1/Image/Image.js +26 -33
- package/es/v1/Loader/Loader.js +12 -18
- package/es/v1/Message/Message.js +16 -42
- package/es/v1/PlusIcon/PlusIcon.js +25 -37
- package/es/v1/Separator/Separator.js +40 -47
- package/es/v1/Upload/Upload.js +59 -66
- package/es/v1/alert/AlertHeader/AlertHeader.js +5 -4
- package/es/v1/alert/AlertHeader/props/defaultProps.js +12 -0
- package/es/v1/alert/AlertHeader/props/propTypes.js +20 -0
- package/es/v1/alert/AlertLookup/AlertLookup.js +6 -4
- package/es/v1/alert/AlertLookup/props/defaultProps.js +13 -0
- package/es/v1/alert/AlertLookup/props/propTypes.js +36 -0
- package/es/v1/avatar/AvatarClose/AvatarClose.js +32 -43
- package/es/v1/avatar/AvatarCollision/AvatarCollision.js +41 -52
- package/es/v1/avatar/AvatarIcon/AvatarIcon.js +38 -43
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +52 -63
- package/es/v1/avatar/AvatarThread/AvatarThread.js +62 -69
- package/es/v1/avatar/AvatarUser/AvatarUser.js +93 -100
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +81 -88
- package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +6 -6
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +6 -6
- package/es/v1/form/fields/DateField/DateField.js +6 -6
- package/es/v1/form/fields/FieldContainer/FieldContainer.js +6 -6
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +6 -6
- package/es/v1/form/fields/PhoneField/PhoneField.js +6 -6
- package/es/v1/form/fields/RadioField/RadioField.js +89 -97
- package/es/v1/form/fields/SelectField/SelectField.js +139 -154
- package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +154 -197
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +108 -124
- package/es/v1/list/SecondaryText/AccountName.js +61 -69
- package/es/v1/list/SecondaryText/ContactName.js +66 -74
- package/es/v1/list/SecondaryText/DepartmentText.js +15 -27
- package/es/v1/list/SecondaryText/Email.js +32 -40
- package/es/v1/list/SecondaryText/HappinessRating.js +17 -25
- package/es/v1/list/SecondaryText/PhoneNumber.js +36 -44
- package/es/v1/list/SecondaryText/PriorityText.js +16 -28
- package/es/v1/list/SecondaryText/SecondaryText.js +21 -33
- package/es/v1/list/SecondaryText/StatusText.js +17 -29
- package/es/v1/list/SecondaryText/TicketId.js +33 -45
- package/es/v1/list/SecondaryText/Website.js +22 -30
- package/es/v1/list/SecondryPanel/SecondryPanel.js +66 -83
- package/es/v1/list/SentimentStatus/SentimentStatus.js +18 -29
- package/es/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
- package/es/v1/list/status/StatusListItem/StatusListItem.js +75 -100
- package/es/v1/lookup/EmptyPage/EmptyPage.js +15 -26
- package/es/v1/lookup/Section/Section.js +14 -20
- package/es/v1/svg/PlusIcon.js +20 -27
- package/es/v1/svg/SnippetIcon.js +22 -29
- package/es/v1/svg/TemplateIcon.js +23 -30
- package/lib/IconButton/__tests__/IconButton.spec.js +156 -0
- package/lib/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
- package/lib/form/fields/FieldContainer/props/propTypes.js +1 -1
- package/lib/v1/ActionButton/ActionButton.js +2 -2
- package/lib/v1/AlphabeticList/AlphabeticList.js +7 -3
- package/lib/v1/Attachment/Attachment.js +77 -112
- package/lib/v1/AttachmentViewer/AttachmentImage.js +61 -96
- package/lib/v1/Image/Image.js +26 -71
- package/lib/v1/Loader/Loader.js +12 -55
- package/lib/v1/Message/Message.js +23 -80
- package/lib/v1/PlusIcon/PlusIcon.js +25 -71
- package/lib/v1/Separator/Separator.js +44 -85
- package/lib/v1/Upload/Upload.js +58 -103
- package/lib/v1/alert/AlertHeader/AlertHeader.js +5 -4
- package/lib/v1/alert/AlertHeader/props/defaultProps.js +19 -0
- package/lib/v1/alert/AlertHeader/props/propTypes.js +31 -0
- package/lib/v1/alert/AlertLookup/AlertLookup.js +6 -4
- package/lib/v1/alert/AlertLookup/props/defaultProps.js +20 -0
- package/lib/v1/alert/AlertLookup/props/propTypes.js +47 -0
- package/lib/v1/avatar/AvatarClose/AvatarClose.js +32 -77
- package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +41 -86
- package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +37 -80
- package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +52 -97
- package/lib/v1/avatar/AvatarThread/AvatarThread.js +61 -106
- package/lib/v1/avatar/AvatarUser/AvatarUser.js +95 -140
- package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +85 -130
- package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +6 -6
- package/lib/v1/form/fields/CurrencyField/CurrencyField.js +6 -6
- package/lib/v1/form/fields/DateField/DateField.js +6 -6
- package/lib/v1/form/fields/FieldContainer/FieldContainer.js +6 -6
- package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +6 -6
- package/lib/v1/form/fields/PhoneField/PhoneField.js +6 -6
- package/lib/v1/form/fields/RadioField/RadioField.js +91 -137
- package/lib/v1/form/fields/SelectField/SelectField.js +149 -200
- package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +160 -253
- package/lib/v1/layout/SubtabLayout/SubtabLayout.js +107 -206
- package/lib/v1/list/SecondaryText/AccountName.js +63 -113
- package/lib/v1/list/SecondaryText/ContactName.js +67 -117
- package/lib/v1/list/SecondaryText/DepartmentText.js +16 -66
- package/lib/v1/list/SecondaryText/Email.js +32 -82
- package/lib/v1/list/SecondaryText/HappinessRating.js +21 -68
- package/lib/v1/list/SecondaryText/PhoneNumber.js +36 -86
- package/lib/v1/list/SecondaryText/PriorityText.js +16 -66
- package/lib/v1/list/SecondaryText/SecondaryText.js +19 -69
- package/lib/v1/list/SecondaryText/StatusText.js +17 -67
- package/lib/v1/list/SecondaryText/TicketId.js +33 -83
- package/lib/v1/list/SecondaryText/Website.js +29 -72
- package/lib/v1/list/SecondryPanel/SecondryPanel.js +69 -168
- package/lib/v1/list/SentimentStatus/SentimentStatus.js +19 -64
- package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
- package/lib/v1/list/status/StatusListItem/StatusListItem.js +81 -137
- package/lib/v1/lookup/EmptyPage/EmptyPage.js +43 -93
- package/lib/v1/lookup/Section/Section.js +14 -58
- package/lib/v1/svg/PlusIcon.js +20 -65
- package/lib/v1/svg/SnippetIcon.js +22 -67
- package/lib/v1/svg/TemplateIcon.js +23 -68
- package/package.json +12 -12
- package/result.json +1 -1
- package/unittest/index.html +1 -1
|
@@ -1,40 +1,28 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
|
|
3
|
-
import React
|
|
3
|
+
import React from 'react';
|
|
4
4
|
import { SecondaryText_defaultProps } from '../../../list/SecondaryText/props/defaultProps';
|
|
5
5
|
import { SecondaryText_propTypes } from '../../../list/SecondaryText/props/propTypes';
|
|
6
6
|
import style from '../../../list/SecondaryText/SecondaryText.module.css';
|
|
7
|
-
export default
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"data-title": dataTitle,
|
|
27
|
-
"data-id": dataId,
|
|
28
|
-
"data-test-id": dataId,
|
|
29
|
-
onClick: onClick
|
|
30
|
-
}, SecondaryTextProps), text);
|
|
31
|
-
}
|
|
32
|
-
|
|
7
|
+
export default function SecondaryText(props) {
|
|
8
|
+
let {
|
|
9
|
+
className,
|
|
10
|
+
text,
|
|
11
|
+
dataTitle,
|
|
12
|
+
dataId,
|
|
13
|
+
onClick,
|
|
14
|
+
customProps
|
|
15
|
+
} = props;
|
|
16
|
+
let {
|
|
17
|
+
SecondaryTextProps
|
|
18
|
+
} = customProps;
|
|
19
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
20
|
+
className: `${style.secondaryText} ${className ? className : ''}`,
|
|
21
|
+
"data-title": dataTitle,
|
|
22
|
+
"data-id": dataId,
|
|
23
|
+
"data-test-id": dataId,
|
|
24
|
+
onClick: onClick
|
|
25
|
+
}, SecondaryTextProps), text);
|
|
33
26
|
}
|
|
34
27
|
SecondaryText.propTypes = SecondaryText_propTypes;
|
|
35
|
-
SecondaryText.defaultProps = SecondaryText_defaultProps;
|
|
36
|
-
// SecondaryText.docs = {
|
|
37
|
-
// folderName: 'List',
|
|
38
|
-
// componentGroup: 'SecondaryText'
|
|
39
|
-
// };
|
|
40
|
-
// }
|
|
28
|
+
SecondaryText.defaultProps = SecondaryText_defaultProps;
|
|
@@ -1,34 +1,22 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { StatusText_defaultProps } from '../../../list/SecondaryText/props/defaultProps';
|
|
3
3
|
import { StatusText_propTypes } from '../../../list/SecondaryText/props/propTypes';
|
|
4
4
|
import style from '../../../list/SecondaryText/SecondaryText.module.css';
|
|
5
|
-
export default
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
className: `${style.statusText} ${style[color]} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
|
|
21
|
-
"data-title": dataTitle,
|
|
22
|
-
"data-id": dataId,
|
|
23
|
-
"data-test-id": dataId
|
|
24
|
-
}, text);
|
|
25
|
-
}
|
|
26
|
-
|
|
5
|
+
export default function StatusText(props) {
|
|
6
|
+
let {
|
|
7
|
+
className,
|
|
8
|
+
color,
|
|
9
|
+
text,
|
|
10
|
+
dataTitle,
|
|
11
|
+
fontWeight,
|
|
12
|
+
dataId
|
|
13
|
+
} = props;
|
|
14
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
15
|
+
className: `${style.statusText} ${style[color]} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
|
|
16
|
+
"data-title": dataTitle,
|
|
17
|
+
"data-id": dataId,
|
|
18
|
+
"data-test-id": dataId
|
|
19
|
+
}, text);
|
|
27
20
|
}
|
|
28
21
|
StatusText.propTypes = StatusText_propTypes;
|
|
29
|
-
StatusText.defaultProps = StatusText_defaultProps;
|
|
30
|
-
// StatusText.docs = {
|
|
31
|
-
// folderName: 'List',
|
|
32
|
-
// componentGroup: 'StatusText'
|
|
33
|
-
// };
|
|
34
|
-
// }
|
|
22
|
+
StatusText.defaultProps = StatusText_defaultProps;
|
|
@@ -1,53 +1,41 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
|
|
3
|
-
import React
|
|
3
|
+
import React from 'react';
|
|
4
4
|
import { TicketId_defaultProps } from '../../../list/SecondaryText/props/defaultProps';
|
|
5
5
|
import { TicketId_propTypes } from '../../../list/SecondaryText/props/propTypes';
|
|
6
6
|
import Link from '../../Link/Link';
|
|
7
7
|
import style from '../../../list/SecondaryText/SecondaryText.module.css';
|
|
8
|
-
export default
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
urlData: urlData,
|
|
40
|
-
href: url,
|
|
41
|
-
target: target,
|
|
42
|
-
onClick: onClick
|
|
43
|
-
}, LinkProps), text) : text);
|
|
44
|
-
}
|
|
45
|
-
|
|
8
|
+
export default function TicketId(props) {
|
|
9
|
+
let {
|
|
10
|
+
text,
|
|
11
|
+
className,
|
|
12
|
+
dataId,
|
|
13
|
+
isLink,
|
|
14
|
+
dataTitle,
|
|
15
|
+
onClick,
|
|
16
|
+
url,
|
|
17
|
+
target,
|
|
18
|
+
urlName,
|
|
19
|
+
urlData,
|
|
20
|
+
customProps
|
|
21
|
+
} = props;
|
|
22
|
+
let {
|
|
23
|
+
LinkProps = {},
|
|
24
|
+
TicketIdProps = {}
|
|
25
|
+
} = customProps;
|
|
26
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
27
|
+
className: `${style.ticketId} ${isLink ? style.ticketIdLink : ''} ${className ? className : ''}`,
|
|
28
|
+
"data-id": dataId,
|
|
29
|
+
"data-test-id": dataId,
|
|
30
|
+
"data-title": dataTitle,
|
|
31
|
+
onClick: !isLink && onClick
|
|
32
|
+
}, TicketIdProps), isLink ? /*#__PURE__*/React.createElement(Link, _extends({
|
|
33
|
+
urlName: urlName,
|
|
34
|
+
urlData: urlData,
|
|
35
|
+
href: url,
|
|
36
|
+
target: target,
|
|
37
|
+
onClick: onClick
|
|
38
|
+
}, LinkProps), text) : text);
|
|
46
39
|
}
|
|
47
40
|
TicketId.propTypes = TicketId_propTypes;
|
|
48
|
-
TicketId.defaultProps = TicketId_defaultProps;
|
|
49
|
-
// TicketId.docs = {
|
|
50
|
-
// folderName: 'List',
|
|
51
|
-
// componentGroup: 'TicketId'
|
|
52
|
-
// };
|
|
53
|
-
// }
|
|
41
|
+
TicketId.defaultProps = TicketId_defaultProps;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable react/forbid-component-props */
|
|
2
2
|
|
|
3
3
|
/**** Libraries ****/
|
|
4
|
-
import React
|
|
4
|
+
import React from 'react';
|
|
5
5
|
import { Website_defaultProps } from '../../../list/SecondaryText/props/defaultProps';
|
|
6
6
|
import { Website_propTypes } from '../../../list/SecondaryText/props/propTypes';
|
|
7
7
|
/**** Components ****/
|
|
@@ -10,34 +10,26 @@ import ExternalLink from '../../ExternalLink/ExternalLink';
|
|
|
10
10
|
/**** CSS ****/
|
|
11
11
|
|
|
12
12
|
import style from '../../../list/SecondaryText/SecondaryText.module.css';
|
|
13
|
-
export default
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}, text));
|
|
34
|
-
}
|
|
35
|
-
|
|
13
|
+
export default function Website(props) {
|
|
14
|
+
let {
|
|
15
|
+
text,
|
|
16
|
+
className,
|
|
17
|
+
title,
|
|
18
|
+
href,
|
|
19
|
+
dataId,
|
|
20
|
+
isLink,
|
|
21
|
+
target
|
|
22
|
+
} = props;
|
|
23
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(ExternalLink, {
|
|
24
|
+
className: `${style.textStyle} ${className ? className : ''}`,
|
|
25
|
+
href: href,
|
|
26
|
+
title: title,
|
|
27
|
+
dataId: dataId,
|
|
28
|
+
target: target
|
|
29
|
+
}, text) : /*#__PURE__*/React.createElement("div", {
|
|
30
|
+
className: `${style.secondaryText} ${className ? className : ''}`,
|
|
31
|
+
"data-title": text
|
|
32
|
+
}, text));
|
|
36
33
|
}
|
|
37
34
|
Website.propTypes = Website_propTypes;
|
|
38
|
-
Website.defaultProps = Website_defaultProps;
|
|
39
|
-
// Website.docs = {
|
|
40
|
-
// folderName: 'List',
|
|
41
|
-
// componentGroup: 'WebsiteText'
|
|
42
|
-
// };
|
|
43
|
-
// }
|
|
35
|
+
Website.defaultProps = Website_defaultProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**** Libraries ****/
|
|
2
|
-
import React
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { SecondryPanel_defaultProps, SecondryPanelUL_defaultProps, SecondryPanelLI_defaultProps, SecondryPanelItem_defaultProps } from '../../../list/SecondryPanel/props/defaultProps';
|
|
4
4
|
import { SecondryPanel_propTypes, SecondryPanelUL_propTypes, SecondryPanelLI_propTypes, SecondryPanelItem_propTypes } from '../../../list/SecondryPanel/props/propTypes';
|
|
5
5
|
/**** Components ****/
|
|
@@ -9,96 +9,79 @@ import Dot from '../Dot/Dot';
|
|
|
9
9
|
/**** CSS ****/
|
|
10
10
|
|
|
11
11
|
import style from '../../../list/SecondryPanel/SecondryPanel.module.css';
|
|
12
|
-
export default
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}, children);
|
|
21
|
-
}
|
|
22
|
-
|
|
12
|
+
export default function SecondryPanel(props) {
|
|
13
|
+
let {
|
|
14
|
+
children,
|
|
15
|
+
className
|
|
16
|
+
} = props;
|
|
17
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
18
|
+
className: className
|
|
19
|
+
}, children);
|
|
23
20
|
}
|
|
24
21
|
SecondryPanel.propTypes = SecondryPanel_propTypes;
|
|
25
22
|
SecondryPanel.defaultProps = SecondryPanel_defaultProps;
|
|
26
|
-
export
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}, children);
|
|
42
|
-
}
|
|
43
|
-
|
|
23
|
+
export function SecondryPanelUL(props) {
|
|
24
|
+
let {
|
|
25
|
+
children,
|
|
26
|
+
className,
|
|
27
|
+
dataId,
|
|
28
|
+
align
|
|
29
|
+
} = props;
|
|
30
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
31
|
+
isInline: true,
|
|
32
|
+
isCover: false,
|
|
33
|
+
alignBox: "row",
|
|
34
|
+
align: align,
|
|
35
|
+
className: `${style.listItemContainer} ${className}`,
|
|
36
|
+
dataId: dataId
|
|
37
|
+
}, children);
|
|
44
38
|
}
|
|
45
39
|
SecondryPanelUL.propTypes = SecondryPanelUL_propTypes;
|
|
46
40
|
SecondryPanelUL.defaultProps = SecondryPanelUL_defaultProps;
|
|
47
|
-
export
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}, children);
|
|
63
|
-
}
|
|
64
|
-
|
|
41
|
+
export function SecondryPanelLI(props) {
|
|
42
|
+
let {
|
|
43
|
+
children,
|
|
44
|
+
className,
|
|
45
|
+
isShrink,
|
|
46
|
+
dataId
|
|
47
|
+
} = props;
|
|
48
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
49
|
+
flexible: true,
|
|
50
|
+
dataId: dataId // eslint-disable-next-line react/forbid-component-props
|
|
51
|
+
,
|
|
52
|
+
className: className,
|
|
53
|
+
adjust: true,
|
|
54
|
+
shrink: isShrink ? true : false
|
|
55
|
+
}, children);
|
|
65
56
|
}
|
|
66
57
|
SecondryPanelLI.propTypes = SecondryPanelLI_propTypes;
|
|
67
58
|
SecondryPanelLI.defaultProps = SecondryPanelLI_defaultProps;
|
|
68
|
-
export
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
})) : null);
|
|
95
|
-
}
|
|
96
|
-
|
|
59
|
+
export function SecondryPanelItem(props) {
|
|
60
|
+
let {
|
|
61
|
+
children,
|
|
62
|
+
className,
|
|
63
|
+
dotClass,
|
|
64
|
+
isDot,
|
|
65
|
+
flex,
|
|
66
|
+
clipped,
|
|
67
|
+
dotSpacingType,
|
|
68
|
+
title
|
|
69
|
+
} = props;
|
|
70
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
71
|
+
align: "baseline",
|
|
72
|
+
isInline: flex ? false : true,
|
|
73
|
+
className: className,
|
|
74
|
+
"data-title": title,
|
|
75
|
+
alignBox: "row"
|
|
76
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
77
|
+
flexible: true,
|
|
78
|
+
shrink: clipped,
|
|
79
|
+
className: `${clipped ? style.dottedStyle : ''}`
|
|
80
|
+
}, children), isDot ? /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Dot // eslint-disable-next-line react/forbid-component-props
|
|
81
|
+
, {
|
|
82
|
+
className: `${dotClass ? dotClass : ''}`,
|
|
83
|
+
spacingType: dotSpacingType
|
|
84
|
+
})) : null);
|
|
97
85
|
}
|
|
98
86
|
SecondryPanelItem.propTypes = SecondryPanelItem_propTypes;
|
|
99
|
-
SecondryPanelItem.defaultProps = SecondryPanelItem_defaultProps;
|
|
100
|
-
// SecondryPanel.docs = {
|
|
101
|
-
// folderName: 'List',
|
|
102
|
-
// componentGroup: 'SecondaryLayout'
|
|
103
|
-
// };
|
|
104
|
-
// }
|
|
87
|
+
SecondryPanelItem.defaultProps = SecondryPanelItem_defaultProps;
|
|
@@ -2,33 +2,22 @@ import React from 'react';
|
|
|
2
2
|
import { propTypes } from '../../../list/SentimentStatus/props/propTypes';
|
|
3
3
|
import style from '../../../list/SentimentStatus/SentimentStatus.module.css';
|
|
4
4
|
import { Icon } from '@zohodesk/icons';
|
|
5
|
-
export default
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"data-title": dataTitle
|
|
23
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
24
|
-
name: icons[type],
|
|
25
|
-
iconClass: style.sentimentIcon
|
|
26
|
-
}));
|
|
27
|
-
}
|
|
28
|
-
|
|
5
|
+
export default function SentimentStatus(props) {
|
|
6
|
+
let {
|
|
7
|
+
type,
|
|
8
|
+
dataTitle
|
|
9
|
+
} = props;
|
|
10
|
+
const icons = {
|
|
11
|
+
neutral: 'ZD-botNeutral',
|
|
12
|
+
negative: 'ZD-botNegative',
|
|
13
|
+
positive: 'ZD-botPositive'
|
|
14
|
+
};
|
|
15
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
16
|
+
className: style.container,
|
|
17
|
+
"data-title": dataTitle
|
|
18
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
19
|
+
name: icons[type],
|
|
20
|
+
iconClass: style.sentimentIcon
|
|
21
|
+
}));
|
|
29
22
|
}
|
|
30
|
-
SentimentStatus.propTypes = propTypes;
|
|
31
|
-
// SentimentStatus.docs = {
|
|
32
|
-
// componentGroup: ''
|
|
33
|
-
// };
|
|
34
|
-
// }
|
|
23
|
+
SentimentStatus.propTypes = propTypes;
|
|
@@ -369,6 +369,6 @@ function StatusDropdown(props) {
|
|
|
369
369
|
StatusDropdown.defaultProps = defaultProps;
|
|
370
370
|
StatusDropdown.propTypes = propTypes;
|
|
371
371
|
const StatusDropdown_Component = Popup(StatusDropdown);
|
|
372
|
-
StatusDropdown_Component.defaultProps =
|
|
373
|
-
StatusDropdown_Component.propTypes =
|
|
372
|
+
StatusDropdown_Component.defaultProps = defaultProps;
|
|
373
|
+
StatusDropdown_Component.propTypes = propTypes;
|
|
374
374
|
export default StatusDropdown_Component;
|