@agility/plenum-ui 2.0.0-rc21 → 2.0.0-rc23

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.
@@ -2,7 +2,7 @@ import React, { HTMLAttributes } from "react";
2
2
  import { Placement } from "@floating-ui/react";
3
3
  import { ClassNameWithAutocomplete } from "utils/types";
4
4
  import { IDynamicIconProps } from "@/stories/atoms/icons";
5
- export interface IItemProp extends HTMLAttributes<HTMLButtonElement> {
5
+ export interface IItemProp {
6
6
  icon?: IDynamicIconProps;
7
7
  iconPosition?: "trailing" | "leading";
8
8
  label: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agility/plenum-ui",
3
- "version": "2.0.0-rc21",
3
+ "version": "2.0.0-rc23",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -19,7 +19,8 @@ import {
19
19
  import { ClassNameWithAutocomplete } from "utils/types"
20
20
  import { DynamicIcon, IDynamicIconProps, UnifiedIconName } from "@/stories/atoms/icons"
21
21
 
22
- export interface IItemProp extends HTMLAttributes<HTMLButtonElement> {
22
+ export interface IItemProp {
23
+ //Don't think this needs to extaned HtmlButton... extends HTMLAttributes<HTMLButtonElement> {
23
24
  icon?: IDynamicIconProps
24
25
  iconPosition?: "trailing" | "leading"
25
26
  label: string
@@ -27,6 +28,7 @@ export interface IItemProp extends HTMLAttributes<HTMLButtonElement> {
27
28
  isEmphasized?: boolean
28
29
  key: React.Key
29
30
  }
31
+
30
32
  export interface IDropdownProps extends HTMLAttributes<HTMLDivElement> {
31
33
  items: IItemProp[][]
32
34
  label: string
@@ -128,6 +130,7 @@ const Dropdown: React.FC<IDropdownProps> = ({
128
130
  onClick: () => {
129
131
  setIsOpen(!isOpen)
130
132
  },
133
+ type: "button",
131
134
  ...getReferenceProps()
132
135
  }}
133
136
  >