@draftbit/core 46.7.9-9ce779.2 → 46.7.9-cbe269.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 (59) hide show
  1. package/lib/commonjs/components/Accordion/AccordionItem.js +23 -4
  2. package/lib/commonjs/components/Divider.js +14 -1
  3. package/lib/commonjs/components/Elevation.js +14 -2
  4. package/lib/commonjs/components/Picker/Picker.js +3 -2
  5. package/lib/commonjs/components/Portal/PortalManager.js +8 -34
  6. package/lib/commonjs/components/TextField.js +76 -28
  7. package/lib/commonjs/index.js +0 -13
  8. package/lib/module/components/AnimatedCircularProgress.js +1 -13
  9. package/lib/module/components/Container.js +4 -17
  10. package/lib/module/components/Divider.js +1 -18
  11. package/lib/module/components/Picker/Picker.js +3 -2
  12. package/lib/module/components/Picker/PickerComponent.web.js +3 -21
  13. package/lib/module/components/Pressable.js +2 -15
  14. package/lib/module/components/Slider.js +4 -21
  15. package/lib/module/components/StarRating.js +4 -24
  16. package/lib/module/components/StepIndicator.js +18 -58
  17. package/lib/module/components/Switch.js +10 -21
  18. package/lib/module/constants.js +0 -1
  19. package/lib/module/hooks.js +2 -1
  20. package/lib/module/index.js +0 -1
  21. package/lib/module/styles/overlay.js +3 -1
  22. package/lib/typescript/src/components/Picker/Picker.d.ts.map +1 -1
  23. package/lib/typescript/src/index.d.ts +0 -1
  24. package/lib/typescript/src/index.d.ts.map +1 -1
  25. package/package.json +3 -4
  26. package/src/components/Picker/Picker.js +2 -1
  27. package/src/components/Picker/Picker.tsx +5 -2
  28. package/src/index.js +0 -1
  29. package/src/index.tsx +0 -2
  30. package/lib/commonjs/components/DeckSwiper/DeckSwiper.js +0 -73
  31. package/lib/commonjs/components/DeckSwiper/DeckSwiperCard.js +0 -35
  32. package/lib/commonjs/components/DeckSwiper/index.js +0 -20
  33. package/lib/commonjs/mappings/DeckSwiper.js +0 -52
  34. package/lib/commonjs/mappings/DeckSwiperCard.js +0 -16
  35. package/lib/module/components/DeckSwiper/DeckSwiper.js +0 -65
  36. package/lib/module/components/DeckSwiper/DeckSwiperCard.js +0 -27
  37. package/lib/module/components/DeckSwiper/index.js +0 -2
  38. package/lib/module/mappings/DeckSwiper.js +0 -45
  39. package/lib/module/mappings/DeckSwiperCard.js +0 -9
  40. package/lib/typescript/src/components/DeckSwiper/DeckSwiper.d.ts +0 -15
  41. package/lib/typescript/src/components/DeckSwiper/DeckSwiper.d.ts.map +0 -1
  42. package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.d.ts +0 -13
  43. package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.d.ts.map +0 -1
  44. package/lib/typescript/src/components/DeckSwiper/index.d.ts +0 -3
  45. package/lib/typescript/src/components/DeckSwiper/index.d.ts.map +0 -1
  46. package/lib/typescript/src/mappings/DeckSwiper.d.ts +0 -83
  47. package/lib/typescript/src/mappings/DeckSwiper.d.ts.map +0 -1
  48. package/lib/typescript/src/mappings/DeckSwiperCard.d.ts +0 -9
  49. package/lib/typescript/src/mappings/DeckSwiperCard.d.ts.map +0 -1
  50. package/src/components/DeckSwiper/DeckSwiper.js +0 -34
  51. package/src/components/DeckSwiper/DeckSwiper.tsx +0 -93
  52. package/src/components/DeckSwiper/DeckSwiperCard.js +0 -22
  53. package/src/components/DeckSwiper/DeckSwiperCard.tsx +0 -42
  54. package/src/components/DeckSwiper/index.js +0 -2
  55. package/src/components/DeckSwiper/index.tsx +0 -2
  56. package/src/mappings/DeckSwiper.js +0 -45
  57. package/src/mappings/DeckSwiper.ts +0 -54
  58. package/src/mappings/DeckSwiperCard.js +0 -9
  59. package/src/mappings/DeckSwiperCard.ts +0 -13
@@ -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 { View, StyleSheet, Pressable } from "react-native";
3
4
  import { withTheme } from "../theming";
@@ -31,10 +32,9 @@ const StarRating = _ref => {
31
32
  !!onPress && onPress(r);
32
33
  }, [onPress]);
33
34
  const ratingRounded = Math.round(localRating * 2) / 2;
34
- return /*#__PURE__*/React.createElement(View, {
35
- style: [styles.container, style],
36
- ...rest
37
- }, [...Array(maxStars)].map((_, i) => /*#__PURE__*/React.createElement(View, {
35
+ return /*#__PURE__*/React.createElement(View, _extends({
36
+ style: [styles.container, style]
37
+ }, rest), [...Array(maxStars)].map((_, i) => /*#__PURE__*/React.createElement(View, {
38
38
  key: i,
39
39
  style: {
40
40
  display: "flex"
@@ -74,24 +74,4 @@ const styles = StyleSheet.create({
74
74
  width: "50%"
75
75
  }
76
76
  });
77
- export default withTheme(StarRating);ntainer: {
78
- flexDirection: "row",
79
- alignItems: "center"
80
- },
81
- touchContainer: {
82
- display: "flex",
83
- flexDirection: "row",
84
- position: "absolute",
85
- top: 0,
86
- right: 0,
87
- left: 0,
88
- bottom: 0,
89
- zIndex: 1
90
- },
91
- pressable: {
92
- flex: 1,
93
- height: "100%",
94
- width: "50%"
95
- }
96
- });
97
77
  export default withTheme(StarRating);
@@ -1,3 +1,6 @@
1
+ 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; }
2
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
+ 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); }
1
4
  // @ts-nocheck
2
5
  import React, { Component } from "react";
3
6
  import { View, Text, StyleSheet, Animated, TouchableWithoutFeedback } from "react-native";
@@ -9,7 +12,7 @@ const STEP_STATUS = {
9
12
  export default class StepIndicator extends Component {
10
13
  constructor(props) {
11
14
  super(props);
12
- this.renderProgressBarBackground = () => {
15
+ _defineProperty(this, "renderProgressBarBackground", () => {
13
16
  const {
14
17
  stepCount,
15
18
  direction
@@ -52,8 +55,8 @@ export default class StepIndicator extends Component {
52
55
  },
53
56
  style: progressBarBackgroundStyle
54
57
  });
55
- };
56
- this.renderProgressBar = () => {
58
+ });
59
+ _defineProperty(this, "renderProgressBar", () => {
57
60
  const {
58
61
  stepCount,
59
62
  direction
@@ -83,8 +86,8 @@ export default class StepIndicator extends Component {
83
86
  return /*#__PURE__*/React.createElement(Animated.View, {
84
87
  style: progressBarStyle
85
88
  });
86
- };
87
- this.renderStepIndicator = () => {
89
+ });
90
+ _defineProperty(this, "renderStepIndicator", () => {
88
91
  let steps = [];
89
92
  const {
90
93
  stepCount,
@@ -115,8 +118,8 @@ export default class StepIndicator extends Component {
115
118
  height: this.state.customStyles.currentStepIndicatorSize
116
119
  }]
117
120
  }, steps);
118
- };
119
- this.renderStepLabels = () => {
121
+ });
122
+ _defineProperty(this, "renderStepLabels", () => {
120
123
  const {
121
124
  labels,
122
125
  direction,
@@ -158,8 +161,8 @@ export default class StepIndicator extends Component {
158
161
  alignItems: this.state.customStyles.labelAlign
159
162
  }]
160
163
  }, labelViews);
161
- };
162
- this.renderStep = position => {
164
+ });
165
+ _defineProperty(this, "renderStep", position => {
163
166
  const {
164
167
  renderStepIndicator
165
168
  } = this.props;
@@ -226,8 +229,8 @@ export default class StepIndicator extends Component {
226
229
  }) : /*#__PURE__*/React.createElement(Text, {
227
230
  style: indicatorLabelStyle
228
231
  }, "".concat(position + 1)));
229
- };
230
- this.getStepStatus = stepPosition => {
232
+ });
233
+ _defineProperty(this, "getStepStatus", stepPosition => {
231
234
  const {
232
235
  currentPosition
233
236
  } = this.props;
@@ -238,8 +241,8 @@ export default class StepIndicator extends Component {
238
241
  } else {
239
242
  return STEP_STATUS.UNFINISHED;
240
243
  }
241
- };
242
- this.onCurrentPositionChanged = position => {
244
+ });
245
+ _defineProperty(this, "onCurrentPositionChanged", position => {
243
246
  let {
244
247
  stepCount
245
248
  } = this.props;
@@ -259,7 +262,7 @@ export default class StepIndicator extends Component {
259
262
  toValue: this.state.customStyles.currentStepIndicatorSize / 2,
260
263
  duration: 100
261
264
  })])]).start();
262
- };
265
+ });
263
266
  const defaultStyles = {
264
267
  stepIndicatorSize: 30,
265
268
  currentStepIndicatorSize: 40,
@@ -325,6 +328,7 @@ export default class StepIndicator extends Component {
325
328
  // ),
326
329
  // }));
327
330
  // }
331
+
328
332
  if (prevProps.currentPosition !== this.props.currentPosition) {
329
333
  this.onCurrentPositionChanged(this.props.currentPosition);
330
334
  }
@@ -365,50 +369,6 @@ const styles = StyleSheet.create({
365
369
  justifyContent: "center"
366
370
  }
367
371
  });
368
- StepIndicator.defaultProps = {
369
- currentPosition: 0,
370
- stepCount: 5,
371
- customStyles: {},
372
- direction: "horizontal"
373
- };rrentPositionChanged(this.props.currentPosition);
374
- }
375
- }
376
- }
377
- const styles = StyleSheet.create({
378
- container: {
379
- backgroundColor: "transparent"
380
- },
381
- stepIndicatorContainer: {
382
- flexDirection: "row",
383
- alignItems: "center",
384
- justifyContent: "space-around",
385
- backgroundColor: "transparent"
386
- },
387
- stepLabelsContainer: {
388
- justifyContent: "space-around"
389
- },
390
- step: {
391
- alignItems: "center",
392
- justifyContent: "center",
393
- zIndex: 2
394
- },
395
- stepContainer: {
396
- flex: 1,
397
- flexDirection: "row",
398
- alignItems: "center",
399
- justifyContent: "center"
400
- },
401
- stepLabel: {
402
- fontSize: 12,
403
- textAlign: "center",
404
- fontWeight: "500"
405
- },
406
- stepLabelItem: {
407
- flex: 1,
408
- alignItems: "center",
409
- justifyContent: "center"
410
- }
411
- });
412
372
  StepIndicator.defaultProps = {
413
373
  currentPosition: 0,
414
374
  stepCount: 5,
@@ -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 { Switch as NativeSwitch } from "react-native";
3
4
  import { withTheme } from "../theming";
@@ -28,6 +29,7 @@ function Switch(_ref) {
28
29
  setChecked(value);
29
30
  }
30
31
  }, [value, checked]);
32
+
31
33
  // This special logic is to handle weird APIs like Airtable that return
32
34
  // true or undefined for a boolean
33
35
  const previousDefaultValue = usePrevious(defaultValue);
@@ -36,24 +38,24 @@ function Switch(_ref) {
36
38
  setChecked(Boolean(defaultValue));
37
39
  }
38
40
  }, [defaultValue, previousDefaultValue]);
39
- return /*#__PURE__*/React.createElement(NativeSwitch, {
41
+ return /*#__PURE__*/React.createElement(NativeSwitch, _extends({
40
42
  value: checked,
41
43
  disabled: disabled,
42
44
  trackColor: {
43
45
  false: inactiveTrackThemeColor,
44
46
  true: activeTrackThemeColor
45
47
  },
46
- thumbColor: value ? activeThumbThemeColor : inactiveThumbThemeColor,
48
+ thumbColor: value ? activeThumbThemeColor : inactiveThumbThemeColor
47
49
  // @ts-ignore react-native-web only
50
+ ,
48
51
  activeThumbColor: activeThumbThemeColor,
49
52
  ios_backgroundColor: inactiveTrackThemeColor,
50
53
  style: style,
51
54
  onValueChange: bool => {
52
55
  setChecked(bool);
53
56
  onValueChange && onValueChange(bool);
54
- },
55
- ...rest
56
- });
57
+ }
58
+ }, rest));
57
59
  }
58
60
  function Row(_ref2) {
59
61
  let {
@@ -82,7 +84,7 @@ function Row(_ref2) {
82
84
  setChecked(defaultValue);
83
85
  }
84
86
  }, [defaultValue]);
85
- return /*#__PURE__*/React.createElement(FormRow, {
87
+ return /*#__PURE__*/React.createElement(FormRow, _extends({
86
88
  disabled: disabled,
87
89
  onPress: () => {
88
90
  setChecked(!checked);
@@ -90,9 +92,8 @@ function Row(_ref2) {
90
92
  },
91
93
  label: label,
92
94
  direction: direction,
93
- style: style,
94
- ...rest
95
- }, /*#__PURE__*/React.createElement(Switch, {
95
+ style: style
96
+ }, rest), /*#__PURE__*/React.createElement(Switch, {
96
97
  theme: theme,
97
98
  value: checked,
98
99
  disabled: disabled,
@@ -105,16 +106,4 @@ function Row(_ref2) {
105
106
  }
106
107
  const SwitchRow = withTheme(Row);
107
108
  export { SwitchRow };
108
- export default withTheme(Switch);: theme,
109
- value: checked,
110
- disabled: disabled,
111
- onValueChange: onValueChange,
112
- activeTrackColor: activeTrackColor,
113
- inactiveTrackColor: inactiveTrackColor,
114
- activeThumbColor: activeThumbColor,
115
- inactiveThumbColor: inactiveThumbColor
116
- }));
117
- }
118
- const SwitchRow = withTheme(Row);
119
- export { SwitchRow };
120
109
  export default withTheme(Switch);
@@ -6,5 +6,4 @@ const DEFAULT_STATUSBAR_HEIGHT_EXPO = expo !== null && expo !== void 0 && expo.C
6
6
  export const APPROX_STATUSBAR_HEIGHT = Platform.select({
7
7
  android: DEFAULT_STATUSBAR_HEIGHT_EXPO,
8
8
  ios: Platform.Version < 11 ? DEFAULT_STATUSBAR_HEIGHT_EXPO : 0
9
- });O : 0
10
9
  });
@@ -3,11 +3,12 @@ export function usePrevious(value) {
3
3
  // The ref object is a generic container whose current property is mutable
4
4
  // and can hold any value, similar to an instance property on a class
5
5
  const ref = React.useRef();
6
+
6
7
  // Store current value in ref
7
8
  React.useEffect(() => {
8
9
  ref.current = value;
9
10
  }, [value]);
11
+
10
12
  // Return previous value (happens before update in useEffect above)
11
13
  return ref.current;
12
- }
13
14
  }
@@ -31,7 +31,6 @@ export { ActionSheet, ActionSheetItem, ActionSheetCancel } from "./components/Ac
31
31
  export { Swiper, SwiperItem } from "./components/Swiper";
32
32
  export { Center, Circle, Square, Row, Stack, Spacer } from "./components/Layout";
33
33
  export { RadioButton, RadioButtonGroup, RadioButtonRow, RadioButtonFieldGroup } from "./components/RadioButton/index";
34
- export { DeckSwiper, DeckSwiperCard } from "./components/DeckSwiper";
35
34
 
36
35
  /* Deprecated: Fix or Delete! */
37
36
  export { default as DatePicker } from "./components/DatePicker/DatePicker";
@@ -7,6 +7,7 @@ export default function overlay(elevation) {
7
7
  let surfaceColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DarkTheme.colors.surface;
8
8
  if (isAnimatedValue(elevation)) {
9
9
  const inputRange = [0, 1, 2, 3, 8, 24];
10
+
10
11
  // @ts-expect-error: TS doesn't seem to refine the type correctly
11
12
  return elevation.interpolate({
12
13
  inputRange,
@@ -15,6 +16,7 @@ export default function overlay(elevation) {
15
16
  })
16
17
  });
17
18
  }
19
+
18
20
  // @ts-expect-error: TS doesn't seem to refine the type correctly
19
21
  return calculateColor(surfaceColor, elevation);
20
22
  }
@@ -55,4 +57,4 @@ const elevationOverlayTransparency = {
55
57
  22: 15.72,
56
58
  23: 15.84,
57
59
  24: 16
58
- };};
60
+ };
@@ -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,Y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AA;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,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,OAAO,GAAG,WAAW,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CACxB,CAAC;;;;AAoaF,wBAAiC"}
@@ -31,7 +31,6 @@ export { ActionSheet, ActionSheetItem, ActionSheetCancel, } from "./components/A
31
31
  export { Swiper, SwiperItem } from "./components/Swiper";
32
32
  export { Center, Circle, Square, Row, Stack, Spacer, } from "./components/Layout";
33
33
  export { RadioButton, RadioButtonGroup, RadioButtonRow, RadioButtonFieldGroup, } from "./components/RadioButton/index";
34
- export { DeckSwiper, DeckSwiperCard } from "./components/DeckSwiper";
35
34
  export { default as DatePicker } from "./components/DatePicker/DatePicker";
36
35
  export { default as Picker } from "./components/Picker/Picker";
37
36
  export { default as ProgressBar } from "./components/ProgressBar";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,aAAa,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O,EACL,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,qBAAqB,GACtB,MAAM,gCAAgC,CAAC;AAGxC,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC1F,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@draftbit/core",
3
- "version": "46.7.9-9ce779.2+9ce7799",
3
+ "version": "46.7.9-cbe269.2+cbe2692",
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.7.9-9ce779.2+9ce7799",
44
+ "@draftbit/types": "^46.7.9-cbe269.2+cbe2692",
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",
@@ -53,7 +53,6 @@
53
53
  "lodash.isnumber": "^3.0.3",
54
54
  "lodash.omit": "^4.5.0",
55
55
  "lodash.tonumber": "^4.0.3",
56
- "react-native-deck-swiper": "^2.0.12",
57
56
  "react-native-modal-datetime-picker": "^13.0.0",
58
57
  "react-native-svg": "12.3.0",
59
58
  "react-native-typography": "^1.4.1",
@@ -92,5 +91,5 @@
92
91
  ]
93
92
  ]
94
93
  },
95
- "gitHead": "9ce77999dd0ae314668a03f87c7e230da78d3787"
94
+ "gitHead": "cbe26928f69ff97f3ed73bc6ff855163d6738524"
96
95
  }
@@ -32,6 +32,7 @@ function normalizeOptions(options) {
32
32
  }
33
33
  const { width: deviceWidth, height: deviceHeight } = Dimensions.get("screen");
34
34
  const isIos = Platform.OS === "ios";
35
+ const isWeb = Platform.OS === "web";
35
36
  const unstyledColor = "rgba(165, 173, 183, 1)";
36
37
  const disabledColor = "rgb(240, 240, 240)";
37
38
  const errorColor = "rgba(255, 69, 100, 1)";
@@ -186,7 +187,7 @@ const Picker = ({ error, options = [], onValueChange, defaultValue, Icon, style,
186
187
  React.createElement(View, { style: styles.iosPickerContent },
187
188
  React.createElement(Button, { Icon: Icon, type: "text", onPress: togglePickerVisible, style: styles.iosButton }, "Close"),
188
189
  React.createElement(NativePicker, { style: styles.iosNativePicker, selectedValue: internalValue, onValueChange: handleValueChange }, pickerOptions.map((option) => (React.createElement(NativePicker.Item, { label: option.label, value: option.value, key: option.value })))))))) : null,
189
- !isIos && pickerVisible ? (React.createElement(NativePicker, { enabled: pickerVisible, selectedValue: internalValue, onValueChange: handleValueChange, style: styles.nonIosPicker, ref: androidPickerRef, onBlur: () => setPickerVisible(false) }, pickerOptions.map((option) => (React.createElement(NativePicker.Item, { label: option.label, value: option.value, key: option.value }))))) : null));
190
+ !isIos && (pickerVisible || isWeb) ? (React.createElement(NativePicker, { enabled: !disabled, selectedValue: internalValue, onValueChange: handleValueChange, style: styles.nonIosPicker, ref: androidPickerRef, onBlur: () => setPickerVisible(false) }, pickerOptions.map((option) => (React.createElement(NativePicker.Item, { label: option.label, value: option.value, key: option.value }))))) : null));
190
191
  };
191
192
  const styles = StyleSheet.create({
192
193
  marginsContainer: {
@@ -84,6 +84,8 @@ function normalizeOptions(options: PickerProps["options"]): PickerOption[] {
84
84
 
85
85
  const { width: deviceWidth, height: deviceHeight } = Dimensions.get("screen");
86
86
  const isIos = Platform.OS === "ios";
87
+ const isWeb = Platform.OS === "web";
88
+
87
89
  const unstyledColor = "rgba(165, 173, 183, 1)";
88
90
  const disabledColor = "rgb(240, 240, 240)";
89
91
  const errorColor = "rgba(255, 69, 100, 1)";
@@ -374,9 +376,10 @@ const Picker: React.FC<PickerProps> = ({
374
376
  ) : null}
375
377
 
376
378
  {/* nonIosPicker */}
377
- {!isIos && pickerVisible ? (
379
+ {/* Web version is collapsed by default, always show to allow direct expand */}
380
+ {!isIos && (pickerVisible || isWeb) ? (
378
381
  <NativePicker
379
- enabled={pickerVisible}
382
+ enabled={!disabled}
380
383
  selectedValue={internalValue}
381
384
  onValueChange={handleValueChange}
382
385
  style={styles.nonIosPicker}
package/src/index.js CHANGED
@@ -31,7 +31,6 @@ export { ActionSheet, ActionSheetItem, ActionSheetCancel, } from "./components/A
31
31
  export { Swiper, SwiperItem } from "./components/Swiper";
32
32
  export { Center, Circle, Square, Row, Stack, Spacer, } from "./components/Layout";
33
33
  export { RadioButton, RadioButtonGroup, RadioButtonRow, RadioButtonFieldGroup, } from "./components/RadioButton/index";
34
- export { DeckSwiper, DeckSwiperCard } from "./components/DeckSwiper";
35
34
  /* Deprecated: Fix or Delete! */
36
35
  export { default as DatePicker } from "./components/DatePicker/DatePicker";
37
36
  export { default as Picker } from "./components/Picker/Picker";
package/src/index.tsx CHANGED
@@ -51,8 +51,6 @@ export {
51
51
  RadioButtonFieldGroup,
52
52
  } from "./components/RadioButton/index";
53
53
 
54
- export { DeckSwiper, DeckSwiperCard } from "./components/DeckSwiper";
55
-
56
54
  /* Deprecated: Fix or Delete! */
57
55
  export { default as DatePicker } from "./components/DatePicker/DatePicker";
58
56
  export { default as Picker } from "./components/Picker/Picker";
@@ -1,73 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _reactNative = require("react-native");
9
- var _reactNativeDeckSwiper = _interopRequireDefault(require("react-native-deck-swiper"));
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
- const DeckSwiper = _ref => {
12
- let {
13
- onIndexChanged,
14
- onEndReached,
15
- startCardIndex = 0,
16
- infiniteSwiping = false,
17
- verticalEnabled = true,
18
- horizontalEnabled = true,
19
- visibleCardCount = 1,
20
- style,
21
- children
22
- } = _ref;
23
- const childrenArray = _react.default.useMemo(() => _react.default.Children.toArray(children), [children]);
24
-
25
- // an array of indices based on children count
26
- const cardsFillerData = _react.default.useMemo(() => Array.from(Array(childrenArray.length).keys()), [childrenArray]);
27
-
28
- /**
29
- * By default react-native-deck-swiper positions everything with absolute position
30
- * To overcome this, it is wrapped in a View to be able to add the component in any layout structure
31
- *
32
- * Since all children of that View are absolutley positioned, the View does not have a height and still looks and behaves weird
33
- * To fix/mitage this without setting a static height, the first card is rendered in invisible state to take up space
34
- * This effectivley makes the default height of the container be the height of the first card
35
- */
36
-
37
- return /*#__PURE__*/_react.default.createElement(_reactNative.View, null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
38
- style: styles.containerHeightFiller
39
- }, childrenArray.length && childrenArray[0]), /*#__PURE__*/_react.default.createElement(_reactNativeDeckSwiper.default, {
40
- cards: cardsFillerData,
41
- renderCard: (_, i) => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, childrenArray[i]),
42
- keyExtractor: card => card === null || card === void 0 ? void 0 : card.toString(),
43
- containerStyle: _reactNative.StyleSheet.flatten([styles.cardsContainer, style]),
44
- cardStyle: styles.card,
45
- onSwiped: onIndexChanged,
46
- onSwipedAll: onEndReached,
47
- cardIndex: startCardIndex,
48
- infinite: infiniteSwiping,
49
- verticalSwipe: verticalEnabled,
50
- horizontalSwipe: horizontalEnabled,
51
- showSecondCard: visibleCardCount > 1,
52
- stackSize: visibleCardCount,
53
- backgroundColor: "transparent",
54
- cardVerticalMargin: 0,
55
- cardHorizontalMargin: 0
56
- }));
57
- };
58
- const styles = _reactNative.StyleSheet.create({
59
- cardsContainer: {
60
- width: "100%"
61
- },
62
- card: {
63
- left: 0,
64
- right: 0,
65
- width: "auto",
66
- height: "auto"
67
- },
68
- containerHeightFiller: {
69
- opacity: 0.0
70
- }
71
- });
72
- var _default = DeckSwiper;
73
- exports.default = _default;
@@ -1,35 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _reactNative = require("react-native");
9
- var _theming = require("../../theming");
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
- const DeckSwiperCard = _ref => {
12
- let {
13
- style,
14
- children,
15
- theme
16
- } = _ref;
17
- return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
18
- style: [styles.card, {
19
- backgroundColor: theme.colors.background,
20
- borderRadius: theme.borderRadius.global,
21
- borderColor: theme.colors.divider
22
- }, style]
23
- }, children);
24
- };
25
- const styles = _reactNative.StyleSheet.create({
26
- card: {
27
- flex: 1,
28
- alignItems: "center",
29
- justifyContent: "center",
30
- padding: 20,
31
- borderWidth: 2
32
- }
33
- });
34
- var _default = (0, _theming.withTheme)(DeckSwiperCard);
35
- exports.default = _default;
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "DeckSwiper", {
7
- enumerable: true,
8
- get: function () {
9
- return _DeckSwiper.default;
10
- }
11
- });
12
- Object.defineProperty(exports, "DeckSwiperCard", {
13
- enumerable: true,
14
- get: function () {
15
- return _DeckSwiperCard.default;
16
- }
17
- });
18
- var _DeckSwiper = _interopRequireDefault(require("./DeckSwiper"));
19
- var _DeckSwiperCard = _interopRequireDefault(require("./DeckSwiperCard"));
20
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -1,52 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SEED_DATA = void 0;
7
- var _types = require("@draftbit/types");
8
- const SEED_DATA = {
9
- name: "Deck Swiper",
10
- tag: "DeckSwiper",
11
- description: "Deck swiper container",
12
- category: _types.COMPONENT_TYPES.swiper,
13
- stylesPanelSections: _types.BLOCK_STYLES_SECTIONS,
14
- triggers: [_types.Triggers.OnIndexChanged, _types.Triggers.OnEndReached],
15
- props: {
16
- onIndexChanged: (0, _types.createActionProp)({
17
- label: "On index changed",
18
- description: "Action to execute when swipe to new index"
19
- }),
20
- onEndReached: (0, _types.createActionProp)({
21
- label: "On end reached",
22
- description: "Action to execute when end of swiping reached"
23
- }),
24
- startCardIndex: (0, _types.createStaticNumberProp)({
25
- label: "Start card index",
26
- description: "Index of card to start swiping from",
27
- defaultValue: 0
28
- }),
29
- infiniteSwiping: (0, _types.createStaticBoolProp)({
30
- label: "Infinite swiping",
31
- description: "Whether to infinitley loop through cards or not"
32
- }),
33
- verticalEnabled: (0, _types.createStaticBoolProp)({
34
- label: "Vertical swipe enabled",
35
- description: "Whether cards should be swipeable vertically or not",
36
- defaultValue: true
37
- }),
38
- horizontalEnabled: (0, _types.createStaticBoolProp)({
39
- label: "Horizontal swipe enabled",
40
- description: "Whether cards should be swipeable horizontally or not",
41
- defaultValue: true
42
- }),
43
- visibleCardCount: (0, _types.createStaticNumberProp)({
44
- label: "Visible card count",
45
- description: "Number of cards visible behind (and including) the current card",
46
- defaultValue: 1,
47
- min: 1,
48
- step: 1
49
- })
50
- }
51
- };
52
- exports.SEED_DATA = SEED_DATA;
@@ -1,16 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SEED_DATA = void 0;
7
- var _types = require("@draftbit/types");
8
- const SEED_DATA = {
9
- name: "Deck Swiper Card",
10
- tag: "DeckSwiperCard",
11
- description: "Single Deck Swiper Card item to be used in DeckSwiper",
12
- category: _types.COMPONENT_TYPES.swiper,
13
- stylesPanelSections: _types.CONTAINER_COMPONENT_STYLES_SECTIONS,
14
- props: {}
15
- };
16
- exports.SEED_DATA = SEED_DATA;