@esic-lab/data-core-ui 0.0.26 → 0.0.28

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
@@ -1,9 +1,10 @@
1
+ /// <reference path="../node_modules/dayjs/locale/index.d.ts" />
1
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
3
  import react, { ReactNode } from 'react';
3
4
  import { ColumnsType } from 'antd/es/table';
4
5
  import { EventSourceInput } from '@fullcalendar/core';
5
- import { InputNumberProps, SelectProps } from 'antd';
6
6
  import { Color } from 'antd/es/color-picker';
7
+ import { SelectProps } from 'antd';
7
8
  import { MessageInstance } from 'antd/es/message/interface';
8
9
  import { ItemType } from 'antd/es/breadcrumb/Breadcrumb';
9
10
 
@@ -175,8 +176,9 @@ interface InputFieldProps {
175
176
  value: string | undefined;
176
177
  onChange: (value: string | undefined) => void;
177
178
  placeholder?: string;
178
- label?: string;
179
+ title?: string;
179
180
  required?: boolean;
181
+ bottomText?: string;
180
182
  disabled?: boolean;
181
183
  error?: string;
182
184
  addonBefore?: ReactNode;
@@ -185,7 +187,7 @@ interface InputFieldProps {
185
187
  className?: string;
186
188
  onClear?: () => void;
187
189
  }
188
- declare function InputField({ value, onChange, placeholder, label, required, disabled, error, addonBefore, addonAfter, defaultValue, className, onClear }: InputFieldProps): react_jsx_runtime.JSX.Element;
190
+ declare function InputField({ value, onChange, placeholder, title, required, bottomText, disabled, error, addonBefore, addonAfter, defaultValue, className, onClear, }: InputFieldProps): react_jsx_runtime.JSX.Element;
189
191
 
190
192
  interface TextAreaProps {
191
193
  label?: string;
@@ -202,36 +204,12 @@ interface TextAreaProps {
202
204
  }
203
205
  declare function TextAreaInput({ label, height, placeholder, onChange, value, maxLength, resizable, showCount, required, error, disabled, }: TextAreaProps): react_jsx_runtime.JSX.Element;
204
206
 
205
- interface InputFieldNumberProps {
206
- value: number | string | null;
207
- onChange: (value: number | string | null) => void;
208
- placeholder?: string;
209
- title?: string;
210
- required?: boolean;
211
- disabled?: boolean;
212
- error?: string;
213
- addonBefore?: React.ReactNode;
214
- addonAfter?: React.ReactNode;
215
- defaultValue?: number;
216
- className?: string;
217
- max?: number;
218
- min?: number;
219
- controls?: boolean | {
220
- upIcon?: React.ReactNode;
221
- downIcon?: React.ReactNode;
222
- };
223
- size?: "large" | "middle" | "small";
224
- changeOnWheel?: boolean;
225
- formatter?: InputNumberProps["formatter"];
226
- parser?: InputNumberProps["parser"];
227
- }
228
- declare function InputFieldNumber({ value, onChange, placeholder, title, required, disabled, error, addonBefore, addonAfter, defaultValue, className, max, min, controls, size, changeOnWheel, formatter, parser, }: InputFieldNumberProps): react_jsx_runtime.JSX.Element;
229
-
230
207
  interface ColorPickerProps {
231
208
  value: string | null;
232
209
  onChange?: (color: Color, hex: string) => void;
233
210
  required?: boolean;
234
- label?: string;
211
+ title?: string;
212
+ bottomText?: string;
235
213
  error?: string;
236
214
  disabled?: boolean;
237
215
  allowClear?: boolean;
@@ -239,77 +217,510 @@ interface ColorPickerProps {
239
217
  className?: string;
240
218
  placeholder?: string;
241
219
  }
242
- declare function ColorPickerBasic({ value, onChange, required, label, error, disabled, allowClear, defaultFormat, className, placeholder }: ColorPickerProps): react_jsx_runtime.JSX.Element;
220
+ declare function ColorPickerBasic({ value, onChange, required, title, bottomText, error, disabled, allowClear, defaultFormat, className, placeholder, }: ColorPickerProps): react_jsx_runtime.JSX.Element;
221
+
222
+ declare function dayjs (date?: dayjs.ConfigType): dayjs.Dayjs
223
+
224
+ declare function dayjs (date?: dayjs.ConfigType, format?: dayjs.OptionType, strict?: boolean): dayjs.Dayjs
225
+
226
+ declare function dayjs (date?: dayjs.ConfigType, format?: dayjs.OptionType, locale?: string, strict?: boolean): dayjs.Dayjs
227
+
228
+ declare namespace dayjs {
229
+ interface ConfigTypeMap {
230
+ default: string | number | Date | Dayjs | null | undefined
231
+ }
232
+
233
+ export type ConfigType = ConfigTypeMap[keyof ConfigTypeMap]
234
+
235
+ export interface FormatObject { locale?: string, format?: string, utc?: boolean }
236
+
237
+ export type OptionType = FormatObject | string | string[]
238
+
239
+ export type UnitTypeShort = 'd' | 'D' | 'M' | 'y' | 'h' | 'm' | 's' | 'ms'
240
+
241
+ export type UnitTypeLong = 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' | 'date'
242
+
243
+ export type UnitTypeLongPlural = 'milliseconds' | 'seconds' | 'minutes' | 'hours' | 'days' | 'months' | 'years' | 'dates'
244
+
245
+ export type UnitType = UnitTypeLong | UnitTypeLongPlural | UnitTypeShort;
246
+
247
+ export type OpUnitType = UnitType | "week" | "weeks" | 'w';
248
+ export type QUnitType = UnitType | "quarter" | "quarters" | 'Q';
249
+ export type ManipulateType = Exclude<OpUnitType, 'date' | 'dates'>;
250
+ class Dayjs {
251
+ constructor (config?: ConfigType)
252
+ /**
253
+ * All Day.js objects are immutable. Still, `dayjs#clone` can create a clone of the current object if you need one.
254
+ * ```
255
+ * dayjs().clone()// => Dayjs
256
+ * dayjs(dayjs('2019-01-25')) // passing a Dayjs object to a constructor will also clone it
257
+ * ```
258
+ * Docs: https://day.js.org/docs/en/parse/dayjs-clone
259
+ */
260
+ clone(): Dayjs
261
+ /**
262
+ * This returns a `boolean` indicating whether the Day.js object contains a valid date or not.
263
+ * ```
264
+ * dayjs().isValid()// => boolean
265
+ * ```
266
+ * Docs: https://day.js.org/docs/en/parse/is-valid
267
+ */
268
+ isValid(): boolean
269
+ /**
270
+ * Get the year.
271
+ * ```
272
+ * dayjs().year()// => 2020
273
+ * ```
274
+ * Docs: https://day.js.org/docs/en/get-set/year
275
+ */
276
+ year(): number
277
+ /**
278
+ * Set the year.
279
+ * ```
280
+ * dayjs().year(2000)// => Dayjs
281
+ * ```
282
+ * Docs: https://day.js.org/docs/en/get-set/year
283
+ */
284
+ year(value: number): Dayjs
285
+ /**
286
+ * Get the month.
287
+ *
288
+ * Months are zero indexed, so January is month 0.
289
+ * ```
290
+ * dayjs().month()// => 0-11
291
+ * ```
292
+ * Docs: https://day.js.org/docs/en/get-set/month
293
+ */
294
+ month(): number
295
+ /**
296
+ * Set the month.
297
+ *
298
+ * Months are zero indexed, so January is month 0.
299
+ *
300
+ * Accepts numbers from 0 to 11. If the range is exceeded, it will bubble up to the next year.
301
+ * ```
302
+ * dayjs().month(0)// => Dayjs
303
+ * ```
304
+ * Docs: https://day.js.org/docs/en/get-set/month
305
+ */
306
+ month(value: number): Dayjs
307
+ /**
308
+ * Get the date of the month.
309
+ * ```
310
+ * dayjs().date()// => 1-31
311
+ * ```
312
+ * Docs: https://day.js.org/docs/en/get-set/date
313
+ */
314
+ date(): number
315
+ /**
316
+ * Set the date of the month.
317
+ *
318
+ * Accepts numbers from 1 to 31. If the range is exceeded, it will bubble up to the next months.
319
+ * ```
320
+ * dayjs().date(1)// => Dayjs
321
+ * ```
322
+ * Docs: https://day.js.org/docs/en/get-set/date
323
+ */
324
+ date(value: number): Dayjs
325
+ /**
326
+ * Get the day of the week.
327
+ *
328
+ * Returns numbers from 0 (Sunday) to 6 (Saturday).
329
+ * ```
330
+ * dayjs().day()// 0-6
331
+ * ```
332
+ * Docs: https://day.js.org/docs/en/get-set/day
333
+ */
334
+ day(): 0 | 1 | 2 | 3 | 4 | 5 | 6
335
+ /**
336
+ * Set the day of the week.
337
+ *
338
+ * Accepts numbers from 0 (Sunday) to 6 (Saturday). If the range is exceeded, it will bubble up to next weeks.
339
+ * ```
340
+ * dayjs().day(0)// => Dayjs
341
+ * ```
342
+ * Docs: https://day.js.org/docs/en/get-set/day
343
+ */
344
+ day(value: number): Dayjs
345
+ /**
346
+ * Get the hour.
347
+ * ```
348
+ * dayjs().hour()// => 0-23
349
+ * ```
350
+ * Docs: https://day.js.org/docs/en/get-set/hour
351
+ */
352
+ hour(): number
353
+ /**
354
+ * Set the hour.
355
+ *
356
+ * Accepts numbers from 0 to 23. If the range is exceeded, it will bubble up to the next day.
357
+ * ```
358
+ * dayjs().hour(12)// => Dayjs
359
+ * ```
360
+ * Docs: https://day.js.org/docs/en/get-set/hour
361
+ */
362
+ hour(value: number): Dayjs
363
+ /**
364
+ * Get the minutes.
365
+ * ```
366
+ * dayjs().minute()// => 0-59
367
+ * ```
368
+ * Docs: https://day.js.org/docs/en/get-set/minute
369
+ */
370
+ minute(): number
371
+ /**
372
+ * Set the minutes.
373
+ *
374
+ * Accepts numbers from 0 to 59. If the range is exceeded, it will bubble up to the next hour.
375
+ * ```
376
+ * dayjs().minute(59)// => Dayjs
377
+ * ```
378
+ * Docs: https://day.js.org/docs/en/get-set/minute
379
+ */
380
+ minute(value: number): Dayjs
381
+ /**
382
+ * Get the seconds.
383
+ * ```
384
+ * dayjs().second()// => 0-59
385
+ * ```
386
+ * Docs: https://day.js.org/docs/en/get-set/second
387
+ */
388
+ second(): number
389
+ /**
390
+ * Set the seconds.
391
+ *
392
+ * Accepts numbers from 0 to 59. If the range is exceeded, it will bubble up to the next minutes.
393
+ * ```
394
+ * dayjs().second(1)// Dayjs
395
+ * ```
396
+ */
397
+ second(value: number): Dayjs
398
+ /**
399
+ * Get the milliseconds.
400
+ * ```
401
+ * dayjs().millisecond()// => 0-999
402
+ * ```
403
+ * Docs: https://day.js.org/docs/en/get-set/millisecond
404
+ */
405
+ millisecond(): number
406
+ /**
407
+ * Set the milliseconds.
408
+ *
409
+ * Accepts numbers from 0 to 999. If the range is exceeded, it will bubble up to the next seconds.
410
+ * ```
411
+ * dayjs().millisecond(1)// => Dayjs
412
+ * ```
413
+ * Docs: https://day.js.org/docs/en/get-set/millisecond
414
+ */
415
+ millisecond(value: number): Dayjs
416
+ /**
417
+ * Generic setter, accepting unit as first argument, and value as second, returns a new instance with the applied changes.
418
+ *
419
+ * In general:
420
+ * ```
421
+ * dayjs().set(unit, value) === dayjs()[unit](value)
422
+ * ```
423
+ * Units are case insensitive, and support plural and short forms.
424
+ * ```
425
+ * dayjs().set('date', 1)
426
+ * dayjs().set('month', 3) // April
427
+ * dayjs().set('second', 30)
428
+ * ```
429
+ * Docs: https://day.js.org/docs/en/get-set/set
430
+ */
431
+ set(unit: UnitType, value: number): Dayjs
432
+ /**
433
+ * String getter, returns the corresponding information getting from Day.js object.
434
+ *
435
+ * In general:
436
+ * ```
437
+ * dayjs().get(unit) === dayjs()[unit]()
438
+ * ```
439
+ * Units are case insensitive, and support plural and short forms.
440
+ * ```
441
+ * dayjs().get('year')
442
+ * dayjs().get('month') // start 0
443
+ * dayjs().get('date')
444
+ * ```
445
+ * Docs: https://day.js.org/docs/en/get-set/get
446
+ */
447
+ get(unit: UnitType): number
448
+ /**
449
+ * Returns a cloned Day.js object with a specified amount of time added.
450
+ * ```
451
+ * dayjs().add(7, 'day')// => Dayjs
452
+ * ```
453
+ * Units are case insensitive, and support plural and short forms.
454
+ *
455
+ * Docs: https://day.js.org/docs/en/manipulate/add
456
+ */
457
+ add(value: number, unit?: ManipulateType): Dayjs
458
+ /**
459
+ * Returns a cloned Day.js object with a specified amount of time subtracted.
460
+ * ```
461
+ * dayjs().subtract(7, 'year')// => Dayjs
462
+ * ```
463
+ * Units are case insensitive, and support plural and short forms.
464
+ *
465
+ * Docs: https://day.js.org/docs/en/manipulate/subtract
466
+ */
467
+ subtract(value: number, unit?: ManipulateType): Dayjs
468
+ /**
469
+ * Returns a cloned Day.js object and set it to the start of a unit of time.
470
+ * ```
471
+ * dayjs().startOf('year')// => Dayjs
472
+ * ```
473
+ * Units are case insensitive, and support plural and short forms.
474
+ *
475
+ * Docs: https://day.js.org/docs/en/manipulate/start-of
476
+ */
477
+ startOf(unit: OpUnitType): Dayjs
478
+ /**
479
+ * Returns a cloned Day.js object and set it to the end of a unit of time.
480
+ * ```
481
+ * dayjs().endOf('month')// => Dayjs
482
+ * ```
483
+ * Units are case insensitive, and support plural and short forms.
484
+ *
485
+ * Docs: https://day.js.org/docs/en/manipulate/end-of
486
+ */
487
+ endOf(unit: OpUnitType): Dayjs
488
+ /**
489
+ * Get the formatted date according to the string of tokens passed in.
490
+ *
491
+ * To escape characters, wrap them in square brackets (e.g. [MM]).
492
+ * ```
493
+ * dayjs().format()// => current date in ISO8601, without fraction seconds e.g. '2020-04-02T08:02:17-05:00'
494
+ * dayjs('2019-01-25').format('[YYYYescape] YYYY-MM-DDTHH:mm:ssZ[Z]')// 'YYYYescape 2019-01-25T00:00:00-02:00Z'
495
+ * dayjs('2019-01-25').format('DD/MM/YYYY') // '25/01/2019'
496
+ * ```
497
+ * Docs: https://day.js.org/docs/en/display/format
498
+ */
499
+ format(template?: string): string
500
+ /**
501
+ * This indicates the difference between two date-time in the specified unit.
502
+ *
503
+ * To get the difference in milliseconds, use `dayjs#diff`
504
+ * ```
505
+ * const date1 = dayjs('2019-01-25')
506
+ * const date2 = dayjs('2018-06-05')
507
+ * date1.diff(date2) // 20214000000 default milliseconds
508
+ * date1.diff() // milliseconds to current time
509
+ * ```
510
+ *
511
+ * To get the difference in another unit of measurement, pass that measurement as the second argument.
512
+ * ```
513
+ * const date1 = dayjs('2019-01-25')
514
+ * date1.diff('2018-06-05', 'month') // 7
515
+ * ```
516
+ * Units are case insensitive, and support plural and short forms.
517
+ *
518
+ * Docs: https://day.js.org/docs/en/display/difference
519
+ */
520
+ diff(date?: ConfigType, unit?: QUnitType | OpUnitType, float?: boolean): number
521
+ /**
522
+ * This returns the number of **milliseconds** since the Unix Epoch of the Day.js object.
523
+ * ```
524
+ * dayjs('2019-01-25').valueOf() // 1548381600000
525
+ * +dayjs(1548381600000) // 1548381600000
526
+ * ```
527
+ * To get a Unix timestamp (the number of seconds since the epoch) from a Day.js object, you should use Unix Timestamp `dayjs#unix()`.
528
+ *
529
+ * Docs: https://day.js.org/docs/en/display/unix-timestamp-milliseconds
530
+ */
531
+ valueOf(): number
532
+ /**
533
+ * This returns the Unix timestamp (the number of **seconds** since the Unix Epoch) of the Day.js object.
534
+ * ```
535
+ * dayjs('2019-01-25').unix() // 1548381600
536
+ * ```
537
+ * This value is floored to the nearest second, and does not include a milliseconds component.
538
+ *
539
+ * Docs: https://day.js.org/docs/en/display/unix-timestamp
540
+ */
541
+ unix(): number
542
+ /**
543
+ * Get the number of days in the current month.
544
+ * ```
545
+ * dayjs('2019-01-25').daysInMonth() // 31
546
+ * ```
547
+ * Docs: https://day.js.org/docs/en/display/days-in-month
548
+ */
549
+ daysInMonth(): number
550
+ /**
551
+ * To get a copy of the native `Date` object parsed from the Day.js object use `dayjs#toDate`.
552
+ * ```
553
+ * dayjs('2019-01-25').toDate()// => Date
554
+ * ```
555
+ */
556
+ toDate(): Date
557
+ /**
558
+ * To serialize as an ISO 8601 string.
559
+ * ```
560
+ * dayjs('2019-01-25').toJSON() // '2019-01-25T02:00:00.000Z'
561
+ * ```
562
+ * Docs: https://day.js.org/docs/en/display/as-json
563
+ */
564
+ toJSON(): string
565
+ /**
566
+ * To format as an ISO 8601 string.
567
+ * ```
568
+ * dayjs('2019-01-25').toISOString() // '2019-01-25T02:00:00.000Z'
569
+ * ```
570
+ * Docs: https://day.js.org/docs/en/display/as-iso-string
571
+ */
572
+ toISOString(): string
573
+ /**
574
+ * Returns a string representation of the date.
575
+ * ```
576
+ * dayjs('2019-01-25').toString() // 'Fri, 25 Jan 2019 02:00:00 GMT'
577
+ * ```
578
+ * Docs: https://day.js.org/docs/en/display/as-string
579
+ */
580
+ toString(): string
581
+ /**
582
+ * Get the UTC offset in minutes.
583
+ * ```
584
+ * dayjs().utcOffset()
585
+ * ```
586
+ * Docs: https://day.js.org/docs/en/manipulate/utc-offset
587
+ */
588
+ utcOffset(): number
589
+ /**
590
+ * This indicates whether the Day.js object is before the other supplied date-time.
591
+ * ```
592
+ * dayjs().isBefore(dayjs('2011-01-01')) // default milliseconds
593
+ * ```
594
+ * If you want to limit the granularity to a unit other than milliseconds, pass it as the second parameter.
595
+ * ```
596
+ * dayjs().isBefore('2011-01-01', 'year')// => boolean
597
+ * ```
598
+ * Units are case insensitive, and support plural and short forms.
599
+ *
600
+ * Docs: https://day.js.org/docs/en/query/is-before
601
+ */
602
+ isBefore(date?: ConfigType, unit?: OpUnitType): boolean
603
+ /**
604
+ * This indicates whether the Day.js object is the same as the other supplied date-time.
605
+ * ```
606
+ * dayjs().isSame(dayjs('2011-01-01')) // default milliseconds
607
+ * ```
608
+ * If you want to limit the granularity to a unit other than milliseconds, pass it as the second parameter.
609
+ * ```
610
+ * dayjs().isSame('2011-01-01', 'year')// => boolean
611
+ * ```
612
+ * Docs: https://day.js.org/docs/en/query/is-same
613
+ */
614
+ isSame(date?: ConfigType, unit?: OpUnitType): boolean
615
+ /**
616
+ * This indicates whether the Day.js object is after the other supplied date-time.
617
+ * ```
618
+ * dayjs().isAfter(dayjs('2011-01-01')) // default milliseconds
619
+ * ```
620
+ * If you want to limit the granularity to a unit other than milliseconds, pass it as the second parameter.
621
+ * ```
622
+ * dayjs().isAfter('2011-01-01', 'year')// => boolean
623
+ * ```
624
+ * Units are case insensitive, and support plural and short forms.
625
+ *
626
+ * Docs: https://day.js.org/docs/en/query/is-after
627
+ */
628
+ isAfter(date?: ConfigType, unit?: OpUnitType): boolean
629
+
630
+ locale(): string
631
+
632
+ locale(preset: string | ILocale, object?: Partial<ILocale>): Dayjs
633
+ }
634
+
635
+ export type PluginFunc<T = unknown> = (option: T, c: typeof Dayjs, d: typeof dayjs) => void
636
+
637
+ export function extend<T = unknown>(plugin: PluginFunc<T>, option?: T): Dayjs
638
+
639
+ export function locale(preset?: string | ILocale, object?: Partial<ILocale>, isLocal?: boolean): string
640
+
641
+ export function isDayjs(d: any): d is Dayjs
642
+
643
+ export function unix(t: number): Dayjs
644
+
645
+ const Ls : { [key: string] : ILocale }
646
+ }
647
+
648
+ type Dayjs$2 = dayjs.Dayjs;
243
649
 
244
650
  interface DatePickerBasicProps {
245
- value: Date | null;
246
- onChange: (date: Date | null) => void;
651
+ value: Dayjs$2 | null;
652
+ onChange: (day: Dayjs$2 | null) => void;
247
653
  required?: boolean;
248
- label?: string;
654
+ title?: string;
655
+ bottomText?: string;
249
656
  error?: string;
250
657
  placeholder?: string;
251
658
  disabled?: boolean;
252
- defaultValue?: Date | null;
659
+ defaultValue?: Dayjs$2 | null;
253
660
  mode?: "time" | "date" | "month";
254
- minDate?: Date;
255
- maxDate?: Date;
256
- disabledDate?: (currentDate: Date) => boolean;
661
+ minDate?: Dayjs$2 | undefined;
662
+ maxDate?: Dayjs$2 | undefined;
663
+ disabledDate?: (currentDate: Dayjs$2) => boolean;
257
664
  className?: string;
258
665
  size?: "small" | "middle" | "large";
259
666
  }
260
- declare function DatePickerBasic({ value, onChange, required, label, error, placeholder, disabled, defaultValue, minDate, maxDate, disabledDate, className, size, }: DatePickerBasicProps): react_jsx_runtime.JSX.Element;
667
+ declare function DatePickerBasic({ value, onChange, required, title, bottomText, error, placeholder, disabled, defaultValue, minDate, maxDate, disabledDate, className, size, }: DatePickerBasicProps): react_jsx_runtime.JSX.Element;
261
668
 
669
+ type Dayjs$1 = dayjs.Dayjs;
262
670
  interface DatePickerRangePickerProps {
263
- value: [Date | null, Date | null] | null;
264
- onChange: (val: [Date | null, Date | null] | null) => void;
671
+ value: [dayjs.Dayjs | null, dayjs.Dayjs | null] | null;
672
+ onChange: (val: [dayjs.Dayjs | null, dayjs.Dayjs | null] | null) => void;
265
673
  placeholder?: [string, string];
266
- label?: string;
674
+ title?: string;
267
675
  required?: boolean;
676
+ bottomText?: string;
268
677
  error?: string;
269
678
  disabled?: boolean;
270
- defaultValue?: [Date, Date] | null;
679
+ defaultValue?: [Dayjs$1, Dayjs$1] | null;
271
680
  mode?: "time" | "date" | "month";
272
- minDate?: Date | undefined;
273
- maxDate?: Date | undefined;
274
- disabledDate?: (currentDate: Date) => boolean;
681
+ minDate?: Dayjs$1 | undefined;
682
+ maxDate?: Dayjs$1 | undefined;
683
+ disabledDate?: (currentDate: Dayjs$1) => boolean;
275
684
  size?: "small" | "middle" | "large";
276
685
  className?: string;
277
686
  onOpenChange?: (open: boolean) => void;
278
- onCalendarChange?: (dates: [Date | null, Date | null], dateStrings: [string, string], info: any) => void;
687
+ onCalendarChange?: (dates: [Dayjs$1 | null, Dayjs$1 | null], dateStrings: [string, string], info: any) => void;
279
688
  }
280
- declare function DatePickerRangePicker({ value, onChange, placeholder, label, required, error, disabled, minDate, maxDate, disabledDate, size, className, onOpenChange, onCalendarChange, }: DatePickerRangePickerProps): react_jsx_runtime.JSX.Element;
689
+ declare function DatePickerRangePicker({ value, onChange, placeholder, title, required, bottomText, error, disabled, minDate, maxDate, disabledDate, size, className, onOpenChange, onCalendarChange, }: DatePickerRangePickerProps): react_jsx_runtime.JSX.Element;
281
690
 
691
+ type Dayjs = dayjs.Dayjs;
282
692
  interface TimePickerBasicProps {
283
- value: Date | null;
284
- onChange: (time: Date | null) => void;
693
+ value: Dayjs | null;
694
+ onChange: (time: Dayjs | null) => void;
285
695
  required?: boolean;
286
- label?: string;
696
+ title?: string;
287
697
  bottomText?: string;
288
- showError?: boolean;
289
698
  error?: string;
290
699
  placeholder?: string;
291
700
  disabled?: boolean;
292
701
  className?: string;
293
702
  }
294
- declare function TimePickerBasic({ value, onChange, required, label, error, placeholder, disabled, className, }: TimePickerBasicProps): react_jsx_runtime.JSX.Element;
703
+ declare function TimePickerBasic({ value, onChange, required, title, bottomText, error, placeholder, disabled, className, }: TimePickerBasicProps): react_jsx_runtime.JSX.Element;
295
704
 
296
705
  interface TimePickerRangePickerProps {
297
- value: [Date | null, Date | null] | null;
298
- onChange: (val: [Date | null, Date | null] | null) => void;
706
+ value: [dayjs.Dayjs | null, dayjs.Dayjs | null] | null;
707
+ onChange: (val: [dayjs.Dayjs | null, dayjs.Dayjs | null] | null) => void;
299
708
  placeholder?: [string, string];
300
- label?: string;
709
+ title?: string;
301
710
  required?: boolean;
711
+ bottomText?: string;
302
712
  error?: string;
303
713
  disabled?: boolean;
304
714
  className?: string;
305
715
  }
306
- declare function TimePickerRangePicker({ value, onChange, placeholder, label, required, error, disabled, className, }: TimePickerRangePickerProps): react_jsx_runtime.JSX.Element;
716
+ declare function TimePickerRangePicker({ value, onChange, placeholder, title, required, bottomText, error, disabled, className, }: TimePickerRangePickerProps): react_jsx_runtime.JSX.Element;
307
717
 
308
718
  interface ColorPalettePickerBasicProps {
309
719
  value: string | null;
310
720
  onChange?: (color: Color, hex: string) => void;
311
721
  required?: boolean;
312
- label?: string;
722
+ title?: string;
723
+ bottomText?: string;
313
724
  error?: string;
314
725
  disabled?: boolean;
315
726
  allowClear?: boolean;
@@ -318,14 +729,15 @@ interface ColorPalettePickerBasicProps {
318
729
  placeholder?: string;
319
730
  onClear?: () => void;
320
731
  }
321
- declare function ColorPalettePickerBasic({ value, onChange, required, label, error, disabled, allowClear, defaultFormat, className, placeholder, onClear, }: ColorPalettePickerBasicProps): react_jsx_runtime.JSX.Element;
732
+ declare function ColorPalettePickerBasic({ value, onChange, required, title, bottomText, error, disabled, allowClear, defaultFormat, className, placeholder, onClear, }: ColorPalettePickerBasicProps): react_jsx_runtime.JSX.Element;
322
733
 
323
734
  interface SelectFieldProps$1 {
324
735
  value?: SelectProps["value"];
325
736
  onChange: (value: SelectProps["value"]) => void;
326
737
  placeholder?: string;
327
- label?: string;
738
+ title?: string;
328
739
  required?: boolean;
740
+ bottomText?: string;
329
741
  error?: string;
330
742
  disabled?: boolean;
331
743
  defaultValue?: string;
@@ -334,23 +746,23 @@ interface SelectFieldProps$1 {
334
746
  value: string | number | null;
335
747
  disabled?: boolean;
336
748
  }[];
337
- mode?: 'multiple' | 'tags';
749
+ mode?: "multiple" | "tags";
338
750
  handleSearch?: (value: string) => void;
339
751
  prefix?: ReactNode;
340
752
  prefixSize?: number;
341
753
  className?: string;
342
754
  onClear?: () => void;
343
755
  }
344
- 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;
756
+ declare function SelectField({ value, onChange, placeholder, title, required, bottomText, error, disabled, defaultValue, options, mode, prefix, prefixSize, handleSearch, className, onClear, }: SelectFieldProps$1): react_jsx_runtime.JSX.Element;
345
757
 
346
758
  interface SelectFieldProps {
347
759
  value?: SelectProps["value"];
348
760
  onChange: (value: SelectProps["value"]) => void;
349
761
  placeholder?: string;
350
- label?: string;
762
+ title?: string;
351
763
  required?: boolean;
764
+ bottomText?: string;
352
765
  error?: string;
353
- showError?: boolean;
354
766
  disabled?: boolean;
355
767
  defaultValue?: string;
356
768
  options?: {
@@ -367,14 +779,15 @@ interface SelectFieldProps {
367
779
  prefixSize?: number;
368
780
  className?: string;
369
781
  }
370
- declare function SelectFieldGroup({ value, onChange, placeholder, label, required, error, disabled, defaultValue, options, mode, prefix, prefixSize, handleSearch, className }: SelectFieldProps): react_jsx_runtime.JSX.Element;
782
+ declare function SelectFieldGroup({ value, onChange, placeholder, title, required, bottomText, error, disabled, defaultValue, options, mode, prefix, prefixSize, handleSearch, className, }: SelectFieldProps): react_jsx_runtime.JSX.Element;
371
783
 
372
784
  interface SelectFieldStatusProps {
373
785
  value: string | undefined;
374
786
  onChange: (value: string | undefined) => void;
375
787
  placeholder?: string;
376
- label?: string;
788
+ title?: string;
377
789
  required?: boolean;
790
+ bottomText?: string;
378
791
  disabled?: boolean;
379
792
  error?: string;
380
793
  options?: {
@@ -384,14 +797,15 @@ interface SelectFieldStatusProps {
384
797
  }[];
385
798
  className?: string;
386
799
  }
387
- declare function SelectFieldStatus({ value, onChange, placeholder, label, required, disabled, error, options, className }: SelectFieldStatusProps): react_jsx_runtime.JSX.Element;
800
+ declare function SelectFieldStatus({ value, onChange, placeholder, title, required, bottomText, disabled, error, options, className, }: SelectFieldStatusProps): react_jsx_runtime.JSX.Element;
388
801
 
389
802
  interface SelectFieldStatusReportProps {
390
803
  value: string | undefined;
391
804
  onChange: (value: string | undefined) => void;
392
805
  placeholder?: string;
393
- label?: string;
806
+ title?: string;
394
807
  required?: boolean;
808
+ bottomText?: string;
395
809
  disabled?: boolean;
396
810
  error?: string;
397
811
  className?: string;
@@ -401,11 +815,12 @@ interface SelectFieldStatusReportProps {
401
815
  disabled?: boolean;
402
816
  }[];
403
817
  }
404
- declare function SelectFieldStatusReport({ value, onChange, placeholder, label, required, disabled, error, className, options }: SelectFieldStatusReportProps): react_jsx_runtime.JSX.Element;
818
+ declare function SelectFieldStatusReport({ value, onChange, placeholder, title, required, bottomText, disabled, error, className, options, }: SelectFieldStatusReportProps): react_jsx_runtime.JSX.Element;
405
819
 
406
820
  interface SelectFieldTagProps {
407
- label?: string | null;
821
+ title?: string | null;
408
822
  required?: boolean;
823
+ bottomText?: string | null;
409
824
  placeholder?: string;
410
825
  options?: {
411
826
  label: ReactNode;
@@ -418,22 +833,23 @@ interface SelectFieldTagProps {
418
833
  className?: string;
419
834
  onClear?: () => void;
420
835
  }
421
- declare function SelectFieldTag({ label, required, placeholder, options, error, value: controlledValue, className, onChange, onClear }: SelectFieldTagProps): react_jsx_runtime.JSX.Element;
836
+ declare function SelectFieldTag({ title, required, bottomText, placeholder, options, error, value: controlledValue, className, onChange, onClear, }: SelectFieldTagProps): react_jsx_runtime.JSX.Element;
422
837
 
423
838
  interface OptionItem {
424
839
  value: string;
425
840
  label: string;
426
841
  }
427
842
  interface SelectCustomProps {
428
- label?: string;
843
+ title?: string;
429
844
  placeholder?: string;
430
845
  options: OptionItem[];
431
846
  required?: boolean;
432
847
  onChange?: (valueList: string[]) => void;
848
+ bottomText?: string;
433
849
  error?: string;
434
850
  onClear?: () => void;
435
851
  }
436
- declare function SelectCustom({ label, placeholder, options, required, onChange, error, onClear }: SelectCustomProps): react_jsx_runtime.JSX.Element;
852
+ declare function SelectCustom({ title, placeholder, options, required, onChange, bottomText, error, onClear, }: SelectCustomProps): react_jsx_runtime.JSX.Element;
437
853
 
438
854
  interface SortFilterProps {
439
855
  showYear?: boolean;
@@ -446,7 +862,7 @@ declare function SortFilter({ showYear, showQuarter, showMonth, onSortClick, onF
446
862
 
447
863
  interface FileUploaderProps {
448
864
  onUpload: (file: File) => Promise<void>;
449
- onRemove?: (index: number) => Promise<void>;
865
+ onRemove?: () => Promise<void>;
450
866
  onError?: (message: string) => void;
451
867
  accept?: string[];
452
868
  maxSize?: number;
@@ -509,4 +925,4 @@ interface KpiSectionProps {
509
925
  }
510
926
  declare function KpiSection({ type, onChangeKpiList }: KpiSectionProps): react_jsx_runtime.JSX.Element;
511
927
 
512
- export { AntDataTable, Breadcrumbs, Calendar, Checkbox, CheckboxGroup, ColorPalettePickerBasic, ColorPickerBasic, DataTable, DatePickerBasic, DatePickerRangePicker, FileUploader, GhostButton, HeadingPage, InputField, InputFieldNumber, KpiSection, Loader, MenuNavBar, type MenuNavBarProps, PrimaryButton, ProgressBar, Radio, RadioGroup, SecondaryButton, SelectCustom, SelectField, SelectFieldGroup, SelectFieldStatus, SelectFieldStatusReport, SelectFieldTag, Sidebar, SortFilter, Switch, TextAreaInput, TextInput, TimePickerBasic, TimePickerRangePicker, TopNavBar, messageError, messageInfo, messageLoading, messageSuccess, messageWarning, setMessageApi };
928
+ export { AntDataTable, Breadcrumbs, Calendar, Checkbox, CheckboxGroup, ColorPalettePickerBasic, ColorPickerBasic, DataTable, DatePickerBasic, DatePickerRangePicker, FileUploader, GhostButton, HeadingPage, InputField, KpiSection, Loader, MenuNavBar, type MenuNavBarProps, PrimaryButton, ProgressBar, Radio, RadioGroup, SecondaryButton, SelectCustom, SelectField, SelectFieldGroup, SelectFieldStatus, SelectFieldStatusReport, SelectFieldTag, Sidebar, SortFilter, Switch, TextAreaInput, TextInput, TimePickerBasic, TimePickerRangePicker, TopNavBar, messageError, messageInfo, messageLoading, messageSuccess, messageWarning, setMessageApi };