@draftbit/core 46.10.3-af3058.2 → 46.10.3-b4dc15.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.
Files changed (51) hide show
  1. package/lib/commonjs/components/Checkbox/CheckboxRow.js +6 -23
  2. package/lib/commonjs/components/Checkbox/context.js +1 -1
  3. package/package.json +3 -3
  4. package/lib/commonjs/mappings/CardBlock.js +0 -126
  5. package/lib/commonjs/mappings/CardContainer.js +0 -108
  6. package/lib/commonjs/mappings/CardContainerRating.js +0 -130
  7. package/lib/commonjs/mappings/CardContainerShortImage.js +0 -124
  8. package/lib/commonjs/mappings/CardInline.js +0 -59
  9. package/lib/commonjs/mappings/HeaderLarge.js +0 -34
  10. package/lib/commonjs/mappings/HeaderMedium.js +0 -60
  11. package/lib/commonjs/mappings/HeaderOverline.js +0 -60
  12. package/lib/module/mappings/CardBlock.js +0 -119
  13. package/lib/module/mappings/CardContainer.js +0 -101
  14. package/lib/module/mappings/CardContainerRating.js +0 -123
  15. package/lib/module/mappings/CardContainerShortImage.js +0 -117
  16. package/lib/module/mappings/CardInline.js +0 -52
  17. package/lib/module/mappings/HeaderLarge.js +0 -27
  18. package/lib/module/mappings/HeaderMedium.js +0 -53
  19. package/lib/module/mappings/HeaderOverline.js +0 -53
  20. package/lib/typescript/src/mappings/CardBlock.d.ts +0 -289
  21. package/lib/typescript/src/mappings/CardBlock.d.ts.map +0 -1
  22. package/lib/typescript/src/mappings/CardContainer.d.ts +0 -102
  23. package/lib/typescript/src/mappings/CardContainer.d.ts.map +0 -1
  24. package/lib/typescript/src/mappings/CardContainerRating.d.ts +0 -108
  25. package/lib/typescript/src/mappings/CardContainerRating.d.ts.map +0 -1
  26. package/lib/typescript/src/mappings/CardContainerShortImage.d.ts +0 -139
  27. package/lib/typescript/src/mappings/CardContainerShortImage.d.ts.map +0 -1
  28. package/lib/typescript/src/mappings/CardInline.d.ts +0 -62
  29. package/lib/typescript/src/mappings/CardInline.d.ts.map +0 -1
  30. package/lib/typescript/src/mappings/HeaderLarge.d.ts +0 -34
  31. package/lib/typescript/src/mappings/HeaderLarge.d.ts.map +0 -1
  32. package/lib/typescript/src/mappings/HeaderMedium.d.ts +0 -53
  33. package/lib/typescript/src/mappings/HeaderMedium.d.ts.map +0 -1
  34. package/lib/typescript/src/mappings/HeaderOverline.d.ts +0 -53
  35. package/lib/typescript/src/mappings/HeaderOverline.d.ts.map +0 -1
  36. package/src/mappings/CardBlock.js +0 -123
  37. package/src/mappings/CardBlock.ts +0 -136
  38. package/src/mappings/CardContainer.js +0 -104
  39. package/src/mappings/CardContainer.ts +0 -116
  40. package/src/mappings/CardContainerRating.js +0 -126
  41. package/src/mappings/CardContainerRating.ts +0 -137
  42. package/src/mappings/CardContainerShortImage.js +0 -120
  43. package/src/mappings/CardContainerShortImage.ts +0 -130
  44. package/src/mappings/CardInline.js +0 -52
  45. package/src/mappings/CardInline.ts +0 -61
  46. package/src/mappings/HeaderLarge.js +0 -29
  47. package/src/mappings/HeaderLarge.ts +0 -38
  48. package/src/mappings/HeaderMedium.js +0 -55
  49. package/src/mappings/HeaderMedium.ts +0 -63
  50. package/src/mappings/HeaderOverline.js +0 -55
  51. package/src/mappings/HeaderOverline.ts +0 -63
@@ -1,139 +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
- image: {
11
- group: string;
12
- label: string;
13
- description: string;
14
- formType: string;
15
- propType: string;
16
- defaultValue: null;
17
- editable: boolean;
18
- required: boolean;
19
- };
20
- title: {
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
- subtitle: {
31
- group: string;
32
- label: string;
33
- description: string;
34
- formType: string;
35
- propType: string;
36
- defaultValue: string;
37
- editable: boolean;
38
- required: boolean;
39
- };
40
- aspectRatio: {
41
- group: string;
42
- label: string;
43
- description: string;
44
- formType: string;
45
- propType: string;
46
- defaultValue: null;
47
- editable: boolean;
48
- required: boolean;
49
- };
50
- elevation: {
51
- defaultValue: any;
52
- label: string;
53
- description: string;
54
- formType: string;
55
- propType: string;
56
- options: number[];
57
- editable: boolean;
58
- required: boolean;
59
- group: string;
60
- };
61
- mode: {
62
- group: string;
63
- label: string;
64
- description: string;
65
- formType: string;
66
- propType: string;
67
- defaultValue: string;
68
- options: string[];
69
- editable: boolean;
70
- required: boolean;
71
- };
72
- };
73
- layout: {};
74
- } | {
75
- name: string;
76
- tag: string;
77
- description: string;
78
- category: string;
79
- stylesPanelSections: string[];
80
- preview_image_url: string;
81
- supports_list_render: boolean;
82
- props: {
83
- image: {
84
- group: string;
85
- label: string;
86
- description: string;
87
- formType: string;
88
- propType: string;
89
- defaultValue: null;
90
- editable: boolean;
91
- required: boolean;
92
- };
93
- title: {
94
- group: string;
95
- label: string;
96
- description: string;
97
- formType: string;
98
- propType: string;
99
- defaultValue: string;
100
- editable: boolean;
101
- required: boolean;
102
- };
103
- subtitle: {
104
- group: string;
105
- label: string;
106
- description: string;
107
- formType: string;
108
- propType: string;
109
- defaultValue: string;
110
- editable: boolean;
111
- required: boolean;
112
- };
113
- elevation: {
114
- defaultValue: any;
115
- label: string;
116
- description: string;
117
- formType: string;
118
- propType: string;
119
- options: number[];
120
- editable: boolean;
121
- required: boolean;
122
- group: string;
123
- };
124
- mode: {
125
- label: string;
126
- description: string;
127
- group: string;
128
- formType: string;
129
- propType: string;
130
- defaultValue: string;
131
- editable: boolean;
132
- required: boolean;
133
- options?: undefined;
134
- };
135
- aspectRatio?: undefined;
136
- };
137
- layout: {};
138
- })[];
139
- //# sourceMappingURL=CardContainerShortImage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CardContainerShortImage.d.ts","sourceRoot":"","sources":["../../../../src/mappings/CardContainerShortImage.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwHrB,CAAC"}
@@ -1,62 +0,0 @@
1
- export declare const SEED_DATA: {
2
- name: string;
3
- tag: string;
4
- description: string;
5
- category: string;
6
- stylesPanelSections: string[];
7
- layout: {};
8
- props: {
9
- image: {
10
- group: string;
11
- label: string;
12
- description: string;
13
- formType: string;
14
- propType: string;
15
- defaultValue: null;
16
- editable: boolean;
17
- required: boolean;
18
- };
19
- title: {
20
- group: string;
21
- label: string;
22
- description: string;
23
- formType: string;
24
- propType: string;
25
- defaultValue: string;
26
- editable: boolean;
27
- required: boolean;
28
- };
29
- subtitle: {
30
- group: string;
31
- label: string;
32
- description: string;
33
- formType: string;
34
- propType: string;
35
- defaultValue: string;
36
- editable: boolean;
37
- required: boolean;
38
- };
39
- aspectRatio: {
40
- group: string;
41
- label: string;
42
- description: string;
43
- formType: string;
44
- propType: string;
45
- defaultValue: number;
46
- editable: boolean;
47
- required: boolean;
48
- };
49
- elevation: {
50
- defaultValue: any;
51
- label: string;
52
- description: string;
53
- formType: string;
54
- propType: string;
55
- options: number[];
56
- editable: boolean;
57
- required: boolean;
58
- group: string;
59
- };
60
- };
61
- };
62
- //# sourceMappingURL=CardInline.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CardInline.d.ts","sourceRoot":"","sources":["../../../../src/mappings/CardInline.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDrB,CAAC"}
@@ -1,34 +0,0 @@
1
- export declare const SEED_DATA: {
2
- name: string;
3
- tag: string;
4
- description: string;
5
- category: string;
6
- stylesPanelSections: string[];
7
- layout: {};
8
- triggers: string[];
9
- props: {
10
- onPress: {
11
- label: string;
12
- description: string;
13
- editable: boolean;
14
- required: boolean;
15
- formType: string;
16
- propType: string;
17
- defaultValue: null;
18
- group: string;
19
- };
20
- title: any;
21
- buttonText: any;
22
- icon: {
23
- label: string;
24
- description: string;
25
- formType: string;
26
- propType: string;
27
- defaultValue: string;
28
- required: boolean;
29
- editable: boolean;
30
- group: string;
31
- };
32
- };
33
- }[];
34
- //# sourceMappingURL=HeaderLarge.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HeaderLarge.d.ts","sourceRoot":"","sources":["../../../../src/mappings/HeaderLarge.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BrB,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=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,123 +0,0 @@
1
- import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, createElevationType, createNumColumnsType, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
2
- const SEED_DATA_PROPS = {
3
- image: {
4
- group: GROUPS.data,
5
- label: "Image",
6
- description: "Image",
7
- formType: FORM_TYPES.image,
8
- propType: PROP_TYPES.ASSET,
9
- defaultValue: null,
10
- editable: true,
11
- required: false,
12
- },
13
- title: {
14
- group: GROUPS.data,
15
- label: "Title",
16
- description: "Text to display",
17
- formType: FORM_TYPES.string,
18
- propType: PROP_TYPES.STRING,
19
- defaultValue: "Beautiful West Coast Villa",
20
- editable: true,
21
- required: false,
22
- },
23
- leftDescription: {
24
- group: GROUPS.data,
25
- label: "Left description",
26
- description: "Text to display on the left",
27
- formType: FORM_TYPES.string,
28
- propType: PROP_TYPES.STRING,
29
- defaultValue: "San Diego",
30
- editable: true,
31
- required: false,
32
- },
33
- rightDescription: {
34
- group: GROUPS.data,
35
- label: "Right description",
36
- description: "Text to display on the right",
37
- formType: FORM_TYPES.string,
38
- propType: PROP_TYPES.STRING,
39
- defaultValue: "$100",
40
- editable: true,
41
- required: false,
42
- },
43
- aspectRatio: {
44
- group: GROUPS.basic,
45
- label: "Aspect ratio",
46
- description: "Aspect ratio of the image",
47
- formType: FORM_TYPES.aspectRatio,
48
- propType: PROP_TYPES.NUMBER,
49
- defaultValue: 1.5,
50
- editable: true,
51
- required: false,
52
- },
53
- titleCentered: {
54
- group: GROUPS.basic,
55
- label: "Title centered",
56
- description: "Whether to center the title",
57
- formType: FORM_TYPES.boolean,
58
- propType: PROP_TYPES.BOOLEAN,
59
- defaultValue: false,
60
- editable: true,
61
- required: false,
62
- },
63
- elevation: createElevationType(2),
64
- };
65
- export const SEED_DATA = [
66
- {
67
- name: "Small Card",
68
- tag: "CardBlock",
69
- description: "An elevated card with a title and description, that takes up one third of its container.",
70
- category: COMPONENT_TYPES.card,
71
- props: {
72
- ...SEED_DATA_PROPS,
73
- numColumns: createNumColumnsType({
74
- defaultValue: 1,
75
- }),
76
- },
77
- },
78
- {
79
- name: "Medium Block Card",
80
- tag: "CardBlock",
81
- description: "An elevated card with a title and description, that takes up one half of its container.",
82
- category: COMPONENT_TYPES.card,
83
- props: {
84
- ...SEED_DATA_PROPS,
85
- icon: {
86
- group: GROUPS.basic,
87
- label: "Icon",
88
- description: "Icon to display on the top right",
89
- formType: FORM_TYPES.icon,
90
- propType: PROP_TYPES.STRING,
91
- defaultValue: null,
92
- editable: true,
93
- required: true,
94
- },
95
- numColumns: createNumColumnsType({
96
- defaultValue: 2,
97
- }),
98
- },
99
- },
100
- {
101
- name: "Large Block Card",
102
- tag: "CardBlock",
103
- description: "An elevated card with a title and description, that takes up the full width its container.",
104
- category: COMPONENT_TYPES.card,
105
- stylesPanelSections: BLOCK_STYLES_SECTIONS,
106
- props: {
107
- ...SEED_DATA_PROPS,
108
- icon: {
109
- group: GROUPS.basic,
110
- label: "Icon",
111
- description: "Icon to display on the top right",
112
- formType: FORM_TYPES.icon,
113
- propType: PROP_TYPES.STRING,
114
- defaultValue: null,
115
- editable: true,
116
- required: true,
117
- },
118
- numColumns: createNumColumnsType({
119
- defaultValue: 3,
120
- }),
121
- },
122
- },
123
- ];
@@ -1,136 +0,0 @@
1
- import {
2
- GROUPS,
3
- COMPONENT_TYPES,
4
- FORM_TYPES,
5
- PROP_TYPES,
6
- createElevationType,
7
- createNumColumnsType,
8
- BLOCK_STYLES_SECTIONS,
9
- } from "@draftbit/types";
10
-
11
- const SEED_DATA_PROPS = {
12
- image: {
13
- group: GROUPS.data,
14
- label: "Image",
15
- description: "Image",
16
- formType: FORM_TYPES.image,
17
- propType: PROP_TYPES.ASSET,
18
- defaultValue: null,
19
- editable: true,
20
- required: false,
21
- },
22
- title: {
23
- group: GROUPS.data,
24
- label: "Title",
25
- description: "Text to display",
26
- formType: FORM_TYPES.string,
27
- propType: PROP_TYPES.STRING,
28
- defaultValue: "Beautiful West Coast Villa",
29
- editable: true,
30
- required: false,
31
- },
32
- leftDescription: {
33
- group: GROUPS.data,
34
- label: "Left description",
35
- description: "Text to display on the left",
36
- formType: FORM_TYPES.string,
37
- propType: PROP_TYPES.STRING,
38
- defaultValue: "San Diego",
39
- editable: true,
40
- required: false,
41
- },
42
- rightDescription: {
43
- group: GROUPS.data,
44
- label: "Right description",
45
- description: "Text to display on the right",
46
- formType: FORM_TYPES.string,
47
- propType: PROP_TYPES.STRING,
48
- defaultValue: "$100",
49
- editable: true,
50
- required: false,
51
- },
52
- aspectRatio: {
53
- group: GROUPS.basic,
54
- label: "Aspect ratio",
55
- description: "Aspect ratio of the image",
56
- formType: FORM_TYPES.aspectRatio,
57
- propType: PROP_TYPES.NUMBER,
58
- defaultValue: 1.5,
59
- editable: true,
60
- required: false,
61
- },
62
- titleCentered: {
63
- group: GROUPS.basic,
64
- label: "Title centered",
65
- description: "Whether to center the title",
66
- formType: FORM_TYPES.boolean,
67
- propType: PROP_TYPES.BOOLEAN,
68
- defaultValue: false,
69
- editable: true,
70
- required: false,
71
- },
72
- elevation: createElevationType(2),
73
- };
74
-
75
- export const SEED_DATA = [
76
- {
77
- name: "Small Card",
78
- tag: "CardBlock",
79
- description:
80
- "An elevated card with a title and description, that takes up one third of its container.",
81
- category: COMPONENT_TYPES.card,
82
- props: {
83
- ...SEED_DATA_PROPS,
84
- numColumns: createNumColumnsType({
85
- defaultValue: 1,
86
- }),
87
- },
88
- },
89
- {
90
- name: "Medium Block Card",
91
- tag: "CardBlock",
92
- description:
93
- "An elevated card with a title and description, that takes up one half of its container.",
94
- category: COMPONENT_TYPES.card,
95
- props: {
96
- ...SEED_DATA_PROPS,
97
- icon: {
98
- group: GROUPS.basic,
99
- label: "Icon",
100
- description: "Icon to display on the top right",
101
- formType: FORM_TYPES.icon,
102
- propType: PROP_TYPES.STRING,
103
- defaultValue: null,
104
- editable: true,
105
- required: true,
106
- },
107
- numColumns: createNumColumnsType({
108
- defaultValue: 2,
109
- }),
110
- },
111
- },
112
- {
113
- name: "Large Block Card",
114
- tag: "CardBlock",
115
- description:
116
- "An elevated card with a title and description, that takes up the full width its container.",
117
- category: COMPONENT_TYPES.card,
118
- stylesPanelSections: BLOCK_STYLES_SECTIONS,
119
- props: {
120
- ...SEED_DATA_PROPS,
121
- icon: {
122
- group: GROUPS.basic,
123
- label: "Icon",
124
- description: "Icon to display on the top right",
125
- formType: FORM_TYPES.icon,
126
- propType: PROP_TYPES.STRING,
127
- defaultValue: null,
128
- editable: true,
129
- required: true,
130
- },
131
- numColumns: createNumColumnsType({
132
- defaultValue: 3,
133
- }),
134
- },
135
- },
136
- ];