@wavelengthusaf/components 4.24.4 → 4.26.0

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,70 +45,6 @@ interface WavelengthButtonProps extends React__default.HTMLAttributes<HTMLElemen
46
45
  }
47
46
  declare const WavelengthButton: React__default.FC<WavelengthButtonProps>;
48
47
 
49
- interface ButtonProps {
50
- onClick?: any;
51
- children?: ReactNode;
52
- id?: string;
53
- name?: string;
54
- }
55
- interface IconProps {
56
- text: string;
57
- numIcon?: string;
58
- children: ReactNode;
59
- active?: boolean;
60
- width: string;
61
- height: number;
62
- fontsize: number;
63
- id?: string;
64
- name?: string;
65
- }
66
- declare function ButtonIcon({ text, numIcon, children, active, width, height, fontsize, id, name }: IconProps): react_jsx_runtime.JSX.Element;
67
- interface ButtonMenuProps {
68
- children: ReactNode;
69
- }
70
- declare function ButtonMenu({ children }: ButtonMenuProps): react_jsx_runtime.JSX.Element;
71
- declare function WavelengthDropdownButton({ children, onClick }: ButtonProps): React__default.JSX.Element;
72
- declare namespace WavelengthDropdownButton {
73
- var displayName: string;
74
- }
75
-
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
48
  interface StyledButtonPropsTwo {
114
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";
115
50
  styles?: React__default.CSSProperties;
@@ -203,39 +138,6 @@ interface WavelengthSearchProps extends React__default.HTMLAttributes<HTMLElemen
203
138
  }
204
139
  declare const WavelengthSearch: React__default.FC<WavelengthSearchProps>;
205
140
 
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
141
  type WavelengthCardData = {
240
142
  title?: string;
241
143
  description?: string;
@@ -284,15 +186,17 @@ interface WavelengthNavBarProps extends React__default.HTMLAttributes<HTMLElemen
284
186
  }
285
187
  declare const WavelengthNavBar: React__default.FC<WavelengthNavBarProps>;
286
188
 
287
- interface IFileSelectedEventDetail {
189
+ interface FileSelectedEventDetail {
288
190
  files: File | File[];
289
191
  }
192
+ type IFileSelectedEventDetail = FileSelectedEventDetail;
290
193
  interface WavelengthFileDropZoneProps extends React__default.HTMLAttributes<HTMLElement> {
291
194
  acceptedTypes?: string;
292
195
  maxSize?: number;
293
196
  multiple?: boolean;
294
197
  dragText?: string;
295
198
  iconSrc?: string;
199
+ width?: string;
296
200
  onFilesSelected?: (files: File | File[]) => void;
297
201
  hostDisplay?: string;
298
202
  hostWidth?: string;
@@ -330,9 +234,9 @@ interface WavelengthFileDropZoneProps extends React__default.HTMLAttributes<HTML
330
234
  errorFontSize?: string;
331
235
  errorMarginTop?: string;
332
236
  }
333
- declare const WavelengthFileDropZone: React__default.FC<WavelengthFileDropZoneProps>;
237
+ declare const WavelengthFileDropZone: React__default.ForwardRefExoticComponent<WavelengthFileDropZoneProps & React__default.RefAttributes<HTMLElement>>;
334
238
 
335
- interface WavelengthWebSnackbarProps extends React__default.HTMLAttributes<HTMLElement> {
239
+ interface WavelengthSnackbarProps extends React__default.HTMLAttributes<HTMLElement> {
336
240
  message?: string;
337
241
  duration?: number;
338
242
  backgroundColor?: string;
@@ -346,7 +250,7 @@ interface WavelengthWebSnackbarProps extends React__default.HTMLAttributes<HTMLE
346
250
  horizontalAlign?: string;
347
251
  verticalAlign?: "top" | "center" | "bottom";
348
252
  }
349
- declare const WavelengthWebSnackbar: React__default.FC<WavelengthWebSnackbarProps>;
253
+ declare const WavelengthSnackbar: React__default.FC<WavelengthSnackbarProps>;
350
254
 
351
255
  type WavelengthSpinningLogoProps = {
352
256
  size?: number | string | null;
@@ -358,24 +262,6 @@ declare const WavelengthSpinningLogo: {
358
262
  displayName: string;
359
263
  };
360
264
 
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
265
  interface WavelengthProgressBarProps extends React__default.HTMLAttributes<HTMLElement> {
380
266
  name?: string;
381
267
  id?: string;
@@ -407,26 +293,6 @@ declare namespace WavelengthPermissionAlert {
407
293
  var displayName: string;
408
294
  }
409
295
 
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
296
  interface WavelengthAlertProps {
431
297
  id?: string;
432
298
  height?: string;
@@ -447,6 +313,24 @@ declare namespace WavelengthAlert {
447
313
  var displayName: string;
448
314
  }
449
315
 
316
+ interface DragAndDropProps {
317
+ width?: string;
318
+ height?: string;
319
+ border?: string;
320
+ onFilesSelected: (files: File[]) => void;
321
+ textColor?: string;
322
+ fontSize?: string;
323
+ allowedFileMIME?: string[];
324
+ allowedFileExtensions?: string;
325
+ backgroundColor?: string;
326
+ dataTestId?: string;
327
+ id?: string;
328
+ }
329
+ declare function WavelengthDragAndDrop({ width, height, onFilesSelected, border, textColor, fontSize, allowedFileMIME, allowedFileExtensions, backgroundColor, dataTestId, id, }: DragAndDropProps): react_jsx_runtime.JSX.Element;
330
+ declare namespace WavelengthDragAndDrop {
331
+ var displayName: string;
332
+ }
333
+
450
334
  interface WavelengthToolTipProps extends React__default.HTMLAttributes<HTMLElement> {
451
335
  color?: string;
452
336
  font?: string;
@@ -494,16 +378,6 @@ interface WavelengthCommentDisplayProps extends React__default.HTMLAttributes<HT
494
378
  }
495
379
  declare const WavelengthCommentDisplay: React__default.FC<WavelengthCommentDisplayProps>;
496
380
 
497
- interface WavelengthFooterProps {
498
- text?: string;
499
- textColor?: string;
500
- id?: string;
501
- }
502
- declare function WavelengthFooter({ text, textColor, id }: WavelengthFooterProps): react_jsx_runtime.JSX.Element;
503
- declare namespace WavelengthFooter {
504
- var displayName: string;
505
- }
506
-
507
381
  /** Attributes passed through to the underlying `wavelength-button` */
508
382
  interface WavelengthButtonAttributes extends React__default.HTMLAttributes<HTMLElement> {
509
383
  [key: string]: any;
@@ -665,18 +539,6 @@ declare namespace WavelengthConfirmationModal {
665
539
  var displayName: string;
666
540
  }
667
541
 
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
542
  interface WavelengthPopUpMenuProps extends React__default.HTMLAttributes<HTMLElement> {
681
543
  customStyle?: StyleProp;
682
544
  variant?: "menu" | "card";
@@ -789,39 +651,6 @@ interface WavelengthPaginationProps extends React__default.HTMLAttributes<HTMLEl
789
651
  }
790
652
  declare const WavelengthPagination: React__default.FC<WavelengthPaginationProps>;
791
653
 
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
654
  interface StandardSnackbarProps {
826
655
  type: "success" | "error" | "disabled";
827
656
  show: boolean;
@@ -841,23 +670,6 @@ declare namespace WavelengthStandardSnackbar {
841
670
  var displayName: string;
842
671
  }
843
672
 
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
673
  interface WavelengthSliderProps extends React__default.HTMLAttributes<HTMLElement> {
862
674
  customStyle?: StyleProp;
863
675
  value?: number;
@@ -876,45 +688,6 @@ interface WavelengthSliderProps extends React__default.HTMLAttributes<HTMLElemen
876
688
  }
877
689
  declare const WavelengthSlider: React__default.FC<WavelengthSliderProps>;
878
690
 
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
691
  interface WavelengthInputProps extends React__default.HTMLAttributes<HTMLElement> {
919
692
  id?: string;
920
693
  name?: string;
@@ -977,6 +750,27 @@ declare const WavelengthDataTable: {
977
750
  displayName: string;
978
751
  };
979
752
 
753
+ interface DataGridColumn {
754
+ field: string;
755
+ headerName?: string;
756
+ width?: number;
757
+ flex?: number;
758
+ }
759
+ interface DataGridRow {
760
+ id: string | number;
761
+ [key: string]: any;
762
+ }
763
+ interface WavelengthDataGridProps extends React__default.HTMLAttributes<HTMLElement> {
764
+ columns: DataGridColumn[];
765
+ rows: DataGridRow[];
766
+ pageSize?: number;
767
+ checkboxSelection?: boolean;
768
+ hidePagination?: boolean;
769
+ onSelectionChange?: (selectedIds: (string | number)[]) => void;
770
+ customStyle?: StyleProp;
771
+ }
772
+ declare const WavelengthDataGrid: React__default.FC<WavelengthDataGridProps>;
773
+
980
774
  interface ChildDataTableProps extends React__default.HTMLAttributes<HTMLElement> {
981
775
  columns?: any[];
982
776
  data?: any[];
@@ -1079,11 +873,13 @@ interface SampleComponentProps extends React__default.HTMLAttributes<HTMLElement
1079
873
  declare const SampleComponent: React__default.FC<SampleComponentProps>;
1080
874
 
1081
875
  interface WavelengthNotificationPanelProps extends React__default.HTMLAttributes<HTMLElement> {
1082
- notifications: string[];
1083
- darkMode?: boolean;
1084
- onMarkAsRead: () => void;
1085
876
  onSignOut: () => void;
1086
- accountLink?: string;
877
+ username: string;
878
+ action: Array<{
879
+ icon?: string;
880
+ name: string;
881
+ onClick: () => void;
882
+ }>;
1087
883
  }
1088
884
  declare const WavelengthNotificationPanel: React__default.FC<WavelengthNotificationPanelProps>;
1089
885
 
@@ -1133,4 +929,4 @@ interface WavelengthCheckboxListProps extends React__default.HTMLAttributes<HTML
1133
929
  }
1134
930
  declare const WavelengthCheckboxList: React__default.FC<WavelengthCheckboxListProps>;
1135
931
 
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 };
932
+ export { 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, WavelengthExampleComponent, WavelengthFileDropZone, type WavelengthFileDropZoneProps, 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 };