maritime-ui 0.1.64 → 0.1.68

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
@@ -4,7 +4,7 @@ import { ForwardRefExoticComponent } from 'react';
4
4
  import { JSX } from 'react';
5
5
  import { JSXElementConstructor } from 'react';
6
6
  import { MouseEvent as MouseEvent_2 } from 'react';
7
- import { Props as Props_8 } from 'react-select';
7
+ import { Props as Props_9 } from 'react-select';
8
8
  import { ReactElement } from 'react';
9
9
  import { ReactNode } from 'react';
10
10
  import { ReactPortal } from 'react';
@@ -96,7 +96,7 @@ export declare const CheckIcon: FC;
96
96
 
97
97
  export declare const CheckListIcon: () => JSX.Element;
98
98
 
99
- export declare const CheckMarkBlackIcon: ({ className }: Props_17) => JSX.Element;
99
+ export declare const CheckMarkBlackIcon: ({ className }: Props_18) => JSX.Element;
100
100
 
101
101
  export declare const CheckmarkIcon: () => JSX.Element;
102
102
 
@@ -134,6 +134,8 @@ export declare const CrossIcon: () => JSX.Element;
134
134
 
135
135
  export declare const CsvIcon: () => JSX.Element;
136
136
 
137
+ export declare const DateSeparator: ({ date, noIcon }: Props_2) => JSX.Element;
138
+
137
139
  export declare const DeleteIcon: FC;
138
140
 
139
141
  export declare const DeleteSlotIcon: FC;
@@ -180,7 +182,7 @@ export declare const EmailSentIcon: () => JSX.Element;
180
182
 
181
183
  export declare const EmployeeDetailsIcon: FC;
182
184
 
183
- export declare class ErrorBoundary extends Component<Props_16, State> {
185
+ export declare class ErrorBoundary extends Component<Props_17, State> {
184
186
  state: State;
185
187
  static getDerivedStateFromError(error: Error): State;
186
188
  render(): string | number | bigint | boolean | JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | ReactPortal | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
@@ -206,6 +208,8 @@ declare type FilterButtonProps = {
206
208
  menuAlign?: 'left' | 'right';
207
209
  };
208
210
 
211
+ export declare const FilterIcon: FC;
212
+
209
213
  export declare const FilterLinesIcon: () => JSX.Element;
210
214
 
211
215
  export declare const FilterSearch: FC<FilterSearchProps>;
@@ -237,15 +241,15 @@ export declare const formatPrice: (price: number) => string;
237
241
 
238
242
  export declare const FormCalendarIcon: () => JSX.Element;
239
243
 
240
- export declare const FormFieldCheckbox: ({ controlKey, options, labelText, required, disabled, exclusive, }: Props_6) => JSX.Element;
244
+ export declare const FormFieldCheckbox: ({ controlKey, options, labelText, required, disabled, exclusive, }: Props_7) => JSX.Element;
241
245
 
242
- export declare const FormFieldDatepicker: ({ controlKey, labelText, placeholder, required, disabled, clearable, dateFormat, minDate, maxDate, onAfterChange, errorText, }: Props_9) => JSX.Element;
246
+ export declare const FormFieldDatepicker: ({ controlKey, labelText, placeholder, required, disabled, clearable, dateFormat, minDate, maxDate, onAfterChange, errorText, }: Props_10) => JSX.Element;
243
247
 
244
- export declare const FormFieldDatepickerRange: ({ controlKeyStart, controlKeyEnd, labelText, placeholder, required, disabled, clearable, dateFormat, minDate, maxDate, onAfterChange, errorText, }: Props_10) => JSX.Element;
248
+ export declare const FormFieldDatepickerRange: ({ controlKeyStart, controlKeyEnd, labelText, placeholder, required, disabled, clearable, dateFormat, minDate, maxDate, onAfterChange, errorText, }: Props_11) => JSX.Element;
245
249
 
246
- export declare const FormFieldInput: ({ controlKey, labelText, type, required, disabled, numeric, digitsOnly, decimalPlaces, onAfterChange, errorText, }: Props_5) => JSX.Element;
250
+ export declare const FormFieldInput: ({ controlKey, labelText, type, required, disabled, numeric, digitsOnly, decimalPlaces, onAfterChange, errorText, }: Props_6) => JSX.Element;
247
251
 
248
- export declare const FormFieldMultiSelect: ForwardRefExoticComponent<Omit<Props_8<DropdownOption, true>, "options" | "isMulti" | "noOptionsMessage"> & {
252
+ export declare const FormFieldMultiSelect: ForwardRefExoticComponent<Omit<Props_9<DropdownOption, true>, "options" | "isMulti" | "noOptionsMessage"> & {
249
253
  controlKey: string;
250
254
  options: DropdownOption[];
251
255
  labelText?: string;
@@ -258,9 +262,9 @@ errorText?: string;
258
262
  optimize?: boolean;
259
263
  } & RefAttributes<SelectInstance<DropdownOption, true>>>;
260
264
 
261
- export declare const FormFieldRadio: ({ controlKey, options, label, tooltipText, required, disabled, }: Props_11) => JSX.Element;
265
+ export declare const FormFieldRadio: ({ controlKey, options, label, tooltipText, required, disabled, }: Props_12) => JSX.Element;
262
266
 
263
- export declare const FormFieldSelect: ForwardRefExoticComponent<Omit<Props_8<DropdownOption, false>, "options" | "noOptionsMessage"> & {
267
+ export declare const FormFieldSelect: ForwardRefExoticComponent<Omit<Props_9<DropdownOption, false>, "options" | "noOptionsMessage"> & {
264
268
  controlKey: string;
265
269
  options: DropdownOption[];
266
270
  labelText?: string;
@@ -274,9 +278,9 @@ optimize?: boolean;
274
278
  inline?: boolean;
275
279
  } & RefAttributes<SelectInstance<DropdownOption, false>>>;
276
280
 
277
- export declare const FormFieldTextarea: ({ controlKey, labelText, required, disabled, rows, errorText, }: Props_7) => JSX.Element;
281
+ export declare const FormFieldTextarea: ({ controlKey, labelText, required, disabled, rows, errorText, }: Props_8) => JSX.Element;
278
282
 
279
- export declare const FormFieldTimepicker: FC<Props_12>;
283
+ export declare const FormFieldTimepicker: FC<Props_13>;
280
284
 
281
285
  export declare const getBadgeTitle: (status: string) => string;
282
286
 
@@ -328,7 +332,7 @@ export declare const JpgIcon: () => JSX.Element;
328
332
 
329
333
  export declare const LinkIcon: () => JSX.Element;
330
334
 
331
- export declare const Loader: ({ size }: Props_13) => JSX.Element;
335
+ export declare const Loader: ({ size }: Props_14) => JSX.Element;
332
336
 
333
337
  export declare const Logo: () => JSX.Element;
334
338
 
@@ -348,7 +352,7 @@ export declare const MedicalsIcon: FC;
348
352
 
349
353
  export declare const MedicalsZeroStateIcon: FC;
350
354
 
351
- export declare const MessageBoxError: ({ errorTag, error }: Props_15) => JSX.Element;
355
+ export declare const MessageBoxError: ({ errorTag, error }: Props_16) => JSX.Element;
352
356
 
353
357
  export declare const MessageBubble: FC;
354
358
 
@@ -388,9 +392,9 @@ declare type PageLoaderProps = {
388
392
  text?: ReactNode;
389
393
  };
390
394
 
391
- export declare const PageWrapper: ({ children, additionalClassName }: Props_14) => JSX.Element;
395
+ export declare const PageWrapper: ({ children, additionalClassName }: Props_15) => JSX.Element;
392
396
 
393
- export declare const Pagination: FC<Props_3>;
397
+ export declare const Pagination: FC<Props_4>;
394
398
 
395
399
  export declare const PasswordLockIcon: () => JSX.Element;
396
400
 
@@ -433,6 +437,20 @@ declare type Props = {
433
437
  };
434
438
 
435
439
  declare type Props_10 = {
440
+ controlKey: string;
441
+ labelText?: string;
442
+ placeholder?: string;
443
+ required?: boolean;
444
+ disabled?: boolean;
445
+ clearable?: boolean;
446
+ dateFormat?: string;
447
+ minDate?: Date;
448
+ maxDate?: Date;
449
+ onAfterChange?: (value: string) => void;
450
+ errorText?: string;
451
+ };
452
+
453
+ declare type Props_11 = {
436
454
  controlKeyStart: string;
437
455
  controlKeyEnd: string;
438
456
  labelText?: string;
@@ -447,7 +465,7 @@ declare type Props_10 = {
447
465
  errorText?: string;
448
466
  };
449
467
 
450
- declare type Props_11 = {
468
+ declare type Props_12 = {
451
469
  controlKey: string;
452
470
  options: RadioOption[];
453
471
  label?: string;
@@ -456,7 +474,7 @@ declare type Props_11 = {
456
474
  disabled?: boolean;
457
475
  };
458
476
 
459
- declare type Props_12 = {
477
+ declare type Props_13 = {
460
478
  controlKey: string;
461
479
  labelText: string;
462
480
  required?: boolean;
@@ -465,35 +483,40 @@ declare type Props_12 = {
465
483
  errorText?: string;
466
484
  };
467
485
 
468
- declare type Props_13 = {
486
+ declare type Props_14 = {
469
487
  size?: number;
470
488
  };
471
489
 
472
- declare type Props_14 = {
490
+ declare type Props_15 = {
473
491
  children: ReactNode;
474
492
  additionalClassName?: string | undefined;
475
493
  };
476
494
 
477
- declare type Props_15 = {
495
+ declare type Props_16 = {
478
496
  errorTag?: string;
479
497
  error?: string;
480
498
  };
481
499
 
482
- declare type Props_16 = {
500
+ declare type Props_17 = {
483
501
  children: ReactNode;
484
502
  };
485
503
 
486
- declare type Props_17 = {
504
+ declare type Props_18 = {
487
505
  className?: string;
488
506
  };
489
507
 
490
508
  declare type Props_2 = {
509
+ date: string;
510
+ noIcon?: boolean;
511
+ };
512
+
513
+ declare type Props_3 = {
491
514
  icon?: ReactNode;
492
515
  illustration?: ReactNode;
493
516
  text: string;
494
517
  };
495
518
 
496
- declare type Props_3 = {
519
+ declare type Props_4 = {
497
520
  additionalClassName?: string;
498
521
  handleClick?: (pageNumber: number) => void;
499
522
  page: number;
@@ -504,7 +527,7 @@ declare type Props_3 = {
504
527
  showResultCount?: boolean;
505
528
  };
506
529
 
507
- declare type Props_4 = {
530
+ declare type Props_5 = {
508
531
  tooltipText?: string;
509
532
  content?: string;
510
533
  html?: string;
@@ -517,7 +540,7 @@ declare type Props_4 = {
517
540
  ariaLabel?: string;
518
541
  };
519
542
 
520
- declare type Props_5 = {
543
+ declare type Props_6 = {
521
544
  controlKey: string;
522
545
  labelText?: string;
523
546
  type?: string;
@@ -530,7 +553,7 @@ declare type Props_5 = {
530
553
  errorText?: string;
531
554
  };
532
555
 
533
- declare type Props_6 = {
556
+ declare type Props_7 = {
534
557
  controlKey: string;
535
558
  options?: DropdownOption[];
536
559
  labelText?: string;
@@ -539,7 +562,7 @@ declare type Props_6 = {
539
562
  exclusive?: boolean;
540
563
  };
541
564
 
542
- declare type Props_7 = {
565
+ declare type Props_8 = {
543
566
  controlKey: string;
544
567
  labelText?: string;
545
568
  required?: boolean;
@@ -548,20 +571,6 @@ declare type Props_7 = {
548
571
  errorText?: string;
549
572
  };
550
573
 
551
- declare type Props_9 = {
552
- controlKey: string;
553
- labelText?: string;
554
- placeholder?: string;
555
- required?: boolean;
556
- disabled?: boolean;
557
- clearable?: boolean;
558
- dateFormat?: string;
559
- minDate?: Date;
560
- maxDate?: Date;
561
- onAfterChange?: (value: string) => void;
562
- errorText?: string;
563
- };
564
-
565
574
  export declare const PurchaseOrderIcon: FC;
566
575
 
567
576
  export declare const PurchaseRequestsIcon: FC;
@@ -615,6 +624,8 @@ export declare const ShareIcon: FC;
615
624
 
616
625
  export declare const SignOffIcon: FC;
617
626
 
627
+ export declare const SpinnerCircularIcon: () => JSX.Element;
628
+
618
629
  declare type State = {
619
630
  hasError: boolean;
620
631
  errorMessage: string;
@@ -649,7 +660,7 @@ export declare type TableSortState = {
649
660
  direction: 'asc' | 'desc';
650
661
  } | null;
651
662
 
652
- export declare const TableZeroStateRow: ({ icon, illustration, text }: Props_2) => JSX.Element;
663
+ export declare const TableZeroStateRow: ({ icon, illustration, text }: Props_3) => JSX.Element;
653
664
 
654
665
  export declare const TiffIcon: () => JSX.Element;
655
666
 
@@ -676,7 +687,7 @@ declare type ToggleViewProps = {
676
687
  disabled?: boolean;
677
688
  };
678
689
 
679
- export declare const Tooltip: ({ tooltipText, content, html, children, place, position, delay, className, wrapperClassName, ariaLabel, }: Props_4) => JSX.Element | null;
690
+ export declare const Tooltip: ({ tooltipText, content, html, children, place, position, delay, className, wrapperClassName, ariaLabel, }: Props_5) => JSX.Element | null;
680
691
 
681
692
  declare type TooltipPlace = 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
682
693