@natoora-libs/core 0.2.24-dev-package-upgrades-1 → 0.2.24-dev-doug-1

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.
Files changed (41) hide show
  1. package/dist/TableDesktop-BQk0gStR.d.cts +136 -0
  2. package/dist/TableDesktop-BQk0gStR.d.ts +136 -0
  3. package/dist/chunk-5WRI5ZAA.js +31 -0
  4. package/dist/chunk-5WRI5ZAA.js.map +1 -0
  5. package/dist/chunk-CKW5LT7K.js +210 -0
  6. package/dist/chunk-CKW5LT7K.js.map +1 -0
  7. package/dist/chunk-IXEF6LYV.js +33 -0
  8. package/dist/chunk-IXEF6LYV.js.map +1 -0
  9. package/dist/chunk-N3IUZVB7.js +21 -0
  10. package/dist/chunk-N3IUZVB7.js.map +1 -0
  11. package/dist/components/index.cjs +10812 -0
  12. package/dist/components/index.cjs.map +1 -0
  13. package/dist/components/index.d.cts +1198 -0
  14. package/dist/components/index.d.ts +1198 -0
  15. package/dist/components/index.js +10652 -0
  16. package/dist/components/index.js.map +1 -0
  17. package/dist/hooks/index.cjs +58 -0
  18. package/dist/hooks/index.cjs.map +1 -0
  19. package/dist/hooks/index.d.cts +13 -0
  20. package/dist/hooks/index.d.ts +13 -0
  21. package/dist/hooks/index.js +8 -0
  22. package/dist/hooks/index.js.map +1 -0
  23. package/dist/index.cjs +26 -0
  24. package/dist/index.cjs.map +1 -0
  25. package/dist/index.d.cts +3 -0
  26. package/dist/index.d.ts +3 -0
  27. package/dist/index.js +8 -0
  28. package/dist/index.js.map +1 -0
  29. package/dist/providers/index.cjs +386 -0
  30. package/dist/providers/index.cjs.map +1 -0
  31. package/dist/providers/index.d.cts +37 -0
  32. package/dist/providers/index.d.ts +37 -0
  33. package/dist/providers/index.js +154 -0
  34. package/dist/providers/index.js.map +1 -0
  35. package/dist/utils/index.cjs +47 -0
  36. package/dist/utils/index.cjs.map +1 -0
  37. package/dist/utils/index.d.cts +12 -0
  38. package/dist/utils/index.d.ts +12 -0
  39. package/dist/utils/index.js +10 -0
  40. package/dist/utils/index.js.map +1 -0
  41. package/package.json +4 -2
@@ -0,0 +1,1198 @@
1
+ import * as React from 'react';
2
+ import React__default, { MouseEvent, CSSProperties, ReactNode, FC, ReactElement, ComponentType, ChangeEvent, ComponentProps, SVGProps } from 'react';
3
+ import * as react_jsx_runtime from 'react/jsx-runtime';
4
+ import { UseFormReturn, Control, ControllerRenderProps, ControllerFieldState, UseFormTrigger, FieldValues, Path } from 'react-hook-form';
5
+ import { H as HeadCell, a as HeaderFilters, b as HeaderFilterOptions, c as HeaderFilterObject, T as TableDesktopProps, O as Order, R as RowId } from '../TableDesktop-BQk0gStR.js';
6
+ export { B as BulkChanges, d as BulkChangesDialogProps, E as EditableCellType, e as ExportCsvDialogProps, f as TableColumnConfigurationMenuProps, g as TableDesktop, h as TableDesktopFooter, i as TableDesktopFooterProps, j as TableDesktopToolbar, k as TableDesktopToolbarProps, U as UpdateEditableCellParams } from '../TableDesktop-BQk0gStR.js';
7
+ import { UseMutateAsyncFunction } from 'react-query';
8
+ import { BoxProps, SxProps, Theme, SelectProps, MenuProps, Typography, AutocompleteProps, TextFieldProps } from '@mui/material';
9
+ import { DateRangePickerShape } from 'react-dates';
10
+
11
+ type ActiveFiltersIconButtonProps = {
12
+ label?: string;
13
+ className?: string;
14
+ enableRipple?: boolean;
15
+ numActiveFilters: number;
16
+ handleClick: (event: MouseEvent<HTMLElement>) => void;
17
+ };
18
+ declare const ActiveFiltersIconButton: React.MemoExoticComponent<({ label, className, enableRipple, numActiveFilters, handleClick, }: ActiveFiltersIconButtonProps) => react_jsx_runtime.JSX.Element>;
19
+
20
+ type AddressOption = {
21
+ label: string;
22
+ placeId: string;
23
+ };
24
+ type ProcessedAddress = {
25
+ line1?: string;
26
+ line2?: string;
27
+ city?: string;
28
+ county?: string;
29
+ state?: AddressState | null;
30
+ country?: {
31
+ code: string;
32
+ name: string;
33
+ };
34
+ postcode?: string;
35
+ };
36
+ type GoogleAddressComponent = {
37
+ types: string[];
38
+ long_name: string;
39
+ short_name: string;
40
+ };
41
+ type GooglePlacesRawData = {
42
+ status: string;
43
+ result: {
44
+ address_components: GoogleAddressComponent[];
45
+ };
46
+ };
47
+ type GooglePlacesAddressAutocompleteProps = {
48
+ apiKey: string;
49
+ googlePlacesRawData?: GooglePlacesRawData;
50
+ isGooglePlacesRawDataFetching?: boolean;
51
+ addressOption: AddressOption | null;
52
+ onChangeAddressOption: (newAddressOption: AddressOption | null) => void;
53
+ onAddressSelected?: (processedAddress: ProcessedAddress) => void;
54
+ onClearAddressOption?: () => void;
55
+ containerStyles?: CSSProperties;
56
+ };
57
+ declare const GooglePlacesAddressAutocomplete: ({ apiKey, googlePlacesRawData, isGooglePlacesRawDataFetching, addressOption, onChangeAddressOption, onAddressSelected, onClearAddressOption, containerStyles, }: GooglePlacesAddressAutocompleteProps) => react_jsx_runtime.JSX.Element;
58
+
59
+ type AddressCountry = {
60
+ code: string;
61
+ name: string;
62
+ };
63
+ type AddressState = {
64
+ id: number;
65
+ name: string;
66
+ abbreviation?: string | null;
67
+ country?: string | null;
68
+ };
69
+ type BaseAddressFormFields = {
70
+ name: string;
71
+ line1: string;
72
+ line2?: string | null;
73
+ primary_phone_number?: string | null;
74
+ city: string;
75
+ county?: string | null;
76
+ postcode: string;
77
+ country: AddressCountry;
78
+ state?: AddressState | null;
79
+ };
80
+ type AddressFormFieldsProps = {
81
+ form: UseFormReturn<BaseAddressFormFields>;
82
+ countriesSelectProps: {
83
+ countries: AddressCountry[];
84
+ isCountriesFetching: boolean;
85
+ refetchCountries: () => void;
86
+ };
87
+ statesSelectProps: {
88
+ addressStates: AddressState[];
89
+ isAddressStatesFetching: boolean;
90
+ };
91
+ googlePlacesAutocompleteProps?: GooglePlacesAddressAutocompleteProps;
92
+ };
93
+ declare const AddressFormFields: ({ form, countriesSelectProps: { countries, isCountriesFetching, refetchCountries }, statesSelectProps: { addressStates, isAddressStatesFetching }, googlePlacesAutocompleteProps, }: AddressFormFieldsProps) => react_jsx_runtime.JSX.Element;
94
+
95
+ interface AlertDialogProps {
96
+ open: boolean;
97
+ alertTitle?: string;
98
+ description?: string;
99
+ maxWidth?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
100
+ fullWidth?: boolean;
101
+ content?: ReactNode;
102
+ fullScreen?: boolean;
103
+ handleAlertAccept?: () => void;
104
+ handleAlertReject?: () => void;
105
+ rejectCopy?: string;
106
+ acceptCopy?: string;
107
+ disabledContentPadding?: boolean;
108
+ disableEnforceFocus?: boolean;
109
+ disableRestoreFocus?: boolean;
110
+ }
111
+ declare const AlertDialog: React.FC<AlertDialogProps>;
112
+
113
+ interface AlertDialogFullScreenProps {
114
+ acceptCopy?: any;
115
+ content?: any;
116
+ fullScreen?: any;
117
+ handleAlertAccept?: any;
118
+ handleAlertReject?: any;
119
+ open?: any;
120
+ rejectCopy?: any;
121
+ }
122
+ declare const AlertDialogFullScreen: ({ handleAlertAccept, handleAlertReject, fullScreen, open, rejectCopy, acceptCopy, content, }: AlertDialogFullScreenProps) => react_jsx_runtime.JSX.Element;
123
+
124
+ interface IAppLabel {
125
+ appName: string;
126
+ }
127
+ declare const AppLabel: ({ appName }: IAppLabel) => react_jsx_runtime.JSX.Element;
128
+
129
+ type AppliedTableFiltersDisplayProps = {
130
+ headCells: HeadCell[];
131
+ headerFilters: HeaderFilters;
132
+ hasAnyFiltersApplied: boolean;
133
+ onOpenClearFiltersDialog: () => void;
134
+ };
135
+ declare const AppliedTableFiltersDisplay: FC<AppliedTableFiltersDisplayProps>;
136
+
137
+ type AutocompleteFilterMenuContentProps = {
138
+ columnId: string;
139
+ labelFieldName: string;
140
+ selectedFilterOptions: HeaderFilterOptions;
141
+ isLoading?: boolean;
142
+ maxWidth?: number;
143
+ maxHeight?: number;
144
+ onFilterOptionChange: (option: string | HeaderFilterObject) => void;
145
+ onApplyFiltersClick: (shouldSave: boolean) => void;
146
+ filterOptions: HeadCell['filterOptions'];
147
+ onAutocompleteSearch: HeadCell['onAutocompleteSearch'];
148
+ shouldShowCheckOnFilter?: TableDesktopProps['shouldShowCheckOnFilter'];
149
+ };
150
+ declare const AutocompleteFilterMenuContent: FC<AutocompleteFilterMenuContentProps>;
151
+
152
+ interface BackHeaderProps {
153
+ appName: string;
154
+ onGoBackClick?: () => void;
155
+ }
156
+ declare const BackHeader: React.FC<BackHeaderProps>;
157
+
158
+ interface BottomBarProps {
159
+ className?: string;
160
+ children?: React.ReactNode;
161
+ isLoading?: boolean;
162
+ onRefreshClick?: (() => void) | null;
163
+ }
164
+ declare const BottomBar: ({ className, children, isLoading, onRefreshClick, }: BottomBarProps) => react_jsx_runtime.JSX.Element;
165
+
166
+ interface BoxButtonProps {
167
+ label?: any;
168
+ onClick?: any;
169
+ main?: any;
170
+ extra?: any;
171
+ borderColor?: any;
172
+ }
173
+ declare const _default$k: React.MemoExoticComponent<(props: BoxButtonProps) => react_jsx_runtime.JSX.Element>;
174
+
175
+ interface IExtendedButton {
176
+ buttonType?: 'button' | 'submit';
177
+ className?: string;
178
+ color?: 'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning' | 'default' | 'noOutline' | undefined;
179
+ copy: string;
180
+ disabled?: boolean;
181
+ href?: string;
182
+ onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
183
+ subcopy?: string;
184
+ tooltip?: string;
185
+ component?: React.ElementType;
186
+ type?: 'add' | 'apps' | 'childCare' | 'delete' | 'edit' | 'importExport' | 'notes' | 'print' | 'save' | 'upload' | 'refresh' | 'download' | 'publish' | 'compare';
187
+ variant?: 'contained' | 'outlined' | 'text';
188
+ copyColor?: string;
189
+ }
190
+ declare const _default$j: React.MemoExoticComponent<({ buttonType, color, disabled, href, tooltip, component, type, className, onClick, copy, subcopy, variant, copyColor, }: IExtendedButton) => react_jsx_runtime.JSX.Element>;
191
+
192
+ interface IFilledButton {
193
+ autoFocus?: boolean;
194
+ className?: string;
195
+ color?: 'default' | 'error' | 'info' | 'inherit' | 'primary' | 'secondary' | 'success' | 'warning';
196
+ copy: string;
197
+ isLoading?: boolean;
198
+ disabled?: boolean;
199
+ href?: string;
200
+ onClick?: (e: React__default.MouseEvent<HTMLButtonElement>) => void;
201
+ type?: 'button' | 'submit';
202
+ variant?: 'contained' | 'outlined' | 'text';
203
+ }
204
+ declare const _default$i: React__default.MemoExoticComponent<({ autoFocus, className, color, copy, disabled, href, isLoading, onClick, type, variant, }: IFilledButton) => react_jsx_runtime.JSX.Element>;
205
+
206
+ interface FilledButtonLgProps {
207
+ classes?: any;
208
+ disabled?: any;
209
+ variant?: string;
210
+ color?: string;
211
+ copy?: any;
212
+ handleClick?: any;
213
+ loading?: boolean;
214
+ loadingProps?: {
215
+ color?: 'primary' | 'secondary' | 'inherit';
216
+ size?: number;
217
+ style?: string;
218
+ };
219
+ }
220
+ declare const _default$h: React.MemoExoticComponent<({ classes, disabled, variant, color, copy, handleClick, loading, loadingProps, }: FilledButtonLgProps) => react_jsx_runtime.JSX.Element>;
221
+
222
+ interface ImageButtonProps {
223
+ src?: any;
224
+ onClick?: any;
225
+ value?: any;
226
+ }
227
+ declare const _default$g: React.MemoExoticComponent<(props: ImageButtonProps) => react_jsx_runtime.JSX.Element>;
228
+
229
+ interface SquareButtonProps {
230
+ children: any;
231
+ disabled?: any;
232
+ hasContentLeftSide?: any;
233
+ onClick: any;
234
+ type: any;
235
+ }
236
+ declare const SquareButton: ({ children, disabled, hasContentLeftSide, onClick, type, }: SquareButtonProps) => react_jsx_runtime.JSX.Element;
237
+
238
+ interface UploadButtonProps {
239
+ name?: string;
240
+ onChange?(...args: any[]): any;
241
+ onBlur?(...args: any[]): any;
242
+ }
243
+ declare const UploadButton: React.ForwardRefExoticComponent<UploadButtonProps & React.RefAttributes<HTMLElement>>;
244
+
245
+ interface OutlinedButtonProps {
246
+ className?: any;
247
+ color?: any;
248
+ copy: any;
249
+ disabled?: any;
250
+ href?: any;
251
+ isLoading?: any;
252
+ onClick?: (e: React__default.MouseEvent<HTMLButtonElement>) => void;
253
+ startIcon?: any;
254
+ style?: any;
255
+ subcopy?: any;
256
+ type?: any;
257
+ }
258
+ declare const _default$f: React__default.MemoExoticComponent<({ className, color, copy, disabled, href, isLoading, onClick, startIcon, style, subcopy, type, }: OutlinedButtonProps) => react_jsx_runtime.JSX.Element>;
259
+
260
+ interface AButtonProps {
261
+ classes?: any;
262
+ variant?: string;
263
+ color?: string;
264
+ copy?: any;
265
+ }
266
+ declare const _default$e: React.MemoExoticComponent<({ classes, variant, color, copy }: AButtonProps) => react_jsx_runtime.JSX.Element>;
267
+
268
+ interface IRoundButton {
269
+ active?: boolean;
270
+ children?: string;
271
+ className?: string;
272
+ disabled?: boolean;
273
+ focused?: boolean;
274
+ 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' | 'swapHoriz';
275
+ iconColor?: 'inherit' | 'disabled' | 'primary' | 'secondary' | 'action' | 'error';
276
+ isContrast?: boolean;
277
+ isTableButton?: boolean;
278
+ noStrokes?: boolean;
279
+ onClick?: (e: React__default.MouseEvent<HTMLButtonElement>) => void;
280
+ size?: 'small' | 'medium' | 'large' | 'double';
281
+ tooltip?: string;
282
+ variant?: 'default' | 'defaultPrimary' | 'defaultError' | 'filled' | 'primary' | 'secondary';
283
+ testID?: string;
284
+ }
285
+ /**
286
+ * A Rounded button component that is abstracted from MUI Fab component.
287
+ * Can render an icon or a single character.
288
+ * https://v4.mui.com/api/fab/#fab-api.
289
+ */
290
+ declare const RoundButton: ({ active, children, className, disabled, focused, icon, iconColor, isContrast, isTableButton, noStrokes, onClick, size, tooltip, variant, testID, }: IRoundButton) => react_jsx_runtime.JSX.Element;
291
+
292
+ declare const _default$d: React.MemoExoticComponent<() => react_jsx_runtime.JSX.Element>;
293
+
294
+ interface ActionButtonProps {
295
+ app?: any;
296
+ }
297
+ declare function ActionButton(props: ActionButtonProps): react_jsx_runtime.JSX.Element;
298
+
299
+ type CheckboxFilterMenuContentProps = {
300
+ columnId: string;
301
+ labelFieldName: string;
302
+ isLoading?: boolean;
303
+ selectedFilterOptions: HeaderFilterOptions;
304
+ filterOptions: HeaderFilterOptions;
305
+ maxHeight?: number;
306
+ width?: number;
307
+ shouldShowCheckOnFilter?: TableDesktopProps['shouldShowCheckOnFilter'];
308
+ onSelectAllChange: (checked: boolean) => void;
309
+ onFilterOptionChange: (option: string | HeaderFilterObject) => void;
310
+ onApplyFiltersClick: (shouldSave: boolean) => void;
311
+ };
312
+ declare const CheckboxFilterMenuContent: FC<CheckboxFilterMenuContentProps>;
313
+
314
+ type ClearFiltersConfirmationDialogProps = {
315
+ isOpen: boolean;
316
+ clearFiltersMode: 'unsaved' | 'saved';
317
+ hasAnyUnsavedFilters: boolean;
318
+ onClose: () => void;
319
+ onConfirm: () => void;
320
+ onChangeClearFiltersMode: (mode: 'unsaved' | 'saved') => void;
321
+ };
322
+ declare const ClearFiltersConfirmationDialog: FC<ClearFiltersConfirmationDialogProps>;
323
+
324
+ interface ICompanyLogo {
325
+ size: 'small' | 'medium';
326
+ color: 'light' | 'dark';
327
+ imageLogoDarkSmall: string;
328
+ imageLogoLightSmall: string;
329
+ }
330
+ declare const CompanyLogo: ({ size, color, imageLogoDarkSmall, imageLogoLightSmall, }: ICompanyLogo) => react_jsx_runtime.JSX.Element;
331
+
332
+ interface ConfirmationDialogProps {
333
+ ctaText?: string;
334
+ hideCancel?: boolean;
335
+ isLoading?: boolean;
336
+ hideConfirm?: boolean;
337
+ closeModal: () => void;
338
+ content: string | string[] | React.JSX.Element;
339
+ cancelCopy?: string;
340
+ isOpen: boolean;
341
+ onConfirm?: () => void;
342
+ title: string;
343
+ disableContentPadding?: boolean;
344
+ }
345
+ declare const ConfirmationDialog: {
346
+ ({ ctaText, hideCancel, isLoading, hideConfirm, closeModal, content, cancelCopy, isOpen, onConfirm, title, disableContentPadding, }: ConfirmationDialogProps): react_jsx_runtime.JSX.Element;
347
+ defaultProps: {
348
+ ctaText: string;
349
+ hideCancel: boolean;
350
+ hideConfirm: boolean;
351
+ cancelCopy: string;
352
+ isLoading: boolean;
353
+ };
354
+ };
355
+
356
+ interface ControlledCheckboxProps {
357
+ name: string;
358
+ label: string;
359
+ id: string;
360
+ control: Control<any, any>;
361
+ className?: string;
362
+ tooltipDescription?: string;
363
+ 'data-testid'?: string;
364
+ color?: 'primary' | 'secondary' | 'default';
365
+ handleChange: (checked: boolean, field: ControllerRenderProps<any, string>) => void;
366
+ disabled?: boolean;
367
+ }
368
+ declare const ControlledCheckbox: React.FC<ControlledCheckboxProps>;
369
+
370
+ interface ControlledNumberInputProps {
371
+ /**
372
+ * control from react-hook-form
373
+ * */
374
+ control: Control<any>;
375
+ /**
376
+ * name in the form data
377
+ * */
378
+ name: string;
379
+ /**
380
+ * label name to be shown in the component
381
+ * */
382
+ label: string;
383
+ /**
384
+ * mininum number allowed
385
+ * */
386
+ min?: number;
387
+ /**
388
+ * maximum number allowed
389
+ * */
390
+ max?: number;
391
+ /**
392
+ * step to change the number
393
+ * */
394
+ step?: number;
395
+ /**
396
+ * optional error message
397
+ * */
398
+ error?: string;
399
+ /**
400
+ * should shrink the label name
401
+ * */
402
+ shrink?: boolean;
403
+ /**
404
+ * opcional className to customize the component
405
+ * */
406
+ className?: string;
407
+ }
408
+ declare const ControlledNumberInput: ({ name, control, label, min, max, step, error, shrink, className, }: ControlledNumberInputProps) => react_jsx_runtime.JSX.Element;
409
+
410
+ interface ControlledNumericFieldProps {
411
+ control: Control<any>;
412
+ label: string;
413
+ min?: number;
414
+ max?: number;
415
+ step?: number;
416
+ fullWidth?: boolean;
417
+ margin?: 'dense' | 'normal' | 'none';
418
+ helperText?: string;
419
+ variant?: 'standard' | 'outlined' | 'filled';
420
+ onChange?: (field: ControllerRenderProps<any, string>, value: number | string) => void;
421
+ onArrowClick?: (field: ControllerRenderProps<any, string>, value: number | string) => void;
422
+ onBlur?: (field: ControllerRenderProps<any, string>, value: number | string, fieldState: ControllerFieldState) => void;
423
+ className?: string;
424
+ fieldName: string;
425
+ 'data-testid'?: string;
426
+ }
427
+ declare const ControlledNumericField: React.FC<ControlledNumericFieldProps>;
428
+
429
+ interface ControlledSelectWithArrayProps {
430
+ /**
431
+ * control from react-hook-form
432
+ * */
433
+ control: Control<any>;
434
+ /**
435
+ * name in the form data
436
+ * */
437
+ name: string;
438
+ /**
439
+ * label name to be shown in the component
440
+ * */
441
+ label: string;
442
+ /**
443
+ * options to be rendered in the dropbown
444
+ * */
445
+ options?: (string | number)[];
446
+ /**
447
+ * optional error message
448
+ * */
449
+ error?: string;
450
+ /**
451
+ * optional onChange event
452
+ * */
453
+ onChange?: (value: any) => void;
454
+ /**
455
+ * opcional className to customize the component
456
+ * */
457
+ className?: string;
458
+ /**
459
+ * opcional function to revalidate the form when changing the dropdown value ( trigger function )
460
+ * */
461
+ revalidateFormFunction?: UseFormTrigger<any>;
462
+ }
463
+ declare const ControlledSelectWithArray: ({ name, control, label, options, error, onChange, className, revalidateFormFunction, }: ControlledSelectWithArrayProps) => react_jsx_runtime.JSX.Element;
464
+
465
+ interface ControlledSelectWithObjectProps {
466
+ /**
467
+ * control from react-hook-form
468
+ * */
469
+ control: Control<any>;
470
+ /**
471
+ * name in the form data
472
+ * */
473
+ name: string;
474
+ /**
475
+ * label name to be shown in the component
476
+ * */
477
+ label: string;
478
+ /**
479
+ * options to be rendered in the dropbown
480
+ * */
481
+ options?: {
482
+ value: string | number;
483
+ label: string;
484
+ }[];
485
+ /**
486
+ * optional error message
487
+ * */
488
+ error?: string;
489
+ /**
490
+ * optional onChange event
491
+ * */
492
+ onChange?: (value: any) => void;
493
+ /**
494
+ * opcional className to customize the component
495
+ * */
496
+ className?: string;
497
+ /**
498
+ * opcional boolean to disable the dropdown option (based on the options.value)
499
+ * */
500
+ listToDisableFromOptions?: Array<any>;
501
+ /**
502
+ * opcional function to revalidate the form when changing the dropdown value ( trigger function )
503
+ * */
504
+ revalidateFormFunction?: UseFormTrigger<any>;
505
+ }
506
+ declare const ControlledSelectWithObject: ({ name, control, label, options, error, onChange, className, listToDisableFromOptions, revalidateFormFunction, }: ControlledSelectWithObjectProps) => react_jsx_runtime.JSX.Element;
507
+
508
+ interface ControlledValidTextInputBaseProps {
509
+ label: string;
510
+ fieldName: string;
511
+ helperText?: string;
512
+ disabled?: boolean;
513
+ variant?: 'standard' | 'outlined' | 'filled';
514
+ className?: string;
515
+ sx?: BoxProps['sx'];
516
+ maxLength?: number;
517
+ 'data-testid'?: string;
518
+ form: UseFormReturn<any>;
519
+ }
520
+ /** Ensure AT MOST ONE of 'updateCustomerData' or 'customHandleBlurValidationAndSubmit' can be provided. */
521
+ type ControlledValidTextInputDefaultProps = ControlledValidTextInputBaseProps & {
522
+ updateCustomerData?: UseMutateAsyncFunction<any, unknown, any, unknown>;
523
+ customHandleBlurValidationAndSubmit?: never;
524
+ };
525
+ type ControlledValidTextInputCustomProps = ControlledValidTextInputBaseProps & {
526
+ updateCustomerData?: never;
527
+ customHandleBlurValidationAndSubmit?: (controlledField: ControllerRenderProps<FieldValues, string>, isDirty: boolean) => void;
528
+ };
529
+ type ControlledValidTextInputProps = ControlledValidTextInputDefaultProps | ControlledValidTextInputCustomProps;
530
+ declare const ControlledValidTextInput: React.FC<ControlledValidTextInputProps>;
531
+
532
+ interface DataGridProps {
533
+ isLoading?: boolean;
534
+ children?: React.ReactElement;
535
+ height: string;
536
+ sortField?: string;
537
+ sortDir?: string;
538
+ columns: any;
539
+ rows: any;
540
+ handleCellEdition?: any;
541
+ }
542
+ declare const DataGrid: ({ columns, rows, handleCellEdition, sortField, sortDir, isLoading, height, children, }: DataGridProps) => react_jsx_runtime.JSX.Element;
543
+
544
+ interface DateProps {
545
+ datetime: string | Date;
546
+ format?: string;
547
+ }
548
+ declare const Date: React.FC<DateProps>;
549
+
550
+ interface IDeleteSubstitutionDialogContent {
551
+ closeDialog: () => void;
552
+ deleteSubstitution: () => void;
553
+ substitutionName: string;
554
+ }
555
+ declare const _default$c: React.MemoExoticComponent<({ closeDialog, substitutionName, deleteSubstitution, }: IDeleteSubstitutionDialogContent) => react_jsx_runtime.JSX.Element>;
556
+
557
+ interface IDeleteUserDialogContent {
558
+ closeDialog: () => void;
559
+ deleteUser: () => void;
560
+ userName: string;
561
+ }
562
+ declare const _default$b: React.MemoExoticComponent<({ closeDialog, userName, deleteUser, }: IDeleteUserDialogContent) => react_jsx_runtime.JSX.Element>;
563
+
564
+ type BaseDeliveryInstructionsFormFields = {
565
+ alarm_code?: string | null;
566
+ door_code?: string | null;
567
+ keys_code?: string | null;
568
+ preferred_delivery_window?: string | null;
569
+ invoice_signature_required?: boolean;
570
+ delivery_instructions?: string | null;
571
+ };
572
+ type DeliveryInstructionsFormFieldsProps<T extends BaseDeliveryInstructionsFormFields & FieldValues> = {
573
+ form: UseFormReturn<T>;
574
+ onTextFieldsBlur?: (fieldName: Path<T>) => void;
575
+ onInvoiceSignatureCheckboxChange?: (checked: boolean) => void;
576
+ };
577
+ declare const DeliveryInstructionsFormFields: <T extends BaseDeliveryInstructionsFormFields & FieldValues>({ form, onTextFieldsBlur, onInvoiceSignatureCheckboxChange, }: DeliveryInstructionsFormFieldsProps<T>) => react_jsx_runtime.JSX.Element;
578
+
579
+ type DynamicOverflowTooltipProps = {
580
+ arrow?: boolean;
581
+ maxWidth?: number | string;
582
+ children: ReactElement | string | number | null;
583
+ tooltipDescription: string;
584
+ };
585
+ declare const DynamicOverflowTooltip: FC<DynamicOverflowTooltipProps>;
586
+
587
+ interface FileCardProps {
588
+ document: string;
589
+ }
590
+ declare const FileCard: ({ document }: FileCardProps) => react_jsx_runtime.JSX.Element;
591
+
592
+ interface FilledLabelProps {
593
+ color?: string;
594
+ copy?: any;
595
+ }
596
+ declare const _default$a: React.MemoExoticComponent<(props: FilledLabelProps) => react_jsx_runtime.JSX.Element>;
597
+
598
+ type IFilterGroupSelector = {
599
+ name?: string;
600
+ categoryIdentification?: string;
601
+ selectedOptions: string[];
602
+ setSelectedOptions: React.Dispatch<React.SetStateAction<string[]>>;
603
+ handleClickOnApply: () => void;
604
+ optionsList?: {
605
+ category: string;
606
+ options: string[];
607
+ }[];
608
+ };
609
+ declare const FilterGroupSelector: ({ name, categoryIdentification, selectedOptions, setSelectedOptions, handleClickOnApply, optionsList, }: IFilterGroupSelector) => react_jsx_runtime.JSX.Element;
610
+
611
+ type IFilterSimpleSelector = {
612
+ name?: string;
613
+ options?: string[];
614
+ selectedOptions: string[];
615
+ setSelectedOptions: React.Dispatch<React.SetStateAction<string[]>>;
616
+ handleClickOnApply: () => void;
617
+ };
618
+ declare const FilterSimpleSelector: ({ name, options, selectedOptions, setSelectedOptions, handleClickOnApply, }: IFilterSimpleSelector) => react_jsx_runtime.JSX.Element;
619
+
620
+ type FilterOptionsCheckboxesProps = {
621
+ columnId: string;
622
+ labelFieldName: string;
623
+ maxWidth?: number;
624
+ filterOptions: HeaderFilterOptions;
625
+ selectedFilterOptions: HeaderFilterOptions;
626
+ onFilterOptionChange: (option: string | HeaderFilterObject) => void;
627
+ shouldShowCheckOnFilter?: TableDesktopProps['shouldShowCheckOnFilter'];
628
+ };
629
+ declare const FilterOptionsCheckboxes: FC<FilterOptionsCheckboxesProps>;
630
+
631
+ interface FixedFooterProps {
632
+ children: React.ReactNode;
633
+ justifyContent?: string;
634
+ }
635
+ declare const _default$9: React.MemoExoticComponent<({ justifyContent, children }: FixedFooterProps) => react_jsx_runtime.JSX.Element>;
636
+
637
+ interface HeaderProps {
638
+ appName: any;
639
+ children?: any;
640
+ wrappedHeader?: any;
641
+ }
642
+ declare const Header: ({ appName, children, wrappedHeader, }: HeaderProps) => react_jsx_runtime.JSX.Element;
643
+
644
+ declare const icons: {
645
+ SvgSamsaraLogo: (props: any) => react_jsx_runtime.JSX.Element;
646
+ SvgIconHome: (props: any) => react_jsx_runtime.JSX.Element;
647
+ SvgIconNotification: (props: any) => react_jsx_runtime.JSX.Element;
648
+ SvgIconPhone: (props: any) => react_jsx_runtime.JSX.Element;
649
+ SvgIconAccount: (props: any) => react_jsx_runtime.JSX.Element;
650
+ SvgIconOrders: (props: any) => react_jsx_runtime.JSX.Element;
651
+ SvgIconPriceList: (props: any) => react_jsx_runtime.JSX.Element;
652
+ SvgIconSpecialPrice: (props: any) => react_jsx_runtime.JSX.Element;
653
+ SvgIconBuying: (props: any) => react_jsx_runtime.JSX.Element;
654
+ SvgIconContentManagement: (props: any) => react_jsx_runtime.JSX.Element;
655
+ SvgIconProducts: (props: any) => react_jsx_runtime.JSX.Element;
656
+ SvgIconStock: (props: any) => react_jsx_runtime.JSX.Element;
657
+ SvgIconSupplier: (props: any) => react_jsx_runtime.JSX.Element;
658
+ SvgIconSupplierPrices: (props: any) => react_jsx_runtime.JSX.Element;
659
+ SvgIconGoodsin: (props: any) => react_jsx_runtime.JSX.Element;
660
+ SvgIconVkc: (props: any) => react_jsx_runtime.JSX.Element;
661
+ SvgIconLocation: (props: any) => react_jsx_runtime.JSX.Element;
662
+ SvgIconScales: (props: any) => react_jsx_runtime.JSX.Element;
663
+ SvgIconQc: (props: any) => react_jsx_runtime.JSX.Element;
664
+ SvgIconRetail: (props: any) => react_jsx_runtime.JSX.Element;
665
+ SvgIconRuns: (props: any) => react_jsx_runtime.JSX.Element;
666
+ SvgIconAccounts: (props: any) => react_jsx_runtime.JSX.Element;
667
+ SvgIconReports: (props: any) => react_jsx_runtime.JSX.Element;
668
+ SvgIconSetting: (props: any) => react_jsx_runtime.JSX.Element;
669
+ SvgIconLogin: (props: any) => react_jsx_runtime.JSX.Element;
670
+ SvgBallsLogo: (props: any) => react_jsx_runtime.JSX.Element;
671
+ SvgIconAvocado: () => react_jsx_runtime.JSX.Element;
672
+ SvgIconBanana: () => react_jsx_runtime.JSX.Element;
673
+ SvgIconGrape: (props: any) => react_jsx_runtime.JSX.Element;
674
+ SvgIconStrawberry: () => react_jsx_runtime.JSX.Element;
675
+ SvgIconPromoCode: (props: any) => react_jsx_runtime.JSX.Element;
676
+ SvgIconOpsMetrics: (props: any) => react_jsx_runtime.JSX.Element;
677
+ SvgIconSearchCategories: (props: any) => react_jsx_runtime.JSX.Element;
678
+ SvgIconImport: (props: any) => react_jsx_runtime.JSX.Element;
679
+ SvgIconSnail: (props: any) => react_jsx_runtime.JSX.Element;
680
+ SvgEmptyGlassIcon: (props: any) => react_jsx_runtime.JSX.Element;
681
+ SvgIconUserManagement: () => react_jsx_runtime.JSX.Element;
682
+ SvgIconTableEdit: (props: React.SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
683
+ };
684
+
685
+ type LabeledValueListProps = {
686
+ label: string;
687
+ values: (string | number)[];
688
+ };
689
+ declare const LabeledValueList: FC<LabeledValueListProps>;
690
+
691
+ interface VirtualizedListProps {
692
+ headers?: any;
693
+ items?: any;
694
+ renderItem?: any;
695
+ }
696
+ declare function VirtualizedList(props: VirtualizedListProps): react_jsx_runtime.JSX.Element;
697
+
698
+ interface ILoading {
699
+ isLoading: boolean;
700
+ }
701
+ declare const Loading: ({ isLoading }: ILoading) => react_jsx_runtime.JSX.Element;
702
+
703
+ interface ILocationsSectionInfo {
704
+ principalLocation: string;
705
+ secondaryLocation?: string[];
706
+ isPicking?: boolean;
707
+ isStock?: boolean;
708
+ }
709
+ declare const LocationsSectionInfo: ({ principalLocation, secondaryLocation, isPicking, isStock, }: ILocationsSectionInfo) => react_jsx_runtime.JSX.Element;
710
+
711
+ interface NotesProps {
712
+ initialNotes?: any;
713
+ isDisabled?: any;
714
+ isEditable?: any;
715
+ isLoading?: any;
716
+ maxLength?: any;
717
+ onBlur?: any;
718
+ onChange?: any;
719
+ onClearNotes?: any;
720
+ }
721
+ declare const Notes: ({ initialNotes, isDisabled, isEditable, isLoading, maxLength, onBlur, onChange, onClearNotes, }: NotesProps) => react_jsx_runtime.JSX.Element;
722
+
723
+ interface NumpadProps {
724
+ handleClick: any;
725
+ handleUndo: any;
726
+ }
727
+ declare const Numpad: ({ handleClick, handleUndo }: NumpadProps) => react_jsx_runtime.JSX.Element;
728
+
729
+ interface NumpadInputProps {
730
+ handleNextClick?(...args: any[]): any;
731
+ inputLabel?: string;
732
+ children?: any;
733
+ }
734
+ declare const _default$8: React.MemoExoticComponent<(props: NumpadInputProps) => react_jsx_runtime.JSX.Element>;
735
+
736
+ interface NumpadPlusProps {
737
+ handleClick: any;
738
+ handleUndo: any;
739
+ }
740
+ declare const NumpadPlus: ({ handleClick, handleUndo }: NumpadPlusProps) => react_jsx_runtime.JSX.Element;
741
+
742
+ interface PaginationForTableProps {
743
+ appliedFilters?: any;
744
+ className?: any;
745
+ page?: any;
746
+ pagination?: any;
747
+ position?: any;
748
+ style?: any;
749
+ updateFilters: any;
750
+ }
751
+ declare const PaginationForTable: ({ appliedFilters, className, page, pagination, position, style, updateFilters, }: PaginationForTableProps) => react_jsx_runtime.JSX.Element;
752
+
753
+ interface PhoneInputProps {
754
+ value?: string | null;
755
+ onChange?: (phone: string | null) => void;
756
+ placeholder?: string;
757
+ sx?: BoxProps['sx'];
758
+ className?: string;
759
+ label?: string;
760
+ error?: boolean;
761
+ }
762
+ declare const PhoneInput: React__default.FC<PhoneInputProps>;
763
+
764
+ interface PlusMinusInputProps {
765
+ allowNegative?: any;
766
+ buttonsPosition?: any;
767
+ disabled?: any;
768
+ initialValue?: any;
769
+ inputSize?: any;
770
+ label: any;
771
+ updateInputValue: any;
772
+ }
773
+ declare const PlusMinusInput: ({ allowNegative, buttonsPosition, disabled, initialValue, inputSize, label, updateInputValue, }: PlusMinusInputProps) => react_jsx_runtime.JSX.Element;
774
+
775
+ interface PBustProps {
776
+ buttonData?: any;
777
+ classes?: any;
778
+ locationData?: any;
779
+ locationId?: any;
780
+ primaryData?: any;
781
+ product?: any;
782
+ secondaryData?: any;
783
+ size?: any;
784
+ LocationHistoryDialog: ComponentType<any>;
785
+ }
786
+ declare const ProductBust: ({ classes, size, product, locationData, primaryData, secondaryData, buttonData, locationId, LocationHistoryDialog, }: PBustProps) => react_jsx_runtime.JSX.Element;
787
+
788
+ interface PImageProps {
789
+ classes?: any;
790
+ image?: any;
791
+ size?: any;
792
+ status?: any;
793
+ }
794
+ declare const ProductImage: ({ classes, image, size, status, }: PImageProps) => react_jsx_runtime.JSX.Element;
795
+
796
+ interface IRenderAvatar {
797
+ active?: boolean;
798
+ }
799
+ declare const RenderAvatar: ({ active }: IRenderAvatar) => react_jsx_runtime.JSX.Element;
800
+
801
+ interface IRenderContentList {
802
+ items: string[];
803
+ warningItems?: string[] | null;
804
+ warningMessage?: string;
805
+ activeSection: string;
806
+ }
807
+ declare const RenderContentList: ({ items, activeSection, warningItems, warningMessage, }: IRenderContentList) => react_jsx_runtime.JSX.Element;
808
+
809
+ type ProductSize = 'small' | 'medium' | 'large';
810
+ interface Column {
811
+ title: string;
812
+ value: string | React.ReactNode;
813
+ }
814
+ interface Product {
815
+ image: string;
816
+ name: string;
817
+ status?: string;
818
+ }
819
+ interface RowProductCardProps {
820
+ /**
821
+ * Possible actions or buttons that the card can have
822
+ */
823
+ children?: React.ReactNode;
824
+ /**
825
+ * Details about the product
826
+ */
827
+ columns?: Column[];
828
+ /**
829
+ * Where is the product location
830
+ */
831
+ location?: string;
832
+ /**
833
+ * Product information
834
+ */
835
+ product: Product;
836
+ /**
837
+ * Size of the product image
838
+ */
839
+ size?: ProductSize;
840
+ }
841
+ /**
842
+ * A card on row format that can display informations about a product
843
+ * It can be very detailed or lean
844
+ */
845
+ declare const RowProductCard: ({ children, columns, location, product, size, }: RowProductCardProps) => react_jsx_runtime.JSX.Element;
846
+
847
+ interface ScrollableDialogProps {
848
+ body: ReactNode;
849
+ footer?: ReactNode;
850
+ header?: ReactNode;
851
+ isOpen: boolean;
852
+ title: string;
853
+ }
854
+ declare const ScrollableDialog: ({ body, footer, header, isOpen, title, }: ScrollableDialogProps) => react_jsx_runtime.JSX.Element;
855
+
856
+ interface ISearchAndFilterHeaderProps {
857
+ appName: string;
858
+ enterPressedInSearch?: () => void;
859
+ extraButton?: React.ReactNode;
860
+ filtersComponent?: React.ReactNode;
861
+ appliedFiltersComponent?: React.ReactNode;
862
+ filterClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
863
+ showFilters: boolean;
864
+ updateFilters?: (filters: any) => void;
865
+ searchValue?: string;
866
+ }
867
+ declare const SearchAndFilterHeader: ({ appName, enterPressedInSearch, extraButton, filterClick, showFilters, updateFilters, filtersComponent, appliedFiltersComponent, searchValue, }: ISearchAndFilterHeaderProps) => react_jsx_runtime.JSX.Element;
868
+
869
+ interface SearchAndFilterHeaderForTableProps {
870
+ appName: string;
871
+ button?: React.ReactNode;
872
+ copy?: string;
873
+ enterPressedInSearch?(...args: any[]): any;
874
+ isOpen?: boolean;
875
+ onFilterButtonClick?(...args: any[]): any;
876
+ searchedValue?: string;
877
+ showFilterButton?: boolean;
878
+ updateSearch?(...args: any[]): any;
879
+ }
880
+ declare const _default$7: React.MemoExoticComponent<(props: SearchAndFilterHeaderForTableProps) => react_jsx_runtime.JSX.Element>;
881
+
882
+ type SearchFieldDebouncedProps = {
883
+ onSearch?: (value: string) => void;
884
+ value?: string;
885
+ onChange?: (e: React__default.ChangeEvent<HTMLInputElement>) => void;
886
+ onKeyDown?: (e: React__default.KeyboardEvent<HTMLInputElement>) => void;
887
+ variant?: 'outlined' | 'filled' | 'standard';
888
+ hideSearchIcon?: boolean;
889
+ initialValue?: string;
890
+ debounceDelay?: number;
891
+ minCharacters?: number;
892
+ sx?: SxProps<Theme>;
893
+ width?: number;
894
+ inputProps?: {
895
+ sx: SxProps<Theme>;
896
+ };
897
+ };
898
+ declare const SearchFieldDebounced: React__default.FC<SearchFieldDebouncedProps>;
899
+
900
+ type SearchHeaderProps = {
901
+ renderButton?: ReactNode;
902
+ renderExtraAction?: ReactNode;
903
+ children?: ReactNode;
904
+ onSearch?: (value: string) => void;
905
+ value?: string;
906
+ onChange?: (e: React__default.ChangeEvent<HTMLInputElement>) => void;
907
+ onKeyDown?: (e: React__default.KeyboardEvent<HTMLInputElement>) => void;
908
+ width?: number;
909
+ };
910
+ declare const SearchHeader: ({ renderButton, renderExtraAction, children, onSearch, value, onChange, onKeyDown, width, }: SearchHeaderProps) => react_jsx_runtime.JSX.Element;
911
+
912
+ interface ISearchWithFiltersProps {
913
+ enterPressedInSearch?: () => void;
914
+ filterClick?: React.MouseEventHandler<HTMLButtonElement>;
915
+ handleClick?: () => void;
916
+ searchValue?: string;
917
+ showFilters: boolean;
918
+ updateFilters?: (filters: {
919
+ search: string;
920
+ }) => void;
921
+ disabled?: boolean;
922
+ }
923
+ declare const _default$6: React.MemoExoticComponent<({ enterPressedInSearch, filterClick, handleClick, searchValue, showFilters, updateFilters, disabled, }: ISearchWithFiltersProps) => react_jsx_runtime.JSX.Element>;
924
+
925
+ interface SearchWithFiltersForTableProps {
926
+ onFilterButtonClick?(...args: any[]): any;
927
+ isOpen?: boolean;
928
+ updateSearch?(...args: any[]): any;
929
+ enterPressedInSearch?(...args: any[]): any;
930
+ showFilterButton?: boolean;
931
+ searchedValue?: string;
932
+ }
933
+ declare const _default$5: React.MemoExoticComponent<(props: SearchWithFiltersForTableProps) => react_jsx_runtime.JSX.Element>;
934
+
935
+ interface SectionNameProps {
936
+ name: string;
937
+ tooltipDescription?: string;
938
+ sectionId?: string;
939
+ buttonText?: string;
940
+ buttonType?: 'add' | 'apps' | 'childCare' | 'delete' | 'edit' | 'importExport' | 'notes' | 'print' | 'save' | 'upload' | 'refresh' | 'download' | 'publish';
941
+ handleButtonClick?: () => void;
942
+ buttonDisabled?: boolean;
943
+ openHistoryLog?: () => void;
944
+ }
945
+ declare const SectionName: ({ name, tooltipDescription, sectionId, handleButtonClick, buttonText, buttonType, buttonDisabled, openHistoryLog, }: SectionNameProps) => react_jsx_runtime.JSX.Element;
946
+
947
+ type Option = {
948
+ value?: string | number;
949
+ label?: string;
950
+ disabled?: boolean;
951
+ };
952
+ interface SmartSelectProps {
953
+ value?: string | number | null;
954
+ defaultOption?: Option;
955
+ options?: Option[];
956
+ refetch?: () => void;
957
+ isFetching?: boolean;
958
+ onChange: (selectedOption: Option) => void;
959
+ inputLabel?: string;
960
+ variant?: SelectProps['variant'];
961
+ size?: SelectProps['size'];
962
+ error?: boolean;
963
+ helperText?: string;
964
+ disabled?: boolean;
965
+ allowBlankOption?: boolean;
966
+ 'data-testid'?: string;
967
+ emptyMessage?: string;
968
+ menuProps?: Partial<MenuProps>;
969
+ }
970
+ declare const SmartSelect: React.ForwardRefExoticComponent<SmartSelectProps & React.RefAttributes<unknown>>;
971
+
972
+ type SmartMultipleSelectProps = {
973
+ inputLabel?: string;
974
+ variant?: SelectProps['variant'];
975
+ size?: SelectProps['size'];
976
+ error?: boolean;
977
+ values?: Option[];
978
+ defaultValues?: Option[];
979
+ onOpen?: () => void;
980
+ onChange?: (values: Option[]) => void;
981
+ onClose?: (values: Option[]) => void;
982
+ menuOptions?: Option[];
983
+ isLoading?: boolean;
984
+ disabled?: boolean;
985
+ emptyMessage?: string;
986
+ helperText?: string;
987
+ menuProps?: Partial<MenuProps>;
988
+ };
989
+ declare const SmartMultipleSelect: FC<SmartMultipleSelectProps>;
990
+
991
+ interface SquareLabelProps {
992
+ color?: string;
993
+ copy?: any;
994
+ }
995
+ declare const _default$4: React.MemoExoticComponent<({ color, copy }: SquareLabelProps) => react_jsx_runtime.JSX.Element>;
996
+
997
+ interface LSwitchProps {
998
+ classes?: any;
999
+ checked?: any;
1000
+ labelOn?: any;
1001
+ labelOff?: any;
1002
+ handleChange?: any;
1003
+ disabled: any;
1004
+ }
1005
+ declare const _default$3: React.MemoExoticComponent<({ checked, labelOn, labelOff, handleChange, classes, disabled, }: LSwitchProps) => react_jsx_runtime.JSX.Element>;
1006
+
1007
+ type SmartTableHeaderFilterMenuProps = {
1008
+ headCell: HeadCell;
1009
+ headerFilters: HeaderFilters;
1010
+ numActiveFilters: number;
1011
+ shouldShowCheckOnFilter?: TableDesktopProps['shouldShowCheckOnFilter'];
1012
+ onApplyFilters?: TableDesktopProps['onApplyFilters'];
1013
+ };
1014
+ declare const SmartTableHeaderFilterMenu: ({ headCell, numActiveFilters, headerFilters, shouldShowCheckOnFilter, onApplyFilters, }: SmartTableHeaderFilterMenuProps) => react_jsx_runtime.JSX.Element;
1015
+
1016
+ type SmartTableHeaderProps = {
1017
+ order: Order;
1018
+ orderBy: string;
1019
+ headCells: HeadCell[];
1020
+ numSelectedRows: number;
1021
+ numRows: number;
1022
+ enableCheckboxSelection?: boolean;
1023
+ headerFilters: HeaderFilters;
1024
+ onRequestSort: (event: MouseEvent<unknown>, property: string) => void;
1025
+ onSelectAllClick: (event: ChangeEvent<HTMLInputElement>) => void;
1026
+ onApplyFilters?: TableDesktopProps['onApplyFilters'];
1027
+ shouldShowCheckOnFilter?: TableDesktopProps['shouldShowCheckOnFilter'];
1028
+ };
1029
+ declare const SmartTableHeader: React.MemoExoticComponent<({ order, orderBy, headCells, numSelectedRows, numRows, enableCheckboxSelection, headerFilters, onRequestSort, onSelectAllClick, onApplyFilters, shouldShowCheckOnFilter, }: SmartTableHeaderProps) => react_jsx_runtime.JSX.Element>;
1030
+
1031
+ interface TableProps {
1032
+ headCells?: {
1033
+ id?: string;
1034
+ label?: string;
1035
+ numeric?: boolean;
1036
+ disablePadding?: boolean;
1037
+ }[];
1038
+ data?: {}[];
1039
+ RenderItem?: React.ComponentType<any> | null;
1040
+ isLoading?: boolean;
1041
+ updateSort?(...args: any[]): any;
1042
+ page?: number;
1043
+ rowsPerPage?: number;
1044
+ onRowClick?(...args: any[]): any;
1045
+ serverRendered?: boolean;
1046
+ appliedFilters?: any;
1047
+ doNotCalculateRows?: any;
1048
+ }
1049
+ declare const Table: ({ appliedFilters, data, doNotCalculateRows, headCells, isLoading, onRowClick, page, RenderItem, rowsPerPage: defaultRowsPerPage, serverRendered, updateSort, }: TableProps) => react_jsx_runtime.JSX.Element;
1050
+
1051
+ type TableDesktopEditableFieldProps = {
1052
+ headCell: HeadCell;
1053
+ editInitialValue?: any;
1054
+ rowId?: RowId;
1055
+ disabled?: boolean;
1056
+ showCheckboxLabel?: boolean;
1057
+ variant?: 'standard' | 'outlined' | 'filled';
1058
+ size?: 'medium' | 'small';
1059
+ onUpdateEditableCell: HeadCell['onUpdateEditableCell'];
1060
+ };
1061
+ declare const TableDesktopEditableField: FC<TableDesktopEditableFieldProps>;
1062
+
1063
+ type ReadOnlyValue = string | number | boolean | ReactNode;
1064
+ type TableDesktopCellProps = {
1065
+ editInitialValue: any;
1066
+ rowId: RowId;
1067
+ enableEditMode: boolean;
1068
+ disabled?: boolean;
1069
+ readOnlyValue: ReadOnlyValue;
1070
+ headCell: HeadCell;
1071
+ onCellClick?: (event: MouseEvent<HTMLTableCellElement>, isEditMode: boolean) => void;
1072
+ };
1073
+ declare const TableDesktopCell: FC<TableDesktopCellProps>;
1074
+
1075
+ interface ITableEmptyResult {
1076
+ colSpan: number;
1077
+ showClearFilterButton?: boolean;
1078
+ handleClickOnClearFiltersButton?: () => void;
1079
+ }
1080
+ declare const TableEmptyResult: ({ colSpan, showClearFilterButton, handleClickOnClearFiltersButton, }: ITableEmptyResult) => react_jsx_runtime.JSX.Element;
1081
+
1082
+ interface TableLoadingProps {
1083
+ rowsPerPage?: number;
1084
+ rowHeight?: number;
1085
+ }
1086
+ declare const TableLoading: React__default.FC<TableLoadingProps>;
1087
+
1088
+ interface TableHeaderProps {
1089
+ cells: any;
1090
+ onSort?: any;
1091
+ }
1092
+ declare const _default$2: React.MemoExoticComponent<({ cells, onSort }: TableHeaderProps) => react_jsx_runtime.JSX.Element>;
1093
+
1094
+ interface TextDividerProps {
1095
+ title: string;
1096
+ icon?: React.ElementType;
1097
+ onClick?: () => void;
1098
+ color?: string;
1099
+ iconPosition?: 'left' | 'right';
1100
+ titleWeight?: '400' | '500' | '600' | '700' | '800' | '900';
1101
+ }
1102
+ declare const TextDivider: React.FC<TextDividerProps>;
1103
+
1104
+ type ThemedDateRangePickerProps = DateRangePickerShape & {
1105
+ className?: string;
1106
+ };
1107
+ /**
1108
+ * DateRangePicker component with dark mode theming support.
1109
+ * Props are forwarded directly to the underlying DateRangePicker.
1110
+ */
1111
+ declare const ThemedDateRangePicker: ({ className, ...props }: ThemedDateRangePickerProps) => react_jsx_runtime.JSX.Element;
1112
+
1113
+ type Props = {
1114
+ imageLogoDarkSmall: string;
1115
+ imageLogoLightSmall: string;
1116
+ handleOpen: () => void;
1117
+ LeftDrawer: ReactNode;
1118
+ leftSection?: ReactNode;
1119
+ rightSection?: ReactNode;
1120
+ isAuthenticated?: boolean;
1121
+ };
1122
+ declare const _default$1: React.MemoExoticComponent<({ imageLogoDarkSmall, imageLogoLightSmall, handleOpen, LeftDrawer, leftSection, rightSection, isAuthenticated, }: Props) => react_jsx_runtime.JSX.Element>;
1123
+
1124
+ type IToastMessage = {
1125
+ toastType: 'success' | 'info' | 'warning' | 'error';
1126
+ toastMessage: string;
1127
+ open: boolean;
1128
+ onClose: () => void;
1129
+ };
1130
+ /**
1131
+ *@param toastType 'success' | 'info' | 'warning' | 'error';.
1132
+ *@param toastMessage Value to be displayed on screen;.
1133
+ *@param open Boolean to open the toast;.
1134
+ *@param updateToast Reducer function to update the reducer value
1135
+ */
1136
+ declare const ToastMessage: ({ toastType, toastMessage, open, onClose, }: IToastMessage) => react_jsx_runtime.JSX.Element;
1137
+
1138
+ interface ITwoButtonDialogProps {
1139
+ confirmButton: () => void;
1140
+ cancelButton?: () => void;
1141
+ dialogLoading?: boolean;
1142
+ title: string;
1143
+ subtitle1?: string | React.ReactNode;
1144
+ subtitle2?: string | React.ReactNode;
1145
+ open: boolean;
1146
+ setOpen: (open: boolean) => void;
1147
+ confirmLabel?: string;
1148
+ cancelLabel?: string;
1149
+ }
1150
+ declare const TwoButtonDialog: FC<ITwoButtonDialogProps>;
1151
+
1152
+ type UserBustProps = {
1153
+ user: {
1154
+ profile_picture: string;
1155
+ first_name: string;
1156
+ last_name: string;
1157
+ username: string;
1158
+ };
1159
+ avatarProps: {
1160
+ height: number;
1161
+ width: number;
1162
+ };
1163
+ typographyProps: {
1164
+ name?: {
1165
+ variant: ComponentProps<typeof Typography>['variant'];
1166
+ component: string;
1167
+ };
1168
+ username?: {
1169
+ variant: ComponentProps<typeof Typography>['variant'];
1170
+ component: string;
1171
+ };
1172
+ };
1173
+ };
1174
+ declare const _default: React.MemoExoticComponent<({ user, avatarProps, typographyProps }: UserBustProps) => react_jsx_runtime.JSX.Element>;
1175
+
1176
+ type Tag = {
1177
+ id: number;
1178
+ tag: string;
1179
+ };
1180
+ type AutocompleteType<T extends Tag> = AutocompleteProps<T, false, false, false>;
1181
+ interface HashtagInputProps extends Omit<AutocompleteType<any>, 'options' | 'renderInput'> {
1182
+ label?: TextFieldProps['label'];
1183
+ placeholder?: TextFieldProps['placeholder'];
1184
+ variant?: TextFieldProps['variant'];
1185
+ error?: TextFieldProps['error'];
1186
+ helperText?: TextFieldProps['helperText'];
1187
+ autoFocus?: TextFieldProps['autoFocus'];
1188
+ disableOnBlurCreation?: boolean;
1189
+ onCreateTag?: (tagName?: string) => void;
1190
+ onDeleteTag?: (tag?: Tag | string) => void;
1191
+ }
1192
+ declare const HashtagInput: ({ label, placeholder, variant, error, helperText, onCreateTag, onDeleteTag, autoFocus, disableOnBlurCreation, onBlur, ...props }: HashtagInputProps) => react_jsx_runtime.JSX.Element;
1193
+
1194
+ declare const SvgIconCompare: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
1195
+
1196
+ declare const SvgIconChart: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
1197
+
1198
+ export { ActiveFiltersIconButton, AddressFormFields, type AddressOption, AlertDialog, AlertDialogFullScreen, AppLabel, AppliedTableFiltersDisplay, AutocompleteFilterMenuContent, BackHeader, BottomBar, _default$k as BoxButton, CheckboxFilterMenuContent, ClearFiltersConfirmationDialog, CompanyLogo, ConfirmationDialog, ControlledCheckbox, ControlledNumberInput, ControlledNumericField, ControlledSelectWithArray, ControlledSelectWithObject, ControlledValidTextInput, DataGrid, Date, _default$c as DeleteSubstitutionDialogContent, _default$b as DeleteUserDialogContent, DeliveryInstructionsFormFields, DynamicOverflowTooltip, _default$j as ExtendedButton, FileCard, _default$i as FilledButton, _default$h as FilledButtonLg, _default$a as FilledLabel, FilterGroupSelector, FilterOptionsCheckboxes, FilterSimpleSelector, _default$9 as FixedFooter, GooglePlacesAddressAutocomplete, HashtagInput, HeadCell, Header, HeaderFilterObject, HeaderFilterOptions, HeaderFilters, SvgIconChart as IconChart, SvgIconCompare as IconCompare, _default$g as ImageButton, LabeledValueList, VirtualizedList as List, Loading, LocationsSectionInfo, Notes, Numpad, _default$8 as NumpadInput, NumpadPlus, type Option, Order, _default$f as OutlinedButton, _default$e as OutlinedButtonLg, PaginationForTable as Pagination, PhoneInput, _default$d as Pin, ActionButton as PinnedApp, PlusMinusInput, ProductBust, ProductImage, RenderAvatar, RenderContentList, RoundButton, RowId, RowProductCard, ScrollableDialog, SearchAndFilterHeader, _default$7 as SearchAndFilterHeaderForTable, SearchFieldDebounced, SearchHeader, _default$6 as SearchWithFilters, _default$5 as SearchWithFiltersForTable, SectionName, SmartMultipleSelect, SmartSelect, SmartTableHeader, SmartTableHeaderFilterMenu, SquareButton, _default$4 as SquareLabel, _default$3 as Switch, Table, TableDesktopCell, TableDesktopEditableField, TableEmptyResult, _default$2 as TableHeader, TableLoading, TextDivider, _default$1 as TheToolbar, ThemedDateRangePicker, ToastMessage, TwoButtonDialog, UploadButton, _default as UserBust, icons };