@ainias42/react-bootstrap-mobile 1.0.14 → 1.0.15
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.
package/package.json
CHANGED
|
@@ -12,9 +12,9 @@ import { withMemo } from '../../helper/withMemo';
|
|
|
12
12
|
import baseStyles from '../../scss/baseClasses.module.scss';
|
|
13
13
|
import classNames from 'classnames';
|
|
14
14
|
import styles from './actionSheet.module.scss';
|
|
15
|
-
import type { ForwardedRef } from 'react';
|
|
16
15
|
import type { IconSource } from '../Icon/BaseIcon';
|
|
17
16
|
import type { RbmComponentProps } from '../RbmComponentProps';
|
|
17
|
+
import type { Ref } from 'react';
|
|
18
18
|
|
|
19
19
|
export type ActionSheetAction<ActionData> = {
|
|
20
20
|
name: string;
|
|
@@ -34,7 +34,7 @@ export type ActionSheetProps = RbmComponentProps<{
|
|
|
34
34
|
actions: ActionSheetAction<any>[];
|
|
35
35
|
cancelText?: string;
|
|
36
36
|
onClose?: () => void;
|
|
37
|
-
ref?:
|
|
37
|
+
ref?: Ref<ActionSheetHandle>;
|
|
38
38
|
}>;
|
|
39
39
|
|
|
40
40
|
export const ActionSheet = withMemo(function ActionSheet({
|
|
@@ -5,7 +5,7 @@ import { useListener } from '../Hooks/useListener';
|
|
|
5
5
|
import { withMemo } from '../../helper/withMemo';
|
|
6
6
|
import classNames from 'classnames';
|
|
7
7
|
import styles from './clickable.module.scss';
|
|
8
|
-
import type { ForwardedRef, MouseEvent, PointerEvent, MouseEvent as ReactMouseEvent } from 'react';
|
|
8
|
+
import type { ForwardedRef, MouseEvent, PointerEvent, MouseEvent as ReactMouseEvent , Ref} from 'react';
|
|
9
9
|
import type { OptionalListener } from '../Hooks/useListener';
|
|
10
10
|
import type { RbmComponentProps } from '../RbmComponentProps';
|
|
11
11
|
|
|
@@ -42,7 +42,7 @@ export type ClickableProps<
|
|
|
42
42
|
tabIndex?: number;
|
|
43
43
|
draggable?: boolean;
|
|
44
44
|
title?: string;
|
|
45
|
-
ref?:
|
|
45
|
+
ref?: Ref<HrefType extends string ? HTMLAnchorElement : HTMLSpanElement>;
|
|
46
46
|
hiddenLink?: boolean;
|
|
47
47
|
} & OnClickListener<OnClickData> &
|
|
48
48
|
OnPointerDownListener<OnMouseDownData> &
|