@ultraviolet/plus 0.27.2 → 0.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.
@@ -1,7 +1,5 @@
1
- import * as CategoryIcon from '@ultraviolet/icons/category';
2
1
  import { Badge } from '@ultraviolet/ui';
3
2
  import type { ComponentProps, JSX, ReactNode } from 'react';
4
- import type { PascalToCamelCaseWithoutSuffix } from '../../../types';
5
3
  import type { PinUnPinType } from '../types';
6
4
  type ItemType = 'default' | 'pinned' | 'pinnedGroup';
7
5
  type ItemProps = {
@@ -9,8 +7,7 @@ type ItemProps = {
9
7
  /**
10
8
  * Sets a category icon on the left of the item
11
9
  */
12
- categoryIcon?: PascalToCamelCaseWithoutSuffix<keyof typeof CategoryIcon, 'CategoryIcon'>;
13
- categoryIconVariant?: ComponentProps<(typeof CategoryIcon)['BaremetalCategoryIcon']>['variant'];
10
+ categoryIcon?: ReactNode;
14
11
  /**
15
12
  * The label of the item that will be shown.
16
13
  * It is also used as the key for pinning.
@@ -78,5 +75,5 @@ type ItemProps = {
78
75
  disabled?: boolean;
79
76
  'data-testid'?: string;
80
77
  };
81
- export declare const Item: import("react").MemoExoticComponent<({ children, categoryIcon, categoryIconVariant, label, subLabel, badgeText, badgeSentiment, href, target, rel, onToggle, onClickPinUnpin, toggle, active, noPinButton, type, as, disabled, noExpand, index, id, "data-testid": dataTestId, }: ItemProps) => import("@emotion/react/jsx-runtime").JSX.Element | null>;
78
+ export declare const Item: import("react").MemoExoticComponent<({ children, categoryIcon, label, subLabel, badgeText, badgeSentiment, href, target, rel, onToggle, onClickPinUnpin, toggle, active, noPinButton, type, as, disabled, noExpand, index, id, "data-testid": dataTestId, }: ItemProps) => import("@emotion/react/jsx-runtime").JSX.Element | null>;
82
79
  export {};