1mpacto-react-ui 1.0.1 → 1.0.2
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/assets/core.css +1 -1
- package/dist/assets/fontfamily.css +1 -1
- package/dist/index.cjs +40 -40
- package/dist/index.mjs +2561 -2546
- package/dist/package.json.d.ts +1 -1
- package/dist/src/components/Table/Table.d.ts +1 -1
- package/dist/src/components/Table/Table.stories.d.ts +16 -2
- package/dist/src/interfaces/components/Alert/index.d.ts +3 -3
- package/dist/src/interfaces/components/Table/index.d.ts +22 -1
- package/package.json +1 -1
package/dist/package.json.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ import { ITable, IVirtualizationHead, IVirtualizationTable } from '../../interfa
|
|
|
3
3
|
|
|
4
4
|
export declare const VirtualizationHead: React.ForwardRefExoticComponent<Omit<IVirtualizationHead, "ref"> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
5
5
|
export declare const VirtualizationTable: ({ style, context, ...props }: IVirtualizationTable) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare const Table: <T>({ tableInstance, classNameWrapperTable, classNameTable, collapseAll, handlerRowClick, privillageRowClick, virtualization, virtualizationProps, headerId, tbodyTrId, maxHeight, idCalculateHeight, kind, componentSortASC, componentSortDESC, scrollTop, emptyPlaceholder, variant, renderSubComponent, columnBreakpoints, }: ITable<T>) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare const Table: <T>({ tableInstance, classNameWrapperTable, classNameTable, collapseAll, handlerRowClick, privillageRowClick, virtualization, virtualizationProps, headerId, tbodyTrId, theadTrId, maxHeight, idCalculateHeight, kind, componentSortASC, componentSortDESC, scrollTop, emptyPlaceholder, variant, renderSubComponent, columnBreakpoints, }: ITable<T>) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export default Table;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { ITable } from '../../interfaces/components/Table';
|
|
2
3
|
|
|
3
4
|
declare const meta: {
|
|
4
5
|
title: string;
|
|
5
|
-
component: <T>({ tableInstance, classNameWrapperTable, classNameTable, collapseAll, handlerRowClick, privillageRowClick, virtualization, virtualizationProps, headerId, tbodyTrId, maxHeight, idCalculateHeight, kind, componentSortASC, componentSortDESC, scrollTop, emptyPlaceholder, variant, renderSubComponent, columnBreakpoints, }:
|
|
6
|
+
component: <T>({ tableInstance, classNameWrapperTable, classNameTable, collapseAll, handlerRowClick, privillageRowClick, virtualization, virtualizationProps, headerId, tbodyTrId, theadTrId, maxHeight, idCalculateHeight, kind, componentSortASC, componentSortDESC, scrollTop, emptyPlaceholder, variant, renderSubComponent, columnBreakpoints, }: ITable<T>) => import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
parameters: {
|
|
7
8
|
layout: string;
|
|
8
9
|
};
|
|
@@ -271,9 +272,22 @@ declare const meta: {
|
|
|
271
272
|
};
|
|
272
273
|
};
|
|
273
274
|
};
|
|
275
|
+
theadTrId: {
|
|
276
|
+
action: string;
|
|
277
|
+
description: string;
|
|
278
|
+
table: {
|
|
279
|
+
category: string;
|
|
280
|
+
type: {
|
|
281
|
+
summary: string;
|
|
282
|
+
};
|
|
283
|
+
defaultValue: {
|
|
284
|
+
summary: string;
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
};
|
|
274
288
|
};
|
|
275
289
|
args: {};
|
|
276
|
-
render: (args:
|
|
290
|
+
render: (args: ITable<unknown>) => import("react/jsx-runtime").JSX.Element;
|
|
277
291
|
};
|
|
278
292
|
export default meta;
|
|
279
293
|
type Story = StoryObj<typeof meta>;
|
|
@@ -6,8 +6,8 @@ import { ToastOptions } from 'react-toastify';
|
|
|
6
6
|
*/
|
|
7
7
|
export interface IOptionAlert extends ToastOptions {
|
|
8
8
|
/**
|
|
9
|
-
* [ID] :
|
|
10
|
-
* [EN] : Alert
|
|
9
|
+
* [ID] : Variant alert (opsional).
|
|
10
|
+
* [EN] : Alert variant (optional).
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
variant?: 'solid' | 'outline';
|
|
13
13
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Table as ITableTanstack, Row, ColumnDef } from '@tanstack/react-table';
|
|
1
|
+
import { Table as ITableTanstack, Row, ColumnDef, Header } from '@tanstack/react-table';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
import { ITableVirtualization, IWrapperProps } from '../Virtualization/TableVirtualization';
|
|
4
4
|
|
|
@@ -113,6 +113,13 @@ export interface ITable<T = unknown> {
|
|
|
113
113
|
* [EN] : Header ID (optional).
|
|
114
114
|
*/
|
|
115
115
|
headerId?: string;
|
|
116
|
+
/**
|
|
117
|
+
* [ID] : Fungsi ID header.
|
|
118
|
+
* [EN] : Header ID function.
|
|
119
|
+
* @param head - [ID] : Objek header. [EN] : Header object.
|
|
120
|
+
* @returns [ID] : ID header. [EN] : Header ID.
|
|
121
|
+
*/
|
|
122
|
+
theadTrId?: (head: Header<T, unknown>) => string | undefined;
|
|
116
123
|
/**
|
|
117
124
|
* [ID] : Fungsi ID baris body (opsional).
|
|
118
125
|
* [EN] : Body row ID function (optional).
|
|
@@ -210,6 +217,13 @@ export interface INonVirtualization<T = unknown> {
|
|
|
210
217
|
* [EN] : Header ID (optional).
|
|
211
218
|
*/
|
|
212
219
|
headerId?: string;
|
|
220
|
+
/**
|
|
221
|
+
* [ID] : Fungsi ID header.
|
|
222
|
+
* [EN] : Header ID function.
|
|
223
|
+
* @param head - [ID] : Objek header. [EN] : Header object.
|
|
224
|
+
* @returns [ID] : ID header. [EN] : Header ID.
|
|
225
|
+
*/
|
|
226
|
+
theadTrId: (head: Header<T, unknown>) => string | undefined;
|
|
213
227
|
/**
|
|
214
228
|
* [ID] : Fungsi ID baris body.
|
|
215
229
|
* [EN] : Body row ID function.
|
|
@@ -325,6 +339,13 @@ export interface IVirtualization<T = unknown> {
|
|
|
325
339
|
* [EN] : Header ID (optional).
|
|
326
340
|
*/
|
|
327
341
|
headerId?: string;
|
|
342
|
+
/**
|
|
343
|
+
* [ID] : Fungsi ID header.
|
|
344
|
+
* [EN] : Header ID function.
|
|
345
|
+
* @param head - [ID] : Objek header. [EN] : Header object.
|
|
346
|
+
* @returns [ID] : ID header. [EN] : Header ID.
|
|
347
|
+
*/
|
|
348
|
+
theadTrId: (head: Header<T, unknown>) => string | undefined;
|
|
328
349
|
/**
|
|
329
350
|
* [ID] : Fungsi ID baris body.
|
|
330
351
|
* [EN] : Body row ID function.
|