@esic-lab/data-core-ui 0.0.53 → 0.0.55

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.css CHANGED
@@ -1049,6 +1049,9 @@
1049
1049
  .pb-\[16px\] {
1050
1050
  padding-bottom: 16px;
1051
1051
  }
1052
+ .pl-\[200px\] {
1053
+ padding-left: 200px;
1054
+ }
1052
1055
  .text-center {
1053
1056
  text-align: center;
1054
1057
  }
@@ -1229,6 +1232,7 @@
1229
1232
  -webkit-backdrop-filter,
1230
1233
  backdrop-filter,
1231
1234
  display,
1235
+ visibility,
1232
1236
  content-visibility,
1233
1237
  overlay,
1234
1238
  pointer-events;
@@ -1897,4 +1901,4 @@
1897
1901
  }
1898
1902
  }
1899
1903
  }
1900
- /*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
1904
+ /*! tailwindcss v4.1.12 | MIT License | https://tailwindcss.com */
@@ -0,0 +1,573 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import react, { ReactNode } from 'react';
3
+ import * as antd_es_table_interface from 'antd/es/table/interface';
4
+ import { ColumnsType, TableProps } from 'antd/es/table';
5
+ import { EventSourceInput } from '@fullcalendar/core';
6
+ import { InputNumberProps, SelectProps } from 'antd';
7
+ import { Color } from 'antd/es/color-picker';
8
+ import { MessageInstance } from 'antd/es/message/interface';
9
+ import { ItemType } from 'antd/es/breadcrumb/Breadcrumb';
10
+
11
+ type ColorScale = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
12
+ type BaseColor = "primary" | "gray" | "green" | "red" | "yellow" | "blue";
13
+ type ThemeColor = `bg-${BaseColor}-${ColorScale}`;
14
+ interface PrimaryButtonProps {
15
+ title: string;
16
+ onClick: () => void;
17
+ iconLeft?: React.ReactNode;
18
+ iconRight?: React.ReactNode;
19
+ bgColor?: ThemeColor;
20
+ textColor?: "white" | "black";
21
+ disabled?: boolean;
22
+ }
23
+ declare function PrimaryButton({ title, onClick, iconLeft, iconRight, bgColor, textColor, disabled, }: PrimaryButtonProps): react_jsx_runtime.JSX.Element;
24
+
25
+ interface SecondaryButtonProps {
26
+ title: string;
27
+ onClick: () => void;
28
+ iconLeft?: React.ReactNode;
29
+ iconRight?: React.ReactNode;
30
+ disabled?: boolean;
31
+ }
32
+ declare function SecondaryButton({ title, onClick, iconLeft, iconRight, disabled }: SecondaryButtonProps): react_jsx_runtime.JSX.Element;
33
+
34
+ interface GhostButtonProps {
35
+ title: string;
36
+ onClick: () => void;
37
+ iconLeft?: React.ReactNode;
38
+ iconRight?: React.ReactNode;
39
+ disabled?: boolean;
40
+ }
41
+ declare function GhostButton({ title, onClick, iconLeft, iconRight, disabled }: GhostButtonProps): react_jsx_runtime.JSX.Element;
42
+
43
+ interface Title {
44
+ path: string;
45
+ name: string;
46
+ }
47
+ interface ParamTabSelection {
48
+ title: Title[];
49
+ now: string;
50
+ onClickGoto: (path: string) => void;
51
+ }
52
+ declare const TabSelectionButton: ({ title, now, onClickGoto }: ParamTabSelection) => react_jsx_runtime.JSX.Element;
53
+
54
+ interface LoaderProps {
55
+ size?: number;
56
+ color?: string;
57
+ }
58
+ declare function Loader({ size, color }: LoaderProps): react_jsx_runtime.JSX.Element;
59
+
60
+ interface CheckboxProps {
61
+ label?: string;
62
+ checked: boolean;
63
+ onChange: (checked: boolean) => void;
64
+ disabled?: boolean;
65
+ }
66
+ declare function Checkbox({ label, checked, onChange, disabled }: CheckboxProps): react_jsx_runtime.JSX.Element;
67
+
68
+ interface CheckboxOption {
69
+ checked: boolean;
70
+ label: string;
71
+ disabled?: boolean;
72
+ }
73
+ interface CheckboxGroupProps {
74
+ options: CheckboxOption[];
75
+ onChange: (label: string) => void;
76
+ alignment?: "horizontal" | "vertical";
77
+ }
78
+ declare function CheckboxGroup({ options, onChange, alignment }: CheckboxGroupProps): react_jsx_runtime.JSX.Element;
79
+
80
+ interface RadioProps {
81
+ selected: boolean;
82
+ onChange: (selected: boolean) => void;
83
+ disabled?: boolean;
84
+ }
85
+ declare function Radio({ selected, onChange, disabled }: RadioProps): react_jsx_runtime.JSX.Element;
86
+
87
+ interface RadioOption {
88
+ value: string;
89
+ label: string;
90
+ disabled?: boolean;
91
+ }
92
+ interface RadioGroupProps {
93
+ options: RadioOption[];
94
+ value: string;
95
+ onChange: (value: string) => void;
96
+ alignment?: "vertical" | "horizontal";
97
+ }
98
+ declare function RadioGroup({ options, value, onChange, alignment }: RadioGroupProps): react_jsx_runtime.JSX.Element;
99
+
100
+ interface SwitchProps {
101
+ label?: string;
102
+ checked: boolean;
103
+ onChange: (checked: boolean) => void;
104
+ disabled?: boolean;
105
+ }
106
+ declare function Switch({ label, checked, onChange, disabled }: SwitchProps): react_jsx_runtime.JSX.Element;
107
+
108
+ interface SwitchSelectProp {
109
+ option: {
110
+ value: string;
111
+ label: string;
112
+ }[];
113
+ value: string | number;
114
+ label: string;
115
+ color?: string;
116
+ required?: boolean;
117
+ onClick: (active: string) => void;
118
+ }
119
+ declare function SwitchSelect({ option, onClick, value, label, required, color, }: SwitchSelectProp): react_jsx_runtime.JSX.Element;
120
+
121
+ interface Menu {
122
+ title: string;
123
+ subMenus: {
124
+ title: string;
125
+ icon?: React.ReactNode | React.ReactElement;
126
+ iconActive?: React.ReactNode | React.ReactElement;
127
+ path: string;
128
+ customNode?: React.ReactNode | React.ReactElement;
129
+ }[];
130
+ }
131
+ interface MenuNavBarProps {
132
+ menus: Menu[];
133
+ onClick: (path: string) => void;
134
+ }
135
+ declare function MenuNavBar({ menus, onClick }: MenuNavBarProps): react_jsx_runtime.JSX.Element;
136
+
137
+ interface SidebarProps {
138
+ children: React.ReactNode;
139
+ logo?: string;
140
+ }
141
+ interface Sidebar {
142
+ icon: React.ReactNode;
143
+ iconHover?: React.ReactNode;
144
+ text: string;
145
+ disabled?: boolean;
146
+ }
147
+ declare function Sidebar({ children, logo }: SidebarProps): react_jsx_runtime.JSX.Element;
148
+
149
+ interface TopNavBarProps {
150
+ onClickNoti: () => void;
151
+ logo?: React.ReactNode;
152
+ }
153
+ declare function TopNavBar({ onClickNoti, logo }: TopNavBarProps): react_jsx_runtime.JSX.Element;
154
+
155
+ interface Column<T> {
156
+ header: string;
157
+ accessor: keyof T | ((row: T) => react.ReactNode);
158
+ sortable?: boolean;
159
+ }
160
+ interface DataTableProps<T> {
161
+ columns: Column<T>[];
162
+ data: T[];
163
+ onSort: () => void;
164
+ isLoading?: boolean;
165
+ }
166
+ declare function DataTable<T>({ columns, data, onSort, isLoading }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
167
+
168
+ interface AntDataTableProps<T> {
169
+ dataSource: T[];
170
+ columns: ColumnsType<T>;
171
+ pageSize?: number;
172
+ rowCheckbox?: boolean;
173
+ onRowSelect?: (newSelectedRowKeys: React.Key[]) => void;
174
+ onFilter: (filters: Record<string, antd_es_table_interface.FilterValue | null>) => void;
175
+ onChange?: TableProps<T>["onChange"];
176
+ width?: number;
177
+ height?: number;
178
+ pagination?: boolean;
179
+ }
180
+ declare function AntDataTable<T extends {
181
+ key: React.Key;
182
+ }>({ dataSource, columns, pageSize, rowCheckbox, onRowSelect, onFilter, onChange, width, height, pagination, }: AntDataTableProps<T>): react_jsx_runtime.JSX.Element;
183
+
184
+ interface CalendarProps {
185
+ events: EventSourceInput | undefined;
186
+ }
187
+ declare function Calendar({ events }: CalendarProps): react_jsx_runtime.JSX.Element;
188
+
189
+ interface TextInputProps {
190
+ label?: string;
191
+ placeholder?: string;
192
+ type?: "text" | "password";
193
+ maxLength?: number;
194
+ required?: boolean;
195
+ error?: string;
196
+ value?: string;
197
+ onChange: (value: string) => void;
198
+ disabled?: boolean;
199
+ }
200
+ declare function TextInput({ label, placeholder, type, maxLength, required, error, value, onChange, disabled, }: TextInputProps): react_jsx_runtime.JSX.Element;
201
+
202
+ interface TextAreaProps {
203
+ label?: string;
204
+ height?: number;
205
+ placeholder?: string;
206
+ value: string;
207
+ onChange: (value: string) => void;
208
+ maxLength?: number;
209
+ resizable?: boolean;
210
+ showCount?: boolean;
211
+ required?: boolean;
212
+ error?: string;
213
+ disabled?: boolean;
214
+ }
215
+ declare function TextAreaInput({ label, height, placeholder, onChange, value, maxLength, resizable, showCount, required, error, disabled, }: TextAreaProps): react_jsx_runtime.JSX.Element;
216
+
217
+ interface InputFieldProps {
218
+ value: string | undefined;
219
+ onChange: (value: string | undefined) => void;
220
+ placeholder?: string;
221
+ label?: string;
222
+ required?: boolean;
223
+ disabled?: boolean;
224
+ error?: string;
225
+ addonBefore?: ReactNode;
226
+ addonAfter?: ReactNode;
227
+ defaultValue?: string;
228
+ className?: string;
229
+ onClear?: () => void;
230
+ statickey?: string;
231
+ }
232
+ declare function InputField({ value, onChange, placeholder, label, required, disabled, error, addonBefore, addonAfter, defaultValue, className, onClear, statickey, }: InputFieldProps): react_jsx_runtime.JSX.Element;
233
+
234
+ interface InputFieldNumberProps {
235
+ value: number | string | null;
236
+ onChange: (value: number | string | null) => void;
237
+ placeholder?: string;
238
+ label?: string;
239
+ required?: boolean;
240
+ disabled?: boolean;
241
+ error?: string;
242
+ addonBefore?: React.ReactNode;
243
+ addonAfter?: React.ReactNode;
244
+ defaultValue?: number;
245
+ className?: string;
246
+ max?: number;
247
+ min?: number;
248
+ controls?: boolean | {
249
+ upIcon?: React.ReactNode;
250
+ downIcon?: React.ReactNode;
251
+ };
252
+ size?: "large" | "middle" | "small";
253
+ changeOnWheel?: boolean;
254
+ formatter?: InputNumberProps["formatter"];
255
+ parser?: InputNumberProps["parser"];
256
+ }
257
+ declare function InputFieldNumber({ value, onChange, placeholder, label, required, disabled, error, addonBefore, addonAfter, defaultValue, className, max, min, controls, size, changeOnWheel, formatter, parser, }: InputFieldNumberProps): react_jsx_runtime.JSX.Element;
258
+
259
+ interface DatePickerBasicProps {
260
+ value: Date | null;
261
+ onChange: (day: Date | null) => void;
262
+ required?: boolean;
263
+ label?: string;
264
+ error?: string;
265
+ placeholder?: string;
266
+ disabled?: boolean;
267
+ defaultValue?: Date | null;
268
+ mode?: "time" | "date" | "month";
269
+ minDate?: Date;
270
+ maxDate?: Date;
271
+ disabledDate?: (currentDate: Date) => boolean;
272
+ className?: string;
273
+ size?: "small" | "middle" | "large";
274
+ }
275
+ declare function DatePickerBasic({ value, onChange, required, label, error, placeholder, disabled, defaultValue, minDate, maxDate, disabledDate, className, size, }: DatePickerBasicProps): react_jsx_runtime.JSX.Element;
276
+
277
+ interface DatePickerRangePickerProps {
278
+ value: [Date | null, Date | null] | null;
279
+ onChange: (val: [Date | null, Date | null] | null) => void;
280
+ placeholder?: [string, string];
281
+ label?: string;
282
+ required?: boolean;
283
+ error?: string;
284
+ disabled?: boolean;
285
+ defaultValue?: [Date, Date] | null;
286
+ mode?: "time" | "date" | "month";
287
+ minDate?: Date | undefined;
288
+ maxDate?: Date | undefined;
289
+ disabledDate?: (currentDate: Date) => boolean;
290
+ size?: "small" | "middle" | "large";
291
+ className?: string;
292
+ onOpenChange?: (open: boolean) => void;
293
+ onCalendarChange?: (dates: [Date | null, Date | null], dateStrings: [string, string], info: any) => void;
294
+ }
295
+ declare function DatePickerRangePicker({ value, onChange, placeholder, label, required, error, disabled, minDate, maxDate, disabledDate, size, className, onOpenChange, onCalendarChange, }: DatePickerRangePickerProps): react_jsx_runtime.JSX.Element;
296
+
297
+ interface TimePickerBasicProps {
298
+ value: Date | null;
299
+ onChange: (time: Date | null) => void;
300
+ required?: boolean;
301
+ label?: string;
302
+ error?: string;
303
+ placeholder?: string;
304
+ disabled?: boolean;
305
+ className?: string;
306
+ }
307
+ declare function TimePickerBasic({ value, onChange, required, label, error, placeholder, disabled, className, }: TimePickerBasicProps): react_jsx_runtime.JSX.Element;
308
+
309
+ interface TimePickerRangePickerProps {
310
+ value: [Date | null, Date | null] | null;
311
+ onChange: (val: [Date | null, Date | null] | null) => void;
312
+ placeholder?: [string, string];
313
+ label?: string;
314
+ required?: boolean;
315
+ error?: string;
316
+ disabled?: boolean;
317
+ className?: string;
318
+ }
319
+ declare function TimePickerRangePicker({ value, onChange, placeholder, label, required, error, disabled, className, }: TimePickerRangePickerProps): react_jsx_runtime.JSX.Element;
320
+
321
+ interface ColorPickerProps {
322
+ value: string | null;
323
+ onChange?: (color: Color, hex: string) => void;
324
+ required?: boolean;
325
+ label?: string;
326
+ error?: string;
327
+ disabled?: boolean;
328
+ allowClear?: boolean;
329
+ defaultFormat?: "hex" | "rgb" | "hsb";
330
+ className?: string;
331
+ placeholder?: string;
332
+ }
333
+ declare function ColorPickerBasic({ value, onChange, required, label, error, disabled, allowClear, defaultFormat, className, placeholder, }: ColorPickerProps): react_jsx_runtime.JSX.Element;
334
+
335
+ interface ColorPalettePickerBasicProps {
336
+ value: string | null;
337
+ onChange?: (color: Color, hex: string) => void;
338
+ required?: boolean;
339
+ label?: string;
340
+ error?: string;
341
+ disabled?: boolean;
342
+ allowClear?: boolean;
343
+ defaultFormat?: "hex" | "rgb" | "hsb";
344
+ className?: string;
345
+ placeholder?: string;
346
+ onClear?: () => void;
347
+ }
348
+ declare function ColorPalettePickerBasic({ value, onChange, required, label, error, disabled, allowClear, defaultFormat, className, placeholder, onClear, }: ColorPalettePickerBasicProps): react_jsx_runtime.JSX.Element;
349
+
350
+ interface SelectFieldProps$1 {
351
+ value?: SelectProps["value"];
352
+ onChange: (value: SelectProps["value"]) => void;
353
+ placeholder?: string;
354
+ label?: string;
355
+ required?: boolean;
356
+ error?: string;
357
+ disabled?: boolean;
358
+ defaultValue?: string;
359
+ options?: {
360
+ label: ReactNode;
361
+ value: string | number | null;
362
+ disabled?: boolean;
363
+ }[];
364
+ mode?: "multiple" | "tags";
365
+ handleSearch?: (value: string) => void;
366
+ prefix?: ReactNode;
367
+ prefixSize?: number;
368
+ className?: string;
369
+ onClear?: () => void;
370
+ }
371
+ declare function SelectField({ value, onChange, placeholder, label, required, error, disabled, defaultValue, options, mode, prefix, prefixSize, handleSearch, className, onClear, }: SelectFieldProps$1): react_jsx_runtime.JSX.Element;
372
+
373
+ interface SelectFieldProps {
374
+ value?: SelectProps["value"];
375
+ onChange: (value: SelectProps["value"]) => void;
376
+ placeholder?: string;
377
+ label?: string;
378
+ required?: boolean;
379
+ error?: string;
380
+ disabled?: boolean;
381
+ defaultValue?: string;
382
+ options?: {
383
+ label: ReactNode;
384
+ options: {
385
+ label: ReactNode;
386
+ value: string | number;
387
+ disabled?: boolean;
388
+ }[];
389
+ }[];
390
+ mode?: "multiple" | "tags";
391
+ handleSearch?: (value: string) => void;
392
+ prefix?: ReactNode;
393
+ prefixSize?: number;
394
+ className?: string;
395
+ }
396
+ declare function SelectFieldGroup({ value, onChange, placeholder, label, required, error, disabled, defaultValue, options, mode, prefix, prefixSize, handleSearch, className, }: SelectFieldProps): react_jsx_runtime.JSX.Element;
397
+
398
+ interface SelectFieldStatusProps {
399
+ value: string | undefined;
400
+ onChange: (value: string | undefined) => void;
401
+ placeholder?: string;
402
+ label?: string;
403
+ required?: boolean;
404
+ disabled?: boolean;
405
+ error?: string;
406
+ options?: {
407
+ label: ReactNode;
408
+ value: string | number | null;
409
+ disabled?: boolean;
410
+ }[];
411
+ className?: string;
412
+ }
413
+ declare function SelectFieldStatus({ value, onChange, placeholder, label, required, disabled, error, options, className, }: SelectFieldStatusProps): react_jsx_runtime.JSX.Element;
414
+
415
+ interface SelectFieldStatusReportProps {
416
+ value: string | undefined;
417
+ onChange: (value: string | undefined) => void;
418
+ placeholder?: string;
419
+ label?: string;
420
+ required?: boolean;
421
+ disabled?: boolean;
422
+ error?: string;
423
+ className?: string;
424
+ options?: {
425
+ label: ReactNode;
426
+ value: string | number | null;
427
+ disabled?: boolean;
428
+ }[];
429
+ }
430
+ declare function SelectFieldStatusReport({ value, onChange, placeholder, label, required, disabled, error, className, options, }: SelectFieldStatusReportProps): react_jsx_runtime.JSX.Element;
431
+
432
+ interface SelectFieldTagProps {
433
+ label?: string | null;
434
+ required?: boolean;
435
+ placeholder?: string;
436
+ options?: {
437
+ label: ReactNode;
438
+ value: string | number | null;
439
+ disabled?: boolean;
440
+ }[];
441
+ error?: string;
442
+ value?: string[];
443
+ onChange?: (val: string[]) => void;
444
+ className?: string;
445
+ onClear?: () => void;
446
+ }
447
+ declare function SelectFieldTag({ label, required, placeholder, options, error, value: controlledValue, className, onChange, onClear, }: SelectFieldTagProps): react_jsx_runtime.JSX.Element;
448
+
449
+ interface OptionItem {
450
+ value: string;
451
+ label: string;
452
+ }
453
+ interface SelectCustomProps {
454
+ label?: string;
455
+ placeholder?: string;
456
+ options: OptionItem[];
457
+ required?: boolean;
458
+ onChange?: (valueList: string[]) => void;
459
+ error?: string;
460
+ onClear?: () => void;
461
+ }
462
+ declare function SelectCustom({ label, placeholder, options, required, onChange, error, onClear, }: SelectCustomProps): react_jsx_runtime.JSX.Element;
463
+
464
+ interface SortFilterProps {
465
+ showYear?: boolean;
466
+ showQuarter?: boolean;
467
+ showMonth?: boolean;
468
+ onSortClick?: () => void;
469
+ onFilterClick?: () => void;
470
+ }
471
+ declare function SortFilter({ showYear, showQuarter, showMonth, onSortClick, onFilterClick, }: SortFilterProps): react_jsx_runtime.JSX.Element;
472
+
473
+ interface FileUploaderProps {
474
+ onUpload: (file: File) => Promise<void>;
475
+ onRemove?: (index: number) => Promise<void>;
476
+ onError?: (message: string) => void;
477
+ accept?: string[];
478
+ maxSize?: number;
479
+ disabled?: boolean;
480
+ mode: "upload" | "drop";
481
+ description?: string;
482
+ label?: string;
483
+ }
484
+ declare function FileUploader({ onUpload, onError, onRemove, accept, maxSize, disabled, mode, description, label, }: FileUploaderProps): react_jsx_runtime.JSX.Element;
485
+
486
+ declare function setMessageApi(api: MessageInstance): void;
487
+ declare function messageSuccess(content: string): void;
488
+ declare function messageError(content: string): void;
489
+ declare function messageWarning(content: string): void;
490
+ declare function messageInfo(content: string): void;
491
+ declare function messageLoading(content: string, duration?: number): void;
492
+
493
+ interface BreadcrumbsProps {
494
+ items: ItemType[];
495
+ separator: ReactNode;
496
+ itemRender?: (route: any, params: any, routes: any[], paths: string[]) => ReactNode;
497
+ classname?: string;
498
+ params?: object;
499
+ }
500
+ declare function Breadcrumbs({ items, separator, itemRender, classname, params, }: BreadcrumbsProps): react_jsx_runtime.JSX.Element;
501
+
502
+ interface HeadingPageProps {
503
+ Heading: string;
504
+ }
505
+ declare function HeadingPage({ Heading }: HeadingPageProps): react_jsx_runtime.JSX.Element;
506
+
507
+ interface ProgressBarProps {
508
+ percent: number | undefined;
509
+ size?: number | [number | string, number] | {
510
+ width: number;
511
+ height: number;
512
+ } | "small" | "default";
513
+ checkpoints?: number[] | undefined;
514
+ showInfo?: boolean;
515
+ trailColor?: string;
516
+ type: "line" | "circle" | "dashboard";
517
+ strokeLinecap?: "round" | "butt" | "square";
518
+ strokeWidth?: number;
519
+ steps?: number;
520
+ isCheckPoints?: boolean;
521
+ }
522
+ declare function ProgressBar({ percent, size, checkpoints, showInfo, trailColor, type, strokeLinecap, strokeWidth, steps, isCheckPoints, }: ProgressBarProps): react_jsx_runtime.JSX.Element;
523
+
524
+ interface KpiNumberItem {
525
+ id: string;
526
+ name: string;
527
+ value: string;
528
+ unit: string;
529
+ isEditing?: boolean;
530
+ }
531
+
532
+ interface KpiSectionProps {
533
+ type: "number" | "text";
534
+ onChangeKpiList?: (data: KpiNumberItem[]) => void;
535
+ }
536
+ declare function KpiSection({ type, onChangeKpiList }: KpiSectionProps): react_jsx_runtime.JSX.Element;
537
+
538
+ interface ModalProps {
539
+ children: ReactNode;
540
+ isOpen: boolean;
541
+ width?: string | number;
542
+ onCancel: () => void;
543
+ }
544
+ declare function AntDModal({ children, isOpen, width, onCancel }: ModalProps): react_jsx_runtime.JSX.Element;
545
+
546
+ interface IndicatorProps {
547
+ option?: {
548
+ value: string;
549
+ label: string;
550
+ }[];
551
+ type: "OUTPUT" | "OUTCOME";
552
+ arrayData: IndicatorArray[];
553
+ setArrayData: (data: IndicatorArray[]) => void;
554
+ }
555
+ interface IndicatorArray {
556
+ indicatorType: "OUTPUT" | "OUTCOME";
557
+ inputType: "TEXT" | "NUMBER";
558
+ textValue: string;
559
+ numberValue?: string;
560
+ unit?: string;
561
+ }
562
+ declare function Indicator({ option, type, arrayData, setArrayData, }: IndicatorProps): react_jsx_runtime.JSX.Element;
563
+
564
+ interface optionSelect {
565
+ value: string;
566
+ label: string;
567
+ }
568
+ declare const FilterPopUp: (filter: {
569
+ selectionFilter: optionSelect[];
570
+ handleSearch: (listFiler: string[]) => void;
571
+ }) => react_jsx_runtime.JSX.Element;
572
+
573
+ export { AntDModal, AntDataTable, Breadcrumbs, Calendar, Checkbox, CheckboxGroup, ColorPalettePickerBasic, ColorPickerBasic, DataTable, DatePickerBasic, DatePickerRangePicker, FileUploader, FilterPopUp, GhostButton, HeadingPage, Indicator, InputField, InputFieldNumber, KpiSection, Loader, MenuNavBar, type MenuNavBarProps, PrimaryButton, ProgressBar, Radio, RadioGroup, SecondaryButton, SelectCustom, SelectField, SelectFieldGroup, SelectFieldStatus, SelectFieldStatusReport, SelectFieldTag, Sidebar, SortFilter, Switch, SwitchSelect, TabSelectionButton, TextAreaInput, TextInput, TimePickerBasic, TimePickerRangePicker, TopNavBar, messageError, messageInfo, messageLoading, messageSuccess, messageWarning, setMessageApi };
package/dist/index.d.mts CHANGED
@@ -7,7 +7,6 @@ import { InputNumberProps, SelectProps } from 'antd';
7
7
  import { Color } from 'antd/es/color-picker';
8
8
  import { MessageInstance } from 'antd/es/message/interface';
9
9
  import { ItemType } from 'antd/es/breadcrumb/Breadcrumb';
10
- import { ReactNode as ReactNode$1 } from '@tabler/icons-react';
11
10
 
12
11
  type ColorScale = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
13
12
  type BaseColor = "primary" | "gray" | "green" | "red" | "yellow" | "blue";
@@ -443,10 +442,9 @@ interface SortFilterProps {
443
442
  declare function SortFilter({ showYear, showQuarter, showMonth, onSortClick, onFilterClick, }: SortFilterProps): react_jsx_runtime.JSX.Element;
444
443
 
445
444
  interface FileUploaderProps {
446
- onUpload: (file: any) => Promise<void>;
445
+ onUpload: (file: File) => Promise<void>;
447
446
  onRemove?: (index: number) => Promise<void>;
448
447
  onError?: (message: string) => void;
449
- onClickFile?: (file: any) => void;
450
448
  accept?: string[];
451
449
  maxSize?: number;
452
450
  disabled?: boolean;
@@ -454,11 +452,8 @@ interface FileUploaderProps {
454
452
  description?: string;
455
453
  label?: string;
456
454
  value?: File[] | any[];
457
- uploadText?: string;
458
- uploaderWidth?: string;
459
- attachWidth?: string;
460
455
  }
461
- declare function FileUploader({ onUpload, onError, onRemove, onClickFile, accept, maxSize, disabled, mode, description, label, value, uploadText, uploaderWidth, attachWidth, }: FileUploaderProps): react_jsx_runtime.JSX.Element;
456
+ declare function FileUploader({ onUpload, onError, onRemove, accept, maxSize, disabled, mode, description, label, value, }: FileUploaderProps): react_jsx_runtime.JSX.Element;
462
457
 
463
458
  declare function setMessageApi(api: MessageInstance): void;
464
459
  declare function messageSuccess(content: string): void;
@@ -527,22 +522,16 @@ interface IndicatorProps {
527
522
  }[];
528
523
  type: "OUTPUT" | "OUTCOME";
529
524
  arrayData: IndicatorArray[];
530
- canEdit?: boolean;
531
525
  setArrayData: (data: IndicatorArray[]) => void;
532
- onDeleteClick?: (payload: {
533
- index: number;
534
- item: IndicatorArray;
535
- confirm: () => void;
536
- }) => void;
537
526
  }
538
527
  interface IndicatorArray {
539
528
  indicatorType: "OUTPUT" | "OUTCOME";
540
529
  inputType: "TEXT" | "NUMBER";
541
530
  textValue: string;
542
- numberValue?: number;
531
+ numberValue?: string;
543
532
  unit?: string;
544
533
  }
545
- declare function Indicator({ option, type, arrayData, setArrayData, canEdit, onDeleteClick, }: IndicatorProps): react_jsx_runtime.JSX.Element;
534
+ declare function Indicator({ option, type, arrayData, setArrayData, }: IndicatorProps): react_jsx_runtime.JSX.Element;
546
535
 
547
536
  interface optionSelect {
548
537
  value: string;
@@ -553,38 +542,4 @@ declare const FilterPopUp: (filter: {
553
542
  handleSearch: (listFiler: string[]) => void;
554
543
  }) => react_jsx_runtime.JSX.Element;
555
544
 
556
- interface UserData {
557
- id: string;
558
- name: string;
559
- profile: string;
560
- }
561
- interface ProfileSelectProp {
562
- allUser: UserData[];
563
- assignUser: UserData[];
564
- mode: "show" | "showAssign" | "icon";
565
- className?: string;
566
- onUpdateAssignUser: (user: UserData, action?: "add" | "remove") => void;
567
- }
568
- declare function ProfileSelect({ allUser, assignUser, mode, className, onUpdateAssignUser, }: ProfileSelectProp): react_jsx_runtime.JSX.Element;
569
-
570
- interface QRCodeGeneratorProps {
571
- url: string;
572
- previewSize?: number;
573
- defaultExportSize?: number;
574
- fileBaseName?: string;
575
- }
576
- declare const QRCodeGenerator: react.FC<QRCodeGeneratorProps>;
577
-
578
- interface TabProjectProp {
579
- tabOption: {
580
- key: string;
581
- label: string;
582
- icon: ReactNode$1;
583
- }[];
584
- projectId: string;
585
- now: string;
586
- onChange: (key: string) => void;
587
- }
588
- declare function TabProject({ tabOption, now, onChange }: TabProjectProp): react_jsx_runtime.JSX.Element;
589
-
590
- export { AntDModal, AntDataTable, Breadcrumbs, Calendar, Checkbox, CheckboxGroup, ColorPalettePickerBasic, ColorPickerBasic, DataTable, DatePickerBasic, DatePickerRange, FileUploader, FilterPopUp, GhostButton, HeadingPage, Indicator, InputField, InputFieldNumber, KpiSection, Loader, MenuNavBar, type MenuNavBarProps, PrimaryButton, ProfileSelect, ProgressBar, QRCodeGenerator, Radio, RadioGroup, SecondaryButton, SelectCustom, SelectField, SelectFieldGroup, SelectFieldStatus, SelectFieldStatusReport, SelectFieldTag, Sidebar, SortFilter, Switch, SwitchSelect, TabProject, TabSelectionButton, TextAreaInput, TextInput, TopNavBar, messageError, messageInfo, messageLoading, messageSuccess, messageWarning, setMessageApi };
545
+ export { AntDModal, AntDataTable, Breadcrumbs, Calendar, Checkbox, CheckboxGroup, ColorPalettePickerBasic, ColorPickerBasic, DataTable, DatePickerBasic, DatePickerRange, FileUploader, FilterPopUp, GhostButton, HeadingPage, Indicator, InputField, InputFieldNumber, KpiSection, Loader, MenuNavBar, type MenuNavBarProps, PrimaryButton, ProgressBar, Radio, RadioGroup, SecondaryButton, SelectCustom, SelectField, SelectFieldGroup, SelectFieldStatus, SelectFieldStatusReport, SelectFieldTag, Sidebar, SortFilter, Switch, SwitchSelect, TabSelectionButton, TextAreaInput, TextInput, TopNavBar, messageError, messageInfo, messageLoading, messageSuccess, messageWarning, setMessageApi };