@zohodesk/components 1.0.0-temp-190.2 → 1.0.0-temp-191

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.
Files changed (248) hide show
  1. package/.cli/PropLessFiles.html +1 -1
  2. package/.cli/propValidation_report.html +1 -1
  3. package/README.md +12 -5
  4. package/assets/Appearance/dark/mode/Component_DarkMode.module.css +2 -29
  5. package/assets/Appearance/light/mode/Component_LightMode.module.css +2 -29
  6. package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +2 -29
  7. package/es/AppContainer/AppContainer.js +10 -9
  8. package/es/AppContainer/AppContainer.module.css +2 -2
  9. package/es/Avatar/Avatar.js +4 -5
  10. package/es/Avatar/Avatar.module.css +22 -52
  11. package/es/AvatarTeam/AvatarTeam.js +7 -7
  12. package/es/AvatarTeam/AvatarTeam.module.css +74 -66
  13. package/es/Button/Button.js +5 -6
  14. package/es/Button/css/Button.module.css +100 -162
  15. package/es/Buttongroup/Buttongroup.module.css +17 -52
  16. package/es/CheckBox/CheckBox.js +18 -8
  17. package/es/CheckBox/CheckBox.module.css +60 -37
  18. package/es/CheckBox/props/propTypes.js +1 -0
  19. package/es/DateTime/DateTime.module.css +57 -86
  20. package/es/DateTime/DateWidget.module.css +7 -11
  21. package/es/DateTime/YearView.module.css +21 -34
  22. package/es/DropBox/DropBox.js +10 -11
  23. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +79 -105
  24. package/es/DropBox/css/DropBox.module.css +6 -24
  25. package/es/DropDown/DropDown.js +2 -1
  26. package/es/DropDown/DropDown.module.css +2 -2
  27. package/es/DropDown/DropDownHeading.module.css +13 -19
  28. package/es/DropDown/DropDownItem.module.css +22 -43
  29. package/es/DropDown/DropDownSearch.module.css +3 -3
  30. package/es/DropDown/DropDownSeparator.module.css +2 -2
  31. package/es/Heading/Heading.module.css +2 -2
  32. package/es/Label/Label.module.css +23 -12
  33. package/es/Label/LabelColors.module.css +7 -1
  34. package/es/Layout/Layout.module.css +15 -15
  35. package/es/ListItem/ListContainer.js +6 -5
  36. package/es/ListItem/ListItem.js +4 -5
  37. package/es/ListItem/ListItem.module.css +87 -90
  38. package/es/ListItem/ListItemWithAvatar.js +4 -5
  39. package/es/ListItem/ListItemWithCheckBox.js +4 -5
  40. package/es/ListItem/ListItemWithIcon.js +4 -5
  41. package/es/ListItem/ListItemWithRadio.js +4 -5
  42. package/es/Modal/Modal.js +4 -5
  43. package/es/MultiSelect/AdvancedMultiSelect.js +8 -9
  44. package/es/MultiSelect/MobileHeader/MobileHeader.module.css +19 -16
  45. package/es/MultiSelect/MultiSelect.module.css +69 -55
  46. package/es/MultiSelect/MultiSelectWithAvatar.js +4 -5
  47. package/es/MultiSelect/SelectedOptions.js +6 -8
  48. package/es/MultiSelect/SelectedOptions.module.css +5 -11
  49. package/es/MultiSelect/Suggestions.js +6 -8
  50. package/es/PopOver/PopOver.module.css +4 -4
  51. package/es/Popup/Popup.js +3 -4
  52. package/es/Radio/Radio.js +25 -6
  53. package/es/Radio/Radio.module.css +40 -23
  54. package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +3 -3
  55. package/es/Radio/props/defaultProps.js +1 -0
  56. package/es/Radio/props/propTypes.js +7 -0
  57. package/es/ResponsiveDropBox/ResponsiveDropBox.js +2 -4
  58. package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
  59. package/es/Ribbon/Ribbon.module.css +64 -147
  60. package/es/RippleEffect/RippleEffect.module.css +27 -9
  61. package/es/Select/Select.js +4 -5
  62. package/es/Select/Select.module.css +22 -33
  63. package/es/Stencils/Stencils.module.css +14 -32
  64. package/es/Switch/Switch.js +8 -8
  65. package/es/Switch/Switch.module.css +35 -32
  66. package/es/Tab/Tab.js +4 -5
  67. package/es/Tab/Tab.module.css +39 -28
  68. package/es/Tab/TabContentWrapper.js +4 -5
  69. package/es/Tab/TabWrapper.js +2 -4
  70. package/es/Tab/Tabs.js +16 -16
  71. package/es/Tab/Tabs.module.css +29 -51
  72. package/es/Tag/Tag.module.css +91 -66
  73. package/es/TextBox/TextBox.js +5 -5
  74. package/es/TextBox/TextBox.module.css +20 -36
  75. package/es/TextBoxIcon/TextBoxIcon.js +2 -4
  76. package/es/TextBoxIcon/TextBoxIcon.module.css +6 -18
  77. package/es/Textarea/Textarea.js +4 -6
  78. package/es/Textarea/Textarea.module.css +60 -36
  79. package/es/Tooltip/Tooltip.module.css +13 -12
  80. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -5
  81. package/es/common/animation.module.css +29 -227
  82. package/es/common/avatarsizes.module.css +16 -16
  83. package/es/common/basicReset.module.css +15 -5
  84. package/es/common/common.module.css +36 -82
  85. package/es/common/customscroll.module.css +32 -29
  86. package/es/common/transition.module.css +10 -50
  87. package/es/deprecated/PortalLayer/PortalLayer.js +8 -6
  88. package/es/semantic/Button/semanticButton.module.css +3 -3
  89. package/es/v1/Animation/Animation.js +1 -1
  90. package/es/v1/AppContainer/AppContainer.js +10 -9
  91. package/es/v1/Avatar/Avatar.js +4 -5
  92. package/es/v1/AvatarTeam/AvatarTeam.js +7 -7
  93. package/es/v1/Button/Button.js +5 -6
  94. package/es/v1/Card/Card.js +1 -1
  95. package/es/v1/CheckBox/CheckBox.js +15 -9
  96. package/es/v1/CheckBox/props/propTypes.js +1 -0
  97. package/es/v1/DropBox/DropBox.js +10 -11
  98. package/es/v1/DropBox/utils/isMobilePopover.js +1 -1
  99. package/es/v1/DropDown/DropDown.js +2 -1
  100. package/es/v1/ListItem/ListContainer.js +7 -6
  101. package/es/v1/ListItem/ListItem.js +4 -5
  102. package/es/v1/ListItem/ListItemWithAvatar.js +4 -5
  103. package/es/v1/ListItem/ListItemWithCheckBox.js +4 -5
  104. package/es/v1/ListItem/ListItemWithIcon.js +4 -5
  105. package/es/v1/ListItem/ListItemWithRadio.js +4 -5
  106. package/es/v1/Modal/Modal.js +4 -5
  107. package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
  108. package/es/v1/MultiSelect/AdvancedMultiSelect.js +9 -10
  109. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +5 -6
  110. package/es/v1/MultiSelect/SelectedOptions.js +6 -8
  111. package/es/v1/MultiSelect/Suggestions.js +6 -8
  112. package/es/v1/MultiSelect/props/defaultProps.js +1 -1
  113. package/es/v1/Popup/Popup.js +3 -4
  114. package/es/v1/Radio/Radio.js +21 -6
  115. package/es/v1/Radio/props/defaultProps.js +1 -0
  116. package/es/v1/Radio/props/propTypes.js +7 -0
  117. package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +3 -5
  118. package/es/v1/Select/GroupSelect.js +1 -1
  119. package/es/v1/Select/Select.js +5 -6
  120. package/es/v1/Select/SelectWithAvatar.js +5 -7
  121. package/es/v1/Select/SelectWithIcon.js +1 -1
  122. package/es/v1/Select/props/defaultProps.js +1 -1
  123. package/es/v1/Select/props/propTypes.js +1 -3
  124. package/es/v1/Switch/Switch.js +8 -8
  125. package/es/v1/Tab/Tab.js +4 -5
  126. package/es/v1/Tab/TabContentWrapper.js +4 -5
  127. package/es/v1/Tab/TabWrapper.js +2 -4
  128. package/es/v1/Tab/Tabs.js +18 -18
  129. package/es/v1/Tab/v1Tab.module.css +39 -28
  130. package/es/v1/Tab/v1Tabs.module.css +29 -51
  131. package/es/v1/TextBox/TextBox.js +5 -5
  132. package/es/v1/TextBoxIcon/TextBoxIcon.js +2 -4
  133. package/es/v1/Textarea/Textarea.js +4 -6
  134. package/es/v1/Tooltip/Tooltip.js +1 -1
  135. package/es/v1/Typography/css/Typography.module.css +33 -39
  136. package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -5
  137. package/lib/AppContainer/AppContainer.module.css +2 -2
  138. package/lib/Avatar/Avatar.module.css +22 -52
  139. package/lib/AvatarTeam/AvatarTeam.module.css +74 -66
  140. package/lib/Button/css/Button.module.css +100 -162
  141. package/lib/Buttongroup/Buttongroup.module.css +17 -52
  142. package/lib/CheckBox/CheckBox.js +34 -24
  143. package/lib/CheckBox/CheckBox.module.css +60 -37
  144. package/lib/CheckBox/props/propTypes.js +1 -0
  145. package/lib/DateTime/DateTime.module.css +57 -86
  146. package/lib/DateTime/DateWidget.module.css +7 -11
  147. package/lib/DateTime/YearView.module.css +21 -34
  148. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +79 -105
  149. package/lib/DropBox/css/DropBox.module.css +6 -24
  150. package/lib/DropDown/DropDown.module.css +2 -2
  151. package/lib/DropDown/DropDownHeading.module.css +13 -19
  152. package/lib/DropDown/DropDownItem.module.css +22 -43
  153. package/lib/DropDown/DropDownSearch.module.css +3 -3
  154. package/lib/DropDown/DropDownSeparator.module.css +2 -2
  155. package/lib/Heading/Heading.module.css +2 -2
  156. package/lib/Label/Label.module.css +23 -12
  157. package/lib/Label/LabelColors.module.css +7 -1
  158. package/lib/Layout/Layout.module.css +15 -15
  159. package/lib/ListItem/ListItem.module.css +87 -90
  160. package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +19 -16
  161. package/lib/MultiSelect/MultiSelect.module.css +69 -55
  162. package/lib/MultiSelect/SelectedOptions.module.css +5 -11
  163. package/lib/PopOver/PopOver.module.css +4 -4
  164. package/lib/Radio/Radio.js +45 -26
  165. package/lib/Radio/Radio.module.css +40 -23
  166. package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +3 -3
  167. package/lib/Radio/props/defaultProps.js +1 -0
  168. package/lib/Radio/props/propTypes.js +7 -0
  169. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
  170. package/lib/Ribbon/Ribbon.module.css +64 -147
  171. package/lib/RippleEffect/RippleEffect.module.css +27 -9
  172. package/lib/Select/Select.module.css +22 -33
  173. package/lib/Stencils/Stencils.module.css +14 -32
  174. package/lib/Switch/Switch.module.css +35 -32
  175. package/lib/Tab/Tab.module.css +39 -28
  176. package/lib/Tab/Tabs.module.css +29 -51
  177. package/lib/Tag/Tag.module.css +91 -66
  178. package/lib/TextBox/TextBox.module.css +20 -36
  179. package/lib/TextBoxIcon/TextBoxIcon.module.css +6 -18
  180. package/lib/Textarea/Textarea.module.css +60 -36
  181. package/lib/Tooltip/Tooltip.module.css +13 -12
  182. package/lib/common/animation.module.css +29 -227
  183. package/lib/common/avatarsizes.module.css +16 -16
  184. package/lib/common/basicReset.module.css +15 -5
  185. package/lib/common/common.module.css +36 -82
  186. package/lib/common/customscroll.module.css +32 -29
  187. package/lib/common/transition.module.css +10 -50
  188. package/lib/semantic/Button/semanticButton.module.css +3 -3
  189. package/lib/v1/Animation/Animation.js +1 -1
  190. package/lib/v1/Card/Card.js +1 -1
  191. package/lib/v1/CheckBox/CheckBox.js +7 -1
  192. package/lib/v1/CheckBox/props/propTypes.js +1 -0
  193. package/lib/v1/DropBox/utils/isMobilePopover.js +1 -1
  194. package/lib/v1/ListItem/ListContainer.js +1 -1
  195. package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
  196. package/lib/v1/MultiSelect/AdvancedMultiSelect.js +1 -1
  197. package/lib/v1/MultiSelect/props/defaultProps.js +1 -1
  198. package/lib/v1/Radio/Radio.js +22 -7
  199. package/lib/v1/Radio/props/defaultProps.js +1 -0
  200. package/lib/v1/Radio/props/propTypes.js +7 -0
  201. package/lib/v1/ResponsiveDropBox/ResponsiveDropBox.js +1 -1
  202. package/lib/v1/Select/GroupSelect.js +1 -1
  203. package/lib/v1/Select/Select.js +1 -1
  204. package/lib/v1/Select/SelectWithAvatar.js +4 -6
  205. package/lib/v1/Select/SelectWithIcon.js +1 -1
  206. package/lib/v1/Select/props/defaultProps.js +1 -1
  207. package/lib/v1/Select/props/propTypes.js +1 -3
  208. package/lib/v1/Tab/Tabs.js +2 -2
  209. package/lib/v1/Tab/v1Tab.module.css +39 -28
  210. package/lib/v1/Tab/v1Tabs.module.css +29 -51
  211. package/lib/v1/Tooltip/Tooltip.js +1 -1
  212. package/lib/v1/Typography/css/Typography.module.css +33 -39
  213. package/package.json +10 -10
  214. package/es/v1/Provider/AvatarSize.js +0 -13
  215. package/es/v1/Provider/Config.js +0 -18
  216. package/es/v1/Provider/CssProvider.js +0 -16
  217. package/es/v1/Provider/IdProvider.js +0 -66
  218. package/es/v1/Provider/LibraryContext.js +0 -37
  219. package/es/v1/Provider/LibraryContextInit.js +0 -3
  220. package/es/v1/Provider/NumberGenerator/NumberGenerator.js +0 -136
  221. package/es/v1/Provider/ZindexProvider.js +0 -57
  222. package/es/v1/Provider/index.js +0 -4
  223. package/es/v1/Responsive/CustomResponsive.js +0 -195
  224. package/es/v1/Responsive/RefWrapper.js +0 -39
  225. package/es/v1/Responsive/ResizeComponent.js +0 -197
  226. package/es/v1/Responsive/ResizeObserver.js +0 -140
  227. package/es/v1/Responsive/Responsive.js +0 -194
  228. package/es/v1/Responsive/index.js +0 -9
  229. package/es/v1/Responsive/props/defaultProps.js +0 -13
  230. package/es/v1/Responsive/props/propTypes.js +0 -25
  231. package/lib/v1/Provider/AvatarSize.js +0 -24
  232. package/lib/v1/Provider/Config.js +0 -27
  233. package/lib/v1/Provider/CssProvider.js +0 -27
  234. package/lib/v1/Provider/IdProvider.js +0 -79
  235. package/lib/v1/Provider/LibraryContext.js +0 -76
  236. package/lib/v1/Provider/LibraryContextInit.js +0 -15
  237. package/lib/v1/Provider/NumberGenerator/NumberGenerator.js +0 -174
  238. package/lib/v1/Provider/ZindexProvider.js +0 -69
  239. package/lib/v1/Provider/index.js +0 -81
  240. package/lib/v1/Responsive/CustomResponsive.js +0 -242
  241. package/lib/v1/Responsive/RefWrapper.js +0 -57
  242. package/lib/v1/Responsive/ResizeComponent.js +0 -268
  243. package/lib/v1/Responsive/ResizeObserver.js +0 -168
  244. package/lib/v1/Responsive/Responsive.js +0 -274
  245. package/lib/v1/Responsive/index.js +0 -55
  246. package/lib/v1/Responsive/props/defaultProps.js +0 -23
  247. package/lib/v1/Responsive/props/propTypes.js +0 -39
  248. package/result.json +0 -1
@@ -1,110 +1,122 @@
1
1
  .wrapper {
2
2
  position: relative;
3
3
  }
4
- .disabled, .readOnly {
4
+
5
+ .disabled,
6
+ .readOnly {
5
7
  cursor: not-allowed;
6
8
  }
9
+
7
10
  .container {
8
- max-height: var(--zd_size120) ;
11
+ max-height: 120px;
9
12
  composes: oflowy from '../common/common.module.css';
10
13
  }
14
+
11
15
  .hasBorder {
12
- transition: border var(--zd_transition2) linear 0s;
13
16
  border-bottom-style: solid;
14
17
  border-bottom-width: 1px;
18
+ transition: border var(--zd_transition2) linear 0s;
15
19
  }
20
+
16
21
  .borderColor_transparent {
17
22
  border-bottom-color: var(--zdt_multiselect_transparent_border);
18
23
  }
24
+
19
25
  .effect .borderColor_transparent:hover {
20
26
  border-bottom-color: var(--zdt_multiselect_transparent_hover_border);
21
27
  }
28
+
22
29
  .effect .borderColor_transparent.active {
23
30
  border-bottom-color: var(--zdt_multiselect_transparent_active_border);
24
31
  }
32
+
25
33
  .borderColor_default {
26
34
  border-bottom-color: var(--zdt_multiselect_default_border);
27
35
  }
36
+
28
37
  .effect .borderColor_default:hover {
29
38
  border-bottom-color: var(--zdt_multiselect_default_hover_border);
30
39
  }
40
+
31
41
  .effect .borderColor_default.active {
32
42
  border-bottom-color: var(--zdt_multiselect_default_active_border);
33
43
  }
44
+
34
45
  .borderColor_dark {
35
46
  border-bottom-color: var(--zdt_multiselect_dark_border);
36
47
  }
48
+
37
49
  .effect .borderColor_dark:hover {
38
50
  border-bottom-color: var(--zdt_multiselect_dark_hover_border);
39
51
  }
52
+
40
53
  .effect .borderColor_dark.active {
41
54
  border-bottom-color: var(--zdt_multiselect_dark_active_border);
42
55
  }
43
56
 
44
57
  .container.medium {
45
- padding-bottom: var(--zd_size8) ;
58
+ padding-bottom: 8px;
46
59
  }
47
60
 
48
61
  .container.xmedium {
49
- min-height: var(--zd_size30) ;
50
- padding-bottom: var(--zd_size3) ;
62
+ padding-bottom: 3px;
63
+ min-height: 30px;
51
64
  }
52
65
 
53
66
  .delete {
54
- font: inherit;
55
- padding: var(--zd_size2) var(--zd_size6) ;
67
+ padding: 2px 6px;
56
68
  cursor: pointer;
57
69
  border: 0;
58
70
  background-color: var(--zdt_multiselect_delete_bg);
71
+ font: inherit;
59
72
  }
73
+
60
74
  .delete,
61
75
  .defaultDelete {
62
76
  color: var(--zdt_multiselect_delete_text);
63
77
  }
78
+
64
79
  .darkDelete {
65
80
  color: var(--zdt_multiselect_darkdelete_text);
66
81
  }
67
82
 
68
83
  .delete:hover,
69
84
  .defaultDelete:hover {
70
- color: var(--zdt_multiselect_delete_hover_text);
85
+ color: var(--zdt_base_color);
71
86
  }
87
+
72
88
  .darkDelete:hover {
73
89
  color: var(--zdt_multiselect_darkdelete_hover_text);
74
90
  }
91
+
75
92
  .transparentContainer .delete {
76
93
  opacity: 0;
77
94
  visibility: hidden;
78
95
  }
96
+
79
97
  .transparentContainer:hover .delete {
80
98
  opacity: 1;
81
99
  visibility: visible;
82
100
  }
83
101
 
84
102
  .tag {
85
- max-width: 100% ;
103
+ max-width: 100%;
86
104
  }
87
105
 
88
- [dir=ltr] .container.xmedium .tag {
89
- margin: var(--zd_size2) var(--zd_size10) 0 0 ;
106
+ .container.xmedium .tag {
107
+ margin: 2px 10px 0 0;
90
108
  }
91
109
 
92
- [dir=rtl] .container.xmedium .tag {
93
- margin: var(--zd_size2) 0 0 var(--zd_size10) ;
110
+ .container.medium .tag {
111
+ margin: 5px 10px 0 0;
94
112
  }
95
113
 
96
- [dir=ltr] .container.medium .tag {
97
- margin: var(--zd_size5) var(--zd_size10) 0 0 ;
114
+ .responsiveParent {
115
+ width: 100%;
98
116
  }
99
117
 
100
- [dir=rtl] .container.medium .tag {
101
- margin: var(--zd_size5) 0 0 var(--zd_size10) ;
102
- }
103
- .responsiveParent{
104
- width: 100% ;
105
- }
106
118
  .box {
107
- background: var(--zdt_multiselect_box_bg);
119
+ background: var(--zdt_base_bg);
108
120
  }
109
121
 
110
122
  .selectAll:hover {
@@ -112,41 +124,43 @@
112
124
  }
113
125
 
114
126
  .small {
115
- max-height: var(--zd_size200) ;
127
+ max-height: 200px;
116
128
  }
117
129
 
118
130
  .medium {
119
- max-height: var(--zd_size350) ;
131
+ max-height: 350px;
120
132
  }
121
133
 
122
134
  .large {
123
- max-height: var(--zd_size400) ;
135
+ max-height: 400px;
124
136
  }
125
137
 
126
138
  .commonMessage {
127
- font-size: var(--zd_font_size14) ;
139
+ font-size: 14px;
128
140
  composes: semibold from '../common/common.module.css';
129
- padding: var(--zd_size12) var(--zd_size15) ;
141
+ padding: 12px 15px;
130
142
  }
143
+
131
144
  .default,
132
145
  .dark {
133
146
  composes: commonMessage;
134
147
  }
148
+
135
149
  .default,
136
150
  .defaultBox {
137
151
  color: var(--zdt_multiselect_message_text);
138
152
  }
153
+
139
154
  .dark,
140
155
  .darkBox {
141
- color: var(--zdt_multiselect_darkmsg_text);
142
- }
143
- .dark, .darkBox {
144
156
  background: var(--zdt_multiselect_darkmsg_bg);
157
+ color: var(--zdt_multiselect_darkmsg_text);
145
158
  }
146
159
 
147
160
  .hide {
148
161
  composes: vishidden from '../common/common.module.css';
149
162
  }
163
+
150
164
  .custmSpan {
151
165
  display: inline-block;
152
166
  vertical-align: middle;
@@ -154,51 +168,51 @@
154
168
  overflow: hidden;
155
169
  text-overflow: ellipsis;
156
170
  white-space: nowrap;
157
- max-width: 100% ;
171
+ max-width: 100%;
158
172
  visibility: hidden;
159
173
  }
174
+
160
175
  .custmSpanMedium {
161
- height: var(--zd_size35) ;
176
+ height: 35px;
162
177
  }
178
+
163
179
  .custmSpanXmedium {
164
- height: var(--zd_size28) ;
180
+ height: 28px;
165
181
  }
182
+
166
183
  .custmInputWrapper {
167
184
  position: absolute;
168
- top: 0 ;
169
- width: 100% ;
170
- }
171
- [dir=ltr] .custmInputWrapper {
172
- left: 0 ;
173
- }
174
- [dir=rtl] .custmInputWrapper {
175
- right: 0 ;
185
+ top: 0;
186
+ left: 0;
187
+ width: 100%;
176
188
  }
189
+
177
190
  .title {
178
- margin-bottom: var(--zd_size6) ;
191
+ margin-bottom: 6px;
179
192
  }
193
+
180
194
  .groupTitle {
181
- margin: var(--zd_size6) 0 ;
195
+ margin: 6px 0;
182
196
  }
197
+
183
198
  .loader {
184
- padding: var(--zd_size10) ;
199
+ padding: 10px;
185
200
  }
201
+
186
202
  .iconContainer {
187
- padding-top: var(--zd_size3)
203
+ padding-top: 3px
188
204
  }
189
- [dir=ltr] .clearIconSpace {
190
- padding-right: var(--zd_size37)
191
- }
192
- [dir=rtl] .clearIconSpace {
193
- padding-left: var(--zd_size37)
205
+
206
+ .clearIconSpace {
207
+ padding-right: 37px
194
208
  }
195
209
 
196
210
  .more {
197
- font-size: var(--zd_font_size14) ;
211
+ font-size: 14px;
198
212
  color: var(--zdt_multiselect_more_text);
199
- font-family: inherit;
200
213
  cursor: pointer;
201
- margin-top: var(--zd_size5) ;
214
+ margin-top: 5px;
215
+ font-family: inherit;
202
216
  background-color: var(--zdt_multiselect_delete_bg);
203
217
  border: 0;
204
- }
218
+ }
@@ -1,15 +1,9 @@
1
1
  .tag {
2
- max-width: 100% ;
2
+ max-width: 100%;
3
3
  }
4
- [dir=ltr] .xmedium {
5
- margin: 0 var(--zd_size10) var(--zd_size2) 0 ;
4
+ .xmedium {
5
+ margin: 0 10px 2px 0;
6
6
  }
7
- [dir=rtl] .xmedium {
8
- margin: 0 0 var(--zd_size2) var(--zd_size10) ;
9
- }
10
- [dir=ltr] .medium {
11
- margin: var(--zd_size5) var(--zd_size10) 0 0 ;
12
- }
13
- [dir=rtl] .medium {
14
- margin: var(--zd_size5) 0 0 var(--zd_size10) ;
7
+ .medium {
8
+ margin: 5px 10px 0 0;
15
9
  }
@@ -1,9 +1,9 @@
1
1
  .popup {
2
2
  position: relative;
3
- /* css:theme-validation:ignore */
4
- background-color: var(--dot_white);
3
+ background-color: var(--zdt_base_bg);
5
4
  }
5
+
6
6
  .target {
7
- composes: offSelection from '../common/common.module.css';
8
7
  cursor: pointer;
9
- }
8
+ composes: offSelection from '../common/common.module.css';
9
+ }
@@ -21,6 +21,8 @@ var _RadioModule = _interopRequireDefault(require("./Radio.module.css"));
21
21
 
22
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
23
 
24
+ 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); }
25
+
24
26
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25
27
 
26
28
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
@@ -53,6 +55,7 @@ var Radio = /*#__PURE__*/function (_React$Component) {
53
55
 
54
56
  _this = _super.call(this, props);
55
57
  _this.onChange = _this.onChange.bind(_assertThisInitialized(_this));
58
+ _this.handleGetRef = _this.handleGetRef.bind(_assertThisInitialized(_this));
56
59
  return _this;
57
60
  }
58
61
 
@@ -64,28 +67,38 @@ var Radio = /*#__PURE__*/function (_React$Component) {
64
67
  value = _this$props.value;
65
68
  onChange && onChange(value, e);
66
69
  }
70
+ }, {
71
+ key: "handleGetRef",
72
+ value: function handleGetRef(ele) {
73
+ var _this$props2 = this.props,
74
+ getRef = _this$props2.getRef,
75
+ value = _this$props2.value;
76
+ getRef && getRef(ele, value);
77
+ }
67
78
  }, {
68
79
  key: "render",
69
80
  value: function render() {
70
- var _this$props2 = this.props,
71
- id = _this$props2.id,
72
- name = _this$props2.name,
73
- value = _this$props2.value,
74
- checked = _this$props2.checked,
75
- disabled = _this$props2.disabled,
76
- isReadOnly = _this$props2.isReadOnly,
77
- palette = _this$props2.palette,
78
- disabledTitle = _this$props2.disabledTitle,
79
- title = _this$props2.title,
80
- text = _this$props2.text,
81
- labelPalette = _this$props2.labelPalette,
82
- size = _this$props2.size,
83
- labelSize = _this$props2.labelSize,
84
- variant = _this$props2.variant,
85
- active = _this$props2.active,
86
- isFilled = _this$props2.isFilled,
87
- customClass = _this$props2.customClass,
88
- a11y = _this$props2.a11y;
81
+ var _this$props3 = this.props,
82
+ id = _this$props3.id,
83
+ name = _this$props3.name,
84
+ value = _this$props3.value,
85
+ checked = _this$props3.checked,
86
+ disabled = _this$props3.disabled,
87
+ isReadOnly = _this$props3.isReadOnly,
88
+ palette = _this$props3.palette,
89
+ disabledTitle = _this$props3.disabledTitle,
90
+ title = _this$props3.title,
91
+ text = _this$props3.text,
92
+ labelPalette = _this$props3.labelPalette,
93
+ size = _this$props3.size,
94
+ labelSize = _this$props3.labelSize,
95
+ variant = _this$props3.variant,
96
+ active = _this$props3.active,
97
+ isFilled = _this$props3.isFilled,
98
+ customClass = _this$props3.customClass,
99
+ customProps = _this$props3.customProps,
100
+ children = _this$props3.children,
101
+ a11y = _this$props3.a11y;
89
102
  var _customClass$customRa = customClass.customRadioWrap,
90
103
  customRadioWrap = _customClass$customRa === void 0 ? '' : _customClass$customRa,
91
104
  _customClass$customRa2 = customClass.customRadio,
@@ -97,13 +110,18 @@ var Radio = /*#__PURE__*/function (_React$Component) {
97
110
  var ariaHidden = a11y.ariaHidden,
98
111
  _a11y$role = a11y.role,
99
112
  role = _a11y$role === void 0 ? 'radio' : _a11y$role,
113
+ tabIndex = a11y.tabIndex,
100
114
  _a11y$ariaChecked = a11y.ariaChecked,
101
115
  ariaChecked = _a11y$ariaChecked === void 0 ? checked : _a11y$ariaChecked,
102
116
  ariaLabel = a11y.ariaLabel,
103
117
  ariaLabelledby = a11y.ariaLabelledby,
104
118
  _a11y$ariaReadonly = a11y.ariaReadonly,
105
119
  ariaReadonly = _a11y$ariaReadonly === void 0 ? isReadOnly || disabled ? true : false : _a11y$ariaReadonly;
106
- return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
120
+ var _customProps$Containe = customProps.ContainerProps,
121
+ ContainerProps = _customProps$Containe === void 0 ? {} : _customProps$Containe,
122
+ _customProps$LabelPro = customProps.LabelProps,
123
+ LabelProps = _customProps$LabelPro === void 0 ? {} : _customProps$LabelPro;
124
+ return /*#__PURE__*/_react["default"].createElement(_Layout.Container, _extends({
107
125
  dataId: value ? value.toLowerCase() : 'RadioComp',
108
126
  isCover: false,
109
127
  isInline: text ? false : true,
@@ -113,13 +131,14 @@ var Radio = /*#__PURE__*/function (_React$Component) {
113
131
  "data-title": toolTip,
114
132
  onClick: !isReadOnly && !disabled ? this.onChange : '',
115
133
  "aria-checked": ariaChecked,
116
- tabindex: isReadOnly || disabled || ariaHidden ? '-1' : '0',
134
+ tabindex: isReadOnly || disabled || ariaHidden ? '-1' : tabIndex || '0',
135
+ eleRef: this.handleGetRef,
117
136
  role: role,
118
137
  "aria-Hidden": ariaHidden,
119
138
  "aria-label": ariaLabel,
120
139
  "aria-labelledby": ariaLabelledby,
121
140
  "aria-readonly": ariaReadonly
122
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
141
+ }, ContainerProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
123
142
  className: "".concat(_RadioModule["default"].radio, " ").concat(checked ? "".concat(_RadioModule["default"]["rdBox".concat(palette)]) : '', " \n ").concat(isReadOnly || disabled ? '' : "".concat(_RadioModule["default"]["hover".concat(palette)]), " ").concat(_RadioModule["default"][size], " ").concat(isFilled ? _RadioModule["default"].filled : '', " ").concat(_RadioModule["default"]["centerPath".concat(palette)], " ").concat(customRadio)
124
143
  }, /*#__PURE__*/_react["default"].createElement("input", {
125
144
  type: "hidden",
@@ -144,17 +163,17 @@ var Radio = /*#__PURE__*/function (_React$Component) {
144
163
  }) : null))), text && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
145
164
  flexible: true,
146
165
  className: _RadioModule["default"].text
147
- }, /*#__PURE__*/_react["default"].createElement(_Label["default"], {
166
+ }, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
148
167
  text: text,
149
- palette: disabled ? 'disable' : labelPalette,
168
+ palette: labelPalette,
150
169
  size: labelSize,
151
170
  type: "title",
152
171
  clipped: true,
153
172
  dataId: "".concat(text, "_label"),
154
173
  variant: variant,
155
174
  title: toolTip ? toolTip : text,
156
- customClass: "".concat(checked && active && !disabled ? "".concat(_RadioModule["default"]["".concat(palette, "checkedActive")]) : '', " \n ").concat(_RadioModule["default"]["".concat(palette, "Label")], " ").concat(accessMode, " ").concat(customLabel)
157
- })));
175
+ customClass: "".concat(checked && active ? "".concat(_RadioModule["default"]["".concat(palette, "checkedActive")]) : '', " \n ").concat(_RadioModule["default"]["".concat(palette, "Label")], " ").concat(accessMode, " ").concat(customLabel)
176
+ }, LabelProps))), children);
158
177
  }
159
178
  }]);
160
179
 
@@ -1,89 +1,104 @@
1
1
  .varClass {
2
2
  /* radio default variables */
3
- --radio_width: var(--zd_size16);
4
- --radio_height: var(--zd_size16);
3
+ --radio_width: 16px;
4
+ --radio_height: 16px;
5
5
  --radio_bg_color: none;
6
6
  --radio_stroke_width: 2px;
7
7
  --radio_stroke_color: var(--zdt_radio_default_stroke);
8
8
  --radio_fill: none;
9
9
  --radio_inner_stroke_width: 0;
10
- }[dir=ltr] .varClass {
11
- --radio_label_margin: 0 0 0 var(--zd_size6);
12
- }[dir=rtl] .varClass {
13
- --radio_label_margin: 0 var(--zd_size6) 0 0;
10
+ --radio_label_margin: 0 0 0 6px
11
+ /*rtl: 0 6px 0 0*/
12
+ ;
14
13
  }
14
+
15
15
  .container {
16
16
  composes: varClass;
17
17
  }
18
+
18
19
  .pointer {
19
20
  cursor: pointer;
20
21
  }
21
- .readonly, .disabled {
22
+
23
+ .readonly,
24
+ .disabled {
22
25
  cursor: not-allowed;
23
26
  }
27
+
28
+ .disabled {
29
+ opacity: 0.7
30
+ }
31
+
24
32
  .radio {
25
33
  composes: offSelection from '../common/common.module.css';
26
34
  width: var(--radio_width);
27
35
  height: var(--radio_height);
28
- /* css:theme-validation:ignore */
29
- stroke: var(--radio_stroke_color);
30
36
  background: var(--radio_bg_color);
31
37
  border-radius: 50%;
38
+ stroke: var(--radio_stroke_color);
32
39
  }
40
+
33
41
  .radio,
34
42
  .centerPath {
35
43
  fill: var(--radio_fill);
36
44
  }
45
+
37
46
  .filled {
38
- --radio_bg_color: var(--zdt_radio_default_bg);
47
+ --radio_bg_color: var(--zdt_base_bg);
39
48
  }
40
49
 
41
50
  .medium {
42
- --radio_width: var(--zd_size16);
43
- --radio_height: var(--zd_size16);
51
+ --radio_width: 16px;
52
+ --radio_height: 16px;
44
53
  }
54
+
45
55
  .small {
46
- --radio_width: var(--zd_size13);
47
- --radio_height: var(--zd_size13);
56
+ --radio_width: 13px;
57
+ --radio_height: 13px;
48
58
  }
59
+
49
60
  .radioLabel {
50
- font-size: 0 ;
61
+ font-size: 0;
51
62
  display: block;
52
63
  }
64
+
53
65
  .rdBox {
54
66
  fill: none;
55
67
  stroke-width: var(--radio_stroke_width);
56
68
  stroke-linecap: round;
57
69
  stroke: inherit;
58
70
  }
71
+
59
72
  .centerPath {
60
73
  --radio_fill: inherit;
61
- stroke-width: var(--radio_inner_stroke_width);
62
74
  transform-origin: center;
75
+ stroke-width: var(--radio_inner_stroke_width);
63
76
  }
64
- [dir=ltr] .checked .centerPath {
65
- animation: circleAnimate var(--zd_transition3) ease forwards;
66
- }
67
- [dir=rtl] .checked .centerPath {
77
+
78
+ .checked .centerPath {
68
79
  animation: circleAnimate var(--zd_transition3) ease forwards;
69
80
  }
81
+
70
82
  .rdBoxprimary,
71
83
  .hoverEfffect:hover .hoverprimary
84
+
72
85
  /* .hoverEfffect:focus .hoverprimary */
73
- {
86
+ {
74
87
  --radio_stroke_color: var(--zdt_radio_primary_stroke);
75
88
  }
76
89
 
77
90
  .rdBoxdanger,
78
91
  .hoverEfffect:hover .hoverdanger
92
+
79
93
  /* .hoverEfffect:focus .hoverdanger */
80
- {
94
+ {
81
95
  --radio_stroke_color: var(--zdt_radio_danger_stroke);
82
96
  }
83
97
 
84
98
  .centerPathprimary {
85
99
  --radio_fill: var(--zdt_radio_primary_fill);
86
100
  }
101
+
87
102
  .centerPathdanger {
88
103
  --radio_fill: var(--zdt_radio_danger_fill);
89
104
  }
@@ -103,11 +118,13 @@
103
118
  .text {
104
119
  margin: var(--radio_label_margin);
105
120
  }
121
+
106
122
  @keyframes circleAnimate {
107
123
  0% {
108
124
  transform: scale(0);
109
125
  }
126
+
110
127
  100% {
111
128
  transform: scale(1);
112
129
  }
113
- }
130
+ }
@@ -1145,7 +1145,7 @@ exports[`Radio rendering the accessMode when disabled 1`] = `
1145
1145
  data-test-id="boxComponent"
1146
1146
  >
1147
1147
  <label
1148
- class="label title medium disable font_default
1148
+ class="label title medium default font_default
1149
1149
  dotted cursor
1150
1150
  primaryLabel disabled "
1151
1151
  data-id="RadioText_label"
@@ -1505,7 +1505,7 @@ exports[`Radio rendering the disabled is true 1`] = `
1505
1505
  data-test-id="boxComponent"
1506
1506
  >
1507
1507
  <label
1508
- class="label title medium disable font_default
1508
+ class="label title medium default font_default
1509
1509
  dotted cursor
1510
1510
  undefined disabled "
1511
1511
  data-id="RadioText_label"
@@ -1567,7 +1567,7 @@ exports[`Radio rendering the disabledTitle 1`] = `
1567
1567
  data-test-id="boxComponent"
1568
1568
  >
1569
1569
  <label
1570
- class="label title medium disable font_default
1570
+ class="label title medium default font_default
1571
1571
  dotted cursor
1572
1572
  primaryLabel disabled "
1573
1573
  data-id="RadioText_label"
@@ -16,6 +16,7 @@ var defaultProps = {
16
16
  variant: 'default',
17
17
  isFilled: true,
18
18
  customClass: {},
19
+ customProps: {},
19
20
  a11y: {}
20
21
  };
21
22
  exports.defaultProps = defaultProps;
@@ -14,6 +14,7 @@ var propTypes = {
14
14
  checked: _propTypes["default"].bool,
15
15
  disabled: _propTypes["default"].bool,
16
16
  disabledTitle: _propTypes["default"].string,
17
+ getRef: _propTypes["default"].func,
17
18
  id: _propTypes["default"].string,
18
19
  isFilled: _propTypes["default"].bool,
19
20
  isReadOnly: _propTypes["default"].bool,
@@ -30,14 +31,20 @@ var propTypes = {
30
31
  customRadio: _propTypes["default"].string,
31
32
  customLabel: _propTypes["default"].string
32
33
  }),
34
+ customProps: _propTypes["default"].exact({
35
+ ContainerProps: _propTypes["default"].object,
36
+ LabelProps: _propTypes["default"].object
37
+ }),
33
38
  a11y: _propTypes["default"].shape({
34
39
  ariaChecked: _propTypes["default"].bool,
35
40
  ariaHidden: _propTypes["default"].bool,
36
41
  role: _propTypes["default"].string,
42
+ tabIndex: _propTypes["default"].oneOfType(_propTypes["default"].string, _propTypes["default"].number),
37
43
  ariaLabelledby: _propTypes["default"].string,
38
44
  ariaLabel: _propTypes["default"].string,
39
45
  ariaReadonly: _propTypes["default"].bool
40
46
  }),
47
+ children: _propTypes["default"].node,
41
48
  onChange: _propTypes["default"].func,
42
49
  text: _propTypes["default"].string
43
50
  };
@@ -1,6 +1,6 @@
1
1
  .dropBoxContainer {
2
- max-height: 70vh ;
2
+ max-height: 70vh;
3
3
  }
4
4
  .boxPadding{
5
- padding-bottom: var(--zd_size10) ;
5
+ padding-bottom: 10px;
6
6
  }