@inntechcorp/it-design 2.0.148 → 2.0.149

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
@@ -86,7 +86,7 @@ export type { ModalProps, ModalContentProps, ModalRefProps } from './types/Modal
86
86
  export type { UploadProps, UploadProgressProps, UploadResultMessageProps } from './types/UploadProps';
87
87
  export type { ResultProps } from './types/ResultProps';
88
88
  export type { TabsItemProps, TabsProps } from './types/TabsProps';
89
- export type { TableColumnType, TableProps, TableTRProps } from './types/TableProps';
89
+ export type { TableColumnType, TableProps, TableTRProps, TableRow } from './types/TableProps';
90
90
  export type { CardProps } from './types/CardProps';
91
91
  export type { ProgressProps, ProgressStatus } from './types/ProgressProps';
92
92
  export type { StatusProps, StatusVariant } from './types/StatusProps';
package/dist/index.d.ts CHANGED
@@ -676,10 +676,7 @@ declare const Tabs: ({ tabs, activeTabKey, variant, height, onTabChange }: TabsP
676
676
 
677
677
  declare const Card: ({ title, titleSeparator, extra, tabs, onTabChange, minWidth, minHeight, children, activeTabKey, updating, contentPadding, }: CardProps) => react_jsx_runtime.JSX.Element;
678
678
 
679
- declare const Table: <T extends {
680
- key: string;
681
- children?: T[] | undefined;
682
- }>({ columns, data, cellHeight, size, headless, bordered, dashed, noGaps, overflow, getTRProps }: TableProps<T>) => react_jsx_runtime.JSX.Element;
679
+ declare const Table: <T extends TableRow>({ columns, data, cellHeight, size, headless, bordered, dashed, noGaps, overflow, getTRProps }: TableProps<T>) => react_jsx_runtime.JSX.Element;
683
680
 
684
681
  declare const Flex: ({ gap, justify, align, vertical, wrap, stretch, style, className, children }: FlexProps) => react_jsx_runtime.JSX.Element;
685
682
 
@@ -1319,7 +1316,7 @@ type TableColumnType<T> = {
1319
1316
  dataIndex?: keyof T;
1320
1317
  width?: number | string;
1321
1318
  maxWidth?: number | string;
1322
- render?: (value: any, record: T, index: number) => React.ReactNode;
1319
+ render?: (value: any, record: T, index: number, level?: number) => React.ReactNode;
1323
1320
  };
1324
1321
  type TableProps<T> = {
1325
1322
  columns: TableColumnType<T>[];
@@ -1337,6 +1334,10 @@ type TableTRProps = {
1337
1334
  style?: React.CSSProperties;
1338
1335
  classNames?: string;
1339
1336
  };
1337
+ type TableRow = {
1338
+ key: string;
1339
+ children?: TableRow[];
1340
+ };
1340
1341
 
1341
1342
  type CardProps = {
1342
1343
  title?: ChildrenProps;
@@ -1420,4 +1421,4 @@ declare enum FileExtensions {
1420
1421
  OTF = ".otf"
1421
1422
  }
1422
1423
 
1423
- 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, 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, 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 TableTRProps, Tabs, type TabsItemProps, type TabsProps, TextArea, type TextAreaEvent, type TextAreaProps, type TextAreaVariant, TinyScrollbar, Tooltip, Trash, UniUpperCase, UpdateThemeStyle, Upload, Upload$1 as UploadIcon, type UploadProgressProps, type UploadProps, type UploadResultMessageProps, Wait, ZoomIn, ZoomOut, useAddExternalCSS, useComponentSize, useConnectionStatus, useConstructor, useContextBridge, useCoreFetch, useCreateDynamicStyle, useCreateStyledStyle, useMultiQuery, useOnClickOutside, useOnESCKeyDown, useOnResize, useReCaptcha, useSingleQuery };
1424
+ 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, 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, 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 TableRow, type TableTRProps, Tabs, type TabsItemProps, type TabsProps, TextArea, type TextAreaEvent, type TextAreaProps, type TextAreaVariant, TinyScrollbar, Tooltip, Trash, UniUpperCase, UpdateThemeStyle, Upload, Upload$1 as UploadIcon, type UploadProgressProps, type UploadProps, type UploadResultMessageProps, Wait, ZoomIn, ZoomOut, useAddExternalCSS, useComponentSize, useConnectionStatus, useConstructor, useContextBridge, useCoreFetch, useCreateDynamicStyle, useCreateStyledStyle, useMultiQuery, useOnClickOutside, useOnESCKeyDown, useOnResize, useReCaptcha, useSingleQuery };
@@ -61,35 +61,6 @@
61
61
  -webkit-box-shadow: 0 0 0 30px #151d3d inset !important;
62
62
  }
63
63
 
64
- .arrow {
65
- transition: all 0.25s ease-out;
66
- margin-left: auto;
67
- transform: rotate(0deg);
68
- width: 20px;
69
- height: 20px;
70
- fill: rgba(255, 255, 255, 0.6);
71
- }
72
-
73
- .arrowNormal {
74
- margin-left: auto;
75
- transform: rotate(-90deg);
76
- }
77
-
78
- .arrowOpen {
79
- transform: rotate(-180deg);
80
- fill: #ffffff;
81
- }
82
-
83
- .icon {
84
- margin-right: 8px;
85
- height: 22px;
86
- width: 22px;
87
- color: rgba(255, 255, 255, 0.6);
88
- font-size: 22px;
89
- display: flex;
90
- align-items: center;
91
- }
92
-
93
64
  .option {
94
65
  display: flex;
95
66
  align-items: center;
@@ -182,6 +153,35 @@
182
153
  transition: height 150ms ease-out;
183
154
  }
184
155
 
156
+ .arrow {
157
+ transition: all 0.25s ease-out;
158
+ margin-left: auto;
159
+ transform: rotate(0deg);
160
+ width: 20px;
161
+ height: 20px;
162
+ fill: rgba(255, 255, 255, 0.6);
163
+ }
164
+
165
+ .arrowNormal {
166
+ margin-left: auto;
167
+ transform: rotate(-90deg);
168
+ }
169
+
170
+ .arrowOpen {
171
+ transform: rotate(-180deg);
172
+ fill: #ffffff;
173
+ }
174
+
175
+ .icon {
176
+ margin-right: 8px;
177
+ height: 22px;
178
+ width: 22px;
179
+ color: rgba(255, 255, 255, 0.6);
180
+ font-size: 22px;
181
+ display: flex;
182
+ align-items: center;
183
+ }
184
+
185
185
  .container {
186
186
  display: flex;
187
187
  align-items: center;
@@ -1,6 +1,3 @@
1
- import { TableProps } from "../index";
2
- declare const Table: <T extends {
3
- key: string;
4
- children?: T[] | undefined;
5
- }>({ columns, data, cellHeight, size, headless, bordered, dashed, noGaps, overflow, getTRProps }: TableProps<T>) => import("react/jsx-runtime").JSX.Element;
1
+ import { TableProps, TableRow } from "../index";
2
+ declare const Table: <T extends TableRow>({ columns, data, cellHeight, size, headless, bordered, dashed, noGaps, overflow, getTRProps }: TableProps<T>) => import("react/jsx-runtime").JSX.Element;
6
3
  export default Table;
@@ -6,7 +6,7 @@ export type TableColumnType<T> = {
6
6
  dataIndex?: keyof T;
7
7
  width?: number | string;
8
8
  maxWidth?: number | string;
9
- render?: (value: any, record: T, index: number) => React.ReactNode;
9
+ render?: (value: any, record: T, index: number, level?: number) => React.ReactNode;
10
10
  };
11
11
  export type TableProps<T> = {
12
12
  columns: TableColumnType<T>[];
@@ -24,3 +24,7 @@ export type TableTRProps = {
24
24
  style?: React.CSSProperties;
25
25
  classNames?: string;
26
26
  };
27
+ export type TableRow = {
28
+ key: string;
29
+ children?: TableRow[];
30
+ };
@@ -1,2 +1,2 @@
1
1
  import { ITDSizeSlug } from "../index";
2
- export default function GetSizeBySizeSlug(size: ITDSizeSlug): "large" | "small" | "x-small" | "medium" | "default" | "x-large" | "df";
2
+ export default function GetSizeBySizeSlug(size: ITDSizeSlug): "x-small" | "small" | "medium" | "default" | "large" | "x-large" | "df";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inntechcorp/it-design",
3
- "version": "2.0.148",
3
+ "version": "2.0.149",
4
4
  "description": "All in one Design library for web applications.",
5
5
  "author": "Inn.Tech",
6
6
  "license": "ISC",