@agility/plenum-ui 2.0.0-rc11 → 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 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.ComponentPropsWithoutRef<"input"> {
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: string;
444
+ id?: string;
445
445
  /** Input Name */
446
- name: string;
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
- text: string | JSX.Element;
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: "base" | "short";
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;
@@ -881,6 +882,27 @@ declare module '@agility/plenum-ui/stories/organisms/AnimatedLabelInput/index' {
881
882
  export type { IAnimatedLabelInputProps };
882
883
  export default AnimatedLabelInput;
883
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;
905
+
884
906
  }
885
907
  declare module '@agility/plenum-ui/stories/organisms/ButtonDropdown/ButtonDropdown' {
886
908
  import { FC } from "react";
@@ -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' {