maritime-ui 0.1.64 → 0.1.65
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 +51 -44
- package/dist/maritime-ui.cjs +9 -9
- package/dist/maritime-ui.css +1 -1
- package/dist/maritime-ui.js +13540 -13525
- package/package.json +1 -1
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
|
|
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 }:
|
|
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<
|
|
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;
|
|
@@ -237,15 +239,15 @@ export declare const formatPrice: (price: number) => string;
|
|
|
237
239
|
|
|
238
240
|
export declare const FormCalendarIcon: () => JSX.Element;
|
|
239
241
|
|
|
240
|
-
export declare const FormFieldCheckbox: ({ controlKey, options, labelText, required, disabled, exclusive, }:
|
|
242
|
+
export declare const FormFieldCheckbox: ({ controlKey, options, labelText, required, disabled, exclusive, }: Props_7) => JSX.Element;
|
|
241
243
|
|
|
242
|
-
export declare const FormFieldDatepicker: ({ controlKey, labelText, placeholder, required, disabled, clearable, dateFormat, minDate, maxDate, onAfterChange, errorText, }:
|
|
244
|
+
export declare const FormFieldDatepicker: ({ controlKey, labelText, placeholder, required, disabled, clearable, dateFormat, minDate, maxDate, onAfterChange, errorText, }: Props_10) => JSX.Element;
|
|
243
245
|
|
|
244
|
-
export declare const FormFieldDatepickerRange: ({ controlKeyStart, controlKeyEnd, labelText, placeholder, required, disabled, clearable, dateFormat, minDate, maxDate, onAfterChange, errorText, }:
|
|
246
|
+
export declare const FormFieldDatepickerRange: ({ controlKeyStart, controlKeyEnd, labelText, placeholder, required, disabled, clearable, dateFormat, minDate, maxDate, onAfterChange, errorText, }: Props_11) => JSX.Element;
|
|
245
247
|
|
|
246
|
-
export declare const FormFieldInput: ({ controlKey, labelText, type, required, disabled, numeric, digitsOnly, decimalPlaces, onAfterChange, errorText, }:
|
|
248
|
+
export declare const FormFieldInput: ({ controlKey, labelText, type, required, disabled, numeric, digitsOnly, decimalPlaces, onAfterChange, errorText, }: Props_6) => JSX.Element;
|
|
247
249
|
|
|
248
|
-
export declare const FormFieldMultiSelect: ForwardRefExoticComponent<Omit<
|
|
250
|
+
export declare const FormFieldMultiSelect: ForwardRefExoticComponent<Omit<Props_9<DropdownOption, true>, "options" | "isMulti" | "noOptionsMessage"> & {
|
|
249
251
|
controlKey: string;
|
|
250
252
|
options: DropdownOption[];
|
|
251
253
|
labelText?: string;
|
|
@@ -258,9 +260,9 @@ errorText?: string;
|
|
|
258
260
|
optimize?: boolean;
|
|
259
261
|
} & RefAttributes<SelectInstance<DropdownOption, true>>>;
|
|
260
262
|
|
|
261
|
-
export declare const FormFieldRadio: ({ controlKey, options, label, tooltipText, required, disabled, }:
|
|
263
|
+
export declare const FormFieldRadio: ({ controlKey, options, label, tooltipText, required, disabled, }: Props_12) => JSX.Element;
|
|
262
264
|
|
|
263
|
-
export declare const FormFieldSelect: ForwardRefExoticComponent<Omit<
|
|
265
|
+
export declare const FormFieldSelect: ForwardRefExoticComponent<Omit<Props_9<DropdownOption, false>, "options" | "noOptionsMessage"> & {
|
|
264
266
|
controlKey: string;
|
|
265
267
|
options: DropdownOption[];
|
|
266
268
|
labelText?: string;
|
|
@@ -274,9 +276,9 @@ optimize?: boolean;
|
|
|
274
276
|
inline?: boolean;
|
|
275
277
|
} & RefAttributes<SelectInstance<DropdownOption, false>>>;
|
|
276
278
|
|
|
277
|
-
export declare const FormFieldTextarea: ({ controlKey, labelText, required, disabled, rows, errorText, }:
|
|
279
|
+
export declare const FormFieldTextarea: ({ controlKey, labelText, required, disabled, rows, errorText, }: Props_8) => JSX.Element;
|
|
278
280
|
|
|
279
|
-
export declare const FormFieldTimepicker: FC<
|
|
281
|
+
export declare const FormFieldTimepicker: FC<Props_13>;
|
|
280
282
|
|
|
281
283
|
export declare const getBadgeTitle: (status: string) => string;
|
|
282
284
|
|
|
@@ -328,7 +330,7 @@ export declare const JpgIcon: () => JSX.Element;
|
|
|
328
330
|
|
|
329
331
|
export declare const LinkIcon: () => JSX.Element;
|
|
330
332
|
|
|
331
|
-
export declare const Loader: ({ size }:
|
|
333
|
+
export declare const Loader: ({ size }: Props_14) => JSX.Element;
|
|
332
334
|
|
|
333
335
|
export declare const Logo: () => JSX.Element;
|
|
334
336
|
|
|
@@ -348,7 +350,7 @@ export declare const MedicalsIcon: FC;
|
|
|
348
350
|
|
|
349
351
|
export declare const MedicalsZeroStateIcon: FC;
|
|
350
352
|
|
|
351
|
-
export declare const MessageBoxError: ({ errorTag, error }:
|
|
353
|
+
export declare const MessageBoxError: ({ errorTag, error }: Props_16) => JSX.Element;
|
|
352
354
|
|
|
353
355
|
export declare const MessageBubble: FC;
|
|
354
356
|
|
|
@@ -388,9 +390,9 @@ declare type PageLoaderProps = {
|
|
|
388
390
|
text?: ReactNode;
|
|
389
391
|
};
|
|
390
392
|
|
|
391
|
-
export declare const PageWrapper: ({ children, additionalClassName }:
|
|
393
|
+
export declare const PageWrapper: ({ children, additionalClassName }: Props_15) => JSX.Element;
|
|
392
394
|
|
|
393
|
-
export declare const Pagination: FC<
|
|
395
|
+
export declare const Pagination: FC<Props_4>;
|
|
394
396
|
|
|
395
397
|
export declare const PasswordLockIcon: () => JSX.Element;
|
|
396
398
|
|
|
@@ -433,6 +435,20 @@ declare type Props = {
|
|
|
433
435
|
};
|
|
434
436
|
|
|
435
437
|
declare type Props_10 = {
|
|
438
|
+
controlKey: string;
|
|
439
|
+
labelText?: string;
|
|
440
|
+
placeholder?: string;
|
|
441
|
+
required?: boolean;
|
|
442
|
+
disabled?: boolean;
|
|
443
|
+
clearable?: boolean;
|
|
444
|
+
dateFormat?: string;
|
|
445
|
+
minDate?: Date;
|
|
446
|
+
maxDate?: Date;
|
|
447
|
+
onAfterChange?: (value: string) => void;
|
|
448
|
+
errorText?: string;
|
|
449
|
+
};
|
|
450
|
+
|
|
451
|
+
declare type Props_11 = {
|
|
436
452
|
controlKeyStart: string;
|
|
437
453
|
controlKeyEnd: string;
|
|
438
454
|
labelText?: string;
|
|
@@ -447,7 +463,7 @@ declare type Props_10 = {
|
|
|
447
463
|
errorText?: string;
|
|
448
464
|
};
|
|
449
465
|
|
|
450
|
-
declare type
|
|
466
|
+
declare type Props_12 = {
|
|
451
467
|
controlKey: string;
|
|
452
468
|
options: RadioOption[];
|
|
453
469
|
label?: string;
|
|
@@ -456,7 +472,7 @@ declare type Props_11 = {
|
|
|
456
472
|
disabled?: boolean;
|
|
457
473
|
};
|
|
458
474
|
|
|
459
|
-
declare type
|
|
475
|
+
declare type Props_13 = {
|
|
460
476
|
controlKey: string;
|
|
461
477
|
labelText: string;
|
|
462
478
|
required?: boolean;
|
|
@@ -465,35 +481,40 @@ declare type Props_12 = {
|
|
|
465
481
|
errorText?: string;
|
|
466
482
|
};
|
|
467
483
|
|
|
468
|
-
declare type
|
|
484
|
+
declare type Props_14 = {
|
|
469
485
|
size?: number;
|
|
470
486
|
};
|
|
471
487
|
|
|
472
|
-
declare type
|
|
488
|
+
declare type Props_15 = {
|
|
473
489
|
children: ReactNode;
|
|
474
490
|
additionalClassName?: string | undefined;
|
|
475
491
|
};
|
|
476
492
|
|
|
477
|
-
declare type
|
|
493
|
+
declare type Props_16 = {
|
|
478
494
|
errorTag?: string;
|
|
479
495
|
error?: string;
|
|
480
496
|
};
|
|
481
497
|
|
|
482
|
-
declare type
|
|
498
|
+
declare type Props_17 = {
|
|
483
499
|
children: ReactNode;
|
|
484
500
|
};
|
|
485
501
|
|
|
486
|
-
declare type
|
|
502
|
+
declare type Props_18 = {
|
|
487
503
|
className?: string;
|
|
488
504
|
};
|
|
489
505
|
|
|
490
506
|
declare type Props_2 = {
|
|
507
|
+
date: string;
|
|
508
|
+
noIcon?: boolean;
|
|
509
|
+
};
|
|
510
|
+
|
|
511
|
+
declare type Props_3 = {
|
|
491
512
|
icon?: ReactNode;
|
|
492
513
|
illustration?: ReactNode;
|
|
493
514
|
text: string;
|
|
494
515
|
};
|
|
495
516
|
|
|
496
|
-
declare type
|
|
517
|
+
declare type Props_4 = {
|
|
497
518
|
additionalClassName?: string;
|
|
498
519
|
handleClick?: (pageNumber: number) => void;
|
|
499
520
|
page: number;
|
|
@@ -504,7 +525,7 @@ declare type Props_3 = {
|
|
|
504
525
|
showResultCount?: boolean;
|
|
505
526
|
};
|
|
506
527
|
|
|
507
|
-
declare type
|
|
528
|
+
declare type Props_5 = {
|
|
508
529
|
tooltipText?: string;
|
|
509
530
|
content?: string;
|
|
510
531
|
html?: string;
|
|
@@ -517,7 +538,7 @@ declare type Props_4 = {
|
|
|
517
538
|
ariaLabel?: string;
|
|
518
539
|
};
|
|
519
540
|
|
|
520
|
-
declare type
|
|
541
|
+
declare type Props_6 = {
|
|
521
542
|
controlKey: string;
|
|
522
543
|
labelText?: string;
|
|
523
544
|
type?: string;
|
|
@@ -530,7 +551,7 @@ declare type Props_5 = {
|
|
|
530
551
|
errorText?: string;
|
|
531
552
|
};
|
|
532
553
|
|
|
533
|
-
declare type
|
|
554
|
+
declare type Props_7 = {
|
|
534
555
|
controlKey: string;
|
|
535
556
|
options?: DropdownOption[];
|
|
536
557
|
labelText?: string;
|
|
@@ -539,7 +560,7 @@ declare type Props_6 = {
|
|
|
539
560
|
exclusive?: boolean;
|
|
540
561
|
};
|
|
541
562
|
|
|
542
|
-
declare type
|
|
563
|
+
declare type Props_8 = {
|
|
543
564
|
controlKey: string;
|
|
544
565
|
labelText?: string;
|
|
545
566
|
required?: boolean;
|
|
@@ -548,20 +569,6 @@ declare type Props_7 = {
|
|
|
548
569
|
errorText?: string;
|
|
549
570
|
};
|
|
550
571
|
|
|
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
572
|
export declare const PurchaseOrderIcon: FC;
|
|
566
573
|
|
|
567
574
|
export declare const PurchaseRequestsIcon: FC;
|
|
@@ -649,7 +656,7 @@ export declare type TableSortState = {
|
|
|
649
656
|
direction: 'asc' | 'desc';
|
|
650
657
|
} | null;
|
|
651
658
|
|
|
652
|
-
export declare const TableZeroStateRow: ({ icon, illustration, text }:
|
|
659
|
+
export declare const TableZeroStateRow: ({ icon, illustration, text }: Props_3) => JSX.Element;
|
|
653
660
|
|
|
654
661
|
export declare const TiffIcon: () => JSX.Element;
|
|
655
662
|
|
|
@@ -676,7 +683,7 @@ declare type ToggleViewProps = {
|
|
|
676
683
|
disabled?: boolean;
|
|
677
684
|
};
|
|
678
685
|
|
|
679
|
-
export declare const Tooltip: ({ tooltipText, content, html, children, place, position, delay, className, wrapperClassName, ariaLabel, }:
|
|
686
|
+
export declare const Tooltip: ({ tooltipText, content, html, children, place, position, delay, className, wrapperClassName, ariaLabel, }: Props_5) => JSX.Element | null;
|
|
680
687
|
|
|
681
688
|
declare type TooltipPlace = 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
|
|
682
689
|
|