@inntechcorp/it-design 2.0.259 → 2.0.261

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.mts CHANGED
@@ -73,6 +73,7 @@ export type { InputProps, InputVariant } from './types/InputProps';
73
73
  export type { DatePickerProps } from './types/DatePickerProps';
74
74
  export type { CalendarProps, CalendarValueProps, CalendarDayProps } from './types/CalendarProps';
75
75
  export type { TextAreaProps, TextAreaVariant, TextAreaEvent } from './types/TextAreaProps';
76
+ export type { RadioGroupProps, RadioButtonProps, RadioType, Direction } from './types/RadioProps';
76
77
  export type { SelectProps, SelectToggleProps, SelectOptionProps, SelectValue, SelectVariant, SelectDirection, SelectPosition } from './types/SelectProps';
77
78
  export type { CheckboxProps, CheckboxGroupProps, GroupCheckboxOptionType, CheckboxEvent } from './types/CheckboxProps';
78
79
  export type { ITDImperativeFuncProps } from './types/ITDImperativeFuncProps';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
- import react__default, { MutableRefObject, RefObject, Context, ReactNode, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes, FunctionComponent, Ref, FocusEvent, KeyboardEvent, CSSProperties, ReactElement, MouseEvent } from 'react';
3
+ import react__default, { MutableRefObject, RefObject, Context, ReactNode, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes, FunctionComponent, Ref, FocusEvent, KeyboardEvent, MouseEvent, ReactElement, CSSProperties } from 'react';
4
4
  import { ChildrenProps as ChildrenProps$1 } from 'types/ChildrenProps';
5
5
  import { IStyledComponent } from 'styled-components';
6
6
  import { Cancel, AxiosProgressEvent } from 'axios';
@@ -8,7 +8,7 @@ import { SelectValue as SelectValue$1 } from 'types/SelectProps';
8
8
  import { ModalState as ModalState$1, FormValidationTypes as FormValidationTypes$1 } from 'enums/enum';
9
9
  import moment$1 from 'moment';
10
10
  import { ModalProps as ModalProps$1 } from 'types/ModalProps';
11
- import { RadioButtonProps, RadioGroupProps } from 'types/RadioProps';
11
+ import { RadioButtonProps as RadioButtonProps$1, RadioGroupProps as RadioGroupProps$1 } from 'types/RadioProps';
12
12
  import { ITDImperativeFuncProps as ITDImperativeFuncProps$1 } from 'types/ITDImperativeFuncProps';
13
13
  import { ResultProps as ResultProps$1 } from 'types/ResultProps';
14
14
 
@@ -645,13 +645,13 @@ declare const Notification: {
645
645
  useNotifications: () => NotificationContextType;
646
646
  };
647
647
 
648
- declare function Button$1({ id, name, value, type, checked, hasError, children, icon, image, component, onChange }: RadioButtonProps): react_jsx_runtime.JSX.Element;
648
+ declare function RadioButton({ id, name, value, type, buttonProps, checked, hasError, children, icon, image, component, onChange }: RadioButtonProps$1): react_jsx_runtime.JSX.Element;
649
649
 
650
- declare const _default$2: react__default.MemoExoticComponent<react__default.ForwardRefExoticComponent<RadioGroupProps & react__default.RefAttributes<ITDImperativeFuncProps$1>>>;
650
+ declare const _default$2: react__default.MemoExoticComponent<react__default.ForwardRefExoticComponent<RadioGroupProps$1 & react__default.RefAttributes<ITDImperativeFuncProps$1>>>;
651
651
 
652
652
  interface RadioComponent extends React.FC {
653
653
  Group: typeof _default$2;
654
- Button: typeof Button$1;
654
+ Button: typeof RadioButton;
655
655
  }
656
656
  declare const Radio: RadioComponent;
657
657
 
@@ -903,6 +903,64 @@ type TextAreaEvent = {
903
903
  };
904
904
  type TextAreaVariant = "default" | "filled" | "dashed";
905
905
 
906
+ type ButtonProps = {
907
+ id?: string;
908
+ disabled?: boolean;
909
+ loading?: boolean;
910
+ selected?: boolean;
911
+ strecth?: boolean;
912
+ circle?: boolean;
913
+ justify?: string;
914
+ contentPosition?: ButtonContentPosition;
915
+ type?: ButtonType;
916
+ variant?: ButtonVariant;
917
+ state?: ButtonState;
918
+ size?: ITDSize;
919
+ icon?: string | ChildrenProps | SVGElement;
920
+ href?: string;
921
+ target?: string;
922
+ className?: string;
923
+ children?: ChildrenProps;
924
+ onClick?: null | ((event: MouseEvent<any>) => void);
925
+ };
926
+ type ButtonType = "button" | "submit" | "reset";
927
+ type ButtonVariant = "default" | "solid" | "filled" | "outline" | "ghost" | "link" | "statable" | "custom";
928
+ type ButtonState = "primary" | "secondary" | "request" | "approve" | "reject" | "pending" | "requested" | string | null;
929
+ type ButtonContentPosition = "left" | "right";
930
+
931
+ type RadioType = "default" | "primary";
932
+ type Direction = "column" | "row";
933
+ type RadioGroupProps = {
934
+ name?: string;
935
+ message?: string;
936
+ type?: RadioType;
937
+ defaultValue?: string;
938
+ value?: string;
939
+ className?: string;
940
+ direction?: Direction;
941
+ gap?: string;
942
+ length?: number;
943
+ onlyFlow?: boolean;
944
+ buttonProps?: ButtonProps;
945
+ onChange?: (value: string) => void;
946
+ onUpdate?: (value: string, update: boolean, validation: boolean) => void;
947
+ children?: React.ReactNode;
948
+ };
949
+ type RadioButtonProps = {
950
+ id?: string;
951
+ name?: string;
952
+ value?: string;
953
+ type?: RadioType;
954
+ checked?: boolean;
955
+ hasError?: boolean;
956
+ children?: React.ReactNode;
957
+ buttonProps?: ButtonProps;
958
+ icon?: string | null;
959
+ image?: string | null;
960
+ onChange?: (value: string) => void;
961
+ component?: ReactElement | null;
962
+ };
963
+
906
964
  type SelectProps = {
907
965
  id?: string;
908
966
  defaultValue?: SelectValue;
@@ -1018,31 +1076,6 @@ type SingleQueryProps = {
1018
1076
  isEmpty: () => boolean;
1019
1077
  };
1020
1078
 
1021
- type ButtonProps = {
1022
- id?: string;
1023
- disabled?: boolean;
1024
- loading?: boolean;
1025
- selected?: boolean;
1026
- strecth?: boolean;
1027
- circle?: boolean;
1028
- justify?: string;
1029
- contentPosition?: ButtonContentPosition;
1030
- type?: ButtonType;
1031
- variant?: ButtonVariant;
1032
- state?: ButtonState;
1033
- size?: ITDSize;
1034
- icon?: string | ChildrenProps | SVGElement;
1035
- href?: string;
1036
- target?: string;
1037
- className?: string;
1038
- children?: ChildrenProps;
1039
- onClick?: null | ((event: MouseEvent<any>) => void);
1040
- };
1041
- type ButtonType = "button" | "submit" | "reset";
1042
- type ButtonVariant = "default" | "solid" | "filled" | "outline" | "ghost" | "link" | "statable" | "custom";
1043
- type ButtonState = "primary" | "secondary" | "request" | "approve" | "reject" | "pending" | "requested" | string | null;
1044
- type ButtonContentPosition = "left" | "right";
1045
-
1046
1079
  type FormProps = {
1047
1080
  initialValues?: {};
1048
1081
  children: ChildrenProps;
@@ -1527,4 +1560,4 @@ declare enum FormValidationTypes {
1527
1560
  USERNAME = "username"
1528
1561
  }
1529
1562
 
1530
- export { ALink, Accordion, type AccordionItemProps, type AccordionProps, type AccordionSubMenuProps, AddDefaultThemeStyle, AddDefaultUnit, AddZero, Alert, type AlertProps, type AlertSize, type AlertType, Arrow as ArrowIcon, BackToTop, BackTop, Base64Decode, Base64Encode, Button, type ButtonContentPosition, type ButtonProps, type ButtonState, type ButtonType, type ButtonVariant, Calendar, type CalendarDayProps, type CalendarProps, type CalendarValueProps, Card, type CardProps, CheckFileURL, Checkbox, type CheckboxEvent, type CheckboxGroupProps, type CheckboxProps, Checkmark, ChunkArray, Collapse, ConsoleLog, ConvertCurrency, DatePicker, type DatePickerProps, DetermineNewHeight, DetermineNewWidth, type FieldUpdateProps, FileChecker, FileExtensions, FileTypes, FindSelector, Flex, type FlexAlignProps, type FlexGapProps, type FlexJustifyProps, type FlexProps, Form, type FormContextType, type FormItemProps, type FormProps, type FormRuleProps, type FormSubComponentProps, FormValidationTypes, type FormValueProps, FormatBytes, FormatDate, FormatDateTime, FormatSimpleDate, FormatSimpleDateTime, FormatTime, 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, Progress, type ProgressProps, type ProgressStatus, type QueryValueProps, Radio, RemoveUnits, Result, type ResultProps, SVGLoader, Select, type SelectDirection, type SelectOptionProps, type SelectPosition, type SelectProps, type SelectToggleProps, type SelectValue, type SelectVariant, type SingleQueryProps, Spin, Status, type StatusProps, type StatusVariant, Switch, type SwitchProps, Table, type TableColumnType, type TableProps, type TableRefProps, type TableRow, type TableTRProps, Tabs, type TabsItemProps, type TabsProps, TextArea, type TextAreaEvent, type TextAreaProps, type TextAreaVariant, TinyScrollbar, Tooltip, TranslateCell, Trash, UniUpperCase, UpdateThemeStyle, Upload, Upload$1 as UploadIcon, type UploadProgressProps, type UploadProps, type UploadResultMessageProps, Wait, ZoomIn, ZoomOut, toKebabCase, useAddExternalCSS, useComponentSize, useConnectionStatus, useConstructor, useContextBridge, useCoreFetch, useCreateDynamicStyle, useCreateStyledStyle, useKeyboardShortcut, useMultiQuery, useOnClickOutside, useOnESCKeyDown, useOnResize, useOrientation, useReCaptcha, useSingleQuery };
1563
+ export { ALink, Accordion, type AccordionItemProps, type AccordionProps, type AccordionSubMenuProps, AddDefaultThemeStyle, AddDefaultUnit, AddZero, Alert, type AlertProps, type AlertSize, type AlertType, Arrow as ArrowIcon, BackToTop, BackTop, Base64Decode, Base64Encode, Button, type ButtonContentPosition, type ButtonProps, type ButtonState, type ButtonType, type ButtonVariant, Calendar, type CalendarDayProps, type CalendarProps, type CalendarValueProps, Card, type CardProps, CheckFileURL, Checkbox, type CheckboxEvent, type CheckboxGroupProps, type CheckboxProps, Checkmark, ChunkArray, Collapse, ConsoleLog, ConvertCurrency, DatePicker, type DatePickerProps, DetermineNewHeight, DetermineNewWidth, type Direction, type FieldUpdateProps, FileChecker, FileExtensions, FileTypes, FindSelector, Flex, type FlexAlignProps, type FlexGapProps, type FlexJustifyProps, type FlexProps, Form, type FormContextType, type FormItemProps, type FormProps, type FormRuleProps, type FormSubComponentProps, FormValidationTypes, type FormValueProps, FormatBytes, FormatDate, FormatDateTime, FormatSimpleDate, FormatSimpleDateTime, FormatTime, 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, Progress, type ProgressProps, type ProgressStatus, type QueryValueProps, Radio, type RadioButtonProps, type RadioGroupProps, type RadioType, RemoveUnits, Result, type ResultProps, SVGLoader, Select, type SelectDirection, type SelectOptionProps, type SelectPosition, type SelectProps, type SelectToggleProps, type SelectValue, type SelectVariant, type SingleQueryProps, Spin, Status, type StatusProps, type StatusVariant, Switch, type SwitchProps, Table, type TableColumnType, type TableProps, type TableRefProps, type TableRow, type TableTRProps, Tabs, type TabsItemProps, type TabsProps, TextArea, type TextAreaEvent, type TextAreaProps, type TextAreaVariant, TinyScrollbar, Tooltip, TranslateCell, Trash, UniUpperCase, UpdateThemeStyle, Upload, Upload$1 as UploadIcon, type UploadProgressProps, type UploadProps, type UploadResultMessageProps, Wait, ZoomIn, ZoomOut, toKebabCase, useAddExternalCSS, useComponentSize, useConnectionStatus, useConstructor, useContextBridge, useCoreFetch, useCreateDynamicStyle, useCreateStyledStyle, useKeyboardShortcut, useMultiQuery, useOnClickOutside, useOnESCKeyDown, useOnResize, useOrientation, useReCaptcha, useSingleQuery };