1mpacto-react-ui 1.0.1 → 1.0.3

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.
@@ -1,7 +1,7 @@
1
1
  declare const _default: {
2
2
  "name": "1mpacto-react-ui",
3
3
  "private": false,
4
- "version": "1.0.1",
4
+ "version": "1.0.3",
5
5
  "type": "module",
6
6
  "engines": {
7
7
  "node": ">=20.19.4",
@@ -12,6 +12,7 @@ export declare const configButton: {
12
12
  'bill-m': string;
13
13
  'bill-s': string;
14
14
  'bill-xs': string;
15
+ 'bill-xxs': string;
15
16
  };
16
17
  loadingSize: {
17
18
  large: string;
@@ -26,6 +27,7 @@ export declare const configButton: {
26
27
  'bill-m': string;
27
28
  'bill-s': string;
28
29
  'bill-xs': string;
30
+ 'bill-xxs': string;
29
31
  };
30
32
  variants: {
31
33
  'primary-laba-blue-10': string;
@@ -63,6 +65,7 @@ export declare const configButton: {
63
65
  'secondary-bill-secondary-800': string;
64
66
  'tertiary-bill-secondary-800': string;
65
67
  'primary-bill-red-700': string;
68
+ 'filled-bill-bluegray-500_text-bill-body-sm': string;
66
69
  };
67
70
  };
68
71
  export declare const keysConfigButtonVariant: string[];
@@ -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, }: import('../../interfaces/components/Table').ITable<T>) => import("react/jsx-runtime").JSX.Element;
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: import('../../interfaces/components/Table').ITable<unknown>) => import("react/jsx-runtime").JSX.Element;
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>;
@@ -7,6 +7,7 @@ export declare const configTabs: {
7
7
  'container-laba-blue-10-bg_white': string;
8
8
  'container-laba-blue-10-bg_blue-01': string;
9
9
  'original-bill-secondary-800': string;
10
+ 'container-bill-secondary-800': string;
10
11
  };
11
12
  size: {
12
13
  'tabs-m': string;
@@ -6,8 +6,8 @@ import { ToastOptions } from 'react-toastify';
6
6
  */
7
7
  export interface IOptionAlert extends ToastOptions {
8
8
  /**
9
- * [ID] : Jenis alert (opsional).
10
- * [EN] : Alert kind (optional).
9
+ * [ID] : Variant alert (opsional).
10
+ * [EN] : Alert variant (optional).
11
11
  */
12
- kind?: 'laba' | 'payhere';
12
+ variant?: 'solid' | 'outline';
13
13
  }
@@ -4,12 +4,12 @@ import { ReactNode } from 'react';
4
4
  * [ID] : Tipe varian tombol yang tersedia.
5
5
  * [EN] : Available button variant types.
6
6
  */
7
- export type TButtonVariants = 'primary-laba-blue-10' | 'primary-red-700-dsb_laba-grey-06' | 'primary-green-700' | 'ghost-laba-blue-10' | 'ghost-red-700' | 'ghost-green-700' | 'ghost-blue-gray-100-bg_white' | 'ghost-laba-green-10' | 'ghost-blue-gray-100-bg_white-text_blue-gray-400' | 'ghost-laba-blue-05' | 'nude-laba-blue-10' | 'nude-red-700' | 'nude-green-700' | 'nude-gray-500' | 'nude-laba-red-10' | 'nude-laba-red-08' | 'nude-laba-red-05' | 'primary-blue-700' | 'primary-red-700' | 'secondary-blue-700' | 'secondary-red-600' | 'secondary-green-600' | 'tertiary-blue-700' | 'tertiary-red-300' | 'tertiary-red-600' | 'tertiary-gray-500' | 'ghost-laba-blue-01' | 'filled-laba-white_laba-blue-10' | 'filled-laba-white_laba-red-05' | 'secondary-red-700' | 'tertiary-black' | 'primary-bill-primary-600' | 'secondary-bill-secondary-800' | 'tertiary-bill-secondary-800' | 'primary-bill-red-700';
7
+ export type TButtonVariants = 'primary-laba-blue-10' | 'primary-red-700-dsb_laba-grey-06' | 'primary-green-700' | 'ghost-laba-blue-10' | 'ghost-red-700' | 'ghost-green-700' | 'ghost-blue-gray-100-bg_white' | 'ghost-laba-green-10' | 'ghost-blue-gray-100-bg_white-text_blue-gray-400' | 'ghost-laba-blue-05' | 'nude-laba-blue-10' | 'nude-red-700' | 'nude-green-700' | 'nude-gray-500' | 'nude-laba-red-10' | 'nude-laba-red-08' | 'nude-laba-red-05' | 'primary-blue-700' | 'primary-red-700' | 'secondary-blue-700' | 'secondary-red-600' | 'secondary-green-600' | 'tertiary-blue-700' | 'tertiary-red-300' | 'tertiary-red-600' | 'tertiary-gray-500' | 'ghost-laba-blue-01' | 'filled-laba-white_laba-blue-10' | 'filled-laba-white_laba-red-05' | 'secondary-red-700' | 'tertiary-black' | 'primary-bill-primary-600' | 'secondary-bill-secondary-800' | 'tertiary-bill-secondary-800' | 'primary-bill-red-700' | 'filled-bill-bluegray-500_text-bill-body-sm';
8
8
  /**
9
9
  * [ID] : Tipe ukuran tombol.
10
10
  * [EN] : Button size type.
11
11
  */
12
- export type TButtonSize = 'large' | 'reguler' | 'small' | 'extra-small' | 'l' | 'm' | 's' | 'xs' | 'bill-l' | 'bill-m' | 'bill-s' | 'bill-xs';
12
+ export type TButtonSize = 'large' | 'reguler' | 'small' | 'extra-small' | 'l' | 'm' | 's' | 'xs' | 'bill-l' | 'bill-m' | 'bill-s' | 'bill-xs' | 'bill-xxs';
13
13
  /**
14
14
  * [ID] : Interface untuk komponen Button.
15
15
  * [EN] : Interface for Button component.
@@ -50,6 +50,11 @@ export interface ISidebarModule {
50
50
  * [EN] : SVG icon (optional).
51
51
  */
52
52
  svgIcon?: React.ReactNode | null;
53
+ /**
54
+ * [ID] : Ikon akhir (opsional).
55
+ * [EN] : End icon (optional).
56
+ */
57
+ endIcon?: React.ReactNode | null;
53
58
  /**
54
59
  * [ID] : Ikon SVG saat aktif (opsional).
55
60
  * [EN] : SVG icon when active (optional).
@@ -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).
@@ -134,12 +141,12 @@ export interface ITable<T = unknown> {
134
141
  * [ID] : Jenis tabel (opsional).
135
142
  * [EN] : Table kind (optional).
136
143
  */
137
- kind?: 'laba-reguler' | 'payhere-reguler' | 'laba-small' | 'bill-reguler';
144
+ kind?: 'laba-reguler' | 'payhere-reguler' | 'laba-small' | 'bill-reguler' | 'laba-rounded-md-extra-small';
138
145
  /**
139
146
  * [ID] : Varian tabel (opsional).
140
147
  * [EN] : Table variant (optional).
141
148
  */
142
- variant?: 'laba-grey-02';
149
+ variant?: 'laba-grey-02' | 'laba-blue-01_border-transparent';
143
150
  /**
144
151
  * [ID] : Komponen urutkan menaik (opsional).
145
152
  * [EN] : Sort ascending component (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.
@@ -446,6 +467,7 @@ export interface ITableConfig {
446
467
  'laba-reguler': string;
447
468
  'laba-small': string;
448
469
  'bill-reguler': string;
470
+ 'laba-rounded-md-extra-small': string;
449
471
  };
450
472
  /**
451
473
  * [ID] : Konfigurasi sub-mobile.
@@ -456,6 +478,7 @@ export interface ITableConfig {
456
478
  'laba-reguler': string;
457
479
  'laba-small': string;
458
480
  'bill-reguler': string;
481
+ 'laba-rounded-md-extra-small': string;
459
482
  };
460
483
  /**
461
484
  * [ID] : Konfigurasi pointer.
@@ -466,6 +489,7 @@ export interface ITableConfig {
466
489
  'laba-reguler': string;
467
490
  'laba-small': string;
468
491
  'bill-reguler': string;
492
+ 'laba-rounded-md-extra-small': string;
469
493
  };
470
494
  /**
471
495
  * [ID] : Konfigurasi utilitas.
@@ -495,6 +519,10 @@ export interface ITableConfig {
495
519
  asc: Element | React.ReactNode | React.ReactNode[];
496
520
  desc: Element | React.ReactNode | React.ReactNode[];
497
521
  };
522
+ 'laba-rounded-md-extra-small': {
523
+ asc: Element | React.ReactNode | React.ReactNode[];
524
+ desc: Element | React.ReactNode | React.ReactNode[];
525
+ };
498
526
  };
499
527
  /**
500
528
  * [ID] : Konfigurasi varian.
@@ -502,5 +530,6 @@ export interface ITableConfig {
502
530
  */
503
531
  variant: {
504
532
  'laba-grey-02': string;
533
+ 'laba-blue-01_border-transparent': string;
505
534
  };
506
535
  }
@@ -5,7 +5,7 @@ import { TKeyLocale } from '../Calendar';
5
5
  * [ID] : Tipe varian tab.
6
6
  * [EN] : Tab variant type.
7
7
  */
8
- export type TVariantTabs = 'original-laba-blue-10' | 'container-payhere-brand-base' | 'container-payhere-brand-base-bg_white' | 'container-laba-blue-10' | 'container-laba-blue-10-bg_white' | 'original-bill-secondary-800';
8
+ export type TVariantTabs = 'original-laba-blue-10' | 'container-payhere-brand-base' | 'container-payhere-brand-base-bg_white' | 'container-laba-blue-10' | 'container-laba-blue-10-bg_white' | 'original-bill-secondary-800' | 'container-bill-secondary-800';
9
9
  /**
10
10
  * [ID] : Tipe ukuran tab.
11
11
  * [EN] : Tab size type.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "1mpacto-react-ui",
3
3
  "private": false,
4
- "version": "1.0.1",
4
+ "version": "1.0.3",
5
5
  "type": "module",
6
6
  "engines": {
7
7
  "node": ">=20.19.4",