@draftbit/core 46.9.1-200936.2 → 46.9.1-20b4a7.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/BottomSheet/BottomSheet.js +1 -2
- package/lib/commonjs/mappings/BottomSheet.js +2 -7
- package/lib/module/components/BottomSheet/BottomSheet.js +1 -2
- package/lib/module/constants.js +0 -1
- package/lib/module/index.js +3 -1
- package/lib/module/mappings/BottomSheet.js +3 -8
- package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/lib/typescript/src/mappings/BottomSheet.d.ts +0 -5
- package/lib/typescript/src/mappings/BottomSheet.d.ts.map +1 -1
- package/package.json +5 -3
- package/src/components/BottomSheet/BottomSheet.js +0 -1
- package/src/components/BottomSheet/BottomSheet.tsx +0 -1
- package/src/mappings/BottomSheet.js +3 -4
- package/src/mappings/BottomSheet.ts +3 -4
|
@@ -11,18 +11,13 @@ const SEED_DATA = {
|
|
|
11
11
|
description: "A draggable Bottom sheet that snaps to specific points. Renders children in ScrollView",
|
|
12
12
|
category: _types.COMPONENT_TYPES.bottomsheet,
|
|
13
13
|
stylesPanelSections: _types.CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
14
|
-
layout: {
|
|
15
|
-
paddingHorizontal: 16,
|
|
16
|
-
paddingVertical: 10,
|
|
17
|
-
flex: 1
|
|
18
|
-
},
|
|
19
14
|
triggers: [_types.Triggers.OnSettle],
|
|
20
15
|
props: {
|
|
21
16
|
onSettle: (0, _types.createActionProp)({
|
|
22
17
|
label: "On settle",
|
|
23
18
|
description: "Action to execute when sheet settles on a snap point"
|
|
24
19
|
}),
|
|
25
|
-
snapPoints: (0, _types.
|
|
20
|
+
snapPoints: (0, _types.createArrayProp)({
|
|
26
21
|
label: "Snap points",
|
|
27
22
|
description: "An array of numerical values (that represent distance from the top) where bottom sheet can snap to place. Accepts numbers and percentages (minimum 2 snap points)",
|
|
28
23
|
defaultValue: ["10%", "50%", "80%"]
|
|
@@ -35,7 +30,7 @@ const SEED_DATA = {
|
|
|
35
30
|
}),
|
|
36
31
|
showHandle: (0, _types.createStaticBoolProp)({
|
|
37
32
|
label: "Show handle",
|
|
38
|
-
description: "Whether to show the top handle or not",
|
|
33
|
+
description: "Whether to show the top sheet handle or not",
|
|
39
34
|
defaultValue: true
|
|
40
35
|
}),
|
|
41
36
|
handleColor: (0, _types.createColorProp)({
|
package/lib/module/constants.js
CHANGED
package/lib/module/index.js
CHANGED
|
@@ -36,6 +36,7 @@ export { DeckSwiper, DeckSwiperCard } from "./components/DeckSwiper";
|
|
|
36
36
|
export { TabView, TabViewItem } from "./components/TabView";
|
|
37
37
|
export { default as Markdown } from "./components/Markdown";
|
|
38
38
|
export { BottomSheet } from "./components/BottomSheet";
|
|
39
|
+
|
|
39
40
|
/* Deprecated: Fix or Delete! */
|
|
40
41
|
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
41
42
|
export { default as Picker } from "./components/Picker/Picker";
|
|
@@ -47,4 +48,5 @@ export { default as RowHeadlineImageIcon } from "./components/RowHeadlineImageIc
|
|
|
47
48
|
export { default as Slider } from "./components/Slider";
|
|
48
49
|
export { default as Stepper } from "./components/Stepper";
|
|
49
50
|
export { useAuthState } from "./components/useAuthState";
|
|
50
|
-
|
|
51
|
+
|
|
52
|
+
// a comment to fix sourcemap comment issue
|
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createStaticBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, Triggers, createActionProp, createColorProp,
|
|
1
|
+
import { COMPONENT_TYPES, createStaticBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, Triggers, createActionProp, createColorProp, createStaticNumberProp, createArrayProp } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Bottom Sheet",
|
|
4
4
|
tag: "BottomSheet",
|
|
5
5
|
description: "A draggable Bottom sheet that snaps to specific points. Renders children in ScrollView",
|
|
6
6
|
category: COMPONENT_TYPES.bottomsheet,
|
|
7
7
|
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
8
|
-
layout: {
|
|
9
|
-
paddingHorizontal: 16,
|
|
10
|
-
paddingVertical: 10,
|
|
11
|
-
flex: 1
|
|
12
|
-
},
|
|
13
8
|
triggers: [Triggers.OnSettle],
|
|
14
9
|
props: {
|
|
15
10
|
onSettle: createActionProp({
|
|
16
11
|
label: "On settle",
|
|
17
12
|
description: "Action to execute when sheet settles on a snap point"
|
|
18
13
|
}),
|
|
19
|
-
snapPoints:
|
|
14
|
+
snapPoints: createArrayProp({
|
|
20
15
|
label: "Snap points",
|
|
21
16
|
description: "An array of numerical values (that represent distance from the top) where bottom sheet can snap to place. Accepts numbers and percentages (minimum 2 snap points)",
|
|
22
17
|
defaultValue: ["10%", "50%", "80%"]
|
|
@@ -29,7 +24,7 @@ export const SEED_DATA = {
|
|
|
29
24
|
}),
|
|
30
25
|
showHandle: createStaticBoolProp({
|
|
31
26
|
label: "Show handle",
|
|
32
|
-
description: "Whether to show the top handle or not",
|
|
27
|
+
description: "Whether to show the top sheet handle or not",
|
|
33
28
|
defaultValue: true
|
|
34
29
|
}),
|
|
35
30
|
handleColor: createColorProp({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../../../src/components/BottomSheet/BottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAGL,SAAS,EACT,SAAS,EACT,eAAe,EAChB,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAGvD,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,UAAU,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IACjC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC;CACd;;;;
|
|
1
|
+
{"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../../../src/components/BottomSheet/BottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAGL,SAAS,EACT,SAAS,EACT,eAAe,EAChB,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAGvD,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,UAAU,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IACjC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC;CACd;;;;AA+FD,wBAAsC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../../src/mappings/BottomSheet.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../../src/mappings/BottomSheet.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiErB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@draftbit/core",
|
|
3
|
-
"version": "46.9.1-
|
|
3
|
+
"version": "46.9.1-20b4a7.2+20b4a72",
|
|
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": "^46.9.1-
|
|
44
|
+
"@draftbit/types": "^46.9.1-20b4a7.2+20b4a72",
|
|
45
45
|
"@material-ui/core": "^4.11.0",
|
|
46
46
|
"@material-ui/pickers": "^3.2.10",
|
|
47
47
|
"@react-native-community/slider": "4.2.3",
|
|
@@ -54,9 +54,11 @@
|
|
|
54
54
|
"lodash.omit": "^4.5.0",
|
|
55
55
|
"lodash.tonumber": "^4.0.3",
|
|
56
56
|
"react-native-deck-swiper": "^2.0.12",
|
|
57
|
+
"react-native-gesture-handler": "~2.5.0",
|
|
57
58
|
"react-native-markdown-display": "^7.0.0-alpha.2",
|
|
58
59
|
"react-native-modal-datetime-picker": "^13.0.0",
|
|
59
60
|
"react-native-pager-view": "5.4.24",
|
|
61
|
+
"react-native-reanimated": "~2.9.1",
|
|
60
62
|
"react-native-shadow-2": "^7.0.6",
|
|
61
63
|
"react-native-svg": "12.3.0",
|
|
62
64
|
"react-native-tab-view": "^3.4.0",
|
|
@@ -96,5 +98,5 @@
|
|
|
96
98
|
]
|
|
97
99
|
]
|
|
98
100
|
},
|
|
99
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "20b4a726683f84a6c5b84d333bbbd8ce0f2bab46"
|
|
100
102
|
}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createStaticBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, Triggers, createActionProp, createColorProp,
|
|
1
|
+
import { COMPONENT_TYPES, createStaticBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, Triggers, createActionProp, createColorProp, createStaticNumberProp, createArrayProp, } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Bottom Sheet",
|
|
4
4
|
tag: "BottomSheet",
|
|
5
5
|
description: "A draggable Bottom sheet that snaps to specific points. Renders children in ScrollView",
|
|
6
6
|
category: COMPONENT_TYPES.bottomsheet,
|
|
7
7
|
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
8
|
-
layout: { paddingHorizontal: 16, paddingVertical: 10, flex: 1 },
|
|
9
8
|
triggers: [Triggers.OnSettle],
|
|
10
9
|
props: {
|
|
11
10
|
onSettle: createActionProp({
|
|
12
11
|
label: "On settle",
|
|
13
12
|
description: "Action to execute when sheet settles on a snap point",
|
|
14
13
|
}),
|
|
15
|
-
snapPoints:
|
|
14
|
+
snapPoints: createArrayProp({
|
|
16
15
|
label: "Snap points",
|
|
17
16
|
description: "An array of numerical values (that represent distance from the top) where bottom sheet can snap to place. Accepts numbers and percentages (minimum 2 snap points)",
|
|
18
17
|
defaultValue: ["10%", "50%", "80%"],
|
|
@@ -25,7 +24,7 @@ export const SEED_DATA = {
|
|
|
25
24
|
}),
|
|
26
25
|
showHandle: createStaticBoolProp({
|
|
27
26
|
label: "Show handle",
|
|
28
|
-
description: "Whether to show the top handle or not",
|
|
27
|
+
description: "Whether to show the top sheet handle or not",
|
|
29
28
|
defaultValue: true,
|
|
30
29
|
}),
|
|
31
30
|
handleColor: createColorProp({
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
Triggers,
|
|
6
6
|
createActionProp,
|
|
7
7
|
createColorProp,
|
|
8
|
-
createStaticArrayProp,
|
|
9
8
|
createStaticNumberProp,
|
|
9
|
+
createArrayProp,
|
|
10
10
|
} from "@draftbit/types";
|
|
11
11
|
|
|
12
12
|
export const SEED_DATA = {
|
|
@@ -16,14 +16,13 @@ export const SEED_DATA = {
|
|
|
16
16
|
"A draggable Bottom sheet that snaps to specific points. Renders children in ScrollView",
|
|
17
17
|
category: COMPONENT_TYPES.bottomsheet,
|
|
18
18
|
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
19
|
-
layout: { paddingHorizontal: 16, paddingVertical: 10, flex: 1 },
|
|
20
19
|
triggers: [Triggers.OnSettle],
|
|
21
20
|
props: {
|
|
22
21
|
onSettle: createActionProp({
|
|
23
22
|
label: "On settle",
|
|
24
23
|
description: "Action to execute when sheet settles on a snap point",
|
|
25
24
|
}),
|
|
26
|
-
snapPoints:
|
|
25
|
+
snapPoints: createArrayProp({
|
|
27
26
|
label: "Snap points",
|
|
28
27
|
description:
|
|
29
28
|
"An array of numerical values (that represent distance from the top) where bottom sheet can snap to place. Accepts numbers and percentages (minimum 2 snap points)",
|
|
@@ -37,7 +36,7 @@ export const SEED_DATA = {
|
|
|
37
36
|
}),
|
|
38
37
|
showHandle: createStaticBoolProp({
|
|
39
38
|
label: "Show handle",
|
|
40
|
-
description: "Whether to show the top handle or not",
|
|
39
|
+
description: "Whether to show the top sheet handle or not",
|
|
41
40
|
defaultValue: true,
|
|
42
41
|
}),
|
|
43
42
|
handleColor: createColorProp({
|