@agility/plenum-ui 2.0.0-rc10 → 2.0.0-rc12
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 +44 -21
- package/dist/index.js +163 -86
- package/dist/index.js.map +4 -4
- package/dist/lib/tailwind.css +44 -22
- package/dist/types/stories/index.d.ts +3 -3
- package/dist/types/stories/molecules/inputs/InputField/InputField.d.ts +5 -3
- package/dist/types/stories/molecules/inputs/toggleSwitch/ToggleSwitch.d.ts +9 -7
- package/dist/types/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.d.ts +1 -4
- package/dist/types/stories/organisms/AnimatedLabelInput/index.d.ts +1 -1
- package/dist/types/stories/organisms/AnimatedLabelTextArea/AnimatedLabelTextArea.d.ts +12 -0
- package/dist/types/stories/organisms/AnimatedLabelTextArea/index.d.ts +3 -0
- package/dist/types/stories/organisms/EmptySectionPlaceholder/index.d.ts +1 -1
- package/dist/types/stories/organisms/index.d.ts +3 -2
- package/package.json +1 -1
- package/stories/index.ts +4 -0
- package/stories/molecules/inputs/InputField/InputField.tsx +9 -9
- package/stories/molecules/inputs/textArea/TextArea.tsx +38 -11
- package/stories/molecules/inputs/toggleSwitch/ToggleSwitch.tsx +61 -57
- package/stories/molecules/tabs/index.tsx +2 -3
- package/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.stories.tsx +10 -1
- package/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.tsx +22 -19
- package/stories/organisms/AnimatedLabelInput/index.tsx +1 -1
- package/stories/organisms/AnimatedLabelTextArea/AnimatedLabelTextArea.stories.tsx +26 -0
- package/stories/organisms/AnimatedLabelTextArea/AnimatedLabelTextArea.tsx +61 -0
- package/stories/organisms/AnimatedLabelTextArea/index.tsx +3 -0
- package/stories/organisms/EmptySectionPlaceholder/index.tsx +2 -1
- package/stories/organisms/index.ts +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -402,9 +402,9 @@ 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, IButtonDropdownProps, IDropdownClassnames, 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, IButtonDropdownProps, IDropdownClassnames, IDropdownProps, IEmptySectionPlaceholderProps, IItemProp, IFormInputWithAddonsProps, UnifiedIconName, IconName, FAIconName, BTNActionType, ITextInputProps, ISimpleSelectOptions };
|
|
407
|
-
export { Avatar, Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, Textarea, ToggleSwitch, AnimatedLabelInput, ButtonDropdown, Dropdown, EmptySectionPlaceholder, FormInputWithAddons, Badge, Button, Capsule, DynamicIcon, IconWithShadow, Loader, RadialProgress, isFAIcon, isHeroIcon, isTablerIcon, isUnifiedIconName, TextInput, TextInputSelect };
|
|
405
|
+
import { IAnimatedLabelInputProps, AnimatedLabelTextArea, IAnimatedLabelTextAreaProps, IButtonDropdownProps, IDropdownClassnames, 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, IDropdownClassnames, IDropdownProps, IEmptySectionPlaceholderProps, IItemProp, IFormInputWithAddonsProps, UnifiedIconName, IconName, FAIconName, BTNActionType, ITextInputProps, ISimpleSelectOptions };
|
|
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
|
}
|
|
410
410
|
declare module '@agility/plenum-ui/stories/layouts/index' {
|
|
@@ -437,13 +437,13 @@ declare module '@agility/plenum-ui/stories/molecules/inputs/InputCounter/index'
|
|
|
437
437
|
declare module '@agility/plenum-ui/stories/molecules/inputs/InputField/InputField' {
|
|
438
438
|
import React from "react";
|
|
439
439
|
export type AcceptedInputTypes = "date" | "datetime-local" | "email" | "month" | "number" | "password" | "search" | "submit" | "tel" | "text" | "url" | "currency";
|
|
440
|
-
export interface IInputFieldProps extends React.
|
|
440
|
+
export interface IInputFieldProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange"> {
|
|
441
441
|
/** Callback on change */
|
|
442
442
|
handleChange: (value: string) => void;
|
|
443
443
|
/** Input ID*/
|
|
444
|
-
id
|
|
444
|
+
id?: string;
|
|
445
445
|
/** Input Name */
|
|
446
|
-
name
|
|
446
|
+
name?: string;
|
|
447
447
|
/** Force the focus state on the input */
|
|
448
448
|
isFocused?: boolean;
|
|
449
449
|
/** Error condition */
|
|
@@ -460,6 +460,8 @@ declare module '@agility/plenum-ui/stories/molecules/inputs/InputField/InputFiel
|
|
|
460
460
|
required?: boolean;
|
|
461
461
|
/** use input psuedo classes for :valid and :invalid styles. on by default */
|
|
462
462
|
clientSideCheck?: boolean;
|
|
463
|
+
/** Placeholder text */
|
|
464
|
+
placeholder?: string;
|
|
463
465
|
/**ref for input */
|
|
464
466
|
ref?: React.Ref<HTMLInputElement>;
|
|
465
467
|
}
|
|
@@ -831,19 +833,21 @@ declare module '@agility/plenum-ui/stories/molecules/inputs/textArea/index' {
|
|
|
831
833
|
declare module '@agility/plenum-ui/stories/molecules/inputs/toggleSwitch/ToggleSwitch' {
|
|
832
834
|
import React from "react";
|
|
833
835
|
import { IDynamicIconProps } from "@/stories/atoms";
|
|
836
|
+
interface ToggleSwitchLabel {
|
|
837
|
+
text: string | JSX.Element;
|
|
838
|
+
className?: string;
|
|
839
|
+
xPosition?: "left" | "right";
|
|
840
|
+
}
|
|
834
841
|
export interface IToggleSwitchProps {
|
|
835
842
|
isChecked: boolean;
|
|
836
843
|
onChange: (isChecked: boolean) => void;
|
|
837
|
-
label?:
|
|
838
|
-
|
|
839
|
-
className?: string;
|
|
840
|
-
xPosition?: "left" | "right";
|
|
841
|
-
};
|
|
842
|
-
screenReaderLabel: string;
|
|
844
|
+
label?: ToggleSwitchLabel;
|
|
845
|
+
screenReaderLabel?: string;
|
|
843
846
|
name: string;
|
|
844
847
|
id: string;
|
|
845
|
-
variant
|
|
848
|
+
variant?: "base" | "short";
|
|
846
849
|
withIcon?: IDynamicIconProps;
|
|
850
|
+
disabled?: boolean;
|
|
847
851
|
}
|
|
848
852
|
const ToggleSwitch: React.FC<IToggleSwitchProps>;
|
|
849
853
|
export default ToggleSwitch;
|
|
@@ -858,16 +862,13 @@ declare module '@agility/plenum-ui/stories/molecules/inputs/toggleSwitch/index'
|
|
|
858
862
|
declare module '@agility/plenum-ui/stories/organisms/AnimatedLabelInput/AnimatedLabelInput' {
|
|
859
863
|
import React from "react";
|
|
860
864
|
import { IInputFieldProps } from "@/stories/molecules/inputs/InputField";
|
|
861
|
-
import { ITextareaProps } from "@/stories/molecules/inputs/textArea/TextArea";
|
|
862
865
|
interface ILabelProps extends React.ComponentPropsWithoutRef<"label"> {
|
|
863
866
|
display: string;
|
|
864
867
|
}
|
|
865
|
-
export interface IAnimatedLabelInputProps {
|
|
868
|
+
export interface IAnimatedLabelInputProps extends IInputFieldProps {
|
|
866
869
|
id: string;
|
|
867
870
|
containerStyles?: string;
|
|
868
871
|
message?: string;
|
|
869
|
-
input?: IInputFieldProps;
|
|
870
|
-
textarea?: ITextareaProps;
|
|
871
872
|
required?: boolean;
|
|
872
873
|
isError?: boolean;
|
|
873
874
|
label: ILabelProps;
|
|
@@ -878,8 +879,29 @@ declare module '@agility/plenum-ui/stories/organisms/AnimatedLabelInput/Animated
|
|
|
878
879
|
}
|
|
879
880
|
declare module '@agility/plenum-ui/stories/organisms/AnimatedLabelInput/index' {
|
|
880
881
|
import AnimatedLabelInput, { IAnimatedLabelInputProps } from "@agility/plenum-ui/stories/organisms/AnimatedLabelInput/AnimatedLabelInput";
|
|
881
|
-
export default AnimatedLabelInput;
|
|
882
882
|
export type { IAnimatedLabelInputProps };
|
|
883
|
+
export default AnimatedLabelInput;
|
|
884
|
+
|
|
885
|
+
}
|
|
886
|
+
declare module '@agility/plenum-ui/stories/organisms/AnimatedLabelTextArea/AnimatedLabelTextArea' {
|
|
887
|
+
import React from "react";
|
|
888
|
+
import { ITextareaProps } from "@/stories/molecules/inputs/textArea";
|
|
889
|
+
export interface IAnimatedLabelTextAreaProps extends ITextareaProps {
|
|
890
|
+
id: string;
|
|
891
|
+
containerStyles?: string;
|
|
892
|
+
message?: string;
|
|
893
|
+
required?: boolean;
|
|
894
|
+
isError?: boolean;
|
|
895
|
+
handleChange: (value: string) => void;
|
|
896
|
+
}
|
|
897
|
+
const AnimatedLabelTextArea: React.FC<IAnimatedLabelTextAreaProps>;
|
|
898
|
+
export default AnimatedLabelTextArea;
|
|
899
|
+
|
|
900
|
+
}
|
|
901
|
+
declare module '@agility/plenum-ui/stories/organisms/AnimatedLabelTextArea/index' {
|
|
902
|
+
import AnimatedLabelTextArea, { IAnimatedLabelTextAreaProps } from "@agility/plenum-ui/stories/organisms/AnimatedLabelTextArea/AnimatedLabelTextArea";
|
|
903
|
+
export type { IAnimatedLabelTextAreaProps };
|
|
904
|
+
export default AnimatedLabelTextArea;
|
|
883
905
|
|
|
884
906
|
}
|
|
885
907
|
declare module '@agility/plenum-ui/stories/organisms/ButtonDropdown/ButtonDropdown' {
|
|
@@ -981,8 +1003,8 @@ declare module '@agility/plenum-ui/stories/organisms/EmptySectionPlaceholder/Emp
|
|
|
981
1003
|
}
|
|
982
1004
|
declare module '@agility/plenum-ui/stories/organisms/EmptySectionPlaceholder/index' {
|
|
983
1005
|
import EmptySectionPlaceholder, { IEmptySectionPlaceholderProps } from "@agility/plenum-ui/stories/organisms/EmptySectionPlaceholder/EmptySectionPlaceholder";
|
|
984
|
-
export default EmptySectionPlaceholder;
|
|
985
1006
|
export type { IEmptySectionPlaceholderProps };
|
|
1007
|
+
export default EmptySectionPlaceholder;
|
|
986
1008
|
|
|
987
1009
|
}
|
|
988
1010
|
declare module '@agility/plenum-ui/stories/organisms/FormInputWithAddons/FormInputWithAddons' {
|
|
@@ -1093,13 +1115,14 @@ declare module '@agility/plenum-ui/stories/organisms/TextInputSelect/index' {
|
|
|
1093
1115
|
}
|
|
1094
1116
|
declare module '@agility/plenum-ui/stories/organisms/index' {
|
|
1095
1117
|
import AnimatedLabelInput, { IAnimatedLabelInputProps } from "@agility/plenum-ui/stories/organisms/AnimatedLabelInput/index";
|
|
1118
|
+
import AnimatedLabelTextArea, { IAnimatedLabelTextAreaProps } from "@agility/plenum-ui/stories/organisms/AnimatedLabelTextArea/index";
|
|
1096
1119
|
import ButtonDropdown, { IButtonDropdownProps } from "@agility/plenum-ui/stories/organisms/ButtonDropdown/index";
|
|
1097
1120
|
import Dropdown, { IDropdownClassnames, IDropdownProps, IItemProp } from "@agility/plenum-ui/stories/organisms/DropdownComponent/index";
|
|
1098
1121
|
import EmptySectionPlaceholder, { IEmptySectionPlaceholderProps } from "@agility/plenum-ui/stories/organisms/EmptySectionPlaceholder/index";
|
|
1099
1122
|
import FormInputWithAddons, { IFormInputWithAddonsProps } from "@agility/plenum-ui/stories/organisms/FormInputWithAddons/index";
|
|
1100
1123
|
import TextInputSelect, { ITextInputSelectProps } from "@agility/plenum-ui/stories/organisms/TextInputSelect/index";
|
|
1101
|
-
export type { IAnimatedLabelInputProps, IButtonDropdownProps, IDropdownClassnames, IDropdownProps, IEmptySectionPlaceholderProps, IItemProp, IFormInputWithAddonsProps, ITextInputSelectProps };
|
|
1102
|
-
export { AnimatedLabelInput, ButtonDropdown, Dropdown, EmptySectionPlaceholder, FormInputWithAddons, TextInputSelect };
|
|
1124
|
+
export type { IAnimatedLabelInputProps, IAnimatedLabelTextAreaProps, IButtonDropdownProps, IDropdownClassnames, IDropdownProps, IEmptySectionPlaceholderProps, IItemProp, IFormInputWithAddonsProps, ITextInputSelectProps };
|
|
1125
|
+
export { AnimatedLabelInput, AnimatedLabelTextArea, ButtonDropdown, Dropdown, EmptySectionPlaceholder, FormInputWithAddons, TextInputSelect };
|
|
1103
1126
|
|
|
1104
1127
|
}
|
|
1105
1128
|
declare module '@agility/plenum-ui/utils/types' {
|