@draftbit/core 43.4.1 → 43.4.2-9ce900.0

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 (44) hide show
  1. package/lib/commonjs/Provider.js.map +1 -1
  2. package/lib/commonjs/components/DeprecatedFAB.js +4 -20
  3. package/lib/commonjs/components/DeprecatedFAB.js.map +1 -1
  4. package/lib/commonjs/components/Divider.js +3 -13
  5. package/lib/commonjs/components/Divider.js.map +1 -1
  6. package/lib/commonjs/components/Elevation.js +14 -3
  7. package/lib/commonjs/components/Elevation.js.map +1 -1
  8. package/lib/commonjs/components/FAB.js +19 -5
  9. package/lib/commonjs/components/FAB.js.map +1 -1
  10. package/lib/commonjs/components/HeaderOverline.js.map +1 -1
  11. package/lib/commonjs/components/Justification.js +1 -2
  12. package/lib/commonjs/components/Picker/PickerComponent.ios.js +30 -10
  13. package/lib/commonjs/components/Picker/PickerComponent.ios.js.map +1 -1
  14. package/lib/commonjs/components/Swiper/Swiper.js.map +1 -1
  15. package/lib/commonjs/index.js.map +1 -1
  16. package/lib/commonjs/mappings/Fetch.js.map +1 -1
  17. package/lib/commonjs/mappings/HeaderLarge.js.map +1 -1
  18. package/lib/commonjs/mappings/Icon.js.map +1 -1
  19. package/lib/commonjs/mappings/RadioButtonGroup.js.map +1 -1
  20. package/lib/commonjs/mappings/RadioButtonRow.js.map +1 -1
  21. package/lib/commonjs/mappings/RowBodyIcon.js.map +1 -1
  22. package/lib/commonjs/mappings/RowHeadlineImageCaption.js.map +1 -1
  23. package/lib/commonjs/mappings/RowHeadlineImageIcon.js.map +1 -1
  24. package/lib/commonjs/mappings/ToggleButton.js.map +1 -1
  25. package/lib/commonjs/styles/overlay.js.map +1 -1
  26. package/lib/module/components/RadioButton/RadioButtonGroup.js +16 -5
  27. package/lib/module/components/RadioButton/RadioButtonGroup.js.map +1 -1
  28. package/lib/module/mappings/CheckboxGroup.js.map +1 -1
  29. package/lib/module/mappings/Container.js.map +1 -1
  30. package/package.json +2 -2
  31. package/lib/commonjs/mappings/DeprecatedButton.js +0 -111
  32. package/lib/commonjs/mappings/DeprecatedButton.js.map +0 -1
  33. package/lib/commonjs/mappings/DeprecatedFAB.js +0 -147
  34. package/lib/commonjs/mappings/DeprecatedFAB.js.map +0 -1
  35. package/lib/module/mappings/DeprecatedButton.js +0 -102
  36. package/lib/module/mappings/DeprecatedButton.js.map +0 -1
  37. package/lib/module/mappings/DeprecatedFAB.js +0 -138
  38. package/lib/module/mappings/DeprecatedFAB.js.map +0 -1
  39. package/lib/typescript/src/mappings/DeprecatedButton.d.ts +0 -89
  40. package/lib/typescript/src/mappings/DeprecatedFAB.d.ts +0 -178
  41. package/src/mappings/DeprecatedButton.js +0 -106
  42. package/src/mappings/DeprecatedButton.ts +0 -115
  43. package/src/mappings/DeprecatedFAB.js +0 -146
  44. package/src/mappings/DeprecatedFAB.ts +0 -153
@@ -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
- ];