@draftbit/core 43.4.1 → 43.4.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 (49) hide show
  1. package/lib/commonjs/components/DeprecatedFAB.js +4 -20
  2. package/lib/commonjs/components/DeprecatedFAB.js.map +1 -1
  3. package/lib/commonjs/components/Divider.js +3 -13
  4. package/lib/commonjs/components/Divider.js.map +1 -1
  5. package/lib/commonjs/components/FAB.js +19 -5
  6. package/lib/commonjs/components/FAB.js.map +1 -1
  7. package/lib/commonjs/components/FieldSearchBarFull.js.map +1 -1
  8. package/lib/commonjs/components/HeaderOverline.js.map +1 -1
  9. package/lib/commonjs/components/Justification.js +1 -2
  10. package/lib/commonjs/components/LinearGradient.js +52 -0
  11. package/lib/commonjs/components/LinearGradient.js.map +1 -0
  12. package/lib/commonjs/index.js +8 -0
  13. package/lib/commonjs/index.js.map +1 -1
  14. package/lib/commonjs/mappings/LinearGradient.js +63 -11
  15. package/lib/commonjs/mappings/LinearGradient.js.map +1 -1
  16. package/lib/commonjs/mappings/RadioButtonGroup.js.map +1 -1
  17. package/lib/commonjs/mappings/RadioButtonRow.js.map +1 -1
  18. package/lib/commonjs/mappings/RowHeadlineImageCaption.js.map +1 -1
  19. package/lib/commonjs/mappings/RowHeadlineImageIcon.js.map +1 -1
  20. package/lib/module/components/LinearGradient.js +38 -0
  21. package/lib/module/components/LinearGradient.js.map +1 -0
  22. package/lib/module/index.js +1 -0
  23. package/lib/module/index.js.map +1 -1
  24. package/lib/module/mappings/LinearGradient.js +64 -12
  25. package/lib/module/mappings/LinearGradient.js.map +1 -1
  26. package/lib/typescript/src/components/LinearGradient.d.ts +15 -0
  27. package/lib/typescript/src/index.d.ts +1 -0
  28. package/lib/typescript/src/mappings/LinearGradient.d.ts +79 -6
  29. package/package.json +3 -2
  30. package/src/components/LinearGradient.js +11 -0
  31. package/src/components/LinearGradient.tsx +40 -0
  32. package/src/index.js +1 -0
  33. package/src/index.tsx +1 -0
  34. package/src/mappings/LinearGradient.js +64 -12
  35. package/src/mappings/LinearGradient.ts +69 -13
  36. package/lib/commonjs/mappings/DeprecatedButton.js +0 -111
  37. package/lib/commonjs/mappings/DeprecatedButton.js.map +0 -1
  38. package/lib/commonjs/mappings/DeprecatedFAB.js +0 -147
  39. package/lib/commonjs/mappings/DeprecatedFAB.js.map +0 -1
  40. package/lib/module/mappings/DeprecatedButton.js +0 -102
  41. package/lib/module/mappings/DeprecatedButton.js.map +0 -1
  42. package/lib/module/mappings/DeprecatedFAB.js +0 -138
  43. package/lib/module/mappings/DeprecatedFAB.js.map +0 -1
  44. package/lib/typescript/src/mappings/DeprecatedButton.d.ts +0 -89
  45. package/lib/typescript/src/mappings/DeprecatedFAB.d.ts +0 -178
  46. package/src/mappings/DeprecatedButton.js +0 -106
  47. package/src/mappings/DeprecatedButton.ts +0 -115
  48. package/src/mappings/DeprecatedFAB.js +0 -146
  49. package/src/mappings/DeprecatedFAB.ts +0 -153
@@ -1,89 +0,0 @@
1
- export declare const SEED_DATA: {
2
- name: string;
3
- tag: string;
4
- category: string;
5
- triggers: string[];
6
- props: {
7
- type: {
8
- group: string;
9
- label: string;
10
- description: string;
11
- editable: boolean;
12
- required: boolean;
13
- formType: string;
14
- propType: string;
15
- defaultValue: string;
16
- };
17
- onPress: {
18
- label: string;
19
- description: string;
20
- editable: boolean;
21
- required: boolean;
22
- formType: string;
23
- propType: string;
24
- defaultValue: null;
25
- group: string;
26
- };
27
- icon: {
28
- group: string;
29
- label: string;
30
- description: string;
31
- editable: boolean;
32
- required: boolean;
33
- formType: string;
34
- propType: string;
35
- defaultValue: null;
36
- };
37
- children: {
38
- group: string;
39
- label: string;
40
- description: string;
41
- required: boolean;
42
- editable: boolean;
43
- formType: string;
44
- propType: string;
45
- defaultValue: string;
46
- };
47
- color: {
48
- group: string;
49
- label: string;
50
- description: string;
51
- editable: boolean;
52
- required: boolean;
53
- formType: string;
54
- propType: string;
55
- defaultValue: null;
56
- };
57
- labelColor: {
58
- group: string;
59
- label: string;
60
- description: string;
61
- editable: boolean;
62
- required: boolean;
63
- formType: string;
64
- propType: string;
65
- defaultValue: null;
66
- };
67
- disabled: {
68
- group: string;
69
- label: string;
70
- description: string;
71
- editable: boolean;
72
- required: boolean;
73
- formType: string;
74
- propType: string;
75
- defaultValue: null;
76
- };
77
- loading: {
78
- group: string;
79
- label: string;
80
- description: string;
81
- editable: boolean;
82
- required: boolean;
83
- formType: string;
84
- propType: string;
85
- defaultValue: null;
86
- };
87
- };
88
- layout: {};
89
- }[];
@@ -1,178 +0,0 @@
1
- export declare const SEED_DATA: ({
2
- name: string;
3
- tag: string;
4
- category: string;
5
- description: string;
6
- preview_image_url: string;
7
- props: {
8
- type: {
9
- group: string;
10
- label: string;
11
- description: string;
12
- editable: boolean;
13
- required: boolean;
14
- formType: string;
15
- propType: string;
16
- defaultValue: string;
17
- };
18
- label: {
19
- group: string;
20
- label: string;
21
- description: string;
22
- required: boolean;
23
- editable: boolean;
24
- formType: string;
25
- propType: string;
26
- defaultValue: null;
27
- };
28
- icon: {
29
- group: string;
30
- label: string;
31
- description: string;
32
- editable: boolean;
33
- required: boolean;
34
- formType: string;
35
- propType: string;
36
- defaultValue: null;
37
- };
38
- color: {
39
- group: string;
40
- label: string;
41
- description: string;
42
- editable: boolean;
43
- required: boolean;
44
- formType: string;
45
- propType: string;
46
- defaultValue: null;
47
- };
48
- onPress: {
49
- group: string;
50
- label: string;
51
- description: string;
52
- editable: boolean;
53
- required: boolean;
54
- formType: string;
55
- propType: string;
56
- defaultValue: null;
57
- };
58
- };
59
- layout: {};
60
- } | {
61
- name: string;
62
- tag: string;
63
- category: string;
64
- preview_image_url: string;
65
- props: {
66
- type: {
67
- group: string;
68
- label: string;
69
- description: string;
70
- editable: boolean;
71
- required: boolean;
72
- propType: string;
73
- formType: string;
74
- defaultValue: string;
75
- };
76
- label: {
77
- group: string;
78
- label: string;
79
- description: string;
80
- required: boolean;
81
- editable: boolean;
82
- formType: string;
83
- propType: string;
84
- defaultValue: null;
85
- };
86
- icon: {
87
- group: string;
88
- label: string;
89
- description: string;
90
- editable: boolean;
91
- required: boolean;
92
- formType: string;
93
- propType: string;
94
- defaultValue: null;
95
- };
96
- color: {
97
- group: string;
98
- label: string;
99
- description: string;
100
- editable: boolean;
101
- required: boolean;
102
- formType: string;
103
- propType: string;
104
- defaultValue: null;
105
- };
106
- onPress: {
107
- group: string;
108
- label: string;
109
- description: string;
110
- editable: boolean;
111
- required: boolean;
112
- formType: string;
113
- propType: string;
114
- defaultValue: null;
115
- };
116
- };
117
- layout: {};
118
- description?: undefined;
119
- } | {
120
- name: string;
121
- tag: string;
122
- category: string;
123
- preview_image_url: string;
124
- props: {
125
- type: {
126
- group: string;
127
- label: string;
128
- description: string;
129
- editable: boolean;
130
- required: boolean;
131
- formType: string;
132
- propType: string;
133
- defaultValue: string;
134
- };
135
- icon: {
136
- group: string;
137
- label: string;
138
- description: string;
139
- editable: boolean;
140
- required: boolean;
141
- formType: string;
142
- propType: string;
143
- defaultValue: null;
144
- };
145
- label: {
146
- group: string;
147
- label: string;
148
- description: string;
149
- required: boolean;
150
- editable: boolean;
151
- formType: string;
152
- propType: string;
153
- defaultValue: string;
154
- };
155
- color: {
156
- group: string;
157
- label: string;
158
- description: string;
159
- editable: boolean;
160
- required: boolean;
161
- formType: string;
162
- propType: string;
163
- defaultValue: null;
164
- };
165
- onPress: {
166
- group: string;
167
- label: string;
168
- description: string;
169
- editable: boolean;
170
- required: boolean;
171
- formType: string;
172
- propType: string;
173
- defaultValue: null;
174
- };
175
- };
176
- layout: {};
177
- description?: undefined;
178
- })[];
@@ -1,106 +0,0 @@
1
- import { GROUPS, FORM_TYPES, PROP_TYPES, COMPONENT_TYPES, createActionProp, Triggers, } from "@draftbit/types";
2
- const SEED_DATA_PROPS = {
3
- onPress: createActionProp(),
4
- icon: {
5
- group: GROUPS.basic,
6
- label: "Icon Name",
7
- description: "Name of the icon",
8
- editable: true,
9
- required: true,
10
- formType: FORM_TYPES.icon,
11
- propType: PROP_TYPES.STRING,
12
- defaultValue: null,
13
- },
14
- children: {
15
- group: GROUPS.data,
16
- label: "Label",
17
- description: "Button label",
18
- required: true,
19
- editable: true,
20
- formType: FORM_TYPES.string,
21
- propType: PROP_TYPES.STRING,
22
- defaultValue: "Get Started",
23
- },
24
- color: {
25
- group: GROUPS.basic,
26
- label: "Color Override",
27
- description: "Override the background color of the button",
28
- editable: true,
29
- required: false,
30
- formType: FORM_TYPES.color,
31
- propType: PROP_TYPES.THEME,
32
- defaultValue: null,
33
- },
34
- labelColor: {
35
- group: GROUPS.basic,
36
- label: "Label Color Override",
37
- description: "Override the label color of the button",
38
- editable: true,
39
- required: false,
40
- formType: FORM_TYPES.color,
41
- propType: PROP_TYPES.THEME,
42
- defaultValue: null,
43
- },
44
- disabled: {
45
- group: GROUPS.basic,
46
- label: "Disabled",
47
- description: "Whether the button should be disabled",
48
- editable: true,
49
- required: false,
50
- formType: FORM_TYPES.boolean,
51
- propType: PROP_TYPES.BOOLEAN,
52
- defaultValue: null,
53
- },
54
- loading: {
55
- group: GROUPS.data,
56
- label: "Loading",
57
- description: "Whether to show a loading indicator",
58
- editable: true,
59
- required: false,
60
- formType: FORM_TYPES.boolean,
61
- propType: PROP_TYPES.BOOLEAN,
62
- defaultValue: null,
63
- },
64
- };
65
- export const SEED_DATA = [
66
- {
67
- name: "Button Outline",
68
- tag: "Button",
69
- category: COMPONENT_TYPES.deprecated,
70
- triggers: [Triggers.OnPress],
71
- props: {
72
- ...SEED_DATA_PROPS,
73
- type: {
74
- group: GROUPS.uncategorized,
75
- label: "Type",
76
- description: "Button type",
77
- editable: false,
78
- required: true,
79
- formType: FORM_TYPES.string,
80
- propType: PROP_TYPES.STRING,
81
- defaultValue: "outline",
82
- },
83
- },
84
- layout: {},
85
- },
86
- {
87
- name: "Button Solid",
88
- tag: "Button",
89
- category: COMPONENT_TYPES.deprecated,
90
- triggers: [Triggers.OnPress],
91
- props: {
92
- ...SEED_DATA_PROPS,
93
- type: {
94
- group: GROUPS.uncategorized,
95
- label: "Type",
96
- description: "Button type",
97
- editable: false,
98
- required: true,
99
- formType: FORM_TYPES.string,
100
- propType: PROP_TYPES.STRING,
101
- defaultValue: "solid",
102
- },
103
- },
104
- layout: {},
105
- },
106
- ];
@@ -1,115 +0,0 @@
1
- import {
2
- GROUPS,
3
- FORM_TYPES,
4
- PROP_TYPES,
5
- COMPONENT_TYPES,
6
- createActionProp,
7
- Triggers,
8
- } from "@draftbit/types";
9
-
10
- const SEED_DATA_PROPS = {
11
- onPress: createActionProp(),
12
- icon: {
13
- group: GROUPS.basic,
14
- label: "Icon Name",
15
- description: "Name of the icon",
16
- editable: true,
17
- required: true,
18
- formType: FORM_TYPES.icon,
19
- propType: PROP_TYPES.STRING,
20
- defaultValue: null,
21
- },
22
- children: {
23
- group: GROUPS.data,
24
- label: "Label",
25
- description: "Button label",
26
- required: true,
27
- editable: true,
28
- formType: FORM_TYPES.string,
29
- propType: PROP_TYPES.STRING,
30
- defaultValue: "Get Started",
31
- },
32
- color: {
33
- group: GROUPS.basic,
34
- label: "Color Override",
35
- description: "Override the background color of the button",
36
- editable: true,
37
- required: false,
38
- formType: FORM_TYPES.color,
39
- propType: PROP_TYPES.THEME,
40
- defaultValue: null,
41
- },
42
- labelColor: {
43
- group: GROUPS.basic,
44
- label: "Label Color Override",
45
- description: "Override the label color of the button",
46
- editable: true,
47
- required: false,
48
- formType: FORM_TYPES.color,
49
- propType: PROP_TYPES.THEME,
50
- defaultValue: null,
51
- },
52
- disabled: {
53
- group: GROUPS.basic,
54
- label: "Disabled",
55
- description: "Whether the button should be disabled",
56
- editable: true,
57
- required: false,
58
- formType: FORM_TYPES.boolean,
59
- propType: PROP_TYPES.BOOLEAN,
60
- defaultValue: null,
61
- },
62
- loading: {
63
- group: GROUPS.data,
64
- label: "Loading",
65
- description: "Whether to show a loading indicator",
66
- editable: true,
67
- required: false,
68
- formType: FORM_TYPES.boolean,
69
- propType: PROP_TYPES.BOOLEAN,
70
- defaultValue: null,
71
- },
72
- };
73
-
74
- export const SEED_DATA = [
75
- {
76
- name: "Button Outline",
77
- tag: "Button",
78
- category: COMPONENT_TYPES.deprecated,
79
- triggers: [Triggers.OnPress],
80
- props: {
81
- ...SEED_DATA_PROPS,
82
- type: {
83
- group: GROUPS.uncategorized,
84
- label: "Type",
85
- description: "Button type",
86
- editable: false,
87
- required: true,
88
- formType: FORM_TYPES.string,
89
- propType: PROP_TYPES.STRING,
90
- defaultValue: "outline",
91
- },
92
- },
93
- layout: {},
94
- },
95
- {
96
- name: "Button Solid",
97
- tag: "Button",
98
- category: COMPONENT_TYPES.deprecated,
99
- triggers: [Triggers.OnPress],
100
- props: {
101
- ...SEED_DATA_PROPS,
102
- type: {
103
- group: GROUPS.uncategorized,
104
- label: "Type",
105
- description: "Button type",
106
- editable: false,
107
- required: true,
108
- formType: FORM_TYPES.string,
109
- propType: PROP_TYPES.STRING,
110
- defaultValue: "solid",
111
- },
112
- },
113
- layout: {},
114
- },
115
- ];
@@ -1,146 +0,0 @@
1
- import { GROUPS, FORM_TYPES, PROP_TYPES, COMPONENT_TYPES, } from "@draftbit/types";
2
- const SEED_DATA_PROPS = {
3
- icon: {
4
- group: GROUPS.basic,
5
- label: "Icon Name",
6
- description: "Name of the icon",
7
- editable: true,
8
- required: true,
9
- formType: FORM_TYPES.icon,
10
- propType: PROP_TYPES.ASSET,
11
- defaultValue: null,
12
- },
13
- label: {
14
- group: GROUPS.basic,
15
- label: "Label",
16
- description: "Button label",
17
- required: true,
18
- editable: true,
19
- formType: FORM_TYPES.string,
20
- propType: PROP_TYPES.STRING,
21
- defaultValue: "GET STARTED",
22
- },
23
- color: {
24
- group: GROUPS.basic,
25
- label: "Color Override",
26
- description: "Override the background color of the button",
27
- editable: true,
28
- required: false,
29
- formType: FORM_TYPES.color,
30
- propType: PROP_TYPES.THEME,
31
- defaultValue: null,
32
- },
33
- onPress: {
34
- group: GROUPS.basic,
35
- label: "Action",
36
- description: "Action to execute when button pressed",
37
- editable: true,
38
- required: false,
39
- formType: FORM_TYPES.action,
40
- propType: PROP_TYPES.STRING,
41
- defaultValue: null,
42
- },
43
- };
44
- export const SEED_DATA = [
45
- {
46
- name: "FAB Mini",
47
- tag: "FAB",
48
- category: COMPONENT_TYPES.deprecated,
49
- description: "A round, mini FAB",
50
- preview_image_url: "{CLOUDINARY_URL}/Button_FABMini.png",
51
- props: {
52
- ...SEED_DATA_PROPS,
53
- type: {
54
- group: GROUPS.uncategorized,
55
- label: "Type",
56
- description: "Button type",
57
- editable: false,
58
- required: true,
59
- formType: FORM_TYPES.icon,
60
- propType: PROP_TYPES.STRING,
61
- defaultValue: "standard",
62
- },
63
- label: {
64
- group: GROUPS.data,
65
- label: "Label",
66
- description: "Button label",
67
- required: false,
68
- editable: false,
69
- formType: FORM_TYPES.string,
70
- propType: PROP_TYPES.STRING,
71
- defaultValue: null,
72
- },
73
- },
74
- layout: {},
75
- },
76
- {
77
- name: "FAB Outline",
78
- tag: "FAB",
79
- category: COMPONENT_TYPES.deprecated,
80
- preview_image_url: "{CLOUDINARY_URL}/Button_FABMini.png",
81
- props: {
82
- ...SEED_DATA_PROPS,
83
- type: {
84
- group: GROUPS.uncategorized,
85
- label: "Type",
86
- description: "Button type",
87
- editable: false,
88
- required: true,
89
- propType: PROP_TYPES.STRING,
90
- formType: FORM_TYPES.string,
91
- defaultValue: "outline",
92
- },
93
- label: {
94
- group: GROUPS.uncategorized,
95
- label: "Label",
96
- description: "Button label",
97
- required: false,
98
- editable: false,
99
- formType: FORM_TYPES.string,
100
- propType: PROP_TYPES.STRING,
101
- defaultValue: null,
102
- },
103
- },
104
- layout: {},
105
- },
106
- {
107
- name: "FAB Extended",
108
- tag: "FAB",
109
- category: COMPONENT_TYPES.deprecated,
110
- preview_image_url: "{CLOUDINARY_URL}/Button_FABExtended.png",
111
- props: {
112
- ...SEED_DATA_PROPS,
113
- type: {
114
- group: GROUPS.uncategorized,
115
- label: "Type",
116
- description: "Button type",
117
- editable: false,
118
- required: true,
119
- formType: FORM_TYPES.string,
120
- propType: PROP_TYPES.STRING,
121
- defaultValue: "extended",
122
- },
123
- },
124
- layout: {},
125
- },
126
- {
127
- name: "FAB Fixed",
128
- tag: "FAB",
129
- category: COMPONENT_TYPES.deprecated,
130
- preview_image_url: "{CLOUDINARY_URL}/Button_FABFixed.png",
131
- props: {
132
- ...SEED_DATA_PROPS,
133
- type: {
134
- group: GROUPS.uncategorized,
135
- label: "Type",
136
- description: "Button type",
137
- editable: false,
138
- required: true,
139
- formType: FORM_TYPES.string,
140
- propType: PROP_TYPES.STRING,
141
- defaultValue: "fixed",
142
- },
143
- },
144
- layout: {},
145
- },
146
- ];