@wavelengthusaf/components 2.8.1 → 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;
@@ -226,8 +228,9 @@ interface DragAndDropProps {
226
228
  allowedFileMIME?: string[];
227
229
  allowedFileExtensions?: string;
228
230
  backgroundColor?: string;
231
+ dataTestId?: string;
229
232
  }
230
- declare function WavelengthDragAndDrop({ width, height, onFilesSelected, border, textColor, fontSize, allowedFileMIME, allowedFileExtensions, backgroundColor, }: DragAndDropProps): react_jsx_runtime.JSX.Element;
233
+ declare function WavelengthDragAndDrop({ width, height, onFilesSelected, border, textColor, fontSize, allowedFileMIME, allowedFileExtensions, backgroundColor, dataTestId, }: DragAndDropProps): react_jsx_runtime.JSX.Element;
231
234
 
232
235
  interface ProgressProps {
233
236
  name?: string;
@@ -238,8 +241,9 @@ interface ProgressProps {
238
241
  progressColor?: string;
239
242
  value?: number;
240
243
  textColor?: string;
244
+ dataTestId?: string;
241
245
  }
242
- declare function WavelengthProgressBar({ width, height, backgroundColor, borderRadius, progressColor, value, name, textColor }: ProgressProps): react_jsx_runtime.JSX.Element;
246
+ declare function WavelengthProgressBar({ dataTestId, width, height, backgroundColor, borderRadius, progressColor, value, name, textColor }: ProgressProps): react_jsx_runtime.JSX.Element;
243
247
 
244
248
  interface CommentProps {
245
249
  width?: string;
@@ -252,6 +256,7 @@ interface CommentProps {
252
256
  backgroundColor?: string;
253
257
  border?: string;
254
258
  iconSelectedColor?: string;
259
+ dataTestId?: string;
255
260
  }
256
261
  declare function WavelengthCommentDisplay(props: CommentProps): react_jsx_runtime.JSX.Element;
257
262
 
@@ -363,7 +368,7 @@ interface DropdownProps {
363
368
  palette: "brewery" | "custom";
364
369
  width: string;
365
370
  options: menuOptions[];
366
- buttonSx?: SxProps$1<Theme$1> | undefined;
371
+ buttonSx?: SxProps<Theme> | undefined;
367
372
  menuSx?: MenuSxProps;
368
373
  buttonText: string | ReactNode;
369
374
  }
@@ -526,4 +531,4 @@ type Props<T> = {
526
531
  };
527
532
  declare const WavelengthDataTable: <T extends DataType>({ data, columns, itemsPerPage, totalPages }: Props<T>) => react_jsx_runtime.JSX.Element;
528
533
 
529
- 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, 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 };
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;
@@ -226,8 +228,9 @@ interface DragAndDropProps {
226
228
  allowedFileMIME?: string[];
227
229
  allowedFileExtensions?: string;
228
230
  backgroundColor?: string;
231
+ dataTestId?: string;
229
232
  }
230
- declare function WavelengthDragAndDrop({ width, height, onFilesSelected, border, textColor, fontSize, allowedFileMIME, allowedFileExtensions, backgroundColor, }: DragAndDropProps): react_jsx_runtime.JSX.Element;
233
+ declare function WavelengthDragAndDrop({ width, height, onFilesSelected, border, textColor, fontSize, allowedFileMIME, allowedFileExtensions, backgroundColor, dataTestId, }: DragAndDropProps): react_jsx_runtime.JSX.Element;
231
234
 
232
235
  interface ProgressProps {
233
236
  name?: string;
@@ -238,8 +241,9 @@ interface ProgressProps {
238
241
  progressColor?: string;
239
242
  value?: number;
240
243
  textColor?: string;
244
+ dataTestId?: string;
241
245
  }
242
- declare function WavelengthProgressBar({ width, height, backgroundColor, borderRadius, progressColor, value, name, textColor }: ProgressProps): react_jsx_runtime.JSX.Element;
246
+ declare function WavelengthProgressBar({ dataTestId, width, height, backgroundColor, borderRadius, progressColor, value, name, textColor }: ProgressProps): react_jsx_runtime.JSX.Element;
243
247
 
244
248
  interface CommentProps {
245
249
  width?: string;
@@ -252,6 +256,7 @@ interface CommentProps {
252
256
  backgroundColor?: string;
253
257
  border?: string;
254
258
  iconSelectedColor?: string;
259
+ dataTestId?: string;
255
260
  }
256
261
  declare function WavelengthCommentDisplay(props: CommentProps): react_jsx_runtime.JSX.Element;
257
262
 
@@ -363,7 +368,7 @@ interface DropdownProps {
363
368
  palette: "brewery" | "custom";
364
369
  width: string;
365
370
  options: menuOptions[];
366
- buttonSx?: SxProps$1<Theme$1> | undefined;
371
+ buttonSx?: SxProps<Theme> | undefined;
367
372
  menuSx?: MenuSxProps;
368
373
  buttonText: string | ReactNode;
369
374
  }
@@ -526,4 +531,4 @@ type Props<T> = {
526
531
  };
527
532
  declare const WavelengthDataTable: <T extends DataType>({ data, columns, itemsPerPage, totalPages }: Props<T>) => react_jsx_runtime.JSX.Element;
528
533
 
529
- 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, 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 };
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 };