@grupalia/rn-ui-kit 0.96.0 → 0.97.0
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/lib/commonjs/components/BaseConfirmationModal.js +15 -18
- package/lib/commonjs/components/BaseConfirmationModal.js.map +1 -1
- package/lib/module/components/BaseConfirmationModal.js +15 -18
- package/lib/module/components/BaseConfirmationModal.js.map +1 -1
- package/lib/typescript/commonjs/components/BaseConfirmationModal.d.ts +8 -4
- package/lib/typescript/commonjs/components/BaseConfirmationModal.d.ts.map +1 -1
- package/lib/typescript/module/components/BaseConfirmationModal.d.ts +8 -4
- package/lib/typescript/module/components/BaseConfirmationModal.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -5,13 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _nativewind = require("nativewind");
|
|
8
|
-
var _hocComponents = require("../hoc-components");
|
|
9
8
|
var _BaseButton = _interopRequireDefault(require("./BaseButton"));
|
|
9
|
+
var _BaseModal = _interopRequireDefault(require("./BaseModal"));
|
|
10
10
|
var _BaseText = _interopRequireDefault(require("./BaseText"));
|
|
11
|
+
var _hocComponents = require("../hoc-components");
|
|
11
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
14
|
function BaseConfirmationModal({
|
|
14
|
-
visible,
|
|
15
15
|
title,
|
|
16
16
|
body,
|
|
17
17
|
confirmText = 'Aceptar',
|
|
@@ -22,23 +22,20 @@ function BaseConfirmationModal({
|
|
|
22
22
|
loading = false,
|
|
23
23
|
...props
|
|
24
24
|
}) {
|
|
25
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
26
|
-
animationType: "fade",
|
|
27
|
-
transparent: true,
|
|
28
|
-
visible: visible,
|
|
25
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_BaseModal.default, {
|
|
29
26
|
onRequestClose: () => onCancel(),
|
|
30
27
|
...props,
|
|
31
|
-
children: /*#__PURE__*/(0, _jsxRuntime.
|
|
32
|
-
className: "
|
|
33
|
-
children: /*#__PURE__*/(0, _jsxRuntime.
|
|
34
|
-
className: "
|
|
35
|
-
children:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
28
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_hocComponents.View, {
|
|
29
|
+
className: "space-y-4",
|
|
30
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_BaseText.default, {
|
|
31
|
+
className: "mb-4 text-lg font-semibold",
|
|
32
|
+
children: title
|
|
33
|
+
}), typeof body === 'string' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_BaseText.default, {
|
|
34
|
+
className: "text-base",
|
|
35
|
+
children: body
|
|
36
|
+
}) : body, /*#__PURE__*/(0, _jsxRuntime.jsxs)(_hocComponents.View, {
|
|
37
|
+
className: "space-y-2",
|
|
38
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_BaseButton.default, {
|
|
42
39
|
text: confirmText,
|
|
43
40
|
onPress: onConfirm,
|
|
44
41
|
loading: loading,
|
|
@@ -48,7 +45,7 @@ function BaseConfirmationModal({
|
|
|
48
45
|
text: cancelText,
|
|
49
46
|
onPress: onCancel
|
|
50
47
|
})]
|
|
51
|
-
})
|
|
48
|
+
})]
|
|
52
49
|
})
|
|
53
50
|
});
|
|
54
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_nativewind","require","
|
|
1
|
+
{"version":3,"names":["_nativewind","require","_BaseButton","_interopRequireDefault","_BaseModal","_BaseText","_hocComponents","_jsxRuntime","e","__esModule","default","BaseConfirmationModal","title","body","confirmText","cancelText","onConfirm","onCancel","countdownSecs","loading","props","jsx","onRequestClose","children","jsxs","View","className","text","onPress","variant","_default","exports","styled"],"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W;QAAAH,QAAA,gBAEzB,IAAAhB,WAAA,CAAAc,GAAA,EAACnB,WAAA,CAAAQ,OAAU;UACTiB,IAAI,EAAEb,WAAY;UAClBc,OAAO,EAAEZ,SAAU;UACnBG,OAAO,EAAEA,OAAQ;UACjBD,aAAa,EAAEA;QAAc,CAC9B,CAAC,eACF,IAAAX,WAAA,CAAAc,GAAA,EAACnB,WAAA,CAAAQ,OAAU;UACTmB,OAAO,EAAC,WAAW;UACnBF,IAAI,EAAEZ,UAAW;UACjBa,OAAO,EAAEX;QAAS,CACnB,CAAC;MAAA,CACE,CAAC;IAAA,CACH;EAAC,CACE,CAAC;AAEhB;AAAC,IAAAa,QAAA,GAAAC,OAAA,CAAArB,OAAA,GAEc,IAAAsB,kBAAM,EAACrB,qBAAqB,CAAC","ignoreList":[]}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { styled } from 'nativewind';
|
|
4
|
-
import { View, Modal } from "../hoc-components.js";
|
|
5
4
|
import BaseButton from "./BaseButton.js";
|
|
5
|
+
import BaseModal from "./BaseModal.js";
|
|
6
6
|
import BaseText from "./BaseText.js";
|
|
7
|
+
import { View } from "../hoc-components.js";
|
|
7
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
9
|
function BaseConfirmationModal({
|
|
9
|
-
visible,
|
|
10
10
|
title,
|
|
11
11
|
body,
|
|
12
12
|
confirmText = 'Aceptar',
|
|
@@ -17,23 +17,20 @@ function BaseConfirmationModal({
|
|
|
17
17
|
loading = false,
|
|
18
18
|
...props
|
|
19
19
|
}) {
|
|
20
|
-
return /*#__PURE__*/_jsx(
|
|
21
|
-
animationType: "fade",
|
|
22
|
-
transparent: true,
|
|
23
|
-
visible: visible,
|
|
20
|
+
return /*#__PURE__*/_jsx(BaseModal, {
|
|
24
21
|
onRequestClose: () => onCancel(),
|
|
25
22
|
...props,
|
|
26
|
-
children: /*#__PURE__*/
|
|
27
|
-
className: "
|
|
28
|
-
children: /*#__PURE__*/
|
|
29
|
-
className: "
|
|
30
|
-
children:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
23
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
24
|
+
className: "space-y-4",
|
|
25
|
+
children: [/*#__PURE__*/_jsx(BaseText, {
|
|
26
|
+
className: "mb-4 text-lg font-semibold",
|
|
27
|
+
children: title
|
|
28
|
+
}), typeof body === 'string' ? /*#__PURE__*/_jsx(BaseText, {
|
|
29
|
+
className: "text-base",
|
|
30
|
+
children: body
|
|
31
|
+
}) : body, /*#__PURE__*/_jsxs(View, {
|
|
32
|
+
className: "space-y-2",
|
|
33
|
+
children: [/*#__PURE__*/_jsx(BaseButton, {
|
|
37
34
|
text: confirmText,
|
|
38
35
|
onPress: onConfirm,
|
|
39
36
|
loading: loading,
|
|
@@ -43,7 +40,7 @@ function BaseConfirmationModal({
|
|
|
43
40
|
text: cancelText,
|
|
44
41
|
onPress: onCancel
|
|
45
42
|
})]
|
|
46
|
-
})
|
|
43
|
+
})]
|
|
47
44
|
})
|
|
48
45
|
});
|
|
49
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["styled","
|
|
1
|
+
{"version":3,"names":["styled","BaseButton","BaseModal","BaseText","View","jsx","_jsx","jsxs","_jsxs","BaseConfirmationModal","title","body","confirmText","cancelText","onConfirm","onCancel","countdownSecs","loading","props","onRequestClose","children","className","text","onPress","variant"],"sourceRoot":"../../../src","sources":["components/BaseConfirmationModal.tsx"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,YAAY;AAEnC,OAAOC,UAAU,MAAM,iBAAc;AACrC,OAAOC,SAAS,MAA0B,gBAAa;AACvD,OAAOC,QAAQ,MAAM,eAAY;AACjC,SAASC,IAAI,QAAQ,sBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAazC,SAASC,qBAAqBA,CAAC;EAC7BC,KAAK;EACLC,IAAI;EACJC,WAAW,GAAG,SAAS;EACvBC,UAAU,GAAG,UAAU;EACvBC,SAAS;EACTC,QAAQ;EACRC,aAAa,GAAG,CAAC;EACjBC,OAAO,GAAG,KAAK;EACf,GAAGC;AACE,CAAC,EAAE;EACR,oBACEZ,IAAA,CAACJ,SAAS;IACRiB,cAAc,EAAEA,CAAA,KAAMJ,QAAQ,CAAC,CAAE;IAAA,GAC7BG,KAAK;IAAAE,QAAA,eAETZ,KAAA,CAACJ,IAAI;MAACiB,SAAS,EAAC,WAAW;MAAAD,QAAA,gBACzBd,IAAA,CAACH,QAAQ;QAACkB,SAAS,EAAC,4BAA4B;QAAAD,QAAA,EAC7CV;MAAK,CACE,CAAC,EACV,OAAOC,IAAI,KAAK,QAAQ,gBACvBL,IAAA,CAACH,QAAQ;QAACkB,SAAS,EAAC,WAAW;QAAAD,QAAA,EAC5BT;MAAI,CACG,CAAC,GACTA,IAAI,eACRH,KAAA,CAACJ,IAAI;QAACiB,SAAS,EAAC,WAAW;QAAAD,QAAA,gBAEzBd,IAAA,CAACL,UAAU;UACTqB,IAAI,EAAEV,WAAY;UAClBW,OAAO,EAAET,SAAU;UACnBG,OAAO,EAAEA,OAAQ;UACjBD,aAAa,EAAEA;QAAc,CAC9B,CAAC,eACFV,IAAA,CAACL,UAAU;UACTuB,OAAO,EAAC,WAAW;UACnBF,IAAI,EAAET,UAAW;UACjBU,OAAO,EAAER;QAAS,CACnB,CAAC;MAAA,CACE,CAAC;IAAA,CACH;EAAC,CACE,CAAC;AAEhB;AAEA,eAAef,MAAM,CAACS,qBAAqB,CAAC","ignoreList":[]}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
interface Props extends
|
|
4
|
-
visible: boolean;
|
|
2
|
+
import { BaseModalProps } from './BaseModal';
|
|
3
|
+
interface Props extends Omit<BaseModalProps, 'children'> {
|
|
5
4
|
title: string;
|
|
6
5
|
body: string | React.ReactNode;
|
|
7
6
|
confirmText?: string;
|
|
@@ -11,6 +10,11 @@ interface Props extends React.ComponentProps<typeof Modal> {
|
|
|
11
10
|
countdownSecs?: number;
|
|
12
11
|
loading?: boolean;
|
|
13
12
|
}
|
|
14
|
-
declare const _default: import("react").ForwardRefExoticComponent<
|
|
13
|
+
declare const _default: import("react").ForwardRefExoticComponent<Props & {
|
|
14
|
+
className?: string | undefined;
|
|
15
|
+
tw?: string | undefined;
|
|
16
|
+
baseClassName?: string | undefined;
|
|
17
|
+
baseTw?: string | undefined;
|
|
18
|
+
} & import("react").RefAttributes<unknown>>;
|
|
15
19
|
export default _default;
|
|
16
20
|
//# sourceMappingURL=BaseConfirmationModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseConfirmationModal.d.ts","sourceRoot":"","sources":["../../../../src/components/BaseConfirmationModal.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"BaseConfirmationModal.d.ts","sourceRoot":"","sources":["../../../../src/components/BaseConfirmationModal.tsx"],"names":[],"mappings":";AAGA,OAAkB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAIxD,UAAU,KAAM,SAAQ,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC;IACtD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;;;;;;;AA8CD,wBAA6C"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
interface Props extends
|
|
4
|
-
visible: boolean;
|
|
2
|
+
import { BaseModalProps } from './BaseModal';
|
|
3
|
+
interface Props extends Omit<BaseModalProps, 'children'> {
|
|
5
4
|
title: string;
|
|
6
5
|
body: string | React.ReactNode;
|
|
7
6
|
confirmText?: string;
|
|
@@ -11,6 +10,11 @@ interface Props extends React.ComponentProps<typeof Modal> {
|
|
|
11
10
|
countdownSecs?: number;
|
|
12
11
|
loading?: boolean;
|
|
13
12
|
}
|
|
14
|
-
declare const _default: import("react").ForwardRefExoticComponent<
|
|
13
|
+
declare const _default: import("react").ForwardRefExoticComponent<Props & {
|
|
14
|
+
className?: string | undefined;
|
|
15
|
+
tw?: string | undefined;
|
|
16
|
+
baseClassName?: string | undefined;
|
|
17
|
+
baseTw?: string | undefined;
|
|
18
|
+
} & import("react").RefAttributes<unknown>>;
|
|
15
19
|
export default _default;
|
|
16
20
|
//# sourceMappingURL=BaseConfirmationModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseConfirmationModal.d.ts","sourceRoot":"","sources":["../../../../src/components/BaseConfirmationModal.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"BaseConfirmationModal.d.ts","sourceRoot":"","sources":["../../../../src/components/BaseConfirmationModal.tsx"],"names":[],"mappings":";AAGA,OAAkB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAIxD,UAAU,KAAM,SAAQ,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC;IACtD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;;;;;;;AA8CD,wBAA6C"}
|