@zohodesk/components 1.0.0-temp-169 → 1.0.0-temp-171

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 (216) hide show
  1. package/.cli/PropLessFiles.html +1 -1
  2. package/.cli/PropValidationExcludeFilesArray.js +1 -13
  3. package/.cli/propValidation_report.html +1 -1
  4. package/README.md +19 -0
  5. package/assets/Appearance/dark/mode/Component_DarkMode.module.css +1 -0
  6. package/assets/Appearance/light/mode/Component_LightMode.module.css +1 -0
  7. package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +1 -0
  8. package/coverage/Avatar/Avatar.js.html +649 -0
  9. package/coverage/Avatar/Avatar.module.css.html +556 -0
  10. package/coverage/Avatar/index.html +131 -0
  11. package/coverage/Avatar/props/defaultProps.js.html +136 -0
  12. package/coverage/Avatar/props/index.html +131 -0
  13. package/coverage/Avatar/props/propTypes.js.html +166 -0
  14. package/coverage/AvatarTeam/AvatarTeam.js.html +340 -0
  15. package/coverage/AvatarTeam/AvatarTeam.module.css.html +610 -0
  16. package/coverage/AvatarTeam/index.html +131 -0
  17. package/coverage/AvatarTeam/props/defaultProps.js.html +136 -0
  18. package/coverage/AvatarTeam/props/index.html +131 -0
  19. package/coverage/AvatarTeam/props/propTypes.js.html +169 -0
  20. package/coverage/Button/Button.js.html +1 -1
  21. package/coverage/Button/css/Button.module.css.html +1 -1
  22. package/coverage/Button/css/cssJSLogic.js.html +1 -1
  23. package/coverage/Button/css/index.html +1 -1
  24. package/coverage/Button/index.html +1 -1
  25. package/coverage/Button/props/defaultProps.js.html +1 -1
  26. package/coverage/Button/props/index.html +1 -1
  27. package/coverage/Button/props/propTypes.js.html +1 -1
  28. package/coverage/Buttongroup/Buttongroup.js.html +1 -1
  29. package/coverage/Buttongroup/Buttongroup.module.css.html +1 -1
  30. package/coverage/Buttongroup/index.html +1 -1
  31. package/coverage/Buttongroup/props/defaultProps.js.html +1 -1
  32. package/coverage/Buttongroup/props/index.html +1 -1
  33. package/coverage/Buttongroup/props/propTypes.js.html +1 -1
  34. package/coverage/Label/Label.js.html +253 -0
  35. package/coverage/Label/Label.module.css.html +241 -0
  36. package/coverage/Label/LabelColors.module.css.html +145 -0
  37. package/coverage/Label/index.html +146 -0
  38. package/coverage/Label/props/defaultProps.js.html +118 -0
  39. package/coverage/Label/props/index.html +131 -0
  40. package/coverage/Label/props/propTypes.js.html +145 -0
  41. package/coverage/Layout/Box.js.html +367 -0
  42. package/coverage/Layout/Container.js.html +439 -0
  43. package/coverage/Layout/Layout.module.css.html +1090 -0
  44. package/coverage/Layout/index.html +176 -0
  45. package/coverage/Layout/index.js.html +118 -0
  46. package/coverage/Layout/props/defaultProps.js.html +136 -0
  47. package/coverage/Layout/props/index.html +131 -0
  48. package/coverage/Layout/props/propTypes.js.html +262 -0
  49. package/coverage/Layout/utils.js.html +199 -0
  50. package/coverage/Provider/AvatarSize.js.html +124 -0
  51. package/coverage/Provider/CssProvider.js.html +133 -0
  52. package/coverage/Provider/index.html +131 -0
  53. package/coverage/Radio/Radio.js.html +415 -0
  54. package/coverage/Radio/Radio.module.css.html +403 -0
  55. package/coverage/Radio/index.html +131 -0
  56. package/coverage/Radio/props/defaultProps.js.html +127 -0
  57. package/coverage/Radio/props/index.html +131 -0
  58. package/coverage/Radio/props/propTypes.js.html +187 -0
  59. package/coverage/Ribbon/Ribbon.js.html +229 -0
  60. package/coverage/Ribbon/Ribbon.module.css.html +1210 -0
  61. package/coverage/Ribbon/index.html +131 -0
  62. package/coverage/Ribbon/props/defaultProps.js.html +112 -0
  63. package/coverage/Ribbon/props/index.html +131 -0
  64. package/coverage/Ribbon/props/propTypes.js.html +121 -0
  65. package/coverage/RippleEffect/RippleEffect.js.html +172 -0
  66. package/coverage/RippleEffect/RippleEffect.module.css.html +415 -0
  67. package/coverage/RippleEffect/index.html +131 -0
  68. package/coverage/RippleEffect/props/defaultProps.js.html +112 -0
  69. package/coverage/RippleEffect/props/index.html +131 -0
  70. package/coverage/RippleEffect/props/propTypes.js.html +121 -0
  71. package/coverage/Stencils/Stencils.js.html +163 -0
  72. package/coverage/Stencils/Stencils.module.css.html +319 -0
  73. package/coverage/Stencils/index.html +131 -0
  74. package/coverage/Stencils/props/defaultProps.js.html +103 -0
  75. package/coverage/Stencils/props/index.html +131 -0
  76. package/coverage/Stencils/props/propTypes.js.html +109 -0
  77. package/coverage/Switch/Switch.js.html +379 -0
  78. package/coverage/Switch/Switch.module.css.html +481 -0
  79. package/coverage/Switch/index.html +131 -0
  80. package/coverage/Switch/props/defaultProps.js.html +118 -0
  81. package/coverage/Switch/props/index.html +131 -0
  82. package/coverage/Switch/props/propTypes.js.html +172 -0
  83. package/coverage/common/avatarsizes.module.css.html +229 -0
  84. package/coverage/common/common.module.css.html +1519 -0
  85. package/coverage/common/index.html +131 -0
  86. package/coverage/coverage-final.json +55 -10
  87. package/coverage/coverage-summary.json +56 -11
  88. package/coverage/index.html +311 -11
  89. package/coverage/utils/dummyFunction.js.html +1 -1
  90. package/coverage/utils/getInitial.js.html +139 -0
  91. package/coverage/utils/index.html +25 -10
  92. package/es/Avatar/__tests__/Avatar.spec.js +181 -0
  93. package/es/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +591 -0
  94. package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +138 -0
  95. package/es/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +704 -0
  96. package/es/DateTime/DateTime.module.css +12 -1
  97. package/es/Label/__tests__/Label.spec.js +99 -0
  98. package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +312 -0
  99. package/es/ListItem/ListContainer.js +1 -1
  100. package/es/MultiSelect/Suggestions.js +2 -1
  101. package/es/MultiSelect/props/propTypes.js +140 -138
  102. package/es/Radio/__tests__/Radio.spec.js +241 -0
  103. package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +1837 -0
  104. package/es/Ribbon/__tests__/Ribbon.spec.js +52 -0
  105. package/es/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +374 -0
  106. package/es/RippleEffect/__tests__/RippleEffect.spec.js +69 -0
  107. package/es/RippleEffect/__tests__/__snapshots__/RippleEffect.spec.js.snap +171 -0
  108. package/es/Select/Select.js +4 -3
  109. package/es/Select/props/propTypes.js +3 -1
  110. package/es/Stencils/__tests__/Stencils.spec.js +46 -0
  111. package/es/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +89 -0
  112. package/es/Switch/__tests__/Switch.spec.js +156 -0
  113. package/es/Switch/__tests__/__snapshots__/Switch.spec.js.snap +831 -0
  114. package/es/TextBox/TextBox.module.css +4 -5
  115. package/es/Textarea/Textarea.module.css +4 -3
  116. package/es/v1/AppContainer/AppContainer.js +75 -92
  117. package/es/v1/Card/Card.js +143 -177
  118. package/es/v1/Card/index.js +4 -0
  119. package/es/v1/DateTime/CalendarView.js +43 -10
  120. package/es/v1/DateTime/DateTime.js +8 -4
  121. package/es/v1/DateTime/DateTimePopupFooter.js +2 -2
  122. package/es/v1/DateTime/DateTimePopupHeader.js +1 -1
  123. package/es/v1/DateTime/DateWidget.js +8 -4
  124. package/es/v1/DateTime/DaysRow.js +1 -1
  125. package/es/v1/DateTime/Time.js +2 -2
  126. package/es/v1/DateTime/YearView.js +2 -2
  127. package/es/v1/DateTime/props/defaultProps.js +57 -0
  128. package/es/v1/DateTime/props/propTypes.js +195 -0
  129. package/es/v1/DropDown/DropDown.js +31 -52
  130. package/es/v1/DropDown/DropDownHeading.js +29 -37
  131. package/es/v1/DropDown/DropDownItem.js +38 -58
  132. package/es/v1/DropDown/DropDownSearch.js +41 -49
  133. package/es/v1/DropDown/DropDownSeparator.js +7 -10
  134. package/es/v1/ListItem/ListItemWithAvatar.js +7 -8
  135. package/es/v1/MultiSelect/MultiSelect.js +1 -0
  136. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +1 -0
  137. package/es/v1/Provider/AvatarSize.js +13 -0
  138. package/es/v1/Provider/Config.js +18 -0
  139. package/es/v1/Provider/CssProvider.js +16 -0
  140. package/es/v1/Provider/IdProvider.js +66 -0
  141. package/es/v1/Provider/LibraryContext.js +37 -0
  142. package/es/v1/Provider/LibraryContextInit.js +3 -0
  143. package/es/v1/Provider/NumberGenerator/NumberGenerator.js +136 -0
  144. package/es/v1/Provider/ZindexProvider.js +57 -0
  145. package/es/v1/Provider/index.js +4 -0
  146. package/es/v1/Tag/Tag.js +6 -2
  147. package/es/v1/TextBox/TextBox.js +10 -10
  148. package/es/v1/Typography/Typography.js +4 -4
  149. package/es/v1/Typography/css/Typography.module.css +33 -0
  150. package/es/v1/Typography/css/cssJSLogic.js +14 -8
  151. package/es/v1/Typography/props/defaultProps.js +4 -4
  152. package/es/v1/Typography/props/propTypes.js +8 -5
  153. package/lib/Avatar/__tests__/Avatar.spec.js +188 -0
  154. package/lib/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +591 -0
  155. package/lib/AvatarTeam/__tests__/AvatarTeam.spec.js +145 -0
  156. package/lib/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +704 -0
  157. package/lib/DateTime/DateTime.module.css +12 -1
  158. package/lib/Label/__tests__/Label.spec.js +106 -0
  159. package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +312 -0
  160. package/lib/ListItem/ListContainer.js +1 -1
  161. package/lib/MultiSelect/Suggestions.js +2 -1
  162. package/lib/MultiSelect/props/propTypes.js +146 -141
  163. package/lib/Radio/__tests__/Radio.spec.js +250 -0
  164. package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +1837 -0
  165. package/lib/Ribbon/__tests__/Ribbon.spec.js +59 -0
  166. package/lib/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +374 -0
  167. package/lib/RippleEffect/__tests__/RippleEffect.spec.js +76 -0
  168. package/lib/RippleEffect/__tests__/__snapshots__/RippleEffect.spec.js.snap +171 -0
  169. package/lib/Select/Select.js +4 -3
  170. package/lib/Select/props/propTypes.js +12 -2
  171. package/lib/Stencils/__tests__/Stencils.spec.js +53 -0
  172. package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +89 -0
  173. package/lib/Switch/__tests__/Switch.spec.js +163 -0
  174. package/lib/Switch/__tests__/__snapshots__/Switch.spec.js.snap +831 -0
  175. package/lib/TextBox/TextBox.module.css +4 -5
  176. package/lib/Textarea/Textarea.module.css +4 -3
  177. package/lib/v1/AppContainer/AppContainer.js +87 -138
  178. package/lib/v1/Card/Card.js +190 -286
  179. package/lib/v1/Card/index.js +37 -0
  180. package/lib/v1/DateTime/CalendarView.js +44 -10
  181. package/lib/v1/DateTime/DateTime.js +8 -4
  182. package/lib/v1/DateTime/DateTimePopupFooter.js +2 -2
  183. package/lib/v1/DateTime/DateTimePopupHeader.js +1 -1
  184. package/lib/v1/DateTime/DateWidget.js +8 -4
  185. package/lib/v1/DateTime/DaysRow.js +1 -1
  186. package/lib/v1/DateTime/Time.js +2 -2
  187. package/lib/v1/DateTime/YearView.js +2 -2
  188. package/lib/v1/DateTime/props/defaultProps.js +70 -0
  189. package/lib/v1/DateTime/props/propTypes.js +227 -0
  190. package/lib/v1/DropDown/DropDown.js +34 -130
  191. package/lib/v1/DropDown/DropDownHeading.js +29 -75
  192. package/lib/v1/DropDown/DropDownItem.js +50 -102
  193. package/lib/v1/DropDown/DropDownSearch.js +50 -89
  194. package/lib/v1/DropDown/DropDownSeparator.js +8 -48
  195. package/lib/v1/ListItem/ListItemWithAvatar.js +14 -9
  196. package/lib/v1/MultiSelect/MultiSelect.js +3 -1
  197. package/lib/v1/MultiSelect/MultiSelectWithAvatar.js +3 -1
  198. package/lib/v1/Provider/AvatarSize.js +24 -0
  199. package/lib/v1/Provider/Config.js +27 -0
  200. package/lib/v1/Provider/CssProvider.js +27 -0
  201. package/lib/v1/Provider/IdProvider.js +79 -0
  202. package/lib/v1/Provider/LibraryContext.js +76 -0
  203. package/lib/v1/Provider/LibraryContextInit.js +15 -0
  204. package/lib/v1/Provider/NumberGenerator/NumberGenerator.js +174 -0
  205. package/lib/v1/Provider/ZindexProvider.js +69 -0
  206. package/lib/v1/Provider/index.js +81 -0
  207. package/lib/v1/Tag/Tag.js +7 -4
  208. package/lib/v1/TextBox/TextBox.js +8 -9
  209. package/lib/v1/Typography/Typography.js +3 -3
  210. package/lib/v1/Typography/css/Typography.module.css +33 -0
  211. package/lib/v1/Typography/css/cssJSLogic.js +8 -5
  212. package/lib/v1/Typography/props/defaultProps.js +4 -4
  213. package/lib/v1/Typography/props/propTypes.js +8 -5
  214. package/package.json +11 -11
  215. package/result.json +1 -1
  216. package/unittest/index.html +1 -1
@@ -0,0 +1,46 @@
1
+ import React from 'react';
2
+ import { render } from '@testing-library/react';
3
+ import Stencils from '../Stencils.js';
4
+ describe('Stencils', () => {
5
+ test('rendering the defult props', () => {
6
+ const {
7
+ asFragment
8
+ } = render( /*#__PURE__*/React.createElement(Stencils, null));
9
+ expect(asFragment()).toMatchSnapshot();
10
+ });
11
+ const palette = ['primary', 'secondary', 'dark'];
12
+ test.each(palette)('rendering the palette of- %s', palette => {
13
+ const {
14
+ asFragment
15
+ } = render( /*#__PURE__*/React.createElement(Stencils, {
16
+ palette: palette
17
+ }));
18
+ expect(asFragment()).toMatchSnapshot();
19
+ });
20
+ const shape = ['rect', 'circle'];
21
+ test.each(shape)('rendering the shape of- %s', shape => {
22
+ const {
23
+ asFragment
24
+ } = render( /*#__PURE__*/React.createElement(Stencils, {
25
+ shape: shape
26
+ }));
27
+ expect(asFragment()).toMatchSnapshot();
28
+ });
29
+ const size = ['small', 'medium', 'large', 'default'];
30
+ test.each(size)('rendering the size of- %s', size => {
31
+ const {
32
+ asFragment
33
+ } = render( /*#__PURE__*/React.createElement(Stencils, {
34
+ size: size
35
+ }));
36
+ expect(asFragment()).toMatchSnapshot();
37
+ });
38
+ test('rendering the customClass', () => {
39
+ const {
40
+ asFragment
41
+ } = render( /*#__PURE__*/React.createElement(Stencils, {
42
+ customClass: "StencilsCustomClass"
43
+ }));
44
+ expect(asFragment()).toMatchSnapshot();
45
+ });
46
+ });
@@ -0,0 +1,89 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Stencils rendering the customClass 1`] = `
4
+ <DocumentFragment>
5
+ <div
6
+ class="container rectangular medium primary StencilsCustomClass"
7
+ />
8
+ </DocumentFragment>
9
+ `;
10
+
11
+ exports[`Stencils rendering the defult props 1`] = `
12
+ <DocumentFragment>
13
+ <div
14
+ class="container rectangular medium primary "
15
+ />
16
+ </DocumentFragment>
17
+ `;
18
+
19
+ exports[`Stencils rendering the palette of- dark 1`] = `
20
+ <DocumentFragment>
21
+ <div
22
+ class="container rectangular medium dark "
23
+ />
24
+ </DocumentFragment>
25
+ `;
26
+
27
+ exports[`Stencils rendering the palette of- primary 1`] = `
28
+ <DocumentFragment>
29
+ <div
30
+ class="container rectangular medium primary "
31
+ />
32
+ </DocumentFragment>
33
+ `;
34
+
35
+ exports[`Stencils rendering the palette of- secondary 1`] = `
36
+ <DocumentFragment>
37
+ <div
38
+ class="container rectangular medium secondary "
39
+ />
40
+ </DocumentFragment>
41
+ `;
42
+
43
+ exports[`Stencils rendering the shape of- circle 1`] = `
44
+ <DocumentFragment>
45
+ <div
46
+ class="container circle cmedium primary "
47
+ />
48
+ </DocumentFragment>
49
+ `;
50
+
51
+ exports[`Stencils rendering the shape of- rect 1`] = `
52
+ <DocumentFragment>
53
+ <div
54
+ class="container rectangular medium primary "
55
+ />
56
+ </DocumentFragment>
57
+ `;
58
+
59
+ exports[`Stencils rendering the size of- default 1`] = `
60
+ <DocumentFragment>
61
+ <div
62
+ class="container rectangular default primary "
63
+ />
64
+ </DocumentFragment>
65
+ `;
66
+
67
+ exports[`Stencils rendering the size of- large 1`] = `
68
+ <DocumentFragment>
69
+ <div
70
+ class="container rectangular large primary "
71
+ />
72
+ </DocumentFragment>
73
+ `;
74
+
75
+ exports[`Stencils rendering the size of- medium 1`] = `
76
+ <DocumentFragment>
77
+ <div
78
+ class="container rectangular medium primary "
79
+ />
80
+ </DocumentFragment>
81
+ `;
82
+
83
+ exports[`Stencils rendering the size of- small 1`] = `
84
+ <DocumentFragment>
85
+ <div
86
+ class="container rectangular small primary "
87
+ />
88
+ </DocumentFragment>
89
+ `;
@@ -0,0 +1,156 @@
1
+ import React from 'react';
2
+ import { render } from '@testing-library/react';
3
+ import Switch from '../Switch';
4
+ describe('Switch', () => {
5
+ test('rendering the defult props', () => {
6
+ const {
7
+ asFragment
8
+ } = render( /*#__PURE__*/React.createElement(Switch, null));
9
+ expect(asFragment()).toMatchSnapshot();
10
+ });
11
+ test('rendering the checked', () => {
12
+ const {
13
+ asFragment
14
+ } = render( /*#__PURE__*/React.createElement(Switch, {
15
+ checked: true,
16
+ id: "SwitchID"
17
+ }));
18
+ expect(asFragment()).toMatchSnapshot();
19
+ });
20
+ test('rendering the dataId', () => {
21
+ const {
22
+ asFragment
23
+ } = render( /*#__PURE__*/React.createElement(Switch, {
24
+ dataId: "data-Switch",
25
+ id: "SwitchID"
26
+ }));
27
+ expect(asFragment()).toMatchSnapshot();
28
+ });
29
+ test('rendering the disabled and disableTitle', () => {
30
+ const {
31
+ asFragment
32
+ } = render( /*#__PURE__*/React.createElement(Switch, {
33
+ disabled: true,
34
+ disableTitle: "data-disableTitle",
35
+ id: "SwitchID"
36
+ }));
37
+ expect(asFragment()).toMatchSnapshot();
38
+ });
39
+ test('rendering the text', () => {
40
+ const {
41
+ asFragment
42
+ } = render( /*#__PURE__*/React.createElement(Switch, {
43
+ text: "SwitchText",
44
+ id: "SwitchID"
45
+ }));
46
+ expect(asFragment()).toMatchSnapshot();
47
+ });
48
+ test('rendering the ID', () => {
49
+ const {
50
+ asFragment
51
+ } = render( /*#__PURE__*/React.createElement(Switch, {
52
+ id: "SwitchID",
53
+ text: "SwitchText"
54
+ }));
55
+ expect(asFragment()).toMatchSnapshot();
56
+ });
57
+ test('rendering the isReadOnly', () => {
58
+ const {
59
+ asFragment
60
+ } = render( /*#__PURE__*/React.createElement(Switch, {
61
+ isReadOnly: true
62
+ }));
63
+ expect(asFragment()).toMatchSnapshot();
64
+ });
65
+ const size = ['small', 'medium'];
66
+ test.each(size)('rendering the size of- %s', size => {
67
+ const {
68
+ asFragment
69
+ } = render( /*#__PURE__*/React.createElement(Switch, {
70
+ size: size,
71
+ id: "SwitchID"
72
+ }));
73
+ expect(asFragment()).toMatchSnapshot();
74
+ });
75
+ const labelSize = ['small', 'medium', 'large'];
76
+ test.each(labelSize)('rendering the labelSize of- %s', labelSize => {
77
+ const {
78
+ asFragment
79
+ } = render( /*#__PURE__*/React.createElement(Switch, {
80
+ text: "SwitchText",
81
+ id: "SwitchID",
82
+ labelSize: labelSize
83
+ }));
84
+ expect(asFragment()).toMatchSnapshot();
85
+ });
86
+ const labelPalette = ['default', 'primary', 'secondary', 'danger', 'mandatory'];
87
+ test.each(labelPalette)('rendering the labelSize of- %s', labelPalette => {
88
+ const {
89
+ asFragment
90
+ } = render( /*#__PURE__*/React.createElement(Switch, {
91
+ text: "SwitchText",
92
+ id: "SwitchID",
93
+ labelPalette: labelPalette
94
+ }));
95
+ expect(asFragment()).toMatchSnapshot();
96
+ });
97
+ test('rendering the Name', () => {
98
+ const {
99
+ asFragment
100
+ } = render( /*#__PURE__*/React.createElement(Switch, {
101
+ name: "LabelName",
102
+ id: "SwitchID"
103
+ }));
104
+ expect(asFragment()).toMatchSnapshot();
105
+ });
106
+ test('rendering the Title', () => {
107
+ const {
108
+ asFragment
109
+ } = render( /*#__PURE__*/React.createElement(Switch, {
110
+ title: "LabelTitle",
111
+ id: "SwitchID"
112
+ }));
113
+ expect(asFragment()).toMatchSnapshot();
114
+ });
115
+ test('rendering the Value', () => {
116
+ const {
117
+ asFragment
118
+ } = render( /*#__PURE__*/React.createElement(Switch, {
119
+ value: true,
120
+ id: "SwitchID"
121
+ }));
122
+ expect(asFragment()).toMatchSnapshot();
123
+ });
124
+ test('rendering the CustomClass', () => {
125
+ const {
126
+ asFragment
127
+ } = render( /*#__PURE__*/React.createElement(Switch, {
128
+ text: "SwitchText",
129
+ id: "SwitchID",
130
+ customClass: {
131
+ customSwitchWrap: 'SwtichCustomSwitchWrap',
132
+ customSwitch: 'SwtichCustomSwitch',
133
+ customSwitchSize: 'SwtichCustomSwitchSize',
134
+ customLabel: 'SwtichCustomLabel'
135
+ }
136
+ }));
137
+ expect(asFragment()).toMatchSnapshot();
138
+ });
139
+ test('rendering the CustomProps', () => {
140
+ const {
141
+ asFragment
142
+ } = render( /*#__PURE__*/React.createElement(Switch, {
143
+ text: "SwitchText",
144
+ id: "SwitchID",
145
+ customProps: {
146
+ SwitchProps: {
147
+ 'data-switch': true
148
+ },
149
+ LabelProps: {
150
+ title: 'SwtichTitle'
151
+ }
152
+ }
153
+ }));
154
+ expect(asFragment()).toMatchSnapshot();
155
+ });
156
+ });