@draftbit/core 46.4.4-535477.2 → 46.4.4-618dac.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.native.js +68 -0
- package/lib/commonjs/components/BottomSheet/BottomSheet.web.js +97 -0
- package/lib/commonjs/components/BottomSheet/index.js +15 -0
- package/lib/commonjs/components/BottomSheet/types.js +5 -0
- package/lib/commonjs/components/CircleImage.js +16 -2
- package/lib/commonjs/components/Text.js +6 -2
- package/lib/commonjs/components/TextField.js +5 -1
- package/lib/commonjs/index.js +8 -0
- package/lib/commonjs/mappings/AudioPlayer.js +2 -32
- package/lib/commonjs/mappings/BottomSheet.js +22 -0
- package/lib/commonjs/mappings/TextField.js +1 -1
- package/lib/commonjs/mappings/TextInput.js +1 -1
- package/lib/module/components/BottomSheet/BottomSheet.native.js +50 -0
- package/lib/module/components/BottomSheet/BottomSheet.web.js +78 -0
- package/lib/module/components/BottomSheet/index.js +2 -0
- package/lib/module/components/BottomSheet/types.js +1 -0
- package/lib/module/components/Text.js +6 -2
- package/lib/module/components/TextField.js +5 -1
- package/lib/module/index.js +1 -0
- package/lib/module/mappings/AudioPlayer.js +3 -33
- package/lib/module/mappings/BottomSheet.js +13 -0
- package/lib/module/mappings/TextField.js +1 -1
- package/lib/module/mappings/TextInput.js +1 -1
- package/lib/typescript/src/components/BottomSheet/BottomSheet.native.d.ts +4 -0
- package/lib/typescript/src/components/BottomSheet/BottomSheet.web.d.ts +4 -0
- package/lib/typescript/src/components/BottomSheet/index.d.ts +1 -0
- package/lib/typescript/src/components/BottomSheet/types.d.ts +8 -0
- package/lib/typescript/src/components/Text.d.ts +2 -1
- package/lib/typescript/src/components/TextField.d.ts +2 -1
- package/lib/typescript/src/index.d.ts +1 -0
- package/lib/typescript/src/mappings/AudioPlayer.d.ts +1 -62
- package/lib/typescript/src/mappings/BottomSheet.d.ts +19 -0
- package/lib/typescript/src/mappings/TextField.d.ts +2 -2
- package/lib/typescript/src/mappings/TextInput.d.ts +1 -1
- package/package.json +5 -3
- package/src/components/BottomSheet/BottomSheet.native.js +37 -0
- package/src/components/BottomSheet/BottomSheet.native.tsx +60 -0
- package/src/components/BottomSheet/BottomSheet.web.js +56 -0
- package/src/components/BottomSheet/BottomSheet.web.tsx +90 -0
- package/src/components/BottomSheet/index.js +2 -0
- package/src/components/BottomSheet/index.tsx +2 -0
- package/src/components/BottomSheet/types.js +1 -0
- package/src/components/BottomSheet/types.tsx +8 -0
- package/src/components/Text.js +8 -2
- package/src/components/Text.tsx +6 -1
- package/src/components/TextField.js +6 -1
- package/src/components/TextField.tsx +7 -1
- package/src/index.js +1 -0
- package/src/index.tsx +1 -0
- package/src/mappings/AudioPlayer.js +2 -39
- package/src/mappings/AudioPlayer.ts +1 -41
- package/src/mappings/BottomSheet.js +20 -0
- package/src/mappings/BottomSheet.ts +25 -0
- package/src/mappings/TextField.js +1 -1
- package/src/mappings/TextField.ts +1 -1
- package/src/mappings/TextInput.js +1 -1
- package/src/mappings/TextInput.ts +1 -1
|
@@ -3,9 +3,6 @@ import {
|
|
|
3
3
|
COMPONENT_TYPES,
|
|
4
4
|
FORM_TYPES,
|
|
5
5
|
PROP_TYPES,
|
|
6
|
-
StylesPanelSections,
|
|
7
|
-
createColorProp,
|
|
8
|
-
createNumberProp,
|
|
9
6
|
} from "@draftbit/types";
|
|
10
7
|
|
|
11
8
|
export const SEED_DATA = {
|
|
@@ -13,24 +10,7 @@ export const SEED_DATA = {
|
|
|
13
10
|
tag: "AudioPlayer",
|
|
14
11
|
description: "Given a source URL, plays sounds & audio!",
|
|
15
12
|
category: COMPONENT_TYPES.media,
|
|
16
|
-
|
|
17
|
-
StylesPanelSections.Typography,
|
|
18
|
-
StylesPanelSections.Background,
|
|
19
|
-
StylesPanelSections.Borders,
|
|
20
|
-
StylesPanelSections.Size,
|
|
21
|
-
StylesPanelSections.MarginsAndPaddings,
|
|
22
|
-
StylesPanelSections.Position,
|
|
23
|
-
],
|
|
24
|
-
layout: {
|
|
25
|
-
backgroundColor: "#eee",
|
|
26
|
-
paddingLeft: 16,
|
|
27
|
-
paddingRight: 16,
|
|
28
|
-
paddingTop: 8,
|
|
29
|
-
paddingBottom: 8,
|
|
30
|
-
borderRadius: 24,
|
|
31
|
-
flexDirection: "row",
|
|
32
|
-
alignItems: "center",
|
|
33
|
-
},
|
|
13
|
+
layout: {},
|
|
34
14
|
props: {
|
|
35
15
|
source: {
|
|
36
16
|
group: GROUPS.data,
|
|
@@ -43,25 +23,5 @@ export const SEED_DATA = {
|
|
|
43
23
|
formType: FORM_TYPES.sourceUrl,
|
|
44
24
|
propType: PROP_TYPES.OBJECT,
|
|
45
25
|
},
|
|
46
|
-
sliderColor: createColorProp({
|
|
47
|
-
label: "Thumb Color",
|
|
48
|
-
defaultValue: "strong",
|
|
49
|
-
}),
|
|
50
|
-
completedTrackColor: createColorProp({
|
|
51
|
-
label: "Completed Track Color",
|
|
52
|
-
defaultValue: "background",
|
|
53
|
-
}),
|
|
54
|
-
remainingTrackColor: createColorProp({
|
|
55
|
-
label: "Remaining Track Color",
|
|
56
|
-
defaultValue: "light",
|
|
57
|
-
}),
|
|
58
|
-
trackThumbSize: createNumberProp({
|
|
59
|
-
label: "Thumb Size",
|
|
60
|
-
defaultValue: 24,
|
|
61
|
-
}),
|
|
62
|
-
playIconColor: createColorProp({
|
|
63
|
-
label: "Play Icon Color",
|
|
64
|
-
defaultValue: "strong",
|
|
65
|
-
}),
|
|
66
26
|
},
|
|
67
27
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { COMPONENT_TYPES, createNumberProp, StylesPanelSections, } from "@draftbit/types";
|
|
2
|
+
export const SEED_DATA = {
|
|
3
|
+
name: "Bottom Sheet",
|
|
4
|
+
tag: "BottomSheet",
|
|
5
|
+
category: COMPONENT_TYPES.container,
|
|
6
|
+
stylesPanelSections: [
|
|
7
|
+
StylesPanelSections.Background,
|
|
8
|
+
StylesPanelSections.Borders,
|
|
9
|
+
StylesPanelSections.Size,
|
|
10
|
+
StylesPanelSections.MarginsAndPaddings,
|
|
11
|
+
StylesPanelSections.Position,
|
|
12
|
+
StylesPanelSections.Effects,
|
|
13
|
+
],
|
|
14
|
+
props: {
|
|
15
|
+
step: createNumberProp({
|
|
16
|
+
label: "Step",
|
|
17
|
+
description: "Step can be -1, 0, 1, or 2.",
|
|
18
|
+
}),
|
|
19
|
+
},
|
|
20
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
COMPONENT_TYPES,
|
|
3
|
+
createNumberProp,
|
|
4
|
+
StylesPanelSections,
|
|
5
|
+
} from "@draftbit/types";
|
|
6
|
+
|
|
7
|
+
export const SEED_DATA = {
|
|
8
|
+
name: "Bottom Sheet",
|
|
9
|
+
tag: "BottomSheet",
|
|
10
|
+
category: COMPONENT_TYPES.container,
|
|
11
|
+
stylesPanelSections: [
|
|
12
|
+
StylesPanelSections.Background,
|
|
13
|
+
StylesPanelSections.Borders,
|
|
14
|
+
StylesPanelSections.Size,
|
|
15
|
+
StylesPanelSections.MarginsAndPaddings,
|
|
16
|
+
StylesPanelSections.Position,
|
|
17
|
+
StylesPanelSections.Effects,
|
|
18
|
+
],
|
|
19
|
+
props: {
|
|
20
|
+
step: createNumberProp({
|
|
21
|
+
label: "Step",
|
|
22
|
+
description: "Step can be -1, 0, 1, or 2.",
|
|
23
|
+
}),
|
|
24
|
+
},
|
|
25
|
+
};
|
|
@@ -16,7 +16,7 @@ const SEED_DATA_PROPS = {
|
|
|
16
16
|
description: "Can automatically capitalize sentences, words, and characters (Default: none).",
|
|
17
17
|
editable: true,
|
|
18
18
|
required: false,
|
|
19
|
-
defaultValue:
|
|
19
|
+
defaultValue: "none",
|
|
20
20
|
options: ["none", "sentences", "words", "characters"],
|
|
21
21
|
formType: FORM_TYPES.flatArray,
|
|
22
22
|
propType: PROP_TYPES.STRING,
|
|
@@ -30,7 +30,7 @@ const SEED_DATA_PROPS = {
|
|
|
30
30
|
"Can automatically capitalize sentences, words, and characters (Default: none).",
|
|
31
31
|
editable: true,
|
|
32
32
|
required: false,
|
|
33
|
-
defaultValue:
|
|
33
|
+
defaultValue: "none",
|
|
34
34
|
options: ["none", "sentences", "words", "characters"],
|
|
35
35
|
formType: FORM_TYPES.flatArray,
|
|
36
36
|
propType: PROP_TYPES.STRING,
|
|
@@ -104,7 +104,7 @@ export const SEED_DATA = [
|
|
|
104
104
|
description: "Can automatically capitalize sentences, words, and characters (Default: none).",
|
|
105
105
|
editable: true,
|
|
106
106
|
required: false,
|
|
107
|
-
defaultValue:
|
|
107
|
+
defaultValue: "none",
|
|
108
108
|
options: ["none", "sentences", "words", "characters"],
|
|
109
109
|
formType: FORM_TYPES.flatArray,
|
|
110
110
|
propType: PROP_TYPES.STRING,
|
|
@@ -121,7 +121,7 @@ export const SEED_DATA = [
|
|
|
121
121
|
"Can automatically capitalize sentences, words, and characters (Default: none).",
|
|
122
122
|
editable: true,
|
|
123
123
|
required: false,
|
|
124
|
-
defaultValue:
|
|
124
|
+
defaultValue: "none",
|
|
125
125
|
options: ["none", "sentences", "words", "characters"],
|
|
126
126
|
formType: FORM_TYPES.flatArray,
|
|
127
127
|
propType: PROP_TYPES.STRING,
|