@draftbit/core 44.2.1 → 44.2.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.
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import * as React from "react";
|
|
2
4
|
import { Pressable, StyleSheet, View } from "react-native";
|
|
3
5
|
import Text from "../Text";
|
|
@@ -18,10 +20,9 @@ const AccordionItem = _ref => {
|
|
|
18
20
|
textStyles,
|
|
19
21
|
viewStyles
|
|
20
22
|
} = extractStyles(style);
|
|
21
|
-
return /*#__PURE__*/React.createElement(Pressable, {
|
|
22
|
-
style: [styles.container, viewStyles]
|
|
23
|
-
|
|
24
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
23
|
+
return /*#__PURE__*/React.createElement(Pressable, _extends({
|
|
24
|
+
style: [styles.container, viewStyles]
|
|
25
|
+
}, rest), /*#__PURE__*/React.createElement(View, {
|
|
25
26
|
style: styles.row
|
|
26
27
|
}, icon ? /*#__PURE__*/React.createElement(Icon, {
|
|
27
28
|
name: icon,
|
|
@@ -54,22 +55,4 @@ const styles = StyleSheet.create({
|
|
|
54
55
|
}
|
|
55
56
|
});
|
|
56
57
|
export default withTheme(AccordionItem);
|
|
57
|
-
//# sourceMappingURL=AccordionItem.js.map container: {
|
|
58
|
-
padding: 8
|
|
59
|
-
},
|
|
60
|
-
row: {
|
|
61
|
-
flexDirection: "row",
|
|
62
|
-
alignItems: "center",
|
|
63
|
-
paddingLeft: 8
|
|
64
|
-
},
|
|
65
|
-
item: {
|
|
66
|
-
marginVertical: 6,
|
|
67
|
-
paddingLeft: 8
|
|
68
|
-
},
|
|
69
|
-
content: {
|
|
70
|
-
flex: 1,
|
|
71
|
-
justifyContent: "center"
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
export default withTheme(AccordionItem);
|
|
75
58
|
//# sourceMappingURL=AccordionItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useAuthState.
|
|
1
|
+
{"version":3,"sources":["useAuthState.tsx"],"names":["React","useAuthState","auth","error","setError","useState","value","setValue","currentUser","useEffect","list","onAuthStateChanged","signInWithEmailAndPassword","user","password","then","catch","createUserWithEmailAndPassword","signOut"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AAEA,OAAO,MAAMC,YAAY,GAAIC,IAAD,IAAe;AACzC,QAAM,CAACC,KAAD,EAAQC,QAAR,IAAoBJ,KAAK,CAACK,QAAN,EAA1B;AACA,QAAM,CAACC,KAAD,EAAQC,QAAR,IAAoBP,KAAK,CAACK,QAAN,CAAeH,IAAI,CAACM,WAApB,CAA1B;AAEAR,EAAAA,KAAK,CAACS,SAAN,CAAgB,MAAM;AACpB,UAAMC,IAAI,GAAGR,IAAI,CAACS,kBAAL,CAAwBJ,QAAxB,EAAkCH,QAAlC,CAAb;AAEA,WAAO,MAAM;AACXM,MAAAA,IAAI;AACL,KAFD;AAGD,GAND,EAMG,CAACR,IAAD,CANH;;AAQA,QAAMU,0BAA0B,GAAG,CAACC,IAAD,EAAeC,QAAf,KAAoC;AACrEZ,IAAAA,IAAI,CACDU,0BADH,CAC8BC,IAD9B,EACoCC,QADpC,EAEGC,IAFH,CAEQR,QAFR,EAGGS,KAHH,CAGSZ,QAHT;AAID,GALD;;AAOA,QAAMa,8BAA8B,GAAG,CAACJ,IAAD,EAAeC,QAAf,KAAoC;AACzEZ,IAAAA,IAAI,CACDU,0BADH,CAC8BC,IAD9B,EACoCC,QADpC,EAEGC,IAFH,CAEQR,QAFR,EAGGS,KAHH,CAGSZ,QAHT;AAID,GALD;;AAOA,QAAMc,OAAO,GAAG,MAAMhB,IAAI,CAACgB,OAAL,EAAtB;;AAEA,SAAO,CACLZ,KADK,EAELH,KAFK,EAGLS,0BAHK,EAILM,OAJK,EAKLD,8BALK,CAAP;AAOD,CAnCM","sourcesContent":["import * as React from \"react\";\n\nexport const useAuthState = (auth: any) => {\n const [error, setError] = React.useState();\n const [value, setValue] = React.useState(auth.currentUser);\n\n React.useEffect(() => {\n const list = auth.onAuthStateChanged(setValue, setError);\n\n return () => {\n list();\n };\n }, [auth]);\n\n const signInWithEmailAndPassword = (user: string, password: string) => {\n auth\n .signInWithEmailAndPassword(user, password)\n .then(setValue)\n .catch(setError);\n };\n\n const createUserWithEmailAndPassword = (user: string, password: string) => {\n auth\n .signInWithEmailAndPassword(user, password)\n .then(setValue)\n .catch(setError);\n };\n\n const signOut = () => auth.signOut();\n\n return [\n value,\n error,\n signInWithEmailAndPassword,\n signOut,\n createUserWithEmailAndPassword,\n ];\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@draftbit/core",
|
|
3
|
-
"version": "44.2.
|
|
3
|
+
"version": "44.2.2",
|
|
4
4
|
"description": "Core (non-native) Components",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@material-ui/core": "^4.11.0",
|
|
46
46
|
"@material-ui/pickers": "^3.2.10",
|
|
47
47
|
"@react-native-community/slider": "4.1.12",
|
|
48
|
-
"@react-native-picker/picker": "2.
|
|
48
|
+
"@react-native-picker/picker": "2.4.1",
|
|
49
49
|
"color": "^3.1.2",
|
|
50
50
|
"date-fns": "^2.16.1",
|
|
51
51
|
"dateformat": "^3.0.3",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
]
|
|
79
79
|
]
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "277c7239f03d659053b557456bc5970792bd51ca"
|
|
82
82
|
}
|