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.
Files changed (2) hide show
  1. package/components.js +7 -18
  2. 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
- {icon ? <Icon as={MaterialCommunityIcons} name={icon} mr="$2" color="$white" /> : null}
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
- <Icon as={MaterialCommunityIcons} name="alert-outline" size={16} color="$primary500" mb="$3" />
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
- <Box flexDirection="row" justifyContent="space-around" mt="$5" mb="$5">
202
- <Button action="primary" variant="solid" py="$4" onPress={handleConfirm}>
203
- <ButtonText>{mgFunctionsLib.i18nString('yes', language)}</ButtonText>
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>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mg-library",
3
- "version": "1.0.733",
3
+ "version": "1.0.734",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "react-native": "index.js",