@ainias42/react-bootstrap-mobile 1.0.13 → 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.
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
- import type { ForwardedRef } from 'react';
3
2
  import type { IconSource } from '../Icon/BaseIcon';
4
3
  import type { RbmComponentProps } from '../RbmComponentProps';
4
+ import type { Ref } from 'react';
5
5
  export type ActionSheetAction<ActionData> = {
6
6
  name: string;
7
7
  icon?: IconSource;
@@ -18,6 +18,6 @@ export type ActionSheetProps = RbmComponentProps<{
18
18
  actions: ActionSheetAction<any>[];
19
19
  cancelText?: string;
20
20
  onClose?: () => void;
21
- ref?: ForwardedRef<ActionSheetHandle>;
21
+ ref?: Ref<ActionSheetHandle>;
22
22
  }>;
23
23
  export declare const ActionSheet: ({ title, actions, cancelText, className, onClose, style, ref, }: ActionSheetProps) => React.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { ForwardedRef, MouseEvent, PointerEvent, MouseEvent as ReactMouseEvent } from 'react';
2
+ import type { MouseEvent, PointerEvent, MouseEvent as ReactMouseEvent, Ref } from 'react';
3
3
  import type { OptionalListener } from '../Hooks/useListener';
4
4
  import type { RbmComponentProps } from '../RbmComponentProps';
5
5
  type OnClickListener<Data> = OptionalListener<'onClick', Data>;
@@ -20,7 +20,7 @@ export type ClickableProps<OnClickData, OnMouseDownData, OnMouseMoveData, OnMous
20
20
  tabIndex?: number;
21
21
  draggable?: boolean;
22
22
  title?: string;
23
- ref?: ForwardedRef<HrefType extends string ? HTMLAnchorElement : HTMLSpanElement>;
23
+ ref?: Ref<HrefType extends string ? HTMLAnchorElement : HTMLSpanElement>;
24
24
  hiddenLink?: boolean;
25
25
  } & OnClickListener<OnClickData> & OnPointerDownListener<OnMouseDownData> & OnPointerMoveListener<OnMouseMoveData> & OnPointerUpListener<OnMouseUpData> & OnDropListener<OnDropData> & OnDragStartListener<OnDragStartData> & OnDragOverListener<OnDragOverData> & OptionalListener<'onClickCapture', OnClickCaptureData> & OptionalListener<'onMouseEnter', OnMouseEnterData> & OptionalListener<'onMouseLeave', OnMouseLeaveData, MouseEvent | ReactMouseEvent> & OptionalListener<'onDoubleClick', OnDoubleClickData>>;
26
26
  export declare const Clickable: <OnClickData, OnPointerDownData, OnPointerMoveData, OnPointerUpData, OnClickCaptureData, OnDropData, OnDragStartData, OnDragOverData, OnMouseEnterData, OnMouseLeaveData, OnDoubleClickData, HrefType extends string | undefined>({ className, children, style, href, target, id, interactable, preventDefault, stopPropagation, useReactOnMouseLeave, tabIndex, draggable, title, ref, hiddenLink, ...clickData }: ClickableProps<OnClickData, OnPointerDownData, OnPointerMoveData, OnPointerUpData, OnClickCaptureData, OnDropData, OnDragStartData, OnDragOverData, OnMouseEnterData, OnMouseLeaveData, OnDoubleClickData, HrefType>) => React.JSX.Element;