@draftbit/core 46.5.2-a65418.2 → 46.5.2-b58416.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/DatePicker/DatePicker.js +1 -1
- package/lib/module/components/DatePicker/DatePicker.js +1 -1
- package/lib/typescript/src/styles/overlay.d.ts +1 -1
- package/lib/typescript/src/styles/overlay.d.ts.map +1 -1
- package/lib/typescript/src/styles/shadow.d.ts +2 -2
- package/package.json +7 -7
- package/src/components/DatePicker/DatePicker.js +1 -1
- package/src/components/DatePicker/DatePicker.tsx +1 -1
- package/src/styles/overlay.tsx +2 -2
|
@@ -328,7 +328,7 @@ const DatePicker = _ref => {
|
|
|
328
328
|
onFocus: _handleFocus,
|
|
329
329
|
onBlur: _handleBlur,
|
|
330
330
|
underlineColorAndroid: "transparent",
|
|
331
|
-
style: [inputStyles, textStyles
|
|
331
|
+
style: [inputStyles, textStyles]
|
|
332
332
|
}, props))), rightIconName ? /*#__PURE__*/React.createElement(Icon, {
|
|
333
333
|
name: rightIconName,
|
|
334
334
|
size: ICON_SIZE,
|
|
@@ -319,7 +319,7 @@ const DatePicker = _ref => {
|
|
|
319
319
|
onFocus: _handleFocus,
|
|
320
320
|
onBlur: _handleBlur,
|
|
321
321
|
underlineColorAndroid: "transparent",
|
|
322
|
-
style: [inputStyles, textStyles
|
|
322
|
+
style: [inputStyles, textStyles]
|
|
323
323
|
}, props))), rightIconName ? /*#__PURE__*/React.createElement(Icon, {
|
|
324
324
|
name: rightIconName,
|
|
325
325
|
size: ICON_SIZE,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Animated } from "react-native";
|
|
2
|
-
export default function overlay<T extends Animated.Value | number>(elevation: T, surfaceColor?: string): T extends number ? string : Animated.AnimatedInterpolation
|
|
2
|
+
export default function overlay<T extends Animated.Value | number>(elevation: T, surfaceColor?: string): T extends number ? string : Animated.AnimatedInterpolation<string | number>;
|
|
3
3
|
//# sourceMappingURL=overlay.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../../src/styles/overlay.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAOxC,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,CAAC,SAAS,QAAQ,CAAC,KAAK,GAAG,MAAM,EAC/D,SAAS,EAAE,CAAC,EACZ,YAAY,GAAE,MAAiC,GAC9C,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC,qBAAqB,
|
|
1
|
+
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../../src/styles/overlay.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAOxC,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,CAAC,SAAS,QAAQ,CAAC,KAAK,GAAG,MAAM,EAC/D,SAAS,EAAE,CAAC,EACZ,YAAY,GAAE,MAAiC,GAC9C,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC,qBAAqB,CAAC,MAAM,GAAG,MAAM,CAAC,CAe7E"}
|
|
@@ -3,10 +3,10 @@ export default function shadow(elevation?: number | Animated.Value): {
|
|
|
3
3
|
shadowColor: string;
|
|
4
4
|
shadowOffset: {
|
|
5
5
|
width: Animated.Value;
|
|
6
|
-
height: Animated.AnimatedInterpolation
|
|
6
|
+
height: Animated.AnimatedInterpolation<string | number>;
|
|
7
7
|
};
|
|
8
8
|
shadowOpacity: Animated.Value;
|
|
9
|
-
shadowRadius: Animated.AnimatedInterpolation
|
|
9
|
+
shadowRadius: Animated.AnimatedInterpolation<string | number>;
|
|
10
10
|
} | {
|
|
11
11
|
shadowColor?: undefined;
|
|
12
12
|
shadowOffset?: undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@draftbit/core",
|
|
3
|
-
"version": "46.5.2-
|
|
3
|
+
"version": "46.5.2-b58416.2+b584161",
|
|
4
4
|
"description": "Core (non-native) Components",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -41,12 +41,12 @@
|
|
|
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.5.2-
|
|
44
|
+
"@draftbit/types": "^46.5.2-b58416.2+b584161",
|
|
45
45
|
"@material-ui/core": "^4.11.0",
|
|
46
46
|
"@material-ui/pickers": "^3.2.10",
|
|
47
|
-
"@react-native-community/slider": "4.2.
|
|
48
|
-
"@react-native-picker/picker": "2.4.
|
|
49
|
-
"@shopify/flash-list": "1.
|
|
47
|
+
"@react-native-community/slider": "4.2.4",
|
|
48
|
+
"@react-native-picker/picker": "2.4.8",
|
|
49
|
+
"@shopify/flash-list": "1.3.1",
|
|
50
50
|
"color": "^3.1.2",
|
|
51
51
|
"date-fns": "^2.16.1",
|
|
52
52
|
"dateformat": "^3.0.3",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"lodash.omit": "^4.5.0",
|
|
55
55
|
"lodash.tonumber": "^4.0.3",
|
|
56
56
|
"react-native-modal-datetime-picker": "^13.0.0",
|
|
57
|
-
"react-native-svg": "
|
|
57
|
+
"react-native-svg": "13.4.0",
|
|
58
58
|
"react-native-typography": "^1.4.1",
|
|
59
59
|
"react-native-web-swiper": "^2.2.3"
|
|
60
60
|
},
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
]
|
|
92
92
|
]
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "b584161a8d6042f3d8ab8a4cb3b697889503a5db"
|
|
95
95
|
}
|
|
@@ -311,7 +311,7 @@ const DatePicker = ({ Icon, style, theme: { colors, typography, roundness, disab
|
|
|
311
311
|
...leftIconStyle,
|
|
312
312
|
marginLeft: type === "solid" ? 16 : 0,
|
|
313
313
|
} })) : null,
|
|
314
|
-
React.createElement(NativeTextInput, { value: formatDate(), placeholder: label ? placeholder1 : placeholder, editable: !disabled, placeholderTextColor: placeholderColor, selectionColor: activeColor, onFocus: _handleFocus, onBlur: _handleBlur, underlineColorAndroid: "transparent", style: [inputStyles, textStyles
|
|
314
|
+
React.createElement(NativeTextInput, { value: formatDate(), placeholder: label ? placeholder1 : placeholder, editable: !disabled, placeholderTextColor: placeholderColor, selectionColor: activeColor, onFocus: _handleFocus, onBlur: _handleBlur, underlineColorAndroid: "transparent", style: [inputStyles, textStyles], ...props })),
|
|
315
315
|
rightIconName ? (React.createElement(Icon, { name: rightIconName, size: ICON_SIZE, color: colors.light, style: {
|
|
316
316
|
position: "absolute",
|
|
317
317
|
right: 16,
|
|
@@ -471,7 +471,7 @@ const DatePicker: React.FC<React.PropsWithChildren<Props>> = ({
|
|
|
471
471
|
onFocus={_handleFocus}
|
|
472
472
|
onBlur={_handleBlur}
|
|
473
473
|
underlineColorAndroid={"transparent"}
|
|
474
|
-
style={[inputStyles, textStyles
|
|
474
|
+
style={[inputStyles, textStyles]}
|
|
475
475
|
{...props}
|
|
476
476
|
/>
|
|
477
477
|
</View>
|
package/src/styles/overlay.tsx
CHANGED
|
@@ -4,13 +4,13 @@ import { Animated } from "react-native";
|
|
|
4
4
|
import DarkTheme from "./DarkTheme";
|
|
5
5
|
|
|
6
6
|
const isAnimatedValue = (
|
|
7
|
-
it: number | Animated.AnimatedInterpolation
|
|
7
|
+
it: number | Animated.AnimatedInterpolation<string | number>
|
|
8
8
|
): it is Animated.Value => it instanceof Animated.Value;
|
|
9
9
|
|
|
10
10
|
export default function overlay<T extends Animated.Value | number>(
|
|
11
11
|
elevation: T,
|
|
12
12
|
surfaceColor: string = DarkTheme.colors.surface
|
|
13
|
-
): T extends number ? string : Animated.AnimatedInterpolation {
|
|
13
|
+
): T extends number ? string : Animated.AnimatedInterpolation<string | number> {
|
|
14
14
|
if (isAnimatedValue(elevation)) {
|
|
15
15
|
const inputRange = [0, 1, 2, 3, 8, 24];
|
|
16
16
|
|