@draftbit/core 49.6.1-d928a6.2 → 49.6.2-7bd1a1.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.
- package/lib/commonjs/components/ActivityIndicator.js +1 -0
- package/lib/commonjs/components/KeyboardAvoidingView.js +1 -1
- package/lib/commonjs/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js +1 -1
- package/lib/commonjs/components/MediaPlayer/MediaPlayerCommon.js +1 -1
- package/lib/commonjs/components/MediaPlayer/VideoPlayer/VideoPlayer.js +1 -1
- package/lib/commonjs/components/Surface.js +1 -1
- package/lib/commonjs/index.js +1 -1
- package/lib/typescript/src/components/ActivityIndicator.d.ts +27 -0
- package/lib/typescript/src/components/ActivityIndicator.js +74 -0
- package/lib/typescript/src/components/ActivityIndicator.js.map +1 -0
- package/lib/typescript/src/components/KeyboardAvoidingView.d.ts +1 -1
- package/lib/typescript/src/components/KeyboardAvoidingView.js +1 -1
- package/lib/typescript/src/components/KeyboardAvoidingView.js.map +1 -1
- package/lib/typescript/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js +1 -1
- package/lib/typescript/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js.map +1 -1
- package/lib/typescript/src/components/MediaPlayer/MediaPlayerCommon.d.ts +1 -1
- package/lib/typescript/src/components/MediaPlayer/MediaPlayerCommon.js +12 -7
- package/lib/typescript/src/components/MediaPlayer/MediaPlayerCommon.js.map +1 -1
- package/lib/typescript/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js +1 -1
- package/lib/typescript/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js.map +1 -1
- package/lib/typescript/src/components/Surface.js +32 -1
- package/lib/typescript/src/components/Surface.js.map +1 -1
- package/lib/typescript/src/index.d.ts +1 -1
- package/lib/typescript/src/index.js +1 -1
- package/lib/typescript/src/index.js.map +1 -1
- package/lib/typescript/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -3
- package/src/components/ActivityIndicator.js +74 -0
- package/src/components/ActivityIndicator.js.map +1 -0
- package/src/components/ActivityIndicator.tsx +140 -0
- package/src/components/KeyboardAvoidingView.js +1 -1
- package/src/components/KeyboardAvoidingView.js.map +1 -1
- package/src/components/KeyboardAvoidingView.tsx +2 -2
- package/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js +1 -1
- package/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js.map +1 -1
- package/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.tsx +1 -1
- package/src/components/MediaPlayer/MediaPlayerCommon.js +12 -7
- package/src/components/MediaPlayer/MediaPlayerCommon.js.map +1 -1
- package/src/components/MediaPlayer/MediaPlayerCommon.ts +23 -9
- package/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js +1 -1
- package/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js.map +1 -1
- package/src/components/MediaPlayer/VideoPlayer/VideoPlayer.tsx +1 -1
- package/src/components/Surface.js +32 -1
- package/src/components/Surface.js.map +1 -1
- package/src/components/Surface.tsx +36 -1
- package/src/index.js +1 -1
- package/src/index.js.map +1 -1
- package/src/index.tsx +1 -1
- package/lib/commonjs/components/Toast/Toast.js +0 -1
- package/lib/commonjs/components/Toast/index.js +0 -1
- package/lib/typescript/src/components/Toast/Toast.d.ts +0 -11
- package/lib/typescript/src/components/Toast/Toast.js +0 -23
- package/lib/typescript/src/components/Toast/Toast.js.map +0 -1
- package/lib/typescript/src/components/Toast/index.d.ts +0 -1
- package/lib/typescript/src/components/Toast/index.js +0 -2
- package/lib/typescript/src/components/Toast/index.js.map +0 -1
- package/src/components/Toast/Toast.js +0 -23
- package/src/components/Toast/Toast.js.map +0 -1
- package/src/components/Toast/Toast.tsx +0 -45
- package/src/components/Toast/index.js +0 -2
- package/src/components/Toast/index.js.map +0 -1
- package/src/components/Toast/index.tsx +0 -1
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { View, Text } from "react-native";
|
|
3
|
-
import { extractStyles } from "../../utilities";
|
|
4
|
-
import { withTheme } from "@draftbit/theme";
|
|
5
|
-
const Toast = ({ visible = false, title, style, theme, }) => {
|
|
6
|
-
if (!visible)
|
|
7
|
-
return null;
|
|
8
|
-
const { textStyles, viewStyles } = extractStyles(style);
|
|
9
|
-
return (React.createElement(View, { style: [
|
|
10
|
-
{
|
|
11
|
-
backgroundColor: "rgba(0,0,0,0.7)",
|
|
12
|
-
},
|
|
13
|
-
viewStyles,
|
|
14
|
-
] },
|
|
15
|
-
React.createElement(Text, { style: [
|
|
16
|
-
{
|
|
17
|
-
color: theme.colors.text.strong,
|
|
18
|
-
},
|
|
19
|
-
textStyles,
|
|
20
|
-
] }, title)));
|
|
21
|
-
};
|
|
22
|
-
export default withTheme(Toast);
|
|
23
|
-
//# sourceMappingURL=Toast.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.js","sourceRoot":"","sources":["../../../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAa,SAAS,EAAE,MAAM,iBAAiB,CAAC;AASvD,MAAM,KAAK,GAA6C,CAAC,EACvD,OAAO,GAAG,KAAK,EACf,KAAK,EACL,KAAK,EACL,KAAK,GACN,EAAE,EAAE;IACH,IAAI,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC;IAC1B,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IACxD,OAAO,CACL,oBAAC,IAAI,IACH,KAAK,EAAE;YACL;gBACE,eAAe,EAAE,iBAAiB;aACnC;YACD,UAAU;SACX;QAED,oBAAC,IAAI,IACH,KAAK,EAAE;gBACL;oBACE,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM;iBAChC;gBACD,UAAU;aACX,IAEA,KAAK,CACD,CACF,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Toast } from "./Toast";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Toast/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { View, Text } from "react-native";
|
|
3
|
-
import { extractStyles } from "../../utilities";
|
|
4
|
-
import { withTheme } from "@draftbit/theme";
|
|
5
|
-
const Toast = ({ visible = false, title, style, theme, }) => {
|
|
6
|
-
if (!visible)
|
|
7
|
-
return null;
|
|
8
|
-
const { textStyles, viewStyles } = extractStyles(style);
|
|
9
|
-
return (React.createElement(View, { style: [
|
|
10
|
-
{
|
|
11
|
-
backgroundColor: "rgba(0,0,0,0.7)",
|
|
12
|
-
},
|
|
13
|
-
viewStyles,
|
|
14
|
-
] },
|
|
15
|
-
React.createElement(Text, { style: [
|
|
16
|
-
{
|
|
17
|
-
color: theme.colors.text.strong,
|
|
18
|
-
},
|
|
19
|
-
textStyles,
|
|
20
|
-
] }, title)));
|
|
21
|
-
};
|
|
22
|
-
export default withTheme(Toast);
|
|
23
|
-
//# sourceMappingURL=Toast.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.js","sourceRoot":"","sources":["Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAa,SAAS,EAAE,MAAM,iBAAiB,CAAC;AASvD,MAAM,KAAK,GAA6C,CAAC,EACvD,OAAO,GAAG,KAAK,EACf,KAAK,EACL,KAAK,EACL,KAAK,GACN,EAAE,EAAE;IACH,IAAI,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC;IAC1B,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IACxD,OAAO,CACL,oBAAC,IAAI,IACH,KAAK,EAAE;YACL;gBACE,eAAe,EAAE,iBAAiB;aACnC;YACD,UAAU;SACX;QAED,oBAAC,IAAI,IACH,KAAK,EAAE;gBACL;oBACE,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM;iBAChC;gBACD,UAAU;aACX,IAEA,KAAK,CACD,CACF,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { StyleProp, ViewStyle } from "react-native";
|
|
3
|
-
import { View, Text } from "react-native";
|
|
4
|
-
import { extractStyles } from "../../utilities";
|
|
5
|
-
import { ReadTheme, withTheme } from "@draftbit/theme";
|
|
6
|
-
|
|
7
|
-
type Props = {
|
|
8
|
-
visible: boolean;
|
|
9
|
-
title: string;
|
|
10
|
-
style?: StyleProp<ViewStyle>;
|
|
11
|
-
theme: ReadTheme;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const Toast: React.FC<React.PropsWithChildren<Props>> = ({
|
|
15
|
-
visible = false,
|
|
16
|
-
title,
|
|
17
|
-
style,
|
|
18
|
-
theme,
|
|
19
|
-
}) => {
|
|
20
|
-
if (!visible) return null;
|
|
21
|
-
const { textStyles, viewStyles } = extractStyles(style);
|
|
22
|
-
return (
|
|
23
|
-
<View
|
|
24
|
-
style={[
|
|
25
|
-
{
|
|
26
|
-
backgroundColor: "rgba(0,0,0,0.7)",
|
|
27
|
-
},
|
|
28
|
-
viewStyles,
|
|
29
|
-
]}
|
|
30
|
-
>
|
|
31
|
-
<Text
|
|
32
|
-
style={[
|
|
33
|
-
{
|
|
34
|
-
color: theme.colors.text.strong,
|
|
35
|
-
},
|
|
36
|
-
textStyles,
|
|
37
|
-
]}
|
|
38
|
-
>
|
|
39
|
-
{title}
|
|
40
|
-
</Text>
|
|
41
|
-
</View>
|
|
42
|
-
);
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export default withTheme(Toast);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Toast } from "./Toast";
|