@draftbit/core 47.1.1-8b0b37.2 → 47.1.1-b098d3.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 (34) hide show
  1. package/lib/commonjs/mappings/DatePicker.js +1 -1
  2. package/lib/commonjs/mappings/FlashList.js +28 -4
  3. package/lib/commonjs/mappings/FlatList.js +14 -0
  4. package/lib/commonjs/mappings/ScrollView.js +6 -0
  5. package/lib/commonjs/mappings/TextField.js +2 -2
  6. package/lib/module/components/CardBlock.js +4 -14
  7. package/lib/module/components/CircularProgress.js +8 -28
  8. package/lib/module/components/Image.js +2 -18
  9. package/lib/module/components/Picker/PickerComponent.android.js +3 -21
  10. package/lib/module/components/RadioButton/context.js +1 -1
  11. package/lib/module/hooks.js +2 -1
  12. package/lib/module/mappings/DatePicker.js +1 -1
  13. package/lib/module/mappings/FlashList.js +29 -5
  14. package/lib/module/mappings/FlatList.js +15 -1
  15. package/lib/module/mappings/ScrollView.js +7 -1
  16. package/lib/module/mappings/TextField.js +2 -2
  17. package/lib/typescript/src/mappings/DatePicker.d.ts +1 -1
  18. package/lib/typescript/src/mappings/FlashList.d.ts +57 -8
  19. package/lib/typescript/src/mappings/FlashList.d.ts.map +1 -1
  20. package/lib/typescript/src/mappings/FlatList.d.ts +30 -0
  21. package/lib/typescript/src/mappings/FlatList.d.ts.map +1 -1
  22. package/lib/typescript/src/mappings/ScrollView.d.ts +21 -0
  23. package/lib/typescript/src/mappings/ScrollView.d.ts.map +1 -1
  24. package/package.json +3 -3
  25. package/src/mappings/DatePicker.js +1 -1
  26. package/src/mappings/DatePicker.ts +1 -1
  27. package/src/mappings/FlashList.js +29 -5
  28. package/src/mappings/FlashList.ts +33 -5
  29. package/src/mappings/FlatList.js +15 -1
  30. package/src/mappings/FlatList.ts +17 -0
  31. package/src/mappings/ScrollView.js +7 -1
  32. package/src/mappings/ScrollView.ts +9 -0
  33. package/src/mappings/TextField.js +2 -2
  34. package/src/mappings/TextField.ts +2 -2
@@ -156,7 +156,7 @@ const SEED_DATA = [{
156
156
  category: _types.COMPONENT_TYPES.input,
157
157
  layout: null,
158
158
  triggers: [_types.Triggers.OnDateChange],
159
- StylesPanelSections: [_types.StylesPanelSections.Typography, _types.StylesPanelSections.Background, _types.StylesPanelSections.Size, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position],
159
+ stylesPanelSections: [_types.StylesPanelSections.Typography, _types.StylesPanelSections.Background, _types.StylesPanelSections.Size, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position],
160
160
  props: {
161
161
  ...SEED_DATA_PROPS,
162
162
  type: {
@@ -30,10 +30,6 @@ const SEED_DATA = [{
30
30
  step: 1,
31
31
  precision: 0
32
32
  }),
33
- optimizeItemArrangement: (0, _types.createStaticBoolProp)({
34
- label: "Optimize Item Arrangement",
35
- description: "If enabled, MasonryFlashList will try to reduce difference in column height by modifying item order. If true, specifying overrideItemLayout is required. Default value is false."
36
- }),
37
33
  initialNumToRender: (0, _types.createStaticNumberProp)({
38
34
  label: "Initial Num To Render",
39
35
  description: "How many items to render in the initial batch",
@@ -43,6 +39,20 @@ const SEED_DATA = [{
43
39
  label: "End Reached Threshold",
44
40
  description: "How far from the end (in units of visible length of the list) the bottom edge of the list must be from the end of the content to trigger the onEndReached callback. Thus a value of 0.5 will trigger onEndReached when the end of the content is within half the visible length of the list.",
45
41
  defaultValue: 0.5
42
+ }),
43
+ refreshColor: (0, _types.createColorProp)({
44
+ label: "Refreshing Color",
45
+ description: "Color of the refresh indicator"
46
+ }),
47
+ showsHorizontalScrollIndicator: (0, _types.createStaticBoolProp)({
48
+ label: "Show Horizontal Scroll Indicator",
49
+ description: "When true, shows a horizontal scroll indicator. The default value is false.",
50
+ defaultValue: false
51
+ }),
52
+ showsVerticalScrollIndicator: (0, _types.createStaticBoolProp)({
53
+ label: "Show Vertical Scroll Indicator",
54
+ description: "When true, shows a vertical scroll indicator. The default value is true.",
55
+ defaultValue: true
46
56
  })
47
57
  }
48
58
  }, {
@@ -87,6 +97,20 @@ const SEED_DATA = [{
87
97
  label: "End Reached Threshold",
88
98
  description: "How far from the end (in units of visible length of the list) the bottom edge of the list must be from the end of the content to trigger the onEndReached callback. Thus a value of 0.5 will trigger onEndReached when the end of the content is within half the visible length of the list.",
89
99
  defaultValue: 0.5
100
+ }),
101
+ refreshColor: (0, _types.createColorProp)({
102
+ label: "Refreshing Color",
103
+ description: "Color of the refresh indicator"
104
+ }),
105
+ showsHorizontalScrollIndicator: (0, _types.createStaticBoolProp)({
106
+ label: "Show Horizontal Scroll Indicator",
107
+ description: "When true, shows a horizontal scroll indicator. The default value is true.",
108
+ defaultValue: false
109
+ }),
110
+ showsVerticalScrollIndicator: (0, _types.createStaticBoolProp)({
111
+ label: "Show Vertical Scroll Indicator",
112
+ description: "When true, shows a vertical scroll indicator. The default value is true.",
113
+ defaultValue: true
90
114
  })
91
115
  }
92
116
  }];
@@ -38,6 +38,20 @@ const SEED_DATA = {
38
38
  label: "End Reached Threshold",
39
39
  description: "How far from the end (in units of visible length of the list) the bottom edge of the list must be from the end of the content to trigger the onEndReached callback. Thus a value of 0.5 will trigger onEndReached when the end of the content is within half the visible length of the list.",
40
40
  defaultValue: 0.5
41
+ }),
42
+ refreshColor: (0, _types.createColorProp)({
43
+ label: "Refreshing Color",
44
+ description: "Color of the refresh indicator"
45
+ }),
46
+ showsHorizontalScrollIndicator: (0, _types.createStaticBoolProp)({
47
+ label: "Show Horizontal Scroll Indicator",
48
+ description: "When true, shows a horizontal scroll indicator. The default value is true.",
49
+ defaultValue: false
50
+ }),
51
+ showsVerticalScrollIndicator: (0, _types.createStaticBoolProp)({
52
+ label: "Show Vertical Scroll Indicator",
53
+ description: "When true, shows a vertical scroll indicator. The default value is true.",
54
+ defaultValue: true
41
55
  })
42
56
  }
43
57
  };
@@ -12,7 +12,9 @@ const SEED_DATA = {
12
12
  category: _types.COMPONENT_TYPES.view,
13
13
  stylesPanelSections: _types.CONTAINER_COMPONENT_STYLES_SECTIONS,
14
14
  layout: {},
15
+ triggers: [_types.Triggers.OnRefresh],
15
16
  props: {
17
+ onRefresh: (0, _types.createActionProp)(),
16
18
  horizontal: (0, _types.createStaticBoolProp)({
17
19
  label: "Horizontal",
18
20
  description: "Render your list horizontally",
@@ -32,6 +34,10 @@ const SEED_DATA = {
32
34
  label: "Bounce",
33
35
  description: "When true, the scroll view bounces when it reaches the end of the content if the content is larger then the scroll view along the axis of the scroll direction.",
34
36
  defaultValue: true
37
+ }),
38
+ refreshColor: (0, _types.createColorProp)({
39
+ label: "Refreshing Color",
40
+ description: "Color of the refresh indicator"
35
41
  })
36
42
  }
37
43
  };
@@ -283,7 +283,7 @@ const SEED_DATA = [{
283
283
  ...SEED_DATA_PROPS,
284
284
  type: {
285
285
  label: "Appearance",
286
- description: "Type of Datepicker",
286
+ description: "Type of Field",
287
287
  formType: _types.FORM_TYPES.flatArray,
288
288
  propType: _types.PROP_TYPES.STRING,
289
289
  defaultValue: "solid",
@@ -325,7 +325,7 @@ const SEED_DATA = [{
325
325
  ...SEED_DATA_PROPS,
326
326
  type: {
327
327
  label: "Appearance",
328
- description: "Type of Datepicker",
328
+ description: "Type of Field",
329
329
  formType: _types.FORM_TYPES.flatArray,
330
330
  propType: _types.PROP_TYPES.STRING,
331
331
  defaultValue: "solid",
@@ -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 React from "react";
2
3
  import { View, Text } from "react-native";
3
4
  import Image from "./Image";
@@ -41,12 +42,11 @@ const CardBlock = _ref => {
41
42
  const rightDescriptionStyles = [typography.subtitle2, {
42
43
  color: colors.light
43
44
  }];
44
- return /*#__PURE__*/React.createElement(Card, {
45
+ return /*#__PURE__*/React.createElement(Card, _extends({
45
46
  style: style,
46
47
  onPress: onPress,
47
- numColumns: numColumns,
48
- ...rest
49
- }, /*#__PURE__*/React.createElement(View, {
48
+ numColumns: numColumns
49
+ }, rest), /*#__PURE__*/React.createElement(View, {
50
50
  style: {
51
51
  backgroundColor: colors.background
52
52
  }
@@ -95,14 +95,4 @@ const CardBlock = _ref => {
95
95
  style: rightDescriptionStyles
96
96
  }, rightDescription) : null) : null));
97
97
  };
98
- export default withTheme(CardBlock);PURE__*/React.createElement(Text, {
99
- numberOfLines: 1,
100
- style: [typography.body2, {
101
- color: colors.medium
102
- }]
103
- }, leftDescription), rightDescription ? /*#__PURE__*/React.createElement(Text, {
104
- numberOfLines: 1,
105
- style: rightDescriptionStyles
106
- }, rightDescription) : null) : null));
107
- };
108
98
  export default withTheme(CardBlock);
@@ -1,24 +1,27 @@
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
  import React from "react";
2
5
  import { View } from "react-native";
3
6
  import { Svg, Path, G } from "react-native-svg";
4
7
  class CircularProgress extends React.Component {
5
8
  constructor() {
6
9
  super(...arguments);
7
- this.polarToCartesian = (centerX, centerY, radius, angleInDegrees) => {
10
+ _defineProperty(this, "polarToCartesian", (centerX, centerY, radius, angleInDegrees) => {
8
11
  var angleInRadians = (angleInDegrees - 90) * Math.PI / 180.0;
9
12
  return {
10
13
  x: centerX + radius * Math.cos(angleInRadians),
11
14
  y: centerY + radius * Math.sin(angleInRadians)
12
15
  };
13
- };
14
- this.circlePath = (x, y, radius, startAngle, endAngle) => {
16
+ });
17
+ _defineProperty(this, "circlePath", (x, y, radius, startAngle, endAngle) => {
15
18
  var start = this.polarToCartesian(x, y, radius, endAngle * 0.9999);
16
19
  var end = this.polarToCartesian(x, y, radius, startAngle);
17
20
  var largeArcFlag = endAngle - startAngle <= 180 ? "0" : "1";
18
21
  var d = ["M", start.x, start.y, "A", radius, radius, 0, largeArcFlag, 0, end.x, end.y];
19
22
  return d.join(" ");
20
- };
21
- this.clampFill = fill => Math.min(100, Math.max(0, fill));
23
+ });
24
+ _defineProperty(this, "clampFill", fill => Math.min(100, Math.max(0, fill)));
22
25
  }
23
26
  render() {
24
27
  const {
@@ -98,27 +101,4 @@ class CircularProgress extends React.Component {
98
101
  }, children(fill)));
99
102
  }
100
103
  }
101
- export default CircularProgress;eElement(G, {
102
- rotation: rotation,
103
- originX: (size + padding) / 2,
104
- originY: (size + padding) / 2
105
- }, backgroundColor && /*#__PURE__*/React.createElement(Path, {
106
- d: backgroundPath,
107
- stroke: backgroundColor,
108
- strokeWidth: backgroundWidth || width,
109
- strokeLinecap: lineCap,
110
- strokeDasharray: strokeDasharrayBackground,
111
- fill: "transparent"
112
- }), fill > 0 && /*#__PURE__*/React.createElement(Path, {
113
- d: circlePathItem,
114
- stroke: tintColor,
115
- strokeWidth: width,
116
- strokeLinecap: lineCap,
117
- strokeDasharray: strokeDasharrayTint,
118
- fill: "transparent"
119
- }), cap)), children && /*#__PURE__*/React.createElement(View, {
120
- style: localChildrenContainerStyle
121
- }, children(fill)));
122
- }
123
- }
124
104
  export default CircularProgress;
@@ -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
  /* README: Internal Image component used for stuff like Card. DO NOT EXPORT! */
2
3
  import React from "react";
3
4
  import { Image as NativeImage, StyleSheet } from "react-native";
@@ -55,24 +56,7 @@ const Image = _ref2 => {
55
56
  height,
56
57
  aspectRatio
57
58
  }]
58
- }, /*#__PURE__*/React.createElement(NativeImage, {
59
- ...props,
60
- source: imageSource,
61
- resizeMode: resizeMode,
62
- style: [style, {
63
- height: "100%",
64
- width: "100%"
65
- }]
66
- }));
67
- }
68
- return /*#__PURE__*/React.createElement(NativeImage, {
69
- ...props,
70
- source: source,
71
- resizeMode: resizeMode,
72
- style: style
73
- });
74
- };
75
- export default Image;eImage, _extends({}, props, {
59
+ }, /*#__PURE__*/React.createElement(NativeImage, _extends({}, props, {
76
60
  source: imageSource,
77
61
  resizeMode: resizeMode,
78
62
  style: [style, {
@@ -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 } from "react-native";
3
4
  import omit from "lodash.omit";
@@ -7,6 +8,7 @@ import { extractStyles } from "../../utilities";
7
8
  import TextField from "../TextField";
8
9
  import Touchable from "../Touchable";
9
10
  const Picker = _ref => {
11
+ var _options$find$label, _options$find;
10
12
  let {
11
13
  style,
12
14
  options,
@@ -16,7 +18,6 @@ const Picker = _ref => {
16
18
  onValueChange: onValueChangeOverride = () => {},
17
19
  ...props
18
20
  } = _ref;
19
- var _a, _b;
20
21
  const {
21
22
  viewStyles: {
22
23
  borderRadius,
@@ -61,7 +62,7 @@ const Picker = _ref => {
61
62
  };
62
63
 
63
64
  const stylesWithoutMargin = style && omit(StyleSheet.flatten(style), ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft"]);
64
- const selectedLabel = selectedValue && ((_b = (_a = options.find(o => o.value === selectedValue)) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : selectedValue);
65
+ const selectedLabel = selectedValue && ((_options$find$label = (_options$find = options.find(o => o.value === selectedValue)) === null || _options$find === void 0 ? void 0 : _options$find.label) !== null && _options$find$label !== void 0 ? _options$find$label : selectedValue);
65
66
  return /*#__PURE__*/React.createElement(Touchable, {
66
67
  disabled: disabled,
67
68
  onPress: toggleFocus,
@@ -83,25 +84,6 @@ const Picker = _ref => {
83
84
  label: o.label,
84
85
  value: o.value,
85
86
  key: o.value
86
- }))), /*#__PURE__*/React.createElement(View, {
87
- pointerEvents: "none"
88
- }, /*#__PURE__*/React.createElement(TextField, {
89
- ...props,
90
- value: selectedLabel,
91
- placeholder: placeholder,
92
- // @ts-ignore
93
- ref: textField,
94
- disabled: disabled,
95
- // @ts-expect-error
96
- style: stylesWithoutMargin
97
- }))));
98
- };
99
- const styles = StyleSheet.create({
100
- container: {
101
- alignSelf: "stretch"
102
- }
103
- });
104
- export default withTheme(Picker);y: o.value
105
87
  }))), /*#__PURE__*/React.createElement(View, {
106
88
  pointerEvents: "none"
107
89
  }, /*#__PURE__*/React.createElement(TextField, _extends({}, props, {
@@ -1,5 +1,5 @@
1
1
  import { createContext, useContext } from "react";
2
- export var Direction;
2
+ export let Direction;
3
3
  (function (Direction) {
4
4
  Direction["Horizontal"] = "horizontal";
5
5
  Direction["Vertical"] = "vertical";
@@ -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
  }
@@ -150,7 +150,7 @@ export const SEED_DATA = [{
150
150
  category: COMPONENT_TYPES.input,
151
151
  layout: null,
152
152
  triggers: [Triggers.OnDateChange],
153
- StylesPanelSections: [StylesPanelSections.Typography, StylesPanelSections.Background, StylesPanelSections.Size, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Position],
153
+ stylesPanelSections: [StylesPanelSections.Typography, StylesPanelSections.Background, StylesPanelSections.Size, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Position],
154
154
  props: {
155
155
  ...SEED_DATA_PROPS,
156
156
  type: {
@@ -1,4 +1,4 @@
1
- import { COMPONENT_TYPES, createNumColumnsType, createStaticBoolProp, createNumberProp, CONTAINER_COMPONENT_STYLES_SECTIONS, GROUPS, Triggers, createActionProp, createStaticNumberProp } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createNumColumnsType, createStaticBoolProp, createNumberProp, CONTAINER_COMPONENT_STYLES_SECTIONS, GROUPS, Triggers, createActionProp, createStaticNumberProp, createColorProp } from "@draftbit/types";
2
2
  export const SEED_DATA = [{
3
3
  name: "Masonry List",
4
4
  tag: "MasonryFlashList",
@@ -24,10 +24,6 @@ export const SEED_DATA = [{
24
24
  step: 1,
25
25
  precision: 0
26
26
  }),
27
- optimizeItemArrangement: createStaticBoolProp({
28
- label: "Optimize Item Arrangement",
29
- description: "If enabled, MasonryFlashList will try to reduce difference in column height by modifying item order. If true, specifying overrideItemLayout is required. Default value is false."
30
- }),
31
27
  initialNumToRender: createStaticNumberProp({
32
28
  label: "Initial Num To Render",
33
29
  description: "How many items to render in the initial batch",
@@ -37,6 +33,20 @@ export const SEED_DATA = [{
37
33
  label: "End Reached Threshold",
38
34
  description: "How far from the end (in units of visible length of the list) the bottom edge of the list must be from the end of the content to trigger the onEndReached callback. Thus a value of 0.5 will trigger onEndReached when the end of the content is within half the visible length of the list.",
39
35
  defaultValue: 0.5
36
+ }),
37
+ refreshColor: createColorProp({
38
+ label: "Refreshing Color",
39
+ description: "Color of the refresh indicator"
40
+ }),
41
+ showsHorizontalScrollIndicator: createStaticBoolProp({
42
+ label: "Show Horizontal Scroll Indicator",
43
+ description: "When true, shows a horizontal scroll indicator. The default value is false.",
44
+ defaultValue: false
45
+ }),
46
+ showsVerticalScrollIndicator: createStaticBoolProp({
47
+ label: "Show Vertical Scroll Indicator",
48
+ description: "When true, shows a vertical scroll indicator. The default value is true.",
49
+ defaultValue: true
40
50
  })
41
51
  }
42
52
  }, {
@@ -81,6 +91,20 @@ export const SEED_DATA = [{
81
91
  label: "End Reached Threshold",
82
92
  description: "How far from the end (in units of visible length of the list) the bottom edge of the list must be from the end of the content to trigger the onEndReached callback. Thus a value of 0.5 will trigger onEndReached when the end of the content is within half the visible length of the list.",
83
93
  defaultValue: 0.5
94
+ }),
95
+ refreshColor: createColorProp({
96
+ label: "Refreshing Color",
97
+ description: "Color of the refresh indicator"
98
+ }),
99
+ showsHorizontalScrollIndicator: createStaticBoolProp({
100
+ label: "Show Horizontal Scroll Indicator",
101
+ description: "When true, shows a horizontal scroll indicator. The default value is true.",
102
+ defaultValue: false
103
+ }),
104
+ showsVerticalScrollIndicator: createStaticBoolProp({
105
+ label: "Show Vertical Scroll Indicator",
106
+ description: "When true, shows a vertical scroll indicator. The default value is true.",
107
+ defaultValue: true
84
108
  })
85
109
  }
86
110
  }];
@@ -1,4 +1,4 @@
1
- import { COMPONENT_TYPES, createNumColumnsType, createStaticBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, Triggers, createActionProp, createStaticNumberProp } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createNumColumnsType, createStaticBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, Triggers, createActionProp, createStaticNumberProp, createColorProp } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "List",
4
4
  tag: "FlatList",
@@ -32,6 +32,20 @@ export const SEED_DATA = {
32
32
  label: "End Reached Threshold",
33
33
  description: "How far from the end (in units of visible length of the list) the bottom edge of the list must be from the end of the content to trigger the onEndReached callback. Thus a value of 0.5 will trigger onEndReached when the end of the content is within half the visible length of the list.",
34
34
  defaultValue: 0.5
35
+ }),
36
+ refreshColor: createColorProp({
37
+ label: "Refreshing Color",
38
+ description: "Color of the refresh indicator"
39
+ }),
40
+ showsHorizontalScrollIndicator: createStaticBoolProp({
41
+ label: "Show Horizontal Scroll Indicator",
42
+ description: "When true, shows a horizontal scroll indicator. The default value is true.",
43
+ defaultValue: false
44
+ }),
45
+ showsVerticalScrollIndicator: createStaticBoolProp({
46
+ label: "Show Vertical Scroll Indicator",
47
+ description: "When true, shows a vertical scroll indicator. The default value is true.",
48
+ defaultValue: true
35
49
  })
36
50
  }
37
51
  };
@@ -1,4 +1,4 @@
1
- import { COMPONENT_TYPES, createStaticBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createStaticBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, Triggers, createActionProp, createColorProp } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Scroll View",
4
4
  tag: "ScrollView",
@@ -6,7 +6,9 @@ export const SEED_DATA = {
6
6
  category: COMPONENT_TYPES.view,
7
7
  stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
8
8
  layout: {},
9
+ triggers: [Triggers.OnRefresh],
9
10
  props: {
11
+ onRefresh: createActionProp(),
10
12
  horizontal: createStaticBoolProp({
11
13
  label: "Horizontal",
12
14
  description: "Render your list horizontally",
@@ -26,6 +28,10 @@ export const SEED_DATA = {
26
28
  label: "Bounce",
27
29
  description: "When true, the scroll view bounces when it reaches the end of the content if the content is larger then the scroll view along the axis of the scroll direction.",
28
30
  defaultValue: true
31
+ }),
32
+ refreshColor: createColorProp({
33
+ label: "Refreshing Color",
34
+ description: "Color of the refresh indicator"
29
35
  })
30
36
  }
31
37
  };
@@ -277,7 +277,7 @@ export const SEED_DATA = [{
277
277
  ...SEED_DATA_PROPS,
278
278
  type: {
279
279
  label: "Appearance",
280
- description: "Type of Datepicker",
280
+ description: "Type of Field",
281
281
  formType: FORM_TYPES.flatArray,
282
282
  propType: PROP_TYPES.STRING,
283
283
  defaultValue: "solid",
@@ -319,7 +319,7 @@ export const SEED_DATA = [{
319
319
  ...SEED_DATA_PROPS,
320
320
  type: {
321
321
  label: "Appearance",
322
- description: "Type of Datepicker",
322
+ description: "Type of Field",
323
323
  formType: FORM_TYPES.flatArray,
324
324
  propType: PROP_TYPES.STRING,
325
325
  defaultValue: "solid",
@@ -5,7 +5,7 @@ export declare const SEED_DATA: {
5
5
  category: string;
6
6
  layout: null;
7
7
  triggers: string[];
8
- StylesPanelSections: string[];
8
+ stylesPanelSections: string[];
9
9
  props: {
10
10
  type: {
11
11
  label: string;
@@ -51,17 +51,18 @@ export declare const SEED_DATA: ({
51
51
  required: boolean;
52
52
  step: number;
53
53
  };
54
- optimizeItemArrangement: {
54
+ initialNumToRender: {
55
55
  label: string;
56
56
  description: string;
57
57
  formType: string;
58
58
  propType: string;
59
- defaultValue: boolean;
59
+ group: string;
60
+ defaultValue: null;
60
61
  editable: boolean;
61
62
  required: boolean;
62
- group: string;
63
+ step: number;
63
64
  };
64
- initialNumToRender: {
65
+ onEndReachedThreshold: {
65
66
  label: string;
66
67
  description: string;
67
68
  formType: string;
@@ -72,16 +73,35 @@ export declare const SEED_DATA: ({
72
73
  required: boolean;
73
74
  step: number;
74
75
  };
75
- onEndReachedThreshold: {
76
+ refreshColor: {
77
+ group: string;
76
78
  label: string;
77
79
  description: string;
80
+ editable: boolean;
81
+ required: boolean;
82
+ defaultValue: null;
78
83
  formType: string;
79
84
  propType: string;
85
+ };
86
+ showsHorizontalScrollIndicator: {
87
+ label: string;
88
+ description: string;
89
+ formType: string;
90
+ propType: string;
91
+ defaultValue: boolean;
92
+ editable: boolean;
93
+ required: boolean;
80
94
  group: string;
81
- defaultValue: null;
95
+ };
96
+ showsVerticalScrollIndicator: {
97
+ label: string;
98
+ description: string;
99
+ formType: string;
100
+ propType: string;
101
+ defaultValue: boolean;
82
102
  editable: boolean;
83
103
  required: boolean;
84
- step: number;
104
+ group: string;
85
105
  };
86
106
  horizontal?: undefined;
87
107
  inverted?: undefined;
@@ -181,7 +201,36 @@ export declare const SEED_DATA: ({
181
201
  required: boolean;
182
202
  step: number;
183
203
  };
184
- optimizeItemArrangement?: undefined;
204
+ refreshColor: {
205
+ group: string;
206
+ label: string;
207
+ description: string;
208
+ editable: boolean;
209
+ required: boolean;
210
+ defaultValue: null;
211
+ formType: string;
212
+ propType: string;
213
+ };
214
+ showsHorizontalScrollIndicator: {
215
+ label: string;
216
+ description: string;
217
+ formType: string;
218
+ propType: string;
219
+ defaultValue: boolean;
220
+ editable: boolean;
221
+ required: boolean;
222
+ group: string;
223
+ };
224
+ showsVerticalScrollIndicator: {
225
+ label: string;
226
+ description: string;
227
+ formType: string;
228
+ propType: string;
229
+ defaultValue: boolean;
230
+ editable: boolean;
231
+ required: boolean;
232
+ group: string;
233
+ };
185
234
  };
186
235
  })[];
187
236
  //# sourceMappingURL=FlashList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FlashList.d.ts","sourceRoot":"","sources":["../../../../src/mappings/FlashList.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0FrB,CAAC"}
1
+ {"version":3,"file":"FlashList.d.ts","sourceRoot":"","sources":["../../../../src/mappings/FlashList.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqHrB,CAAC"}
@@ -81,6 +81,36 @@ export declare const SEED_DATA: {
81
81
  required: boolean;
82
82
  step: number;
83
83
  };
84
+ refreshColor: {
85
+ group: string;
86
+ label: string;
87
+ description: string;
88
+ editable: boolean;
89
+ required: boolean;
90
+ defaultValue: null;
91
+ formType: string;
92
+ propType: string;
93
+ };
94
+ showsHorizontalScrollIndicator: {
95
+ label: string;
96
+ description: string;
97
+ formType: string;
98
+ propType: string;
99
+ defaultValue: boolean;
100
+ editable: boolean;
101
+ required: boolean;
102
+ group: string;
103
+ };
104
+ showsVerticalScrollIndicator: {
105
+ label: string;
106
+ description: string;
107
+ formType: string;
108
+ propType: string;
109
+ defaultValue: boolean;
110
+ editable: boolean;
111
+ required: boolean;
112
+ group: string;
113
+ };
84
114
  };
85
115
  };
86
116
  //# sourceMappingURL=FlatList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FlatList.d.ts","sourceRoot":"","sources":["../../../../src/mappings/FlatList.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCrB,CAAC"}
1
+ {"version":3,"file":"FlatList.d.ts","sourceRoot":"","sources":["../../../../src/mappings/FlatList.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDrB,CAAC"}
@@ -5,7 +5,18 @@ export declare const SEED_DATA: {
5
5
  category: string;
6
6
  stylesPanelSections: string[];
7
7
  layout: {};
8
+ triggers: string[];
8
9
  props: {
10
+ onRefresh: {
11
+ label: string;
12
+ description: string;
13
+ editable: boolean;
14
+ required: boolean;
15
+ formType: string;
16
+ propType: string;
17
+ defaultValue: null;
18
+ group: string;
19
+ };
9
20
  horizontal: {
10
21
  label: string;
11
22
  description: string;
@@ -46,6 +57,16 @@ export declare const SEED_DATA: {
46
57
  required: boolean;
47
58
  group: string;
48
59
  };
60
+ refreshColor: {
61
+ group: string;
62
+ label: string;
63
+ description: string;
64
+ editable: boolean;
65
+ required: boolean;
66
+ defaultValue: null;
67
+ formType: string;
68
+ propType: string;
69
+ };
49
70
  };
50
71
  };
51
72
  //# sourceMappingURL=ScrollView.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScrollView.d.ts","sourceRoot":"","sources":["../../../../src/mappings/ScrollView.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCrB,CAAC"}
1
+ {"version":3,"file":"ScrollView.d.ts","sourceRoot":"","sources":["../../../../src/mappings/ScrollView.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCrB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@draftbit/core",
3
- "version": "47.1.1-8b0b37.2+8b0b37c",
3
+ "version": "47.1.1-b098d3.2+b098d38",
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": "^47.1.1-8b0b37.2+8b0b37c",
44
+ "@draftbit/types": "^47.1.1-b098d3.2+b098d38",
45
45
  "@material-ui/core": "^4.11.0",
46
46
  "@material-ui/pickers": "^3.2.10",
47
47
  "@react-native-community/slider": "4.2.4",
@@ -91,5 +91,5 @@
91
91
  ]
92
92
  ]
93
93
  },
94
- "gitHead": "8b0b37c98ab2f221cb58abe7f1af4db21f506711"
94
+ "gitHead": "b098d382bff80e485e1e9abd09990aae21718bd1"
95
95
  }
@@ -151,7 +151,7 @@ export const SEED_DATA = [
151
151
  category: COMPONENT_TYPES.input,
152
152
  layout: null,
153
153
  triggers: [Triggers.OnDateChange],
154
- StylesPanelSections: [
154
+ stylesPanelSections: [
155
155
  StylesPanelSections.Typography,
156
156
  StylesPanelSections.Background,
157
157
  StylesPanelSections.Size,
@@ -165,7 +165,7 @@ export const SEED_DATA = [
165
165
  category: COMPONENT_TYPES.input,
166
166
  layout: null,
167
167
  triggers: [Triggers.OnDateChange],
168
- StylesPanelSections: [
168
+ stylesPanelSections: [
169
169
  StylesPanelSections.Typography,
170
170
  StylesPanelSections.Background,
171
171
  StylesPanelSections.Size,
@@ -1,4 +1,4 @@
1
- import { COMPONENT_TYPES, createNumColumnsType, createStaticBoolProp, createNumberProp, CONTAINER_COMPONENT_STYLES_SECTIONS, GROUPS, Triggers, createActionProp, createStaticNumberProp, } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createNumColumnsType, createStaticBoolProp, createNumberProp, CONTAINER_COMPONENT_STYLES_SECTIONS, GROUPS, Triggers, createActionProp, createStaticNumberProp, createColorProp, } from "@draftbit/types";
2
2
  export const SEED_DATA = [
3
3
  {
4
4
  name: "Masonry List",
@@ -25,10 +25,6 @@ export const SEED_DATA = [
25
25
  step: 1,
26
26
  precision: 0,
27
27
  }),
28
- optimizeItemArrangement: createStaticBoolProp({
29
- label: "Optimize Item Arrangement",
30
- description: "If enabled, MasonryFlashList will try to reduce difference in column height by modifying item order. If true, specifying overrideItemLayout is required. Default value is false.",
31
- }),
32
28
  initialNumToRender: createStaticNumberProp({
33
29
  label: "Initial Num To Render",
34
30
  description: "How many items to render in the initial batch",
@@ -39,6 +35,20 @@ export const SEED_DATA = [
39
35
  description: "How far from the end (in units of visible length of the list) the bottom edge of the list must be from the end of the content to trigger the onEndReached callback. Thus a value of 0.5 will trigger onEndReached when the end of the content is within half the visible length of the list.",
40
36
  defaultValue: 0.5,
41
37
  }),
38
+ refreshColor: createColorProp({
39
+ label: "Refreshing Color",
40
+ description: "Color of the refresh indicator",
41
+ }),
42
+ showsHorizontalScrollIndicator: createStaticBoolProp({
43
+ label: "Show Horizontal Scroll Indicator",
44
+ description: "When true, shows a horizontal scroll indicator. The default value is false.",
45
+ defaultValue: false,
46
+ }),
47
+ showsVerticalScrollIndicator: createStaticBoolProp({
48
+ label: "Show Vertical Scroll Indicator",
49
+ description: "When true, shows a vertical scroll indicator. The default value is true.",
50
+ defaultValue: true,
51
+ }),
42
52
  },
43
53
  },
44
54
  {
@@ -84,6 +94,20 @@ export const SEED_DATA = [
84
94
  description: "How far from the end (in units of visible length of the list) the bottom edge of the list must be from the end of the content to trigger the onEndReached callback. Thus a value of 0.5 will trigger onEndReached when the end of the content is within half the visible length of the list.",
85
95
  defaultValue: 0.5,
86
96
  }),
97
+ refreshColor: createColorProp({
98
+ label: "Refreshing Color",
99
+ description: "Color of the refresh indicator",
100
+ }),
101
+ showsHorizontalScrollIndicator: createStaticBoolProp({
102
+ label: "Show Horizontal Scroll Indicator",
103
+ description: "When true, shows a horizontal scroll indicator. The default value is true.",
104
+ defaultValue: false,
105
+ }),
106
+ showsVerticalScrollIndicator: createStaticBoolProp({
107
+ label: "Show Vertical Scroll Indicator",
108
+ description: "When true, shows a vertical scroll indicator. The default value is true.",
109
+ defaultValue: true,
110
+ }),
87
111
  },
88
112
  },
89
113
  ];
@@ -8,6 +8,7 @@ import {
8
8
  Triggers,
9
9
  createActionProp,
10
10
  createStaticNumberProp,
11
+ createColorProp,
11
12
  } from "@draftbit/types";
12
13
 
13
14
  export const SEED_DATA = [
@@ -36,11 +37,6 @@ export const SEED_DATA = [
36
37
  step: 1,
37
38
  precision: 0,
38
39
  }),
39
- optimizeItemArrangement: createStaticBoolProp({
40
- label: "Optimize Item Arrangement",
41
- description:
42
- "If enabled, MasonryFlashList will try to reduce difference in column height by modifying item order. If true, specifying overrideItemLayout is required. Default value is false.",
43
- }),
44
40
  initialNumToRender: createStaticNumberProp({
45
41
  label: "Initial Num To Render",
46
42
  description: "How many items to render in the initial batch",
@@ -52,6 +48,22 @@ export const SEED_DATA = [
52
48
  "How far from the end (in units of visible length of the list) the bottom edge of the list must be from the end of the content to trigger the onEndReached callback. Thus a value of 0.5 will trigger onEndReached when the end of the content is within half the visible length of the list.",
53
49
  defaultValue: 0.5,
54
50
  }),
51
+ refreshColor: createColorProp({
52
+ label: "Refreshing Color",
53
+ description: "Color of the refresh indicator",
54
+ }),
55
+ showsHorizontalScrollIndicator: createStaticBoolProp({
56
+ label: "Show Horizontal Scroll Indicator",
57
+ description:
58
+ "When true, shows a horizontal scroll indicator. The default value is false.",
59
+ defaultValue: false,
60
+ }),
61
+ showsVerticalScrollIndicator: createStaticBoolProp({
62
+ label: "Show Vertical Scroll Indicator",
63
+ description:
64
+ "When true, shows a vertical scroll indicator. The default value is true.",
65
+ defaultValue: true,
66
+ }),
55
67
  },
56
68
  },
57
69
  {
@@ -98,6 +110,22 @@ export const SEED_DATA = [
98
110
  "How far from the end (in units of visible length of the list) the bottom edge of the list must be from the end of the content to trigger the onEndReached callback. Thus a value of 0.5 will trigger onEndReached when the end of the content is within half the visible length of the list.",
99
111
  defaultValue: 0.5,
100
112
  }),
113
+ refreshColor: createColorProp({
114
+ label: "Refreshing Color",
115
+ description: "Color of the refresh indicator",
116
+ }),
117
+ showsHorizontalScrollIndicator: createStaticBoolProp({
118
+ label: "Show Horizontal Scroll Indicator",
119
+ description:
120
+ "When true, shows a horizontal scroll indicator. The default value is true.",
121
+ defaultValue: false,
122
+ }),
123
+ showsVerticalScrollIndicator: createStaticBoolProp({
124
+ label: "Show Vertical Scroll Indicator",
125
+ description:
126
+ "When true, shows a vertical scroll indicator. The default value is true.",
127
+ defaultValue: true,
128
+ }),
101
129
  },
102
130
  },
103
131
  ];
@@ -1,4 +1,4 @@
1
- import { COMPONENT_TYPES, createNumColumnsType, createStaticBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, Triggers, createActionProp, createStaticNumberProp, } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createNumColumnsType, createStaticBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, Triggers, createActionProp, createStaticNumberProp, createColorProp, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "List",
4
4
  tag: "FlatList",
@@ -33,5 +33,19 @@ export const SEED_DATA = {
33
33
  description: "How far from the end (in units of visible length of the list) the bottom edge of the list must be from the end of the content to trigger the onEndReached callback. Thus a value of 0.5 will trigger onEndReached when the end of the content is within half the visible length of the list.",
34
34
  defaultValue: 0.5,
35
35
  }),
36
+ refreshColor: createColorProp({
37
+ label: "Refreshing Color",
38
+ description: "Color of the refresh indicator",
39
+ }),
40
+ showsHorizontalScrollIndicator: createStaticBoolProp({
41
+ label: "Show Horizontal Scroll Indicator",
42
+ description: "When true, shows a horizontal scroll indicator. The default value is true.",
43
+ defaultValue: false,
44
+ }),
45
+ showsVerticalScrollIndicator: createStaticBoolProp({
46
+ label: "Show Vertical Scroll Indicator",
47
+ description: "When true, shows a vertical scroll indicator. The default value is true.",
48
+ defaultValue: true,
49
+ }),
36
50
  },
37
51
  };
@@ -6,6 +6,7 @@ import {
6
6
  Triggers,
7
7
  createActionProp,
8
8
  createStaticNumberProp,
9
+ createColorProp,
9
10
  } from "@draftbit/types";
10
11
 
11
12
  export const SEED_DATA = {
@@ -43,5 +44,21 @@ export const SEED_DATA = {
43
44
  "How far from the end (in units of visible length of the list) the bottom edge of the list must be from the end of the content to trigger the onEndReached callback. Thus a value of 0.5 will trigger onEndReached when the end of the content is within half the visible length of the list.",
44
45
  defaultValue: 0.5,
45
46
  }),
47
+ refreshColor: createColorProp({
48
+ label: "Refreshing Color",
49
+ description: "Color of the refresh indicator",
50
+ }),
51
+ showsHorizontalScrollIndicator: createStaticBoolProp({
52
+ label: "Show Horizontal Scroll Indicator",
53
+ description:
54
+ "When true, shows a horizontal scroll indicator. The default value is true.",
55
+ defaultValue: false,
56
+ }),
57
+ showsVerticalScrollIndicator: createStaticBoolProp({
58
+ label: "Show Vertical Scroll Indicator",
59
+ description:
60
+ "When true, shows a vertical scroll indicator. The default value is true.",
61
+ defaultValue: true,
62
+ }),
46
63
  },
47
64
  };
@@ -1,4 +1,4 @@
1
- import { COMPONENT_TYPES, createStaticBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createStaticBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, Triggers, createActionProp, createColorProp, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Scroll View",
4
4
  tag: "ScrollView",
@@ -6,7 +6,9 @@ export const SEED_DATA = {
6
6
  category: COMPONENT_TYPES.view,
7
7
  stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
8
8
  layout: {},
9
+ triggers: [Triggers.OnRefresh],
9
10
  props: {
11
+ onRefresh: createActionProp(),
10
12
  horizontal: createStaticBoolProp({
11
13
  label: "Horizontal",
12
14
  description: "Render your list horizontally",
@@ -27,5 +29,9 @@ export const SEED_DATA = {
27
29
  description: "When true, the scroll view bounces when it reaches the end of the content if the content is larger then the scroll view along the axis of the scroll direction.",
28
30
  defaultValue: true,
29
31
  }),
32
+ refreshColor: createColorProp({
33
+ label: "Refreshing Color",
34
+ description: "Color of the refresh indicator",
35
+ }),
30
36
  },
31
37
  };
@@ -2,6 +2,9 @@ import {
2
2
  COMPONENT_TYPES,
3
3
  createStaticBoolProp,
4
4
  CONTAINER_COMPONENT_STYLES_SECTIONS,
5
+ Triggers,
6
+ createActionProp,
7
+ createColorProp,
5
8
  } from "@draftbit/types";
6
9
 
7
10
  export const SEED_DATA = {
@@ -11,7 +14,9 @@ export const SEED_DATA = {
11
14
  category: COMPONENT_TYPES.view,
12
15
  stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
13
16
  layout: {},
17
+ triggers: [Triggers.OnRefresh],
14
18
  props: {
19
+ onRefresh: createActionProp(),
15
20
  horizontal: createStaticBoolProp({
16
21
  label: "Horizontal",
17
22
  description: "Render your list horizontally",
@@ -35,5 +40,9 @@ export const SEED_DATA = {
35
40
  "When true, the scroll view bounces when it reaches the end of the content if the content is larger then the scroll view along the axis of the scroll direction.",
36
41
  defaultValue: true,
37
42
  }),
43
+ refreshColor: createColorProp({
44
+ label: "Refreshing Color",
45
+ description: "Color of the refresh indicator",
46
+ }),
38
47
  },
39
48
  };
@@ -306,7 +306,7 @@ export const SEED_DATA = [
306
306
  ...SEED_DATA_PROPS,
307
307
  type: {
308
308
  label: "Appearance",
309
- description: "Type of Datepicker",
309
+ description: "Type of Field",
310
310
  formType: FORM_TYPES.flatArray,
311
311
  propType: PROP_TYPES.STRING,
312
312
  defaultValue: "solid",
@@ -357,7 +357,7 @@ export const SEED_DATA = [
357
357
  ...SEED_DATA_PROPS,
358
358
  type: {
359
359
  label: "Appearance",
360
- description: "Type of Datepicker",
360
+ description: "Type of Field",
361
361
  formType: FORM_TYPES.flatArray,
362
362
  propType: PROP_TYPES.STRING,
363
363
  defaultValue: "solid",
@@ -328,7 +328,7 @@ export const SEED_DATA = [
328
328
  ...SEED_DATA_PROPS,
329
329
  type: {
330
330
  label: "Appearance",
331
- description: "Type of Datepicker",
331
+ description: "Type of Field",
332
332
  formType: FORM_TYPES.flatArray,
333
333
  propType: PROP_TYPES.STRING,
334
334
  defaultValue: "solid",
@@ -380,7 +380,7 @@ export const SEED_DATA = [
380
380
  ...SEED_DATA_PROPS,
381
381
  type: {
382
382
  label: "Appearance",
383
- description: "Type of Datepicker",
383
+ description: "Type of Field",
384
384
  formType: FORM_TYPES.flatArray,
385
385
  propType: PROP_TYPES.STRING,
386
386
  defaultValue: "solid",