@agility/plenum-ui 2.0.0-rc6 → 2.0.0-rc8

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 (30) hide show
  1. package/dist/index.d.ts +129 -43
  2. package/dist/index.js +283 -96
  3. package/dist/index.js.map +4 -4
  4. package/dist/lib/tailwind.css +33 -8
  5. package/dist/types/stories/index.d.ts +4 -4
  6. package/dist/types/stories/molecules/index.d.ts +3 -3
  7. package/dist/types/stories/molecules/inputs/InputField/InputField.d.ts +1 -1
  8. package/dist/types/stories/molecules/inputs/index.d.ts +3 -3
  9. package/dist/types/stories/molecules/inputs/textArea/TextArea.d.ts +30 -21
  10. package/dist/types/stories/molecules/inputs/textArea/TextArea.stories.d.ts +4 -4
  11. package/dist/types/stories/molecules/inputs/textArea/index.d.ts +3 -3
  12. package/dist/types/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.d.ts +2 -2
  13. package/dist/types/stories/organisms/TextInputSelect/InputSelect.d.ts +16 -0
  14. package/dist/types/stories/organisms/TextInputSelect/TextInputSelect.d.ts +48 -0
  15. package/dist/types/stories/organisms/TextInputSelect/index.d.ts +3 -0
  16. package/dist/types/stories/organisms/index.d.ts +3 -2
  17. package/package.json +1 -1
  18. package/stories/index.ts +10 -6
  19. package/stories/molecules/index.ts +4 -4
  20. package/stories/molecules/inputs/InputField/InputField.tsx +1 -0
  21. package/stories/molecules/inputs/index.ts +3 -3
  22. package/stories/molecules/inputs/textArea/TextArea.stories.ts +7 -5
  23. package/stories/molecules/inputs/textArea/TextArea.tsx +110 -49
  24. package/stories/molecules/inputs/textArea/index.ts +3 -3
  25. package/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.tsx +3 -3
  26. package/stories/organisms/TextInputSelect/InputSelect.tsx +59 -0
  27. package/stories/organisms/TextInputSelect/TextInputSelect.stories.tsx +33 -0
  28. package/stories/organisms/TextInputSelect/TextInputSelect.tsx +186 -0
  29. package/stories/organisms/TextInputSelect/index.tsx +3 -0
  30. package/stories/organisms/index.ts +4 -2
@@ -746,6 +746,10 @@ select {
746
746
  border-width: 0;
747
747
  }
748
748
 
749
+ .pointer-events-none {
750
+ pointer-events: none;
751
+ }
752
+
749
753
  .static {
750
754
  position: static;
751
755
  }
@@ -1015,6 +1019,10 @@ select {
1015
1019
  bottom: 24rem;
1016
1020
  }
1017
1021
 
1022
+ .left-0 {
1023
+ left: 0px;
1024
+ }
1025
+
1018
1026
  .left-1 {
1019
1027
  left: 0.25rem;
1020
1028
  }
@@ -2033,10 +2041,6 @@ select {
2033
2041
  user-select: none;
2034
2042
  }
2035
2043
 
2036
- .resize-y {
2037
- resize: vertical;
2038
- }
2039
-
2040
2044
  .-scroll-m-10 {
2041
2045
  scroll-margin: -2.5rem;
2042
2046
  }
@@ -27912,6 +27916,11 @@ select {
27912
27916
  border-left-color: rgb(76 29 149 / 0.95);
27913
27917
  }
27914
27918
 
27919
+ .border-l-white {
27920
+ --tw-border-opacity: 1;
27921
+ border-left-color: rgb(255 255 255 / var(--tw-border-opacity));
27922
+ }
27923
+
27915
27924
  .border-l-yellow-100 {
27916
27925
  --tw-border-opacity: 1;
27917
27926
  border-left-color: rgb(255 245 212 / var(--tw-border-opacity));
@@ -54353,6 +54362,10 @@ select {
54353
54362
  padding-left: 0.75rem;
54354
54363
  }
54355
54364
 
54365
+ .pl-7 {
54366
+ padding-left: 1.75rem;
54367
+ }
54368
+
54356
54369
  .pl-\[10px\] {
54357
54370
  padding-left: 10px;
54358
54371
  }
@@ -54369,6 +54382,10 @@ select {
54369
54382
  padding-right: 1rem;
54370
54383
  }
54371
54384
 
54385
+ .pr-7 {
54386
+ padding-right: 1.75rem;
54387
+ }
54388
+
54372
54389
  .pr-9 {
54373
54390
  padding-right: 2.25rem;
54374
54391
  }
@@ -54377,10 +54394,6 @@ select {
54377
54394
  padding-right: 10px;
54378
54395
  }
54379
54396
 
54380
- .pt-2 {
54381
- padding-top: 0.5rem;
54382
- }
54383
-
54384
54397
  .text-left {
54385
54398
  text-align: left;
54386
54399
  }
@@ -63039,6 +63052,10 @@ select {
63039
63052
  outline-color: #7933DD;
63040
63053
  }
63041
63054
 
63055
+ .outline-red-500 {
63056
+ outline-color: #EF4444;
63057
+ }
63058
+
63042
63059
  .\!ring-0 {
63043
63060
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;
63044
63061
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;
@@ -63142,6 +63159,14 @@ select {
63142
63159
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
63143
63160
  }
63144
63161
 
63162
+ .focus-within\:z-10:focus-within {
63163
+ z-index: 10;
63164
+ }
63165
+
63166
+ .focus-within\:z-20:focus-within {
63167
+ z-index: 20;
63168
+ }
63169
+
63145
63170
  .focus-within\:\!border-gray-300:focus-within {
63146
63171
  --tw-border-opacity: 1 !important;
63147
63172
  border-color: rgb(209 213 219 / var(--tw-border-opacity)) !important;
@@ -1,5 +1,5 @@
1
1
  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 "./atoms";
2
- import { ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextAreaFieldProps, IToggleSwitchProps, AcceptedInputTypes, Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, TextAreaField, ToggleSwitch, TextInput, ITextInputProps } from "./molecules";
3
- import { IAnimatedLabelInputProps, IButtonDropdownProps, IDropdownClassnames, IDropdownProps, IEmptySectionPlaceholderProps, IItemProp, IFormInputWithAddonsProps, AnimatedLabelInput, ButtonDropdown, Dropdown, EmptySectionPlaceholder, FormInputWithAddons } from "./organisms";
4
- 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, ITextInputProps };
5
- 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, TextInput };
2
+ import { ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextareaProps, IToggleSwitchProps, AcceptedInputTypes, Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, Textarea, ToggleSwitch, TextInput, ITextInputProps } from "./molecules";
3
+ import { IAnimatedLabelInputProps, IButtonDropdownProps, IDropdownClassnames, IDropdownProps, IEmptySectionPlaceholderProps, IItemProp, IFormInputWithAddonsProps, AnimatedLabelInput, ButtonDropdown, Dropdown, EmptySectionPlaceholder, FormInputWithAddons, TextInputSelect, ITextInputSelectProps } from "./organisms";
4
+ 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 };
5
+ 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 };
@@ -1,3 +1,3 @@
1
- import { ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextAreaFieldProps, IToggleSwitchProps, AcceptedInputTypes, Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, TextAreaField, ToggleSwitch, ITextInputProps, TextInput } from "./inputs";
2
- export type { ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextAreaFieldProps, IToggleSwitchProps, AcceptedInputTypes, ITextInputProps };
3
- export { Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, TextAreaField, ToggleSwitch, TextInput };
1
+ import { ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextareaProps, IToggleSwitchProps, AcceptedInputTypes, Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, Textarea, ToggleSwitch, ITextInputProps, TextInput } from "./inputs";
2
+ export type { ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextareaProps, IToggleSwitchProps, AcceptedInputTypes, ITextInputProps };
3
+ export { Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, Textarea, ToggleSwitch, TextInput };
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- export type AcceptedInputTypes = "date" | "datetime-local" | "email" | "month" | "number" | "password" | "search" | "submit" | "tel" | "text" | "url";
2
+ export type AcceptedInputTypes = "date" | "datetime-local" | "email" | "month" | "number" | "password" | "search" | "submit" | "tel" | "text" | "url" | "currency";
3
3
  export interface IInputFieldProps extends React.ComponentPropsWithoutRef<"input"> {
4
4
  /** Callback on change */
5
5
  handleChange: (value: string) => void;
@@ -5,8 +5,8 @@ import InputLabel, { IInputLabelProps } from "./InputLabel";
5
5
  import NestedInputButton, { INestedInputButtonProps } from "./NestedInputButton";
6
6
  import Radio, { IRadioProps } from "./radio";
7
7
  import Select, { ISelectProps } from "./select";
8
- import TextAreaField, { ITextAreaFieldProps } from "./textArea";
8
+ import Textarea, { ITextareaProps } from "./textArea";
9
9
  import TextInput, { ITextInputProps } from "./TextInput";
10
10
  import ToggleSwitch, { IToggleSwitchProps } from "./toggleSwitch";
11
- export type { ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextAreaFieldProps, ITextInputProps, IToggleSwitchProps, AcceptedInputTypes };
12
- export { Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, TextAreaField, ToggleSwitch, TextInput };
11
+ export type { ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextareaProps, ITextInputProps, IToggleSwitchProps, AcceptedInputTypes };
12
+ export { Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, Textarea, ToggleSwitch, TextInput };
@@ -1,26 +1,35 @@
1
- /// <reference types="react" />
2
- export interface ITextAreaFieldProps extends React.ComponentPropsWithoutRef<"textarea"> {
3
- /** Callback on change */
4
- handleChange: (value: string) => void;
5
- /** textarea ID*/
6
- id: string;
7
- /** textarea Name */
8
- name: string;
9
- /** Force the focus state on the textarea */
10
- isFocused?: boolean;
11
- /** Error condition */
1
+ import React from "react";
2
+ export interface ITextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange"> {
3
+ /** Input ID */
4
+ id?: string;
5
+ /** Input Name */
6
+ name?: string;
7
+ /** Label for the input */
8
+ label?: string;
9
+ /** Error state */
12
10
  isError?: boolean;
11
+ /** If field is required */
12
+ isRequired?: boolean;
13
13
  /** Disabled state */
14
14
  isDisabled?: boolean;
15
- /** Readonly state */
16
- isReadonly?: boolean;
17
- /** textarea value */
18
- value: string;
19
- /** If field is required */
20
- required?: boolean;
21
- /**Allow Text Area Resize*/
22
- textAreaResize?: boolean;
15
+ /** Set default value */
16
+ defaultValue?: string;
17
+ value?: string;
18
+ /** Message shown under the text field */
19
+ message?: string;
20
+ /** Input character counter */
21
+ isShowCounter?: boolean;
22
+ /** Max length of input character */
23
+ maxLength?: number;
24
+ /** Callback on change */
25
+ onChange?(value: string): void;
26
+ /** Number of rows */
27
+ rows?: number;
28
+ /** Number of cols */
29
+ cols?: number;
30
+ placeholder?: string;
23
31
  className?: string;
32
+ ref?: React.LegacyRef<HTMLTextAreaElement>;
24
33
  }
25
- declare const TextAreaField: React.FC<ITextAreaFieldProps>;
26
- export default TextAreaField;
34
+ declare const Textarea: React.FC<ITextareaProps>;
35
+ export default Textarea;
@@ -1,6 +1,6 @@
1
1
  import type { Meta, StoryObj } from "@storybook/react";
2
- import TextArea from "./TextArea";
3
- declare const meta: Meta<typeof TextArea>;
4
- type Story = StoryObj<typeof TextArea>;
5
- export declare const DefaultTextArea: Story;
2
+ import Textarea from "./TextArea";
3
+ declare const meta: Meta<typeof Textarea>;
4
+ type Story = StoryObj<typeof Textarea>;
5
+ export declare const DefaultTextarea: Story;
6
6
  export default meta;
@@ -1,3 +1,3 @@
1
- import TextAreaField, { ITextAreaFieldProps } from "./TextArea";
2
- export type { ITextAreaFieldProps };
3
- export default TextAreaField;
1
+ import TextArea, { ITextareaProps } from "./TextArea";
2
+ export type { ITextareaProps };
3
+ export default TextArea;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { IInputFieldProps } from "@/stories/molecules/inputs/InputField";
3
- import { ITextAreaFieldProps } from "@/stories/molecules/inputs/textArea/TextArea";
3
+ import { ITextareaProps } from "@/stories/molecules/inputs/textArea/TextArea";
4
4
  interface ILabelProps extends React.ComponentPropsWithoutRef<"label"> {
5
5
  display: string;
6
6
  }
@@ -9,7 +9,7 @@ export interface IAnimatedLabelInputProps {
9
9
  containerStyles?: string;
10
10
  message?: string;
11
11
  input?: IInputFieldProps;
12
- textarea?: ITextAreaFieldProps;
12
+ textarea?: ITextareaProps;
13
13
  required?: boolean;
14
14
  isError?: boolean;
15
15
  label: ILabelProps;
@@ -0,0 +1,16 @@
1
+ import { FC } from "react";
2
+ export type SelectOptions = {
3
+ label: string;
4
+ value: string;
5
+ };
6
+ export interface InputSelectProps {
7
+ align: "left" | "right";
8
+ /** Show the CTA without Background color and a border seperator */
9
+ inputOptions: SelectOptions[];
10
+ /** Onclick callback */
11
+ onSelectOption?(value: string): void;
12
+ className?: string;
13
+ isDisabled?: boolean;
14
+ }
15
+ /** Comment */
16
+ export declare const InputSelect: FC<InputSelectProps>;
@@ -0,0 +1,48 @@
1
+ import { FC } from "react";
2
+ import { AcceptedInputTypes } from "@/stories/molecules";
3
+ export type SelectOptions = {
4
+ label: string;
5
+ value: string;
6
+ };
7
+ export interface ITextInputSelectProps {
8
+ /** Input type*/
9
+ type: AcceptedInputTypes;
10
+ /** Input ID */
11
+ id?: string;
12
+ /** Input Name */
13
+ name?: string;
14
+ /** Label for the input */
15
+ label?: string;
16
+ /** placeholder for the input */
17
+ placeholder?: string;
18
+ /** Force the focus state on the input */
19
+ isFocused?: boolean;
20
+ /** Error state */
21
+ isError?: boolean;
22
+ /** If field is required */
23
+ isRequired?: boolean;
24
+ /** Disabled state */
25
+ isDisabled?: boolean;
26
+ /** Set default value */
27
+ defaultValue?: string;
28
+ /** Set value */
29
+ value: string;
30
+ /** Message shown under the text field */
31
+ message?: string;
32
+ /** Input character counter */
33
+ isShowCounter?: boolean;
34
+ /** Max length of input character */
35
+ maxLength?: number;
36
+ /** Select input location */
37
+ selectLocation?: "left" | "right";
38
+ /** Prefix */
39
+ prefix?: string;
40
+ /** List of options to show on the select field */
41
+ inputOptions?: SelectOptions[];
42
+ /** Callback on base input */
43
+ onChange?(value: string): void;
44
+ /** Callback on input select field */
45
+ onSelectOption?(value: string): void;
46
+ }
47
+ declare const TextInputSelect: FC<ITextInputSelectProps>;
48
+ export default TextInputSelect;
@@ -0,0 +1,3 @@
1
+ import TextInputSelect, { ITextInputSelectProps } from "./TextInputSelect";
2
+ export type { ITextInputSelectProps };
3
+ export default TextInputSelect;
@@ -3,5 +3,6 @@ import ButtonDropdown, { IButtonDropdownProps } from "./ButtonDropdown";
3
3
  import Dropdown, { IDropdownClassnames, IDropdownProps, IItemProp } from "./DropdownComponent";
4
4
  import EmptySectionPlaceholder, { IEmptySectionPlaceholderProps } from "./EmptySectionPlaceholder";
5
5
  import FormInputWithAddons, { IFormInputWithAddonsProps } from "./FormInputWithAddons";
6
- export type { IAnimatedLabelInputProps, IButtonDropdownProps, IDropdownClassnames, IDropdownProps, IEmptySectionPlaceholderProps, IItemProp, IFormInputWithAddonsProps };
7
- export { AnimatedLabelInput, ButtonDropdown, Dropdown, EmptySectionPlaceholder, FormInputWithAddons };
6
+ import TextInputSelect, { ITextInputSelectProps } from "./TextInputSelect";
7
+ export type { IAnimatedLabelInputProps, IButtonDropdownProps, IDropdownClassnames, IDropdownProps, IEmptySectionPlaceholderProps, IItemProp, IFormInputWithAddonsProps, ITextInputSelectProps };
8
+ export { AnimatedLabelInput, ButtonDropdown, Dropdown, EmptySectionPlaceholder, FormInputWithAddons, TextInputSelect };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agility/plenum-ui",
3
- "version": "2.0.0-rc6",
3
+ "version": "2.0.0-rc8",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
package/stories/index.ts CHANGED
@@ -34,7 +34,7 @@ import {
34
34
  INestedInputButtonProps,
35
35
  IRadioProps,
36
36
  ISelectProps,
37
- ITextAreaFieldProps,
37
+ ITextareaProps,
38
38
  IToggleSwitchProps,
39
39
  AcceptedInputTypes,
40
40
  Checkbox,
@@ -44,7 +44,7 @@ import {
44
44
  NestedInputButton,
45
45
  Radio,
46
46
  Select,
47
- TextAreaField,
47
+ Textarea,
48
48
  ToggleSwitch,
49
49
  TextInput,
50
50
  ITextInputProps
@@ -62,7 +62,9 @@ import {
62
62
  ButtonDropdown,
63
63
  Dropdown,
64
64
  EmptySectionPlaceholder,
65
- FormInputWithAddons
65
+ FormInputWithAddons,
66
+ TextInputSelect,
67
+ ITextInputSelectProps
66
68
  } from "./organisms"
67
69
 
68
70
  export type {
@@ -70,6 +72,7 @@ export type {
70
72
  IBadgeProps,
71
73
  IButtonProps,
72
74
  ICapsuleProps,
75
+ ITextInputSelectProps,
73
76
  IDynamicIconProps,
74
77
  IIconWithShadowProps,
75
78
  ILoaderProps,
@@ -81,7 +84,7 @@ export type {
81
84
  INestedInputButtonProps,
82
85
  IRadioProps,
83
86
  ISelectProps,
84
- ITextAreaFieldProps,
87
+ ITextareaProps,
85
88
  IToggleSwitchProps,
86
89
  AcceptedInputTypes,
87
90
  IAnimatedLabelInputProps,
@@ -106,7 +109,7 @@ export {
106
109
  NestedInputButton,
107
110
  Radio,
108
111
  Select,
109
- TextAreaField,
112
+ Textarea,
110
113
  ToggleSwitch,
111
114
  AnimatedLabelInput,
112
115
  ButtonDropdown,
@@ -124,5 +127,6 @@ export {
124
127
  isHeroIcon,
125
128
  isTablerIcon,
126
129
  isUnifiedIconName,
127
- TextInput
130
+ TextInput,
131
+ TextInputSelect
128
132
  }
@@ -6,7 +6,7 @@ import {
6
6
  INestedInputButtonProps,
7
7
  IRadioProps,
8
8
  ISelectProps,
9
- ITextAreaFieldProps,
9
+ ITextareaProps,
10
10
  IToggleSwitchProps,
11
11
  AcceptedInputTypes,
12
12
  Checkbox,
@@ -16,7 +16,7 @@ import {
16
16
  NestedInputButton,
17
17
  Radio,
18
18
  Select,
19
- TextAreaField,
19
+ Textarea,
20
20
  ToggleSwitch,
21
21
  ITextInputProps,
22
22
  TextInput
@@ -30,7 +30,7 @@ export type {
30
30
  INestedInputButtonProps,
31
31
  IRadioProps,
32
32
  ISelectProps,
33
- ITextAreaFieldProps,
33
+ ITextareaProps,
34
34
  IToggleSwitchProps,
35
35
  AcceptedInputTypes,
36
36
  ITextInputProps
@@ -43,7 +43,7 @@ export {
43
43
  NestedInputButton,
44
44
  Radio,
45
45
  Select,
46
- TextAreaField,
46
+ Textarea,
47
47
  ToggleSwitch,
48
48
  TextInput
49
49
  }
@@ -13,6 +13,7 @@ export type AcceptedInputTypes =
13
13
  | "tel"
14
14
  | "text"
15
15
  | "url"
16
+ | "currency"
16
17
 
17
18
  export interface IInputFieldProps extends React.ComponentPropsWithoutRef<"input"> {
18
19
  /** Callback on change */
@@ -5,7 +5,7 @@ import InputLabel, { IInputLabelProps } from "./InputLabel"
5
5
  import NestedInputButton, { INestedInputButtonProps } from "./NestedInputButton"
6
6
  import Radio, { IRadioProps } from "./radio"
7
7
  import Select, { ISelectProps } from "./select"
8
- import TextAreaField, { ITextAreaFieldProps } from "./textArea"
8
+ import Textarea, { ITextareaProps } from "./textArea"
9
9
  import TextInput, { ITextInputProps } from "./TextInput"
10
10
  import ToggleSwitch, { IToggleSwitchProps } from "./toggleSwitch"
11
11
 
@@ -17,7 +17,7 @@ export type {
17
17
  INestedInputButtonProps,
18
18
  IRadioProps,
19
19
  ISelectProps,
20
- ITextAreaFieldProps,
20
+ ITextareaProps,
21
21
  ITextInputProps,
22
22
  IToggleSwitchProps,
23
23
  AcceptedInputTypes
@@ -31,7 +31,7 @@ export {
31
31
  NestedInputButton,
32
32
  Radio,
33
33
  Select,
34
- TextAreaField,
34
+ Textarea,
35
35
  ToggleSwitch,
36
36
  TextInput
37
37
  }
@@ -1,19 +1,21 @@
1
1
  import type { Meta, StoryObj } from "@storybook/react"
2
- import TextArea from "./TextArea"
3
- const meta: Meta<typeof TextArea> = {
2
+ import Textarea from "./TextArea"
3
+ const meta: Meta<typeof Textarea> = {
4
4
  title: "Design System/Molecules/Inputs/TextArea",
5
- component: TextArea,
5
+ component: Textarea,
6
6
  tags: ["autodocs"]
7
7
  }
8
8
  const dummyText: string = `Checkmate... Life finds a way. Is this my espresso machine? Wh-what is-h-how did you get my espresso machine? You're a very talented young man, with your own clever thoughts and ideas. Do you need a manager? Is this my espresso machine? Wh-what is-h-how did you get my espresso machine?
9
9
 
10
10
  I was part of something special. Just my luck, no ice. You really think you can fly that thing? Must go faster... go, go, go, go, go! God creates dinosaurs. God destroys dinosaurs. God creates Man. Man destroys God. Man creates Dinosaurs. Yeah, but your scientists were so preoccupied with whether or not they could, they didn't stop to think if they should.`
11
- type Story = StoryObj<typeof TextArea>
12
- export const DefaultTextArea: Story = {
11
+ type Story = StoryObj<typeof Textarea>
12
+ export const DefaultTextarea: Story = {
13
13
  args: {
14
14
  id: "appDescription",
15
15
  name: "description",
16
16
  rows: 12,
17
+ cols: 18,
18
+ label: "Description",
17
19
  placeholder: dummyText
18
20
  }
19
21
  }