mg-library 1.0.723 → 1.0.725

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 -4
  2. package/package.json +1 -1
package/components.js CHANGED
@@ -191,15 +191,18 @@ export function MGPopover(props) {
191
191
  </Box>
192
192
  );
193
193
  return (
194
- <Popover isOpen={open} onOpenChange={setOpen}>
195
- <PopoverAnchor>
196
- <Button action="primary" variant="solid" py="$4" onPress={() => setOpen(true)}>
194
+ <Popover
195
+ isOpen={open}
196
+ onOpenChange={setOpen}
197
+ trigger={(triggerProps) => (
198
+ <Button {...triggerProps} action="primary" variant="solid" py="$4">
197
199
  {props.icon ? (
198
200
  <Icon as={MaterialCommunityIcons} name={props.icon} mr="$2" color="$white" />
199
201
  ) : null}
200
202
  <ButtonText>{props.title}</ButtonText>
201
203
  </Button>
202
- </PopoverAnchor>
204
+ )}
205
+ >
203
206
  <PopoverBackdrop />
204
207
  <PopoverContent w={300} bg="$white">
205
208
  <PopoverArrow />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mg-library",
3
- "version": "1.0.723",
3
+ "version": "1.0.725",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "react-native": "index.js",