@esic-lab/data-core-ui 0.0.27 → 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,3 +1,4 @@
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';
@@ -176,18 +177,17 @@ interface InputFieldProps {
176
177
  onChange: (value: string | undefined) => void;
177
178
  placeholder?: string;
178
179
  title?: string;
179
- require?: boolean;
180
+ required?: boolean;
180
181
  bottomText?: string;
181
182
  disabled?: boolean;
182
- showError?: boolean;
183
- errorMessage?: string;
183
+ error?: string;
184
184
  addonBefore?: ReactNode;
185
185
  addonAfter?: ReactNode;
186
186
  defaultValue?: string;
187
187
  className?: string;
188
188
  onClear?: () => void;
189
189
  }
190
- declare function InputField({ value, onChange, placeholder, title, require, bottomText, disabled, showError, errorMessage, 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;
191
191
 
192
192
  interface TextAreaProps {
193
193
  label?: string;
@@ -207,91 +207,521 @@ declare function TextAreaInput({ label, height, placeholder, onChange, value, ma
207
207
  interface ColorPickerProps {
208
208
  value: string | null;
209
209
  onChange?: (color: Color, hex: string) => void;
210
- require?: boolean;
210
+ required?: boolean;
211
211
  title?: string;
212
212
  bottomText?: string;
213
- showError?: boolean;
214
- errorMessage?: string;
213
+ error?: string;
215
214
  disabled?: boolean;
216
215
  allowClear?: boolean;
217
216
  defaultFormat?: "hex" | "rgb" | "hsb";
218
217
  className?: string;
219
218
  placeholder?: string;
220
219
  }
221
- declare function ColorPickerBasic({ value, onChange, require, title, bottomText, showError, errorMessage, 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;
222
649
 
223
650
  interface DatePickerBasicProps {
224
- value: Date | null;
225
- onChange: (date: Date | null) => void;
651
+ value: Dayjs$2 | null;
652
+ onChange: (day: Dayjs$2 | null) => void;
226
653
  required?: boolean;
227
- label?: string;
654
+ title?: string;
655
+ bottomText?: string;
228
656
  error?: string;
229
657
  placeholder?: string;
230
658
  disabled?: boolean;
231
- defaultValue?: Date | null;
659
+ defaultValue?: Dayjs$2 | null;
232
660
  mode?: "time" | "date" | "month";
233
- minDate?: Date;
234
- maxDate?: Date;
235
- disabledDate?: (currentDate: Date) => boolean;
661
+ minDate?: Dayjs$2 | undefined;
662
+ maxDate?: Dayjs$2 | undefined;
663
+ disabledDate?: (currentDate: Dayjs$2) => boolean;
236
664
  className?: string;
237
665
  size?: "small" | "middle" | "large";
238
666
  }
239
- 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;
240
668
 
669
+ type Dayjs$1 = dayjs.Dayjs;
241
670
  interface DatePickerRangePickerProps {
242
- value: [Date | null, Date | null] | null;
243
- 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;
244
673
  placeholder?: [string, string];
245
- label?: string;
674
+ title?: string;
246
675
  required?: boolean;
676
+ bottomText?: string;
247
677
  error?: string;
248
678
  disabled?: boolean;
249
- defaultValue?: [Date, Date] | null;
679
+ defaultValue?: [Dayjs$1, Dayjs$1] | null;
250
680
  mode?: "time" | "date" | "month";
251
- minDate?: Date | undefined;
252
- maxDate?: Date | undefined;
253
- disabledDate?: (currentDate: Date) => boolean;
681
+ minDate?: Dayjs$1 | undefined;
682
+ maxDate?: Dayjs$1 | undefined;
683
+ disabledDate?: (currentDate: Dayjs$1) => boolean;
254
684
  size?: "small" | "middle" | "large";
255
685
  className?: string;
256
686
  onOpenChange?: (open: boolean) => void;
257
- 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;
258
688
  }
259
- 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;
260
690
 
691
+ type Dayjs = dayjs.Dayjs;
261
692
  interface TimePickerBasicProps {
262
- value: Date | null;
263
- onChange: (time: Date | null) => void;
693
+ value: Dayjs | null;
694
+ onChange: (time: Dayjs | null) => void;
264
695
  required?: boolean;
265
- label?: string;
696
+ title?: string;
266
697
  bottomText?: string;
267
- showError?: boolean;
268
698
  error?: string;
269
699
  placeholder?: string;
270
700
  disabled?: boolean;
271
701
  className?: string;
272
702
  }
273
- 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;
274
704
 
275
705
  interface TimePickerRangePickerProps {
276
- value: [Date | null, Date | null] | null;
277
- 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;
278
708
  placeholder?: [string, string];
279
- label?: string;
709
+ title?: string;
280
710
  required?: boolean;
711
+ bottomText?: string;
281
712
  error?: string;
282
713
  disabled?: boolean;
283
714
  className?: string;
284
715
  }
285
- 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;
286
717
 
287
718
  interface ColorPalettePickerBasicProps {
288
719
  value: string | null;
289
720
  onChange?: (color: Color, hex: string) => void;
290
- require?: boolean;
721
+ required?: boolean;
291
722
  title?: string;
292
723
  bottomText?: string;
293
- showError?: boolean;
294
- errorMessage?: string;
724
+ error?: string;
295
725
  disabled?: boolean;
296
726
  allowClear?: boolean;
297
727
  defaultFormat?: "hex" | "rgb" | "hsb";
@@ -299,17 +729,16 @@ interface ColorPalettePickerBasicProps {
299
729
  placeholder?: string;
300
730
  onClear?: () => void;
301
731
  }
302
- declare function ColorPalettePickerBasic({ value, onChange, require, title, bottomText, showError, errorMessage, 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;
303
733
 
304
734
  interface SelectFieldProps$1 {
305
735
  value?: SelectProps["value"];
306
736
  onChange: (value: SelectProps["value"]) => void;
307
737
  placeholder?: string;
308
738
  title?: string;
309
- require?: boolean;
739
+ required?: boolean;
310
740
  bottomText?: string;
311
- errorMessage?: string;
312
- showError?: boolean;
741
+ error?: string;
313
742
  disabled?: boolean;
314
743
  defaultValue?: string;
315
744
  options?: {
@@ -317,24 +746,23 @@ interface SelectFieldProps$1 {
317
746
  value: string | number | null;
318
747
  disabled?: boolean;
319
748
  }[];
320
- mode?: 'multiple' | 'tags';
749
+ mode?: "multiple" | "tags";
321
750
  handleSearch?: (value: string) => void;
322
751
  prefix?: ReactNode;
323
752
  prefixSize?: number;
324
753
  className?: string;
325
754
  onClear?: () => void;
326
755
  }
327
- declare function SelectField({ value, onChange, placeholder, title, require, bottomText, showError, errorMessage, 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;
328
757
 
329
758
  interface SelectFieldProps {
330
759
  value?: SelectProps["value"];
331
760
  onChange: (value: SelectProps["value"]) => void;
332
761
  placeholder?: string;
333
762
  title?: string;
334
- require?: boolean;
763
+ required?: boolean;
335
764
  bottomText?: string;
336
- errorMessage?: string;
337
- showError?: boolean;
765
+ error?: string;
338
766
  disabled?: boolean;
339
767
  defaultValue?: string;
340
768
  options?: {
@@ -351,18 +779,17 @@ interface SelectFieldProps {
351
779
  prefixSize?: number;
352
780
  className?: string;
353
781
  }
354
- declare function SelectFieldGroup({ value, onChange, placeholder, title, require, bottomText, showError, errorMessage, 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;
355
783
 
356
784
  interface SelectFieldStatusProps {
357
785
  value: string | undefined;
358
786
  onChange: (value: string | undefined) => void;
359
787
  placeholder?: string;
360
788
  title?: string;
361
- require?: boolean;
789
+ required?: boolean;
362
790
  bottomText?: string;
363
791
  disabled?: boolean;
364
- showError?: boolean;
365
- errorMessage?: string;
792
+ error?: string;
366
793
  options?: {
367
794
  label: ReactNode;
368
795
  value: string | number | null;
@@ -370,18 +797,17 @@ interface SelectFieldStatusProps {
370
797
  }[];
371
798
  className?: string;
372
799
  }
373
- declare function SelectFieldStatus({ value, onChange, placeholder, title, require, bottomText, disabled, showError, errorMessage, 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;
374
801
 
375
802
  interface SelectFieldStatusReportProps {
376
803
  value: string | undefined;
377
804
  onChange: (value: string | undefined) => void;
378
805
  placeholder?: string;
379
806
  title?: string;
380
- require?: boolean;
807
+ required?: boolean;
381
808
  bottomText?: string;
382
809
  disabled?: boolean;
383
- showError?: boolean;
384
- errorMessage?: string;
810
+ error?: string;
385
811
  className?: string;
386
812
  options?: {
387
813
  label: ReactNode;
@@ -389,11 +815,11 @@ interface SelectFieldStatusReportProps {
389
815
  disabled?: boolean;
390
816
  }[];
391
817
  }
392
- declare function SelectFieldStatusReport({ value, onChange, placeholder, title, require, bottomText, disabled, showError, errorMessage, 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;
393
819
 
394
820
  interface SelectFieldTagProps {
395
821
  title?: string | null;
396
- require?: boolean;
822
+ required?: boolean;
397
823
  bottomText?: string | null;
398
824
  placeholder?: string;
399
825
  options?: {
@@ -401,14 +827,13 @@ interface SelectFieldTagProps {
401
827
  value: string | number | null;
402
828
  disabled?: boolean;
403
829
  }[];
404
- showError?: boolean;
405
- errorMessage?: string;
830
+ error?: string;
406
831
  value?: string[];
407
832
  onChange?: (val: string[]) => void;
408
833
  className?: string;
409
834
  onClear?: () => void;
410
835
  }
411
- declare function SelectFieldTag({ title, require, bottomText, placeholder, options, showError, errorMessage, 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;
412
837
 
413
838
  interface OptionItem {
414
839
  value: string;
@@ -418,14 +843,13 @@ interface SelectCustomProps {
418
843
  title?: string;
419
844
  placeholder?: string;
420
845
  options: OptionItem[];
421
- require?: boolean;
846
+ required?: boolean;
422
847
  onChange?: (valueList: string[]) => void;
423
848
  bottomText?: string;
424
- showError?: boolean;
425
- errorMessage?: string;
849
+ error?: string;
426
850
  onClear?: () => void;
427
851
  }
428
- declare function SelectCustom({ title, placeholder, options, require, onChange, bottomText, showError, errorMessage, 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;
429
853
 
430
854
  interface SortFilterProps {
431
855
  showYear?: boolean;