@natoora-libs/core 0.0.36 → 0.0.41

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.
@@ -0,0 +1,999 @@
1
+ import * as React from 'react';
2
+ import { ReactNode, ComponentType, FC, ComponentProps } from 'react';
3
+ import * as react_jsx_runtime from 'react/jsx-runtime';
4
+ import { Control, ControllerRenderProps, ControllerFieldState, UseFormTrigger, UseFormReturn, FieldValues } from 'react-hook-form';
5
+ import { UseMutateAsyncFunction } from 'react-query';
6
+ import { MenuProps, Typography } from '@mui/material';
7
+ import { DateRangePickerShape } from 'react-dates';
8
+
9
+ interface AlertDialogProps {
10
+ open: boolean;
11
+ alertTitle?: string;
12
+ description?: string;
13
+ maxWidth?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
14
+ fullWidth?: boolean;
15
+ content?: ReactNode;
16
+ fullScreen?: boolean;
17
+ handleAlertAccept?: () => void;
18
+ handleAlertReject?: () => void;
19
+ rejectCopy?: string;
20
+ acceptCopy?: string;
21
+ disabledContentPadding?: boolean;
22
+ }
23
+ declare const AlertDialog: React.FC<AlertDialogProps>;
24
+
25
+ interface AlertDialogFullScreenProps {
26
+ acceptCopy?: any;
27
+ content?: any;
28
+ fullScreen?: any;
29
+ handleAlertAccept?: any;
30
+ handleAlertReject?: any;
31
+ open?: any;
32
+ rejectCopy?: any;
33
+ }
34
+ declare const AlertDialogFullScreen: ({ handleAlertAccept, handleAlertReject, fullScreen, open, rejectCopy, acceptCopy, content, }: AlertDialogFullScreenProps) => react_jsx_runtime.JSX.Element;
35
+
36
+ interface IAppLabel {
37
+ appName: string;
38
+ }
39
+ declare const AppLabel: ({ appName }: IAppLabel) => react_jsx_runtime.JSX.Element;
40
+
41
+ interface BackHeaderProps {
42
+ appName: string;
43
+ onGoBackClick?: () => void;
44
+ }
45
+ declare const BackHeader: React.FC<BackHeaderProps>;
46
+
47
+ interface BottomBarProps {
48
+ className?: string;
49
+ children?: React.ReactNode;
50
+ isLoading?: boolean;
51
+ onRefreshClick?: (() => void) | null;
52
+ }
53
+ declare const BottomBar: ({ className, children, isLoading, onRefreshClick, }: BottomBarProps) => react_jsx_runtime.JSX.Element;
54
+
55
+ interface BoxButtonProps {
56
+ label?: any;
57
+ onClick?: any;
58
+ main?: any;
59
+ extra?: any;
60
+ borderColor?: any;
61
+ }
62
+ declare const _default$m: React.MemoExoticComponent<(props: BoxButtonProps) => react_jsx_runtime.JSX.Element>;
63
+
64
+ interface IExtendedButton {
65
+ buttonType?: 'button' | 'submit';
66
+ className?: string;
67
+ color?: 'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning' | 'default' | 'noOutline' | undefined;
68
+ copy: string;
69
+ disabled?: boolean;
70
+ href?: string;
71
+ onClick?: () => void;
72
+ subcopy?: string;
73
+ tooltip?: string;
74
+ component?: React.ElementType;
75
+ type?: 'add' | 'apps' | 'childCare' | 'delete' | 'edit' | 'importExport' | 'notes' | 'print' | 'save' | 'upload' | 'refresh' | 'download' | 'publish';
76
+ variant?: 'contained' | 'outlined' | 'text';
77
+ copyColor?: string;
78
+ }
79
+ declare const _default$l: React.MemoExoticComponent<({ buttonType, color, disabled, href, tooltip, component, type, className, onClick, copy, subcopy, variant, copyColor, }: IExtendedButton) => react_jsx_runtime.JSX.Element>;
80
+
81
+ interface IFilledButton {
82
+ autoFocus?: boolean;
83
+ className?: string;
84
+ color?: 'default' | 'error' | 'info' | 'inherit' | 'primary' | 'secondary' | 'success' | 'warning';
85
+ copy: string;
86
+ isLoading?: boolean;
87
+ disabled?: boolean;
88
+ href?: string;
89
+ onClick?: () => void;
90
+ type?: 'button' | 'submit';
91
+ variant?: 'contained' | 'outlined' | 'text';
92
+ }
93
+ declare const _default$k: React.MemoExoticComponent<({ autoFocus, className, color, copy, disabled, href, isLoading, onClick, type, variant, }: IFilledButton) => react_jsx_runtime.JSX.Element>;
94
+
95
+ interface FilledButtonLgProps {
96
+ classes?: any;
97
+ disabled?: any;
98
+ variant?: string;
99
+ color?: string;
100
+ copy?: any;
101
+ handleClick?: any;
102
+ loading?: boolean;
103
+ loadingProps?: {
104
+ color?: 'primary' | 'secondary' | 'inherit';
105
+ size?: number;
106
+ style?: string;
107
+ };
108
+ }
109
+ declare const _default$j: React.MemoExoticComponent<({ classes, disabled, variant, color, copy, handleClick, loading, loadingProps, }: FilledButtonLgProps) => react_jsx_runtime.JSX.Element>;
110
+
111
+ interface ImageButtonProps {
112
+ src?: any;
113
+ onClick?: any;
114
+ value?: any;
115
+ }
116
+ declare const _default$i: React.MemoExoticComponent<(props: ImageButtonProps) => react_jsx_runtime.JSX.Element>;
117
+
118
+ interface SquareButtonProps {
119
+ children: any;
120
+ disabled?: any;
121
+ hasContentLeftSide?: any;
122
+ onClick: any;
123
+ type: any;
124
+ }
125
+ declare const SquareButton: ({ children, disabled, hasContentLeftSide, onClick, type, }: SquareButtonProps) => react_jsx_runtime.JSX.Element;
126
+
127
+ interface UploadButtonProps {
128
+ name?: string;
129
+ onChange?(...args: any[]): any;
130
+ onBlur?(...args: any[]): any;
131
+ }
132
+ declare const UploadButton: React.ForwardRefExoticComponent<UploadButtonProps & React.RefAttributes<HTMLElement>>;
133
+
134
+ interface OutlinedButtonProps {
135
+ className?: any;
136
+ color?: any;
137
+ copy: any;
138
+ disabled?: any;
139
+ href?: any;
140
+ isLoading?: any;
141
+ onClick?: any;
142
+ startIcon?: any;
143
+ style?: any;
144
+ subcopy?: any;
145
+ type?: any;
146
+ }
147
+ declare const _default$h: React.MemoExoticComponent<({ className, color, copy, disabled, href, isLoading, onClick, startIcon, style, subcopy, type, }: OutlinedButtonProps) => react_jsx_runtime.JSX.Element>;
148
+
149
+ interface AButtonProps {
150
+ classes?: any;
151
+ variant?: string;
152
+ color?: string;
153
+ copy?: any;
154
+ }
155
+ declare const _default$g: React.MemoExoticComponent<({ classes, variant, color, copy }: AButtonProps) => react_jsx_runtime.JSX.Element>;
156
+
157
+ interface IRoundButton {
158
+ active?: boolean;
159
+ children?: string;
160
+ className?: string;
161
+ disabled?: boolean;
162
+ focused?: boolean;
163
+ icon?: 'add' | 'apps' | 'arrowBack' | 'arrowForward' | 'avocado' | 'backspaceOutlined' | 'banana' | 'block' | 'bulk' | 'callSplit' | 'chevronRight' | 'chevronUp' | 'chevronDown' | 'close' | 'delete' | 'done' | 'edit' | 'email' | 'grape' | 'groupAdd' | 'history' | 'menu' | 'notes' | 'refresh' | 'remove' | 'search' | 'send' | 'strawberry' | 'thumbDown' | 'threeDots' | 'thumbUp' | 'undo' | 'play' | 'snail' | 'bus' | 'spoon' | 'fork' | 'car' | 'knife' | 'bicycle' | 'heart' | 'airplane' | 'threeDots';
164
+ iconColor?: 'inherit' | 'disabled' | 'primary' | 'secondary' | 'action' | 'error';
165
+ isContrast?: boolean;
166
+ isTableButton?: boolean;
167
+ noStrokes?: boolean;
168
+ onClick?: (event: any) => void;
169
+ size?: 'small' | 'medium' | 'large' | 'double';
170
+ tooltip?: string;
171
+ variant?: 'default' | 'defaultPrimary' | 'defaultError' | 'filled' | 'primary' | 'secondary';
172
+ testID?: string;
173
+ }
174
+ /**
175
+ * A Rounded button component that is abstracted from MUI Fab component.
176
+ * Can render an icon or a single character.
177
+ * https://v4.mui.com/api/fab/#fab-api.
178
+ */
179
+ declare const RoundButton: ({ active, children, className, disabled, focused, icon, iconColor, isContrast, isTableButton, noStrokes, onClick, size, tooltip, variant, testID, }: IRoundButton) => react_jsx_runtime.JSX.Element;
180
+
181
+ declare const _default$f: React.MemoExoticComponent<() => react_jsx_runtime.JSX.Element>;
182
+
183
+ interface ActionButtonProps {
184
+ app?: any;
185
+ }
186
+ declare function ActionButton(props: ActionButtonProps): react_jsx_runtime.JSX.Element;
187
+
188
+ interface ICompanyLogo {
189
+ size: 'small' | 'medium';
190
+ color: 'light' | 'dark';
191
+ imageLogoDarkSmall: string;
192
+ imageLogoLightSmall: string;
193
+ }
194
+ declare const CompanyLogo: ({ size, color, imageLogoDarkSmall, imageLogoLightSmall, }: ICompanyLogo) => react_jsx_runtime.JSX.Element;
195
+
196
+ interface ConfirmationDialogProps {
197
+ ctaText?: string;
198
+ hideCancel?: boolean;
199
+ isLoading?: boolean;
200
+ hideConfirm?: boolean;
201
+ closeModal: () => void;
202
+ content: string | string[] | React.JSX.Element;
203
+ cancelCopy?: string;
204
+ isOpen: boolean;
205
+ onConfirm?: () => void;
206
+ title: string;
207
+ disableContentPadding?: boolean;
208
+ }
209
+ declare const ConfirmationDialog: {
210
+ ({ ctaText, hideCancel, isLoading, hideConfirm, closeModal, content, cancelCopy, isOpen, onConfirm, title, disableContentPadding, }: ConfirmationDialogProps): react_jsx_runtime.JSX.Element;
211
+ defaultProps: {
212
+ ctaText: string;
213
+ hideCancel: boolean;
214
+ hideConfirm: boolean;
215
+ cancelCopy: string;
216
+ isLoading: boolean;
217
+ };
218
+ };
219
+
220
+ interface ControlledCheckboxProps {
221
+ name: string;
222
+ label: string;
223
+ id: string;
224
+ control: Control<any, any>;
225
+ className?: string;
226
+ tooltipDescription?: string;
227
+ 'data-testid'?: string;
228
+ color?: 'primary' | 'secondary' | 'default';
229
+ handleChange: (checked: boolean, field: ControllerRenderProps<any, string>) => void;
230
+ disabled?: boolean;
231
+ }
232
+ declare const ControlledCheckbox: React.FC<ControlledCheckboxProps>;
233
+
234
+ interface ControlledNumberInputProps {
235
+ /**
236
+ * control from react-hook-form
237
+ * */
238
+ control: Control<any>;
239
+ /**
240
+ * name in the form data
241
+ * */
242
+ name: string;
243
+ /**
244
+ * label name to be shown in the component
245
+ * */
246
+ label: string;
247
+ /**
248
+ * mininum number allowed
249
+ * */
250
+ min?: number;
251
+ /**
252
+ * maximum number allowed
253
+ * */
254
+ max?: number;
255
+ /**
256
+ * step to change the number
257
+ * */
258
+ step?: number;
259
+ /**
260
+ * optional error message
261
+ * */
262
+ error?: string;
263
+ /**
264
+ * should shrink the label name
265
+ * */
266
+ shrink?: boolean;
267
+ /**
268
+ * opcional className to customize the component
269
+ * */
270
+ className?: string;
271
+ }
272
+ declare const ControlledNumberInput: ({ name, control, label, min, max, step, error, shrink, className, }: ControlledNumberInputProps) => react_jsx_runtime.JSX.Element;
273
+
274
+ interface ControlledNumericFieldProps {
275
+ control: Control<any>;
276
+ label: string;
277
+ min?: number;
278
+ max?: number;
279
+ step?: number;
280
+ fullWidth?: boolean;
281
+ margin?: 'dense' | 'normal' | 'none';
282
+ helperText?: string;
283
+ variant?: 'standard' | 'outlined' | 'filled';
284
+ onChange?: (field: ControllerRenderProps<any, string>, value: number | string) => void;
285
+ onArrowClick?: (field: ControllerRenderProps<any, string>, value: number | string) => void;
286
+ onBlur?: (field: ControllerRenderProps<any, string>, value: number | string, fieldState: ControllerFieldState) => void;
287
+ className?: string;
288
+ fieldName: string;
289
+ 'data-testid'?: string;
290
+ }
291
+ declare const ControlledNumericField: React.FC<ControlledNumericFieldProps>;
292
+
293
+ interface ControlledSelectWithArrayProps {
294
+ /**
295
+ * control from react-hook-form
296
+ * */
297
+ control: Control<any>;
298
+ /**
299
+ * name in the form data
300
+ * */
301
+ name: string;
302
+ /**
303
+ * label name to be shown in the component
304
+ * */
305
+ label: string;
306
+ /**
307
+ * options to be rendered in the dropbown
308
+ * */
309
+ options?: (string | number)[];
310
+ /**
311
+ * optional error message
312
+ * */
313
+ error?: string;
314
+ /**
315
+ * optional onChange event
316
+ * */
317
+ onChange?: (value: any) => void;
318
+ /**
319
+ * opcional className to customize the component
320
+ * */
321
+ className?: string;
322
+ /**
323
+ * opcional function to revalidate the form when changing the dropdown value ( trigger function )
324
+ * */
325
+ revalidateFormFunction?: UseFormTrigger<any>;
326
+ }
327
+ declare const ControlledSelectWithArray: ({ name, control, label, options, error, onChange, className, revalidateFormFunction, }: ControlledSelectWithArrayProps) => react_jsx_runtime.JSX.Element;
328
+
329
+ interface ControlledSelectWithObjectProps {
330
+ /**
331
+ * control from react-hook-form
332
+ * */
333
+ control: Control<any>;
334
+ /**
335
+ * name in the form data
336
+ * */
337
+ name: string;
338
+ /**
339
+ * label name to be shown in the component
340
+ * */
341
+ label: string;
342
+ /**
343
+ * options to be rendered in the dropbown
344
+ * */
345
+ options?: {
346
+ value: string | number;
347
+ label: string;
348
+ }[];
349
+ /**
350
+ * optional error message
351
+ * */
352
+ error?: string;
353
+ /**
354
+ * optional onChange event
355
+ * */
356
+ onChange?: (value: any) => void;
357
+ /**
358
+ * opcional className to customize the component
359
+ * */
360
+ className?: string;
361
+ /**
362
+ * opcional boolean to disable the dropdown option (based on the options.value)
363
+ * */
364
+ listToDisableFromOptions?: Array<any>;
365
+ /**
366
+ * opcional function to revalidate the form when changing the dropdown value ( trigger function )
367
+ * */
368
+ revalidateFormFunction?: UseFormTrigger<any>;
369
+ }
370
+ declare const ControlledSelectWithObject: ({ name, control, label, options, error, onChange, className, listToDisableFromOptions, revalidateFormFunction, }: ControlledSelectWithObjectProps) => react_jsx_runtime.JSX.Element;
371
+
372
+ interface ControlledValidTextInputBaseProps {
373
+ label: string;
374
+ fieldName: string;
375
+ helperText?: string;
376
+ disabled?: boolean;
377
+ variant?: 'standard' | 'outlined' | 'filled';
378
+ className?: string;
379
+ maxLength?: number;
380
+ 'data-testid'?: string;
381
+ form: UseFormReturn<any>;
382
+ }
383
+ /** Ensure AT MOST ONE of 'updateCustomerData' or 'customHandleBlurValidationAndSubmit' can be provided. */
384
+ type ControlledValidTextInputDefaultProps = ControlledValidTextInputBaseProps & {
385
+ updateCustomerData?: UseMutateAsyncFunction<any, unknown, any, unknown>;
386
+ customHandleBlurValidationAndSubmit?: never;
387
+ };
388
+ type ControlledValidTextInputCustomProps = ControlledValidTextInputBaseProps & {
389
+ updateCustomerData?: never;
390
+ customHandleBlurValidationAndSubmit?: (controlledField: ControllerRenderProps<FieldValues, string>, isDirty: boolean) => void;
391
+ };
392
+ type ControlledValidTextInputProps = ControlledValidTextInputDefaultProps | ControlledValidTextInputCustomProps;
393
+ declare const ControlledValidTextInput: React.FC<ControlledValidTextInputProps>;
394
+
395
+ interface DataGridProps {
396
+ isLoading?: boolean;
397
+ children?: React.ReactElement;
398
+ height: string;
399
+ sortField?: string;
400
+ sortDir?: string;
401
+ columns: any;
402
+ rows: any;
403
+ handleCellEdition?: any;
404
+ }
405
+ declare const DataGrid: ({ columns, rows, handleCellEdition, sortField, sortDir, isLoading, height, children, }: DataGridProps) => react_jsx_runtime.JSX.Element;
406
+
407
+ interface DateProps {
408
+ datetime: string | Date;
409
+ format?: string;
410
+ }
411
+ declare const Date: React.FC<DateProps>;
412
+
413
+ interface IDeleteSubstitutionDialogContent {
414
+ closeDialog: () => void;
415
+ deleteSubstitution: () => void;
416
+ substitutionName: string;
417
+ }
418
+ declare const _default$e: React.MemoExoticComponent<({ closeDialog, substitutionName, deleteSubstitution, }: IDeleteSubstitutionDialogContent) => react_jsx_runtime.JSX.Element>;
419
+
420
+ interface IDeleteUserDialogContent {
421
+ closeDialog: () => void;
422
+ deleteUser: () => void;
423
+ userName: string;
424
+ }
425
+ declare const _default$d: React.MemoExoticComponent<({ closeDialog, userName, deleteUser, }: IDeleteUserDialogContent) => react_jsx_runtime.JSX.Element>;
426
+
427
+ interface FileCardProps {
428
+ document: string;
429
+ }
430
+ declare const FileCard: ({ document }: FileCardProps) => react_jsx_runtime.JSX.Element;
431
+
432
+ interface FilledLabelProps {
433
+ color?: string;
434
+ copy?: any;
435
+ }
436
+ declare const _default$c: React.MemoExoticComponent<(props: FilledLabelProps) => react_jsx_runtime.JSX.Element>;
437
+
438
+ type IFilterGroupSelector = {
439
+ name?: string;
440
+ categoryIdentification?: string;
441
+ optionsList?: {
442
+ category: string;
443
+ options: string[];
444
+ }[];
445
+ handleClickOnApply: () => void;
446
+ setSelectedOptions: React.Dispatch<React.SetStateAction<string[]>>;
447
+ };
448
+ declare const FilterGroupSelector: ({ name, optionsList, handleClickOnApply, setSelectedOptions, categoryIdentification, }: IFilterGroupSelector) => react_jsx_runtime.JSX.Element;
449
+
450
+ type IFilterSimpleSelector = {
451
+ name?: string;
452
+ options?: string[];
453
+ handleClickOnApply: () => void;
454
+ setSelectedOptions: React.Dispatch<React.SetStateAction<string[]>>;
455
+ };
456
+ declare const FilterSimpleSelector: ({ name, options, handleClickOnApply, setSelectedOptions, }: IFilterSimpleSelector) => react_jsx_runtime.JSX.Element;
457
+
458
+ interface FixedFooterProps {
459
+ children: React.ReactNode;
460
+ justifyContent?: string;
461
+ }
462
+ declare const _default$b: React.MemoExoticComponent<({ justifyContent, children }: FixedFooterProps) => react_jsx_runtime.JSX.Element>;
463
+
464
+ interface HeaderProps {
465
+ appName: any;
466
+ children?: any;
467
+ wrappedHeader?: any;
468
+ }
469
+ declare const Header: ({ appName, children, wrappedHeader, }: HeaderProps) => react_jsx_runtime.JSX.Element;
470
+
471
+ declare const icons: {
472
+ SvgSamsaraLogo: (props: any) => react_jsx_runtime.JSX.Element;
473
+ SvgIconHome: (props: any) => react_jsx_runtime.JSX.Element;
474
+ SvgIconNotification: (props: any) => react_jsx_runtime.JSX.Element;
475
+ SvgIconPhone: (props: any) => react_jsx_runtime.JSX.Element;
476
+ SvgIconAccount: (props: any) => react_jsx_runtime.JSX.Element;
477
+ SvgIconOrders: (props: any) => react_jsx_runtime.JSX.Element;
478
+ SvgIconPriceList: (props: any) => react_jsx_runtime.JSX.Element;
479
+ SvgIconSpecialPrice: (props: any) => react_jsx_runtime.JSX.Element;
480
+ SvgIconBuying: (props: any) => react_jsx_runtime.JSX.Element;
481
+ SvgIconContentManagement: (props: any) => react_jsx_runtime.JSX.Element;
482
+ SvgIconProducts: (props: any) => react_jsx_runtime.JSX.Element;
483
+ SvgIconStock: (props: any) => react_jsx_runtime.JSX.Element;
484
+ SvgIconSupplier: (props: any) => react_jsx_runtime.JSX.Element;
485
+ SvgIconSupplierPrices: (props: any) => react_jsx_runtime.JSX.Element;
486
+ SvgIconGoodsin: (props: any) => react_jsx_runtime.JSX.Element;
487
+ SvgIconVkc: (props: any) => react_jsx_runtime.JSX.Element;
488
+ SvgIconLocation: (props: any) => react_jsx_runtime.JSX.Element;
489
+ SvgIconScales: (props: any) => react_jsx_runtime.JSX.Element;
490
+ SvgIconQc: (props: any) => react_jsx_runtime.JSX.Element;
491
+ SvgIconRetail: (props: any) => react_jsx_runtime.JSX.Element;
492
+ SvgIconRuns: (props: any) => react_jsx_runtime.JSX.Element;
493
+ SvgIconAccounts: (props: any) => react_jsx_runtime.JSX.Element;
494
+ SvgIconReports: (props: any) => react_jsx_runtime.JSX.Element;
495
+ SvgIconSetting: (props: any) => react_jsx_runtime.JSX.Element;
496
+ SvgIconLogin: (props: any) => react_jsx_runtime.JSX.Element;
497
+ SvgBallsLogo: (props: any) => react_jsx_runtime.JSX.Element;
498
+ SvgIconAvocado: () => react_jsx_runtime.JSX.Element;
499
+ SvgIconBanana: () => react_jsx_runtime.JSX.Element;
500
+ SvgIconGrape: (props: any) => react_jsx_runtime.JSX.Element;
501
+ SvgIconStrawberry: () => react_jsx_runtime.JSX.Element;
502
+ SvgIconPromoCode: (props: any) => react_jsx_runtime.JSX.Element;
503
+ SvgIconOpsMetrics: (props: any) => react_jsx_runtime.JSX.Element;
504
+ SvgIconSearchCategories: (props: any) => react_jsx_runtime.JSX.Element;
505
+ SvgIconImport: (props: any) => react_jsx_runtime.JSX.Element;
506
+ SvgIconSnail: (props: any) => react_jsx_runtime.JSX.Element;
507
+ SvgEmptyGlassIcon: (props: any) => react_jsx_runtime.JSX.Element;
508
+ SvgIconUserManagement: () => react_jsx_runtime.JSX.Element;
509
+ };
510
+
511
+ interface ILeftDrawer {
512
+ open: boolean;
513
+ handleOpen: () => void;
514
+ handleClose: () => void;
515
+ onLogout: () => void;
516
+ featureSettings: {
517
+ enabled_features: string[];
518
+ enabled_ui_features: string[];
519
+ };
520
+ user: {
521
+ profile_picture: string;
522
+ first_name: string;
523
+ last_name: string;
524
+ username: string;
525
+ };
526
+ }
527
+ declare const _default$a: React.MemoExoticComponent<({ handleClose, handleOpen, onLogout, featureSettings, open, user, }: ILeftDrawer) => react_jsx_runtime.JSX.Element>;
528
+
529
+ interface VirtualizedListProps {
530
+ headers?: any;
531
+ items?: any;
532
+ renderItem?: any;
533
+ }
534
+ declare function VirtualizedList(props: VirtualizedListProps): react_jsx_runtime.JSX.Element;
535
+
536
+ interface ILoading {
537
+ isLoading: boolean;
538
+ }
539
+ declare const Loading: ({ isLoading }: ILoading) => react_jsx_runtime.JSX.Element;
540
+
541
+ interface ILocationsSectionInfo {
542
+ principalLocation: string;
543
+ secondaryLocation?: string[];
544
+ isPicking?: boolean;
545
+ isStock?: boolean;
546
+ }
547
+ declare const LocationsSectionInfo: ({ principalLocation, secondaryLocation, isPicking, isStock, }: ILocationsSectionInfo) => react_jsx_runtime.JSX.Element;
548
+
549
+ interface NotesProps {
550
+ initialNotes?: any;
551
+ isDisabled?: any;
552
+ isEditable?: any;
553
+ isLoading?: any;
554
+ maxLength?: any;
555
+ onBlur?: any;
556
+ onChange?: any;
557
+ onClearNotes?: any;
558
+ }
559
+ declare const Notes: ({ initialNotes, isDisabled, isEditable, isLoading, maxLength, onBlur, onChange, onClearNotes, }: NotesProps) => react_jsx_runtime.JSX.Element;
560
+
561
+ interface NumpadProps {
562
+ handleClick: any;
563
+ handleUndo: any;
564
+ }
565
+ declare const Numpad: ({ handleClick, handleUndo }: NumpadProps) => react_jsx_runtime.JSX.Element;
566
+
567
+ interface NumpadInputProps {
568
+ handleNextClick?(...args: any[]): any;
569
+ inputLabel?: string;
570
+ children?: any;
571
+ }
572
+ declare const _default$9: React.MemoExoticComponent<(props: NumpadInputProps) => react_jsx_runtime.JSX.Element>;
573
+
574
+ interface NumpadPlusProps {
575
+ handleClick: any;
576
+ handleUndo: any;
577
+ }
578
+ declare const NumpadPlus: ({ handleClick, handleUndo }: NumpadPlusProps) => react_jsx_runtime.JSX.Element;
579
+
580
+ interface PaginationForTableProps {
581
+ appliedFilters?: any;
582
+ className?: any;
583
+ page?: any;
584
+ pagination?: any;
585
+ position?: any;
586
+ style?: any;
587
+ updateFilters: any;
588
+ }
589
+ declare const PaginationForTable: ({ appliedFilters, className, page, pagination, position, style, updateFilters, }: PaginationForTableProps) => react_jsx_runtime.JSX.Element;
590
+
591
+ interface PhoneInputProps {
592
+ value?: string | null;
593
+ onChange?: (phone: string | null) => void;
594
+ placeholder?: string;
595
+ className?: string;
596
+ label?: string;
597
+ error?: boolean;
598
+ }
599
+ declare const PhoneInput: React.FC<PhoneInputProps>;
600
+
601
+ interface PlusMinusInputProps {
602
+ allowNegative?: any;
603
+ buttonsPosition?: any;
604
+ disabled?: any;
605
+ initialValue?: any;
606
+ inputSize?: any;
607
+ label: any;
608
+ updateInputValue: any;
609
+ }
610
+ declare const PlusMinusInput: ({ allowNegative, buttonsPosition, disabled, initialValue, inputSize, label, updateInputValue, }: PlusMinusInputProps) => react_jsx_runtime.JSX.Element;
611
+
612
+ interface PBustProps {
613
+ buttonData?: any;
614
+ classes?: any;
615
+ locationData?: any;
616
+ locationId?: any;
617
+ primaryData?: any;
618
+ product?: any;
619
+ secondaryData?: any;
620
+ size?: any;
621
+ LocationHistoryDialog: ComponentType<any>;
622
+ }
623
+ declare const ProductBust: ({ classes, size, product, locationData, primaryData, secondaryData, buttonData, locationId, LocationHistoryDialog, }: PBustProps) => react_jsx_runtime.JSX.Element;
624
+
625
+ interface PImageProps {
626
+ classes?: any;
627
+ image?: any;
628
+ size?: any;
629
+ status?: any;
630
+ }
631
+ declare const ProductImage: ({ classes, image, size, status, }: PImageProps) => react_jsx_runtime.JSX.Element;
632
+
633
+ interface IRenderAvatar {
634
+ active?: boolean;
635
+ }
636
+ declare const RenderAvatar: ({ active }: IRenderAvatar) => react_jsx_runtime.JSX.Element;
637
+
638
+ interface IRenderContentList {
639
+ items: string[];
640
+ warningItems?: string[] | null;
641
+ warningMessage?: string;
642
+ activeSection: string;
643
+ }
644
+ declare const RenderContentList: ({ items, activeSection, warningItems, warningMessage, }: IRenderContentList) => react_jsx_runtime.JSX.Element;
645
+
646
+ type ProductSize = 'small' | 'medium' | 'large';
647
+ interface Column {
648
+ title: string;
649
+ value: string | React.ReactNode;
650
+ }
651
+ interface Product {
652
+ image: string;
653
+ name: string;
654
+ status?: string;
655
+ }
656
+ interface RowProductCardProps {
657
+ /**
658
+ * Possible actions or buttons that the card can have
659
+ */
660
+ children?: React.ReactNode;
661
+ /**
662
+ * Details about the product
663
+ */
664
+ columns?: Column[];
665
+ /**
666
+ * Where is the product location
667
+ */
668
+ location?: string;
669
+ /**
670
+ * Product information
671
+ */
672
+ product: Product;
673
+ /**
674
+ * Size of the product image
675
+ */
676
+ size?: ProductSize;
677
+ }
678
+ /**
679
+ * A card on row format that can display informations about a product
680
+ * It can be very detailed or lean
681
+ */
682
+ declare const RowProductCard: ({ children, columns, location, product, size, }: RowProductCardProps) => react_jsx_runtime.JSX.Element;
683
+
684
+ interface ScrollableDialogProps {
685
+ body: any;
686
+ footer?: any;
687
+ header?: any;
688
+ isOpen: any;
689
+ title: any;
690
+ }
691
+ declare const ScrollableDialog: ({ body, footer, header, isOpen, title, }: ScrollableDialogProps) => react_jsx_runtime.JSX.Element;
692
+
693
+ interface ISearchAndFilterHeaderProps {
694
+ appName: string;
695
+ enterPressedInSearch?: () => void;
696
+ extraButton?: React.ReactNode;
697
+ filtersComponent?: React.ReactNode;
698
+ appliedFiltersComponent?: React.ReactNode;
699
+ filterClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
700
+ showFilters: boolean;
701
+ updateFilters?: (filters: any) => void;
702
+ searchValue?: string;
703
+ }
704
+ declare const SearchAndFilterHeader: ({ appName, enterPressedInSearch, extraButton, filterClick, showFilters, updateFilters, filtersComponent, appliedFiltersComponent, searchValue, }: ISearchAndFilterHeaderProps) => react_jsx_runtime.JSX.Element;
705
+
706
+ interface SearchAndFilterHeaderForTableProps {
707
+ appName: string;
708
+ button?: React.ReactNode;
709
+ copy?: string;
710
+ enterPressedInSearch?(...args: any[]): any;
711
+ isOpen?: boolean;
712
+ onFilterButtonClick?(...args: any[]): any;
713
+ searchedValue?: string;
714
+ showFilterButton?: boolean;
715
+ updateSearch?(...args: any[]): any;
716
+ }
717
+ declare const _default$8: React.MemoExoticComponent<(props: SearchAndFilterHeaderForTableProps) => react_jsx_runtime.JSX.Element>;
718
+
719
+ interface ISearchWithFiltersProps {
720
+ enterPressedInSearch?: () => void;
721
+ filterClick?: React.MouseEventHandler<HTMLButtonElement>;
722
+ handleClick?: () => void;
723
+ searchValue?: string;
724
+ showFilters: boolean;
725
+ updateFilters?: (filters: {
726
+ search: string;
727
+ }) => void;
728
+ disabled?: boolean;
729
+ }
730
+ declare const _default$7: React.MemoExoticComponent<({ enterPressedInSearch, filterClick, handleClick, searchValue, showFilters, updateFilters, disabled, }: ISearchWithFiltersProps) => react_jsx_runtime.JSX.Element>;
731
+
732
+ interface SearchWithFiltersForTableProps {
733
+ onFilterButtonClick?(...args: any[]): any;
734
+ isOpen?: boolean;
735
+ updateSearch?(...args: any[]): any;
736
+ enterPressedInSearch?(...args: any[]): any;
737
+ showFilterButton?: boolean;
738
+ searchedValue?: string;
739
+ }
740
+ declare const _default$6: React.MemoExoticComponent<(props: SearchWithFiltersForTableProps) => react_jsx_runtime.JSX.Element>;
741
+
742
+ interface ISectionName {
743
+ name: string;
744
+ tooltipDescription?: string;
745
+ sectionId?: string;
746
+ buttonText?: string;
747
+ buttonType?: 'add' | 'apps' | 'childCare' | 'delete' | 'edit' | 'importExport' | 'notes' | 'print' | 'save' | 'upload' | 'refresh' | 'download' | 'publish';
748
+ handleButtonClick?: () => void;
749
+ buttonDisabled?: boolean;
750
+ openHistoryLog?: () => void;
751
+ }
752
+ declare const SectionName: ({ name, tooltipDescription, sectionId, handleButtonClick, buttonText, buttonType, buttonDisabled, openHistoryLog, }: ISectionName) => react_jsx_runtime.JSX.Element;
753
+
754
+ interface Option {
755
+ value?: string | number;
756
+ label?: string;
757
+ disabled?: boolean;
758
+ }
759
+ interface SmartSelectProps {
760
+ /**
761
+ * The current selected value of the select input. It can be a string, number, or null.
762
+ * If null, it indicates that no value is selected.
763
+ */
764
+ value?: string | number | null;
765
+ /**
766
+ * The default option that is displayed when no value is selected.
767
+ * This is an object with a value and a label. If null, no default option is shown.
768
+ */
769
+ defaultOption?: Option;
770
+ /**
771
+ * An array of available options to display in the select dropdown.
772
+ * Each option is an object with `value` and `label` properties.
773
+ */
774
+ options?: Option[];
775
+ /**
776
+ * A function to refetch data if there are no options available in the dropdown.
777
+ * It can be called when the dropdown is opened and the list of options is empty.
778
+ */
779
+ refetch?: () => void;
780
+ /**
781
+ * A boolean indicating whether the component is fetching data.
782
+ * If true, the loading spinner will be shown in the dropdown.
783
+ */
784
+ isFetching?: boolean;
785
+ /**
786
+ * Callback function called when an option is selected from the dropdown.
787
+ * The selected option is passed as an argument to this function.
788
+ */
789
+ onChange: (selectedOption: Option) => void;
790
+ /**
791
+ * A label for the select input. It will be displayed above the select dropdown.
792
+ */
793
+ inputLabel?: string;
794
+ /**
795
+ * Style variant to choose.
796
+ */
797
+ variant?: 'standard' | 'outlined' | 'filled';
798
+ /**
799
+ * A boolean indicating validation error.
800
+ * It allows use of error styling when validation is required.
801
+ */
802
+ error?: boolean;
803
+ /**
804
+ * Helper text that is displayed below the select input.
805
+ * It can be used to provide additional information or instructions to the user.
806
+ */
807
+ helperText?: string;
808
+ /**
809
+ * A boolean indicating whether the select input is disabled.
810
+ * If true, the input will be disabled, and users will not be able to interact with it.
811
+ */
812
+ disabled?: boolean;
813
+ /**
814
+ * A boolean indicating whether the select should include a blank option.
815
+ */
816
+ allowBlankOption?: boolean;
817
+ /**
818
+ * The `data-testid` attribute used for testing purposes.
819
+ * It is helpful to uniquely identify the component in automated tests.
820
+ */
821
+ 'data-testid'?: string;
822
+ /**
823
+ * A message to display when there are no options available in the dropdown.
824
+ * It will be shown when `isFetching` is false and `options` is empty.
825
+ * The default message is 'No options'.
826
+ */
827
+ emptyMessage?: string;
828
+ /**
829
+ * Manage the MenuProps
830
+ */
831
+ menuProps?: Partial<MenuProps>;
832
+ }
833
+ declare const SmartSelect: React.ForwardRefExoticComponent<SmartSelectProps & React.RefAttributes<unknown>>;
834
+
835
+ interface SquareLabelProps {
836
+ color?: string;
837
+ copy?: any;
838
+ }
839
+ declare const _default$5: React.MemoExoticComponent<({ color, copy }: SquareLabelProps) => react_jsx_runtime.JSX.Element>;
840
+
841
+ interface LSwitchProps {
842
+ classes?: any;
843
+ checked?: any;
844
+ labelOn?: any;
845
+ labelOff?: any;
846
+ handleChange?: any;
847
+ disabled: any;
848
+ }
849
+ declare const _default$4: React.MemoExoticComponent<({ checked, labelOn, labelOff, handleChange, classes, disabled, }: LSwitchProps) => react_jsx_runtime.JSX.Element>;
850
+
851
+ interface SmartTableHeaderProps {
852
+ order?: string;
853
+ orderBy?: string;
854
+ onRequestSort?(...args: any[]): any;
855
+ headCells?: any;
856
+ }
857
+ declare const _default$3: React.MemoExoticComponent<(props: SmartTableHeaderProps) => react_jsx_runtime.JSX.Element>;
858
+
859
+ interface TableProps {
860
+ headCells?: {
861
+ id?: string;
862
+ label?: string;
863
+ numeric?: boolean;
864
+ disablePadding?: boolean;
865
+ }[];
866
+ data?: {}[];
867
+ RenderItem?: React.ComponentType<any> | null;
868
+ isLoading?: boolean;
869
+ updateSort?(...args: any[]): any;
870
+ page?: number;
871
+ rowsPerPage?: number;
872
+ onRowClick?(...args: any[]): any;
873
+ serverRendered?: boolean;
874
+ appliedFilters?: any;
875
+ doNotCalculateRows?: any;
876
+ }
877
+ declare const Table: ({ appliedFilters, data, doNotCalculateRows, headCells, isLoading, onRowClick, page, RenderItem, rowsPerPage: defaultRowsPerPage, serverRendered, updateSort, }: TableProps) => react_jsx_runtime.JSX.Element;
878
+
879
+ interface IHeadCell {
880
+ id: string;
881
+ numeric?: boolean;
882
+ disablePadding?: boolean;
883
+ label: string;
884
+ }
885
+ interface ITableDesktopProps {
886
+ appliedFilters?: any;
887
+ children?: React.ReactNode;
888
+ data: any[];
889
+ headCells: IHeadCell[];
890
+ height?: number | string;
891
+ isLoading?: boolean;
892
+ RenderItem: ComponentType<any>;
893
+ rowsPerPage: number;
894
+ updateSort: (sortField: string, sortDir: 'asc' | 'desc') => void;
895
+ showClearFilterButton?: boolean;
896
+ handleClickOnClearFiltersButton?: () => void;
897
+ deleteItem?: (id: string) => void;
898
+ keyField: string;
899
+ }
900
+ declare const TableDesktop: ({ appliedFilters, children, data, headCells, height, isLoading, RenderItem, rowsPerPage, updateSort, showClearFilterButton, handleClickOnClearFiltersButton, deleteItem, keyField, }: ITableDesktopProps) => react_jsx_runtime.JSX.Element;
901
+
902
+ interface ITableEmptyResult {
903
+ showClearFilterButton?: boolean;
904
+ handleClickOnClearFiltersButton?: () => void;
905
+ }
906
+ declare const TableEmptyResult: ({ showClearFilterButton, handleClickOnClearFiltersButton, }: ITableEmptyResult) => react_jsx_runtime.JSX.Element;
907
+
908
+ interface TableLoadingProps {
909
+ rowsPerPage?: number;
910
+ rowHeight?: number;
911
+ }
912
+ declare const TableLoading: ({ rowsPerPage, rowHeight }: TableLoadingProps) => react_jsx_runtime.JSX.Element;
913
+
914
+ interface TableHeaderProps {
915
+ cells: any;
916
+ onSort?: any;
917
+ }
918
+ declare const _default$2: React.MemoExoticComponent<({ cells, onSort }: TableHeaderProps) => react_jsx_runtime.JSX.Element>;
919
+
920
+ interface TextDividerProps {
921
+ title: string;
922
+ icon?: React.ElementType;
923
+ onClick?: () => void;
924
+ color?: string;
925
+ iconPosition?: 'left' | 'right';
926
+ titleWeight?: '400' | '500' | '600' | '700' | '800' | '900';
927
+ }
928
+ declare const TextDivider: React.FC<TextDividerProps>;
929
+
930
+ type ThemedDateRangePickerProps = DateRangePickerShape & {
931
+ className?: string;
932
+ };
933
+ /**
934
+ * DateRangePicker component with dark mode theming support.
935
+ * Props are forwarded directly to the underlying DateRangePicker.
936
+ */
937
+ declare const ThemedDateRangePicker: ({ className, ...props }: ThemedDateRangePickerProps) => react_jsx_runtime.JSX.Element;
938
+
939
+ type Props = {
940
+ imageLogoDarkSmall: string;
941
+ imageLogoLightSmall: string;
942
+ handleOpen: () => void;
943
+ LeftDrawer: ReactNode;
944
+ };
945
+ declare const _default$1: React.MemoExoticComponent<({ imageLogoDarkSmall, imageLogoLightSmall, handleOpen, LeftDrawer, }: Props) => react_jsx_runtime.JSX.Element>;
946
+
947
+ type IToastMessage = {
948
+ toastType: 'success' | 'info' | 'warning' | 'error';
949
+ toastMessage: string;
950
+ open: boolean;
951
+ onClose: () => void;
952
+ };
953
+ /**
954
+ *@param toastType 'success' | 'info' | 'warning' | 'error';.
955
+ *@param toastMessage Value to be displayed on screen;.
956
+ *@param open Boolean to open the toast;.
957
+ *@param updateToast Reducer function to update the reducer value
958
+ */
959
+ declare const ToastMessage: ({ toastType, toastMessage, open, onClose, }: IToastMessage) => react_jsx_runtime.JSX.Element;
960
+
961
+ interface ITwoButtonDialogProps {
962
+ confirmButton: () => void;
963
+ cancelButton?: () => void;
964
+ dialogLoading?: boolean;
965
+ title: string;
966
+ subtitle1?: string | React.ReactNode;
967
+ subtitle2?: string | React.ReactNode;
968
+ open: boolean;
969
+ setOpen: (open: boolean) => void;
970
+ confirmLabel?: string;
971
+ cancelLabel?: string;
972
+ }
973
+ declare const TwoButtonDialog: FC<ITwoButtonDialogProps>;
974
+
975
+ type UserBustProps = {
976
+ user: {
977
+ profile_picture: string;
978
+ first_name: string;
979
+ last_name: string;
980
+ username: string;
981
+ };
982
+ avatarProps: {
983
+ height: number;
984
+ width: number;
985
+ };
986
+ typographyProps: {
987
+ name?: {
988
+ variant: ComponentProps<typeof Typography>['variant'];
989
+ component: string;
990
+ };
991
+ username?: {
992
+ variant: ComponentProps<typeof Typography>['variant'];
993
+ component: string;
994
+ };
995
+ };
996
+ };
997
+ declare const _default: React.MemoExoticComponent<({ user, avatarProps, typographyProps }: UserBustProps) => react_jsx_runtime.JSX.Element>;
998
+
999
+ export { AlertDialog, AlertDialogFullScreen, AppLabel, BackHeader, BottomBar, _default$m as BoxButton, CompanyLogo, ConfirmationDialog, ControlledCheckbox, ControlledNumberInput, ControlledNumericField, ControlledSelectWithArray, ControlledSelectWithObject, ControlledValidTextInput, DataGrid, Date, _default$e as DeleteSubstitutionDialogContent, _default$d as DeleteUserDialogContent, _default$l as ExtendedButton, FileCard, _default$k as FilledButton, _default$j as FilledButtonLg, _default$c as FilledLabel, FilterGroupSelector, FilterSimpleSelector, _default$b as FixedFooter, Header, _default$i as ImageButton, _default$a as LeftDrawer, VirtualizedList as List, Loading, LocationsSectionInfo, Notes, Numpad, _default$9 as NumpadInput, NumpadPlus, _default$h as OutlinedButton, _default$g as OutlinedButtonLg, PaginationForTable as Pagination, PhoneInput, _default$f as Pin, ActionButton as PinnedApp, PlusMinusInput, ProductBust, ProductImage, RenderAvatar, RenderContentList, RoundButton, RowProductCard, ScrollableDialog, SearchAndFilterHeader, _default$8 as SearchAndFilterHeaderForTable, _default$7 as SearchWithFilters, _default$6 as SearchWithFiltersForTable, SectionName, SmartSelect, _default$3 as SmartTableHeader, SquareButton, _default$5 as SquareLabel, _default$4 as Switch, Table, TableDesktop, TableEmptyResult, _default$2 as TableHeader, TableLoading, TextDivider, _default$1 as TheToolbar, ThemedDateRangePicker, ToastMessage, TwoButtonDialog, UploadButton, _default as UserBust, icons };