@jamadd/react-native-template-ui 0.9.6 → 0.11.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/README.md +16 -3
- package/lib/module/components/button/ThemedButton.js +47 -41
- package/lib/module/components/button/ThemedButton.js.map +1 -1
- package/lib/module/components/button/ThemedIconTextButton.js +54 -47
- package/lib/module/components/button/ThemedIconTextButton.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js +59 -47
- package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js.map +1 -1
- package/lib/module/components/overlay/alert/AlertWrap.js +36 -20
- package/lib/module/components/overlay/alert/AlertWrap.js.map +1 -1
- package/lib/module/components/overlay/contextMenu/ContextMenu.js +196 -0
- package/lib/module/components/overlay/contextMenu/ContextMenu.js.map +1 -0
- package/lib/module/components/overlay/contextMenu/ContextMenuOptionList.js +72 -0
- package/lib/module/components/overlay/contextMenu/ContextMenuOptionList.js.map +1 -0
- package/lib/module/components/overlay/contextMenu/ContextMenuOptionListItem.js +87 -0
- package/lib/module/components/overlay/contextMenu/ContextMenuOptionListItem.js.map +1 -0
- package/lib/module/components/text/ThemedIconText.js +58 -52
- package/lib/module/components/text/ThemedIconText.js.map +1 -1
- package/lib/module/components/textInput/ThemedTextInput.js +39 -0
- package/lib/module/components/textInput/ThemedTextInput.js.map +1 -0
- package/lib/module/hooks/style.js +131 -2
- package/lib/module/hooks/style.js.map +1 -1
- package/lib/module/hooks/textInput.js +99 -0
- package/lib/module/hooks/textInput.js.map +1 -0
- package/lib/module/index.js +6 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/types/textInput.js +4 -0
- package/lib/module/types/textInput.js.map +1 -0
- package/lib/module/utils/common/const.js +5 -0
- package/lib/module/utils/common/const.js.map +1 -0
- package/lib/module/utils/common/func.js +13 -0
- package/lib/module/utils/common/func.js.map +1 -0
- package/lib/module/utils/overlay/const.js +1 -0
- package/lib/module/utils/overlay/const.js.map +1 -1
- package/lib/module/utils/style/const.js +35 -0
- package/lib/module/utils/style/const.js.map +1 -1
- package/lib/module/utils/style/func.js +5 -0
- package/lib/module/utils/style/func.js.map +1 -1
- package/lib/module/utils/textInput/const.js +4 -0
- package/lib/module/utils/textInput/const.js.map +1 -0
- package/lib/module/utils/theme/const.js +3 -0
- package/lib/module/utils/theme/const.js.map +1 -1
- package/lib/module/utils/theme/restyle.js +3 -1
- package/lib/module/utils/theme/restyle.js.map +1 -1
- package/lib/typescript/src/components/button/ThemedButton.d.ts.map +1 -1
- package/lib/typescript/src/components/button/ThemedIconTextButton.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/alert/AlertWrap.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/contextMenu/ContextMenu.d.ts +5 -0
- package/lib/typescript/src/components/overlay/contextMenu/ContextMenu.d.ts.map +1 -0
- package/lib/typescript/src/components/overlay/contextMenu/ContextMenuOptionList.d.ts +5 -0
- package/lib/typescript/src/components/overlay/contextMenu/ContextMenuOptionList.d.ts.map +1 -0
- package/lib/typescript/src/components/overlay/contextMenu/ContextMenuOptionListItem.d.ts +6 -0
- package/lib/typescript/src/components/overlay/contextMenu/ContextMenuOptionListItem.d.ts.map +1 -0
- package/lib/typescript/src/components/text/Text.d.ts +38 -2
- package/lib/typescript/src/components/text/Text.d.ts.map +1 -1
- package/lib/typescript/src/components/text/ThemedIconText.d.ts.map +1 -1
- package/lib/typescript/src/components/textInput/ThemedTextInput.d.ts +5 -0
- package/lib/typescript/src/components/textInput/ThemedTextInput.d.ts.map +1 -0
- package/lib/typescript/src/components/view/Box.d.ts +44 -16
- package/lib/typescript/src/components/view/Box.d.ts.map +1 -1
- package/lib/typescript/src/hooks/style.d.ts +20 -2
- package/lib/typescript/src/hooks/style.d.ts.map +1 -1
- package/lib/typescript/src/hooks/textInput.d.ts +13 -0
- package/lib/typescript/src/hooks/textInput.d.ts.map +1 -0
- package/lib/typescript/src/hooks/theme.d.ts +2 -0
- package/lib/typescript/src/hooks/theme.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +6 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/test/utils/func.d.ts +2 -0
- package/lib/typescript/src/test/utils/func.d.ts.map +1 -1
- package/lib/typescript/src/types/overlay.d.ts +23 -1
- package/lib/typescript/src/types/overlay.d.ts.map +1 -1
- package/lib/typescript/src/types/style.d.ts +3 -1
- package/lib/typescript/src/types/style.d.ts.map +1 -1
- package/lib/typescript/src/types/text.d.ts +2 -1
- package/lib/typescript/src/types/text.d.ts.map +1 -1
- package/lib/typescript/src/types/textInput.d.ts +17 -0
- package/lib/typescript/src/types/textInput.d.ts.map +1 -0
- package/lib/typescript/src/utils/common/const.d.ts +2 -0
- package/lib/typescript/src/utils/common/const.d.ts.map +1 -0
- package/lib/typescript/src/utils/common/func.d.ts +4 -0
- package/lib/typescript/src/utils/common/func.d.ts.map +1 -0
- package/lib/typescript/src/utils/overlay/const.d.ts +2 -1
- package/lib/typescript/src/utils/overlay/const.d.ts.map +1 -1
- package/lib/typescript/src/utils/overlay/func.d.ts.map +1 -1
- package/lib/typescript/src/utils/style/const.d.ts +18 -0
- package/lib/typescript/src/utils/style/const.d.ts.map +1 -1
- package/lib/typescript/src/utils/style/func.d.ts +2 -1
- package/lib/typescript/src/utils/style/func.d.ts.map +1 -1
- package/lib/typescript/src/utils/textInput/const.d.ts +3 -0
- package/lib/typescript/src/utils/textInput/const.d.ts.map +1 -0
- package/lib/typescript/src/utils/theme/const.d.ts +2 -0
- package/lib/typescript/src/utils/theme/const.d.ts.map +1 -1
- package/lib/typescript/src/utils/theme/restyle.d.ts +537 -4
- package/lib/typescript/src/utils/theme/restyle.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -28,7 +28,7 @@ import ThemedText from "./ThemedText.js";
|
|
|
28
28
|
*/
|
|
29
29
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
30
30
|
const ThemedIconText = t0 => {
|
|
31
|
-
const $ = _c(
|
|
31
|
+
const $ = _c(36);
|
|
32
32
|
let iconColor;
|
|
33
33
|
let iconName;
|
|
34
34
|
let iconProps;
|
|
@@ -36,6 +36,7 @@ const ThemedIconText = t0 => {
|
|
|
36
36
|
let iconStyle;
|
|
37
37
|
let props;
|
|
38
38
|
let t1;
|
|
39
|
+
let t2;
|
|
39
40
|
let text;
|
|
40
41
|
let textColor;
|
|
41
42
|
let textFontSize;
|
|
@@ -52,6 +53,7 @@ const ThemedIconText = t0 => {
|
|
|
52
53
|
iconStyle,
|
|
53
54
|
iconProps,
|
|
54
55
|
text,
|
|
56
|
+
textNumberOfLines: t2,
|
|
55
57
|
textVariant,
|
|
56
58
|
textFontSize,
|
|
57
59
|
textFontWeight,
|
|
@@ -68,13 +70,14 @@ const ThemedIconText = t0 => {
|
|
|
68
70
|
$[5] = iconStyle;
|
|
69
71
|
$[6] = props;
|
|
70
72
|
$[7] = t1;
|
|
71
|
-
$[8] =
|
|
72
|
-
$[9] =
|
|
73
|
-
$[10] =
|
|
74
|
-
$[11] =
|
|
75
|
-
$[12] =
|
|
76
|
-
$[13] =
|
|
77
|
-
$[14] =
|
|
73
|
+
$[8] = t2;
|
|
74
|
+
$[9] = text;
|
|
75
|
+
$[10] = textColor;
|
|
76
|
+
$[11] = textFontSize;
|
|
77
|
+
$[12] = textFontWeight;
|
|
78
|
+
$[13] = textProps;
|
|
79
|
+
$[14] = textStyle;
|
|
80
|
+
$[15] = textVariant;
|
|
78
81
|
} else {
|
|
79
82
|
iconColor = $[1];
|
|
80
83
|
iconName = $[2];
|
|
@@ -83,19 +86,21 @@ const ThemedIconText = t0 => {
|
|
|
83
86
|
iconStyle = $[5];
|
|
84
87
|
props = $[6];
|
|
85
88
|
t1 = $[7];
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
89
|
+
t2 = $[8];
|
|
90
|
+
text = $[9];
|
|
91
|
+
textColor = $[10];
|
|
92
|
+
textFontSize = $[11];
|
|
93
|
+
textFontWeight = $[12];
|
|
94
|
+
textProps = $[13];
|
|
95
|
+
textStyle = $[14];
|
|
96
|
+
textVariant = $[15];
|
|
93
97
|
}
|
|
94
98
|
const flip = t1 === undefined ? false : t1;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
+
const textNumberOfLines = t2 === undefined ? 1 : t2;
|
|
100
|
+
let t3;
|
|
101
|
+
if ($[16] !== text || $[17] !== textColor || $[18] !== textFontSize || $[19] !== textFontWeight || $[20] !== textNumberOfLines || $[21] !== textProps || $[22] !== textStyle || $[23] !== textVariant) {
|
|
102
|
+
t3 = /*#__PURE__*/_jsx(ThemedText, {
|
|
103
|
+
numberOfLines: textNumberOfLines,
|
|
99
104
|
variant: textVariant,
|
|
100
105
|
fontSize: textFontSize,
|
|
101
106
|
fontWeight: textFontWeight,
|
|
@@ -104,57 +109,58 @@ const ThemedIconText = t0 => {
|
|
|
104
109
|
...textProps,
|
|
105
110
|
children: text
|
|
106
111
|
});
|
|
107
|
-
$[
|
|
108
|
-
$[
|
|
109
|
-
$[
|
|
110
|
-
$[
|
|
111
|
-
$[
|
|
112
|
-
$[
|
|
113
|
-
$[
|
|
114
|
-
$[
|
|
112
|
+
$[16] = text;
|
|
113
|
+
$[17] = textColor;
|
|
114
|
+
$[18] = textFontSize;
|
|
115
|
+
$[19] = textFontWeight;
|
|
116
|
+
$[20] = textNumberOfLines;
|
|
117
|
+
$[21] = textProps;
|
|
118
|
+
$[22] = textStyle;
|
|
119
|
+
$[23] = textVariant;
|
|
120
|
+
$[24] = t3;
|
|
115
121
|
} else {
|
|
116
|
-
|
|
122
|
+
t3 = $[24];
|
|
117
123
|
}
|
|
118
|
-
const themedText =
|
|
119
|
-
const
|
|
120
|
-
let
|
|
121
|
-
if ($[
|
|
122
|
-
|
|
124
|
+
const themedText = t3;
|
|
125
|
+
const t4 = flip && themedText;
|
|
126
|
+
let t5;
|
|
127
|
+
if ($[25] !== iconColor || $[26] !== iconName || $[27] !== iconProps || $[28] !== iconSize || $[29] !== iconStyle) {
|
|
128
|
+
t5 = /*#__PURE__*/_jsx(ThemedIcon, {
|
|
123
129
|
name: iconName,
|
|
124
130
|
size: iconSize,
|
|
125
131
|
color: iconColor,
|
|
126
132
|
style: iconStyle,
|
|
127
133
|
...iconProps
|
|
128
134
|
});
|
|
129
|
-
$[
|
|
130
|
-
$[
|
|
131
|
-
$[
|
|
132
|
-
$[
|
|
133
|
-
$[
|
|
134
|
-
$[
|
|
135
|
+
$[25] = iconColor;
|
|
136
|
+
$[26] = iconName;
|
|
137
|
+
$[27] = iconProps;
|
|
138
|
+
$[28] = iconSize;
|
|
139
|
+
$[29] = iconStyle;
|
|
140
|
+
$[30] = t5;
|
|
135
141
|
} else {
|
|
136
|
-
|
|
142
|
+
t5 = $[30];
|
|
137
143
|
}
|
|
138
|
-
const
|
|
139
|
-
let
|
|
140
|
-
if ($[
|
|
141
|
-
|
|
144
|
+
const t6 = !flip && themedText;
|
|
145
|
+
let t7;
|
|
146
|
+
if ($[31] !== props || $[32] !== t4 || $[33] !== t5 || $[34] !== t6) {
|
|
147
|
+
t7 = /*#__PURE__*/_jsxs(ThemedView, {
|
|
142
148
|
flexDirection: "row",
|
|
143
149
|
alignItems: "center",
|
|
144
150
|
gap: "s",
|
|
145
151
|
backgroundColor: "transparent",
|
|
146
152
|
...props,
|
|
147
|
-
children: [
|
|
153
|
+
children: [t4, t5, t6]
|
|
148
154
|
});
|
|
149
|
-
$[
|
|
150
|
-
$[
|
|
151
|
-
$[
|
|
152
|
-
$[
|
|
153
|
-
$[
|
|
155
|
+
$[31] = props;
|
|
156
|
+
$[32] = t4;
|
|
157
|
+
$[33] = t5;
|
|
158
|
+
$[34] = t6;
|
|
159
|
+
$[35] = t7;
|
|
154
160
|
} else {
|
|
155
|
-
|
|
161
|
+
t7 = $[35];
|
|
156
162
|
}
|
|
157
|
-
return
|
|
163
|
+
return t7;
|
|
158
164
|
};
|
|
159
165
|
export default ThemedIconText;
|
|
160
166
|
//# sourceMappingURL=ThemedIconText.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ThemedIcon","ThemedView","ThemedText","jsx","_jsx","jsxs","_jsxs","ThemedIconText","t0","$","_c","iconColor","iconName","iconProps","iconSize","iconStyle","props","t1","text","textColor","textFontSize","textFontWeight","textProps","textStyle","textVariant","flip","
|
|
1
|
+
{"version":3,"names":["ThemedIcon","ThemedView","ThemedText","jsx","_jsx","jsxs","_jsxs","ThemedIconText","t0","$","_c","iconColor","iconName","iconProps","iconSize","iconStyle","props","t1","t2","text","textColor","textFontSize","textFontWeight","textProps","textStyle","textVariant","flip","textNumberOfLines","undefined","t3","children","themedText","t4","t5","t6","t7","flexDirection","alignItems","gap","backgroundColor"],"sourceRoot":"../../../../src","sources":["components/text/ThemedIconText.tsx"],"mappings":";;;AAEA,OAAOA,UAAU,MAAM,uBAAoB;AAC3C,OAAOC,UAAU,MAAM,uBAAoB;AAC3C,OAAOC,UAAU,MAAM,iBAAc;;AAErC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AApBA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAqBA,MAAMC,cAAuC,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAA,IAAAC,SAAA;EAAA,IAAAC,QAAA;EAAA,IAAAC,SAAA;EAAA,IAAAC,QAAA;EAAA,IAAAC,SAAA;EAAA,IAAAC,KAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,IAAA;EAAA,IAAAC,SAAA;EAAA,IAAAC,YAAA;EAAA,IAAAC,cAAA;EAAA,IAAAC,SAAA;EAAA,IAAAC,SAAA;EAAA,IAA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S;MAAA,GACZF;IAAS,CACd,CAAC;IAAAJ,CAAA,OAAAE,SAAA;IAAAF,CAAA,OAAAG,QAAA;IAAAH,CAAA,OAAAI,SAAA;IAAAJ,CAAA,OAAAK,QAAA;IAAAL,CAAA,OAAAM,SAAA;IAAAN,CAAA,OAAAwB,EAAA;EAAA;IAAAA,EAAA,GAAAxB,CAAA;EAAA;EACD,MAAAyB,EAAA,IAACR,IAAkB,IAAnBK,UAAmB;EAAA,IAAAI,EAAA;EAAA,IAAA1B,CAAA,SAAAO,KAAA,IAAAP,CAAA,SAAAuB,EAAA,IAAAvB,CAAA,SAAAwB,EAAA,IAAAxB,CAAA,SAAAyB,EAAA;IAftBC,EAAA,gBAAA7B,KAAA,CAACL,UAAU;MACMmC,aAAK,EAAL,KAAK;MACRC,UAAQ,EAAR,QAAQ;MACfC,GAAG,EAAH,GAAG;MACSC,eAAa,EAAb,aAAa;MAAA,GAC1BvB,KAAK;MAAAc,QAAA,GAERE,EAAkB,EACnBC,EAME,EACDC,EAAmB;IAAA,CACV,CAAC;IAAAzB,CAAA,OAAAO,KAAA;IAAAP,CAAA,OAAAuB,EAAA;IAAAvB,CAAA,OAAAwB,EAAA;IAAAxB,CAAA,OAAAyB,EAAA;IAAAzB,CAAA,OAAA0B,EAAA;EAAA;IAAAA,EAAA,GAAA1B,CAAA;EAAA;EAAA,OAhBb0B,EAgBa;AAAA,CAEhB;AAED,eAAe5B,cAAc","ignoreList":[]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import { TextInput } from 'react-native';
|
|
5
|
+
import { useThemedTextInput } from "../../hooks/textInput.js";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
const ThemedTextInput = props => {
|
|
8
|
+
const $ = _c(6);
|
|
9
|
+
const t0 = useThemedTextInput(props);
|
|
10
|
+
let restyle;
|
|
11
|
+
let themedTextInputProps;
|
|
12
|
+
if ($[0] !== t0) {
|
|
13
|
+
({
|
|
14
|
+
restyle,
|
|
15
|
+
...themedTextInputProps
|
|
16
|
+
} = t0);
|
|
17
|
+
$[0] = t0;
|
|
18
|
+
$[1] = restyle;
|
|
19
|
+
$[2] = themedTextInputProps;
|
|
20
|
+
} else {
|
|
21
|
+
restyle = $[1];
|
|
22
|
+
themedTextInputProps = $[2];
|
|
23
|
+
}
|
|
24
|
+
let t1;
|
|
25
|
+
if ($[3] !== restyle || $[4] !== themedTextInputProps) {
|
|
26
|
+
t1 = /*#__PURE__*/_jsx(TextInput, {
|
|
27
|
+
...restyle,
|
|
28
|
+
...themedTextInputProps
|
|
29
|
+
});
|
|
30
|
+
$[3] = restyle;
|
|
31
|
+
$[4] = themedTextInputProps;
|
|
32
|
+
$[5] = t1;
|
|
33
|
+
} else {
|
|
34
|
+
t1 = $[5];
|
|
35
|
+
}
|
|
36
|
+
return t1;
|
|
37
|
+
};
|
|
38
|
+
export default ThemedTextInput;
|
|
39
|
+
//# sourceMappingURL=ThemedTextInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TextInput","useThemedTextInput","jsx","_jsx","ThemedTextInput","props","$","_c","t0","restyle","themedTextInputProps","t1"],"sourceRoot":"../../../../src","sources":["components/textInput/ThemedTextInput.tsx"],"mappings":";;;AACA,SAASA,SAAS,QAAQ,cAAc;AACxC,SAASC,kBAAkB,QAAQ,0BAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAG3D,MAAMC,eAAyC,GAAGC,KAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EACH,MAAAC,EAAA,GAAAP,kBAAkB,CAACI,KAAK,CAAC;EAAA,IAAAI,OAAA;EAAA,IAAAC,oBAAA;EAAA,IAAAJ,CAAA,QAAAE,EAAA;IAAtE;MAAAC,OAAA;MAAA,GAAAC;IAAA,IAA6CF,EAAyB;IAACF,CAAA,MAAAE,EAAA;IAAAF,CAAA,MAAAG,OAAA;IAAAH,CAAA,MAAAI,oBAAA;EAAA;IAAAD,OAAA,GAAAH,CAAA;IAAAI,oBAAA,GAAAJ,CAAA;EAAA;EAAA,IAAAK,EAAA;EAAA,IAAAL,CAAA,QAAAG,OAAA,IAAAH,CAAA,QAAAI,oBAAA;IAEhEC,EAAA,gBAAAR,IAAA,CAACH,SAAS;MAAA,GAAKS,OAAO;MAAA,GAAMC;IAAoB,CAAG,CAAC;IAAAJ,CAAA,MAAAG,OAAA;IAAAH,CAAA,MAAAI,oBAAA;IAAAJ,CAAA,MAAAK,EAAA;EAAA;IAAAA,EAAA,GAAAL,CAAA;EAAA;EAAA,OAApDK,EAAoD;AAAA,CAC5D;AAED,eAAeP,eAAe","ignoreList":[]}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import { useLayoutEffect, useMemo, useRef, useState } from 'react';
|
|
4
5
|
import { useWindowDimensions as useRNWindowDimensions } from 'react-native';
|
|
5
6
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
6
|
-
import { Orientation } from "../utils/style/const.js";
|
|
7
|
-
import {
|
|
7
|
+
import { elementDefaultDOMRect, ElementScreenPosition, Orientation, shadowDefaultBlurRadius, shadowDefaultOffset, ShadowDirection } from "../utils/style/const.js";
|
|
8
|
+
import { getElementBoundingClientRect } from "../utils/style/func.js";
|
|
9
|
+
import { useThemeColors, useThemeSpacing } from "./theme.js";
|
|
8
10
|
|
|
9
11
|
/**
|
|
10
12
|
* Hook to calculate padding styles based on safe area insets.
|
|
@@ -151,4 +153,131 @@ export function useOrientation() {
|
|
|
151
153
|
const orientation = width > height ? Orientation.Landscape : Orientation.Portrait;
|
|
152
154
|
return orientation;
|
|
153
155
|
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Hook to generate a box shadow style based on the specified direction and theme color.
|
|
159
|
+
* @param direction - The direction of the shadow (top, bottom, left, right, all)
|
|
160
|
+
* @param color - The theme color to use for the shadow (default is 'themePriT')
|
|
161
|
+
* @returns A ViewStyle object containing the calculated boxShadow property
|
|
162
|
+
* @example
|
|
163
|
+
* const shadowStyle = useShadowStyle(ShadowDirection.Bottom, 'themeSecT');
|
|
164
|
+
* // Returns: { boxShadow: '0px 5px 10px rgba(0, 0, 0, 0.1)' }
|
|
165
|
+
*/
|
|
166
|
+
export function useShadowStyle(direction, t0) {
|
|
167
|
+
const $ = _c(2);
|
|
168
|
+
const color = t0 === undefined ? "themePriT" : t0;
|
|
169
|
+
const themeColors = useThemeColors();
|
|
170
|
+
let t1;
|
|
171
|
+
bb0: {
|
|
172
|
+
const shadowColor = themeColors[color];
|
|
173
|
+
switch (direction) {
|
|
174
|
+
case ShadowDirection.Top:
|
|
175
|
+
{
|
|
176
|
+
t1 = `0px -${shadowDefaultOffset}px ${shadowDefaultBlurRadius}px ${shadowColor}`;
|
|
177
|
+
break bb0;
|
|
178
|
+
}
|
|
179
|
+
case ShadowDirection.Bottom:
|
|
180
|
+
{
|
|
181
|
+
t1 = `0px ${shadowDefaultOffset}px ${shadowDefaultBlurRadius}px ${shadowColor}`;
|
|
182
|
+
break bb0;
|
|
183
|
+
}
|
|
184
|
+
case ShadowDirection.Left:
|
|
185
|
+
{
|
|
186
|
+
t1 = `-${shadowDefaultOffset}px 0px ${shadowDefaultBlurRadius}px ${shadowColor}`;
|
|
187
|
+
break bb0;
|
|
188
|
+
}
|
|
189
|
+
case ShadowDirection.Right:
|
|
190
|
+
{
|
|
191
|
+
t1 = `${shadowDefaultOffset}px 0px ${shadowDefaultBlurRadius}px ${shadowColor}`;
|
|
192
|
+
break bb0;
|
|
193
|
+
}
|
|
194
|
+
case ShadowDirection.All:
|
|
195
|
+
{
|
|
196
|
+
t1 = `0px 0px ${shadowDefaultBlurRadius}px ${shadowColor}`;
|
|
197
|
+
break bb0;
|
|
198
|
+
}
|
|
199
|
+
default:
|
|
200
|
+
{
|
|
201
|
+
t1 = undefined;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
const boxShadow = t1;
|
|
206
|
+
let t2;
|
|
207
|
+
if ($[0] !== boxShadow) {
|
|
208
|
+
t2 = {
|
|
209
|
+
boxShadow
|
|
210
|
+
};
|
|
211
|
+
$[0] = boxShadow;
|
|
212
|
+
$[1] = t2;
|
|
213
|
+
} else {
|
|
214
|
+
t2 = $[1];
|
|
215
|
+
}
|
|
216
|
+
return t2;
|
|
217
|
+
}
|
|
218
|
+
export function useElementBoundingClientRect(t0) {
|
|
219
|
+
const $ = _c(13);
|
|
220
|
+
let t1;
|
|
221
|
+
if ($[0] !== t0) {
|
|
222
|
+
t1 = t0 === undefined ? [] : t0;
|
|
223
|
+
$[0] = t0;
|
|
224
|
+
$[1] = t1;
|
|
225
|
+
} else {
|
|
226
|
+
t1 = $[1];
|
|
227
|
+
}
|
|
228
|
+
const refreshElementBoundingClientRectDeps = t1;
|
|
229
|
+
const windowHeight = useWindowDimensionsHeight();
|
|
230
|
+
const ref = useRef(null);
|
|
231
|
+
const [elementBoundingClientRect, setElementBoundingClientRect] = useState(elementDefaultDOMRect);
|
|
232
|
+
const [elementScreenPosition, setElementScreenPosition] = useState(ElementScreenPosition.Lower);
|
|
233
|
+
let t2;
|
|
234
|
+
if ($[2] !== windowHeight) {
|
|
235
|
+
t2 = () => {
|
|
236
|
+
const tempElementScreenPosition = getElementBoundingClientRect(ref);
|
|
237
|
+
setElementBoundingClientRect(tempElementScreenPosition);
|
|
238
|
+
setElementScreenPosition(tempElementScreenPosition.y > windowHeight / 2 ? ElementScreenPosition.Upper : ElementScreenPosition.Lower);
|
|
239
|
+
};
|
|
240
|
+
$[2] = windowHeight;
|
|
241
|
+
$[3] = t2;
|
|
242
|
+
} else {
|
|
243
|
+
t2 = $[3];
|
|
244
|
+
}
|
|
245
|
+
const refreshElementBoundingClientReact = t2;
|
|
246
|
+
let t3;
|
|
247
|
+
if ($[4] !== refreshElementBoundingClientReact) {
|
|
248
|
+
t3 = () => {
|
|
249
|
+
refreshElementBoundingClientReact();
|
|
250
|
+
};
|
|
251
|
+
$[4] = refreshElementBoundingClientReact;
|
|
252
|
+
$[5] = t3;
|
|
253
|
+
} else {
|
|
254
|
+
t3 = $[5];
|
|
255
|
+
}
|
|
256
|
+
let t4;
|
|
257
|
+
if ($[6] !== refreshElementBoundingClientReact || $[7] !== refreshElementBoundingClientRectDeps) {
|
|
258
|
+
t4 = [refreshElementBoundingClientReact, ...refreshElementBoundingClientRectDeps];
|
|
259
|
+
$[6] = refreshElementBoundingClientReact;
|
|
260
|
+
$[7] = refreshElementBoundingClientRectDeps;
|
|
261
|
+
$[8] = t4;
|
|
262
|
+
} else {
|
|
263
|
+
t4 = $[8];
|
|
264
|
+
}
|
|
265
|
+
useLayoutEffect(t3, t4);
|
|
266
|
+
let t5;
|
|
267
|
+
if ($[9] !== elementBoundingClientRect || $[10] !== elementScreenPosition || $[11] !== refreshElementBoundingClientReact) {
|
|
268
|
+
t5 = {
|
|
269
|
+
ref,
|
|
270
|
+
elementBoundingClientRect,
|
|
271
|
+
elementScreenPosition,
|
|
272
|
+
refreshElementBoundingClientReact
|
|
273
|
+
};
|
|
274
|
+
$[9] = elementBoundingClientRect;
|
|
275
|
+
$[10] = elementScreenPosition;
|
|
276
|
+
$[11] = refreshElementBoundingClientReact;
|
|
277
|
+
$[12] = t5;
|
|
278
|
+
} else {
|
|
279
|
+
t5 = $[12];
|
|
280
|
+
}
|
|
281
|
+
return t5;
|
|
282
|
+
}
|
|
154
283
|
//# sourceMappingURL=style.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useWindowDimensions","useRNWindowDimensions","useSafeAreaInsets","Orientation","useThemeSpacing","useInsetsStyle","t0","$","_c","insets","insetTop","insetBottom","insetLeft","insetRight","insetsPadding","insetPaddingTop","insetPaddingBottom","insetPaddingLeft","insetPaddingRight","top","bottom","left","right","spacing","t1","JSON","parse","stringify","paddingTop","undefined","paddingBottom","paddingLeft","paddingRight","insetsStyle","useWindowDimensionsWidth","width","useWindowDimensionsHeight","height","useWindowDimensionsScale","scale","useWindowDimensionsFontScale","fontScale","useOrientation","orientation","Landscape","Portrait"],"sourceRoot":"../../../src","sources":["hooks/style.ts"],"mappings":";;;AAAA,SACEA,mBAAmB,IAAIC,qBAAqB,
|
|
1
|
+
{"version":3,"names":["useLayoutEffect","useMemo","useRef","useState","useWindowDimensions","useRNWindowDimensions","useSafeAreaInsets","elementDefaultDOMRect","ElementScreenPosition","Orientation","shadowDefaultBlurRadius","shadowDefaultOffset","ShadowDirection","getElementBoundingClientRect","useThemeColors","useThemeSpacing","useInsetsStyle","t0","$","_c","insets","insetTop","insetBottom","insetLeft","insetRight","insetsPadding","insetPaddingTop","insetPaddingBottom","insetPaddingLeft","insetPaddingRight","top","bottom","left","right","spacing","t1","JSON","parse","stringify","paddingTop","undefined","paddingBottom","paddingLeft","paddingRight","insetsStyle","useWindowDimensionsWidth","width","useWindowDimensionsHeight","height","useWindowDimensionsScale","scale","useWindowDimensionsFontScale","fontScale","useOrientation","orientation","Landscape","Portrait","useShadowStyle","direction","color","themeColors","bb0","shadowColor","Top","Bottom","Left","Right","All","boxShadow","t2","useElementBoundingClientRect","refreshElementBoundingClientRectDeps","windowHeight","ref","elementBoundingClientRect","setElementBoundingClientRect","elementScreenPosition","setElementScreenPosition","Lower","tempElementScreenPosition","y","Upper","refreshElementBoundingClientReact","t3","t4","t5"],"sourceRoot":"../../../src","sources":["hooks/style.ts"],"mappings":";;;AAAA,SACEA,eAAe,EACfC,OAAO,EACPC,MAAM,EACNC,QAAQ,QAEH,OAAO;AACd,SACEC,mBAAmB,IAAIC,qBAAqB,QAGvC,cAAc;AACrB,SAASC,iBAAiB,QAAQ,gCAAgC;AAGlE,SACEC,qBAAqB,EACrBC,qBAAqB,EACrBC,WAAW,EACXC,uBAAuB,EACvBC,mBAAmB,EACnBC,eAAe,QACV,yBAAsB;AAC7B,SAASC,4BAA4B,Q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AAA,OAAAgE,iCAAA;IAAAhE,CAAA,OAAAmE,EAAA;EAAA;IAAAA,EAAA,GAAAnE,CAAA;EAAA;EAAA,OALMmE,EAKN;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import { useRestyle } from '@shopify/restyle';
|
|
5
|
+
import { useRef } from 'react';
|
|
6
|
+
import { textInputDefaultTextVariant } from "../utils/textInput/const.js";
|
|
7
|
+
import { themedTextInputRestyleFuncs } from "../utils/theme/restyle.js";
|
|
8
|
+
import { useThemeBreakpoint, useThemeColors, useThemeTextVariants } from "./theme.js";
|
|
9
|
+
|
|
10
|
+
/** @internal */
|
|
11
|
+
export function useThemedTextInput(t0) {
|
|
12
|
+
const $ = _c(18);
|
|
13
|
+
let props;
|
|
14
|
+
let t1;
|
|
15
|
+
let t2;
|
|
16
|
+
let t3;
|
|
17
|
+
let t4;
|
|
18
|
+
let t5;
|
|
19
|
+
let underlineColorAndroid;
|
|
20
|
+
if ($[0] !== t0) {
|
|
21
|
+
({
|
|
22
|
+
cursorColor: t1,
|
|
23
|
+
selectionHandleColor: t2,
|
|
24
|
+
underlineColorAndroid,
|
|
25
|
+
placeholderTextColor: t3,
|
|
26
|
+
selectionColor: t4,
|
|
27
|
+
variant: t5,
|
|
28
|
+
...props
|
|
29
|
+
} = t0);
|
|
30
|
+
$[0] = t0;
|
|
31
|
+
$[1] = props;
|
|
32
|
+
$[2] = t1;
|
|
33
|
+
$[3] = t2;
|
|
34
|
+
$[4] = t3;
|
|
35
|
+
$[5] = t4;
|
|
36
|
+
$[6] = t5;
|
|
37
|
+
$[7] = underlineColorAndroid;
|
|
38
|
+
} else {
|
|
39
|
+
props = $[1];
|
|
40
|
+
t1 = $[2];
|
|
41
|
+
t2 = $[3];
|
|
42
|
+
t3 = $[4];
|
|
43
|
+
t4 = $[5];
|
|
44
|
+
t5 = $[6];
|
|
45
|
+
underlineColorAndroid = $[7];
|
|
46
|
+
}
|
|
47
|
+
const cursorColor = t1 === undefined ? "themePri" : t1;
|
|
48
|
+
const selectionHandleColor = t2 === undefined ? "themePri" : t2;
|
|
49
|
+
const placeholderTextColor = t3 === undefined ? "textDesc" : t3;
|
|
50
|
+
const selectionColor = t4 === undefined ? "themePriT" : t4;
|
|
51
|
+
const variant = t5 === undefined ? textInputDefaultTextVariant : t5;
|
|
52
|
+
const themeTextVariants = useThemeTextVariants();
|
|
53
|
+
const themeColors = useThemeColors();
|
|
54
|
+
const breakpoint = useThemeBreakpoint();
|
|
55
|
+
const t6 = themeTextVariants[typeof variant === "object" ? variant[breakpoint] ?? textInputDefaultTextVariant : variant];
|
|
56
|
+
let t7;
|
|
57
|
+
if ($[8] !== props || $[9] !== t6) {
|
|
58
|
+
t7 = {
|
|
59
|
+
...t6,
|
|
60
|
+
...props
|
|
61
|
+
};
|
|
62
|
+
$[8] = props;
|
|
63
|
+
$[9] = t6;
|
|
64
|
+
$[10] = t7;
|
|
65
|
+
} else {
|
|
66
|
+
t7 = $[10];
|
|
67
|
+
}
|
|
68
|
+
const restyle = useRestyle(themedTextInputRestyleFuncs, t7);
|
|
69
|
+
const t8 = themeColors[cursorColor];
|
|
70
|
+
const t9 = themeColors[selectionHandleColor];
|
|
71
|
+
const t10 = underlineColorAndroid ? themeColors[underlineColorAndroid] : undefined;
|
|
72
|
+
const t11 = themeColors[placeholderTextColor];
|
|
73
|
+
const t12 = themeColors[selectionColor];
|
|
74
|
+
let t13;
|
|
75
|
+
if ($[11] !== restyle || $[12] !== t10 || $[13] !== t11 || $[14] !== t12 || $[15] !== t8 || $[16] !== t9) {
|
|
76
|
+
t13 = {
|
|
77
|
+
cursorColor: t8,
|
|
78
|
+
selectionHandleColor: t9,
|
|
79
|
+
underlineColorAndroid: t10,
|
|
80
|
+
placeholderTextColor: t11,
|
|
81
|
+
selectionColor: t12,
|
|
82
|
+
restyle
|
|
83
|
+
};
|
|
84
|
+
$[11] = restyle;
|
|
85
|
+
$[12] = t10;
|
|
86
|
+
$[13] = t11;
|
|
87
|
+
$[14] = t12;
|
|
88
|
+
$[15] = t8;
|
|
89
|
+
$[16] = t9;
|
|
90
|
+
$[17] = t13;
|
|
91
|
+
} else {
|
|
92
|
+
t13 = $[17];
|
|
93
|
+
}
|
|
94
|
+
return t13;
|
|
95
|
+
}
|
|
96
|
+
export function useTextInputRef() {
|
|
97
|
+
return useRef(null);
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=textInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useRestyle","useRef","textInputDefaultTextVariant","themedTextInputRestyleFuncs","useThemeBreakpoint","useThemeColors","useThemeTextVariants","useThemedTextInput","t0","$","_c","props","t1","t2","t3","t4","t5","underlineColorAndroid","cursorColor","selectionHandleColor","placeholderTextColor","selectionColor","variant","undefined","themeTextVariants","themeColors","breakpoint","t6","t7","restyle","t8","t9","t10","t11","t12","t13","useTextInputRef"],"sourceRoot":"../../../src","sources":["hooks/textInput.ts"],"mappings":";;;AAAA,SAASA,UAAU,QAAQ,kBAAkB;AAC7C,SAASC,MAAM,QAAQ,OAAO;AAI9B,SAASC,2BAA2B,QAAQ,6BAA0B;AACtE,SAASC,2BAA2B,QAAQ,2BAAwB;AACpE,SACEC,kBAAkB,EAClBC,cAAc,EACdC,oBAAoB,QACf,YAAS;;AAEhB;AACA,OAAO,SAAAC,mBAAAC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAA,IAAAC,KAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,qBAAA;EAAA,IAAAR,CAAA,QAAAD,EAAA;IAA4B;MAAAU,WAAA,EAAAN,EAAA;MAAAO,oBAAA,EAAAN,EAAA;MAAAI,qBAAA;MAAAG,oBAAA,EAAAN,EAAA;MAAAO,cAAA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AAA;EAAA,OACEnC,MAAM,CAAY,IAAI,CAAC;AAAA","ignoreList":[]}
|
package/lib/module/index.js
CHANGED
|
@@ -11,6 +11,7 @@ export { default as List } from "./components/list/List.js";
|
|
|
11
11
|
export { default as ThemedLoading } from "./components/loading/ThemedLoading.js";
|
|
12
12
|
export { default as ActionSheet } from "./components/overlay/actionSheet/ActionSheet.js";
|
|
13
13
|
export { default as Alert } from "./components/overlay/alert/Alert.js";
|
|
14
|
+
export { default as ContextMenu } from "./components/overlay/contextMenu/ContextMenu.js";
|
|
14
15
|
export { default as ThemedLoadingModal } from "./components/overlay/modal/ThemedLoadingModal.js";
|
|
15
16
|
export { default as ThemedModal } from "./components/overlay/modal/ThemedModal.js";
|
|
16
17
|
export { default as ThemedToast } from "./components/overlay/toast/ThemedToast.js";
|
|
@@ -23,6 +24,7 @@ export { default as ThemedSlider } from "./components/slider/ThemedSlider.js";
|
|
|
23
24
|
export { default as ThemedSwitch } from "./components/switch/ThemedSwitch.js";
|
|
24
25
|
export { default as ThemedIconText } from "./components/text/ThemedIconText.js";
|
|
25
26
|
export { default as ThemedText } from "./components/text/ThemedText.js";
|
|
27
|
+
export { default as ThemedTextInput } from "./components/textInput/ThemedTextInput.js";
|
|
26
28
|
export { default as AnimatedThemedView } from "./components/view/AnimatedThemedView.js";
|
|
27
29
|
export { default as ThemedScreenWrap } from './components/view/ThemedScreenWrap';
|
|
28
30
|
export { default as ThemedScrollView } from "./components/view/ThemedScrollView.js";
|
|
@@ -34,6 +36,7 @@ export * from "./hooks/react.js";
|
|
|
34
36
|
export * from "./hooks/reanimated.js";
|
|
35
37
|
export * from "./hooks/separator.js";
|
|
36
38
|
export * from "./hooks/style.js";
|
|
39
|
+
export * from "./hooks/textInput.js";
|
|
37
40
|
export * from "./hooks/theme.js";
|
|
38
41
|
export * from "./hooks/view.js";
|
|
39
42
|
export * from "./types/accordion.js";
|
|
@@ -50,9 +53,12 @@ export * from "./types/slider.js";
|
|
|
50
53
|
export * from "./types/style.js";
|
|
51
54
|
export * from "./types/switch.js";
|
|
52
55
|
export * from "./types/text.js";
|
|
56
|
+
export * from "./types/textInput.js";
|
|
53
57
|
export * from "./types/theme.js";
|
|
54
58
|
export * from "./types/view.js";
|
|
55
59
|
export * from "./utils/button/const.js";
|
|
60
|
+
export * from "./utils/common/const.js";
|
|
61
|
+
export * from "./utils/common/func.js";
|
|
56
62
|
export * from "./utils/overlay/const.js";
|
|
57
63
|
export * from "./utils/slider/const.js";
|
|
58
64
|
export * from "./utils/style/const.js";
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["default","ThemedAccordion","AnimatedThemedPressable","ThemedButton","ThemedIconButton","ThemedIconTextButton","ThemedPressable","ThemedIcon","List","ThemedLoading","ActionSheet","Alert","ThemedLoadingModal","ThemedModal","ThemedToast","GestureProvider","InsetsProvider","ReactNativeTemplateProviders","ThemeProvider","ThemedSeparator","ThemedSlider","ThemedSwitch","ThemedIconText","ThemedText","AnimatedThemedView","ThemedScreenWrap","ThemedScrollView","ThemedView"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,SAASA,OAAO,IAAIC,eAAe,QAAQ,2CAAwC;AACnF,SAASD,OAAO,IAAIE,uBAAuB,QAAQ,gDAA6C;AAChG,SAASF,OAAO,IAAIG,YAAY,QAAQ,qCAAkC;AAC1E,SAASH,OAAO,IAAII,gBAAgB,QAAQ,yCAAsC;AAClF,SAASJ,OAAO,IAAIK,oBAAoB,QAAQ,6CAA0C;AAC1F,SAASL,OAAO,IAAIM,eAAe,QAAQ,wCAAqC;AAChF,SAASN,OAAO,IAAIO,UAAU,QAAQ,iCAA8B;AACpE,SAASP,OAAO,IAAIQ,IAAI,QAAQ,2BAAwB;AACxD,SAASR,OAAO,IAAIS,aAAa,QAAQ,uCAAoC;AAC7E,SAAST,OAAO,IAAIU,WAAW,QAAQ,iDAA8C;AACrF,SAASV,OAAO,IAAIW,KAAK,QAAQ,qCAAkC;AACnE,SAASX,OAAO,IAAIY,kBAAkB,QAAQ,kDAA+C;AAC7F,
|
|
1
|
+
{"version":3,"names":["default","ThemedAccordion","AnimatedThemedPressable","ThemedButton","ThemedIconButton","ThemedIconTextButton","ThemedPressable","ThemedIcon","List","ThemedLoading","ActionSheet","Alert","ContextMenu","ThemedLoadingModal","ThemedModal","ThemedToast","GestureProvider","InsetsProvider","ReactNativeTemplateProviders","ThemeProvider","ThemedSeparator","ThemedSlider","ThemedSwitch","ThemedIconText","ThemedText","ThemedTextInput","AnimatedThemedView","ThemedScreenWrap","ThemedScrollView","ThemedView"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,SAASA,OAAO,IAAIC,eAAe,QAAQ,2CAAwC;AACnF,SAASD,OAAO,IAAIE,uBAAuB,QAAQ,gDAA6C;AAChG,SAASF,OAAO,IAAIG,YAAY,QAAQ,qCAAkC;AAC1E,SAASH,OAAO,IAAII,gBAAgB,QAAQ,yCAAsC;AAClF,SAASJ,OAAO,IAAIK,oBAAoB,QAAQ,6CAA0C;AAC1F,SAASL,OAAO,IAAIM,eAAe,QAAQ,wCAAqC;AAChF,SAASN,OAAO,IAAIO,UAAU,QAAQ,iCAA8B;AACpE,SAASP,OAAO,IAAIQ,IAAI,QAAQ,2BAAwB;AACxD,SAASR,OAAO,IAAIS,aAAa,QAAQ,uCAAoC;AAC7E,SAAST,OAAO,IAAIU,WAAW,QAAQ,iDAA8C;AACrF,SAASV,OAAO,IAAIW,KAAK,QAAQ,qCAAkC;AACnE,SAASX,OAAO,IAAIY,WAAW,QAAQ,iDAA8C;AACrF,SAASZ,OAAO,IAAIa,kBAAkB,QAAQ,kDAA+C;AAC7F,SAASb,OAAO,IAAIc,WAAW,QAAQ,2CAAwC;AAC/E,SAASd,OAAO,IAAIe,WAAW,QAAQ,2CAAwC;AAC/E,SAASf,OAAO,IAAIgB,eAAe,QAAQ,0CAAuC;AAClF,SAAShB,OAAO,IAAIiB,cAAc,QAAQ,yCAAsC;AAChF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C,cAAc,0BAAuB;AACrC,cAAc,yBAAsB;AACpC,cAAc,wBAAqB;AACnC,cAAc,uBAAoB;AAClC,cAAc,wBAAqB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/textInput.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Platform","platform","OS"],"sourceRoot":"../../../../src","sources":["utils/common/const.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,cAAc;AAEvC,OAAO,MAAMC,QAAQ,GAAGD,QAAQ,CAACE,EAAE","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { platform } from "./const.js";
|
|
4
|
+
export function isPlatformAndroid() {
|
|
5
|
+
return platform === 'android';
|
|
6
|
+
}
|
|
7
|
+
export function isPlatformIOS() {
|
|
8
|
+
return platform === 'ios';
|
|
9
|
+
}
|
|
10
|
+
export function isPlatformWeb() {
|
|
11
|
+
return platform === 'web';
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=func.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["platform","isPlatformAndroid","isPlatformIOS","isPlatformWeb"],"sourceRoot":"../../../../src","sources":["utils/common/func.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,YAAS;AAElC,OAAO,SAASC,iBAAiBA,CAAA,EAAG;EAClC,OAAOD,QAAQ,KAAK,SAAS;AAC/B;AAEA,OAAO,SAASE,aAAaA,CAAA,EAAG;EAC9B,OAAOF,QAAQ,KAAK,KAAK;AAC3B;AAEA,OAAO,SAASG,aAAaA,CAAA,EAAG;EAC9B,OAAOH,QAAQ,KAAK,KAAK;AAC3B","ignoreList":[]}
|
|
@@ -24,6 +24,7 @@ export let OverlayDismissResultType = /*#__PURE__*/function (OverlayDismissResul
|
|
|
24
24
|
OverlayDismissResultType["Alert"] = "alert";
|
|
25
25
|
/** Action sheet overlay */
|
|
26
26
|
OverlayDismissResultType["ActionSheet"] = "actionSheet";
|
|
27
|
+
OverlayDismissResultType["ContextMenu"] = "contextMenu";
|
|
27
28
|
return OverlayDismissResultType;
|
|
28
29
|
}({});
|
|
29
30
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["IconSize","createContext","overlayMaxWidthPercent","OverlayDismissResultType","overlayDismissResultDefaultText","ToastType","ToastDuration","AlertContext","AlertButtonType","ActionSheetContext","actionSheetOpenDuration","actionSheetSnapDuration","actionSheetDismissDuration","actionSheetMaxHeightRatio","ActionSheetExpandableHeightRatio","actionSheetHeaderIconSize","M","actionSheetHeaderPadding","actionSheetOptionListItemPadding","actionSheetOptionListItemTextVariant"],"sourceRoot":"../../../../src","sources":["utils/overlay/const.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,qCAAqC;AAC9D,SAASC,aAAa,QAAQ,OAAO;AAOrC;AACA,OAAO,MAAMC,sBAAsB,GAAG,KAAK;;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAYC,wBAAwB,0BAAxBA,wBAAwB;EAClC;EADUA,wBAAwB;EAGlC;EAHUA,wBAAwB;EAKlC;EALUA,wBAAwB;EAAA,OAAxBA,wBAAwB;AAAA;;
|
|
1
|
+
{"version":3,"names":["IconSize","createContext","overlayMaxWidthPercent","OverlayDismissResultType","overlayDismissResultDefaultText","ToastType","ToastDuration","AlertContext","AlertButtonType","ActionSheetContext","actionSheetOpenDuration","actionSheetSnapDuration","actionSheetDismissDuration","actionSheetMaxHeightRatio","ActionSheetExpandableHeightRatio","actionSheetHeaderIconSize","M","actionSheetHeaderPadding","actionSheetOptionListItemPadding","actionSheetOptionListItemTextVariant"],"sourceRoot":"../../../../src","sources":["utils/overlay/const.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,qCAAqC;AAC9D,SAASC,aAAa,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