@agility/plenum-ui 2.0.0-rc26 → 2.0.0-rc28
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 +5 -5
- 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 +2 -2
- package/package.json +1 -1
- package/stories/atoms/badges/Badge.tsx +1 -1
- package/stories/atoms/buttons/Button/Danger/Danger.stories.ts +2 -2
- package/stories/atoms/buttons/Button/Primary/Primary.stories.ts +2 -2
- package/stories/atoms/buttons/Button/Secondary/Secondary.stories.ts +1 -1
- package/stories/atoms/buttons/Button/defaultArgs.ts +1 -1
- package/stories/atoms/icons/DynamicIcon.stories.ts +2 -2
- package/stories/atoms/icons/DynamicIcon.tsx +19 -27
- package/stories/atoms/icons/IconWithShadow.stories.ts +2 -2
- package/stories/molecules/inputs/combobox/ComboBox.tsx +126 -135
- package/stories/organisms/ButtonDropdown/ButtonDropdown.tsx +1 -2
- package/stories/organisms/DropdownComponent/Dropdown.stories.tsx +1 -1
- package/stories/organisms/DropdownComponent/DropdownComponent.tsx +2 -3
- package/stories/organisms/EmptySectionPlaceholder/EmptySectionPlaceholder.stories.tsx +3 -3
- package/stories/organisms/FormInputWithAddons/FormInputWithAddons.stories.tsx +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -267,12 +267,12 @@ 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 = IconName |
|
|
270
|
+
export type UnifiedIconName = TablerIconName | IconName | FAIconName;
|
|
271
271
|
export function isHeroIcon(name: UnifiedIconName): name is keyof typeof SolidIcons | keyof typeof OutlineIcons;
|
|
272
272
|
export function isTablerIcon(name: UnifiedIconName): name is TablerIconName;
|
|
273
|
-
export function isFAIcon(name: UnifiedIconName):
|
|
273
|
+
export function isFAIcon(name: UnifiedIconName): name is keyof typeof FA;
|
|
274
274
|
export function isUnifiedIconName(name: UnifiedIconName): name is UnifiedIconName;
|
|
275
|
-
export interface IDynamicIconProps {
|
|
275
|
+
export interface IDynamicIconProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
276
276
|
icon: UnifiedIconName;
|
|
277
277
|
className?: ClassNameWithAutocomplete;
|
|
278
278
|
outline?: boolean;
|
|
@@ -926,7 +926,7 @@ declare module '@agility/plenum-ui/stories/organisms/ButtonDropdown/index' {
|
|
|
926
926
|
|
|
927
927
|
}
|
|
928
928
|
declare module '@agility/plenum-ui/stories/organisms/DropdownComponent/DropdownComponent' {
|
|
929
|
-
import React from "react";
|
|
929
|
+
import React, { HTMLAttributes } from "react";
|
|
930
930
|
import { Placement } from "@floating-ui/react";
|
|
931
931
|
import { ClassNameWithAutocomplete } from "utils/types";
|
|
932
932
|
import { IDynamicIconProps } from "@/stories/atoms/icons";
|
|
@@ -938,7 +938,7 @@ declare module '@agility/plenum-ui/stories/organisms/DropdownComponent/DropdownC
|
|
|
938
938
|
isEmphasized?: boolean;
|
|
939
939
|
key: React.Key;
|
|
940
940
|
}
|
|
941
|
-
export interface IDropdownProps {
|
|
941
|
+
export interface IDropdownProps extends HTMLAttributes<HTMLDivElement> {
|
|
942
942
|
items: IItemProp[][];
|
|
943
943
|
label: string;
|
|
944
944
|
CustomDropdownTrigger?: React.ReactNode;
|