@inntechcorp/it-design 2.0.13 → 2.0.15
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.cjs.js +36 -105
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +29 -2
- package/dist/index.esm.js +29 -98
- package/dist/status/index.d.ts +2 -0
- package/dist/status/styled.d.ts +6 -0
- package/dist/stories/Card.stories.d.ts +1 -0
- package/dist/stories/Status.d.ts +2 -0
- package/dist/stories/Status.stories.d.ts +34 -0
- package/dist/stories/Table.d.ts +2 -0
- package/dist/stories/Table.stories.d.ts +15 -0
- package/dist/table/index.d.ts +3 -0
- package/dist/table/styled.d.ts +6 -0
- package/dist/types/StatusProps.d.ts +7 -0
- package/dist/types/TableProps.d.ts +18 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -58,6 +58,7 @@ export { default as Status } from './status';
|
|
|
58
58
|
export { default as TinyScrollbar } from './tinyscrollbar';
|
|
59
59
|
export { default as Tabs } from './tabs';
|
|
60
60
|
export { default as Card } from './card';
|
|
61
|
+
export { default as Table } from './table';
|
|
61
62
|
export type { FormContextType } from './form/context/FormContext';
|
|
62
63
|
export type { NotificationContextType } from './notification/context/NotificationsContext';
|
|
63
64
|
export type { ITDContextType, ITDProviderProps } from './context/ITDContext';
|
|
@@ -77,5 +78,7 @@ export type { SwitchProps } from './types/SwitchProps';
|
|
|
77
78
|
export type { ModalProps, ModalContentProps, ModalRefProps } from './types/ModalProps';
|
|
78
79
|
export type { UploadProps, UploadProgressProps, UploadResultMessageProps } from './types/UploadProps';
|
|
79
80
|
export type { TabsItemProps, TabsProps } from './types/TabsProps';
|
|
81
|
+
export type { TableColumnType, TableProps, TableSize } from './types/TableProps';
|
|
80
82
|
export type { CardProps } from './types/CardProps';
|
|
83
|
+
export type { StatusProps, StatusVariant } from './types/StatusProps';
|
|
81
84
|
export { ModalState, FileExtensions, FileTypes } from './enums/enum';
|
package/dist/index.d.ts
CHANGED
|
@@ -614,7 +614,7 @@ declare const Spin: ({ updating, size, className, children }: ISpin) => react_js
|
|
|
614
614
|
|
|
615
615
|
declare function BackTop(props: any): react_jsx_runtime.JSX.Element;
|
|
616
616
|
|
|
617
|
-
declare function Status(
|
|
617
|
+
declare function Status({ variant, children, className, }: StatusProps): react_jsx_runtime.JSX.Element;
|
|
618
618
|
|
|
619
619
|
type TinyScrollbarProps = {
|
|
620
620
|
className: string;
|
|
@@ -626,6 +626,8 @@ declare const Tabs: ({ tabs, activeTabKey, variant, height, onTabChange }: TabsP
|
|
|
626
626
|
|
|
627
627
|
declare const Card: ({ title, titleSeparator, extra, tabs, onTabChange, minWidth, minHeight, children, activeTabKey, updating, contentPadding, }: CardProps) => react_jsx_runtime.JSX.Element;
|
|
628
628
|
|
|
629
|
+
declare const Table: <T>({ columns, data, size, headless, bordered, dashed, noGaps }: TableProps<T>) => react_jsx_runtime.JSX.Element;
|
|
630
|
+
|
|
629
631
|
type ChildrenProps = string | JSX.Element | JSX.Element[] | null | undefined;
|
|
630
632
|
|
|
631
633
|
type AccordionProps = {
|
|
@@ -1124,6 +1126,24 @@ type TabsProps = {
|
|
|
1124
1126
|
height?: number;
|
|
1125
1127
|
};
|
|
1126
1128
|
|
|
1129
|
+
type TableColumnType<T> = {
|
|
1130
|
+
key: keyof T | string;
|
|
1131
|
+
title: string;
|
|
1132
|
+
dataIndex?: keyof T;
|
|
1133
|
+
width?: number | string;
|
|
1134
|
+
render?: (value: any, record: T, index: number) => React.ReactNode;
|
|
1135
|
+
};
|
|
1136
|
+
type TableProps<T> = {
|
|
1137
|
+
columns: TableColumnType<T>[];
|
|
1138
|
+
data: T[];
|
|
1139
|
+
size?: TableSize;
|
|
1140
|
+
headless?: boolean;
|
|
1141
|
+
bordered?: boolean;
|
|
1142
|
+
dashed?: boolean;
|
|
1143
|
+
noGaps?: boolean;
|
|
1144
|
+
};
|
|
1145
|
+
type TableSize = "x-small" | "small" | "medium" | "default" | "large" | "x-large";
|
|
1146
|
+
|
|
1127
1147
|
type CardProps = {
|
|
1128
1148
|
title?: ChildrenProps;
|
|
1129
1149
|
titleSeparator?: boolean;
|
|
@@ -1141,6 +1161,13 @@ type CardProps = {
|
|
|
1141
1161
|
children: ChildrenProps;
|
|
1142
1162
|
};
|
|
1143
1163
|
|
|
1164
|
+
type StatusProps = {
|
|
1165
|
+
variant: StatusVariant;
|
|
1166
|
+
children?: ChildrenProps;
|
|
1167
|
+
className?: string;
|
|
1168
|
+
};
|
|
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
|
+
|
|
1144
1171
|
declare enum ModalState {
|
|
1145
1172
|
NOT_SHOW = "modal-not-show",
|
|
1146
1173
|
ENTERED = "modal-entered",
|
|
@@ -1169,4 +1196,4 @@ declare enum FileExtensions {
|
|
|
1169
1196
|
OTF = ".otf"
|
|
1170
1197
|
}
|
|
1171
1198
|
|
|
1172
|
-
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, 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 };
|
|
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 };
|