@zohodesk/dot 1.0.0-temp-175.6 → 1.0.0-temp-181
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/propValidation_report.html +1 -1
- package/README.md +30 -0
- package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +0 -1
- package/assets/Appearance/light/mode/Dot_LightMode.module.css +0 -1
- package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +0 -1
- 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 +7 -7
- package/coverage/IconButton/IconButton.module.css.html +1 -1
- package/coverage/IconButton/index.html +11 -11
- package/coverage/IconButton/props/defaultProps.js.html +1 -1
- package/coverage/IconButton/props/index.html +1 -1
- package/coverage/IconButton/props/propTypes.js.html +1 -1
- 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 +16 -16
- package/coverage/coverage-summary.json +17 -17
- package/coverage/index.html +11 -11
- package/es/Drawer/Drawer.js +6 -3
- package/es/Drawer/props/defaultProps.js +2 -1
- package/es/Drawer/props/propTypes.js +2 -1
- package/es/Hooks/Dragger/useDragger.js +4 -3
- package/es/IconButton/IconButton.js +2 -2
- package/es/NewStar/NewStar.module.css +128 -67
- package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +4 -0
- package/es/form/fields/TextEditor/TextEditor.module.css +63 -47
- package/es/list/status/StatusDropdown/StatusDropdown.js +2 -1
- package/es/list/status/StatusListItem/StatusListItem.js +12 -5
- package/es/list/status/StatusListItem/props/defaultProps.js +2 -1
- package/es/list/status/StatusListItem/props/propTypes.js +3 -1
- package/es/lookup/Lookup/Lookup.js +6 -3
- package/es/v1/DotWrapper/DotWrapper.js +28 -0
- package/es/v1/DotWrapper/libraryChunks/appearance/component/DarkMode_Component.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/appearance/component/LightMode_Component.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/appearance/component/PureDarkMode_Component.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/appearance/dot/DarkMode_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/appearance/dot/LightMode_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/appearance/dot/PureDarkMode_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/appearance/svg/DarkMode_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/appearance/svg/LightMode_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/appearance/svg/PureDarkMode_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/dynamicImports.js +19 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_Dark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_Light_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/green/Green_Dark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/green/Green_Light_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/green/Green_PureDark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_Dark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_Light_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/red/Red_Dark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/red/Red_Light_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/red/Red_PureDark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_Dark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_Light_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_PureDark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/green/Green_Dark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/green/Green_Light_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/green/Green_PureDark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_Dark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_Light_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_PureDark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/red/Red_Dark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/red/Red_Light_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/red/Red_PureDark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_Dark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_Light_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_PureDark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_Dark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_Light_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_PureDark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/green/Green_Dark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/green/Green_Light_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/green/Green_PureDark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_Dark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_Light_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_PureDark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/red/Red_Dark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/red/Red_Light_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/red/Red_PureDark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_Dark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_Light_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_PureDark_SVG.js +1 -0
- package/es/v1/DotWrapper/props/defaultProps.js +7 -0
- package/es/v1/DotWrapper/props/propTypes.js +8 -0
- package/es/v1/DotWrapper/utils/appearanceProperties.js +46 -0
- package/es/v1/DotWrapper/utils/errorMessage.js +7 -0
- package/es/v1/DotWrapper/utils/importFiles.js +18 -0
- package/es/v1/DotWrapper/utils/themeProperties.js +220 -0
- package/es/v1/Drawer/Drawer.js +6 -3
- package/es/v1/Drawer/props/defaultProps.js +2 -1
- package/es/v1/Drawer/props/propTypes.js +2 -1
- package/es/v1/GlobalNotification/GlobalNotification.js +51 -19
- package/es/v1/GlobalNotification/props/defaultProps.js +3 -1
- package/es/v1/GlobalNotification/props/propTypes.js +12 -2
- package/es/v1/IconButton/IconButton.js +2 -2
- package/es/v1/form/fields/SelectField/SelectField.js +1 -9
- package/es/v1/form/fields/TextBoxField/TextBoxField.js +122 -142
- package/es/v1/form/fields/TextEditorField/TextEditorField.js +133 -153
- package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +137 -178
- package/es/v1/form/fields/TextareaField/TextareaField.js +113 -137
- package/es/v1/form/fields/ValidationMessage/ValidationMessage.js +43 -43
- package/es/v1/form/layout/Field/Field.js +24 -28
- package/es/v1/form/layout/Section/Section.js +25 -33
- package/es/v1/form/layout/Section/props/propTypes.js +0 -1
- package/es/v1/list/Subject/Subject.js +39 -48
- package/es/v1/list/TagNew/TagNew.js +18 -27
- package/es/v1/list/Thread/Thread.js +26 -35
- package/es/v1/list/status/StatusDropdown/StatusDropdown.js +2 -1
- package/es/v1/list/status/StatusListItem/StatusListItem.js +12 -5
- package/es/v1/list/status/StatusListItem/props/defaultProps.js +2 -1
- package/es/v1/list/status/StatusListItem/props/propTypes.js +3 -1
- package/es/v1/lookup/Lookup/Lookup.js +6 -3
- package/es/version2/GlobalNotification/GlobalNotification.module.css +1 -2
- package/lib/Drawer/Drawer.js +6 -3
- package/lib/Drawer/props/defaultProps.js +2 -1
- package/lib/Drawer/props/propTypes.js +2 -1
- package/lib/Hooks/Dragger/useDragger.js +4 -3
- package/lib/IconButton/IconButton.js +2 -2
- package/lib/NewStar/NewStar.module.css +128 -67
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +4 -0
- package/lib/form/fields/TextEditor/TextEditor.module.css +63 -47
- package/lib/list/status/StatusDropdown/StatusDropdown.js +2 -1
- package/lib/list/status/StatusListItem/StatusListItem.js +12 -5
- package/lib/list/status/StatusListItem/props/defaultProps.js +2 -1
- package/lib/list/status/StatusListItem/props/propTypes.js +3 -1
- package/lib/lookup/Lookup/Lookup.js +14 -3
- package/lib/v1/DotWrapper/DotWrapper.js +41 -0
- package/lib/v1/DotWrapper/libraryChunks/appearance/component/DarkMode_Component.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/appearance/component/LightMode_Component.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/appearance/component/PureDarkMode_Component.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/appearance/dot/DarkMode_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/appearance/dot/LightMode_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/appearance/dot/PureDarkMode_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/appearance/svg/DarkMode_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/appearance/svg/LightMode_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/appearance/svg/PureDarkMode_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/dynamicImports.js +33 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_Dark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_Light_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/green/Green_Dark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/green/Green_Light_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/green/Green_PureDark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_Dark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_Light_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/red/Red_Dark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/red/Red_Light_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/red/Red_PureDark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_Dark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_Light_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_PureDark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/green/Green_Dark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/green/Green_Light_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/green/Green_PureDark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_Dark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_Light_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_PureDark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/red/Red_Dark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/red/Red_Light_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/red/Red_PureDark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_Dark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_Light_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_PureDark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_Dark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_Light_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_PureDark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/green/Green_Dark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/green/Green_Light_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/green/Green_PureDark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_Dark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_Light_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_PureDark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/red/Red_Dark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/red/Red_Light_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/red/Red_PureDark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_Dark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_Light_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_PureDark_SVG.js +3 -0
- package/lib/v1/DotWrapper/props/defaultProps.js +14 -0
- package/lib/v1/DotWrapper/props/propTypes.js +19 -0
- package/lib/v1/DotWrapper/utils/appearanceProperties.js +79 -0
- package/lib/v1/DotWrapper/utils/errorMessage.js +14 -0
- package/lib/v1/DotWrapper/utils/importFiles.js +25 -0
- package/lib/v1/DotWrapper/utils/themeProperties.js +325 -0
- package/lib/v1/Drawer/Drawer.js +6 -3
- package/lib/v1/Drawer/props/defaultProps.js +2 -1
- package/lib/v1/Drawer/props/propTypes.js +2 -1
- package/lib/v1/GlobalNotification/GlobalNotification.js +66 -17
- package/lib/v1/GlobalNotification/props/defaultProps.js +3 -1
- package/lib/v1/GlobalNotification/props/propTypes.js +17 -4
- package/lib/v1/IconButton/IconButton.js +2 -2
- package/lib/v1/form/fields/SelectField/SelectField.js +1 -7
- package/lib/v1/form/fields/TextBoxField/TextBoxField.js +125 -181
- package/lib/v1/form/fields/TextEditorField/TextEditorField.js +138 -193
- package/lib/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +160 -212
- package/lib/v1/form/fields/TextareaField/TextareaField.js +117 -177
- package/lib/v1/form/fields/ValidationMessage/ValidationMessage.js +41 -80
- package/lib/v1/form/layout/Field/Field.js +22 -69
- package/lib/v1/form/layout/Section/Section.js +27 -72
- package/lib/v1/form/layout/Section/props/propTypes.js +0 -1
- package/lib/v1/list/Subject/Subject.js +39 -87
- package/lib/v1/list/TagNew/TagNew.js +18 -66
- package/lib/v1/list/Thread/Thread.js +25 -73
- package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +2 -1
- package/lib/v1/list/status/StatusListItem/StatusListItem.js +12 -5
- package/lib/v1/list/status/StatusListItem/props/defaultProps.js +2 -1
- package/lib/v1/list/status/StatusListItem/props/propTypes.js +3 -1
- package/lib/v1/lookup/Lookup/Lookup.js +11 -6
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +1 -2
- package/package.json +13 -13
- package/prePublish.js +0 -69
- package/react-cli.config.js +6 -1
- package/result.json +1 -1
- package/unittest/index.html +1 -1
|
@@ -1,43 +1,34 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { defaultProps } from './props/defaultProps';
|
|
3
3
|
import { propTypes } from './props/propTypes';
|
|
4
4
|
import { Icon } from '@zohodesk/icons';
|
|
5
5
|
import Button from '@zohodesk/components/es/v1/semantic/Button/Button';
|
|
6
6
|
import style from '../../../list/Thread/Thread.module.css';
|
|
7
|
-
export default class Thread extends Component {
|
|
8
|
-
constructor(props) {
|
|
9
|
-
super(props);
|
|
10
|
-
}
|
|
11
7
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
8
|
+
const Thread = props => {
|
|
9
|
+
const {
|
|
10
|
+
count: threadCount,
|
|
11
|
+
className,
|
|
12
|
+
iconTitle,
|
|
13
|
+
dataId,
|
|
14
|
+
align
|
|
15
|
+
} = props;
|
|
16
|
+
const count = threadCount === '0' ? '1' : threadCount;
|
|
17
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
18
|
+
customClass: `${style.container} ${style[`align_${align}`]} ${className}`,
|
|
19
|
+
title: iconTitle,
|
|
20
|
+
dataId: dataId,
|
|
21
|
+
a11y: {
|
|
22
|
+
ariaLabel: iconTitle
|
|
23
|
+
}
|
|
24
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
25
|
+
name: "ZD-TK-thread",
|
|
26
|
+
size: "9"
|
|
27
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
28
|
+
className: style.count
|
|
29
|
+
}, count));
|
|
30
|
+
};
|
|
35
31
|
|
|
36
|
-
|
|
32
|
+
export default Thread;
|
|
37
33
|
Thread.propTypes = propTypes;
|
|
38
|
-
Thread.defaultProps = defaultProps;
|
|
39
|
-
// Thread.docs = {
|
|
40
|
-
// folderName: 'List',
|
|
41
|
-
// componentGroup: 'Thread'
|
|
42
|
-
// };
|
|
43
|
-
// }
|
|
34
|
+
Thread.defaultProps = defaultProps;
|
|
@@ -352,7 +352,8 @@ function StatusDropdown(props) {
|
|
|
352
352
|
needMultiLineText: needMultiLineText,
|
|
353
353
|
a11y: {
|
|
354
354
|
role: isSearch ? 'option' : 'menuitem',
|
|
355
|
-
ariaSelected: value === item[keyName]
|
|
355
|
+
ariaSelected: value === item[keyName],
|
|
356
|
+
'data-a11y-list-active': selectedIndex === i
|
|
356
357
|
}
|
|
357
358
|
})))) : isDataLoaded ? /*#__PURE__*/React.createElement(CommonEmptyState, {
|
|
358
359
|
className: style.svgWrapper,
|
|
@@ -35,7 +35,9 @@ export default function StatusListItem(props) {
|
|
|
35
35
|
getRef,
|
|
36
36
|
id,
|
|
37
37
|
onClick,
|
|
38
|
-
onMouseEnter
|
|
38
|
+
onMouseEnter,
|
|
39
|
+
customClass,
|
|
40
|
+
children
|
|
39
41
|
} = props;
|
|
40
42
|
let options = {};
|
|
41
43
|
let {
|
|
@@ -70,7 +72,7 @@ export default function StatusListItem(props) {
|
|
|
70
72
|
isCover: false,
|
|
71
73
|
align: "baseline",
|
|
72
74
|
alignBox: "row",
|
|
73
|
-
className: `${style.list} ${style[size]} ${style[palette]} ${active ? style.active : highlight && !isDisabled ? style.hover : ''} ${autoHover && !isDisabled ? style.effect : ''} ${needTick ? style.withTick : ''} ${isDisabled ? CssProvider('isDisable') : ''} ${needBorder ? style.withBorder : ''}`,
|
|
75
|
+
className: `${style.list} ${style[size]} ${style[palette]} ${active ? style.active : highlight && !isDisabled ? style.hover : ''} ${autoHover && !isDisabled ? style.effect : ''} ${needTick ? style.withTick : ''} ${isDisabled ? CssProvider('isDisable') : ''} ${needBorder ? style.withBorder : ''} ${customClass}`,
|
|
74
76
|
dataId: String(value).replace("'", '_'),
|
|
75
77
|
onClick: !isDisabled && handleClick,
|
|
76
78
|
onMouseEnter: handleMouseEnter,
|
|
@@ -78,14 +80,19 @@ export default function StatusListItem(props) {
|
|
|
78
80
|
tagName: isLink ? 'a' : 'li',
|
|
79
81
|
"data-title": isDisabled ? disableTitle : null,
|
|
80
82
|
tabindex: isDisabled ? '-1' : '0'
|
|
81
|
-
}, options), /*#__PURE__*/React.createElement(Box, {
|
|
83
|
+
}, options, a11y), /*#__PURE__*/React.createElement(Box, {
|
|
82
84
|
className: `${style.statusType} ${style[bulletColor]}`
|
|
83
85
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
84
|
-
"data-title": isDisabled ? null : title,
|
|
85
86
|
flexible: true,
|
|
87
|
+
shrink: true
|
|
88
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
89
|
+
alignBox: "row",
|
|
90
|
+
align: needMultiLineText ? 'top' : 'vertical'
|
|
91
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
92
|
+
"data-title": isDisabled ? null : title,
|
|
86
93
|
shrink: true,
|
|
87
94
|
className: needMultiLineText ? style.multiLineValue : style.value
|
|
88
|
-
}, value), needTick && active ? /*#__PURE__*/React.createElement("div", {
|
|
95
|
+
}, value), /*#__PURE__*/React.createElement(Box, null, children && children))), needTick && active ? /*#__PURE__*/React.createElement("div", {
|
|
89
96
|
className: style.tickIcon,
|
|
90
97
|
"aria-hidden": ariaHidden
|
|
91
98
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
@@ -1,3 +1,5 @@
|
|
|
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
|
+
|
|
1
3
|
/*** Libraries ***/
|
|
2
4
|
import React, { useRef, useCallback, useEffect } from 'react';
|
|
3
5
|
import { useEffectCallOnlyAfterState } from '@zohodesk/hooks';
|
|
@@ -36,7 +38,8 @@ export default function Lookup(props) {
|
|
|
36
38
|
ariaLabelledby,
|
|
37
39
|
ariaDescribedby,
|
|
38
40
|
ariaLabel,
|
|
39
|
-
ariaModal = isActive ? true : undefined
|
|
41
|
+
ariaModal = isActive ? true : undefined,
|
|
42
|
+
...a11yAttributes
|
|
40
43
|
} = a11y;
|
|
41
44
|
const {
|
|
42
45
|
focusScopeProps = {}
|
|
@@ -64,7 +67,7 @@ export default function Lookup(props) {
|
|
|
64
67
|
document.removeEventListener('keydown', handleKeyDown);
|
|
65
68
|
};
|
|
66
69
|
}, []);
|
|
67
|
-
const content = /*#__PURE__*/React.createElement("div", {
|
|
70
|
+
const content = /*#__PURE__*/React.createElement("div", _extends({
|
|
68
71
|
ref: createRef,
|
|
69
72
|
tabIndex: "-1",
|
|
70
73
|
"data-a11y-need-focus-style": "false",
|
|
@@ -77,7 +80,7 @@ export default function Lookup(props) {
|
|
|
77
80
|
className: `${style.box} ${style[`${size}Size`]}`,
|
|
78
81
|
"data-id": dataId,
|
|
79
82
|
"data-test-id": dataId
|
|
80
|
-
}, /*#__PURE__*/React.createElement(Container, {
|
|
83
|
+
}, a11yAttributes), /*#__PURE__*/React.createElement(Container, {
|
|
81
84
|
"data-drag-container": "true",
|
|
82
85
|
isCover: false,
|
|
83
86
|
className: isMinHeight ? `${style.wrapper}` : `${style.coverwrap}`
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
--commonalert_border_color: var(--zdt_commonalert_default_border);
|
|
4
4
|
--globalnotification_bg_color: var(--zdt_globalnotification_default_bg);
|
|
5
5
|
--globalnotification_text_color: var(--zdt_globalnotification_default_text);
|
|
6
|
-
--globalnotification_box_shadow: var(--zdt_globalnotification_default_box_shadow);
|
|
7
6
|
}
|
|
8
7
|
|
|
9
8
|
.message {
|
|
@@ -180,4 +179,4 @@
|
|
|
180
179
|
[dir=rtl] .close {
|
|
181
180
|
left: var(--zd_size12) ;
|
|
182
181
|
margin: auto var(--zd_size25) auto 0 ;
|
|
183
|
-
}
|
|
182
|
+
}
|
package/lib/Drawer/Drawer.js
CHANGED
|
@@ -39,6 +39,8 @@ var _FocusScope = _interopRequireDefault(require("@zohodesk/a11y/es/FocusScope/F
|
|
|
39
39
|
|
|
40
40
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
41
41
|
|
|
42
|
+
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); }
|
|
43
|
+
|
|
42
44
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
43
45
|
|
|
44
46
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
@@ -253,7 +255,8 @@ var Drawer = /*#__PURE__*/function (_React$Component4) {
|
|
|
253
255
|
onBodyClick = _this$props4.onBodyClick,
|
|
254
256
|
onClose = _this$props4.onClose,
|
|
255
257
|
needFocusScope = _this$props4.needFocusScope,
|
|
256
|
-
customProps = _this$props4.customProps
|
|
258
|
+
customProps = _this$props4.customProps,
|
|
259
|
+
a11y = _this$props4.a11y;
|
|
257
260
|
var _customProps$focusSco = customProps.focusScopeProps,
|
|
258
261
|
focusScopeProps = _customProps$focusSco === void 0 ? {} : _customProps$focusSco;
|
|
259
262
|
var _focusScopeProps$need = focusScopeProps.needAutoFocus,
|
|
@@ -280,12 +283,12 @@ var Drawer = /*#__PURE__*/function (_React$Component4) {
|
|
|
280
283
|
return child;
|
|
281
284
|
});
|
|
282
285
|
|
|
283
|
-
var content = /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
286
|
+
var content = /*#__PURE__*/_react["default"].createElement(_Layout.Box, _extends({
|
|
284
287
|
className: "".concat(_DrawerModule["default"].container, " ").concat(_DrawerModule["default"].columns, " ").concat(_DrawerModule["default"].drawerModal, " ").concat(uptoTablet ? _DrawerModule["default"].mbleSize : _DrawerModule["default"][size]),
|
|
285
288
|
"data-a11y-need-focus-style": "false",
|
|
286
289
|
tabindex: -1,
|
|
287
290
|
eleRef: this.createRef
|
|
288
|
-
}, /*#__PURE__*/_react["default"].createElement(_Card.Card, {
|
|
291
|
+
}, a11y), /*#__PURE__*/_react["default"].createElement(_Card.Card, {
|
|
289
292
|
onClick: function onClick(e) {
|
|
290
293
|
e && e.stopPropagation && e.stopPropagation();
|
|
291
294
|
onBodyClick(e);
|
|
@@ -61,6 +61,7 @@ var Drawer_propTypes = {
|
|
|
61
61
|
subDrawerSize: _propTypes["default"].oneOf(['xsmall', 'small', 'medium']),
|
|
62
62
|
needFocusScope: _propTypes["default"].bool,
|
|
63
63
|
customProps: _propTypes["default"].object,
|
|
64
|
-
innerPortalName: _propTypes["default"].string
|
|
64
|
+
innerPortalName: _propTypes["default"].string,
|
|
65
|
+
a11y: _propTypes["default"].object
|
|
65
66
|
};
|
|
66
67
|
exports.Drawer_propTypes = Drawer_propTypes;
|
|
@@ -37,9 +37,10 @@ function useDragger(_ref) {
|
|
|
37
37
|
});
|
|
38
38
|
var draggable = (0, _react.useRef)(false);
|
|
39
39
|
(0, _react.useEffect)(function () {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
if (isActive) {
|
|
41
|
+
parentEle.current = ChildRef.current.closest('[data-drag-parent=true]') || (0, _Config.getDotLibraryConfig)('draggerBoundary') || document.body;
|
|
42
|
+
}
|
|
43
|
+
}, [isActive]); //calculateDragPosition --> To sperate Dom action
|
|
43
44
|
|
|
44
45
|
var calculateDragPosition = (0, _react.useCallback)(function (x, y) {
|
|
45
46
|
if (parentEle.current && draggableEle.current) {
|
|
@@ -73,8 +73,8 @@ var IconButton = /*#__PURE__*/function (_React$Component) {
|
|
|
73
73
|
key: "handleToggle",
|
|
74
74
|
value: function handleToggle(e) {
|
|
75
75
|
if (e.key === ' ' || e.key === 'Enter' || e.key === 'Spacebar') {
|
|
76
|
-
e.preventDefault();
|
|
77
|
-
|
|
76
|
+
e.preventDefault(); // this.triggerClick(e);
|
|
77
|
+
|
|
78
78
|
this.triggerMouseDown(e);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
position: absolute;
|
|
3
3
|
height: var(--zd_size20) ;
|
|
4
4
|
width: var(--zd_size21) ;
|
|
5
|
+
pointer-events: none;
|
|
5
6
|
}
|
|
6
7
|
.topLeft {
|
|
7
8
|
top: 0 ;
|
|
@@ -90,73 +91,133 @@
|
|
|
90
91
|
animation-delay: 1s;
|
|
91
92
|
}
|
|
92
93
|
|
|
93
|
-
.topLeft .starOne{
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
[dir=
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
.topLeft .
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
[dir=
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
[dir=ltr] .
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
.
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
[dir=ltr] .
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
.
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
[dir=ltr] .
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
.
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
94
|
+
.topLeft .starOne {
|
|
95
|
+
top: 0 ;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
[dir=ltr] .topLeft .starOne {
|
|
99
|
+
left: 0 ;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
[dir=rtl] .topLeft .starOne {
|
|
103
|
+
right: 0 ;
|
|
104
|
+
}
|
|
105
|
+
.topLeft .starTwo {
|
|
106
|
+
top: 0 ;
|
|
107
|
+
/* Variable:Ignore */
|
|
108
|
+
}
|
|
109
|
+
[dir=ltr] .topLeft .starTwo {
|
|
110
|
+
left: var(--zd_size10) ;
|
|
111
|
+
}
|
|
112
|
+
[dir=rtl] .topLeft .starTwo {
|
|
113
|
+
right: var(--zd_size10) ;
|
|
114
|
+
}
|
|
115
|
+
.topLeft .starThree {
|
|
116
|
+
/* Variable:Ignore */
|
|
117
|
+
top: 10px;
|
|
118
|
+
}
|
|
119
|
+
[dir=ltr] .topLeft .starThree {
|
|
120
|
+
left: 0 ;
|
|
121
|
+
}
|
|
122
|
+
[dir=rtl] .topLeft .starThree {
|
|
123
|
+
right: 0 ;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.topRight .starOne {
|
|
127
|
+
top: 0 ;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
[dir=ltr] .topRight .starOne {
|
|
131
|
+
right: 0 ;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
[dir=rtl] .topRight .starOne {
|
|
135
|
+
left: 0 ;
|
|
136
|
+
}
|
|
137
|
+
.topRight .starTwo {
|
|
138
|
+
top: 0 ;
|
|
139
|
+
/* Variable:Ignore */
|
|
140
|
+
}
|
|
141
|
+
[dir=ltr] .topRight .starTwo {
|
|
142
|
+
right: var(--zd_size10) ;
|
|
143
|
+
}
|
|
144
|
+
[dir=rtl] .topRight .starTwo {
|
|
145
|
+
left: var(--zd_size10) ;
|
|
146
|
+
}
|
|
147
|
+
.topRight .starThree {
|
|
148
|
+
/* Variable:Ignore */
|
|
149
|
+
top: 10px;
|
|
150
|
+
}
|
|
151
|
+
[dir=ltr] .topRight .starThree {
|
|
152
|
+
right: 0 ;
|
|
153
|
+
}
|
|
154
|
+
[dir=rtl] .topRight .starThree {
|
|
155
|
+
left: 0 ;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.bottomLeft .starOne {
|
|
159
|
+
bottom: 0 ;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
[dir=ltr] .bottomLeft .starOne {
|
|
163
|
+
left: 0 ;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
[dir=rtl] .bottomLeft .starOne {
|
|
167
|
+
right: 0 ;
|
|
168
|
+
}
|
|
169
|
+
.bottomLeft .starTwo {
|
|
170
|
+
bottom: 0 ;
|
|
171
|
+
/* Variable:Ignore */
|
|
172
|
+
}
|
|
173
|
+
[dir=ltr] .bottomLeft .starTwo {
|
|
174
|
+
left: var(--zd_size10) ;
|
|
175
|
+
}
|
|
176
|
+
[dir=rtl] .bottomLeft .starTwo {
|
|
177
|
+
right: var(--zd_size10) ;
|
|
178
|
+
}
|
|
179
|
+
.bottomLeft .starThree {
|
|
180
|
+
/* Variable:Ignore */
|
|
181
|
+
bottom: 10px;
|
|
182
|
+
}
|
|
183
|
+
[dir=ltr] .bottomLeft .starThree {
|
|
184
|
+
left: 0 ;
|
|
185
|
+
}
|
|
186
|
+
[dir=rtl] .bottomLeft .starThree {
|
|
187
|
+
right: 0 ;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.bottomRight .starOne {
|
|
191
|
+
bottom: 0 ;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
[dir=ltr] .bottomRight .starOne {
|
|
195
|
+
right: 0 ;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
[dir=rtl] .bottomRight .starOne {
|
|
199
|
+
left: 0 ;
|
|
200
|
+
}
|
|
201
|
+
.bottomRight .starTwo {
|
|
202
|
+
bottom: 0 ;
|
|
203
|
+
/* Variable:Ignore */
|
|
204
|
+
}
|
|
205
|
+
[dir=ltr] .bottomRight .starTwo {
|
|
206
|
+
right: var(--zd_size10) ;
|
|
207
|
+
}
|
|
208
|
+
[dir=rtl] .bottomRight .starTwo {
|
|
209
|
+
left: var(--zd_size10) ;
|
|
210
|
+
}
|
|
211
|
+
.bottomRight .starThree {
|
|
212
|
+
/* Variable:Ignore */
|
|
213
|
+
bottom: 10px;
|
|
214
|
+
}
|
|
215
|
+
[dir=ltr] .bottomRight .starThree {
|
|
216
|
+
right: 0 ;
|
|
217
|
+
}
|
|
218
|
+
[dir=rtl] .bottomRight .starThree {
|
|
219
|
+
left: 0 ;
|
|
220
|
+
}
|
|
160
221
|
|
|
161
222
|
@keyframes twinkle {
|
|
162
223
|
0% {
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
font-family: var(--zd_semibold);
|
|
24
24
|
/* css:theme-validation:ignore */
|
|
25
25
|
color: var(--titleColor);
|
|
26
|
+
word-wrap: break-word;
|
|
26
27
|
}
|
|
27
28
|
.small .title {
|
|
28
29
|
font-size: var(--zd_font_size16) ;
|
|
@@ -52,6 +53,9 @@
|
|
|
52
53
|
.linkDescWrapper {
|
|
53
54
|
margin-top: var(--zd_size20) ;
|
|
54
55
|
}
|
|
56
|
+
.desc{
|
|
57
|
+
word-wrap: break-word;
|
|
58
|
+
}
|
|
55
59
|
[dir=ltr] .linkDesc, [dir=ltr] .desc {
|
|
56
60
|
margin-right: var(--zd_size4) ;
|
|
57
61
|
}
|