@grupalia/rn-ui-kit 0.121.0 → 0.123.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/lib/commonjs/components/PressableOpacity.js +5 -0
  2. package/lib/commonjs/components/PressableOpacity.js.map +1 -1
  3. package/lib/commonjs/hooks/useBaseJobRunPolling.js +8 -17
  4. package/lib/commonjs/hooks/useBaseJobRunPolling.js.map +1 -1
  5. package/lib/commonjs/index.js.map +1 -1
  6. package/lib/commonjs/types/requireAtLeastOne.js +2 -0
  7. package/lib/commonjs/types/requireAtLeastOne.js.map +1 -0
  8. package/lib/module/components/PressableOpacity.js +5 -0
  9. package/lib/module/components/PressableOpacity.js.map +1 -1
  10. package/lib/module/hooks/useBaseJobRunPolling.js +8 -17
  11. package/lib/module/hooks/useBaseJobRunPolling.js.map +1 -1
  12. package/lib/module/index.js.map +1 -1
  13. package/lib/module/types/requireAtLeastOne.js +2 -0
  14. package/lib/module/types/requireAtLeastOne.js.map +1 -0
  15. package/lib/typescript/commonjs/api/jobRun.d.ts +1 -1
  16. package/lib/typescript/commonjs/api/jobRun.d.ts.map +1 -1
  17. package/lib/typescript/commonjs/components/BackButton.d.ts +2 -12
  18. package/lib/typescript/commonjs/components/BackButton.d.ts.map +1 -1
  19. package/lib/typescript/commonjs/components/BaseButton.d.ts +309 -4
  20. package/lib/typescript/commonjs/components/BaseButton.d.ts.map +1 -1
  21. package/lib/typescript/commonjs/components/MenuBottomSheetModal.d.ts +2 -2
  22. package/lib/typescript/commonjs/components/MenuBottomSheetModal.d.ts.map +1 -1
  23. package/lib/typescript/commonjs/components/PressableOpacity.d.ts +57 -4
  24. package/lib/typescript/commonjs/components/PressableOpacity.d.ts.map +1 -1
  25. package/lib/typescript/commonjs/hooks/useBaseJobRunPolling.d.ts +1 -2
  26. package/lib/typescript/commonjs/hooks/useBaseJobRunPolling.d.ts.map +1 -1
  27. package/lib/typescript/commonjs/index.d.ts +1 -0
  28. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  29. package/lib/typescript/commonjs/types/requireAtLeastOne.d.ts +15 -0
  30. package/lib/typescript/commonjs/types/requireAtLeastOne.d.ts.map +1 -0
  31. package/lib/typescript/module/api/jobRun.d.ts +1 -1
  32. package/lib/typescript/module/api/jobRun.d.ts.map +1 -1
  33. package/lib/typescript/module/components/BackButton.d.ts +2 -12
  34. package/lib/typescript/module/components/BackButton.d.ts.map +1 -1
  35. package/lib/typescript/module/components/BaseButton.d.ts +309 -4
  36. package/lib/typescript/module/components/BaseButton.d.ts.map +1 -1
  37. package/lib/typescript/module/components/MenuBottomSheetModal.d.ts +2 -2
  38. package/lib/typescript/module/components/MenuBottomSheetModal.d.ts.map +1 -1
  39. package/lib/typescript/module/components/PressableOpacity.d.ts +57 -4
  40. package/lib/typescript/module/components/PressableOpacity.d.ts.map +1 -1
  41. package/lib/typescript/module/hooks/useBaseJobRunPolling.d.ts +1 -2
  42. package/lib/typescript/module/hooks/useBaseJobRunPolling.d.ts.map +1 -1
  43. package/lib/typescript/module/index.d.ts +1 -0
  44. package/lib/typescript/module/index.d.ts.map +1 -1
  45. package/lib/typescript/module/types/requireAtLeastOne.d.ts +15 -0
  46. package/lib/typescript/module/types/requireAtLeastOne.d.ts.map +1 -0
  47. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"BaseButton.d.ts","sourceRoot":"","sources":["../../../../src/components/BaseButton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8ZtC,wBAAkC"}
1
+ {"version":3,"file":"BaseButton.d.ts","sourceRoot":"","sources":["../../../../src/components/BaseButton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAY,qBAAqB,EAAqB,MAAM,cAAc,CAAC;AAOlF,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8ZtC,wBAAkC"}
@@ -1,12 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  import { PressableOpacityProps } from './PressableOpacity';
3
3
  import { Icon } from '../types/icons';
4
- interface MenuBottomSheetItem extends PressableOpacityProps {
4
+ type MenuBottomSheetItem = PressableOpacityProps & {
5
5
  icon: Icon;
6
6
  label: string;
7
7
  showDot?: boolean;
8
8
  active?: boolean;
9
- }
9
+ };
10
10
  interface MenuBottomSheetModalProps {
11
11
  visible: boolean;
12
12
  onClose: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"MenuBottomSheetModal.d.ts","sourceRoot":"","sources":["../../../../src/components/MenuBottomSheetModal.tsx"],"names":[],"mappings":";AAQA,OAAyB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAEtC,UAAU,mBAAoB,SAAQ,qBAAqB;IACzD,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,UAAU,yBAAyB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,mBAAmB,EAAE,CAAC;CAC9B;;;;;;;AA0DD,wBAA4C;AAC5C,YAAY,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,CAAC"}
1
+ {"version":3,"file":"MenuBottomSheetModal.d.ts","sourceRoot":"","sources":["../../../../src/components/MenuBottomSheetModal.tsx"],"names":[],"mappings":";AAQA,OAAyB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAEtC,KAAK,mBAAmB,GAAG,qBAAqB,GAAG;IACjD,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,UAAU,yBAAyB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,mBAAmB,EAAE,CAAC;CAC9B;;;;;;;AA0DD,wBAA4C;AAC5C,YAAY,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,CAAC"}
@@ -1,9 +1,15 @@
1
1
  /// <reference types="react" />
2
2
  import { PressableProps, StyleProp, ViewStyle, View } from 'react-native';
3
+ import { RequireAtLeastOne } from '../types/requireAtLeastOne';
4
+ /**
5
+ * The press handlers a `PressableOpacity` can respond to. At least one must be
6
+ * provided so the component always does something on interaction.
7
+ */
8
+ type PressHandlers = Pick<PressableProps, 'onPress' | 'onLongPress' | 'onPressIn' | 'onPressOut'>;
3
9
  /**
4
10
  * The props remove the functional `style` from the pressable to simplify this implementation.
5
11
  */
6
- export type PressableOpacityProps = Omit<PressableProps, 'style'> & {
12
+ export type PressableOpacityProps = Omit<PressableProps, 'style' | keyof PressHandlers> & {
7
13
  activeOpacity?: number;
8
14
  keepPressedOnLongPress?: boolean;
9
15
  pressInAnimationDuration?: number;
@@ -12,8 +18,50 @@ export type PressableOpacityProps = Omit<PressableProps, 'style'> & {
12
18
  * Only allow the static style prop and not the functional one.
13
19
  */
14
20
  style?: StyleProp<ViewStyle>;
15
- };
16
- declare const _default: import("react").ForwardRefExoticComponent<Omit<import("nativewind").StyledProps<Omit<PressableProps, "style"> & {
21
+ } & RequireAtLeastOne<PressHandlers>;
22
+ declare const _default: import("react").ForwardRefExoticComponent<(Omit<Omit<PressableProps, "style" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress"> & {
23
+ activeOpacity?: number | undefined;
24
+ keepPressedOnLongPress?: boolean | undefined;
25
+ pressInAnimationDuration?: number | undefined;
26
+ pressOutAnimationDuration?: number | undefined;
27
+ /**
28
+ * Only allow the static style prop and not the functional one.
29
+ */
30
+ style?: StyleProp<ViewStyle>;
31
+ } & Omit<PressHandlers, "onPress" | "onPressIn" | "onPressOut" | "onLongPress"> & Required<Pick<PressHandlers, "onPress">> & Partial<Pick<PressHandlers, "onPressIn" | "onPressOut" | "onLongPress">> & import("react").RefAttributes<View> & {
32
+ className?: string | undefined;
33
+ tw?: string | undefined;
34
+ baseClassName?: string | undefined;
35
+ baseTw?: string | undefined;
36
+ }, "ref"> | Omit<Omit<PressableProps, "style" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress"> & {
37
+ activeOpacity?: number | undefined;
38
+ keepPressedOnLongPress?: boolean | undefined;
39
+ pressInAnimationDuration?: number | undefined;
40
+ pressOutAnimationDuration?: number | undefined;
41
+ /**
42
+ * Only allow the static style prop and not the functional one.
43
+ */
44
+ style?: StyleProp<ViewStyle>;
45
+ } & Omit<PressHandlers, "onPress" | "onPressIn" | "onPressOut" | "onLongPress"> & Required<Pick<PressHandlers, "onPressIn">> & Partial<Pick<PressHandlers, "onPress" | "onPressOut" | "onLongPress">> & import("react").RefAttributes<View> & {
46
+ className?: string | undefined;
47
+ tw?: string | undefined;
48
+ baseClassName?: string | undefined;
49
+ baseTw?: string | undefined;
50
+ }, "ref"> | Omit<Omit<PressableProps, "style" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress"> & {
51
+ activeOpacity?: number | undefined;
52
+ keepPressedOnLongPress?: boolean | undefined;
53
+ pressInAnimationDuration?: number | undefined;
54
+ pressOutAnimationDuration?: number | undefined;
55
+ /**
56
+ * Only allow the static style prop and not the functional one.
57
+ */
58
+ style?: StyleProp<ViewStyle>;
59
+ } & Omit<PressHandlers, "onPress" | "onPressIn" | "onPressOut" | "onLongPress"> & Required<Pick<PressHandlers, "onPressOut">> & Partial<Pick<PressHandlers, "onPress" | "onPressIn" | "onLongPress">> & import("react").RefAttributes<View> & {
60
+ className?: string | undefined;
61
+ tw?: string | undefined;
62
+ baseClassName?: string | undefined;
63
+ baseTw?: string | undefined;
64
+ }, "ref"> | Omit<Omit<PressableProps, "style" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress"> & {
17
65
  activeOpacity?: number | undefined;
18
66
  keepPressedOnLongPress?: boolean | undefined;
19
67
  pressInAnimationDuration?: number | undefined;
@@ -22,6 +70,11 @@ declare const _default: import("react").ForwardRefExoticComponent<Omit<import("n
22
70
  * Only allow the static style prop and not the functional one.
23
71
  */
24
72
  style?: StyleProp<ViewStyle>;
25
- } & import("react").RefAttributes<View>>, "ref"> & import("react").RefAttributes<View>>;
73
+ } & Omit<PressHandlers, "onPress" | "onPressIn" | "onPressOut" | "onLongPress"> & Required<Pick<PressHandlers, "onLongPress">> & Partial<Pick<PressHandlers, "onPress" | "onPressIn" | "onPressOut">> & import("react").RefAttributes<View> & {
74
+ className?: string | undefined;
75
+ tw?: string | undefined;
76
+ baseClassName?: string | undefined;
77
+ baseTw?: string | undefined;
78
+ }, "ref">) & import("react").RefAttributes<View>>;
26
79
  export default _default;
27
80
  //# sourceMappingURL=PressableOpacity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PressableOpacity.d.ts","sourceRoot":"","sources":["../../../../src/components/PressableOpacity.tsx"],"names":[],"mappings":";AAEA,OAAO,EAGL,cAAc,EACd,SAAS,EACT,SAAS,EACT,IAAI,EACL,MAAM,cAAc,CAAC;AAItB;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,GAAG;IAClE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;;;;;;IAJA;;OAEG;;;AAgEL,wBAAwC"}
1
+ {"version":3,"file":"PressableOpacity.d.ts","sourceRoot":"","sources":["../../../../src/components/PressableOpacity.tsx"],"names":[],"mappings":";AAEA,OAAO,EAGL,cAAc,EACd,SAAS,EACT,SAAS,EACT,IAAI,EACL,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D;;;GAGG;AACH,KAAK,aAAa,GAAG,IAAI,CACvB,cAAc,EACd,SAAS,GAAG,aAAa,GAAG,WAAW,GAAG,YAAY,CACvD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,IAAI,CACtC,cAAc,EACd,OAAO,GAAG,MAAM,aAAa,CAC9B,GAAG;IACF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,GAAG,iBAAiB,CAAC,aAAa,CAAC,CAAC;;;;;;IAJnC;;OAEG;;;;;;;;;;;;IAFH;;OAEG;;;;;;;;;;;;IAFH;;OAEG;;;;;;;;;;;;IAFH;;OAEG;;;;;;;;AAgEL,wBAAwC"}
@@ -5,7 +5,6 @@ interface UseBaseJobRunPollingOptions<TResult = unknown, TErrorType extends stri
5
5
  onFailed?: (jobRun?: FailedJobRun<TErrorType>) => void;
6
6
  onTimeout?: () => void;
7
7
  pollingIntervalMs: number;
8
- timeoutMs: number;
9
8
  }
10
9
  interface UseBaseJobRunPollingReturn<TResult = unknown, TErrorType extends string = string> {
11
10
  jobRunResponse: JobRun<TResult, TErrorType> | null;
@@ -13,6 +12,6 @@ interface UseBaseJobRunPollingReturn<TResult = unknown, TErrorType extends strin
13
12
  startPolling: (jobRunId: number) => void;
14
13
  stopPolling: () => void;
15
14
  }
16
- export declare function useBaseJobRunPolling<TResult = unknown, TErrorType extends string = string>({ fetchJobRun, onCompleted, onFailed, onTimeout, pollingIntervalMs, timeoutMs, }: UseBaseJobRunPollingOptions<TResult, TErrorType>): UseBaseJobRunPollingReturn<TResult, TErrorType>;
15
+ export declare function useBaseJobRunPolling<TResult = unknown, TErrorType extends string = string>({ fetchJobRun, onCompleted, onFailed, onTimeout, pollingIntervalMs, }: UseBaseJobRunPollingOptions<TResult, TErrorType>): UseBaseJobRunPollingReturn<TResult, TErrorType>;
17
16
  export type { UseBaseJobRunPollingOptions, UseBaseJobRunPollingReturn };
18
17
  //# sourceMappingURL=useBaseJobRunPolling.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useBaseJobRunPolling.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useBaseJobRunPolling.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,eAAe,EAAE,YAAY,EAAE,MAAM,EAAE,cAAc,EACtD,MAAM,eAAe,CAAC;AAGvB,UAAU,2BAA2B,CAAC,OAAO,GAAG,OAAO,EAAE,UAAU,SAAS,MAAM,GAAG,MAAM;IACzF,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,K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W,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC;IAChF,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IACzD,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IACvD,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,UAAU,0BAA0B,CAAC,OAAO,GAAG,OAAO,EAAE,UAAU,SAAS,MAAM,GAAG,MAAM;IACxF,cAAc,EAAE,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAI,CAAC;IACnD,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,wBAAgB,oBAAoB,CAAC,OAAO,GAAG,OAAO,EAAE,UAAU,SAAS,MAAM,GAAG,MAAM,EAAE,EAC1F,WAAW,EACX,WAAW,EACX,QAAQ,EACR,SAAS,EACT,iBAAiB,GAClB,EAAE,2BAA2B,CAAC,OAAO,EAAE,UAAU,CAAC,GACjD,0BAA0B,CAAC,OAAO,EAAE,UAAU,CAAC,CA0DhD;AAED,YAAY,EAAE,2BAA2B,EAAE,0BAA0B,EAAE,CAAC"}
@@ -11,5 +11,6 @@ export * from './api/types';
11
11
  export * from './api/jobRun';
12
12
  export type { HeroIcon, HeroIconProps } from './types/heroicons';
13
13
  export type { Icon, IconColor, IconProps } from './types/icons';
14
+ export type { RequireAtLeastOne } from './types/requireAtLeastOne';
14
15
  export * from './components/icons/untitledui/line';
15
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index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M,mBAAmB,CAAC;AACjE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAChE,YAAY,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,cAAc,oCAAoC,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Requires at least one of the keys `K` on `T` to be present (and non-nullable),
3
+ * while keeping the rest optional. Useful for props where several fields are
4
+ * individually optional but the object is meaningless if none are supplied.
5
+ *
6
+ * @example
7
+ * type Handlers = { onPress?: () => void; onLongPress?: () => void };
8
+ * type Props = RequireAtLeastOne<Handlers>;
9
+ * // { onPress: () => void; onLongPress?: () => void }
10
+ * // | { onLongPress: () => void; onPress?: () => void }
11
+ */
12
+ export type RequireAtLeastOne<T, K extends keyof T = keyof T> = Omit<T, K> & {
13
+ [P in K]-?: Required<Pick<T, P>> & Partial<Pick<T, Exclude<K, P>>>;
14
+ }[K];
15
+ //# sourceMappingURL=requireAtLeastOne.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"requireAtLeastOne.d.ts","sourceRoot":"","sources":["../../../../src/types/requireAtLeastOne.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,MAAM,iBAAiB,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,GAAG,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;KAC1E,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;CACnE,CAAC,CAAC,CAAC,CAAC"}
@@ -31,7 +31,7 @@ interface FailedJobRun<TErrorType extends string = string> extends BaseJobRun {
31
31
  running: false;
32
32
  failed: true;
33
33
  result: null;
34
- errorType: TErrorType | null;
34
+ errorType: TErrorType | 'timeout_error' | null;
35
35
  errorMessage: string | null;
36
36
  errorDetail: string | null;
37
37
  }
@@ -1 +1 @@
1
- {"version":3,"file":"jobRun.d.ts","sourceRoot":"","sources":["../../../../src/api/jobRun.ts"],"names":[],"mappings":"AAAA,UAAU,UAAU;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,aAAc,SAAQ,UAAU;IACxC,MAAM,EAAE,SAAS,CAAC;IAClB,SAAS,EAAE,KAAK,CAAC;IACjB,OAAO,EAAE,IAAI,CAAC;IACd,MAAM,EAAE,KAAK,CAAC;IACd,MAAM,EAAE,IAAI,CAAC;IACb,SAAS,EAAE,IAAI,CAAC;IAChB,YAAY,EAAE,IAAI,CAAC;IACnB,WAAW,EAAE,IAAI,CAAC;CACnB;AAED,UAAU,eAAe,CAAC,OAAO,GAAG,OAAO,CAAE,SAAQ,UAAU;IAC7D,MAAM,EAAE,WAAW,CAAC;IACpB,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,EAAE,KAAK,CAAC;IACf,MAAM,EAAE,KAAK,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,YAAY,EAAE,IAAI,CAAC;IACnB,WAAW,EAAE,IAAI,CAAC;CACnB;AAED,UAAU,YAAY,CAAC,UAAU,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,UAAU;IAC3E,MAAM,EAAE,QAAQ,CAAC;IACjB,SAAS,EAAE,KAAK,CAAC;IACjB,OAAO,EAAE,KAAK,CAAC;IACf,MAAM,EAAE,IAAI,CAAC;IACb,MAAM,EAAE,IAAI,CAAC;IACb,SAAS,EAAE,UAAU,GAAG,IAAI,CAAC;IAC7B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,WAAW,E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import("react-native").PressableProps, "style"> & {
3
- activeOpacity?: number | undefined;
4
- keepPressedOnLongPress?: boolean | undefined;
5
- pressInAnimationDuration?: number | undefined;
6
- pressOutAnimationDuration?: number | undefined;
7
- style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
8
- } & {
9
- className?: string | undefined;
10
- tw?: string | undefined;
11
- baseClassName?: string | undefined;
12
- baseTw?: string | undefined;
13
- } & import("react").RefAttributes<unknown>>;
2
+ import { PressableOpacityProps } from './PressableOpacity';
3
+ declare const _default: import("react").ForwardRefExoticComponent<import("nativewind").StyledProps<PressableOpacityProps> & import("react").RefAttributes<unknown>>;
14
4
  export default _default;
15
5
  //# sourceMappingURL=BackButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BackButton.d.ts","sourceRoot":"","sources":["../../../../src/components/BackButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AA4BA,wBAAkC"}
1
+ {"version":3,"file":"BackButton.d.ts","sourceRoot":"","sources":["../../../../src/components/BackButton.tsx"],"names":[],"mappings":";AAKA,OAAyB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;;AAuB7E,wBAAkC"}
@@ -1,12 +1,297 @@
1
1
  import React from 'react';
2
+ import { GestureResponderEvent } from 'react-native';
2
3
  import { Icon } from '../types/icons';
3
- declare const _default: React.ForwardRefExoticComponent<(Omit<Omit<import("nativewind").StyledProps<Omit<import("react-native").PressableProps, "style"> & {
4
+ declare const _default: React.ForwardRefExoticComponent<(Omit<Omit<Omit<import("react-native").PressableProps, "style" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress"> & {
4
5
  activeOpacity?: number | undefined;
5
6
  keepPressedOnLongPress?: boolean | undefined;
6
7
  pressInAnimationDuration?: number | undefined;
7
8
  pressOutAnimationDuration?: number | undefined;
8
9
  style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
9
- } & React.RefAttributes<import("react-native").View>>, "ref"> & React.RefAttributes<import("react-native").View> & {
10
+ } & Omit<{
11
+ onPress?: ((event: GestureResponderEvent) => void) | null | undefined;
12
+ onPressIn?: ((event: GestureResponderEvent) => void) | null | undefined;
13
+ onPressOut?: ((event: GestureResponderEvent) => void) | null | undefined;
14
+ onLongPress?: ((event: GestureResponderEvent) => void) | null | undefined;
15
+ }, "onPress" | "onPressIn" | "onPressOut" | "onLongPress"> & Required<Pick<{
16
+ onPress?: ((event: GestureResponderEvent) => void) | null | undefined;
17
+ onPressIn?: ((event: GestureResponderEvent) => void) | null | undefined;
18
+ onPressOut?: ((event: GestureResponderEvent) => void) | null | undefined;
19
+ onLongPress?: ((event: GestureResponderEvent) => void) | null | undefined;
20
+ }, "onPress">> & Partial<Pick<{
21
+ onPress?: ((event: GestureResponderEvent) => void) | null | undefined;
22
+ onPressIn?: ((event: GestureResponderEvent) => void) | null | undefined;
23
+ onPressOut?: ((event: GestureResponderEvent) => void) | null | undefined;
24
+ onLongPress?: ((event: GestureResponderEvent) => void) | null | undefined;
25
+ }, "onPressIn" | "onPressOut" | "onLongPress">> & React.RefAttributes<import("react-native").View> & {
26
+ className?: string | undefined;
27
+ tw?: string | undefined;
28
+ baseClassName?: string | undefined;
29
+ baseTw?: string | undefined;
30
+ }, "ref"> & React.RefAttributes<import("react-native").View> & {
31
+ variant?: "primary" | "secondary" | "tertiary" | "link-color" | "link-gray" | "link-on-brand" | undefined;
32
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
33
+ text?: string | undefined;
34
+ loading?: boolean | undefined;
35
+ disabled?: boolean | undefined;
36
+ destructive?: boolean | undefined;
37
+ leftIcon?: Icon | null | undefined;
38
+ rightIcon?: Icon | null | undefined;
39
+ debounceSecs?: number | undefined;
40
+ } & {
41
+ countdownSecs: number;
42
+ popOnCountdownEnd?: boolean | undefined;
43
+ } & {
44
+ className?: string | undefined;
45
+ tw?: string | undefined;
46
+ baseClassName?: string | undefined;
47
+ baseTw?: string | undefined;
48
+ }, "ref"> | Omit<Omit<Omit<import("react-native").PressableProps, "style" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress"> & {
49
+ activeOpacity?: number | undefined;
50
+ keepPressedOnLongPress?: boolean | undefined;
51
+ pressInAnimationDuration?: number | undefined;
52
+ pressOutAnimationDuration?: number | undefined;
53
+ style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
54
+ } & Omit<{
55
+ onPress?: ((event: GestureResponderEvent) => void) | null | undefined;
56
+ onPressIn?: ((event: GestureResponderEvent) => void) | null | undefined;
57
+ onPressOut?: ((event: GestureResponderEvent) => void) | null | undefined;
58
+ onLongPress?: ((event: GestureResponderEvent) => void) | null | undefined;
59
+ }, "onPress" | "onPressIn" | "onPressOut" | "onLongPress"> & Required<Pick<{
60
+ onPress?: ((event: GestureResponderEvent) => void) | null | undefined;
61
+ onPressIn?: ((event: GestureResponderEvent) => void) | null | undefined;
62
+ onPressOut?: ((event: GestureResponderEvent) => void) | null | undefined;
63
+ onLongPress?: ((event: GestureResponderEvent) => void) | null | undefined;
64
+ }, "onPress">> & Partial<Pick<{
65
+ onPress?: ((event: GestureResponderEvent) => void) | null | undefined;
66
+ onPressIn?: ((event: GestureResponderEvent) => void) | null | undefined;
67
+ onPressOut?: ((event: GestureResponderEvent) => void) | null | undefined;
68
+ onLongPress?: ((event: GestureResponderEvent) => void) | null | undefined;
69
+ }, "onPressIn" | "onPressOut" | "onLongPress">> & React.RefAttributes<import("react-native").View> & {
70
+ className?: string | undefined;
71
+ tw?: string | undefined;
72
+ baseClassName?: string | undefined;
73
+ baseTw?: string | undefined;
74
+ }, "ref"> & React.RefAttributes<import("react-native").View> & {
75
+ variant?: "primary" | "secondary" | "tertiary" | "link-color" | "link-gray" | "link-on-brand" | undefined;
76
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
77
+ text?: string | undefined;
78
+ loading?: boolean | undefined;
79
+ disabled?: boolean | undefined;
80
+ destructive?: boolean | undefined;
81
+ leftIcon?: Icon | null | undefined;
82
+ rightIcon?: Icon | null | undefined;
83
+ debounceSecs?: number | undefined;
84
+ } & {
85
+ countdownSecs?: undefined;
86
+ popOnCountdownEnd?: undefined;
87
+ } & {
88
+ className?: string | undefined;
89
+ tw?: string | undefined;
90
+ baseClassName?: string | undefined;
91
+ baseTw?: string | undefined;
92
+ }, "ref"> | Omit<Omit<Omit<import("react-native").PressableProps, "style" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress"> & {
93
+ activeOpacity?: number | undefined;
94
+ keepPressedOnLongPress?: boolean | undefined;
95
+ pressInAnimationDuration?: number | undefined;
96
+ pressOutAnimationDuration?: number | undefined;
97
+ style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
98
+ } & Omit<{
99
+ onPress?: ((event: GestureResponderEvent) => void) | null | undefined;
100
+ onPressIn?: ((event: GestureResponderEvent) => void) | null | undefined;
101
+ onPressOut?: ((event: GestureResponderEvent) => void) | null | undefined;
102
+ onLongPress?: ((event: GestureResponderEvent) => void) | null | undefined;
103
+ }, "onPress" | "onPressIn" | "onPressOut" | "onLongPress"> & Required<Pick<{
104
+ onPress?: ((event: GestureResponderEvent) => void) | null | undefined;
105
+ onPressIn?: ((event: GestureResponderEvent) => void) | null | undefined;
106
+ onPressOut?: ((event: GestureResponderEvent) => void) | null | undefined;
107
+ onLongPress?: ((event: GestureResponderEvent) => void) | null | undefined;
108
+ }, "onPressIn">> & Partial<Pick<{
109
+ onPress?: ((event: GestureResponderEvent) => void) | null | undefined;
110
+ onPressIn?: ((event: GestureResponderEvent) => void) | null | undefined;
111
+ onPressOut?: ((event: GestureResponderEvent) => void) | null | undefined;
112
+ onLongPress?: ((event: GestureResponderEvent) => void) | null | undefined;
113
+ }, "onPress" | "onPressOut" | "onLongPress">> & React.RefAttributes<import("react-native").View> & {
114
+ className?: string | undefined;
115
+ tw?: string | undefined;
116
+ baseClassName?: string | undefined;
117
+ baseTw?: string | undefined;
118
+ }, "ref"> & React.RefAttributes<import("react-native").View> & {
119
+ variant?: "primary" | "secondary" | "tertiary" | "link-color" | "link-gray" | "link-on-brand" | undefined;
120
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
121
+ text?: string | undefined;
122
+ loading?: boolean | undefined;
123
+ disabled?: boolean | undefined;
124
+ destructive?: boolean | undefined;
125
+ leftIcon?: Icon | null | undefined;
126
+ rightIcon?: Icon | null | undefined;
127
+ debounceSecs?: number | undefined;
128
+ } & {
129
+ countdownSecs: number;
130
+ popOnCountdownEnd?: boolean | undefined;
131
+ } & {
132
+ className?: string | undefined;
133
+ tw?: string | undefined;
134
+ baseClassName?: string | undefined;
135
+ baseTw?: string | undefined;
136
+ }, "ref"> | Omit<Omit<Omit<import("react-native").PressableProps, "style" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress"> & {
137
+ activeOpacity?: number | undefined;
138
+ keepPressedOnLongPress?: boolean | undefined;
139
+ pressInAnimationDuration?: number | undefined;
140
+ pressOutAnimationDuration?: number | undefined;
141
+ style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
142
+ } & Omit<{
143
+ onPress?: ((event: GestureResponderEvent) => void) | null | undefined;
144
+ onPressIn?: ((event: GestureResponderEvent) => void) | null | undefined;
145
+ onPressOut?: ((event: GestureResponderEvent) => void) | null | undefined;
146
+ onLongPress?: ((event: GestureResponderEvent) => void) | null | undefined;
147
+ }, "onPress" | "onPressIn" | "onPressOut" | "onLongPress"> & Required<Pick<{
148
+ onPress?: ((event: GestureResponderEvent) => void) | null | undefined;
149
+ onPressIn?: ((event: GestureResponderEvent) => void) | null | undefined;
150
+ onPressOut?: ((event: GestureResponderEvent) => void) | null | undefined;
151
+ onLongPress?: ((event: GestureResponderEvent) => void) | null | undefined;
152
+ }, "onPressIn">> & Partial<Pick<{
153
+ onPress?: ((event: GestureResponderEvent) => void) | null | undefined;
154
+ onPressIn?: ((event: GestureResponderEvent) => void) | null | undefined;
155
+ onPressOut?: ((event: GestureResponderEvent) => void) | null | undefined;
156
+ onLongPress?: ((event: GestureResponderEvent) => void) | null | undefined;
157
+ }, "onPress" | "onPressOut" | "onLongPress">> & React.RefAttributes<import("react-native").View> & {
158
+ className?: string | undefined;
159
+ tw?: string | undefined;
160
+ baseClassName?: string | undefined;
161
+ baseTw?: string | undefined;
162
+ }, "ref"> & React.RefAttributes<import("react-native").View> & {
163
+ variant?: "primary" | "secondary" | "tertiary" | "link-color" | "link-gray" | "link-on-brand" | undefined;
164
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
165
+ text?: string | undefined;
166
+ loading?: boolean | undefined;
167
+ disabled?: boolean | undefined;
168
+ destructive?: boolean | undefined;
169
+ leftIcon?: Icon | null | undefined;
170
+ rightIcon?: Icon | null | undefined;
171
+ debounceSecs?: number | undefined;
172
+ } & {
173
+ countdownSecs?: undefined;
174
+ popOnCountdownEnd?: undefined;
175
+ } & {
176
+ className?: string | undefined;
177
+ tw?: string | undefined;
178
+ baseClassName?: string | undefined;
179
+ baseTw?: string | undefined;
180
+ }, "ref"> | Omit<Omit<Omit<import("react-native").PressableProps, "style" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress"> & {
181
+ activeOpacity?: number | undefined;
182
+ keepPressedOnLongPress?: boolean | undefined;
183
+ pressInAnimationDuration?: number | undefined;
184
+ pressOutAnimationDuration?: number | undefined;
185
+ style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
186
+ } & Omit<{
187
+ onPress?: ((event: GestureResponderEvent) => void) | null | undefined;
188
+ onPressIn?: ((event: GestureResponderEvent) => void) | null | undefined;
189
+ onPressOut?: ((event: GestureResponderEvent) => void) | null | undefined;
190
+ onLongPress?: ((event: GestureResponderEvent) => void) | null | undefined;
191
+ }, "onPress" | "onPressIn" | "onPressOut" | "onLongPress"> & Required<Pick<{
192
+ onPress?: ((event: GestureResponderEvent) => void) | null | undefined;
193
+ onPressIn?: ((event: GestureResponderEvent) => void) | null | undefined;
194
+ onPressOut?: ((event: GestureResponderEvent) => void) | null | undefined;
195
+ onLongPress?: ((event: GestureResponderEvent) => void) | null | undefined;
196
+ }, "onPressOut">> & Partial<Pick<{
197
+ onPress?: ((event: GestureResponderEvent) => void) | null | undefined;
198
+ onPressIn?: ((event: GestureResponderEvent) => void) | null | undefined;
199
+ onPressOut?: ((event: GestureResponderEvent) => void) | null | undefined;
200
+ onLongPress?: ((event: GestureResponderEvent) => void) | null | undefined;
201
+ }, "onPress" | "onPressIn" | "onLongPress">> & React.RefAttributes<import("react-native").View> & {
202
+ className?: string | undefined;
203
+ tw?: string | undefined;
204
+ baseClassName?: string | undefined;
205
+ baseTw?: string | undefined;
206
+ }, "ref"> & React.RefAttributes<import("react-native").View> & {
207
+ variant?: "primary" | "secondary" | "tertiary" | "link-color" | "link-gray" | "link-on-brand" | undefined;
208
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
209
+ text?: string | undefined;
210
+ loading?: boolean | undefined;
211
+ disabled?: boolean | undefined;
212
+ destructive?: boolean | undefined;
213
+ leftIcon?: Icon | null | undefined;
214
+ rightIcon?: Icon | null | undefined;
215
+ debounceSecs?: number | undefined;
216
+ } & {
217
+ countdownSecs: number;
218
+ popOnCountdownEnd?: boolean | undefined;
219
+ } & {
220
+ className?: string | undefined;
221
+ tw?: string | undefined;
222
+ baseClassName?: string | undefined;
223
+ baseTw?: string | undefined;
224
+ }, "ref"> | Omit<Omit<Omit<import("react-native").PressableProps, "style" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress"> & {
225
+ activeOpacity?: number | undefined;
226
+ keepPressedOnLongPress?: boolean | undefined;
227
+ pressInAnimationDuration?: number | undefined;
228
+ pressOutAnimationDuration?: number | undefined;
229
+ style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
230
+ } & Omit<{
231
+ onPress?: ((event: GestureResponderEvent) => void) | null | undefined;
232
+ onPressIn?: ((event: GestureResponderEvent) => void) | null | undefined;
233
+ onPressOut?: ((event: GestureResponderEvent) => void) | null | undefined;
234
+ onLongPress?: ((event: GestureResponderEvent) => void) | null | undefined;
235
+ }, "onPress" | "onPressIn" | "onPressOut" | "onLongPress"> & Required<Pick<{
236
+ onPress?: ((event: GestureResponderEvent) => void) | null | undefined;
237
+ onPressIn?: ((event: GestureResponderEvent) => void) | null | undefined;
238
+ onPressOut?: ((event: GestureResponderEvent) => void) | null | undefined;
239
+ onLongPress?: ((event: GestureResponderEvent) => void) | null | undefined;
240
+ }, "onPressOut">> & Partial<Pick<{
241
+ onPress?: ((event: GestureResponderEvent) => void) | null | undefined;
242
+ onPressIn?: ((event: GestureResponderEvent) => void) | null | undefined;
243
+ onPressOut?: ((event: GestureResponderEvent) => void) | null | undefined;
244
+ onLongPress?: ((event: GestureResponderEvent) => void) | null | undefined;
245
+ }, "onPress" | "onPressIn" | "onLongPress">> & React.RefAttributes<import("react-native").View> & {
246
+ className?: string | undefined;
247
+ tw?: string | undefined;
248
+ baseClassName?: string | undefined;
249
+ baseTw?: string | undefined;
250
+ }, "ref"> & React.RefAttributes<import("react-native").View> & {
251
+ variant?: "primary" | "secondary" | "tertiary" | "link-color" | "link-gray" | "link-on-brand" | undefined;
252
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
253
+ text?: string | undefined;
254
+ loading?: boolean | undefined;
255
+ disabled?: boolean | undefined;
256
+ destructive?: boolean | undefined;
257
+ leftIcon?: Icon | null | undefined;
258
+ rightIcon?: Icon | null | undefined;
259
+ debounceSecs?: number | undefined;
260
+ } & {
261
+ countdownSecs?: undefined;
262
+ popOnCountdownEnd?: undefined;
263
+ } & {
264
+ className?: string | undefined;
265
+ tw?: string | undefined;
266
+ baseClassName?: string | undefined;
267
+ baseTw?: string | undefined;
268
+ }, "ref"> | Omit<Omit<Omit<import("react-native").PressableProps, "style" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress"> & {
269
+ activeOpacity?: number | undefined;
270
+ keepPressedOnLongPress?: boolean | undefined;
271
+ pressInAnimationDuration?: number | undefined;
272
+ pressOutAnimationDuration?: number | undefined;
273
+ style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
274
+ } & Omit<{
275
+ onPress?: ((event: GestureResponderEvent) => void) | null | undefined;
276
+ onPressIn?: ((event: GestureResponderEvent) => void) | null | undefined;
277
+ onPressOut?: ((event: GestureResponderEvent) => void) | null | undefined;
278
+ onLongPress?: ((event: GestureResponderEvent) => void) | null | undefined;
279
+ }, "onPress" | "onPressIn" | "onPressOut" | "onLongPress"> & Required<Pick<{
280
+ onPress?: ((event: GestureResponderEvent) => void) | null | undefined;
281
+ onPressIn?: ((event: GestureResponderEvent) => void) | null | undefined;
282
+ onPressOut?: ((event: GestureResponderEvent) => void) | null | undefined;
283
+ onLongPress?: ((event: GestureResponderEvent) => void) | null | undefined;
284
+ }, "onLongPress">> & Partial<Pick<{
285
+ onPress?: ((event: GestureResponderEvent) => void) | null | undefined;
286
+ onPressIn?: ((event: GestureResponderEvent) => void) | null | undefined;
287
+ onPressOut?: ((event: GestureResponderEvent) => void) | null | undefined;
288
+ onLongPress?: ((event: GestureResponderEvent) => void) | null | undefined;
289
+ }, "onPress" | "onPressIn" | "onPressOut">> & React.RefAttributes<import("react-native").View> & {
290
+ className?: string | undefined;
291
+ tw?: string | undefined;
292
+ baseClassName?: string | undefined;
293
+ baseTw?: string | undefined;
294
+ }, "ref"> & React.RefAttributes<import("react-native").View> & {
10
295
  variant?: "primary" | "secondary" | "tertiary" | "link-color" | "link-gray" | "link-on-brand" | undefined;
11
296
  size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
12
297
  text?: string | undefined;
@@ -24,13 +309,33 @@ declare const _default: React.ForwardRefExoticComponent<(Omit<Omit<import("nativ
24
309
  tw?: string | undefined;
25
310
  baseClassName?: string | undefined;
26
311
  baseTw?: string | undefined;
27
- }, "ref"> | Omit<Omit<import("nativewind").StyledProps<Omit<import("react-native").PressableProps, "style"> & {
312
+ }, "ref"> | Omit<Omit<Omit<import("react-native").PressableProps, "style" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress"> & {
28
313
  activeOpacity?: number | undefined;
29
314
  keepPressedOnLongPress?: boolean | undefined;
30
315
  pressInAnimationDuration?: number | undefined;
31
316
  pressOutAnimationDuration?: number | undefined;
32
317
  style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
33
- } & React.RefAttributes<import("react-native").View>>, "ref"> & React.RefAttributes<import("react-native").View> & {
318
+ } & Omit<{
319
+ onPress?: ((event: GestureResponderEvent) => void) | null | undefined;
320
+ onPressIn?: ((event: GestureResponderEvent) => void) | null | undefined;
321
+ onPressOut?: ((event: GestureResponderEvent) => void) | null | undefined;
322
+ onLongPress?: ((event: GestureResponderEvent) => void) | null | undefined;
323
+ }, "onPress" | "onPressIn" | "onPressOut" | "onLongPress"> & Required<Pick<{
324
+ onPress?: ((event: GestureResponderEvent) => void) | null | undefined;
325
+ onPressIn?: ((event: GestureResponderEvent) => void) | null | undefined;
326
+ onPressOut?: ((event: GestureResponderEvent) => void) | null | undefined;
327
+ onLongPress?: ((event: GestureResponderEvent) => void) | null | undefined;
328
+ }, "onLongPress">> & Partial<Pick<{
329
+ onPress?: ((event: GestureResponderEvent) => void) | null | undefined;
330
+ onPressIn?: ((event: GestureResponderEvent) => void) | null | undefined;
331
+ onPressOut?: ((event: GestureResponderEvent) => void) | null | undefined;
332
+ onLongPress?: ((event: GestureResponderEvent) => void) | null | undefined;
333
+ }, "onPress" | "onPressIn" | "onPressOut">> & React.RefAttributes<import("react-native").View> & {
334
+ className?: string | undefined;
335
+ tw?: string | undefined;
336
+ baseClassName?: string | undefined;
337
+ baseTw?: string | undefined;
338
+ }, "ref"> & React.RefAttributes<import("react-native").View> & {
34
339
  variant?: "primary" | "secondary" | "tertiary" | "link-color" | "link-gray" | "link-on-brand" | undefined;
35
340
  size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
36
341
  text?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"BaseButton.d.ts","sourceRoot":"","sources":["../../../../src/components/BaseButton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8ZtC,wBAAkC"}
1
+ {"version":3,"file":"BaseButton.d.ts","sourceRoot":"","sources":["../../../../src/components/BaseButton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAY,qBAAqB,EAAqB,MAAM,cAAc,CAAC;AAOlF,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8ZtC,wBAAkC"}
@@ -1,12 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  import { PressableOpacityProps } from './PressableOpacity';
3
3
  import { Icon } from '../types/icons';
4
- interface MenuBottomSheetItem extends PressableOpacityProps {
4
+ type MenuBottomSheetItem = PressableOpacityProps & {
5
5
  icon: Icon;
6
6
  label: string;
7
7
  showDot?: boolean;
8
8
  active?: boolean;
9
- }
9
+ };
10
10
  interface MenuBottomSheetModalProps {
11
11
  visible: boolean;
12
12
  onClose: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"MenuBottomSheetModal.d.ts","sourceRoot":"","sources":["../../../../src/components/MenuBottomSheetModal.tsx"],"names":[],"mappings":";AAQA,OAAyB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAEtC,UAAU,mBAAoB,SAAQ,qBAAqB;IACzD,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,UAAU,yBAAyB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,mBAAmB,EAAE,CAAC;CAC9B;;;;;;;AA0DD,wBAA4C;AAC5C,YAAY,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,CAAC"}
1
+ {"version":3,"file":"MenuBottomSheetModal.d.ts","sourceRoot":"","sources":["../../../../src/components/MenuBottomSheetModal.tsx"],"names":[],"mappings":";AAQA,OAAyB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAEtC,KAAK,mBAAmB,GAAG,qBAAqB,GAAG;IACjD,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,UAAU,yBAAyB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,mBAAmB,EAAE,CAAC;CAC9B;;;;;;;AA0DD,wBAA4C;AAC5C,YAAY,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,CAAC"}