@draftbit/core 47.2.6-0829c6.2 → 47.2.6-f74750.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.
|
@@ -9,7 +9,6 @@ var _reactNative = require("react-native");
|
|
|
9
9
|
var _theming = require("../theming");
|
|
10
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
11
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
12
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
13
12
|
const Divider = _ref => {
|
|
14
13
|
let {
|
|
15
14
|
style,
|
|
@@ -19,6 +18,18 @@ const Divider = _ref => {
|
|
|
19
18
|
},
|
|
20
19
|
...rest
|
|
21
20
|
} = _ref;
|
|
21
|
+
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
22
|
+
style: [{
|
|
23
|
+
backgroundColor: color || colors.divider,
|
|
24
|
+
height: _reactNative.StyleSheet.hairlineWidth
|
|
25
|
+
}, style],
|
|
26
|
+
...rest
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
var _default = (0, _theming.withTheme)(Divider);
|
|
30
|
+
exports.default = _default;
|
|
31
|
+
//# sourceMappingURL=Divider.js.mapst
|
|
32
|
+
} = _ref;
|
|
22
33
|
return /*#__PURE__*/React.createElement(_reactNative.View, _extends({
|
|
23
34
|
style: [{
|
|
24
35
|
backgroundColor: color || colors.divider,
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
1
4
|
import React from "react";
|
|
2
5
|
import { View } from "react-native";
|
|
3
6
|
import { Svg, Path, G } from "react-native-svg";
|
|
4
7
|
class CircularProgress extends React.Component {
|
|
5
8
|
constructor() {
|
|
6
9
|
super(...arguments);
|
|
7
|
-
this
|
|
10
|
+
_defineProperty(this, "polarToCartesian", (centerX, centerY, radius, angleInDegrees) => {
|
|
8
11
|
var angleInRadians = (angleInDegrees - 90) * Math.PI / 180.0;
|
|
9
12
|
return {
|
|
10
13
|
x: centerX + radius * Math.cos(angleInRadians),
|
|
11
14
|
y: centerY + radius * Math.sin(angleInRadians)
|
|
12
15
|
};
|
|
13
|
-
};
|
|
14
|
-
this
|
|
16
|
+
});
|
|
17
|
+
_defineProperty(this, "circlePath", (x, y, radius, startAngle, endAngle) => {
|
|
15
18
|
var start = this.polarToCartesian(x, y, radius, endAngle * 0.9999);
|
|
16
19
|
var end = this.polarToCartesian(x, y, radius, startAngle);
|
|
17
20
|
var largeArcFlag = endAngle - startAngle <= 180 ? "0" : "1";
|
|
18
21
|
var d = ["M", start.x, start.y, "A", radius, radius, 0, largeArcFlag, 0, end.x, end.y];
|
|
19
22
|
return d.join(" ");
|
|
20
|
-
};
|
|
21
|
-
this
|
|
23
|
+
});
|
|
24
|
+
_defineProperty(this, "clampFill", fill => Math.min(100, Math.max(0, fill)));
|
|
22
25
|
}
|
|
23
26
|
render() {
|
|
24
27
|
const {
|
|
@@ -99,26 +102,4 @@ class CircularProgress extends React.Component {
|
|
|
99
102
|
}
|
|
100
103
|
}
|
|
101
104
|
export default CircularProgress;
|
|
102
|
-
//# sourceMappingURL=CircularProgress.js.map originX: (size + padding) / 2,
|
|
103
|
-
originY: (size + padding) / 2
|
|
104
|
-
}, backgroundColor && /*#__PURE__*/React.createElement(Path, {
|
|
105
|
-
d: backgroundPath,
|
|
106
|
-
stroke: backgroundColor,
|
|
107
|
-
strokeWidth: backgroundWidth || width,
|
|
108
|
-
strokeLinecap: lineCap,
|
|
109
|
-
strokeDasharray: strokeDasharrayBackground,
|
|
110
|
-
fill: "transparent"
|
|
111
|
-
}), fill > 0 && /*#__PURE__*/React.createElement(Path, {
|
|
112
|
-
d: circlePathItem,
|
|
113
|
-
stroke: tintColor,
|
|
114
|
-
strokeWidth: width,
|
|
115
|
-
strokeLinecap: lineCap,
|
|
116
|
-
strokeDasharray: strokeDasharrayTint,
|
|
117
|
-
fill: "transparent"
|
|
118
|
-
}), cap)), children && /*#__PURE__*/React.createElement(View, {
|
|
119
|
-
style: localChildrenContainerStyle
|
|
120
|
-
}, children(fill)));
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
export default CircularProgress;
|
|
124
105
|
//# sourceMappingURL=CircularProgress.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@draftbit/core",
|
|
3
|
-
"version": "47.2.6-
|
|
3
|
+
"version": "47.2.6-f74750.2+f74750b",
|
|
4
4
|
"description": "Core (non-native) Components",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -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/types": "^47.2.6-
|
|
44
|
+
"@draftbit/types": "^47.2.6-f74750.2+f74750b",
|
|
45
45
|
"@material-ui/core": "^4.11.0",
|
|
46
46
|
"@material-ui/pickers": "^3.2.10",
|
|
47
47
|
"@react-native-community/slider": "4.2.4",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"node_modules/",
|
|
95
95
|
"lib/"
|
|
96
96
|
],
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "f74750bfd42203f3194c16fcc6e7d4b86705227d"
|
|
98
98
|
}
|