@react-hive/honey-layout 1.1.0 → 2.2.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.
@@ -1,2 +1,2 @@
1
1
  import { HoneyGridColumnStyledProps } from './HoneyGridColumn.styled';
2
- export type HoneyGridColumnProps = Omit<HoneyGridColumnStyledProps, 'columns' | 'spacing' | 'totalColumns' | 'totalTakeColumns'> & {};
2
+ export type HoneyGridColumnProps = Omit<HoneyGridColumnStyledProps, 'columns' | 'spacing' | 'totalColumns' | 'totalTakeColumns' | 'applyMaxWidth'> & {};
@@ -1,12 +1,14 @@
1
- import { ComponentWithAs, HoneyStatusContentOptions } from '../../types';
1
+ import { RefAttributes, default as React } from 'react';
2
+ import { HoneyStatusContentOptions } from '../../types';
2
3
  import { HoneyListGenericProps, HoneyListItem } from './HoneyList.types';
3
4
  import { HoneyBoxProps } from '../HoneyBox';
4
5
  type HoneyListProps<Item extends HoneyListItem> = HoneyBoxProps & HoneyListGenericProps<Item, Omit<HoneyStatusContentOptions, 'isNoContent'>>;
5
6
  /**
6
- * A generic and reusable list component that handles various states (loading, error, no content)
7
- * and renders a list of items with custom content.
7
+ * The `HoneyList` is a forward-ref component that renders a list of items
8
+ * and allows a ref to be forwarded to the underlying DOM element.
8
9
  *
9
- * @template Item - The type of the items to be rendered in the list.
10
+ * @template Item - Represents the type of items to be rendered in the list.
11
+ * @template Element - Represents the type of the HTML element that will receive the ref.
10
12
  */
11
- export declare const HoneyList: <Item extends HoneyListItem>({ children, items, itemKey, isLoading, loadingContent, isError, errorContent, noContent, ...boxProps }: ComponentWithAs<HoneyListProps<Item>>) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const HoneyList: <Item extends HoneyListItem, Element extends HTMLElement>(props: HoneyListProps<Item> & RefAttributes<Element>) => React.ReactElement;
12
14
  export {};