@react-hive/honey-layout 1.3.0-beta → 2.3.1

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 (31) hide show
  1. package/dist/components/HoneyBox.d.ts +4 -830
  2. package/dist/components/HoneyFlexBox.d.ts +5 -0
  3. package/dist/components/HoneyGrid/HoneyGrid.d.ts +40 -4
  4. package/dist/components/HoneyGrid/HoneyGrid.styled.d.ts +9 -1669
  5. package/dist/components/HoneyGrid/hooks/use-current-honey-grid.d.ts +2 -1
  6. package/dist/components/HoneyGridColumn/HoneyGridColumn.styled.d.ts +16 -1672
  7. package/dist/components/HoneyGridColumn/HoneyGridColumn.types.d.ts +1 -1
  8. package/dist/components/HoneyList/HoneyList.d.ts +12 -10
  9. package/dist/components/HoneyList/HoneyList.types.d.ts +31 -0
  10. package/dist/components/HoneyLoopingList/HoneyLoopingList.d.ts +7 -830
  11. package/dist/components/index.d.ts +1 -0
  12. package/dist/constants.d.ts +2 -2
  13. package/dist/helpers.d.ts +56 -35
  14. package/dist/hooks/use-honey-drag.d.ts +59 -20
  15. package/dist/hooks/use-honey-infinite-scroll.d.ts +1 -2
  16. package/dist/hooks/use-honey-media-query.d.ts +10 -4
  17. package/dist/hooks/use-honey-synthetic-scrollable-container.d.ts +1 -3
  18. package/dist/index.js +997 -933
  19. package/dist/providers/HoneyLayoutProvider.d.ts +69 -0
  20. package/dist/providers/HoneyLayoutThemeOverride.d.ts +15 -0
  21. package/dist/providers/index.d.ts +2 -1
  22. package/dist/types/component.types.d.ts +47 -0
  23. package/dist/types/css.types.d.ts +73 -0
  24. package/dist/types/data.types.d.ts +33 -0
  25. package/dist/types/index.d.ts +6 -0
  26. package/dist/types/state.types.d.ts +22 -0
  27. package/dist/{types.d.ts → types/types.d.ts} +68 -227
  28. package/dist/types/utility.types.d.ts +72 -0
  29. package/dist/utils.d.ts +73 -26
  30. package/package.json +19 -19
  31. package/dist/providers/HoneyThemeProvider.d.ts +0 -15
@@ -1,4 +1,5 @@
1
1
  export * from './HoneyBox';
2
+ export * from './HoneyFlexBox';
2
3
  export * from './HoneyGrid';
3
4
  export * from './HoneyGridColumn';
4
5
  export * from './HoneyList';
@@ -1,3 +1,3 @@
1
1
  import { HoneyCSSColorProperty, HoneyCSSDimensionProperty } from './types';
2
- export declare const CSS_DIMENSION_PROPERTIES: HoneyCSSDimensionProperty[];
3
- export declare const CSS_COLOR_PROPERTIES: HoneyCSSColorProperty[];
2
+ export declare const CSS_DIMENSION_PROPERTIES: readonly HoneyCSSDimensionProperty[];
3
+ export declare const CSS_COLOR_PROPERTIES: readonly HoneyCSSColorProperty[];
package/dist/helpers.d.ts CHANGED
@@ -1,63 +1,76 @@
1
1
  import { HTMLAttributes } from 'react';
2
- import { HoneyBreakpointName, HoneyCSSArrayValue, HoneyCSSDimensionShortHandValue, HoneyCSSDimensionUnit, HoneyCSSMultiValue, HoneyCSSMediaRule, HoneySpacings, HoneyThemedProps, HoneyColorKey, HoneyFontName, HoneyCSSColor, HoneyDimensionName, Nullable, HoneyCSSProperties, HoneyBreakpoints, HoneyScreenState } from './types';
2
+ import { ExecutionContext, StyleFunction, css } from 'styled-components';
3
+ import { Nullable, HoneyBreakpointName, HoneyCSSArrayValue, HoneyCSSDimensionShortHandValue, HoneyCSSDimensionUnit, HoneyCSSMultiValue, HoneyCSSMediaRule, HoneySpacings, HoneyColorKey, HoneyFontName, HoneyCSSColor, HoneyDimensionName, HoneyPrefixedCSSProperties, HoneyBreakpoints, HoneyScreenState, HoneyCSSDimensionValue } from './types';
3
4
  /**
4
5
  * Conditional type to determine the return type of the `resolveSpacing` function.
5
6
  *
6
- * @template MultiValue - Type of the spacing value, can be a single value or an array of values.
7
+ * @template MultiValue - Type of the spacing value can be a single value or an array of values.
7
8
  * @template Unit - CSS length unit, which can be null or a specific unit type.
8
- * @template T - Type of the numeric value.
9
9
  */
10
- type ResolveSpacingResult<MultiValue extends HoneyCSSMultiValue<T>, Unit extends Nullable<HoneyCSSDimensionUnit>, T extends number> = Unit extends null ? MultiValue extends HoneyCSSArrayValue<T> ? HoneyCSSArrayValue<T> : T : MultiValue extends HoneyCSSArrayValue<T> ? HoneyCSSDimensionShortHandValue<MultiValue, NonNullable<Unit>> : `${T}${Unit}`;
10
+ export type ResolveSpacingResult<MultiValue extends HoneyCSSMultiValue<number>, Unit extends Nullable<HoneyCSSDimensionUnit>> = Unit extends null ? MultiValue extends HoneyCSSArrayValue<number> ? HoneyCSSArrayValue<number> : number : MultiValue extends HoneyCSSArrayValue<number> ? HoneyCSSDimensionShortHandValue<MultiValue, NonNullable<Unit>> : `${number}${Unit}`;
11
11
  /**
12
- * Resolves the spacing value based on the provided `value`, `unit`, and `type`.
13
- *
14
- * @template MultiValue - Type of the spacing value, can be a single value or an array of values.
15
- * @template Unit - CSS length unit, which can be null or a specific unit type.
16
- * @template T - Type of the numeric value.
17
- *
18
- * @param value - The spacing factor to be applied, which can be a single number or an array of 2, 3, or 4 numbers.
19
- * @param unit - The CSS unit to be used for the calculated value, e.g., 'px', 'em'. Set `null` to apply no unit. Default: 'px'.
20
- * @param type - The type of spacing to be used from the theme, e.g., 'base', 'small', 'large'. Default: 'base'.
21
- *
22
- * @returns The resolved spacing value, either as a single number or a string of space-separated numbers, optionally with the specified unit.
12
+ * Resolves a spacing value or multiple spacing values based on the provided input, CSS unit, and spacing type.
13
+ * This function calculates the appropriate spacing values from a theme and formats them with the specified CSS unit.
14
+ *
15
+ * @template MultiValue - Represents the spacing value(s), which could be a single number or an array of numbers (e.g., [1, 2, 3, 4]).
16
+ * @template Unit - The CSS unit used for the resolved spacing value, e.g., 'px', 'em'. Defaults to 'px'.
17
+ *
18
+ * @param {MultiValue} value - The spacing factor(s) to be applied. It can be:
19
+ * - A single number representing a multiplier for the base spacing value.
20
+ * - An array of numbers representing multiple multipliers for base spacing values (e.g., for margins or padding).
21
+ * @param {Unit} [unit='px'] - The CSS unit to use for the calculated value. If `null` or `undefined`, no unit is applied.
22
+ * Defaults to 'px'.
23
+ * @param {keyof HoneySpacings} [type='base'] - The type of spacing to use from the theme. Determines which base spacing
24
+ * value to use for calculations (e.g., 'base', 'small', 'large'). Defaults to 'base'.
25
+ *
26
+ * @returns {(context: ExecutionContext) => ResolveSpacingResult<MultiValue, Unit>} - A function that takes `ExecutionContext`
27
+ * (containing the theme object) and returns the resolved spacing value(s). The result is either:
28
+ * - A single calculated value (e.g., '16px') if the input is a single number.
29
+ * - A string of space-separated values (e.g., '8px 16px 24px 32px') if the input is an array of numbers.
23
30
  */
24
- export declare const resolveSpacing: <MultiValue extends HoneyCSSMultiValue<T>, Unit extends Nullable<HoneyCSSDimensionUnit> = "px", T extends number = number>(value: MultiValue, unit?: Unit, type?: keyof HoneySpacings) => ({ theme }: HoneyThemedProps) => ResolveSpacingResult<MultiValue, Unit, T>;
31
+ export declare const resolveSpacing: <MultiValue extends HoneyCSSMultiValue<number>, Unit extends Nullable<HoneyCSSDimensionUnit> = "px">(value: MultiValue, unit?: Unit, type?: keyof HoneySpacings) => ((context: ExecutionContext) => ResolveSpacingResult<MultiValue, Unit>);
25
32
  /**
26
33
  * Resolves a color value based on the provided color key and optional alpha value.
27
34
  *
28
35
  * @param colorKey - The key representing the color to be resolved. This key is a string in the format 'colorType.colorName'.
29
- * @param alpha - Optional. The alpha transparency value between 0 (fully transparent) and 1 (fully opaque).
36
+ * @param alpha - Optional. The alpha transparency value between 0 (fully transparent) and 1 (fully opaque). Default to `undefined`.
30
37
  *
31
38
  * @returns The resolved color value from the theme, either in HEX format or in 8-character HEX with alpha format.
32
39
  *
33
40
  * @throws Will throw an error if the provided alpha value is not within the valid range (0 to 1).
34
41
  * @throws Will throw an error if the color format is invalid.
35
42
  */
36
- export declare const resolveColor: (colorKey: HoneyColorKey, alpha?: number) => ({ theme }: HoneyThemedProps) => HoneyCSSColor;
43
+ export declare const resolveColor: (colorKey: HoneyColorKey, alpha?: number) => ({ theme }: ExecutionContext) => HoneyCSSColor;
37
44
  /**
38
45
  * Resolves the font styles based on the provided font name from the theme.
39
46
  *
40
- * @param fontName - The name of the font to be resolved from the theme.
47
+ * @param {HoneyFontName} fontName - The name of the font to be resolved from the theme.
41
48
  *
42
- * @returns A function that takes the theme and returns the CSS for the specified font.
49
+ * @returns A style function that takes a theme object and returns the CSS styles for the specified font.
43
50
  */
44
- export declare const resolveFont: (fontName: HoneyFontName) => ({ theme }: HoneyThemedProps) => import('styled-components').FlattenSimpleInterpolation;
51
+ export declare const resolveFont: (fontName: HoneyFontName) => ({ theme }: ExecutionContext) => import('styled-components').RuleSet<object>;
45
52
  /**
46
53
  * Resolves a specific dimension value from the theme configuration.
47
54
  *
48
- * @param dimensionName - The name of the dimension to resolve.
55
+ * @param {HoneyDimensionName} dimensionName - The name of the dimension to resolve.
49
56
  *
50
- * @returns A function that takes the theme and returns the resolved dimension value from the theme.
57
+ * @returns A style function that takes the theme and returns the resolved dimension value from the theme.
51
58
  */
52
- export declare const resolveDimension: (dimensionName: HoneyDimensionName) => ({ theme }: HoneyThemedProps) => `${number}px` | `${number}cm` | `${number}mm` | `${number}in` | `${number}pt` | `${number}pc` | `${number}em` | `${number}rem` | `${number}%` | `${number}vh` | `${number}vw` | `${number}vmin` | `${number}vmax`;
59
+ export declare const resolveDimension: (dimensionName: HoneyDimensionName) => ({ theme }: ExecutionContext) => HoneyCSSDimensionValue;
53
60
  /**
54
- * Generates CSS styles based on the provided breakpoint and props.
55
- * Filters the props to include only those with breakpoints matching the specified breakpoint.
56
- * For each matching prop, it converts the property name to dash-case and retrieves the corresponding value.
61
+ * Generates CSS styles based on the provided breakpoint and properties.
62
+ * Filters the properties to include only those that match the specified breakpoint.
63
+ * Converts the property names from camelCase to dash-case and retrieves their values.
57
64
  *
58
- * @param {HoneyBreakpointName} breakpoint - The name of the breakpoint.
65
+ * @template Props - The type representing HTML attributes and Honey-prefixed CSS properties.
66
+ *
67
+ * @param {HoneyBreakpointName} breakpoint - The name of the breakpoint to filter properties by.
68
+ *
69
+ * @returns {(context: ExecutionContext & Props) => ReturnType<typeof css>} -
70
+ * A function that takes an execution context and properties, and returns a CSS block
71
+ * with styles generated for the specified breakpoint.
59
72
  */
60
- export declare const generateStyles: <Props extends HTMLAttributes<HTMLElement>>(breakpoint: HoneyBreakpointName) => ({ theme, ...props }: HoneyThemedProps<Props>) => import('styled-components').FlattenInterpolation<import('styled-components').ThemeProps<import('styled-components').DefaultTheme>>;
73
+ export declare const createStyles: <Props extends HTMLAttributes<HTMLElement> & HoneyPrefixedCSSProperties>(breakpoint: HoneyBreakpointName) => ((context: ExecutionContext & Props) => ReturnType<typeof css>);
61
74
  /**
62
75
  * Utility function that returns functions for generating media queries for the specified breakpoint.
63
76
  * The down function creates a media query for screen sizes smaller than the breakpoint,
@@ -66,16 +79,25 @@ export declare const generateStyles: <Props extends HTMLAttributes<HTMLElement>>
66
79
  * @param {HoneyBreakpointName} breakpoint - The name of the breakpoint.
67
80
  * @param {HoneyCSSMediaRule} [ruleOptions={}] - Additional options for the media rule.
68
81
  *
69
- * @returns Functions for generating media queries.
82
+ * @returns Styled functions for generating media queries.
70
83
  */
71
84
  export declare const bpMedia: (breakpoint: HoneyBreakpointName, ruleOptions?: Omit<HoneyCSSMediaRule, "width" | "minWidth" | "maxWidth">) => {
72
- down: ({ theme }: HoneyThemedProps) => string;
73
- up: ({ theme }: HoneyThemedProps) => string;
85
+ down: StyleFunction<object>;
86
+ up: StyleFunction<object>;
74
87
  };
75
88
  /**
76
- * Generates media query styles based on the provided breakpoint and props.
89
+ * Applies CSS styles wrapped in a media query for the specified breakpoint based on the provided properties.
90
+ * If no styles are found for the specified breakpoint or if the breakpoint configuration is missing,
91
+ * it returns `null`. Otherwise, it generates media query styles using the `createStyles` function.
92
+ *
93
+ * @template Props - The type representing HTML attributes and Honey-prefixed CSS properties.
94
+ *
95
+ * @param {HoneyBreakpointName} breakpoint - The name of the breakpoint to apply media query styles for.
96
+ *
97
+ * @returns {(context: ExecutionContext & Props) => Nullable<ReturnType<typeof css>>} - A function that takes context and properties
98
+ * and returns a CSS block wrapped in a media query if styles exist for the specified breakpoint; otherwise, returns `null`.
77
99
  */
78
- export declare const generateMediaStyles: <Props extends HoneyCSSProperties>(breakpoint: HoneyBreakpointName) => ({ theme, ...props }: HoneyThemedProps<Props>) => import('styled-components').FlattenInterpolation<import('styled-components').ThemedStyledProps<HTMLAttributes<HTMLElement>, import('styled-components').DefaultTheme>> | null;
100
+ export declare const applyBreakpointStyles: <Props extends HTMLAttributes<HTMLElement> & HoneyPrefixedCSSProperties>(breakpoint: HoneyBreakpointName) => ((context: ExecutionContext & Props) => Nullable<ReturnType<typeof css>>);
79
101
  /**
80
102
  * Resolves the current screen state based on the window's dimensions and the breakpoints provided in the theme.
81
103
  *
@@ -96,4 +118,3 @@ export declare const generateMediaStyles: <Props extends HoneyCSSProperties>(bre
96
118
  * - `isXl`: Whether the screen width is less than the 'xl' breakpoint.
97
119
  */
98
120
  export declare const resolveScreenState: (breakpoints: Partial<HoneyBreakpoints> | undefined) => HoneyScreenState;
99
- export {};
@@ -9,17 +9,27 @@ import { Nullable } from '../types';
9
9
  export type HoneyDragOnStartHandler<Element extends HTMLElement> = (draggableElement: Element) => void | boolean;
10
10
  /**
11
11
  * Context provided to the move handler, containing information about the drag's movement.
12
- *
13
- * Note:
14
- * - `deltaX` and `deltaY` represent the movement since the last frame.
15
- * - `distanceX` and `distanceY` represent the total movement from the starting position.
16
- * - `euclideanDistance` is the straight-line distance from the start position to the current position.
17
12
  */
18
13
  type HoneyDragMoveContext = {
14
+ /**
15
+ * The horizontal distance has moved since the last frame.
16
+ */
19
17
  deltaX: number;
18
+ /**
19
+ * The vertical distance has moved since the last frame.
20
+ */
20
21
  deltaY: number;
22
+ /**
23
+ * The total horizontal distance from the starting position to the current position.
24
+ */
21
25
  distanceX: number;
26
+ /**
27
+ * The total vertical distance from the starting position to the current position.
28
+ */
22
29
  distanceY: number;
30
+ /**
31
+ * The straight-line distance from the starting position to the current position.
32
+ */
23
33
  euclideanDistance: number;
24
34
  };
25
35
  /**
@@ -30,15 +40,23 @@ type HoneyDragMoveContext = {
30
40
  export type HoneyDragOnMoveHandler<Element extends HTMLElement> = (draggableElement: Element) => (context: HoneyDragMoveContext) => void | false;
31
41
  /**
32
42
  * Context provided to the end handler, containing information about the drag's end state.
33
- *
34
- * Note:
35
- * - `deltaX` and `deltaY` represent the total movement from the start position to the end position.
36
- * - `movingSpeedX` and `movingSpeedY` represent the speed of movement in the X and Y directions, respectively.
37
43
  */
38
44
  type HoneyDragEndContext = {
45
+ /**
46
+ * The total horizontal movement from the starting position to the ending position.
47
+ */
39
48
  deltaX: number;
49
+ /**
50
+ * The total vertical movement from the starting position to the ending position.
51
+ */
40
52
  deltaY: number;
53
+ /**
54
+ * The speed of movement in the horizontal direction (X axis).
55
+ */
41
56
  movingSpeedX: number;
57
+ /**
58
+ * The speed of movement in the vertical direction (Y axis).
59
+ */
42
60
  movingSpeedY: number;
43
61
  };
44
62
  /**
@@ -47,25 +65,46 @@ type HoneyDragEndContext = {
47
65
  */
48
66
  export type HoneyDragOnEndHandler<Element extends HTMLElement> = (context: HoneyDragEndContext, draggableElement: Element) => void;
49
67
  /**
50
- * The set of handlers that can be passed to the hook.
51
- *
52
- * Note:
53
- * - `onStartDrag` is optional and handles the start of the drag.
54
- * - `onMoveDrag` is required and handles the drag movement.
55
- * - `onEndDrag` is optional and handles the end of the drag.
68
+ * Object containing the handlers for various stages of the drag operation.
69
+ * These handlers can be customized to manage the behavior of the drag process.
56
70
  */
57
71
  export type HoneyDragHandlers<Element extends HTMLElement> = {
72
+ /**
73
+ * Optional handler triggered when the drag operation starts.
74
+ * This can be used to capture the initial state or perform setup actions.
75
+ */
58
76
  onStartDrag?: HoneyDragOnStartHandler<Element>;
77
+ /**
78
+ * Required handler triggered continuously during the drag operation.
79
+ * This handles updating the drag state and typically tracks the element's movement.
80
+ */
59
81
  onMoveDrag: HoneyDragOnMoveHandler<Element>;
82
+ /**
83
+ * Optional handler triggered when the drag operation ends.
84
+ * This can be used for cleanup or finalizing the state after the drag ends.
85
+ */
60
86
  onEndDrag?: HoneyDragOnEndHandler<Element>;
61
87
  };
88
+ /**
89
+ * Options passed to the `useHoneyDrag` hook.
90
+ */
91
+ export type HoneyDragOptions = {
92
+ /**
93
+ * Determines whether the drag functionality is enabled or not.
94
+ *
95
+ * @default true
96
+ */
97
+ isEnabled?: boolean;
98
+ };
62
99
  /**
63
100
  * A hook that provides touch and mouse-based dragging functionality for an element.
64
- * It tracks touch and mouse events, calculates dragging speed and distances during the drag,
65
- * and exposes `onStartDrag`, `onMoveDrag`, and `onEndDrag` callbacks to handle various stages of dragging.
101
+ * It tracks the movement of the element during the drag process and exposes handlers for each stage of the drag operation.
102
+ *
103
+ * @template Element - The type of the HTML element that is being dragged.
66
104
  *
67
- * @param {MutableRefObject<Element>} draggableElementRef - A `ref` to the element that should be made draggable.
68
- * @param {HoneyDragHandlers<Element>} handlers - An object containing the callback functions for different dragging stages.
105
+ * @param {MutableRefObject<Nullable<Element>>} draggableElementRef - A reference to the element that can be dragged.
106
+ * @param {HoneyDragHandlers<Element>} handlers - The drag event handlers for different stages of the drag operation (start, move, end).
107
+ * @param {HoneyDragOptions} options - Configuration options.
69
108
  */
70
- export declare const useHoneyDrag: <Element extends HTMLElement>(draggableElementRef: MutableRefObject<Nullable<Element>>, { onMoveDrag, onStartDrag, onEndDrag }: HoneyDragHandlers<Element>) => void;
109
+ export declare const useHoneyDrag: <Element extends HTMLElement>(draggableElementRef: MutableRefObject<Nullable<Element>>, { onMoveDrag, onStartDrag, onEndDrag }: HoneyDragHandlers<Element>, { isEnabled }?: HoneyDragOptions) => void;
71
110
  export {};
@@ -1,7 +1,6 @@
1
- import { MutableRefObject } from 'react';
2
1
  import { Nullable } from '../types';
3
2
  export type UseHoneyInfiniteScrollOnFetchMoreItems = () => void;
4
- export declare const useHoneyInfiniteScroll: <ScrollableContainerElement extends HTMLElement, TargetElement extends HTMLElement>(containerRef: MutableRefObject<Nullable<ScrollableContainerElement>> | undefined, onFetchMoreItems: UseHoneyInfiniteScrollOnFetchMoreItems) => {
3
+ export declare const useHoneyInfiniteScroll: <ScrollableContainerElement extends HTMLElement, TargetElement extends HTMLElement>(containerElement: Nullable<ScrollableContainerElement>, onFetchMoreItems: UseHoneyInfiniteScrollOnFetchMoreItems) => {
5
4
  scrollableContainerRef: (scrollableContainer: Nullable<ScrollableContainerElement>) => void;
6
5
  targetRef: (target: Nullable<TargetElement>) => void;
7
6
  };
@@ -1,14 +1,21 @@
1
1
  import { HoneyScreenState } from '../types';
2
- type UseHoneyMediaQueryOptions = {
2
+ export type UseHoneyMediaQueryOptions = {
3
3
  /**
4
4
  * The delay in milliseconds before the resize event is processed.
5
5
  *
6
6
  * @default 0
7
7
  */
8
8
  delay?: number;
9
+ /**
10
+ * Manually override screen state properties like isXs, isPortrait, etc.
11
+ *
12
+ * @remarks
13
+ * These values are only set once on initialization and will not dynamically update the state.
14
+ */
15
+ overrideScreenState?: Partial<HoneyScreenState>;
9
16
  };
10
17
  /**
11
- * A custom hook that tracks the current screen state based on the theme's media breakpoints.
18
+ * The hook that tracks the current screen state based on the theme's media breakpoints.
12
19
  * It updates the state on window resize and orientation change.
13
20
  *
14
21
  * @param options - Optional configuration object.
@@ -16,5 +23,4 @@ type UseHoneyMediaQueryOptions = {
16
23
  * @returns The current screen state, indicating the orientation (portrait or landscape)
17
24
  * and the active breakpoint (xs, sm, md, lg, xl).
18
25
  */
19
- export declare const useHoneyMediaQuery: ({ delay }?: UseHoneyMediaQueryOptions) => HoneyScreenState;
20
- export {};
26
+ export declare const useHoneyMediaQuery: ({ delay, overrideScreenState, }?: UseHoneyMediaQueryOptions) => HoneyScreenState;
@@ -16,8 +16,6 @@ type SyntheticScrollableContainerOptions<Element extends HTMLElement> = Pick<Hon
16
16
  *
17
17
  * @param {MutableRefObject<Nullable<Element>>} scrollableContainerRef - A ref to the scrollable container element to be assigned to the target element.
18
18
  * @param {SyntheticScrollableContainerOptions<Element>} options - Options for configuring the synthetic scrollable container.
19
- *
20
- * @returns {MutableRefObject<Nullable<Element>>} - A ref to the scrollable container element that should be assigned to the target element.
21
19
  */
22
- export declare const useHoneySyntheticScrollableContainer: <Element extends HTMLElement>(scrollableContainerRef: MutableRefObject<Nullable<Element>>, { availableWindowPercentage, onStartDrag, onEndDrag, }?: SyntheticScrollableContainerOptions<Element>) => MutableRefObject<Nullable<Element>>;
20
+ export declare const useHoneySyntheticScrollableContainer: <Element extends HTMLElement>(scrollableContainerRef: MutableRefObject<Nullable<Element>>, { availableWindowPercentage, onStartDrag, onEndDrag, }?: SyntheticScrollableContainerOptions<Element>) => void;
23
21
  export {};