@zohodesk/components 1.0.0-temp-191 → 1.0.0-temp-192
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cli/propValidation_report.html +1 -1
- package/README.md +4 -0
- package/assets/Appearance/dark/mode/Component_DarkMode.module.css +29 -2
- package/assets/Appearance/light/mode/Component_LightMode.module.css +29 -2
- package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +29 -2
- package/es/AppContainer/AppContainer.js +9 -10
- package/es/AppContainer/AppContainer.module.css +2 -2
- package/es/Avatar/Avatar.js +5 -4
- package/es/Avatar/Avatar.module.css +44 -26
- package/es/AvatarTeam/AvatarTeam.js +7 -7
- package/es/AvatarTeam/AvatarTeam.module.css +62 -74
- package/es/Button/Button.js +6 -5
- package/es/Button/css/Button.module.css +156 -100
- package/es/Buttongroup/Buttongroup.module.css +50 -17
- package/es/CheckBox/CheckBox.js +8 -8
- package/es/CheckBox/CheckBox.module.css +35 -60
- package/es/DateTime/DateTime.module.css +85 -57
- package/es/DateTime/DateWidget.module.css +11 -7
- package/es/DateTime/YearView.module.css +34 -21
- package/es/DropBox/DropBox.js +11 -10
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +100 -81
- package/es/DropBox/css/DropBox.module.css +23 -6
- package/es/DropDown/DropDown.js +1 -2
- package/es/DropDown/DropDown.module.css +2 -2
- package/es/DropDown/DropDownHeading.module.css +15 -15
- package/es/DropDown/DropDownItem.module.css +40 -22
- package/es/DropDown/DropDownSearch.module.css +3 -3
- package/es/DropDown/DropDownSeparator.module.css +2 -2
- package/es/Heading/Heading.module.css +2 -2
- package/es/Label/Label.module.css +11 -23
- package/es/Label/LabelColors.module.css +1 -7
- package/es/Layout/Layout.module.css +15 -15
- package/es/ListItem/ListContainer.js +5 -6
- package/es/ListItem/ListItem.js +7 -6
- package/es/ListItem/ListItem.module.css +104 -55
- package/es/ListItem/ListItemWithAvatar.js +8 -7
- package/es/ListItem/ListItemWithCheckBox.js +5 -4
- package/es/ListItem/ListItemWithIcon.js +7 -6
- package/es/ListItem/ListItemWithRadio.js +5 -4
- package/es/Modal/Modal.js +5 -4
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +9 -3
- package/es/MultiSelect/AdvancedMultiSelect.js +9 -8
- package/es/MultiSelect/MobileHeader/MobileHeader.module.css +16 -19
- package/es/MultiSelect/MultiSelect.js +9 -3
- package/es/MultiSelect/MultiSelect.module.css +55 -69
- package/es/MultiSelect/MultiSelectWithAvatar.js +6 -3
- package/es/MultiSelect/SelectedOptions.js +8 -6
- package/es/MultiSelect/SelectedOptions.module.css +11 -5
- package/es/MultiSelect/Suggestions.js +16 -10
- package/es/MultiSelect/props/defaultProps.js +9 -3
- package/es/MultiSelect/props/propTypes.js +7 -3
- package/es/PopOver/PopOver.module.css +2 -2
- package/es/Popup/Popup.js +4 -3
- package/es/Radio/Radio.js +8 -8
- package/es/Radio/Radio.module.css +22 -37
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +4 -2
- package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
- package/es/Ribbon/Ribbon.module.css +143 -64
- package/es/RippleEffect/RippleEffect.module.css +9 -27
- package/es/Select/GroupSelect.js +9 -3
- package/es/Select/Select.js +5 -4
- package/es/Select/Select.module.css +33 -22
- package/es/Select/SelectWithAvatar.js +9 -3
- package/es/Select/SelectWithIcon.js +9 -3
- package/es/Select/props/defaultProps.js +6 -3
- package/es/Select/props/propTypes.js +6 -3
- package/es/Stencils/Stencils.module.css +32 -14
- package/es/Switch/Switch.js +8 -8
- package/es/Switch/Switch.module.css +30 -35
- package/es/Tab/Tab.js +5 -4
- package/es/Tab/Tab.module.css +28 -39
- package/es/Tab/TabContentWrapper.js +5 -4
- package/es/Tab/TabWrapper.js +4 -2
- package/es/Tab/Tabs.js +16 -16
- package/es/Tab/Tabs.module.css +51 -29
- package/es/Tag/Tag.module.css +60 -91
- package/es/TextBox/TextBox.js +5 -5
- package/es/TextBox/TextBox.module.css +19 -23
- package/es/TextBoxIcon/TextBoxIcon.js +4 -2
- package/es/TextBoxIcon/TextBoxIcon.module.css +15 -8
- package/es/Textarea/Textarea.js +6 -4
- package/es/Textarea/Textarea.module.css +30 -60
- package/es/Tooltip/Tooltip.module.css +12 -13
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
- package/es/common/animation.module.css +227 -29
- package/es/common/avatarsizes.module.css +16 -16
- package/es/common/basicReset.module.css +5 -15
- package/es/common/common.module.css +82 -36
- package/es/common/customscroll.module.css +33 -12
- package/es/common/transition.module.css +50 -10
- package/es/deprecated/PortalLayer/PortalLayer.js +6 -8
- package/es/semantic/Button/semanticButton.module.css +3 -3
- package/es/v1/AppContainer/AppContainer.js +9 -10
- package/es/v1/Avatar/Avatar.js +5 -4
- package/es/v1/AvatarTeam/AvatarTeam.js +7 -7
- package/es/v1/Button/Button.js +6 -5
- package/es/v1/CheckBox/CheckBox.js +8 -8
- package/es/v1/DropBox/DropBox.js +11 -10
- package/es/v1/DropDown/DropDown.js +1 -2
- package/es/v1/ListItem/ListContainer.js +5 -6
- package/es/v1/ListItem/ListItem.js +5 -4
- package/es/v1/ListItem/ListItemWithAvatar.js +5 -4
- package/es/v1/ListItem/ListItemWithCheckBox.js +5 -4
- package/es/v1/ListItem/ListItemWithIcon.js +5 -4
- package/es/v1/ListItem/ListItemWithRadio.js +5 -4
- package/es/v1/Modal/Modal.js +5 -4
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +9 -8
- package/es/v1/MultiSelect/MultiSelectWithAvatar.js +5 -4
- package/es/v1/MultiSelect/SelectedOptions.js +8 -6
- package/es/v1/MultiSelect/Suggestions.js +8 -6
- package/es/v1/MultiSelect/props/defaultProps.js +4 -2
- package/es/v1/Popup/Popup.js +4 -3
- package/es/v1/Radio/Radio.js +8 -8
- package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +4 -2
- package/es/v1/Select/Select.js +5 -4
- package/es/v1/Switch/Switch.js +8 -8
- package/es/v1/Tab/Tab.js +5 -4
- package/es/v1/Tab/TabContentWrapper.js +5 -4
- package/es/v1/Tab/TabWrapper.js +4 -2
- package/es/v1/Tab/Tabs.js +16 -16
- package/es/v1/Tab/v1Tab.module.css +28 -39
- package/es/v1/Tab/v1Tabs.module.css +51 -29
- package/es/v1/TextBox/TextBox.js +5 -5
- package/es/v1/TextBoxIcon/TextBoxIcon.js +4 -2
- package/es/v1/Textarea/Textarea.js +6 -4
- package/es/v1/Typography/css/Typography.module.css +39 -33
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
- package/lib/AppContainer/AppContainer.module.css +2 -2
- package/lib/Avatar/Avatar.module.css +44 -26
- package/lib/AvatarTeam/AvatarTeam.module.css +62 -74
- package/lib/Button/css/Button.module.css +156 -100
- package/lib/Buttongroup/Buttongroup.module.css +50 -17
- package/lib/CheckBox/CheckBox.module.css +35 -60
- package/lib/DateTime/DateTime.module.css +85 -57
- package/lib/DateTime/DateWidget.module.css +11 -7
- package/lib/DateTime/YearView.module.css +34 -21
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +100 -81
- package/lib/DropBox/css/DropBox.module.css +23 -6
- package/lib/DropDown/DropDown.module.css +2 -2
- package/lib/DropDown/DropDownHeading.module.css +15 -15
- package/lib/DropDown/DropDownItem.module.css +40 -22
- package/lib/DropDown/DropDownSearch.module.css +3 -3
- package/lib/DropDown/DropDownSeparator.module.css +2 -2
- package/lib/Heading/Heading.module.css +2 -2
- package/lib/Label/Label.module.css +11 -23
- package/lib/Label/LabelColors.module.css +1 -7
- package/lib/Layout/Layout.module.css +15 -15
- package/lib/ListItem/ListItem.js +2 -2
- package/lib/ListItem/ListItem.module.css +104 -55
- package/lib/ListItem/ListItemWithAvatar.js +3 -3
- package/lib/ListItem/ListItemWithIcon.js +2 -2
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +7 -3
- package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +16 -19
- package/lib/MultiSelect/MultiSelect.js +8 -3
- package/lib/MultiSelect/MultiSelect.module.css +55 -69
- package/lib/MultiSelect/MultiSelectWithAvatar.js +3 -1
- package/lib/MultiSelect/SelectedOptions.module.css +11 -5
- package/lib/MultiSelect/Suggestions.js +8 -4
- package/lib/MultiSelect/props/defaultProps.js +9 -3
- package/lib/MultiSelect/props/propTypes.js +9 -6
- package/lib/PopOver/PopOver.module.css +2 -2
- package/lib/Radio/Radio.module.css +22 -37
- package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
- package/lib/Ribbon/Ribbon.module.css +143 -64
- package/lib/RippleEffect/RippleEffect.module.css +9 -27
- package/lib/Select/GroupSelect.js +8 -3
- package/lib/Select/Select.module.css +33 -22
- package/lib/Select/SelectWithAvatar.js +8 -3
- package/lib/Select/SelectWithIcon.js +8 -3
- package/lib/Select/props/defaultProps.js +5 -3
- package/lib/Select/props/propTypes.js +6 -3
- package/lib/Stencils/Stencils.module.css +32 -14
- package/lib/Switch/Switch.module.css +30 -35
- package/lib/Tab/Tab.module.css +28 -39
- package/lib/Tab/Tabs.module.css +51 -29
- package/lib/Tag/Tag.module.css +60 -91
- package/lib/TextBox/TextBox.module.css +19 -23
- package/lib/TextBoxIcon/TextBoxIcon.module.css +15 -8
- package/lib/Textarea/Textarea.module.css +30 -60
- package/lib/Tooltip/Tooltip.module.css +12 -13
- package/lib/common/animation.module.css +227 -29
- package/lib/common/avatarsizes.module.css +16 -16
- package/lib/common/basicReset.module.css +5 -15
- package/lib/common/common.module.css +82 -36
- package/lib/common/customscroll.module.css +33 -12
- package/lib/common/transition.module.css +50 -10
- package/lib/semantic/Button/semanticButton.module.css +3 -3
- package/lib/v1/MultiSelect/props/defaultProps.js +4 -2
- package/lib/v1/Tab/v1Tab.module.css +28 -39
- package/lib/v1/Tab/v1Tabs.module.css +51 -29
- package/lib/v1/Typography/css/Typography.module.css +39 -33
- package/package.json +3 -3
- package/result.json +1 -0
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
/* Variable:Ignore */
|
|
4
4
|
--button_letter_spacing: 0.2px;
|
|
5
5
|
--button_cursor: pointer;
|
|
6
|
-
--button_font_size:
|
|
6
|
+
--button_font_size: var(--zd_font_size13);
|
|
7
7
|
--button_text_color: var(--zdt_button_default_text);
|
|
8
8
|
--button_font_family: var(--zd_regular);
|
|
9
9
|
--button_text_transform: capitalize;
|
|
10
10
|
--button_bg_color: var(--zdt_button_default_bg);
|
|
11
11
|
--button_border_radius: 4px;
|
|
12
|
-
--button_min_width:
|
|
12
|
+
--button_min_width: var(--zd_size90);
|
|
13
13
|
--button_height: auto;
|
|
14
14
|
--button_border_width: 0;
|
|
15
15
|
--button_border_style: solid;
|
|
@@ -19,23 +19,22 @@
|
|
|
19
19
|
--button_box_shadow: none;
|
|
20
20
|
|
|
21
21
|
/* button loading status default variables */
|
|
22
|
-
--button_loading_bg_color: var(--
|
|
22
|
+
--button_loading_bg_color: var(--zdt_button_loading_default_bg);
|
|
23
23
|
--button_loading_border_radius: 50%;
|
|
24
24
|
|
|
25
25
|
/* button success status default variable */
|
|
26
26
|
--button_success_border_color: var(--zdt_button_success_default_border);
|
|
27
27
|
}
|
|
28
|
-
|
|
29
28
|
.native {
|
|
30
29
|
composes: varClass;
|
|
31
30
|
/* transition: all var(--zd_transition2) ease 0s; */
|
|
31
|
+
letter-spacing: var(--button_letter_spacing);
|
|
32
|
+
opacity: var(--button_opacity);
|
|
32
33
|
transition-property: background-color, color, border;
|
|
33
34
|
transition-duration: var(--zd_transition2);
|
|
34
35
|
transition-timing-function: ease;
|
|
35
36
|
border: 0;
|
|
36
|
-
letter-spacing: var(--button_letter_spacing);
|
|
37
37
|
cursor: var(--button_cursor);
|
|
38
|
-
opacity: var(--button_opacity);
|
|
39
38
|
}
|
|
40
39
|
|
|
41
40
|
.native:disabled {
|
|
@@ -52,14 +51,14 @@
|
|
|
52
51
|
color: var(--button_text_color);
|
|
53
52
|
font-family: var(--button_font_family);
|
|
54
53
|
text-transform: var(--button_text_transform);
|
|
54
|
+
min-width: var(--button_min_width);
|
|
55
|
+
height: var(--button_height);
|
|
55
56
|
background-color: var(--button_bg_color);
|
|
56
57
|
border-radius: var(--button_border_radius);
|
|
57
|
-
min-width: var(--button_min_width);
|
|
58
58
|
border-width: var(--button_border_width);
|
|
59
59
|
border-style: var(--button_border_style);
|
|
60
60
|
border-color: var(--button_border_color);
|
|
61
61
|
padding: var(--button_padding);
|
|
62
|
-
height: var(--button_height);
|
|
63
62
|
box-shadow: var(--button_box_shadow);
|
|
64
63
|
}
|
|
65
64
|
|
|
@@ -73,39 +72,39 @@
|
|
|
73
72
|
}
|
|
74
73
|
|
|
75
74
|
.small {
|
|
76
|
-
--button_padding:
|
|
77
|
-
--button_min_width:
|
|
78
|
-
--button_font_size:
|
|
75
|
+
--button_padding: var(--zd_size4) var(--zd_size7);
|
|
76
|
+
--button_min_width: var(--zd_size50);
|
|
77
|
+
--button_font_size: var(--zd_font_size10);
|
|
79
78
|
}
|
|
80
79
|
|
|
81
80
|
.medium {
|
|
82
|
-
--button_padding:
|
|
81
|
+
--button_padding: var(--zd_size6) var(--zd_size15);
|
|
83
82
|
}
|
|
84
83
|
|
|
85
84
|
.large {
|
|
86
|
-
--button_padding:
|
|
87
|
-
--button_min_width:
|
|
88
|
-
--button_font_size:
|
|
85
|
+
--button_padding: var(--zd_size9) var(--zd_size14);
|
|
86
|
+
--button_min_width: var(--zd_size80);
|
|
87
|
+
--button_font_size: var(--zd_font_size12);
|
|
89
88
|
}
|
|
90
89
|
|
|
91
90
|
.xlarge {
|
|
92
|
-
--button_padding:
|
|
93
|
-
--button_min_width:
|
|
94
|
-
--button_font_size:
|
|
91
|
+
--button_padding: var(--zd_size12) var(--zd_size25);
|
|
92
|
+
--button_min_width: var(--zd_size90);
|
|
93
|
+
--button_font_size: var(--zd_font_size13);
|
|
95
94
|
}
|
|
96
95
|
|
|
97
96
|
.mediumBtn {
|
|
97
|
+
--button_height: var(--zd_size42);
|
|
98
|
+
--button_min_width: var(--zd_size42);
|
|
99
|
+
--button_font_size: var(--zd_font_size10);
|
|
98
100
|
text-align: center;
|
|
99
|
-
--button_height: 42px;
|
|
100
|
-
--button_min_width: 42px;
|
|
101
|
-
--button_font_size: 10px;
|
|
102
101
|
}
|
|
103
102
|
|
|
104
103
|
.smallBtn {
|
|
104
|
+
--button_height: var(--zd_size22);
|
|
105
|
+
--button_min_width: var(--zd_size22);
|
|
106
|
+
--button_font_size: var(--zd_font_size13);
|
|
105
107
|
text-align: center;
|
|
106
|
-
--button_height: 22px;
|
|
107
|
-
--button_min_width: 22px;
|
|
108
|
-
--button_font_size: 13px;
|
|
109
108
|
}
|
|
110
109
|
|
|
111
110
|
.smallBtnprimary,
|
|
@@ -133,22 +132,20 @@
|
|
|
133
132
|
|
|
134
133
|
.plainprimary {
|
|
135
134
|
--button_text_color: var(--zdt_button_default_text);
|
|
136
|
-
--button_padding:
|
|
135
|
+
--button_padding: var(--zd_size5);
|
|
137
136
|
--button_min_width: initial;
|
|
138
137
|
--button_bg_color: var(--zdt_button_default_bg);
|
|
139
138
|
}
|
|
140
|
-
|
|
141
139
|
.plainprimary:hover {
|
|
142
140
|
--button_text_color: var(--zdt_button_plainprimary_hover_text);
|
|
143
141
|
}
|
|
144
142
|
|
|
145
143
|
.plainsecondary {
|
|
146
144
|
--button_text_color: var(--zdt_button_secondary_text);
|
|
147
|
-
--button_padding:
|
|
145
|
+
--button_padding: var(--zd_size5);
|
|
148
146
|
--button_min_width: initial;
|
|
149
147
|
--button_bg_color: var(--zdt_button_default_bg);
|
|
150
148
|
}
|
|
151
|
-
|
|
152
149
|
.plainsecondary:hover {
|
|
153
150
|
--button_text_color: var(--zdt_button_secondary_hover_text);
|
|
154
151
|
}
|
|
@@ -163,7 +160,6 @@
|
|
|
163
160
|
.tertiaryfilled {
|
|
164
161
|
--button_border_width: 1px;
|
|
165
162
|
}
|
|
166
|
-
|
|
167
163
|
.primary:hover {
|
|
168
164
|
--button_border_color: var(--zdt_button_primary_hover_border);
|
|
169
165
|
--button_text_color: var(--zdt_button_primary_hover_text);
|
|
@@ -174,7 +170,6 @@
|
|
|
174
170
|
--button_bg_color: var(--zdt_button_primaryfill_bg);
|
|
175
171
|
--button_text_color: var(--zdt_button_primaryfill_text);
|
|
176
172
|
}
|
|
177
|
-
|
|
178
173
|
.primaryfilled:hover {
|
|
179
174
|
--button_bg_color: var(--zdt_button_primaryfill_hover_bg);
|
|
180
175
|
}
|
|
@@ -184,7 +179,6 @@
|
|
|
184
179
|
--button_bg_color: var(--zdt_button_default_bg);
|
|
185
180
|
--button_text_color: var(--zdt_button_danger_text);
|
|
186
181
|
}
|
|
187
|
-
|
|
188
182
|
.danger:hover {
|
|
189
183
|
--button_border_color: var(--zdt_button_danger_hover_border);
|
|
190
184
|
--button_text_color: var(--zdt_button_danger_hover_text);
|
|
@@ -195,7 +189,6 @@
|
|
|
195
189
|
--button_bg_color: var(--zdt_button_dangerfill_bg);
|
|
196
190
|
--button_text_color: var(--zdt_button_dangerfill_text);
|
|
197
191
|
}
|
|
198
|
-
|
|
199
192
|
.dangerfilled:hover {
|
|
200
193
|
--button_bg_color: var(--zdt_button_dangerfill_hover_bg);
|
|
201
194
|
}
|
|
@@ -205,7 +198,6 @@
|
|
|
205
198
|
--button_bg_color: var(--zdt_button_default_bg);
|
|
206
199
|
--button_text_color: var(--zdt_button_secondary_text);
|
|
207
200
|
}
|
|
208
|
-
|
|
209
201
|
.secondary:hover {
|
|
210
202
|
--button_border_color: var(--zdt_button_secondary_hover_border);
|
|
211
203
|
--button_text_color: var(--zdt_button_secondary_hover_text);
|
|
@@ -216,7 +208,6 @@
|
|
|
216
208
|
--button_bg_color: var(--zdt_button_secondaryfill_bg);
|
|
217
209
|
--button_text_color: var(--zdt_button_secondary_text);
|
|
218
210
|
}
|
|
219
|
-
|
|
220
211
|
.secondaryfilled:hover {
|
|
221
212
|
--button_text_color: var(--zdt_button_secondary_hover_text);
|
|
222
213
|
}
|
|
@@ -226,7 +217,6 @@
|
|
|
226
217
|
--button_bg_color: var(--zdt_button_successfill_bg);
|
|
227
218
|
--button_text_color: var(--zdt_button_dangerfill_text);
|
|
228
219
|
}
|
|
229
|
-
|
|
230
220
|
.successfilled:hover {
|
|
231
221
|
--button_border_color: var(--zdt_button_successfill_hover_border);
|
|
232
222
|
--button_bg_color: var(--zdt_button_successfill_hover_bg);
|
|
@@ -237,85 +227,117 @@
|
|
|
237
227
|
--button_bg_color: var(--zdt_button_tertiaryfill_bg);
|
|
238
228
|
--button_text_color: var(--zdt_button_dangerfill_text);
|
|
239
229
|
}
|
|
240
|
-
|
|
241
230
|
.tertiaryfilled:hover {
|
|
242
231
|
--button_bg_color: var(--zdt_button_tertiaryfill_hover_bg);
|
|
243
232
|
}
|
|
244
233
|
|
|
245
234
|
.overlay {
|
|
246
235
|
position: absolute;
|
|
247
|
-
top: 0;
|
|
248
|
-
|
|
249
|
-
right: 0;
|
|
250
|
-
bottom: 0;
|
|
236
|
+
top: 0 ;
|
|
237
|
+
bottom: 0 ;
|
|
251
238
|
background: inherit;
|
|
252
239
|
border-radius: inherit;
|
|
253
240
|
}
|
|
254
241
|
|
|
242
|
+
[dir=ltr] .overlay {
|
|
243
|
+
left: 0 ;
|
|
244
|
+
right: 0 ;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
[dir=rtl] .overlay {
|
|
248
|
+
right: 0 ;
|
|
249
|
+
left: 0 ;
|
|
250
|
+
}
|
|
251
|
+
|
|
255
252
|
.loading {
|
|
256
253
|
position: absolute;
|
|
257
|
-
|
|
258
|
-
|
|
254
|
+
top: 50% ;
|
|
255
|
+
width: var(--zd_size20) ;
|
|
256
|
+
height: var(--zd_size20) ;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
[dir=ltr] .loading {
|
|
260
|
+
left: 50% ;
|
|
259
261
|
transform: translate(-50%, -50%);
|
|
260
262
|
-moz-transform: translate(-50%, -50%);
|
|
261
263
|
-webkit-transform: translate(-50%, -50%);
|
|
262
|
-
|
|
263
|
-
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
[dir=rtl] .loading {
|
|
267
|
+
right: 50% ;
|
|
268
|
+
transform: translate(50%, -50%);
|
|
269
|
+
-moz-transform: translate(50%, -50%);
|
|
270
|
+
-webkit-transform: translate(50%, -50%);
|
|
264
271
|
}
|
|
265
272
|
|
|
266
273
|
.loadingelement {
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
-webkit-animation: crlrotate var(--zd_no_transition8) linear infinite;
|
|
270
|
-
border-radius: 50%;
|
|
271
|
-
height: inherit;
|
|
272
|
-
width: inherit;
|
|
274
|
+
height: inherit ;
|
|
275
|
+
width: inherit ;
|
|
273
276
|
position: relative;
|
|
274
277
|
display: inline-block;
|
|
278
|
+
border-radius: 50%;
|
|
275
279
|
transform-origin: 50%;
|
|
276
280
|
}
|
|
277
281
|
|
|
282
|
+
[dir=ltr] .loadingelement {
|
|
283
|
+
animation: crlrotate-ltr var(--zd_no_transition8) linear infinite;
|
|
284
|
+
-moz-animation: crlrotate-ltr var(--zd_no_transition8) linear infinite;
|
|
285
|
+
-webkit-animation: crlrotate-ltr var(--zd_no_transition8) linear infinite;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
[dir=rtl] .loadingelement {
|
|
289
|
+
animation: crlrotate-rtl var(--zd_no_transition8) linear infinite;
|
|
290
|
+
-moz-animation: crlrotate-rtl var(--zd_no_transition8) linear infinite;
|
|
291
|
+
-webkit-animation: crlrotate-rtl var(--zd_no_transition8) linear infinite;
|
|
292
|
+
}
|
|
293
|
+
|
|
278
294
|
.loadingelement:before,
|
|
279
295
|
.loadingelement:after {
|
|
280
296
|
content: '';
|
|
281
297
|
position: absolute;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.loadingelement:before, .loadingelement:after {
|
|
282
301
|
background-color: var(--button_loading_bg_color);
|
|
283
302
|
border-radius: var(--button_loading_border_radius);
|
|
284
303
|
}
|
|
285
304
|
|
|
286
305
|
.smallloading,
|
|
287
306
|
.mediumloading {
|
|
288
|
-
height:
|
|
289
|
-
width:
|
|
307
|
+
height: var(--zd_size10) ;
|
|
308
|
+
width: var(--zd_size10) ;
|
|
290
309
|
}
|
|
291
310
|
|
|
292
311
|
.loadingelement:after {
|
|
293
|
-
top:
|
|
294
|
-
bottom:
|
|
295
|
-
|
|
296
|
-
|
|
312
|
+
top: var(--zd_size1) ;
|
|
313
|
+
bottom: var(--zd_size1) ;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
[dir=ltr] .loadingelement:after {
|
|
317
|
+
left: var(--zd_size1) ;
|
|
318
|
+
right: var(--zd_size1) ;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
[dir=rtl] .loadingelement:after {
|
|
322
|
+
right: var(--zd_size1) ;
|
|
323
|
+
left: var(--zd_size1) ;
|
|
297
324
|
}
|
|
298
325
|
|
|
299
326
|
.loadingelement {
|
|
300
327
|
--button_loading_bg_color: var(--zdt_button_primaryfill_bg);
|
|
301
328
|
}
|
|
302
|
-
|
|
303
329
|
.primaryelement {
|
|
304
|
-
--button_loading_bg_color: var(--
|
|
330
|
+
--button_loading_bg_color: var(--zdt_button_loading_default_bg);
|
|
305
331
|
}
|
|
306
|
-
|
|
307
332
|
.primaryfilledelement {
|
|
308
333
|
--button_loading_bg_color: var(--zdt_button_primaryfill_bg);
|
|
309
334
|
}
|
|
310
|
-
|
|
311
335
|
.dangerelement {
|
|
312
|
-
--button_loading_bg_color: var(--
|
|
336
|
+
--button_loading_bg_color: var(--zdt_button_loading_default_bg);
|
|
313
337
|
}
|
|
314
|
-
|
|
315
338
|
.dangerfilledelement {
|
|
316
339
|
--button_loading_bg_color: var(--zdt_button_dangerfill_bg);
|
|
317
340
|
}
|
|
318
|
-
|
|
319
341
|
.loadingelement:after,
|
|
320
342
|
.primaryelement:after,
|
|
321
343
|
.primaryfilledelement:after,
|
|
@@ -325,25 +347,33 @@
|
|
|
325
347
|
}
|
|
326
348
|
|
|
327
349
|
.loadingelement:before {
|
|
350
|
+
top: calc( var(--zd_size1) * -1 ) ;
|
|
351
|
+
bottom: calc( var(--zd_size1) * -1 ) ;
|
|
328
352
|
background: var(--zdt_button_loading_linear_gradient);
|
|
329
353
|
background-repeat: no-repeat;
|
|
330
354
|
background-size: 50% 50%;
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
[dir=ltr] .loadingelement:before {
|
|
358
|
+
left: calc( var(--zd_size1) * -1 ) ;
|
|
359
|
+
right: calc( var(--zd_size1) * -1 ) ;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
[dir=rtl] .loadingelement:before {
|
|
363
|
+
right: calc( var(--zd_size1) * -1 ) ;
|
|
364
|
+
left: calc( var(--zd_size1) * -1 ) ;
|
|
335
365
|
}
|
|
336
366
|
|
|
337
367
|
.primaryelement:before {
|
|
338
368
|
--button_loading_bg_color: var(--zdt_button_primaryfill_bg);
|
|
369
|
+
--zdt_button_loading_linear_gradient:var(--zdt_button_loading_primary_linear_gradient);
|
|
339
370
|
transform: rotateX(180deg);
|
|
340
|
-
--zdt_button_loading_linear_gradient: var(--zdt_button_loading_primary_linear_gradient);
|
|
341
371
|
}
|
|
342
372
|
|
|
343
373
|
.dangerelement:before {
|
|
344
374
|
--button_loading_bg_color: var(--zdt_button_dangerfill_bg);
|
|
375
|
+
--zdt_button_loading_linear_gradient:var(--zdt_button_loading_danger_linear_gradient);
|
|
345
376
|
transform: rotateX(180deg);
|
|
346
|
-
--zdt_button_loading_linear_gradient: var(--zdt_button_loading_danger_linear_gradient);
|
|
347
377
|
}
|
|
348
378
|
|
|
349
379
|
.primarysuccess {
|
|
@@ -358,7 +388,7 @@
|
|
|
358
388
|
--button_success_border_color: var(--zdt_button_danger_border);
|
|
359
389
|
}
|
|
360
390
|
|
|
361
|
-
@keyframes crlrotate {
|
|
391
|
+
@keyframes crlrotate-ltr {
|
|
362
392
|
0% {
|
|
363
393
|
transform: scaleX(-1) rotate(0deg);
|
|
364
394
|
}
|
|
@@ -368,7 +398,17 @@
|
|
|
368
398
|
}
|
|
369
399
|
}
|
|
370
400
|
|
|
371
|
-
|
|
401
|
+
@keyframes crlrotate-rtl {
|
|
402
|
+
0% {
|
|
403
|
+
transform: scaleX(-1) rotate(0deg);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
100% {
|
|
407
|
+
transform: scaleX(-1) rotate(360deg);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
@-moz-keyframes crlrotate-ltr {
|
|
372
412
|
0% {
|
|
373
413
|
-moz-transform: scaleX(-1) rotate(0deg);
|
|
374
414
|
}
|
|
@@ -378,7 +418,17 @@
|
|
|
378
418
|
}
|
|
379
419
|
}
|
|
380
420
|
|
|
381
|
-
@-
|
|
421
|
+
@-moz-keyframes crlrotate-rtl {
|
|
422
|
+
0% {
|
|
423
|
+
-moz-transform: scaleX(-1) rotate(0deg);
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
100% {
|
|
427
|
+
-moz-transform: scaleX(-1) rotate(360deg);
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
@-webkit-keyframes crlrotate-ltr {
|
|
382
432
|
0% {
|
|
383
433
|
-webkit-transform: scaleX(-1) rotate(0deg);
|
|
384
434
|
}
|
|
@@ -388,11 +438,19 @@
|
|
|
388
438
|
}
|
|
389
439
|
}
|
|
390
440
|
|
|
391
|
-
|
|
441
|
+
@-webkit-keyframes crlrotate-rtl {
|
|
442
|
+
0% {
|
|
443
|
+
-webkit-transform: scaleX(-1) rotate(0deg);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
100% {
|
|
447
|
+
-webkit-transform: scaleX(-1) rotate(360deg);
|
|
448
|
+
}
|
|
449
|
+
}
|
|
392
450
|
.success {
|
|
393
451
|
position: absolute;
|
|
394
|
-
top: 50
|
|
395
|
-
left: 50
|
|
452
|
+
top: 50% ;
|
|
453
|
+
left: 50% ;
|
|
396
454
|
transform: translate(-50%, -50%);
|
|
397
455
|
-moz-transform: translate(-50%, -50%);
|
|
398
456
|
-webkit-transform: translate(-50%, -50%);
|
|
@@ -400,10 +458,10 @@
|
|
|
400
458
|
}
|
|
401
459
|
|
|
402
460
|
.successelement {
|
|
403
|
-
height:
|
|
461
|
+
height: var(--zd_size15) ;
|
|
404
462
|
position: relative;
|
|
405
|
-
top: -
|
|
406
|
-
width:
|
|
463
|
+
top: calc( var(--zd_size2) * -1 ) ;
|
|
464
|
+
width: var(--zd_size6) ;
|
|
407
465
|
transform: scaleX(-1) rotate(135deg);
|
|
408
466
|
-moz-transform: scaleX(-1) rotate(135deg);
|
|
409
467
|
-webkit-transform: scaleX(-1) rotate(135deg);
|
|
@@ -416,57 +474,55 @@
|
|
|
416
474
|
|
|
417
475
|
@keyframes tick {
|
|
418
476
|
0% {
|
|
419
|
-
height: 0;
|
|
420
|
-
width: 0;
|
|
477
|
+
height: 0 ;
|
|
478
|
+
width: 0 ;
|
|
421
479
|
}
|
|
422
480
|
|
|
423
481
|
50% {
|
|
424
|
-
height: 0;
|
|
425
|
-
width:
|
|
482
|
+
height: 0 ;
|
|
483
|
+
width: var(--zd_size6) ;
|
|
426
484
|
}
|
|
427
485
|
|
|
428
486
|
100% {
|
|
429
|
-
height:
|
|
430
|
-
width:
|
|
487
|
+
height: var(--zd_size15) ;
|
|
488
|
+
width: var(--zd_size6) ;
|
|
431
489
|
}
|
|
432
490
|
}
|
|
433
491
|
|
|
434
492
|
@-moz-keyframes tick {
|
|
435
493
|
0% {
|
|
436
|
-
height: 0;
|
|
437
|
-
width: 0;
|
|
494
|
+
height: 0 ;
|
|
495
|
+
width: 0 ;
|
|
438
496
|
}
|
|
439
497
|
|
|
440
498
|
50% {
|
|
441
|
-
height: 0;
|
|
442
|
-
width:
|
|
499
|
+
height: 0 ;
|
|
500
|
+
width: var(--zd_size6) ;
|
|
443
501
|
}
|
|
444
502
|
|
|
445
503
|
100% {
|
|
446
|
-
height:
|
|
447
|
-
width:
|
|
504
|
+
height: var(--zd_size15) ;
|
|
505
|
+
width: var(--zd_size6) ;
|
|
448
506
|
}
|
|
449
507
|
}
|
|
450
508
|
|
|
451
509
|
@-webkit-keyframes tick {
|
|
452
510
|
0% {
|
|
453
|
-
height: 0;
|
|
454
|
-
width: 0;
|
|
511
|
+
height: 0 ;
|
|
512
|
+
width: 0 ;
|
|
455
513
|
}
|
|
456
514
|
|
|
457
515
|
50% {
|
|
458
|
-
height: 0;
|
|
459
|
-
width:
|
|
516
|
+
height: 0 ;
|
|
517
|
+
width: var(--zd_size6) ;
|
|
460
518
|
}
|
|
461
519
|
|
|
462
520
|
100% {
|
|
463
|
-
height:
|
|
464
|
-
width:
|
|
521
|
+
height: var(--zd_size15) ;
|
|
522
|
+
width: var(--zd_size6) ;
|
|
465
523
|
}
|
|
466
524
|
}
|
|
467
525
|
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
.loader {
|
|
471
|
-
color: var(--dot_mirror)
|
|
526
|
+
.loader{
|
|
527
|
+
color:var(--dot_mirror)
|
|
472
528
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
/* button group default variables */
|
|
3
|
-
--buttongroup_bg_color: var(--
|
|
3
|
+
--buttongroup_bg_color: var(--zdt_buttongroup_default_bg);
|
|
4
4
|
--buttongroup_box_shadow: none;
|
|
5
5
|
--buttongroup_padding: 0;
|
|
6
6
|
--buttongroup_border_width: 0;
|
|
@@ -20,25 +20,38 @@
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.footer {
|
|
23
|
-
--buttongroup_padding: 20px 0 20px 60px
|
|
24
|
-
/*rtl: 20px 60px 20px 0*/
|
|
25
|
-
;
|
|
26
23
|
--buttongroup_box_shadow: var(--zd_bs_buttongroup_footer);
|
|
27
24
|
}
|
|
28
25
|
|
|
26
|
+
[dir=ltr] .footer {
|
|
27
|
+
--buttongroup_padding: var(--zd_size20) 0 var(--zd_size20) var(--zd_size60);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
[dir=rtl] .footer {
|
|
31
|
+
--buttongroup_padding: var(--zd_size20) 0 var(--zd_size20) var(--zd_size60);
|
|
32
|
+
}
|
|
33
|
+
|
|
29
34
|
.header {
|
|
30
|
-
--buttongroup_padding:
|
|
35
|
+
--buttongroup_padding: var(--zd_size12) var(--zd_size20);
|
|
31
36
|
--buttongroup_border_width: 0 0 1px 0;
|
|
32
37
|
}
|
|
33
38
|
|
|
34
|
-
.tab>div button:first-child {
|
|
39
|
+
[dir=ltr] .tab>div button:first-child {
|
|
35
40
|
border-radius: 5px 0 0 5px;
|
|
36
41
|
}
|
|
37
42
|
|
|
38
|
-
.tab>div button:
|
|
43
|
+
[dir=rtl] .tab>div button:first-child {
|
|
44
|
+
border-radius: 0 5px 5px 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
[dir=ltr] .tab>div button:last-child {
|
|
39
48
|
border-radius: 0 5px 5px 0;
|
|
40
49
|
}
|
|
41
50
|
|
|
51
|
+
[dir=rtl] .tab>div button:last-child {
|
|
52
|
+
border-radius: 5px 0 0 5px;
|
|
53
|
+
}
|
|
54
|
+
|
|
42
55
|
.alignleft {
|
|
43
56
|
composes: fleft from '../common/common.module.css';
|
|
44
57
|
}
|
|
@@ -51,22 +64,42 @@
|
|
|
51
64
|
composes: tcenter from '../common/common.module.css';
|
|
52
65
|
}
|
|
53
66
|
|
|
54
|
-
.alignleft>button:first-child {
|
|
55
|
-
margin-left: 0;
|
|
67
|
+
[dir=ltr] .alignleft>button:first-child {
|
|
68
|
+
margin-left: 0 ;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
[dir=rtl] .alignleft>button:first-child {
|
|
72
|
+
margin-right: 0 ;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
[dir=ltr] .alignleft>button {
|
|
76
|
+
margin-left: var(--zd_size15) ;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
[dir=rtl] .alignleft>button {
|
|
80
|
+
margin-right: var(--zd_size15) ;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
[dir=ltr] .alignright>button:last-child {
|
|
84
|
+
margin-right: 0 ;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
[dir=rtl] .alignright>button:last-child {
|
|
88
|
+
margin-left: 0 ;
|
|
56
89
|
}
|
|
57
90
|
|
|
58
|
-
.
|
|
59
|
-
margin-
|
|
91
|
+
[dir=ltr] .alignright>button {
|
|
92
|
+
margin-right: var(--zd_size15) ;
|
|
60
93
|
}
|
|
61
94
|
|
|
62
|
-
.alignright>button
|
|
63
|
-
margin-
|
|
95
|
+
[dir=rtl] .alignright>button {
|
|
96
|
+
margin-left: var(--zd_size15) ;
|
|
64
97
|
}
|
|
65
98
|
|
|
66
|
-
.
|
|
67
|
-
margin-right:
|
|
99
|
+
[dir=ltr] .aligncenter>button {
|
|
100
|
+
margin-right: var(--zd_size15) ;
|
|
68
101
|
}
|
|
69
102
|
|
|
70
|
-
.aligncenter>button {
|
|
71
|
-
margin-
|
|
103
|
+
[dir=rtl] .aligncenter>button {
|
|
104
|
+
margin-left: var(--zd_size15) ;
|
|
72
105
|
}
|
package/es/CheckBox/CheckBox.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { propTypes } from './props/propTypes';
|
|
3
5
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -73,7 +75,7 @@ export default class CheckBox extends React.Component {
|
|
|
73
75
|
role = 'checkbox',
|
|
74
76
|
ariaChecked = checked
|
|
75
77
|
} = a11y;
|
|
76
|
-
return /*#__PURE__*/React.createElement(Container, {
|
|
78
|
+
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
77
79
|
dataId: dataId,
|
|
78
80
|
isCover: false,
|
|
79
81
|
isInline: text ? false : true,
|
|
@@ -90,9 +92,8 @@ export default class CheckBox extends React.Component {
|
|
|
90
92
|
"aria-label": ariaLabel,
|
|
91
93
|
"aria-labelledby": ariaLabelledby,
|
|
92
94
|
"aria-hidden": ariaHidden,
|
|
93
|
-
"data-selector-id": dataSelectorId || id
|
|
94
|
-
|
|
95
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
95
|
+
"data-selector-id": dataSelectorId || id
|
|
96
|
+
}, CheckBoxProps), /*#__PURE__*/React.createElement(Box, {
|
|
96
97
|
className: `${style.boxContainer} ${style[size]} ${customCBoxSize} ${isFilled ? style.filled : ''}`
|
|
97
98
|
}, /*#__PURE__*/React.createElement("input", {
|
|
98
99
|
type: "hidden",
|
|
@@ -144,7 +145,7 @@ export default class CheckBox extends React.Component {
|
|
|
144
145
|
}) : null))), text && /*#__PURE__*/React.createElement(Box, {
|
|
145
146
|
flexible: true,
|
|
146
147
|
className: style.text
|
|
147
|
-
}, /*#__PURE__*/React.createElement(Label, {
|
|
148
|
+
}, /*#__PURE__*/React.createElement(Label, _extends({
|
|
148
149
|
text: text,
|
|
149
150
|
palette: disabled ? 'disable' : labelPalette,
|
|
150
151
|
id: id,
|
|
@@ -155,9 +156,8 @@ export default class CheckBox extends React.Component {
|
|
|
155
156
|
customClass: `${active && !disabled ? `${style[`active${palette}Label`]}` : ''}
|
|
156
157
|
${checked && active ? `${style[`checked${palette}Label`]}` : ''}
|
|
157
158
|
${accessMode} ${customLabel}`,
|
|
158
|
-
title: toolTip ? toolTip : text
|
|
159
|
-
|
|
160
|
-
})));
|
|
159
|
+
title: toolTip ? toolTip : text
|
|
160
|
+
}, LabelProps))));
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
}
|