@wavelengthusaf/components 2.3.5 → 2.4.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.
- package/README.md +7 -0
- package/dist/cjs/index.cjs +515 -21
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +38 -4
- package/dist/components/TextField/WavelengthTextField.d.ts +17 -0
- package/dist/components/TextField/WavelengthTextField.d.ts.map +1 -0
- package/dist/components/buttons/WavelengthButton/WavelengthStyledButton.d.ts +15 -0
- package/dist/components/buttons/WavelengthButton/WavelengthStyledButton.d.ts.map +1 -0
- package/dist/components/modals/WavelengthConfirmationModal.d.ts +7 -1
- package/dist/components/modals/WavelengthConfirmationModal.d.ts.map +1 -1
- package/dist/esm/index.d.ts +38 -4
- package/dist/esm/index.js +625 -131
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
2
|
import React__default, { ReactNode } from 'react';
|
|
3
3
|
import { SxProps, Theme } from '@mui/material/styles';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
@@ -87,6 +87,19 @@ interface DownloadProps {
|
|
|
87
87
|
}
|
|
88
88
|
declare function WavelengthFileDownloader({ fileLoc, fileURL, fileName, button, id }: DownloadProps): react_jsx_runtime.JSX.Element | undefined;
|
|
89
89
|
|
|
90
|
+
interface StyledButtonPropsTwo {
|
|
91
|
+
type: "channel_one_transparent" | "channel_one_launch" | "channel_one_request" | "channel_one_pending" | "channel_one_disabled" | "ewdms_tertiary" | "ewdms_primary" | "ewdms_secondary" | "brewery" | "default";
|
|
92
|
+
styles?: React__default.CSSProperties;
|
|
93
|
+
hoverstyles?: React__default.CSSProperties;
|
|
94
|
+
activestyles?: React__default.CSSProperties;
|
|
95
|
+
disabledstyles?: React__default.CSSProperties;
|
|
96
|
+
icon?: React__default.ReactNode;
|
|
97
|
+
disabled?: boolean;
|
|
98
|
+
children: React__default.ReactNode;
|
|
99
|
+
onClick?: React__default.MouseEventHandler<HTMLButtonElement>;
|
|
100
|
+
}
|
|
101
|
+
declare function WavelengthStyledButton({ type, styles, children, disabled, hoverstyles, icon, onClick, disabledstyles, activestyles }: StyledButtonPropsTwo): react_jsx_runtime.JSX.Element;
|
|
102
|
+
|
|
90
103
|
interface WavelengthBoxProps {
|
|
91
104
|
width?: number;
|
|
92
105
|
height?: number;
|
|
@@ -256,15 +269,21 @@ declare function WavelengthPlaneTrail({ trailDir, id }: WavelengthPlaneTrailProp
|
|
|
256
269
|
type ThemeProperties = {
|
|
257
270
|
name?: string;
|
|
258
271
|
};
|
|
259
|
-
declare const WavelengthAppTheme: React.Context<ThemeProperties>;
|
|
272
|
+
declare const WavelengthAppTheme: React$1.Context<ThemeProperties>;
|
|
260
273
|
declare const useThemeContext: () => ThemeProperties;
|
|
261
274
|
|
|
262
275
|
interface WavelengthConfirmationModalProps {
|
|
263
276
|
show: boolean;
|
|
264
277
|
setShow: (show: boolean) => void;
|
|
265
278
|
textObj: Record<string, string>;
|
|
266
|
-
handleConfirmationModalOnConfirmProp: () => void;
|
|
267
279
|
id?: string;
|
|
280
|
+
width?: string;
|
|
281
|
+
height?: string;
|
|
282
|
+
fontFamily?: string;
|
|
283
|
+
textColor?: string;
|
|
284
|
+
cacelButton?: React.ReactNode;
|
|
285
|
+
submitButton?: React.ReactNode;
|
|
286
|
+
backgroundColor?: string;
|
|
268
287
|
}
|
|
269
288
|
declare function WavelengthConfirmationModal(props: WavelengthConfirmationModalProps): react_jsx_runtime.JSX.Element;
|
|
270
289
|
|
|
@@ -424,4 +443,19 @@ declare const range: (start: number, end: number) => number[];
|
|
|
424
443
|
declare function ascendingRange(start: number, end: number): number[];
|
|
425
444
|
declare function DefaultPagination({ totalPages, currentPageNumber, siblingCount, boundaryCount, style, onPageChange }: PaginationProps): react_jsx_runtime.JSX.Element;
|
|
426
445
|
|
|
427
|
-
|
|
446
|
+
interface TextFieldProps {
|
|
447
|
+
width?: string;
|
|
448
|
+
height?: string;
|
|
449
|
+
label?: string;
|
|
450
|
+
borderColor?: string;
|
|
451
|
+
labelColor?: string;
|
|
452
|
+
focusColor?: string;
|
|
453
|
+
textColor?: string;
|
|
454
|
+
required?: boolean;
|
|
455
|
+
onChange?: React__default.ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
456
|
+
regex?: RegExp;
|
|
457
|
+
placeholder?: string;
|
|
458
|
+
}
|
|
459
|
+
declare function WavelengthTextField(props: TextFieldProps): react_jsx_runtime.JSX.Element;
|
|
460
|
+
|
|
461
|
+
export { AppLogo, ButtonIcon, ButtonMenu, DefaultCarousel, DefaultIcon, DefaultPagination, ManyPlanesComponent, NotAvailablePage, type SearchResult, SearchTextField, SliderCardCarousel, type StyledButtonPropsTwo, TestSnackbar, type ThemeProperties, WavelengthAppTheme, WavelengthAutocomplete, WavelengthBanner, WavelengthBox, WavelengthButton, WavelengthConfirmationModal, WavelengthContentModal, WavelengthContentPlaceholder, WavelengthDropdown, WavelengthDropdownButton, WavelengthExampleComponent, WavelengthFileDownloader, WavelengthFooter, WavelengthPlaneTrail, WavelengthPopUpMenu, WavelengthSearch, WavelengthSideBar, WavelengthSlider, WavelengthSnackbar, WavelengthSpinningLogo, WavelengthSpinningOuterCircle, WavelengthStandardSnackbar, WavelengthStyledButton, WavelengthTextField, WavelengthTitleBar, add, ascendingRange, concat, findBestStringMatch, type menuItemProps, range, useOutsideClick, useThemeContext };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface TextFieldProps {
|
|
3
|
+
width?: string;
|
|
4
|
+
height?: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
borderColor?: string;
|
|
7
|
+
labelColor?: string;
|
|
8
|
+
focusColor?: string;
|
|
9
|
+
textColor?: string;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
12
|
+
regex?: RegExp;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function WavelengthTextField(props: TextFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default WavelengthTextField;
|
|
17
|
+
//# sourceMappingURL=WavelengthTextField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WavelengthTextField.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/WavelengthTextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAGrD,UAAU,cAAc;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,GAAG,mBAAmB,CAAC,GAAG,SAAS,CAAC;IACxF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,cAAc,2CAmDxD;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface StyledButtonPropsTwo {
|
|
3
|
+
type: "channel_one_transparent" | "channel_one_launch" | "channel_one_request" | "channel_one_pending" | "channel_one_disabled" | "ewdms_tertiary" | "ewdms_primary" | "ewdms_secondary" | "brewery" | "default";
|
|
4
|
+
styles?: React.CSSProperties;
|
|
5
|
+
hoverstyles?: React.CSSProperties;
|
|
6
|
+
activestyles?: React.CSSProperties;
|
|
7
|
+
disabledstyles?: React.CSSProperties;
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
12
|
+
}
|
|
13
|
+
export declare function WavelengthStyledButton({ type, styles, children, disabled, hoverstyles, icon, onClick, disabledstyles, activestyles }: StyledButtonPropsTwo): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default WavelengthStyledButton;
|
|
15
|
+
//# sourceMappingURL=WavelengthStyledButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WavelengthStyledButton.d.ts","sourceRoot":"","sources":["../../../../src/components/buttons/WavelengthButton/WavelengthStyledButton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,oBAAoB;IACnC,IAAI,EACA,yBAAyB,GACzB,oBAAoB,GACpB,qBAAqB,GACrB,qBAAqB,GACrB,sBAAsB,GACtB,gBAAgB,GAChB,eAAe,GACf,iBAAiB,GACjB,SAAS,GACT,SAAS,CAAC;IACd,MAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC7B,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;CACtD;AAqaD,wBAAgB,sBAAsB,CAAC,EAAE,IAAgB,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAgB,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,EAAE,oBAAoB,2CAO9K;AAED,eAAe,sBAAsB,CAAC"}
|
|
@@ -2,8 +2,14 @@ interface WavelengthConfirmationModalProps {
|
|
|
2
2
|
show: boolean;
|
|
3
3
|
setShow: (show: boolean) => void;
|
|
4
4
|
textObj: Record<string, string>;
|
|
5
|
-
handleConfirmationModalOnConfirmProp: () => void;
|
|
6
5
|
id?: string;
|
|
6
|
+
width?: string;
|
|
7
|
+
height?: string;
|
|
8
|
+
fontFamily?: string;
|
|
9
|
+
textColor?: string;
|
|
10
|
+
cacelButton?: React.ReactNode;
|
|
11
|
+
submitButton?: React.ReactNode;
|
|
12
|
+
backgroundColor?: string;
|
|
7
13
|
}
|
|
8
14
|
export declare function WavelengthConfirmationModal(props: WavelengthConfirmationModalProps): import("react/jsx-runtime").JSX.Element;
|
|
9
15
|
export default WavelengthConfirmationModal;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WavelengthConfirmationModal.d.ts","sourceRoot":"","sources":["../../../src/components/modals/WavelengthConfirmationModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WavelengthConfirmationModal.d.ts","sourceRoot":"","sources":["../../../src/components/modals/WavelengthConfirmationModal.tsx"],"names":[],"mappings":"AAEA,UAAU,gCAAgC;IACxC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEhC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE/B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,gCAAgC,2CAmClF;AAED,eAAe,2BAA2B,CAAC"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
2
|
import React__default, { ReactNode } from 'react';
|
|
3
3
|
import { SxProps, Theme } from '@mui/material/styles';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
@@ -87,6 +87,19 @@ interface DownloadProps {
|
|
|
87
87
|
}
|
|
88
88
|
declare function WavelengthFileDownloader({ fileLoc, fileURL, fileName, button, id }: DownloadProps): react_jsx_runtime.JSX.Element | undefined;
|
|
89
89
|
|
|
90
|
+
interface StyledButtonPropsTwo {
|
|
91
|
+
type: "channel_one_transparent" | "channel_one_launch" | "channel_one_request" | "channel_one_pending" | "channel_one_disabled" | "ewdms_tertiary" | "ewdms_primary" | "ewdms_secondary" | "brewery" | "default";
|
|
92
|
+
styles?: React__default.CSSProperties;
|
|
93
|
+
hoverstyles?: React__default.CSSProperties;
|
|
94
|
+
activestyles?: React__default.CSSProperties;
|
|
95
|
+
disabledstyles?: React__default.CSSProperties;
|
|
96
|
+
icon?: React__default.ReactNode;
|
|
97
|
+
disabled?: boolean;
|
|
98
|
+
children: React__default.ReactNode;
|
|
99
|
+
onClick?: React__default.MouseEventHandler<HTMLButtonElement>;
|
|
100
|
+
}
|
|
101
|
+
declare function WavelengthStyledButton({ type, styles, children, disabled, hoverstyles, icon, onClick, disabledstyles, activestyles }: StyledButtonPropsTwo): react_jsx_runtime.JSX.Element;
|
|
102
|
+
|
|
90
103
|
interface WavelengthBoxProps {
|
|
91
104
|
width?: number;
|
|
92
105
|
height?: number;
|
|
@@ -256,15 +269,21 @@ declare function WavelengthPlaneTrail({ trailDir, id }: WavelengthPlaneTrailProp
|
|
|
256
269
|
type ThemeProperties = {
|
|
257
270
|
name?: string;
|
|
258
271
|
};
|
|
259
|
-
declare const WavelengthAppTheme: React.Context<ThemeProperties>;
|
|
272
|
+
declare const WavelengthAppTheme: React$1.Context<ThemeProperties>;
|
|
260
273
|
declare const useThemeContext: () => ThemeProperties;
|
|
261
274
|
|
|
262
275
|
interface WavelengthConfirmationModalProps {
|
|
263
276
|
show: boolean;
|
|
264
277
|
setShow: (show: boolean) => void;
|
|
265
278
|
textObj: Record<string, string>;
|
|
266
|
-
handleConfirmationModalOnConfirmProp: () => void;
|
|
267
279
|
id?: string;
|
|
280
|
+
width?: string;
|
|
281
|
+
height?: string;
|
|
282
|
+
fontFamily?: string;
|
|
283
|
+
textColor?: string;
|
|
284
|
+
cacelButton?: React.ReactNode;
|
|
285
|
+
submitButton?: React.ReactNode;
|
|
286
|
+
backgroundColor?: string;
|
|
268
287
|
}
|
|
269
288
|
declare function WavelengthConfirmationModal(props: WavelengthConfirmationModalProps): react_jsx_runtime.JSX.Element;
|
|
270
289
|
|
|
@@ -424,4 +443,19 @@ declare const range: (start: number, end: number) => number[];
|
|
|
424
443
|
declare function ascendingRange(start: number, end: number): number[];
|
|
425
444
|
declare function DefaultPagination({ totalPages, currentPageNumber, siblingCount, boundaryCount, style, onPageChange }: PaginationProps): react_jsx_runtime.JSX.Element;
|
|
426
445
|
|
|
427
|
-
|
|
446
|
+
interface TextFieldProps {
|
|
447
|
+
width?: string;
|
|
448
|
+
height?: string;
|
|
449
|
+
label?: string;
|
|
450
|
+
borderColor?: string;
|
|
451
|
+
labelColor?: string;
|
|
452
|
+
focusColor?: string;
|
|
453
|
+
textColor?: string;
|
|
454
|
+
required?: boolean;
|
|
455
|
+
onChange?: React__default.ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
456
|
+
regex?: RegExp;
|
|
457
|
+
placeholder?: string;
|
|
458
|
+
}
|
|
459
|
+
declare function WavelengthTextField(props: TextFieldProps): react_jsx_runtime.JSX.Element;
|
|
460
|
+
|
|
461
|
+
export { AppLogo, ButtonIcon, ButtonMenu, DefaultCarousel, DefaultIcon, DefaultPagination, ManyPlanesComponent, NotAvailablePage, type SearchResult, SearchTextField, SliderCardCarousel, type StyledButtonPropsTwo, TestSnackbar, type ThemeProperties, WavelengthAppTheme, WavelengthAutocomplete, WavelengthBanner, WavelengthBox, WavelengthButton, WavelengthConfirmationModal, WavelengthContentModal, WavelengthContentPlaceholder, WavelengthDropdown, WavelengthDropdownButton, WavelengthExampleComponent, WavelengthFileDownloader, WavelengthFooter, WavelengthPlaneTrail, WavelengthPopUpMenu, WavelengthSearch, WavelengthSideBar, WavelengthSlider, WavelengthSnackbar, WavelengthSpinningLogo, WavelengthSpinningOuterCircle, WavelengthStandardSnackbar, WavelengthStyledButton, WavelengthTextField, WavelengthTitleBar, add, ascendingRange, concat, findBestStringMatch, type menuItemProps, range, useOutsideClick, useThemeContext };
|