@zohodesk/components 1.0.0-temp-224.4 → 1.0.0-temp-219.2

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 (307) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/README.md +5 -31
  3. package/es/Accordion/Accordion.js +2 -2
  4. package/es/Accordion/AccordionItem.js +4 -4
  5. package/es/Accordion/__tests__/Accordion.spec.js +1 -1
  6. package/es/Accordion/__tests__/AccordionItem.spec.js +1 -1
  7. package/es/Accordion/index.js +2 -2
  8. package/es/Animation/Animation.js +3 -3
  9. package/es/Animation/__tests__/Animation.spec.js +1 -1
  10. package/es/Animation/utils.js +1 -1
  11. package/es/AppContainer/AppContainer.js +9 -9
  12. package/es/AppContainer/__tests__/AppContainer.spec.js +1 -1
  13. package/es/Avatar/Avatar.js +5 -5
  14. package/es/Avatar/__tests__/Avatar.spec.js +1 -1
  15. package/es/AvatarTeam/AvatarTeam.js +4 -4
  16. package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +1 -1
  17. package/es/AvatarTeam/props/propTypes.js +1 -1
  18. package/es/Button/Button.js +4 -4
  19. package/es/Button/__tests__/Button.spec.js +1 -1
  20. package/es/Button/index.js +2 -2
  21. package/es/Button/props/defaultProps.js +1 -1
  22. package/es/Buttongroup/Buttongroup.js +3 -3
  23. package/es/Buttongroup/__tests__/Buttongroup.spec.js +1 -1
  24. package/es/Card/Card.js +5 -5
  25. package/es/Card/__tests__/Card.spec.js +1 -1
  26. package/es/Card/index.js +4 -4
  27. package/es/CheckBox/CheckBox.js +15 -8
  28. package/es/CheckBox/__tests__/CheckBox.spec.js +1 -1
  29. package/es/DateTime/CalendarView.js +6 -6
  30. package/es/DateTime/DateTime.js +15 -15
  31. package/es/DateTime/DateTimePopupFooter.js +5 -5
  32. package/es/DateTime/DateTimePopupHeader.js +4 -4
  33. package/es/DateTime/DateWidget.js +17 -17
  34. package/es/DateTime/DaysRow.js +3 -3
  35. package/es/DateTime/Time.js +5 -5
  36. package/es/DateTime/YearView.js +6 -6
  37. package/es/DateTime/__tests__/CalendarView.spec.js +1 -1
  38. package/es/DateTime/__tests__/DateTime.spec.js +1 -1
  39. package/es/DateTime/__tests__/DateTimePopupFooter.spec.js +1 -1
  40. package/es/DateTime/__tests__/DateTimePopupHeader.spec.js +1 -1
  41. package/es/DateTime/__tests__/DateWidget.spec.js +1 -1
  42. package/es/DateTime/__tests__/DaysRow.spec.js +1 -1
  43. package/es/DateTime/__tests__/Time.spec.js +1 -1
  44. package/es/DateTime/__tests__/YearView.spec.js +1 -1
  45. package/es/DateTime/dateFormatUtils/dateFormat.js +4 -4
  46. package/es/DateTime/dateFormatUtils/dayChange.js +2 -2
  47. package/es/DateTime/dateFormatUtils/index.js +3 -3
  48. package/es/DateTime/dateFormatUtils/monthChange.js +2 -2
  49. package/es/DateTime/dateFormatUtils/timeChange.js +2 -2
  50. package/es/DateTime/dateFormatUtils/yearChange.js +2 -2
  51. package/es/DateTime/index.js +1 -1
  52. package/es/DateTime/props/propTypes.js +1 -1
  53. package/es/DateTime/validator.js +2 -2
  54. package/es/DropBox/DropBox.js +9 -9
  55. package/es/DropBox/DropBoxElement/DropBoxElement.js +6 -6
  56. package/es/DropBox/DropBoxElement/__tests__/DropBoxElement.spec.js +1 -1
  57. package/es/DropBox/DropBoxElement/css/cssJSLogic.js +1 -1
  58. package/es/DropBox/DropBoxElement/useDropboxPosCalc.js +1 -1
  59. package/es/DropBox/__tests__/DropBox.spec.js +1 -1
  60. package/es/DropBox/css/cssJSLogic.js +1 -1
  61. package/es/DropBox/props/defaultProps.js +1 -1
  62. package/es/DropBox/props/propTypes.js +1 -1
  63. package/es/DropBox/utils/isMobilePopover.js +1 -1
  64. package/es/DropDown/DropDown.js +4 -4
  65. package/es/DropDown/DropDownHeading.js +3 -3
  66. package/es/DropDown/DropDownItem.js +3 -3
  67. package/es/DropDown/DropDownSearch.js +4 -4
  68. package/es/DropDown/DropDownSeparator.js +2 -2
  69. package/es/DropDown/__tests__/DropDown.spec.js +1 -1
  70. package/es/DropDown/__tests__/DropDownHeading.spec.js +1 -1
  71. package/es/DropDown/__tests__/DropDownItem.spec.js +1 -1
  72. package/es/DropDown/__tests__/DropDownSearch.spec.js +1 -1
  73. package/es/DropDown/__tests__/DropDownSeparator.spec.js +1 -1
  74. package/es/DropDown/index.js +7 -7
  75. package/es/DropDown/props/propTypes.js +1 -1
  76. package/es/Heading/Heading.js +4 -4
  77. package/es/Heading/__tests__/Heading.spec.js +1 -1
  78. package/es/Label/Label.js +13 -6
  79. package/es/Label/__tests__/Label.spec.js +1 -1
  80. package/es/Layout/Box.js +4 -4
  81. package/es/Layout/Container.js +4 -4
  82. package/es/Layout/__tests__/Box.spec.js +1 -1
  83. package/es/Layout/__tests__/Container.spec.js +1 -1
  84. package/es/Layout/index.js +2 -2
  85. package/es/ListItem/ListContainer.js +6 -6
  86. package/es/ListItem/ListItem.js +5 -5
  87. package/es/ListItem/ListItemWithAvatar.js +7 -7
  88. package/es/ListItem/ListItemWithCheckBox.js +6 -6
  89. package/es/ListItem/ListItemWithIcon.js +5 -5
  90. package/es/ListItem/ListItemWithRadio.js +6 -6
  91. package/es/ListItem/__tests__/ListContainer.spec.js +1 -1
  92. package/es/ListItem/__tests__/ListItem.spec.js +1 -1
  93. package/es/ListItem/__tests__/ListItemWithAvatar.spec.js +1 -1
  94. package/es/ListItem/__tests__/ListItemWithCheckBox.spec.js +1 -1
  95. package/es/ListItem/__tests__/ListItemWithIcon.spec.js +1 -1
  96. package/es/ListItem/__tests__/ListItemWithRadio.spec.js +1 -1
  97. package/es/ListItem/index.js +6 -6
  98. package/es/ListItem/props/propTypes.js +2 -2
  99. package/es/Modal/Modal.js +3 -3
  100. package/es/Modal/__tests__/Modal.spec.js +1 -1
  101. package/es/MultiSelect/AdvancedGroupMultiSelect.js +17 -17
  102. package/es/MultiSelect/AdvancedMultiSelect.js +17 -17
  103. package/es/MultiSelect/EmptyState.js +3 -3
  104. package/es/MultiSelect/MobileHeader/MobileHeader.js +5 -5
  105. package/es/MultiSelect/MobileHeader/__tests__/MobileHeader.spec.js +1 -1
  106. package/es/MultiSelect/MultiSelect.js +20 -20
  107. package/es/MultiSelect/MultiSelectHeader.js +4 -4
  108. package/es/MultiSelect/MultiSelectWithAvatar.js +16 -16
  109. package/es/MultiSelect/SelectedOptions.js +5 -5
  110. package/es/MultiSelect/Suggestions.js +6 -6
  111. package/es/MultiSelect/__tests__/AdvancedGroupMultiSelect.spec.js +1 -1
  112. package/es/MultiSelect/__tests__/AdvancedMultiSelect.spec.js +1 -1
  113. package/es/MultiSelect/__tests__/EmptyState.spec.js +1 -1
  114. package/es/MultiSelect/__tests__/MultiSelect.spec.js +1 -1
  115. package/es/MultiSelect/__tests__/MultiSelectHeader.spec.js +1 -1
  116. package/es/MultiSelect/__tests__/MultiSelectWithAvatar.spec.js +1 -1
  117. package/es/MultiSelect/__tests__/SelectedOptions.spec.js +1 -1
  118. package/es/MultiSelect/__tests__/Suggestions.spec.js +1 -1
  119. package/es/MultiSelect/index.js +4 -4
  120. package/es/MultiSelect/props/defaultProps.js +1 -1
  121. package/es/PopOver/PopOver.js +6 -6
  122. package/es/PopOver/__tests__/PopOver.spec.js +1 -1
  123. package/es/PopOver/index.js +3 -3
  124. package/es/Popup/Popup.js +7 -7
  125. package/es/Provider/AvatarSize.js +1 -1
  126. package/es/Provider/CssProvider.js +1 -1
  127. package/es/Provider/IdProvider.js +2 -2
  128. package/es/Provider/LibraryContext.js +2 -2
  129. package/es/Provider/ZindexProvider.js +2 -2
  130. package/es/Provider/index.js +4 -4
  131. package/es/Radio/Radio.js +6 -6
  132. package/es/Radio/__tests__/Radio.spec.js +1 -1
  133. package/es/Responsive/CustomResponsive.js +7 -7
  134. package/es/Responsive/ResizeComponent.js +2 -2
  135. package/es/Responsive/Responsive.js +6 -6
  136. package/es/Responsive/index.js +3 -3
  137. package/es/Responsive/utils/index.js +1 -1
  138. package/es/Responsive/windowResizeObserver.js +1 -1
  139. package/es/ResponsiveDropBox/ResponsiveDropBox.js +6 -6
  140. package/es/ResponsiveDropBox/__tests__/ResponsiveDropBox.spec.js +1 -1
  141. package/es/ResponsiveDropBox/props/propTypes.js +1 -1
  142. package/es/Ribbon/Ribbon.js +3 -3
  143. package/es/Ribbon/__tests__/Ribbon.spec.js +1 -1
  144. package/es/RippleEffect/RippleEffect.js +4 -4
  145. package/es/RippleEffect/__tests__/RippleEffect.spec.js +1 -1
  146. package/es/Select/GroupSelect.js +16 -16
  147. package/es/Select/Select.js +15 -15
  148. package/es/Select/SelectWithAvatar.js +17 -17
  149. package/es/Select/SelectWithIcon.js +13 -13
  150. package/es/Select/__tests__/GroupSelect.spec.js +1 -1
  151. package/es/Select/__tests__/Select.spec.js +1 -1
  152. package/es/Select/__tests__/SelectWithAvatar.spec.js +1 -1
  153. package/es/Select/__tests__/SelectWithIcon.spec.js +1 -1
  154. package/es/Select/index.js +4 -4
  155. package/es/Select/props/defaultProps.js +1 -1
  156. package/es/Stencils/Stencils.js +5 -6
  157. package/es/Stencils/Stencils.module.css +8 -31
  158. package/es/Stencils/__tests__/Stencils.spec.js +1 -1
  159. package/es/Stencils/props/defaultProps.js +1 -2
  160. package/es/Stencils/props/propTypes.js +1 -2
  161. package/es/Switch/Switch.js +5 -5
  162. package/es/Switch/__tests__/Switch.spec.js +1 -1
  163. package/es/Tab/Tab.js +5 -5
  164. package/es/Tab/TabContent.js +4 -4
  165. package/es/Tab/TabContentWrapper.js +3 -3
  166. package/es/Tab/TabWrapper.js +5 -6
  167. package/es/Tab/Tabs.js +13 -13
  168. package/es/Tab/__tests__/Tab.spec.js +1 -1
  169. package/es/Tab/__tests__/TabContent.spec.js +1 -1
  170. package/es/Tab/__tests__/TabContentWrapper.spec.js +1 -1
  171. package/es/Tab/__tests__/TabWrapper.spec.js +1 -1
  172. package/es/Tab/__tests__/Tabs.spec.js +1 -1
  173. package/es/Tab/index.js +5 -5
  174. package/es/Tag/Tag.js +7 -7
  175. package/es/Tag/__tests__/Tag.spec.js +1 -1
  176. package/es/Tag/props/propTypes.js +1 -1
  177. package/es/TextBox/TextBox.js +3 -3
  178. package/es/TextBox/__tests__/TextBox.spec.js +1 -1
  179. package/es/TextBoxIcon/TextBoxIcon.js +6 -6
  180. package/es/TextBoxIcon/__tests__/TextBoxIcon.spec.js +1 -1
  181. package/es/TextBoxIcon/props/propTypes.js +1 -1
  182. package/es/Textarea/Textarea.js +3 -3
  183. package/es/Textarea/__tests__/Textarea.spec.js +1 -1
  184. package/es/Tooltip/Tooltip.js +6 -6
  185. package/es/Typography/Typography.js +4 -4
  186. package/es/Typography/css/cssJSLogic.js +1 -1
  187. package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -3
  188. package/es/VelocityAnimation/VelocityAnimation/__tests__/VelocityAnimation.spec.js +1 -1
  189. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +43 -6
  190. package/es/VelocityAnimation/VelocityAnimationGroup/__tests__/VelocityAnimationGroup.spec.js +1 -1
  191. package/es/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +4 -1
  192. package/es/VelocityAnimation/index.js +2 -2
  193. package/es/css.js +37 -37
  194. package/es/deprecated/PortalLayer/PortalLayer.js +3 -3
  195. package/es/index.js +39 -39
  196. package/es/semantic/Button/Button.js +3 -3
  197. package/es/semantic/Button/__tests__/Button.spec.js +1 -1
  198. package/es/semantic/index.js +1 -1
  199. package/es/utils/Common.js +1 -1
  200. package/es/utils/ContextOptimizer.js +1 -1
  201. package/es/utils/cssUtils.js +1 -1
  202. package/es/utils/datetime/common.js +1 -1
  203. package/es/utils/dropDownUtils.js +1 -1
  204. package/es/utils/index.js +1 -1
  205. package/es/v1/Accordion/Accordion.js +2 -2
  206. package/es/v1/Accordion/AccordionItem.js +4 -4
  207. package/es/v1/Accordion/index.js +2 -2
  208. package/es/v1/Animation/Animation.js +3 -3
  209. package/es/v1/Animation/utils.js +1 -1
  210. package/es/v1/AppContainer/AppContainer.js +8 -8
  211. package/es/v1/Avatar/Avatar.js +5 -5
  212. package/es/v1/AvatarTeam/AvatarTeam.js +4 -4
  213. package/es/v1/Button/Button.js +4 -4
  214. package/es/v1/Button/props/defaultProps.js +1 -1
  215. package/es/v1/Buttongroup/Buttongroup.js +3 -3
  216. package/es/v1/Card/Card.js +5 -5
  217. package/es/v1/Card/index.js +4 -4
  218. package/es/v1/CheckBox/CheckBox.js +6 -6
  219. package/es/v1/DateTime/CalendarView.js +7 -7
  220. package/es/v1/DateTime/DateTime.js +15 -15
  221. package/es/v1/DateTime/DateTimePopupFooter.js +5 -5
  222. package/es/v1/DateTime/DateTimePopupHeader.js +4 -4
  223. package/es/v1/DateTime/DateWidget.js +17 -17
  224. package/es/v1/DateTime/DaysRow.js +3 -3
  225. package/es/v1/DateTime/Time.js +5 -5
  226. package/es/v1/DateTime/YearView.js +6 -6
  227. package/es/v1/DateTime/index.js +1 -1
  228. package/es/v1/DateTime/props/propTypes.js +1 -1
  229. package/es/v1/DropBox/DropBox.js +9 -9
  230. package/es/v1/DropBox/DropBoxElement/DropBoxElement.js +6 -6
  231. package/es/v1/DropBox/props/defaultProps.js +1 -1
  232. package/es/v1/DropBox/props/propTypes.js +1 -1
  233. package/es/v1/DropBox/utils/isMobilePopover.js +1 -1
  234. package/es/v1/DropDown/DropDown.js +4 -4
  235. package/es/v1/DropDown/DropDownHeading.js +3 -3
  236. package/es/v1/DropDown/DropDownItem.js +3 -3
  237. package/es/v1/DropDown/DropDownSearch.js +4 -4
  238. package/es/v1/DropDown/DropDownSeparator.js +2 -2
  239. package/es/v1/DropDown/props/propTypes.js +1 -1
  240. package/es/v1/Heading/Heading.js +4 -4
  241. package/es/v1/Label/Label.js +4 -4
  242. package/es/v1/Layout/Box.js +4 -4
  243. package/es/v1/Layout/Container.js +4 -4
  244. package/es/v1/Layout/index.js +2 -2
  245. package/es/v1/ListItem/ListContainer.js +6 -6
  246. package/es/v1/ListItem/ListItem.js +5 -5
  247. package/es/v1/ListItem/ListItemWithAvatar.js +7 -7
  248. package/es/v1/ListItem/ListItemWithCheckBox.js +6 -6
  249. package/es/v1/ListItem/ListItemWithIcon.js +5 -5
  250. package/es/v1/ListItem/ListItemWithRadio.js +6 -6
  251. package/es/v1/ListItem/index.js +6 -6
  252. package/es/v1/Modal/Modal.js +3 -3
  253. package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +17 -17
  254. package/es/v1/MultiSelect/AdvancedMultiSelect.js +17 -17
  255. package/es/v1/MultiSelect/EmptyState.js +3 -3
  256. package/es/v1/MultiSelect/MobileHeader/MobileHeader.js +5 -5
  257. package/es/v1/MultiSelect/MultiSelect.js +19 -19
  258. package/es/v1/MultiSelect/MultiSelectHeader.js +4 -4
  259. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +16 -16
  260. package/es/v1/MultiSelect/SelectedOptions.js +5 -5
  261. package/es/v1/MultiSelect/Suggestions.js +6 -6
  262. package/es/v1/MultiSelect/index.js +4 -4
  263. package/es/v1/MultiSelect/props/defaultProps.js +1 -1
  264. package/es/v1/PopOver/PopOver.js +6 -6
  265. package/es/v1/Popup/Popup.js +3 -3
  266. package/es/v1/Radio/Radio.js +5 -5
  267. package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +6 -6
  268. package/es/v1/ResponsiveDropBox/props/propTypes.js +1 -1
  269. package/es/v1/Ribbon/Ribbon.js +3 -3
  270. package/es/v1/RippleEffect/RippleEffect.js +4 -4
  271. package/es/v1/Select/GroupSelect.js +16 -16
  272. package/es/v1/Select/Select.js +15 -15
  273. package/es/v1/Select/SelectWithAvatar.js +17 -17
  274. package/es/v1/Select/SelectWithIcon.js +13 -13
  275. package/es/v1/Select/index.js +4 -4
  276. package/es/v1/Select/props/defaultProps.js +1 -1
  277. package/es/v1/Stencils/Stencils.js +3 -3
  278. package/es/v1/Switch/Switch.js +5 -5
  279. package/es/v1/Tab/Tab.js +5 -5
  280. package/es/v1/Tab/TabContent.js +4 -4
  281. package/es/v1/Tab/TabContentWrapper.js +3 -3
  282. package/es/v1/Tab/TabWrapper.js +3 -3
  283. package/es/v1/Tab/Tabs.js +13 -13
  284. package/es/v1/Tab/index.js +5 -5
  285. package/es/v1/Tag/Tag.js +7 -7
  286. package/es/v1/TextBox/TextBox.js +3 -3
  287. package/es/v1/TextBoxIcon/TextBoxIcon.js +6 -6
  288. package/es/v1/TextBoxIcon/props/propTypes.js +1 -1
  289. package/es/v1/Textarea/Textarea.js +3 -3
  290. package/es/v1/Tooltip/Tooltip.js +6 -6
  291. package/es/v1/Typography/Typography.js +4 -4
  292. package/es/v1/Typography/css/cssJSLogic.js +1 -1
  293. package/es/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -3
  294. package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +3 -3
  295. package/es/v1/semantic/Button/Button.js +3 -3
  296. package/es/v1/semantic/index.js +1 -1
  297. package/lib/CheckBox/CheckBox.js +9 -2
  298. package/lib/Label/Label.js +9 -2
  299. package/lib/Stencils/Stencils.js +2 -3
  300. package/lib/Stencils/Stencils.module.css +8 -31
  301. package/lib/Stencils/props/defaultProps.js +1 -2
  302. package/lib/Stencils/props/propTypes.js +1 -2
  303. package/lib/Tab/TabWrapper.js +2 -3
  304. package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +80 -26
  305. package/lib/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +4 -1
  306. package/package.json +4 -2
  307. package/result.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import React, { useRef } from 'react';
2
- import { defaultProps } from './props/defaultProps';
3
- import { propTypes } from './props/propTypes';
4
- import style from '../../Textarea/Textarea.module.css';
2
+ import { defaultProps } from "./props/defaultProps";
3
+ import { propTypes } from "./props/propTypes";
4
+ import style from "../../Textarea/Textarea.module.css";
5
5
  export default function Textarea(props) {
6
6
  let {
7
7
  size,
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
- import { defaultProps } from './props/defaultProps';
3
- import { propTypes } from './props/propTypes';
4
- import { getLibraryConfig } from '../../Provider/Config';
5
- import ResizeObserver from '../../Responsive/ResizeObserver';
2
+ import { defaultProps } from "./props/defaultProps";
3
+ import { propTypes } from "./props/propTypes";
4
+ import { getLibraryConfig } from "../../Provider/Config";
5
+ import ResizeObserver from "../../Responsive/ResizeObserver";
6
6
  import selectn from 'selectn';
7
- import { whiteSpaceClassMapping } from '../../utils/cssUtils';
8
- import style from '../../Tooltip/Tooltip.module.css';
7
+ import { whiteSpaceClassMapping } from "../../utils/cssUtils";
8
+ import style from "../../Tooltip/Tooltip.module.css";
9
9
  export default class Tooltip extends React.Component {
10
10
  constructor(props) {
11
11
  super(props);
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- import { defaultProps } from './props/defaultProps';
3
- import { propTypes } from './props/propTypes';
4
- import cssJSLogic from './css/cssJSLogic';
2
+ import { defaultProps } from "./props/defaultProps";
3
+ import { propTypes } from "./props/propTypes";
4
+ import cssJSLogic from "./css/cssJSLogic";
5
5
  import { mergeStyle } from '@zohodesk/utils';
6
- import defaultStyle from './css/v1_Typography.module.css';
6
+ import defaultStyle from "./css/v1_Typography.module.css";
7
7
 
8
8
  const Typography = props => {
9
9
  const {
@@ -1,5 +1,5 @@
1
1
  import { compileClassNames } from '@zohodesk/utils';
2
- import { letterspacingMapping, lineheightMapping } from '../utils';
2
+ import { letterspacingMapping, lineheightMapping } from "../utils";
3
3
  export default function cssJSLogic(_ref) {
4
4
  let {
5
5
  props,
@@ -1,9 +1,9 @@
1
1
  import React, { useContext } from 'react';
2
- import { defaultProps } from './props/defaultProps';
3
- import { propTypes } from './props/propTypes';
2
+ import { defaultProps } from "./props/defaultProps";
3
+ import { propTypes } from "./props/propTypes";
4
4
  import { VelocityComponent } from 'velocity-react';
5
5
  import 'velocity-animate/velocity.ui';
6
- import LibraryContext from '../../../Provider/LibraryContextInit';
6
+ import LibraryContext from "../../../Provider/LibraryContextInit";
7
7
  export default function VelocityAnimation(props) {
8
8
  let {
9
9
  children,
@@ -1,9 +1,9 @@
1
1
  import React, { useContext } from 'react';
2
- import { defaultProps } from './props/defaultProps';
3
- import { propTypes } from './props/propTypes';
2
+ import { defaultProps } from "./props/defaultProps";
3
+ import { propTypes } from "./props/propTypes";
4
4
  import { VelocityTransitionGroup } from 'velocity-react';
5
5
  import 'velocity-animate/velocity.ui';
6
- import LibraryContext from '../../../Provider/LibraryContextInit';
6
+ import LibraryContext from "../../../Provider/LibraryContextInit";
7
7
 
8
8
  function clearProps(props) {
9
9
  let newProps = Object.assign({}, props);
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { defaultProps } from './props/defaultProps';
3
- import { propTypes } from './props/propTypes';
4
- import style from '../../../semantic/Button/semanticButton.module.css';
2
+ import { defaultProps } from "./props/defaultProps";
3
+ import { propTypes } from "./props/propTypes";
4
+ import style from "../../../semantic/Button/semanticButton.module.css";
5
5
  export default function Button(props) {
6
6
  const {
7
7
  value,
@@ -1 +1 @@
1
- export { default as SemanticButton } from './Button/Button';
1
+ export { default as SemanticButton } from "./Button/Button";
@@ -13,6 +13,8 @@ var _propTypes = require("./props/propTypes");
13
13
 
14
14
  var _defaultProps = require("./props/defaultProps");
15
15
 
16
+ var _ComponentRegistry = require("@zohodesk/dotkit/es/react/ComponentRegistry");
17
+
16
18
  var _Label = _interopRequireDefault(require("../Label/Label"));
17
19
 
18
20
  var _Layout = require("../Layout");
@@ -213,11 +215,16 @@ var CheckBox = /*#__PURE__*/function (_React$Component) {
213
215
  return CheckBox;
214
216
  }(_react["default"].Component);
215
217
 
216
- exports["default"] = CheckBox;
217
218
  CheckBox.defaultProps = _defaultProps.defaultProps;
218
219
  CheckBox.propTypes = _propTypes.propTypes; // if (__DOCS__) {
219
220
  // CheckBox.docs = {
220
221
  // componentGroup: 'Form Elements',
221
222
  // folderName: 'Style Guide'
222
223
  // };
223
- // }
224
+ // }
225
+
226
+ var _default = (0, _ComponentRegistry.ComponentRegisterer)(CheckBox, {
227
+ name: 'ZDC_CheckBox'
228
+ });
229
+
230
+ exports["default"] = _default;
@@ -13,6 +13,8 @@ var _defaultProps = require("./props/defaultProps");
13
13
 
14
14
  var _propTypes = require("./props/propTypes");
15
15
 
16
+ var _ComponentRegistry = require("@zohodesk/dotkit/es/react/ComponentRegistry");
17
+
16
18
  var _LabelModule = _interopRequireDefault(require("./Label.module.css"));
17
19
 
18
20
  var _LabelColorsModule = _interopRequireDefault(require("./LabelColors.module.css"));
@@ -87,11 +89,16 @@ var Label = /*#__PURE__*/function (_React$Component) {
87
89
  return Label;
88
90
  }(_react["default"].Component);
89
91
 
90
- exports["default"] = Label;
91
92
  Label.defaultProps = _defaultProps.defaultProps;
92
93
  Label.propTypes = _propTypes.propTypes; // if (__DOCS__) {
93
94
  // Label.docs = {
94
95
  // componentGroup: 'Form Elements',
95
96
  // folderName: 'Style Guide'
96
97
  // };
97
- // }
98
+ // }
99
+
100
+ var _default = (0, _ComponentRegistry.ComponentRegisterer)(Label, {
101
+ name: 'ZDC_Label'
102
+ });
103
+
104
+ exports["default"] = _default;
@@ -55,12 +55,11 @@ var Stencils = /*#__PURE__*/function (_React$PureComponent) {
55
55
  shape = _this$props.shape,
56
56
  size = _this$props.size,
57
57
  palette = _this$props.palette,
58
- customClass = _this$props.customClass,
59
- isAnimated = _this$props.isAnimated;
58
+ customClass = _this$props.customClass;
60
59
  size = shape === 'rect' ? _StencilsModule["default"][size] : _StencilsModule["default"]["c".concat(size)];
61
60
  shape = shape === 'rect' ? _StencilsModule["default"].rectangular : _StencilsModule["default"].circle;
62
61
  return /*#__PURE__*/_react["default"].createElement("div", {
63
- className: "".concat(_StencilsModule["default"].container, " ").concat(isAnimated ? _StencilsModule["default"].animate : _StencilsModule["default"]["static"], " ").concat(shape, " ").concat(size, " ").concat(_StencilsModule["default"][palette], " ").concat(customClass)
62
+ className: "".concat(_StencilsModule["default"].container, " ").concat(shape, " ").concat(size, " ").concat(_StencilsModule["default"][palette], " ").concat(customClass)
64
63
  });
65
64
  }
66
65
  }]);
@@ -4,38 +4,29 @@
4
4
  --stencil_width: 100%;
5
5
  --stencil_border_radius: 5px;
6
6
  }
7
-
8
7
  .container {
9
8
  composes: varClass;
10
9
  height: var(--stencil_height);
11
10
  width: var(--stencil_width);
12
11
  border-radius: var(--stencil_border_radius);
13
12
  }
14
-
15
- .container.static {
16
- background-color: var(--zdt_cta_grey_20_bg);
17
- }
18
-
19
- .animate {
13
+ .stencil {
20
14
  background-size: 800px 1px;
21
15
  }
22
-
23
- [dir=ltr] .animate {
16
+ [dir=ltr] .stencil {
24
17
  animation-name: placeHolderShimmer-ltr ;
25
18
  animation-fill-mode: forwards;
26
19
  animation-iteration-count: infinite;
27
20
  animation-duration: var(--zd_transition10);
28
21
  animation-timing-function: linear;
29
22
  }
30
-
31
- [dir=rtl] .animate {
23
+ [dir=rtl] .stencil {
32
24
  animation-name: placeHolderShimmer-rtl ;
33
25
  animation-fill-mode: forwards;
34
26
  animation-iteration-count: infinite;
35
27
  animation-duration: var(--zd_transition10);
36
28
  animation-timing-function: linear;
37
29
  }
38
-
39
30
  @keyframes placeHolderShimmer-ltr {
40
31
  0% {
41
32
  background-position: calc(var(--zd_size468) * -1) 0;
@@ -45,7 +36,6 @@
45
36
  background-position: var(--zd_size468) 0;
46
37
  }
47
38
  }
48
-
49
39
  @keyframes placeHolderShimmer-rtl {
50
40
  0% {
51
41
  background-position: calc(100% - (var(--zd_size468) * -1)) 0;
@@ -57,26 +47,18 @@
57
47
  }
58
48
 
59
49
  .rectangular {
50
+ composes: stencil;
60
51
  --stencil_height: var(--zd_size9);
61
52
  --stencil_border_radius: 5px;
62
53
  }
63
-
64
- .primary.animate {
65
- background-image: var(--zdt_stencil_primary_gradient_bg);
66
- }
67
-
68
54
  .primary {
69
55
  background-color: var(--zdt_stencil_primary_bg);
56
+ background-image: var(--zdt_stencil_primary_gradient_bg);
70
57
  }
71
-
72
- .secondary.animate {
73
- background-image: var(--zdt_stencil_secondary_gradient_bg);
74
- }
75
-
76
58
  .secondary {
77
59
  background-color: var(--zdt_stencil_secondary_bg);
60
+ background-image: var(--zdt_stencil_secondary_gradient_bg);
78
61
  }
79
-
80
62
  .dark {
81
63
  background-color: var(--zdt_stencil_dark_bg);
82
64
  background-image: var(--zdt_stencil_dark_gradient_bg);
@@ -85,35 +67,30 @@
85
67
  .small {
86
68
  --stencil_width: var(--zd_size110);
87
69
  }
88
-
89
70
  .default {
90
71
  --stencil_width: 100%;
91
72
  }
92
-
93
73
  .medium {
94
74
  --stencil_width: var(--zd_size170);
95
75
  }
96
-
97
76
  .large {
98
77
  --stencil_width: var(--zd_size220);
99
78
  }
100
79
 
101
80
  .circle {
81
+ composes: stencil;
102
82
  --stencil_border_radius: 50%;
103
83
  }
104
-
105
84
  .clarge {
106
85
  --stencil_width: var(--zd_size42);
107
86
  --stencil_height: var(--zd_size42);
108
87
  }
109
-
110
88
  .cmedium,
111
89
  .cdefault {
112
90
  --stencil_width: var(--zd_size30);
113
91
  --stencil_height: var(--zd_size30);
114
92
  }
115
-
116
93
  .csmall {
117
94
  --stencil_width: var(--zd_size20);
118
95
  --stencil_height: var(--zd_size20);
119
- }
96
+ }
@@ -8,7 +8,6 @@ var defaultProps = {
8
8
  palette: 'primary',
9
9
  shape: 'rect',
10
10
  size: 'medium',
11
- customClass: '',
12
- isAnimated: false
11
+ customClass: ''
13
12
  };
14
13
  exports.defaultProps = defaultProps;
@@ -13,7 +13,6 @@ var propTypes = {
13
13
  palette: _propTypes["default"].oneOf(['primary', 'secondary', 'dark']),
14
14
  shape: _propTypes["default"].oneOf(['rect', 'circle']),
15
15
  size: _propTypes["default"].oneOf(['small', 'medium', 'large', 'default']),
16
- customClass: _propTypes["default"].string,
17
- isAnimated: _propTypes["default"].bool
16
+ customClass: _propTypes["default"].string
18
17
  };
19
18
  exports.propTypes = propTypes;
@@ -46,8 +46,7 @@ function TabWrapper(_ref) {
46
46
  align = _ref.align,
47
47
  dataId = _ref.dataId,
48
48
  children = _ref.children,
49
- dataSelectorId = _ref.dataSelectorId,
50
- alignWrapper = _ref.alignWrapper;
49
+ dataSelectorId = _ref.dataSelectorId;
51
50
 
52
51
  var _useState = (0, _react.useState)(!hookToDisableInternalState ? defaultTab || 0 : null),
53
52
  _useState2 = _slicedToArray(_useState, 2),
@@ -62,7 +61,7 @@ function TabWrapper(_ref) {
62
61
  onSelect && onSelect(id);
63
62
  }, [hookToDisableInternalState, onSelect]);
64
63
  return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
65
- alignBox: alignWrapper ? alignWrapper : align === 'vertical' ? 'column' : 'row',
64
+ alignBox: align === 'vertical' ? 'column' : 'row',
66
65
  dataId: dataId,
67
66
  dataSelectorId: dataSelectorId
68
67
  }, _react["default"].Children.map(children, function (child) {
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
@@ -29,6 +27,20 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
29
27
 
30
28
  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); }
31
29
 
30
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
31
+
32
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
33
+
34
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
35
+
36
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
37
+
38
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
39
+
40
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
41
+
42
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
43
+
32
44
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
33
45
 
34
46
  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); } }
@@ -63,35 +75,75 @@ var VelocityAnimationGroup = /*#__PURE__*/function (_React$Component) {
63
75
  var _super = _createSuper(VelocityAnimationGroup);
64
76
 
65
77
  function VelocityAnimationGroup(props) {
78
+ var _this;
79
+
66
80
  _classCallCheck(this, VelocityAnimationGroup);
67
81
 
68
- return _super.call(this, props);
82
+ _this = _super.call(this, props);
83
+ _this.handleEnterComplete = _this.handleEnterComplete.bind(_assertThisInitialized(_this));
84
+ _this.handleExitComplete = _this.handleExitComplete.bind(_assertThisInitialized(_this));
85
+ return _this;
69
86
  }
70
87
 
71
88
  _createClass(VelocityAnimationGroup, [{
89
+ key: "handleEnterComplete",
90
+ value: function handleEnterComplete(elements) {
91
+ var _this$props = this.props,
92
+ onEnterComplete = _this$props.onEnterComplete,
93
+ postEnterStyles = _this$props.postEnterStyles;
94
+
95
+ if (typeof onEnterComplete === 'function') {
96
+ onEnterComplete(elements);
97
+ }
98
+
99
+ if (postEnterStyles && _typeof(postEnterStyles) === 'object') {
100
+ elements.forEach(function (rootElement) {
101
+ Object.entries(postEnterStyles).forEach(function (_ref) {
102
+ var _ref2 = _slicedToArray(_ref, 2),
103
+ cssProperty = _ref2[0],
104
+ cssValue = _ref2[1];
105
+
106
+ rootElement.style[cssProperty] = cssValue;
107
+ });
108
+ });
109
+ }
110
+ }
111
+ }, {
112
+ key: "handleExitComplete",
113
+ value: function handleExitComplete(elements) {
114
+ var onExitComplete = this.props.onExitComplete;
115
+
116
+ if (typeof onExitComplete === 'function') {
117
+ onExitComplete(elements);
118
+ }
119
+ }
120
+ }, {
72
121
  key: "render",
73
122
  value: function render() {
74
- var _this$props = this.props,
75
- children = _this$props.children,
76
- enterName = _this$props.enterName,
77
- exitName = _this$props.exitName,
78
- enterDuration = _this$props.enterDuration,
79
- exitDuration = _this$props.exitDuration,
80
- isActive = _this$props.isActive,
81
- component = _this$props.component,
82
- runOnMount = _this$props.runOnMount,
83
- enterShowStyle = _this$props.enterShowStyle,
84
- enterHideStyle = _this$props.enterHideStyle,
85
- exitDelay = _this$props.exitDelay,
86
- isFlex = _this$props.isFlex,
87
- enterDelay = _this$props.enterDelay,
88
- isCustomized = _this$props.isCustomized,
89
- name = _this$props.name,
90
- needUIPack = _this$props.needUIPack;
91
-
92
- var _ref = this.context || {},
93
- direction = _ref.direction,
94
- isReducedMotion = _ref.isReducedMotion;
123
+ var _this$props2 = this.props,
124
+ children = _this$props2.children,
125
+ enterName = _this$props2.enterName,
126
+ exitName = _this$props2.exitName,
127
+ enterDuration = _this$props2.enterDuration,
128
+ exitDuration = _this$props2.exitDuration,
129
+ isActive = _this$props2.isActive,
130
+ component = _this$props2.component,
131
+ runOnMount = _this$props2.runOnMount,
132
+ enterShowStyle = _this$props2.enterShowStyle,
133
+ enterHideStyle = _this$props2.enterHideStyle,
134
+ exitDelay = _this$props2.exitDelay,
135
+ isFlex = _this$props2.isFlex,
136
+ enterDelay = _this$props2.enterDelay,
137
+ isCustomized = _this$props2.isCustomized,
138
+ name = _this$props2.name,
139
+ needUIPack = _this$props2.needUIPack,
140
+ onEnterComplete = _this$props2.onEnterComplete,
141
+ onExitComplete = _this$props2.onExitComplete,
142
+ postEnterStyles = _this$props2.postEnterStyles;
143
+
144
+ var _ref3 = this.context || {},
145
+ direction = _ref3.direction,
146
+ isReducedMotion = _ref3.isReducedMotion;
95
147
 
96
148
  var childProps = clearProps(this.props);
97
149
  var enterAnimationObj = {
@@ -128,13 +180,15 @@ var VelocityAnimationGroup = /*#__PURE__*/function (_React$Component) {
128
180
  animation: isCustomized ? enterAnimationObj[name] : needUIPack ? "transition.".concat(enterName, "In") : enterName,
129
181
  duration: !isReducedMotion ? enterDuration : 0,
130
182
  delay: enterDelay ? enterDelay : 0,
131
- display: isFlex ? 'flex' : ''
183
+ display: isFlex ? 'flex' : '',
184
+ complete: onEnterComplete || postEnterStyles ? this.handleEnterComplete : undefined
132
185
  };
133
186
  var exitAnimation = {
134
187
  animation: isCustomized ? exitAnimationObj[name] : needUIPack ? "transition.".concat(exitName ? exitName : enterName, "Out") : exitName ? exitName : enterName,
135
188
  duration: !isReducedMotion ? exitDuration : 0,
136
189
  delay: exitDelay ? exitDelay : 0,
137
- display: 'none'
190
+ display: 'none',
191
+ complete: onExitComplete ? this.handleExitComplete : undefined
138
192
  };
139
193
  return /*#__PURE__*/_react["default"].createElement(_velocityReact.VelocityTransitionGroup, _extends({
140
194
  enter: enterAnimation,
@@ -25,6 +25,9 @@ var propTypes = {
25
25
  isFlex: _propTypes["default"].bool,
26
26
  name: _propTypes["default"].oneOf(['fade', 'slideDown', 'flyDown', 'slideRight', 'shrink', 'expand', 'slideLeft']),
27
27
  needUIPack: _propTypes["default"].bool,
28
- runOnMount: _propTypes["default"].bool
28
+ runOnMount: _propTypes["default"].bool,
29
+ onEnterComplete: _propTypes["default"].func,
30
+ onExitComplete: _propTypes["default"].func,
31
+ postEnterStyles: _propTypes["default"].object
29
32
  };
30
33
  exports.propTypes = propTypes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/components",
3
- "version": "1.0.0-temp-224.4",
3
+ "version": "1.0.0-temp-219.2",
4
4
  "main": "es/index.js",
5
5
  "module": "es/index.js",
6
6
  "private": false,
@@ -38,7 +38,7 @@
38
38
  "build:css:umd": "npm run clean && npm run init && react-cli build:css:umd",
39
39
  "coverage": "react-cli coverage",
40
40
  "prepare": "npm run init && npm run build && npm run rtl && npm run cssVariableConvert ",
41
- "prepublishOnly": "node prePublish.js && npm run test-clean && npm run download",
41
+ "prepublishOnly": "node prePublish.js && npm run css:review && npm run review:props ",
42
42
  "postpublish": "node postPublish.js",
43
43
  "report": "react-cli publish:report",
44
44
  "test": "react-cli test",
@@ -70,6 +70,7 @@
70
70
  "@zohodesk-private/react-prop-validator": "1.2.3",
71
71
  "@zohodesk/a11y": "2.3.4",
72
72
  "@zohodesk/docstool": "1.0.0-alpha-2",
73
+ "@zohodesk/dotkit": "1.0.0-temp-1.1",
73
74
  "@zohodesk/hooks": "2.0.5",
74
75
  "@zohodesk/icons": "1.0.78",
75
76
  "@zohodesk/svg": "1.1.22",
@@ -86,6 +87,7 @@
86
87
  "selectn": "1.1.2"
87
88
  },
88
89
  "peerDependencies": {
90
+ "@zohodesk/dotkit": "1.0.0-temp-1.1",
89
91
  "@zohodesk/icons": "1.0.78",
90
92
  "@zohodesk/variables": "1.0.0",
91
93
  "@zohodesk/svg": "1.1.22",