@draftbit/core 46.9.1-328e35.2 → 46.9.1-44c1ae.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/CircleImage.js +1 -15
- package/lib/commonjs/components/Container.js +15 -4
- package/lib/commonjs/components/Elevation.js +2 -14
- package/lib/commonjs/components/Table/Table.js +91 -0
- package/lib/commonjs/components/Table/TableCell.js +49 -0
- package/lib/commonjs/components/Table/TableCommon.js +30 -0
- package/lib/commonjs/components/Table/TableRow.js +61 -0
- package/lib/commonjs/components/Table/index.js +27 -0
- package/lib/commonjs/components/TextField.js +28 -76
- package/lib/commonjs/index.js +19 -7
- package/lib/commonjs/mappings/Table.js +143 -0
- package/lib/module/components/Table/Table.js +83 -0
- package/lib/module/components/Table/TableCell.js +41 -0
- package/lib/module/components/Table/TableCommon.js +21 -0
- package/lib/module/components/Table/TableRow.js +53 -0
- package/lib/module/components/Table/index.js +3 -0
- package/lib/module/index.js +1 -1
- package/lib/module/mappings/Table.js +136 -0
- package/lib/typescript/src/components/Table/Table.d.ts +19 -0
- package/lib/typescript/src/components/Table/Table.d.ts.map +1 -0
- package/lib/typescript/src/components/Table/TableCell.d.ts +9 -0
- package/lib/typescript/src/components/Table/TableCell.d.ts.map +1 -0
- package/lib/typescript/src/components/Table/TableCommon.d.ts +20 -0
- package/lib/typescript/src/components/Table/TableCommon.d.ts.map +1 -0
- package/lib/typescript/src/components/Table/TableRow.d.ts +14 -0
- package/lib/typescript/src/components/Table/TableRow.d.ts.map +1 -0
- package/lib/typescript/src/components/Table/index.d.ts +4 -0
- package/lib/typescript/src/components/Table/index.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/mappings/Table.d.ts +314 -0
- package/lib/typescript/src/mappings/Table.d.ts.map +1 -0
- package/package.json +3 -5
- package/src/components/Table/Table.js +64 -0
- package/src/components/Table/Table.tsx +136 -0
- package/src/components/Table/TableCell.js +31 -0
- package/src/components/Table/TableCell.tsx +63 -0
- package/src/components/Table/TableCommon.js +12 -0
- package/src/components/Table/TableCommon.ts +40 -0
- package/src/components/Table/TableRow.js +37 -0
- package/src/components/Table/TableRow.tsx +77 -0
- package/src/components/Table/index.js +3 -0
- package/src/components/Table/index.tsx +3 -0
- package/src/index.js +1 -1
- package/src/index.tsx +1 -1
- package/src/mappings/Table.js +137 -0
- package/src/mappings/Table.ts +161 -0
- package/lib/commonjs/components/BottomSheet/BottomSheet.js +0 -88
- package/lib/commonjs/components/BottomSheet/BottomSheetComponent.js +0 -464
- package/lib/commonjs/components/BottomSheet/index.js +0 -13
- package/lib/commonjs/mappings/BottomSheet.js +0 -70
- package/lib/module/components/BottomSheet/BottomSheet.js +0 -80
- package/lib/module/components/BottomSheet/BottomSheetComponent.js +0 -470
- package/lib/module/components/BottomSheet/index.js +0 -1
- package/lib/module/mappings/BottomSheet.js +0 -63
- package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts +0 -20
- package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts.map +0 -1
- package/lib/typescript/src/components/BottomSheet/BottomSheetComponent.d.ts +0 -170
- package/lib/typescript/src/components/BottomSheet/BottomSheetComponent.d.ts.map +0 -1
- package/lib/typescript/src/components/BottomSheet/index.d.ts +0 -2
- package/lib/typescript/src/components/BottomSheet/index.d.ts.map +0 -1
- package/lib/typescript/src/mappings/BottomSheet.d.ts +0 -115
- package/lib/typescript/src/mappings/BottomSheet.d.ts.map +0 -1
- package/src/components/BottomSheet/BottomSheet.js +0 -56
- package/src/components/BottomSheet/BottomSheet.tsx +0 -120
- package/src/components/BottomSheet/BottomSheetComponent.js +0 -437
- package/src/components/BottomSheet/BottomSheetComponent.tsx +0 -895
- package/src/components/BottomSheet/index.js +0 -1
- package/src/components/BottomSheet/index.ts +0 -1
- package/src/mappings/BottomSheet.js +0 -63
- package/src/mappings/BottomSheet.ts +0 -77
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as BottomSheet } from "./BottomSheet";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as BottomSheet } from "./BottomSheet";
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createStaticBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, Triggers, createActionProp, createColorProp, createStaticNumberProp, createArrayProp, } from "@draftbit/types";
|
|
2
|
-
export const SEED_DATA = {
|
|
3
|
-
name: "Bottom Sheet",
|
|
4
|
-
tag: "BottomSheet",
|
|
5
|
-
description: "A draggable Bottom sheet that snaps to specific points. Renders children in ScrollView",
|
|
6
|
-
category: COMPONENT_TYPES.bottomsheet,
|
|
7
|
-
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
8
|
-
triggers: [Triggers.OnSettle],
|
|
9
|
-
props: {
|
|
10
|
-
onSettle: createActionProp({
|
|
11
|
-
label: "On settle",
|
|
12
|
-
description: "Action to execute when sheet settles on a snap point",
|
|
13
|
-
}),
|
|
14
|
-
snapPoints: createArrayProp({
|
|
15
|
-
label: "Snap points",
|
|
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)",
|
|
17
|
-
defaultValue: ["10%", "50%", "80%"],
|
|
18
|
-
}),
|
|
19
|
-
initialSnapIndex: createStaticNumberProp({
|
|
20
|
-
label: "Initial snap index",
|
|
21
|
-
description: "Index of the snap point to be used as the initial point",
|
|
22
|
-
defaultValue: 0,
|
|
23
|
-
required: false,
|
|
24
|
-
}),
|
|
25
|
-
showHandle: createStaticBoolProp({
|
|
26
|
-
label: "Show handle",
|
|
27
|
-
description: "Whether to show the top sheet handle or not",
|
|
28
|
-
defaultValue: true,
|
|
29
|
-
}),
|
|
30
|
-
handleColor: createColorProp({
|
|
31
|
-
label: "Handle color",
|
|
32
|
-
description: "Color of the top handle",
|
|
33
|
-
defaultValue: "divider",
|
|
34
|
-
}),
|
|
35
|
-
topBorderRadius: createStaticNumberProp({
|
|
36
|
-
label: "Top border radius",
|
|
37
|
-
description: "Border radius of top corners",
|
|
38
|
-
defaultValue: 20,
|
|
39
|
-
required: false,
|
|
40
|
-
}),
|
|
41
|
-
borderWidth: createStaticNumberProp({
|
|
42
|
-
label: "Border width",
|
|
43
|
-
description: "Width of bottom sheet borders",
|
|
44
|
-
defaultValue: 1,
|
|
45
|
-
required: false,
|
|
46
|
-
}),
|
|
47
|
-
borderColor: createColorProp({
|
|
48
|
-
label: "Border color",
|
|
49
|
-
description: "Color of bottom sheet borders",
|
|
50
|
-
defaultValue: "divider",
|
|
51
|
-
}),
|
|
52
|
-
showsVerticalScrollIndicator: createStaticBoolProp({
|
|
53
|
-
label: "Show Vertical Scroll Indicator",
|
|
54
|
-
description: "When true, shows a vertical scroll indicator. The default value is true.",
|
|
55
|
-
defaultValue: true,
|
|
56
|
-
}),
|
|
57
|
-
bounces: createStaticBoolProp({
|
|
58
|
-
label: "Bounce",
|
|
59
|
-
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.",
|
|
60
|
-
defaultValue: true,
|
|
61
|
-
}),
|
|
62
|
-
},
|
|
63
|
-
};
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
COMPONENT_TYPES,
|
|
3
|
-
createStaticBoolProp,
|
|
4
|
-
CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
5
|
-
Triggers,
|
|
6
|
-
createActionProp,
|
|
7
|
-
createColorProp,
|
|
8
|
-
createStaticNumberProp,
|
|
9
|
-
createArrayProp,
|
|
10
|
-
} from "@draftbit/types";
|
|
11
|
-
|
|
12
|
-
export const SEED_DATA = {
|
|
13
|
-
name: "Bottom Sheet",
|
|
14
|
-
tag: "BottomSheet",
|
|
15
|
-
description:
|
|
16
|
-
"A draggable Bottom sheet that snaps to specific points. Renders children in ScrollView",
|
|
17
|
-
category: COMPONENT_TYPES.bottomsheet,
|
|
18
|
-
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
19
|
-
triggers: [Triggers.OnSettle],
|
|
20
|
-
props: {
|
|
21
|
-
onSettle: createActionProp({
|
|
22
|
-
label: "On settle",
|
|
23
|
-
description: "Action to execute when sheet settles on a snap point",
|
|
24
|
-
}),
|
|
25
|
-
snapPoints: createArrayProp({
|
|
26
|
-
label: "Snap points",
|
|
27
|
-
description:
|
|
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)",
|
|
29
|
-
defaultValue: ["10%", "50%", "80%"],
|
|
30
|
-
}),
|
|
31
|
-
initialSnapIndex: createStaticNumberProp({
|
|
32
|
-
label: "Initial snap index",
|
|
33
|
-
description: "Index of the snap point to be used as the initial point",
|
|
34
|
-
defaultValue: 0,
|
|
35
|
-
required: false,
|
|
36
|
-
}),
|
|
37
|
-
showHandle: createStaticBoolProp({
|
|
38
|
-
label: "Show handle",
|
|
39
|
-
description: "Whether to show the top sheet handle or not",
|
|
40
|
-
defaultValue: true,
|
|
41
|
-
}),
|
|
42
|
-
handleColor: createColorProp({
|
|
43
|
-
label: "Handle color",
|
|
44
|
-
description: "Color of the top handle",
|
|
45
|
-
defaultValue: "divider",
|
|
46
|
-
}),
|
|
47
|
-
topBorderRadius: createStaticNumberProp({
|
|
48
|
-
label: "Top border radius",
|
|
49
|
-
description: "Border radius of top corners",
|
|
50
|
-
defaultValue: 20,
|
|
51
|
-
required: false,
|
|
52
|
-
}),
|
|
53
|
-
borderWidth: createStaticNumberProp({
|
|
54
|
-
label: "Border width",
|
|
55
|
-
description: "Width of bottom sheet borders",
|
|
56
|
-
defaultValue: 1,
|
|
57
|
-
required: false,
|
|
58
|
-
}),
|
|
59
|
-
borderColor: createColorProp({
|
|
60
|
-
label: "Border color",
|
|
61
|
-
description: "Color of bottom sheet borders",
|
|
62
|
-
defaultValue: "divider",
|
|
63
|
-
}),
|
|
64
|
-
showsVerticalScrollIndicator: createStaticBoolProp({
|
|
65
|
-
label: "Show Vertical Scroll Indicator",
|
|
66
|
-
description:
|
|
67
|
-
"When true, shows a vertical scroll indicator. The default value is true.",
|
|
68
|
-
defaultValue: true,
|
|
69
|
-
}),
|
|
70
|
-
bounces: createStaticBoolProp({
|
|
71
|
-
label: "Bounce",
|
|
72
|
-
description:
|
|
73
|
-
"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.",
|
|
74
|
-
defaultValue: true,
|
|
75
|
-
}),
|
|
76
|
-
},
|
|
77
|
-
};
|