@draftbit/core 46.4.1-f3a6f3.2 → 46.4.2-d0676f.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.
@@ -19,16 +19,8 @@ const SEED_DATA_PROPS = {
19
19
  description: "Button Label",
20
20
  defaultValue: "Get Started"
21
21
  }),
22
- disabled: (0, _types.createBoolProp)({
23
- group: _types.GROUPS.basic,
24
- label: "Disabled",
25
- description: "Whether the button should be disabled"
26
- }),
27
- loading: (0, _types.createBoolProp)({
28
- group: _types.GROUPS.basic,
29
- label: "Loading",
30
- description: "Whether to show a loading indicator"
31
- })
22
+ disabled: (0, _types.createDisabledProp)(),
23
+ loading: (0, _types.createLoadingProp)()
32
24
  };
33
25
  const LAYOUT = {
34
26
  backgroundColor: "transparent",
@@ -48,7 +40,7 @@ const SEED_DATA = [{
48
40
  triggers: SEED_DATA_TRIGGERS,
49
41
  props: SEED_DATA_PROPS
50
42
  }, {
51
- name: "Button Solid",
43
+ name: "Button",
52
44
  tag: "ButtonSolid",
53
45
  category: _types.COMPONENT_TYPES.button,
54
46
  stylesPanelSections: [_types.StylesPanelSections.Typography, _types.StylesPanelSections.Background, _types.StylesPanelSections.Borders, _types.StylesPanelSections.Size, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position, _types.StylesPanelSections.Effects],
@@ -12,14 +12,27 @@ const SEED_DATA = {
12
12
  tag: "Image",
13
13
  description: "A basic Image Component",
14
14
  category: _types.COMPONENT_TYPES.media,
15
- stylesPanelSections: [_types.StylesPanelSections.Size, _types.StylesPanelSections.Margins, _types.StylesPanelSections.Position, _types.StylesPanelSections.Effects],
15
+ stylesPanelSections: [_types.StylesPanelSections.Size, _types.StylesPanelSections.Margins, _types.StylesPanelSections.Position, _types.StylesPanelSections.Effects, _types.StylesPanelSections.Borders],
16
16
  layout: {
17
17
  width: 100,
18
18
  height: 100
19
19
  },
20
20
  props: {
21
21
  source: (0, _types.createImageProp)(),
22
- resizeMode: (0, _types.createResizeModeProp)()
22
+ resizeMode: (0, _types.createResizeModeProp)(),
23
+ blurRadius: {
24
+ group: _types.GROUPS.basic,
25
+ name: "blurRadius",
26
+ label: "Blur Radius",
27
+ defaultValue: null,
28
+ description: "The blur radius of the blur filter added to the image.",
29
+ editable: true,
30
+ required: false,
31
+ formType: _types.FORM_TYPES.number,
32
+ propType: _types.PROP_TYPES.NUMBER,
33
+ step: 5,
34
+ precision: 1
35
+ }
23
36
  }
24
37
  };
25
38
  exports.SEED_DATA = SEED_DATA;
@@ -1,4 +1,4 @@
1
- import { COMPONENT_TYPES, createIconProp, createBoolProp, createTextProp, GROUPS, createActionProp, Triggers, StylesPanelSections } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createIconProp, createTextProp, createDisabledProp, createLoadingProp, createActionProp, Triggers, StylesPanelSections } from "@draftbit/types";
2
2
  const SEED_DATA_TRIGGERS = [Triggers.OnPress];
3
3
  const SEED_DATA_PROPS = {
4
4
  onPress: createActionProp(),
@@ -11,16 +11,8 @@ const SEED_DATA_PROPS = {
11
11
  description: "Button Label",
12
12
  defaultValue: "Get Started"
13
13
  }),
14
- disabled: createBoolProp({
15
- group: GROUPS.basic,
16
- label: "Disabled",
17
- description: "Whether the button should be disabled"
18
- }),
19
- loading: createBoolProp({
20
- group: GROUPS.basic,
21
- label: "Loading",
22
- description: "Whether to show a loading indicator"
23
- })
14
+ disabled: createDisabledProp(),
15
+ loading: createLoadingProp()
24
16
  };
25
17
  const LAYOUT = {
26
18
  backgroundColor: "transparent",
@@ -40,7 +32,7 @@ export const SEED_DATA = [{
40
32
  triggers: SEED_DATA_TRIGGERS,
41
33
  props: SEED_DATA_PROPS
42
34
  }, {
43
- name: "Button Solid",
35
+ name: "Button",
44
36
  tag: "ButtonSolid",
45
37
  category: COMPONENT_TYPES.button,
46
38
  stylesPanelSections: [StylesPanelSections.Typography, StylesPanelSections.Background, StylesPanelSections.Borders, StylesPanelSections.Size, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Position, StylesPanelSections.Effects],
@@ -1,16 +1,29 @@
1
- import { COMPONENT_TYPES, createImageProp, createResizeModeProp, StylesPanelSections } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createImageProp, createResizeModeProp, StylesPanelSections, FORM_TYPES, PROP_TYPES, GROUPS } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Image",
4
4
  tag: "Image",
5
5
  description: "A basic Image Component",
6
6
  category: COMPONENT_TYPES.media,
7
- stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Margins, StylesPanelSections.Position, StylesPanelSections.Effects],
7
+ stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Margins, StylesPanelSections.Position, StylesPanelSections.Effects, StylesPanelSections.Borders],
8
8
  layout: {
9
9
  width: 100,
10
10
  height: 100
11
11
  },
12
12
  props: {
13
13
  source: createImageProp(),
14
- resizeMode: createResizeModeProp()
14
+ resizeMode: createResizeModeProp(),
15
+ blurRadius: {
16
+ group: GROUPS.basic,
17
+ name: "blurRadius",
18
+ label: "Blur Radius",
19
+ defaultValue: null,
20
+ description: "The blur radius of the blur filter added to the image.",
21
+ editable: true,
22
+ required: false,
23
+ formType: FORM_TYPES.number,
24
+ propType: PROP_TYPES.NUMBER,
25
+ step: 5,
26
+ precision: 1
27
+ }
15
28
  }
16
29
  };
@@ -36,22 +36,22 @@ export declare const SEED_DATA: ({
36
36
  disabled: {
37
37
  label: string;
38
38
  description: string;
39
- formType: string;
40
- propType: string;
41
- defaultValue: boolean;
39
+ group: string;
42
40
  editable: boolean;
43
41
  required: boolean;
44
- group: string;
42
+ formType: string;
43
+ propType: string;
44
+ defaultValue: null;
45
45
  };
46
46
  loading: {
47
47
  label: string;
48
48
  description: string;
49
- formType: string;
50
- propType: string;
51
- defaultValue: boolean;
49
+ group: string;
52
50
  editable: boolean;
53
51
  required: boolean;
54
- group: string;
52
+ formType: string;
53
+ propType: string;
54
+ defaultValue: null;
55
55
  };
56
56
  };
57
57
  } | {
@@ -91,22 +91,22 @@ export declare const SEED_DATA: ({
91
91
  disabled: {
92
92
  label: string;
93
93
  description: string;
94
- formType: string;
95
- propType: string;
96
- defaultValue: boolean;
94
+ group: string;
97
95
  editable: boolean;
98
96
  required: boolean;
99
- group: string;
97
+ formType: string;
98
+ propType: string;
99
+ defaultValue: null;
100
100
  };
101
101
  loading: {
102
102
  label: string;
103
103
  description: string;
104
- formType: string;
105
- propType: string;
106
- defaultValue: boolean;
104
+ group: string;
107
105
  editable: boolean;
108
106
  required: boolean;
109
- group: string;
107
+ formType: string;
108
+ propType: string;
109
+ defaultValue: null;
110
110
  };
111
111
  };
112
112
  })[];
@@ -30,5 +30,18 @@ export declare const SEED_DATA: {
30
30
  propType: string;
31
31
  options: string[];
32
32
  };
33
+ blurRadius: {
34
+ group: string;
35
+ name: string;
36
+ label: string;
37
+ defaultValue: null;
38
+ description: string;
39
+ editable: boolean;
40
+ required: boolean;
41
+ formType: string;
42
+ propType: string;
43
+ step: number;
44
+ precision: number;
45
+ };
33
46
  };
34
47
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@draftbit/core",
3
- "version": "46.4.1-f3a6f3.2+f3a6f3e",
3
+ "version": "46.4.2-d0676f.2+d0676fb",
4
4
  "description": "Core (non-native) Components",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "@date-io/date-fns": "^1.3.13",
43
43
  "@draftbit/react-theme-provider": "^2.1.1",
44
- "@draftbit/types": "^46.4.1-f3a6f3.2+f3a6f3e",
44
+ "@draftbit/types": "^46.4.2-d0676f.2+d0676fb",
45
45
  "@material-ui/core": "^4.11.0",
46
46
  "@material-ui/pickers": "^3.2.10",
47
47
  "@react-native-community/slider": "4.2.3",
@@ -81,5 +81,5 @@
81
81
  ]
82
82
  ]
83
83
  },
84
- "gitHead": "f3a6f3e8c5a35fdcefb64457175e7b131b70cca1"
84
+ "gitHead": "d0676fbcd4a18b5c49364282f8ab5a5d1fc12881"
85
85
  }
@@ -1,4 +1,4 @@
1
- import { COMPONENT_TYPES, createIconProp, createBoolProp, createTextProp, GROUPS, createActionProp, Triggers, StylesPanelSections, } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createIconProp, createTextProp, createDisabledProp, createLoadingProp, createActionProp, Triggers, StylesPanelSections, } from "@draftbit/types";
2
2
  const SEED_DATA_TRIGGERS = [Triggers.OnPress];
3
3
  const SEED_DATA_PROPS = {
4
4
  onPress: createActionProp(),
@@ -11,16 +11,8 @@ const SEED_DATA_PROPS = {
11
11
  description: "Button Label",
12
12
  defaultValue: "Get Started",
13
13
  }),
14
- disabled: createBoolProp({
15
- group: GROUPS.basic,
16
- label: "Disabled",
17
- description: "Whether the button should be disabled",
18
- }),
19
- loading: createBoolProp({
20
- group: GROUPS.basic,
21
- label: "Loading",
22
- description: "Whether to show a loading indicator",
23
- }),
14
+ disabled: createDisabledProp(),
15
+ loading: createLoadingProp(),
24
16
  };
25
17
  const LAYOUT = {
26
18
  backgroundColor: "transparent",
@@ -51,7 +43,7 @@ export const SEED_DATA = [
51
43
  props: SEED_DATA_PROPS,
52
44
  },
53
45
  {
54
- name: "Button Solid",
46
+ name: "Button",
55
47
  tag: "ButtonSolid",
56
48
  category: COMPONENT_TYPES.button,
57
49
  stylesPanelSections: [
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  COMPONENT_TYPES,
3
3
  createIconProp,
4
- createBoolProp,
5
4
  createTextProp,
6
- GROUPS,
5
+ createDisabledProp,
6
+ createLoadingProp,
7
7
  createActionProp,
8
8
  Triggers,
9
9
  StylesPanelSections,
@@ -21,16 +21,8 @@ const SEED_DATA_PROPS = {
21
21
  description: "Button Label",
22
22
  defaultValue: "Get Started",
23
23
  }),
24
- disabled: createBoolProp({
25
- group: GROUPS.basic,
26
- label: "Disabled",
27
- description: "Whether the button should be disabled",
28
- }),
29
- loading: createBoolProp({
30
- group: GROUPS.basic,
31
- label: "Loading",
32
- description: "Whether to show a loading indicator",
33
- }),
24
+ disabled: createDisabledProp(),
25
+ loading: createLoadingProp(),
34
26
  };
35
27
 
36
28
  const LAYOUT = {
@@ -63,7 +55,7 @@ export const SEED_DATA = [
63
55
  props: SEED_DATA_PROPS,
64
56
  },
65
57
  {
66
- name: "Button Solid",
58
+ name: "Button",
67
59
  tag: "ButtonSolid",
68
60
  category: COMPONENT_TYPES.button,
69
61
  stylesPanelSections: [
@@ -1,4 +1,4 @@
1
- import { COMPONENT_TYPES, createImageProp, createResizeModeProp, StylesPanelSections, } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createImageProp, createResizeModeProp, StylesPanelSections, FORM_TYPES, PROP_TYPES, GROUPS, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Image",
4
4
  tag: "Image",
@@ -9,6 +9,7 @@ export const SEED_DATA = {
9
9
  StylesPanelSections.Margins,
10
10
  StylesPanelSections.Position,
11
11
  StylesPanelSections.Effects,
12
+ StylesPanelSections.Borders,
12
13
  ],
13
14
  layout: {
14
15
  width: 100,
@@ -17,5 +18,18 @@ export const SEED_DATA = {
17
18
  props: {
18
19
  source: createImageProp(),
19
20
  resizeMode: createResizeModeProp(),
21
+ blurRadius: {
22
+ group: GROUPS.basic,
23
+ name: "blurRadius",
24
+ label: "Blur Radius",
25
+ defaultValue: null,
26
+ description: "The blur radius of the blur filter added to the image.",
27
+ editable: true,
28
+ required: false,
29
+ formType: FORM_TYPES.number,
30
+ propType: PROP_TYPES.NUMBER,
31
+ step: 5,
32
+ precision: 1,
33
+ },
20
34
  },
21
35
  };
@@ -3,6 +3,9 @@ import {
3
3
  createImageProp,
4
4
  createResizeModeProp,
5
5
  StylesPanelSections,
6
+ FORM_TYPES,
7
+ PROP_TYPES,
8
+ GROUPS,
6
9
  } from "@draftbit/types";
7
10
 
8
11
  export const SEED_DATA = {
@@ -15,6 +18,7 @@ export const SEED_DATA = {
15
18
  StylesPanelSections.Margins,
16
19
  StylesPanelSections.Position,
17
20
  StylesPanelSections.Effects,
21
+ StylesPanelSections.Borders,
18
22
  ],
19
23
  layout: {
20
24
  width: 100,
@@ -23,5 +27,18 @@ export const SEED_DATA = {
23
27
  props: {
24
28
  source: createImageProp(),
25
29
  resizeMode: createResizeModeProp(),
30
+ blurRadius: {
31
+ group: GROUPS.basic,
32
+ name: "blurRadius",
33
+ label: "Blur Radius",
34
+ defaultValue: null,
35
+ description: "The blur radius of the blur filter added to the image.",
36
+ editable: true,
37
+ required: false,
38
+ formType: FORM_TYPES.number,
39
+ propType: PROP_TYPES.NUMBER,
40
+ step: 5,
41
+ precision: 1,
42
+ },
26
43
  },
27
44
  };