@zohodesk/components 1.0.0-temp-166 → 1.0.0-temp-167

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 (142) hide show
  1. package/README.md +20 -0
  2. package/assets/Appearance/dark/themes/blue/blue_ComponentTheme_DarkTheme.module.css +24 -24
  3. package/assets/Appearance/dark/themes/green/green_ComponentTheme_DarkTheme.module.css +24 -24
  4. package/assets/Appearance/dark/themes/orange/orange_ComponentTheme_DarkTheme.module.css +24 -24
  5. package/assets/Appearance/dark/themes/red/red_ComponentTheme_DarkTheme.module.css +24 -24
  6. package/assets/Appearance/dark/themes/yellow/yellow_ComponentTheme_DarkTheme.module.css +24 -24
  7. package/assets/Appearance/light/themes/blue/blue_ComponentTheme_LightTheme.module.css +24 -24
  8. package/assets/Appearance/light/themes/green/green_ComponentTheme_LightTheme.module.css +24 -24
  9. package/assets/Appearance/light/themes/orange/orange_ComponentTheme_LightTheme.module.css +24 -24
  10. package/assets/Appearance/light/themes/red/red_ComponentTheme_LightTheme.module.css +24 -24
  11. package/assets/Appearance/light/themes/yellow/yellow_ComponentTheme_LightTheme.module.css +24 -24
  12. package/assets/Appearance/pureDark/themes/blue/blue_ComponentTheme_PureDarkTheme.module.css +24 -24
  13. package/assets/Appearance/pureDark/themes/green/green_ComponentTheme_PureDarkTheme.module.css +24 -24
  14. package/assets/Appearance/pureDark/themes/orange/orange_ComponentTheme_PureDarkTheme.module.css +24 -24
  15. package/assets/Appearance/pureDark/themes/red/red_ComponentTheme_PureDarkTheme.module.css +24 -24
  16. package/assets/Appearance/pureDark/themes/yellow/yellow_ComponentTheme_PureDarkTheme.module.css +24 -24
  17. package/es/Button/__tests__/Button.spec.js +61 -0
  18. package/es/Button/__tests__/__snapshots__/Button.spec.js.snap +440 -0
  19. package/es/Buttongroup/Buttongroup.js +1 -1
  20. package/es/DateTime/DateTime.js +2 -2
  21. package/es/DropBox/DropBox.js +24 -12
  22. package/es/DropBox/props/defaultProps.js +2 -1
  23. package/es/DropBox/props/propTypes.js +2 -1
  24. package/es/ListItem/ListContainer.js +3 -2
  25. package/es/ListItem/ListItem.js +8 -3
  26. package/es/ListItem/ListItemWithAvatar.js +8 -3
  27. package/es/ListItem/ListItemWithCheckBox.js +5 -1
  28. package/es/ListItem/ListItemWithIcon.js +8 -3
  29. package/es/ListItem/ListItemWithRadio.js +5 -1
  30. package/es/MultiSelect/props/propTypes.js +1 -1
  31. package/es/Select/Select.js +2 -0
  32. package/lib/Button/__tests__/Button.spec.js +62 -0
  33. package/lib/Button/__tests__/__snapshots__/Button.spec.js.snap +440 -0
  34. package/lib/Buttongroup/Buttongroup.js +1 -1
  35. package/lib/DateTime/DateTime.js +2 -2
  36. package/lib/DropBox/DropBox.js +26 -12
  37. package/lib/DropBox/props/defaultProps.js +2 -1
  38. package/lib/DropBox/props/propTypes.js +2 -1
  39. package/lib/ListItem/ListContainer.js +4 -2
  40. package/lib/ListItem/ListItem.js +14 -3
  41. package/lib/ListItem/ListItemWithAvatar.js +14 -3
  42. package/lib/ListItem/ListItemWithCheckBox.js +12 -1
  43. package/lib/ListItem/ListItemWithIcon.js +14 -3
  44. package/lib/ListItem/ListItemWithRadio.js +12 -1
  45. package/lib/MultiSelect/props/propTypes.js +1 -1
  46. package/lib/Select/Select.js +2 -0
  47. package/package.json +21 -13
  48. package/postPublish.js +8 -0
  49. package/prePublish.js +70 -0
  50. package/result.json +1 -0
  51. package/es/Accordion/__tests__/Accordion.spec.js +0 -79
  52. package/es/Animation/__tests__/Animation.spec.js +0 -17
  53. package/es/Avatar/__tests__/Avatar.spec.js +0 -161
  54. package/es/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +0 -288
  55. package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +0 -76
  56. package/es/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +0 -226
  57. package/es/Buttongroup/__test__/Buttongroup.spec.js +0 -73
  58. package/es/Buttongroup/__test__/__snapshots__/Buttongroup.spec.js.snap +0 -146
  59. package/es/Card/__tests__/Card.spec.js +0 -36
  60. package/es/CheckBox/__tests__/CheckBox.spec.js +0 -12
  61. package/es/DateTime/__tests__/CalendarView.spec.js +0 -33
  62. package/es/DateTime/__tests__/DateTime.spec.js +0 -115
  63. package/es/DateTime/__tests__/DateWidget.spec.js +0 -75
  64. package/es/DropBox/__tests__/DropBox.spec.js +0 -81
  65. package/es/DropDown/__tests__/DropDown.spec.js +0 -44
  66. package/es/DropDown/__tests__/DropDownItem.spec.js +0 -45
  67. package/es/DropDown/__tests__/DropDownSearch.spec.js +0 -11
  68. package/es/Label/__tests__/Label.spec.js +0 -120
  69. package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +0 -101
  70. package/es/Layout/__tests__/Box.spec.js +0 -114
  71. package/es/Layout/__tests__/Container.spec.js +0 -120
  72. package/es/MultiSelect/__tests__/MultiSelect.spec.js +0 -160
  73. package/es/PopOver/__tests__/PopOver.spec.js +0 -14
  74. package/es/Popup/__tests__/Popup.spec.js +0 -134
  75. package/es/Radio/__tests__/Radiospec.js +0 -23
  76. package/es/Ribbon/__tests__/Ribbon.spec.js +0 -168
  77. package/es/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +0 -163
  78. package/es/Select/__tests__/Select.spec.js +0 -345
  79. package/es/Stencils/__tests__/Stencils.spec.js +0 -69
  80. package/es/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +0 -49
  81. package/es/Tab/__tests__/Tab.spec.js +0 -117
  82. package/es/Tab/__tests__/TabContent.spec.js +0 -16
  83. package/es/Tab/__tests__/TabContentWrapper.spec.js +0 -50
  84. package/es/Tab/__tests__/TabWrapper.spec.js +0 -86
  85. package/es/Tab/__tests__/Tabs.spec.js +0 -115
  86. package/es/Tag/__tests__/Tag.spec.js +0 -28
  87. package/es/TextBox/__tests__/TextBox.spec.js +0 -189
  88. package/es/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +0 -127
  89. package/es/TextBoxIcon/__tests__/TextBoxIcon.spec.js +0 -212
  90. package/es/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +0 -334
  91. package/es/Textarea/__tests__/Textarea.spec.js +0 -171
  92. package/es/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +0 -97
  93. package/es/Tooltip/__tests__/Tooltip.spec.js +0 -52
  94. package/es/utils/__tests__/constructFullName.spec.js +0 -9
  95. package/es/utils/__tests__/debounce.spec.js +0 -37
  96. package/es/utils/__tests__/getInitial.spec.js +0 -23
  97. package/lib/Accordion/__tests__/Accordion.spec.js +0 -85
  98. package/lib/Animation/__tests__/Animation.spec.js +0 -23
  99. package/lib/Avatar/__tests__/Avatar.spec.js +0 -208
  100. package/lib/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +0 -288
  101. package/lib/AvatarTeam/__tests__/AvatarTeam.spec.js +0 -92
  102. package/lib/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +0 -226
  103. package/lib/Buttongroup/__test__/Buttongroup.spec.js +0 -86
  104. package/lib/Buttongroup/__test__/__snapshots__/Buttongroup.spec.js.snap +0 -146
  105. package/lib/Card/__tests__/Card.spec.js +0 -56
  106. package/lib/CheckBox/__tests__/CheckBox.spec.js +0 -18
  107. package/lib/DateTime/__tests__/CalendarView.spec.js +0 -45
  108. package/lib/DateTime/__tests__/DateTime.spec.js +0 -127
  109. package/lib/DateTime/__tests__/DateWidget.spec.js +0 -81
  110. package/lib/DropBox/__tests__/DropBox.spec.js +0 -87
  111. package/lib/DropDown/__tests__/DropDown.spec.js +0 -50
  112. package/lib/DropDown/__tests__/DropDownItem.spec.js +0 -51
  113. package/lib/DropDown/__tests__/DropDownSearch.spec.js +0 -17
  114. package/lib/Label/__tests__/Label.spec.js +0 -137
  115. package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +0 -101
  116. package/lib/Layout/__tests__/Box.spec.js +0 -121
  117. package/lib/Layout/__tests__/Container.spec.js +0 -127
  118. package/lib/MultiSelect/__tests__/MultiSelect.spec.js +0 -170
  119. package/lib/PopOver/__tests__/PopOver.spec.js +0 -20
  120. package/lib/Popup/__tests__/Popup.spec.js +0 -192
  121. package/lib/Radio/__tests__/Radiospec.js +0 -29
  122. package/lib/Ribbon/__tests__/Ribbon.spec.js +0 -193
  123. package/lib/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +0 -163
  124. package/lib/Select/__tests__/Select.spec.js +0 -383
  125. package/lib/Stencils/__tests__/Stencils.spec.js +0 -84
  126. package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +0 -49
  127. package/lib/Tab/__tests__/Tab.spec.js +0 -123
  128. package/lib/Tab/__tests__/TabContent.spec.js +0 -22
  129. package/lib/Tab/__tests__/TabContentWrapper.spec.js +0 -59
  130. package/lib/Tab/__tests__/TabWrapper.spec.js +0 -100
  131. package/lib/Tab/__tests__/Tabs.spec.js +0 -123
  132. package/lib/Tag/__tests__/Tag.spec.js +0 -35
  133. package/lib/TextBox/__tests__/TextBox.spec.js +0 -205
  134. package/lib/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +0 -127
  135. package/lib/TextBoxIcon/__tests__/TextBoxIcon.spec.js +0 -228
  136. package/lib/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +0 -334
  137. package/lib/Textarea/__tests__/Textarea.spec.js +0 -186
  138. package/lib/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +0 -97
  139. package/lib/Tooltip/__tests__/Tooltip.spec.js +0 -98
  140. package/lib/utils/__tests__/constructFullName.spec.js +0 -12
  141. package/lib/utils/__tests__/debounce.spec.js +0 -40
  142. package/lib/utils/__tests__/getInitial.spec.js +0 -26
@@ -1,134 +0,0 @@
1
- /* eslint-disable no-undef */
2
-
3
- /**** Libraries ****/
4
- import React from 'react';
5
- import ReactDOM from 'react-dom';
6
- import PropTypes from 'prop-types';
7
- /**** Components ****/
8
-
9
- import Popup from '../Popup';
10
-
11
- class SamplePopup extends React.Component {
12
- constructor(props) {
13
- super(props);
14
- }
15
-
16
- render() {
17
- return /*#__PURE__*/React.createElement("div", null, "Sample Popup");
18
- }
19
-
20
- }
21
-
22
- class SamplePopupCopy extends React.Component {
23
- constructor(props) {
24
- super(props);
25
- }
26
-
27
- render() {
28
- return /*#__PURE__*/React.createElement("div", {
29
- "data-id": "samplePopup",
30
- onClick: ev => {
31
- this.props.removeClose(ev);
32
- }
33
- }, "Sample Popup");
34
- }
35
-
36
- }
37
-
38
- SamplePopupCopy.propTypes = {
39
- removeClose: PropTypes.func
40
- };
41
-
42
- class SamplePopupCopy1 extends React.Component {
43
- constructor(props) {
44
- super(props);
45
- }
46
-
47
- render() {
48
- return /*#__PURE__*/React.createElement("div", {
49
- "data-id": "samplePopup"
50
- }, "Sample Popup");
51
- }
52
-
53
- }
54
-
55
- describe('Popup component conditions', () => {
56
- it('should click same popup with removeClose', () => {
57
- let PopupWrapperComponent = Popup(SamplePopupCopy);
58
- let div = document.createElement('div');
59
- document.body.append(div);
60
- /*eslint-disable */
61
-
62
- let popupDom = ReactDOM.render( /*#__PURE__*/React.createElement(PopupWrapperComponent, null), div);
63
- /*eslint-enable */
64
-
65
- popupDom.togglePopup();
66
- expect(popupDom.state.isPopupOpen).toBeTruthy();
67
- let popupEle = TestUtils.findRenderedComponentsWithTestid(popupDom, 'samplePopup');
68
- popupEle.click();
69
- expect(popupDom.state.isPopupOpen).toBeTruthy();
70
- });
71
- it('should open popup and close popup', () => {
72
- let PopupWrapperComponent = Popup(SamplePopup);
73
- let popupDom = TestUtils.renderIntoDocument( /*#__PURE__*/React.createElement(PopupWrapperComponent, null));
74
- popupDom.openPopupOnly();
75
- expect(popupDom.state.isPopupOpen).toBeTruthy();
76
- popupDom.closePopupOnly();
77
- expect(popupDom.state.isPopupOpen).toBeFalsy();
78
- });
79
- it('should close another popup already one opened', () => {
80
- let PopupWrapperComponent1 = Popup(SamplePopup);
81
- let popupDom1 = TestUtils.renderIntoDocument( /*#__PURE__*/React.createElement(PopupWrapperComponent1, null));
82
- let PopupWrapperComponent2 = Popup(SamplePopup);
83
- let popupDom2 = TestUtils.renderIntoDocument( /*#__PURE__*/React.createElement(PopupWrapperComponent2, null));
84
- popupDom1.togglePopup();
85
- expect(popupDom1.state.isPopupOpen).toBeTruthy();
86
- expect(popupDom2.state.isPopupOpen).toBeFalsy();
87
- popupDom2.togglePopup();
88
- expect(popupDom1.state.isPopupOpen).toBeFalsy();
89
- expect(popupDom2.state.isPopupOpen).toBeTruthy();
90
- });
91
- it('should click document close opened popup', () => {
92
- let PopupWrapperComponent = Popup(SamplePopup);
93
- let popupDom = TestUtils.renderIntoDocument( /*#__PURE__*/React.createElement(PopupWrapperComponent, null));
94
- popupDom.togglePopup();
95
- expect(popupDom.state.isPopupOpen).toBeTruthy();
96
- document.body.click();
97
- expect(popupDom.state.isPopupOpen).toBeFalsy();
98
- });
99
- it('should click same popup with out removeClose', () => {
100
- let PopupWrapperComponent = Popup(SamplePopupCopy1);
101
- let div = document.createElement('div');
102
- document.body.append(div);
103
- /*eslint-disable */
104
-
105
- let popupDom = ReactDOM.render( /*#__PURE__*/React.createElement(PopupWrapperComponent, null), div);
106
- /*eslint-enable */
107
-
108
- popupDom.togglePopup();
109
- expect(popupDom.state.isPopupOpen).toBeTruthy();
110
- let popupEle = TestUtils.findRenderedComponentsWithTestid(popupDom, 'samplePopup');
111
- popupEle.click();
112
- expect(popupDom.state.isPopupOpen).toBeFalsy();
113
- });
114
- it('should click document close opened popup', () => {
115
- let PopupWrapperComponent = Popup(SamplePopup);
116
- let popupDom = TestUtils.renderIntoDocument( /*#__PURE__*/React.createElement(PopupWrapperComponent, null));
117
- popupDom.togglePopup();
118
- expect(popupDom.state.isPopupOpen).toBeTruthy();
119
- document.body.click();
120
- expect(popupDom.state.isPopupOpen).toBeFalsy();
121
- });
122
- it('should press esc key opened popup close', () => {
123
- let PopupWrapperComponent = Popup(SamplePopupCopy1);
124
- let popupDom = TestUtils.renderIntoDocument( /*#__PURE__*/React.createElement(PopupWrapperComponent, null));
125
- popupDom.togglePopup();
126
- expect(popupDom.state.isPopupOpen).toBeTruthy(); //TestUtils.Simulate.keyUp(document, {keyCode:27});
127
-
128
- let e = document.createEvent('HTMLEvents');
129
- e.initEvent('keyup', false, true);
130
- e.keyCode = 27;
131
- document.dispatchEvent(e);
132
- expect(popupDom.state.isPopupOpen).toBeFalsy();
133
- });
134
- }); //Group Popup Handling Open and close
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- import Radio from '../Radio';
3
- describe('Radio component', () => {
4
- it('Should display Text', () => {
5
- let renderedDOM = TestUtils.renderIntoDocument( /*#__PURE__*/React.createElement(Radio, {
6
- text: "test",
7
- id: "testid"
8
- }));
9
- expect(TestUtils.findRenderedComponentsWithTestid(renderedDOM, 'test_label').textContent.contains('test')).toBe(true);
10
- });
11
- it('Should call onChange', () => {
12
- let {
13
- renderedDOM,
14
- props
15
- } = setup(Radio, {
16
- onChange: jest.fn(),
17
- text: 'test'
18
- });
19
- let radioElement = TestUtils.findRenderedComponentsWithTestid(renderedDOM, 'RadioComp');
20
- TestUtils.Simulate.click(radioElement, renderedDOM);
21
- expect(props.onChange).toHaveBeenCalled();
22
- });
23
- });
@@ -1,168 +0,0 @@
1
- import React from 'react';
2
- import Ribbon from '../Ribbon';
3
- import renderer from 'react-test-renderer';
4
- describe('Ribbon component', () => {
5
- it('should the palette is default', () => {
6
- let ele = renderer.create( /*#__PURE__*/React.createElement(Ribbon, {
7
- palette: "default",
8
- text: "default"
9
- }));
10
- let tree = ele.toJSON();
11
- expect(tree).toMatchSnapshot();
12
- });
13
- it('should the palette is danger', () => {
14
- let ele = renderer.create( /*#__PURE__*/React.createElement(Ribbon, {
15
- palette: "danger",
16
- text: "danger"
17
- }));
18
- let tree = ele.toJSON();
19
- expect(tree).toMatchSnapshot();
20
- });
21
- it('should the palette is secondary', () => {
22
- let ele = renderer.create( /*#__PURE__*/React.createElement(Ribbon, {
23
- palette: "secondary",
24
- text: "secondary"
25
- }));
26
- let tree = ele.toJSON();
27
- expect(tree).toMatchSnapshot();
28
- });
29
- it('should the palette is info', () => {
30
- let ele = renderer.create( /*#__PURE__*/React.createElement(Ribbon, {
31
- palette: "info",
32
- text: "info"
33
- }));
34
- let tree = ele.toJSON();
35
- expect(tree).toMatchSnapshot();
36
- });
37
- it('should the palette is primary', () => {
38
- let ele = renderer.create( /*#__PURE__*/React.createElement(Ribbon, {
39
- palette: "primary",
40
- text: "primary"
41
- }));
42
- let tree = ele.toJSON();
43
- expect(tree).toMatchSnapshot();
44
- });
45
- it('should the palette is dark', () => {
46
- let ele = renderer.create( /*#__PURE__*/React.createElement(Ribbon, {
47
- palette: "dark",
48
- text: "dark"
49
- }));
50
- let tree = ele.toJSON();
51
- expect(tree).toMatchSnapshot();
52
- });
53
- it('should the size is small', () => {
54
- let ele = renderer.create( /*#__PURE__*/React.createElement(Ribbon, {
55
- palette: "default",
56
- text: "default",
57
- size: "small"
58
- }));
59
- let tree = ele.toJSON();
60
- expect(tree).toMatchSnapshot();
61
- });
62
- it('should the size is medium', () => {
63
- let ele = renderer.create( /*#__PURE__*/React.createElement(Ribbon, {
64
- palette: "default",
65
- text: "default",
66
- size: "small"
67
- }));
68
- let tree = ele.toJSON();
69
- expect(tree).toMatchSnapshot();
70
- });
71
- it('should the size is large', () => {
72
- let ele = renderer.create( /*#__PURE__*/React.createElement(Ribbon, {
73
- palette: "default",
74
- text: "default",
75
- size: "large"
76
- }));
77
- let tree = ele.toJSON();
78
- expect(tree).toMatchSnapshot();
79
- });
80
- it('should the size is xlarge', () => {
81
- let ele = renderer.create( /*#__PURE__*/React.createElement(Ribbon, {
82
- palette: "default",
83
- text: "default",
84
- size: "xlarge"
85
- }));
86
- let tree = ele.toJSON();
87
- expect(tree).toMatchSnapshot();
88
- });
89
- it('should the type is dafault', () => {
90
- let ele = renderer.create( /*#__PURE__*/React.createElement(Ribbon, {
91
- palette: "default",
92
- text: "default",
93
- size: "xlarge"
94
- }));
95
- let tree = ele.toJSON();
96
- expect(tree).toMatchSnapshot();
97
- });
98
- it('should the type is flag', () => {
99
- let ele = renderer.create( /*#__PURE__*/React.createElement(Ribbon, {
100
- palette: "default",
101
- text: "default",
102
- size: "xlarge"
103
- }));
104
- let tree = ele.toJSON();
105
- expect(tree).toMatchSnapshot();
106
- });
107
- it('should the type is plain', () => {
108
- let ele = renderer.create( /*#__PURE__*/React.createElement(Ribbon, {
109
- palette: "default",
110
- text: "default",
111
- size: "xlarge"
112
- }));
113
- let tree = ele.toJSON();
114
- expect(tree).toMatchSnapshot();
115
- });
116
- it('should the type is ribbon', () => {
117
- let ele = renderer.create( /*#__PURE__*/React.createElement(Ribbon, {
118
- palette: "default",
119
- text: "default",
120
- size: "xlarge"
121
- }));
122
- let tree = ele.toJSON();
123
- expect(tree).toMatchSnapshot();
124
- });
125
- it('should the type is box', () => {
126
- let ele = renderer.create( /*#__PURE__*/React.createElement(Ribbon, {
127
- palette: "default",
128
- text: "default",
129
- size: "xlarge"
130
- }));
131
- let tree = ele.toJSON();
132
- expect(tree).toMatchSnapshot();
133
- });
134
- it('should the type is stamp', () => {
135
- let ele = renderer.create( /*#__PURE__*/React.createElement(Ribbon, {
136
- palette: "default",
137
- text: "default",
138
- size: "xlarge"
139
- }));
140
- let tree = ele.toJSON();
141
- expect(tree).toMatchSnapshot();
142
- });
143
- it('should the type is sticker', () => {
144
- let ele = renderer.create( /*#__PURE__*/React.createElement(Ribbon, {
145
- palette: "default",
146
- text: "default",
147
- size: "xlarge"
148
- }));
149
- let tree = ele.toJSON();
150
- expect(tree).toMatchSnapshot();
151
- });
152
- it('should the type is tag', () => {
153
- let ele = renderer.create( /*#__PURE__*/React.createElement(Ribbon, {
154
- palette: "default",
155
- text: "default",
156
- type: "tag"
157
- }));
158
- let tree = ele.toJSON();
159
- expect(tree).toMatchSnapshot();
160
- });
161
- it('should display text', () => {
162
- let renderedDOM = TestUtils.renderIntoDocument( /*#__PURE__*/React.createElement(Ribbon, {
163
- text: "primary",
164
- palette: "primary"
165
- }));
166
- expect(TestUtils.findRenderedComponentsWithTestid(renderedDOM, 'ribbonComp').textContent.contains('primary')).toBe(true);
167
- });
168
- });
@@ -1,163 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`Ribbon component should the palette is danger 1`] = `
4
- <span
5
- className="basic palette_danger large default"
6
- data-id="ribbonComp"
7
- >
8
- danger
9
- </span>
10
- `;
11
-
12
- exports[`Ribbon component should the palette is dark 1`] = `
13
- <span
14
- className="basic palette_dark large default"
15
- data-id="ribbonComp"
16
- >
17
- dark
18
- </span>
19
- `;
20
-
21
- exports[`Ribbon component should the palette is default 1`] = `
22
- <span
23
- className="basic palette_default large default"
24
- data-id="ribbonComp"
25
- >
26
- default
27
- </span>
28
- `;
29
-
30
- exports[`Ribbon component should the palette is info 1`] = `
31
- <span
32
- className="basic palette_info large default"
33
- data-id="ribbonComp"
34
- >
35
- info
36
- </span>
37
- `;
38
-
39
- exports[`Ribbon component should the palette is primary 1`] = `
40
- <span
41
- className="basic palette_primary large default"
42
- data-id="ribbonComp"
43
- >
44
- primary
45
- </span>
46
- `;
47
-
48
- exports[`Ribbon component should the palette is secondary 1`] = `
49
- <span
50
- className="basic palette_secondary large default"
51
- data-id="ribbonComp"
52
- >
53
- secondary
54
- </span>
55
- `;
56
-
57
- exports[`Ribbon component should the size is large 1`] = `
58
- <span
59
- className="basic palette_default large default"
60
- data-id="ribbonComp"
61
- >
62
- default
63
- </span>
64
- `;
65
-
66
- exports[`Ribbon component should the size is medium 1`] = `
67
- <span
68
- className="basic palette_default small default"
69
- data-id="ribbonComp"
70
- >
71
- default
72
- </span>
73
- `;
74
-
75
- exports[`Ribbon component should the size is small 1`] = `
76
- <span
77
- className="basic palette_default small default"
78
- data-id="ribbonComp"
79
- >
80
- default
81
- </span>
82
- `;
83
-
84
- exports[`Ribbon component should the size is xlarge 1`] = `
85
- <span
86
- className="basic palette_default xlarge default"
87
- data-id="ribbonComp"
88
- >
89
- default
90
- </span>
91
- `;
92
-
93
- exports[`Ribbon component should the type is box 1`] = `
94
- <span
95
- className="basic palette_default xlarge default"
96
- data-id="ribbonComp"
97
- >
98
- default
99
- </span>
100
- `;
101
-
102
- exports[`Ribbon component should the type is dafault 1`] = `
103
- <span
104
- className="basic palette_default xlarge default"
105
- data-id="ribbonComp"
106
- >
107
- default
108
- </span>
109
- `;
110
-
111
- exports[`Ribbon component should the type is flag 1`] = `
112
- <span
113
- className="basic palette_default xlarge default"
114
- data-id="ribbonComp"
115
- >
116
- default
117
- </span>
118
- `;
119
-
120
- exports[`Ribbon component should the type is plain 1`] = `
121
- <span
122
- className="basic palette_default xlarge default"
123
- data-id="ribbonComp"
124
- >
125
- default
126
- </span>
127
- `;
128
-
129
- exports[`Ribbon component should the type is ribbon 1`] = `
130
- <span
131
- className="basic palette_default xlarge default"
132
- data-id="ribbonComp"
133
- >
134
- default
135
- </span>
136
- `;
137
-
138
- exports[`Ribbon component should the type is stamp 1`] = `
139
- <span
140
- className="basic palette_default xlarge default"
141
- data-id="ribbonComp"
142
- >
143
- default
144
- </span>
145
- `;
146
-
147
- exports[`Ribbon component should the type is sticker 1`] = `
148
- <span
149
- className="basic palette_default xlarge default"
150
- data-id="ribbonComp"
151
- >
152
- default
153
- </span>
154
- `;
155
-
156
- exports[`Ribbon component should the type is tag 1`] = `
157
- <span
158
- className="basic large tag"
159
- data-id="ribbonComp"
160
- >
161
- default
162
- </span>
163
- `;