@draftbit/core 46.10.3-106fd0.2 → 46.10.3-177666.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/Table/Table.js +11 -10
- package/lib/commonjs/components/Table/TableCell.js +3 -3
- package/lib/commonjs/components/Table/TableCommon.js +30 -0
- package/lib/commonjs/components/Table/TableRow.js +4 -4
- package/lib/commonjs/components/Table/index.js +3 -27
- package/lib/module/components/Accordion/AccordionItem.js +25 -4
- package/lib/module/components/AspectRatio.js +1 -18
- package/lib/module/components/Checkbox/CheckboxGroup.js +2 -16
- package/lib/module/components/Checkbox/context.js +1 -1
- package/lib/module/components/CircleImage.js +1 -16
- package/lib/module/components/DeprecatedButton.js +3 -21
- package/lib/module/components/IconButton.js +4 -21
- package/lib/module/components/Pressable.js +2 -15
- package/lib/module/components/Shadow.js +2 -15
- package/lib/module/components/Table/Table.js +7 -7
- package/lib/module/components/Table/TableCell.js +1 -1
- package/lib/module/components/Table/TableCommon.js +21 -0
- package/lib/module/components/Table/TableRow.js +3 -2
- package/lib/module/components/Table/index.js +1 -22
- package/lib/module/components/ToggleButton.js +2 -16
- package/lib/module/constants.js +0 -1
- package/lib/typescript/src/components/Table/Table.d.ts +7 -2
- package/lib/typescript/src/components/Table/Table.d.ts.map +1 -1
- package/lib/typescript/src/components/Table/TableCell.d.ts +1 -1
- package/lib/typescript/src/components/Table/TableCell.d.ts.map +1 -1
- 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 +1 -1
- package/lib/typescript/src/components/Table/TableRow.d.ts.map +1 -1
- package/lib/typescript/src/components/Table/index.d.ts +1 -19
- package/lib/typescript/src/components/Table/index.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/components/Table/Table.js +4 -2
- package/src/components/Table/Table.tsx +9 -3
- package/src/components/Table/TableCell.js +1 -1
- package/src/components/Table/TableCell.tsx +5 -1
- package/src/components/Table/TableCommon.js +12 -0
- package/src/components/Table/TableCommon.ts +40 -0
- package/src/components/Table/TableRow.js +1 -1
- package/src/components/Table/TableRow.tsx +1 -1
- package/src/components/Table/index.js +1 -13
- package/src/components/Table/index.tsx +1 -42
- package/lib/commonjs/mappings/HeaderLarge.js +0 -34
- package/lib/commonjs/mappings/HeaderMedium.js +0 -60
- package/lib/commonjs/mappings/HeaderOverline.js +0 -60
- package/lib/module/mappings/HeaderLarge.js +0 -27
- package/lib/module/mappings/HeaderMedium.js +0 -53
- package/lib/module/mappings/HeaderOverline.js +0 -53
- package/lib/typescript/src/mappings/HeaderLarge.d.ts +0 -34
- package/lib/typescript/src/mappings/HeaderLarge.d.ts.map +0 -1
- package/lib/typescript/src/mappings/HeaderMedium.d.ts +0 -53
- package/lib/typescript/src/mappings/HeaderMedium.d.ts.map +0 -1
- package/lib/typescript/src/mappings/HeaderOverline.d.ts +0 -53
- package/lib/typescript/src/mappings/HeaderOverline.d.ts.map +0 -1
- package/src/mappings/HeaderLarge.js +0 -29
- package/src/mappings/HeaderLarge.ts +0 -38
- package/src/mappings/HeaderMedium.js +0 -55
- package/src/mappings/HeaderMedium.ts +0 -63
- package/src/mappings/HeaderOverline.js +0 -55
- package/src/mappings/HeaderOverline.ts +0 -63
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
export declare const SEED_DATA: {
|
|
2
|
-
name: string;
|
|
3
|
-
tag: string;
|
|
4
|
-
description: string;
|
|
5
|
-
category: string;
|
|
6
|
-
stylesPanelSections: string[];
|
|
7
|
-
preview_image_url: string;
|
|
8
|
-
supports_list_render: boolean;
|
|
9
|
-
props: {
|
|
10
|
-
title: {
|
|
11
|
-
group: string;
|
|
12
|
-
label: string;
|
|
13
|
-
description: string;
|
|
14
|
-
formType: string;
|
|
15
|
-
propType: string;
|
|
16
|
-
defaultValue: string;
|
|
17
|
-
editable: boolean;
|
|
18
|
-
required: boolean;
|
|
19
|
-
};
|
|
20
|
-
buttonText: {
|
|
21
|
-
group: string;
|
|
22
|
-
label: string;
|
|
23
|
-
description: string;
|
|
24
|
-
formType: string;
|
|
25
|
-
propType: string;
|
|
26
|
-
defaultValue: string;
|
|
27
|
-
editable: boolean;
|
|
28
|
-
required: boolean;
|
|
29
|
-
};
|
|
30
|
-
icon: {
|
|
31
|
-
group: string;
|
|
32
|
-
label: string;
|
|
33
|
-
description: string;
|
|
34
|
-
formType: string;
|
|
35
|
-
propType: string;
|
|
36
|
-
defaultValue: null;
|
|
37
|
-
editable: boolean;
|
|
38
|
-
required: boolean;
|
|
39
|
-
};
|
|
40
|
-
onPress: {
|
|
41
|
-
group: string;
|
|
42
|
-
label: string;
|
|
43
|
-
description: string;
|
|
44
|
-
editable: boolean;
|
|
45
|
-
required: boolean;
|
|
46
|
-
formType: string;
|
|
47
|
-
propType: string;
|
|
48
|
-
defaultValue: null;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
layout: {};
|
|
52
|
-
}[];
|
|
53
|
-
//# sourceMappingURL=HeaderMedium.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderMedium.d.ts","sourceRoot":"","sources":["../../../../src/mappings/HeaderMedium.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDrB,CAAC"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
export declare const SEED_DATA: {
|
|
2
|
-
name: string;
|
|
3
|
-
tag: string;
|
|
4
|
-
description: string;
|
|
5
|
-
category: string;
|
|
6
|
-
stylesPanelSections: string[];
|
|
7
|
-
preview_image_url: string;
|
|
8
|
-
supports_list_render: boolean;
|
|
9
|
-
props: {
|
|
10
|
-
title: {
|
|
11
|
-
group: string;
|
|
12
|
-
label: string;
|
|
13
|
-
description: string;
|
|
14
|
-
formType: string;
|
|
15
|
-
propType: string;
|
|
16
|
-
defaultValue: string;
|
|
17
|
-
editable: boolean;
|
|
18
|
-
required: boolean;
|
|
19
|
-
};
|
|
20
|
-
buttonText: {
|
|
21
|
-
group: string;
|
|
22
|
-
label: string;
|
|
23
|
-
description: string;
|
|
24
|
-
formType: string;
|
|
25
|
-
propType: string;
|
|
26
|
-
defaultValue: string;
|
|
27
|
-
editable: boolean;
|
|
28
|
-
required: boolean;
|
|
29
|
-
};
|
|
30
|
-
icon: {
|
|
31
|
-
group: string;
|
|
32
|
-
label: string;
|
|
33
|
-
description: string;
|
|
34
|
-
formType: string;
|
|
35
|
-
propType: string;
|
|
36
|
-
defaultValue: null;
|
|
37
|
-
editable: boolean;
|
|
38
|
-
required: boolean;
|
|
39
|
-
};
|
|
40
|
-
onPress: {
|
|
41
|
-
group: string;
|
|
42
|
-
label: string;
|
|
43
|
-
description: string;
|
|
44
|
-
editable: boolean;
|
|
45
|
-
required: boolean;
|
|
46
|
-
formType: string;
|
|
47
|
-
propType: string;
|
|
48
|
-
defaultValue: null;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
layout: {};
|
|
52
|
-
}[];
|
|
53
|
-
//# sourceMappingURL=HeaderOverline.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderOverline.d.ts","sourceRoot":"","sources":["../../../../src/mappings/HeaderOverline.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDrB,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createIconProp, createTextProp, createActionProp, Triggers, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
|
|
2
|
-
export const SEED_DATA = [
|
|
3
|
-
{
|
|
4
|
-
name: "Header Large",
|
|
5
|
-
tag: "HeaderLarge",
|
|
6
|
-
description: "A large header with an optional touchable right aligned text and icon.",
|
|
7
|
-
category: COMPONENT_TYPES.header,
|
|
8
|
-
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
9
|
-
layout: {},
|
|
10
|
-
triggers: [Triggers.OnPress],
|
|
11
|
-
props: {
|
|
12
|
-
onPress: createActionProp(),
|
|
13
|
-
title: createTextProp({
|
|
14
|
-
label: "Title",
|
|
15
|
-
description: "Text to display",
|
|
16
|
-
defaultValue: "Title",
|
|
17
|
-
}),
|
|
18
|
-
buttonText: createTextProp({
|
|
19
|
-
label: "Button text",
|
|
20
|
-
description: "Right aligned button text to display",
|
|
21
|
-
defaultValue: "See All",
|
|
22
|
-
}),
|
|
23
|
-
icon: createIconProp({
|
|
24
|
-
defaultValue: null,
|
|
25
|
-
required: false,
|
|
26
|
-
}),
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
];
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
COMPONENT_TYPES,
|
|
3
|
-
createIconProp,
|
|
4
|
-
createTextProp,
|
|
5
|
-
createActionProp,
|
|
6
|
-
Triggers,
|
|
7
|
-
BLOCK_STYLES_SECTIONS,
|
|
8
|
-
} from "@draftbit/types";
|
|
9
|
-
|
|
10
|
-
export const SEED_DATA = [
|
|
11
|
-
{
|
|
12
|
-
name: "Header Large",
|
|
13
|
-
tag: "HeaderLarge",
|
|
14
|
-
description:
|
|
15
|
-
"A large header with an optional touchable right aligned text and icon.",
|
|
16
|
-
category: COMPONENT_TYPES.header,
|
|
17
|
-
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
18
|
-
layout: {},
|
|
19
|
-
triggers: [Triggers.OnPress],
|
|
20
|
-
props: {
|
|
21
|
-
onPress: createActionProp(),
|
|
22
|
-
title: createTextProp({
|
|
23
|
-
label: "Title",
|
|
24
|
-
description: "Text to display",
|
|
25
|
-
defaultValue: "Title",
|
|
26
|
-
}),
|
|
27
|
-
buttonText: createTextProp({
|
|
28
|
-
label: "Button text",
|
|
29
|
-
description: "Right aligned button text to display",
|
|
30
|
-
defaultValue: "See All",
|
|
31
|
-
}),
|
|
32
|
-
icon: createIconProp({
|
|
33
|
-
defaultValue: null,
|
|
34
|
-
required: false,
|
|
35
|
-
}),
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
];
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
|
|
2
|
-
export const SEED_DATA = [
|
|
3
|
-
{
|
|
4
|
-
name: "Header Medium",
|
|
5
|
-
tag: "HeaderMedium",
|
|
6
|
-
description: "A medium header with an optional touchable right aligned text and icon.",
|
|
7
|
-
category: COMPONENT_TYPES.header,
|
|
8
|
-
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
9
|
-
preview_image_url: "{CLOUDINARY_URL}/Header_HeadlineMediumIconText.png",
|
|
10
|
-
supports_list_render: false,
|
|
11
|
-
props: {
|
|
12
|
-
title: {
|
|
13
|
-
group: GROUPS.data,
|
|
14
|
-
label: "Title",
|
|
15
|
-
description: "Text to display",
|
|
16
|
-
formType: FORM_TYPES.string,
|
|
17
|
-
propType: PROP_TYPES.STRING,
|
|
18
|
-
defaultValue: "Title",
|
|
19
|
-
editable: true,
|
|
20
|
-
required: false,
|
|
21
|
-
},
|
|
22
|
-
buttonText: {
|
|
23
|
-
group: GROUPS.data,
|
|
24
|
-
label: "Button text",
|
|
25
|
-
description: "Right aligned button text to display",
|
|
26
|
-
formType: FORM_TYPES.string,
|
|
27
|
-
propType: PROP_TYPES.STRING,
|
|
28
|
-
defaultValue: "See All",
|
|
29
|
-
editable: true,
|
|
30
|
-
required: false,
|
|
31
|
-
},
|
|
32
|
-
icon: {
|
|
33
|
-
group: GROUPS.basic,
|
|
34
|
-
label: "Icon",
|
|
35
|
-
description: "Name of icon to display",
|
|
36
|
-
formType: FORM_TYPES.icon,
|
|
37
|
-
propType: PROP_TYPES.ASSET,
|
|
38
|
-
defaultValue: null,
|
|
39
|
-
editable: true,
|
|
40
|
-
required: false,
|
|
41
|
-
},
|
|
42
|
-
onPress: {
|
|
43
|
-
group: GROUPS.basic,
|
|
44
|
-
label: "Action",
|
|
45
|
-
description: "Action to execute when button pressed",
|
|
46
|
-
editable: true,
|
|
47
|
-
required: false,
|
|
48
|
-
formType: FORM_TYPES.action,
|
|
49
|
-
propType: PROP_TYPES.STRING,
|
|
50
|
-
defaultValue: null,
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
layout: {},
|
|
54
|
-
},
|
|
55
|
-
];
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
GROUPS,
|
|
3
|
-
COMPONENT_TYPES,
|
|
4
|
-
FORM_TYPES,
|
|
5
|
-
PROP_TYPES,
|
|
6
|
-
BLOCK_STYLES_SECTIONS,
|
|
7
|
-
} from "@draftbit/types";
|
|
8
|
-
|
|
9
|
-
export const SEED_DATA = [
|
|
10
|
-
{
|
|
11
|
-
name: "Header Medium",
|
|
12
|
-
tag: "HeaderMedium",
|
|
13
|
-
description:
|
|
14
|
-
"A medium header with an optional touchable right aligned text and icon.",
|
|
15
|
-
category: COMPONENT_TYPES.header,
|
|
16
|
-
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
17
|
-
preview_image_url: "{CLOUDINARY_URL}/Header_HeadlineMediumIconText.png",
|
|
18
|
-
supports_list_render: false,
|
|
19
|
-
props: {
|
|
20
|
-
title: {
|
|
21
|
-
group: GROUPS.data,
|
|
22
|
-
label: "Title",
|
|
23
|
-
description: "Text to display",
|
|
24
|
-
formType: FORM_TYPES.string,
|
|
25
|
-
propType: PROP_TYPES.STRING,
|
|
26
|
-
defaultValue: "Title",
|
|
27
|
-
editable: true,
|
|
28
|
-
required: false,
|
|
29
|
-
},
|
|
30
|
-
buttonText: {
|
|
31
|
-
group: GROUPS.data,
|
|
32
|
-
label: "Button text",
|
|
33
|
-
description: "Right aligned button text to display",
|
|
34
|
-
formType: FORM_TYPES.string,
|
|
35
|
-
propType: PROP_TYPES.STRING,
|
|
36
|
-
defaultValue: "See All",
|
|
37
|
-
editable: true,
|
|
38
|
-
required: false,
|
|
39
|
-
},
|
|
40
|
-
icon: {
|
|
41
|
-
group: GROUPS.basic,
|
|
42
|
-
label: "Icon",
|
|
43
|
-
description: "Name of icon to display",
|
|
44
|
-
formType: FORM_TYPES.icon,
|
|
45
|
-
propType: PROP_TYPES.ASSET,
|
|
46
|
-
defaultValue: null,
|
|
47
|
-
editable: true,
|
|
48
|
-
required: false,
|
|
49
|
-
},
|
|
50
|
-
onPress: {
|
|
51
|
-
group: GROUPS.basic,
|
|
52
|
-
label: "Action",
|
|
53
|
-
description: "Action to execute when button pressed",
|
|
54
|
-
editable: true,
|
|
55
|
-
required: false,
|
|
56
|
-
formType: FORM_TYPES.action,
|
|
57
|
-
propType: PROP_TYPES.STRING,
|
|
58
|
-
defaultValue: null,
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
layout: {},
|
|
62
|
-
},
|
|
63
|
-
];
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
|
|
2
|
-
export const SEED_DATA = [
|
|
3
|
-
{
|
|
4
|
-
name: "Header Overline",
|
|
5
|
-
tag: "HeaderOverline",
|
|
6
|
-
description: "A small header with an optional touchable right aligned text and icon.",
|
|
7
|
-
category: COMPONENT_TYPES.header,
|
|
8
|
-
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
9
|
-
preview_image_url: "{CLOUDINARY_URL}/Header_OverlineIconText.png",
|
|
10
|
-
supports_list_render: false,
|
|
11
|
-
props: {
|
|
12
|
-
title: {
|
|
13
|
-
group: GROUPS.data,
|
|
14
|
-
label: "Title",
|
|
15
|
-
description: "Text to display",
|
|
16
|
-
formType: FORM_TYPES.string,
|
|
17
|
-
propType: PROP_TYPES.STRING,
|
|
18
|
-
defaultValue: "Title",
|
|
19
|
-
editable: true,
|
|
20
|
-
required: false,
|
|
21
|
-
},
|
|
22
|
-
buttonText: {
|
|
23
|
-
group: GROUPS.data,
|
|
24
|
-
label: "Button text",
|
|
25
|
-
description: "Right aligned button text to display",
|
|
26
|
-
formType: FORM_TYPES.string,
|
|
27
|
-
propType: PROP_TYPES.STRING,
|
|
28
|
-
defaultValue: "See All",
|
|
29
|
-
editable: true,
|
|
30
|
-
required: false,
|
|
31
|
-
},
|
|
32
|
-
icon: {
|
|
33
|
-
group: GROUPS.basic,
|
|
34
|
-
label: "Icon",
|
|
35
|
-
description: "Name of icon to display",
|
|
36
|
-
formType: FORM_TYPES.icon,
|
|
37
|
-
propType: PROP_TYPES.ASSET,
|
|
38
|
-
defaultValue: null,
|
|
39
|
-
editable: true,
|
|
40
|
-
required: false,
|
|
41
|
-
},
|
|
42
|
-
onPress: {
|
|
43
|
-
group: GROUPS.basic,
|
|
44
|
-
label: "Action",
|
|
45
|
-
description: "Action to execute when button pressed",
|
|
46
|
-
editable: true,
|
|
47
|
-
required: false,
|
|
48
|
-
formType: FORM_TYPES.action,
|
|
49
|
-
propType: PROP_TYPES.STRING,
|
|
50
|
-
defaultValue: null,
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
layout: {},
|
|
54
|
-
},
|
|
55
|
-
];
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
GROUPS,
|
|
3
|
-
COMPONENT_TYPES,
|
|
4
|
-
FORM_TYPES,
|
|
5
|
-
PROP_TYPES,
|
|
6
|
-
BLOCK_STYLES_SECTIONS,
|
|
7
|
-
} from "@draftbit/types";
|
|
8
|
-
|
|
9
|
-
export const SEED_DATA = [
|
|
10
|
-
{
|
|
11
|
-
name: "Header Overline",
|
|
12
|
-
tag: "HeaderOverline",
|
|
13
|
-
description:
|
|
14
|
-
"A small header with an optional touchable right aligned text and icon.",
|
|
15
|
-
category: COMPONENT_TYPES.header,
|
|
16
|
-
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
17
|
-
preview_image_url: "{CLOUDINARY_URL}/Header_OverlineIconText.png",
|
|
18
|
-
supports_list_render: false,
|
|
19
|
-
props: {
|
|
20
|
-
title: {
|
|
21
|
-
group: GROUPS.data,
|
|
22
|
-
label: "Title",
|
|
23
|
-
description: "Text to display",
|
|
24
|
-
formType: FORM_TYPES.string,
|
|
25
|
-
propType: PROP_TYPES.STRING,
|
|
26
|
-
defaultValue: "Title",
|
|
27
|
-
editable: true,
|
|
28
|
-
required: false,
|
|
29
|
-
},
|
|
30
|
-
buttonText: {
|
|
31
|
-
group: GROUPS.data,
|
|
32
|
-
label: "Button text",
|
|
33
|
-
description: "Right aligned button text to display",
|
|
34
|
-
formType: FORM_TYPES.string,
|
|
35
|
-
propType: PROP_TYPES.STRING,
|
|
36
|
-
defaultValue: "See All",
|
|
37
|
-
editable: true,
|
|
38
|
-
required: false,
|
|
39
|
-
},
|
|
40
|
-
icon: {
|
|
41
|
-
group: GROUPS.basic,
|
|
42
|
-
label: "Icon",
|
|
43
|
-
description: "Name of icon to display",
|
|
44
|
-
formType: FORM_TYPES.icon,
|
|
45
|
-
propType: PROP_TYPES.ASSET,
|
|
46
|
-
defaultValue: null,
|
|
47
|
-
editable: true,
|
|
48
|
-
required: false,
|
|
49
|
-
},
|
|
50
|
-
onPress: {
|
|
51
|
-
group: GROUPS.basic,
|
|
52
|
-
label: "Action",
|
|
53
|
-
description: "Action to execute when button pressed",
|
|
54
|
-
editable: true,
|
|
55
|
-
required: false,
|
|
56
|
-
formType: FORM_TYPES.action,
|
|
57
|
-
propType: PROP_TYPES.STRING,
|
|
58
|
-
defaultValue: null,
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
layout: {},
|
|
62
|
-
},
|
|
63
|
-
];
|