@zohodesk/components 1.0.0-alpha-236 → 1.0.0-alpha-239

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 (267) hide show
  1. package/README.md +19 -0
  2. package/assets/Appearance/dark/mode/darkMode.module.css +1 -1
  3. package/assets/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +1 -1
  4. package/assets/Appearance/default/mode/defaultMode.module.css +1 -1
  5. package/assets/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +1 -1
  6. package/assets/Appearance/pureDark/mode/pureDarkMode.module.css +358 -0
  7. package/assets/Appearance/pureDark/themes/blue/bluePureDarkCTATheme.module.css +34 -0
  8. package/assets/Appearance/pureDark/themes/blue/bluePureDarkComponentTheme.module.css +42 -0
  9. package/assets/Appearance/pureDark/themes/green/greenPureDarkCTATheme.module.css +34 -0
  10. package/assets/Appearance/pureDark/themes/green/greenPureDarkComponentTheme.module.css +42 -0
  11. package/assets/Appearance/pureDark/themes/orange/orangePureDarkCTATheme.module.css +34 -0
  12. package/assets/Appearance/pureDark/themes/orange/orangePureDarkComponentTheme.module.css +42 -0
  13. package/assets/Appearance/pureDark/themes/red/redPureDarkCTATheme.module.css +34 -0
  14. package/assets/Appearance/pureDark/themes/red/redPureDarkComponentTheme.module.css +42 -0
  15. package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkCTATheme.module.css +34 -0
  16. package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkComponentTheme.module.css +42 -0
  17. package/docs/external/active-line.js +72 -0
  18. package/docs/external/autorefresh.js +47 -0
  19. package/docs/external/codemirror.js +9681 -0
  20. package/docs/external/css/hopscotch.css +576 -0
  21. package/docs/external/css/styleGuide.css +1100 -0
  22. package/docs/external/css.js +466 -0
  23. package/docs/external/designTokens.js +1 -0
  24. package/docs/external/foldcode.js +152 -0
  25. package/docs/external/format.js +129 -0
  26. package/docs/external/htmlmixed.js +84 -0
  27. package/docs/external/images/bottom.png +0 -0
  28. package/docs/external/images/bottombg.jpg +0 -0
  29. package/docs/external/images/desk.png +0 -0
  30. package/docs/external/images/desklogo.png +0 -0
  31. package/docs/external/images/menu.png +0 -0
  32. package/docs/external/index.html +127 -0
  33. package/docs/external/javascript.js +422 -0
  34. package/docs/external/jsx.js +148 -0
  35. package/docs/external/matchbrackets.js +145 -0
  36. package/docs/external/xml.js +322 -0
  37. package/docs/package.json +41 -0
  38. package/docs/src/index.js +1311 -0
  39. package/es/Accordion/docs/Accordion__Demo.docs.js +80 -0
  40. package/es/Animation/docs/Animation__default.docs.js +34 -0
  41. package/es/Animation/docs/Animation__fadeIn.docs.js +34 -0
  42. package/es/Animation/docs/Animation__scaleIn.docs.js +34 -0
  43. package/es/Animation/docs/Animation__skewIn.docs.js +34 -0
  44. package/es/Animation/docs/Animation__slideDown.docs.js +34 -0
  45. package/es/Animation/docs/Animation__slideLeft.docs.js +34 -0
  46. package/es/Animation/docs/Animation__zoomIn.docs.js +34 -0
  47. package/es/AppContainer/AppContainer.js +6 -1
  48. package/es/AppContainer/docs/AppContainer__default.docs.js +20 -0
  49. package/es/Avatar/docs/Avatar__custom.docs.js +29 -0
  50. package/es/Avatar/docs/Avatar__default.docs.js +29 -0
  51. package/es/Avatar/docs/Avatar__palette.docs.js +49 -0
  52. package/es/Avatar/docs/Avatar__text.docs.js +28 -0
  53. package/es/AvatarTeam/docs/AvatarTeam__custom.docs.js +73 -0
  54. package/es/AvatarTeam/docs/AvatarTeam__default.docs.js +31 -0
  55. package/es/AvatarTeam/docs/AvatarTeam__palette.docs.js +50 -0
  56. package/es/AvatarTeam/docs/AvatarTeam__size.docs.js +49 -0
  57. package/es/Button/docs/Button__custom.docs.js +771 -0
  58. package/es/Button/docs/Button__default.docs.js +536 -0
  59. package/es/Buttongroup/docs/Buttongroup__custom.docs.js +37 -0
  60. package/es/Buttongroup/docs/Buttongroup__footer.docs.js +33 -0
  61. package/es/Buttongroup/docs/Buttongroup__header.docs.js +42 -0
  62. package/es/Card/docs/Card__Custom.docs.js +34 -0
  63. package/es/Card/docs/Card__Default.docs.js +37 -0
  64. package/es/Card/docs/Card__Scroll.docs.js +59 -0
  65. package/es/CheckBox/CheckBox.js +2 -1
  66. package/es/CheckBox/docs/CheckBox__custom.docs.js +293 -0
  67. package/es/CheckBox/docs/CheckBox__default.docs.js +219 -0
  68. package/es/DateTime/DateTime.js +8 -2
  69. package/es/DateTime/DateWidget.js +10 -2
  70. package/es/DateTime/docs/DateTime__default.docs.js +91 -0
  71. package/es/DateTime/docs/DateWidget__default.docs.js +183 -0
  72. package/es/DateTime/docs/timezonedata.json +1 -0
  73. package/es/DropBox/docs/DropBox__custom.docs.js +66 -0
  74. package/es/DropBox/docs/DropBox__customOrder.docs.js +92 -0
  75. package/es/DropBox/docs/DropBox__fixedPosition.docs.js +91 -0
  76. package/es/DropBox/docs/DropBox__position.docs.js +87 -0
  77. package/es/DropBox/docs/DropBox__size.docs.js +61 -0
  78. package/es/DropDown/docs/DropDownHeading__custom.docs.js +23 -0
  79. package/es/DropDown/docs/DropDownHeading__default.docs.js +21 -0
  80. package/es/Label/docs/Label__clipped.docs.js +27 -0
  81. package/es/Label/docs/Label__custom.docs.js +30 -0
  82. package/es/Label/docs/Label__palette.docs.js +42 -0
  83. package/es/Label/docs/Label__size.docs.js +29 -0
  84. package/es/Label/docs/Label__type.docs.js +37 -0
  85. package/es/Layout/docs/Layout__Hidden.docs.js +77 -0
  86. package/es/Layout/docs/Layout__default.docs.js +49 -0
  87. package/es/Layout/docs/Layout__four_Column.docs.js +85 -0
  88. package/es/Layout/docs/Layout__three_Column.docs.js +76 -0
  89. package/es/Layout/docs/Layout__two_Column.docs.js +69 -0
  90. package/es/LightNightMode/docs/AlternativeColors.docs.js +74 -0
  91. package/es/ListItem/ListItem.module.css +1 -1
  92. package/es/ListItem/docs/ListItemWithAvatar__custom.docs.js +155 -0
  93. package/es/ListItem/docs/ListItemWithAvatar__default.docs.js +112 -0
  94. package/es/ListItem/docs/ListItemWithCheckBox__custom.docs.js +91 -0
  95. package/es/ListItem/docs/ListItemWithCheckBox__default.docs.js +65 -0
  96. package/es/ListItem/docs/ListItemWithIcon__custom.docs.js +68 -0
  97. package/es/ListItem/docs/ListItemWithIcon__default.docs.js +62 -0
  98. package/es/ListItem/docs/ListItemWithRadio__custom.docs.js +91 -0
  99. package/es/ListItem/docs/ListItemWithRadio__default.docs.js +65 -0
  100. package/es/ListItem/docs/ListItem__custom.docs.js +114 -0
  101. package/es/ListItem/docs/ListItem__default.docs.js +82 -0
  102. package/es/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +125 -0
  103. package/es/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +114 -0
  104. package/es/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +141 -0
  105. package/es/MultiSelect/docs/MultiSelect__default.docs.js +161 -0
  106. package/es/PopOver/docs/PopOver__default.docs.js +32 -0
  107. package/es/Provider/Config.js +1 -2
  108. package/es/Provider/docs/Provider_Id__Class.docs.js +29 -0
  109. package/es/Provider/docs/Provider_Id__Function.docs.js +18 -0
  110. package/es/Provider/docs/Provider_Zindex__Class.docs.js +32 -0
  111. package/es/Provider/docs/Provider_Zindex__Function.docs.js +23 -0
  112. package/es/Provider.js +72 -35
  113. package/es/Radio/docs/Radio__custom.docs.js +245 -0
  114. package/es/Radio/docs/Radio__default.docs.js +169 -0
  115. package/es/Responsive/Responsive.js +1 -0
  116. package/es/Responsive/docs/Responsive__Custom.docs.js +206 -0
  117. package/es/Responsive/docs/Responsive__default.docs.js +97 -0
  118. package/es/Responsive/docs/style.module.css +56 -0
  119. package/es/Ribbon/docs/Ribbon__custom.docs.js +386 -0
  120. package/es/Ribbon/docs/Ribbon__default.docs.js +342 -0
  121. package/es/RippleEffect/docs/RippleEffect__default.docs.js +435 -0
  122. package/es/Select/SelectWithIcon.js +1 -0
  123. package/es/Select/docs/GroupSelect__default.docs.js +149 -0
  124. package/es/Select/docs/SelectWithAvatar__default.docs.js +97 -0
  125. package/es/Select/docs/SelectWithIcon__default.docs.js +138 -0
  126. package/es/Select/docs/Select__default.docs.js +288 -0
  127. package/es/Stencils/docs/Stencils__custom.docs.js +45 -0
  128. package/es/Stencils/docs/Stencils__default.docs.js +50 -0
  129. package/es/Switch/docs/Switch__custom.docs.js +153 -0
  130. package/es/Switch/docs/Switch__default.docs.js +107 -0
  131. package/es/Tab/docs/Tab__default.docs.js +258 -0
  132. package/es/Tab/docs/tabdocs.module.css +29 -0
  133. package/es/Tag/docs/Tag__custom.docs.js +368 -0
  134. package/es/Tag/docs/Tag__default.docs.js +323 -0
  135. package/es/TextBox/docs/TextBox__custom.docs.js +43 -0
  136. package/es/TextBox/docs/TextBox__default.docs.js +40 -0
  137. package/es/TextBox/docs/TextBox__size.docs.js +38 -0
  138. package/es/TextBox/docs/TextBox__variant.docs.js +38 -0
  139. package/es/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +89 -0
  140. package/es/TextBoxIcon/docs/TextBoxIcon__default.docs.js +61 -0
  141. package/es/Textarea/docs/Textarea__animated.docs.js +41 -0
  142. package/es/Textarea/docs/Textarea__custom.docs.js +82 -0
  143. package/es/Textarea/docs/Textarea__default.docs.js +76 -0
  144. package/es/Textarea/docs/Textarea__disabled.docs.js +29 -0
  145. package/es/Tooltip/Tooltip.js +40 -2
  146. package/es/Tooltip/docs/Tooltip__default.docs.js +371 -0
  147. package/es/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +97 -0
  148. package/es/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +150 -0
  149. package/es/a11y/FocusScope/docs/FocusScope__default.docs.js +139 -0
  150. package/es/beta/FocusRing/docs/FocusRing__default.docs.js +48 -0
  151. package/es/common/docStyle.module.css +6 -2
  152. package/es/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +72 -0
  153. package/es/semantic/Button/docs/Button__default.docs.js +20 -0
  154. package/lib/Accordion/docs/Accordion__Demo.docs.js +126 -0
  155. package/lib/Animation/docs/Animation__default.docs.js +85 -0
  156. package/lib/Animation/docs/Animation__fadeIn.docs.js +85 -0
  157. package/lib/Animation/docs/Animation__scaleIn.docs.js +85 -0
  158. package/lib/Animation/docs/Animation__skewIn.docs.js +85 -0
  159. package/lib/Animation/docs/Animation__slideDown.docs.js +85 -0
  160. package/lib/Animation/docs/Animation__slideLeft.docs.js +85 -0
  161. package/lib/Animation/docs/Animation__zoomIn.docs.js +85 -0
  162. package/lib/AppContainer/AppContainer.js +7 -0
  163. package/lib/AppContainer/docs/AppContainer__default.docs.js +70 -0
  164. package/lib/Avatar/docs/Avatar__custom.docs.js +87 -0
  165. package/lib/Avatar/docs/Avatar__default.docs.js +83 -0
  166. package/lib/Avatar/docs/Avatar__palette.docs.js +107 -0
  167. package/lib/Avatar/docs/Avatar__text.docs.js +86 -0
  168. package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +124 -0
  169. package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +82 -0
  170. package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +101 -0
  171. package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +100 -0
  172. package/lib/Button/docs/Button__custom.docs.js +826 -0
  173. package/lib/Button/docs/Button__default.docs.js +590 -0
  174. package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +89 -0
  175. package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +85 -0
  176. package/lib/Buttongroup/docs/Buttongroup__header.docs.js +98 -0
  177. package/lib/Card/docs/Card__Custom.docs.js +90 -0
  178. package/lib/Card/docs/Card__Default.docs.js +92 -0
  179. package/lib/Card/docs/Card__Scroll.docs.js +114 -0
  180. package/lib/CheckBox/CheckBox.js +2 -1
  181. package/lib/CheckBox/docs/CheckBox__custom.docs.js +348 -0
  182. package/lib/CheckBox/docs/CheckBox__default.docs.js +273 -0
  183. package/lib/DateTime/DateTime.js +8 -2
  184. package/lib/DateTime/DateWidget.js +10 -2
  185. package/lib/DateTime/docs/DateTime__default.docs.js +142 -0
  186. package/lib/DateTime/docs/DateWidget__default.docs.js +240 -0
  187. package/lib/DateTime/docs/timezonedata.json +1 -0
  188. package/lib/DropBox/docs/DropBox__custom.docs.js +122 -0
  189. package/lib/DropBox/docs/DropBox__customOrder.docs.js +141 -0
  190. package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +140 -0
  191. package/lib/DropBox/docs/DropBox__position.docs.js +142 -0
  192. package/lib/DropBox/docs/DropBox__size.docs.js +116 -0
  193. package/lib/DropDown/docs/DropDownHeading__custom.docs.js +73 -0
  194. package/lib/DropDown/docs/DropDownHeading__default.docs.js +70 -0
  195. package/lib/Label/docs/Label__clipped.docs.js +81 -0
  196. package/lib/Label/docs/Label__custom.docs.js +85 -0
  197. package/lib/Label/docs/Label__palette.docs.js +96 -0
  198. package/lib/Label/docs/Label__size.docs.js +83 -0
  199. package/lib/Label/docs/Label__type.docs.js +91 -0
  200. package/lib/Layout/docs/Layout__Hidden.docs.js +127 -0
  201. package/lib/Layout/docs/Layout__default.docs.js +98 -0
  202. package/lib/Layout/docs/Layout__four_Column.docs.js +135 -0
  203. package/lib/Layout/docs/Layout__three_Column.docs.js +126 -0
  204. package/lib/Layout/docs/Layout__two_Column.docs.js +119 -0
  205. package/lib/LightNightMode/docs/AlternativeColors.docs.js +131 -0
  206. package/lib/ListItem/ListItem.module.css +1 -1
  207. package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +206 -0
  208. package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +162 -0
  209. package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +142 -0
  210. package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +115 -0
  211. package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +119 -0
  212. package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +112 -0
  213. package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +142 -0
  214. package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +115 -0
  215. package/lib/ListItem/docs/ListItem__custom.docs.js +164 -0
  216. package/lib/ListItem/docs/ListItem__default.docs.js +131 -0
  217. package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +177 -0
  218. package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +165 -0
  219. package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +191 -0
  220. package/lib/MultiSelect/docs/MultiSelect__default.docs.js +214 -0
  221. package/lib/PopOver/docs/PopOver__default.docs.js +86 -0
  222. package/lib/Provider/Config.js +1 -2
  223. package/lib/Provider/docs/Provider_Id__Class.docs.js +77 -0
  224. package/lib/Provider/docs/Provider_Id__Function.docs.js +29 -0
  225. package/lib/Provider/docs/Provider_Zindex__Class.docs.js +80 -0
  226. package/lib/Provider/docs/Provider_Zindex__Function.docs.js +34 -0
  227. package/lib/Provider.js +88 -37
  228. package/lib/Radio/docs/Radio__custom.docs.js +299 -0
  229. package/lib/Radio/docs/Radio__default.docs.js +222 -0
  230. package/lib/Responsive/docs/Responsive__Custom.docs.js +272 -0
  231. package/lib/Responsive/docs/Responsive__default.docs.js +142 -0
  232. package/lib/Responsive/docs/style.module.css +56 -0
  233. package/lib/Ribbon/docs/Ribbon__custom.docs.js +437 -0
  234. package/lib/Ribbon/docs/Ribbon__default.docs.js +392 -0
  235. package/lib/RippleEffect/docs/RippleEffect__default.docs.js +484 -0
  236. package/lib/Select/docs/GroupSelect__default.docs.js +199 -0
  237. package/lib/Select/docs/SelectWithAvatar__default.docs.js +152 -0
  238. package/lib/Select/docs/SelectWithIcon__default.docs.js +190 -0
  239. package/lib/Select/docs/Select__default.docs.js +340 -0
  240. package/lib/Stencils/docs/Stencils__custom.docs.js +96 -0
  241. package/lib/Stencils/docs/Stencils__default.docs.js +101 -0
  242. package/lib/Switch/docs/Switch__custom.docs.js +203 -0
  243. package/lib/Switch/docs/Switch__default.docs.js +156 -0
  244. package/lib/Tab/docs/Tab__default.docs.js +308 -0
  245. package/lib/Tab/docs/tabdocs.module.css +29 -0
  246. package/lib/Tag/docs/Tag__custom.docs.js +423 -0
  247. package/lib/Tag/docs/Tag__default.docs.js +377 -0
  248. package/lib/TextBox/docs/TextBox__custom.docs.js +98 -0
  249. package/lib/TextBox/docs/TextBox__default.docs.js +95 -0
  250. package/lib/TextBox/docs/TextBox__size.docs.js +93 -0
  251. package/lib/TextBox/docs/TextBox__variant.docs.js +93 -0
  252. package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +145 -0
  253. package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +117 -0
  254. package/lib/Textarea/docs/Textarea__animated.docs.js +95 -0
  255. package/lib/Textarea/docs/Textarea__custom.docs.js +137 -0
  256. package/lib/Textarea/docs/Textarea__default.docs.js +130 -0
  257. package/lib/Textarea/docs/Textarea__disabled.docs.js +83 -0
  258. package/lib/Tooltip/Tooltip.js +47 -2
  259. package/lib/Tooltip/docs/Tooltip__default.docs.js +430 -0
  260. package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +150 -0
  261. package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +206 -0
  262. package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +191 -0
  263. package/lib/beta/FocusRing/docs/FocusRing__default.docs.js +101 -0
  264. package/lib/common/docStyle.module.css +6 -2
  265. package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +145 -0
  266. package/lib/semantic/Button/docs/Button__default.docs.js +66 -0
  267. package/package.json +7 -6
@@ -0,0 +1,131 @@
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
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _react = _interopRequireDefault(require("react"));
11
+
12
+ var _ListItem = _interopRequireDefault(require("../ListItem"));
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
+
16
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
17
+
18
+ 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
+ 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
+ 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
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
25
+
26
+ 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
+ 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
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
31
+
32
+ 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
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
35
+
36
+ var ListItem__default = /*#__PURE__*/function (_React$Component) {
37
+ _inherits(ListItem__default, _React$Component);
38
+
39
+ var _super = _createSuper(ListItem__default);
40
+
41
+ function ListItem__default() {
42
+ _classCallCheck(this, ListItem__default);
43
+
44
+ return _super.apply(this, arguments);
45
+ }
46
+
47
+ _createClass(ListItem__default, [{
48
+ key: "render",
49
+ value: function render() {
50
+ return /*#__PURE__*/_react["default"].createElement("div", {
51
+ style: {
52
+ width: '250px'
53
+ }
54
+ }, /*#__PURE__*/_react["default"].createElement("div", {
55
+ style: {
56
+ marginBottom: '10px'
57
+ }
58
+ }, /*#__PURE__*/_react["default"].createElement(_ListItem["default"], {
59
+ value: "ListItem",
60
+ isLink: true,
61
+ href: "https://zoho.com",
62
+ disableTitle: "Disabled list"
63
+ })), /*#__PURE__*/_react["default"].createElement("div", {
64
+ style: {
65
+ marginBottom: '10px'
66
+ }
67
+ }, /*#__PURE__*/_react["default"].createElement(_ListItem["default"], {
68
+ value: "ListItem",
69
+ autoHover: true,
70
+ disableTitle: "Disabled list"
71
+ })), /*#__PURE__*/_react["default"].createElement("div", {
72
+ style: {
73
+ marginBottom: '10px'
74
+ }
75
+ }, /*#__PURE__*/_react["default"].createElement(_ListItem["default"], {
76
+ value: "ListItem",
77
+ highlight: true,
78
+ disableTitle: "Disabled list"
79
+ })), /*#__PURE__*/_react["default"].createElement("div", {
80
+ style: {
81
+ marginBottom: '10px'
82
+ }
83
+ }, /*#__PURE__*/_react["default"].createElement(_ListItem["default"], {
84
+ value: "ListItem",
85
+ active: true,
86
+ disableTitle: "Disabled list",
87
+ title: "ListItem title"
88
+ })), /*#__PURE__*/_react["default"].createElement("div", {
89
+ style: {
90
+ marginBottom: '10px'
91
+ }
92
+ }, /*#__PURE__*/_react["default"].createElement(_ListItem["default"], {
93
+ value: "ListItem",
94
+ active: true,
95
+ needTick: true,
96
+ disableTitle: "disabled list"
97
+ })), /*#__PURE__*/_react["default"].createElement("div", {
98
+ style: {
99
+ marginBottom: '10px'
100
+ }
101
+ }, /*#__PURE__*/_react["default"].createElement(_ListItem["default"], {
102
+ value: "ListItem disabled",
103
+ palette: "secondary",
104
+ autoHover: true,
105
+ isDisabled: true,
106
+ disableTitle: "disabled list"
107
+ })), /*#__PURE__*/_react["default"].createElement("div", {
108
+ style: {
109
+ marginBottom: '10px'
110
+ }
111
+ }, /*#__PURE__*/_react["default"].createElement(_ListItem["default"], {
112
+ autoHover: true,
113
+ active: true,
114
+ value: "ListItemListItemListItemListItemListItem"
115
+ }, "ChildrenChildrenChildren ChildrenChildrenChildrenChildren")));
116
+ }
117
+ }]);
118
+
119
+ return ListItem__default;
120
+ }(_react["default"].Component);
121
+
122
+ exports["default"] = ListItem__default;
123
+
124
+ if (false) {
125
+ ListItem__default.docs = {
126
+ componentGroup: 'Molecule',
127
+ folderName: 'Style Guide',
128
+ description: ' ',
129
+ external: true
130
+ };
131
+ }
@@ -0,0 +1,177 @@
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
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _react = _interopRequireDefault(require("react"));
11
+
12
+ var _AdvancedGroupMultiSelect = _interopRequireDefault(require("../AdvancedGroupMultiSelect"));
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
+
16
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
17
+
18
+ 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
+ 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
+ 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
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
25
+
26
+ 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
+ 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
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
31
+
32
+ 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
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
35
+
36
+ var AdvancedGroupMultiSelect__default = /*#__PURE__*/function (_React$Component) {
37
+ _inherits(AdvancedGroupMultiSelect__default, _React$Component);
38
+
39
+ var _super = _createSuper(AdvancedGroupMultiSelect__default);
40
+
41
+ function AdvancedGroupMultiSelect__default(props) {
42
+ var _this;
43
+
44
+ _classCallCheck(this, AdvancedGroupMultiSelect__default);
45
+
46
+ _this = _super.call(this, props);
47
+ _this.handleSelectOptions = _this.handleSelectOptions.bind(_assertThisInitialized(_this));
48
+ _this.getNextOptions = _this.getNextOptions.bind(_assertThisInitialized(_this));
49
+ _this.groupFooter = _this.groupFooter.bind(_assertThisInitialized(_this));
50
+ _this.onSearch = _this.onSearch.bind(_assertThisInitialized(_this));
51
+ _this.state = {
52
+ selectedGroupOptions: [{
53
+ groupId: 'Group1',
54
+ id: 'group13'
55
+ }, {
56
+ groupId: 'Group1',
57
+ id: '1212'
58
+ }, {
59
+ groupId: 'Group2',
60
+ id: '2222'
61
+ }],
62
+ selectedOptionDetails: {
63
+ Group1: [{
64
+ value: 'Ashok',
65
+ id: '1212'
66
+ }],
67
+ Group2: [{
68
+ value: 'team 1',
69
+ id: '2222'
70
+ }]
71
+ }
72
+ };
73
+ return _this;
74
+ }
75
+
76
+ _createClass(AdvancedGroupMultiSelect__default, [{
77
+ key: "getNextOptions",
78
+ value: function getNextOptions(searchStr) {
79
+ return Promise.resolve();
80
+ }
81
+ }, {
82
+ key: "onSearch",
83
+ value: function onSearch(searchStr) {
84
+ return Promise.resolve();
85
+ }
86
+ }, {
87
+ key: "handleSelectOptions",
88
+ value: function handleSelectOptions() {
89
+ var selectedGroupOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
90
+ this.setState({
91
+ selectedGroupOptions: selectedGroupOptions
92
+ });
93
+ }
94
+ }, {
95
+ key: "groupFooter",
96
+ value: function groupFooter() {
97
+ return /*#__PURE__*/_react["default"].createElement("div", null, "Footer");
98
+ }
99
+ }, {
100
+ key: "render",
101
+ value: function render() {
102
+ var groupOptions = [{
103
+ id: 'Group1',
104
+ name: 'Group 1',
105
+ options: [{
106
+ id: 'group11',
107
+ value: 'Option 1'
108
+ }, {
109
+ id: 'group12',
110
+ value: 'Option 2'
111
+ }, {
112
+ id: 'group13',
113
+ value: 'Option 3'
114
+ }],
115
+ textField: 'value',
116
+ valueField: 'id'
117
+ }, {
118
+ id: 'Group2',
119
+ name: 'Group 2',
120
+ options: [{
121
+ id: 'group21',
122
+ value: 'Group2 Option 1'
123
+ }, {
124
+ id: 'group22',
125
+ value: 'Group2 Option 2'
126
+ }, {
127
+ id: 'group23',
128
+ value: 'Group2 Option 3'
129
+ }],
130
+ textField: 'value',
131
+ valueField: 'id'
132
+ }];
133
+ return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_AdvancedGroupMultiSelect["default"], {
134
+ groupedOptions: groupOptions,
135
+ selectedGroupOptions: this.state.selectedGroupOptions,
136
+ onChange: this.handleSelectOptions,
137
+ dataIdSrchEmptyMsg: "EmptySearch",
138
+ dataIdNoOptnsMsg: "NoData",
139
+ needLocalSearch: true,
140
+ getNextOptions: this.getNextOptions,
141
+ onSearch: this.onSearch,
142
+ selectedOptionDetails: this.state.selectedOptionDetails,
143
+ i18nKeys: {
144
+ clearText: 'Clear Selected Items',
145
+ loadingText: 'Fetching...',
146
+ emptyText: 'No Options .',
147
+ noMoreText: 'No More Options .',
148
+ searchEmptyText: 'No Matches Found .'
149
+ }
150
+ }), /*#__PURE__*/_react["default"].createElement(_AdvancedGroupMultiSelect["default"], {
151
+ groupedOptions: groupOptions,
152
+ selectedGroupOptions: this.state.selectedGroupOptions,
153
+ onChange: this.handleSelectOptions,
154
+ emptyMessage: "No data found",
155
+ searchEmptyMessage: "No results found",
156
+ dataIdSrchEmptyMsg: "EmptySearch",
157
+ dataIdNoOptnsMsg: "NoData",
158
+ needLocalSearch: true,
159
+ getNextOptions: this.getNextOptions,
160
+ onSearch: this.onSearch,
161
+ selectedOptionDetails: this.state.selectedOptionDetails,
162
+ getFooter: this.groupFooter
163
+ }, /*#__PURE__*/_react["default"].createElement("div", null, "Children")));
164
+ }
165
+ }]);
166
+
167
+ return AdvancedGroupMultiSelect__default;
168
+ }(_react["default"].Component);
169
+
170
+ exports["default"] = AdvancedGroupMultiSelect__default;
171
+
172
+ if (false) {
173
+ AdvancedGroupMultiSelect__default.docs = {
174
+ componentGroup: 'Form Elements',
175
+ folderName: 'Style Guide'
176
+ };
177
+ }
@@ -0,0 +1,165 @@
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
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _AdvancedMultiSelect = _interopRequireDefault(require("../AdvancedMultiSelect"));
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
+
16
+ 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); }
17
+
18
+ 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; }
19
+
20
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
21
+
22
+ 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); } }
23
+
24
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25
+
26
+ 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); }
27
+
28
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
+
30
+ 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); }; }
31
+
32
+ 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); }
33
+
34
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
35
+
36
+ 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; } }
37
+
38
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
39
+
40
+ var AdvancedMultiSelect__default = /*#__PURE__*/function (_Component) {
41
+ _inherits(AdvancedMultiSelect__default, _Component);
42
+
43
+ var _super = _createSuper(AdvancedMultiSelect__default);
44
+
45
+ function AdvancedMultiSelect__default(props) {
46
+ var _this;
47
+
48
+ _classCallCheck(this, AdvancedMultiSelect__default);
49
+
50
+ _this = _super.call(this, props);
51
+ _this.state = {
52
+ options: [{
53
+ id: 2,
54
+ text: 'text2',
55
+ listItemProps: {
56
+ style: {
57
+ color: 'red'
58
+ }
59
+ }
60
+ }, {
61
+ id: 3,
62
+ text: 'text3',
63
+ listItemProps: {
64
+ style: {
65
+ color: 'blue'
66
+ }
67
+ }
68
+ }, {
69
+ id: 4,
70
+ text: 'text4'
71
+ }, {
72
+ id: 5,
73
+ text: 'text5'
74
+ }, {
75
+ id: 6,
76
+ text: 'text6'
77
+ }, {
78
+ id: 7,
79
+ text: 'text7'
80
+ }, {
81
+ id: 8,
82
+ text: 'text8'
83
+ }, {
84
+ id: 9,
85
+ text: 'text9'
86
+ }, {
87
+ id: 10,
88
+ text: 'text10'
89
+ }],
90
+ selectedOptions: [1, 2, 3, 4],
91
+ selectedOptionDetails: [{
92
+ id: 1,
93
+ text: 'text1'
94
+ }]
95
+ };
96
+ _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
97
+ _this.handleGetSelectedOptionDetails = _this.handleGetSelectedOptionDetails.bind(_assertThisInitialized(_this));
98
+ _this.getFooter = _this.getFooter.bind(_assertThisInitialized(_this));
99
+ return _this;
100
+ }
101
+
102
+ _createClass(AdvancedMultiSelect__default, [{
103
+ key: "handleChange",
104
+ value: function handleChange(selectedOptions) {
105
+ this.setState({
106
+ selectedOptions: selectedOptions
107
+ });
108
+ }
109
+ }, {
110
+ key: "handleGetSelectedOptionDetails",
111
+ value: function handleGetSelectedOptionDetails() {
112
+ return Promise.resolve();
113
+ }
114
+ }, {
115
+ key: "getFooter",
116
+ value: function getFooter() {
117
+ return /*#__PURE__*/_react["default"].createElement("div", null, "Custom Footer");
118
+ }
119
+ }, {
120
+ key: "render",
121
+ value: function render() {
122
+ var _this$state = this.state,
123
+ selectedOptions = _this$state.selectedOptions,
124
+ options = _this$state.options,
125
+ selectedOptionDetails = _this$state.selectedOptionDetails;
126
+ return /*#__PURE__*/_react["default"].createElement(_AdvancedMultiSelect["default"], {
127
+ id: "8888",
128
+ options: options,
129
+ selectedOptions: selectedOptions,
130
+ onChange: this.handleChange,
131
+ selectedOptionsLimit: 2,
132
+ selectedOptionDetails: selectedOptionDetails,
133
+ getSelectedOptionDetails: this.handleGetSelectedOptionDetails,
134
+ needSelectAll: true,
135
+ selectAllText: "Select All",
136
+ placeHolder: "Select Text",
137
+ optionType: "default",
138
+ i18nKeys: {
139
+ clearText: 'Clear Selected Items',
140
+ loadingText: 'Fetching...',
141
+ emptyText: 'No Options .',
142
+ noMoreText: 'No More Options .',
143
+ searchEmptyText: 'No Matches Found .'
144
+ },
145
+ getFooter: this.getFooter,
146
+ customProps: {
147
+ SuggestionsProps: {
148
+ needBorder: false
149
+ }
150
+ }
151
+ });
152
+ }
153
+ }]);
154
+
155
+ return AdvancedMultiSelect__default;
156
+ }(_react.Component);
157
+
158
+ exports["default"] = AdvancedMultiSelect__default;
159
+
160
+ if (false) {
161
+ AdvancedMultiSelect__default.docs = {
162
+ componentGroup: 'Form Elements',
163
+ folderName: 'Style Guide'
164
+ };
165
+ }
@@ -0,0 +1,191 @@
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
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _CodeExtractor = _interopRequireDefault(require("@zohodesk/docstool/lib/CodeExtractor/CodeExtractor"));
13
+
14
+ var _MultiSelectWithAvatar = _interopRequireDefault(require("../MultiSelectWithAvatar"));
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
+
18
+ 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); }
19
+
20
+ 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; }
21
+
22
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
23
+
24
+ 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
+ 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
+ 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
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
+
32
+ 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
+ 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
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
37
+
38
+ 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
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
41
+
42
+ var MultiSelectWithAvatar__default = /*#__PURE__*/function (_Component) {
43
+ _inherits(MultiSelectWithAvatar__default, _Component);
44
+
45
+ var _super = _createSuper(MultiSelectWithAvatar__default);
46
+
47
+ function MultiSelectWithAvatar__default(props) {
48
+ var _this;
49
+
50
+ _classCallCheck(this, MultiSelectWithAvatar__default);
51
+
52
+ _this = _super.call(this, props);
53
+ var photoURL = '';
54
+ _this.state = {
55
+ options: [{
56
+ id: 'text1',
57
+ text: 'text1',
58
+ photoURL: photoURL
59
+ }, {
60
+ id: 'text2',
61
+ text: 'text2',
62
+ photoURL: photoURL
63
+ }, {
64
+ id: 'text3',
65
+ text: 'text3',
66
+ photoURL: photoURL
67
+ }, {
68
+ id: 'text4',
69
+ text: 'text4',
70
+ photoURL: photoURL
71
+ }, {
72
+ id: 'text5',
73
+ text: 'text5'
74
+ }, {
75
+ id: 'text6',
76
+ text: 'text6',
77
+ photoURL: photoURL
78
+ }, {
79
+ id: 'text7',
80
+ text: 'text7',
81
+ photoURL: photoURL
82
+ }, {
83
+ id: 'text8',
84
+ text: 'text8',
85
+ photoURL: photoURL
86
+ }, {
87
+ id: 'text9',
88
+ text: 'text9',
89
+ photoURL: photoURL
90
+ }, {
91
+ id: 'text10',
92
+ text: 'text10',
93
+ photoURL: photoURL
94
+ }],
95
+ selectedOptions: ['text1', 'text2', 'text3', 'text4', 'text5']
96
+ };
97
+ _this.handleSelect = _this.handleSelect.bind(_assertThisInitialized(_this));
98
+ return _this;
99
+ }
100
+
101
+ _createClass(MultiSelectWithAvatar__default, [{
102
+ key: "handleSelect",
103
+ value: function handleSelect(options) {
104
+ this.setState({
105
+ selectedOptions: options
106
+ });
107
+ }
108
+ }, {
109
+ key: "render",
110
+ value: function render() {
111
+ var _this$state = this.state,
112
+ selectedOptions = _this$state.selectedOptions,
113
+ options = _this$state.options;
114
+ return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_CodeExtractor["default"], null, /*#__PURE__*/_react["default"].createElement("div", null, "Default"), /*#__PURE__*/_react["default"].createElement(_MultiSelectWithAvatar["default"], {
115
+ valueField: "id",
116
+ textField: "text",
117
+ imageField: "photoURL",
118
+ options: options,
119
+ onChange: this.handleSelect,
120
+ selectedOptions: selectedOptions,
121
+ needSelectAll: true,
122
+ selectAllText: "Select All",
123
+ placeHolder: "Select Text",
124
+ i18nKeys: {
125
+ clearText: 'Clear Selected Items',
126
+ loadingText: 'Fetching...',
127
+ emptyText: 'No Options .',
128
+ noMoreText: 'No More Options .',
129
+ searchEmptyText: 'No Matches Found .'
130
+ }
131
+ }), /*#__PURE__*/_react["default"].createElement("div", null, "Disabled"), /*#__PURE__*/_react["default"].createElement(_MultiSelectWithAvatar["default"], {
132
+ isDisabled: true,
133
+ valueField: "id",
134
+ textField: "text",
135
+ imageField: "photoURL",
136
+ options: options,
137
+ onChange: this.handleSelect,
138
+ selectedOptions: selectedOptions,
139
+ needSelectAll: true,
140
+ selectAllText: "Select All",
141
+ placeHolder: "Select Text",
142
+ emptyMessage: "No Options",
143
+ noMoreOptionsMessage: "No More Options",
144
+ searchEmptyMessage: "No Matches Found"
145
+ }), /*#__PURE__*/_react["default"].createElement("div", null, "Readonly"), /*#__PURE__*/_react["default"].createElement(_MultiSelectWithAvatar["default"], {
146
+ isReadOnly: true,
147
+ valueField: "id",
148
+ textField: "text",
149
+ imageField: "photoURL",
150
+ options: options,
151
+ onChange: this.handleSelect,
152
+ selectedOptions: selectedOptions,
153
+ needSelectAll: true,
154
+ selectAllText: "Select All",
155
+ placeHolder: "Select Text",
156
+ emptyMessage: "No Options",
157
+ noMoreOptionsMessage: "No More Options",
158
+ searchEmptyMessage: "No Matches Found"
159
+ }), /*#__PURE__*/_react["default"].createElement(_MultiSelectWithAvatar["default"], {
160
+ isReadOnly: true,
161
+ valueField: "id",
162
+ textField: "text",
163
+ imageField: "photoURL",
164
+ options: options,
165
+ onChange: this.handleSelect,
166
+ selectedOptions: selectedOptions,
167
+ needSelectAll: true,
168
+ selectAllText: "Select All",
169
+ placeHolder: "Select Text",
170
+ emptyMessage: "No Options",
171
+ noMoreOptionsMessage: "No More Options",
172
+ searchEmptyMessage: "No Matches Found",
173
+ needBorder: false,
174
+ disableAction: true
175
+ })));
176
+ }
177
+ }]);
178
+
179
+ return MultiSelectWithAvatar__default;
180
+ }(_react.Component);
181
+
182
+ exports["default"] = MultiSelectWithAvatar__default;
183
+
184
+ if (false) {
185
+ MultiSelectWithAvatar__default.docs = {
186
+ componentGroup: 'Form Elements',
187
+ folderName: 'Style Guide',
188
+ external: true,
189
+ description: ' '
190
+ };
191
+ }