@esic-lab/data-core-ui 0.0.27 → 0.0.29

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