@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/lib/commonjs/components/ActivityIndicator.js +1 -0
- package/lib/typescript/src/components/ActivityIndicator.d.ts +10 -0
- package/lib/typescript/src/components/ActivityIndicator.js +13 -0
- package/lib/typescript/src/components/ActivityIndicator.js.map +1 -0
- package/lib/typescript/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/components/ActivityIndicator.js +13 -0
- package/src/components/ActivityIndicator.js.map +1 -0
- package/src/components/ActivityIndicator.tsx +38 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["style","color","theme"];var _this=this,_jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/ActivityIndicator.tsx";import*as React from"react";import{ActivityIndicator as ActivityIndicatorRN}from"react-native";import{withTheme}from"@draftbit/theme";import{jsx as _jsx}from"react/jsx-runtime";var ActivityIndicator=function ActivityIndicator(_ref){var style=_ref.style,color=_ref.color,colors=_ref.theme.colors,rest=_objectWithoutProperties(_ref,_excluded);return _jsx(ActivityIndicatorRN,Object.assign({animating:true,hidesWhenStopped:true,size:"small",style:[{backgroundColor:color||colors.border.brand},style]},rest));};export default withTheme(ActivityIndicator);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { StyleProp, ViewStyle } from "react-native";
|
|
3
|
+
import type { ReadTheme } from "@draftbit/theme";
|
|
4
|
+
declare type Props = {
|
|
5
|
+
style?: StyleProp<ViewStyle>;
|
|
6
|
+
color?: string;
|
|
7
|
+
theme: ReadTheme;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: React.ComponentType<Omit<React.PropsWithChildren<Props>, "theme">>;
|
|
10
|
+
export default _default;
|
|
@@ -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":["../../../../src/components/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"}
|