@draftbit/core 43.4.1 → 43.4.2-80bace.1

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