@pedidopago/ui 1.4.0 → 1.4.1

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 (37) hide show
  1. package/dist/components/Modal/styles.d.ts.map +1 -1
  2. package/dist/components/Modal/styles.js +1 -1
  3. package/dist/components/MultipleSelect/components/OptionsArea/index.d.ts +2 -2
  4. package/dist/components/MultipleSelect/components/OptionsArea/index.d.ts.map +1 -1
  5. package/dist/components/MultipleSelect/components/SelectArea/SelectAreaWrapper.d.ts.map +1 -1
  6. package/dist/components/MultipleSelect/components/SelectArea/index.d.ts +2 -2
  7. package/dist/components/MultipleSelect/components/SelectArea/index.d.ts.map +1 -1
  8. package/dist/components/MultipleSelect/components/SelectArea/styles.d.ts +7 -1
  9. package/dist/components/MultipleSelect/components/SelectArea/styles.d.ts.map +1 -1
  10. package/dist/components/MultipleSelect/components/SelectArea/styles.js +11 -3
  11. package/dist/components/MultipleSelect/index.d.ts.map +1 -1
  12. package/dist/components/MultipleSelect/index.js +42 -27
  13. package/dist/components/MultipleSelect/types.d.ts +4 -3
  14. package/dist/components/MultipleSelect/types.d.ts.map +1 -1
  15. package/dist/components/Rating/index.d.ts +3 -4
  16. package/dist/components/Rating/index.d.ts.map +1 -1
  17. package/dist/components/Rating/index.js +143 -58
  18. package/dist/components/Rating/rating.test.d.ts +1 -1
  19. package/dist/components/Rating/rating.test.d.ts.map +1 -1
  20. package/dist/components/Rating/rating.test.js +51 -74
  21. package/dist/components/Rating/styles.d.ts +19 -0
  22. package/dist/components/Rating/styles.d.ts.map +1 -0
  23. package/dist/components/Rating/styles.js +38 -0
  24. package/dist/components/Rating/types.d.ts +16 -25
  25. package/dist/components/Rating/types.d.ts.map +1 -1
  26. package/dist/components/Select/components/OptionsSelect/styles.d.ts +2 -253
  27. package/dist/components/Select/components/OptionsSelect/styles.d.ts.map +1 -1
  28. package/dist/components/Select/components/OptionsSelect/styles.js +2 -3
  29. package/dist/components/Select/index.js +1 -1
  30. package/dist/components/Toast/contexts/ToastProvider.d.ts.map +1 -1
  31. package/dist/components/Toast/contexts/ToastProvider.js +7 -3
  32. package/dist/components/Toast/index.d.ts.map +1 -1
  33. package/dist/components/Toast/index.js +4 -1
  34. package/dist/index.d.ts +1 -1
  35. package/dist/index.d.ts.map +1 -1
  36. package/dist/index.js +2 -2
  37. package/package.json +1 -1
@@ -1,102 +1,79 @@
1
1
  "use strict";
2
2
 
3
+ var _index = require("./index");
4
+
5
+ require("@testing-library/jest-dom");
6
+
3
7
  var _testUtils = require("../../shared/tests/test-utils");
4
8
 
5
9
  var _react = require("@testing-library/react");
6
10
 
7
- require("@testing-library/jest-dom/extend-expect");
8
-
9
- var _ = _interopRequireDefault(require("."));
11
+ var _userEvent = _interopRequireDefault(require("@testing-library/user-event"));
10
12
 
11
13
  var _jsxRuntime = require("react/jsx-runtime");
12
14
 
13
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
16
 
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() {
22
- var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
23
- var utils = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, _objectSpread({}, props)));
24
- var RatingWrapper = utils.getByTestId('rating-wrapper');
25
- var RatingIcon = utils.getByTestId('rating-icon-0');
26
- return _objectSpread({
27
- RatingWrapper: RatingWrapper,
28
- RatingIcon: RatingIcon
29
- }, utils);
30
- };
31
-
32
17
  describe('Rating', function () {
33
- it('Should be Rendered', function () {
34
- var _setup = setup(),
35
- RatingWrapper = _setup.RatingWrapper;
36
-
37
- expect(RatingWrapper).toBeInTheDocument();
38
- expect(RatingWrapper.querySelectorAll('svg').length).toBeGreaterThan(1);
18
+ it('should be rendered', function () {
19
+ (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Rating, {}));
20
+ expect(_react.screen.getAllByRole('button')[4]).toBeInTheDocument();
39
21
  });
40
- it('should be able to render a icon with name prop', function () {
41
- var iconName = 'heart';
22
+ it('should be call onChange when onChange prop is provided', function () {
23
+ var onChange = jest.fn();
24
+ (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Rating, {
25
+ value: 5,
26
+ onChange: onChange
27
+ }));
42
28
 
43
- var _setup2 = setup({
44
- name: iconName
45
- }),
46
- RatingWrapper = _setup2.RatingWrapper;
29
+ _userEvent.default.click(_react.screen.getAllByRole('button')[4]);
47
30
 
48
- var oneSVG = RatingWrapper.querySelector('svg');
49
- var svgName = oneSVG === null || oneSVG === void 0 ? void 0 : oneSVG.getAttribute('name');
50
- expect(svgName).toBe(iconName);
31
+ expect(onChange).toHaveBeenCalled();
51
32
  });
52
- it('should be able to render any quantity of icons', function () {
53
- var _setup3 = setup({
54
- name: 'star',
55
- iconsQuantity: 8
56
- }),
57
- RatingWrapper = _setup3.RatingWrapper;
58
-
59
- var icons = RatingWrapper.querySelectorAll('svg');
60
- var iconsQuantity = icons.length;
61
- expect(iconsQuantity).toEqual(8);
33
+ it('should be able to render any quantity of icons ', function () {
34
+ (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Rating, {
35
+ value: 4,
36
+ quantity: 7
37
+ }));
38
+ expect(_react.screen.getAllByRole('button')[6]).toBeInTheDocument();
62
39
  });
63
40
  it('should be able to fill svg if hover', function () {
64
- var _setup4 = setup({
65
- name: 'star'
66
- }),
67
- RatingIcon = _setup4.RatingIcon;
41
+ (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Rating, {}));
68
42
 
69
- var RatingIconPath = RatingIcon.querySelector('path');
43
+ var RatingIcon = _react.screen.getAllByRole('button')[4];
70
44
 
71
- _react.fireEvent.mouseMove(RatingIconPath);
45
+ _react.fireEvent.mouseMove(RatingIcon);
72
46
 
73
- expect(RatingIcon === null || RatingIcon === void 0 ? void 0 : RatingIcon.style.fill).toBe('url(#star_gradient)');
47
+ expect(RatingIcon === null || RatingIcon === void 0 ? void 0 : RatingIcon.style.fill).not.toBe('none');
74
48
  });
75
49
  it('should be able to change precision', function () {
76
- var _setup5 = setup({
77
- name: 'star',
78
- precision: '1'
79
- }),
80
- RatingIcon = _setup5.RatingIcon;
81
-
82
- var RatingIconPath = RatingIcon.querySelector('path');
83
-
84
- _react.fireEvent.mouseMove(RatingIconPath);
85
-
86
- expect(RatingIcon === null || RatingIcon === void 0 ? void 0 : RatingIcon.style.fill).toBe('yellow');
50
+ (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Rating, {
51
+ value: 4.5,
52
+ precision: 0.5
53
+ }));
54
+ expect(_react.screen.getAllByRole('button')[4]).toBeInTheDocument();
87
55
  });
88
- it('should be able to change primary color', function () {
89
- var _setup6 = setup({
90
- name: 'star',
91
- precision: '1',
92
- primaryColor: 'red'
93
- }),
94
- RatingIcon = _setup6.RatingIcon;
95
-
96
- var RatingIconPath = RatingIcon.querySelector('path');
56
+ it('should be able to change color', function () {
57
+ (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Rating, {
58
+ value: 5,
59
+ colorFilledIcon: "neutral.neutral5"
60
+ }));
97
61
 
98
- _react.fireEvent.mouseMove(RatingIconPath);
62
+ var RatingIcon = _react.screen.getAllByRole('button')[0];
99
63
 
100
- expect(RatingIcon === null || RatingIcon === void 0 ? void 0 : RatingIcon.style.fill).toBe('red');
64
+ expect(RatingIcon.firstChild).toHaveStyle('fill: #587169;');
65
+ });
66
+ it('should be able to change size 40px', function () {
67
+ (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Rating, {
68
+ value: 5,
69
+ size: "40px"
70
+ }));
71
+
72
+ var RatingIcons = _react.screen.getAllByRole('button')[0];
73
+
74
+ expect(RatingIcons.firstChild).toHaveStyle({
75
+ width: 40,
76
+ height: 40
77
+ });
101
78
  });
102
79
  });
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import { ContainerIconsProps } from './types';
3
+ export declare const RatingContainer: import("@emotion/styled").StyledComponent<{
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ as?: import("react").ElementType<any> | undefined;
6
+ } & {
7
+ readOnly: boolean;
8
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
9
+ export declare const ContainerIcon: import("@emotion/styled").StyledComponent<{
10
+ theme?: import("@emotion/react").Theme | undefined;
11
+ as?: import("react").ElementType<any> | undefined;
12
+ } & {
13
+ readOnly: boolean;
14
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
15
+ export declare const ContainerFilled: import("@emotion/styled").StyledComponent<{
16
+ theme?: import("@emotion/react").Theme | undefined;
17
+ as?: import("react").ElementType<any> | undefined;
18
+ } & ContainerIconsProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
19
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Rating/styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,eAAO,MAAM,eAAe;;;;cAA0B,OAAO;yGAQ5D,CAAC;AAEF,eAAO,MAAM,aAAa;;;;cAA0B,OAAO;yGAM1D,CAAC;AAEF,eAAO,MAAM,eAAe;;;+HAM3B,CAAC"}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.RatingContainer = exports.ContainerIcon = exports.ContainerFilled = void 0;
7
+
8
+ var _styled = _interopRequireDefault(require("@emotion/styled"));
9
+
10
+ var _react = require("@emotion/react");
11
+
12
+ var _templateObject, _templateObject2, _templateObject3;
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+
16
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
17
+
18
+ var RatingContainer = _styled.default.div(function (_ref) {
19
+ var readOnly = _ref.readOnly;
20
+ return (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: inline-flex;\n position: relative;\n cursor: pointer;\n pointer-events: ", ";\n text-align: left;\n "])), readOnly ? 'none' : 'auto');
21
+ });
22
+
23
+ exports.RatingContainer = RatingContainer;
24
+
25
+ var ContainerIcon = _styled.default.div(function (_ref2) {
26
+ var readOnly = _ref2.readOnly;
27
+ return (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n cursor: pointer;\n pointer-events: ", ";\n "])), readOnly ? 'none' : 'auto');
28
+ });
29
+
30
+ exports.ContainerIcon = ContainerIcon;
31
+
32
+ var ContainerFilled = _styled.default.div(function (_ref3) {
33
+ var showRatingWithPrecision = _ref3.showRatingWithPrecision,
34
+ activeState = _ref3.activeState;
35
+ return (0, _react.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: ", ";\n overflow: hidden;\n position: absolute;\n "])), showRatingWithPrecision ? "".concat(activeState % 1 * 100, "%") : '0%');
36
+ });
37
+
38
+ exports.ContainerFilled = ContainerFilled;
@@ -1,29 +1,20 @@
1
- import { ExtendThemeProps } from '../../shared/theme';
2
- import { GradientIconName } from './components/GradientIcon/types';
3
- export declare type SizeType = 'small' | 'medium' | 'large';
4
- export declare type IStyleProps = {
5
- primaryColor?: string;
6
- secondaryColor?: string;
7
- theme?: ExtendThemeProps;
8
- disabled?: boolean;
9
- active?: boolean;
10
- size?: SizeType;
11
- isActive?: boolean;
12
- SwitchType?: 'success' | 'error' | 'warning' | 'informative' | 'critical' | 'success_secondary' | 'warning_secondary';
13
- };
14
- export declare type IInputProps = {
15
- name: GradientIconName;
1
+ import { GlobalColorsProps } from '../../shared/theme';
2
+ import { IconName } from '../Icon/types';
3
+ export interface RatingProps {
4
+ precision?: 1 | 0.5 | 0.25;
16
5
  value?: number;
17
- defaultValue?: number;
18
- iconsQuantity?: number;
19
- precision?: '1' | '0.5';
20
- size?: SizeType;
6
+ quantity?: number;
7
+ colorFilledIcon?: GlobalColorsProps | (string & {});
8
+ colorOutlinedIcon?: GlobalColorsProps | (string & {});
9
+ size?: string;
21
10
  readOnly?: boolean;
22
- disabled?: boolean;
23
- primaryColor?: string;
24
- secondaryColor?: string;
25
- strokeColor?: string;
26
- onChangeValue?: (value: number) => void;
11
+ filledIcon?: IconName;
12
+ outlinedIcon?: IconName;
27
13
  onChange?: (value: number) => void;
28
- };
14
+ }
15
+ export interface ContainerIconsProps {
16
+ showRatingWithPrecision?: boolean;
17
+ showEmptyIcon?: boolean;
18
+ activeState: number;
19
+ }
29
20
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Rating/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,oBAAY,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEpD,oBAAY,WAAW,GAAG;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EACP,SAAS,GACT,OAAO,GACP,SAAS,GACT,aAAa,GACb,UAAU,GACV,mBAAmB,GACnB,mBAAmB,CAAC;CACzB,CAAC;AAEF,oBAAY,WAAW,GAAG;IACxB,IAAI,EAAE,gBAAgB,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,GAAG,GAAG,KAAK,CAAC;IACxB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Rating/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,MAAM,WAAW,WAAW;IAC1B,SAAS,CAAC,EAAE,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IACpD,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IACtD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,QAAQ,CAAC;IACtB,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED,MAAM,WAAW,mBAAmB;IAClC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;CACrB"}
@@ -8,259 +8,8 @@ interface OptionsContainerProps {
8
8
  top: string;
9
9
  }
10
10
  export declare const OptionsContainer: import("@emotion/styled").StyledComponent<{
11
- slot?: string | undefined;
12
- title?: string | undefined;
13
- color?: string | undefined;
14
- translate?: "no" | "yes" | undefined;
15
- id?: string | undefined;
16
- hidden?: boolean | undefined;
17
- className?: string | undefined;
18
- lang?: string | undefined;
19
- role?: import("react").AriaRole | undefined;
20
- tabIndex?: number | undefined;
21
- "aria-activedescendant"?: string | undefined;
22
- "aria-atomic"?: (boolean | "false" | "true") | undefined;
23
- "aria-autocomplete"?: "none" | "list" | "inline" | "both" | undefined;
24
- "aria-busy"?: (boolean | "false" | "true") | undefined;
25
- "aria-checked"?: boolean | "mixed" | "false" | "true" | undefined;
26
- "aria-colcount"?: number | undefined;
27
- "aria-colindex"?: number | undefined;
28
- "aria-colspan"?: number | undefined;
29
- "aria-controls"?: string | undefined;
30
- "aria-current"?: boolean | "time" | "page" | "false" | "true" | "step" | "location" | "date" | undefined;
31
- "aria-describedby"?: string | undefined;
32
- "aria-details"?: string | undefined;
33
- "aria-disabled"?: (boolean | "false" | "true") | undefined;
34
- "aria-dropeffect"?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
35
- "aria-errormessage"?: string | undefined;
36
- "aria-expanded"?: (boolean | "false" | "true") | undefined;
37
- "aria-flowto"?: string | undefined;
38
- "aria-grabbed"?: (boolean | "false" | "true") | undefined;
39
- "aria-haspopup"?: boolean | "dialog" | "menu" | "grid" | "listbox" | "false" | "true" | "tree" | undefined;
40
- "aria-hidden"?: (boolean | "false" | "true") | undefined;
41
- "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
42
- "aria-keyshortcuts"?: string | undefined;
43
- "aria-label"?: string | undefined;
44
- "aria-labelledby"?: string | undefined;
45
- "aria-level"?: number | undefined;
46
- "aria-live"?: "off" | "assertive" | "polite" | undefined;
47
- "aria-modal"?: (boolean | "false" | "true") | undefined;
48
- "aria-multiline"?: (boolean | "false" | "true") | undefined;
49
- "aria-multiselectable"?: (boolean | "false" | "true") | undefined;
50
- "aria-orientation"?: "horizontal" | "vertical" | undefined;
51
- "aria-owns"?: string | undefined;
52
- "aria-placeholder"?: string | undefined;
53
- "aria-posinset"?: number | undefined;
54
- "aria-pressed"?: boolean | "mixed" | "false" | "true" | undefined;
55
- "aria-readonly"?: (boolean | "false" | "true") | undefined;
56
- "aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
57
- "aria-required"?: (boolean | "false" | "true") | undefined;
58
- "aria-roledescription"?: string | undefined;
59
- "aria-rowcount"?: number | undefined;
60
- "aria-rowindex"?: number | undefined;
61
- "aria-rowspan"?: number | undefined;
62
- "aria-selected"?: (boolean | "false" | "true") | undefined;
63
- "aria-setsize"?: number | undefined;
64
- "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
65
- "aria-valuemax"?: number | undefined;
66
- "aria-valuemin"?: number | undefined;
67
- "aria-valuenow"?: number | undefined;
68
- "aria-valuetext"?: string | undefined;
69
- children?: import("react").ReactNode;
70
- dangerouslySetInnerHTML?: {
71
- __html: string;
72
- } | undefined;
73
- onCopy?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
74
- onCopyCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
75
- onCut?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
76
- onCutCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
77
- onPaste?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
78
- onPasteCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
79
- onCompositionEnd?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
80
- onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
81
- onCompositionStart?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
82
- onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
83
- onCompositionUpdate?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
84
- onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
85
- onFocus?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
86
- onFocusCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
87
- onBlur?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
88
- onBlurCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
89
- onChange?: import("react").FormEventHandler<HTMLDivElement> | undefined;
90
- onChangeCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
91
- onBeforeInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
92
- onBeforeInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
93
- onInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
94
- onInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
95
- onReset?: import("react").FormEventHandler<HTMLDivElement> | undefined;
96
- onResetCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
97
- onSubmit?: import("react").FormEventHandler<HTMLDivElement> | undefined;
98
- onSubmitCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
99
- onInvalid?: import("react").FormEventHandler<HTMLDivElement> | undefined;
100
- onInvalidCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
101
- onLoad?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
102
- onLoadCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
103
- onError?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
104
- onErrorCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
105
- onKeyDown?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
106
- onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
107
- onKeyPress?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
108
- onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
109
- onKeyUp?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
110
- onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
111
- onAbort?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
112
- onAbortCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
113
- onCanPlay?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
114
- onCanPlayCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
115
- onCanPlayThrough?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
116
- onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
117
- onDurationChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
118
- onDurationChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
119
- onEmptied?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
120
- onEmptiedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
121
- onEncrypted?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
122
- onEncryptedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
123
- onEnded?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
124
- onEndedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
125
- onLoadedData?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
126
- onLoadedDataCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
127
- onLoadedMetadata?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
128
- onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
129
- onLoadStart?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
130
- onLoadStartCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
131
- onPause?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
132
- onPauseCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
133
- onPlay?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
134
- onPlayCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
135
- onPlaying?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
136
- onPlayingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
137
- onProgress?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
138
- onProgressCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
139
- onRateChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
140
- onRateChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
141
- onSeeked?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
142
- onSeekedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
143
- onSeeking?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
144
- onSeekingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
145
- onStalled?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
146
- onStalledCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
147
- onSuspend?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
148
- onSuspendCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
149
- onTimeUpdate?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
150
- onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
151
- onVolumeChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
152
- onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
153
- onWaiting?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
154
- onWaitingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
155
- onAuxClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
156
- onAuxClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
157
- onClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
158
- onClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
159
- onContextMenu?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
160
- onContextMenuCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
161
- onDoubleClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
162
- onDoubleClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
163
- onDragCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
164
- onDragEndCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
165
- onDragEnter?: import("react").DragEventHandler<HTMLDivElement> | undefined;
166
- onDragEnterCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
167
- onDragExit?: import("react").DragEventHandler<HTMLDivElement> | undefined;
168
- onDragExitCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
169
- onDragLeave?: import("react").DragEventHandler<HTMLDivElement> | undefined;
170
- onDragLeaveCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
171
- onDragOver?: import("react").DragEventHandler<HTMLDivElement> | undefined;
172
- onDragOverCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
173
- onDragStartCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
174
- onDrop?: import("react").DragEventHandler<HTMLDivElement> | undefined;
175
- onDropCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
176
- onMouseDown?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
177
- onMouseDownCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
178
- onMouseEnter?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
179
- onMouseLeave?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
180
- onMouseMove?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
181
- onMouseMoveCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
182
- onMouseOut?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
183
- onMouseOutCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
184
- onMouseOver?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
185
- onMouseOverCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
186
- onMouseUp?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
187
- onMouseUpCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
188
- onSelect?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
189
- onSelectCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
190
- onTouchCancel?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
191
- onTouchCancelCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
192
- onTouchEnd?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
193
- onTouchEndCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
194
- onTouchMove?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
195
- onTouchMoveCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
196
- onTouchStart?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
197
- onTouchStartCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
198
- onPointerDown?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
199
- onPointerDownCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
200
- onPointerMove?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
201
- onPointerMoveCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
202
- onPointerUp?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
203
- onPointerUpCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
204
- onPointerCancel?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
205
- onPointerCancelCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
206
- onPointerEnter?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
207
- onPointerEnterCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
208
- onPointerLeave?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
209
- onPointerLeaveCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
210
- onPointerOver?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
211
- onPointerOverCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
212
- onPointerOut?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
213
- onPointerOutCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
214
- onGotPointerCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
215
- onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
216
- onLostPointerCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
217
- onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
218
- onScroll?: import("react").UIEventHandler<HTMLDivElement> | undefined;
219
- onScrollCapture?: import("react").UIEventHandler<HTMLDivElement> | undefined;
220
- onWheel?: import("react").WheelEventHandler<HTMLDivElement> | undefined;
221
- onWheelCapture?: import("react").WheelEventHandler<HTMLDivElement> | undefined;
222
- onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
223
- onAnimationEnd?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
224
- onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
225
- onAnimationIteration?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
226
- onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
227
- onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
228
- onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
229
- defaultChecked?: boolean | undefined;
230
- defaultValue?: string | number | readonly string[] | undefined;
231
- suppressContentEditableWarning?: boolean | undefined;
232
- suppressHydrationWarning?: boolean | undefined;
233
- accessKey?: string | undefined;
234
- contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
235
- contextMenu?: string | undefined;
236
- dir?: string | undefined;
237
- draggable?: (boolean | "false" | "true") | undefined;
238
- placeholder?: string | undefined;
239
- spellCheck?: (boolean | "false" | "true") | undefined;
240
- radioGroup?: string | undefined;
241
- about?: string | undefined;
242
- datatype?: string | undefined;
243
- inlist?: any;
244
- prefix?: string | undefined;
245
- property?: string | undefined;
246
- resource?: string | undefined;
247
- typeof?: string | undefined;
248
- vocab?: string | undefined;
249
- autoCapitalize?: string | undefined;
250
- autoCorrect?: string | undefined;
251
- autoSave?: string | undefined;
252
- itemProp?: string | undefined;
253
- itemScope?: boolean | undefined;
254
- itemType?: string | undefined;
255
- itemID?: string | undefined;
256
- itemRef?: string | undefined;
257
- results?: number | undefined;
258
- security?: string | undefined;
259
- unselectable?: "off" | "on" | undefined;
260
- inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
261
- is?: string | undefined;
262
- } & import("framer-motion").MotionProps & import("react").RefAttributes<HTMLDivElement> & {
263
11
  theme?: import("@emotion/react").Theme | undefined;
264
- } & OptionsContainerProps, {}, {}>;
12
+ as?: import("react").ElementType<any> | undefined;
13
+ } & OptionsContainerProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
265
14
  export {};
266
15
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Select/components/OptionsSelect/styles.ts"],"names":[],"mappings":";AAIA,UAAU,qBAAqB;IAC7B,IAAI,EAAE,OAAO,CAAC;IAEd,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAqC3B,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Select/components/OptionsSelect/styles.ts"],"names":[],"mappings":";AAGA,UAAU,qBAAqB;IAC7B,IAAI,EAAE,OAAO,CAAC;IAEd,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,gBAAgB;;;iIAqC3B,CAAC"}
@@ -9,8 +9,6 @@ var _react = require("@emotion/react");
9
9
 
10
10
  var _styled = _interopRequireDefault(require("@emotion/styled"));
11
11
 
12
- var _framerMotion = require("framer-motion");
13
-
14
12
  var _templateObject;
15
13
 
16
14
  var _excluded = ["theme"];
@@ -23,10 +21,11 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
23
21
 
24
22
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
25
23
 
26
- var OptionsContainer = (0, _styled.default)(_framerMotion.motion.div)(function (_ref) {
24
+ var OptionsContainer = _styled.default.div(function (_ref) {
27
25
  var theme = _ref.theme,
28
26
  props = _objectWithoutProperties(_ref, _excluded);
29
27
 
30
28
  return (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n width: 100%;\n max-width: ", ";\n min-width: ", ";\n max-height: calc(", " - 20px);\n position: fixed;\n left: ", ";\n top: ", ";\n z-index: ", ";\n opacity: ", ";\n pointer-events: ", ";\n transition: opacity ease ", ";\n overflow-y: auto;\n overflow-x: hidden;\n background: ", ";\n border: 2px solid ", ";\n border-radius: ", ";\n\n &::-webkit-scrollbar {\n width: 6px;\n }\n\n &::-webkit-scrollbar-track {\n background: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n border-radius: ", ";\n background: ", ";\n }\n li {\n list-style: none;\n }\n "])), props.maxWidth, props.minWidth || 'initial', props.maxHeight, props.left, props.top, theme.zIndex.level24, props.open ? 1 : 0, props.open ? 'auto' : 'none', theme.transition.speed, theme.colors.background.light, theme.colors.neutral.neutral1, theme.borderRadius.default, theme.borderRadius.default, theme.colors.primary.default);
31
29
  });
30
+
32
31
  exports.OptionsContainer = OptionsContainer;
@@ -225,7 +225,7 @@ var Select = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
225
225
  tabIndex: -1
226
226
  }, rest))]
227
227
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ReactPortal.ReactPortal, {
228
- wrapperId: "portal-root",
228
+ wrapperId: "portal-select",
229
229
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_OptionsSelect.OptionsSelect, {
230
230
  open: optionsMenuOpen,
231
231
  left: "".concat((_containerRef$current3 = containerRef.current) === null || _containerRef$current3 === void 0 ? void 0 : _containerRef$current3.getBoundingClientRect().left, "px"),
@@ -1 +1 @@
1
- {"version":3,"file":"ToastProvider.d.ts","sourceRoot":"","sources":["../../../../src/components/Toast/contexts/ToastProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,EAAE,EAAyB,MAAM,OAAO,CAAC;AAGjE,OAAO,EAA4B,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAExE,eAAO,MAAM,YAAY,6CAA0C,CAAC;AAEpE,QAAA,MAAM,aAAa,EAAE,EAmCpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"ToastProvider.d.ts","sourceRoot":"","sources":["../../../../src/components/Toast/contexts/ToastProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,EAAE,EAAyB,MAAM,OAAO,CAAC;AAGjE,OAAO,EAA4B,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAExE,eAAO,MAAM,YAAY,6CAA0C,CAAC;AAEpE,QAAA,MAAM,aAAa,EAAE,EAqCpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -65,12 +65,16 @@ var ToastProvider = function ToastProvider(_ref) {
65
65
  }, []);
66
66
  var remoteToast = (0, _react.useCallback)(function (id) {
67
67
  setToasts(function (prevState) {
68
- var _filterToast$0$config, _filterToast$0$config2;
69
-
70
68
  var filterToast = prevState.filter(function (toast) {
71
69
  return toast.id === id;
72
70
  });
73
- (_filterToast$0$config = (_filterToast$0$config2 = filterToast[0].config).onClose) === null || _filterToast$0$config === void 0 ? void 0 : _filterToast$0$config.call(_filterToast$0$config2, id);
71
+
72
+ if (filterToast[0]) {
73
+ var _filterToast$0$config, _filterToast$0$config2;
74
+
75
+ (_filterToast$0$config = (_filterToast$0$config2 = filterToast[0].config).onClose) === null || _filterToast$0$config === void 0 ? void 0 : _filterToast$0$config.call(_filterToast$0$config2, id);
76
+ }
77
+
74
78
  return prevState.filter(function (toast) {
75
79
  return toast.id !== id;
76
80
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/index.tsx"],"names":[],"mappings":";AAcA,QAAA,MAAM,cAAc,mBAuFnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/index.tsx"],"names":[],"mappings":";AAeA,QAAA,MAAM,cAAc,mBAuFnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -11,6 +11,8 @@ var _framerMotion = require("framer-motion");
11
11
 
12
12
  var _Toast = _interopRequireDefault(require("./components/Toast"));
13
13
 
14
+ var _ReactPortal = require("../ReactPortal");
15
+
14
16
  var _ToastProvider = require("./contexts/ToastProvider");
15
17
 
16
18
  var _styles = require("./styles");
@@ -30,7 +32,8 @@ var ToastContainer = function ToastContainer() {
30
32
  toasts = _useContext.toasts,
31
33
  remove = _useContext.remove;
32
34
 
33
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Fragment, {
35
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ReactPortal.ReactPortal, {
36
+ wrapperId: "toast-root",
34
37
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.StyledToastContainerOverlay, {
35
38
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.StyledToastManagerOverlay, {
36
39
  position: "top",