@inntechcorp/it-design 2.0.6 → 2.0.8
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/card/index.d.ts +3 -0
- package/dist/card/styles.d.ts +13 -0
- package/dist/index.cjs.js +13 -13
- package/dist/index.d.mts +4 -0
- package/dist/index.d.ts +35 -1
- package/dist/index.esm.js +43 -43
- package/dist/tabs/index.d.ts +3 -0
- package/dist/tabs/styles.d.ts +9 -0
- package/dist/types/CardProps.d.ts +16 -0
- package/dist/types/TabsProps.d.ts +14 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -52,6 +52,8 @@ export { default as Spin } from './spin';
|
|
|
52
52
|
export { default as BackTop } from './back-top';
|
|
53
53
|
export { default as Status } from './status';
|
|
54
54
|
export { default as TinyScrollbar } from './tinyscrollbar';
|
|
55
|
+
export { default as Tabs } from './tabs';
|
|
56
|
+
export { default as Card } from './card';
|
|
55
57
|
export type { FormContextType } from './form/context/FormContext';
|
|
56
58
|
export type { NotificationContextType } from './notification/context/NotificationsContext';
|
|
57
59
|
export type { ITDContextType, ITDProviderProps } from './context/ITDContext';
|
|
@@ -70,4 +72,6 @@ export type { AlertProps, AlertType, AlertSize } from './types/AlertProps';
|
|
|
70
72
|
export type { SwitchProps } from './types/SwitchProps';
|
|
71
73
|
export type { ModalProps, ModalContentProps, ModalRefProps } from './types/ModalProps';
|
|
72
74
|
export type { UploadProps, UploadProgressProps, UploadResultMessageProps } from './types/UploadProps';
|
|
75
|
+
export type { TabsItemProps, TabsProps } from './types/TabsProps';
|
|
76
|
+
export type { CardProps } from './types/CardProps';
|
|
73
77
|
export { ModalState, FileExtensions, FileTypes } from './enums/enum';
|
package/dist/index.d.ts
CHANGED
|
@@ -606,6 +606,10 @@ type TinyScrollbarProps = {
|
|
|
606
606
|
};
|
|
607
607
|
declare function TinyScrollbar({ className, children }: TinyScrollbarProps): react_jsx_runtime.JSX.Element;
|
|
608
608
|
|
|
609
|
+
declare const Tabs: ({ tabs, activeTabKey, variant, height, onTabChange }: TabsProps) => react_jsx_runtime.JSX.Element;
|
|
610
|
+
|
|
611
|
+
declare const Card: ({ title, titleSeparator, extra, tabs, onTabChange, minHeight, children, activeTabKey, updating, contentPadding, }: CardProps) => react_jsx_runtime.JSX.Element;
|
|
612
|
+
|
|
609
613
|
type ChildrenProps = string | JSX.Element | JSX.Element[] | null;
|
|
610
614
|
|
|
611
615
|
type AccordionProps = {
|
|
@@ -1090,6 +1094,36 @@ type UploadResultMessageProps = {
|
|
|
1090
1094
|
status: "success" | "error" | "";
|
|
1091
1095
|
};
|
|
1092
1096
|
|
|
1097
|
+
type TabsItemProps = {
|
|
1098
|
+
key: string;
|
|
1099
|
+
tab: string;
|
|
1100
|
+
children?: ChildrenProps;
|
|
1101
|
+
link?: string;
|
|
1102
|
+
};
|
|
1103
|
+
type TabsProps = {
|
|
1104
|
+
activeTabKey?: string;
|
|
1105
|
+
tabs?: TabsItemProps[];
|
|
1106
|
+
onTabChange?: (key: string) => void;
|
|
1107
|
+
variant?: "default" | "bold";
|
|
1108
|
+
height?: number;
|
|
1109
|
+
};
|
|
1110
|
+
|
|
1111
|
+
type CardProps = {
|
|
1112
|
+
title?: ChildrenProps;
|
|
1113
|
+
titleSeparator?: boolean;
|
|
1114
|
+
extra?: ChildrenProps;
|
|
1115
|
+
tabs?: {
|
|
1116
|
+
key: string;
|
|
1117
|
+
tab: string;
|
|
1118
|
+
}[];
|
|
1119
|
+
activeTabKey?: string;
|
|
1120
|
+
onTabChange?: (key: string) => void;
|
|
1121
|
+
updating?: boolean;
|
|
1122
|
+
minHeight?: number;
|
|
1123
|
+
contentPadding?: string;
|
|
1124
|
+
children: ChildrenProps;
|
|
1125
|
+
};
|
|
1126
|
+
|
|
1093
1127
|
declare enum ModalState {
|
|
1094
1128
|
NOT_SHOW = "modal-not-show",
|
|
1095
1129
|
ENTERED = "modal-entered",
|
|
@@ -1118,4 +1152,4 @@ declare enum FileExtensions {
|
|
|
1118
1152
|
OTF = ".otf"
|
|
1119
1153
|
}
|
|
1120
1154
|
|
|
1121
|
-
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, 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, 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, Switch, type SwitchProps, 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 };
|
|
1155
|
+
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, 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, Switch, type SwitchProps, 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 };
|