mg-library 1.0.733 → 1.0.734
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/components.js +7 -18
- package/package.json +1 -1
package/components.js
CHANGED
|
@@ -175,37 +175,26 @@ export function MGPopover(props) {
|
|
|
175
175
|
};
|
|
176
176
|
return (
|
|
177
177
|
<Popover
|
|
178
|
-
isOpen={open}
|
|
179
|
-
onOpenChange={setOpen}
|
|
180
178
|
trigger={(triggerProps) => (
|
|
181
|
-
// IMPORTANTE: no pongas onPress acá; dejalo a cargo de triggerProps
|
|
182
179
|
<Button {...triggerProps} action="primary" variant="solid">
|
|
183
|
-
|
|
184
|
-
<ButtonText>{title}</ButtonText>
|
|
180
|
+
<Icon as={MaterialCommunityIcons} name="alert-outline" mr="$2" color="$white" />
|
|
181
|
+
<ButtonText>{props.title}</ButtonText>
|
|
185
182
|
</Button>
|
|
186
183
|
)}
|
|
187
184
|
>
|
|
188
185
|
<PopoverBackdrop />
|
|
189
|
-
<PopoverContent w={300} bg="$white">
|
|
186
|
+
<PopoverContent w={300} bg="$white" /* prueba forzar zIndex/elevation */ zIndex={9999} elevation={24}>
|
|
190
187
|
<PopoverArrow />
|
|
191
188
|
<PopoverCloseButton />
|
|
192
189
|
<PopoverBody>
|
|
193
190
|
<Box alignItems="center" justifyContent="center">
|
|
194
|
-
<
|
|
195
|
-
<MGText textAlign="center">
|
|
196
|
-
{mgFunctionsLib.i18nString('confirm', language)}?
|
|
197
|
-
</MGText>
|
|
191
|
+
<ButtonText>¿Confirmás?</ButtonText>
|
|
198
192
|
</Box>
|
|
199
193
|
</PopoverBody>
|
|
200
194
|
<PopoverFooter>
|
|
201
|
-
<
|
|
202
|
-
<
|
|
203
|
-
|
|
204
|
-
</Button>
|
|
205
|
-
<Button action="primary" variant="outline" py="$4" onPress={() => setOpen(false)}>
|
|
206
|
-
<ButtonText>{mgFunctionsLib.i18nString('no', language)}</ButtonText>
|
|
207
|
-
</Button>
|
|
208
|
-
</Box>
|
|
195
|
+
<Button variant="outline">
|
|
196
|
+
<ButtonText>Cerrar</ButtonText>
|
|
197
|
+
</Button>
|
|
209
198
|
</PopoverFooter>
|
|
210
199
|
</PopoverContent>
|
|
211
200
|
</Popover>
|