mg-library 1.0.722 → 1.0.724
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 +23 -7
- package/package.json +1 -1
package/components.js
CHANGED
|
@@ -172,7 +172,7 @@ export function MGPopover(props) {
|
|
|
172
172
|
const footer = (
|
|
173
173
|
<Box flexDirection="row" justifyContent="space-around" mt="$5" mb="$5">
|
|
174
174
|
<MGButton
|
|
175
|
-
title={
|
|
175
|
+
title={functionsLib.i18nString("yes", props.language)}
|
|
176
176
|
action="primary"
|
|
177
177
|
variant="solid"
|
|
178
178
|
py="$4"
|
|
@@ -182,7 +182,7 @@ export function MGPopover(props) {
|
|
|
182
182
|
}}
|
|
183
183
|
/>
|
|
184
184
|
<MGButton
|
|
185
|
-
title={
|
|
185
|
+
title={functionsLib.i18nString("no", props.language)}
|
|
186
186
|
action="primary"
|
|
187
187
|
variant="outline"
|
|
188
188
|
py="$4"
|
|
@@ -191,15 +191,18 @@ export function MGPopover(props) {
|
|
|
191
191
|
</Box>
|
|
192
192
|
);
|
|
193
193
|
return (
|
|
194
|
-
<Popover
|
|
195
|
-
|
|
196
|
-
|
|
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
|
-
|
|
204
|
+
)}
|
|
205
|
+
>
|
|
203
206
|
<PopoverBackdrop />
|
|
204
207
|
<PopoverContent w={300} bg="$white">
|
|
205
208
|
<PopoverArrow />
|
|
@@ -208,7 +211,7 @@ export function MGPopover(props) {
|
|
|
208
211
|
<Box alignItems="center" justifyContent="center">
|
|
209
212
|
<Icon as={MaterialCommunityIcons} name="alert-outline" size={16} color="$primary500" mb="$3" />
|
|
210
213
|
<MGText textAlign="center">
|
|
211
|
-
{
|
|
214
|
+
{functionsLib.i18nString("confirm", props.language)}?
|
|
212
215
|
</MGText>
|
|
213
216
|
</Box>
|
|
214
217
|
</PopoverBody>
|
|
@@ -216,4 +219,17 @@ export function MGPopover(props) {
|
|
|
216
219
|
</PopoverContent>
|
|
217
220
|
</Popover>
|
|
218
221
|
);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export function MGDivider({ style, ...props }) {
|
|
225
|
+
return (
|
|
226
|
+
<Divider
|
|
227
|
+
h="$0.55"
|
|
228
|
+
flexGrow={1}
|
|
229
|
+
alignSelf="stretch"
|
|
230
|
+
bg="$gray400"
|
|
231
|
+
style={style}
|
|
232
|
+
{...props}
|
|
233
|
+
/>
|
|
234
|
+
);
|
|
219
235
|
}
|