@pedidopago/ui 1.3.9 → 1.3.12
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/DateInput/index.js +9 -9
- package/dist/components/Icon/data/dash.d.ts.map +1 -1
- package/dist/components/Icon/data/dash.js +1 -1
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/Icon/types.d.ts.map +1 -1
- package/dist/components/Illustration/index.js +1 -1
- package/dist/components/Pagination/index.d.ts.map +1 -1
- package/dist/components/Pagination/index.js +3 -0
- package/dist/components/RadioInput/components/ChoiceList/index.d.ts +1 -1
- package/dist/components/RadioInput/components/ChoiceList/index.d.ts.map +1 -1
- package/dist/components/RadioInput/components/ChoiceList/index.js +61 -76
- package/dist/components/RadioInput/index.d.ts.map +1 -1
- package/dist/components/RadioInput/index.js +22 -69
- package/dist/components/RadioInput/radio-input.test.js +44 -98
- package/dist/components/RadioInput/styles.d.ts.map +1 -1
- package/dist/components/RadioInput/styles.js +5 -11
- package/dist/components/RadioInput/types.d.ts +6 -34
- package/dist/components/RadioInput/types.d.ts.map +1 -1
- package/dist/components/Skeleton/index.d.ts.map +1 -1
- package/dist/components/Skeleton/index.js +4 -5
- package/dist/components/Skeleton/styles.d.ts.map +1 -1
- package/dist/components/Skeleton/styles.js +4 -2
- package/dist/components/Slider/index.d.ts.map +1 -1
- package/dist/components/Slider/index.js +3 -0
- package/dist/components/Steps/index.js +1 -1
- package/dist/components/Steps/types.d.ts +2 -3
- package/dist/components/Steps/types.d.ts.map +1 -1
- package/dist/shared/hooks/useDisableBodyScroll.d.ts.map +1 -1
- package/dist/shared/hooks/useDisableBodyScroll.js +2 -1
- package/package.json +1 -1
|
@@ -121,14 +121,14 @@ function DateInput(_ref) {
|
|
|
121
121
|
value: currentValue ? Array.isArray(currentValue) ? "".concat(currentValue[0].toLocaleDateString(locales, localeOptions), " - ").concat(currentValue[1].toLocaleDateString(locales, localeOptions)) : new Date(currentValue).toLocaleDateString() : '',
|
|
122
122
|
onClick: toggleOptionsAreaView,
|
|
123
123
|
onMouseOver: handleRepositionModal
|
|
124
|
-
}), datePickerOpen && /*#__PURE__*/(0, _jsxRuntime.
|
|
125
|
-
children:
|
|
126
|
-
onClick: function onClick() {
|
|
127
|
-
return setDatePickerOpen(false);
|
|
128
|
-
}
|
|
129
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ReactPortal.ReactPortal, {
|
|
124
|
+
}), datePickerOpen && /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
125
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ReactPortal.ReactPortal, {
|
|
130
126
|
wrapperId: "portal-root",
|
|
131
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
127
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Overlay, {
|
|
128
|
+
onClick: function onClick() {
|
|
129
|
+
return setDatePickerOpen(false);
|
|
130
|
+
}
|
|
131
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ModalWrapper.ModalWrapper, {
|
|
132
132
|
open: datePickerOpen,
|
|
133
133
|
left: "".concat((_containerRef$current3 = containerRef.current) === null || _containerRef$current3 === void 0 ? void 0 : _containerRef$current3.getBoundingClientRect().left, "px"),
|
|
134
134
|
top: Number(positionContainer) < 540 ? "calc(".concat(((_containerRef$current4 = containerRef.current) === null || _containerRef$current4 === void 0 ? void 0 : _containerRef$current4.getBoundingClientRect().bottom) || 0, "px + 10px)") : "calc(".concat(((_containerRef$current5 = containerRef.current) === null || _containerRef$current5 === void 0 ? void 0 : _containerRef$current5.getBoundingClientRect().top) || 0, "px - ", 360, "px)"),
|
|
@@ -140,8 +140,8 @@ function DateInput(_ref) {
|
|
|
140
140
|
minDate: minDate,
|
|
141
141
|
maxDate: maxDate
|
|
142
142
|
}, rest))
|
|
143
|
-
})
|
|
144
|
-
})
|
|
143
|
+
})]
|
|
144
|
+
})
|
|
145
145
|
})]
|
|
146
146
|
});
|
|
147
147
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dash.d.ts","sourceRoot":"","sources":["../../../../src/components/Icon/data/dash.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS;;;;;;;
|
|
1
|
+
{"version":3,"file":"dash.d.ts","sourceRoot":"","sources":["../../../../src/components/Icon/data/dash.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS;;;;;;;GAikFrB,CAAC"}
|