@rango-dev/ui 0.1.10-next.69 → 0.1.10-next.70
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/Modal/Modal.d.ts +1 -0
- package/dist/ui.cjs.development.js +11 -5
- package/dist/ui.cjs.development.js.map +1 -1
- package/dist/ui.cjs.production.min.js +1 -1
- package/dist/ui.cjs.production.min.js.map +1 -1
- package/dist/ui.esm.js +11 -5
- package/dist/ui.esm.js.map +1 -1
- package/package.json +3 -3
- package/src/components/Modal/Modal.tsx +19 -4
|
@@ -2606,7 +2606,12 @@ var ModalContainer = /*#__PURE__*/styled('div', {
|
|
|
2606
2606
|
padding: '$16 $16',
|
|
2607
2607
|
display: 'flex',
|
|
2608
2608
|
flexDirection: 'column',
|
|
2609
|
-
boxShadow: '$s'
|
|
2609
|
+
boxShadow: '$s',
|
|
2610
|
+
zIndex: 10
|
|
2611
|
+
});
|
|
2612
|
+
var Row = /*#__PURE__*/styled('div', {
|
|
2613
|
+
display: 'flex',
|
|
2614
|
+
alignItems: 'center'
|
|
2610
2615
|
});
|
|
2611
2616
|
var ModalHeader = /*#__PURE__*/styled('div', {
|
|
2612
2617
|
display: 'flex',
|
|
@@ -2624,6 +2629,7 @@ function Modal(props) {
|
|
|
2624
2629
|
open = props.open,
|
|
2625
2630
|
onClose = props.onClose,
|
|
2626
2631
|
containerStyle = props.containerStyle,
|
|
2632
|
+
action = props.action,
|
|
2627
2633
|
contentStyle = props.contentStyle;
|
|
2628
2634
|
var handleBackDropClick = function handleBackDropClick(event) {
|
|
2629
2635
|
if (event.target === event.currentTarget) onClose();
|
|
@@ -2634,10 +2640,10 @@ function Modal(props) {
|
|
|
2634
2640
|
style: containerStyle
|
|
2635
2641
|
}, React__default.createElement(ModalHeader, null, React__default.createElement(Typography, {
|
|
2636
2642
|
variant: "h4"
|
|
2637
|
-
}, title), React__default.createElement(CloseIcon, {
|
|
2643
|
+
}, title), React__default.createElement(Row, null, action, React__default.createElement(CloseIcon, {
|
|
2638
2644
|
size: 24,
|
|
2639
2645
|
onClick: onClose
|
|
2640
|
-
})), React__default.createElement(ContentContainer$2, {
|
|
2646
|
+
}))), React__default.createElement(ContentContainer$2, {
|
|
2641
2647
|
style: contentStyle
|
|
2642
2648
|
}, content))), document.body));
|
|
2643
2649
|
}
|
|
@@ -3000,7 +3006,7 @@ function LiquiditySourcesSelector(props) {
|
|
|
3000
3006
|
});
|
|
3001
3007
|
}
|
|
3002
3008
|
|
|
3003
|
-
var Row = /*#__PURE__*/styled('div', {
|
|
3009
|
+
var Row$1 = /*#__PURE__*/styled('div', {
|
|
3004
3010
|
display: 'flex',
|
|
3005
3011
|
flexWrap: 'wrap'
|
|
3006
3012
|
});
|
|
@@ -3084,7 +3090,7 @@ function SelectableWalletList(_ref) {
|
|
|
3084
3090
|
return item.selected;
|
|
3085
3091
|
})) == null ? void 0 : _list$find2.walletType) || '');
|
|
3086
3092
|
}, [list]);
|
|
3087
|
-
return React__default.createElement(Row, null, list.map(function (w, index) {
|
|
3093
|
+
return React__default.createElement(Row$1, null, list.map(function (w, index) {
|
|
3088
3094
|
var checked = active === w.walletType;
|
|
3089
3095
|
return React__default.createElement(Container$2, {
|
|
3090
3096
|
checked: checked,
|