@draftbit/core 47.1.1-2bc708.2 → 47.1.1-5f678a.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.
@@ -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 true.",
50
+ defaultValue: true
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: true
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: true
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
  description: "A map view",
13
13
  category: _types.COMPONENT_TYPES.map,
14
14
  layout: {
15
- flex: 1
15
+ flex: 1,
16
+ width: "100%",
17
+ height: "100%"
16
18
  },
17
19
  props: {
18
20
  provider: {
@@ -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",
@@ -21,7 +23,7 @@ const SEED_DATA = {
21
23
  showsHorizontalScrollIndicator: (0, _types.createStaticBoolProp)({
22
24
  label: "Show Horizontal Scroll Indicator",
23
25
  description: "When true, shows a horizontal scroll indicator. The default value is true.",
24
- defaultValue: false
26
+ defaultValue: true
25
27
  }),
26
28
  showsVerticalScrollIndicator: (0, _types.createStaticBoolProp)({
27
29
  label: "Show Vertical Scroll Indicator",
@@ -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
  };
@@ -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
  });
@@ -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 true.",
44
+ defaultValue: true
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: true
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: true
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
  };
@@ -6,7 +6,9 @@ export const SEED_DATA = {
6
6
  description: "A map view",
7
7
  category: COMPONENT_TYPES.map,
8
8
  layout: {
9
- flex: 1
9
+ flex: 1,
10
+ width: "100%",
11
+ height: "100%"
10
12
  },
11
13
  props: {
12
14
  provider: {
@@ -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",
@@ -15,7 +17,7 @@ export const SEED_DATA = {
15
17
  showsHorizontalScrollIndicator: createStaticBoolProp({
16
18
  label: "Show Horizontal Scroll Indicator",
17
19
  description: "When true, shows a horizontal scroll indicator. The default value is true.",
18
- defaultValue: false
20
+ defaultValue: true
19
21
  }),
20
22
  showsVerticalScrollIndicator: createStaticBoolProp({
21
23
  label: "Show Vertical Scroll Indicator",
@@ -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
  };
@@ -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"}
@@ -6,6 +6,8 @@ export declare const SEED_DATA: {
6
6
  category: string;
7
7
  layout: {
8
8
  flex: number;
9
+ width: string;
10
+ height: string;
9
11
  };
10
12
  props: {
11
13
  provider: {
@@ -1 +1 @@
1
- {"version":3,"file":"MapView.d.ts","sourceRoot":"","sources":["../../../../src/mappings/MapView.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2IrB,CAAC"}
1
+ {"version":3,"file":"MapView.d.ts","sourceRoot":"","sources":["../../../../src/mappings/MapView.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6IrB,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-2bc708.2+2bc7089",
3
+ "version": "47.1.1-5f678a.2+5f678a7",
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-2bc708.2+2bc7089",
44
+ "@draftbit/types": "^47.1.1-5f678a.2+5f678a7",
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": "2bc7089a4f4a8e8fa9c6ef71cf6b8da60b27b720"
94
+ "gitHead": "5f678a7061534ee81e34fff9ddced9bd61c0834d"
95
95
  }
@@ -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 true.",
45
+ defaultValue: true,
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: true,
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 true.",
59
+ defaultValue: true,
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: true,
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: true,
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: true,
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
  };
@@ -7,6 +7,8 @@ export const SEED_DATA = {
7
7
  category: COMPONENT_TYPES.map,
8
8
  layout: {
9
9
  flex: 1,
10
+ width: "100%",
11
+ height: "100%",
10
12
  },
11
13
  props: {
12
14
  provider: {
@@ -17,6 +17,8 @@ export const SEED_DATA = {
17
17
  category: COMPONENT_TYPES.map,
18
18
  layout: {
19
19
  flex: 1,
20
+ width: "100%",
21
+ height: "100%",
20
22
  },
21
23
  props: {
22
24
  provider: {
@@ -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",
@@ -15,7 +17,7 @@ export const SEED_DATA = {
15
17
  showsHorizontalScrollIndicator: createStaticBoolProp({
16
18
  label: "Show Horizontal Scroll Indicator",
17
19
  description: "When true, shows a horizontal scroll indicator. The default value is true.",
18
- defaultValue: false,
20
+ defaultValue: true,
19
21
  }),
20
22
  showsVerticalScrollIndicator: createStaticBoolProp({
21
23
  label: "Show Vertical Scroll Indicator",
@@ -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",
@@ -21,7 +26,7 @@ export const SEED_DATA = {
21
26
  label: "Show Horizontal Scroll Indicator",
22
27
  description:
23
28
  "When true, shows a horizontal scroll indicator. The default value is true.",
24
- defaultValue: false,
29
+ defaultValue: true,
25
30
  }),
26
31
  showsVerticalScrollIndicator: createStaticBoolProp({
27
32
  label: "Show Vertical Scroll Indicator",
@@ -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
  };