@inntechcorp/it-design 2.0.16 → 2.0.17

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';
68
+ export type { InputProps, InputVariant } from './types/InputProps';
69
69
  export type { SelectProps, SelectOptionProps } 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;
@@ -792,7 +793,7 @@ type ButtonProps = {
792
793
  type?: ButtonType;
793
794
  variant?: ButtonVariant;
794
795
  state?: ButtonState;
795
- size?: ButtonSize;
796
+ size?: ITDSize;
796
797
  icon?: string | ChildrenProps | SVGElement;
797
798
  href?: string;
798
799
  target?: string;
@@ -803,7 +804,6 @@ type ButtonProps = {
803
804
  type ButtonType = "button" | "submit" | "reset";
804
805
  type ButtonVariant = "default" | "solid" | "filled" | "outline" | "ghost" | "link" | "statable" | "custom";
805
806
  type ButtonState = "primary" | "secondary" | "request" | "approve" | "reject" | "pending" | "requested" | string | null;
806
- type ButtonSize = "x-small" | "small" | "medium" | "default" | "large" | "x-large";
807
807
  type ButtonContentPosition = "left" | "right";
808
808
 
809
809
  type FormProps = {
@@ -1136,13 +1136,12 @@ type TableColumnType<T> = {
1136
1136
  type TableProps<T> = {
1137
1137
  columns: TableColumnType<T>[];
1138
1138
  data: T[];
1139
- size?: TableSize;
1139
+ size?: ITDSize;
1140
1140
  headless?: boolean;
1141
1141
  bordered?: boolean;
1142
1142
  dashed?: boolean;
1143
1143
  noGaps?: boolean;
1144
1144
  };
1145
- type TableSize = "x-small" | "small" | "medium" | "default" | "large" | "x-large";
1146
1145
 
1147
1146
  type CardProps = {
1148
1147
  title?: ChildrenProps;
@@ -1162,12 +1161,16 @@ type CardProps = {
1162
1161
  };
1163
1162
 
1164
1163
  type StatusProps = {
1165
- variant: StatusVariant;
1164
+ variant?: StatusVariant;
1165
+ size?: ITDSize;
1166
1166
  children?: ChildrenProps;
1167
1167
  className?: string;
1168
1168
  };
1169
1169
  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
1170
 
1171
+ type ITDSize = "x-small" | "small" | "medium" | "default" | "large" | "x-large";
1172
+ type ITDSizeSlug = "xs" | "sm" | "md" | "df" | "lg" | "xlg";
1173
+
1171
1174
  declare enum ModalState {
1172
1175
  NOT_SHOW = "modal-not-show",
1173
1176
  ENTERED = "modal-entered",
@@ -1196,4 +1199,4 @@ declare enum FileExtensions {
1196
1199
  OTF = ".otf"
1197
1200
  }
1198
1201
 
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 };
1202
+ 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 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 };