@wavelengthusaf/components 2.9.0 → 2.9.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.
@@ -1,8 +1,7 @@
1
1
  import * as React$1 from 'react';
2
2
  import React__default, { ReactNode, ReactElement } from 'react';
3
- import { SxProps, Theme } from '@mui/material/styles';
4
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
- import { TextFieldVariants, SxProps as SxProps$1, Theme as Theme$1 } from '@mui/material';
4
+ import { TextFieldVariants, SxProps, Theme } from '@mui/material';
6
5
  import { Mark } from '@mui/material/Slider/useSlider.types';
7
6
 
8
7
  /**
@@ -21,22 +20,25 @@ declare function add(a: number, b: number): number;
21
20
  */
22
21
  declare function concat(a: string, b: string): string;
23
22
 
24
- interface OutlinedButtonProps {
25
- id?: string;
26
- variant: "outlined" | "contained" | "text" | "custom";
27
- colorOne?: string;
28
- colorTwo?: string;
29
- onClick?: any;
23
+ interface WavelengthButtonProps extends React__default.HTMLAttributes<HTMLElement> {
24
+ variant?: "contained" | "outlined" | "text";
25
+ size?: "small" | "medium" | "large";
26
+ height?: string;
27
+ width?: string;
30
28
  margin?: string;
31
29
  padding?: string;
32
- autoFocus?: boolean;
30
+ colorOne?: string;
31
+ colorTwo?: string;
32
+ fontSize?: string;
33
33
  disabled?: boolean;
34
- children?: ReactNode;
35
- data_test?: string;
36
34
  borderRadius?: string;
37
- mySx?: SxProps<Theme> | undefined;
35
+ onClick?: React__default.MouseEventHandler<HTMLElement>;
36
+ children?: React__default.ReactNode;
37
+ href?: string;
38
+ target?: "_self" | "_blank" | "_parent" | "_top";
39
+ boxShadow?: string;
38
40
  }
39
- declare function WavelengthButton({ id, variant, colorOne, colorTwo, margin, padding, autoFocus, disabled, onClick, children, borderRadius, mySx }: OutlinedButtonProps): React__default.JSX.Element;
41
+ declare const WavelengthButton: React__default.FC<WavelengthButtonProps>;
40
42
 
41
43
  interface ButtonProps {
42
44
  onClick?: any;
@@ -258,49 +260,6 @@ interface CommentProps {
258
260
  }
259
261
  declare function WavelengthCommentDisplay(props: CommentProps): react_jsx_runtime.JSX.Element;
260
262
 
261
- interface PermissionAlertProps {
262
- height?: string;
263
- width?: string;
264
- permission?: "Permission Requested" | "Permission Denied";
265
- applicationName?: string;
266
- requestorName?: string;
267
- dateOfRequest?: string;
268
- backgroundColor?: string;
269
- unit?: string;
270
- onDismiss?: React__default.MouseEventHandler<HTMLAnchorElement> | undefined;
271
- dataTestId?: string;
272
- }
273
- declare function WavelengthPermissionAlert({ dataTestId, height, width, backgroundColor, permission, applicationName, requestorName, dateOfRequest, onDismiss, unit, }: PermissionAlertProps): react_jsx_runtime.JSX.Element;
274
-
275
- interface AccessAlertProps {
276
- height?: string;
277
- width?: string;
278
- access?: "Access Request" | "Access Granted" | "Access Denied";
279
- appAdmin?: string;
280
- time?: string;
281
- requestorName?: string;
282
- appNickname?: string;
283
- message?: string;
284
- appLogo?: string;
285
- dataTestId?: string;
286
- backgroundColor?: string;
287
- onClear?: React__default.MouseEventHandler<HTMLAnchorElement> | undefined;
288
- }
289
- declare function WavelengthAccessAlert({ height, dataTestId, width, time, access, appNickname, appLogo, appAdmin, requestorName, }: AccessAlertProps): react_jsx_runtime.JSX.Element;
290
-
291
- interface WavelengthAlertProps {
292
- id?: string;
293
- height?: string;
294
- width?: string;
295
- backgroundColor?: string;
296
- alertHeader?: string;
297
- alertDescription?: string;
298
- datatestid?: string;
299
- viewed?: boolean;
300
- onClose?: () => void;
301
- }
302
- declare function WavelengthAlert({ viewed, width, height, backgroundColor, alertHeader, alertDescription, datatestid, id, onClose, }: WavelengthAlertProps): react_jsx_runtime.JSX.Element;
303
-
304
263
  interface WavelengthFooterProps {
305
264
  text?: string;
306
265
  textColor?: string;
@@ -409,7 +368,7 @@ interface DropdownProps {
409
368
  palette: "brewery" | "custom";
410
369
  width: string;
411
370
  options: menuOptions[];
412
- buttonSx?: SxProps$1<Theme$1> | undefined;
371
+ buttonSx?: SxProps<Theme> | undefined;
413
372
  menuSx?: MenuSxProps;
414
373
  buttonText: string | ReactNode;
415
374
  }
@@ -572,4 +531,4 @@ type Props<T> = {
572
531
  };
573
532
  declare const WavelengthDataTable: <T extends DataType>({ data, columns, itemsPerPage, totalPages }: Props<T>) => react_jsx_runtime.JSX.Element;
574
533
 
575
- export { AppLogo, ButtonIcon, ButtonMenu, DefaultCarousel, DefaultIcon, DefaultPagination, ManyPlanesComponent, NotAvailablePage, type SearchProps, type SearchResult, SearchTextField, SliderCardCarousel, type StyledButtonPropsTwo, TestSnackbar, type ThemeProperties, WavelengthAccessAlert, WavelengthAlert, WavelengthAppTheme, WavelengthAutocomplete, WavelengthBanner, WavelengthBox, WavelengthButton, WavelengthCommentDisplay, WavelengthConfirmationModal, WavelengthContentModal, WavelengthContentPlaceholder, WavelengthDataTable, WavelengthDragAndDrop, WavelengthDropdown, WavelengthDropdownButton, WavelengthExampleComponent, WavelengthFileDownloader, WavelengthFooter, WavelengthPermissionAlert, WavelengthPlaneTrail, WavelengthPopUpMenu, WavelengthProgressBar, WavelengthSearch, WavelengthSideBar, WavelengthSlider, WavelengthSnackbar, WavelengthSpinningLogo, WavelengthSpinningOuterCircle, WavelengthStandardSnackbar, WavelengthStyledButton, WavelengthTextField, WavelengthTitleBar, add, ascendingRange, concat, findBestStringMatch, type menuItemProps, range, useOutsideClick, useThemeContext };
534
+ export { AppLogo, ButtonIcon, ButtonMenu, DefaultCarousel, DefaultIcon, DefaultPagination, ManyPlanesComponent, NotAvailablePage, type SearchProps, type SearchResult, SearchTextField, SliderCardCarousel, type StyledButtonPropsTwo, TestSnackbar, type ThemeProperties, WavelengthAppTheme, WavelengthAutocomplete, WavelengthBanner, WavelengthBox, WavelengthButton, type WavelengthButtonProps, WavelengthCommentDisplay, WavelengthConfirmationModal, WavelengthContentModal, WavelengthContentPlaceholder, WavelengthDataTable, WavelengthDragAndDrop, WavelengthDropdown, WavelengthDropdownButton, WavelengthExampleComponent, WavelengthFileDownloader, WavelengthFooter, WavelengthPlaneTrail, WavelengthPopUpMenu, WavelengthProgressBar, WavelengthSearch, WavelengthSideBar, WavelengthSlider, WavelengthSnackbar, WavelengthSpinningLogo, WavelengthSpinningOuterCircle, WavelengthStandardSnackbar, WavelengthStyledButton, WavelengthTextField, WavelengthTitleBar, add, ascendingRange, concat, findBestStringMatch, type menuItemProps, range, useOutsideClick, useThemeContext };
@@ -1,8 +1,7 @@
1
1
  import * as React$1 from 'react';
2
2
  import React__default, { ReactNode, ReactElement } from 'react';
3
- import { SxProps, Theme } from '@mui/material/styles';
4
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
- import { TextFieldVariants, SxProps as SxProps$1, Theme as Theme$1 } from '@mui/material';
4
+ import { TextFieldVariants, SxProps, Theme } from '@mui/material';
6
5
  import { Mark } from '@mui/material/Slider/useSlider.types';
7
6
 
8
7
  /**
@@ -21,22 +20,25 @@ declare function add(a: number, b: number): number;
21
20
  */
22
21
  declare function concat(a: string, b: string): string;
23
22
 
24
- interface OutlinedButtonProps {
25
- id?: string;
26
- variant: "outlined" | "contained" | "text" | "custom";
27
- colorOne?: string;
28
- colorTwo?: string;
29
- onClick?: any;
23
+ interface WavelengthButtonProps extends React__default.HTMLAttributes<HTMLElement> {
24
+ variant?: "contained" | "outlined" | "text";
25
+ size?: "small" | "medium" | "large";
26
+ height?: string;
27
+ width?: string;
30
28
  margin?: string;
31
29
  padding?: string;
32
- autoFocus?: boolean;
30
+ colorOne?: string;
31
+ colorTwo?: string;
32
+ fontSize?: string;
33
33
  disabled?: boolean;
34
- children?: ReactNode;
35
- data_test?: string;
36
34
  borderRadius?: string;
37
- mySx?: SxProps<Theme> | undefined;
35
+ onClick?: React__default.MouseEventHandler<HTMLElement>;
36
+ children?: React__default.ReactNode;
37
+ href?: string;
38
+ target?: "_self" | "_blank" | "_parent" | "_top";
39
+ boxShadow?: string;
38
40
  }
39
- declare function WavelengthButton({ id, variant, colorOne, colorTwo, margin, padding, autoFocus, disabled, onClick, children, borderRadius, mySx }: OutlinedButtonProps): React__default.JSX.Element;
41
+ declare const WavelengthButton: React__default.FC<WavelengthButtonProps>;
40
42
 
41
43
  interface ButtonProps {
42
44
  onClick?: any;
@@ -258,49 +260,6 @@ interface CommentProps {
258
260
  }
259
261
  declare function WavelengthCommentDisplay(props: CommentProps): react_jsx_runtime.JSX.Element;
260
262
 
261
- interface PermissionAlertProps {
262
- height?: string;
263
- width?: string;
264
- permission?: "Permission Requested" | "Permission Denied";
265
- applicationName?: string;
266
- requestorName?: string;
267
- dateOfRequest?: string;
268
- backgroundColor?: string;
269
- unit?: string;
270
- onDismiss?: React__default.MouseEventHandler<HTMLAnchorElement> | undefined;
271
- dataTestId?: string;
272
- }
273
- declare function WavelengthPermissionAlert({ dataTestId, height, width, backgroundColor, permission, applicationName, requestorName, dateOfRequest, onDismiss, unit, }: PermissionAlertProps): react_jsx_runtime.JSX.Element;
274
-
275
- interface AccessAlertProps {
276
- height?: string;
277
- width?: string;
278
- access?: "Access Request" | "Access Granted" | "Access Denied";
279
- appAdmin?: string;
280
- time?: string;
281
- requestorName?: string;
282
- appNickname?: string;
283
- message?: string;
284
- appLogo?: string;
285
- dataTestId?: string;
286
- backgroundColor?: string;
287
- onClear?: React__default.MouseEventHandler<HTMLAnchorElement> | undefined;
288
- }
289
- declare function WavelengthAccessAlert({ height, dataTestId, width, time, access, appNickname, appLogo, appAdmin, requestorName, }: AccessAlertProps): react_jsx_runtime.JSX.Element;
290
-
291
- interface WavelengthAlertProps {
292
- id?: string;
293
- height?: string;
294
- width?: string;
295
- backgroundColor?: string;
296
- alertHeader?: string;
297
- alertDescription?: string;
298
- datatestid?: string;
299
- viewed?: boolean;
300
- onClose?: () => void;
301
- }
302
- declare function WavelengthAlert({ viewed, width, height, backgroundColor, alertHeader, alertDescription, datatestid, id, onClose, }: WavelengthAlertProps): react_jsx_runtime.JSX.Element;
303
-
304
263
  interface WavelengthFooterProps {
305
264
  text?: string;
306
265
  textColor?: string;
@@ -409,7 +368,7 @@ interface DropdownProps {
409
368
  palette: "brewery" | "custom";
410
369
  width: string;
411
370
  options: menuOptions[];
412
- buttonSx?: SxProps$1<Theme$1> | undefined;
371
+ buttonSx?: SxProps<Theme> | undefined;
413
372
  menuSx?: MenuSxProps;
414
373
  buttonText: string | ReactNode;
415
374
  }
@@ -572,4 +531,4 @@ type Props<T> = {
572
531
  };
573
532
  declare const WavelengthDataTable: <T extends DataType>({ data, columns, itemsPerPage, totalPages }: Props<T>) => react_jsx_runtime.JSX.Element;
574
533
 
575
- export { AppLogo, ButtonIcon, ButtonMenu, DefaultCarousel, DefaultIcon, DefaultPagination, ManyPlanesComponent, NotAvailablePage, type SearchProps, type SearchResult, SearchTextField, SliderCardCarousel, type StyledButtonPropsTwo, TestSnackbar, type ThemeProperties, WavelengthAccessAlert, WavelengthAlert, WavelengthAppTheme, WavelengthAutocomplete, WavelengthBanner, WavelengthBox, WavelengthButton, WavelengthCommentDisplay, WavelengthConfirmationModal, WavelengthContentModal, WavelengthContentPlaceholder, WavelengthDataTable, WavelengthDragAndDrop, WavelengthDropdown, WavelengthDropdownButton, WavelengthExampleComponent, WavelengthFileDownloader, WavelengthFooter, WavelengthPermissionAlert, WavelengthPlaneTrail, WavelengthPopUpMenu, WavelengthProgressBar, WavelengthSearch, WavelengthSideBar, WavelengthSlider, WavelengthSnackbar, WavelengthSpinningLogo, WavelengthSpinningOuterCircle, WavelengthStandardSnackbar, WavelengthStyledButton, WavelengthTextField, WavelengthTitleBar, add, ascendingRange, concat, findBestStringMatch, type menuItemProps, range, useOutsideClick, useThemeContext };
534
+ export { AppLogo, ButtonIcon, ButtonMenu, DefaultCarousel, DefaultIcon, DefaultPagination, ManyPlanesComponent, NotAvailablePage, type SearchProps, type SearchResult, SearchTextField, SliderCardCarousel, type StyledButtonPropsTwo, TestSnackbar, type ThemeProperties, WavelengthAppTheme, WavelengthAutocomplete, WavelengthBanner, WavelengthBox, WavelengthButton, type WavelengthButtonProps, WavelengthCommentDisplay, WavelengthConfirmationModal, WavelengthContentModal, WavelengthContentPlaceholder, WavelengthDataTable, WavelengthDragAndDrop, WavelengthDropdown, WavelengthDropdownButton, WavelengthExampleComponent, WavelengthFileDownloader, WavelengthFooter, WavelengthPlaneTrail, WavelengthPopUpMenu, WavelengthProgressBar, WavelengthSearch, WavelengthSideBar, WavelengthSlider, WavelengthSnackbar, WavelengthSpinningLogo, WavelengthSpinningOuterCircle, WavelengthStandardSnackbar, WavelengthStyledButton, WavelengthTextField, WavelengthTitleBar, add, ascendingRange, concat, findBestStringMatch, type menuItemProps, range, useOutsideClick, useThemeContext };