@natoora-libs/core 0.2.41 → 0.2.42

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.
@@ -1,11 +1,11 @@
1
1
  import * as React from 'react';
2
- import React__default, { MouseEvent, ReactNode, FC, ReactElement, ComponentType, ChangeEvent, ComponentProps, SVGProps } from 'react';
2
+ import React__default, { MouseEvent, CSSProperties, ReactNode, FC, ReactElement, KeyboardEvent, Ref, ComponentType, ChangeEvent, ComponentProps, SVGProps } from 'react';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import { H as HeadCell, a as HeaderFilters, b as HeaderFilterOptions, c as HeaderFilterObject, T as TableDesktopProps, O as Order, E as EditableCellType } from '../TableDesktop-4tjwQjmc.cjs';
5
- export { B as BulkChanges, j as BulkChangesDialogProps, k as ExportCsvDialogProps, i as TableColumnConfigurationMenuProps, d as TableDesktop, e as TableDesktopFooter, f as TableDesktopFooterProps, g as TableDesktopToolbar, h as TableDesktopToolbarProps } from '../TableDesktop-4tjwQjmc.cjs';
6
- import { Control, ControllerRenderProps, ControllerFieldState, UseFormTrigger, UseFormReturn, FieldValues } from 'react-hook-form';
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.cjs';
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.cjs';
7
7
  import { UseMutateAsyncFunction } from 'react-query';
8
- import { SxProps, Theme, MenuProps, Typography } from '@mui/material';
8
+ import { BoxProps, SxProps, Theme, SelectProps, MenuProps, Typography, AutocompleteProps, TextFieldProps } from '@mui/material';
9
9
  import { DateRangePickerShape } from 'react-dates';
10
10
 
11
11
  type ActiveFiltersIconButtonProps = {
@@ -17,6 +17,82 @@ type ActiveFiltersIconButtonProps = {
17
17
  };
18
18
  declare const ActiveFiltersIconButton: React.MemoExoticComponent<({ label, className, enableRipple, numActiveFilters, handleClick, }: ActiveFiltersIconButtonProps) => react_jsx_runtime.JSX.Element>;
19
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
+ hidePrimaryPhoneNumberField?: boolean;
83
+ countriesSelectProps: {
84
+ countries: AddressCountry[];
85
+ isCountriesFetching: boolean;
86
+ refetchCountries: () => void;
87
+ };
88
+ statesSelectProps: {
89
+ addressStates: AddressState[];
90
+ isAddressStatesFetching: boolean;
91
+ };
92
+ googlePlacesAutocompleteProps?: GooglePlacesAddressAutocompleteProps;
93
+ };
94
+ declare const AddressFormFields: ({ form, hidePrimaryPhoneNumberField, countriesSelectProps: { countries, isCountriesFetching, refetchCountries }, statesSelectProps: { addressStates, isAddressStatesFetching }, googlePlacesAutocompleteProps, }: AddressFormFieldsProps) => react_jsx_runtime.JSX.Element;
95
+
20
96
  interface AlertDialogProps {
21
97
  open: boolean;
22
98
  alertTitle?: string;
@@ -30,6 +106,8 @@ interface AlertDialogProps {
30
106
  rejectCopy?: string;
31
107
  acceptCopy?: string;
32
108
  disabledContentPadding?: boolean;
109
+ disableEnforceFocus?: boolean;
110
+ disableRestoreFocus?: boolean;
33
111
  }
34
112
  declare const AlertDialog: React.FC<AlertDialogProps>;
35
113
 
@@ -67,7 +145,7 @@ type AutocompleteFilterMenuContentProps = {
67
145
  onFilterOptionChange: (option: string | HeaderFilterObject) => void;
68
146
  onApplyFiltersClick: (shouldSave: boolean) => void;
69
147
  filterOptions: HeadCell['filterOptions'];
70
- onAutocompleteFilterChange: HeadCell['onAutocompleteFilterChange'];
148
+ onAutocompleteSearch: HeadCell['onAutocompleteSearch'];
71
149
  shouldShowCheckOnFilter?: TableDesktopProps['shouldShowCheckOnFilter'];
72
150
  };
73
151
  declare const AutocompleteFilterMenuContent: FC<AutocompleteFilterMenuContentProps>;
@@ -75,6 +153,7 @@ declare const AutocompleteFilterMenuContent: FC<AutocompleteFilterMenuContentPro
75
153
  interface BackHeaderProps {
76
154
  appName: string;
77
155
  onGoBackClick?: () => void;
156
+ sideComponent?: React.ReactElement;
78
157
  }
79
158
  declare const BackHeader: React.FC<BackHeaderProps>;
80
159
 
@@ -93,7 +172,7 @@ interface BoxButtonProps {
93
172
  extra?: any;
94
173
  borderColor?: any;
95
174
  }
96
- declare const _default$k: React.MemoExoticComponent<(props: BoxButtonProps) => react_jsx_runtime.JSX.Element>;
175
+ declare const _default$m: React.MemoExoticComponent<(props: BoxButtonProps) => react_jsx_runtime.JSX.Element>;
97
176
 
98
177
  interface IExtendedButton {
99
178
  buttonType?: 'button' | 'submit';
@@ -102,7 +181,7 @@ interface IExtendedButton {
102
181
  copy: string;
103
182
  disabled?: boolean;
104
183
  href?: string;
105
- onClick?: () => void;
184
+ onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
106
185
  subcopy?: string;
107
186
  tooltip?: string;
108
187
  component?: React.ElementType;
@@ -110,7 +189,7 @@ interface IExtendedButton {
110
189
  variant?: 'contained' | 'outlined' | 'text';
111
190
  copyColor?: string;
112
191
  }
113
- 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>;
192
+ 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>;
114
193
 
115
194
  interface IFilledButton {
116
195
  autoFocus?: boolean;
@@ -120,11 +199,11 @@ interface IFilledButton {
120
199
  isLoading?: boolean;
121
200
  disabled?: boolean;
122
201
  href?: string;
123
- onClick?: () => void;
202
+ onClick?: (e: React__default.MouseEvent<HTMLButtonElement>) => void;
124
203
  type?: 'button' | 'submit';
125
204
  variant?: 'contained' | 'outlined' | 'text';
126
205
  }
127
- declare const _default$i: React.MemoExoticComponent<({ autoFocus, className, color, copy, disabled, href, isLoading, onClick, type, variant, }: IFilledButton) => react_jsx_runtime.JSX.Element>;
206
+ declare const _default$k: React__default.MemoExoticComponent<({ autoFocus, className, color, copy, disabled, href, isLoading, onClick, type, variant, }: IFilledButton) => react_jsx_runtime.JSX.Element>;
128
207
 
129
208
  interface FilledButtonLgProps {
130
209
  classes?: any;
@@ -140,14 +219,14 @@ interface FilledButtonLgProps {
140
219
  style?: string;
141
220
  };
142
221
  }
143
- declare const _default$h: React.MemoExoticComponent<({ classes, disabled, variant, color, copy, handleClick, loading, loadingProps, }: FilledButtonLgProps) => react_jsx_runtime.JSX.Element>;
222
+ declare const _default$j: React.MemoExoticComponent<({ classes, disabled, variant, color, copy, handleClick, loading, loadingProps, }: FilledButtonLgProps) => react_jsx_runtime.JSX.Element>;
144
223
 
145
224
  interface ImageButtonProps {
146
225
  src?: any;
147
226
  onClick?: any;
148
227
  value?: any;
149
228
  }
150
- declare const _default$g: React.MemoExoticComponent<(props: ImageButtonProps) => react_jsx_runtime.JSX.Element>;
229
+ declare const _default$i: React.MemoExoticComponent<(props: ImageButtonProps) => react_jsx_runtime.JSX.Element>;
151
230
 
152
231
  interface SquareButtonProps {
153
232
  children: any;
@@ -172,13 +251,13 @@ interface OutlinedButtonProps {
172
251
  disabled?: any;
173
252
  href?: any;
174
253
  isLoading?: any;
175
- onClick?: any;
254
+ onClick?: (e: React__default.MouseEvent<HTMLButtonElement>) => void;
176
255
  startIcon?: any;
177
256
  style?: any;
178
257
  subcopy?: any;
179
258
  type?: any;
180
259
  }
181
- declare const _default$f: React.MemoExoticComponent<({ className, color, copy, disabled, href, isLoading, onClick, startIcon, style, subcopy, type, }: OutlinedButtonProps) => react_jsx_runtime.JSX.Element>;
260
+ declare const _default$h: React__default.MemoExoticComponent<({ className, color, copy, disabled, href, isLoading, onClick, startIcon, style, subcopy, type, }: OutlinedButtonProps) => react_jsx_runtime.JSX.Element>;
182
261
 
183
262
  interface AButtonProps {
184
263
  classes?: any;
@@ -186,7 +265,7 @@ interface AButtonProps {
186
265
  color?: string;
187
266
  copy?: any;
188
267
  }
189
- declare const _default$e: React.MemoExoticComponent<({ classes, variant, color, copy }: AButtonProps) => react_jsx_runtime.JSX.Element>;
268
+ declare const _default$g: React.MemoExoticComponent<({ classes, variant, color, copy }: AButtonProps) => react_jsx_runtime.JSX.Element>;
190
269
 
191
270
  interface IRoundButton {
192
271
  active?: boolean;
@@ -194,12 +273,12 @@ interface IRoundButton {
194
273
  className?: string;
195
274
  disabled?: boolean;
196
275
  focused?: boolean;
197
- 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';
276
+ 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';
198
277
  iconColor?: 'inherit' | 'disabled' | 'primary' | 'secondary' | 'action' | 'error';
199
278
  isContrast?: boolean;
200
279
  isTableButton?: boolean;
201
280
  noStrokes?: boolean;
202
- onClick?: (event: any) => void;
281
+ onClick?: (e: React__default.MouseEvent<HTMLButtonElement>) => void;
203
282
  size?: 'small' | 'medium' | 'large' | 'double';
204
283
  tooltip?: string;
205
284
  variant?: 'default' | 'defaultPrimary' | 'defaultError' | 'filled' | 'primary' | 'secondary';
@@ -212,7 +291,7 @@ interface IRoundButton {
212
291
  */
213
292
  declare const RoundButton: ({ active, children, className, disabled, focused, icon, iconColor, isContrast, isTableButton, noStrokes, onClick, size, tooltip, variant, testID, }: IRoundButton) => react_jsx_runtime.JSX.Element;
214
293
 
215
- declare const _default$d: React.MemoExoticComponent<() => react_jsx_runtime.JSX.Element>;
294
+ declare const _default$f: React.MemoExoticComponent<() => react_jsx_runtime.JSX.Element>;
216
295
 
217
296
  interface ActionButtonProps {
218
297
  app?: any;
@@ -435,6 +514,7 @@ interface ControlledValidTextInputBaseProps {
435
514
  disabled?: boolean;
436
515
  variant?: 'standard' | 'outlined' | 'filled';
437
516
  className?: string;
517
+ sx?: BoxProps['sx'];
438
518
  maxLength?: number;
439
519
  'data-testid'?: string;
440
520
  form: UseFormReturn<any>;
@@ -474,14 +554,29 @@ interface IDeleteSubstitutionDialogContent {
474
554
  deleteSubstitution: () => void;
475
555
  substitutionName: string;
476
556
  }
477
- declare const _default$c: React.MemoExoticComponent<({ closeDialog, substitutionName, deleteSubstitution, }: IDeleteSubstitutionDialogContent) => react_jsx_runtime.JSX.Element>;
557
+ declare const _default$e: React.MemoExoticComponent<({ closeDialog, substitutionName, deleteSubstitution, }: IDeleteSubstitutionDialogContent) => react_jsx_runtime.JSX.Element>;
478
558
 
479
559
  interface IDeleteUserDialogContent {
480
560
  closeDialog: () => void;
481
561
  deleteUser: () => void;
482
562
  userName: string;
483
563
  }
484
- declare const _default$b: React.MemoExoticComponent<({ closeDialog, userName, deleteUser, }: IDeleteUserDialogContent) => react_jsx_runtime.JSX.Element>;
564
+ declare const _default$d: React.MemoExoticComponent<({ closeDialog, userName, deleteUser, }: IDeleteUserDialogContent) => react_jsx_runtime.JSX.Element>;
565
+
566
+ type BaseDeliveryInstructionsFormFields = {
567
+ alarm_code?: string | null;
568
+ door_code?: string | null;
569
+ keys_code?: string | null;
570
+ preferred_delivery_window?: string | null;
571
+ invoice_signature_required?: boolean;
572
+ delivery_instructions?: string | null;
573
+ };
574
+ type DeliveryInstructionsFormFieldsProps<T extends BaseDeliveryInstructionsFormFields & FieldValues> = {
575
+ form: UseFormReturn<T>;
576
+ onTextFieldsBlur?: (fieldName: Path<T>) => void;
577
+ onInvoiceSignatureCheckboxChange?: (checked: boolean) => void;
578
+ };
579
+ declare const DeliveryInstructionsFormFields: <T extends BaseDeliveryInstructionsFormFields & FieldValues>({ form, onTextFieldsBlur, onInvoiceSignatureCheckboxChange, }: DeliveryInstructionsFormFieldsProps<T>) => react_jsx_runtime.JSX.Element;
485
580
 
486
581
  type DynamicOverflowTooltipProps = {
487
582
  arrow?: boolean;
@@ -500,7 +595,7 @@ interface FilledLabelProps {
500
595
  color?: string;
501
596
  copy?: any;
502
597
  }
503
- declare const _default$a: React.MemoExoticComponent<(props: FilledLabelProps) => react_jsx_runtime.JSX.Element>;
598
+ declare const _default$c: React.MemoExoticComponent<(props: FilledLabelProps) => react_jsx_runtime.JSX.Element>;
504
599
 
505
600
  type IFilterGroupSelector = {
506
601
  name?: string;
@@ -539,7 +634,30 @@ interface FixedFooterProps {
539
634
  children: React.ReactNode;
540
635
  justifyContent?: string;
541
636
  }
542
- declare const _default$9: React.MemoExoticComponent<({ justifyContent, children }: FixedFooterProps) => react_jsx_runtime.JSX.Element>;
637
+ declare const _default$b: React.MemoExoticComponent<({ justifyContent, children }: FixedFooterProps) => react_jsx_runtime.JSX.Element>;
638
+
639
+ type GlobalSearchTriggerProps = {
640
+ onClick?: () => void;
641
+ onFocus?: () => void;
642
+ onChange?: (value: string) => void;
643
+ onKeyDown?: (event: KeyboardEvent<HTMLInputElement>) => void;
644
+ readOnly?: boolean;
645
+ placeholder?: string;
646
+ ariaLabel?: string;
647
+ shortcutLabel?: string;
648
+ value?: string;
649
+ minWidth?: number | string;
650
+ sx?: SxProps<Theme>;
651
+ ref?: Ref<HTMLDivElement>;
652
+ inputRef?: Ref<HTMLInputElement>;
653
+ };
654
+ declare const _default$a: React.MemoExoticComponent<({ onClick, onFocus, onChange, onKeyDown, readOnly, placeholder, ariaLabel, shortcutLabel, value, minWidth, sx, ref, inputRef, }: GlobalSearchTriggerProps) => react_jsx_runtime.JSX.Element>;
655
+
656
+ type GlobalSearchProps = {
657
+ onNavigate?(route: string): void;
658
+ shouldUseWindowLocation?(path: string): boolean;
659
+ };
660
+ declare const _default$9: React.MemoExoticComponent<({ onNavigate, shouldUseWindowLocation, }: GlobalSearchProps) => react_jsx_runtime.JSX.Element>;
543
661
 
544
662
  interface HeaderProps {
545
663
  appName: any;
@@ -661,11 +779,12 @@ interface PhoneInputProps {
661
779
  value?: string | null;
662
780
  onChange?: (phone: string | null) => void;
663
781
  placeholder?: string;
782
+ sx?: BoxProps['sx'];
664
783
  className?: string;
665
784
  label?: string;
666
785
  error?: boolean;
667
786
  }
668
- declare const PhoneInput: React.FC<PhoneInputProps>;
787
+ declare const PhoneInput: React__default.FC<PhoneInputProps>;
669
788
 
670
789
  interface PlusMinusInputProps {
671
790
  allowNegative?: any;
@@ -786,13 +905,17 @@ interface SearchAndFilterHeaderForTableProps {
786
905
  declare const _default$7: React.MemoExoticComponent<(props: SearchAndFilterHeaderForTableProps) => react_jsx_runtime.JSX.Element>;
787
906
 
788
907
  type SearchFieldDebouncedProps = {
789
- onSearch: (value: string) => void;
908
+ onSearch?: (value: string) => void;
909
+ value?: string;
910
+ onChange?: (e: React__default.ChangeEvent<HTMLInputElement>) => void;
911
+ onKeyDown?: (e: React__default.KeyboardEvent<HTMLInputElement>) => void;
790
912
  variant?: 'outlined' | 'filled' | 'standard';
791
913
  hideSearchIcon?: boolean;
792
914
  initialValue?: string;
793
915
  debounceDelay?: number;
794
916
  minCharacters?: number;
795
917
  sx?: SxProps<Theme>;
918
+ width?: number;
796
919
  inputProps?: {
797
920
  sx: SxProps<Theme>;
798
921
  };
@@ -801,10 +924,15 @@ declare const SearchFieldDebounced: React__default.FC<SearchFieldDebouncedProps>
801
924
 
802
925
  type SearchHeaderProps = {
803
926
  renderButton?: ReactNode;
927
+ renderExtraAction?: ReactNode;
804
928
  children?: ReactNode;
805
- onSearch: (value: string) => void;
929
+ onSearch?: (value: string) => void;
930
+ value?: string;
931
+ onChange?: (e: React__default.ChangeEvent<HTMLInputElement>) => void;
932
+ onKeyDown?: (e: React__default.KeyboardEvent<HTMLInputElement>) => void;
933
+ width?: number;
806
934
  };
807
- declare const SearchHeader: React.MemoExoticComponent<({ renderButton, children, onSearch }: SearchHeaderProps) => react_jsx_runtime.JSX.Element>;
935
+ declare const SearchHeader: ({ renderButton, renderExtraAction, children, onSearch, value, onChange, onKeyDown, width, }: SearchHeaderProps) => react_jsx_runtime.JSX.Element;
808
936
 
809
937
  interface ISearchWithFiltersProps {
810
938
  enterPressedInSearch?: () => void;
@@ -829,7 +957,7 @@ interface SearchWithFiltersForTableProps {
829
957
  }
830
958
  declare const _default$5: React.MemoExoticComponent<(props: SearchWithFiltersForTableProps) => react_jsx_runtime.JSX.Element>;
831
959
 
832
- interface ISectionName {
960
+ interface SectionNameProps {
833
961
  name: string;
834
962
  tooltipDescription?: string;
835
963
  sectionId?: string;
@@ -839,7 +967,7 @@ interface ISectionName {
839
967
  buttonDisabled?: boolean;
840
968
  openHistoryLog?: () => void;
841
969
  }
842
- declare const SectionName: ({ name, tooltipDescription, sectionId, handleButtonClick, buttonText, buttonType, buttonDisabled, openHistoryLog, }: ISectionName) => react_jsx_runtime.JSX.Element;
970
+ declare const SectionName: ({ name, tooltipDescription, sectionId, handleButtonClick, buttonText, buttonType, buttonDisabled, openHistoryLog, }: SectionNameProps) => react_jsx_runtime.JSX.Element;
843
971
 
844
972
  type Option = {
845
973
  value?: string | number;
@@ -847,85 +975,45 @@ type Option = {
847
975
  disabled?: boolean;
848
976
  };
849
977
  interface SmartSelectProps {
850
- /**
851
- * The current selected value of the select input. It can be a string, number, or null.
852
- * If null, it indicates that no value is selected.
853
- */
854
978
  value?: string | number | null;
855
- /**
856
- * The default option that is displayed when no value is selected.
857
- * This is an object with a value and a label. If null, no default option is shown.
858
- */
859
979
  defaultOption?: Option;
860
- /**
861
- * An array of available options to display in the select dropdown.
862
- * Each option is an object with `value` and `label` properties.
863
- */
864
980
  options?: Option[];
865
- /**
866
- * A function to refetch data if there are no options available in the dropdown.
867
- * It can be called when the dropdown is opened and the list of options is empty.
868
- */
869
981
  refetch?: () => void;
870
- /**
871
- * A boolean indicating whether the component is fetching data.
872
- * If true, the loading spinner will be shown in the dropdown.
873
- */
874
982
  isFetching?: boolean;
875
- /**
876
- * Callback function called when an option is selected from the dropdown.
877
- * The selected option is passed as an argument to this function.
878
- */
879
983
  onChange: (selectedOption: Option) => void;
880
- /**
881
- * A label for the select input. It will be displayed above the select dropdown.
882
- */
984
+ onKeyDownCapture?: (event: KeyboardEvent<HTMLDivElement>) => void;
883
985
  inputLabel?: string;
884
- /**
885
- * Style variant to choose.
886
- */
887
- variant?: 'standard' | 'outlined' | 'filled';
888
- /**
889
- * Size to choose.
890
- */
891
- size?: 'medium' | 'small';
892
- /**
893
- * A boolean indicating validation error.
894
- * It allows use of error styling when validation is required.
895
- */
986
+ variant?: SelectProps['variant'];
987
+ size?: SelectProps['size'];
896
988
  error?: boolean;
897
- /**
898
- * Helper text that is displayed below the select input.
899
- * It can be used to provide additional information or instructions to the user.
900
- */
901
989
  helperText?: string;
902
- /**
903
- * A boolean indicating whether the select input is disabled.
904
- * If true, the input will be disabled, and users will not be able to interact with it.
905
- */
906
990
  disabled?: boolean;
907
- /**
908
- * A boolean indicating whether the select should include a blank option.
909
- */
910
991
  allowBlankOption?: boolean;
911
- /**
912
- * The `data-testid` attribute used for testing purposes.
913
- * It is helpful to uniquely identify the component in automated tests.
914
- */
915
992
  'data-testid'?: string;
916
- /**
917
- * A message to display when there are no options available in the dropdown.
918
- * It will be shown when `isFetching` is false and `options` is empty.
919
- * The default message is 'No options'.
920
- */
921
993
  emptyMessage?: string;
922
- /**
923
- * Manage the MenuProps
924
- */
925
994
  menuProps?: Partial<MenuProps>;
926
995
  }
927
996
  declare const SmartSelect: React.ForwardRefExoticComponent<SmartSelectProps & React.RefAttributes<unknown>>;
928
997
 
998
+ type SmartMultipleSelectProps = {
999
+ inputLabel?: string;
1000
+ variant?: SelectProps['variant'];
1001
+ size?: SelectProps['size'];
1002
+ error?: boolean;
1003
+ values?: Option[];
1004
+ defaultValues?: Option[];
1005
+ onOpen?: () => void;
1006
+ onChange?: (values: Option[]) => void;
1007
+ onClose?: (values: Option[]) => void;
1008
+ menuOptions?: Option[];
1009
+ isLoading?: boolean;
1010
+ disabled?: boolean;
1011
+ emptyMessage?: string;
1012
+ helperText?: string;
1013
+ menuProps?: Partial<MenuProps>;
1014
+ };
1015
+ declare const SmartMultipleSelect: FC<SmartMultipleSelectProps>;
1016
+
929
1017
  interface SquareLabelProps {
930
1018
  color?: string;
931
1019
  copy?: any;
@@ -949,7 +1037,7 @@ type SmartTableHeaderFilterMenuProps = {
949
1037
  shouldShowCheckOnFilter?: TableDesktopProps['shouldShowCheckOnFilter'];
950
1038
  onApplyFilters?: TableDesktopProps['onApplyFilters'];
951
1039
  };
952
- declare const SmartTableHeaderFilterMenu: React__default.MemoExoticComponent<({ headCell, numActiveFilters, headerFilters, shouldShowCheckOnFilter, onApplyFilters, }: SmartTableHeaderFilterMenuProps) => react_jsx_runtime.JSX.Element>;
1040
+ declare const SmartTableHeaderFilterMenu: ({ headCell, numActiveFilters, headerFilters, shouldShowCheckOnFilter, onApplyFilters, }: SmartTableHeaderFilterMenuProps) => react_jsx_runtime.JSX.Element;
953
1041
 
954
1042
  type SmartTableHeaderProps = {
955
1043
  order: Order;
@@ -987,40 +1075,25 @@ interface TableProps {
987
1075
  declare const Table: ({ appliedFilters, data, doNotCalculateRows, headCells, isLoading, onRowClick, page, RenderItem, rowsPerPage: defaultRowsPerPage, serverRendered, updateSort, }: TableProps) => react_jsx_runtime.JSX.Element;
988
1076
 
989
1077
  type TableDesktopEditableFieldProps = {
1078
+ headCell: HeadCell;
990
1079
  editInitialValue?: any;
991
- rowId?: number;
992
- field: string;
993
- fieldName: string;
1080
+ rowId?: RowId;
994
1081
  disabled?: boolean;
995
1082
  showCheckboxLabel?: boolean;
996
- inputLabel: string;
997
1083
  variant?: 'standard' | 'outlined' | 'filled';
998
1084
  size?: 'medium' | 'small';
999
- editableCellType: EditableCellType;
1000
- filterOptions?: HeadCell['filterOptions'];
1001
- refetchFilterOptions?: HeadCell['refetchFilterOptions'];
1002
- isFetchingFilterOptions?: HeadCell['isFetchingFilterOptions'];
1003
- validateInput?: HeadCell['validateInput'];
1004
- onUpdateEditableCell?: HeadCell['onUpdateEditableCell'];
1085
+ onUpdateEditableCell: HeadCell['onUpdateEditableCell'];
1005
1086
  };
1006
1087
  declare const TableDesktopEditableField: FC<TableDesktopEditableFieldProps>;
1007
1088
 
1089
+ type ReadOnlyValue = string | number | boolean | ReactNode;
1008
1090
  type TableDesktopCellProps = {
1009
- editableCellType?: EditableCellType;
1010
1091
  editInitialValue: any;
1011
- rowId: number;
1012
- field: string;
1013
- fieldName: string;
1092
+ rowId: RowId;
1014
1093
  enableEditMode: boolean;
1015
1094
  disabled?: boolean;
1016
- readOnlyValue: string | number | boolean;
1017
- width?: HeadCell['width'];
1018
- inputLabel: HeadCell['label'];
1019
- filterOptions?: HeadCell['filterOptions'];
1020
- refetchFilterOptions?: HeadCell['refetchFilterOptions'];
1021
- isFetchingFilterOptions?: HeadCell['isFetchingFilterOptions'];
1022
- validateInput?: HeadCell['validateInput'];
1023
- onUpdateEditableCell?: HeadCell['onUpdateEditableCell'];
1095
+ readOnlyValue: ReadOnlyValue;
1096
+ headCell: HeadCell;
1024
1097
  onCellClick?: (event: MouseEvent<HTMLTableCellElement>, isEditMode: boolean) => void;
1025
1098
  };
1026
1099
  declare const TableDesktopCell: FC<TableDesktopCellProps>;
@@ -1069,9 +1142,11 @@ type Props = {
1069
1142
  handleOpen: () => void;
1070
1143
  LeftDrawer: ReactNode;
1071
1144
  leftSection?: ReactNode;
1145
+ centerSection?: ReactNode;
1072
1146
  rightSection?: ReactNode;
1147
+ isAuthenticated?: boolean;
1073
1148
  };
1074
- declare const _default$1: React.MemoExoticComponent<({ imageLogoDarkSmall, imageLogoLightSmall, handleOpen, LeftDrawer, leftSection, rightSection, }: Props) => react_jsx_runtime.JSX.Element>;
1149
+ declare const _default$1: React.MemoExoticComponent<({ imageLogoDarkSmall, imageLogoLightSmall, handleOpen, LeftDrawer, leftSection, centerSection, rightSection, isAuthenticated, }: Props) => react_jsx_runtime.JSX.Element>;
1075
1150
 
1076
1151
  type IToastMessage = {
1077
1152
  toastType: 'success' | 'info' | 'warning' | 'error';
@@ -1125,8 +1200,26 @@ type UserBustProps = {
1125
1200
  };
1126
1201
  declare const _default: React.MemoExoticComponent<({ user, avatarProps, typographyProps }: UserBustProps) => react_jsx_runtime.JSX.Element>;
1127
1202
 
1203
+ type Tag = {
1204
+ id: number;
1205
+ tag: string;
1206
+ };
1207
+ type AutocompleteType<T extends Tag> = AutocompleteProps<T, false, false, false>;
1208
+ interface HashtagInputProps extends Omit<AutocompleteType<any>, 'options' | 'renderInput'> {
1209
+ label?: TextFieldProps['label'];
1210
+ placeholder?: TextFieldProps['placeholder'];
1211
+ variant?: TextFieldProps['variant'];
1212
+ error?: TextFieldProps['error'];
1213
+ helperText?: TextFieldProps['helperText'];
1214
+ autoFocus?: TextFieldProps['autoFocus'];
1215
+ disableOnBlurCreation?: boolean;
1216
+ onCreateTag?: (tagName?: string) => void;
1217
+ onDeleteTag?: (tag?: Tag | string) => void;
1218
+ }
1219
+ declare const HashtagInput: ({ label, placeholder, variant, error, helperText, onCreateTag, onDeleteTag, autoFocus, disableOnBlurCreation, onBlur, ...props }: HashtagInputProps) => react_jsx_runtime.JSX.Element;
1220
+
1128
1221
  declare const SvgIconCompare: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
1129
1222
 
1130
1223
  declare const SvgIconChart: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
1131
1224
 
1132
- export { ActiveFiltersIconButton, 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, DynamicOverflowTooltip, EditableCellType, _default$j as ExtendedButton, FileCard, _default$i as FilledButton, _default$h as FilledButtonLg, _default$a as FilledLabel, FilterGroupSelector, FilterOptionsCheckboxes, FilterSimpleSelector, _default$9 as FixedFooter, 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, 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, RowProductCard, ScrollableDialog, SearchAndFilterHeader, _default$7 as SearchAndFilterHeaderForTable, SearchFieldDebounced, SearchHeader, _default$6 as SearchWithFilters, _default$5 as SearchWithFiltersForTable, SectionName, 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 };
1225
+ export { ActiveFiltersIconButton, AddressFormFields, type AddressOption, AlertDialog, AlertDialogFullScreen, AppLabel, AppliedTableFiltersDisplay, AutocompleteFilterMenuContent, BackHeader, BottomBar, _default$m as BoxButton, CheckboxFilterMenuContent, ClearFiltersConfirmationDialog, CompanyLogo, ConfirmationDialog, ControlledCheckbox, ControlledNumberInput, ControlledNumericField, ControlledSelectWithArray, ControlledSelectWithObject, ControlledValidTextInput, DataGrid, Date, _default$e as DeleteSubstitutionDialogContent, _default$d as DeleteUserDialogContent, DeliveryInstructionsFormFields, DynamicOverflowTooltip, _default$l as ExtendedButton, FileCard, _default$k as FilledButton, _default$j as FilledButtonLg, _default$c as FilledLabel, FilterGroupSelector, FilterOptionsCheckboxes, FilterSimpleSelector, _default$b as FixedFooter, _default$9 as GlobalSearch, _default$a as GlobalSearchTrigger, GooglePlacesAddressAutocomplete, HashtagInput, HeadCell, Header, HeaderFilterObject, HeaderFilterOptions, HeaderFilters, SvgIconChart as IconChart, SvgIconCompare as IconCompare, _default$i as ImageButton, LabeledValueList, VirtualizedList as List, Loading, LocationsSectionInfo, Notes, Numpad, _default$8 as NumpadInput, NumpadPlus, type Option, Order, _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, 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 };