maritime-ui 0.1.47 → 0.1.49
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 +58 -13
- package/dist/maritime-ui.cjs +9 -9
- package/dist/maritime-ui.js +3505 -3152
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -11,14 +11,14 @@ import { SelectInstance } from 'react-select';
|
|
|
11
11
|
|
|
12
12
|
export declare const Badge: ({ type, title, icon }: Props) => JSX.Element;
|
|
13
13
|
|
|
14
|
-
export declare type BadgeType = 'default' | 'success' | 'warning' | 'info' | 'warning-with-icon' | 'success-with-icon' | 'info-with-icon' | 'danger' | '
|
|
14
|
+
export declare type BadgeType = 'default' | 'success' | 'warning' | 'info' | 'warning-with-icon' | 'success-with-icon' | 'info-with-icon' | 'danger' | 'azure' | 'pink' | 'purple';
|
|
15
15
|
|
|
16
16
|
export declare const Button: FC<ButtonProps>;
|
|
17
17
|
|
|
18
18
|
declare type ButtonProps = {
|
|
19
19
|
buttonStyle?: string;
|
|
20
20
|
buttonSize?: 'small' | 'medium' | 'large' | 'huge';
|
|
21
|
-
buttonColor?: 'primary' | 'secondary' | 'danger' | 'tertiary' | 'success';
|
|
21
|
+
buttonColor?: 'primary' | 'secondary' | 'danger' | 'tertiary' | 'success' | 'warning';
|
|
22
22
|
buttonFill?: 'solid' | 'bordered' | 'link';
|
|
23
23
|
type?: 'button' | 'submit' | 'reset';
|
|
24
24
|
text?: ReactNode;
|
|
@@ -33,6 +33,14 @@ declare type ButtonProps = {
|
|
|
33
33
|
additionalClassName?: string;
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
+
export declare const CheckMarkBlackIcon: ({ className }: Props_16) => JSX.Element;
|
|
37
|
+
|
|
38
|
+
export declare const CloseModalIcon: () => JSX.Element;
|
|
39
|
+
|
|
40
|
+
export declare const ConfirmedIcon: () => JSX.Element;
|
|
41
|
+
|
|
42
|
+
export declare const DirhamIcon: () => JSX.Element;
|
|
43
|
+
|
|
36
44
|
declare type DropdownAction = {
|
|
37
45
|
label: string;
|
|
38
46
|
onClick: () => void;
|
|
@@ -56,9 +64,10 @@ declare type FilterButtonProps = {
|
|
|
56
64
|
}[];
|
|
57
65
|
selectedOptions: string[];
|
|
58
66
|
onChange: (selectedOptions: string[]) => void;
|
|
59
|
-
showAll?: boolean;
|
|
60
67
|
};
|
|
61
68
|
|
|
69
|
+
export declare const FilterLinesIcon: () => JSX.Element;
|
|
70
|
+
|
|
62
71
|
export declare const FilterSearch: FC<FilterSearchProps>;
|
|
63
72
|
|
|
64
73
|
declare type FilterSearchProps = {
|
|
@@ -74,13 +83,15 @@ declare type FilterSearchProps = {
|
|
|
74
83
|
children?: ReactNode;
|
|
75
84
|
};
|
|
76
85
|
|
|
77
|
-
export declare const
|
|
86
|
+
export declare const ForbiddenHeading: () => JSX.Element;
|
|
87
|
+
|
|
88
|
+
export declare const FormFieldCheckbox: ({ controlKey, options, labelText, required, disabled, exclusive, }: Props_6) => JSX.Element;
|
|
78
89
|
|
|
79
90
|
export declare const FormFieldDatepicker: ({ controlKey, labelText, placeholder, required, disabled, clearable, dateFormat, minDate, maxDate, onAfterChange, errorText, }: Props_9) => JSX.Element;
|
|
80
91
|
|
|
81
92
|
export declare const FormFieldDatepickerRange: ({ controlKeyStart, controlKeyEnd, labelText, placeholder, required, disabled, clearable, dateFormat, minDate, maxDate, onAfterChange, errorText, }: Props_10) => JSX.Element;
|
|
82
93
|
|
|
83
|
-
export declare const FormFieldInput: ({ controlKey, labelText,
|
|
94
|
+
export declare const FormFieldInput: ({ controlKey, labelText, type, required, disabled, numeric, digitsOnly, decimalPlaces, onAfterChange, errorText, }: Props_5) => JSX.Element;
|
|
84
95
|
|
|
85
96
|
export declare const FormFieldMultiSelect: ForwardRefExoticComponent<Omit<Props_8<DropdownOption, true>, "options" | "isMulti" | "noOptionsMessage"> & {
|
|
86
97
|
controlKey: string;
|
|
@@ -110,24 +121,36 @@ errorText?: string;
|
|
|
110
121
|
optimize?: boolean;
|
|
111
122
|
} & RefAttributes<SelectInstance<DropdownOption, false>>>;
|
|
112
123
|
|
|
113
|
-
export declare const FormFieldTextarea: ({ controlKey, labelText,
|
|
124
|
+
export declare const FormFieldTextarea: ({ controlKey, labelText, required, disabled, rows, errorText, }: Props_7) => JSX.Element;
|
|
114
125
|
|
|
115
126
|
export declare const FormFieldTimepicker: FC<Props_12>;
|
|
116
127
|
|
|
128
|
+
export declare const IconWarning: () => JSX.Element;
|
|
129
|
+
|
|
130
|
+
export declare const Loader: ({ size }: Props_13) => JSX.Element;
|
|
131
|
+
|
|
132
|
+
export declare const MessageBoxError: ({ errorTag, error }: Props_15) => JSX.Element;
|
|
133
|
+
|
|
117
134
|
export declare const MoreActionsDropdown: FC<MoreActionsDropdownProps>;
|
|
118
135
|
|
|
119
136
|
declare type MoreActionsDropdownProps = {
|
|
120
137
|
actions: DropdownAction[];
|
|
121
138
|
};
|
|
122
139
|
|
|
140
|
+
export declare const NotFoundHeading: () => JSX.Element;
|
|
141
|
+
|
|
123
142
|
export declare const PageLoader: FC<PageLoaderProps>;
|
|
124
143
|
|
|
125
144
|
declare type PageLoaderProps = {
|
|
126
145
|
text?: ReactNode;
|
|
127
146
|
};
|
|
128
147
|
|
|
148
|
+
export declare const PageWrapper: ({ children, additionalClassName }: Props_14) => JSX.Element;
|
|
149
|
+
|
|
129
150
|
export declare const Pagination: FC<Props_3>;
|
|
130
151
|
|
|
152
|
+
export declare const PdfIcon: () => JSX.Element;
|
|
153
|
+
|
|
131
154
|
declare type Props = {
|
|
132
155
|
type: BadgeType;
|
|
133
156
|
title: string;
|
|
@@ -160,14 +183,31 @@ declare type Props_11 = {
|
|
|
160
183
|
|
|
161
184
|
declare type Props_12 = {
|
|
162
185
|
controlKey: string;
|
|
163
|
-
labelText
|
|
164
|
-
placeholder?: string;
|
|
186
|
+
labelText: string;
|
|
165
187
|
required?: boolean;
|
|
166
188
|
disabled?: boolean;
|
|
167
189
|
onAfterChange?: (value: string) => void;
|
|
168
190
|
errorText?: string;
|
|
169
191
|
};
|
|
170
192
|
|
|
193
|
+
declare type Props_13 = {
|
|
194
|
+
size?: number;
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
declare type Props_14 = {
|
|
198
|
+
children: ReactNode;
|
|
199
|
+
additionalClassName?: string | undefined;
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
declare type Props_15 = {
|
|
203
|
+
errorTag?: string;
|
|
204
|
+
error?: string;
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
declare type Props_16 = {
|
|
208
|
+
className?: string;
|
|
209
|
+
};
|
|
210
|
+
|
|
171
211
|
declare type Props_2 = {
|
|
172
212
|
icon?: ReactNode;
|
|
173
213
|
illustration?: ReactNode;
|
|
@@ -201,7 +241,6 @@ declare type Props_4 = {
|
|
|
201
241
|
declare type Props_5 = {
|
|
202
242
|
controlKey: string;
|
|
203
243
|
labelText?: string;
|
|
204
|
-
placeholder?: string;
|
|
205
244
|
type?: string;
|
|
206
245
|
required?: boolean;
|
|
207
246
|
disabled?: boolean;
|
|
@@ -218,14 +257,12 @@ declare type Props_6 = {
|
|
|
218
257
|
labelText?: string;
|
|
219
258
|
required?: boolean;
|
|
220
259
|
disabled?: boolean;
|
|
221
|
-
|
|
222
|
-
singleSelect?: boolean;
|
|
260
|
+
exclusive?: boolean;
|
|
223
261
|
};
|
|
224
262
|
|
|
225
263
|
declare type Props_7 = {
|
|
226
264
|
controlKey: string;
|
|
227
265
|
labelText?: string;
|
|
228
|
-
placeholder?: string;
|
|
229
266
|
required?: boolean;
|
|
230
267
|
disabled?: boolean;
|
|
231
268
|
rows?: number;
|
|
@@ -253,6 +290,12 @@ export declare type RadioOption = {
|
|
|
253
290
|
description?: string;
|
|
254
291
|
};
|
|
255
292
|
|
|
293
|
+
export declare const RejectedIcon: () => JSX.Element;
|
|
294
|
+
|
|
295
|
+
export declare const ServerErrorHeading: () => JSX.Element;
|
|
296
|
+
|
|
297
|
+
export declare const StatusCheckmarkIcon: () => JSX.Element;
|
|
298
|
+
|
|
256
299
|
export declare const Table: FC<TableProps>;
|
|
257
300
|
|
|
258
301
|
export declare type TableColumn = {
|
|
@@ -287,7 +330,7 @@ export declare const ToggleButton: FC<ToggleButtonProps>;
|
|
|
287
330
|
declare type ToggleButtonProps = {
|
|
288
331
|
value: boolean;
|
|
289
332
|
onChange: (value: boolean) => void;
|
|
290
|
-
buttonSize?: 'small'
|
|
333
|
+
buttonSize?: 'small';
|
|
291
334
|
disabled?: boolean;
|
|
292
335
|
};
|
|
293
336
|
|
|
@@ -305,4 +348,6 @@ export declare const Tooltip: ({ tooltipText, content, html, children, place, po
|
|
|
305
348
|
|
|
306
349
|
declare type TooltipPlace = 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
|
|
307
350
|
|
|
351
|
+
export declare const UnconfirmedIcon: () => JSX.Element;
|
|
352
|
+
|
|
308
353
|
export { }
|