@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.
- package/dist/components/Alert/alert.test.d.ts +2 -0
- package/dist/components/Alert/alert.test.d.ts.map +1 -0
- package/dist/components/Alert/alert.test.js +92 -0
- package/dist/components/Alert/types.d.ts +1 -1
- package/dist/components/Alert/types.d.ts.map +1 -1
- package/dist/components/Avatar/avatar.test.d.ts +2 -0
- package/dist/components/Avatar/avatar.test.d.ts.map +1 -0
- package/dist/components/Avatar/avatar.test.js +74 -0
- package/dist/components/Avatar/types.d.ts +1 -1
- package/dist/components/Avatar/types.d.ts.map +1 -1
- package/dist/components/Badge/badge.test.d.ts +2 -0
- package/dist/components/Badge/badge.test.d.ts.map +1 -0
- package/dist/components/Badge/badge.test.js +82 -0
- package/dist/components/Button/Button.test.d.ts +2 -0
- package/dist/components/Button/Button.test.d.ts.map +1 -0
- package/dist/components/Button/Button.test.js +172 -0
- package/dist/components/Card/card.test.d.ts +2 -0
- package/dist/components/Card/card.test.d.ts.map +1 -0
- package/dist/components/Card/card.test.js +37 -0
- package/dist/components/CheckboxInput/checkbox-input.test.d.ts +2 -0
- package/dist/components/CheckboxInput/checkbox-input.test.d.ts.map +1 -0
- package/dist/components/CheckboxInput/checkbox-input.test.js +194 -0
- package/dist/components/CollapseCard/expand-button.test.d.ts +2 -0
- package/dist/components/CollapseCard/expand-button.test.d.ts.map +1 -0
- package/dist/components/CollapseCard/expand-button.test.js +196 -0
- package/dist/components/ColorPicker/colorpicker.test.d.ts +2 -0
- package/dist/components/ColorPicker/colorpicker.test.d.ts.map +1 -0
- package/dist/components/ColorPicker/colorpicker.test.js +74 -0
- package/dist/components/DateInput/dateInput.test.d.ts +2 -0
- package/dist/components/DateInput/dateInput.test.d.ts.map +1 -0
- package/dist/components/DateInput/dateInput.test.js +52 -0
- package/dist/components/DatePicker/datepicker.test.d.ts +2 -0
- package/dist/components/DatePicker/datepicker.test.d.ts.map +1 -0
- package/dist/components/DatePicker/datepicker.test.js +138 -0
- package/dist/components/Dialog/dialog.test.d.ts +2 -0
- package/dist/components/Dialog/dialog.test.d.ts.map +1 -0
- package/dist/components/Dialog/dialog.test.js +81 -0
- package/dist/components/Dropzone/dropzone.test.d.ts +2 -0
- package/dist/components/Dropzone/dropzone.test.d.ts.map +1 -0
- package/dist/components/Dropzone/dropzone.test.js +79 -0
- package/dist/components/Flex/flex.test.d.ts +2 -0
- package/dist/components/Flex/flex.test.d.ts.map +1 -0
- package/dist/components/Flex/flex.test.js +355 -0
- package/dist/components/Flex/styles.js +1 -1
- package/dist/components/Flex/types.d.ts +1 -1
- package/dist/components/Flex/types.d.ts.map +1 -1
- package/dist/components/Grid/grid.test.d.ts +2 -0
- package/dist/components/Grid/grid.test.d.ts.map +1 -0
- package/dist/components/Grid/grid.test.js +140 -0
- package/dist/components/Icon/data/dash.js +1 -1
- package/dist/components/Icon/icon.test.d.ts +2 -0
- package/dist/components/Icon/icon.test.d.ts.map +1 -0
- package/dist/components/Icon/icon.test.js +70 -0
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/Icon/types.d.ts.map +1 -1
- package/dist/components/Icon/utils/iconExists.d.ts +5 -0
- package/dist/components/Icon/utils/iconExists.d.ts.map +1 -0
- package/dist/components/Icon/utils/iconExists.js +16 -0
- package/dist/components/IconItem/IconItem.test.d.ts +2 -0
- package/dist/components/IconItem/IconItem.test.d.ts.map +1 -0
- package/dist/components/IconItem/IconItem.test.js +68 -0
- package/dist/components/IconItem/types.d.ts +1 -1
- package/dist/components/IconItem/types.d.ts.map +1 -1
- package/dist/components/Illustration/illustration.test.d.ts +2 -0
- package/dist/components/Illustration/illustration.test.d.ts.map +1 -0
- package/dist/components/Illustration/illustration.test.js +61 -0
- package/dist/components/ImageItem/input.test.d.ts +2 -0
- package/dist/components/ImageItem/input.test.d.ts.map +1 -0
- package/dist/components/ImageItem/input.test.js +101 -0
- package/dist/components/Input/input.test.d.ts +2 -0
- package/dist/components/Input/input.test.d.ts.map +1 -0
- package/dist/components/Input/input.test.js +144 -0
- package/dist/components/Label/label.test.d.ts +2 -0
- package/dist/components/Label/label.test.d.ts.map +1 -0
- package/dist/components/Label/label.test.js +105 -0
- package/dist/components/List/list.test.d.ts +2 -0
- package/dist/components/List/list.test.d.ts.map +1 -0
- package/dist/components/List/list.test.js +71 -0
- package/dist/components/List/types.d.ts +1 -0
- package/dist/components/List/types.d.ts.map +1 -1
- package/dist/components/Modal/modal.test.d.ts +2 -0
- package/dist/components/Modal/modal.test.d.ts.map +1 -0
- package/dist/components/Modal/modal.test.js +197 -0
- package/dist/components/MultipleSelect/MultipleSelect.test.d.ts +2 -0
- package/dist/components/MultipleSelect/MultipleSelect.test.d.ts.map +1 -0
- package/dist/components/MultipleSelect/MultipleSelect.test.js +447 -0
- package/dist/components/MultipleSelect/types.d.ts +1 -1
- package/dist/components/MultipleSelect/types.d.ts.map +1 -1
- package/dist/components/Pagination/pagination.test.d.ts +2 -0
- package/dist/components/Pagination/pagination.test.d.ts.map +1 -0
- package/dist/components/Pagination/pagination.test.js +152 -0
- package/dist/components/Pagination/types.d.ts +1 -1
- package/dist/components/Pagination/types.d.ts.map +1 -1
- package/dist/components/Progress/progress.test.d.ts +2 -0
- package/dist/components/Progress/progress.test.d.ts.map +1 -0
- package/dist/components/Progress/progress.test.js +126 -0
- package/dist/components/RadioInput/radio-input.test.d.ts +2 -0
- package/dist/components/RadioInput/radio-input.test.d.ts.map +1 -0
- package/dist/components/RadioInput/radio-input.test.js +208 -0
- package/dist/components/Rating/rating.test.d.ts +2 -0
- package/dist/components/Rating/rating.test.d.ts.map +1 -0
- package/dist/components/Rating/rating.test.js +79 -0
- package/dist/components/ReactPortal/reactPortal.test.d.ts +2 -0
- package/dist/components/ReactPortal/reactPortal.test.d.ts.map +1 -0
- package/dist/components/ReactPortal/reactPortal.test.js +26 -0
- package/dist/components/Select/components/OptionsSelect/styles.d.ts +2 -253
- package/dist/components/Select/components/OptionsSelect/styles.d.ts.map +1 -1
- package/dist/components/Select/components/OptionsSelect/styles.js +2 -3
- package/dist/components/Select/select.test.d.ts +2 -0
- package/dist/components/Select/select.test.d.ts.map +1 -0
- package/dist/components/Select/select.test.js +67 -0
- package/dist/components/Skeleton/skeleton.test.d.ts +2 -0
- package/dist/components/Skeleton/skeleton.test.d.ts.map +1 -0
- package/dist/components/Skeleton/skeleton.test.js +106 -0
- package/dist/components/Slider/slider.test.d.ts +2 -0
- package/dist/components/Slider/slider.test.d.ts.map +1 -0
- package/dist/components/Slider/slider.test.js +134 -0
- package/dist/components/Spinner/spinner.test.d.ts +2 -0
- package/dist/components/Spinner/spinner.test.d.ts.map +1 -0
- package/dist/components/Spinner/spinner.test.js +55 -0
- package/dist/components/Spinner/types.d.ts +1 -1
- package/dist/components/Spinner/types.d.ts.map +1 -1
- package/dist/components/Steps/steps.test.d.ts +2 -0
- package/dist/components/Steps/steps.test.d.ts.map +1 -0
- package/dist/components/Steps/steps.test.js +63 -0
- package/dist/components/Switch/switch.test.d.ts +2 -0
- package/dist/components/Switch/switch.test.d.ts.map +1 -0
- package/dist/components/Switch/switch.test.js +253 -0
- package/dist/components/Table/components/TableSkeleton.d.ts +4 -0
- package/dist/components/Table/components/TableSkeleton.d.ts.map +1 -0
- package/dist/components/Table/components/TableSkeleton.js +45 -0
- package/dist/components/Table/index.d.ts +1 -1
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +14 -2
- package/dist/components/Table/table.test.d.ts +2 -0
- package/dist/components/Table/table.test.d.ts.map +1 -0
- package/dist/components/Table/table.test.js +130 -0
- package/dist/components/Table/types.d.ts +14 -0
- package/dist/components/Table/types.d.ts.map +1 -1
- package/dist/components/Tabs/tabs.test.d.ts +2 -0
- package/dist/components/Tabs/tabs.test.d.ts.map +1 -0
- package/dist/components/Tabs/tabs.test.js +159 -0
- package/dist/components/Tag/tag.test.d.ts +2 -0
- package/dist/components/Tag/tag.test.d.ts.map +1 -0
- package/dist/components/Tag/tag.test.js +78 -0
- package/dist/components/TextAreaInput/text-area-input.test.d.ts +2 -0
- package/dist/components/TextAreaInput/text-area-input.test.d.ts.map +1 -0
- package/dist/components/TextAreaInput/text-area-input.test.js +96 -0
- package/dist/components/Thumbnail/thumbnail.test.d.ts +2 -0
- package/dist/components/Thumbnail/thumbnail.test.d.ts.map +1 -0
- package/dist/components/Thumbnail/thumbnail.test.js +82 -0
- package/dist/components/Timeline/timeline.test.d.ts +2 -0
- package/dist/components/Timeline/timeline.test.d.ts.map +1 -0
- package/dist/components/Timeline/timeline.test.js +152 -0
- package/dist/components/Toast/contexts/ToastProvider.d.ts +4 -4
- package/dist/components/Toast/contexts/ToastProvider.d.ts.map +1 -1
- package/dist/components/Toast/toast.test.d.ts +2 -0
- package/dist/components/Toast/toast.test.d.ts.map +1 -0
- package/dist/components/Toast/toast.test.js +139 -0
- package/dist/components/Toast/types.d.ts +4 -1
- package/dist/components/Toast/types.d.ts.map +1 -1
- package/dist/components/Typography/typography.test.d.ts +2 -0
- package/dist/components/Typography/typography.test.d.ts.map +1 -0
- package/dist/components/Typography/typography.test.js +325 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -1
- package/dist/shared/tests/test-utils.d.ts.map +1 -1
- package/dist/shared/tests/types.d.ts +5 -0
- package/dist/shared/tests/types.d.ts.map +1 -0
- package/dist/shared/tests/types.js +1 -0
- package/dist/shared/theme/theme.test.d.ts +2 -0
- package/dist/shared/theme/theme.test.d.ts.map +1 -0
- package/dist/shared/theme/theme.test.js +116 -0
- package/package.json +6 -9
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.test.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/icon.test.tsx"],"names":[],"mappings":"AAGA,OAAO,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _testUtils = require("../../shared/tests/test-utils");
|
|
4
|
+
|
|
5
|
+
var _react = require("@testing-library/react");
|
|
6
|
+
|
|
7
|
+
require("@testing-library/jest-dom");
|
|
8
|
+
|
|
9
|
+
var _ = _interopRequireDefault(require("."));
|
|
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
|
+
var utils = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, _objectSpread({
|
|
23
|
+
"data-testid": "icon"
|
|
24
|
+
}, props)));
|
|
25
|
+
|
|
26
|
+
var icon = _react.screen.getByTestId('icon');
|
|
27
|
+
|
|
28
|
+
return _objectSpread(_objectSpread({}, utils), {}, {
|
|
29
|
+
icon: icon
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
describe('Icon', function () {
|
|
34
|
+
it('should to render icon component', function () {
|
|
35
|
+
var _setup = setup({
|
|
36
|
+
name: 'check',
|
|
37
|
+
color: 'primary.default'
|
|
38
|
+
}),
|
|
39
|
+
icon = _setup.icon;
|
|
40
|
+
|
|
41
|
+
expect(icon).toBeInTheDocument();
|
|
42
|
+
});
|
|
43
|
+
it('should to render icon component with size', function () {
|
|
44
|
+
var _setup2 = setup({
|
|
45
|
+
name: 'check',
|
|
46
|
+
size: '1rem',
|
|
47
|
+
color: 'background.light'
|
|
48
|
+
}),
|
|
49
|
+
icon = _setup2.icon;
|
|
50
|
+
|
|
51
|
+
expect(icon).toHaveAttribute('width', '1rem');
|
|
52
|
+
expect(icon).toHaveAttribute('height', '1rem');
|
|
53
|
+
});
|
|
54
|
+
it('should to render payment icon component', function () {
|
|
55
|
+
var _setup3 = setup({
|
|
56
|
+
name: 'pmt-paypal'
|
|
57
|
+
}),
|
|
58
|
+
icon = _setup3.icon;
|
|
59
|
+
|
|
60
|
+
expect(icon).toBeInTheDocument();
|
|
61
|
+
});
|
|
62
|
+
it('should to render illustration icon component', function () {
|
|
63
|
+
var _setup4 = setup({
|
|
64
|
+
name: 'illust-banking-billet'
|
|
65
|
+
}),
|
|
66
|
+
icon = _setup4.icon;
|
|
67
|
+
|
|
68
|
+
expect(icon).toBeInTheDocument();
|
|
69
|
+
});
|
|
70
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GlobalColorsProps } from '../../shared/theme';
|
|
2
|
-
export declare type IconName = 'activity' | 'adjustments-horizontal' | 'ai' | 'airplay' | 'alert-circle' | 'alert-octagon' | 'alert-triangle' | 'align-center' | 'align-justify' | 'align-left' | 'align-right' | 'anchor' | 'aperture' | 'archive' | 'arrow-down-circle' | 'arrow-down-left' | 'arrow-down-right' | 'arrow-down' | 'arrow-left-circle' | 'arrow-left' | 'arrow-right-circle' | 'arrow-right' | 'arrow-up-circle' | 'arrow-up-left' | 'arrow-up-right' | 'arrow-up' | 'at-sign' | 'award' | 'bank' | 'bar-chart-2' | 'bar-chart' | 'barcode' | 'barcode1' | 'battery-charging' | 'battery' | 'bell-off' | 'bell' | 'billet' | 'bluetooth' | 'bold' | 'book-open' | 'book' | 'bookmark' | 'box' | 'briefcase' | 'calendar' | 'camera-off' | 'camera' | 'capsules' | 'card-and-code' | 'card' | 'card1' | 'card2' | 'cardcredit' | 'cash' | 'cast' | 'check-circle-outlined' | 'check-circle' | 'check-square' | 'check' | 'cheque' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'chevrons-down' | 'chevrons-left' | 'chevrons-right' | 'chevrons-up' | 'chrome' | 'circle' | 'clipboard' | 'clock' | 'cloud-drizzle' | 'cloud-off' | 'cloud-snow' | 'cloud' | 'code' | 'codepen' | 'codesandbox' | 'coffee' | 'coin' | 'color' | 'columns' | 'command' | 'compass' | 'connect' | 'copy' | 'corner-down-left' | 'corner-down-right' | 'corner-left-down' | 'corner-left-up' | 'corner-right-down' | 'corner-right-up' | 'corner-up-left' | 'corner-up-right' | 'cpu' | 'crop' | 'crosshair' | 'csv' | 'database' | 'delete' | 'desktop' | 'disc' | 'dislike' | 'dna' | 'dollar-sign' | 'double-check' | 'download-cloud' | 'download' | 'droplet' | 'duplicate' | 'edit-3' | 'edit' | 'editor-align-center' | 'editor-align-justify' | 'editor-align-left' | 'editor-align-right' | 'editor-blockquotes' | 'editor-bold' | 'editor-clear-marks' | 'editor-clear-nodes' | 'editor-code-block' | 'editor-h1' | 'editor-h2' | 'editor-h3' | 'editor-h4' | 'editor-h5' | 'editor-h6' | 'editor-hard-break' | 'editor-horizontal-rule' | 'editor-italic' | 'editor-ordered-list' | 'editor-paragraph' | 'editor-redo' | 'editor-strike' | 'editor-underline' | 'editor-undo' | 'editor-unordered-list' | 'equal' | 'expand' | 'external-link' | 'eye-off' | 'eye' | 'facebook' | 'fast-forward' | 'feather' | '
|
|
2
|
+
export declare type IconName = 'activity' | 'adjustments-horizontal' | 'ai' | 'airplay' | 'alert-circle' | 'alert-octagon' | 'alert-triangle' | 'align-center' | 'align-justify' | 'align-left' | 'align-right' | 'anchor' | 'aperture' | 'archive' | 'arrow-down-circle' | 'arrow-down-left' | 'arrow-down-right' | 'arrow-down' | 'arrow-left-circle' | 'arrow-left' | 'arrow-right-circle' | 'arrow-right' | 'arrow-up-circle' | 'arrow-up-left' | 'arrow-up-right' | 'arrow-up' | 'at-sign' | 'award' | 'bank' | 'bar-chart-2' | 'bar-chart' | 'barcode' | 'barcode1' | 'battery-charging' | 'battery' | 'bell-off' | 'bell' | 'billet' | 'bluetooth' | 'bold' | 'book-open' | 'book' | 'bookmark' | 'box' | 'briefcase' | 'calendar' | 'camera-off' | 'camera' | 'capsules' | 'card-and-code' | 'card' | 'card1' | 'card2' | 'cardcredit' | 'cash' | 'cast' | 'check-circle-outlined' | 'check-circle' | 'check-square' | 'check' | 'cheque' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'chevrons-down' | 'chevrons-left' | 'chevrons-right' | 'chevrons-up' | 'chrome' | 'circle' | 'clipboard' | 'clock' | 'cloud-drizzle' | 'cloud-off' | 'cloud-snow' | 'cloud' | 'code' | 'codepen' | 'codesandbox' | 'coffee' | 'coin' | 'color' | 'columns' | 'command' | 'compass' | 'connect' | 'copy' | 'corner-down-left' | 'corner-down-right' | 'corner-left-down' | 'corner-left-up' | 'corner-right-down' | 'corner-right-up' | 'corner-up-left' | 'corner-up-right' | 'cpu' | 'crop' | 'crosshair' | 'csv' | 'database' | 'delete' | 'desktop' | 'disc' | 'dislike' | 'dna' | 'dollar-sign' | 'double-check' | 'download-cloud' | 'download' | 'droplet' | 'duplicate' | 'edit-3' | 'edit' | 'editor-align-center' | 'editor-align-justify' | 'editor-align-left' | 'editor-align-right' | 'editor-blockquotes' | 'editor-bold' | 'editor-clear-marks' | 'editor-clear-nodes' | 'editor-code-block' | 'editor-h1' | 'editor-h2' | 'editor-h3' | 'editor-h4' | 'editor-h5' | 'editor-h6' | 'editor-hard-break' | 'editor-horizontal-rule' | 'editor-italic' | 'editor-ordered-list' | 'editor-paragraph' | 'editor-redo' | 'editor-strike' | 'editor-underline' | 'editor-undo' | 'editor-unordered-list' | 'equal' | 'expand' | 'external-link' | 'eye-off' | 'eye' | 'facebook' | 'fast-forward' | 'feather' | 'figma' | 'file-plus' | 'file-text' | 'file' | 'film' | 'filter' | 'fi_youtube' | 'flag' | 'folder-minus' | 'folder-plus' | 'folder' | 'framer' | 'frown' | 'genre' | 'gift' | 'git-branch' | 'git-commit' | 'git-pull-request' | 'github' | 'gitlab' | 'globe' | 'grid' | 'hard-drive' | 'hash' | 'headphones' | 'heart' | 'help-circle' | 'hexagon' | 'home' | 'id' | 'image' | 'inbox' | 'inf' | 'info' | 'instagram' | 'italic' | 'key' | 'layers' | 'layout' | 'life-buoy' | 'like' | 'link-2' | 'link' | 'linkedin' | 'list-2' | 'list' | 'listagem' | 'loader' | 'lock' | 'log-in' | 'log-out' | 'machine-money' | 'mail' | 'map-pin' | 'map' | 'maximize-2' | 'maximize' | 'medical' | 'meh' | 'menu' | 'message-square' | 'mic-off' | 'mic' | 'minimize-2' | 'minimize' | 'minus-circle' | 'minus-square' | 'minus' | 'money' | 'moneylist' | 'monitor' | 'moon' | 'more-horizontal' | 'more-vertical' | 'mouse-pointer' | 'move' | 'music' | 'navigation-2' | 'navigation' | 'octagon' | 'package' | 'paperclip' | 'pause-2' | 'pause-circle' | 'pause' | 'pdf' | 'pen-tool' | 'percent' | 'phone-call' | 'phone-incoming' | 'phone-msg' | 'phone-off' | 'phone-outgoing' | 'pie-chart' | 'pin' | 'pix' | 'play-circle' | 'play' | 'plug' | 'plus-circle' | 'plus-square' | 'plus' | 'pocket' | 'power' | 'pp-extended' | 'pp' | 'printer' | 'radio' | 'real' | 'refresh-ccw' | 'refresh-cw' | 'repeat' | 'revenue-plus' | 'revenue' | 'rewind' | 'robot' | 'rotate-ccw' | 'rotate-cw' | 'rotate' | 'rss' | 'save' | 'scissors' | 'search' | 'send' | 'server' | 'settings' | 'share-2' | 'share' | 'shield-off' | 'shield' | 'shop' | 'shopping-bag' | 'shopping-cart' | 'shuffle' | 'sidebar' | 'skip-back' | 'skip-forward' | 'slack' | 'slash' | 'sliders' | 'smartphone' | 'smile' | 'speaker' | 'square' | 'star' | 'stop-circle' | 'sun' | 'sunrise' | 'sunset' | 'sync' | 'tablet' | 'tag' | 'target' | 'terminal' | 'thermometer' | 'thumbs-down' | 'thumbs-up' | 'toggle-left' | 'toggle-right' | 'tool' | 'trash-2' | 'trash' | 'trello' | 'trending-down' | 'trending-up' | 'triangle' | 'truck' | 'tv' | 'twitch' | 'twitter' | 'type' | 'umbrella' | 'underline' | 'unlock' | 'upload-cloud' | 'upload' | 'user-check' | 'user-minus' | 'user-plus' | 'user-x' | 'user' | 'user2-out' | 'users' | 'video-off' | 'video' | 'vigora' | 'voicemail' | 'volume-1' | 'volume-2' | 'volume-x' | 'volume' | 'weight' | 'whatsapp' | 'wifi-off' | 'wifi' | 'wifi2' | 'wind' | 'x-circle' | 'x-octagon' | 'x-square' | 'x' | 'xls' | 'zap-off' | 'zap' | 'zoom-in' | 'zoom-out' | 'zoom' | 'ecc-budget' | 'ecc-card' | 'ecc-cart' | 'ecc-client' | 'ecc-logout' | 'ecc-loock' | 'ecc-medical' | 'ecc-star' | 'ecc-table' | 'ecc-truck' | 'ecc-user' | 'ecc-www' | 'scl-facebook' | 'scl-google' | 'pmt-amex' | 'pmt-aura' | 'pmt-billet' | 'pmt-dinersclub' | 'pmt-discover' | 'pmt-elo' | 'pmt-hipercard' | 'pmt-jcb' | 'pmt-mastercard' | 'pmt-paypal' | 'pmt-pix' | 'pmt-visa' | 'illust-banking-billet' | 'illust-budget-analysis' | 'illust-budget-available' | 'illust-budget-error' | 'illust-budget-incomplete' | 'illust-card' | 'illust-check-prescription' | 'illust-date' | 'illust-error-prescription' | 'illust-inclusion-order' | 'illust-incomplete-prescription' | 'illust-order-canceled' | 'illust-order-error' | 'illust-order-success' | 'illust-order-withdrawal' | 'illust-pix' | 'illust-preparation-order' | 'illust-retention-prescription' | 'illust-sent-order' | 'illust-success-prescription' | 'bty-baldness' | 'bty-beard' | 'bty-beauty' | 'bty-blue-light' | 'bty-breasts-and-ass' | 'bty-dandruff' | 'bty-deodorants' | 'bty-eyebags-darkcircles' | 'bty-eyebrows-lashes' | 'bty-filler' | 'bty-hair-growth' | 'bty-hair-loss' | 'bty-hair-strengthener' | 'bty-hand-sanitizer' | 'bty-illuminator' | 'bty-moisturizer' | 'bty-mycosis-chilblains' | 'bty-nail-strengthener' | 'bty-neck-arms' | 'bty-pimples' | 'bty-repellent' | 'bty-sunscreen' | 'bty-varicose-veins' | 'bty-warts' | 'bty-white-hair' | 'bty-whitening' | 'bty-wound-healing' | 'bty-wrinkles' | 'hlt-ansiety-stress' | 'hlt-antiemetic' | 'hlt-bach-florals' | 'hlt-bacillus-lacto' | 'hlt-bad-breath' | 'hlt-builder-vase' | 'hlt-cholesterol' | 'hlt-depression' | 'hlt-diabetes' | 'hlt-digestion-reflux' | 'hlt-diuretics' | 'hlt-gases' | 'hlt-gastric-protector' | 'hlt-hangover' | 'hlt-health' | 'hlt-heart-health' | 'hlt-high-pressure' | 'hlt-homeopathy' | 'hlt-immunity' | 'hlt-intestinal-health' | 'hlt-intimate-hygiene' | 'hlt-libido' | 'hlt-live-protector' | 'hlt-longevity' | 'hlt-memory' | 'hlt-menopause' | 'hlt-nutritional-supplement' | 'hlt-pms-cramps' | 'hlt-prostate' | 'hlt-roast' | 'hlt-sexual-health' | 'hlt-sleep-well' | 'hlt-stress' | 'hlt-urinary-tract' | 'hlt-vitamins-minerals' | 'men-baldness' | 'men-beard' | 'men-dough' | 'men-gynecomastia' | 'men-libido' | 'men-men' | 'wmn-breasts-and-ass' | 'wmn-cellulite' | 'wmn-eyelashes-brows' | 'wmn-filler' | 'wmn-hair-growth' | 'wmn-hair-strengthener' | 'wmn-menopause' | 'wmn-pms-cramps' | 'wmn-whitening' | 'wmn-woman' | 'smr-dry-belly' | 'smr-hair' | 'smr-moisturizer' | 'smr-summer' | 'smr-sunscreen' | 'smr-tanning' | 'sts-budget-analysis' | 'sts-budget-available' | 'sts-budget-expired' | 'sts-budget-incomplete' | 'sts-inclusion-order' | 'sts-medication-performed' | 'sts-order-canceled' | 'sts-order-preparation' | 'sts-order-sent' | 'sts-order-withdrawal' | 'sts-revenue-check' | 'sts-revenue-retention' | 'sts-waiting-billet' | 'sts-waiting-card' | 'sts-waiting-repeat-date' | 'ppe-accelerate-metabolism' | 'ppe-articulations' | 'ppe-binge-eating' | 'ppe-bones' | 'ppe-bruises' | 'ppe-candy-will' | 'ppe-carbohydrate-blocker' | 'ppe-carbohydrate-blocker2' | 'ppe-cellulite-stretch-marks' | 'ppe-cellulite' | 'ppe-conductive-vessel' | 'ppe-detox' | 'ppe-dough' | 'ppe-dry-belly' | 'ppe-energy' | 'ppe-fatty-acids' | 'ppe-fibers' | 'ppe-gh' | 'ppe-gynecomastia' | 'ppe-increase-satiety' | 'ppe-increased-appetite' | 'ppe-inhibit-appetite' | 'ppe-laxative' | 'ppe-lipolitical-action' | 'ppe-localized-fat' | 'ppe-muscle-definition' | 'ppe-pain' | 'ppe-physical-perfomance' | 'ppe-post-workout' | 'ppe-pre-workout' | 'ppe-pro-hormonal' | 'ppe-reduction-measures' | 'ppe-slimming-chocolates' | 'ppe-slimming-gums' | 'ppe-slimming' | 'ppe-strength' | 'ppe-tcp' | 'ppe-thermogenic' | 'ppe-vasodilation' | 'form-bar' | 'form-capsule' | 'form-chocolate' | 'form-cookie' | 'form-cream' | 'form-enamel' | 'form-eyedrop' | 'form-eyeliner' | 'form-floral' | 'form-foam' | 'form-gel' | 'form-gum' | 'form-homeopathy' | 'form-lipstick' | 'form-lollipop' | 'form-lotion' | 'form-oil' | 'form-oralfilm' | 'form-oralpaste' | 'form-others' | 'form-patch' | 'form-pomade' | 'form-pot' | 'form-sachet' | 'form-serum' | 'form-shampoo' | 'form-soapshampoo' | 'form-spray' | 'form-sublingual' | 'form-sunscreen' | 'form-syringe' | 'form-syrup' | 'form-tablet' | 'form-units' | 'pp-colored-extended' | 'pp-colored';
|
|
3
3
|
export declare type IIconComponentProps = {
|
|
4
4
|
name: IconName;
|
|
5
5
|
size?: number | string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,oBAAY,QAAQ,GAChB,UAAU,GACV,wBAAwB,GACxB,IAAI,GACJ,SAAS,GACT,cAAc,GACd,eAAe,GACf,gBAAgB,GAChB,cAAc,GACd,eAAe,GACf,YAAY,GACZ,aAAa,GACb,QAAQ,GACR,UAAU,GACV,SAAS,GACT,mBAAmB,GACnB,iBAAiB,GACjB,kBAAkB,GAClB,YAAY,GACZ,mBAAmB,GACnB,YAAY,GACZ,oBAAoB,GACpB,aAAa,GACb,iBAAiB,GACjB,eAAe,GACf,gBAAgB,GAChB,UAAU,GACV,SAAS,GACT,OAAO,GACP,MAAM,GACN,aAAa,GACb,WAAW,GACX,SAAS,GACT,UAAU,GACV,kBAAkB,GAClB,SAAS,GACT,UAAU,GACV,MAAM,GACN,QAAQ,GACR,WAAW,GACX,MAAM,GACN,WAAW,GACX,MAAM,GACN,UAAU,GACV,KAAK,GACL,WAAW,GACX,UAAU,GACV,YAAY,GACZ,QAAQ,GACR,UAAU,GACV,eAAe,GACf,MAAM,GACN,OAAO,GACP,OAAO,GACP,YAAY,GACZ,MAAM,GACN,MAAM,GACN,uBAAuB,GACvB,cAAc,GACd,cAAc,GACd,OAAO,GACP,QAAQ,GACR,cAAc,GACd,cAAc,GACd,eAAe,GACf,YAAY,GACZ,eAAe,GACf,eAAe,GACf,gBAAgB,GAChB,aAAa,GACb,QAAQ,GACR,QAAQ,GACR,WAAW,GACX,OAAO,GACP,eAAe,GACf,WAAW,GACX,YAAY,GACZ,OAAO,GACP,MAAM,GACN,SAAS,GACT,aAAa,GACb,QAAQ,GACR,MAAM,GACN,OAAO,GACP,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,MAAM,GACN,kBAAkB,GAClB,mBAAmB,GACnB,kBAAkB,GAClB,gBAAgB,GAChB,mBAAmB,GACnB,iBAAiB,GACjB,gBAAgB,GAChB,iBAAiB,GACjB,KAAK,GACL,MAAM,GACN,WAAW,GACX,KAAK,GACL,UAAU,GACV,QAAQ,GACR,SAAS,GACT,MAAM,GACN,SAAS,GACT,KAAK,GACL,aAAa,GACb,cAAc,GACd,gBAAgB,GAChB,UAAU,GACV,SAAS,GACT,WAAW,GACX,QAAQ,GACR,MAAM,GACN,qBAAqB,GACrB,sBAAsB,GACtB,mBAAmB,GACnB,oBAAoB,GACpB,oBAAoB,GACpB,aAAa,GACb,oBAAoB,GACpB,oBAAoB,GACpB,mBAAmB,GACnB,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,mBAAmB,GACnB,wBAAwB,GACxB,eAAe,GACf,qBAAqB,GACrB,kBAAkB,GAClB,aAAa,GACb,eAAe,GACf,kBAAkB,GAClB,aAAa,GACb,uBAAuB,GACvB,OAAO,GACP,QAAQ,GACR,eAAe,GACf,SAAS,GACT,KAAK,GACL,UAAU,GACV,cAAc,GACd,SAAS,GACT,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,oBAAY,QAAQ,GAChB,UAAU,GACV,wBAAwB,GACxB,IAAI,GACJ,SAAS,GACT,cAAc,GACd,eAAe,GACf,gBAAgB,GAChB,cAAc,GACd,eAAe,GACf,YAAY,GACZ,aAAa,GACb,QAAQ,GACR,UAAU,GACV,SAAS,GACT,mBAAmB,GACnB,iBAAiB,GACjB,kBAAkB,GAClB,YAAY,GACZ,mBAAmB,GAC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GACzB,mBAAmB,GACnB,cAAc,GACd,cAAc,GACd,SAAS,GACT,iBAAiB,GACjB,kBAAkB,GAClB,UAAU,GACV,cAAc,GACd,gBAAgB,GAChB,aAAa,GACb,YAAY,GACZ,aAAa,GACb,cAAc,GACd,eAAe,GACf,aAAa,GACb,WAAW,GACX,UAAU,GACV,UAAU,GACV,iBAAiB,GACjB,eAAe,GACf,eAAe,GACf,aAAa,GACb,UAAU,GACV,eAAe,GACf,gBAAgB,GAChB,aAAa,GACb,YAAY,GACZ,aAAa,GACb,UAAU,GACV,aAAa,GACb,YAAY,GACZ,cAAc,GACd,kBAAkB,GAClB,YAAY,GACZ,iBAAiB,GACjB,gBAAgB,GAChB,cAAc,GACd,YAAY,GACZ,aAAa,GACb,YAAY,GACZ,qBAAqB,GACrB,YAAY,CAAC;AAEjB,oBAAY,mBAAmB,GAAG;IAChC,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAC1C,WAAW,CAAC,EAAE,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;CACjD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iconExists.d.ts","sourceRoot":"","sources":["../../../../src/components/Icon/utils/iconExists.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,aAAK,QAAQ,GAAG,QAAQ,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAEzC,wBAAgB,UAAU,CAAC,QAAQ,EAAE,QAAQ,WAI5C"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.iconExists = iconExists;
|
|
7
|
+
|
|
8
|
+
var _allIcons = require("./allIcons");
|
|
9
|
+
|
|
10
|
+
function iconExists(iconName) {
|
|
11
|
+
var iconFound = _allIcons.allIcons.find(function (icon) {
|
|
12
|
+
return icon.name === iconName;
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
return Boolean(iconFound);
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconItem.test.d.ts","sourceRoot":"","sources":["../../../src/components/IconItem/IconItem.test.tsx"],"names":[],"mappings":"AAEA,OAAO,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
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 utils;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
describe('IconItem', function () {
|
|
25
|
+
it('should it render the icon item component', function () {
|
|
26
|
+
var _setup = setup({
|
|
27
|
+
icon: 'search',
|
|
28
|
+
title: 'Search',
|
|
29
|
+
description: 'Search component description'
|
|
30
|
+
}),
|
|
31
|
+
container = _setup.container;
|
|
32
|
+
|
|
33
|
+
expect(container).toBeInTheDocument();
|
|
34
|
+
});
|
|
35
|
+
it('should it render the icon item component with sm size', function () {
|
|
36
|
+
var _setup2 = setup({
|
|
37
|
+
icon: 'search',
|
|
38
|
+
title: 'Search',
|
|
39
|
+
description: 'Search component description',
|
|
40
|
+
size: 'sm'
|
|
41
|
+
}),
|
|
42
|
+
container = _setup2.container;
|
|
43
|
+
|
|
44
|
+
expect(container).toBeInTheDocument();
|
|
45
|
+
});
|
|
46
|
+
it('should it render the icon item component with md size', function () {
|
|
47
|
+
var _setup3 = setup({
|
|
48
|
+
icon: 'search',
|
|
49
|
+
title: 'Search',
|
|
50
|
+
description: 'Search component description',
|
|
51
|
+
size: 'md'
|
|
52
|
+
}),
|
|
53
|
+
container = _setup3.container;
|
|
54
|
+
|
|
55
|
+
expect(container).toBeInTheDocument();
|
|
56
|
+
});
|
|
57
|
+
it('should it render the icon item component with lg size', function () {
|
|
58
|
+
var _setup4 = setup({
|
|
59
|
+
icon: 'search',
|
|
60
|
+
title: 'Search',
|
|
61
|
+
description: 'Search component description',
|
|
62
|
+
size: 'lg'
|
|
63
|
+
}),
|
|
64
|
+
container = _setup4.container;
|
|
65
|
+
|
|
66
|
+
expect(container).toBeInTheDocument();
|
|
67
|
+
});
|
|
68
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/IconItem/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/IconItem/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,KAAK,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,oBAAY,aAAa,GAAG;IAC1B,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,KAAK,CAAC,EAAE,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAC1C,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,oBAAY,cAAc,GAAG;IAC3B,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC7B,SAAS,CAAC,EAAE,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAC9C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACnC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"illustration.test.d.ts","sourceRoot":"","sources":["../../../src/components/Illustration/illustration.test.tsx"],"names":[],"mappings":"AAEA,OAAO,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _testUtils = require("../../shared/tests/test-utils");
|
|
4
|
+
|
|
5
|
+
var _react = require("@testing-library/react");
|
|
6
|
+
|
|
7
|
+
require("@testing-library/jest-dom");
|
|
8
|
+
|
|
9
|
+
var _ = _interopRequireDefault(require("."));
|
|
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
|
+
var utils = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, _objectSpread({}, props)));
|
|
23
|
+
|
|
24
|
+
var illustration = _react.screen.getByTestId('illustration');
|
|
25
|
+
|
|
26
|
+
return _objectSpread(_objectSpread({}, utils), {}, {
|
|
27
|
+
illustration: illustration
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
describe('Illustration', function () {
|
|
32
|
+
it('should render the Illustration component with default values', function () {
|
|
33
|
+
var _setup = setup({// name: 'illust-order',
|
|
34
|
+
// iconName: 'x-circle',
|
|
35
|
+
// type: 'error',
|
|
36
|
+
}),
|
|
37
|
+
illustration = _setup.illustration;
|
|
38
|
+
|
|
39
|
+
expect(illustration).toBeInTheDocument();
|
|
40
|
+
});
|
|
41
|
+
it('should render the Illustration with a success type', function () {
|
|
42
|
+
var _setup2 = setup({
|
|
43
|
+
name: 'illust-order',
|
|
44
|
+
iconName: 'check-circle',
|
|
45
|
+
type: 'success'
|
|
46
|
+
}),
|
|
47
|
+
illustration = _setup2.illustration;
|
|
48
|
+
|
|
49
|
+
expect(illustration).toBeInTheDocument();
|
|
50
|
+
});
|
|
51
|
+
it('should render the Illustration component with an error type', function () {
|
|
52
|
+
var _setup3 = setup({
|
|
53
|
+
name: 'illust-order',
|
|
54
|
+
iconName: 'x-circle',
|
|
55
|
+
type: 'error'
|
|
56
|
+
}),
|
|
57
|
+
illustration = _setup3.illustration;
|
|
58
|
+
|
|
59
|
+
expect(illustration).toBeInTheDocument();
|
|
60
|
+
});
|
|
61
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.test.d.ts","sourceRoot":"","sources":["../../../src/components/ImageItem/input.test.tsx"],"names":[],"mappings":"AAEA,OAAO,yCAAyC,CAAC"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _testUtils = require("../../shared/tests/test-utils");
|
|
4
|
+
|
|
5
|
+
require("@testing-library/jest-dom/extend-expect");
|
|
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 asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
14
|
+
|
|
15
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
16
|
+
|
|
17
|
+
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; }
|
|
18
|
+
|
|
19
|
+
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; }
|
|
20
|
+
|
|
21
|
+
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; }
|
|
22
|
+
|
|
23
|
+
var imageMock = /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
24
|
+
style: {
|
|
25
|
+
display: 'flex',
|
|
26
|
+
alignItems: 'center',
|
|
27
|
+
justifyContent: 'center',
|
|
28
|
+
position: 'absolute',
|
|
29
|
+
top: 0,
|
|
30
|
+
left: 0,
|
|
31
|
+
right: 0,
|
|
32
|
+
bottom: 0
|
|
33
|
+
},
|
|
34
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
35
|
+
src: "/img.png",
|
|
36
|
+
alt: "sdsadas"
|
|
37
|
+
})
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
var setup = function setup(props) {
|
|
41
|
+
var utils = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, _objectSpread({}, props)));
|
|
42
|
+
var ImageWrapper = utils.getByTestId('ImageItem-ImageWrapper');
|
|
43
|
+
var DescriptionWrapper = utils.getByTestId('ImageItem-DescriptionWrapper');
|
|
44
|
+
return _objectSpread({
|
|
45
|
+
ImageWrapper: ImageWrapper,
|
|
46
|
+
DescriptionWrapper: DescriptionWrapper
|
|
47
|
+
}, utils);
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
describe('ItemItem', function () {
|
|
51
|
+
it('Should be Rendered', function () {
|
|
52
|
+
var _setup = setup(),
|
|
53
|
+
ImageWrapper = _setup.ImageWrapper,
|
|
54
|
+
DescriptionWrapper = _setup.DescriptionWrapper;
|
|
55
|
+
|
|
56
|
+
expect(ImageWrapper).toBeInTheDocument();
|
|
57
|
+
expect(DescriptionWrapper).toBeInTheDocument();
|
|
58
|
+
});
|
|
59
|
+
it('Should Render Image', function () {
|
|
60
|
+
var _setup2 = setup({
|
|
61
|
+
children: imageMock
|
|
62
|
+
}),
|
|
63
|
+
ImageWrapper = _setup2.ImageWrapper;
|
|
64
|
+
|
|
65
|
+
var image = ImageWrapper.querySelector('img');
|
|
66
|
+
expect(image).toBeInTheDocument();
|
|
67
|
+
});
|
|
68
|
+
it('Should Render Title, Subtitle and Description', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
69
|
+
var title, subtitle, _setup3, findByText, testingTitle, testingSubtitle;
|
|
70
|
+
|
|
71
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
72
|
+
while (1) {
|
|
73
|
+
switch (_context.prev = _context.next) {
|
|
74
|
+
case 0:
|
|
75
|
+
title = 'Testing Title';
|
|
76
|
+
subtitle = 'Testing subtitle';
|
|
77
|
+
_setup3 = setup({
|
|
78
|
+
title: title,
|
|
79
|
+
subtitle: subtitle
|
|
80
|
+
}), findByText = _setup3.findByText;
|
|
81
|
+
_context.next = 5;
|
|
82
|
+
return findByText(title);
|
|
83
|
+
|
|
84
|
+
case 5:
|
|
85
|
+
testingTitle = _context.sent;
|
|
86
|
+
_context.next = 8;
|
|
87
|
+
return findByText(subtitle);
|
|
88
|
+
|
|
89
|
+
case 8:
|
|
90
|
+
testingSubtitle = _context.sent;
|
|
91
|
+
expect(testingTitle.innerHTML).toEqual(title);
|
|
92
|
+
expect(testingSubtitle.innerHTML).toEqual(subtitle);
|
|
93
|
+
|
|
94
|
+
case 11:
|
|
95
|
+
case "end":
|
|
96
|
+
return _context.stop();
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}, _callee);
|
|
100
|
+
})));
|
|
101
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.test.d.ts","sourceRoot":"","sources":["../../../src/components/Input/input.test.tsx"],"names":[],"mappings":"AAGA,OAAO,yCAAyC,CAAC"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _testUtils = require("../../shared/tests/test-utils");
|
|
4
|
+
|
|
5
|
+
var _react = require("@testing-library/react");
|
|
6
|
+
|
|
7
|
+
require("@testing-library/jest-dom/extend-expect");
|
|
8
|
+
|
|
9
|
+
var _ = _interopRequireDefault(require("."));
|
|
10
|
+
|
|
11
|
+
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
12
|
+
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
+
|
|
17
|
+
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; }
|
|
18
|
+
|
|
19
|
+
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; }
|
|
20
|
+
|
|
21
|
+
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; }
|
|
22
|
+
|
|
23
|
+
var setup = function setup(props) {
|
|
24
|
+
var utils = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, _objectSpread({
|
|
25
|
+
"data-testid": "input-component"
|
|
26
|
+
}, props)));
|
|
27
|
+
var input = utils.getByLabelText(props.label);
|
|
28
|
+
return _objectSpread({
|
|
29
|
+
input: input
|
|
30
|
+
}, utils);
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
describe('Input', function () {
|
|
34
|
+
it('should render the input', function () {
|
|
35
|
+
var _setup = setup({
|
|
36
|
+
label: 'E-mail'
|
|
37
|
+
}),
|
|
38
|
+
input = _setup.input;
|
|
39
|
+
|
|
40
|
+
expect(input.getAttribute('aria-label')).toEqual('E-mail');
|
|
41
|
+
});
|
|
42
|
+
it('should render the input and receives a value', function () {
|
|
43
|
+
var _setup2 = setup({
|
|
44
|
+
label: 'E-mail'
|
|
45
|
+
}),
|
|
46
|
+
input = _setup2.input;
|
|
47
|
+
|
|
48
|
+
_react.fireEvent.change(input, {
|
|
49
|
+
target: {
|
|
50
|
+
value: 'teste@teste.com'
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
expect(input.value).toEqual('teste@teste.com');
|
|
55
|
+
});
|
|
56
|
+
it('should render the input with an icon', function () {
|
|
57
|
+
var _input$parentElement;
|
|
58
|
+
|
|
59
|
+
var _setup3 = setup({
|
|
60
|
+
label: 'E-mail',
|
|
61
|
+
withIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
|
|
62
|
+
name: "search",
|
|
63
|
+
color: "neutral.neutral4"
|
|
64
|
+
})
|
|
65
|
+
}),
|
|
66
|
+
input = _setup3.input;
|
|
67
|
+
|
|
68
|
+
expect((_input$parentElement = input.parentElement) === null || _input$parentElement === void 0 ? void 0 : _input$parentElement.querySelectorAll('svg').length).not.toBe(0);
|
|
69
|
+
});
|
|
70
|
+
it('should render input with placeholder', function () {
|
|
71
|
+
var _setup4 = setup({
|
|
72
|
+
label: 'E-mail',
|
|
73
|
+
placeholder: 'Digite seu e-mail'
|
|
74
|
+
}),
|
|
75
|
+
input = _setup4.input;
|
|
76
|
+
|
|
77
|
+
expect(input.getAttribute('placeholder')).toEqual('Digite seu e-mail');
|
|
78
|
+
});
|
|
79
|
+
it('should render the input with an addon', function () {
|
|
80
|
+
var _input$parentElement2, _input$parentElement3, _input$parentElement4, _input$parentElement5;
|
|
81
|
+
|
|
82
|
+
var _setup5 = setup({
|
|
83
|
+
label: 'E-mail',
|
|
84
|
+
withAddon: true,
|
|
85
|
+
addonContent: 'R$'
|
|
86
|
+
}),
|
|
87
|
+
input = _setup5.input;
|
|
88
|
+
|
|
89
|
+
expect((_input$parentElement2 = input.parentElement) === null || _input$parentElement2 === void 0 ? void 0 : (_input$parentElement3 = _input$parentElement2.parentElement) === null || _input$parentElement3 === void 0 ? void 0 : (_input$parentElement4 = _input$parentElement3.parentElement) === null || _input$parentElement4 === void 0 ? void 0 : (_input$parentElement5 = _input$parentElement4.querySelectorAll('div')[0].firstChild) === null || _input$parentElement5 === void 0 ? void 0 : _input$parentElement5.textContent).toBe('R$');
|
|
90
|
+
});
|
|
91
|
+
it('should render the input and hide your value', function () {
|
|
92
|
+
var _setup6 = setup({
|
|
93
|
+
label: 'Senha',
|
|
94
|
+
hiddenContent: true
|
|
95
|
+
}),
|
|
96
|
+
input = _setup6.input;
|
|
97
|
+
|
|
98
|
+
expect(input.getAttribute('type')).toEqual('password');
|
|
99
|
+
});
|
|
100
|
+
it('should focus the input', function () {
|
|
101
|
+
var focusCallback = jest.fn();
|
|
102
|
+
|
|
103
|
+
var _setup7 = setup({
|
|
104
|
+
label: 'E-mail',
|
|
105
|
+
onFocus: function onFocus() {
|
|
106
|
+
return focusCallback();
|
|
107
|
+
}
|
|
108
|
+
}),
|
|
109
|
+
input = _setup7.input;
|
|
110
|
+
|
|
111
|
+
input.focus();
|
|
112
|
+
expect(focusCallback).toHaveBeenCalled();
|
|
113
|
+
});
|
|
114
|
+
it('should focus the input with addon', function () {
|
|
115
|
+
var focusCallback = jest.fn();
|
|
116
|
+
|
|
117
|
+
var _setup8 = setup({
|
|
118
|
+
label: 'E-mail',
|
|
119
|
+
withAddon: true,
|
|
120
|
+
onFocus: function onFocus() {
|
|
121
|
+
return focusCallback();
|
|
122
|
+
}
|
|
123
|
+
}),
|
|
124
|
+
input = _setup8.input;
|
|
125
|
+
|
|
126
|
+
input.focus();
|
|
127
|
+
expect(focusCallback).toHaveBeenCalled();
|
|
128
|
+
});
|
|
129
|
+
it('should hover the input', function () {
|
|
130
|
+
var hoverCallback = jest.fn();
|
|
131
|
+
|
|
132
|
+
var _setup9 = setup({
|
|
133
|
+
label: 'E-mail',
|
|
134
|
+
onMouseMove: function onMouseMove() {
|
|
135
|
+
return hoverCallback();
|
|
136
|
+
}
|
|
137
|
+
}),
|
|
138
|
+
input = _setup9.input;
|
|
139
|
+
|
|
140
|
+
_react.fireEvent.mouseMove(input);
|
|
141
|
+
|
|
142
|
+
expect(hoverCallback).toHaveBeenCalled();
|
|
143
|
+
});
|
|
144
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.test.d.ts","sourceRoot":"","sources":["../../../src/components/Label/label.test.tsx"],"names":[],"mappings":"AAEA,OAAO,yCAAyC,CAAC"}
|