@draftbit/core 47.1.1-8b0b37.2 → 47.1.1-ace71d.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.
- package/lib/commonjs/components/Button.js +2 -2
- package/lib/commonjs/components/IconButton.js +4 -2
- package/lib/commonjs/components/NumberInput.js +1 -1
- package/lib/commonjs/components/Pressable.js +2 -2
- package/lib/commonjs/components/Touchable.js +2 -2
- package/lib/commonjs/mappings/Button.js +2 -2
- package/lib/commonjs/mappings/DatePicker.js +1 -1
- package/lib/commonjs/mappings/FlashList.js +28 -4
- package/lib/commonjs/mappings/FlatList.js +14 -0
- package/lib/commonjs/mappings/IconButton.js +4 -6
- package/lib/commonjs/mappings/MapView.js +3 -1
- package/lib/commonjs/mappings/ScrollView.js +7 -1
- package/lib/commonjs/mappings/TextField.js +2 -2
- package/lib/commonjs/mappings/Touchable.js +9 -2
- package/lib/module/components/Button.js +2 -2
- package/lib/module/components/CardBlock.js +4 -14
- package/lib/module/components/CircularProgress.js +8 -28
- package/lib/module/components/IconButton.js +4 -2
- package/lib/module/components/Image.js +2 -18
- package/lib/module/components/NumberInput.js +1 -1
- package/lib/module/components/Picker/PickerComponent.android.js +3 -21
- package/lib/module/components/Pressable.js +2 -2
- package/lib/module/components/RadioButton/context.js +1 -1
- package/lib/module/components/Touchable.js +2 -2
- package/lib/module/hooks.js +2 -1
- package/lib/module/mappings/Button.js +2 -2
- package/lib/module/mappings/DatePicker.js +1 -1
- package/lib/module/mappings/FlashList.js +29 -5
- package/lib/module/mappings/FlatList.js +15 -1
- package/lib/module/mappings/IconButton.js +5 -7
- package/lib/module/mappings/MapView.js +3 -1
- package/lib/module/mappings/ScrollView.js +8 -2
- package/lib/module/mappings/TextField.js +2 -2
- package/lib/module/mappings/Touchable.js +10 -3
- package/lib/typescript/src/components/IconButton.d.ts +2 -0
- package/lib/typescript/src/components/IconButton.d.ts.map +1 -1
- package/lib/typescript/src/components/Pressable.d.ts.map +1 -1
- package/lib/typescript/src/components/Touchable.d.ts.map +1 -1
- package/lib/typescript/src/mappings/DatePicker.d.ts +1 -1
- package/lib/typescript/src/mappings/FlashList.d.ts +57 -8
- package/lib/typescript/src/mappings/FlashList.d.ts.map +1 -1
- package/lib/typescript/src/mappings/FlatList.d.ts +30 -0
- package/lib/typescript/src/mappings/FlatList.d.ts.map +1 -1
- package/lib/typescript/src/mappings/IconButton.d.ts +20 -10
- package/lib/typescript/src/mappings/IconButton.d.ts.map +1 -1
- package/lib/typescript/src/mappings/MapView.d.ts +2 -0
- package/lib/typescript/src/mappings/MapView.d.ts.map +1 -1
- package/lib/typescript/src/mappings/ScrollView.d.ts +21 -0
- package/lib/typescript/src/mappings/ScrollView.d.ts.map +1 -1
- package/lib/typescript/src/mappings/Touchable.d.ts +20 -0
- package/lib/typescript/src/mappings/Touchable.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/components/Button.js +1 -1
- package/src/components/Button.tsx +2 -2
- package/src/components/IconButton.js +2 -2
- package/src/components/IconButton.tsx +6 -2
- package/src/components/NumberInput.js +1 -1
- package/src/components/NumberInput.tsx +1 -1
- package/src/components/Pressable.js +1 -1
- package/src/components/Pressable.tsx +2 -2
- package/src/components/Touchable.js +1 -1
- package/src/components/Touchable.tsx +2 -2
- package/src/mappings/Button.js +2 -2
- package/src/mappings/Button.ts +2 -2
- package/src/mappings/DatePicker.js +1 -1
- package/src/mappings/DatePicker.ts +1 -1
- package/src/mappings/FlashList.js +29 -5
- package/src/mappings/FlashList.ts +33 -5
- package/src/mappings/FlatList.js +15 -1
- package/src/mappings/FlatList.ts +17 -0
- package/src/mappings/IconButton.js +5 -7
- package/src/mappings/IconButton.ts +5 -7
- package/src/mappings/MapView.js +2 -0
- package/src/mappings/MapView.ts +2 -0
- package/src/mappings/ScrollView.js +8 -2
- package/src/mappings/ScrollView.ts +10 -1
- package/src/mappings/TextField.js +2 -2
- package/src/mappings/TextField.ts +2 -2
- package/src/mappings/Touchable.js +10 -3
- package/src/mappings/Touchable.ts +12 -2
|
@@ -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
|
};
|
|
@@ -1,29 +1,27 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, GROUPS, createIconProp, createColorProp, createNumberProp,
|
|
1
|
+
import { COMPONENT_TYPES, GROUPS, createIconProp, createColorProp, createNumberProp, createActionProp, Triggers, StylesPanelSections, createDisabledProp } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Icon Button",
|
|
4
4
|
tag: "IconButton",
|
|
5
5
|
category: COMPONENT_TYPES.button,
|
|
6
6
|
layout: {},
|
|
7
|
-
triggers: [Triggers.OnPress],
|
|
7
|
+
triggers: [Triggers.OnPress, Triggers.OnLongPress],
|
|
8
8
|
stylesPanelSections: [StylesPanelSections.Margins, StylesPanelSections.Effects, StylesPanelSections.Position],
|
|
9
9
|
props: {
|
|
10
10
|
onPress: createActionProp(),
|
|
11
|
+
onLongPress: createActionProp(),
|
|
12
|
+
disabled: createDisabledProp(),
|
|
11
13
|
icon: createIconProp(),
|
|
12
14
|
color: createColorProp({
|
|
13
15
|
label: "Color",
|
|
14
16
|
group: GROUPS.basic
|
|
15
17
|
}),
|
|
16
|
-
disabled: createBoolProp({
|
|
17
|
-
label: "Disabled",
|
|
18
|
-
group: GROUPS.basic
|
|
19
|
-
}),
|
|
20
18
|
size: createNumberProp({
|
|
21
19
|
group: GROUPS.basic,
|
|
22
20
|
label: "Size",
|
|
23
21
|
description: "Width and height of your icon",
|
|
24
22
|
defaultValue: 32,
|
|
25
23
|
min: 16,
|
|
26
|
-
max:
|
|
24
|
+
max: 256,
|
|
27
25
|
step: 1,
|
|
28
26
|
precision: 0
|
|
29
27
|
})
|
|
@@ -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:
|
|
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
|
};
|
|
@@ -277,7 +277,7 @@ export const SEED_DATA = [{
|
|
|
277
277
|
...SEED_DATA_PROPS,
|
|
278
278
|
type: {
|
|
279
279
|
label: "Appearance",
|
|
280
|
-
description: "Type of
|
|
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
|
|
322
|
+
description: "Type of Field",
|
|
323
323
|
formType: FORM_TYPES.flatArray,
|
|
324
324
|
propType: PROP_TYPES.STRING,
|
|
325
325
|
defaultValue: "solid",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createActionProp, Triggers, createStaticNumberProp, StylesPanelSections } from "@draftbit/types";
|
|
1
|
+
import { COMPONENT_TYPES, createActionProp, Triggers, createStaticNumberProp, StylesPanelSections, createDisabledProp, GROUPS, createStaticBoolProp } from "@draftbit/types";
|
|
2
2
|
const SEED_DATA_PROPS = {
|
|
3
3
|
stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Margins, StylesPanelSections.Borders],
|
|
4
4
|
layout: {},
|
|
@@ -6,10 +6,11 @@ const SEED_DATA_PROPS = {
|
|
|
6
6
|
props: {
|
|
7
7
|
onPress: createActionProp(),
|
|
8
8
|
onLongPress: createActionProp(),
|
|
9
|
+
disabled: createDisabledProp(),
|
|
9
10
|
activeOpacity: createStaticNumberProp({
|
|
10
11
|
label: "Active Opacity",
|
|
11
12
|
description: "The opacity when the button is pressed.",
|
|
12
|
-
defaultValue:
|
|
13
|
+
defaultValue: null,
|
|
13
14
|
min: 0,
|
|
14
15
|
max: 1,
|
|
15
16
|
step: 0.01,
|
|
@@ -19,7 +20,7 @@ const SEED_DATA_PROPS = {
|
|
|
19
20
|
disabledOpacity: createStaticNumberProp({
|
|
20
21
|
label: "Disabled Opacity",
|
|
21
22
|
description: "The opacity when the button is disabled.",
|
|
22
|
-
defaultValue:
|
|
23
|
+
defaultValue: null,
|
|
23
24
|
min: 0,
|
|
24
25
|
max: 1,
|
|
25
26
|
step: 0.01,
|
|
@@ -35,6 +36,12 @@ const SEED_DATA_PROPS = {
|
|
|
35
36
|
label: "Hit Slop",
|
|
36
37
|
description: "Sets additional distance outside of element in which a press can be detected.",
|
|
37
38
|
required: false
|
|
39
|
+
}),
|
|
40
|
+
android_disableSound: createStaticBoolProp({
|
|
41
|
+
label: "Disable Sound",
|
|
42
|
+
description: "Disable the Android sound effect.",
|
|
43
|
+
defaultValue: null,
|
|
44
|
+
group: GROUPS.android
|
|
38
45
|
})
|
|
39
46
|
}
|
|
40
47
|
};
|
|
@@ -11,6 +11,8 @@ declare type Props = {
|
|
|
11
11
|
onPress: () => void;
|
|
12
12
|
theme: Theme;
|
|
13
13
|
style?: StyleProp<ViewStyle>;
|
|
14
|
+
activeOpacity?: number;
|
|
15
|
+
disabledOpacity?: number;
|
|
14
16
|
} & PressableProps & IconSlot;
|
|
15
17
|
declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<React.PropsWithChildren<Props>, "theme"> & {
|
|
16
18
|
theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/components/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAIL,SAAS,EACT,SAAS,EAET,cAAc,EAEf,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,aAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/components/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAIL,SAAS,EACT,SAAS,EAET,cAAc,EAEf,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,aAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,GAAG,cAAc,GAChB,QAAQ,CAAC;;;;AA4DX,wBAAqC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pressable.d.ts","sourceRoot":"","sources":["../../../../src/components/Pressable.tsx"],"names":[],"mappings":";AACA,OAAO,EAEL,cAAc,EACd,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,GAAG,cAAc,CAAC;AAEnB,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,
|
|
1
|
+
{"version":3,"file":"Pressable.d.ts","sourceRoot":"","sources":["../../../../src/components/Pressable.tsx"],"names":[],"mappings":";AACA,OAAO,EAEL,cAAc,EACd,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,GAAG,cAAc,CAAC;AAEnB,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,aAAmB,EACnB,eAAqB,EACrB,cAAc,EACd,OAAO,EACP,KAAK,EACL,GAAG,KAAK,EACT,EAAE,KAAK,eAoBP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Touchable.d.ts","sourceRoot":"","sources":["../../../../src/components/Touchable.tsx"],"names":[],"mappings":";AACA,OAAO,EAAa,cAAc,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpE,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,GAAG,cAAc,CAAC;AAEnB,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,
|
|
1
|
+
{"version":3,"file":"Touchable.d.ts","sourceRoot":"","sources":["../../../../src/components/Touchable.tsx"],"names":[],"mappings":";AACA,OAAO,EAAa,cAAc,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpE,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,GAAG,cAAc,CAAC;AAEnB,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,aAAmB,EACnB,eAAqB,EACrB,cAAc,EACd,OAAO,EACP,KAAK,EACL,GAAG,KAAK,EACT,EAAE,KAAK,eAoBP"}
|
|
@@ -51,17 +51,18 @@ export declare const SEED_DATA: ({
|
|
|
51
51
|
required: boolean;
|
|
52
52
|
step: number;
|
|
53
53
|
};
|
|
54
|
-
|
|
54
|
+
initialNumToRender: {
|
|
55
55
|
label: string;
|
|
56
56
|
description: string;
|
|
57
57
|
formType: string;
|
|
58
58
|
propType: string;
|
|
59
|
-
|
|
59
|
+
group: string;
|
|
60
|
+
defaultValue: null;
|
|
60
61
|
editable: boolean;
|
|
61
62
|
required: boolean;
|
|
62
|
-
|
|
63
|
+
step: number;
|
|
63
64
|
};
|
|
64
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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":"
|
|
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":"
|
|
1
|
+
{"version":3,"file":"FlatList.d.ts","sourceRoot":"","sources":["../../../../src/mappings/FlatList.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDrB,CAAC"}
|
|
@@ -16,35 +16,45 @@ export declare const SEED_DATA: {
|
|
|
16
16
|
defaultValue: null;
|
|
17
17
|
group: string;
|
|
18
18
|
};
|
|
19
|
-
|
|
19
|
+
onLongPress: {
|
|
20
20
|
label: string;
|
|
21
21
|
description: string;
|
|
22
|
+
editable: boolean;
|
|
23
|
+
required: boolean;
|
|
22
24
|
formType: string;
|
|
23
25
|
propType: string;
|
|
24
|
-
defaultValue:
|
|
25
|
-
required: boolean;
|
|
26
|
-
editable: boolean;
|
|
26
|
+
defaultValue: null;
|
|
27
27
|
group: string;
|
|
28
28
|
};
|
|
29
|
-
|
|
30
|
-
group: string;
|
|
29
|
+
disabled: {
|
|
31
30
|
label: string;
|
|
32
31
|
description: string;
|
|
32
|
+
group: string;
|
|
33
33
|
editable: boolean;
|
|
34
34
|
required: boolean;
|
|
35
|
-
defaultValue: null;
|
|
36
35
|
formType: string;
|
|
37
36
|
propType: string;
|
|
37
|
+
defaultValue: null;
|
|
38
38
|
};
|
|
39
|
-
|
|
39
|
+
icon: {
|
|
40
40
|
label: string;
|
|
41
41
|
description: string;
|
|
42
42
|
formType: string;
|
|
43
43
|
propType: string;
|
|
44
|
-
defaultValue:
|
|
45
|
-
editable: boolean;
|
|
44
|
+
defaultValue: string;
|
|
46
45
|
required: boolean;
|
|
46
|
+
editable: boolean;
|
|
47
|
+
group: string;
|
|
48
|
+
};
|
|
49
|
+
color: {
|
|
47
50
|
group: string;
|
|
51
|
+
label: string;
|
|
52
|
+
description: string;
|
|
53
|
+
editable: boolean;
|
|
54
|
+
required: boolean;
|
|
55
|
+
defaultValue: null;
|
|
56
|
+
formType: string;
|
|
57
|
+
propType: string;
|
|
48
58
|
};
|
|
49
59
|
size: {
|
|
50
60
|
label: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/mappings/IconButton.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/mappings/IconButton.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MapView.d.ts","sourceRoot":"","sources":["../../../../src/mappings/MapView.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,SAAS
|
|
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":"
|
|
1
|
+
{"version":3,"file":"ScrollView.d.ts","sourceRoot":"","sources":["../../../../src/mappings/ScrollView.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCrB,CAAC"}
|
|
@@ -23,6 +23,16 @@ export declare const SEED_DATA: {
|
|
|
23
23
|
defaultValue: null;
|
|
24
24
|
group: string;
|
|
25
25
|
};
|
|
26
|
+
disabled: {
|
|
27
|
+
label: string;
|
|
28
|
+
description: string;
|
|
29
|
+
group: string;
|
|
30
|
+
editable: boolean;
|
|
31
|
+
required: boolean;
|
|
32
|
+
formType: string;
|
|
33
|
+
propType: string;
|
|
34
|
+
defaultValue: null;
|
|
35
|
+
};
|
|
26
36
|
activeOpacity: {
|
|
27
37
|
label: string;
|
|
28
38
|
description: string;
|
|
@@ -67,6 +77,16 @@ export declare const SEED_DATA: {
|
|
|
67
77
|
required: boolean;
|
|
68
78
|
step: number;
|
|
69
79
|
};
|
|
80
|
+
android_disableSound: {
|
|
81
|
+
label: string;
|
|
82
|
+
description: string;
|
|
83
|
+
formType: string;
|
|
84
|
+
propType: string;
|
|
85
|
+
defaultValue: boolean;
|
|
86
|
+
editable: boolean;
|
|
87
|
+
required: boolean;
|
|
88
|
+
group: string;
|
|
89
|
+
};
|
|
70
90
|
};
|
|
71
91
|
name: string;
|
|
72
92
|
tag: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Touchable.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Touchable.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Touchable.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Touchable.ts"],"names":[],"mappings":"AAgEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAerB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@draftbit/core",
|
|
3
|
-
"version": "47.1.1-
|
|
3
|
+
"version": "47.1.1-ace71d.2+ace71db",
|
|
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-
|
|
44
|
+
"@draftbit/types": "^47.1.1-ace71d.2+ace71db",
|
|
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": "
|
|
94
|
+
"gitHead": "ace71db71556bc67f12cd2667c00ce27f37c2831"
|
|
95
95
|
}
|
package/src/components/Button.js
CHANGED
|
@@ -7,7 +7,7 @@ const CONSTANTS = {
|
|
|
7
7
|
padding: 8,
|
|
8
8
|
icon: 24,
|
|
9
9
|
};
|
|
10
|
-
function Base({ Icon, icon, title, loading, disabled, style, activeOpacity, disabledOpacity, ...props }) {
|
|
10
|
+
function Base({ Icon, icon, title, loading, disabled, style, activeOpacity = 0.8, disabledOpacity = 0.8, ...props }) {
|
|
11
11
|
const { color, fontFamily, fontWeight, fontSize, lineHeight, letterSpacing, textTransform, textAlign, textDecorationLine, textDecorationColor, textDecorationStyle, ...buttonStyles } = StyleSheet.flatten(style || {});
|
|
12
12
|
const titleStyles = {
|
|
13
13
|
color,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { View, StyleSheet, ActivityIndicator, Pressable, Platform, } from "react-native";
|
|
3
3
|
import { withTheme } from "../theming";
|
|
4
|
-
const IconButton = ({ Icon, icon, color: customColor, size = 32, disabled
|
|
4
|
+
const IconButton = ({ Icon, icon, color: customColor, size = 32, disabled, loading = false, onPress, theme, style, activeOpacity = 0.8, disabledOpacity = 0.8, ...props }) => {
|
|
5
5
|
const iconColor = customColor || theme.colors.primary;
|
|
6
6
|
return (React.createElement(Pressable, { onPress: onPress, disabled: disabled || loading, style: ({ pressed }) => {
|
|
7
7
|
return [
|
|
8
8
|
styles.container,
|
|
9
9
|
{
|
|
10
|
-
opacity: pressed
|
|
10
|
+
opacity: pressed ? activeOpacity : disabled ? disabledOpacity : 1,
|
|
11
11
|
width: size,
|
|
12
12
|
height: size,
|
|
13
13
|
alignItems: "center",
|