@jamadd/react-native-template-ui 0.5.1 → 0.5.2
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.
|
@@ -4,19 +4,41 @@ import ThemedText from "../../text/ThemedText.js";
|
|
|
4
4
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
5
|
const AlertContent = ({
|
|
6
6
|
title,
|
|
7
|
-
titleTextProps
|
|
7
|
+
titleTextProps: {
|
|
8
|
+
textVariant: titleTextVariant,
|
|
9
|
+
textFontSize: titleTextFontSize,
|
|
10
|
+
textFontWeight: titleTextFontWeight,
|
|
11
|
+
textColor: titleTextColor,
|
|
12
|
+
textStyle: titleTextStyle,
|
|
13
|
+
textProps: titleTextProps
|
|
14
|
+
} = {},
|
|
8
15
|
description,
|
|
9
|
-
descriptionTextProps
|
|
16
|
+
descriptionTextProps: {
|
|
17
|
+
textVariant: descriptionTextVariant,
|
|
18
|
+
textFontSize: descriptionTextFontSize,
|
|
19
|
+
textFontWeight: descriptionTextFontWeight,
|
|
20
|
+
textColor: descriptionTextColor,
|
|
21
|
+
textStyle: descriptionTextStyle,
|
|
22
|
+
textProps: descriptionTextProps
|
|
23
|
+
} = {}
|
|
10
24
|
}) => {
|
|
11
25
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
12
26
|
children: [/*#__PURE__*/_jsx(ThemedText, {
|
|
13
27
|
textAlign: 'center',
|
|
14
|
-
fontWeight: 'bold',
|
|
28
|
+
fontWeight: titleTextFontWeight ?? 'bold',
|
|
29
|
+
variant: titleTextVariant,
|
|
30
|
+
fontSize: titleTextFontSize,
|
|
31
|
+
color: titleTextColor,
|
|
32
|
+
style: titleTextStyle,
|
|
15
33
|
...titleTextProps,
|
|
16
34
|
children: title
|
|
17
35
|
}), !!description && /*#__PURE__*/_jsx(ThemedText, {
|
|
18
36
|
textAlign: 'center',
|
|
19
|
-
variant: 'textS',
|
|
37
|
+
variant: descriptionTextVariant ?? 'textS',
|
|
38
|
+
fontSize: descriptionTextFontSize,
|
|
39
|
+
fontWeight: descriptionTextFontWeight,
|
|
40
|
+
color: descriptionTextColor,
|
|
41
|
+
style: descriptionTextStyle,
|
|
20
42
|
...descriptionTextProps,
|
|
21
43
|
children: description
|
|
22
44
|
})]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ThemedText","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","AlertContent","title","titleTextProps","description","descriptionTextProps","children","textAlign","fontWeight","variant"],"sourceRoot":"../../../../../src","sources":["components/overlay/alert/AlertContent.tsx"],"mappings":";;AAEA,OAAOA,UAAU,MAAM,0BAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA,EAAAC,IAAA,IAAAC,KAAA;AAE/C,MAAMC,YAKL,GAAGA,CAAC;
|
|
1
|
+
{"version":3,"names":["ThemedText","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","AlertContent","title","titleTextProps","textVariant","titleTextVariant","textFontSize","titleTextFontSize","textFontWeight","titleTextFontWeight","textColor","titleTextColor","textStyle","titleTextStyle","textProps","description","descriptionTextProps","descriptionTextVariant","descriptionTextFontSize","descriptionTextFontWeight","descriptionTextColor","descriptionTextStyle","children","textAlign","fontWeight","variant","fontSize","color","style"],"sourceRoot":"../../../../../src","sources":["components/overlay/alert/AlertContent.tsx"],"mappings":";;AAEA,OAAOA,UAAU,MAAM,0BAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA,EAAAC,IAAA,IAAAC,KAAA;AAE/C,MAAMC,YAKL,GAAGA,CAAC;EACHC,KAAK;EACLC,cAAc,EAAE;IACdC,WAAW,EAAEC,gBAAgB;IAC7BC,YAAY,EAAEC,iBAAiB;IAC/BC,cAAc,EAAEC,mBAAmB;IACnCC,SAAS,EAAEC,cAAc;IACzBC,SAAS,EAAEC,cAAc;IACzBC,SAAS,EAAEX;EACb,CAAC,GAAG,CAAC,CAAC;EACNY,WAAW;EACXC,oBAAoB,EAAE;IACpBZ,WAAW,EAAEa,sBAAsB;IACnCX,YAAY,EAAEY,uBAAuB;IACrCV,cAAc,EAAEW,yBAAyB;IACzCT,SAAS,EAAEU,oBAAoB;IAC/BR,SAAS,EAAES,oBAAoB;IAC/BP,SAAS,EAAEE;EACb,CAAC,GAAG,CAAC;AACP,CAAC,KAAK;EACJ,oBACEhB,KAAA,CAAAF,SAAA;IAAAwB,QAAA,gBACE1B,IAAA,CAACF,UAAU;MACT6B,SAAS,EAAE,QAAS;MACpBC,UAAU,EAAEf,mBAAmB,IAAI,MAAO;MAC1CgB,OAAO,EAAEpB,gBAAiB;MAC1BqB,QAAQ,EAAEnB,iBAAkB;MAC5BoB,KAAK,EAAEhB,cAAe;MACtBiB,KAAK,EAAEf,cAAe;MAAA,GAClBV,cAAc;MAAAmB,QAAA,EAEjBpB;IAAK,CACI,CAAC,EACZ,CAAC,CAACa,WAAW,iBACZnB,IAAA,CAACF,UAAU;MACT6B,SAAS,EAAE,QAAS;MACpBE,OAAO,EAAER,sBAAsB,IAAI,OAAQ;MAC3CS,QAAQ,EAAER,uBAAwB;MAClCM,UAAU,EAAEL,yBAA0B;MACtCQ,KAAK,EAAEP,oBAAqB;MAC5BQ,KAAK,EAAEP,oBAAqB;MAAA,GACxBL,oBAAoB;MAAAM,QAAA,EAEvBP;IAAW,CACF,CACb;EAAA,CACD,CAAC;AAEP,CAAC;AAED,eAAed,YAAY","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertContent.d.ts","sourceRoot":"","sources":["../../../../../../src/components/overlay/alert/AlertContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAGzD,QAAA,MAAM,YAAY,EAAE,EAAE,CACpB,IAAI,CACF,UAAU,EACV,OAAO,GAAG,gBAAgB,GAAG,aAAa,GAAG,sBAAsB,CACpE,
|
|
1
|
+
{"version":3,"file":"AlertContent.d.ts","sourceRoot":"","sources":["../../../../../../src/components/overlay/alert/AlertContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAGzD,QAAA,MAAM,YAAY,EAAE,EAAE,CACpB,IAAI,CACF,UAAU,EACV,OAAO,GAAG,gBAAgB,GAAG,aAAa,GAAG,sBAAsB,CACpE,CAiDF,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamadd/react-native-template-ui",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "React Native Template UI is a collection of UI components designed by JaMa D&D.",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|