ikualo-ui-kit-mobile 2.0.8 → 2.0.10
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/app.json +1 -1
- package/package.json +1 -1
- package/src/elements/dialogs/DialogDown.tsx +4 -14
package/app.json
CHANGED
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@ class DialogManager {
|
|
|
15
15
|
private static instance: DialogManager;
|
|
16
16
|
private dialogs: DialogQueueItem[] = [];
|
|
17
17
|
private currentDialog: DialogQueueItem | null = null;
|
|
18
|
-
private listeners: Set<() => void> = new Set();
|
|
18
|
+
private readonly listeners: Set<() => void> = new Set();
|
|
19
19
|
|
|
20
20
|
static getInstance(): DialogManager {
|
|
21
21
|
if (!DialogManager.instance) {
|
|
@@ -184,18 +184,6 @@ export const DialogDown = (props: IDialogDown & { priority?: 0 | 1 | 2 | 3 | 4 |
|
|
|
184
184
|
// Solo renderizar si este diálogo es el actual
|
|
185
185
|
const isCurrentDialog = Boolean(currentDialog && currentDialog.id === dialogId);
|
|
186
186
|
|
|
187
|
-
// Debug logging
|
|
188
|
-
console.log('DialogDown Debug:', {
|
|
189
|
-
title,
|
|
190
|
-
dialogId,
|
|
191
|
-
currentDialogId: currentDialog?.id,
|
|
192
|
-
currentPriority: currentDialog?.priority,
|
|
193
|
-
newPriority: priority,
|
|
194
|
-
isCurrentDialog,
|
|
195
|
-
isVisible,
|
|
196
|
-
shouldShow: isCurrentDialog && isVisible,
|
|
197
|
-
});
|
|
198
|
-
|
|
199
187
|
return (
|
|
200
188
|
<Modal visible={isCurrentDialog} transparent={true} animationType="none" onRequestClose={handleDismiss}>
|
|
201
189
|
<TouchableWithoutFeedback onPress={handleDismissKeyboard}>
|
|
@@ -234,7 +222,9 @@ export const DialogDown = (props: IDialogDown & { priority?: 0 | 1 | 2 | 3 | 4 |
|
|
|
234
222
|
<View style={stylesDialog['dialog-img']}>{image}</View>
|
|
235
223
|
) : (
|
|
236
224
|
<View style={{ marginTop: image ? 0 : -16, position: 'relative' }}>
|
|
237
|
-
<Text style={[stylesDialog['dialog-title']]}>
|
|
225
|
+
<Text style={[stylesDialog['dialog-title'], { fontSize: showCloseButton ? 16 : 24 }]}>
|
|
226
|
+
{title}
|
|
227
|
+
</Text>
|
|
238
228
|
</View>
|
|
239
229
|
)}
|
|
240
230
|
|