@pedidopago/ui 1.7.18 → 1.7.19-0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Dropzone/index.tsx"],"names":[],"mappings":";AAyBA,OAAO,EAAE,aAAa,EAAa,MAAM,SAAS,CAAC;AAEnD,QAAA,MAAM,QAAQ,4KAgBX,aAAa,gBA2Of,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Dropzone/index.tsx"],"names":[],"mappings":";AAyBA,OAAO,EAAE,aAAa,EAAa,MAAM,SAAS,CAAC;AAEnD,QAAA,MAAM,QAAQ,4KAgBX,aAAa,gBAyOf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -9,6 +9,7 @@ var _react = require("react");
9
9
  var _framerMotion = require("framer-motion");
10
10
  var _Icon = _interopRequireDefault(require("../Icon"));
11
11
  var _Flex = _interopRequireDefault(require("../Flex"));
12
+ var _Button = _interopRequireDefault(require("../Button"));
12
13
  var _styles = require("./styles");
13
14
  var _accepts = require("./utils/accepts");
14
15
  var _generateUUID = require("../../utils/generateUUID");
@@ -153,7 +154,6 @@ var Dropzone = function Dropzone(_ref) {
153
154
  };
154
155
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.DropzoneContainer, _objectSpread(_objectSpread({
155
156
  isDraggingOver: isDragging,
156
- haveItems: acceptedFiles.length > 0,
157
157
  isDisabled: disabled,
158
158
  alert: alert
159
159
  }, rest), {}, {
@@ -220,7 +220,7 @@ var Dropzone = function Dropzone(_ref) {
220
220
  })]
221
221
  })
222
222
  }, file.id);
223
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.DropzoneImageAddButton, {
223
+ }), multiple && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.DropzoneImageAddButton, {
224
224
  isDraggingOver: isDragging,
225
225
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
226
226
  name: "plus-circle",
@@ -238,7 +238,7 @@ var Dropzone = function Dropzone(_ref) {
238
238
  },
239
239
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Flex.default, {
240
240
  direction: "column",
241
- spacing: "4",
241
+ spacing: "2",
242
242
  alignItems: "center",
243
243
  justifyContent: "center",
244
244
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_framerMotion.motion.div, {
@@ -275,8 +275,10 @@ var Dropzone = function Dropzone(_ref) {
275
275
  alert: alert,
276
276
  children: helperText || 'ou solte um arquivo aqui'
277
277
  })]
278
- }), !disabledButton && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.DropzoneButton, {
279
- children: [buttonText || 'Selecionar um arquivo', " "]
278
+ }), !disabledButton && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Button.default, {
279
+ variant: "outline",
280
+ bgColor: "neutral.neutral4",
281
+ children: [buttonText || 'Selecionar um arquivo', ' ']
280
282
  })]
281
283
  })
282
284
  })
@@ -6,7 +6,6 @@ export declare const DropzoneContainer: import("@emotion/styled").StyledComponen
6
6
  } & {
7
7
  alert?: DropzoneAlertType | undefined;
8
8
  isDraggingOver: boolean;
9
- haveItems: boolean;
10
9
  isDisabled?: boolean | undefined;
11
10
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
12
11
  export declare const DropzoneInput: import("@emotion/styled").StyledComponent<{
@@ -54,8 +53,4 @@ export declare const DropzoneText: import("@emotion/styled").StyledComponent<imp
54
53
  alert?: DropzoneAlertType | undefined;
55
54
  subinfo?: boolean | undefined;
56
55
  }, {}, {}>;
57
- export declare const DropzoneButton: import("@emotion/styled").StyledComponent<{
58
- theme?: import("@emotion/react").Theme | undefined;
59
- as?: import("react").ElementType<any> | undefined;
60
- }, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
61
56
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Dropzone/styles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAG5C,eAAO,MAAM,iBAAiB;;;;;oBAEZ,OAAO;eACZ,OAAO;;yGA6DnB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;kHAWzB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;yGAwC3B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;oBACjB,OAAO;qHAmCxB,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;qHA8BhC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;qHAY5B,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;UAUxB,CAAC;AAEF,eAAO,MAAM,cAAc;;;qHAiB1B,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Dropzone/styles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAG5C,eAAO,MAAM,iBAAiB;;;;;oBAEZ,OAAO;;yGA0DxB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;kHAWzB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;yGAoC3B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;oBACjB,OAAO;qHA2BxB,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;qHA8BhC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;qHAY5B,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;UAUxB,CAAC"}
@@ -3,45 +3,35 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.DropzoneText = exports.DropzoneRemoveButton = exports.DropzoneInput = exports.DropzoneImageAddButton = exports.DropzoneFilename = exports.DropzoneFileBox = exports.DropzoneContainer = exports.DropzoneButton = void 0;
6
+ exports.DropzoneText = exports.DropzoneRemoveButton = exports.DropzoneInput = exports.DropzoneImageAddButton = exports.DropzoneFilename = exports.DropzoneFileBox = exports.DropzoneContainer = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _styled = _interopRequireDefault(require("@emotion/styled"));
9
9
  var _Typography = _interopRequireDefault(require("../Typography"));
10
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
10
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
12
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
13
- var DropzoneContainer = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n position: relative;\n flex-direction: column;\n justify-content: ", ";\n align-items: ", ";\n flex-wrap: wrap;\n\n ", "\n\n ", "\n\n background-color: ", ";\n\n &:after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: black;\n border-radius: 8px;\n pointer-events: none;\n visibility: hidden;\n opacity: 0;\n }\n\n ", "\n"])), function (_ref) {
14
- var haveItems = _ref.haveItems;
15
- return haveItems ? 'flex-start' : 'center';
13
+ var DropzoneContainer = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n position: relative;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-wrap: wrap;\n padding: 1.5rem 1.625rem;\n border-radius: 8px;\n\n ", "\n\n ", "\n\n background-color: ", ";\n\n &:after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: black;\n border-radius: 8px;\n pointer-events: none;\n visibility: hidden;\n opacity: 0;\n }\n\n ", "\n"])), function (_ref) {
14
+ var isDisabled = _ref.isDisabled;
15
+ return isDisabled && 'opacity: 0.5;';
16
16
  }, function (_ref2) {
17
- var haveItems = _ref2.haveItems;
18
- return haveItems ? 'flex-start' : 'center';
17
+ var alert = _ref2.alert,
18
+ theme = _ref2.theme,
19
+ isDisabled = _ref2.isDisabled;
20
+ var borderColor = alert && !isDisabled ? theme.colors[alert].default : theme.colors.neutral.neutral3;
21
+ return "\n border: 2px dashed ".concat(borderColor, ";\n ");
19
22
  }, function (_ref3) {
20
- var isDisabled = _ref3.isDisabled;
21
- return isDisabled && 'opacity: 0.5;';
22
- }, function (_ref4) {
23
- var haveItems = _ref4.haveItems,
24
- alert = _ref4.alert,
25
- theme = _ref4.theme,
26
- isDisabled = _ref4.isDisabled;
27
- if (!haveItems) {
28
- var borderColor = alert && !isDisabled ? theme.colors[alert].default : theme.colors.neutral.neutral3;
29
- return "\n padding: 3.875rem 1.625rem;\n border: 2px dashed ".concat(borderColor, ";\n border-radius: 8px;\n ");
30
- }
31
- }, function (_ref5) {
32
- var alert = _ref5.alert,
33
- theme = _ref5.theme,
34
- haveItems = _ref5.haveItems,
35
- isDisabled = _ref5.isDisabled;
36
- if (alert && !isDisabled && !haveItems) {
23
+ var alert = _ref3.alert,
24
+ theme = _ref3.theme,
25
+ isDisabled = _ref3.isDisabled;
26
+ if (alert && !isDisabled) {
37
27
  return "".concat(theme.colors[alert].blurred, "33");
38
28
  }
39
29
  if (isDisabled) {
40
30
  return theme.colors.neutral.neutral1;
41
31
  }
42
- return 'transparent';
32
+ return '#f5faf8';
43
33
  }, function (props) {
44
- return props.isDraggingOver && !props.haveItems && !props.isDisabled && (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n &:after {\n opacity: 0.1;\n visibility: visible;\n }\n "])));
34
+ return props.isDraggingOver && !props.isDisabled && (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n &:after {\n opacity: 0.1;\n visibility: visible;\n }\n "])));
45
35
  });
46
36
  exports.DropzoneContainer = DropzoneContainer;
47
37
  var DropzoneInput = _styled.default.input(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n opacity: 0;\n cursor: ", ";\n z-index: ", ";\n"])), function (props) {
@@ -50,18 +40,16 @@ var DropzoneInput = _styled.default.input(_templateObject3 || (_templateObject3
50
40
  return props.theme.zIndex.default;
51
41
  });
52
42
  exports.DropzoneInput = DropzoneInput;
53
- var DropzoneFileBox = _styled.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n position: relative;\n justify-content: center;\n align-items: center;\n width: 80px;\n height: 80px;\n border-radius: 8px;\n\n & > img {\n width: 100%;\n height: 100%;\n border-radius: 8px;\n object-fit: cover;\n }\n\n ", "\n\n @media screen and (min-width: ", ") {\n width: 100px;\n height: 100px;\n }\n\n @media screen and (min-width: ", ") {\n width: 160px;\n height: 160px;\n }\n"])), function (props) {
43
+ var DropzoneFileBox = _styled.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n position: relative;\n justify-content: center;\n align-items: center;\n width: 80px;\n height: 80px;\n border-radius: 8px;\n\n & > img {\n width: 100%;\n height: 100%;\n border-radius: 8px;\n object-fit: cover;\n }\n\n ", "\n\n @media screen and (min-width: ", ") {\n width: 100%;\n max-width: 300px;\n height: 160px;\n }\n"])), function (props) {
54
44
  return props.disabled ? "\n & > button {\n display: none;\n }\n " : "\n &:hover > button {\n opacity: 1;\n }\n ";
55
- }, function (props) {
56
- return props.theme.breakpoints.sm;
57
45
  }, function (props) {
58
46
  return props.theme.breakpoints.md;
59
47
  });
60
48
  exports.DropzoneFileBox = DropzoneFileBox;
61
- var DropzoneImageAddButton = _styled.default.button(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: center;\n width: 80px;\n height: 80px;\n border-radius: 8px;\n outline: 0;\n\n transition: all 0.3s ease-in-out;\n\n border: 2px dashed\n ", ";\n background: ", ";\n\n @media screen and (min-width: ", ") {\n width: 100px;\n height: 100px;\n }\n\n @media screen and (min-width: ", ") {\n width: 160px;\n height: 160px;\n }\n"])), function (props) {
62
- return props.theme.colorMode === 'light' ? props.theme.colors.neutral.neutral3 : props.theme.colors.neutral.neutral4;
49
+ var DropzoneImageAddButton = _styled.default.button(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: center;\n width: 80px;\n height: 80px;\n border-radius: 8px;\n outline: 0;\n\n transition: all 0.3s ease-in-out;\n\n border: 2px solid ", ";\n background: ", ";\n\n @media screen and (min-width: ", ") {\n width: 100px;\n height: 100px;\n }\n\n @media screen and (min-width: ", ") {\n width: 160px;\n height: 160px;\n }\n"])), function (props) {
50
+ return props.theme.colors.neutral.neutral3;
63
51
  }, function (props) {
64
- return props.isDraggingOver ? props.theme.colorMode === 'light' ? props.theme.colors.neutral.neutral2 : props.theme.colors.neutral.neutral3 : props.theme.colorMode === 'light' ? props.theme.colors.neutral.neutral1 : props.theme.colors.neutral.neutral6;
52
+ return props.isDraggingOver ? props.theme.colors.neutral.neutral2 : props.theme.colors.neutral.neutral1;
65
53
  }, function (props) {
66
54
  return props.theme.breakpoints.sm;
67
55
  }, function (props) {
@@ -78,18 +66,10 @@ var DropzoneFilename = _styled.default.p(_templateObject7 || (_templateObject7 =
78
66
  return props.theme.colors.neutral.neutral2;
79
67
  });
80
68
  exports.DropzoneFilename = DropzoneFilename;
81
- var DropzoneText = (0, _styled.default)(_Typography.default)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n color: ", ";\n"])), function (_ref6) {
82
- var alert = _ref6.alert,
83
- theme = _ref6.theme,
84
- subinfo = _ref6.subinfo;
69
+ var DropzoneText = (0, _styled.default)(_Typography.default)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n color: ", ";\n"])), function (_ref4) {
70
+ var alert = _ref4.alert,
71
+ theme = _ref4.theme,
72
+ subinfo = _ref4.subinfo;
85
73
  return alert ? subinfo ? theme.colors[alert].default + '66' : theme.colors[alert].default : 'initial';
86
74
  });
87
- exports.DropzoneText = DropzoneText;
88
- var DropzoneButton = _styled.default.button(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n font-family: inherit;\n font-weight: 600;\n font-size: 1rem;\n padding: 0.875rem 1.5rem;\n border-radius: 0.5rem;\n background-color: transparent;\n color: ", ";\n border: 2px solid ", ";\n display: none;\n\n @media screen and (min-width: ", ") {\n display: block;\n }\n"])), function (props) {
89
- return props.theme.colorMode === 'light' ? props.theme.colors.neutral.black : props.theme.colors.neutral.white;
90
- }, function (props) {
91
- return props.theme.colors.neutral.neutral2;
92
- }, function (props) {
93
- return props.theme.breakpoints.sm;
94
- });
95
- exports.DropzoneButton = DropzoneButton;
75
+ exports.DropzoneText = DropzoneText;
@@ -83,7 +83,6 @@ var ModalComponent = function ModalComponent(_ref) {
83
83
  return "translate(".concat(percentageX, "%, ").concat(percentageY, "%)");
84
84
  }
85
85
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ReactPortal.ReactPortal, {
86
- wrapperId: "portal-root",
87
86
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_framerMotion.AnimatePresence, {
88
87
  mode: "wait",
89
88
  children: open && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
@@ -174,7 +174,6 @@ var MultipleSelect = function MultipleSelect(_ref) {
174
174
  placeholder: placeholder,
175
175
  dropDownIcon: dropDownIcon
176
176
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ReactPortal.ReactPortal, {
177
- wrapperId: "portal-root",
178
177
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_framerMotion.AnimatePresence, {
179
178
  mode: "wait",
180
179
  children: showOptionsArea && /*#__PURE__*/(0, _jsxRuntime.jsx)(_framerMotion.motion.div, _objectSpread(_objectSpread({}, _animations.multipleSelectAnimations), {}, {
@@ -198,7 +198,6 @@ function NewMultipleSelect(_ref) {
198
198
  })
199
199
  })]
200
200
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ReactPortal.ReactPortal, {
201
- wrapperId: "portal-root",
202
201
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.OptionsContainer, {
203
202
  ref: optionsModalRef,
204
203
  open: isOpenOptions,
@@ -144,7 +144,6 @@ function NewSingleSelect(_ref) {
144
144
  })
145
145
  })]
146
146
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ReactPortal.ReactPortal, {
147
- wrapperId: "portal-root",
148
147
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.OptionsContainer, {
149
148
  ref: optionsModalRef,
150
149
  open: isOpenOptions,
@@ -1,8 +1,8 @@
1
1
  import { ReactNode } from 'react';
2
2
  interface ReactPortalProps {
3
- wrapperId: string;
3
+ wrapperId?: string;
4
4
  children: ReactNode | ReactNode[] | JSX.Element | JSX.Element[];
5
5
  }
6
- export declare function ReactPortal({ children, wrapperId }: ReactPortalProps): import("react").ReactPortal | null;
6
+ export declare function ReactPortal(props: ReactPortalProps): import("react").ReactPortal | null;
7
7
  export {};
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ReactPortal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAuB,MAAM,OAAO,CAAC;AAIvD,UAAU,gBAAgB;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,SAAS,GAAG,SAAS,EAAE,GAAG,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;CACjE;AAED,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,SAAyB,EAAE,EAAE,gBAAgB,sCAsBpF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ReactPortal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA8B,MAAM,OAAO,CAAC;AAI9D,UAAU,gBAAgB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,GAAG,SAAS,EAAE,GAAG,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;CACjE;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,sCAwBlD"}
@@ -14,14 +14,12 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
14
14
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
15
15
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
16
16
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
17
- function ReactPortal(_ref) {
18
- var children = _ref.children,
19
- _ref$wrapperId = _ref.wrapperId,
20
- wrapperId = _ref$wrapperId === void 0 ? 'portal-root' : _ref$wrapperId;
17
+ function ReactPortal(props) {
21
18
  var _useState = (0, _react.useState)(null),
22
19
  _useState2 = _slicedToArray(_useState, 2),
23
20
  wrapperElement = _useState2[0],
24
21
  setWrapperElement = _useState2[1];
22
+ var wrapperId = props.wrapperId || (0, _react.useId)();
25
23
  (0, _react.useEffect)(function () {
26
24
  var element = document.getElementById(wrapperId);
27
25
  var systemCreated = false;
@@ -38,6 +36,6 @@ function ReactPortal(_ref) {
38
36
  }, [wrapperId]);
39
37
  if (wrapperElement === null) return null;
40
38
  return /*#__PURE__*/(0, _reactDom.createPortal)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
41
- children: children
39
+ children: props.children
42
40
  }), wrapperElement);
43
41
  }
@@ -211,7 +211,6 @@ var Select = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
211
211
  tabIndex: -1
212
212
  }, rest))]
213
213
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ReactPortal.ReactPortal, {
214
- wrapperId: "portal-root",
215
214
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_OptionsSelect.OptionsSelect, {
216
215
  open: optionsMenuOpen,
217
216
  left: "".concat((_containerRef$current3 = containerRef.current) === null || _containerRef$current3 === void 0 ? void 0 : _containerRef$current3.getBoundingClientRect().left, "px"),
@@ -23,7 +23,6 @@ var ToastContainer = function ToastContainer() {
23
23
  toasts = _useContext.toasts,
24
24
  remove = _useContext.remove;
25
25
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ReactPortal.ReactPortal, {
26
- wrapperId: "toast-root",
27
26
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.StyledToastContainerOverlay, {
28
27
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.StyledToastManagerOverlay, {
29
28
  position: "top",
@@ -142,7 +142,6 @@ var Tooltip = function Tooltip(_ref) {
142
142
  }
143
143
  },
144
144
  children: [props.children, /*#__PURE__*/(0, _jsxRuntime.jsx)(_ReactPortal.ReactPortal, {
145
- wrapperId: "tooltip-portal",
146
145
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TooltipLabel.TooltipLabel, _objectSpread({
147
146
  isVisible: showTooltip,
148
147
  ref: tooltipLabelRef,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pedidopago/ui",
3
- "version": "1.7.18",
3
+ "version": "1.7.19-0",
4
4
  "description": "Quick build beatiful Pedido Pago apps",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",