@draftbit/core 46.9.1-2ce152.2 → 46.9.1-4cfcf2.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.
@@ -68,7 +68,8 @@ const styles = _reactNative.StyleSheet.create({
68
68
  },
69
69
  contentContainerStyle: {
70
70
  paddingHorizontal: 16,
71
- paddingVertical: 10
71
+ paddingVertical: 10,
72
+ flex: 1
72
73
  },
73
74
  containerStyle: {
74
75
  flex: 1,
@@ -9,7 +9,6 @@ var _reactNative = require("react-native");
9
9
  var _context = require("./context");
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 {
14
13
  Provider
15
14
  } = _context.checkboxGroupContext;
@@ -31,7 +30,23 @@ const CheckboxGroup = _ref => {
31
30
  alignItems: "center"
32
31
  });
33
32
  }
34
- return /*#__PURE__*/React.createElement(_reactNative.View, _extends({
33
+ return /*#__PURE__*/React.createElement(_reactNative.View, {
34
+ style: [{
35
+ minHeight: 40
36
+ }, style],
37
+ ...rest
38
+ }, /*#__PURE__*/React.createElement(Provider, {
39
+ value: {
40
+ values,
41
+ onValueChange,
42
+ direction
43
+ }
44
+ }, /*#__PURE__*/React.createElement(_reactNative.View, {
45
+ style: _containerStyle
46
+ }, children)));
47
+ };
48
+ var _default = CheckboxGroup;
49
+ exports.default = _default;s({
35
50
  style: [{
36
51
  minHeight: 40
37
52
  }, style]
@@ -12,4 +12,4 @@ const APPROX_STATUSBAR_HEIGHT = _reactNative.Platform.select({
12
12
  android: DEFAULT_STATUSBAR_HEIGHT_EXPO,
13
13
  ios: _reactNative.Platform.Version < 11 ? DEFAULT_STATUSBAR_HEIGHT_EXPO : 0
14
14
  });
15
- exports.APPROX_STATUSBAR_HEIGHT = APPROX_STATUSBAR_HEIGHT;
15
+ exports.APPROX_STATUSBAR_HEIGHT = APPROX_STATUSBAR_HEIGHT;AR_HEIGHT;
@@ -13,7 +13,8 @@ const SEED_DATA = {
13
13
  stylesPanelSections: _types.CONTAINER_COMPONENT_STYLES_SECTIONS,
14
14
  layout: {
15
15
  paddingHorizontal: 16,
16
- paddingVertical: 10
16
+ paddingVertical: 10,
17
+ flex: 1
17
18
  },
18
19
  triggers: [_types.Triggers.OnSettle],
19
20
  props: {
@@ -14,7 +14,6 @@ const SEED_DATA = [{
14
14
  preview_image_url: "{CLOUDINARY_URL}/Field_SearchBar_Full.png",
15
15
  supports_list_render: false,
16
16
  triggers: [_types.Triggers.OnChange],
17
- // TODO Triggers.OnSubmit for multiple triggers
18
17
  props: {
19
18
  icon: {
20
19
  group: _types.GROUPS.basic,
@@ -53,4 +52,7 @@ const SEED_DATA = [{
53
52
  },
54
53
  layout: {}
55
54
  }];
55
+ exports.SEED_DATA = SEED_DATA;},
56
+ layout: {}
57
+ }];
56
58
  exports.SEED_DATA = SEED_DATA;
@@ -15,7 +15,6 @@ function overlay(elevation) {
15
15
  let surfaceColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _DarkTheme.default.colors.surface;
16
16
  if (isAnimatedValue(elevation)) {
17
17
  const inputRange = [0, 1, 2, 3, 8, 24];
18
-
19
18
  // @ts-expect-error: TS doesn't seem to refine the type correctly
20
19
  return elevation.interpolate({
21
20
  inputRange,
@@ -24,7 +23,6 @@ function overlay(elevation) {
24
23
  })
25
24
  });
26
25
  }
27
-
28
26
  // @ts-expect-error: TS doesn't seem to refine the type correctly
29
27
  return calculateColor(surfaceColor, elevation);
30
28
  }
@@ -65,4 +63,4 @@ const elevationOverlayTransparency = {
65
63
  22: 15.72,
66
64
  23: 15.84,
67
65
  24: 16
68
- };
66
+ };};
@@ -61,7 +61,8 @@ const styles = StyleSheet.create({
61
61
  },
62
62
  contentContainerStyle: {
63
63
  paddingHorizontal: 16,
64
- paddingVertical: 10
64
+ paddingVertical: 10,
65
+ flex: 1
65
66
  },
66
67
  containerStyle: {
67
68
  flex: 1,
@@ -1,3 +1,4 @@
1
+ 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); }
1
2
  import React from "react";
2
3
  import { View } from "react-native";
3
4
  import Text from "../Text";
@@ -19,16 +20,6 @@ const RadioButtonFieldGroup = _ref => {
19
20
  fontSize: theme.typography.headline4.fontSize,
20
21
  color: theme.typography.headline4.color
21
22
  }, labelStyle]
22
- }, label), /*#__PURE__*/React.createElement(RadioButtonGroup, {
23
- theme: theme,
24
- ...rest
25
- }, children));
26
- };
27
- export default withTheme(RadioButtonFieldGroup);}, /*#__PURE__*/React.createElement(Text, {
28
- style: [{
29
- fontSize: theme.typography.headline4.fontSize,
30
- color: theme.typography.headline4.color
31
- }, labelStyle]
32
23
  }, label), /*#__PURE__*/React.createElement(RadioButtonGroup, _extends({
33
24
  theme: theme
34
25
  }, rest), children));
@@ -7,7 +7,8 @@ export const SEED_DATA = {
7
7
  stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
8
8
  layout: {
9
9
  paddingHorizontal: 16,
10
- paddingVertical: 10
10
+ paddingVertical: 10,
11
+ flex: 1
11
12
  },
12
13
  triggers: [Triggers.OnSettle],
13
14
  props: {
@@ -1 +1 @@
1
- {"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../../../src/components/BottomSheet/BottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAGL,SAAS,EACT,SAAS,EACT,eAAe,EAChB,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAGvD,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,UAAU,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IACjC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC;CACd;;;;AA+FD,wBAAsC"}
1
+ {"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../../../src/components/BottomSheet/BottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAGL,SAAS,EACT,SAAS,EACT,eAAe,EAChB,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAGvD,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,UAAU,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IACjC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC;CACd;;;;AAgGD,wBAAsC"}
@@ -7,6 +7,7 @@ export declare const SEED_DATA: {
7
7
  layout: {
8
8
  paddingHorizontal: number;
9
9
  paddingVertical: number;
10
+ flex: number;
10
11
  };
11
12
  triggers: string[];
12
13
  props: {
@@ -1 +1 @@
1
- {"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../../src/mappings/BottomSheet.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkErB,CAAC"}
1
+ {"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../../src/mappings/BottomSheet.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkErB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@draftbit/core",
3
- "version": "46.9.1-2ce152.2+2ce1524",
3
+ "version": "46.9.1-4cfcf2.2+4cfcf20",
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.9.1-2ce152.2+2ce1524",
44
+ "@draftbit/types": "^46.9.1-4cfcf2.2+4cfcf20",
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",
@@ -98,5 +98,5 @@
98
98
  ]
99
99
  ]
100
100
  },
101
- "gitHead": "2ce15244c2e4b0cc69a31f3e370812a188816566"
101
+ "gitHead": "4cfcf2094665d2b5b61b3cc8f17f3241068a0809"
102
102
  }
@@ -38,6 +38,7 @@ const styles = StyleSheet.create({
38
38
  contentContainerStyle: {
39
39
  paddingHorizontal: 16,
40
40
  paddingVertical: 10,
41
+ flex: 1,
41
42
  },
42
43
  containerStyle: {
43
44
  flex: 1,
@@ -101,6 +101,7 @@ const styles = StyleSheet.create({
101
101
  contentContainerStyle: {
102
102
  paddingHorizontal: 16,
103
103
  paddingVertical: 10,
104
+ flex: 1,
104
105
  },
105
106
  containerStyle: {
106
107
  flex: 1,
@@ -5,7 +5,7 @@ export const SEED_DATA = {
5
5
  description: "A draggable Bottom sheet that snaps to specific points. Renders children in ScrollView",
6
6
  category: COMPONENT_TYPES.bottomsheet,
7
7
  stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
8
- layout: { paddingHorizontal: 16, paddingVertical: 10 },
8
+ layout: { paddingHorizontal: 16, paddingVertical: 10, flex: 1 },
9
9
  triggers: [Triggers.OnSettle],
10
10
  props: {
11
11
  onSettle: createActionProp({
@@ -16,7 +16,7 @@ export const SEED_DATA = {
16
16
  "A draggable Bottom sheet that snaps to specific points. Renders children in ScrollView",
17
17
  category: COMPONENT_TYPES.bottomsheet,
18
18
  stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
19
- layout: { paddingHorizontal: 16, paddingVertical: 10 },
19
+ layout: { paddingHorizontal: 16, paddingVertical: 10, flex: 1 },
20
20
  triggers: [Triggers.OnSettle],
21
21
  props: {
22
22
  onSettle: createActionProp({