@draftbit/core 47.0.1-cc5ccc.2 → 47.0.1-ed6e56.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 (99) hide show
  1. package/lib/commonjs/components/Button.js +15 -27
  2. package/lib/commonjs/components/Checkbox/Checkbox.js +3 -1
  3. package/lib/commonjs/components/DatePicker/DatePicker.js +1 -0
  4. package/lib/commonjs/components/DatePicker/DatePickerComponent.js +3 -9
  5. package/lib/commonjs/components/DatePicker/DatePickerComponent.web.js +0 -1
  6. package/lib/commonjs/components/DatePicker/DatePickerInput.js +133 -0
  7. package/lib/commonjs/components/DeprecatedButton.js +151 -0
  8. package/lib/commonjs/components/DeprecatedCardWrapper.js +2 -2
  9. package/lib/commonjs/components/DeprecatedFAB.js +2 -1
  10. package/lib/commonjs/components/Picker/Picker.js +4 -3
  11. package/lib/commonjs/components/Picker/PickerComponent.ios.js +2 -2
  12. package/lib/commonjs/components/Touchable.js +11 -27
  13. package/lib/commonjs/components/Touchable.web.js +9 -0
  14. package/lib/commonjs/mappings/Button.js +10 -13
  15. package/lib/commonjs/mappings/Touchable.js +20 -0
  16. package/lib/module/components/Button.js +9 -21
  17. package/lib/module/components/Checkbox/Checkbox.js +3 -2
  18. package/lib/module/components/DatePicker/DatePicker.js +1 -0
  19. package/lib/module/components/DatePicker/DatePickerComponent.js +3 -9
  20. package/lib/module/components/DatePicker/DatePickerComponent.web.js +0 -1
  21. package/lib/module/components/DatePicker/DatePickerInput.js +123 -0
  22. package/lib/module/components/DeprecatedButton.js +141 -0
  23. package/lib/module/components/DeprecatedCardWrapper.js +2 -2
  24. package/lib/module/components/DeprecatedFAB.js +3 -2
  25. package/lib/module/components/Picker/Picker.js +4 -3
  26. package/lib/module/components/Picker/PickerComponent.ios.js +1 -1
  27. package/lib/module/components/Touchable.js +10 -25
  28. package/lib/module/components/Touchable.web.js +2 -0
  29. package/lib/module/mappings/Button.js +11 -14
  30. package/lib/module/mappings/Touchable.js +13 -0
  31. package/lib/typescript/src/components/Button.d.ts +0 -2
  32. package/lib/typescript/src/components/Button.d.ts.map +1 -1
  33. package/lib/typescript/src/components/Checkbox/Checkbox.d.ts +2 -2
  34. package/lib/typescript/src/components/Checkbox/Checkbox.d.ts.map +1 -1
  35. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts.map +1 -1
  36. package/lib/typescript/src/components/DatePicker/DatePickerComponent.d.ts.map +1 -1
  37. package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.d.ts.map +1 -1
  38. package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts +2 -0
  39. package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts.map +1 -1
  40. package/lib/typescript/src/components/DatePicker/DatePickerInput.d.ts +18 -0
  41. package/lib/typescript/src/components/DatePicker/DatePickerInput.d.ts.map +1 -0
  42. package/lib/typescript/src/components/DeprecatedButton.d.ts +54 -0
  43. package/lib/typescript/src/components/DeprecatedButton.d.ts.map +1 -0
  44. package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts.map +1 -1
  45. package/lib/typescript/src/components/DeprecatedFAB.d.ts +2 -2
  46. package/lib/typescript/src/components/DeprecatedFAB.d.ts.map +1 -1
  47. package/lib/typescript/src/components/Picker/Picker.d.ts.map +1 -1
  48. package/lib/typescript/src/components/Touchable.d.ts +2 -9
  49. package/lib/typescript/src/components/Touchable.d.ts.map +1 -1
  50. package/lib/typescript/src/components/Touchable.web.d.ts +3 -0
  51. package/lib/typescript/src/components/Touchable.web.d.ts.map +1 -0
  52. package/lib/typescript/src/mappings/Button.d.ts +4 -113
  53. package/lib/typescript/src/mappings/Button.d.ts.map +1 -1
  54. package/lib/typescript/src/mappings/Touchable.d.ts +22 -0
  55. package/lib/typescript/src/mappings/Touchable.d.ts.map +1 -0
  56. package/package.json +6 -6
  57. package/src/components/Button.js +11 -18
  58. package/src/components/Button.tsx +11 -45
  59. package/src/components/Checkbox/Checkbox.js +3 -2
  60. package/src/components/Checkbox/Checkbox.tsx +7 -5
  61. package/src/components/DatePicker/DatePicker.js +1 -1
  62. package/src/components/DatePicker/DatePicker.tsx +1 -0
  63. package/src/components/DatePicker/DatePickerComponent.js +3 -5
  64. package/src/components/DatePicker/DatePickerComponent.tsx +3 -11
  65. package/src/components/DatePicker/DatePickerComponent.web.js +1 -1
  66. package/src/components/DatePicker/DatePickerComponent.web.tsx +0 -1
  67. package/src/components/DatePicker/DatePickerComponentType.ts +9 -0
  68. package/src/components/DatePicker/DatePickerInput.js +97 -0
  69. package/src/components/DatePicker/DatePickerInput.tsx +195 -0
  70. package/src/components/DeprecatedButton.js +95 -0
  71. package/src/components/DeprecatedButton.tsx +214 -0
  72. package/src/components/DeprecatedCardWrapper.js +2 -2
  73. package/src/components/DeprecatedCardWrapper.tsx +4 -3
  74. package/src/components/DeprecatedFAB.js +3 -2
  75. package/src/components/DeprecatedFAB.tsx +5 -5
  76. package/src/components/Picker/Picker.js +4 -3
  77. package/src/components/Picker/Picker.tsx +4 -4
  78. package/src/components/Picker/PickerComponent.ios.js +1 -1
  79. package/src/components/Picker/PickerComponent.ios.tsx +1 -1
  80. package/src/components/Touchable.js +11 -16
  81. package/src/components/Touchable.tsx +11 -42
  82. package/src/components/Touchable.web.js +2 -0
  83. package/src/components/Touchable.web.tsx +3 -0
  84. package/src/mappings/Button.js +10 -13
  85. package/src/mappings/Button.ts +10 -13
  86. package/src/mappings/Touchable.js +17 -0
  87. package/src/mappings/Touchable.ts +23 -0
  88. package/lib/commonjs/components/Pressable.js +0 -48
  89. package/lib/commonjs/mappings/Pressable.js +0 -52
  90. package/lib/module/components/Pressable.js +0 -40
  91. package/lib/module/mappings/Pressable.js +0 -45
  92. package/lib/typescript/src/components/Pressable.d.ts +0 -18
  93. package/lib/typescript/src/components/Pressable.d.ts.map +0 -1
  94. package/lib/typescript/src/mappings/Pressable.d.ts +0 -76
  95. package/lib/typescript/src/mappings/Pressable.d.ts.map +0 -1
  96. package/src/components/Pressable.js +0 -17
  97. package/src/components/Pressable.tsx +0 -67
  98. package/src/mappings/Pressable.js +0 -52
  99. package/src/mappings/Pressable.ts +0 -63
@@ -1 +1 @@
1
- {"version":3,"file":"DatePickerComponent.web.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/DatePickerComponent.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,EAAE,wBAAwB,IAAI,KAAK,EAAE,MAAM,2BAA2B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgD9E,wBAA8C"}
@@ -5,6 +5,8 @@ export interface DatePickerComponentProps {
5
5
  mode: "date" | "time" | "datetime";
6
6
  toggleVisibility: () => void;
7
7
  isVisible?: boolean;
8
+ displayMode?: "default" | "compact" | "inline" | "spinner" | "clock" | "calendar" | undefined;
9
+ variant?: "dialog" | "inline" | undefined;
8
10
  theme?: typeof theme;
9
11
  }
10
12
  //# sourceMappingURL=DatePickerComponentType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DatePickerComponentType.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/DatePickerComponentType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,2BAA2B,CAAC;AAE9C,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,IAAI,CAAC;IACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IACvC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;IACnC,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;CACtB"}
1
+ {"version":3,"file":"DatePickerComponentType.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/DatePickerComponentType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,2BAA2B,CAAC;AAE9C,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,IAAI,CAAC;IACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IACvC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;IACnC,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EACR,SAAS,GACT,SAAS,GACT,QAAQ,GACR,SAAS,GACT,OAAO,GACP,UAAU,GACV,SAAS,CAAC;IACd,OAAO,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;IAC1C,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;CACtB"}
@@ -0,0 +1,18 @@
1
+ import * as React from "react";
2
+ import { StyleProp, ViewStyle, TextInputProps } from "react-native";
3
+ declare type Props = {
4
+ style?: StyleProp<ViewStyle>;
5
+ date?: Date;
6
+ format?: string;
7
+ onDateChange?: (data?: Date) => void;
8
+ defaultValue?: Date;
9
+ disabled?: boolean;
10
+ mode?: "date" | "time" | "datetime";
11
+ androidDisplay: "default" | "spinner" | "calendar" | "clock";
12
+ iosDisplay: "default" | "spinner" | "compact" | "inline";
13
+ webDisplay: "dialog" | "inline";
14
+ placeholder?: string;
15
+ } & TextInputProps;
16
+ declare const DatePickerInput: React.FC<React.PropsWithChildren<Props>>;
17
+ export default DatePickerInput;
18
+ //# sourceMappingURL=DatePickerInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatePickerInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/DatePickerInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAEL,SAAS,EACT,SAAS,EACT,cAAc,EAGf,MAAM,cAAc,CAAC;AAQtB,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,IAAI,KAAK,IAAI,CAAC;IACrC,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;IACpC,cAAc,EAAE,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;IAC7D,UAAU,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;IACzD,UAAU,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,cAAc,CAAC;AAiBnB,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAmJ7D,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,54 @@
1
+ import * as React from "react";
2
+ import { TouchableHighlightProps, StyleProp, ViewStyle } from "react-native";
3
+ import type { Theme } from "../styles/DefaultTheme";
4
+ import type { IconSlot } from "../interfaces/Icon";
5
+ /**
6
+ * A button is component that the user can press to trigger an action.
7
+ *
8
+ * <div class="screenshots">
9
+ * <figure>
10
+ * <img src="screenshots/button-1.png" />
11
+ * <figcaption>Text button</figcaption>
12
+ * </figure>
13
+ * <figure>
14
+ * <img src="screenshots/button-2.png" />
15
+ * <figcaption>Outlined button</figcaption>
16
+ * </figure>
17
+ * <figure>
18
+ * <img src="screenshots/button-3.png" />
19
+ * <figcaption>Contained button</figcaption>
20
+ * </figure>
21
+ * </div>
22
+ *
23
+ * ## Usage
24
+ * ```js
25
+ * import * as React from 'react';
26
+ * import { Button } from '@draftbit/ui';
27
+ *
28
+ * const MyComponent = () => (
29
+ * <Button icon="add-a-photo" type="solid" onPress={() => console.log('Pressed')}>
30
+ * Press me
31
+ * </Button>
32
+ * );
33
+ *
34
+ * export default MyComponent;
35
+ * ```
36
+ */
37
+ declare type Props = {
38
+ disabled?: boolean;
39
+ type?: "solid" | "outline" | "text";
40
+ loading?: boolean;
41
+ icon?: string;
42
+ labelColor?: string;
43
+ color?: string;
44
+ children?: React.ReactNode;
45
+ onPress: () => void;
46
+ elevation?: number;
47
+ style?: StyleProp<ViewStyle>;
48
+ theme: Theme;
49
+ } & TouchableHighlightProps & IconSlot;
50
+ declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<React.PropsWithChildren<Props>, "theme"> & {
51
+ theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
52
+ }> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<React.PropsWithChildren<Props>> & React.FC<React.PropsWithChildren<Props>>, {}>;
53
+ export default _default;
54
+ //# sourceMappingURL=DeprecatedButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeprecatedButton.d.ts","sourceRoot":"","sources":["../../../../src/components/DeprecatedButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAKL,uBAAuB,EACvB,SAAS,EACT,SAAS,EAEV,MAAM,cAAc,CAAC;AAOtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,aAAK,KAAK,GAAG;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC;CACd,GAAG,uBAAuB,GACzB,QAAQ,CAAC;;;;AAmJX,wBAAiC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DeprecatedCardWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/DeprecatedCardWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAa,MAAM,cAAc,CAAC;AAC/D,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAE3C,aAAK,KAAK,GAAG;IACX,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,OAAO,KAAK,CAAC;CACrB,CAAC;;;;AAiCF,wBAA+B"}
1
+ {"version":3,"file":"DeprecatedCardWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/DeprecatedCardWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAE3C,aAAK,KAAK,GAAG;IACX,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,OAAO,KAAK,CAAC;CACrB,CAAC;;;;AAiCF,wBAA+B"}
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { StyleProp, ViewStyle, PressableProps } from "react-native";
2
+ import { TouchableHighlightProps, StyleProp, ViewStyle } from "react-native";
3
3
  import type { Theme } from "../styles/DefaultTheme";
4
4
  import type { IconSlot } from "../interfaces/Icon";
5
5
  /**
@@ -48,7 +48,7 @@ declare type Props = {
48
48
  elevation?: number;
49
49
  theme: Theme;
50
50
  style?: StyleProp<ViewStyle>;
51
- } & PressableProps & IconSlot;
51
+ } & TouchableHighlightProps & IconSlot;
52
52
  declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<React.PropsWithChildren<Props>, "theme"> & {
53
53
  theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
54
54
  }> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<React.PropsWithChildren<Props>> & React.FC<React.PropsWithChildren<Props>>, {}>;
@@ -1 +1 @@
1
- {"version":3,"file":"DeprecatedFAB.d.ts","sourceRoot":"","sources":["../../../../src/components/DeprecatedFAB.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAIL,SAAS,EACT,SAAS,EAGT,cAAc,EACf,MAAM,cAAc,CAAC;AAOtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,aAAK,KAAK,GAAG;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,CAAC;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,GAAG,cAAc,GAChB,QAAQ,CAAC;;;;AAkKX,wBAA8B"}
1
+ {"version":3,"file":"DeprecatedFAB.d.ts","sourceRoot":"","sources":["../../../../src/components/DeprecatedFAB.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAIL,uBAAuB,EACvB,SAAS,EACT,SAAS,EAEV,MAAM,cAAc,CAAC;AAQtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,aAAK,KAAK,GAAG;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,CAAC;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,GAAG,uBAAuB,GACzB,QAAQ,CAAC;;;;AAkKX,wBAA8B"}
@@ -1 +1 @@
1
- {"version":3,"file":"Picker.d.ts","sourceRoot":"","sources":["../../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,KAAK,CAAC;IACb,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CACxB,CAAC;;;;AA2aF,wBAAiC"}
@@ -1,18 +1,11 @@
1
1
  import React from "react";
2
- import { PressableProps, PressableStateCallbackType, StyleProp, ViewStyle } from "react-native";
2
+ import { ViewStyle, PressableProps } from "react-native";
3
3
  declare type Props = {
4
4
  disabled?: boolean;
5
5
  children: React.ReactNode;
6
6
  style?: ViewStyle;
7
7
  onPress?: () => void;
8
- onLongPress?: () => void;
9
- delayLongPress?: number;
10
- hitSlop?: number;
11
- pressRetentionOffset?: number;
12
- activeOpacity?: number;
13
- disabledOpacity?: number;
14
8
  } & PressableProps;
15
- export declare type StyleType = (state: PressableStateCallbackType) => StyleProp<ViewStyle>;
16
- export default function Touchable({ children, disabled, onPress, onLongPress, hitSlop, delayLongPress, activeOpacity, disabledOpacity, style, ...props }: Props): JSX.Element;
9
+ export default function Touchable({ children, disabled, onPress, style, ...props }: Props): JSX.Element;
17
10
  export {};
18
11
  //# sourceMappingURL=Touchable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Touchable.d.ts","sourceRoot":"","sources":["../../../../src/components/Touchable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,EAEL,cAAc,EACd,0BAA0B,EAC1B,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,aAAK,KAAK,GAAG;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,GAAG,cAAc,CAAC;AAEnB,oBAAY,SAAS,GAAG,CACtB,KAAK,EAAE,0BAA0B,KAC9B,SAAS,CAAC,SAAS,CAAC,CAAC;AAE1B,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,WAAW,EACX,OAAO,EACP,cAAc,EACd,aAAa,EACb,eAAe,EACf,KAAK,EACL,GAAG,KAAK,EACT,EAAE,KAAK,eA6BP"}
1
+ {"version":3,"file":"Touchable.d.ts","sourceRoot":"","sources":["../../../../src/components/Touchable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAa,SAAS,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEpE,aAAK,KAAK,GAAG;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,GAAG,cAAc,CAAC;AAEnB,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,KAAK,EACL,GAAG,KAAK,EACT,EAAE,KAAK,eAmBP"}
@@ -0,0 +1,3 @@
1
+ import { TouchableOpacity } from "react-native";
2
+ export default TouchableOpacity;
3
+ //# sourceMappingURL=Touchable.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Touchable.web.d.ts","sourceRoot":"","sources":["../../../../src/components/Touchable.web.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,eAAe,gBAAgB,CAAC"}
@@ -5,10 +5,10 @@ export declare const SEED_DATA: ({
5
5
  stylesPanelSections: string[];
6
6
  layout: {
7
7
  backgroundColor: string;
8
- borderRadius: number;
9
- fontFamily: string;
10
8
  borderWidth: number;
11
9
  textAlign: string;
10
+ borderRadius: number;
11
+ fontFamily: string;
12
12
  };
13
13
  triggers: string[];
14
14
  props: {
@@ -22,16 +22,6 @@ export declare const SEED_DATA: ({
22
22
  defaultValue: null;
23
23
  group: string;
24
24
  };
25
- onLongPress: {
26
- label: string;
27
- description: string;
28
- editable: boolean;
29
- required: boolean;
30
- formType: string;
31
- propType: string;
32
- defaultValue: null;
33
- group: string;
34
- };
35
25
  icon: {
36
26
  label: string;
37
27
  description: string;
@@ -63,50 +53,6 @@ export declare const SEED_DATA: ({
63
53
  propType: string;
64
54
  defaultValue: null;
65
55
  };
66
- activeOpacity: {
67
- label: string;
68
- description: string;
69
- formType: string;
70
- propType: string;
71
- group: string;
72
- defaultValue: null;
73
- editable: boolean;
74
- required: boolean;
75
- step: number;
76
- };
77
- disabledOpacity: {
78
- label: string;
79
- description: string;
80
- formType: string;
81
- propType: string;
82
- group: string;
83
- defaultValue: null;
84
- editable: boolean;
85
- required: boolean;
86
- step: number;
87
- };
88
- delayLongPress: {
89
- label: string;
90
- description: string;
91
- formType: string;
92
- propType: string;
93
- group: string;
94
- defaultValue: null;
95
- editable: boolean;
96
- required: boolean;
97
- step: number;
98
- };
99
- hitSlop: {
100
- label: string;
101
- description: string;
102
- formType: string;
103
- propType: string;
104
- group: string;
105
- defaultValue: null;
106
- editable: boolean;
107
- required: boolean;
108
- step: number;
109
- };
110
56
  };
111
57
  } | {
112
58
  name: string;
@@ -114,11 +60,10 @@ export declare const SEED_DATA: ({
114
60
  category: string;
115
61
  stylesPanelSections: string[];
116
62
  layout: {
117
- borderRadius: number;
118
- fontFamily: string;
119
63
  backgroundColor: string;
120
64
  textAlign: string;
121
- borderWidth?: undefined;
65
+ borderRadius: number;
66
+ fontFamily: string;
122
67
  };
123
68
  triggers: string[];
124
69
  props: {
@@ -132,16 +77,6 @@ export declare const SEED_DATA: ({
132
77
  defaultValue: null;
133
78
  group: string;
134
79
  };
135
- onLongPress: {
136
- label: string;
137
- description: string;
138
- editable: boolean;
139
- required: boolean;
140
- formType: string;
141
- propType: string;
142
- defaultValue: null;
143
- group: string;
144
- };
145
80
  icon: {
146
81
  label: string;
147
82
  description: string;
@@ -173,50 +108,6 @@ export declare const SEED_DATA: ({
173
108
  propType: string;
174
109
  defaultValue: null;
175
110
  };
176
- activeOpacity: {
177
- label: string;
178
- description: string;
179
- formType: string;
180
- propType: string;
181
- group: string;
182
- defaultValue: null;
183
- editable: boolean;
184
- required: boolean;
185
- step: number;
186
- };
187
- disabledOpacity: {
188
- label: string;
189
- description: string;
190
- formType: string;
191
- propType: string;
192
- group: string;
193
- defaultValue: null;
194
- editable: boolean;
195
- required: boolean;
196
- step: number;
197
- };
198
- delayLongPress: {
199
- label: string;
200
- description: string;
201
- formType: string;
202
- propType: string;
203
- group: string;
204
- defaultValue: null;
205
- editable: boolean;
206
- required: boolean;
207
- step: number;
208
- };
209
- hitSlop: {
210
- label: string;
211
- description: string;
212
- formType: string;
213
- propType: string;
214
- group: string;
215
- defaultValue: null;
216
- editable: boolean;
217
- required: boolean;
218
- step: number;
219
- };
220
111
  };
221
112
  })[];
222
113
  //# sourceMappingURL=Button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Button.ts"],"names":[],"mappings":"AAiCA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoErB,CAAC"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Button.ts"],"names":[],"mappings":"AAiCA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiErB,CAAC"}
@@ -0,0 +1,22 @@
1
+ export declare const SEED_DATA: {
2
+ name: string;
3
+ tag: string;
4
+ description: string;
5
+ category: string;
6
+ stylesPanelSections: string[];
7
+ layout: {};
8
+ triggers: string[];
9
+ props: {
10
+ onPress: {
11
+ label: string;
12
+ description: string;
13
+ editable: boolean;
14
+ required: boolean;
15
+ formType: string;
16
+ propType: string;
17
+ defaultValue: null;
18
+ group: string;
19
+ };
20
+ };
21
+ };
22
+ //# sourceMappingURL=Touchable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Touchable.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Touchable.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;CAerB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@draftbit/core",
3
- "version": "47.0.1-cc5ccc.2+cc5ccc0",
3
+ "version": "47.0.1-ed6e56.2+ed6e56c",
4
4
  "description": "Core (non-native) Components",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -41,9 +41,9 @@
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.0.1-cc5ccc.2+cc5ccc0",
45
- "@material-ui/core": "^4.11.0",
46
- "@material-ui/pickers": "^3.2.10",
44
+ "@draftbit/types": "^47.0.1-ed6e56.2+ed6e56c",
45
+ "@material-ui/core": "^4.12.4",
46
+ "@material-ui/pickers": "^3.3.10",
47
47
  "@react-native-community/slider": "4.2.4",
48
48
  "@react-native-picker/picker": "2.4.8",
49
49
  "@shopify/flash-list": "1.3.1",
@@ -53,7 +53,7 @@
53
53
  "lodash.isnumber": "^3.0.3",
54
54
  "lodash.omit": "^4.5.0",
55
55
  "lodash.tonumber": "^4.0.3",
56
- "react-native-modal-datetime-picker": "^13.0.0",
56
+ "react-native-modal-datetime-picker": "^14.0.1",
57
57
  "react-native-svg": "13.4.0",
58
58
  "react-native-typography": "^1.4.1",
59
59
  "react-native-web-swiper": "^2.2.3"
@@ -91,5 +91,5 @@
91
91
  ]
92
92
  ]
93
93
  },
94
- "gitHead": "cc5ccc0cb02f87cb9672ab134b665d254375c75f"
94
+ "gitHead": "ed6e56cc6bfd9104faf3be1257309cbd08796cf5"
95
95
  }
@@ -1,4 +1,4 @@
1
- import React, { useCallback } from "react";
1
+ import * as React from "react";
2
2
  import { Text, Pressable, Platform, StyleSheet, ActivityIndicator, } from "react-native";
3
3
  import { withTheme } from "../theming";
4
4
  const CONSTANTS = {
@@ -7,7 +7,7 @@ const CONSTANTS = {
7
7
  padding: 8,
8
8
  icon: 24,
9
9
  };
10
- function Base({ Icon, icon, title, onPress, onLongPress, activeOpacity, disabledOpacity, loading, disabled, style, ...props }) {
10
+ function Base({ Icon, icon, title, onPress, loading, disabled, style, ...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,
@@ -28,22 +28,15 @@ function Base({ Icon, icon, title, onPress, onLongPress, activeOpacity, disabled
28
28
  if (textAlign === "right") {
29
29
  buttonStyles.justifyContent = "flex-end";
30
30
  }
31
- const getOpacity = useCallback((pressed) => {
32
- if (disabled) {
33
- return disabledOpacity;
34
- }
35
- else {
36
- if (pressed)
37
- return activeOpacity;
38
- else
39
- return 1;
40
- }
41
- }, [activeOpacity, disabled, disabledOpacity]);
42
- const _style = useCallback(({ pressed }) => [
43
- buttonStyles,
44
- { opacity: getOpacity(pressed) },
45
- ], [getOpacity, buttonStyles]);
46
- return (React.createElement(Pressable, { onPress: onPress, onLongPress: onLongPress, disabled: disabled || loading, style: (styles.base, _style), ...props },
31
+ return (React.createElement(Pressable, { onPress: onPress, disabled: disabled || loading, style: ({ pressed }) => {
32
+ return [
33
+ styles.base,
34
+ {
35
+ opacity: pressed || disabled ? 0.75 : 1,
36
+ },
37
+ buttonStyles,
38
+ ];
39
+ }, ...props },
47
40
  loading ? (React.createElement(ActivityIndicator, { size: "small", color: color, style: styles.loading })) : null,
48
41
  icon && !loading ? (React.createElement(Icon, { name: icon, color: color, style: styles.icon, size: CONSTANTS.icon })) : null,
49
42
  React.createElement(Text, { style: titleStyles }, title)));
@@ -1,14 +1,11 @@
1
- import React, { useCallback } from "react";
1
+ import * as React from "react";
2
2
  import {
3
3
  Text,
4
4
  Pressable,
5
- PressableProps,
6
- PressableStateCallbackType,
7
5
  Platform,
8
6
  StyleSheet,
9
- StyleProp,
10
7
  TextStyle,
11
- ViewStyle,
8
+ PressableProps,
12
9
  ActivityIndicator,
13
10
  } from "react-native";
14
11
 
@@ -30,12 +27,6 @@ type BaseProps = {
30
27
  loading: boolean;
31
28
  style?: TextStyle;
32
29
  onPress: () => void;
33
- onLongPress?: () => void;
34
- activeOpacity?: number;
35
- disabledOpacity?: number;
36
- delayLongPress?: number;
37
- hitSlop?: number;
38
- pressRetentionOffset?: number;
39
30
  icon?: string;
40
31
  } & PressableProps &
41
32
  IconSlot;
@@ -46,29 +37,16 @@ type Props = {
46
37
  loading: boolean;
47
38
  style?: TextStyle;
48
39
  onPress: () => void;
49
- onLongPress?: () => void;
50
- activeOpacity?: number;
51
- disabledOpacity?: number;
52
- delayLongPress?: number;
53
- hitSlop?: number;
54
- pressRetentionOffset?: number;
55
40
  icon?: string;
56
41
  theme: Theme;
57
42
  } & PressableProps &
58
43
  IconSlot;
59
44
 
60
- export type StyleType = (
61
- state: PressableStateCallbackType
62
- ) => StyleProp<ViewStyle>;
63
-
64
45
  function Base({
65
46
  Icon,
66
47
  icon,
67
48
  title,
68
49
  onPress,
69
- onLongPress,
70
- activeOpacity,
71
- disabledOpacity,
72
50
  loading,
73
51
  disabled,
74
52
  style,
@@ -111,31 +89,19 @@ function Base({
111
89
  buttonStyles.justifyContent = "flex-end";
112
90
  }
113
91
 
114
- const getOpacity = useCallback(
115
- (pressed: boolean) => {
116
- if (disabled) {
117
- return disabledOpacity;
118
- } else {
119
- if (pressed) return activeOpacity;
120
- else return 1;
121
- }
122
- },
123
- [activeOpacity, disabled, disabledOpacity]
124
- );
125
- const _style = useCallback<StyleType>(
126
- ({ pressed }) => [
127
- buttonStyles as ViewStyle,
128
- { opacity: getOpacity(pressed) },
129
- ],
130
- [getOpacity, buttonStyles]
131
- );
132
-
133
92
  return (
134
93
  <Pressable
135
94
  onPress={onPress}
136
- onLongPress={onLongPress}
137
95
  disabled={disabled || loading}
138
- style={(styles.base, _style)}
96
+ style={({ pressed }) => {
97
+ return [
98
+ styles.base,
99
+ {
100
+ opacity: pressed || disabled ? 0.75 : 1,
101
+ },
102
+ buttonStyles,
103
+ ];
104
+ }}
139
105
  {...props}
140
106
  >
141
107
  {loading ? (
@@ -1,6 +1,7 @@
1
1
  import * as React from "react";
2
- import { View, StyleSheet, Pressable, } from "react-native";
2
+ import { View, StyleSheet, } from "react-native";
3
3
  import { useTheme } from "../../theming";
4
+ import Touchable from "../Touchable";
4
5
  import { usePrevious } from "../../hooks";
5
6
  const Checkbox = ({ Icon, status, disabled = false, onPress, onCheck, onUncheck, color, uncheckedColor, defaultValue, checkedIcon = "MaterialCommunityIcons/checkbox-marked", uncheckedIcon = "MaterialCommunityIcons/checkbox-blank-outline", size = 24, style, ...rest }) => {
6
7
  const [internalValue, setInternalValue] = React.useState(status || defaultValue || false);
@@ -32,7 +33,7 @@ const Checkbox = ({ Icon, status, disabled = false, onPress, onCheck, onUncheck,
32
33
  onUncheck === null || onUncheck === void 0 ? void 0 : onUncheck();
33
34
  }
34
35
  };
35
- return (React.createElement(Pressable, { ...rest, onPress: handlePress, disabled: disabled, accessibilityState: { disabled }, accessibilityRole: "button", accessibilityLiveRegion: "polite", style: [styles.container, style, { width: size, height: size }] },
36
+ return (React.createElement(Touchable, { ...rest, onPress: handlePress, disabled: disabled, accessibilityState: { disabled }, accessibilityRole: "button", accessibilityLiveRegion: "polite", style: [styles.container, style, { width: size, height: size }] },
36
37
  React.createElement(Icon, { style: styles.icon, name: internalValue ? checkedIcon : uncheckedIcon, size: size, color: checkboxColor }),
37
38
  React.createElement(View, { style: [StyleSheet.absoluteFill, styles.fillContainer] },
38
39
  React.createElement(View, { style: [
@@ -2,14 +2,14 @@ import * as React from "react";
2
2
  import {
3
3
  View,
4
4
  StyleSheet,
5
+ TouchableHighlightProps,
5
6
  StyleProp,
6
7
  ViewStyle,
7
- Pressable,
8
- PressableProps,
9
8
  } from "react-native";
10
9
  import { useTheme } from "../../theming";
11
10
  import type { IconSlot } from "../../interfaces/Icon";
12
11
 
12
+ import Touchable from "../Touchable";
13
13
  import { usePrevious } from "../../hooks";
14
14
 
15
15
  export interface CheckboxProps {
@@ -27,7 +27,9 @@ export interface CheckboxProps {
27
27
  style?: StyleProp<ViewStyle>;
28
28
  }
29
29
 
30
- const Checkbox: React.FC<CheckboxProps & PressableProps & IconSlot> = ({
30
+ const Checkbox: React.FC<
31
+ CheckboxProps & TouchableHighlightProps & IconSlot
32
+ > = ({
31
33
  Icon,
32
34
  status,
33
35
  disabled = false,
@@ -85,7 +87,7 @@ const Checkbox: React.FC<CheckboxProps & PressableProps & IconSlot> = ({
85
87
  };
86
88
 
87
89
  return (
88
- <Pressable
90
+ <Touchable
89
91
  {...rest}
90
92
  onPress={handlePress}
91
93
  disabled={disabled}
@@ -109,7 +111,7 @@ const Checkbox: React.FC<CheckboxProps & PressableProps & IconSlot> = ({
109
111
  ]}
110
112
  />
111
113
  </View>
112
- </Pressable>
114
+ </Touchable>
113
115
  );
114
116
  };
115
117
 
@@ -333,7 +333,7 @@ const DatePicker = ({ Icon, style, theme: { colors, typography, roundness, disab
333
333
  paddingRight: insets.right,
334
334
  },
335
335
  ] },
336
- React.createElement(DateTimePicker, { value: getValidDate(), mode: mode, isVisible: pickerVisible, toggleVisibility: toggleVisibility, onChange: (_event, data) => {
336
+ React.createElement(DateTimePicker, { value: getValidDate(), mode: mode, displayMode: "default", isVisible: pickerVisible, toggleVisibility: toggleVisibility, onChange: (_event, data) => {
337
337
  toggleVisibility();
338
338
  setValue(data);
339
339
  onDateChange(data);