@draftbit/core 46.10.3-0bad1e.2 → 46.10.3-1ab4b6.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/Checkbox/CheckboxGroup.js +17 -2
- package/lib/commonjs/components/Checkbox/CheckboxRow.js +6 -23
- package/lib/commonjs/components/FAB.js +4 -18
- package/lib/commonjs/components/Shadow.js +15 -2
- package/lib/commonjs/components/Table/Table.js +123 -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/index.js +19 -7
- package/lib/commonjs/mappings/Layout.js +85 -177
- package/lib/commonjs/mappings/Table.js +140 -0
- package/lib/module/components/Table/Table.js +114 -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/Layout.js +86 -178
- package/lib/module/mappings/Table.js +133 -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/{DeprecatedCardWrapper.d.ts → Table/TableRow.d.ts} +7 -8
- 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/Layout.d.ts +72 -108
- package/lib/typescript/src/mappings/Layout.d.ts.map +1 -1
- package/lib/typescript/src/mappings/{CardBlock.d.ts → Table.d.ts} +129 -81
- package/lib/typescript/src/mappings/Table.d.ts.map +1 -0
- package/package.json +3 -3
- package/src/components/Table/Table.js +93 -0
- package/src/components/Table/Table.tsx +176 -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 +2 -1
- package/src/mappings/Layout.js +100 -176
- package/src/mappings/Layout.ts +116 -178
- package/src/mappings/Table.js +150 -0
- package/src/mappings/Table.ts +170 -0
- package/lib/commonjs/components/Container.js +0 -93
- package/lib/commonjs/components/DeprecatedCardWrapper.js +0 -40
- package/lib/commonjs/components/DeprecatedFAB.js +0 -157
- package/lib/commonjs/components/ProgressIndicator.js +0 -55
- package/lib/commonjs/components/ResizeMode.js +0 -5
- package/lib/commonjs/mappings/CardBlock.js +0 -126
- package/lib/commonjs/mappings/CardContainer.js +0 -108
- package/lib/commonjs/mappings/CardContainerRating.js +0 -130
- package/lib/commonjs/mappings/CardContainerShortImage.js +0 -124
- package/lib/commonjs/mappings/CardInline.js +0 -59
- package/lib/commonjs/mappings/Container.js +0 -37
- package/lib/commonjs/mappings/NativeBase/Layout.js +0 -97
- package/lib/commonjs/mappings/ProgressIndicator.js +0 -188
- package/lib/module/components/Container.js +0 -83
- package/lib/module/components/DeprecatedCardWrapper.js +0 -32
- package/lib/module/components/DeprecatedFAB.js +0 -147
- package/lib/module/components/ProgressIndicator.js +0 -45
- package/lib/module/components/ResizeMode.js +0 -1
- package/lib/module/mappings/CardBlock.js +0 -119
- package/lib/module/mappings/CardContainer.js +0 -101
- package/lib/module/mappings/CardContainerRating.js +0 -123
- package/lib/module/mappings/CardContainerShortImage.js +0 -117
- package/lib/module/mappings/CardInline.js +0 -52
- package/lib/module/mappings/Container.js +0 -30
- package/lib/module/mappings/NativeBase/Layout.js +0 -90
- package/lib/module/mappings/ProgressIndicator.js +0 -181
- package/lib/typescript/src/components/Container.d.ts +0 -21
- package/lib/typescript/src/components/Container.d.ts.map +0 -1
- package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts.map +0 -1
- package/lib/typescript/src/components/DeprecatedFAB.d.ts +0 -56
- package/lib/typescript/src/components/DeprecatedFAB.d.ts.map +0 -1
- package/lib/typescript/src/components/ProgressIndicator.d.ts +0 -24
- package/lib/typescript/src/components/ProgressIndicator.d.ts.map +0 -1
- package/lib/typescript/src/components/ResizeMode.d.ts +0 -2
- package/lib/typescript/src/components/ResizeMode.d.ts.map +0 -1
- package/lib/typescript/src/mappings/CardBlock.d.ts.map +0 -1
- package/lib/typescript/src/mappings/CardContainer.d.ts +0 -102
- package/lib/typescript/src/mappings/CardContainer.d.ts.map +0 -1
- package/lib/typescript/src/mappings/CardContainerRating.d.ts +0 -108
- package/lib/typescript/src/mappings/CardContainerRating.d.ts.map +0 -1
- package/lib/typescript/src/mappings/CardContainerShortImage.d.ts +0 -139
- package/lib/typescript/src/mappings/CardContainerShortImage.d.ts.map +0 -1
- package/lib/typescript/src/mappings/CardInline.d.ts +0 -62
- package/lib/typescript/src/mappings/CardInline.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Container.d.ts +0 -55
- package/lib/typescript/src/mappings/Container.d.ts.map +0 -1
- package/lib/typescript/src/mappings/NativeBase/Layout.d.ts +0 -107
- package/lib/typescript/src/mappings/NativeBase/Layout.d.ts.map +0 -1
- package/lib/typescript/src/mappings/ProgressIndicator.d.ts +0 -181
- package/lib/typescript/src/mappings/ProgressIndicator.d.ts.map +0 -1
- package/src/components/Container.js +0 -43
- package/src/components/Container.tsx +0 -116
- package/src/components/DeprecatedCardWrapper.js +0 -18
- package/src/components/DeprecatedCardWrapper.tsx +0 -46
- package/src/components/DeprecatedFAB.js +0 -114
- package/src/components/DeprecatedFAB.tsx +0 -231
- package/src/components/ProgressIndicator.js +0 -27
- package/src/components/ProgressIndicator.tsx +0 -71
- package/src/components/ResizeMode.js +0 -1
- package/src/components/ResizeMode.ts +0 -7
- package/src/mappings/CardBlock.js +0 -123
- package/src/mappings/CardBlock.ts +0 -136
- package/src/mappings/CardContainer.js +0 -104
- package/src/mappings/CardContainer.ts +0 -116
- package/src/mappings/CardContainerRating.js +0 -126
- package/src/mappings/CardContainerRating.ts +0 -137
- package/src/mappings/CardContainerShortImage.js +0 -120
- package/src/mappings/CardContainerShortImage.ts +0 -130
- package/src/mappings/CardInline.js +0 -52
- package/src/mappings/CardInline.ts +0 -61
- package/src/mappings/Container.js +0 -30
- package/src/mappings/Container.ts +0 -41
- package/src/mappings/NativeBase/Layout.js +0 -101
- package/src/mappings/NativeBase/Layout.ts +0 -116
- package/src/mappings/ProgressIndicator.js +0 -181
- package/src/mappings/ProgressIndicator.ts +0 -190
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
GROUPS,
|
|
3
|
-
COMPONENT_TYPES,
|
|
4
|
-
FORM_TYPES,
|
|
5
|
-
PROP_TYPES,
|
|
6
|
-
createElevationType,
|
|
7
|
-
BLOCK_STYLES_SECTIONS,
|
|
8
|
-
} from "@draftbit/types";
|
|
9
|
-
|
|
10
|
-
export const SEED_DATA = {
|
|
11
|
-
name: "Inline Card",
|
|
12
|
-
tag: "CardInline",
|
|
13
|
-
description:
|
|
14
|
-
"An elevated card with image and a title and description overlayed, that takes up the full width of its container.",
|
|
15
|
-
category: COMPONENT_TYPES.card,
|
|
16
|
-
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
17
|
-
layout: {},
|
|
18
|
-
props: {
|
|
19
|
-
image: {
|
|
20
|
-
group: GROUPS.data,
|
|
21
|
-
label: "Image",
|
|
22
|
-
description: "Image",
|
|
23
|
-
formType: FORM_TYPES.image,
|
|
24
|
-
propType: PROP_TYPES.ASSET,
|
|
25
|
-
defaultValue: null,
|
|
26
|
-
editable: true,
|
|
27
|
-
required: false,
|
|
28
|
-
},
|
|
29
|
-
title: {
|
|
30
|
-
group: GROUPS.data,
|
|
31
|
-
label: "Title",
|
|
32
|
-
description: "Text to display",
|
|
33
|
-
formType: FORM_TYPES.string,
|
|
34
|
-
propType: PROP_TYPES.STRING,
|
|
35
|
-
defaultValue: "Beautiful West Coast Villa",
|
|
36
|
-
editable: true,
|
|
37
|
-
required: false,
|
|
38
|
-
},
|
|
39
|
-
subtitle: {
|
|
40
|
-
group: GROUPS.data,
|
|
41
|
-
label: "Subtitle",
|
|
42
|
-
description: "Subtitle text",
|
|
43
|
-
formType: FORM_TYPES.string,
|
|
44
|
-
propType: PROP_TYPES.STRING,
|
|
45
|
-
defaultValue: "San Diego",
|
|
46
|
-
editable: true,
|
|
47
|
-
required: false,
|
|
48
|
-
},
|
|
49
|
-
aspectRatio: {
|
|
50
|
-
group: GROUPS.basic,
|
|
51
|
-
label: "Aspect ratio",
|
|
52
|
-
description: "Aspect ratio of the image",
|
|
53
|
-
formType: FORM_TYPES.aspectRatio,
|
|
54
|
-
propType: PROP_TYPES.NUMBER,
|
|
55
|
-
defaultValue: 1.5,
|
|
56
|
-
editable: true,
|
|
57
|
-
required: false,
|
|
58
|
-
},
|
|
59
|
-
elevation: createElevationType(2),
|
|
60
|
-
},
|
|
61
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, createElevationType, createImageProp, createResizeModeProp, CONTAINER_COMPONENT_STYLES_SECTIONS, } from "@draftbit/types";
|
|
2
|
-
export const SEED_DATA = {
|
|
3
|
-
name: "Container",
|
|
4
|
-
tag: "Container",
|
|
5
|
-
description: "A container component with gutter padding",
|
|
6
|
-
category: COMPONENT_TYPES.deprecated,
|
|
7
|
-
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
8
|
-
layout: {
|
|
9
|
-
height: 250,
|
|
10
|
-
},
|
|
11
|
-
props: {
|
|
12
|
-
useThemeGutterPadding: {
|
|
13
|
-
group: GROUPS.basic,
|
|
14
|
-
label: "Use gutter padding",
|
|
15
|
-
description: "When true, uses the theme gutter spacing as the container's horizontal padding",
|
|
16
|
-
formType: FORM_TYPES.boolean,
|
|
17
|
-
propType: PROP_TYPES.BOOLEAN,
|
|
18
|
-
defaultValue: false,
|
|
19
|
-
editable: false,
|
|
20
|
-
required: true,
|
|
21
|
-
},
|
|
22
|
-
backgroundImage: createImageProp({
|
|
23
|
-
label: "Background Image",
|
|
24
|
-
description: "Apply a custom background image",
|
|
25
|
-
defaultValue: null,
|
|
26
|
-
}),
|
|
27
|
-
backgroundImageResizeMode: createResizeModeProp(),
|
|
28
|
-
elevation: createElevationType(0),
|
|
29
|
-
},
|
|
30
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
GROUPS,
|
|
3
|
-
COMPONENT_TYPES,
|
|
4
|
-
FORM_TYPES,
|
|
5
|
-
PROP_TYPES,
|
|
6
|
-
createElevationType,
|
|
7
|
-
createImageProp,
|
|
8
|
-
createResizeModeProp,
|
|
9
|
-
CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
10
|
-
} from "@draftbit/types";
|
|
11
|
-
|
|
12
|
-
export const SEED_DATA = {
|
|
13
|
-
name: "Container",
|
|
14
|
-
tag: "Container",
|
|
15
|
-
description: "A container component with gutter padding",
|
|
16
|
-
category: COMPONENT_TYPES.deprecated,
|
|
17
|
-
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
18
|
-
layout: {
|
|
19
|
-
height: 250,
|
|
20
|
-
},
|
|
21
|
-
props: {
|
|
22
|
-
useThemeGutterPadding: {
|
|
23
|
-
group: GROUPS.basic,
|
|
24
|
-
label: "Use gutter padding",
|
|
25
|
-
description:
|
|
26
|
-
"When true, uses the theme gutter spacing as the container's horizontal padding",
|
|
27
|
-
formType: FORM_TYPES.boolean,
|
|
28
|
-
propType: PROP_TYPES.BOOLEAN,
|
|
29
|
-
defaultValue: false,
|
|
30
|
-
editable: false,
|
|
31
|
-
required: true,
|
|
32
|
-
},
|
|
33
|
-
backgroundImage: createImageProp({
|
|
34
|
-
label: "Background Image",
|
|
35
|
-
description: "Apply a custom background image",
|
|
36
|
-
defaultValue: null,
|
|
37
|
-
}),
|
|
38
|
-
backgroundImageResizeMode: createResizeModeProp(),
|
|
39
|
-
elevation: createElevationType(0),
|
|
40
|
-
},
|
|
41
|
-
};
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createTextEnumProp, createBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, createStaticNumberProp, } from "@draftbit/types";
|
|
2
|
-
const SHARED_SEED_DATA = {
|
|
3
|
-
category: COMPONENT_TYPES.layout,
|
|
4
|
-
packageName: "native-base",
|
|
5
|
-
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
6
|
-
};
|
|
7
|
-
export const SEED_DATA = [
|
|
8
|
-
{
|
|
9
|
-
name: "Aspect Ratio",
|
|
10
|
-
tag: "AspectRatio",
|
|
11
|
-
description: "Controls the size of the undefined dimension of a node or child component using an aspect ratio",
|
|
12
|
-
...SHARED_SEED_DATA,
|
|
13
|
-
props: {
|
|
14
|
-
ratio: createStaticNumberProp({
|
|
15
|
-
label: "Ratio",
|
|
16
|
-
description: "The aspect ratio of the container in decimal format (ex: 3/4 -> 1.33)",
|
|
17
|
-
defaultValue: 1.33,
|
|
18
|
-
}),
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
name: "Box",
|
|
23
|
-
tag: "Box",
|
|
24
|
-
description: "This is a generic component for low level layout needs. It is similar to a div in HTML",
|
|
25
|
-
...SHARED_SEED_DATA,
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
name: "Center",
|
|
29
|
-
tag: "Center",
|
|
30
|
-
description: "Center aligns its contents to the center within itself",
|
|
31
|
-
...SHARED_SEED_DATA,
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
name: "Circle",
|
|
35
|
-
tag: "Circle",
|
|
36
|
-
description: "Center aligns its contents to the center within itself with a round border radius",
|
|
37
|
-
...SHARED_SEED_DATA,
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
name: "Container",
|
|
41
|
-
tag: "Container",
|
|
42
|
-
description: "The Container restricts a content's width according to current breakpoint, while keeping the size fluid",
|
|
43
|
-
...SHARED_SEED_DATA,
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
name: "Column",
|
|
47
|
-
tag: "Column",
|
|
48
|
-
description: "Column aligns items vertically",
|
|
49
|
-
...SHARED_SEED_DATA,
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
name: "Row",
|
|
53
|
-
tag: "Row",
|
|
54
|
-
description: "Column aligns items horizontally",
|
|
55
|
-
...SHARED_SEED_DATA,
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
name: "Spacer",
|
|
59
|
-
tag: "Spacer",
|
|
60
|
-
description: "An adjustable, empty space that can be used to tune the spacing between child elements within Flex",
|
|
61
|
-
...SHARED_SEED_DATA,
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
name: "Stack",
|
|
65
|
-
tag: "Stack",
|
|
66
|
-
description: "Stack aligns items vertically or horizontally based on the direction prop",
|
|
67
|
-
...SHARED_SEED_DATA,
|
|
68
|
-
props: {
|
|
69
|
-
direction: createTextEnumProp({
|
|
70
|
-
label: "Direction",
|
|
71
|
-
description: "The direction of the Stack",
|
|
72
|
-
options: ["row", "column"],
|
|
73
|
-
defaultValue: "column",
|
|
74
|
-
}),
|
|
75
|
-
reversed: createBoolProp({
|
|
76
|
-
label: "Reversed",
|
|
77
|
-
description: "Determines whether to reverse the direction of items",
|
|
78
|
-
}),
|
|
79
|
-
isDisabled: createBoolProp({
|
|
80
|
-
label: "Disabled",
|
|
81
|
-
description: "If true, the Stack will be disabled",
|
|
82
|
-
}),
|
|
83
|
-
isInvalid: createBoolProp({
|
|
84
|
-
label: "Invalid",
|
|
85
|
-
description: "If true, the Stack will be invalid",
|
|
86
|
-
}),
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
name: "ZStack",
|
|
91
|
-
tag: "ZStack",
|
|
92
|
-
description: "ZStack aligns items to the z-axis",
|
|
93
|
-
...SHARED_SEED_DATA,
|
|
94
|
-
props: {
|
|
95
|
-
reversed: createBoolProp({
|
|
96
|
-
label: "Reversed",
|
|
97
|
-
description: "Determines whether to reverse the direction of items",
|
|
98
|
-
}),
|
|
99
|
-
},
|
|
100
|
-
},
|
|
101
|
-
];
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
COMPONENT_TYPES,
|
|
3
|
-
createTextEnumProp,
|
|
4
|
-
createBoolProp,
|
|
5
|
-
CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
6
|
-
createStaticNumberProp,
|
|
7
|
-
} from "@draftbit/types";
|
|
8
|
-
|
|
9
|
-
const SHARED_SEED_DATA = {
|
|
10
|
-
category: COMPONENT_TYPES.layout,
|
|
11
|
-
packageName: "native-base",
|
|
12
|
-
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export const SEED_DATA = [
|
|
16
|
-
{
|
|
17
|
-
name: "Aspect Ratio",
|
|
18
|
-
tag: "AspectRatio",
|
|
19
|
-
description:
|
|
20
|
-
"Controls the size of the undefined dimension of a node or child component using an aspect ratio",
|
|
21
|
-
...SHARED_SEED_DATA,
|
|
22
|
-
props: {
|
|
23
|
-
ratio: createStaticNumberProp({
|
|
24
|
-
label: "Ratio",
|
|
25
|
-
description:
|
|
26
|
-
"The aspect ratio of the container in decimal format (ex: 3/4 -> 1.33)",
|
|
27
|
-
defaultValue: 1.33,
|
|
28
|
-
}),
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
name: "Box",
|
|
33
|
-
tag: "Box",
|
|
34
|
-
description:
|
|
35
|
-
"This is a generic component for low level layout needs. It is similar to a div in HTML",
|
|
36
|
-
...SHARED_SEED_DATA,
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
name: "Center",
|
|
40
|
-
tag: "Center",
|
|
41
|
-
description: "Center aligns its contents to the center within itself",
|
|
42
|
-
...SHARED_SEED_DATA,
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
name: "Circle",
|
|
46
|
-
tag: "Circle",
|
|
47
|
-
description:
|
|
48
|
-
"Center aligns its contents to the center within itself with a round border radius",
|
|
49
|
-
...SHARED_SEED_DATA,
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
name: "Container",
|
|
53
|
-
tag: "Container",
|
|
54
|
-
description:
|
|
55
|
-
"The Container restricts a content's width according to current breakpoint, while keeping the size fluid",
|
|
56
|
-
...SHARED_SEED_DATA,
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
name: "Column",
|
|
60
|
-
tag: "Column",
|
|
61
|
-
description: "Column aligns items vertically",
|
|
62
|
-
...SHARED_SEED_DATA,
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
name: "Row",
|
|
66
|
-
tag: "Row",
|
|
67
|
-
description: "Column aligns items horizontally",
|
|
68
|
-
...SHARED_SEED_DATA,
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
name: "Spacer",
|
|
72
|
-
tag: "Spacer",
|
|
73
|
-
description:
|
|
74
|
-
"An adjustable, empty space that can be used to tune the spacing between child elements within Flex",
|
|
75
|
-
...SHARED_SEED_DATA,
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
name: "Stack",
|
|
79
|
-
tag: "Stack",
|
|
80
|
-
description:
|
|
81
|
-
"Stack aligns items vertically or horizontally based on the direction prop",
|
|
82
|
-
...SHARED_SEED_DATA,
|
|
83
|
-
props: {
|
|
84
|
-
direction: createTextEnumProp({
|
|
85
|
-
label: "Direction",
|
|
86
|
-
description: "The direction of the Stack",
|
|
87
|
-
options: ["row", "column"],
|
|
88
|
-
defaultValue: "column",
|
|
89
|
-
}),
|
|
90
|
-
reversed: createBoolProp({
|
|
91
|
-
label: "Reversed",
|
|
92
|
-
description: "Determines whether to reverse the direction of items",
|
|
93
|
-
}),
|
|
94
|
-
isDisabled: createBoolProp({
|
|
95
|
-
label: "Disabled",
|
|
96
|
-
description: "If true, the Stack will be disabled",
|
|
97
|
-
}),
|
|
98
|
-
isInvalid: createBoolProp({
|
|
99
|
-
label: "Invalid",
|
|
100
|
-
description: "If true, the Stack will be invalid",
|
|
101
|
-
}),
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
name: "ZStack",
|
|
106
|
-
tag: "ZStack",
|
|
107
|
-
description: "ZStack aligns items to the z-axis",
|
|
108
|
-
...SHARED_SEED_DATA,
|
|
109
|
-
props: {
|
|
110
|
-
reversed: createBoolProp({
|
|
111
|
-
label: "Reversed",
|
|
112
|
-
description: "Determines whether to reverse the direction of items",
|
|
113
|
-
}),
|
|
114
|
-
},
|
|
115
|
-
},
|
|
116
|
-
];
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, FORM_TYPES, GROUPS, PROP_TYPES, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
|
|
2
|
-
export const SEED_DATA = {
|
|
3
|
-
name: "Progress Indicator",
|
|
4
|
-
tag: "ProgressIndicator",
|
|
5
|
-
description: "A component used to show current Step in a process",
|
|
6
|
-
category: COMPONENT_TYPES.deprecated,
|
|
7
|
-
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
8
|
-
preview_image_url: "{CLOUDINARY_URL}/Control_Slider.png",
|
|
9
|
-
supports_list_render: false,
|
|
10
|
-
layout: {},
|
|
11
|
-
props: {
|
|
12
|
-
numberOfSteps: {
|
|
13
|
-
group: GROUPS.data,
|
|
14
|
-
label: "Number of Steps",
|
|
15
|
-
description: "The border radius for the thumb",
|
|
16
|
-
editable: true,
|
|
17
|
-
required: false,
|
|
18
|
-
formType: FORM_TYPES.number,
|
|
19
|
-
propType: PROP_TYPES.NUMBER,
|
|
20
|
-
min: 0,
|
|
21
|
-
max: 10,
|
|
22
|
-
step: 1,
|
|
23
|
-
precision: 0,
|
|
24
|
-
defaultValue: 5,
|
|
25
|
-
},
|
|
26
|
-
currentStep: {
|
|
27
|
-
group: GROUPS.data,
|
|
28
|
-
label: "Current Step",
|
|
29
|
-
description: "The step that the user is on",
|
|
30
|
-
editable: true,
|
|
31
|
-
required: false,
|
|
32
|
-
formType: FORM_TYPES.number,
|
|
33
|
-
propType: PROP_TYPES.NUMBER,
|
|
34
|
-
min: 0,
|
|
35
|
-
max: 10,
|
|
36
|
-
step: 1,
|
|
37
|
-
precision: 0,
|
|
38
|
-
defaultValue: 5,
|
|
39
|
-
},
|
|
40
|
-
stepIndicatorSize: {
|
|
41
|
-
group: GROUPS.basic,
|
|
42
|
-
label: "Step Size",
|
|
43
|
-
description: "The size of the step circle",
|
|
44
|
-
editable: true,
|
|
45
|
-
required: false,
|
|
46
|
-
formType: FORM_TYPES.number,
|
|
47
|
-
propType: PROP_TYPES.NUMBER,
|
|
48
|
-
min: 10,
|
|
49
|
-
max: 100,
|
|
50
|
-
step: 5,
|
|
51
|
-
precision: 0,
|
|
52
|
-
defaultValue: 25,
|
|
53
|
-
},
|
|
54
|
-
stepIndicatorLabelFontSize: {
|
|
55
|
-
group: GROUPS.basic,
|
|
56
|
-
label: "Step Font Size",
|
|
57
|
-
description: "The font size of the step number",
|
|
58
|
-
editable: true,
|
|
59
|
-
required: false,
|
|
60
|
-
formType: FORM_TYPES.number,
|
|
61
|
-
propType: PROP_TYPES.NUMBER,
|
|
62
|
-
min: 6,
|
|
63
|
-
max: 36,
|
|
64
|
-
step: 1,
|
|
65
|
-
precision: 0,
|
|
66
|
-
defaultValue: 15,
|
|
67
|
-
},
|
|
68
|
-
currentStepIndicatorLabelFontSize: {
|
|
69
|
-
group: GROUPS.basic,
|
|
70
|
-
label: "Current Step Font Size",
|
|
71
|
-
description: "The font size of the current step number",
|
|
72
|
-
editable: true,
|
|
73
|
-
required: false,
|
|
74
|
-
formType: FORM_TYPES.number,
|
|
75
|
-
propType: PROP_TYPES.NUMBER,
|
|
76
|
-
min: 6,
|
|
77
|
-
max: 36,
|
|
78
|
-
step: 1,
|
|
79
|
-
precision: 0,
|
|
80
|
-
defaultValue: 15,
|
|
81
|
-
},
|
|
82
|
-
unfinishedColor: {
|
|
83
|
-
group: GROUPS.basic,
|
|
84
|
-
label: "Unfinished Color",
|
|
85
|
-
description: "The color of the step and divider when the step is either not the current step or not finished",
|
|
86
|
-
editable: true,
|
|
87
|
-
required: false,
|
|
88
|
-
formType: FORM_TYPES.color,
|
|
89
|
-
propType: PROP_TYPES.THEME,
|
|
90
|
-
defaultValue: null,
|
|
91
|
-
},
|
|
92
|
-
finishedColor: {
|
|
93
|
-
group: GROUPS.basic,
|
|
94
|
-
label: "Finished Color",
|
|
95
|
-
description: "The color of the step and divider when the step is the current step or finished",
|
|
96
|
-
editable: true,
|
|
97
|
-
required: false,
|
|
98
|
-
formType: FORM_TYPES.color,
|
|
99
|
-
propType: PROP_TYPES.THEME,
|
|
100
|
-
defaultValue: null,
|
|
101
|
-
},
|
|
102
|
-
stepNumberUnfinishedColor: {
|
|
103
|
-
group: GROUPS.basic,
|
|
104
|
-
label: "Unfinished Number Color",
|
|
105
|
-
description: "The color of the number within the step when unfinished",
|
|
106
|
-
editable: true,
|
|
107
|
-
required: false,
|
|
108
|
-
formType: FORM_TYPES.color,
|
|
109
|
-
propType: PROP_TYPES.THEME,
|
|
110
|
-
defaultValue: null,
|
|
111
|
-
},
|
|
112
|
-
stepNumberFinishedColor: {
|
|
113
|
-
group: GROUPS.basic,
|
|
114
|
-
label: "Finished Number Color",
|
|
115
|
-
description: "The color of the number within the step when finished",
|
|
116
|
-
editable: true,
|
|
117
|
-
required: false,
|
|
118
|
-
formType: FORM_TYPES.color,
|
|
119
|
-
propType: PROP_TYPES.THEME,
|
|
120
|
-
defaultValue: null,
|
|
121
|
-
},
|
|
122
|
-
stepIndicatorCurrentColor: {
|
|
123
|
-
group: GROUPS.basic,
|
|
124
|
-
label: "Current Step Color",
|
|
125
|
-
description: "The color of current step circle",
|
|
126
|
-
editable: true,
|
|
127
|
-
required: false,
|
|
128
|
-
formType: FORM_TYPES.color,
|
|
129
|
-
propType: PROP_TYPES.THEME,
|
|
130
|
-
defaultValue: null,
|
|
131
|
-
},
|
|
132
|
-
stepIndicatorLabelCurrentColor: {
|
|
133
|
-
group: GROUPS.basic,
|
|
134
|
-
label: "Current Step Number Color",
|
|
135
|
-
description: "The color of current number within the step circle",
|
|
136
|
-
editable: true,
|
|
137
|
-
required: false,
|
|
138
|
-
formType: FORM_TYPES.color,
|
|
139
|
-
propType: PROP_TYPES.THEME,
|
|
140
|
-
defaultValue: null,
|
|
141
|
-
},
|
|
142
|
-
stepStrokeCurrentColor: {
|
|
143
|
-
group: GROUPS.basic,
|
|
144
|
-
label: "Current Step Border Color",
|
|
145
|
-
description: "The color of current border color of the step",
|
|
146
|
-
editable: true,
|
|
147
|
-
required: false,
|
|
148
|
-
formType: FORM_TYPES.color,
|
|
149
|
-
propType: PROP_TYPES.THEME,
|
|
150
|
-
defaultValue: null,
|
|
151
|
-
},
|
|
152
|
-
currentStepStrokeWidth: {
|
|
153
|
-
group: GROUPS.basic,
|
|
154
|
-
label: "Current Step Border Width",
|
|
155
|
-
description: "The width of the border for the current step",
|
|
156
|
-
editable: true,
|
|
157
|
-
required: false,
|
|
158
|
-
formType: FORM_TYPES.number,
|
|
159
|
-
propType: PROP_TYPES.NUMBER,
|
|
160
|
-
min: 1,
|
|
161
|
-
max: 20,
|
|
162
|
-
step: 1,
|
|
163
|
-
precision: 0,
|
|
164
|
-
defaultValue: 0,
|
|
165
|
-
},
|
|
166
|
-
currentStepIndicatorSize: {
|
|
167
|
-
group: GROUPS.basic,
|
|
168
|
-
label: "Current Step Size",
|
|
169
|
-
description: "The size of the current step circle",
|
|
170
|
-
editable: true,
|
|
171
|
-
required: false,
|
|
172
|
-
formType: FORM_TYPES.number,
|
|
173
|
-
propType: PROP_TYPES.NUMBER,
|
|
174
|
-
min: 10,
|
|
175
|
-
max: 100,
|
|
176
|
-
step: 5,
|
|
177
|
-
precision: 0,
|
|
178
|
-
defaultValue: null,
|
|
179
|
-
},
|
|
180
|
-
},
|
|
181
|
-
};
|