@zohodesk/components 1.0.0-alpha-225 → 1.0.0-alpha-226

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 (234) hide show
  1. package/README.md +4 -0
  2. package/es/ListItem/ListContainer.js +123 -0
  3. package/es/ListItem/ListItem.js +23 -31
  4. package/es/ListItem/ListItemWithAvatar.js +21 -27
  5. package/es/ListItem/ListItemWithCheckBox.js +23 -29
  6. package/es/ListItem/ListItemWithIcon.js +26 -26
  7. package/es/ListItem/ListItemWithRadio.js +24 -31
  8. package/lib/ListItem/ListContainer.js +132 -0
  9. package/lib/ListItem/ListItem.js +25 -32
  10. package/lib/ListItem/ListItemWithAvatar.js +23 -28
  11. package/lib/ListItem/ListItemWithCheckBox.js +24 -27
  12. package/lib/ListItem/ListItemWithIcon.js +27 -26
  13. package/lib/ListItem/ListItemWithRadio.js +26 -27
  14. package/package.json +3 -3
  15. package/README_Beta.md +0 -2
  16. package/__testUtils__/globals.js +0 -46
  17. package/__testUtils__/moduleMapKey.json +0 -138
  18. package/dubFinder.js +0 -96
  19. package/es/Accordion/docs/Accordion__Demo.docs.js +0 -80
  20. package/es/Animation/docs/Animation__default.docs.js +0 -34
  21. package/es/Animation/docs/Animation__fadeIn.docs.js +0 -34
  22. package/es/Animation/docs/Animation__scaleIn.docs.js +0 -34
  23. package/es/Animation/docs/Animation__skewIn.docs.js +0 -34
  24. package/es/Animation/docs/Animation__slideDown.docs.js +0 -34
  25. package/es/Animation/docs/Animation__slideLeft.docs.js +0 -34
  26. package/es/Animation/docs/Animation__zoomIn.docs.js +0 -34
  27. package/es/AppContainer/docs/AppContainer__default.docs.js +0 -20
  28. package/es/Avatar/docs/Avatar__custom.docs.js +0 -29
  29. package/es/Avatar/docs/Avatar__default.docs.js +0 -29
  30. package/es/Avatar/docs/Avatar__palette.docs.js +0 -49
  31. package/es/Avatar/docs/Avatar__text.docs.js +0 -28
  32. package/es/AvatarTeam/docs/AvatarTeam__custom.docs.js +0 -73
  33. package/es/AvatarTeam/docs/AvatarTeam__default.docs.js +0 -31
  34. package/es/AvatarTeam/docs/AvatarTeam__palette.docs.js +0 -50
  35. package/es/AvatarTeam/docs/AvatarTeam__size.docs.js +0 -49
  36. package/es/Button/docs/Button__custom.docs.js +0 -771
  37. package/es/Button/docs/Button__default.docs.js +0 -536
  38. package/es/Buttongroup/docs/Buttongroup__custom.docs.js +0 -37
  39. package/es/Buttongroup/docs/Buttongroup__footer.docs.js +0 -33
  40. package/es/Buttongroup/docs/Buttongroup__header.docs.js +0 -42
  41. package/es/Card/docs/Card__Custom.docs.js +0 -34
  42. package/es/Card/docs/Card__Default.docs.js +0 -37
  43. package/es/Card/docs/Card__Scroll.docs.js +0 -59
  44. package/es/CheckBox/docs/CheckBox__custom.docs.js +0 -293
  45. package/es/CheckBox/docs/CheckBox__default.docs.js +0 -219
  46. package/es/DateTime/docs/DateTime__default.docs.js +0 -91
  47. package/es/DateTime/docs/DateWidget__default.docs.js +0 -183
  48. package/es/DateTime/docs/timezonedata.json +0 -1
  49. package/es/DropBox/docs/DropBox__custom.docs.js +0 -66
  50. package/es/DropBox/docs/DropBox__customOrder.docs.js +0 -92
  51. package/es/DropBox/docs/DropBox__fixedPosition.docs.js +0 -91
  52. package/es/DropBox/docs/DropBox__position.docs.js +0 -87
  53. package/es/DropBox/docs/DropBox__size.docs.js +0 -61
  54. package/es/DropDown/docs/DropDownHeading__custom.docs.js +0 -23
  55. package/es/DropDown/docs/DropDownHeading__default.docs.js +0 -21
  56. package/es/Label/docs/Label__clipped.docs.js +0 -27
  57. package/es/Label/docs/Label__custom.docs.js +0 -30
  58. package/es/Label/docs/Label__palette.docs.js +0 -42
  59. package/es/Label/docs/Label__size.docs.js +0 -29
  60. package/es/Label/docs/Label__type.docs.js +0 -37
  61. package/es/Layout/docs/Layout__Hidden.docs.js +0 -77
  62. package/es/Layout/docs/Layout__default.docs.js +0 -49
  63. package/es/Layout/docs/Layout__four_Column.docs.js +0 -85
  64. package/es/Layout/docs/Layout__three_Column.docs.js +0 -76
  65. package/es/Layout/docs/Layout__two_Column.docs.js +0 -69
  66. package/es/LightNightMode/docs/AlternativeColors.docs.js +0 -74
  67. package/es/ListItem/docs/ListItemWithAvatar__custom.docs.js +0 -155
  68. package/es/ListItem/docs/ListItemWithAvatar__default.docs.js +0 -112
  69. package/es/ListItem/docs/ListItemWithCheckBox__custom.docs.js +0 -91
  70. package/es/ListItem/docs/ListItemWithCheckBox__default.docs.js +0 -65
  71. package/es/ListItem/docs/ListItemWithIcon__custom.docs.js +0 -68
  72. package/es/ListItem/docs/ListItemWithIcon__default.docs.js +0 -62
  73. package/es/ListItem/docs/ListItemWithRadio__custom.docs.js +0 -91
  74. package/es/ListItem/docs/ListItemWithRadio__default.docs.js +0 -65
  75. package/es/ListItem/docs/ListItem__custom.docs.js +0 -114
  76. package/es/ListItem/docs/ListItem__default.docs.js +0 -82
  77. package/es/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +0 -125
  78. package/es/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +0 -114
  79. package/es/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +0 -141
  80. package/es/MultiSelect/docs/MultiSelect__default.docs.js +0 -161
  81. package/es/PopOver/docs/PopOver__default.docs.js +0 -32
  82. package/es/Provider/docs/Provider_Id__Class.docs.js +0 -29
  83. package/es/Provider/docs/Provider_Id__Function.docs.js +0 -18
  84. package/es/Provider/docs/Provider_Zindex__Class.docs.js +0 -32
  85. package/es/Provider/docs/Provider_Zindex__Function.docs.js +0 -23
  86. package/es/Radio/docs/Radio__custom.docs.js +0 -245
  87. package/es/Radio/docs/Radio__default.docs.js +0 -169
  88. package/es/Responsive/docs/Responsive__Custom.docs.js +0 -206
  89. package/es/Responsive/docs/Responsive__default.docs.js +0 -97
  90. package/es/Responsive/docs/style.module.css +0 -56
  91. package/es/Ribbon/docs/Ribbon__custom.docs.js +0 -386
  92. package/es/Ribbon/docs/Ribbon__default.docs.js +0 -342
  93. package/es/RippleEffect/docs/RippleEffect__default.docs.js +0 -435
  94. package/es/Select/docs/GroupSelect__default.docs.js +0 -149
  95. package/es/Select/docs/SelectWithAvatar__default.docs.js +0 -97
  96. package/es/Select/docs/SelectWithIcon__default.docs.js +0 -138
  97. package/es/Select/docs/Select__default.docs.js +0 -288
  98. package/es/Stencils/docs/Stencils__custom.docs.js +0 -45
  99. package/es/Stencils/docs/Stencils__default.docs.js +0 -50
  100. package/es/Switch/docs/Switch__custom.docs.js +0 -153
  101. package/es/Switch/docs/Switch__default.docs.js +0 -107
  102. package/es/Tab/docs/Tab__default.docs.js +0 -258
  103. package/es/Tab/docs/tabdocs.module.css +0 -29
  104. package/es/Tag/docs/Tag__custom.docs.js +0 -368
  105. package/es/Tag/docs/Tag__default.docs.js +0 -253
  106. package/es/TextBox/docs/TextBox__custom.docs.js +0 -43
  107. package/es/TextBox/docs/TextBox__default.docs.js +0 -40
  108. package/es/TextBox/docs/TextBox__size.docs.js +0 -38
  109. package/es/TextBox/docs/TextBox__variant.docs.js +0 -38
  110. package/es/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +0 -89
  111. package/es/TextBoxIcon/docs/TextBoxIcon__default.docs.js +0 -61
  112. package/es/Textarea/docs/Textarea__animated.docs.js +0 -41
  113. package/es/Textarea/docs/Textarea__custom.docs.js +0 -82
  114. package/es/Textarea/docs/Textarea__default.docs.js +0 -76
  115. package/es/Textarea/docs/Textarea__disabled.docs.js +0 -29
  116. package/es/Tooltip/docs/Tooltip__default.docs.js +0 -332
  117. package/es/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +0 -97
  118. package/es/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +0 -150
  119. package/es/a11y/FocusScope/docs/FocusScope__default.docs.js +0 -139
  120. package/es/beta/FocusRing/docs/FocusRing__default.docs.js +0 -48
  121. package/es/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +0 -72
  122. package/es/semantic/Button/docs/Button__default.docs.js +0 -20
  123. package/externalDocsBuild.js +0 -21
  124. package/lib/Accordion/docs/Accordion__Demo.docs.js +0 -126
  125. package/lib/Animation/docs/Animation__default.docs.js +0 -85
  126. package/lib/Animation/docs/Animation__fadeIn.docs.js +0 -85
  127. package/lib/Animation/docs/Animation__scaleIn.docs.js +0 -85
  128. package/lib/Animation/docs/Animation__skewIn.docs.js +0 -85
  129. package/lib/Animation/docs/Animation__slideDown.docs.js +0 -85
  130. package/lib/Animation/docs/Animation__slideLeft.docs.js +0 -85
  131. package/lib/Animation/docs/Animation__zoomIn.docs.js +0 -85
  132. package/lib/AppContainer/docs/AppContainer__default.docs.js +0 -70
  133. package/lib/Avatar/docs/Avatar__custom.docs.js +0 -87
  134. package/lib/Avatar/docs/Avatar__default.docs.js +0 -83
  135. package/lib/Avatar/docs/Avatar__palette.docs.js +0 -107
  136. package/lib/Avatar/docs/Avatar__text.docs.js +0 -86
  137. package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +0 -124
  138. package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +0 -82
  139. package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +0 -101
  140. package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +0 -100
  141. package/lib/Button/docs/Button__custom.docs.js +0 -826
  142. package/lib/Button/docs/Button__default.docs.js +0 -590
  143. package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +0 -89
  144. package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +0 -85
  145. package/lib/Buttongroup/docs/Buttongroup__header.docs.js +0 -98
  146. package/lib/Card/docs/Card__Custom.docs.js +0 -90
  147. package/lib/Card/docs/Card__Default.docs.js +0 -92
  148. package/lib/Card/docs/Card__Scroll.docs.js +0 -114
  149. package/lib/CheckBox/docs/CheckBox__custom.docs.js +0 -348
  150. package/lib/CheckBox/docs/CheckBox__default.docs.js +0 -273
  151. package/lib/DateTime/docs/DateTime__default.docs.js +0 -142
  152. package/lib/DateTime/docs/DateWidget__default.docs.js +0 -240
  153. package/lib/DateTime/docs/timezonedata.json +0 -1
  154. package/lib/DropBox/docs/DropBox__custom.docs.js +0 -122
  155. package/lib/DropBox/docs/DropBox__customOrder.docs.js +0 -141
  156. package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +0 -140
  157. package/lib/DropBox/docs/DropBox__position.docs.js +0 -142
  158. package/lib/DropBox/docs/DropBox__size.docs.js +0 -116
  159. package/lib/DropDown/docs/DropDownHeading__custom.docs.js +0 -73
  160. package/lib/DropDown/docs/DropDownHeading__default.docs.js +0 -70
  161. package/lib/Label/docs/Label__clipped.docs.js +0 -81
  162. package/lib/Label/docs/Label__custom.docs.js +0 -85
  163. package/lib/Label/docs/Label__palette.docs.js +0 -96
  164. package/lib/Label/docs/Label__size.docs.js +0 -83
  165. package/lib/Label/docs/Label__type.docs.js +0 -91
  166. package/lib/Layout/docs/Layout__Hidden.docs.js +0 -127
  167. package/lib/Layout/docs/Layout__default.docs.js +0 -98
  168. package/lib/Layout/docs/Layout__four_Column.docs.js +0 -135
  169. package/lib/Layout/docs/Layout__three_Column.docs.js +0 -126
  170. package/lib/Layout/docs/Layout__two_Column.docs.js +0 -119
  171. package/lib/LightNightMode/docs/AlternativeColors.docs.js +0 -131
  172. package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +0 -206
  173. package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +0 -162
  174. package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +0 -142
  175. package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +0 -115
  176. package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +0 -119
  177. package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +0 -112
  178. package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +0 -142
  179. package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +0 -115
  180. package/lib/ListItem/docs/ListItem__custom.docs.js +0 -164
  181. package/lib/ListItem/docs/ListItem__default.docs.js +0 -131
  182. package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +0 -177
  183. package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +0 -165
  184. package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +0 -191
  185. package/lib/MultiSelect/docs/MultiSelect__default.docs.js +0 -214
  186. package/lib/PopOver/docs/PopOver__default.docs.js +0 -86
  187. package/lib/Provider/docs/Provider_Id__Class.docs.js +0 -77
  188. package/lib/Provider/docs/Provider_Id__Function.docs.js +0 -29
  189. package/lib/Provider/docs/Provider_Zindex__Class.docs.js +0 -80
  190. package/lib/Provider/docs/Provider_Zindex__Function.docs.js +0 -34
  191. package/lib/Radio/docs/Radio__custom.docs.js +0 -299
  192. package/lib/Radio/docs/Radio__default.docs.js +0 -222
  193. package/lib/Responsive/docs/Responsive__Custom.docs.js +0 -272
  194. package/lib/Responsive/docs/Responsive__default.docs.js +0 -142
  195. package/lib/Responsive/docs/style.module.css +0 -56
  196. package/lib/Ribbon/docs/Ribbon__custom.docs.js +0 -437
  197. package/lib/Ribbon/docs/Ribbon__default.docs.js +0 -392
  198. package/lib/RippleEffect/docs/RippleEffect__default.docs.js +0 -484
  199. package/lib/Select/docs/GroupSelect__default.docs.js +0 -199
  200. package/lib/Select/docs/SelectWithAvatar__default.docs.js +0 -152
  201. package/lib/Select/docs/SelectWithIcon__default.docs.js +0 -190
  202. package/lib/Select/docs/Select__default.docs.js +0 -340
  203. package/lib/Stencils/docs/Stencils__custom.docs.js +0 -96
  204. package/lib/Stencils/docs/Stencils__default.docs.js +0 -101
  205. package/lib/Switch/docs/Switch__custom.docs.js +0 -203
  206. package/lib/Switch/docs/Switch__default.docs.js +0 -156
  207. package/lib/Tab/docs/Tab__default.docs.js +0 -308
  208. package/lib/Tab/docs/tabdocs.module.css +0 -29
  209. package/lib/Tag/docs/Tag__custom.docs.js +0 -423
  210. package/lib/Tag/docs/Tag__default.docs.js +0 -307
  211. package/lib/TextBox/docs/TextBox__custom.docs.js +0 -98
  212. package/lib/TextBox/docs/TextBox__default.docs.js +0 -95
  213. package/lib/TextBox/docs/TextBox__size.docs.js +0 -93
  214. package/lib/TextBox/docs/TextBox__variant.docs.js +0 -93
  215. package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +0 -145
  216. package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +0 -117
  217. package/lib/Textarea/docs/Textarea__animated.docs.js +0 -95
  218. package/lib/Textarea/docs/Textarea__custom.docs.js +0 -137
  219. package/lib/Textarea/docs/Textarea__default.docs.js +0 -130
  220. package/lib/Textarea/docs/Textarea__disabled.docs.js +0 -83
  221. package/lib/Tooltip/docs/Tooltip__default.docs.js +0 -391
  222. package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +0 -150
  223. package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +0 -206
  224. package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +0 -191
  225. package/lib/beta/FocusRing/docs/FocusRing__default.docs.js +0 -101
  226. package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +0 -145
  227. package/lib/semantic/Button/docs/Button__default.docs.js +0 -66
  228. package/preprocess/componentAppearanceColors.js +0 -67
  229. package/preprocess/componentThemeColors.js +0 -123
  230. package/preprocess/ctaThemeColors.js +0 -101
  231. package/preprocess/index.js +0 -3
  232. package/preprocess/json/componentAppearanceVariableJson.js +0 -1346
  233. package/preprocess/json/componentThemeVariableJson.js +0 -242
  234. package/preprocess/json/ctaThemeVariableJson.js +0 -203
@@ -1,161 +0,0 @@
1
- /**** Libraries ****/
2
- import React, { Component } from 'react';
3
- import CodeExtract from '@zohodesk/docstool/lib/CodeExtractor/CodeExtractor';
4
- import { Container } from '../../Layout';
5
- import Icon from '@zohodesk/icons/lib/Icon';
6
- /**** Components ****/
7
-
8
- import MultiSelect from '../MultiSelect';
9
- export default class MultiSelect__default extends Component {
10
- constructor(props) {
11
- super(props);
12
- this.state = {
13
- options: ['text1', 'text2', 'text3', 'text4', 'text5', 'text6', 'text7', 'text8', 'text9', 'text10'],
14
- selectedOptions: ['text1', 'text2', 'text3']
15
- };
16
- this.handleSelect = this.handleSelect.bind(this);
17
- this.getFooter = this.getFooter.bind(this);
18
- }
19
-
20
- handleSelect(options) {
21
- this.setState({
22
- selectedOptions: options
23
- });
24
- }
25
-
26
- getFooter() {
27
- return /*#__PURE__*/React.createElement("div", null, "Custom Footer");
28
- }
29
-
30
- render() {
31
- const {
32
- selectedOptions,
33
- options
34
- } = this.state;
35
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CodeExtract, null, /*#__PURE__*/React.createElement("div", null, "Default"), /*#__PURE__*/React.createElement(MultiSelect, {
36
- valueField: "id",
37
- textField: "text",
38
- options: options,
39
- onChange: this.handleSelect,
40
- selectedOptions: selectedOptions,
41
- needSelectAll: true,
42
- selectAllText: "Select All",
43
- placeHolder: "Select Text",
44
- i18nKeys: {
45
- clearText: 'Clear Selected Items',
46
- loadingText: 'Fetching...',
47
- emptyText: 'No Options .',
48
- noMoreText: 'No More Options .',
49
- searchEmptyText: 'No Matches Found .'
50
- }
51
- }), /*#__PURE__*/React.createElement("div", null, "Disabled"), /*#__PURE__*/React.createElement(MultiSelect, {
52
- isDisabled: true,
53
- valueField: "id",
54
- textField: "text",
55
- options: options,
56
- onChange: this.handleSelect,
57
- selectedOptions: selectedOptions,
58
- needSelectAll: true,
59
- selectAllText: "Select All",
60
- placeHolder: "Select Text",
61
- emptyMessage: "No Options",
62
- noMoreOptionsMessage: "No More Options",
63
- searchEmptyMessage: "No Matches Found"
64
- }), /*#__PURE__*/React.createElement("div", null, "Readonly"), /*#__PURE__*/React.createElement(MultiSelect, {
65
- isReadOnly: true,
66
- valueField: "id",
67
- textField: "text",
68
- options: options,
69
- onChange: this.handleSelect,
70
- selectedOptions: selectedOptions,
71
- needSelectAll: true,
72
- selectAllText: "Select All",
73
- placeHolder: "Select Text",
74
- emptyMessage: "No Options",
75
- noMoreOptionsMessage: "No More Options",
76
- searchEmptyMessage: "No Matches Found"
77
- }), /*#__PURE__*/React.createElement("div", null, "disableAction"), /*#__PURE__*/React.createElement(MultiSelect, {
78
- valueField: "id",
79
- textField: "text",
80
- options: options,
81
- onChange: this.handleSelect,
82
- selectedOptions: selectedOptions,
83
- needSelectAll: true,
84
- selectAllText: "Select All",
85
- placeHolder: "Select Text",
86
- emptyMessage: "No Options",
87
- noMoreOptionsMessage: "No More Options",
88
- searchEmptyMessage: "No Matches Found",
89
- needBorder: false,
90
- disableAction: true
91
- }), /*#__PURE__*/React.createElement("div", null, "Children"), /*#__PURE__*/React.createElement(MultiSelect, {
92
- valueField: "id",
93
- textField: "text",
94
- options: options,
95
- onChange: this.handleSelect,
96
- selectedOptions: selectedOptions,
97
- needSelectAll: true,
98
- selectAllText: "Select All",
99
- placeHolder: "Select Text",
100
- i18nKeys: {
101
- clearText: 'Clear Selected Items',
102
- loadingText: 'Fetching...',
103
- emptyText: 'No Options .',
104
- noMoreText: 'No More Options .',
105
- searchEmptyText: 'No Matches Found .'
106
- }
107
- }, /*#__PURE__*/React.createElement(Container, {
108
- align: "both",
109
- style: {
110
- marginRight: '15px'
111
- }
112
- }, /*#__PURE__*/React.createElement(Icon, {
113
- name: "ZD-SE-setpracket",
114
- size: "18"
115
- }))), /*#__PURE__*/React.createElement("div", null, "Disabled Options"), /*#__PURE__*/React.createElement(MultiSelect, {
116
- valueField: "id",
117
- textField: "text",
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
- disabledOptions: ['text2', 'text3']
132
- }), /*#__PURE__*/React.createElement("div", null, "Custom Footer"), /*#__PURE__*/React.createElement(MultiSelect, {
133
- valueField: "id",
134
- textField: "text",
135
- options: options,
136
- onChange: this.handleSelect,
137
- selectedOptions: selectedOptions,
138
- needSelectAll: true,
139
- selectAllText: "Select All",
140
- placeHolder: "Select Text",
141
- i18nKeys: {
142
- clearText: 'Clear Selected Items',
143
- loadingText: 'Fetching...',
144
- emptyText: 'No Options .',
145
- noMoreText: 'No More Options .',
146
- searchEmptyText: 'No Matches Found .'
147
- },
148
- getFooter: this.getFooter
149
- })));
150
- }
151
-
152
- }
153
-
154
- if (false) {
155
- MultiSelect__default.docs = {
156
- componentGroup: 'Form Elements',
157
- folderName: 'Style Guide',
158
- external: true,
159
- description: ' '
160
- };
161
- }
@@ -1,32 +0,0 @@
1
- import React from 'react';
2
- import PopOver, { PopOverTarget, PopOverContainer } from '../PopOver';
3
- import CodeExtract from '@zohodesk/docstool/lib/CodeExtractor/CodeExtractor';
4
- export default class PopOver__default extends React.Component {
5
- render() {
6
- return /*#__PURE__*/React.createElement("span", {
7
- style: {
8
- width: '200px',
9
- display: 'inline-block'
10
- },
11
- className: 'popParent'
12
- }, /*#__PURE__*/React.createElement(PopOver, {
13
- isArrow: true,
14
- isAnimate: true,
15
- boxPosition: "bottomRight"
16
- }, /*#__PURE__*/React.createElement(PopOverTarget, null, " Click Me! "), /*#__PURE__*/React.createElement(PopOverContainer, null, /*#__PURE__*/React.createElement("div", {
17
- style: {
18
- padding: '20px'
19
- }
20
- }, "Content"), ' ')));
21
- }
22
-
23
- }
24
-
25
- if (false) {
26
- PopOver__default.docs = {
27
- componentGroup: 'Form Elements',
28
- folderName: 'Style Guide',
29
- description: ' ',
30
- external: true
31
- };
32
- }
@@ -1,29 +0,0 @@
1
- import React from 'react';
2
- import { getUniqueId, setGlobalIdPrefix } from '../IdProvider';
3
- export default class Provider_Id__Class extends React.Component {
4
- constructor(props) {
5
- super(props);
6
- setGlobalIdPrefix('zohodesk');
7
- this.getNextId = getUniqueId(this);
8
- }
9
-
10
- render() {
11
- let id = this.getNextId();
12
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
13
- id: id
14
- }, "Id ", id), /*#__PURE__*/React.createElement("div", {
15
- id: id
16
- }, "Id ", id));
17
- }
18
-
19
- }
20
-
21
- if (false) {
22
- Provider_Id__Class.docs = {
23
- componentGroup: 'Provider',
24
- folderName: 'Functions'
25
- };
26
- } // setGlobalIdPrefix => to set prefix for all id
27
- // removeGlobalIdPrefix => remove prfeix
28
- // useUniqueId => for function components
29
- // getUniqueId => for class components
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import { useUniqueId } from '../IdProvider';
3
- export default function Provider_Id__Function() {
4
- let getNextId = useUniqueId();
5
- let id = getNextId();
6
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
7
- id: id
8
- }, "Id ", id), /*#__PURE__*/React.createElement("div", {
9
- id: id
10
- }, "Id ", id));
11
- }
12
-
13
- if (false) {
14
- Provider_Id__Function.docs = {
15
- componentGroup: 'Provider',
16
- folderName: 'Functions'
17
- };
18
- }
@@ -1,32 +0,0 @@
1
- import React from 'react';
2
- import { getZIndex, setInitialZIndex } from '../ZindexProvider';
3
- export default class Provider_Zindex__Class extends React.Component {
4
- constructor(props) {
5
- super(props);
6
- setInitialZIndex('1000');
7
- this.getNextId = getZIndex(this);
8
- }
9
-
10
- render() {
11
- let zIndex = this.getNextId();
12
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
13
- style: {
14
- zIndex: `${zIndex}`
15
- }
16
- }, "Zindex ", zIndex), /*#__PURE__*/React.createElement("div", {
17
- style: {
18
- zIndex: `${zIndex}`
19
- }
20
- }, "Zindex ", zIndex));
21
- }
22
-
23
- }
24
-
25
- if (false) {
26
- Provider_Zindex__Class.docs = {
27
- componentGroup: 'Provider',
28
- folderName: 'Functions'
29
- };
30
- } // setGlobalZIndexPrefix
31
- // useZIndex
32
- // getZIndex
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- import { useZIndex } from '../ZindexProvider';
3
- export default function Provider_Zindex__Function() {
4
- let getNextId = useZIndex();
5
- let Zindex = getNextId();
6
- let Zindex2 = getNextId();
7
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
8
- style: {
9
- 'zIndex': `${Zindex}`
10
- }
11
- }, "Zindex ", Zindex), /*#__PURE__*/React.createElement("div", {
12
- style: {
13
- 'zIndex': `${Zindex2}`
14
- }
15
- }, "Zindex ", Zindex2));
16
- }
17
-
18
- if (false) {
19
- Provider_Zindex__Function.docs = {
20
- componentGroup: 'Provider',
21
- folderName: 'Functions'
22
- };
23
- }
@@ -1,245 +0,0 @@
1
- import React, { Component } from 'react';
2
- import Radio from '../Radio';
3
- import styles from '../../common/docStyle.module.css';
4
- export default class Radio__custom extends Component {
5
- constructor(props) {
6
- super(props);
7
- this.onChange = this.onChange.bind(this);
8
- this.state = {
9
- checked: false
10
- };
11
- }
12
-
13
- onChange() {
14
- this.setState({
15
- checked: !this.state.checked
16
- });
17
- }
18
-
19
- render() {
20
- let style = {
21
- margin: '10px'
22
- },
23
- titleStyle = {
24
- fontSize: '13px',
25
- padding: '15px 0',
26
- textTransform: 'upperCase',
27
- borderTop: '1px solid #e3e6eb'
28
- },
29
- spanStyle = {
30
- display: 'inline-block',
31
- margin: '10px 10px 10px 0'
32
- };
33
- return /*#__PURE__*/React.createElement("div", {
34
- style: style
35
- }, /*#__PURE__*/React.createElement("div", {
36
- style: {
37
- margin: '10px 0'
38
- }
39
- }, /*#__PURE__*/React.createElement("div", {
40
- style: {
41
- marginBottom: '10px'
42
- }
43
- }, /*#__PURE__*/React.createElement("div", {
44
- style: titleStyle
45
- }, "Default Radio Button"), /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Radio, {
46
- customClass: {
47
- customRadio: styles.radio,
48
- customRadioWrap: styles.radioWrap,
49
- customLabel: styles.customLbl
50
- },
51
- onChange: this.onChange,
52
- checked: this.state.checked
53
- })))), /*#__PURE__*/React.createElement("div", {
54
- style: {
55
- marginBottom: '10px'
56
- }
57
- }, /*#__PURE__*/React.createElement("div", {
58
- style: titleStyle
59
- }, "Disabled Type Radio Button"), /*#__PURE__*/React.createElement("span", {
60
- style: {
61
- marginRight: '10px'
62
- }
63
- }, /*#__PURE__*/React.createElement(Radio, {
64
- customClass: {
65
- customRadio: styles.radioDisabled,
66
- customRadioWrap: styles.radioWrap,
67
- customLabel: styles.customLbl
68
- },
69
- checked: true,
70
- disabled: true
71
- })), /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Radio, {
72
- customClass: {
73
- customRadio: styles.radioDisabled,
74
- customRadioWrap: styles.radioWrap,
75
- customLabel: styles.customLbl
76
- },
77
- disabled: true
78
- }))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
79
- style: titleStyle
80
- }, "Label With Radio Button"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
81
- style: spanStyle
82
- }, /*#__PURE__*/React.createElement(Radio, {
83
- customClass: {
84
- customRadio: styles.radio,
85
- customRadioWrap: styles.radioWrap,
86
- customLabel: styles.customLbl
87
- },
88
- id: "text1",
89
- value: "1",
90
- name: "category",
91
- text: "Check With Label"
92
- })), /*#__PURE__*/React.createElement("span", {
93
- style: spanStyle
94
- }, /*#__PURE__*/React.createElement(Radio, {
95
- customClass: {
96
- customRadio: styles.radio,
97
- customRadioWrap: styles.radioWrap,
98
- customLabel: styles.customLbl
99
- },
100
- id: "test2",
101
- checked: true,
102
- active: true,
103
- value: "2",
104
- name: "category",
105
- text: "Checked Active With Label"
106
- })), /*#__PURE__*/React.createElement("span", {
107
- style: spanStyle
108
- }, /*#__PURE__*/React.createElement(Radio, {
109
- customClass: {
110
- customRadio: styles.radioDisabled,
111
- customRadioWrap: styles.radioWrap,
112
- customLabel: styles.disabledLabel
113
- },
114
- id: "text3",
115
- value: "1",
116
- name: "name",
117
- checked: true,
118
- disabled: true,
119
- text: "Disabled With Label"
120
- })), /*#__PURE__*/React.createElement("span", {
121
- style: spanStyle
122
- }, /*#__PURE__*/React.createElement(Radio, {
123
- customClass: {
124
- customRadio: styles.radio,
125
- customRadioWrap: styles.radioWrap,
126
- customLabel: styles.customLbl
127
- },
128
- id: "test4",
129
- value: "2",
130
- name: "name",
131
- isReadOnly: true,
132
- text: "ReadOnly With Label"
133
- }))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
134
- style: spanStyle
135
- }, /*#__PURE__*/React.createElement(Radio, {
136
- customClass: {
137
- customRadio: styles.radio,
138
- customRadioWrap: styles.radioWrap,
139
- customLabel: styles.customLbl
140
- },
141
- id: "text1",
142
- value: "1",
143
- name: "category",
144
- text: "Check With Label",
145
- palette: "danger"
146
- })), /*#__PURE__*/React.createElement("span", {
147
- style: spanStyle
148
- }, /*#__PURE__*/React.createElement(Radio, {
149
- customClass: {
150
- customRadio: styles.radio,
151
- customRadioWrap: styles.radioWrap,
152
- customLabel: styles.customLbl
153
- },
154
- id: "test2",
155
- checked: true,
156
- active: true,
157
- value: "2",
158
- name: "category",
159
- palette: "danger",
160
- text: "Checked Active With Label"
161
- })), /*#__PURE__*/React.createElement("span", {
162
- style: spanStyle
163
- }, /*#__PURE__*/React.createElement(Radio, {
164
- customClass: {
165
- customRadio: styles.radioDisabled,
166
- customRadioWrap: styles.radioWrap,
167
- customLabel: styles.disabledLabel
168
- },
169
- id: "text3",
170
- value: "1",
171
- name: "name",
172
- checked: true,
173
- disabled: true,
174
- palette: "danger",
175
- text: "Disabled With Label"
176
- })), /*#__PURE__*/React.createElement("span", {
177
- style: spanStyle
178
- }, /*#__PURE__*/React.createElement(Radio, {
179
- customClass: {
180
- customRadio: styles.radio,
181
- customRadioWrap: styles.radioWrap,
182
- customLabel: styles.customLbl
183
- },
184
- id: "test4",
185
- value: "2",
186
- name: "name",
187
- isReadOnly: true,
188
- palette: "danger",
189
- text: "ReadOnly With Label"
190
- })))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
191
- style: titleStyle
192
- }, "Size"), /*#__PURE__*/React.createElement("span", {
193
- style: spanStyle
194
- }, /*#__PURE__*/React.createElement(Radio, {
195
- customClass: {
196
- customRadio: styles.radio,
197
- customRadioWrap: styles.radioWrap,
198
- customLabel: styles.customLbl
199
- },
200
- checked: true,
201
- size: "small"
202
- })), /*#__PURE__*/React.createElement("span", {
203
- style: spanStyle
204
- }, /*#__PURE__*/React.createElement(Radio, {
205
- customClass: {
206
- customRadio: styles.radio,
207
- customRadioWrap: styles.radioWrap,
208
- customLabel: styles.customLbl
209
- },
210
- checked: true
211
- }))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
212
- style: titleStyle
213
- }, "Palette"), /*#__PURE__*/React.createElement("span", {
214
- style: spanStyle
215
- }, /*#__PURE__*/React.createElement(Radio, {
216
- customClass: {
217
- customRadio: styles.radio,
218
- customRadioWrap: styles.radioWrap,
219
- customLabel: styles.customLbl
220
- },
221
- checked: true,
222
- text: "Primary"
223
- })), /*#__PURE__*/React.createElement("span", {
224
- style: spanStyle
225
- }, /*#__PURE__*/React.createElement(Radio, {
226
- customClass: {
227
- customRadio: styles.radio,
228
- customRadioWrap: styles.radioWrap,
229
- customLabel: styles.customLbl
230
- },
231
- checked: true,
232
- palette: "danger",
233
- text: "Danger"
234
- }))));
235
- }
236
-
237
- }
238
-
239
- if (false) {
240
- Radio__custom.docs = {
241
- componentGroup: 'Form Elements',
242
- folderName: 'Style Guide',
243
- description: ' '
244
- };
245
- }