@draftbit/core 46.9.1-e3cd31.2 → 46.9.1-f8902c.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.
@@ -12,6 +12,7 @@ var _theming = require("../../theming");
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
13
  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); }
14
14
  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; }
15
+ 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); }
15
16
  const AccordionItem = _ref => {
16
17
  let {
17
18
  Icon,
@@ -26,10 +27,9 @@ const AccordionItem = _ref => {
26
27
  textStyles,
27
28
  viewStyles
28
29
  } = (0, _utilities.extractStyles)(style);
29
- return /*#__PURE__*/React.createElement(_reactNative.Pressable, {
30
- style: [styles.container, viewStyles],
31
- ...rest
32
- }, /*#__PURE__*/React.createElement(_reactNative.View, {
30
+ return /*#__PURE__*/React.createElement(_reactNative.Pressable, _extends({
31
+ style: [styles.container, viewStyles]
32
+ }, rest), /*#__PURE__*/React.createElement(_reactNative.View, {
33
33
  style: styles.row
34
34
  }, icon ? /*#__PURE__*/React.createElement(Icon, {
35
35
  name: icon,
@@ -61,23 +61,4 @@ const styles = _reactNative.StyleSheet.create({
61
61
  }
62
62
  });
63
63
  var _default = (0, _theming.withTheme)(AccordionItem);
64
- exports.default = _default;.StyleSheet.create({
65
- container: {
66
- padding: 8
67
- },
68
- row: {
69
- flexDirection: "row",
70
- alignItems: "center",
71
- paddingLeft: 8
72
- },
73
- item: {
74
- marginVertical: 6,
75
- paddingLeft: 8
76
- },
77
- content: {
78
- flex: 1,
79
- justifyContent: "center"
80
- }
81
- });
82
- var _default = (0, _theming.withTheme)(AccordionItem);
83
64
  exports.default = _default;
@@ -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,
@@ -11,7 +11,6 @@ var _Touchable = _interopRequireDefault(require("./Touchable"));
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
12
  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); }
13
13
  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; }
14
- 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); }
15
14
  function FormRow(_ref) {
16
15
  let {
17
16
  disabled,
@@ -26,11 +25,26 @@ function FormRow(_ref) {
26
25
  textStyles,
27
26
  viewStyles
28
27
  } = (0, _utilities.extractStyles)(style);
29
- return /*#__PURE__*/React.createElement(_Touchable.default, _extends({
28
+ return /*#__PURE__*/React.createElement(_Touchable.default, {
30
29
  disabled: disabled,
31
30
  onPress: onPress,
32
31
  style: [styles.row, {
33
32
  flexDirection: direction
33
+ }, viewStyles],
34
+ ...rest
35
+ }, /*#__PURE__*/React.createElement(_reactNative.Text, {
36
+ style: textStyles
37
+ }, label), children);
38
+ }
39
+ const styles = _reactNative.StyleSheet.create({
40
+ row: {
41
+ marginLeft: 8,
42
+ marginRight: 8,
43
+ flexDirection: "row",
44
+ justifyContent: "space-between",
45
+ alignItems: "center"
46
+ }
47
+ });rection: direction
34
48
  }, viewStyles]
35
49
  }, rest), /*#__PURE__*/React.createElement(_reactNative.Text, {
36
50
  style: textStyles
@@ -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: {
@@ -34,7 +35,7 @@ const SEED_DATA = {
34
35
  }),
35
36
  showHandle: (0, _types.createStaticBoolProp)({
36
37
  label: "Show handle",
37
- description: "Whether to show the top sheet handle or not",
38
+ description: "Whether to show the top handle or not",
38
39
  defaultValue: true
39
40
  }),
40
41
  handleColor: (0, _types.createColorProp)({
@@ -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 * as React from "react";
2
3
  import { Text, StyleSheet } from "react-native";
3
4
  import { extractStyles } from "../utilities";
@@ -16,14 +17,13 @@ export default function FormRow(_ref) {
16
17
  textStyles,
17
18
  viewStyles
18
19
  } = extractStyles(style);
19
- return /*#__PURE__*/React.createElement(Touchable, {
20
+ return /*#__PURE__*/React.createElement(Touchable, _extends({
20
21
  disabled: disabled,
21
22
  onPress: onPress,
22
23
  style: [styles.row, {
23
24
  flexDirection: direction
24
- }, viewStyles],
25
- ...rest
26
- }, /*#__PURE__*/React.createElement(Text, {
25
+ }, viewStyles]
26
+ }, rest), /*#__PURE__*/React.createElement(Text, {
27
27
  style: textStyles
28
28
  }, label), children);
29
29
  }
@@ -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: {
@@ -28,7 +29,7 @@ export const SEED_DATA = {
28
29
  }),
29
30
  showHandle: createStaticBoolProp({
30
31
  label: "Show handle",
31
- description: "Whether to show the top sheet handle or not",
32
+ description: "Whether to show the top handle or not",
32
33
  defaultValue: true
33
34
  }),
34
35
  handleColor: createColorProp({
@@ -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-e3cd31.2+e3cd310",
3
+ "version": "46.9.1-f8902c.2+f8902c3",
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-e3cd31.2+e3cd310",
44
+ "@draftbit/types": "^46.9.1-f8902c.2+f8902c3",
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",
@@ -58,7 +58,6 @@
58
58
  "react-native-markdown-display": "^7.0.0-alpha.2",
59
59
  "react-native-modal-datetime-picker": "^13.0.0",
60
60
  "react-native-pager-view": "5.4.24",
61
- "react-native-reanimated": "^2.14.4",
62
61
  "react-native-shadow-2": "^7.0.6",
63
62
  "react-native-svg": "12.3.0",
64
63
  "react-native-tab-view": "^3.4.0",
@@ -98,5 +97,5 @@
98
97
  ]
99
98
  ]
100
99
  },
101
- "gitHead": "e3cd310ffd90f62816ac3f88735a7db326625091"
100
+ "gitHead": "f8902c33ad33df2e0c55f9e0c477052d62f0a896"
102
101
  }
@@ -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({
@@ -25,7 +25,7 @@ export const SEED_DATA = {
25
25
  }),
26
26
  showHandle: createStaticBoolProp({
27
27
  label: "Show handle",
28
- description: "Whether to show the top sheet handle or not",
28
+ description: "Whether to show the top handle or not",
29
29
  defaultValue: true,
30
30
  }),
31
31
  handleColor: createColorProp({
@@ -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({
@@ -37,7 +37,7 @@ export const SEED_DATA = {
37
37
  }),
38
38
  showHandle: createStaticBoolProp({
39
39
  label: "Show handle",
40
- description: "Whether to show the top sheet handle or not",
40
+ description: "Whether to show the top handle or not",
41
41
  defaultValue: true,
42
42
  }),
43
43
  handleColor: createColorProp({