@wavelengthusaf/components 2.9.0 → 2.9.2

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;
@@ -409,7 +411,7 @@ interface DropdownProps {
409
411
  palette: "brewery" | "custom";
410
412
  width: string;
411
413
  options: menuOptions[];
412
- buttonSx?: SxProps$1<Theme$1> | undefined;
414
+ buttonSx?: SxProps<Theme> | undefined;
413
415
  menuSx?: MenuSxProps;
414
416
  buttonText: string | ReactNode;
415
417
  }
@@ -572,4 +574,4 @@ type Props<T> = {
572
574
  };
573
575
  declare const WavelengthDataTable: <T extends DataType>({ data, columns, itemsPerPage, totalPages }: Props<T>) => react_jsx_runtime.JSX.Element;
574
576
 
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 };
577
+ 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, type WavelengthButtonProps, 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 };
@@ -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;
@@ -409,7 +411,7 @@ interface DropdownProps {
409
411
  palette: "brewery" | "custom";
410
412
  width: string;
411
413
  options: menuOptions[];
412
- buttonSx?: SxProps$1<Theme$1> | undefined;
414
+ buttonSx?: SxProps<Theme> | undefined;
413
415
  menuSx?: MenuSxProps;
414
416
  buttonText: string | ReactNode;
415
417
  }
@@ -572,4 +574,4 @@ type Props<T> = {
572
574
  };
573
575
  declare const WavelengthDataTable: <T extends DataType>({ data, columns, itemsPerPage, totalPages }: Props<T>) => react_jsx_runtime.JSX.Element;
574
576
 
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 };
577
+ 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, type WavelengthButtonProps, 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 };