@draftbit/core 46.10.3-d37409.2 → 46.10.3-dd9206.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 (89) hide show
  1. package/lib/commonjs/components/Accordion/AccordionItem.js +23 -4
  2. package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +5 -23
  3. package/lib/commonjs/components/Checkbox/CheckboxRow.js +6 -23
  4. package/lib/commonjs/components/RadioButton/RadioButtonRow.js +23 -5
  5. package/lib/commonjs/components/Table/Table.js +3 -7
  6. package/lib/commonjs/constants.js +1 -1
  7. package/lib/module/components/Table/Table.js +2 -7
  8. package/lib/typescript/src/components/Table/Table.d.ts.map +1 -1
  9. package/package.json +3 -3
  10. package/src/components/Table/Table.js +1 -5
  11. package/src/components/Table/Table.tsx +1 -5
  12. package/lib/commonjs/components/DeprecatedCardWrapper.js +0 -40
  13. package/lib/commonjs/components/DeprecatedFAB.js +0 -157
  14. package/lib/commonjs/components/ProgressIndicator.js +0 -55
  15. package/lib/commonjs/components/ResizeMode.js +0 -5
  16. package/lib/commonjs/mappings/CardBlock.js +0 -126
  17. package/lib/commonjs/mappings/CardContainer.js +0 -108
  18. package/lib/commonjs/mappings/CardContainerRating.js +0 -130
  19. package/lib/commonjs/mappings/CardContainerShortImage.js +0 -124
  20. package/lib/commonjs/mappings/CardInline.js +0 -59
  21. package/lib/commonjs/mappings/HeaderLarge.js +0 -34
  22. package/lib/commonjs/mappings/HeaderMedium.js +0 -60
  23. package/lib/commonjs/mappings/HeaderOverline.js +0 -60
  24. package/lib/commonjs/mappings/ProgressIndicator.js +0 -188
  25. package/lib/module/components/DeprecatedCardWrapper.js +0 -32
  26. package/lib/module/components/DeprecatedFAB.js +0 -147
  27. package/lib/module/components/ProgressIndicator.js +0 -45
  28. package/lib/module/components/ResizeMode.js +0 -1
  29. package/lib/module/mappings/CardBlock.js +0 -119
  30. package/lib/module/mappings/CardContainer.js +0 -101
  31. package/lib/module/mappings/CardContainerRating.js +0 -123
  32. package/lib/module/mappings/CardContainerShortImage.js +0 -117
  33. package/lib/module/mappings/CardInline.js +0 -52
  34. package/lib/module/mappings/HeaderLarge.js +0 -27
  35. package/lib/module/mappings/HeaderMedium.js +0 -53
  36. package/lib/module/mappings/HeaderOverline.js +0 -53
  37. package/lib/module/mappings/ProgressIndicator.js +0 -181
  38. package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts +0 -15
  39. package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts.map +0 -1
  40. package/lib/typescript/src/components/DeprecatedFAB.d.ts +0 -56
  41. package/lib/typescript/src/components/DeprecatedFAB.d.ts.map +0 -1
  42. package/lib/typescript/src/components/ProgressIndicator.d.ts +0 -24
  43. package/lib/typescript/src/components/ProgressIndicator.d.ts.map +0 -1
  44. package/lib/typescript/src/components/ResizeMode.d.ts +0 -2
  45. package/lib/typescript/src/components/ResizeMode.d.ts.map +0 -1
  46. package/lib/typescript/src/mappings/CardBlock.d.ts +0 -289
  47. package/lib/typescript/src/mappings/CardBlock.d.ts.map +0 -1
  48. package/lib/typescript/src/mappings/CardContainer.d.ts +0 -102
  49. package/lib/typescript/src/mappings/CardContainer.d.ts.map +0 -1
  50. package/lib/typescript/src/mappings/CardContainerRating.d.ts +0 -108
  51. package/lib/typescript/src/mappings/CardContainerRating.d.ts.map +0 -1
  52. package/lib/typescript/src/mappings/CardContainerShortImage.d.ts +0 -139
  53. package/lib/typescript/src/mappings/CardContainerShortImage.d.ts.map +0 -1
  54. package/lib/typescript/src/mappings/CardInline.d.ts +0 -62
  55. package/lib/typescript/src/mappings/CardInline.d.ts.map +0 -1
  56. package/lib/typescript/src/mappings/HeaderLarge.d.ts +0 -34
  57. package/lib/typescript/src/mappings/HeaderLarge.d.ts.map +0 -1
  58. package/lib/typescript/src/mappings/HeaderMedium.d.ts +0 -53
  59. package/lib/typescript/src/mappings/HeaderMedium.d.ts.map +0 -1
  60. package/lib/typescript/src/mappings/HeaderOverline.d.ts +0 -53
  61. package/lib/typescript/src/mappings/HeaderOverline.d.ts.map +0 -1
  62. package/lib/typescript/src/mappings/ProgressIndicator.d.ts +0 -181
  63. package/lib/typescript/src/mappings/ProgressIndicator.d.ts.map +0 -1
  64. package/src/components/DeprecatedCardWrapper.js +0 -18
  65. package/src/components/DeprecatedCardWrapper.tsx +0 -46
  66. package/src/components/DeprecatedFAB.js +0 -114
  67. package/src/components/DeprecatedFAB.tsx +0 -231
  68. package/src/components/ProgressIndicator.js +0 -27
  69. package/src/components/ProgressIndicator.tsx +0 -71
  70. package/src/components/ResizeMode.js +0 -1
  71. package/src/components/ResizeMode.ts +0 -7
  72. package/src/mappings/CardBlock.js +0 -123
  73. package/src/mappings/CardBlock.ts +0 -136
  74. package/src/mappings/CardContainer.js +0 -104
  75. package/src/mappings/CardContainer.ts +0 -116
  76. package/src/mappings/CardContainerRating.js +0 -126
  77. package/src/mappings/CardContainerRating.ts +0 -137
  78. package/src/mappings/CardContainerShortImage.js +0 -120
  79. package/src/mappings/CardContainerShortImage.ts +0 -130
  80. package/src/mappings/CardInline.js +0 -52
  81. package/src/mappings/CardInline.ts +0 -61
  82. package/src/mappings/HeaderLarge.js +0 -29
  83. package/src/mappings/HeaderLarge.ts +0 -38
  84. package/src/mappings/HeaderMedium.js +0 -55
  85. package/src/mappings/HeaderMedium.ts +0 -63
  86. package/src/mappings/HeaderOverline.js +0 -55
  87. package/src/mappings/HeaderOverline.ts +0 -63
  88. package/src/mappings/ProgressIndicator.js +0 -181
  89. package/src/mappings/ProgressIndicator.ts +0 -190
@@ -1,126 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SEED_DATA = void 0;
7
- var _types = require("@draftbit/types");
8
- const SEED_DATA_PROPS = {
9
- image: {
10
- group: _types.GROUPS.data,
11
- label: "Image",
12
- description: "Image",
13
- formType: _types.FORM_TYPES.image,
14
- propType: _types.PROP_TYPES.ASSET,
15
- defaultValue: null,
16
- editable: true,
17
- required: false
18
- },
19
- title: {
20
- group: _types.GROUPS.data,
21
- label: "Title",
22
- description: "Text to display",
23
- formType: _types.FORM_TYPES.string,
24
- propType: _types.PROP_TYPES.STRING,
25
- defaultValue: "Beautiful West Coast Villa",
26
- editable: true,
27
- required: false
28
- },
29
- leftDescription: {
30
- group: _types.GROUPS.data,
31
- label: "Left description",
32
- description: "Text to display on the left",
33
- formType: _types.FORM_TYPES.string,
34
- propType: _types.PROP_TYPES.STRING,
35
- defaultValue: "San Diego",
36
- editable: true,
37
- required: false
38
- },
39
- rightDescription: {
40
- group: _types.GROUPS.data,
41
- label: "Right description",
42
- description: "Text to display on the right",
43
- formType: _types.FORM_TYPES.string,
44
- propType: _types.PROP_TYPES.STRING,
45
- defaultValue: "$100",
46
- editable: true,
47
- required: false
48
- },
49
- aspectRatio: {
50
- group: _types.GROUPS.basic,
51
- label: "Aspect ratio",
52
- description: "Aspect ratio of the image",
53
- formType: _types.FORM_TYPES.aspectRatio,
54
- propType: _types.PROP_TYPES.NUMBER,
55
- defaultValue: 1.5,
56
- editable: true,
57
- required: false
58
- },
59
- titleCentered: {
60
- group: _types.GROUPS.basic,
61
- label: "Title centered",
62
- description: "Whether to center the title",
63
- formType: _types.FORM_TYPES.boolean,
64
- propType: _types.PROP_TYPES.BOOLEAN,
65
- defaultValue: false,
66
- editable: true,
67
- required: false
68
- },
69
- elevation: (0, _types.createElevationType)(2)
70
- };
71
- const SEED_DATA = [{
72
- name: "Small Card",
73
- tag: "CardBlock",
74
- description: "An elevated card with a title and description, that takes up one third of its container.",
75
- category: _types.COMPONENT_TYPES.card,
76
- props: {
77
- ...SEED_DATA_PROPS,
78
- numColumns: (0, _types.createNumColumnsType)({
79
- defaultValue: 1
80
- })
81
- }
82
- }, {
83
- name: "Medium Block Card",
84
- tag: "CardBlock",
85
- description: "An elevated card with a title and description, that takes up one half of its container.",
86
- category: _types.COMPONENT_TYPES.card,
87
- props: {
88
- ...SEED_DATA_PROPS,
89
- icon: {
90
- group: _types.GROUPS.basic,
91
- label: "Icon",
92
- description: "Icon to display on the top right",
93
- formType: _types.FORM_TYPES.icon,
94
- propType: _types.PROP_TYPES.STRING,
95
- defaultValue: null,
96
- editable: true,
97
- required: true
98
- },
99
- numColumns: (0, _types.createNumColumnsType)({
100
- defaultValue: 2
101
- })
102
- }
103
- }, {
104
- name: "Large Block Card",
105
- tag: "CardBlock",
106
- description: "An elevated card with a title and description, that takes up the full width its container.",
107
- category: _types.COMPONENT_TYPES.card,
108
- stylesPanelSections: _types.BLOCK_STYLES_SECTIONS,
109
- props: {
110
- ...SEED_DATA_PROPS,
111
- icon: {
112
- group: _types.GROUPS.basic,
113
- label: "Icon",
114
- description: "Icon to display on the top right",
115
- formType: _types.FORM_TYPES.icon,
116
- propType: _types.PROP_TYPES.STRING,
117
- defaultValue: null,
118
- editable: true,
119
- required: true
120
- },
121
- numColumns: (0, _types.createNumColumnsType)({
122
- defaultValue: 3
123
- })
124
- }
125
- }];
126
- exports.SEED_DATA = SEED_DATA;
@@ -1,108 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SEED_DATA = void 0;
7
- var _types = require("@draftbit/types");
8
- const SEED_DATA_PROPS = {
9
- image: {
10
- label: "Image",
11
- description: "Image",
12
- formType: _types.FORM_TYPES.image,
13
- propType: _types.PROP_TYPES.ASSET,
14
- defaultValue: null,
15
- editable: true,
16
- required: true,
17
- group: _types.GROUPS.data
18
- },
19
- title: {
20
- label: "Title",
21
- description: "Text to display",
22
- formType: _types.FORM_TYPES.string,
23
- propType: _types.PROP_TYPES.STRING,
24
- defaultValue: "Beautiful West Coast Villa",
25
- editable: true,
26
- required: false,
27
- group: _types.GROUPS.data
28
- },
29
- leftDescription: {
30
- label: "Left description",
31
- description: "Text to display on the left",
32
- formType: _types.FORM_TYPES.string,
33
- propType: _types.PROP_TYPES.STRING,
34
- defaultValue: "San Diego",
35
- editable: true,
36
- required: false,
37
- group: _types.GROUPS.data
38
- },
39
- rightDescription: {
40
- label: "Right description",
41
- description: "Text to display on the right",
42
- formType: _types.FORM_TYPES.string,
43
- propType: _types.PROP_TYPES.STRING,
44
- defaultValue: "$100",
45
- editable: true,
46
- required: false,
47
- group: _types.GROUPS.data
48
- },
49
- icon: {
50
- label: "Icon",
51
- description: "Icon to display on the top right",
52
- formType: _types.FORM_TYPES.icon,
53
- propType: _types.PROP_TYPES.STRING /* OR ASSET TODO TEST ME */,
54
- defaultValue: null,
55
- editable: true,
56
- required: false,
57
- group: _types.GROUPS.basic
58
- },
59
- aspectRatio: {
60
- label: "Aspect ratio",
61
- description: "Aspect ratio of the image",
62
- formType: _types.FORM_TYPES.aspectRatio,
63
- propType: _types.PROP_TYPES.NUMBER,
64
- defaultValue: 1.5,
65
- editable: true,
66
- required: false,
67
- group: _types.GROUPS.basic
68
- },
69
- textCentered: {
70
- label: "Centered Text",
71
- description: "Whether to center the text",
72
- formType: _types.FORM_TYPES.boolean,
73
- propType: _types.PROP_TYPES.BOOLEAN,
74
- defaultValue: false,
75
- editable: true,
76
- required: false,
77
- group: _types.GROUPS.basic
78
- },
79
- elevation: (0, _types.createElevationType)(2)
80
- };
81
- const SEED_DATA = [{
82
- name: "Medium Card",
83
- tag: "CardContainer",
84
- description: "An elevated card with a title and description, that takes up half of its container.",
85
- category: _types.COMPONENT_TYPES.card,
86
- stylesPanelSections: _types.BLOCK_STYLES_SECTIONS,
87
- layout: null,
88
- props: {
89
- ...SEED_DATA_PROPS,
90
- numColumns: (0, _types.createNumColumnsType)({
91
- defaultValue: 2
92
- })
93
- }
94
- }, {
95
- name: "Large Card",
96
- tag: "CardContainer",
97
- description: "An elevated card with a title and description, that takes up its full container.",
98
- category: _types.COMPONENT_TYPES.card,
99
- stylesPanelSections: _types.BLOCK_STYLES_SECTIONS,
100
- layout: null,
101
- props: {
102
- ...SEED_DATA_PROPS,
103
- numColumns: (0, _types.createNumColumnsType)({
104
- defaultValue: 3
105
- })
106
- }
107
- }];
108
- exports.SEED_DATA = SEED_DATA;
@@ -1,130 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SEED_DATA = void 0;
7
- var _types = require("@draftbit/types");
8
- const SEED_DATA_PROPS = {
9
- image: {
10
- group: _types.GROUPS.data,
11
- label: "Image",
12
- description: "Image",
13
- formType: _types.FORM_TYPES.image,
14
- propType: _types.PROP_TYPES.ASSET,
15
- defaultValue: null,
16
- editable: true,
17
- required: false
18
- },
19
- title: {
20
- group: _types.GROUPS.data,
21
- label: "Title",
22
- description: "Text to display",
23
- formType: _types.FORM_TYPES.string,
24
- propType: _types.PROP_TYPES.STRING,
25
- defaultValue: "Beautiful West Coast Villa",
26
- editable: true,
27
- required: false
28
- },
29
- leftDescription: {
30
- group: _types.GROUPS.data,
31
- label: "Left description",
32
- description: "Text to display on the left",
33
- formType: _types.FORM_TYPES.string,
34
- propType: _types.PROP_TYPES.STRING,
35
- defaultValue: "San Diego",
36
- editable: true,
37
- required: false
38
- },
39
- rightDescription: {
40
- group: _types.GROUPS.data,
41
- label: "Right description",
42
- description: "Text to display on the right",
43
- formType: _types.FORM_TYPES.string,
44
- propType: _types.PROP_TYPES.STRING,
45
- defaultValue: "$100",
46
- editable: true,
47
- required: false
48
- },
49
- icon: {
50
- group: _types.GROUPS.basic,
51
- label: "Icon",
52
- description: "Icon to display on the top right",
53
- formType: _types.FORM_TYPES.icon,
54
- propType: _types.PROP_TYPES.ASSET,
55
- defaultValue: null,
56
- editable: true,
57
- required: false
58
- },
59
- aspectRatio: {
60
- group: _types.GROUPS.basic,
61
- label: "Aspect ratio",
62
- description: "Aspect ratio of the image",
63
- formType: _types.FORM_TYPES.aspectRatio,
64
- propType: _types.PROP_TYPES.NUMBER,
65
- defaultValue: 1.5,
66
- editable: true,
67
- required: false
68
- },
69
- rating: {
70
- group: _types.GROUPS.data,
71
- label: "Rating",
72
- description: "Number of stars to show. A number 0-5.",
73
- formType: _types.FORM_TYPES.number,
74
- propType: _types.PROP_TYPES.NUMBER,
75
- defaultValue: 5,
76
- min: 0,
77
- max: 5,
78
- step: 1,
79
- precision: 0,
80
- editable: true,
81
- required: false
82
- },
83
- elevation: (0, _types.createElevationType)(2)
84
- };
85
- const SEED_DATA = [{
86
- name: "Medium Card (Rating)",
87
- tag: "CardContainerRating",
88
- description: "An elevated card with a title and description, that takes up half of its container.",
89
- category: _types.COMPONENT_TYPES.card,
90
- stylesPanelSections: _types.BLOCK_STYLES_SECTIONS,
91
- preview_image_url: "{CLOUDINARY_URL}/Card_ContainerRating_2col.png",
92
- supports_list_render: true,
93
- props: {
94
- ...SEED_DATA_PROPS,
95
- numColumns: {
96
- label: "Number of Columns",
97
- description: "Numbre of columns",
98
- group: _types.GROUPS.uncategorized,
99
- formType: _types.FORM_TYPES.number,
100
- propType: _types.PROP_TYPES.NUMBER,
101
- defaultValue: 2,
102
- editable: false,
103
- required: false
104
- }
105
- },
106
- layout: {}
107
- }, {
108
- name: "Large Card (Rating)",
109
- tag: "CardContainerRating",
110
- description: "An elevated card with a title and description, that takes up its full container.",
111
- category: _types.COMPONENT_TYPES.card,
112
- stylesPanelSections: _types.BLOCK_STYLES_SECTIONS,
113
- preview_image_url: "{CLOUDINARY_URL}/Card_ContainerRating_3col.png",
114
- supports_list_render: true,
115
- props: {
116
- ...SEED_DATA_PROPS,
117
- numColumns: {
118
- label: "Number of Columns",
119
- description: "Numbre of columns",
120
- group: _types.GROUPS.uncategorized,
121
- formType: _types.FORM_TYPES.number,
122
- propType: _types.PROP_TYPES.NUMBER,
123
- defaultValue: 3,
124
- editable: false,
125
- required: false
126
- }
127
- },
128
- layout: {}
129
- }];
130
- exports.SEED_DATA = SEED_DATA;
@@ -1,124 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SEED_DATA = void 0;
7
- var _types = require("@draftbit/types");
8
- const SEED_DATA = [{
9
- name: "Short Card (Left)",
10
- tag: "CardContainerShortImage",
11
- description: "An elevated card with a left aligned image and a title and subtitle",
12
- category: _types.COMPONENT_TYPES.card,
13
- stylesPanelSections: _types.BLOCK_STYLES_SECTIONS,
14
- preview_image_url: "{CLOUDINARY_URL}/Card_ContainerShortLeftImage.png",
15
- supports_list_render: true,
16
- props: {
17
- image: {
18
- group: _types.GROUPS.data,
19
- label: "Image",
20
- description: "Image",
21
- formType: _types.FORM_TYPES.image,
22
- propType: _types.PROP_TYPES.ASSET,
23
- defaultValue: null,
24
- editable: true,
25
- required: false
26
- },
27
- title: {
28
- group: _types.GROUPS.data,
29
- label: "Title",
30
- description: "Title to display",
31
- formType: _types.FORM_TYPES.string,
32
- propType: _types.PROP_TYPES.STRING,
33
- defaultValue: "Beautiful West Coast Villa",
34
- editable: true,
35
- required: false
36
- },
37
- subtitle: {
38
- group: _types.GROUPS.data,
39
- label: "Subtitle",
40
- description: "Subtitle to display",
41
- formType: _types.FORM_TYPES.string,
42
- propType: _types.PROP_TYPES.STRING,
43
- defaultValue: "San Diego",
44
- editable: true,
45
- required: false
46
- },
47
- aspectRatio: {
48
- group: _types.GROUPS.basic,
49
- label: "Aspect ratio",
50
- description: "Aspect ratio of the image",
51
- formType: _types.FORM_TYPES.aspectRatio,
52
- propType: _types.PROP_TYPES.STRING,
53
- defaultValue: null,
54
- editable: true,
55
- required: false
56
- },
57
- elevation: (0, _types.createElevationType)(2),
58
- mode: {
59
- group: _types.GROUPS.uncategorized,
60
- label: "Image Side",
61
- description: "The side on which the image is on (left or right)",
62
- formType: _types.FORM_TYPES.flatArray,
63
- propType: _types.PROP_TYPES.STRING,
64
- defaultValue: "left",
65
- options: ["left", "right"],
66
- editable: false,
67
- required: false
68
- }
69
- },
70
- layout: {}
71
- }, {
72
- name: "Short Card (Right)",
73
- tag: "CardContainerShortImage",
74
- description: "An elevated card with a right aligned image and a title and subtitle",
75
- category: _types.COMPONENT_TYPES.card,
76
- stylesPanelSections: _types.BLOCK_STYLES_SECTIONS,
77
- preview_image_url: "{CLOUDINARY_URL}/Card_ContainerShortRightImage.png",
78
- supports_list_render: true,
79
- props: {
80
- image: {
81
- group: _types.GROUPS.data,
82
- label: "Image",
83
- description: "Image",
84
- formType: _types.FORM_TYPES.image,
85
- propType: _types.PROP_TYPES.ASSET,
86
- defaultValue: null,
87
- editable: true,
88
- required: false
89
- },
90
- title: {
91
- group: _types.GROUPS.data,
92
- label: "Title",
93
- description: "Title to display",
94
- formType: _types.FORM_TYPES.string,
95
- propType: _types.PROP_TYPES.STRING,
96
- defaultValue: "Beautiful West Coast Villa",
97
- editable: true,
98
- required: false
99
- },
100
- subtitle: {
101
- group: _types.GROUPS.data,
102
- label: "Subtitle",
103
- description: "Subtitle to display",
104
- formType: _types.FORM_TYPES.string,
105
- propType: _types.PROP_TYPES.STRING,
106
- defaultValue: "San Diego",
107
- editable: true,
108
- required: false
109
- },
110
- elevation: (0, _types.createElevationType)(2),
111
- mode: {
112
- label: "Mode",
113
- description: "Mode",
114
- group: _types.GROUPS.uncategorized,
115
- formType: _types.FORM_TYPES.string,
116
- propType: _types.PROP_TYPES.STRING,
117
- defaultValue: "right",
118
- editable: false,
119
- required: false
120
- }
121
- },
122
- layout: {}
123
- }];
124
- exports.SEED_DATA = SEED_DATA;
@@ -1,59 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SEED_DATA = void 0;
7
- var _types = require("@draftbit/types");
8
- const SEED_DATA = {
9
- name: "Inline Card",
10
- tag: "CardInline",
11
- description: "An elevated card with image and a title and description overlayed, that takes up the full width of its container.",
12
- category: _types.COMPONENT_TYPES.card,
13
- stylesPanelSections: _types.BLOCK_STYLES_SECTIONS,
14
- layout: {},
15
- props: {
16
- image: {
17
- group: _types.GROUPS.data,
18
- label: "Image",
19
- description: "Image",
20
- formType: _types.FORM_TYPES.image,
21
- propType: _types.PROP_TYPES.ASSET,
22
- defaultValue: null,
23
- editable: true,
24
- required: false
25
- },
26
- title: {
27
- group: _types.GROUPS.data,
28
- label: "Title",
29
- description: "Text to display",
30
- formType: _types.FORM_TYPES.string,
31
- propType: _types.PROP_TYPES.STRING,
32
- defaultValue: "Beautiful West Coast Villa",
33
- editable: true,
34
- required: false
35
- },
36
- subtitle: {
37
- group: _types.GROUPS.data,
38
- label: "Subtitle",
39
- description: "Subtitle text",
40
- formType: _types.FORM_TYPES.string,
41
- propType: _types.PROP_TYPES.STRING,
42
- defaultValue: "San Diego",
43
- editable: true,
44
- required: false
45
- },
46
- aspectRatio: {
47
- group: _types.GROUPS.basic,
48
- label: "Aspect ratio",
49
- description: "Aspect ratio of the image",
50
- formType: _types.FORM_TYPES.aspectRatio,
51
- propType: _types.PROP_TYPES.NUMBER,
52
- defaultValue: 1.5,
53
- editable: true,
54
- required: false
55
- },
56
- elevation: (0, _types.createElevationType)(2)
57
- }
58
- };
59
- exports.SEED_DATA = SEED_DATA;
@@ -1,34 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SEED_DATA = void 0;
7
- var _types = require("@draftbit/types");
8
- const SEED_DATA = [{
9
- name: "Header Large",
10
- tag: "HeaderLarge",
11
- description: "A large header with an optional touchable right aligned text and icon.",
12
- category: _types.COMPONENT_TYPES.header,
13
- stylesPanelSections: _types.BLOCK_STYLES_SECTIONS,
14
- layout: {},
15
- triggers: [_types.Triggers.OnPress],
16
- props: {
17
- onPress: (0, _types.createActionProp)(),
18
- title: (0, _types.createTextProp)({
19
- label: "Title",
20
- description: "Text to display",
21
- defaultValue: "Title"
22
- }),
23
- buttonText: (0, _types.createTextProp)({
24
- label: "Button text",
25
- description: "Right aligned button text to display",
26
- defaultValue: "See All"
27
- }),
28
- icon: (0, _types.createIconProp)({
29
- defaultValue: null,
30
- required: false
31
- })
32
- }
33
- }];
34
- exports.SEED_DATA = SEED_DATA;
@@ -1,60 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SEED_DATA = void 0;
7
- var _types = require("@draftbit/types");
8
- const SEED_DATA = [{
9
- name: "Header Medium",
10
- tag: "HeaderMedium",
11
- description: "A medium header with an optional touchable right aligned text and icon.",
12
- category: _types.COMPONENT_TYPES.header,
13
- stylesPanelSections: _types.BLOCK_STYLES_SECTIONS,
14
- preview_image_url: "{CLOUDINARY_URL}/Header_HeadlineMediumIconText.png",
15
- supports_list_render: false,
16
- props: {
17
- title: {
18
- group: _types.GROUPS.data,
19
- label: "Title",
20
- description: "Text to display",
21
- formType: _types.FORM_TYPES.string,
22
- propType: _types.PROP_TYPES.STRING,
23
- defaultValue: "Title",
24
- editable: true,
25
- required: false
26
- },
27
- buttonText: {
28
- group: _types.GROUPS.data,
29
- label: "Button text",
30
- description: "Right aligned button text to display",
31
- formType: _types.FORM_TYPES.string,
32
- propType: _types.PROP_TYPES.STRING,
33
- defaultValue: "See All",
34
- editable: true,
35
- required: false
36
- },
37
- icon: {
38
- group: _types.GROUPS.basic,
39
- label: "Icon",
40
- description: "Name of icon to display",
41
- formType: _types.FORM_TYPES.icon,
42
- propType: _types.PROP_TYPES.ASSET,
43
- defaultValue: null,
44
- editable: true,
45
- required: false
46
- },
47
- onPress: {
48
- group: _types.GROUPS.basic,
49
- label: "Action",
50
- description: "Action to execute when button pressed",
51
- editable: true,
52
- required: false,
53
- formType: _types.FORM_TYPES.action,
54
- propType: _types.PROP_TYPES.STRING,
55
- defaultValue: null
56
- }
57
- },
58
- layout: {}
59
- }];
60
- exports.SEED_DATA = SEED_DATA;
@@ -1,60 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SEED_DATA = void 0;
7
- var _types = require("@draftbit/types");
8
- const SEED_DATA = [{
9
- name: "Header Overline",
10
- tag: "HeaderOverline",
11
- description: "A small header with an optional touchable right aligned text and icon.",
12
- category: _types.COMPONENT_TYPES.header,
13
- stylesPanelSections: _types.BLOCK_STYLES_SECTIONS,
14
- preview_image_url: "{CLOUDINARY_URL}/Header_OverlineIconText.png",
15
- supports_list_render: false,
16
- props: {
17
- title: {
18
- group: _types.GROUPS.data,
19
- label: "Title",
20
- description: "Text to display",
21
- formType: _types.FORM_TYPES.string,
22
- propType: _types.PROP_TYPES.STRING,
23
- defaultValue: "Title",
24
- editable: true,
25
- required: false
26
- },
27
- buttonText: {
28
- group: _types.GROUPS.data,
29
- label: "Button text",
30
- description: "Right aligned button text to display",
31
- formType: _types.FORM_TYPES.string,
32
- propType: _types.PROP_TYPES.STRING,
33
- defaultValue: "See All",
34
- editable: true,
35
- required: false
36
- },
37
- icon: {
38
- group: _types.GROUPS.basic,
39
- label: "Icon",
40
- description: "Name of icon to display",
41
- formType: _types.FORM_TYPES.icon,
42
- propType: _types.PROP_TYPES.ASSET,
43
- defaultValue: null,
44
- editable: true,
45
- required: false
46
- },
47
- onPress: {
48
- group: _types.GROUPS.basic,
49
- label: "Action",
50
- description: "Action to execute when button pressed",
51
- editable: true,
52
- required: false,
53
- formType: _types.FORM_TYPES.action,
54
- propType: _types.PROP_TYPES.STRING,
55
- defaultValue: null
56
- }
57
- },
58
- layout: {}
59
- }];
60
- exports.SEED_DATA = SEED_DATA;