@agility/plenum-ui 2.0.0-rc14 → 2.0.0-rc15
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 +20 -15
- package/dist/index.js +1 -1
- package/dist/index.js.map +3 -3
- package/dist/types/stories/index.d.ts +2 -2
- package/dist/types/stories/organisms/DropdownComponent/DropdownComponent.d.ts +14 -9
- package/dist/types/stories/organisms/DropdownComponent/index.d.ts +2 -2
- package/dist/types/stories/organisms/index.d.ts +2 -2
- package/package.json +2 -12
- package/stories/index.ts +0 -2
- package/stories/organisms/ButtonDropdown/ButtonDropdown.tsx +13 -16
- package/stories/organisms/DropdownComponent/DropdownComponent.tsx +16 -14
- package/stories/organisms/DropdownComponent/index.ts +2 -2
- package/stories/organisms/index.ts +1 -2
- package/.yarnrc.yml +0 -1
- package/scripts/build.sh +0 -53
- package/scripts/resolve-files.js +0 -32
- package/scripts/rewrite-imports.js +0 -24
package/dist/index.d.ts
CHANGED
|
@@ -402,8 +402,8 @@ declare module '@agility/plenum-ui/stories/atoms/loaders/index' {
|
|
|
402
402
|
declare module '@agility/plenum-ui/stories/index' {
|
|
403
403
|
import { IAvatarProps, IBadgeProps, IButtonProps, ICapsuleProps, IDynamicIconProps, IIconWithShadowProps, ILoaderProps, IRadialProgressProps, UnifiedIconName, IconName, FAIconName, BTNActionType, Avatar, Badge, Button, Capsule, DynamicIcon, IconWithShadow, Loader, RadialProgress, isFAIcon, isHeroIcon, isTablerIcon, isUnifiedIconName } from "@agility/plenum-ui/stories/atoms/index";
|
|
404
404
|
import { ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextareaProps, IToggleSwitchProps, AcceptedInputTypes, Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, Textarea, ToggleSwitch, TextInput, ITextInputProps, ISimpleSelectOptions } from "@agility/plenum-ui/stories/molecules/index";
|
|
405
|
-
import { IAnimatedLabelInputProps, AnimatedLabelTextArea, IAnimatedLabelTextAreaProps, IButtonDropdownProps,
|
|
406
|
-
export type { IAvatarProps, IBadgeProps, IButtonProps, ICapsuleProps, ITextInputSelectProps, IDynamicIconProps, IIconWithShadowProps, ILoaderProps, IRadialProgressProps, ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextareaProps, IToggleSwitchProps, AcceptedInputTypes, IAnimatedLabelInputProps, IAnimatedLabelTextAreaProps, IButtonDropdownProps,
|
|
405
|
+
import { IAnimatedLabelInputProps, AnimatedLabelTextArea, IAnimatedLabelTextAreaProps, IButtonDropdownProps, IDropdownProps, IEmptySectionPlaceholderProps, IItemProp, IFormInputWithAddonsProps, AnimatedLabelInput, ButtonDropdown, Dropdown, EmptySectionPlaceholder, FormInputWithAddons, TextInputSelect, ITextInputSelectProps } from "@agility/plenum-ui/stories/organisms/index";
|
|
406
|
+
export type { IAvatarProps, IBadgeProps, IButtonProps, ICapsuleProps, ITextInputSelectProps, IDynamicIconProps, IIconWithShadowProps, ILoaderProps, IRadialProgressProps, ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextareaProps, IToggleSwitchProps, AcceptedInputTypes, IAnimatedLabelInputProps, IAnimatedLabelTextAreaProps, IButtonDropdownProps, IDropdownProps, IEmptySectionPlaceholderProps, IItemProp, IFormInputWithAddonsProps, UnifiedIconName, IconName, FAIconName, BTNActionType, ITextInputProps, ISimpleSelectOptions };
|
|
407
407
|
export { Avatar, Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, Textarea, ToggleSwitch, AnimatedLabelInput, AnimatedLabelTextArea, ButtonDropdown, Dropdown, EmptySectionPlaceholder, FormInputWithAddons, Badge, Button, Capsule, DynamicIcon, IconWithShadow, Loader, RadialProgress, isFAIcon, isHeroIcon, isTablerIcon, isUnifiedIconName, TextInput, TextInputSelect };
|
|
408
408
|
|
|
409
409
|
}
|
|
@@ -938,19 +938,17 @@ declare module '@agility/plenum-ui/stories/organisms/DropdownComponent/DropdownC
|
|
|
938
938
|
isEmphasized?: boolean;
|
|
939
939
|
key: React.Key;
|
|
940
940
|
}
|
|
941
|
-
export interface IDropdownClassnames {
|
|
942
|
-
groupClassname?: ClassNameWithAutocomplete;
|
|
943
|
-
itemsClassname?: ClassNameWithAutocomplete;
|
|
944
|
-
itemClassname?: ClassNameWithAutocomplete;
|
|
945
|
-
activeItemClassname?: ClassNameWithAutocomplete;
|
|
946
|
-
buttonClassname?: ClassNameWithAutocomplete;
|
|
947
|
-
}
|
|
948
941
|
export interface IDropdownProps extends HTMLAttributes<HTMLDivElement> {
|
|
949
942
|
items: IItemProp[][];
|
|
950
943
|
label: string;
|
|
951
944
|
CustomDropdownTrigger?: React.ReactNode;
|
|
952
945
|
id: string;
|
|
953
|
-
|
|
946
|
+
groupClassname?: ClassNameWithAutocomplete;
|
|
947
|
+
itemsClassname?: ClassNameWithAutocomplete;
|
|
948
|
+
itemClassname?: ClassNameWithAutocomplete;
|
|
949
|
+
activeItemClassname?: ClassNameWithAutocomplete;
|
|
950
|
+
buttonClassname?: ClassNameWithAutocomplete;
|
|
951
|
+
iconClassname?: ClassNameWithAutocomplete;
|
|
954
952
|
placement?: Placement;
|
|
955
953
|
offsetOptions?: Partial<{
|
|
956
954
|
mainAxis: number;
|
|
@@ -958,7 +956,14 @@ declare module '@agility/plenum-ui/stories/organisms/DropdownComponent/DropdownC
|
|
|
958
956
|
alignmentAxis: number | null;
|
|
959
957
|
}>;
|
|
960
958
|
}
|
|
961
|
-
export const defaultClassNames:
|
|
959
|
+
export const defaultClassNames: {
|
|
960
|
+
groupClassname: string;
|
|
961
|
+
itemsClassname: string;
|
|
962
|
+
itemClassname: string;
|
|
963
|
+
activeItemClassname: string;
|
|
964
|
+
buttonClassname: string;
|
|
965
|
+
iconClassname: string;
|
|
966
|
+
};
|
|
962
967
|
/** Comment */
|
|
963
968
|
const Dropdown: React.FC<IDropdownProps>;
|
|
964
969
|
export default Dropdown;
|
|
@@ -971,8 +976,8 @@ declare module '@agility/plenum-ui/stories/organisms/DropdownComponent/dropdownI
|
|
|
971
976
|
|
|
972
977
|
}
|
|
973
978
|
declare module '@agility/plenum-ui/stories/organisms/DropdownComponent/index' {
|
|
974
|
-
import Dropdown, { IItemProp,
|
|
975
|
-
export type { IItemProp,
|
|
979
|
+
import Dropdown, { IItemProp, IDropdownProps, defaultClassNames } from "@agility/plenum-ui/stories/organisms/DropdownComponent/DropdownComponent";
|
|
980
|
+
export type { IItemProp, IDropdownProps };
|
|
976
981
|
export { defaultClassNames };
|
|
977
982
|
export default Dropdown;
|
|
978
983
|
|
|
@@ -1115,11 +1120,11 @@ declare module '@agility/plenum-ui/stories/organisms/index' {
|
|
|
1115
1120
|
import AnimatedLabelInput, { IAnimatedLabelInputProps } from "@agility/plenum-ui/stories/organisms/AnimatedLabelInput/index";
|
|
1116
1121
|
import AnimatedLabelTextArea, { IAnimatedLabelTextAreaProps } from "@agility/plenum-ui/stories/organisms/AnimatedLabelTextArea/index";
|
|
1117
1122
|
import ButtonDropdown, { IButtonDropdownProps } from "@agility/plenum-ui/stories/organisms/ButtonDropdown/index";
|
|
1118
|
-
import Dropdown, {
|
|
1123
|
+
import Dropdown, { IDropdownProps, IItemProp } from "@agility/plenum-ui/stories/organisms/DropdownComponent/index";
|
|
1119
1124
|
import EmptySectionPlaceholder, { IEmptySectionPlaceholderProps } from "@agility/plenum-ui/stories/organisms/EmptySectionPlaceholder/index";
|
|
1120
1125
|
import FormInputWithAddons, { IFormInputWithAddonsProps } from "@agility/plenum-ui/stories/organisms/FormInputWithAddons/index";
|
|
1121
1126
|
import TextInputSelect, { ITextInputSelectProps } from "@agility/plenum-ui/stories/organisms/TextInputSelect/index";
|
|
1122
|
-
export type { IAnimatedLabelInputProps, IAnimatedLabelTextAreaProps, IButtonDropdownProps,
|
|
1127
|
+
export type { IAnimatedLabelInputProps, IAnimatedLabelTextAreaProps, IButtonDropdownProps, IDropdownProps, IEmptySectionPlaceholderProps, IItemProp, IFormInputWithAddonsProps, ITextInputSelectProps };
|
|
1123
1128
|
export { AnimatedLabelInput, AnimatedLabelTextArea, ButtonDropdown, Dropdown, EmptySectionPlaceholder, FormInputWithAddons, TextInputSelect };
|
|
1124
1129
|
|
|
1125
1130
|
}
|