@agility/plenum-ui 2.0.0-rc23 → 2.0.0-rc25
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,4 +1,4 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React 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";
|
|
@@ -10,7 +10,7 @@ export interface IItemProp {
|
|
|
10
10
|
isEmphasized?: boolean;
|
|
11
11
|
key: React.Key;
|
|
12
12
|
}
|
|
13
|
-
export interface IDropdownProps
|
|
13
|
+
export interface IDropdownProps {
|
|
14
14
|
items: IItemProp[][];
|
|
15
15
|
label: string;
|
|
16
16
|
CustomDropdownTrigger?: React.ReactNode;
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@ import { ClassNameWithAutocomplete } from "utils/types"
|
|
|
20
20
|
import { DynamicIcon, IDynamicIconProps, UnifiedIconName } from "@/stories/atoms/icons"
|
|
21
21
|
|
|
22
22
|
export interface IItemProp {
|
|
23
|
-
//Don't think this needs to
|
|
23
|
+
//Don't think this needs to extend HtmlButton... extends HTMLAttributes<HTMLButtonElement> {
|
|
24
24
|
icon?: IDynamicIconProps
|
|
25
25
|
iconPosition?: "trailing" | "leading"
|
|
26
26
|
label: string
|
|
@@ -29,7 +29,8 @@ export interface IItemProp {
|
|
|
29
29
|
key: React.Key
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export interface IDropdownProps
|
|
32
|
+
export interface IDropdownProps {
|
|
33
|
+
//this doesn't need to extend div... extends HTMLAttributes<HTMLDivElement> {
|
|
33
34
|
items: IItemProp[][]
|
|
34
35
|
label: string
|
|
35
36
|
CustomDropdownTrigger?: React.ReactNode
|