@draftbit/core 43.4.16-cbc807.1 → 43.4.17-ab8b1a.0
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/ActionSheet/ActionSheetCancel.js.map +1 -1
- package/lib/commonjs/components/CardContainerRating.js +5 -16
- package/lib/commonjs/components/CardContainerRating.js.map +1 -1
- package/lib/commonjs/components/Config.js.map +1 -1
- package/lib/commonjs/components/DatePicker/DatePickerComponent.js.map +1 -1
- package/lib/commonjs/components/Header.js.map +1 -1
- package/lib/commonjs/components/Picker/PickerComponent.ios.js +10 -30
- package/lib/commonjs/components/Picker/PickerComponent.ios.js.map +1 -1
- package/lib/commonjs/components/Portal/PortalConsumer.js.map +1 -1
- package/lib/commonjs/components/Portal/PortalManager.js.map +1 -1
- package/lib/commonjs/components/RadioButton/RadioButton.js +3 -15
- package/lib/commonjs/components/RadioButton/RadioButton.js.map +1 -1
- package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js +2 -11
- package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js.map +1 -1
- package/lib/commonjs/components/RadioButton/RadioButtonGroup.js +5 -17
- package/lib/commonjs/components/RadioButton/RadioButtonGroup.js.map +1 -1
- package/lib/commonjs/components/ScreenContainer.js +1 -1
- package/lib/commonjs/components/ScreenContainer.js.map +1 -1
- package/lib/commonjs/components/Stepper.js +40 -58
- package/lib/commonjs/components/Stepper.js.map +1 -1
- package/lib/commonjs/components/Surface.js +5 -15
- package/lib/commonjs/components/Surface.js.map +1 -1
- package/lib/commonjs/components/Swiper/SwiperItem.js.map +1 -1
- package/lib/commonjs/mappings/Accordion.js.map +1 -1
- package/lib/commonjs/mappings/BlurView.js.map +1 -1
- package/lib/commonjs/mappings/Container.js.map +1 -1
- package/lib/commonjs/mappings/FAB.js.map +1 -1
- package/lib/commonjs/mappings/Slider.js.map +1 -1
- package/lib/commonjs/mappings/TextArea.js.map +1 -1
- package/lib/module/components/IconButton.js +5 -21
- package/lib/module/components/IconButton.js.map +1 -1
- package/lib/module/components/Portal/PortalHost.js.map +1 -1
- package/lib/module/components/RowHeadlineImageIcon.js.map +1 -1
- package/lib/module/components/ScreenContainer.js +1 -1
- package/lib/module/components/ScreenContainer.js.map +1 -1
- package/lib/module/components/Stepper.js +36 -54
- package/lib/module/components/Stepper.js.map +1 -1
- package/lib/module/components/Surface.js +6 -16
- package/lib/module/components/Surface.js.map +1 -1
- package/lib/typescript/src/components/ScreenContainer.d.ts +6 -6
- package/lib/typescript/src/components/Stepper.d.ts +8 -9
- package/package.json +2 -2
- package/src/components/ScreenContainer.js +1 -1
- package/src/components/ScreenContainer.tsx +5 -5
- package/src/components/Stepper.js +23 -37
- package/src/components/Stepper.tsx +48 -64
- package/src/components/Surface.js +4 -15
- package/src/components/Surface.tsx +4 -23
|
@@ -6,9 +6,8 @@ import {
|
|
|
6
6
|
ViewProps,
|
|
7
7
|
StyleProp,
|
|
8
8
|
ViewStyle,
|
|
9
|
-
View,
|
|
10
|
-
Platform,
|
|
11
9
|
} from "react-native";
|
|
10
|
+
|
|
12
11
|
import shadow from "../styles/shadow";
|
|
13
12
|
import overlay from "../styles/overlay";
|
|
14
13
|
import { withTheme } from "../theming";
|
|
@@ -30,10 +29,7 @@ const Surface: React.FC<Props> = ({
|
|
|
30
29
|
const {
|
|
31
30
|
elevation: styleElevation = 3,
|
|
32
31
|
backgroundColor,
|
|
33
|
-
|
|
34
|
-
overflow,
|
|
35
|
-
height,
|
|
36
|
-
width,
|
|
32
|
+
...restStyle
|
|
37
33
|
} = (StyleSheet.flatten(style) || {}) as ViewStyle;
|
|
38
34
|
|
|
39
35
|
const { dark: isDarkTheme, mode, colors } = theme;
|
|
@@ -56,30 +52,15 @@ const Surface: React.FC<Props> = ({
|
|
|
56
52
|
<Animated.View
|
|
57
53
|
{...rest}
|
|
58
54
|
style={[
|
|
59
|
-
style,
|
|
60
55
|
{
|
|
61
56
|
backgroundColor: getBackgroundColor(),
|
|
62
|
-
overflow:
|
|
63
|
-
Platform.OS === "web" && overflow === "hidden"
|
|
64
|
-
? "hidden"
|
|
65
|
-
: "visible",
|
|
66
57
|
elevation,
|
|
67
58
|
...evalationStyles,
|
|
59
|
+
...restStyle,
|
|
68
60
|
},
|
|
69
61
|
]}
|
|
70
62
|
>
|
|
71
|
-
|
|
72
|
-
style={[
|
|
73
|
-
{
|
|
74
|
-
overflow,
|
|
75
|
-
borderRadius,
|
|
76
|
-
height,
|
|
77
|
-
width,
|
|
78
|
-
},
|
|
79
|
-
]}
|
|
80
|
-
>
|
|
81
|
-
{children}
|
|
82
|
-
</View>
|
|
63
|
+
{children}
|
|
83
64
|
</Animated.View>
|
|
84
65
|
);
|
|
85
66
|
};
|