@draftbit/core 50.2.8-4cfe5e.2 → 50.2.8-7e1821.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/LoadingIndicator.js +1 -1
- package/lib/typescript/src/components/LoadingIndicator.js +6 -1
- package/lib/typescript/src/components/LoadingIndicator.js.map +1 -1
- package/lib/typescript/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/components/LoadingIndicator.js +6 -1
- package/src/components/LoadingIndicator.js.map +1 -1
- package/src/components/LoadingIndicator.tsx +11 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";import _defineProperty from"@babel/runtime/helpers/defineProperty";var _excluded=["theme","color","type","size","style"];var _SPINNER_COMPONENTS,_this=this,_jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/LoadingIndicator.tsx";import*as React from"react";import{withTheme}from"@draftbit/theme";import{Bounce,Chase,Circle,CircleFade,Flow,Fold,Grid,Plane,Pulse,Swing,Wander,Wave}from"react-native-animated-spinkit";import{jsx as _jsx}from"react/jsx-runtime";export var LoadingIndicatorType=function(LoadingIndicatorType){LoadingIndicatorType["plane"]="plane";LoadingIndicatorType["chase"]="chase";LoadingIndicatorType["bounce"]="bounce";LoadingIndicatorType["wave"]="wave";LoadingIndicatorType["pulse"]="pulse";LoadingIndicatorType["flow"]="flow";LoadingIndicatorType["swing"]="swing";LoadingIndicatorType["circle"]="circle";LoadingIndicatorType["circleFade"]="circleFade";LoadingIndicatorType["grid"]="grid";LoadingIndicatorType["fold"]="fold";LoadingIndicatorType["wander"]="wander";return LoadingIndicatorType;}({});var SPINNER_COMPONENTS=(_SPINNER_COMPONENTS={},_defineProperty(_SPINNER_COMPONENTS,LoadingIndicatorType.plane,Plane),_defineProperty(_SPINNER_COMPONENTS,LoadingIndicatorType.chase,Chase),_defineProperty(_SPINNER_COMPONENTS,LoadingIndicatorType.bounce,Bounce),_defineProperty(_SPINNER_COMPONENTS,LoadingIndicatorType.wave,Wave),_defineProperty(_SPINNER_COMPONENTS,LoadingIndicatorType.pulse,Pulse),_defineProperty(_SPINNER_COMPONENTS,LoadingIndicatorType.flow,Flow),_defineProperty(_SPINNER_COMPONENTS,LoadingIndicatorType.swing,Swing),_defineProperty(_SPINNER_COMPONENTS,LoadingIndicatorType.circle,Circle),_defineProperty(_SPINNER_COMPONENTS,LoadingIndicatorType.circleFade,CircleFade),_defineProperty(_SPINNER_COMPONENTS,LoadingIndicatorType.grid,Grid),_defineProperty(_SPINNER_COMPONENTS,LoadingIndicatorType.fold,Fold),_defineProperty(_SPINNER_COMPONENTS,LoadingIndicatorType.wander,Wander),_SPINNER_COMPONENTS);var LoadingIndicator=function LoadingIndicator(_ref){var theme=_ref.theme,_ref$color=_ref.color,color=_ref$color===void 0?theme.colors.branding.primary:_ref$color,_ref$type=_ref.type,type=_ref$type===void 0?LoadingIndicatorType.plane:_ref$type,size=_ref.size,style=_ref.style,rest=_objectWithoutProperties(_ref,_excluded);var SpinnerComponent=SPINNER_COMPONENTS[type];return _jsx(SpinnerComponent,Object.assign({size:size,color:color,style:style},rest));};export default withTheme(LoadingIndicator);
|
|
1
|
+
import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";import _defineProperty from"@babel/runtime/helpers/defineProperty";var _excluded=["theme","color","type","size","style"];var _SPINNER_COMPONENTS,_this=this,_jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/LoadingIndicator.tsx";import*as React from"react";import{View}from"react-native";import{withTheme}from"@draftbit/theme";import{Bounce,Chase,Circle,CircleFade,Flow,Fold,Grid,Plane,Pulse,Swing,Wander,Wave}from"react-native-animated-spinkit";import{jsx as _jsx}from"react/jsx-runtime";export var LoadingIndicatorType=function(LoadingIndicatorType){LoadingIndicatorType["plane"]="plane";LoadingIndicatorType["chase"]="chase";LoadingIndicatorType["bounce"]="bounce";LoadingIndicatorType["wave"]="wave";LoadingIndicatorType["pulse"]="pulse";LoadingIndicatorType["flow"]="flow";LoadingIndicatorType["swing"]="swing";LoadingIndicatorType["circle"]="circle";LoadingIndicatorType["circleFade"]="circleFade";LoadingIndicatorType["grid"]="grid";LoadingIndicatorType["fold"]="fold";LoadingIndicatorType["wander"]="wander";return LoadingIndicatorType;}({});var SPINNER_COMPONENTS=(_SPINNER_COMPONENTS={},_defineProperty(_SPINNER_COMPONENTS,LoadingIndicatorType.plane,Plane),_defineProperty(_SPINNER_COMPONENTS,LoadingIndicatorType.chase,Chase),_defineProperty(_SPINNER_COMPONENTS,LoadingIndicatorType.bounce,Bounce),_defineProperty(_SPINNER_COMPONENTS,LoadingIndicatorType.wave,Wave),_defineProperty(_SPINNER_COMPONENTS,LoadingIndicatorType.pulse,Pulse),_defineProperty(_SPINNER_COMPONENTS,LoadingIndicatorType.flow,Flow),_defineProperty(_SPINNER_COMPONENTS,LoadingIndicatorType.swing,Swing),_defineProperty(_SPINNER_COMPONENTS,LoadingIndicatorType.circle,Circle),_defineProperty(_SPINNER_COMPONENTS,LoadingIndicatorType.circleFade,CircleFade),_defineProperty(_SPINNER_COMPONENTS,LoadingIndicatorType.grid,Grid),_defineProperty(_SPINNER_COMPONENTS,LoadingIndicatorType.fold,Fold),_defineProperty(_SPINNER_COMPONENTS,LoadingIndicatorType.wander,Wander),_SPINNER_COMPONENTS);var LoadingIndicator=function LoadingIndicator(_ref){var theme=_ref.theme,_ref$color=_ref.color,color=_ref$color===void 0?theme.colors.branding.primary:_ref$color,_ref$type=_ref.type,type=_ref$type===void 0?LoadingIndicatorType.plane:_ref$type,size=_ref.size,style=_ref.style,rest=_objectWithoutProperties(_ref,_excluded);var SpinnerComponent=SPINNER_COMPONENTS[type];return _jsx(View,{style:{justifyContent:"center",alignItems:"center"},children:_jsx(SpinnerComponent,Object.assign({size:size,color:color,style:style},rest))});};export default withTheme(LoadingIndicator);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import { View } from "react-native";
|
|
2
3
|
import { withTheme } from "@draftbit/theme";
|
|
3
4
|
import { Bounce, Chase, Circle, CircleFade, Flow, Fold, Grid, Plane, Pulse, Swing, Wander, Wave, } from "react-native-animated-spinkit";
|
|
4
5
|
export var LoadingIndicatorType;
|
|
@@ -32,7 +33,11 @@ const SPINNER_COMPONENTS = {
|
|
|
32
33
|
};
|
|
33
34
|
const LoadingIndicator = ({ theme, color = theme.colors.branding.primary, type = LoadingIndicatorType.plane, size, style, ...rest }) => {
|
|
34
35
|
const SpinnerComponent = SPINNER_COMPONENTS[type];
|
|
35
|
-
return React.createElement(
|
|
36
|
+
return (React.createElement(View, { style: {
|
|
37
|
+
justifyContent: "center",
|
|
38
|
+
alignItems: "center",
|
|
39
|
+
} },
|
|
40
|
+
React.createElement(SpinnerComponent, { size: size, color: color, style: style, ...rest })));
|
|
36
41
|
};
|
|
37
42
|
export default withTheme(LoadingIndicator);
|
|
38
43
|
//# sourceMappingURL=LoadingIndicator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingIndicator.js","sourceRoot":"","sources":["../../../../src/components/LoadingIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"LoadingIndicator.js","sourceRoot":"","sources":["../../../../src/components/LoadingIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAwB,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EACL,MAAM,EACN,KAAK,EACL,MAAM,EACN,UAAU,EACV,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,KAAK,EACL,KAAK,EACL,MAAM,EACN,IAAI,GACL,MAAM,+BAA+B,CAAC;AAEvC,MAAM,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