@zohodesk/components 1.0.0-temp-78 → 1.0.0-temp-80

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 (698) hide show
  1. package/README.md +1084 -1075
  2. package/assets/Appearance/dark/mode/contrast/darkContrast.module.css +343 -0
  3. package/assets/Appearance/dark/themes/blue/contrast/blueDarkCTAThemeContrast.module.css +34 -0
  4. package/assets/Appearance/dark/themes/green/contrast/greenDarkCTAThemeContrast.module.css +34 -0
  5. package/assets/Appearance/dark/themes/orange/contrast/orangeDarkCTAThemeContrast.module.css +34 -0
  6. package/assets/Appearance/dark/themes/red/contrast/redDarkCTAThemeContrast.module.css +34 -0
  7. package/assets/Appearance/dark/themes/yellow/contrast/yellowDarkCTAThemeContrast.module.css +34 -0
  8. package/assets/Appearance/default/mode/contrast/defaultContrast.module.css +343 -0
  9. package/assets/Appearance/default/themes/blue/contrast/blueDefaultCTAThemeContrast.module.css +34 -0
  10. package/assets/Appearance/default/themes/green/contrast/greenDefaultCTAThemeContrast.module.css +34 -0
  11. package/assets/Appearance/default/themes/orange/contrast/orangeDefaultCTAThemeContrast.module.css +34 -0
  12. package/assets/Appearance/default/themes/red/contrast/redDefaultCTAThemeContrast.module.css +34 -0
  13. package/assets/Appearance/default/themes/yellow/contrast/yellowDefaultCTAThemeContrast.module.css +34 -0
  14. package/assets/Appearance/pureDark/mode/contrast/pureDarkContrast.module.css +343 -0
  15. package/assets/Appearance/pureDark/themes/blue/contrast/bluePureDarkCTAThemeContrast.module.css +34 -0
  16. package/assets/Appearance/pureDark/themes/green/contrast/greenPureDarkCTAThemeContrast.module.css +34 -0
  17. package/assets/Appearance/pureDark/themes/orange/contrast/orangePureDarkCTAThemeContrast.module.css +34 -0
  18. package/assets/Appearance/pureDark/themes/red/contrast/redPureDarkCTAThemeContrast.module.css +34 -0
  19. package/assets/Appearance/pureDark/themes/yellow/contrast/yellowPureDarkCTAThemeContrast.module.css +34 -0
  20. package/docs/external/active-line.js +72 -72
  21. package/docs/external/autorefresh.js +47 -47
  22. package/docs/external/codemirror.js +9681 -9681
  23. package/docs/external/css/hopscotch.css +576 -576
  24. package/docs/external/css/styleGuide.css +1100 -1100
  25. package/docs/external/css.js +466 -466
  26. package/docs/external/designTokens.js +1 -1
  27. package/docs/external/foldcode.js +151 -151
  28. package/docs/external/format.js +129 -129
  29. package/docs/external/htmlmixed.js +84 -84
  30. package/docs/external/index.html +127 -127
  31. package/docs/external/javascript.js +422 -422
  32. package/docs/external/jsx.js +147 -147
  33. package/docs/external/matchbrackets.js +145 -145
  34. package/docs/external/xml.js +322 -322
  35. package/docs/package.json +41 -41
  36. package/docs/src/index.js +1311 -1311
  37. package/es/Accordion/Accordion.js +0 -7
  38. package/es/Accordion/AccordionItem.js +0 -4
  39. package/es/Accordion/docs/Accordion__Demo.docs.js +0 -2
  40. package/es/Animation/Animation.js +0 -3
  41. package/es/Animation/docs/Animation__default.docs.js +0 -2
  42. package/es/Animation/docs/Animation__fadeIn.docs.js +0 -2
  43. package/es/Animation/docs/Animation__scaleIn.docs.js +0 -2
  44. package/es/Animation/docs/Animation__skewIn.docs.js +0 -2
  45. package/es/Animation/docs/Animation__slideDown.docs.js +0 -2
  46. package/es/Animation/docs/Animation__slideLeft.docs.js +0 -2
  47. package/es/Animation/docs/Animation__zoomIn.docs.js +0 -2
  48. package/es/AppContainer/AppContainer.js +2 -13
  49. package/es/AppContainer/AppContainer.module.css +18 -18
  50. package/es/AppContainer/docs/AppContainer__default.docs.js +0 -2
  51. package/es/Avatar/Avatar.js +44 -50
  52. package/es/Avatar/Avatar.module.css +135 -117
  53. package/es/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +288 -288
  54. package/es/Avatar/docs/Avatar__custom.docs.js +1 -3
  55. package/es/Avatar/docs/Avatar__default.docs.js +1 -3
  56. package/es/Avatar/docs/Avatar__palette.docs.js +1 -3
  57. package/es/Avatar/docs/Avatar__text.docs.js +1 -3
  58. package/es/Avatar/props/defaultProps.js +2 -1
  59. package/es/Avatar/props/propTypes.js +2 -1
  60. package/es/AvatarTeam/AvatarTeam.js +7 -10
  61. package/es/AvatarTeam/AvatarTeam.module.css +161 -161
  62. package/es/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +226 -226
  63. package/es/AvatarTeam/docs/AvatarTeam__custom.docs.js +0 -2
  64. package/es/AvatarTeam/docs/AvatarTeam__default.docs.js +0 -2
  65. package/es/AvatarTeam/docs/AvatarTeam__palette.docs.js +0 -2
  66. package/es/AvatarTeam/docs/AvatarTeam__size.docs.js +0 -2
  67. package/es/Button/Button.js +7 -14
  68. package/es/Button/Button.module.css +521 -521
  69. package/es/Button/__tests__/__snapshots__/Button.spec.js.snap +191 -191
  70. package/es/Button/docs/Button__custom.docs.js +11 -13
  71. package/es/Button/docs/Button__default.docs.js +11 -13
  72. package/es/Buttongroup/Buttongroup.js +1 -4
  73. package/es/Buttongroup/Buttongroup.module.css +89 -89
  74. package/es/Buttongroup/__test__/__snapshots__/Buttongroup.spec.js.snap +146 -146
  75. package/es/Buttongroup/docs/Buttongroup__custom.docs.js +0 -2
  76. package/es/Buttongroup/docs/Buttongroup__footer.docs.js +0 -2
  77. package/es/Buttongroup/docs/Buttongroup__header.docs.js +0 -2
  78. package/es/Card/Card.js +11 -26
  79. package/es/Card/Card.module.css +20 -20
  80. package/es/Card/docs/Card__Custom.docs.js +0 -2
  81. package/es/Card/docs/Card__Default.docs.js +0 -2
  82. package/es/Card/docs/Card__Scroll.docs.js +0 -3
  83. package/es/CheckBox/CheckBox.js +0 -5
  84. package/es/CheckBox/CheckBox.module.css +157 -157
  85. package/es/CheckBox/docs/CheckBox__custom.docs.js +12 -16
  86. package/es/CheckBox/docs/CheckBox__default.docs.js +12 -16
  87. package/es/DateTime/CalendarView.js +4 -23
  88. package/es/DateTime/DateTime.js +6 -74
  89. package/es/DateTime/DateTime.module.css +187 -187
  90. package/es/DateTime/DateTimePopupFooter.js +2 -4
  91. package/es/DateTime/DateTimePopupHeader.js +2 -8
  92. package/es/DateTime/DateWidget.js +34 -101
  93. package/es/DateTime/DateWidget.module.css +38 -38
  94. package/es/DateTime/DaysRow.js +2 -4
  95. package/es/DateTime/Time.js +2 -10
  96. package/es/DateTime/YearView.js +4 -28
  97. package/es/DateTime/YearView.module.css +81 -81
  98. package/es/DateTime/__tests__/CalendarView.spec.js +0 -1
  99. package/es/DateTime/__tests__/DateTime.spec.js +0 -1
  100. package/es/DateTime/__tests__/DateWidget.spec.js +3 -2
  101. package/es/DateTime/common.js +0 -3
  102. package/es/DateTime/constants.js +0 -1
  103. package/es/DateTime/dateFormatUtils/dateFormat.js +30 -63
  104. package/es/DateTime/dateFormatUtils/dayChange.js +4 -13
  105. package/es/DateTime/dateFormatUtils/index.js +2 -28
  106. package/es/DateTime/dateFormatUtils/monthChange.js +0 -8
  107. package/es/DateTime/dateFormatUtils/timeChange.js +6 -22
  108. package/es/DateTime/dateFormatUtils/yearChange.js +2 -11
  109. package/es/DateTime/docs/DateTime__default.docs.js +6 -9
  110. package/es/DateTime/docs/DateWidget__default.docs.js +0 -5
  111. package/es/DateTime/index.js +0 -0
  112. package/es/DateTime/objectUtils.js +20 -14
  113. package/es/DateTime/typeChecker.js +0 -3
  114. package/es/DateTime/validator.js +6 -58
  115. package/es/DropBox/DropBox.js +9 -52
  116. package/es/DropBox/DropBox.module.css +406 -406
  117. package/es/DropBox/DropBoxPositionMapping.json +144 -144
  118. package/es/DropBox/docs/DropBox__custom.docs.js +25 -27
  119. package/es/DropBox/docs/DropBox__customOrder.docs.js +0 -7
  120. package/es/DropBox/docs/DropBox__fixedPosition.docs.js +0 -7
  121. package/es/DropBox/docs/DropBox__position.docs.js +35 -37
  122. package/es/DropBox/docs/DropBox__size.docs.js +28 -30
  123. package/es/DropBox/props/defaultProps.js +1 -2
  124. package/es/DropBox/props/propTypes.js +0 -1
  125. package/es/DropDown/DropDown.js +1 -9
  126. package/es/DropDown/DropDown.module.css +5 -5
  127. package/es/DropDown/DropDownHeading.js +2 -4
  128. package/es/DropDown/DropDownHeading.module.css +53 -53
  129. package/es/DropDown/DropDownItem.js +0 -6
  130. package/es/DropDown/DropDownItem.module.css +94 -94
  131. package/es/DropDown/DropDownSearch.js +0 -4
  132. package/es/DropDown/DropDownSearch.module.css +14 -14
  133. package/es/DropDown/DropDownSeparator.js +0 -1
  134. package/es/DropDown/DropDownSeparator.module.css +7 -7
  135. package/es/DropDown/__tests__/DropDown.spec.js +2 -1
  136. package/es/DropDown/docs/DropDownHeading__custom.docs.js +0 -2
  137. package/es/DropDown/docs/DropDownHeading__default.docs.js +0 -2
  138. package/es/Heading/Heading.js +34 -0
  139. package/es/Heading/Heading.module.css +5 -0
  140. package/es/Heading/docs/Heading__default.docs.js +19 -0
  141. package/es/Heading/props/defaultProps.js +5 -0
  142. package/es/Heading/props/propTypes.js +11 -0
  143. package/es/Label/Label.js +2 -4
  144. package/es/Label/Label.module.css +52 -52
  145. package/es/Label/LabelColors.module.css +20 -20
  146. package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +101 -101
  147. package/es/Label/docs/Label__clipped.docs.js +0 -2
  148. package/es/Label/docs/Label__custom.docs.js +0 -2
  149. package/es/Label/docs/Label__palette.docs.js +0 -2
  150. package/es/Label/docs/Label__size.docs.js +0 -2
  151. package/es/Label/docs/Label__type.docs.js +0 -2
  152. package/es/Layout/Box.js +0 -13
  153. package/es/Layout/Container.js +1 -12
  154. package/es/Layout/Layout.module.css +335 -335
  155. package/es/Layout/docs/Layout__Hidden.docs.js +0 -1
  156. package/es/Layout/docs/Layout__default.docs.js +0 -1
  157. package/es/Layout/docs/Layout__four_Column.docs.js +0 -1
  158. package/es/Layout/docs/Layout__three_Column.docs.js +0 -1
  159. package/es/Layout/docs/Layout__two_Column.docs.js +0 -1
  160. package/es/Layout/utils.js +0 -0
  161. package/es/LightNightMode/Colors.json +496 -496
  162. package/es/LightNightMode/docs/AlternativeColors.docs.js +0 -2
  163. package/es/ListItem/ListContainer.js +1 -10
  164. package/es/ListItem/ListItem.js +0 -9
  165. package/es/ListItem/ListItem.module.css +209 -209
  166. package/es/ListItem/ListItemWithAvatar.js +1 -9
  167. package/es/ListItem/ListItemWithCheckBox.js +0 -7
  168. package/es/ListItem/ListItemWithIcon.js +0 -8
  169. package/es/ListItem/ListItemWithRadio.js +0 -7
  170. package/es/ListItem/docs/ListItemWithAvatar__custom.docs.js +0 -2
  171. package/es/ListItem/docs/ListItemWithAvatar__default.docs.js +0 -2
  172. package/es/ListItem/docs/ListItemWithCheckBox__custom.docs.js +0 -2
  173. package/es/ListItem/docs/ListItemWithCheckBox__default.docs.js +0 -2
  174. package/es/ListItem/docs/ListItemWithIcon__custom.docs.js +0 -2
  175. package/es/ListItem/docs/ListItemWithIcon__default.docs.js +0 -2
  176. package/es/ListItem/docs/ListItemWithRadio__custom.docs.js +0 -2
  177. package/es/ListItem/docs/ListItemWithRadio__default.docs.js +0 -2
  178. package/es/ListItem/docs/ListItem__custom.docs.js +0 -2
  179. package/es/ListItem/docs/ListItem__default.docs.js +0 -2
  180. package/es/Modal/Modal.js +8 -28
  181. package/es/Modal/__docs__/Modal__default.docs.js +1 -5
  182. package/es/MultiSelect/AdvancedGroupMultiSelect.js +16 -95
  183. package/es/MultiSelect/AdvancedMultiSelect.js +10 -36
  184. package/es/MultiSelect/EmptyState.js +0 -2
  185. package/es/MultiSelect/MultiSelect.js +36 -105
  186. package/es/MultiSelect/MultiSelect.module.css +205 -205
  187. package/es/MultiSelect/MultiSelectHeader.js +0 -3
  188. package/es/MultiSelect/MultiSelectWithAvatar.js +5 -14
  189. package/es/MultiSelect/SelectedOptions.js +3 -6
  190. package/es/MultiSelect/SelectedOptions.module.css +15 -15
  191. package/es/MultiSelect/Suggestions.js +3 -7
  192. package/es/MultiSelect/__tests__/MultiSelect.spec.js +6 -4
  193. package/es/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +0 -7
  194. package/es/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +1 -7
  195. package/es/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +1 -5
  196. package/es/MultiSelect/docs/MultiSelect__default.docs.js +1 -6
  197. package/es/MultiSelect/props/propTypes.js +0 -2
  198. package/es/PopOver/PopOver.js +0 -18
  199. package/es/PopOver/PopOver.module.css +8 -8
  200. package/es/PopOver/__tests__/PopOver.spec.js +1 -2
  201. package/es/PopOver/docs/PopOver__default.docs.js +0 -2
  202. package/es/Popup/Popup.js +24 -77
  203. package/es/Popup/PositionMapping.json +73 -73
  204. package/es/Popup/__tests__/Popup.spec.js +5 -17
  205. package/es/Popup/viewPort.js +4 -16
  206. package/es/Provider/IdProvider.js +2 -9
  207. package/es/Provider/LibraryContext.js +4 -6
  208. package/es/Provider/NumberGenerator/NumberGenerator.js +7 -21
  209. package/es/Provider/ZindexProvider.js +2 -9
  210. package/es/Provider/docs/Provider_Id__Class.docs.js +3 -4
  211. package/es/Provider/docs/Provider_Id__Function.docs.js +0 -1
  212. package/es/Provider/docs/Provider_Zindex__Class.docs.js +3 -4
  213. package/es/Provider/docs/Provider_Zindex__Function.docs.js +0 -1
  214. package/es/Provider.js +36 -11
  215. package/es/Radio/Radio.js +0 -4
  216. package/es/Radio/Radio.module.css +112 -112
  217. package/es/Radio/docs/Radio__custom.docs.js +12 -16
  218. package/es/Radio/docs/Radio__default.docs.js +12 -16
  219. package/es/Responsive/CustomResponsive.js +18 -28
  220. package/es/Responsive/RefWrapper.js +7 -6
  221. package/es/Responsive/ResizeComponent.js +25 -35
  222. package/es/Responsive/ResizeObserver.js +6 -26
  223. package/es/Responsive/Responsive.js +20 -34
  224. package/es/Responsive/docs/Responsive__Custom.docs.js +22 -14
  225. package/es/Responsive/docs/Responsive__default.docs.js +1 -3
  226. package/es/Responsive/docs/style.module.css +55 -55
  227. package/es/Responsive/sizeObservers.js +7 -28
  228. package/es/Responsive/utils/index.js +5 -7
  229. package/es/Responsive/utils/shallowCompare.js +2 -7
  230. package/es/Responsive/windowResizeObserver.js +0 -7
  231. package/es/ResponsiveDropBox/ResponsiveDropBox.js +0 -4
  232. package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
  233. package/es/Ribbon/Ribbon.js +0 -3
  234. package/es/Ribbon/Ribbon.module.css +376 -376
  235. package/es/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +163 -163
  236. package/es/Ribbon/docs/Ribbon__custom.docs.js +13 -14
  237. package/es/Ribbon/docs/Ribbon__default.docs.js +13 -14
  238. package/es/RippleEffect/RippleEffect.js +0 -1
  239. package/es/RippleEffect/RippleEffect.module.css +92 -92
  240. package/es/RippleEffect/docs/RippleEffect__default.docs.js +12 -14
  241. package/es/Select/GroupSelect.js +13 -60
  242. package/es/Select/Select.js +34 -84
  243. package/es/Select/Select.module.css +106 -106
  244. package/es/Select/SelectWithAvatar.js +3 -20
  245. package/es/Select/SelectWithIcon.js +2 -40
  246. package/es/Select/__tests__/Select.spec.js +8 -6
  247. package/es/Select/docs/GroupSelect__default.docs.js +1 -6
  248. package/es/Select/docs/SelectWithAvatar__default.docs.js +0 -4
  249. package/es/Select/docs/SelectWithIcon__default.docs.js +0 -4
  250. package/es/Select/docs/Select__default.docs.js +0 -5
  251. package/es/Select/props/propTypes.js +0 -1
  252. package/es/Stencils/Stencils.js +0 -3
  253. package/es/Stencils/Stencils.module.css +96 -96
  254. package/es/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +49 -49
  255. package/es/Stencils/docs/Stencils__custom.docs.js +0 -2
  256. package/es/Stencils/docs/Stencils__default.docs.js +0 -2
  257. package/es/Switch/Switch.js +0 -5
  258. package/es/Switch/Switch.module.css +110 -110
  259. package/es/Switch/docs/Switch__custom.docs.js +12 -14
  260. package/es/Switch/docs/Switch__default.docs.js +12 -14
  261. package/es/Tab/Tab.js +1 -4
  262. package/es/Tab/Tab.module.css +101 -101
  263. package/es/Tab/TabContent.js +0 -1
  264. package/es/Tab/TabContent.module.css +4 -4
  265. package/es/Tab/TabContentWrapper.js +0 -2
  266. package/es/Tab/TabWrapper.js +2 -5
  267. package/es/Tab/Tabs.js +24 -71
  268. package/es/Tab/Tabs.module.css +141 -141
  269. package/es/Tab/__tests__/Tab.spec.js +2 -1
  270. package/es/Tab/__tests__/TabWrapper.spec.js +0 -1
  271. package/es/Tab/docs/Tab__default.docs.js +0 -5
  272. package/es/Tab/docs/tabdocs.module.css +29 -29
  273. package/es/Tag/Tag.js +9 -14
  274. package/es/Tag/Tag.module.css +254 -254
  275. package/es/Tag/docs/Tag__custom.docs.js +11 -13
  276. package/es/Tag/docs/Tag__default.docs.js +11 -13
  277. package/es/TextBox/TextBox.js +0 -15
  278. package/es/TextBox/TextBox.module.css +157 -157
  279. package/es/TextBox/__tests__/TextBox.spec.js +4 -1
  280. package/es/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +127 -127
  281. package/es/TextBox/docs/TextBox__custom.docs.js +0 -2
  282. package/es/TextBox/docs/TextBox__default.docs.js +0 -2
  283. package/es/TextBox/docs/TextBox__size.docs.js +0 -2
  284. package/es/TextBox/docs/TextBox__variant.docs.js +0 -2
  285. package/es/TextBoxIcon/TextBoxIcon.js +0 -7
  286. package/es/TextBoxIcon/TextBoxIcon.module.css +78 -78
  287. package/es/TextBoxIcon/__tests__/TextBoxIcon.spec.js +7 -2
  288. package/es/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +334 -334
  289. package/es/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +0 -2
  290. package/es/TextBoxIcon/docs/TextBoxIcon__default.docs.js +0 -2
  291. package/es/Textarea/Textarea.js +0 -12
  292. package/es/Textarea/Textarea.module.css +139 -139
  293. package/es/Textarea/__tests__/Textarea.spec.js +2 -2
  294. package/es/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +97 -97
  295. package/es/Textarea/docs/Textarea__animated.docs.js +0 -2
  296. package/es/Textarea/docs/Textarea__custom.docs.js +0 -2
  297. package/es/Textarea/docs/Textarea__default.docs.js +0 -2
  298. package/es/Textarea/docs/Textarea__disabled.docs.js +0 -2
  299. package/es/Tooltip/Tooltip.js +11 -58
  300. package/es/Tooltip/Tooltip.module.css +109 -109
  301. package/es/Tooltip/__tests__/Tooltip.spec.js +0 -5
  302. package/es/Tooltip/docs/Tooltip__default.docs.js +63 -67
  303. package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +0 -3
  304. package/es/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +0 -5
  305. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +2 -7
  306. package/es/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +17 -28
  307. package/es/common/animation.module.css +624 -624
  308. package/es/common/avatarsizes.module.css +44 -44
  309. package/es/common/basic.module.css +33 -33
  310. package/es/common/basicReset.module.css +40 -40
  311. package/es/common/common.module.css +524 -524
  312. package/es/common/customscroll.module.css +89 -89
  313. package/es/common/docStyle.module.css +887 -766
  314. package/es/common/reset.module.css +12 -12
  315. package/es/common/transition.module.css +146 -146
  316. package/es/deprecated/AdvancedMultiSelect.module.css +126 -126
  317. package/es/deprecated/PortalLayer/PortalLayer.js +17 -25
  318. package/es/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +0 -7
  319. package/es/index.js +5 -2
  320. package/es/semantic/Button/Button.js +0 -3
  321. package/es/semantic/Button/docs/Button__default.docs.js +0 -3
  322. package/es/semantic/Button/semanticButton.module.css +9 -9
  323. package/es/utils/Common.js +5 -47
  324. package/es/utils/ContextOptimizer.js +5 -4
  325. package/es/utils/__tests__/debounce.spec.js +2 -2
  326. package/es/utils/constructFullName.js +0 -2
  327. package/es/utils/datetime/common.js +5 -16
  328. package/es/utils/debounce.js +1 -5
  329. package/es/utils/dropDownUtils.js +11 -67
  330. package/es/utils/getInitial.js +0 -4
  331. package/es/utils/shallowEqual.js +0 -6
  332. package/lib/Accordion/Accordion.js +10 -39
  333. package/lib/Accordion/AccordionItem.js +12 -38
  334. package/lib/Accordion/__tests__/Accordion.spec.js +0 -3
  335. package/lib/Accordion/docs/Accordion__Demo.docs.js +0 -22
  336. package/lib/Accordion/index.js +0 -3
  337. package/lib/Accordion/props/propTypes.js +0 -3
  338. package/lib/Animation/Animation.js +12 -37
  339. package/lib/Animation/__tests__/Animation.spec.js +7 -11
  340. package/lib/Animation/docs/Animation__default.docs.js +0 -24
  341. package/lib/Animation/docs/Animation__fadeIn.docs.js +0 -24
  342. package/lib/Animation/docs/Animation__scaleIn.docs.js +0 -24
  343. package/lib/Animation/docs/Animation__skewIn.docs.js +0 -24
  344. package/lib/Animation/docs/Animation__slideDown.docs.js +0 -24
  345. package/lib/Animation/docs/Animation__slideLeft.docs.js +0 -24
  346. package/lib/Animation/docs/Animation__zoomIn.docs.js +0 -24
  347. package/lib/Animation/props/propTypes.js +0 -3
  348. package/lib/AppContainer/AppContainer.js +14 -52
  349. package/lib/AppContainer/AppContainer.module.css +18 -18
  350. package/lib/AppContainer/docs/AppContainer__default.docs.js +0 -23
  351. package/lib/AppContainer/props/propTypes.js +0 -3
  352. package/lib/Avatar/Avatar.js +56 -98
  353. package/lib/Avatar/Avatar.module.css +135 -117
  354. package/lib/Avatar/__tests__/Avatar.spec.js +0 -44
  355. package/lib/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +288 -288
  356. package/lib/Avatar/docs/Avatar__custom.docs.js +1 -26
  357. package/lib/Avatar/docs/Avatar__default.docs.js +1 -24
  358. package/lib/Avatar/docs/Avatar__palette.docs.js +1 -26
  359. package/lib/Avatar/docs/Avatar__text.docs.js +1 -26
  360. package/lib/Avatar/props/defaultProps.js +2 -1
  361. package/lib/Avatar/props/propTypes.js +2 -4
  362. package/lib/AvatarTeam/AvatarTeam.js +27 -54
  363. package/lib/AvatarTeam/AvatarTeam.module.css +161 -161
  364. package/lib/AvatarTeam/__tests__/AvatarTeam.spec.js +0 -13
  365. package/lib/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +226 -226
  366. package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +0 -24
  367. package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +0 -24
  368. package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +0 -24
  369. package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +0 -24
  370. package/lib/AvatarTeam/props/propTypes.js +0 -3
  371. package/lib/Button/Button.js +25 -53
  372. package/lib/Button/Button.module.css +521 -521
  373. package/lib/Button/__tests__/Button.spec.js +0 -40
  374. package/lib/Button/__tests__/__snapshots__/Button.spec.js.snap +191 -191
  375. package/lib/Button/docs/Button__custom.docs.js +11 -37
  376. package/lib/Button/docs/Button__default.docs.js +11 -36
  377. package/lib/Button/props/defaultProps.js +0 -2
  378. package/lib/Button/props/propTypes.js +0 -3
  379. package/lib/Buttongroup/Buttongroup.js +6 -32
  380. package/lib/Buttongroup/Buttongroup.module.css +89 -89
  381. package/lib/Buttongroup/__test__/Buttongroup.spec.js +0 -10
  382. package/lib/Buttongroup/__test__/__snapshots__/Buttongroup.spec.js.snap +146 -146
  383. package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +0 -25
  384. package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +0 -25
  385. package/lib/Buttongroup/docs/Buttongroup__header.docs.js +0 -27
  386. package/lib/Buttongroup/props/propTypes.js +0 -3
  387. package/lib/Card/Card.js +45 -106
  388. package/lib/Card/Card.module.css +20 -20
  389. package/lib/Card/__tests__/Card.spec.js +1 -10
  390. package/lib/Card/docs/Card__Custom.docs.js +0 -27
  391. package/lib/Card/docs/Card__Default.docs.js +0 -26
  392. package/lib/Card/docs/Card__Scroll.docs.js +3 -30
  393. package/lib/Card/index.js +0 -4
  394. package/lib/Card/props/propTypes.js +0 -3
  395. package/lib/CheckBox/CheckBox.js +40 -69
  396. package/lib/CheckBox/CheckBox.module.css +157 -157
  397. package/lib/CheckBox/__tests__/CheckBox.spec.js +0 -3
  398. package/lib/CheckBox/docs/CheckBox__custom.docs.js +12 -37
  399. package/lib/CheckBox/docs/CheckBox__default.docs.js +12 -36
  400. package/lib/CheckBox/props/propTypes.js +0 -3
  401. package/lib/DateTime/CalendarView.js +20 -70
  402. package/lib/DateTime/DateTime.js +149 -243
  403. package/lib/DateTime/DateTime.module.css +187 -187
  404. package/lib/DateTime/DateTimePopupFooter.js +5 -30
  405. package/lib/DateTime/DateTimePopupHeader.js +13 -45
  406. package/lib/DateTime/DateWidget.js +243 -349
  407. package/lib/DateTime/DateWidget.module.css +38 -38
  408. package/lib/DateTime/DaysRow.js +2 -26
  409. package/lib/DateTime/Time.js +29 -72
  410. package/lib/DateTime/YearView.js +25 -75
  411. package/lib/DateTime/YearView.module.css +81 -81
  412. package/lib/DateTime/__tests__/CalendarView.spec.js +5 -13
  413. package/lib/DateTime/__tests__/DateTime.spec.js +37 -51
  414. package/lib/DateTime/__tests__/DateWidget.spec.js +8 -10
  415. package/lib/DateTime/common.js +0 -6
  416. package/lib/DateTime/constants.js +0 -1
  417. package/lib/DateTime/dateFormatUtils/dateFormat.js +122 -184
  418. package/lib/DateTime/dateFormatUtils/dayChange.js +7 -14
  419. package/lib/DateTime/dateFormatUtils/index.js +12 -61
  420. package/lib/DateTime/dateFormatUtils/monthChange.js +9 -19
  421. package/lib/DateTime/dateFormatUtils/timeChange.js +20 -52
  422. package/lib/DateTime/dateFormatUtils/yearChange.js +11 -22
  423. package/lib/DateTime/docs/DateTime__default.docs.js +10 -33
  424. package/lib/DateTime/docs/DateWidget__default.docs.js +2 -30
  425. package/lib/DateTime/index.js +0 -2
  426. package/lib/DateTime/objectUtils.js +20 -24
  427. package/lib/DateTime/props/propTypes.js +0 -3
  428. package/lib/DateTime/typeChecker.js +0 -4
  429. package/lib/DateTime/validator.js +6 -69
  430. package/lib/DropBox/DropBox.js +60 -141
  431. package/lib/DropBox/DropBox.module.css +406 -406
  432. package/lib/DropBox/DropBoxPositionMapping.json +144 -144
  433. package/lib/DropBox/__tests__/DropBox.spec.js +2 -6
  434. package/lib/DropBox/docs/DropBox__custom.docs.js +25 -50
  435. package/lib/DropBox/docs/DropBox__customOrder.docs.js +9 -36
  436. package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +9 -36
  437. package/lib/DropBox/docs/DropBox__position.docs.js +35 -59
  438. package/lib/DropBox/docs/DropBox__size.docs.js +28 -52
  439. package/lib/DropBox/props/defaultProps.js +1 -2
  440. package/lib/DropBox/props/propTypes.js +0 -4
  441. package/lib/DropDown/DropDown.js +3 -53
  442. package/lib/DropDown/DropDown.module.css +5 -5
  443. package/lib/DropDown/DropDownHeading.js +11 -35
  444. package/lib/DropDown/DropDownHeading.module.css +53 -53
  445. package/lib/DropDown/DropDownItem.js +17 -41
  446. package/lib/DropDown/DropDownItem.module.css +94 -94
  447. package/lib/DropDown/DropDownSearch.js +15 -41
  448. package/lib/DropDown/DropDownSearch.module.css +14 -14
  449. package/lib/DropDown/DropDownSeparator.js +1 -23
  450. package/lib/DropDown/DropDownSeparator.module.css +7 -7
  451. package/lib/DropDown/__tests__/DropDown.spec.js +9 -15
  452. package/lib/DropDown/__tests__/DropDownItem.spec.js +4 -9
  453. package/lib/DropDown/__tests__/DropDownSearch.spec.js +0 -3
  454. package/lib/DropDown/docs/DropDownHeading__custom.docs.js +0 -23
  455. package/lib/DropDown/docs/DropDownHeading__default.docs.js +0 -22
  456. package/lib/DropDown/props/propTypes.js +0 -5
  457. package/lib/Heading/Heading.js +64 -0
  458. package/lib/Heading/Heading.module.css +5 -0
  459. package/lib/Heading/docs/Heading__default.docs.js +50 -0
  460. package/lib/Heading/props/defaultProps.js +12 -0
  461. package/lib/Heading/props/propTypes.js +19 -0
  462. package/lib/Label/Label.js +11 -36
  463. package/lib/Label/Label.module.css +52 -52
  464. package/lib/Label/LabelColors.module.css +20 -20
  465. package/lib/Label/__tests__/Label.spec.js +1 -14
  466. package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +101 -101
  467. package/lib/Label/docs/Label__clipped.docs.js +0 -25
  468. package/lib/Label/docs/Label__custom.docs.js +0 -26
  469. package/lib/Label/docs/Label__palette.docs.js +0 -25
  470. package/lib/Label/docs/Label__size.docs.js +0 -25
  471. package/lib/Label/docs/Label__type.docs.js +0 -25
  472. package/lib/Label/props/propTypes.js +0 -3
  473. package/lib/Layout/Box.js +11 -31
  474. package/lib/Layout/Container.js +10 -29
  475. package/lib/Layout/Layout.module.css +335 -335
  476. package/lib/Layout/__tests__/Box.spec.js +49 -65
  477. package/lib/Layout/__tests__/Container.spec.js +50 -67
  478. package/lib/Layout/docs/Layout__Hidden.docs.js +0 -22
  479. package/lib/Layout/docs/Layout__default.docs.js +0 -21
  480. package/lib/Layout/docs/Layout__four_Column.docs.js +0 -22
  481. package/lib/Layout/docs/Layout__three_Column.docs.js +0 -22
  482. package/lib/Layout/docs/Layout__two_Column.docs.js +0 -22
  483. package/lib/Layout/index.js +0 -4
  484. package/lib/Layout/props/propTypes.js +0 -3
  485. package/lib/Layout/utils.js +0 -10
  486. package/lib/LightNightMode/Colors.json +496 -496
  487. package/lib/LightNightMode/docs/AlternativeColors.docs.js +1 -26
  488. package/lib/ListItem/ListContainer.js +26 -48
  489. package/lib/ListItem/ListItem.js +37 -66
  490. package/lib/ListItem/ListItem.module.css +209 -209
  491. package/lib/ListItem/ListItemWithAvatar.js +41 -72
  492. package/lib/ListItem/ListItemWithCheckBox.js +32 -61
  493. package/lib/ListItem/ListItemWithIcon.js +36 -65
  494. package/lib/ListItem/ListItemWithRadio.js +33 -62
  495. package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +0 -24
  496. package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +0 -23
  497. package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +0 -24
  498. package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +0 -23
  499. package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +0 -24
  500. package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +0 -23
  501. package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +0 -24
  502. package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +0 -23
  503. package/lib/ListItem/docs/ListItem__custom.docs.js +0 -23
  504. package/lib/ListItem/docs/ListItem__default.docs.js +0 -22
  505. package/lib/ListItem/props/propTypes.js +0 -5
  506. package/lib/Modal/Modal.js +4 -44
  507. package/lib/Modal/__docs__/Modal__default.docs.js +0 -23
  508. package/lib/Modal/props/propTypes.js +0 -3
  509. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +162 -294
  510. package/lib/MultiSelect/AdvancedMultiSelect.js +120 -201
  511. package/lib/MultiSelect/EmptyState.js +21 -44
  512. package/lib/MultiSelect/MultiSelect.js +196 -317
  513. package/lib/MultiSelect/MultiSelect.module.css +205 -205
  514. package/lib/MultiSelect/MultiSelectHeader.js +5 -29
  515. package/lib/MultiSelect/MultiSelectWithAvatar.js +51 -96
  516. package/lib/MultiSelect/SelectedOptions.js +15 -44
  517. package/lib/MultiSelect/SelectedOptions.module.css +15 -15
  518. package/lib/MultiSelect/Suggestions.js +26 -59
  519. package/lib/MultiSelect/__tests__/MultiSelect.spec.js +75 -86
  520. package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +0 -23
  521. package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +3 -28
  522. package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +2 -28
  523. package/lib/MultiSelect/docs/MultiSelect__default.docs.js +2 -30
  524. package/lib/MultiSelect/props/defaultProps.js +0 -2
  525. package/lib/MultiSelect/props/propTypes.js +0 -5
  526. package/lib/PopOver/PopOver.js +44 -94
  527. package/lib/PopOver/PopOver.module.css +8 -8
  528. package/lib/PopOver/__tests__/PopOver.spec.js +1 -4
  529. package/lib/PopOver/docs/PopOver__default.docs.js +0 -25
  530. package/lib/PopOver/props/propTypes.js +0 -3
  531. package/lib/Popup/Popup.js +77 -156
  532. package/lib/Popup/PositionMapping.json +73 -73
  533. package/lib/Popup/__tests__/Popup.spec.js +5 -42
  534. package/lib/Popup/viewPort.js +14 -28
  535. package/lib/Provider/AvatarSize.js +0 -4
  536. package/lib/Provider/Config.js +0 -2
  537. package/lib/Provider/CssProvider.js +0 -4
  538. package/lib/Provider/IdProvider.js +3 -17
  539. package/lib/Provider/LibraryContext.js +10 -32
  540. package/lib/Provider/LibraryContextInit.js +0 -4
  541. package/lib/Provider/NumberGenerator/NumberGenerator.js +14 -43
  542. package/lib/Provider/ZindexProvider.js +3 -15
  543. package/lib/Provider/docs/Provider_Id__Class.docs.js +3 -24
  544. package/lib/Provider/docs/Provider_Id__Function.docs.js +0 -5
  545. package/lib/Provider/docs/Provider_Zindex__Class.docs.js +3 -24
  546. package/lib/Provider/docs/Provider_Zindex__Function.docs.js +0 -5
  547. package/lib/Provider.js +38 -64
  548. package/lib/Radio/Radio.js +33 -60
  549. package/lib/Radio/Radio.module.css +112 -112
  550. package/lib/Radio/__tests__/Radiospec.js +5 -9
  551. package/lib/Radio/docs/Radio__custom.docs.js +12 -38
  552. package/lib/Radio/docs/Radio__default.docs.js +12 -37
  553. package/lib/Radio/props/propTypes.js +0 -3
  554. package/lib/Responsive/CustomResponsive.js +23 -67
  555. package/lib/Responsive/RefWrapper.js +7 -15
  556. package/lib/Responsive/ResizeComponent.js +27 -58
  557. package/lib/Responsive/ResizeObserver.js +6 -23
  558. package/lib/Responsive/Responsive.js +24 -76
  559. package/lib/Responsive/docs/Responsive__Custom.docs.js +29 -54
  560. package/lib/Responsive/docs/Responsive__default.docs.js +4 -28
  561. package/lib/Responsive/docs/style.module.css +55 -55
  562. package/lib/Responsive/index.js +0 -2
  563. package/lib/Responsive/props/propTypes.js +0 -3
  564. package/lib/Responsive/sizeObservers.js +13 -51
  565. package/lib/Responsive/utils/index.js +3 -11
  566. package/lib/Responsive/utils/shallowCompare.js +2 -11
  567. package/lib/Responsive/windowResizeObserver.js +0 -8
  568. package/lib/ResponsiveDropBox/ResponsiveDropBox.js +14 -44
  569. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
  570. package/lib/ResponsiveDropBox/props/propTypes.js +0 -3
  571. package/lib/Ribbon/Ribbon.js +7 -31
  572. package/lib/Ribbon/Ribbon.module.css +376 -376
  573. package/lib/Ribbon/__tests__/Ribbon.spec.js +0 -22
  574. package/lib/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +163 -163
  575. package/lib/Ribbon/docs/Ribbon__custom.docs.js +13 -36
  576. package/lib/Ribbon/docs/Ribbon__default.docs.js +13 -35
  577. package/lib/Ribbon/props/propTypes.js +0 -3
  578. package/lib/RippleEffect/RippleEffect.js +7 -18
  579. package/lib/RippleEffect/RippleEffect.module.css +92 -92
  580. package/lib/RippleEffect/docs/RippleEffect__default.docs.js +12 -34
  581. package/lib/RippleEffect/props/propTypes.js +0 -3
  582. package/lib/Select/GroupSelect.js +125 -225
  583. package/lib/Select/Select.js +203 -288
  584. package/lib/Select/Select.module.css +106 -106
  585. package/lib/Select/SelectWithAvatar.js +50 -101
  586. package/lib/Select/SelectWithIcon.js +69 -127
  587. package/lib/Select/__tests__/Select.spec.js +89 -131
  588. package/lib/Select/docs/GroupSelect__default.docs.js +0 -26
  589. package/lib/Select/docs/SelectWithAvatar__default.docs.js +0 -28
  590. package/lib/Select/docs/SelectWithIcon__default.docs.js +4 -29
  591. package/lib/Select/docs/Select__default.docs.js +0 -27
  592. package/lib/Select/props/defaultProps.js +0 -4
  593. package/lib/Select/props/propTypes.js +0 -4
  594. package/lib/Stencils/Stencils.js +4 -28
  595. package/lib/Stencils/Stencils.module.css +96 -96
  596. package/lib/Stencils/__tests__/Stencils.spec.js +0 -12
  597. package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +49 -49
  598. package/lib/Stencils/docs/Stencils__custom.docs.js +0 -24
  599. package/lib/Stencils/docs/Stencils__default.docs.js +0 -24
  600. package/lib/Stencils/props/propTypes.js +0 -3
  601. package/lib/Switch/Switch.js +27 -55
  602. package/lib/Switch/Switch.module.css +110 -110
  603. package/lib/Switch/docs/Switch__custom.docs.js +12 -35
  604. package/lib/Switch/docs/Switch__default.docs.js +12 -34
  605. package/lib/Switch/props/propTypes.js +0 -3
  606. package/lib/Tab/Tab.js +23 -39
  607. package/lib/Tab/Tab.module.css +101 -101
  608. package/lib/Tab/TabContent.js +4 -11
  609. package/lib/Tab/TabContent.module.css +4 -4
  610. package/lib/Tab/TabContentWrapper.js +5 -12
  611. package/lib/Tab/TabWrapper.js +16 -34
  612. package/lib/Tab/Tabs.js +96 -177
  613. package/lib/Tab/Tabs.module.css +141 -141
  614. package/lib/Tab/__tests__/Tab.spec.js +63 -74
  615. package/lib/Tab/__tests__/TabContent.spec.js +6 -10
  616. package/lib/Tab/__tests__/TabContentWrapper.spec.js +20 -28
  617. package/lib/Tab/__tests__/TabWrapper.spec.js +0 -12
  618. package/lib/Tab/__tests__/Tabs.spec.js +39 -53
  619. package/lib/Tab/docs/Tab__default.docs.js +0 -25
  620. package/lib/Tab/docs/tabdocs.module.css +29 -29
  621. package/lib/Tab/index.js +0 -6
  622. package/lib/Tab/props/propTypes.js +0 -3
  623. package/lib/Tag/Tag.js +45 -78
  624. package/lib/Tag/Tag.module.css +254 -254
  625. package/lib/Tag/__tests__/Tag.spec.js +8 -14
  626. package/lib/Tag/docs/Tag__custom.docs.js +11 -37
  627. package/lib/Tag/docs/Tag__default.docs.js +11 -36
  628. package/lib/Tag/props/propTypes.js +0 -3
  629. package/lib/TextBox/TextBox.js +52 -83
  630. package/lib/TextBox/TextBox.module.css +157 -157
  631. package/lib/TextBox/__tests__/TextBox.spec.js +4 -14
  632. package/lib/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +127 -127
  633. package/lib/TextBox/docs/TextBox__custom.docs.js +0 -26
  634. package/lib/TextBox/docs/TextBox__default.docs.js +0 -26
  635. package/lib/TextBox/docs/TextBox__size.docs.js +0 -26
  636. package/lib/TextBox/docs/TextBox__variant.docs.js +0 -26
  637. package/lib/TextBox/props/propTypes.js +0 -5
  638. package/lib/TextBoxIcon/TextBoxIcon.js +48 -80
  639. package/lib/TextBoxIcon/TextBoxIcon.module.css +78 -78
  640. package/lib/TextBoxIcon/__tests__/TextBoxIcon.spec.js +5 -14
  641. package/lib/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +334 -334
  642. package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +0 -27
  643. package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +0 -27
  644. package/lib/TextBoxIcon/props/propTypes.js +0 -3
  645. package/lib/Textarea/Textarea.js +22 -52
  646. package/lib/Textarea/Textarea.module.css +139 -139
  647. package/lib/Textarea/__tests__/Textarea.spec.js +2 -14
  648. package/lib/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +97 -97
  649. package/lib/Textarea/docs/Textarea__animated.docs.js +0 -25
  650. package/lib/Textarea/docs/Textarea__custom.docs.js +0 -26
  651. package/lib/Textarea/docs/Textarea__default.docs.js +0 -25
  652. package/lib/Textarea/docs/Textarea__disabled.docs.js +0 -25
  653. package/lib/Textarea/props/propTypes.js +0 -3
  654. package/lib/Tooltip/Tooltip.js +25 -92
  655. package/lib/Tooltip/Tooltip.module.css +109 -109
  656. package/lib/Tooltip/__tests__/Tooltip.spec.js +0 -23
  657. package/lib/Tooltip/docs/Tooltip__default.docs.js +63 -91
  658. package/lib/Tooltip/props/propTypes.js +0 -3
  659. package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +11 -39
  660. package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +2 -29
  661. package/lib/VelocityAnimation/VelocityAnimation/props/propTypes.js +0 -3
  662. package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +18 -51
  663. package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +22 -54
  664. package/lib/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +0 -3
  665. package/lib/common/animation.module.css +624 -624
  666. package/lib/common/avatarsizes.module.css +44 -44
  667. package/lib/common/basic.module.css +33 -33
  668. package/lib/common/basicReset.module.css +40 -40
  669. package/lib/common/common.module.css +524 -524
  670. package/lib/common/customscroll.module.css +89 -89
  671. package/lib/common/docStyle.module.css +887 -766
  672. package/lib/common/reset.module.css +12 -12
  673. package/lib/common/transition.module.css +146 -146
  674. package/lib/css.js +0 -39
  675. package/lib/deprecated/AdvancedMultiSelect.module.css +126 -126
  676. package/lib/deprecated/PortalLayer/PortalLayer.js +17 -45
  677. package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +2 -36
  678. package/lib/deprecated/PortalLayer/props/propTypes.js +0 -3
  679. package/lib/index.js +17 -157
  680. package/lib/semantic/Button/Button.js +17 -41
  681. package/lib/semantic/Button/docs/Button__default.docs.js +0 -23
  682. package/lib/semantic/Button/props/propTypes.js +0 -3
  683. package/lib/semantic/Button/semanticButton.module.css +9 -9
  684. package/lib/utils/Common.js +11 -95
  685. package/lib/utils/ContextOptimizer.js +10 -16
  686. package/lib/utils/__tests__/constructFullName.spec.js +0 -1
  687. package/lib/utils/__tests__/debounce.spec.js +2 -3
  688. package/lib/utils/__tests__/getInitial.spec.js +0 -1
  689. package/lib/utils/constructFullName.js +2 -11
  690. package/lib/utils/datetime/common.js +5 -32
  691. package/lib/utils/debounce.js +1 -6
  692. package/lib/utils/dropDownUtils.js +54 -171
  693. package/lib/utils/dummyFunction.js +0 -2
  694. package/lib/utils/getHTMLFontSize.js +0 -1
  695. package/lib/utils/getInitial.js +0 -6
  696. package/lib/utils/scrollTo.js +0 -2
  697. package/lib/utils/shallowEqual.js +0 -8
  698. package/package.json +76 -77
@@ -1,14 +1,14 @@
1
- .varClass {
2
- /* dropdownsearch default variables */
3
- --dropdownsearch-padding: 0 var(--zd_size15) 0;
4
- }
5
- .search {
6
- composes: varClass;
7
- padding: var(--dropdownsearch-padding);
8
- }
9
- .smallSearch {
10
- --dropdownsearch-padding: 0 var(--zd_size5) 0;
11
- }
12
- .mediumSearch {
13
- --dropdownsearch-padding: 0 var(--zd_size15) 0;
14
- }
1
+ .varClass {
2
+ /* dropdownsearch default variables */
3
+ --dropdownsearch-padding: 0 var(--zd_size15) 0;
4
+ }
5
+ .search {
6
+ composes: varClass;
7
+ padding: var(--dropdownsearch-padding);
8
+ }
9
+ .smallSearch {
10
+ --dropdownsearch-padding: 0 var(--zd_size5) 0;
11
+ }
12
+ .mediumSearch {
13
+ --dropdownsearch-padding: 0 var(--zd_size15) 0;
14
+ }
@@ -1,64 +1,42 @@
1
1
  "use strict";
2
2
 
3
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
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports["default"] = void 0;
9
-
10
8
  var _react = _interopRequireDefault(require("react"));
11
-
12
9
  var _propTypes = require("./props/propTypes");
13
-
14
10
  var _DropDownSeparatorModule = _interopRequireDefault(require("./DropDownSeparator.module.css"));
15
-
16
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
-
18
12
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
19
-
20
13
  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); } }
21
-
22
14
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23
-
24
15
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
25
-
26
16
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27
-
28
17
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
29
-
30
18
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
31
-
32
19
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
33
-
34
20
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
35
-
36
21
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
37
-
38
22
  var DropDownSeparator = /*#__PURE__*/function (_React$Component) {
39
23
  _inherits(DropDownSeparator, _React$Component);
40
-
41
24
  var _super = _createSuper(DropDownSeparator);
42
-
43
25
  function DropDownSeparator() {
44
26
  _classCallCheck(this, DropDownSeparator);
45
-
46
27
  return _super.apply(this, arguments);
47
28
  }
48
-
49
29
  _createClass(DropDownSeparator, [{
50
30
  key: "render",
51
31
  value: function render() {
52
32
  var _this$props$customCla = this.props.customClass,
53
- customClass = _this$props$customCla === void 0 ? '' : _this$props$customCla;
33
+ customClass = _this$props$customCla === void 0 ? '' : _this$props$customCla;
54
34
  return /*#__PURE__*/_react["default"].createElement("div", {
55
35
  className: "".concat(_DropDownSeparatorModule["default"].separator, " ").concat(customClass)
56
36
  });
57
37
  }
58
38
  }]);
59
-
60
39
  return DropDownSeparator;
61
40
  }(_react["default"].Component);
62
-
63
41
  exports["default"] = DropDownSeparator;
64
42
  DropDownSeparator.propTypes = _propTypes.DropDownSeparator_propTypes;
@@ -1,7 +1,7 @@
1
- .separator {
2
- height: var(--zd_size1);
3
- border-width: 0 0 1px 0;
4
- border-style: solid;
5
- border-color: var(--zdt_dropdown_user_default_border);
6
- margin: var(--zd_size5) 0;
7
- }
1
+ .separator {
2
+ height: var(--zd_size1);
3
+ border-width: 0 0 1px 0;
4
+ border-style: solid;
5
+ border-color: var(--zdt_dropdown_user_default_border);
6
+ margin: var(--zd_size5) 0;
7
+ }
@@ -1,12 +1,10 @@
1
1
  "use strict";
2
2
 
3
3
  var _react = _interopRequireDefault(require("react"));
4
-
5
4
  var _DropDown = require("../DropDown");
6
-
7
5
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
8
-
9
6
  // import renderer from 'react-test-renderer';
7
+
10
8
  var defaultProps = {
11
9
  onScroll: jest.fn(),
12
10
  children: /*#__PURE__*/_react["default"].createElement("div", {
@@ -16,34 +14,30 @@ var defaultProps = {
16
14
  describe('DropDown component Test Cases', function () {
17
15
  it('Should onScroll method get called', function () {
18
16
  var _setup = setup(_DropDown.DropDownItemContainer, defaultProps),
19
- props = _setup.props,
20
- renderedDOM = _setup.renderedDOM;
21
-
17
+ props = _setup.props,
18
+ renderedDOM = _setup.renderedDOM;
22
19
  var component = TestUtils.findRenderedComponentsWithTestid(renderedDOM, 'drpdwnItemContainer');
23
20
  TestUtils.Simulate.scroll(component);
24
21
  expect(props.onScroll).toHaveBeenCalled();
25
22
  });
26
23
  it('Should render children element in DropDownItemContainer', function () {
27
24
  var _setup2 = setup(_DropDown.DropDownItemContainer, defaultProps),
28
- props = _setup2.props,
29
- renderedDOM = _setup2.renderedDOM;
30
-
25
+ props = _setup2.props,
26
+ renderedDOM = _setup2.renderedDOM;
31
27
  var children = TestUtils.scryRenderedComponentsWithTestid(renderedDOM, 'childElem');
32
28
  expect(children.length).toBe(1);
33
29
  });
34
30
  it('Should render children element in DropDownContainer', function () {
35
31
  var _setup3 = setup(_DropDown.DropDownContainer, defaultProps),
36
- props = _setup3.props,
37
- renderedDOM = _setup3.renderedDOM;
38
-
32
+ props = _setup3.props,
33
+ renderedDOM = _setup3.renderedDOM;
39
34
  var children = TestUtils.scryRenderedComponentsWithTestid(renderedDOM, 'childElem');
40
35
  expect(children.length).toBe(1);
41
36
  });
42
37
  it('Should render children element in DropDownTarget', function () {
43
38
  var _setup4 = setup(_DropDown.DropDownTarget, defaultProps),
44
- props = _setup4.props,
45
- renderedDOM = _setup4.renderedDOM;
46
-
39
+ props = _setup4.props,
40
+ renderedDOM = _setup4.renderedDOM;
47
41
  var children = TestUtils.scryRenderedComponentsWithTestid(renderedDOM, 'childElem');
48
42
  expect(children.length).toBe(1);
49
43
  });
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
 
3
3
  var _react = _interopRequireDefault(require("react"));
4
-
5
4
  var _DropDownItem = _interopRequireDefault(require("../DropDownItem"));
6
-
7
5
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
8
-
9
6
  var defaultProps = {
10
7
  onClick: jest.fn(),
11
8
  onHover: jest.fn(),
@@ -32,18 +29,16 @@ describe('DropDownItem component Test Cases', function () {
32
29
  });
33
30
  it('Should onClick method get called', function () {
34
31
  var _setup = setup(_DropDownItem["default"], defaultProps),
35
- props = _setup.props,
36
- renderedDOM = _setup.renderedDOM;
37
-
32
+ props = _setup.props,
33
+ renderedDOM = _setup.renderedDOM;
38
34
  var component = TestUtils.findRenderedComponentsWithTestid(renderedDOM, 'dropDwnItemContainer');
39
35
  TestUtils.Simulate.click(component);
40
36
  expect(props.onClick).toHaveBeenCalled();
41
37
  });
42
38
  it('Should onHover method get called', function () {
43
39
  var _setup2 = setup(_DropDownItem["default"], defaultProps),
44
- props = _setup2.props,
45
- renderedDOM = _setup2.renderedDOM;
46
-
40
+ props = _setup2.props,
41
+ renderedDOM = _setup2.renderedDOM;
47
42
  var component = TestUtils.findRenderedComponentsWithTestid(renderedDOM, 'dropDwnItemContainer');
48
43
  TestUtils.Simulate.mouseOver(component);
49
44
  expect(props.onHover).toHaveBeenCalled();
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
 
3
3
  var _react = _interopRequireDefault(require("react"));
4
-
5
4
  var _DropDownSearch = _interopRequireDefault(require("../DropDownSearch"));
6
-
7
5
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
8
-
9
6
  describe('DropDownSearch component Test Cases', function () {
10
7
  it('Should check render proper class name(size)', function () {
11
8
  var renderedDOM = TestUtils.renderIntoDocument( /*#__PURE__*/_react["default"].createElement(_DropDownSearch["default"], {
@@ -1,51 +1,31 @@
1
1
  "use strict";
2
2
 
3
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
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports["default"] = void 0;
9
-
10
8
  var _react = _interopRequireDefault(require("react"));
11
-
12
9
  var _DropDownHeading = _interopRequireDefault(require("../DropDownHeading"));
13
-
14
10
  var _docStyleModule = _interopRequireDefault(require("../../common/docStyle.module.css"));
15
-
16
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
-
18
12
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
19
-
20
13
  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); } }
21
-
22
14
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23
-
24
15
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
25
-
26
16
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27
-
28
17
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
29
-
30
18
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
31
-
32
19
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
33
-
34
20
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
35
-
36
21
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
37
-
38
22
  var DropDownHeading__custom = /*#__PURE__*/function (_React$Component) {
39
23
  _inherits(DropDownHeading__custom, _React$Component);
40
-
41
24
  var _super = _createSuper(DropDownHeading__custom);
42
-
43
25
  function DropDownHeading__custom() {
44
26
  _classCallCheck(this, DropDownHeading__custom);
45
-
46
27
  return _super.apply(this, arguments);
47
28
  }
48
-
49
29
  _createClass(DropDownHeading__custom, [{
50
30
  key: "render",
51
31
  value: function render() {
@@ -59,12 +39,9 @@ var DropDownHeading__custom = /*#__PURE__*/function (_React$Component) {
59
39
  }));
60
40
  }
61
41
  }]);
62
-
63
42
  return DropDownHeading__custom;
64
43
  }(_react["default"].Component);
65
-
66
44
  exports["default"] = DropDownHeading__custom;
67
-
68
45
  if (false) {
69
46
  DropDownHeading__custom.docs = {
70
47
  componentGroup: 'Form Elements',
@@ -1,49 +1,30 @@
1
1
  "use strict";
2
2
 
3
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
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports["default"] = void 0;
9
-
10
8
  var _react = _interopRequireDefault(require("react"));
11
-
12
9
  var _DropDownHeading = _interopRequireDefault(require("../DropDownHeading"));
13
-
14
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
-
16
11
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
17
-
18
12
  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); } }
19
-
20
13
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
21
-
22
14
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
23
-
24
15
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
25
-
26
16
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
27
-
28
17
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
29
-
30
18
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
31
-
32
19
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
33
-
34
20
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
35
-
36
21
  var DropDownHeading__default = /*#__PURE__*/function (_React$Component) {
37
22
  _inherits(DropDownHeading__default, _React$Component);
38
-
39
23
  var _super = _createSuper(DropDownHeading__default);
40
-
41
24
  function DropDownHeading__default() {
42
25
  _classCallCheck(this, DropDownHeading__default);
43
-
44
26
  return _super.apply(this, arguments);
45
27
  }
46
-
47
28
  _createClass(DropDownHeading__default, [{
48
29
  key: "render",
49
30
  value: function render() {
@@ -56,12 +37,9 @@ var DropDownHeading__default = /*#__PURE__*/function (_React$Component) {
56
37
  }));
57
38
  }
58
39
  }]);
59
-
60
40
  return DropDownHeading__default;
61
41
  }(_react["default"].Component);
62
-
63
42
  exports["default"] = DropDownHeading__default;
64
-
65
43
  if (false) {
66
44
  DropDownHeading__default.docs = {
67
45
  componentGroup: 'Form Elements',
@@ -4,15 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.DropDown_propTypes = exports.DropDownTarget_propTypes = exports.DropDownSeparator_propTypes = exports.DropDownSearch_propTypes = exports.DropDownItem_propTypes = exports.DropDownItemContainer_propTypes = exports.DropDownHeading_propTypes = exports.DropDownContainer_propTypes = void 0;
7
-
8
7
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
-
10
8
  var _DropDownSearch_propT;
11
-
12
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
-
14
10
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
-
16
11
  var DropDown_propTypes = {
17
12
  arrowBottom: _propTypes["default"].string,
18
13
  arrowLeft: _propTypes["default"].string,
@@ -0,0 +1,64 @@
1
+ "use strict";
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
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var _defaultProps = require("./props/defaultProps");
10
+ var _propTypes = require("./props/propTypes");
11
+ var _HeadingModule = _interopRequireDefault(require("./Heading.module.css"));
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
14
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
15
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
16
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
17
+ 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); } }
18
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
19
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
20
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
21
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
22
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
23
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
24
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
25
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
26
+ var Heading = /*#__PURE__*/function (_React$Component) {
27
+ _inherits(Heading, _React$Component);
28
+ var _super = _createSuper(Heading);
29
+ function Heading() {
30
+ _classCallCheck(this, Heading);
31
+ return _super.apply(this, arguments);
32
+ }
33
+ _createClass(Heading, [{
34
+ key: "render",
35
+ value: function render() {
36
+ var _this$props = this.props,
37
+ tagName = _this$props.tagName,
38
+ className = _this$props.className,
39
+ onClick = _this$props.onClick,
40
+ onDoubleClick = _this$props.onDoubleClick,
41
+ title = _this$props.title,
42
+ dataTitle = _this$props.dataTitle,
43
+ dataId = _this$props.dataId,
44
+ a11y = _this$props.a11y;
45
+ return /*#__PURE__*/_react["default"].createElement(tagName, _objectSpread({
46
+ className: "".concat(_HeadingModule["default"].reset, " ").concat(className),
47
+ onClick: onClick,
48
+ onDoubleClick: onDoubleClick,
49
+ 'data-title': dataTitle || title,
50
+ 'data-id': dataId
51
+ }, a11y), title);
52
+ }
53
+ }]);
54
+ return Heading;
55
+ }(_react["default"].Component);
56
+ exports["default"] = Heading;
57
+ Heading.propTypes = _propTypes.propTypes;
58
+ Heading.defaultProps = _defaultProps.defaultProps;
59
+ if (false) {
60
+ Heading.docs = {
61
+ folderName: 'Style Guide',
62
+ componentGroup: 'Accessibility'
63
+ };
64
+ }
@@ -0,0 +1,5 @@
1
+ .reset {
2
+ font-size: initial;
3
+ font-weight: initial;
4
+ margin: initial;
5
+ }
@@ -0,0 +1,50 @@
1
+ "use strict";
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
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var _react = _interopRequireWildcard(require("react"));
9
+ var _Heading = _interopRequireDefault(require("../Heading"));
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
12
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
13
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
14
+ 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); } }
15
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
16
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
17
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
18
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
19
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
20
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
21
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
22
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
23
+ var Heading__default = /*#__PURE__*/function (_Component) {
24
+ _inherits(Heading__default, _Component);
25
+ var _super = _createSuper(Heading__default);
26
+ function Heading__default() {
27
+ _classCallCheck(this, Heading__default);
28
+ return _super.apply(this, arguments);
29
+ }
30
+ _createClass(Heading__default, [{
31
+ key: "render",
32
+ value: function render() {
33
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_Heading["default"], {
34
+ title: "Heading Text",
35
+ a11y: {
36
+ 'tabindex': '0',
37
+ 'aria-label': 'customAriaLabel'
38
+ }
39
+ }));
40
+ }
41
+ }]);
42
+ return Heading__default;
43
+ }(_react.Component);
44
+ exports["default"] = Heading__default;
45
+ if (false) {
46
+ Heading__default.docs = {
47
+ folderName: 'Style Guide',
48
+ componentGroup: 'Accessibility'
49
+ };
50
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.defaultProps = void 0;
7
+ var defaultProps = {
8
+ tagName: 'h1',
9
+ a11y: {},
10
+ className: ''
11
+ };
12
+ exports.defaultProps = defaultProps;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.propTypes = void 0;
7
+ var _propTypes = _interopRequireDefault(require("prop-types"));
8
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
9
+ var propTypes = {
10
+ tagName: _propTypes["default"].string,
11
+ className: _propTypes["default"].string,
12
+ title: _propTypes["default"].string,
13
+ dataId: _propTypes["default"].string,
14
+ dataTitle: _propTypes["default"].string,
15
+ onClick: _propTypes["default"].func,
16
+ onDoubleClick: _propTypes["default"].func,
17
+ a11y: _propTypes["default"].object
18
+ };
19
+ exports.propTypes = propTypes;
@@ -1,70 +1,48 @@
1
1
  "use strict";
2
2
 
3
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
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports["default"] = void 0;
9
-
10
8
  var _react = _interopRequireDefault(require("react"));
11
-
12
9
  var _defaultProps = require("./props/defaultProps");
13
-
14
10
  var _propTypes = require("./props/propTypes");
15
-
16
11
  var _LabelModule = _interopRequireDefault(require("./Label.module.css"));
17
-
18
12
  var _LabelColorsModule = _interopRequireDefault(require("./LabelColors.module.css"));
19
-
20
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
-
22
14
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
23
-
24
15
  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); } }
25
-
26
16
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
27
-
28
17
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
29
-
30
18
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
-
32
19
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
33
-
34
20
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
35
-
36
21
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
37
-
38
22
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
39
-
40
23
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
41
-
42
24
  var Label = /*#__PURE__*/function (_React$Component) {
43
25
  _inherits(Label, _React$Component);
44
-
45
26
  var _super = _createSuper(Label);
46
-
47
27
  function Label() {
48
28
  _classCallCheck(this, Label);
49
-
50
29
  return _super.apply(this, arguments);
51
30
  }
52
-
53
31
  _createClass(Label, [{
54
32
  key: "render",
55
33
  value: function render() {
56
34
  var _this$props = this.props,
57
- text = _this$props.text,
58
- type = _this$props.type,
59
- palette = _this$props.palette,
60
- size = _this$props.size,
61
- clipped = _this$props.clipped,
62
- htmlFor = _this$props.htmlFor,
63
- title = _this$props.title,
64
- onClick = _this$props.onClick,
65
- dataId = _this$props.dataId,
66
- variant = _this$props.variant,
67
- customClass = _this$props.customClass;
35
+ text = _this$props.text,
36
+ type = _this$props.type,
37
+ palette = _this$props.palette,
38
+ size = _this$props.size,
39
+ clipped = _this$props.clipped,
40
+ htmlFor = _this$props.htmlFor,
41
+ title = _this$props.title,
42
+ onClick = _this$props.onClick,
43
+ dataId = _this$props.dataId,
44
+ variant = _this$props.variant,
45
+ customClass = _this$props.customClass;
68
46
  return /*#__PURE__*/_react["default"].createElement("label", {
69
47
  className: "".concat(_LabelModule["default"].label, " ").concat(_LabelModule["default"][type], " ").concat(_LabelModule["default"][size], " ").concat(_LabelColorsModule["default"][palette], " ").concat(_LabelModule["default"]["font_".concat(variant)], "\n ").concat(clipped ? _LabelModule["default"].dotted : '', " ").concat(onClick ? _LabelModule["default"].pointer : _LabelModule["default"].cursor, " ").concat(customClass, " "),
70
48
  htmlFor: htmlFor,
@@ -74,14 +52,11 @@ var Label = /*#__PURE__*/function (_React$Component) {
74
52
  }, text);
75
53
  }
76
54
  }]);
77
-
78
55
  return Label;
79
56
  }(_react["default"].Component);
80
-
81
57
  exports["default"] = Label;
82
58
  Label.defaultProps = _defaultProps.defaultProps;
83
59
  Label.propTypes = _propTypes.propTypes;
84
-
85
60
  if (false) {
86
61
  Label.docs = {
87
62
  componentGroup: 'Form Elements',