@wavelengthusaf/components 2.3.4 → 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 +18 -4
- package/dist/cjs/index.cjs +596 -46
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +44 -8
- 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/components/modals/WavelengthDropdown.d.ts +1 -1
- package/dist/components/modals/WavelengthDropdown.d.ts.map +1 -1
- package/dist/components/modals/WavelengthPopUpMenu.d.ts +3 -2
- package/dist/components/modals/WavelengthPopUpMenu.d.ts.map +1 -1
- package/dist/components/search/WavelengthSearch.d.ts +2 -1
- package/dist/components/search/WavelengthSearch.d.ts.map +1 -1
- package/dist/esm/index.d.ts +44 -8
- package/dist/esm/index.js +702 -152
- 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;
|
|
@@ -124,6 +137,7 @@ interface SearchProps {
|
|
|
124
137
|
mode: "automatic" | "manual";
|
|
125
138
|
type?: "text-box" | "search-bar";
|
|
126
139
|
iconPos?: "start" | "end";
|
|
140
|
+
clearIconMarginRight?: string;
|
|
127
141
|
borderRadius?: number | string;
|
|
128
142
|
label?: string;
|
|
129
143
|
width?: string;
|
|
@@ -141,7 +155,7 @@ interface SearchProps {
|
|
|
141
155
|
onChange?: React__default.ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
142
156
|
onSearchItemSelected?: (selectedItem: SearchResult | string) => void;
|
|
143
157
|
}
|
|
144
|
-
declare function WavelengthSearch({ id, mode, type, width, height, label, size, borderRadius, children, placeholder, onEnter, onSearchItemSelected, options, onChange, borderColor, hoverColor, textColor, fontSize, backgroundColor, iconPos, }: SearchProps): react_jsx_runtime.JSX.Element | undefined;
|
|
158
|
+
declare function WavelengthSearch({ id, mode, type, width, height, label, size, borderRadius, children, placeholder, onEnter, onSearchItemSelected, options, onChange, borderColor, hoverColor, textColor, fontSize, backgroundColor, iconPos, clearIconMarginRight, }: SearchProps): react_jsx_runtime.JSX.Element | undefined;
|
|
145
159
|
|
|
146
160
|
declare function SearchTextField(): react_jsx_runtime.JSX.Element;
|
|
147
161
|
|
|
@@ -255,15 +269,21 @@ declare function WavelengthPlaneTrail({ trailDir, id }: WavelengthPlaneTrailProp
|
|
|
255
269
|
type ThemeProperties = {
|
|
256
270
|
name?: string;
|
|
257
271
|
};
|
|
258
|
-
declare const WavelengthAppTheme: React.Context<ThemeProperties>;
|
|
272
|
+
declare const WavelengthAppTheme: React$1.Context<ThemeProperties>;
|
|
259
273
|
declare const useThemeContext: () => ThemeProperties;
|
|
260
274
|
|
|
261
275
|
interface WavelengthConfirmationModalProps {
|
|
262
276
|
show: boolean;
|
|
263
277
|
setShow: (show: boolean) => void;
|
|
264
278
|
textObj: Record<string, string>;
|
|
265
|
-
handleConfirmationModalOnConfirmProp: () => void;
|
|
266
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;
|
|
267
287
|
}
|
|
268
288
|
declare function WavelengthConfirmationModal(props: WavelengthConfirmationModalProps): react_jsx_runtime.JSX.Element;
|
|
269
289
|
|
|
@@ -281,6 +301,7 @@ interface menuItemProps {
|
|
|
281
301
|
link?: string;
|
|
282
302
|
end?: boolean;
|
|
283
303
|
email?: string;
|
|
304
|
+
hoverColor?: string;
|
|
284
305
|
}
|
|
285
306
|
interface PopUPMenuProps {
|
|
286
307
|
menuItems: menuItemProps[];
|
|
@@ -288,10 +309,10 @@ interface PopUPMenuProps {
|
|
|
288
309
|
width?: string;
|
|
289
310
|
menuDirection?: "top" | "bottom";
|
|
290
311
|
color?: string;
|
|
291
|
-
|
|
312
|
+
border?: string;
|
|
292
313
|
id?: string;
|
|
293
314
|
}
|
|
294
|
-
declare function WavelengthPopUpMenu({ menuItems, customIcon, width, menuDirection, color,
|
|
315
|
+
declare function WavelengthPopUpMenu({ menuItems, customIcon, width, menuDirection, color, id, border }: PopUPMenuProps): react_jsx_runtime.JSX.Element;
|
|
295
316
|
|
|
296
317
|
interface DropdownProps {
|
|
297
318
|
id?: string;
|
|
@@ -313,7 +334,7 @@ interface MenuSxProps {
|
|
|
313
334
|
width?: string;
|
|
314
335
|
boxShadow?: string;
|
|
315
336
|
}
|
|
316
|
-
declare function WavelengthDropdown({ id, options, buttonSx, width, buttonText, menuSx, palette }: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
337
|
+
declare function WavelengthDropdown({ id, options, buttonSx, width, buttonText, menuSx, palette, }: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
317
338
|
|
|
318
339
|
interface ConfirmationSnackbarProps {
|
|
319
340
|
show: boolean;
|
|
@@ -422,4 +443,19 @@ declare const range: (start: number, end: number) => number[];
|
|
|
422
443
|
declare function ascendingRange(start: number, end: number): number[];
|
|
423
444
|
declare function DefaultPagination({ totalPages, currentPageNumber, siblingCount, boundaryCount, style, onPageChange }: PaginationProps): react_jsx_runtime.JSX.Element;
|
|
424
445
|
|
|
425
|
-
|
|
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"}
|
|
@@ -20,7 +20,7 @@ interface MenuSxProps {
|
|
|
20
20
|
width?: string;
|
|
21
21
|
boxShadow?: string;
|
|
22
22
|
}
|
|
23
|
-
export declare function WavelengthDropdown({ id, options, buttonSx, width, buttonText, menuSx, palette }: DropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare function WavelengthDropdown({ id, options, buttonSx, width, buttonText, menuSx, palette, }: DropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
declare const WavelengthDropdownStyled: import("@emotion/styled").StyledComponent<DropdownProps & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
25
25
|
export default WavelengthDropdownStyled;
|
|
26
26
|
//# sourceMappingURL=WavelengthDropdown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WavelengthDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/modals/WavelengthDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAmC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAMhF,UAAU,aAAa;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC;IACtC,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC;AACD,UAAU,WAAW;IACnB,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC;CAC9D;AACD,UAAU,WAAW;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AACD,wBAAgB,kBAAkB,CAAC,
|
|
1
|
+
{"version":3,"file":"WavelengthDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/modals/WavelengthDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAmC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAMhF,UAAU,aAAa;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC;IACtC,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC;AACD,UAAU,WAAW;IACnB,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC;CAC9D;AACD,UAAU,WAAW;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AACD,wBAAgB,kBAAkB,CAAC,EACjC,EAAE,EACF,OAAO,EACP,QAAQ,EACR,KAAe,EACf,UAAU,EACV,MAA+F,EAC/F,OAAO,GACR,EAAE,aAAa,2CAiHf;AAED,QAAA,MAAM,wBAAwB,sHAA+B,CAAC;AAC9D,eAAe,wBAAwB,CAAC"}
|
|
@@ -5,6 +5,7 @@ export interface menuItemProps {
|
|
|
5
5
|
link?: string;
|
|
6
6
|
end?: boolean;
|
|
7
7
|
email?: string;
|
|
8
|
+
hoverColor?: string;
|
|
8
9
|
}
|
|
9
10
|
interface PopUPMenuProps {
|
|
10
11
|
menuItems: menuItemProps[];
|
|
@@ -12,9 +13,9 @@ interface PopUPMenuProps {
|
|
|
12
13
|
width?: string;
|
|
13
14
|
menuDirection?: "top" | "bottom";
|
|
14
15
|
color?: string;
|
|
15
|
-
|
|
16
|
+
border?: string;
|
|
16
17
|
id?: string;
|
|
17
18
|
}
|
|
18
|
-
export declare function WavelengthPopUpMenu({ menuItems, customIcon, width, menuDirection, color,
|
|
19
|
+
export declare function WavelengthPopUpMenu({ menuItems, customIcon, width, menuDirection, color, id, border }: PopUPMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
19
20
|
export default WavelengthPopUpMenu;
|
|
20
21
|
//# sourceMappingURL=WavelengthPopUpMenu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WavelengthPopUpMenu.d.ts","sourceRoot":"","sources":["../../../src/components/modals/WavelengthPopUpMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAYzC,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;IAChD,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"WavelengthPopUpMenu.d.ts","sourceRoot":"","sources":["../../../src/components/modals/WavelengthPopUpMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAYzC,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;IAChD,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AACD,UAAU,cAAc;IACtB,SAAS,EAAE,aAAa,EAAE,CAAC;IAC3B,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAUD,wBAAgB,mBAAmB,CAAC,EAAE,SAAS,EAAE,UAAkB,EAAE,KAAK,EAAE,aAAqB,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,cAAc,2CAoLrI;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -10,6 +10,7 @@ interface SearchProps {
|
|
|
10
10
|
mode: "automatic" | "manual";
|
|
11
11
|
type?: "text-box" | "search-bar";
|
|
12
12
|
iconPos?: "start" | "end";
|
|
13
|
+
clearIconMarginRight?: string;
|
|
13
14
|
borderRadius?: number | string;
|
|
14
15
|
label?: string;
|
|
15
16
|
width?: string;
|
|
@@ -27,6 +28,6 @@ interface SearchProps {
|
|
|
27
28
|
onChange?: React.ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
28
29
|
onSearchItemSelected?: (selectedItem: SearchResult | string) => void;
|
|
29
30
|
}
|
|
30
|
-
export declare function WavelengthSearch({ id, mode, type, width, height, label, size, borderRadius, children, placeholder, onEnter, onSearchItemSelected, options, onChange, borderColor, hoverColor, textColor, fontSize, backgroundColor, iconPos, }: SearchProps): import("react/jsx-runtime").JSX.Element | undefined;
|
|
31
|
+
export declare function WavelengthSearch({ id, mode, type, width, height, label, size, borderRadius, children, placeholder, onEnter, onSearchItemSelected, options, onChange, borderColor, hoverColor, textColor, fontSize, backgroundColor, iconPos, clearIconMarginRight, }: SearchProps): import("react/jsx-runtime").JSX.Element | undefined;
|
|
31
32
|
export default WavelengthSearch;
|
|
32
33
|
//# sourceMappingURL=WavelengthSearch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WavelengthSearch.d.ts","sourceRoot":"","sources":["../../../src/components/search/WavelengthSearch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"WavelengthSearch.d.ts","sourceRoot":"","sources":["../../../src/components/search/WavelengthSearch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAelC,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,WAAW;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,WAAW,GAAG,QAAQ,CAAC;IAC7B,IAAI,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACjC,OAAO,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;IAC1B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,GAAG,CAAC;IAC9B,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,GAAG,mBAAmB,CAAC,CAAC;IAC5E,oBAAoB,CAAC,EAAE,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,KAAK,IAAI,CAAC;CACtE;AA8CD,wBAAgB,gBAAgB,CAAC,EAC/B,EAAE,EACF,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,MAAM,EACN,KAAK,EACL,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,OAAO,EACP,oBAAoB,EACpB,OAAO,EACP,QAAQ,EACR,WAAW,EACX,UAAU,EACV,SAAS,EACT,QAAQ,EACR,eAAe,EACf,OAAe,EACf,oBAAoB,GACrB,EAAE,WAAW,uDAugBb;AAED,eAAe,gBAAgB,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;
|
|
@@ -124,6 +137,7 @@ interface SearchProps {
|
|
|
124
137
|
mode: "automatic" | "manual";
|
|
125
138
|
type?: "text-box" | "search-bar";
|
|
126
139
|
iconPos?: "start" | "end";
|
|
140
|
+
clearIconMarginRight?: string;
|
|
127
141
|
borderRadius?: number | string;
|
|
128
142
|
label?: string;
|
|
129
143
|
width?: string;
|
|
@@ -141,7 +155,7 @@ interface SearchProps {
|
|
|
141
155
|
onChange?: React__default.ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
142
156
|
onSearchItemSelected?: (selectedItem: SearchResult | string) => void;
|
|
143
157
|
}
|
|
144
|
-
declare function WavelengthSearch({ id, mode, type, width, height, label, size, borderRadius, children, placeholder, onEnter, onSearchItemSelected, options, onChange, borderColor, hoverColor, textColor, fontSize, backgroundColor, iconPos, }: SearchProps): react_jsx_runtime.JSX.Element | undefined;
|
|
158
|
+
declare function WavelengthSearch({ id, mode, type, width, height, label, size, borderRadius, children, placeholder, onEnter, onSearchItemSelected, options, onChange, borderColor, hoverColor, textColor, fontSize, backgroundColor, iconPos, clearIconMarginRight, }: SearchProps): react_jsx_runtime.JSX.Element | undefined;
|
|
145
159
|
|
|
146
160
|
declare function SearchTextField(): react_jsx_runtime.JSX.Element;
|
|
147
161
|
|
|
@@ -255,15 +269,21 @@ declare function WavelengthPlaneTrail({ trailDir, id }: WavelengthPlaneTrailProp
|
|
|
255
269
|
type ThemeProperties = {
|
|
256
270
|
name?: string;
|
|
257
271
|
};
|
|
258
|
-
declare const WavelengthAppTheme: React.Context<ThemeProperties>;
|
|
272
|
+
declare const WavelengthAppTheme: React$1.Context<ThemeProperties>;
|
|
259
273
|
declare const useThemeContext: () => ThemeProperties;
|
|
260
274
|
|
|
261
275
|
interface WavelengthConfirmationModalProps {
|
|
262
276
|
show: boolean;
|
|
263
277
|
setShow: (show: boolean) => void;
|
|
264
278
|
textObj: Record<string, string>;
|
|
265
|
-
handleConfirmationModalOnConfirmProp: () => void;
|
|
266
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;
|
|
267
287
|
}
|
|
268
288
|
declare function WavelengthConfirmationModal(props: WavelengthConfirmationModalProps): react_jsx_runtime.JSX.Element;
|
|
269
289
|
|
|
@@ -281,6 +301,7 @@ interface menuItemProps {
|
|
|
281
301
|
link?: string;
|
|
282
302
|
end?: boolean;
|
|
283
303
|
email?: string;
|
|
304
|
+
hoverColor?: string;
|
|
284
305
|
}
|
|
285
306
|
interface PopUPMenuProps {
|
|
286
307
|
menuItems: menuItemProps[];
|
|
@@ -288,10 +309,10 @@ interface PopUPMenuProps {
|
|
|
288
309
|
width?: string;
|
|
289
310
|
menuDirection?: "top" | "bottom";
|
|
290
311
|
color?: string;
|
|
291
|
-
|
|
312
|
+
border?: string;
|
|
292
313
|
id?: string;
|
|
293
314
|
}
|
|
294
|
-
declare function WavelengthPopUpMenu({ menuItems, customIcon, width, menuDirection, color,
|
|
315
|
+
declare function WavelengthPopUpMenu({ menuItems, customIcon, width, menuDirection, color, id, border }: PopUPMenuProps): react_jsx_runtime.JSX.Element;
|
|
295
316
|
|
|
296
317
|
interface DropdownProps {
|
|
297
318
|
id?: string;
|
|
@@ -313,7 +334,7 @@ interface MenuSxProps {
|
|
|
313
334
|
width?: string;
|
|
314
335
|
boxShadow?: string;
|
|
315
336
|
}
|
|
316
|
-
declare function WavelengthDropdown({ id, options, buttonSx, width, buttonText, menuSx, palette }: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
337
|
+
declare function WavelengthDropdown({ id, options, buttonSx, width, buttonText, menuSx, palette, }: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
317
338
|
|
|
318
339
|
interface ConfirmationSnackbarProps {
|
|
319
340
|
show: boolean;
|
|
@@ -422,4 +443,19 @@ declare const range: (start: number, end: number) => number[];
|
|
|
422
443
|
declare function ascendingRange(start: number, end: number): number[];
|
|
423
444
|
declare function DefaultPagination({ totalPages, currentPageNumber, siblingCount, boundaryCount, style, onPageChange }: PaginationProps): react_jsx_runtime.JSX.Element;
|
|
424
445
|
|
|
425
|
-
|
|
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 };
|