@draftbit/core 46.4.4-10b0a9.2 → 46.4.4-64c11a.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.
|
@@ -15,8 +15,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
15
15
|
|
|
16
16
|
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; }
|
|
17
17
|
|
|
18
|
-
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); }
|
|
19
|
-
|
|
20
18
|
const CONSTANTS = {
|
|
21
19
|
baseHeight: 42,
|
|
22
20
|
borderRadius: 4,
|
|
@@ -73,7 +71,7 @@ function Base(_ref) {
|
|
|
73
71
|
buttonStyles.justifyContent = "flex-end";
|
|
74
72
|
}
|
|
75
73
|
|
|
76
|
-
return /*#__PURE__*/React.createElement(_reactNative.Pressable,
|
|
74
|
+
return /*#__PURE__*/React.createElement(_reactNative.Pressable, {
|
|
77
75
|
onPress: onPress,
|
|
78
76
|
disabled: disabled || loading,
|
|
79
77
|
style: _ref2 => {
|
|
@@ -83,8 +81,9 @@ function Base(_ref) {
|
|
|
83
81
|
return [styles.base, {
|
|
84
82
|
opacity: pressed || disabled ? 0.75 : 1
|
|
85
83
|
}, buttonStyles];
|
|
86
|
-
}
|
|
87
|
-
|
|
84
|
+
},
|
|
85
|
+
...props
|
|
86
|
+
}, loading ? /*#__PURE__*/React.createElement(_reactNative.ActivityIndicator, {
|
|
88
87
|
size: "small",
|
|
89
88
|
color: color,
|
|
90
89
|
style: styles.loading
|
|
@@ -104,13 +103,14 @@ const Solid = _ref3 => {
|
|
|
104
103
|
theme,
|
|
105
104
|
...props
|
|
106
105
|
} = _ref3;
|
|
107
|
-
return /*#__PURE__*/React.createElement(Base,
|
|
106
|
+
return /*#__PURE__*/React.createElement(Base, {
|
|
108
107
|
style: [{
|
|
109
108
|
color: "#FFF",
|
|
110
109
|
borderRadius: theme.roundness,
|
|
111
110
|
backgroundColor: theme.colors.primary
|
|
112
|
-
}, style]
|
|
113
|
-
|
|
111
|
+
}, style],
|
|
112
|
+
...props
|
|
113
|
+
});
|
|
114
114
|
};
|
|
115
115
|
|
|
116
116
|
const ButtonSolid = (0, _theming.withTheme)(Solid);
|
|
@@ -124,13 +124,14 @@ const Outline = _ref4 => {
|
|
|
124
124
|
theme,
|
|
125
125
|
...props
|
|
126
126
|
} = _ref4;
|
|
127
|
-
return /*#__PURE__*/React.createElement(Base,
|
|
127
|
+
return /*#__PURE__*/React.createElement(Base, {
|
|
128
128
|
style: [styles.outline, {
|
|
129
129
|
borderRadius: theme.roundness,
|
|
130
130
|
borderColor: theme.colors.primary,
|
|
131
131
|
color: theme.colors.primary
|
|
132
|
-
}, style]
|
|
133
|
-
|
|
132
|
+
}, style],
|
|
133
|
+
...props
|
|
134
|
+
});
|
|
134
135
|
};
|
|
135
136
|
|
|
136
137
|
const ButtonOutline = (0, _theming.withTheme)(Outline);
|
|
@@ -178,4 +179,24 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
178
179
|
}
|
|
179
180
|
})
|
|
180
181
|
}
|
|
182
|
+
});nsparent",
|
|
183
|
+
padding: 0,
|
|
184
|
+
minHeight: undefined
|
|
185
|
+
},
|
|
186
|
+
loading: {
|
|
187
|
+
marginRight: 6
|
|
188
|
+
},
|
|
189
|
+
icon: { ..._reactNative.Platform.select({
|
|
190
|
+
web: {
|
|
191
|
+
marginTop: 1,
|
|
192
|
+
marginRight: 4,
|
|
193
|
+
alignSelf: "center"
|
|
194
|
+
},
|
|
195
|
+
default: {
|
|
196
|
+
marginBottom: 2,
|
|
197
|
+
marginRight: 4,
|
|
198
|
+
alignSelf: "center"
|
|
199
|
+
}
|
|
200
|
+
})
|
|
201
|
+
}
|
|
181
202
|
});
|
|
@@ -43,7 +43,7 @@ const SEED_DATA = {
|
|
|
43
43
|
defaultValue: "white"
|
|
44
44
|
}),
|
|
45
45
|
remainingTrackColor: (0, _types.createColorProp)({
|
|
46
|
-
label: "
|
|
46
|
+
label: "Remaining Track Color",
|
|
47
47
|
defaultValue: "#333333"
|
|
48
48
|
}),
|
|
49
49
|
trackThumbSize: (0, _types.createNumberProp)({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@draftbit/core",
|
|
3
|
-
"version": "46.4.4-
|
|
3
|
+
"version": "46.4.4-64c11a.2+64c11a6",
|
|
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": "^46.4.4-
|
|
44
|
+
"@draftbit/types": "^46.4.4-64c11a.2+64c11a6",
|
|
45
45
|
"@material-ui/core": "^4.11.0",
|
|
46
46
|
"@material-ui/pickers": "^3.2.10",
|
|
47
47
|
"@react-native-community/slider": "4.2.3",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
]
|
|
82
82
|
]
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "64c11a6d42bef20b500a03e6ca52f5ad693d569f"
|
|
85
85
|
}
|