@zvoove/unity-ui 2.27.0 → 2.28.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.
@@ -2018,6 +2018,22 @@ declare type LabelStates = {
2018
2018
  off: string;
2019
2019
  };
2020
2020
 
2021
+ export declare const List: {
2022
+ <T extends default_2.ElementType = "div">({ items, showDividers, linkComponent: LinkComponent, }: ListProps<T>): JSX.Element;
2023
+ displayName: string;
2024
+ };
2025
+
2026
+ export declare type ListItem<T extends default_2.ElementType = 'div'> = {
2027
+ /**
2028
+ * The content of the list item.
2029
+ */
2030
+ content: ReactNode;
2031
+ /**
2032
+ * The id of the list item. This will be use as the key for the list item.
2033
+ */
2034
+ id: string;
2035
+ } & Omit<default_2.ComponentPropsWithoutRef<T>, 'children' | 'className' | 'content' | 'id'>;
2036
+
2021
2037
  export declare const ListMenu: {
2022
2038
  <T extends default_2.ElementType = "a">({ items, activeItem, open, variant, linkComponent: LinkComponent, onItemClick, }: ListMenuProps<T>): JSX.Element;
2023
2039
  displayName: string;
@@ -2100,6 +2116,23 @@ export declare type ListMenuSection<T extends React.ElementType = 'a'> = {
2100
2116
 
2101
2117
  export declare type ListMenuVariant = 'default' | 'compact';
2102
2118
 
2119
+ export declare interface ListProps<T extends default_2.ElementType = 'div'> {
2120
+ /**
2121
+ * The items of the List.
2122
+ */
2123
+ items: ListItem<T>[];
2124
+ /**
2125
+ * Whether to show dividers between items.
2126
+ * @default true
2127
+ */
2128
+ showDividers?: boolean;
2129
+ /**
2130
+ * The component to render for each list item.
2131
+ * @default 'div'
2132
+ */
2133
+ linkComponent?: T | 'div';
2134
+ }
2135
+
2103
2136
  export declare type Margin = SpacingKeys | {
2104
2137
  top?: SpacingKeys;
2105
2138
  right?: SpacingKeys;