@esic-lab/data-core-ui 0.0.15 → 0.0.16

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,6 +1,12 @@
1
+ /// <reference path="../node_modules/dayjs/locale/index.d.ts" />
1
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React$1 from 'react';
3
+ import React$1, { ReactNode } from 'react';
4
+ import { ColumnsType } from 'antd/es/table';
3
5
  import { EventSourceInput } from '@fullcalendar/core';
6
+ import { Color } from 'antd/es/color-picker';
7
+ import { SelectProps } from 'antd';
8
+ import { MessageInstance } from 'antd/es/message/interface';
9
+ import { ItemType } from 'antd/es/breadcrumb/Breadcrumb';
4
10
 
5
11
  type ColorScale = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
6
12
  type BaseColor = "primary" | "gray" | "green" | "red" | "yellow" | "blue";
@@ -12,40 +18,46 @@ interface PrimaryButtonProps {
12
18
  iconRight?: React.ReactNode;
13
19
  bgColor?: ThemeColor;
14
20
  textColor?: "white" | "black";
21
+ disabled?: boolean;
15
22
  }
16
- declare function PrimaryButton({ title, onClick, iconLeft, iconRight, bgColor, textColor, }: PrimaryButtonProps): react_jsx_runtime.JSX.Element;
23
+ declare function PrimaryButton({ title, onClick, iconLeft, iconRight, bgColor, textColor, disabled, }: PrimaryButtonProps): react_jsx_runtime.JSX.Element;
17
24
 
18
25
  interface SecondaryButtonProps {
19
26
  title: string;
20
27
  onClick: () => void;
21
28
  iconLeft?: React.ReactNode;
22
29
  iconRight?: React.ReactNode;
30
+ disabled?: boolean;
23
31
  }
24
- declare function SecondaryButton({ title, onClick, iconLeft, iconRight }: SecondaryButtonProps): react_jsx_runtime.JSX.Element;
32
+ declare function SecondaryButton({ title, onClick, iconLeft, iconRight, disabled }: SecondaryButtonProps): react_jsx_runtime.JSX.Element;
25
33
 
26
34
  interface GhostButtonProps {
27
35
  title: string;
28
36
  onClick: () => void;
29
37
  iconLeft?: React.ReactNode;
30
38
  iconRight?: React.ReactNode;
39
+ disabled?: boolean;
31
40
  }
32
- declare function GhostButton({ title, onClick, iconLeft, iconRight }: GhostButtonProps): react_jsx_runtime.JSX.Element;
41
+ declare function GhostButton({ title, onClick, iconLeft, iconRight, disabled }: GhostButtonProps): react_jsx_runtime.JSX.Element;
33
42
 
34
43
  interface LoaderProps {
35
44
  size?: number;
45
+ color?: string;
36
46
  }
37
- declare function Loader({ size }: LoaderProps): react_jsx_runtime.JSX.Element;
47
+ declare function Loader({ size, color }: LoaderProps): react_jsx_runtime.JSX.Element;
38
48
 
39
49
  interface CheckboxProps {
40
50
  label?: string;
41
51
  checked: boolean;
42
52
  onChange: (checked: boolean) => void;
53
+ disabled?: boolean;
43
54
  }
44
- declare function Checkbox({ label, checked, onChange }: CheckboxProps): react_jsx_runtime.JSX.Element;
55
+ declare function Checkbox({ label, checked, onChange, disabled }: CheckboxProps): react_jsx_runtime.JSX.Element;
45
56
 
46
57
  interface CheckboxOption {
47
58
  checked: boolean;
48
59
  label: string;
60
+ disabled?: boolean;
49
61
  }
50
62
  interface CheckboxGroupProps {
51
63
  options: CheckboxOption[];
@@ -57,12 +69,14 @@ declare function CheckboxGroup({ options, onChange, alignment }: CheckboxGroupPr
57
69
  interface RadioProps {
58
70
  selected: boolean;
59
71
  onChange: (selected: boolean) => void;
72
+ disabled?: boolean;
60
73
  }
61
- declare function Radio({ selected, onChange }: RadioProps): react_jsx_runtime.JSX.Element;
74
+ declare function Radio({ selected, onChange, disabled }: RadioProps): react_jsx_runtime.JSX.Element;
62
75
 
63
76
  interface RadioOption {
64
77
  value: string;
65
78
  label: string;
79
+ disabled?: boolean;
66
80
  }
67
81
  interface RadioGroupProps {
68
82
  options: RadioOption[];
@@ -76,8 +90,9 @@ interface SwitchProps {
76
90
  label?: string;
77
91
  checked: boolean;
78
92
  onChange: (checked: boolean) => void;
93
+ disabled?: boolean;
79
94
  }
80
- declare function Switch({ label, checked, onChange }: SwitchProps): react_jsx_runtime.JSX.Element;
95
+ declare function Switch({ label, checked, onChange, disabled }: SwitchProps): react_jsx_runtime.JSX.Element;
81
96
 
82
97
  interface Menu {
83
98
  title: string;
@@ -95,6 +110,18 @@ interface MenuNavBarProps {
95
110
  }
96
111
  declare function MenuNavBar({ menus, onClick }: MenuNavBarProps): react_jsx_runtime.JSX.Element;
97
112
 
113
+ interface SidebarProps {
114
+ children: React.ReactNode;
115
+ logo?: string;
116
+ }
117
+ interface Sidebar {
118
+ icon: React.ReactNode;
119
+ iconHover?: React.ReactNode;
120
+ text: string;
121
+ disabled?: boolean;
122
+ }
123
+ declare function Sidebar({ children, logo }: SidebarProps): react_jsx_runtime.JSX.Element;
124
+
98
125
  interface TopNavBarProps {
99
126
  onClickNoti: () => void;
100
127
  logo?: React.ReactNode;
@@ -104,12 +131,28 @@ declare function TopNavBar({ onClickNoti, logo }: TopNavBarProps): react_jsx_run
104
131
  interface Column<T> {
105
132
  header: string;
106
133
  accessor: keyof T | ((row: T) => React$1.ReactNode);
134
+ sortable?: boolean;
107
135
  }
108
136
  interface DataTableProps<T> {
109
137
  columns: Column<T>[];
110
138
  data: T[];
139
+ onSort: () => void;
140
+ isLoading?: boolean;
111
141
  }
112
- declare function DataTable<T>({ columns, data }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
142
+ declare function DataTable<T>({ columns, data, onSort, isLoading }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
143
+
144
+ interface AntDataTableProps<T> {
145
+ dataSource: T[];
146
+ columns: ColumnsType<T>;
147
+ pageSize?: number;
148
+ rowCheckbox?: boolean;
149
+ onRowSelect?: (newSelectedRowKeys: React.Key[]) => void;
150
+ width?: number;
151
+ height?: number;
152
+ }
153
+ declare function AntDataTable<T extends {
154
+ key: React.Key;
155
+ }>({ dataSource, columns, pageSize, rowCheckbox, onRowSelect, width, height, }: AntDataTableProps<T>): react_jsx_runtime.JSX.Element;
113
156
 
114
157
  interface CalendarProps {
115
158
  events: EventSourceInput | undefined;
@@ -117,7 +160,7 @@ interface CalendarProps {
117
160
  declare function Calendar({ events }: CalendarProps): react_jsx_runtime.JSX.Element;
118
161
 
119
162
  interface TextInputProps {
120
- label: string;
163
+ label?: string;
121
164
  placeholder?: string;
122
165
  type?: "text" | "password";
123
166
  maxLength?: number;
@@ -125,7 +168,705 @@ interface TextInputProps {
125
168
  error?: string;
126
169
  value?: string;
127
170
  onChange: (value: string) => void;
171
+ disabled?: boolean;
172
+ }
173
+ declare function TextInput({ label, placeholder, type, maxLength, required, error, value, onChange, disabled, }: TextInputProps): react_jsx_runtime.JSX.Element;
174
+
175
+ interface InputFieldProps {
176
+ value: string | undefined;
177
+ onChange: (value: string | undefined) => void;
178
+ placeholder?: string;
179
+ title?: string;
180
+ require?: boolean;
181
+ bottomText?: string;
182
+ disabled?: boolean;
183
+ showError?: boolean;
184
+ errorMessage?: string;
185
+ addonBefore?: ReactNode;
186
+ addonAfter?: ReactNode;
187
+ defaultValue?: string;
188
+ }
189
+ declare function InputField({ value, onChange, placeholder, title, require, bottomText, disabled, showError, errorMessage, addonBefore, addonAfter, defaultValue, }: InputFieldProps): react_jsx_runtime.JSX.Element;
190
+
191
+ interface TextAreaProps {
192
+ label?: string;
193
+ height?: number;
194
+ placeholder?: string;
195
+ value: string;
196
+ onChange: (value: string) => void;
197
+ maxLength?: number;
198
+ resizable?: boolean;
199
+ showCount?: boolean;
200
+ required?: boolean;
201
+ error?: string;
202
+ disabled?: boolean;
203
+ }
204
+ declare function TextAreaInput({ label, height, placeholder, onChange, value, maxLength, resizable, showCount, required, error, disabled, }: TextAreaProps): react_jsx_runtime.JSX.Element;
205
+
206
+ interface ColorPickerProps {
207
+ value: string | null;
208
+ onChange?: (color: Color, hex: string) => void;
209
+ require?: boolean;
210
+ title?: string;
211
+ bottomText?: string;
212
+ showError?: boolean;
213
+ errorMessage?: string;
214
+ disabled?: boolean;
215
+ allowClear?: boolean;
216
+ defaultFormat?: "hex" | "rgb" | "hsb";
217
+ className?: string;
218
+ placeholder?: string;
219
+ }
220
+ declare function ColorPickerBasic({ value, onChange, require, title, bottomText, showError, errorMessage, 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;
649
+
650
+ interface DatePickerBasicProps {
651
+ value: Dayjs$2 | null;
652
+ onChange: (day: Dayjs$2 | null) => void;
653
+ require?: boolean;
654
+ title?: string;
655
+ bottomText?: string;
656
+ showError?: boolean;
657
+ errorMessage?: string;
658
+ placeholder?: string;
659
+ disabled?: boolean;
660
+ defaultValue?: Dayjs$2 | null;
661
+ mode?: "time" | "date" | "month";
662
+ minDate?: Dayjs$2 | undefined;
663
+ maxDate?: Dayjs$2 | undefined;
664
+ disabledDate?: (currentDate: Dayjs$2) => boolean;
665
+ className?: string;
666
+ size?: "small" | "middle" | "large";
667
+ }
668
+ declare function DatePickerBasic({ value, onChange, require, title, bottomText, showError, errorMessage, placeholder, disabled, defaultValue, minDate, maxDate, disabledDate, className, size, }: DatePickerBasicProps): react_jsx_runtime.JSX.Element;
669
+
670
+ type Dayjs$1 = dayjs.Dayjs;
671
+ interface DatePickerRangePickerProps {
672
+ value: [dayjs.Dayjs | null, dayjs.Dayjs | null] | null;
673
+ onChange: (val: [dayjs.Dayjs | null, dayjs.Dayjs | null] | null) => void;
674
+ placeholder?: [string, string];
675
+ title?: string;
676
+ require?: boolean;
677
+ bottomText?: string;
678
+ showError?: boolean;
679
+ errorMessage?: string;
680
+ disabled?: boolean;
681
+ defaultValue?: [Dayjs$1, Dayjs$1] | null;
682
+ mode?: "time" | "date" | "month";
683
+ minDate?: Dayjs$1 | undefined;
684
+ maxDate?: Dayjs$1 | undefined;
685
+ disabledDate?: (currentDate: Dayjs$1) => boolean;
686
+ size?: "small" | "middle" | "large";
687
+ className?: string;
688
+ onOpenChange?: (open: boolean) => void;
689
+ onCalendarChange?: (dates: [Dayjs$1 | null, Dayjs$1 | null], dateStrings: [string, string], info: any) => void;
690
+ }
691
+ declare function DatePickerRangePicker({ value, onChange, placeholder, title, require, bottomText, showError, errorMessage, disabled, minDate, maxDate, disabledDate, size, className, onOpenChange, onCalendarChange, }: DatePickerRangePickerProps): react_jsx_runtime.JSX.Element;
692
+
693
+ type Dayjs = dayjs.Dayjs;
694
+ interface TimePickerBasicProps {
695
+ value: Dayjs | null;
696
+ onChange: (time: Dayjs | null) => void;
697
+ require?: boolean;
698
+ title?: string;
699
+ bottomText?: string;
700
+ showError?: boolean;
701
+ errorMessage?: string;
702
+ placeholder?: string;
703
+ disabled?: boolean;
704
+ }
705
+ declare function TimePickerBasic({ value, onChange, require, title, bottomText, showError, errorMessage, placeholder, disabled, }: TimePickerBasicProps): react_jsx_runtime.JSX.Element;
706
+
707
+ interface TimePickerRangePickerProps {
708
+ value: [dayjs.Dayjs | null, dayjs.Dayjs | null] | null;
709
+ onChange: (val: [dayjs.Dayjs | null, dayjs.Dayjs | null] | null) => void;
710
+ placeholder?: [string, string];
711
+ title?: string;
712
+ require?: boolean;
713
+ bottomText?: string;
714
+ showError?: boolean;
715
+ errorMessage?: string;
716
+ disabled?: boolean;
717
+ }
718
+ declare function TimePickerRangePicker({ value, onChange, placeholder, title, require, bottomText, showError, errorMessage, disabled, }: TimePickerRangePickerProps): react_jsx_runtime.JSX.Element;
719
+
720
+ interface SelectFieldProps$1 {
721
+ value?: SelectProps["value"];
722
+ onChange: (value: SelectProps["value"]) => void;
723
+ placeholder?: string;
724
+ title?: string;
725
+ require?: boolean;
726
+ bottomText?: string;
727
+ errorMessage?: string;
728
+ showError?: boolean;
729
+ disabled?: boolean;
730
+ defaultValue?: string;
731
+ options?: {
732
+ label: ReactNode;
733
+ value: string | number | null;
734
+ disabled?: boolean;
735
+ }[];
736
+ mode?: 'multiple' | 'tags';
737
+ handleSearch?: (value: string) => void;
738
+ prefix?: ReactNode;
739
+ prefixSize?: number;
740
+ }
741
+ declare function SelectField({ value, onChange, placeholder, title, require, bottomText, showError, errorMessage, disabled, defaultValue, options, mode, prefix, prefixSize, handleSearch, }: SelectFieldProps$1): react_jsx_runtime.JSX.Element;
742
+
743
+ interface SelectFieldProps {
744
+ value?: SelectProps["value"];
745
+ onChange: (value: SelectProps["value"]) => void;
746
+ placeholder?: string;
747
+ title?: string;
748
+ require?: boolean;
749
+ bottomText?: string;
750
+ errorMessage?: string;
751
+ showError?: boolean;
752
+ disabled?: boolean;
753
+ defaultValue?: string;
754
+ options?: {
755
+ label: ReactNode;
756
+ options: {
757
+ label: ReactNode;
758
+ value: string | number;
759
+ disabled?: boolean;
760
+ }[];
761
+ }[];
762
+ mode?: "multiple" | "tags";
763
+ handleSearch?: (value: string) => void;
764
+ prefix?: ReactNode;
765
+ prefixSize?: number;
766
+ }
767
+ declare function SelectFieldGroup({ value, onChange, placeholder, title, require, bottomText, showError, errorMessage, disabled, defaultValue, options, mode, prefix, prefixSize, handleSearch, }: SelectFieldProps): react_jsx_runtime.JSX.Element;
768
+
769
+ interface SelectFieldStatusProps {
770
+ value: string | undefined;
771
+ onChange: (value: string | undefined) => void;
772
+ placeholder?: string;
773
+ title?: string;
774
+ require?: boolean;
775
+ bottomText?: string;
776
+ disabled?: boolean;
777
+ showError?: boolean;
778
+ errorMessage?: string;
779
+ }
780
+ declare function SelectFieldStatus({ value, onChange, placeholder, title, require, bottomText, disabled, showError, errorMessage }: SelectFieldStatusProps): react_jsx_runtime.JSX.Element;
781
+
782
+ interface SelectFieldStatusReportProps {
783
+ value: string | undefined;
784
+ onChange: (value: string | undefined) => void;
785
+ placeholder?: string;
786
+ title?: string;
787
+ require?: boolean;
788
+ bottomText?: string;
789
+ disabled?: boolean;
790
+ showError?: boolean;
791
+ errorMessage?: string;
792
+ }
793
+ declare function SelectFieldStatusReport({ value, onChange, placeholder, title, require, bottomText, disabled, showError, errorMessage, }: SelectFieldStatusReportProps): react_jsx_runtime.JSX.Element;
794
+
795
+ interface SelectFieldTagProps {
796
+ title?: string | null;
797
+ require?: boolean;
798
+ bottomText?: string | null;
799
+ placeholder?: string;
800
+ options?: {
801
+ label: ReactNode;
802
+ value: string | number | null;
803
+ disabled?: boolean;
804
+ }[];
805
+ showError?: boolean;
806
+ errorMessage?: string;
807
+ value?: string[];
808
+ onChange?: (val: string[]) => void;
809
+ }
810
+ declare function SelectFieldTag({ title, require, bottomText, placeholder, options, showError, errorMessage, value: controlledValue, onChange, }: SelectFieldTagProps): react_jsx_runtime.JSX.Element;
811
+
812
+ interface SortFilterProps {
813
+ showYear?: boolean;
814
+ showQuarter?: boolean;
815
+ showMonth?: boolean;
816
+ onSortClick?: () => void;
817
+ onFilterClick?: () => void;
818
+ }
819
+ declare function SortFilter({ showYear, showQuarter, showMonth, onSortClick, onFilterClick, }: SortFilterProps): react_jsx_runtime.JSX.Element;
820
+
821
+ interface FileUploaderProps {
822
+ onUpload: (file: File) => Promise<void>;
823
+ onRemove?: () => Promise<void>;
824
+ onError?: (message: string) => void;
825
+ accept?: string[];
826
+ maxSize?: number;
827
+ disabled?: boolean;
828
+ mode: "upload" | "drop";
829
+ description?: string;
830
+ label?: string;
831
+ }
832
+ declare function FileUploader({ onUpload, onError, onRemove, accept, maxSize, disabled, mode, description, label, }: FileUploaderProps): react_jsx_runtime.JSX.Element;
833
+
834
+ declare function setMessageApi(api: MessageInstance): void;
835
+ declare function messageSuccess(content: string): void;
836
+ declare function messageError(content: string): void;
837
+ declare function messageWarning(content: string): void;
838
+ declare function messageInfo(content: string): void;
839
+ declare function messageLoading(content: string, duration?: number): void;
840
+
841
+ interface BreadcrumbsProps {
842
+ items: ItemType[];
843
+ separator: ReactNode;
844
+ itemRender?: (route: any, params: any, routes: any[], paths: string[]) => ReactNode;
845
+ classname?: string;
846
+ params?: object;
847
+ }
848
+ declare function Breadcrumbs({ items, separator, itemRender, classname, params, }: BreadcrumbsProps): react_jsx_runtime.JSX.Element;
849
+
850
+ interface HeadingPageProps {
851
+ Heading: string;
852
+ }
853
+ declare function HeadingPage({ Heading }: HeadingPageProps): react_jsx_runtime.JSX.Element;
854
+
855
+ interface ProgressBarProps {
856
+ percent: number | undefined;
857
+ size?: number | [number | string, number] | {
858
+ width: number;
859
+ height: number;
860
+ } | "small" | "default";
861
+ checkpoints?: number[] | undefined;
862
+ showInfo?: boolean;
863
+ trailColor?: string;
864
+ type: "line" | "circle" | "dashboard";
865
+ strokeLinecap?: "round" | "butt" | "square";
866
+ strokeWidth?: number;
867
+ steps?: number;
868
+ isCheckPoints?: boolean;
128
869
  }
129
- declare function TextInput({ label, placeholder, type, maxLength, required, error, value, onChange, }: TextInputProps): react_jsx_runtime.JSX.Element;
870
+ declare function ProgressBar({ percent, size, checkpoints, showInfo, trailColor, type, strokeLinecap, strokeWidth, steps, isCheckPoints }: ProgressBarProps): react_jsx_runtime.JSX.Element;
130
871
 
131
- export { Calendar, Checkbox, CheckboxGroup, DataTable, GhostButton, Loader, MenuNavBar, type MenuNavBarProps, PrimaryButton, Radio, RadioGroup, SecondaryButton, Switch, TextInput, TopNavBar };
872
+ export { AntDataTable, Breadcrumbs, Calendar, Checkbox, CheckboxGroup, ColorPickerBasic, DataTable, DatePickerBasic, DatePickerRangePicker, FileUploader, GhostButton, HeadingPage, InputField, Loader, MenuNavBar, type MenuNavBarProps, PrimaryButton, ProgressBar, Radio, RadioGroup, SecondaryButton, SelectField, SelectFieldGroup, SelectFieldStatus, SelectFieldStatusReport, SelectFieldTag, Sidebar, SortFilter, Switch, TextAreaInput, TextInput, TimePickerBasic, TimePickerRangePicker, TopNavBar, messageError, messageInfo, messageLoading, messageSuccess, messageWarning, setMessageApi };