@inntechcorp/it-design 2.0.30 → 2.0.32

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.cjs.js +46 -46
  2. package/dist/index.d.mts +2 -0
  3. package/dist/index.d.ts +30 -3
  4. package/dist/index.esm.js +41 -41
  5. package/dist/modal/container/ModalContainer.d.ts +1 -1
  6. package/dist/stories/TextArea.d.ts +3 -0
  7. package/dist/stories/TextArea.stories.d.ts +19 -0
  8. package/dist/textarea/index.d.ts +4 -0
  9. package/dist/textarea/styled.d.ts +15 -0
  10. package/dist/tinyscrollbar/index.d.ts +1 -1
  11. package/dist/types/TextAreaProps.d.ts +28 -0
  12. package/dist/utils/GetSizeBySizeSlug.d.ts +1 -1
  13. package/package.json +1 -1
  14. /package/dist/accordion/item/{styled.components.d.ts → styled.d.ts} +0 -0
  15. /package/dist/accordion/submenu/{styled.components.d.ts → styled.d.ts} +0 -0
  16. /package/dist/back-top/{styled.components.d.ts → styled.d.ts} +0 -0
  17. /package/dist/button/{styled.components.d.ts → styled.d.ts} +0 -0
  18. /package/dist/form/group/{styled.components.d.ts → styled.d.ts} +0 -0
  19. /package/dist/input/{styled.components.d.ts → styled.d.ts} +0 -0
  20. /package/dist/modal/container/{styled.components.d.ts → styled.d.ts} +0 -0
  21. /package/dist/modal/modal/{styled.components.d.ts → styled.d.ts} +0 -0
  22. /package/dist/result/{styled.components.d.ts → styled.d.ts} +0 -0
  23. /package/dist/select/menu/{styled.components.d.ts → styled.d.ts} +0 -0
  24. /package/dist/select/option/{styled.components.d.ts → styled.d.ts} +0 -0
  25. /package/dist/select/{styled.components.d.ts → styled.d.ts} +0 -0
  26. /package/dist/select/toggle/label/floating/{styled.components.d.ts → styled.d.ts} +0 -0
  27. /package/dist/select/toggle/label/single/{styled.components.d.ts → styled.d.ts} +0 -0
  28. /package/dist/select/toggle/{styled.components.d.ts → styled.d.ts} +0 -0
  29. /package/dist/spin/{styled.components.d.ts → styled.d.ts} +0 -0
  30. /package/dist/tinyscrollbar/{styled.components.d.ts → styled.d.ts} +0 -0
package/dist/index.d.mts CHANGED
@@ -32,6 +32,7 @@ export { default as Accordion } from './accordion';
32
32
  export { default as Calendar } from './calendar';
33
33
  export { default as DatePicker } from './datepicker';
34
34
  export { default as Input } from './input';
35
+ export { default as TextArea } from './textarea';
35
36
  export { default as Switch } from './switch';
36
37
  export { default as Tooltip } from './tooltip';
37
38
  /**
@@ -66,6 +67,7 @@ export type { AccordionProps } from './types/AccordionProps';
66
67
  export type { AccordionSubMenuProps } from './types/AccordionSubMenuProps';
67
68
  export type { AccordionItemProps } from './types/AccordionItemProps';
68
69
  export type { InputProps, InputVariant } from './types/InputProps';
70
+ export type { TextAreaProps, TextAreaVariant, TextAreaEvent } from './types/TextAreaProps';
69
71
  export type { SelectProps, SelectOptionProps, SelectVariant } from './types/SelectProps';
70
72
  export type { CheckboxProps, CheckboxGroupProps, GroupCheckboxOptionType, CheckboxEvent } from './types/CheckboxProps';
71
73
  export type { ITDImperativeFuncProps } from './types/ITDImperativeFuncProps';
package/dist/index.d.ts CHANGED
@@ -6,7 +6,6 @@ import { IStyledComponent } from 'styled-components';
6
6
  import { Cancel, AxiosProgressEvent } from 'axios';
7
7
  import { ModalState as ModalState$1, FormValidationTypes } from 'enums/enum';
8
8
  import { ModalProps as ModalProps$1 } from 'types/ModalProps';
9
- import { ChildrenProps as ChildrenProps$2 } from 'types/ChildrenProps.js';
10
9
 
11
10
  type ITDContextType = {
12
11
  theme: string;
@@ -461,6 +460,8 @@ declare const DatePicker: react__default.ForwardRefExoticComponent<react__defaul
461
460
  */
462
461
  declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<ITDImperativeFuncProps>>;
463
462
 
463
+ declare const TextArea: react.ForwardRefExoticComponent<TextAreaProps & react.RefAttributes<ITDImperativeFuncProps>>;
464
+
464
465
  declare const Switch: react.ForwardRefExoticComponent<SwitchProps & react.RefAttributes<ITDImperativeFuncProps>>;
465
466
 
466
467
  declare const Tooltip: react__default.ForwardRefExoticComponent<react__default.RefAttributes<any>>;
@@ -625,7 +626,7 @@ declare function Status({ variant, size, children, className, }: StatusProps): r
625
626
 
626
627
  type TinyScrollbarProps = {
627
628
  className: string;
628
- children: ChildrenProps$2;
629
+ children: ChildrenProps$1;
629
630
  };
630
631
  declare function TinyScrollbar({ className, children }: TinyScrollbarProps): react_jsx_runtime.JSX.Element;
631
632
 
@@ -707,6 +708,32 @@ type InputProps = {
707
708
  };
708
709
  type InputVariant = "default" | "filled" | "dashed";
709
710
 
711
+ type TextAreaProps = {
712
+ id?: string;
713
+ placeholder?: string;
714
+ value?: string;
715
+ defaultValue?: string;
716
+ className?: string;
717
+ size?: ITDSize;
718
+ variant?: TextAreaVariant;
719
+ rows?: number;
720
+ maxLength?: number;
721
+ disabled?: boolean;
722
+ showCount?: boolean;
723
+ onChange?: ((event: TextAreaEvent) => void);
724
+ onUpdate?: ((value: any, update: any, validation: boolean) => void) | null;
725
+ children?: ChildrenProps;
726
+ };
727
+ type TextAreaEvent = {
728
+ value?: string | number | boolean;
729
+ className: string;
730
+ disabled: boolean;
731
+ target: RefObject<HTMLTextAreaElement>;
732
+ stopPropagation: () => void;
733
+ preventDefault: () => void;
734
+ };
735
+ type TextAreaVariant = "default" | "filled" | "dashed";
736
+
710
737
  type SelectProps = {
711
738
  id?: string;
712
739
  defaultValue?: string | number;
@@ -1207,4 +1234,4 @@ declare enum FileExtensions {
1207
1234
  OTF = ".otf"
1208
1235
  }
1209
1236
 
1210
- export { ALink, Accordion, type AccordionItemProps, type AccordionProps, type AccordionSubMenuProps, AddDefaultThemeStyle, AddZero, Alert, type AlertProps, type AlertSize, type AlertType, Arrow as ArrowIcon, BackToTop, BackTop, Button, type ButtonContentPosition, type ButtonProps, type ButtonState, type ButtonType, type ButtonVariant, Calendar, Card, type CardProps, CheckFileURL, Checkbox, type CheckboxEvent, type CheckboxGroupProps, type CheckboxProps, Checkmark, ChunkArray, Collapse, ConsoleLog, ConvertCurrency, DatePicker, DetermineNewHeight, DetermineNewWidth, type FieldUpdateProps, FileChecker, FileExtensions, FileTypes, FindSelector, Form, type FormContextType, type FormItemProps, type FormProps, type FormRuleProps, type FormSubComponentProps, type FormValueProps, FormatBytes, GetByCurrency, GetCountryCodeByCurrencyCode, GetCountryCodeByLanguage, GetCurrencyFormat, GetCurrencySymbol, GetDecimalByCurrency, GetTypeByFileType, type GroupCheckboxOptionType, H1, H2, H3, H4, ITDContext, type ITDContextType, type ITDImperativeFuncProps, ITDProvider, type ITDProviderProps, type ITDSize, type ITDSizeSlug, _default as Image, InlineSelect, InlineSelectArrow, Input, type InputProps, type InputVariant, IsValidJSON, Lock as LockIcon, type ModalContentProps, ModalManager, type ModalProps, type ModalRefProps, ModalState, NoData, Notification, type NotificationContextType, type NotificationsProps, Picture, Radio, RemoveUnits, Result, Select, type SelectOptionProps, type SelectProps, type SelectVariant, type SingleQueryProps, Spin, Status, type StatusProps, type StatusVariant, Switch, type SwitchProps, Table, type TableColumnType, type TableProps, Tabs, type TabsItemProps, type TabsProps, TinyScrollbar, Tooltip, Trash, UniUpperCase, UpdateThemeStyle, Upload, Upload$1 as UploadIcon, type UploadProgressProps, type UploadProps, type UploadResultMessageProps, Wait, ZoomIn, ZoomOut, useAddExternalCSS, useComponentSize, useConnectionStatus, useConstructor, useCoreFetch, useCreateDynamicStyle, useCreateStyledStyle, useMultiQuery, useOnClickOutside, useOnESCKeyDown, useOnResize, useReCaptcha, useSingleQuery };
1237
+ export { ALink, Accordion, type AccordionItemProps, type AccordionProps, type AccordionSubMenuProps, AddDefaultThemeStyle, AddZero, Alert, type AlertProps, type AlertSize, type AlertType, Arrow as ArrowIcon, BackToTop, BackTop, Button, type ButtonContentPosition, type ButtonProps, type ButtonState, type ButtonType, type ButtonVariant, Calendar, Card, type CardProps, CheckFileURL, Checkbox, type CheckboxEvent, type CheckboxGroupProps, type CheckboxProps, Checkmark, ChunkArray, Collapse, ConsoleLog, ConvertCurrency, DatePicker, DetermineNewHeight, DetermineNewWidth, type FieldUpdateProps, FileChecker, FileExtensions, FileTypes, FindSelector, Form, type FormContextType, type FormItemProps, type FormProps, type FormRuleProps, type FormSubComponentProps, type FormValueProps, FormatBytes, GetByCurrency, GetCountryCodeByCurrencyCode, GetCountryCodeByLanguage, GetCurrencyFormat, GetCurrencySymbol, GetDecimalByCurrency, GetTypeByFileType, type GroupCheckboxOptionType, H1, H2, H3, H4, ITDContext, type ITDContextType, type ITDImperativeFuncProps, ITDProvider, type ITDProviderProps, type ITDSize, type ITDSizeSlug, _default as Image, InlineSelect, InlineSelectArrow, Input, type InputProps, type InputVariant, IsValidJSON, Lock as LockIcon, type ModalContentProps, ModalManager, type ModalProps, type ModalRefProps, ModalState, NoData, Notification, type NotificationContextType, type NotificationsProps, Picture, Radio, RemoveUnits, Result, Select, type SelectOptionProps, type SelectProps, type SelectVariant, type SingleQueryProps, Spin, Status, type StatusProps, type StatusVariant, Switch, type SwitchProps, Table, type TableColumnType, type TableProps, Tabs, type TabsItemProps, type TabsProps, TextArea, type TextAreaEvent, type TextAreaProps, type TextAreaVariant, TinyScrollbar, Tooltip, Trash, UniUpperCase, UpdateThemeStyle, Upload, Upload$1 as UploadIcon, type UploadProgressProps, type UploadProps, type UploadResultMessageProps, Wait, ZoomIn, ZoomOut, useAddExternalCSS, useComponentSize, useConnectionStatus, useConstructor, useCoreFetch, useCreateDynamicStyle, useCreateStyledStyle, useMultiQuery, useOnClickOutside, useOnESCKeyDown, useOnResize, useReCaptcha, useSingleQuery };