@wavelengthusaf/components 1.2.9 → 1.3.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.
- package/LICENSE +21 -0
- package/README.md +1 -1
- package/dist/index.d.mts +28 -4
- package/dist/index.d.ts +28 -4
- package/dist/index.js +86 -24
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +83 -22
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Keenan Ray
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { ReactNode } from 'react';
|
|
3
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
3
4
|
import { TextFieldVariants } from '@mui/material/TextField';
|
|
5
|
+
import { SxProps as SxProps$1, Theme as Theme$1 } from '@mui/material';
|
|
4
6
|
|
|
5
7
|
/**
|
|
6
8
|
* Helper Functions
|
|
@@ -20,7 +22,7 @@ declare function concat(a: string, b: string): string;
|
|
|
20
22
|
|
|
21
23
|
interface OutlinedButtonProps {
|
|
22
24
|
id?: string;
|
|
23
|
-
variant: "outlined" | "contained" | "text";
|
|
25
|
+
variant: "outlined" | "contained" | "text" | "custom";
|
|
24
26
|
colorOne?: string;
|
|
25
27
|
colorTwo?: string;
|
|
26
28
|
onClick?: any;
|
|
@@ -31,8 +33,9 @@ interface OutlinedButtonProps {
|
|
|
31
33
|
children?: ReactNode;
|
|
32
34
|
data_test?: string;
|
|
33
35
|
borderRadius?: string;
|
|
36
|
+
mySx?: SxProps<Theme> | undefined;
|
|
34
37
|
}
|
|
35
|
-
declare function WavelengthButton({ id, variant, colorOne, colorTwo, margin, padding, autoFocus, disabled, onClick, children, borderRadius }: OutlinedButtonProps): React__default.JSX.Element;
|
|
38
|
+
declare function WavelengthButton({ id, variant, colorOne, colorTwo, margin, padding, autoFocus, disabled, onClick, children, borderRadius, mySx }: OutlinedButtonProps): React__default.JSX.Element;
|
|
36
39
|
|
|
37
40
|
interface ButtonProps {
|
|
38
41
|
onClick?: any;
|
|
@@ -85,8 +88,10 @@ interface WavelengthBoxProps {
|
|
|
85
88
|
width?: number;
|
|
86
89
|
height?: number;
|
|
87
90
|
children: ReactNode;
|
|
91
|
+
borderTopRadius?: string;
|
|
92
|
+
borderBottomRadius?: string;
|
|
88
93
|
}
|
|
89
|
-
declare function WavelengthBox({ width, height, children }: WavelengthBoxProps): React__default.JSX.Element;
|
|
94
|
+
declare function WavelengthBox({ width, height, children, borderBottomRadius, borderTopRadius }: WavelengthBoxProps): React__default.JSX.Element;
|
|
90
95
|
|
|
91
96
|
interface WavelengthContentPlaceholderProps {
|
|
92
97
|
type?: "circle" | "rectangle";
|
|
@@ -319,9 +324,28 @@ interface PopUPMenuProps {
|
|
|
319
324
|
}
|
|
320
325
|
declare function WavelengthPopUpMenu({ menuItems, customIcon, width, menuDirection, color, emailHoverColor }: PopUPMenuProps): React__default.JSX.Element;
|
|
321
326
|
|
|
327
|
+
interface DropdownProps {
|
|
328
|
+
id?: string;
|
|
329
|
+
button: React__default.ReactNode;
|
|
330
|
+
width: string;
|
|
331
|
+
borderColor?: string;
|
|
332
|
+
backgroundColor?: string;
|
|
333
|
+
hoverColor?: string;
|
|
334
|
+
options: menuOptions[];
|
|
335
|
+
anchor: HTMLElement | null;
|
|
336
|
+
handleClose: () => void;
|
|
337
|
+
mySx?: SxProps$1<Theme$1> | undefined;
|
|
338
|
+
}
|
|
339
|
+
interface menuOptions {
|
|
340
|
+
option: React__default.ReactNode;
|
|
341
|
+
onClick?: React__default.MouseEventHandler<HTMLLIElement> | undefined;
|
|
342
|
+
}
|
|
343
|
+
declare function WavelengthDropdown({ id, width, options, borderColor, backgroundColor, anchor, handleClose, button, mySx, hoverColor }: DropdownProps): React__default.JSX.Element;
|
|
344
|
+
|
|
322
345
|
interface ConfirmationSnackbarProps {
|
|
323
346
|
show: boolean;
|
|
324
347
|
setShow: (show: boolean) => void;
|
|
348
|
+
closeIcon: ReactNode | React__default.JSX.Element;
|
|
325
349
|
message?: string;
|
|
326
350
|
snackBarColor?: string;
|
|
327
351
|
textColor?: string;
|
|
@@ -361,4 +385,4 @@ interface Testprops {
|
|
|
361
385
|
declare const useOutsideClick: (callback: () => void) => React__default.RefObject<HTMLDivElement>;
|
|
362
386
|
declare function TestSnackbar({ isPopUpOpen, toggleOpen, type, message, customVertyAlign, width, img }: Testprops): React__default.JSX.Element;
|
|
363
387
|
|
|
364
|
-
export { AceOfSpadesComponent, AppLogo, ArrowIcon, BomberBeeIcon, ButtonIcon, ButtonMenu, DefaultIcon, ManyPlanesComponent, NotAvailablePage, Old563EWSLogo, PortalIcon, RapidrefIcon, type SearchResult, SearchTextField, SquadronIcon, SwarmIcon, TestSnackbar, type ThemeProperties, WavelengthAppTheme, WavelengthAutocomplete, WavelengthBannerHeader, WavelengthBox, WavelengthButton, WavelengthConfirmationModal, WavelengthContentModal, WavelengthContentPlaceholder, WavelengthDropdownButton, WavelengthExampleComponent, WavelengthFileDownloader, WavelengthFooter, WavelengthIcon, WavelengthPlaneTrail, WavelengthPopUpMenu, WavelengthSearch, WavelengthSideBar, WavelengthSnackbar, WavelengthSpinningLogo, WavelengthSpinningOuterCircle, WavelengthStandardSnackbar, WavelengthTitleBar, add, concat, findBestStringMatch, type menuItemProps, useOutsideClick, useThemeContext };
|
|
388
|
+
export { AceOfSpadesComponent, AppLogo, ArrowIcon, BomberBeeIcon, ButtonIcon, ButtonMenu, DefaultIcon, ManyPlanesComponent, NotAvailablePage, Old563EWSLogo, PortalIcon, RapidrefIcon, type SearchResult, SearchTextField, SquadronIcon, SwarmIcon, TestSnackbar, type ThemeProperties, WavelengthAppTheme, WavelengthAutocomplete, WavelengthBannerHeader, WavelengthBox, WavelengthButton, WavelengthConfirmationModal, WavelengthContentModal, WavelengthContentPlaceholder, WavelengthDropdown, WavelengthDropdownButton, WavelengthExampleComponent, WavelengthFileDownloader, WavelengthFooter, WavelengthIcon, WavelengthPlaneTrail, WavelengthPopUpMenu, WavelengthSearch, WavelengthSideBar, WavelengthSnackbar, WavelengthSpinningLogo, WavelengthSpinningOuterCircle, WavelengthStandardSnackbar, WavelengthTitleBar, add, concat, findBestStringMatch, type menuItemProps, useOutsideClick, useThemeContext };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { ReactNode } from 'react';
|
|
3
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
3
4
|
import { TextFieldVariants } from '@mui/material/TextField';
|
|
5
|
+
import { SxProps as SxProps$1, Theme as Theme$1 } from '@mui/material';
|
|
4
6
|
|
|
5
7
|
/**
|
|
6
8
|
* Helper Functions
|
|
@@ -20,7 +22,7 @@ declare function concat(a: string, b: string): string;
|
|
|
20
22
|
|
|
21
23
|
interface OutlinedButtonProps {
|
|
22
24
|
id?: string;
|
|
23
|
-
variant: "outlined" | "contained" | "text";
|
|
25
|
+
variant: "outlined" | "contained" | "text" | "custom";
|
|
24
26
|
colorOne?: string;
|
|
25
27
|
colorTwo?: string;
|
|
26
28
|
onClick?: any;
|
|
@@ -31,8 +33,9 @@ interface OutlinedButtonProps {
|
|
|
31
33
|
children?: ReactNode;
|
|
32
34
|
data_test?: string;
|
|
33
35
|
borderRadius?: string;
|
|
36
|
+
mySx?: SxProps<Theme> | undefined;
|
|
34
37
|
}
|
|
35
|
-
declare function WavelengthButton({ id, variant, colorOne, colorTwo, margin, padding, autoFocus, disabled, onClick, children, borderRadius }: OutlinedButtonProps): React__default.JSX.Element;
|
|
38
|
+
declare function WavelengthButton({ id, variant, colorOne, colorTwo, margin, padding, autoFocus, disabled, onClick, children, borderRadius, mySx }: OutlinedButtonProps): React__default.JSX.Element;
|
|
36
39
|
|
|
37
40
|
interface ButtonProps {
|
|
38
41
|
onClick?: any;
|
|
@@ -85,8 +88,10 @@ interface WavelengthBoxProps {
|
|
|
85
88
|
width?: number;
|
|
86
89
|
height?: number;
|
|
87
90
|
children: ReactNode;
|
|
91
|
+
borderTopRadius?: string;
|
|
92
|
+
borderBottomRadius?: string;
|
|
88
93
|
}
|
|
89
|
-
declare function WavelengthBox({ width, height, children }: WavelengthBoxProps): React__default.JSX.Element;
|
|
94
|
+
declare function WavelengthBox({ width, height, children, borderBottomRadius, borderTopRadius }: WavelengthBoxProps): React__default.JSX.Element;
|
|
90
95
|
|
|
91
96
|
interface WavelengthContentPlaceholderProps {
|
|
92
97
|
type?: "circle" | "rectangle";
|
|
@@ -319,9 +324,28 @@ interface PopUPMenuProps {
|
|
|
319
324
|
}
|
|
320
325
|
declare function WavelengthPopUpMenu({ menuItems, customIcon, width, menuDirection, color, emailHoverColor }: PopUPMenuProps): React__default.JSX.Element;
|
|
321
326
|
|
|
327
|
+
interface DropdownProps {
|
|
328
|
+
id?: string;
|
|
329
|
+
button: React__default.ReactNode;
|
|
330
|
+
width: string;
|
|
331
|
+
borderColor?: string;
|
|
332
|
+
backgroundColor?: string;
|
|
333
|
+
hoverColor?: string;
|
|
334
|
+
options: menuOptions[];
|
|
335
|
+
anchor: HTMLElement | null;
|
|
336
|
+
handleClose: () => void;
|
|
337
|
+
mySx?: SxProps$1<Theme$1> | undefined;
|
|
338
|
+
}
|
|
339
|
+
interface menuOptions {
|
|
340
|
+
option: React__default.ReactNode;
|
|
341
|
+
onClick?: React__default.MouseEventHandler<HTMLLIElement> | undefined;
|
|
342
|
+
}
|
|
343
|
+
declare function WavelengthDropdown({ id, width, options, borderColor, backgroundColor, anchor, handleClose, button, mySx, hoverColor }: DropdownProps): React__default.JSX.Element;
|
|
344
|
+
|
|
322
345
|
interface ConfirmationSnackbarProps {
|
|
323
346
|
show: boolean;
|
|
324
347
|
setShow: (show: boolean) => void;
|
|
348
|
+
closeIcon: ReactNode | React__default.JSX.Element;
|
|
325
349
|
message?: string;
|
|
326
350
|
snackBarColor?: string;
|
|
327
351
|
textColor?: string;
|
|
@@ -361,4 +385,4 @@ interface Testprops {
|
|
|
361
385
|
declare const useOutsideClick: (callback: () => void) => React__default.RefObject<HTMLDivElement>;
|
|
362
386
|
declare function TestSnackbar({ isPopUpOpen, toggleOpen, type, message, customVertyAlign, width, img }: Testprops): React__default.JSX.Element;
|
|
363
387
|
|
|
364
|
-
export { AceOfSpadesComponent, AppLogo, ArrowIcon, BomberBeeIcon, ButtonIcon, ButtonMenu, DefaultIcon, ManyPlanesComponent, NotAvailablePage, Old563EWSLogo, PortalIcon, RapidrefIcon, type SearchResult, SearchTextField, SquadronIcon, SwarmIcon, TestSnackbar, type ThemeProperties, WavelengthAppTheme, WavelengthAutocomplete, WavelengthBannerHeader, WavelengthBox, WavelengthButton, WavelengthConfirmationModal, WavelengthContentModal, WavelengthContentPlaceholder, WavelengthDropdownButton, WavelengthExampleComponent, WavelengthFileDownloader, WavelengthFooter, WavelengthIcon, WavelengthPlaneTrail, WavelengthPopUpMenu, WavelengthSearch, WavelengthSideBar, WavelengthSnackbar, WavelengthSpinningLogo, WavelengthSpinningOuterCircle, WavelengthStandardSnackbar, WavelengthTitleBar, add, concat, findBestStringMatch, type menuItemProps, useOutsideClick, useThemeContext };
|
|
388
|
+
export { AceOfSpadesComponent, AppLogo, ArrowIcon, BomberBeeIcon, ButtonIcon, ButtonMenu, DefaultIcon, ManyPlanesComponent, NotAvailablePage, Old563EWSLogo, PortalIcon, RapidrefIcon, type SearchResult, SearchTextField, SquadronIcon, SwarmIcon, TestSnackbar, type ThemeProperties, WavelengthAppTheme, WavelengthAutocomplete, WavelengthBannerHeader, WavelengthBox, WavelengthButton, WavelengthConfirmationModal, WavelengthContentModal, WavelengthContentPlaceholder, WavelengthDropdown, WavelengthDropdownButton, WavelengthExampleComponent, WavelengthFileDownloader, WavelengthFooter, WavelengthIcon, WavelengthPlaneTrail, WavelengthPopUpMenu, WavelengthSearch, WavelengthSideBar, WavelengthSnackbar, WavelengthSpinningLogo, WavelengthSpinningOuterCircle, WavelengthStandardSnackbar, WavelengthTitleBar, add, concat, findBestStringMatch, type menuItemProps, useOutsideClick, useThemeContext };
|