@agility/plenum-ui 2.0.0-rc27 → 2.0.0-rc29
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.
- package/dist/index.d.ts +4 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +3 -3
- package/dist/types/stories/atoms/icons/DynamicIcon.d.ts +3 -3
- package/dist/types/stories/organisms/DropdownComponent/DropdownComponent.d.ts +1 -0
- package/package.json +1 -1
- package/stories/atoms/icons/DynamicIcon.stories.ts +3 -3
- package/stories/atoms/icons/DynamicIcon.tsx +32 -42
- package/stories/organisms/DropdownComponent/DropdownComponent.tsx +21 -1
package/dist/index.d.ts
CHANGED
|
@@ -267,10 +267,10 @@ declare module '@agility/plenum-ui/stories/atoms/icons/DynamicIcon' {
|
|
|
267
267
|
import { ClassNameWithAutocomplete } from "@/utils/types";
|
|
268
268
|
export type IconName = keyof typeof SolidIcons | keyof typeof OutlineIcons;
|
|
269
269
|
export type FAIconName = keyof typeof FA;
|
|
270
|
-
export type UnifiedIconName = TablerIconName;
|
|
270
|
+
export type UnifiedIconName = TablerIconName | IconName | FAIconName;
|
|
271
|
+
export function isHeroIcon(name: UnifiedIconName): name is keyof typeof SolidIcons | keyof typeof OutlineIcons;
|
|
271
272
|
export function isTablerIcon(name: UnifiedIconName): name is TablerIconName;
|
|
272
|
-
export function
|
|
273
|
-
export function isFAIcon(name: UnifiedIconName): boolean;
|
|
273
|
+
export function isFAIcon(name: UnifiedIconName): name is keyof typeof FA;
|
|
274
274
|
export function isUnifiedIconName(name: UnifiedIconName): name is UnifiedIconName;
|
|
275
275
|
export interface IDynamicIconProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
276
276
|
icon: UnifiedIconName;
|
|
@@ -937,6 +937,7 @@ declare module '@agility/plenum-ui/stories/organisms/DropdownComponent/DropdownC
|
|
|
937
937
|
onClick?(): void;
|
|
938
938
|
isEmphasized?: boolean;
|
|
939
939
|
key: React.Key;
|
|
940
|
+
iconObj?: JSX.Element;
|
|
940
941
|
}
|
|
941
942
|
export interface IDropdownProps extends HTMLAttributes<HTMLDivElement> {
|
|
942
943
|
items: IItemProp[][];
|