@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.
- package/dist/index.d.ts +129 -43
- package/dist/index.js +283 -96
- package/dist/index.js.map +4 -4
- package/dist/lib/tailwind.css +33 -8
- package/dist/types/stories/index.d.ts +4 -4
- package/dist/types/stories/molecules/index.d.ts +3 -3
- package/dist/types/stories/molecules/inputs/InputField/InputField.d.ts +1 -1
- package/dist/types/stories/molecules/inputs/index.d.ts +3 -3
- package/dist/types/stories/molecules/inputs/textArea/TextArea.d.ts +30 -21
- package/dist/types/stories/molecules/inputs/textArea/TextArea.stories.d.ts +4 -4
- package/dist/types/stories/molecules/inputs/textArea/index.d.ts +3 -3
- package/dist/types/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.d.ts +2 -2
- package/dist/types/stories/organisms/TextInputSelect/InputSelect.d.ts +16 -0
- package/dist/types/stories/organisms/TextInputSelect/TextInputSelect.d.ts +48 -0
- package/dist/types/stories/organisms/TextInputSelect/index.d.ts +3 -0
- package/dist/types/stories/organisms/index.d.ts +3 -2
- package/package.json +1 -1
- package/stories/index.ts +10 -6
- package/stories/molecules/index.ts +4 -4
- package/stories/molecules/inputs/InputField/InputField.tsx +1 -0
- package/stories/molecules/inputs/index.ts +3 -3
- package/stories/molecules/inputs/textArea/TextArea.stories.ts +7 -5
- package/stories/molecules/inputs/textArea/TextArea.tsx +110 -49
- package/stories/molecules/inputs/textArea/index.ts +3 -3
- package/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.tsx +3 -3
- package/stories/organisms/TextInputSelect/InputSelect.tsx +59 -0
- package/stories/organisms/TextInputSelect/TextInputSelect.stories.tsx +33 -0
- package/stories/organisms/TextInputSelect/TextInputSelect.tsx +186 -0
- package/stories/organisms/TextInputSelect/index.tsx +3 -0
- package/stories/organisms/index.ts +4 -2
package/dist/lib/tailwind.css
CHANGED
|
@@ -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,
|
|
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,
|
|
5
|
-
export { Avatar, Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select,
|
|
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,
|
|
2
|
-
export type { ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps,
|
|
3
|
-
export { Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select,
|
|
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
|
|
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,
|
|
12
|
-
export { Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select,
|
|
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
|
-
|
|
2
|
-
export interface
|
|
3
|
-
/**
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
|
|
9
|
-
/**
|
|
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
|
-
/**
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
|
26
|
-
export default
|
|
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
|
|
3
|
-
declare const meta: Meta<typeof
|
|
4
|
-
type Story = StoryObj<typeof
|
|
5
|
-
export declare const
|
|
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
|
|
2
|
-
export type {
|
|
3
|
-
export default
|
|
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 {
|
|
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?:
|
|
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;
|
|
@@ -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
|
-
|
|
7
|
-
export {
|
|
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
package/stories/index.ts
CHANGED
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
INestedInputButtonProps,
|
|
35
35
|
IRadioProps,
|
|
36
36
|
ISelectProps,
|
|
37
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
46
|
+
Textarea,
|
|
47
47
|
ToggleSwitch,
|
|
48
48
|
TextInput
|
|
49
49
|
}
|
|
@@ -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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
3
|
-
const meta: Meta<typeof
|
|
2
|
+
import Textarea from "./TextArea"
|
|
3
|
+
const meta: Meta<typeof Textarea> = {
|
|
4
4
|
title: "Design System/Molecules/Inputs/TextArea",
|
|
5
|
-
component:
|
|
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
|
|
12
|
-
export const
|
|
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
|
}
|