@inntechcorp/it-design 2.0.16 → 2.0.18

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
@@ -65,12 +65,12 @@ export type { ITDContextType, ITDProviderProps } from './context/ITDContext';
65
65
  export type { AccordionProps } from './types/AccordionProps';
66
66
  export type { AccordionSubMenuProps } from './types/AccordionSubMenuProps';
67
67
  export type { AccordionItemProps } from './types/AccordionItemProps';
68
- export type { InputProps } from './types/InputProps';
69
- export type { SelectProps, SelectOptionProps } from './types/SelectProps';
68
+ export type { InputProps, InputVariant } from './types/InputProps';
69
+ export type { SelectProps, SelectOptionProps, SelectVariant } from './types/SelectProps';
70
70
  export type { CheckboxProps, CheckboxGroupProps, GroupCheckboxOptionType, CheckboxEvent } from './types/CheckboxProps';
71
71
  export type { ITDImperativeFuncProps } from './types/ITDImperativeFuncProps';
72
72
  export type { SingleQueryProps } from './types/SingleQueryProps';
73
- export type { ButtonProps, ButtonType, ButtonVariant, ButtonState, ButtonSize, ButtonContentPosition } from './types/ButtonProps';
73
+ export type { ButtonProps, ButtonType, ButtonVariant, ButtonState, ButtonContentPosition } from './types/ButtonProps';
74
74
  export type { FormProps, FormRuleProps, FormValueProps, FormItemProps, FormSubComponentProps, FieldUpdateProps } from './types/FormProps';
75
75
  export type { NotificationsProps } from './types/NotificationsProps';
76
76
  export type { AlertProps, AlertType, AlertSize } from './types/AlertProps';
@@ -78,7 +78,8 @@ export type { SwitchProps } from './types/SwitchProps';
78
78
  export type { ModalProps, ModalContentProps, ModalRefProps } from './types/ModalProps';
79
79
  export type { UploadProps, UploadProgressProps, UploadResultMessageProps } from './types/UploadProps';
80
80
  export type { TabsItemProps, TabsProps } from './types/TabsProps';
81
- export type { TableColumnType, TableProps, TableSize } from './types/TableProps';
81
+ export type { TableColumnType, TableProps } from './types/TableProps';
82
82
  export type { CardProps } from './types/CardProps';
83
83
  export type { StatusProps, StatusVariant } from './types/StatusProps';
84
+ export type { ITDSize, ITDSizeSlug } from './types/ITDProps';
84
85
  export { ModalState, FileExtensions, FileTypes } from './enums/enum';
package/dist/index.d.ts CHANGED
@@ -674,8 +674,8 @@ type InputProps = {
674
674
  defaultValue?: string;
675
675
  type?: string;
676
676
  className?: string;
677
- size?: string;
678
- variant?: string;
677
+ size?: ITDSize;
678
+ variant?: InputVariant;
679
679
  prefix?: ChildrenProps;
680
680
  suffix?: ChildrenProps;
681
681
  addonBefore?: ChildrenProps;
@@ -698,6 +698,7 @@ type InputProps = {
698
698
  onKeyDown?: ((event: KeyboardEvent) => void) | null;
699
699
  children?: ChildrenProps;
700
700
  };
701
+ type InputVariant = "default" | "filled" | "dashed";
701
702
 
702
703
  type SelectProps = {
703
704
  id?: string;
@@ -707,8 +708,8 @@ type SelectProps = {
707
708
  position?: string;
708
709
  direction?: string;
709
710
  mode?: string;
710
- size?: string;
711
- variant?: string;
711
+ size?: ITDSize;
712
+ variant?: SelectVariant;
712
713
  className?: string;
713
714
  placeholder?: string;
714
715
  icon?: string;
@@ -720,6 +721,7 @@ type SelectProps = {
720
721
  onChange?: ((value: any) => void) | null;
721
722
  onUpdate?: ((value: any, update: any, validation: boolean) => void) | null;
722
723
  };
724
+ type SelectVariant = "default" | "solid" | "filled" | "outline" | "custom";
723
725
  type SelectOptionProps = {
724
726
  value: string;
725
727
  text: string;
@@ -792,7 +794,7 @@ type ButtonProps = {
792
794
  type?: ButtonType;
793
795
  variant?: ButtonVariant;
794
796
  state?: ButtonState;
795
- size?: ButtonSize;
797
+ size?: ITDSize;
796
798
  icon?: string | ChildrenProps | SVGElement;
797
799
  href?: string;
798
800
  target?: string;
@@ -803,7 +805,6 @@ type ButtonProps = {
803
805
  type ButtonType = "button" | "submit" | "reset";
804
806
  type ButtonVariant = "default" | "solid" | "filled" | "outline" | "ghost" | "link" | "statable" | "custom";
805
807
  type ButtonState = "primary" | "secondary" | "request" | "approve" | "reject" | "pending" | "requested" | string | null;
806
- type ButtonSize = "x-small" | "small" | "medium" | "default" | "large" | "x-large";
807
808
  type ButtonContentPosition = "left" | "right";
808
809
 
809
810
  type FormProps = {
@@ -1136,13 +1137,12 @@ type TableColumnType<T> = {
1136
1137
  type TableProps<T> = {
1137
1138
  columns: TableColumnType<T>[];
1138
1139
  data: T[];
1139
- size?: TableSize;
1140
+ size?: ITDSize;
1140
1141
  headless?: boolean;
1141
1142
  bordered?: boolean;
1142
1143
  dashed?: boolean;
1143
1144
  noGaps?: boolean;
1144
1145
  };
1145
- type TableSize = "x-small" | "small" | "medium" | "default" | "large" | "x-large";
1146
1146
 
1147
1147
  type CardProps = {
1148
1148
  title?: ChildrenProps;
@@ -1162,12 +1162,16 @@ type CardProps = {
1162
1162
  };
1163
1163
 
1164
1164
  type StatusProps = {
1165
- variant: StatusVariant;
1165
+ variant?: StatusVariant;
1166
+ size?: ITDSize;
1166
1167
  children?: ChildrenProps;
1167
1168
  className?: string;
1168
1169
  };
1169
1170
  type StatusVariant = "gray-1" | "gray-2" | "gray-3" | "green" | "yellow" | "red" | "brown" | "lavender" | "pink" | "violet" | "blue" | "filled-red" | "filled-yellow" | "filled-pink" | "filled-blue" | "filled-green" | "filled-purple" | "filled-black";
1170
1171
 
1172
+ type ITDSize = "x-small" | "small" | "medium" | "default" | "large" | "x-large";
1173
+ type ITDSizeSlug = "xs" | "sm" | "md" | "df" | "lg" | "xlg";
1174
+
1171
1175
  declare enum ModalState {
1172
1176
  NOT_SHOW = "modal-not-show",
1173
1177
  ENTERED = "modal-entered",
@@ -1196,4 +1200,4 @@ declare enum FileExtensions {
1196
1200
  OTF = ".otf"
1197
1201
  }
1198
1202
 
1199
- 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 ButtonSize, 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, _default as Image, InlineSelect, InlineSelectArrow, Input, type InputProps, IsValidJSON, Lock as LockIcon, type ModalContentProps, ModalManager, type ModalProps, type ModalRefProps, ModalState, Notification, type NotificationContextType, type NotificationsProps, Picture, Radio, RemoveUnits, Result, Select, type SelectOptionProps, type SelectProps, type SingleQueryProps, Spin, Status, type StatusProps, type StatusVariant, Switch, type SwitchProps, Table, type TableColumnType, type TableProps, type TableSize, 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 };
1203
+ 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, 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 };