@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/lib/Select/Select.js
CHANGED
|
@@ -860,7 +860,8 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
860
860
|
renderCustomSearchClearComponent = _this$props11.renderCustomSearchClearComponent,
|
|
861
861
|
renderCustomSelectedValue = _this$props11.renderCustomSelectedValue,
|
|
862
862
|
inputFieldLineA11y = _this$props11.inputFieldLineA11y,
|
|
863
|
-
customClass = _this$props11.customClass
|
|
863
|
+
customClass = _this$props11.customClass,
|
|
864
|
+
renderSuggestedStatus = _this$props11.renderSuggestedStatus;
|
|
864
865
|
var _i18nKeys = i18nKeys,
|
|
865
866
|
TextBoxIcon_i18n = _i18nKeys.TextBoxIcon_i18n,
|
|
866
867
|
_i18nKeys$TextBox_all = _i18nKeys.TextBox_ally_label,
|
|
@@ -893,7 +894,9 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
893
894
|
var _customClass$dropBox = customClass.dropBox,
|
|
894
895
|
dropBoxClass = _customClass$dropBox === void 0 ? '' : _customClass$dropBox,
|
|
895
896
|
_customClass$cardCont = customClass.cardContent,
|
|
896
|
-
cardContentClass = _customClass$cardCont === void 0 ? '' : _customClass$cardCont
|
|
897
|
+
cardContentClass = _customClass$cardCont === void 0 ? '' : _customClass$cardCont,
|
|
898
|
+
_customClass$suggeste = customClass.suggestedStatusWrapper,
|
|
899
|
+
suggestedStatusWrapper = _customClass$suggeste === void 0 ? '' : _customClass$suggeste;
|
|
897
900
|
var inputFieldLineA11yAttributes = this.getInputFieldLineA11y({
|
|
898
901
|
setAriaId: setAriaId,
|
|
899
902
|
isReadOnly: isReadOnly,
|
|
@@ -1065,80 +1068,89 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
1065
1068
|
isRestrictScroll: isRestrictScroll,
|
|
1066
1069
|
portalId: dropBoxPortalId,
|
|
1067
1070
|
customClass: {
|
|
1068
|
-
customDropBox: dropBoxClass
|
|
1071
|
+
customDropBox: "".concat(dropBoxClass, " ").concat(renderSuggestedStatus ? _SelectModule["default"].dropBoxWithSuggestedStatus : '')
|
|
1069
1072
|
}
|
|
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
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1073
|
+
}, function () {
|
|
1074
|
+
var dropdownContent = isLoading ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
1075
|
+
align: "both",
|
|
1076
|
+
className: _SelectModule["default"].loader
|
|
1077
|
+
}, /*#__PURE__*/_react["default"].createElement(_Loader["default"], null)) : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, !getChildren ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
1078
|
+
flexible: true
|
|
1079
|
+
}, /*#__PURE__*/_react["default"].createElement(_Card["default"], {
|
|
1080
|
+
onScroll: _this7.handleScroll
|
|
1081
|
+
}, needSearch ? /*#__PURE__*/_react["default"].createElement(_Card.CardHeader, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
1082
|
+
className: "".concat(_SelectModule["default"].search, " ").concat(_SelectModule["default"][size])
|
|
1083
|
+
}, /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
|
|
1084
|
+
a11y: {
|
|
1085
|
+
ariaControls: setAriaId,
|
|
1086
|
+
ariaAutocomplete: 'list',
|
|
1087
|
+
ariaDescribedby: ariaErrorId
|
|
1088
|
+
},
|
|
1089
|
+
inputRef: _this7.searchInputRef,
|
|
1090
|
+
maxLength: maxLength,
|
|
1091
|
+
onChange: _this7.handleSearch,
|
|
1092
|
+
onKeyDown: _this7.handleKeyDown,
|
|
1093
|
+
placeHolder: searchBoxPlaceHolder,
|
|
1094
|
+
size: searchBoxSize,
|
|
1095
|
+
value: searchStr,
|
|
1096
|
+
onClear: _this7.handleClearSearch,
|
|
1097
|
+
dataId: "".concat(dataId, "_search"),
|
|
1098
|
+
i18nKeys: TextBoxIcon_i18n,
|
|
1099
|
+
autoComplete: autoComplete,
|
|
1100
|
+
customProps: {
|
|
1101
|
+
TextBoxProps: DropdownSearchTextBoxProps
|
|
1102
|
+
},
|
|
1103
|
+
renderCustomClearComponent: renderCustomSearchClearComponent
|
|
1104
|
+
}))) : null, /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
|
|
1105
|
+
shrink: true,
|
|
1106
|
+
customClass: "\n ".concat(!tabletMode && dropBoxSize ? _SelectModule["default"][dropBoxSize] : '', " ").concat(cardContentClass),
|
|
1107
|
+
eleRef: _this7.suggestionContainerRef
|
|
1108
|
+
}, suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
|
|
1109
|
+
key: searchStr.trim(),
|
|
1110
|
+
activeId: selectedId,
|
|
1111
|
+
isVirtualizerEnabled: isVirtualizerEnabled,
|
|
1112
|
+
getVirtualizerPublicMethods: _this7.getVirtualizerPublicMethods,
|
|
1113
|
+
setVirtualizerContainerRefFunction: _this7.setSuggestionsVirtualizerContainerRefFunction,
|
|
1114
|
+
suggestions: suggestions,
|
|
1115
|
+
getRef: _this7.suggestionItemRef,
|
|
1116
|
+
hoverOption: hoverIndex,
|
|
1117
|
+
onClick: _this7.handleChange,
|
|
1118
|
+
onMouseEnter: _this7.handleMouseEnter,
|
|
1119
|
+
dataId: "".concat(dataId, "_Options"),
|
|
1120
|
+
needTick: needTick,
|
|
1121
|
+
needBorder: needListBorder,
|
|
1122
|
+
selectedOptions: [selectedId],
|
|
1123
|
+
className: "".concat(tabletMode ? _SelectModule["default"].responsivelistItemContainer : _SelectModule["default"].listItemContainer),
|
|
1124
|
+
listItemSize: listItemSize,
|
|
1125
|
+
htmlId: setAriaId,
|
|
1126
|
+
a11y: {
|
|
1127
|
+
ariaParentRole: 'listbox',
|
|
1128
|
+
role: 'option'
|
|
1129
|
+
}
|
|
1130
|
+
}, SuggestionsProps)) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
1131
|
+
isLoading: isFetchingOptions,
|
|
1132
|
+
options: options,
|
|
1133
|
+
searchString: searchStr,
|
|
1134
|
+
suggestions: suggestions,
|
|
1135
|
+
dataId: dataId,
|
|
1136
|
+
renderCustomEmptyState: renderCustomEmptyState,
|
|
1137
|
+
getCustomEmptyState: getCustomEmptyState ? _this7.handleGetAddNewOptionText : null,
|
|
1138
|
+
i18nKeys: i18nKeys,
|
|
1139
|
+
htmlId: ariaErrorId
|
|
1140
|
+
}), isFetchingOptions && /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
1141
|
+
isCover: false,
|
|
1142
|
+
align: "both"
|
|
1143
|
+
}, /*#__PURE__*/_react["default"].createElement(_Loader["default"], null))), getFooter ? /*#__PURE__*/_react["default"].createElement(_Card.CardFooter, null, getFooter()) : null)) : /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
1144
|
+
flexible: true
|
|
1145
|
+
}, getChildren()));
|
|
1146
|
+
return renderSuggestedStatus ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
1147
|
+
className: _SelectModule["default"].dropBoxListContainer
|
|
1148
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
1149
|
+
className: "".concat(suggestedStatusWrapper, " ").concat(_SelectModule["default"].suggestedStatusContainer)
|
|
1150
|
+
}, renderSuggestedStatus), /*#__PURE__*/_react["default"].createElement("div", {
|
|
1151
|
+
className: _SelectModule["default"].dropdownOptions
|
|
1152
|
+
}, dropdownContent)) : dropdownContent;
|
|
1153
|
+
}());
|
|
1142
1154
|
}) : null);
|
|
1143
1155
|
}
|
|
1144
1156
|
}]);
|
|
@@ -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
|
}
|
|
@@ -50,7 +50,8 @@ var Select_defaultProps = {
|
|
|
50
50
|
isAbsolutePositioningNeeded: true,
|
|
51
51
|
allowValueFallback: true,
|
|
52
52
|
inputFieldLineA11y: {},
|
|
53
|
-
customClass: {}
|
|
53
|
+
customClass: {},
|
|
54
|
+
renderSuggestedStatus: null
|
|
54
55
|
};
|
|
55
56
|
exports.Select_defaultProps = Select_defaultProps;
|
|
56
57
|
var GroupSelect_defaultProps = {
|
|
@@ -124,7 +124,8 @@ var Select_propTypes = {
|
|
|
124
124
|
customClass: _propTypes["default"].shape({
|
|
125
125
|
dropBox: _propTypes["default"].string,
|
|
126
126
|
cardContent: _propTypes["default"].string
|
|
127
|
-
})
|
|
127
|
+
}),
|
|
128
|
+
renderSuggestedStatus: _propTypes["default"].node
|
|
128
129
|
};
|
|
129
130
|
exports.Select_propTypes = Select_propTypes;
|
|
130
131
|
var GroupSelect_propTypes = {
|
|
@@ -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
|
+
}
|