@draftbit/core 46.7.1 → 46.7.3

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 (55) hide show
  1. package/lib/commonjs/components/Accordion/AccordionItem.js +23 -4
  2. package/lib/commonjs/components/AnimatedCircularProgress.js +12 -1
  3. package/lib/commonjs/components/AvatarEdit.js +15 -4
  4. package/lib/commonjs/components/Button.js +33 -10
  5. package/lib/commonjs/components/CardBlock.js +13 -4
  6. package/lib/commonjs/components/CardContainer.js +13 -4
  7. package/lib/commonjs/components/Checkbox/Checkbox.js +22 -4
  8. package/lib/commonjs/components/Container.js +15 -4
  9. package/lib/commonjs/components/DeprecatedButton.js +20 -3
  10. package/lib/commonjs/components/DeprecatedCardWrapper.js +15 -1
  11. package/lib/commonjs/components/Divider.js +14 -1
  12. package/lib/commonjs/components/Image.js +17 -2
  13. package/lib/commonjs/components/Picker/Picker.js +9 -4
  14. package/lib/commonjs/components/Portal/PortalHost.js +44 -15
  15. package/lib/commonjs/components/Portal/PortalManager.js +34 -8
  16. package/lib/commonjs/components/ProgressBar.js +37 -7
  17. package/lib/commonjs/components/Slider.js +21 -4
  18. package/lib/commonjs/components/Surface.js +14 -2
  19. package/lib/commonjs/components/TextField.js +76 -28
  20. package/lib/commonjs/components/Touchable.js +15 -2
  21. package/lib/commonjs/constants.js +1 -1
  22. package/lib/commonjs/hooks.js +1 -2
  23. package/lib/commonjs/mappings/StarRating.js +6 -2
  24. package/lib/commonjs/utilities.js +1 -2
  25. package/lib/module/components/Accordion/AccordionItem.js +4 -25
  26. package/lib/module/components/Button.js +33 -10
  27. package/lib/module/components/CardBlock.js +14 -4
  28. package/lib/module/components/CardContainerRating.js +14 -4
  29. package/lib/module/components/CardContainerShortImage.js +18 -4
  30. package/lib/module/components/Checkbox/CheckboxGroupRow.js +24 -5
  31. package/lib/module/components/Checkbox/context.js +1 -1
  32. package/lib/module/components/CircleImage.js +16 -1
  33. package/lib/module/components/DeprecatedCardWrapper.js +18 -1
  34. package/lib/module/components/Divider.js +18 -1
  35. package/lib/module/components/Elevation.js +14 -2
  36. package/lib/module/components/FieldSearchBarFull.js +1 -2
  37. package/lib/module/components/FormRow.js +17 -2
  38. package/lib/module/components/Image.js +18 -2
  39. package/lib/module/components/Layout.js +42 -21
  40. package/lib/module/components/NumberInput.js +12 -3
  41. package/lib/module/components/Picker/PickerComponent.ios.js +36 -11
  42. package/lib/module/components/Portal/PortalConsumer.js +22 -7
  43. package/lib/module/components/RadioButton/RadioButton.js +13 -1
  44. package/lib/module/components/RadioButton/RadioButtonGroup.js +16 -2
  45. package/lib/module/components/RadioButton/RadioButtonRow.js +24 -5
  46. package/lib/module/components/Slider.js +21 -4
  47. package/lib/module/components/StepIndicator.js +58 -18
  48. package/lib/module/components/TextField.js +78 -28
  49. package/lib/module/components/ToggleButton.js +16 -2
  50. package/lib/module/components/Touchable.js +15 -2
  51. package/lib/module/constants.js +1 -2
  52. package/lib/module/mappings/FieldSearchBarFull.js +4 -1
  53. package/lib/module/styles/overlay.js +1 -3
  54. package/lib/module/utilities.js +1 -2
  55. package/package.json +3 -3
@@ -8,7 +8,6 @@ export const SEED_DATA = [{
8
8
  preview_image_url: "{CLOUDINARY_URL}/Field_SearchBar_Full.png",
9
9
  supports_list_render: false,
10
10
  triggers: [Triggers.OnChange],
11
- // TODO Triggers.OnSubmit for multiple triggers
12
11
  props: {
13
12
  icon: {
14
13
  group: GROUPS.basic,
@@ -46,4 +45,8 @@ export const SEED_DATA = [{
46
45
  }
47
46
  },
48
47
  layout: {}
48
+ }];alue: "searchBarValue"
49
+ }
50
+ },
51
+ layout: {}
49
52
  }];
@@ -7,7 +7,6 @@ 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
-
11
10
  // @ts-expect-error: TS doesn't seem to refine the type correctly
12
11
  return elevation.interpolate({
13
12
  inputRange,
@@ -16,7 +15,6 @@ export default function overlay(elevation) {
16
15
  })
17
16
  });
18
17
  }
19
-
20
18
  // @ts-expect-error: TS doesn't seem to refine the type correctly
21
19
  return calculateColor(surfaceColor, elevation);
22
20
  }
@@ -57,4 +55,4 @@ const elevationOverlayTransparency = {
57
55
  22: 15.72,
58
56
  23: 15.84,
59
57
  24: 16
60
- };
58
+ };};
@@ -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: ".concat(value));
79
78
  }
80
- }
79
+ }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@draftbit/core",
3
- "version": "46.7.1",
3
+ "version": "46.7.3",
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.1",
44
+ "@draftbit/types": "^46.7.3",
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": "8d12faf1ea70acaa116189494f1d2742c8388faf"
94
+ "gitHead": "6ca9942ecce0f011576b079016ca021548649133"
95
95
  }