@wavelengthusaf/components 4.24.5 → 4.26.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.
@@ -2,7 +2,6 @@ import * as React$1 from 'react';
2
2
  import React__default, { ReactNode, ChangeEvent, ReactElement, CSSProperties as CSSProperties$1 } from 'react';
3
3
  export { ChildDataTable as ChildDataTableElement, SampleComponent as SampleComponentElement, WavelengthBanner as WavelengthBannerElement, WavelengthButton as WavelengthButtonElement, WavelengthDatePicker as WavelengthDatePickerElement, WavelengthForm as WavelengthFormElement, WavelengthInput as WavelengthInputElement, WavelengthMultiSelectAutocomplete as WavelengthMultiSelectAutocompleteElement, WavelengthPagination as WavelengthPaginationElement, WavelengthProgressBar as WavelengthProgressBarElement, WavelengthTitleBar as WavelengthTitleBarElement } from '@wavelengthusaf/web-components';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
- import { TextFieldVariants } from '@mui/material';
6
5
  import { CSSProperties } from 'styled-components';
7
6
  import { z } from 'zod';
8
7
 
@@ -46,6 +45,24 @@ interface WavelengthButtonProps extends React__default.HTMLAttributes<HTMLElemen
46
45
  }
47
46
  declare const WavelengthButton: React__default.FC<WavelengthButtonProps>;
48
47
 
48
+ interface StyledButtonPropsTwo {
49
+ type: "channel_one_transparent" | "channel_one_launch" | "channel_one_request" | "channel_one_pending" | "channel_one_disabled" | "ewdms_tertiary" | "ewdms_primary" | "ewdms_secondary" | "brewery" | "default";
50
+ styles?: React__default.CSSProperties;
51
+ hoverstyles?: React__default.CSSProperties;
52
+ activestyles?: React__default.CSSProperties;
53
+ disabledstyles?: React__default.CSSProperties;
54
+ icon?: React__default.ReactNode;
55
+ disabled?: boolean;
56
+ children: React__default.ReactNode;
57
+ onClick?: React__default.MouseEventHandler<HTMLButtonElement>;
58
+ id?: string;
59
+ name?: string;
60
+ }
61
+ declare function WavelengthStyledButton({ type, styles, children, disabled, hoverstyles, icon, onClick, disabledstyles, activestyles, id, name }: StyledButtonPropsTwo): react_jsx_runtime.JSX.Element;
62
+ declare namespace WavelengthStyledButton {
63
+ var displayName: string;
64
+ }
65
+
49
66
  interface ButtonProps {
50
67
  onClick?: any;
51
68
  children?: ReactNode;
@@ -73,61 +90,6 @@ declare namespace WavelengthDropdownButton {
73
90
  var displayName: string;
74
91
  }
75
92
 
76
- interface WavelengthAutocompleteProps {
77
- id?: string;
78
- label: string;
79
- items?: any;
80
- variant?: TextFieldVariants;
81
- width?: number;
82
- borderColor?: string;
83
- hoverColor?: string;
84
- textColor?: string;
85
- onChange?: (selectedValue: string) => void;
86
- name?: string;
87
- }
88
- /**
89
- * Returns the Best Matching String from a List; Defaults to the first item if no good match is found
90
- * @param searchString - the string we want to look for
91
- * @param choices - the list of strings we get to choose from (must be greater than 0)
92
- * @returns - a string with the "best" match, or "" if no match is found
93
- */
94
- declare function findBestStringMatch(searchString: string, choices: string[]): string;
95
- declare function WavelengthAutocomplete({ label, width, variant, items, onChange, borderColor, textColor, hoverColor, id, name }: WavelengthAutocompleteProps): react_jsx_runtime.JSX.Element;
96
- declare namespace WavelengthAutocomplete {
97
- var displayName: string;
98
- }
99
-
100
- interface DownloadProps {
101
- fileLoc: "local" | "api";
102
- fileURL: string;
103
- fileName: string;
104
- button?: ReactNode | React__default.JSX.Element;
105
- id?: string;
106
- name?: string;
107
- }
108
- declare function WavelengthFileDownloader({ fileLoc, fileURL, fileName, button, id, name }: DownloadProps): react_jsx_runtime.JSX.Element | undefined;
109
- declare namespace WavelengthFileDownloader {
110
- var displayName: string;
111
- }
112
-
113
- interface StyledButtonPropsTwo {
114
- type: "channel_one_transparent" | "channel_one_launch" | "channel_one_request" | "channel_one_pending" | "channel_one_disabled" | "ewdms_tertiary" | "ewdms_primary" | "ewdms_secondary" | "brewery" | "default";
115
- styles?: React__default.CSSProperties;
116
- hoverstyles?: React__default.CSSProperties;
117
- activestyles?: React__default.CSSProperties;
118
- disabledstyles?: React__default.CSSProperties;
119
- icon?: React__default.ReactNode;
120
- disabled?: boolean;
121
- children: React__default.ReactNode;
122
- onClick?: React__default.MouseEventHandler<HTMLButtonElement>;
123
- id?: string;
124
- name?: string;
125
- }
126
- declare function WavelengthStyledButton({ type, styles, children, disabled, hoverstyles, icon, onClick, disabledstyles, activestyles, id, name }: StyledButtonPropsTwo): react_jsx_runtime.JSX.Element;
127
- declare namespace WavelengthStyledButton {
128
- var displayName: string;
129
- }
130
-
131
93
  interface WavelengthBoxProps {
132
94
  width?: number;
133
95
  height?: number;
@@ -203,39 +165,6 @@ interface WavelengthSearchProps extends React__default.HTMLAttributes<HTMLElemen
203
165
  }
204
166
  declare const WavelengthSearch: React__default.FC<WavelengthSearchProps>;
205
167
 
206
- declare function WavelengthSearchTextField(): react_jsx_runtime.JSX.Element;
207
- declare namespace WavelengthSearchTextField {
208
- var displayName: string;
209
- }
210
-
211
- interface SearchProps {
212
- id?: string;
213
- mode: "automatic" | "manual";
214
- type?: "text-box" | "search-bar";
215
- iconPos?: "start" | "end";
216
- clearIconMarginRight?: string;
217
- borderRadius?: number | string;
218
- label?: string;
219
- width?: string;
220
- height?: string | number;
221
- children?: ReactNode;
222
- borderColor?: string;
223
- hoverColor?: string;
224
- textColor?: string;
225
- backgroundColor?: string;
226
- placeholder?: string;
227
- onEnter?: (arg0?: any) => any;
228
- size?: "small" | "medium";
229
- fontSize?: string;
230
- options: SearchResult[];
231
- onChange?: React__default.ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>;
232
- onSearchItemSelected?: (selectedItem: SearchResult | string) => void;
233
- }
234
- declare function MuiSearch({ id, mode, type, width, height, label, size, borderRadius, children, placeholder, onEnter, onSearchItemSelected, options, onChange, borderColor, hoverColor, textColor, fontSize, backgroundColor, iconPos, clearIconMarginRight, }: SearchProps): react_jsx_runtime.JSX.Element | undefined;
235
- declare namespace MuiSearch {
236
- var displayName: string;
237
- }
238
-
239
168
  type WavelengthCardData = {
240
169
  title?: string;
241
170
  description?: string;
@@ -284,15 +213,17 @@ interface WavelengthNavBarProps extends React__default.HTMLAttributes<HTMLElemen
284
213
  }
285
214
  declare const WavelengthNavBar: React__default.FC<WavelengthNavBarProps>;
286
215
 
287
- interface IFileSelectedEventDetail {
216
+ interface FileSelectedEventDetail {
288
217
  files: File | File[];
289
218
  }
219
+ type IFileSelectedEventDetail = FileSelectedEventDetail;
290
220
  interface WavelengthFileDropZoneProps extends React__default.HTMLAttributes<HTMLElement> {
291
221
  acceptedTypes?: string;
292
222
  maxSize?: number;
293
223
  multiple?: boolean;
294
224
  dragText?: string;
295
225
  iconSrc?: string;
226
+ width?: string;
296
227
  onFilesSelected?: (files: File | File[]) => void;
297
228
  hostDisplay?: string;
298
229
  hostWidth?: string;
@@ -330,9 +261,9 @@ interface WavelengthFileDropZoneProps extends React__default.HTMLAttributes<HTML
330
261
  errorFontSize?: string;
331
262
  errorMarginTop?: string;
332
263
  }
333
- declare const WavelengthFileDropZone: React__default.FC<WavelengthFileDropZoneProps>;
264
+ declare const WavelengthFileDropZone: React__default.ForwardRefExoticComponent<WavelengthFileDropZoneProps & React__default.RefAttributes<HTMLElement>>;
334
265
 
335
- interface WavelengthWebSnackbarProps extends React__default.HTMLAttributes<HTMLElement> {
266
+ interface WavelengthSnackbarProps extends React__default.HTMLAttributes<HTMLElement> {
336
267
  message?: string;
337
268
  duration?: number;
338
269
  backgroundColor?: string;
@@ -346,7 +277,7 @@ interface WavelengthWebSnackbarProps extends React__default.HTMLAttributes<HTMLE
346
277
  horizontalAlign?: string;
347
278
  verticalAlign?: "top" | "center" | "bottom";
348
279
  }
349
- declare const WavelengthWebSnackbar: React__default.FC<WavelengthWebSnackbarProps>;
280
+ declare const WavelengthSnackbar: React__default.FC<WavelengthSnackbarProps>;
350
281
 
351
282
  type WavelengthSpinningLogoProps = {
352
283
  size?: number | string | null;
@@ -358,24 +289,6 @@ declare const WavelengthSpinningLogo: {
358
289
  displayName: string;
359
290
  };
360
291
 
361
- interface DragAndDropProps {
362
- width?: string;
363
- height?: string;
364
- border?: string;
365
- onFilesSelected: (files: File[]) => void;
366
- textColor?: string;
367
- fontSize?: string;
368
- allowedFileMIME?: string[];
369
- allowedFileExtensions?: string;
370
- backgroundColor?: string;
371
- dataTestId?: string;
372
- id?: string;
373
- }
374
- declare function WavelengthDragAndDrop({ width, height, onFilesSelected, border, textColor, fontSize, allowedFileMIME, allowedFileExtensions, backgroundColor, dataTestId, id, }: DragAndDropProps): react_jsx_runtime.JSX.Element;
375
- declare namespace WavelengthDragAndDrop {
376
- var displayName: string;
377
- }
378
-
379
292
  interface WavelengthProgressBarProps extends React__default.HTMLAttributes<HTMLElement> {
380
293
  name?: string;
381
294
  id?: string;
@@ -407,26 +320,6 @@ declare namespace WavelengthPermissionAlert {
407
320
  var displayName: string;
408
321
  }
409
322
 
410
- interface AccessAlertProps {
411
- height?: string;
412
- width?: string;
413
- access?: "Access Request" | "Access Granted" | "Access Denied";
414
- appAdmin?: string;
415
- time?: string;
416
- requestorName?: string;
417
- appNickname?: string;
418
- message?: string;
419
- appLogo?: string;
420
- dataTestId?: string;
421
- id?: string;
422
- backgroundColor?: string;
423
- onClear?: React__default.MouseEventHandler<HTMLAnchorElement> | undefined;
424
- }
425
- declare function WavelengthAccessAlert({ height, dataTestId, id, width, time, access, appNickname, appLogo, appAdmin, requestorName, }: AccessAlertProps): react_jsx_runtime.JSX.Element;
426
- declare namespace WavelengthAccessAlert {
427
- var displayName: string;
428
- }
429
-
430
323
  interface WavelengthAlertProps {
431
324
  id?: string;
432
325
  height?: string;
@@ -447,6 +340,24 @@ declare namespace WavelengthAlert {
447
340
  var displayName: string;
448
341
  }
449
342
 
343
+ interface DragAndDropProps {
344
+ width?: string;
345
+ height?: string;
346
+ border?: string;
347
+ onFilesSelected: (files: File[]) => void;
348
+ textColor?: string;
349
+ fontSize?: string;
350
+ allowedFileMIME?: string[];
351
+ allowedFileExtensions?: string;
352
+ backgroundColor?: string;
353
+ dataTestId?: string;
354
+ id?: string;
355
+ }
356
+ declare function WavelengthDragAndDrop({ width, height, onFilesSelected, border, textColor, fontSize, allowedFileMIME, allowedFileExtensions, backgroundColor, dataTestId, id, }: DragAndDropProps): react_jsx_runtime.JSX.Element;
357
+ declare namespace WavelengthDragAndDrop {
358
+ var displayName: string;
359
+ }
360
+
450
361
  interface WavelengthToolTipProps extends React__default.HTMLAttributes<HTMLElement> {
451
362
  color?: string;
452
363
  font?: string;
@@ -665,18 +576,6 @@ declare namespace WavelengthConfirmationModal {
665
576
  var displayName: string;
666
577
  }
667
578
 
668
- interface WavelengthContentModalProps {
669
- show: boolean;
670
- setShow: (show: boolean) => void;
671
- textObj: Record<string, string>;
672
- handleContentModalOnConfirmProp: () => void;
673
- id?: string;
674
- }
675
- declare function WavelengthContentModal(props: WavelengthContentModalProps): react_jsx_runtime.JSX.Element;
676
- declare namespace WavelengthContentModal {
677
- var displayName: string;
678
- }
679
-
680
579
  interface WavelengthPopUpMenuProps extends React__default.HTMLAttributes<HTMLElement> {
681
580
  customStyle?: StyleProp;
682
581
  variant?: "menu" | "card";
@@ -789,39 +688,6 @@ interface WavelengthPaginationProps extends React__default.HTMLAttributes<HTMLEl
789
688
  }
790
689
  declare const WavelengthPagination: React__default.FC<WavelengthPaginationProps>;
791
690
 
792
- interface PaginationProps {
793
- totalPages: number;
794
- boundaryCount?: number;
795
- siblingCount?: number;
796
- currentPageNumber: number;
797
- style?: "text" | "contained" | "outlined" | "circular";
798
- onPageChange: (page: number) => void;
799
- id?: string;
800
- }
801
- declare function WavelengthDefaultPagination({ totalPages, currentPageNumber, siblingCount, boundaryCount, style, onPageChange, id }: PaginationProps): react_jsx_runtime.JSX.Element;
802
- declare namespace WavelengthDefaultPagination {
803
- var displayName: string;
804
- }
805
-
806
- interface ConfirmationSnackbarProps {
807
- show: boolean;
808
- setShow: (show: boolean) => void;
809
- closeIcon?: ReactNode | React__default.JSX.Element;
810
- message?: ReactNode | React__default.JSX.Element;
811
- snackBarColor?: string;
812
- textColor?: string;
813
- horryAlign?: "left" | "right" | "center";
814
- vertyAlign?: "top" | "bottom";
815
- durationSb?: number;
816
- id?: string;
817
- width?: string | number;
818
- icon?: ReactNode;
819
- }
820
- declare function WavelengthSnackbar({ show, setShow, closeIcon, message, snackBarColor, textColor, horryAlign, vertyAlign, durationSb, width, icon, id }: ConfirmationSnackbarProps): react_jsx_runtime.JSX.Element;
821
- declare namespace WavelengthSnackbar {
822
- var displayName: string;
823
- }
824
-
825
691
  interface StandardSnackbarProps {
826
692
  type: "success" | "error" | "disabled";
827
693
  show: boolean;
@@ -841,23 +707,6 @@ declare namespace WavelengthStandardSnackbar {
841
707
  var displayName: string;
842
708
  }
843
709
 
844
- interface Testprops {
845
- isPopUpOpen: boolean;
846
- type: "success" | "error" | "disabled";
847
- icon?: ReactNode;
848
- width?: string | number;
849
- message?: string | ReactNode;
850
- img: React__default.JSX.Element | ReactNode;
851
- id?: string;
852
- toggleOpen: (value: React__default.SetStateAction<boolean>) => void;
853
- customVertyAlign?: string;
854
- }
855
- declare const useOutsideClick: (callback: () => void) => React__default.RefObject<HTMLDivElement>;
856
- declare function WavelengthTestSnackbar({ isPopUpOpen, toggleOpen, type, message, customVertyAlign, width, img, id }: Testprops): react_jsx_runtime.JSX.Element;
857
- declare namespace WavelengthTestSnackbar {
858
- var displayName: string;
859
- }
860
-
861
710
  interface WavelengthSliderProps extends React__default.HTMLAttributes<HTMLElement> {
862
711
  customStyle?: StyleProp;
863
712
  value?: number;
@@ -876,45 +725,6 @@ interface WavelengthSliderProps extends React__default.HTMLAttributes<HTMLElemen
876
725
  }
877
726
  declare const WavelengthSlider: React__default.FC<WavelengthSliderProps>;
878
727
 
879
- interface carouselItem$1 {
880
- title?: string;
881
- description?: string;
882
- image: string;
883
- path: string;
884
- }
885
- interface carouselConfigArray$1 {
886
- items: carouselItem$1[];
887
- }
888
- interface adjustableDimensions {
889
- buttonSize?: number;
890
- imageHeight?: number;
891
- imageWidth?: number;
892
- cardWidth?: number;
893
- cardHeight?: number;
894
- id?: string;
895
- name?: string;
896
- }
897
- declare const DefaultCarousel: React__default.FC<carouselConfigArray$1 & adjustableDimensions>;
898
-
899
- interface carouselItem {
900
- title?: string;
901
- description?: string;
902
- image: string;
903
- path: string;
904
- }
905
- interface carouselConfigArray {
906
- items: carouselItem[];
907
- }
908
- interface adjustDimenforCarousel {
909
- contHeight?: number;
910
- contWidth?: number;
911
- cardWidth?: number;
912
- cardHeight?: number;
913
- id?: string;
914
- name?: string;
915
- }
916
- declare const SliderCardCarousel: React__default.FC<carouselConfigArray & adjustDimenforCarousel>;
917
-
918
728
  interface WavelengthInputProps extends React__default.HTMLAttributes<HTMLElement> {
919
729
  id?: string;
920
730
  name?: string;
@@ -977,6 +787,27 @@ declare const WavelengthDataTable: {
977
787
  displayName: string;
978
788
  };
979
789
 
790
+ interface DataGridColumn {
791
+ field: string;
792
+ headerName?: string;
793
+ width?: number;
794
+ flex?: number;
795
+ }
796
+ interface DataGridRow {
797
+ id: string | number;
798
+ [key: string]: any;
799
+ }
800
+ interface WavelengthDataGridProps extends React__default.HTMLAttributes<HTMLElement> {
801
+ columns: DataGridColumn[];
802
+ rows: DataGridRow[];
803
+ pageSize?: number;
804
+ checkboxSelection?: boolean;
805
+ hidePagination?: boolean;
806
+ onSelectionChange?: (selectedIds: (string | number)[]) => void;
807
+ customStyle?: StyleProp;
808
+ }
809
+ declare const WavelengthDataGrid: React__default.FC<WavelengthDataGridProps>;
810
+
980
811
  interface ChildDataTableProps extends React__default.HTMLAttributes<HTMLElement> {
981
812
  columns?: any[];
982
813
  data?: any[];
@@ -1079,11 +910,13 @@ interface SampleComponentProps extends React__default.HTMLAttributes<HTMLElement
1079
910
  declare const SampleComponent: React__default.FC<SampleComponentProps>;
1080
911
 
1081
912
  interface WavelengthNotificationPanelProps extends React__default.HTMLAttributes<HTMLElement> {
1082
- notifications: string[];
1083
- darkMode?: boolean;
1084
- onMarkAsRead: () => void;
1085
913
  onSignOut: () => void;
1086
- accountLink?: string;
914
+ username: string;
915
+ action: Array<{
916
+ icon?: string;
917
+ name: string;
918
+ onClick: () => void;
919
+ }>;
1087
920
  }
1088
921
  declare const WavelengthNotificationPanel: React__default.FC<WavelengthNotificationPanelProps>;
1089
922
 
@@ -1133,4 +966,4 @@ interface WavelengthCheckboxListProps extends React__default.HTMLAttributes<HTML
1133
966
  }
1134
967
  declare const WavelengthCheckboxList: React__default.FC<WavelengthCheckboxListProps>;
1135
968
 
1136
- export { ButtonIcon, ButtonMenu, ChildDataTable, DefaultCarousel, type IFileSelectedEventDetail, MuiSearch, type NavItem, NestedDataTable, SampleComponent, type SearchProps, type SearchResult, SliderCardCarousel, type StyledButtonPropsTwo, type ThemeProperties, WavelengthAccessAlert, WavelengthAlert, WavelengthAppLogo, WavelengthAppTheme, WavelengthAutoComplete, WavelengthAutocomplete, WavelengthBadge, type WavelengthBadgeProps, WavelengthBanner, WavelengthBox, WavelengthButton, WavelengthCard, WavelengthCheckbox, WavelengthCheckboxList, WavelengthCommentDisplay, WavelengthConfirmationModal, WavelengthContentModal, WavelengthContentPlaceholder, WavelengthDataTable, WavelengthDatePicker, WavelengthDefaultIcon, WavelengthDefaultPagination, WavelengthDialog, WavelengthDragAndDrop, WavelengthDropdown, WavelengthDropdownButton, WavelengthExampleComponent, WavelengthFileDownloader, WavelengthFileDropZone, type WavelengthFileDropZoneProps, WavelengthFooter, WavelengthForm, WavelengthInput, WavelengthManyPlanes, WavelengthMenu, WavelengthMultiSelectAutocomplete, WavelengthNavBar, type WavelengthNavBarProps, WavelengthNotAvailablePage, WavelengthNotificationPanel, WavelengthPagination, WavelengthPermissionAlert, WavelengthPlaneTrail, WavelengthPopUpMenu, WavelengthProgressBar, WavelengthSearch, WavelengthSearchTextField, WavelengthSideBar, type WavelengthSideBarProps, WavelengthSlider, WavelengthSnackbar, WavelengthSpinningLogo, WavelengthStandardSnackbar, WavelengthStyledButton, WavelengthSwitch, WavelengthTestSnackbar, WavelengthTitleBar, WavelengthToolTip, WavelengthWebSnackbar, type WavelengthWebSnackbarProps, add, concat, findBestStringMatch, useOutsideClick, useThemeContext };
969
+ export { ButtonIcon, ButtonMenu, ChildDataTable, type DataGridColumn, type DataGridRow, type FileSelectedEventDetail, type IFileSelectedEventDetail, type NavItem, NestedDataTable, SampleComponent, type SearchResult, type StyledButtonPropsTwo, type ThemeProperties, WavelengthAlert, WavelengthAppLogo, WavelengthAppTheme, WavelengthAutoComplete, WavelengthBadge, type WavelengthBadgeProps, WavelengthBanner, WavelengthBox, WavelengthButton, WavelengthCard, WavelengthCheckbox, WavelengthCheckboxList, WavelengthCommentDisplay, WavelengthConfirmationModal, WavelengthContentPlaceholder, WavelengthDataGrid, WavelengthDataTable, WavelengthDatePicker, WavelengthDefaultIcon, WavelengthDialog, WavelengthDragAndDrop, WavelengthDropdown, WavelengthDropdownButton, WavelengthExampleComponent, WavelengthFileDropZone, type WavelengthFileDropZoneProps, WavelengthFooter, WavelengthForm, WavelengthInput, WavelengthManyPlanes, WavelengthMenu, WavelengthMultiSelectAutocomplete, WavelengthNavBar, type WavelengthNavBarProps, WavelengthNotAvailablePage, WavelengthNotificationPanel, WavelengthPagination, WavelengthPermissionAlert, WavelengthPlaneTrail, WavelengthPopUpMenu, WavelengthProgressBar, WavelengthSearch, WavelengthSideBar, type WavelengthSideBarProps, WavelengthSlider, WavelengthSnackbar, type WavelengthSnackbarProps, WavelengthSpinningLogo, WavelengthStandardSnackbar, WavelengthStyledButton, WavelengthSwitch, WavelengthTitleBar, WavelengthToolTip, add, concat, useThemeContext };