@zohodesk/dot 1.0.0-temp-210 → 1.0.0-temp-187.16
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/es/ActionButton/__tests__/ActionButton.spec.js +353 -2
- package/es/ActionButton/__tests__/__snapshots__/ActionButton.spec.js.snap +2633 -1
- package/es/Drawer/Drawer.js +2 -4
- package/es/Drawer/__tests__/Content.spec.js +24 -0
- package/es/Drawer/__tests__/Drawer.spec.js +130 -4
- package/es/Drawer/__tests__/Footer.spec.js +34 -0
- package/es/Drawer/__tests__/Header.spec.js +173 -0
- package/es/Drawer/__tests__/__snapshots__/Content.spec.js.snap +127 -0
- package/es/Drawer/__tests__/__snapshots__/Drawer.spec.js.snap +535 -2
- package/es/Drawer/__tests__/__snapshots__/Footer.spec.js.snap +1233 -0
- package/es/Drawer/__tests__/__snapshots__/Header.spec.js.snap +782 -0
- package/es/Drawer/props/defaultProps.js +1 -2
- package/es/Drawer/props/propTypes.js +1 -2
- package/es/FlipCard/__tests__/FlipCard.spec.js +606 -2
- package/es/FlipCard/__tests__/__snapshots__/FlipCard.spec.js.snap +6626 -1
- package/es/FreezeLayer/FreezeLayer.js +3 -6
- package/es/FreezeLayer/props/defaultProps.js +1 -2
- package/es/FreezeLayer/props/propTypes.js +1 -2
- package/es/Link/__tests__/Link.spec.js +123 -3
- package/es/Link/__tests__/__snapshots__/Link.spec.js.snap +142 -2
- package/es/Onboarding/Onboarding.js +1 -1
- package/es/VideoLookup/VideoLookup.js +1 -1
- package/es/form/fields/Fields.module.css +4 -0
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +8 -4
- package/es/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
- package/es/list/DepartmentDropDown/DepartmentDropDown.js +7 -2
- package/es/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/es/list/DepartmentDropDown/props/propTypes.js +3 -0
- package/es/list/status/StatusDropdown/StatusDropdown.js +7 -2
- package/es/list/status/StatusDropdown/props/defaultProps.js +2 -1
- package/es/list/status/StatusDropdown/props/propTypes.js +4 -1
- package/es/list/status/StatusListItem/StatusListItem.module.css +6 -3
- package/lib/ActionButton/__tests__/ActionButton.spec.js +354 -1
- package/lib/ActionButton/__tests__/__snapshots__/ActionButton.spec.js.snap +2633 -1
- package/lib/Drawer/Drawer.js +2 -4
- package/lib/Drawer/__tests__/Content.spec.js +35 -0
- package/lib/Drawer/__tests__/Drawer.spec.js +132 -5
- package/lib/Drawer/__tests__/Footer.spec.js +41 -0
- package/lib/Drawer/__tests__/Header.spec.js +192 -0
- package/lib/Drawer/__tests__/__snapshots__/Content.spec.js.snap +127 -0
- package/lib/Drawer/__tests__/__snapshots__/Drawer.spec.js.snap +535 -2
- package/lib/Drawer/__tests__/__snapshots__/Footer.spec.js.snap +1233 -0
- package/lib/Drawer/__tests__/__snapshots__/Header.spec.js.snap +782 -0
- package/lib/Drawer/props/defaultProps.js +1 -2
- package/lib/Drawer/props/propTypes.js +1 -2
- package/lib/FlipCard/__tests__/FlipCard.spec.js +613 -1
- package/lib/FlipCard/__tests__/__snapshots__/FlipCard.spec.js.snap +6626 -1
- package/lib/FreezeLayer/FreezeLayer.js +3 -6
- package/lib/FreezeLayer/props/defaultProps.js +1 -2
- package/lib/FreezeLayer/props/propTypes.js +1 -2
- package/lib/Link/__tests__/Link.spec.js +130 -4
- package/lib/Link/__tests__/__snapshots__/Link.spec.js.snap +142 -2
- package/lib/Onboarding/Onboarding.js +2 -2
- package/lib/VideoLookup/VideoLookup.js +2 -2
- package/lib/form/fields/Fields.module.css +4 -0
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +10 -5
- package/lib/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +8 -3
- package/lib/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/lib/list/DepartmentDropDown/props/propTypes.js +2 -0
- package/lib/list/status/StatusDropdown/StatusDropdown.js +6 -2
- package/lib/list/status/StatusDropdown/props/defaultProps.js +2 -1
- package/lib/list/status/StatusDropdown/props/propTypes.js +3 -1
- package/lib/list/status/StatusListItem/StatusListItem.module.css +6 -3
- package/package.json +5 -5
- package/result.json +1 -0
- package/unittest/index.html +45 -0
- /package/es/Onboarding/css/{Onboarding.module.css → CardOnboarding.module.css} +0 -0
- /package/es/VideoLookup/css/{VideoLookup.module.css → VideoLookupStyles.module.css} +0 -0
- /package/lib/Onboarding/css/{Onboarding.module.css → CardOnboarding.module.css} +0 -0
- /package/lib/VideoLookup/css/{VideoLookup.module.css → VideoLookupStyles.module.css} +0 -0
|
@@ -21,8 +21,7 @@ export default function FreezeLayer(props) {
|
|
|
21
21
|
forwardRef,
|
|
22
22
|
isSvgMask,
|
|
23
23
|
needAutoZindex,
|
|
24
|
-
customStyle
|
|
25
|
-
onEnterComplete
|
|
24
|
+
customStyle
|
|
26
25
|
} = props;
|
|
27
26
|
const finalStyle = mergeStyle(style, customStyle);
|
|
28
27
|
const {
|
|
@@ -43,8 +42,7 @@ export default function FreezeLayer(props) {
|
|
|
43
42
|
return /*#__PURE__*/React.createElement(VelocityAnimationGroup, {
|
|
44
43
|
name: animationName && animationName,
|
|
45
44
|
isActive: isActive,
|
|
46
|
-
runOnMount: runOnMount
|
|
47
|
-
onEnterComplete: onEnterComplete
|
|
45
|
+
runOnMount: runOnMount
|
|
48
46
|
}, /*#__PURE__*/React.createElement("div", {
|
|
49
47
|
style: isActive && needAutoZindex ? {
|
|
50
48
|
zIndex: `${getNextIndex()}`
|
|
@@ -60,8 +58,7 @@ export default function FreezeLayer(props) {
|
|
|
60
58
|
component: Container,
|
|
61
59
|
alignBox: "row",
|
|
62
60
|
align: align,
|
|
63
|
-
dataId: "reactFreezeLayer"
|
|
64
|
-
onEnterComplete: onEnterComplete
|
|
61
|
+
dataId: "reactFreezeLayer"
|
|
65
62
|
}, children) : isSvgMask ? /*#__PURE__*/React.createElement(React.Fragment, null, children) : /*#__PURE__*/React.createElement(Container, {
|
|
66
63
|
alignBox: "row",
|
|
67
64
|
align: align,
|
|
@@ -14,7 +14,6 @@ export const propTypes = {
|
|
|
14
14
|
palette: PropTypes.oneOf(['dark', 'default', 'darkLight', 'plain', 'snow']),
|
|
15
15
|
runOnMount: PropTypes.bool,
|
|
16
16
|
customStyle: PropTypes.object,
|
|
17
|
-
zIndex: PropTypes.oneOf(['3', '5', '7', '10'])
|
|
18
|
-
onEnterComplete: PropTypes.oneOfType([PropTypes.object, PropTypes.func])
|
|
17
|
+
zIndex: PropTypes.oneOf(['3', '5', '7', '10'])
|
|
19
18
|
};
|
|
20
19
|
export default propTypes;
|
|
@@ -1,11 +1,131 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import Link from "../Link";
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
import LinkContext from "../LinkContext";
|
|
5
|
+
describe('Link Component Snapshot Tests', () => {
|
|
6
|
+
const targetOptions = ['_blank', '_self'];
|
|
7
|
+
const mockContextOptions = {
|
|
8
|
+
options: {
|
|
9
|
+
isLink: true,
|
|
10
|
+
constructURL: jest.fn((urlName, urlData) => `https://zoho.com/${urlName}/${urlData || ''}`)
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const renderWithProvider = component => render( /*#__PURE__*/React.createElement(LinkContext.Provider, {
|
|
15
|
+
value: mockContextOptions
|
|
16
|
+
}, component));
|
|
17
|
+
|
|
18
|
+
test('renders with default props', () => {
|
|
6
19
|
const {
|
|
7
20
|
asFragment
|
|
8
|
-
} =
|
|
21
|
+
} = renderWithProvider( /*#__PURE__*/React.createElement(Link, null));
|
|
22
|
+
expect(asFragment()).toMatchSnapshot();
|
|
23
|
+
});
|
|
24
|
+
test('renders with children content', () => {
|
|
25
|
+
const {
|
|
26
|
+
asFragment
|
|
27
|
+
} = renderWithProvider( /*#__PURE__*/React.createElement(Link, null, "Click Here"));
|
|
28
|
+
expect(asFragment()).toMatchSnapshot();
|
|
29
|
+
});
|
|
30
|
+
test('renders with href prop', () => {
|
|
31
|
+
const {
|
|
32
|
+
asFragment
|
|
33
|
+
} = renderWithProvider( /*#__PURE__*/React.createElement(Link, {
|
|
34
|
+
href: "https://zoho.com"
|
|
35
|
+
}));
|
|
36
|
+
expect(asFragment()).toMatchSnapshot();
|
|
37
|
+
});
|
|
38
|
+
test.each(targetOptions)('renders with target - %s', target => {
|
|
39
|
+
const {
|
|
40
|
+
asFragment
|
|
41
|
+
} = renderWithProvider( /*#__PURE__*/React.createElement(Link, {
|
|
42
|
+
target: target
|
|
43
|
+
}));
|
|
44
|
+
expect(asFragment()).toMatchSnapshot();
|
|
45
|
+
});
|
|
46
|
+
test('renders with urlName and urlData using provider', () => {
|
|
47
|
+
const {
|
|
48
|
+
asFragment
|
|
49
|
+
} = renderWithProvider( /*#__PURE__*/React.createElement(Link, {
|
|
50
|
+
urlName: "profile",
|
|
51
|
+
urlData: {
|
|
52
|
+
id: 123
|
|
53
|
+
}
|
|
54
|
+
}));
|
|
55
|
+
expect(mockContextOptions.options.constructURL).toHaveBeenCalledWith('profile', {
|
|
56
|
+
id: 123
|
|
57
|
+
});
|
|
58
|
+
expect(asFragment()).toMatchSnapshot();
|
|
59
|
+
});
|
|
60
|
+
test('renders with urlName and undefined urlData using provider', () => {
|
|
61
|
+
const {
|
|
62
|
+
asFragment
|
|
63
|
+
} = renderWithProvider( /*#__PURE__*/React.createElement(Link, {
|
|
64
|
+
urlName: "profile"
|
|
65
|
+
}));
|
|
66
|
+
expect(mockContextOptions.options.constructURL).toHaveBeenCalledWith('profile', undefined);
|
|
67
|
+
expect(asFragment()).toMatchSnapshot();
|
|
68
|
+
});
|
|
69
|
+
test('renders with urlName and urlData as undefined using provider', () => {
|
|
70
|
+
const {
|
|
71
|
+
asFragment
|
|
72
|
+
} = renderWithProvider( /*#__PURE__*/React.createElement(Link, {
|
|
73
|
+
urlName: undefined,
|
|
74
|
+
urlData: undefined
|
|
75
|
+
}));
|
|
76
|
+
expect(mockContextOptions.options.constructURL).toHaveBeenCalledWith(undefined, undefined);
|
|
77
|
+
expect(asFragment()).toMatchSnapshot();
|
|
78
|
+
});
|
|
79
|
+
test('renders with custom className', () => {
|
|
80
|
+
const {
|
|
81
|
+
asFragment
|
|
82
|
+
} = renderWithProvider( /*#__PURE__*/React.createElement(Link, {
|
|
83
|
+
className: "custom-link"
|
|
84
|
+
}));
|
|
85
|
+
expect(asFragment()).toMatchSnapshot();
|
|
86
|
+
});
|
|
87
|
+
test('renders with title prop', () => {
|
|
88
|
+
const {
|
|
89
|
+
asFragment
|
|
90
|
+
} = renderWithProvider( /*#__PURE__*/React.createElement(Link, {
|
|
91
|
+
title: "Example Title"
|
|
92
|
+
}));
|
|
93
|
+
expect(asFragment()).toMatchSnapshot();
|
|
94
|
+
});
|
|
95
|
+
test('renders with download attribute', () => {
|
|
96
|
+
const {
|
|
97
|
+
asFragment
|
|
98
|
+
} = renderWithProvider( /*#__PURE__*/React.createElement(Link, {
|
|
99
|
+
download: true
|
|
100
|
+
}));
|
|
101
|
+
expect(asFragment()).toMatchSnapshot();
|
|
102
|
+
});
|
|
103
|
+
test('renders with rel attribute', () => {
|
|
104
|
+
const {
|
|
105
|
+
asFragment
|
|
106
|
+
} = renderWithProvider( /*#__PURE__*/React.createElement(Link, {
|
|
107
|
+
rel: "noopener noreferrer"
|
|
108
|
+
}));
|
|
109
|
+
expect(asFragment()).toMatchSnapshot();
|
|
110
|
+
});
|
|
111
|
+
test('renders with dataId prop', () => {
|
|
112
|
+
const {
|
|
113
|
+
asFragment
|
|
114
|
+
} = renderWithProvider( /*#__PURE__*/React.createElement(Link, {
|
|
115
|
+
dataId: "test-id"
|
|
116
|
+
}));
|
|
117
|
+
expect(asFragment()).toMatchSnapshot();
|
|
118
|
+
});
|
|
119
|
+
test('renders with customProps', () => {
|
|
120
|
+
const customProps = {
|
|
121
|
+
'data-custom': 'customValue',
|
|
122
|
+
'data-id': 'uniqueId'
|
|
123
|
+
};
|
|
124
|
+
const {
|
|
125
|
+
asFragment
|
|
126
|
+
} = renderWithProvider( /*#__PURE__*/React.createElement(Link, {
|
|
127
|
+
customProps: customProps
|
|
128
|
+
}));
|
|
9
129
|
expect(asFragment()).toMatchSnapshot();
|
|
10
130
|
});
|
|
11
131
|
});
|
|
@@ -1,10 +1,150 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Link
|
|
3
|
+
exports[`Link Component Snapshot Tests renders with children content 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<a
|
|
6
6
|
class="container "
|
|
7
|
-
href="
|
|
7
|
+
href="https://zoho.com/undefined/"
|
|
8
|
+
rel="noopener noreferrer"
|
|
9
|
+
>
|
|
10
|
+
Click Here
|
|
11
|
+
</a>
|
|
12
|
+
</DocumentFragment>
|
|
13
|
+
`;
|
|
14
|
+
|
|
15
|
+
exports[`Link Component Snapshot Tests renders with custom className 1`] = `
|
|
16
|
+
<DocumentFragment>
|
|
17
|
+
<a
|
|
18
|
+
class="container custom-link"
|
|
19
|
+
href="https://zoho.com/undefined/"
|
|
20
|
+
rel="noopener noreferrer"
|
|
21
|
+
/>
|
|
22
|
+
</DocumentFragment>
|
|
23
|
+
`;
|
|
24
|
+
|
|
25
|
+
exports[`Link Component Snapshot Tests renders with customProps 1`] = `
|
|
26
|
+
<DocumentFragment>
|
|
27
|
+
<a
|
|
28
|
+
class="container "
|
|
29
|
+
data-custom="customValue"
|
|
30
|
+
data-id="uniqueId"
|
|
31
|
+
href="https://zoho.com/undefined/"
|
|
32
|
+
rel="noopener noreferrer"
|
|
33
|
+
/>
|
|
34
|
+
</DocumentFragment>
|
|
35
|
+
`;
|
|
36
|
+
|
|
37
|
+
exports[`Link Component Snapshot Tests renders with dataId prop 1`] = `
|
|
38
|
+
<DocumentFragment>
|
|
39
|
+
<a
|
|
40
|
+
class="container "
|
|
41
|
+
data-id="test-id"
|
|
42
|
+
data-test-id="test-id"
|
|
43
|
+
href="https://zoho.com/undefined/"
|
|
44
|
+
rel="noopener noreferrer"
|
|
45
|
+
/>
|
|
46
|
+
</DocumentFragment>
|
|
47
|
+
`;
|
|
48
|
+
|
|
49
|
+
exports[`Link Component Snapshot Tests renders with default props 1`] = `
|
|
50
|
+
<DocumentFragment>
|
|
51
|
+
<a
|
|
52
|
+
class="container "
|
|
53
|
+
href="https://zoho.com/undefined/"
|
|
54
|
+
rel="noopener noreferrer"
|
|
55
|
+
/>
|
|
56
|
+
</DocumentFragment>
|
|
57
|
+
`;
|
|
58
|
+
|
|
59
|
+
exports[`Link Component Snapshot Tests renders with download attribute 1`] = `
|
|
60
|
+
<DocumentFragment>
|
|
61
|
+
<a
|
|
62
|
+
class="container "
|
|
63
|
+
download=""
|
|
64
|
+
href="https://zoho.com/undefined/"
|
|
65
|
+
rel="noopener noreferrer"
|
|
66
|
+
/>
|
|
67
|
+
</DocumentFragment>
|
|
68
|
+
`;
|
|
69
|
+
|
|
70
|
+
exports[`Link Component Snapshot Tests renders with href prop 1`] = `
|
|
71
|
+
<DocumentFragment>
|
|
72
|
+
<a
|
|
73
|
+
class="container "
|
|
74
|
+
href="https://zoho.com"
|
|
75
|
+
rel="noopener noreferrer"
|
|
76
|
+
/>
|
|
77
|
+
</DocumentFragment>
|
|
78
|
+
`;
|
|
79
|
+
|
|
80
|
+
exports[`Link Component Snapshot Tests renders with rel attribute 1`] = `
|
|
81
|
+
<DocumentFragment>
|
|
82
|
+
<a
|
|
83
|
+
class="container "
|
|
84
|
+
href="https://zoho.com/undefined/"
|
|
85
|
+
rel="noopener noreferrer"
|
|
86
|
+
/>
|
|
87
|
+
</DocumentFragment>
|
|
88
|
+
`;
|
|
89
|
+
|
|
90
|
+
exports[`Link Component Snapshot Tests renders with target - _blank 1`] = `
|
|
91
|
+
<DocumentFragment>
|
|
92
|
+
<a
|
|
93
|
+
class="container "
|
|
94
|
+
href="https://zoho.com/undefined/"
|
|
95
|
+
rel="noopener noreferrer"
|
|
96
|
+
target="_blank"
|
|
97
|
+
/>
|
|
98
|
+
</DocumentFragment>
|
|
99
|
+
`;
|
|
100
|
+
|
|
101
|
+
exports[`Link Component Snapshot Tests renders with target - _self 1`] = `
|
|
102
|
+
<DocumentFragment>
|
|
103
|
+
<a
|
|
104
|
+
class="container "
|
|
105
|
+
href="https://zoho.com/undefined/"
|
|
106
|
+
rel="noopener noreferrer"
|
|
107
|
+
target="_self"
|
|
108
|
+
/>
|
|
109
|
+
</DocumentFragment>
|
|
110
|
+
`;
|
|
111
|
+
|
|
112
|
+
exports[`Link Component Snapshot Tests renders with title prop 1`] = `
|
|
113
|
+
<DocumentFragment>
|
|
114
|
+
<a
|
|
115
|
+
class="container "
|
|
116
|
+
data-title="Example Title"
|
|
117
|
+
href="https://zoho.com/undefined/"
|
|
118
|
+
rel="noopener noreferrer"
|
|
119
|
+
/>
|
|
120
|
+
</DocumentFragment>
|
|
121
|
+
`;
|
|
122
|
+
|
|
123
|
+
exports[`Link Component Snapshot Tests renders with urlName and undefined urlData using provider 1`] = `
|
|
124
|
+
<DocumentFragment>
|
|
125
|
+
<a
|
|
126
|
+
class="container "
|
|
127
|
+
href="https://zoho.com/profile/"
|
|
128
|
+
rel="noopener noreferrer"
|
|
129
|
+
/>
|
|
130
|
+
</DocumentFragment>
|
|
131
|
+
`;
|
|
132
|
+
|
|
133
|
+
exports[`Link Component Snapshot Tests renders with urlName and urlData as undefined using provider 1`] = `
|
|
134
|
+
<DocumentFragment>
|
|
135
|
+
<a
|
|
136
|
+
class="container "
|
|
137
|
+
href="https://zoho.com/undefined/"
|
|
138
|
+
rel="noopener noreferrer"
|
|
139
|
+
/>
|
|
140
|
+
</DocumentFragment>
|
|
141
|
+
`;
|
|
142
|
+
|
|
143
|
+
exports[`Link Component Snapshot Tests renders with urlName and urlData using provider 1`] = `
|
|
144
|
+
<DocumentFragment>
|
|
145
|
+
<a
|
|
146
|
+
class="container "
|
|
147
|
+
href="https://zoho.com/profile/[object Object]"
|
|
8
148
|
rel="noopener noreferrer"
|
|
9
149
|
/>
|
|
10
150
|
</DocumentFragment>
|
|
@@ -28,7 +28,7 @@ import useOnboarding from "./hooks/useOnboarding";
|
|
|
28
28
|
import { DUMMY_OBJECT } from "../utils/General";
|
|
29
29
|
/** style **/
|
|
30
30
|
|
|
31
|
-
import defaultStyle from "./css/
|
|
31
|
+
import defaultStyle from "./css/CardOnboarding.module.css";
|
|
32
32
|
|
|
33
33
|
const Onboarding = _ref => {
|
|
34
34
|
let {
|
|
@@ -11,7 +11,7 @@ import { defaultProps } from "./props/defaultProps";
|
|
|
11
11
|
import { propTypes } from "./props/propTypes";
|
|
12
12
|
/**** Styles ****/
|
|
13
13
|
|
|
14
|
-
import defaultStyle from "./css/
|
|
14
|
+
import defaultStyle from "./css/VideoLookupStyles.module.css";
|
|
15
15
|
export default function VideoLookup(props) {
|
|
16
16
|
const {
|
|
17
17
|
isOpened,
|
|
@@ -160,12 +160,14 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
160
160
|
let {
|
|
161
161
|
tagCustomClass = '',
|
|
162
162
|
listItemClass = '',
|
|
163
|
-
textBoxIconWrapperClass = ''
|
|
163
|
+
textBoxIconWrapperClass = '',
|
|
164
|
+
dropBoxClass = ''
|
|
164
165
|
} = customClass;
|
|
165
166
|
const {
|
|
166
167
|
TextBoxIconProps = {},
|
|
167
168
|
TagWrapperProps = {},
|
|
168
|
-
TagProps = {}
|
|
169
|
+
TagProps = {},
|
|
170
|
+
ListItemProps = {}
|
|
169
171
|
} = customProps;
|
|
170
172
|
const isEditable = !isReadOnly;
|
|
171
173
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -254,7 +256,8 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
254
256
|
boxPosition: boxPosition,
|
|
255
257
|
isPadding: false,
|
|
256
258
|
customClass: {
|
|
257
|
-
customDropBoxWrap: style.dropdown
|
|
259
|
+
customDropBoxWrap: style.dropdown,
|
|
260
|
+
customDropBox: dropBoxClass
|
|
258
261
|
},
|
|
259
262
|
dataId: `${dataId}_dropbox`,
|
|
260
263
|
isResponsivePadding: true,
|
|
@@ -300,7 +303,8 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
300
303
|
getRef: this.getSelectedItemRef,
|
|
301
304
|
isDisabled: listDisabled,
|
|
302
305
|
customProps: listItemProps,
|
|
303
|
-
customClass: listItemClass
|
|
306
|
+
customClass: listItemClass,
|
|
307
|
+
...ListItemProps
|
|
304
308
|
}, isNew ? /*#__PURE__*/React.createElement(Container, {
|
|
305
309
|
alignBox: "row",
|
|
306
310
|
align: "vertical"
|
|
@@ -52,7 +52,8 @@ export const propTypes = {
|
|
|
52
52
|
customProps: PropTypes.shape({
|
|
53
53
|
TextBoxIconProps: PropTypes.object,
|
|
54
54
|
TagWrapperProps: PropTypes.object,
|
|
55
|
-
TagProps: PropTypes.object
|
|
55
|
+
TagProps: PropTypes.object,
|
|
56
|
+
ListItemProps: PropTypes.object
|
|
56
57
|
}),
|
|
57
58
|
isFocus: PropTypes.bool
|
|
58
59
|
};
|
|
@@ -48,8 +48,12 @@ class DepartmentDropDown extends Component {
|
|
|
48
48
|
onSearch,
|
|
49
49
|
needSearchFetching,
|
|
50
50
|
searchStr,
|
|
51
|
-
i18nKeys
|
|
51
|
+
i18nKeys,
|
|
52
|
+
customProps
|
|
52
53
|
} = this.props;
|
|
54
|
+
const {
|
|
55
|
+
ToggleDropDownProps = {}
|
|
56
|
+
} = customProps;
|
|
53
57
|
let {
|
|
54
58
|
title = 'Move Department',
|
|
55
59
|
searchEmptyText = 'No results found',
|
|
@@ -84,7 +88,8 @@ class DepartmentDropDown extends Component {
|
|
|
84
88
|
getNextOptions: getNextOptions,
|
|
85
89
|
isNextOptions: isNextOptions,
|
|
86
90
|
onSearch: onSearch,
|
|
87
|
-
needSearchFetching: needSearchFetching
|
|
91
|
+
needSearchFetching: needSearchFetching,
|
|
92
|
+
...ToggleDropDownProps
|
|
88
93
|
});
|
|
89
94
|
}
|
|
90
95
|
|
|
@@ -178,8 +178,12 @@ export class StatusDropdown extends React.Component {
|
|
|
178
178
|
targetOffset,
|
|
179
179
|
renderTargetElement,
|
|
180
180
|
renderFooterElement,
|
|
181
|
-
a11y = {}
|
|
181
|
+
a11y = {},
|
|
182
|
+
customClass
|
|
182
183
|
} = this.props;
|
|
184
|
+
const {
|
|
185
|
+
dropBoxClass = ''
|
|
186
|
+
} = customClass;
|
|
183
187
|
const {
|
|
184
188
|
tabIndex = 0,
|
|
185
189
|
ariaLabelledby,
|
|
@@ -247,7 +251,8 @@ export class StatusDropdown extends React.Component {
|
|
|
247
251
|
isAnimate: true,
|
|
248
252
|
getRef: getContainerRef,
|
|
249
253
|
customClass: {
|
|
250
|
-
customDropBoxWrap: style.dropBoxContainer
|
|
254
|
+
customDropBoxWrap: style.dropBoxContainer,
|
|
255
|
+
customDropBox: dropBoxClass
|
|
251
256
|
},
|
|
252
257
|
needResponsive: needResponsive,
|
|
253
258
|
isResponsivePadding: true,
|
|
@@ -56,5 +56,8 @@ export const propTypes = {
|
|
|
56
56
|
positionsOffset: PropTypes.object,
|
|
57
57
|
renderTargetElement: PropTypes.func,
|
|
58
58
|
renderFooterElement: PropTypes.node,
|
|
59
|
-
targetOffset: PropTypes.object
|
|
59
|
+
targetOffset: PropTypes.object,
|
|
60
|
+
customClass: PropTypes.shape({
|
|
61
|
+
dropBoxClass: PropTypes.string
|
|
62
|
+
})
|
|
60
63
|
};
|
|
@@ -36,9 +36,8 @@
|
|
|
36
36
|
.value {
|
|
37
37
|
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
38
38
|
}
|
|
39
|
-
.multiLineValue{
|
|
40
|
-
|
|
41
|
-
composes: clamp from '~@zohodesk/components/lib/common/common.module.css';
|
|
39
|
+
.multiLineValue {
|
|
40
|
+
composes: lineClamp from '~@zohodesk/components/lib/common/common.module.css';
|
|
42
41
|
}
|
|
43
42
|
[dir=ltr] .withBorder.active {
|
|
44
43
|
border-left-color: var(--zdt_statuslistitem_default_active_border);
|
|
@@ -90,6 +89,10 @@
|
|
|
90
89
|
}
|
|
91
90
|
/* Status Type */
|
|
92
91
|
.statusType {
|
|
92
|
+
--status_listitem_bullet_min_height: var(--zd_size8);
|
|
93
|
+
--status_listitem_bullet_min_width: var(--zd_size8);
|
|
94
|
+
min-height: var(--status_listitem_bullet_min_height);
|
|
95
|
+
min-width: var(--status_listitem_bullet_min_width);
|
|
93
96
|
width: var(--zd_size8) ;
|
|
94
97
|
height: var(--zd_size8) ;
|
|
95
98
|
border-radius: 50%;
|