@zohodesk/components 1.0.0-temp-250 → 1.0.0-temp-252
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/README.md +32 -0
- package/assets/Appearance/dark/mode/Component_v1_DarkMode.module.css +68 -0
- package/assets/Appearance/light/mode/Component_v1_LightMode.module.css +68 -0
- package/assets/Appearance/pureDark/mode/Component_v1_PureDarkMode.module.css +68 -0
- package/es/Avatar/Avatar.module.css +8 -8
- package/es/AvatarTeam/AvatarTeam.module.css +189 -189
- package/es/Button/css/Button.module.css +19 -19
- package/es/Buttongroup/Buttongroup.module.css +85 -107
- package/es/Card/Card.module.css +6 -4
- package/es/CheckBox/CheckBox.module.css +3 -10
- package/es/DateTime/DateTime.module.css +22 -35
- package/es/DateTime/DateWidget.module.css +1 -1
- package/es/DateTime/YearView.module.css +8 -10
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +5 -4
- package/es/DropBox/css/DropBox.module.css +58 -58
- package/es/DropDown/DropDown.module.css +2 -1
- package/es/DropDown/DropDownHeading.module.css +53 -53
- package/es/DropDown/DropDownItem.module.css +87 -94
- package/es/DropDown/DropDownSearch.module.css +3 -3
- package/es/DropDown/DropDownSeparator.module.css +2 -1
- package/es/Label/Label.module.css +5 -5
- package/es/ListItem/ListItem.module.css +23 -45
- package/es/MultiSelect/MobileHeader/MobileHeader.module.css +4 -3
- package/es/MultiSelect/MultiSelect.module.css +21 -34
- package/es/MultiSelect/SelectedOptions.module.css +6 -10
- package/es/PopOver/PopOver.module.css +8 -8
- package/es/Radio/Radio.module.css +11 -12
- package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +1 -1
- package/es/Ribbon/Ribbon.module.css +499 -505
- package/es/RippleEffect/RippleEffect.module.css +55 -17
- package/es/Select/Select.js +86 -75
- package/es/Select/Select.module.css +50 -17
- package/es/Select/props/defaultProps.js +2 -1
- package/es/Select/props/propTypes.js +2 -1
- package/es/Stencils/Stencils.module.css +30 -14
- package/es/Switch/Switch.module.css +121 -128
- package/es/Tab/Tab.module.css +8 -15
- package/es/Tab/Tabs.module.css +12 -22
- package/es/Tag/Tag.module.css +255 -255
- package/es/TextBox/TextBox.module.css +9 -9
- package/es/TextBoxIcon/TextBoxIcon.module.css +1 -1
- package/es/Textarea/Textarea.module.css +18 -18
- package/es/Tooltip/Tooltip.module.css +5 -4
- package/es/Typography/Typography.js +18 -8
- package/es/Typography/__tests__/Typography.spec.js +198 -6
- package/es/Typography/__tests__/__snapshots__/Typography.spec.js.snap +1235 -2
- package/es/Typography/css/Typography.module.css +4 -0
- package/es/Typography/css/cssJSLogic.js +53 -21
- package/es/Typography/props/defaultProps.js +4 -3
- package/es/Typography/props/propTypes.js +68 -26
- package/es/Typography/utils/textHighlighter.js +4 -2
- package/es/common/avatarsizes.module.css +16 -16
- package/es/common/customscroll.module.css +141 -141
- package/es/shared/ArrowIcon/ArrowIcon.module.css +3 -2
- package/es/shared/InputFieldLine/InputFieldLine.module.css +2 -2
- package/es/v1/Button/Button.js +201 -0
- package/es/v1/Button/README.md +110 -0
- package/es/v1/Button/__tests__/Button.spec.js +272 -0
- package/es/v1/Button/__tests__/__snapshots__/Button.spec.js.snap +1160 -0
- package/es/v1/Button/_shared/Loader/Loader.js +33 -0
- package/es/v1/Button/_shared/Loader/Loader_v1.module.css +42 -0
- package/es/v1/Button/_shared/Loader/__tests__/Loader.spec.js +21 -0
- package/es/v1/Button/_shared/Loader/__tests__/__snapshots__/Loader.spec.js.snap +49 -0
- package/es/v1/Button/_shared/Loader/props/defaultProps.js +4 -0
- package/es/v1/Button/_shared/Loader/props/propTypes.js +7 -0
- package/es/v1/Button/_shared/SuccessTick/SuccessTick.js +25 -0
- package/es/v1/Button/_shared/SuccessTick/SuccessTick_v1.module.css +21 -0
- package/es/v1/Button/_shared/SuccessTick/__tests__/SuccessTick.spec.js +21 -0
- package/es/v1/Button/_shared/SuccessTick/__tests__/__snapshots__/SuccessTick.spec.js.snap +31 -0
- package/es/v1/Button/_shared/SuccessTick/props/defaultProps.js +4 -0
- package/es/v1/Button/_shared/SuccessTick/props/propTypes.js +7 -0
- package/es/v1/Button/constants/index.js +82 -0
- package/es/v1/Button/css/Button_v1.module.css +119 -0
- package/es/v1/Button/css/cssJSLogic.js +96 -0
- package/es/v1/Button/index.js +2 -0
- package/es/v1/Button/props/defaultProps.js +26 -0
- package/es/v1/Button/props/propTypes.js +43 -0
- package/es/v1/Switch/css/Switch_v1.module.css +28 -28
- package/es/v1/helpers/colorHelpers/background/backgroundColor.module.css +629 -0
- package/es/v1/helpers/colorHelpers/border/borderColor.module.css +489 -0
- package/es/v1/helpers/colorHelpers/colorHelper.js +176 -0
- package/es/v1/helpers/colorHelpers/constants/index.js +79 -0
- package/es/v1/helpers/colorHelpers/index.js +4 -0
- package/es/v1/helpers/colorHelpers/paletteUtilities.README.md +415 -0
- package/es/v1/helpers/colorHelpers/text/textColor.module.css +368 -0
- package/lib/Avatar/Avatar.module.css +8 -8
- package/lib/AvatarTeam/AvatarTeam.module.css +189 -189
- package/lib/Button/css/Button.module.css +19 -19
- package/lib/Buttongroup/Buttongroup.module.css +85 -107
- package/lib/Card/Card.module.css +6 -4
- package/lib/CheckBox/CheckBox.module.css +3 -10
- package/lib/DateTime/DateTime.module.css +22 -35
- package/lib/DateTime/DateWidget.module.css +1 -1
- package/lib/DateTime/YearView.module.css +8 -10
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +5 -4
- package/lib/DropBox/css/DropBox.module.css +58 -58
- package/lib/DropDown/DropDown.module.css +2 -1
- package/lib/DropDown/DropDownHeading.module.css +53 -53
- package/lib/DropDown/DropDownItem.module.css +87 -94
- package/lib/DropDown/DropDownSearch.module.css +3 -3
- package/lib/DropDown/DropDownSeparator.module.css +2 -1
- package/lib/Label/Label.module.css +5 -5
- package/lib/ListItem/ListItem.module.css +23 -45
- package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +4 -3
- package/lib/MultiSelect/MultiSelect.module.css +21 -34
- package/lib/MultiSelect/SelectedOptions.module.css +6 -10
- package/lib/PopOver/PopOver.module.css +8 -8
- package/lib/Radio/Radio.module.css +11 -12
- package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +1 -1
- package/lib/Ribbon/Ribbon.module.css +499 -505
- package/lib/RippleEffect/RippleEffect.module.css +55 -17
- package/lib/Select/Select.js +87 -75
- package/lib/Select/Select.module.css +50 -17
- package/lib/Select/props/defaultProps.js +2 -1
- package/lib/Select/props/propTypes.js +2 -1
- package/lib/Stencils/Stencils.module.css +30 -14
- package/lib/Switch/Switch.module.css +121 -128
- package/lib/Tab/Tab.module.css +8 -15
- package/lib/Tab/Tabs.module.css +12 -22
- package/lib/Tag/Tag.module.css +255 -255
- package/lib/TextBox/TextBox.module.css +9 -9
- package/lib/TextBoxIcon/TextBoxIcon.module.css +1 -1
- package/lib/Textarea/Textarea.module.css +18 -18
- package/lib/Tooltip/Tooltip.module.css +5 -4
- package/lib/Typography/Typography.js +15 -5
- package/lib/Typography/__tests__/Typography.spec.js +284 -92
- package/lib/Typography/__tests__/__snapshots__/Typography.spec.js.snap +1235 -2
- package/lib/Typography/css/Typography.module.css +4 -0
- package/lib/Typography/css/cssJSLogic.js +38 -6
- package/lib/Typography/props/defaultProps.js +6 -3
- package/lib/Typography/props/propTypes.js +67 -23
- package/lib/Typography/utils/textHighlighter.js +6 -3
- package/lib/common/avatarsizes.module.css +16 -16
- package/lib/common/customscroll.module.css +141 -141
- package/lib/shared/ArrowIcon/ArrowIcon.module.css +3 -2
- package/lib/shared/InputFieldLine/InputFieldLine.module.css +2 -2
- package/lib/v1/Button/Button.js +239 -0
- package/lib/v1/Button/README.md +110 -0
- package/lib/v1/Button/__tests__/Button.spec.js +293 -0
- package/lib/v1/Button/__tests__/__snapshots__/Button.spec.js.snap +1160 -0
- package/lib/v1/Button/_shared/Loader/Loader.js +43 -0
- package/lib/v1/Button/_shared/Loader/Loader_v1.module.css +42 -0
- package/lib/v1/Button/_shared/Loader/__tests__/Loader.spec.js +28 -0
- package/lib/v1/Button/_shared/Loader/__tests__/__snapshots__/Loader.spec.js.snap +49 -0
- package/lib/v1/Button/_shared/Loader/props/defaultProps.js +11 -0
- package/lib/v1/Button/_shared/Loader/props/propTypes.js +18 -0
- package/lib/v1/Button/_shared/SuccessTick/SuccessTick.js +35 -0
- package/lib/v1/Button/_shared/SuccessTick/SuccessTick_v1.module.css +21 -0
- package/lib/v1/Button/_shared/SuccessTick/__tests__/SuccessTick.spec.js +28 -0
- package/lib/v1/Button/_shared/SuccessTick/__tests__/__snapshots__/SuccessTick.spec.js.snap +31 -0
- package/lib/v1/Button/_shared/SuccessTick/props/defaultProps.js +11 -0
- package/lib/v1/Button/_shared/SuccessTick/props/propTypes.js +18 -0
- package/lib/v1/Button/constants/index.js +114 -0
- package/lib/v1/Button/css/Button_v1.module.css +119 -0
- package/lib/v1/Button/css/cssJSLogic.js +88 -0
- package/lib/v1/Button/index.js +21 -0
- package/lib/v1/Button/props/defaultProps.js +36 -0
- package/lib/v1/Button/props/propTypes.js +56 -0
- package/lib/v1/Switch/css/Switch_v1.module.css +28 -28
- package/lib/v1/helpers/colorHelpers/background/backgroundColor.module.css +629 -0
- package/lib/v1/helpers/colorHelpers/border/borderColor.module.css +489 -0
- package/lib/v1/helpers/colorHelpers/colorHelper.js +190 -0
- package/lib/v1/helpers/colorHelpers/constants/index.js +87 -0
- package/lib/v1/helpers/colorHelpers/index.js +57 -0
- package/lib/v1/helpers/colorHelpers/paletteUtilities.README.md +415 -0
- package/lib/v1/helpers/colorHelpers/text/textColor.module.css +368 -0
- package/package.json +17 -14
- package/_react-cli.config.js +0 -24
|
@@ -1,109 +1,147 @@
|
|
|
1
1
|
.effect {
|
|
2
2
|
position: relative;
|
|
3
|
-
border-radius:
|
|
3
|
+
border-radius: 4px;
|
|
4
4
|
}
|
|
5
|
+
|
|
5
6
|
.border {
|
|
6
7
|
border: solid 1px var(--zdt_rippleeffect_default_border);
|
|
7
8
|
}
|
|
9
|
+
|
|
8
10
|
.default.defaultHover {
|
|
9
11
|
border-color: var(--zdt_rippleeffect_hover_border);
|
|
10
12
|
}
|
|
13
|
+
|
|
11
14
|
.hoverEffect:hover.primary.defaultHover, .hoverEffect:hover.primary.borderHover
|
|
15
|
+
|
|
12
16
|
/* .hoverEffect:focus.primary.borderHover */
|
|
13
|
-
{
|
|
17
|
+
{
|
|
14
18
|
border-color: var(--zdt_rippleeffect_primary_border);
|
|
15
19
|
}
|
|
20
|
+
|
|
16
21
|
.primary.defaultHover, .hoverEffect:hover.primary.active.border
|
|
22
|
+
|
|
17
23
|
/* .hoverEffect:focus.primary.active.border */
|
|
18
|
-
{
|
|
24
|
+
{
|
|
19
25
|
border-color: var(--zdt_rippleeffect_primary_active_border);
|
|
20
26
|
}
|
|
27
|
+
|
|
21
28
|
.primaryLight.defaultHover, .hoverEffect:hover.primaryLight.borderHover
|
|
29
|
+
|
|
22
30
|
/* .hoverEffect:focus.primaryLight.borderHover */
|
|
23
|
-
{
|
|
31
|
+
{
|
|
24
32
|
border-color: var(--zdt_rippleeffect_primary_light_border);
|
|
25
33
|
}
|
|
34
|
+
|
|
26
35
|
.green.defaultHover, .hoverEffect:hover.green.borderHover
|
|
36
|
+
|
|
27
37
|
/* .hoverEffect:focus.green.borderHover */
|
|
28
|
-
{
|
|
38
|
+
{
|
|
29
39
|
border-color: var(--zdt_rippleeffect_green_border);
|
|
30
40
|
}
|
|
41
|
+
|
|
31
42
|
.hoverEffect:hover.default.defaultHover
|
|
43
|
+
|
|
32
44
|
/* .hoverEffect:focus.default.defaultHover */
|
|
33
|
-
|
|
45
|
+
{
|
|
34
46
|
border-color: var(--zdt_rippleeffect_slate_border);
|
|
35
47
|
}
|
|
48
|
+
|
|
36
49
|
.hoverEffect:hover.default.borderHover
|
|
50
|
+
|
|
37
51
|
/* .hoverEffect:focus.default.borderHover */
|
|
38
|
-
|
|
52
|
+
{
|
|
39
53
|
border-color: var(--zdt_rippleeffect_navy_border);
|
|
40
54
|
}
|
|
55
|
+
|
|
41
56
|
.hoverEffect:hover.default.bgHover
|
|
57
|
+
|
|
42
58
|
/* .hoverEffect:focus.default.bgHover */
|
|
43
|
-
|
|
59
|
+
{
|
|
44
60
|
background-color: var(--zdt_rippleeffect_hover_bg);
|
|
45
61
|
}
|
|
62
|
+
|
|
46
63
|
.hoverEffect:hover.primaryLight.bgHover
|
|
64
|
+
|
|
47
65
|
/* .hoverEffect:focus.primaryLight.bgHover */
|
|
48
|
-
{
|
|
66
|
+
{
|
|
49
67
|
background-color: var(--zdt_rippleeffect_primary_light_bg);
|
|
50
68
|
}
|
|
69
|
+
|
|
51
70
|
.primaryFilled {
|
|
52
71
|
background-color: var(--zdt_rippleeffect_primary_bg);
|
|
53
72
|
}
|
|
73
|
+
|
|
54
74
|
.hoverEffect:hover.primaryFilled, .primaryFilled.active {
|
|
55
75
|
background-color: var(--zdt_rippleeffect_primaryfilled_bg);
|
|
56
76
|
}
|
|
77
|
+
|
|
57
78
|
.hoverEffect:hover.green.bgHover
|
|
79
|
+
|
|
58
80
|
/* .hoverEffect:focus.green.bgHover */
|
|
59
|
-
|
|
81
|
+
{
|
|
60
82
|
background-color: var(--zdt_rippleeffect_green_bg);
|
|
61
83
|
}
|
|
84
|
+
|
|
62
85
|
.default.active, .hoverEffect:hover.default.active, .primaryLight.active, .primaryDark.active {
|
|
63
86
|
background-color: var(--zdt_rippleeffect_primary_light_bg);
|
|
64
87
|
}
|
|
88
|
+
|
|
65
89
|
.default.active.border, .hoverEffect:hover.default.active.border, .primaryLight.active.border, .primaryDark.active.border {
|
|
66
90
|
border-color: var(--zdt_rippleeffect_primary_light_border);
|
|
67
91
|
}
|
|
92
|
+
|
|
68
93
|
.green.active {
|
|
69
94
|
background-color: var(--zdt_rippleeffect_green_bg);
|
|
70
95
|
}
|
|
96
|
+
|
|
71
97
|
.green.active.border {
|
|
72
98
|
border-color: var(--zdt_rippleeffect_green_border);
|
|
73
99
|
}
|
|
100
|
+
|
|
74
101
|
.primary.active {
|
|
75
102
|
background-color: var(--zdt_rippleeffect_primary_bg);
|
|
76
103
|
}
|
|
104
|
+
|
|
77
105
|
.danger.defaultHover, .hoverEffect:hover.danger.borderHover
|
|
106
|
+
|
|
78
107
|
/* .hoverEffect:focus.danger.borderHover */
|
|
79
|
-
|
|
108
|
+
{
|
|
80
109
|
border-color: var(--zdt_rippleeffect_danger_border);
|
|
81
110
|
}
|
|
111
|
+
|
|
82
112
|
.hoverEffect:hover.danger.bgHover, .danger.active {
|
|
83
113
|
background-color: var(--zdt_rippleeffect_danger_bg);
|
|
84
114
|
}
|
|
115
|
+
|
|
85
116
|
.hoverEffect:hover.primaryDark.bgHover
|
|
117
|
+
|
|
86
118
|
/* .hoverEffect:focus.primaryDark.bgHover */
|
|
87
|
-
|
|
119
|
+
{
|
|
88
120
|
background-color: var(--zdt_rippleeffect_primary_dark_bg);
|
|
89
121
|
}
|
|
122
|
+
|
|
90
123
|
.notAllowed {
|
|
91
124
|
cursor: not-allowed;
|
|
92
125
|
}
|
|
126
|
+
|
|
93
127
|
.secondary.defaultHover, .hoverEffect:hover.secondary.borderHover
|
|
128
|
+
|
|
94
129
|
/* .hoverEffect:focus.secondary.borderHover */
|
|
95
|
-
{
|
|
130
|
+
{
|
|
96
131
|
border-color: var(--zdt_rippleeffect_secondary_border);
|
|
97
132
|
}
|
|
133
|
+
|
|
98
134
|
.hoverEffect:hover.secondary.bgHover
|
|
135
|
+
|
|
99
136
|
/* .hoverEffect:focus.secondary.bgHover */
|
|
100
|
-
|
|
137
|
+
{
|
|
101
138
|
background-color: var(--zdt_rippleeffect_secondary_bg);
|
|
102
139
|
}
|
|
140
|
+
|
|
103
141
|
.secondary.active, .hoverEffect:hover.secondary.active.bgHover {
|
|
104
142
|
background-color: var(--zdt_rippleeffect_secondary_active_bg);
|
|
105
143
|
}
|
|
106
|
-
|
|
107
|
-
.hoverEffect:hover.secondary.active.border {
|
|
144
|
+
|
|
145
|
+
.secondary.active.border .hoverEffect:hover.secondary.active.border {
|
|
108
146
|
border-color: var(--zdt_rippleeffect_secondary_active_border);
|
|
109
|
-
}
|
|
147
|
+
}
|
package/es/Select/Select.js
CHANGED
|
@@ -813,7 +813,8 @@ export class SelectComponent extends Component {
|
|
|
813
813
|
renderCustomSearchClearComponent,
|
|
814
814
|
renderCustomSelectedValue,
|
|
815
815
|
inputFieldLineA11y,
|
|
816
|
-
customClass
|
|
816
|
+
customClass,
|
|
817
|
+
renderSuggestedStatus
|
|
817
818
|
} = this.props;
|
|
818
819
|
let {
|
|
819
820
|
TextBoxIcon_i18n,
|
|
@@ -844,7 +845,8 @@ export class SelectComponent extends Component {
|
|
|
844
845
|
} = customProps;
|
|
845
846
|
const {
|
|
846
847
|
dropBox: dropBoxClass = '',
|
|
847
|
-
cardContent: cardContentClass = ''
|
|
848
|
+
cardContent: cardContentClass = '',
|
|
849
|
+
suggestedStatusWrapper = ''
|
|
848
850
|
} = customClass;
|
|
849
851
|
const inputFieldLineA11yAttributes = this.getInputFieldLineA11y({
|
|
850
852
|
setAriaId,
|
|
@@ -1021,81 +1023,90 @@ export class SelectComponent extends Component {
|
|
|
1021
1023
|
isRestrictScroll: isRestrictScroll,
|
|
1022
1024
|
portalId: dropBoxPortalId,
|
|
1023
1025
|
customClass: {
|
|
1024
|
-
customDropBox: dropBoxClass
|
|
1026
|
+
customDropBox: `${dropBoxClass} ${renderSuggestedStatus ? style.dropBoxWithSuggestedStatus : ''}`
|
|
1025
1027
|
}
|
|
1026
|
-
},
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1028
|
+
}, (() => {
|
|
1029
|
+
const dropdownContent = isLoading ? /*#__PURE__*/React.createElement(Container, {
|
|
1030
|
+
align: "both",
|
|
1031
|
+
className: style.loader
|
|
1032
|
+
}, /*#__PURE__*/React.createElement(Loader, null)) : /*#__PURE__*/React.createElement(React.Fragment, null, !getChildren ? /*#__PURE__*/React.createElement(Box, {
|
|
1033
|
+
flexible: true
|
|
1034
|
+
}, /*#__PURE__*/React.createElement(Card, {
|
|
1035
|
+
onScroll: this.handleScroll
|
|
1036
|
+
}, needSearch ? /*#__PURE__*/React.createElement(CardHeader, null, /*#__PURE__*/React.createElement("div", {
|
|
1037
|
+
className: `${style.search} ${style[size]}`
|
|
1038
|
+
}, /*#__PURE__*/React.createElement(TextBoxIcon, {
|
|
1039
|
+
a11y: {
|
|
1040
|
+
ariaControls: setAriaId,
|
|
1041
|
+
ariaAutocomplete: 'list',
|
|
1042
|
+
ariaDescribedby: ariaErrorId
|
|
1043
|
+
},
|
|
1044
|
+
inputRef: this.searchInputRef,
|
|
1045
|
+
maxLength: maxLength,
|
|
1046
|
+
onChange: this.handleSearch,
|
|
1047
|
+
onKeyDown: this.handleKeyDown,
|
|
1048
|
+
placeHolder: searchBoxPlaceHolder,
|
|
1049
|
+
size: searchBoxSize,
|
|
1050
|
+
value: searchStr,
|
|
1051
|
+
onClear: this.handleClearSearch,
|
|
1052
|
+
dataId: `${dataId}_search`,
|
|
1053
|
+
i18nKeys: TextBoxIcon_i18n,
|
|
1054
|
+
autoComplete: autoComplete,
|
|
1055
|
+
customProps: {
|
|
1056
|
+
TextBoxProps: DropdownSearchTextBoxProps
|
|
1057
|
+
},
|
|
1058
|
+
renderCustomClearComponent: renderCustomSearchClearComponent
|
|
1059
|
+
}))) : null, /*#__PURE__*/React.createElement(CardContent, {
|
|
1060
|
+
shrink: true,
|
|
1061
|
+
customClass: `
|
|
1059
1062
|
${!tabletMode && dropBoxSize ? style[dropBoxSize] : ''} ${cardContentClass}`,
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1063
|
+
eleRef: this.suggestionContainerRef
|
|
1064
|
+
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, _extends({
|
|
1065
|
+
key: searchStr.trim(),
|
|
1066
|
+
activeId: selectedId,
|
|
1067
|
+
isVirtualizerEnabled: isVirtualizerEnabled,
|
|
1068
|
+
getVirtualizerPublicMethods: this.getVirtualizerPublicMethods,
|
|
1069
|
+
setVirtualizerContainerRefFunction: this.setSuggestionsVirtualizerContainerRefFunction,
|
|
1070
|
+
suggestions: suggestions,
|
|
1071
|
+
getRef: this.suggestionItemRef,
|
|
1072
|
+
hoverOption: hoverIndex,
|
|
1073
|
+
onClick: this.handleChange,
|
|
1074
|
+
onMouseEnter: this.handleMouseEnter,
|
|
1075
|
+
dataId: `${dataId}_Options`,
|
|
1076
|
+
needTick: needTick,
|
|
1077
|
+
needBorder: needListBorder,
|
|
1078
|
+
selectedOptions: [selectedId],
|
|
1079
|
+
className: `${tabletMode ? style.responsivelistItemContainer : style.listItemContainer}`,
|
|
1080
|
+
listItemSize: listItemSize,
|
|
1081
|
+
htmlId: setAriaId,
|
|
1082
|
+
a11y: {
|
|
1083
|
+
ariaParentRole: 'listbox',
|
|
1084
|
+
role: 'option'
|
|
1085
|
+
}
|
|
1086
|
+
}, SuggestionsProps)) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
1087
|
+
isLoading: isFetchingOptions,
|
|
1088
|
+
options: options,
|
|
1089
|
+
searchString: searchStr,
|
|
1090
|
+
suggestions: suggestions,
|
|
1091
|
+
dataId: dataId,
|
|
1092
|
+
renderCustomEmptyState: renderCustomEmptyState,
|
|
1093
|
+
getCustomEmptyState: getCustomEmptyState ? this.handleGetAddNewOptionText : null,
|
|
1094
|
+
i18nKeys: i18nKeys,
|
|
1095
|
+
htmlId: ariaErrorId
|
|
1096
|
+
}), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
|
|
1097
|
+
isCover: false,
|
|
1098
|
+
align: "both"
|
|
1099
|
+
}, /*#__PURE__*/React.createElement(Loader, null))), getFooter ? /*#__PURE__*/React.createElement(CardFooter, null, getFooter()) : null)) : /*#__PURE__*/React.createElement(Box, {
|
|
1100
|
+
flexible: true
|
|
1101
|
+
}, getChildren()));
|
|
1102
|
+
return renderSuggestedStatus ? /*#__PURE__*/React.createElement("div", {
|
|
1103
|
+
className: style.dropBoxListContainer
|
|
1104
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1105
|
+
className: `${suggestedStatusWrapper} ${style.suggestedStatusContainer}`
|
|
1106
|
+
}, renderSuggestedStatus), /*#__PURE__*/React.createElement("div", {
|
|
1107
|
+
className: style.dropdownOptions
|
|
1108
|
+
}, dropdownContent)) : dropdownContent;
|
|
1109
|
+
})());
|
|
1099
1110
|
}) : null);
|
|
1100
1111
|
}
|
|
1101
1112
|
|
|
@@ -21,11 +21,13 @@
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.box_small .emptyState {
|
|
24
|
-
padding: var(--zd_size12)
|
|
24
|
+
padding-block: var(--zd_size12) ;
|
|
25
|
+
padding-inline: var(--zd_size6) ;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
.box_medium .emptyState {
|
|
28
|
-
padding: var(--zd_size12)
|
|
29
|
+
padding-block: var(--zd_size12) ;
|
|
30
|
+
padding-inline: var(--zd_size15) ;
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
.hide {
|
|
@@ -35,6 +37,7 @@
|
|
|
35
37
|
.container {
|
|
36
38
|
position: relative;
|
|
37
39
|
}
|
|
40
|
+
|
|
38
41
|
/* css:lineheight-validation:ignore */
|
|
39
42
|
.arrowIcon {
|
|
40
43
|
height: var(--zd_size8) ;
|
|
@@ -42,27 +45,32 @@
|
|
|
42
45
|
}
|
|
43
46
|
|
|
44
47
|
.small.search {
|
|
45
|
-
padding: 0
|
|
48
|
+
padding-block: 0 ;
|
|
49
|
+
padding-inline: var(--zd_size5) ;
|
|
46
50
|
}
|
|
47
51
|
|
|
48
52
|
.medium.search {
|
|
49
|
-
padding: var(--zd_size3)
|
|
53
|
+
padding-block: var(--zd_size3) 0 ;
|
|
54
|
+
padding-inline: var(--zd_size20) ;
|
|
50
55
|
}
|
|
51
56
|
|
|
52
57
|
.title {
|
|
53
|
-
margin-
|
|
58
|
+
margin-block-end: var(--zd_size6) ;
|
|
54
59
|
}
|
|
55
60
|
|
|
56
61
|
.groupTitle {
|
|
57
|
-
margin: var(--zd_size6)
|
|
62
|
+
margin-block: var(--zd_size6) ;
|
|
63
|
+
margin-inline: 0 ;
|
|
58
64
|
}
|
|
59
65
|
|
|
60
66
|
.listItemContainer {
|
|
61
|
-
padding: var(--zd_size10)
|
|
67
|
+
padding-block: var(--zd_size10) ;
|
|
68
|
+
padding-inline: 0 ;
|
|
62
69
|
}
|
|
63
70
|
|
|
64
71
|
.responsivelistItemContainer {
|
|
65
|
-
padding: var(--zd_size10) 0
|
|
72
|
+
padding-block: var(--zd_size10) 0 ;
|
|
73
|
+
padding-inline: 0 ;
|
|
66
74
|
}
|
|
67
75
|
|
|
68
76
|
.readonly {
|
|
@@ -98,26 +106,25 @@
|
|
|
98
106
|
right: 0 ;
|
|
99
107
|
}
|
|
100
108
|
|
|
101
|
-
|
|
102
|
-
padding-
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
[dir=rtl] .iconSelect {
|
|
106
|
-
padding-right: var(--zd_size30) ;
|
|
109
|
+
.iconSelect {
|
|
110
|
+
padding-inline-start: var(--zd_size30) ;
|
|
107
111
|
}
|
|
108
112
|
|
|
109
113
|
.dropBoxList {
|
|
110
|
-
padding: var(--zd_size10)
|
|
114
|
+
padding-block: var(--zd_size10) ;
|
|
115
|
+
padding-inline: 0 ;
|
|
111
116
|
}
|
|
112
117
|
|
|
113
118
|
.responsivedropBoxList {
|
|
114
|
-
padding: var(--zd_size10) 0
|
|
119
|
+
padding-block: var(--zd_size10) 0 ;
|
|
120
|
+
padding-inline: 0 ;
|
|
115
121
|
}
|
|
116
122
|
|
|
117
123
|
.rotate {
|
|
118
124
|
transform: rotateX(180deg);
|
|
119
125
|
}
|
|
120
|
-
|
|
126
|
+
|
|
127
|
+
.rightPlaceholder {
|
|
121
128
|
height: 100% ;
|
|
122
129
|
}
|
|
123
130
|
|
|
@@ -135,4 +142,30 @@
|
|
|
135
142
|
|
|
136
143
|
.loader {
|
|
137
144
|
padding: var(--zd_size10) ;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.dropBoxWithSuggestedStatus {
|
|
148
|
+
border-radius: 7px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.dropBoxListContainer {
|
|
152
|
+
width: 100% ;
|
|
153
|
+
border-radius: 7px;
|
|
154
|
+
padding: var(--zd_size10) ;
|
|
155
|
+
border: 1px solid var(--zdt_statusdropdown_wrapper_container_border);
|
|
156
|
+
background: var(--zdt_statusdropdown_wrapper_container_bg);
|
|
157
|
+
box-shadow: var(--zd_bs_statusdropdown_wrapper_container);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.dropdownOptions {
|
|
161
|
+
padding-inline: var(--zd_size1) ;
|
|
162
|
+
padding-block: var(--zd_size1) ;
|
|
163
|
+
background-color: var(--zdt_commentList_normal_bg);
|
|
164
|
+
border: 1px solid var(--zdt_statusdropdown_wrapper_container_border);
|
|
165
|
+
border-radius: 7px;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.suggestedStatusContainer {
|
|
169
|
+
margin-block-end: var(--zd_size6) ;
|
|
170
|
+
margin-inline: var(--zd_size1) ;
|
|
138
171
|
}
|
|
@@ -38,7 +38,8 @@ export const Select_defaultProps = {
|
|
|
38
38
|
isAbsolutePositioningNeeded: true,
|
|
39
39
|
allowValueFallback: true,
|
|
40
40
|
inputFieldLineA11y: {},
|
|
41
|
-
customClass: {}
|
|
41
|
+
customClass: {},
|
|
42
|
+
renderSuggestedStatus: null
|
|
42
43
|
};
|
|
43
44
|
export const GroupSelect_defaultProps = {
|
|
44
45
|
animationStyle: 'bounce',
|
|
@@ -108,7 +108,8 @@ export const Select_propTypes = {
|
|
|
108
108
|
customClass: PropTypes.shape({
|
|
109
109
|
dropBox: PropTypes.string,
|
|
110
110
|
cardContent: PropTypes.string
|
|
111
|
-
})
|
|
111
|
+
}),
|
|
112
|
+
renderSuggestedStatus: PropTypes.node
|
|
112
113
|
};
|
|
113
114
|
export const GroupSelect_propTypes = {
|
|
114
115
|
groupedOptions: PropTypes.arrayOf(PropTypes.shape({
|
|
@@ -1,32 +1,37 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
/* stencils default variables */
|
|
3
|
-
--stencil_height:
|
|
3
|
+
--stencil_height: var(--zd_size9);
|
|
4
4
|
--stencil_width: 100%;
|
|
5
5
|
--stencil_border_radius: 5px;
|
|
6
6
|
}
|
|
7
|
+
|
|
7
8
|
.container {
|
|
8
9
|
composes: varClass;
|
|
9
10
|
height: var(--stencil_height);
|
|
10
11
|
width: var(--stencil_width);
|
|
11
12
|
border-radius: var(--stencil_border_radius);
|
|
12
13
|
}
|
|
14
|
+
|
|
13
15
|
.stencil {
|
|
14
16
|
background-size: 800px 1px;
|
|
15
17
|
}
|
|
16
|
-
|
|
18
|
+
|
|
19
|
+
[dir=ltr] .animate {
|
|
17
20
|
animation-name: placeHolderShimmer-ltr ;
|
|
18
21
|
animation-fill-mode: forwards;
|
|
19
22
|
animation-iteration-count: infinite;
|
|
20
23
|
animation-duration: var(--zd_transition10);
|
|
21
24
|
animation-timing-function: linear;
|
|
22
25
|
}
|
|
23
|
-
|
|
26
|
+
|
|
27
|
+
[dir=rtl] .animate {
|
|
24
28
|
animation-name: placeHolderShimmer-rtl ;
|
|
25
29
|
animation-fill-mode: forwards;
|
|
26
30
|
animation-iteration-count: infinite;
|
|
27
31
|
animation-duration: var(--zd_transition10);
|
|
28
32
|
animation-timing-function: linear;
|
|
29
33
|
}
|
|
34
|
+
|
|
30
35
|
@keyframes placeHolderShimmer-ltr {
|
|
31
36
|
0% {
|
|
32
37
|
background-position: calc(var(--zd_size468) * -1) 0;
|
|
@@ -36,6 +41,7 @@
|
|
|
36
41
|
background-position: var(--zd_size468) 0;
|
|
37
42
|
}
|
|
38
43
|
}
|
|
44
|
+
|
|
39
45
|
@keyframes placeHolderShimmer-rtl {
|
|
40
46
|
0% {
|
|
41
47
|
background-position: calc(100% - (var(--zd_size468) * -1)) 0;
|
|
@@ -48,53 +54,63 @@
|
|
|
48
54
|
|
|
49
55
|
.rect {
|
|
50
56
|
composes: stencil;
|
|
51
|
-
--stencil_height:
|
|
57
|
+
--stencil_height: var(--zd_size9);
|
|
52
58
|
--stencil_border_radius: 5px;
|
|
53
59
|
}
|
|
60
|
+
|
|
54
61
|
.primary {
|
|
55
62
|
background-color: var(--zdt_stencil_primary_bg);
|
|
56
63
|
background-image: var(--zdt_stencil_primary_gradient_bg);
|
|
57
64
|
}
|
|
65
|
+
|
|
58
66
|
.secondary {
|
|
59
67
|
background-color: var(--zdt_stencil_secondary_bg);
|
|
60
68
|
background-image: var(--zdt_stencil_secondary_gradient_bg);
|
|
61
69
|
}
|
|
70
|
+
|
|
62
71
|
.dark {
|
|
63
72
|
background-color: var(--zdt_stencil_dark_bg);
|
|
64
73
|
background-image: var(--zdt_stencil_dark_gradient_bg);
|
|
65
74
|
}
|
|
66
75
|
|
|
67
76
|
.small {
|
|
68
|
-
--stencil_width:
|
|
77
|
+
--stencil_width: var(--zd_size110);
|
|
69
78
|
}
|
|
79
|
+
|
|
70
80
|
.default {
|
|
71
81
|
--stencil_width: 100%;
|
|
72
82
|
}
|
|
83
|
+
|
|
73
84
|
.medium {
|
|
74
|
-
--stencil_width:
|
|
85
|
+
--stencil_width: var(--zd_size170);
|
|
75
86
|
}
|
|
87
|
+
|
|
76
88
|
.large {
|
|
77
|
-
--stencil_width:
|
|
89
|
+
--stencil_width: var(--zd_size220);
|
|
78
90
|
}
|
|
79
91
|
|
|
80
92
|
.circle {
|
|
81
93
|
composes: stencil;
|
|
82
94
|
--stencil_border_radius: 50%;
|
|
83
95
|
}
|
|
96
|
+
|
|
84
97
|
.square {
|
|
85
98
|
composes: stencil;
|
|
86
99
|
--stencil_border_radius: 4px;
|
|
87
100
|
}
|
|
101
|
+
|
|
88
102
|
.size_large {
|
|
89
|
-
--stencil_width:
|
|
90
|
-
--stencil_height:
|
|
103
|
+
--stencil_width: var(--zd_size42);
|
|
104
|
+
--stencil_height: var(--zd_size42);
|
|
91
105
|
}
|
|
106
|
+
|
|
92
107
|
.size_medium,
|
|
93
108
|
.size_default {
|
|
94
|
-
--stencil_width:
|
|
95
|
-
--stencil_height:
|
|
109
|
+
--stencil_width: var(--zd_size30);
|
|
110
|
+
--stencil_height: var(--zd_size30);
|
|
96
111
|
}
|
|
112
|
+
|
|
97
113
|
.size_small {
|
|
98
|
-
--stencil_width:
|
|
99
|
-
--stencil_height:
|
|
100
|
-
}
|
|
114
|
+
--stencil_width: var(--zd_size20);
|
|
115
|
+
--stencil_height: var(--zd_size20);
|
|
116
|
+
}
|