@draftbit/core 47.1.1-ca8570.2 → 47.1.1-dbfde6.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 (43) hide show
  1. package/lib/commonjs/components/Button.js +2 -2
  2. package/lib/commonjs/components/IconButton.js +2 -4
  3. package/lib/commonjs/components/Pressable.js +2 -2
  4. package/lib/commonjs/components/Touchable.js +2 -2
  5. package/lib/commonjs/mappings/Button.js +2 -2
  6. package/lib/commonjs/mappings/IconButton.js +6 -4
  7. package/lib/commonjs/mappings/Shadow.js +46 -0
  8. package/lib/commonjs/mappings/Touchable.js +2 -9
  9. package/lib/module/components/Button.js +2 -2
  10. package/lib/module/components/IconButton.js +2 -4
  11. package/lib/module/components/Pressable.js +2 -2
  12. package/lib/module/components/Touchable.js +2 -2
  13. package/lib/module/mappings/Button.js +2 -2
  14. package/lib/module/mappings/IconButton.js +7 -5
  15. package/lib/module/mappings/Shadow.js +39 -0
  16. package/lib/module/mappings/Touchable.js +3 -10
  17. package/lib/typescript/src/components/IconButton.d.ts +0 -2
  18. package/lib/typescript/src/components/IconButton.d.ts.map +1 -1
  19. package/lib/typescript/src/components/Pressable.d.ts.map +1 -1
  20. package/lib/typescript/src/components/Touchable.d.ts.map +1 -1
  21. package/lib/typescript/src/mappings/IconButton.d.ts +10 -20
  22. package/lib/typescript/src/mappings/IconButton.d.ts.map +1 -1
  23. package/lib/typescript/src/mappings/Shadow.d.ts +73 -0
  24. package/lib/typescript/src/mappings/Shadow.d.ts.map +1 -0
  25. package/lib/typescript/src/mappings/Touchable.d.ts +0 -20
  26. package/lib/typescript/src/mappings/Touchable.d.ts.map +1 -1
  27. package/package.json +3 -3
  28. package/src/components/Button.js +1 -1
  29. package/src/components/Button.tsx +2 -2
  30. package/src/components/IconButton.js +2 -2
  31. package/src/components/IconButton.tsx +2 -6
  32. package/src/components/Pressable.js +1 -1
  33. package/src/components/Pressable.tsx +2 -2
  34. package/src/components/Touchable.js +1 -1
  35. package/src/components/Touchable.tsx +2 -2
  36. package/src/mappings/Button.js +2 -2
  37. package/src/mappings/Button.ts +2 -2
  38. package/src/mappings/IconButton.js +7 -5
  39. package/src/mappings/IconButton.ts +7 -5
  40. package/src/mappings/Shadow.js +39 -0
  41. package/src/mappings/Shadow.ts +47 -0
  42. package/src/mappings/Touchable.js +3 -10
  43. package/src/mappings/Touchable.ts +2 -12
@@ -24,8 +24,8 @@ function Base(_ref) {
24
24
  loading,
25
25
  disabled,
26
26
  style,
27
- activeOpacity = 0.8,
28
- disabledOpacity = 0.8,
27
+ activeOpacity,
28
+ disabledOpacity,
29
29
  ...props
30
30
  } = _ref;
31
31
  const {
@@ -16,13 +16,11 @@ const IconButton = _ref => {
16
16
  icon,
17
17
  color: customColor,
18
18
  size = 32,
19
- disabled,
19
+ disabled = false,
20
20
  loading = false,
21
21
  onPress,
22
22
  theme,
23
23
  style,
24
- activeOpacity = 0.8,
25
- disabledOpacity = 0.8,
26
24
  ...props
27
25
  } = _ref;
28
26
  const iconColor = customColor || theme.colors.primary;
@@ -34,7 +32,7 @@ const IconButton = _ref => {
34
32
  pressed
35
33
  } = _ref2;
36
34
  return [styles.container, {
37
- opacity: pressed ? activeOpacity : disabled ? disabledOpacity : 1,
35
+ opacity: pressed || disabled ? 0.75 : 1,
38
36
  width: size,
39
37
  height: size,
40
38
  alignItems: "center",
@@ -13,8 +13,8 @@ function Pressable(_ref) {
13
13
  children,
14
14
  disabled,
15
15
  onPress,
16
- activeOpacity = 0.8,
17
- disabledOpacity = 0.8,
16
+ activeOpacity,
17
+ disabledOpacity,
18
18
  delayLongPress,
19
19
  hitSlop,
20
20
  style,
@@ -13,8 +13,8 @@ function Touchable(_ref) {
13
13
  children,
14
14
  disabled,
15
15
  onPress,
16
- activeOpacity = 0.8,
17
- disabledOpacity = 0.8,
16
+ activeOpacity,
17
+ disabledOpacity,
18
18
  delayLongPress,
19
19
  hitSlop,
20
20
  style,
@@ -23,7 +23,7 @@ const SEED_DATA_PROPS = {
23
23
  activeOpacity: (0, _types.createStaticNumberProp)({
24
24
  label: "Active Opacity",
25
25
  description: "Opacity of the button when active.",
26
- defaultValue: null,
26
+ defaultValue: 0.8,
27
27
  min: 0,
28
28
  max: 1,
29
29
  step: 0.01,
@@ -33,7 +33,7 @@ const SEED_DATA_PROPS = {
33
33
  disabledOpacity: (0, _types.createStaticNumberProp)({
34
34
  label: "Disabled Opacity",
35
35
  description: "Opacity of the button when disabled.",
36
- defaultValue: null,
36
+ defaultValue: 0.8,
37
37
  min: 0,
38
38
  max: 1,
39
39
  step: 0.01,
@@ -10,24 +10,26 @@ const SEED_DATA = {
10
10
  tag: "IconButton",
11
11
  category: _types.COMPONENT_TYPES.button,
12
12
  layout: {},
13
- triggers: [_types.Triggers.OnPress, _types.Triggers.OnLongPress],
13
+ triggers: [_types.Triggers.OnPress],
14
14
  stylesPanelSections: [_types.StylesPanelSections.Margins, _types.StylesPanelSections.Effects, _types.StylesPanelSections.Position],
15
15
  props: {
16
16
  onPress: (0, _types.createActionProp)(),
17
- onLongPress: (0, _types.createActionProp)(),
18
- disabled: (0, _types.createDisabledProp)(),
19
17
  icon: (0, _types.createIconProp)(),
20
18
  color: (0, _types.createColorProp)({
21
19
  label: "Color",
22
20
  group: _types.GROUPS.basic
23
21
  }),
22
+ disabled: (0, _types.createBoolProp)({
23
+ label: "Disabled",
24
+ group: _types.GROUPS.basic
25
+ }),
24
26
  size: (0, _types.createNumberProp)({
25
27
  group: _types.GROUPS.basic,
26
28
  label: "Size",
27
29
  description: "Width and height of your icon",
28
30
  defaultValue: 32,
29
31
  min: 16,
30
- max: 256,
32
+ max: 128,
31
33
  step: 1,
32
34
  precision: 0
33
35
  })
@@ -0,0 +1,46 @@
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: "Shadow",
10
+ tag: "Shadow View",
11
+ description: "A cross-platform, universal shadow.",
12
+ library: "react-native-shadow-2",
13
+ category: _types.COMPONENT_TYPES.view,
14
+ stylesPanelSections: _types.CONTAINER_COMPONENT_STYLES_SECTIONS,
15
+ layout: {},
16
+ props: {
17
+ disabled: (0, _types.createDisabledProp)({
18
+ description: "Disabled the shadow."
19
+ }),
20
+ startColor: (0, _types.createColorProp)({
21
+ label: "Start Color",
22
+ description: "The initial gradient color of the shadow.",
23
+ defaultValue: null
24
+ }),
25
+ endColor: (0, _types.createColorProp)({
26
+ label: "End Color",
27
+ description: "The final gradient color of the shadow.",
28
+ defaultValue: null
29
+ }),
30
+ distance: (0, _types.createStaticNumberProp)({
31
+ label: "Distance",
32
+ description: "The distance of the shadow."
33
+ }),
34
+ paintInside: (0, _types.createStaticBoolProp)({
35
+ label: "Paint Inside",
36
+ description: "Apply the shadow below/inside the content.",
37
+ defaultValue: null
38
+ }),
39
+ stretch: (0, _types.createStaticBoolProp)({
40
+ label: "Stretch",
41
+ description: "Force children to occupy all available horizontal space.",
42
+ defaultValue: null
43
+ })
44
+ }
45
+ };
46
+ exports.SEED_DATA = SEED_DATA;
@@ -12,11 +12,10 @@ const SEED_DATA_PROPS = {
12
12
  props: {
13
13
  onPress: (0, _types.createActionProp)(),
14
14
  onLongPress: (0, _types.createActionProp)(),
15
- disabled: (0, _types.createDisabledProp)(),
16
15
  activeOpacity: (0, _types.createStaticNumberProp)({
17
16
  label: "Active Opacity",
18
17
  description: "The opacity when the button is pressed.",
19
- defaultValue: null,
18
+ defaultValue: 0.8,
20
19
  min: 0,
21
20
  max: 1,
22
21
  step: 0.01,
@@ -26,7 +25,7 @@ const SEED_DATA_PROPS = {
26
25
  disabledOpacity: (0, _types.createStaticNumberProp)({
27
26
  label: "Disabled Opacity",
28
27
  description: "The opacity when the button is disabled.",
29
- defaultValue: null,
28
+ defaultValue: 0.8,
30
29
  min: 0,
31
30
  max: 1,
32
31
  step: 0.01,
@@ -42,12 +41,6 @@ const SEED_DATA_PROPS = {
42
41
  label: "Hit Slop",
43
42
  description: "Sets additional distance outside of element in which a press can be detected.",
44
43
  required: false
45
- }),
46
- android_disableSound: (0, _types.createStaticBoolProp)({
47
- label: "Disable Sound",
48
- description: "Disable the Android sound effect.",
49
- defaultValue: null,
50
- group: _types.GROUPS.android
51
44
  })
52
45
  }
53
46
  };
@@ -16,8 +16,8 @@ function Base(_ref) {
16
16
  loading,
17
17
  disabled,
18
18
  style,
19
- activeOpacity = 0.8,
20
- disabledOpacity = 0.8,
19
+ activeOpacity,
20
+ disabledOpacity,
21
21
  ...props
22
22
  } = _ref;
23
23
  const {
@@ -8,13 +8,11 @@ const IconButton = _ref => {
8
8
  icon,
9
9
  color: customColor,
10
10
  size = 32,
11
- disabled,
11
+ disabled = false,
12
12
  loading = false,
13
13
  onPress,
14
14
  theme,
15
15
  style,
16
- activeOpacity = 0.8,
17
- disabledOpacity = 0.8,
18
16
  ...props
19
17
  } = _ref;
20
18
  const iconColor = customColor || theme.colors.primary;
@@ -26,7 +24,7 @@ const IconButton = _ref => {
26
24
  pressed
27
25
  } = _ref2;
28
26
  return [styles.container, {
29
- opacity: pressed ? activeOpacity : disabled ? disabledOpacity : 1,
27
+ opacity: pressed || disabled ? 0.75 : 1,
30
28
  width: size,
31
29
  height: size,
32
30
  alignItems: "center",
@@ -6,8 +6,8 @@ export default function Pressable(_ref) {
6
6
  children,
7
7
  disabled,
8
8
  onPress,
9
- activeOpacity = 0.8,
10
- disabledOpacity = 0.8,
9
+ activeOpacity,
10
+ disabledOpacity,
11
11
  delayLongPress,
12
12
  hitSlop,
13
13
  style,
@@ -6,8 +6,8 @@ export default function Touchable(_ref) {
6
6
  children,
7
7
  disabled,
8
8
  onPress,
9
- activeOpacity = 0.8,
10
- disabledOpacity = 0.8,
9
+ activeOpacity,
10
+ disabledOpacity,
11
11
  delayLongPress,
12
12
  hitSlop,
13
13
  style,
@@ -17,7 +17,7 @@ const SEED_DATA_PROPS = {
17
17
  activeOpacity: createStaticNumberProp({
18
18
  label: "Active Opacity",
19
19
  description: "Opacity of the button when active.",
20
- defaultValue: null,
20
+ defaultValue: 0.8,
21
21
  min: 0,
22
22
  max: 1,
23
23
  step: 0.01,
@@ -27,7 +27,7 @@ const SEED_DATA_PROPS = {
27
27
  disabledOpacity: createStaticNumberProp({
28
28
  label: "Disabled Opacity",
29
29
  description: "Opacity of the button when disabled.",
30
- defaultValue: null,
30
+ defaultValue: 0.8,
31
31
  min: 0,
32
32
  max: 1,
33
33
  step: 0.01,
@@ -1,27 +1,29 @@
1
- import { COMPONENT_TYPES, GROUPS, createIconProp, createColorProp, createNumberProp, createActionProp, Triggers, StylesPanelSections, createDisabledProp } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, GROUPS, createIconProp, createColorProp, createNumberProp, createBoolProp, createActionProp, Triggers, StylesPanelSections } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Icon Button",
4
4
  tag: "IconButton",
5
5
  category: COMPONENT_TYPES.button,
6
6
  layout: {},
7
- triggers: [Triggers.OnPress, Triggers.OnLongPress],
7
+ triggers: [Triggers.OnPress],
8
8
  stylesPanelSections: [StylesPanelSections.Margins, StylesPanelSections.Effects, StylesPanelSections.Position],
9
9
  props: {
10
10
  onPress: createActionProp(),
11
- onLongPress: createActionProp(),
12
- disabled: createDisabledProp(),
13
11
  icon: createIconProp(),
14
12
  color: createColorProp({
15
13
  label: "Color",
16
14
  group: GROUPS.basic
17
15
  }),
16
+ disabled: createBoolProp({
17
+ label: "Disabled",
18
+ group: GROUPS.basic
19
+ }),
18
20
  size: createNumberProp({
19
21
  group: GROUPS.basic,
20
22
  label: "Size",
21
23
  description: "Width and height of your icon",
22
24
  defaultValue: 32,
23
25
  min: 16,
24
- max: 256,
26
+ max: 128,
25
27
  step: 1,
26
28
  precision: 0
27
29
  })
@@ -0,0 +1,39 @@
1
+ import { COMPONENT_TYPES, CONTAINER_COMPONENT_STYLES_SECTIONS, createColorProp, createStaticNumberProp, createStaticBoolProp, createDisabledProp } from "@draftbit/types";
2
+ export const SEED_DATA = {
3
+ name: "Shadow",
4
+ tag: "Shadow View",
5
+ description: "A cross-platform, universal shadow.",
6
+ library: "react-native-shadow-2",
7
+ category: COMPONENT_TYPES.view,
8
+ stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
9
+ layout: {},
10
+ props: {
11
+ disabled: createDisabledProp({
12
+ description: "Disabled the shadow."
13
+ }),
14
+ startColor: createColorProp({
15
+ label: "Start Color",
16
+ description: "The initial gradient color of the shadow.",
17
+ defaultValue: null
18
+ }),
19
+ endColor: createColorProp({
20
+ label: "End Color",
21
+ description: "The final gradient color of the shadow.",
22
+ defaultValue: null
23
+ }),
24
+ distance: createStaticNumberProp({
25
+ label: "Distance",
26
+ description: "The distance of the shadow."
27
+ }),
28
+ paintInside: createStaticBoolProp({
29
+ label: "Paint Inside",
30
+ description: "Apply the shadow below/inside the content.",
31
+ defaultValue: null
32
+ }),
33
+ stretch: createStaticBoolProp({
34
+ label: "Stretch",
35
+ description: "Force children to occupy all available horizontal space.",
36
+ defaultValue: null
37
+ })
38
+ }
39
+ };
@@ -1,4 +1,4 @@
1
- import { COMPONENT_TYPES, createActionProp, Triggers, createStaticNumberProp, StylesPanelSections, createDisabledProp, GROUPS, createStaticBoolProp } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createActionProp, Triggers, createStaticNumberProp, StylesPanelSections } from "@draftbit/types";
2
2
  const SEED_DATA_PROPS = {
3
3
  stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Margins, StylesPanelSections.Borders],
4
4
  layout: {},
@@ -6,11 +6,10 @@ const SEED_DATA_PROPS = {
6
6
  props: {
7
7
  onPress: createActionProp(),
8
8
  onLongPress: createActionProp(),
9
- disabled: createDisabledProp(),
10
9
  activeOpacity: createStaticNumberProp({
11
10
  label: "Active Opacity",
12
11
  description: "The opacity when the button is pressed.",
13
- defaultValue: null,
12
+ defaultValue: 0.8,
14
13
  min: 0,
15
14
  max: 1,
16
15
  step: 0.01,
@@ -20,7 +19,7 @@ const SEED_DATA_PROPS = {
20
19
  disabledOpacity: createStaticNumberProp({
21
20
  label: "Disabled Opacity",
22
21
  description: "The opacity when the button is disabled.",
23
- defaultValue: null,
22
+ defaultValue: 0.8,
24
23
  min: 0,
25
24
  max: 1,
26
25
  step: 0.01,
@@ -36,12 +35,6 @@ const SEED_DATA_PROPS = {
36
35
  label: "Hit Slop",
37
36
  description: "Sets additional distance outside of element in which a press can be detected.",
38
37
  required: false
39
- }),
40
- android_disableSound: createStaticBoolProp({
41
- label: "Disable Sound",
42
- description: "Disable the Android sound effect.",
43
- defaultValue: null,
44
- group: GROUPS.android
45
38
  })
46
39
  }
47
40
  };
@@ -11,8 +11,6 @@ declare type Props = {
11
11
  onPress: () => void;
12
12
  theme: Theme;
13
13
  style?: StyleProp<ViewStyle>;
14
- activeOpacity?: number;
15
- disabledOpacity?: number;
16
14
  } & PressableProps & IconSlot;
17
15
  declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<React.PropsWithChildren<Props>, "theme"> & {
18
16
  theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/components/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAIL,SAAS,EACT,SAAS,EAET,cAAc,EAEf,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,aAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,GAAG,cAAc,GAChB,QAAQ,CAAC;;;;AA4DX,wBAAqC"}
1
+ {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/components/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAIL,SAAS,EACT,SAAS,EAET,cAAc,EAEf,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,aAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,GAAG,cAAc,GAChB,QAAQ,CAAC;;;;AA0DX,wBAAqC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Pressable.d.ts","sourceRoot":"","sources":["../../../../src/components/Pressable.tsx"],"names":[],"mappings":";AACA,OAAO,EAEL,cAAc,EACd,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,GAAG,cAAc,CAAC;AAEnB,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,aAAmB,EACnB,eAAqB,EACrB,cAAc,EACd,OAAO,EACP,KAAK,EACL,GAAG,KAAK,EACT,EAAE,KAAK,eAoBP"}
1
+ {"version":3,"file":"Pressable.d.ts","sourceRoot":"","sources":["../../../../src/components/Pressable.tsx"],"names":[],"mappings":";AACA,OAAO,EAEL,cAAc,EACd,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,GAAG,cAAc,CAAC;AAEnB,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,aAAa,EACb,eAAe,EACf,cAAc,EACd,OAAO,EACP,KAAK,EACL,GAAG,KAAK,EACT,EAAE,KAAK,eAoBP"}
@@ -1 +1 @@
1
- {"version":3,"file":"Touchable.d.ts","sourceRoot":"","sources":["../../../../src/components/Touchable.tsx"],"names":[],"mappings":";AACA,OAAO,EAAa,cAAc,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpE,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,GAAG,cAAc,CAAC;AAEnB,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,aAAmB,EACnB,eAAqB,EACrB,cAAc,EACd,OAAO,EACP,KAAK,EACL,GAAG,KAAK,EACT,EAAE,KAAK,eAoBP"}
1
+ {"version":3,"file":"Touchable.d.ts","sourceRoot":"","sources":["../../../../src/components/Touchable.tsx"],"names":[],"mappings":";AACA,OAAO,EAAa,cAAc,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpE,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,GAAG,cAAc,CAAC;AAEnB,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,aAAa,EACb,eAAe,EACf,cAAc,EACd,OAAO,EACP,KAAK,EACL,GAAG,KAAK,EACT,EAAE,KAAK,eAoBP"}
@@ -16,26 +16,6 @@ export declare const SEED_DATA: {
16
16
  defaultValue: null;
17
17
  group: string;
18
18
  };
19
- onLongPress: {
20
- label: string;
21
- description: string;
22
- editable: boolean;
23
- required: boolean;
24
- formType: string;
25
- propType: string;
26
- defaultValue: null;
27
- group: string;
28
- };
29
- disabled: {
30
- label: string;
31
- description: string;
32
- group: string;
33
- editable: boolean;
34
- required: boolean;
35
- formType: string;
36
- propType: string;
37
- defaultValue: null;
38
- };
39
19
  icon: {
40
20
  label: string;
41
21
  description: string;
@@ -56,6 +36,16 @@ export declare const SEED_DATA: {
56
36
  formType: string;
57
37
  propType: string;
58
38
  };
39
+ disabled: {
40
+ label: string;
41
+ description: string;
42
+ formType: string;
43
+ propType: string;
44
+ defaultValue: boolean;
45
+ editable: boolean;
46
+ required: boolean;
47
+ group: string;
48
+ };
59
49
  size: {
60
50
  label: string;
61
51
  description: string;
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/mappings/IconButton.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BrB,CAAC"}
1
+ {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/mappings/IconButton.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCrB,CAAC"}
@@ -0,0 +1,73 @@
1
+ export declare const SEED_DATA: {
2
+ name: string;
3
+ tag: string;
4
+ description: string;
5
+ library: string;
6
+ category: string;
7
+ stylesPanelSections: string[];
8
+ layout: {};
9
+ props: {
10
+ disabled: {
11
+ label: string;
12
+ description: string;
13
+ group: string;
14
+ editable: boolean;
15
+ required: boolean;
16
+ formType: string;
17
+ propType: string;
18
+ defaultValue: null;
19
+ };
20
+ startColor: {
21
+ group: string;
22
+ label: string;
23
+ description: string;
24
+ editable: boolean;
25
+ required: boolean;
26
+ defaultValue: null;
27
+ formType: string;
28
+ propType: string;
29
+ };
30
+ endColor: {
31
+ group: string;
32
+ label: string;
33
+ description: string;
34
+ editable: boolean;
35
+ required: boolean;
36
+ defaultValue: null;
37
+ formType: string;
38
+ propType: string;
39
+ };
40
+ distance: {
41
+ label: string;
42
+ description: string;
43
+ formType: string;
44
+ propType: string;
45
+ group: string;
46
+ defaultValue: null;
47
+ editable: boolean;
48
+ required: boolean;
49
+ step: number;
50
+ };
51
+ paintInside: {
52
+ label: string;
53
+ description: string;
54
+ formType: string;
55
+ propType: string;
56
+ defaultValue: boolean;
57
+ editable: boolean;
58
+ required: boolean;
59
+ group: string;
60
+ };
61
+ stretch: {
62
+ label: string;
63
+ description: string;
64
+ formType: string;
65
+ propType: string;
66
+ defaultValue: boolean;
67
+ editable: boolean;
68
+ required: boolean;
69
+ group: string;
70
+ };
71
+ };
72
+ };
73
+ //# sourceMappingURL=Shadow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Shadow.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Shadow.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCrB,CAAC"}
@@ -23,16 +23,6 @@ export declare const SEED_DATA: {
23
23
  defaultValue: null;
24
24
  group: string;
25
25
  };
26
- disabled: {
27
- label: string;
28
- description: string;
29
- group: string;
30
- editable: boolean;
31
- required: boolean;
32
- formType: string;
33
- propType: string;
34
- defaultValue: null;
35
- };
36
26
  activeOpacity: {
37
27
  label: string;
38
28
  description: string;
@@ -77,16 +67,6 @@ export declare const SEED_DATA: {
77
67
  required: boolean;
78
68
  step: number;
79
69
  };
80
- android_disableSound: {
81
- label: string;
82
- description: string;
83
- formType: string;
84
- propType: string;
85
- defaultValue: boolean;
86
- editable: boolean;
87
- required: boolean;
88
- group: string;
89
- };
90
70
  };
91
71
  name: string;
92
72
  tag: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Touchable.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Touchable.ts"],"names":[],"mappings":"AAgEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAerB,CAAC"}
1
+ {"version":3,"file":"Touchable.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Touchable.ts"],"names":[],"mappings":"AAsDA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAerB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@draftbit/core",
3
- "version": "47.1.1-ca8570.2+ca85708",
3
+ "version": "47.1.1-dbfde6.2+dbfde6a",
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": "^47.1.1-ca8570.2+ca85708",
44
+ "@draftbit/types": "^47.1.1-dbfde6.2+dbfde6a",
45
45
  "@material-ui/core": "^4.11.0",
46
46
  "@material-ui/pickers": "^3.2.10",
47
47
  "@react-native-community/slider": "4.2.4",
@@ -91,5 +91,5 @@
91
91
  ]
92
92
  ]
93
93
  },
94
- "gitHead": "ca857084563cd1d4242b340f362f57c112b42ee7"
94
+ "gitHead": "dbfde6ad1cdac6b48b63a2db76a55563c1232fd5"
95
95
  }
@@ -7,7 +7,7 @@ const CONSTANTS = {
7
7
  padding: 8,
8
8
  icon: 24,
9
9
  };
10
- function Base({ Icon, icon, title, loading, disabled, style, activeOpacity = 0.8, disabledOpacity = 0.8, ...props }) {
10
+ function Base({ Icon, icon, title, loading, disabled, style, activeOpacity, disabledOpacity, ...props }) {
11
11
  const { color, fontFamily, fontWeight, fontSize, lineHeight, letterSpacing, textTransform, textAlign, textDecorationLine, textDecorationColor, textDecorationStyle, ...buttonStyles } = StyleSheet.flatten(style || {});
12
12
  const titleStyles = {
13
13
  color,
@@ -59,8 +59,8 @@ function Base({
59
59
  loading,
60
60
  disabled,
61
61
  style,
62
- activeOpacity = 0.8,
63
- disabledOpacity = 0.8,
62
+ activeOpacity,
63
+ disabledOpacity,
64
64
  ...props
65
65
  }: BaseProps): JSX.Element {
66
66
  const {
@@ -1,13 +1,13 @@
1
1
  import * as React from "react";
2
2
  import { View, StyleSheet, ActivityIndicator, Pressable, Platform, } from "react-native";
3
3
  import { withTheme } from "../theming";
4
- const IconButton = ({ Icon, icon, color: customColor, size = 32, disabled, loading = false, onPress, theme, style, activeOpacity = 0.8, disabledOpacity = 0.8, ...props }) => {
4
+ const IconButton = ({ Icon, icon, color: customColor, size = 32, disabled = false, loading = false, onPress, theme, style, ...props }) => {
5
5
  const iconColor = customColor || theme.colors.primary;
6
6
  return (React.createElement(Pressable, { onPress: onPress, disabled: disabled || loading, style: ({ pressed }) => {
7
7
  return [
8
8
  styles.container,
9
9
  {
10
- opacity: pressed ? activeOpacity : disabled ? disabledOpacity : 1,
10
+ opacity: pressed || disabled ? 0.75 : 1,
11
11
  width: size,
12
12
  height: size,
13
13
  alignItems: "center",
@@ -22,8 +22,6 @@ type Props = {
22
22
  onPress: () => void;
23
23
  theme: Theme;
24
24
  style?: StyleProp<ViewStyle>;
25
- activeOpacity?: number;
26
- disabledOpacity?: number;
27
25
  } & PressableProps &
28
26
  IconSlot;
29
27
 
@@ -32,13 +30,11 @@ const IconButton: React.FC<React.PropsWithChildren<Props>> = ({
32
30
  icon,
33
31
  color: customColor,
34
32
  size = 32,
35
- disabled,
33
+ disabled = false,
36
34
  loading = false,
37
35
  onPress,
38
36
  theme,
39
37
  style,
40
- activeOpacity = 0.8,
41
- disabledOpacity = 0.8,
42
38
  ...props
43
39
  }) => {
44
40
  const iconColor = customColor || theme.colors.primary;
@@ -51,7 +47,7 @@ const IconButton: React.FC<React.PropsWithChildren<Props>> = ({
51
47
  return [
52
48
  styles.container,
53
49
  {
54
- opacity: pressed ? activeOpacity : disabled ? disabledOpacity : 1,
50
+ opacity: pressed || disabled ? 0.75 : 1,
55
51
  width: size,
56
52
  height: size,
57
53
  alignItems: "center",
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { Pressable as NativePressable, } from "react-native";
3
- export default function Pressable({ children, disabled, onPress, activeOpacity = 0.8, disabledOpacity = 0.8, delayLongPress, hitSlop, style, ...props }) {
3
+ export default function Pressable({ children, disabled, onPress, activeOpacity, disabledOpacity, delayLongPress, hitSlop, style, ...props }) {
4
4
  return (React.createElement(NativePressable, { onPress: onPress, disabled: disabled, delayLongPress: delayLongPress ? delayLongPress : 500, hitSlop: hitSlop ? hitSlop : 8, style: ({ pressed }) => {
5
5
  return [
6
6
  {
@@ -15,8 +15,8 @@ export default function Pressable({
15
15
  children,
16
16
  disabled,
17
17
  onPress,
18
- activeOpacity = 0.8,
19
- disabledOpacity = 0.8,
18
+ activeOpacity,
19
+ disabledOpacity,
20
20
  delayLongPress,
21
21
  hitSlop,
22
22
  style,
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { Pressable } from "react-native";
3
- export default function Touchable({ children, disabled, onPress, activeOpacity = 0.8, disabledOpacity = 0.8, delayLongPress, hitSlop, style, ...props }) {
3
+ export default function Touchable({ children, disabled, onPress, activeOpacity, disabledOpacity, delayLongPress, hitSlop, style, ...props }) {
4
4
  return (React.createElement(Pressable, { disabled: disabled, onPress: onPress, delayLongPress: delayLongPress ? delayLongPress : 500, hitSlop: hitSlop ? hitSlop : 8, style: ({ pressed }) => {
5
5
  return [
6
6
  {
@@ -11,8 +11,8 @@ export default function Touchable({
11
11
  children,
12
12
  disabled,
13
13
  onPress,
14
- activeOpacity = 0.8,
15
- disabledOpacity = 0.8,
14
+ activeOpacity,
15
+ disabledOpacity,
16
16
  delayLongPress,
17
17
  hitSlop,
18
18
  style,
@@ -17,7 +17,7 @@ const SEED_DATA_PROPS = {
17
17
  activeOpacity: createStaticNumberProp({
18
18
  label: "Active Opacity",
19
19
  description: "Opacity of the button when active.",
20
- defaultValue: null,
20
+ defaultValue: 0.8,
21
21
  min: 0,
22
22
  max: 1,
23
23
  step: 0.01,
@@ -27,7 +27,7 @@ const SEED_DATA_PROPS = {
27
27
  disabledOpacity: createStaticNumberProp({
28
28
  label: "Disabled Opacity",
29
29
  description: "Opacity of the button when disabled.",
30
- defaultValue: null,
30
+ defaultValue: 0.8,
31
31
  min: 0,
32
32
  max: 1,
33
33
  step: 0.01,
@@ -28,7 +28,7 @@ const SEED_DATA_PROPS = {
28
28
  activeOpacity: createStaticNumberProp({
29
29
  label: "Active Opacity",
30
30
  description: "Opacity of the button when active.",
31
- defaultValue: null,
31
+ defaultValue: 0.8,
32
32
  min: 0,
33
33
  max: 1,
34
34
  step: 0.01,
@@ -38,7 +38,7 @@ const SEED_DATA_PROPS = {
38
38
  disabledOpacity: createStaticNumberProp({
39
39
  label: "Disabled Opacity",
40
40
  description: "Opacity of the button when disabled.",
41
- defaultValue: null,
41
+ defaultValue: 0.8,
42
42
  min: 0,
43
43
  max: 1,
44
44
  step: 0.01,
@@ -1,10 +1,10 @@
1
- import { COMPONENT_TYPES, GROUPS, createIconProp, createColorProp, createNumberProp, createActionProp, Triggers, StylesPanelSections, createDisabledProp, } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, GROUPS, createIconProp, createColorProp, createNumberProp, createBoolProp, createActionProp, Triggers, StylesPanelSections, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Icon Button",
4
4
  tag: "IconButton",
5
5
  category: COMPONENT_TYPES.button,
6
6
  layout: {},
7
- triggers: [Triggers.OnPress, Triggers.OnLongPress],
7
+ triggers: [Triggers.OnPress],
8
8
  stylesPanelSections: [
9
9
  StylesPanelSections.Margins,
10
10
  StylesPanelSections.Effects,
@@ -12,20 +12,22 @@ export const SEED_DATA = {
12
12
  ],
13
13
  props: {
14
14
  onPress: createActionProp(),
15
- onLongPress: createActionProp(),
16
- disabled: createDisabledProp(),
17
15
  icon: createIconProp(),
18
16
  color: createColorProp({
19
17
  label: "Color",
20
18
  group: GROUPS.basic,
21
19
  }),
20
+ disabled: createBoolProp({
21
+ label: "Disabled",
22
+ group: GROUPS.basic,
23
+ }),
22
24
  size: createNumberProp({
23
25
  group: GROUPS.basic,
24
26
  label: "Size",
25
27
  description: "Width and height of your icon",
26
28
  defaultValue: 32,
27
29
  min: 16,
28
- max: 256,
30
+ max: 128,
29
31
  step: 1,
30
32
  precision: 0,
31
33
  }),
@@ -4,10 +4,10 @@ import {
4
4
  createIconProp,
5
5
  createColorProp,
6
6
  createNumberProp,
7
+ createBoolProp,
7
8
  createActionProp,
8
9
  Triggers,
9
10
  StylesPanelSections,
10
- createDisabledProp,
11
11
  } from "@draftbit/types";
12
12
 
13
13
  export const SEED_DATA = {
@@ -15,7 +15,7 @@ export const SEED_DATA = {
15
15
  tag: "IconButton",
16
16
  category: COMPONENT_TYPES.button,
17
17
  layout: {},
18
- triggers: [Triggers.OnPress, Triggers.OnLongPress],
18
+ triggers: [Triggers.OnPress],
19
19
  stylesPanelSections: [
20
20
  StylesPanelSections.Margins,
21
21
  StylesPanelSections.Effects,
@@ -23,20 +23,22 @@ export const SEED_DATA = {
23
23
  ],
24
24
  props: {
25
25
  onPress: createActionProp(),
26
- onLongPress: createActionProp(),
27
- disabled: createDisabledProp(),
28
26
  icon: createIconProp(),
29
27
  color: createColorProp({
30
28
  label: "Color",
31
29
  group: GROUPS.basic,
32
30
  }),
31
+ disabled: createBoolProp({
32
+ label: "Disabled",
33
+ group: GROUPS.basic,
34
+ }),
33
35
  size: createNumberProp({
34
36
  group: GROUPS.basic,
35
37
  label: "Size",
36
38
  description: "Width and height of your icon",
37
39
  defaultValue: 32,
38
40
  min: 16,
39
- max: 256,
41
+ max: 128,
40
42
  step: 1,
41
43
  precision: 0,
42
44
  }),
@@ -0,0 +1,39 @@
1
+ import { COMPONENT_TYPES, CONTAINER_COMPONENT_STYLES_SECTIONS, createColorProp, createStaticNumberProp, createStaticBoolProp, createDisabledProp, } from "@draftbit/types";
2
+ export const SEED_DATA = {
3
+ name: "Shadow",
4
+ tag: "Shadow View",
5
+ description: "A cross-platform, universal shadow.",
6
+ library: "react-native-shadow-2",
7
+ category: COMPONENT_TYPES.view,
8
+ stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
9
+ layout: {},
10
+ props: {
11
+ disabled: createDisabledProp({
12
+ description: "Disabled the shadow.",
13
+ }),
14
+ startColor: createColorProp({
15
+ label: "Start Color",
16
+ description: "The initial gradient color of the shadow.",
17
+ defaultValue: null,
18
+ }),
19
+ endColor: createColorProp({
20
+ label: "End Color",
21
+ description: "The final gradient color of the shadow.",
22
+ defaultValue: null,
23
+ }),
24
+ distance: createStaticNumberProp({
25
+ label: "Distance",
26
+ description: "The distance of the shadow.",
27
+ }),
28
+ paintInside: createStaticBoolProp({
29
+ label: "Paint Inside",
30
+ description: "Apply the shadow below/inside the content.",
31
+ defaultValue: null,
32
+ }),
33
+ stretch: createStaticBoolProp({
34
+ label: "Stretch",
35
+ description: "Force children to occupy all available horizontal space.",
36
+ defaultValue: null,
37
+ }),
38
+ },
39
+ };
@@ -0,0 +1,47 @@
1
+ import {
2
+ COMPONENT_TYPES,
3
+ CONTAINER_COMPONENT_STYLES_SECTIONS,
4
+ createColorProp,
5
+ createStaticNumberProp,
6
+ createStaticBoolProp,
7
+ createDisabledProp,
8
+ } from "@draftbit/types";
9
+
10
+ export const SEED_DATA = {
11
+ name: "Shadow",
12
+ tag: "Shadow View",
13
+ description: "A cross-platform, universal shadow.",
14
+ library: "react-native-shadow-2",
15
+ category: COMPONENT_TYPES.view,
16
+ stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
17
+ layout: {},
18
+ props: {
19
+ disabled: createDisabledProp({
20
+ description: "Disabled the shadow.",
21
+ }),
22
+ startColor: createColorProp({
23
+ label: "Start Color",
24
+ description: "The initial gradient color of the shadow.",
25
+ defaultValue: null,
26
+ }),
27
+ endColor: createColorProp({
28
+ label: "End Color",
29
+ description: "The final gradient color of the shadow.",
30
+ defaultValue: null,
31
+ }),
32
+ distance: createStaticNumberProp({
33
+ label: "Distance",
34
+ description: "The distance of the shadow.",
35
+ }),
36
+ paintInside: createStaticBoolProp({
37
+ label: "Paint Inside",
38
+ description: "Apply the shadow below/inside the content.",
39
+ defaultValue: null,
40
+ }),
41
+ stretch: createStaticBoolProp({
42
+ label: "Stretch",
43
+ description: "Force children to occupy all available horizontal space.",
44
+ defaultValue: null,
45
+ }),
46
+ },
47
+ };
@@ -1,4 +1,4 @@
1
- import { COMPONENT_TYPES, createActionProp, Triggers, createStaticNumberProp, StylesPanelSections, createDisabledProp, GROUPS, createStaticBoolProp, } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createActionProp, Triggers, createStaticNumberProp, StylesPanelSections, } from "@draftbit/types";
2
2
  const SEED_DATA_PROPS = {
3
3
  stylesPanelSections: [
4
4
  StylesPanelSections.Size,
@@ -10,11 +10,10 @@ const SEED_DATA_PROPS = {
10
10
  props: {
11
11
  onPress: createActionProp(),
12
12
  onLongPress: createActionProp(),
13
- disabled: createDisabledProp(),
14
13
  activeOpacity: createStaticNumberProp({
15
14
  label: "Active Opacity",
16
15
  description: "The opacity when the button is pressed.",
17
- defaultValue: null,
16
+ defaultValue: 0.8,
18
17
  min: 0,
19
18
  max: 1,
20
19
  step: 0.01,
@@ -24,7 +23,7 @@ const SEED_DATA_PROPS = {
24
23
  disabledOpacity: createStaticNumberProp({
25
24
  label: "Disabled Opacity",
26
25
  description: "The opacity when the button is disabled.",
27
- defaultValue: null,
26
+ defaultValue: 0.8,
28
27
  min: 0,
29
28
  max: 1,
30
29
  step: 0.01,
@@ -41,12 +40,6 @@ const SEED_DATA_PROPS = {
41
40
  description: "Sets additional distance outside of element in which a press can be detected.",
42
41
  required: false,
43
42
  }),
44
- android_disableSound: createStaticBoolProp({
45
- label: "Disable Sound",
46
- description: "Disable the Android sound effect.",
47
- defaultValue: null,
48
- group: GROUPS.android,
49
- }),
50
43
  },
51
44
  };
52
45
  export const SEED_DATA = [
@@ -4,9 +4,6 @@ import {
4
4
  Triggers,
5
5
  createStaticNumberProp,
6
6
  StylesPanelSections,
7
- createDisabledProp,
8
- GROUPS,
9
- createStaticBoolProp,
10
7
  } from "@draftbit/types";
11
8
 
12
9
  const SEED_DATA_PROPS = {
@@ -20,11 +17,10 @@ const SEED_DATA_PROPS = {
20
17
  props: {
21
18
  onPress: createActionProp(),
22
19
  onLongPress: createActionProp(),
23
- disabled: createDisabledProp(),
24
20
  activeOpacity: createStaticNumberProp({
25
21
  label: "Active Opacity",
26
22
  description: "The opacity when the button is pressed.",
27
- defaultValue: null,
23
+ defaultValue: 0.8,
28
24
  min: 0,
29
25
  max: 1,
30
26
  step: 0.01,
@@ -34,7 +30,7 @@ const SEED_DATA_PROPS = {
34
30
  disabledOpacity: createStaticNumberProp({
35
31
  label: "Disabled Opacity",
36
32
  description: "The opacity when the button is disabled.",
37
- defaultValue: null,
33
+ defaultValue: 0.8,
38
34
  min: 0,
39
35
  max: 1,
40
36
  step: 0.01,
@@ -53,12 +49,6 @@ const SEED_DATA_PROPS = {
53
49
  "Sets additional distance outside of element in which a press can be detected.",
54
50
  required: false,
55
51
  }),
56
- android_disableSound: createStaticBoolProp({
57
- label: "Disable Sound",
58
- description: "Disable the Android sound effect.",
59
- defaultValue: null,
60
- group: GROUPS.android,
61
- }),
62
52
  },
63
53
  };
64
54