@draftbit/core 47.1.1-22301.2 → 47.1.1-77b281.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.
@@ -39,6 +39,20 @@ const SEED_DATA = [{
39
39
  label: "End Reached Threshold",
40
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.",
41
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: 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
42
56
  })
43
57
  }
44
58
  }, {
@@ -83,6 +97,20 @@ const SEED_DATA = [{
83
97
  label: "End Reached Threshold",
84
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.",
85
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
86
114
  })
87
115
  }
88
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
  };
@@ -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",
@@ -33,6 +33,20 @@ export const SEED_DATA = [{
33
33
  label: "End Reached Threshold",
34
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.",
35
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: 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
36
50
  })
37
51
  }
38
52
  }, {
@@ -77,6 +91,20 @@ export const SEED_DATA = [{
77
91
  label: "End Reached Threshold",
78
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.",
79
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
80
108
  })
81
109
  }
82
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
  };
@@ -73,6 +73,36 @@ export declare const SEED_DATA: ({
73
73
  required: boolean;
74
74
  step: number;
75
75
  };
76
+ refreshColor: {
77
+ group: string;
78
+ label: string;
79
+ description: string;
80
+ editable: boolean;
81
+ required: boolean;
82
+ defaultValue: null;
83
+ formType: string;
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;
94
+ group: string;
95
+ };
96
+ showsVerticalScrollIndicator: {
97
+ label: string;
98
+ description: string;
99
+ formType: string;
100
+ propType: string;
101
+ defaultValue: boolean;
102
+ editable: boolean;
103
+ required: boolean;
104
+ group: string;
105
+ };
76
106
  horizontal?: undefined;
77
107
  inverted?: undefined;
78
108
  };
@@ -171,6 +201,36 @@ export declare const SEED_DATA: ({
171
201
  required: boolean;
172
202
  step: number;
173
203
  };
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
+ };
174
234
  };
175
235
  })[];
176
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqFrB,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-022301.2+022301c",
3
+ "version": "47.1.1-77b281.2+77b2812",
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-022301.2+022301c",
44
+ "@draftbit/types": "^47.1.1-77b281.2+77b2812",
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": "022301c8f824b991b49243bfb1a81382520998ad"
94
+ "gitHead": "77b28127035c6fc71648f280548bcf365bff8af3"
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",
@@ -35,6 +35,20 @@ export const SEED_DATA = [
35
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.",
36
36
  defaultValue: 0.5,
37
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: 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
+ }),
38
52
  },
39
53
  },
40
54
  {
@@ -80,6 +94,20 @@ export const SEED_DATA = [
80
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.",
81
95
  defaultValue: 0.5,
82
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
+ }),
83
111
  },
84
112
  },
85
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 = [
@@ -47,6 +48,22 @@ export const SEED_DATA = [
47
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.",
48
49
  defaultValue: 0.5,
49
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: 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
+ }),
50
67
  },
51
68
  },
52
69
  {
@@ -93,6 +110,22 @@ export const SEED_DATA = [
93
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.",
94
111
  defaultValue: 0.5,
95
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
+ }),
96
129
  },
97
130
  },
98
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
  };