@draftbit/core 46.6.5-8b9fed.2 → 46.6.6

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 (67) hide show
  1. package/lib/commonjs/components/CardBlock.js +13 -4
  2. package/lib/commonjs/components/CardContainerRating.js +13 -4
  3. package/lib/commonjs/components/Checkbox/Checkbox.js +22 -4
  4. package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +23 -5
  5. package/lib/commonjs/components/Checkbox/CheckboxRow.js +23 -6
  6. package/lib/commonjs/components/Container.js +15 -4
  7. package/lib/commonjs/components/DatePicker/DatePicker.js +26 -13
  8. package/lib/commonjs/components/DeprecatedFAB.js +21 -3
  9. package/lib/commonjs/components/Divider.js +14 -1
  10. package/lib/commonjs/components/FAB.js +18 -4
  11. package/lib/commonjs/components/FormRow.js +16 -2
  12. package/lib/commonjs/components/IconButton.js +19 -4
  13. package/lib/commonjs/components/Image.js +17 -2
  14. package/lib/commonjs/components/Layout.js +40 -19
  15. package/lib/commonjs/components/Picker/Picker.js +1 -1
  16. package/lib/commonjs/components/Picker/PickerComponent.web.js +19 -4
  17. package/lib/commonjs/components/Portal/PortalHost.js +44 -15
  18. package/lib/commonjs/components/Portal/PortalManager.js +34 -8
  19. package/lib/commonjs/components/Pressable.js +15 -2
  20. package/lib/commonjs/components/ProgressBar.js +37 -7
  21. package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js +9 -1
  22. package/lib/commonjs/components/ScreenContainer.js +20 -4
  23. package/lib/commonjs/components/StepIndicator.js +57 -18
  24. package/lib/commonjs/components/Surface.js +14 -2
  25. package/lib/commonjs/components/Switch.js +19 -10
  26. package/lib/commonjs/components/TextField.js +76 -28
  27. package/lib/commonjs/components/ToggleButton.js +15 -2
  28. package/lib/commonjs/components/Touchable.js +15 -2
  29. package/lib/commonjs/constants.js +1 -1
  30. package/lib/commonjs/mappings/FieldSearchBarFull.js +3 -1
  31. package/lib/commonjs/utilities.js +1 -2
  32. package/lib/module/components/Accordion/AccordionItem.js +25 -4
  33. package/lib/module/components/AnimatedCircularProgress.js +13 -1
  34. package/lib/module/components/AspectRatio.js +18 -1
  35. package/lib/module/components/AvatarEdit.js +15 -4
  36. package/lib/module/components/CardContainerRating.js +14 -4
  37. package/lib/module/components/CardContainerShortImage.js +18 -4
  38. package/lib/module/components/Checkbox/Checkbox.js +25 -4
  39. package/lib/module/components/Checkbox/CheckboxGroup.js +16 -2
  40. package/lib/module/components/CircleImage.js +16 -1
  41. package/lib/module/components/CircularProgress.js +28 -8
  42. package/lib/module/components/Container.js +17 -4
  43. package/lib/module/components/DatePicker/DatePicker.js +27 -13
  44. package/lib/module/components/DeprecatedCardWrapper.js +18 -1
  45. package/lib/module/components/DeprecatedFAB.js +23 -3
  46. package/lib/module/components/Elevation.js +14 -2
  47. package/lib/module/components/FAB.js +22 -4
  48. package/lib/module/components/FieldSearchBarFull.js +1 -2
  49. package/lib/module/components/IconButton.js +21 -4
  50. package/lib/module/components/Picker/Picker.js +1 -1
  51. package/lib/module/components/Picker/PickerComponent.web.js +19 -4
  52. package/lib/module/components/Portal/Portal.js +28 -3
  53. package/lib/module/components/Portal/PortalHost.js +45 -15
  54. package/lib/module/components/Portal/PortalManager.js +33 -7
  55. package/lib/module/components/ProgressBar.js +39 -7
  56. package/lib/module/components/RadioButton/RadioButtonFieldGroup.js +10 -1
  57. package/lib/module/components/RadioButton/context.js +1 -1
  58. package/lib/module/components/StarRating.js +24 -4
  59. package/lib/module/components/Stepper.js +1 -4
  60. package/lib/module/components/Surface.js +15 -1
  61. package/lib/module/components/TextField.js +78 -28
  62. package/lib/module/components/ToggleButton.js +16 -2
  63. package/lib/module/components/Touchable.js +15 -2
  64. package/lib/module/constants.js +1 -0
  65. package/lib/module/mappings/StarRating.js +7 -2
  66. package/lib/module/utilities.js +1 -2
  67. package/package.json +3 -3
@@ -1,4 +1,3 @@
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
1
  import React from "react";
3
2
  import { Pressable } from "react-native";
4
3
  export default function Touchable(_ref) {
@@ -13,8 +12,22 @@ export default function Touchable(_ref) {
13
12
  style,
14
13
  ...props
15
14
  } = _ref;
16
- return /*#__PURE__*/React.createElement(Pressable, _extends({
15
+ return /*#__PURE__*/React.createElement(Pressable, {
17
16
  disabled: disabled,
17
+ onPress: onPress,
18
+ delayLongPress: delayLongPress ? delayLongPress : 500,
19
+ hitSlop: hitSlop ? hitSlop : 8,
20
+ style: _ref2 => {
21
+ let {
22
+ pressed
23
+ } = _ref2;
24
+ return [{
25
+ opacity: pressed ? activeOpacity : disabled ? disabledOpacity : 1
26
+ }, style];
27
+ },
28
+ ...props
29
+ }, children);
30
+ } disabled: disabled,
18
31
  onPress: onPress,
19
32
  delayLongPress: delayLongPress ? delayLongPress : 500,
20
33
  hitSlop: hitSlop ? hitSlop : 8,
@@ -6,4 +6,5 @@ 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
9
10
  });
@@ -17,9 +17,7 @@ export const SEED_DATA = {
17
17
  }),
18
18
  fieldName: createFieldNameProp({
19
19
  defaultValue: "ratingValue",
20
- // this is the name of the variable declared on the screen in Draftbit
21
20
  handlerPropName: "onPress",
22
- // the change handler prop in this component
23
21
  valuePropName: "rating" // the value prop in this component
24
22
  }),
25
23
 
@@ -43,4 +41,11 @@ export const SEED_DATA = {
43
41
  defaultValue: "divider"
44
42
  })
45
43
  }
44
+ };primary"
45
+ }),
46
+ inactiveColor: createColorProp({
47
+ label: "Inactive Color",
48
+ defaultValue: "divider"
49
+ })
50
+ }
46
51
  };
@@ -44,7 +44,6 @@ export function extractBorderAndMarginStyles(style, additionalBorderStyles, addi
44
44
  marginStyles
45
45
  };
46
46
  }
47
-
48
47
  /**
49
48
  * Merges a style object on top of another style object. In React Native,
50
49
  * keys with undefined values in a style object will still override styles
@@ -77,4 +76,4 @@ export function getValueForRadioButton(value) {
77
76
  } else {
78
77
  throw new Error(`Invalid value: ${value}`);
79
78
  }
80
- }
79
+ }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@draftbit/core",
3
- "version": "46.6.5-8b9fed.2+8b9fede",
3
+ "version": "46.6.6",
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.6.5-8b9fed.2+8b9fede",
44
+ "@draftbit/types": "^46.6.6",
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",
@@ -91,5 +91,5 @@
91
91
  ]
92
92
  ]
93
93
  },
94
- "gitHead": "8b9fede6741c1a5842108844661f76b191111547"
94
+ "gitHead": "1aa46d395f6b9926de0025de6479f1aed37dc0c5"
95
95
  }