@draftbit/core 47.0.1-2f600c.2 → 47.0.1-4681da.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/AspectRatio.js +1 -17
- package/lib/commonjs/components/Button.js +3 -3
- package/lib/commonjs/components/Checkbox/Checkbox.js +3 -1
- package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +2 -1
- package/lib/commonjs/components/Checkbox/CheckboxRow.js +2 -1
- package/lib/commonjs/components/DeprecatedButton.js +27 -3
- package/lib/commonjs/components/DeprecatedFAB.js +2 -1
- package/lib/commonjs/components/Touchable.js +3 -8
- package/lib/commonjs/constants.js +1 -1
- package/lib/commonjs/mappings/Button.js +10 -39
- package/lib/commonjs/mappings/FlashList.js +45 -2
- package/lib/commonjs/mappings/FlatList.js +12 -0
- package/lib/commonjs/mappings/Touchable.js +7 -47
- package/lib/module/components/Accordion/AccordionItem.js +4 -25
- package/lib/module/components/AnimatedCircularProgress.js +1 -13
- package/lib/module/components/Button.js +3 -3
- package/lib/module/components/Checkbox/Checkbox.js +6 -4
- package/lib/module/components/Checkbox/CheckboxGroupRow.js +7 -25
- package/lib/module/components/Checkbox/CheckboxRow.js +8 -25
- package/lib/module/components/DeprecatedButton.js +28 -4
- package/lib/module/components/DeprecatedCardWrapper.js +1 -18
- package/lib/module/components/DeprecatedFAB.js +3 -2
- package/lib/module/components/NumberInput.js +3 -12
- package/lib/module/components/Portal/Portal.js +6 -2
- package/lib/module/components/ProgressBar.js +7 -39
- package/lib/module/components/Switch.js +10 -21
- package/lib/module/components/Touchable.js +3 -8
- package/lib/module/constants.js +0 -1
- package/lib/module/mappings/Button.js +11 -40
- package/lib/module/mappings/FlashList.js +46 -3
- package/lib/module/mappings/FlatList.js +13 -1
- package/lib/module/mappings/Touchable.js +9 -49
- package/lib/typescript/src/components/Button.d.ts.map +1 -1
- package/lib/typescript/src/components/Checkbox/Checkbox.d.ts +2 -2
- package/lib/typescript/src/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.d.ts.map +1 -1
- package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts.map +1 -1
- package/lib/typescript/src/components/DeprecatedButton.d.ts +2 -2
- package/lib/typescript/src/components/DeprecatedButton.d.ts.map +1 -1
- package/lib/typescript/src/components/DeprecatedFAB.d.ts +2 -2
- package/lib/typescript/src/components/DeprecatedFAB.d.ts.map +1 -1
- package/lib/typescript/src/components/Touchable.d.ts +2 -7
- package/lib/typescript/src/components/Touchable.d.ts.map +1 -1
- package/lib/typescript/src/mappings/Button.d.ts +4 -113
- package/lib/typescript/src/mappings/Button.d.ts.map +1 -1
- package/lib/typescript/src/mappings/FlashList.d.ts +112 -2
- package/lib/typescript/src/mappings/FlashList.d.ts.map +1 -1
- package/lib/typescript/src/mappings/FlatList.d.ts +42 -0
- package/lib/typescript/src/mappings/FlatList.d.ts.map +1 -1
- package/lib/typescript/src/mappings/Touchable.d.ts +5 -59
- package/lib/typescript/src/mappings/Touchable.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/components/Button.js +3 -3
- package/src/components/Button.tsx +4 -14
- package/src/components/Checkbox/Checkbox.js +3 -2
- package/src/components/Checkbox/Checkbox.tsx +7 -5
- package/src/components/Checkbox/CheckboxGroupRow.js +3 -2
- package/src/components/Checkbox/CheckboxGroupRow.tsx +3 -3
- package/src/components/Checkbox/CheckboxRow.js +3 -2
- package/src/components/Checkbox/CheckboxRow.tsx +3 -3
- package/src/components/DeprecatedButton.js +16 -4
- package/src/components/DeprecatedButton.tsx +31 -7
- package/src/components/DeprecatedFAB.js +3 -2
- package/src/components/DeprecatedFAB.tsx +5 -5
- package/src/components/Touchable.js +3 -3
- package/src/components/Touchable.tsx +4 -14
- package/src/mappings/Button.js +10 -39
- package/src/mappings/Button.ts +10 -41
- package/src/mappings/FlashList.js +77 -31
- package/src/mappings/FlashList.ts +82 -30
- package/src/mappings/FlatList.js +13 -1
- package/src/mappings/FlatList.ts +16 -0
- package/src/mappings/Touchable.js +7 -50
- package/src/mappings/Touchable.ts +6 -53
- package/lib/commonjs/components/Pressable.js +0 -37
- package/lib/module/components/Pressable.js +0 -30
- package/lib/typescript/src/components/Pressable.d.ts +0 -16
- package/lib/typescript/src/components/Pressable.d.ts.map +0 -1
- package/src/components/Pressable.js +0 -12
- package/src/components/Pressable.tsx +0 -50
|
@@ -1,53 +1,13 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createActionProp, Triggers,
|
|
2
|
-
const
|
|
1
|
+
import { COMPONENT_TYPES, createActionProp, Triggers, StylesPanelSections } from "@draftbit/types";
|
|
2
|
+
export const SEED_DATA = {
|
|
3
|
+
name: "Touchable",
|
|
4
|
+
tag: "Touchable",
|
|
5
|
+
description: "Simple button with no styles",
|
|
6
|
+
category: COMPONENT_TYPES.button,
|
|
3
7
|
stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Margins, StylesPanelSections.Borders],
|
|
4
8
|
layout: {},
|
|
5
|
-
triggers: [Triggers.OnPress
|
|
9
|
+
triggers: [Triggers.OnPress],
|
|
6
10
|
props: {
|
|
7
|
-
onPress: createActionProp()
|
|
8
|
-
onLongPress: createActionProp(),
|
|
9
|
-
activeOpacity: createStaticNumberProp({
|
|
10
|
-
label: "Active Opacity",
|
|
11
|
-
description: "The opacity when the button is pressed.",
|
|
12
|
-
defaultValue: 0.8,
|
|
13
|
-
min: 0,
|
|
14
|
-
max: 1,
|
|
15
|
-
step: 0.01,
|
|
16
|
-
precision: 2,
|
|
17
|
-
required: false
|
|
18
|
-
}),
|
|
19
|
-
disabledOpacity: createStaticNumberProp({
|
|
20
|
-
label: "Disabled Opacity",
|
|
21
|
-
description: "The opacity when the button is disabled.",
|
|
22
|
-
defaultValue: 0.8,
|
|
23
|
-
min: 0,
|
|
24
|
-
max: 1,
|
|
25
|
-
step: 0.01,
|
|
26
|
-
precision: 2,
|
|
27
|
-
required: false
|
|
28
|
-
}),
|
|
29
|
-
delayLongPress: createStaticNumberProp({
|
|
30
|
-
label: "Delay Long Press",
|
|
31
|
-
description: "Duration (in milliseconds) from onPressIn before onLongPress is called.",
|
|
32
|
-
required: false
|
|
33
|
-
}),
|
|
34
|
-
hitSlop: createStaticNumberProp({
|
|
35
|
-
label: "Hit Slop",
|
|
36
|
-
description: "Sets additional distance outside of element in which a press can be detected.",
|
|
37
|
-
required: false
|
|
38
|
-
})
|
|
11
|
+
onPress: createActionProp()
|
|
39
12
|
}
|
|
40
|
-
};
|
|
41
|
-
export const SEED_DATA = [{
|
|
42
|
-
name: "Touchable",
|
|
43
|
-
tag: "Touchable",
|
|
44
|
-
description: "An interactive view with no styles",
|
|
45
|
-
category: COMPONENT_TYPES.deprecated,
|
|
46
|
-
...SEED_DATA_PROPS
|
|
47
|
-
}, {
|
|
48
|
-
name: "Pressable",
|
|
49
|
-
tag: "Pressable",
|
|
50
|
-
description: "An interactive view with no styles",
|
|
51
|
-
category: COMPONENT_TYPES.button,
|
|
52
|
-
...SEED_DATA_PROPS
|
|
53
|
-
}];
|
|
13
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/Button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/Button.tsx"],"names":[],"mappings":"AA0IA,QAAA,MAAM,WAAW,EAAE,GAAsB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,CAAC;AAEvB,QAAA,MAAM,MAAM,EAAE,GAAsB,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,CAAC;AAmBlB,QAAA,MAAM,aAAa,EAAE,GAAwB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { TouchableHighlightProps, StyleProp, ViewStyle } from "react-native";
|
|
3
3
|
import type { IconSlot } from "../../interfaces/Icon";
|
|
4
4
|
export interface CheckboxProps {
|
|
5
5
|
status?: boolean;
|
|
@@ -15,6 +15,6 @@ export interface CheckboxProps {
|
|
|
15
15
|
size?: number;
|
|
16
16
|
style?: StyleProp<ViewStyle>;
|
|
17
17
|
}
|
|
18
|
-
declare const Checkbox: React.FC<CheckboxProps &
|
|
18
|
+
declare const Checkbox: React.FC<CheckboxProps & TouchableHighlightProps & IconSlot>;
|
|
19
19
|
export default Checkbox;
|
|
20
20
|
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,uBAAuB,EACvB,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAKtD,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CACtB,aAAa,GAAG,uBAAuB,GAAG,QAAQ,CAqFnD,CAAC;AAqBF,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxGroupRow.d.ts","sourceRoot":"","sources":["../../../../../src/components/Checkbox/CheckboxGroupRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,SAAS,EACT,SAAS,EAET,SAAS,
|
|
1
|
+
{"version":3,"file":"CheckboxGroupRow.d.ts","sourceRoot":"","sources":["../../../../../src/components/Checkbox/CheckboxGroupRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,SAAS,EACT,SAAS,EAET,SAAS,EAGV,MAAM,cAAc,CAAC;AACtB,OAAiB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAGrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAKtD,oBAAY,SAAS;IACnB,GAAG,QAAQ;IACX,UAAU,gBAAgB;CAC3B;AAED,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC;IAC3E,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC1C,aAAa,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACrC,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAClC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;CACzB;AA2BD,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,GAAG,QAAQ,CAsEhE,CAAC;AAsBF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxRow.d.ts","sourceRoot":"","sources":["../../../../../src/components/Checkbox/CheckboxRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,SAAS,EACT,SAAS,EAET,SAAS,
|
|
1
|
+
{"version":3,"file":"CheckboxRow.d.ts","sourceRoot":"","sources":["../../../../../src/components/Checkbox/CheckboxRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,SAAS,EACT,SAAS,EAET,SAAS,EAGV,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAKtD,OAAiB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAErD,oBAAY,SAAS;IACnB,GAAG,QAAQ;IACX,UAAU,gBAAgB;CAC3B;AAED,MAAM,WAAW,gBAAiB,SAAQ,aAAa;IACrD,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAChC,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAClC,mBAAmB,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC1C,aAAa,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACrC,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAcD,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,GAAG,QAAQ,CA2FtD,CAAC;AAsBF,eAAe,WAAW,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { StyleProp, ViewStyle
|
|
2
|
+
import { TouchableHighlightProps, StyleProp, ViewStyle } from "react-native";
|
|
3
3
|
import type { Theme } from "../styles/DefaultTheme";
|
|
4
4
|
import type { IconSlot } from "../interfaces/Icon";
|
|
5
5
|
/**
|
|
@@ -46,7 +46,7 @@ declare type Props = {
|
|
|
46
46
|
elevation?: number;
|
|
47
47
|
style?: StyleProp<ViewStyle>;
|
|
48
48
|
theme: Theme;
|
|
49
|
-
} &
|
|
49
|
+
} & TouchableHighlightProps & IconSlot;
|
|
50
50
|
declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<React.PropsWithChildren<Props>, "theme"> & {
|
|
51
51
|
theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
|
|
52
52
|
}> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<React.PropsWithChildren<Props>> & React.FC<React.PropsWithChildren<Props>>, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeprecatedButton.d.ts","sourceRoot":"","sources":["../../../../src/components/DeprecatedButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAKL,SAAS,EACT,SAAS,
|
|
1
|
+
{"version":3,"file":"DeprecatedButton.d.ts","sourceRoot":"","sources":["../../../../src/components/DeprecatedButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAKL,uBAAuB,EACvB,SAAS,EACT,SAAS,EAEV,MAAM,cAAc,CAAC;AAOtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,aAAK,KAAK,GAAG;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC;CACd,GAAG,uBAAuB,GACzB,QAAQ,CAAC;;;;AAmJX,wBAAiC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { StyleProp, ViewStyle
|
|
2
|
+
import { TouchableHighlightProps, StyleProp, ViewStyle } from "react-native";
|
|
3
3
|
import type { Theme } from "../styles/DefaultTheme";
|
|
4
4
|
import type { IconSlot } from "../interfaces/Icon";
|
|
5
5
|
/**
|
|
@@ -48,7 +48,7 @@ declare type Props = {
|
|
|
48
48
|
elevation?: number;
|
|
49
49
|
theme: Theme;
|
|
50
50
|
style?: StyleProp<ViewStyle>;
|
|
51
|
-
} &
|
|
51
|
+
} & TouchableHighlightProps & IconSlot;
|
|
52
52
|
declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<React.PropsWithChildren<Props>, "theme"> & {
|
|
53
53
|
theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
|
|
54
54
|
}> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<React.PropsWithChildren<Props>> & React.FC<React.PropsWithChildren<Props>>, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeprecatedFAB.d.ts","sourceRoot":"","sources":["../../../../src/components/DeprecatedFAB.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAIL,SAAS,EACT,SAAS,
|
|
1
|
+
{"version":3,"file":"DeprecatedFAB.d.ts","sourceRoot":"","sources":["../../../../src/components/DeprecatedFAB.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAIL,uBAAuB,EACvB,SAAS,EACT,SAAS,EAEV,MAAM,cAAc,CAAC;AAQtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,aAAK,KAAK,GAAG;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,CAAC;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,GAAG,uBAAuB,GACzB,QAAQ,CAAC;;;;AAkKX,wBAA8B"}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { ViewStyle, PressableProps } from "react-native";
|
|
3
3
|
declare type Props = {
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
style?: ViewStyle;
|
|
7
7
|
onPress?: () => void;
|
|
8
|
-
onLongPress?: () => void;
|
|
9
|
-
delayLongPress?: number;
|
|
10
|
-
hitSlop?: number;
|
|
11
|
-
activeOpacity?: number;
|
|
12
|
-
disabledOpacity?: number;
|
|
13
8
|
} & PressableProps;
|
|
14
|
-
export default function Touchable({ children, disabled, onPress,
|
|
9
|
+
export default function Touchable({ children, disabled, onPress, style, ...props }: Props): JSX.Element;
|
|
15
10
|
export {};
|
|
16
11
|
//# sourceMappingURL=Touchable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Touchable.d.ts","sourceRoot":"","sources":["../../../../src/components/Touchable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAa,
|
|
1
|
+
{"version":3,"file":"Touchable.d.ts","sourceRoot":"","sources":["../../../../src/components/Touchable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAa,SAAS,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEpE,aAAK,KAAK,GAAG;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,GAAG,cAAc,CAAC;AAEnB,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,KAAK,EACL,GAAG,KAAK,EACT,EAAE,KAAK,eAmBP"}
|
|
@@ -4,11 +4,11 @@ export declare const SEED_DATA: ({
|
|
|
4
4
|
category: string;
|
|
5
5
|
stylesPanelSections: string[];
|
|
6
6
|
layout: {
|
|
7
|
-
borderRadius: number;
|
|
8
|
-
fontFamily: string;
|
|
9
7
|
backgroundColor: string;
|
|
10
8
|
borderWidth: number;
|
|
11
9
|
textAlign: string;
|
|
10
|
+
borderRadius: number;
|
|
11
|
+
fontFamily: string;
|
|
12
12
|
};
|
|
13
13
|
triggers: string[];
|
|
14
14
|
props: {
|
|
@@ -22,16 +22,6 @@ export declare const SEED_DATA: ({
|
|
|
22
22
|
defaultValue: null;
|
|
23
23
|
group: string;
|
|
24
24
|
};
|
|
25
|
-
onLongPress: {
|
|
26
|
-
label: string;
|
|
27
|
-
description: string;
|
|
28
|
-
editable: boolean;
|
|
29
|
-
required: boolean;
|
|
30
|
-
formType: string;
|
|
31
|
-
propType: string;
|
|
32
|
-
defaultValue: null;
|
|
33
|
-
group: string;
|
|
34
|
-
};
|
|
35
25
|
icon: {
|
|
36
26
|
label: string;
|
|
37
27
|
description: string;
|
|
@@ -63,50 +53,6 @@ export declare const SEED_DATA: ({
|
|
|
63
53
|
propType: string;
|
|
64
54
|
defaultValue: null;
|
|
65
55
|
};
|
|
66
|
-
activeOpacity: {
|
|
67
|
-
label: string;
|
|
68
|
-
description: string;
|
|
69
|
-
formType: string;
|
|
70
|
-
propType: string;
|
|
71
|
-
group: string;
|
|
72
|
-
defaultValue: null;
|
|
73
|
-
editable: boolean;
|
|
74
|
-
required: boolean;
|
|
75
|
-
step: number;
|
|
76
|
-
};
|
|
77
|
-
disabledOpacity: {
|
|
78
|
-
label: string;
|
|
79
|
-
description: string;
|
|
80
|
-
formType: string;
|
|
81
|
-
propType: string;
|
|
82
|
-
group: string;
|
|
83
|
-
defaultValue: null;
|
|
84
|
-
editable: boolean;
|
|
85
|
-
required: boolean;
|
|
86
|
-
step: number;
|
|
87
|
-
};
|
|
88
|
-
delayLongPress: {
|
|
89
|
-
label: string;
|
|
90
|
-
description: string;
|
|
91
|
-
formType: string;
|
|
92
|
-
propType: string;
|
|
93
|
-
group: string;
|
|
94
|
-
defaultValue: null;
|
|
95
|
-
editable: boolean;
|
|
96
|
-
required: boolean;
|
|
97
|
-
step: number;
|
|
98
|
-
};
|
|
99
|
-
hitSlop: {
|
|
100
|
-
label: string;
|
|
101
|
-
description: string;
|
|
102
|
-
formType: string;
|
|
103
|
-
propType: string;
|
|
104
|
-
group: string;
|
|
105
|
-
defaultValue: null;
|
|
106
|
-
editable: boolean;
|
|
107
|
-
required: boolean;
|
|
108
|
-
step: number;
|
|
109
|
-
};
|
|
110
56
|
};
|
|
111
57
|
} | {
|
|
112
58
|
name: string;
|
|
@@ -114,11 +60,10 @@ export declare const SEED_DATA: ({
|
|
|
114
60
|
category: string;
|
|
115
61
|
stylesPanelSections: string[];
|
|
116
62
|
layout: {
|
|
117
|
-
borderRadius: number;
|
|
118
|
-
fontFamily: string;
|
|
119
63
|
backgroundColor: string;
|
|
120
64
|
textAlign: string;
|
|
121
|
-
|
|
65
|
+
borderRadius: number;
|
|
66
|
+
fontFamily: string;
|
|
122
67
|
};
|
|
123
68
|
triggers: string[];
|
|
124
69
|
props: {
|
|
@@ -132,16 +77,6 @@ export declare const SEED_DATA: ({
|
|
|
132
77
|
defaultValue: null;
|
|
133
78
|
group: string;
|
|
134
79
|
};
|
|
135
|
-
onLongPress: {
|
|
136
|
-
label: string;
|
|
137
|
-
description: string;
|
|
138
|
-
editable: boolean;
|
|
139
|
-
required: boolean;
|
|
140
|
-
formType: string;
|
|
141
|
-
propType: string;
|
|
142
|
-
defaultValue: null;
|
|
143
|
-
group: string;
|
|
144
|
-
};
|
|
145
80
|
icon: {
|
|
146
81
|
label: string;
|
|
147
82
|
description: string;
|
|
@@ -173,50 +108,6 @@ export declare const SEED_DATA: ({
|
|
|
173
108
|
propType: string;
|
|
174
109
|
defaultValue: null;
|
|
175
110
|
};
|
|
176
|
-
activeOpacity: {
|
|
177
|
-
label: string;
|
|
178
|
-
description: string;
|
|
179
|
-
formType: string;
|
|
180
|
-
propType: string;
|
|
181
|
-
group: string;
|
|
182
|
-
defaultValue: null;
|
|
183
|
-
editable: boolean;
|
|
184
|
-
required: boolean;
|
|
185
|
-
step: number;
|
|
186
|
-
};
|
|
187
|
-
disabledOpacity: {
|
|
188
|
-
label: string;
|
|
189
|
-
description: string;
|
|
190
|
-
formType: string;
|
|
191
|
-
propType: string;
|
|
192
|
-
group: string;
|
|
193
|
-
defaultValue: null;
|
|
194
|
-
editable: boolean;
|
|
195
|
-
required: boolean;
|
|
196
|
-
step: number;
|
|
197
|
-
};
|
|
198
|
-
delayLongPress: {
|
|
199
|
-
label: string;
|
|
200
|
-
description: string;
|
|
201
|
-
formType: string;
|
|
202
|
-
propType: string;
|
|
203
|
-
group: string;
|
|
204
|
-
defaultValue: null;
|
|
205
|
-
editable: boolean;
|
|
206
|
-
required: boolean;
|
|
207
|
-
step: number;
|
|
208
|
-
};
|
|
209
|
-
hitSlop: {
|
|
210
|
-
label: string;
|
|
211
|
-
description: string;
|
|
212
|
-
formType: string;
|
|
213
|
-
propType: string;
|
|
214
|
-
group: string;
|
|
215
|
-
defaultValue: null;
|
|
216
|
-
editable: boolean;
|
|
217
|
-
required: boolean;
|
|
218
|
-
step: number;
|
|
219
|
-
};
|
|
220
111
|
};
|
|
221
112
|
})[];
|
|
222
113
|
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Button.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Button.ts"],"names":[],"mappings":"AAiCA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiErB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SEED_DATA: {
|
|
1
|
+
export declare const SEED_DATA: ({
|
|
2
2
|
name: string;
|
|
3
3
|
tag: string;
|
|
4
4
|
description: string;
|
|
@@ -8,7 +8,105 @@ export declare const SEED_DATA: {
|
|
|
8
8
|
layout: {
|
|
9
9
|
flex: number;
|
|
10
10
|
};
|
|
11
|
+
triggers: string[];
|
|
11
12
|
props: {
|
|
13
|
+
onRefresh: {
|
|
14
|
+
label: string;
|
|
15
|
+
description: string;
|
|
16
|
+
editable: boolean;
|
|
17
|
+
required: boolean;
|
|
18
|
+
formType: string;
|
|
19
|
+
propType: string;
|
|
20
|
+
defaultValue: null;
|
|
21
|
+
group: string;
|
|
22
|
+
};
|
|
23
|
+
onEndReached: {
|
|
24
|
+
label: string;
|
|
25
|
+
description: string;
|
|
26
|
+
editable: boolean;
|
|
27
|
+
required: boolean;
|
|
28
|
+
formType: string;
|
|
29
|
+
propType: string;
|
|
30
|
+
defaultValue: null;
|
|
31
|
+
group: string;
|
|
32
|
+
};
|
|
33
|
+
numColumns: {
|
|
34
|
+
label: string;
|
|
35
|
+
description: string;
|
|
36
|
+
group: string;
|
|
37
|
+
formType: string;
|
|
38
|
+
propType: string;
|
|
39
|
+
defaultValue: number;
|
|
40
|
+
editable: boolean;
|
|
41
|
+
required: boolean;
|
|
42
|
+
};
|
|
43
|
+
estimatedItemSize: {
|
|
44
|
+
label: string;
|
|
45
|
+
description: string;
|
|
46
|
+
formType: string;
|
|
47
|
+
propType: string;
|
|
48
|
+
group: string;
|
|
49
|
+
defaultValue: null;
|
|
50
|
+
editable: boolean;
|
|
51
|
+
required: boolean;
|
|
52
|
+
step: number;
|
|
53
|
+
};
|
|
54
|
+
optimizeItemArrangement: {
|
|
55
|
+
label: string;
|
|
56
|
+
description: string;
|
|
57
|
+
formType: string;
|
|
58
|
+
propType: string;
|
|
59
|
+
defaultValue: boolean;
|
|
60
|
+
editable: boolean;
|
|
61
|
+
required: boolean;
|
|
62
|
+
group: string;
|
|
63
|
+
};
|
|
64
|
+
onEndReachedThreshold: {
|
|
65
|
+
label: string;
|
|
66
|
+
description: string;
|
|
67
|
+
formType: string;
|
|
68
|
+
propType: string;
|
|
69
|
+
group: string;
|
|
70
|
+
defaultValue: null;
|
|
71
|
+
editable: boolean;
|
|
72
|
+
required: boolean;
|
|
73
|
+
step: number;
|
|
74
|
+
};
|
|
75
|
+
horizontal?: undefined;
|
|
76
|
+
inverted?: undefined;
|
|
77
|
+
};
|
|
78
|
+
} | {
|
|
79
|
+
name: string;
|
|
80
|
+
tag: string;
|
|
81
|
+
description: string;
|
|
82
|
+
packageName: string;
|
|
83
|
+
category: string;
|
|
84
|
+
stylesPanelSections: string[];
|
|
85
|
+
layout: {
|
|
86
|
+
flex: number;
|
|
87
|
+
};
|
|
88
|
+
triggers: string[];
|
|
89
|
+
props: {
|
|
90
|
+
onRefresh: {
|
|
91
|
+
label: string;
|
|
92
|
+
description: string;
|
|
93
|
+
editable: boolean;
|
|
94
|
+
required: boolean;
|
|
95
|
+
formType: string;
|
|
96
|
+
propType: string;
|
|
97
|
+
defaultValue: null;
|
|
98
|
+
group: string;
|
|
99
|
+
};
|
|
100
|
+
onEndReached: {
|
|
101
|
+
label: string;
|
|
102
|
+
description: string;
|
|
103
|
+
editable: boolean;
|
|
104
|
+
required: boolean;
|
|
105
|
+
formType: string;
|
|
106
|
+
propType: string;
|
|
107
|
+
defaultValue: null;
|
|
108
|
+
group: string;
|
|
109
|
+
};
|
|
12
110
|
estimatedItemSize: {
|
|
13
111
|
label: string;
|
|
14
112
|
description: string;
|
|
@@ -50,6 +148,18 @@ export declare const SEED_DATA: {
|
|
|
50
148
|
editable: boolean;
|
|
51
149
|
required: boolean;
|
|
52
150
|
};
|
|
151
|
+
onEndReachedThreshold: {
|
|
152
|
+
label: string;
|
|
153
|
+
description: string;
|
|
154
|
+
formType: string;
|
|
155
|
+
propType: string;
|
|
156
|
+
group: string;
|
|
157
|
+
defaultValue: null;
|
|
158
|
+
editable: boolean;
|
|
159
|
+
required: boolean;
|
|
160
|
+
step: number;
|
|
161
|
+
};
|
|
162
|
+
optimizeItemArrangement?: undefined;
|
|
53
163
|
};
|
|
54
|
-
};
|
|
164
|
+
})[];
|
|
55
165
|
//# 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":"AAYA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgFrB,CAAC"}
|
|
@@ -7,7 +7,28 @@ export declare const SEED_DATA: {
|
|
|
7
7
|
layout: {
|
|
8
8
|
flex: number;
|
|
9
9
|
};
|
|
10
|
+
triggers: string[];
|
|
10
11
|
props: {
|
|
12
|
+
onRefresh: {
|
|
13
|
+
label: string;
|
|
14
|
+
description: string;
|
|
15
|
+
editable: boolean;
|
|
16
|
+
required: boolean;
|
|
17
|
+
formType: string;
|
|
18
|
+
propType: string;
|
|
19
|
+
defaultValue: null;
|
|
20
|
+
group: string;
|
|
21
|
+
};
|
|
22
|
+
onEndReached: {
|
|
23
|
+
label: string;
|
|
24
|
+
description: string;
|
|
25
|
+
editable: boolean;
|
|
26
|
+
required: boolean;
|
|
27
|
+
formType: string;
|
|
28
|
+
propType: string;
|
|
29
|
+
defaultValue: null;
|
|
30
|
+
group: string;
|
|
31
|
+
};
|
|
11
32
|
horizontal: {
|
|
12
33
|
label: string;
|
|
13
34
|
description: string;
|
|
@@ -38,6 +59,27 @@ export declare const SEED_DATA: {
|
|
|
38
59
|
editable: boolean;
|
|
39
60
|
required: boolean;
|
|
40
61
|
};
|
|
62
|
+
initialNumToRender: {
|
|
63
|
+
label: string;
|
|
64
|
+
description: string;
|
|
65
|
+
formType: string;
|
|
66
|
+
propType: string;
|
|
67
|
+
defaultValue: boolean;
|
|
68
|
+
editable: boolean;
|
|
69
|
+
required: boolean;
|
|
70
|
+
group: string;
|
|
71
|
+
};
|
|
72
|
+
onEndReachedThreshold: {
|
|
73
|
+
label: string;
|
|
74
|
+
description: string;
|
|
75
|
+
formType: string;
|
|
76
|
+
propType: string;
|
|
77
|
+
group: string;
|
|
78
|
+
defaultValue: null;
|
|
79
|
+
editable: boolean;
|
|
80
|
+
required: boolean;
|
|
81
|
+
step: number;
|
|
82
|
+
};
|
|
41
83
|
};
|
|
42
84
|
};
|
|
43
85
|
//# 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":"AAUA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCrB,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export declare const SEED_DATA: {
|
|
2
|
+
name: string;
|
|
3
|
+
tag: string;
|
|
4
|
+
description: string;
|
|
5
|
+
category: string;
|
|
2
6
|
stylesPanelSections: string[];
|
|
3
7
|
layout: {};
|
|
4
8
|
triggers: string[];
|
|
@@ -13,64 +17,6 @@ export declare const SEED_DATA: {
|
|
|
13
17
|
defaultValue: null;
|
|
14
18
|
group: string;
|
|
15
19
|
};
|
|
16
|
-
onLongPress: {
|
|
17
|
-
label: string;
|
|
18
|
-
description: string;
|
|
19
|
-
editable: boolean;
|
|
20
|
-
required: boolean;
|
|
21
|
-
formType: string;
|
|
22
|
-
propType: string;
|
|
23
|
-
defaultValue: null;
|
|
24
|
-
group: string;
|
|
25
|
-
};
|
|
26
|
-
activeOpacity: {
|
|
27
|
-
label: string;
|
|
28
|
-
description: string;
|
|
29
|
-
formType: string;
|
|
30
|
-
propType: string;
|
|
31
|
-
group: string;
|
|
32
|
-
defaultValue: null;
|
|
33
|
-
editable: boolean;
|
|
34
|
-
required: boolean;
|
|
35
|
-
step: number;
|
|
36
|
-
};
|
|
37
|
-
disabledOpacity: {
|
|
38
|
-
label: string;
|
|
39
|
-
description: string;
|
|
40
|
-
formType: string;
|
|
41
|
-
propType: string;
|
|
42
|
-
group: string;
|
|
43
|
-
defaultValue: null;
|
|
44
|
-
editable: boolean;
|
|
45
|
-
required: boolean;
|
|
46
|
-
step: number;
|
|
47
|
-
};
|
|
48
|
-
delayLongPress: {
|
|
49
|
-
label: string;
|
|
50
|
-
description: string;
|
|
51
|
-
formType: string;
|
|
52
|
-
propType: string;
|
|
53
|
-
group: string;
|
|
54
|
-
defaultValue: null;
|
|
55
|
-
editable: boolean;
|
|
56
|
-
required: boolean;
|
|
57
|
-
step: number;
|
|
58
|
-
};
|
|
59
|
-
hitSlop: {
|
|
60
|
-
label: string;
|
|
61
|
-
description: string;
|
|
62
|
-
formType: string;
|
|
63
|
-
propType: string;
|
|
64
|
-
group: string;
|
|
65
|
-
defaultValue: null;
|
|
66
|
-
editable: boolean;
|
|
67
|
-
required: boolean;
|
|
68
|
-
step: number;
|
|
69
|
-
};
|
|
70
20
|
};
|
|
71
|
-
|
|
72
|
-
tag: string;
|
|
73
|
-
description: string;
|
|
74
|
-
category: string;
|
|
75
|
-
}[];
|
|
21
|
+
};
|
|
76
22
|
//# sourceMappingURL=Touchable.d.ts.map
|
|
@@ -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":"AAOA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;CAerB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@draftbit/core",
|
|
3
|
-
"version": "47.0.1-
|
|
3
|
+
"version": "47.0.1-4681da.2+4681da5",
|
|
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.0.1-
|
|
44
|
+
"@draftbit/types": "^47.0.1-4681da.2+4681da5",
|
|
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": "4681da5313ee1b823b1cf1bec4f863b754e46256"
|
|
95
95
|
}
|