@aragon/gov-ui-kit 2.3.1 → 2.4.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,15 @@
1
1
  import type { AnchorHTMLAttributes, HTMLAttributes } from 'react';
2
+ export type DataListItemVariant = 'primary' | 'select';
3
+ interface IDataListItemVariantProp {
4
+ /**
5
+ * Visual variant of the item.
6
+ * @default 'primary'
7
+ */
8
+ variant?: DataListItemVariant;
9
+ }
2
10
  type DivPropsWithCustomClick = Omit<HTMLAttributes<HTMLDivElement>, 'onClick'> & {
3
11
  onClick?: () => void;
4
12
  };
5
- export type IDataListItemProps = AnchorHTMLAttributes<HTMLAnchorElement> | DivPropsWithCustomClick;
13
+ export type IDataListItemProps = (AnchorHTMLAttributes<HTMLAnchorElement> | DivPropsWithCustomClick) & IDataListItemVariantProp;
6
14
  export declare const DataListItem: React.FC<IDataListItemProps>;
7
15
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aragon/gov-ui-kit",
3
- "version": "2.3.1",
3
+ "version": "2.4.0",
4
4
  "description": "Implementation of the Aragon's Governance UI Kit",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/types/src/index.d.ts",