@zohodesk/components 1.0.0-temp-168 → 1.0.0-temp-169
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cli/PropLessFiles.html +1 -1
- package/.cli/PropValidationExcludeFilesArray.js +13 -3
- package/.cli/propValidation_report.html +1 -1
- package/README.md +48 -0
- package/assets/Appearance/dark/mode/Component_DarkMode.module.css +1 -0
- package/assets/Appearance/light/mode/Component_LightMode.module.css +1 -0
- package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +1 -0
- package/coverage/Button/Button.js.html +1 -1
- package/coverage/Button/css/Button.module.css.html +1 -1
- package/coverage/Button/css/cssJSLogic.js.html +1 -1
- package/coverage/Button/css/index.html +1 -1
- package/coverage/Button/index.html +1 -1
- package/coverage/Button/props/defaultProps.js.html +3 -6
- package/coverage/Button/props/index.html +1 -1
- package/coverage/Button/props/propTypes.js.html +9 -3
- package/coverage/Buttongroup/Buttongroup.js.html +1 -1
- package/coverage/Buttongroup/Buttongroup.module.css.html +1 -1
- package/coverage/Buttongroup/index.html +1 -1
- package/coverage/Buttongroup/props/defaultProps.js.html +1 -1
- package/coverage/Buttongroup/props/index.html +1 -1
- package/coverage/Buttongroup/props/propTypes.js.html +1 -1
- package/coverage/coverage-final.json +10 -10
- package/coverage/coverage-summary.json +10 -10
- package/coverage/index.html +1 -1
- package/coverage/utils/dummyFunction.js.html +1 -1
- package/coverage/utils/index.html +1 -1
- package/es/AppContainer/AppContainer.js +3 -0
- package/es/Button/__tests__/__snapshots__/Button.spec.js.snap +0 -28
- package/es/Button/props/defaultProps.js +1 -2
- package/es/Button/props/propTypes.js +3 -1
- package/es/DateTime/DateTime.module.css +2 -0
- package/es/DateTime/DateWidget.js +2 -1
- package/es/DateTime/dateFormatUtils/dayChange.js +2 -1
- package/es/DateTime/dateFormatUtils/index.js +1 -1
- package/es/DateTime/dateFormatUtils/monthChange.js +2 -1
- package/es/DateTime/dateFormatUtils/timeChange.js +4 -4
- package/es/DateTime/dateFormatUtils/yearChange.js +2 -1
- package/es/DropBox/DropBox.js +10 -10
- package/es/DropDown/DropDown.js +1 -7
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +7 -5
- package/es/MultiSelect/AdvancedMultiSelect.js +4 -4
- package/es/MultiSelect/MobileHeader/MobileHeader.js +50 -0
- package/es/MultiSelect/MobileHeader/MobileHeader.module.css +16 -0
- package/es/MultiSelect/MobileHeader/props/defaultProps.js +7 -0
- package/es/MultiSelect/MobileHeader/props/propTypes.js +7 -0
- package/es/MultiSelect/MultiSelect.js +112 -91
- package/es/MultiSelect/MultiSelect.module.css +2 -5
- package/es/MultiSelect/MultiSelectHeader.js +1 -2
- package/es/MultiSelect/MultiSelectWithAvatar.js +15 -112
- package/es/MultiSelect/props/defaultProps.js +3 -1
- package/es/MultiSelect/props/propTypes.js +9 -57
- package/es/Responsive/RefWrapper.js +2 -1
- package/es/Select/GroupSelect.js +3 -5
- package/es/Select/Select.js +2 -5
- package/es/Select/SelectWithAvatar.js +2 -1
- package/es/Select/SelectWithIcon.js +5 -2
- package/es/TextBox/TextBox.js +3 -3
- package/es/TextBox/TextBox.module.css +5 -4
- package/es/Textarea/Textarea.module.css +3 -4
- package/es/deprecated/PortalLayer/props/propTypes.js +3 -1
- package/es/index.js +2 -1
- package/es/utils/Common.js +3 -0
- package/es/v1/Accordion/Accordion.js +66 -0
- package/es/v1/Accordion/AccordionItem.js +57 -0
- package/es/v1/Accordion/index.js +2 -0
- package/es/v1/Animation/Animation.js +127 -0
- package/es/v1/AppContainer/AppContainer.js +137 -0
- package/es/v1/Avatar/Avatar.js +139 -0
- package/es/v1/AvatarTeam/AvatarTeam.js +70 -0
- package/es/v1/Button/Button.js +68 -0
- package/es/v1/Buttongroup/Buttongroup.js +31 -0
- package/es/v1/Card/Card.js +271 -0
- package/es/v1/CheckBox/CheckBox.js +155 -0
- package/es/v1/DateTime/CalendarView.js +218 -0
- package/es/v1/DateTime/DateTime.js +783 -0
- package/es/v1/DateTime/DateTimePopupFooter.js +47 -0
- package/es/v1/DateTime/DateTimePopupHeader.js +105 -0
- package/es/v1/DateTime/DateWidget.js +1098 -0
- package/es/v1/DateTime/DaysRow.js +31 -0
- package/es/v1/DateTime/Time.js +166 -0
- package/es/v1/DateTime/YearView.js +264 -0
- package/es/v1/DateTime/index.js +1 -0
- package/es/v1/DropBox/DropBox.js +91 -0
- package/es/v1/DropBox/DropBoxElement/DropBoxElement.js +132 -0
- package/es/v1/DropDown/DropDown.js +73 -0
- package/es/v1/DropDown/DropDownHeading.js +44 -0
- package/es/v1/DropDown/DropDownItem.js +76 -0
- package/es/v1/DropDown/DropDownSearch.js +63 -0
- package/es/v1/DropDown/DropDownSeparator.js +15 -0
- package/es/v1/Heading/Heading.js +32 -0
- package/es/v1/Label/Label.js +40 -0
- package/es/v1/Layout/Box.js +115 -0
- package/es/v1/Layout/Container.js +132 -0
- package/es/v1/Layout/index.js +2 -0
- package/es/v1/ListItem/ListContainer.js +102 -0
- package/es/v1/ListItem/ListItem.js +124 -0
- package/es/v1/ListItem/ListItemWithAvatar.js +145 -0
- package/es/v1/ListItem/ListItemWithCheckBox.js +104 -0
- package/es/v1/ListItem/ListItemWithIcon.js +127 -0
- package/es/v1/ListItem/ListItemWithRadio.js +105 -0
- package/es/v1/ListItem/index.js +6 -0
- package/es/v1/Modal/Modal.js +154 -0
- package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +1079 -0
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +568 -0
- package/es/v1/MultiSelect/EmptyState.js +64 -0
- package/es/v1/MultiSelect/MobileHeader/MobileHeader.js +50 -0
- package/es/v1/MultiSelect/MultiSelect.js +1120 -0
- package/es/v1/MultiSelect/MultiSelectHeader.js +32 -0
- package/es/v1/MultiSelect/MultiSelectWithAvatar.js +216 -0
- package/es/v1/MultiSelect/SelectedOptions.js +82 -0
- package/es/v1/MultiSelect/Suggestions.js +142 -0
- package/es/v1/MultiSelect/index.js +4 -0
- package/es/v1/PopOver/PopOver.js +176 -0
- package/es/v1/Popup/Popup.js +645 -0
- package/es/v1/Radio/Radio.js +115 -0
- package/es/v1/Responsive/CustomResponsive.js +195 -0
- package/es/v1/Responsive/RefWrapper.js +39 -0
- package/es/v1/Responsive/ResizeComponent.js +197 -0
- package/es/v1/Responsive/ResizeObserver.js +140 -0
- package/es/v1/Responsive/Responsive.js +194 -0
- package/es/v1/Responsive/index.js +9 -0
- package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +58 -0
- package/es/v1/Ribbon/Ribbon.js +33 -0
- package/es/v1/RippleEffect/RippleEffect.js +24 -0
- package/es/v1/Select/GroupSelect.js +800 -0
- package/es/v1/Select/Select.js +966 -0
- package/es/v1/Select/SelectWithAvatar.js +344 -0
- package/es/v1/Select/SelectWithIcon.js +535 -0
- package/es/v1/Select/index.js +4 -0
- package/es/v1/Stencils/Stencils.js +26 -0
- package/es/v1/Switch/Switch.js +94 -0
- package/es/v1/Tab/Tab.js +108 -0
- package/es/v1/Tab/TabContent.js +30 -0
- package/es/v1/Tab/TabContentWrapper.js +29 -0
- package/es/v1/Tab/TabWrapper.js +57 -0
- package/es/v1/Tab/Tabs.js +612 -0
- package/es/v1/Tab/index.js +5 -0
- package/es/v1/Tag/Tag.js +134 -0
- package/es/v1/TextBox/TextBox.js +154 -0
- package/es/v1/TextBoxIcon/TextBoxIcon.js +158 -0
- package/es/v1/Textarea/Textarea.js +102 -0
- package/es/v1/Tooltip/Tooltip.js +518 -0
- package/es/v1/Typography/Typography.js +38 -0
- package/es/v1/Typography/css/Typography.module.css +376 -0
- package/es/v1/Typography/css/cssJSLogic.js +46 -0
- package/es/v1/Typography/css/letterSpacingMap.js +12 -0
- package/es/v1/Typography/props/defaultProps.js +8 -0
- package/es/v1/Typography/props/propTypes.js +24 -0
- package/es/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +69 -0
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +100 -0
- package/es/v1/semantic/Button/Button.js +53 -0
- package/es/v1/semantic/index.js +1 -0
- package/lib/AppContainer/AppContainer.js +5 -0
- package/lib/Button/__tests__/__snapshots__/Button.spec.js.snap +0 -28
- package/lib/Button/props/defaultProps.js +1 -2
- package/lib/Button/props/propTypes.js +3 -1
- package/lib/DateTime/DateTime.module.css +2 -0
- package/lib/DateTime/DateWidget.js +2 -1
- package/lib/DateTime/dateFormatUtils/dayChange.js +3 -1
- package/lib/DateTime/dateFormatUtils/index.js +1 -1
- package/lib/DateTime/dateFormatUtils/monthChange.js +3 -1
- package/lib/DateTime/dateFormatUtils/timeChange.js +3 -3
- package/lib/DateTime/dateFormatUtils/yearChange.js +3 -1
- package/lib/DropBox/DropBox.js +15 -15
- package/lib/DropDown/DropDown.js +1 -6
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +7 -6
- package/lib/MultiSelect/AdvancedMultiSelect.js +4 -4
- package/lib/MultiSelect/MobileHeader/MobileHeader.js +62 -0
- package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +16 -0
- package/lib/MultiSelect/MobileHeader/props/defaultProps.js +14 -0
- package/lib/MultiSelect/MobileHeader/props/propTypes.js +18 -0
- package/lib/MultiSelect/MultiSelect.js +116 -96
- package/lib/MultiSelect/MultiSelect.module.css +2 -5
- package/lib/MultiSelect/MultiSelectHeader.js +1 -2
- package/lib/MultiSelect/MultiSelectWithAvatar.js +18 -113
- package/lib/MultiSelect/props/defaultProps.js +3 -1
- package/lib/MultiSelect/props/propTypes.js +19 -60
- package/lib/Responsive/RefWrapper.js +2 -1
- package/lib/Select/GroupSelect.js +2 -2
- package/lib/Select/Select.js +1 -2
- package/lib/Select/SelectWithAvatar.js +2 -1
- package/lib/Select/SelectWithIcon.js +5 -3
- package/lib/TextBox/TextBox.js +10 -10
- package/lib/TextBox/TextBox.module.css +5 -4
- package/lib/Textarea/Textarea.module.css +3 -4
- package/lib/deprecated/PortalLayer/props/propTypes.js +3 -1
- package/lib/index.js +10 -1
- package/lib/utils/Common.js +5 -0
- package/lib/v1/Accordion/Accordion.js +98 -0
- package/lib/v1/Accordion/AccordionItem.js +68 -0
- package/lib/v1/Accordion/index.js +23 -0
- package/lib/v1/Animation/Animation.js +143 -0
- package/lib/v1/AppContainer/AppContainer.js +209 -0
- package/lib/v1/Avatar/Avatar.js +190 -0
- package/lib/v1/AvatarTeam/AvatarTeam.js +81 -0
- package/lib/v1/Button/Button.js +82 -0
- package/lib/v1/Buttongroup/Buttongroup.js +44 -0
- package/lib/v1/Card/Card.js +365 -0
- package/lib/v1/CheckBox/CheckBox.js +166 -0
- package/lib/v1/DateTime/CalendarView.js +285 -0
- package/lib/v1/DateTime/DateTime.js +872 -0
- package/lib/v1/DateTime/DateTimePopupFooter.js +96 -0
- package/lib/v1/DateTime/DateTimePopupHeader.js +166 -0
- package/lib/v1/DateTime/DateWidget.js +1125 -0
- package/lib/v1/DateTime/DaysRow.js +80 -0
- package/lib/v1/DateTime/Time.js +254 -0
- package/lib/v1/DateTime/YearView.js +325 -0
- package/lib/v1/DateTime/index.js +15 -0
- package/lib/v1/DropBox/DropBox.js +119 -0
- package/lib/v1/DropBox/DropBoxElement/DropBoxElement.js +145 -0
- package/lib/v1/DropDown/DropDown.js +170 -0
- package/lib/v1/DropDown/DropDownHeading.js +93 -0
- package/lib/v1/DropDown/DropDownItem.js +127 -0
- package/lib/v1/DropDown/DropDownSearch.js +113 -0
- package/lib/v1/DropDown/DropDownSeparator.js +64 -0
- package/lib/v1/Heading/Heading.js +49 -0
- package/lib/v1/Label/Label.js +51 -0
- package/lib/v1/Layout/Box.js +128 -0
- package/lib/v1/Layout/Container.js +145 -0
- package/lib/v1/Layout/index.js +23 -0
- package/lib/v1/ListItem/ListContainer.js +120 -0
- package/lib/v1/ListItem/ListItem.js +138 -0
- package/lib/v1/ListItem/ListItemWithAvatar.js +162 -0
- package/lib/v1/ListItem/ListItemWithCheckBox.js +125 -0
- package/lib/v1/ListItem/ListItemWithIcon.js +143 -0
- package/lib/v1/ListItem/ListItemWithRadio.js +126 -0
- package/lib/v1/ListItem/index.js +55 -0
- package/lib/v1/Modal/Modal.js +212 -0
- package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +1167 -0
- package/lib/v1/MultiSelect/AdvancedMultiSelect.js +634 -0
- package/lib/v1/MultiSelect/EmptyState.js +112 -0
- package/lib/v1/MultiSelect/MobileHeader/MobileHeader.js +62 -0
- package/lib/v1/MultiSelect/MultiSelect.js +1201 -0
- package/lib/v1/MultiSelect/MultiSelectHeader.js +78 -0
- package/lib/v1/MultiSelect/MultiSelectWithAvatar.js +270 -0
- package/lib/v1/MultiSelect/SelectedOptions.js +126 -0
- package/lib/v1/MultiSelect/Suggestions.js +195 -0
- package/lib/v1/MultiSelect/index.js +39 -0
- package/lib/v1/PopOver/PopOver.js +197 -0
- package/lib/v1/Popup/Popup.js +715 -0
- package/lib/v1/Radio/Radio.js +126 -0
- package/lib/v1/Responsive/CustomResponsive.js +242 -0
- package/lib/v1/Responsive/RefWrapper.js +57 -0
- package/lib/v1/Responsive/ResizeComponent.js +268 -0
- package/lib/v1/Responsive/ResizeObserver.js +168 -0
- package/lib/v1/Responsive/Responsive.js +274 -0
- package/lib/v1/Responsive/index.js +55 -0
- package/lib/v1/ResponsiveDropBox/ResponsiveDropBox.js +79 -0
- package/lib/v1/Ribbon/Ribbon.js +44 -0
- package/lib/v1/RippleEffect/RippleEffect.js +39 -0
- package/lib/v1/Select/GroupSelect.js +876 -0
- package/lib/v1/Select/Select.js +1012 -0
- package/lib/v1/Select/SelectWithAvatar.js +394 -0
- package/lib/v1/Select/SelectWithIcon.js +597 -0
- package/lib/v1/Select/index.js +39 -0
- package/lib/v1/Stencils/Stencils.js +43 -0
- package/lib/v1/Switch/Switch.js +108 -0
- package/lib/v1/Tab/Tab.js +132 -0
- package/lib/v1/Tab/TabContent.js +42 -0
- package/lib/v1/Tab/TabContentWrapper.js +42 -0
- package/lib/v1/Tab/TabWrapper.js +89 -0
- package/lib/v1/Tab/Tabs.js +680 -0
- package/lib/v1/Tab/index.js +47 -0
- package/lib/v1/Tag/Tag.js +154 -0
- package/lib/v1/TextBox/TextBox.js +168 -0
- package/lib/v1/TextBoxIcon/TextBoxIcon.js +196 -0
- package/lib/v1/Textarea/Textarea.js +118 -0
- package/lib/v1/Tooltip/Tooltip.js +586 -0
- package/lib/v1/Typography/Typography.js +56 -0
- package/lib/v1/Typography/css/Typography.module.css +376 -0
- package/lib/v1/Typography/css/cssJSLogic.js +41 -0
- package/lib/v1/Typography/css/letterSpacingMap.js +20 -0
- package/lib/v1/Typography/props/defaultProps.js +15 -0
- package/lib/v1/Typography/props/propTypes.js +35 -0
- package/lib/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +90 -0
- package/lib/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +126 -0
- package/lib/v1/semantic/Button/Button.js +63 -0
- package/lib/v1/semantic/index.js +15 -0
- package/package.json +10 -10
- package/result.json +1 -1
|
@@ -7,7 +7,6 @@ exports[`Button component Should be render with the basic set customButtonclass
|
|
|
7
7
|
data-id="buttonComp"
|
|
8
8
|
data-selector-id="button"
|
|
9
9
|
data-test-id="buttonComp"
|
|
10
|
-
id="[object Object]"
|
|
11
10
|
type="button"
|
|
12
11
|
>
|
|
13
12
|
Button
|
|
@@ -22,7 +21,6 @@ exports[`Button component Should be render with the basic set customstatusSize p
|
|
|
22
21
|
data-id="buttonComp"
|
|
23
22
|
data-selector-id="button"
|
|
24
23
|
data-test-id="buttonComp"
|
|
25
|
-
id="[object Object]"
|
|
26
24
|
type="button"
|
|
27
25
|
>
|
|
28
26
|
Button
|
|
@@ -37,7 +35,6 @@ exports[`Button component Should be render with the basic set customstyle 1`] =
|
|
|
37
35
|
data-id="buttonComp"
|
|
38
36
|
data-selector-id="button"
|
|
39
37
|
data-test-id="buttonComp"
|
|
40
|
-
id="[object Object]"
|
|
41
38
|
type="button"
|
|
42
39
|
>
|
|
43
40
|
Button
|
|
@@ -52,7 +49,6 @@ exports[`Button component Should be render with the basic set of default props 1
|
|
|
52
49
|
data-id="buttonComp"
|
|
53
50
|
data-selector-id="button"
|
|
54
51
|
data-test-id="buttonComp"
|
|
55
|
-
id="[object Object]"
|
|
56
52
|
type="button"
|
|
57
53
|
>
|
|
58
54
|
Button
|
|
@@ -68,7 +64,6 @@ exports[`Button component Should be render with the basic set of default props w
|
|
|
68
64
|
data-selector-id="button"
|
|
69
65
|
data-test-id="buttonComp_disabled"
|
|
70
66
|
disabled=""
|
|
71
|
-
id="[object Object]"
|
|
72
67
|
type="button"
|
|
73
68
|
>
|
|
74
69
|
Button
|
|
@@ -83,7 +78,6 @@ exports[`Button component Should be render with the basic set of default props w
|
|
|
83
78
|
data-id="buttonComp"
|
|
84
79
|
data-selector-id="button"
|
|
85
80
|
data-test-id="buttonComp"
|
|
86
|
-
id="[object Object]"
|
|
87
81
|
type="button"
|
|
88
82
|
>
|
|
89
83
|
Button
|
|
@@ -98,7 +92,6 @@ exports[`Button component Should be render with the basic set of default props w
|
|
|
98
92
|
data-id="buttonComp"
|
|
99
93
|
data-selector-id="button"
|
|
100
94
|
data-test-id="buttonComp"
|
|
101
|
-
id="[object Object]"
|
|
102
95
|
type="button"
|
|
103
96
|
>
|
|
104
97
|
Button
|
|
@@ -113,7 +106,6 @@ exports[`Button component Should be render with the basic set of default props w
|
|
|
113
106
|
data-id="buttonComp"
|
|
114
107
|
data-selector-id="button"
|
|
115
108
|
data-test-id="buttonComp"
|
|
116
|
-
id="[object Object]"
|
|
117
109
|
type="button"
|
|
118
110
|
>
|
|
119
111
|
Button
|
|
@@ -128,7 +120,6 @@ exports[`Button component Should be render with the customstyle with medium 1`]
|
|
|
128
120
|
data-id="buttonComp"
|
|
129
121
|
data-selector-id="button"
|
|
130
122
|
data-test-id="buttonComp"
|
|
131
|
-
id="[object Object]"
|
|
132
123
|
type="button"
|
|
133
124
|
>
|
|
134
125
|
Button
|
|
@@ -144,7 +135,6 @@ exports[`Button component Should render CustomStatusclassname of buttons - loadi
|
|
|
144
135
|
data-selector-id="button"
|
|
145
136
|
data-test-id="buttonComp"
|
|
146
137
|
disabled=""
|
|
147
|
-
id="[object Object]"
|
|
148
138
|
type="button"
|
|
149
139
|
>
|
|
150
140
|
Button
|
|
@@ -170,7 +160,6 @@ exports[`Button component Should render CustomStatusclassname of buttons - succe
|
|
|
170
160
|
data-id="buttonComp"
|
|
171
161
|
data-selector-id="button"
|
|
172
162
|
data-test-id="buttonComp"
|
|
173
|
-
id="[object Object]"
|
|
174
163
|
type="button"
|
|
175
164
|
>
|
|
176
165
|
Button
|
|
@@ -196,7 +185,6 @@ exports[`Button component Should render Sizes of buttons - large 1`] = `
|
|
|
196
185
|
data-id="buttonComp"
|
|
197
186
|
data-selector-id="button"
|
|
198
187
|
data-test-id="buttonComp"
|
|
199
|
-
id="[object Object]"
|
|
200
188
|
type="button"
|
|
201
189
|
>
|
|
202
190
|
Button
|
|
@@ -211,7 +199,6 @@ exports[`Button component Should render Sizes of buttons - medium 1`] = `
|
|
|
211
199
|
data-id="buttonComp"
|
|
212
200
|
data-selector-id="button"
|
|
213
201
|
data-test-id="buttonComp"
|
|
214
|
-
id="[object Object]"
|
|
215
202
|
type="button"
|
|
216
203
|
>
|
|
217
204
|
Button
|
|
@@ -226,7 +213,6 @@ exports[`Button component Should render Sizes of buttons - small 1`] = `
|
|
|
226
213
|
data-id="buttonComp"
|
|
227
214
|
data-selector-id="button"
|
|
228
215
|
data-test-id="buttonComp"
|
|
229
|
-
id="[object Object]"
|
|
230
216
|
type="button"
|
|
231
217
|
>
|
|
232
218
|
Button
|
|
@@ -241,7 +227,6 @@ exports[`Button component Should render Sizes of buttons - xlarge 1`] = `
|
|
|
241
227
|
data-id="buttonComp"
|
|
242
228
|
data-selector-id="button"
|
|
243
229
|
data-test-id="buttonComp"
|
|
244
|
-
id="[object Object]"
|
|
245
230
|
type="button"
|
|
246
231
|
>
|
|
247
232
|
Button
|
|
@@ -257,7 +242,6 @@ exports[`Button component Should render Status of buttons - loading 1`] = `
|
|
|
257
242
|
data-selector-id="button"
|
|
258
243
|
data-test-id="buttonComp"
|
|
259
244
|
disabled=""
|
|
260
|
-
id="[object Object]"
|
|
261
245
|
type="button"
|
|
262
246
|
>
|
|
263
247
|
Button
|
|
@@ -283,7 +267,6 @@ exports[`Button component Should render Status of buttons - none 1`] = `
|
|
|
283
267
|
data-id="buttonComp"
|
|
284
268
|
data-selector-id="button"
|
|
285
269
|
data-test-id="buttonComp"
|
|
286
|
-
id="[object Object]"
|
|
287
270
|
type="button"
|
|
288
271
|
>
|
|
289
272
|
Button
|
|
@@ -298,7 +281,6 @@ exports[`Button component Should render Status of buttons - success 1`] = `
|
|
|
298
281
|
data-id="buttonComp"
|
|
299
282
|
data-selector-id="button"
|
|
300
283
|
data-test-id="buttonComp"
|
|
301
|
-
id="[object Object]"
|
|
302
284
|
type="button"
|
|
303
285
|
>
|
|
304
286
|
Button
|
|
@@ -324,7 +306,6 @@ exports[`Button component Should render palette of buttons - dangerFilled 1`] =
|
|
|
324
306
|
data-id="buttonComp"
|
|
325
307
|
data-selector-id="button"
|
|
326
308
|
data-test-id="buttonComp"
|
|
327
|
-
id="[object Object]"
|
|
328
309
|
type="button"
|
|
329
310
|
>
|
|
330
311
|
Button
|
|
@@ -339,7 +320,6 @@ exports[`Button component Should render palette of buttons - info 1`] = `
|
|
|
339
320
|
data-id="buttonComp"
|
|
340
321
|
data-selector-id="button"
|
|
341
322
|
data-test-id="buttonComp"
|
|
342
|
-
id="[object Object]"
|
|
343
323
|
type="button"
|
|
344
324
|
>
|
|
345
325
|
Button
|
|
@@ -354,7 +334,6 @@ exports[`Button component Should render palette of buttons - plainPrimary 1`] =
|
|
|
354
334
|
data-id="buttonComp"
|
|
355
335
|
data-selector-id="button"
|
|
356
336
|
data-test-id="buttonComp"
|
|
357
|
-
id="[object Object]"
|
|
358
337
|
type="button"
|
|
359
338
|
>
|
|
360
339
|
Button
|
|
@@ -369,7 +348,6 @@ exports[`Button component Should render palette of buttons - plainSecondary 1`]
|
|
|
369
348
|
data-id="buttonComp"
|
|
370
349
|
data-selector-id="button"
|
|
371
350
|
data-test-id="buttonComp"
|
|
372
|
-
id="[object Object]"
|
|
373
351
|
type="button"
|
|
374
352
|
>
|
|
375
353
|
Button
|
|
@@ -384,7 +362,6 @@ exports[`Button component Should render palette of buttons - primary 1`] = `
|
|
|
384
362
|
data-id="buttonComp"
|
|
385
363
|
data-selector-id="button"
|
|
386
364
|
data-test-id="buttonComp"
|
|
387
|
-
id="[object Object]"
|
|
388
365
|
type="button"
|
|
389
366
|
>
|
|
390
367
|
Button
|
|
@@ -399,7 +376,6 @@ exports[`Button component Should render palette of buttons - primaryFilled 1`] =
|
|
|
399
376
|
data-id="buttonComp"
|
|
400
377
|
data-selector-id="button"
|
|
401
378
|
data-test-id="buttonComp"
|
|
402
|
-
id="[object Object]"
|
|
403
379
|
type="button"
|
|
404
380
|
>
|
|
405
381
|
Button
|
|
@@ -414,7 +390,6 @@ exports[`Button component Should render palette of buttons - secondary 1`] = `
|
|
|
414
390
|
data-id="buttonComp"
|
|
415
391
|
data-selector-id="button"
|
|
416
392
|
data-test-id="buttonComp"
|
|
417
|
-
id="[object Object]"
|
|
418
393
|
type="button"
|
|
419
394
|
>
|
|
420
395
|
Button
|
|
@@ -429,7 +404,6 @@ exports[`Button component Should render palette of buttons - secondaryFilled 1`]
|
|
|
429
404
|
data-id="buttonComp"
|
|
430
405
|
data-selector-id="button"
|
|
431
406
|
data-test-id="buttonComp"
|
|
432
|
-
id="[object Object]"
|
|
433
407
|
type="button"
|
|
434
408
|
>
|
|
435
409
|
Button
|
|
@@ -444,7 +418,6 @@ exports[`Button component Should render palette of buttons - successFilled 1`] =
|
|
|
444
418
|
data-id="buttonComp"
|
|
445
419
|
data-selector-id="button"
|
|
446
420
|
data-test-id="buttonComp"
|
|
447
|
-
id="[object Object]"
|
|
448
421
|
type="button"
|
|
449
422
|
>
|
|
450
423
|
Button
|
|
@@ -459,7 +432,6 @@ exports[`Button component Should render palette of buttons - tertiaryFilled 1`]
|
|
|
459
432
|
data-id="buttonComp"
|
|
460
433
|
data-selector-id="button"
|
|
461
434
|
data-test-id="buttonComp"
|
|
462
|
-
id="[object Object]"
|
|
463
435
|
type="button"
|
|
464
436
|
>
|
|
465
437
|
Button
|
|
@@ -30,7 +30,9 @@ var propTypes = {
|
|
|
30
30
|
customStatusSize: _propTypes["default"].string
|
|
31
31
|
}),
|
|
32
32
|
customStyle: _propTypes["default"].object,
|
|
33
|
-
customProps: _propTypes["default"].object
|
|
33
|
+
customProps: _propTypes["default"].object,
|
|
34
|
+
id: _propTypes["default"].string,
|
|
35
|
+
a11y: _propTypes["default"].object
|
|
34
36
|
};
|
|
35
37
|
exports.propTypes = propTypes;
|
|
36
38
|
var _default = propTypes;
|
|
@@ -94,10 +94,12 @@
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
.daysStr {
|
|
97
|
+
composes: dotted from '../common/common.module.css';
|
|
97
98
|
font-size: var(--zd_font_size10) ;
|
|
98
99
|
color: var(--zdt_datetime_daystr_text);
|
|
99
100
|
text-transform: uppercase;
|
|
100
101
|
composes: semibold;
|
|
102
|
+
width: var(--zd_size31) ;
|
|
101
103
|
}
|
|
102
104
|
|
|
103
105
|
.dateRow {
|
|
@@ -1108,7 +1108,8 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1108
1108
|
DateWidgetComponent.defaultProps = _defaultProps.DateWidget_defaultProps;
|
|
1109
1109
|
DateWidgetComponent.propTypes = _propTypes.DateWidget_propTypes;
|
|
1110
1110
|
var DateWidget = (0, _Popup["default"])(DateWidgetComponent);
|
|
1111
|
-
DateWidget.defaultProps = DateWidgetComponent.defaultProps;
|
|
1111
|
+
DateWidget.defaultProps = DateWidgetComponent.defaultProps;
|
|
1112
|
+
DateWidget.propTypes = DateWidgetComponent.propTypes; // eslint-disable-next-line no-undef
|
|
1112
1113
|
// if (__DOCS__) {
|
|
1113
1114
|
// DateWidgetComponent.docs = {
|
|
1114
1115
|
// componentGroup: 'Form Elements',
|
|
@@ -7,6 +7,8 @@ exports.getChangedDay = getChangedDay;
|
|
|
7
7
|
|
|
8
8
|
var _index = require("./index");
|
|
9
9
|
|
|
10
|
+
var _Common = require("../../utils/Common");
|
|
11
|
+
|
|
10
12
|
/** * Methods ** */
|
|
11
13
|
function getChangedDay(values, event, focusOrders, keyActions) {
|
|
12
14
|
var keyCode = event.keyCode,
|
|
@@ -44,7 +46,7 @@ function getChangedDay(values, event, focusOrders, keyActions) {
|
|
|
44
46
|
newDay -= 1;
|
|
45
47
|
}
|
|
46
48
|
} else if ((0, _index.getIsNumberTyped)(event)) {
|
|
47
|
-
var keyString =
|
|
49
|
+
var keyString = (0, _Common.getKeyValue)(event);
|
|
48
50
|
var newValue = isNewType ? keyString : day.toString() + keyString;
|
|
49
51
|
newValue = Number.parseInt(newValue);
|
|
50
52
|
|
|
@@ -81,7 +81,7 @@ function getIsNumberTyped(event) {
|
|
|
81
81
|
metaKey = event.metaKey,
|
|
82
82
|
shiftKey = event.shiftKey;
|
|
83
83
|
|
|
84
|
-
if (keyCode >= 48 && keyCode <= 57 && !ctrlKey && !metaKey && !shiftKey) {
|
|
84
|
+
if ((keyCode >= 48 && keyCode <= 57 || keyCode >= 96 && keyCode <= 105) && !ctrlKey && !metaKey && !shiftKey) {
|
|
85
85
|
return true;
|
|
86
86
|
}
|
|
87
87
|
|
|
@@ -7,6 +7,8 @@ exports.getChangedMonth = getChangedMonth;
|
|
|
7
7
|
|
|
8
8
|
var _index = require("./index");
|
|
9
9
|
|
|
10
|
+
var _Common = require("../../utils/Common");
|
|
11
|
+
|
|
10
12
|
/** * Methods ** */
|
|
11
13
|
function getChangedMonth(values, event, focusOrders, keyActions) {
|
|
12
14
|
var keyCode = event.keyCode,
|
|
@@ -48,7 +50,7 @@ function getChangedMonth(values, event, focusOrders, keyActions) {
|
|
|
48
50
|
newMonth -= 1;
|
|
49
51
|
}
|
|
50
52
|
} else if ((0, _index.getIsNumberTyped)(event)) {
|
|
51
|
-
var keyString =
|
|
53
|
+
var keyString = (0, _Common.getKeyValue)(event);
|
|
52
54
|
var newValue = isNewType ? keyString : month.toString() + keyString;
|
|
53
55
|
newValue = Number.parseInt(newValue);
|
|
54
56
|
|
|
@@ -61,7 +61,7 @@ function getChangedHour(values, event, focusOrders, keyActions) {
|
|
|
61
61
|
newHour -= 1;
|
|
62
62
|
}
|
|
63
63
|
} else if ((0, _index.getIsNumberTyped)(event)) {
|
|
64
|
-
var keyString =
|
|
64
|
+
var keyString = (0, _Common.getKeyValue)(event);
|
|
65
65
|
var newValue = isNewType ? keyString : hour.toString() + keyString;
|
|
66
66
|
newValue = Number.parseInt(newValue);
|
|
67
67
|
|
|
@@ -132,7 +132,7 @@ function getChangedMinute(values, event, focusOrders, keyActions) {
|
|
|
132
132
|
newMinute -= 1;
|
|
133
133
|
}
|
|
134
134
|
} else if ((0, _index.getIsNumberTyped)(event)) {
|
|
135
|
-
var keyString =
|
|
135
|
+
var keyString = (0, _Common.getKeyValue)(event);
|
|
136
136
|
var newValue = isNewType ? keyString : minute.toString() + keyString;
|
|
137
137
|
newValue = Number.parseInt(newValue);
|
|
138
138
|
|
|
@@ -206,7 +206,7 @@ function getChangedNoon(values, event, focusOrders
|
|
|
206
206
|
newNoon = allowedValues[currentNoonIndex - 1];
|
|
207
207
|
}
|
|
208
208
|
} else if ((0, _index.getIsNoonValueTyped)(event)) {
|
|
209
|
-
var keyString =
|
|
209
|
+
var keyString = (0, _Common.getKeyValue)(event).toUpperCase(); // let newValue = isNewType ? keyString : noon.toString() + keyString;
|
|
210
210
|
|
|
211
211
|
var newValue = keyString;
|
|
212
212
|
var needChangeNoon = newNoon.indexOf(newValue) === -1 ? true : false;
|
|
@@ -7,6 +7,8 @@ exports.getChangedYear = getChangedYear;
|
|
|
7
7
|
|
|
8
8
|
var _index = require("./index");
|
|
9
9
|
|
|
10
|
+
var _Common = require("../../utils/Common");
|
|
11
|
+
|
|
10
12
|
/** * Methods ** */
|
|
11
13
|
function getChangedYear(values, event, focusOrders, keyActions, _ref) {
|
|
12
14
|
var yearInfo = _ref.yearInfo;
|
|
@@ -64,7 +66,7 @@ function getChangedYear(values, event, focusOrders, keyActions, _ref) {
|
|
|
64
66
|
newYear -= 1;
|
|
65
67
|
}
|
|
66
68
|
} else if ((0, _index.getIsNumberTyped)(event)) {
|
|
67
|
-
var keyString =
|
|
69
|
+
var keyString = (0, _Common.getKeyValue)(event);
|
|
68
70
|
var newValue = isNewType ? keyString : year.toString() + keyString;
|
|
69
71
|
var newValueString = newValue || '';
|
|
70
72
|
newValue = Number.parseInt(newValue);
|
package/lib/DropBox/DropBox.js
CHANGED
|
@@ -50,16 +50,16 @@ function DropBox(props) {
|
|
|
50
50
|
customProps = props.customProps;
|
|
51
51
|
var _customProps$focusSco = customProps.focusScopeProps,
|
|
52
52
|
focusScopeProps = _customProps$focusSco === void 0 ? {} : _customProps$focusSco;
|
|
53
|
-
var _focusScopeProps$
|
|
54
|
-
|
|
55
|
-
_focusScopeProps$
|
|
56
|
-
|
|
57
|
-
_focusScopeProps$
|
|
58
|
-
|
|
59
|
-
_focusScopeProps$
|
|
60
|
-
|
|
61
|
-
_focusScopeProps$
|
|
62
|
-
|
|
53
|
+
var _focusScopeProps$need = focusScopeProps.needAutoFocus,
|
|
54
|
+
needAutoFocus = _focusScopeProps$need === void 0 ? true : _focusScopeProps$need,
|
|
55
|
+
_focusScopeProps$need2 = focusScopeProps.needRestoreFocus,
|
|
56
|
+
needRestoreFocus = _focusScopeProps$need2 === void 0 ? true : _focusScopeProps$need2,
|
|
57
|
+
_focusScopeProps$need3 = focusScopeProps.needListNavigation,
|
|
58
|
+
needListNavigation = _focusScopeProps$need3 === void 0 ? true : _focusScopeProps$need3,
|
|
59
|
+
_focusScopeProps$need4 = focusScopeProps.needFocusLoop,
|
|
60
|
+
needFocusLoop = _focusScopeProps$need4 === void 0 ? false : _focusScopeProps$need4,
|
|
61
|
+
_focusScopeProps$need5 = focusScopeProps.needEnterAction,
|
|
62
|
+
needEnterAction = _focusScopeProps$need5 === void 0 ? true : _focusScopeProps$need5;
|
|
63
63
|
|
|
64
64
|
var _ref = DropBoxContext || {},
|
|
65
65
|
direction = _ref.direction;
|
|
@@ -82,11 +82,11 @@ function DropBox(props) {
|
|
|
82
82
|
var dropBoxEle = needFocusScope ? /*#__PURE__*/_react["default"].createElement(_FocusScope["default"], _extends({
|
|
83
83
|
onClose: onClose,
|
|
84
84
|
elementRef: dropBoxRef,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
85
|
+
needAutoFocus: needAutoFocus,
|
|
86
|
+
needRestoreFocus: needRestoreFocus,
|
|
87
|
+
needListNavigation: needListNavigation,
|
|
88
|
+
needFocusLoop: needFocusLoop,
|
|
89
|
+
needEnterAction: needEnterAction
|
|
90
90
|
}, focusScopeProps), /*#__PURE__*/_react["default"].createElement(_DropBoxElement["default"], _extends({
|
|
91
91
|
isModel: isModel,
|
|
92
92
|
direction: direction
|
package/lib/DropDown/DropDown.js
CHANGED
|
@@ -67,12 +67,7 @@ var DropDown = /*#__PURE__*/function (_React$Component) {
|
|
|
67
67
|
}(_react["default"].Component);
|
|
68
68
|
|
|
69
69
|
exports["default"] = DropDown;
|
|
70
|
-
DropDown.propTypes = _propTypes.DropDown_propTypes;
|
|
71
|
-
// DropDown.docs = {
|
|
72
|
-
// componentGroup: 'Form Elements',
|
|
73
|
-
// folderName: 'Style Guide'
|
|
74
|
-
// };
|
|
75
|
-
// }
|
|
70
|
+
DropDown.propTypes = _propTypes.DropDown_propTypes;
|
|
76
71
|
|
|
77
72
|
var DropDownTarget = /*#__PURE__*/function (_React$Component2) {
|
|
78
73
|
_inherits(DropDownTarget, _React$Component2);
|
|
@@ -1090,13 +1090,12 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
1090
1090
|
}, /*#__PURE__*/_react["default"].createElement(_Card["default"], {
|
|
1091
1091
|
customClass: "".concat(_MultiSelectModule["default"].box, " ").concat(_MultiSelectModule["default"]["".concat(palette, "Box")]),
|
|
1092
1092
|
onScroll: _this5.handleScroll
|
|
1093
|
-
}, /*#__PURE__*/_react["default"].createElement(_Card.CardHeader, null, /*#__PURE__*/_react["default"].createElement(_MultiSelectHeader["default"], {
|
|
1094
|
-
needSelectAll: needSelectAll,
|
|
1093
|
+
}, needSelectAll ? /*#__PURE__*/_react["default"].createElement(_Card.CardHeader, null, /*#__PURE__*/_react["default"].createElement(_MultiSelectHeader["default"], {
|
|
1095
1094
|
onSelect: _this5.handleSelectAll,
|
|
1096
1095
|
selectAllText: selectAllText,
|
|
1097
1096
|
suggestions: suggestionOptionIds,
|
|
1098
1097
|
dataId: dataId
|
|
1099
|
-
})), isDataLoaded ? /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
|
|
1098
|
+
})) : null, isDataLoaded ? /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
|
|
1100
1099
|
shrink: true,
|
|
1101
1100
|
customClass: !tabletMode && dropBoxSize ? _MultiSelectModule["default"][dropBoxSize] : '',
|
|
1102
1101
|
eleRef: _this5.suggestionContainerRef
|
|
@@ -1153,13 +1152,15 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
1153
1152
|
}(_react["default"].Component);
|
|
1154
1153
|
|
|
1155
1154
|
AdvancedGroupMultiSelect.defaultProps = _defaultProps.AdvancedGroupMultiSelect_defaultProps;
|
|
1156
|
-
AdvancedGroupMultiSelect.propTypes = _propTypes.AdvancedGroupMultiSelect_propTypes;
|
|
1155
|
+
AdvancedGroupMultiSelect.propTypes = _propTypes.AdvancedGroupMultiSelect_propTypes;
|
|
1156
|
+
var AdvancedGroupMultiSelectComponent = (0, _Popup["default"])(AdvancedGroupMultiSelect);
|
|
1157
|
+
AdvancedGroupMultiSelectComponent.defaultProps = AdvancedGroupMultiSelect.defaultProps;
|
|
1158
|
+
AdvancedGroupMultiSelectComponent.propTypes = AdvancedGroupMultiSelect.propTypes; // if (__DOCS__) {
|
|
1157
1159
|
// AdvancedGroupMultiSelect.docs = {
|
|
1158
1160
|
// componentGroup: 'Form Elements',
|
|
1159
1161
|
// folderName: 'Style Guide'
|
|
1160
1162
|
// };
|
|
1161
1163
|
// }
|
|
1162
1164
|
|
|
1163
|
-
var _default =
|
|
1164
|
-
|
|
1165
|
+
var _default = AdvancedGroupMultiSelectComponent;
|
|
1165
1166
|
exports["default"] = _default;
|
|
@@ -575,13 +575,12 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
|
|
|
575
575
|
}, /*#__PURE__*/_react["default"].createElement(_Card["default"], {
|
|
576
576
|
customClass: _MultiSelectModule["default"].box,
|
|
577
577
|
onScroll: _this4.handleScroll
|
|
578
|
-
}, /*#__PURE__*/_react["default"].createElement(_Card.CardHeader, null, /*#__PURE__*/_react["default"].createElement(_MultiSelectHeader["default"], {
|
|
579
|
-
needSelectAll: needSelectAll,
|
|
578
|
+
}, needSelectAll ? /*#__PURE__*/_react["default"].createElement(_Card.CardHeader, null, /*#__PURE__*/_react["default"].createElement(_MultiSelectHeader["default"], {
|
|
580
579
|
onSelect: _this4.handleSelectAll,
|
|
581
580
|
selectAllText: selectAllText,
|
|
582
581
|
suggestions: suggestions,
|
|
583
582
|
dataId: dataIdSelectAllEle
|
|
584
|
-
})), /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
|
|
583
|
+
})) : null, /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
|
|
585
584
|
shrink: true,
|
|
586
585
|
customClass: !tabletMode && dropBoxSize ? _MultiSelectModule["default"][dropBoxSize] : '',
|
|
587
586
|
eleRef: _this4.suggestionContainerRef
|
|
@@ -621,7 +620,8 @@ AdvancedMultiSelectComponent.propTypes = _propTypes.AdvancedMultiSelect_propType
|
|
|
621
620
|
AdvancedMultiSelectComponent.defaultProps = _defaultProps.AdvancedMultiSelect_defaultProps;
|
|
622
621
|
AdvancedMultiSelectComponent.displayName = 'AdvancedMultiSelect';
|
|
623
622
|
var AdvancedMultiSelect = (0, _Popup["default"])(AdvancedMultiSelectComponent);
|
|
624
|
-
AdvancedMultiSelect.defaultProps = AdvancedMultiSelectComponent.defaultProps;
|
|
623
|
+
AdvancedMultiSelect.defaultProps = AdvancedMultiSelectComponent.defaultProps;
|
|
624
|
+
AdvancedMultiSelect.propTypes = AdvancedMultiSelectComponent.propTypes; // if (__DOCS__) {
|
|
625
625
|
// AdvancedMultiSelectComponent.docs = {
|
|
626
626
|
// componentGroup: 'Form Elements',
|
|
627
627
|
// folderName: 'Style Guide'
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = MobileHeader;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _Button = _interopRequireDefault(require("../../Button/Button"));
|
|
11
|
+
|
|
12
|
+
var _Layout = require("../../Layout");
|
|
13
|
+
|
|
14
|
+
var _defaultProps = require("./props/defaultProps");
|
|
15
|
+
|
|
16
|
+
var _propTypes = require("./props/propTypes");
|
|
17
|
+
|
|
18
|
+
var _MobileHeaderModule = _interopRequireDefault(require("./MobileHeader.module.css"));
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
|
|
22
|
+
function MobileHeader(props) {
|
|
23
|
+
var i18nKeys = props.i18nKeys,
|
|
24
|
+
onClick = props.onClick,
|
|
25
|
+
selectedOptions = props.selectedOptions,
|
|
26
|
+
children = props.children;
|
|
27
|
+
var i18nText = Object.assign({}, i18nKeys, {
|
|
28
|
+
mobileHeaderText: i18nKeys.mobileHeaderText ? "".concat(i18nKeys.mobileHeaderText) : "".concat(selectedOptions.length, " Selected")
|
|
29
|
+
});
|
|
30
|
+
var mobilePrimaryButtonText = i18nText.mobilePrimaryButtonText,
|
|
31
|
+
mobileSecondaryButtonText = i18nText.mobileSecondaryButtonText,
|
|
32
|
+
mobileHeaderText = i18nText.mobileHeaderText;
|
|
33
|
+
var showMobileHeader = i18nKeys.mobileHeaderText || !i18nKeys.mobileHeaderText && selectedOptions.length >= 1;
|
|
34
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
35
|
+
className: _MobileHeaderModule["default"].container
|
|
36
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
37
|
+
isCover: false,
|
|
38
|
+
align: "vertical",
|
|
39
|
+
alignContent: "between",
|
|
40
|
+
alignBox: "row",
|
|
41
|
+
className: _MobileHeaderModule["default"].header
|
|
42
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
43
|
+
className: _MobileHeaderModule["default"].cardHeading,
|
|
44
|
+
"data-title": showMobileHeader ? mobileHeaderText : null,
|
|
45
|
+
flexible: true
|
|
46
|
+
}, showMobileHeader && mobileHeaderText), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
47
|
+
shrink: true
|
|
48
|
+
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
49
|
+
onClick: onClick,
|
|
50
|
+
isBold: true,
|
|
51
|
+
size: "medium",
|
|
52
|
+
text: selectedOptions.length >= 1 ? mobilePrimaryButtonText : mobileSecondaryButtonText,
|
|
53
|
+
palette: "plainPrimary",
|
|
54
|
+
customClass: {
|
|
55
|
+
customButton: _MobileHeaderModule["default"].buttonText
|
|
56
|
+
},
|
|
57
|
+
"data-title": mobilePrimaryButtonText
|
|
58
|
+
}))), children);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
MobileHeader.defaultProps = _defaultProps.defaultProps;
|
|
62
|
+
MobileHeader.propTypes = _propTypes.propTypes;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
.container{
|
|
2
|
+
padding: 0 var(--zd_size20) var(--zd_size12) var(--zd_size20) ;
|
|
3
|
+
}
|
|
4
|
+
.header{
|
|
5
|
+
padding-bottom: var(--zd_size4) ;
|
|
6
|
+
}
|
|
7
|
+
.cardHeading{
|
|
8
|
+
font-size: var(--zd_font_size16) ;
|
|
9
|
+
color: var(--zdt_multiselect_res_title_text);
|
|
10
|
+
composes: bold dotted from '../../common/common.module.css'
|
|
11
|
+
}
|
|
12
|
+
.buttonText{
|
|
13
|
+
font-size: var(--zd_font_size15) ;
|
|
14
|
+
composes: dotted from '../../common/common.module.css';
|
|
15
|
+
padding: 0
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.defaultProps = void 0;
|
|
7
|
+
var defaultProps = {
|
|
8
|
+
selectedOptions: [],
|
|
9
|
+
i18nKeys: {
|
|
10
|
+
mobilePrimaryButtonText: 'Done',
|
|
11
|
+
mobileSecondaryButtonText: 'Close'
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
exports.defaultProps = defaultProps;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.propTypes = void 0;
|
|
7
|
+
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var propTypes = {
|
|
13
|
+
i18nKeys: _propTypes["default"].object,
|
|
14
|
+
onClick: _propTypes["default"].func,
|
|
15
|
+
selectedOptions: _propTypes["default"].array,
|
|
16
|
+
children: _propTypes["default"].node
|
|
17
|
+
};
|
|
18
|
+
exports.propTypes = propTypes;
|