@draftbit/core 46.7.9-fa5e7c.2 → 46.8.1-1b6459.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.
Files changed (58) hide show
  1. package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +23 -5
  2. package/lib/commonjs/components/Checkbox/CheckboxRow.js +23 -6
  3. package/lib/commonjs/components/Checkbox/context.js +1 -1
  4. package/lib/commonjs/components/CircleImage.js +15 -1
  5. package/lib/commonjs/components/CircularProgress.js +26 -8
  6. package/lib/commonjs/components/Container.js +15 -4
  7. package/lib/commonjs/components/DatePicker/DatePicker.js +14 -1
  8. package/lib/commonjs/components/DeprecatedButton.js +20 -3
  9. package/lib/commonjs/components/DeprecatedCardWrapper.js +15 -1
  10. package/lib/commonjs/components/Divider.js +14 -1
  11. package/lib/commonjs/components/Elevation.js +14 -2
  12. package/lib/commonjs/components/FAB.js +18 -4
  13. package/lib/commonjs/components/NumberInput.js +10 -10
  14. package/lib/commonjs/components/Picker/Picker.js +10 -3
  15. package/lib/commonjs/components/Portal/PortalHost.js +44 -15
  16. package/lib/commonjs/components/Portal/PortalManager.js +34 -8
  17. package/lib/commonjs/components/Pressable.js +15 -2
  18. package/lib/commonjs/components/ProgressBar.js +37 -7
  19. package/lib/commonjs/components/RadioButton/RadioButton.js +13 -2
  20. package/lib/commonjs/components/RadioButton/RadioButtonGroup.js +15 -2
  21. package/lib/commonjs/mappings/DatePicker.js +8 -2
  22. package/lib/commonjs/mappings/DeckSwiper.js +3 -0
  23. package/lib/commonjs/mappings/DeckSwiperCard.js +7 -0
  24. package/lib/commonjs/mappings/Picker.js +5 -0
  25. package/lib/module/components/DatePicker/DatePicker.js +15 -2
  26. package/lib/module/components/NumberInput.js +10 -10
  27. package/lib/module/components/Picker/Picker.js +11 -4
  28. package/lib/module/mappings/DatePicker.js +9 -3
  29. package/lib/module/mappings/DeckSwiper.js +3 -0
  30. package/lib/module/mappings/DeckSwiperCard.js +7 -0
  31. package/lib/module/mappings/Picker.js +6 -1
  32. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts +1 -0
  33. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts.map +1 -1
  34. package/lib/typescript/src/components/Picker/Picker.d.ts +1 -0
  35. package/lib/typescript/src/components/Picker/Picker.d.ts.map +1 -1
  36. package/lib/typescript/src/mappings/DatePicker.d.ts +10 -0
  37. package/lib/typescript/src/mappings/DatePicker.d.ts.map +1 -1
  38. package/lib/typescript/src/mappings/DeckSwiper.d.ts +3 -0
  39. package/lib/typescript/src/mappings/DeckSwiper.d.ts.map +1 -1
  40. package/lib/typescript/src/mappings/DeckSwiperCard.d.ts +7 -0
  41. package/lib/typescript/src/mappings/DeckSwiperCard.d.ts.map +1 -1
  42. package/lib/typescript/src/mappings/Picker.d.ts +10 -0
  43. package/lib/typescript/src/mappings/Picker.d.ts.map +1 -1
  44. package/package.json +3 -3
  45. package/src/components/DatePicker/DatePicker.js +8 -3
  46. package/src/components/DatePicker/DatePicker.tsx +10 -1
  47. package/src/components/NumberInput.js +9 -9
  48. package/src/components/NumberInput.tsx +11 -11
  49. package/src/components/Picker/Picker.js +9 -3
  50. package/src/components/Picker/Picker.tsx +14 -2
  51. package/src/mappings/DatePicker.js +8 -2
  52. package/src/mappings/DatePicker.ts +8 -1
  53. package/src/mappings/DeckSwiper.js +3 -0
  54. package/src/mappings/DeckSwiper.ts +3 -0
  55. package/src/mappings/DeckSwiperCard.js +7 -0
  56. package/src/mappings/DeckSwiperCard.ts +7 -0
  57. package/src/mappings/Picker.js +6 -1
  58. package/src/mappings/Picker.ts +6 -0
@@ -10,11 +10,7 @@ var _PortalManager = _interopRequireDefault(require("./PortalManager"));
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
  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); }
12
12
  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; }
13
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
14
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
15
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
16
13
  const PortalContext = /*#__PURE__*/React.createContext(null);
17
-
18
14
  /**
19
15
  * Portal host renders all of its children `Portal` elements.
20
16
  * For example, you can wrap a screen in `Portal.Host` to render items above the screen.
@@ -43,10 +39,10 @@ exports.PortalContext = PortalContext;
43
39
  class PortalHost extends React.Component {
44
40
  constructor() {
45
41
  super(...arguments);
46
- _defineProperty(this, "setManager", manager => {
42
+ this.setManager = manager => {
47
43
  this.manager = manager;
48
- });
49
- _defineProperty(this, "mount", children => {
44
+ };
45
+ this.mount = children => {
50
46
  const key = this.nextKey++;
51
47
  if (this.manager) {
52
48
  this.manager.mount(key, children);
@@ -58,8 +54,8 @@ class PortalHost extends React.Component {
58
54
  });
59
55
  }
60
56
  return key;
61
- });
62
- _defineProperty(this, "update", (key, children) => {
57
+ };
58
+ this.update = (key, children) => {
63
59
  if (this.manager) {
64
60
  this.manager.update(key, children);
65
61
  } else {
@@ -76,8 +72,8 @@ class PortalHost extends React.Component {
76
72
  this.queue.push(op);
77
73
  }
78
74
  }
79
- });
80
- _defineProperty(this, "unmount", key => {
75
+ };
76
+ this.unmount = key => {
81
77
  if (this.manager) {
82
78
  this.manager.unmount(key);
83
79
  } else {
@@ -86,10 +82,9 @@ class PortalHost extends React.Component {
86
82
  key
87
83
  });
88
84
  }
89
- });
90
- _defineProperty(this, "nextKey", 0);
91
- _defineProperty(this, "queue", []);
92
- _defineProperty(this, "manager", void 0);
85
+ };
86
+ this.nextKey = 0;
87
+ this.queue = [];
93
88
  }
94
89
  componentDidMount() {
95
90
  const manager = this.manager;
@@ -128,6 +123,40 @@ class PortalHost extends React.Component {
128
123
  }
129
124
  }
130
125
  exports.default = PortalHost;
126
+ PortalHost.displayName = "Portal.Host";
127
+ const styles = _reactNative.StyleSheet.create({
128
+ container: {
129
+ flex: 1
130
+ }
131
+ });nager.mount(action.key, action.children);
132
+ break;
133
+ case "update":
134
+ manager.update(action.key, action.children);
135
+ break;
136
+ case "unmount":
137
+ manager.unmount(action.key);
138
+ break;
139
+ }
140
+ }
141
+ }
142
+ }
143
+ render() {
144
+ return /*#__PURE__*/React.createElement(PortalContext.Provider, {
145
+ value: {
146
+ mount: this.mount,
147
+ update: this.update,
148
+ unmount: this.unmount
149
+ }
150
+ }, /*#__PURE__*/React.createElement(_reactNative.View, {
151
+ style: styles.container,
152
+ collapsable: false,
153
+ pointerEvents: "box-none"
154
+ }, this.props.children), /*#__PURE__*/React.createElement(_PortalManager.default, {
155
+ ref: this.setManager
156
+ }));
157
+ }
158
+ }
159
+ exports.default = PortalHost;
131
160
  _defineProperty(PortalHost, "displayName", "Portal.Host");
132
161
  const styles = _reactNative.StyleSheet.create({
133
162
  container: {
@@ -8,27 +8,24 @@ var React = _interopRequireWildcard(require("react"));
8
8
  var _reactNative = require("react-native");
9
9
  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); }
10
10
  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; }
11
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
12
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
13
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
14
11
  /**
15
12
  * Portal host is the component which actually renders all Portals.
16
13
  */
17
14
  class PortalManager extends React.PureComponent {
18
15
  constructor() {
19
16
  super(...arguments);
20
- _defineProperty(this, "state", {
17
+ this.state = {
21
18
  portals: []
22
- });
23
- _defineProperty(this, "mount", (key, children) => {
19
+ };
20
+ this.mount = (key, children) => {
24
21
  this.setState(state => ({
25
22
  portals: [...state.portals, {
26
23
  key,
27
24
  children
28
25
  }]
29
26
  }));
30
- });
31
- _defineProperty(this, "update", (key, children) => this.setState(state => ({
27
+ };
28
+ this.update = (key, children) => this.setState(state => ({
32
29
  portals: state.portals.map(item => {
33
30
  if (item.key === key) {
34
31
  return {
@@ -38,6 +35,35 @@ class PortalManager extends React.PureComponent {
38
35
  }
39
36
  return item;
40
37
  })
38
+ }));
39
+ this.unmount = key => this.setState(state => ({
40
+ portals: state.portals.filter(item => item.key !== key)
41
+ }));
42
+ }
43
+ render() {
44
+ return this.state.portals.map(_ref => {
45
+ let {
46
+ key,
47
+ children
48
+ } = _ref;
49
+ return /*#__PURE__*/React.createElement(_reactNative.View, {
50
+ key: key,
51
+ collapsable: false /* Need collapsable=false here to clip the elevations, otherwise they appear above sibling components */,
52
+ pointerEvents: "box-none",
53
+ style: _reactNative.StyleSheet.absoluteFill
54
+ }, children);
55
+ });
56
+ }
57
+ }
58
+ exports.default = PortalManager;tate.portals.map(item => {
59
+ if (item.key === key) {
60
+ return {
61
+ ...item,
62
+ children
63
+ };
64
+ }
65
+ return item;
66
+ })
41
67
  })));
42
68
  _defineProperty(this, "unmount", key => this.setState(state => ({
43
69
  portals: state.portals.filter(item => item.key !== key)
@@ -7,7 +7,6 @@ exports.default = Pressable;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _reactNative = require("react-native");
9
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
- 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); }
11
10
  function Pressable(_ref) {
12
11
  let {
13
12
  children,
@@ -20,8 +19,22 @@ function Pressable(_ref) {
20
19
  style,
21
20
  ...props
22
21
  } = _ref;
23
- return /*#__PURE__*/_react.default.createElement(_reactNative.Pressable, _extends({
22
+ return /*#__PURE__*/_react.default.createElement(_reactNative.Pressable, {
24
23
  onPress: onPress,
24
+ disabled: disabled,
25
+ delayLongPress: delayLongPress ? delayLongPress : 500,
26
+ hitSlop: hitSlop ? hitSlop : 8,
27
+ style: _ref2 => {
28
+ let {
29
+ pressed
30
+ } = _ref2;
31
+ return [{
32
+ opacity: pressed ? activeOpacity : disabled ? disabledOpacity : 1
33
+ }, style];
34
+ },
35
+ ...props
36
+ }, children);
37
+ } onPress: onPress,
25
38
  disabled: disabled,
26
39
  delayLongPress: delayLongPress ? delayLongPress : 500,
27
40
  hitSlop: hitSlop ? hitSlop : 8,
@@ -8,16 +8,12 @@ var _react = _interopRequireWildcard(require("react"));
8
8
  var _reactNative = require("react-native");
9
9
  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); }
10
10
  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; }
11
- 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); }
12
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
14
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
15
11
  const INDETERMINATE_WIDTH_FACTOR = 0.3;
16
12
  const BAR_WIDTH_ZERO_POSITION = INDETERMINATE_WIDTH_FACTOR / (1 + INDETERMINATE_WIDTH_FACTOR);
17
13
  class ProgressBar extends _react.Component {
18
14
  constructor(props) {
19
15
  super(props);
20
- _defineProperty(this, "handleLayout", event => {
16
+ this.handleLayout = event => {
21
17
  const {
22
18
  width = 150,
23
19
  onLayout
@@ -30,7 +26,7 @@ class ProgressBar extends _react.Component {
30
26
  if (onLayout) {
31
27
  onLayout(event);
32
28
  }
33
- });
29
+ };
34
30
  const {
35
31
  progress: progressP = 0,
36
32
  indeterminate = false
@@ -78,7 +74,6 @@ class ProgressBar extends _react.Component {
78
74
  ...animationConfig,
79
75
  toValue: progress,
80
76
  velocity: 0,
81
- //adjust this value if animation fails - velocity is required
82
77
  useNativeDriver
83
78
  }).start();
84
79
  } else {
@@ -147,6 +142,41 @@ class ProgressBar extends _react.Component {
147
142
  })
148
143
  }]
149
144
  };
145
+ return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
146
+ style: [containerStyle, style],
147
+ onLayout: this.handleLayout,
148
+ ...restProps
149
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, {
150
+ style: progressStyle
151
+ }), children);
152
+ }
153
+ }
154
+ exports.default = ProgressBar;,
155
+ overflow: "hidden",
156
+ backgroundColor: unfilledColor
157
+ };
158
+ const progressStyle = {
159
+ backgroundColor: color,
160
+ // Always take up full height of container.
161
+ height: "100%",
162
+ transform: [{
163
+ translateX: this.state.animationValue.interpolate({
164
+ inputRange: [0, 1],
165
+ outputRange: [innerWidth * -INDETERMINATE_WIDTH_FACTOR, innerWidth]
166
+ })
167
+ }, {
168
+ translateX: this.state.progress.interpolate({
169
+ inputRange: [0, 1],
170
+ outputRange: [innerWidth / (_reactNative.I18nManager.isRTL ? 2 : -2), 0]
171
+ })
172
+ }, {
173
+ // Interpolation a temp workaround for https://github.com/facebook/react-native/issues/6278
174
+ scaleX: this.state.progress.interpolate({
175
+ inputRange: [0, 1],
176
+ outputRange: [0.0001, 1]
177
+ })
178
+ }]
179
+ };
150
180
  return /*#__PURE__*/_react.default.createElement(_reactNative.View, _extends({
151
181
  style: [containerStyle, style],
152
182
  onLayout: this.handleLayout
@@ -12,7 +12,6 @@ var _context = require("./context");
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); }
16
15
  const RadioButton = _ref => {
17
16
  let {
18
17
  Icon,
@@ -39,7 +38,19 @@ const RadioButton = _ref => {
39
38
  onPress === null || onPress === void 0 ? void 0 : onPress(realValue);
40
39
  onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(realValue);
41
40
  };
42
- return /*#__PURE__*/React.createElement(_IconButton.default, _extends({
41
+ return /*#__PURE__*/React.createElement(_IconButton.default, {
42
+ Icon: Icon,
43
+ icon: isSelected ? selectedIcon : unselectedIcon,
44
+ color: isSelected ? color : unselectedColor,
45
+ disabled: disabled,
46
+ onPress: handlePress,
47
+ size: size,
48
+ style: style,
49
+ ...rest
50
+ });
51
+ };
52
+ var _default = RadioButton;
53
+ exports.default = _default;turn /*#__PURE__*/React.createElement(_IconButton.default, _extends({
43
54
  Icon: Icon,
44
55
  icon: isSelected ? selectedIcon : unselectedIcon,
45
56
  color: isSelected ? color : unselectedColor,
@@ -10,7 +10,6 @@ var _utilities = require("../../utilities");
10
10
  var _context = require("./context");
11
11
  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); }
12
12
  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; }
13
- 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); }
14
13
  const {
15
14
  Provider
16
15
  } = _context.radioButtonGroupContext;
@@ -50,9 +49,23 @@ const RadioButtonGroup = _ref => {
50
49
  alignItems: "center"
51
50
  });
52
51
  }
53
- return /*#__PURE__*/React.createElement(_reactNative.View, _extends({
52
+ return /*#__PURE__*/React.createElement(_reactNative.View, {
54
53
  style: [{
55
54
  minHeight: 40
55
+ }, style],
56
+ ...rest
57
+ }, /*#__PURE__*/React.createElement(Provider, {
58
+ value: {
59
+ value: internalValue,
60
+ onValueChange: handleValueChange,
61
+ direction
62
+ }
63
+ }, /*#__PURE__*/React.createElement(_reactNative.View, {
64
+ style: _containerStyle
65
+ }, children)));
66
+ };
67
+ var _default = RadioButtonGroup;
68
+ exports.default = _default;0
56
69
  }, style]
57
70
  }, rest), /*#__PURE__*/React.createElement(Provider, {
58
71
  value: {
@@ -37,7 +37,8 @@ const SEED_DATA_PROPS = {
37
37
  label: "Border Color"
38
38
  }),
39
39
  borderColorActive: (0, _types.createColorProp)({
40
- label: "Border Color"
40
+ label: "Active Border Color",
41
+ description: "Color of border when date picker is active"
41
42
  }),
42
43
  format: {
43
44
  label: "Format",
@@ -169,7 +170,12 @@ const SEED_DATA = [{
169
170
  editable: true,
170
171
  required: true,
171
172
  group: _types.GROUPS.basic
172
- }
173
+ },
174
+ autoDismissKeyboard: (0, _types.createStaticBoolProp)({
175
+ label: "Auto dismiss keyboard",
176
+ description: "Automatically dismiss keyboard when DatePicker is opened",
177
+ defaultValue: true
178
+ })
173
179
  }
174
180
  }];
175
181
  exports.SEED_DATA = SEED_DATA;
@@ -11,6 +11,9 @@ const SEED_DATA = {
11
11
  description: "Deck swiper container",
12
12
  category: _types.COMPONENT_TYPES.swiper,
13
13
  stylesPanelSections: _types.BLOCK_STYLES_SECTIONS,
14
+ layout: {
15
+ width: "100%"
16
+ },
14
17
  triggers: [_types.Triggers.OnIndexChanged, _types.Triggers.OnEndReached],
15
18
  props: {
16
19
  onIndexChanged: (0, _types.createActionProp)({
@@ -11,6 +11,13 @@ const SEED_DATA = {
11
11
  description: "Single Deck Swiper Card item to be used in DeckSwiper",
12
12
  category: _types.COMPONENT_TYPES.swiper,
13
13
  stylesPanelSections: _types.CONTAINER_COMPONENT_STYLES_SECTIONS,
14
+ layout: {
15
+ flex: 1,
16
+ alignItems: "center",
17
+ justifyContent: "center",
18
+ padding: 20,
19
+ borderWidth: 2
20
+ },
14
21
  props: {}
15
22
  };
16
23
  exports.SEED_DATA = SEED_DATA;
@@ -142,6 +142,11 @@ const SEED_DATA = [{
142
142
  }),
143
143
  iconColor: (0, _types.createColorProp)({
144
144
  label: "Icon Color"
145
+ }),
146
+ autoDismissKeyboard: (0, _types.createStaticBoolProp)({
147
+ label: "Auto dismiss keyboard",
148
+ description: "Automatically dismiss keyboard when Picker is opened",
149
+ defaultValue: true
145
150
  })
146
151
  },
147
152
  layout: {}
@@ -1,6 +1,6 @@
1
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); }
2
2
  import * as React from "react";
3
- import { View, Animated, Text, StyleSheet, I18nManager, TextInput as NativeTextInput } from "react-native";
3
+ import { View, Animated, Text, StyleSheet, I18nManager, TextInput as NativeTextInput, Keyboard } from "react-native";
4
4
  import { useSafeAreaInsets } from "react-native-safe-area-context";
5
5
  import dateFormat from "dateformat";
6
6
  import { withTheme } from "../../theming";
@@ -39,6 +39,7 @@ const DatePicker = _ref => {
39
39
  placeholder,
40
40
  borderColor: inputBorderColor,
41
41
  borderColorActive: inputBorderColorActive,
42
+ autoDismissKeyboard = true,
42
43
  ...props
43
44
  } = _ref;
44
45
  const [value, setValue] = React.useState(date || defaultValue);
@@ -134,6 +135,11 @@ const DatePicker = _ref => {
134
135
  clearTimeout(_showPlaceholder());
135
136
  };
136
137
  }, [focused, label, placeholder]);
138
+ React.useEffect(() => {
139
+ if (pickerVisible && autoDismissKeyboard) {
140
+ Keyboard.dismiss();
141
+ }
142
+ }, [pickerVisible, autoDismissKeyboard]);
137
143
  const _handleFocus = () => {
138
144
  if (disabled) {
139
145
  return;
@@ -151,7 +157,14 @@ const DatePicker = _ref => {
151
157
  const MAXIMIZED_LABEL_FONT_SIZE = textStyles.fontSize || typography.subtitle1.fontSize;
152
158
  const MINIMIZED_LABEL_FONT_SIZE = labelSize ? labelSize : typography.caption.fontSize;
153
159
  const hasActiveOutline = focused;
154
- let inputTextColor, activeColor, underlineColor, borderColor, placeholderColor, containerStyle, backgroundColor, inputStyle;
160
+ let inputTextColor,
161
+ activeColor,
162
+ underlineColor,
163
+ borderColor = inputBorderColor,
164
+ placeholderColor,
165
+ containerStyle,
166
+ backgroundColor,
167
+ inputStyle;
155
168
  inputTextColor = colors.strong;
156
169
  if (disabled) {
157
170
  activeColor = colors.light;
@@ -24,17 +24,8 @@ const NumberInput = _ref => {
24
24
  return valueToFormat.toString();
25
25
  }
26
26
  }
27
- return "0";
27
+ return "";
28
28
  };
29
-
30
- // set currentStringNumberValue as defaultValue prop if there is a differnce on first render only
31
- useEffect(() => {
32
- const defaultStringNumberValue = formatValueToStringNumber(defaultValue);
33
- if (currentStringNumberValue !== defaultStringNumberValue) {
34
- setCurrentStringNumberValue(defaultStringNumberValue);
35
- }
36
- // eslint-disable-next-line react-hooks/exhaustive-deps
37
- }, []);
38
29
  const handleChangeText = newValue => {
39
30
  const newStringNumberValue = formatValueToStringNumber(newValue);
40
31
  const number = parseFloat(newStringNumberValue);
@@ -50,6 +41,15 @@ const NumberInput = _ref => {
50
41
  }
51
42
  // eslint-disable-next-line react-hooks/exhaustive-deps
52
43
  }, [value]);
44
+
45
+ // set currentStringNumberValue as defaultValue prop if there is a differnce on first render only
46
+ useEffect(() => {
47
+ const defaultStringNumberValue = formatValueToStringNumber(defaultValue);
48
+ if (currentStringNumberValue !== defaultStringNumberValue) {
49
+ setCurrentStringNumberValue(defaultStringNumberValue);
50
+ }
51
+ // eslint-disable-next-line react-hooks/exhaustive-deps
52
+ }, []);
53
53
  return /*#__PURE__*/React.createElement(TextInput, _extends({
54
54
  keyboardType: "numeric",
55
55
  value: currentStringNumberValue,
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { View, StyleSheet, Text, Platform, Dimensions } from "react-native";
2
+ import { View, StyleSheet, Text, Platform, Dimensions, Keyboard } from "react-native";
3
3
  import { omit, pickBy, identity, isObject } from "lodash";
4
4
  import { SafeAreaView } from "react-native-safe-area-context";
5
5
  import { Picker as NativePicker } from "@react-native-picker/picker";
@@ -33,6 +33,7 @@ const {
33
33
  height: deviceHeight
34
34
  } = Dimensions.get("screen");
35
35
  const isIos = Platform.OS === "ios";
36
+ const isWeb = Platform.OS === "web";
36
37
  const unstyledColor = "rgba(165, 173, 183, 1)";
37
38
  const disabledColor = "rgb(240, 240, 240)";
38
39
  const errorColor = "rgba(255, 69, 100, 1)";
@@ -56,7 +57,8 @@ const Picker = _ref => {
56
57
  leftIconName,
57
58
  placeholderTextColor = unstyledColor,
58
59
  rightIconName,
59
- type = "solid"
60
+ type = "solid",
61
+ autoDismissKeyboard = true
60
62
  } = _ref;
61
63
  const androidPickerRef = React.useRef(undefined);
62
64
  const [internalValue, setInternalValue] = React.useState(value || defaultValue);
@@ -80,6 +82,11 @@ const Picker = _ref => {
80
82
  androidPickerRef === null || androidPickerRef === void 0 ? void 0 : (_androidPickerRef$cur = androidPickerRef.current) === null || _androidPickerRef$cur === void 0 ? void 0 : _androidPickerRef$cur.focus();
81
83
  }
82
84
  }, [pickerVisible, androidPickerRef]);
85
+ React.useEffect(() => {
86
+ if (pickerVisible && autoDismissKeyboard) {
87
+ Keyboard.dismiss();
88
+ }
89
+ }, [pickerVisible, autoDismissKeyboard]);
83
90
  const normalizedOptions = normalizeOptions(options);
84
91
  const pickerOptions = placeholder ? [{
85
92
  value: placeholder,
@@ -224,8 +231,8 @@ const Picker = _ref => {
224
231
  label: option.label,
225
232
  value: option.value,
226
233
  key: option.value
227
- })))))) : null, !isIos && pickerVisible ? /*#__PURE__*/React.createElement(NativePicker, {
228
- enabled: pickerVisible,
234
+ })))))) : null, !isIos && (pickerVisible || isWeb) ? /*#__PURE__*/React.createElement(NativePicker, {
235
+ enabled: !disabled,
229
236
  selectedValue: internalValue,
230
237
  onValueChange: handleValueChange,
231
238
  style: styles.nonIosPicker,
@@ -1,4 +1,4 @@
1
- import { COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, GROUPS, Triggers, StylesPanelSections, createNumberProp, createColorProp } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, GROUPS, Triggers, StylesPanelSections, createNumberProp, createColorProp, createStaticBoolProp } from "@draftbit/types";
2
2
  const SEED_DATA_PROPS = {
3
3
  mode: {
4
4
  label: "Mode",
@@ -31,7 +31,8 @@ const SEED_DATA_PROPS = {
31
31
  label: "Border Color"
32
32
  }),
33
33
  borderColorActive: createColorProp({
34
- label: "Border Color"
34
+ label: "Active Border Color",
35
+ description: "Color of border when date picker is active"
35
36
  }),
36
37
  format: {
37
38
  label: "Format",
@@ -163,6 +164,11 @@ export const SEED_DATA = [{
163
164
  editable: true,
164
165
  required: true,
165
166
  group: GROUPS.basic
166
- }
167
+ },
168
+ autoDismissKeyboard: createStaticBoolProp({
169
+ label: "Auto dismiss keyboard",
170
+ description: "Automatically dismiss keyboard when DatePicker is opened",
171
+ defaultValue: true
172
+ })
167
173
  }
168
174
  }];
@@ -5,6 +5,9 @@ export const SEED_DATA = {
5
5
  description: "Deck swiper container",
6
6
  category: COMPONENT_TYPES.swiper,
7
7
  stylesPanelSections: BLOCK_STYLES_SECTIONS,
8
+ layout: {
9
+ width: "100%"
10
+ },
8
11
  triggers: [Triggers.OnIndexChanged, Triggers.OnEndReached],
9
12
  props: {
10
13
  onIndexChanged: createActionProp({
@@ -5,5 +5,12 @@ export const SEED_DATA = {
5
5
  description: "Single Deck Swiper Card item to be used in DeckSwiper",
6
6
  category: COMPONENT_TYPES.swiper,
7
7
  stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
8
+ layout: {
9
+ flex: 1,
10
+ alignItems: "center",
11
+ justifyContent: "center",
12
+ padding: 20,
13
+ borderWidth: 2
14
+ },
8
15
  props: {}
9
16
  };
@@ -1,4 +1,4 @@
1
- import { COMPONENT_TYPES, Triggers, GROUPS, FORM_TYPES, PROP_TYPES, FIELD_NAME, createIconSizeProp, createColorProp, StylesPanelSections } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, Triggers, GROUPS, FORM_TYPES, PROP_TYPES, FIELD_NAME, createIconSizeProp, createColorProp, StylesPanelSections, createStaticBoolProp } from "@draftbit/types";
2
2
  const SEED_DATA_PROPS = {
3
3
  label: {
4
4
  group: GROUPS.data,
@@ -136,6 +136,11 @@ export const SEED_DATA = [{
136
136
  }),
137
137
  iconColor: createColorProp({
138
138
  label: "Icon Color"
139
+ }),
140
+ autoDismissKeyboard: createStaticBoolProp({
141
+ label: "Auto dismiss keyboard",
142
+ description: "Automatically dismiss keyboard when Picker is opened",
143
+ defaultValue: true
139
144
  })
140
145
  },
141
146
  layout: {}
@@ -23,6 +23,7 @@ declare type Props = {
23
23
  rightIconName?: string;
24
24
  borderColor?: string;
25
25
  borderColorActive?: string;
26
+ autoDismissKeyboard?: boolean;
26
27
  } & IconSlot & TextInputProps;
27
28
  declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<React.PropsWithChildren<Props>, "theme"> & {
28
29
  theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAKL,SAAS,EACT,SAAS,EACT,SAAS,EACT,cAAc,EAKf,MAAM,cAAc,CAAC;AAStB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAStD,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,GAAG,SAAS,CAAC,GAAG;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/D,KAAK,EAAE,KAAK,CAAC;IAMb,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,IAAI,KAAK,IAAI,CAAC;IACrC,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;IACpC,IAAI,CAAC,EAAE,OAAO,GAAG,WAAW,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC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AAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,GAAG,QAAQ,GACV,cAAc,CAAC;;;;AAsgBjB,wBAAqC"}
@@ -26,6 +26,7 @@ export declare type PickerProps = {
26
26
  placeholderTextColor?: string;
27
27
  rightIconName?: string;
28
28
  type?: "solid" | "underline";
29
+ autoDismissKeyboard?: boolean;
29
30
  theme: Theme;
30
31
  Icon: IconSlot["Icon"];
31
32
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Picker.d.ts","sourceRoot":"","sources":["../../../../../src/components/Picker/Picker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAKL,SAAS,EACT,SAAS,EAEV,MAAM,cAAc,CAAC;AAStB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAQtD,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,oBAAY,WAAW,GAAG;IACxB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,GAAG;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,YAAY,EAAE,GAAG,MAAM,EAAE,CAAC;IACnC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAA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