@draftbit/core 50.2.1 → 50.2.2-132cc7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@draftbit/core",
3
- "version": "50.2.1",
3
+ "version": "50.2.2-132cc7.2+132cc7a",
4
4
  "description": "Core (non-native) Components",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "types": "lib/typescript/src/index.d.ts",
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "@date-io/date-fns": "^1.3.13",
43
43
  "@draftbit/react-theme-provider": "^2.1.1",
44
- "@draftbit/theme": "50.2.1",
44
+ "@draftbit/theme": "^50.2.2-132cc7.2+132cc7a",
45
45
  "@expo/vector-icons": "^14.0.0",
46
46
  "@gorhom/bottom-sheet": "5.0.0-alpha.7",
47
47
  "@material-ui/core": "^4.11.0",
@@ -117,5 +117,5 @@
117
117
  ],
118
118
  "testEnvironment": "node"
119
119
  },
120
- "gitHead": "61e1fefd75c19101d867a7c9ceae6577444d3017"
120
+ "gitHead": "132cc7affaf4a70ec5c54bdab57166458b89bb43"
121
121
  }
@@ -0,0 +1,13 @@
1
+ import * as React from "react";
2
+ import { ActivityIndicator as ActivityIndicatorRN, } from "react-native";
3
+ import { withTheme } from "@draftbit/theme";
4
+ const ActivityIndicator = ({ style, color, theme: { colors }, ...rest }) => {
5
+ return (React.createElement(ActivityIndicatorRN, { animating: true, hidesWhenStopped: true, size: "small", style: [
6
+ {
7
+ backgroundColor: color || colors.border.brand,
8
+ },
9
+ style,
10
+ ], ...rest }));
11
+ };
12
+ export default withTheme(ActivityIndicator);
13
+ //# sourceMappingURL=ActivityIndicator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActivityIndicator.js","sourceRoot":"","sources":["ActivityIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,iBAAiB,IAAI,mBAAmB,GACzC,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAS5C,MAAM,iBAAiB,GAA6C,CAAC,EACnE,KAAK,EACL,KAAK,EACL,KAAK,EAAE,EAAE,MAAM,EAAE,EACjB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,OAAO,CACL,oBAAC,mBAAmB,IAClB,SAAS,EAAE,IAAI,EACf,gBAAgB,EAAE,IAAI,EACtB,IAAI,EAAE,OAAO,EACb,KAAK,EAAE;YACL;gBACE,eAAe,EAAE,KAAK,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK;aAC9C;YACD,KAAK;SACN,KACG,IAAI,GACR,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,iBAAiB,CAAC,CAAC"}
@@ -0,0 +1,38 @@
1
+ import * as React from "react";
2
+ import {
3
+ StyleProp,
4
+ ViewStyle,
5
+ ActivityIndicator as ActivityIndicatorRN,
6
+ } from "react-native";
7
+ import { withTheme } from "@draftbit/theme";
8
+ import type { ReadTheme } from "@draftbit/theme";
9
+
10
+ type Props = {
11
+ style?: StyleProp<ViewStyle>;
12
+ color?: string;
13
+ theme: ReadTheme;
14
+ };
15
+
16
+ const ActivityIndicator: React.FC<React.PropsWithChildren<Props>> = ({
17
+ style,
18
+ color,
19
+ theme: { colors },
20
+ ...rest
21
+ }) => {
22
+ return (
23
+ <ActivityIndicatorRN
24
+ animating={true}
25
+ hidesWhenStopped={true}
26
+ size={"small"}
27
+ style={[
28
+ {
29
+ backgroundColor: color || colors.border.brand,
30
+ },
31
+ style,
32
+ ]}
33
+ {...rest}
34
+ />
35
+ );
36
+ };
37
+
38
+ export default withTheme(ActivityIndicator);