@agility/plenum-ui 2.0.0-rc3 → 2.0.0-rc30

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.
Files changed (101) hide show
  1. package/README.md +104 -31
  2. package/build.js +30 -25
  3. package/dist/index.d.ts +274 -89
  4. package/dist/index.js +1 -5976
  5. package/dist/index.js.map +4 -4
  6. package/dist/tailwind.css +63516 -0
  7. package/dist/types/stories/atoms/buttons/Button/Button.d.ts +3 -7
  8. package/dist/types/stories/atoms/buttons/Capsule/Capsule.d.ts +1 -1
  9. package/dist/types/stories/atoms/icons/DynamicIcon.d.ts +2 -2
  10. package/dist/types/stories/atoms/icons/TablerIcon.d.ts +1 -1
  11. package/dist/types/stories/index.d.ts +4 -4
  12. package/dist/types/stories/molecules/index.d.ts +3 -3
  13. package/dist/types/stories/molecules/inputs/InputCounter/InputCounter.d.ts +10 -0
  14. package/dist/types/stories/molecules/inputs/InputCounter/index.d.ts +2 -0
  15. package/dist/types/stories/molecules/inputs/InputField/InputField.d.ts +8 -4
  16. package/dist/types/stories/molecules/inputs/TextInput/TextInput.d.ts +39 -0
  17. package/dist/types/stories/molecules/inputs/TextInput/index.d.ts +4 -0
  18. package/dist/types/stories/molecules/inputs/index.d.ts +5 -4
  19. package/dist/types/stories/molecules/inputs/select/Select.d.ts +2 -2
  20. package/dist/types/stories/molecules/inputs/textArea/TextArea.d.ts +34 -21
  21. package/dist/types/stories/molecules/inputs/textArea/TextArea.stories.d.ts +4 -4
  22. package/dist/types/stories/molecules/inputs/textArea/index.d.ts +3 -3
  23. package/dist/types/stories/molecules/inputs/toggleSwitch/ToggleSwitch.d.ts +9 -7
  24. package/dist/types/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.d.ts +3 -5
  25. package/dist/types/stories/organisms/AnimatedLabelInput/index.d.ts +1 -1
  26. package/dist/types/stories/organisms/AnimatedLabelTextArea/AnimatedLabelTextArea.d.ts +12 -0
  27. package/dist/types/stories/organisms/AnimatedLabelTextArea/index.d.ts +3 -0
  28. package/dist/types/stories/organisms/DropdownComponent/DropdownComponent.d.ts +20 -12
  29. package/dist/types/stories/organisms/DropdownComponent/index.d.ts +2 -2
  30. package/dist/types/stories/organisms/EmptySectionPlaceholder/index.d.ts +1 -1
  31. package/dist/types/stories/organisms/TextInputSelect/InputSelect.d.ts +16 -0
  32. package/dist/types/stories/organisms/TextInputSelect/TextInputSelect.d.ts +48 -0
  33. package/dist/types/stories/organisms/TextInputSelect/index.d.ts +3 -0
  34. package/dist/types/stories/organisms/index.d.ts +5 -3
  35. package/local.sh +100 -0
  36. package/package.json +36 -19
  37. package/rollup.config.mjs +42 -0
  38. package/stories/Introduction.mdx +1 -1
  39. package/stories/atoms/badges/Badge.tsx +1 -1
  40. package/stories/atoms/buttons/Button/Button.tsx +23 -18
  41. package/stories/atoms/buttons/Button/Danger/Danger.stories.ts +2 -2
  42. package/stories/atoms/buttons/Button/Primary/Primary.stories.ts +2 -2
  43. package/stories/atoms/buttons/Button/Secondary/Secondary.stories.ts +1 -1
  44. package/stories/atoms/buttons/Button/defaultArgs.ts +1 -1
  45. package/stories/atoms/buttons/Capsule/Capsule.tsx +2 -1
  46. package/stories/atoms/icons/DynamicIcon.stories.ts +1 -1
  47. package/stories/atoms/icons/DynamicIcon.tsx +7 -7
  48. package/stories/atoms/icons/IconWithShadow.stories.ts +3 -3
  49. package/stories/atoms/icons/TablerIcon.tsx +1 -1
  50. package/stories/atoms/loaders/Loader.tsx +12 -6
  51. package/stories/index.ts +22 -10
  52. package/stories/molecules/index.ts +22 -6
  53. package/stories/molecules/inputs/InputCounter/InputCounter.stories.tsx +18 -0
  54. package/stories/molecules/inputs/InputCounter/InputCounter.tsx +24 -0
  55. package/stories/molecules/inputs/InputCounter/index.tsx +3 -0
  56. package/stories/molecules/inputs/InputField/InputField.tsx +13 -7
  57. package/stories/molecules/inputs/TextInput/TextInput.stories.tsx +32 -0
  58. package/stories/molecules/inputs/TextInput/TextInput.tsx +165 -0
  59. package/stories/molecules/inputs/TextInput/index.tsx +5 -0
  60. package/stories/molecules/inputs/checkbox/Checkbox.tsx +1 -1
  61. package/stories/molecules/inputs/combobox/ComboBox.tsx +126 -135
  62. package/stories/molecules/inputs/index.ts +18 -4
  63. package/stories/molecules/inputs/select/Select.tsx +1 -1
  64. package/stories/molecules/inputs/textArea/TextArea.stories.ts +7 -5
  65. package/stories/molecules/inputs/textArea/TextArea.tsx +139 -48
  66. package/stories/molecules/inputs/textArea/index.ts +3 -3
  67. package/stories/molecules/inputs/toggleSwitch/ToggleSwitch.tsx +61 -57
  68. package/stories/molecules/tabs/index.tsx +2 -3
  69. package/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.stories.tsx +10 -1
  70. package/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.tsx +43 -37
  71. package/stories/organisms/AnimatedLabelInput/index.tsx +1 -1
  72. package/stories/organisms/AnimatedLabelTextArea/AnimatedLabelTextArea.stories.tsx +26 -0
  73. package/stories/organisms/AnimatedLabelTextArea/AnimatedLabelTextArea.tsx +61 -0
  74. package/stories/organisms/AnimatedLabelTextArea/index.tsx +3 -0
  75. package/stories/organisms/ButtonDropdown/ButtonDropdown.stories.tsx +60 -58
  76. package/stories/organisms/ButtonDropdown/ButtonDropdown.tsx +13 -17
  77. package/stories/organisms/DropdownComponent/Dropdown.stories.tsx +2 -2
  78. package/stories/organisms/DropdownComponent/DropdownComponent.tsx +89 -70
  79. package/stories/organisms/DropdownComponent/dropdownItems.ts +27 -3
  80. package/stories/organisms/DropdownComponent/index.ts +2 -2
  81. package/stories/organisms/EmptySectionPlaceholder/EmptySectionPlaceholder.stories.tsx +3 -3
  82. package/stories/organisms/EmptySectionPlaceholder/index.tsx +2 -1
  83. package/stories/organisms/FormInputWithAddons/FormInputWithAddons.stories.tsx +1 -1
  84. package/stories/organisms/FormInputWithAddons/FormInputWithAddons.tsx +7 -2
  85. package/stories/organisms/TextInputSelect/InputSelect.tsx +59 -0
  86. package/stories/organisms/TextInputSelect/TextInputSelect.stories.tsx +33 -0
  87. package/stories/organisms/TextInputSelect/TextInputSelect.tsx +186 -0
  88. package/stories/organisms/TextInputSelect/index.tsx +3 -0
  89. package/stories/organisms/index.ts +15 -4
  90. package/tsconfig.lib.json +13 -6
  91. package/watch.js +50 -0
  92. package/.yarnrc.yml +0 -1
  93. package/dist/types/stories/layouts/index.d.ts +0 -0
  94. package/stories/layouts/CardLayout/CardLayout.stories.tsx +0 -18
  95. package/stories/layouts/CardLayout/CardLayout.tsx +0 -22
  96. package/stories/layouts/CardLayout/index.tsx +0 -3
  97. package/stories/layouts/ModalLayout/ModalLayout.stories.tsx +0 -18
  98. package/stories/layouts/ModalLayout/ModalLayout.tsx +0 -22
  99. package/stories/layouts/ModalLayout/index.tsx +0 -3
  100. package/stories/layouts/index.ts +0 -0
  101. package/stories/organisms/DropdownComponent/Dropdown.test.tsx +0 -0
package/dist/index.d.ts CHANGED
@@ -83,10 +83,10 @@ declare module '@agility/plenum-ui/stories/atoms/buttons/Button/Alternative/Alte
83
83
 
84
84
  }
85
85
  declare module '@agility/plenum-ui/stories/atoms/buttons/Button/Button' {
86
- import { HTMLAttributeAnchorTarget } from "react";
86
+ import React, { HTMLAttributeAnchorTarget } from "react";
87
87
  import { UnifiedIconName, IDynamicIconProps } from "@agility/plenum-ui/stories/atoms/icons/index";
88
88
  export type BTNActionType = "primary" | "secondary" | "alternative" | "danger";
89
- export interface IButtonProps extends React.ComponentPropsWithoutRef<"button"> {
89
+ export interface IButtonProps extends Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> {
90
90
  /** Is the button a Primary CTA, alternative or danger button? */
91
91
  actionType?: BTNActionType;
92
92
  /** How lg should the button be? - Defaults to 'base'. */
@@ -111,12 +111,8 @@ declare module '@agility/plenum-ui/stories/atoms/buttons/Button/Button' {
111
111
  isLoading?: boolean;
112
112
  className?: string;
113
113
  iconObj?: React.ReactNode;
114
- ref?: React.LegacyRef<HTMLButtonElement>;
115
114
  }
116
- /**
117
- * Primary UI component for user interaction
118
- */
119
- const Button: ({ actionType, size, label, icon, iconObj, CustomSVGIcon, fullWidth, iconPosition, asLink, isLoading, className, ref, ...props }: IButtonProps) => import("react/jsx-runtime").JSX.Element;
115
+ const Button: React.ForwardRefExoticComponent<IButtonProps & React.RefAttributes<HTMLButtonElement>>;
120
116
  export default Button;
121
117
 
122
118
  }
@@ -198,7 +194,7 @@ declare module '@agility/plenum-ui/stories/atoms/buttons/Capsule/Capsule' {
198
194
  /**
199
195
  * Capsule Style Button
200
196
  */
201
- export interface ICapsuleProps extends React.ComponentPropsWithoutRef<"button"> {
197
+ export interface ICapsuleProps extends React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
202
198
  /** Is the button a Primary CTA, alternative or danger button? */
203
199
  actionType: BTNActionType;
204
200
  /** How lg should the button be? - Defaults to 'base'. */
@@ -271,12 +267,12 @@ declare module '@agility/plenum-ui/stories/atoms/icons/DynamicIcon' {
271
267
  import { ClassNameWithAutocomplete } from "@/utils/types";
272
268
  export type IconName = keyof typeof SolidIcons | keyof typeof OutlineIcons;
273
269
  export type FAIconName = keyof typeof FA;
274
- export type UnifiedIconName = IconName | TablerIconName | FAIconName;
270
+ export type UnifiedIconName = TablerIconName | IconName | FAIconName;
275
271
  export function isHeroIcon(name: UnifiedIconName): name is keyof typeof SolidIcons | keyof typeof OutlineIcons;
276
272
  export function isTablerIcon(name: UnifiedIconName): name is TablerIconName;
277
273
  export function isFAIcon(name: UnifiedIconName): name is keyof typeof FA;
278
274
  export function isUnifiedIconName(name: UnifiedIconName): name is UnifiedIconName;
279
- export interface IDynamicIconProps extends React.ComponentProps<"i"> {
275
+ export interface IDynamicIconProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
280
276
  icon: UnifiedIconName;
281
277
  className?: ClassNameWithAutocomplete;
282
278
  outline?: boolean;
@@ -324,7 +320,7 @@ declare module '@agility/plenum-ui/stories/atoms/icons/TablerIcon' {
324
320
  import React from "react";
325
321
  import { TablerIconName } from "@agility/plenum-ui/stories/atoms/icons/tablerIconNames";
326
322
  import { ClassNameWithAutocomplete } from "@/utils/types";
327
- export interface ITablerIconProps extends React.ComponentProps<"i"> {
323
+ export interface ITablerIconProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
328
324
  icon: TablerIconName;
329
325
  className?: ClassNameWithAutocomplete;
330
326
  }
@@ -401,31 +397,46 @@ declare module '@agility/plenum-ui/stories/atoms/loaders/index' {
401
397
  }
402
398
  declare module '@agility/plenum-ui/stories/index' {
403
399
  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
- import { ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextAreaFieldProps, IToggleSwitchProps, AcceptedInputTypes, Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, TextAreaField, ToggleSwitch } from "@agility/plenum-ui/stories/molecules/index";
405
- import { IAnimatedLabelInputProps, IButtonDropdownProps, IDropdownClassnames, IDropdownProps, IEmptySectionPlaceholderProps, IItemProp, IFormInputWithAddonsProps, AnimatedLabelInput, ButtonDropdown, Dropdown, EmptySectionPlaceholder, FormInputWithAddons } from "@agility/plenum-ui/stories/organisms/index";
406
- export type { IAvatarProps, IBadgeProps, IButtonProps, ICapsuleProps, IDynamicIconProps, IIconWithShadowProps, ILoaderProps, IRadialProgressProps, ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextAreaFieldProps, IToggleSwitchProps, AcceptedInputTypes, IAnimatedLabelInputProps, IButtonDropdownProps, IDropdownClassnames, IDropdownProps, IEmptySectionPlaceholderProps, IItemProp, IFormInputWithAddonsProps, UnifiedIconName, IconName, FAIconName, BTNActionType };
407
- export { Avatar, Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, TextAreaField, ToggleSwitch, AnimatedLabelInput, ButtonDropdown, Dropdown, EmptySectionPlaceholder, FormInputWithAddons, Badge, Button, Capsule, DynamicIcon, IconWithShadow, Loader, RadialProgress, isFAIcon, isHeroIcon, isTablerIcon, isUnifiedIconName };
400
+ 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";
401
+ import { IAnimatedLabelInputProps, AnimatedLabelTextArea, IAnimatedLabelTextAreaProps, IButtonDropdownProps, IDropdownProps, IEmptySectionPlaceholderProps, IItemProp, IFormInputWithAddonsProps, AnimatedLabelInput, ButtonDropdown, Dropdown, EmptySectionPlaceholder, FormInputWithAddons, TextInputSelect, ITextInputSelectProps } from "@agility/plenum-ui/stories/organisms/index";
402
+ 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 };
403
+ 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
404
 
409
405
  }
410
- declare module '@agility/plenum-ui/stories/layouts/index' {
406
+ declare module '@agility/plenum-ui/stories/molecules/index' {
407
+ import { ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ISimpleSelectOptions, ITextareaProps, IToggleSwitchProps, AcceptedInputTypes, Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, Textarea, ToggleSwitch, ITextInputProps, TextInput } from "@agility/plenum-ui/stories/molecules/inputs/index";
408
+ export type { ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ISimpleSelectOptions, ITextareaProps, IToggleSwitchProps, AcceptedInputTypes, ITextInputProps };
409
+ export { Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, Textarea, ToggleSwitch, TextInput };
411
410
 
412
411
  }
413
- declare module '@agility/plenum-ui/stories/molecules/index' {
414
- import { ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextAreaFieldProps, IToggleSwitchProps, AcceptedInputTypes, Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, TextAreaField, ToggleSwitch } from "@agility/plenum-ui/stories/molecules/inputs/index";
415
- export type { ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextAreaFieldProps, IToggleSwitchProps, AcceptedInputTypes };
416
- export { Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, TextAreaField, ToggleSwitch };
412
+ declare module '@agility/plenum-ui/stories/molecules/inputs/InputCounter/InputCounter' {
413
+ import { FC } from "react";
414
+ export interface IInputCounterProps {
415
+ /** Counter limit */
416
+ limit: number | undefined;
417
+ /** Counter current number */
418
+ current: number;
419
+ }
420
+ /** Primary UI component for user interaction */
421
+ const InputCounter: FC<IInputCounterProps>;
422
+ export default InputCounter;
423
+
424
+ }
425
+ declare module '@agility/plenum-ui/stories/molecules/inputs/InputCounter/index' {
426
+ export { default } from '@agility/plenum-ui/stories/molecules/inputs/InputCounter/InputCounter';
427
+ export * from '@agility/plenum-ui/stories/molecules/inputs/InputCounter/InputCounter';
417
428
 
418
429
  }
419
430
  declare module '@agility/plenum-ui/stories/molecules/inputs/InputField/InputField' {
420
431
  import React from "react";
421
- export type AcceptedInputTypes = "date" | "datetime-local" | "email" | "month" | "number" | "password" | "search" | "submit" | "tel" | "text" | "url";
422
- export interface IInputFieldProps extends React.ComponentPropsWithoutRef<"input"> {
432
+ export type AcceptedInputTypes = "date" | "datetime-local" | "email" | "month" | "number" | "password" | "search" | "submit" | "tel" | "text" | "url" | "currency";
433
+ export interface IInputFieldProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange"> {
423
434
  /** Callback on change */
424
435
  handleChange: (value: string) => void;
425
436
  /** Input ID*/
426
- id: string;
437
+ id?: string;
427
438
  /** Input Name */
428
- name: string;
439
+ name?: string;
429
440
  /** Force the focus state on the input */
430
441
  isFocused?: boolean;
431
442
  /** Error condition */
@@ -442,6 +453,10 @@ declare module '@agility/plenum-ui/stories/molecules/inputs/InputField/InputFiel
442
453
  required?: boolean;
443
454
  /** use input psuedo classes for :valid and :invalid styles. on by default */
444
455
  clientSideCheck?: boolean;
456
+ /** Placeholder text */
457
+ placeholder?: string;
458
+ /**ref for input */
459
+ ref?: React.Ref<HTMLInputElement>;
445
460
  }
446
461
  const InputField: React.FC<IInputFieldProps>;
447
462
  export default InputField;
@@ -502,6 +517,55 @@ declare module '@agility/plenum-ui/stories/molecules/inputs/NestedInputButton/in
502
517
  export type { INestedInputButtonProps };
503
518
  export default NestedInputButton;
504
519
 
520
+ }
521
+ declare module '@agility/plenum-ui/stories/molecules/inputs/TextInput/TextInput' {
522
+ import React from "react";
523
+ import { AcceptedInputTypes } from "@agility/plenum-ui/stories/molecules/inputs/InputField/index";
524
+ export interface ITextInputProps {
525
+ /** Input type*/
526
+ type: AcceptedInputTypes;
527
+ /** Input ID */
528
+ id?: string;
529
+ /** Input Name */
530
+ name?: string;
531
+ /** Label for the input */
532
+ label?: string;
533
+ /** Force the focus state on the input */
534
+ isFocused?: boolean;
535
+ /** Error state */
536
+ isError?: boolean;
537
+ /** If field is required */
538
+ isRequired?: boolean;
539
+ /** Disabled state */
540
+ isDisabled?: boolean;
541
+ /** Readonly state */
542
+ isReadonly?: boolean;
543
+ /** Set default value */
544
+ defaultValue?: string;
545
+ /** Message shown under the text field */
546
+ message?: string;
547
+ /** Input character counter */
548
+ isShowCounter?: boolean;
549
+ /** Max length of input character */
550
+ maxLength?: number;
551
+ /** Callback on change */
552
+ handleChange(value: string): void;
553
+ /** input value */
554
+ value: string;
555
+ /**Placeholder input text*/
556
+ placeholder?: string;
557
+ className?: string;
558
+ }
559
+ const _TextInput: React.ForwardRefExoticComponent<ITextInputProps & React.RefAttributes<HTMLInputElement>>;
560
+ export default _TextInput;
561
+
562
+ }
563
+ declare module '@agility/plenum-ui/stories/molecules/inputs/TextInput/index' {
564
+ import TextInput from "@agility/plenum-ui/stories/molecules/inputs/TextInput/TextInput";
565
+ import { ITextInputProps } from "@agility/plenum-ui/stories/molecules/inputs/TextInput/TextInput";
566
+ export type { ITextInputProps };
567
+ export default TextInput;
568
+
505
569
  }
506
570
  declare module '@agility/plenum-ui/stories/molecules/inputs/checkbox/Checkbox' {
507
571
  import { FC } from "react";
@@ -608,11 +672,12 @@ declare module '@agility/plenum-ui/stories/molecules/inputs/index' {
608
672
  import InputLabel, { IInputLabelProps } from "@agility/plenum-ui/stories/molecules/inputs/InputLabel/index";
609
673
  import NestedInputButton, { INestedInputButtonProps } from "@agility/plenum-ui/stories/molecules/inputs/NestedInputButton/index";
610
674
  import Radio, { IRadioProps } from "@agility/plenum-ui/stories/molecules/inputs/radio/index";
611
- import Select, { ISelectProps } from "@agility/plenum-ui/stories/molecules/inputs/select/index";
612
- import TextAreaField, { ITextAreaFieldProps } from "@agility/plenum-ui/stories/molecules/inputs/textArea/index";
675
+ import Select, { ISelectProps, ISimpleSelectOptions } from "@agility/plenum-ui/stories/molecules/inputs/select/index";
676
+ import Textarea, { ITextareaProps } from "@agility/plenum-ui/stories/molecules/inputs/textArea/index";
677
+ import TextInput, { ITextInputProps } from "@agility/plenum-ui/stories/molecules/inputs/TextInput/index";
613
678
  import ToggleSwitch, { IToggleSwitchProps } from "@agility/plenum-ui/stories/molecules/inputs/toggleSwitch/index";
614
- export type { ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextAreaFieldProps, IToggleSwitchProps, AcceptedInputTypes };
615
- export { Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, TextAreaField, ToggleSwitch };
679
+ export type { ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ISimpleSelectOptions, ITextareaProps, ITextInputProps, IToggleSwitchProps, AcceptedInputTypes };
680
+ export { Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, Textarea, ToggleSwitch, TextInput };
616
681
 
617
682
  }
618
683
  declare module '@agility/plenum-ui/stories/molecules/inputs/radio/Radio' {
@@ -662,10 +727,10 @@ declare module '@agility/plenum-ui/stories/molecules/inputs/radio/index' {
662
727
  }
663
728
  declare module '@agility/plenum-ui/stories/molecules/inputs/select/Select' {
664
729
  import React from "react";
665
- export type ISimpleSelectOptions = {
730
+ export interface ISimpleSelectOptions {
666
731
  label: string;
667
732
  value: string;
668
- };
733
+ }
669
734
  export interface ISelectProps {
670
735
  /** Label */
671
736
  label?: string;
@@ -706,65 +771,80 @@ declare module '@agility/plenum-ui/stories/molecules/inputs/select/index' {
706
771
 
707
772
  }
708
773
  declare module '@agility/plenum-ui/stories/molecules/inputs/textArea/TextArea' {
709
- /// <reference types="react" />
710
- export interface ITextAreaFieldProps extends React.ComponentPropsWithoutRef<"textarea"> {
711
- /** Callback on change */
712
- handleChange: (value: string) => void;
713
- /** textarea ID*/
714
- id: string;
715
- /** textarea Name */
716
- name: string;
717
- /** Force the focus state on the textarea */
718
- isFocused?: boolean;
719
- /** Error condition */
774
+ import React from "react";
775
+ interface ILabelProps extends React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement> {
776
+ display: string;
777
+ htmlFor?: string;
778
+ }
779
+ export interface ITextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange"> {
780
+ /** Input ID */
781
+ id?: string;
782
+ /** Input Name */
783
+ name?: string;
784
+ /** Label for the input */
785
+ label?: ILabelProps;
786
+ /** Error state */
720
787
  isError?: boolean;
788
+ /** If field is required */
789
+ isRequired?: boolean;
721
790
  /** Disabled state */
722
791
  isDisabled?: boolean;
723
- /** Readonly state */
724
- isReadonly?: boolean;
725
- /** textarea value */
726
- value: string;
727
- /** If field is required */
728
- required?: boolean;
729
- /**Allow Text Area Resize*/
730
- textAreaResize?: boolean;
792
+ /** Set default value */
793
+ defaultValue?: string;
794
+ value?: string;
795
+ /** Message shown under the text field */
796
+ message?: string;
797
+ /** Input character counter */
798
+ isShowCounter?: boolean;
799
+ /** Max length of input character */
800
+ maxLength?: number;
801
+ /** Callback on change */
802
+ onChange?(value: string): void;
803
+ /** Number of rows */
804
+ rows?: number;
805
+ /** Number of cols */
806
+ cols?: number;
807
+ placeholder?: string;
731
808
  className?: string;
809
+ ref?: React.LegacyRef<HTMLTextAreaElement>;
732
810
  }
733
- const TextAreaField: React.FC<ITextAreaFieldProps>;
734
- export default TextAreaField;
811
+ const Textarea: React.FC<ITextareaProps>;
812
+ export default Textarea;
735
813
 
736
814
  }
737
815
  declare module '@agility/plenum-ui/stories/molecules/inputs/textArea/TextArea.stories' {
738
816
  import type { Meta, StoryObj } from "@storybook/react";
739
- import TextArea from "@agility/plenum-ui/stories/molecules/inputs/textArea/TextArea";
740
- const meta: Meta<typeof TextArea>;
741
- type Story = StoryObj<typeof TextArea>;
742
- export const DefaultTextArea: Story;
817
+ import Textarea from "@agility/plenum-ui/stories/molecules/inputs/textArea/TextArea";
818
+ const meta: Meta<typeof Textarea>;
819
+ type Story = StoryObj<typeof Textarea>;
820
+ export const DefaultTextarea: Story;
743
821
  export default meta;
744
822
 
745
823
  }
746
824
  declare module '@agility/plenum-ui/stories/molecules/inputs/textArea/index' {
747
- import TextAreaField, { ITextAreaFieldProps } from "@agility/plenum-ui/stories/molecules/inputs/textArea/TextArea";
748
- export type { ITextAreaFieldProps };
749
- export default TextAreaField;
825
+ import TextArea, { ITextareaProps } from "@agility/plenum-ui/stories/molecules/inputs/textArea/TextArea";
826
+ export type { ITextareaProps };
827
+ export default TextArea;
750
828
 
751
829
  }
752
830
  declare module '@agility/plenum-ui/stories/molecules/inputs/toggleSwitch/ToggleSwitch' {
753
831
  import React from "react";
754
832
  import { IDynamicIconProps } from "@/stories/atoms";
833
+ interface ToggleSwitchLabel {
834
+ text: string | JSX.Element;
835
+ className?: string;
836
+ xPosition?: "left" | "right";
837
+ }
755
838
  export interface IToggleSwitchProps {
756
839
  isChecked: boolean;
757
840
  onChange: (isChecked: boolean) => void;
758
- label?: {
759
- text: string | JSX.Element;
760
- className?: string;
761
- xPosition?: "left" | "right";
762
- };
763
- screenReaderLabel: string;
841
+ label?: ToggleSwitchLabel;
842
+ screenReaderLabel?: string;
764
843
  name: string;
765
844
  id: string;
766
- variant: "base" | "short";
845
+ variant?: "base" | "short";
767
846
  withIcon?: IDynamicIconProps;
847
+ disabled?: boolean;
768
848
  }
769
849
  const ToggleSwitch: React.FC<IToggleSwitchProps>;
770
850
  export default ToggleSwitch;
@@ -779,19 +859,17 @@ declare module '@agility/plenum-ui/stories/molecules/inputs/toggleSwitch/index'
779
859
  declare module '@agility/plenum-ui/stories/organisms/AnimatedLabelInput/AnimatedLabelInput' {
780
860
  import React from "react";
781
861
  import { IInputFieldProps } from "@/stories/molecules/inputs/InputField";
782
- import { ITextAreaFieldProps } from "@/stories/molecules/inputs/textArea/TextArea";
783
- interface ILabelProps extends React.ComponentPropsWithoutRef<"label"> {
862
+ interface ILabelProps extends React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement> {
784
863
  display: string;
785
864
  }
786
- export interface IAnimatedLabelInputProps {
865
+ export interface IAnimatedLabelInputProps extends Omit<IInputFieldProps, "handleChange"> {
787
866
  id: string;
788
867
  containerStyles?: string;
789
868
  message?: string;
790
- input?: IInputFieldProps;
791
- textarea?: ITextAreaFieldProps;
792
869
  required?: boolean;
793
870
  isError?: boolean;
794
871
  label: ILabelProps;
872
+ handleChange: (value: string) => void;
795
873
  }
796
874
  const AnimatedLabelInput: React.FC<IAnimatedLabelInputProps>;
797
875
  export default AnimatedLabelInput;
@@ -799,8 +877,29 @@ declare module '@agility/plenum-ui/stories/organisms/AnimatedLabelInput/Animated
799
877
  }
800
878
  declare module '@agility/plenum-ui/stories/organisms/AnimatedLabelInput/index' {
801
879
  import AnimatedLabelInput, { IAnimatedLabelInputProps } from "@agility/plenum-ui/stories/organisms/AnimatedLabelInput/AnimatedLabelInput";
802
- export default AnimatedLabelInput;
803
880
  export type { IAnimatedLabelInputProps };
881
+ export default AnimatedLabelInput;
882
+
883
+ }
884
+ declare module '@agility/plenum-ui/stories/organisms/AnimatedLabelTextArea/AnimatedLabelTextArea' {
885
+ import React from "react";
886
+ import { ITextareaProps } from "@/stories/molecules/inputs/textArea";
887
+ export interface IAnimatedLabelTextAreaProps extends ITextareaProps {
888
+ id: string;
889
+ containerStyles?: string;
890
+ message?: string;
891
+ required?: boolean;
892
+ isError?: boolean;
893
+ handleChange: (value: string) => void;
894
+ }
895
+ const AnimatedLabelTextArea: React.FC<IAnimatedLabelTextAreaProps>;
896
+ export default AnimatedLabelTextArea;
897
+
898
+ }
899
+ declare module '@agility/plenum-ui/stories/organisms/AnimatedLabelTextArea/index' {
900
+ import AnimatedLabelTextArea, { IAnimatedLabelTextAreaProps } from "@agility/plenum-ui/stories/organisms/AnimatedLabelTextArea/AnimatedLabelTextArea";
901
+ export type { IAnimatedLabelTextAreaProps };
902
+ export default AnimatedLabelTextArea;
804
903
 
805
904
  }
806
905
  declare module '@agility/plenum-ui/stories/organisms/ButtonDropdown/ButtonDropdown' {
@@ -830,28 +929,28 @@ declare module '@agility/plenum-ui/stories/organisms/DropdownComponent/DropdownC
830
929
  import React, { HTMLAttributes } from "react";
831
930
  import { Placement } from "@floating-ui/react";
832
931
  import { ClassNameWithAutocomplete } from "utils/types";
833
- import { IDynamicIconProps, UnifiedIconName } from "@/stories/atoms/icons";
834
- export interface IItemProp extends HTMLAttributes<HTMLButtonElement> {
835
- icon?: IDynamicIconProps | UnifiedIconName;
932
+ import { IDynamicIconProps } from "@/stories/atoms/icons";
933
+ export interface IItemProp {
934
+ icon?: IDynamicIconProps;
836
935
  iconPosition?: "trailing" | "leading";
837
936
  label: string;
838
937
  onClick?(): void;
839
938
  isEmphasized?: boolean;
840
939
  key: React.Key;
841
- }
842
- export interface IDropdownClassnames {
843
- groupClassname?: ClassNameWithAutocomplete;
844
- itemsClassname?: ClassNameWithAutocomplete;
845
- itemClassname?: ClassNameWithAutocomplete;
846
- activeItemClassname?: ClassNameWithAutocomplete;
847
- buttonClassname?: ClassNameWithAutocomplete;
940
+ iconObj?: JSX.Element;
848
941
  }
849
942
  export interface IDropdownProps extends HTMLAttributes<HTMLDivElement> {
850
943
  items: IItemProp[][];
851
944
  label: string;
852
945
  CustomDropdownTrigger?: React.ReactNode;
853
946
  id: string;
854
- classNames?: IDropdownClassnames;
947
+ groupClassname?: ClassNameWithAutocomplete;
948
+ itemsClassname?: ClassNameWithAutocomplete;
949
+ itemClassname?: ClassNameWithAutocomplete;
950
+ activeItemClassname?: ClassNameWithAutocomplete;
951
+ buttonClassname?: ClassNameWithAutocomplete;
952
+ iconClassname?: ClassNameWithAutocomplete;
953
+ iconSpacingClassname?: ClassNameWithAutocomplete;
855
954
  placement?: Placement;
856
955
  offsetOptions?: Partial<{
857
956
  mainAxis: number;
@@ -859,7 +958,15 @@ declare module '@agility/plenum-ui/stories/organisms/DropdownComponent/DropdownC
859
958
  alignmentAxis: number | null;
860
959
  }>;
861
960
  }
862
- export const defaultClassNames: IDropdownClassnames;
961
+ export const defaultClassNames: {
962
+ groupClassname: string;
963
+ itemsClassname: string;
964
+ itemClassname: string;
965
+ activeItemClassname: string;
966
+ buttonClassname: string;
967
+ iconClassname: string;
968
+ iconSpacingClassname: string;
969
+ };
863
970
  /** Comment */
864
971
  const Dropdown: React.FC<IDropdownProps>;
865
972
  export default Dropdown;
@@ -872,8 +979,8 @@ declare module '@agility/plenum-ui/stories/organisms/DropdownComponent/dropdownI
872
979
 
873
980
  }
874
981
  declare module '@agility/plenum-ui/stories/organisms/DropdownComponent/index' {
875
- import Dropdown, { IItemProp, IDropdownClassnames, IDropdownProps, defaultClassNames } from "@agility/plenum-ui/stories/organisms/DropdownComponent/DropdownComponent";
876
- export type { IItemProp, IDropdownClassnames, IDropdownProps };
982
+ import Dropdown, { IItemProp, IDropdownProps, defaultClassNames } from "@agility/plenum-ui/stories/organisms/DropdownComponent/DropdownComponent";
983
+ export type { IItemProp, IDropdownProps };
877
984
  export { defaultClassNames };
878
985
  export default Dropdown;
879
986
 
@@ -902,8 +1009,8 @@ declare module '@agility/plenum-ui/stories/organisms/EmptySectionPlaceholder/Emp
902
1009
  }
903
1010
  declare module '@agility/plenum-ui/stories/organisms/EmptySectionPlaceholder/index' {
904
1011
  import EmptySectionPlaceholder, { IEmptySectionPlaceholderProps } from "@agility/plenum-ui/stories/organisms/EmptySectionPlaceholder/EmptySectionPlaceholder";
905
- export default EmptySectionPlaceholder;
906
1012
  export type { IEmptySectionPlaceholderProps };
1013
+ export default EmptySectionPlaceholder;
907
1014
 
908
1015
  }
909
1016
  declare module '@agility/plenum-ui/stories/organisms/FormInputWithAddons/FormInputWithAddons' {
@@ -935,15 +1042,93 @@ declare module '@agility/plenum-ui/stories/organisms/FormInputWithAddons/index'
935
1042
  export type { IFormInputWithAddonsProps };
936
1043
  export default FormInputWithAddons;
937
1044
 
1045
+ }
1046
+ declare module '@agility/plenum-ui/stories/organisms/TextInputSelect/InputSelect' {
1047
+ import { FC } from "react";
1048
+ export type SelectOptions = {
1049
+ label: string;
1050
+ value: string;
1051
+ };
1052
+ export interface InputSelectProps {
1053
+ align: "left" | "right";
1054
+ /** Show the CTA without Background color and a border seperator */
1055
+ inputOptions: SelectOptions[];
1056
+ /** Onclick callback */
1057
+ onSelectOption?(value: string): void;
1058
+ className?: string;
1059
+ isDisabled?: boolean;
1060
+ }
1061
+ /** Comment */
1062
+ export const InputSelect: FC<InputSelectProps>;
1063
+
1064
+ }
1065
+ declare module '@agility/plenum-ui/stories/organisms/TextInputSelect/TextInputSelect' {
1066
+ import { FC } from "react";
1067
+ import { AcceptedInputTypes } from "@/stories/molecules";
1068
+ export type SelectOptions = {
1069
+ label: string;
1070
+ value: string;
1071
+ };
1072
+ export interface ITextInputSelectProps {
1073
+ /** Input type*/
1074
+ type: AcceptedInputTypes;
1075
+ /** Input ID */
1076
+ id?: string;
1077
+ /** Input Name */
1078
+ name?: string;
1079
+ /** Label for the input */
1080
+ label?: string;
1081
+ /** placeholder for the input */
1082
+ placeholder?: string;
1083
+ /** Force the focus state on the input */
1084
+ isFocused?: boolean;
1085
+ /** Error state */
1086
+ isError?: boolean;
1087
+ /** If field is required */
1088
+ isRequired?: boolean;
1089
+ /** Disabled state */
1090
+ isDisabled?: boolean;
1091
+ /** Set default value */
1092
+ defaultValue?: string;
1093
+ /** Set value */
1094
+ value: string;
1095
+ /** Message shown under the text field */
1096
+ message?: string;
1097
+ /** Input character counter */
1098
+ isShowCounter?: boolean;
1099
+ /** Max length of input character */
1100
+ maxLength?: number;
1101
+ /** Select input location */
1102
+ selectLocation?: "left" | "right";
1103
+ /** Prefix */
1104
+ prefix?: string;
1105
+ /** List of options to show on the select field */
1106
+ inputOptions?: SelectOptions[];
1107
+ /** Callback on base input */
1108
+ onChange?(value: string): void;
1109
+ /** Callback on input select field */
1110
+ onSelectOption?(value: string): void;
1111
+ }
1112
+ const TextInputSelect: FC<ITextInputSelectProps>;
1113
+ export default TextInputSelect;
1114
+
1115
+ }
1116
+ declare module '@agility/plenum-ui/stories/organisms/TextInputSelect/index' {
1117
+ import TextInputSelect, { ITextInputSelectProps } from "@agility/plenum-ui/stories/organisms/TextInputSelect/TextInputSelect";
1118
+ export type { ITextInputSelectProps };
1119
+ export default TextInputSelect;
1120
+
938
1121
  }
939
1122
  declare module '@agility/plenum-ui/stories/organisms/index' {
940
1123
  import AnimatedLabelInput, { IAnimatedLabelInputProps } from "@agility/plenum-ui/stories/organisms/AnimatedLabelInput/index";
1124
+ import AnimatedLabelTextArea, { IAnimatedLabelTextAreaProps } from "@agility/plenum-ui/stories/organisms/AnimatedLabelTextArea/index";
941
1125
  import ButtonDropdown, { IButtonDropdownProps } from "@agility/plenum-ui/stories/organisms/ButtonDropdown/index";
942
- import Dropdown, { IDropdownClassnames, IDropdownProps, IItemProp } from "@agility/plenum-ui/stories/organisms/DropdownComponent/index";
1126
+ import Dropdown, { IDropdownProps, IItemProp } from "@agility/plenum-ui/stories/organisms/DropdownComponent/index";
943
1127
  import EmptySectionPlaceholder, { IEmptySectionPlaceholderProps } from "@agility/plenum-ui/stories/organisms/EmptySectionPlaceholder/index";
944
1128
  import FormInputWithAddons, { IFormInputWithAddonsProps } from "@agility/plenum-ui/stories/organisms/FormInputWithAddons/index";
945
- export type { IAnimatedLabelInputProps, IButtonDropdownProps, IDropdownClassnames, IDropdownProps, IEmptySectionPlaceholderProps, IItemProp, IFormInputWithAddonsProps };
946
- export { AnimatedLabelInput, ButtonDropdown, Dropdown, EmptySectionPlaceholder, FormInputWithAddons };
1129
+ import TextInputSelect, { ITextInputSelectProps } from "@agility/plenum-ui/stories/organisms/TextInputSelect/index";
1130
+ export type { IAnimatedLabelInputProps, IAnimatedLabelTextAreaProps, IButtonDropdownProps, IDropdownProps, IEmptySectionPlaceholderProps, IItemProp, IFormInputWithAddonsProps, ITextInputSelectProps };
1131
+ export { AnimatedLabelInput, AnimatedLabelTextArea, ButtonDropdown, Dropdown, EmptySectionPlaceholder, FormInputWithAddons, TextInputSelect };
947
1132
 
948
1133
  }
949
1134
  declare module '@agility/plenum-ui/utils/types' {