maritime-ui 0.1.75 → 0.1.76

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_10 } from 'react-select';
7
+ import { Props as Props_11 } from 'react-select';
8
8
  import { ReactElement } from 'react';
9
9
  import { ReactNode } from 'react';
10
10
  import { ReactPortal } from 'react';
@@ -12,8 +12,6 @@ import { RefAttributes } from 'react';
12
12
  import { RefObject } from 'react';
13
13
  import { SelectInstance } from 'react-select';
14
14
 
15
- export declare const ActivityIcon: () => JSX.Element;
16
-
17
15
  export declare const ActivityLogIcon: FC;
18
16
 
19
17
  export declare const ActivityLogZeroStateIcon: FC;
@@ -102,6 +100,8 @@ export declare const CancelIcon: FC;
102
100
 
103
101
  export declare const CertificatesIcon: FC;
104
102
 
103
+ export declare const Checkbox: ({ checked, onChange, labelText, disabled, indeterminate, name, }: Props_2) => JSX.Element;
104
+
105
105
  export declare const CheckboxCheckIcon: FC;
106
106
 
107
107
  export declare const CheckboxIcon: FC;
@@ -122,12 +122,14 @@ export declare const CheckListIcon: () => JSX.Element;
122
122
 
123
123
  export declare const ChecklistIcon2: FC;
124
124
 
125
- export declare const CheckMarkBlackIcon: ({ className }: Props_19) => JSX.Element;
125
+ export declare const CheckMarkBlackIcon: ({ className }: Props_20) => JSX.Element;
126
126
 
127
127
  export declare const CheckmarkIcon: () => JSX.Element;
128
128
 
129
129
  export declare const CheckSingleIcon: () => JSX.Element;
130
130
 
131
+ export declare const CheckSmallIcon: () => JSX.Element;
132
+
131
133
  export declare const ChevronDownIcon: FC;
132
134
 
133
135
  export declare const ChevronIcon: FC;
@@ -174,7 +176,7 @@ export declare const CsvIcon: () => JSX.Element;
174
176
 
175
177
  export declare const CurrentRotationIcon: FC;
176
178
 
177
- export declare const DateSeparator: ({ date, noIcon }: Props_2) => JSX.Element;
179
+ export declare const DateSeparator: ({ date, noIcon }: Props_3) => JSX.Element;
178
180
 
179
181
  export declare const DeleteIcon: FC;
180
182
 
@@ -213,6 +215,7 @@ declare type DropdownAction = {
213
215
  export declare type DropdownOption = {
214
216
  label: string;
215
217
  value: string;
218
+ description?: string;
216
219
  disabled?: boolean;
217
220
  };
218
221
 
@@ -228,7 +231,7 @@ export declare const EmailSentIcon: () => JSX.Element;
228
231
 
229
232
  export declare const EmployeeDetailsIcon: FC;
230
233
 
231
- export declare class ErrorBoundary extends Component<Props_18, State> {
234
+ export declare class ErrorBoundary extends Component<Props_19, State> {
232
235
  state: State;
233
236
  static getDerivedStateFromError(error: Error): State;
234
237
  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;
@@ -291,15 +294,15 @@ export declare const formatPrice: (price: number) => string;
291
294
 
292
295
  export declare const FormCalendarIcon: () => JSX.Element;
293
296
 
294
- export declare const FormFieldCheckbox: ({ controlKey, options, labelText, required, disabled, exclusive, }: Props_8) => JSX.Element;
297
+ export declare const FormFieldCheckbox: ({ controlKey, options, labelText, required, disabled, exclusive, }: Props_9) => JSX.Element;
295
298
 
296
- export declare const FormFieldDatepicker: ({ controlKey, labelText, placeholder, required, disabled, clearable, dateFormat, minDate, maxDate, onAfterChange, errorText, }: Props_11) => JSX.Element;
299
+ export declare const FormFieldDatepicker: ({ controlKey, labelText, placeholder, required, disabled, clearable, dateFormat, minDate, maxDate, onAfterChange, errorText, }: Props_12) => JSX.Element;
297
300
 
298
- export declare const FormFieldDatepickerRange: ({ controlKeyStart, controlKeyEnd, labelText, placeholder, required, disabled, clearable, dateFormat, minDate, maxDate, onAfterChange, errorText, }: Props_12) => JSX.Element;
301
+ export declare const FormFieldDatepickerRange: ({ controlKeyStart, controlKeyEnd, labelText, placeholder, required, disabled, clearable, dateFormat, minDate, maxDate, onAfterChange, errorText, }: Props_13) => JSX.Element;
299
302
 
300
- export declare const FormFieldInput: ({ controlKey, labelText, type, required, disabled, numeric, digitsOnly, decimalPlaces, onAfterChange, errorText, }: Props_7) => JSX.Element;
303
+ export declare const FormFieldInput: ({ controlKey, labelText, type, required, disabled, numeric, digitsOnly, decimalPlaces, onAfterChange, errorText, }: Props_8) => JSX.Element;
301
304
 
302
- export declare const FormFieldMultiSelect: ForwardRefExoticComponent<Omit<Props_10<DropdownOption, true>, "options" | "isMulti" | "noOptionsMessage"> & {
305
+ export declare const FormFieldMultiSelect: ForwardRefExoticComponent<Omit<Props_11<DropdownOption, true>, "options" | "isMulti" | "noOptionsMessage"> & {
303
306
  controlKey: string;
304
307
  options: DropdownOption[];
305
308
  labelText?: string;
@@ -312,9 +315,9 @@ errorText?: string;
312
315
  optimize?: boolean;
313
316
  } & RefAttributes<SelectInstance<DropdownOption, true>>>;
314
317
 
315
- export declare const FormFieldRadio: ({ controlKey, options, label, tooltipText, required, disabled, }: Props_13) => JSX.Element;
318
+ export declare const FormFieldRadio: ({ controlKey, options, label, tooltipText, required, disabled, }: Props_14) => JSX.Element;
316
319
 
317
- export declare const FormFieldSelect: ForwardRefExoticComponent<Omit<Props_10<DropdownOption, false>, "options" | "noOptionsMessage"> & {
320
+ export declare const FormFieldSelect: ForwardRefExoticComponent<Omit<Props_11<DropdownOption, false>, "options" | "noOptionsMessage"> & {
318
321
  controlKey: string;
319
322
  options: DropdownOption[];
320
323
  labelText?: string;
@@ -328,9 +331,9 @@ optimize?: boolean;
328
331
  inline?: boolean;
329
332
  } & RefAttributes<SelectInstance<DropdownOption, false>>>;
330
333
 
331
- export declare const FormFieldTextarea: ({ controlKey, labelText, required, disabled, rows, errorText, }: Props_9) => JSX.Element;
334
+ export declare const FormFieldTextarea: ({ controlKey, labelText, required, disabled, rows, errorText, }: Props_10) => JSX.Element;
332
335
 
333
- export declare const FormFieldTimepicker: FC<Props_14>;
336
+ export declare const FormFieldTimepicker: FC<Props_15>;
334
337
 
335
338
  export declare const getBadgeTitle: (status: string) => string;
336
339
 
@@ -388,7 +391,7 @@ export declare const JpgIcon: () => JSX.Element;
388
391
 
389
392
  export declare const LinkIcon: () => JSX.Element;
390
393
 
391
- export declare const Loader: ({ size }: Props_15) => JSX.Element;
394
+ export declare const Loader: ({ size }: Props_16) => JSX.Element;
392
395
 
393
396
  export declare const LoadingSpinnerIcon: FC;
394
397
 
@@ -410,7 +413,7 @@ export declare const MedicalsIcon: FC;
410
413
 
411
414
  export declare const MedicalsZeroStateIcon: FC;
412
415
 
413
- export declare const MessageBoxError: ({ errorTag, error }: Props_17) => JSX.Element;
416
+ export declare const MessageBoxError: ({ errorTag, error }: Props_18) => JSX.Element;
414
417
 
415
418
  export declare const MessageBubble: FC;
416
419
 
@@ -452,9 +455,9 @@ declare type PageLoaderProps = {
452
455
  text?: ReactNode;
453
456
  };
454
457
 
455
- export declare const PageWrapper: ({ children, additionalClassName }: Props_16) => JSX.Element;
458
+ export declare const PageWrapper: ({ children, additionalClassName }: Props_17) => JSX.Element;
456
459
 
457
- export declare const Pagination: FC<Props_4>;
460
+ export declare const Pagination: FC<Props_5>;
458
461
 
459
462
  export declare const PassportIcon: FC;
460
463
 
@@ -500,7 +503,16 @@ declare type Props = {
500
503
  icon?: ReactElement;
501
504
  };
502
505
 
503
- declare type Props_11 = {
506
+ declare type Props_10 = {
507
+ controlKey: string;
508
+ labelText?: string;
509
+ required?: boolean;
510
+ disabled?: boolean;
511
+ rows?: number;
512
+ errorText?: string;
513
+ };
514
+
515
+ declare type Props_12 = {
504
516
  controlKey: string;
505
517
  labelText?: string;
506
518
  placeholder?: string;
@@ -514,7 +526,7 @@ declare type Props_11 = {
514
526
  errorText?: string;
515
527
  };
516
528
 
517
- declare type Props_12 = {
529
+ declare type Props_13 = {
518
530
  controlKeyStart: string;
519
531
  controlKeyEnd: string;
520
532
  labelText?: string;
@@ -529,7 +541,7 @@ declare type Props_12 = {
529
541
  errorText?: string;
530
542
  };
531
543
 
532
- declare type Props_13 = {
544
+ declare type Props_14 = {
533
545
  controlKey: string;
534
546
  options: RadioOption[];
535
547
  label?: string;
@@ -538,7 +550,7 @@ declare type Props_13 = {
538
550
  disabled?: boolean;
539
551
  };
540
552
 
541
- declare type Props_14 = {
553
+ declare type Props_15 = {
542
554
  controlKey: string;
543
555
  labelText: string;
544
556
  required?: boolean;
@@ -547,40 +559,49 @@ declare type Props_14 = {
547
559
  errorText?: string;
548
560
  };
549
561
 
550
- declare type Props_15 = {
562
+ declare type Props_16 = {
551
563
  size?: number;
552
564
  };
553
565
 
554
- declare type Props_16 = {
566
+ declare type Props_17 = {
555
567
  children: ReactNode;
556
568
  additionalClassName?: string | undefined;
557
569
  };
558
570
 
559
- declare type Props_17 = {
571
+ declare type Props_18 = {
560
572
  errorTag?: string;
561
573
  error?: string;
562
574
  };
563
575
 
564
- declare type Props_18 = {
576
+ declare type Props_19 = {
565
577
  children: ReactNode;
566
578
  };
567
579
 
568
- declare type Props_19 = {
580
+ declare type Props_2 = {
581
+ checked: boolean;
582
+ onChange: (checked: boolean) => void;
583
+ labelText?: string;
584
+ disabled?: boolean;
585
+ indeterminate?: boolean;
586
+ name?: string;
587
+ };
588
+
589
+ declare type Props_20 = {
569
590
  className?: string;
570
591
  };
571
592
 
572
- declare type Props_2 = {
593
+ declare type Props_3 = {
573
594
  date: string;
574
595
  noIcon?: boolean;
575
596
  };
576
597
 
577
- declare type Props_3 = {
598
+ declare type Props_4 = {
578
599
  icon?: ReactNode;
579
600
  illustration?: ReactNode;
580
601
  text: string;
581
602
  };
582
603
 
583
- declare type Props_4 = {
604
+ declare type Props_5 = {
584
605
  additionalClassName?: string;
585
606
  handleClick?: (pageNumber: number) => void;
586
607
  page: number;
@@ -591,7 +612,7 @@ declare type Props_4 = {
591
612
  showResultCount?: boolean;
592
613
  };
593
614
 
594
- declare type Props_5 = {
615
+ declare type Props_6 = {
595
616
  options: DropdownOption[];
596
617
  value?: DropdownOption | null | undefined;
597
618
  defaultValue?: DropdownOption | undefined;
@@ -604,7 +625,7 @@ declare type Props_5 = {
604
625
  additionalClassName?: string | undefined;
605
626
  };
606
627
 
607
- declare type Props_6 = {
628
+ declare type Props_7 = {
608
629
  tooltipText?: string;
609
630
  content?: string;
610
631
  html?: string;
@@ -617,7 +638,7 @@ declare type Props_6 = {
617
638
  ariaLabel?: string;
618
639
  };
619
640
 
620
- declare type Props_7 = {
641
+ declare type Props_8 = {
621
642
  controlKey: string;
622
643
  labelText?: string;
623
644
  type?: string;
@@ -630,7 +651,7 @@ declare type Props_7 = {
630
651
  errorText?: string;
631
652
  };
632
653
 
633
- declare type Props_8 = {
654
+ declare type Props_9 = {
634
655
  controlKey: string;
635
656
  options?: DropdownOption[];
636
657
  labelText?: string;
@@ -639,15 +660,6 @@ declare type Props_8 = {
639
660
  exclusive?: boolean;
640
661
  };
641
662
 
642
- declare type Props_9 = {
643
- controlKey: string;
644
- labelText?: string;
645
- required?: boolean;
646
- disabled?: boolean;
647
- rows?: number;
648
- errorText?: string;
649
- };
650
-
651
663
  export declare const PurchaseOrderIcon: FC;
652
664
 
653
665
  export declare const PurchaseRequestsIcon: FC;
@@ -695,7 +707,7 @@ export declare const SearchIcon: FC;
695
707
 
696
708
  export declare const SearchSmallIcon: FC;
697
709
 
698
- export declare const Select: FC<Props_5>;
710
+ export declare const Select: FC<Props_6>;
699
711
 
700
712
  export declare const SendIcon: FC;
701
713
 
@@ -753,7 +765,7 @@ export declare type TableSortState = {
753
765
  direction: 'asc' | 'desc';
754
766
  } | null;
755
767
 
756
- export declare const TableZeroStateRow: ({ icon, illustration, text }: Props_3) => JSX.Element;
768
+ export declare const TableZeroStateRow: ({ icon, illustration, text }: Props_4) => JSX.Element;
757
769
 
758
770
  export declare const TiffIcon: () => JSX.Element;
759
771
 
@@ -780,7 +792,7 @@ declare type ToggleViewProps = {
780
792
  disabled?: boolean;
781
793
  };
782
794
 
783
- export declare const Tooltip: ({ tooltipText, content, html, children, place, position, delay, className, wrapperClassName, ariaLabel, }: Props_6) => JSX.Element | null;
795
+ export declare const Tooltip: ({ tooltipText, content, html, children, place, position, delay, className, wrapperClassName, ariaLabel, }: Props_7) => JSX.Element | null;
784
796
 
785
797
  declare type TooltipPlace = 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
786
798