@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.
Files changed (48) hide show
  1. package/lib/commonjs/components/ActionSheet/ActionSheetCancel.js.map +1 -1
  2. package/lib/commonjs/components/CardContainerRating.js +5 -16
  3. package/lib/commonjs/components/CardContainerRating.js.map +1 -1
  4. package/lib/commonjs/components/Config.js.map +1 -1
  5. package/lib/commonjs/components/DatePicker/DatePickerComponent.js.map +1 -1
  6. package/lib/commonjs/components/Header.js.map +1 -1
  7. package/lib/commonjs/components/Picker/PickerComponent.ios.js +10 -30
  8. package/lib/commonjs/components/Picker/PickerComponent.ios.js.map +1 -1
  9. package/lib/commonjs/components/Portal/PortalConsumer.js.map +1 -1
  10. package/lib/commonjs/components/Portal/PortalManager.js.map +1 -1
  11. package/lib/commonjs/components/RadioButton/RadioButton.js +3 -15
  12. package/lib/commonjs/components/RadioButton/RadioButton.js.map +1 -1
  13. package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js +2 -11
  14. package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js.map +1 -1
  15. package/lib/commonjs/components/RadioButton/RadioButtonGroup.js +5 -17
  16. package/lib/commonjs/components/RadioButton/RadioButtonGroup.js.map +1 -1
  17. package/lib/commonjs/components/ScreenContainer.js +1 -1
  18. package/lib/commonjs/components/ScreenContainer.js.map +1 -1
  19. package/lib/commonjs/components/Stepper.js +40 -58
  20. package/lib/commonjs/components/Stepper.js.map +1 -1
  21. package/lib/commonjs/components/Surface.js +5 -15
  22. package/lib/commonjs/components/Surface.js.map +1 -1
  23. package/lib/commonjs/components/Swiper/SwiperItem.js.map +1 -1
  24. package/lib/commonjs/mappings/Accordion.js.map +1 -1
  25. package/lib/commonjs/mappings/BlurView.js.map +1 -1
  26. package/lib/commonjs/mappings/Container.js.map +1 -1
  27. package/lib/commonjs/mappings/FAB.js.map +1 -1
  28. package/lib/commonjs/mappings/Slider.js.map +1 -1
  29. package/lib/commonjs/mappings/TextArea.js.map +1 -1
  30. package/lib/module/components/IconButton.js +5 -21
  31. package/lib/module/components/IconButton.js.map +1 -1
  32. package/lib/module/components/Portal/PortalHost.js.map +1 -1
  33. package/lib/module/components/RowHeadlineImageIcon.js.map +1 -1
  34. package/lib/module/components/ScreenContainer.js +1 -1
  35. package/lib/module/components/ScreenContainer.js.map +1 -1
  36. package/lib/module/components/Stepper.js +36 -54
  37. package/lib/module/components/Stepper.js.map +1 -1
  38. package/lib/module/components/Surface.js +6 -16
  39. package/lib/module/components/Surface.js.map +1 -1
  40. package/lib/typescript/src/components/ScreenContainer.d.ts +6 -6
  41. package/lib/typescript/src/components/Stepper.d.ts +8 -9
  42. package/package.json +2 -2
  43. package/src/components/ScreenContainer.js +1 -1
  44. package/src/components/ScreenContainer.tsx +5 -5
  45. package/src/components/Stepper.js +23 -37
  46. package/src/components/Stepper.tsx +48 -64
  47. package/src/components/Surface.js +4 -15
  48. 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
- borderRadius,
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
- <View
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
  };