@pedidopago/ui 1.5.21 → 1.5.23

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 (175) hide show
  1. package/dist/components/Alert/alert.test.d.ts +2 -0
  2. package/dist/components/Alert/alert.test.d.ts.map +1 -0
  3. package/dist/components/Alert/alert.test.js +92 -0
  4. package/dist/components/Alert/types.d.ts +1 -1
  5. package/dist/components/Alert/types.d.ts.map +1 -1
  6. package/dist/components/Avatar/avatar.test.d.ts +2 -0
  7. package/dist/components/Avatar/avatar.test.d.ts.map +1 -0
  8. package/dist/components/Avatar/avatar.test.js +74 -0
  9. package/dist/components/Avatar/types.d.ts +1 -1
  10. package/dist/components/Avatar/types.d.ts.map +1 -1
  11. package/dist/components/Badge/badge.test.d.ts +2 -0
  12. package/dist/components/Badge/badge.test.d.ts.map +1 -0
  13. package/dist/components/Badge/badge.test.js +82 -0
  14. package/dist/components/Button/Button.test.d.ts +2 -0
  15. package/dist/components/Button/Button.test.d.ts.map +1 -0
  16. package/dist/components/Button/Button.test.js +172 -0
  17. package/dist/components/Card/card.test.d.ts +2 -0
  18. package/dist/components/Card/card.test.d.ts.map +1 -0
  19. package/dist/components/Card/card.test.js +37 -0
  20. package/dist/components/CheckboxInput/checkbox-input.test.d.ts +2 -0
  21. package/dist/components/CheckboxInput/checkbox-input.test.d.ts.map +1 -0
  22. package/dist/components/CheckboxInput/checkbox-input.test.js +194 -0
  23. package/dist/components/CollapseCard/expand-button.test.d.ts +2 -0
  24. package/dist/components/CollapseCard/expand-button.test.d.ts.map +1 -0
  25. package/dist/components/CollapseCard/expand-button.test.js +196 -0
  26. package/dist/components/ColorPicker/colorpicker.test.d.ts +2 -0
  27. package/dist/components/ColorPicker/colorpicker.test.d.ts.map +1 -0
  28. package/dist/components/ColorPicker/colorpicker.test.js +74 -0
  29. package/dist/components/DateInput/dateInput.test.d.ts +2 -0
  30. package/dist/components/DateInput/dateInput.test.d.ts.map +1 -0
  31. package/dist/components/DateInput/dateInput.test.js +52 -0
  32. package/dist/components/DatePicker/datepicker.test.d.ts +2 -0
  33. package/dist/components/DatePicker/datepicker.test.d.ts.map +1 -0
  34. package/dist/components/DatePicker/datepicker.test.js +138 -0
  35. package/dist/components/Dialog/dialog.test.d.ts +2 -0
  36. package/dist/components/Dialog/dialog.test.d.ts.map +1 -0
  37. package/dist/components/Dialog/dialog.test.js +81 -0
  38. package/dist/components/Dropzone/dropzone.test.d.ts +2 -0
  39. package/dist/components/Dropzone/dropzone.test.d.ts.map +1 -0
  40. package/dist/components/Dropzone/dropzone.test.js +79 -0
  41. package/dist/components/Flex/flex.test.d.ts +2 -0
  42. package/dist/components/Flex/flex.test.d.ts.map +1 -0
  43. package/dist/components/Flex/flex.test.js +355 -0
  44. package/dist/components/Flex/styles.js +1 -1
  45. package/dist/components/Flex/types.d.ts +1 -1
  46. package/dist/components/Flex/types.d.ts.map +1 -1
  47. package/dist/components/Grid/grid.test.d.ts +2 -0
  48. package/dist/components/Grid/grid.test.d.ts.map +1 -0
  49. package/dist/components/Grid/grid.test.js +140 -0
  50. package/dist/components/Icon/data/dash.js +1 -1
  51. package/dist/components/Icon/icon.test.d.ts +2 -0
  52. package/dist/components/Icon/icon.test.d.ts.map +1 -0
  53. package/dist/components/Icon/icon.test.js +70 -0
  54. package/dist/components/Icon/types.d.ts +1 -1
  55. package/dist/components/Icon/types.d.ts.map +1 -1
  56. package/dist/components/Icon/utils/iconExists.d.ts +5 -0
  57. package/dist/components/Icon/utils/iconExists.d.ts.map +1 -0
  58. package/dist/components/Icon/utils/iconExists.js +16 -0
  59. package/dist/components/IconItem/IconItem.test.d.ts +2 -0
  60. package/dist/components/IconItem/IconItem.test.d.ts.map +1 -0
  61. package/dist/components/IconItem/IconItem.test.js +68 -0
  62. package/dist/components/IconItem/types.d.ts +1 -1
  63. package/dist/components/IconItem/types.d.ts.map +1 -1
  64. package/dist/components/Illustration/illustration.test.d.ts +2 -0
  65. package/dist/components/Illustration/illustration.test.d.ts.map +1 -0
  66. package/dist/components/Illustration/illustration.test.js +61 -0
  67. package/dist/components/ImageItem/input.test.d.ts +2 -0
  68. package/dist/components/ImageItem/input.test.d.ts.map +1 -0
  69. package/dist/components/ImageItem/input.test.js +101 -0
  70. package/dist/components/Input/input.test.d.ts +2 -0
  71. package/dist/components/Input/input.test.d.ts.map +1 -0
  72. package/dist/components/Input/input.test.js +144 -0
  73. package/dist/components/Label/label.test.d.ts +2 -0
  74. package/dist/components/Label/label.test.d.ts.map +1 -0
  75. package/dist/components/Label/label.test.js +105 -0
  76. package/dist/components/List/list.test.d.ts +2 -0
  77. package/dist/components/List/list.test.d.ts.map +1 -0
  78. package/dist/components/List/list.test.js +71 -0
  79. package/dist/components/List/types.d.ts +1 -0
  80. package/dist/components/List/types.d.ts.map +1 -1
  81. package/dist/components/Modal/modal.test.d.ts +2 -0
  82. package/dist/components/Modal/modal.test.d.ts.map +1 -0
  83. package/dist/components/Modal/modal.test.js +197 -0
  84. package/dist/components/MultipleSelect/MultipleSelect.test.d.ts +2 -0
  85. package/dist/components/MultipleSelect/MultipleSelect.test.d.ts.map +1 -0
  86. package/dist/components/MultipleSelect/MultipleSelect.test.js +447 -0
  87. package/dist/components/MultipleSelect/types.d.ts +1 -1
  88. package/dist/components/MultipleSelect/types.d.ts.map +1 -1
  89. package/dist/components/Pagination/pagination.test.d.ts +2 -0
  90. package/dist/components/Pagination/pagination.test.d.ts.map +1 -0
  91. package/dist/components/Pagination/pagination.test.js +152 -0
  92. package/dist/components/Pagination/types.d.ts +1 -1
  93. package/dist/components/Pagination/types.d.ts.map +1 -1
  94. package/dist/components/Progress/progress.test.d.ts +2 -0
  95. package/dist/components/Progress/progress.test.d.ts.map +1 -0
  96. package/dist/components/Progress/progress.test.js +126 -0
  97. package/dist/components/RadioInput/radio-input.test.d.ts +2 -0
  98. package/dist/components/RadioInput/radio-input.test.d.ts.map +1 -0
  99. package/dist/components/RadioInput/radio-input.test.js +208 -0
  100. package/dist/components/Rating/rating.test.d.ts +2 -0
  101. package/dist/components/Rating/rating.test.d.ts.map +1 -0
  102. package/dist/components/Rating/rating.test.js +79 -0
  103. package/dist/components/ReactPortal/reactPortal.test.d.ts +2 -0
  104. package/dist/components/ReactPortal/reactPortal.test.d.ts.map +1 -0
  105. package/dist/components/ReactPortal/reactPortal.test.js +26 -0
  106. package/dist/components/Select/components/OptionsSelect/styles.d.ts +2 -253
  107. package/dist/components/Select/components/OptionsSelect/styles.d.ts.map +1 -1
  108. package/dist/components/Select/components/OptionsSelect/styles.js +2 -3
  109. package/dist/components/Select/select.test.d.ts +2 -0
  110. package/dist/components/Select/select.test.d.ts.map +1 -0
  111. package/dist/components/Select/select.test.js +67 -0
  112. package/dist/components/Skeleton/skeleton.test.d.ts +2 -0
  113. package/dist/components/Skeleton/skeleton.test.d.ts.map +1 -0
  114. package/dist/components/Skeleton/skeleton.test.js +106 -0
  115. package/dist/components/Slider/slider.test.d.ts +2 -0
  116. package/dist/components/Slider/slider.test.d.ts.map +1 -0
  117. package/dist/components/Slider/slider.test.js +134 -0
  118. package/dist/components/Spinner/spinner.test.d.ts +2 -0
  119. package/dist/components/Spinner/spinner.test.d.ts.map +1 -0
  120. package/dist/components/Spinner/spinner.test.js +55 -0
  121. package/dist/components/Spinner/types.d.ts +1 -1
  122. package/dist/components/Spinner/types.d.ts.map +1 -1
  123. package/dist/components/Steps/steps.test.d.ts +2 -0
  124. package/dist/components/Steps/steps.test.d.ts.map +1 -0
  125. package/dist/components/Steps/steps.test.js +63 -0
  126. package/dist/components/Switch/switch.test.d.ts +2 -0
  127. package/dist/components/Switch/switch.test.d.ts.map +1 -0
  128. package/dist/components/Switch/switch.test.js +253 -0
  129. package/dist/components/Table/components/TableSkeleton.d.ts +4 -0
  130. package/dist/components/Table/components/TableSkeleton.d.ts.map +1 -0
  131. package/dist/components/Table/components/TableSkeleton.js +45 -0
  132. package/dist/components/Table/index.d.ts +1 -1
  133. package/dist/components/Table/index.d.ts.map +1 -1
  134. package/dist/components/Table/index.js +14 -2
  135. package/dist/components/Table/table.test.d.ts +2 -0
  136. package/dist/components/Table/table.test.d.ts.map +1 -0
  137. package/dist/components/Table/table.test.js +130 -0
  138. package/dist/components/Table/types.d.ts +14 -0
  139. package/dist/components/Table/types.d.ts.map +1 -1
  140. package/dist/components/Tabs/tabs.test.d.ts +2 -0
  141. package/dist/components/Tabs/tabs.test.d.ts.map +1 -0
  142. package/dist/components/Tabs/tabs.test.js +159 -0
  143. package/dist/components/Tag/tag.test.d.ts +2 -0
  144. package/dist/components/Tag/tag.test.d.ts.map +1 -0
  145. package/dist/components/Tag/tag.test.js +78 -0
  146. package/dist/components/TextAreaInput/text-area-input.test.d.ts +2 -0
  147. package/dist/components/TextAreaInput/text-area-input.test.d.ts.map +1 -0
  148. package/dist/components/TextAreaInput/text-area-input.test.js +96 -0
  149. package/dist/components/Thumbnail/thumbnail.test.d.ts +2 -0
  150. package/dist/components/Thumbnail/thumbnail.test.d.ts.map +1 -0
  151. package/dist/components/Thumbnail/thumbnail.test.js +82 -0
  152. package/dist/components/Timeline/timeline.test.d.ts +2 -0
  153. package/dist/components/Timeline/timeline.test.d.ts.map +1 -0
  154. package/dist/components/Timeline/timeline.test.js +152 -0
  155. package/dist/components/Toast/contexts/ToastProvider.d.ts +4 -4
  156. package/dist/components/Toast/contexts/ToastProvider.d.ts.map +1 -1
  157. package/dist/components/Toast/toast.test.d.ts +2 -0
  158. package/dist/components/Toast/toast.test.d.ts.map +1 -0
  159. package/dist/components/Toast/toast.test.js +139 -0
  160. package/dist/components/Toast/types.d.ts +4 -1
  161. package/dist/components/Toast/types.d.ts.map +1 -1
  162. package/dist/components/Typography/typography.test.d.ts +2 -0
  163. package/dist/components/Typography/typography.test.d.ts.map +1 -0
  164. package/dist/components/Typography/typography.test.js +325 -0
  165. package/dist/index.d.ts +1 -0
  166. package/dist/index.d.ts.map +1 -1
  167. package/dist/index.js +10 -1
  168. package/dist/shared/tests/test-utils.d.ts.map +1 -1
  169. package/dist/shared/tests/types.d.ts +5 -0
  170. package/dist/shared/tests/types.d.ts.map +1 -0
  171. package/dist/shared/tests/types.js +1 -0
  172. package/dist/shared/theme/theme.test.d.ts +2 -0
  173. package/dist/shared/theme/theme.test.d.ts.map +1 -0
  174. package/dist/shared/theme/theme.test.js +116 -0
  175. package/package.json +6 -9
@@ -0,0 +1,139 @@
1
+ "use strict";
2
+
3
+ var _testUtils = require("../../shared/tests/test-utils");
4
+
5
+ require("@testing-library/jest-dom");
6
+
7
+ var _buttonExample = _interopRequireDefault(require("./button-example"));
8
+
9
+ var _ToastProvider = _interopRequireDefault(require("./contexts/ToastProvider"));
10
+
11
+ var _jsxRuntime = require("react/jsx-runtime");
12
+
13
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
+
15
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
16
+
17
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
18
+
19
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
20
+
21
+ var setup = function setup(props) {
22
+ return (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_ToastProvider.default, {
23
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_buttonExample.default, _objectSpread({}, props))
24
+ }));
25
+ };
26
+
27
+ describe('Toast', function () {
28
+ it('should it render the toast on the screen', function () {
29
+ var container = setup({
30
+ title: 'Toast Title',
31
+ content: 'Toast Message',
32
+ type: 'success'
33
+ });
34
+ container.getByText('Show toast').click();
35
+ expect(container.getByText('Toast Title')).toBeInTheDocument();
36
+ });
37
+ it('should it render the toast on position top of the screen', function () {
38
+ var container = setup({
39
+ title: 'Toast Title',
40
+ content: 'Toast Message',
41
+ type: 'success',
42
+ position: 'top'
43
+ });
44
+ container.getByText('Show toast').click();
45
+ expect(container.getByText('Toast Title')).toBeInTheDocument();
46
+ });
47
+ it('should it render the toast on position top-left of the screen', function () {
48
+ var container = setup({
49
+ title: 'Toast Title',
50
+ content: 'Toast Message',
51
+ type: 'success',
52
+ position: 'top-left'
53
+ });
54
+ container.getByText('Show toast').click();
55
+ expect(container.getByText('Toast Title')).toBeInTheDocument();
56
+ });
57
+ it('should it render the toast on position top-right of the screen', function () {
58
+ var container = setup({
59
+ title: 'Toast Title',
60
+ content: 'Toast Message',
61
+ type: 'success',
62
+ position: 'top-right'
63
+ });
64
+ container.getByText('Show toast').click();
65
+ expect(container.getByText('Toast Title')).toBeInTheDocument();
66
+ });
67
+ it('should it render the toast on position bottom of the screen', function () {
68
+ var container = setup({
69
+ title: 'Toast Title',
70
+ content: 'Toast Message',
71
+ type: 'success',
72
+ position: 'bottom'
73
+ });
74
+ container.getByText('Show toast').click();
75
+ expect(container.getByText('Toast Title')).toBeInTheDocument();
76
+ });
77
+ it('should it render the toast on position bottom-left of the screen', function () {
78
+ var container = setup({
79
+ title: 'Toast Title',
80
+ content: 'Toast Message',
81
+ type: 'success',
82
+ position: 'bottom-left'
83
+ });
84
+ container.getByText('Show toast').click();
85
+ expect(container.getByText('Toast Title')).toBeInTheDocument();
86
+ });
87
+ it('should it render the toast on position bottom-right of the screen', function () {
88
+ var container = setup({
89
+ title: 'Toast Title',
90
+ content: 'Toast Message',
91
+ type: 'success',
92
+ position: 'bottom-right'
93
+ });
94
+ container.getByText('Show toast').click();
95
+ expect(container.getByText('Toast Title')).toBeInTheDocument();
96
+ });
97
+ it('should it render the toast on the screen and close it by alert close button', function () {
98
+ var _container$baseElemen;
99
+
100
+ var container = setup({
101
+ title: 'Toast Title',
102
+ content: 'Toast Message',
103
+ type: 'success'
104
+ });
105
+ container.getByText('Show toast').click();
106
+ (_container$baseElemen = container.baseElement.querySelectorAll('svg')[1].parentElement) === null || _container$baseElemen === void 0 ? void 0 : _container$baseElemen.click();
107
+ setTimeout(function () {
108
+ expect(container.getByText('Toast Title')).not.toBeInTheDocument();
109
+ }, 500);
110
+ });
111
+ it('should it call the callback provided in onClose prop', function () {
112
+ var _container$baseElemen2;
113
+
114
+ var onClose = jest.fn();
115
+ var container = setup({
116
+ title: 'Toast Title',
117
+ content: 'Toast Message',
118
+ type: 'success',
119
+ onClose: onClose
120
+ });
121
+ container.getByText('Show toast').click();
122
+ (_container$baseElemen2 = container.baseElement.querySelectorAll('svg')[1].parentElement) === null || _container$baseElemen2 === void 0 ? void 0 : _container$baseElemen2.click();
123
+ expect(onClose).toHaveBeenCalled();
124
+ });
125
+ it('should it call the callback provided in onClose prop and pass the id', function () {
126
+ var _container$baseElemen3;
127
+
128
+ var onClose = jest.fn();
129
+ var container = setup({
130
+ title: 'Toast Title',
131
+ content: 'Toast Message',
132
+ type: 'success',
133
+ onClose: onClose
134
+ });
135
+ container.getByText('Show toast').click();
136
+ (_container$baseElemen3 = container.baseElement.querySelectorAll('svg')[1].parentElement) === null || _container$baseElemen3 === void 0 ? void 0 : _container$baseElemen3.click();
137
+ expect(onClose).toHaveBeenCalledWith(expect.any(String));
138
+ });
139
+ });
@@ -19,9 +19,12 @@ export declare type Toast = IToastConfig & {
19
19
  toastId: string;
20
20
  close: (id: string) => void;
21
21
  };
22
- export declare type ToastProviderProps = {
22
+ export declare type ToastContextProps = {
23
23
  add: (options: IToastConfig) => void;
24
24
  remove: (id: string) => void;
25
25
  toasts: IToastList[];
26
26
  };
27
+ export declare type ToastProviderProps = {
28
+ children?: React.ReactNode;
29
+ };
27
30
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,oBAAY,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,SAAS,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,GAAG,aAAa,GAAG,cAAc,CAAC;IACxF,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,CAAC;IAChE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC,CAAC;AAEF,oBAAY,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC,GAAG;QAChD,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;KAChC,CAAC;CACH,CAAC;AAEF,oBAAY,KAAK,GAAG,YAAY,GAAG;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7B,CAAC;AAEF,oBAAY,kBAAkB,GAAG;IAC/B,GAAG,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,IAAI,CAAC;IACrC,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,MAAM,EAAE,UAAU,EAAE,CAAC;CACtB,CAAC"}
1
+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C5B,CAAC"}
@@ -0,0 +1,2 @@
1
+ import '@testing-library/jest-dom';
2
+ //# sourceMappingURL=typography.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typography.test.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/typography.test.tsx"],"names":[],"mappings":"AAEA,OAAO,2BAA2B,CAAC"}
@@ -0,0 +1,325 @@
1
+ "use strict";
2
+
3
+ var _testUtils = require("../../shared/tests/test-utils");
4
+
5
+ require("@testing-library/jest-dom");
6
+
7
+ var _ = _interopRequireDefault(require("."));
8
+
9
+ var _jsxRuntime = require("react/jsx-runtime");
10
+
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+
13
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
14
+
15
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
16
+
17
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
18
+
19
+ var setup = function setup(props) {
20
+ var utils = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, _objectSpread({}, props)));
21
+ return _objectSpread({}, utils);
22
+ };
23
+
24
+ describe('Typography', function () {
25
+ var sentence = 'Pedido Pago';
26
+ it('should render the default text', function () {
27
+ var _setup = setup({
28
+ children: sentence
29
+ }),
30
+ getByText = _setup.getByText;
31
+
32
+ expect(getByText(sentence)).toHaveTextContent(sentence);
33
+ });
34
+ it('should render the default text with a custom className', function () {
35
+ var _setup2 = setup({
36
+ children: sentence,
37
+ className: 'custom-class'
38
+ }),
39
+ getByText = _setup2.getByText;
40
+
41
+ expect(getByText(sentence)).toHaveClass('custom-class');
42
+ });
43
+ it('should render the default text with a custom className and custom styles', function () {
44
+ var _setup3 = setup({
45
+ children: sentence,
46
+ className: 'custom-class',
47
+ style: {
48
+ color: 'red'
49
+ }
50
+ }),
51
+ getByText = _setup3.getByText;
52
+
53
+ expect(getByText(sentence)).toHaveClass('custom-class');
54
+ expect(getByText(sentence)).toHaveStyle('color: red');
55
+ });
56
+ it('should render the default text with a custom className, custom styles and custom props', function () {
57
+ var _setup4 = setup({
58
+ children: sentence,
59
+ className: 'custom-class',
60
+ style: {
61
+ color: 'red'
62
+ },
63
+ id: 'custom-id'
64
+ }),
65
+ getByText = _setup4.getByText;
66
+
67
+ expect(getByText(sentence)).toHaveClass('custom-class');
68
+ expect(getByText(sentence)).toHaveStyle('color: red');
69
+ expect(getByText(sentence)).toHaveAttribute('id', 'custom-id');
70
+ });
71
+ it('should render xxxs text', function () {
72
+ var _setup5 = setup({
73
+ children: sentence,
74
+ fontSize: 'xxxs'
75
+ }),
76
+ container = _setup5.container;
77
+
78
+ expect(container).toHaveTextContent(sentence);
79
+ expect(container).toBeInTheDocument();
80
+ });
81
+ it('should render xxs text', function () {
82
+ var _setup6 = setup({
83
+ children: sentence,
84
+ fontSize: 'xxs'
85
+ }),
86
+ container = _setup6.container;
87
+
88
+ expect(container).toHaveTextContent(sentence);
89
+ expect(container).toBeInTheDocument();
90
+ });
91
+ it('should render xs text', function () {
92
+ var _setup7 = setup({
93
+ children: sentence,
94
+ fontSize: 'xs'
95
+ }),
96
+ container = _setup7.container;
97
+
98
+ expect(container).toHaveTextContent(sentence);
99
+ expect(container).toBeInTheDocument();
100
+ });
101
+ it('should render sm text', function () {
102
+ var _setup8 = setup({
103
+ children: sentence,
104
+ fontSize: 'sm'
105
+ }),
106
+ container = _setup8.container;
107
+
108
+ expect(container).toHaveTextContent(sentence);
109
+ expect(container).toBeInTheDocument();
110
+ });
111
+ it('should render md text', function () {
112
+ var _setup9 = setup({
113
+ children: sentence,
114
+ fontSize: 'md'
115
+ }),
116
+ container = _setup9.container;
117
+
118
+ expect(container).toHaveTextContent(sentence);
119
+ expect(container).toBeInTheDocument();
120
+ });
121
+ it('should render lg text', function () {
122
+ var _setup10 = setup({
123
+ children: sentence,
124
+ fontSize: 'lg'
125
+ }),
126
+ container = _setup10.container;
127
+
128
+ expect(container).toHaveTextContent(sentence);
129
+ expect(container).toBeInTheDocument();
130
+ });
131
+ it('should render xl text', function () {
132
+ var _setup11 = setup({
133
+ children: sentence,
134
+ fontSize: 'xl'
135
+ }),
136
+ container = _setup11.container;
137
+
138
+ expect(container).toHaveTextContent(sentence);
139
+ expect(container).toBeInTheDocument();
140
+ });
141
+ it('should render xxl text', function () {
142
+ var _setup12 = setup({
143
+ children: sentence,
144
+ fontSize: 'xxl'
145
+ }),
146
+ container = _setup12.container;
147
+
148
+ expect(container).toHaveTextContent(sentence);
149
+ expect(container).toBeInTheDocument();
150
+ });
151
+ it('should render xxxl text', function () {
152
+ var _setup13 = setup({
153
+ children: sentence,
154
+ fontSize: 'xxxl'
155
+ }),
156
+ container = _setup13.container;
157
+
158
+ expect(container).toHaveTextContent(sentence);
159
+ expect(container).toBeInTheDocument();
160
+ });
161
+ it('should render display text', function () {
162
+ var _setup14 = setup({
163
+ children: sentence,
164
+ fontSize: 'display'
165
+ }),
166
+ container = _setup14.container;
167
+
168
+ expect(container).toHaveTextContent(sentence);
169
+ expect(container).toBeInTheDocument();
170
+ });
171
+ it('should render giant text', function () {
172
+ var _setup15 = setup({
173
+ children: sentence,
174
+ fontSize: 'giant'
175
+ }),
176
+ container = _setup15.container;
177
+
178
+ expect(container).toHaveTextContent(sentence);
179
+ expect(container).toBeInTheDocument();
180
+ });
181
+ it('should render the default text with normal weight', function () {
182
+ var _setup16 = setup({
183
+ children: sentence,
184
+ fontWeight: 'normal'
185
+ }),
186
+ getByText = _setup16.getByText;
187
+
188
+ expect(getByText(sentence)).toHaveStyle('font-weight: normal');
189
+ });
190
+ it('should render the default text with bold weight', function () {
191
+ var _setup17 = setup({
192
+ children: sentence,
193
+ fontWeight: 'bold'
194
+ }),
195
+ getByText = _setup17.getByText;
196
+
197
+ expect(getByText(sentence)).toHaveStyle('font-weight: bold');
198
+ });
199
+ it('should render the default text with light weight', function () {
200
+ var _setup18 = setup({
201
+ children: sentence,
202
+ fontWeight: '100'
203
+ }),
204
+ getByText = _setup18.getByText;
205
+
206
+ expect(getByText(sentence)).toHaveStyle('font-weight: 100');
207
+ });
208
+ it('should render the default text with 200 weight', function () {
209
+ var _setup19 = setup({
210
+ children: sentence,
211
+ fontWeight: '200'
212
+ }),
213
+ getByText = _setup19.getByText;
214
+
215
+ expect(getByText(sentence)).toHaveStyle('font-weight: 200');
216
+ });
217
+ it('should render the default text with 300 weight', function () {
218
+ var _setup20 = setup({
219
+ children: sentence,
220
+ fontWeight: '300'
221
+ }),
222
+ getByText = _setup20.getByText;
223
+
224
+ expect(getByText(sentence)).toHaveStyle('font-weight: 300');
225
+ });
226
+ it('should render the default text with 400 weight', function () {
227
+ var _setup21 = setup({
228
+ children: sentence,
229
+ fontWeight: '400'
230
+ }),
231
+ getByText = _setup21.getByText;
232
+
233
+ expect(getByText(sentence)).toHaveStyle('font-weight: 400');
234
+ });
235
+ it('should render the default text with 500 weight', function () {
236
+ var _setup22 = setup({
237
+ children: sentence,
238
+ fontWeight: '500'
239
+ }),
240
+ getByText = _setup22.getByText;
241
+
242
+ expect(getByText(sentence)).toHaveStyle('font-weight: 500');
243
+ });
244
+ it('should render the default text with 600 weight', function () {
245
+ var _setup23 = setup({
246
+ children: sentence,
247
+ fontWeight: '600'
248
+ }),
249
+ getByText = _setup23.getByText;
250
+
251
+ expect(getByText(sentence)).toHaveStyle('font-weight: 600');
252
+ });
253
+ it('should render the default text with 700 weight', function () {
254
+ var _setup24 = setup({
255
+ children: sentence,
256
+ fontWeight: '700'
257
+ }),
258
+ getByText = _setup24.getByText;
259
+
260
+ expect(getByText(sentence)).toHaveStyle('font-weight: 700');
261
+ });
262
+ it('should render the default text with 800 weight', function () {
263
+ var _setup25 = setup({
264
+ children: sentence,
265
+ fontWeight: '800'
266
+ }),
267
+ getByText = _setup25.getByText;
268
+
269
+ expect(getByText(sentence)).toHaveStyle('font-weight: 800');
270
+ });
271
+ it('should render the default text with 900 weight', function () {
272
+ var _setup26 = setup({
273
+ children: sentence,
274
+ fontWeight: '900'
275
+ }),
276
+ getByText = _setup26.getByText;
277
+
278
+ expect(getByText(sentence)).toHaveStyle('font-weight: 900');
279
+ });
280
+ it('should render the default text with italic style', function () {
281
+ var _setup27 = setup({
282
+ children: sentence,
283
+ fontStyle: 'italic'
284
+ }),
285
+ getByText = _setup27.getByText;
286
+
287
+ expect(getByText(sentence)).toHaveStyle('font-style: italic');
288
+ });
289
+ it('should render the default text with normal style', function () {
290
+ var _setup28 = setup({
291
+ children: sentence,
292
+ fontStyle: 'normal'
293
+ }),
294
+ getByText = _setup28.getByText;
295
+
296
+ expect(getByText(sentence)).toHaveStyle('font-style: normal');
297
+ });
298
+ it('should render the default text with oblique style', function () {
299
+ var _setup29 = setup({
300
+ children: sentence,
301
+ fontStyle: 'oblique'
302
+ }),
303
+ getByText = _setup29.getByText;
304
+
305
+ expect(getByText(sentence)).toHaveStyle('font-style: oblique');
306
+ });
307
+ it('should render the default text with underline style', function () {
308
+ var _setup30 = setup({
309
+ children: sentence,
310
+ textDecoration: 'underline'
311
+ }),
312
+ getByText = _setup30.getByText;
313
+
314
+ expect(getByText(sentence)).toHaveStyle('text-decoration: underline');
315
+ });
316
+ it('should render the default text with line-through style', function () {
317
+ var _setup31 = setup({
318
+ children: sentence,
319
+ textDecoration: 'line-through'
320
+ }),
321
+ getByText = _setup31.getByText;
322
+
323
+ expect(getByText(sentence)).toHaveStyle('text-decoration: line-through');
324
+ });
325
+ });
package/dist/index.d.ts CHANGED
@@ -52,5 +52,6 @@ export { useKeyPress } from './shared/hooks/useKeyPress';
52
52
  export { useOnClickOutside } from './shared/hooks/useOnClickOutside';
53
53
  export { useWindowSize } from './shared/hooks/useWindowSize';
54
54
  export * from './shared/theme';
55
+ export { iconExists } from './components/Icon/utils/iconExists';
55
56
  export * from './utils/formatters';
56
57
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,u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AGxD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAG7D,cAAc,gBAAgB,CAAC;AAG/B,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,cAAc,oBAAoB,CAAC"}
package/dist/index.js CHANGED
@@ -53,7 +53,8 @@ var _exportNames = {
53
53
  useDisableBodyScroll: true,
54
54
  useKeyPress: true,
55
55
  useOnClickOutside: true,
56
- useWindowSize: true
56
+ useWindowSize: true,
57
+ iconExists: true
57
58
  };
58
59
  Object.defineProperty(exports, "Alert", {
59
60
  enumerable: true,
@@ -307,6 +308,12 @@ Object.defineProperty(exports, "Typography", {
307
308
  return _Typography.default;
308
309
  }
309
310
  });
311
+ Object.defineProperty(exports, "iconExists", {
312
+ enumerable: true,
313
+ get: function get() {
314
+ return _iconExists.iconExists;
315
+ }
316
+ });
310
317
  Object.defineProperty(exports, "useBreakpoints", {
311
318
  enumerable: true,
312
319
  get: function get() {
@@ -498,6 +505,8 @@ Object.keys(_theme).forEach(function (key) {
498
505
  });
499
506
  });
500
507
 
508
+ var _iconExists = require("./components/Icon/utils/iconExists");
509
+
501
510
  var _formatters = require("./utils/formatters");
502
511
 
503
512
  Object.keys(_formatters).forEach(function (key) {
@@ -1 +1 @@
1
- {"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../../src/shared/tests/test-utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAM,MAAM,OAAO,CAAC;AAGzC,OAAO,EAAU,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAW/D,iBAAS,YAAY,CAAC,EAAE,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC,mHAE/E;AAED,OAAO,EAAE,YAAY,IAAI,MAAM,EAAE,CAAC"}
1
+ {"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../../src/shared/tests/test-utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAGrC,OAAO,EAAU,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAa/D,iBAAS,YAAY,CAAC,EAAE,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC,mHAE/E;AAED,OAAO,EAAE,YAAY,IAAI,MAAM,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare type AllTheProvidersProps = {
3
+ children?: React.ReactNode;
4
+ };
5
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/shared/tests/types.ts"],"names":[],"mappings":";AAAA,oBAAY,oBAAoB,GAAG;IACjC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC"}
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,2 @@
1
+ import '@testing-library/jest-dom';
2
+ //# sourceMappingURL=theme.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.test.d.ts","sourceRoot":"","sources":["../../../src/shared/theme/theme.test.tsx"],"names":[],"mappings":"AAEA,OAAO,2BAA2B,CAAC"}